(("undefined"!=typeof self?self:this).wpChessCom_dvZK=("undefined"!=typeof self?self:this).wpChessCom_dvZK||[]).push([[2598],{16199:function(e,t,r){"use strict";var n,o=r(15215),i=r(86336),a=r(32477),s=((n={})["no-app"]="No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",n["bad-app-name"]="Illegal App name: '{$appName}",n["duplicate-app"]="Firebase App named '{$appName}' already exists",n["app-deleted"]="Firebase App named '{$appName}' already deleted",n["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",n),u=new i.ErrorFactory("app","Firebase",s),c="[DEFAULT]",l=function(){function FirebaseAppImpl(e,t,r){var n=this;this.firebase_=r;this.isDeleted_=!1;this.services_={};this.tokenListeners_=[];this.analyticsEventRequests_=[];this.name_=t.name;this.automaticDataCollectionEnabled_=t.automaticDataCollectionEnabled||!1;this.options_=i.deepCopy(e);var o=this;this.INTERNAL={getUid:function(){return null},getToken:function(){return Promise.resolve(null)},addAuthTokenListener:function(e){n.tokenListeners_.push(e);setTimeout(function(){return e(null)},0)},removeAuthTokenListener:function(e){n.tokenListeners_=n.tokenListeners_.filter(function(t){return t!==e})},analytics:{logEvent:function(){o.analyticsEventRequests_.push(arguments)}}}}return Object.defineProperty(FirebaseAppImpl.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(e){this.checkDestroyed_();this.automaticDataCollectionEnabled_=e},enumerable:!0,configurable:!0}),Object.defineProperty(FirebaseAppImpl.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!0,configurable:!0}),Object.defineProperty(FirebaseAppImpl.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!0,configurable:!0}),FirebaseAppImpl.prototype.delete=function(){var e=this;return new Promise(function(t){e.checkDestroyed_();t()}).then(function(){e.firebase_.INTERNAL.removeApp(e.name_);for(var t=[],r=0,n=Object.keys(e.services_);r=0&&f.warn("\n Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n ")}var d=createFirebaseNamespace(),h=d.initializeApp;d.initializeApp=function(){for(var e=[],t=0;t=500&&t.status<600)return[2,e()];return[2,t]}})})}function getExpiresInFromResponseExpiresIn(e){return Number(e.replace("s","000"))}function getAuthorizationHeader(e){return p+" "+e}/** * @license * Copyright 2019 Google Inc. * * 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 createInstallation(e,t){var r=t.fid;return(0,s.__awaiter)(this,void 0,void 0,function(){var t,n,o,i;return(0,s.__generator)(this,function(a){switch(a.label){case 0:t=getInstallationsEndpoint(e);n={method:"POST",headers:getHeaders(e),body:JSON.stringify({fid:r,authVersion:p,appId:e.appId,sdkVersion:f})};return[4,retryIfServerError(function(){return fetch(t,n)})];case 1:o=a.sent();if(!o.ok)return[3,3];return[4,o.json()];case 2:return[2,{fid:(i=a.sent()).fid||r,registrationStatus:2,refreshToken:i.refreshToken,authToken:extractAuthTokenInfoFromResponse(i.authToken)}];case 3:return[4,getErrorFromResponse("Create Installation",o)];case 4:throw a.sent()}})})}/** * @license * Copyright 2019 Google Inc. * * 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(function(t){setTimeout(t,e)})}/** * @license * Copyright 2019 Google Inc. * * 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 bufferToBase64UrlSafe(e){return btoa(String.fromCharCode.apply(String,(0,s.__spread)(e))).replace(/\+/g,"-").replace(/\//g,"_")}/** * @license * Copyright 2019 Google Inc. * * 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. */var g=/^[cdef][\w-]{21}$/,m="";function generateFid(){try{var e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e);e[0]=112+e[0]%16;var t=encode(e);return g.test(t)?t:m}catch(e){return m}}function encode(e){return bufferToBase64UrlSafe(e).substr(0,22)}var y="firebase-installations-store",v=null;function getDbPromise(){return v||(v=(0,c.openDb)("firebase-installations-database",1,function(e){0===e.oldVersion&&e.createObjectStore(y)})),v}function set(e,t){return(0,s.__awaiter)(this,void 0,void 0,function(){var r,n;return(0,s.__generator)(this,function(o){switch(o.label){case 0:r=getKey(e);return[4,getDbPromise()];case 1:return[4,(n=o.sent().transaction(y,"readwrite")).objectStore(y).put(t,r)];case 2:o.sent();return[4,n.complete];case 3:o.sent();return[2,t]}})})}function remove(e){return(0,s.__awaiter)(this,void 0,void 0,function(){var t,r;return(0,s.__generator)(this,function(n){switch(n.label){case 0:t=getKey(e);return[4,getDbPromise()];case 1:return[4,(r=n.sent().transaction(y,"readwrite")).objectStore(y).delete(t)];case 2:n.sent();return[4,r.complete];case 3:n.sent();return[2]}})})}function update(e,t){return(0,s.__awaiter)(this,void 0,void 0,function(){var r,n,o,i;return(0,s.__generator)(this,function(a){switch(a.label){case 0:r=getKey(e);return[4,getDbPromise()];case 1:return[4,(o=(n=a.sent().transaction(y,"readwrite")).objectStore(y)).get(r)];case 2:i=t(a.sent());if(void 0!==i)return[3,4];return[4,o.delete(r)];case 3:a.sent();return[3,6];case 4:return[4,o.put(i,r)];case 5:a.sent();a.label=6;case 6:return[4,n.complete];case 7:a.sent();return[2,i]}})})}function getKey(e){return e.appName+"!"+e.appId}/** * @license * Copyright 2019 Google Inc. * * 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 getInstallationEntry(e){return(0,s.__awaiter)(this,void 0,void 0,function(){var t,r,n;return(0,s.__generator)(this,function(o){switch(o.label){case 0:return[4,update(e,function(r){var n=triggerRegistrationIfNecessary(e,updateOrCreateInstallationEntry(r));return t=n.registrationPromise,n.installationEntry})];case 1:r=o.sent();if(r.fid!==m)return[3,3];n={};return[4,t];case 2:return[2,(n.installationEntry=o.sent(),n)];case 3:return[2,{installationEntry:r,registrationPromise:t}]}})})}function updateOrCreateInstallationEntry(e){return clearTimedOutRequest(e||{fid:generateFid(),registrationStatus:0})}function triggerRegistrationIfNecessary(e,t){if(0===t.registrationStatus){if(!navigator.onLine)return{installationEntry:t,registrationPromise:Promise.reject(h.create("app-offline"))};var r={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},n=registerInstallation(e,r);return{installationEntry:r,registrationPromise:n}}return 1===t.registrationStatus?{installationEntry:t,registrationPromise:waitUntilFidRegistration(e)}:{installationEntry:t}}function registerInstallation(e,t){return(0,s.__awaiter)(this,void 0,void 0,function(){var r;return(0,s.__generator)(this,function(n){switch(n.label){case 0:n.trys.push([0,2,,7]);return[4,createInstallation(e,t)];case 1:return[2,set(e,n.sent())];case 2:r=n.sent();if(!(isServerError(r)&&409===r.serverCode))return[3,4];return[4,remove(e)];case 3:n.sent();return[3,6];case 4:return[4,set(e,{fid:t.fid,registrationStatus:0})];case 5:n.sent();n.label=6;case 6:throw r;case 7:return[2]}})})}function waitUntilFidRegistration(e){return(0,s.__awaiter)(this,void 0,void 0,function(){var t,r,n,o;return(0,s.__generator)(this,function(i){switch(i.label){case 0:return[4,updateInstallationRequest(e)];case 1:t=i.sent();i.label=2;case 2:if(1!==t.registrationStatus)return[3,5];return[4,sleep(100)];case 3:i.sent();return[4,updateInstallationRequest(e)];case 4:t=i.sent();return[3,2];case 5:if(0!==t.registrationStatus)return[3,7];return[4,getInstallationEntry(e)];case 6:n=(r=i.sent()).installationEntry,o=r.registrationPromise;if(o)return[2,o];return[2,n];case 7:return[2,t]}})})}function updateInstallationRequest(e){return update(e,function(e){if(!e)throw h.create("installation-not-found");return clearTimedOutRequest(e)})}function clearTimedOutRequest(e){return hasInstallationRequestTimedOut(e)?{fid:e.fid,registrationStatus:0}:e}function hasInstallationRequestTimedOut(e){return 1===e.registrationStatus&&e.registrationTime+lu&&console.warn("This browser only supports "+u+" actions.The remaining actions will not be displayed.");return[2,i.showNotification(o,n)];case 3:if(!this.bgMessageHandler)return[3,5];return[4,this.bgMessageHandler(t)];case 4:s.sent();return[2];case 5:return[2]}})})},SwController.prototype.onSubChange_=function(e){return(0,s.__awaiter)(this,void 0,void 0,function(){var e,t,r,n;return(0,s.__generator)(this,function(o){switch(o.label){case 0:o.trys.push([0,2,,3]);return[4,this.getSWRegistration_()];case 1:e=o.sent();return[3,3];case 2:t=o.sent();throw _.create("unable-to-resubscribe",{errorInfo:t});case 3:o.trys.push([3,5,,8]);return[4,e.pushManager.getSubscription()];case 4:o.sent();return[3,8];case 5:r=o.sent();return[4,this.getTokenDetailsModel().getTokenDetailsFromSWScope(e.scope)];case 6:n=o.sent();if(!n)throw r;return[4,this.deleteToken(n.fcmToken)];case 7:o.sent();throw r;case 8:return[2]}})})},SwController.prototype.onNotificationClick_=function(e){return(0,s.__awaiter)(this,void 0,void 0,function(){var t,r,n,o;return(0,s.__generator)(this,function(a){switch(a.label){case 0:if(!e.notification||!e.notification.data||!e.notification.data[D]||e.action)return[2];e.stopImmediatePropagation();e.notification.close();t=e.notification.data[D];if(!t.notification)return[2];r=t.fcmOptions&&t.fcmOptions.link||t.notification.click_action;if(!r){if(!t.data||!(T in t.data))return[2];r=self.location.origin}return[4,this.getWindowClient_(r)];case 1:n=a.sent();if(n)return[3,4];return[4,self.clients.openWindow(r)];case 2:n=a.sent();return[4,index_esm_sleep(3e3)];case 3:a.sent();return[3,6];case 4:return[4,n.focus()];case 5:n=a.sent();a.label=6;case 6:if(!n)return[2];delete t.notification;delete t.fcmOptions;o=createNewMsg(i.NOTIFICATION_CLICKED,t);return[2,this.attemptToMessageClient_(n,o)]}})})},SwController.prototype.getNotificationData_=function(e){if(e&&"object"==typeof e.notification){var t,r=(0,s.__assign)({},e.notification);return r.data=(0,s.__assign)((0,s.__assign)({},e.notification.data),((t={})[D]=e,t)),r}},SwController.prototype.setBackgroundMessageHandler=function(e){if(!e||"function"!=typeof e)throw _.create("bg-handler-function-expected");this.bgMessageHandler=e},SwController.prototype.getWindowClient_=function(e){return(0,s.__awaiter)(this,void 0,void 0,function(){var t,r,n,o,i;return(0,s.__generator)(this,function(a){switch(a.label){case 0:t=new URL(e,self.location.href).href;return[4,getClientList()];case 1:r=a.sent();n=null;for(o=0;o>6|192;t[r++]=63&o|128}else if((64512&o)==55296&&n+1>18|240;t[r++]=o>>12&63|128;t[r++]=o>>6&63|128;t[r++]=63&o|128}else{t[r++]=o>>12|224;t[r++]=o>>6&63|128;t[r++]=63&o|128}}return t},byteArrayToString=function(e){for(var t=[],r=0,n=0;r191&&o<224){var i=e[r++];t[n++]=String.fromCharCode((31&o)<<6|63&i)}else if(o>239&&o<365){var i=e[r++],a=e[r++],s=((7&o)<<18|(63&i)<<12|(63&a)<<6|63&e[r++])-65536;t[n++]=String.fromCharCode(55296+(s>>10));t[n++]=String.fromCharCode(56320+(1023&s))}else{var i=e[r++],a=e[r++];t[n++]=String.fromCharCode((15&o)<<12|(63&i)<<6|63&a)}}return t.join("")},i={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray:function(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var r=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,n=[],o=0;o>2,f=(3&i)<<4|s>>4,p=(15&s)<<2|c>>6,d=63&c;if(!u){d=64;a||(p=64)}n.push(r[l],r[f],r[p],r[d])}return n.join("")},encodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(stringToByteArray(e),t)},decodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):byteArrayToString(this.decodeStringToByteArray(e,t))},decodeStringToByteArray:function(e,t){this.init_();for(var r=t?this.charToByteMapWebSafe_:this.charToByteMap_,n=[],o=0;o>4;n.push(c);if(64!==s){var l=a<<4&240|s>>2;n.push(l);if(64!==u){var f=s<<6&192|u;n.push(f)}}}return n},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={};this.charToByteMap_={};this.byteToCharMapWebSafe_={};this.charToByteMapWebSafe_={};for(var e=0;e=this.ENCODED_VALS_BASE.length){this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e;this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e}}}}},base64Decode=function(e){try{return i.decodeString(e,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};/** * @license * Copyright 2017 Google Inc. * * 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 deepCopy(e){return deepExtend(void 0,e)}function deepExtend(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:return new Date(t.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(var r in t)t.hasOwnProperty(r)&&(e[r]=deepExtend(e[r],t[r]));return e}/** * @license * Copyright 2017 Google Inc. * * 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. */var a=function(){function Deferred(){var e=this;this.reject=function(){};this.resolve=function(){};this.promise=new Promise(function(t,r){e.resolve=t;e.reject=r})}return Deferred.prototype.wrapCallback=function(e){var t=this;return function(r,n){r?t.reject(r):t.resolve(n);if("function"==typeof e){t.promise.catch(function(){});1===e.length?e(r):e(r,n)}}},Deferred}();/** * @license * Copyright 2017 Google Inc. * * 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 getUA(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function isMobileCordova(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(getUA())}function isNode(){try{return"[object process]"===Object.prototype.toString.call(r.g.process)}catch(e){return!1}}function isBrowser(){return"object"==typeof self&&self.self===self}function isReactNative(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function isNodeSdk(){return!0===o.NODE_CLIENT||!0===o.NODE_ADMIN}var s=function(e){n.__extends(FirebaseError,e);function FirebaseError(t,r){var n=e.call(this,r)||this;return n.code=t,n.name="FirebaseError",Object.setPrototypeOf(n,FirebaseError.prototype),Error.captureStackTrace&&Error.captureStackTrace(n,u.prototype.create),n}return FirebaseError}(Error),u=function(){function ErrorFactory(e,t,r){this.service=e;this.serviceName=t;this.errors=r}return ErrorFactory.prototype.create=function(e){for(var t=[],r=1;r"})}var c=/\{\$([^}]+)}/g;/** * @license * Copyright 2017 Google Inc. * * 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 jsonEval(e){return JSON.parse(e)}function stringify(e){return JSON.stringify(e)}/** * @license * Copyright 2017 Google Inc. * * 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. */var decode=function(e){var t={},r={},n={},o="";try{var i=e.split(".");t=jsonEval(base64Decode(i[0])||"");r=jsonEval(base64Decode(i[1])||"");o=i[2];n=r.d||{};delete r.d}catch(e){}return{header:t,claims:r,data:n,signature:o}};/** * @license * Copyright 2017 Google Inc. * * 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 contains(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function safeGet(e,t){return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0}function isEmpty(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function map(e,t,r){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=t.call(r,e[o],o,e));return n}/** * @license * Copyright 2017 Google Inc. * * 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 querystring(e){for(var t=[],_loop_1=function(e,r){Array.isArray(r)?r.forEach(function(r){t.push(encodeURIComponent(e)+"="+encodeURIComponent(r))}):t.push(encodeURIComponent(e)+"="+encodeURIComponent(r))},r=0,n=Object.entries(e);r>>31)&0xffffffff}for(var s=this.chain_[0],u=this.chain_[1],c=this.chain_[2],l=this.chain_[3],f=this.chain_[4],i=0;i<80;i++){if(i<40){if(i<20){r=l^u&(c^l);n=0x5a827999}else{r=u^c^l;n=0x6ed9eba1}}else if(i<60){r=u&c|l&(u|c);n=0x8f1bbcdc}else{r=u^c^l;n=0xca62c1d6}var a=(s<<5|s>>>27)+r+f+n+o[i]&0xffffffff;f=l;l=c;c=(u<<30|u>>>2)&0xffffffff;u=s;s=a}this.chain_[0]=this.chain_[0]+s&0xffffffff;this.chain_[1]=this.chain_[1]+u&0xffffffff;this.chain_[2]=this.chain_[2]+c&0xffffffff;this.chain_[3]=this.chain_[3]+l&0xffffffff;this.chain_[4]=this.chain_[4]+f&0xffffffff},Sha1.prototype.update=function(e,t){if(null!=e){void 0===t&&(t=e.length);for(var r=t-this.blockSize,n=0,o=this.buf_,i=this.inbuf_;n=56;r--){this.buf_[r]=255&t;t/=256}this.compress_(this.buf_);for(var n=0,r=0;r<5;r++)for(var o=24;o>=0;o-=8){e[n]=this.chain_[r]>>o&255;++n}return e},Sha1}();function createSubscribe(e,t){var r=new f(e,t);return r.subscribe.bind(r)}var f=function(){function ObserverProxy(e,t){var r=this;this.observers=[];this.unsubscribes=[];this.observerCount=0;this.task=Promise.resolve();this.finalized=!1;this.onNoObservers=t;this.task.then(function(){e(r)}).catch(function(e){r.error(e)})}return ObserverProxy.prototype.next=function(e){this.forEachObserver(function(t){t.next(e)})},ObserverProxy.prototype.error=function(e){this.forEachObserver(function(t){t.error(e)});this.close(e)},ObserverProxy.prototype.complete=function(){this.forEachObserver(function(e){e.complete()});this.close()},ObserverProxy.prototype.subscribe=function(e,t,r){var n,o=this;if(void 0===e&&void 0===t&&void 0===r)throw Error("Missing Observer.");void 0===(n=implementsAnyMethods(e,["next","error","complete"])?e:{next:e,error:t,complete:r}).next&&(n.next=noop);void 0===n.error&&(n.error=noop);void 0===n.complete&&(n.complete=noop);var i=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(function(){try{o.finalError?n.error(o.finalError):n.complete()}catch(e){}}),this.observers.push(n),i},ObserverProxy.prototype.unsubscribeOne=function(e){if(void 0!==this.observers&&void 0!==this.observers[e]){delete this.observers[e];this.observerCount-=1;0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this)}},ObserverProxy.prototype.forEachObserver=function(e){if(!this.finalized)for(var t=0;t 4. Need to update it?")}return e+" failed: "+n+" argument "}function validateNamespace(e,t,r,n){if((!n||r)&&"string"!=typeof r)throw Error(errorPrefix(e,t,n)+"must be a valid firebase namespace.")}function validateCallback(e,t,r,n){if((!n||r)&&"function"!=typeof r)throw Error(errorPrefix(e,t,n)+"must be a valid function.")}function validateContextObject(e,t,r,n){if((!n||r)&&("object"!=typeof r||null===r))throw Error(errorPrefix(e,t,n)+"must be a valid context object.")}t.CONSTANTS=o;t.Deferred=a;t.ErrorFactory=u;t.FirebaseError=s;t.Sha1=l;t.assert=assert;t.assertionError=assertionError;t.async=async;t.base64=i;t.base64Decode=base64Decode;t.base64Encode=function(e){var t=stringToByteArray(e);return i.encodeByteArray(t,!0)};t.contains=contains;t.createSubscribe=createSubscribe;t.decode=decode;t.deepCopy=deepCopy;t.deepExtend=deepExtend;t.errorPrefix=errorPrefix;t.getUA=getUA;t.isAdmin=function(e){var t=decode(e).claims;return"object"==typeof t&&!0===t.admin};t.isBrowser=isBrowser;t.isEmpty=isEmpty;t.isMobileCordova=isMobileCordova;t.isNode=isNode;t.isNodeSdk=isNodeSdk;t.isReactNative=isReactNative;t.isValidFormat=function(e){var t=decode(e).claims;return!!t&&"object"==typeof t&&t.hasOwnProperty("iat")};t.isValidTimestamp=function(e){var t=decode(e).claims,r=Math.floor(new Date().getTime()/1e3),n=0,o=0;if("object"==typeof t){t.hasOwnProperty("nbf")?n=t.nbf:t.hasOwnProperty("iat")&&(n=t.iat);o=t.hasOwnProperty("exp")?t.exp:n+86400}return!!r&&!!n&&!!o&&r>=n&&r<=o};t.issuedAtTime=function(e){var t=decode(e).claims;return"object"==typeof t&&t.hasOwnProperty("iat")?t.iat:null};t.jsonEval=jsonEval;t.map=map;t.querystring=querystring;t.querystringDecode=querystringDecode;t.safeGet=safeGet;t.stringLength=function(e){for(var t=0,r=0;r=55296&&n<=56319){t+=4;r++}else t+=3}return t};t.stringToByteArray=function(e){for(var t=[],r=0,n=0;n=55296&&o<=56319){var i=o-55296;n++;assert(n>6|192;t[r++]=63&o|128}else if(o<65536){t[r++]=o>>12|224;t[r++]=o>>6&63|128;t[r++]=63&o|128}else{t[r++]=o>>18|240;t[r++]=o>>12&63|128;t[r++]=o>>6&63|128;t[r++]=63&o|128}}return t};t.stringify=stringify;t.validateArgCount=function(e,t,r,n){var o;nr&&(o=0===r?"none":"no more than "+r);if(o){var i=e+" failed: Was called with "+n+(1===n?" argument.":" arguments.")+" Expects "+o+".";throw Error(i)}};t.validateCallback=validateCallback;t.validateContextObject=validateContextObject;t.validateNamespace=validateNamespace},72505:function(e,t,r){e.exports=r(18015)},35592:function(e,t,r){"use strict";var n=r(9516),o=r(7522),i=r(33948),a=r(79106),s=r(99615),u=r(62012),c=r(64202),l=r(94896),f=r(5845),p=r(28563),d=r(25656),h=r(95721);e.exports=function xhrAdapter(e){return new Promise(function dispatchXhrRequest(t,r){var g,m=e.data,y=e.headers,v=e.responseType,b=e.withXSRFToken;function done(){e.cancelToken&&e.cancelToken.unsubscribe(g);e.signal&&e.signal.removeEventListener("abort",g)}n.isFormData(m)&&n.isStandardBrowserEnv()&&delete y["Content-Type"];var _=new XMLHttpRequest;if(e.auth){var w=e.auth.username||"",T=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";y.Authorization="Basic "+btoa(w+":"+T)}var S=s(e.baseURL,e.url,e.allowAbsoluteUrls);_.open(e.method.toUpperCase(),a(S,e.params,e.paramsSerializer),!0);_.timeout=e.timeout;function onloadend(){if(_){var n="getAllResponseHeaders"in _?u(_.getAllResponseHeaders()):null;o(function _resolve(e){t(e);done()},function _reject(e){r(e);done()},{data:v&&"text"!==v&&"json"!==v?_.response:_.responseText,status:_.status,statusText:_.statusText,headers:n,config:e,request:_});_=null}}"onloadend"in _?_.onloadend=onloadend:_.onreadystatechange=function handleLoad(){_&&4===_.readyState&&(0!==_.status||_.responseURL&&0===_.responseURL.indexOf("file:"))&&setTimeout(onloadend)};_.onabort=function handleAbort(){if(_){r(new f("Request aborted",f.ECONNABORTED,e,_));_=null}};_.onerror=function handleError(){r(new f("Network Error",f.ERR_NETWORK,e,_));_=null};_.ontimeout=function handleTimeout(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||l;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage);r(new f(t,n.clarifyTimeoutError?f.ETIMEDOUT:f.ECONNABORTED,e,_));_=null};if(n.isStandardBrowserEnv()){b&&n.isFunction(b)&&(b=b(e));if(b||!1!==b&&c(S)){var A=e.xsrfHeaderName&&e.xsrfCookieName&&i.read(e.xsrfCookieName);A&&(y[e.xsrfHeaderName]=A)}}"setRequestHeader"in _&&n.forEach(y,function setRequestHeader(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete y[t]:_.setRequestHeader(t,e)});n.isUndefined(e.withCredentials)||(_.withCredentials=!!e.withCredentials);v&&"json"!==v&&(_.responseType=e.responseType);"function"==typeof e.onDownloadProgress&&_.addEventListener("progress",e.onDownloadProgress);"function"==typeof e.onUploadProgress&&_.upload&&_.upload.addEventListener("progress",e.onUploadProgress);if(e.cancelToken||e.signal){g=function(t){if(_){r(!t||t.type?new p(null,e,_):t);_.abort();_=null}};e.cancelToken&&e.cancelToken.subscribe(g);e.signal&&(e.signal.aborted?g():e.signal.addEventListener("abort",g))}m||!1===m||0===m||""===m||(m=null);var k=d(S);if(k&&-1===h.protocols.indexOf(k)){r(new f("Unsupported protocol "+k+":",f.ERR_BAD_REQUEST,e));return}_.send(m)})}},18015:function(e,t,r){"use strict";var n=r(9516),o=r(69012),i=r(35155),a=r(85343),s=r(37412),u=r(94298);function createInstance(e){var t=new i(e),r=o(i.prototype.request,t);return n.extend(r,i.prototype,t),n.extend(r,t),r.create=function create(t){return createInstance(a(e,t))},r}var c=createInstance(s);c.Axios=i;c.CanceledError=r(28563);c.CancelToken=r(3191);c.isCancel=r(93864);c.VERSION=r(49641).version;c.toFormData=r(26440);c.AxiosError=r(5845);c.Cancel=c.CanceledError;c.all=function all(e){return Promise.all(e)};c.spread=r(17980);c.isAxiosError=r(45019);c.formToJSON=function(e){return u(n.isHTMLForm(e)?new FormData(e):e)};e.exports=c;e.exports.default=c},3191:function(e,t,r){"use strict";var n=r(28563);function CancelToken(e){if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function promiseExecutor(e){t=e});var t,r=this;this.promise.then(function(e){if(r._listeners){for(var t=r._listeners.length;t-- >0;)r._listeners[t](e);r._listeners=null}});this.promise.then=function(e){var t,n=new Promise(function(e){r.subscribe(e);t=e}).then(e);return n.cancel=function reject(){r.unsubscribe(t)},n};e(function cancel(e,o,i){if(!r.reason){r.reason=new n(e,o,i);t(r.reason)}})}CancelToken.prototype.throwIfRequested=function throwIfRequested(){if(this.reason)throw this.reason};CancelToken.prototype.subscribe=function subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]};CancelToken.prototype.unsubscribe=function unsubscribe(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}};CancelToken.source=function source(){var e;return{token:new CancelToken(function executor(t){e=t}),cancel:e}};e.exports=CancelToken},28563:function(e,t,r){"use strict";var n=r(5845);function CanceledError(e,t,r){n.call(this,null==e?"canceled":e,n.ERR_CANCELED,t,r);this.name="CanceledError"}r(9516).inherits(CanceledError,n,{__CANCEL__:!0});e.exports=CanceledError},93864:function(e){"use strict";e.exports=function isCancel(e){return!!(e&&e.__CANCEL__)}},35155:function(e,t,r){"use strict";var n=r(9516),o=r(79106),i=r(83471),a=r(64490),s=r(85343),u=r(99615),c=r(34841),l=c.validators;function Axios(e){this.defaults=e;this.interceptors={request:new i,response:new i}}Axios.prototype.request=function request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{};(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r,o=t.transitional;void 0!==o&&c.assertOptions(o,{silentJSONParsing:l.transitional(l.boolean),forcedJSONParsing:l.transitional(l.boolean),clarifyTimeoutError:l.transitional(l.boolean)},!1);var i=t.paramsSerializer;null!=i&&(n.isFunction(i)?t.paramsSerializer={serialize:i}:c.assertOptions(i,{encode:l.function,serialize:l.function},!0));var u=[],f=!0;this.interceptors.request.forEach(function unshiftRequestInterceptors(e){if("function"!=typeof e.runWhen||!1!==e.runWhen(t)){f=f&&e.synchronous;u.unshift(e.fulfilled,e.rejected)}});var p=[];this.interceptors.response.forEach(function pushResponseInterceptors(e){p.push(e.fulfilled,e.rejected)});if(!f){var d=[a,void 0];Array.prototype.unshift.apply(d,u);d=d.concat(p);r=Promise.resolve(t);for(;d.length;)r=r.then(d.shift(),d.shift());return r}for(var h=t;u.length;){var g=u.shift(),m=u.shift();try{h=g(h)}catch(e){m(e);break}}try{r=a(h)}catch(e){return Promise.reject(e)}for(;p.length;)r=r.then(p.shift(),p.shift());return r};Axios.prototype.getUri=function getUri(e){return o(u((e=s(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)};n.forEach(["delete","get","head","options"],function forEachMethodNoData(e){Axios.prototype[e]=function(t,r){return this.request(s(r||{},{method:e,url:t,data:(r||{}).data}))}});n.forEach(["post","put","patch"],function forEachMethodWithData(e){function generateHTTPMethod(t){return function httpMethod(r,n,o){return this.request(s(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}Axios.prototype[e]=generateHTTPMethod();Axios.prototype[e+"Form"]=generateHTTPMethod(!0)});e.exports=Axios},5845:function(e,t,r){"use strict";var n=r(9516);function AxiosError(e,t,r,n,o){Error.call(this);Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack;this.message=e;this.name="AxiosError";t&&(this.code=t);r&&(this.config=r);n&&(this.request=n);o&&(this.response=o)}n.inherits(AxiosError,Error,{toJSON:function toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var o=AxiosError.prototype,i={};["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(function(e){i[e]={value:e}});Object.defineProperties(AxiosError,i);Object.defineProperty(o,"isAxiosError",{value:!0});AxiosError.from=function(e,t,r,i,a,s){var u=Object.create(o);return n.toFlatObject(e,u,function filter(e){return e!==Error.prototype}),AxiosError.call(u,e.message,t,r,i,a),u.cause=e,u.name=e.name,s&&Object.assign(u,s),u};e.exports=AxiosError},83471:function(e,t,r){"use strict";var n=r(9516);function InterceptorManager(){this.handlers=[]}InterceptorManager.prototype.use=function use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1};InterceptorManager.prototype.eject=function eject(e){this.handlers[e]&&(this.handlers[e]=null)};InterceptorManager.prototype.clear=function clear(){this.handlers&&(this.handlers=[])};InterceptorManager.prototype.forEach=function forEach(e){n.forEach(this.handlers,function forEachHandler(t){null!==t&&e(t)})};e.exports=InterceptorManager},99615:function(e,t,r){"use strict";var n=r(29137),o=r(84680);e.exports=function buildFullPath(e,t,r){var i=!n(t);return e&&(i||!1===r)?o(e,t):t}},64490:function(e,t,r){"use strict";var n=r(9516),o=r(82881),i=r(93864),a=r(37412),s=r(28563),u=r(7018);function throwIfCancellationRequested(e){e.cancelToken&&e.cancelToken.throwIfRequested();if(e.signal&&e.signal.aborted)throw new s}e.exports=function dispatchRequest(e){return throwIfCancellationRequested(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,null,e.transformRequest),u(e.headers,"Accept"),u(e.headers,"Content-Type"),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],function cleanHeaderConfig(t){delete e.headers[t]}),(e.adapter||a.adapter)(e).then(function onAdapterResolution(t){return throwIfCancellationRequested(e),t.data=o.call(e,t.data,t.headers,t.status,e.transformResponse),t},function onAdapterRejection(t){if(!i(t)){throwIfCancellationRequested(e);t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,t.response.status,e.transformResponse))}return Promise.reject(t)})}},85343:function(e,t,r){"use strict";var n=r(9516);e.exports=function mergeConfig(e,t){t=t||{};var r={};function getMergedValue(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isEmptyObject(t)?n.merge({},e):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function mergeDeepProperties(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:getMergedValue(void 0,e[r]):getMergedValue(e[r],t[r])}function valueFromConfig2(e){if(!n.isUndefined(t[e]))return getMergedValue(void 0,t[e])}function defaultToConfig2(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:getMergedValue(void 0,e[r]):getMergedValue(void 0,t[r])}function mergeDirectKeys(r){return r in t?getMergedValue(e[r],t[r]):r in e?getMergedValue(void 0,e[r]):void 0}var o={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};return n.forEach(Object.keys(e).concat(Object.keys(t)),function computeConfigValue(e){var t=o[e]||mergeDeepProperties,i=t(e);n.isUndefined(i)&&t!==mergeDirectKeys||(r[e]=i)}),r}},7522:function(e,t,r){"use strict";var n=r(5845);e.exports=function settle(e,t,r){var o=r.config.validateStatus;!r.status||!o||o(r.status)?e(r):t(new n("Request failed with status code "+r.status,[n.ERR_BAD_REQUEST,n.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}},82881:function(e,t,r){"use strict";var n=r(9516),o=r(37412);e.exports=function transformData(e,t,r,i){var a=this||o;return n.forEach(i,function transform(n){e=n.call(a,e,t,r)}),e}},37412:function(e,t,r){"use strict";var n=r(65606),o=r(9516),i=r(7018),a=r(5845),s=r(94896),u=r(26440),c=r(86069),l=r(95721),f=r(94298),p={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function stringifySafely(e,t,r){if(o.isString(e))try{(t||JSON.parse)(e);return o.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}var d={transitional:s,adapter:function getDefaultAdapter(){var e;return"undefined"!=typeof XMLHttpRequest?e=r(35592):void 0!==n&&"[object process]"===Object.prototype.toString.call(n)&&(e=r(35592)),e}(),transformRequest:[function transformRequest(e,t){i(t,"Accept");i(t,"Content-Type");var r,n=t&&t["Content-Type"]||"",a=n.indexOf("application/json")>-1,s=o.isObject(e);s&&o.isHTMLForm(e)&&(e=new FormData(e));var l=o.isFormData(e);if(l)return a?JSON.stringify(f(e)):e;if(o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e))return e;if(o.isArrayBufferView(e))return e.buffer;if(o.isURLSearchParams(e))return setContentTypeIfUnset(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();if(s){if(-1!==n.indexOf("application/x-www-form-urlencoded"))return c(e,this.formSerializer).toString();if((r=o.isFileList(e))||n.indexOf("multipart/form-data")>-1){var p=this.env&&this.env.FormData;return u(r?{"files[]":e}:e,p&&new p,this.formSerializer)}}return s||a?(setContentTypeIfUnset(t,"application/json"),stringifySafely(e)):e}],transformResponse:[function transformResponse(e){var t=this.transitional||d.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(e&&o.isString(e)&&(r&&!this.responseType||n)){var i=t&&t.silentJSONParsing;try{return JSON.parse(e)}catch(e){if(!i&&n){if("SyntaxError"===e.name)throw a.from(e,a.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:l.classes.FormData,Blob:l.classes.Blob},validateStatus:function validateStatus(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],function forEachMethodNoData(e){d.headers[e]={}});o.forEach(["post","put","patch"],function forEachMethodWithData(e){d.headers[e]=o.merge(p)});e.exports=d},94896:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},30786:function(e,t,r){e.exports=r(51894)},49641:function(e){e.exports={version:"0.30.0"}},50170:function(e,t,r){"use strict";var n=r(26440);function encode(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'\(\)~]|%20|%00/g,function replacer(e){return t[e]})}function AxiosURLSearchParams(e,t){this._pairs=[];e&&n(e,this,t)}var o=AxiosURLSearchParams.prototype;o.append=function append(e,t){this._pairs.push([e,t])};o.toString=function toString(e){var t=e?function(t){return e.call(this,t,encode)}:encode;return this._pairs.map(function each(e){return t(e[0])+"="+t(e[1])},"").join("&")};e.exports=AxiosURLSearchParams},69012:function(e){"use strict";e.exports=function bind(e,t){return function wrap(){return e.apply(t,arguments)}}},79106:function(e,t,r){"use strict";var n=r(9516),o=r(50170);function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function buildURL(e,t,r){if(!t)return e;var i,a=e.indexOf("#");-1!==a&&(e=e.slice(0,a));var s=r&&r.encode||encode,u=r&&r.serialize;return(i=u?u(t,r):n.isURLSearchParams(t)?t.toString():new o(t,r).toString(s))&&(e+=(-1===e.indexOf("?")?"?":"&")+i),e}},84680:function(e){"use strict";e.exports=function combineURLs(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}},33948:function(e,t,r){"use strict";var n=r(9516);e.exports=n.isStandardBrowserEnv()?function standardBrowserEnv(){return{write:function write(e,t,r,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t));n.isNumber(r)&&s.push("expires="+new Date(r).toGMTString());n.isString(o)&&s.push("path="+o);n.isString(i)&&s.push("domain="+i);!0===a&&s.push("secure");document.cookie=s.join("; ")},read:function read(e){var t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function remove(e){this.write(e,"",Date.now()-864e5)}}}():function nonStandardBrowserEnv(){return{write:function write(){},read:function read(){return null},remove:function remove(){}}}()},94298:function(e,t,r){"use strict";var n=r(9516);function parsePropPath(e){return n.matchAll(/\w+|\[(\w*)]/g,e).map(function(e){return"[]"===e[0]?"":e[1]||e[0]})}function arrayToObject(e){var t,r,n={},o=Object.keys(e),i=o.length;for(t=0;t=e.length;return(i=!i&&n.isArray(r)?r.length:i,s)?n.hasOwnProperty(r,i)?r[i]=[r[i],t]:r[i]=t:(r[i]&&n.isObject(r[i])||(r[i]=[]),buildPath(e,t,r[i],o)&&n.isArray(r[i])&&(r[i]=arrayToObject(r[i]))),!a}if(n.isFormData(e)&&n.isFunction(e.entries)){var t={};return n.forEachEntry(e,function(e,r){buildPath(parsePropPath(e),r,t,0)}),t}return null}e.exports=formDataToJSON},29137:function(e){"use strict";e.exports=function isAbsoluteURL(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},45019:function(e,t,r){"use strict";var n=r(9516);e.exports=function isAxiosError(e){return n.isObject(e)&&!0===e.isAxiosError}},64202:function(e,t,r){"use strict";var n=r(9516);e.exports=n.isStandardBrowserEnv()?function standardBrowserEnv(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function resolveURL(e){var n=e;if(t){r.setAttribute("href",n);n=r.href}return r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=resolveURL(window.location.href),function isURLSameOrigin(t){var r=n.isString(t)?resolveURL(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function nonStandardBrowserEnv(){return function isURLSameOrigin(){return!0}}()},7018:function(e,t,r){"use strict";var n=r(9516);e.exports=function normalizeHeaderName(e,t){n.forEach(e,function processHeader(r,n){if(n!==t&&n.toUpperCase()===t.toUpperCase()){e[t]=r;delete e[n]}})}},62012:function(e,t,r){"use strict";var n=r(9516),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function parseHeaders(e){var t,r,i,a={};return e&&n.forEach(e.split("\n"),function parser(e){i=e.indexOf(":");t=n.trim(e.slice(0,i)).toLowerCase();r=n.trim(e.slice(i+1));if(t){if(a[t]&&o.indexOf(t)>=0)return;"set-cookie"===t?a[t]=(a[t]?a[t]:[]).concat([r]):a[t]=a[t]?a[t]+", "+r:r}}),a}},25656:function(e){"use strict";e.exports=function parseProtocol(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},17980:function(e){"use strict";e.exports=function spread(e){return function wrap(t){return e.apply(null,t)}}},26440:function(e,t,r){"use strict";var n=r(9516),o=r(5845),i=r(30786);function isVisitable(e){return n.isPlainObject(e)||n.isArray(e)}function removeBrackets(e){return n.endsWith(e,"[]")?e.slice(0,-2):e}function renderKey(e,t,r){return e?e.concat(t).map(function each(e,t){return e=removeBrackets(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}function isFlatArray(e){return n.isArray(e)&&!e.some(isVisitable)}var a=n.toFlatObject(n,{},null,function filter(e){return/^is[A-Z]/.test(e)});function isSpecCompliant(e){return e&&n.isFunction(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator]}function toFormData(e,t,r){if(!n.isObject(e))throw TypeError("target must be an object");t=t||new(i||FormData);var s=(r=n.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function defined(e,t){return!n.isUndefined(t[e])})).metaTokens,u=r.visitor||defaultVisitor,c=r.dots,l=r.indexes,f=(r.Blob||"undefined"!=typeof Blob&&Blob)&&isSpecCompliant(t);if(!n.isFunction(u))throw TypeError("visitor must be a function");function convertValue(e){if(null===e)return"";if(n.isDate(e))return e.toISOString();if(!f&&n.isBlob(e))throw new o("Blob is not supported. Use a Buffer instead.");return n.isArrayBuffer(e)||n.isTypedArray(e)?f&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function defaultVisitor(e,r,o){var i=e;if(e&&!o&&"object"==typeof e){if(n.endsWith(r,"{}")){r=s?r:r.slice(0,-2);e=JSON.stringify(e)}else if(n.isArray(e)&&isFlatArray(e)||n.isFileList(e)||n.endsWith(r,"[]")&&(i=n.toArray(e)))return r=removeBrackets(r),i.forEach(function each(e,o){n.isUndefined(e)||null===e||t.append(!0===l?renderKey([r],o,c):null===l?r:r+"[]",convertValue(e))}),!1}return!!isVisitable(e)||(t.append(renderKey(o,r,c),convertValue(e)),!1)}var p=[],d=Object.assign(a,{defaultVisitor:defaultVisitor,convertValue:convertValue,isVisitable:isVisitable});function build(e,r){if(!n.isUndefined(e)){if(-1!==p.indexOf(e))throw Error("Circular reference detected in "+r.join("."));p.push(e);n.forEach(e,function each(e,o){!0===(!(n.isUndefined(e)||null===e)&&u.call(t,e,n.isString(o)?o.trim():o,r,d))&&build(e,r?r.concat(o):[o])});p.pop()}}if(!n.isObject(e))throw TypeError("data must be an object");return build(e),t}e.exports=toFormData},86069:function(e,t,r){"use strict";var n=r(9516),o=r(26440),i=r(95721);e.exports=function toURLEncodedForm(e,t){return o(e,new i.classes.URLSearchParams,Object.assign({visitor:function(e,t,r,o){return i.isNode&&n.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}},34841:function(e,t,r){"use strict";var n=r(49641).version,o=r(5845),i={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){i[e]=function validator(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var a={};i.transitional=function transitional(e,t,r){function formatMessage(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,i){if(!1===e)throw new o(formatMessage(n," has been removed"+(t?" in "+t:"")),o.ERR_DEPRECATED);if(t&&!a[n]){a[n]=!0;console.warn(formatMessage(n," has been deprecated since v"+t+" and will be removed in the near future"))}return!e||e(r,n,i)}};function assertOptions(e,t,r){if("object"!=typeof e)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),i=n.length;i-- >0;){var a=n[i],s=t[a];if(s){var u=e[a],c=void 0===u||s(u,a,e);if(!0!==c)throw new o("option "+a+" must be "+c,o.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new o("Unknown option "+a,o.ERR_BAD_OPTION)}}e.exports={assertOptions:assertOptions,validators:i}},40243:function(e){"use strict";e.exports=FormData},32002:function(e,t,r){"use strict";var n=r(50170);e.exports="undefined"!=typeof URLSearchParams?URLSearchParams:n},29490:function(e,t,r){"use strict";e.exports={isBrowser:!0,classes:{URLSearchParams:r(32002),FormData:r(40243),Blob:Blob},protocols:["http","https","file","blob","url","data"]}},95721:function(e,t,r){"use strict";e.exports=r(29490)},9516:function(e,t,r){"use strict";var n=r(69012),o=Object.prototype.toString,i=function(e){return function(t){var r=o.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())}}(Object.create(null));function kindOfTest(e){return e=e.toLowerCase(),function isKindOf(t){return i(t)===e}}function isArray(e){return Array.isArray(e)}function isUndefined(e){return void 0===e}function isBuffer(e){return null!==e&&!isUndefined(e)&&null!==e.constructor&&!isUndefined(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var a=kindOfTest("ArrayBuffer");function isArrayBufferView(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&a(e.buffer)}function isString(e){return"string"==typeof e}function isNumber(e){return"number"==typeof e}function isObject(e){return null!==e&&"object"==typeof e}function isPlainObject(e){if("object"!==i(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function isEmptyObject(e){return e&&0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}var s=kindOfTest("Date"),u=kindOfTest("File"),c=kindOfTest("Blob"),l=kindOfTest("FileList");function isFunction(e){return"[object Function]"===o.call(e)}function isStream(e){return isObject(e)&&isFunction(e.pipe)}function isFormData(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||o.call(e)===t||isFunction(e.toString)&&e.toString()===t)}var f=kindOfTest("URLSearchParams");function trim(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function isStandardBrowserEnv(){var e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&"undefined"!=typeof window&&"undefined"!=typeof document}function forEach(e,t){if(null!=e){"object"!=typeof e&&(e=[e]);if(isArray(e))for(var r=0,n=e.length;r0;){a=o[i];if((!n||n(a,e,t))&&!s[a]){t[a]=e[a];s[a]=!0}}e=!1!==r&&Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t}function endsWith(e,t,r){e=String(e);(void 0===r||r>e.length)&&(r=e.length);r-=t.length;var n=e.indexOf(t,r);return -1!==n&&n===r}function toArray(e){if(!e)return null;if(isArray(e))return e;var t=e.length;if(!isNumber(t))return null;for(var r=Array(t);t-- >0;)r[t]=e[t];return r}var p=function(e){return function(t){return e&&t instanceof e}}("undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array));function forEachEntry(e,t){for(var r,n=(e&&e[Symbol.iterator]).call(e);(r=n.next())&&!r.done;){var o=r.value;t.call(e,o[0],o[1])}}function matchAll(e,t){for(var r,n=[];null!==(r=e.exec(t));)n.push(r);return n}var d=kindOfTest("HTMLFormElement"),h=function resolver(e){return function(t,r){return e.call(t,r)}}(Object.prototype.hasOwnProperty);e.exports={isArray:isArray,isArrayBuffer:a,isBuffer:isBuffer,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:isString,isNumber:isNumber,isObject:isObject,isPlainObject:isPlainObject,isEmptyObject:isEmptyObject,isUndefined:isUndefined,isDate:s,isFile:u,isBlob:c,isFunction:isFunction,isStream:isStream,isURLSearchParams:f,isStandardBrowserEnv:isStandardBrowserEnv,forEach:forEach,merge:merge,extend:extend,trim:trim,stripBOM:stripBOM,inherits:inherits,toFlatObject:toFlatObject,kindOf:i,kindOfTest:kindOfTest,endsWith:endsWith,toArray:toArray,isTypedArray:p,isFileList:l,forEachEntry:forEachEntry,matchAll:matchAll,isHTMLForm:d,hasOwnProperty:h}},37634:function(e,t){var r,n,o;!function(i,a){n=[],void 0!==(o="function"==typeof(r=a().Routing)?r.apply(t,n):r)&&(e.exports=o)}(0,function(){var e={};"use strict";e.__esModule=!0;e.Routing=e.Router=void 0;var t=function(){function Router2(e,t){this.context_=e||{base_url:"",prefix:"",host:"",port:"",scheme:"",locale:""};this.setRoutes(t||{})}return Router2.getInstance=function(){return e.Routing},Router2.setData=function(e){Router2.getInstance().setRoutingData(e)},Router2.prototype.setRoutingData=function(e){this.setBaseUrl(e.base_url);this.setRoutes(e.routes);void 0!==e.prefix&&this.setPrefix(e.prefix);void 0!==e.port&&this.setPort(e.port);void 0!==e.locale&&this.setLocale(e.locale);this.setHost(e.host);void 0!==e.scheme&&this.setScheme(e.scheme)},Router2.prototype.setRoutes=function(e){this.routes_=Object.freeze(e)},Router2.prototype.getRoutes=function(){return this.routes_},Router2.prototype.setBaseUrl=function(e){this.context_.base_url=e},Router2.prototype.getBaseUrl=function(){return this.context_.base_url},Router2.prototype.setPrefix=function(e){this.context_.prefix=e},Router2.prototype.setScheme=function(e){this.context_.scheme=e},Router2.prototype.getScheme=function(){return this.context_.scheme},Router2.prototype.setHost=function(e){this.context_.host=e},Router2.prototype.getHost=function(){return this.context_.host},Router2.prototype.setPort=function(e){this.context_.port=e},Router2.prototype.getPort=function(){return this.context_.port},Router2.prototype.setLocale=function(e){this.context_.locale=e},Router2.prototype.getLocale=function(){return this.context_.locale},Router2.prototype.buildQueryParams=function(e,t,r){var n,o=this,i=new RegExp(/\[\]$/);if(t instanceof Array)t.forEach(function(t,n){i.test(e)?r(e,t):o.buildQueryParams(e+"["+("object"==typeof t?n:"")+"]",t,r)});else if("object"==typeof t)for(n in t)this.buildQueryParams(e+"["+n+"]",t[n],r);else r(e,t)},Router2.prototype.getRoute=function(e){var t=[this.context_.prefix+e,e+"."+this.context_.locale,this.context_.prefix+e+"."+this.context_.locale,e];for(var r in t)if(t[r]in this.routes_)return this.routes_[t[r]];throw Error('The route "'+e+'" does not exist.')},Router2.prototype.generate=function(e,t,r){var n=this.getRoute(e),o=t||{},i=Object.assign({},o),a="",s=!0,u="",c=void 0===this.getPort()||null===this.getPort()?"":this.getPort();n.tokens.forEach(function(t){if("text"===t[0]&&"string"==typeof t[1]){a=Router2.encodePathComponent(t[1])+a;s=!1;return}if("variable"===t[0]){6===t.length&&!0===t[5]&&(s=!1);var r=n.defaults&&!Array.isArray(n.defaults)&&"string"==typeof t[3]&&t[3]in n.defaults;if(!1===s||!r||"string"==typeof t[3]&&t[3]in o&&!Array.isArray(n.defaults)&&o[t[3]]!=n.defaults[t[3]]){var u=void 0;if("string"==typeof t[3]&&t[3]in o){u=o[t[3]];delete i[t[3]]}else if("string"==typeof t[3]&&r&&!Array.isArray(n.defaults))u=n.defaults[t[3]];else if(s)return;else throw Error('The route "'+e+'" requires the parameter "'+t[3]+'".');var c=!0===u||!1===u||""===u;if(!c||!s){var l=Router2.encodePathComponent(u);"null"===l&&null===u&&(l="");a=t[1]+l+a}s=!1}else r&&"string"==typeof t[3]&&t[3]in i&&delete i[t[3]];return}throw Error('The token type "'+t[0]+'" is not supported.')});""===a&&(a="/");n.hosttokens.forEach(function(e){var t;if("text"===e[0]){u=e[1]+u;return}if("variable"===e[0]){if(e[3]in o){t=o[e[3]];delete i[e[3]]}else n.defaults&&!Array.isArray(n.defaults)&&e[3]in n.defaults&&(t=n.defaults[e[3]]);u=e[1]+t+u}});a=this.context_.base_url+a;if(n.requirements&&"_scheme"in n.requirements&&this.getScheme()!=n.requirements._scheme){var l=u||this.getHost();a=n.requirements._scheme+"://"+l+(l.indexOf(":"+c)>-1||""===c?"":":"+c)+a}else if(void 0!==n.schemes&&void 0!==n.schemes[0]&&this.getScheme()!==n.schemes[0]){var l=u||this.getHost();a=n.schemes[0]+"://"+l+(l.indexOf(":"+c)>-1||""===c?"":":"+c)+a}else u&&this.getHost()!==u+(u.indexOf(":"+c)>-1||""===c?"":":"+c)?a=this.getScheme()+"://"+u+(u.indexOf(":"+c)>-1||""===c?"":":"+c)+a:!0===r&&(a=this.getScheme()+"://"+this.getHost()+(this.getHost().indexOf(":"+c)>-1||""===c?"":":"+c)+a);if(Object.keys(i).length>0){var f=[],add=function(e,t){t=null===(t="function"==typeof t?t():t)?"":t;f.push(Router2.encodeQueryComponent(e)+"="+Router2.encodeQueryComponent(t))};for(var p in i)i.hasOwnProperty(p)&&this.buildQueryParams(p,i[p],add);a=a+"?"+f.join("&")}return a},Router2.customEncodeURIComponent=function(e){return encodeURIComponent(e).replace(/%2F/g,"/").replace(/%40/g,"@").replace(/%3A/g,":").replace(/%21/g,"!").replace(/%3B/g,";").replace(/%2C/g,",").replace(/%2A/g,"*").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/'/g,"%27")},Router2.encodePathComponent=function(e){return Router2.customEncodeURIComponent(e).replace(/%3D/g,"=").replace(/%2B/g,"+").replace(/%21/g,"!").replace(/%7C/g,"|")},Router2.encodeQueryComponent=function(e){return Router2.customEncodeURIComponent(e).replace(/%3F/g,"?")},Router2}();return e.Router=t,e.Routing=new t,e.default=e.Routing,{Router:e.Router,Routing:e.Routing}})},51894:function(e){e.exports="object"==typeof self?self.FormData:window.FormData},91588:function(e,t){!function(e,r){r(t)}(0,function(e){"use strict";function toArray(e){return Array.prototype.slice.call(e)}function promisifyRequest(e){return new Promise(function(t,r){e.onsuccess=function(){t(e.result)};e.onerror=function(){r(e.error)}})}function promisifyRequestCall(e,t,r){var n,o=new Promise(function(o,i){promisifyRequest(n=e[t].apply(e,r)).then(o,i)});return o.request=n,o}function promisifyCursorRequestCall(e,t,r){var n=promisifyRequestCall(e,t,r);return n.then(function(e){if(e)return new Cursor(e,n.request)})}function proxyProperties(e,t,r){r.forEach(function(r){Object.defineProperty(e.prototype,r,{get:function(){return this[t][r]},set:function(e){this[t][r]=e}})})}function proxyRequestMethods(e,t,r,n){n.forEach(function(n){n in r.prototype&&(e.prototype[n]=function(){return promisifyRequestCall(this[t],n,arguments)})})}function proxyMethods(e,t,r,n){n.forEach(function(n){n in r.prototype&&(e.prototype[n]=function(){return this[t][n].apply(this[t],arguments)})})}function proxyCursorRequestMethods(e,t,r,n){n.forEach(function(n){n in r.prototype&&(e.prototype[n]=function(){return promisifyCursorRequestCall(this[t],n,arguments)})})}function Index(e){this._index=e}proxyProperties(Index,"_index",["name","keyPath","multiEntry","unique"]);proxyRequestMethods(Index,"_index",IDBIndex,["get","getKey","getAll","getAllKeys","count"]);proxyCursorRequestMethods(Index,"_index",IDBIndex,["openCursor","openKeyCursor"]);function Cursor(e,t){this._cursor=e;this._request=t}proxyProperties(Cursor,"_cursor",["direction","key","primaryKey","value"]);proxyRequestMethods(Cursor,"_cursor",IDBCursor,["update","delete"]);["advance","continue","continuePrimaryKey"].forEach(function(e){e in IDBCursor.prototype&&(Cursor.prototype[e]=function(){var t=this,r=arguments;return Promise.resolve().then(function(){return t._cursor[e].apply(t._cursor,r),promisifyRequest(t._request).then(function(e){if(e)return new Cursor(e,t._request)})})})});function ObjectStore(e){this._store=e}ObjectStore.prototype.createIndex=function(){return new Index(this._store.createIndex.apply(this._store,arguments))};ObjectStore.prototype.index=function(){return new Index(this._store.index.apply(this._store,arguments))};proxyProperties(ObjectStore,"_store",["name","keyPath","indexNames","autoIncrement"]);proxyRequestMethods(ObjectStore,"_store",IDBObjectStore,["put","add","delete","clear","get","getAll","getKey","getAllKeys","count"]);proxyCursorRequestMethods(ObjectStore,"_store",IDBObjectStore,["openCursor","openKeyCursor"]);proxyMethods(ObjectStore,"_store",IDBObjectStore,["deleteIndex"]);function Transaction(e){this._tx=e;this.complete=new Promise(function(t,r){e.oncomplete=function(){t()};e.onerror=function(){r(e.error)};e.onabort=function(){r(e.error)}})}Transaction.prototype.objectStore=function(){return new ObjectStore(this._tx.objectStore.apply(this._tx,arguments))};proxyProperties(Transaction,"_tx",["objectStoreNames","mode"]);proxyMethods(Transaction,"_tx",IDBTransaction,["abort"]);function UpgradeDB(e,t,r){this._db=e;this.oldVersion=t;this.transaction=new Transaction(r)}UpgradeDB.prototype.createObjectStore=function(){return new ObjectStore(this._db.createObjectStore.apply(this._db,arguments))};proxyProperties(UpgradeDB,"_db",["name","version","objectStoreNames"]);proxyMethods(UpgradeDB,"_db",IDBDatabase,["deleteObjectStore","close"]);function DB(e){this._db=e}DB.prototype.transaction=function(){return new Transaction(this._db.transaction.apply(this._db,arguments))};proxyProperties(DB,"_db",["name","version","objectStoreNames"]);proxyMethods(DB,"_db",IDBDatabase,["close"]);["openCursor","openKeyCursor"].forEach(function(e){[ObjectStore,Index].forEach(function(t){e in t.prototype&&(t.prototype[e.replace("open","iterate")]=function(){var t=toArray(arguments),r=t[t.length-1],n=this._store||this._index,o=n[e].apply(n,t.slice(0,-1));o.onsuccess=function(){r(o.result)}})})});[Index,ObjectStore].forEach(function(e){e.prototype.getAll||(e.prototype.getAll=function(e,t){var r=this,n=[];return new Promise(function(o){r.iterateCursor(e,function(e){if(!e){o(n);return}n.push(e.value);if(void 0!==t&&n.length==t){o(n);return}e.continue()})})})});function openDb(e,t,r){var n=promisifyRequestCall(indexedDB,"open",[e,t]),o=n.request;return o&&(o.onupgradeneeded=function(e){r&&r(new UpgradeDB(o.result,e.oldVersion,o.transaction))}),n.then(function(e){return new DB(e)})}function deleteDb(e){return promisifyRequestCall(indexedDB,"deleteDatabase",[e])}e.openDb=openDb;e.deleteDb=deleteDb;Object.defineProperty(e,"__esModule",{value:!0})})},65606:function(e){var t,r,n,o=e.exports={};function defaultSetTimout(){throw Error("setTimeout has not been defined")}function defaultClearTimeout(){throw Error("clearTimeout has not been defined")}!function(){try{t="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){t=defaultSetTimout}try{r="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){r=defaultClearTimeout}}();function runTimeout(e){if(t===setTimeout)return setTimeout(e,0);if((t===defaultSetTimout||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}function runClearTimeout(e){if(r===clearTimeout)return clearTimeout(e);if((r===defaultClearTimeout||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}var i=[],a=!1,s=-1;function cleanUpNextTick(){if(a&&n){a=!1;n.length?i=n.concat(i):s=-1;i.length&&drainQueue()}}function drainQueue(){if(!a){var e=runTimeout(cleanUpNextTick);a=!0;for(var t=i.length;t;){n=i;i=[];for(;++s1)for(var r=1;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function __decorate(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function __param(e,t){return function(r,n){t(r,n,e)}}function __metadata(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function __awaiter(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n.throw(e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})}function __generator(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function verb(e){return function(t){return step([e,t])}}function step(i){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;n=0,o&&(i=[2&i[0],o.value]);switch(i[0]){case 0:case 1:o=i;break;case 4:a.label++;return{value:i[1],done:!1};case 5:a.label++;n=i[1];i=[0];continue;case 7:i=a.ops.pop();a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function __spread(){for(var e=[],t=0;t1||resume(e,t)})})}function resume(e,t){try{step(o[e](t))}catch(e){settle(i[0][3],e)}}function step(e){e.value instanceof __await?Promise.resolve(e.value.v).then(fulfill,reject):settle(i[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){e(t),i.shift(),i.length&&resume(i[0][0],i[0][1])}}function __asyncDelegator(e){var t,r;return t={},verb("next"),verb("throw",function(e){throw e}),verb("return"),t[Symbol.iterator]=function(){return this},t;function verb(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:__await(e[n](t)),done:"return"===n}:o?o(t):t}:o}}function __asyncValues(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=__values(e),t={},verb("next"),verb("throw"),verb("return"),t[Symbol.asyncIterator]=function(){return this},t);function verb(r){t[r]=e[r]&&function(t){return new Promise(function(n,o){settle(n,o,(t=e[r](t)).done,t.value)})}}function settle(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}}function __makeTemplateObject(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var o=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function __importStar(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t}function __importDefault(e){return e&&e.__esModule?e:{default:e}}function __classPrivateFieldGet(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function __classPrivateFieldSet(e,t,r,n,o){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!o)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}},37901:function(e){e.exports=uid;function uid(e){return e=e||7,Math.random().toString(35).substr(2,e)}},42302:function(e,t,r){"use strict";let n;r.d(t,{A:function(){return esm_browser_v4}});var o={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let i=new Uint8Array(16);function rng(){if(!n){n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto);if(!n)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")}return n(i)}let a=[];for(let e=0;e<256;++e)a.push((e+256).toString(16).slice(1));function unsafeStringify(e,t=0){return a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]}var esm_browser_v4=function(e,t,r){if(o.randomUUID&&!t&&!e)return o.randomUUID();let n=(e=e||{}).random||(e.rng||rng)();n[6]=15&n[6]|64;n[8]=63&n[8]|128;if(t){r=r||0;for(let e=0;e<16;++e)t[r+e]=n[e];return t}return unsafeStringify(n)}},90905:function(e,t,r){"use strict";r.d(t,{GA:function(){return packUserNavigated}});let packUserNavigated=e=>({...e,"@type":"type.googleapis.com/chesscom.navigation.v1.UserNavigated"})},99418:function(e,t,r){"use strict";r.d(t,{A:function(){return Y}});/*! @license DOMPurify 3.2.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.5/LICENSE */let{entries:n,setPrototypeOf:o,isFrozen:i,getPrototypeOf:a,getOwnPropertyDescriptor:s}=Object,{freeze:u,seal:c,create:l}=Object,{apply:f,construct:p}="undefined"!=typeof Reflect&&Reflect;u||(u=function freeze(e){return e});c||(c=function seal(e){return e});f||(f=function apply(e,t,r){return e.apply(t,r)});p||(p=function construct(e,t){return new e(...t)});let d=unapply(Array.prototype.forEach),h=unapply(Array.prototype.lastIndexOf),g=unapply(Array.prototype.pop),m=unapply(Array.prototype.push),y=unapply(Array.prototype.splice),v=unapply(String.prototype.toLowerCase),b=unapply(String.prototype.toString),_=unapply(String.prototype.match),w=unapply(String.prototype.replace),T=unapply(String.prototype.indexOf),S=unapply(String.prototype.trim),A=unapply(Object.prototype.hasOwnProperty),k=unapply(RegExp.prototype.test),O=unconstruct(TypeError);function unapply(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;o2&&void 0!==arguments[2]?arguments[2]:v;o&&o(e,null);let n=t.length;for(;n--;){let o=t[n];if("string"==typeof o){let e=r(o);if(e!==o){i(t)||(t[n]=e);o=e}}e[o]=!0}return e}function cleanArray(e){for(let t=0;t/gm),V=c(/\$\{[\w\W]*/gm),q=c(/^data-[\-\w.\u00B7-\uFFFF]+$/),H=c(/^aria-[\-\w]+$/),W=c(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),z=c(/^(?:\w+script|data):/i),K=c(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),G=c(/^html$/i);var $=/*#__PURE__*/Object.freeze({__proto__:null,ARIA_ATTR:H,ATTR_WHITESPACE:K,CUSTOM_ELEMENT:c(/^[a-z][.\w]*(-[.\w]+)+$/i),DATA_ATTR:q,DOCTYPE_NAME:G,ERB_EXPR:U,IS_ALLOWED_URI:W,IS_SCRIPT_OR_DATA:z,MUSTACHE_EXPR:B,TMPLIT_EXPR:V});let J={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},_createTrustedTypesPolicy=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let r=null,n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(r=t.getAttribute(n));let o="dompurify"+(r?"#"+r:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){console.warn("TrustedTypes policy "+o+" could not be created.");return null}},_createHooksMap=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function createDOMPurify(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return"undefined"==typeof window?null:window}(),DOMPurify=e=>createDOMPurify(e);DOMPurify.version="3.2.5";DOMPurify.removed=[];if(!t||!t.document||t.document.nodeType!==J.document||!t.Element)return DOMPurify.isSupported=!1,DOMPurify;let{document:r}=t,o=r,i=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:c,Element:f,NodeFilter:p,NamedNodeMap:B=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:U,DOMParser:V,trustedTypes:q}=t,H=f.prototype,z=lookupGetter(H,"cloneNode"),K=lookupGetter(H,"remove"),Y=lookupGetter(H,"nextSibling"),X=lookupGetter(H,"childNodes"),Q=lookupGetter(H,"parentNode");if("function"==typeof s){let e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let Z="",{implementation:ee,createNodeIterator:et,createDocumentFragment:er,getElementsByTagName:en}=r,{importNode:eo}=o,ei=_createHooksMap();DOMPurify.isSupported="function"==typeof n&&"function"==typeof Q&&ee&&void 0!==ee.createHTMLDocument;let{MUSTACHE_EXPR:ea,ERB_EXPR:es,TMPLIT_EXPR:eu,DATA_ATTR:ec,ARIA_ATTR:el,IS_SCRIPT_OR_DATA:ef,ATTR_WHITESPACE:ep,CUSTOM_ELEMENT:ed}=$,{IS_ALLOWED_URI:eh}=$,eg=null,em=addToSet({},[...x,...C,...R,...N,...P]),ey=null,ev=addToSet({},[...M,...L,...j,...F]),eb=Object.seal(l(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),e_=null,ew=null,eT=!0,eS=!0,eE=!1,eA=!0,ek=!1,eO=!0,ex=!1,eC=!1,eR=!1,eD=!1,eN=!1,eI=!1,eP=!0,eM=!1,eL=!0,ej=!1,eF={},eB=null,eU=addToSet({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),eV=null,eq=addToSet({},["audio","video","img","source","image","track"]),eH=null,eW=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ez="http://www.w3.org/1998/Math/MathML",eK="http://www.w3.org/2000/svg",eG="http://www.w3.org/1999/xhtml",e$=eG,eJ=!1,eY=null,eX=addToSet({},[ez,eK,eG],b),eQ=addToSet({},["mi","mo","mn","ms","mtext"]),eZ=addToSet({},["annotation-xml"]),e0=addToSet({},["title","style","font","a","script"]),e1=null,e2=["application/xhtml+xml","text/html"],e4=null,e6=null,e3=r.createElement("form"),isRegexOrFunction=function(e){return e instanceof RegExp||e instanceof Function},_parseConfig=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e6||e6!==t){t&&"object"==typeof t||(t={});t=clone(t);e4="application/xhtml+xml"===(e1=-1===e2.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE)?b:v;eg=A(t,"ALLOWED_TAGS")?addToSet({},t.ALLOWED_TAGS,e4):em;ey=A(t,"ALLOWED_ATTR")?addToSet({},t.ALLOWED_ATTR,e4):ev;eY=A(t,"ALLOWED_NAMESPACES")?addToSet({},t.ALLOWED_NAMESPACES,b):eX;eH=A(t,"ADD_URI_SAFE_ATTR")?addToSet(clone(eW),t.ADD_URI_SAFE_ATTR,e4):eW;eV=A(t,"ADD_DATA_URI_TAGS")?addToSet(clone(eq),t.ADD_DATA_URI_TAGS,e4):eq;eB=A(t,"FORBID_CONTENTS")?addToSet({},t.FORBID_CONTENTS,e4):eU;e_=A(t,"FORBID_TAGS")?addToSet({},t.FORBID_TAGS,e4):{};ew=A(t,"FORBID_ATTR")?addToSet({},t.FORBID_ATTR,e4):{};eF=!!A(t,"USE_PROFILES")&&t.USE_PROFILES;eT=!1!==t.ALLOW_ARIA_ATTR;eS=!1!==t.ALLOW_DATA_ATTR;eE=t.ALLOW_UNKNOWN_PROTOCOLS||!1;eA=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR;ek=t.SAFE_FOR_TEMPLATES||!1;eO=!1!==t.SAFE_FOR_XML;ex=t.WHOLE_DOCUMENT||!1;eD=t.RETURN_DOM||!1;eN=t.RETURN_DOM_FRAGMENT||!1;eI=t.RETURN_TRUSTED_TYPE||!1;eR=t.FORCE_BODY||!1;eP=!1!==t.SANITIZE_DOM;eM=t.SANITIZE_NAMED_PROPS||!1;eL=!1!==t.KEEP_CONTENT;ej=t.IN_PLACE||!1;eh=t.ALLOWED_URI_REGEXP||W;e$=t.NAMESPACE||eG;eQ=t.MATHML_TEXT_INTEGRATION_POINTS||eQ;eZ=t.HTML_INTEGRATION_POINTS||eZ;eb=t.CUSTOM_ELEMENT_HANDLING||{};t.CUSTOM_ELEMENT_HANDLING&&isRegexOrFunction(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(eb.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck);t.CUSTOM_ELEMENT_HANDLING&&isRegexOrFunction(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(eb.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck);t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(eb.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements);ek&&(eS=!1);eN&&(eD=!0);if(eF){eg=addToSet({},P);ey=[];if(!0===eF.html){addToSet(eg,x);addToSet(ey,M)}if(!0===eF.svg){addToSet(eg,C);addToSet(ey,L);addToSet(ey,F)}if(!0===eF.svgFilters){addToSet(eg,R);addToSet(ey,L);addToSet(ey,F)}if(!0===eF.mathMl){addToSet(eg,N);addToSet(ey,j);addToSet(ey,F)}}if(t.ADD_TAGS){eg===em&&(eg=clone(eg));addToSet(eg,t.ADD_TAGS,e4)}if(t.ADD_ATTR){ey===ev&&(ey=clone(ey));addToSet(ey,t.ADD_ATTR,e4)}t.ADD_URI_SAFE_ATTR&&addToSet(eH,t.ADD_URI_SAFE_ATTR,e4);if(t.FORBID_CONTENTS){eB===eU&&(eB=clone(eB));addToSet(eB,t.FORBID_CONTENTS,e4)}eL&&(eg["#text"]=!0);ex&&addToSet(eg,["html","head","body"]);if(eg.table){addToSet(eg,["tbody"]);delete e_.tbody}if(t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw O('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw O('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Z=(e=t.TRUSTED_TYPES_POLICY).createHTML("")}else{void 0===e&&(e=_createTrustedTypesPolicy(q,i));null!==e&&"string"==typeof Z&&(Z=e.createHTML(""))}u&&u(t);e6=t}},e5=addToSet({},[...C,...R,...D]),e8=addToSet({},[...N,...I]),_checkValidNamespace=function(e){let t=Q(e);t&&t.tagName||(t={namespaceURI:e$,tagName:"template"});let r=v(e.tagName),n=v(t.tagName);return!!eY[e.namespaceURI]&&(e.namespaceURI===eK?t.namespaceURI===eG?"svg"===r:t.namespaceURI===ez?"svg"===r&&("annotation-xml"===n||eQ[n]):!!e5[r]:e.namespaceURI===ez?t.namespaceURI===eG?"math"===r:t.namespaceURI===eK?"math"===r&&eZ[n]:!!e8[r]:e.namespaceURI===eG?(t.namespaceURI!==eK||!!eZ[n])&&(t.namespaceURI!==ez||!!eQ[n])&&!e8[r]&&(e0[r]||!e5[r]):"application/xhtml+xml"===e1&&!!eY[e.namespaceURI])},_forceRemove=function(e){m(DOMPurify.removed,{element:e});try{Q(e).removeChild(e)}catch(t){K(e)}},_removeAttribute=function(e,t){try{m(DOMPurify.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){m(DOMPurify.removed,{attribute:null,from:t})}t.removeAttribute(e);if("is"===e){if(eD||eN)try{_forceRemove(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}}},_initDocument=function(t){let n=null,o=null;if(eR)t=""+t;else{let e=_(t,/^[\r\n\t ]+/);o=e&&e[0]}"application/xhtml+xml"===e1&&e$===eG&&(t=''+t+"");let i=e?e.createHTML(t):t;if(e$===eG)try{n=new V().parseFromString(i,e1)}catch(e){}if(!n||!n.documentElement){n=ee.createDocument(e$,"template",null);try{n.documentElement.innerHTML=eJ?Z:i}catch(e){}}let a=n.body||n.documentElement;return(t&&o&&a.insertBefore(r.createTextNode(o),a.childNodes[0]||null),e$===eG)?en.call(n,ex?"html":"body")[0]:ex?n.documentElement:a},_createNodeIterator=function(e){return et.call(e.ownerDocument||e,e,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT|p.SHOW_PROCESSING_INSTRUCTION|p.SHOW_CDATA_SECTION,null)},_isClobbered=function(e){return e instanceof U&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof B)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},_isNode=function(e){return"function"==typeof c&&e instanceof c};function _executeHooks(e,t,r){d(e,e=>{e.call(DOMPurify,t,r,e6)})}let _sanitizeElements=function(e){let t=null;_executeHooks(ei.beforeSanitizeElements,e,null);if(_isClobbered(e))return _forceRemove(e),!0;let r=e4(e.nodeName);_executeHooks(ei.uponSanitizeElement,e,{tagName:r,allowedTags:eg});if(e.hasChildNodes()&&!_isNode(e.firstElementChild)&&k(/<[/\w!]/g,e.innerHTML)&&k(/<[/\w!]/g,e.textContent)||e.nodeType===J.progressingInstruction||eO&&e.nodeType===J.comment&&k(/<[/\w]/g,e.data))return _forceRemove(e),!0;if(!eg[r]||e_[r]){if(!e_[r]&&_isBasicCustomElement(r)&&(eb.tagNameCheck instanceof RegExp&&k(eb.tagNameCheck,r)||eb.tagNameCheck instanceof Function&&eb.tagNameCheck(r)))return!1;if(eL&&!eB[r]){let t=Q(e)||e.parentNode,r=X(e)||e.childNodes;if(r&&t){let n=r.length;for(let o=n-1;o>=0;--o){let n=z(r[o],!0);n.__removalCount=(e.__removalCount||0)+1;t.insertBefore(n,Y(e))}}}return _forceRemove(e),!0}if(e instanceof f&&!_checkValidNamespace(e)||("noscript"===r||"noembed"===r||"noframes"===r)&&k(/<\/no(script|embed|frames)/i,e.innerHTML))return _forceRemove(e),!0;if(ek&&e.nodeType===J.text){t=e.textContent;d([ea,es,eu],e=>{t=w(t,e," ")});if(e.textContent!==t){m(DOMPurify.removed,{element:e.cloneNode()});e.textContent=t}}return _executeHooks(ei.afterSanitizeElements,e,null),!1},_isValidAttribute=function(e,t,n){if(eP&&("id"===t||"name"===t)&&(n in r||n in e3))return!1;if(eS&&!ew[t]&&k(ec,t));else if(eT&&k(el,t));else if(!ey[t]||ew[t]){if(!(_isBasicCustomElement(e)&&(eb.tagNameCheck instanceof RegExp&&k(eb.tagNameCheck,e)||eb.tagNameCheck instanceof Function&&eb.tagNameCheck(e))&&(eb.attributeNameCheck instanceof RegExp&&k(eb.attributeNameCheck,t)||eb.attributeNameCheck instanceof Function&&eb.attributeNameCheck(t))||"is"===t&&eb.allowCustomizedBuiltInElements&&(eb.tagNameCheck instanceof RegExp&&k(eb.tagNameCheck,n)||eb.tagNameCheck instanceof Function&&eb.tagNameCheck(n))))return!1}else if(eH[t]);else if(k(eh,w(n,ep,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===T(n,"data:")&&eV[e]);else if(eE&&!k(ef,w(n,ep,"")));else if(n)return!1;return!0},_isBasicCustomElement=function(e){return"annotation-xml"!==e&&_(e,ed)},_sanitizeAttributes=function(t){_executeHooks(ei.beforeSanitizeAttributes,t,null);let{attributes:r}=t;if(!r||_isClobbered(t))return;let n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ey,forceKeepAttr:void 0},o=r.length;for(;o--;){let{name:i,namespaceURI:a,value:s}=r[o],u=e4(i),c="value"===i?s:S(s);n.attrName=u;n.attrValue=c;n.keepAttr=!0;n.forceKeepAttr=void 0;_executeHooks(ei.uponSanitizeAttribute,t,n);c=n.attrValue;if(eM&&("id"===u||"name"===u)){_removeAttribute(i,t);c="user-content-"+c}if(eO&&k(/((--!?|])>)|<\/(style|title)/i,c)){_removeAttribute(i,t);continue}if(n.forceKeepAttr)continue;_removeAttribute(i,t);if(!n.keepAttr)continue;if(!eA&&k(/\/>/i,c)){_removeAttribute(i,t);continue}ek&&d([ea,es,eu],e=>{c=w(c,e," ")});let l=e4(t.nodeName);if(_isValidAttribute(l,u,c)){if(e&&"object"==typeof q&&"function"==typeof q.getAttributeType){if(a);else switch(q.getAttributeType(l,u)){case"TrustedHTML":c=e.createHTML(c);break;case"TrustedScriptURL":c=e.createScriptURL(c)}}try{a?t.setAttributeNS(a,i,c):t.setAttribute(i,c);_isClobbered(t)?_forceRemove(t):g(DOMPurify.removed)}catch(e){}}}_executeHooks(ei.afterSanitizeAttributes,t,null)},_sanitizeShadowDOM=function _sanitizeShadowDOM(e){let t=null,r=_createNodeIterator(e);_executeHooks(ei.beforeSanitizeShadowDOM,e,null);for(;t=r.nextNode();){_executeHooks(ei.uponSanitizeShadowNode,t,null);_sanitizeElements(t);_sanitizeAttributes(t);t.content instanceof a&&_sanitizeShadowDOM(t.content)}_executeHooks(ei.afterSanitizeShadowDOM,e,null)};return DOMPurify.sanitize=function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,i=null,s=null,u=null;(eJ=!t)&&(t="\x3c!--\x3e");if("string"!=typeof t&&!_isNode(t)){if("function"==typeof t.toString){t=t.toString();if("string"!=typeof t)throw O("dirty is not a string, aborting")}else throw O("toString is not a function")}if(!DOMPurify.isSupported)return t;eC||_parseConfig(r);DOMPurify.removed=[];"string"==typeof t&&(ej=!1);if(ej){if(t.nodeName){let e=e4(t.nodeName);if(!eg[e]||e_[e])throw O("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof c)(i=(n=_initDocument("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType===J.element&&"BODY"===i.nodeName?n=i:"HTML"===i.nodeName?n=i:n.appendChild(i);else{if(!eD&&!ek&&!ex&&-1===t.indexOf("<"))return e&&eI?e.createHTML(t):t;n=_initDocument(t);if(!n)return eD?null:eI?Z:""}n&&eR&&_forceRemove(n.firstChild);let l=_createNodeIterator(ej?t:n);for(;s=l.nextNode();){_sanitizeElements(s);_sanitizeAttributes(s);s.content instanceof a&&_sanitizeShadowDOM(s.content)}if(ej)return t;if(eD){if(eN){u=er.call(n.ownerDocument);for(;n.firstChild;)u.appendChild(n.firstChild)}else u=n;return(ey.shadowroot||ey.shadowrootmode)&&(u=eo.call(o,u,!0)),u}let f=ex?n.outerHTML:n.innerHTML;return ex&&eg["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&k(G,n.ownerDocument.doctype.name)&&(f="\n"+f),ek&&d([ea,es,eu],e=>{f=w(f,e," ")}),e&&eI?e.createHTML(f):f},DOMPurify.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_parseConfig(e);eC=!0},DOMPurify.clearConfig=function(){e6=null;eC=!1},DOMPurify.isValidAttribute=function(e,t,r){return e6||_parseConfig({}),_isValidAttribute(e4(e),e4(t),r)},DOMPurify.addHook=function(e,t){"function"==typeof t&&m(ei[e],t)},DOMPurify.removeHook=function(e,t){if(void 0!==t){let r=h(ei[e],t);return -1===r?void 0:y(ei[e],r,1)[0]}return g(ei[e])},DOMPurify.removeHooks=function(e){ei[e]=[]},DOMPurify.removeAllHooks=function(){ei=_createHooksMap()},DOMPurify}var Y=createDOMPurify()},596:function(e,t,r){"use strict";var n=r(7118);let o={};function filterAttrs(e){return Object.keys(e).reduce((t,r)=>(!1!==e[r]&&null!==e[r]&&void 0!==e[r]&&(t[r]=e[r]),t),{})}function setTitle(e,t){let r=e.getElementsByTagName("title");if(r.length)r[0].textContent=t;else{let r=document.createElementNS("http://www.w3.org/2000/svg","title");r.textContent=t;e.insertBefore(r,e.firstChild)}}function makePromiseState(e){if(e.getIsPending)return e;let t=!0,r=e.then(e=>(t=!1,e),e=>{t=!1;throw e});return r.getIsPending=function getIsPending(){return t},r}t.A={name:"InlineSvg",inheritAttrs:!1,render(){return this.svgElSource?(0,n.h)("svg",Object.assign({},this.getSvgAttrs(this.svgElSource),filterAttrs(this.$attrs),{innerHTML:this.getSvgContent(this.svgElSource)})):null},props:{src:{type:String,required:!0},title:{type:String},transformSource:{type:Function,default:e=>e},keepDuringLoading:{type:Boolean,default:!0}},emits:["loaded","unloaded","error"],data:()=>({svgElSource:null,request:void 0}),watch:{src(e){this.getSource(e)}},mounted(){this.getSource(this.src)},methods:{getSvgAttrs(e){let t={},r=e.attributes;if(!r)return t;for(let e=r.length-1;e>=0;e--)t[r[e].name]=r[e].value;return t},getSvgContent(e){return e=e.cloneNode(!0),e=this.transformSource(e),this.title&&setTitle(e,this.title),e.innerHTML},getSource(e){o[e]||(o[e]=this.download(e));if(this.svgElSource&&o[e].getIsPending()&&!this.keepDuringLoading){this.svgElSource=null;this.$emit("unloaded")}o[e].then(e=>{this.svgElSource=e;this.$nextTick(()=>{this.$emit("loaded",this.$el)})}).catch(t=>{if(this.svgElSource){this.svgElSource=null;this.$emit("unloaded")}delete o[e];this.$emit("error",t)})},download(e){return makePromiseState(new Promise((t,r)=>{let n=new XMLHttpRequest;n.open("GET",e,!0);this.request=n;n.onload=()=>{if(n.status>=200&&n.status<400)try{let e=new DOMParser().parseFromString(n.responseText,"text/xml").getElementsByTagName("svg")[0];e?t(e):r(Error('Loaded file is not valid SVG"'))}catch(e){r(e)}else r(Error("Error loading SVG"))};n.onerror=r;n.send()}))}}}}}]);