(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{74444:function(e,o,f){"use strict";f.d(o,{BH:function(){return Deferred},L:function(){return base64urlEncodeWithoutPadding},LL:function(){return ErrorFactory},Lj:function(){return deleteDB},X3:function(){return openDB},ZR:function(){return FirebaseError},eu:function(){return validateIndexedDBOpenable},hl:function(){return isIndexedDBAvailable},m9:function(){return getModularInstance},vZ:function(){return function deepEqual(e,o){if(e===o)return!0;let f=Object.keys(e),v=Object.keys(o);for(let w of f){if(!v.includes(w))return!1;let f=e[w],P=o[w];if(isObject(f)&&isObject(P)){if(!deepEqual(f,P))return!1}else if(f!==P)return!1}for(let e of v)if(!f.includes(e))return!1;return!0}},zI:function(){return areCookiesEnabled}});/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let stringToByteArray$1=function(e){let o=[],f=0;for(let v=0;v<e.length;v++){let w=e.charCodeAt(v);w<128?o[f++]=w:(w<2048?o[f++]=w>>6|192:((64512&w)==55296&&v+1<e.length&&(64512&e.charCodeAt(v+1))==56320?(w=65536+((1023&w)<<10)+(1023&e.charCodeAt(++v)),o[f++]=w>>18|240,o[f++]=w>>12&63|128):o[f++]=w>>12|224,o[f++]=w>>6&63|128),o[f++]=63&w|128)}return o},byteArrayToString=function(e){let o=[],f=0,v=0;for(;f<e.length;){let w=e[f++];if(w<128)o[v++]=String.fromCharCode(w);else if(w>191&&w<224){let P=e[f++];o[v++]=String.fromCharCode((31&w)<<6|63&P)}else if(w>239&&w<365){let P=e[f++],N=e[f++],F=e[f++],U=((7&w)<<18|(63&P)<<12|(63&N)<<6|63&F)-65536;o[v++]=String.fromCharCode(55296+(U>>10)),o[v++]=String.fromCharCode(56320+(1023&U))}else{let P=e[f++],N=e[f++];o[v++]=String.fromCharCode((15&w)<<12|(63&P)<<6|63&N)}}return o.join("")},v={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(e,o){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();let f=o?this.byteToCharMapWebSafe_:this.byteToCharMap_,v=[];for(let o=0;o<e.length;o+=3){let w=e[o],P=o+1<e.length,N=P?e[o+1]:0,F=o+2<e.length,U=F?e[o+2]:0,V=w>>2,H=(3&w)<<4|N>>4,q=(15&N)<<2|U>>6,W=63&U;F||(W=64,P||(q=64)),v.push(f[V],f[H],f[q],f[W])}return v.join("")},encodeString(e,o){return this.HAS_NATIVE_SUPPORT&&!o?btoa(e):this.encodeByteArray(stringToByteArray$1(e),o)},decodeString(e,o){return this.HAS_NATIVE_SUPPORT&&!o?atob(e):byteArrayToString(this.decodeStringToByteArray(e,o))},decodeStringToByteArray(e,o){this.init_();let f=o?this.charToByteMapWebSafe_:this.charToByteMap_,v=[];for(let o=0;o<e.length;){let w=f[e.charAt(o++)],P=o<e.length,N=P?f[e.charAt(o)]:0;++o;let F=o<e.length,U=F?f[e.charAt(o)]:64;++o;let V=o<e.length,H=V?f[e.charAt(o)]:64;if(++o,null==w||null==N||null==U||null==H)throw Error();let q=w<<2|N>>4;if(v.push(q),64!==U){let e=N<<4&240|U>>2;if(v.push(e),64!==H){let e=U<<6&192|H;v.push(e)}}}return v},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let 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)}}},base64Encode=function(e){let o=stringToByteArray$1(e);return v.encodeByteArray(o,!0)},base64urlEncodeWithoutPadding=function(e){return base64Encode(e).replace(/\./g,"")};/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let Deferred=class Deferred{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,o)=>{this.resolve=e,this.reject=o})}wrapCallback(e){return(o,f)=>{o?this.reject(o):this.resolve(f),"function"==typeof e&&(this.promise.catch(()=>{}),1===e.length?e(o):e(o,f))}}};function isIndexedDBAvailable(){return"object"==typeof indexedDB}function validateIndexedDBOpenable(){return new Promise((e,o)=>{try{let f=!0,v="validate-browser-context-for-indexeddb-analytics-module",w=self.indexedDB.open(v);w.onsuccess=()=>{w.result.close(),f||self.indexedDB.deleteDatabase(v),e(!0)},w.onupgradeneeded=()=>{f=!1},w.onerror=()=>{var e;o((null===(e=w.error)||void 0===e?void 0:e.message)||"")}}catch(e){o(e)}})}function areCookiesEnabled(){return"undefined"!=typeof navigator&&!!navigator.cookieEnabled}let FirebaseError=class FirebaseError extends Error{constructor(e,o,f){super(o),this.code=e,this.customData=f,this.name="FirebaseError",Object.setPrototypeOf(this,FirebaseError.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,ErrorFactory.prototype.create)}};let ErrorFactory=class ErrorFactory{constructor(e,o,f){this.service=e,this.serviceName=o,this.errors=f}create(e,...o){let f=o[0]||{},v=`${this.service}/${e}`,P=this.errors[e],N=P?P.replace(w,(e,o)=>{let v=f[o];return null!=v?String(v):`<${o}?>`}):"Error",F=`${this.serviceName}: ${N} (${v}).`,U=new FirebaseError(v,F,f);return U}};let w=/\{\$([^}]+)}/g;function isObject(e){return null!==e&&"object"==typeof e}/**
 * @license
 * Copyright 2021 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function getModularInstance(e){return e&&e._delegate?e._delegate:e}/**
 * @license
 * Copyright 2022 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function promisifyRequest(e,o){return new Promise((f,v)=>{e.onsuccess=e=>{f(e.target.result)},e.onerror=e=>{var f;v(`${o}: ${null===(f=e.target.error)||void 0===f?void 0:f.message}`)}})}let DBWrapper=class DBWrapper{constructor(e){this._db=e,this.objectStoreNames=this._db.objectStoreNames}transaction(e,o){return new TransactionWrapper(this._db.transaction.call(this._db,e,o))}createObjectStore(e,o){return new ObjectStoreWrapper(this._db.createObjectStore(e,o))}close(){this._db.close()}};let TransactionWrapper=class TransactionWrapper{constructor(e){this._transaction=e,this.complete=new Promise((e,o)=>{this._transaction.oncomplete=function(){e()},this._transaction.onerror=()=>{o(this._transaction.error)},this._transaction.onabort=()=>{o(this._transaction.error)}})}objectStore(e){return new ObjectStoreWrapper(this._transaction.objectStore(e))}};let ObjectStoreWrapper=class ObjectStoreWrapper{constructor(e){this._store=e}index(e){return new IndexWrapper(this._store.index(e))}createIndex(e,o,f){return new IndexWrapper(this._store.createIndex(e,o,f))}get(e){let o=this._store.get(e);return promisifyRequest(o,"Error reading from IndexedDB")}put(e,o){let f=this._store.put(e,o);return promisifyRequest(f,"Error writing to IndexedDB")}delete(e){let o=this._store.delete(e);return promisifyRequest(o,"Error deleting from IndexedDB")}clear(){let e=this._store.clear();return promisifyRequest(e,"Error clearing IndexedDB object store")}};let IndexWrapper=class IndexWrapper{constructor(e){this._index=e}get(e){let o=this._index.get(e);return promisifyRequest(o,"Error reading from IndexedDB")}};function openDB(e,o,f){return new Promise((v,w)=>{try{let P=indexedDB.open(e,o);P.onsuccess=e=>{v(new DBWrapper(e.target.result))},P.onerror=e=>{var o;w(`Error opening indexedDB: ${null===(o=e.target.error)||void 0===o?void 0:o.message}`)},P.onupgradeneeded=e=>{f(new DBWrapper(P.result),e.oldVersion,e.newVersion,new TransactionWrapper(P.transaction))}}catch(e){w(`Error opening indexedDB: ${e.message}`)}})}async function deleteDB(e){return new Promise((o,f)=>{try{let v=indexedDB.deleteDatabase(e);v.onsuccess=()=>{o()},v.onerror=o=>{var v;f(`Error deleting indexedDB database "${e}": ${null===(v=o.target.error)||void 0===v?void 0:v.message}`)}}catch(o){f(`Error deleting indexedDB database "${e}": ${o.message}`)}})}},1271:function(e,o){"use strict";o.Z=function(e){for(var o=[],f=1;f<arguments.length;f++)o[f-1]=arguments[f];return e.reduce(function(e,f,v){var w=o[v];return"string"==typeof w?""+e+f+w:""+e+f},"").trim().replace(/\s{2,}/g," ")}},11146:function(e,o,f){"use strict";f.d(o,{KL:function(){return getMessagingInWindow},LP:function(){return index_esm2017_getToken},Gb:function(){return isWindowSupported},ps:function(){return onMessage}});var v,w,P,N,F=f(44164),U=f(8463),V=f(74444);let H="@firebase/installations",q="0.5.7",W=`w:${q}`,K="FIS_v2",G=new V.LL("installations","Installations",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."});function isServerError(e){return e instanceof V.ZR&&e.code.includes("request-failed")}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function getInstallationsEndpoint({projectId:e}){return`https://firebaseinstallations.googleapis.com/v1/projects/${e}/installations`}function extractAuthTokenInfoFromResponse(e){return{token:e.token,requestStatus:2,expiresIn:Number(e.expiresIn.replace("s","000")),creationTime:Date.now()}}async function getErrorFromResponse(e,o){let f=await o.json(),v=f.error;return G.create("request-failed",{requestName:e,serverCode:v.code,serverMessage:v.message,serverStatus:v.status})}function getHeaders({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}async function retryIfServerError(e){let o=await e();return o.status>=500&&o.status<600?e():o}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function createInstallationRequest({appConfig:e,heartbeatServiceProvider:o},{fid:f}){let v=getInstallationsEndpoint(e),w=getHeaders(e),P=o.getImmediate({optional:!0});if(P){let e=await P.getHeartbeatsHeader();e&&w.append("x-firebase-client",e)}let N={fid:f,authVersion:K,appId:e.appId,sdkVersion:W},F={method:"POST",headers:w,body:JSON.stringify(N)},U=await retryIfServerError(()=>fetch(v,F));if(U.ok){let e=await U.json(),o={fid:e.fid||f,registrationStatus:2,refreshToken:e.refreshToken,authToken:extractAuthTokenInfoFromResponse(e.authToken)};return o}throw await getErrorFromResponse("Create Installation",U)}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function sleep(e){return new Promise(o=>{setTimeout(o,e)})}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let Z=/^[cdef][\w-]{21}$/;/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function getKey(e){return`${e.appName}!${e.appId}`}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let X=new Map;function fidChanged(e,o){let f=getKey(e);callFidChangeCallbacks(f,o),function(e,o){let f=(!J&&"BroadcastChannel"in self&&((J=new BroadcastChannel("[Firebase] FID Change")).onmessage=e=>{callFidChangeCallbacks(e.data.key,e.data.fid)}),J);f&&f.postMessage({key:e,fid:o}),0===X.size&&J&&(J.close(),J=null)}(f,o)}function callFidChangeCallbacks(e,o){let f=X.get(e);if(f)for(let e of f)e(o)}let J=null,Y="firebase-installations-store",ee=null;function getDbPromise(){return ee||(ee=(0,V.X3)("firebase-installations-database",1,(e,o)=>{0===o&&e.createObjectStore(Y)})),ee}async function set(e,o){let f=getKey(e),v=await getDbPromise(),w=v.transaction(Y,"readwrite"),P=w.objectStore(Y),N=await P.get(f);return await P.put(o,f),await w.complete,N&&N.fid===o.fid||fidChanged(e,o.fid),o}async function remove(e){let o=getKey(e),f=await getDbPromise(),v=f.transaction(Y,"readwrite");await v.objectStore(Y).delete(o),await v.complete}async function update(e,o){let f=getKey(e),v=await getDbPromise(),w=v.transaction(Y,"readwrite"),P=w.objectStore(Y),N=await P.get(f),F=o(N);return void 0===F?await P.delete(f):await P.put(F,f),await w.complete,F&&(!N||N.fid!==F.fid)&&fidChanged(e,F.fid),F}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function getInstallationEntry(e){let o;let f=await update(e.appConfig,f=>{let v=function(e){let o=e||{fid:function(){try{let e=new Uint8Array(17),o=self.crypto||self.msCrypto;o.getRandomValues(e),e[0]=112+e[0]%16;let f=function(e){let o=/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function(e){let o=btoa(String.fromCharCode(...e));return o.replace(/\+/g,"-").replace(/\//g,"_")}(e);return o.substr(0,22)}(e);return Z.test(f)?f:""}catch(e){return""}}(),registrationStatus:0};return clearTimedOutRequest(o)}(f),w=function(e,o){if(0===o.registrationStatus){if(!navigator.onLine){let e=Promise.reject(G.create("app-offline"));return{installationEntry:o,registrationPromise:e}}let f={fid:o.fid,registrationStatus:1,registrationTime:Date.now()},v=registerInstallation(e,f);return{installationEntry:f,registrationPromise:v}}return 1===o.registrationStatus?{installationEntry:o,registrationPromise:waitUntilFidRegistration(e)}:{installationEntry:o}}(e,v);return o=w.registrationPromise,w.installationEntry});return""===f.fid?{installationEntry:await o}:{installationEntry:f,registrationPromise:o}}async function registerInstallation(e,o){try{let f=await createInstallationRequest(e,o);return set(e.appConfig,f)}catch(f){throw isServerError(f)&&409===f.customData.serverCode?await remove(e.appConfig):await set(e.appConfig,{fid:o.fid,registrationStatus:0}),f}}async function waitUntilFidRegistration(e){let o=await updateInstallationRequest(e.appConfig);for(;1===o.registrationStatus;)await sleep(100),o=await updateInstallationRequest(e.appConfig);if(0===o.registrationStatus){let{installationEntry:o,registrationPromise:f}=await getInstallationEntry(e);return f||o}return o}function updateInstallationRequest(e){return update(e,e=>{if(!e)throw G.create("installation-not-found");return clearTimedOutRequest(e)})}function clearTimedOutRequest(e){return 1===e.registrationStatus&&e.registrationTime+1e4<Date.now()?{fid:e.fid,registrationStatus:0}:e}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function generateAuthTokenRequest({appConfig:e,heartbeatServiceProvider:o},f){let v=function(e,{fid:o}){return`${getInstallationsEndpoint(e)}/${o}/authTokens:generate`}(e,f),w=function(e,{refreshToken:o}){let f=getHeaders(e);return f.append("Authorization",`${K} ${o}`),f}(e,f),P=o.getImmediate({optional:!0});if(P){let e=await P.getHeartbeatsHeader();e&&w.append("x-firebase-client",e)}let N={installation:{sdkVersion:W,appId:e.appId}},F={method:"POST",headers:w,body:JSON.stringify(N)},U=await retryIfServerError(()=>fetch(v,F));if(U.ok){let e=await U.json(),o=extractAuthTokenInfoFromResponse(e);return o}throw await getErrorFromResponse("Generate Auth Token",U)}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function refreshAuthToken(e,o=!1){let f;let v=await update(e.appConfig,v=>{var w;if(!isEntryRegistered(v))throw G.create("not-registered");let P=v.authToken;if(!o&&2===(w=P).requestStatus&&!function(e){let o=Date.now();return o<e.creationTime||e.creationTime+e.expiresIn<o+36e5}(w))return v;if(1===P.requestStatus)return f=waitUntilAuthTokenRequest(e,o),v;{if(!navigator.onLine)throw G.create("app-offline");let o=function(e){let o={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},e),{authToken:o})}(v);return f=fetchAuthTokenFromServer(e,o),o}}),w=f?await f:v.authToken;return w}async function waitUntilAuthTokenRequest(e,o){let f=await updateAuthTokenRequest(e.appConfig);for(;1===f.authToken.requestStatus;)await sleep(100),f=await updateAuthTokenRequest(e.appConfig);let v=f.authToken;return 0===v.requestStatus?refreshAuthToken(e,o):v}function updateAuthTokenRequest(e){return update(e,e=>{if(!isEntryRegistered(e))throw G.create("not-registered");let o=e.authToken;return 1===o.requestStatus&&o.requestTime+1e4<Date.now()?Object.assign(Object.assign({},e),{authToken:{requestStatus:0}}):e})}async function fetchAuthTokenFromServer(e,o){try{let f=await generateAuthTokenRequest(e,o),v=Object.assign(Object.assign({},o),{authToken:f});return await set(e.appConfig,v),f}catch(f){if(isServerError(f)&&(401===f.customData.serverCode||404===f.customData.serverCode))await remove(e.appConfig);else{let f=Object.assign(Object.assign({},o),{authToken:{requestStatus:0}});await set(e.appConfig,f)}throw f}}function isEntryRegistered(e){return void 0!==e&&2===e.registrationStatus}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function getId(e){let{installationEntry:o,registrationPromise:f}=await getInstallationEntry(e);return f?f.catch(console.error):refreshAuthToken(e).catch(console.error),o.fid}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function getToken(e,o=!1){await completeInstallationRegistration(e);let f=await refreshAuthToken(e,o);return f.token}async function completeInstallationRegistration(e){let{registrationPromise:o}=await getInstallationEntry(e);o&&await o}function getMissingValueError(e){return G.create("missing-app-config-values",{valueName:e})}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let et="installations";(0,F.Xd)(new U.wA(et,e=>{let o=e.getProvider("app").getImmediate(),f=/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function(e){if(!e||!e.options)throw getMissingValueError("App Configuration");if(!e.name)throw getMissingValueError("App Name");for(let o of["projectId","apiKey","appId"])if(!e.options[o])throw getMissingValueError(o);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}(o),v=(0,F.qX)(o,"heartbeat");return{app:o,appConfig:f,heartbeatServiceProvider:v,_delete:()=>Promise.resolve()}},"PUBLIC")),(0,F.Xd)(new U.wA("installations-internal",e=>{let o=e.getProvider("app").getImmediate(),f=(0,F.qX)(o,et).getImmediate();return{getId:()=>getId(f),getToken:e=>getToken(f,e)}},"PRIVATE")),(0,F.KN)(H,q),(0,F.KN)(H,q,"esm2017");let er="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",en="google.c.a.c_id";/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function arrayToBase64(e){let o=new Uint8Array(e),f=btoa(String.fromCharCode(...o));return f.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}(v=P||(P={}))[v.DATA_MESSAGE=1]="DATA_MESSAGE",v[v.DISPLAY_NOTIFICATION=3]="DISPLAY_NOTIFICATION",(w=N||(N={})).PUSH_RECEIVED="push-received",w.NOTIFICATION_CLICKED="notification-clicked";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let eo="fcm_token_details_db",ei="fcm_token_object_Store";async function migrateOldDatabase(e){if("databases"in indexedDB){let e=await indexedDB.databases(),o=e.map(e=>e.name);if(!o.includes(eo))return null}let o=null,f=await (0,V.X3)(eo,5,async(f,v,w,P)=>{var N;if(v<2||!f.objectStoreNames.contains(ei))return;let F=P.objectStore(ei),U=await F.index("fcmSenderId").get(e);if(await F.clear(),U){if(2===v){if(!U.auth||!U.p256dh||!U.endpoint)return;o={token:U.fcmToken,createTime:null!==(N=U.createTime)&&void 0!==N?N:Date.now(),subscriptionOptions:{auth:U.auth,p256dh:U.p256dh,endpoint:U.endpoint,swScope:U.swScope,vapidKey:"string"==typeof U.vapidKey?U.vapidKey:arrayToBase64(U.vapidKey)}}}else 3===v?o={token:U.fcmToken,createTime:U.createTime,subscriptionOptions:{auth:arrayToBase64(U.auth),p256dh:arrayToBase64(U.p256dh),endpoint:U.endpoint,swScope:U.swScope,vapidKey:arrayToBase64(U.vapidKey)}}:4===v&&(o={token:U.fcmToken,createTime:U.createTime,subscriptionOptions:{auth:arrayToBase64(U.auth),p256dh:arrayToBase64(U.p256dh),endpoint:U.endpoint,swScope:U.swScope,vapidKey:arrayToBase64(U.vapidKey)}})}});return f.close(),await (0,V.Lj)(eo),await (0,V.Lj)("fcm_vapid_details_db"),await (0,V.Lj)("undefined"),!function(e){if(!e||!e.subscriptionOptions)return!1;let{subscriptionOptions:o}=e;return"number"==typeof e.createTime&&e.createTime>0&&"string"==typeof e.token&&e.token.length>0&&"string"==typeof o.auth&&o.auth.length>0&&"string"==typeof o.p256dh&&o.p256dh.length>0&&"string"==typeof o.endpoint&&o.endpoint.length>0&&"string"==typeof o.swScope&&o.swScope.length>0&&"string"==typeof o.vapidKey&&o.vapidKey.length>0}(o)?null:o}let ea="firebase-messaging-store",es=null;function index_esm2017_getDbPromise(){return es||(es=(0,V.X3)("firebase-messaging-database",1,(e,o)=>{0===o&&e.createObjectStore(ea)})),es}async function dbGet(e){let o=function({appConfig:e}){return e.appId}(e),f=await index_esm2017_getDbPromise(),v=await f.transaction(ea).objectStore(ea).get(o);if(v)return v;{let o=await migrateOldDatabase(e.appConfig.senderId);if(o)return await dbSet(e,o),o}}async function dbSet(e,o){let f=function({appConfig:e}){return e.appId}(e),v=await index_esm2017_getDbPromise(),w=v.transaction(ea,"readwrite");return await w.objectStore(ea).put(o,f),await w.complete,o}async function dbRemove(e){let o=function({appConfig:e}){return e.appId}(e),f=await index_esm2017_getDbPromise(),v=f.transaction(ea,"readwrite");await v.objectStore(ea).delete(o),await v.complete}let el=new V.LL("messaging","Messaging",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"only-available-in-window":"This method is available in a Window context.","only-available-in-sw":"This method is available in a service worker context.","permission-default":"The notification permission was not granted and dismissed instead.","permission-blocked":"The notification permission was not granted and blocked instead.","unsupported-browser":"This browser doesn't support the API's required to use the Firebase SDK.","indexed-db-unsupported":"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)","failed-service-worker-registration":"We are unable to register the default service worker. {$browserErrorMessage}","token-subscribe-failed":"A problem occurred while subscribing the user to FCM: {$errorInfo}","token-subscribe-no-token":"FCM returned no token when subscribing the user to push.","token-unsubscribe-failed":"A problem occurred while unsubscribing the user from FCM: {$errorInfo}","token-update-failed":"A problem occurred while updating the user from FCM: {$errorInfo}","token-update-no-token":"FCM returned no token when updating the user to push.","use-sw-after-get-token":"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.","invalid-sw-registration":"The input to useServiceWorker() must be a ServiceWorkerRegistration.","invalid-bg-handler":"The input to setBackgroundMessageHandler() must be a function.","invalid-vapid-key":"The public VAPID key must be a string.","use-vapid-key-after-get-token":"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."});/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function requestGetToken(e,o){let f;let v=await index_esm2017_getHeaders(e),w=getBody(o),P={method:"POST",headers:v,body:JSON.stringify(w)};try{let o=await fetch(getEndpoint(e.appConfig),P);f=await o.json()}catch(e){throw el.create("token-subscribe-failed",{errorInfo:e})}if(f.error){let e=f.error.message;throw el.create("token-subscribe-failed",{errorInfo:e})}if(!f.token)throw el.create("token-subscribe-no-token");return f.token}async function requestUpdateToken(e,o){let f;let v=await index_esm2017_getHeaders(e),w=getBody(o.subscriptionOptions),P={method:"PATCH",headers:v,body:JSON.stringify(w)};try{let v=await fetch(`${getEndpoint(e.appConfig)}/${o.token}`,P);f=await v.json()}catch(e){throw el.create("token-update-failed",{errorInfo:e})}if(f.error){let e=f.error.message;throw el.create("token-update-failed",{errorInfo:e})}if(!f.token)throw el.create("token-update-no-token");return f.token}async function requestDeleteToken(e,o){let f=await index_esm2017_getHeaders(e);try{let v=await fetch(`${getEndpoint(e.appConfig)}/${o}`,{method:"DELETE",headers:f}),w=await v.json();if(w.error){let e=w.error.message;throw el.create("token-unsubscribe-failed",{errorInfo:e})}}catch(e){throw el.create("token-unsubscribe-failed",{errorInfo:e})}}function getEndpoint({projectId:e}){return`https://fcmregistrations.googleapis.com/v1/projects/${e}/registrations`}async function index_esm2017_getHeaders({appConfig:e,installations:o}){let f=await o.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e.apiKey,"x-goog-firebase-installations-auth":`FIS ${f}`})}function getBody({p256dh:e,auth:o,endpoint:f,vapidKey:v}){let w={web:{endpoint:f,auth:o,p256dh:e}};return v!==er&&(w.web.applicationPubKey=v),w}async function getTokenInternal(e){let o=await getPushSubscription(e.swRegistration,e.vapidKey),f={vapidKey:e.vapidKey,swScope:e.swRegistration.scope,endpoint:o.endpoint,auth:arrayToBase64(o.getKey("auth")),p256dh:arrayToBase64(o.getKey("p256dh"))},v=await dbGet(e.firebaseDependencies);if(!v)return getNewToken(e.firebaseDependencies,f);if(function(e,o){let f=o.vapidKey===e.vapidKey,v=o.endpoint===e.endpoint,w=o.auth===e.auth,P=o.p256dh===e.p256dh;return f&&v&&w&&P}(v.subscriptionOptions,f))return Date.now()>=v.createTime+6048e5?updateToken(e,{token:v.token,createTime:Date.now(),subscriptionOptions:f}):v.token;try{await requestDeleteToken(e.firebaseDependencies,v.token)}catch(e){console.warn(e)}return getNewToken(e.firebaseDependencies,f)}async function deleteTokenInternal(e){let o=await dbGet(e.firebaseDependencies);o&&(await requestDeleteToken(e.firebaseDependencies,o.token),await dbRemove(e.firebaseDependencies));let f=await e.swRegistration.pushManager.getSubscription();return!f||f.unsubscribe()}async function updateToken(e,o){try{let f=await requestUpdateToken(e.firebaseDependencies,o),v=Object.assign(Object.assign({},o),{token:f,createTime:Date.now()});return await dbSet(e.firebaseDependencies,v),f}catch(o){throw await deleteTokenInternal(e),o}}async function getNewToken(e,o){let f=await requestGetToken(e,o),v={token:f,createTime:Date.now(),subscriptionOptions:o};return await dbSet(e,v),v.token}async function getPushSubscription(e,o){let f=await e.pushManager.getSubscription();return f||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:function(e){let o="=".repeat((4-e.length%4)%4),f=(e+o).replace(/\-/g,"+").replace(/_/g,"/"),v=atob(f),w=new Uint8Array(v.length);for(let e=0;e<v.length;++e)w[e]=v.charCodeAt(e);return w}(o)})}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function externalizePayload(e){let o={from:e.from,collapseKey:e.collapse_key,messageId:e.fcmMessageId};return function(e,o){if(!o.notification)return;e.notification={};let f=o.notification.title;f&&(e.notification.title=f);let v=o.notification.body;v&&(e.notification.body=v);let w=o.notification.image;w&&(e.notification.image=w)}(o,e),e.data&&(o.data=e.data),function(e,o){if(!o.fcmOptions)return;e.fcmOptions={};let f=o.fcmOptions.link;f&&(e.fcmOptions.link=f);let v=o.fcmOptions.analytics_label;v&&(e.fcmOptions.analyticsLabel=v)}(o,e),o}function _mergeStrings(e,o){let f=[];for(let v=0;v<e.length;v++)f.push(e.charAt(v)),v<o.length&&f.push(o.charAt(v));return f.join("")}function index_esm2017_getMissingValueError(e){return el.create("missing-app-config-values",{valueName:e})}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */_mergeStrings("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),_mergeStrings("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let MessagingService=class MessagingService{constructor(e,o,f){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;let v=/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function(e){if(!e||!e.options)throw index_esm2017_getMissingValueError("App Configuration Object");if(!e.name)throw index_esm2017_getMissingValueError("App Name");let{options:o}=e;for(let e of["projectId","apiKey","appId","messagingSenderId"])if(!o[e])throw index_esm2017_getMissingValueError(e);return{appName:e.name,projectId:o.projectId,apiKey:o.apiKey,appId:o.appId,senderId:o.messagingSenderId}}(e);this.firebaseDependencies={app:e,appConfig:v,installations:o,analyticsProvider:f}}_delete(){return Promise.resolve()}};/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function registerDefaultSw(e){try{e.swRegistration=await navigator.serviceWorker.register("/firebase-messaging-sw.js",{scope:"/firebase-cloud-messaging-push-scope"}),e.swRegistration.update().catch(()=>{})}catch(e){throw el.create("failed-service-worker-registration",{browserErrorMessage:e.message})}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function updateSwReg(e,o){if(o||e.swRegistration||await registerDefaultSw(e),o||!e.swRegistration){if(!(o instanceof ServiceWorkerRegistration))throw el.create("invalid-sw-registration");e.swRegistration=o}}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function updateVapidKey(e,o){o?e.vapidKey=o:e.vapidKey||(e.vapidKey=er)}/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function getToken$1(e,o){if(!navigator)throw el.create("only-available-in-window");if("default"===Notification.permission&&await Notification.requestPermission(),"granted"!==Notification.permission)throw el.create("permission-blocked");return await updateVapidKey(e,null==o?void 0:o.vapidKey),await updateSwReg(e,null==o?void 0:o.serviceWorkerRegistration),getTokenInternal(e)}/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function logToScion(e,o,f){let v=function(e){switch(e){case N.NOTIFICATION_CLICKED:return"notification_open";case N.PUSH_RECEIVED:return"notification_foreground";default:throw Error()}}(o),w=await e.firebaseDependencies.analyticsProvider.get();w.logEvent(v,{message_id:f[en],message_name:f["google.c.a.c_l"],message_time:f["google.c.a.ts"],message_device_time:Math.floor(Date.now()/1e3)})}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function messageEventListener(e,o){let f=o.data;if(!f.isFirebaseMessaging)return;e.onMessageHandler&&f.messageType===N.PUSH_RECEIVED&&("function"==typeof e.onMessageHandler?e.onMessageHandler(externalizePayload(f)):e.onMessageHandler.next(externalizePayload(f)));let v=f.data;"object"==typeof v&&v&&en in v&&"1"===v["google.c.a.e"]&&await logToScion(e,f.messageType,v)}let eu="@firebase/messaging",ec="0.9.11";/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */async function isWindowSupported(){try{await (0,V.eu)()}catch(e){return!1}return"undefined"!=typeof window&&(0,V.hl)()&&(0,V.zI)()&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function getMessagingInWindow(e=(0,F.Mq)()){return isWindowSupported().then(e=>{if(!e)throw el.create("unsupported-browser")},e=>{throw el.create("indexed-db-unsupported")}),(0,F.qX)((0,V.m9)(e),"messaging").getImmediate()}async function index_esm2017_getToken(e,o){return getToken$1(e=(0,V.m9)(e),o)}function onMessage(e,o){return(/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */function(e,o){if(!navigator)throw el.create("only-available-in-window");return e.onMessageHandler=o,()=>{e.onMessageHandler=null}}(e=(0,V.m9)(e),o))}(0,F.Xd)(new U.wA("messaging",e=>{let o=new MessagingService(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),e.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",e=>messageEventListener(o,e)),o},"PUBLIC")),(0,F.Xd)(new U.wA("messaging-internal",e=>{let o=e.getProvider("messaging").getImmediate();return{getToken:e=>getToken$1(o,e)}},"PRIVATE")),(0,F.KN)(eu,ec),(0,F.KN)(eu,ec,"esm2017")},29548:function(e,o,f){"use strict";var v=f(36426);Object.defineProperty(o,"__esModule",{value:!0}),o.BroadcastChannel=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"nextauth.message";return{receive:function(o){var handler=function(f){if(f.key===e){var v,w=JSON.parse(null!==(v=f.newValue)&&void 0!==v?v:"{}");(null==w?void 0:w.event)==="session"&&null!=w&&w.data&&o(w)}};return window.addEventListener("storage",handler),function(){return window.removeEventListener("storage",handler)}},post:function(o){if("undefined"!=typeof window)try{localStorage.setItem(e,JSON.stringify(_objectSpread(_objectSpread({},o),{},{timestamp:now()})))}catch(e){}}}},o.apiBaseUrl=apiBaseUrl,o.fetchData=function(e,o,f){return _fetchData.apply(this,arguments)},o.now=now;var w=v(f(26572)),P=v(f(55010)),N=v(f(82479));function ownKeys(e,o){var f=Object.keys(e);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(e);o&&(v=v.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),f.push.apply(f,v)}return f}function _objectSpread(e){for(var o=1;o<arguments.length;o++){var f=null!=arguments[o]?arguments[o]:{};o%2?ownKeys(Object(f),!0).forEach(function(o){(0,P.default)(e,o,f[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(f)):ownKeys(Object(f)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(f,o))})}return e}function _fetchData(){return(_fetchData=(0,N.default)(w.default.mark(function _callee(e,o,f){var v,P,N,F,U,V,H,q,W,K=arguments;return w.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return P=(v=K.length>3&&void 0!==K[3]?K[3]:{}).ctx,F=void 0===(N=v.req)?null==P?void 0:P.req:N,U="".concat(apiBaseUrl(o),"/").concat(e),w.prev=2,H={headers:_objectSpread({"Content-Type":"application/json"},null!=F&&null!==(V=F.headers)&&void 0!==V&&V.cookie?{cookie:F.headers.cookie}:{})},null!=F&&F.body&&(H.body=JSON.stringify(F.body),H.method="POST"),w.next=7,fetch(U,H);case 7:return q=w.sent,w.next=10,q.json();case 10:if(W=w.sent,q.ok){w.next=13;break}throw W;case 13:return w.abrupt("return",Object.keys(W).length>0?W:null);case 16:return w.prev=16,w.t0=w.catch(2),f.error("CLIENT_FETCH_ERROR",{error:w.t0,url:U}),w.abrupt("return",null);case 20:case"end":return w.stop()}},_callee,null,[[2,16]])}))).apply(this,arguments)}function apiBaseUrl(e){return"undefined"==typeof window?"".concat(e.baseUrlServer).concat(e.basePathServer):e.basePath}function now(){return Math.floor(Date.now()/1e3)}},36925:function(e,o,f){"use strict";var v=f(36426);Object.defineProperty(o,"__esModule",{value:!0}),o.UnsupportedStrategy=o.UnknownError=o.OAuthCallbackError=o.MissingSecret=o.MissingAuthorize=o.MissingAdapterMethods=o.MissingAdapter=o.MissingAPIRoute=o.InvalidCallbackUrl=o.AccountNotLinkedError=void 0,o.adapterErrorHandler=function(e,o){if(e)return Object.keys(e).reduce(function(f,v){return f[v]=(0,P.default)(w.default.mark(function _callee2(){var f,P,N,F,U,V=arguments;return w.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:for(w.prev=0,P=Array(f=V.length),N=0;N<f;N++)P[N]=V[N];return o.debug("adapter_".concat(v),{args:P}),F=e[v],w.next=6,F.apply(void 0,P);case 6:return w.abrupt("return",w.sent);case 9:throw w.prev=9,w.t0=w.catch(0),o.error("adapter_error_".concat(v),w.t0),(U=new K(w.t0)).name="".concat(capitalize(v),"Error"),U;case 15:case"end":return w.stop()}},_callee2,null,[[0,9]])})),f},{})},o.capitalize=capitalize,o.eventsErrorHandler=function(e,o){return Object.keys(e).reduce(function(f,v){return f[v]=(0,P.default)(w.default.mark(function _callee(){var f,P=arguments;return w.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.prev=0,f=e[v],w.next=4,f.apply(void 0,P);case 4:return w.abrupt("return",w.sent);case 7:w.prev=7,w.t0=w.catch(0),o.error("".concat(upperSnake(v),"_EVENT_ERROR"),w.t0);case 10:case"end":return w.stop()}},_callee,null,[[0,7]])})),f},{})},o.upperSnake=upperSnake;var w=v(f(26572)),P=v(f(82479)),N=v(f(60182)),F=v(f(55010)),U=v(f(52870)),V=v(f(39033)),H=v(f(24221)),q=v(f(97688)),W=v(f(99590));function _createSuper(e){var o=function(){if("undefined"==typeof Reflect||!Reflect.construct||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}}();return function(){var f,v=(0,W.default)(e);if(o){var w=(0,W.default)(this).constructor;f=Reflect.construct(v,arguments,w)}else f=v.apply(this,arguments);return(0,q.default)(this,f)}}var K=function(e){(0,H.default)(UnknownError,e);var o=_createSuper(UnknownError);function UnknownError(e){var f,v;return(0,U.default)(this,UnknownError),(v=o.call(this,null!==(f=null==e?void 0:e.message)&&void 0!==f?f:e)).name="UnknownError",v.code=e.code,e instanceof Error&&(v.stack=e.stack),v}return(0,V.default)(UnknownError,[{key:"toJSON",value:function(){return{name:this.name,message:this.message,stack:this.stack}}}]),UnknownError}((0,v(f(32615)).default)(Error));o.UnknownError=K;var G=function(e){(0,H.default)(OAuthCallbackError,e);var o=_createSuper(OAuthCallbackError);function OAuthCallbackError(){var e;(0,U.default)(this,OAuthCallbackError);for(var f=arguments.length,v=Array(f),w=0;w<f;w++)v[w]=arguments[w];return e=o.call.apply(o,[this].concat(v)),(0,F.default)((0,N.default)(e),"name","OAuthCallbackError"),e}return(0,V.default)(OAuthCallbackError)}(K);o.OAuthCallbackError=G;var Z=function(e){(0,H.default)(AccountNotLinkedError,e);var o=_createSuper(AccountNotLinkedError);function AccountNotLinkedError(){var e;(0,U.default)(this,AccountNotLinkedError);for(var f=arguments.length,v=Array(f),w=0;w<f;w++)v[w]=arguments[w];return e=o.call.apply(o,[this].concat(v)),(0,F.default)((0,N.default)(e),"name","AccountNotLinkedError"),e}return(0,V.default)(AccountNotLinkedError)}(K);o.AccountNotLinkedError=Z;var X=function(e){(0,H.default)(MissingAPIRoute,e);var o=_createSuper(MissingAPIRoute);function MissingAPIRoute(){var e;(0,U.default)(this,MissingAPIRoute);for(var f=arguments.length,v=Array(f),w=0;w<f;w++)v[w]=arguments[w];return e=o.call.apply(o,[this].concat(v)),(0,F.default)((0,N.default)(e),"name","MissingAPIRouteError"),(0,F.default)((0,N.default)(e),"code","MISSING_NEXTAUTH_API_ROUTE_ERROR"),e}return(0,V.default)(MissingAPIRoute)}(K);o.MissingAPIRoute=X;var J=function(e){(0,H.default)(MissingSecret,e);var o=_createSuper(MissingSecret);function MissingSecret(){var e;(0,U.default)(this,MissingSecret);for(var f=arguments.length,v=Array(f),w=0;w<f;w++)v[w]=arguments[w];return e=o.call.apply(o,[this].concat(v)),(0,F.default)((0,N.default)(e),"name","MissingSecretError"),(0,F.default)((0,N.default)(e),"code","NO_SECRET"),e}return(0,V.default)(MissingSecret)}(K);o.MissingSecret=J;var Y=function(e){(0,H.default)(MissingAuthorize,e);var o=_createSuper(MissingAuthorize);function MissingAuthorize(){var e;(0,U.default)(this,MissingAuthorize);for(var f=arguments.length,v=Array(f),w=0;w<f;w++)v[w]=arguments[w];return e=o.call.apply(o,[this].concat(v)),(0,F.default)((0,N.default)(e),"name","MissingAuthorizeError"),(0,F.default)((0,N.default)(e),"code","CALLBACK_CREDENTIALS_HANDLER_ERROR"),e}return(0,V.default)(MissingAuthorize)}(K);o.MissingAuthorize=Y;var ee=function(e){(0,H.default)(MissingAdapter,e);var o=_createSuper(MissingAdapter);function MissingAdapter(){var e;(0,U.default)(this,MissingAdapter);for(var f=arguments.length,v=Array(f),w=0;w<f;w++)v[w]=arguments[w];return e=o.call.apply(o,[this].concat(v)),(0,F.default)((0,N.default)(e),"name","MissingAdapterError"),(0,F.default)((0,N.default)(e),"code","EMAIL_REQUIRES_ADAPTER_ERROR"),e}return(0,V.default)(MissingAdapter)}(K);o.MissingAdapter=ee;var et=function(e){(0,H.default)(MissingAdapterMethods,e);var o=_createSuper(MissingAdapterMethods);function MissingAdapterMethods(){var e;(0,U.default)(this,MissingAdapterMethods);for(var f=arguments.length,v=Array(f),w=0;w<f;w++)v[w]=arguments[w];return e=o.call.apply(o,[this].concat(v)),(0,F.default)((0,N.default)(e),"name","MissingAdapterMethodsError"),(0,F.default)((0,N.default)(e),"code","MISSING_ADAPTER_METHODS_ERROR"),e}return(0,V.default)(MissingAdapterMethods)}(K);o.MissingAdapterMethods=et;var er=function(e){(0,H.default)(UnsupportedStrategy,e);var o=_createSuper(UnsupportedStrategy);function UnsupportedStrategy(){var e;(0,U.default)(this,UnsupportedStrategy);for(var f=arguments.length,v=Array(f),w=0;w<f;w++)v[w]=arguments[w];return e=o.call.apply(o,[this].concat(v)),(0,F.default)((0,N.default)(e),"name","UnsupportedStrategyError"),(0,F.default)((0,N.default)(e),"code","CALLBACK_CREDENTIALS_JWT_ERROR"),e}return(0,V.default)(UnsupportedStrategy)}(K);o.UnsupportedStrategy=er;var en=function(e){(0,H.default)(InvalidCallbackUrl,e);var o=_createSuper(InvalidCallbackUrl);function InvalidCallbackUrl(){var e;(0,U.default)(this,InvalidCallbackUrl);for(var f=arguments.length,v=Array(f),w=0;w<f;w++)v[w]=arguments[w];return e=o.call.apply(o,[this].concat(v)),(0,F.default)((0,N.default)(e),"name","InvalidCallbackUrl"),(0,F.default)((0,N.default)(e),"code","INVALID_CALLBACK_URL_ERROR"),e}return(0,V.default)(InvalidCallbackUrl)}(K);function upperSnake(e){return e.replace(/([A-Z])/g,"_$1").toUpperCase()}function capitalize(e){return"".concat(e[0].toUpperCase()).concat(e.slice(1))}o.InvalidCallbackUrl=en},33299:function(e,o,f){"use strict";var v,w,P,N,F,U=f(34155),V=f(36426),H=f(4749);Object.defineProperty(o,"__esModule",{value:!0});var q={SessionContext:!0,useSession:!0,getSession:!0,getCsrfToken:!0,getProviders:!0,signIn:!0,signOut:!0,SessionProvider:!0};o.SessionContext=void 0,o.SessionProvider=function(e){if(!ea)throw Error("React Context is unavailable in Server Components");var o,f,v,w,P,N,F=e.children,U=e.basePath,V=e.refetchInterval,H=e.refetchWhenOffline;U&&(en.basePath=U);var q=void 0!==e.session;en._lastSync=q?(0,ee.now)():0;var K=X.useState(function(){return q&&(en._session=e.session),e.session}),J=(0,Z.default)(K,2),Y=J[0],er=J[1],es=X.useState(!q),el=(0,Z.default)(es,2),eu=el[0],ec=el[1];X.useEffect(function(){return en._getSession=(0,G.default)(W.default.mark(function _callee(){var e,o,f=arguments;return W.default.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(e=(f.length>0&&void 0!==f[0]?f[0]:{}).event,v.prev=1,!((o="storage"===e)||void 0===en._session)){v.next=10;break}return en._lastSync=(0,ee.now)(),v.next=7,getSession({broadcast:!o});case 7:return en._session=v.sent,er(en._session),v.abrupt("return");case 10:if(!(!e||null===en._session||(0,ee.now)()<en._lastSync)){v.next=12;break}return v.abrupt("return");case 12:return en._lastSync=(0,ee.now)(),v.next=15,getSession();case 15:en._session=v.sent,er(en._session),v.next=22;break;case 19:v.prev=19,v.t0=v.catch(1),ei.error("CLIENT_SESSION_ERROR",v.t0);case 22:return v.prev=22,ec(!1),v.finish(22);case 25:case"end":return v.stop()}},_callee,null,[[1,19,22,25]])})),en._getSession(),function(){en._lastSync=0,en._session=void 0,en._getSession=function(){}}},[]),X.useEffect(function(){var e=eo.receive(function(){return en._getSession({event:"storage"})});return function(){return e()}},[]),X.useEffect(function(){var o=e.refetchOnWindowFocus,f=void 0===o||o,visibilityHandler=function(){f&&"visible"===document.visibilityState&&en._getSession({event:"visibilitychange"})};return document.addEventListener("visibilitychange",visibilityHandler,!1),function(){return document.removeEventListener("visibilitychange",visibilityHandler,!1)}},[e.refetchOnWindowFocus]);var ef=(o=X.useState("undefined"!=typeof navigator&&navigator.onLine),v=(f=(0,Z.default)(o,2))[0],w=f[1],P=function(){return w(!0)},N=function(){return w(!1)},X.useEffect(function(){return window.addEventListener("online",P),window.addEventListener("offline",N),function(){window.removeEventListener("online",P),window.removeEventListener("offline",N)}},[]),v),ed=!1!==H||ef;X.useEffect(function(){if(V&&ed){var e=setInterval(function(){en._session&&en._getSession({event:"poll"})},1e3*V);return function(){return clearInterval(e)}}},[V,ed]);var ep=X.useMemo(function(){return{data:Y,status:eu?"loading":Y?"authenticated":"unauthenticated",update:function(e){return(0,G.default)(W.default.mark(function _callee2(){var o;return W.default.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(!(eu||!Y)){f.next=2;break}return f.abrupt("return");case 2:return ec(!0),f.t0=ee.fetchData,f.t1=en,f.t2=ei,f.next=8,getCsrfToken();case 8:return f.t3=f.sent,f.t4=e,f.t5={csrfToken:f.t3,data:f.t4},f.t6={body:f.t5},f.t7={req:f.t6},f.next=15,(0,f.t0)("session",f.t1,f.t2,f.t7);case 15:return o=f.sent,ec(!1),o&&(er(o),eo.post({event:"session",data:{trigger:"getSession"}})),f.abrupt("return",o);case 19:case"end":return f.stop()}},_callee2)}))()}}},[Y,eu]);return(0,et.jsx)(ea.Provider,{value:ep,children:F})},o.getCsrfToken=getCsrfToken,o.getProviders=getProviders,o.getSession=getSession,o.signIn=function(e,o,f){return _signIn.apply(this,arguments)},o.signOut=function(e){return _signOut.apply(this,arguments)},o.useSession=function(e){if(!ea)throw Error("React Context is unavailable in Server Components");var o=X.useContext(ea),f=null!=e?e:{},v=f.required,w=f.onUnauthenticated,P=v&&"unauthenticated"===o.status;return(X.useEffect(function(){if(P){var e="/api/auth/signin?".concat(new URLSearchParams({error:"SessionRequired",callbackUrl:window.location.href}));w?w():window.location.href=e}},[P,w]),P)?{data:o.data,update:o.update,status:"loading"}:o};var W=V(f(26572)),K=V(f(55010)),G=V(f(82479)),Z=V(f(73089)),X=_interopRequireWildcard(f(67294)),J=_interopRequireWildcard(f(26553)),Y=V(f(30762)),ee=f(29548),et=f(85893),er=f(527);function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var o=new WeakMap,f=new WeakMap;return(_getRequireWildcardCache=function(e){return e?f:o})(e)}function _interopRequireWildcard(e,o){if(!o&&e&&e.__esModule)return e;if(null===e||"object"!==H(e)&&"function"!=typeof e)return{default:e};var f=_getRequireWildcardCache(o);if(f&&f.has(e))return f.get(e);var v={},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var P in e)if("default"!==P&&Object.prototype.hasOwnProperty.call(e,P)){var N=w?Object.getOwnPropertyDescriptor(e,P):null;N&&(N.get||N.set)?Object.defineProperty(v,P,N):v[P]=e[P]}return v.default=e,f&&f.set(e,v),v}function ownKeys(e,o){var f=Object.keys(e);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(e);o&&(v=v.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),f.push.apply(f,v)}return f}function _objectSpread(e){for(var o=1;o<arguments.length;o++){var f=null!=arguments[o]?arguments[o]:{};o%2?ownKeys(Object(f),!0).forEach(function(o){(0,K.default)(e,o,f[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(f)):ownKeys(Object(f)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(f,o))})}return e}Object.keys(er).forEach(function(e){!("default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(q,e))&&(e in o&&o[e]===er[e]||Object.defineProperty(o,e,{enumerable:!0,get:function(){return er[e]}}))});var en={baseUrl:(0,Y.default)(null!==(v=U.env.NEXTAUTH_URL)&&void 0!==v?v:U.env.VERCEL_URL).origin,basePath:(0,Y.default)(U.env.NEXTAUTH_URL).path,baseUrlServer:(0,Y.default)(null!==(w=null!==(P=U.env.NEXTAUTH_URL_INTERNAL)&&void 0!==P?P:U.env.NEXTAUTH_URL)&&void 0!==w?w:U.env.VERCEL_URL).origin,basePathServer:(0,Y.default)(null!==(N=U.env.NEXTAUTH_URL_INTERNAL)&&void 0!==N?N:U.env.NEXTAUTH_URL).path,_lastSync:0,_session:void 0,_getSession:function(){}},eo=(0,ee.BroadcastChannel)(),ei=(0,J.proxyLogger)(J.default,en.basePath),ea=null===(F=X.createContext)||void 0===F?void 0:F.call(X,void 0);function getSession(e){return _getSession2.apply(this,arguments)}function _getSession2(){return(_getSession2=(0,G.default)(W.default.mark(function _callee3(e){var o,f;return W.default.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.next=2,(0,ee.fetchData)("session",en,ei,e);case 2:return f=v.sent,(null===(o=null==e?void 0:e.broadcast)||void 0===o||o)&&eo.post({event:"session",data:{trigger:"getSession"}}),v.abrupt("return",f);case 5:case"end":return v.stop()}},_callee3)}))).apply(this,arguments)}function getCsrfToken(e){return _getCsrfToken.apply(this,arguments)}function _getCsrfToken(){return(_getCsrfToken=(0,G.default)(W.default.mark(function _callee4(e){var o;return W.default.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,(0,ee.fetchData)("csrf",en,ei,e);case 2:return o=f.sent,f.abrupt("return",null==o?void 0:o.csrfToken);case 4:case"end":return f.stop()}},_callee4)}))).apply(this,arguments)}function getProviders(){return _getProviders.apply(this,arguments)}function _getProviders(){return(_getProviders=(0,G.default)(W.default.mark(function _callee5(){return W.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,ee.fetchData)("providers",en,ei);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},_callee5)}))).apply(this,arguments)}function _signIn(){return(_signIn=(0,G.default)(W.default.mark(function _callee6(e,o,f){var v,w,P,N,F,U,V,H,q,K,G,Z,X,J,Y,et,er;return W.default.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return P=void 0===(w=(v=null!=o?o:{}).callbackUrl)?window.location.href:w,F=void 0===(N=v.redirect)||N,U=(0,ee.apiBaseUrl)(en),W.next=4,getProviders();case 4:if(V=W.sent){W.next=8;break}return window.location.href="".concat(U,"/error"),W.abrupt("return");case 8:if(!(!e||!(e in V))){W.next=11;break}return window.location.href="".concat(U,"/signin?").concat(new URLSearchParams({callbackUrl:P})),W.abrupt("return");case 11:return H="credentials"===V[e].type,q="email"===V[e].type,K=H||q,G="".concat(U,"/").concat(H?"callback":"signin","/").concat(e),Z="".concat(G).concat(f?"?".concat(new URLSearchParams(f)):""),W.t0=fetch,W.t1=Z,W.t2={"Content-Type":"application/x-www-form-urlencoded"},W.t3=URLSearchParams,W.t4=_objectSpread,W.t5=_objectSpread({},o),W.t6={},W.next=25,getCsrfToken();case 25:return W.t7=W.sent,W.t8=P,W.t9={csrfToken:W.t7,callbackUrl:W.t8,json:!0},W.t10=(0,W.t4)(W.t5,W.t6,W.t9),W.t11=new W.t3(W.t10),W.t12={method:"post",headers:W.t2,body:W.t11},W.next=33,(0,W.t0)(W.t1,W.t12);case 33:return X=W.sent,W.next=36,X.json();case 36:if(J=W.sent,!(F||!K)){W.next=42;break}return et=null!==(Y=J.url)&&void 0!==Y?Y:P,window.location.href=et,et.includes("#")&&window.location.reload(),W.abrupt("return");case 42:if(er=new URL(J.url).searchParams.get("error"),!X.ok){W.next=46;break}return W.next=46,en._getSession({event:"storage"});case 46:return W.abrupt("return",{error:er,status:X.status,ok:X.ok,url:er?null:J.url});case 47:case"end":return W.stop()}},_callee6)}))).apply(this,arguments)}function _signOut(){return(_signOut=(0,G.default)(W.default.mark(function _callee7(e){var o,f,v,w,P,N,F,U,V;return W.default.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:return v=void 0===(f=(null!=e?e:{}).callbackUrl)?window.location.href:f,w=(0,ee.apiBaseUrl)(en),H.t0={"Content-Type":"application/x-www-form-urlencoded"},H.t1=URLSearchParams,H.next=6,getCsrfToken();case 6:return H.t2=H.sent,H.t3=v,H.t4={csrfToken:H.t2,callbackUrl:H.t3,json:!0},H.t5=new H.t1(H.t4),P={method:"post",headers:H.t0,body:H.t5},H.next=13,fetch("".concat(w,"/signout"),P);case 13:return N=H.sent,H.next=16,N.json();case 16:if(F=H.sent,eo.post({event:"session",data:{trigger:"signout"}}),!(null===(o=null==e?void 0:e.redirect)||void 0===o||o)){H.next=23;break}return V=null!==(U=F.url)&&void 0!==U?U:v,window.location.href=V,V.includes("#")&&window.location.reload(),H.abrupt("return");case 23:return H.next=25,en._getSession({event:"storage"});case 25:return H.abrupt("return",F);case 26:case"end":return H.stop()}},_callee7)}))).apply(this,arguments)}o.SessionContext=ea},527:function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0})},26553:function(e,o,f){"use strict";var v=f(36426);Object.defineProperty(o,"__esModule",{value:!0}),o.default=void 0,o.proxyLogger=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:N,o=arguments.length>1?arguments[1]:void 0;try{if("undefined"==typeof window)return e;var f={},_loop=function(e){f[e]=function(f,v){N[e](f,v),"error"===e&&(v=formatError(v)),v.client=!0;var P="".concat(o,"/_log"),F=new URLSearchParams(function(e){for(var o=1;o<arguments.length;o++){var f=null!=arguments[o]?arguments[o]:{};o%2?ownKeys(Object(f),!0).forEach(function(o){(0,w.default)(e,o,f[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(f)):ownKeys(Object(f)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(f,o))})}return e}({level:e,code:f},v));return navigator.sendBeacon?navigator.sendBeacon(P,F):fetch(P,{method:"POST",body:F,keepalive:!0})}};for(var v in e)_loop(v);return f}catch(e){return N}},o.setLogger=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;o||(N.debug=function(){}),e.error&&(N.error=e.error),e.warn&&(N.warn=e.warn),e.debug&&(N.debug=e.debug)};var w=v(f(55010)),P=f(36925);function ownKeys(e,o){var f=Object.keys(e);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(e);o&&(v=v.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),f.push.apply(f,v)}return f}function formatError(e){var o;return e instanceof Error&&!(e instanceof P.UnknownError)?{message:e.message,stack:e.stack,name:e.name}:(null!=e&&e.error&&(e.error=formatError(e.error),e.message=null!==(o=e.message)&&void 0!==o?o:e.error.message),e)}var N={error:function(e,o){o=formatError(o),console.error("[next-auth][error][".concat(e,"]"),"\nhttps://next-auth.js.org/errors#".concat(e.toLowerCase()),o.message,o)},warn:function(e){console.warn("[next-auth][warn][".concat(e,"]"),"\nhttps://next-auth.js.org/warnings#".concat(e.toLowerCase()))},debug:function(e,o){console.log("[next-auth][debug][".concat(e,"]"),o)}};o.default=N},30762:function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.default=function(e){var o;let f=new URL("http://localhost:3000/api/auth");e&&!e.startsWith("http")&&(e=`https://${e}`);let v=new URL(null!==(o=e)&&void 0!==o?o:f),w=("/"===v.pathname?f.pathname:v.pathname).replace(/\/$/,""),P=`${v.origin}${w}`;return{origin:v.origin,host:v.host,path:w,base:P,toString:()=>P}}},6840:function(e,o,f){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return f(44105)}])},86017:function(e,o,f){"use strict";f.d(o,{$:function(){return Spinner}});var v=f(82729),w=f(85893),P=f(1271),N=f(93826);function _templateObject(){let e=(0,v._)(["\n  spinner\n  w-full\n  h-full\n  flex\n  justify-center\n  items-center\n"]);return _templateObject=function(){return e},e}let F=(0,P.Z)(_templateObject()),Spinner=e=>{let{className:o,iconClassName:f,size:v="md",category:P="primary"}=e;return(0,w.jsx)("div",{className:(0,N.A)(F,o),children:(0,w.jsxs)("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",role:"status",className:(0,N.A)("text-gray-200 animate-spin dark:text-gray-600",{"w-[16px] h-[16px]":"sm"===v,"w-[24px] h-[24px]":"md"===v,"w-[32px] h-[32px]":"lg"===v,"w-[40px] h-[40px]":"xl"===v,"fill-primary":"primary"===P,"fill-white":"secondary"===P},f),children:[(0,w.jsx)("path",{d:"M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z",opacity:".25"}),(0,w.jsx)("path",{d:"M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z",className:"spinner_z9k8"})]})})}},44105:function(e,o,f){"use strict";f.r(o),f.d(o,{default:function(){return _app},reportWebVitals:function(){return reportWebVitals}});var v=f(85893),w=f(67294),P=f(66192),N=f(32161),F=f(30819),U=f(30081),V=f(72379),H=f(89643);let Query=class Query extends H.F{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||F._,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){let o="function"==typeof e.initialData?e.initialData():e.initialData,f=void 0!==o,v=f?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:o,dataUpdateCount:0,dataUpdatedAt:f?null!=v?v:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:f?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,o){let f=(0,N.oE)(this.state.data,e,this.options);return this.dispatch({data:f,type:"success",dataUpdatedAt:null==o?void 0:o.updatedAt,manual:null==o?void 0:o.manual}),f}setState(e,o){this.dispatch({type:"setState",state:e,setStateOptions:o})}cancel(e){var o;let f=this.promise;return null==(o=this.retryer)||o.cancel(e),f?f.then(N.ZT).catch(N.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>!1!==e.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,N.Kp)(this.state.dataUpdatedAt,e)}onFocus(){var e;let o=this.observers.find(e=>e.shouldFetchOnWindowFocus());o&&o.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;let o=this.observers.find(e=>e.shouldFetchOnReconnect());o&&o.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(o=>o!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,o){var f,v,w,P;if("idle"!==this.state.fetchStatus){if(this.state.dataUpdatedAt&&null!=o&&o.cancelRefetch)this.cancel({silent:!0});else if(this.promise)return null==(w=this.retryer)||w.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let F=(0,N.G9)(),U={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},addSignalProperty=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(F)return this.abortSignalConsumed=!0,F.signal}})};addSignalProperty(U);let H={fetchOptions:o,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(U)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};addSignalProperty(H),null==(f=this.options.behavior)||f.onFetch(H),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(v=H.fetchOptions)?void 0:v.meta))&&this.dispatch({type:"fetch",meta:null==(P=H.fetchOptions)?void 0:P.meta});let onError=e=>{if((0,V.DV)(e)&&e.silent||this.dispatch({type:"error",error:e}),!(0,V.DV)(e)){var o,f,v,w;null==(o=(f=this.cache.config).onError)||o.call(f,e,this),null==(v=(w=this.cache.config).onSettled)||v.call(w,this.state.data,e,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=(0,V.Mz)({fn:H.fetchFn,abort:null==F?void 0:F.abort.bind(F),onSuccess:e=>{var o,f,v,w;if(void 0===e){onError(Error(this.queryHash+" data is undefined"));return}this.setData(e),null==(o=(f=this.cache.config).onSuccess)||o.call(f,e,this),null==(v=(w=this.cache.config).onSettled)||v.call(w,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError,onFail:(e,o)=>{this.dispatch({type:"failed",failureCount:e,error:o})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:H.options.retry,retryDelay:H.options.retryDelay,networkMode:H.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(o=>{var f,v;switch(e.type){case"failed":return{...o,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...o,fetchStatus:"paused"};case"continue":return{...o,fetchStatus:"fetching"};case"fetch":return{...o,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(f=e.meta)?f:null,fetchStatus:(0,V.Kw)(this.options.networkMode)?"fetching":"paused",...!o.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...o,data:e.data,dataUpdateCount:o.dataUpdateCount+1,dataUpdatedAt:null!=(v=e.dataUpdatedAt)?v:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let w=e.error;if((0,V.DV)(w)&&w.revert&&this.revertState)return{...this.revertState,fetchStatus:"idle"};return{...o,error:w,errorUpdateCount:o.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:o.fetchFailureCount+1,fetchFailureReason:w,fetchStatus:"idle",status:"error"};case"invalidate":return{...o,isInvalidated:!0};case"setState":return{...o,...e.state}}})(this.state),U.V.batch(()=>{this.observers.forEach(o=>{o.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}};var q=f(33989);let QueryCache=class QueryCache extends q.l{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,o,f){var v;let w=o.queryKey,P=null!=(v=o.queryHash)?v:(0,N.Rm)(w,o),F=this.get(P);return F||(F=new Query({cache:this,logger:e.getLogger(),queryKey:w,queryHash:P,options:e.defaultQueryOptions(o),state:f,defaultOptions:e.getQueryDefaults(w)}),this.add(F)),F}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){let o=this.queriesMap[e.queryHash];o&&(e.destroy(),this.queries=this.queries.filter(o=>o!==e),o===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){U.V.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,o){let[f]=(0,N.I6)(e,o);return void 0===f.exact&&(f.exact=!0),this.queries.find(e=>(0,N._x)(f,e))}findAll(e,o){let[f]=(0,N.I6)(e,o);return Object.keys(f).length>0?this.queries.filter(e=>(0,N._x)(f,e)):this.queries}notify(e){U.V.batch(()=>{this.listeners.forEach(({listener:o})=>{o(e)})})}onFocus(){U.V.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){U.V.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}};var W=f(89886);let MutationCache=class MutationCache extends q.l{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,o,f){let v=new W.m({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(o),state:f,defaultOptions:o.mutationKey?e.getMutationDefaults(o.mutationKey):void 0});return this.add(v),v}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(o=>o!==e),this.notify({type:"removed",mutation:e})}clear(){U.V.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find(o=>(0,N.X7)(e,o))}findAll(e){return this.mutations.filter(o=>(0,N.X7)(e,o))}notify(e){U.V.batch(()=>{this.listeners.forEach(({listener:o})=>{o(e)})})}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then(()=>{let e=this.mutations.filter(e=>e.state.isPaused);return U.V.batch(()=>e.reduce((e,o)=>e.then(()=>o.continue().catch(N.ZT)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}};var K=f(15761),G=f(96474),Z=f(9499),X=f(85945);let ReactQueryDevtools=function(){return null};var J=f(44164);/**
 * @license
 * Copyright 2020 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */(0,J.KN)("firebase","9.6.10","app");var Y=f(11146),ee=f(33299),et=f(1571);f(70041),f(51487),f(57443);var er=f(9008),en=f.n(er),eo=f(4298),ei=f.n(eo),ea=f(44304),es=f(55678),el=f(86017),eu=f(54081);async function closeNotifications(e){var o,f,v;let w="boolean"==typeof e&&e,{action:P,ids:N}="object"==typeof e&&e.data||{},F=null!==(f=null==N?void 0:N.split("-"))&&void 0!==f?f:[];if("close"!==P&&!w)return;let U=null!==(v=await (null===(o=navigator.serviceWorker)||void 0===o?void 0:o.getRegistrations()))&&void 0!==v?v:[],V=U.filter(e=>{let{scope:o}=e;return o.endsWith("firebase-cloud-messaging-push-scope")}),H=(await Promise.all(V.map(e=>e.getNotifications()))).flat();null==H||H.forEach(e=>{var o;(w||!(null==e?void 0:null===(o=e.data)||void 0===o?void 0:o.id)||"close"===P&&F.includes(e.data.id))&&e.close()})}var ec=f(39021),ef=f(11163),ed=f(7937),ep=f(31284);let eh=new class{constructor(e={}){this.queryCache=e.queryCache||new QueryCache,this.mutationCache=e.mutationCache||new MutationCache,this.logger=e.logger||F._,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=K.j.subscribe(()=>{K.j.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=G.N.subscribe(()=>{G.N.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,o;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(o=this.unsubscribeOnline)||o.call(this),this.unsubscribeOnline=void 0)}isFetching(e,o){let[f]=(0,N.I6)(e,o);return f.fetchStatus="fetching",this.queryCache.findAll(f).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,o){var f;return null==(f=this.queryCache.find(e,o))?void 0:f.state.data}ensureQueryData(e,o,f){let v=(0,N._v)(e,o,f),w=this.getQueryData(v.queryKey);return w?Promise.resolve(w):this.fetchQuery(v)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:e,state:o})=>{let f=o.data;return[e,f]})}setQueryData(e,o,f){let v=this.queryCache.find(e),w=null==v?void 0:v.state.data,P=(0,N.SE)(o,w);if(void 0===P)return;let F=(0,N._v)(e),U=this.defaultQueryOptions(F);return this.queryCache.build(this,U).setData(P,{...f,manual:!0})}setQueriesData(e,o,f){return U.V.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,o,f)]))}getQueryState(e,o){var f;return null==(f=this.queryCache.find(e,o))?void 0:f.state}removeQueries(e,o){let[f]=(0,N.I6)(e,o),v=this.queryCache;U.V.batch(()=>{v.findAll(f).forEach(e=>{v.remove(e)})})}resetQueries(e,o,f){let[v,w]=(0,N.I6)(e,o,f),P=this.queryCache,F={type:"active",...v};return U.V.batch(()=>(P.findAll(v).forEach(e=>{e.reset()}),this.refetchQueries(F,w)))}cancelQueries(e,o,f){let[v,w={}]=(0,N.I6)(e,o,f);void 0===w.revert&&(w.revert=!0);let P=U.V.batch(()=>this.queryCache.findAll(v).map(e=>e.cancel(w)));return Promise.all(P).then(N.ZT).catch(N.ZT)}invalidateQueries(e,o,f){let[v,w]=(0,N.I6)(e,o,f);return U.V.batch(()=>{var e,o;if(this.queryCache.findAll(v).forEach(e=>{e.invalidate()}),"none"===v.refetchType)return Promise.resolve();let f={...v,type:null!=(e=null!=(o=v.refetchType)?o:v.type)?e:"active"};return this.refetchQueries(f,w)})}refetchQueries(e,o,f){let[v,w]=(0,N.I6)(e,o,f),P=U.V.batch(()=>this.queryCache.findAll(v).filter(e=>!e.isDisabled()).map(e=>{var o;return e.fetch(void 0,{...w,cancelRefetch:null==(o=null==w?void 0:w.cancelRefetch)||o,meta:{refetchPage:v.refetchPage}})})),F=Promise.all(P).then(N.ZT);return null!=w&&w.throwOnError||(F=F.catch(N.ZT)),F}fetchQuery(e,o,f){let v=(0,N._v)(e,o,f),w=this.defaultQueryOptions(v);void 0===w.retry&&(w.retry=!1);let P=this.queryCache.build(this,w);return P.isStaleByTime(w.staleTime)?P.fetch(w):Promise.resolve(P.state.data)}prefetchQuery(e,o,f){return this.fetchQuery(e,o,f).then(N.ZT).catch(N.ZT)}fetchInfiniteQuery(e,o,f){let v=(0,N._v)(e,o,f);return v.behavior=(0,Z.Gm)(),this.fetchQuery(v)}prefetchInfiniteQuery(e,o,f){return this.fetchInfiniteQuery(e,o,f).then(N.ZT).catch(N.ZT)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,o){let f=this.queryDefaults.find(o=>(0,N.yF)(e)===(0,N.yF)(o.queryKey));f?f.defaultOptions=o:this.queryDefaults.push({queryKey:e,defaultOptions:o})}getQueryDefaults(e){if(!e)return;let o=this.queryDefaults.find(o=>(0,N.to)(e,o.queryKey));return null==o?void 0:o.defaultOptions}setMutationDefaults(e,o){let f=this.mutationDefaults.find(o=>(0,N.yF)(e)===(0,N.yF)(o.mutationKey));f?f.defaultOptions=o:this.mutationDefaults.push({mutationKey:e,defaultOptions:o})}getMutationDefaults(e){if(!e)return;let o=this.mutationDefaults.find(o=>(0,N.to)(e,o.mutationKey));return null==o?void 0:o.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;let o={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!o.queryHash&&o.queryKey&&(o.queryHash=(0,N.Rm)(o.queryKey,o)),void 0===o.refetchOnReconnect&&(o.refetchOnReconnect="always"!==o.networkMode),void 0===o.useErrorBoundary&&(o.useErrorBoundary=!!o.suspense),o}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}({defaultOptions:{queries:{refetchOnWindowFocus:!1}}}),eg={apiKey:"AIzaSyCsVUho9oOQ_SssdaFF5sdhgemlyaHcCL4",authDomain:"soma-cafe.firebaseapp.com",projectId:"soma-cafe",storageBucket:"soma-cafe.appspot.com",messagingSenderId:"64290350721",appId:"1:64290350721:web:13b85b0fea79901c75cf80",measurementId:"G-3NJTJQ61SH"};function reportWebVitals(e){let{id:o,name:f,label:v,value:w}=e;(0,ea.B)(f,{category:"web-vital"===v?"Web Vitals":"Next.js custom metric",value:Math.round("CLS"===f?1e3*w:w),label:o,nonInteraction:!0})}var _app=e=>{let{Component:o,pageProps:f}=e;(0,ea.C2)(),function(){let{asPath:e}=(0,ef.useRouter)(),{result:o,clearResult:f}=(0,ed.T)(),{message:v,state:P}=null!=o?o:{};(0,w.useEffect)(()=>{!v||!P||e.startsWith("/payment")||(es.Am[P](v),f())},[v,P,e,f])}();let{isCheckedSound:N,setPlayWithSound:F}=(0,ep.s)(),U=f.session;return(0,w.useEffect)(()=>{(function(){let e=document.createElement("video");return e.src="https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerBlazes.mp4",e.muted=!1,e.autoplay=!0,e.play().then(()=>!0).catch(e=>!!(0,eu.isAbortError)(e)).finally(()=>e.pause())})().then(F);let appHeight=()=>{let e=document.documentElement,o=document.documentElement.clientHeight;e.style.setProperty("--app-height","".concat(o,"px"))};window.addEventListener("resize",appHeight),appHeight();let initiateMessaging=async()=>{let e=await (0,Y.Gb)();if(!e){console.warn("Messaging is not supported");return}(0,J.ZF)(eg);let o=(0,Y.KL)();(0,Y.ps)(o,closeNotifications)};return initiateMessaging(),U&&(0,ec.C)(),()=>{window.removeEventListener("resize",appHeight)}},[]),(0,w.useEffect)(()=>{U||closeNotifications(!0)},[U]),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(ea.Wi,{strategy:"lazyOnload"}),(0,v.jsxs)(en(),{children:[(0,v.jsx)("meta",{charSet:"utf-8"}),(0,v.jsx)("meta",{name:"mobile-web-app-capable",content:"yes"}),(0,v.jsx)("meta",{name:"apple-mobile-web-app-capable",content:"yes"}),(0,v.jsx)("meta",{name:"apple-mobile-web-app-status-bar-style",content:"black-translucent"}),(0,v.jsx)("meta",{name:"apple-mobile-web-app-title",content:"Soma Cafe"}),(0,v.jsx)("meta",{name:"application-name",content:"Soma Cafe"}),(0,v.jsx)("meta",{name:"description",content:"The Livestreaming Revolution"}),(0,v.jsx)("meta",{name:"theme-color",content:"#f4f4f5",media:"(prefers-color-scheme: light)"}),(0,v.jsx)("meta",{name:"theme-color",content:"#18181b",media:"(prefers-color-scheme: dark)"}),(0,v.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1, user-scalable=0, viewport-fit=cover"}),(0,v.jsx)("link",{rel:"apple-touch-icon",sizes:"180x180",href:"/apple-touch-icon.png"}),(0,v.jsx)("link",{rel:"icon",type:"image/png",href:"/images/favicon.png"}),(0,v.jsx)("link",{rel:"manifest",href:"/manifest.json"})]}),(0,v.jsx)(ei(),{src:"https://merchant.portal.dropp.cc/dropp-sdk/dropp.min.js",type:"text/javascript"}),(0,v.jsxs)(X.aH,{client:eh,children:[(0,v.jsx)(ee.SessionProvider,{session:f.session,children:(0,v.jsx)(et.f,{defaultTheme:"light",attribute:"class",children:(0,v.jsx)(P.pn,{delayDuration:300,children:N?(0,v.jsx)(o,{...f}):(0,v.jsx)(el.$,{className:"w-screen h-screen"})})})}),(0,v.jsx)(ReactQueryDevtools,{initialIsOpen:!1})]}),(0,v.jsx)(es.Ix,{progressClassName:"invisible",closeButton:!1,pauseOnHover:!1,autoClose:3e3})]})}},33545:function(e,o,f){"use strict";var v=f(87066),w=f(33299);let P=v.default.create({baseURL:"https://api.soma.cafe"}),getToken=async()=>{let e=await (0,w.getSession)();return null==e?void 0:e.access_token};P.interceptors.request.use(async e=>{let o=await getToken(),f=e.headers.token||o||"SGFuZG9mZi1JZGVudGljYWwtU3RpbmtpbmctVW5mb2xkLU1hbnBvd2VyLVN0ZXc6KiF1N3kyV1I1VEhWJHBDRio2ZiZnYyRw";return delete e.headers.token,e.headers.Authorization="Bearer ".concat(f),e.headers["Content-Type"]="application/x-www-form-urlencoded",e}),o.Z=P},4086:function(e,o,f){"use strict";var v=f(77290);let w={site_name:"Soma Cafe",title:"Soma Cafe",description:"The Livestreaming Revolution",locale:"en",maxPostCharacters:360,errorMessage:"Something went wrong",liveStreamsLimitDefault:6,payment:v.u.DROPP,paymentConnection:v._.MANUAL};o.Z=w},77290:function(e,o,f){"use strict";var v,w,P,N;f.d(o,{_:function(){return w},u:function(){return v}}),(P=v||(v={})).PAYPAL="paypal",P.DROPP="dropp",(N=w||(w={})).MANUAL="manual",N.INTEGRATION="integration"},93826:function(e,o,f){"use strict";f.d(o,{A:function(){return classNames},cn:function(){return classNames}});var v=f(90512),w=/^\[(.+)\]$/;function getPart(e,o){var f=e;return o.split("-").forEach(function(e){f.nextPart.has(e)||f.nextPart.set(e,{nextPart:new Map,validators:[]}),f=f.nextPart.get(e)}),f}var P=/\s+/;function twJoin(){for(var e,o,f=0,v="";f<arguments.length;)(e=arguments[f++])&&(o=function toValue(e){if("string"==typeof e)return e;for(var o,f="",v=0;v<e.length;v++)e[v]&&(o=toValue(e[v]))&&(f&&(f+=" "),f+=o);return f}(e))&&(v&&(v+=" "),v+=o);return v}function fromTheme(e){var themeGetter=function(o){return o[e]||[]};return themeGetter.isThemeGetter=!0,themeGetter}var N=/^\[(?:([a-z-]+):)?(.+)\]$/i,F=/^\d+\/\d+$/,U=new Set(["px","full","screen"]),V=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,H=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,q=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function isLength(e){return isNumber(e)||U.has(e)||F.test(e)||isArbitraryLength(e)}function isArbitraryLength(e){return getIsArbitraryValue(e,"length",isLengthOnly)}function isArbitrarySize(e){return getIsArbitraryValue(e,"size",isNever)}function isArbitraryPosition(e){return getIsArbitraryValue(e,"position",isNever)}function isArbitraryUrl(e){return getIsArbitraryValue(e,"url",isUrl)}function isArbitraryNumber(e){return getIsArbitraryValue(e,"number",isNumber)}function isNumber(e){return!Number.isNaN(Number(e))}function isPercent(e){return e.endsWith("%")&&isNumber(e.slice(0,-1))}function isInteger(e){return isIntegerOnly(e)||getIsArbitraryValue(e,"number",isIntegerOnly)}function isArbitraryValue(e){return N.test(e)}function isAny(){return!0}function isTshirtSize(e){return V.test(e)}function isArbitraryShadow(e){return getIsArbitraryValue(e,"",isShadow)}function getIsArbitraryValue(e,o,f){var v=N.exec(e);return!!v&&(v[1]?v[1]===o:f(v[2]))}function isLengthOnly(e){return H.test(e)}function isNever(){return!1}function isUrl(e){return e.startsWith("url(")}function isIntegerOnly(e){return Number.isInteger(Number(e))}function isShadow(e){return q.test(e)}var W=function(){for(var e,o,f,v=arguments.length,N=Array(v),F=0;F<v;F++)N[F]=arguments[F];var functionToCall=function(v){var P=N[0];return o=(e=function(e){var o,f,v,P,N,F,U,V,H,q,W;return{cache:function(e){if(e<1)return{get:function(){},set:function(){}};var o=0,f=new Map,v=new Map;function update(w,P){f.set(w,P),++o>e&&(o=0,v=f,f=new Map)}return{get:function(e){var o=f.get(e);return void 0!==o?o:void 0!==(o=v.get(e))?(update(e,o),o):void 0},set:function(e,o){f.has(e)?f.set(e,o):update(e,o)}}}(e.cacheSize),splitModifiers:(f=1===(o=e.separator||":").length,v=o[0],P=o.length,function(e){for(var w,N=[],F=0,U=0,V=0;V<e.length;V++){var H=e[V];if(0===F){if(H===v&&(f||e.slice(V,V+P)===o)){N.push(e.slice(U,V)),U=V+P;continue}if("/"===H){w=V;continue}}"["===H?F++:"]"===H&&F--}var q=0===N.length?e:e.substring(U),W=q.startsWith("!"),K=W?q.substring(1):q;return{modifiers:N,hasImportantModifier:W,baseClassName:K,maybePostfixModifierPosition:w&&w>U?w-U:void 0}}),...(V=e.theme,H=e.prefix,q={nextPart:new Map,validators:[]},(W=Object.entries(e.classGroups),H?W.map(function(e){return[e[0],e[1].map(function(e){return"string"==typeof e?H+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(function(e){return[H+e[0],e[1]]})):e})]}):W).forEach(function(e){var o=e[0];(function processClassesRecursively(e,o,f,v){e.forEach(function(e){if("string"==typeof e){(""===e?o:getPart(o,e)).classGroupId=f;return}if("function"==typeof e){if(e.isThemeGetter){processClassesRecursively(e(v),o,f,v);return}o.validators.push({validator:e,classGroupId:f});return}Object.entries(e).forEach(function(e){var w=e[0];processClassesRecursively(e[1],getPart(o,w),f,v)})})})(e[1],q,o,V)}),N=e.conflictingClassGroups,U=void 0===(F=e.conflictingClassGroupModifiers)?{}:F,{getClassGroupId:function(e){var o=e.split("-");return""===o[0]&&1!==o.length&&o.shift(),function getGroupRecursive(e,o){if(0===e.length)return o.classGroupId;var f=e[0],v=o.nextPart.get(f),w=v?getGroupRecursive(e.slice(1),v):void 0;if(w)return w;if(0!==o.validators.length){var P=e.join("-");return o.validators.find(function(e){return(0,e.validator)(P)})?.classGroupId}}(o,q)||function(e){if(w.test(e)){var o=w.exec(e)[1],f=o?.substring(0,o.indexOf(":"));if(f)return"arbitrary.."+f}}(e)},getConflictingClassGroupIds:function(e,o){var f=N[e]||[];return o&&U[e]?[].concat(f,U[e]):f}})}}(N.slice(1).reduce(function(e,o){return o(e)},P()))).cache.get,f=e.cache.set,functionToCall=tailwindMerge,tailwindMerge(v)};function tailwindMerge(v){var w,N,F,U,V,H=o(v);if(H)return H;var q=(N=(w=e).splitModifiers,F=w.getClassGroupId,U=w.getConflictingClassGroupIds,V=new Set,v.trim().split(P).map(function(e){var o=N(e),f=o.modifiers,v=o.hasImportantModifier,w=o.baseClassName,P=o.maybePostfixModifierPosition,U=F(P?w.substring(0,P):w),V=!!P;if(!U){if(!P||!(U=F(w)))return{isTailwindClass:!1,originalClassName:e};V=!1}var H=(function(e){if(e.length<=1)return e;var o=[],f=[];return e.forEach(function(e){"["===e[0]?(o.push.apply(o,f.sort().concat([e])),f=[]):f.push(e)}),o.push.apply(o,f.sort()),o})(f).join(":");return{isTailwindClass:!0,modifierId:v?H+"!":H,classGroupId:U,originalClassName:e,hasPostfixModifier:V}}).reverse().filter(function(e){if(!e.isTailwindClass)return!0;var o=e.modifierId,f=e.classGroupId,v=e.hasPostfixModifier,w=o+f;return!V.has(w)&&(V.add(w),U(f,v).forEach(function(e){return V.add(o+e)}),!0)}).reverse().map(function(e){return e.originalClassName}).join(" "));return f(v,q),q}return function(){return functionToCall(twJoin.apply(null,arguments))}}(function(){var e=fromTheme("colors"),o=fromTheme("spacing"),f=fromTheme("blur"),v=fromTheme("brightness"),w=fromTheme("borderColor"),P=fromTheme("borderRadius"),N=fromTheme("borderSpacing"),F=fromTheme("borderWidth"),U=fromTheme("contrast"),V=fromTheme("grayscale"),H=fromTheme("hueRotate"),q=fromTheme("invert"),W=fromTheme("gap"),K=fromTheme("gradientColorStops"),G=fromTheme("gradientColorStopPositions"),Z=fromTheme("inset"),X=fromTheme("margin"),J=fromTheme("opacity"),Y=fromTheme("padding"),ee=fromTheme("saturate"),et=fromTheme("scale"),er=fromTheme("sepia"),en=fromTheme("skew"),eo=fromTheme("space"),ei=fromTheme("translate"),getOverscroll=function(){return["auto","contain","none"]},getOverflow=function(){return["auto","hidden","clip","visible","scroll"]},getSpacingWithAutoAndArbitrary=function(){return["auto",isArbitraryValue,o]},getSpacingWithArbitrary=function(){return[isArbitraryValue,o]},getLengthWithEmpty=function(){return["",isLength]},getNumberWithAutoAndArbitrary=function(){return["auto",isNumber,isArbitraryValue]},getPositions=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},getLineStyles=function(){return["solid","dashed","dotted","double","none"]},getBlendModes=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},getAlign=function(){return["start","end","center","between","around","evenly","stretch"]},getZeroAndEmpty=function(){return["","0",isArbitraryValue]},getBreaks=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},getNumber=function(){return[isNumber,isArbitraryNumber]},getNumberAndArbitrary=function(){return[isNumber,isArbitraryValue]};return{cacheSize:500,theme:{colors:[isAny],spacing:[isLength],blur:["none","",isTshirtSize,isArbitraryValue],brightness:getNumber(),borderColor:[e],borderRadius:["none","","full",isTshirtSize,isArbitraryValue],borderSpacing:getSpacingWithArbitrary(),borderWidth:getLengthWithEmpty(),contrast:getNumber(),grayscale:getZeroAndEmpty(),hueRotate:getNumberAndArbitrary(),invert:getZeroAndEmpty(),gap:getSpacingWithArbitrary(),gradientColorStops:[e],gradientColorStopPositions:[isPercent,isArbitraryLength],inset:getSpacingWithAutoAndArbitrary(),margin:getSpacingWithAutoAndArbitrary(),opacity:getNumber(),padding:getSpacingWithArbitrary(),saturate:getNumber(),scale:getNumber(),sepia:getZeroAndEmpty(),skew:getNumberAndArbitrary(),space:getSpacingWithArbitrary(),translate:getSpacingWithArbitrary()},classGroups:{aspect:[{aspect:["auto","square","video",isArbitraryValue]}],container:["container"],columns:[{columns:[isTshirtSize]}],"break-after":[{"break-after":getBreaks()}],"break-before":[{"break-before":getBreaks()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(getPositions(),[isArbitraryValue])}],overflow:[{overflow:getOverflow()}],"overflow-x":[{"overflow-x":getOverflow()}],"overflow-y":[{"overflow-y":getOverflow()}],overscroll:[{overscroll:getOverscroll()}],"overscroll-x":[{"overscroll-x":getOverscroll()}],"overscroll-y":[{"overscroll-y":getOverscroll()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[Z]}],"inset-x":[{"inset-x":[Z]}],"inset-y":[{"inset-y":[Z]}],start:[{start:[Z]}],end:[{end:[Z]}],top:[{top:[Z]}],right:[{right:[Z]}],bottom:[{bottom:[Z]}],left:[{left:[Z]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",isInteger]}],basis:[{basis:getSpacingWithAutoAndArbitrary()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",isArbitraryValue]}],grow:[{grow:getZeroAndEmpty()}],shrink:[{shrink:getZeroAndEmpty()}],order:[{order:["first","last","none",isInteger]}],"grid-cols":[{"grid-cols":[isAny]}],"col-start-end":[{col:["auto",{span:["full",isInteger]},isArbitraryValue]}],"col-start":[{"col-start":getNumberWithAutoAndArbitrary()}],"col-end":[{"col-end":getNumberWithAutoAndArbitrary()}],"grid-rows":[{"grid-rows":[isAny]}],"row-start-end":[{row:["auto",{span:[isInteger]},isArbitraryValue]}],"row-start":[{"row-start":getNumberWithAutoAndArbitrary()}],"row-end":[{"row-end":getNumberWithAutoAndArbitrary()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",isArbitraryValue]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",isArbitraryValue]}],gap:[{gap:[W]}],"gap-x":[{"gap-x":[W]}],"gap-y":[{"gap-y":[W]}],"justify-content":[{justify:["normal"].concat(getAlign())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(getAlign(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(getAlign(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[Y]}],px:[{px:[Y]}],py:[{py:[Y]}],ps:[{ps:[Y]}],pe:[{pe:[Y]}],pt:[{pt:[Y]}],pr:[{pr:[Y]}],pb:[{pb:[Y]}],pl:[{pl:[Y]}],m:[{m:[X]}],mx:[{mx:[X]}],my:[{my:[X]}],ms:[{ms:[X]}],me:[{me:[X]}],mt:[{mt:[X]}],mr:[{mr:[X]}],mb:[{mb:[X]}],ml:[{ml:[X]}],"space-x":[{"space-x":[eo]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[eo]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",isArbitraryValue,o]}],"min-w":[{"min-w":["min","max","fit",isArbitraryValue,isLength]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[isTshirtSize]},isTshirtSize,isArbitraryValue]}],h:[{h:[isArbitraryValue,o,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",isArbitraryValue,isLength]}],"max-h":[{"max-h":[isArbitraryValue,o,"min","max","fit"]}],"font-size":[{text:["base",isTshirtSize,isArbitraryLength]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",isArbitraryNumber]}],"font-family":[{font:[isAny]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",isArbitraryValue]}],"line-clamp":[{"line-clamp":["none",isNumber,isArbitraryNumber]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",isArbitraryValue,isLength]}],"list-image":[{"list-image":["none",isArbitraryValue]}],"list-style-type":[{list:["none","disc","decimal",isArbitraryValue]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[J]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[J]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(getLineStyles(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",isLength]}],"underline-offset":[{"underline-offset":["auto",isArbitraryValue,isLength]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:getSpacingWithArbitrary()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",isArbitraryValue]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",isArbitraryValue]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[J]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(getPositions(),[isArbitraryPosition])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",isArbitrarySize]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},isArbitraryUrl]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[G]}],"gradient-via-pos":[{via:[G]}],"gradient-to-pos":[{to:[G]}],"gradient-from":[{from:[K]}],"gradient-via":[{via:[K]}],"gradient-to":[{to:[K]}],rounded:[{rounded:[P]}],"rounded-s":[{"rounded-s":[P]}],"rounded-e":[{"rounded-e":[P]}],"rounded-t":[{"rounded-t":[P]}],"rounded-r":[{"rounded-r":[P]}],"rounded-b":[{"rounded-b":[P]}],"rounded-l":[{"rounded-l":[P]}],"rounded-ss":[{"rounded-ss":[P]}],"rounded-se":[{"rounded-se":[P]}],"rounded-ee":[{"rounded-ee":[P]}],"rounded-es":[{"rounded-es":[P]}],"rounded-tl":[{"rounded-tl":[P]}],"rounded-tr":[{"rounded-tr":[P]}],"rounded-br":[{"rounded-br":[P]}],"rounded-bl":[{"rounded-bl":[P]}],"border-w":[{border:[F]}],"border-w-x":[{"border-x":[F]}],"border-w-y":[{"border-y":[F]}],"border-w-s":[{"border-s":[F]}],"border-w-e":[{"border-e":[F]}],"border-w-t":[{"border-t":[F]}],"border-w-r":[{"border-r":[F]}],"border-w-b":[{"border-b":[F]}],"border-w-l":[{"border-l":[F]}],"border-opacity":[{"border-opacity":[J]}],"border-style":[{border:[].concat(getLineStyles(),["hidden"])}],"divide-x":[{"divide-x":[F]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[F]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[J]}],"divide-style":[{divide:getLineStyles()}],"border-color":[{border:[w]}],"border-color-x":[{"border-x":[w]}],"border-color-y":[{"border-y":[w]}],"border-color-t":[{"border-t":[w]}],"border-color-r":[{"border-r":[w]}],"border-color-b":[{"border-b":[w]}],"border-color-l":[{"border-l":[w]}],"divide-color":[{divide:[w]}],"outline-style":[{outline:[""].concat(getLineStyles())}],"outline-offset":[{"outline-offset":[isArbitraryValue,isLength]}],"outline-w":[{outline:[isLength]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:getLengthWithEmpty()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[J]}],"ring-offset-w":[{"ring-offset":[isLength]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",isTshirtSize,isArbitraryShadow]}],"shadow-color":[{shadow:[isAny]}],opacity:[{opacity:[J]}],"mix-blend":[{"mix-blend":getBlendModes()}],"bg-blend":[{"bg-blend":getBlendModes()}],filter:[{filter:["","none"]}],blur:[{blur:[f]}],brightness:[{brightness:[v]}],contrast:[{contrast:[U]}],"drop-shadow":[{"drop-shadow":["","none",isTshirtSize,isArbitraryValue]}],grayscale:[{grayscale:[V]}],"hue-rotate":[{"hue-rotate":[H]}],invert:[{invert:[q]}],saturate:[{saturate:[ee]}],sepia:[{sepia:[er]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[f]}],"backdrop-brightness":[{"backdrop-brightness":[v]}],"backdrop-contrast":[{"backdrop-contrast":[U]}],"backdrop-grayscale":[{"backdrop-grayscale":[V]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[H]}],"backdrop-invert":[{"backdrop-invert":[q]}],"backdrop-opacity":[{"backdrop-opacity":[J]}],"backdrop-saturate":[{"backdrop-saturate":[ee]}],"backdrop-sepia":[{"backdrop-sepia":[er]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[N]}],"border-spacing-x":[{"border-spacing-x":[N]}],"border-spacing-y":[{"border-spacing-y":[N]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",isArbitraryValue]}],duration:[{duration:getNumberAndArbitrary()}],ease:[{ease:["linear","in","out","in-out",isArbitraryValue]}],delay:[{delay:getNumberAndArbitrary()}],animate:[{animate:["none","spin","ping","pulse","bounce",isArbitraryValue]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[et]}],"scale-x":[{"scale-x":[et]}],"scale-y":[{"scale-y":[et]}],rotate:[{rotate:[isInteger,isArbitraryValue]}],"translate-x":[{"translate-x":[ei]}],"translate-y":[{"translate-y":[ei]}],"skew-x":[{"skew-x":[en]}],"skew-y":[{"skew-y":[en]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",isArbitraryValue]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",isArbitraryValue]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":getSpacingWithArbitrary()}],"scroll-mx":[{"scroll-mx":getSpacingWithArbitrary()}],"scroll-my":[{"scroll-my":getSpacingWithArbitrary()}],"scroll-ms":[{"scroll-ms":getSpacingWithArbitrary()}],"scroll-me":[{"scroll-me":getSpacingWithArbitrary()}],"scroll-mt":[{"scroll-mt":getSpacingWithArbitrary()}],"scroll-mr":[{"scroll-mr":getSpacingWithArbitrary()}],"scroll-mb":[{"scroll-mb":getSpacingWithArbitrary()}],"scroll-ml":[{"scroll-ml":getSpacingWithArbitrary()}],"scroll-p":[{"scroll-p":getSpacingWithArbitrary()}],"scroll-px":[{"scroll-px":getSpacingWithArbitrary()}],"scroll-py":[{"scroll-py":getSpacingWithArbitrary()}],"scroll-ps":[{"scroll-ps":getSpacingWithArbitrary()}],"scroll-pe":[{"scroll-pe":getSpacingWithArbitrary()}],"scroll-pt":[{"scroll-pt":getSpacingWithArbitrary()}],"scroll-pr":[{"scroll-pr":getSpacingWithArbitrary()}],"scroll-pb":[{"scroll-pb":getSpacingWithArbitrary()}],"scroll-pl":[{"scroll-pl":getSpacingWithArbitrary()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",isArbitraryValue]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[isLength,isArbitraryNumber]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}});function classNames(){for(var e=arguments.length,o=Array(e),f=0;f<e;f++)o[f]=arguments[f];return W((0,v.Z)(o))}},39021:function(e,o,f){"use strict";f.d(o,{C:function(){return setFCMToken}});var v,w=f(11146),P=f(55678),N=f(33545),F=f(4086);async function setFCMToken(){let e=await (0,w.Gb)(),o=e?(0,w.KL)():null;if(o)try{let e=await (0,w.LP)(o,{vapidKey:"BCj0LUxdTrLG4LV-_6IWH9TblK-lAkNZK0Wtdi5ZbtLmkPQUwK1GETCYZuZLXaq_RnRsJr6podbqgjtGDFx9x3A"}),f=localStorage.getItem("fcm");return N.Z.post("/user/v2/user-tokens",{type:v.FCM,token:e,previousToken:f!==e?f:void 0}).then(()=>{localStorage.setItem("fcm",e)}).catch(()=>{P.Am.error(F.Z.errorMessage)}),e}catch(e){console.log("getFCMToken error",e)}}(v||(v={})).FCM="1"},31284:function(e,o,f){"use strict";f.d(o,{s:function(){return w}});var v=f(64529);let w=(0,v.Ue)()(e=>({isCheckedSound:!1,canPlayWithSound:!1,setPlayWithSound:o=>e({canPlayWithSound:o,isCheckedSound:!0})}))},7937:function(e,o,f){"use strict";f.d(o,{T:function(){return w}});var v=f(64529);let w=(0,v.Ue)()(e=>({user:null,result:null,isOpenShoutModal:!1,isOpenPaymentInfoModal:!1,setUser:o=>e(()=>({user:o})),setResult:(o,f)=>e(()=>({result:{message:o,state:f}})),clearResult:()=>e(()=>({result:null})),setOpenShoutModal:o=>e(()=>({isOpenShoutModal:o})),setOpenPaymentInfoModal:o=>e(()=>({isOpenPaymentInfoModal:o}))}))},21876:function(e){!function(){var o={675:function(e,o){"use strict";o.byteLength=function(e){var o=getLens(e),f=o[0],v=o[1];return(f+v)*3/4-v},o.toByteArray=function(e){var o,f,P=getLens(e),N=P[0],F=P[1],U=new w((N+F)*3/4-F),V=0,H=F>0?N-4:N;for(f=0;f<H;f+=4)o=v[e.charCodeAt(f)]<<18|v[e.charCodeAt(f+1)]<<12|v[e.charCodeAt(f+2)]<<6|v[e.charCodeAt(f+3)],U[V++]=o>>16&255,U[V++]=o>>8&255,U[V++]=255&o;return 2===F&&(o=v[e.charCodeAt(f)]<<2|v[e.charCodeAt(f+1)]>>4,U[V++]=255&o),1===F&&(o=v[e.charCodeAt(f)]<<10|v[e.charCodeAt(f+1)]<<4|v[e.charCodeAt(f+2)]>>2,U[V++]=o>>8&255,U[V++]=255&o),U},o.fromByteArray=function(e){for(var o,v=e.length,w=v%3,P=[],N=0,F=v-w;N<F;N+=16383)P.push(function(e,o,v){for(var w,P=[],N=o;N<v;N+=3)P.push(f[(w=(e[N]<<16&16711680)+(e[N+1]<<8&65280)+(255&e[N+2]))>>18&63]+f[w>>12&63]+f[w>>6&63]+f[63&w]);return P.join("")}(e,N,N+16383>F?F:N+16383));return 1===w?P.push(f[(o=e[v-1])>>2]+f[o<<4&63]+"=="):2===w&&P.push(f[(o=(e[v-2]<<8)+e[v-1])>>10]+f[o>>4&63]+f[o<<2&63]+"="),P.join("")};for(var f=[],v=[],w="undefined"!=typeof Uint8Array?Uint8Array:Array,P="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",N=0,F=P.length;N<F;++N)f[N]=P[N],v[P.charCodeAt(N)]=N;function getLens(e){var o=e.length;if(o%4>0)throw Error("Invalid string. Length must be a multiple of 4");var f=e.indexOf("=");-1===f&&(f=o);var v=f===o?0:4-f%4;return[f,v]}v["-".charCodeAt(0)]=62,v["_".charCodeAt(0)]=63},72:function(e,o,f){"use strict";/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */var v=f(675),w=f(783),P="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function createBuffer(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var o=new Uint8Array(e);return Object.setPrototypeOf(o,Buffer.prototype),o}function Buffer(e,o,f){if("number"==typeof e){if("string"==typeof o)throw TypeError('The "string" argument must be of type string. Received type number');return allocUnsafe(e)}return from(e,o,f)}function from(e,o,f){if("string"==typeof e)return function(e,o){if(("string"!=typeof o||""===o)&&(o="utf8"),!Buffer.isEncoding(o))throw TypeError("Unknown encoding: "+o);var f=0|byteLength(e,o),v=createBuffer(f),w=v.write(e,o);return w!==f&&(v=v.slice(0,w)),v}(e,o);if(ArrayBuffer.isView(e))return fromArrayLike(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(isInstance(e,ArrayBuffer)||e&&isInstance(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(isInstance(e,SharedArrayBuffer)||e&&isInstance(e.buffer,SharedArrayBuffer)))return function(e,o,f){var v;if(o<0||e.byteLength<o)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<o+(f||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(v=void 0===o&&void 0===f?new Uint8Array(e):void 0===f?new Uint8Array(e,o):new Uint8Array(e,o,f),Buffer.prototype),v}(e,o,f);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var v=e.valueOf&&e.valueOf();if(null!=v&&v!==e)return Buffer.from(v,o,f);var w=function(e){if(Buffer.isBuffer(e)){var o,f=0|checked(e.length),v=createBuffer(f);return 0===v.length||e.copy(v,0,0,f),v}return void 0!==e.length?"number"!=typeof e.length||(o=e.length)!=o?createBuffer(0):fromArrayLike(e):"Buffer"===e.type&&Array.isArray(e.data)?fromArrayLike(e.data):void 0}(e);if(w)return w;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return Buffer.from(e[Symbol.toPrimitive]("string"),o,f);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function assertSize(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function allocUnsafe(e){return assertSize(e),createBuffer(e<0?0:0|checked(e))}function fromArrayLike(e){for(var o=e.length<0?0:0|checked(e.length),f=createBuffer(o),v=0;v<o;v+=1)f[v]=255&e[v];return f}function checked(e){if(e>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function byteLength(e,o){if(Buffer.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||isInstance(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var f=e.length,v=arguments.length>2&&!0===arguments[2];if(!v&&0===f)return 0;for(var w=!1;;)switch(o){case"ascii":case"latin1":case"binary":return f;case"utf8":case"utf-8":return utf8ToBytes(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*f;case"hex":return f>>>1;case"base64":return base64ToBytes(e).length;default:if(w)return v?-1:utf8ToBytes(e).length;o=(""+o).toLowerCase(),w=!0}}function slowToString(e,o,f){var w,P,N=!1;if((void 0===o||o<0)&&(o=0),o>this.length||((void 0===f||f>this.length)&&(f=this.length),f<=0||(f>>>=0)<=(o>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,o,f){var v=e.length;(!o||o<0)&&(o=0),(!f||f<0||f>v)&&(f=v);for(var w="",P=o;P<f;++P)w+=F[e[P]];return w}(this,o,f);case"utf8":case"utf-8":return utf8Slice(this,o,f);case"ascii":return function(e,o,f){var v="";f=Math.min(e.length,f);for(var w=o;w<f;++w)v+=String.fromCharCode(127&e[w]);return v}(this,o,f);case"latin1":case"binary":return function(e,o,f){var v="";f=Math.min(e.length,f);for(var w=o;w<f;++w)v+=String.fromCharCode(e[w]);return v}(this,o,f);case"base64":return w=o,P=f,0===w&&P===this.length?v.fromByteArray(this):v.fromByteArray(this.slice(w,P));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,o,f){for(var v=e.slice(o,f),w="",P=0;P<v.length;P+=2)w+=String.fromCharCode(v[P]+256*v[P+1]);return w}(this,o,f);default:if(N)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),N=!0}}function swap(e,o,f){var v=e[o];e[o]=e[f],e[f]=v}function bidirectionalIndexOf(e,o,f,v,w){var P;if(0===e.length)return -1;if("string"==typeof f?(v=f,f=0):f>2147483647?f=2147483647:f<-2147483648&&(f=-2147483648),(P=f=+f)!=P&&(f=w?0:e.length-1),f<0&&(f=e.length+f),f>=e.length){if(w)return -1;f=e.length-1}else if(f<0){if(!w)return -1;f=0}if("string"==typeof o&&(o=Buffer.from(o,v)),Buffer.isBuffer(o))return 0===o.length?-1:arrayIndexOf(e,o,f,v,w);if("number"==typeof o)return(o&=255,"function"==typeof Uint8Array.prototype.indexOf)?w?Uint8Array.prototype.indexOf.call(e,o,f):Uint8Array.prototype.lastIndexOf.call(e,o,f):arrayIndexOf(e,[o],f,v,w);throw TypeError("val must be string, number or Buffer")}function arrayIndexOf(e,o,f,v,w){var P,N=1,F=e.length,U=o.length;if(void 0!==v&&("ucs2"===(v=String(v).toLowerCase())||"ucs-2"===v||"utf16le"===v||"utf-16le"===v)){if(e.length<2||o.length<2)return -1;N=2,F/=2,U/=2,f/=2}function read(e,o){return 1===N?e[o]:e.readUInt16BE(o*N)}if(w){var V=-1;for(P=f;P<F;P++)if(read(e,P)===read(o,-1===V?0:P-V)){if(-1===V&&(V=P),P-V+1===U)return V*N}else -1!==V&&(P-=P-V),V=-1}else for(f+U>F&&(f=F-U),P=f;P>=0;P--){for(var H=!0,q=0;q<U;q++)if(read(e,P+q)!==read(o,q)){H=!1;break}if(H)return P}return -1}function utf8Slice(e,o,f){f=Math.min(e.length,f);for(var v=[],w=o;w<f;){var P,N,F,U,V=e[w],H=null,q=V>239?4:V>223?3:V>191?2:1;if(w+q<=f)switch(q){case 1:V<128&&(H=V);break;case 2:(192&(P=e[w+1]))==128&&(U=(31&V)<<6|63&P)>127&&(H=U);break;case 3:P=e[w+1],N=e[w+2],(192&P)==128&&(192&N)==128&&(U=(15&V)<<12|(63&P)<<6|63&N)>2047&&(U<55296||U>57343)&&(H=U);break;case 4:P=e[w+1],N=e[w+2],F=e[w+3],(192&P)==128&&(192&N)==128&&(192&F)==128&&(U=(15&V)<<18|(63&P)<<12|(63&N)<<6|63&F)>65535&&U<1114112&&(H=U)}null===H?(H=65533,q=1):H>65535&&(H-=65536,v.push(H>>>10&1023|55296),H=56320|1023&H),v.push(H),w+=q}return function(e){var o=e.length;if(o<=4096)return String.fromCharCode.apply(String,e);for(var f="",v=0;v<o;)f+=String.fromCharCode.apply(String,e.slice(v,v+=4096));return f}(v)}function checkOffset(e,o,f){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+o>f)throw RangeError("Trying to access beyond buffer length")}function checkInt(e,o,f,v,w,P){if(!Buffer.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(o>w||o<P)throw RangeError('"value" argument is out of bounds');if(f+v>e.length)throw RangeError("Index out of range")}function checkIEEE754(e,o,f,v,w,P){if(f+v>e.length||f<0)throw RangeError("Index out of range")}function writeFloat(e,o,f,v,P){return o=+o,f>>>=0,P||checkIEEE754(e,o,f,4,34028234663852886e22,-34028234663852886e22),w.write(e,o,f,v,23,4),f+4}function writeDouble(e,o,f,v,P){return o=+o,f>>>=0,P||checkIEEE754(e,o,f,8,17976931348623157e292,-17976931348623157e292),w.write(e,o,f,v,52,8),f+8}o.Buffer=Buffer,o.SlowBuffer=function(e){return+e!=e&&(e=0),Buffer.alloc(+e)},o.INSPECT_MAX_BYTES=50,o.kMaxLength=2147483647,Buffer.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),o={foo:function(){return 42}};return Object.setPrototypeOf(o,Uint8Array.prototype),Object.setPrototypeOf(e,o),42===e.foo()}catch(e){return!1}}(),Buffer.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(Buffer.prototype,"parent",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.buffer}}),Object.defineProperty(Buffer.prototype,"offset",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.byteOffset}}),Buffer.poolSize=8192,Buffer.from=function(e,o,f){return from(e,o,f)},Object.setPrototypeOf(Buffer.prototype,Uint8Array.prototype),Object.setPrototypeOf(Buffer,Uint8Array),Buffer.alloc=function(e,o,f){return(assertSize(e),e<=0)?createBuffer(e):void 0!==o?"string"==typeof f?createBuffer(e).fill(o,f):createBuffer(e).fill(o):createBuffer(e)},Buffer.allocUnsafe=function(e){return allocUnsafe(e)},Buffer.allocUnsafeSlow=function(e){return allocUnsafe(e)},Buffer.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==Buffer.prototype},Buffer.compare=function(e,o){if(isInstance(e,Uint8Array)&&(e=Buffer.from(e,e.offset,e.byteLength)),isInstance(o,Uint8Array)&&(o=Buffer.from(o,o.offset,o.byteLength)),!Buffer.isBuffer(e)||!Buffer.isBuffer(o))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===o)return 0;for(var f=e.length,v=o.length,w=0,P=Math.min(f,v);w<P;++w)if(e[w]!==o[w]){f=e[w],v=o[w];break}return f<v?-1:v<f?1:0},Buffer.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Buffer.concat=function(e,o){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return Buffer.alloc(0);if(void 0===o)for(f=0,o=0;f<e.length;++f)o+=e[f].length;var f,v=Buffer.allocUnsafe(o),w=0;for(f=0;f<e.length;++f){var P=e[f];if(isInstance(P,Uint8Array)&&(P=Buffer.from(P)),!Buffer.isBuffer(P))throw TypeError('"list" argument must be an Array of Buffers');P.copy(v,w),w+=P.length}return v},Buffer.byteLength=byteLength,Buffer.prototype._isBuffer=!0,Buffer.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var o=0;o<e;o+=2)swap(this,o,o+1);return this},Buffer.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var o=0;o<e;o+=4)swap(this,o,o+3),swap(this,o+1,o+2);return this},Buffer.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var o=0;o<e;o+=8)swap(this,o,o+7),swap(this,o+1,o+6),swap(this,o+2,o+5),swap(this,o+3,o+4);return this},Buffer.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?utf8Slice(this,0,e):slowToString.apply(this,arguments)},Buffer.prototype.toLocaleString=Buffer.prototype.toString,Buffer.prototype.equals=function(e){if(!Buffer.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===Buffer.compare(this,e)},Buffer.prototype.inspect=function(){var e="",f=o.INSPECT_MAX_BYTES;return e=this.toString("hex",0,f).replace(/(.{2})/g,"$1 ").trim(),this.length>f&&(e+=" ... "),"<Buffer "+e+">"},P&&(Buffer.prototype[P]=Buffer.prototype.inspect),Buffer.prototype.compare=function(e,o,f,v,w){if(isInstance(e,Uint8Array)&&(e=Buffer.from(e,e.offset,e.byteLength)),!Buffer.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===o&&(o=0),void 0===f&&(f=e?e.length:0),void 0===v&&(v=0),void 0===w&&(w=this.length),o<0||f>e.length||v<0||w>this.length)throw RangeError("out of range index");if(v>=w&&o>=f)return 0;if(v>=w)return -1;if(o>=f)return 1;if(o>>>=0,f>>>=0,v>>>=0,w>>>=0,this===e)return 0;for(var P=w-v,N=f-o,F=Math.min(P,N),U=this.slice(v,w),V=e.slice(o,f),H=0;H<F;++H)if(U[H]!==V[H]){P=U[H],N=V[H];break}return P<N?-1:N<P?1:0},Buffer.prototype.includes=function(e,o,f){return -1!==this.indexOf(e,o,f)},Buffer.prototype.indexOf=function(e,o,f){return bidirectionalIndexOf(this,e,o,f,!0)},Buffer.prototype.lastIndexOf=function(e,o,f){return bidirectionalIndexOf(this,e,o,f,!1)},Buffer.prototype.write=function(e,o,f,v){if(void 0===o)v="utf8",f=this.length,o=0;else if(void 0===f&&"string"==typeof o)v=o,f=this.length,o=0;else if(isFinite(o))o>>>=0,isFinite(f)?(f>>>=0,void 0===v&&(v="utf8")):(v=f,f=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var w,P,N,F,U,V,H,q,W,K,G,Z,X=this.length-o;if((void 0===f||f>X)&&(f=X),e.length>0&&(f<0||o<0)||o>this.length)throw RangeError("Attempt to write outside buffer bounds");v||(v="utf8");for(var J=!1;;)switch(v){case"hex":return function(e,o,f,v){f=Number(f)||0;var w=e.length-f;v?(v=Number(v))>w&&(v=w):v=w;var P=o.length;v>P/2&&(v=P/2);for(var N=0;N<v;++N){var F=parseInt(o.substr(2*N,2),16);if(F!=F)break;e[f+N]=F}return N}(this,e,o,f);case"utf8":case"utf-8":return U=o,V=f,blitBuffer(utf8ToBytes(e,this.length-U),this,U,V);case"ascii":return H=o,q=f,blitBuffer(asciiToBytes(e),this,H,q);case"latin1":case"binary":return w=this,P=e,N=o,F=f,blitBuffer(asciiToBytes(P),w,N,F);case"base64":return W=o,K=f,blitBuffer(base64ToBytes(e),this,W,K);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G=o,Z=f,blitBuffer(function(e,o){for(var f,v,w=[],P=0;P<e.length&&!((o-=2)<0);++P)v=(f=e.charCodeAt(P))>>8,w.push(f%256),w.push(v);return w}(e,this.length-G),this,G,Z);default:if(J)throw TypeError("Unknown encoding: "+v);v=(""+v).toLowerCase(),J=!0}},Buffer.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},Buffer.prototype.slice=function(e,o){var f=this.length;e=~~e,o=void 0===o?f:~~o,e<0?(e+=f)<0&&(e=0):e>f&&(e=f),o<0?(o+=f)<0&&(o=0):o>f&&(o=f),o<e&&(o=e);var v=this.subarray(e,o);return Object.setPrototypeOf(v,Buffer.prototype),v},Buffer.prototype.readUIntLE=function(e,o,f){e>>>=0,o>>>=0,f||checkOffset(e,o,this.length);for(var v=this[e],w=1,P=0;++P<o&&(w*=256);)v+=this[e+P]*w;return v},Buffer.prototype.readUIntBE=function(e,o,f){e>>>=0,o>>>=0,f||checkOffset(e,o,this.length);for(var v=this[e+--o],w=1;o>0&&(w*=256);)v+=this[e+--o]*w;return v},Buffer.prototype.readUInt8=function(e,o){return e>>>=0,o||checkOffset(e,1,this.length),this[e]},Buffer.prototype.readUInt16LE=function(e,o){return e>>>=0,o||checkOffset(e,2,this.length),this[e]|this[e+1]<<8},Buffer.prototype.readUInt16BE=function(e,o){return e>>>=0,o||checkOffset(e,2,this.length),this[e]<<8|this[e+1]},Buffer.prototype.readUInt32LE=function(e,o){return e>>>=0,o||checkOffset(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Buffer.prototype.readUInt32BE=function(e,o){return e>>>=0,o||checkOffset(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Buffer.prototype.readIntLE=function(e,o,f){e>>>=0,o>>>=0,f||checkOffset(e,o,this.length);for(var v=this[e],w=1,P=0;++P<o&&(w*=256);)v+=this[e+P]*w;return v>=(w*=128)&&(v-=Math.pow(2,8*o)),v},Buffer.prototype.readIntBE=function(e,o,f){e>>>=0,o>>>=0,f||checkOffset(e,o,this.length);for(var v=o,w=1,P=this[e+--v];v>0&&(w*=256);)P+=this[e+--v]*w;return P>=(w*=128)&&(P-=Math.pow(2,8*o)),P},Buffer.prototype.readInt8=function(e,o){return(e>>>=0,o||checkOffset(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},Buffer.prototype.readInt16LE=function(e,o){e>>>=0,o||checkOffset(e,2,this.length);var f=this[e]|this[e+1]<<8;return 32768&f?4294901760|f:f},Buffer.prototype.readInt16BE=function(e,o){e>>>=0,o||checkOffset(e,2,this.length);var f=this[e+1]|this[e]<<8;return 32768&f?4294901760|f:f},Buffer.prototype.readInt32LE=function(e,o){return e>>>=0,o||checkOffset(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Buffer.prototype.readInt32BE=function(e,o){return e>>>=0,o||checkOffset(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Buffer.prototype.readFloatLE=function(e,o){return e>>>=0,o||checkOffset(e,4,this.length),w.read(this,e,!0,23,4)},Buffer.prototype.readFloatBE=function(e,o){return e>>>=0,o||checkOffset(e,4,this.length),w.read(this,e,!1,23,4)},Buffer.prototype.readDoubleLE=function(e,o){return e>>>=0,o||checkOffset(e,8,this.length),w.read(this,e,!0,52,8)},Buffer.prototype.readDoubleBE=function(e,o){return e>>>=0,o||checkOffset(e,8,this.length),w.read(this,e,!1,52,8)},Buffer.prototype.writeUIntLE=function(e,o,f,v){if(e=+e,o>>>=0,f>>>=0,!v){var w=Math.pow(2,8*f)-1;checkInt(this,e,o,f,w,0)}var P=1,N=0;for(this[o]=255&e;++N<f&&(P*=256);)this[o+N]=e/P&255;return o+f},Buffer.prototype.writeUIntBE=function(e,o,f,v){if(e=+e,o>>>=0,f>>>=0,!v){var w=Math.pow(2,8*f)-1;checkInt(this,e,o,f,w,0)}var P=f-1,N=1;for(this[o+P]=255&e;--P>=0&&(N*=256);)this[o+P]=e/N&255;return o+f},Buffer.prototype.writeUInt8=function(e,o,f){return e=+e,o>>>=0,f||checkInt(this,e,o,1,255,0),this[o]=255&e,o+1},Buffer.prototype.writeUInt16LE=function(e,o,f){return e=+e,o>>>=0,f||checkInt(this,e,o,2,65535,0),this[o]=255&e,this[o+1]=e>>>8,o+2},Buffer.prototype.writeUInt16BE=function(e,o,f){return e=+e,o>>>=0,f||checkInt(this,e,o,2,65535,0),this[o]=e>>>8,this[o+1]=255&e,o+2},Buffer.prototype.writeUInt32LE=function(e,o,f){return e=+e,o>>>=0,f||checkInt(this,e,o,4,4294967295,0),this[o+3]=e>>>24,this[o+2]=e>>>16,this[o+1]=e>>>8,this[o]=255&e,o+4},Buffer.prototype.writeUInt32BE=function(e,o,f){return e=+e,o>>>=0,f||checkInt(this,e,o,4,4294967295,0),this[o]=e>>>24,this[o+1]=e>>>16,this[o+2]=e>>>8,this[o+3]=255&e,o+4},Buffer.prototype.writeIntLE=function(e,o,f,v){if(e=+e,o>>>=0,!v){var w=Math.pow(2,8*f-1);checkInt(this,e,o,f,w-1,-w)}var P=0,N=1,F=0;for(this[o]=255&e;++P<f&&(N*=256);)e<0&&0===F&&0!==this[o+P-1]&&(F=1),this[o+P]=(e/N>>0)-F&255;return o+f},Buffer.prototype.writeIntBE=function(e,o,f,v){if(e=+e,o>>>=0,!v){var w=Math.pow(2,8*f-1);checkInt(this,e,o,f,w-1,-w)}var P=f-1,N=1,F=0;for(this[o+P]=255&e;--P>=0&&(N*=256);)e<0&&0===F&&0!==this[o+P+1]&&(F=1),this[o+P]=(e/N>>0)-F&255;return o+f},Buffer.prototype.writeInt8=function(e,o,f){return e=+e,o>>>=0,f||checkInt(this,e,o,1,127,-128),e<0&&(e=255+e+1),this[o]=255&e,o+1},Buffer.prototype.writeInt16LE=function(e,o,f){return e=+e,o>>>=0,f||checkInt(this,e,o,2,32767,-32768),this[o]=255&e,this[o+1]=e>>>8,o+2},Buffer.prototype.writeInt16BE=function(e,o,f){return e=+e,o>>>=0,f||checkInt(this,e,o,2,32767,-32768),this[o]=e>>>8,this[o+1]=255&e,o+2},Buffer.prototype.writeInt32LE=function(e,o,f){return e=+e,o>>>=0,f||checkInt(this,e,o,4,2147483647,-2147483648),this[o]=255&e,this[o+1]=e>>>8,this[o+2]=e>>>16,this[o+3]=e>>>24,o+4},Buffer.prototype.writeInt32BE=function(e,o,f){return e=+e,o>>>=0,f||checkInt(this,e,o,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[o]=e>>>24,this[o+1]=e>>>16,this[o+2]=e>>>8,this[o+3]=255&e,o+4},Buffer.prototype.writeFloatLE=function(e,o,f){return writeFloat(this,e,o,!0,f)},Buffer.prototype.writeFloatBE=function(e,o,f){return writeFloat(this,e,o,!1,f)},Buffer.prototype.writeDoubleLE=function(e,o,f){return writeDouble(this,e,o,!0,f)},Buffer.prototype.writeDoubleBE=function(e,o,f){return writeDouble(this,e,o,!1,f)},Buffer.prototype.copy=function(e,o,f,v){if(!Buffer.isBuffer(e))throw TypeError("argument should be a Buffer");if(f||(f=0),v||0===v||(v=this.length),o>=e.length&&(o=e.length),o||(o=0),v>0&&v<f&&(v=f),v===f||0===e.length||0===this.length)return 0;if(o<0)throw RangeError("targetStart out of bounds");if(f<0||f>=this.length)throw RangeError("Index out of range");if(v<0)throw RangeError("sourceEnd out of bounds");v>this.length&&(v=this.length),e.length-o<v-f&&(v=e.length-o+f);var w=v-f;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(o,f,v);else if(this===e&&f<o&&o<v)for(var P=w-1;P>=0;--P)e[P+o]=this[P+f];else Uint8Array.prototype.set.call(e,this.subarray(f,v),o);return w},Buffer.prototype.fill=function(e,o,f,v){if("string"==typeof e){if("string"==typeof o?(v=o,o=0,f=this.length):"string"==typeof f&&(v=f,f=this.length),void 0!==v&&"string"!=typeof v)throw TypeError("encoding must be a string");if("string"==typeof v&&!Buffer.isEncoding(v))throw TypeError("Unknown encoding: "+v);if(1===e.length){var w,P=e.charCodeAt(0);("utf8"===v&&P<128||"latin1"===v)&&(e=P)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(o<0||this.length<o||this.length<f)throw RangeError("Out of range index");if(f<=o)return this;if(o>>>=0,f=void 0===f?this.length:f>>>0,e||(e=0),"number"==typeof e)for(w=o;w<f;++w)this[w]=e;else{var N=Buffer.isBuffer(e)?e:Buffer.from(e,v),F=N.length;if(0===F)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(w=0;w<f-o;++w)this[w+o]=N[w%F]}return this};var N=/[^+/0-9A-Za-z-_]/g;function utf8ToBytes(e,o){o=o||1/0;for(var f,v=e.length,w=null,P=[],N=0;N<v;++N){if((f=e.charCodeAt(N))>55295&&f<57344){if(!w){if(f>56319||N+1===v){(o-=3)>-1&&P.push(239,191,189);continue}w=f;continue}if(f<56320){(o-=3)>-1&&P.push(239,191,189),w=f;continue}f=(w-55296<<10|f-56320)+65536}else w&&(o-=3)>-1&&P.push(239,191,189);if(w=null,f<128){if((o-=1)<0)break;P.push(f)}else if(f<2048){if((o-=2)<0)break;P.push(f>>6|192,63&f|128)}else if(f<65536){if((o-=3)<0)break;P.push(f>>12|224,f>>6&63|128,63&f|128)}else if(f<1114112){if((o-=4)<0)break;P.push(f>>18|240,f>>12&63|128,f>>6&63|128,63&f|128)}else throw Error("Invalid code point")}return P}function asciiToBytes(e){for(var o=[],f=0;f<e.length;++f)o.push(255&e.charCodeAt(f));return o}function base64ToBytes(e){return v.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(N,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function blitBuffer(e,o,f,v){for(var w=0;w<v&&!(w+f>=o.length)&&!(w>=e.length);++w)o[w+f]=e[w];return w}function isInstance(e,o){return e instanceof o||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===o.name}var F=function(){for(var e="0123456789abcdef",o=Array(256),f=0;f<16;++f)for(var v=16*f,w=0;w<16;++w)o[v+w]=e[f]+e[w];return o}()},783:function(e,o){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */o.read=function(e,o,f,v,w){var P,N,F=8*w-v-1,U=(1<<F)-1,V=U>>1,H=-7,q=f?w-1:0,W=f?-1:1,K=e[o+q];for(q+=W,P=K&(1<<-H)-1,K>>=-H,H+=F;H>0;P=256*P+e[o+q],q+=W,H-=8);for(N=P&(1<<-H)-1,P>>=-H,H+=v;H>0;N=256*N+e[o+q],q+=W,H-=8);if(0===P)P=1-V;else{if(P===U)return N?NaN:(K?-1:1)*(1/0);N+=Math.pow(2,v),P-=V}return(K?-1:1)*N*Math.pow(2,P-v)},o.write=function(e,o,f,v,w,P){var N,F,U,V=8*P-w-1,H=(1<<V)-1,q=H>>1,W=23===w?5960464477539062e-23:0,K=v?0:P-1,G=v?1:-1,Z=o<0||0===o&&1/o<0?1:0;for(isNaN(o=Math.abs(o))||o===1/0?(F=isNaN(o)?1:0,N=H):(N=Math.floor(Math.log(o)/Math.LN2),o*(U=Math.pow(2,-N))<1&&(N--,U*=2),N+q>=1?o+=W/U:o+=W*Math.pow(2,1-q),o*U>=2&&(N++,U/=2),N+q>=H?(F=0,N=H):N+q>=1?(F=(o*U-1)*Math.pow(2,w),N+=q):(F=o*Math.pow(2,q-1)*Math.pow(2,w),N=0));w>=8;e[f+K]=255&F,K+=G,F/=256,w-=8);for(N=N<<w|F,V+=w;V>0;e[f+K]=255&N,K+=G,N/=256,V-=8);e[f+K-G]|=128*Z}}},f={};function __nccwpck_require__(e){var v=f[e];if(void 0!==v)return v.exports;var w=f[e]={exports:{}},P=!0;try{o[e](w,w.exports,__nccwpck_require__),P=!1}finally{P&&delete f[e]}return w.exports}__nccwpck_require__.ab="//";var v=__nccwpck_require__(72);e.exports=v}()},70041:function(){},57443:function(){},51487:function(){},54081:function(e,o){"use strict";function isAbortError(e){return(null==e?void 0:e.name)==="AbortError"}async function pipeReadable(e,o,f){let v=e.getReader(),w=!1,P=!1;function onClose(){P=!0,o.off("close",onClose),w||(w=!0,v.cancel().catch(()=>{}))}o.on("close",onClose);try{for(;;){let{done:e,value:f}=await v.read();if(w=e,e||P)break;f&&(o.write(f),null==o.flush||o.flush.call(o))}}catch(e){if(!isAbortError(e))throw e}finally{o.off("close",onClose),w||v.cancel().catch(()=>{}),f&&await f,P||o.end()}}Object.defineProperty(o,"__esModule",{value:!0}),function(e,o){for(var f in o)Object.defineProperty(e,f,{enumerable:!0,get:o[f]})}(o,{isAbortError:function(){return isAbortError},pipeReadable:function(){return pipeReadable}})},9008:function(e,o,f){e.exports=f(79201)},11163:function(e,o,f){e.exports=f(59974)},4298:function(e,o,f){e.exports=f(85354)},51462:function(e,o,f){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.GoogleAnalytics=void 0;let v=f(70655),w=v.__importDefault(f(67294)),P=v.__importDefault(f(4298));o.GoogleAnalytics=function({gaMeasurementId:e,strategy:o="afterInteractive"}){let f="G-3NJTJQ61SH";return f?w.default.createElement(w.default.Fragment,null,w.default.createElement(P.default,{src:`https://www.googletagmanager.com/gtag/js?id=${f}`,strategy:o}),w.default.createElement(P.default,{id:"nextjs-google-analytics"},`
            window.dataLayer = window.dataLayer || [];
            function gtag(){dataLayer.push(arguments);}
            gtag('js', new Date());
            gtag('config', '${f}', {
              page_path: window.location.pathname,
            });
          `)):null}},87270:function(e,o,f){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.GoogleAnalytics=void 0;var v=f(51462);Object.defineProperty(o,"GoogleAnalytics",{enumerable:!0,get:function(){return v.GoogleAnalytics}})},88816:function(e,o,f){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.usePageViews=o.usePagesViews=void 0;var v=f(47015);Object.defineProperty(o,"usePagesViews",{enumerable:!0,get:function(){return v.usePagesViews}});var w=f(69412);Object.defineProperty(o,"usePageViews",{enumerable:!0,get:function(){return w.usePageViews}})},69412:function(e,o,f){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.usePageViews=void 0;let v=f(67294),w=f(11163),P=f(18396);o.usePageViews=function(e){let o=(0,w.useRouter)();(0,v.useEffect)(()=>{let handleRouteChange=e=>{(0,P.pageView)({path:e.toString()},"G-3NJTJQ61SH")};return o.events.on("routeChangeComplete",handleRouteChange),()=>{o.events.off("routeChangeComplete",handleRouteChange)}},[o.events])}},47015:function(e,o,f){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.usePagesViews=void 0;let v=f(69412);o.usePagesViews=function(e){(0,v.usePageViews)(e)}},44304:function(e,o,f){"use strict";o.B=o.C2=o.Wi=void 0;var v=f(87270);Object.defineProperty(o,"Wi",{enumerable:!0,get:function(){return v.GoogleAnalytics}});var w=f(88816);Object.defineProperty(o,"C2",{enumerable:!0,get:function(){return w.usePageViews}});var P=f(18396);Object.defineProperty(o,"B",{enumerable:!0,get:function(){return P.event}})},99633:function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.event=void 0,o.event=function(e,{category:o,label:f,value:v,nonInteraction:w,userId:P}={},N){if(!window.gtag)return;let F={};void 0!==o&&(F.event_category=o),void 0!==f&&(F.event_label=f),void 0!==v&&(F.value=v),void 0!==w&&(F.non_interaction=w),void 0!==P&&(F.user_id=P),window.gtag("event",e,F)}},18396:function(e,o,f){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.event=o.pageView=void 0;var v=f(83371);Object.defineProperty(o,"pageView",{enumerable:!0,get:function(){return v.pageView}});var w=f(99633);Object.defineProperty(o,"event",{enumerable:!0,get:function(){return w.event}})},83371:function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.pageView=void 0,o.pageView=function({title:e,location:o,path:f,sendPageView:v,userId:w}={},P){let N="G-3NJTJQ61SH";if(!N||!window.gtag)return;let F={};void 0!==e&&(F.page_title=e),void 0!==o&&(F.page_location=o),void 0!==f&&(F.page_path=f),void 0!==v&&(F.send_page_view=v),void 0!==w&&(F.user_id=w),window.gtag("config",N,F)}},34155:function(e){var o,f,v,w=e.exports={};function defaultSetTimout(){throw Error("setTimeout has not been defined")}function defaultClearTimeout(){throw Error("clearTimeout has not been defined")}function runTimeout(e){if(o===setTimeout)return setTimeout(e,0);if((o===defaultSetTimout||!o)&&setTimeout)return o=setTimeout,setTimeout(e,0);try{return o(e,0)}catch(f){try{return o.call(null,e,0)}catch(f){return o.call(this,e,0)}}}!function(){try{o="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){o=defaultSetTimout}try{f="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){f=defaultClearTimeout}}();var P=[],N=!1,F=-1;function cleanUpNextTick(){N&&v&&(N=!1,v.length?P=v.concat(P):F=-1,P.length&&drainQueue())}function drainQueue(){if(!N){var e=runTimeout(cleanUpNextTick);N=!0;for(var o=P.length;o;){for(v=P,P=[];++F<o;)v&&v[F].run();F=-1,o=P.length}v=null,N=!1,function(e){if(f===clearTimeout)return clearTimeout(e);if((f===defaultClearTimeout||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{f(e)}catch(o){try{return f.call(null,e)}catch(o){return f.call(this,e)}}}(e)}}function Item(e,o){this.fun=e,this.array=o}function noop(){}w.nextTick=function(e){var o=Array(arguments.length-1);if(arguments.length>1)for(var f=1;f<arguments.length;f++)o[f-1]=arguments[f];P.push(new Item(e,o)),1!==P.length||N||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},w.title="browser",w.browser=!0,w.env={},w.argv=[],w.version="",w.versions={},w.on=noop,w.addListener=noop,w.once=noop,w.off=noop,w.removeListener=noop,w.removeAllListeners=noop,w.emit=noop,w.prependListener=noop,w.prependOnceListener=noop,w.listeners=function(e){return[]},w.binding=function(e){throw Error("process.binding is not supported")},w.cwd=function(){return"/"},w.chdir=function(e){throw Error("process.chdir is not supported")},w.umask=function(){return 0}},70655:function(e,o,f){"use strict";f.r(o),f.d(o,{__assign:function(){return __assign},__asyncDelegator:function(){return __asyncDelegator},__asyncGenerator:function(){return __asyncGenerator},__asyncValues:function(){return __asyncValues},__await:function(){return __await},__awaiter:function(){return __awaiter},__classPrivateFieldGet:function(){return __classPrivateFieldGet},__classPrivateFieldSet:function(){return __classPrivateFieldSet},__createBinding:function(){return v},__decorate:function(){return __decorate},__exportStar:function(){return __exportStar},__extends:function(){return __extends},__generator:function(){return __generator},__importDefault:function(){return __importDefault},__importStar:function(){return __importStar},__makeTemplateObject:function(){return __makeTemplateObject},__metadata:function(){return __metadata},__param:function(){return __param},__read:function(){return __read},__rest:function(){return __rest},__spread:function(){return __spread},__spreadArray:function(){return __spreadArray},__spreadArrays:function(){return __spreadArrays},__values:function(){return __values}});/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var extendStatics=function(e,o){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var f in o)Object.prototype.hasOwnProperty.call(o,f)&&(e[f]=o[f])})(e,o)};function __extends(e,o){if("function"!=typeof o&&null!==o)throw TypeError("Class extends value "+String(o)+" is not a constructor or null");function __(){this.constructor=e}extendStatics(e,o),e.prototype=null===o?Object.create(o):(__.prototype=o.prototype,new __)}var __assign=function(){return(__assign=Object.assign||function(e){for(var o,f=1,v=arguments.length;f<v;f++)for(var w in o=arguments[f])Object.prototype.hasOwnProperty.call(o,w)&&(e[w]=o[w]);return e}).apply(this,arguments)};function __rest(e,o){var f={};for(var v in e)Object.prototype.hasOwnProperty.call(e,v)&&0>o.indexOf(v)&&(f[v]=e[v]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var w=0,v=Object.getOwnPropertySymbols(e);w<v.length;w++)0>o.indexOf(v[w])&&Object.prototype.propertyIsEnumerable.call(e,v[w])&&(f[v[w]]=e[v[w]]);return f}function __decorate(e,o,f,v){var w,P=arguments.length,N=P<3?o:null===v?v=Object.getOwnPropertyDescriptor(o,f):v;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)N=Reflect.decorate(e,o,f,v);else for(var F=e.length-1;F>=0;F--)(w=e[F])&&(N=(P<3?w(N):P>3?w(o,f,N):w(o,f))||N);return P>3&&N&&Object.defineProperty(o,f,N),N}function __param(e,o){return function(f,v){o(f,v,e)}}function __metadata(e,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,o)}function __awaiter(e,o,f,v){return new(f||(f=Promise))(function(w,P){function fulfilled(e){try{step(v.next(e))}catch(e){P(e)}}function rejected(e){try{step(v.throw(e))}catch(e){P(e)}}function step(e){var o;e.done?w(e.value):((o=e.value)instanceof f?o:new f(function(e){e(o)})).then(fulfilled,rejected)}step((v=v.apply(e,o||[])).next())})}function __generator(e,o){var f,v,w,P,N={label:0,sent:function(){if(1&w[0])throw w[1];return w[1]},trys:[],ops:[]};return P={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(P[Symbol.iterator]=function(){return this}),P;function verb(P){return function(F){return function(P){if(f)throw TypeError("Generator is already executing.");for(;N;)try{if(f=1,v&&(w=2&P[0]?v.return:P[0]?v.throw||((w=v.return)&&w.call(v),0):v.next)&&!(w=w.call(v,P[1])).done)return w;switch(v=0,w&&(P=[2&P[0],w.value]),P[0]){case 0:case 1:w=P;break;case 4:return N.label++,{value:P[1],done:!1};case 5:N.label++,v=P[1],P=[0];continue;case 7:P=N.ops.pop(),N.trys.pop();continue;default:if(!(w=(w=N.trys).length>0&&w[w.length-1])&&(6===P[0]||2===P[0])){N=0;continue}if(3===P[0]&&(!w||P[1]>w[0]&&P[1]<w[3])){N.label=P[1];break}if(6===P[0]&&N.label<w[1]){N.label=w[1],w=P;break}if(w&&N.label<w[2]){N.label=w[2],N.ops.push(P);break}w[2]&&N.ops.pop(),N.trys.pop();continue}P=o.call(e,N)}catch(e){P=[6,e],v=0}finally{f=w=0}if(5&P[0])throw P[1];return{value:P[0]?P[1]:void 0,done:!0}}([P,F])}}}var v=Object.create?function(e,o,f,v){void 0===v&&(v=f),Object.defineProperty(e,v,{enumerable:!0,get:function(){return o[f]}})}:function(e,o,f,v){void 0===v&&(v=f),e[v]=o[f]};function __exportStar(e,o){for(var f in e)"default"===f||Object.prototype.hasOwnProperty.call(o,f)||v(o,e,f)}function __values(e){var o="function"==typeof Symbol&&Symbol.iterator,f=o&&e[o],v=0;if(f)return f.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&v>=e.length&&(e=void 0),{value:e&&e[v++],done:!e}}};throw TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(e,o){var f="function"==typeof Symbol&&e[Symbol.iterator];if(!f)return e;var v,w,P=f.call(e),N=[];try{for(;(void 0===o||o-- >0)&&!(v=P.next()).done;)N.push(v.value)}catch(e){w={error:e}}finally{try{v&&!v.done&&(f=P.return)&&f.call(P)}finally{if(w)throw w.error}}return N}function __spread(){for(var e=[],o=0;o<arguments.length;o++)e=e.concat(__read(arguments[o]));return e}function __spreadArrays(){for(var e=0,o=0,f=arguments.length;o<f;o++)e+=arguments[o].length;for(var v=Array(e),w=0,o=0;o<f;o++)for(var P=arguments[o],N=0,F=P.length;N<F;N++,w++)v[w]=P[N];return v}function __spreadArray(e,o,f){if(f||2==arguments.length)for(var v,w=0,P=o.length;w<P;w++)!v&&w in o||(v||(v=Array.prototype.slice.call(o,0,w)),v[w]=o[w]);return e.concat(v||Array.prototype.slice.call(o))}function __await(e){return this instanceof __await?(this.v=e,this):new __await(e)}function __asyncGenerator(e,o,f){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var v,w=f.apply(e,o||[]),P=[];return v={},verb("next"),verb("throw"),verb("return"),v[Symbol.asyncIterator]=function(){return this},v;function verb(e){w[e]&&(v[e]=function(o){return new Promise(function(f,v){P.push([e,o,f,v])>1||resume(e,o)})})}function resume(e,o){try{var f;(f=w[e](o)).value instanceof __await?Promise.resolve(f.value.v).then(fulfill,reject):settle(P[0][2],f)}catch(e){settle(P[0][3],e)}}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,o){e(o),P.shift(),P.length&&resume(P[0][0],P[0][1])}}function __asyncDelegator(e){var o,f;return o={},verb("next"),verb("throw",function(e){throw e}),verb("return"),o[Symbol.iterator]=function(){return this},o;function verb(v,w){o[v]=e[v]?function(o){return(f=!f)?{value:__await(e[v](o)),done:"return"===v}:w?w(o):o}:w}}function __asyncValues(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var o,f=e[Symbol.asyncIterator];return f?f.call(e):(e=__values(e),o={},verb("next"),verb("throw"),verb("return"),o[Symbol.asyncIterator]=function(){return this},o);function verb(f){o[f]=e[f]&&function(o){return new Promise(function(v,w){!function(e,o,f,v){Promise.resolve(v).then(function(o){e({value:o,done:f})},o)}(v,w,(o=e[f](o)).done,o.value)})}}}function __makeTemplateObject(e,o){return Object.defineProperty?Object.defineProperty(e,"raw",{value:o}):e.raw=o,e}var w=Object.create?function(e,o){Object.defineProperty(e,"default",{enumerable:!0,value:o})}:function(e,o){e.default=o};function __importStar(e){if(e&&e.__esModule)return e;var o={};if(null!=e)for(var f in e)"default"!==f&&Object.prototype.hasOwnProperty.call(e,f)&&v(o,e,f);return w(o,e),o}function __importDefault(e){return e&&e.__esModule?e:{default:e}}function __classPrivateFieldGet(e,o,f,v){if("a"===f&&!v)throw TypeError("Private accessor was defined without a getter");if("function"==typeof o?e!==o||!v:!o.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===f?v:"a"===f?v.call(e):v?v.value:o.get(e)}function __classPrivateFieldSet(e,o,f,v,w){if("m"===v)throw TypeError("Private method is not writable");if("a"===v&&!w)throw TypeError("Private accessor was defined without a setter");if("function"==typeof o?e!==o||!w:!o.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===v?w.call(e,f):w?w.value=f:o.set(e,f),f}},26849:function(e,o,f){"use strict";/**
 * @license React
 * use-sync-external-store-shim.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var v=f(67294),w="function"==typeof Object.is?Object.is:function(e,o){return e===o&&(0!==e||1/e==1/o)||e!=e&&o!=o},P=v.useState,N=v.useEffect,F=v.useLayoutEffect,U=v.useDebugValue;function r(e){var o=e.getSnapshot;e=e.value;try{var f=o();return!w(e,f)}catch(e){return!0}}var V="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,o){return o()}:function(e,o){var f=o(),v=P({inst:{value:f,getSnapshot:o}}),w=v[0].inst,V=v[1];return F(function(){w.value=f,w.getSnapshot=o,r(w)&&V({inst:w})},[e,f,o]),N(function(){return r(w)&&V({inst:w}),e(function(){r(w)&&V({inst:w})})},[e]),U(f),f};o.useSyncExternalStore=void 0!==v.useSyncExternalStore?v.useSyncExternalStore:V},49743:function(e,o,f){"use strict";/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var v=f(67294),w=f(54652),P="function"==typeof Object.is?Object.is:function(e,o){return e===o&&(0!==e||1/e==1/o)||e!=e&&o!=o},N=w.useSyncExternalStore,F=v.useRef,U=v.useEffect,V=v.useMemo,H=v.useDebugValue;o.useSyncExternalStoreWithSelector=function(e,o,f,v,w){var q=F(null);if(null===q.current){var W={hasValue:!1,value:null};q.current=W}else W=q.current;var K=N(e,(q=V(function(){function a(o){if(!F){if(F=!0,e=o,o=v(o),void 0!==w&&W.hasValue){var f=W.value;if(w(f,o))return N=f}return N=o}if(f=N,P(e,o))return f;var U=v(o);return void 0!==w&&w(f,U)?f:(e=o,N=U)}var e,N,F=!1,U=void 0===f?null:f;return[function(){return a(o())},null===U?void 0:function(){return a(U())}]},[o,f,v,w]))[0],q[1]);return U(function(){W.hasValue=!0,W.value=K},[K]),H(K),K}},54652:function(e,o,f){"use strict";e.exports=f(26849)},28258:function(e,o,f){"use strict";e.exports=f(49743)},25383:function(e){e.exports=function(e,o){(null==o||o>e.length)&&(o=e.length);for(var f=0,v=Array(o);f<o;f++)v[f]=e[f];return v},e.exports.__esModule=!0,e.exports.default=e.exports},68799:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},60182:function(e){e.exports=function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},82479:function(e){function asyncGeneratorStep(e,o,f,v,w,P,N){try{var F=e[P](N),U=F.value}catch(e){f(e);return}F.done?o(U):Promise.resolve(U).then(v,w)}e.exports=function(e){return function(){var o=this,f=arguments;return new Promise(function(v,w){var P=e.apply(o,f);function _next(e){asyncGeneratorStep(P,v,w,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(P,v,w,_next,_throw,"throw",e)}_next(void 0)})}},e.exports.__esModule=!0,e.exports.default=e.exports},52870:function(e){e.exports=function(e,o){if(!(e instanceof o))throw TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},21360:function(e,o,f){var v=f(39686),w=f(6009);e.exports=function(e,o,f){if(w())return Reflect.construct.apply(null,arguments);var P=[null];P.push.apply(P,o);var N=new(e.bind.apply(e,P));return f&&v(N,f.prototype),N},e.exports.__esModule=!0,e.exports.default=e.exports},39033:function(e,o,f){var v=f(88398);function _defineProperties(e,o){for(var f=0;f<o.length;f++){var w=o[f];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(e,v(w.key),w)}}e.exports=function(e,o,f){return o&&_defineProperties(e.prototype,o),f&&_defineProperties(e,f),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},55010:function(e,o,f){var v=f(88398);e.exports=function(e,o,f){return(o=v(o))in e?Object.defineProperty(e,o,{value:f,enumerable:!0,configurable:!0,writable:!0}):e[o]=f,e},e.exports.__esModule=!0,e.exports.default=e.exports},99590:function(e){function _getPrototypeOf(o){return e.exports=_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,_getPrototypeOf(o)}e.exports=_getPrototypeOf,e.exports.__esModule=!0,e.exports.default=e.exports},24221:function(e,o,f){var v=f(39686);e.exports=function(e,o){if("function"!=typeof o&&null!==o)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(o&&o.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),o&&v(e,o)},e.exports.__esModule=!0,e.exports.default=e.exports},36426:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},18666:function(e){e.exports=function(e){try{return -1!==Function.toString.call(e).indexOf("[native code]")}catch(o){return"function"==typeof e}},e.exports.__esModule=!0,e.exports.default=e.exports},6009:function(e){function _isNativeReflectConstruct(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(e.exports=_isNativeReflectConstruct=function(){return!!o},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=_isNativeReflectConstruct,e.exports.__esModule=!0,e.exports.default=e.exports},26371:function(e){e.exports=function(e,o){var f=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=f){var v,w,P,N,F=[],U=!0,V=!1;try{if(P=(f=f.call(e)).next,0===o){if(Object(f)!==f)return;U=!1}else for(;!(U=(v=P.call(f)).done)&&(F.push(v.value),F.length!==o);U=!0);}catch(e){V=!0,w=e}finally{try{if(!U&&null!=f.return&&(N=f.return(),Object(N)!==N))return}finally{if(V)throw w}}return F}},e.exports.__esModule=!0,e.exports.default=e.exports},48124:function(e){e.exports=function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},97688:function(e,o,f){var v=f(4749).default,w=f(60182);e.exports=function(e,o){if(o&&("object"===v(o)||"function"==typeof o))return o;if(void 0!==o)throw TypeError("Derived constructors may only return object or undefined");return w(e)},e.exports.__esModule=!0,e.exports.default=e.exports},80035:function(e,o,f){var v=f(4749).default;function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=_regeneratorRuntime=function(){return f},e.exports.__esModule=!0,e.exports.default=e.exports;var o,f={},w=Object.prototype,P=w.hasOwnProperty,N=Object.defineProperty||function(e,o,f){e[o]=f.value},F="function"==typeof Symbol?Symbol:{},U=F.iterator||"@@iterator",V=F.asyncIterator||"@@asyncIterator",H=F.toStringTag||"@@toStringTag";function define(e,o,f){return Object.defineProperty(e,o,{value:f,enumerable:!0,configurable:!0,writable:!0}),e[o]}try{define({},"")}catch(e){define=function(e,o,f){return e[o]=f}}function wrap(e,f,v,w){var P,F,U=Object.create((f&&f.prototype instanceof Generator?f:Generator).prototype);return N(U,"_invoke",{value:(P=new Context(w||[]),F=q,function(f,w){if(F===W)throw Error("Generator is already running");if(F===K){if("throw"===f)throw w;return{value:o,done:!0}}for(P.method=f,P.arg=w;;){var N=P.delegate;if(N){var U=function maybeInvokeDelegate(e,f){var v=f.method,w=e.iterator[v];if(w===o)return f.delegate=null,"throw"===v&&e.iterator.return&&(f.method="return",f.arg=o,maybeInvokeDelegate(e,f),"throw"===f.method)||"return"!==v&&(f.method="throw",f.arg=TypeError("The iterator does not provide a '"+v+"' method")),G;var P=tryCatch(w,e.iterator,f.arg);if("throw"===P.type)return f.method="throw",f.arg=P.arg,f.delegate=null,G;var N=P.arg;return N?N.done?(f[e.resultName]=N.value,f.next=e.nextLoc,"return"!==f.method&&(f.method="next",f.arg=o),f.delegate=null,G):N:(f.method="throw",f.arg=TypeError("iterator result is not an object"),f.delegate=null,G)}(N,P);if(U){if(U===G)continue;return U}}if("next"===P.method)P.sent=P._sent=P.arg;else if("throw"===P.method){if(F===q)throw F=K,P.arg;P.dispatchException(P.arg)}else"return"===P.method&&P.abrupt("return",P.arg);F=W;var V=tryCatch(e,v,P);if("normal"===V.type){if(F=P.done?K:"suspendedYield",V.arg===G)continue;return{value:V.arg,done:P.done}}"throw"===V.type&&(F=K,P.method="throw",P.arg=V.arg)}})}),U}function tryCatch(e,o,f){try{return{type:"normal",arg:e.call(o,f)}}catch(e){return{type:"throw",arg:e}}}f.wrap=wrap;var q="suspendedStart",W="executing",K="completed",G={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var Z={};define(Z,U,function(){return this});var X=Object.getPrototypeOf,J=X&&X(X(values([])));J&&J!==w&&P.call(J,U)&&(Z=J);var Y=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(Z);function defineIteratorMethods(e){["next","throw","return"].forEach(function(o){define(e,o,function(e){return this._invoke(o,e)})})}function AsyncIterator(e,o){var f;N(this,"_invoke",{value:function(w,N){function callInvokeWithMethodAndArg(){return new o(function(f,F){!function invoke(f,w,N,F){var U=tryCatch(e[f],e,w);if("throw"!==U.type){var V=U.arg,H=V.value;return H&&"object"==v(H)&&P.call(H,"__await")?o.resolve(H.__await).then(function(e){invoke("next",e,N,F)},function(e){invoke("throw",e,N,F)}):o.resolve(H).then(function(e){V.value=e,N(V)},function(e){return invoke("throw",e,N,F)})}F(U.arg)}(w,N,f,F)})}return f=f?f.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function pushTryEntry(e){var o={tryLoc:e[0]};1 in e&&(o.catchLoc=e[1]),2 in e&&(o.finallyLoc=e[2],o.afterLoc=e[3]),this.tryEntries.push(o)}function resetTryEntry(e){var o=e.completion||{};o.type="normal",delete o.arg,e.completion=o}function Context(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(pushTryEntry,this),this.reset(!0)}function values(e){if(e||""===e){var f=e[U];if(f)return f.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var w=-1,i=function next(){for(;++w<e.length;)if(P.call(e,w))return next.value=e[w],next.done=!1,next;return next.value=o,next.done=!0,next};return i.next=i}}throw TypeError(v(e)+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,N(Y,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),N(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,H,"GeneratorFunction"),f.isGeneratorFunction=function(e){var o="function"==typeof e&&e.constructor;return!!o&&(o===GeneratorFunction||"GeneratorFunction"===(o.displayName||o.name))},f.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,define(e,H,"GeneratorFunction")),e.prototype=Object.create(Y),e},f.awrap=function(e){return{__await:e}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,V,function(){return this}),f.AsyncIterator=AsyncIterator,f.async=function(e,o,v,w,P){void 0===P&&(P=Promise);var N=new AsyncIterator(wrap(e,o,v,w),P);return f.isGeneratorFunction(o)?N:N.next().then(function(e){return e.done?e.value:N.next()})},defineIteratorMethods(Y),define(Y,H,"Generator"),define(Y,U,function(){return this}),define(Y,"toString",function(){return"[object Generator]"}),f.keys=function(e){var o=Object(e),f=[];for(var v in o)f.push(v);return f.reverse(),function next(){for(;f.length;){var e=f.pop();if(e in o)return next.value=e,next.done=!1,next}return next.done=!0,next}},f.values=values,Context.prototype={constructor:Context,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=o,this.done=!1,this.delegate=null,this.method="next",this.arg=o,this.tryEntries.forEach(resetTryEntry),!e)for(var f in this)"t"===f.charAt(0)&&P.call(this,f)&&!isNaN(+f.slice(1))&&(this[f]=o)},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 f=this;function handle(v,w){return N.type="throw",N.arg=e,f.next=v,w&&(f.method="next",f.arg=o),!!w}for(var v=this.tryEntries.length-1;v>=0;--v){var w=this.tryEntries[v],N=w.completion;if("root"===w.tryLoc)return handle("end");if(w.tryLoc<=this.prev){var F=P.call(w,"catchLoc"),U=P.call(w,"finallyLoc");if(F&&U){if(this.prev<w.catchLoc)return handle(w.catchLoc,!0);if(this.prev<w.finallyLoc)return handle(w.finallyLoc)}else if(F){if(this.prev<w.catchLoc)return handle(w.catchLoc,!0)}else{if(!U)throw Error("try statement without catch or finally");if(this.prev<w.finallyLoc)return handle(w.finallyLoc)}}}},abrupt:function(e,o){for(var f=this.tryEntries.length-1;f>=0;--f){var v=this.tryEntries[f];if(v.tryLoc<=this.prev&&P.call(v,"finallyLoc")&&this.prev<v.finallyLoc){var w=v;break}}w&&("break"===e||"continue"===e)&&w.tryLoc<=o&&o<=w.finallyLoc&&(w=null);var N=w?w.completion:{};return N.type=e,N.arg=o,w?(this.method="next",this.next=w.finallyLoc,G):this.complete(N)},complete:function(e,o){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&&o&&(this.next=o),G},finish:function(e){for(var o=this.tryEntries.length-1;o>=0;--o){var f=this.tryEntries[o];if(f.finallyLoc===e)return this.complete(f.completion,f.afterLoc),resetTryEntry(f),G}},catch:function(e){for(var o=this.tryEntries.length-1;o>=0;--o){var f=this.tryEntries[o];if(f.tryLoc===e){var v=f.completion;if("throw"===v.type){var w=v.arg;resetTryEntry(f)}return w}}throw Error("illegal catch attempt")},delegateYield:function(e,f,v){return this.delegate={iterator:values(e),resultName:f,nextLoc:v},"next"===this.method&&(this.arg=o),G}},f}e.exports=_regeneratorRuntime,e.exports.__esModule=!0,e.exports.default=e.exports},39686:function(e){function _setPrototypeOf(o,f){return e.exports=_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,o){return e.__proto__=o,e},e.exports.__esModule=!0,e.exports.default=e.exports,_setPrototypeOf(o,f)}e.exports=_setPrototypeOf,e.exports.__esModule=!0,e.exports.default=e.exports},73089:function(e,o,f){var v=f(68799),w=f(26371),P=f(10355),N=f(48124);e.exports=function(e,o){return v(e)||w(e,o)||P(e,o)||N()},e.exports.__esModule=!0,e.exports.default=e.exports},19110:function(e,o,f){var v=f(4749).default;e.exports=function(e,o){if("object"!=v(e)||!e)return e;var f=e[Symbol.toPrimitive];if(void 0!==f){var w=f.call(e,o||"default");if("object"!=v(w))return w;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===o?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},88398:function(e,o,f){var v=f(4749).default,w=f(19110);e.exports=function(e){var o=w(e,"string");return"symbol"==v(o)?o:o+""},e.exports.__esModule=!0,e.exports.default=e.exports},4749:function(e){function _typeof(o){return e.exports=_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,_typeof(o)}e.exports=_typeof,e.exports.__esModule=!0,e.exports.default=e.exports},10355:function(e,o,f){var v=f(25383);e.exports=function(e,o){if(e){if("string"==typeof e)return v(e,o);var f=Object.prototype.toString.call(e).slice(8,-1);if("Object"===f&&e.constructor&&(f=e.constructor.name),"Map"===f||"Set"===f)return Array.from(e);if("Arguments"===f||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return v(e,o)}},e.exports.__esModule=!0,e.exports.default=e.exports},32615:function(e,o,f){var v=f(99590),w=f(39686),P=f(18666),N=f(21360);function _wrapNativeSuper(o){var f="function"==typeof Map?new Map:void 0;return e.exports=_wrapNativeSuper=function(e){if(null===e||!P(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==f){if(f.has(e))return f.get(e);f.set(e,Wrapper)}function Wrapper(){return N(e,arguments,v(this).constructor)}return Wrapper.prototype=Object.create(e.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),w(Wrapper,e)},e.exports.__esModule=!0,e.exports.default=e.exports,_wrapNativeSuper(o)}e.exports=_wrapNativeSuper,e.exports.__esModule=!0,e.exports.default=e.exports},26572:function(e,o,f){var v=f(80035)();e.exports=v;try{regeneratorRuntime=v}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=v:Function("r","regeneratorRuntime = r")(v)}},87462:function(e,o,f){"use strict";function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var f=arguments[o];for(var v in f)Object.prototype.hasOwnProperty.call(f,v)&&(e[v]=f[v])}return e}).apply(this,arguments)}f.d(o,{Z:function(){return _extends}})},44164:function(e,o,f){"use strict";f.d(o,{qX:function(){return _getProvider},Xd:function(){return _registerComponent},Mq:function(){return getApp},ZF:function(){return initializeApp},KN:function(){return registerVersion}});var v,w,P=f(8463);/**
 * @license
 * Copyright 2017 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let N=[];(v=w||(w={}))[v.DEBUG=0]="DEBUG",v[v.VERBOSE=1]="VERBOSE",v[v.INFO=2]="INFO",v[v.WARN=3]="WARN",v[v.ERROR=4]="ERROR",v[v.SILENT=5]="SILENT";let F={debug:w.DEBUG,verbose:w.VERBOSE,info:w.INFO,warn:w.WARN,error:w.ERROR,silent:w.SILENT},U=w.INFO,V={[w.DEBUG]:"log",[w.VERBOSE]:"log",[w.INFO]:"info",[w.WARN]:"warn",[w.ERROR]:"error"},defaultLogHandler=(e,o,...f)=>{if(o<e.logLevel)return;let v=new Date().toISOString(),w=V[o];if(w)console[w](`[${v}]  ${e.name}:`,...f);else throw Error(`Attempted to log a message with an invalid logType (value: ${o})`)};var H=f(74444);/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let PlatformLoggerServiceImpl=class PlatformLoggerServiceImpl{constructor(e){this.container=e}getPlatformInfoString(){let e=this.container.getProviders();return e.map(e=>{if(!function(e){let o=e.getComponent();return(null==o?void 0:o.type)==="VERSION"}(e))return null;{let o=e.getImmediate();return`${o.library}/${o.version}`}}).filter(e=>e).join(" ")}};let q="@firebase/app",W="0.7.20",K=new class{constructor(e){this.name=e,this._logLevel=U,this._logHandler=defaultLogHandler,this._userLogHandler=null,N.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in w))throw TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?F[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!=typeof e)throw TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,w.DEBUG,...e),this._logHandler(this,w.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,w.VERBOSE,...e),this._logHandler(this,w.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,w.INFO,...e),this._logHandler(this,w.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,w.WARN,...e),this._logHandler(this,w.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,w.ERROR,...e),this._logHandler(this,w.ERROR,...e)}}("@firebase/app"),G="[DEFAULT]",Z={[q]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","fire-js":"fire-js",firebase:"fire-js-all"},X=new Map,J=new Map;function _registerComponent(e){let o=e.name;if(J.has(o))return K.debug(`There were multiple attempts to register component ${o}.`),!1;for(let f of(J.set(o,e),X.values()))!function(e,o){try{e.container.addComponent(o)}catch(f){K.debug(`Component ${o.name} failed to register with FirebaseApp ${e.name}`,f)}}(f,e);return!0}function _getProvider(e,o){let f=e.container.getProvider("heartbeat").getImmediate({optional:!0});return f&&f.triggerHeartbeat(),e.container.getProvider(o)}let Y=new H.LL("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()","bad-app-name":"Illegal App name: '{$appName}","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","storage-open":"Error thrown when opening storage. Original error: {$originalErrorMessage}.","storage-get":"Error thrown when reading from storage. Original error: {$originalErrorMessage}.","storage-set":"Error thrown when writing to storage. Original error: {$originalErrorMessage}.","storage-delete":"Error thrown when deleting from storage. Original error: {$originalErrorMessage}."});/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let FirebaseAppImpl=class FirebaseAppImpl{constructor(e,o,f){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},o),this._name=o.name,this._automaticDataCollectionEnabled=o.automaticDataCollectionEnabled,this._container=f,this.container.addComponent(new P.wA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw Y.create("app-deleted",{appName:this._name})}};function initializeApp(e,o={}){if("object"!=typeof o){let e=o;o={name:e}}let f=Object.assign({name:G,automaticDataCollectionEnabled:!1},o),v=f.name;if("string"!=typeof v||!v)throw Y.create("bad-app-name",{appName:String(v)});let w=X.get(v);if(w){if((0,H.vZ)(e,w.options)&&(0,H.vZ)(f,w.config))return w;throw Y.create("duplicate-app",{appName:v})}let N=new P.H0(v);for(let e of J.values())N.addComponent(e);let F=new FirebaseAppImpl(e,f,N);return X.set(v,F),F}function getApp(e=G){let o=X.get(e);if(!o)throw Y.create("no-app",{appName:e});return o}function registerVersion(e,o,f){var v;let w=null!==(v=Z[e])&&void 0!==v?v:e;f&&(w+=`-${f}`);let N=w.match(/\s|\//),F=o.match(/\s|\//);if(N||F){let e=[`Unable to register library "${w}" with version "${o}":`];N&&e.push(`library name "${w}" contains illegal characters (whitespace or "/")`),N&&F&&e.push("and"),F&&e.push(`version name "${o}" contains illegal characters (whitespace or "/")`),K.warn(e.join(" "));return}_registerComponent(new P.wA(`${w}-version`,()=>({library:w,version:o}),"VERSION"))}let ee="firebase-heartbeat-store",et=null;function getDbPromise(){return et||(et=(0,H.X3)("firebase-heartbeat-database",1,(e,o)=>{0===o&&e.createObjectStore(ee)}).catch(e=>{throw Y.create("storage-open",{originalErrorMessage:e.message})})),et}async function readHeartbeatsFromIndexedDB(e){try{let o=await getDbPromise();return o.transaction(ee).objectStore(ee).get(computeKey(e))}catch(e){throw Y.create("storage-get",{originalErrorMessage:e.message})}}async function writeHeartbeatsToIndexedDB(e,o){try{let f=await getDbPromise(),v=f.transaction(ee,"readwrite"),w=v.objectStore(ee);return await w.put(o,computeKey(e)),v.complete}catch(e){throw Y.create("storage-set",{originalErrorMessage:e.message})}}function computeKey(e){return`${e.name}!${e.options.appId}`}let HeartbeatServiceImpl=class HeartbeatServiceImpl{constructor(e){this.container=e,this._heartbeatsCache=null;let o=this.container.getProvider("app").getImmediate();this._storage=new HeartbeatStorageImpl(o),this._heartbeatsCachePromise=this._storage.read().then(e=>(this._heartbeatsCache=e,e))}async triggerHeartbeat(){let e=this.container.getProvider("platform-logger").getImmediate(),o=e.getPlatformInfoString(),f=getUTCDateString();return(null===this._heartbeatsCache&&(this._heartbeatsCache=await this._heartbeatsCachePromise),this._heartbeatsCache.lastSentHeartbeatDate===f||this._heartbeatsCache.heartbeats.some(e=>e.date===f))?void 0:(this._heartbeatsCache.heartbeats.push({date:f,agent:o}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(e=>{let o=new Date(e.date).valueOf(),f=Date.now();return f-o<=2592e6}),this._storage.overwrite(this._heartbeatsCache))}async getHeartbeatsHeader(){if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,null===this._heartbeatsCache||0===this._heartbeatsCache.heartbeats.length)return"";let e=getUTCDateString(),{heartbeatsToSend:o,unsentEntries:f}=function(e,o=1024){let f=[],v=e.slice();for(let w of e){let e=f.find(e=>e.agent===w.agent);if(e){if(e.dates.push(w.date),countBytes(f)>o){e.dates.pop();break}}else if(f.push({agent:w.agent,dates:[w.date]}),countBytes(f)>o){f.pop();break}v=v.slice(1)}return{heartbeatsToSend:f,unsentEntries:v}}(this._heartbeatsCache.heartbeats),v=(0,H.L)(JSON.stringify({version:2,heartbeats:o}));return this._heartbeatsCache.lastSentHeartbeatDate=e,f.length>0?(this._heartbeatsCache.heartbeats=f,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),v}};function getUTCDateString(){let e=new Date;return e.toISOString().substring(0,10)}let HeartbeatStorageImpl=class HeartbeatStorageImpl{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!(0,H.hl)()&&(0,H.eu)().then(()=>!0).catch(()=>!1)}async read(){let e=await this._canUseIndexedDBPromise;if(!e)return{heartbeats:[]};{let e=await readHeartbeatsFromIndexedDB(this.app);return e||{heartbeats:[]}}}async overwrite(e){var o;let f=await this._canUseIndexedDBPromise;if(f){let f=await this.read();return writeHeartbeatsToIndexedDB(this.app,{lastSentHeartbeatDate:null!==(o=e.lastSentHeartbeatDate)&&void 0!==o?o:f.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){var o;let f=await this._canUseIndexedDBPromise;if(f){let f=await this.read();return writeHeartbeatsToIndexedDB(this.app,{lastSentHeartbeatDate:null!==(o=e.lastSentHeartbeatDate)&&void 0!==o?o:f.lastSentHeartbeatDate,heartbeats:[...f.heartbeats,...e.heartbeats]})}}};function countBytes(e){return(0,H.L)(JSON.stringify({version:2,heartbeats:e})).length}_registerComponent(new P.wA("platform-logger",e=>new PlatformLoggerServiceImpl(e),"PRIVATE")),_registerComponent(new P.wA("heartbeat",e=>new HeartbeatServiceImpl(e),"PRIVATE")),registerVersion(q,W,""),registerVersion(q,W,"esm2017"),registerVersion("fire-js","")},8463:function(e,o,f){"use strict";f.d(o,{H0:function(){return ComponentContainer},wA:function(){return Component}});var v=f(74444);let Component=class Component{constructor(e,o,f){this.name=e,this.instanceFactory=o,this.type=f,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}};/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let w="[DEFAULT]";/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let Provider=class Provider{constructor(e,o){this.name=e,this.container=o,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){let o=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(o)){let e=new v.BH;if(this.instancesDeferred.set(o,e),this.isInitialized(o)||this.shouldAutoInitialize())try{let f=this.getOrInitializeService({instanceIdentifier:o});f&&e.resolve(f)}catch(e){}}return this.instancesDeferred.get(o).promise}getImmediate(e){var o;let f=this.normalizeInstanceIdentifier(null==e?void 0:e.identifier),v=null!==(o=null==e?void 0:e.optional)&&void 0!==o&&o;if(this.isInitialized(f)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:f})}catch(e){if(v)return null;throw e}else{if(v)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,this.shouldAutoInitialize()){if("EAGER"===e.instantiationMode)try{this.getOrInitializeService({instanceIdentifier:w})}catch(e){}for(let[e,o]of this.instancesDeferred.entries()){let f=this.normalizeInstanceIdentifier(e);try{let e=this.getOrInitializeService({instanceIdentifier:f});o.resolve(e)}catch(e){}}}}clearInstance(e=w){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){let e=Array.from(this.instances.values());await Promise.all([...e.filter(e=>"INTERNAL"in e).map(e=>e.INTERNAL.delete()),...e.filter(e=>"_delete"in e).map(e=>e._delete())])}isComponentSet(){return null!=this.component}isInitialized(e=w){return this.instances.has(e)}getOptions(e=w){return this.instancesOptions.get(e)||{}}initialize(e={}){let{options:o={}}=e,f=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(f))throw Error(`${this.name}(${f}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);let v=this.getOrInitializeService({instanceIdentifier:f,options:o});for(let[e,o]of this.instancesDeferred.entries()){let w=this.normalizeInstanceIdentifier(e);f===w&&o.resolve(v)}return v}onInit(e,o){var f;let v=this.normalizeInstanceIdentifier(o),w=null!==(f=this.onInitCallbacks.get(v))&&void 0!==f?f:new Set;w.add(e),this.onInitCallbacks.set(v,w);let P=this.instances.get(v);return P&&e(P,v),()=>{w.delete(e)}}invokeOnInitCallbacks(e,o){let f=this.onInitCallbacks.get(o);if(f)for(let v of f)try{v(e,o)}catch(e){}}getOrInitializeService({instanceIdentifier:e,options:o={}}){let f=this.instances.get(e);if(!f&&this.component&&(f=this.component.instanceFactory(this.container,{instanceIdentifier:e===w?void 0:e,options:o}),this.instances.set(e,f),this.instancesOptions.set(e,o),this.invokeOnInitCallbacks(f,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,f)}catch(e){}return f||null}normalizeInstanceIdentifier(e=w){return this.component?this.component.multipleInstances?e:w:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}};/**
 * @license
 * Copyright 2019 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */let ComponentContainer=class ComponentContainer{constructor(e){this.name=e,this.providers=new Map}addComponent(e){let o=this.getProvider(e.name);if(o.isComponentSet())throw Error(`Component ${e.name} has already been registered with ${this.name}`);o.setComponent(e)}addOrOverwriteComponent(e){let o=this.getProvider(e.name);o.isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);let o=new Provider(e,this);return this.providers.set(e,o),o}getProviders(){return Array.from(this.providers.values())}}},36206:function(e,o,f){"use strict";function $e42e1063c40fb3ef$export$b9ecd428b558ff10(e,o,{checkForDefaultPrevented:f=!0}={}){return function(v){if(null==e||e(v),!1===f||!v.defaultPrevented)return null==o?void 0:o(v)}}f.d(o,{M:function(){return $e42e1063c40fb3ef$export$b9ecd428b558ff10}})},28771:function(e,o,f){"use strict";f.d(o,{F:function(){return $6ed0406888f73fc4$export$43e446d32b3d21af},e:function(){return $6ed0406888f73fc4$export$c7b2cbe3552a0d05}});var v=f(67294);function $6ed0406888f73fc4$export$43e446d32b3d21af(...e){return o=>e.forEach(e=>{"function"==typeof e?e(o):null!=e&&(e.current=o)})}function $6ed0406888f73fc4$export$c7b2cbe3552a0d05(...e){return(0,v.useCallback)($6ed0406888f73fc4$export$43e446d32b3d21af(...e),e)}},25360:function(e,o,f){"use strict";f.d(o,{b:function(){return $c512c27ab02ef895$export$50c7b4e9d9f19c1},k:function(){return $c512c27ab02ef895$export$fd42f52fd3ae1109}});var v=f(67294);function $c512c27ab02ef895$export$fd42f52fd3ae1109(e,o){let f=(0,v.createContext)(o);function Provider(e){let{children:o,...w}=e,P=(0,v.useMemo)(()=>w,Object.values(w));return(0,v.createElement)(f.Provider,{value:P},o)}return Provider.displayName=e+"Provider",[Provider,function(w){let P=(0,v.useContext)(f);if(P)return P;if(void 0!==o)return o;throw Error(`\`${w}\` must be used within \`${e}\``)}]}function $c512c27ab02ef895$export$50c7b4e9d9f19c1(e,o=[]){let f=[],createScope=()=>{let o=f.map(e=>(0,v.createContext)(e));return function(f){let w=(null==f?void 0:f[e])||o;return(0,v.useMemo)(()=>({[`__scope${e}`]:{...f,[e]:w}}),[f,w])}};return createScope.scopeName=e,[function(o,w){let P=(0,v.createContext)(w),N=f.length;function Provider(o){let{scope:f,children:w,...F}=o,U=(null==f?void 0:f[e][N])||P,V=(0,v.useMemo)(()=>F,Object.values(F));return(0,v.createElement)(U.Provider,{value:V},w)}return f=[...f,w],Provider.displayName=o+"Provider",[Provider,function(f,F){let U=(null==F?void 0:F[e][N])||P,V=(0,v.useContext)(U);if(V)return V;if(void 0!==w)return w;throw Error(`\`${f}\` must be used within \`${o}\``)}]},function(...e){let o=e[0];if(1===e.length)return o;let createScope1=()=>{let f=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let w=f.reduce((o,{useScope:f,scopeName:v})=>{let w=f(e),P=w[`__scope${v}`];return{...o,...P}},{});return(0,v.useMemo)(()=>({[`__scope${o.scopeName}`]:w}),[w])}};return createScope1.scopeName=o.scopeName,createScope1}(createScope,...o)]}},46063:function(e,o,f){"use strict";let v;f.d(o,{XB:function(){return W}});var w=f(87462),P=f(67294),N=f(36206),F=f(75320),U=f(28771),V=f(79698);let H="dismissableLayer.update",q=(0,P.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),W=(0,P.forwardRef)((e,o)=>{var f;let{disableOutsidePointerEvents:W=!1,onEscapeKeyDown:K,onPointerDownOutside:G,onFocusOutside:Z,onInteractOutside:X,onDismiss:J,...Y}=e,ee=(0,P.useContext)(q),[et,er]=(0,P.useState)(null),en=null!==(f=null==et?void 0:et.ownerDocument)&&void 0!==f?f:null==globalThis?void 0:globalThis.document,[,eo]=(0,P.useState)({}),ei=(0,U.e)(o,e=>er(e)),ea=Array.from(ee.layers),[es]=[...ee.layersWithOutsidePointerEventsDisabled].slice(-1),el=ea.indexOf(es),eu=et?ea.indexOf(et):-1,ec=ee.layersWithOutsidePointerEventsDisabled.size>0,ef=eu>=el,ed=function(e,o=null==globalThis?void 0:globalThis.document){let f=(0,V.W)(e),v=(0,P.useRef)(!1),w=(0,P.useRef)(()=>{});return(0,P.useEffect)(()=>{let handlePointerDown=e=>{if(e.target&&!v.current){let v={originalEvent:e};function handleAndDispatchPointerDownOutsideEvent(){$5cb92bef7577960e$var$handleAndDispatchCustomEvent("dismissableLayer.pointerDownOutside",f,v,{discrete:!0})}"touch"===e.pointerType?(o.removeEventListener("click",w.current),w.current=handleAndDispatchPointerDownOutsideEvent,o.addEventListener("click",w.current,{once:!0})):handleAndDispatchPointerDownOutsideEvent()}else o.removeEventListener("click",w.current);v.current=!1},e=window.setTimeout(()=>{o.addEventListener("pointerdown",handlePointerDown)},0);return()=>{window.clearTimeout(e),o.removeEventListener("pointerdown",handlePointerDown),o.removeEventListener("click",w.current)}},[o,f]),{onPointerDownCapture:()=>v.current=!0}}(e=>{let o=e.target,f=[...ee.branches].some(e=>e.contains(o));!ef||f||(null==G||G(e),null==X||X(e),e.defaultPrevented||null==J||J())},en),ep=function(e,o=null==globalThis?void 0:globalThis.document){let f=(0,V.W)(e),v=(0,P.useRef)(!1);return(0,P.useEffect)(()=>{let handleFocus=e=>{e.target&&!v.current&&$5cb92bef7577960e$var$handleAndDispatchCustomEvent("dismissableLayer.focusOutside",f,{originalEvent:e},{discrete:!1})};return o.addEventListener("focusin",handleFocus),()=>o.removeEventListener("focusin",handleFocus)},[o,f]),{onFocusCapture:()=>v.current=!0,onBlurCapture:()=>v.current=!1}}(e=>{let o=e.target,f=[...ee.branches].some(e=>e.contains(o));f||(null==Z||Z(e),null==X||X(e),e.defaultPrevented||null==J||J())},en);return!function(e,o=null==globalThis?void 0:globalThis.document){let f=(0,V.W)(e);(0,P.useEffect)(()=>{let handleKeyDown=e=>{"Escape"===e.key&&f(e)};return o.addEventListener("keydown",handleKeyDown),()=>o.removeEventListener("keydown",handleKeyDown)},[f,o])}(e=>{let o=eu===ee.layers.size-1;o&&(null==K||K(e),!e.defaultPrevented&&J&&(e.preventDefault(),J()))},en),(0,P.useEffect)(()=>{if(et)return W&&(0===ee.layersWithOutsidePointerEventsDisabled.size&&(v=en.body.style.pointerEvents,en.body.style.pointerEvents="none"),ee.layersWithOutsidePointerEventsDisabled.add(et)),ee.layers.add(et),$5cb92bef7577960e$var$dispatchUpdate(),()=>{W&&1===ee.layersWithOutsidePointerEventsDisabled.size&&(en.body.style.pointerEvents=v)}},[et,en,W,ee]),(0,P.useEffect)(()=>()=>{et&&(ee.layers.delete(et),ee.layersWithOutsidePointerEventsDisabled.delete(et),$5cb92bef7577960e$var$dispatchUpdate())},[et,ee]),(0,P.useEffect)(()=>{let handleUpdate=()=>eo({});return document.addEventListener(H,handleUpdate),()=>document.removeEventListener(H,handleUpdate)},[]),(0,P.createElement)(F.WV.div,(0,w.Z)({},Y,{ref:ei,style:{pointerEvents:ec?ef?"auto":"none":void 0,...e.style},onFocusCapture:(0,N.M)(e.onFocusCapture,ep.onFocusCapture),onBlurCapture:(0,N.M)(e.onBlurCapture,ep.onBlurCapture),onPointerDownCapture:(0,N.M)(e.onPointerDownCapture,ed.onPointerDownCapture)}))});function $5cb92bef7577960e$var$dispatchUpdate(){let e=new CustomEvent(H);document.dispatchEvent(e)}function $5cb92bef7577960e$var$handleAndDispatchCustomEvent(e,o,f,{discrete:v}){let w=f.originalEvent.target,P=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:f});o&&w.addEventListener(e,o,{once:!0}),v?(0,F.jH)(w,P):w.dispatchEvent(P)}},91276:function(e,o,f){"use strict";f.d(o,{M:function(){return $1746a345f3d73bb7$export$f680877a34711e37}});var v,w=f(67294),P=f(9981);let N=(v||(v=f.t(w,2)))["useId".toString()]||(()=>void 0),F=0;function $1746a345f3d73bb7$export$f680877a34711e37(e){let[o,f]=w.useState(N());return(0,P.b)(()=>{e||f(e=>null!=e?e:String(F++))},[e]),e||(o?`radix-${o}`:"")}},55586:function(e,o,f){"use strict";f.d(o,{ee:function(){return em},Eh:function(){return eb},VY:function(){return ey},fC:function(){return $cf1ac5d9fe0e8206$export$be92b6f5f03c0fe9},D7:function(){return ea}});var v=f(87462),w=f(67294);let P=["top","right","bottom","left"],N=Math.min,F=Math.max,U=Math.round,V=Math.floor,createCoords=e=>({x:e,y:e}),H={left:"right",right:"left",bottom:"top",top:"bottom"},q={start:"end",end:"start"};function floating_ui_utils_evaluate(e,o){return"function"==typeof e?e(o):e}function floating_ui_utils_getSide(e){return e.split("-")[0]}function floating_ui_utils_getAlignment(e){return e.split("-")[1]}function getOppositeAxis(e){return"x"===e?"y":"x"}function getAxisLength(e){return"y"===e?"height":"width"}function floating_ui_utils_getSideAxis(e){return["top","bottom"].includes(floating_ui_utils_getSide(e))?"y":"x"}function floating_ui_utils_getOppositeAlignmentPlacement(e){return e.replace(/start|end/g,e=>q[e])}function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,e=>H[e])}function floating_ui_utils_getPaddingObject(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function floating_ui_utils_rectToClientRect(e){let{x:o,y:f,width:v,height:w}=e;return{width:v,height:w,top:f,left:o,right:o+v,bottom:f+w,x:o,y:f}}function computeCoordsFromPlacement(e,o,f){let v,{reference:w,floating:P}=e,N=floating_ui_utils_getSideAxis(o),F=getOppositeAxis(floating_ui_utils_getSideAxis(o)),U=getAxisLength(F),V=floating_ui_utils_getSide(o),H="y"===N,q=w.x+w.width/2-P.width/2,W=w.y+w.height/2-P.height/2,K=w[U]/2-P[U]/2;switch(V){case"top":v={x:q,y:w.y-P.height};break;case"bottom":v={x:q,y:w.y+w.height};break;case"right":v={x:w.x+w.width,y:W};break;case"left":v={x:w.x-P.width,y:W};break;default:v={x:w.x,y:w.y}}switch(floating_ui_utils_getAlignment(o)){case"start":v[F]-=K*(f&&H?-1:1);break;case"end":v[F]+=K*(f&&H?-1:1)}return v}let computePosition=async(e,o,f)=>{let{placement:v="bottom",strategy:w="absolute",middleware:P=[],platform:N}=f,F=P.filter(Boolean),U=await (null==N.isRTL?void 0:N.isRTL(o)),V=await N.getElementRects({reference:e,floating:o,strategy:w}),{x:H,y:q}=computeCoordsFromPlacement(V,v,U),W=v,K={},G=0;for(let f=0;f<F.length;f++){let{name:P,fn:Z}=F[f],{x:X,y:J,data:Y,reset:ee}=await Z({x:H,y:q,initialPlacement:v,placement:W,strategy:w,middlewareData:K,rects:V,platform:N,elements:{reference:e,floating:o}});H=null!=X?X:H,q=null!=J?J:q,K={...K,[P]:{...K[P],...Y}},ee&&G<=50&&(G++,"object"==typeof ee&&(ee.placement&&(W=ee.placement),ee.rects&&(V=!0===ee.rects?await N.getElementRects({reference:e,floating:o,strategy:w}):ee.rects),{x:H,y:q}=computeCoordsFromPlacement(V,W,U)),f=-1)}return{x:H,y:q,placement:W,strategy:w,middlewareData:K}};async function detectOverflow(e,o){var f;void 0===o&&(o={});let{x:v,y:w,platform:P,rects:N,elements:F,strategy:U}=e,{boundary:V="clippingAncestors",rootBoundary:H="viewport",elementContext:q="floating",altBoundary:W=!1,padding:K=0}=floating_ui_utils_evaluate(o,e),G=floating_ui_utils_getPaddingObject(K),Z=F[W?"floating"===q?"reference":"floating":q],X=floating_ui_utils_rectToClientRect(await P.getClippingRect({element:null==(f=await (null==P.isElement?void 0:P.isElement(Z)))||f?Z:Z.contextElement||await (null==P.getDocumentElement?void 0:P.getDocumentElement(F.floating)),boundary:V,rootBoundary:H,strategy:U})),J="floating"===q?{x:v,y:w,width:N.floating.width,height:N.floating.height}:N.reference,Y=await (null==P.getOffsetParent?void 0:P.getOffsetParent(F.floating)),ee=await (null==P.isElement?void 0:P.isElement(Y))&&await (null==P.getScale?void 0:P.getScale(Y))||{x:1,y:1},et=floating_ui_utils_rectToClientRect(P.convertOffsetParentRelativeRectToViewportRelativeRect?await P.convertOffsetParentRelativeRectToViewportRelativeRect({elements:F,rect:J,offsetParent:Y,strategy:U}):J);return{top:(X.top-et.top+G.top)/ee.y,bottom:(et.bottom-X.bottom+G.bottom)/ee.y,left:(X.left-et.left+G.left)/ee.x,right:(et.right-X.right+G.right)/ee.x}}function getSideOffsets(e,o){return{top:e.top-o.height,right:e.right-o.width,bottom:e.bottom-o.height,left:e.left-o.width}}function isAnySideFullyClipped(e){return P.some(o=>e[o]>=0)}async function convertValueToCoords(e,o){let{placement:f,platform:v,elements:w}=e,P=await (null==v.isRTL?void 0:v.isRTL(w.floating)),N=floating_ui_utils_getSide(f),F=floating_ui_utils_getAlignment(f),U="y"===floating_ui_utils_getSideAxis(f),V=["left","top"].includes(N)?-1:1,H=P&&U?-1:1,q=floating_ui_utils_evaluate(o,e),{mainAxis:W,crossAxis:K,alignmentAxis:G}="number"==typeof q?{mainAxis:q,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...q};return F&&"number"==typeof G&&(K="end"===F?-1*G:G),U?{x:K*H,y:W*V}:{x:W*V,y:K*H}}function getNodeName(e){return isNode(e)?(e.nodeName||"").toLowerCase():"#document"}function getWindow(e){var o;return(null==e||null==(o=e.ownerDocument)?void 0:o.defaultView)||window}function getDocumentElement(e){var o;return null==(o=(isNode(e)?e.ownerDocument:e.document)||window.document)?void 0:o.documentElement}function isNode(e){return e instanceof Node||e instanceof getWindow(e).Node}function isElement(e){return e instanceof Element||e instanceof getWindow(e).Element}function isHTMLElement(e){return e instanceof HTMLElement||e instanceof getWindow(e).HTMLElement}function isShadowRoot(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof getWindow(e).ShadowRoot)}function isOverflowElement(e){let{overflow:o,overflowX:f,overflowY:v,display:w}=getComputedStyle(e);return/auto|scroll|overlay|hidden|clip/.test(o+v+f)&&!["inline","contents"].includes(w)}function isContainingBlock(e){let o=isWebKit(),f=getComputedStyle(e);return"none"!==f.transform||"none"!==f.perspective||!!f.containerType&&"normal"!==f.containerType||!o&&!!f.backdropFilter&&"none"!==f.backdropFilter||!o&&!!f.filter&&"none"!==f.filter||["transform","perspective","filter"].some(e=>(f.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(f.contain||"").includes(e))}function isWebKit(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(e){return["html","body","#document"].includes(getNodeName(e))}function getComputedStyle(e){return getWindow(e).getComputedStyle(e)}function getNodeScroll(e){return isElement(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function getParentNode(e){if("html"===getNodeName(e))return e;let o=e.assignedSlot||e.parentNode||isShadowRoot(e)&&e.host||getDocumentElement(e);return isShadowRoot(o)?o.host:o}function getOverflowAncestors(e,o,f){var v;void 0===o&&(o=[]),void 0===f&&(f=!0);let w=function getNearestOverflowAncestor(e){let o=getParentNode(e);return isLastTraversableNode(o)?e.ownerDocument?e.ownerDocument.body:e.body:isHTMLElement(o)&&isOverflowElement(o)?o:getNearestOverflowAncestor(o)}(e),P=w===(null==(v=e.ownerDocument)?void 0:v.body),N=getWindow(w);return P?o.concat(N,N.visualViewport||[],isOverflowElement(w)?w:[],N.frameElement&&f?getOverflowAncestors(N.frameElement):[]):o.concat(w,getOverflowAncestors(w,[],f))}function getCssDimensions(e){let o=getComputedStyle(e),f=parseFloat(o.width)||0,v=parseFloat(o.height)||0,w=isHTMLElement(e),P=w?e.offsetWidth:f,N=w?e.offsetHeight:v,F=U(f)!==P||U(v)!==N;return F&&(f=P,v=N),{width:f,height:v,$:F}}function unwrapElement(e){return isElement(e)?e:e.contextElement}function getScale(e){let o=unwrapElement(e);if(!isHTMLElement(o))return createCoords(1);let f=o.getBoundingClientRect(),{width:v,height:w,$:P}=getCssDimensions(o),N=(P?U(f.width):f.width)/v,F=(P?U(f.height):f.height)/w;return N&&Number.isFinite(N)||(N=1),F&&Number.isFinite(F)||(F=1),{x:N,y:F}}let W=createCoords(0);function getVisualOffsets(e){let o=getWindow(e);return isWebKit()&&o.visualViewport?{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}:W}function getBoundingClientRect(e,o,f,v){var w;void 0===o&&(o=!1),void 0===f&&(f=!1);let P=e.getBoundingClientRect(),N=unwrapElement(e),F=createCoords(1);o&&(v?isElement(v)&&(F=getScale(v)):F=getScale(e));let U=(void 0===(w=f)&&(w=!1),v&&(!w||v===getWindow(N))&&w)?getVisualOffsets(N):createCoords(0),V=(P.left+U.x)/F.x,H=(P.top+U.y)/F.y,q=P.width/F.x,W=P.height/F.y;if(N){let e=getWindow(N),o=v&&isElement(v)?getWindow(v):v,f=e,w=f.frameElement;for(;w&&v&&o!==f;){let e=getScale(w),o=w.getBoundingClientRect(),v=getComputedStyle(w),P=o.left+(w.clientLeft+parseFloat(v.paddingLeft))*e.x,N=o.top+(w.clientTop+parseFloat(v.paddingTop))*e.y;V*=e.x,H*=e.y,q*=e.x,W*=e.y,V+=P,H+=N,w=(f=getWindow(w)).frameElement}}return floating_ui_utils_rectToClientRect({width:q,height:W,x:V,y:H})}let K=[":popover-open",":modal"];function isTopLayer(e){return K.some(o=>{try{return e.matches(o)}catch(e){return!1}})}function getWindowScrollBarX(e){return getBoundingClientRect(getDocumentElement(e)).left+getNodeScroll(e).scrollLeft}function getClientRectFromClippingAncestor(e,o,f){let v;if("viewport"===o)v=function(e,o){let f=getWindow(e),v=getDocumentElement(e),w=f.visualViewport,P=v.clientWidth,N=v.clientHeight,F=0,U=0;if(w){P=w.width,N=w.height;let e=isWebKit();(!e||e&&"fixed"===o)&&(F=w.offsetLeft,U=w.offsetTop)}return{width:P,height:N,x:F,y:U}}(e,f);else if("document"===o)v=function(e){let o=getDocumentElement(e),f=getNodeScroll(e),v=e.ownerDocument.body,w=F(o.scrollWidth,o.clientWidth,v.scrollWidth,v.clientWidth),P=F(o.scrollHeight,o.clientHeight,v.scrollHeight,v.clientHeight),N=-f.scrollLeft+getWindowScrollBarX(e),U=-f.scrollTop;return"rtl"===getComputedStyle(v).direction&&(N+=F(o.clientWidth,v.clientWidth)-w),{width:w,height:P,x:N,y:U}}(getDocumentElement(e));else if(isElement(o))v=function(e,o){let f=getBoundingClientRect(e,!0,"fixed"===o),v=f.top+e.clientTop,w=f.left+e.clientLeft,P=isHTMLElement(e)?getScale(e):createCoords(1),N=e.clientWidth*P.x,F=e.clientHeight*P.y,U=w*P.x,V=v*P.y;return{width:N,height:F,x:U,y:V}}(o,f);else{let f=getVisualOffsets(e);v={...o,x:o.x-f.x,y:o.y-f.y}}return floating_ui_utils_rectToClientRect(v)}function isStaticPositioned(e){return"static"===getComputedStyle(e).position}function getTrueOffsetParent(e,o){return isHTMLElement(e)&&"fixed"!==getComputedStyle(e).position?o?o(e):e.offsetParent:null}function getOffsetParent(e,o){let f=getWindow(e);if(isTopLayer(e))return f;if(!isHTMLElement(e)){let o=getParentNode(e);for(;o&&!isLastTraversableNode(o);){if(isElement(o)&&!isStaticPositioned(o))return o;o=getParentNode(o)}return f}let v=getTrueOffsetParent(e,o);for(;v&&["table","td","th"].includes(getNodeName(v))&&isStaticPositioned(v);)v=getTrueOffsetParent(v,o);return v&&isLastTraversableNode(v)&&isStaticPositioned(v)&&!isContainingBlock(v)?f:v||function(e){let o=getParentNode(e);for(;isHTMLElement(o)&&!isLastTraversableNode(o);){if(isContainingBlock(o))return o;o=getParentNode(o)}return null}(e)||f}let getElementRects=async function(e){let o=this.getOffsetParent||getOffsetParent,f=this.getDimensions,v=await f(e.floating);return{reference:function(e,o,f){let v=isHTMLElement(o),w=getDocumentElement(o),P="fixed"===f,N=getBoundingClientRect(e,!0,P,o),F={scrollLeft:0,scrollTop:0},U=createCoords(0);if(v||!v&&!P){if(("body"!==getNodeName(o)||isOverflowElement(w))&&(F=getNodeScroll(o)),v){let e=getBoundingClientRect(o,!0,P,o);U.x=e.x+o.clientLeft,U.y=e.y+o.clientTop}else w&&(U.x=getWindowScrollBarX(w))}let V=N.left+F.scrollLeft-U.x,H=N.top+F.scrollTop-U.y;return{x:V,y:H,width:N.width,height:N.height}}(e.reference,await o(e.floating),e.strategy),floating:{x:0,y:0,width:v.width,height:v.height}}},G={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:o,rect:f,offsetParent:v,strategy:w}=e,P="fixed"===w,N=getDocumentElement(v),F=!!o&&isTopLayer(o.floating);if(v===N||F&&P)return f;let U={scrollLeft:0,scrollTop:0},V=createCoords(1),H=createCoords(0),q=isHTMLElement(v);if((q||!q&&!P)&&(("body"!==getNodeName(v)||isOverflowElement(N))&&(U=getNodeScroll(v)),isHTMLElement(v))){let e=getBoundingClientRect(v);V=getScale(v),H.x=e.x+v.clientLeft,H.y=e.y+v.clientTop}return{width:f.width*V.x,height:f.height*V.y,x:f.x*V.x-U.scrollLeft*V.x+H.x,y:f.y*V.y-U.scrollTop*V.y+H.y}},getDocumentElement:getDocumentElement,getClippingRect:function(e){let{element:o,boundary:f,rootBoundary:v,strategy:w}=e,P="clippingAncestors"===f?isTopLayer(o)?[]:function(e,o){let f=o.get(e);if(f)return f;let v=getOverflowAncestors(e,[],!1).filter(e=>isElement(e)&&"body"!==getNodeName(e)),w=null,P="fixed"===getComputedStyle(e).position,N=P?getParentNode(e):e;for(;isElement(N)&&!isLastTraversableNode(N);){let o=getComputedStyle(N),f=isContainingBlock(N);f||"fixed"!==o.position||(w=null);let F=P?!f&&!w:!f&&"static"===o.position&&!!w&&["absolute","fixed"].includes(w.position)||isOverflowElement(N)&&!f&&function hasFixedPositionAncestor(e,o){let f=getParentNode(e);return!(f===o||!isElement(f)||isLastTraversableNode(f))&&("fixed"===getComputedStyle(f).position||hasFixedPositionAncestor(f,o))}(e,N);F?v=v.filter(e=>e!==N):w=o,N=getParentNode(N)}return o.set(e,v),v}(o,this._c):[].concat(f),U=[...P,v],V=U[0],H=U.reduce((e,f)=>{let v=getClientRectFromClippingAncestor(o,f,w);return e.top=F(v.top,e.top),e.right=N(v.right,e.right),e.bottom=N(v.bottom,e.bottom),e.left=F(v.left,e.left),e},getClientRectFromClippingAncestor(o,V,w));return{width:H.right-H.left,height:H.bottom-H.top,x:H.left,y:H.top}},getOffsetParent,getElementRects,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:o,height:f}=getCssDimensions(e);return{width:o,height:f}},getScale,isElement:isElement,isRTL:function(e){return"rtl"===getComputedStyle(e).direction}},floating_ui_dom_arrow=e=>({name:"arrow",options:e,async fn(o){let{x:f,y:v,placement:w,rects:P,platform:U,elements:V,middlewareData:H}=o,{element:q,padding:W=0}=floating_ui_utils_evaluate(e,o)||{};if(null==q)return{};let K=floating_ui_utils_getPaddingObject(W),G={x:f,y:v},Z=getOppositeAxis(floating_ui_utils_getSideAxis(w)),X=getAxisLength(Z),J=await U.getDimensions(q),Y="y"===Z,ee=Y?"clientHeight":"clientWidth",et=P.reference[X]+P.reference[Z]-G[Z]-P.floating[X],er=G[Z]-P.reference[Z],en=await (null==U.getOffsetParent?void 0:U.getOffsetParent(q)),eo=en?en[ee]:0;eo&&await (null==U.isElement?void 0:U.isElement(en))||(eo=V.floating[ee]||P.floating[X]);let ei=eo/2-J[X]/2-1,ea=N(K[Y?"top":"left"],ei),es=N(K[Y?"bottom":"right"],ei),el=eo-J[X]-es,eu=eo/2-J[X]/2+(et/2-er/2),ec=F(ea,N(eu,el)),ef=!H.arrow&&null!=floating_ui_utils_getAlignment(w)&&eu!==ec&&P.reference[X]/2-(eu<ea?ea:es)-J[X]/2<0,ed=ef?eu<ea?eu-ea:eu-el:0;return{[Z]:G[Z]+ed,data:{[Z]:ec,centerOffset:eu-ec-ed,...ef&&{alignmentOffset:ed}},reset:ef}}}),floating_ui_dom_computePosition=(e,o,f)=>{let v=new Map,w={platform:G,...f},P={...w.platform,_c:v};return computePosition(e,o,{...w,platform:P})};var Z=f(73935),X="undefined"!=typeof document?w.useLayoutEffect:w.useEffect;function deepEqual(e,o){let f,v,w;if(e===o)return!0;if(typeof e!=typeof o)return!1;if("function"==typeof e&&e.toString()===o.toString())return!0;if(e&&o&&"object"==typeof e){if(Array.isArray(e)){if((f=e.length)!==o.length)return!1;for(v=f;0!=v--;)if(!deepEqual(e[v],o[v]))return!1;return!0}if((f=(w=Object.keys(e)).length)!==Object.keys(o).length)return!1;for(v=f;0!=v--;)if(!({}).hasOwnProperty.call(o,w[v]))return!1;for(v=f;0!=v--;){let f=w[v];if(("_owner"!==f||!e.$$typeof)&&!deepEqual(e[f],o[f]))return!1}return!0}return e!=e&&o!=o}function getDPR(e){if("undefined"==typeof window)return 1;let o=e.ownerDocument.defaultView||window;return o.devicePixelRatio||1}function roundByDPR(e,o){let f=getDPR(e);return Math.round(o*f)/f}function useLatestRef(e){let o=w.useRef(e);return X(()=>{o.current=e}),o}let arrow$1=e=>({name:"arrow",options:e,fn(o){let{element:f,padding:v}="function"==typeof e?e(o):e;return f&&({}).hasOwnProperty.call(f,"current")?null!=f.current?floating_ui_dom_arrow({element:f.current,padding:v}).fn(o):{}:f?floating_ui_dom_arrow({element:f,padding:v}).fn(o):{}}}),floating_ui_react_dom_offset=(e,o)=>{var f;return{...(void 0===(f=e)&&(f=0),{name:"offset",options:f,async fn(e){var o,v;let{x:w,y:P,placement:N,middlewareData:F}=e,U=await convertValueToCoords(e,f);return N===(null==(o=F.offset)?void 0:o.placement)&&null!=(v=F.arrow)&&v.alignmentOffset?{}:{x:w+U.x,y:P+U.y,data:{...U,placement:N}}}}),options:[e,o]}},floating_ui_react_dom_shift=(e,o)=>{var f;return{...(void 0===(f=e)&&(f={}),{name:"shift",options:f,async fn(e){let{x:o,y:v,placement:w}=e,{mainAxis:P=!0,crossAxis:U=!1,limiter:V={fn:e=>{let{x:o,y:f}=e;return{x:o,y:f}}},...H}=floating_ui_utils_evaluate(f,e),q={x:o,y:v},W=await detectOverflow(e,H),K=floating_ui_utils_getSideAxis(floating_ui_utils_getSide(w)),G=getOppositeAxis(K),Z=q[G],X=q[K];if(P){let e=Z+W["y"===G?"top":"left"],o=Z-W["y"===G?"bottom":"right"];Z=F(e,N(Z,o))}if(U){let e="y"===K?"top":"left",o="y"===K?"bottom":"right",f=X+W[e],v=X-W[o];X=F(f,N(X,v))}let J=V.fn({...e,[G]:Z,[K]:X});return{...J,data:{x:J.x-o,y:J.y-v}}}}),options:[e,o]}},floating_ui_react_dom_limitShift=(e,o)=>{var f;return{...(void 0===(f=e)&&(f={}),{options:f,fn(e){let{x:o,y:v,placement:w,rects:P,middlewareData:N}=e,{offset:F=0,mainAxis:U=!0,crossAxis:V=!0}=floating_ui_utils_evaluate(f,e),H={x:o,y:v},q=floating_ui_utils_getSideAxis(w),W=getOppositeAxis(q),K=H[W],G=H[q],Z=floating_ui_utils_evaluate(F,e),X="number"==typeof Z?{mainAxis:Z,crossAxis:0}:{mainAxis:0,crossAxis:0,...Z};if(U){let e="y"===W?"height":"width",o=P.reference[W]-P.floating[e]+X.mainAxis,f=P.reference[W]+P.reference[e]-X.mainAxis;K<o?K=o:K>f&&(K=f)}if(V){var J,Y;let e="y"===W?"width":"height",o=["top","left"].includes(floating_ui_utils_getSide(w)),f=P.reference[q]-P.floating[e]+(o&&(null==(J=N.offset)?void 0:J[q])||0)+(o?0:X.crossAxis),v=P.reference[q]+P.reference[e]+(o?0:(null==(Y=N.offset)?void 0:Y[q])||0)-(o?X.crossAxis:0);G<f?G=f:G>v&&(G=v)}return{[W]:K,[q]:G}}}),options:[e,o]}},floating_ui_react_dom_flip=(e,o)=>{var f;return{...(void 0===(f=e)&&(f={}),{name:"flip",options:f,async fn(e){var o,v,w,P,N;let{placement:F,middlewareData:U,rects:V,initialPlacement:H,platform:q,elements:W}=e,{mainAxis:K=!0,crossAxis:G=!0,fallbackPlacements:Z,fallbackStrategy:X="bestFit",fallbackAxisSideDirection:J="none",flipAlignment:Y=!0,...ee}=floating_ui_utils_evaluate(f,e);if(null!=(o=U.arrow)&&o.alignmentOffset)return{};let et=floating_ui_utils_getSide(F),er=floating_ui_utils_getSide(H)===H,en=await (null==q.isRTL?void 0:q.isRTL(W.floating)),eo=Z||(er||!Y?[getOppositePlacement(H)]:function(e){let o=getOppositePlacement(e);return[floating_ui_utils_getOppositeAlignmentPlacement(e),o,floating_ui_utils_getOppositeAlignmentPlacement(o)]}(H));Z||"none"===J||eo.push(...function(e,o,f,v){let w=floating_ui_utils_getAlignment(e),P=function(e,o,f){let v=["left","right"],w=["right","left"];switch(e){case"top":case"bottom":if(f)return o?w:v;return o?v:w;case"left":case"right":return o?["top","bottom"]:["bottom","top"];default:return[]}}(floating_ui_utils_getSide(e),"start"===f,v);return w&&(P=P.map(e=>e+"-"+w),o&&(P=P.concat(P.map(floating_ui_utils_getOppositeAlignmentPlacement)))),P}(H,Y,J,en));let ei=[H,...eo],ea=await detectOverflow(e,ee),es=[],el=(null==(v=U.flip)?void 0:v.overflows)||[];if(K&&es.push(ea[et]),G){let e=function(e,o,f){void 0===f&&(f=!1);let v=floating_ui_utils_getAlignment(e),w=getOppositeAxis(floating_ui_utils_getSideAxis(e)),P=getAxisLength(w),N="x"===w?v===(f?"end":"start")?"right":"left":"start"===v?"bottom":"top";return o.reference[P]>o.floating[P]&&(N=getOppositePlacement(N)),[N,getOppositePlacement(N)]}(F,V,en);es.push(ea[e[0]],ea[e[1]])}if(el=[...el,{placement:F,overflows:es}],!es.every(e=>e<=0)){let e=((null==(w=U.flip)?void 0:w.index)||0)+1,o=ei[e];if(o)return{data:{index:e,overflows:el},reset:{placement:o}};let f=null==(P=el.filter(e=>e.overflows[0]<=0).sort((e,o)=>e.overflows[1]-o.overflows[1])[0])?void 0:P.placement;if(!f)switch(X){case"bestFit":{let e=null==(N=el.map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,o)=>e+o,0)]).sort((e,o)=>e[1]-o[1])[0])?void 0:N[0];e&&(f=e);break}case"initialPlacement":f=H}if(F!==f)return{reset:{placement:f}}}return{}}}),options:[e,o]}},floating_ui_react_dom_size=(e,o)=>{var f;return{...(void 0===(f=e)&&(f={}),{name:"size",options:f,async fn(e){let o,v;let{placement:w,rects:P,platform:U,elements:V}=e,{apply:H=()=>{},...q}=floating_ui_utils_evaluate(f,e),W=await detectOverflow(e,q),K=floating_ui_utils_getSide(w),G=floating_ui_utils_getAlignment(w),Z="y"===floating_ui_utils_getSideAxis(w),{width:X,height:J}=P.floating;"top"===K||"bottom"===K?(o=K,v=G===(await (null==U.isRTL?void 0:U.isRTL(V.floating))?"start":"end")?"left":"right"):(v=K,o="end"===G?"top":"bottom");let Y=J-W.top-W.bottom,ee=X-W.left-W.right,et=N(J-W[o],Y),er=N(X-W[v],ee),en=!e.middlewareData.shift,eo=et,ei=er;if(Z?ei=G||en?N(er,ee):ee:eo=G||en?N(et,Y):Y,en&&!G){let e=F(W.left,0),o=F(W.right,0),f=F(W.top,0),v=F(W.bottom,0);Z?ei=X-2*(0!==e||0!==o?e+o:F(W.left,W.right)):eo=J-2*(0!==f||0!==v?f+v:F(W.top,W.bottom))}await H({...e,availableWidth:ei,availableHeight:eo});let ea=await U.getDimensions(V.floating);return X!==ea.width||J!==ea.height?{reset:{rects:!0}}:{}}}),options:[e,o]}},floating_ui_react_dom_hide=(e,o)=>{var f;return{...(void 0===(f=e)&&(f={}),{name:"hide",options:f,async fn(e){let{rects:o}=e,{strategy:v="referenceHidden",...w}=floating_ui_utils_evaluate(f,e);switch(v){case"referenceHidden":{let f=await detectOverflow(e,{...w,elementContext:"reference"}),v=getSideOffsets(f,o.reference);return{data:{referenceHiddenOffsets:v,referenceHidden:isAnySideFullyClipped(v)}}}case"escaped":{let f=await detectOverflow(e,{...w,altBoundary:!0}),v=getSideOffsets(f,o.floating);return{data:{escapedOffsets:v,escaped:isAnySideFullyClipped(v)}}}default:return{}}}}),options:[e,o]}},floating_ui_react_dom_arrow=(e,o)=>({...arrow$1(e),options:[e,o]});var J=f(75320);let Y=(0,w.forwardRef)((e,o)=>{let{children:f,width:P=10,height:N=5,...F}=e;return(0,w.createElement)(J.WV.svg,(0,v.Z)({},F,{ref:o,width:P,height:N,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?f:(0,w.createElement)("polygon",{points:"0,0 30,0 15,10"}))});var ee=f(28771),et=f(25360),er=f(79698),en=f(9981);let eo="Popper",[ei,ea]=(0,et.b)(eo),[es,el]=ei(eo),eu=(0,w.forwardRef)((e,o)=>{let{__scopePopper:f,virtualRef:P,...N}=e,F=el("PopperAnchor",f),U=(0,w.useRef)(null),V=(0,ee.e)(o,U);return(0,w.useEffect)(()=>{F.onAnchorChange((null==P?void 0:P.current)||U.current)}),P?null:(0,w.createElement)(J.WV.div,(0,v.Z)({},N,{ref:V}))}),ec="PopperContent",[ef,ed]=ei(ec),ep=(0,w.forwardRef)((e,o)=>{var f,P,U,H,q,W,K,G;let{__scopePopper:Y,side:et="bottom",sideOffset:eo=0,align:ei="center",alignOffset:ea=0,arrowPadding:es=0,avoidCollisions:eu=!0,collisionBoundary:ed=[],collisionPadding:ep=0,sticky:eh="partial",hideWhenDetached:eg=!1,updatePositionStrategy:em="optimized",onPlaced:ey,...eb}=e,ev=el(ec,Y),[ew,e_]=(0,w.useState)(null),eE=(0,ee.e)(o,e=>e_(e)),[ex,eS]=(0,w.useState)(null),eA=function(e){let[o,f]=(0,w.useState)(void 0);return(0,en.b)(()=>{if(e){f({width:e.offsetWidth,height:e.offsetHeight});let o=new ResizeObserver(o=>{let v,w;if(!Array.isArray(o)||!o.length)return;let P=o[0];if("borderBoxSize"in P){let e=P.borderBoxSize,o=Array.isArray(e)?e[0]:e;v=o.inlineSize,w=o.blockSize}else v=e.offsetWidth,w=e.offsetHeight;f({width:v,height:w})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}f(void 0)},[e]),o}(ex),eT=null!==(f=null==eA?void 0:eA.width)&&void 0!==f?f:0,eO=null!==(P=null==eA?void 0:eA.height)&&void 0!==P?P:0,eC="number"==typeof ep?ep:{top:0,right:0,bottom:0,left:0,...ep},eP=Array.isArray(ed)?ed:[ed],ek=eP.length>0,eR={padding:eC,boundary:eP.filter($cf1ac5d9fe0e8206$var$isNotNull),altBoundary:ek},{refs:eI,floatingStyles:eL,placement:eB,isPositioned:eD,middlewareData:ej}=function(e){void 0===e&&(e={});let{placement:o="bottom",strategy:f="absolute",middleware:v=[],platform:P,elements:{reference:N,floating:F}={},transform:U=!0,whileElementsMounted:V,open:H}=e,[q,W]=w.useState({x:0,y:0,strategy:f,placement:o,middlewareData:{},isPositioned:!1}),[K,G]=w.useState(v);deepEqual(K,v)||G(v);let[J,Y]=w.useState(null),[ee,et]=w.useState(null),er=w.useCallback(e=>{e!==ea.current&&(ea.current=e,Y(e))},[]),en=w.useCallback(e=>{e!==es.current&&(es.current=e,et(e))},[]),eo=N||J,ei=F||ee,ea=w.useRef(null),es=w.useRef(null),el=w.useRef(q),eu=null!=V,ec=useLatestRef(V),ef=useLatestRef(P),ed=w.useCallback(()=>{if(!ea.current||!es.current)return;let e={placement:o,strategy:f,middleware:K};ef.current&&(e.platform=ef.current),floating_ui_dom_computePosition(ea.current,es.current,e).then(e=>{let o={...e,isPositioned:!0};ep.current&&!deepEqual(el.current,o)&&(el.current=o,Z.flushSync(()=>{W(o)}))})},[K,o,f,ef]);X(()=>{!1===H&&el.current.isPositioned&&(el.current.isPositioned=!1,W(e=>({...e,isPositioned:!1})))},[H]);let ep=w.useRef(!1);X(()=>(ep.current=!0,()=>{ep.current=!1}),[]),X(()=>{if(eo&&(ea.current=eo),ei&&(es.current=ei),eo&&ei){if(ec.current)return ec.current(eo,ei,ed);ed()}},[eo,ei,ed,ec,eu]);let eh=w.useMemo(()=>({reference:ea,floating:es,setReference:er,setFloating:en}),[er,en]),eg=w.useMemo(()=>({reference:eo,floating:ei}),[eo,ei]),em=w.useMemo(()=>{let e={position:f,left:0,top:0};if(!eg.floating)return e;let o=roundByDPR(eg.floating,q.x),v=roundByDPR(eg.floating,q.y);return U?{...e,transform:"translate("+o+"px, "+v+"px)",...getDPR(eg.floating)>=1.5&&{willChange:"transform"}}:{position:f,left:o,top:v}},[f,U,eg.floating,q.x,q.y]);return w.useMemo(()=>({...q,update:ed,refs:eh,elements:eg,floatingStyles:em}),[q,ed,eh,eg,em])}({strategy:"fixed",placement:et+("center"!==ei?"-"+ei:""),whileElementsMounted:(...e)=>{let o=function(e,o,f,v){let w;void 0===v&&(v={});let{ancestorScroll:P=!0,ancestorResize:U=!0,elementResize:H="function"==typeof ResizeObserver,layoutShift:q="function"==typeof IntersectionObserver,animationFrame:W=!1}=v,K=unwrapElement(e),G=P||U?[...K?getOverflowAncestors(K):[],...getOverflowAncestors(o)]:[];G.forEach(e=>{P&&e.addEventListener("scroll",f,{passive:!0}),U&&e.addEventListener("resize",f)});let Z=K&&q?function(e,o){let f,v=null,w=getDocumentElement(e);function cleanup(){var e;clearTimeout(f),null==(e=v)||e.disconnect(),v=null}return!function refresh(P,U){void 0===P&&(P=!1),void 0===U&&(U=1),cleanup();let{left:H,top:q,width:W,height:K}=e.getBoundingClientRect();if(P||o(),!W||!K)return;let G=V(q),Z=V(w.clientWidth-(H+W)),X=V(w.clientHeight-(q+K)),J=V(H),Y={rootMargin:-G+"px "+-Z+"px "+-X+"px "+-J+"px",threshold:F(0,N(1,U))||1},ee=!0;function handleObserve(e){let o=e[0].intersectionRatio;if(o!==U){if(!ee)return refresh();o?refresh(!1,o):f=setTimeout(()=>{refresh(!1,1e-7)},1e3)}ee=!1}try{v=new IntersectionObserver(handleObserve,{...Y,root:w.ownerDocument})}catch(e){v=new IntersectionObserver(handleObserve,Y)}v.observe(e)}(!0),cleanup}(K,f):null,X=-1,J=null;H&&(J=new ResizeObserver(e=>{let[v]=e;v&&v.target===K&&J&&(J.unobserve(o),cancelAnimationFrame(X),X=requestAnimationFrame(()=>{var e;null==(e=J)||e.observe(o)})),f()}),K&&!W&&J.observe(K),J.observe(o));let Y=W?getBoundingClientRect(e):null;return W&&function frameLoop(){let o=getBoundingClientRect(e);Y&&(o.x!==Y.x||o.y!==Y.y||o.width!==Y.width||o.height!==Y.height)&&f(),Y=o,w=requestAnimationFrame(frameLoop)}(),f(),()=>{var e;G.forEach(e=>{P&&e.removeEventListener("scroll",f),U&&e.removeEventListener("resize",f)}),null==Z||Z(),null==(e=J)||e.disconnect(),J=null,W&&cancelAnimationFrame(w)}}(...e,{animationFrame:"always"===em});return o},elements:{reference:ev.anchor},middleware:[floating_ui_react_dom_offset({mainAxis:eo+eO,alignmentAxis:ea}),eu&&floating_ui_react_dom_shift({mainAxis:!0,crossAxis:!1,limiter:"partial"===eh?floating_ui_react_dom_limitShift():void 0,...eR}),eu&&floating_ui_react_dom_flip({...eR}),floating_ui_react_dom_size({...eR,apply:({elements:e,rects:o,availableWidth:f,availableHeight:v})=>{let{width:w,height:P}=o.reference,N=e.floating.style;N.setProperty("--radix-popper-available-width",`${f}px`),N.setProperty("--radix-popper-available-height",`${v}px`),N.setProperty("--radix-popper-anchor-width",`${w}px`),N.setProperty("--radix-popper-anchor-height",`${P}px`)}}),ex&&floating_ui_react_dom_arrow({element:ex,padding:es}),$cf1ac5d9fe0e8206$var$transformOrigin({arrowWidth:eT,arrowHeight:eO}),eg&&floating_ui_react_dom_hide({strategy:"referenceHidden",...eR})]}),[eM,eN]=$cf1ac5d9fe0e8206$var$getSideAndAlignFromPlacement(eB),eF=(0,er.W)(ey);(0,en.b)(()=>{eD&&(null==eF||eF())},[eD,eF]);let e$=null===(U=ej.arrow)||void 0===U?void 0:U.x,eU=null===(H=ej.arrow)||void 0===H?void 0:H.y,eV=(null===(q=ej.arrow)||void 0===q?void 0:q.centerOffset)!==0,[eH,eq]=(0,w.useState)();return(0,en.b)(()=>{ew&&eq(window.getComputedStyle(ew).zIndex)},[ew]),(0,w.createElement)("div",{ref:eI.setFloating,"data-radix-popper-content-wrapper":"",style:{...eL,transform:eD?eL.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eH,"--radix-popper-transform-origin":[null===(W=ej.transformOrigin)||void 0===W?void 0:W.x,null===(K=ej.transformOrigin)||void 0===K?void 0:K.y].join(" ")},dir:e.dir},(0,w.createElement)(ef,{scope:Y,placedSide:eM,onArrowChange:eS,arrowX:e$,arrowY:eU,shouldHideArrow:eV},(0,w.createElement)(J.WV.div,(0,v.Z)({"data-side":eM,"data-align":eN},eb,{ref:eE,style:{...eb.style,animation:eD?void 0:"none",opacity:null!==(G=ej.hide)&&void 0!==G&&G.referenceHidden?0:void 0}}))))}),eh={top:"bottom",right:"left",bottom:"top",left:"right"},eg=(0,w.forwardRef)(function(e,o){let{__scopePopper:f,...P}=e,N=ed("PopperArrow",f),F=eh[N.placedSide];return(0,w.createElement)("span",{ref:N.onArrowChange,style:{position:"absolute",left:N.arrowX,top:N.arrowY,[F]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[N.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[N.placedSide],visibility:N.shouldHideArrow?"hidden":void 0}},(0,w.createElement)(Y,(0,v.Z)({},P,{ref:o,style:{...P.style,display:"block"}})))});function $cf1ac5d9fe0e8206$var$isNotNull(e){return null!==e}let $cf1ac5d9fe0e8206$var$transformOrigin=e=>({name:"transformOrigin",options:e,fn(o){var f,v,w,P,N;let{placement:F,rects:U,middlewareData:V}=o,H=(null===(f=V.arrow)||void 0===f?void 0:f.centerOffset)!==0,q=H?0:e.arrowWidth,W=H?0:e.arrowHeight,[K,G]=$cf1ac5d9fe0e8206$var$getSideAndAlignFromPlacement(F),Z={start:"0%",center:"50%",end:"100%"}[G],X=(null!==(v=null===(w=V.arrow)||void 0===w?void 0:w.x)&&void 0!==v?v:0)+q/2,J=(null!==(P=null===(N=V.arrow)||void 0===N?void 0:N.y)&&void 0!==P?P:0)+W/2,Y="",ee="";return"bottom"===K?(Y=H?Z:`${X}px`,ee=`${-W}px`):"top"===K?(Y=H?Z:`${X}px`,ee=`${U.floating.height+W}px`):"right"===K?(Y=`${-W}px`,ee=H?Z:`${J}px`):"left"===K&&(Y=`${U.floating.width+W}px`,ee=H?Z:`${J}px`),{data:{x:Y,y:ee}}}});function $cf1ac5d9fe0e8206$var$getSideAndAlignFromPlacement(e){let[o,f="center"]=e.split("-");return[o,f]}let $cf1ac5d9fe0e8206$export$be92b6f5f03c0fe9=e=>{let{__scopePopper:o,children:f}=e,[v,P]=(0,w.useState)(null);return(0,w.createElement)(es,{scope:o,anchor:v,onAnchorChange:P},f)},em=eu,ey=ep,eb=eg},42651:function(e,o,f){"use strict";f.d(o,{h:function(){return F}});var v=f(87462),w=f(67294),P=f(73935),N=f(75320);let F=(0,w.forwardRef)((e,o)=>{var f;let{container:F=null==globalThis?void 0:null===(f=globalThis.document)||void 0===f?void 0:f.body,...U}=e;return F?P.createPortal((0,w.createElement)(N.WV.div,(0,v.Z)({},U,{ref:o})),F):null})},29115:function(e,o,f){"use strict";f.d(o,{z:function(){return $921a889cee6df7e8$export$99c2b779aa4e8b8b}});var v=f(67294),w=f(73935),P=f(28771),N=f(9981);let $921a889cee6df7e8$export$99c2b779aa4e8b8b=e=>{let{present:o,children:f}=e,F=function(e){var o;let[f,P]=(0,v.useState)(),F=(0,v.useRef)({}),U=(0,v.useRef)(e),V=(0,v.useRef)("none"),H=e?"mounted":"unmounted",[q,W]=(o={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,v.useReducer)((e,f)=>{let v=o[e][f];return null!=v?v:e},H));return(0,v.useEffect)(()=>{let e=$921a889cee6df7e8$var$getAnimationName(F.current);V.current="mounted"===q?e:"none"},[q]),(0,N.b)(()=>{let o=F.current,f=U.current,v=f!==e;if(v){let v=V.current,w=$921a889cee6df7e8$var$getAnimationName(o);e?W("MOUNT"):"none"===w||(null==o?void 0:o.display)==="none"?W("UNMOUNT"):f&&v!==w?W("ANIMATION_OUT"):W("UNMOUNT"),U.current=e}},[e,W]),(0,N.b)(()=>{if(f){let handleAnimationEnd=e=>{let o=$921a889cee6df7e8$var$getAnimationName(F.current),v=o.includes(e.animationName);e.target===f&&v&&(0,w.flushSync)(()=>W("ANIMATION_END"))},handleAnimationStart=e=>{e.target===f&&(V.current=$921a889cee6df7e8$var$getAnimationName(F.current))};return f.addEventListener("animationstart",handleAnimationStart),f.addEventListener("animationcancel",handleAnimationEnd),f.addEventListener("animationend",handleAnimationEnd),()=>{f.removeEventListener("animationstart",handleAnimationStart),f.removeEventListener("animationcancel",handleAnimationEnd),f.removeEventListener("animationend",handleAnimationEnd)}}W("ANIMATION_END")},[f,W]),{isPresent:["mounted","unmountSuspended"].includes(q),ref:(0,v.useCallback)(e=>{e&&(F.current=getComputedStyle(e)),P(e)},[])}}(o),U="function"==typeof f?f({present:F.isPresent}):v.Children.only(f),V=(0,P.e)(F.ref,U.ref),H="function"==typeof f;return H||F.isPresent?(0,v.cloneElement)(U,{ref:V}):null};function $921a889cee6df7e8$var$getAnimationName(e){return(null==e?void 0:e.animationName)||"none"}$921a889cee6df7e8$export$99c2b779aa4e8b8b.displayName="Presence"},75320:function(e,o,f){"use strict";f.d(o,{WV:function(){return F},jH:function(){return $8927f6f2acc4f386$export$6d1a0317bde7de7f}});var v=f(87462),w=f(67294),P=f(73935),N=f(88426);let F=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,o)=>{let f=(0,w.forwardRef)((e,f)=>{let{asChild:P,...F}=e,U=P?N.g7:o;return(0,w.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,w.createElement)(U,(0,v.Z)({},F,{ref:f}))});return f.displayName=`Primitive.${o}`,{...e,[o]:f}},{});function $8927f6f2acc4f386$export$6d1a0317bde7de7f(e,o){e&&(0,P.flushSync)(()=>e.dispatchEvent(o))}},88426:function(e,o,f){"use strict";f.d(o,{A4:function(){return $5e63c961fc1ce211$export$d9f1ccf0bdb05d45},g7:function(){return N}});var v=f(87462),w=f(67294),P=f(28771);let N=(0,w.forwardRef)((e,o)=>{let{children:f,...P}=e,N=w.Children.toArray(f),U=N.find($5e63c961fc1ce211$var$isSlottable);if(U){let e=U.props.children,f=N.map(o=>o!==U?o:w.Children.count(e)>1?w.Children.only(null):(0,w.isValidElement)(e)?e.props.children:null);return(0,w.createElement)(F,(0,v.Z)({},P,{ref:o}),(0,w.isValidElement)(e)?(0,w.cloneElement)(e,void 0,f):null)}return(0,w.createElement)(F,(0,v.Z)({},P,{ref:o}),f)});N.displayName="Slot";let F=(0,w.forwardRef)((e,o)=>{let{children:f,...v}=e;return(0,w.isValidElement)(f)?(0,w.cloneElement)(f,{...function(e,o){let f={...o};for(let v in o){let w=e[v],P=o[v],N=/^on[A-Z]/.test(v);N?w&&P?f[v]=(...e)=>{P(...e),w(...e)}:w&&(f[v]=w):"style"===v?f[v]={...w,...P}:"className"===v&&(f[v]=[w,P].filter(Boolean).join(" "))}return{...e,...f}}(v,f.props),ref:o?(0,P.F)(o,f.ref):f.ref}):w.Children.count(f)>1?w.Children.only(null):null});F.displayName="SlotClone";let $5e63c961fc1ce211$export$d9f1ccf0bdb05d45=({children:e})=>(0,w.createElement)(w.Fragment,null,e);function $5e63c961fc1ce211$var$isSlottable(e){return(0,w.isValidElement)(e)&&e.type===$5e63c961fc1ce211$export$d9f1ccf0bdb05d45}},66192:function(e,o,f){"use strict";f.d(o,{_v:function(){return ef},aJ:function(){return es},pn:function(){return $a093c7e1ec25a057$export$f78649fb9ca566b8},u:function(){return $a093c7e1ec25a057$export$28c660c63b792dea}});var v=f(87462),w=f(67294),P=f(36206),N=f(28771),F=f(25360),U=f(46063),V=f(91276),H=f(55586),q=(f(42651),f(29115)),W=f(75320),K=f(88426),G=f(77342),Z=f(96219);let[X,J]=(0,F.b)("Tooltip",[H.D7]),Y=(0,H.D7)(),ee="tooltip.open",[et,er]=X("TooltipProvider"),$a093c7e1ec25a057$export$f78649fb9ca566b8=e=>{let{__scopeTooltip:o,delayDuration:f=700,skipDelayDuration:v=300,disableHoverableContent:P=!1,children:N}=e,[F,U]=(0,w.useState)(!0),V=(0,w.useRef)(!1),H=(0,w.useRef)(0);return(0,w.useEffect)(()=>{let e=H.current;return()=>window.clearTimeout(e)},[]),(0,w.createElement)(et,{scope:o,isOpenDelayed:F,delayDuration:f,onOpen:(0,w.useCallback)(()=>{window.clearTimeout(H.current),U(!1)},[]),onClose:(0,w.useCallback)(()=>{window.clearTimeout(H.current),H.current=window.setTimeout(()=>U(!0),v)},[v]),isPointerInTransitRef:V,onPointerInTransitChange:(0,w.useCallback)(e=>{V.current=e},[]),disableHoverableContent:P},N)},en="Tooltip",[eo,ei]=X(en),$a093c7e1ec25a057$export$28c660c63b792dea=e=>{let{__scopeTooltip:o,children:f,open:v,defaultOpen:P=!1,onOpenChange:N,disableHoverableContent:F,delayDuration:U}=e,q=er(en,e.__scopeTooltip),W=Y(o),[K,Z]=(0,w.useState)(null),X=(0,V.M)(),J=(0,w.useRef)(0),et=null!=F?F:q.disableHoverableContent,ei=null!=U?U:q.delayDuration,ea=(0,w.useRef)(!1),[es=!1,el]=(0,G.T)({prop:v,defaultProp:P,onChange:e=>{e?(q.onOpen(),document.dispatchEvent(new CustomEvent(ee))):q.onClose(),null==N||N(e)}}),eu=(0,w.useMemo)(()=>es?ea.current?"delayed-open":"instant-open":"closed",[es]),ec=(0,w.useCallback)(()=>{window.clearTimeout(J.current),ea.current=!1,el(!0)},[el]),ef=(0,w.useCallback)(()=>{window.clearTimeout(J.current),el(!1)},[el]),ed=(0,w.useCallback)(()=>{window.clearTimeout(J.current),J.current=window.setTimeout(()=>{ea.current=!0,el(!0)},ei)},[ei,el]);return(0,w.useEffect)(()=>()=>window.clearTimeout(J.current),[]),(0,w.createElement)(H.fC,W,(0,w.createElement)(eo,{scope:o,contentId:X,open:es,stateAttribute:eu,trigger:K,onTriggerChange:Z,onTriggerEnter:(0,w.useCallback)(()=>{q.isOpenDelayed?ed():ec()},[q.isOpenDelayed,ed,ec]),onTriggerLeave:(0,w.useCallback)(()=>{et?ef():window.clearTimeout(J.current)},[ef,et]),onOpen:ec,onClose:ef,disableHoverableContent:et},f))},ea="TooltipTrigger",es=(0,w.forwardRef)((e,o)=>{let{__scopeTooltip:f,...F}=e,U=ei(ea,f),V=er(ea,f),q=Y(f),K=(0,w.useRef)(null),G=(0,N.e)(o,K,U.onTriggerChange),Z=(0,w.useRef)(!1),X=(0,w.useRef)(!1),J=(0,w.useCallback)(()=>Z.current=!1,[]);return(0,w.useEffect)(()=>()=>document.removeEventListener("pointerup",J),[J]),(0,w.createElement)(H.ee,(0,v.Z)({asChild:!0},q),(0,w.createElement)(W.WV.button,(0,v.Z)({"aria-describedby":U.open?U.contentId:void 0,"data-state":U.stateAttribute},F,{ref:G,onPointerMove:(0,P.M)(e.onPointerMove,e=>{"touch"===e.pointerType||X.current||V.isPointerInTransitRef.current||(U.onTriggerEnter(),X.current=!0)}),onPointerLeave:(0,P.M)(e.onPointerLeave,()=>{U.onTriggerLeave(),X.current=!1}),onPointerDown:(0,P.M)(e.onPointerDown,()=>{Z.current=!0,document.addEventListener("pointerup",J,{once:!0})}),onFocus:(0,P.M)(e.onFocus,()=>{Z.current||U.onOpen()}),onBlur:(0,P.M)(e.onBlur,U.onClose),onClick:(0,P.M)(e.onClick,U.onClose)})))}),[el,eu]=X("TooltipPortal",{forceMount:void 0}),ec="TooltipContent",ef=(0,w.forwardRef)((e,o)=>{let f=eu(ec,e.__scopeTooltip),{forceMount:P=f.forceMount,side:N="top",...F}=e,U=ei(ec,e.__scopeTooltip);return(0,w.createElement)(q.z,{present:P||U.open},U.disableHoverableContent?(0,w.createElement)(eg,(0,v.Z)({side:N},F,{ref:o})):(0,w.createElement)(ed,(0,v.Z)({side:N},F,{ref:o})))}),ed=(0,w.forwardRef)((e,o)=>{let f=ei(ec,e.__scopeTooltip),P=er(ec,e.__scopeTooltip),F=(0,w.useRef)(null),U=(0,N.e)(o,F),[V,H]=(0,w.useState)(null),{trigger:q,onClose:W}=f,K=F.current,{onPointerInTransitChange:G}=P,Z=(0,w.useCallback)(()=>{H(null),G(!1)},[G]),X=(0,w.useCallback)((e,o)=>{let f=e.currentTarget,v={x:e.clientX,y:e.clientY},w=function(e,o){let f=Math.abs(o.top-e.y),v=Math.abs(o.bottom-e.y),w=Math.abs(o.right-e.x),P=Math.abs(o.left-e.x);switch(Math.min(f,v,w,P)){case P:return"left";case w:return"right";case f:return"top";case v:return"bottom";default:throw Error("unreachable")}}(v,f.getBoundingClientRect()),P=function(e,o,f=5){let v=[];switch(o){case"top":v.push({x:e.x-f,y:e.y+f},{x:e.x+f,y:e.y+f});break;case"bottom":v.push({x:e.x-f,y:e.y-f},{x:e.x+f,y:e.y-f});break;case"left":v.push({x:e.x+f,y:e.y-f},{x:e.x+f,y:e.y+f});break;case"right":v.push({x:e.x-f,y:e.y-f},{x:e.x-f,y:e.y+f})}return v}(v,w),N=function(e){let{top:o,right:f,bottom:v,left:w}=e;return[{x:w,y:o},{x:f,y:o},{x:f,y:v},{x:w,y:v}]}(o.getBoundingClientRect()),F=function(e){let o=e.slice();return o.sort((e,o)=>e.x<o.x?-1:e.x>o.x?1:e.y<o.y?-1:e.y>o.y?1:0),function(e){if(e.length<=1)return e.slice();let o=[];for(let f=0;f<e.length;f++){let v=e[f];for(;o.length>=2;){let e=o[o.length-1],f=o[o.length-2];if((e.x-f.x)*(v.y-f.y)>=(e.y-f.y)*(v.x-f.x))o.pop();else break}o.push(v)}o.pop();let f=[];for(let o=e.length-1;o>=0;o--){let v=e[o];for(;f.length>=2;){let e=f[f.length-1],o=f[f.length-2];if((e.x-o.x)*(v.y-o.y)>=(e.y-o.y)*(v.x-o.x))f.pop();else break}f.push(v)}return(f.pop(),1===o.length&&1===f.length&&o[0].x===f[0].x&&o[0].y===f[0].y)?o:o.concat(f)}(o)}([...P,...N]);H(F),G(!0)},[G]);return(0,w.useEffect)(()=>()=>Z(),[Z]),(0,w.useEffect)(()=>{if(q&&K){let handleTriggerLeave=e=>X(e,K),handleContentLeave=e=>X(e,q);return q.addEventListener("pointerleave",handleTriggerLeave),K.addEventListener("pointerleave",handleContentLeave),()=>{q.removeEventListener("pointerleave",handleTriggerLeave),K.removeEventListener("pointerleave",handleContentLeave)}}},[q,K,X,Z]),(0,w.useEffect)(()=>{if(V){let handleTrackPointerGrace=e=>{let o=e.target,f={x:e.clientX,y:e.clientY},v=(null==q?void 0:q.contains(o))||(null==K?void 0:K.contains(o)),w=!function(e,o){let{x:f,y:v}=e,w=!1;for(let e=0,P=o.length-1;e<o.length;P=e++){let N=o[e].x,F=o[e].y,U=o[P].x,V=o[P].y,H=F>v!=V>v&&f<(U-N)*(v-F)/(V-F)+N;H&&(w=!w)}return w}(f,V);v?Z():w&&(Z(),W())};return document.addEventListener("pointermove",handleTrackPointerGrace),()=>document.removeEventListener("pointermove",handleTrackPointerGrace)}},[q,K,V,W,Z]),(0,w.createElement)(eg,(0,v.Z)({},e,{ref:U}))}),[ep,eh]=X(en,{isInside:!1}),eg=(0,w.forwardRef)((e,o)=>{let{__scopeTooltip:f,children:P,"aria-label":N,onEscapeKeyDown:F,onPointerDownOutside:V,...q}=e,W=ei(ec,f),G=Y(f),{onClose:X}=W;return(0,w.useEffect)(()=>(document.addEventListener(ee,X),()=>document.removeEventListener(ee,X)),[X]),(0,w.useEffect)(()=>{if(W.trigger){let handleScroll=e=>{let o=e.target;null!=o&&o.contains(W.trigger)&&X()};return window.addEventListener("scroll",handleScroll,{capture:!0}),()=>window.removeEventListener("scroll",handleScroll,{capture:!0})}},[W.trigger,X]),(0,w.createElement)(U.XB,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:F,onPointerDownOutside:V,onFocusOutside:e=>e.preventDefault(),onDismiss:X},(0,w.createElement)(H.VY,(0,v.Z)({"data-state":W.stateAttribute},G,q,{ref:o,style:{...q.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),(0,w.createElement)(K.A4,null,P),(0,w.createElement)(ep,{scope:f,isInside:!0},(0,w.createElement)(Z.f,{id:W.contentId,role:"tooltip"},N||P))))})},79698:function(e,o,f){"use strict";f.d(o,{W:function(){return $b1b2314f5f9a1d84$export$25bec8c6f54ee79a}});var v=f(67294);function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(e){let o=(0,v.useRef)(e);return(0,v.useEffect)(()=>{o.current=e}),(0,v.useMemo)(()=>(...e)=>{var f;return null===(f=o.current)||void 0===f?void 0:f.call(o,...e)},[])}},77342:function(e,o,f){"use strict";f.d(o,{T:function(){return $71cd76cc60e0454e$export$6f32135080cb4c3}});var v=f(67294),w=f(79698);function $71cd76cc60e0454e$export$6f32135080cb4c3({prop:e,defaultProp:o,onChange:f=()=>{}}){let[P,N]=function({defaultProp:e,onChange:o}){let f=(0,v.useState)(e),[P]=f,N=(0,v.useRef)(P),F=(0,w.W)(o);return(0,v.useEffect)(()=>{N.current!==P&&(F(P),N.current=P)},[P,N,F]),f}({defaultProp:o,onChange:f}),F=void 0!==e,U=F?e:P,V=(0,w.W)(f),H=(0,v.useCallback)(o=>{if(F){let f="function"==typeof o?o(e):o;f!==e&&V(f)}else N(o)},[F,e,N,V]);return[U,H]}},9981:function(e,o,f){"use strict";f.d(o,{b:function(){return w}});var v=f(67294);let w=(null==globalThis?void 0:globalThis.document)?v.useLayoutEffect:()=>{}},96219:function(e,o,f){"use strict";f.d(o,{T:function(){return N},f:function(){return F}});var v=f(87462),w=f(67294),P=f(75320);let N=(0,w.forwardRef)((e,o)=>(0,w.createElement)(P.WV.span,(0,v.Z)({},e,{ref:o,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),F=N},82729:function(e,o,f){"use strict";function _tagged_template_literal(e,o){return o||(o=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(o)}}))}f.d(o,{_:function(){return _tagged_template_literal}})},15761:function(e,o,f){"use strict";f.d(o,{j:function(){return P}});var v=f(33989),w=f(32161);let FocusManager=class FocusManager extends v.l{constructor(){super(),this.setup=e=>{if(!w.sk&&window.addEventListener){let listener=()=>e();return window.addEventListener("visibilitychange",listener,!1),window.addEventListener("focus",listener,!1),()=>{window.removeEventListener("visibilitychange",listener),window.removeEventListener("focus",listener)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var o;this.setup=e,null==(o=this.cleanup)||o.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){let o=this.focused!==e;o&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}};let P=new FocusManager},9499:function(e,o,f){"use strict";function infiniteQueryBehavior(){return{onFetch:e=>{e.fetchFn=()=>{var o,f,v,w,P,N;let F;let U=null==(o=e.fetchOptions)?void 0:null==(f=o.meta)?void 0:f.refetchPage,V=null==(v=e.fetchOptions)?void 0:null==(w=v.meta)?void 0:w.fetchMore,H=null==V?void 0:V.pageParam,q=(null==V?void 0:V.direction)==="forward",W=(null==V?void 0:V.direction)==="backward",K=(null==(P=e.state.data)?void 0:P.pages)||[],G=(null==(N=e.state.data)?void 0:N.pageParams)||[],Z=G,X=!1,addSignalProperty=o=>{Object.defineProperty(o,"signal",{enumerable:!0,get:()=>{var o,f;return null!=(o=e.signal)&&o.aborted?X=!0:null==(f=e.signal)||f.addEventListener("abort",()=>{X=!0}),e.signal}})},J=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),buildNewPages=(e,o,f,v)=>(Z=v?[o,...Z]:[...Z,o],v?[f,...e]:[...e,f]),fetchPage=(o,f,v,w)=>{if(X)return Promise.reject("Cancelled");if(void 0===v&&!f&&o.length)return Promise.resolve(o);let P={queryKey:e.queryKey,pageParam:v,meta:e.options.meta};addSignalProperty(P);let N=J(P),F=Promise.resolve(N).then(e=>buildNewPages(o,v,e,w));return F};if(K.length){if(q){let o=void 0!==H,f=o?H:getNextPageParam(e.options,K);F=fetchPage(K,o,f)}else if(W){let o=void 0!==H,f=o?H:getPreviousPageParam(e.options,K);F=fetchPage(K,o,f,!0)}else{Z=[];let o=void 0===e.options.getNextPageParam,f=!U||!K[0]||U(K[0],0,K);F=f?fetchPage([],o,G[0]):Promise.resolve(buildNewPages([],G[0],K[0]));for(let f=1;f<K.length;f++)F=F.then(v=>{let w=!U||!K[f]||U(K[f],f,K);if(w){let w=o?G[f]:getNextPageParam(e.options,v);return fetchPage(v,o,w)}return Promise.resolve(buildNewPages(v,G[f],K[f]))})}}else F=fetchPage([]);let Y=F.then(e=>({pages:e,pageParams:Z}));return Y}}}}function getNextPageParam(e,o){return null==e.getNextPageParam?void 0:e.getNextPageParam(o[o.length-1],o)}function getPreviousPageParam(e,o){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(o[0],o)}function hasNextPage(e,o){if(e.getNextPageParam&&Array.isArray(o)){let f=getNextPageParam(e,o);return null!=f&&!1!==f}}function hasPreviousPage(e,o){if(e.getPreviousPageParam&&Array.isArray(o)){let f=getPreviousPageParam(e,o);return null!=f&&!1!==f}}f.d(o,{Gm:function(){return infiniteQueryBehavior},Qy:function(){return hasNextPage},ZF:function(){return hasPreviousPage}})},30819:function(e,o,f){"use strict";f.d(o,{_:function(){return v}});let v=console},89886:function(e,o,f){"use strict";f.d(o,{R:function(){return getDefaultState},m:function(){return Mutation}});var v=f(30819),w=f(30081),P=f(89643),N=f(72379);let Mutation=class Mutation extends P.F{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||v._,this.observers=[],this.state=e.state||getDefaultState(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(o=>o!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,o;return null!=(e=null==(o=this.retryer)?void 0:o.continue())?e:this.execute()}async execute(){var e,o,f,v,w,P,F,U,V,H,q,W,K,G,Z,X,J,Y,ee,et;let er="loading"===this.state.status;try{if(!er){this.dispatch({type:"loading",variables:this.options.variables}),await (null==(V=(H=this.mutationCache.config).onMutate)?void 0:V.call(H,this.state.variables,this));let e=await (null==(q=(W=this.options).onMutate)?void 0:q.call(W,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}let K=await (()=>{var e;return this.retryer=(0,N.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,o)=>{this.dispatch({type:"failed",failureCount:e,error:o})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise})();return await (null==(e=(o=this.mutationCache.config).onSuccess)?void 0:e.call(o,K,this.state.variables,this.state.context,this)),await (null==(f=(v=this.options).onSuccess)?void 0:f.call(v,K,this.state.variables,this.state.context)),await (null==(w=(P=this.mutationCache.config).onSettled)?void 0:w.call(P,K,null,this.state.variables,this.state.context,this)),await (null==(F=(U=this.options).onSettled)?void 0:F.call(U,K,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:K}),K}catch(e){try{throw await (null==(K=(G=this.mutationCache.config).onError)?void 0:K.call(G,e,this.state.variables,this.state.context,this)),await (null==(Z=(X=this.options).onError)?void 0:Z.call(X,e,this.state.variables,this.state.context)),await (null==(J=(Y=this.mutationCache.config).onSettled)?void 0:J.call(Y,void 0,e,this.state.variables,this.state.context,this)),await (null==(ee=(et=this.options).onSettled)?void 0:ee.call(et,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(o=>{switch(e.type){case"failed":return{...o,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...o,isPaused:!0};case"continue":return{...o,isPaused:!1};case"loading":return{...o,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!(0,N.Kw)(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...o,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...o,data:void 0,error:e.error,failureCount:o.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...o,...e.state}}})(this.state),w.V.batch(()=>{this.observers.forEach(o=>{o.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}};function getDefaultState(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}},30081:function(e,o,f){"use strict";f.d(o,{V:function(){return w}});var v=f(32161);let w=function(){let e=[],o=0,notifyFn=e=>{e()},batchNotifyFn=e=>{e()},schedule=f=>{o?e.push(f):(0,v.A4)(()=>{notifyFn(f)})},flush=()=>{let o=e;e=[],o.length&&(0,v.A4)(()=>{batchNotifyFn(()=>{o.forEach(e=>{notifyFn(e)})})})};return{batch:e=>{let f;o++;try{f=e()}finally{--o||flush()}return f},batchCalls:e=>(...o)=>{schedule(()=>{e(...o)})},schedule,setNotifyFunction:e=>{notifyFn=e},setBatchNotifyFunction:e=>{batchNotifyFn=e}}}()},96474:function(e,o,f){"use strict";f.d(o,{N:function(){return N}});var v=f(33989),w=f(32161);let P=["online","offline"];let OnlineManager=class OnlineManager extends v.l{constructor(){super(),this.setup=e=>{if(!w.sk&&window.addEventListener){let listener=()=>e();return P.forEach(e=>{window.addEventListener(e,listener,!1)}),()=>{P.forEach(e=>{window.removeEventListener(e,listener)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var o;this.setup=e,null==(o=this.cleanup)||o.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()})}setOnline(e){let o=this.online!==e;o&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}};let N=new OnlineManager},89643:function(e,o,f){"use strict";f.d(o,{F:function(){return Removable}});var v=f(32161);let Removable=class Removable{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,v.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:v.sk?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}},72379:function(e,o,f){"use strict";f.d(o,{DV:function(){return isCancelledError},Kw:function(){return canFetch},Mz:function(){return createRetryer}});var v=f(15761),w=f(96474),P=f(32161);function defaultRetryDelay(e){return Math.min(1e3*2**e,3e4)}function canFetch(e){return(null!=e?e:"online")!=="online"||w.N.isOnline()}let CancelledError=class CancelledError{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}};function isCancelledError(e){return e instanceof CancelledError}function createRetryer(e){let o,f,N,F=!1,U=0,V=!1,H=new Promise((e,o)=>{f=e,N=o}),shouldPause=()=>!v.j.isFocused()||"always"!==e.networkMode&&!w.N.isOnline(),resolve=v=>{V||(V=!0,null==e.onSuccess||e.onSuccess(v),null==o||o(),f(v))},reject=f=>{V||(V=!0,null==e.onError||e.onError(f),null==o||o(),N(f))},pause=()=>new Promise(f=>{o=e=>{let o=V||!shouldPause();return o&&f(e),o},null==e.onPause||e.onPause()}).then(()=>{o=void 0,V||null==e.onContinue||e.onContinue()}),run=()=>{let o;if(!V){try{o=e.fn()}catch(e){o=Promise.reject(e)}Promise.resolve(o).then(resolve).catch(o=>{var f,v;if(V)return;let w=null!=(f=e.retry)?f:3,N=null!=(v=e.retryDelay)?v:defaultRetryDelay,H="function"==typeof N?N(U,o):N,q=!0===w||"number"==typeof w&&U<w||"function"==typeof w&&w(U,o);if(F||!q){reject(o);return}U++,null==e.onFail||e.onFail(U,o),(0,P.Gh)(H).then(()=>{if(shouldPause())return pause()}).then(()=>{F?reject(o):run()})})}};return canFetch(e.networkMode)?run():pause().then(run),{promise:H,cancel:o=>{V||(reject(new CancelledError(o)),null==e.abort||e.abort())},continue:()=>{let e=null==o?void 0:o();return e?H:Promise.resolve()},cancelRetry:()=>{F=!0},continueRetry:()=>{F=!1}}}},33989:function(e,o,f){"use strict";f.d(o,{l:function(){return Subscribable}});let Subscribable=class Subscribable{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){let o={listener:e};return this.listeners.add(o),this.onSubscribe(),()=>{this.listeners.delete(o),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},32161:function(e,o,f){"use strict";f.d(o,{A4:function(){return scheduleMicrotask},G9:function(){return getAbortController},Gh:function(){return sleep},I6:function(){return parseFilterArgs},Kp:function(){return timeUntilStale},PN:function(){return isValidTimeout},Rm:function(){return hashQueryKeyByOptions},SE:function(){return functionalUpdate},VS:function(){return shallowEqualObjects},X7:function(){return matchMutation},ZT:function(){return noop},_v:function(){return parseQueryArgs},_x:function(){return matchQuery},lV:function(){return parseMutationArgs},oE:function(){return replaceData},sk:function(){return v},to:function(){return partialMatchKey},yF:function(){return hashQueryKey}});let v="undefined"==typeof window||"Deno"in window;function noop(){}function functionalUpdate(e,o){return"function"==typeof e?e(o):e}function isValidTimeout(e){return"number"==typeof e&&e>=0&&e!==1/0}function timeUntilStale(e,o){return Math.max(e+(o||0)-Date.now(),0)}function parseQueryArgs(e,o,f){return isQueryKey(e)?"function"==typeof o?{...f,queryKey:e,queryFn:o}:{...o,queryKey:e}:e}function parseMutationArgs(e,o,f){return isQueryKey(e)?"function"==typeof o?{...f,mutationKey:e,mutationFn:o}:{...o,mutationKey:e}:"function"==typeof e?{...o,mutationFn:e}:{...e}}function parseFilterArgs(e,o,f){return isQueryKey(e)?[{...o,queryKey:e},f]:[e||{},o]}function matchQuery(e,o){let{type:f="all",exact:v,fetchStatus:w,predicate:P,queryKey:N,stale:F}=e;if(isQueryKey(N)){if(v){if(o.queryHash!==hashQueryKeyByOptions(N,o.options))return!1}else{if(!partialDeepEqual(o.queryKey,N))return!1}}if("all"!==f){let e=o.isActive();if("active"===f&&!e||"inactive"===f&&e)return!1}return("boolean"!=typeof F||o.isStale()===F)&&(void 0===w||w===o.state.fetchStatus)&&(!P||!!P(o))}function matchMutation(e,o){let{exact:f,fetching:v,predicate:w,mutationKey:P}=e;if(isQueryKey(P)){if(!o.options.mutationKey)return!1;if(f){if(hashQueryKey(o.options.mutationKey)!==hashQueryKey(P))return!1}else{if(!partialDeepEqual(o.options.mutationKey,P))return!1}}return("boolean"!=typeof v||"loading"===o.state.status===v)&&(!w||!!w(o))}function hashQueryKeyByOptions(e,o){let f=(null==o?void 0:o.queryKeyHashFn)||hashQueryKey;return f(e)}function hashQueryKey(e){return JSON.stringify(e,(e,o)=>isPlainObject(o)?Object.keys(o).sort().reduce((e,f)=>(e[f]=o[f],e),{}):o)}function partialMatchKey(e,o){return partialDeepEqual(e,o)}function partialDeepEqual(e,o){return e===o||typeof e==typeof o&&!!e&&!!o&&"object"==typeof e&&"object"==typeof o&&!Object.keys(o).some(f=>!partialDeepEqual(e[f],o[f]))}function shallowEqualObjects(e,o){if(e&&!o||o&&!e)return!1;for(let f in e)if(e[f]!==o[f])return!1;return!0}function isPlainArray(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function isPlainObject(e){if(!hasObjectPrototype(e))return!1;let o=e.constructor;if(void 0===o)return!0;let f=o.prototype;return!!(hasObjectPrototype(f)&&f.hasOwnProperty("isPrototypeOf"))}function hasObjectPrototype(e){return"[object Object]"===Object.prototype.toString.call(e)}function isQueryKey(e){return Array.isArray(e)}function sleep(e){return new Promise(o=>{setTimeout(o,e)})}function scheduleMicrotask(e){sleep(0).then(e)}function getAbortController(){if("function"==typeof AbortController)return new AbortController}function replaceData(e,o,f){return null!=f.isDataEqual&&f.isDataEqual(e,o)?e:"function"==typeof f.structuralSharing?f.structuralSharing(e,o):!1!==f.structuralSharing?function replaceEqualDeep(e,o){if(e===o)return e;let f=isPlainArray(e)&&isPlainArray(o);if(f||isPlainObject(e)&&isPlainObject(o)){let v=f?e.length:Object.keys(e).length,w=f?o:Object.keys(o),P=w.length,N=f?[]:{},F=0;for(let v=0;v<P;v++){let P=f?v:w[v];N[P]=replaceEqualDeep(e[P],o[P]),N[P]===e[P]&&F++}return v===P&&F===v?e:N}return o}(e,o):o}},85945:function(e,o,f){"use strict";f.d(o,{NL:function(){return useQueryClient},aH:function(){return QueryClientProvider}});var v=f(67294);let w=v.createContext(void 0),P=v.createContext(!1);function getQueryClientContext(e,o){return e||(o&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=w),window.ReactQueryClientContext):w)}let useQueryClient=({context:e}={})=>{let o=v.useContext(getQueryClientContext(e,v.useContext(P)));if(!o)throw Error("No QueryClient set, use QueryClientProvider to set one");return o},QueryClientProvider=({client:e,children:o,context:f,contextSharing:w=!1})=>{v.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);let N=getQueryClientContext(f,w);return v.createElement(P.Provider,{value:!f&&w},v.createElement(N.Provider,{value:e},o))}},87066:function(e,o,f){"use strict";f.d(o,{default:function(){return e9}});var v,w,P,N,F,U,V,H,q,W={};function bind(e,o){return function(){return e.apply(o,arguments)}}f.r(W),f.d(W,{hasBrowserEnv:function(){return eD},hasStandardBrowserEnv:function(){return ej},hasStandardBrowserWebWorkerEnv:function(){return eM},origin:function(){return eN}});var K=f(34155);let{toString:G}=Object.prototype,{getPrototypeOf:Z}=Object,X=(F=Object.create(null),e=>{let o=G.call(e);return F[o]||(F[o]=o.slice(8,-1).toLowerCase())}),kindOfTest=e=>(e=e.toLowerCase(),o=>X(o)===e),typeOfTest=e=>o=>typeof o===e,{isArray:J}=Array,Y=typeOfTest("undefined"),ee=kindOfTest("ArrayBuffer"),et=typeOfTest("string"),er=typeOfTest("function"),en=typeOfTest("number"),isObject=e=>null!==e&&"object"==typeof e,isPlainObject=e=>{if("object"!==X(e))return!1;let o=Z(e);return(null===o||o===Object.prototype||null===Object.getPrototypeOf(o))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},eo=kindOfTest("Date"),ei=kindOfTest("File"),ea=kindOfTest("Blob"),es=kindOfTest("FileList"),el=kindOfTest("URLSearchParams"),[eu,ec,ef,ed]=["ReadableStream","Request","Response","Headers"].map(kindOfTest);function forEach(e,o,{allOwnKeys:f=!1}={}){let v,w;if(null!=e){if("object"!=typeof e&&(e=[e]),J(e))for(v=0,w=e.length;v<w;v++)o.call(null,e[v],v,e);else{let w;let P=f?Object.getOwnPropertyNames(e):Object.keys(e),N=P.length;for(v=0;v<N;v++)w=P[v],o.call(null,e[w],w,e)}}}function findKey(e,o){let f;o=o.toLowerCase();let v=Object.keys(e),w=v.length;for(;w-- >0;)if(o===(f=v[w]).toLowerCase())return f;return null}let ep="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,isContextDefined=e=>!Y(e)&&e!==ep,eh=(U="undefined"!=typeof Uint8Array&&Z(Uint8Array),e=>U&&e instanceof U),eg=kindOfTest("HTMLFormElement"),em=(({hasOwnProperty:e})=>(o,f)=>e.call(o,f))(Object.prototype),ey=kindOfTest("RegExp"),reduceDescriptors=(e,o)=>{let f=Object.getOwnPropertyDescriptors(e),v={};forEach(f,(f,w)=>{let P;!1!==(P=o(f,w,e))&&(v[w]=P||f)}),Object.defineProperties(e,v)},eb="abcdefghijklmnopqrstuvwxyz",ev="0123456789",ew={DIGIT:ev,ALPHA:eb,ALPHA_DIGIT:eb+eb.toUpperCase()+ev},e_=kindOfTest("AsyncFunction"),eE=(v="function"==typeof setImmediate,w=er(ep.postMessage),v?setImmediate:w?(P=`axios@${Math.random()}`,N=[],ep.addEventListener("message",({source:e,data:o})=>{e===ep&&o===P&&N.length&&N.shift()()},!1),e=>{N.push(e),ep.postMessage(P,"*")}):e=>setTimeout(e)),ex="undefined"!=typeof queueMicrotask?queueMicrotask.bind(ep):void 0!==K&&K.nextTick||eE;var eS={isArray:J,isArrayBuffer:ee,isBuffer:function(e){return null!==e&&!Y(e)&&null!==e.constructor&&!Y(e.constructor)&&er(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let o;return e&&("function"==typeof FormData&&e instanceof FormData||er(e.append)&&("formdata"===(o=X(e))||"object"===o&&er(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ee(e.buffer)},isString:et,isNumber:en,isBoolean:e=>!0===e||!1===e,isObject,isPlainObject,isReadableStream:eu,isRequest:ec,isResponse:ef,isHeaders:ed,isUndefined:Y,isDate:eo,isFile:ei,isBlob:ea,isRegExp:ey,isFunction:er,isStream:e=>isObject(e)&&er(e.pipe),isURLSearchParams:el,isTypedArray:eh,isFileList:es,forEach,merge:function merge(){let{caseless:e}=isContextDefined(this)&&this||{},o={},assignValue=(f,v)=>{let w=e&&findKey(o,v)||v;isPlainObject(o[w])&&isPlainObject(f)?o[w]=merge(o[w],f):isPlainObject(f)?o[w]=merge({},f):J(f)?o[w]=f.slice():o[w]=f};for(let e=0,o=arguments.length;e<o;e++)arguments[e]&&forEach(arguments[e],assignValue);return o},extend:(e,o,f,{allOwnKeys:v}={})=>(forEach(o,(o,v)=>{f&&er(o)?e[v]=bind(o,f):e[v]=o},{allOwnKeys:v}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,o,f,v)=>{e.prototype=Object.create(o.prototype,v),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:o.prototype}),f&&Object.assign(e.prototype,f)},toFlatObject:(e,o,f,v)=>{let w,P,N;let F={};if(o=o||{},null==e)return o;do{for(P=(w=Object.getOwnPropertyNames(e)).length;P-- >0;)N=w[P],(!v||v(N,e,o))&&!F[N]&&(o[N]=e[N],F[N]=!0);e=!1!==f&&Z(e)}while(e&&(!f||f(e,o))&&e!==Object.prototype);return o},kindOf:X,kindOfTest,endsWith:(e,o,f)=>{e=String(e),(void 0===f||f>e.length)&&(f=e.length),f-=o.length;let v=e.indexOf(o,f);return -1!==v&&v===f},toArray:e=>{if(!e)return null;if(J(e))return e;let o=e.length;if(!en(o))return null;let f=Array(o);for(;o-- >0;)f[o]=e[o];return f},forEachEntry:(e,o)=>{let f;let v=e&&e[Symbol.iterator],w=v.call(e);for(;(f=w.next())&&!f.done;){let v=f.value;o.call(e,v[0],v[1])}},matchAll:(e,o)=>{let f;let v=[];for(;null!==(f=e.exec(o));)v.push(f);return v},isHTMLForm:eg,hasOwnProperty:em,hasOwnProp:em,reduceDescriptors,freezeMethods:e=>{reduceDescriptors(e,(o,f)=>{if(er(e)&&-1!==["arguments","caller","callee"].indexOf(f))return!1;let v=e[f];if(er(v)){if(o.enumerable=!1,"writable"in o){o.writable=!1;return}o.set||(o.set=()=>{throw Error("Can not rewrite read-only method '"+f+"'")})}})},toObjectSet:(e,o)=>{let f={};return(e=>{e.forEach(e=>{f[e]=!0})})(J(e)?e:String(e).split(o)),f},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,o,f){return o.toUpperCase()+f}),noop:()=>{},toFiniteNumber:(e,o)=>null!=e&&Number.isFinite(e=+e)?e:o,findKey,global:ep,isContextDefined,ALPHABET:ew,generateString:(e=16,o=ew.ALPHA_DIGIT)=>{let f="",{length:v}=o;for(;e--;)f+=o[Math.random()*v|0];return f},isSpecCompliantForm:function(e){return!!(e&&er(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{let o=Array(10),visit=(e,f)=>{if(isObject(e)){if(o.indexOf(e)>=0)return;if(!("toJSON"in e)){o[f]=e;let v=J(e)?[]:{};return forEach(e,(e,o)=>{let w=visit(e,f+1);Y(w)||(v[o]=w)}),o[f]=void 0,v}}return e};return visit(e,0)},isAsyncFn:e_,isThenable:e=>e&&(isObject(e)||er(e))&&er(e.then)&&er(e.catch),setImmediate:eE,asap:ex};function AxiosError(e,o,f,v,w){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",o&&(this.code=o),f&&(this.config=f),v&&(this.request=v),w&&(this.response=w)}eS.inherits(AxiosError,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:eS.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});let eA=AxiosError.prototype,eT={};["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","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{eT[e]={value:e}}),Object.defineProperties(AxiosError,eT),Object.defineProperty(eA,"isAxiosError",{value:!0}),AxiosError.from=(e,o,f,v,w,P)=>{let N=Object.create(eA);return eS.toFlatObject(e,N,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),AxiosError.call(N,e.message,o,f,v,w),N.cause=e,N.name=e.name,P&&Object.assign(N,P),N};var eO=f(21876).Buffer;function isVisitable(e){return eS.isPlainObject(e)||eS.isArray(e)}function removeBrackets(e){return eS.endsWith(e,"[]")?e.slice(0,-2):e}function renderKey(e,o,f){return e?e.concat(o).map(function(e,o){return e=removeBrackets(e),!f&&o?"["+e+"]":e}).join(f?".":""):o}let eC=eS.toFlatObject(eS,{},null,function(e){return/^is[A-Z]/.test(e)});var helpers_toFormData=function(e,o,f){if(!eS.isObject(e))throw TypeError("target must be an object");o=o||new FormData,f=eS.toFlatObject(f,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,o){return!eS.isUndefined(o[e])});let v=f.metaTokens,w=f.visitor||defaultVisitor,P=f.dots,N=f.indexes,F=f.Blob||"undefined"!=typeof Blob&&Blob,U=F&&eS.isSpecCompliantForm(o);if(!eS.isFunction(w))throw TypeError("visitor must be a function");function convertValue(e){if(null===e)return"";if(eS.isDate(e))return e.toISOString();if(!U&&eS.isBlob(e))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return eS.isArrayBuffer(e)||eS.isTypedArray(e)?U&&"function"==typeof Blob?new Blob([e]):eO.from(e):e}function defaultVisitor(e,f,w){let F=e;if(e&&!w&&"object"==typeof e){if(eS.endsWith(f,"{}"))f=v?f:f.slice(0,-2),e=JSON.stringify(e);else{var U;if(eS.isArray(e)&&(U=e,eS.isArray(U)&&!U.some(isVisitable))||(eS.isFileList(e)||eS.endsWith(f,"[]"))&&(F=eS.toArray(e)))return f=removeBrackets(f),F.forEach(function(e,v){eS.isUndefined(e)||null===e||o.append(!0===N?renderKey([f],v,P):null===N?f:f+"[]",convertValue(e))}),!1}}return!!isVisitable(e)||(o.append(renderKey(w,f,P),convertValue(e)),!1)}let V=[],H=Object.assign(eC,{defaultVisitor,convertValue,isVisitable});if(!eS.isObject(e))throw TypeError("data must be an object");return!function build(e,f){if(!eS.isUndefined(e)){if(-1!==V.indexOf(e))throw Error("Circular reference detected in "+f.join("."));V.push(e),eS.forEach(e,function(e,v){let P=!(eS.isUndefined(e)||null===e)&&w.call(o,e,eS.isString(v)?v.trim():v,f,H);!0===P&&build(e,f?f.concat(v):[v])}),V.pop()}}(e),o};function encode(e){let o={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return o[e]})}function AxiosURLSearchParams(e,o){this._pairs=[],e&&helpers_toFormData(e,this,o)}let eP=AxiosURLSearchParams.prototype;function buildURL_encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(e,o,f){let v;if(!o)return e;let w=f&&f.encode||buildURL_encode,P=f&&f.serialize;if(v=P?P(o,f):eS.isURLSearchParams(o)?o.toString():new AxiosURLSearchParams(o,f).toString(w)){let o=e.indexOf("#");-1!==o&&(e=e.slice(0,o)),e+=(-1===e.indexOf("?")?"?":"&")+v}return e}eP.append=function(e,o){this._pairs.push([e,o])},eP.toString=function(e){let o=e?function(o){return e.call(this,o,encode)}:encode;return this._pairs.map(function(e){return o(e[0])+"="+o(e[1])},"").join("&")};var ek=class{constructor(){this.handlers=[]}use(e,o,f){return this.handlers.push({fulfilled:e,rejected:o,synchronous:!!f&&f.synchronous,runWhen:f?f.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){eS.forEach(this.handlers,function(o){null!==o&&e(o)})}},eR={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},eI="undefined"!=typeof URLSearchParams?URLSearchParams:AxiosURLSearchParams,eL="undefined"!=typeof FormData?FormData:null,eB="undefined"!=typeof Blob?Blob:null;let eD="undefined"!=typeof window&&"undefined"!=typeof document,ej=(V="undefined"!=typeof navigator&&navigator.product,eD&&0>["ReactNative","NativeScript","NS"].indexOf(V)),eM="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,eN=eD&&window.location.href||"http://localhost";var eF={...W,isBrowser:!0,classes:{URLSearchParams:eI,FormData:eL,Blob:eB},protocols:["http","https","file","blob","url","data"]},helpers_formDataToJSON=function(e){if(eS.isFormData(e)&&eS.isFunction(e.entries)){let o={};return eS.forEachEntry(e,(e,f)=>{!function buildPath(e,o,f,v){let w=e[v++];if("__proto__"===w)return!0;let P=Number.isFinite(+w),N=v>=e.length;if(w=!w&&eS.isArray(f)?f.length:w,N)return eS.hasOwnProp(f,w)?f[w]=[f[w],o]:f[w]=o,!P;f[w]&&eS.isObject(f[w])||(f[w]=[]);let F=buildPath(e,o,f[w],v);return F&&eS.isArray(f[w])&&(f[w]=function(e){let o,f;let v={},w=Object.keys(e),P=w.length;for(o=0;o<P;o++)v[f=w[o]]=e[f];return v}(f[w])),!P}(eS.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0]),f,o,0)}),o}return null};let e$={transitional:eR,adapter:["xhr","http","fetch"],transformRequest:[function(e,o){let f;let v=o.getContentType()||"",w=v.indexOf("application/json")>-1,P=eS.isObject(e);P&&eS.isHTMLForm(e)&&(e=new FormData(e));let N=eS.isFormData(e);if(N)return w?JSON.stringify(helpers_formDataToJSON(e)):e;if(eS.isArrayBuffer(e)||eS.isBuffer(e)||eS.isStream(e)||eS.isFile(e)||eS.isBlob(e)||eS.isReadableStream(e))return e;if(eS.isArrayBufferView(e))return e.buffer;if(eS.isURLSearchParams(e))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(P){if(v.indexOf("application/x-www-form-urlencoded")>-1){var F,U;return(F=e,U=this.formSerializer,helpers_toFormData(F,new eF.classes.URLSearchParams,Object.assign({visitor:function(e,o,f,v){return eF.isNode&&eS.isBuffer(e)?(this.append(o,e.toString("base64")),!1):v.defaultVisitor.apply(this,arguments)}},U))).toString()}if((f=eS.isFileList(e))||v.indexOf("multipart/form-data")>-1){let o=this.env&&this.env.FormData;return helpers_toFormData(f?{"files[]":e}:e,o&&new o,this.formSerializer)}}return P||w?(o.setContentType("application/json",!1),function(e,o,f){if(eS.isString(e))try{return(0,JSON.parse)(e),eS.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){let o=this.transitional||e$.transitional,f=o&&o.forcedJSONParsing,v="json"===this.responseType;if(eS.isResponse(e)||eS.isReadableStream(e))return e;if(e&&eS.isString(e)&&(f&&!this.responseType||v)){let f=o&&o.silentJSONParsing;try{return JSON.parse(e)}catch(e){if(!f&&v){if("SyntaxError"===e.name)throw AxiosError.from(e,AxiosError.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:eF.classes.FormData,Blob:eF.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};eS.forEach(["delete","get","head","post","put","patch"],e=>{e$.headers[e]={}});let eU=eS.toObjectSet(["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"]);var parseHeaders=e=>{let o,f,v;let w={};return e&&e.split("\n").forEach(function(e){v=e.indexOf(":"),o=e.substring(0,v).trim().toLowerCase(),f=e.substring(v+1).trim(),!o||w[o]&&eU[o]||("set-cookie"===o?w[o]?w[o].push(f):w[o]=[f]:w[o]=w[o]?w[o]+", "+f:f)}),w};let eV=Symbol("internals");function normalizeHeader(e){return e&&String(e).trim().toLowerCase()}function normalizeValue(e){return!1===e||null==e?e:eS.isArray(e)?e.map(normalizeValue):String(e)}let isValidHeaderName=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function matchHeaderValue(e,o,f,v,w){if(eS.isFunction(v))return v.call(this,o,f);if(w&&(o=f),eS.isString(o)){if(eS.isString(v))return -1!==o.indexOf(v);if(eS.isRegExp(v))return v.test(o)}}let AxiosHeaders=class AxiosHeaders{constructor(e){e&&this.set(e)}set(e,o,f){let v=this;function setHeader(e,o,f){let w=normalizeHeader(o);if(!w)throw Error("header name must be a non-empty string");let P=eS.findKey(v,w);P&&void 0!==v[P]&&!0!==f&&(void 0!==f||!1===v[P])||(v[P||o]=normalizeValue(e))}let setHeaders=(e,o)=>eS.forEach(e,(e,f)=>setHeader(e,f,o));if(eS.isPlainObject(e)||e instanceof this.constructor)setHeaders(e,o);else if(eS.isString(e)&&(e=e.trim())&&!isValidHeaderName(e))setHeaders(parseHeaders(e),o);else if(eS.isHeaders(e))for(let[o,v]of e.entries())setHeader(v,o,f);else null!=e&&setHeader(o,e,f);return this}get(e,o){if(e=normalizeHeader(e)){let f=eS.findKey(this,e);if(f){let e=this[f];if(!o)return e;if(!0===o)return function(e){let o;let f=Object.create(null),v=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;o=v.exec(e);)f[o[1]]=o[2];return f}(e);if(eS.isFunction(o))return o.call(this,e,f);if(eS.isRegExp(o))return o.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,o){if(e=normalizeHeader(e)){let f=eS.findKey(this,e);return!!(f&&void 0!==this[f]&&(!o||matchHeaderValue(this,this[f],f,o)))}return!1}delete(e,o){let f=this,v=!1;function deleteHeader(e){if(e=normalizeHeader(e)){let w=eS.findKey(f,e);w&&(!o||matchHeaderValue(f,f[w],w,o))&&(delete f[w],v=!0)}}return eS.isArray(e)?e.forEach(deleteHeader):deleteHeader(e),v}clear(e){let o=Object.keys(this),f=o.length,v=!1;for(;f--;){let w=o[f];(!e||matchHeaderValue(this,this[w],w,e,!0))&&(delete this[w],v=!0)}return v}normalize(e){let o=this,f={};return eS.forEach(this,(v,w)=>{let P=eS.findKey(f,w);if(P){o[P]=normalizeValue(v),delete o[w];return}let N=e?w.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,o,f)=>o.toUpperCase()+f):String(w).trim();N!==w&&delete o[w],o[N]=normalizeValue(v),f[N]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let o=Object.create(null);return eS.forEach(this,(f,v)=>{null!=f&&!1!==f&&(o[v]=e&&eS.isArray(f)?f.join(", "):f)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,o])=>e+": "+o).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...o){let f=new this(e);return o.forEach(e=>f.set(e)),f}static accessor(e){let o=this[eV]=this[eV]={accessors:{}},f=o.accessors,v=this.prototype;function defineAccessor(e){let o=normalizeHeader(e);f[o]||(!function(e,o){let f=eS.toCamelCase(" "+o);["get","set","has"].forEach(v=>{Object.defineProperty(e,v+f,{value:function(e,f,w){return this[v].call(this,o,e,f,w)},configurable:!0})})}(v,e),f[o]=!0)}return eS.isArray(e)?e.forEach(defineAccessor):defineAccessor(e),this}};function transformData(e,o){let f=this||e$,v=o||f,w=AxiosHeaders.from(v.headers),P=v.data;return eS.forEach(e,function(e){P=e.call(f,P,w.normalize(),o?o.status:void 0)}),w.normalize(),P}function isCancel(e){return!!(e&&e.__CANCEL__)}function CanceledError(e,o,f){AxiosError.call(this,null==e?"canceled":e,AxiosError.ERR_CANCELED,o,f),this.name="CanceledError"}function settle(e,o,f){let v=f.config.validateStatus;!f.status||!v||v(f.status)?e(f):o(new AxiosError("Request failed with status code "+f.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(f.status/100)-4],f.config,f.request,f))}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),eS.reduceDescriptors(AxiosHeaders.prototype,({value:e},o)=>{let f=o[0].toUpperCase()+o.slice(1);return{get:()=>e,set(e){this[f]=e}}}),eS.freezeMethods(AxiosHeaders),eS.inherits(CanceledError,AxiosError,{__CANCEL__:!0});var helpers_speedometer=function(e,o){let f;e=e||10;let v=Array(e),w=Array(e),P=0,N=0;return o=void 0!==o?o:1e3,function(F){let U=Date.now(),V=w[N];f||(f=U),v[P]=F,w[P]=U;let H=N,q=0;for(;H!==P;)q+=v[H++],H%=e;if((P=(P+1)%e)===N&&(N=(N+1)%e),U-f<o)return;let W=V&&U-V;return W?Math.round(1e3*q/W):void 0}},helpers_throttle=function(e,o){let f,v,w=0,P=1e3/o,invoke=(o,P=Date.now())=>{w=P,f=null,v&&(clearTimeout(v),v=null),e.apply(null,o)};return[(...e)=>{let o=Date.now(),N=o-w;N>=P?invoke(e,o):(f=e,v||(v=setTimeout(()=>{v=null,invoke(f)},P-N)))},()=>f&&invoke(f)]};let progressEventReducer=(e,o,f=3)=>{let v=0,w=helpers_speedometer(50,250);return helpers_throttle(f=>{let P=f.loaded,N=f.lengthComputable?f.total:void 0,F=P-v,U=w(F),V=P<=N;v=P,e({loaded:P,total:N,progress:N?P/N:void 0,bytes:F,rate:U||void 0,estimated:U&&N&&V?(N-P)/U:void 0,event:f,lengthComputable:null!=N,[o?"download":"upload"]:!0})},f)},progressEventDecorator=(e,o)=>{let f=null!=e;return[v=>o[0]({lengthComputable:f,total:e,loaded:v}),o[1]]},asyncDecorator=e=>(...o)=>eS.asap(()=>e(...o));var eH=eF.hasStandardBrowserEnv?function(){let e;let o=/(msie|trident)/i.test(navigator.userAgent),f=document.createElement("a");function resolveURL(e){let v=e;return o&&(f.setAttribute("href",v),v=f.href),f.setAttribute("href",v),{href:f.href,protocol:f.protocol?f.protocol.replace(/:$/,""):"",host:f.host,search:f.search?f.search.replace(/^\?/,""):"",hash:f.hash?f.hash.replace(/^#/,""):"",hostname:f.hostname,port:f.port,pathname:"/"===f.pathname.charAt(0)?f.pathname:"/"+f.pathname}}return e=resolveURL(window.location.href),function(o){let f=eS.isString(o)?resolveURL(o):o;return f.protocol===e.protocol&&f.host===e.host}}():function(){return!0},eq=eF.hasStandardBrowserEnv?{write(e,o,f,v,w,P){let N=[e+"="+encodeURIComponent(o)];eS.isNumber(f)&&N.push("expires="+new Date(f).toGMTString()),eS.isString(v)&&N.push("path="+v),eS.isString(w)&&N.push("domain="+w),!0===P&&N.push("secure"),document.cookie=N.join("; ")},read(e){let o=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function buildFullPath(e,o){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o)?o?e.replace(/\/?\/$/,"")+"/"+o.replace(/^\/+/,""):e:o}let headersToObject=e=>e instanceof AxiosHeaders?{...e}:e;function mergeConfig(e,o){o=o||{};let f={};function getMergedValue(e,o,f){return eS.isPlainObject(e)&&eS.isPlainObject(o)?eS.merge.call({caseless:f},e,o):eS.isPlainObject(o)?eS.merge({},o):eS.isArray(o)?o.slice():o}function mergeDeepProperties(e,o,f){return eS.isUndefined(o)?eS.isUndefined(e)?void 0:getMergedValue(void 0,e,f):getMergedValue(e,o,f)}function valueFromConfig2(e,o){if(!eS.isUndefined(o))return getMergedValue(void 0,o)}function defaultToConfig2(e,o){return eS.isUndefined(o)?eS.isUndefined(e)?void 0:getMergedValue(void 0,e):getMergedValue(void 0,o)}function mergeDirectKeys(f,v,w){return w in o?getMergedValue(f,v):w in e?getMergedValue(void 0,f):void 0}let v={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,withXSRFToken:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,beforeRedirect:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys,headers:(e,o)=>mergeDeepProperties(headersToObject(e),headersToObject(o),!0)};return eS.forEach(Object.keys(Object.assign({},e,o)),function(w){let P=v[w]||mergeDeepProperties,N=P(e[w],o[w],w);eS.isUndefined(N)&&P!==mergeDirectKeys||(f[w]=N)}),f}var resolveConfig=e=>{let o;let f=mergeConfig({},e),{data:v,withXSRFToken:w,xsrfHeaderName:P,xsrfCookieName:N,headers:F,auth:U}=f;if(f.headers=F=AxiosHeaders.from(F),f.url=buildURL(buildFullPath(f.baseURL,f.url),e.params,e.paramsSerializer),U&&F.set("Authorization","Basic "+btoa((U.username||"")+":"+(U.password?unescape(encodeURIComponent(U.password)):""))),eS.isFormData(v)){if(eF.hasStandardBrowserEnv||eF.hasStandardBrowserWebWorkerEnv)F.setContentType(void 0);else if(!1!==(o=F.getContentType())){let[e,...f]=o?o.split(";").map(e=>e.trim()).filter(Boolean):[];F.setContentType([e||"multipart/form-data",...f].join("; "))}}if(eF.hasStandardBrowserEnv&&(w&&eS.isFunction(w)&&(w=w(f)),w||!1!==w&&eH(f.url))){let e=P&&N&&eq.read(N);e&&F.set(P,e)}return f};let eW="undefined"!=typeof XMLHttpRequest;var ez=eW&&function(e){return new Promise(function(o,f){let v,w,P,N,F;let U=resolveConfig(e),V=U.data,H=AxiosHeaders.from(U.headers).normalize(),{responseType:q,onUploadProgress:W,onDownloadProgress:K}=U;function done(){N&&N(),F&&F(),U.cancelToken&&U.cancelToken.unsubscribe(v),U.signal&&U.signal.removeEventListener("abort",v)}let G=new XMLHttpRequest;function onloadend(){if(!G)return;let v=AxiosHeaders.from("getAllResponseHeaders"in G&&G.getAllResponseHeaders()),w=q&&"text"!==q&&"json"!==q?G.response:G.responseText,P={data:w,status:G.status,statusText:G.statusText,headers:v,config:e,request:G};settle(function(e){o(e),done()},function(e){f(e),done()},P),G=null}G.open(U.method.toUpperCase(),U.url,!0),G.timeout=U.timeout,"onloadend"in G?G.onloadend=onloadend:G.onreadystatechange=function(){G&&4===G.readyState&&(0!==G.status||G.responseURL&&0===G.responseURL.indexOf("file:"))&&setTimeout(onloadend)},G.onabort=function(){G&&(f(new AxiosError("Request aborted",AxiosError.ECONNABORTED,e,G)),G=null)},G.onerror=function(){f(new AxiosError("Network Error",AxiosError.ERR_NETWORK,e,G)),G=null},G.ontimeout=function(){let o=U.timeout?"timeout of "+U.timeout+"ms exceeded":"timeout exceeded",v=U.transitional||eR;U.timeoutErrorMessage&&(o=U.timeoutErrorMessage),f(new AxiosError(o,v.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,e,G)),G=null},void 0===V&&H.setContentType(null),"setRequestHeader"in G&&eS.forEach(H.toJSON(),function(e,o){G.setRequestHeader(o,e)}),eS.isUndefined(U.withCredentials)||(G.withCredentials=!!U.withCredentials),q&&"json"!==q&&(G.responseType=U.responseType),K&&([P,F]=progressEventReducer(K,!0),G.addEventListener("progress",P)),W&&G.upload&&([w,N]=progressEventReducer(W),G.upload.addEventListener("progress",w),G.upload.addEventListener("loadend",N)),(U.cancelToken||U.signal)&&(v=o=>{G&&(f(!o||o.type?new CanceledError(null,e,G):o),G.abort(),G=null)},U.cancelToken&&U.cancelToken.subscribe(v),U.signal&&(U.signal.aborted?v():U.signal.addEventListener("abort",v)));let Z=function(e){let o=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return o&&o[1]||""}(U.url);if(Z&&-1===eF.protocols.indexOf(Z)){f(new AxiosError("Unsupported protocol "+Z+":",AxiosError.ERR_BAD_REQUEST,e));return}G.send(V||null)})},helpers_composeSignals=(e,o)=>{let f,v=new AbortController,onabort=function(e){if(!f){f=!0,unsubscribe();let o=e instanceof Error?e:this.reason;v.abort(o instanceof AxiosError?o:new CanceledError(o instanceof Error?o.message:o))}},w=o&&setTimeout(()=>{onabort(new AxiosError(`timeout ${o} of ms exceeded`,AxiosError.ETIMEDOUT))},o),unsubscribe=()=>{e&&(w&&clearTimeout(w),w=null,e.forEach(e=>{e&&(e.removeEventListener?e.removeEventListener("abort",onabort):e.unsubscribe(onabort))}),e=null)};e.forEach(e=>e&&e.addEventListener&&e.addEventListener("abort",onabort));let{signal:P}=v;return P.unsubscribe=unsubscribe,[P,()=>{w&&clearTimeout(w),w=null}]};let streamChunk=function*(e,o){let f,v=e.byteLength;if(!o||v<o){yield e;return}let w=0;for(;w<v;)f=w+o,yield e.slice(w,f),w=f},readBytes=async function*(e,o,f){for await(let v of e)yield*streamChunk(ArrayBuffer.isView(v)?v:await f(String(v)),o)},trackStream=(e,o,f,v,w)=>{let P;let N=readBytes(e,o,w),F=0,_onFinish=e=>{!P&&(P=!0,v&&v(e))};return new ReadableStream({async pull(e){try{let{done:o,value:v}=await N.next();if(o){_onFinish(),e.close();return}let w=v.byteLength;if(f){let e=F+=w;f(e)}e.enqueue(new Uint8Array(v))}catch(e){throw _onFinish(e),e}},cancel:e=>(_onFinish(e),N.return())},{highWaterMark:2})},eK="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,eG=eK&&"function"==typeof ReadableStream,eQ=eK&&("function"==typeof TextEncoder?(H=new TextEncoder,e=>H.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer())),test=(e,...o)=>{try{return!!e(...o)}catch(e){return!1}},eZ=eG&&test(()=>{let e=!1,o=new Request(eF.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!o}),eX=eG&&test(()=>eS.isReadableStream(new Response("").body)),eJ={stream:eX&&(e=>e.body)};eK&&(q=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{eJ[e]||(eJ[e]=eS.isFunction(q[e])?o=>o[e]():(o,f)=>{throw new AxiosError(`Response type '${e}' is not supported`,AxiosError.ERR_NOT_SUPPORT,f)})}));let getBodyLength=async e=>null==e?0:eS.isBlob(e)?e.size:eS.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:eS.isArrayBufferView(e)||eS.isArrayBuffer(e)?e.byteLength:(eS.isURLSearchParams(e)&&(e+=""),eS.isString(e))?(await eQ(e)).byteLength:void 0,resolveBodyLength=async(e,o)=>{let f=eS.toFiniteNumber(e.getContentLength());return null==f?getBodyLength(o):f};var eY=eK&&(async e=>{let o,f,v,{url:w,method:P,data:N,signal:F,cancelToken:U,timeout:V,onDownloadProgress:H,onUploadProgress:q,responseType:W,headers:K,withCredentials:G="same-origin",fetchOptions:Z}=resolveConfig(e);W=W?(W+"").toLowerCase():"text";let[X,J]=F||U||V?helpers_composeSignals([F,U],V):[],onFinish=()=>{o||setTimeout(()=>{X&&X.unsubscribe()}),o=!0};try{if(q&&eZ&&"get"!==P&&"head"!==P&&0!==(v=await resolveBodyLength(K,N))){let e,o=new Request(w,{method:"POST",body:N,duplex:"half"});if(eS.isFormData(N)&&(e=o.headers.get("content-type"))&&K.setContentType(e),o.body){let[e,f]=progressEventDecorator(v,progressEventReducer(asyncDecorator(q)));N=trackStream(o.body,65536,e,f,eQ)}}eS.isString(G)||(G=G?"include":"omit"),f=new Request(w,{...Z,signal:X,method:P.toUpperCase(),headers:K.normalize().toJSON(),body:N,duplex:"half",credentials:G});let o=await fetch(f),F=eX&&("stream"===W||"response"===W);if(eX&&(H||F)){let e={};["status","statusText","headers"].forEach(f=>{e[f]=o[f]});let f=eS.toFiniteNumber(o.headers.get("content-length")),[v,w]=H&&progressEventDecorator(f,progressEventReducer(asyncDecorator(H),!0))||[];o=new Response(trackStream(o.body,65536,v,()=>{w&&w(),F&&onFinish()},eQ),e)}W=W||"text";let U=await eJ[eS.findKey(eJ,W)||"text"](o,e);return F||onFinish(),J&&J(),await new Promise((v,w)=>{settle(v,w,{data:U,headers:AxiosHeaders.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:f})})}catch(o){if(onFinish(),o&&"TypeError"===o.name&&/fetch/i.test(o.message))throw Object.assign(new AxiosError("Network Error",AxiosError.ERR_NETWORK,e,f),{cause:o.cause||o});throw AxiosError.from(o,o&&o.code,e,f)}});let e0={http:null,xhr:ez,fetch:eY};eS.forEach(e0,(e,o)=>{if(e){try{Object.defineProperty(e,"name",{value:o})}catch(e){}Object.defineProperty(e,"adapterName",{value:o})}});let renderReason=e=>`- ${e}`,isResolvedHandle=e=>eS.isFunction(e)||null===e||!1===e;var e1={getAdapter:e=>{let o,f;e=eS.isArray(e)?e:[e];let{length:v}=e,w={};for(let P=0;P<v;P++){let v;if(f=o=e[P],!isResolvedHandle(o)&&void 0===(f=e0[(v=String(o)).toLowerCase()]))throw new AxiosError(`Unknown adapter '${v}'`);if(f)break;w[v||"#"+P]=f}if(!f){let e=Object.entries(w).map(([e,o])=>`adapter ${e} `+(!1===o?"is not supported by the environment":"is not available in the build")),o=v?e.length>1?"since :\n"+e.map(renderReason).join("\n"):" "+renderReason(e[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return f},adapters:e0};function throwIfCancellationRequested(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new CanceledError(null,e)}function dispatchRequest(e){throwIfCancellationRequested(e),e.headers=AxiosHeaders.from(e.headers),e.data=transformData.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);let o=e1.getAdapter(e.adapter||e$.adapter);return o(e).then(function(o){return throwIfCancellationRequested(e),o.data=transformData.call(e,e.transformResponse,o),o.headers=AxiosHeaders.from(o.headers),o},function(o){return!isCancel(o)&&(throwIfCancellationRequested(e),o&&o.response&&(o.response.data=transformData.call(e,e.transformResponse,o.response),o.response.headers=AxiosHeaders.from(o.response.headers))),Promise.reject(o)})}let e2="1.7.4",e6={};["object","boolean","number","function","string","symbol"].forEach((e,o)=>{e6[e]=function(f){return typeof f===e||"a"+(o<1?"n ":" ")+e}});let e4={};e6.transitional=function(e,o,f){function formatMessage(e,o){return"[Axios v"+e2+"] Transitional option '"+e+"'"+o+(f?". "+f:"")}return(f,v,w)=>{if(!1===e)throw new AxiosError(formatMessage(v," has been removed"+(o?" in "+o:"")),AxiosError.ERR_DEPRECATED);return o&&!e4[v]&&(e4[v]=!0,console.warn(formatMessage(v," has been deprecated since v"+o+" and will be removed in the near future"))),!e||e(f,v,w)}};var e5={assertOptions:function(e,o,f){if("object"!=typeof e)throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);let v=Object.keys(e),w=v.length;for(;w-- >0;){let P=v[w],N=o[P];if(N){let o=e[P],f=void 0===o||N(o,P,e);if(!0!==f)throw new AxiosError("option "+P+" must be "+f,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(!0!==f)throw new AxiosError("Unknown option "+P,AxiosError.ERR_BAD_OPTION)}},validators:e6};let e8=e5.validators;let Axios=class Axios{constructor(e){this.defaults=e,this.interceptors={request:new ek,response:new ek}}async request(e,o){try{return await this._request(e,o)}catch(e){if(e instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=Error();let f=o.stack?o.stack.replace(/^.+\n/,""):"";try{e.stack?f&&!String(e.stack).endsWith(f.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+f):e.stack=f}catch(e){}}throw e}}_request(e,o){let f,v;"string"==typeof e?(o=o||{}).url=e:o=e||{},o=mergeConfig(this.defaults,o);let{transitional:w,paramsSerializer:P,headers:N}=o;void 0!==w&&e5.assertOptions(w,{silentJSONParsing:e8.transitional(e8.boolean),forcedJSONParsing:e8.transitional(e8.boolean),clarifyTimeoutError:e8.transitional(e8.boolean)},!1),null!=P&&(eS.isFunction(P)?o.paramsSerializer={serialize:P}:e5.assertOptions(P,{encode:e8.function,serialize:e8.function},!0)),o.method=(o.method||this.defaults.method||"get").toLowerCase();let F=N&&eS.merge(N.common,N[o.method]);N&&eS.forEach(["delete","get","head","post","put","patch","common"],e=>{delete N[e]}),o.headers=AxiosHeaders.concat(F,N);let U=[],V=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(o))&&(V=V&&e.synchronous,U.unshift(e.fulfilled,e.rejected))});let H=[];this.interceptors.response.forEach(function(e){H.push(e.fulfilled,e.rejected)});let q=0;if(!V){let e=[dispatchRequest.bind(this),void 0];for(e.unshift.apply(e,U),e.push.apply(e,H),v=e.length,f=Promise.resolve(o);q<v;)f=f.then(e[q++],e[q++]);return f}v=U.length;let W=o;for(q=0;q<v;){let e=U[q++],o=U[q++];try{W=e(W)}catch(e){o.call(this,e);break}}try{f=dispatchRequest.call(this,W)}catch(e){return Promise.reject(e)}for(q=0,v=H.length;q<v;)f=f.then(H[q++],H[q++]);return f}getUri(e){e=mergeConfig(this.defaults,e);let o=buildFullPath(e.baseURL,e.url);return buildURL(o,e.params,e.paramsSerializer)}};eS.forEach(["delete","get","head","options"],function(e){Axios.prototype[e]=function(o,f){return this.request(mergeConfig(f||{},{method:e,url:o,data:(f||{}).data}))}}),eS.forEach(["post","put","patch"],function(e){function generateHTTPMethod(o){return function(f,v,w){return this.request(mergeConfig(w||{},{method:e,headers:o?{"Content-Type":"multipart/form-data"}:{},url:f,data:v}))}}Axios.prototype[e]=generateHTTPMethod(),Axios.prototype[e+"Form"]=generateHTTPMethod(!0)});let CancelToken=class CancelToken{constructor(e){let o;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){o=e});let f=this;this.promise.then(e=>{if(!f._listeners)return;let o=f._listeners.length;for(;o-- >0;)f._listeners[o](e);f._listeners=null}),this.promise.then=e=>{let o;let v=new Promise(e=>{f.subscribe(e),o=e}).then(e);return v.cancel=function(){f.unsubscribe(o)},v},e(function(e,v,w){f.reason||(f.reason=new CanceledError(e,v,w),o(f.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let o=this._listeners.indexOf(e);-1!==o&&this._listeners.splice(o,1)}static source(){let e;let o=new CancelToken(function(o){e=o});return{token:o,cancel:e}}};let e3={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(e3).forEach(([e,o])=>{e3[o]=e});let e7=function createInstance(e){let o=new Axios(e),f=bind(Axios.prototype.request,o);return eS.extend(f,Axios.prototype,o,{allOwnKeys:!0}),eS.extend(f,o,null,{allOwnKeys:!0}),f.create=function(o){return createInstance(mergeConfig(e,o))},f}(e$);e7.Axios=Axios,e7.CanceledError=CanceledError,e7.CancelToken=CancelToken,e7.isCancel=isCancel,e7.VERSION=e2,e7.toFormData=helpers_toFormData,e7.AxiosError=AxiosError,e7.Cancel=e7.CanceledError,e7.all=function(e){return Promise.all(e)},e7.spread=function(e){return function(o){return e.apply(null,o)}},e7.isAxiosError=function(e){return eS.isObject(e)&&!0===e.isAxiosError},e7.mergeConfig=mergeConfig,e7.AxiosHeaders=AxiosHeaders,e7.formToJSON=e=>helpers_formDataToJSON(eS.isHTMLForm(e)?new FormData(e):e),e7.getAdapter=e1.getAdapter,e7.HttpStatusCode=e3,e7.default=e7;var e9=e7},90512:function(e,o,f){"use strict";o.Z=function(){for(var e,o,f=0,v="",w=arguments.length;f<w;f++)(e=arguments[f])&&(o=function r(e){var o,f,v="";if("string"==typeof e||"number"==typeof e)v+=e;else if("object"==typeof e){if(Array.isArray(e)){var w=e.length;for(o=0;o<w;o++)e[o]&&(f=r(e[o]))&&(v&&(v+=" "),v+=f)}else for(f in e)e[f]&&(v&&(v+=" "),v+=f)}return v}(e))&&(v&&(v+=" "),v+=o);return v}},1571:function(e,o,f){"use strict";f.d(o,{F:function(){return j},f:function(){return z}});var v=f(67294),w=["light","dark"],P="(prefers-color-scheme: dark)",N="undefined"==typeof window,F=v.createContext(void 0),U={setTheme:e=>{},themes:[]},j=()=>{var e;return null!=(e=v.useContext(F))?e:U},z=e=>v.useContext(F)?e.children:v.createElement(O,{...e}),V=["light","dark"],O=({forcedTheme:e,disableTransitionOnChange:o=!1,enableSystem:f=!0,enableColorScheme:N=!0,storageKey:U="theme",themes:q=V,defaultTheme:W=f?"system":"light",attribute:K="data-theme",value:G,children:Z,nonce:X})=>{let[J,Y]=v.useState(()=>M(U,W)),[ee,et]=v.useState(()=>M(U)),er=G?Object.values(G):q,en=v.useCallback(e=>{let v=e;if(!v)return;"system"===e&&f&&(v=T());let P=G?G[v]:v,F=o?_():null,U=document.documentElement;if("class"===K?(U.classList.remove(...er),P&&U.classList.add(P)):P?U.setAttribute(K,P):U.removeAttribute(K),N){let e=w.includes(W)?W:null,o=w.includes(v)?v:e;U.style.colorScheme=o}null==F||F()},[]),eo=v.useCallback(e=>{let o="function"==typeof e?e(e):e;Y(o);try{localStorage.setItem(U,o)}catch(e){}},[e]),ei=v.useCallback(o=>{et(T(o)),"system"===J&&f&&!e&&en("system")},[J,e]);v.useEffect(()=>{let e=window.matchMedia(P);return e.addListener(ei),ei(e),()=>e.removeListener(ei)},[ei]),v.useEffect(()=>{let s=e=>{e.key===U&&eo(e.newValue||W)};return window.addEventListener("storage",s),()=>window.removeEventListener("storage",s)},[eo]),v.useEffect(()=>{en(null!=e?e:J)},[e,J]);let ea=v.useMemo(()=>({theme:J,setTheme:eo,forcedTheme:e,resolvedTheme:"system"===J?ee:J,themes:f?[...q,"system"]:q,systemTheme:f?ee:void 0}),[J,eo,e,ee,f,q]);return v.createElement(F.Provider,{value:ea},v.createElement(H,{forcedTheme:e,disableTransitionOnChange:o,enableSystem:f,enableColorScheme:N,storageKey:U,themes:q,defaultTheme:W,attribute:K,value:G,children:Z,attrs:er,nonce:X}),Z)},H=v.memo(({forcedTheme:e,storageKey:o,attribute:f,enableSystem:N,enableColorScheme:F,defaultTheme:U,value:V,attrs:H,nonce:q})=>{let W="system"===U,K="class"===f?`var d=document.documentElement,c=d.classList;c.remove(${H.map(e=>`'${e}'`).join(",")});`:`var d=document.documentElement,n='${f}',s='setAttribute';`,G=F?(w.includes(U)?U:null)?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${U}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",d=(e,o=!1,v=!0)=>{let P=V?V[e]:e,N=o?e+"|| ''":`'${P}'`,U="";return F&&v&&!o&&w.includes(e)&&(U+=`d.style.colorScheme = '${e}';`),"class"===f?o||P?U+=`c.add(${N})`:U+="null":P&&(U+=`d[s](n,${N})`),U},Z=e?`!function(){${K}${d(e)}}()`:N?`!function(){try{${K}var e=localStorage.getItem('${o}');if('system'===e||(!e&&${W})){var t='${P}',m=window.matchMedia(t);if(m.media!==t||m.matches){${d("dark")}}else{${d("light")}}}else if(e){${V?`var x=${JSON.stringify(V)};`:""}${d(V?"x[e]":"e",!0)}}${W?"":"else{"+d(U,!1,!1)+"}"}${G}}catch(e){}}()`:`!function(){try{${K}var e=localStorage.getItem('${o}');if(e){${V?`var x=${JSON.stringify(V)};`:""}${d(V?"x[e]":"e",!0)}}else{${d(U,!1,!1)};}${G}}catch(t){}}();`;return v.createElement("script",{nonce:q,dangerouslySetInnerHTML:{__html:Z}})}),M=(e,o)=>{let f;if(!N){try{f=localStorage.getItem(e)||void 0}catch(e){}return f||o}},_=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},T=e=>(e||(e=window.matchMedia(P)),e.matches?"dark":"light")},55678:function(e,o,f){"use strict";f.d(o,{Am:function(){return B},Ix:function(){return Q}});var v=f(67294),w=f(90512);let c=e=>"number"==typeof e&&!isNaN(e),d=e=>"string"==typeof e,u=e=>"function"==typeof e,p=e=>d(e)||u(e)?e:null,m=e=>(0,v.isValidElement)(e)||d(e)||u(e)||c(e);function g(e){let{enter:o,exit:f,appendPosition:w=!1,collapse:P=!0,collapseDuration:N=300}=e;return function(e){let{children:F,position:U,preventExitTransition:V,done:H,nodeRef:q,isIn:W,playToast:K}=e,G=w?`${o}--${U}`:o,Z=w?`${f}--${U}`:f,X=(0,v.useRef)(0);return(0,v.useLayoutEffect)(()=>{let e=q.current,o=G.split(" "),n=f=>{f.target===q.current&&(K(),e.removeEventListener("animationend",n),e.removeEventListener("animationcancel",n),0===X.current&&"animationcancel"!==f.type&&e.classList.remove(...o))};e.classList.add(...o),e.addEventListener("animationend",n),e.addEventListener("animationcancel",n)},[]),(0,v.useEffect)(()=>{let e=q.current,t=()=>{e.removeEventListener("animationend",t),P?function(e,o,f){void 0===f&&(f=300);let{scrollHeight:v,style:w}=e;requestAnimationFrame(()=>{w.minHeight="initial",w.height=v+"px",w.transition=`all ${f}ms`,requestAnimationFrame(()=>{w.height="0",w.padding="0",w.margin="0",setTimeout(o,f)})})}(e,H,N):H()};W||(V?t():(X.current=1,e.className+=` ${Z}`,e.addEventListener("animationend",t)))},[W]),v.createElement(v.Fragment,null,F)}}function y(e,o){return null!=e?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:o}:{}}let P=new Map,N=[],F=new Set,E=e=>F.forEach(o=>o(e)),b=()=>P.size>0;function I(e,o){var f;if(o)return!(null==(f=P.get(o))||!f.isToastActive(e));let v=!1;return P.forEach(o=>{o.isToastActive(e)&&(v=!0)}),v}function _(e,o){m(e)&&(b()||N.push({content:e,options:o}),P.forEach(f=>{f.buildToast(e,o)}))}function C(e,o){P.forEach(f=>{null!=o&&null!=o&&o.containerId?(null==o?void 0:o.containerId)===f.id&&f.toggle(e,null==o?void 0:o.id):f.toggle(e,null==o?void 0:o.id)})}function $(e){let{delay:o,isRunning:f,closeToast:P,type:N="default",hide:F,className:U,style:V,controlledProgress:H,progress:q,rtl:W,isIn:K,theme:G}=e,Z=F||H&&0===q,X={...V,animationDuration:`${o}ms`,animationPlayState:f?"running":"paused"};H&&(X.transform=`scaleX(${q})`);let J=(0,w.Z)("Toastify__progress-bar",H?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${G}`,`Toastify__progress-bar--${N}`,{"Toastify__progress-bar--rtl":W}),Y=u(U)?U({rtl:W,type:N,defaultClassName:J}):(0,w.Z)(J,U);return v.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":Z},v.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${G} Toastify__progress-bar--${N}`}),v.createElement("div",{role:"progressbar","aria-hidden":Z?"true":"false","aria-label":"notification timer",className:Y,style:X,[H&&q>=1?"onTransitionEnd":"onAnimationEnd"]:H&&q<1?null:()=>{K&&P()}}))}let U=1,k=()=>""+U++;function M(e,o){return _(e,o),o.toastId}function x(e,o){return{...o,type:o&&o.type||e,toastId:o&&(d(o.toastId)||c(o.toastId))?o.toastId:k()}}function A(e){return(o,f)=>M(o,x(e,f))}function B(e,o){return M(e,x("default",o))}B.loading=(e,o)=>M(e,x("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...o})),B.promise=function(e,o,f){let v,{pending:w,error:P,success:N}=o;w&&(v=d(w)?B.loading(w,f):B.loading(w.render,{...f,...w}));let F={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(e,o,w)=>{if(null==o)return void B.dismiss(v);let P={type:e,...F,...f,data:w},N=d(o)?{render:o}:o;return v?B.update(v,{...P,...N}):B(N.render,{...P,...N}),w},U=u(e)?e():e;return U.then(e=>l("success",N,e)).catch(e=>l("error",P,e)),U},B.success=A("success"),B.info=A("info"),B.error=A("error"),B.warning=A("warning"),B.warn=B.warning,B.dark=(e,o)=>M(e,x("default",{theme:"dark",...o})),B.dismiss=function(e){!function(e){var o;if(b()){if(null==e||d(o=e)||c(o))P.forEach(o=>{o.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){let o=P.get(e.containerId);o?o.removeToast(e.id):P.forEach(o=>{o.removeToast(e.id)})}}else N=N.filter(o=>null!=e&&o.options.toastId!==e)}(e)},B.clearWaitingQueue=function(e){void 0===e&&(e={}),P.forEach(o=>{!o.props.limit||e.containerId&&o.id!==e.containerId||o.clearQueue()})},B.isActive=I,B.update=function(e,o){void 0===o&&(o={});let f=((e,o)=>{var f;let{containerId:v}=o;return null==(f=P.get(v||1))?void 0:f.toasts.get(e)})(e,o);if(f){let{props:v,content:w}=f,P={delay:100,...v,...o,toastId:o.toastId||e,updateId:k()};P.toastId!==e&&(P.staleId=e);let N=P.render||w;delete P.render,M(N,P)}},B.done=e=>{B.update(e,{progress:1})},B.onChange=function(e){return F.add(e),()=>{F.delete(e)}},B.play=e=>C(!0,e),B.pause=e=>C(!1,e);let V="undefined"!=typeof window?v.useLayoutEffect:v.useEffect,D=e=>{let{theme:o,type:f,isLoading:w,...P}=e;return v.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===o?"currentColor":`var(--toastify-icon-color-${f})`,...P})},H={info:function(e){return v.createElement(D,{...e},v.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return v.createElement(D,{...e},v.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return v.createElement(D,{...e},v.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return v.createElement(D,{...e},v.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return v.createElement("div",{className:"Toastify__spinner"})}},R=e=>{let{isRunning:o,preventExitTransition:f,toastRef:N,eventHandlers:F,playToast:U}=function(e){var o,f;let[w,N]=(0,v.useState)(!1),[F,U]=(0,v.useState)(!1),V=(0,v.useRef)(null),H=(0,v.useRef)({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:q,pauseOnHover:W,closeToast:K,onClick:G,closeOnClick:Z}=e;function h(){N(!0)}function T(){N(!1)}function E(o){let f=V.current;H.canDrag&&f&&(H.didMove=!0,w&&T(),H.delta="x"===e.draggableDirection?o.clientX-H.start:o.clientY-H.start,H.start!==o.clientX&&(H.canCloseOnClick=!1),f.style.transform=`translate3d(${"x"===e.draggableDirection?`${H.delta}px, var(--y)`:`0, calc(${H.delta}px + var(--y))`},0)`,f.style.opacity=""+(1-Math.abs(H.delta/H.removalDistance)))}function b(){document.removeEventListener("pointermove",E),document.removeEventListener("pointerup",b);let o=V.current;if(H.canDrag&&H.didMove&&o){if(H.canDrag=!1,Math.abs(H.delta)>H.removalDistance)return U(!0),e.closeToast(),void e.collapseAll();o.style.transition="transform 0.2s, opacity 0.2s",o.style.removeProperty("transform"),o.style.removeProperty("opacity")}}null==(f=P.get((o={id:e.toastId,containerId:e.containerId,fn:N}).containerId||1))||f.setToggle(o.id,o.fn),(0,v.useEffect)(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||T(),window.addEventListener("focus",h),window.addEventListener("blur",T),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",T)}},[e.pauseOnFocusLoss]);let X={onPointerDown:function(o){if(!0===e.draggable||e.draggable===o.pointerType){H.didMove=!1,document.addEventListener("pointermove",E),document.addEventListener("pointerup",b);let f=V.current;H.canCloseOnClick=!0,H.canDrag=!0,f.style.transition="none","x"===e.draggableDirection?(H.start=o.clientX,H.removalDistance=f.offsetWidth*(e.draggablePercent/100)):(H.start=o.clientY,H.removalDistance=f.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(o){let{top:f,bottom:v,left:w,right:P}=V.current.getBoundingClientRect();"touchend"!==o.nativeEvent.type&&e.pauseOnHover&&o.clientX>=w&&o.clientX<=P&&o.clientY>=f&&o.clientY<=v?T():h()}};return q&&W&&(X.onMouseEnter=T,e.stacked||(X.onMouseLeave=h)),Z&&(X.onClick=e=>{G&&G(e),H.canCloseOnClick&&K()}),{playToast:h,pauseToast:T,isRunning:w,preventExitTransition:F,toastRef:V,eventHandlers:X}}(e),{closeButton:V,children:q,autoClose:W,onClick:K,type:G,hideProgressBar:Z,closeToast:X,transition:J,position:Y,className:ee,style:et,bodyClassName:er,bodyStyle:en,progressClassName:eo,progressStyle:ei,updateId:ea,role:es,progress:el,rtl:eu,toastId:ec,deleteToast:ef,isIn:ed,isLoading:ep,closeOnClick:eh,theme:eg}=e,em=(0,w.Z)("Toastify__toast",`Toastify__toast-theme--${eg}`,`Toastify__toast--${G}`,{"Toastify__toast--rtl":eu},{"Toastify__toast--close-on-click":eh}),ey=u(ee)?ee({rtl:eu,position:Y,type:G,defaultClassName:em}):(0,w.Z)(em,ee),eb=function(e){let{theme:o,type:f,isLoading:w,icon:P}=e,N=null,F={theme:o,type:f};return!1===P||(u(P)?N=P({...F,isLoading:w}):(0,v.isValidElement)(P)?N=(0,v.cloneElement)(P,F):w?N=H.spinner():f in H&&(N=H[f](F))),N}(e),ev=!!el||!W,ew={closeToast:X,type:G,theme:eg},e_=null;return!1===V||(e_=u(V)?V(ew):(0,v.isValidElement)(V)?(0,v.cloneElement)(V,ew):function(e){let{closeToast:o,theme:f,ariaLabel:w="close"}=e;return v.createElement("button",{className:`Toastify__close-button Toastify__close-button--${f}`,type:"button",onClick:e=>{e.stopPropagation(),o(e)},"aria-label":w},v.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},v.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(ew)),v.createElement(J,{isIn:ed,done:ef,position:Y,preventExitTransition:f,nodeRef:N,playToast:U},v.createElement("div",{id:ec,onClick:K,"data-in":ed,className:ey,...F,style:et,ref:N},v.createElement("div",{...ed&&{role:es},className:u(er)?er({type:G}):(0,w.Z)("Toastify__toast-body",er),style:en},null!=eb&&v.createElement("div",{className:(0,w.Z)("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!ep})},eb),v.createElement("div",null,q)),e_,v.createElement($,{...ea&&!ev?{key:`pb-${ea}`}:{},rtl:eu,theme:eg,delay:W,isRunning:o,isIn:ed,closeToast:X,hide:Z,type:G,style:ei,className:eo,controlledProgress:ev,progress:el||0})))},S=function(e,o){return void 0===o&&(o=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:o}},q=g(S("bounce",!0)),W=(g(S("slide",!0)),g(S("zoom")),g(S("flip")),{position:"top-right",transition:q,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"});function Q(e){let o={...W,...e},f=e.stacked,[F,U]=(0,v.useState)(!0),H=(0,v.useRef)(null),{getToastToRender:q,isToastActive:K,count:G}=function(e){let{subscribe:o,getSnapshot:f,setProps:w}=(0,v.useRef)(function(e){let o=e.containerId||1;return{subscribe(f){let w=function(e,o,f){let w=1,P=0,N=[],F=[],U=[],V=o,H=new Map,q=new Set,T=()=>{U=Array.from(H.values()),q.forEach(e=>e())},E=e=>{F=null==e?[]:F.filter(o=>o!==e),T()},b=e=>{let{toastId:o,onOpen:w,updateId:P,children:N}=e.props,U=null==P;e.staleId&&H.delete(e.staleId),H.set(o,e),F=[...F,e.props.toastId].filter(o=>o!==e.staleId),T(),f(y(e,U?"added":"updated")),U&&u(w)&&w((0,v.isValidElement)(N)&&N.props)};return{id:e,props:V,observe:e=>(q.add(e),()=>q.delete(e)),toggle:(e,o)=>{H.forEach(f=>{null!=o&&o!==f.props.toastId||u(f.toggle)&&f.toggle(e)})},removeToast:E,toasts:H,clearQueue:()=>{P-=N.length,N=[]},buildToast:(o,F)=>{var U,q;if((o=>{let{containerId:f,toastId:v,updateId:w}=o,P=H.has(v)&&null==w;return(f?f!==e:1!==e)||P})(F))return;let{toastId:W,updateId:K,data:G,staleId:Z,delay:X}=F,L=()=>{E(W)},J=null==K;J&&P++;let Y={...V,style:V.toastStyle,key:w++,...Object.fromEntries(Object.entries(F).filter(e=>{let[o,f]=e;return null!=f})),toastId:W,updateId:K,data:G,closeToast:L,isIn:!1,className:p(F.className||V.toastClassName),bodyClassName:p(F.bodyClassName||V.bodyClassName),progressClassName:p(F.progressClassName||V.progressClassName),autoClose:!F.isLoading&&(U=F.autoClose,q=V.autoClose,!1===U||c(U)&&U>0?U:q),deleteToast(){let e=H.get(W),{onClose:o,children:w}=e.props;u(o)&&o((0,v.isValidElement)(w)&&w.props),f(y(e,"removed")),H.delete(W),--P<0&&(P=0),N.length>0?b(N.shift()):T()}};Y.closeButton=V.closeButton,!1===F.closeButton||m(F.closeButton)?Y.closeButton=F.closeButton:!0===F.closeButton&&(Y.closeButton=!m(V.closeButton)||V.closeButton);let ee=o;(0,v.isValidElement)(o)&&!d(o.type)?ee=(0,v.cloneElement)(o,{closeToast:L,toastProps:Y,data:G}):u(o)&&(ee=o({closeToast:L,toastProps:Y,data:G}));let et={content:ee,props:Y,staleId:Z};V.limit&&V.limit>0&&P>V.limit&&J?N.push(et):c(X)?setTimeout(()=>{b(et)},X):b(et)},setProps(e){V=e},setToggle:(e,o)=>{H.get(e).toggle=o},isToastActive:e=>F.some(o=>o===e),getSnapshot:()=>V.newestOnTop?U.reverse():U}}(o,e,E);P.set(o,w);let F=w.observe(f);return N.forEach(e=>_(e.content,e.options)),N=[],()=>{F(),P.delete(o)}},setProps(e){var f;null==(f=P.get(o))||f.setProps(e)},getSnapshot(){var e;return null==(e=P.get(o))?void 0:e.getSnapshot()}}}(e)).current;w(e);let F=(0,v.useSyncExternalStore)(o,f,f);return{getToastToRender:function(e){if(!F)return[];let o=new Map;return F.forEach(e=>{let{position:f}=e.props;o.has(f)||o.set(f,[]),o.get(f).push(e)}),Array.from(o,o=>e(o[0],o[1]))},isToastActive:I,count:null==F?void 0:F.length}}(o),{className:Z,style:X,rtl:J,containerId:Y}=o;function E(){f&&(U(!0),B.play())}return V(()=>{if(f){var e;let f=H.current.querySelectorAll('[data-in="true"]'),v=null==(e=o.position)?void 0:e.includes("top"),w=0,P=0;Array.from(f).reverse().forEach((e,o)=>{e.classList.add("Toastify__toast--stacked"),o>0&&(e.dataset.collapsed=`${F}`),e.dataset.pos||(e.dataset.pos=v?"top":"bot");let f=w*(F?.2:1)+(F?0:12*o);e.style.setProperty("--y",`${v?f:-1*f}px`),e.style.setProperty("--g","12"),e.style.setProperty("--s",""+(1-(F?P:0))),w+=e.offsetHeight,P+=.025})}},[F,G,f]),v.createElement("div",{ref:H,className:"Toastify",id:Y,onMouseEnter:()=>{f&&(U(!1),B.pause())},onMouseLeave:E},q((e,o)=>{let P=o.length?{...X}:{...X,pointerEvents:"none"};return v.createElement("div",{className:function(e){let o=(0,w.Z)("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":J});return u(Z)?Z({position:e,rtl:J,defaultClassName:o}):(0,w.Z)(o,p(Z))}(e),style:P,key:`container-${e}`},o.map(e=>{let{content:o,props:w}=e;return v.createElement(R,{...w,stacked:f,collapseAll:E,isIn:K(w.toastId,w.containerId),style:w.style,key:`toast-${w.key}`},o)}))}))}},64529:function(e,o,f){"use strict";f.d(o,{Ue:function(){return create}});let createStoreImpl=e=>{let o;let f=new Set,setState=(e,v)=>{let w="function"==typeof e?e(o):e;if(!Object.is(w,o)){let e=o;o=(null!=v?v:"object"!=typeof w||null===w)?w:Object.assign({},o,w),f.forEach(f=>f(o,e))}},getState=()=>o,v={setState,getState,getInitialState:()=>w,subscribe:e=>(f.add(e),()=>f.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),f.clear()}},w=o=e(setState,getState,v);return v},createStore=e=>e?createStoreImpl(e):createStoreImpl;var v=f(67294),w=f(28258);let{useDebugValue:P}=v,{useSyncExternalStoreWithSelector:N}=w,F=!1,identity=e=>e,createImpl=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let o="function"==typeof e?createStore(e):e,useBoundStore=(e,f)=>(function(e,o=identity,f){f&&!F&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),F=!0);let v=N(e.subscribe,e.getState,e.getServerState||e.getInitialState,o,f);return P(v),v})(o,e,f);return Object.assign(useBoundStore,o),useBoundStore},create=e=>e?createImpl(e):createImpl}},function(e){var __webpack_exec__=function(o){return e(e.s=o)};e.O(0,[9774,179],function(){return __webpack_exec__(6840),__webpack_exec__(59974)}),_N_E=e.O()}]);