Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
2.1 MB
1
Indexable
!function(e){function t(t){for(var n,a,i=t[0],s=t[1],o=0,c=[];o<i.length;o++)a=i[o],Object.prototype.hasOwnProperty.call(r,a)&&r[a]&&c.push(r[a][0]),r[a]=0;for(n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n]);for(l&&l(t);c.length;)c.shift()()}var n={},r={4:0};function a(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,a),r.l=!0,r.exports}a.e=function(e){var t=[],n=r[e];if(0!==n)if(n)t.push(n[2]);else{var i=new Promise((function(t,a){n=r[e]=[t,a]}));t.push(n[2]=i);var s,o=document.createElement("script");o.charset="utf-8",o.timeout=120,a.nc&&o.setAttribute("nonce",a.nc),o.src=function(e){return a.p+"js/background-"+e+".chunk.js"}(e);var l=new Error;s=function(t){o.onerror=o.onload=null,clearTimeout(c);var n=r[e];if(0!==n){if(n){var a=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+a+": "+i+")",l.name="ChunkLoadError",l.type=a,l.request=i,n[1](l)}r[e]=void 0}};var c=setTimeout((function(){s({type:"timeout",target:o})}),12e4);o.onerror=o.onload=s,document.head.appendChild(o)}return Promise.all(t)},a.m=e,a.c=n,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(n,r,function(t){return e[t]}.bind(null,r));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a.oe=function(e){throw console.error(e),e};var i=window.webpackJsonp=window.webpackJsonp||[],s=i.push.bind(i);i.push=t,i=i.slice();for(var o=0;o<i.length;o++)t(i[o]);var l=s;a(a.s=407)}([function(e,t,n){"use strict";e.exports=n(394)},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return i})),n.d(t,"e",(function(){return s})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return l}));
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
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

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function a(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function s(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function o(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return s}function l(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(o(arguments[t]));return e}},function(e,t,n){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function s(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,o,l=s(e),c=1;c<arguments.length;c++){for(var u in n=Object(arguments[c]))a.call(n,u)&&(l[u]=n[u]);if(r){o=r(n);for(var p=0;p<o.length;p++)i.call(n,o[p])&&(l[o[p]]=n[o[p]])}}return l}},function(e,t){e.exports=require("@termius/libtermius")},function(e,t,n){"use strict";const r=n(319),a=r.gt,i=r.lt,s=n(35).release,o=n(320);function l(){}function c(){const e=s().split(".");return`10.${e[0]-4}.${e[1]}`}l.prototype.renderer=function(){return"renderer"===process.type},l.prototype.main=function(){return"browser"===process.type},l.prototype.osx=l.prototype.macOS=function(){return"darwin"===process.platform},l.prototype.windows=function(){return"win32"===process.platform},l.prototype.linux=function(){return"linux"===process.platform},l.prototype.x86=function(){return"ia32"===process.arch},l.prototype.x64=function(){return"x64"===process.arch},l.prototype.production=function(){return!o},l.prototype.dev=function(){return o},l.prototype.sandbox=function(){return"APP_SANDBOX_CONTAINER_ID"in process.env},l.prototype.mas=function(){return!0===process.mas},l.prototype.windowsStore=function(){return!0===process.windowsStore},l.prototype.all=function(){const e=new Array(arguments.length);for(var t=0;t<e.length;t++)e[t]=arguments[t];if(e.length){for(t=0;t<e.length;t++)if(!e[t]())return!1;return!0}},l.prototype.none=function(){const e=new Array(arguments.length);for(var t=0;t<e.length;t++)e[t]=arguments[t];if(e.length){for(t=0;t<e.length;t++)if(e[t]())return!1;return!0}},l.prototype.one=function(){const e=new Array(arguments.length);for(var t=0;t<e.length;t++)e[t]=arguments[t];if(e.length){for(t=0;t<e.length;t++)if(e[t]())return!0;return!1}},l.prototype.release=function(e){if(this.osx())return e===c();if(this.windows()){e=e.split(".");const t=s().split(".");return 2===e.length?`${t[0]}.${t[1]}`==`${e[0]}.${e[1]}`:`${t[0]}.${t[1]}.${t[2]}`==`${e[0]}.${e[1]}.${e[2]}`}return null},l.prototype.gtRelease=function(e){if(this.osx())return a(e,c());if(this.windows()){e=e.split(".");const t=s().split(".");return 2===e.length?a(`${e[0]}.${e[1]}.0`,`${t[0]}.${t[1]}.0`):a(`${e[0]}.${e[1]}.${e[2]}`,`${t[0]}.${t[1]}.${t[2]}`)}return null},l.prototype.ltRelease=function(e){if(this.osx())return i(e,c());if(this.windows()){e=e.split(".");const t=s().split(".");return 2===e.length?i(`${e[0]}.${e[1]}.0`,`${t[0]}.${t[1]}.0`):i(`${e[0]}.${e[1]}.${e[2]}`,`${t[0]}.${t[1]}.${t[2]}`)}return null},e.exports=new l},,function(e,t,n){"use strict";function r(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return m(e,Error)}}function a(e){return"[object ErrorEvent]"===Object.prototype.toString.call(e)}function i(e){return"[object DOMError]"===Object.prototype.toString.call(e)}function s(e){return"[object DOMException]"===Object.prototype.toString.call(e)}function o(e){return"[object String]"===Object.prototype.toString.call(e)}function l(e){return null===e||"object"!=typeof e&&"function"!=typeof e}function c(e){return"[object Object]"===Object.prototype.toString.call(e)}function u(e){return"undefined"!=typeof Event&&m(e,Event)}function p(e){return"undefined"!=typeof Element&&m(e,Element)}function d(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function h(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function f(e){return c(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function m(e,t){try{return e instanceof t}catch(e){return!1}}n.d(t,"d",(function(){return r})),n.d(t,"e",(function(){return a})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s})),n.d(t,"k",(function(){return o})),n.d(t,"i",(function(){return l})),n.d(t,"h",(function(){return c})),n.d(t,"f",(function(){return u})),n.d(t,"c",(function(){return p})),n.d(t,"j",(function(){return d})),n.d(t,"m",(function(){return h})),n.d(t,"l",(function(){return f})),n.d(t,"g",(function(){return m}))},function(e,t){e.exports=require("electron")},function(e,t,n){var r=n(348),a=n(116)((function(e,t,n){r(e,t,n)}));e.exports=a},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){e.exports=n(236)},function(e,t){e.exports=require("path")},function(e,t,n){var r=n(262),a=n(301),i=n(17),s=n(9),o=n(307);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?s(e)?a(e[0],e[1]):r(e):o(e)}},function(e,t,n){var r=n(46),a=n(77),i=n(12);e.exports=function(e,t){var n={};return t=i(t,3),a(e,(function(e,a,i){r(n,a,t(e,a,i))})),n}},function(e,t,n){"use strict";n.d(t,"e",(function(){return i})),n.d(t,"j",(function(){return s})),n.d(t,"i",(function(){return o})),n.d(t,"d",(function(){return l})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return p})),n.d(t,"f",(function(){return d})),n.d(t,"h",(function(){return f})),n.d(t,"g",(function(){return m}));var r=n(69),a=(n(36),{});function i(){return Object(r.b)()?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:a}function s(){var e=i(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function o(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}function l(e){if(e.message)return e.message;if(e.exception&&e.exception.values&&e.exception.values[0]){var t=e.exception.values[0];return t.type&&t.value?t.type+": "+t.value:t.type||t.value||e.event_id||"<unknown>"}return e.event_id||"<unknown>"}function c(e){var t=i();if(!("console"in t))return e();var n=t.console,r={};["debug","info","warn","error","log","assert"].forEach((function(e){e in t.console&&n[e].__sentry_original__&&(r[e]=n[e],n[e]=n[e].__sentry_original__)}));var a=e();return Object.keys(r).forEach((function(e){n[e]=r[e]})),a}function u(e,t,n){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].value=e.exception.values[0].value||t||"",e.exception.values[0].type=e.exception.values[0].type||n||"Error"}function p(e,t){void 0===t&&(t={});try{e.exception.values[0].mechanism=e.exception.values[0].mechanism||{},Object.keys(t).forEach((function(n){e.exception.values[0].mechanism[n]=t[n]}))}catch(e){}}function d(){try{return document.location.href}catch(e){return""}}var h=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function f(e){var t=e.match(h)||[],n=parseInt(t[1],10),r=parseInt(t[2],10),a=parseInt(t[3],10);return{buildmetadata:t[5],major:isNaN(n)?void 0:n,minor:isNaN(r)?void 0:r,patch:isNaN(a)?void 0:a,prerelease:t[4]}}function m(e,t){if(!t)return 6e4;var n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+t);return isNaN(r)?6e4:r-e}},function(e,t,n){"use strict";n.d(t,"c",(function(){return c})),n.d(t,"f",(function(){return u})),n.d(t,"e",(function(){return h})),n.d(t,"g",(function(){return m})),n.d(t,"d",(function(){return S})),n.d(t,"b",(function(){return y})),n.d(t,"a",(function(){return g}));var r=n(1),a=n(126),i=n(6),s=function(){function e(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return e.prototype.memoize=function(e){if(this._hasWeakSet)return!!this._inner.has(e)||(this._inner.add(e),!1);for(var t=0;t<this._inner.length;t++){if(this._inner[t]===e)return!0}return this._inner.push(e),!1},e.prototype.unmemoize=function(e){if(this._hasWeakSet)this._inner.delete(e);else for(var t=0;t<this._inner.length;t++)if(this._inner[t]===e){this._inner.splice(t,1);break}},e}(),o=n(92),l=n(36);function c(e,t,n){if(t in e){var r=e[t],a=n(r);if("function"==typeof a)try{a.prototype=a.prototype||{},Object.defineProperties(a,{__sentry_original__:{enumerable:!1,value:r}})}catch(e){}e[t]=a}}function u(e){return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")}function p(e){if(Object(i.d)(e)){var t=e,n={message:t.message,name:t.name,stack:t.stack};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}if(Object(i.f)(e)){var s=e,o={};o.type=s.type;try{o.target=Object(i.c)(s.target)?Object(a.a)(s.target):Object.prototype.toString.call(s.target)}catch(e){o.target="<unknown>"}try{o.currentTarget=Object(i.c)(s.currentTarget)?Object(a.a)(s.currentTarget):Object.prototype.toString.call(s.currentTarget)}catch(e){o.currentTarget="<unknown>"}for(var r in"undefined"!=typeof CustomEvent&&Object(i.g)(e,CustomEvent)&&(o.detail=s.detail),s)Object.prototype.hasOwnProperty.call(s,r)&&(o[r]=s);return o}return e}function d(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}function h(e,t,n){void 0===t&&(t=3),void 0===n&&(n=102400);var r=S(e,t);return d(r)>n?h(e,t-1,n):r}function f(e,t){return"domain"===t&&e&&"object"==typeof e&&e._events?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":"undefined"!=typeof global&&e===global?"[Global]":"undefined"!=typeof window&&e===window?"[Window]":"undefined"!=typeof document&&e===document?"[Document]":Object(i.l)(e)?"[SyntheticEvent]":"number"==typeof e&&e!=e?"[NaN]":void 0===e?"[undefined]":"function"==typeof e?"[Function: "+Object(o.a)(e)+"]":e}function m(e,t,n,r){if(void 0===n&&(n=1/0),void 0===r&&(r=new s),0===n)return function(e){var t=Object.prototype.toString.call(e);if("string"==typeof e)return e;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var n=f(e);return Object(i.i)(n)?n:t}(t);if(null!=t&&"function"==typeof t.toJSON)return t.toJSON();var a=f(t,e);if(Object(i.i)(a))return a;var o=p(t),l=Array.isArray(t)?[]:{};if(r.memoize(t))return"[Circular ~]";for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(l[c]=m(c,o[c],n-1,r));return r.unmemoize(t),l}function S(e,t){try{return JSON.parse(JSON.stringify(e,(function(e,n){return m(e,n,t)})))}catch(e){return"**non-serializable**"}}function y(e,t){void 0===t&&(t=40);var n=Object.keys(p(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Object(l.d)(n[0],t);for(var r=n.length;r>0;r--){var a=n.slice(0,r).join(", ");if(!(a.length>t))return r===n.length?a:Object(l.d)(a,t)}return""}function g(e){var t,n;if(Object(i.h)(e)){var a=e,s={};try{for(var o=Object(r.e)(Object.keys(a)),l=o.next();!l.done;l=o.next()){var c=l.value;void 0!==a[c]&&(s[c]=g(a[c]))}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return s}return Array.isArray(e)?e.map(g):e}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(138),a=n(139);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var o=0;o<16;++o)t[i+o]=s[o];return t||a(s)}},function(e,t){e.exports=require("events")},function(e,t,n){var r=n(134),a="object"==typeof self&&self&&self.Object===Object&&self,i=r||a||Function("return this")();e.exports=i},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t){e.exports=require("fs/promises")},function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},function(e,t,n){"use strict";var r,a;function i(e){throw e}function s(e,t,n){4!==t.length&&i(new h.exception.invalid("invalid aes block size"));var r=e.a[n],a=t[0]^r[0],s=t[n?3:1]^r[1],o=t[2]^r[2];t=t[n?1:3]^r[3];var l,c,u,p,d=r.length/4-2,f=4,m=[0,0,0,0];e=(l=e.m[n])[0];var S=l[1],y=l[2],g=l[3],v=l[4];for(p=0;d>p;p++)l=e[a>>>24]^S[s>>16&255]^y[o>>8&255]^g[255&t]^r[f],c=e[s>>>24]^S[o>>16&255]^y[t>>8&255]^g[255&a]^r[f+1],u=e[o>>>24]^S[t>>16&255]^y[a>>8&255]^g[255&s]^r[f+2],t=e[t>>>24]^S[a>>16&255]^y[s>>8&255]^g[255&o]^r[f+3],f+=4,a=l,s=c,o=u;for(p=0;4>p;p++)m[n?3&-p:p]=v[a>>>24]<<24^v[s>>16&255]<<16^v[o>>8&255]<<8^v[255&t]^r[f++],l=a,a=s,s=o,o=t,t=l;return m}function o(e,t){var n,r=h.random.B[e],a=[];for(n in r)r.hasOwnProperty(n)&&a.push(r[n]);for(n=0;n<a.length;n++)a[n](t)}function l(e){e.a=c(e).concat(c(e)),e.C=new h.cipher.aes(e.a)}function c(e){for(var t=0;4>t&&(e.i[t]=e.i[t]+1|0,!e.i[t]);t++);return e.C.encrypt(e.i)}var u,p=void 0,d=!1,h={cipher:{},hash:{},keyexchange:{},mode:{},misc:{},codec:{},exception:{corrupt:function(e){this.toString=function(){return"CORRUPT: "+this.message},this.message=e},invalid:function(e){this.toString=function(){return"INVALID: "+this.message},this.message=e},bug:function(e){this.toString=function(){return"BUG: "+this.message},this.message=e},notReady:function(e){this.toString=function(){return"NOT READY: "+this.message},this.message=e}}};e.exports&&(e.exports=h),h.cipher.aes=function(e){this.m[0][0][0]||this.G();var t,n,r,a,s=this.m[0][4],o=this.m[1],l=1;for(4!==(t=e.length)&&6!==t&&8!==t&&i(new h.exception.invalid("invalid aes key size")),this.a=[r=e.slice(0),a=[]],e=t;4*t+28>e;e++)n=r[e-1],(0==e%t||8===t&&4==e%t)&&(n=s[n>>>24]<<24^s[n>>16&255]<<16^s[n>>8&255]<<8^s[255&n],0==e%t&&(n=n<<8^n>>>24^l<<24,l=l<<1^283*(l>>7))),r[e]=r[e-t]^n;for(t=0;e;t++,e--)n=r[3&t?e:e-4],a[t]=4>=e||4>t?n:o[0][s[n>>>24]]^o[1][s[n>>16&255]]^o[2][s[n>>8&255]]^o[3][s[255&n]]},h.cipher.aes.prototype={encrypt:function(e){return s(this,e,0)},decrypt:function(e){return s(this,e,1)},m:[[[],[],[],[],[]],[[],[],[],[],[]]],G:function(){var e,t,n,r,a,i,s,o=this.m[0],l=this.m[1],c=o[4],u=l[4],p=[],d=[];for(e=0;256>e;e++)d[(p[e]=e<<1^283*(e>>7))^e]=e;for(t=n=0;!c[t];t^=r||1,n=d[n]||1)for(i=(i=n^n<<1^n<<2^n<<3^n<<4)>>8^255&i^99,c[t]=i,u[i]=t,s=16843009*(a=p[e=p[r=p[t]]])^65537*e^257*r^16843008*t,a=257*p[i]^16843008*i,e=0;4>e;e++)o[e][t]=a=a<<24^a>>>8,l[e][i]=s=s<<24^s>>>8;for(e=0;5>e;e++)o[e]=o[e].slice(0),l[e]=l[e].slice(0)}},h.bitArray={bitSlice:function(e,t,n){return e=h.bitArray.P(e.slice(t/32),32-(31&t)).slice(1),n===p?e:h.bitArray.clamp(e,n-t)},extract:function(e,t,n){var r=Math.floor(-t-n&31);return(-32&(t+n-1^t)?e[t/32|0]<<32-r^e[t/32+1|0]>>>r:e[t/32|0]>>>r)&(1<<n)-1},concat:function(e,t){if(0===e.length||0===t.length)return e.concat(t);var n=e[e.length-1],r=h.bitArray.getPartial(n);return 32===r?e.concat(t):h.bitArray.P(t,r,0|n,e.slice(0,e.length-1))},bitLength:function(e){var t=e.length;return 0===t?0:32*(t-1)+h.bitArray.getPartial(e[t-1])},clamp:function(e,t){if(32*e.length<t)return e;var n=(e=e.slice(0,Math.ceil(t/32))).length;return t&=31,n>0&&t&&(e[n-1]=h.bitArray.partial(t,e[n-1]&2147483648>>t-1,1)),e},partial:function(e,t,n){return 32===e?t:(n?0|t:t<<32-e)+1099511627776*e},getPartial:function(e){return Math.round(e/1099511627776)||32},equal:function(e,t){if(h.bitArray.bitLength(e)!==h.bitArray.bitLength(t))return d;var n,r=0;for(n=0;n<e.length;n++)r|=e[n]^t[n];return 0===r},P:function(e,t,n,r){var a;for(a=0,r===p&&(r=[]);t>=32;t-=32)r.push(n),n=0;if(0===t)return r.concat(e);for(a=0;a<e.length;a++)r.push(n|e[a]>>>t),n=e[a]<<32-t;return a=e.length?e[e.length-1]:0,e=h.bitArray.getPartial(a),r.push(h.bitArray.partial(t+e&31,t+e>32?n:r.pop(),1)),r},g:function(e,t){return[e[0]^t[0],e[1]^t[1],e[2]^t[2],e[3]^t[3]]}},h.codec.utf8String={fromBits:function(e){var t,n,r="",a=h.bitArray.bitLength(e);for(t=0;a/8>t;t++)0==(3&t)&&(n=e[t/4]),r+=String.fromCharCode(n>>>24),n<<=8;return decodeURIComponent(escape(r))},toBits:function(e){e=unescape(encodeURIComponent(e));var t,n=[],r=0;for(t=0;t<e.length;t++)r=r<<8|e.charCodeAt(t),3==(3&t)&&(n.push(r),r=0);return 3&t&&n.push(h.bitArray.partial(8*(3&t),r)),n}},h.codec.hex={fromBits:function(e){var t,n="";for(t=0;t<e.length;t++)n+=(0xf00000000000+(0|e[t])).toString(16).substr(4);return n.substr(0,h.bitArray.bitLength(e)/4)},toBits:function(e){var t,n,r=[];for(n=(e=e.replace(/\s|0x/g,"")).length,e+="00000000",t=0;t<e.length;t+=8)r.push(0^parseInt(e.substr(t,8),16));return h.bitArray.clamp(r,4*n)}},h.codec.base64={K:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fromBits:function(e,t,n){var r="",a=0,i=h.codec.base64.K,s=0,o=h.bitArray.bitLength(e);for(n&&(i=i.substr(0,62)+"-_"),n=0;6*r.length<o;)r+=i.charAt((s^e[n]>>>a)>>>26),6>a?(s=e[n]<<6-a,a+=26,n++):(s<<=6,a-=6);for(;3&r.length&&!t;)r+="=";return r},toBits:function(e,t){e=e.replace(/\s|=/g,"");var n,r,a=[],s=0,o=h.codec.base64.K,l=0;for(t&&(o=o.substr(0,62)+"-_"),n=0;n<e.length;n++)0>(r=o.indexOf(e.charAt(n)))&&i(new h.exception.invalid("this isn't base64!")),s>26?(s-=26,a.push(l^r>>>s),l=r<<32-s):l^=r<<32-(s+=6);return 56&s&&a.push(h.bitArray.partial(56&s,l,1)),a}},h.codec.base64url={fromBits:function(e){return h.codec.base64.fromBits(e,1,1)},toBits:function(e){return h.codec.base64.toBits(e,1)}},h.hash.sha256=function(e){this.a[0]||this.G(),e?(this.d=e.d.slice(0),this.c=e.c.slice(0),this.b=e.b):this.reset()},h.hash.sha256.hash=function(e){return(new h.hash.sha256).update(e).finalize()},h.hash.sha256.prototype={blockSize:512,reset:function(){return this.d=this.s.slice(0),this.c=[],this.b=0,this},update:function(e){"string"==typeof e&&(e=h.codec.utf8String.toBits(e));var t,n=this.c=h.bitArray.concat(this.c,e);for(t=this.b,e=this.b=t+h.bitArray.bitLength(e),t=512+t&-512;e>=t;t+=512)this.o(n.splice(0,16));return this},finalize:function(){var e,t=this.c,n=this.d;for(e=(t=h.bitArray.concat(t,[h.bitArray.partial(1,1)])).length+2;15&e;e++)t.push(0);for(t.push(Math.floor(this.b/4294967296)),t.push(0|this.b);t.length;)this.o(t.splice(0,16));return this.reset(),n},s:[],a:[],G:function(){function e(e){return 4294967296*(e-Math.floor(e))|0}var t,n=0,r=2;e:for(;64>n;r++){for(t=2;r>=t*t;t++)if(0==r%t)continue e;8>n&&(this.s[n]=e(Math.pow(r,.5))),this.a[n]=e(Math.pow(r,1/3)),n++}},o:function(e){var t,n,r=e.slice(0),a=this.d,i=this.a,s=a[0],o=a[1],l=a[2],c=a[3],u=a[4],p=a[5],d=a[6],h=a[7];for(e=0;64>e;e++)16>e?t=r[e]:(t=r[e+1&15],n=r[e+14&15],t=r[15&e]=(t>>>7^t>>>18^t>>>3^t<<25^t<<14)+(n>>>17^n>>>19^n>>>10^n<<15^n<<13)+r[15&e]+r[e+9&15]|0),t=t+h+(u>>>6^u>>>11^u>>>25^u<<26^u<<21^u<<7)+(d^u&(p^d))+i[e],h=d,d=p,p=u,u=c+t|0,c=l,l=o,s=t+((o=s)&l^c&(o^l))+(o>>>2^o>>>13^o>>>22^o<<30^o<<19^o<<10)|0;a[0]=a[0]+s|0,a[1]=a[1]+o|0,a[2]=a[2]+l|0,a[3]=a[3]+c|0,a[4]=a[4]+u|0,a[5]=a[5]+p|0,a[6]=a[6]+d|0,a[7]=a[7]+h|0}},h.hash.sha1=function(e){e?(this.d=e.d.slice(0),this.c=e.c.slice(0),this.b=e.b):this.reset()},h.hash.sha1.hash=function(e){return(new h.hash.sha1).update(e).finalize()},h.hash.sha1.prototype={blockSize:512,reset:function(){return this.d=this.s.slice(0),this.c=[],this.b=0,this},update:function(e){"string"==typeof e&&(e=h.codec.utf8String.toBits(e));var t,n=this.c=h.bitArray.concat(this.c,e);for(t=this.b,e=this.b=t+h.bitArray.bitLength(e),t=this.blockSize+t&-this.blockSize;e>=t;t+=this.blockSize)this.o(n.splice(0,16));return this},finalize:function(){var e,t=this.c,n=this.d;for(e=(t=h.bitArray.concat(t,[h.bitArray.partial(1,1)])).length+2;15&e;e++)t.push(0);for(t.push(Math.floor(this.b/4294967296)),t.push(0|this.b);t.length;)this.o(t.splice(0,16));return this.reset(),n},s:[1732584193,4023233417,2562383102,271733878,3285377520],a:[1518500249,1859775393,2400959708,3395469782],o:function(e){var t,n,r,a,i,s,o=e.slice(0),l=this.d;for(n=l[0],r=l[1],a=l[2],i=l[3],s=l[4],e=0;79>=e;e++)e>=16&&(o[e]=(o[e-3]^o[e-8]^o[e-14]^o[e-16])<<1|(o[e-3]^o[e-8]^o[e-14]^o[e-16])>>>31),t=(n<<5|n>>>27)+(t=19>=e?r&a|~r&i:39>=e?r^a^i:59>=e?r&a|r&i|a&i:79>=e?r^a^i:p)+s+o[e]+this.a[Math.floor(e/20)]|0,s=i,i=a,a=r<<30|r>>>2,r=n,n=t;l[0]=l[0]+n|0,l[1]=l[1]+r|0,l[2]=l[2]+a|0,l[3]=l[3]+i|0,l[4]=l[4]+s|0}},h.mode.ccm={name:"ccm",encrypt:function(e,t,n,r,a){var s,o=t.slice(0),l=h.bitArray,c=l.bitLength(n)/8,u=l.bitLength(o)/8;for(a=a||64,r=r||[],7>c&&i(new h.exception.invalid("ccm: iv must be at least 7 bytes")),s=2;4>s&&u>>>8*s;s++);return 15-c>s&&(s=15-c),n=l.clamp(n,8*(15-s)),t=h.mode.ccm.M(e,t,n,r,a,s),o=h.mode.ccm.p(e,o,n,t,a,s),l.concat(o.data,o.tag)},decrypt:function(e,t,n,r,a){a=a||64,r=r||[];var s=h.bitArray,o=s.bitLength(n)/8,l=s.bitLength(t),c=s.clamp(t,l-a),u=s.bitSlice(t,l-a);l=(l-a)/8;for(7>o&&i(new h.exception.invalid("ccm: iv must be at least 7 bytes")),t=2;4>t&&l>>>8*t;t++);return 15-o>t&&(t=15-o),n=s.clamp(n,8*(15-t)),c=h.mode.ccm.p(e,c,n,u,a,t),e=h.mode.ccm.M(e,c.data,n,r,a,t),s.equal(c.tag,e)||i(new h.exception.corrupt("ccm: tag doesn't match")),c.data},M:function(e,t,n,r,a,s){var o=[],l=h.bitArray,c=l.g;if(((a/=8)%2||4>a||a>16)&&i(new h.exception.invalid("ccm: invalid tag length")),(4294967295<r.length||4294967295<t.length)&&i(new h.exception.bug("ccm: can't deal with 4GiB or more data")),s=[l.partial(8,(r.length?64:0)|a-2<<2|s-1)],(s=l.concat(s,n))[3]|=l.bitLength(t)/8,s=e.encrypt(s),r.length)for(65279>=(n=l.bitLength(r)/8)?o=[l.partial(16,n)]:4294967295>=n&&(o=l.concat([l.partial(16,65534)],[n])),o=l.concat(o,r),r=0;r<o.length;r+=4)s=e.encrypt(c(s,o.slice(r,r+4).concat([0,0,0])));for(r=0;r<t.length;r+=4)s=e.encrypt(c(s,t.slice(r,r+4).concat([0,0,0])));return l.clamp(s,8*a)},p:function(e,t,n,r,a,i){var s,o=h.bitArray;s=o.g;var l=t.length,c=o.bitLength(t);if(n=o.concat([o.partial(8,i-1)],n).concat([0,0,0]).slice(0,4),r=o.bitSlice(s(r,e.encrypt(n)),0,a),!l)return{tag:r,data:[]};for(s=0;l>s;s+=4)n[3]++,a=e.encrypt(n),t[s]^=a[0],t[s+1]^=a[1],t[s+2]^=a[2],t[s+3]^=a[3];return{tag:r,data:o.clamp(t,c)}}},h.beware===p&&(h.beware={}),h.beware["CBC mode is dangerous because it doesn't protect message integrity."]=function(){h.mode.cbc={name:"cbc",encrypt:function(e,t,n,r){r&&r.length&&i(new h.exception.invalid("cbc can't authenticate data")),128!==h.bitArray.bitLength(n)&&i(new h.exception.invalid("cbc iv must be 128 bits"));var a=h.bitArray,s=a.g,o=a.bitLength(t),l=0,c=[];for(7&o&&i(new h.exception.invalid("pkcs#5 padding only works for multiples of a byte")),r=0;o>=l+128;r+=4,l+=128)n=e.encrypt(s(n,t.slice(r,r+4))),c.splice(r,0,n[0],n[1],n[2],n[3]);return o=16843009*(16-(o>>3&15)),n=e.encrypt(s(n,a.concat(t,[o,o,o,o]).slice(r,r+4))),c.splice(r,0,n[0],n[1],n[2],n[3]),c},decrypt:function(e,t,n,r){r&&r.length&&i(new h.exception.invalid("cbc can't authenticate data")),128!==h.bitArray.bitLength(n)&&i(new h.exception.invalid("cbc iv must be 128 bits")),(127&h.bitArray.bitLength(t)||!t.length)&&i(new h.exception.corrupt("cbc ciphertext must be a positive multiple of the block size"));var a,s=h.bitArray,o=s.g,l=[];for(r=0;r<t.length;r+=4)a=t.slice(r,r+4),n=o(n,e.decrypt(a)),l.splice(r,0,n[0],n[1],n[2],n[3]),n=a;return(0==(a=255&l[r-1])||a>16)&&i(new h.exception.corrupt("pkcs#5 padding corrupt")),n=16843009*a,s.equal(s.bitSlice([n,n,n,n],0,8*a),s.bitSlice(l,32*l.length-8*a,32*l.length))||i(new h.exception.corrupt("pkcs#5 padding corrupt")),s.bitSlice(l,0,32*l.length-8*a)}}},h.mode.ocb2={name:"ocb2",encrypt:function(e,t,n,r,a,s){128!==h.bitArray.bitLength(n)&&i(new h.exception.invalid("ocb iv must be 128 bits"));var o,l=h.mode.ocb2.I,c=h.bitArray,u=c.g,p=[0,0,0,0];n=l(e.encrypt(n));var d,f=[];for(r=r||[],a=a||64,o=0;o+4<t.length;o+=4)p=u(p,d=t.slice(o,o+4)),f=f.concat(u(n,e.encrypt(u(n,d)))),n=l(n);return d=t.slice(o),t=c.bitLength(d),o=e.encrypt(u(n,[0,0,0,t])),d=c.clamp(u(d.concat([0,0,0]),o),t),p=u(p,u(d.concat([0,0,0]),o)),p=e.encrypt(u(p,u(n,l(n)))),r.length&&(p=u(p,s?r:h.mode.ocb2.pmac(e,r))),f.concat(c.concat(d,c.clamp(p,a)))},decrypt:function(e,t,n,r,a,s){128!==h.bitArray.bitLength(n)&&i(new h.exception.invalid("ocb iv must be 128 bits")),a=a||64;var o,l,c=h.mode.ocb2.I,u=h.bitArray,p=u.g,d=[0,0,0,0],f=c(e.encrypt(n)),m=h.bitArray.bitLength(t)-a,S=[];for(r=r||[],n=0;m/32>n+4;n+=4)o=p(f,e.decrypt(p(f,t.slice(n,n+4)))),d=p(d,o),S=S.concat(o),f=c(f);return l=m-32*n,o=e.encrypt(p(f,[0,0,0,l])),o=p(o,u.clamp(t.slice(n),l).concat([0,0,0])),d=p(d,o),d=e.encrypt(p(d,p(f,c(f)))),r.length&&(d=p(d,s?r:h.mode.ocb2.pmac(e,r))),u.equal(u.clamp(d,a),u.bitSlice(t,m))||i(new h.exception.corrupt("ocb: tag doesn't match")),S.concat(u.clamp(o,l))},pmac:function(e,t){var n,r=h.mode.ocb2.I,a=h.bitArray,i=a.g,s=[0,0,0,0],o=i(o=e.encrypt([0,0,0,0]),r(r(o)));for(n=0;n+4<t.length;n+=4)o=r(o),s=i(s,e.encrypt(i(o,t.slice(n,n+4))));return n=t.slice(n),128>a.bitLength(n)&&(o=i(o,r(o)),n=a.concat(n,[-2147483648,0,0,0])),s=i(s,n),e.encrypt(i(r(i(o,r(o))),s))},I:function(e){return[e[0]<<1^e[1]>>>31,e[1]<<1^e[2]>>>31,e[2]<<1^e[3]>>>31,e[3]<<1^135*(e[0]>>>31)]}},h.mode.gcm={name:"gcm",encrypt:function(e,t,n,r,a){var i=t.slice(0);return t=h.bitArray,r=r||[],e=h.mode.gcm.p(!0,e,i,r,n,a||128),t.concat(e.data,e.tag)},decrypt:function(e,t,n,r,a){var s=t.slice(0),o=h.bitArray,l=o.bitLength(s);return r=r||[],l>=(a=a||128)?(t=o.bitSlice(s,l-a),s=o.bitSlice(s,0,l-a)):(t=s,s=[]),e=h.mode.gcm.p(d,e,s,r,n,a),o.equal(e.tag,t)||i(new h.exception.corrupt("gcm: tag doesn't match")),e.data},V:function(e,t){var n,r,a,i,s,o=h.bitArray.g;for(a=[0,0,0,0],i=t.slice(0),n=0;128>n;n++){for((r=0!=(e[Math.floor(n/32)]&1<<31-n%32))&&(a=o(a,i)),s=0!=(1&i[3]),r=3;r>0;r--)i[r]=i[r]>>>1|(1&i[r-1])<<31;i[0]>>>=1,s&&(i[0]^=-520093696)}return a},j:function(e,t,n){var r,a=n.length;for(t=t.slice(0),r=0;a>r;r+=4)t[0]^=4294967295&n[r],t[1]^=4294967295&n[r+1],t[2]^=4294967295&n[r+2],t[3]^=4294967295&n[r+3],t=h.mode.gcm.V(t,e);return t},p:function(e,t,n,r,a,i){var s,o,l,c,u,p,d,f,m=h.bitArray;for(p=n.length,d=m.bitLength(n),f=m.bitLength(r),o=m.bitLength(a),s=t.encrypt([0,0,0,0]),96===o?(a=a.slice(0),a=m.concat(a,[1])):(a=h.mode.gcm.j(s,[0,0,0,0],a),a=h.mode.gcm.j(s,a,[0,0,Math.floor(o/4294967296),4294967295&o])),o=h.mode.gcm.j(s,[0,0,0,0],r),u=a.slice(0),r=o.slice(0),e||(r=h.mode.gcm.j(s,o,n)),c=0;p>c;c+=4)u[3]++,l=t.encrypt(u),n[c]^=l[0],n[c+1]^=l[1],n[c+2]^=l[2],n[c+3]^=l[3];return n=m.clamp(n,d),e&&(r=h.mode.gcm.j(s,o,n)),e=[Math.floor(f/4294967296),4294967295&f,Math.floor(d/4294967296),4294967295&d],r=h.mode.gcm.j(s,r,e),l=t.encrypt(a),r[0]^=l[0],r[1]^=l[1],r[2]^=l[2],r[3]^=l[3],{tag:m.bitSlice(r,0,i),data:n}}},h.misc.hmac=function(e,t){this.N=t=t||h.hash.sha256;var n,r=[[],[]],a=t.prototype.blockSize/32;for(this.q=[new t,new t],e.length>a&&(e=t.hash(e)),n=0;a>n;n++)r[0][n]=909522486^e[n],r[1][n]=1549556828^e[n];this.q[0].update(r[0]),this.q[1].update(r[1])},h.misc.hmac.prototype.encrypt=h.misc.hmac.prototype.mac=function(e){return e=new this.N(this.q[0]).update(e).finalize(),new this.N(this.q[1]).update(e).finalize()},h.misc.pbkdf2=function(e,t,n,r,a){n=n||1e3,(0>r||0>n)&&i(h.exception.invalid("invalid params to pbkdf2")),"string"==typeof e&&(e=h.codec.utf8String.toBits(e)),e=new(a=a||h.misc.hmac)(e);var s,o,l,c,u=[],p=h.bitArray;for(c=1;32*u.length<(r||1);c++){for(a=s=e.encrypt(p.concat(t,[c])),o=1;n>o;o++)for(s=e.encrypt(s),l=0;l<s.length;l++)a[l]^=s[l];u=u.concat(a)}return r&&(u=p.clamp(u,r)),u},h.prng=function(e){this.e=[new h.hash.sha256],this.k=[0],this.H=0,this.w={},this.F=0,this.L={},this.O=this.f=this.l=this.U=0,this.a=[0,0,0,0,0,0,0,0],this.i=[0,0,0,0],this.C=p,this.D=e,this.r=d,this.B={progress:{},seeded:{}},this.n=this.T=0,this.z=1,this.A=2,this.R=65536,this.J=[0,48,64,96,128,192,256,384,512,768,1024],this.S=3e4,this.Q=80},h.prng.prototype={randomWords:function(e,t){var n,r,a=[];if((n=this.isReady(t))===this.n&&i(new h.exception.notReady("generator isn't seeded")),n&this.A){n=!(n&this.z),r=[];var s,o=0;for(this.O=r[0]=(new Date).valueOf()+this.S,s=0;16>s;s++)r.push(4294967296*Math.random()|0);for(s=0;s<this.e.length&&(r=r.concat(this.e[s].finalize()),o+=this.k[s],this.k[s]=0,n||!(this.H&1<<s));s++);for(this.H>=1<<this.e.length&&(this.e.push(new h.hash.sha256),this.k.push(0)),this.f-=o,o>this.l&&(this.l=o),this.H++,this.a=h.hash.sha256.hash(this.a.concat(r)),this.C=new h.cipher.aes(this.a),n=0;4>n&&(this.i[n]=this.i[n]+1|0,!this.i[n]);n++);}for(n=0;e>n;n+=4)0==(n+1)%this.R&&l(this),r=c(this),a.push(r[0],r[1],r[2],r[3]);return l(this),a.slice(0,e)},setDefaultParanoia:function(e){this.D=e},addEntropy:function(e,t,n){n=n||"user";var r,a,s=(new Date).valueOf(),l=this.w[n],c=this.isReady(),u=0;switch((r=this.L[n])===p&&(r=this.L[n]=this.U++),l===p&&(l=this.w[n]=0),this.w[n]=(this.w[n]+1)%this.e.length,typeof e){case"number":t===p&&(t=1),this.e[l].update([r,this.F++,1,t,s,1,0|e]);break;case"object":if("[object Uint32Array]"===(n=Object.prototype.toString.call(e))){for(a=[],n=0;n<e.length;n++)a.push(e[n]);e=a}else for("[object Array]"!==n&&(u=1),n=0;n<e.length&&!u;n++)"number"!=typeof e[n]&&(u=1);if(!u){if(t===p)for(n=t=0;n<e.length;n++)for(a=e[n];a>0;)t++,a>>>=1;this.e[l].update([r,this.F++,2,t,s,e.length].concat(e))}break;case"string":t===p&&(t=e.length),this.e[l].update([r,this.F++,3,t,s,e.length]),this.e[l].update(e);break;default:u=1}u&&i(new h.exception.bug("random: addEntropy only supports number, array of numbers or string")),this.k[l]+=t,this.f+=t,c===this.n&&(this.isReady()!==this.n&&o("seeded",Math.max(this.l,this.f)),o("progress",this.getProgress()))},isReady:function(e){return e=this.J[e!==p?e:this.D],this.l&&this.l>=e?this.k[0]>this.Q&&(new Date).valueOf()>this.O?this.A|this.z:this.z:this.f>=e?this.A|this.n:this.n},getProgress:function(e){return e=this.J[e||this.D],this.l>=e||this.f>e?1:this.f/e},startCollectors:function(){this.r||(window.addEventListener?(window.addEventListener("load",this.t,d),window.addEventListener("mousemove",this.u,d)):document.attachEvent?(document.attachEvent("onload",this.t),document.attachEvent("onmousemove",this.u)):i(new h.exception.bug("can't attach event")),this.r=!0)},stopCollectors:function(){this.r&&(window.removeEventListener?(window.removeEventListener("load",this.t,d),window.removeEventListener("mousemove",this.u,d)):window.detachEvent&&(window.detachEvent("onload",this.t),window.detachEvent("onmousemove",this.u)),this.r=d)},addEventListener:function(e,t){this.B[e][this.T++]=t},removeEventListener:function(e,t){var n,r,a=this.B[e],i=[];for(r in a)a.hasOwnProperty(r)&&a[r]===t&&i.push(r);for(n=0;n<i.length;n++)delete a[r=i[n]]},u:function(e){h.random.addEntropy([e.x||e.clientX||e.offsetX||0,e.y||e.clientY||e.offsetY||0],2,"mouse")},t:function(){h.random.addEntropy((new Date).valueOf(),2,"loadtime")}},h.random=new h.prng(6);try{var f=new Uint32Array(32);crypto.getRandomValues(f),h.random.addEntropy(f,1024,"crypto['getRandomValues']")}catch(e){}h.json={defaults:{v:1,iter:1e3,ks:128,ts:64,mode:"ccm",adata:"",cipher:"aes"},encrypt:function(e,t,n,r){n=n||{},r=r||{};var a,s=h.json,o=s.h({iv:h.random.randomWords(4,0)},s.defaults);return s.h(o,n),n=o.adata,"string"==typeof o.salt&&(o.salt=h.codec.base64.toBits(o.salt)),"string"==typeof o.iv&&(o.iv=h.codec.base64.toBits(o.iv)),(!h.mode[o.mode]||!h.cipher[o.cipher]||"string"==typeof e&&100>=o.iter||64!==o.ts&&96!==o.ts&&128!==o.ts||128!==o.ks&&192!==o.ks&&256!==o.ks||2>o.iv.length||4<o.iv.length)&&i(new h.exception.invalid("json encrypt: invalid parameters")),"string"==typeof e?(e=(a=h.misc.cachedPbkdf2(e,o)).key.slice(0,o.ks/32),o.salt=a.salt):h.ecc&&e instanceof h.ecc.elGamal.publicKey&&(a=e.kem(),o.kemtag=a.tag,e=a.key.slice(0,o.ks/32)),"string"==typeof t&&(t=h.codec.utf8String.toBits(t)),"string"==typeof n&&(n=h.codec.utf8String.toBits(n)),a=new h.cipher[o.cipher](e),s.h(r,o),r.key=e,o.ct=h.mode[o.mode].encrypt(a,t,o.iv,n,o.ts),s.encode(o)},decrypt:function(e,t,n,r){n=n||{},r=r||{};var a,s=h.json;return n=(t=s.h(s.h(s.h({},s.defaults),s.decode(t)),n,!0)).adata,"string"==typeof t.salt&&(t.salt=h.codec.base64.toBits(t.salt)),"string"==typeof t.iv&&(t.iv=h.codec.base64.toBits(t.iv)),(!h.mode[t.mode]||!h.cipher[t.cipher]||"string"==typeof e&&100>=t.iter||64!==t.ts&&96!==t.ts&&128!==t.ts||128!==t.ks&&192!==t.ks&&256!==t.ks||!t.iv||2>t.iv.length||4<t.iv.length)&&i(new h.exception.invalid("json decrypt: invalid parameters")),"string"==typeof e?(e=(a=h.misc.cachedPbkdf2(e,t)).key.slice(0,t.ks/32),t.salt=a.salt):h.ecc&&e instanceof h.ecc.elGamal.secretKey&&(e=e.unkem(h.codec.base64.toBits(t.kemtag)).slice(0,t.ks/32)),"string"==typeof n&&(n=h.codec.utf8String.toBits(n)),a=new h.cipher[t.cipher](e),n=h.mode[t.mode].decrypt(a,t.ct,t.iv,n,t.ts),s.h(r,t),r.key=e,h.codec.utf8String.fromBits(n)},encode:function(e){var t,n="{",r="";for(t in e)if(e.hasOwnProperty(t))switch(t.match(/^[a-z0-9]+$/i)||i(new h.exception.invalid("json encode: invalid property name")),n+=r+'"'+t+'":',r=",",typeof e[t]){case"number":case"boolean":n+=e[t];break;case"string":n+='"'+escape(e[t])+'"';break;case"object":n+='"'+h.codec.base64.fromBits(e[t],0)+'"';break;default:i(new h.exception.bug("json encode: unsupported type"))}return n+"}"},decode:function(e){(e=e.replace(/\s/g,"")).match(/^\{.*\}$/)||i(new h.exception.invalid("json decode: this isn't json!")),e=e.replace(/^\{|\}$/g,"").split(/,/);var t,n,r={};for(t=0;t<e.length;t++)(n=e[t].match(/^(?:(["']?)([a-z][a-z0-9]*)\1):(?:(\d+)|"([a-z0-9+\/%*_.@=\-]*)")$/i))||i(new h.exception.invalid("json decode: this isn't json!")),r[n[2]]=n[3]?parseInt(n[3],10):n[2].match(/^(ct|salt|iv)$/)?h.codec.base64.toBits(n[4]):unescape(n[4]);return r},h:function(e,t,n){if(e===p&&(e={}),t===p)return e;for(var r in t)t.hasOwnProperty(r)&&(n&&e[r]!==p&&e[r]!==t[r]&&i(new h.exception.invalid("required parameter overridden")),e[r]=t[r]);return e},Y:function(e,t){var n,r={};for(n in e)e.hasOwnProperty(n)&&e[n]!==t[n]&&(r[n]=e[n]);return r},X:function(e,t){var n,r={};for(n=0;n<t.length;n++)e[t[n]]!==p&&(r[t[n]]=e[t[n]]);return r}},h.encrypt=h.json.encrypt,h.decrypt=h.json.decrypt,h.misc.W={},h.misc.cachedPbkdf2=function(e,t){var n,r=h.misc.W;return n=(t=t||{}).iter||1e3,(n=(r=r[e]=r[e]||{})[n]=r[n]||{firstSalt:t.salt&&t.salt.length?t.salt.slice(0):h.random.randomWords(2,0)})[r=t.salt===p?n.firstSalt:t.salt]=n[r]||h.misc.pbkdf2(e,r,t.iter),{key:n[r].slice(0),salt:r.slice(0)}},u=this,r=[n(194)],void 0===(a=function(e){return u.RNCryptor=function(e){var t,n,r,a={}.hasOwnProperty;return r={stringToBase64:function(e){return h.codec.base64.fromBits(h.codec.utf8String.toBits(e))},base64ToString:function(e){return h.codec.utf8String.fromBits(h.codec.base64.toBits(e))},generateHMACSHA256:function(e,t){var n,r,a;return n=h.codec.hex.toBits(e),r=h.codec.hex.toBits(t),a=new h.misc.hmac(n).encrypt(r),h.codec.hex.fromBits(a)},generatePBKDF2WithSHA1:function(e,t,n,r){var a,i,s;return null==r&&(r=256),a=function(e){var t;t=new h.misc.hmac(e,h.hash.sha1),this.encrypt=function(){return t.encrypt.apply(t,arguments)}},s=h.codec.hex.toBits(t),i=h.misc.pbkdf2(e,s,n,r,a),h.codec.hex.fromBits(i)},getRandomHex:function(e){return h.codec.hex.fromBits(h.random.randomWords(e/8*2))},hexTobin:function(e){var t,n;for(n="",t=0;t<e.length;)n+=String.fromCharCode(parseInt(e.substr(t,2),16)),t+=2;return n},stringToHex:function(e){return h.codec.hex.fromBits(h.codec.utf8String.toBits(e))},hexToString:function(e){return h.codec.utf8String.fromBits(h.codec.hex.toBits(e))},hexToBase64:function(e){return h.codec.base64.fromBits(h.codec.hex.toBits(e))},base64ToHex:function(e){return h.codec.hex.fromBits(h.codec.base64.toBits(e))},binToHex:function(e){return this.base64ToHex(this.btoa(e))},chr:function(e){return String.fromCharCode(e)},btoa:function(e){return btoa(e)},atob:function(e){return atob(e)},trim:function(e){return e.replace(/(?:(?:^|\n)\s+|\s+(?:$|\n))/g,"").replace(/\s+/g," ")},cleanString:function(e){return this.trim(e).replace(/\s+/g,"").replace(/(\r\n|\n|\r)/g,"")},extend:function(){return e.extend.apply(e,arguments)},sjcl:h},t=function(e){function t(e,t){t=t?JSON.stringify(t):"",this.name="RNCryptor error!",this.message=(e||"")+"\n"+t}return function(e,t){function n(){this.constructor=e}for(var r in t)a.call(t,r)&&(e[r]=t[r]);n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,Error),t}(),n={PBKDF_ITERATIONS:1e4,ENCRYPTION_SALT:null,KEY:null,PASSWORD:null,PBKDF2_SIZE:32,HMAC_SALT_LENGTH:8,ENCRYPTION_SALT_LENGTH:8,IV_LENGTH:16,VERSION_LENGTH:1,OPTIONS_LENGTH:1,AES_MODE:"cbc",HMAC_SALT:null},function(){function a(a){var i,s,o,l;for(a=r.extend({},n,a),h.beware["CBC mode is dangerous because it doesn't protect message integrity."](),a.HMAC_KEY||"string"!=typeof a.PASSWORD||(a.HMAC_KEY=r.generatePBKDF2WithSHA1(a.PASSWORD,a.HMAC_SALT,a.PBKDF_ITERATIONS)),a.KEY||"string"!=typeof a.PASSWORD||(a.KEY=r.generatePBKDF2WithSHA1(a.PASSWORD,a.ENCRYPTION_SALT,a.PBKDF_ITERATIONS)),a.options=r.chr(1),a.version=r.chr(2),this.settings=r.extend({},n,a),i=0,s=(l=["KEY","HMAC_KEY","HMAC_SALT","ENCRYPTION_SALT"]).length;s>i;i++)if(o=l[i],!this.settings[o])throw new t(o+" is not defined");this.decrypt=e.memoize(e.bind(this.decrypt,this),function(e){return function(t){return t+e.settings.KEY+e.settings.HMAC_KEY}}(this))}return a.helpers=r,a.CryptoError=t,a.prototype.encrypt=function(e){var n,a,i,s,o,l,c,u,p,d,f,m,S,y,g;g=this.settings.version,S=this.settings.options,s=r.hexTobin(this.settings.ENCRYPTION_SALT),o=r.hexTobin(this.settings.HMAC_SALT),p=r.getRandomHex(this.settings.IV_LENGTH),d=h.codec.hex.toBits(this.settings.KEY),u=h.codec.hex.toBits(p),c=r.hexTobin(p),f=h.codec.utf8String.toBits(e),y=new h.cipher.aes(d);try{h.beware["CBC mode is dangerous because it doesn't protect message integrity."](),n=h.mode[this.settings.AES_MODE].encrypt(y,f,u)}catch(e){throw new t(e.message,this.settings)}return a=h.codec.hex.fromBits(n),m=g+S+s+o+c+r.hexTobin(a),l=r.generateHMACSHA256(this.settings.HMAC_KEY,r.binToHex(m)),i=m+r.hexTobin(l),r.btoa(i)},a.prototype._extractData=function(e){var t,n,a,i,s,o,l,c,u,p,d,h,f,m,S;return a=(p=(c=(m=(h=this.settings.OPTIONS_LENGTH+0)+0+this.settings.OPTIONS_LENGTH)+this.settings.ENCRYPTION_SALT_LENGTH)+this.settings.HMAC_SALT_LENGTH)+this.settings.IV_LENGTH,n=e.length-(a+this.settings.PBKDF2_SIZE),o=e.length-this.settings.PBKDF2_SIZE,S=e.substr(0,this.settings.VERSION_LENGTH),d=e.substr(h,this.settings.OPTIONS_LENGTH),f=e.substr(m,this.settings.ENCRYPTION_SALT_LENGTH),l=e.substr(c,this.settings.HMAC_SALT_LENGTH),u=e.substr(p,this.settings.IV_LENGTH),t=e.substr(a,n),s=e.substr(o),i=S+d+f+l+u+t,{hmac:r.binToHex(s),encryptionSalt:r.binToHex(f),ivHex:r.binToHex(u),dataWithoutHMACinHex:r.binToHex(i),cipher:t}},a.prototype.decrypt=function(e){var n,a,i,s,o,l,c,u;if(a=r.atob(r.cleanString(e)),o=this._extractData(a),(s=r.generateHMACSHA256(this.settings.HMAC_KEY,o.dataWithoutHMACinHex))!==o.hmac)throw new t("HMAC "+s+" mismatch",o);c=h.codec.hex.toBits(this.settings.KEY),l=h.codec.hex.toBits(o.ivHex),n=h.codec.base64.toBits(r.btoa(o.cipher)),u=new h.cipher.aes(c);try{h.beware["CBC mode is dangerous because it doesn't protect message integrity."](),i=h.mode[this.settings.AES_MODE].decrypt(u,n,l)}catch(e){throw new t(e.message)}return h.codec.utf8String.fromBits(i)},a}()}(e)}.apply(t,r))||(e.exports=a)},function(e,t,n){var r=n(102),a=n(100);e.exports=function(e){return null!=e&&a(e.length)&&!r(e)}},function(e,t){e.exports=function(e,t){return null==e||e!=e?t:e}},,function(e,t,n){var r=n(40),a=n(243),i=n(244),s=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?a(e):i(e)}},function(e,t,n){var r=n(86),a=n(46);e.exports=function(e,t,n,i){var s=!n;n||(n={});for(var o=-1,l=t.length;++o<l;){var c=t[o],u=i?i(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),s?a(n,c,u):r(n,c,u)}return n}},function(e,t,n){var r,a,i;i=this,r=[n(194),n(67),t],void 0===(a=function(e,t,n){i.Backbone=function(e,t,n,r){var a=e.Backbone,i=[],s=i.slice;t.VERSION="1.1.2",t.$=r,t.noConflict=function(){return e.Backbone=a,this},t.emulateHTTP=!1,t.emulateJSON=!1;var o=t.Events={on:function(e,t,n){return c(this,"on",e,[t,n])&&t?(this._events||(this._events={}),(this._events[e]||(this._events[e]=[])).push({callback:t,context:n,ctx:n||this}),this):this},once:function(e,t,r){if(!c(this,"once",e,[t,r])||!t)return this;var a=this,i=n.once((function(){a.off(e,i),t.apply(this,arguments)}));return i._callback=t,this.on(e,i,r)},off:function(e,t,r){var a,i,s,o,l,u,p,d;if(!this._events||!c(this,"off",e,[t,r]))return this;if(!e&&!t&&!r)return this._events=void 0,this;for(l=0,u=(o=e?[e]:n.keys(this._events)).length;l<u;l++)if(e=o[l],s=this._events[e]){if(this._events[e]=a=[],t||r)for(p=0,d=s.length;p<d;p++)i=s[p],(t&&t!==i.callback&&t!==i.callback._callback||r&&r!==i.context)&&a.push(i);a.length||delete this._events[e]}return this},trigger:function(e){if(!this._events)return this;var t=s.call(arguments,1);if(!c(this,"trigger",e,t))return this;var n=this._events[e],r=this._events.all;return n&&u(n,t),r&&u(r,arguments),this},stopListening:function(e,t,r){var a=this._listeningTo;if(!a)return this;var i=!t&&!r;for(var s in r||"object"!=typeof t||(r=this),e&&((a={})[e._listenId]=e),a)(e=a[s]).off(t,r,this),(i||n.isEmpty(e._events))&&delete this._listeningTo[s];return this}},l=/\s+/,c=function(e,t,n,r){if(!n)return!0;if("object"==typeof n){for(var a in n)e[t].apply(e,[a,n[a]].concat(r));return!1}if(l.test(n)){for(var i=n.split(l),s=0,o=i.length;s<o;s++)e[t].apply(e,[i[s]].concat(r));return!1}return!0},u=function(e,t){var n,r=-1,a=e.length,i=t[0],s=t[1],o=t[2];switch(t.length){case 0:for(;++r<a;)(n=e[r]).callback.call(n.ctx);return;case 1:for(;++r<a;)(n=e[r]).callback.call(n.ctx,i);return;case 2:for(;++r<a;)(n=e[r]).callback.call(n.ctx,i,s);return;case 3:for(;++r<a;)(n=e[r]).callback.call(n.ctx,i,s,o);return;default:for(;++r<a;)(n=e[r]).callback.apply(n.ctx,t);return}};n.each({listenTo:"on",listenToOnce:"once"},(function(e,t){o[t]=function(t,r,a){return(this._listeningTo||(this._listeningTo={}))[t._listenId||(t._listenId=n.uniqueId("l"))]=t,a||"object"!=typeof r||(a=this),t[e](r,a,this),this}})),o.bind=o.on,o.unbind=o.off,n.extend(t,o);var p=t.Model=function(e,t){var r=e||{};t||(t={}),this.cid=n.uniqueId("c"),this.attributes={},t.collection&&(this.collection=t.collection),t.parse&&(r=this.parse(r,t)||{}),r=n.defaults({},r,n.result(this,"defaults")),this.set(r,t),this.changed={},this.initialize.apply(this,arguments)};n.extend(p.prototype,o,{changed:null,validationError:null,idAttribute:"id",initialize:function(){},toJSON:function(e){return n.clone(this.attributes)},sync:function(){return t.sync.apply(this,arguments)},get:function(e){return this.attributes[e]},escape:function(e){return n.escape(this.get(e))},has:function(e){return null!=this.get(e)},set:function(e,t,r){var a,i,s,o,l,c,u,p;if(null==e)return this;if("object"==typeof e?(i=e,r=t):(i={})[e]=t,r||(r={}),!this._validate(i,r))return!1;for(a in s=r.unset,l=r.silent,o=[],c=this._changing,this._changing=!0,c||(this._previousAttributes=n.clone(this.attributes),this.changed={}),p=this.attributes,u=this._previousAttributes,this.idAttribute in i&&(this.id=i[this.idAttribute]),i)t=i[a],n.isEqual(p[a],t)||o.push(a),n.isEqual(u[a],t)?delete this.changed[a]:this.changed[a]=t,s?delete p[a]:p[a]=t;if(!l){o.length&&(this._pending=r);for(var d=0,h=o.length;d<h;d++)this.trigger("change:"+o[d],this,p[o[d]],r)}if(c)return this;if(!l)for(;this._pending;)r=this._pending,this._pending=!1,this.trigger("change",this,r);return this._pending=!1,this._changing=!1,this},unset:function(e,t){return this.set(e,void 0,n.extend({},t,{unset:!0}))},clear:function(e){var t={};for(var r in this.attributes)t[r]=void 0;return this.set(t,n.extend({},e,{unset:!0}))},hasChanged:function(e){return null==e?!n.isEmpty(this.changed):n.has(this.changed,e)},changedAttributes:function(e){if(!e)return!!this.hasChanged()&&n.clone(this.changed);var t,r=!1,a=this._changing?this._previousAttributes:this.attributes;for(var i in e)n.isEqual(a[i],t=e[i])||((r||(r={}))[i]=t);return r},previous:function(e){return null!=e&&this._previousAttributes?this._previousAttributes[e]:null},previousAttributes:function(){return n.clone(this._previousAttributes)},fetch:function(e){void 0===(e=e?n.clone(e):{}).parse&&(e.parse=!0);var t=this,r=e.success;return e.success=function(n){if(!t.set(t.parse(n,e),e))return!1;r&&r(t,n,e),t.trigger("sync",t,n,e)},N(this,e),this.sync("read",this,e)},save:function(e,t,r){var a,i,s,o=this.attributes;if(null==e||"object"==typeof e?(a=e,r=t):(a={})[e]=t,r=n.extend({validate:!0},r),a&&!r.wait){if(!this.set(a,r))return!1}else if(!this._validate(a,r))return!1;a&&r.wait&&(this.attributes=n.extend({},o,a)),void 0===r.parse&&(r.parse=!0);var l=this,c=r.success;return r.success=function(e){l.attributes=o;var t=l.parse(e,r);if(r.wait&&(t=n.extend(a||{},t)),n.isObject(t)&&!l.set(t,r))return!1;c&&c(l,e,r),l.trigger("sync",l,e,r)},N(this,r),"patch"==(i=this.isNew()?"create":r.patch?"patch":"update")&&(r.attrs=a),s=this.sync(i,this,r),a&&r.wait&&(this.attributes=o),s},destroy:function(e){e=e?n.clone(e):{};var t=this,r=e.success,a=function(){t.trigger("destroy",t,t.collection,e)};if(e.success=function(n){(e.wait||t.isNew())&&a(),r&&r(t,n,e),t.isNew()||t.trigger("sync",t,n,e)},this.isNew())return e.success(),!1;N(this,e);var i=this.sync("delete",this,e);return e.wait||a(),i},url:function(){var e=n.result(this,"urlRoot")||n.result(this.collection,"url")||x();return this.isNew()?e:e.replace(/([^\/])$/,"$1/")+encodeURIComponent(this.id)},parse:function(e,t){return e},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(e){return this._validate({},n.extend(e||{},{validate:!0}))},_validate:function(e,t){if(!t.validate||!this.validate)return!0;e=n.extend({},this.attributes,e);var r=this.validationError=this.validate(e,t)||null;return!r||(this.trigger("invalid",this,r,n.extend(t,{validationError:r})),!1)}}),n.each(["keys","values","pairs","invert","pick","omit"],(function(e){p.prototype[e]=function(){var t=s.call(arguments);return t.unshift(this.attributes),n[e].apply(n,t)}}));var d=t.Collection=function(e,t){t||(t={}),t.model&&(this.model=t.model),void 0!==t.comparator&&(this.comparator=t.comparator),this._reset(),this.initialize.apply(this,arguments),e&&this.reset(e,n.extend({silent:!0},t))},h={add:!0,remove:!0,merge:!0},f={add:!0,remove:!1};n.extend(d.prototype,o,{model:p,initialize:function(){},toJSON:function(e){return this.map((function(t){return t.toJSON(e)}))},sync:function(){return t.sync.apply(this,arguments)},add:function(e,t){return this.set(e,n.extend({merge:!1},t,f))},remove:function(e,t){var r,a,i,s,o=!n.isArray(e);for(t||(t={}),r=0,a=(e=o?[e]:n.clone(e)).length;r<a;r++)(s=e[r]=this.get(e[r]))&&(delete this._byId[s.id],delete this._byId[s.cid],i=this.indexOf(s),this.models.splice(i,1),this.length--,t.silent||(t.index=i,s.trigger("remove",s,this,t)),this._removeReference(s,t));return o?e[0]:e},set:function(e,t){(t=n.defaults({},t,h)).parse&&(e=this.parse(e,t));var r,a,i,s,o,l,c,u=!n.isArray(e);e=u?e?[e]:[]:n.clone(e);var d=t.at,f=this.model,m=this.comparator&&null==d&&!1!==t.sort,S=n.isString(this.comparator)?this.comparator:null,y=[],g=[],v={},_=t.add,b=t.merge,P=t.remove,w=!(m||!_||!P)&&[];for(r=0,a=e.length;r<a;r++){if(i=(o=e[r]||{})instanceof p?s=o:o[f.prototype.idAttribute||"id"],l=this.get(i))P&&(v[l.cid]=!0),b&&(o=o===s?s.attributes:o,t.parse&&(o=l.parse(o,t)),l.set(o,t),m&&!c&&l.hasChanged(S)&&(c=!0)),e[r]=l;else if(_){if(!(s=e[r]=this._prepareModel(o,t)))continue;y.push(s),this._addReference(s,t)}s=l||s,!w||!s.isNew()&&v[s.id]||w.push(s),v[s.id]=!0}if(P){for(r=0,a=this.length;r<a;++r)v[(s=this.models[r]).cid]||g.push(s);g.length&&this.remove(g,t)}if(y.length||w&&w.length)if(m&&(c=!0),this.length+=y.length,null!=d)for(r=0,a=y.length;r<a;r++)this.models.splice(d+r,0,y[r]);else{w&&(this.models.length=0);var E=w||y;for(r=0,a=E.length;r<a;r++)this.models.push(E[r])}if(c&&this.sort({silent:!0}),!t.silent){for(r=0,a=y.length;r<a;r++)(s=y[r]).trigger("add",s,this,t);(c||w&&w.length)&&this.trigger("sort",this,t)}return u?e[0]:e},reset:function(e,t){t||(t={});for(var r=0,a=this.models.length;r<a;r++)this._removeReference(this.models[r],t);return t.previousModels=this.models,this._reset(),e=this.add(e,n.extend({silent:!0},t)),t.silent||this.trigger("reset",this,t),e},push:function(e,t){return this.add(e,n.extend({at:this.length},t))},pop:function(e){var t=this.at(this.length-1);return this.remove(t,e),t},unshift:function(e,t){return this.add(e,n.extend({at:0},t))},shift:function(e){var t=this.at(0);return this.remove(t,e),t},slice:function(){return s.apply(this.models,arguments)},get:function(e){if(null!=e)return this._byId[e]||this._byId[e.id]||this._byId[e.cid]},at:function(e){return this.models[e]},where:function(e,t){return n.isEmpty(e)?t?void 0:[]:this[t?"find":"filter"]((function(t){for(var n in e)if(e[n]!==t.get(n))return!1;return!0}))},findWhere:function(e){return this.where(e,!0)},sort:function(e){if(!this.comparator)throw new Error("Cannot sort a set without a comparator");return e||(e={}),n.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(n.bind(this.comparator,this)),e.silent||this.trigger("sort",this,e),this},pluck:function(e){return n.invoke(this.models,"get",e)},fetch:function(e){void 0===(e=e?n.clone(e):{}).parse&&(e.parse=!0);var t=e.success,r=this;return e.success=function(n){var a=e.reset?"reset":"set";r[a](n,e),t&&t(r,n,e),r.trigger("sync",r,n,e)},N(this,e),this.sync("read",this,e)},create:function(e,t){if(t=t?n.clone(t):{},!(e=this._prepareModel(e,t)))return!1;t.wait||this.add(e,t);var r=this,a=t.success;return t.success=function(e,n){t.wait&&r.add(e,t),a&&a(e,n,t)},e.save(null,t),e},parse:function(e,t){return e},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(e,t){if(e instanceof p)return e;(t=t?n.clone(t):{}).collection=this;var r=new this.model(e,t);return r.validationError?(this.trigger("invalid",this,r.validationError,t),!1):r},_addReference:function(e,t){this._byId[e.cid]=e,null!=e.id&&(this._byId[e.id]=e),e.collection||(e.collection=this),e.on("all",this._onModelEvent,this)},_removeReference:function(e,t){this===e.collection&&delete e.collection,e.off("all",this._onModelEvent,this)},_onModelEvent:function(e,t,n,r){("add"!==e&&"remove"!==e||n===this)&&("destroy"===e&&this.remove(t,r),t&&e==="change:"+t.idAttribute&&(delete this._byId[t.previous(t.idAttribute)],null!=t.id&&(this._byId[t.id]=t)),this.trigger.apply(this,arguments))}}),n.each(["forEach","each","map","collect","reduce","foldl","inject","reduceRight","foldr","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","max","min","toArray","size","first","head","take","initial","rest","tail","drop","last","without","difference","indexOf","shuffle","lastIndexOf","isEmpty","chain","sample"],(function(e){d.prototype[e]=function(){var t=s.call(arguments);return t.unshift(this.models),n[e].apply(n,t)}})),n.each(["groupBy","countBy","sortBy","indexBy"],(function(e){d.prototype[e]=function(t,r){var a=n.isFunction(t)?t:function(e){return e.get(t)};return n[e](this.models,a,r)}}));var m=t.View=function(e){this.cid=n.uniqueId("view"),e||(e={}),n.extend(this,n.pick(e,y)),this._ensureElement(),this.initialize.apply(this,arguments),this.delegateEvents()},S=/^(\S+)\s*(.*)$/,y=["model","collection","el","id","attributes","className","tagName","events"];n.extend(m.prototype,o,{tagName:"div",$:function(e){return this.$el.find(e)},initialize:function(){},render:function(){return this},remove:function(){return this.$el.remove(),this.stopListening(),this},setElement:function(e,n){return this.$el&&this.undelegateEvents(),this.$el=e instanceof t.$?e:t.$(e),this.el=this.$el[0],!1!==n&&this.delegateEvents(),this},delegateEvents:function(e){if(!e&&!(e=n.result(this,"events")))return this;for(var t in this.undelegateEvents(),e){var r=e[t];if(n.isFunction(r)||(r=this[e[t]]),r){var a=t.match(S),i=a[1],s=a[2];r=n.bind(r,this),i+=".delegateEvents"+this.cid,""===s?this.$el.on(i,r):this.$el.on(i,s,r)}}return this},undelegateEvents:function(){return this.$el.off(".delegateEvents"+this.cid),this},_ensureElement:function(){if(this.el)this.setElement(n.result(this,"el"),!1);else{var e=n.extend({},n.result(this,"attributes"));this.id&&(e.id=n.result(this,"id")),this.className&&(e.class=n.result(this,"className"));var r=t.$("<"+n.result(this,"tagName")+">").attr(e);this.setElement(r,!1)}}}),t.sync=function(e,r,a){var i=v[e];n.defaults(a||(a={}),{emulateHTTP:t.emulateHTTP,emulateJSON:t.emulateJSON});var s={type:i,dataType:"json"};if(a.url||(s.url=n.result(r,"url")||x()),null!=a.data||!r||"create"!==e&&"update"!==e&&"patch"!==e||(s.contentType="application/json",s.data=JSON.stringify(a.attrs||r.toJSON(a))),a.emulateJSON&&(s.contentType="application/x-www-form-urlencoded",s.data=s.data?{model:s.data}:{}),a.emulateHTTP&&("PUT"===i||"DELETE"===i||"PATCH"===i)){s.type="POST",a.emulateJSON&&(s.data._method=i);var o=a.beforeSend;a.beforeSend=function(e){if(e.setRequestHeader("X-HTTP-Method-Override",i),o)return o.apply(this,arguments)}}"GET"===s.type||a.emulateJSON||(s.processData=!1),"PATCH"===s.type&&g&&(s.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")});var l=a.xhr=t.ajax(n.extend(s,a));return r.trigger("request",r,l,a),l};var g=!("undefined"==typeof window||!window.ActiveXObject||window.XMLHttpRequest&&(new XMLHttpRequest).dispatchEvent),v={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};t.ajax=function(){return t.$.ajax.apply(t.$,arguments)};var _=t.Router=function(e){e||(e={}),e.routes&&(this.routes=e.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},b=/\((.*?)\)/g,P=/(\(\?)?:\w+/g,w=/\*\w+/g,E=/[\-{}\[\]+?.,\\\^$|#\s]/g;n.extend(_.prototype,o,{initialize:function(){},route:function(e,r,a){n.isRegExp(e)||(e=this._routeToRegExp(e)),n.isFunction(r)&&(a=r,r=""),a||(a=this[r]);var i=this;return t.history.route(e,(function(n){var s=i._extractParameters(e,n);i.execute(a,s),i.trigger.apply(i,["route:"+r].concat(s)),i.trigger("route",r,s),t.history.trigger("route",i,r,s)})),this},execute:function(e,t){e&&e.apply(this,t)},navigate:function(e,n){return t.history.navigate(e,n),this},_bindRoutes:function(){if(this.routes){this.routes=n.result(this,"routes");for(var e,t=n.keys(this.routes);null!=(e=t.pop());)this.route(e,this.routes[e])}},_routeToRegExp:function(e){return e=e.replace(E,"\\$&").replace(b,"(?:$1)?").replace(P,(function(e,t){return t?e:"([^/?]+)"})).replace(w,"([^?]*?)"),new RegExp("^"+e+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(e,t){var r=e.exec(t).slice(1);return n.map(r,(function(e,t){return t===r.length-1?e||null:e?decodeURIComponent(e):null}))}});var k=t.History=function(){this.handlers=[],n.bindAll(this,"checkUrl"),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},T=/^[#\/]|\s+$/g,C=/^\/+|\/+$/g,I=/msie [\w.]+/,A=/\/$/,O=/#.*$/;k.started=!1,n.extend(k.prototype,o,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root},getHash:function(e){var t=(e||this).location.href.match(/#(.*)$/);return t?t[1]:""},getFragment:function(e,t){if(null==e)if(this._hasPushState||!this._wantsHashChange||t){e=decodeURI(this.location.pathname+this.location.search);var n=this.root.replace(A,"");e.indexOf(n)||(e=e.slice(n.length))}else e=this.getHash();return e.replace(T,"")},start:function(e){if(k.started)throw new Error("Backbone.history has already been started");k.started=!0,this.options=n.extend({root:"/"},this.options,e),this.root=this.options.root,this._wantsHashChange=!1!==this.options.hashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var r=this.getFragment(),a=document.documentMode,i=I.exec(navigator.userAgent.toLowerCase())&&(!a||a<=7);if(this.root=("/"+this.root+"/").replace(C,"/"),i&&this._wantsHashChange){var s=t.$('<iframe src="javascript:0" tabindex="-1">');this.iframe=s.hide().appendTo("body")[0].contentWindow,this.navigate(r)}this._hasPushState?t.$(window).on("popstate",this.checkUrl):this._wantsHashChange&&"onhashchange"in window&&!i?t.$(window).on("hashchange",this.checkUrl):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.fragment=r;var o=this.location;if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot())return this.fragment=this.getFragment(null,!0),this.location.replace(this.root+"#"+this.fragment),!0;this._hasPushState&&this.atRoot()&&o.hash&&(this.fragment=this.getHash().replace(T,""),this.history.replaceState({},document.title,this.root+this.fragment))}if(!this.options.silent)return this.loadUrl()},stop:function(){t.$(window).off("popstate",this.checkUrl).off("hashchange",this.checkUrl),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),k.started=!1},route:function(e,t){this.handlers.unshift({route:e,callback:t})},checkUrl:function(e){var t=this.getFragment();if(t===this.fragment&&this.iframe&&(t=this.getFragment(this.getHash(this.iframe))),t===this.fragment)return!1;this.iframe&&this.navigate(t),this.loadUrl()},loadUrl:function(e){return e=this.fragment=this.getFragment(e),n.any(this.handlers,(function(t){if(t.route.test(e))return t.callback(e),!0}))},navigate:function(e,t){if(!k.started)return!1;t&&!0!==t||(t={trigger:!!t});var n=this.root+(e=this.getFragment(e||""));if(e=e.replace(O,""),this.fragment!==e){if(this.fragment=e,""===e&&"/"!==n&&(n=n.slice(0,-1)),this._hasPushState)this.history[t.replace?"replaceState":"pushState"]({},document.title,n);else{if(!this._wantsHashChange)return this.location.assign(n);this._updateHash(this.location,e,t.replace),this.iframe&&e!==this.getFragment(this.getHash(this.iframe))&&(t.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,e,t.replace))}return t.trigger?this.loadUrl(e):void 0}},_updateHash:function(e,t,n){if(n){var r=e.href.replace(/(javascript:|#).*$/,"");e.replace(r+"#"+t)}else e.hash="#"+t}}),t.history=new k,p.extend=d.extend=_.extend=m.extend=k.extend=function(e,t){var r,a=this;r=e&&n.has(e,"constructor")?e.constructor:function(){return a.apply(this,arguments)},n.extend(r,a,t);var i=function(){this.constructor=r};return i.prototype=a.prototype,r.prototype=new i,e&&n.extend(r.prototype,e),r.__super__=a.prototype,r};var x=function(){throw new Error('A "url" property or function must be specified')},N=function(e,t){var n=t.error;t.error=function(r){n&&n(e,r,t),e.trigger("error",e,r,t)}};return t}(i,n,e,t)}.apply(t,r))||(e.exports=a)},function(e,t,n){var r=n(113);e.exports=function(e){return r(e,5)}},function(e,t,n){var r=n(142),a=n(143),i=n(25);e.exports=function(e){return i(e)?r(e):a(e)}},function(e,t,n){var r=n(274),a=n(277);e.exports=function(e,t){var n=a(e,t);return r(n)?n:void 0}},function(e,t,n){var r=n(17),a=n(160),i=n(161);e.exports=function(e,t){return i(a(e,t,r),e+"")}},function(e,t){e.exports=require("os")},function(e,t,n){"use strict";n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return o}));var r=n(6);function a(e,t){return void 0===t&&(t=0),"string"!=typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function i(e,t){var n=e,r=n.length;if(r<=150)return n;t>r&&(t=r);var a=Math.max(t-60,0);a<5&&(a=0);var i=Math.min(a+140,r);return i>r-5&&(i=r),i===r&&(a=Math.max(i-140,0)),n=n.slice(a,i),a>0&&(n="'{snip} "+n),i<r&&(n+=" {snip}"),n}function s(e,t){if(!Array.isArray(e))return"";for(var n=[],r=0;r<e.length;r++){var a=e[r];try{n.push(String(a))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function o(e,t){return!!Object(r.k)(e)&&(Object(r.j)(t)?t.test(e):"string"==typeof t&&-1!==e.indexOf(t))}},function(e,t,n){var r=n(28),a=n(21);e.exports=function(e){return"number"==typeof e||a(e)&&"[object Number]"==r(e)}},function(e,t,n){e.exports=n(358)},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(399)},function(e,t,n){var r=n(20).Symbol;e.exports=r},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(9),a=n(111),i=n(302),s=n(61);e.exports=function(e,t){return r(e)?e:a(e,t)?[e]:i(s(e))}},function(e,t,n){var r=n(28),a=n(21);e.exports=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==r(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}},function(e,t,n){var r=n(43);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t,n){var r=n(159);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(109),a=n(321);e.exports=function e(t,n,i,s,o){var l=-1,c=t.length;for(i||(i=a),o||(o=[]);++l<c;){var u=t[l];n>0&&i(u)?n>1?e(u,n-1,i,s,o):r(o,u):s||(o[o.length]=u)}return o}},function(e,t,n){var r=n(25),a=n(21);e.exports=function(e){return a(e)&&r(e)}},function(e,t,n){var r=n(142),a=n(328),i=n(25);e.exports=function(e){return i(e)?r(e,!0):a(e)}},function(e,t,n){"use strict";(function(e){var r,a=n(195);r="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:e;var i=Object(a.a)(r);t.a=i}).call(this,n(99)(e))},function(e,t,n){var r=n(359)(n(360));e.exports=r},function(e,t,n){var r=n(12),a=n(402);e.exports=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,s=[],o=e.length;for(t=r(t,3);++i<o;){var l=e[i];t(l,i,e)&&(n.push(l),s.push(i))}return a(e,s),n}},,function(e,t,n){var r=n(258),a=n(21),i=Object.prototype,s=i.hasOwnProperty,o=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return a(e)&&s.call(e,"callee")&&!o.call(e,"callee")};e.exports=l},function(e,t,n){(function(e){var r=n(20),a=n(66),i=t&&!t.nodeType&&t,s=i&&"object"==typeof e&&e&&!e.nodeType&&e,o=s&&s.exports===i?r.Buffer:void 0,l=(o?o.isBuffer:void 0)||a;e.exports=l}).call(this,n(78)(e))},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(297),a=n(103),i=n(298),s=n(150),o=n(299),l=n(28),c=n(144),u=c(r),p=c(a),d=c(i),h=c(s),f=c(o),m=l;(r&&"[object DataView]"!=m(new r(new ArrayBuffer(1)))||a&&"[object Map]"!=m(new a)||i&&"[object Promise]"!=m(i.resolve())||s&&"[object Set]"!=m(new s)||o&&"[object WeakMap]"!=m(new o))&&(m=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case u:return"[object DataView]";case p:return"[object Map]";case d:return"[object Promise]";case h:return"[object Set]";case f:return"[object WeakMap]"}return t}),e.exports=m},function(e,t,n){var r=n(42),a=n(45);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[a(t[n++])];return n&&n==i?e:void 0}},function(e,t,n){var r=n(305);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){const r=n(378),a=n(379),i=String.fromCharCode(30);e.exports={protocol:4,encodePacket:r,encodePayload:(e,t)=>{const n=e.length,a=new Array(n);let s=0;e.forEach((e,o)=>{r(e,!1,e=>{a[o]=e,++s===n&&t(a.join(i))})})},decodePacket:a,decodePayload:(e,t)=>{const n=e.split(i),r=[];for(let e=0;e<n.length;e++){const i=a(n[e],t);if(r.push(i),"error"===i.type)break}return r}}},function(e,t,n){function r(e){if(e)return function(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}(e)}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},r.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var a=0;a<r.length;a++)if((n=r[a])===t||n.fn===t){r.splice(a,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},r.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var a=(n=n.slice(0)).length;r<a;++r)n[r].apply(this,t)}return this},r.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},r.prototype.hasListeners=function(e){return!!this.listeners(e).length}},function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,a=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(a=r))}),t.splice(a,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(381)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},function(e,t,n){var r=n(28),a=n(98),i=n(21),s=Function.prototype,o=Object.prototype,l=s.toString,c=o.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=a(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r;
/*!
 * jQuery JavaScript Library v3.5.0
 * https://jquery.com/
 *
 * Includes Sizzle.js
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2020-04-10T15:07Z
 */!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(n,a){"use strict";var i=[],s=Object.getPrototypeOf,o=i.slice,l=i.flat?function(e){return i.flat.call(e)}:function(e){return i.concat.apply([],e)},c=i.push,u=i.indexOf,p={},d=p.toString,h=p.hasOwnProperty,f=h.toString,m=f.call(Object),S={},y=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},g=function(e){return null!=e&&e===e.window},v=n.document,_={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,a,i=(n=n||v).createElement("script");if(i.text=e,t)for(r in _)(a=t[r]||t.getAttribute&&t.getAttribute(r))&&i.setAttribute(r,a);n.head.appendChild(i).parentNode.removeChild(i)}function P(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?p[d.call(e)]||"object":typeof e}var w=function(e,t){return new w.fn.init(e,t)};function E(e){var t=!!e&&"length"in e&&e.length,n=P(e);return!y(e)&&!g(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}w.fn=w.prototype={jquery:"3.5.0",constructor:w,length:0,toArray:function(){return o.call(this)},get:function(e){return null==e?o.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=w.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return w.each(this,e)},map:function(e){return this.pushStack(w.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(w.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(w.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:i.sort,splice:i.splice},w.extend=w.fn.extend=function(){var e,t,n,r,a,i,s=arguments[0]||{},o=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[o]||{},o++),"object"==typeof s||y(s)||(s={}),o===l&&(s=this,o--);o<l;o++)if(null!=(e=arguments[o]))for(t in e)r=e[t],"__proto__"!==t&&s!==r&&(c&&r&&(w.isPlainObject(r)||(a=Array.isArray(r)))?(n=s[t],i=a&&!Array.isArray(n)?[]:a||w.isPlainObject(n)?n:{},a=!1,s[t]=w.extend(c,i,r)):void 0!==r&&(s[t]=r));return s},w.extend({expando:"jQuery"+("3.5.0"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==d.call(e))&&(!(t=s(e))||"function"==typeof(n=h.call(t,"constructor")&&t.constructor)&&f.call(n)===m)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){b(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(E(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(E(Object(e))?w.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,a=e.length;r<n;r++)e[a++]=t[r];return e.length=a,e},grep:function(e,t,n){for(var r=[],a=0,i=e.length,s=!n;a<i;a++)!t(e[a],a)!==s&&r.push(e[a]);return r},map:function(e,t,n){var r,a,i=0,s=[];if(E(e))for(r=e.length;i<r;i++)null!=(a=t(e[i],i,n))&&s.push(a);else for(i in e)null!=(a=t(e[i],i,n))&&s.push(a);return l(s)},guid:1,support:S}),"function"==typeof Symbol&&(w.fn[Symbol.iterator]=i[Symbol.iterator]),w.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){p["[object "+t+"]"]=t.toLowerCase()}));var k=
/*!
 * Sizzle CSS Selector Engine v2.3.5
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://js.foundation/
 *
 * Date: 2020-03-14
 */
function(e){var t,n,r,a,i,s,o,l,c,u,p,d,h,f,m,S,y,g,v,_="sizzle"+1*new Date,b=e.document,P=0,w=0,E=le(),k=le(),T=le(),C=le(),I=function(e,t){return e===t&&(p=!0),0},A={}.hasOwnProperty,O=[],x=O.pop,N=O.push,R=O.push,D=O.slice,H=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},F="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",G="[\\x20\\t\\r\\n\\f]",U="(?:\\\\[\\da-fA-F]{1,6}"+G+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",L="\\["+G+"*("+U+")(?:"+G+"*([*^$|!~]?=)"+G+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+U+"))|)"+G+"*\\]",j=":("+U+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+L+")*)|.*)\\)|)",M=new RegExp(G+"+","g"),B=new RegExp("^"+G+"+|((?:^|[^\\\\])(?:\\\\.)*)"+G+"+$","g"),K=new RegExp("^"+G+"*,"+G+"*"),q=new RegExp("^"+G+"*([>+~]|"+G+")"+G+"*"),V=new RegExp(G+"|>"),$=new RegExp(j),W=new RegExp("^"+U+"$"),z={ID:new RegExp("^#("+U+")"),CLASS:new RegExp("^\\.("+U+")"),TAG:new RegExp("^("+U+"|[*])"),ATTR:new RegExp("^"+L),PSEUDO:new RegExp("^"+j),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+G+"*(even|odd|(([+-]|)(\\d*)n|)"+G+"*(?:([+-]|)"+G+"*(\\d+)|))"+G+"*\\)|)","i"),bool:new RegExp("^(?:"+F+")$","i"),needsContext:new RegExp("^"+G+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+G+"*((?:-\\d)?\\d*)"+G+"*\\)|)(?=[^-]|$)","i")},J=/HTML$/i,X=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+G+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ae=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ie=function(){d()},se=_e((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{R.apply(O=D.call(b.childNodes),b.childNodes),O[b.childNodes.length].nodeType}catch(e){R={apply:O.length?function(e,t){N.apply(e,D.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function oe(e,t,r,a){var i,o,c,u,p,f,y,g=t&&t.ownerDocument,b=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==b&&9!==b&&11!==b)return r;if(!a&&(d(t),t=t||h,m)){if(11!==b&&(p=Z.exec(e)))if(i=p[1]){if(9===b){if(!(c=t.getElementById(i)))return r;if(c.id===i)return r.push(c),r}else if(g&&(c=g.getElementById(i))&&v(t,c)&&c.id===i)return r.push(c),r}else{if(p[2])return R.apply(r,t.getElementsByTagName(e)),r;if((i=p[3])&&n.getElementsByClassName&&t.getElementsByClassName)return R.apply(r,t.getElementsByClassName(i)),r}if(n.qsa&&!C[e+" "]&&(!S||!S.test(e))&&(1!==b||"object"!==t.nodeName.toLowerCase())){if(y=e,g=t,1===b&&(V.test(e)||q.test(e))){for((g=ee.test(e)&&ye(t.parentNode)||t)===t&&n.scope||((u=t.getAttribute("id"))?u=u.replace(re,ae):t.setAttribute("id",u=_)),o=(f=s(e)).length;o--;)f[o]=(u?"#"+u:":scope")+" "+ve(f[o]);y=f.join(",")}try{return R.apply(r,g.querySelectorAll(y)),r}catch(t){C(e,!0)}finally{u===_&&t.removeAttribute("id")}}}return l(e.replace(B,"$1"),t,r,a)}function le(){var e=[];return function t(n,a){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=a}}function ce(e){return e[_]=!0,e}function ue(e){var t=h.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function pe(e,t){for(var n=e.split("|"),a=n.length;a--;)r.attrHandle[n[a]]=t}function de(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function he(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function fe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function me(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&se(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function Se(e){return ce((function(t){return t=+t,ce((function(n,r){for(var a,i=e([],n.length,t),s=i.length;s--;)n[a=i[s]]&&(n[a]=!(r[a]=n[a]))}))}))}function ye(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=oe.support={},i=oe.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!J.test(t||n&&n.nodeName||"HTML")},d=oe.setDocument=function(e){var t,a,s=e?e.ownerDocument||e:b;return s!=h&&9===s.nodeType&&s.documentElement?(f=(h=s).documentElement,m=!i(h),b!=h&&(a=h.defaultView)&&a.top!==a&&(a.addEventListener?a.addEventListener("unload",ie,!1):a.attachEvent&&a.attachEvent("onunload",ie)),n.scope=ue((function(e){return f.appendChild(e).appendChild(h.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ue((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ue((function(e){return e.appendChild(h.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=Y.test(h.getElementsByClassName),n.getById=ue((function(e){return f.appendChild(e).id=_,!h.getElementsByName||!h.getElementsByName(_).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,r,a,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(a=t.getElementsByName(e),r=0;i=a[r++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],a=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[a++];)1===n.nodeType&&r.push(n);return r}return i},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},y=[],S=[],(n.qsa=Y.test(h.querySelectorAll))&&(ue((function(e){var t;f.appendChild(e).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&S.push("[*^$]="+G+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||S.push("\\["+G+"*(?:value|"+F+")"),e.querySelectorAll("[id~="+_+"-]").length||S.push("~="),(t=h.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||S.push("\\["+G+"*name"+G+"*="+G+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||S.push(":checked"),e.querySelectorAll("a#"+_+"+*").length||S.push(".#.+[+~]"),e.querySelectorAll("\\\f"),S.push("[\\r\\n\\f]")})),ue((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=h.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&S.push("name"+G+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&S.push(":enabled",":disabled"),f.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&S.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),S.push(",.*:")}))),(n.matchesSelector=Y.test(g=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&ue((function(e){n.disconnectedMatch=g.call(e,"*"),g.call(e,"[s!='']:x"),y.push("!=",j)})),S=S.length&&new RegExp(S.join("|")),y=y.length&&new RegExp(y.join("|")),t=Y.test(f.compareDocumentPosition),v=t||Y.test(f.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},I=t?function(e,t){if(e===t)return p=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==h||e.ownerDocument==b&&v(b,e)?-1:t==h||t.ownerDocument==b&&v(b,t)?1:u?H(u,e)-H(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return p=!0,0;var n,r=0,a=e.parentNode,i=t.parentNode,s=[e],o=[t];if(!a||!i)return e==h?-1:t==h?1:a?-1:i?1:u?H(u,e)-H(u,t):0;if(a===i)return de(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)o.unshift(n);for(;s[r]===o[r];)r++;return r?de(s[r],o[r]):s[r]==b?-1:o[r]==b?1:0},h):h},oe.matches=function(e,t){return oe(e,null,null,t)},oe.matchesSelector=function(e,t){if(d(e),n.matchesSelector&&m&&!C[t+" "]&&(!y||!y.test(t))&&(!S||!S.test(t)))try{var r=g.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){C(t,!0)}return oe(t,h,null,[e]).length>0},oe.contains=function(e,t){return(e.ownerDocument||e)!=h&&d(e),v(e,t)},oe.attr=function(e,t){(e.ownerDocument||e)!=h&&d(e);var a=r.attrHandle[t.toLowerCase()],i=a&&A.call(r.attrHandle,t.toLowerCase())?a(e,t,!m):void 0;return void 0!==i?i:n.attributes||!m?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},oe.escape=function(e){return(e+"").replace(re,ae)},oe.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},oe.uniqueSort=function(e){var t,r=[],a=0,i=0;if(p=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(I),p){for(;t=e[i++];)t===e[i]&&(a=r.push(i));for(;a--;)e.splice(r[a],1)}return u=null,e},a=oe.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=a(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=a(t);return n},(r=oe.selectors={cacheLength:50,createPseudo:ce,match:z,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||oe.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&oe.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return z.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&$.test(n)&&(t=s(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=E[e+" "];return t||(t=new RegExp("(^|"+G+")"+e+"("+G+"|$)"))&&E(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var a=oe.attr(r,e);return null==a?"!="===t:!t||(a+="","="===t?a===n:"!="===t?a!==n:"^="===t?n&&0===a.indexOf(n):"*="===t?n&&a.indexOf(n)>-1:"$="===t?n&&a.slice(-n.length)===n:"~="===t?(" "+a.replace(M," ")+" ").indexOf(n)>-1:"|="===t&&(a===n||a.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,a){var i="nth"!==e.slice(0,3),s="last"!==e.slice(-4),o="of-type"===t;return 1===r&&0===a?function(e){return!!e.parentNode}:function(t,n,l){var c,u,p,d,h,f,m=i!==s?"nextSibling":"previousSibling",S=t.parentNode,y=o&&t.nodeName.toLowerCase(),g=!l&&!o,v=!1;if(S){if(i){for(;m;){for(d=t;d=d[m];)if(o?d.nodeName.toLowerCase()===y:1===d.nodeType)return!1;f=m="only"===e&&!f&&"nextSibling"}return!0}if(f=[s?S.firstChild:S.lastChild],s&&g){for(v=(h=(c=(u=(p=(d=S)[_]||(d[_]={}))[d.uniqueID]||(p[d.uniqueID]={}))[e]||[])[0]===P&&c[1])&&c[2],d=h&&S.childNodes[h];d=++h&&d&&d[m]||(v=h=0)||f.pop();)if(1===d.nodeType&&++v&&d===t){u[e]=[P,h,v];break}}else if(g&&(v=h=(c=(u=(p=(d=t)[_]||(d[_]={}))[d.uniqueID]||(p[d.uniqueID]={}))[e]||[])[0]===P&&c[1]),!1===v)for(;(d=++h&&d&&d[m]||(v=h=0)||f.pop())&&((o?d.nodeName.toLowerCase()!==y:1!==d.nodeType)||!++v||(g&&((u=(p=d[_]||(d[_]={}))[d.uniqueID]||(p[d.uniqueID]={}))[e]=[P,v]),d!==t)););return(v-=a)===r||v%r==0&&v/r>=0}}},PSEUDO:function(e,t){var n,a=r.pseudos[e]||r.setFilters[e.toLowerCase()]||oe.error("unsupported pseudo: "+e);return a[_]?a(t):a.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ce((function(e,n){for(var r,i=a(e,t),s=i.length;s--;)e[r=H(e,i[s])]=!(n[r]=i[s])})):function(e){return a(e,0,n)}):a}},pseudos:{not:ce((function(e){var t=[],n=[],r=o(e.replace(B,"$1"));return r[_]?ce((function(e,t,n,a){for(var i,s=r(e,null,a,[]),o=e.length;o--;)(i=s[o])&&(e[o]=!(t[o]=i))})):function(e,a,i){return t[0]=e,r(t,null,i,n),t[0]=null,!n.pop()}})),has:ce((function(e){return function(t){return oe(e,t).length>0}})),contains:ce((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||a(t)).indexOf(e)>-1}})),lang:ce((function(e){return W.test(e||"")||oe.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Q.test(e.nodeName)},input:function(e){return X.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:Se((function(){return[0]})),last:Se((function(e,t){return[t-1]})),eq:Se((function(e,t,n){return[n<0?n+t:n]})),even:Se((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:Se((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:Se((function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:Se((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=he(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=fe(t);function ge(){}function ve(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function _e(e,t,n){var r=t.dir,a=t.next,i=a||r,s=n&&"parentNode"===i,o=w++;return t.first?function(t,n,a){for(;t=t[r];)if(1===t.nodeType||s)return e(t,n,a);return!1}:function(t,n,l){var c,u,p,d=[P,o];if(l){for(;t=t[r];)if((1===t.nodeType||s)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||s)if(u=(p=t[_]||(t[_]={}))[t.uniqueID]||(p[t.uniqueID]={}),a&&a===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=u[i])&&c[0]===P&&c[1]===o)return d[2]=c[2];if(u[i]=d,d[2]=e(t,n,l))return!0}return!1}}function be(e){return e.length>1?function(t,n,r){for(var a=e.length;a--;)if(!e[a](t,n,r))return!1;return!0}:e[0]}function Pe(e,t,n,r,a){for(var i,s=[],o=0,l=e.length,c=null!=t;o<l;o++)(i=e[o])&&(n&&!n(i,r,a)||(s.push(i),c&&t.push(o)));return s}function we(e,t,n,r,a,i){return r&&!r[_]&&(r=we(r)),a&&!a[_]&&(a=we(a,i)),ce((function(i,s,o,l){var c,u,p,d=[],h=[],f=s.length,m=i||function(e,t,n){for(var r=0,a=t.length;r<a;r++)oe(e,t[r],n);return n}(t||"*",o.nodeType?[o]:o,[]),S=!e||!i&&t?m:Pe(m,d,e,o,l),y=n?a||(i?e:f||r)?[]:s:S;if(n&&n(S,y,o,l),r)for(c=Pe(y,h),r(c,[],o,l),u=c.length;u--;)(p=c[u])&&(y[h[u]]=!(S[h[u]]=p));if(i){if(a||e){if(a){for(c=[],u=y.length;u--;)(p=y[u])&&c.push(S[u]=p);a(null,y=[],c,l)}for(u=y.length;u--;)(p=y[u])&&(c=a?H(i,p):d[u])>-1&&(i[c]=!(s[c]=p))}}else y=Pe(y===s?y.splice(f,y.length):y),a?a(null,s,y,l):R.apply(s,y)}))}function Ee(e){for(var t,n,a,i=e.length,s=r.relative[e[0].type],o=s||r.relative[" "],l=s?1:0,u=_e((function(e){return e===t}),o,!0),p=_e((function(e){return H(t,e)>-1}),o,!0),d=[function(e,n,r){var a=!s&&(r||n!==c)||((t=n).nodeType?u(e,n,r):p(e,n,r));return t=null,a}];l<i;l++)if(n=r.relative[e[l].type])d=[_e(be(d),n)];else{if((n=r.filter[e[l].type].apply(null,e[l].matches))[_]){for(a=++l;a<i&&!r.relative[e[a].type];a++);return we(l>1&&be(d),l>1&&ve(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(B,"$1"),n,l<a&&Ee(e.slice(l,a)),a<i&&Ee(e=e.slice(a)),a<i&&ve(e))}d.push(n)}return be(d)}return ge.prototype=r.filters=r.pseudos,r.setFilters=new ge,s=oe.tokenize=function(e,t){var n,a,i,s,o,l,c,u=k[e+" "];if(u)return t?0:u.slice(0);for(o=e,l=[],c=r.preFilter;o;){for(s in n&&!(a=K.exec(o))||(a&&(o=o.slice(a[0].length)||o),l.push(i=[])),n=!1,(a=q.exec(o))&&(n=a.shift(),i.push({value:n,type:a[0].replace(B," ")}),o=o.slice(n.length)),r.filter)!(a=z[s].exec(o))||c[s]&&!(a=c[s](a))||(n=a.shift(),i.push({value:n,type:s,matches:a}),o=o.slice(n.length));if(!n)break}return t?o.length:o?oe.error(e):k(e,l).slice(0)},o=oe.compile=function(e,t){var n,a=[],i=[],o=T[e+" "];if(!o){for(t||(t=s(e)),n=t.length;n--;)(o=Ee(t[n]))[_]?a.push(o):i.push(o);(o=T(e,function(e,t){var n=t.length>0,a=e.length>0,i=function(i,s,o,l,u){var p,f,S,y=0,g="0",v=i&&[],_=[],b=c,w=i||a&&r.find.TAG("*",u),E=P+=null==b?1:Math.random()||.1,k=w.length;for(u&&(c=s==h||s||u);g!==k&&null!=(p=w[g]);g++){if(a&&p){for(f=0,s||p.ownerDocument==h||(d(p),o=!m);S=e[f++];)if(S(p,s||h,o)){l.push(p);break}u&&(P=E)}n&&((p=!S&&p)&&y--,i&&v.push(p))}if(y+=g,n&&g!==y){for(f=0;S=t[f++];)S(v,_,s,o);if(i){if(y>0)for(;g--;)v[g]||_[g]||(_[g]=x.call(l));_=Pe(_)}R.apply(l,_),u&&!i&&_.length>0&&y+t.length>1&&oe.uniqueSort(l)}return u&&(P=E,c=b),v};return n?ce(i):i}(i,a))).selector=e}return o},l=oe.select=function(e,t,n,a){var i,l,c,u,p,d="function"==typeof e&&e,h=!a&&s(e=d.selector||e);if(n=n||[],1===h.length){if((l=h[0]=h[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===t.nodeType&&m&&r.relative[l[1].type]){if(!(t=(r.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(i=z.needsContext.test(e)?0:l.length;i--&&(c=l[i],!r.relative[u=c.type]);)if((p=r.find[u])&&(a=p(c.matches[0].replace(te,ne),ee.test(l[0].type)&&ye(t.parentNode)||t))){if(l.splice(i,1),!(e=a.length&&ve(l)))return R.apply(n,a),n;break}}return(d||o(e,h))(a,t,!m,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},n.sortStable=_.split("").sort(I).join("")===_,n.detectDuplicates=!!p,d(),n.sortDetached=ue((function(e){return 1&e.compareDocumentPosition(h.createElement("fieldset"))})),ue((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||pe("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ue((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||pe("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ue((function(e){return null==e.getAttribute("disabled")}))||pe(F,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),oe}(n);w.find=k,w.expr=k.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=k.uniqueSort,w.text=k.getText,w.isXMLDoc=k.isXML,w.contains=k.contains,w.escapeSelector=k.escape;var T=function(e,t,n){for(var r=[],a=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(a&&w(e).is(n))break;r.push(e)}return r},C=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},I=w.expr.match.needsContext;function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var O=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function x(e,t,n){return y(t)?w.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?w.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?w.grep(e,(function(e){return u.call(t,e)>-1!==n})):w.filter(t,e,n)}w.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?w.find.matchesSelector(r,e)?[r]:[]:w.find.matches(e,w.grep(t,(function(e){return 1===e.nodeType})))},w.fn.extend({find:function(e){var t,n,r=this.length,a=this;if("string"!=typeof e)return this.pushStack(w(e).filter((function(){for(t=0;t<r;t++)if(w.contains(a[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)w.find(e,a[t],n);return r>1?w.uniqueSort(n):n},filter:function(e){return this.pushStack(x(this,e||[],!1))},not:function(e){return this.pushStack(x(this,e||[],!0))},is:function(e){return!!x(this,"string"==typeof e&&I.test(e)?w(e):e||[],!1).length}});var N,R=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(w.fn.init=function(e,t,n){var r,a;if(!e)return this;if(n=n||N,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:R.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof w?t[0]:t,w.merge(this,w.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:v,!0)),O.test(r[1])&&w.isPlainObject(t))for(r in t)y(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(a=v.getElementById(r[2]))&&(this[0]=a,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(w):w.makeArray(e,this)}).prototype=w.fn,N=w(v);var D=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function F(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}w.fn.extend({has:function(e){var t=w(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(w.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,a=this.length,i=[],s="string"!=typeof e&&w(e);if(!I.test(e))for(;r<a;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&w.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?w.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?u.call(w(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),w.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return T(e,"parentNode")},parentsUntil:function(e,t,n){return T(e,"parentNode",n)},next:function(e){return F(e,"nextSibling")},prev:function(e){return F(e,"previousSibling")},nextAll:function(e){return T(e,"nextSibling")},prevAll:function(e){return T(e,"previousSibling")},nextUntil:function(e,t,n){return T(e,"nextSibling",n)},prevUntil:function(e,t,n){return T(e,"previousSibling",n)},siblings:function(e){return C((e.parentNode||{}).firstChild,e)},children:function(e){return C(e.firstChild)},contents:function(e){return null!=e.contentDocument&&s(e.contentDocument)?e.contentDocument:(A(e,"template")&&(e=e.content||e),w.merge([],e.childNodes))}},(function(e,t){w.fn[e]=function(n,r){var a=w.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(a=w.filter(r,a)),this.length>1&&(H[e]||w.uniqueSort(a),D.test(e)&&a.reverse()),this.pushStack(a)}}));var G=/[^\x20\t\r\n\f]+/g;function U(e){return e}function L(e){throw e}function j(e,t,n,r){var a;try{e&&y(a=e.promise)?a.call(e).done(t).fail(n):e&&y(a=e.then)?a.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}w.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return w.each(e.match(G)||[],(function(e,n){t[n]=!0})),t}(e):w.extend({},e);var t,n,r,a,i=[],s=[],o=-1,l=function(){for(a=a||e.once,r=t=!0;s.length;o=-1)for(n=s.shift();++o<i.length;)!1===i[o].apply(n[0],n[1])&&e.stopOnFalse&&(o=i.length,n=!1);e.memory||(n=!1),t=!1,a&&(i=n?[]:"")},c={add:function(){return i&&(n&&!t&&(o=i.length-1,s.push(n)),function t(n){w.each(n,(function(n,r){y(r)?e.unique&&c.has(r)||i.push(r):r&&r.length&&"string"!==P(r)&&t(r)}))}(arguments),n&&!t&&l()),this},remove:function(){return w.each(arguments,(function(e,t){for(var n;(n=w.inArray(t,i,n))>-1;)i.splice(n,1),n<=o&&o--})),this},has:function(e){return e?w.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return a=s=[],i=n="",this},disabled:function(){return!i},lock:function(){return a=s=[],n||t||(i=n=""),this},locked:function(){return!!a},fireWith:function(e,n){return a||(n=[e,(n=n||[]).slice?n.slice():n],s.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},w.extend({Deferred:function(e){var t=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],r="pending",a={state:function(){return r},always:function(){return i.done(arguments).fail(arguments),this},catch:function(e){return a.then(null,e)},pipe:function(){var e=arguments;return w.Deferred((function(n){w.each(t,(function(t,r){var a=y(e[r[4]])&&e[r[4]];i[r[1]]((function(){var e=a&&a.apply(this,arguments);e&&y(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,a?[e]:arguments)}))})),e=null})).promise()},then:function(e,r,a){var i=0;function s(e,t,r,a){return function(){var o=this,l=arguments,c=function(){var n,c;if(!(e<i)){if((n=r.apply(o,l))===t.promise())throw new TypeError("Thenable self-resolution");c=n&&("object"==typeof n||"function"==typeof n)&&n.then,y(c)?a?c.call(n,s(i,t,U,a),s(i,t,L,a)):(i++,c.call(n,s(i,t,U,a),s(i,t,L,a),s(i,t,U,t.notifyWith))):(r!==U&&(o=void 0,l=[n]),(a||t.resolveWith)(o,l))}},u=a?c:function(){try{c()}catch(n){w.Deferred.exceptionHook&&w.Deferred.exceptionHook(n,u.stackTrace),e+1>=i&&(r!==L&&(o=void 0,l=[n]),t.rejectWith(o,l))}};e?u():(w.Deferred.getStackHook&&(u.stackTrace=w.Deferred.getStackHook()),n.setTimeout(u))}}return w.Deferred((function(n){t[0][3].add(s(0,n,y(a)?a:U,n.notifyWith)),t[1][3].add(s(0,n,y(e)?e:U)),t[2][3].add(s(0,n,y(r)?r:L))})).promise()},promise:function(e){return null!=e?w.extend(e,a):a}},i={};return w.each(t,(function(e,n){var s=n[2],o=n[5];a[n[1]]=s.add,o&&s.add((function(){r=o}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),s.add(n[3].fire),i[n[0]]=function(){return i[n[0]+"With"](this===i?void 0:this,arguments),this},i[n[0]+"With"]=s.fireWith})),a.promise(i),e&&e.call(i,i),i},when:function(e){var t=arguments.length,n=t,r=Array(n),a=o.call(arguments),i=w.Deferred(),s=function(e){return function(n){r[e]=this,a[e]=arguments.length>1?o.call(arguments):n,--t||i.resolveWith(r,a)}};if(t<=1&&(j(e,i.done(s(n)).resolve,i.reject,!t),"pending"===i.state()||y(a[n]&&a[n].then)))return i.then();for(;n--;)j(a[n],s(n),i.reject);return i.promise()}});var M=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&M.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},w.readyException=function(e){n.setTimeout((function(){throw e}))};var B=w.Deferred();function K(){v.removeEventListener("DOMContentLoaded",K),n.removeEventListener("load",K),w.ready()}w.fn.ready=function(e){return B.then(e).catch((function(e){w.readyException(e)})),this},w.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--w.readyWait:w.isReady)||(w.isReady=!0,!0!==e&&--w.readyWait>0||B.resolveWith(v,[w]))}}),w.ready.then=B.then,"complete"===v.readyState||"loading"!==v.readyState&&!v.documentElement.doScroll?n.setTimeout(w.ready):(v.addEventListener("DOMContentLoaded",K),n.addEventListener("load",K));var q=function(e,t,n,r,a,i,s){var o=0,l=e.length,c=null==n;if("object"===P(n))for(o in a=!0,n)q(e,t,o,n[o],!0,i,s);else if(void 0!==r&&(a=!0,y(r)||(s=!0),c&&(s?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(w(e),n)})),t))for(;o<l;o++)t(e[o],n,s?r:r.call(e[o],o,t(e[o],n)));return a?e:c?t.call(e):l?t(e[0],n):i},V=/^-ms-/,$=/-([a-z])/g;function W(e,t){return t.toUpperCase()}function z(e){return e.replace(V,"ms-").replace($,W)}var J=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function X(){this.expando=w.expando+X.uid++}X.uid=1,X.prototype={cache:function(e){var t=e[this.expando];return t||(t=Object.create(null),J(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,a=this.cache(e);if("string"==typeof t)a[z(t)]=n;else for(r in t)a[z(r)]=t[r];return a},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][z(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(z):(t=z(t))in r?[t]:t.match(G)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||w.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!w.isEmptyObject(t)}};var Q=new X,Y=new X,Z=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ee=/[A-Z]/g;function te(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ee,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Z.test(e)?JSON.parse(e):e)}(n)}catch(e){}Y.set(e,t,n)}else n=void 0;return n}w.extend({hasData:function(e){return Y.hasData(e)||Q.hasData(e)},data:function(e,t,n){return Y.access(e,t,n)},removeData:function(e,t){Y.remove(e,t)},_data:function(e,t,n){return Q.access(e,t,n)},_removeData:function(e,t){Q.remove(e,t)}}),w.fn.extend({data:function(e,t){var n,r,a,i=this[0],s=i&&i.attributes;if(void 0===e){if(this.length&&(a=Y.get(i),1===i.nodeType&&!Q.get(i,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(r=s[n].name).indexOf("data-")&&(r=z(r.slice(5)),te(i,r,a[r]));Q.set(i,"hasDataAttrs",!0)}return a}return"object"==typeof e?this.each((function(){Y.set(this,e)})):q(this,(function(t){var n;if(i&&void 0===t)return void 0!==(n=Y.get(i,e))||void 0!==(n=te(i,e))?n:void 0;this.each((function(){Y.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){Y.remove(this,e)}))}}),w.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Q.get(e,t),n&&(!r||Array.isArray(n)?r=Q.access(e,t,w.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=w.queue(e,t),r=n.length,a=n.shift(),i=w._queueHooks(e,t);"inprogress"===a&&(a=n.shift(),r--),a&&("fx"===t&&n.unshift("inprogress"),delete i.stop,a.call(e,(function(){w.dequeue(e,t)}),i)),!r&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Q.get(e,n)||Q.access(e,n,{empty:w.Callbacks("once memory").add((function(){Q.remove(e,[t+"queue",n])}))})}}),w.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?w.queue(this[0],e):void 0===t?this:this.each((function(){var n=w.queue(this,e,t);w._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&w.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){w.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,a=w.Deferred(),i=this,s=this.length,o=function(){--r||a.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=Q.get(i[s],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(o));return o(),a.promise(t)}});var ne=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,re=new RegExp("^(?:([+-])=|)("+ne+")([a-z%]*)$","i"),ae=["Top","Right","Bottom","Left"],ie=v.documentElement,se=function(e){return w.contains(e.ownerDocument,e)},oe={composed:!0};ie.getRootNode&&(se=function(e){return w.contains(e.ownerDocument,e)||e.getRootNode(oe)===e.ownerDocument});var le=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&se(e)&&"none"===w.css(e,"display")};function ce(e,t,n,r){var a,i,s=20,o=r?function(){return r.cur()}:function(){return w.css(e,t,"")},l=o(),c=n&&n[3]||(w.cssNumber[t]?"":"px"),u=e.nodeType&&(w.cssNumber[t]||"px"!==c&&+l)&&re.exec(w.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;s--;)w.style(e,t,u+c),(1-i)*(1-(i=o()/l||.5))<=0&&(s=0),u/=i;u*=2,w.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,a=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=u,r.end=a)),a}var ue={};function pe(e){var t,n=e.ownerDocument,r=e.nodeName,a=ue[r];return a||(t=n.body.appendChild(n.createElement(r)),a=w.css(t,"display"),t.parentNode.removeChild(t),"none"===a&&(a="block"),ue[r]=a,a)}function de(e,t){for(var n,r,a=[],i=0,s=e.length;i<s;i++)(r=e[i]).style&&(n=r.style.display,t?("none"===n&&(a[i]=Q.get(r,"display")||null,a[i]||(r.style.display="")),""===r.style.display&&le(r)&&(a[i]=pe(r))):"none"!==n&&(a[i]="none",Q.set(r,"display",n)));for(i=0;i<s;i++)null!=a[i]&&(e[i].style.display=a[i]);return e}w.fn.extend({show:function(){return de(this,!0)},hide:function(){return de(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){le(this)?w(this).show():w(this).hide()}))}});var he,fe,me=/^(?:checkbox|radio)$/i,Se=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ye=/^$|^module$|\/(?:java|ecma)script/i;he=v.createDocumentFragment().appendChild(v.createElement("div")),(fe=v.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),he.appendChild(fe),S.checkClone=he.cloneNode(!0).cloneNode(!0).lastChild.checked,he.innerHTML="<textarea>x</textarea>",S.noCloneChecked=!!he.cloneNode(!0).lastChild.defaultValue,he.innerHTML="<option></option>",S.option=!!he.lastChild;var ge={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ve(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?w.merge([e],n):n}function _e(e,t){for(var n=0,r=e.length;n<r;n++)Q.set(e[n],"globalEval",!t||Q.get(t[n],"globalEval"))}ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td,S.option||(ge.optgroup=ge.option=[1,"<select multiple='multiple'>","</select>"]);var be=/<|&#?\w+;/;function Pe(e,t,n,r,a){for(var i,s,o,l,c,u,p=t.createDocumentFragment(),d=[],h=0,f=e.length;h<f;h++)if((i=e[h])||0===i)if("object"===P(i))w.merge(d,i.nodeType?[i]:i);else if(be.test(i)){for(s=s||p.appendChild(t.createElement("div")),o=(Se.exec(i)||["",""])[1].toLowerCase(),l=ge[o]||ge._default,s.innerHTML=l[1]+w.htmlPrefilter(i)+l[2],u=l[0];u--;)s=s.lastChild;w.merge(d,s.childNodes),(s=p.firstChild).textContent=""}else d.push(t.createTextNode(i));for(p.textContent="",h=0;i=d[h++];)if(r&&w.inArray(i,r)>-1)a&&a.push(i);else if(c=se(i),s=ve(p.appendChild(i),"script"),c&&_e(s),n)for(u=0;i=s[u++];)ye.test(i.type||"")&&n.push(i);return p}var we=/^key/,Ee=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ke=/^([^.]*)(?:\.(.+)|)/;function Te(){return!0}function Ce(){return!1}function Ie(e,t){return e===function(){try{return v.activeElement}catch(e){}}()==("focus"===t)}function Ae(e,t,n,r,a,i){var s,o;if("object"==typeof t){for(o in"string"!=typeof n&&(r=r||n,n=void 0),t)Ae(e,o,n,r,t[o],i);return e}if(null==r&&null==a?(a=n,r=n=void 0):null==a&&("string"==typeof n?(a=r,r=void 0):(a=r,r=n,n=void 0)),!1===a)a=Ce;else if(!a)return e;return 1===i&&(s=a,(a=function(e){return w().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=w.guid++)),e.each((function(){w.event.add(this,t,a,r,n)}))}function Oe(e,t,n){n?(Q.set(e,t,!1),w.event.add(e,t,{namespace:!1,handler:function(e){var r,a,i=Q.get(this,t);if(1&e.isTrigger&&this[t]){if(i.length)(w.event.special[t]||{}).delegateType&&e.stopPropagation();else if(i=o.call(arguments),Q.set(this,t,i),r=n(this,t),this[t](),i!==(a=Q.get(this,t))||r?Q.set(this,t,!1):a={},i!==a)return e.stopImmediatePropagation(),e.preventDefault(),a.value}else i.length&&(Q.set(this,t,{value:w.event.trigger(w.extend(i[0],w.Event.prototype),i.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Q.get(e,t)&&w.event.add(e,t,Te)}w.event={global:{},add:function(e,t,n,r,a){var i,s,o,l,c,u,p,d,h,f,m,S=Q.get(e);if(J(e))for(n.handler&&(n=(i=n).handler,a=i.selector),a&&w.find.matchesSelector(ie,a),n.guid||(n.guid=w.guid++),(l=S.events)||(l=S.events=Object.create(null)),(s=S.handle)||(s=S.handle=function(t){return void 0!==w&&w.event.triggered!==t.type?w.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(G)||[""]).length;c--;)h=m=(o=ke.exec(t[c])||[])[1],f=(o[2]||"").split(".").sort(),h&&(p=w.event.special[h]||{},h=(a?p.delegateType:p.bindType)||h,p=w.event.special[h]||{},u=w.extend({type:h,origType:m,data:r,handler:n,guid:n.guid,selector:a,needsContext:a&&w.expr.match.needsContext.test(a),namespace:f.join(".")},i),(d=l[h])||((d=l[h]=[]).delegateCount=0,p.setup&&!1!==p.setup.call(e,r,f,s)||e.addEventListener&&e.addEventListener(h,s)),p.add&&(p.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),a?d.splice(d.delegateCount++,0,u):d.push(u),w.event.global[h]=!0)},remove:function(e,t,n,r,a){var i,s,o,l,c,u,p,d,h,f,m,S=Q.hasData(e)&&Q.get(e);if(S&&(l=S.events)){for(c=(t=(t||"").match(G)||[""]).length;c--;)if(h=m=(o=ke.exec(t[c])||[])[1],f=(o[2]||"").split(".").sort(),h){for(p=w.event.special[h]||{},d=l[h=(r?p.delegateType:p.bindType)||h]||[],o=o[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=i=d.length;i--;)u=d[i],!a&&m!==u.origType||n&&n.guid!==u.guid||o&&!o.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(d.splice(i,1),u.selector&&d.delegateCount--,p.remove&&p.remove.call(e,u));s&&!d.length&&(p.teardown&&!1!==p.teardown.call(e,f,S.handle)||w.removeEvent(e,h,S.handle),delete l[h])}else for(h in l)w.event.remove(e,h+t[c],n,r,!0);w.isEmptyObject(l)&&Q.remove(e,"handle events")}},dispatch:function(e){var t,n,r,a,i,s,o=new Array(arguments.length),l=w.event.fix(e),c=(Q.get(this,"events")||Object.create(null))[l.type]||[],u=w.event.special[l.type]||{};for(o[0]=l,t=1;t<arguments.length;t++)o[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(s=w.event.handlers.call(this,l,c),t=0;(a=s[t++])&&!l.isPropagationStopped();)for(l.currentTarget=a.elem,n=0;(i=a.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==i.namespace&&!l.rnamespace.test(i.namespace)||(l.handleObj=i,l.data=i.data,void 0!==(r=((w.event.special[i.origType]||{}).handle||i.handler).apply(a.elem,o))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,a,i,s,o=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(i=[],s={},n=0;n<l;n++)void 0===s[a=(r=t[n]).selector+" "]&&(s[a]=r.needsContext?w(a,this).index(c)>-1:w.find(a,this,null,[c]).length),s[a]&&i.push(r);i.length&&o.push({elem:c,handlers:i})}return c=this,l<t.length&&o.push({elem:c,handlers:t.slice(l)}),o},addProp:function(e,t){Object.defineProperty(w.Event.prototype,e,{enumerable:!0,configurable:!0,get:y(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[w.expando]?e:new w.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return me.test(t.type)&&t.click&&A(t,"input")&&Oe(t,"click",Te),!1},trigger:function(e){var t=this||e;return me.test(t.type)&&t.click&&A(t,"input")&&Oe(t,"click"),!0},_default:function(e){var t=e.target;return me.test(t.type)&&t.click&&A(t,"input")&&Q.get(t,"click")||A(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},w.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},w.Event=function(e,t){if(!(this instanceof w.Event))return new w.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Te:Ce,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&w.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[w.expando]=!0},w.Event.prototype={constructor:w.Event,isDefaultPrevented:Ce,isPropagationStopped:Ce,isImmediatePropagationStopped:Ce,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Te,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Te,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Te,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},w.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&we.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Ee.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},w.event.addProp),w.each({focus:"focusin",blur:"focusout"},(function(e,t){w.event.special[e]={setup:function(){return Oe(this,e,Ie),!1},trigger:function(){return Oe(this,e),!0},delegateType:t}})),w.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){w.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,a=e.relatedTarget,i=e.handleObj;return a&&(a===r||w.contains(r,a))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}})),w.fn.extend({on:function(e,t,n,r){return Ae(this,e,t,n,r)},one:function(e,t,n,r){return Ae(this,e,t,n,r,1)},off:function(e,t,n){var r,a;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,w(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(a in e)this.off(a,t,e[a]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ce),this.each((function(){w.event.remove(this,e,n,t)}))}});var xe=/<script|<style|<link/i,Ne=/checked\s*(?:[^=]|=\s*.checked.)/i,Re=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function De(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&w(e).children("tbody")[0]||e}function He(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Fe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ge(e,t){var n,r,a,i,s,o;if(1===t.nodeType){if(Q.hasData(e)&&(o=Q.get(e).events))for(a in Q.remove(t,"handle events"),o)for(n=0,r=o[a].length;n<r;n++)w.event.add(t,a,o[a][n]);Y.hasData(e)&&(i=Y.access(e),s=w.extend({},i),Y.set(t,s))}}function Ue(e,t){var n=t.nodeName.toLowerCase();"input"===n&&me.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Le(e,t,n,r){t=l(t);var a,i,s,o,c,u,p=0,d=e.length,h=d-1,f=t[0],m=y(f);if(m||d>1&&"string"==typeof f&&!S.checkClone&&Ne.test(f))return e.each((function(a){var i=e.eq(a);m&&(t[0]=f.call(this,a,i.html())),Le(i,t,n,r)}));if(d&&(i=(a=Pe(t,e[0].ownerDocument,!1,e,r)).firstChild,1===a.childNodes.length&&(a=i),i||r)){for(o=(s=w.map(ve(a,"script"),He)).length;p<d;p++)c=a,p!==h&&(c=w.clone(c,!0,!0),o&&w.merge(s,ve(c,"script"))),n.call(e[p],c,p);if(o)for(u=s[s.length-1].ownerDocument,w.map(s,Fe),p=0;p<o;p++)c=s[p],ye.test(c.type||"")&&!Q.access(c,"globalEval")&&w.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?w._evalUrl&&!c.noModule&&w._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):b(c.textContent.replace(Re,""),c,u))}return e}function je(e,t,n){for(var r,a=t?w.filter(t,e):e,i=0;null!=(r=a[i]);i++)n||1!==r.nodeType||w.cleanData(ve(r)),r.parentNode&&(n&&se(r)&&_e(ve(r,"script")),r.parentNode.removeChild(r));return e}w.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,a,i,s,o=e.cloneNode(!0),l=se(e);if(!(S.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||w.isXMLDoc(e)))for(s=ve(o),r=0,a=(i=ve(e)).length;r<a;r++)Ue(i[r],s[r]);if(t)if(n)for(i=i||ve(e),s=s||ve(o),r=0,a=i.length;r<a;r++)Ge(i[r],s[r]);else Ge(e,o);return(s=ve(o,"script")).length>0&&_e(s,!l&&ve(e,"script")),o},cleanData:function(e){for(var t,n,r,a=w.event.special,i=0;void 0!==(n=e[i]);i++)if(J(n)){if(t=n[Q.expando]){if(t.events)for(r in t.events)a[r]?w.event.remove(n,r):w.removeEvent(n,r,t.handle);n[Q.expando]=void 0}n[Y.expando]&&(n[Y.expando]=void 0)}}}),w.fn.extend({detach:function(e){return je(this,e,!0)},remove:function(e){return je(this,e)},text:function(e){return q(this,(function(e){return void 0===e?w.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Le(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||De(this,e).appendChild(e)}))},prepend:function(){return Le(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=De(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Le(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Le(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(w.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return w.clone(this,e,t)}))},html:function(e){return q(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!xe.test(e)&&!ge[(Se.exec(e)||["",""])[1].toLowerCase()]){e=w.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(w.cleanData(ve(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Le(this,arguments,(function(t){var n=this.parentNode;w.inArray(this,e)<0&&(w.cleanData(ve(this)),n&&n.replaceChild(t,this))}),e)}}),w.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){w.fn[e]=function(e){for(var n,r=[],a=w(e),i=a.length-1,s=0;s<=i;s++)n=s===i?this:this.clone(!0),w(a[s])[t](n),c.apply(r,n.get());return this.pushStack(r)}}));var Me=new RegExp("^("+ne+")(?!px)[a-z%]+$","i"),Be=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},Ke=function(e,t,n){var r,a,i={};for(a in t)i[a]=e.style[a],e.style[a]=t[a];for(a in r=n.call(e),t)e.style[a]=i[a];return r},qe=new RegExp(ae.join("|"),"i");function Ve(e,t,n){var r,a,i,s,o=e.style;return(n=n||Be(e))&&(""!==(s=n.getPropertyValue(t)||n[t])||se(e)||(s=w.style(e,t)),!S.pixelBoxStyles()&&Me.test(s)&&qe.test(t)&&(r=o.width,a=o.minWidth,i=o.maxWidth,o.minWidth=o.maxWidth=o.width=s,s=n.width,o.width=r,o.minWidth=a,o.maxWidth=i)),void 0!==s?s+"":s}function $e(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ie.appendChild(c).appendChild(u);var e=n.getComputedStyle(u);r="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",s=36===t(e.right),a=36===t(e.width),u.style.position="absolute",i=12===t(u.offsetWidth/3),ie.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var r,a,i,s,o,l,c=v.createElement("div"),u=v.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",S.clearCloneStyle="content-box"===u.style.backgroundClip,w.extend(S,{boxSizingReliable:function(){return e(),a},pixelBoxStyles:function(){return e(),s},pixelPosition:function(){return e(),r},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,r,a;return null==o&&(e=v.createElement("table"),t=v.createElement("tr"),r=v.createElement("div"),e.style.cssText="position:absolute;left:-11111px",t.style.height="1px",r.style.height="9px",ie.appendChild(e).appendChild(t).appendChild(r),a=n.getComputedStyle(t),o=parseInt(a.height)>3,ie.removeChild(e)),o}}))}();var We=["Webkit","Moz","ms"],ze=v.createElement("div").style,Je={};function Xe(e){var t=w.cssProps[e]||Je[e];return t||(e in ze?e:Je[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=We.length;n--;)if((e=We[n]+t)in ze)return e}(e)||e)}var Qe=/^(none|table(?!-c[ea]).+)/,Ye=/^--/,Ze={position:"absolute",visibility:"hidden",display:"block"},et={letterSpacing:"0",fontWeight:"400"};function tt(e,t,n){var r=re.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function nt(e,t,n,r,a,i){var s="width"===t?1:0,o=0,l=0;if(n===(r?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(l+=w.css(e,n+ae[s],!0,a)),r?("content"===n&&(l-=w.css(e,"padding"+ae[s],!0,a)),"margin"!==n&&(l-=w.css(e,"border"+ae[s]+"Width",!0,a))):(l+=w.css(e,"padding"+ae[s],!0,a),"padding"!==n?l+=w.css(e,"border"+ae[s]+"Width",!0,a):o+=w.css(e,"border"+ae[s]+"Width",!0,a));return!r&&i>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-i-l-o-.5))||0),l}function rt(e,t,n){var r=Be(e),a=(!S.boxSizingReliable()||n)&&"border-box"===w.css(e,"boxSizing",!1,r),i=a,s=Ve(e,t,r),o="offset"+t[0].toUpperCase()+t.slice(1);if(Me.test(s)){if(!n)return s;s="auto"}return(!S.boxSizingReliable()&&a||!S.reliableTrDimensions()&&A(e,"tr")||"auto"===s||!parseFloat(s)&&"inline"===w.css(e,"display",!1,r))&&e.getClientRects().length&&(a="border-box"===w.css(e,"boxSizing",!1,r),(i=o in e)&&(s=e[o])),(s=parseFloat(s)||0)+nt(e,t,n||(a?"border":"content"),i,r,s)+"px"}function at(e,t,n,r,a){return new at.prototype.init(e,t,n,r,a)}w.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ve(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var a,i,s,o=z(t),l=Ye.test(t),c=e.style;if(l||(t=Xe(o)),s=w.cssHooks[t]||w.cssHooks[o],void 0===n)return s&&"get"in s&&void 0!==(a=s.get(e,!1,r))?a:c[t];"string"===(i=typeof n)&&(a=re.exec(n))&&a[1]&&(n=ce(e,t,a),i="number"),null!=n&&n==n&&("number"!==i||l||(n+=a&&a[3]||(w.cssNumber[o]?"":"px")),S.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,r))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var a,i,s,o=z(t);return Ye.test(t)||(t=Xe(o)),(s=w.cssHooks[t]||w.cssHooks[o])&&"get"in s&&(a=s.get(e,!0,n)),void 0===a&&(a=Ve(e,t,r)),"normal"===a&&t in et&&(a=et[t]),""===n||n?(i=parseFloat(a),!0===n||isFinite(i)?i||0:a):a}}),w.each(["height","width"],(function(e,t){w.cssHooks[t]={get:function(e,n,r){if(n)return!Qe.test(w.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?rt(e,t,r):Ke(e,Ze,(function(){return rt(e,t,r)}))},set:function(e,n,r){var a,i=Be(e),s=!S.scrollboxSize()&&"absolute"===i.position,o=(s||r)&&"border-box"===w.css(e,"boxSizing",!1,i),l=r?nt(e,t,r,o,i):0;return o&&s&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(i[t])-nt(e,t,"border",!1,i)-.5)),l&&(a=re.exec(n))&&"px"!==(a[3]||"px")&&(e.style[t]=n,n=w.css(e,t)),tt(0,n,l)}}})),w.cssHooks.marginLeft=$e(S.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ve(e,"marginLeft"))||e.getBoundingClientRect().left-Ke(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),w.each({margin:"",padding:"",border:"Width"},(function(e,t){w.cssHooks[e+t]={expand:function(n){for(var r=0,a={},i="string"==typeof n?n.split(" "):[n];r<4;r++)a[e+ae[r]+t]=i[r]||i[r-2]||i[0];return a}},"margin"!==e&&(w.cssHooks[e+t].set=tt)})),w.fn.extend({css:function(e,t){return q(this,(function(e,t,n){var r,a,i={},s=0;if(Array.isArray(t)){for(r=Be(e),a=t.length;s<a;s++)i[t[s]]=w.css(e,t[s],!1,r);return i}return void 0!==n?w.style(e,t,n):w.css(e,t)}),e,t,arguments.length>1)}}),w.Tween=at,at.prototype={constructor:at,init:function(e,t,n,r,a,i){this.elem=e,this.prop=n,this.easing=a||w.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=i||(w.cssNumber[n]?"":"px")},cur:function(){var e=at.propHooks[this.prop];return e&&e.get?e.get(this):at.propHooks._default.get(this)},run:function(e){var t,n=at.propHooks[this.prop];return this.options.duration?this.pos=t=w.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):at.propHooks._default.set(this),this}},at.prototype.init.prototype=at.prototype,at.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=w.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){w.fx.step[e.prop]?w.fx.step[e.prop](e):1!==e.elem.nodeType||!w.cssHooks[e.prop]&&null==e.elem.style[Xe(e.prop)]?e.elem[e.prop]=e.now:w.style(e.elem,e.prop,e.now+e.unit)}}},at.propHooks.scrollTop=at.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},w.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},w.fx=at.prototype.init,w.fx.step={};var it,st,ot=/^(?:toggle|show|hide)$/,lt=/queueHooks$/;function ct(){st&&(!1===v.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(ct):n.setTimeout(ct,w.fx.interval),w.fx.tick())}function ut(){return n.setTimeout((function(){it=void 0})),it=Date.now()}function pt(e,t){var n,r=0,a={height:e};for(t=t?1:0;r<4;r+=2-t)a["margin"+(n=ae[r])]=a["padding"+n]=e;return t&&(a.opacity=a.width=e),a}function dt(e,t,n){for(var r,a=(ht.tweeners[t]||[]).concat(ht.tweeners["*"]),i=0,s=a.length;i<s;i++)if(r=a[i].call(n,t,e))return r}function ht(e,t,n){var r,a,i=0,s=ht.prefilters.length,o=w.Deferred().always((function(){delete l.elem})),l=function(){if(a)return!1;for(var t=it||ut(),n=Math.max(0,c.startTime+c.duration-t),r=1-(n/c.duration||0),i=0,s=c.tweens.length;i<s;i++)c.tweens[i].run(r);return o.notifyWith(e,[c,r,n]),r<1&&s?n:(s||o.notifyWith(e,[c,1,0]),o.resolveWith(e,[c]),!1)},c=o.promise({elem:e,props:w.extend({},t),opts:w.extend(!0,{specialEasing:{},easing:w.easing._default},n),originalProperties:t,originalOptions:n,startTime:it||ut(),duration:n.duration,tweens:[],createTween:function(t,n){var r=w.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(a)return this;for(a=!0;n<r;n++)c.tweens[n].run(1);return t?(o.notifyWith(e,[c,1,0]),o.resolveWith(e,[c,t])):o.rejectWith(e,[c,t]),this}}),u=c.props;for(!function(e,t){var n,r,a,i,s;for(n in e)if(a=t[r=z(n)],i=e[n],Array.isArray(i)&&(a=i[1],i=e[n]=i[0]),n!==r&&(e[r]=i,delete e[n]),(s=w.cssHooks[r])&&"expand"in s)for(n in i=s.expand(i),delete e[r],i)n in e||(e[n]=i[n],t[n]=a);else t[r]=a}(u,c.opts.specialEasing);i<s;i++)if(r=ht.prefilters[i].call(c,e,u,c.opts))return y(r.stop)&&(w._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return w.map(u,dt,c),y(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),w.fx.timer(w.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}w.Animation=w.extend(ht,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ce(n.elem,e,re.exec(t),n),n}]},tweener:function(e,t){y(e)?(t=e,e=["*"]):e=e.match(G);for(var n,r=0,a=e.length;r<a;r++)n=e[r],ht.tweeners[n]=ht.tweeners[n]||[],ht.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,a,i,s,o,l,c,u,p="width"in t||"height"in t,d=this,h={},f=e.style,m=e.nodeType&&le(e),S=Q.get(e,"fxshow");for(r in n.queue||(null==(s=w._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,o=s.empty.fire,s.empty.fire=function(){s.unqueued||o()}),s.unqueued++,d.always((function(){d.always((function(){s.unqueued--,w.queue(e,"fx").length||s.empty.fire()}))}))),t)if(a=t[r],ot.test(a)){if(delete t[r],i=i||"toggle"===a,a===(m?"hide":"show")){if("show"!==a||!S||void 0===S[r])continue;m=!0}h[r]=S&&S[r]||w.style(e,r)}if((l=!w.isEmptyObject(t))||!w.isEmptyObject(h))for(r in p&&1===e.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=S&&S.display)&&(c=Q.get(e,"display")),"none"===(u=w.css(e,"display"))&&(c?u=c:(de([e],!0),c=e.style.display||c,u=w.css(e,"display"),de([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===w.css(e,"float")&&(l||(d.done((function(){f.display=c})),null==c&&(u=f.display,c="none"===u?"":u)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",d.always((function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}))),l=!1,h)l||(S?"hidden"in S&&(m=S.hidden):S=Q.access(e,"fxshow",{display:c}),i&&(S.hidden=!m),m&&de([e],!0),d.done((function(){for(r in m||de([e]),Q.remove(e,"fxshow"),h)w.style(e,r,h[r])}))),l=dt(m?S[r]:0,r,d),r in S||(S[r]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?ht.prefilters.unshift(e):ht.prefilters.push(e)}}),w.speed=function(e,t,n){var r=e&&"object"==typeof e?w.extend({},e):{complete:n||!n&&t||y(e)&&e,duration:e,easing:n&&t||t&&!y(t)&&t};return w.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in w.fx.speeds?r.duration=w.fx.speeds[r.duration]:r.duration=w.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){y(r.old)&&r.old.call(this),r.queue&&w.dequeue(this,r.queue)},r},w.fn.extend({fadeTo:function(e,t,n,r){return this.filter(le).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var a=w.isEmptyObject(e),i=w.speed(t,n,r),s=function(){var t=ht(this,w.extend({},e),i);(a||Q.get(this,"finish"))&&t.stop(!0)};return s.finish=s,a||!1===i.queue?this.each(s):this.queue(i.queue,s)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,a=null!=e&&e+"queueHooks",i=w.timers,s=Q.get(this);if(a)s[a]&&s[a].stop&&r(s[a]);else for(a in s)s[a]&&s[a].stop&&lt.test(a)&&r(s[a]);for(a=i.length;a--;)i[a].elem!==this||null!=e&&i[a].queue!==e||(i[a].anim.stop(n),t=!1,i.splice(a,1));!t&&n||w.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=Q.get(this),r=n[e+"queue"],a=n[e+"queueHooks"],i=w.timers,s=r?r.length:0;for(n.finish=!0,w.queue(this,e,[]),a&&a.stop&&a.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<s;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),w.each(["toggle","show","hide"],(function(e,t){var n=w.fn[t];w.fn[t]=function(e,r,a){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(pt(t,!0),e,r,a)}})),w.each({slideDown:pt("show"),slideUp:pt("hide"),slideToggle:pt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){w.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),w.timers=[],w.fx.tick=function(){var e,t=0,n=w.timers;for(it=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||w.fx.stop(),it=void 0},w.fx.timer=function(e){w.timers.push(e),w.fx.start()},w.fx.interval=13,w.fx.start=function(){st||(st=!0,ct())},w.fx.stop=function(){st=null},w.fx.speeds={slow:600,fast:200,_default:400},w.fn.delay=function(e,t){return e=w.fx&&w.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,r){var a=n.setTimeout(t,e);r.stop=function(){n.clearTimeout(a)}}))},function(){var e=v.createElement("input"),t=v.createElement("select").appendChild(v.createElement("option"));e.type="checkbox",S.checkOn=""!==e.value,S.optSelected=t.selected,(e=v.createElement("input")).value="t",e.type="radio",S.radioValue="t"===e.value}();var ft,mt=w.expr.attrHandle;w.fn.extend({attr:function(e,t){return q(this,w.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){w.removeAttr(this,e)}))}}),w.extend({attr:function(e,t,n){var r,a,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===e.getAttribute?w.prop(e,t,n):(1===i&&w.isXMLDoc(e)||(a=w.attrHooks[t.toLowerCase()]||(w.expr.match.bool.test(t)?ft:void 0)),void 0!==n?null===n?void w.removeAttr(e,t):a&&"set"in a&&void 0!==(r=a.set(e,n,t))?r:(e.setAttribute(t,n+""),n):a&&"get"in a&&null!==(r=a.get(e,t))?r:null==(r=w.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!S.radioValue&&"radio"===t&&A(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,a=t&&t.match(G);if(a&&1===e.nodeType)for(;n=a[r++];)e.removeAttribute(n)}}),ft={set:function(e,t,n){return!1===t?w.removeAttr(e,n):e.setAttribute(n,n),n}},w.each(w.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=mt[t]||w.find.attr;mt[t]=function(e,t,r){var a,i,s=t.toLowerCase();return r||(i=mt[s],mt[s]=a,a=null!=n(e,t,r)?s:null,mt[s]=i),a}}));var St=/^(?:input|select|textarea|button)$/i,yt=/^(?:a|area)$/i;function gt(e){return(e.match(G)||[]).join(" ")}function vt(e){return e.getAttribute&&e.getAttribute("class")||""}function _t(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(G)||[]}w.fn.extend({prop:function(e,t){return q(this,w.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[w.propFix[e]||e]}))}}),w.extend({prop:function(e,t,n){var r,a,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&w.isXMLDoc(e)||(t=w.propFix[t]||t,a=w.propHooks[t]),void 0!==n?a&&"set"in a&&void 0!==(r=a.set(e,n,t))?r:e[t]=n:a&&"get"in a&&null!==(r=a.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=w.find.attr(e,"tabindex");return t?parseInt(t,10):St.test(e.nodeName)||yt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),S.optSelected||(w.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){w.propFix[this.toLowerCase()]=this})),w.fn.extend({addClass:function(e){var t,n,r,a,i,s,o,l=0;if(y(e))return this.each((function(t){w(this).addClass(e.call(this,t,vt(this)))}));if((t=_t(e)).length)for(;n=this[l++];)if(a=vt(n),r=1===n.nodeType&&" "+gt(a)+" "){for(s=0;i=t[s++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");a!==(o=gt(r))&&n.setAttribute("class",o)}return this},removeClass:function(e){var t,n,r,a,i,s,o,l=0;if(y(e))return this.each((function(t){w(this).removeClass(e.call(this,t,vt(this)))}));if(!arguments.length)return this.attr("class","");if((t=_t(e)).length)for(;n=this[l++];)if(a=vt(n),r=1===n.nodeType&&" "+gt(a)+" "){for(s=0;i=t[s++];)for(;r.indexOf(" "+i+" ")>-1;)r=r.replace(" "+i+" "," ");a!==(o=gt(r))&&n.setAttribute("class",o)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):y(e)?this.each((function(n){w(this).toggleClass(e.call(this,n,vt(this),t),t)})):this.each((function(){var t,a,i,s;if(r)for(a=0,i=w(this),s=_t(e);t=s[a++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||((t=vt(this))&&Q.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Q.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+gt(vt(n))+" ").indexOf(t)>-1)return!0;return!1}});var bt=/\r/g;w.fn.extend({val:function(e){var t,n,r,a=this[0];return arguments.length?(r=y(e),this.each((function(n){var a;1===this.nodeType&&(null==(a=r?e.call(this,n,w(this).val()):e)?a="":"number"==typeof a?a+="":Array.isArray(a)&&(a=w.map(a,(function(e){return null==e?"":e+""}))),(t=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,a,"value")||(this.value=a))}))):a?(t=w.valHooks[a.type]||w.valHooks[a.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(a,"value"))?n:"string"==typeof(n=a.value)?n.replace(bt,""):null==n?"":n:void 0}}),w.extend({valHooks:{option:{get:function(e){var t=w.find.attr(e,"value");return null!=t?t:gt(w.text(e))}},select:{get:function(e){var t,n,r,a=e.options,i=e.selectedIndex,s="select-one"===e.type,o=s?null:[],l=s?i+1:a.length;for(r=i<0?l:s?i:0;r<l;r++)if(((n=a[r]).selected||r===i)&&!n.disabled&&(!n.parentNode.disabled||!A(n.parentNode,"optgroup"))){if(t=w(n).val(),s)return t;o.push(t)}return o},set:function(e,t){for(var n,r,a=e.options,i=w.makeArray(t),s=a.length;s--;)((r=a[s]).selected=w.inArray(w.valHooks.option.get(r),i)>-1)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),w.each(["radio","checkbox"],(function(){w.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=w.inArray(w(e).val(),t)>-1}},S.checkOn||(w.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),S.focusin="onfocusin"in n;var Pt=/^(?:focusinfocus|focusoutblur)$/,wt=function(e){e.stopPropagation()};w.extend(w.event,{trigger:function(e,t,r,a){var i,s,o,l,c,u,p,d,f=[r||v],m=h.call(e,"type")?e.type:e,S=h.call(e,"namespace")?e.namespace.split("."):[];if(s=d=o=r=r||v,3!==r.nodeType&&8!==r.nodeType&&!Pt.test(m+w.event.triggered)&&(m.indexOf(".")>-1&&(S=m.split("."),m=S.shift(),S.sort()),c=m.indexOf(":")<0&&"on"+m,(e=e[w.expando]?e:new w.Event(m,"object"==typeof e&&e)).isTrigger=a?2:3,e.namespace=S.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+S.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:w.makeArray(t,[e]),p=w.event.special[m]||{},a||!p.trigger||!1!==p.trigger.apply(r,t))){if(!a&&!p.noBubble&&!g(r)){for(l=p.delegateType||m,Pt.test(l+m)||(s=s.parentNode);s;s=s.parentNode)f.push(s),o=s;o===(r.ownerDocument||v)&&f.push(o.defaultView||o.parentWindow||n)}for(i=0;(s=f[i++])&&!e.isPropagationStopped();)d=s,e.type=i>1?l:p.bindType||m,(u=(Q.get(s,"events")||Object.create(null))[e.type]&&Q.get(s,"handle"))&&u.apply(s,t),(u=c&&s[c])&&u.apply&&J(s)&&(e.result=u.apply(s,t),!1===e.result&&e.preventDefault());return e.type=m,a||e.isDefaultPrevented()||p._default&&!1!==p._default.apply(f.pop(),t)||!J(r)||c&&y(r[m])&&!g(r)&&((o=r[c])&&(r[c]=null),w.event.triggered=m,e.isPropagationStopped()&&d.addEventListener(m,wt),r[m](),e.isPropagationStopped()&&d.removeEventListener(m,wt),w.event.triggered=void 0,o&&(r[c]=o)),e.result}},simulate:function(e,t,n){var r=w.extend(new w.Event,n,{type:e,isSimulated:!0});w.event.trigger(r,null,t)}}),w.fn.extend({trigger:function(e,t){return this.each((function(){w.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return w.event.trigger(e,t,n,!0)}}),S.focusin||w.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){w.event.simulate(t,e.target,w.event.fix(e))};w.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,a=Q.access(r,t);a||r.addEventListener(e,n,!0),Q.access(r,t,(a||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,a=Q.access(r,t)-1;a?Q.access(r,t,a):(r.removeEventListener(e,n,!0),Q.remove(r,t))}}}));var Et=n.location,kt={guid:Date.now()},Tt=/\?/;w.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||w.error("Invalid XML: "+e),t};var Ct=/\[\]$/,It=/\r?\n/g,At=/^(?:submit|button|image|reset|file)$/i,Ot=/^(?:input|select|textarea|keygen)/i;function xt(e,t,n,r){var a;if(Array.isArray(t))w.each(t,(function(t,a){n||Ct.test(e)?r(e,a):xt(e+"["+("object"==typeof a&&null!=a?t:"")+"]",a,n,r)}));else if(n||"object"!==P(t))r(e,t);else for(a in t)xt(e+"["+a+"]",t[a],n,r)}w.param=function(e,t){var n,r=[],a=function(e,t){var n=y(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!w.isPlainObject(e))w.each(e,(function(){a(this.name,this.value)}));else for(n in e)xt(n,e[n],t,a);return r.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=w.prop(this,"elements");return e?w.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!w(this).is(":disabled")&&Ot.test(this.nodeName)&&!At.test(e)&&(this.checked||!me.test(e))})).map((function(e,t){var n=w(this).val();return null==n?null:Array.isArray(n)?w.map(n,(function(e){return{name:t.name,value:e.replace(It,"\r\n")}})):{name:t.name,value:n.replace(It,"\r\n")}})).get()}});var Nt=/%20/g,Rt=/#.*$/,Dt=/([?&])_=[^&]*/,Ht=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ft=/^(?:GET|HEAD)$/,Gt=/^\/\//,Ut={},Lt={},jt="*/".concat("*"),Mt=v.createElement("a");function Bt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,a=0,i=t.toLowerCase().match(G)||[];if(y(n))for(;r=i[a++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Kt(e,t,n,r){var a={},i=e===Lt;function s(o){var l;return a[o]=!0,w.each(e[o]||[],(function(e,o){var c=o(t,n,r);return"string"!=typeof c||i||a[c]?i?!(l=c):void 0:(t.dataTypes.unshift(c),s(c),!1)})),l}return s(t.dataTypes[0])||!a["*"]&&s("*")}function qt(e,t){var n,r,a=w.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((a[n]?e:r||(r={}))[n]=t[n]);return r&&w.extend(!0,e,r),e}Mt.href=Et.href,w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":jt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?qt(qt(e,w.ajaxSettings),t):qt(w.ajaxSettings,e)},ajaxPrefilter:Bt(Ut),ajaxTransport:Bt(Lt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,a,i,s,o,l,c,u,p,d,h=w.ajaxSetup({},t),f=h.context||h,m=h.context&&(f.nodeType||f.jquery)?w(f):w.event,S=w.Deferred(),y=w.Callbacks("once memory"),g=h.statusCode||{},_={},b={},P="canceled",E={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s)for(s={};t=Ht.exec(i);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?i:null},setRequestHeader:function(e,t){return null==c&&(e=b[e.toLowerCase()]=b[e.toLowerCase()]||e,_[e]=t),this},overrideMimeType:function(e){return null==c&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)E.always(e[E.status]);else for(t in e)g[t]=[g[t],e[t]];return this},abort:function(e){var t=e||P;return r&&r.abort(t),k(0,t),this}};if(S.promise(E),h.url=((e||h.url||Et.href)+"").replace(Gt,Et.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(G)||[""],null==h.crossDomain){l=v.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=Mt.protocol+"//"+Mt.host!=l.protocol+"//"+l.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=w.param(h.data,h.traditional)),Kt(Ut,h,t,E),c)return E;for(p in(u=w.event&&h.global)&&0==w.active++&&w.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Ft.test(h.type),a=h.url.replace(Rt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Nt,"+")):(d=h.url.slice(a.length),h.data&&(h.processData||"string"==typeof h.data)&&(a+=(Tt.test(a)?"&":"?")+h.data,delete h.data),!1===h.cache&&(a=a.replace(Dt,"$1"),d=(Tt.test(a)?"&":"?")+"_="+kt.guid+++d),h.url=a+d),h.ifModified&&(w.lastModified[a]&&E.setRequestHeader("If-Modified-Since",w.lastModified[a]),w.etag[a]&&E.setRequestHeader("If-None-Match",w.etag[a])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&E.setRequestHeader("Content-Type",h.contentType),E.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+jt+"; q=0.01":""):h.accepts["*"]),h.headers)E.setRequestHeader(p,h.headers[p]);if(h.beforeSend&&(!1===h.beforeSend.call(f,E,h)||c))return E.abort();if(P="abort",y.add(h.complete),E.done(h.success),E.fail(h.error),r=Kt(Lt,h,t,E)){if(E.readyState=1,u&&m.trigger("ajaxSend",[E,h]),c)return E;h.async&&h.timeout>0&&(o=n.setTimeout((function(){E.abort("timeout")}),h.timeout));try{c=!1,r.send(_,k)}catch(e){if(c)throw e;k(-1,e)}}else k(-1,"No Transport");function k(e,t,s,l){var p,d,v,_,b,P=t;c||(c=!0,o&&n.clearTimeout(o),r=void 0,i=l||"",E.readyState=e>0?4:0,p=e>=200&&e<300||304===e,s&&(_=function(e,t,n){for(var r,a,i,s,o=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(a in o)if(o[a]&&o[a].test(r)){l.unshift(a);break}if(l[0]in n)i=l[0];else{for(a in n){if(!l[0]||e.converters[a+" "+l[0]]){i=a;break}s||(s=a)}i=i||s}if(i)return i!==l[0]&&l.unshift(i),n[i]}(h,E,s)),!p&&w.inArray("script",h.dataTypes)>-1&&(h.converters["text script"]=function(){}),_=function(e,t,n,r){var a,i,s,o,l,c={},u=e.dataTypes.slice();if(u[1])for(s in e.converters)c[s.toLowerCase()]=e.converters[s];for(i=u.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=i,i=u.shift())if("*"===i)i=l;else if("*"!==l&&l!==i){if(!(s=c[l+" "+i]||c["* "+i]))for(a in c)if((o=a.split(" "))[1]===i&&(s=c[l+" "+o[0]]||c["* "+o[0]])){!0===s?s=c[a]:!0!==c[a]&&(i=o[0],u.unshift(o[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+l+" to "+i}}}return{state:"success",data:t}}(h,_,E,p),p?(h.ifModified&&((b=E.getResponseHeader("Last-Modified"))&&(w.lastModified[a]=b),(b=E.getResponseHeader("etag"))&&(w.etag[a]=b)),204===e||"HEAD"===h.type?P="nocontent":304===e?P="notmodified":(P=_.state,d=_.data,p=!(v=_.error))):(v=P,!e&&P||(P="error",e<0&&(e=0))),E.status=e,E.statusText=(t||P)+"",p?S.resolveWith(f,[d,P,E]):S.rejectWith(f,[E,P,v]),E.statusCode(g),g=void 0,u&&m.trigger(p?"ajaxSuccess":"ajaxError",[E,h,p?d:v]),y.fireWith(f,[E,P]),u&&(m.trigger("ajaxComplete",[E,h]),--w.active||w.event.trigger("ajaxStop")))}return E},getJSON:function(e,t,n){return w.get(e,t,n,"json")},getScript:function(e,t){return w.get(e,void 0,t,"script")}}),w.each(["get","post"],(function(e,t){w[t]=function(e,n,r,a){return y(n)&&(a=a||r,r=n,n=void 0),w.ajax(w.extend({url:e,type:t,dataType:a,data:n,success:r},w.isPlainObject(e)&&e))}})),w.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),w._evalUrl=function(e,t,n){return w.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){w.globalEval(e,t,n)}})},w.fn.extend({wrapAll:function(e){var t;return this[0]&&(y(e)&&(e=e.call(this[0])),t=w(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return y(e)?this.each((function(t){w(this).wrapInner(e.call(this,t))})):this.each((function(){var t=w(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=y(e);return this.each((function(n){w(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){w(this).replaceWith(this.childNodes)})),this}}),w.expr.pseudos.hidden=function(e){return!w.expr.pseudos.visible(e)},w.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Vt={0:200,1223:204},$t=w.ajaxSettings.xhr();S.cors=!!$t&&"withCredentials"in $t,S.ajax=$t=!!$t,w.ajaxTransport((function(e){var t,r;if(S.cors||$t&&!e.crossDomain)return{send:function(a,i){var s,o=e.xhr();if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(s in e.xhrFields)o[s]=e.xhrFields[s];for(s in e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||a["X-Requested-With"]||(a["X-Requested-With"]="XMLHttpRequest"),a)o.setRequestHeader(s,a[s]);t=function(e){return function(){t&&(t=r=o.onload=o.onerror=o.onabort=o.ontimeout=o.onreadystatechange=null,"abort"===e?o.abort():"error"===e?"number"!=typeof o.status?i(0,"error"):i(o.status,o.statusText):i(Vt[o.status]||o.status,o.statusText,"text"!==(o.responseType||"text")||"string"!=typeof o.responseText?{binary:o.response}:{text:o.responseText},o.getAllResponseHeaders()))}},o.onload=t(),r=o.onerror=o.ontimeout=t("error"),void 0!==o.onabort?o.onabort=r:o.onreadystatechange=function(){4===o.readyState&&n.setTimeout((function(){t&&r()}))},t=t("abort");try{o.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),w.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),w.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return w.globalEval(e),e}}}),w.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),w.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,a){t=w("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&a("error"===e.type?404:200,e.type)}),v.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Wt,zt=[],Jt=/(=)\?(?=&|$)|\?\?/;w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=zt.pop()||w.expando+"_"+kt.guid++;return this[e]=!0,e}}),w.ajaxPrefilter("json jsonp",(function(e,t,r){var a,i,s,o=!1!==e.jsonp&&(Jt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Jt.test(e.data)&&"data");if(o||"jsonp"===e.dataTypes[0])return a=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,o?e[o]=e[o].replace(Jt,"$1"+a):!1!==e.jsonp&&(e.url+=(Tt.test(e.url)?"&":"?")+e.jsonp+"="+a),e.converters["script json"]=function(){return s||w.error(a+" was not called"),s[0]},e.dataTypes[0]="json",i=n[a],n[a]=function(){s=arguments},r.always((function(){void 0===i?w(n).removeProp(a):n[a]=i,e[a]&&(e.jsonpCallback=t.jsonpCallback,zt.push(a)),s&&y(i)&&i(s[0]),s=i=void 0})),"script"})),S.createHTMLDocument=((Wt=v.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Wt.childNodes.length),w.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(S.createHTMLDocument?((r=(t=v.implementation.createHTMLDocument("")).createElement("base")).href=v.location.href,t.head.appendChild(r)):t=v),i=!n&&[],(a=O.exec(e))?[t.createElement(a[1])]:(a=Pe([e],t,i),i&&i.length&&w(i).remove(),w.merge([],a.childNodes)));var r,a,i},w.fn.load=function(e,t,n){var r,a,i,s=this,o=e.indexOf(" ");return o>-1&&(r=gt(e.slice(o)),e=e.slice(0,o)),y(t)?(n=t,t=void 0):t&&"object"==typeof t&&(a="POST"),s.length>0&&w.ajax({url:e,type:a||"GET",dataType:"html",data:t}).done((function(e){i=arguments,s.html(r?w("<div>").append(w.parseHTML(e)).find(r):e)})).always(n&&function(e,t){s.each((function(){n.apply(this,i||[e.responseText,t,e])}))}),this},w.expr.pseudos.animated=function(e){return w.grep(w.timers,(function(t){return e===t.elem})).length},w.offset={setOffset:function(e,t,n){var r,a,i,s,o,l,c=w.css(e,"position"),u=w(e),p={};"static"===c&&(e.style.position="relative"),o=u.offset(),i=w.css(e,"top"),l=w.css(e,"left"),("absolute"===c||"fixed"===c)&&(i+l).indexOf("auto")>-1?(s=(r=u.position()).top,a=r.left):(s=parseFloat(i)||0,a=parseFloat(l)||0),y(t)&&(t=t.call(e,n,w.extend({},o))),null!=t.top&&(p.top=t.top-o.top+s),null!=t.left&&(p.left=t.left-o.left+a),"using"in t?t.using.call(e,p):("number"==typeof p.top&&(p.top+="px"),"number"==typeof p.left&&(p.left+="px"),u.css(p))}},w.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){w.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],a={top:0,left:0};if("fixed"===w.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===w.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((a=w(e).offset()).top+=w.css(e,"borderTopWidth",!0),a.left+=w.css(e,"borderLeftWidth",!0))}return{top:t.top-a.top-w.css(r,"marginTop",!0),left:t.left-a.left-w.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===w.css(e,"position");)e=e.offsetParent;return e||ie}))}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;w.fn[e]=function(r){return q(this,(function(e,r,a){var i;if(g(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===a)return i?i[t]:e[r];i?i.scrollTo(n?i.pageXOffset:a,n?a:i.pageYOffset):e[r]=a}),e,r,arguments.length)}})),w.each(["top","left"],(function(e,t){w.cssHooks[t]=$e(S.pixelPosition,(function(e,n){if(n)return n=Ve(e,t),Me.test(n)?w(e).position()[t]+"px":n}))})),w.each({Height:"height",Width:"width"},(function(e,t){w.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){w.fn[r]=function(a,i){var s=arguments.length&&(n||"boolean"!=typeof a),o=n||(!0===a||!0===i?"margin":"border");return q(this,(function(t,n,a){var i;return g(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===a?w.css(t,n,o):w.style(t,n,a,o)}),t,s?a:void 0,s)}}))})),w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){w.fn[t]=function(e){return this.on(t,e)}})),w.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),w.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){w.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var Xt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;w.proxy=function(e,t){var n,r,a;if("string"==typeof t&&(n=e[t],t=e,e=n),y(e))return r=o.call(arguments,2),(a=function(){return e.apply(t||this,r.concat(o.call(arguments)))}).guid=e.guid=e.guid||w.guid++,a},w.holdReady=function(e){e?w.readyWait++:w.ready(!0)},w.isArray=Array.isArray,w.parseJSON=JSON.parse,w.nodeName=A,w.isFunction=y,w.isWindow=g,w.camelCase=z,w.type=P,w.now=Date.now,w.isNumeric=function(e){var t=w.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},w.trim=function(e){return null==e?"":(e+"").replace(Xt,"")},void 0===(r=function(){return w}.apply(t,[]))||(e.exports=r);var Qt=n.jQuery,Yt=n.$;return w.noConflict=function(e){return n.$===w&&(n.$=Yt),e&&n.jQuery===w&&(n.jQuery=Qt),w},void 0===a&&(n.jQuery=n.$=w),w}))},function(e,t,n){var r=n(85);e.exports=function(e){return e&&e.length?r(e):[]}},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return a}));n(6),n(15);function r(){return"[object process]"===Object.prototype.toString.call("undefined"!=typeof process?process:0)}function a(e,t){return e.require(t)}}).call(this,n(99)(e))},function(e,t,n){var r=n(105);e.exports=function(e,t){return r(e,t)}},function(e,t,n){var r=n(353),a=n(169)((function(e,t){return null==e?{}:r(e,t)}));e.exports=a},function(e,t,n){var r=n(176);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},function(e,t,n){var r=n(87),a=n(34),i=n(48),s=a((function(e,t){return i(e)?r(e,t):[]}));e.exports=s},function(e,t,n){var r=n(140),a=n(255),i=n(12),s=n(9);e.exports=function(e,t){return(s(e)?r:a)(e,i(t,3))}},function(e,t,n){var r=n(86),a=n(29),i=n(116),s=n(25),o=n(58),l=n(32),c=Object.prototype.hasOwnProperty,u=i((function(e,t){if(o(t)||s(t))a(t,l(t),e);else for(var n in t)c.call(t,n)&&r(e,n,t[n])}));e.exports=u},function(e,t,n){var r=n(77),a=n(261)(r);e.exports=a},function(e,t,n){var r=n(141),a=n(32);e.exports=function(e,t){return e&&r(e,t,a)}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r=n(259),a=n(57),i=n(101),s=i&&i.isTypedArray,o=s?a(s):r;e.exports=o},function(e,t,n){var r=n(81),a=n(269),i=n(270),s=n(271),o=n(272),l=n(273);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=a,c.prototype.delete=i,c.prototype.get=s,c.prototype.has=o,c.prototype.set=l,e.exports=c},function(e,t,n){var r=n(264),a=n(265),i=n(266),s=n(267),o=n(268);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=a,l.prototype.get=i,l.prototype.has=s,l.prototype.set=o,e.exports=l},function(e,t,n){var r=n(41);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(33)(Object,"create");e.exports=r},function(e,t,n){var r=n(286);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(106),a=n(156),i=n(158),s=n(107),o=n(318),l=n(108);e.exports=function(e,t,n){var c=-1,u=a,p=e.length,d=!0,h=[],f=h;if(n)d=!1,u=i;else if(p>=200){var m=t?null:o(e);if(m)return l(m);d=!1,u=s,f=new r}else f=t?[]:h;e:for(;++c<p;){var S=e[c],y=t?t(S):S;if(S=n||0!==S?S:0,d&&y==y){for(var g=f.length;g--;)if(f[g]===y)continue e;t&&f.push(y),h.push(S)}else u(f,y,n)||(f!==h&&f.push(y),h.push(S))}return h}},function(e,t,n){var r=n(46),a=n(41),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var s=e[t];i.call(e,t)&&a(s,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(106),a=n(156),i=n(158),s=n(44),o=n(57),l=n(107);e.exports=function(e,t,n,c){var u=-1,p=a,d=!0,h=e.length,f=[],m=t.length;if(!h)return f;n&&(t=s(t,o(n))),c?(p=i,d=!1):t.length>=200&&(p=l,d=!1,t=new r(t));e:for(;++u<h;){var S=e[u],y=null==n?S:n(S);if(S=c||0!==S?S:0,d&&y==y){for(var g=m;g--;)if(t[g]===y)continue e;f.push(S)}else p(t,y,c)||f.push(S)}return f}},function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,a=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(a=r))}),t.splice(a,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(372)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},function(e,t){e.exports="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")()},function(e,t){e.exports=function(){}},function(e,t){e.exports=require("util")},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));function r(e){try{return e&&"function"==typeof e&&e.name||"<anonymous>"}catch(e){return"<anonymous>"}}},function(e,t,n){var r=n(44),a=n(113),i=n(168),s=n(42),o=n(29),l=n(343),c=n(169),u=n(114),p=c((function(e,t){var n={};if(null==e)return n;var c=!1;t=r(t,(function(t){return t=s(t,e),c||(c=t.length>1),t})),o(e,u(e),n),c&&(n=a(n,7,l));for(var p=t.length;p--;)i(n,t[p]);return n}));e.exports=p},function(e,t,n){var r=n(12),a=n(85);e.exports=function(e,t){return e&&e.length?a(e,r(t,2)):[]}},function(e,t,n){var r=n(174)((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));e.exports=r},function(e,t,n){var r=n(396),a=n(18),i=a;i.v1=r,i.v4=a,e.exports=i},function(e,t){e.exports=function(){return!0}},function(e,t,n){var r=n(135)(Object.getPrototypeOf,Object);e.exports=r},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){(function(e){var r=n(134),a=t&&!t.nodeType&&t,i=a&&"object"==typeof e&&e&&!e.nodeType&&e,s=i&&i.exports===a&&r.process,o=function(){try{var e=i&&i.require&&i.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=o}).call(this,n(78)(e))},function(e,t,n){var r=n(28),a=n(16);e.exports=function(e){if(!a(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){var r=n(33)(n(20),"Map");e.exports=r},function(e,t,n){var r=n(278),a=n(285),i=n(287),s=n(288),o=n(289);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=a,l.prototype.get=i,l.prototype.has=s,l.prototype.set=o,e.exports=l},function(e,t,n){var r=n(290),a=n(21);e.exports=function e(t,n,i,s,o){return t===n||(null==t||null==n||!a(t)&&!a(n)?t!=t&&n!=n:r(t,n,i,s,e,o))}},function(e,t,n){var r=n(104),a=n(291),i=n(292);function s(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}s.prototype.add=s.prototype.push=a,s.prototype.has=i,e.exports=s},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}},function(e,t,n){var r=n(140),a=n(149),i=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,o=s?function(e){return null==e?[]:(e=Object(e),r(s(e),(function(t){return i.call(e,t)})))}:a;e.exports=o},function(e,t,n){var r=n(9),a=n(43),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!a(e))||(s.test(e)||!i.test(e)||null!=t&&e in Object(t))}},function(e,t){e.exports=function(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(a);++r<a;)i[r]=e[r+t];return i}},function(e,t,n){var r=n(80),a=n(162),i=n(86),s=n(326),o=n(327),l=n(163),c=n(164),u=n(330),p=n(331),d=n(147),h=n(114),f=n(59),m=n(332),S=n(333),y=n(167),g=n(9),v=n(55),_=n(338),b=n(16),P=n(340),w=n(32),E=n(49),k={};k["[object Arguments]"]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k["[object Object]"]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k["[object Function]"]=k["[object WeakMap]"]=!1,e.exports=function e(t,n,T,C,I,A){var O,x=1&n,N=2&n,R=4&n;if(T&&(O=I?T(t,C,I,A):T(t)),void 0!==O)return O;if(!b(t))return t;var D=g(t);if(D){if(O=m(t),!x)return c(t,O)}else{var H=f(t),F="[object Function]"==H||"[object GeneratorFunction]"==H;if(v(t))return l(t,x);if("[object Object]"==H||"[object Arguments]"==H||F&&!I){if(O=N||F?{}:y(t),!x)return N?p(t,o(O,t)):u(t,s(O,t))}else{if(!k[H])return I?t:{};O=S(t,H,x)}}A||(A=new r);var G=A.get(t);if(G)return G;A.set(t,O),P(t)?t.forEach((function(r){O.add(e(r,n,T,r,t,A))})):_(t)&&t.forEach((function(r,a){O.set(a,e(r,n,T,a,t,A))}));var U=D?void 0:(R?N?h:d:N?E:w)(t);return a(U||t,(function(r,a){U&&(r=t[a=r]),i(O,a,e(r,n,T,a,t,A))})),O}},function(e,t,n){var r=n(148),a=n(165),i=n(49);e.exports=function(e){return r(e,i,a)}},function(e,t,n){var r=n(146);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t,n){var r=n(34),a=n(117);e.exports=function(e){return r((function(t,n){var r=-1,i=n.length,s=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(s=e.length>3&&"function"==typeof s?(i--,s):void 0,o&&a(n[0],n[1],o)&&(s=i<3?void 0:s,i=1),t=Object(t);++r<i;){var l=n[r];l&&e(t,l,r,s)}return t}))}},function(e,t,n){var r=n(41),a=n(25),i=n(56),s=n(16);e.exports=function(e,t,n){if(!s(n))return!1;var o=typeof t;return!!("number"==o?a(n)&&i(t,n.length):"string"==o&&t in n)&&r(n[t],e)}},function(e,t,n){var r=n(180);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){const r=n(62),a=n(63),i=n(64)("engine.io-client:transport");e.exports=class extends a{constructor(e){super(),this.opts=e,this.query=e.query,this.readyState="",this.socket=e.socket}onError(e,t){const n=new Error(e);return n.type="TransportError",n.description=t,this.emit("error",n),this}open(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState?this.write(e):i("transport is not open, discarding packets")}onOpen(){this.readyState="open",this.writable=!0,this.emit("open")}onData(e){const t=r.decodePacket(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){this.emit("packet",e)}onClose(){this.readyState="closed",this.emit("close")}}},function(e,t){t.encode=function(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t},t.decode=function(e){for(var t={},n=e.split("&"),r=0,a=n.length;r<a;r++){var i=n[r].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Decoder=t.Encoder=t.PacketType=t.protocol=void 0;const r=n(63),a=n(386),i=n(190),s=n(387)("socket.io-parser");var o;t.protocol=5,function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"}(o=t.PacketType||(t.PacketType={}));t.Encoder=class{encode(e){return s("encoding packet %j",e),e.type!==o.EVENT&&e.type!==o.ACK||!i.hasBinary(e)?[this.encodeAsString(e)]:(e.type=e.type===o.EVENT?o.BINARY_EVENT:o.BINARY_ACK,this.encodeAsBinary(e))}encodeAsString(e){let t=""+e.type;return e.type!==o.BINARY_EVENT&&e.type!==o.BINARY_ACK||(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data)),s("encoded %j as %s",e,t),t}encodeAsBinary(e){const t=a.deconstructPacket(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}};class l extends r{constructor(){super()}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e),t.type===o.BINARY_EVENT||t.type===o.BINARY_ACK?(this.reconstructor=new c(t),0===t.attachments&&super.emit("decoded",t)):super.emit("decoded",t)}else{if(!i.isBinary(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emit("decoded",t))}}decodeString(e){let t=0;const n={type:Number(e.charAt(0))};if(void 0===o[n.type])throw new Error("unknown packet type "+n.type);if(n.type===o.BINARY_EVENT||n.type===o.BINARY_ACK){const r=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);const a=e.substring(r,t);if(a!=Number(a)||"-"!==e.charAt(t))throw new Error("Illegal attachments");n.attachments=Number(a)}if("/"===e.charAt(t+1)){const r=t+1;for(;++t;){if(","===e.charAt(t))break;if(t===e.length)break}n.nsp=e.substring(r,t)}else n.nsp="/";const r=e.charAt(t+1);if(""!==r&&Number(r)==r){const r=t+1;for(;++t;){const n=e.charAt(t);if(null==n||Number(n)!=n){--t;break}if(t===e.length)break}n.id=Number(e.substring(r,t+1))}if(e.charAt(++t)){const r=function(e){try{return JSON.parse(e)}catch(e){return!1}}(e.substr(t));if(!l.isPayloadValid(n.type,r))throw new Error("invalid payload");n.data=r}return s("decoded %s as %j",e,n),n}static isPayloadValid(e,t){switch(e){case o.CONNECT:return"object"==typeof t;case o.DISCONNECT:return void 0===t;case o.CONNECT_ERROR:return"string"==typeof t||"object"==typeof t;case o.EVENT:case o.BINARY_EVENT:return Array.isArray(t)&&t.length>0;case o.ACK:case o.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}t.Decoder=l;class c{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const e=a.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}},function(e,t,n){var r=n(28),a=n(9),i=n(21);e.exports=function(e){return"string"==typeof e||!a(e)&&i(e)&&"[object String]"==r(e)}},function(e,t,n){var r=n(60);e.exports=function(e,t,n){var a=null==e?void 0:r(e,t);return void 0===a?n:a}},function(e,t,n){var r=n(47);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"forwardToMain",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"forwardToMainWithParams",{enumerable:!0,get:function(){return r.forwardToMainWithParams}}),Object.defineProperty(t,"forwardToRenderer",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"triggerAlias",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"createAliasedAction",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"replayActionMain",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"replayActionRenderer",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"getInitialStateRenderer",{enumerable:!0,get:function(){return c.default}});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(241)),a=u(n(248)),i=u(n(249)),s=u(n(251)),o=u(n(252)),l=u(n(253)),c=u(n(254));function u(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(6);function a(e){try{for(var t=e,n=[],r=0,a=0,s=" > ".length,o=void 0;t&&r++<5&&!("html"===(o=i(t))||r>1&&a+n.length*s+o.length>=80);)n.push(o),a+=o.length,t=t.parentNode;return n.reverse().join(" > ")}catch(e){return"<unknown>"}}function i(e){var t,n,a,i,s,o=e,l=[];if(!o||!o.tagName)return"";if(l.push(o.tagName.toLowerCase()),o.id&&l.push("#"+o.id),(t=o.className)&&Object(r.k)(t))for(n=t.split(/\s+/),s=0;s<n.length;s++)l.push("."+n[s]);var c=["type","name","title","alt"];for(s=0;s<c.length;s++)a=c[s],(i=o.getAttribute(a))&&l.push("["+a+'="'+i+'"]');return l.join("")}},function(e,t,n){var r=n(87),a=n(47),i=n(12),s=n(34),o=n(48),l=n(23),c=s((function(e,t){var n=l(t);return o(n)&&(n=void 0),o(e)?r(e,a(t,1,o,!0),i(n,2)):[]}));e.exports=c},function(e,t,n){e.exports=n(361)},function(e,t,n){
/*
 * jwerty - Awesome handling of keyboard events
 *
 * jwerty is a JS lib which allows you to bind, fire and assert key combination
 * strings against elements and events. It normalises the poor std api into
 * something easy to use and clear.
 *
 * This code is licensed under the MIT
 * For the full license see: http://keithamus.mit-license.org/
 * For more information see: http://keithamus.github.com/jwerty
 *
 * @author Keith Cirkel ('keithamus') <jwerty@keithcirkel.co.uk>
 * @license http://keithamus.mit-license.org/
 * @copyright Copyright © 2011, Keith Cirkel
 *
 */
!function(t,r){function a(r){if(!e.exports)return t[r];try{return n(391)(r.toLowerCase())}catch(e){}}var i,s,o,l,c=t.document,u=a("jQuery")||a("Zepto")||a("ender")||c,p="keydown";function d(e,t){return null===e?"null"===t:void 0===e?"undefined"===t:e.is&&e instanceof u?"element"===t:Object.prototype.toString.call(e).toLowerCase().indexOf(t)>7}u===c?(i=function(e,t){return e?u.querySelector(e,t||u):u},s=function(e,t){e.addEventListener(p,t,!1)},o=function(e,t){e.removeEventListener(p,t,!1)},l=function(e,t){var n,r=c.createEvent("Event");for(n in r.initEvent(p,!0,!0),t)r[n]=t[n];return(e||u).dispatchEvent(r)}):(i=function(e,t){return u(e||c,t)},s=function(e,t){u(e).bind(p+".jwerty",t)},o=function(e,t){u(e).unbind(p+".jwerty",t)},l=function(e,t){u(e||c).trigger(u.Event(p,t))});for(var h={16:"shiftKey",17:"ctrlKey",18:"altKey",91:"metaKey"},f={mods:{"⇧":16,shift:16,"⌃":17,ctrl:17,"⌥":18,alt:18,option:18,"⌘":91,meta:91,cmd:91,super:91,win:91},keys:{"⌫":8,backspace:8,"⇥":9,"⇆":9,tab:9,"↩":13,return:13,enter:13,"⌅":13,pause:19,"pause-break":19,"⇪":20,caps:20,"caps-lock":20,"⎋":27,escape:27,esc:27,space:32,"↖":33,pgup:33,"page-up":33,"↘":34,pgdown:34,"page-down":34,"⇟":35,end:35,"⇞":36,home:36,ins:45,insert:45,del:46,delete:46,"←":37,left:37,"arrow-left":37,"↑":38,up:38,"arrow-up":38,"→":39,right:39,"arrow-right":39,"↓":40,down:40,"arrow-down":40,"*":106,star:106,asterisk:106,multiply:106,"+":107,plus:107,"-":109,subtract:109,"num-.":110,"num-period":110,"num-dot":110,"num-full-stop":110,"num-delete":110,";":186,semicolon:186,"=":187,equals:187,",":188,comma:188,".":190,period:190,"full-stop":190,"/":191,slash:191,"forward-slash":191,"`":192,tick:192,"back-quote":192,"[":219,"open-bracket":219,"\\":220,"back-slash":220,"]":221,"close-bracket":221,"'":222,quote:222,apostraphe:222}},m=47,S=0;++m<106;)f.keys[S]=m,f.keys["num-"+S]=m+48,++S;for(m=111,S=1;++m<136;)f.keys["f"+S]=m,++S;for(m=64;++m<91;)f.keys[String.fromCharCode(m).toLowerCase()]=m;function y(e){var t,n,r,a,i,s,o,l,c;if(e instanceof y)return e;for(d(e,"array")||(e=String(e).replace(/\s/g,"").toLowerCase().match(/(?:\+,|[^,])+/g)),t=0,n=e.length;t<n;++t){for(d(e[t],"array")||(e[t]=String(e[t]).match(/(?:\+\/|[^\/])+/g)),s=[],r=e[t].length;r--;){for(o=e[t][r],i={jwertyCombo:String(o),shiftKey:!1,ctrlKey:!1,altKey:!1,metaKey:!1},d(o,"array")||(o=String(o).toLowerCase().match(/(?:(?:[^\+])+|\+\+|^\+$)/g)),a=o.length;a--;)"++"===o[a]&&(o[a]="+"),o[a]in f.mods?i[h[f.mods[o[a]]]]=!0:o[a]in f.keys?i.keyCode=f.keys[o[a]]:l=o[a].match(/^\[([^-]+\-?[^-]*)-([^-]+\-?[^-]*)\]$/);if(d(i.keyCode,"undefined"))if(l&&l[1]in f.keys&&l[2]in f.keys){for(l[2]=f.keys[l[2]],l[1]=f.keys[l[1]],c=l[1];c<l[2];++c)s.push({altKey:i.altKey,shiftKey:i.shiftKey,metaKey:i.metaKey,ctrlKey:i.ctrlKey,keyCode:c,jwertyCombo:String(o)});i.keyCode=c}else i.keyCode=0;s.push(i)}this[t]=s}return this.length=t,this}var g=r.jwerty={event:function(e,t,n){if(d(t,"boolean")){var r=t;t=function(){return r}}e=new y(e);var a,i=0,s=e.length-1;return function(r){if(a=g.is(e,r,i))return i<s?void++i:(!1===t.call(n||this,r,a)&&r.preventDefault(),void(i=0));i=g.is(e,r)?1:0}},is:function(e,t,n){e=(e=new y(e))[n=n||0],t=t.originalEvent||t;for(var r=e.length,a=!1;r--;){for(var i in a=e[r].jwertyCombo,e[r])"jwertyCombo"!==i&&t[i]!=e[r][i]&&(a=!1);if(!1!==a)return a}return a},key:function(e,n,r,a,l){var c=d(r,"element")||d(r,"string")?r:a,u=c===r?t:r,p=c===r?a:l,h=d(c,"element")?c:i(c,p),f=g.event(e,n,u);return s(h,f),{unbind:function(){o(h,f)}}},fire:function(e,t,n,r){e=new y(e);var a=d(n,"number")?n:r;l(d(t,"element")?t:i(t,n),e[a||0][0])},KEYS:f}}("undefined"!=typeof global&&global.window||this,e.exports?e.exports:this)},function(e,t,n){var r=n(61),a=0;e.exports=function(e){var t=++a;return r(e)+t}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getElectronBinding=void 0;t.getElectronBinding=e=>process._linkedBinding?process._linkedBinding("electron_common_"+e):process.electronBinding?process.electronBinding(e):null},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!(0,a.isFSA)(e))return i("WARNING! Action not FSA-compliant",e),!1;return!0};var r,a=n(242);var i=(0,((r=n(245))&&r.__esModule?r:{default:r}).default)("electron-redux:validateAction")},function(e,t){var n="object"==typeof global&&global&&global.Object===Object&&global;e.exports=n},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ALIASED=void 0;t.ALIASED="ALIASED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={},a={get:function(e){return r[e]},set:function(e,t){r[e]=t}};t.default=a},function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var a=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),a[t]=e>>>((3&t)<<3)&255;return a}}},function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,a=n;return[a[e[r++]],a[e[r++]],a[e[r++]],a[e[r++]],"-",a[e[r++]],a[e[r++]],"-",a[e[r++]],a[e[r++]],"-",a[e[r++]],a[e[r++]],"-",a[e[r++]],a[e[r++]],a[e[r++]],a[e[r++]],a[e[r++]],a[e[r++]]].join("")}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,a=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[a++]=s)}return i}},function(e,t,n){var r=n(256)();e.exports=r},function(e,t,n){var r=n(257),a=n(54),i=n(9),s=n(55),o=n(56),l=n(79),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&a(e),p=!n&&!u&&s(e),d=!n&&!u&&!p&&l(e),h=n||u||p||d,f=h?r(e.length,String):[],m=f.length;for(var S in e)!t&&!c.call(e,S)||h&&("length"==S||p&&("offset"==S||"parent"==S)||d&&("buffer"==S||"byteLength"==S||"byteOffset"==S)||o(S,m))||f.push(S);return f}},function(e,t,n){var r=n(58),a=n(260),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return a(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(106),a=n(293),i=n(107);e.exports=function(e,t,n,s,o,l){var c=1&n,u=e.length,p=t.length;if(u!=p&&!(c&&p>u))return!1;var d=l.get(e),h=l.get(t);if(d&&h)return d==t&&h==e;var f=-1,m=!0,S=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++f<u;){var y=e[f],g=t[f];if(s)var v=c?s(g,y,f,t,e,l):s(y,g,f,e,t,l);if(void 0!==v){if(v)continue;m=!1;break}if(S){if(!a(t,(function(e,t){if(!i(S,t)&&(y===e||o(y,e,n,s,l)))return S.push(t)}))){m=!1;break}}else if(y!==g&&!o(y,g,n,s,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},function(e,t,n){var r=n(20).Uint8Array;e.exports=r},function(e,t,n){var r=n(148),a=n(110),i=n(32);e.exports=function(e){return r(e,i,a)}},function(e,t,n){var r=n(109),a=n(9);e.exports=function(e,t,n){var i=t(e);return a(e)?i:r(i,n(e))}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(33)(n(20),"Set");e.exports=r},function(e,t,n){var r=n(16);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},function(e,t,n){var r=n(306),a=n(154);e.exports=function(e,t){return null!=e&&a(e,t,r)}},function(e,t,n){var r=n(42),a=n(54),i=n(9),s=n(56),o=n(100),l=n(45);e.exports=function(e,t,n){for(var c=-1,u=(t=r(t,e)).length,p=!1;++c<u;){var d=l(t[c]);if(!(p=null!=e&&n(e,d)))break;e=e[d]}return p||++c!=u?p:!!(u=null==e?0:e.length)&&o(u)&&s(d,u)&&(i(e)||a(e))}},function(e,t){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return n.test(e)}},function(e,t,n){var r=n(315);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},function(e,t){e.exports=function(e,t,n,r){for(var a=e.length,i=n+(r?1:-1);r?i--:++i<a;)if(t(e[i],i,e))return i;return-1}},function(e,t){e.exports=function(e,t,n){for(var r=-1,a=null==e?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1}},function(e,t,n){var r=n(33),a=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=a},function(e,t,n){var r=n(322),a=Math.max;e.exports=function(e,t,n){return t=a(void 0===t?e.length-1:t,0),function(){for(var i=arguments,s=-1,o=a(i.length-t,0),l=Array(o);++s<o;)l[s]=i[t+s];s=-1;for(var c=Array(t+1);++s<t;)c[s]=i[s];return c[t]=n(l),r(e,this,c)}}},function(e,t,n){var r=n(323),a=n(325)(r);e.exports=a},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},function(e,t,n){(function(e){var r=n(20),a=t&&!t.nodeType&&t,i=a&&"object"==typeof e&&e&&!e.nodeType&&e,s=i&&i.exports===a?r.Buffer:void 0,o=s?s.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=o?o(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(78)(e))},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t,n){var r=n(109),a=n(98),i=n(110),s=n(149),o=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=a(e);return t}:s;e.exports=o},function(e,t,n){var r=n(115);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var r=n(337),a=n(98),i=n(58);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(a(e))}},function(e,t,n){var r=n(42),a=n(23),i=n(342),s=n(45);e.exports=function(e,t){return t=r(t,e),null==(e=i(e,t))||delete e[s(a(t))]}},function(e,t,n){var r=n(124),a=n(160),i=n(161);e.exports=function(e){return i(a(e,void 0,r),e+"")}},function(e,t,n){var r=n(346),a=n(16),i=n(43),s=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=o.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):s.test(e)?NaN:+e}},function(e,t,n){var r=n(46),a=n(41);e.exports=function(e,t,n){(void 0!==n&&!a(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},function(e,t){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},function(e,t,n){var r=n(17);e.exports=function(e){return"function"==typeof e?e:r}},function(e,t,n){var r=n(351),a=n(352),i=n(12),s=n(9);e.exports=function(e,t){return function(n,o){var l=s(n)?r:a,c=t?t():{};return l(n,e,i(o,2),c)}}},function(e,t,n){var r=n(60),a=n(176),i=n(42);e.exports=function(e,t,n){for(var s=-1,o=t.length,l={};++s<o;){var c=t[s],u=r(e,c);n(u,c)&&a(l,i(c,e),u)}return l}},function(e,t,n){var r=n(86),a=n(42),i=n(56),s=n(16),o=n(45);e.exports=function(e,t,n,l){if(!s(e))return e;for(var c=-1,u=(t=a(t,e)).length,p=u-1,d=e;null!=d&&++c<u;){var h=o(t[c]),f=n;if("__proto__"===h||"constructor"===h||"prototype"===h)return e;if(c!=p){var m=d[h];void 0===(f=l?l(m,h,d):void 0)&&(f=s(m)?m:i(t[c+1])?[]:{})}r(d,h,f),d=d[h]}return e}},function(e,t,n){var r=n(76),a=n(25);e.exports=function(e,t){var n=-1,i=a(e)?Array(e.length):[];return r(e,(function(e,r,a){i[++n]=t(e,r,a)})),i}},function(e,t){e.exports=function(e,t){for(var n,r=-1,a=e.length;++r<a;){var i=t(e[r]);void 0!==i&&(n=void 0===n?i:n+i)}return n}},function(e,t,n){var r=n(44),a=n(60),i=n(12),s=n(177),o=n(354),l=n(57),c=n(355),u=n(17),p=n(9);e.exports=function(e,t,n){t=t.length?r(t,(function(e){return p(e)?function(t){return a(t,1===e.length?e[0]:e)}:e})):[u];var d=-1;t=r(t,l(i));var h=s(e,(function(e,n,a){return{criteria:r(t,(function(t){return t(e)})),index:++d,value:e}}));return o(h,(function(e,t){return c(e,t,n)}))}},function(e,t,n){var r=n(170);e.exports=function(e){return e?(e=r(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},function(e,t){var n=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,r=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];e.exports=function(e){var t=e,a=e.indexOf("["),i=e.indexOf("]");-1!=a&&-1!=i&&(e=e.substring(0,a)+e.substring(a,i).replace(/:/g,";")+e.substring(i,e.length));for(var s,o,l=n.exec(e||""),c={},u=14;u--;)c[r[u]]=l[u]||"";return-1!=a&&-1!=i&&(c.source=t,c.host=c.host.substring(1,c.host.length-1).replace(/;/g,":"),c.authority=c.authority.replace("[","").replace("]","").replace(/;/g,":"),c.ipv6uri=!0),c.pathNames=function(e,t){var n=t.replace(/\/{2,9}/g,"/").split("/");"/"!=t.substr(0,1)&&0!==t.length||n.splice(0,1);"/"==t.substr(t.length-1,1)&&n.splice(n.length-1,1);return n}(0,c.path),c.queryKey=(s=c.query,o={},s.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,n){t&&(o[t]=n)})),o),c}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Manager=void 0;const r=n(374),a=n(189),i=n(121),s=n(191),o=n(390),l=n(192),c=n(88)("socket.io-client:manager");class u extends l.StrictEventEmitter{constructor(e,t){super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(t.randomizationFactor||.5),this.backoff=new o({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const n=t.parser||i;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(c("readyState %s",this._readyState),~this._readyState.indexOf("open"))return this;c("opening %s",this.uri),this.engine=r(this.uri,this.opts);const t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const a=s.on(t,"open",(function(){n.onopen(),e&&e()})),i=s.on(t,"error",t=>{c("error"),n.cleanup(),n._readyState="closed",this.emitReserved("error",t),e?e(t):n.maybeReconnectOnOpen()});if(!1!==this._timeout){const e=this._timeout;c("connect attempt will timeout after %d",e),0===e&&a();const n=setTimeout(()=>{c("connect attempt timed out after %d",e),a(),t.close(),t.emit("error",new Error("timeout"))},e);this.opts.autoUnref&&n.unref(),this.subs.push((function(){clearTimeout(n)}))}return this.subs.push(a),this.subs.push(i),this}connect(e){return this.open(e)}onopen(){c("open"),this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(s.on(e,"ping",this.onping.bind(this)),s.on(e,"data",this.ondata.bind(this)),s.on(e,"error",this.onerror.bind(this)),s.on(e,"close",this.onclose.bind(this)),s.on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){this.decoder.add(e)}ondecoded(e){this.emitReserved("packet",e)}onerror(e){c("error",e),this.emitReserved("error",e)}socket(e,t){let n=this.nsps[e];return n||(n=new a.Socket(this,e,t),this.nsps[e]=n),n}_destroy(e){const t=Object.keys(this.nsps);for(const e of t){if(this.nsps[e].active)return void c("socket %s is still active, skipping close",e)}this._close()}_packet(e){c("writing packet %j",e);const t=this.encoder.encode(e);for(let n=0;n<t.length;n++)this.engine.write(t[n],e.options)}cleanup(){c("cleanup"),this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){c("disconnect"),this.skipReconnect=!0,this._reconnecting=!1,"opening"===this._readyState&&this.cleanup(),this.backoff.reset(),this._readyState="closed",this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e){c("onclose"),this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)c("reconnect failed"),this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();c("will wait %dms before reconnect attempt",t),this._reconnecting=!0;const n=setTimeout(()=>{e.skipReconnect||(c("attempting reconnect"),this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open(t=>{t?(c("reconnect attempt error"),e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):(c("reconnect success"),e.onreconnect())}))},t);this.opts.autoUnref&&n.unref(),this.subs.push((function(){clearTimeout(n)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}t.Manager=u},function(e,t,n){const r=n(184),a=n(377),i=n(383),s=n(384);t.polling=function(e){let t,n=!1,s=!1;const o=!1!==e.jsonp;if("undefined"!=typeof location){const t="https:"===location.protocol;let r=location.port;r||(r=t?443:80),n=e.hostname!==location.hostname||r!==e.port,s=e.secure!==t}if(e.xdomain=n,e.xscheme=s,t=new r(e),"open"in t&&!e.forceJSONP)return new a(e);if(!o)throw new Error("JSONP disabled");return new i(e)},t.websocket=s},function(e,t,n){const r=n(376),a=n(89);e.exports=function(e){const t=e.xdomain,n=e.xscheme,i=e.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!t||r))return new XMLHttpRequest}catch(e){}try{if("undefined"!=typeof XDomainRequest&&!n&&i)return new XDomainRequest}catch(e){}if(!t)try{return new(a[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}},function(e,t,n){const r=n(119),a=n(120),i=n(62),s=n(187),o=n(64)("engine.io-client:polling");e.exports=class extends r{get name(){return"polling"}doOpen(){this.poll()}pause(e){const t=this;function n(){o("paused"),t.readyState="paused",e()}if(this.readyState="pausing",this.polling||!this.writable){let e=0;this.polling&&(o("we are currently polling - waiting to pause"),e++,this.once("pollComplete",(function(){o("pre-pause polling complete"),--e||n()}))),this.writable||(o("we are currently writing - waiting to pause"),e++,this.once("drain",(function(){o("pre-pause writing complete"),--e||n()})))}else n()}poll(){o("polling"),this.polling=!0,this.doPoll(),this.emit("poll")}onData(e){const t=this;o("polling got data %s",e);i.decodePayload(e,this.socket.binaryType).forEach((function(e,n,r){if("opening"===t.readyState&&"open"===e.type&&t.onOpen(),"close"===e.type)return t.onClose(),!1;t.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():o('ignoring poll - transport state "%s"',this.readyState))}doClose(){const e=this;function t(){o("writing close packet"),e.write([{type:"close"}])}"open"===this.readyState?(o("transport open - closing"),t()):(o("transport not open - deferring close"),this.once("open",t))}write(e){this.writable=!1,i.encodePayload(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emit("drain")})})}uri(){let e=this.query||{};const t=this.opts.secure?"https":"http";let n="";!1!==this.opts.timestampRequests&&(e[this.opts.timestampParam]=s()),this.supportsBinary||e.sid||(e.b64=1),e=a.encode(e),this.opts.port&&("https"===t&&443!==Number(this.opts.port)||"http"===t&&80!==Number(this.opts.port))&&(n=":"+this.opts.port),e.length&&(e="?"+e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+n+this.opts.path+e}}},function(e,t){const n=Object.create(null);n.open="0",n.close="1",n.ping="2",n.pong="3",n.message="4",n.upgrade="5",n.noop="6";const r=Object.create(null);Object.keys(n).forEach(e=>{r[n[e]]=e});e.exports={PACKET_TYPES:n,PACKET_TYPES_REVERSE:r,ERROR_PACKET:{type:"error",data:"parser error"}}},function(e,t,n){"use strict";var r,a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),i={},s=0,o=0;function l(e){var t="";do{t=a[e%64]+t,e=Math.floor(e/64)}while(e>0);return t}function c(){var e=l(+new Date);return e!==r?(s=0,r=e):e+"."+l(s++)}for(;o<64;o++)i[a[o]]=o;c.encode=l,c.decode=function(e){var t=0;for(o=0;o<e.length;o++)t=64*t+i[e.charAt(o)];return t},e.exports=c},function(e,t){e.exports.pick=(e,...t)=>t.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=void 0;const r=n(121),a=n(191),i=n(192),s=n(88)("socket.io-client:socket"),o=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class l extends i.StrictEventEmitter{constructor(e,t,n){super(),this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},n&&n.auth&&(this.auth=n.auth),this.io._autoConnect&&this.open()}subEvents(){if(this.subs)return;const e=this.io;this.subs=[a.on(e,"open",this.onopen.bind(this)),a.on(e,"packet",this.onpacket.bind(this)),a.on(e,"error",this.onerror.bind(this)),a.on(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(o.hasOwnProperty(e))throw new Error('"'+e+'" is a reserved event name');t.unshift(e);const n={type:r.PacketType.EVENT,data:t,options:{}};n.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]&&(s("emitting packet with ack id %d",this.ids),this.acks[this.ids]=t.pop(),n.id=this.ids++);const a=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!a||!this.connected)?s("discard packet as the transport is not currently writable"):this.connected?this.packet(n):this.sendBuffer.push(n),this.flags={},this}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){s("transport is open - connecting"),"function"==typeof this.auth?this.auth(e=>{this.packet({type:r.PacketType.CONNECT,data:e})}):this.packet({type:r.PacketType.CONNECT,data:this.auth})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e){s("close (%s)",e),this.connected=!1,this.disconnected=!0,delete this.id,this.emitReserved("disconnect",e)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case r.PacketType.CONNECT:if(e.data&&e.data.sid){const t=e.data.sid;this.onconnect(t)}else this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case r.PacketType.EVENT:case r.PacketType.BINARY_EVENT:this.onevent(e);break;case r.PacketType.ACK:case r.PacketType.BINARY_ACK:this.onack(e);break;case r.PacketType.DISCONNECT:this.ondisconnect();break;case r.PacketType.CONNECT_ERROR:const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];s("emitting event %j",t),null!=e.id&&(s("attaching ack callback to event"),t.push(this.ack(e.id))),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const n of t)n.apply(this,e)}super.emit.apply(this,e)}ack(e){const t=this;let n=!1;return function(...a){n||(n=!0,s("sending ack %j",a),t.packet({type:r.PacketType.ACK,id:e,data:a}))}}onack(e){const t=this.acks[e.id];"function"==typeof t?(s("calling ack %s with %j",e.id,e.data),t.apply(this,e.data),delete this.acks[e.id]):s("bad ack %s",e.id)}onconnect(e){s("socket connected with id %s",e),this.id=e,this.connected=!0,this.disconnected=!1,this.emitReserved("connect"),this.emitBuffered()}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>this.packet(e)),this.sendBuffer=[]}ondisconnect(){s("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&(s("performing disconnect (%s)",this.nsp),this.packet({type:r.PacketType.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}}t.Socket=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasBinary=t.isBinary=void 0;const r="function"==typeof ArrayBuffer,a=Object.prototype.toString,i="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===a.call(Blob),s="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===a.call(File);function o(e){return r&&(e instanceof ArrayBuffer||(e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer)(e))||i&&e instanceof Blob||s&&e instanceof File}t.isBinary=o,t.hasBinary=function e(t,n){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let n=0,r=t.length;n<r;n++)if(e(t[n]))return!0;return!1}if(o(t))return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1===arguments.length)return e(t.toJSON(),!0);for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&e(t[n]))return!0;return!1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.on=void 0,t.on=function(e,t,n){return e.on(t,n),function(){e.off(t,n)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StrictEventEmitter=void 0;const r=n(63);t.StrictEventEmitter=class extends r{on(e,t){return super.on(e,t),this}once(e,t){return super.once(e,t),this}emit(e,...t){return super.emit(e,...t),this}emitReserved(e,...t){return super.emit(e,...t),this}listeners(e){return super.listeners(e)}}},function(e,t,n){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function s(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,o,l=s(e),c=1;c<arguments.length;c++){for(var u in n=Object(arguments[c]))a.call(n,u)&&(l[u]=n[u]);if(r){o=r(n);for(var p=0;p<o.length;p++)i.call(n,o[p])&&(l[o[p]]=n[o[p]])}}return l}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return Mn})),n.d(t,"VERSION",(function(){return a})),n.d(t,"restArguments",(function(){return E})),n.d(t,"isObject",(function(){return k})),n.d(t,"isNull",(function(){return T})),n.d(t,"isUndefined",(function(){return C})),n.d(t,"isBoolean",(function(){return I})),n.d(t,"isElement",(function(){return A})),n.d(t,"isString",(function(){return x})),n.d(t,"isNumber",(function(){return N})),n.d(t,"isDate",(function(){return R})),n.d(t,"isRegExp",(function(){return D})),n.d(t,"isError",(function(){return H})),n.d(t,"isSymbol",(function(){return F})),n.d(t,"isArrayBuffer",(function(){return G})),n.d(t,"isDataView",(function(){return V})),n.d(t,"isArray",(function(){return $})),n.d(t,"isFunction",(function(){return j})),n.d(t,"isArguments",(function(){return J})),n.d(t,"isFinite",(function(){return X})),n.d(t,"isNaN",(function(){return Q})),n.d(t,"isTypedArray",(function(){return ae})),n.d(t,"isEmpty",(function(){return le})),n.d(t,"isMatch",(function(){return ce})),n.d(t,"isEqual",(function(){return he})),n.d(t,"isMap",(function(){return Pe})),n.d(t,"isWeakMap",(function(){return we})),n.d(t,"isSet",(function(){return Ee})),n.d(t,"isWeakSet",(function(){return ke})),n.d(t,"keys",(function(){return oe})),n.d(t,"allKeys",(function(){return fe})),n.d(t,"values",(function(){return Te})),n.d(t,"pairs",(function(){return Ce})),n.d(t,"invert",(function(){return Ie})),n.d(t,"functions",(function(){return Ae})),n.d(t,"methods",(function(){return Ae})),n.d(t,"extend",(function(){return xe})),n.d(t,"extendOwn",(function(){return Ne})),n.d(t,"assign",(function(){return Ne})),n.d(t,"defaults",(function(){return Re})),n.d(t,"create",(function(){return He})),n.d(t,"clone",(function(){return Fe})),n.d(t,"tap",(function(){return Ge})),n.d(t,"get",(function(){return Me})),n.d(t,"has",(function(){return Be})),n.d(t,"mapObject",(function(){return Xe})),n.d(t,"identity",(function(){return Ke})),n.d(t,"constant",(function(){return Y})),n.d(t,"noop",(function(){return Qe})),n.d(t,"toPath",(function(){return Ue})),n.d(t,"property",(function(){return Ve})),n.d(t,"propertyOf",(function(){return Ye})),n.d(t,"matcher",(function(){return qe})),n.d(t,"matches",(function(){return qe})),n.d(t,"times",(function(){return Ze})),n.d(t,"random",(function(){return et})),n.d(t,"now",(function(){return tt})),n.d(t,"escape",(function(){return at})),n.d(t,"unescape",(function(){return it})),n.d(t,"templateSettings",(function(){return st})),n.d(t,"template",(function(){return dt})),n.d(t,"result",(function(){return ht})),n.d(t,"uniqueId",(function(){return mt})),n.d(t,"chain",(function(){return St})),n.d(t,"iteratee",(function(){return ze})),n.d(t,"partial",(function(){return vt})),n.d(t,"bind",(function(){return _t})),n.d(t,"bindAll",(function(){return wt})),n.d(t,"memoize",(function(){return Et})),n.d(t,"delay",(function(){return kt})),n.d(t,"defer",(function(){return Tt})),n.d(t,"throttle",(function(){return Ct})),n.d(t,"debounce",(function(){return It})),n.d(t,"wrap",(function(){return At})),n.d(t,"negate",(function(){return Ot})),n.d(t,"compose",(function(){return xt})),n.d(t,"after",(function(){return Nt})),n.d(t,"before",(function(){return Rt})),n.d(t,"once",(function(){return Dt})),n.d(t,"findKey",(function(){return Ht})),n.d(t,"findIndex",(function(){return Gt})),n.d(t,"findLastIndex",(function(){return Ut})),n.d(t,"sortedIndex",(function(){return Lt})),n.d(t,"indexOf",(function(){return Mt})),n.d(t,"lastIndexOf",(function(){return Bt})),n.d(t,"find",(function(){return Kt})),n.d(t,"detect",(function(){return Kt})),n.d(t,"findWhere",(function(){return qt})),n.d(t,"each",(function(){return Vt})),n.d(t,"forEach",(function(){return Vt})),n.d(t,"map",(function(){return $t})),n.d(t,"collect",(function(){return $t})),n.d(t,"reduce",(function(){return zt})),n.d(t,"foldl",(function(){return zt})),n.d(t,"inject",(function(){return zt})),n.d(t,"reduceRight",(function(){return Jt})),n.d(t,"foldr",(function(){return Jt})),n.d(t,"filter",(function(){return Xt})),n.d(t,"select",(function(){return Xt})),n.d(t,"reject",(function(){return Qt})),n.d(t,"every",(function(){return Yt})),n.d(t,"all",(function(){return Yt})),n.d(t,"some",(function(){return Zt})),n.d(t,"any",(function(){return Zt})),n.d(t,"contains",(function(){return en})),n.d(t,"includes",(function(){return en})),n.d(t,"include",(function(){return en})),n.d(t,"invoke",(function(){return tn})),n.d(t,"pluck",(function(){return nn})),n.d(t,"where",(function(){return rn})),n.d(t,"max",(function(){return an})),n.d(t,"min",(function(){return sn})),n.d(t,"shuffle",(function(){return ln})),n.d(t,"sample",(function(){return on})),n.d(t,"sortBy",(function(){return cn})),n.d(t,"groupBy",(function(){return pn})),n.d(t,"indexBy",(function(){return dn})),n.d(t,"countBy",(function(){return hn})),n.d(t,"partition",(function(){return fn})),n.d(t,"toArray",(function(){return Sn})),n.d(t,"size",(function(){return yn})),n.d(t,"pick",(function(){return vn})),n.d(t,"omit",(function(){return _n})),n.d(t,"first",(function(){return Pn})),n.d(t,"head",(function(){return Pn})),n.d(t,"take",(function(){return Pn})),n.d(t,"initial",(function(){return bn})),n.d(t,"last",(function(){return En})),n.d(t,"rest",(function(){return wn})),n.d(t,"tail",(function(){return wn})),n.d(t,"drop",(function(){return wn})),n.d(t,"compact",(function(){return kn})),n.d(t,"flatten",(function(){return Tn})),n.d(t,"without",(function(){return In})),n.d(t,"uniq",(function(){return An})),n.d(t,"unique",(function(){return An})),n.d(t,"union",(function(){return On})),n.d(t,"intersection",(function(){return xn})),n.d(t,"difference",(function(){return Cn})),n.d(t,"unzip",(function(){return Nn})),n.d(t,"transpose",(function(){return Nn})),n.d(t,"zip",(function(){return Rn})),n.d(t,"object",(function(){return Dn})),n.d(t,"range",(function(){return Hn})),n.d(t,"chunk",(function(){return Fn})),n.d(t,"mixin",(function(){return Un}));var r={};n.r(r),n.d(r,"VERSION",(function(){return a})),n.d(r,"restArguments",(function(){return E})),n.d(r,"isObject",(function(){return k})),n.d(r,"isNull",(function(){return T})),n.d(r,"isUndefined",(function(){return C})),n.d(r,"isBoolean",(function(){return I})),n.d(r,"isElement",(function(){return A})),n.d(r,"isString",(function(){return x})),n.d(r,"isNumber",(function(){return N})),n.d(r,"isDate",(function(){return R})),n.d(r,"isRegExp",(function(){return D})),n.d(r,"isError",(function(){return H})),n.d(r,"isSymbol",(function(){return F})),n.d(r,"isArrayBuffer",(function(){return G})),n.d(r,"isDataView",(function(){return V})),n.d(r,"isArray",(function(){return $})),n.d(r,"isFunction",(function(){return j})),n.d(r,"isArguments",(function(){return J})),n.d(r,"isFinite",(function(){return X})),n.d(r,"isNaN",(function(){return Q})),n.d(r,"isTypedArray",(function(){return ae})),n.d(r,"isEmpty",(function(){return le})),n.d(r,"isMatch",(function(){return ce})),n.d(r,"isEqual",(function(){return he})),n.d(r,"isMap",(function(){return Pe})),n.d(r,"isWeakMap",(function(){return we})),n.d(r,"isSet",(function(){return Ee})),n.d(r,"isWeakSet",(function(){return ke})),n.d(r,"keys",(function(){return oe})),n.d(r,"allKeys",(function(){return fe})),n.d(r,"values",(function(){return Te})),n.d(r,"pairs",(function(){return Ce})),n.d(r,"invert",(function(){return Ie})),n.d(r,"functions",(function(){return Ae})),n.d(r,"methods",(function(){return Ae})),n.d(r,"extend",(function(){return xe})),n.d(r,"extendOwn",(function(){return Ne})),n.d(r,"assign",(function(){return Ne})),n.d(r,"defaults",(function(){return Re})),n.d(r,"create",(function(){return He})),n.d(r,"clone",(function(){return Fe})),n.d(r,"tap",(function(){return Ge})),n.d(r,"get",(function(){return Me})),n.d(r,"has",(function(){return Be})),n.d(r,"mapObject",(function(){return Xe})),n.d(r,"identity",(function(){return Ke})),n.d(r,"constant",(function(){return Y})),n.d(r,"noop",(function(){return Qe})),n.d(r,"toPath",(function(){return Ue})),n.d(r,"property",(function(){return Ve})),n.d(r,"propertyOf",(function(){return Ye})),n.d(r,"matcher",(function(){return qe})),n.d(r,"matches",(function(){return qe})),n.d(r,"times",(function(){return Ze})),n.d(r,"random",(function(){return et})),n.d(r,"now",(function(){return tt})),n.d(r,"escape",(function(){return at})),n.d(r,"unescape",(function(){return it})),n.d(r,"templateSettings",(function(){return st})),n.d(r,"template",(function(){return dt})),n.d(r,"result",(function(){return ht})),n.d(r,"uniqueId",(function(){return mt})),n.d(r,"chain",(function(){return St})),n.d(r,"iteratee",(function(){return ze})),n.d(r,"partial",(function(){return vt})),n.d(r,"bind",(function(){return _t})),n.d(r,"bindAll",(function(){return wt})),n.d(r,"memoize",(function(){return Et})),n.d(r,"delay",(function(){return kt})),n.d(r,"defer",(function(){return Tt})),n.d(r,"throttle",(function(){return Ct})),n.d(r,"debounce",(function(){return It})),n.d(r,"wrap",(function(){return At})),n.d(r,"negate",(function(){return Ot})),n.d(r,"compose",(function(){return xt})),n.d(r,"after",(function(){return Nt})),n.d(r,"before",(function(){return Rt})),n.d(r,"once",(function(){return Dt})),n.d(r,"findKey",(function(){return Ht})),n.d(r,"findIndex",(function(){return Gt})),n.d(r,"findLastIndex",(function(){return Ut})),n.d(r,"sortedIndex",(function(){return Lt})),n.d(r,"indexOf",(function(){return Mt})),n.d(r,"lastIndexOf",(function(){return Bt})),n.d(r,"find",(function(){return Kt})),n.d(r,"detect",(function(){return Kt})),n.d(r,"findWhere",(function(){return qt})),n.d(r,"each",(function(){return Vt})),n.d(r,"forEach",(function(){return Vt})),n.d(r,"map",(function(){return $t})),n.d(r,"collect",(function(){return $t})),n.d(r,"reduce",(function(){return zt})),n.d(r,"foldl",(function(){return zt})),n.d(r,"inject",(function(){return zt})),n.d(r,"reduceRight",(function(){return Jt})),n.d(r,"foldr",(function(){return Jt})),n.d(r,"filter",(function(){return Xt})),n.d(r,"select",(function(){return Xt})),n.d(r,"reject",(function(){return Qt})),n.d(r,"every",(function(){return Yt})),n.d(r,"all",(function(){return Yt})),n.d(r,"some",(function(){return Zt})),n.d(r,"any",(function(){return Zt})),n.d(r,"contains",(function(){return en})),n.d(r,"includes",(function(){return en})),n.d(r,"include",(function(){return en})),n.d(r,"invoke",(function(){return tn})),n.d(r,"pluck",(function(){return nn})),n.d(r,"where",(function(){return rn})),n.d(r,"max",(function(){return an})),n.d(r,"min",(function(){return sn})),n.d(r,"shuffle",(function(){return ln})),n.d(r,"sample",(function(){return on})),n.d(r,"sortBy",(function(){return cn})),n.d(r,"groupBy",(function(){return pn})),n.d(r,"indexBy",(function(){return dn})),n.d(r,"countBy",(function(){return hn})),n.d(r,"partition",(function(){return fn})),n.d(r,"toArray",(function(){return Sn})),n.d(r,"size",(function(){return yn})),n.d(r,"pick",(function(){return vn})),n.d(r,"omit",(function(){return _n})),n.d(r,"first",(function(){return Pn})),n.d(r,"head",(function(){return Pn})),n.d(r,"take",(function(){return Pn})),n.d(r,"initial",(function(){return bn})),n.d(r,"last",(function(){return En})),n.d(r,"rest",(function(){return wn})),n.d(r,"tail",(function(){return wn})),n.d(r,"drop",(function(){return wn})),n.d(r,"compact",(function(){return kn})),n.d(r,"flatten",(function(){return Tn})),n.d(r,"without",(function(){return In})),n.d(r,"uniq",(function(){return An})),n.d(r,"unique",(function(){return An})),n.d(r,"union",(function(){return On})),n.d(r,"intersection",(function(){return xn})),n.d(r,"difference",(function(){return Cn})),n.d(r,"unzip",(function(){return Nn})),n.d(r,"transpose",(function(){return Nn})),n.d(r,"zip",(function(){return Rn})),n.d(r,"object",(function(){return Dn})),n.d(r,"range",(function(){return Hn})),n.d(r,"chunk",(function(){return Fn})),n.d(r,"mixin",(function(){return Un})),n.d(r,"default",(function(){return Ln}));var a="1.13.1",i="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},s=Array.prototype,o=Object.prototype,l="undefined"!=typeof Symbol?Symbol.prototype:null,c=s.push,u=s.slice,p=o.toString,d=o.hasOwnProperty,h="undefined"!=typeof ArrayBuffer,f="undefined"!=typeof DataView,m=Array.isArray,S=Object.keys,y=Object.create,g=h&&ArrayBuffer.isView,v=isNaN,_=isFinite,b=!{toString:null}.propertyIsEnumerable("toString"),P=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],w=Math.pow(2,53)-1;function E(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),a=0;a<n;a++)r[a]=arguments[a+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var i=Array(t+1);for(a=0;a<t;a++)i[a]=arguments[a];return i[t]=r,e.apply(this,i)}}function k(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function T(e){return null===e}function C(e){return void 0===e}function I(e){return!0===e||!1===e||"[object Boolean]"===p.call(e)}function A(e){return!(!e||1!==e.nodeType)}function O(e){var t="[object "+e+"]";return function(e){return p.call(e)===t}}var x=O("String"),N=O("Number"),R=O("Date"),D=O("RegExp"),H=O("Error"),F=O("Symbol"),G=O("ArrayBuffer"),U=O("Function"),L=i.document&&i.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof L&&(U=function(e){return"function"==typeof e||!1});var j=U,M=O("Object"),B=f&&M(new DataView(new ArrayBuffer(8))),K="undefined"!=typeof Map&&M(new Map),q=O("DataView");var V=B?function(e){return null!=e&&j(e.getInt8)&&G(e.buffer)}:q,$=m||O("Array");function W(e,t){return null!=e&&d.call(e,t)}var z=O("Arguments");!function(){z(arguments)||(z=function(e){return W(e,"callee")})}();var J=z;function X(e){return!F(e)&&_(e)&&!isNaN(parseFloat(e))}function Q(e){return N(e)&&v(e)}function Y(e){return function(){return e}}function Z(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=w}}function ee(e){return function(t){return null==t?void 0:t[e]}}var te=ee("byteLength"),ne=Z(te),re=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var ae=h?function(e){return g?g(e)&&!V(e):ne(e)&&re.test(p.call(e))}:Y(!1),ie=ee("length");function se(e,t){t=function(e){for(var t={},n=e.length,r=0;r<n;++r)t[e[r]]=!0;return{contains:function(e){return t[e]},push:function(n){return t[n]=!0,e.push(n)}}}(t);var n=P.length,r=e.constructor,a=j(r)&&r.prototype||o,i="constructor";for(W(e,i)&&!t.contains(i)&&t.push(i);n--;)(i=P[n])in e&&e[i]!==a[i]&&!t.contains(i)&&t.push(i)}function oe(e){if(!k(e))return[];if(S)return S(e);var t=[];for(var n in e)W(e,n)&&t.push(n);return b&&se(e,t),t}function le(e){if(null==e)return!0;var t=ie(e);return"number"==typeof t&&($(e)||x(e)||J(e))?0===t:0===ie(oe(e))}function ce(e,t){var n=oe(t),r=n.length;if(null==e)return!r;for(var a=Object(e),i=0;i<r;i++){var s=n[i];if(t[s]!==a[s]||!(s in a))return!1}return!0}function ue(e){return e instanceof ue?e:this instanceof ue?void(this._wrapped=e):new ue(e)}function pe(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,te(e))}ue.VERSION=a,ue.prototype.value=function(){return this._wrapped},ue.prototype.valueOf=ue.prototype.toJSON=ue.prototype.value,ue.prototype.toString=function(){return String(this._wrapped)};function de(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var a=typeof e;return("function"===a||"object"===a||"object"==typeof t)&&function e(t,n,r,a){t instanceof ue&&(t=t._wrapped);n instanceof ue&&(n=n._wrapped);var i=p.call(t);if(i!==p.call(n))return!1;if(B&&"[object Object]"==i&&V(t)){if(!V(n))return!1;i="[object DataView]"}switch(i){case"[object RegExp]":case"[object String]":return""+t==""+n;case"[object Number]":return+t!=+t?+n!=+n:0==+t?1/+t==1/n:+t==+n;case"[object Date]":case"[object Boolean]":return+t==+n;case"[object Symbol]":return l.valueOf.call(t)===l.valueOf.call(n);case"[object ArrayBuffer]":case"[object DataView]":return e(pe(t),pe(n),r,a)}var s="[object Array]"===i;if(!s&&ae(t)){if(te(t)!==te(n))return!1;if(t.buffer===n.buffer&&t.byteOffset===n.byteOffset)return!0;s=!0}if(!s){if("object"!=typeof t||"object"!=typeof n)return!1;var o=t.constructor,c=n.constructor;if(o!==c&&!(j(o)&&o instanceof o&&j(c)&&c instanceof c)&&"constructor"in t&&"constructor"in n)return!1}a=a||[];var u=(r=r||[]).length;for(;u--;)if(r[u]===t)return a[u]===n;if(r.push(t),a.push(n),s){if((u=t.length)!==n.length)return!1;for(;u--;)if(!de(t[u],n[u],r,a))return!1}else{var d,h=oe(t);if(u=h.length,oe(n).length!==u)return!1;for(;u--;)if(d=h[u],!W(n,d)||!de(t[d],n[d],r,a))return!1}return r.pop(),a.pop(),!0}(e,t,n,r)}function he(e,t){return de(e,t)}function fe(e){if(!k(e))return[];var t=[];for(var n in e)t.push(n);return b&&se(e,t),t}function me(e){var t=ie(e);return function(n){if(null==n)return!1;var r=fe(n);if(ie(r))return!1;for(var a=0;a<t;a++)if(!j(n[e[a]]))return!1;return e!==_e||!j(n[Se])}}var Se="forEach",ye=["clear","delete"],ge=["get","has","set"],ve=ye.concat(Se,ge),_e=ye.concat(ge),be=["add"].concat(ye,Se,"has"),Pe=K?me(ve):O("Map"),we=K?me(_e):O("WeakMap"),Ee=K?me(be):O("Set"),ke=O("WeakSet");function Te(e){for(var t=oe(e),n=t.length,r=Array(n),a=0;a<n;a++)r[a]=e[t[a]];return r}function Ce(e){for(var t=oe(e),n=t.length,r=Array(n),a=0;a<n;a++)r[a]=[t[a],e[t[a]]];return r}function Ie(e){for(var t={},n=oe(e),r=0,a=n.length;r<a;r++)t[e[n[r]]]=n[r];return t}function Ae(e){var t=[];for(var n in e)j(e[n])&&t.push(n);return t.sort()}function Oe(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var a=1;a<r;a++)for(var i=arguments[a],s=e(i),o=s.length,l=0;l<o;l++){var c=s[l];t&&void 0!==n[c]||(n[c]=i[c])}return n}}var xe=Oe(fe),Ne=Oe(oe),Re=Oe(fe,!0);function De(e){if(!k(e))return{};if(y)return y(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}function He(e,t){var n=De(e);return t&&Ne(n,t),n}function Fe(e){return k(e)?$(e)?e.slice():xe({},e):e}function Ge(e,t){return t(e),e}function Ue(e){return $(e)?e:[e]}function Le(e){return ue.toPath(e)}function je(e,t){for(var n=t.length,r=0;r<n;r++){if(null==e)return;e=e[t[r]]}return n?e:void 0}function Me(e,t,n){var r=je(e,Le(t));return C(r)?n:r}function Be(e,t){for(var n=(t=Le(t)).length,r=0;r<n;r++){var a=t[r];if(!W(e,a))return!1;e=e[a]}return!!n}function Ke(e){return e}function qe(e){return e=Ne({},e),function(t){return ce(t,e)}}function Ve(e){return e=Le(e),function(t){return je(t,e)}}function $e(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,a){return e.call(t,n,r,a)};case 4:return function(n,r,a,i){return e.call(t,n,r,a,i)}}return function(){return e.apply(t,arguments)}}function We(e,t,n){return null==e?Ke:j(e)?$e(e,t,n):k(e)&&!$(e)?qe(e):Ve(e)}function ze(e,t){return We(e,t,1/0)}function Je(e,t,n){return ue.iteratee!==ze?ue.iteratee(e,t):We(e,t,n)}function Xe(e,t,n){t=Je(t,n);for(var r=oe(e),a=r.length,i={},s=0;s<a;s++){var o=r[s];i[o]=t(e[o],o,e)}return i}function Qe(){}function Ye(e){return null==e?Qe:function(t){return Me(e,t)}}function Ze(e,t,n){var r=Array(Math.max(0,e));t=$e(t,n,1);for(var a=0;a<e;a++)r[a]=t(a);return r}function et(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}ue.toPath=Ue,ue.iteratee=ze;var tt=Date.now||function(){return(new Date).getTime()};function nt(e){var t=function(t){return e[t]},n="(?:"+oe(e).join("|")+")",r=RegExp(n),a=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(a,t):e}}var rt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},at=nt(rt),it=nt(Ie(rt)),st=ue.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},ot=/(.)^/,lt={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},ct=/\\|'|\r|\n|\u2028|\u2029/g;function ut(e){return"\\"+lt[e]}var pt=/^\s*(\w|\$)+\s*$/;function dt(e,t,n){!t&&n&&(t=n),t=Re({},t,ue.templateSettings);var r=RegExp([(t.escape||ot).source,(t.interpolate||ot).source,(t.evaluate||ot).source].join("|")+"|$","g"),a=0,i="__p+='";e.replace(r,(function(t,n,r,s,o){return i+=e.slice(a,o).replace(ct,ut),a=o+t.length,n?i+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?i+="'+\n((__t=("+r+"))==null?'':__t)+\n'":s&&(i+="';\n"+s+"\n__p+='"),t})),i+="';\n";var s,o=t.variable;if(o){if(!pt.test(o))throw new Error("variable is not a bare identifier: "+o)}else i="with(obj||{}){\n"+i+"}\n",o="obj";i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{s=new Function(o,"_",i)}catch(e){throw e.source=i,e}var l=function(e){return s.call(this,e,ue)};return l.source="function("+o+"){\n"+i+"}",l}function ht(e,t,n){var r=(t=Le(t)).length;if(!r)return j(n)?n.call(e):n;for(var a=0;a<r;a++){var i=null==e?void 0:e[t[a]];void 0===i&&(i=n,a=r),e=j(i)?i.call(e):i}return e}var ft=0;function mt(e){var t=++ft+"";return e?e+t:t}function St(e){var t=ue(e);return t._chain=!0,t}function yt(e,t,n,r,a){if(!(r instanceof t))return e.apply(n,a);var i=De(e.prototype),s=e.apply(i,a);return k(s)?s:i}var gt=E((function(e,t){var n=gt.placeholder,r=function(){for(var a=0,i=t.length,s=Array(i),o=0;o<i;o++)s[o]=t[o]===n?arguments[a++]:t[o];for(;a<arguments.length;)s.push(arguments[a++]);return yt(e,r,this,this,s)};return r}));gt.placeholder=ue;var vt=gt,_t=E((function(e,t,n){if(!j(e))throw new TypeError("Bind must be called on a function");var r=E((function(a){return yt(e,r,t,this,n.concat(a))}));return r})),bt=Z(ie);function Pt(e,t,n,r){if(r=r||[],t||0===t){if(t<=0)return r.concat(e)}else t=1/0;for(var a=r.length,i=0,s=ie(e);i<s;i++){var o=e[i];if(bt(o)&&($(o)||J(o)))if(t>1)Pt(o,t-1,n,r),a=r.length;else for(var l=0,c=o.length;l<c;)r[a++]=o[l++];else n||(r[a++]=o)}return r}var wt=E((function(e,t){var n=(t=Pt(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=_t(e[r],e)}return e}));function Et(e,t){var n=function(r){var a=n.cache,i=""+(t?t.apply(this,arguments):r);return W(a,i)||(a[i]=e.apply(this,arguments)),a[i]};return n.cache={},n}var kt=E((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})),Tt=vt(kt,ue,1);function Ct(e,t,n){var r,a,i,s,o=0;n||(n={});var l=function(){o=!1===n.leading?0:tt(),r=null,s=e.apply(a,i),r||(a=i=null)},c=function(){var c=tt();o||!1!==n.leading||(o=c);var u=t-(c-o);return a=this,i=arguments,u<=0||u>t?(r&&(clearTimeout(r),r=null),o=c,s=e.apply(a,i),r||(a=i=null)):r||!1===n.trailing||(r=setTimeout(l,u)),s};return c.cancel=function(){clearTimeout(r),o=0,r=a=i=null},c}function It(e,t,n){var r,a,i,s,o,l=function(){var c=tt()-a;t>c?r=setTimeout(l,t-c):(r=null,n||(s=e.apply(o,i)),r||(i=o=null))},c=E((function(c){return o=this,i=c,a=tt(),r||(r=setTimeout(l,t),n&&(s=e.apply(o,i))),s}));return c.cancel=function(){clearTimeout(r),r=i=o=null},c}function At(e,t){return vt(t,e)}function Ot(e){return function(){return!e.apply(this,arguments)}}function xt(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}function Nt(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function Rt(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var Dt=vt(Rt,2);function Ht(e,t,n){t=Je(t,n);for(var r,a=oe(e),i=0,s=a.length;i<s;i++)if(t(e[r=a[i]],r,e))return r}function Ft(e){return function(t,n,r){n=Je(n,r);for(var a=ie(t),i=e>0?0:a-1;i>=0&&i<a;i+=e)if(n(t[i],i,t))return i;return-1}}var Gt=Ft(1),Ut=Ft(-1);function Lt(e,t,n,r){for(var a=(n=Je(n,r,1))(t),i=0,s=ie(e);i<s;){var o=Math.floor((i+s)/2);n(e[o])<a?i=o+1:s=o}return i}function jt(e,t,n){return function(r,a,i){var s=0,o=ie(r);if("number"==typeof i)e>0?s=i>=0?i:Math.max(i+o,s):o=i>=0?Math.min(i+1,o):i+o+1;else if(n&&i&&o)return r[i=n(r,a)]===a?i:-1;if(a!=a)return(i=t(u.call(r,s,o),Q))>=0?i+s:-1;for(i=e>0?s:o-1;i>=0&&i<o;i+=e)if(r[i]===a)return i;return-1}}var Mt=jt(1,Gt,Lt),Bt=jt(-1,Ut);function Kt(e,t,n){var r=(bt(e)?Gt:Ht)(e,t,n);if(void 0!==r&&-1!==r)return e[r]}function qt(e,t){return Kt(e,qe(t))}function Vt(e,t,n){var r,a;if(t=$e(t,n),bt(e))for(r=0,a=e.length;r<a;r++)t(e[r],r,e);else{var i=oe(e);for(r=0,a=i.length;r<a;r++)t(e[i[r]],i[r],e)}return e}function $t(e,t,n){t=Je(t,n);for(var r=!bt(e)&&oe(e),a=(r||e).length,i=Array(a),s=0;s<a;s++){var o=r?r[s]:s;i[s]=t(e[o],o,e)}return i}function Wt(e){var t=function(t,n,r,a){var i=!bt(t)&&oe(t),s=(i||t).length,o=e>0?0:s-1;for(a||(r=t[i?i[o]:o],o+=e);o>=0&&o<s;o+=e){var l=i?i[o]:o;r=n(r,t[l],l,t)}return r};return function(e,n,r,a){var i=arguments.length>=3;return t(e,$e(n,a,4),r,i)}}var zt=Wt(1),Jt=Wt(-1);function Xt(e,t,n){var r=[];return t=Je(t,n),Vt(e,(function(e,n,a){t(e,n,a)&&r.push(e)})),r}function Qt(e,t,n){return Xt(e,Ot(Je(t)),n)}function Yt(e,t,n){t=Je(t,n);for(var r=!bt(e)&&oe(e),a=(r||e).length,i=0;i<a;i++){var s=r?r[i]:i;if(!t(e[s],s,e))return!1}return!0}function Zt(e,t,n){t=Je(t,n);for(var r=!bt(e)&&oe(e),a=(r||e).length,i=0;i<a;i++){var s=r?r[i]:i;if(t(e[s],s,e))return!0}return!1}function en(e,t,n,r){return bt(e)||(e=Te(e)),("number"!=typeof n||r)&&(n=0),Mt(e,t,n)>=0}var tn=E((function(e,t,n){var r,a;return j(t)?a=t:(t=Le(t),r=t.slice(0,-1),t=t[t.length-1]),$t(e,(function(e){var i=a;if(!i){if(r&&r.length&&(e=je(e,r)),null==e)return;i=e[t]}return null==i?i:i.apply(e,n)}))}));function nn(e,t){return $t(e,Ve(t))}function rn(e,t){return Xt(e,qe(t))}function an(e,t,n){var r,a,i=-1/0,s=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var o=0,l=(e=bt(e)?e:Te(e)).length;o<l;o++)null!=(r=e[o])&&r>i&&(i=r);else t=Je(t,n),Vt(e,(function(e,n,r){((a=t(e,n,r))>s||a===-1/0&&i===-1/0)&&(i=e,s=a)}));return i}function sn(e,t,n){var r,a,i=1/0,s=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var o=0,l=(e=bt(e)?e:Te(e)).length;o<l;o++)null!=(r=e[o])&&r<i&&(i=r);else t=Je(t,n),Vt(e,(function(e,n,r){((a=t(e,n,r))<s||a===1/0&&i===1/0)&&(i=e,s=a)}));return i}function on(e,t,n){if(null==t||n)return bt(e)||(e=Te(e)),e[et(e.length-1)];var r=bt(e)?Fe(e):Te(e),a=ie(r);t=Math.max(Math.min(t,a),0);for(var i=a-1,s=0;s<t;s++){var o=et(s,i),l=r[s];r[s]=r[o],r[o]=l}return r.slice(0,t)}function ln(e){return on(e,1/0)}function cn(e,t,n){var r=0;return t=Je(t,n),nn($t(e,(function(e,n,a){return{value:e,index:r++,criteria:t(e,n,a)}})).sort((function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index})),"value")}function un(e,t){return function(n,r,a){var i=t?[[],[]]:{};return r=Je(r,a),Vt(n,(function(t,a){var s=r(t,a,n);e(i,t,s)})),i}}var pn=un((function(e,t,n){W(e,n)?e[n].push(t):e[n]=[t]})),dn=un((function(e,t,n){e[n]=t})),hn=un((function(e,t,n){W(e,n)?e[n]++:e[n]=1})),fn=un((function(e,t,n){e[n?0:1].push(t)}),!0),mn=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function Sn(e){return e?$(e)?u.call(e):x(e)?e.match(mn):bt(e)?$t(e,Ke):Te(e):[]}function yn(e){return null==e?0:bt(e)?e.length:oe(e).length}function gn(e,t,n){return t in n}var vn=E((function(e,t){var n={},r=t[0];if(null==e)return n;j(r)?(t.length>1&&(r=$e(r,t[1])),t=fe(e)):(r=gn,t=Pt(t,!1,!1),e=Object(e));for(var a=0,i=t.length;a<i;a++){var s=t[a],o=e[s];r(o,s,e)&&(n[s]=o)}return n})),_n=E((function(e,t){var n,r=t[0];return j(r)?(r=Ot(r),t.length>1&&(n=t[1])):(t=$t(Pt(t,!1,!1),String),r=function(e,n){return!en(t,n)}),vn(e,r,n)}));function bn(e,t,n){return u.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function Pn(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:bn(e,e.length-t)}function wn(e,t,n){return u.call(e,null==t||n?1:t)}function En(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:wn(e,Math.max(0,e.length-t))}function kn(e){return Xt(e,Boolean)}function Tn(e,t){return Pt(e,t,!1)}var Cn=E((function(e,t){return t=Pt(t,!0,!0),Xt(e,(function(e){return!en(t,e)}))})),In=E((function(e,t){return Cn(e,t)}));function An(e,t,n,r){I(t)||(r=n,n=t,t=!1),null!=n&&(n=Je(n,r));for(var a=[],i=[],s=0,o=ie(e);s<o;s++){var l=e[s],c=n?n(l,s,e):l;t&&!n?(s&&i===c||a.push(l),i=c):n?en(i,c)||(i.push(c),a.push(l)):en(a,l)||a.push(l)}return a}var On=E((function(e){return An(Pt(e,!0,!0))}));function xn(e){for(var t=[],n=arguments.length,r=0,a=ie(e);r<a;r++){var i=e[r];if(!en(t,i)){var s;for(s=1;s<n&&en(arguments[s],i);s++);s===n&&t.push(i)}}return t}function Nn(e){for(var t=e&&an(e,ie).length||0,n=Array(t),r=0;r<t;r++)n[r]=nn(e,r);return n}var Rn=E(Nn);function Dn(e,t){for(var n={},r=0,a=ie(e);r<a;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n}function Hn(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var r=Math.max(Math.ceil((t-e)/n),0),a=Array(r),i=0;i<r;i++,e+=n)a[i]=e;return a}function Fn(e,t){if(null==t||t<1)return[];for(var n=[],r=0,a=e.length;r<a;)n.push(u.call(e,r,r+=t));return n}function Gn(e,t){return e._chain?ue(t).chain():t}function Un(e){return Vt(Ae(e),(function(t){var n=ue[t]=e[t];ue.prototype[t]=function(){var e=[this._wrapped];return c.apply(e,arguments),Gn(this,n.apply(ue,e))}})),ue}Vt(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=s[e];ue.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),Gn(this,n)}})),Vt(["concat","join","slice"],(function(e){var t=s[e];ue.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),Gn(this,e)}}));var Ln=ue,jn=Un(r);jn._=jn;var Mn=jn},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",(function(){return r}))},function(e,t){e.exports=require("url")},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,a="~";function i(){}function s(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,n,r,i){if("function"!=typeof n)throw new TypeError("The listener must be a function");var o=new s(n,r||e,i),l=a?a+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],o]:e._events[l].push(o):(e._events[l]=o,e._eventsCount++),e}function l(e,t){0==--e._eventsCount?e._events=new i:delete e._events[t]}function c(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(a=!1)),c.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(a?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},c.prototype.listeners=function(e){var t=a?a+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,i=n.length,s=new Array(i);r<i;r++)s[r]=n[r].fn;return s},c.prototype.listenerCount=function(e){var t=a?a+e:e,n=this._events[t];return n?n.fn?1:n.length:0},c.prototype.emit=function(e,t,n,r,i,s){var o=a?a+e:e;if(!this._events[o])return!1;var l,c,u=this._events[o],p=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),p){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,r),!0;case 5:return u.fn.call(u.context,t,n,r,i),!0;case 6:return u.fn.call(u.context,t,n,r,i,s),!0}for(c=1,l=new Array(p-1);c<p;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var d,h=u.length;for(c=0;c<h;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),p){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,n);break;case 4:u[c].fn.call(u[c].context,t,n,r);break;default:if(!l)for(d=1,l=new Array(p-1);d<p;d++)l[d-1]=arguments[d];u[c].fn.apply(u[c].context,l)}}return!0},c.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,n,r){var i=a?a+e:e;if(!this._events[i])return this;if(!t)return l(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||r&&!s.once||n&&s.context!==n||l(this,i);else{for(var o=0,c=[],u=s.length;o<u;o++)(s[o].fn!==t||r&&!s[o].once||n&&s[o].context!==n)&&c.push(s[o]);c.length?this._events[i]=1===c.length?c[0]:c:l(this,i)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=a?a+e:e,this._events[t]&&l(this,t)):(this._events=new i,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=a,c.EventEmitter=c,e.exports=c},function(e,t,n){var r=n(310)("toUpperCase");e.exports=r},function(e,t,n){"use strict";var r,a={DEBUG:!1,LIB_VERSION:"2.45.0"};if("undefined"==typeof window){var i={hostname:""};r={navigator:{userAgent:""},document:{location:i,referrer:""},screen:{width:0,height:0},location:i}}else r=window;var s,o,l,c,u,p,d,h,f,m,S,y=Array.prototype,g=Function.prototype,v=Object.prototype,_=y.slice,b=v.toString,P=v.hasOwnProperty,w=r.console,E=r.navigator,k=r.document,T=r.opera,C=r.screen,I=E.userAgent,A=g.bind,O=y.forEach,x=y.indexOf,N=y.map,R=Array.isArray,D={},H={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},F={log:function(){if(a.DEBUG&&!H.isUndefined(w)&&w)try{w.log.apply(w,arguments)}catch(e){H.each(arguments,(function(e){w.log(e)}))}},warn:function(){if(a.DEBUG&&!H.isUndefined(w)&&w){var e=["Mixpanel warning:"].concat(H.toArray(arguments));try{w.warn.apply(w,e)}catch(t){H.each(e,(function(e){w.warn(e)}))}}},error:function(){if(a.DEBUG&&!H.isUndefined(w)&&w){var e=["Mixpanel error:"].concat(H.toArray(arguments));try{w.error.apply(w,e)}catch(t){H.each(e,(function(e){w.error(e)}))}}},critical:function(){if(!H.isUndefined(w)&&w){var e=["Mixpanel error:"].concat(H.toArray(arguments));try{w.error.apply(w,e)}catch(t){H.each(e,(function(e){w.error(e)}))}}}},G=function(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(F,arguments)}},U=function(e){return{log:G(F.log,e),error:G(F.error,e),critical:G(F.critical,e)}};H.bind=function(e,t){var n,r;if(A&&e.bind===A)return A.apply(e,_.call(arguments,1));if(!H.isFunction(e))throw new TypeError;return n=_.call(arguments,2),r=function(){if(!(this instanceof r))return e.apply(t,n.concat(_.call(arguments)));var a={};a.prototype=e.prototype;var i=new a;a.prototype=null;var s=e.apply(i,n.concat(_.call(arguments)));return Object(s)===s?s:i}},H.each=function(e,t,n){if(null!=e)if(O&&e.forEach===O)e.forEach(t,n);else if(e.length===+e.length){for(var r=0,a=e.length;r<a;r++)if(r in e&&t.call(n,e[r],r,e)===D)return}else for(var i in e)if(P.call(e,i)&&t.call(n,e[i],i,e)===D)return},H.extend=function(e){return H.each(_.call(arguments,1),(function(t){for(var n in t)void 0!==t[n]&&(e[n]=t[n])})),e},H.isArray=R||function(e){return"[object Array]"===b.call(e)},H.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch(e){return!1}},H.isArguments=function(e){return!(!e||!P.call(e,"callee"))},H.toArray=function(e){return e?e.toArray?e.toArray():H.isArray(e)||H.isArguments(e)?_.call(e):H.values(e):[]},H.map=function(e,t,n){if(N&&e.map===N)return e.map(t,n);var r=[];return H.each(e,(function(e){r.push(t.call(n,e))})),r},H.keys=function(e){var t=[];return null===e||H.each(e,(function(e,n){t[t.length]=n})),t},H.values=function(e){var t=[];return null===e||H.each(e,(function(e){t[t.length]=e})),t},H.include=function(e,t){var n=!1;return null===e?n:x&&e.indexOf===x?-1!=e.indexOf(t):(H.each(e,(function(e){if(n||(n=e===t))return D})),n)},H.includes=function(e,t){return-1!==e.indexOf(t)},H.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},H.isObject=function(e){return e===Object(e)&&!H.isArray(e)},H.isEmptyObject=function(e){if(H.isObject(e)){for(var t in e)if(P.call(e,t))return!1;return!0}return!1},H.isUndefined=function(e){return void 0===e},H.isString=function(e){return"[object String]"==b.call(e)},H.isDate=function(e){return"[object Date]"==b.call(e)},H.isNumber=function(e){return"[object Number]"==b.call(e)},H.isElement=function(e){return!(!e||1!==e.nodeType)},H.encodeDates=function(e){return H.each(e,(function(t,n){H.isDate(t)?e[n]=H.formatDate(t):H.isObject(t)&&(e[n]=H.encodeDates(t))})),e},H.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},H.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},H.strip_empty_properties=function(e){var t={};return H.each(e,(function(e,n){H.isString(e)&&e.length>0&&(t[n]=e)})),t},H.truncate=function(e,t){var n;return"string"==typeof e?n=e.slice(0,t):H.isArray(e)?(n=[],H.each(e,(function(e){n.push(H.truncate(e,t))}))):H.isObject(e)?(n={},H.each(e,(function(e,r){n[r]=H.truncate(e,t)}))):n=e,n},H.JSONEncode=function(e){var t=function(e){var t=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,(function(e){var t=n[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'},n=function(e,r){var a="",i=0,s="",o="",l=0,c=a,u=[],p=r[e];switch(p&&"object"==typeof p&&"function"==typeof p.toJSON&&(p=p.toJSON(e)),typeof p){case"string":return t(p);case"number":return isFinite(p)?String(p):"null";case"boolean":case"null":return String(p);case"object":if(!p)return"null";if(a+="    ",u=[],"[object Array]"===b.apply(p)){for(l=p.length,i=0;i<l;i+=1)u[i]=n(i,p)||"null";return o=0===u.length?"[]":a?"[\n"+a+u.join(",\n"+a)+"\n"+c+"]":"["+u.join(",")+"]",a=c,o}for(s in p)P.call(p,s)&&(o=n(s,p))&&u.push(t(s)+(a?": ":":")+o);return o=0===u.length?"{}":a?"{"+u.join(",")+c+"}":"{"+u.join(",")+"}",a=c,o}};return n("",{"":e})},H.JSONDecode=(u={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},p=function(e){var t=new SyntaxError(e);throw t.at=s,t.text=l,t},d=function(e){return e&&e!==o&&p("Expected '"+e+"' instead of '"+o+"'"),o=l.charAt(s),s+=1,o},h=function(){var e,t="";for("-"===o&&(t="-",d("-"));o>="0"&&o<="9";)t+=o,d();if("."===o)for(t+=".";d()&&o>="0"&&o<="9";)t+=o;if("e"===o||"E"===o)for(t+=o,d(),"-"!==o&&"+"!==o||(t+=o,d());o>="0"&&o<="9";)t+=o,d();if(e=+t,isFinite(e))return e;p("Bad number")},f=function(){var e,t,n,r="";if('"'===o)for(;d();){if('"'===o)return d(),r;if("\\"===o)if(d(),"u"===o){for(n=0,t=0;t<4&&(e=parseInt(d(),16),isFinite(e));t+=1)n=16*n+e;r+=String.fromCharCode(n)}else{if("string"!=typeof u[o])break;r+=u[o]}else r+=o}p("Bad string")},m=function(){for(;o&&o<=" ";)d()},c=function(){switch(m(),o){case"{":return function(){var e,t={};if("{"===o){if(d("{"),m(),"}"===o)return d("}"),t;for(;o;){if(e=f(),m(),d(":"),Object.hasOwnProperty.call(t,e)&&p('Duplicate key "'+e+'"'),t[e]=c(),m(),"}"===o)return d("}"),t;d(","),m()}}p("Bad object")}();case"[":return function(){var e=[];if("["===o){if(d("["),m(),"]"===o)return d("]"),e;for(;o;){if(e.push(c()),m(),"]"===o)return d("]"),e;d(","),m()}}p("Bad array")}();case'"':return f();case"-":return h();default:return o>="0"&&o<="9"?h():function(){switch(o){case"t":return d("t"),d("r"),d("u"),d("e"),!0;case"f":return d("f"),d("a"),d("l"),d("s"),d("e"),!1;case"n":return d("n"),d("u"),d("l"),d("l"),null}p('Unexpected "'+o+'"')}()}},function(e){var t;return l=e,s=0,o=" ",t=c(),m(),o&&p("Syntax error"),t}),H.base64Encode=function(e){var t,n,r,a,i,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o=0,l=0,c="",u=[];if(!e)return e;e=H.utf8Encode(e);do{t=(i=e.charCodeAt(o++)<<16|e.charCodeAt(o++)<<8|e.charCodeAt(o++))>>18&63,n=i>>12&63,r=i>>6&63,a=63&i,u[l++]=s.charAt(t)+s.charAt(n)+s.charAt(r)+s.charAt(a)}while(o<e.length);switch(c=u.join(""),e.length%3){case 1:c=c.slice(0,-2)+"==";break;case 2:c=c.slice(0,-1)+"="}return c},H.utf8Encode=function(e){var t,n,r,a,i="";for(t=n=0,r=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,a=0;a<r;a++){var s=e.charCodeAt(a),o=null;s<128?n++:o=s>127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==o&&(n>t&&(i+=e.substring(t,n)),i+=o,t=n=a+1)}return n>t&&(i+=e.substring(t,e.length)),i},H.UUID=(S=function(){for(var e=1*new Date,t=0;e==1*new Date;)t++;return e.toString(16)+t.toString(16)},function(){var e=(C.height*C.width).toString(16);return S()+"-"+Math.random().toString(16).replace(".","")+"-"+function(){var e,t,n=I,r=[],a=0;function i(e,t){var n,a=0;for(n=0;n<t.length;n++)a|=r[n]<<8*n;return e^a}for(e=0;e<n.length;e++)t=n.charCodeAt(e),r.unshift(255&t),r.length>=4&&(a=i(a,r),r=[]);return r.length>0&&(a=i(a,r)),a.toString(16)}()+"-"+e+"-"+S()});var L=["ahrefsbot","baiduspider","bingbot","bingpreview","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandexbot","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];H.isBlockedUA=function(e){var t;for(e=e.toLowerCase(),t=0;t<L.length;t++)if(-1!==e.indexOf(L[t]))return!0;return!1},H.HTTPBuildQuery=function(e,t){var n,r,a=[];return H.isUndefined(t)&&(t="&"),H.each(e,(function(e,t){n=encodeURIComponent(e.toString()),r=encodeURIComponent(t),a[a.length]=r+"="+n})),a.join(t)},H.getQueryParam=function(e,t){t=t.replace(/[[]/,"\\[").replace(/[\]]/,"\\]");var n=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);if(null===n||n&&"string"!=typeof n[1]&&n[1].length)return"";var r=n[1];try{r=decodeURIComponent(r)}catch(e){F.error("Skipping decoding for malformed query param: "+r)}return r.replace(/\+/g," ")},H.cookie={get:function(e){for(var t=e+"=",n=k.cookie.split(";"),r=0;r<n.length;r++){for(var a=n[r];" "==a.charAt(0);)a=a.substring(1,a.length);if(0===a.indexOf(t))return decodeURIComponent(a.substring(t.length,a.length))}return null},parse:function(e){var t;try{t=H.JSONDecode(H.cookie.get(e))||{}}catch(e){}return t},set_seconds:function(e,t,n,r,a,i,s){var o="",l="",c="";if(s)o="; domain="+s;else if(r){var u=$(k.location.hostname);o=u?"; domain=."+u:""}if(n){var p=new Date;p.setTime(p.getTime()+1e3*n),l="; expires="+p.toGMTString()}i&&(a=!0,c="; SameSite=None"),a&&(c+="; secure"),k.cookie=e+"="+encodeURIComponent(t)+l+"; path=/"+o+c},set:function(e,t,n,r,a,i,s){var o="",l="",c="";if(s)o="; domain="+s;else if(r){var u=$(k.location.hostname);o=u?"; domain=."+u:""}if(n){var p=new Date;p.setTime(p.getTime()+24*n*60*60*1e3),l="; expires="+p.toGMTString()}i&&(a=!0,c="; SameSite=None"),a&&(c+="; secure");var d=e+"="+encodeURIComponent(t)+l+"; path=/"+o+c;return k.cookie=d,d},remove:function(e,t,n){H.cookie.set(e,"",-1,t,!1,!1,n)}};var j=null,M=function(e,t){if(null!==j&&!t)return j;var n=!0;try{e=e||window.localStorage;var r="__mplss_"+K(8);e.setItem(r,"xyz"),"xyz"!==e.getItem(r)&&(n=!1),e.removeItem(r)}catch(e){n=!1}return j=n,n};H.localStorage={is_supported:function(e){var t=M(null,e);return t||F.error("localStorage unsupported; falling back to cookie store"),t},error:function(e){F.error("localStorage error: "+e)},get:function(e){try{return window.localStorage.getItem(e)}catch(e){H.localStorage.error(e)}return null},parse:function(e){try{return H.JSONDecode(H.localStorage.get(e))||{}}catch(e){}return null},set:function(e,t){try{window.localStorage.setItem(e,t)}catch(e){H.localStorage.error(e)}},remove:function(e){try{window.localStorage.removeItem(e)}catch(e){H.localStorage.error(e)}}},H.register_event=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,n,r,a,i){if(t)if(t.addEventListener&&!a)t.addEventListener(n,r,!!i);else{var s="on"+n,o=t[s];t[s]=function(t,n,r){return function(a){if(a=a||e(window.event)){var i,s,o=!0;return H.isFunction(r)&&(i=r(a)),s=n.call(t,a),!1!==i&&!1!==s||(o=!1),o}}}(t,r,o)}else F.error("No valid element provided to register_event")}}();var B=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');H.dom_query=function(){function e(e){return e.all?e.all:e.getElementsByTagName("*")}var t=/[\t\r\n]/g;function n(e,n){var r=" "+n+" ";return(" "+e.className+" ").replace(t," ").indexOf(r)>=0}function r(t){if(!k.getElementsByTagName)return[];var r,a,i,s,o,l,c,u,p,d,h=t.split(" "),f=[k];for(l=0;l<h.length;l++)if((r=h[l].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){i=(a=r.split("#"))[0];var m=a[1],S=k.getElementById(m);if(!S||i&&S.nodeName.toLowerCase()!=i)return[];f=[S]}else if(r.indexOf(".")>-1){i=(a=r.split("."))[0];var y=a[1];for(i||(i="*"),s=[],o=0,c=0;c<f.length;c++)for(p="*"==i?e(f[c]):f[c].getElementsByTagName(i),u=0;u<p.length;u++)s[o++]=p[u];for(f=[],d=0,c=0;c<s.length;c++)s[c].className&&H.isString(s[c].className)&&n(s[c],y)&&(f[d++]=s[c])}else{var g=r.match(B);if(g){i=g[1];var v,_=g[2],b=g[3],P=g[4];for(i||(i="*"),s=[],o=0,c=0;c<f.length;c++)for(p="*"==i?e(f[c]):f[c].getElementsByTagName(i),u=0;u<p.length;u++)s[o++]=p[u];switch(f=[],d=0,b){case"=":v=function(e){return e.getAttribute(_)==P};break;case"~":v=function(e){return e.getAttribute(_).match(new RegExp("\\b"+P+"\\b"))};break;case"|":v=function(e){return e.getAttribute(_).match(new RegExp("^"+P+"-?"))};break;case"^":v=function(e){return 0===e.getAttribute(_).indexOf(P)};break;case"$":v=function(e){return e.getAttribute(_).lastIndexOf(P)==e.getAttribute(_).length-P.length};break;case"*":v=function(e){return e.getAttribute(_).indexOf(P)>-1};break;default:v=function(e){return e.getAttribute(_)}}for(f=[],d=0,c=0;c<s.length;c++)v(s[c])&&(f[d++]=s[c])}else{for(i=r,s=[],o=0,c=0;c<f.length;c++)for(p=f[c].getElementsByTagName(i),u=0;u<p.length;u++)s[o++]=p[u];f=s}}return f}return function(e){return H.isElement(e)?[e]:H.isObject(e)&&!H.isUndefined(e.length)?e:r.call(this,e)}}(),H.info={campaignParams:function(){var e="utm_source utm_medium utm_campaign utm_content utm_term".split(" "),t="",n={};return H.each(e,(function(e){(t=H.getQueryParam(k.URL,e)).length&&(n[e]=t)})),n},searchEngine:function(e){return 0===e.search("https?://(.*)google.([^/?]*)")?"google":0===e.search("https?://(.*)bing.com")?"bing":0===e.search("https?://(.*)yahoo.com")?"yahoo":0===e.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(e){var t=H.info.searchEngine(e),n="yahoo"!=t?"q":"p",r={};if(null!==t){r.$search_engine=t;var a=H.getQueryParam(e,n);a.length&&(r.mp_keyword=a)}return r},browser:function(e,t,n){return t=t||"",n||H.includes(e," OPR/")?H.includes(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":H.includes(e,"IEMobile")||H.includes(e,"WPDesktop")?"Internet Explorer Mobile":H.includes(e,"SamsungBrowser/")?"Samsung Internet":H.includes(e,"Edge")||H.includes(e,"Edg/")?"Microsoft Edge":H.includes(e,"FBIOS")?"Facebook Mobile":H.includes(e,"Chrome")?"Chrome":H.includes(e,"CriOS")?"Chrome iOS":H.includes(e,"UCWEB")||H.includes(e,"UCBrowser")?"UC Browser":H.includes(e,"FxiOS")?"Firefox iOS":H.includes(t,"Apple")?H.includes(e,"Mobile")?"Mobile Safari":"Safari":H.includes(e,"Android")?"Android Mobile":H.includes(e,"Konqueror")?"Konqueror":H.includes(e,"Firefox")?"Firefox":H.includes(e,"MSIE")||H.includes(e,"Trident/")?"Internet Explorer":H.includes(e,"Gecko")?"Mozilla":""},browserVersion:function(e,t,n){var r={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[H.info.browser(e,t,n)];if(void 0===r)return null;var a=e.match(r);return a?parseFloat(a[a.length-2]):null},os:function(){var e=I;return/Windows/i.test(e)?/Phone/.test(e)||/WPDesktop/.test(e)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(e)?"iOS":/Android/.test(e)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Mac/i.test(e)?"Mac OS X":/Linux/.test(e)?"Linux":/CrOS/.test(e)?"Chrome OS":""},device:function(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""},referringDomain:function(e){var t=e.split("/");return t.length>=3?t[2]:""},properties:function(){return H.extend(H.strip_empty_properties({$os:H.info.os(),$browser:H.info.browser(I,E.vendor,T),$referrer:k.referrer,$referring_domain:H.info.referringDomain(k.referrer),$device:H.info.device(I)}),{$current_url:r.location.href,$browser_version:H.info.browserVersion(I,E.vendor,T),$screen_height:C.height,$screen_width:C.width,mp_lib:"web",$lib_version:a.LIB_VERSION,$insert_id:K(),time:H.timestamp()/1e3})},people_properties:function(){return H.extend(H.strip_empty_properties({$os:H.info.os(),$browser:H.info.browser(I,E.vendor,T)}),{$browser_version:H.info.browserVersion(I,E.vendor,T)})},pageviewInfo:function(e){return H.strip_empty_properties({mp_page:e,mp_referrer:k.referrer,mp_browser:H.info.browser(I,E.vendor,T),mp_platform:H.info.os()})}};var K=function(e){var t=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return e?t.substring(0,e):t},q=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,V=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,$=function(e){var t=V,n=e.split("."),r=n[n.length-1];(r.length>4||"com"===r||"org"===r)&&(t=q);var a=e.match(t);return a?a[0]:""},W=null,z=null;"undefined"!=typeof JSON&&(W=JSON.stringify,z=JSON.parse),W=W||H.JSONEncode,z=z||H.JSONDecode,H.toArray=H.toArray,H.isObject=H.isObject,H.JSONEncode=H.JSONEncode,H.JSONDecode=H.JSONDecode,H.isBlockedUA=H.isBlockedUA,H.isEmptyObject=H.isEmptyObject,H.info=H.info,H.info.device=H.info.device,H.info.browser=H.info.browser,H.info.browserVersion=H.info.browserVersion,H.info.properties=H.info.properties;var J=function(){};J.prototype.create_properties=function(){},J.prototype.event_handler=function(){},J.prototype.after_track_handler=function(){},J.prototype.init=function(e){return this.mp=e,this},J.prototype.track=function(e,t,n,r){var a=this,i=H.dom_query(e);if(0!==i.length)return H.each(i,(function(e){H.register_event(e,this.override_event,(function(e){var i={},s=a.create_properties(n,this),o=a.mp.get_config("track_links_timeout");a.event_handler(e,this,i),window.setTimeout(a.track_callback(r,s,i,!0),o),a.mp.track(t,s,a.track_callback(r,s,i))}))}),this),!0;F.error("The DOM query ("+e+") returned 0 elements")},J.prototype.track_callback=function(e,t,n,r){r=r||!1;var a=this;return function(){n.callback_fired||(n.callback_fired=!0,e&&!1===e(r,t)||a.after_track_handler(t,n,r))}},J.prototype.create_properties=function(e,t){return"function"==typeof e?e(t):H.extend({},e)};var X=function(){this.override_event="click"};H.inherit(X,J),X.prototype.create_properties=function(e,t){var n=X.superclass.create_properties.apply(this,arguments);return t.href&&(n.url=t.href),n},X.prototype.event_handler=function(e,t,n){n.new_tab=2===e.which||e.metaKey||e.ctrlKey||"_blank"===t.target,n.href=t.href,n.new_tab||e.preventDefault()},X.prototype.after_track_handler=function(e,t){t.new_tab||setTimeout((function(){window.location=t.href}),0)};var Q=function(){this.override_event="submit"};H.inherit(Q,J),Q.prototype.event_handler=function(e,t,n){n.element=t,e.preventDefault()},Q.prototype.after_track_handler=function(e,t){setTimeout((function(){t.element.submit()}),0)};var Y=U("lock"),Z=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.pollIntervalMS=t.pollIntervalMS||100,this.timeoutMS=t.timeoutMS||2e3};Z.prototype.withLock=function(e,t,n){n||"function"==typeof t||(n=t,t=null);var r=n||(new Date).getTime()+"|"+Math.random(),a=(new Date).getTime(),i=this.storageKey,s=this.pollIntervalMS,o=this.timeoutMS,l=this.storage,c=i+":X",u=i+":Y",p=i+":Z",d=function(e){t&&t(e)},h=function(e){if((new Date).getTime()-a>o)return Y.error("Timeout waiting for mutex on "+i+"; clearing lock. ["+r+"]"),l.removeItem(p),l.removeItem(u),void S();setTimeout((function(){try{e()}catch(e){d(e)}}),s*(Math.random()+.1))},f=function(e,t){e()?t():h((function(){f(e,t)}))},m=function(){var e=l.getItem(u);if(e&&e!==r)return!1;if(l.setItem(u,r),l.getItem(u)===r)return!0;if(!M(l,!0))throw new Error("localStorage support dropped while acquiring lock");return!1},S=function(){l.setItem(c,r),f(m,(function(){l.getItem(c)!==r?h((function(){l.getItem(u)===r?f((function(){return!l.getItem(p)}),y):S()})):y()}))},y=function(){l.setItem(p,"1");try{e()}finally{l.removeItem(p),l.getItem(u)===r&&l.removeItem(u),l.getItem(c)===r&&l.removeItem(c)}};try{if(!M(l,!0))throw new Error("localStorage support check failed");S()}catch(e){d(e)}};var ee=U("batch"),te=function(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.reportError=t.errorReporter||H.bind(ee.error,ee),this.lock=new Z(e,{storage:this.storage}),this.pid=t.pid||null,this.memQueue=[]};te.prototype.enqueue=function(e,t,n){var r={id:K(),flushAfter:(new Date).getTime()+2*t,payload:e};this.lock.withLock(H.bind((function(){var t;try{var a=this.readFromStorage();a.push(r),(t=this.saveToStorage(a))&&this.memQueue.push(r)}catch(n){this.reportError("Error enqueueing item",e),t=!1}n&&n(t)}),this),H.bind((function(e){this.reportError("Error acquiring storage lock",e),n&&n(!1)}),this),this.pid)},te.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);if(t.length<e){var n=this.readFromStorage();if(n.length){var r={};H.each(t,(function(e){r[e.id]=!0}));for(var a=0;a<n.length;a++){var i=n[a];if((new Date).getTime()>i.flushAfter&&!r[i.id]&&(i.orphaned=!0,t.push(i),t.length>=e))break}}}return t};var ne=function(e,t){var n=[];return H.each(e,(function(e){e.id&&!t[e.id]&&n.push(e)})),n};te.prototype.removeItemsByID=function(e,t){var n={};H.each(e,(function(e){n[e]=!0})),this.memQueue=ne(this.memQueue,n);var r=H.bind((function(){var t;try{var r=this.readFromStorage();if(r=ne(r,n),t=this.saveToStorage(r)){r=this.readFromStorage();for(var a=0;a<r.length;a++){var i=r[a];if(i.id&&n[i.id])return this.reportError("Item not removed from storage"),!1}}}catch(n){this.reportError("Error removing items",e),t=!1}return t}),this);this.lock.withLock((function(){var e=r();t&&t(e)}),H.bind((function(e){var n=!1;if(this.reportError("Error acquiring storage lock",e),!M(this.storage,!0)&&!(n=r()))try{this.storage.removeItem(this.storageKey)}catch(e){this.reportError("Error clearing queue",e)}t&&t(n)}),this),this.pid)};var re=function(e,t){var n=[];return H.each(e,(function(e){var r=e.id;if(r in t){var a=t[r];null!==a&&(e.payload=a,n.push(e))}else n.push(e)})),n};te.prototype.updatePayloads=function(e,t){this.memQueue=re(this.memQueue,e),this.lock.withLock(H.bind((function(){var n;try{var r=this.readFromStorage();r=re(r,e),n=this.saveToStorage(r)}catch(t){this.reportError("Error updating items",e),n=!1}t&&t(n)}),this),H.bind((function(e){this.reportError("Error acquiring storage lock",e),t&&t(!1)}),this),this.pid)},te.prototype.readFromStorage=function(){var e;try{(e=this.storage.getItem(this.storageKey))&&(e=z(e),H.isArray(e)||(this.reportError("Invalid storage entry:",e),e=null))}catch(t){this.reportError("Error retrieving queue",t),e=null}return e||[]},te.prototype.saveToStorage=function(e){try{return this.storage.setItem(this.storageKey,W(e)),!0}catch(e){return this.reportError("Error saving queue",e),!1}},te.prototype.clear=function(){this.memQueue=[],this.storage.removeItem(this.storageKey)};var ae=U("batch"),ie=function(e,t){this.errorReporter=t.errorReporter,this.queue=new te(e,{errorReporter:H.bind(this.reportError,this),storage:t.storage}),this.libConfig=t.libConfig,this.sendRequest=t.sendRequestFunc,this.beforeSendHook=t.beforeSendHook,this.stopAllBatching=t.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0};ie.prototype.enqueue=function(e,t){this.queue.enqueue(e,this.flushInterval,t)},ie.prototype.start=function(){this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},ie.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},ie.prototype.clear=function(){this.queue.clear()},ie.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},ie.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},ie.prototype.scheduleFlush=function(e){this.flushInterval=e,this.stopped||(this.timeoutID=setTimeout(H.bind(this.flush,this),this.flushInterval))},ie.prototype.flush=function(e){try{if(this.requestInProgress)return void ae.log("Flush: Request already in progress");e=e||{};var t=this.libConfig.batch_request_timeout_ms,n=(new Date).getTime(),r=this.batchSize,a=this.queue.fillBatch(r),i=[],s={};if(H.each(a,(function(e){var t=e.payload;this.beforeSendHook&&!e.orphaned&&(t=this.beforeSendHook(t)),t&&i.push(t),s[e.id]=t}),this),i.length<1)return void this.resetFlush();this.requestInProgress=!0;var o=H.bind((function(i){this.requestInProgress=!1;try{var o=!1;if(e.unloading)this.queue.updatePayloads(s);else if(H.isObject(i)&&"timeout"===i.error&&(new Date).getTime()-n>=t)this.reportError("Network timeout; retrying"),this.flush();else if(H.isObject(i)&&i.xhr_req&&(i.xhr_req.status>=500||429===i.xhr_req.status||"timeout"===i.error)){var l=2*this.flushInterval,c=i.xhr_req.responseHeaders;if(c){var u=c["Retry-After"];u&&(l=1e3*parseInt(u,10)||l)}l=Math.min(6e5,l),this.reportError("Error; retry in "+l+" ms"),this.scheduleFlush(l)}else if(H.isObject(i)&&i.xhr_req&&413===i.xhr_req.status)if(a.length>1){var p=Math.max(1,Math.floor(r/2));this.batchSize=Math.min(this.batchSize,p,a.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush()}else this.reportError("Single-event request too large; dropping",a),this.resetBatchSize(),o=!0;else o=!0;o&&this.queue.removeItemsByID(H.map(a,(function(e){return e.id})),H.bind((function(e){e?(this.consecutiveRemovalFailures=0,this.flush()):(this.reportError("Failed to remove items from queue"),++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush())}),this))}catch(e){this.reportError("Error handling API response",e),this.resetFlush()}}),this),l={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:t};e.unloading&&(l.transport="sendBeacon"),ae.log("MIXPANEL REQUEST:",i),this.sendRequest(i,l,o)}catch(e){this.reportError("Error flushing request queue",e),this.resetFlush()}},ie.prototype.reportError=function(e,t){if(ae.error.apply(ae.error,arguments),this.errorReporter)try{t instanceof Error||(t=new Error(e)),this.errorReporter(e,t)}catch(t){ae.error(t)}};function se(e,t){ye(!0,e,t)}function oe(e,t){ye(!1,e,t)}function le(e,t){return"1"===Se(e,t)}function ce(e,t){if(function(e){if(e&&e.ignoreDnt)return!1;var t=e&&e.window||r,n=t.navigator||{},a=!1;return H.each([n.doNotTrack,n.msDoNotTrack,t.doNotTrack],(function(e){H.includes([!0,1,"1","yes"],e)&&(a=!0)})),a}(t))return F.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var n="0"===Se(e,t);return n&&F.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),n}function ue(e){return ge(e,(function(e){return this.get_config(e)}))}function pe(e){return ge(e,(function(e){return this._get_config(e)}))}function de(e){return ge(e,(function(e){return this._get_config(e)}))}function he(e,t){fe(t=t||{}).remove(me(e,t),!!t.crossSubdomainCookie,t.cookieDomain)}function fe(e){return"localStorage"===(e=e||{}).persistenceType?H.localStorage:H.cookie}function me(e,t){return((t=t||{}).persistencePrefix||"__mp_opt_in_out_")+e}function Se(e,t){return fe(t).get(me(e,t))}function ye(e,t,n){H.isString(t)&&t.length?(fe(n=n||{}).set(me(t,n),e?1:0,H.isNumber(n.cookieExpiration)?n.cookieExpiration:null,!!n.crossSubdomainCookie,!!n.secureCookie,!!n.crossSiteCookie,n.cookieDomain),n.track&&e&&n.track(n.trackEventName||"$opt_in",n.trackProperties,{send_immediately:!0})):F.error("gdpr."+(e?"optIn":"optOut")+" called with an invalid token")}function ge(e,t){return function(){var n=!1;try{var r=t.call(this,"token"),a=t.call(this,"ignore_dnt"),i=t.call(this,"opt_out_tracking_persistence_type"),s=t.call(this,"opt_out_tracking_cookie_prefix"),o=t.call(this,"window");r&&(n=ce(r,{ignoreDnt:a,persistenceType:i,persistencePrefix:s,window:o}))}catch(e){F.error("Unexpected error when checking tracking opt-out status: "+e)}if(!n)return e.apply(this,arguments);var l=arguments[arguments.length-1];"function"==typeof l&&l(0)}}var ve={set_action:function(e,t){var n={},r={};return H.isObject(e)?H.each(e,(function(e,t){this._is_reserved_property(t)||(r[t]=e)}),this):r[e]=t,n.$set=r,n},unset_action:function(e){var t={},n=[];return H.isArray(e)||(e=[e]),H.each(e,(function(e){this._is_reserved_property(e)||n.push(e)}),this),t.$unset=n,t},set_once_action:function(e,t){var n={},r={};return H.isObject(e)?H.each(e,(function(e,t){this._is_reserved_property(t)||(r[t]=e)}),this):r[e]=t,n.$set_once=r,n},union_action:function(e,t){var n={},r={};return H.isObject(e)?H.each(e,(function(e,t){this._is_reserved_property(t)||(r[t]=H.isArray(e)?e:[e])}),this):r[e]=H.isArray(t)?t:[t],n.$union=r,n},append_action:function(e,t){var n={},r={};return H.isObject(e)?H.each(e,(function(e,t){this._is_reserved_property(t)||(r[t]=e)}),this):r[e]=t,n.$append=r,n},remove_action:function(e,t){var n={},r={};return H.isObject(e)?H.each(e,(function(e,t){this._is_reserved_property(t)||(r[t]=e)}),this):r[e]=t,n.$remove=r,n},delete_action:function(){var e={$delete:""};return e}},_e=function(){};H.extend(_e.prototype,ve),_e.prototype._init=function(e,t,n){this._mixpanel=e,this._group_key=t,this._group_id=n},_e.prototype.set=de((function(e,t,n){var r=this.set_action(e,t);return H.isObject(e)&&(n=t),this._send_request(r,n)})),_e.prototype.set_once=de((function(e,t,n){var r=this.set_once_action(e,t);return H.isObject(e)&&(n=t),this._send_request(r,n)})),_e.prototype.unset=de((function(e,t){var n=this.unset_action(e);return this._send_request(n,t)})),_e.prototype.union=de((function(e,t,n){H.isObject(e)&&(n=t);var r=this.union_action(e,t);return this._send_request(r,n)})),_e.prototype.delete=de((function(e){var t=this.delete_action();return this._send_request(t,e)})),_e.prototype.remove=de((function(e,t,n){var r=this.remove_action(e,t);return this._send_request(r,n)})),_e.prototype._send_request=function(e,t){e.$group_key=this._group_key,e.$group_id=this._group_id,e.$token=this._get_config("token");var n=H.encodeDates(e);return this._mixpanel._track_or_batch({type:"groups",data:n,endpoint:this._get_config("api_host")+"/groups/",batcher:this._mixpanel.request_batchers.groups},t)},_e.prototype._is_reserved_property=function(e){return"$group_key"===e||"$group_id"===e},_e.prototype._get_config=function(e){return this._mixpanel.get_config(e)},_e.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},_e.prototype.remove=_e.prototype.remove,_e.prototype.set=_e.prototype.set,_e.prototype.set_once=_e.prototype.set_once,_e.prototype.union=_e.prototype.union,_e.prototype.unset=_e.prototype.unset,_e.prototype.toString=_e.prototype.toString;var be=function(){};H.extend(be.prototype,ve),be.prototype._init=function(e){this._mixpanel=e},be.prototype.set=pe((function(e,t,n){var r=this.set_action(e,t);return H.isObject(e)&&(n=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),r.$set=H.extend({},H.info.people_properties(),this._mixpanel.persistence.get_referrer_info(),r.$set),this._send_request(r,n)})),be.prototype.set_once=pe((function(e,t,n){var r=this.set_once_action(e,t);return H.isObject(e)&&(n=t),this._send_request(r,n)})),be.prototype.unset=pe((function(e,t){var n=this.unset_action(e);return this._send_request(n,t)})),be.prototype.increment=pe((function(e,t,n){var r={},a={};return H.isObject(e)?(H.each(e,(function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e)))return void F.error("Invalid increment value passed to mixpanel.people.increment - must be a number");a[t]=e}}),this),n=t):(H.isUndefined(t)&&(t=1),a[e]=t),r.$add=a,this._send_request(r,n)})),be.prototype.append=pe((function(e,t,n){H.isObject(e)&&(n=t);var r=this.append_action(e,t);return this._send_request(r,n)})),be.prototype.remove=pe((function(e,t,n){H.isObject(e)&&(n=t);var r=this.remove_action(e,t);return this._send_request(r,n)})),be.prototype.union=pe((function(e,t,n){H.isObject(e)&&(n=t);var r=this.union_action(e,t);return this._send_request(r,n)})),be.prototype.track_charge=pe((function(e,t,n){if(H.isNumber(e)||(e=parseFloat(e),!isNaN(e)))return this.append("$transactions",H.extend({$amount:e},t),n);F.error("Invalid value passed to mixpanel.people.track_charge - must be a number")})),be.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},be.prototype.delete_user=function(){if(this._identify_called()){var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)}F.error("mixpanel.people.delete_user() requires you to call identify() first")},be.prototype.toString=function(){return this._mixpanel.toString()+".people"},be.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var n=this._mixpanel.get_property("$device_id"),r=this._mixpanel.get_property("$user_id"),a=this._mixpanel.get_property("$had_persisted_distinct_id");n&&(e.$device_id=n),r&&(e.$user_id=r),a&&(e.$had_persisted_distinct_id=a);var i=H.encodeDates(e);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:i,endpoint:this._get_config("api_host")+"/engage/",batcher:this._mixpanel.request_batchers.people},t):(this._enqueue(e),H.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),H.truncate(i,255))},be.prototype._get_config=function(e){return this._mixpanel.get_config(e)},be.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},be.prototype._enqueue=function(e){"$set"in e?this._mixpanel.persistence._add_to_people_queue("$set",e):"$set_once"in e?this._mixpanel.persistence._add_to_people_queue("$set_once",e):"$unset"in e?this._mixpanel.persistence._add_to_people_queue("$unset",e):"$add"in e?this._mixpanel.persistence._add_to_people_queue("$add",e):"$append"in e?this._mixpanel.persistence._add_to_people_queue("$append",e):"$remove"in e?this._mixpanel.persistence._add_to_people_queue("$remove",e):"$union"in e?this._mixpanel.persistence._add_to_people_queue("$union",e):F.error("Invalid call to _enqueue():",e)},be.prototype._flush_one_queue=function(e,t,n,r){var a=this,i=H.extend({},this._mixpanel.persistence._get_queue(e)),s=i;H.isUndefined(i)||!H.isObject(i)||H.isEmptyObject(i)||(a._mixpanel.persistence._pop_from_people_queue(e,i),r&&(s=r(i)),t.call(a,s,(function(t,r){0===t&&a._mixpanel.persistence._add_to_people_queue(e,i),H.isUndefined(n)||n(t,r)})))},be.prototype._flush=function(e,t,n,r,a,i,s){var o=this,l=this._mixpanel.persistence._get_queue("$append"),c=this._mixpanel.persistence._get_queue("$remove");if(this._flush_one_queue("$set",this.set,e),this._flush_one_queue("$set_once",this.set_once,r),this._flush_one_queue("$unset",this.unset,i,(function(e){return H.keys(e)})),this._flush_one_queue("$add",this.increment,t),this._flush_one_queue("$union",this.union,a),!H.isUndefined(l)&&H.isArray(l)&&l.length){for(var u,p=function(e,t){0===e&&o._mixpanel.persistence._add_to_people_queue("$append",u),H.isUndefined(n)||n(e,t)},d=l.length-1;d>=0;d--)u=l.pop(),H.isEmptyObject(u)||o.append(u,p);o._mixpanel.persistence.save()}if(!H.isUndefined(c)&&H.isArray(c)&&c.length){for(var h,f=function(e,t){0===e&&o._mixpanel.persistence._add_to_people_queue("$remove",h),H.isUndefined(s)||s(e,t)},m=c.length-1;m>=0;m--)h=c.pop(),H.isEmptyObject(h)||o.remove(h,f);o._mixpanel.persistence.save()}},be.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},be.prototype.set=be.prototype.set,be.prototype.set_once=be.prototype.set_once,be.prototype.unset=be.prototype.unset,be.prototype.increment=be.prototype.increment,be.prototype.append=be.prototype.append,be.prototype.remove=be.prototype.remove,be.prototype.union=be.prototype.union,be.prototype.track_charge=be.prototype.track_charge,be.prototype.clear_charges=be.prototype.clear_charges,be.prototype.delete_user=be.prototype.delete_user,be.prototype.toString=be.prototype.toString;var Pe,we,Ee=["__mps","__mpso","__mpus","__mpa","__mpap","__mpr","__mpu","$people_distinct_id","__alias","__timers"],ke=function(e){this.props={},this.campaign_params_saved=!1,e.persistence_name?this.name="mp_"+e.persistence_name:this.name="mp_"+e.token+"_mixpanel";var t=e.persistence;"cookie"!==t&&"localStorage"!==t&&(F.critical("Unknown persistence type "+t+"; falling back to cookie"),t=e.persistence="cookie"),"localStorage"===t&&H.localStorage.is_supported()?this.storage=H.localStorage:this.storage=H.cookie,this.load(),this.update_config(e),this.upgrade(e),this.save()};ke.prototype.properties=function(){var e={};return H.each(this.props,(function(t,n){H.include(Ee,n)||(e[n]=t)})),e},ke.prototype.load=function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=H.extend({},e))}},ke.prototype.upgrade=function(e){var t,n,r=e.upgrade;r&&(t="mp_super_properties","string"==typeof r&&(t=r),n=this.storage.parse(t),this.storage.remove(t),this.storage.remove(t,!0),n&&(this.props=H.extend(this.props,n.all,n.events))),e.cookie_name||"mixpanel"===e.name||(t="mp_"+e.token+"_"+e.name,(n=this.storage.parse(t))&&(this.storage.remove(t),this.storage.remove(t,!0),this.register_once(n))),this.storage===H.localStorage&&(n=H.cookie.parse(this.name),H.cookie.remove(this.name),H.cookie.remove(this.name,!0),n&&this.register_once(n))},ke.prototype.save=function(){this.disabled||this.storage.set(this.name,H.JSONEncode(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},ke.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},ke.prototype.clear=function(){this.remove(),this.props={}},ke.prototype.register_once=function(e,t,n){return!!H.isObject(e)&&(void 0===t&&(t="None"),this.expire_days=void 0===n?this.default_expiry:n,H.each(e,(function(e,n){this.props.hasOwnProperty(n)&&this.props[n]!==t||(this.props[n]=e)}),this),this.save(),!0)},ke.prototype.register=function(e,t){return!!H.isObject(e)&&(this.expire_days=void 0===t?this.default_expiry:t,H.extend(this.props,e),this.save(),!0)},ke.prototype.unregister=function(e){e in this.props&&(delete this.props[e],this.save())},ke.prototype.update_campaign_params=function(){this.campaign_params_saved||(this.register_once(H.info.campaignParams()),this.campaign_params_saved=!0)},ke.prototype.update_search_keyword=function(e){this.register(H.info.searchInfo(e))},ke.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:H.info.referringDomain(e)||"$direct"},"")},ke.prototype.get_referrer_info=function(){return H.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},ke.prototype.safe_merge=function(e){return H.each(this.props,(function(t,n){n in e||(e[n]=t)})),e},ke.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)},ke.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},ke.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},ke.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},ke.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},ke.prototype.get_cross_subdomain=function(){return this.cross_subdomain},ke.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},ke.prototype._add_to_people_queue=function(e,t){var n=this._get_queue_key(e),r=t[e],a=this._get_or_create_queue("$set"),i=this._get_or_create_queue("$set_once"),s=this._get_or_create_queue("$unset"),o=this._get_or_create_queue("$add"),l=this._get_or_create_queue("$union"),c=this._get_or_create_queue("$remove",[]),u=this._get_or_create_queue("$append",[]);"__mps"===n?(H.extend(a,r),this._pop_from_people_queue("$add",r),this._pop_from_people_queue("$union",r),this._pop_from_people_queue("$unset",r)):"__mpso"===n?(H.each(r,(function(e,t){t in i||(i[t]=e)})),this._pop_from_people_queue("$unset",r)):"__mpus"===n?H.each(r,(function(e){H.each([a,i,o,l],(function(t){e in t&&delete t[e]})),H.each(u,(function(t){e in t&&delete t[e]})),s[e]=!0})):"__mpa"===n?(H.each(r,(function(e,t){t in a?a[t]+=e:(t in o||(o[t]=0),o[t]+=e)}),this),this._pop_from_people_queue("$unset",r)):"__mpu"===n?(H.each(r,(function(e,t){H.isArray(e)&&(t in l||(l[t]=[]),l[t]=l[t].concat(e))})),this._pop_from_people_queue("$unset",r)):"__mpr"===n?(c.push(r),this._pop_from_people_queue("$append",r)):"__mpap"===n&&(u.push(r),this._pop_from_people_queue("$unset",r)),F.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),F.log(t),this.save()},ke.prototype._pop_from_people_queue=function(e,t){var n=this._get_queue(e);H.isUndefined(n)||(H.each(t,(function(t,r){"$append"===e||"$remove"===e?H.each(n,(function(e){e[r]===t&&delete e[r]})):delete n[r]}),this),this.save())},ke.prototype._get_queue_key=function(e){return"$set"===e?"__mps":"$set_once"===e?"__mpso":"$unset"===e?"__mpus":"$add"===e?"__mpa":"$append"===e?"__mpap":"$remove"===e?"__mpr":"$union"===e?"__mpu":void F.error("Invalid queue:",e)},ke.prototype._get_queue=function(e){return this.props[this._get_queue_key(e)]},ke.prototype._get_or_create_queue=function(e,t){var n=this._get_queue_key(e);return t=H.isUndefined(t)?{}:t,this.props[n]||(this.props[n]=t)},ke.prototype.set_event_timer=function(e,t){var n=this.props.__timers||{};n[e]=t,this.props.__timers=n,this.save()},ke.prototype.remove_event_timer=function(e){var t=(this.props.__timers||{})[e];return H.isUndefined(t)||(delete this.props.__timers[e],this.save()),t};var Te=function(e){return e},Ce=function(){},Ie=r.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,Ae=!Ie&&-1===I.indexOf("MSIE")&&-1===I.indexOf("Mozilla"),Oe=null;E.sendBeacon&&(Oe=function(){return E.sendBeacon.apply(E,arguments)});var xe={api_host:"https://api-js.mixpanel.com",api_method:"POST",api_transport:"XHR",api_payload_format:"base64",app_host:"https://mixpanel.com",cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:Ce,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:Ce,store_google:!0,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{}},Ne=!1,Re=function(){},De=function(e,t,n){var r,i="mixpanel"===n?we:we[n];if(i&&0===Pe)r=i;else{if(i&&!H.isArray(i))return void F.error("You have already initialized "+n);r=new Re}return r._cached_groups={},r._init(e,t,n),r.people=new be,r.people._init(r),a.DEBUG=a.DEBUG||r.get_config("debug"),!H.isUndefined(i)&&H.isArray(i)&&(r._execute_array.call(r.people,i.people),r._execute_array(i)),r};Re.prototype.init=function(e,t,n){if(H.isUndefined(n))this.report_error("You must name your new library: init(token, config, name)");else{if("mixpanel"!==n){var r=De(e,t,n);return we[n]=r,r._loaded(),r}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},Re.prototype._init=function(e,t,n){t=t||{},this.__loaded=!0,this.config={};var a={};"api_payload_format"in t||(t.api_host||xe.api_host).match(/\.mixpanel\.com$/)&&(a.api_payload_format="json");if(this.set_config(H.extend({},xe,a,t,{name:n,token:e,callback_fn:("mixpanel"===n?n:"mixpanel."+n)+"._jsc"})),this._jsc=Ce,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(H.localStorage.is_supported(!0)&&Ie){if(this.init_batchers(),Oe&&r.addEventListener){var i=H.bind((function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})}),this);r.addEventListener("pagehide",(function(e){e.persisted&&i()})),r.addEventListener("visibilitychange",(function(){"hidden"===k.visibilityState&&i()}))}}else this._batch_requests=!1,F.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support");this.persistence=this.cookie=new ke(this.config),this.unpersisted_superprops={},this._gdpr_init();var s=H.UUID();this.get_distinct_id()||this.register_once({distinct_id:s,$device_id:s},"")},Re.prototype._loaded=function(){this.get_config("loaded")(this),this._set_default_superprops()},Re.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(k.referrer),this.get_config("store_google")&&this.persistence.update_campaign_params(),this.get_config("save_referrer")&&this.persistence.update_referrer_info(k.referrer)},Re.prototype._dom_loaded=function(){H.each(this.__dom_loaded_queue,(function(e){this._track_dom.apply(this,e)}),this),this.has_opted_out_tracking()||H.each(this.__request_queue,(function(e){this._send_request.apply(this,e)}),this),delete this.__dom_loaded_queue,delete this.__request_queue},Re.prototype._track_dom=function(e,t){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!Ne)return this.__dom_loaded_queue.push([e,t]),!1;var n=(new e).init(this);return n.track.apply(n,t)},Re.prototype._prepare_callback=function(e,t){if(H.isUndefined(e))return null;if(Ie){return function(n){e(n,t)}}var n=this._jsc,r=""+Math.floor(1e8*Math.random()),a=this.get_config("callback_fn")+"["+r+"]";return n[r]=function(a){delete n[r],e(a,t)},a},Re.prototype._send_request=function(e,t,n,r){var a=!0;if(Ae)return this.__request_queue.push(arguments),a;var i={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;r||!H.isFunction(n)&&"string"!=typeof n||(r=n,n=null),n=H.extend(i,n||{}),Ie||(n.method="GET");var o="POST"===n.method,l=Oe&&o&&"sendbeacon"===n.transport.toLowerCase(),c=n.verbose;t.verbose&&(c=!0),this.get_config("test")&&(t.test=1),c&&(t.verbose=1),this.get_config("img")&&(t.img=1),Ie||(r?t.callback=r:(c||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=(new Date).getTime().toString(),o&&(s="data="+encodeURIComponent(t.data),delete t.data),e+="?"+H.HTTPBuildQuery(t);var u=this;if("img"in t){var p=k.createElement("img");p.src=e,k.body.appendChild(p)}else if(l){try{a=Oe(e,s)}catch(e){u.report_error(e),a=!1}try{r&&r(a?1:0)}catch(e){u.report_error(e)}}else if(Ie)try{var d=new XMLHttpRequest;d.open(n.method,e,!0);var h=this.get_config("xhr_headers");if(o&&(h["Content-Type"]="application/x-www-form-urlencoded"),H.each(h,(function(e,t){d.setRequestHeader(t,e)})),n.timeout_ms&&void 0!==d.timeout){d.timeout=n.timeout_ms;var f=(new Date).getTime()}d.withCredentials=!0,d.onreadystatechange=function(){var e;if(4===d.readyState)if(200===d.status){if(r)if(c){var t;try{t=H.JSONDecode(d.responseText)}catch(e){if(u.report_error(e),!n.ignore_json_errors)return;t=d.responseText}r(t)}else r(Number(d.responseText))}else e=d.timeout&&!d.status&&(new Date).getTime()-f>=d.timeout?"timeout":"Bad HTTP status: "+d.status+" "+d.statusText,u.report_error(e),r&&r(c?{status:0,error:e,xhr_req:d}:0)},d.send(s)}catch(e){u.report_error(e),a=!1}else{var m=k.createElement("script");m.type="text/javascript",m.async=!0,m.defer=!0,m.src=e;var S=k.getElementsByTagName("script")[0];S.parentNode.insertBefore(m,S)}return a},Re.prototype._execute_array=function(e){var t,n=[],r=[],a=[];H.each(e,(function(e){e&&(t=e[0],H.isArray(t)?a.push(e):"function"==typeof e?e.call(this):H.isArray(e)&&"alias"===t?n.push(e):H.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?a.push(e):r.push(e))}),this);var i=function(e,t){H.each(e,(function(e){if(H.isArray(e[0])){var n=t;H.each(e,(function(e){n=n[e[0]].apply(n,e.slice(1))}))}else this[e[0]].apply(this,e.slice(1))}),t)};i(n,this),i(r,this),i(a,this)},Re.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},Re.prototype.init_batchers=function(){var e=this.get_config("token");if(!this.are_batchers_initialized()){var t=H.bind((function(t){return new ie("__mpq_"+e+t.queue_suffix,{libConfig:this.config,sendRequestFunc:H.bind((function(e,n,r){this._send_request(this.get_config("api_host")+t.endpoint,this._encode_data_for_request(e),n,this._prepare_callback(r,e))}),this),beforeSendHook:H.bind((function(e){return this._run_hook("before_send_"+t.type,e)}),this),errorReporter:this.get_config("error_reporter"),stopAllBatchingFunc:H.bind(this.stop_batch_senders,this)})}),this);this.request_batchers={events:t({type:"events",endpoint:"/track/",queue_suffix:"_ev"}),people:t({type:"people",endpoint:"/engage/",queue_suffix:"_pp"}),groups:t({type:"groups",endpoint:"/groups/",queue_suffix:"_gr"})}}this.get_config("batch_autostart")&&this.start_batch_senders()},Re.prototype.start_batch_senders=function(){this.are_batchers_initialized()&&(this._batch_requests=!0,H.each(this.request_batchers,(function(e){e.start()})))},Re.prototype.stop_batch_senders=function(){this._batch_requests=!1,H.each(this.request_batchers,(function(e){e.stop(),e.clear()}))},Re.prototype.push=function(e){this._execute_array([e])},Re.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},Re.prototype._encode_data_for_request=function(e){var t=H.JSONEncode(e);return"base64"===this.get_config("api_payload_format")&&(t=H.base64Encode(t)),{data:t}},Re.prototype._track_or_batch=function(e,t){var n=H.truncate(e.data,255),r=e.endpoint,a=e.batcher,i=e.should_send_immediately,s=e.send_request_options||{};t=t||Ce;var o=!0,l=H.bind((function(){return s.skip_hooks||(n=this._run_hook("before_send_"+e.type,n)),n?(F.log("MIXPANEL REQUEST:"),F.log(n),this._send_request(r,this._encode_data_for_request(n),s,this._prepare_callback(t,n))):null}),this);return this._batch_requests&&!i?a.enqueue(n,(function(e){e?t(1,n):l()})):o=l(),o&&n},Re.prototype.track=ue((function(e,t,n,r){r||"function"!=typeof n||(r=n,n=null);var a=(n=n||{}).transport;a&&(n.transport=a);var i=n.send_immediately;if("function"!=typeof r&&(r=Ce),H.isUndefined(e))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){(t=t||{}).token=this.get_config("token");var s=this.persistence.remove_event_timer(e);if(!H.isUndefined(s)){var o=(new Date).getTime()-s;t.$duration=parseFloat((o/1e3).toFixed(3))}this._set_default_superprops(),t=H.extend({},H.info.properties(),this.persistence.properties(),this.unpersisted_superprops,t);var l=this.get_config("property_blacklist");H.isArray(l)?H.each(l,(function(e){delete t[e]})):this.report_error("Invalid value for property_blacklist config: "+l);var c={event:e,properties:t};return this._track_or_batch({type:"events",data:c,endpoint:this.get_config("api_host")+"/track/",batcher:this.request_batchers.events,should_send_immediately:i,send_request_options:n},r)}r(0)}})),Re.prototype.set_group=ue((function(e,t,n){H.isArray(t)||(t=[t]);var r={};return r[e]=t,this.register(r),this.people.set(e,t,n)})),Re.prototype.add_group=ue((function(e,t,n){var r=this.get_property(e);if(void 0===r){var a={};a[e]=[t],this.register(a)}else-1===r.indexOf(t)&&(r.push(t),this.register(a));return this.people.union(e,t,n)})),Re.prototype.remove_group=ue((function(e,t,n){var r=this.get_property(e);if(void 0!==r){var a=r.indexOf(t);a>-1&&(r.splice(a,1),this.register({group_key:r})),0===r.length&&this.unregister(e)}return this.people.remove(e,t,n)})),Re.prototype.track_with_groups=ue((function(e,t,n,r){var a=H.extend({},t||{});return H.each(n,(function(e,t){null!=e&&(a[t]=e)})),this.track(e,a,r)})),Re.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},Re.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},Re.prototype.get_group=function(e,t){var n=this._create_map_key(e,t),r=this._cached_groups[n];return void 0!==r&&r._group_key===e&&r._group_id===t||((r=new _e)._init(this,e,t),this._cached_groups[n]=r),r},Re.prototype.track_pageview=function(e){H.isUndefined(e)&&(e=k.location.href),this.track("mp_page_view",H.info.pageviewInfo(e))},Re.prototype.track_links=function(){return this._track_dom.call(this,X,arguments)},Re.prototype.track_forms=function(){return this._track_dom.call(this,Q,arguments)},Re.prototype.time_event=function(e){H.isUndefined(e)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this.persistence.set_event_timer(e,(new Date).getTime())};var He={persistent:!0},Fe=function(e){var t;return t=H.isObject(e)?e:H.isUndefined(e)?{}:{days:e},H.extend({},He,t)};Re.prototype.register=function(e,t){var n=Fe(t);n.persistent?this.persistence.register(e,n.days):H.extend(this.unpersisted_superprops,e)},Re.prototype.register_once=function(e,t,n){var r=Fe(n);r.persistent?this.persistence.register_once(e,t,r.days):(void 0===t&&(t="None"),H.each(e,(function(e,n){this.unpersisted_superprops.hasOwnProperty(n)&&this.unpersisted_superprops[n]!==t||(this.unpersisted_superprops[n]=e)}),this))},Re.prototype.unregister=function(e,t){(t=Fe(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]},Re.prototype._register_single=function(e,t){var n={};n[e]=t,this.register(n)},Re.prototype.identify=function(e,t,n,r,a,i,s,o){var l=this.get_distinct_id();if(this.register({$user_id:e}),!this.get_property("$device_id")){var c=l;this.register_once({$had_persisted_distinct_id:!0,$device_id:c},"")}e!==l&&e!==this.get_property("__alias")&&(this.unregister("__alias"),this.register({distinct_id:e})),this._flags.identify_called=!0,this.people._flush(t,n,r,a,i,s,o),e!==l&&this.track("$identify",{distinct_id:e,$anon_distinct_id:l},{skip_hooks:!0})},Re.prototype.reset=function(){this.persistence.clear(),this._flags.identify_called=!1;var e=H.UUID();this.register_once({distinct_id:e,$device_id:e},"")},Re.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},Re.prototype.alias=function(e,t){if(e===this.get_property("$people_distinct_id"))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var n=this;return H.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single("__alias",e),this.track("$create_alias",{alias:e,distinct_id:t},{skip_hooks:!0},(function(){n.identify(e)}))):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},Re.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},Re.prototype.set_config=function(e){H.isObject(e)&&(H.extend(this.config,e),e.batch_size&&H.each(this.request_batchers,(function(e){e.resetBatchSize()})),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),a.DEBUG=a.DEBUG||this.get_config("debug"))},Re.prototype.get_config=function(e){return this.config[e]},Re.prototype._run_hook=function(e){var t=(this.config.hooks[e]||Te).apply(this,_.call(arguments,1));return void 0===t&&(this.report_error(e+" hook did not return a value"),t=null),t},Re.prototype.get_property=function(e){return this.persistence.props[e]},Re.prototype.toString=function(){var e=this.get_config("name");return"mixpanel"!==e&&(e="mixpanel."+e),e},Re.prototype._event_is_disabled=function(e){return H.isBlockedUA(I)||this._flags.disable_all_events||H.include(this.__disabled_events,e)},Re.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&H.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_tracking()||!this.get_config("opt_out_tracking_by_default")&&!H.cookie.get("mp_optout")||(H.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},Re.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else{if(!e||!e.enable_persistence)return;t=!1}this.get_config("disable_persistence")||this.persistence.disabled===t||this.persistence.set_disabled(t),t&&H.each(this.request_batchers,(function(e){e.clear()}))},Re.prototype._gdpr_call_func=function(e,t){return t=H.extend({track:H.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},t),H.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieDomain:t.cookie_domain,cookieExpiration:t.cookie_expiration,crossSiteCookie:t.cross_site_cookie,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie,ignoreDnt:t.ignore_dnt})},Re.prototype.opt_in_tracking=function(e){e=H.extend({enable_persistence:!0},e),this._gdpr_call_func(se,e),this._gdpr_update_persistence(e)},Re.prototype.opt_out_tracking=function(e){(e=H.extend({clear_persistence:!0,delete_user:!0},e)).delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(oe,e),this._gdpr_update_persistence(e)},Re.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(le,e)},Re.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(ce,e)},Re.prototype.clear_opt_in_out_tracking=function(e){e=H.extend({enable_persistence:!0},e),this._gdpr_call_func(he,e),this._gdpr_update_persistence(e)},Re.prototype.report_error=function(e,t){F.error.apply(F.error,arguments);try{t||e instanceof Error||(e=new Error(e)),this.get_config("error_reporter")(e,t)}catch(t){F.error(t)}},Re.prototype.init=Re.prototype.init,Re.prototype.reset=Re.prototype.reset,Re.prototype.disable=Re.prototype.disable,Re.prototype.time_event=Re.prototype.time_event,Re.prototype.track=Re.prototype.track,Re.prototype.track_links=Re.prototype.track_links,Re.prototype.track_forms=Re.prototype.track_forms,Re.prototype.track_pageview=Re.prototype.track_pageview,Re.prototype.register=Re.prototype.register,Re.prototype.register_once=Re.prototype.register_once,Re.prototype.unregister=Re.prototype.unregister,Re.prototype.identify=Re.prototype.identify,Re.prototype.alias=Re.prototype.alias,Re.prototype.name_tag=Re.prototype.name_tag,Re.prototype.set_config=Re.prototype.set_config,Re.prototype.get_config=Re.prototype.get_config,Re.prototype.get_property=Re.prototype.get_property,Re.prototype.get_distinct_id=Re.prototype.get_distinct_id,Re.prototype.toString=Re.prototype.toString,Re.prototype.opt_out_tracking=Re.prototype.opt_out_tracking,Re.prototype.opt_in_tracking=Re.prototype.opt_in_tracking,Re.prototype.has_opted_out_tracking=Re.prototype.has_opted_out_tracking,Re.prototype.has_opted_in_tracking=Re.prototype.has_opted_in_tracking,Re.prototype.clear_opt_in_out_tracking=Re.prototype.clear_opt_in_out_tracking,Re.prototype.get_group=Re.prototype.get_group,Re.prototype.set_group=Re.prototype.set_group,Re.prototype.add_group=Re.prototype.add_group,Re.prototype.remove_group=Re.prototype.remove_group,Re.prototype.track_with_groups=Re.prototype.track_with_groups,Re.prototype.start_batch_senders=Re.prototype.start_batch_senders,Re.prototype.stop_batch_senders=Re.prototype.stop_batch_senders,ke.prototype.properties=ke.prototype.properties,ke.prototype.update_search_keyword=ke.prototype.update_search_keyword,ke.prototype.update_referrer_info=ke.prototype.update_referrer_info,ke.prototype.get_cross_subdomain=ke.prototype.get_cross_subdomain,ke.prototype.clear=ke.prototype.clear;var Ge={},Ue=function(){we.init=function(e,t,n){if(n)return we[n]||(we[n]=Ge[n]=De(e,t,n),we[n]._loaded()),we[n];var a=we;Ge.mixpanel?a=Ge.mixpanel:e&&((a=De(e,t,"mixpanel"))._loaded(),Ge.mixpanel=a),we=a,1===Pe&&(r.mixpanel=we),H.each(Ge,(function(e,t){"mixpanel"!==t&&(we[t]=e)})),we._=H}};var Le=(Pe=0,we=new Re,Ue(),we.init(),function(){function e(){e.done||(e.done=!0,Ne=!0,Ae=!1,H.each(Ge,(function(e){e._dom_loaded()})))}if(k.addEventListener)"complete"===k.readyState?e():k.addEventListener("DOMContentLoaded",e,!1);else if(k.attachEvent){k.attachEvent("onreadystatechange",e);var t=!1;try{t=null===r.frameElement}catch(e){}k.documentElement.doScroll&&t&&function t(){try{k.documentElement.doScroll("left")}catch(e){return void setTimeout(t,1)}e()}()}H.register_event(r,"load",e,!0)}(),we);e.exports=Le},function(e,t){e.exports=require("net")},function(e,t,n){var r=n(85);e.exports=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?r(e,void 0,t):[]}},function(e,t,n){var r=n(47),a=n(34),i=n(85),s=n(48),o=a((function(e){return i(r(e,1,s,!0))}));e.exports=o},function(e,t,n){var r=n(344),a=n(16);e.exports=function(e,t,n){var i=!0,s=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return a(n)&&(i="leading"in n?!!n.leading:i,s="trailing"in n?!!n.trailing:s),r(e,t,{leading:i,maxWait:t,trailing:s})}},function(e,t){e.exports=function(e){for(var t=-1,n=null==e?0:e.length,r=0,a=[];++t<n;){var i=e[t];i&&(a[r++]=i)}return a}},function(e,t,n){var r=n(77),a=n(173);e.exports=function(e,t){return e&&r(e,a(t))}},function(e,t,n){(function(e){var r;
/*!
 * Platform.js <https://mths.be/platform>
 * Copyright 2014-2018 Benjamin Tan <https://bnjmnt4n.now.sh/>
 * Copyright 2011-2013 John-David Dalton <http://allyoucanleet.com/>
 * Available under MIT license <https://mths.be/mit>
 */(function(){"use strict";var a={function:!0,object:!0},i=a[typeof window]&&window||this,s=a[typeof t]&&t,o=a[typeof e]&&e&&!e.nodeType&&e,l=s&&o&&"object"==typeof global&&global;!l||l.global!==l&&l.window!==l&&l.self!==l||(i=l);var c=Math.pow(2,53)-1,u=/\bOpera/,p=Object.prototype,d=p.hasOwnProperty,h=p.toString;function f(e){return(e=String(e)).charAt(0).toUpperCase()+e.slice(1)}function m(e){return e=_(e),/^(?:webOS|i(?:OS|P))/.test(e)?e:f(e)}function S(e,t){for(var n in e)d.call(e,n)&&t(e[n],n,e)}function y(e){return null==e?f(e):h.call(e).slice(8,-1)}function g(e){return String(e).replace(/([ -])(?!$)/g,"$1?")}function v(e,t){var n=null;return function(e,t){var n=-1,r=e?e.length:0;if("number"==typeof r&&r>-1&&r<=c)for(;++n<r;)t(e[n],n,e);else S(e,t)}(e,(function(r,a){n=t(n,r,a,e)})),n}function _(e){return String(e).replace(/^ +| +$/g,"")}var b=function e(t){var n=i,r=t&&"object"==typeof t&&"String"!=y(t);r&&(n=t,t=null);var a=n.navigator||{},s=a.userAgent||"";t||(t=s);var o,l,c,p,d,f=r?!!a.likeChrome:/\bChrome\b/.test(t)&&!/internal|\n/i.test(h.toString()),b=r?"Object":"ScriptBridgingProxyObject",P=r?"Object":"Environment",w=r&&n.java?"JavaPackage":y(n.java),E=r?"Object":"RuntimeObject",k=/\bJava/.test(w)&&n.java,T=k&&y(n.environment)==P,C=k?"a":"α",I=k?"b":"β",A=n.document||{},O=n.operamini||n.opera,x=u.test(x=r&&O?O["[[Class]]"]:y(O))?x:O=null,N=t,R=[],D=null,H=t==s,F=H&&O&&"function"==typeof O.version&&O.version(),G=v([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"],(function(e,n){return e||RegExp("\\b"+(n.pattern||g(n))+"\\b","i").exec(t)&&(n.label||n)})),U=function(e){return v(e,(function(e,n){return e||RegExp("\\b"+(n.pattern||g(n))+"\\b","i").exec(t)&&(n.label||n)}))}(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"Edge"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Waterfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),L=B([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),j=function(e){return v(e,(function(e,n,r){return e||(n[L]||n[/^[a-z]+(?: +[a-z]+\b)*/i.exec(L)]||RegExp("\\b"+g(r)+"(?:\\b|\\w*\\d)","i").exec(t))&&r}))}({Apple:{iPad:1,iPhone:1,iPod:1},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1}}),M=function(e){return v(e,(function(e,n){var r=n.pattern||g(n);return!e&&(e=RegExp("\\b"+r+"(?:/[\\d.]+|[ \\w.]*)","i").exec(t))&&(e=function(e,t,n){var r={"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return t&&n&&/^Win/i.test(e)&&!/^Windows Phone /i.test(e)&&(r=r[/[\d.]+$/.exec(e)])&&(e="Windows "+r),e=String(e),t&&n&&(e=e.replace(RegExp(t,"i"),n)),e=m(e.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0])}(e,r,n.label||n)),e}))}(["Windows Phone","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian","Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function B(e){return v(e,(function(e,n){var r=n.pattern||g(n);return!e&&(e=RegExp("\\b"+r+" *\\d+[.\\w_]*","i").exec(t)||RegExp("\\b"+r+" *\\w+-[\\w]*","i").exec(t)||RegExp("\\b"+r+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(t))&&((e=String(n.label&&!RegExp(r,"i").test(n.label)?n.label:e).split("/"))[1]&&!/[\d.]+/.test(e[0])&&(e[0]+=" "+e[1]),n=n.label||n,e=m(e[0].replace(RegExp(r,"i"),n).replace(RegExp("; *(?:"+n+"[_-])?","i")," ").replace(RegExp("("+n+")[-_.]?(\\w)","i"),"$1 $2"))),e}))}if(G&&(G=[G]),j&&!L&&(L=B([j])),(o=/\bGoogle TV\b/.exec(L))&&(L=o[0]),/\bSimulator\b/i.test(t)&&(L=(L?L+" ":"")+"Simulator"),"Opera Mini"==U&&/\bOPiOS\b/.test(t)&&R.push("running in Turbo/Uncompressed mode"),"IE"==U&&/\blike iPhone OS\b/.test(t)?(j=(o=e(t.replace(/like iPhone OS/,""))).manufacturer,L=o.product):/^iP/.test(L)?(U||(U="Safari"),M="iOS"+((o=/ OS ([\d_]+)/i.exec(t))?" "+o[1].replace(/_/g,"."):"")):"Konqueror"!=U||/buntu/i.test(M)?j&&"Google"!=j&&(/Chrome/.test(U)&&!/\bMobile Safari\b/i.test(t)||/\bVita\b/.test(L))||/\bAndroid\b/.test(M)&&/^Chrome/.test(U)&&/\bVersion\//i.test(t)?(U="Android Browser",M=/\bAndroid\b/.test(M)?M:"Android"):"Silk"==U?(/\bMobi/i.test(t)||(M="Android",R.unshift("desktop mode")),/Accelerated *= *true/i.test(t)&&R.unshift("accelerated")):"PaleMoon"==U&&(o=/\bFirefox\/([\d.]+)\b/.exec(t))?R.push("identifying as Firefox "+o[1]):"Firefox"==U&&(o=/\b(Mobile|Tablet|TV)\b/i.exec(t))?(M||(M="Firefox OS"),L||(L=o[1])):!U||(o=!/\bMinefield\b/i.test(t)&&/\b(?:Firefox|Safari)\b/.exec(U))?(U&&!L&&/[\/,]|^[^(]+?\)/.test(t.slice(t.indexOf(o+"/")+8))&&(U=null),(o=L||j||M)&&(L||j||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(M))&&(U=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(M)?M:o)+" Browser")):"Electron"==U&&(o=(/\bChrome\/([\d.]+)\b/.exec(t)||0)[1])&&R.push("Chromium "+o):M="Kubuntu",F||(F=v(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",g(U),"(?:Firefox|Minefield|NetFront)"],(function(e,n){return e||(RegExp(n+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(t)||0)[1]||null}))),(o=("iCab"==G&&parseFloat(F)>3?"WebKit":/\bOpera\b/.test(U)&&(/\bOPR\b/.test(t)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(t)&&!/^(?:Trident|EdgeHTML)$/.test(G)&&"WebKit"||!G&&/\bMSIE\b/i.test(t)&&("Mac OS"==M?"Tasman":"Trident")||"WebKit"==G&&/\bPlayStation\b(?! Vita\b)/i.test(U)&&"NetFront")&&(G=[o]),"IE"==U&&(o=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(t)||0)[1])?(U+=" Mobile",M="Windows Phone "+(/\+$/.test(o)?o:o+".x"),R.unshift("desktop mode")):/\bWPDesktop\b/i.test(t)?(U="IE Mobile",M="Windows Phone 8.x",R.unshift("desktop mode"),F||(F=(/\brv:([\d.]+)/.exec(t)||0)[1])):"IE"!=U&&"Trident"==G&&(o=/\brv:([\d.]+)/.exec(t))&&(U&&R.push("identifying as "+U+(F?" "+F:"")),U="IE",F=o[1]),H){if(p="global",d=null!=(c=n)?typeof c[p]:"number",/^(?:boolean|number|string|undefined)$/.test(d)||"object"==d&&!c[p])y(o=n.runtime)==b?(U="Adobe AIR",M=o.flash.system.Capabilities.os):y(o=n.phantom)==E?(U="PhantomJS",F=(o=o.version||null)&&o.major+"."+o.minor+"."+o.patch):"number"==typeof A.documentMode&&(o=/\bTrident\/(\d+)/i.exec(t))?(F=[F,A.documentMode],(o=+o[1]+4)!=F[1]&&(R.push("IE "+F[1]+" mode"),G&&(G[1]=""),F[1]=o),F="IE"==U?String(F[1].toFixed(1)):F[0]):"number"==typeof A.documentMode&&/^(?:Chrome|Firefox)\b/.test(U)&&(R.push("masking as "+U+" "+F),U="IE",F="11.0",G=["Trident"],M="Windows");else if(k&&(N=(o=k.lang.System).getProperty("os.arch"),M=M||o.getProperty("os.name")+" "+o.getProperty("os.version")),T){try{F=n.require("ringo/engine").version.join("."),U="RingoJS"}catch(e){(o=n.system)&&o.global.system==n.system&&(U="Narwhal",M||(M=o[0].os||null))}U||(U="Rhino")}else"object"==typeof n.process&&!n.process.browser&&(o=n.process)&&("object"==typeof o.versions&&("string"==typeof o.versions.electron?(R.push("Node "+o.versions.node),U="Electron",F=o.versions.electron):"string"==typeof o.versions.nw&&(R.push("Chromium "+F,"Node "+o.versions.node),U="NW.js",F=o.versions.nw)),U||(U="Node.js",N=o.arch,M=o.platform,F=(F=/[\d.]+/.exec(o.version))?F[0]:null));M=M&&m(M)}if(F&&(o=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(F)||/(?:alpha|beta)(?: ?\d)?/i.exec(t+";"+(H&&a.appMinorVersion))||/\bMinefield\b/i.test(t)&&"a")&&(D=/b/i.test(o)?"beta":"alpha",F=F.replace(RegExp(o+"\\+?$"),"")+("beta"==D?I:C)+(/\d+\+?/.exec(o)||"")),"Fennec"==U||"Firefox"==U&&/\b(?:Android|Firefox OS)\b/.test(M))U="Firefox Mobile";else if("Maxthon"==U&&F)F=F.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(L))"Xbox 360"==L&&(M=null),"Xbox 360"==L&&/\bIEMobile\b/.test(t)&&R.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(U)&&(!U||L||/Browser|Mobi/.test(U))||"Windows CE"!=M&&!/Mobi/i.test(t))if("IE"==U&&H)try{null===n.external&&R.unshift("platform preview")}catch(e){R.unshift("embedded")}else(/\bBlackBerry\b/.test(L)||/\bBB10\b/.test(t))&&(o=(RegExp(L.replace(/ +/g," *")+"/([.\\d]+)","i").exec(t)||0)[1]||F)?(M=((o=[o,/BB10/.test(t)])[1]?(L=null,j="BlackBerry"):"Device Software")+" "+o[0],F=null):this!=S&&"Wii"!=L&&(H&&O||/Opera/.test(U)&&/\b(?:MSIE|Firefox)\b/i.test(t)||"Firefox"==U&&/\bOS X (?:\d+\.){2,}/.test(M)||"IE"==U&&(M&&!/^Win/.test(M)&&F>5.5||/\bWindows XP\b/.test(M)&&F>8||8==F&&!/\bTrident\b/.test(t)))&&!u.test(o=e.call(S,t.replace(u,"")+";"))&&o.name&&(o="ing as "+o.name+((o=o.version)?" "+o:""),u.test(U)?(/\bIE\b/.test(o)&&"Mac OS"==M&&(M=null),o="identify"+o):(o="mask"+o,U=x?m(x.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(o)&&(M=null),H||(F=null)),G=["Presto"],R.push(o));else U+=" Mobile";(o=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(t)||0)[1])&&(o=[parseFloat(o.replace(/\.(\d)$/,".0$1")),o],"Safari"==U&&"+"==o[1].slice(-1)?(U="WebKit Nightly",D="alpha",F=o[1].slice(0,-1)):F!=o[1]&&F!=(o[2]=(/\bSafari\/([\d.]+\+?)/i.exec(t)||0)[1])||(F=null),o[1]=(/\bChrome\/([\d.]+)/i.exec(t)||0)[1],537.36==o[0]&&537.36==o[2]&&parseFloat(o[1])>=28&&"WebKit"==G&&(G=["Blink"]),H&&(f||o[1])?(G&&(G[1]="like Chrome"),o=o[1]||((o=o[0])<530?1:o<532?2:o<532.05?3:o<533?4:o<534.03?5:o<534.07?6:o<534.1?7:o<534.13?8:o<534.16?9:o<534.24?10:o<534.3?11:o<535.01?12:o<535.02?"13+":o<535.07?15:o<535.11?16:o<535.19?17:o<536.05?18:o<536.1?19:o<537.01?20:o<537.11?"21+":o<537.13?23:o<537.18?24:o<537.24?25:o<537.36?26:"Blink"!=G?"27":"28")):(G&&(G[1]="like Safari"),o=(o=o[0])<400?1:o<500?2:o<526?3:o<533?4:o<534?"4+":o<535?5:o<537?6:o<538?7:o<601?8:"8"),G&&(G[1]+=" "+(o+="number"==typeof o?".x":/[.+]/.test(o)?"":"+")),"Safari"==U&&(!F||parseInt(F)>45)&&(F=o)),"Opera"==U&&(o=/\bzbov|zvav$/.exec(M))?(U+=" ",R.unshift("desktop mode"),"zvav"==o?(U+="Mini",F=null):U+="Mobile",M=M.replace(RegExp(" *"+o+"$"),"")):"Safari"==U&&/\bChrome\b/.exec(G&&G[1])&&(R.unshift("desktop mode"),U="Chrome Mobile",F=null,/\bOS X\b/.test(M)?(j="Apple",M="iOS 4.3+"):M=null),F&&0==F.indexOf(o=/[\d.]+$/.exec(M))&&t.indexOf("/"+o+"-")>-1&&(M=_(M.replace(o,""))),G&&!/\b(?:Avant|Nook)\b/.test(U)&&(/Browser|Lunascape|Maxthon/.test(U)||"Safari"!=U&&/^iOS/.test(M)&&/\bSafari\b/.test(G[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(U)&&G[1])&&(o=G[G.length-1])&&R.push(o),R.length&&(R=["("+R.join("; ")+")"]),j&&L&&L.indexOf(j)<0&&R.push("on "+j),L&&R.push((/^on /.test(R[R.length-1])?"":"on ")+L),M&&(o=/ ([\d.+]+)$/.exec(M),l=o&&"/"==M.charAt(M.length-o[0].length-1),M={architecture:32,family:o&&!l?M.replace(o[0],""):M,version:o?o[1]:null,toString:function(){var e=this.version;return this.family+(e&&!l?" "+e:"")+(64==this.architecture?" 64-bit":"")}}),(o=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(N))&&!/\bi686\b/i.test(N)?(M&&(M.architecture=64,M.family=M.family.replace(RegExp(" *"+o),"")),U&&(/\bWOW64\b/i.test(t)||H&&/\w(?:86|32)$/.test(a.cpuClass||a.platform)&&!/\bWin64; x64\b/i.test(t))&&R.unshift("32-bit")):M&&/^OS X/.test(M.family)&&"Chrome"==U&&parseFloat(F)>=39&&(M.architecture=64),t||(t=null);var K={};return K.description=t,K.layout=G&&G[0],K.manufacturer=j,K.name=U,K.prerelease=D,K.product=L,K.ua=t,K.version=U&&F,K.os=M||{architecture:null,family:null,version:null,toString:function(){return"null"}},K.parse=e,K.toString=function(){return this.description||""},K.version&&R.unshift(F),K.name&&R.unshift(U),M&&U&&(M!=String(M).split(" ")[0]||M!=U.split(" ")[0]&&!L)&&R.push(L?"("+M+")":"on "+M),R.length&&(K.description=R.join(" ")),K}();i.platform=b,void 0===(r=function(){return b}.call(t,n,t,e))||(e.exports=r)}).call(this)}).call(this,n(78)(e))},function(e,t){e.exports=function(e){return null===e}},function(e,t){e.exports=function(e){return void 0===e}},function(e,t,n){var r=n(44),a=n(12),i=n(177),s=n(9);e.exports=function(e,t){return(s(e)?r:i)(e,a(t,3))}},function(e,t,n){var r=n(178),a=n(17);e.exports=function(e){return e&&e.length?r(e,a):0}},function(e,t,n){var r=n(179),a=n(9);e.exports=function(e,t,n,i){return null==e?[]:(a(t)||(t=null==t?[]:[t]),a(n=i?void 0:n)||(n=null==n?[]:[n]),r(e,t,n))}},function(e,t,n){var r=n(12),a=n(357);e.exports=function(e,t){return e&&e.length?a(e,r(t,2)):[]}},function(e,t,n){var r=n(87),a=n(47),i=n(34),s=n(48),o=n(23),l=i((function(e,t){var n=o(t);return s(n)&&(n=void 0),s(e)?r(e,a(t,1,s,!0),void 0,n):[]}));e.exports=l},function(e,t,n){var r=n(47),a=n(179),i=n(34),s=n(117),o=i((function(e,t){if(null==e)return[];var n=t.length;return n>1&&s(e,t[0],t[1])?t=[]:n>2&&s(t[0],t[1],t[2])&&(t=[t[0]]),a(e,r(t,1),[])}));e.exports=o},function(e,t,n){var r=n(113);e.exports=function(e){return r(e,4)}},function(e,t,n){var r=n(143),a=n(59),i=n(54),s=n(9),o=n(25),l=n(55),c=n(58),u=n(79),p=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(o(e)&&(s(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||u(e)||i(e)))return!e.length;var t=a(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(p.call(e,n))return!1;return!0}},function(e,t,n){var r=n(362)((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));e.exports=r},function(e,t,n){var r=n(46),a=n(77),i=n(12);e.exports=function(e,t){var n={};return t=i(t,3),a(e,(function(e,a,i){r(n,t(e,a,i),e)})),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Socket=t.io=t.Manager=t.protocol=void 0;const r=n(371),a=n(182),i=n(189);Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return i.Socket}});const s=n(88)("socket.io-client");e.exports=t=l;const o=t.managers={};function l(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};const n=r.url(e,t.path),i=n.source,l=n.id,c=n.path,u=o[l]&&c in o[l].nsps;let p;return t.forceNew||t["force new connection"]||!1===t.multiplex||u?(s("ignoring socket cache for %s",i),p=new a.Manager(i,t)):(o[l]||(s("new io instance for %s",i),o[l]=new a.Manager(i,t)),p=o[l]),n.query&&!t.query&&(t.query=n.queryKey),p.socket(n.path,t)}t.io=l;var c=n(121);Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return c.protocol}}),t.connect=l;var u=n(182);Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return u.Manager}}),t.default=l},function(e,t,n){var r;r=function(){return function(){"use strict";var e={382:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Centrifuge=void 0;var r=o(n(187)),a=o(n(471)),i=n(147),s=n(853);function o(e){return e&&e.__esModule?e:{default:e}}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var a=h(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(h,e);var t,r,o,d=p(h);function h(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),(n=d.call(this))._url=e,n._websocket=null,n._sockjs=null,n._isSockjs=!1,n._binary=!1,n._methodType=null,n._pushType=null,n._encoder=null,n._decoder=null,n._status="disconnected",n._reconnect=!0,n._reconnecting=!1,n._transport=null,n._transportName=null,n._transportClosed=!0,n._messageId=0,n._clientID=null,n._refreshRequired=!1,n._subs={},n._serverSubs={},n._lastSeq={},n._lastGen={},n._lastOffset={},n._lastEpoch={},n._messages=[],n._isBatching=!1,n._isSubscribeBatching=!1,n._privateChannels={},n._numRefreshFailed=0,n._refreshTimeout=null,n._pingTimeout=null,n._pongTimeout=null,n._subRefreshTimeouts={},n._retries=0,n._callbacks={},n._latency=null,n._latencyStart=null,n._connectData=null,n._token=null,n._xhrID=0,n._xhrs={},n._dispatchPromise=Promise.resolve(),n._config={debug:!1,name:"",version:"",websocket:null,sockjs:null,minRetry:1e3,maxRetry:2e4,timeout:5e3,ping:!0,pingInterval:25e3,pongWaitTimeout:5e3,privateChannelPrefix:"$",onTransportClose:null,sockjsServer:null,sockjsTransports:["websocket","xdr-streaming","xhr-streaming","eventsource","iframe-eventsource","iframe-htmlfile","xdr-polling","xhr-polling","iframe-xhr-polling","jsonp-polling"],refreshEndpoint:"/centrifuge/refresh",refreshHeaders:{},refreshParams:{},refreshData:{},refreshAttempts:null,refreshInterval:1e3,onRefreshFailed:null,onRefresh:null,subscribeEndpoint:"/centrifuge/subscribe",subscribeHeaders:{},subscribeParams:{},subRefreshInterval:1e3,onPrivateSubscribe:null},n._configure(t),n}return t=h,(r=[{key:"setToken",value:function(e){this._token=e}},{key:"setConnectData",value:function(e){this._connectData=e}},{key:"setRefreshHeaders",value:function(e){this._config.refreshHeaders=e}},{key:"setRefreshParams",value:function(e){this._config.refreshParams=e}},{key:"setRefreshData",value:function(e){this._config.refreshData=e}},{key:"setSubscribeHeaders",value:function(e){this._config.subscribeHeaders=e}},{key:"setSubscribeParams",value:function(e){this._config.subscribeParams=e}},{key:"_ajax",value:function(e,t,r,a,i){var s=this,o="";this._debug("sending AJAX request to",e,"with data",JSON.stringify(a));var l=n.g.XMLHttpRequest?new n.g.XMLHttpRequest:new n.g.ActiveXObject("Microsoft.XMLHTTP");for(var c in t)t.hasOwnProperty(c)&&(o.length>0&&(o+="&"),o+=encodeURIComponent(c)+"="+encodeURIComponent(t[c]));for(var u in o.length>0&&(o="?"+o),l.open("POST",e+o,!0),"withCredentials"in l&&(l.withCredentials=!0),l.setRequestHeader("X-Requested-With","XMLHttpRequest"),l.setRequestHeader("Content-Type","application/json"),r)r.hasOwnProperty(u)&&l.setRequestHeader(u,r[u]);return l.onreadystatechange=function(){if(4===l.readyState)if(200===l.status){var e,t=!1;try{e=JSON.parse(l.responseText),t=!0}catch(e){i({error:"Invalid JSON. Data was: "+l.responseText,status:200,data:null})}t&&i({data:e,status:200})}else s._log("wrong status code in AJAX response",l.status),i({status:l.status,data:null})},setTimeout((function(){return l.send(JSON.stringify(a))}),20),l}},{key:"_log",value:function(){(0,s.log)("info",arguments)}},{key:"_debug",value:function(){!0===this._config.debug&&(0,s.log)("debug",arguments)}},{key:"_websocketSupported",value:function(){return null!==this._config.websocket||!("function"!=typeof WebSocket&&"object"!==("undefined"==typeof WebSocket?"undefined":l(WebSocket)))}},{key:"_setFormat",value:function(e){if(!this._formatOverride(e)){if("protobuf"===e)throw new Error("not implemented by JSON only Centrifuge client – use client with Protobuf");this._binary=!1,this._methodType=i.JsonMethodType,this._pushType=i.JsonPushType,this._encoder=new i.JsonEncoder,this._decoder=new i.JsonDecoder}}},{key:"_formatOverride",value:function(e){return!1}},{key:"_configure",value:function(e){if(!("Promise"in n.g))throw new Error("Promise polyfill required");if((0,s.extend)(this._config,e||{}),this._debug("centrifuge config",this._config),!this._url)throw new Error("url required");if((0,s.startsWith)(this._url,"ws")&&this._url.indexOf("format=protobuf")>-1?this._setFormat("protobuf"):this._setFormat("json"),(0,s.startsWith)(this._url,"http"))if(this._debug("client will try to connect to SockJS endpoint"),null!==this._config.sockjs)this._debug("SockJS explicitly provided in options"),this._sockjs=this._config.sockjs;else{if(void 0===n.g.SockJS)throw new Error("SockJS not found, use ws:// in url or include SockJS");this._debug("use globally defined SockJS"),this._sockjs=n.g.SockJS}else this._debug("client will connect to websocket endpoint")}},{key:"_setStatus",value:function(e){this._status!==e&&(this._debug("Status",this._status,"->",e),this._status=e)}},{key:"_isDisconnected",value:function(){return"disconnected"===this._status}},{key:"_isConnecting",value:function(){return"connecting"===this._status}},{key:"_isConnected",value:function(){return"connected"===this._status}},{key:"_nextMessageId",value:function(){return++this._messageId}},{key:"_resetRetry",value:function(){this._debug("reset retries count to 0"),this._retries=0}},{key:"_getRetryInterval",value:function(){var e=(0,s.backoff)(this._retries,this._config.minRetry,this._config.maxRetry);return this._retries+=1,e}},{key:"_abortInflightXHRs",value:function(){for(var e in this._xhrs){try{this._xhrs[e].abort()}catch(e){this._debug("error aborting xhr",e)}delete this._xhrs[e]}}},{key:"_clearConnectedState",value:function(e){for(var t in this._clientID=null,this._stopPing(),this._callbacks)if(this._callbacks.hasOwnProperty(t)){var n=this._callbacks[t];clearTimeout(n.timeout);var r=n.errback;if(!r)continue;r({error:this._createErrorObject("disconnected")})}for(var a in this._callbacks={},this._subs)if(this._subs.hasOwnProperty(a)){var i=this._subs[a];e?(i._isSuccess()&&(i._triggerUnsubscribe(),i._recover=!0),i._shouldResubscribe()&&i._setSubscribing()):i._setUnsubscribed()}for(var s in this._abortInflightXHRs(),null!==this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null),this._subRefreshTimeouts)this._subRefreshTimeouts.hasOwnProperty(s)&&this._subRefreshTimeouts[s]&&this._clearSubRefreshTimeout(s);this._subRefreshTimeouts={},this._reconnect||(this._subs={})}},{key:"_isTransportOpen",value:function(){return this._isSockjs?this._transport&&this._transport.transport&&this._transport.transport.readyState===this._transport.transport.OPEN:this._transport&&this._transport.readyState===this._transport.OPEN}},{key:"_transportSend",value:function(e){if(!e.length)return!0;if(!this._isTransportOpen()){for(var t in e){var n=t.id;if(n in this._callbacks){var r=this._callbacks[n];clearTimeout(this._callbacks[n].timeout),delete this._callbacks[n],(0,r.errback)({error:this._createErrorObject("connection closed",0)})}}return!1}return this._transport.send(this._encoder.encodeCommands(e)),!0}},{key:"_setupTransport",value:function(){var e=this;if(this._isSockjs=!1,null!==this._sockjs){var t={transports:this._config.sockjsTransports};null!==this._config.sockjsServer&&(t.server=this._config.sockjsServer),this._isSockjs=!0,this._transport=new this._sockjs(this._url,null,t)}else{if(!this._websocketSupported())return void this._debug("No Websocket support and no SockJS configured, can not connect");null!==this._config.websocket?this._websocket=this._config.websocket:this._websocket=WebSocket,this._transport=new this._websocket(this._url),!0===this._binary&&(this._transport.binaryType="arraybuffer")}this._transport.onopen=function(){e._transportClosed=!1,e._isSockjs?(e._transportName="sockjs-"+e._transport.transport,e._transport.onheartbeat=function(){return e._restartPing()}):e._transportName="websocket";var t={};(e._token||e._connectData||e._config.name||e._config.version)&&(t.params={}),e._token&&(t.params.token=e._token),e._connectData&&(t.params.data=e._connectData),e._config.name&&(t.params.name=e._config.name),e._config.version&&(t.params.version=e._config.version);var n={},r=!1;for(var a in e._serverSubs)if(e._serverSubs.hasOwnProperty(a)&&e._serverSubs[a].recoverable){r=!0;var i={recover:!0};e._serverSubs[a].seq||e._serverSubs[a].gen?(e._serverSubs[a].seq&&(i.seq=e._serverSubs[a].seq),e._serverSubs[a].gen&&(i.gen=e._serverSubs[a].gen)):e._serverSubs[a].offset&&(i.offset=e._serverSubs[a].offset),e._serverSubs[a].epoch&&(i.epoch=e._serverSubs[a].epoch),n[a]=i}r&&(t.params||(t.params={}),t.params.subs=n),e._latencyStart=new Date,e._call(t).then((function(t){e._connectResponse(e._decoder.decodeCommandResult(e._methodType.CONNECT,t.result),r),t.next&&t.next()}),(function(t){109===t.error.code&&(e._refreshRequired=!0),e._disconnect("connect error",!0),t.next&&t.next()}))},this._transport.onerror=function(t){e._debug("transport level error",t)},this._transport.onclose=function(t){e._transportClosed=!0;var n="connection closed",r=!0;if(t&&"reason"in t&&t.reason)try{var a=JSON.parse(t.reason);e._debug("reason is an advice object",a),n=a.reason,r=a.reconnect}catch(r){n=t.reason,e._debug("reason is a plain string",n)}if(null!==e._config.onTransportClose&&e._config.onTransportClose({event:t,reason:n,reconnect:r}),e._disconnect(n,r),!0===e._reconnect){e._reconnecting=!0;var i=e._getRetryInterval();e._debug("reconnect after "+i+" milliseconds"),setTimeout((function(){!0===e._reconnect&&(e._refreshRequired?e._refresh():e._connect())}),i)}},this._transport.onmessage=function(t){e._dataReceived(t.data)}}},{key:"rpc",value:function(e){return this._rpc("",e)}},{key:"namedRPC",value:function(e,t){return this._rpc(e,t)}},{key:"_rpc",value:function(e,t){var n={data:t};""!==e&&(n.method=e);var r={method:this._methodType.RPC,params:n};return this._methodCall(r,(function(e){return e}))}},{key:"send",value:function(e){var t={method:this._methodType.SEND,params:{data:e}};return this.isConnected()&&this._transportSend([t])?Promise.resolve({}):Promise.reject(this._createErrorObject("connection closed",0))}},{key:"_getHistoryParams",value:function(e,t){var n={channel:e};return void 0!==t&&(t.since&&(n.use_since=!0,t.since.offset&&(n.offset=t.since.offset),t.since.epoch&&(n.epoch=t.since.epoch)),void 0!==t.limit&&(n.use_limit=!0,n.limit=t.limit)),n}},{key:"_methodCall",value:function(e,t){var n=this;return this.isConnected()?new Promise((function(r,a){n._call(e).then((function(a){r(t(n._decoder.decodeCommandResult(e.method,a.result))),a.next&&a.next()}),(function(e){a(e.error),e.next&&e.next()}))})):Promise.reject(this._createErrorObject("connection closed",0))}},{key:"publish",value:function(e,t){var n={method:this._methodType.PUBLISH,params:{channel:e,data:t}};return this._methodCall(n,(function(){return{}}))}},{key:"history",value:function(e,t){var n=this._getHistoryParams(e,t),r={method:this._methodType.HISTORY,params:n};return this._methodCall(r,(function(e){return{publications:e.publications,epoch:e.epoch||"",offset:e.offset||0}}))}},{key:"presence",value:function(e){var t={method:this._methodType.PRESENCE,params:{channel:e}};return this._methodCall(t,(function(e){return{presence:e.presence}}))}},{key:"presenceStats",value:function(e){var t={method:this._methodType.PRESENCE_STATS,params:{channel:e}};return this._methodCall(t,(function(e){return{num_users:e.num_users,num_clients:e.num_clients}}))}},{key:"_dataReceived",value:function(e){var t=this,n=this._decoder.decodeReplies(e);this._dispatchPromise=this._dispatchPromise.then((function(){var e;t._dispatchPromise=new Promise((function(t){e=t})),t._dispatchSynchronized(n,e)})),this._restartPing()}},{key:"_dispatchSynchronized",value:function(e,t){var n=this,r=Promise.resolve(),a=function(t){e.hasOwnProperty(t)&&(r=r.then((function(){return n._dispatchReply(e[t])})))};for(var i in e)a(i);r=r.then((function(){t()}))}},{key:"_dispatchReply",value:function(e){var t,n=new Promise((function(e){t=e}));if(null==e)return this._debug("dispatch: got undefined or null reply"),t(),n;var r=e.id;return r&&r>0?this._handleReply(e,t):this._handlePush(e.result,t),n}},{key:"_call",value:function(e){var t=this;return new Promise((function(n,r){var a=t._addMessage(e);t._registerCall(a,n,r)}))}},{key:"_connect",value:function(){this.isConnected()?this._debug("connect called when already connected"):"connecting"!==this._status&&(this._debug("start connecting"),this._setStatus("connecting"),this._clientID=null,this._reconnect=!0,this._setupTransport())}},{key:"_disconnect",value:function(e,t){var n=t||!1;if(!1===n&&(this._reconnect=!1),this._isDisconnected())n||this._clearConnectedState(n);else{if(this._clearConnectedState(n),this._debug("disconnected:",e,t),this._setStatus("disconnected"),this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null),!1===this._reconnecting){for(var r in this._serverSubs)this._serverSubs.hasOwnProperty(r)&&this.emit("unsubscribe",{channel:r});this.emit("disconnect",{reason:e,reconnect:n})}!1===n&&(this._subs={},this._serverSubs={}),this._transportClosed||this._transport.close()}}},{key:"_refreshFailed",value:function(){this._numRefreshFailed=0,this._isDisconnected()||this._disconnect("refresh failed",!1),null!==this._config.onRefreshFailed&&this._config.onRefreshFailed()}},{key:"_refresh",value:function(){var e=this;if(this._debug("refresh token"),0===this._config.refreshAttempts)return this._debug("refresh attempts set to 0, do not send refresh request at all"),void this._refreshFailed();null!==this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null);var t=this._clientID,n=this._newXHRID(),r=function(r){if(n in e._xhrs&&delete e._xhrs[n],e._clientID===t)if(r.error||200!==r.status){if(r.error?e._debug("error refreshing connection token",r.error):e._debug("error refreshing connection token: wrong status code",r.status),e._numRefreshFailed++,null!==e._refreshTimeout&&(clearTimeout(e._refreshTimeout),e._refreshTimeout=null),null!==e._config.refreshAttempts&&e._numRefreshFailed>=e._config.refreshAttempts)return void e._refreshFailed();var a=Math.round(1e3*Math.random()*Math.max(e._numRefreshFailed,20)),i=e._config.refreshInterval+a;e._refreshTimeout=setTimeout((function(){return e._refresh()}),i)}else if(e._numRefreshFailed=0,e._token=r.data.token,e._token)if(e._isDisconnected()&&e._reconnect)e._debug("token refreshed, connect from scratch"),e._connect();else{e._debug("send refreshed token");var s={method:e._methodType.REFRESH,params:{token:e._token}};e._call(s).then((function(t){e._refreshResponse(e._decoder.decodeCommandResult(e._methodType.REFRESH,t.result)),t.next&&t.next()}),(function(t){e._refreshError(t.error),t.next&&t.next()}))}else e._refreshFailed()};if(null!==this._config.onRefresh)this._config.onRefresh({},r);else{var a=this._ajax(this._config.refreshEndpoint,this._config.refreshParams,this._config.refreshHeaders,this._config.refreshData,r);this._xhrs[n]=a}}},{key:"_refreshError",value:function(e){var t=this;this._debug("refresh error",e),this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null);var n=this._config.refreshInterval+Math.round(1e3*Math.random());this._refreshTimeout=setTimeout((function(){return t._refresh()}),n)}},{key:"_refreshResponse",value:function(e){var t=this;this._refreshTimeout&&(clearTimeout(this._refreshTimeout),this._refreshTimeout=null),e.expires&&(this._clientID=e.client,this._refreshTimeout=setTimeout((function(){return t._refresh()}),this._getTTLMilliseconds(e.ttl)))}},{key:"_newXHRID",value:function(){return this._xhrID++,this._xhrID}},{key:"_subRefresh",value:function(e){var t=this;if(this._debug("refresh subscription token for channel",e),void 0!==this._subRefreshTimeouts[e]){this._clearSubRefreshTimeout(e);var n=this._clientID,r=this._newXHRID(),a=function(a){if(r in t._xhrs&&delete t._xhrs[r],!a.error&&200===a.status&&t._clientID===n){var i={};if(a.data.channels)for(var s in a.data.channels){var o=a.data.channels[s];o.channel&&(i[o.channel]=o.token)}var l=i[e];if(l){var c={method:t._methodType.SUB_REFRESH,params:{channel:e,token:l}};null!==t._getSub(e)&&t._call(c).then((function(n){t._subRefreshResponse(e,t._decoder.decodeCommandResult(t._methodType.SUB_REFRESH,n.result)),n.next&&n.next()}),(function(n){t._subRefreshError(e,n.error),n.next&&n.next()}))}}},i={client:this._clientID,channels:[e]};if(null!==this._config.onPrivateSubscribe)this._config.onPrivateSubscribe({data:i},a);else{var s=this._ajax(this._config.subscribeEndpoint,this._config.subscribeParams,this._config.subscribeHeaders,i,a);this._xhrs[r]=s}}}},{key:"_clearSubRefreshTimeout",value:function(e){void 0!==this._subRefreshTimeouts[e]&&(clearTimeout(this._subRefreshTimeouts[e]),delete this._subRefreshTimeouts[e])}},{key:"_subRefreshError",value:function(e,t){var n=this;if(this._debug("subscription refresh error",e,t),this._clearSubRefreshTimeout(e),null!==this._getSub(e)){var r=Math.round(1e3*Math.random()),a=setTimeout((function(){return n._subRefresh(e)}),this._config.subRefreshInterval+r);this._subRefreshTimeouts[e]=a}}},{key:"_subRefreshResponse",value:function(e,t){var n=this;if(this._debug("subscription refresh success",e),this._clearSubRefreshTimeout(e),null!==this._getSub(e)&&!0===t.expires){var r=setTimeout((function(){return n._subRefresh(e)}),this._getTTLMilliseconds(t.ttl));this._subRefreshTimeouts[e]=r}}},{key:"_subscribe",value:function(e,t){var n=this;this._debug("subscribing on",e.channel);var r=e.channel;if(r in this._subs||(this._subs[r]=e),this.isConnected()){e._setSubscribing(t);var a={method:this._methodType.SUBSCRIBE,params:{channel:r}};if((0,s.startsWith)(r,this._config.privateChannelPrefix))this._isSubscribeBatching?this._privateChannels[r]=!0:(this.startSubscribeBatching(),this._subscribe(e),this.stopSubscribeBatching());else{var i=e._needRecover();if(!0===i){a.params.recover=!0;var o=this._getLastSeq(r),l=this._getLastGen(r);if(o||l)o&&(a.params.seq=o),l&&(a.params.gen=l);else{var c=this._getLastOffset(r);c&&(a.params.offset=c)}var u=this._getLastEpoch(r);u&&(a.params.epoch=u)}this._call(a).then((function(e){n._subscribeResponse(r,i,n._decoder.decodeCommandResult(n._methodType.SUBSCRIBE,e.result)),e.next&&e.next()}),(function(e){n._subscribeError(r,e.error),e.next&&e.next()}))}}else e._setNew()}},{key:"_unsubscribe",value:function(e){delete this._subs[e.channel],delete this._lastOffset[e.channel],delete this._lastSeq[e.channel],delete this._lastGen[e.channel],this.isConnected()&&this._addMessage({method:this._methodType.UNSUBSCRIBE,params:{channel:e.channel}})}},{key:"_getTTLMilliseconds",value:function(e){return Math.min(1e3*e,2147483647)}},{key:"getSub",value:function(e){return this._getSub(e)}},{key:"_getSub",value:function(e){var t=this._subs[e];return t||null}},{key:"_isServerSub",value:function(e){return void 0!==this._serverSubs[e]}},{key:"_connectResponse",value:function(e,t){var n=this,r=this._reconnecting;if(this._reconnecting=!1,this._resetRetry(),this._refreshRequired=!1,!this.isConnected()){for(var a in null!==this._latencyStart&&(this._latency=(new Date).getTime()-this._latencyStart.getTime(),this._latencyStart=null),this._clientID=e.client,this._setStatus("connected"),this._refreshTimeout&&clearTimeout(this._refreshTimeout),e.expires&&(this._refreshTimeout=setTimeout((function(){return n._refresh()}),this._getTTLMilliseconds(e.ttl))),this.startBatching(),this.startSubscribeBatching(),this._subs)if(this._subs.hasOwnProperty(a)){var i=this._subs[a];i._shouldResubscribe()&&this._subscribe(i,r)}this.stopSubscribeBatching(),this.stopBatching(),this._startPing();var s={client:e.client,transport:this._transportName,latency:this._latency};e.data&&(s.data=e.data),this.emit("connect",s),e.subs&&this._processServerSubs(e.subs)}}},{key:"_processServerSubs",value:function(e){for(var t in e)if(e.hasOwnProperty(t)){var n=e[t],r={channel:t,isResubscribe:void 0!==this._serverSubs[t]};r=this._expandSubscribeContext(r,n),this.emit("subscribe",r)}for(var a in e)if(e.hasOwnProperty(a)){var i=e[a];if(i.recovered){var s=i.publications;if(s&&s.length>0)for(var o in s.length>1&&(!s[0].offset||s[0].offset>s[1].offset)&&(s=s.reverse()),s)s.hasOwnProperty(o)&&this._handlePublication(a,s[o])}this._serverSubs[a]={seq:i.seq,gen:i.gen,offset:i.offset,epoch:i.epoch,recoverable:i.recoverable}}}},{key:"_stopPing",value:function(){null!==this._pongTimeout&&(clearTimeout(this._pongTimeout),this._pongTimeout=null),null!==this._pingTimeout&&(clearTimeout(this._pingTimeout),this._pingTimeout=null)}},{key:"_startPing",value:function(){var e=this;!0!==this._config.ping||this._config.pingInterval<=0||this.isConnected()&&(this._pingTimeout=setTimeout((function(){e.isConnected()?(e.ping(),e._pongTimeout=setTimeout((function(){e._disconnect("no ping",!0)}),e._config.pongWaitTimeout)):e._stopPing()}),this._config.pingInterval))}},{key:"_restartPing",value:function(){this._stopPing(),this._startPing()}},{key:"_subscribeError",value:function(e,t){var n=this._getSub(e);n&&n._isSubscribing()&&(0!==t.code||"timeout"!==t.message?n._setSubscribeError(t):this._disconnect("timeout",!0))}},{key:"_expandSubscribeContext",value:function(e,t){var n=!1;"recovered"in t&&(n=t.recovered),e.recovered=n;var r=!1;"positioned"in t&&(r=t.positioned);var a="";"epoch"in t&&(a=t.epoch);var i=0;return"offset"in t&&(i=t.offset),r&&(e.streamPosition={offset:i,epoch:a}),t.data&&(e.data=t.data),e}},{key:"_subscribeResponse",value:function(e,t,n){var r=this,a=this._getSub(e);if(a&&a._isSubscribing()){a._setSubscribeSuccess(n);var i=n.publications;if(i&&i.length>0)for(var s in i.length>=2&&!i[0].offset&&!i[1].offset&&(i=i.reverse()),i)i.hasOwnProperty(s)&&this._handlePublication(e,i[s]);if(!n.recoverable||t&&n.recovered||(this._lastSeq[e]=n.seq||0,this._lastGen[e]=n.gen||0,this._lastOffset[e]=n.offset||0),this._lastEpoch[e]=n.epoch||"",n.recoverable&&(a._recoverable=!0),!0===n.expires){var o=setTimeout((function(){return r._subRefresh(e)}),this._getTTLMilliseconds(n.ttl));this._subRefreshTimeouts[e]=o}}}},{key:"_handleReply",value:function(e,t){var n=e.id,r=e.result;if(n in this._callbacks){var a=this._callbacks[n];if(clearTimeout(this._callbacks[n].timeout),delete this._callbacks[n],(0,s.errorExists)(e)){var i=a.errback;if(!i)return void t();i({error:e.error,next:t})}else{var o=a.callback;if(!o)return;o({result:r,next:t})}}else t()}},{key:"_handleJoin",value:function(e,t){var n={info:t.info},r=this._getSub(e);r?r.emit("join",n):this._isServerSub(e)&&(n.channel=e,this.emit("join",n))}},{key:"_handleLeave",value:function(e,t){var n={info:t.info},r=this._getSub(e);r?r.emit("leave",n):this._isServerSub(e)&&(n.channel=e,this.emit("leave",n))}},{key:"_handleUnsub",value:function(e,t){var n={},r=this._getSub(e);r?(r.unsubscribe(),!0===t.resubscribe&&r.subscribe()):this._isServerSub(e)&&(delete this._serverSubs[e],n.channel=e,this.emit("unsubscribe",n))}},{key:"_handleSub",value:function(e,t){this._serverSubs[e]={seq:t.seq,gen:t.gen,offset:t.offset,epoch:t.epoch,recoverable:t.recoverable};var n={channel:e,isResubscribe:!1};n=this._expandSubscribeContext(n,t),this.emit("subscribe",n)}},{key:"_handlePublication",value:function(e,t){var n=this._getSub(e),r={data:t.data,seq:t.seq,gen:t.gen,offset:t.offset};t.info&&(r.info=t.info),n?(void 0!==t.seq&&(this._lastSeq[e]=t.seq),void 0!==t.gen&&(this._lastGen[e]=t.gen),void 0!==t.offset&&(this._lastOffset[e]=t.offset),n.emit("publish",r)):this._isServerSub(e)&&(void 0!==t.seq&&(this._serverSubs[e].seq=t.seq),void 0!==t.gen&&(this._serverSubs[e].gen=t.gen),void 0!==t.offset&&(this._serverSubs[e].offset=t.offset),r.channel=e,this.emit("publish",r))}},{key:"_handleMessage",value:function(e){this.emit("message",e.data)}},{key:"_handlePush",value:function(e,t){var n=this._decoder.decodePush(e),r=0;"type"in n&&(r=n.type);var a=n.channel;if(r===this._pushType.PUBLICATION){var i=this._decoder.decodePushData(this._pushType.PUBLICATION,n.data);this._handlePublication(a,i)}else if(r===this._pushType.MESSAGE){var s=this._decoder.decodePushData(this._pushType.MESSAGE,n.data);this._handleMessage(s)}else if(r===this._pushType.JOIN){var o=this._decoder.decodePushData(this._pushType.JOIN,n.data);this._handleJoin(a,o)}else if(r===this._pushType.LEAVE){var l=this._decoder.decodePushData(this._pushType.LEAVE,n.data);this._handleLeave(a,l)}else if(r===this._pushType.UNSUB){var c=this._decoder.decodePushData(this._pushType.UNSUB,n.data);this._handleUnsub(a,c)}else if(r===this._pushType.SUB){var u=this._decoder.decodePushData(this._pushType.SUB,n.data);this._handleSub(a,u)}t()}},{key:"_flush",value:function(){var e=this._messages.slice(0);this._messages=[],this._transportSend(e)}},{key:"_ping",value:function(){var e=this,t={method:this._methodType.PING};this._call(t).then((function(t){e._pingResponse(e._decoder.decodeCommandResult(e._methodType.PING,t.result)),t.next&&t.next()}),(function(t){e._debug("ping error",t.error),t.next&&t.next()}))}},{key:"_pingResponse",value:function(e){this.isConnected()&&(this._stopPing(),this._startPing())}},{key:"_getLastSeq",value:function(e){var t=this._lastSeq[e];return t||0}},{key:"_getLastOffset",value:function(e){var t=this._lastOffset[e];return t||0}},{key:"_getLastGen",value:function(e){var t=this._lastGen[e];return t||0}},{key:"_getLastEpoch",value:function(e){var t=this._lastEpoch[e];return t||""}},{key:"_createErrorObject",value:function(e,t){return{message:e,code:t||0}}},{key:"_registerCall",value:function(e,t,n){var r=this;this._callbacks[e]={callback:t,errback:n,timeout:null},this._callbacks[e].timeout=setTimeout((function(){delete r._callbacks[e],(0,s.isFunction)(n)&&n({error:r._createErrorObject("timeout")})}),this._config.timeout)}},{key:"_addMessage",value:function(e){var t=this._nextMessageId();return e.id=t,!0===this._isBatching?this._messages.push(e):this._transportSend([e]),t}},{key:"isConnected",value:function(){return this._isConnected()}},{key:"connect",value:function(){this._connect()}},{key:"disconnect",value:function(){this._disconnect("client",!1)}},{key:"ping",value:function(){return this._ping()}},{key:"startBatching",value:function(){this._isBatching=!0}},{key:"stopBatching",value:function(){this._isBatching=!1,this._flush()}},{key:"startSubscribeBatching",value:function(){this._isSubscribeBatching=!0}},{key:"stopSubscribeBatching",value:function(){var e=this;this._isSubscribeBatching=!1;var t=this._privateChannels;this._privateChannels={};var n=[];for(var r in t)if(t.hasOwnProperty(r)){if(!this._getSub(r))continue;n.push(r)}if(0!==n.length){var a={client:this._clientID,channels:n},i=this._clientID,s=this._newXHRID(),o=function(t){if(s in e._xhrs&&delete e._xhrs[s],e._clientID===i)if(t.error||200!==t.status){for(var r in e._debug("authorization request failed"),n)if(n.hasOwnProperty(r)){var a=n[r];e._subscribeError(a,e._createErrorObject("authorization request failed"))}}else{var o={};if(t.data.channels)for(var l in t.data.channels){var c=t.data.channels[l];c.channel&&(o[c.channel]=c.token)}var u=!1;for(var p in e._isBatching||(e.startBatching(),u=!0),n)!n.hasOwnProperty(p)||function(){var t=n[p],r=o[t];if(!r)return e._subscribeError(t,e._createErrorObject("permission denied",103)),"continue";var a={method:e._methodType.SUBSCRIBE,params:{channel:t,token:r}},i=e._getSub(t);if(null===i)return"continue";var s=i._needRecover();if(!0===s){a.params.recover=!0;var l=e._getLastSeq(t),c=e._getLastGen(t);if(l||c)l&&(a.params.seq=l),c&&(a.params.gen=c);else{var u=e._getLastOffset(t);u&&(a.params.offset=u)}var d=e._getLastEpoch(t);d&&(a.params.epoch=d)}e._call(a).then((function(n){e._subscribeResponse(t,s,e._decoder.decodeCommandResult(e._methodType.SUBSCRIBE,n.result)),n.next&&n.next()}),(function(n){e._subscribeError(t,n.error),n.next&&n.next()}))}();u&&e.stopBatching()}};if(null!==this._config.onPrivateSubscribe)this._config.onPrivateSubscribe({data:a},o);else{var l=this._ajax(this._config.subscribeEndpoint,this._config.subscribeParams,this._config.subscribeHeaders,a,o);this._xhrs[s]=l}}else this._debug("no private channels found, no need to make request")}},{key:"subscribe",value:function(e,t){var n=this._getSub(e);if(null!==n)return n._setEvents(t),n._isUnsubscribed()&&n.subscribe(),n;var r=new a.default(this,e,t);return this._subs[e]=r,r.subscribe(),r}}])&&c(t.prototype,r),o&&c(t,o),h}(r.default);t.Centrifuge=f},579:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(382).Centrifuge;t.default=r,e.exports=t.default},147:function(e,t){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}Object.defineProperty(t,"__esModule",{value:!0}),t.JsonDecoder=t.JsonEncoder=t.JsonPushType=t.JsonMethodType=void 0,t.JsonMethodType={CONNECT:0,SUBSCRIBE:1,UNSUBSCRIBE:2,PUBLISH:3,PRESENCE:4,PRESENCE_STATS:5,HISTORY:6,PING:7,SEND:8,RPC:9,REFRESH:10,SUB_REFRESH:11},t.JsonPushType={PUBLICATION:0,JOIN:1,LEAVE:2,UNSUB:3,MESSAGE:4,SUB:5};var i=function(){function e(){n(this,e)}return a(e,[{key:"encodeCommands",value:function(e){return e.map((function(e){return JSON.stringify(e)})).join("\n")}}]),e}();t.JsonEncoder=i;var s=function(){function e(){n(this,e)}return a(e,[{key:"decodeReplies",value:function(e){return e.split("\n").filter((function(e){return""!==e})).map((function(e){return JSON.parse(e)}))}},{key:"decodeCommandResult",value:function(e,t){return t}},{key:"decodePush",value:function(e){return e}},{key:"decodePushData",value:function(e,t){return t}}]),e}();t.JsonDecoder=s},471:function(e,t,n){function r(e){return(r="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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a,i=(a=n(187))&&a.__esModule?a:{default:a},s=n(853);function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var a=p(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(i,e);var t,n,r,a=c(i);function i(e,t,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(r=a.call(this)).channel=t,r._centrifuge=e,r._status=0,r._error=null,r._isResubscribe=!1,r._ready=!1,r._subscriptionPromise=null,r._noResubscribe=!1,r._recoverable=!1,r._recover=!1,r._setEvents(n),r._initializePromise(),r._promises={},r._promiseId=0,r.on("error",(function(e){this._centrifuge._debug("subscription error",e)})),r}return t=i,(n=[{key:"_nextPromiseId",value:function(){return++this._promiseId}},{key:"_initializePromise",value:function(){var e=this;this._ready=!1,this._subscriptionPromise=new Promise((function(t,n){e._resolve=function(n){e._ready=!0,t(n)},e._reject=function(t){e._ready=!0,n(t)}})).then((function(){}),(function(){}))}},{key:"_needRecover",value:function(){return!0===this._recoverable&&!0===this._recover}},{key:"_setEvents",value:function(e){if(e)if((0,s.isFunction)(e))this.on("publish",e);else if(Object.prototype.toString.call(e)===Object.prototype.toString.call({}))for(var t=["publish","join","leave","unsubscribe","subscribe","error"],n=0,r=t.length;n<r;n++){var a=t[n];a in e&&this.on(a,e[a])}}},{key:"_isNew",value:function(){return 0===this._status}},{key:"_isUnsubscribed",value:function(){return 4===this._status}},{key:"_isSubscribing",value:function(){return 1===this._status}},{key:"_isReady",value:function(){return 2===this._status||3===this._status}},{key:"_isSuccess",value:function(){return 2===this._status}},{key:"_isError",value:function(){return 3===this._status}},{key:"_setNew",value:function(){this._status=0}},{key:"_setSubscribing",value:function(e){this._isResubscribe=e||!1,!0===this._ready&&this._initializePromise(),this._status=1}},{key:"_setSubscribeSuccess",value:function(e){if(2!==this._status){this._status=2;var t=this._getSubscribeSuccessContext(e);for(var n in this._recover=!1,this.emit("subscribe",t),this._resolve(t),this._promises)clearTimeout(this._promises[n].timeout),this._promises[n].resolve(),delete this._promises[n]}}},{key:"_setSubscribeError",value:function(e){if(3!==this._status){this._status=3,this._error=e;var t=this._getSubscribeErrorContext();for(var n in this.emit("error",t),this._reject(t),this._promises)clearTimeout(this._promises[n].timeout),this._promises[n].reject(e),delete this._promises[n]}}},{key:"_triggerUnsubscribe",value:function(){this.emit("unsubscribe",{channel:this.channel})}},{key:"_setUnsubscribed",value:function(e){if(this._centrifuge._clearSubRefreshTimeout(this.channel),4!==this._status){var t=2===this._status;this._status=4,!0===e&&(this._recover=!1,this._noResubscribe=!0,delete this._centrifuge._lastSeq[this.channel],delete this._centrifuge._lastGen[this.channel],delete this._centrifuge._lastEpoch[this.channel]),t&&this._triggerUnsubscribe()}}},{key:"_shouldResubscribe",value:function(){return!this._noResubscribe}},{key:"_getSubscribeSuccessContext",value:function(e){var t={channel:this.channel,isResubscribe:this._isResubscribe};return e&&(t=this._centrifuge._expandSubscribeContext(t,e)),t}},{key:"_getSubscribeErrorContext",value:function(){var e=this._error;return e.channel=this.channel,e.isResubscribe=this._isResubscribe,e}},{key:"ready",value:function(e,t){this._ready&&(this._isSuccess()?e(this._getSubscribeSuccessContext()):t(this._getSubscribeErrorContext()))}},{key:"subscribe",value:function(){2!==this._status&&(this._noResubscribe=!1,this._centrifuge._subscribe(this))}},{key:"unsubscribe",value:function(){this._setUnsubscribed(!0),this._centrifuge._unsubscribe(this)}},{key:"_methodCall",value:function(){var e=this;return this._isSuccess()?Promise.resolve():this._isError()?Promise.reject(this._error):new Promise((function(t,n){var r=setTimeout((function(){n({code:0,message:"timeout"})}),e._centrifuge._config.timeout);e._promises[e._nextPromiseId()]={timeout:r,resolve:t,reject:n}}))}},{key:"publish",value:function(e){var t=this;return this._methodCall().then((function(){return t._centrifuge.publish(t.channel,e)}))}},{key:"presence",value:function(){var e=this;return this._methodCall().then((function(){return e._centrifuge.presence(e.channel)}))}},{key:"presenceStats",value:function(){var e=this;return this._methodCall().then((function(){return e._centrifuge.presenceStats(e.channel)}))}},{key:"history",value:function(e){var t=this;return this._methodCall().then((function(){return t._centrifuge.history(t.channel,e)}))}}])&&o(t.prototype,n),r&&o(t,r),i}(i.default);t.default=d,e.exports=t.default},853:function(e,t,n){function r(e){return null!=e&&"function"==typeof e}Object.defineProperty(t,"__esModule",{value:!0}),t.startsWith=function(e,t){return 0===e.lastIndexOf(t,0)},t.isFunction=r,t.log=function(e,t){if(n.g.console){var a=n.g.console[e];r(a)&&a.apply(n.g.console,t)}},t.backoff=function(e,t,n){var r=.5*Math.random(),a=Math.min(n,t*Math.pow(2,e+1));return Math.floor((1-r)*a)},t.errorExists=function(e){return"error"in e&&null!==e.error},t.extend=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}},187:function(e){var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(n,r){function a(){void 0!==i&&e.removeListener("error",i),n([].slice.call(arguments))}var i;"error"!==t&&(i=function(n){e.removeListener(t,a),r(n)},e.once("error",i)),e.once(t,a)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var s=10;function o(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function l(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var a,i,s,c;if(o(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),s=i[t]),void 0===s)s=i[t]=n,++e._eventsCount;else if("function"==typeof s?s=i[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(a=l(e))>0&&s.length>a&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,c=u,console&&console.warn&&console.warn(c)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},a=u.bind(r);return a.listener=n,r.wrapFn=a,a}function d(e,t,n){var r=e._events;if(void 0===r)return[];var a=r[t];return void 0===a?[]:"function"==typeof a?n?[a.listener||a]:[a]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(a):f(a,a.length)}function h(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function f(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return l(this)},i.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var a="error"===e,i=this._events;if(void 0!==i)a=a&&void 0===i.error;else if(!a)return!1;if(a){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var o=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw o.context=s,o}var l=i[e];if(void 0===l)return!1;if("function"==typeof l)r(l,this,t);else{var c=l.length,u=f(l,c);for(n=0;n<c;++n)r(u[n],this,t)}return!0},i.prototype.addListener=function(e,t){return c(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return c(this,e,t,!0)},i.prototype.once=function(e,t){return o(t),this.on(e,p(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return o(t),this.prependListener(e,p(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,r,a,i,s;if(o(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(a=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){s=n[i].listener,a=i;break}if(a<0)return this;0===a?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,a),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var a,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(a=i[r])&&this.removeAllListeners(a);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return d(this,e,!0)},i.prototype.rawListeners=function(e){return d(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},i.prototype.listenerCount=h,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}}},t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}return n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n(579)}()},e.exports=r()},function(e,t,n){var r=n(46),a=n(174),i=Object.prototype.hasOwnProperty,s=a((function(e,t,n){i.call(e,n)?e[n].push(t):r(e,n,[t])}));e.exports=s},function(e,t,n){var r=n(44),a=n(12),i=n(175),s=n(114);e.exports=function(e,t){if(null==e)return{};var n=r(s(e),(function(e){return[e]}));return t=a(t),i(e,n,(function(e,n){return t(e,n[0])}))}},function(e,t,n){var r=n(392)();e.exports=r},function(e,t,n){var r=n(395);e.exports=function(e){return r(2,e)}},function(e,t){e.exports=require("crypto")},function(e,t,n){var r=n(112),a=n(118);e.exports=function(e,t,n){return e&&e.length?(t=n||void 0===t?1:a(t),r(e,0,t<0?0:t)):[]}},function(e,t,n){"use strict";t.__esModule=!0;var r,a=n(397),i=(r=a)&&r.__esModule?r:{default:r};t.default=(0,i.default)("local")},function(e,t,n){var r=n(403),a=n(404),i=n(12);e.exports=function(e,t){return e&&e.length?r(e,i(t,2),a):void 0}},function(e,t,n){var r=n(12),a=n(178);e.exports=function(e,t){return e&&e.length?a(e,r(t,2)):0}},function(e,t,n){var r=n(405),a=n(154);e.exports=function(e,t){return null!=e&&a(e,t,r)}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(e.exports=n=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),n(t)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=require("fs")},function(e,t,n){var r=n(87),a=n(47),i=n(34),s=n(48),o=i((function(e,t){return s(e)?r(e,a(t,1,s,!0)):[]}));e.exports=o},function(e,t){var n=/^(?:([-+]{1}) ?)?(?:([A-Z]{3}) ?)?(?:([^\d ]+?) ?)?(((?:\d{1,3}([,. ’'\u00A0\u202F]))*?\d{1,})(([,.])\d{1,2})?)(?: ?([^\d]+?))??(?: ?([A-Z]{3}))?$/,r=/^\d{1,3}([,. ’'\u00A0\u202F]\d{3})*$/,a=/^\d{1,2}(,\d{2})*(,\d{3})?$/;e.exports=function(e){if(!e||!e.match)return null;var t=(e=e.trim()).match(n);if(!t)return null;var i=t[6]||"",s=t[8]||"";if(i===s&&s)return null;var o="-"===t[1]?"-"+t[5]:t[5];if(i&&!t[5].match(r)&&!t[5].match(a))return null;var l=t[4];if(!l)return null;i&&(l=l.replace(RegExp("\\"+i,"g"),"")),s&&(l=l.replace(s,"."));var c="-"===t[1]?-1*l:+l;return"number"!=typeof c||isNaN(c)?null:{raw:e,value:c,integer:o||"",decimals:t[7]||"",currency:t[2]||t[10]||"",symbol:t[3]||t[9]||"",decimalSeparator:s,groupSeparator:i,sign:t[1]||""}}},,function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};if(Object.defineProperty(t,"__esModule",{value:!0}),"browser"===process.type)throw new Error('"@electron/remote" cannot be required in the browser process. Instead require("@electron/remote/main").');a(n(237),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFunctionWithReturnValue=t.getGlobal=t.getCurrentWebContents=t.getCurrentWindow=t.getBuiltin=void 0;const r=n(238),a=n(239),i=n(7),s=n(240),o=n(132),l=new r.CallbacksRegistry,c=new Map,u=new FinalizationRegistry(e=>{const t=c.get(e);void 0!==t&&void 0===t.deref()&&(c.delete(e),i.ipcRenderer.send("REMOTE_BROWSER_DEREFERENCE",h,e,0))}),p=new WeakMap,d=new WeakSet;const h=process.contextId||function(){const e=o.getElectronBinding("v8_util");if(e)return e.getHiddenValue(global,"contextId");throw new Error("Electron >=v13.0.0-beta.6 required to support sandboxed renderers")}();process.on("exit",()=>{i.ipcRenderer.send("REMOTE_BROWSER_CONTEXT_RELEASE",h)});const f=Symbol("is-remote-proxy");function m(e,t=new Set){const n=e=>{if(t.has(e))return{type:"value",value:null};if(e&&e.constructor&&"NativeImage"===e.constructor.name)return{type:"nativeimage",value:a.serialize(e)};if(Array.isArray(e)){t.add(e);const n={type:"array",value:m(e,t)};return t.delete(e),n}if(e instanceof Buffer)return{type:"buffer",value:e};if(a.isSerializableObject(e))return{type:"value",value:e};if("object"==typeof e){if(a.isPromise(e))return{type:"promise",then:n((function(t,n){e.then(t,n)}))};if(p.has(e))return{type:"remote-object",id:p.get(e)};const r={type:"object",name:e.constructor?e.constructor.name:"",members:[]};t.add(e);for(const t in e)r.members.push({name:t,value:n(e[t])});return t.delete(e),r}return"function"==typeof e&&d.has(e)?{type:"function-with-return-value",value:n(e())}:"function"==typeof e?{type:"function",id:l.add(e),location:l.getLocation(e),length:e.length}:{type:"value",value:e}};return e.map(n)}function S(e,t,n,r){if(Array.isArray(r))for(const a of r){if(Object.prototype.hasOwnProperty.call(t,a.name))continue;const r={enumerable:a.enumerable};if("method"===a.type){const t=function(...e){let r;r=this&&this.constructor===t?"REMOTE_BROWSER_MEMBER_CONSTRUCTOR":"REMOTE_BROWSER_MEMBER_CALL";return g(i.ipcRenderer.sendSync(r,h,n,a.name,m(e)))};let s=y(t,n,a.name);r.get=()=>(s.ref=e,s),r.set=e=>(s=e,e),r.configurable=!0}else"get"===a.type&&(r.get=()=>g(i.ipcRenderer.sendSync("REMOTE_BROWSER_MEMBER_GET",h,n,a.name)),a.writable&&(r.set=e=>{const t=m([e]),r=i.ipcRenderer.sendSync("REMOTE_BROWSER_MEMBER_SET",h,n,a.name,t);return null!=r&&g(r),e}));Object.defineProperty(t,a.name,r)}}function y(e,t,n){let r=!1;const a=()=>{if(r)return;r=!0;const a=i.ipcRenderer.sendSync("REMOTE_BROWSER_MEMBER_GET",h,t,n);S(e,e,a.id,a.members)};return new Proxy(e,{set:(e,t,n)=>("ref"!==t&&a(),e[t]=n,!0),get:(e,t)=>{if(t===f)return!0;Object.prototype.hasOwnProperty.call(e,t)||a();const n=e[t];return"toString"===t&&"function"==typeof n?n.bind(e):n},ownKeys:e=>(a(),Object.getOwnPropertyNames(e)),getOwnPropertyDescriptor:(e,t)=>{const n=Object.getOwnPropertyDescriptor(e,t);return n||(a(),Object.getOwnPropertyDescriptor(e,t))}})}function g(e){if("value"===e.type)return e.value;if("array"===e.type)return e.members.map(e=>g(e));if("nativeimage"===e.type)return a.deserialize(e.value);if("buffer"===e.type)return Buffer.from(e.value.buffer,e.value.byteOffset,e.value.byteLength);if("promise"===e.type)return Promise.resolve({then:g(e.then)});if("error"===e.type)return v(e);if("exception"===e.type)throw"error"===e.value.type?v(e.value):new Error("Unexpected value type in exception: "+e.value.type);{let t;if("id"in e){const t=function(e){const t=c.get(e);if(void 0!==t){const e=t.deref();if(void 0!==e)return e}}(e.id);if(void 0!==t)return t}if("function"===e.type){const n=function(...t){let r;r=this&&this.constructor===n?"REMOTE_BROWSER_CONSTRUCTOR":"REMOTE_BROWSER_FUNCTION_CALL";return g(i.ipcRenderer.sendSync(r,h,e.id,m(t)))};t=n}else t={};return S(t,t,e.id,e.members),function e(t,n,r,a){if(null===a)return;const i={};S(t,i,r,a.members),e(t,i,r,a.proto),Object.setPrototypeOf(n,i)}(t,t,e.id,e.proto),t.constructor&&t.constructor[f]&&Object.defineProperty(t.constructor,"name",{value:e.name}),p.set(t,e.id),function(e,t){const n=new WeakRef(t);c.set(e,n),u.register(t,e)}(e.id,t),t}}function v(e){const t=e.value;for(const{name:n,value:r}of e.members)t[n]=g(r);return t}function _(e,t){i.ipcRenderer.on(e,(n,r,a,...s)=>{0===n.senderId?r===h?t(a,...s):i.ipcRenderer.send("REMOTE_BROWSER_WRONG_CONTEXT_ERROR",h,r,a):console.error(`Message ${e} sent by unexpected WebContents (${n.senderId})`)})}const b=process.argv.includes("--enable-api-filtering-logging");function P(){const e={stack:void 0};return b&&Error.captureStackTrace(e,P),e.stack}_("REMOTE_RENDERER_CALLBACK",(e,t)=>{l.apply(e,g(t))}),_("REMOTE_RENDERER_RELEASE_CALLBACK",e=>{l.remove(e)}),t.require=e=>g(i.ipcRenderer.sendSync("REMOTE_BROWSER_REQUIRE",h,e,P())),t.getBuiltin=function(e){return g(i.ipcRenderer.sendSync("REMOTE_BROWSER_GET_BUILTIN",h,e,P()))},t.getCurrentWindow=function(){return g(i.ipcRenderer.sendSync("REMOTE_BROWSER_GET_CURRENT_WINDOW",h,P()))},t.getCurrentWebContents=function(){return g(i.ipcRenderer.sendSync("REMOTE_BROWSER_GET_CURRENT_WEB_CONTENTS",h,P()))},t.getGlobal=function(e){return g(i.ipcRenderer.sendSync("REMOTE_BROWSER_GET_GLOBAL",h,e,P()))},Object.defineProperty(t,"process",{enumerable:!0,get:()=>t.getGlobal("process")}),t.createFunctionWithReturnValue=function(e){const t=()=>e;return d.add(t),t};s.browserModuleNames.forEach(e=>{Object.defineProperty(t,e,{enumerable:!0,get:()=>t.getBuiltin(e)})})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CallbacksRegistry=void 0;t.CallbacksRegistry=class{constructor(){this.nextId=0,this.callbacks={},this.callbackIds=new WeakMap,this.locationInfo=new WeakMap}add(e){let t=this.callbackIds.get(e);if(null!=t)return t;t=this.nextId+=1,this.callbacks[t]=e,this.callbackIds.set(e,t);const n=/at (.*)/gi,r=(new Error).stack;if(!r)return t;let a,i;for(;null!==(i=n.exec(r));){const e=i[1];if(e.includes("(native)"))continue;if(e.includes("(<anonymous>)"))continue;if(e.includes("callbacks-registry.js"))continue;if(e.includes("remote.js"))continue;if(e.includes("@electron/remote/dist"))continue;const t=/([^/^)]*)\)?$/gi.exec(e);t&&(a=t[1]);break}return this.locationInfo.set(e,a),t}get(e){return this.callbacks[e]||function(){}}getLocation(e){return this.locationInfo.get(e)}apply(e,...t){return this.get(e).apply(global,...t)}remove(e){const t=this.callbacks[e];t&&(this.callbackIds.delete(t),delete this.callbacks[e])}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deserialize=t.serialize=t.isSerializableObject=t.isPromise=void 0;const r=n(7);t.isPromise=function(e){return e&&e.then&&e.then instanceof Function&&e.constructor&&e.constructor.reject&&e.constructor.reject instanceof Function&&e.constructor.resolve&&e.constructor.resolve instanceof Function};const a=[Boolean,Number,String,Date,Error,RegExp,ArrayBuffer];function i(e){return null===e||ArrayBuffer.isView(e)||a.some(t=>e instanceof t)}t.isSerializableObject=i;const s=function(e,t){const n=Object.entries(e).map(([e,n])=>[e,t(n)]);return Object.fromEntries(n)};t.serialize=function e(t){return t&&t.constructor&&"NativeImage"===t.constructor.name?function(e){const t=[],n=e.getScaleFactors();if(1===n.length){const r=n[0],a=e.getSize(r),i=e.toBitmap({scaleFactor:r});t.push({scaleFactor:r,size:a,buffer:i})}else for(const r of n){const n=e.getSize(r),a=e.toDataURL({scaleFactor:r});t.push({scaleFactor:r,size:n,dataURL:a})}return{__ELECTRON_SERIALIZED_NativeImage__:!0,representations:t}}(t):Array.isArray(t)?t.map(e):i(t)?t:t instanceof Object?s(t,e):t},t.deserialize=function e(t){return t&&t.__ELECTRON_SERIALIZED_NativeImage__?function(e){const t=r.nativeImage.createEmpty();if(1===e.representations.length){const{buffer:n,size:r,scaleFactor:a}=e.representations[0],{width:i,height:s}=r;t.addRepresentation({buffer:n,scaleFactor:a,width:i,height:s})}else for(const n of e.representations){const{dataURL:e,size:r,scaleFactor:a}=n,{width:i,height:s}=r;t.addRepresentation({dataURL:e,scaleFactor:a,width:i,height:s})}return t}(t):Array.isArray(t)?t.map(e):i(t)?t:t instanceof Object?s(t,e):t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.browserModuleNames=t.commonModuleNames=void 0;const r=n(132);t.commonModuleNames=["clipboard","nativeImage","shell"],t.browserModuleNames=["app","autoUpdater","BaseWindow","BrowserView","BrowserWindow","contentTracing","crashReporter","dialog","globalShortcut","ipcMain","inAppPurchase","Menu","MenuItem","nativeTheme","net","netLog","MessageChannelMain","Notification","powerMonitor","powerSaveBlocker","protocol","safeStorage","screen","session","ShareMenu","systemPreferences","TopLevelWindow","TouchBar","Tray","View","webContents","WebContentsView","webFrameMain"].concat(t.commonModuleNames);const a=r.getElectronBinding("features");a&&!a.isDesktopCapturerEnabled()||t.browserModuleNames.push("desktopCapturer"),a&&!a.isViewApiEnabled()||t.browserModuleNames.push("ImageView")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.forwardToMainWithParams=void 0;var r,a=n(7),i=(r=n(133))&&r.__esModule?r:{default:r};var s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){return function(t){return function(n){var r=e.blacklist,s=void 0===r?[]:r;return(0,i.default)(n)?n.meta&&"local"===n.meta.scope||s.some((function(e){return e.test(n.type)}))?t(n):void a.ipcRenderer.send("redux-action",n):t(n)}}}};t.forwardToMainWithParams=s;var o=s({blacklist:[/^@@/,/^redux-form/]});t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFSA=i,t.isError=function(e){return i(e)&&!0===e.error};var r=n(65),a=n(122);function i(e){return r(e)&&a(e.type)&&Object.keys(e).every(s)}function s(e){return["type","payload","error","meta"].indexOf(e)>-1}},function(e,t,n){var r=n(40),a=Object.prototype,i=a.hasOwnProperty,s=a.toString,o=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch(e){}var a=s.call(e);return r&&(t?e[o]=n:delete e[o]),a}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){function r(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(t=e.exports=n(246)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),!n)return;var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var a=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(a++,"%c"===e&&(i=a))})),e.splice(i,0,r)},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=r,t.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(r())},function(e,t,n){function r(e){var n;function r(){if(r.enabled){var e=r,a=+new Date,i=a-(n||a);e.diff=i,e.prev=n,e.curr=a,n=a;for(var s=new Array(arguments.length),o=0;o<s.length;o++)s[o]=arguments[o];s[0]=t.coerce(s[0]),"string"!=typeof s[0]&&s.unshift("%O");var l=0;s[0]=s[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return n;l++;var a=t.formatters[r];if("function"==typeof a){var i=s[l];n=a.call(e,i),s.splice(l,1),l--}return n})),t.formatArgs.call(e,s);var c=r.log||t.log||console.log.bind(console);c.apply(e,s)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),r.destroy=a,"function"==typeof t.init&&t.init(r),t.instances.push(r),r}function a(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}(t=e.exports=r.debug=r.default=r).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),a=r.length;for(n=0;n<a;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var i=t.instances[n];i.enabled=t.enabled(i.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(247),t.instances=[],t.names=[],t.skips=[],t.formatters={}},function(e,t){var n=1e3,r=6e4,a=60*r,i=24*a;function s(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}e.exports=function(e,t){t=t||{};var o,l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!t)return;var s=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*a;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===l&&!1===isNaN(e))return t.long?s(o=e,i,"day")||s(o,a,"hour")||s(o,r,"minute")||s(o,n,"second")||o+" ms":function(e){if(e>=i)return Math.round(e/i)+"d";if(e>=a)return Math.round(e/a)+"h";if(e>=r)return Math.round(e/r)+"m";if(e>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,a=n(7),i=(r=n(133))&&r.__esModule?r:{default:r};function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var o=function(){return function(e){return function(t){if(!(0,i.default)(t))return e(t);if(t.meta&&"local"===t.meta.scope)return e(t);var n=s({},t,{meta:s({},t.meta,{scope:"local"})});return a.webContents.getAllWebContents().forEach((function(e){e.send("redux-action",n)})),e(t)}}};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(250)),a=n(136),i=s(n(137));function s(e){return e&&e.__esModule?e:{default:e}}var o=function(e){return function(e){return function(t){if(t.type===a.ALIASED){(0,r.default)(t.meta&&t.meta.trigger,"No trigger defined");var n=i.default.get(t.meta.trigger);(0,r.default)(n,"Trigger alias ".concat(t.meta.trigger," not found"));var s=t.payload||[];t=n.apply(void 0,function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(s))}return e(t)}}};t.default=o},function(e,t){e.exports=require("assert")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return i.default.set(e,t),function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return{type:a.ALIASED,payload:n,meta:{trigger:e}}}};var r,a=n(136),i=(r=n(137))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){global.getReduxState=function(){return JSON.stringify(e.getState())},r.ipcMain.on("redux-action",(function(t,n){e.dispatch(n)}))};var r=n(7)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){r.ipcRenderer.on("redux-action",(function(t,n){e.dispatch(n)}))};var r=n(7)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=r.remote.getGlobal("getReduxState");if(!e)throw new Error("Could not find reduxState global in main process, did you forget to call replayActionMain?");return JSON.parse(e())};var r=n(7)},function(e,t,n){var r=n(76);e.exports=function(e,t){var n=[];return r(e,(function(e,r,a){t(e,r,a)&&n.push(e)})),n}},function(e,t){e.exports=function(e){return function(t,n,r){for(var a=-1,i=Object(t),s=r(t),o=s.length;o--;){var l=s[e?o:++a];if(!1===n(i[l],l,i))break}return t}}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(28),a=n(21);e.exports=function(e){return a(e)&&"[object Arguments]"==r(e)}},function(e,t,n){var r=n(28),a=n(100),i=n(21),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&a(e.length)&&!!s[r(e)]}},function(e,t,n){var r=n(135)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(25);e.exports=function(e,t){return function(n,a){if(null==n)return n;if(!r(n))return e(n,a);for(var i=n.length,s=t?i:-1,o=Object(n);(t?s--:++s<i)&&!1!==a(o[s],s,o););return n}}},function(e,t,n){var r=n(263),a=n(300),i=n(152);e.exports=function(e){var t=a(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(80),a=n(105);e.exports=function(e,t,n,i){var s=n.length,o=s,l=!i;if(null==e)return!o;for(e=Object(e);s--;){var c=n[s];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++s<o;){var u=(c=n[s])[0],p=e[u],d=c[1];if(l&&c[2]){if(void 0===p&&!(u in e))return!1}else{var h=new r;if(i)var f=i(p,d,u,e,t,h);if(!(void 0===f?a(d,p,3,i,h):f))return!1}}return!0}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(82),a=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():a.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(82);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(82);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(82);e.exports=function(e,t){var n=this.__data__,a=r(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}},function(e,t,n){var r=n(81);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(81),a=n(103),i=n(104);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!a||s.length<199)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(s)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(102),a=n(275),i=n(16),s=n(144),o=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,p=c.hasOwnProperty,d=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||a(e))&&(r(e)?d:o).test(s(e))}},function(e,t,n){var r,a=n(276),i=(r=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},function(e,t,n){var r=n(20)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(279),a=n(81),i=n(103);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||a),string:new r}}},function(e,t,n){var r=n(280),a=n(281),i=n(282),s=n(283),o=n(284);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=a,l.prototype.get=i,l.prototype.has=s,l.prototype.set=o,e.exports=l},function(e,t,n){var r=n(83);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(83),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return a.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(83),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:a.call(t,e)}},function(e,t,n){var r=n(83);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,n){var r=n(84);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(84);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(84);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(84);e.exports=function(e,t){var n=r(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}},function(e,t,n){var r=n(80),a=n(145),i=n(294),s=n(296),o=n(59),l=n(9),c=n(55),u=n(79),p="[object Object]",d=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,h,f,m){var S=l(e),y=l(t),g=S?"[object Array]":o(e),v=y?"[object Array]":o(t),_=(g="[object Arguments]"==g?p:g)==p,b=(v="[object Arguments]"==v?p:v)==p,P=g==v;if(P&&c(e)){if(!c(t))return!1;S=!0,_=!1}if(P&&!_)return m||(m=new r),S||u(e)?a(e,t,n,h,f,m):i(e,t,g,n,h,f,m);if(!(1&n)){var w=_&&d.call(e,"__wrapped__"),E=b&&d.call(t,"__wrapped__");if(w||E){var k=w?e.value():e,T=E?t.value():t;return m||(m=new r),f(k,T,n,h,m)}}return!!P&&(m||(m=new r),s(e,t,n,h,f,m))}},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t,n){var r=n(40),a=n(146),i=n(41),s=n(145),o=n(295),l=n(108),c=r?r.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,p,d){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new a(e),new a(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=o;case"[object Set]":var f=1&r;if(h||(h=l),e.size!=t.size&&!f)return!1;var m=d.get(e);if(m)return m==t;r|=2,d.set(e,t);var S=s(h(e),h(t),r,c,p,d);return d.delete(e),S;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},function(e,t,n){var r=n(147),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,s,o){var l=1&n,c=r(e),u=c.length;if(u!=r(t).length&&!l)return!1;for(var p=u;p--;){var d=c[p];if(!(l?d in t:a.call(t,d)))return!1}var h=o.get(e),f=o.get(t);if(h&&f)return h==t&&f==e;var m=!0;o.set(e,t),o.set(t,e);for(var S=l;++p<u;){var y=e[d=c[p]],g=t[d];if(i)var v=l?i(g,y,d,t,e,o):i(y,g,d,e,t,o);if(!(void 0===v?y===g||s(y,g,n,i,o):v)){m=!1;break}S||(S="constructor"==d)}if(m&&!S){var _=e.constructor,b=t.constructor;_==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof b&&b instanceof b||(m=!1)}return o.delete(e),o.delete(t),m}},function(e,t,n){var r=n(33)(n(20),"DataView");e.exports=r},function(e,t,n){var r=n(33)(n(20),"Promise");e.exports=r},function(e,t,n){var r=n(33)(n(20),"WeakMap");e.exports=r},function(e,t,n){var r=n(151),a=n(32);e.exports=function(e){for(var t=a(e),n=t.length;n--;){var i=t[n],s=e[i];t[n]=[i,s,r(s)]}return t}},function(e,t,n){var r=n(105),a=n(123),i=n(153),s=n(111),o=n(151),l=n(152),c=n(45);e.exports=function(e,t){return s(e)&&o(t)?l(c(e),t):function(n){var s=a(n,e);return void 0===s&&s===t?i(n,e):r(t,s,3)}}},function(e,t,n){var r=n(303),a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,s=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(a,(function(e,n,r,a){t.push(r?a.replace(i,"$1"):n||e)})),t}));e.exports=s},function(e,t,n){var r=n(304);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},function(e,t,n){var r=n(104);function a(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var s=e.apply(this,r);return n.cache=i.set(a,s)||i,s};return n.cache=new(a.Cache||r),n}a.Cache=r,e.exports=a},function(e,t,n){var r=n(40),a=n(44),i=n(9),s=n(43),o=r?r.prototype:void 0,l=o?o.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return a(t,e)+"";if(s(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(308),a=n(309),i=n(111),s=n(45);e.exports=function(e){return i(e)?r(s(e)):a(e)}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(60);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){var r=n(311),a=n(155),i=n(312),s=n(61);e.exports=function(e){return function(t){t=s(t);var n=a(t)?i(t):void 0,o=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return o[e]()+l}}},function(e,t,n){var r=n(112);e.exports=function(e,t,n){var a=e.length;return n=void 0===n?a:n,!t&&n>=a?e:r(e,t,n)}},function(e,t,n){var r=n(313),a=n(155),i=n(314);e.exports=function(e){return a(e)?i(e):r(e)}},function(e,t){e.exports=function(e){return e.split("")}},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",a="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",o="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+a+")"+"?",c="[\\ufe0e\\ufe0f]?"+l+("(?:\\u200d(?:"+[i,s,o].join("|")+")[\\ufe0e\\ufe0f]?"+l+")*"),u="(?:"+[i+r+"?",r,s,o,n].join("|")+")",p=RegExp(a+"(?="+a+")|"+u+c,"g");e.exports=function(e){return e.match(p)||[]}},function(e,t,n){var r=n(157),a=n(316),i=n(317);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,a,n)}},function(e,t){e.exports=function(e){return e!=e}},function(e,t){e.exports=function(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}},function(e,t,n){var r=n(150),a=n(90),i=n(108),s=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:a;e.exports=s},function(e,t){var n;t=e.exports=$,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var r=Number.MAX_SAFE_INTEGER||9007199254740991,a=t.re=[],i=t.src=[],s=0,o=s++;i[o]="0|[1-9]\\d*";var l=s++;i[l]="[0-9]+";var c=s++;i[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var u=s++;i[u]="("+i[o]+")\\.("+i[o]+")\\.("+i[o]+")";var p=s++;i[p]="("+i[l]+")\\.("+i[l]+")\\.("+i[l]+")";var d=s++;i[d]="(?:"+i[o]+"|"+i[c]+")";var h=s++;i[h]="(?:"+i[l]+"|"+i[c]+")";var f=s++;i[f]="(?:-("+i[d]+"(?:\\."+i[d]+")*))";var m=s++;i[m]="(?:-?("+i[h]+"(?:\\."+i[h]+")*))";var S=s++;i[S]="[0-9A-Za-z-]+";var y=s++;i[y]="(?:\\+("+i[S]+"(?:\\."+i[S]+")*))";var g=s++,v="v?"+i[u]+i[f]+"?"+i[y]+"?";i[g]="^"+v+"$";var _="[v=\\s]*"+i[p]+i[m]+"?"+i[y]+"?",b=s++;i[b]="^"+_+"$";var P=s++;i[P]="((?:<|>)?=?)";var w=s++;i[w]=i[l]+"|x|X|\\*";var E=s++;i[E]=i[o]+"|x|X|\\*";var k=s++;i[k]="[v=\\s]*("+i[E]+")(?:\\.("+i[E]+")(?:\\.("+i[E]+")(?:"+i[f]+")?"+i[y]+"?)?)?";var T=s++;i[T]="[v=\\s]*("+i[w]+")(?:\\.("+i[w]+")(?:\\.("+i[w]+")(?:"+i[m]+")?"+i[y]+"?)?)?";var C=s++;i[C]="^"+i[P]+"\\s*"+i[k]+"$";var I=s++;i[I]="^"+i[P]+"\\s*"+i[T]+"$";var A=s++;i[A]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var O=s++;i[O]="(?:~>?)";var x=s++;i[x]="(\\s*)"+i[O]+"\\s+",a[x]=new RegExp(i[x],"g");var N=s++;i[N]="^"+i[O]+i[k]+"$";var R=s++;i[R]="^"+i[O]+i[T]+"$";var D=s++;i[D]="(?:\\^)";var H=s++;i[H]="(\\s*)"+i[D]+"\\s+",a[H]=new RegExp(i[H],"g");var F=s++;i[F]="^"+i[D]+i[k]+"$";var G=s++;i[G]="^"+i[D]+i[T]+"$";var U=s++;i[U]="^"+i[P]+"\\s*("+_+")$|^$";var L=s++;i[L]="^"+i[P]+"\\s*("+v+")$|^$";var j=s++;i[j]="(\\s*)"+i[P]+"\\s*("+_+"|"+i[k]+")",a[j]=new RegExp(i[j],"g");var M=s++;i[M]="^\\s*("+i[k]+")\\s+-\\s+("+i[k]+")\\s*$";var B=s++;i[B]="^\\s*("+i[T]+")\\s+-\\s+("+i[T]+")\\s*$";var K=s++;i[K]="(<|>)?=?\\s*\\*";for(var q=0;q<35;q++)n(q,i[q]),a[q]||(a[q]=new RegExp(i[q]));function V(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?a[b]:a[g]).test(e))return null;try{return new $(e,t)}catch(e){return null}}function $(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof $))return new $(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var i=e.trim().match(t.loose?a[b]:a[g]);if(!i)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<r)return t}return e})):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}t.parse=V,t.valid=function(e,t){var n=V(e,t);return n?n.version:null},t.clean=function(e,t){var n=V(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=$,$.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},$.prototype.toString=function(){return this.version},$.prototype.compare=function(e){return n("SemVer.compare",this.version,this.options,e),e instanceof $||(e=new $(e,this.options)),this.compareMain(e)||this.comparePre(e)},$.prototype.compareMain=function(e){return e instanceof $||(e=new $(e,this.options)),z(this.major,e.major)||z(this.minor,e.minor)||z(this.patch,e.patch)},$.prototype.comparePre=function(e){if(e instanceof $||(e=new $(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],a=e.prerelease[t];if(n("prerelease compare",t,r,a),void 0===r&&void 0===a)return 0;if(void 0===a)return 1;if(void 0===r)return-1;if(r!==a)return z(r,a)}while(++t)},$.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new $(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(Y(e,t))return null;var n=V(e),r=V(t),a="";if(n.prerelease.length||r.prerelease.length){a="pre";var i="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return a+s;return i},t.compareIdentifiers=z;var W=/^[0-9]+$/;function z(e,t){var n=W.test(e),r=W.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function J(e,t,n){return new $(e,n).compare(new $(t,n))}function X(e,t,n){return J(e,t,n)>0}function Q(e,t,n){return J(e,t,n)<0}function Y(e,t,n){return 0===J(e,t,n)}function Z(e,t,n){return 0!==J(e,t,n)}function ee(e,t,n){return J(e,t,n)>=0}function te(e,t,n){return J(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Y(e,n,r);case"!=":return Z(e,n,r);case">":return X(e,n,r);case">=":return ee(e,n,r);case"<":return Q(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ae?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return z(t,e)},t.major=function(e,t){return new $(e,t).major},t.minor=function(e,t){return new $(e,t).minor},t.patch=function(e,t){return new $(e,t).patch},t.compare=J,t.compareLoose=function(e,t){return J(e,t,!0)},t.rcompare=function(e,t,n){return J(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=X,t.lt=Q,t.eq=Y,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ae={};function ie(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof ie)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new ie(e.raw,t);if(e instanceof re)return new ie(e.value,t);if(!(this instanceof ie))return new ie(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function se(e){return!e||"x"===e.toLowerCase()||"*"===e}function oe(e,t,n,r,a,i,s,o,l,c,u,p,d){return((t=se(n)?"":se(r)?">="+n+".0.0":se(a)?">="+n+"."+r+".0":">="+t)+" "+(o=se(l)?"":se(c)?"<"+(+l+1)+".0.0":se(u)?"<"+l+"."+(+c+1)+".0":p?"<="+l+"."+c+"."+u+"-"+p:"<="+o)).trim()}function le(e,t,r){for(var a=0;a<e.length;a++)if(!e[a].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(a=0;a<e.length;a++)if(n(e[a].semver),e[a].semver!==ae&&e[a].semver.prerelease.length>0){var i=e[a].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new ie(t,n)}catch(e){return!1}return t.test(e)}function ue(e,t,n,r){var a,i,s,o,l;switch(e=new $(e,r),t=new ie(t,r),n){case">":a=X,i=te,s=Q,o=">",l=">=";break;case"<":a=Q,i=ee,s=X,o="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c<t.set.length;++c){var u=t.set[c],p=null,d=null;if(u.forEach((function(e){e.semver===ae&&(e=new re(">=0.0.0")),p=p||e,d=d||e,a(e.semver,p.semver,r)?p=e:s(e.semver,d.semver,r)&&(d=e)})),p.operator===o||p.operator===l)return!1;if((!d.operator||d.operator===o)&&i(e,d.semver))return!1;if(d.operator===l&&s(e,d.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?a[U]:a[L],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new $(n[2],this.options.loose):this.semver=ae},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ae||("string"==typeof e&&(e=new $(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new ie(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new ie(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),a=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),o=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||a||i&&s||o||l},t.Range=ie,ie.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},ie.prototype.toString=function(){return this.range},ie.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?a[B]:a[M];e=e.replace(r,oe),n("hyphen replace",e),e=e.replace(a[j],"$1$2$3"),n("comparator trim",e,a[j]),e=(e=(e=e.replace(a[x],"$1~")).replace(a[H],"$1^")).split(/\s+/).join(" ");var i=t?a[U]:a[L],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?a[G]:a[F];return e.replace(r,(function(t,r,a,i,s){var o;return n("caret",e,t,r,a,i,s),se(r)?o="":se(a)?o=">="+r+".0.0 <"+(+r+1)+".0.0":se(i)?o="0"===r?">="+r+"."+a+".0 <"+r+"."+(+a+1)+".0":">="+r+"."+a+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),o="0"===r?"0"===a?">="+r+"."+a+"."+i+"-"+s+" <"+r+"."+a+"."+(+i+1):">="+r+"."+a+"."+i+"-"+s+" <"+r+"."+(+a+1)+".0":">="+r+"."+a+"."+i+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),o="0"===r?"0"===a?">="+r+"."+a+"."+i+" <"+r+"."+a+"."+(+i+1):">="+r+"."+a+"."+i+" <"+r+"."+(+a+1)+".0":">="+r+"."+a+"."+i+" <"+(+r+1)+".0.0"),n("caret return",o),o}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?a[R]:a[N];return e.replace(r,(function(t,r,a,i,s){var o;return n("tilde",e,t,r,a,i,s),se(r)?o="":se(a)?o=">="+r+".0.0 <"+(+r+1)+".0.0":se(i)?o=">="+r+"."+a+".0 <"+r+"."+(+a+1)+".0":s?(n("replaceTilde pr",s),o=">="+r+"."+a+"."+i+"-"+s+" <"+r+"."+(+a+1)+".0"):o=">="+r+"."+a+"."+i+" <"+r+"."+(+a+1)+".0",n("tilde return",o),o}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?a[I]:a[C];return e.replace(r,(function(t,r,a,i,s,o){n("xRange",e,t,r,a,i,s,o);var l=se(a),c=l||se(i),u=c||se(s);return"="===r&&u&&(r=""),l?t=">"===r||"<"===r?"<0.0.0":"*":r&&u?(c&&(i=0),s=0,">"===r?(r=">=",c?(a=+a+1,i=0,s=0):(i=+i+1,s=0)):"<="===r&&(r="<",c?a=+a+1:i=+i+1),t=r+a+"."+i+"."+s):c?t=">="+a+".0.0 <"+(+a+1)+".0.0":u&&(t=">="+a+"."+i+".0 <"+a+"."+(+i+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(a[K],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(i)}))),s=s.map((function(e){return new re(e,this.options)}),this)},ie.prototype.intersects=function(e,t){if(!(e instanceof ie))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new ie(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},ie.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new $(e,this.options));for(var t=0;t<this.set.length;t++)if(le(this.set[t],e,this.options))return!0;return!1},t.satisfies=ce,t.maxSatisfying=function(e,t,n){var r=null,a=null;try{var i=new ie(t,n)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(r&&-1!==a.compare(e)||(a=new $(r=e,n)))})),r},t.minSatisfying=function(e,t,n){var r=null,a=null;try{var i=new ie(t,n)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(r&&1!==a.compare(e)||(a=new $(r=e,n)))})),r},t.minVersion=function(e,t){e=new ie(e,t);var n=new $("0.0.0");if(e.test(n))return n;if(n=new $("0.0.0-0"),e.test(n))return n;n=null;for(var r=0;r<e.set.length;++r){e.set[r].forEach((function(e){var t=new $(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!X(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new ie(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return ue(e,t,"<",n)},t.gtr=function(e,t,n){return ue(e,t,">",n)},t.outside=ue,t.prerelease=function(e,t){var n=V(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new ie(e,n),t=new ie(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof $)return e;if("string"!=typeof e)return null;var t=e.match(a[A]);if(null==t)return null;return V(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},function(e,t,n){"use strict";const r=1===parseInt(process.env.ELECTRON_IS_DEV,10),a="ELECTRON_IS_DEV"in process.env;e.exports=a?r:process.defaultApp||/node_modules[\\/]electron[\\/]/.test(process.execPath)},function(e,t,n){var r=n(40),a=n(54),i=n(9),s=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||a(e)||!!(s&&e&&e[s])}},function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},function(e,t,n){var r=n(324),a=n(159),i=n(17),s=a?function(e,t){return a(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=s},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t){var n=Date.now;e.exports=function(e){var t=0,r=0;return function(){var a=n(),i=16-(a-r);if(r=a,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(29),a=n(32);e.exports=function(e,t){return e&&r(t,a(t),e)}},function(e,t,n){var r=n(29),a=n(49);e.exports=function(e,t){return e&&r(t,a(t),e)}},function(e,t,n){var r=n(16),a=n(58),i=n(329),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=a(e),n=[];for(var o in e)("constructor"!=o||!t&&s.call(e,o))&&n.push(o);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){var r=n(29),a=n(110);e.exports=function(e,t){return r(e,a(e),t)}},function(e,t,n){var r=n(29),a=n(165);e.exports=function(e,t){return r(e,a(e),t)}},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},function(e,t,n){var r=n(115),a=n(334),i=n(335),s=n(336),o=n(166);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return a(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return o(e,n);case"[object Map]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return i(e);case"[object Set]":return new l;case"[object Symbol]":return s(e)}}},function(e,t,n){var r=n(115);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},function(e,t){var n=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}},function(e,t,n){var r=n(40),a=r?r.prototype:void 0,i=a?a.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},function(e,t,n){var r=n(16),a=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(a)return a(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},function(e,t,n){var r=n(339),a=n(57),i=n(101),s=i&&i.isMap,o=s?a(s):r;e.exports=o},function(e,t,n){var r=n(59),a=n(21);e.exports=function(e){return a(e)&&"[object Map]"==r(e)}},function(e,t,n){var r=n(341),a=n(57),i=n(101),s=i&&i.isSet,o=s?a(s):r;e.exports=o},function(e,t,n){var r=n(59),a=n(21);e.exports=function(e){return a(e)&&"[object Set]"==r(e)}},function(e,t,n){var r=n(60),a=n(112);e.exports=function(e,t){return t.length<2?e:r(e,a(t,0,-1))}},function(e,t,n){var r=n(65);e.exports=function(e){return r(e)?void 0:e}},function(e,t,n){var r=n(16),a=n(345),i=n(170),s=Math.max,o=Math.min;e.exports=function(e,t,n){var l,c,u,p,d,h,f=0,m=!1,S=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var n=l,r=c;return l=c=void 0,f=t,p=e.apply(r,n)}function v(e){return f=e,d=setTimeout(b,t),m?g(e):p}function _(e){var n=e-h;return void 0===h||n>=t||n<0||S&&e-f>=u}function b(){var e=a();if(_(e))return P(e);d=setTimeout(b,function(e){var n=t-(e-h);return S?o(n,u-(e-f)):n}(e))}function P(e){return d=void 0,y&&l?g(e):(l=c=void 0,p)}function w(){var e=a(),n=_(e);if(l=arguments,c=this,h=e,n){if(void 0===d)return v(h);if(S)return clearTimeout(d),d=setTimeout(b,t),g(h)}return void 0===d&&(d=setTimeout(b,t)),p}return t=i(t)||0,r(n)&&(m=!!n.leading,u=(S="maxWait"in n)?s(i(n.maxWait)||0,t):u,y="trailing"in n?!!n.trailing:y),w.cancel=function(){void 0!==d&&clearTimeout(d),f=0,l=h=c=d=void 0},w.flush=function(){return void 0===d?p:P(a())},w}},function(e,t,n){var r=n(20);e.exports=function(){return r.Date.now()}},function(e,t,n){var r=n(347),a=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(a,""):e}},function(e,t){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},function(e,t,n){var r=n(80),a=n(171),i=n(141),s=n(349),o=n(16),l=n(49),c=n(172);e.exports=function e(t,n,u,p,d){t!==n&&i(n,(function(i,l){if(d||(d=new r),o(i))s(t,n,l,u,e,p,d);else{var h=p?p(c(t,l),i,l+"",t,n,d):void 0;void 0===h&&(h=i),a(t,l,h)}}),l)}},function(e,t,n){var r=n(171),a=n(163),i=n(166),s=n(164),o=n(167),l=n(54),c=n(9),u=n(48),p=n(55),d=n(102),h=n(16),f=n(65),m=n(79),S=n(172),y=n(350);e.exports=function(e,t,n,g,v,_,b){var P=S(e,n),w=S(t,n),E=b.get(w);if(E)r(e,n,E);else{var k=_?_(P,w,n+"",e,t,b):void 0,T=void 0===k;if(T){var C=c(w),I=!C&&p(w),A=!C&&!I&&m(w);k=w,C||I||A?c(P)?k=P:u(P)?k=s(P):I?(T=!1,k=a(w,!0)):A?(T=!1,k=i(w,!0)):k=[]:f(w)||l(w)?(k=P,l(P)?k=y(P):h(P)&&!d(P)||(k=o(w))):T=!1}T&&(b.set(w,k),v(k,w,g,_,b),b.delete(w)),r(e,n,k)}}},function(e,t,n){var r=n(29),a=n(49);e.exports=function(e){return r(e,a(e))}},function(e,t){e.exports=function(e,t,n,r){for(var a=-1,i=null==e?0:e.length;++a<i;){var s=e[a];t(r,s,n(s),e)}return r}},function(e,t,n){var r=n(76);e.exports=function(e,t,n,a){return r(e,(function(e,r,i){t(a,e,n(e),i)})),a}},function(e,t,n){var r=n(175),a=n(153);e.exports=function(e,t){return r(e,t,(function(t,n){return a(e,n)}))}},function(e,t){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},function(e,t,n){var r=n(356);e.exports=function(e,t,n){for(var a=-1,i=e.criteria,s=t.criteria,o=i.length,l=n.length;++a<o;){var c=r(i[a],s[a]);if(c)return a>=l?c:c*("desc"==n[a]?-1:1)}return e.index-t.index}},function(e,t,n){var r=n(43);e.exports=function(e,t){if(e!==t){var n=void 0!==e,a=null===e,i=e==e,s=r(e),o=void 0!==t,l=null===t,c=t==t,u=r(t);if(!l&&!u&&!s&&e>t||s&&o&&c&&!l&&!u||a&&o&&c||!n&&c||!i)return 1;if(!a&&!s&&!u&&e<t||u&&n&&i&&!a&&!s||l&&n&&i||!o&&i||!c)return-1}return 0}},function(e,t,n){var r=n(41);e.exports=function(e,t){for(var n=-1,a=e.length,i=0,s=[];++n<a;){var o=e[n],l=t?t(o):o;if(!n||!r(l,c)){var c=l;s[i++]=0===o?0:o}}return s}},function(e,t,n){var r=n(162),a=n(76),i=n(173),s=n(9);e.exports=function(e,t){return(s(e)?r:a)(e,i(t))}},function(e,t,n){var r=n(12),a=n(25),i=n(32);e.exports=function(e){return function(t,n,s){var o=Object(t);if(!a(t)){var l=r(n,3);t=i(t),n=function(e){return l(o[e],e,o)}}var c=e(t,n,s);return c>-1?o[l?t[c]:c]:void 0}}},function(e,t,n){var r=n(157),a=n(12),i=n(118),s=Math.max;e.exports=function(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var l=null==n?0:i(n);return l<0&&(l=s(o+l,0)),r(e,a(t,3),l)}},function(e,t,n){var r=n(29),a=n(116),i=n(49),s=a((function(e,t){r(t,i(t),e)}));e.exports=s},function(e,t,n){var r=n(363),a=n(364),i=n(367),s=RegExp("['’]","g");e.exports=function(e){return function(t){return r(i(a(t).replace(s,"")),e,"")}}},function(e,t){e.exports=function(e,t,n,r){var a=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++a]);++a<i;)n=t(n,e[a],a,e);return n}},function(e,t,n){var r=n(365),a=n(61),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,s=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=a(e))&&e.replace(i,r).replace(s,"")}},function(e,t,n){var r=n(366)({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"});e.exports=r},function(e,t){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},function(e,t,n){var r=n(368),a=n(369),i=n(61),s=n(370);e.exports=function(e,t,n){return e=i(e),void 0===(t=n?void 0:t)?a(e)?s(e):r(e):e.match(t)||[]}},function(e,t){var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(n)||[]}},function(e,t){var n=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return n.test(e)}},function(e,t){var n="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",r="["+n+"]",a="\\d+",i="[\\u2700-\\u27bf]",s="[a-z\\xdf-\\xf6\\xf8-\\xff]",o="[^\\ud800-\\udfff"+n+a+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",u="[A-Z\\xc0-\\xd6\\xd8-\\xde]",p="(?:"+s+"|"+o+")",d="(?:"+u+"|"+o+")",h="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",f="[\\ufe0e\\ufe0f]?"+h+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",l,c].join("|")+")[\\ufe0e\\ufe0f]?"+h+")*"),m="(?:"+[i,l,c].join("|")+")"+f,S=RegExp([u+"?"+s+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[r,u,"$"].join("|")+")",d+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[r,u+p,"$"].join("|")+")",u+"?"+p+"+(?:['’](?:d|ll|m|re|s|t|ve))?",u+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",a,m].join("|"),"g");e.exports=function(e){return e.match(S)||[]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.url=void 0;const r=n(181),a=n(88)("socket.io-client:url");t.url=function(e,t="",n){let i=e;n=n||"undefined"!=typeof location&&location,null==e&&(e=n.protocol+"//"+n.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(a("protocol-less url %s",e),e=void 0!==n?n.protocol+"//"+e:"https://"+e),a("parse %s",e),i=r(e)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";const s=-1!==i.host.indexOf(":")?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+s+":"+i.port+t,i.href=i.protocol+"://"+s+(n&&n.port===i.port?"":":"+i.port),i}},function(e,t,n){e.exports=function(e){function t(e){let n,a=null;function i(...e){if(!i.enabled)return;const r=i,a=Number(new Date),s=a-(n||a);r.diff=s,r.prev=n,r.curr=a,n=a,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,a)=>{if("%%"===n)return"%";o++;const i=t.formatters[a];if("function"==typeof i){const t=e[o];n=i.call(r,t),e.splice(o,1),o--}return n}),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return i.namespace=e,i.useColors=t.useColors(),i.color=t.selectColor(e),i.extend=r,i.destroy=t.destroy,Object.defineProperty(i,"enabled",{enumerable:!0,configurable:!1,get:()=>null===a?t.enabled(e):a,set:e=>{a=e}}),"function"==typeof t.init&&t.init(i),i}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function a(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(a),...t.skips.map(a).map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),a=r.length;for(n=0;n<a;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(373),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},function(e,t){var n=1e3,r=6e4,a=60*r,i=24*a;function s(e,t,n,r){var a=t>=1.5*n;return Math.round(e/n)+" "+r+(a?"s":"")}e.exports=function(e,t){t=t||{};var o=typeof e;if("string"===o&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var s=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return 6048e5*s;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*a;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===o&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=i)return s(e,t,i,"day");if(t>=a)return s(e,t,a,"hour");if(t>=r)return s(e,t,r,"minute");if(t>=n)return s(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=i)return Math.round(e/i)+"d";if(t>=a)return Math.round(e/a)+"h";if(t>=r)return Math.round(e/r)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){const r=n(375);e.exports=(e,t)=>new r(e,t),e.exports.Socket=r,e.exports.protocol=r.protocol,e.exports.Transport=n(119),e.exports.transports=n(183),e.exports.parser=n(62)},function(e,t,n){const r=n(183),a=n(63),i=n(64)("engine.io-client:socket"),s=n(62),o=n(181),l=n(120);class c extends a{constructor(e,t={}){super(),e&&"object"==typeof e&&(t=e,e=null),e?(e=o(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=o(t.host).host),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?443:80),this.transports=t.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,jsonp:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{}},t),this.opts.path=this.opts.path.replace(/\/$/,"")+"/","string"==typeof this.opts.query&&(this.opts.query=l.decode(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,"function"==typeof addEventListener&&(addEventListener("beforeunload",()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},!1),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close")},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){i('creating transport "%s"',e);const t=function(e){const t={};for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}(this.opts.query);t.EIO=s.protocol,t.transport=e,this.id&&(t.sid=this.id);const n=Object.assign({},this.opts.transportOptions[e],this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return i("options: %j",n),new r[e](n)}open(){let e;if(this.opts.rememberUpgrade&&c.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length){const e=this;return void setTimeout((function(){e.emit("error","No transports available")}),0)}e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return i("error while creating transport: %s",e),this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}setTransport(e){i("setting transport %s",e.name);const t=this;this.transport&&(i("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",(function(){t.onDrain()})).on("packet",(function(e){t.onPacket(e)})).on("error",(function(e){t.onError(e)})).on("close",(function(){t.onClose("transport close")}))}probe(e){i('probing transport "%s"',e);let t=this.createTransport(e,{probe:1}),n=!1;const r=this;function a(){if(r.onlyBinaryUpgrades){const e=!this.supportsBinary&&r.transport.supportsBinary;n=n||e}n||(i('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(function(a){if(!n)if("pong"===a.type&&"probe"===a.data){if(i('probe transport "%s" pong',e),r.upgrading=!0,r.emit("upgrading",t),!t)return;c.priorWebsocketSuccess="websocket"===t.name,i('pausing current transport "%s"',r.transport.name),r.transport.pause((function(){n||"closed"!==r.readyState&&(i("changing transport and sending upgrade packet"),d(),r.setTransport(t),t.send([{type:"upgrade"}]),r.emit("upgrade",t),t=null,r.upgrading=!1,r.flush())}))}else{i('probe transport "%s" failed',e);const n=new Error("probe error");n.transport=t.name,r.emit("upgradeError",n)}})))}function s(){n||(n=!0,d(),t.close(),t=null)}function o(n){const a=new Error("probe error: "+n);a.transport=t.name,s(),i('probe transport "%s" failed because of error: %s',e,n),r.emit("upgradeError",a)}function l(){o("transport closed")}function u(){o("socket closed")}function p(e){t&&e.name!==t.name&&(i('"%s" works - aborting "%s"',e.name,t.name),s())}function d(){t.removeListener("open",a),t.removeListener("error",o),t.removeListener("close",l),r.removeListener("close",u),r.removeListener("upgrading",p)}c.priorWebsocketSuccess=!1,t.once("open",a),t.once("error",o),t.once("close",l),this.once("close",u),this.once("upgrading",p),t.open()}onOpen(){if(i("socket open"),this.readyState="open",c.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade&&this.transport.pause){i("starting upgrade probes");let e=0;const t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(i('socket receive: type "%s", data "%s"',e.type,e.data),this.emit("packet",e),this.emit("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emit("pong");break;case"error":const t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emit("data",e.data),this.emit("message",e.data)}else i('packet received with socket readyState "%s"',this.readyState)}onHandshake(e){this.emit("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.onOpen(),"closed"!==this.readyState&&this.resetPingTimeout()}resetPingTimeout(){clearTimeout(this.pingTimeoutTimer),this.pingTimeoutTimer=setTimeout(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()}flush(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(i("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))}write(e,t,n){return this.sendPacket("message",e,t,n),this}send(e,t,n){return this.sendPacket("message",e,t,n),this}sendPacket(e,t,n,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"===this.readyState||"closed"===this.readyState)return;(n=n||{}).compress=!1!==n.compress;const a={type:e,data:t,options:n};this.emit("packetCreate",a),this.writeBuffer.push(a),r&&this.once("flush",r),this.flush()}close(){const e=this;function t(){e.onClose("forced close"),i("socket closing - telling transport to close"),e.transport.close()}function n(){e.removeListener("upgrade",n),e.removeListener("upgradeError",n),t()}function r(){e.once("upgrade",n),e.once("upgradeError",n)}return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(function(){this.upgrading?r():t()})):this.upgrading?r():t()),this}onError(e){i("socket error %j",e),c.priorWebsocketSuccess=!1,this.emit("error",e),this.onClose("transport error",e)}onClose(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){i('socket close with reason: "%s"',e);const n=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&removeEventListener("offline",this.offlineEventListener,!1),this.readyState="closed",this.id=null,this.emit("close",e,t),n.writeBuffer=[],n.prevBufferLen=0}}filterUpgrades(e){const t=[];let n=0;const r=e.length;for(;n<r;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}c.priorWebsocketSuccess=!1,c.protocol=s.protocol,e.exports=c},function(e,t){try{e.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(t){e.exports=!1}},function(e,t,n){const r=n(184),a=n(185),i=n(63),{pick:s}=n(188),o=n(89),l=n(64)("engine.io-client:polling-xhr");function c(){}const u=null!=new r({xdomain:!1}).responseType;class p extends i{constructor(e,t){super(),this.opts=t,this.method=t.method||"GET",this.uri=e,this.async=!1!==t.async,this.data=void 0!==t.data?t.data:null,this.create()}create(){const e=s(this.opts,"agent","enablesXDR","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this.opts.xd,e.xscheme=!!this.opts.xs;const t=this.xhr=new r(e),n=this;try{l("xhr open %s: %s",this.method,this.uri),t.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){t.setDisableHeaderCheck&&t.setDisableHeaderCheck(!0);for(let e in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(e)&&t.setRequestHeader(e,this.opts.extraHeaders[e])}}catch(e){}if("POST"===this.method)try{t.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{t.setRequestHeader("Accept","*/*")}catch(e){}"withCredentials"in t&&(t.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(t.timeout=this.opts.requestTimeout),this.hasXDR()?(t.onload=function(){n.onLoad()},t.onerror=function(){n.onError(t.responseText)}):t.onreadystatechange=function(){4===t.readyState&&(200===t.status||1223===t.status?n.onLoad():setTimeout((function(){n.onError("number"==typeof t.status?t.status:0)}),0))},l("xhr data %s",this.data),t.send(this.data)}catch(e){return void setTimeout((function(){n.onError(e)}),0)}"undefined"!=typeof document&&(this.index=p.requestsCount++,p.requests[this.index]=this)}onSuccess(){this.emit("success"),this.cleanup()}onData(e){this.emit("data",e),this.onSuccess()}onError(e){this.emit("error",e),this.cleanup(!0)}cleanup(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=c:this.xhr.onreadystatechange=c,e)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete p.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;null!==e&&this.onData(e)}hasXDR(){return"undefined"!=typeof XDomainRequest&&!this.xs&&this.enablesXDR}abort(){this.cleanup()}}if(p.requestsCount=0,p.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",d);else if("function"==typeof addEventListener){addEventListener("onpagehide"in o?"pagehide":"unload",d,!1)}function d(){for(let e in p.requests)p.requests.hasOwnProperty(e)&&p.requests[e].abort()}e.exports=class extends a{constructor(e){if(super(e),"undefined"!=typeof location){const t="https:"===location.protocol;let n=location.port;n||(n=t?443:80),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||n!==e.port,this.xs=e.secure!==t}const t=e&&e.forceBase64;this.supportsBinary=u&&!t}request(e={}){return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new p(this.uri(),e)}doWrite(e,t){const n=this.request({method:"POST",data:e}),r=this;n.on("success",t),n.on("error",(function(e){r.onError("xhr post error",e)}))}doPoll(){l("xhr poll");const e=this.request(),t=this;e.on("data",(function(e){t.onData(e)})),e.on("error",(function(e){t.onError("xhr poll error",e)})),this.pollXhr=e}},e.exports.Request=p},function(e,t,n){const{PACKET_TYPES:r}=n(186),a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),i="function"==typeof ArrayBuffer,s=(e,t)=>{const n=new FileReader;return n.onload=function(){const e=n.result.split(",")[1];t("b"+e)},n.readAsDataURL(e)};e.exports=({type:e,data:t},n,o)=>{return a&&t instanceof Blob?n?o(t):s(t,o):i&&(t instanceof ArrayBuffer||(l=t,"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(l):l&&l.buffer instanceof ArrayBuffer))?n?o(t instanceof ArrayBuffer?t:t.buffer):s(new Blob([t]),o):o(r[e]+(t||""));var l}},function(e,t,n){const{PACKET_TYPES_REVERSE:r,ERROR_PACKET:a}=n(186);let i;"function"==typeof ArrayBuffer&&(i=n(380));const s=(e,t)=>{if(i){const n=i.decode(e);return o(n,t)}return{base64:!0,data:e}},o=(e,t)=>{switch(t){case"blob":return e instanceof ArrayBuffer?new Blob([e]):e;case"arraybuffer":default:return e}};e.exports=(e,t)=>{if("string"!=typeof e)return{type:"message",data:o(e,t)};const n=e.charAt(0);if("b"===n)return{type:"message",data:s(e.substring(1),t)};return r[n]?e.length>1?{type:r[n],data:e.substring(1)}:{type:r[n]}:a}},function(e,t){!function(e){"use strict";t.encode=function(t){var n,r=new Uint8Array(t),a=r.length,i="";for(n=0;n<a;n+=3)i+=e[r[n]>>2],i+=e[(3&r[n])<<4|r[n+1]>>4],i+=e[(15&r[n+1])<<2|r[n+2]>>6],i+=e[63&r[n+2]];return a%3==2?i=i.substring(0,i.length-1)+"=":a%3==1&&(i=i.substring(0,i.length-2)+"=="),i},t.decode=function(t){var n,r,a,i,s,o=.75*t.length,l=t.length,c=0;"="===t[t.length-1]&&(o--,"="===t[t.length-2]&&o--);var u=new ArrayBuffer(o),p=new Uint8Array(u);for(n=0;n<l;n+=4)r=e.indexOf(t[n]),a=e.indexOf(t[n+1]),i=e.indexOf(t[n+2]),s=e.indexOf(t[n+3]),p[c++]=r<<2|a>>4,p[c++]=(15&a)<<4|i>>2,p[c++]=(3&i)<<6|63&s;return u}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")},function(e,t,n){e.exports=function(e){function t(e){let n,a=null;function i(...e){if(!i.enabled)return;const r=i,a=Number(new Date),s=a-(n||a);r.diff=s,r.prev=n,r.curr=a,n=a,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,a)=>{if("%%"===n)return"%";o++;const i=t.formatters[a];if("function"==typeof i){const t=e[o];n=i.call(r,t),e.splice(o,1),o--}return n}),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return i.namespace=e,i.useColors=t.useColors(),i.color=t.selectColor(e),i.extend=r,i.destroy=t.destroy,Object.defineProperty(i,"enabled",{enumerable:!0,configurable:!1,get:()=>null===a?t.enabled(e):a,set:e=>{a=e}}),"function"==typeof t.init&&t.init(i),i}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function a(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(a),...t.skips.map(a).map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),a=r.length;for(n=0;n<a;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(382),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},function(e,t){var n=1e3,r=6e4,a=60*r,i=24*a;function s(e,t,n,r){var a=t>=1.5*n;return Math.round(e/n)+" "+r+(a?"s":"")}e.exports=function(e,t){t=t||{};var o=typeof e;if("string"===o&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var s=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return 6048e5*s;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*a;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===o&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=i)return s(e,t,i,"day");if(t>=a)return s(e,t,a,"hour");if(t>=r)return s(e,t,r,"minute");if(t>=n)return s(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=i)return Math.round(e/i)+"d";if(t>=a)return Math.round(e/a)+"h";if(t>=r)return Math.round(e/r)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){const r=n(185),a=n(89),i=/\n/g,s=/\\n/g;let o;e.exports=class extends r{constructor(e){super(e),this.query=this.query||{},o||(o=a.___eio=a.___eio||[]),this.index=o.length;const t=this;o.push((function(e){t.onData(e)})),this.query.j=this.index}get supportsBinary(){return!1}doClose(){this.script&&(this.script.onerror=()=>{},this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),super.doClose()}doPoll(){const e=this,t=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),t.async=!0,t.src=this.uri(),t.onerror=function(t){e.onError("jsonp poll error",t)};const n=document.getElementsByTagName("script")[0];n?n.parentNode.insertBefore(t,n):(document.head||document.body).appendChild(t),this.script=t;"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout((function(){const e=document.createElement("iframe");document.body.appendChild(e),document.body.removeChild(e)}),100)}doWrite(e,t){const n=this;let r;if(!this.form){const e=document.createElement("form"),t=document.createElement("textarea"),n=this.iframeId="eio_iframe_"+this.index;e.className="socketio",e.style.position="absolute",e.style.top="-1000px",e.style.left="-1000px",e.target=n,e.method="POST",e.setAttribute("accept-charset","utf-8"),t.name="d",e.appendChild(t),document.body.appendChild(e),this.form=e,this.area=t}function a(){o(),t()}function o(){if(n.iframe)try{n.form.removeChild(n.iframe)}catch(e){n.onError("jsonp polling iframe removal error",e)}try{const e='<iframe src="javascript:0" name="'+n.iframeId+'">';r=document.createElement(e)}catch(e){r=document.createElement("iframe"),r.name=n.iframeId,r.src="javascript:0"}r.id=n.iframeId,n.form.appendChild(r),n.iframe=r}this.form.action=this.uri(),o(),e=e.replace(s,"\\\n"),this.area.value=e.replace(i,"\\n");try{this.form.submit()}catch(e){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===n.iframe.readyState&&a()}:this.iframe.onload=a}}},function(e,t,n){const r=n(119),a=n(62),i=n(120),s=n(187),{pick:o}=n(188),{WebSocket:l,usingBrowserWebSocket:c,defaultBinaryType:u}=n(385),p=n(64)("engine.io-client:websocket"),d="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class h extends r{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,n=d?{}:o(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=c&&!d?t?new l(e,t):new l(e):new l(e,t,n)}catch(e){return this.emit("error",e)}this.ws.binaryType=this.socket.binaryType||u,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=this.onClose.bind(this),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){const t=this;this.writable=!1;let n=e.length,r=0;const i=n;for(;r<i;r++)!function(e){a.encodePacket(e,t.supportsBinary,(function(r){const a={};if(!c&&(e.options&&(a.compress=e.options.compress),t.opts.perMessageDeflate)){("string"==typeof r?Buffer.byteLength(r):r.length)<t.opts.perMessageDeflate.threshold&&(a.compress=!1)}try{c?t.ws.send(r):t.ws.send(r,a)}catch(e){p("websocket closed before onclose event")}--n||s()}))}(e[r]);function s(){t.emit("flush"),setTimeout((function(){t.writable=!0,t.emit("drain")}),0)}}onClose(){r.prototype.onClose.call(this)}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){let e=this.query||{};const t=this.opts.secure?"wss":"ws";let n="";this.opts.port&&("wss"===t&&443!==Number(this.opts.port)||"ws"===t&&80!==Number(this.opts.port))&&(n=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=s()),this.supportsBinary||(e.b64=1),e=i.encode(e),e.length&&(e="?"+e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+n+this.opts.path+e}check(){return!(!l||"__initialize"in l&&this.name===h.prototype.name)}}e.exports=h},function(e,t,n){const r=n(89);e.exports={WebSocket:r.WebSocket||r.MozWebSocket,usingBrowserWebSocket:!0,defaultBinaryType:"arraybuffer"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reconstructPacket=t.deconstructPacket=void 0;const r=n(190);t.deconstructPacket=function(e){const t=[],n=e.data,a=e;return a.data=function e(t,n){if(!t)return t;if(r.isBinary(t)){const e={_placeholder:!0,num:n.length};return n.push(t),e}if(Array.isArray(t)){const r=new Array(t.length);for(let a=0;a<t.length;a++)r[a]=e(t[a],n);return r}if("object"==typeof t&&!(t instanceof Date)){const r={};for(const a in t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r}return t}(n,t),a.attachments=t.length,{packet:a,buffers:t}},t.reconstructPacket=function(e,t){return e.data=function e(t,n){if(!t)return t;if(t&&!0===t._placeholder){if("number"==typeof t.num&&t.num>=0&&t.num<n.length)return n[t.num];throw new Error("illegal attachments")}if(Array.isArray(t))for(let r=0;r<t.length;r++)t[r]=e(t[r],n);else if("object"==typeof t)for(const r in t)t.hasOwnProperty(r)&&(t[r]=e(t[r],n));return t}(e.data,t),e.attachments=void 0,e}},function(e,t,n){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,a=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(a=r))}),t.splice(a,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(388)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},function(e,t,n){e.exports=function(e){function t(e){let n,a=null;function i(...e){if(!i.enabled)return;const r=i,a=Number(new Date),s=a-(n||a);r.diff=s,r.prev=n,r.curr=a,n=a,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,a)=>{if("%%"===n)return"%";o++;const i=t.formatters[a];if("function"==typeof i){const t=e[o];n=i.call(r,t),e.splice(o,1),o--}return n}),t.formatArgs.call(r,e);(r.log||t.log).apply(r,e)}return i.namespace=e,i.useColors=t.useColors(),i.color=t.selectColor(e),i.extend=r,i.destroy=t.destroy,Object.defineProperty(i,"enabled",{enumerable:!0,configurable:!1,get:()=>null===a?t.enabled(e):a,set:e=>{a=e}}),"function"==typeof t.init&&t.init(i),i}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function a(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(a),...t.skips.map(a).map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),a=r.length;for(n=0;n<a;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(389),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},function(e,t){var n=1e3,r=6e4,a=60*r,i=24*a;function s(e,t,n,r){var a=t>=1.5*n;return Math.round(e/n)+" "+r+(a?"s":"")}e.exports=function(e,t){t=t||{};var o=typeof e;if("string"===o&&e.length>0)return function(e){if((e=String(e)).length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var s=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return 6048e5*s;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*a;case"minutes":case"minute":case"mins":case"min":case"m":return s*r;case"seconds":case"second":case"secs":case"sec":case"s":return s*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===o&&isFinite(e))return t.long?function(e){var t=Math.abs(e);if(t>=i)return s(e,t,i,"day");if(t>=a)return s(e,t,a,"hour");if(t>=r)return s(e,t,r,"minute");if(t>=n)return s(e,t,n,"second");return e+" ms"}(e):function(e){var t=Math.abs(e);if(t>=i)return Math.round(e/i)+"d";if(t>=a)return Math.round(e/a)+"h";if(t>=r)return Math.round(e/r)+"m";if(t>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t){function n(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}e.exports=n,n.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(e){this.ms=e},n.prototype.setMax=function(e){this.max=e},n.prototype.setJitter=function(e){this.jitter=e}},function(e,t){function n(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id=391},function(e,t,n){var r=n(393),a=n(117),i=n(180);e.exports=function(e){return function(t,n,s){return s&&"number"!=typeof s&&a(t,n,s)&&(n=s=void 0),t=i(t),void 0===n?(n=t,t=0):n=i(n),s=void 0===s?t<n?1:-1:i(s),r(t,n,s,e)}}},function(e,t){var n=Math.ceil,r=Math.max;e.exports=function(e,t,a,i){for(var s=-1,o=r(n((t-e)/(a||1)),0),l=Array(o);o--;)l[i?o:++s]=e,e+=a;return l}},function(e,t,n){"use strict";
/** @license React v16.14.0
 * react.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 r=n(193),a="function"==typeof Symbol&&Symbol.for,i=a?Symbol.for("react.element"):60103,s=a?Symbol.for("react.portal"):60106,o=a?Symbol.for("react.fragment"):60107,l=a?Symbol.for("react.strict_mode"):60108,c=a?Symbol.for("react.profiler"):60114,u=a?Symbol.for("react.provider"):60109,p=a?Symbol.for("react.context"):60110,d=a?Symbol.for("react.forward_ref"):60112,h=a?Symbol.for("react.suspense"):60113,f=a?Symbol.for("react.memo"):60115,m=a?Symbol.for("react.lazy"):60116,S="function"==typeof Symbol&&Symbol.iterator;function y(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v={};function _(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}function b(){}function P(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(y(85));this.updater.enqueueSetState(this,e,t,"setState")},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=_.prototype;var w=P.prototype=new b;w.constructor=P,r(w,_.prototype),w.isPureReactComponent=!0;var E={current:null},k=Object.prototype.hasOwnProperty,T={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,n){var r,a={},s=null,o=null;if(null!=t)for(r in void 0!==t.ref&&(o=t.ref),void 0!==t.key&&(s=""+t.key),t)k.call(t,r)&&!T.hasOwnProperty(r)&&(a[r]=t[r]);var l=arguments.length-2;if(1===l)a.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===a[r]&&(a[r]=l[r]);return{$$typeof:i,type:e,key:s,ref:o,props:a,_owner:E.current}}function I(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var A=/\/+/g,O=[];function x(e,t,n,r){if(O.length){var a=O.pop();return a.result=e,a.keyPrefix=t,a.func=n,a.context=r,a.count=0,a}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function N(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>O.length&&O.push(e)}function R(e,t,n){return null==e?0:function e(t,n,r,a){var o=typeof t;"undefined"!==o&&"boolean"!==o||(t=null);var l=!1;if(null===t)l=!0;else switch(o){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case i:case s:l=!0}}if(l)return r(a,t,""===n?"."+D(t,0):n),1;if(l=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c<t.length;c++){var u=n+D(o=t[c],c);l+=e(o,u,r,a)}else if(null===t||"object"!=typeof t?u=null:u="function"==typeof(u=S&&t[S]||t["@@iterator"])?u:null,"function"==typeof u)for(t=u.call(t),c=0;!(o=t.next()).done;)l+=e(o=o.value,u=n+D(o,c++),r,a);else if("object"===o)throw r=""+t,Error(y(31,"[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r,""));return l}(e,"",t,n)}function D(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function H(e,t){e.func.call(e.context,t,e.count++)}function F(e,t,n){var r=e.result,a=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?G(e,r,n,(function(e){return e})):null!=e&&(I(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,a+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(A,"$&/")+"/")+n)),r.push(e))}function G(e,t,n,r,a){var i="";null!=n&&(i=(""+n).replace(A,"$&/")+"/"),R(e,F,t=x(t,i,r,a)),N(t)}var U={current:null};function L(){var e=U.current;if(null===e)throw Error(y(321));return e}var j={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:E,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return G(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;R(e,H,t=x(null,null,t,n)),N(t)},count:function(e){return R(e,(function(){return null}),null)},toArray:function(e){var t=[];return G(e,t,null,(function(e){return e})),t},only:function(e){if(!I(e))throw Error(y(143));return e}},t.Component=_,t.Fragment=o,t.Profiler=c,t.PureComponent=P,t.StrictMode=l,t.Suspense=h,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j,t.cloneElement=function(e,t,n){if(null==e)throw Error(y(267,e));var a=r({},e.props),s=e.key,o=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,l=E.current),void 0!==t.key&&(s=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)k.call(t,u)&&!T.hasOwnProperty(u)&&(a[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)a.children=n;else if(1<u){c=Array(u);for(var p=0;p<u;p++)c[p]=arguments[p+2];a.children=c}return{$$typeof:i,type:e.type,key:s,ref:o,props:a,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:p,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:d,render:e}},t.isValidElement=I,t.lazy=function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return L().useCallback(e,t)},t.useContext=function(e,t){return L().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return L().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return L().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return L().useLayoutEffect(e,t)},t.useMemo=function(e,t){return L().useMemo(e,t)},t.useReducer=function(e,t,n){return L().useReducer(e,t,n)},t.useRef=function(e){return L().useRef(e)},t.useState=function(e){return L().useState(e)},t.version="16.14.0"},function(e,t,n){var r=n(118);e.exports=function(e,t){var n;if("function"!=typeof t)throw new TypeError("Expected a function");return e=r(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}},function(e,t,n){var r,a,i=n(138),s=n(139),o=0,l=0;e.exports=function(e,t,n){var c=t&&n||0,u=t||[],p=(e=e||{}).node||r,d=void 0!==e.clockseq?e.clockseq:a;if(null==p||null==d){var h=i();null==p&&(p=r=[1|h[0],h[1],h[2],h[3],h[4],h[5]]),null==d&&(d=a=16383&(h[6]<<8|h[7]))}var f=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:l+1,S=f-o+(m-l)/1e4;if(S<0&&void 0===e.clockseq&&(d=d+1&16383),(S<0||f>o)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");o=f,l=m,a=d;var y=(1e4*(268435455&(f+=122192928e5))+m)%4294967296;u[c++]=y>>>24&255,u[c++]=y>>>16&255,u[c++]=y>>>8&255,u[c++]=255&y;var g=f/4294967296*1e4&268435455;u[c++]=g>>>8&255,u[c++]=255&g,u[c++]=g>>>24&15|16,u[c++]=g>>>16&255,u[c++]=d>>>8|128,u[c++]=255&d;for(var v=0;v<6;++v)u[c+v]=p[v];return t||s(u)}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=(0,i.default)(e);return{getItem:function(e){return new Promise((function(n,r){n(t.getItem(e))}))},setItem:function(e,n){return new Promise((function(r,a){r(t.setItem(e,n))}))},removeItem:function(e){return new Promise((function(n,r){n(t.removeItem(e))}))}}};var r,a=n(398),i=(r=a)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";t.__esModule=!0;var r="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};function a(){}t.default=function(e){var t=e+"Storage";return function(e){if("object"!==("undefined"==typeof self?"undefined":r(self))||!(e in self))return!1;try{var t=self[e],n="redux-persist "+e+" test";t.setItem(n,"test"),t.getItem(n),t.removeItem(n)}catch(e){return!1}return!0}(t)?self[t]:i};var i={getItem:a,setItem:a,removeItem:a}},function(e,t,n){"use strict";
/** @license React v16.14.0
 * react-dom.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 r=n(0),a=n(193),i=n(400);function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(s(227));function o(e,t,n,r,a,i,s,o,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var l=!1,c=null,u=!1,p=null,d={onError:function(e){l=!0,c=e}};function h(e,t,n,r,a,i,s,u,p){l=!1,c=null,o.apply(d,arguments)}var f=null,m=null,S=null;function y(e,t,n){var r=e.type||"unknown-event";e.currentTarget=S(n),function(e,t,n,r,a,i,o,d,f){if(h.apply(this,arguments),l){if(!l)throw Error(s(198));var m=c;l=!1,c=null,u||(u=!0,p=m)}}(r,t,void 0,e),e.currentTarget=null}var g=null,v={};function _(){if(g)for(var e in v){var t=v[e],n=g.indexOf(e);if(!(-1<n))throw Error(s(96,e));if(!P[n]){if(!t.extractEvents)throw Error(s(97,e));for(var r in P[n]=t,n=t.eventTypes){var a=void 0,i=n[r],o=t,l=r;if(w.hasOwnProperty(l))throw Error(s(99,l));w[l]=i;var c=i.phasedRegistrationNames;if(c){for(a in c)c.hasOwnProperty(a)&&b(c[a],o,l);a=!0}else i.registrationName?(b(i.registrationName,o,l),a=!0):a=!1;if(!a)throw Error(s(98,r,e))}}}}function b(e,t,n){if(E[e])throw Error(s(100,e));E[e]=t,k[e]=t.eventTypes[n].dependencies}var P=[],w={},E={},k={};function T(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!v.hasOwnProperty(t)||v[t]!==r){if(v[t])throw Error(s(102,t));v[t]=r,n=!0}}n&&_()}var C=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),I=null,A=null,O=null;function x(e){if(e=m(e)){if("function"!=typeof I)throw Error(s(280));var t=e.stateNode;t&&(t=f(t),I(e.stateNode,e.type,t))}}function N(e){A?O?O.push(e):O=[e]:A=e}function R(){if(A){var e=A,t=O;if(O=A=null,x(e),t)for(e=0;e<t.length;e++)x(t[e])}}function D(e,t){return e(t)}function H(e,t,n,r,a){return e(t,n,r,a)}function F(){}var G=D,U=!1,L=!1;function j(){null===A&&null===O||(F(),R())}function M(e,t,n){if(L)return e(t,n);L=!0;try{return G(e,t,n)}finally{L=!1,j()}}var B=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,K=Object.prototype.hasOwnProperty,q={},V={};function $(e,t,n,r,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var W={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){W[e]=new $(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];W[t]=new $(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){W[e]=new $(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){W[e]=new $(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){W[e]=new $(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){W[e]=new $(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){W[e]=new $(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){W[e]=new $(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){W[e]=new $(e,5,!1,e.toLowerCase(),null,!1)}));var z=/[\-:]([a-z])/g;function J(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(z,J);W[t]=new $(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(z,J);W[t]=new $(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(z,J);W[t]=new $(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){W[e]=new $(e,1,!1,e.toLowerCase(),null,!1)})),W.xlinkHref=new $("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){W[e]=new $(e,1,!1,e.toLowerCase(),null,!0)}));var X=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Q(e,t,n,r){var a=W.hasOwnProperty(t)?W[t]:null;(null!==a?0===a.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!K.call(V,e)||!K.call(q,e)&&(B.test(e)?V[e]=!0:(q[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}X.hasOwnProperty("ReactCurrentDispatcher")||(X.ReactCurrentDispatcher={current:null}),X.hasOwnProperty("ReactCurrentBatchConfig")||(X.ReactCurrentBatchConfig={suspense:null});var Y=/^(.*)[\\\/]/,Z="function"==typeof Symbol&&Symbol.for,ee=Z?Symbol.for("react.element"):60103,te=Z?Symbol.for("react.portal"):60106,ne=Z?Symbol.for("react.fragment"):60107,re=Z?Symbol.for("react.strict_mode"):60108,ae=Z?Symbol.for("react.profiler"):60114,ie=Z?Symbol.for("react.provider"):60109,se=Z?Symbol.for("react.context"):60110,oe=Z?Symbol.for("react.concurrent_mode"):60111,le=Z?Symbol.for("react.forward_ref"):60112,ce=Z?Symbol.for("react.suspense"):60113,ue=Z?Symbol.for("react.suspense_list"):60120,pe=Z?Symbol.for("react.memo"):60115,de=Z?Symbol.for("react.lazy"):60116,he=Z?Symbol.for("react.block"):60121,fe="function"==typeof Symbol&&Symbol.iterator;function me(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=fe&&e[fe]||e["@@iterator"])?e:null}function Se(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ne:return"Fragment";case te:return"Portal";case ae:return"Profiler";case re:return"StrictMode";case ce:return"Suspense";case ue:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case se:return"Context.Consumer";case ie:return"Context.Provider";case le:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case pe:return Se(e.type);case he:return Se(e.render);case de:if(e=1===e._status?e._result:null)return Se(e)}return null}function ye(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,a=e._debugSource,i=Se(e.type);n=null,r&&(n=Se(r.type)),r=i,i="",a?i=" (at "+a.fileName.replace(Y,"")+":"+a.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n    in "+(r||"Unknown")+i}t+=n,e=e.return}while(e);return t}function ge(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ve(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function _e(e){e._valueTracker||(e._valueTracker=function(e){var t=ve(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function be(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ve(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Pe(e,t){var n=t.checked;return a({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function we(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ge(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Ee(e,t){null!=(t=t.checked)&&Q(e,"checked",t,!1)}function ke(e,t){Ee(e,t);var n=ge(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Ce(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ce(e,t.type,ge(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Te(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Ce(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Ie(e,t){return e=a({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Ae(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ge(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function Oe(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(s(91));return a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function xe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(s(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(s(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ge(n)}}function Ne(e,t){var n=ge(t.value),r=ge(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Re(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var De="http://www.w3.org/1999/xhtml",He="http://www.w3.org/2000/svg";function Fe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ge(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Fe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Ue,Le=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,a){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==He||"innerHTML"in e)e.innerHTML=t;else{for((Ue=Ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function je(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function Me(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Be={animationend:Me("Animation","AnimationEnd"),animationiteration:Me("Animation","AnimationIteration"),animationstart:Me("Animation","AnimationStart"),transitionend:Me("Transition","TransitionEnd")},Ke={},qe={};function Ve(e){if(Ke[e])return Ke[e];if(!Be[e])return e;var t,n=Be[e];for(t in n)if(n.hasOwnProperty(t)&&t in qe)return Ke[e]=n[t];return e}C&&(qe=document.createElement("div").style,"AnimationEvent"in window||(delete Be.animationend.animation,delete Be.animationiteration.animation,delete Be.animationstart.animation),"TransitionEvent"in window||delete Be.transitionend.transition);var $e=Ve("animationend"),We=Ve("animationiteration"),ze=Ve("animationstart"),Je=Ve("transitionend"),Xe="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Qe=new("function"==typeof WeakMap?WeakMap:Map);function Ye(e){var t=Qe.get(e);return void 0===t&&(t=new Map,Qe.set(e,t)),t}function Ze(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function et(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function tt(e){if(Ze(e)!==e)throw Error(s(188))}function nt(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ze(e)))throw Error(s(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var i=a.alternate;if(null===i){if(null!==(r=a.return)){n=r;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return tt(a),e;if(i===r)return tt(a),t;i=i.sibling}throw Error(s(188))}if(n.return!==r.return)n=a,r=i;else{for(var o=!1,l=a.child;l;){if(l===n){o=!0,n=a,r=i;break}if(l===r){o=!0,r=a,n=i;break}l=l.sibling}if(!o){for(l=i.child;l;){if(l===n){o=!0,n=i,r=a;break}if(l===r){o=!0,r=i,n=a;break}l=l.sibling}if(!o)throw Error(s(189))}}if(n.alternate!==r)throw Error(s(190))}if(3!==n.tag)throw Error(s(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function rt(e,t){if(null==t)throw Error(s(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function at(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var it=null;function st(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)y(e,t[r],n[r]);else t&&y(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function ot(e){if(null!==e&&(it=rt(it,e)),e=it,it=null,e){if(at(e,st),it)throw Error(s(95));if(u)throw e=p,u=!1,p=null,e}}function lt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ct(e){if(!C)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var ut=[];function pt(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>ut.length&&ut.push(e)}function dt(e,t,n,r){if(ut.length){var a=ut.pop();return a.topLevelType=e,a.eventSystemFlags=r,a.nativeEvent=t,a.targetInst=n,a}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function ht(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=Cn(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var a=lt(e.nativeEvent);r=e.topLevelType;var i=e.nativeEvent,s=e.eventSystemFlags;0===n&&(s|=64);for(var o=null,l=0;l<P.length;l++){var c=P[l];c&&(c=c.extractEvents(r,t,i,a,s))&&(o=rt(o,c))}ot(o)}}function ft(e,t,n){if(!n.has(e)){switch(e){case"scroll":zt(t,"scroll",!0);break;case"focus":case"blur":zt(t,"focus",!0),zt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":ct(e)&&zt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Xe.indexOf(e)&&Wt(e,t)}n.set(e,null)}}var mt,St,yt,gt=!1,vt=[],_t=null,bt=null,Pt=null,wt=new Map,Et=new Map,kt=[],Tt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Ct="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function It(e,t,n,r,a){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:a,container:r}}function At(e,t){switch(e){case"focus":case"blur":_t=null;break;case"dragenter":case"dragleave":bt=null;break;case"mouseover":case"mouseout":Pt=null;break;case"pointerover":case"pointerout":wt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Et.delete(t.pointerId)}}function Ot(e,t,n,r,a,i){return null===e||e.nativeEvent!==i?(e=It(t,n,r,a,i),null!==t&&(null!==(t=In(t))&&St(t)),e):(e.eventSystemFlags|=r,e)}function xt(e){var t=Cn(e.target);if(null!==t){var n=Ze(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=et(n)))return e.blockedOn=t,void i.unstable_runWithPriority(e.priority,(function(){yt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Nt(e){if(null!==e.blockedOn)return!1;var t=Yt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=In(t);return null!==n&&St(n),e.blockedOn=t,!1}return!0}function Rt(e,t,n){Nt(e)&&n.delete(t)}function Dt(){for(gt=!1;0<vt.length;){var e=vt[0];if(null!==e.blockedOn){null!==(e=In(e.blockedOn))&&mt(e);break}var t=Yt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:vt.shift()}null!==_t&&Nt(_t)&&(_t=null),null!==bt&&Nt(bt)&&(bt=null),null!==Pt&&Nt(Pt)&&(Pt=null),wt.forEach(Rt),Et.forEach(Rt)}function Ht(e,t){e.blockedOn===t&&(e.blockedOn=null,gt||(gt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Dt)))}function Ft(e){function t(t){return Ht(t,e)}if(0<vt.length){Ht(vt[0],e);for(var n=1;n<vt.length;n++){var r=vt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==_t&&Ht(_t,e),null!==bt&&Ht(bt,e),null!==Pt&&Ht(Pt,e),wt.forEach(t),Et.forEach(t),n=0;n<kt.length;n++)(r=kt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<kt.length&&null===(n=kt[0]).blockedOn;)xt(n),null===n.blockedOn&&kt.shift()}var Gt={},Ut=new Map,Lt=new Map,jt=["abort","abort",$e,"animationEnd",We,"animationIteration",ze,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Je,"transitionEnd","waiting","waiting"];function Mt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],a=e[n+1],i="on"+(a[0].toUpperCase()+a.slice(1));i={phasedRegistrationNames:{bubbled:i,captured:i+"Capture"},dependencies:[r],eventPriority:t},Lt.set(r,t),Ut.set(r,i),Gt[a]=i}}Mt("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Mt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Mt(jt,2);for(var Bt="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Kt=0;Kt<Bt.length;Kt++)Lt.set(Bt[Kt],0);var qt=i.unstable_UserBlockingPriority,Vt=i.unstable_runWithPriority,$t=!0;function Wt(e,t){zt(t,e,!1)}function zt(e,t,n){var r=Lt.get(t);switch(void 0===r?2:r){case 0:r=Jt.bind(null,t,1,e);break;case 1:r=Xt.bind(null,t,1,e);break;default:r=Qt.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function Jt(e,t,n,r){U||F();var a=Qt,i=U;U=!0;try{H(a,e,t,n,r)}finally{(U=i)||j()}}function Xt(e,t,n,r){Vt(qt,Qt.bind(null,e,t,n,r))}function Qt(e,t,n,r){if($t)if(0<vt.length&&-1<Tt.indexOf(e))e=It(null,e,t,n,r),vt.push(e);else{var a=Yt(e,t,n,r);if(null===a)At(e,r);else if(-1<Tt.indexOf(e))e=It(a,e,t,n,r),vt.push(e);else if(!function(e,t,n,r,a){switch(t){case"focus":return _t=Ot(_t,e,t,n,r,a),!0;case"dragenter":return bt=Ot(bt,e,t,n,r,a),!0;case"mouseover":return Pt=Ot(Pt,e,t,n,r,a),!0;case"pointerover":var i=a.pointerId;return wt.set(i,Ot(wt.get(i)||null,e,t,n,r,a)),!0;case"gotpointercapture":return i=a.pointerId,Et.set(i,Ot(Et.get(i)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r)){At(e,r),e=dt(e,r,null,t);try{M(ht,e)}finally{pt(e)}}}}function Yt(e,t,n,r){if(null!==(n=Cn(n=lt(r)))){var a=Ze(n);if(null===a)n=null;else{var i=a.tag;if(13===i){if(null!==(n=et(a)))return n;n=null}else if(3===i){if(a.stateNode.hydrate)return 3===a.tag?a.stateNode.containerInfo:null;n=null}else a!==n&&(n=null)}}e=dt(e,r,n,t);try{M(ht,e)}finally{pt(e)}return null}var Zt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},en=["Webkit","ms","Moz","O"];function tn(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Zt.hasOwnProperty(e)&&Zt[e]?(""+t).trim():t+"px"}function nn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=tn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(Zt).forEach((function(e){en.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zt[t]=Zt[e]}))}));var rn=a({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function an(e,t){if(t){if(rn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(s(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(s(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(s(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(s(62,""))}}function sn(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var on=De;function ln(e,t){var n=Ye(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=k[t];for(var r=0;r<t.length;r++)ft(t[r],e,n)}function cn(){}function un(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function pn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dn(e,t){var n,r=pn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=pn(r)}}function hn(){for(var e=window,t=un();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=un((e=t.contentWindow).document)}return t}function fn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var mn=null,Sn=null;function yn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function gn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var vn="function"==typeof setTimeout?setTimeout:void 0,_n="function"==typeof clearTimeout?clearTimeout:void 0;function bn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Pn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var wn=Math.random().toString(36).slice(2),En="__reactInternalInstance$"+wn,kn="__reactEventHandlers$"+wn,Tn="__reactContainere$"+wn;function Cn(e){var t=e[En];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Tn]||n[En]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Pn(e);null!==e;){if(n=e[En])return n;e=Pn(e)}return t}n=(e=n).parentNode}return null}function In(e){return!(e=e[En]||e[Tn])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function An(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(s(33))}function On(e){return e[kn]||null}function xn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Nn(e,t){var n=e.stateNode;if(!n)return null;var r=f(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(s(231,t,typeof n));return n}function Rn(e,t,n){(t=Nn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function Dn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=xn(t);for(t=n.length;0<t--;)Rn(n[t],"captured",e);for(t=0;t<n.length;t++)Rn(n[t],"bubbled",e)}}function Hn(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Nn(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function Fn(e){e&&e.dispatchConfig.registrationName&&Hn(e._targetInst,null,e)}function Gn(e){at(e,Dn)}var Un=null,Ln=null,jn=null;function Mn(){if(jn)return jn;var e,t,n=Ln,r=n.length,a="value"in Un?Un.value:Un.textContent,i=a.length;for(e=0;e<r&&n[e]===a[e];e++);var s=r-e;for(t=1;t<=s&&n[r-t]===a[i-t];t++);return jn=a.slice(e,1<t?1-t:void 0)}function Bn(){return!0}function Kn(){return!1}function qn(e,t,n,r){for(var a in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(a)&&((t=e[a])?this[a]=t(n):"target"===a?this.target=r:this[a]=n[a]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Bn:Kn,this.isPropagationStopped=Kn,this}function Vn(e,t,n,r){if(this.eventPool.length){var a=this.eventPool.pop();return this.call(a,e,t,n,r),a}return new this(e,t,n,r)}function $n(e){if(!(e instanceof this))throw Error(s(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Wn(e){e.eventPool=[],e.getPooled=Vn,e.release=$n}a(qn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Bn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Bn)},persist:function(){this.isPersistent=Bn},isPersistent:Kn,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Kn,this._dispatchInstances=this._dispatchListeners=null}}),qn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},qn.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return a(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=a({},r.Interface,e),n.extend=r.extend,Wn(n),n},Wn(qn);var zn=qn.extend({data:null}),Jn=qn.extend({data:null}),Xn=[9,13,27,32],Qn=C&&"CompositionEvent"in window,Yn=null;C&&"documentMode"in document&&(Yn=document.documentMode);var Zn=C&&"TextEvent"in window&&!Yn,er=C&&(!Qn||Yn&&8<Yn&&11>=Yn),tr=String.fromCharCode(32),nr={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},rr=!1;function ar(e,t){switch(e){case"keyup":return-1!==Xn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function ir(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var sr=!1;var or={eventTypes:nr,extractEvents:function(e,t,n,r){var a;if(Qn)e:{switch(e){case"compositionstart":var i=nr.compositionStart;break e;case"compositionend":i=nr.compositionEnd;break e;case"compositionupdate":i=nr.compositionUpdate;break e}i=void 0}else sr?ar(e,n)&&(i=nr.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=nr.compositionStart);return i?(er&&"ko"!==n.locale&&(sr||i!==nr.compositionStart?i===nr.compositionEnd&&sr&&(a=Mn()):(Ln="value"in(Un=r)?Un.value:Un.textContent,sr=!0)),i=zn.getPooled(i,t,n,r),a?i.data=a:null!==(a=ir(n))&&(i.data=a),Gn(i),a=i):a=null,(e=Zn?function(e,t){switch(e){case"compositionend":return ir(t);case"keypress":return 32!==t.which?null:(rr=!0,tr);case"textInput":return(e=t.data)===tr&&rr?null:e;default:return null}}(e,n):function(e,t){if(sr)return"compositionend"===e||!Qn&&ar(e,t)?(e=Mn(),jn=Ln=Un=null,sr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return er&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=Jn.getPooled(nr.beforeInput,t,n,r)).data=e,Gn(t)):t=null,null===a?t:null===t?a:[a,t]}},lr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function cr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!lr[e.type]:"textarea"===t}var ur={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function pr(e,t,n){return(e=qn.getPooled(ur.change,e,t,n)).type="change",N(n),Gn(e),e}var dr=null,hr=null;function fr(e){ot(e)}function mr(e){if(be(An(e)))return e}function Sr(e,t){if("change"===e)return t}var yr=!1;function gr(){dr&&(dr.detachEvent("onpropertychange",vr),hr=dr=null)}function vr(e){if("value"===e.propertyName&&mr(hr))if(e=pr(hr,e,lt(e)),U)ot(e);else{U=!0;try{D(fr,e)}finally{U=!1,j()}}}function _r(e,t,n){"focus"===e?(gr(),hr=n,(dr=t).attachEvent("onpropertychange",vr)):"blur"===e&&gr()}function br(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return mr(hr)}function Pr(e,t){if("click"===e)return mr(t)}function wr(e,t){if("input"===e||"change"===e)return mr(t)}C&&(yr=ct("input")&&(!document.documentMode||9<document.documentMode));var Er={eventTypes:ur,_isInputEventSupported:yr,extractEvents:function(e,t,n,r){var a=t?An(t):window,i=a.nodeName&&a.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===a.type)var s=Sr;else if(cr(a))if(yr)s=wr;else{s=br;var o=_r}else(i=a.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(s=Pr);if(s&&(s=s(e,t)))return pr(s,n,r);o&&o(e,a,t),"blur"===e&&(e=a._wrapperState)&&e.controlled&&"number"===a.type&&Ce(a,"number",a.value)}},kr=qn.extend({view:null,detail:null}),Tr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Tr[e])&&!!t[e]}function Ir(){return Cr}var Ar=0,Or=0,xr=!1,Nr=!1,Rr=kr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Ir,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Ar;return Ar=e.screenX,xr?"mousemove"===e.type?e.screenX-t:0:(xr=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Or;return Or=e.screenY,Nr?"mousemove"===e.type?e.screenY-t:0:(Nr=!0,0)}}),Dr=Rr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Hr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Fr={eventTypes:Hr,extractEvents:function(e,t,n,r,a){var i="mouseover"===e||"pointerover"===e,s="mouseout"===e||"pointerout"===e;if(i&&0==(32&a)&&(n.relatedTarget||n.fromElement)||!s&&!i)return null;(i=r.window===r?r:(i=r.ownerDocument)?i.defaultView||i.parentWindow:window,s)?(s=t,null!==(t=(t=n.relatedTarget||n.toElement)?Cn(t):null)&&(t!==Ze(t)||5!==t.tag&&6!==t.tag)&&(t=null)):s=null;if(s===t)return null;if("mouseout"===e||"mouseover"===e)var o=Rr,l=Hr.mouseLeave,c=Hr.mouseEnter,u="mouse";else"pointerout"!==e&&"pointerover"!==e||(o=Dr,l=Hr.pointerLeave,c=Hr.pointerEnter,u="pointer");if(e=null==s?i:An(s),i=null==t?i:An(t),(l=o.getPooled(l,s,n,r)).type=u+"leave",l.target=e,l.relatedTarget=i,(n=o.getPooled(c,t,n,r)).type=u+"enter",n.target=i,n.relatedTarget=e,u=t,(r=s)&&u)e:{for(c=u,s=0,e=o=r;e;e=xn(e))s++;for(e=0,t=c;t;t=xn(t))e++;for(;0<s-e;)o=xn(o),s--;for(;0<e-s;)c=xn(c),e--;for(;s--;){if(o===c||o===c.alternate)break e;o=xn(o),c=xn(c)}o=null}else o=null;for(c=o,o=[];r&&r!==c&&(null===(s=r.alternate)||s!==c);)o.push(r),r=xn(r);for(r=[];u&&u!==c&&(null===(s=u.alternate)||s!==c);)r.push(u),u=xn(u);for(u=0;u<o.length;u++)Hn(o[u],"bubbled",l);for(u=r.length;0<u--;)Hn(r[u],"captured",n);return 0==(64&a)?[l]:[l,n]}};var Gr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Ur=Object.prototype.hasOwnProperty;function Lr(e,t){if(Gr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Ur.call(t,n[r])||!Gr(e[n[r]],t[n[r]]))return!1;return!0}var jr=C&&"documentMode"in document&&11>=document.documentMode,Mr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Br=null,Kr=null,qr=null,Vr=!1;function $r(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Vr||null==Br||Br!==un(n)?null:("selectionStart"in(n=Br)&&fn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},qr&&Lr(qr,n)?null:(qr=n,(e=qn.getPooled(Mr.select,Kr,e,t)).type="select",e.target=Br,Gn(e),e))}var Wr={eventTypes:Mr,extractEvents:function(e,t,n,r,a,i){if(!(i=!(a=i||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{a=Ye(a),i=k.onSelect;for(var s=0;s<i.length;s++)if(!a.has(i[s])){a=!1;break e}a=!0}i=!a}if(i)return null;switch(a=t?An(t):window,e){case"focus":(cr(a)||"true"===a.contentEditable)&&(Br=a,Kr=t,qr=null);break;case"blur":qr=Kr=Br=null;break;case"mousedown":Vr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Vr=!1,$r(n,r);case"selectionchange":if(jr)break;case"keydown":case"keyup":return $r(n,r)}return null}},zr=qn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Jr=qn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Xr=kr.extend({relatedTarget:null});function Qr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var Yr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Zr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ea=kr.extend({key:function(e){if(e.key){var t=Yr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Qr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Zr[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Ir,charCode:function(e){return"keypress"===e.type?Qr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Qr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),ta=Rr.extend({dataTransfer:null}),na=kr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Ir}),ra=qn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),aa=Rr.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),ia={eventTypes:Gt,extractEvents:function(e,t,n,r){var a=Ut.get(e);if(!a)return null;switch(e){case"keypress":if(0===Qr(n))return null;case"keydown":case"keyup":e=ea;break;case"blur":case"focus":e=Xr;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Rr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=ta;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=na;break;case $e:case We:case ze:e=zr;break;case Je:e=ra;break;case"scroll":e=kr;break;case"wheel":e=aa;break;case"copy":case"cut":case"paste":e=Jr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Dr;break;default:e=qn}return Gn(t=e.getPooled(a,t,n,r)),t}};if(g)throw Error(s(101));g=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),_(),f=On,m=In,S=An,T({SimpleEventPlugin:ia,EnterLeaveEventPlugin:Fr,ChangeEventPlugin:Er,SelectEventPlugin:Wr,BeforeInputEventPlugin:or});var sa=[],oa=-1;function la(e){0>oa||(e.current=sa[oa],sa[oa]=null,oa--)}function ca(e,t){oa++,sa[oa]=e.current,e.current=t}var ua={},pa={current:ua},da={current:!1},ha=ua;function fa(e,t){var n=e.type.contextTypes;if(!n)return ua;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,i={};for(a in n)i[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ma(e){return null!=(e=e.childContextTypes)}function Sa(){la(da),la(pa)}function ya(e,t,n){if(pa.current!==ua)throw Error(s(168));ca(pa,t),ca(da,n)}function ga(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(s(108,Se(t)||"Unknown",i));return a({},n,{},r)}function va(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ua,ha=pa.current,ca(pa,e),ca(da,da.current),!0}function _a(e,t,n){var r=e.stateNode;if(!r)throw Error(s(169));n?(e=ga(e,t,ha),r.__reactInternalMemoizedMergedChildContext=e,la(da),la(pa),ca(pa,e)):la(da),ca(da,n)}var ba=i.unstable_runWithPriority,Pa=i.unstable_scheduleCallback,wa=i.unstable_cancelCallback,Ea=i.unstable_requestPaint,ka=i.unstable_now,Ta=i.unstable_getCurrentPriorityLevel,Ca=i.unstable_ImmediatePriority,Ia=i.unstable_UserBlockingPriority,Aa=i.unstable_NormalPriority,Oa=i.unstable_LowPriority,xa=i.unstable_IdlePriority,Na={},Ra=i.unstable_shouldYield,Da=void 0!==Ea?Ea:function(){},Ha=null,Fa=null,Ga=!1,Ua=ka(),La=1e4>Ua?ka:function(){return ka()-Ua};function ja(){switch(Ta()){case Ca:return 99;case Ia:return 98;case Aa:return 97;case Oa:return 96;case xa:return 95;default:throw Error(s(332))}}function Ma(e){switch(e){case 99:return Ca;case 98:return Ia;case 97:return Aa;case 96:return Oa;case 95:return xa;default:throw Error(s(332))}}function Ba(e,t){return e=Ma(e),ba(e,t)}function Ka(e,t,n){return e=Ma(e),Pa(e,t,n)}function qa(e){return null===Ha?(Ha=[e],Fa=Pa(Ca,$a)):Ha.push(e),Na}function Va(){if(null!==Fa){var e=Fa;Fa=null,wa(e)}$a()}function $a(){if(!Ga&&null!==Ha){Ga=!0;var e=0;try{var t=Ha;Ba(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Ha=null}catch(t){throw null!==Ha&&(Ha=Ha.slice(e+1)),Pa(Ca,Va),t}finally{Ga=!1}}}function Wa(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function za(e,t){if(e&&e.defaultProps)for(var n in t=a({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Ja={current:null},Xa=null,Qa=null,Ya=null;function Za(){Ya=Qa=Xa=null}function ei(e){var t=Ja.current;la(Ja),e.type._context._currentValue=t}function ti(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function ni(e,t){Xa=e,Ya=Qa=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(As=!0),e.firstContext=null)}function ri(e,t){if(Ya!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Ya=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Qa){if(null===Xa)throw Error(s(308));Qa=t,Xa.dependencies={expirationTime:0,firstContext:t,responders:null}}else Qa=Qa.next=t;return e._currentValue}var ai=!1;function ii(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function si(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function oi(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function li(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function ci(e,t){var n=e.alternate;null!==n&&si(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function ui(e,t,n,r){var i=e.updateQueue;ai=!1;var s=i.baseQueue,o=i.shared.pending;if(null!==o){if(null!==s){var l=s.next;s.next=o.next,o.next=l}s=o,i.shared.pending=null,null!==(l=e.alternate)&&(null!==(l=l.updateQueue)&&(l.baseQueue=o))}if(null!==s){l=s.next;var c=i.baseState,u=0,p=null,d=null,h=null;if(null!==l)for(var f=l;;){if((o=f.expirationTime)<r){var m={expirationTime:f.expirationTime,suspenseConfig:f.suspenseConfig,tag:f.tag,payload:f.payload,callback:f.callback,next:null};null===h?(d=h=m,p=c):h=h.next=m,o>u&&(u=o)}else{null!==h&&(h=h.next={expirationTime:1073741823,suspenseConfig:f.suspenseConfig,tag:f.tag,payload:f.payload,callback:f.callback,next:null}),il(o,f.suspenseConfig);e:{var S=e,y=f;switch(o=t,m=n,y.tag){case 1:if("function"==typeof(S=y.payload)){c=S.call(m,c,o);break e}c=S;break e;case 3:S.effectTag=-4097&S.effectTag|64;case 0:if(null==(o="function"==typeof(S=y.payload)?S.call(m,c,o):S))break e;c=a({},c,o);break e;case 2:ai=!0}}null!==f.callback&&(e.effectTag|=32,null===(o=i.effects)?i.effects=[f]:o.push(f))}if(null===(f=f.next)||f===l){if(null===(o=i.shared.pending))break;f=s.next=o.next,o.next=l,i.baseQueue=s=o,i.shared.pending=null}}null===h?p=c:h.next=d,i.baseState=p,i.baseQueue=h,sl(u),e.expirationTime=u,e.memoizedState=c}}function pi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(null!==a){if(r.callback=null,r=a,a=n,"function"!=typeof r)throw Error(s(191,r));r.call(a)}}}var di=X.ReactCurrentBatchConfig,hi=(new r.Component).refs;function fi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:a({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var mi={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=$o(),a=di.suspense;(a=oi(r=Wo(r,e,a),a)).payload=t,null!=n&&(a.callback=n),li(e,a),zo(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=$o(),a=di.suspense;(a=oi(r=Wo(r,e,a),a)).tag=1,a.payload=t,null!=n&&(a.callback=n),li(e,a),zo(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=$o(),r=di.suspense;(r=oi(n=Wo(n,e,r),r)).tag=2,null!=t&&(r.callback=t),li(e,r),zo(e,n)}};function Si(e,t,n,r,a,i,s){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,s):!t.prototype||!t.prototype.isPureReactComponent||(!Lr(n,r)||!Lr(a,i))}function yi(e,t,n){var r=!1,a=ua,i=t.contextType;return"object"==typeof i&&null!==i?i=ri(i):(a=ma(t)?ha:pa.current,i=(r=null!=(r=t.contextTypes))?fa(e,a):ua),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=mi,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=i),t}function gi(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&mi.enqueueReplaceState(t,t.state,null)}function vi(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=hi,ii(e);var i=t.contextType;"object"==typeof i&&null!==i?a.context=ri(i):(i=ma(t)?ha:pa.current,a.context=fa(e,i)),ui(e,n,a,r),a.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(fi(e,t,i,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&mi.enqueueReplaceState(a,a.state,null),ui(e,n,a,r),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.effectTag|=4)}var _i=Array.isArray;function bi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(s(309));var r=n.stateNode}if(!r)throw Error(s(147,e));var a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:((t=function(e){var t=r.refs;t===hi&&(t=r.refs={}),null===e?delete t[a]:t[a]=e})._stringRef=a,t)}if("string"!=typeof e)throw Error(s(284));if(!n._owner)throw Error(s(290,e))}return e}function Pi(e,t){if("textarea"!==e.type)throw Error(s(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function wi(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=Tl(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function o(t){return e&&null===t.alternate&&(t.effectTag=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Al(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=a(t,n.props)).ref=bi(e,t,n),r.return=e,r):((r=Cl(n.type,n.key,n.props,null,e.mode,r)).ref=bi(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ol(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function p(e,t,n,r,i){return null===t||7!==t.tag?((t=Il(n,e.mode,r,i)).return=e,t):((t=a(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Al(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=Cl(t.type,t.key,t.props,null,e.mode,n)).ref=bi(e,null,t),n.return=e,n;case te:return(t=Ol(t,e.mode,n)).return=e,t}if(_i(t)||me(t))return(t=Il(t,e.mode,n,null)).return=e,t;Pi(e,t)}return null}function h(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==a?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===a?n.type===ne?p(e,t,n.props.children,r,a):c(e,t,n,r):null;case te:return n.key===a?u(e,t,n,r):null}if(_i(n)||me(n))return null!==a?null:p(e,t,n,r,null);Pi(e,n)}return null}function f(e,t,n,r,a){if("string"==typeof r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case ee:return e=e.get(null===r.key?n:r.key)||null,r.type===ne?p(t,e,r.props.children,a,r.key):c(t,e,r,a);case te:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a)}if(_i(r)||me(r))return p(t,e=e.get(n)||null,r,a,null);Pi(t,r)}return null}function m(a,s,o,l){for(var c=null,u=null,p=s,m=s=0,S=null;null!==p&&m<o.length;m++){p.index>m?(S=p,p=null):S=p.sibling;var y=h(a,p,o[m],l);if(null===y){null===p&&(p=S);break}e&&p&&null===y.alternate&&t(a,p),s=i(y,s,m),null===u?c=y:u.sibling=y,u=y,p=S}if(m===o.length)return n(a,p),c;if(null===p){for(;m<o.length;m++)null!==(p=d(a,o[m],l))&&(s=i(p,s,m),null===u?c=p:u.sibling=p,u=p);return c}for(p=r(a,p);m<o.length;m++)null!==(S=f(p,a,m,o[m],l))&&(e&&null!==S.alternate&&p.delete(null===S.key?m:S.key),s=i(S,s,m),null===u?c=S:u.sibling=S,u=S);return e&&p.forEach((function(e){return t(a,e)})),c}function S(a,o,l,c){var u=me(l);if("function"!=typeof u)throw Error(s(150));if(null==(l=u.call(l)))throw Error(s(151));for(var p=u=null,m=o,S=o=0,y=null,g=l.next();null!==m&&!g.done;S++,g=l.next()){m.index>S?(y=m,m=null):y=m.sibling;var v=h(a,m,g.value,c);if(null===v){null===m&&(m=y);break}e&&m&&null===v.alternate&&t(a,m),o=i(v,o,S),null===p?u=v:p.sibling=v,p=v,m=y}if(g.done)return n(a,m),u;if(null===m){for(;!g.done;S++,g=l.next())null!==(g=d(a,g.value,c))&&(o=i(g,o,S),null===p?u=g:p.sibling=g,p=g);return u}for(m=r(a,m);!g.done;S++,g=l.next())null!==(g=f(m,a,S,g.value,c))&&(e&&null!==g.alternate&&m.delete(null===g.key?S:g.key),o=i(g,o,S),null===p?u=g:p.sibling=g,p=g);return e&&m.forEach((function(e){return t(a,e)})),u}return function(e,r,i,l){var c="object"==typeof i&&null!==i&&i.type===ne&&null===i.key;c&&(i=i.props.children);var u="object"==typeof i&&null!==i;if(u)switch(i.$$typeof){case ee:e:{for(u=i.key,c=r;null!==c;){if(c.key===u){switch(c.tag){case 7:if(i.type===ne){n(e,c.sibling),(r=a(c,i.props.children)).return=e,e=r;break e}break;default:if(c.elementType===i.type){n(e,c.sibling),(r=a(c,i.props)).ref=bi(e,c,i),r.return=e,e=r;break e}}n(e,c);break}t(e,c),c=c.sibling}i.type===ne?((r=Il(i.props.children,e.mode,l,i.key)).return=e,e=r):((l=Cl(i.type,i.key,i.props,null,e.mode,l)).ref=bi(e,r,i),l.return=e,e=l)}return o(e);case te:e:{for(c=i.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=a(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Ol(i,e.mode,l)).return=e,e=r}return o(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=a(r,i)).return=e,e=r):(n(e,r),(r=Al(i,e.mode,l)).return=e,e=r),o(e);if(_i(i))return m(e,r,i,l);if(me(i))return S(e,r,i,l);if(u&&Pi(e,i),void 0===i&&!c)switch(e.tag){case 1:case 0:throw e=e.type,Error(s(152,e.displayName||e.name||"Component"))}return n(e,r)}}var Ei=wi(!0),ki=wi(!1),Ti={},Ci={current:Ti},Ii={current:Ti},Ai={current:Ti};function Oi(e){if(e===Ti)throw Error(s(174));return e}function xi(e,t){switch(ca(Ai,t),ca(Ii,e),ca(Ci,Ti),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ge(null,"");break;default:t=Ge(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}la(Ci),ca(Ci,t)}function Ni(){la(Ci),la(Ii),la(Ai)}function Ri(e){Oi(Ai.current);var t=Oi(Ci.current),n=Ge(t,e.type);t!==n&&(ca(Ii,e),ca(Ci,n))}function Di(e){Ii.current===e&&(la(Ci),la(Ii))}var Hi={current:0};function Fi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Gi(e,t){return{responder:e,props:t}}var Ui=X.ReactCurrentDispatcher,Li=X.ReactCurrentBatchConfig,ji=0,Mi=null,Bi=null,Ki=null,qi=!1;function Vi(){throw Error(s(321))}function $i(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Gr(e[n],t[n]))return!1;return!0}function Wi(e,t,n,r,a,i){if(ji=i,Mi=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Ui.current=null===e||null===e.memoizedState?Ss:ys,e=n(r,a),t.expirationTime===ji){i=0;do{if(t.expirationTime=0,!(25>i))throw Error(s(301));i+=1,Ki=Bi=null,t.updateQueue=null,Ui.current=gs,e=n(r,a)}while(t.expirationTime===ji)}if(Ui.current=ms,t=null!==Bi&&null!==Bi.next,ji=0,Ki=Bi=Mi=null,qi=!1,t)throw Error(s(300));return e}function zi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ki?Mi.memoizedState=Ki=e:Ki=Ki.next=e,Ki}function Ji(){if(null===Bi){var e=Mi.alternate;e=null!==e?e.memoizedState:null}else e=Bi.next;var t=null===Ki?Mi.memoizedState:Ki.next;if(null!==t)Ki=t,Bi=e;else{if(null===e)throw Error(s(310));e={memoizedState:(Bi=e).memoizedState,baseState:Bi.baseState,baseQueue:Bi.baseQueue,queue:Bi.queue,next:null},null===Ki?Mi.memoizedState=Ki=e:Ki=Ki.next=e}return Ki}function Xi(e,t){return"function"==typeof t?t(e):t}function Qi(e){var t=Ji(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var r=Bi,a=r.baseQueue,i=n.pending;if(null!==i){if(null!==a){var o=a.next;a.next=i.next,i.next=o}r.baseQueue=a=i,n.pending=null}if(null!==a){a=a.next,r=r.baseState;var l=o=i=null,c=a;do{var u=c.expirationTime;if(u<ji){var p={expirationTime:c.expirationTime,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===l?(o=l=p,i=r):l=l.next=p,u>Mi.expirationTime&&(Mi.expirationTime=u,sl(u))}else null!==l&&(l=l.next={expirationTime:1073741823,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),il(u,c.suspenseConfig),r=c.eagerReducer===e?c.eagerState:e(r,c.action);c=c.next}while(null!==c&&c!==a);null===l?i=r:l.next=o,Gr(r,t.memoizedState)||(As=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Yi(e){var t=Ji(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,i=t.memoizedState;if(null!==a){n.pending=null;var o=a=a.next;do{i=e(i,o.action),o=o.next}while(o!==a);Gr(i,t.memoizedState)||(As=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Zi(e){var t=zi();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Xi,lastRenderedState:e}).dispatch=fs.bind(null,Mi,e),[t.memoizedState,e]}function es(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Mi.updateQueue)?(t={lastEffect:null},Mi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ts(){return Ji().memoizedState}function ns(e,t,n,r){var a=zi();Mi.effectTag|=e,a.memoizedState=es(1|t,n,void 0,void 0===r?null:r)}function rs(e,t,n,r){var a=Ji();r=void 0===r?null:r;var i=void 0;if(null!==Bi){var s=Bi.memoizedState;if(i=s.destroy,null!==r&&$i(r,s.deps))return void es(t,n,i,r)}Mi.effectTag|=e,a.memoizedState=es(1|t,n,i,r)}function as(e,t){return ns(516,4,e,t)}function is(e,t){return rs(516,4,e,t)}function ss(e,t){return rs(4,2,e,t)}function os(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ls(e,t,n){return n=null!=n?n.concat([e]):null,rs(4,2,os.bind(null,t,e),n)}function cs(){}function us(e,t){return zi().memoizedState=[e,void 0===t?null:t],e}function ps(e,t){var n=Ji();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&$i(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ds(e,t){var n=Ji();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&$i(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function hs(e,t,n){var r=ja();Ba(98>r?98:r,(function(){e(!0)})),Ba(97<r?97:r,(function(){var r=Li.suspense;Li.suspense=void 0===t?null:t;try{e(!1),n()}finally{Li.suspense=r}}))}function fs(e,t,n){var r=$o(),a=di.suspense;a={expirationTime:r=Wo(r,e,a),suspenseConfig:a,action:n,eagerReducer:null,eagerState:null,next:null};var i=t.pending;if(null===i?a.next=a:(a.next=i.next,i.next=a),t.pending=a,i=e.alternate,e===Mi||null!==i&&i===Mi)qi=!0,a.expirationTime=ji,Mi.expirationTime=ji;else{if(0===e.expirationTime&&(null===i||0===i.expirationTime)&&null!==(i=t.lastRenderedReducer))try{var s=t.lastRenderedState,o=i(s,n);if(a.eagerReducer=i,a.eagerState=o,Gr(o,s))return}catch(e){}zo(e,r)}}var ms={readContext:ri,useCallback:Vi,useContext:Vi,useEffect:Vi,useImperativeHandle:Vi,useLayoutEffect:Vi,useMemo:Vi,useReducer:Vi,useRef:Vi,useState:Vi,useDebugValue:Vi,useResponder:Vi,useDeferredValue:Vi,useTransition:Vi},Ss={readContext:ri,useCallback:us,useContext:ri,useEffect:as,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ns(4,2,os.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ns(4,2,e,t)},useMemo:function(e,t){var n=zi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=zi();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=fs.bind(null,Mi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},zi().memoizedState=e},useState:Zi,useDebugValue:cs,useResponder:Gi,useDeferredValue:function(e,t){var n=Zi(e),r=n[0],a=n[1];return as((function(){var n=Li.suspense;Li.suspense=void 0===t?null:t;try{a(e)}finally{Li.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Zi(!1),n=t[0];return t=t[1],[us(hs.bind(null,t,e),[t,e]),n]}},ys={readContext:ri,useCallback:ps,useContext:ri,useEffect:is,useImperativeHandle:ls,useLayoutEffect:ss,useMemo:ds,useReducer:Qi,useRef:ts,useState:function(){return Qi(Xi)},useDebugValue:cs,useResponder:Gi,useDeferredValue:function(e,t){var n=Qi(Xi),r=n[0],a=n[1];return is((function(){var n=Li.suspense;Li.suspense=void 0===t?null:t;try{a(e)}finally{Li.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Qi(Xi),n=t[0];return t=t[1],[ps(hs.bind(null,t,e),[t,e]),n]}},gs={readContext:ri,useCallback:ps,useContext:ri,useEffect:is,useImperativeHandle:ls,useLayoutEffect:ss,useMemo:ds,useReducer:Yi,useRef:ts,useState:function(){return Yi(Xi)},useDebugValue:cs,useResponder:Gi,useDeferredValue:function(e,t){var n=Yi(Xi),r=n[0],a=n[1];return is((function(){var n=Li.suspense;Li.suspense=void 0===t?null:t;try{a(e)}finally{Li.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Yi(Xi),n=t[0];return t=t[1],[ps(hs.bind(null,t,e),[t,e]),n]}},vs=null,_s=null,bs=!1;function Ps(e,t){var n=El(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function ws(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Es(e){if(bs){var t=_s;if(t){var n=t;if(!ws(e,t)){if(!(t=bn(n.nextSibling))||!ws(e,t))return e.effectTag=-1025&e.effectTag|2,bs=!1,void(vs=e);Ps(vs,n)}vs=e,_s=bn(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,bs=!1,vs=e}}function ks(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;vs=e}function Ts(e){if(e!==vs)return!1;if(!bs)return ks(e),bs=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!gn(t,e.memoizedProps))for(t=_s;t;)Ps(e,t),t=bn(t.nextSibling);if(ks(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){_s=bn(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}_s=null}}else _s=vs?bn(e.stateNode.nextSibling):null;return!0}function Cs(){_s=vs=null,bs=!1}var Is=X.ReactCurrentOwner,As=!1;function Os(e,t,n,r){t.child=null===e?ki(t,null,n,r):Ei(t,e.child,n,r)}function xs(e,t,n,r,a){n=n.render;var i=t.ref;return ni(t,a),r=Wi(e,t,n,r,i,a),null===e||As?(t.effectTag|=1,Os(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=a&&(e.expirationTime=0),Ws(e,t,a))}function Ns(e,t,n,r,a,i){if(null===e){var s=n.type;return"function"!=typeof s||kl(s)||void 0!==s.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Cl(n.type,null,r,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=s,Rs(e,t,s,r,a,i))}return s=e.child,a<i&&(a=s.memoizedProps,(n=null!==(n=n.compare)?n:Lr)(a,r)&&e.ref===t.ref)?Ws(e,t,i):(t.effectTag|=1,(e=Tl(s,r)).ref=t.ref,e.return=t,t.child=e)}function Rs(e,t,n,r,a,i){return null!==e&&Lr(e.memoizedProps,r)&&e.ref===t.ref&&(As=!1,a<i)?(t.expirationTime=e.expirationTime,Ws(e,t,i)):Hs(e,t,n,r,i)}function Ds(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Hs(e,t,n,r,a){var i=ma(n)?ha:pa.current;return i=fa(t,i),ni(t,a),n=Wi(e,t,n,r,i,a),null===e||As?(t.effectTag|=1,Os(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=a&&(e.expirationTime=0),Ws(e,t,a))}function Fs(e,t,n,r,a){if(ma(n)){var i=!0;va(t)}else i=!1;if(ni(t,a),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),yi(t,n,r),vi(t,n,r,a),r=!0;else if(null===e){var s=t.stateNode,o=t.memoizedProps;s.props=o;var l=s.context,c=n.contextType;"object"==typeof c&&null!==c?c=ri(c):c=fa(t,c=ma(n)?ha:pa.current);var u=n.getDerivedStateFromProps,p="function"==typeof u||"function"==typeof s.getSnapshotBeforeUpdate;p||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(o!==r||l!==c)&&gi(t,s,r,c),ai=!1;var d=t.memoizedState;s.state=d,ui(t,r,s,a),l=t.memoizedState,o!==r||d!==l||da.current||ai?("function"==typeof u&&(fi(t,n,u,r),l=t.memoizedState),(o=ai||Si(t,n,o,r,d,l,c))?(p||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(t.effectTag|=4)):("function"==typeof s.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=c,r=o):("function"==typeof s.componentDidMount&&(t.effectTag|=4),r=!1)}else s=t.stateNode,si(e,t),o=t.memoizedProps,s.props=t.type===t.elementType?o:za(t.type,o),l=s.context,"object"==typeof(c=n.contextType)&&null!==c?c=ri(c):c=fa(t,c=ma(n)?ha:pa.current),(p="function"==typeof(u=n.getDerivedStateFromProps)||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(o!==r||l!==c)&&gi(t,s,r,c),ai=!1,l=t.memoizedState,s.state=l,ui(t,r,s,a),d=t.memoizedState,o!==r||l!==d||da.current||ai?("function"==typeof u&&(fi(t,n,u,r),d=t.memoizedState),(u=ai||Si(t,n,o,r,l,d,c))?(p||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(r,d,c),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(r,d,c)),"function"==typeof s.componentDidUpdate&&(t.effectTag|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof s.componentDidUpdate||o===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof s.getSnapshotBeforeUpdate||o===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=d),s.props=r,s.state=d,s.context=c,r=u):("function"!=typeof s.componentDidUpdate||o===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=4),"function"!=typeof s.getSnapshotBeforeUpdate||o===e.memoizedProps&&l===e.memoizedState||(t.effectTag|=256),r=!1);return Gs(e,t,n,r,i,a)}function Gs(e,t,n,r,a,i){Ds(e,t);var s=0!=(64&t.effectTag);if(!r&&!s)return a&&_a(t,n,!1),Ws(e,t,i);r=t.stateNode,Is.current=t;var o=s&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&s?(t.child=Ei(t,e.child,null,i),t.child=Ei(t,null,o,i)):Os(e,t,o,i),t.memoizedState=r.state,a&&_a(t,n,!0),t.child}function Us(e){var t=e.stateNode;t.pendingContext?ya(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ya(0,t.context,!1),xi(e,t.containerInfo)}var Ls,js,Ms,Bs={dehydrated:null,retryTime:0};function Ks(e,t,n){var r,a=t.mode,i=t.pendingProps,s=Hi.current,o=!1;if((r=0!=(64&t.effectTag))||(r=0!=(2&s)&&(null===e||null!==e.memoizedState)),r?(o=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(s|=1),ca(Hi,1&s),null===e){if(void 0!==i.fallback&&Es(t),o){if(o=i.fallback,(i=Il(null,a,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=Il(o,a,n,null)).return=t,i.sibling=n,t.memoizedState=Bs,t.child=i,n}return a=i.children,t.memoizedState=null,t.child=ki(t,null,a,n)}if(null!==e.memoizedState){if(a=(e=e.child).sibling,o){if(i=i.fallback,(n=Tl(e,e.pendingProps)).return=t,0==(2&t.mode)&&(o=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=o;null!==o;)o.return=n,o=o.sibling;return(a=Tl(a,i)).return=t,n.sibling=a,n.childExpirationTime=0,t.memoizedState=Bs,t.child=n,a}return n=Ei(t,e.child,i.children,n),t.memoizedState=null,t.child=n}if(e=e.child,o){if(o=i.fallback,(i=Il(null,a,0,null)).return=t,i.child=e,null!==e&&(e.return=i),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=Il(o,a,n,null)).return=t,i.sibling=n,n.effectTag|=2,i.childExpirationTime=0,t.memoizedState=Bs,t.child=i,n}return t.memoizedState=null,t.child=Ei(t,e,i.children,n)}function qs(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),ti(e.return,t)}function Vs(e,t,n,r,a,i){var s=e.memoizedState;null===s?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:a,lastEffect:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailExpiration=0,s.tailMode=a,s.lastEffect=i)}function $s(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail;if(Os(e,t,r.children,n),0!=(2&(r=Hi.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&qs(e,n);else if(19===e.tag)qs(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ca(Hi,r),0==(2&t.mode))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===Fi(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Vs(t,!1,a,n,i,t.lastEffect);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===Fi(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Vs(t,!0,n,null,i,t.lastEffect);break;case"together":Vs(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Ws(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&sl(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(s(153));if(null!==t.child){for(n=Tl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Tl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function zs(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Js(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return ma(t.type)&&Sa(),null;case 3:return Ni(),la(da),la(pa),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!Ts(t)||(t.effectTag|=4),null;case 5:Di(t),n=Oi(Ai.current);var i=t.type;if(null!==e&&null!=t.stateNode)js(e,t,i,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(s(166));return null}if(e=Oi(Ci.current),Ts(t)){r=t.stateNode,i=t.type;var o=t.memoizedProps;switch(r[En]=t,r[kn]=o,i){case"iframe":case"object":case"embed":Wt("load",r);break;case"video":case"audio":for(e=0;e<Xe.length;e++)Wt(Xe[e],r);break;case"source":Wt("error",r);break;case"img":case"image":case"link":Wt("error",r),Wt("load",r);break;case"form":Wt("reset",r),Wt("submit",r);break;case"details":Wt("toggle",r);break;case"input":we(r,o),Wt("invalid",r),ln(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Wt("invalid",r),ln(n,"onChange");break;case"textarea":xe(r,o),Wt("invalid",r),ln(n,"onChange")}for(var l in an(i,o),e=null,o)if(o.hasOwnProperty(l)){var c=o[l];"children"===l?"string"==typeof c?r.textContent!==c&&(e=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(e=["children",""+c]):E.hasOwnProperty(l)&&null!=c&&ln(n,l)}switch(i){case"input":_e(r),Te(r,o,!0);break;case"textarea":_e(r),Re(r);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(r.onclick=cn)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(l=9===n.nodeType?n:n.ownerDocument,e===on&&(e=Fe(i)),e===on?"script"===i?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(i,{is:r.is}):(e=l.createElement(i),"select"===i&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,i),e[En]=t,e[kn]=r,Ls(e,t),t.stateNode=e,l=sn(i,r),i){case"iframe":case"object":case"embed":Wt("load",e),c=r;break;case"video":case"audio":for(c=0;c<Xe.length;c++)Wt(Xe[c],e);c=r;break;case"source":Wt("error",e),c=r;break;case"img":case"image":case"link":Wt("error",e),Wt("load",e),c=r;break;case"form":Wt("reset",e),Wt("submit",e),c=r;break;case"details":Wt("toggle",e),c=r;break;case"input":we(e,r),c=Pe(e,r),Wt("invalid",e),ln(n,"onChange");break;case"option":c=Ie(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},c=a({},r,{value:void 0}),Wt("invalid",e),ln(n,"onChange");break;case"textarea":xe(e,r),c=Oe(e,r),Wt("invalid",e),ln(n,"onChange");break;default:c=r}an(i,c);var u=c;for(o in u)if(u.hasOwnProperty(o)){var p=u[o];"style"===o?nn(e,p):"dangerouslySetInnerHTML"===o?null!=(p=p?p.__html:void 0)&&Le(e,p):"children"===o?"string"==typeof p?("textarea"!==i||""!==p)&&je(e,p):"number"==typeof p&&je(e,""+p):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(E.hasOwnProperty(o)?null!=p&&ln(n,o):null!=p&&Q(e,o,p,l))}switch(i){case"input":_e(e),Te(e,r,!1);break;case"textarea":_e(e),Re(e);break;case"option":null!=r.value&&e.setAttribute("value",""+ge(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?Ae(e,!!r.multiple,n,!1):null!=r.defaultValue&&Ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof c.onClick&&(e.onclick=cn)}yn(i,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Ms(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(s(166));n=Oi(Ai.current),Oi(Ci.current),Ts(t)?(n=t.stateNode,r=t.memoizedProps,n[En]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[En]=t,t.stateNode=n)}return null;case 13:return la(Hi),r=t.memoizedState,0!=(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&Ts(t):(r=null!==(i=e.memoizedState),n||null===i||null!==(i=e.child.sibling)&&(null!==(o=t.firstEffect)?(t.firstEffect=i,i.nextEffect=o):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),n&&!r&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Hi.current)?Co===_o&&(Co=bo):(Co!==_o&&Co!==bo||(Co=Po),0!==No&&null!==Eo&&(Rl(Eo,To),Dl(Eo,No)))),(n||r)&&(t.effectTag|=4),null);case 4:return Ni(),null;case 10:return ei(t),null;case 17:return ma(t.type)&&Sa(),null;case 19:if(la(Hi),null===(r=t.memoizedState))return null;if(i=0!=(64&t.effectTag),null===(o=r.rendering)){if(i)zs(r,!1);else if(Co!==_o||null!==e&&0!=(64&e.effectTag))for(o=t.child;null!==o;){if(null!==(e=Fi(o))){for(t.effectTag|=64,zs(r,!1),null!==(i=e.updateQueue)&&(t.updateQueue=i,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)o=n,(i=r).effectTag&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,null===(e=i.alternate)?(i.childExpirationTime=0,i.expirationTime=o,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null):(i.childExpirationTime=e.childExpirationTime,i.expirationTime=e.expirationTime,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,o=e.dependencies,i.dependencies=null===o?null:{expirationTime:o.expirationTime,firstContext:o.firstContext,responders:o.responders}),r=r.sibling;return ca(Hi,1&Hi.current|2),t.child}o=o.sibling}}else{if(!i)if(null!==(e=Fi(o))){if(t.effectTag|=64,i=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),zs(r,!0),null===r.tail&&"hidden"===r.tailMode&&!o.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*La()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,i=!0,zs(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(o.sibling=t.child,t.child=o):(null!==(n=r.last)?n.sibling=o:t.child=o,r.last=o)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=La()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=La(),n.sibling=null,t=Hi.current,ca(Hi,i?1&t|2:1&t),n):null}throw Error(s(156,t.tag))}function Xs(e){switch(e.tag){case 1:ma(e.type)&&Sa();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Ni(),la(da),la(pa),0!=(64&(t=e.effectTag)))throw Error(s(285));return e.effectTag=-4097&t|64,e;case 5:return Di(e),null;case 13:return la(Hi),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return la(Hi),null;case 4:return Ni(),null;case 10:return ei(e),null;default:return null}}function Qs(e,t){return{value:e,source:t,stack:ye(t)}}Ls=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},js=function(e,t,n,r,i){var s=e.memoizedProps;if(s!==r){var o,l,c=t.stateNode;switch(Oi(Ci.current),e=null,n){case"input":s=Pe(c,s),r=Pe(c,r),e=[];break;case"option":s=Ie(c,s),r=Ie(c,r),e=[];break;case"select":s=a({},s,{value:void 0}),r=a({},r,{value:void 0}),e=[];break;case"textarea":s=Oe(c,s),r=Oe(c,r),e=[];break;default:"function"!=typeof s.onClick&&"function"==typeof r.onClick&&(c.onclick=cn)}for(o in an(n,r),n=null,s)if(!r.hasOwnProperty(o)&&s.hasOwnProperty(o)&&null!=s[o])if("style"===o)for(l in c=s[o])c.hasOwnProperty(l)&&(n||(n={}),n[l]="");else"dangerouslySetInnerHTML"!==o&&"children"!==o&&"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(E.hasOwnProperty(o)?e||(e=[]):(e=e||[]).push(o,null));for(o in r){var u=r[o];if(c=null!=s?s[o]:void 0,r.hasOwnProperty(o)&&u!==c&&(null!=u||null!=c))if("style"===o)if(c){for(l in c)!c.hasOwnProperty(l)||u&&u.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in u)u.hasOwnProperty(l)&&c[l]!==u[l]&&(n||(n={}),n[l]=u[l])}else n||(e||(e=[]),e.push(o,n)),n=u;else"dangerouslySetInnerHTML"===o?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(e=e||[]).push(o,u)):"children"===o?c===u||"string"!=typeof u&&"number"!=typeof u||(e=e||[]).push(o,""+u):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&(E.hasOwnProperty(o)?(null!=u&&ln(i,o),e||c===u||(e=[])):(e=e||[]).push(o,u))}n&&(e=e||[]).push("style",n),i=e,(t.updateQueue=i)&&(t.effectTag|=4)}},Ms=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var Ys="function"==typeof WeakSet?WeakSet:Set;function Zs(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ye(n)),null!==n&&Se(n.type),t=t.value,null!==e&&1===e.tag&&Se(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function eo(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){gl(e,t)}else t.current=null}function to(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:za(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(s(163))}function no(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function ro(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ao(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void ro(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:za(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&pi(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}pi(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&yn(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Ft(n)))));case 19:case 17:case 20:case 21:return}throw Error(s(163))}function io(e,t,n){switch("function"==typeof Pl&&Pl(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;Ba(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var a=t;try{n()}catch(e){gl(a,e)}}e=e.next}while(e!==r)}))}break;case 1:eo(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){gl(e,t)}}(t,n);break;case 5:eo(t);break;case 4:co(e,t,n)}}function so(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&so(t)}function oo(e){return 5===e.tag||3===e.tag||4===e.tag}function lo(e){e:{for(var t=e.return;null!==t;){if(oo(t)){var n=t;break e}t=t.return}throw Error(s(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(s(161))}16&n.effectTag&&(je(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||oo(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?function e(t,n,r){var a=t.tag,i=5===a||6===a;if(i)t=i?t.stateNode:t.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=cn));else if(4!==a&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var a=t.tag,i=5===a||6===a;if(i)t=i?t.stateNode:t.stateNode.instance,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==a&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}function co(e,t,n){for(var r,a,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(s(160));switch(r=o.stateNode,o.tag){case 5:a=!1;break e;case 3:case 4:r=r.containerInfo,a=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag){e:for(var l=e,c=i,u=n,p=c;;)if(io(l,p,u),null!==p.child&&4!==p.tag)p.child.return=p,p=p.child;else{if(p===c)break e;for(;null===p.sibling;){if(null===p.return||p.return===c)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}a?(l=r,c=i.stateNode,8===l.nodeType?l.parentNode.removeChild(c):l.removeChild(c)):r.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){r=i.stateNode.containerInfo,a=!0,i.child.return=i,i=i.child;continue}}else if(io(e,i,n),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function uo(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void no(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,a=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[kn]=r,"input"===e&&"radio"===r.type&&null!=r.name&&Ee(n,r),sn(e,a),t=sn(e,r),a=0;a<i.length;a+=2){var o=i[a],l=i[a+1];"style"===o?nn(n,l):"dangerouslySetInnerHTML"===o?Le(n,l):"children"===o?je(n,l):Q(n,o,l,t)}switch(e){case"input":ke(n,r);break;case"textarea":Ne(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Ae(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Ae(n,!!r.multiple,r.defaultValue,!0):Ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(s(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Ft(t.containerInfo)));case 12:return;case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,Do=La()),null!==n)e:for(e=n;;){if(5===e.tag)i=e.stateNode,r?"function"==typeof(i=i.style).setProperty?i.setProperty("display","none","important"):i.display="none":(i=e.stateNode,a=null!=(a=e.memoizedProps.style)&&a.hasOwnProperty("display")?a.display:null,i.style.display=tn("display",a));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(i=e.child.sibling).return=e,e=i;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void po(t);case 19:return void po(t);case 17:return}throw Error(s(163))}function po(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ys),t.forEach((function(t){var r=_l.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var ho="function"==typeof WeakMap?WeakMap:Map;function fo(e,t,n){(n=oi(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Fo||(Fo=!0,Go=r),Zs(e,t)},n}function mo(e,t,n){(n=oi(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var a=t.value;n.payload=function(){return Zs(e,t),r(a)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Uo?Uo=new Set([this]):Uo.add(this),Zs(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var So,yo=Math.ceil,go=X.ReactCurrentDispatcher,vo=X.ReactCurrentOwner,_o=0,bo=3,Po=4,wo=0,Eo=null,ko=null,To=0,Co=_o,Io=null,Ao=1073741823,Oo=1073741823,xo=null,No=0,Ro=!1,Do=0,Ho=null,Fo=!1,Go=null,Uo=null,Lo=!1,jo=null,Mo=90,Bo=null,Ko=0,qo=null,Vo=0;function $o(){return 0!=(48&wo)?1073741821-(La()/10|0):0!==Vo?Vo:Vo=1073741821-(La()/10|0)}function Wo(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var r=ja();if(0==(4&t))return 99===r?1073741823:1073741822;if(0!=(16&wo))return To;if(null!==n)e=Wa(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=Wa(e,150,100);break;case 97:case 96:e=Wa(e,5e3,250);break;case 95:e=2;break;default:throw Error(s(326))}return null!==Eo&&e===To&&--e,e}function zo(e,t){if(50<Ko)throw Ko=0,qo=null,Error(s(185));if(null!==(e=Jo(e,t))){var n=ja();1073741823===t?0!=(8&wo)&&0==(48&wo)?Zo(e):(Qo(e),0===wo&&Va()):Qo(e),0==(4&wo)||98!==n&&99!==n||(null===Bo?Bo=new Map([[e,t]]):(void 0===(n=Bo.get(e))||n>t)&&Bo.set(e,t))}}function Jo(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,a=null;if(null===r&&3===e.tag)a=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){a=r.stateNode;break}r=r.return}return null!==a&&(Eo===a&&(sl(t),Co===Po&&Rl(a,To)),Dl(a,t)),a}function Xo(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Nl(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function Qo(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=qa(Zo.bind(null,e));else{var t=Xo(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=$o();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var a=e.callbackPriority;if(e.callbackExpirationTime===t&&a>=r)return;n!==Na&&wa(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?qa(Zo.bind(null,e)):Ka(r,Yo.bind(null,e),{timeout:10*(1073741821-t)-La()}),e.callbackNode=t}}}function Yo(e,t){if(Vo=0,t)return Hl(e,t=$o()),Qo(e),null;var n=Xo(e);if(0!==n){if(t=e.callbackNode,0!=(48&wo))throw Error(s(327));if(ml(),e===Eo&&n===To||nl(e,n),null!==ko){var r=wo;wo|=16;for(var a=al();;)try{ll();break}catch(t){rl(e,t)}if(Za(),wo=r,go.current=a,1===Co)throw t=Io,nl(e,n),Rl(e,n),Qo(e),t;if(null===ko)switch(a=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=Co,Eo=null,r){case _o:case 1:throw Error(s(345));case 2:Hl(e,2<n?2:n);break;case bo:if(Rl(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=pl(a)),1073741823===Ao&&10<(a=Do+500-La())){if(Ro){var i=e.lastPingedTime;if(0===i||i>=n){e.lastPingedTime=n,nl(e,n);break}}if(0!==(i=Xo(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=vn(dl.bind(null,e),a);break}dl(e);break;case Po:if(Rl(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=pl(a)),Ro&&(0===(a=e.lastPingedTime)||a>=n)){e.lastPingedTime=n,nl(e,n);break}if(0!==(a=Xo(e))&&a!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Oo?r=10*(1073741821-Oo)-La():1073741823===Ao?r=0:(r=10*(1073741821-Ao)-5e3,0>(r=(a=La())-r)&&(r=0),(n=10*(1073741821-n)-a)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*yo(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=vn(dl.bind(null,e),r);break}dl(e);break;case 5:if(1073741823!==Ao&&null!==xo){i=Ao;var o=xo;if(0>=(r=0|o.busyMinDurationMs)?r=0:(a=0|o.busyDelayMs,r=(i=La()-(10*(1073741821-i)-(0|o.timeoutMs||5e3)))<=a?0:a+r-i),10<r){Rl(e,n),e.timeoutHandle=vn(dl.bind(null,e),r);break}}dl(e);break;default:throw Error(s(329))}if(Qo(e),e.callbackNode===t)return Yo.bind(null,e)}}return null}function Zo(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!=(48&wo))throw Error(s(327));if(ml(),e===Eo&&t===To||nl(e,t),null!==ko){var n=wo;wo|=16;for(var r=al();;)try{ol();break}catch(t){rl(e,t)}if(Za(),wo=n,go.current=r,1===Co)throw n=Io,nl(e,t),Rl(e,t),Qo(e),n;if(null!==ko)throw Error(s(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Eo=null,dl(e),Qo(e)}return null}function el(e,t){var n=wo;wo|=1;try{return e(t)}finally{0===(wo=n)&&Va()}}function tl(e,t){var n=wo;wo&=-2,wo|=8;try{return e(t)}finally{0===(wo=n)&&Va()}}function nl(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,_n(n)),null!==ko)for(n=ko.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&Sa();break;case 3:Ni(),la(da),la(pa);break;case 5:Di(r);break;case 4:Ni();break;case 13:case 19:la(Hi);break;case 10:ei(r)}n=n.return}Eo=e,ko=Tl(e.current,null),To=t,Co=_o,Io=null,Oo=Ao=1073741823,xo=null,No=0,Ro=!1}function rl(e,t){for(;;){try{if(Za(),Ui.current=ms,qi)for(var n=Mi.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(ji=0,Ki=Bi=Mi=null,qi=!1,null===ko||null===ko.return)return Co=1,Io=t,ko=null;e:{var a=e,i=ko.return,s=ko,o=t;if(t=To,s.effectTag|=2048,s.firstEffect=s.lastEffect=null,null!==o&&"object"==typeof o&&"function"==typeof o.then){var l=o;if(0==(2&s.mode)){var c=s.alternate;c?(s.updateQueue=c.updateQueue,s.memoizedState=c.memoizedState,s.expirationTime=c.expirationTime):(s.updateQueue=null,s.memoizedState=null)}var u=0!=(1&Hi.current),p=i;do{var d;if(d=13===p.tag){var h=p.memoizedState;if(null!==h)d=null!==h.dehydrated;else{var f=p.memoizedProps;d=void 0!==f.fallback&&(!0!==f.unstable_avoidThisFallback||!u)}}if(d){var m=p.updateQueue;if(null===m){var S=new Set;S.add(l),p.updateQueue=S}else m.add(l);if(0==(2&p.mode)){if(p.effectTag|=64,s.effectTag&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var y=oi(1073741823,null);y.tag=2,li(s,y)}s.expirationTime=1073741823;break e}o=void 0,s=t;var g=a.pingCache;if(null===g?(g=a.pingCache=new ho,o=new Set,g.set(l,o)):void 0===(o=g.get(l))&&(o=new Set,g.set(l,o)),!o.has(s)){o.add(s);var v=vl.bind(null,a,l,s);l.then(v,v)}p.effectTag|=4096,p.expirationTime=t;break e}p=p.return}while(null!==p);o=Error((Se(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ye(s))}5!==Co&&(Co=2),o=Qs(o,s),p=i;do{switch(p.tag){case 3:l=o,p.effectTag|=4096,p.expirationTime=t,ci(p,fo(p,l,t));break e;case 1:l=o;var _=p.type,b=p.stateNode;if(0==(64&p.effectTag)&&("function"==typeof _.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===Uo||!Uo.has(b)))){p.effectTag|=4096,p.expirationTime=t,ci(p,mo(p,l,t));break e}}p=p.return}while(null!==p)}ko=ul(ko)}catch(e){t=e;continue}break}}function al(){var e=go.current;return go.current=ms,null===e?ms:e}function il(e,t){e<Ao&&2<e&&(Ao=e),null!==t&&e<Oo&&2<e&&(Oo=e,xo=t)}function sl(e){e>No&&(No=e)}function ol(){for(;null!==ko;)ko=cl(ko)}function ll(){for(;null!==ko&&!Ra();)ko=cl(ko)}function cl(e){var t=So(e.alternate,e,To);return e.memoizedProps=e.pendingProps,null===t&&(t=ul(e)),vo.current=null,t}function ul(e){ko=e;do{var t=ko.alternate;if(e=ko.return,0==(2048&ko.effectTag)){if(t=Js(t,ko,To),1===To||1!==ko.childExpirationTime){for(var n=0,r=ko.child;null!==r;){var a=r.expirationTime,i=r.childExpirationTime;a>n&&(n=a),i>n&&(n=i),r=r.sibling}ko.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=ko.firstEffect),null!==ko.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=ko.firstEffect),e.lastEffect=ko.lastEffect),1<ko.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=ko:e.firstEffect=ko,e.lastEffect=ko))}else{if(null!==(t=Xs(ko)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=ko.sibling))return t;ko=e}while(null!==ko);return Co===_o&&(Co=5),null}function pl(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function dl(e){var t=ja();return Ba(99,hl.bind(null,e,t)),null}function hl(e,t){do{ml()}while(null!==jo);if(0!=(48&wo))throw Error(s(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(s(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var a=pl(n);if(e.firstPendingTime=a,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Eo&&(ko=Eo=null,To=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,a=n.firstEffect):a=n:a=n.firstEffect,null!==a){var i=wo;wo|=32,vo.current=null,mn=$t;var o=hn();if(fn(o)){if("selectionStart"in o)var l={start:o.selectionStart,end:o.selectionEnd};else e:{var c=(l=(l=o.ownerDocument)&&l.defaultView||window).getSelection&&l.getSelection();if(c&&0!==c.rangeCount){l=c.anchorNode;var u=c.anchorOffset,p=c.focusNode;c=c.focusOffset;try{l.nodeType,p.nodeType}catch(e){l=null;break e}var d=0,h=-1,f=-1,m=0,S=0,y=o,g=null;t:for(;;){for(var v;y!==l||0!==u&&3!==y.nodeType||(h=d+u),y!==p||0!==c&&3!==y.nodeType||(f=d+c),3===y.nodeType&&(d+=y.nodeValue.length),null!==(v=y.firstChild);)g=y,y=v;for(;;){if(y===o)break t;if(g===l&&++m===u&&(h=d),g===p&&++S===c&&(f=d),null!==(v=y.nextSibling))break;g=(y=g).parentNode}y=v}l=-1===h||-1===f?null:{start:h,end:f}}else l=null}l=l||{start:0,end:0}}else l=null;Sn={activeElementDetached:null,focusedElem:o,selectionRange:l},$t=!1,Ho=a;do{try{fl()}catch(e){if(null===Ho)throw Error(s(330));gl(Ho,e),Ho=Ho.nextEffect}}while(null!==Ho);Ho=a;do{try{for(o=e,l=t;null!==Ho;){var _=Ho.effectTag;if(16&_&&je(Ho.stateNode,""),128&_){var b=Ho.alternate;if(null!==b){var P=b.ref;null!==P&&("function"==typeof P?P(null):P.current=null)}}switch(1038&_){case 2:lo(Ho),Ho.effectTag&=-3;break;case 6:lo(Ho),Ho.effectTag&=-3,uo(Ho.alternate,Ho);break;case 1024:Ho.effectTag&=-1025;break;case 1028:Ho.effectTag&=-1025,uo(Ho.alternate,Ho);break;case 4:uo(Ho.alternate,Ho);break;case 8:co(o,u=Ho,l),so(u)}Ho=Ho.nextEffect}}catch(e){if(null===Ho)throw Error(s(330));gl(Ho,e),Ho=Ho.nextEffect}}while(null!==Ho);if(P=Sn,b=hn(),_=P.focusedElem,l=P.selectionRange,b!==_&&_&&_.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(_.ownerDocument.documentElement,_)){null!==l&&fn(_)&&(b=l.start,void 0===(P=l.end)&&(P=b),"selectionStart"in _?(_.selectionStart=b,_.selectionEnd=Math.min(P,_.value.length)):(P=(b=_.ownerDocument||document)&&b.defaultView||window).getSelection&&(P=P.getSelection(),u=_.textContent.length,o=Math.min(l.start,u),l=void 0===l.end?o:Math.min(l.end,u),!P.extend&&o>l&&(u=l,l=o,o=u),u=dn(_,o),p=dn(_,l),u&&p&&(1!==P.rangeCount||P.anchorNode!==u.node||P.anchorOffset!==u.offset||P.focusNode!==p.node||P.focusOffset!==p.offset)&&((b=b.createRange()).setStart(u.node,u.offset),P.removeAllRanges(),o>l?(P.addRange(b),P.extend(p.node,p.offset)):(b.setEnd(p.node,p.offset),P.addRange(b))))),b=[];for(P=_;P=P.parentNode;)1===P.nodeType&&b.push({element:P,left:P.scrollLeft,top:P.scrollTop});for("function"==typeof _.focus&&_.focus(),_=0;_<b.length;_++)(P=b[_]).element.scrollLeft=P.left,P.element.scrollTop=P.top}$t=!!mn,Sn=mn=null,e.current=n,Ho=a;do{try{for(_=e;null!==Ho;){var w=Ho.effectTag;if(36&w&&ao(_,Ho.alternate,Ho),128&w){b=void 0;var E=Ho.ref;if(null!==E){var k=Ho.stateNode;switch(Ho.tag){case 5:b=k;break;default:b=k}"function"==typeof E?E(b):E.current=b}}Ho=Ho.nextEffect}}catch(e){if(null===Ho)throw Error(s(330));gl(Ho,e),Ho=Ho.nextEffect}}while(null!==Ho);Ho=null,Da(),wo=i}else e.current=n;if(Lo)Lo=!1,jo=e,Mo=t;else for(Ho=a;null!==Ho;)t=Ho.nextEffect,Ho.nextEffect=null,Ho=t;if(0===(t=e.firstPendingTime)&&(Uo=null),1073741823===t?e===qo?Ko++:(Ko=0,qo=e):Ko=0,"function"==typeof bl&&bl(n.stateNode,r),Qo(e),Fo)throw Fo=!1,e=Go,Go=null,e;return 0!=(8&wo)||Va(),null}function fl(){for(;null!==Ho;){var e=Ho.effectTag;0!=(256&e)&&to(Ho.alternate,Ho),0==(512&e)||Lo||(Lo=!0,Ka(97,(function(){return ml(),null}))),Ho=Ho.nextEffect}}function ml(){if(90!==Mo){var e=97<Mo?97:Mo;return Mo=90,Ba(e,Sl)}}function Sl(){if(null===jo)return!1;var e=jo;if(jo=null,0!=(48&wo))throw Error(s(331));var t=wo;for(wo|=32,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:no(5,n),ro(5,n)}}catch(t){if(null===e)throw Error(s(330));gl(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return wo=t,Va(),!0}function yl(e,t,n){li(e,t=fo(e,t=Qs(n,t),1073741823)),null!==(e=Jo(e,1073741823))&&Qo(e)}function gl(e,t){if(3===e.tag)yl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){yl(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Uo||!Uo.has(r))){li(n,e=mo(n,e=Qs(t,e),1073741823)),null!==(n=Jo(n,1073741823))&&Qo(n);break}}n=n.return}}function vl(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),Eo===e&&To===n?Co===Po||Co===bo&&1073741823===Ao&&La()-Do<500?nl(e,To):Ro=!0:Nl(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,Qo(e)))}function _l(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=Wo(t=$o(),e,null)),null!==(e=Jo(e,t))&&Qo(e)}So=function(e,t,n){var r=t.expirationTime;if(null!==e){var a=t.pendingProps;if(e.memoizedProps!==a||da.current)As=!0;else{if(r<n){switch(As=!1,t.tag){case 3:Us(t),Cs();break;case 5:if(Ri(t),4&t.mode&&1!==n&&a.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:ma(t.type)&&va(t);break;case 4:xi(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,a=t.type._context,ca(Ja,a._currentValue),a._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Ks(e,t,n):(ca(Hi,1&Hi.current),null!==(t=Ws(e,t,n))?t.sibling:null);ca(Hi,1&Hi.current);break;case 19:if(r=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(r)return $s(e,t,n);t.effectTag|=64}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null),ca(Hi,Hi.current),!r)return null}return Ws(e,t,n)}As=!1}}else As=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,a=fa(t,pa.current),ni(t,n),a=Wi(null,t,r,e,a,n),t.effectTag|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,ma(r)){var i=!0;va(t)}else i=!1;t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,ii(t);var o=r.getDerivedStateFromProps;"function"==typeof o&&fi(t,r,o,e),a.updater=mi,t.stateNode=a,a._reactInternalFiber=t,vi(t,r,e,n),t=Gs(null,t,r,!0,i,n)}else t.tag=0,Os(null,t,a,n),t=t.child;return t;case 16:e:{if(a=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(a),1!==a._status)throw a._result;switch(a=a._result,t.type=a,i=t.tag=function(e){if("function"==typeof e)return kl(e)?1:0;if(null!=e){if((e=e.$$typeof)===le)return 11;if(e===pe)return 14}return 2}(a),e=za(a,e),i){case 0:t=Hs(null,t,a,e,n);break e;case 1:t=Fs(null,t,a,e,n);break e;case 11:t=xs(null,t,a,e,n);break e;case 14:t=Ns(null,t,a,za(a.type,e),r,n);break e}throw Error(s(306,a,""))}return t;case 0:return r=t.type,a=t.pendingProps,Hs(e,t,r,a=t.elementType===r?a:za(r,a),n);case 1:return r=t.type,a=t.pendingProps,Fs(e,t,r,a=t.elementType===r?a:za(r,a),n);case 3:if(Us(t),r=t.updateQueue,null===e||null===r)throw Error(s(282));if(r=t.pendingProps,a=null!==(a=t.memoizedState)?a.element:null,si(e,t),ui(t,r,null,n),(r=t.memoizedState.element)===a)Cs(),t=Ws(e,t,n);else{if((a=t.stateNode.hydrate)&&(_s=bn(t.stateNode.containerInfo.firstChild),vs=t,a=bs=!0),a)for(n=ki(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Os(e,t,r,n),Cs();t=t.child}return t;case 5:return Ri(t),null===e&&Es(t),r=t.type,a=t.pendingProps,i=null!==e?e.memoizedProps:null,o=a.children,gn(r,a)?o=null:null!==i&&gn(r,i)&&(t.effectTag|=16),Ds(e,t),4&t.mode&&1!==n&&a.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Os(e,t,o,n),t=t.child),t;case 6:return null===e&&Es(t),null;case 13:return Ks(e,t,n);case 4:return xi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ei(t,null,r,n):Os(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,xs(e,t,r,a=t.elementType===r?a:za(r,a),n);case 7:return Os(e,t,t.pendingProps,n),t.child;case 8:case 12:return Os(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,a=t.pendingProps,o=t.memoizedProps,i=a.value;var l=t.type._context;if(ca(Ja,l._currentValue),l._currentValue=i,null!==o)if(l=o.value,0===(i=Gr(l,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,i):1073741823))){if(o.children===a.children&&!da.current){t=Ws(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.dependencies;if(null!==c){o=l.child;for(var u=c.firstContext;null!==u;){if(u.context===r&&0!=(u.observedBits&i)){1===l.tag&&((u=oi(n,null)).tag=2,li(l,u)),l.expirationTime<n&&(l.expirationTime=n),null!==(u=l.alternate)&&u.expirationTime<n&&(u.expirationTime=n),ti(l.return,n),c.expirationTime<n&&(c.expirationTime=n);break}u=u.next}}else o=10===l.tag&&l.type===t.type?null:l.child;if(null!==o)o.return=l;else for(o=l;null!==o;){if(o===t){o=null;break}if(null!==(l=o.sibling)){l.return=o.return,o=l;break}o=o.return}l=o}Os(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=(i=t.pendingProps).children,ni(t,n),r=r(a=ri(a,i.unstable_observedBits)),t.effectTag|=1,Os(e,t,r,n),t.child;case 14:return i=za(a=t.type,t.pendingProps),Ns(e,t,a,i=za(a.type,i),r,n);case 15:return Rs(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:za(r,a),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,ma(r)?(e=!0,va(t)):e=!1,ni(t,n),yi(t,r,a),vi(t,r,a,n),Gs(null,t,r,!0,e,n);case 19:return $s(e,t,n)}throw Error(s(156,t.tag))};var bl=null,Pl=null;function wl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function El(e,t,n,r){return new wl(e,t,n,r)}function kl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Tl(e,t){var n=e.alternate;return null===n?((n=El(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Cl(e,t,n,r,a,i){var o=2;if(r=e,"function"==typeof e)kl(e)&&(o=1);else if("string"==typeof e)o=5;else e:switch(e){case ne:return Il(n.children,a,i,t);case oe:o=8,a|=7;break;case re:o=8,a|=1;break;case ae:return(e=El(12,n,t,8|a)).elementType=ae,e.type=ae,e.expirationTime=i,e;case ce:return(e=El(13,n,t,a)).type=ce,e.elementType=ce,e.expirationTime=i,e;case ue:return(e=El(19,n,t,a)).elementType=ue,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case ie:o=10;break e;case se:o=9;break e;case le:o=11;break e;case pe:o=14;break e;case de:o=16,r=null;break e;case he:o=22;break e}throw Error(s(130,null==e?e:typeof e,""))}return(t=El(o,n,t,a)).elementType=e,t.type=r,t.expirationTime=i,t}function Il(e,t,n,r){return(e=El(7,e,r,t)).expirationTime=n,e}function Al(e,t,n){return(e=El(6,e,null,t)).expirationTime=n,e}function Ol(e,t,n){return(t=El(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function xl(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Nl(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Rl(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Dl(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Hl(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Fl(e,t,n,r){var a=t.current,i=$o(),o=di.suspense;i=Wo(i,a,o);e:if(n){t:{if(Ze(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(s(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(ma(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(s(171))}if(1===n.tag){var c=n.type;if(ma(c)){n=ga(n,c,l);break e}}n=l}else n=ua;return null===t.context?t.context=n:t.pendingContext=n,(t=oi(i,o)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),li(a,t),zo(a,i),i}function Gl(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Ul(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function Ll(e,t){Ul(e,t),(e=e.alternate)&&Ul(e,t)}function jl(e,t,n){var r=new xl(e,t,n=null!=n&&!0===n.hydrate),a=El(3,null,null,2===t?7:1===t?3:0);r.current=a,a.stateNode=r,ii(a),e[Tn]=r.current,n&&0!==t&&function(e,t){var n=Ye(t);Tt.forEach((function(e){ft(e,t,n)})),Ct.forEach((function(e){ft(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function Ml(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Bl(e,t,n,r,a){var i=n._reactRootContainer;if(i){var s=i._internalRoot;if("function"==typeof a){var o=a;a=function(){var e=Gl(s);o.call(e)}}Fl(t,s,e,a)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new jl(e,0,t?{hydrate:!0}:void 0)}(n,r),s=i._internalRoot,"function"==typeof a){var l=a;a=function(){var e=Gl(s);l.call(e)}}tl((function(){Fl(t,s,e,a)}))}return Gl(s)}function Kl(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function ql(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ml(t))throw Error(s(200));return Kl(e,t,null,n)}jl.prototype.render=function(e){Fl(e,this._internalRoot,null,null)},jl.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Fl(null,e,null,(function(){t[Tn]=null}))},mt=function(e){if(13===e.tag){var t=Wa($o(),150,100);zo(e,t),Ll(e,t)}},St=function(e){13===e.tag&&(zo(e,3),Ll(e,3))},yt=function(e){if(13===e.tag){var t=$o();zo(e,t=Wo(t,e,null)),Ll(e,t)}},I=function(e,t,n){switch(t){case"input":if(ke(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=On(r);if(!a)throw Error(s(90));be(r),ke(r,a)}}}break;case"textarea":Ne(e,n);break;case"select":null!=(t=n.value)&&Ae(e,!!n.multiple,t,!1)}},D=el,H=function(e,t,n,r,a){var i=wo;wo|=4;try{return Ba(98,e.bind(null,t,n,r,a))}finally{0===(wo=i)&&Va()}},F=function(){0==(49&wo)&&(function(){if(null!==Bo){var e=Bo;Bo=null,e.forEach((function(e,t){Hl(t,e),Qo(t)})),Va()}}(),ml())},G=function(e,t){var n=wo;wo|=2;try{return e(t)}finally{0===(wo=n)&&Va()}};var Vl,$l,Wl={Events:[In,An,On,T,w,Gn,function(e){at(e,Fn)},N,R,Qt,ot,ml,{current:!1}]};$l=(Vl={findFiberByHostInstance:Cn,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}).findFiberByHostInstance,function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);bl=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},Pl=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}}(a({},Vl,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:X.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=nt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return $l?$l(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null})),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Wl,t.createPortal=ql,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(s(188));throw Error(s(268,Object.keys(e)))}return e=null===(e=nt(t))?null:e.stateNode},t.flushSync=function(e,t){if(0!=(48&wo))throw Error(s(187));var n=wo;wo|=1;try{return Ba(99,e.bind(null,t))}finally{wo=n,Va()}},t.hydrate=function(e,t,n){if(!Ml(t))throw Error(s(200));return Bl(null,e,t,!0,n)},t.render=function(e,t,n){if(!Ml(t))throw Error(s(200));return Bl(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ml(e))throw Error(s(40));return!!e._reactRootContainer&&(tl((function(){Bl(null,null,e,!1,(function(){e._reactRootContainer=null,e[Tn]=null}))})),!0)},t.unstable_batchedUpdates=el,t.unstable_createPortal=function(e,t){return ql(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ml(n))throw Error(s(200));if(null==e||void 0===e._reactInternalFiber)throw Error(s(38));return Bl(e,t,n,!1,r)},t.version="16.14.0"},function(e,t,n){"use strict";e.exports=n(401)},function(e,t,n){"use strict";
/** @license React v0.19.1
 * scheduler.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 r,a,i,s,o;if("undefined"==typeof window||"function"!=typeof MessageChannel){var l=null,c=null,u=function(){if(null!==l)try{var e=t.unstable_now();l(!0,e),l=null}catch(e){throw setTimeout(u,0),e}},p=Date.now();t.unstable_now=function(){return Date.now()-p},r=function(e){null!==l?setTimeout(r,0,e):(l=e,setTimeout(u,0))},a=function(e,t){c=setTimeout(e,t)},i=function(){clearTimeout(c)},s=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,h=window.Date,f=window.setTimeout,m=window.clearTimeout;if("undefined"!=typeof console){var S=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof S&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof d&&"function"==typeof d.now)t.unstable_now=function(){return d.now()};else{var y=h.now();t.unstable_now=function(){return h.now()-y}}var g=!1,v=null,_=-1,b=5,P=0;s=function(){return t.unstable_now()>=P},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):b=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,E=w.port2;w.port1.onmessage=function(){if(null!==v){var e=t.unstable_now();P=e+b;try{v(!0,e)?E.postMessage(null):(g=!1,v=null)}catch(e){throw E.postMessage(null),e}}else g=!1},r=function(e){v=e,g||(g=!0,E.postMessage(null))},a=function(e,n){_=f((function(){e(t.unstable_now())}),n)},i=function(){m(_),_=-1}}function k(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,a=e[r];if(!(void 0!==a&&0<I(a,t)))break e;e[r]=t,e[n]=a,n=r}}function T(e){return void 0===(e=e[0])?null:e}function C(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length;r<a;){var i=2*(r+1)-1,s=e[i],o=i+1,l=e[o];if(void 0!==s&&0>I(s,n))void 0!==l&&0>I(l,s)?(e[r]=l,e[o]=n,r=o):(e[r]=s,e[i]=n,r=i);else{if(!(void 0!==l&&0>I(l,n)))break e;e[r]=l,e[o]=n,r=o}}}return t}return null}function I(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var A=[],O=[],x=1,N=null,R=3,D=!1,H=!1,F=!1;function G(e){for(var t=T(O);null!==t;){if(null===t.callback)C(O);else{if(!(t.startTime<=e))break;C(O),t.sortIndex=t.expirationTime,k(A,t)}t=T(O)}}function U(e){if(F=!1,G(e),!H)if(null!==T(A))H=!0,r(L);else{var t=T(O);null!==t&&a(U,t.startTime-e)}}function L(e,n){H=!1,F&&(F=!1,i()),D=!0;var r=R;try{for(G(n),N=T(A);null!==N&&(!(N.expirationTime>n)||e&&!s());){var o=N.callback;if(null!==o){N.callback=null,R=N.priorityLevel;var l=o(N.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?N.callback=l:N===T(A)&&C(A),G(n)}else C(A);N=T(A)}if(null!==N)var c=!0;else{var u=T(O);null!==u&&a(U,u.startTime-n),c=!1}return c}finally{N=null,R=r,D=!1}}function j(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var M=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){H||D||(H=!0,r(L))},t.unstable_getCurrentPriorityLevel=function(){return R},t.unstable_getFirstCallbackNode=function(){return T(A)},t.unstable_next=function(e){switch(R){case 1:case 2:case 3:var t=3;break;default:t=R}var n=R;R=t;try{return e()}finally{R=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=M,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=R;R=e;try{return t()}finally{R=n}},t.unstable_scheduleCallback=function(e,n,s){var o=t.unstable_now();if("object"==typeof s&&null!==s){var l=s.delay;l="number"==typeof l&&0<l?o+l:o,s="number"==typeof s.timeout?s.timeout:j(e)}else s=j(e),l=o;return e={id:x++,callback:n,priorityLevel:e,startTime:l,expirationTime:s=l+s,sortIndex:-1},l>o?(e.sortIndex=l,k(O,e),null===T(A)&&e===T(O)&&(F?i():F=!0,a(U,l-o))):(e.sortIndex=s,k(A,e),H||D||(H=!0,r(L))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();G(e);var n=T(A);return n!==N&&null!==N&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<N.expirationTime||s()},t.unstable_wrapCallback=function(e){var t=R;return function(){var n=R;R=t;try{return e.apply(this,arguments)}finally{R=n}}}},function(e,t,n){var r=n(168),a=n(56),i=Array.prototype.splice;e.exports=function(e,t){for(var n=e?t.length:0,s=n-1;n--;){var o=t[n];if(n==s||o!==l){var l=o;a(o)?i.call(e,o,1):r(e,o)}}return e}},function(e,t,n){var r=n(43);e.exports=function(e,t,n){for(var a=-1,i=e.length;++a<i;){var s=e[a],o=t(s);if(null!=o&&(void 0===l?o==o&&!r(o):n(o,l)))var l=o,c=s}return c}},function(e,t){e.exports=function(e,t){return e>t}},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e,t){return null!=e&&n.call(e,t)}},function(e,t){e.exports=require("@termius/windows-iap-bridge")},function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"FunctionToString",(function(){return zc})),n.d(r,"InboundFilters",(function(){return _u}));var a={};n.r(a),n.d(a,"GlobalHandlers",(function(){return Tp})),n.d(a,"TryCatch",(function(){return Ip})),n.d(a,"Breadcrumbs",(function(){return Op})),n.d(a,"LinkedErrors",(function(){return xp})),n.d(a,"UserAgent",(function(){return Rp}));var i={};n.r(i),n.d(i,"Severity",(function(){return yu})),n.d(i,"Status",(function(){return qp})),n.d(i,"addGlobalEventProcessor",(function(){return tu})),n.d(i,"addBreadcrumb",(function(){return lp})),n.d(i,"captureException",(function(){return ap})),n.d(i,"captureEvent",(function(){return sp})),n.d(i,"captureMessage",(function(){return ip})),n.d(i,"configureScope",(function(){return op})),n.d(i,"getHubFromCarrier",(function(){return mu})),n.d(i,"getCurrentHub",(function(){return hu})),n.d(i,"Hub",(function(){return uu})),n.d(i,"Scope",(function(){return Zc})),n.d(i,"setContext",(function(){return cp})),n.d(i,"setExtra",(function(){return dp})),n.d(i,"setExtras",(function(){return up})),n.d(i,"setTag",(function(){return hp})),n.d(i,"setTags",(function(){return pp})),n.d(i,"setUser",(function(){return fp})),n.d(i,"withScope",(function(){return mp})),n.d(i,"RendererBackend",(function(){return ud})),n.d(i,"RendererClient",(function(){return pd})),n.d(i,"init",(function(){return dd})),n.d(i,"showReportDialog",(function(){return hd})),n.d(i,"captureMinidump",(function(){return fd})),n.d(i,"flush",(function(){return md})),n.d(i,"close",(function(){return Sd}));var s=n(22),o=n.n(s),l=n(35),c=n.n(l),u=n(10),p=n(7),d=n(125);function h(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function f(e){return!!e&&!!e[ae]}function m(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===se}(e)||Array.isArray(e)||!!e[re]||!!(null===(t=e.constructor)||void 0===t?void 0:t[re])||P(e)||w(e))}function S(e,t,n){void 0===n&&(n=!1),0===y(e)?(n?Object.keys:oe)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function y(e){var t=e[ae];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:P(e)?2:w(e)?3:0}function g(e,t){return 2===y(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function v(e,t){return 2===y(e)?e.get(t):e[t]}function _(e,t,n){var r=y(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function b(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function P(e){return Z&&e instanceof Map}function w(e){return ee&&e instanceof Set}function E(e){return e.o||e.t}function k(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=le(e);delete t[ae];for(var n=oe(t),r=0;r<n.length;r++){var a=n[r],i=t[a];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function T(e,t){return void 0===t&&(t=!1),I(e)||f(e)||!m(e)||(y(e)>1&&(e.set=e.add=e.clear=e.delete=C),Object.freeze(e),t&&S(e,(function(e,t){return T(t,!0)}),!0)),e}function C(){h(2)}function I(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function A(e){var t=ce[e];return t||h(18,e),t}function O(e,t){ce[e]||(ce[e]=t)}function x(){return Q}function N(e,t){t&&(A("Patches"),e.u=[],e.s=[],e.v=t)}function R(e){D(e),e.p.forEach(F),e.p=null}function D(e){e===Q&&(Q=e.l)}function H(e){return Q={p:[],l:Q,h:e,m:!0,_:0}}function F(e){var t=e[ae];0===t.i||1===t.i?t.j():t.g=!0}function G(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.O||A("ES5").S(t,e,r),r?(n[ae].P&&(R(t),h(4)),m(e)&&(e=U(t,e),t.l||j(t,e)),t.u&&A("Patches").M(n[ae].t,e,t.u,t.s)):e=U(t,n,[]),R(t),t.u&&t.v(t.u,t.s),e!==ne?e:void 0}function U(e,t,n){if(I(t))return t;var r=t[ae];if(!r)return S(t,(function(a,i){return L(e,r,t,a,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return j(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var a=4===r.i||5===r.i?r.o=k(r.k):r.o,i=a,s=!1;3===r.i&&(i=new Set(a),a.clear(),s=!0),S(i,(function(t,i){return L(e,r,a,t,i,n,s)})),j(e,a,!1),n&&e.u&&A("Patches").N(r,n,e.u,e.s)}return r.o}function L(e,t,n,r,a,i,s){if(f(a)){var o=U(e,a,i&&t&&3!==t.i&&!g(t.R,r)?i.concat(r):void 0);if(_(n,r,o),!f(o))return;e.m=!1}else s&&n.add(a);if(m(a)&&!I(a)){if(!e.h.D&&e._<1)return;U(e,a),t&&t.A.l||j(e,a)}}function j(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&T(t,n)}function M(e,t){var n=e[ae];return(n?E(n):e)[t]}function B(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function K(e){e.P||(e.P=!0,e.l&&K(e.l))}function q(e){e.o||(e.o=k(e.t))}function V(e,t,n){var r=P(t)?A("MapSet").F(t,n):w(t)?A("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:x(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},a=r,i=ue;n&&(a=[r],i=pe);var s=Proxy.revocable(a,i),o=s.revoke,l=s.proxy;return r.k=l,r.j=o,l}(t,n):A("ES5").J(t,n);return(n?n.A:x()).p.push(r),r}function $(e){return f(e)||h(22,e),function e(t){if(!m(t))return t;var n,r=t[ae],a=y(t);if(r){if(!r.P&&(r.i<4||!A("ES5").K(r)))return r.t;r.I=!0,n=W(t,a),r.I=!1}else n=W(t,a);return S(n,(function(t,a){r&&v(r.t,t)===a||_(n,t,e(a))})),3===a?new Set(n):n}(e)}function W(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return k(e)}function z(){function e(e,t){var n=a[e];return n?n.enumerable=t:a[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[ae];return ue.get(t,e)},set:function(t){var n=this[ae];ue.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var a=e[t][ae];if(!a.P)switch(a.i){case 5:r(a)&&K(a);break;case 4:n(a)&&K(a)}}}function n(e){for(var t=e.t,n=e.k,r=oe(n),a=r.length-1;a>=0;a--){var i=r[a];if(i!==ae){var s=t[i];if(void 0===s&&!g(t,i))return!0;var o=n[i],l=o&&o[ae];if(l?l.t!==s:!b(o,s))return!0}}var c=!!t[ae];return r.length!==oe(t).length+(c?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;r<t.length;r++)if(!t.hasOwnProperty(r))return!0;return!1}var a={};O("ES5",{J:function(t,n){var r=Array.isArray(t),a=function(t,n){if(t){for(var r=Array(n.length),a=0;a<n.length;a++)Object.defineProperty(r,""+a,e(a,!0));return r}var i=le(n);delete i[ae];for(var s=oe(i),o=0;o<s.length;o++){var l=s[o];i[l]=e(l,t||!!i[l].enumerable)}return Object.create(Object.getPrototypeOf(n),i)}(r,t),i={i:r?5:4,A:n?n.A:x(),P:!1,I:!1,R:{},l:n,t:t,k:a,o:null,g:!1,C:!1};return Object.defineProperty(a,ae,{value:i,writable:!0}),a},S:function(e,n,a){a?f(n)&&n[ae].A===e&&t(e.p):(e.u&&function e(t){if(t&&"object"==typeof t){var n=t[ae];if(n){var a=n.t,i=n.k,s=n.R,o=n.i;if(4===o)S(i,(function(t){t!==ae&&(void 0!==a[t]||g(a,t)?s[t]||e(i[t]):(s[t]=!0,K(n)))})),S(a,(function(e){void 0!==i[e]||g(i,e)||(s[e]=!1,K(n))}));else if(5===o){if(r(n)&&(K(n),s.length=!0),i.length<a.length)for(var l=i.length;l<a.length;l++)s[l]=!1;else for(var c=a.length;c<i.length;c++)s[c]=!0;for(var u=Math.min(i.length,a.length),p=0;p<u;p++)i.hasOwnProperty(p)||(s[p]=!0),void 0===s[p]&&e(i[p])}}}}(e.p[0]),t(e.p))},K:function(e){return 4===e.i?n(e):r(e)}})}function J(){function e(e,t){function n(){this.constructor=e}a(e,t),e.prototype=(n.prototype=t.prototype,new n)}function t(e){e.o||(e.R=new Map,e.o=new Map(e.t))}function n(e){e.o||(e.o=new Set,e.t.forEach((function(t){if(m(t)){var n=V(e.A.h,t,e);e.p.set(t,n),e.o.add(n)}else e.o.add(t)})))}function r(e){e.g&&h(3,JSON.stringify(E(e)))}var a=function(e,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},i=function(){function n(e,t){return this[ae]={i:2,l:t,A:t?t.A:x(),P:!1,I:!1,o:void 0,R:void 0,t:e,k:this,C:!1,g:!1},this}e(n,Map);var a=n.prototype;return Object.defineProperty(a,"size",{get:function(){return E(this[ae]).size}}),a.has=function(e){return E(this[ae]).has(e)},a.set=function(e,n){var a=this[ae];return r(a),E(a).has(e)&&E(a).get(e)===n||(t(a),K(a),a.R.set(e,!0),a.o.set(e,n),a.R.set(e,!0)),this},a.delete=function(e){if(!this.has(e))return!1;var n=this[ae];return r(n),t(n),K(n),n.t.has(e)?n.R.set(e,!1):n.R.delete(e),n.o.delete(e),!0},a.clear=function(){var e=this[ae];r(e),E(e).size&&(t(e),K(e),e.R=new Map,S(e.t,(function(t){e.R.set(t,!1)})),e.o.clear())},a.forEach=function(e,t){var n=this;E(this[ae]).forEach((function(r,a){e.call(t,n.get(a),a,n)}))},a.get=function(e){var n=this[ae];r(n);var a=E(n).get(e);if(n.I||!m(a))return a;if(a!==n.t.get(e))return a;var i=V(n.A.h,a,n);return t(n),n.o.set(e,i),i},a.keys=function(){return E(this[ae]).keys()},a.values=function(){var e,t=this,n=this.keys();return(e={})[ie]=function(){return t.values()},e.next=function(){var e=n.next();return e.done?e:{done:!1,value:t.get(e.value)}},e},a.entries=function(){var e,t=this,n=this.keys();return(e={})[ie]=function(){return t.entries()},e.next=function(){var e=n.next();if(e.done)return e;var r=t.get(e.value);return{done:!1,value:[e.value,r]}},e},a[ie]=function(){return this.entries()},n}(),s=function(){function t(e,t){return this[ae]={i:3,l:t,A:t?t.A:x(),P:!1,I:!1,o:void 0,t:e,k:this,p:new Map,g:!1,C:!1},this}e(t,Set);var a=t.prototype;return Object.defineProperty(a,"size",{get:function(){return E(this[ae]).size}}),a.has=function(e){var t=this[ae];return r(t),t.o?!!t.o.has(e)||!(!t.p.has(e)||!t.o.has(t.p.get(e))):t.t.has(e)},a.add=function(e){var t=this[ae];return r(t),this.has(e)||(n(t),K(t),t.o.add(e)),this},a.delete=function(e){if(!this.has(e))return!1;var t=this[ae];return r(t),n(t),K(t),t.o.delete(e)||!!t.p.has(e)&&t.o.delete(t.p.get(e))},a.clear=function(){var e=this[ae];r(e),E(e).size&&(n(e),K(e),e.o.clear())},a.values=function(){var e=this[ae];return r(e),n(e),e.o.values()},a.entries=function(){var e=this[ae];return r(e),n(e),e.o.entries()},a.keys=function(){return this.values()},a[ie]=function(){return this.values()},a.forEach=function(e,t){for(var n=this.values(),r=n.next();!r.done;)e.call(t,r.value,r.value,this),r=n.next()},t}();O("MapSet",{F:function(e,t){return new i(e,t)},T:function(e,t){return new s(e,t)}})}var X,Q,Y="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Z="undefined"!=typeof Map,ee="undefined"!=typeof Set,te="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,ne=Y?Symbol.for("immer-nothing"):((X={})["immer-nothing"]=!0,X),re=Y?Symbol.for("immer-draftable"):"__$immer_draftable",ae=Y?Symbol.for("immer-state"):"__$immer_state",ie="undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator",se=""+Object.prototype.constructor,oe="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,le=Object.getOwnPropertyDescriptors||function(e){var t={};return oe(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},ce={},ue={get:function(e,t){if(t===ae)return e;var n=E(e);if(!g(n,t))return function(e,t,n){var r,a=B(t,n);return a?"value"in a?a.value:null===(r=a.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!m(r)?r:r===M(e.t,t)?(q(e),e.o[t]=V(e.A.h,r,e)):r},has:function(e,t){return t in E(e)},ownKeys:function(e){return Reflect.ownKeys(E(e))},set:function(e,t,n){var r=B(E(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var a=M(E(e),t),i=null==a?void 0:a[ae];if(i&&i.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(b(n,a)&&(void 0!==n||g(e.t,t)))return!0;q(e),K(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==M(e.t,t)||t in e.t?(e.R[t]=!1,q(e),K(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=E(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){h(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){h(12)}},pe={};S(ue,(function(e,t){pe[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),pe.deleteProperty=function(e,t){return pe.set.call(this,e,t,void 0)},pe.set=function(e,t,n){return ue.set.call(this,e[0],t,n,e[0])};var de=new(function(){function e(e){var t=this;this.O=te,this.D=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var a=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=a);for(var r=arguments.length,s=Array(r>1?r-1:0),o=1;o<r;o++)s[o-1]=arguments[o];return i.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(s))}))}}var s;if("function"!=typeof n&&h(6),void 0!==r&&"function"!=typeof r&&h(7),m(e)){var o=H(t),l=V(t,e,void 0),c=!0;try{s=n(l),c=!1}finally{c?R(o):D(o)}return"undefined"!=typeof Promise&&s instanceof Promise?s.then((function(e){return N(o,r),G(e,o)}),(function(e){throw R(o),e})):(N(o,r),G(s,o))}if(!e||"object"!=typeof e){if(void 0===(s=n(e))&&(s=e),s===ne&&(s=void 0),t.D&&T(s,!0),r){var u=[],p=[];A("Patches").M(e,s,u,p),r(u,p)}return s}h(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var r=arguments.length,a=Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(a))}))};var r,a,i=t.produce(e,n,(function(e,t){r=e,a=t}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(e){return[e,r,a]})):[i,r,a]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){m(e)||h(8),f(e)&&(e=$(e));var t=H(this),n=V(this,e,void 0);return n[ae].C=!0,D(t),n},t.finishDraft=function(e,t){var n=(e&&e[ae]).A;return N(n,t),G(void 0,n)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!te&&h(20),this.O=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var a=A("Patches").$;return f(e)?a(e,t):this.produce(e,(function(e){return a(e,t)}))},e}()),he=de.produce,fe=(de.produceWithPatches.bind(de),de.setAutoFreeze.bind(de),de.setUseProxies.bind(de),de.applyPatches.bind(de),de.createDraft.bind(de),de.finishDraft.bind(de),he),me=n(90),Se=n.n(me),ye="object"==typeof global&&global&&global.Object===Object&&global,ge="object"==typeof self&&self&&self.Object===Object&&self,ve=(ye||ge||Function("return this")()).Symbol,_e=Object.prototype,be=_e.hasOwnProperty,Pe=_e.toString,we=ve?ve.toStringTag:void 0;var Ee=function(e){var t=be.call(e,we),n=e[we];try{e[we]=void 0;var r=!0}catch(e){}var a=Pe.call(e);return r&&(t?e[we]=n:delete e[we]),a},ke=Object.prototype.toString;var Te=function(e){return ke.call(e)},Ce=ve?ve.toStringTag:void 0;var Ie=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ce&&Ce in Object(e)?Ee(e):Te(e)};var Ae=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object);var Oe=function(e){return null!=e&&"object"==typeof e},xe=Function.prototype,Ne=Object.prototype,Re=xe.toString,De=Ne.hasOwnProperty,He=Re.call(Object);var Fe=function(e){if(!Oe(e)||"[object Object]"!=Ie(e))return!1;var t=Ae(e);if(null===t)return!0;var n=De.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Re.call(n)==He},Ge=n(50),Ue="@@redux/INIT";function Le(e,t,n){var r;if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(Le)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var a=e,i=t,s=[],o=s,l=!1;function c(){o===s&&(o=s.slice())}function u(){return i}function p(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return c(),o.push(e),function(){if(t){t=!1,c();var n=o.indexOf(e);o.splice(n,1)}}}function d(e){if(!Fe(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(l)throw new Error("Reducers may not dispatch actions.");try{l=!0,i=a(i,e)}finally{l=!1}for(var t=s=o,n=0;n<t.length;n++){(0,t[n])()}return e}return d({type:Ue}),(r={dispatch:d,subscribe:p,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");a=e,d({type:Ue})}})[Ge.a]=function(){var e,t=p;return(e={subscribe:function(e){if("object"!=typeof e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[Ge.a]=function(){return this},e},r}function je(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var Me=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var Be="persist/REHYDRATE",Ke="persist/REGISTER",qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ve=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function $e(e,t,n,r){r.debug;var a=Ve({},n);return e&&"object"===(void 0===e?"undefined":qe(e))&&Object.keys(e).forEach((function(r){"_persist"!==r&&t[r]===n[r]&&(a[r]=e[r])})),a}function We(e){var t=e.blacklist||null,n=e.whitelist||null,r=e.transforms||[],a=e.throttle||0,i=""+(void 0!==e.keyPrefix?e.keyPrefix:"persist:")+e.key,s=e.storage,o=!1===e.serialize?function(e){return e}:ze,l={},c={},u=[],p=null,d=null;function h(){if(0===u.length)return p&&clearInterval(p),void(p=null);var e=u.shift(),t=r.reduce((function(t,n){return n.in(t,e,l)}),l[e]);if(void 0!==t)try{c[e]=o(t)}catch(e){console.error("redux-persist/createPersistoid: error serializing state",e)}else delete c[e];0===u.length&&(Object.keys(c).forEach((function(e){void 0===l[e]&&delete c[e]})),d=s.setItem(i,o(c)).catch(f))}function f(e){0}return{update:function(e){Object.keys(e).forEach((function(r){(function(e){return(!n||-1!==n.indexOf(e)||"_persist"===e)&&(!t||-1===t.indexOf(e))})(r)&&l[r]!==e[r]&&-1===u.indexOf(r)&&u.push(r)})),Object.keys(l).forEach((function(t){void 0===e[t]&&u.push(t)})),null===p&&(p=setInterval(h,a)),l=e},flush:function(){for(;0!==u.length;)h();return d||Promise.resolve()}}}function ze(e){return JSON.stringify(e)}function Je(e){var t=e.transforms||[],n=""+(void 0!==e.keyPrefix?e.keyPrefix:"persist:")+e.key,r=e.storage,a=(e.debug,!1===e.serialize?function(e){return e}:Xe);return r.getItem(n).then((function(e){if(e)try{var n={},r=a(e);return Object.keys(r).forEach((function(e){n[e]=t.reduceRight((function(t,n){return n.out(t,e,r)}),a(r[e]))})),n}catch(e){throw e}}))}function Xe(e){return JSON.parse(e)}function Qe(e){0}var Ye=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function Ze(e,t){var n=void 0!==e.version?e.version:-1,r=(e.debug,void 0===e.stateReconciler?$e:e.stateReconciler),a=e.getStoredState||Je,i=void 0!==e.timeout?e.timeout:5e3,s=null,o=!1,l=!0,c=function(e){return e._persist.rehydrated&&s&&!l&&s.update(e),e};return function(u,p){var d=u||{},h=d._persist,f=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(d,["_persist"]);if("persist/PERSIST"===p.type){var m=!1,S=function(t,n){m||(p.rehydrate(e.key,t,n),m=!0)};if(i&&setTimeout((function(){!m&&S(void 0,new Error('redux-persist: persist timed out for persist key "'+e.key+'"'))}),i),l=!1,s||(s=We(e)),h)return u;if("function"!=typeof p.rehydrate||"function"!=typeof p.register)throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return p.register(e.key),a(e).then((function(t){(e.migrate||function(e,t){return Promise.resolve(e)})(t,n).then((function(e){S(e)}),(function(e){S(void 0,e)}))}),(function(e){S(void 0,e)})),Ye({},t(f,p),{_persist:{version:n,rehydrated:!1}})}if("persist/PURGE"===p.type)return o=!0,p.result(function(e){var t=e.storage,n=""+(void 0!==e.keyPrefix?e.keyPrefix:"persist:")+e.key;return t.removeItem(n,Qe)}(e)),Ye({},t(f,p),{_persist:h});if("persist/FLUSH"===p.type)return p.result(s&&s.flush()),Ye({},t(f,p),{_persist:h});if("persist/PAUSE"===p.type)l=!0;else if(p.type===Be){if(o)return Ye({},f,{_persist:Ye({},h,{rehydrated:!0})});if(p.key===e.key){var y=t(f,p),g=p.payload,v=!1!==r&&void 0!==g?r(g,u,y,e):y,_=Ye({},v,{_persist:Ye({},h,{rehydrated:!0})});return c(_)}}if(!h)return t(u,p);var b=t(f,p);return b===f?u:(b._persist=h,c(b))}}"function"==typeof Symbol&&Symbol.iterator,Object.assign;var et=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function tt(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var nt={registry:[],bootstrapped:!1},rt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:nt,t=arguments[1];switch(t.type){case Ke:return et({},e,{registry:[].concat(tt(e.registry),[t.key])});case Be:var n=e.registry.indexOf(t.key),r=[].concat(tt(e.registry));return r.splice(n,1),et({},e,{registry:r,bootstrapped:0===r.length});default:return e}};function at(e,t){(t||{}).debug;return function(t,n){if(!t)return Promise.resolve(void 0);var r=t._persist&&void 0!==t._persist.version?t._persist.version:-1;if(r===n)return Promise.resolve(t);if(r>n)return Promise.resolve(t);var a=Object.keys(e).map((function(e){return parseInt(e)})).filter((function(e){return n>=e&&e>r})).sort((function(e,t){return e-t}));try{var i=a.reduce((function(t,n){return e[n](t)}),t);return Promise.resolve(i)}catch(e){return Promise.reject(e)}}}function it(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.whitelist||null,a=n.blacklist||null;function i(e){return!(!r||-1!==r.indexOf(e))||!(!a||-1===a.indexOf(e))}return{in:function(t,n,r){return!i(n)&&e?e(t,n,r):t},out:function(e,n,r){return!i(n)&&t?t(e,n,r):e}}}var st=function(e){return"@@redux-saga/"+e},ot=st("CANCEL_PROMISE"),lt=st("CHANNEL_END"),ct=st("IO"),ut=st("MATCH"),pt=st("MULTICAST"),dt=st("SAGA_ACTION"),ht=st("SELF_CANCELLATION"),ft=st("TASK"),mt=st("TASK_CANCEL"),St=st("TERMINATE"),yt=st("LOCATION");function gt(){return(gt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var vt=function(e){return null==e},_t=function(e){return null!=e},bt=function(e){return"function"==typeof e},Pt=function(e){return"string"==typeof e},wt=Array.isArray,Et=function(e){return e&&bt(e.then)},kt=function(e){return e&&bt(e.next)&&bt(e.throw)},Tt=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype};var Ct=function(e){return function(){return e}}(!0),It=function(){};var At=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var Ot=function(e,t){gt(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))};function xt(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function Nt(e){var t=!1;return function(){t||(t=!0,e())}}var Rt=function(e){throw e},Dt=function(e){return{value:e,done:!0}};function Ht(e,t,n){void 0===t&&(t=Rt),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:Dt,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function Ft(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var Gt=function(e){return Array.apply(null,new Array(e))},Ut=function(e){return function(t){return e(Object.defineProperty(t,dt,{value:!0}))}},Lt=function(e){return e===St},jt=function(e){return e===mt},Mt=function(e){return Lt(e)||jt(e)};function Bt(e,t){var n=Object.keys(e),r=n.length;var a,i=0,s=wt(e)?Gt(r):{},o={};return n.forEach((function(e){var n=function(n,o){a||(o||Mt(n)?(t.cancel(),t(n,o)):(s[e]=n,++i===r&&(a=!0,t(s))))};n.cancel=It,o[e]=n})),t.cancel=function(){a||(a=!0,n.forEach((function(e){return o[e].cancel()})))},o}function Kt(e){return{name:e.name||"anonymous",location:qt(e)}}function qt(e){return e[yt]}var Vt={isEmpty:Ct,put:It,take:It};function $t(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,a=0,i=0,s=function(t){n[a]=t,a=(a+1)%e,r++},o=function(){if(0!=r){var t=n[i];return n[i]=null,r--,i=(i+1)%e,t}},l=function(){for(var e=[];r;)e.push(o());return e};return{isEmpty:function(){return 0==r},put:function(o){var c;if(r<e)s(o);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[a]=o,i=a=(a+1)%e;break;case 4:c=2*e,n=l(),r=n.length,a=n.length,i=0,n.length=c,e=c,s(o)}},take:o,flush:l}}var Wt=function(){return Vt},zt=function(e){return $t(e,4)};var Jt=function(){return Math.random().toString(36).substring(7).split("").join(".")};Jt(),Jt();function Xt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function Qt(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e}var Yt=Qt,Zt=[],en=0;function tn(e){try{an(),e()}finally{sn()}}function nn(e){Zt.push(e),en||(an(),on())}function rn(e){try{return an(),e()}finally{on()}}function an(){en++}function sn(){en--}function on(){var e;for(sn();!en&&void 0!==(e=Zt.shift());)tn(e)}var ln=function(e){return function(t){return e.some((function(e){return hn(e)(t)}))}},cn=function(e){return function(t){return e(t)}},un=function(e){return function(t){return t.type===String(e)}},pn=function(e){return function(t){return t.type===e}},dn=function(){return Ct};function hn(e){var t="*"===e?dn:Pt(e)?un:wt(e)?ln:function(e){return bt(e)&&e.hasOwnProperty("toString")}(e)?un:bt(e)?cn:Tt(e)?pn:null;if(null===t)throw new Error("invalid pattern: "+e);return t(e)}var fn={type:lt},mn=function(e){return e&&e.type===lt};function Sn(e){void 0===e&&(e=zt());var t=!1,n=[];return{take:function(r){t&&e.isEmpty()?r(fn):e.isEmpty()?(n.push(r),r.cancel=function(){xt(n,r)}):r(e.take())},put:function(r){if(!t){if(0===n.length)return e.put(r);n.shift()(r)}},flush:function(n){t&&e.isEmpty()?n(fn):n(e.flush())},close:function(){if(!t){t=!0;var e=n;n=[];for(var r=0,a=e.length;r<a;r++){(0,e[r])(fn)}}}}}function yn(e,t){void 0===t&&(t=Wt());var n,r=!1,a=Sn(t),i=function(){r||(r=!0,bt(n)&&n(),a.close())};return n=Nt(n=e((function(e){mn(e)?i():a.put(e)}))),r&&n(),{take:a.take,flush:a.flush,close:i}}function gn(){var e,t,n,r,a,i,s=(t=!1,r=n=[],a=function(){r===n&&(r=n.slice())},i=function(){t=!0;var e=n=r;r=[],e.forEach((function(e){e(fn)}))},(e={})[pt]=!0,e.put=function(e){if(!t)if(mn(e))i();else for(var a=n=r,s=0,o=a.length;s<o;s++){var l=a[s];l[ut](e)&&(l.cancel(),l(e))}},e.take=function(e,n){void 0===n&&(n=dn),t?e(fn):(e[ut]=n,a(),r.push(e),e.cancel=Nt((function(){a(),xt(r,e)})))},e.close=i,e),o=s.put;return s.put=function(e){e[dt]?o(e):nn((function(){o(e)}))},s}function vn(e,t){var n=e[ot];bt(n)&&(t.cancel=n),e.then(t,(function(e){t(e,!0)}))}var _n,bn=0,Pn=function(){return++bn};function wn(e){e.isRunning()&&e.cancel()}var En=((_n={}).TAKE=function(e,t,n){var r=t.channel,a=void 0===r?e.channel:r,i=t.pattern,s=t.maybe,o=function(e){e instanceof Error?n(e,!0):!mn(e)||s?n(e):n(St)};try{a.take(o,_t(i)?hn(i):null)}catch(e){return void n(e,!0)}n.cancel=o.cancel},_n.PUT=function(e,t,n){var r=t.channel,a=t.action,i=t.resolve;nn((function(){var t;try{t=(r?r.put:e.dispatch)(a)}catch(e){return void n(e,!0)}i&&Et(t)?vn(t,n):n(t)}))},_n.ALL=function(e,t,n,r){var a=r.digestEffect,i=bn,s=Object.keys(t);if(0!==s.length){var o=Bt(t,n);s.forEach((function(e){a(t[e],i,o[e],e)}))}else n(wt(t)?[]:{})},_n.RACE=function(e,t,n,r){var a=r.digestEffect,i=bn,s=Object.keys(t),o=wt(t)?Gt(s.length):{},l={},c=!1;s.forEach((function(e){var t=function(t,r){c||(r||Mt(t)?(n.cancel(),n(t,r)):(n.cancel(),c=!0,o[e]=t,n(o)))};t.cancel=It,l[e]=t})),n.cancel=function(){c||(c=!0,s.forEach((function(e){return l[e].cancel()})))},s.forEach((function(e){c||a(t[e],i,l[e],e)}))},_n.CALL=function(e,t,n,r){var a=t.context,i=t.fn,s=t.args,o=r.task;try{var l=i.apply(a,s);if(Et(l))return void vn(l,n);if(kt(l))return void Nn(e,l,o.context,bn,Kt(i),!1,n);n(l)}catch(e){n(e,!0)}},_n.CPS=function(e,t,n){var r=t.context,a=t.fn,i=t.args;try{var s=function(e,t){vt(e)?n(t):n(e,!0)};a.apply(r,i.concat(s)),s.cancel&&(n.cancel=s.cancel)}catch(e){n(e,!0)}},_n.FORK=function(e,t,n,r){var a=t.context,i=t.fn,s=t.args,o=t.detached,l=r.task,c=function(e){var t=e.context,n=e.fn,r=e.args;try{var a=n.apply(t,r);if(kt(a))return a;var i=!1;return Ht((function(e){return i?{value:e,done:!0}:(i=!0,{value:a,done:!Et(a)})}))}catch(e){return Ht((function(){throw e}))}}({context:a,fn:i,args:s}),u=function(e,t){return e.isSagaIterator?{name:e.meta.name}:Kt(t)}(c,i);rn((function(){var t=Nn(e,c,l.context,bn,u,o,void 0);o?n(t):t.isRunning()?(l.queue.addTask(t),n(t)):t.isAborted()?l.queue.abort(t.error()):n(t)}))},_n.JOIN=function(e,t,n,r){var a=r.task,i=function(e,t){if(e.isRunning()){var n={task:a,cb:t};t.cancel=function(){e.isRunning()&&xt(e.joiners,n)},e.joiners.push(n)}else e.isAborted()?t(e.error(),!0):t(e.result())};if(wt(t)){if(0===t.length)return void n([]);var s=Bt(t,n);t.forEach((function(e,t){i(e,s[t])}))}else i(t,n)},_n.CANCEL=function(e,t,n,r){var a=r.task;t===ht?wn(a):wt(t)?t.forEach(wn):wn(t),n()},_n.SELECT=function(e,t,n){var r=t.selector,a=t.args;try{n(r.apply(void 0,[e.getState()].concat(a)))}catch(e){n(e,!0)}},_n.ACTION_CHANNEL=function(e,t,n){var r=t.pattern,a=Sn(t.buffer),i=hn(r),s=function t(n){mn(n)||e.channel.take(t,i),a.put(n)},o=a.close;a.close=function(){s.cancel(),o()},e.channel.take(s,i),n(a)},_n.CANCELLED=function(e,t,n,r){n(r.task.isCancelled())},_n.FLUSH=function(e,t,n){t.flush(n)},_n.GET_CONTEXT=function(e,t,n,r){n(r.task.context[t])},_n.SET_CONTEXT=function(e,t,n,r){var a=r.task;Ot(a.context,t),n()},_n);function kn(e,t){return e+"?"+t}function Tn(e){var t=e.name,n=e.location;return n?t+"  "+kn(n.fileName,n.lineNumber):t}var Cn=null,In=[],An=function(){Cn=null,In.length=0},On=function(){var e,t,n=In[0],r=In.slice(1),a=n.crashedEffect?function(e){var t=qt(e);return t?t.code+"  "+kn(t.fileName,t.lineNumber):""}(n.crashedEffect):null;return["The above error occurred in task "+Tn(n.meta)+(a?" \n when executing effect "+a:"")].concat(r.map((function(e){return"    created by "+Tn(e.meta)})),[(e=In,t=function(e,t){var n;return(n=[]).concat.apply(n,t.map(e))}((function(e){return e.cancelledTasks}),e),t.length?["Tasks cancelled due to error:"].concat(t).join("\n"):"")]).join("\n")};function xn(e,t,n,r,a,i,s){var o;void 0===s&&(s=It);var l,c,u=0,p=null,d=[],h=Object.create(n),f=function(e,t,n){var r,a=[],i=!1;function s(e){t(),l(),n(e,!0)}function o(t){a.push(t),t.cont=function(o,l){i||(xt(a,t),t.cont=It,l?s(o):(t===e&&(r=o),a.length||(i=!0,n(r))))}}function l(){i||(i=!0,a.forEach((function(e){e.cont=It,e.cancel()})),a=[])}return o(e),{addTask:o,cancelAll:l,abort:s,getTasks:function(){return a}}}(t,(function(){d.push.apply(d,f.getTasks().map((function(e){return e.meta.name})))}),m);function m(t,n){if(n){if(u=2,(i={meta:a,cancelledTasks:d}).crashedEffect=Cn,In.push(i),S.isRoot){var r=On();An(),e.onError(t,{sagaStack:r})}c=t,p&&p.reject(t)}else t===mt?u=1:1!==u&&(u=3),l=t,p&&p.resolve(t);var i;S.cont(t,n),S.joiners.forEach((function(e){e.cb(t,n)})),S.joiners=null}var S=((o={})[ft]=!0,o.id=r,o.meta=a,o.isRoot=i,o.context=h,o.joiners=[],o.queue=f,o.cancel=function(){0===u&&(u=1,f.cancelAll(),m(mt,!1))},o.cont=s,o.end=m,o.setContext=function(e){Ot(h,e)},o.toPromise=function(){return p||(p=Yt(),2===u?p.reject(c):0!==u&&p.resolve(l)),p.promise},o.isRunning=function(){return 0===u},o.isCancelled=function(){return 1===u||0===u&&1===t.status},o.isAborted=function(){return 2===u},o.result=function(){return l},o.error=function(){return c},o);return S}function Nn(e,t,n,r,a,i,s){var o=e.finalizeRunEffect((function(t,n,r){if(Et(t))vn(t,r);else if(kt(t))Nn(e,t,c.context,n,a,!1,r);else if(t&&t[ct]){(0,En[t.type])(e,t.payload,r,u)}else r(t)}));p.cancel=It;var l={meta:a,cancel:function(){0===l.status&&(l.status=1,p(mt))},status:0},c=xn(e,l,n,r,a,i,s),u={task:c,digestEffect:d};return s&&(s.cancel=c.cancel),p(),c;function p(e,n){try{var a;n?(a=t.throw(e),An()):jt(e)?(l.status=1,p.cancel(),a=bt(t.return)?t.return(mt):{done:!0,value:mt}):a=Lt(e)?bt(t.return)?t.return():{done:!0}:t.next(e),a.done?(1!==l.status&&(l.status=3),l.cont(a.value)):d(a.value,r,p)}catch(e){if(1===l.status)throw e;l.status=2,l.cont(e,!0)}}function d(t,n,r,a){void 0===a&&(a="");var i,s=Pn();function l(n,a){i||(i=!0,r.cancel=It,e.sagaMonitor&&(a?e.sagaMonitor.effectRejected(s,n):e.sagaMonitor.effectResolved(s,n)),a&&function(e){Cn=e}(t),r(n,a))}e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:s,parentEffectId:n,label:a,effect:t}),l.cancel=It,r.cancel=function(){i||(i=!0,l.cancel(),l.cancel=It,e.sagaMonitor&&e.sagaMonitor.effectCancelled(s))},o(t,s,l)}}function Rn(e,t){var n=e.channel,r=void 0===n?gn():n,a=e.dispatch,i=e.getState,s=e.context,o=void 0===s?{}:s,l=e.sagaMonitor,c=e.effectMiddlewares,u=e.onError,p=void 0===u?Ft:u;for(var d=arguments.length,h=new Array(d>2?d-2:0),f=2;f<d;f++)h[f-2]=arguments[f];var m=t.apply(void 0,h);var S,y=Pn();if(l&&(l.rootSagaStarted=l.rootSagaStarted||It,l.effectTriggered=l.effectTriggered||It,l.effectResolved=l.effectResolved||It,l.effectRejected=l.effectRejected||It,l.effectCancelled=l.effectCancelled||It,l.actionDispatched=l.actionDispatched||It,l.rootSagaStarted({effectId:y,saga:t,args:h})),c){var g=Xt.apply(void 0,c);S=function(e){return function(t,n,r){return g((function(t){return e(t,n,r)}))(t)}}}else S=At;var v={channel:r,dispatch:Ut(a),getState:i,sagaMonitor:l,onError:p,finalizeRunEffect:S};return rn((function(){var e=Nn(v,m,o,y,Kt(t),!0,void 0);return l&&l.effectResolved(y,e),e}))}var Dn=function(e){var t,n=void 0===e?{}:e,r=n.context,a=void 0===r?{}:r,i=n.channel,s=void 0===i?gn():i,o=n.sagaMonitor,l=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(n,["context","channel","sagaMonitor"]);function c(e){var n=e.getState,r=e.dispatch;return t=Rn.bind(null,gt({},l,{context:a,channel:s,dispatch:r,getState:n,sagaMonitor:o})),function(e){return function(t){o&&o.actionDispatched&&o.actionDispatched(t);var n=e(t);return s.put(t),n}}}return c.run=function(){return t.apply(void 0,arguments)},c.setContext=function(e){Ot(a,e)},c},Hn=function(e){return"@@redux-saga/"+e},Fn=Hn("CANCEL_PROMISE"),Gn=Hn("IO"),Un=Hn("MULTICAST"),Ln=Hn("SELF_CANCELLATION");function jn(){return(jn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Mn=function(e){return null!=e},Bn=function(e){return"function"==typeof e},Kn=function(e){return"string"==typeof e},qn=Array.isArray,Vn=function e(t){return t&&(Kn(t)||Wn(t)||Bn(t)||qn(t)&&t.every(e))},$n=function(e){return e&&Bn(e.take)&&Bn(e.close)},Wn=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype};var zn=function(e,t){var n;void 0===t&&(t=!0);var r=new Promise((function(r){n=setTimeout(r,Math.min(2147483647,e),t)}));return r[Fn]=function(){clearTimeout(n)},r};var Jn=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var Xn=function(e){throw e},Qn=function(e){return{value:e,done:!0}};function Yn(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,a=0,i=0,s=function(t){n[a]=t,a=(a+1)%e,r++},o=function(){if(0!=r){var t=n[i];return n[i]=null,r--,i=(i+1)%e,t}},l=function(){for(var e=[];r;)e.push(o());return e};return{isEmpty:function(){return 0==r},put:function(o){var c;if(r<e)s(o);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[a]=o,i=a=(a+1)%e;break;case 4:c=2*e,n=l(),r=n.length,a=n.length,i=0,n.length=c,e=c,s(o)}},take:o,flush:l}}var Zn=function(e){return Yn(e,3)},er=function(e,t){var n;return(n={})[Gn]=!0,n.combinator=!1,n.type=e,n.payload=t,n},tr=function(e){return er("FORK",jn({},e.payload,{detached:!0}))};function nr(e,t){return void 0===e&&(e="*"),Vn(e)?(Mn(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),er("TAKE",{pattern:e})):$n(n=e)&&n[Un]&&Mn(t)&&Vn(t)?er("TAKE",{channel:e,pattern:t}):$n(e)?(Mn(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),er("TAKE",{channel:e})):void 0;var n}function rr(e,t){return function(e){return null==e}(t)&&(t=e,e=void 0),er("PUT",{channel:e,action:t})}function ar(e){var t=er("RACE",e);return t.combinator=!0,t}function ir(e,t){var n,r=null;return Bn(e)?n=e:(qn(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&Kn(n)&&Bn(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function sr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return er("CALL",ir(e,n))}function or(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return er("FORK",ir(e,n))}function lr(e){return void 0===e&&(e=Ln),er("CANCEL",e)}function cr(e,t){return er("ACTION_CHANNEL",{pattern:e,buffer:t})}var ur=sr.bind(null,zn),pr=function(e){return{done:!0,value:e}},dr={};function hr(e){return $n(e)?"channel":function(e){return Bn(e)&&e.hasOwnProperty("toString")}(e)?String(e):Bn(e)?e.name:String(e)}function fr(e,t,n){var r,a,i,s=t;function o(t,n){if(s===dr)return pr(t);if(n&&!a)throw s=dr,n;r&&r(t);var o=n?e[a](n):e[s]();return s=o.nextState,i=o.effect,r=o.stateUpdater,a=o.errorState,s===dr?pr(t):i}return function(e,t,n){void 0===t&&(t=Xn),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:Qn,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}(o,(function(e){return o(null,e)}),n)}function mr(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];var i,s={done:!1,value:nr(e)},o=function(e){return{done:!1,value:or.apply(void 0,[t].concat(r,[e]))}},l=function(e){return i=e};return fr({q1:function(){return{nextState:"q2",effect:s,stateUpdater:l}},q2:function(){return{nextState:"q1",effect:o(i)}}},"q1","takeEvery("+hr(e)+", "+t.name+")")}function Sr(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];var i,s,o={done:!1,value:nr(e)},l=function(e){return{done:!1,value:or.apply(void 0,[t].concat(r,[e]))}},c=function(e){return{done:!1,value:lr(e)}},u=function(e){return i=e},p=function(e){return s=e};return fr({q1:function(){return{nextState:"q2",effect:o,stateUpdater:p}},q2:function(){return i?{nextState:"q3",effect:c(i)}:{nextState:"q1",effect:l(s),stateUpdater:u}},q3:function(){return{nextState:"q1",effect:l(s),stateUpdater:u}}},"q1","takeLatest("+hr(e)+", "+t.name+")")}function yr(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];var i,s={done:!1,value:nr(e)},o=function(e){return{done:!1,value:sr.apply(void 0,[t].concat(r,[e]))}},l=function(e){return i=e};return fr({q1:function(){return{nextState:"q2",effect:s,stateUpdater:l}},q2:function(){return{nextState:"q1",effect:o(i)}}},"q1","takeLeading("+hr(e)+", "+t.name+")")}function gr(e,t,n){for(var r=arguments.length,a=new Array(r>3?r-3:0),i=3;i<r;i++)a[i-3]=arguments[i];var s,o,l=function(){return{done:!1,value:nr(o)}},c=function(e){return{done:!1,value:or.apply(void 0,[n].concat(a,[e]))}},u={done:!1,value:ur(e)},p=function(e){return s=e},d=function(e){return o=e},h=!$n(t);return h||d(t),fr({q1:function(){return{nextState:"q2",effect:{done:!1,value:cr(t,Zn(1))},stateUpdater:d}},q2:function(){return{nextState:"q3",effect:l(),stateUpdater:p}},q3:function(){return{nextState:"q4",effect:c(s)}},q4:function(){return{nextState:"q2",effect:u}}},h?"q1":"q2","throttle("+hr(t)+", "+n.name+")")}function vr(e,t,n){for(var r=arguments.length,a=new Array(r>3?r-3:0),i=3;i<r;i++)a[i-3]=arguments[i];var s,o,l={done:!1,value:nr(t)},c={done:!1,value:ar({action:nr(t),debounce:ur(e)})},u=function(e){return{done:!1,value:or.apply(void 0,[n].concat(a,[e]))}},p=function(e){return{done:!1,value:e}},d=function(e){return s=e},h=function(e){return o=e};return fr({q1:function(){return{nextState:"q2",effect:l,stateUpdater:d}},q2:function(){return{nextState:"q3",effect:c,stateUpdater:h}},q3:function(){return o.debounce?{nextState:"q1",effect:u(s)}:{nextState:"q2",effect:p(o.action),stateUpdater:d}}},"q1","debounce("+hr(t)+", "+n.name+")")}function*_r(...e){return yield nr(...e)}function*br(...e){return yield function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];return or.apply(void 0,[mr,e,t].concat(r))}(...e)}function*Pr(...e){return yield function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];return or.apply(void 0,[Sr,e,t].concat(r))}(...e)}function*wr(...e){return yield function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];return or.apply(void 0,[yr,e,t].concat(r))}(...e)}function*Er(...e){return yield rr(...e)}function*kr(...e){return yield sr(...e)}function*Tr(...e){return yield or(...e)}function*Cr(...e){return yield function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return tr(or.apply(void 0,[e].concat(n)))}(...e)}function*Ir(...e){return yield lr(...e)}function*Ar(...e){return yield function(e){void 0===e&&(e=Jn);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return er("SELECT",{selector:e,args:n})}(...e)}function*Or(...e){return yield ur(...e)}function*xr(...e){return yield function(e,t,n){for(var r=arguments.length,a=new Array(r>3?r-3:0),i=3;i<r;i++)a[i-3]=arguments[i];return or.apply(void 0,[gr,e,t,n].concat(a))}(...e)}function*Nr(...e){return yield function(e,t,n){for(var r=arguments.length,a=new Array(r>3?r-3:0),i=3;i<r;i++)a[i-3]=arguments[i];return or.apply(void 0,[vr,e,t,n].concat(a))}(...e)}function*Rr(...e){return yield function(e){var t=er("ALL",e);return t.combinator=!0,t}(...e)}function*Dr(...e){return yield ar(...e)}var Hr=n(196),Fr=n(197);const Gr="UNAUTHORIZED",Ur="FORBIDDEN",Lr="BLOCK_ACCESS";class jr extends Error{constructor({statusText:e,status:t,responseJSON:n}){super(e),this.status=0,this.statusText="",this.name="HttpError",this.status=t,this.statusText=e,this.responseJSON=n}static connectionAborted(){return new jr({status:0,statusText:"error"})}}class Mr extends Error{constructor(){super("We could not verify the SSL certificate."),this.name="SSLVerificationError",this.status=-104}static isInstanceOf(e){return-104===e}}const Br={token:"Token",temp:"TempToken",device:"DeviceToken"};class Kr extends Fr.EventEmitter{constructor({base_url:e,client_version:t,platform:n,api_token:r="",isSSLVerificationFailedCallback:a=(async()=>!1)}){super(),this.base_url=e,this.client_version=t,this.platform=n,this.api_token=r,this.isSSLVerificationFailedCallback=a}getTokenType(e){return Br[e]||Br.token}makeAuthorizationHeader(e=this.api_token,t="device"){return`${this.getTokenType(t)} ${e}`}getDefaultRequestOptions(){return{token:this.api_token,tokenType:"device",options:{method:"GET"},shouldEmitErrorEvents:!0}}getModifiedRequestOptions(e){return{...this.getDefaultRequestOptions(),...e}}getDefaultHeaders(e){return new Headers({...this.generateAuthHeaders(e),"X-DEVICE-APP-VERSION":this.client_version,"X-DEVICE-PLATFORM":this.platform})}makeRequest(e,t){const n=this.getDefaultHeaders(t),r=this.generateUrl(e);return new Request(r,{headers:n,...t.options||{}})}handleFailedRequest(e){switch(e.status){case 401:this.emit(Gr);break;case 403:this.emit(Ur);break;case 490:this.emit(Lr)}}async downloadAsBlob(e,t){return this.http(e,t,Vr)}async http(e,t,n=qr){const r=new jr({status:-1,statusText:""}),a=jr.connectionAborted(),i=new Mr;try{const a=await fetch(e),i=await n(a);if(!a.ok&&t.shouldEmitErrorEvents&&this.handleFailedRequest(a),!a.ok)throw r.message=a.statusText,r.status=a.status,r.statusText=a.statusText,r.responseJSON=i,r;return i}catch(e){if(await this.isSSLVerificationFailedCallback())throw i;throw e instanceof jr?e:a}}generateAuthHeaders(e){return{"content-type":"application/json; charset=utf-8",authorization:this.makeAuthorizationHeader(null==e?void 0:e.token,null==e?void 0:e.tokenType)}}generateUrl(e){return`${this.base_url}${e}`}async get(e,t=this.getDefaultRequestOptions()){const n=this.getModifiedRequestOptions(t),r=this.makeRequest(e,n);return this.http(r,n)}async post(e,t={},n={}){const r=this.getModifiedRequestOptions({...n,options:{method:"POST",body:JSON.stringify(t)}}),a=this.makeRequest(e,r);return this.http(a,r)}async put(e,t,n={}){const r=this.getModifiedRequestOptions({...n,options:{method:"PUT",body:JSON.stringify(t)}}),a=this.makeRequest(e,r);return this.http(a,r)}async patch(e,t,n={}){const r=this.getModifiedRequestOptions({...n,options:{method:"PATCH",body:JSON.stringify(t)}}),a=this.makeRequest(e,r);return this.http(a,r)}async delete(e,t,n={}){const r=this.getModifiedRequestOptions({...n,options:{method:"DELETE",body:JSON.stringify(t)}}),a=this.makeRequest(e,r);return this.http(a,r)}async download(e,t=this.getDefaultRequestOptions()){const n=this.getModifiedRequestOptions(t),r=this.makeRequest(e,n);return this.downloadAsBlob(r,n)}updateApiToken(e){this.api_token=e}withPagination(e,t){return this.withQueryString(e,t)}withQueryString(e,t){const n=new Hr.URLSearchParams;for(const[e,r]of Object.entries(t))n.append(e,r.toString());return`${e}?${n.toString()}`}}async function qr(e){try{return await e.json()}catch(e){return null}}async function Vr(e){try{return await e.blob()}catch(e){return null}}const $r="/api/v4/bulk/account/",Wr="/api/v3/account/profile/",zr="/api/v3/subscription/",Jr="/api/v3/setting/mobile/",Xr="/api/v4/auth/security/token/",Qr="/api/v3/account/billing_info/",Yr="/api/v4/user/email/",Zr="/api/v2/account/email/confirm/",ea="/api/v4/auth/device/password/",ta="/api/v4.1/auth/device/password/",na="/api/v3/password/reset/",ra="/api/v4/auth/device/password/recovery/",aa="/api/v3/user/password/recovery/verification-code/",ia="/api/v4/account/delete/",sa="/api/v4.1/auth/otp/authy/register/",oa="/api/v4.1/auth/otp/totp/register/",la="/api/v4/auth/otp/enable/",ca="/api/v4/auth/otp/disable/",ua="/api/v3/crypto/regenerate/",pa="/api/v4/keyserver/key/encryption/",da="/api/v3/keyserver/key/my/",ha="/api/v3/keyserver/key/team/",fa="/api/v3/user/srp/",ma="/api/v3/user/srp/initial-data/",Sa="/api/v3/auth/device/stale-encryption/",ya="/api/v4/terminal/sync/",ga="/api/v3/terminal/bulk/",va="/api/v3/terminal/history/",_a="/api/v4/terminal/history/bulk/",ba="/api/v3/terminal/history/bulk/clear/",Pa="/api/v3/in-app-messages/",wa=e=>`/api/v4/account/${e}/avatar/`,Ea="/api/v3/user/device/current/",ka="/api/v3.3/auth/device/login/",Ta="/api/v3/auth/device/logout/current/",Ca="/api/v4/team/trial/",Ia="/api/v4.1/team/trial/deactivate/",Aa="/api/v4/team/trial/extend/",Oa="/api/v4/trial/extend/",xa="/api/v3/team/invite/",Na="/api/v3/team/seats/occupied/",Ra="/api/v3/team/member/stale-encryption/",Da="/api/v3/team/member/",Ha="/api/v4/terminal/authorized-keys/",Fa="/api/v3/team/modify/",Ga="/api/v4/team/invite/url/",Ua="/api/v3/auth/device/centrifugo/token/",La="/api/v3/auth/device/centrifugo/subscribe/token/",ja="/centrifugo/connection/websocket",Ma="/api/v3/subscription/microsoft/service_ticket/",Ba="/api/v4/user/productboard/jwt/",Ka="/api/v4.1/nps/survey/",qa="/api/v4.1/auth/sso/firebase/detect_action/",Va="/api/v4.1/auth/sso/domain/check_email/",$a="/api/v4/auth/device/signaling/",Wa="/signaling/configuration/",za="/api/v4.1/team/trial/checkout-page/";class Ja extends Kr{bulkAccount(){return this.get($r)}getUserProfile(){return this.get(Wr)}login(e){return this.post(ka,e,{shouldEmitErrorEvents:!1})}updateDevice(e){return this.put(Ea,e)}logout(){return this.delete(Ta,null,{shouldEmitErrorEvents:!1})}getProductBoardToken(){return this.get(Ba)}getDataSync(e){return e?this.get(this.withQueryString(ya,{last_synced__gte:e.lastSynced})):this.get(ya)}getOnlyPersonalDataSync(e){return e?this.get(this.withQueryString(ga,{last_synced__gte:e.lastSynced})):this.get(ga)}sync(e){return this.post(ya,e)}syncOnlyPersonalData(e){return this.post(ga,e)}regenerateSpecs(){return this.get(ua)}changePassword(e){return this.post(ea,e)}changePasswordWithSecurityToken(e){return this.post(ta,e)}accountRecovery(e){return this.post(ra,e)}changeEmail(e){return this.post(Yr,e)}deleteAccount(e){return this.post(ia,e)}resetPassword(e){return this.post(na,e)}sendVerificationCode(){return this.post(aa)}confirmEmail(){return this.get(Zr)}getSettings(){return this.get(Jr)}updateSettings(e){return this.put(Jr,e)}updateBillingInformation(e){return this.put(Qr,e)}registerUserAuthy(e){return this.post(sa,e)}otpRegisterProviderTotp(){return this.post(oa)}enableTwoFactorAuth(e){return this.post(la,e)}disableTwoFactorAuth(e){return this.post(ca,e)}modifyTeam(e){return this.patch(Fa,e)}getWindowsServiceTicket(){return this.get(Ma)}validateReceipt(e){return this.post(zr,e)}getEncryptionKey(){return this.get(pa)}uploadTeamEncryptionKey(e){return this.post(pa,e)}getKeyPair(){return this.get(da)}setKeyPair(e){return this.post(da,e)}getPublicTeamKeys(){return this.get(ha)}getMemberPublicKey(e){return this.get(this.withQueryString(ha,{user_id:e}))}getCentrifugoToken(){return this.get(Ua)}createTeamTrial(e){return this.post(Ca,e,{shouldEmitErrorEvents:!1})}inviteTeamMember(e){return this.post(xa,e)}getTeamInvitesList(e){return this.get(this.withPagination(xa,e))}getTeamSeatsList(e){return this.get(this.withPagination(Na,e))}getTeamMembersList(e){return this.get(this.withPagination(Da,e))}getTeamMembersStaleEncryptionList(e){return this.get(this.withPagination(Ra,e))}getDataForTeamTrialDeactivation(){return this.get(Ia)}deactivateTeamTrial(e){return this.post(Ia,e)}getSecurityToken(e){return this.post(Xr,e)}getInAppMessages(e){return this.get(this.withPagination(Pa,e))}getStaleEncryptionDevicesList(e){return this.get(this.withPagination(Sa,e))}migrateToSRP(e){return this.post(fa,e)}generateSRPSalt(){return this.post(ma)}sendAppFeedback(e){return this.post(Ka,e)}getHistory(e){return 0===e.limit?this.get(va):this.get(this.withPagination(va,e))}syncHistory(e){return this.post(_a,e)}clearHistory(){return this.delete(ba)}sendPersonalPublicKeyForTeamMultiKey(e){return this.post(Ha,e)}getAuthorizedKeys(){return this.get(Ha)}getUserAvatar(e){return this.download(wa(e))}detectSsoAction(e){return this.post(qa,e,{shouldEmitErrorEvents:!1})}extendTeamTrial(){return this.patch(Aa,{})}getSignalingToken(){return this.get($a)}getSignalingConfiguration(){return this.get(Wa)}generateInvitationLink(){return this.post(Ga)}generateStripeCheckoutUrl(){return this.post(za)}extendProTrial(){return this.post(Oa,{})}queryWhetherUserESSO(e){return this.post(Va,e,{shouldEmitErrorEvents:!1})}initCustomerExperience(){return this.post("/api/v4.2/survey/ces/dialog-interaction/init/")}sendCustomerExperience(e){return this.post("/api/v4.2/survey/ces/dialog-interaction/",e)}getShellAssistAnswer(e){return this.post("/api/v4/terminal/shell-assist/",{prompt:e})}retrieveOnboardingAttributes(){return this.get("/api/v4/marketing/onboarding/")}skipTrialOnboardingInviteStep(e){const{data:t,id:n}=e;return this.put("/api/v4/marketing/onboarding/"+n,t)}}var Xa=function(e,t){return e===t};function Qa(e,t){var n,r,a="object"==typeof t?t:{equalityCheck:t},i=a.equalityCheck,s=void 0===i?Xa:i,o=a.maxSize,l=void 0===o?1:o,c=a.resultEqualityCheck,u=function(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,a=0;a<r;a++)if(!e(t[a],n[a]))return!1;return!0}}(s),p=1===l?(n=u,{get:function(e){return r&&n(r.key,e)?r.value:"NOT_FOUND"},put:function(e,t){r={key:e,value:t}},getEntries:function(){return r?[r]:[]},clear:function(){r=void 0}}):function(e,t){var n=[];function r(e){var r=n.findIndex((function(n){return t(e,n.key)}));if(r>-1){var a=n[r];return r>0&&(n.splice(r,1),n.unshift(a)),a.value}return"NOT_FOUND"}return{get:r,put:function(t,a){"NOT_FOUND"===r(t)&&(n.unshift({key:t,value:a}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(l,u);function d(){var t=p.get(arguments);if("NOT_FOUND"===t){if(t=e.apply(null,arguments),c){var n=p.getEntries(),r=n.find((function(e){return c(e.value,t)}));r&&(t=r.value)}p.put(arguments,t)}return t}return d.clearCache=function(){return p.clear()},d}function Ya(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var n=t.map((function(e){return"function"==typeof e?"function "+(e.name||"unnamed")+"()":typeof e})).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}function Za(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];var i,s=0,o={memoizeOptions:void 0},l=r.pop();if("object"==typeof l&&(o=l,l=r.pop()),"function"!=typeof l)throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof l+"]");var c=o,u=c.memoizeOptions,p=void 0===u?n:u,d=Array.isArray(p)?p:[p],h=Ya(r),f=e.apply(void 0,[function(){return s++,l.apply(null,arguments)}].concat(d)),m=e((function(){for(var e=[],t=h.length,n=0;n<t;n++)e.push(h[n].apply(null,arguments));return i=f.apply(null,e)}));return Object.assign(m,{resultFunc:l,memoizedResultFunc:f,dependencies:h,lastResult:function(){return i},recomputations:function(){return s},resetRecomputations:function(){return s=0}}),m};return a}var ei=Za(Qa);function ti(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}"function"==typeof Symbol&&Symbol.observable;var ni=function(){return Math.random().toString(36).substring(7).split("").join(".")},ri={INIT:"@@redux/INIT"+ni(),REPLACE:"@@redux/REPLACE"+ni(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ni()}};function ai(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var a=t[r];0,"function"==typeof e[a]&&(n[a]=e[a])}var i,s=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:ri.INIT}))throw new Error(ti(12));if(void 0===n(void 0,{type:ri.PROBE_UNKNOWN_ACTION()}))throw new Error(ti(13))}))}(n)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,a={},o=0;o<s.length;o++){var l=s[o],c=n[l],u=e[l],p=c(u,t);if(void 0===p){t&&t.type;throw new Error(ti(14))}a[l]=p,r=r||p!==u}return(r=r||s.length!==Object.keys(e).length)?a:e}}function ii(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function si(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(a){return"function"==typeof a?a(n,r,e):t(a)}}}}var oi=si();oi.withExtraArgument=si;var li=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ci=function(e,t){var n,r,a,i,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function o(i){return function(o){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(a=s.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){s.label=i[1];break}if(6===i[0]&&s.label<a[1]){s.label=a[1],a=i;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(i);break}a[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,o])}}},ui=function(e,t){for(var n=0,r=t.length,a=e.length;n<r;n++,a++)e[a]=t[n];return e},pi=Object.defineProperty,di=Object.defineProperties,hi=Object.getOwnPropertyDescriptors,fi=Object.getOwnPropertySymbols,mi=Object.prototype.hasOwnProperty,Si=Object.prototype.propertyIsEnumerable,yi=function(e,t,n){return t in e?pi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},gi=function(e,t){for(var n in t||(t={}))mi.call(t,n)&&yi(e,n,t[n]);if(fi)for(var r=0,a=fi(t);r<a.length;r++){n=a[r];Si.call(t,n)&&yi(e,n,t[n])}return e},vi=function(e,t){return di(e,hi(t))},_i=function(e,t,n){return new Promise((function(r,a){var i=function(e){try{o(n.next(e))}catch(e){a(e)}},s=function(e){try{o(n.throw(e))}catch(e){a(e)}},o=function(e){return e.done?r(e.value):Promise.resolve(e.value).then(i,s)};o((n=n.apply(e,t)).next())}))};"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__,"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;!function(e){function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var a=e.apply(this,n)||this;return Object.setPrototypeOf(a,t.prototype),a}li(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,ui([void 0],e[0].concat(this)))):new(t.bind.apply(t,ui([void 0],e.concat(this))))}}(Array);function bi(e){return m(e)?fe(e,(function(){})):e}function Pi(e,t){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(t){var a=t.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return gi(gi({type:e,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:e,payload:n[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(t){return t.type===e},n}function wi(e){var t,n={},r=[],a={addCase:function(e,t){var r="string"==typeof e?e:e.type;if(r in n)throw new Error("addCase cannot be called with two reducers for the same action type");return n[r]=t,a},addMatcher:function(e,t){return r.push({matcher:e,reducer:t}),a},addDefaultCase:function(e){return t=e,a}};return e(a),[n,r,t]}function Ei(e,t,n,r){void 0===n&&(n=[]);var a,i="function"==typeof t?wi(t):[t,n,r],s=i[0],o=i[1],l=i[2];if("function"==typeof e)a=function(){return bi(e())};else{var c=bi(e);a=function(){return c}}function u(e,t){void 0===e&&(e=a());var n=ui([s[t.type]],o.filter((function(e){return(0,e.matcher)(t)})).map((function(e){return e.reducer})));return 0===n.filter((function(e){return!!e})).length&&(n=[l]),n.reduce((function(e,n){if(n){var r;if(f(e))return void 0===(r=n(e,t))?e:r;if(m(e))return fe(e,(function(e){return n(e,t)}));if(void 0===(r=n(e,t))){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return e}),e)}return u.getInitialState=a,u}function ki(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");var n,r="function"==typeof e.initialState?e.initialState:bi(e.initialState),a=e.reducers||{},i=Object.keys(a),s={},o={},l={};function c(){var t="function"==typeof e.extraReducers?wi(e.extraReducers):[e.extraReducers],n=t[0],a=void 0===n?{}:n,i=t[1],s=void 0===i?[]:i,l=t[2],c=void 0===l?void 0:l,u=gi(gi({},a),o);return Ei(r,(function(e){for(var t in u)e.addCase(t,u[t]);for(var n=0,r=s;n<r.length;n++){var a=r[n];e.addMatcher(a.matcher,a.reducer)}c&&e.addDefaultCase(c)}))}return i.forEach((function(e){var n,r,i=a[e],c=t+"/"+e;"reducer"in i?(n=i.reducer,r=i.prepare):n=i,s[e]=n,o[c]=n,l[e]=r?Pi(c,r):Pi(c)})),{name:t,reducer:function(e,t){return n||(n=c()),n(e,t)},actions:l,caseReducers:s,getInitialState:function(){return n||(n=c()),n.getInitialState()}}}var Ti=function(e){void 0===e&&(e=21);for(var t="",n=e;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},Ci=["name","message","stack","code"],Ii=function(e,t){this.payload=e,this.meta=t},Ai=function(e,t){this.payload=e,this.meta=t},Oi=function(e){if("object"==typeof e&&null!==e){for(var t={},n=0,r=Ci;n<r.length;n++){var a=r[n];"string"==typeof e[a]&&(t[a]=e[a])}return t}return{message:String(e)}};!function(){function e(e,t,n){var r=Pi(e+"/fulfilled",(function(e,t,n,r){return{payload:e,meta:vi(gi({},r||{}),{arg:n,requestId:t,requestStatus:"fulfilled"})}})),a=Pi(e+"/pending",(function(e,t,n){return{payload:void 0,meta:vi(gi({},n||{}),{arg:t,requestId:e,requestStatus:"pending"})}})),i=Pi(e+"/rejected",(function(e,t,r,a,i){return{payload:a,error:(n&&n.serializeError||Oi)(e||"Rejected"),meta:vi(gi({},i||{}),{arg:r,requestId:t,rejectedWithValue:!!a,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)})}})),s="undefined"!=typeof AbortController?AbortController:function(){function e(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return e.prototype.abort=function(){0},e}();return Object.assign((function(e){return function(o,l,c){var u,p=(null==n?void 0:n.idGenerator)?n.idGenerator(e):Ti(),d=new s;function h(e){u=e,d.abort()}var f=function(){return _i(this,null,(function(){var s,f,m,S,y,g;return ci(this,(function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),S=null==(s=null==n?void 0:n.condition)?void 0:s.call(n,e,{getState:l,extra:c}),null===(_=S)||"object"!=typeof _||"function"!=typeof _.then?[3,2]:[4,S];case 1:S=v.sent(),v.label=2;case 2:if(!1===S||d.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return!0,y=new Promise((function(e,t){return d.signal.addEventListener("abort",(function(){return t({name:"AbortError",message:u||"Aborted"})}))})),o(a(p,e,null==(f=null==n?void 0:n.getPendingMeta)?void 0:f.call(n,{requestId:p,arg:e},{getState:l,extra:c}))),[4,Promise.race([y,Promise.resolve(t(e,{dispatch:o,getState:l,extra:c,requestId:p,signal:d.signal,abort:h,rejectWithValue:function(e,t){return new Ii(e,t)},fulfillWithValue:function(e,t){return new Ai(e,t)}})).then((function(t){if(t instanceof Ii)throw t;return t instanceof Ai?r(t.payload,p,e,t.meta):r(t,p,e)}))])];case 3:return m=v.sent(),[3,5];case 4:return g=v.sent(),m=g instanceof Ii?i(null,p,e,g.payload,g.meta):i(g,p,e),[3,5];case 5:return n&&!n.dispatchConditionRejection&&i.match(m)&&m.meta.condition||o(m),[2,m]}var _}))}))}();return Object.assign(f,{abort:h,requestId:p,arg:e,unwrap:function(){return f.then(xi)}})}}),{pending:a,rejected:i,fulfilled:r,typePrefix:e})}e.withTypes=function(){return e}}();function xi(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}Object.assign;var Ni="listenerMiddleware";Pi(Ni+"/add"),Pi(Ni+"/removeAll"),Pi(Ni+"/remove");"function"==typeof queueMicrotask&&queueMicrotask.bind("undefined"!=typeof window?window:"undefined"!=typeof global?global:globalThis);var Ri,Di=function(e){return function(t){setTimeout(t,e)}};"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:Di(10);z();var Hi=n(18),Fi=n.n(Hi);function Gi(e){return Pi(e,e=>({payload:e,meta:{requestId:Fi()()}}))}function Ui(e){return Pi(e,(e,t)=>({payload:e,meta:{requestId:t}}))}function Li(e){return{request:Gi(e+"_REQUEST"),success:Ui(e+"_SUCCESS"),failure:Ui(e+"_FAILURE"),toString(){return this.request.toString()}}}function*ji(e,t){const n=function(e,t){return e.request(t)}(e,t);yield*Er(n);const r=yield*function(e,t){return _r(({type:n,meta:r})=>(null==r?void 0:r.requestId)===t&&(n===e.success.toString()||n===e.failure.toString()))}(e,n.meta.requestId);if(e.success.match(r))return r.payload;throw r.payload}function Mi(e,t,n){return new Promise((r,a)=>{e.run((function*(){try{r(yield*ji(t,n))}catch(e){a(e)}}))})}function Bi(e,t,n){if(t instanceof jr){const r={status:t.status,responseJSON:t.responseJSON};return e.failure(r,n.requestId)}return e.failure(t,n.requestId)}function*Ki(e,t,{payload:n,meta:r}){try{const a=yield*kr(t,n);yield*Er(e.success(a,r.requestId))}catch(t){yield*Er(Bi(e,t,r))}}function qi(e,t){return br(e.request,Ki,e,t)}const Vi=Pi("lifecycle/REHYDRATE"),$i=Li("lifecycle/INIT_DATA_BASE");var Wi=n(11),zi=n.n(Wi),Ji=n(74),Xi=n.n(Ji),Qi=n(198),Yi=n.n(Qi),Zi=n(199),es=n.n(Zi);const ts=Li("SYNC"),ns=Li("SYNC_SEQUENTIALLY"),rs=Li("SYNC_ON_PUSH_NOTIFICATION"),as=Pi("INIT_SYNC_OPTIONS"),is=Li("TOGGLE_SYNC_KEYS_AND_IDENTITIES"),ss=Pi("SET_SHARING_ENABLED"),os=Li("ENABLE_SHARING"),ls=Pi("ENABLE_BELL_SOUND"),cs=Pi("DISABLE_BELL_SOUND"),us=Pi("ENABLE_BRIGHTEN_BOLD_TEXT"),ps=Pi("DISABLE_BRIGHTEN_BOLD_TEXT"),ds=Pi("CHANGE_COLOR_SCHEME"),hs=Pi("ENABLE_DETECT_OS"),fs=Pi("DISABLE_DETECT_OS"),ms=Pi("CHANGE_FONT_FAMILY"),Ss=Pi("CHANGE_FONT_SIZE"),ys=Pi("HIDE_TERMINAL_SHARING_LABEL"),gs=Pi("ENABLE_OPTION_IS_META"),vs=Pi("DISABLE_OPTION_IS_META"),_s=Pi("ENABLE_RIGHT_CLICK_TO_PASTE"),bs=Pi("DISABLE_RIGHT_CLICK_TO_PASTE"),Ps=Pi("SET_SCROLLBACK_SIZE"),ws=Pi("CHANGE_TERMINAL_EMULATION_TYPE"),Es=Pi("HIDE_UNAVAILABLE_PRO_FEATURES_STEPS"),ks=Pi("CHANGE_KEYWORDS_HIGHLIGHTING"),Ts=Pi("SET_SHELL_HISTORY_IMPORT_ENABLED"),Cs=Pi("SET_AUTOCOMPLETE_DISABLED_UNTIL_TIMESTAMP"),Is=Pi("SET_LAYOUT"),As=Pi("SET_LOCAL_TERMINAL_PATH"),Os=Pi("ADD_CUSTOM_LOCAL_TERMINAL_PATH"),xs=Pi("REMOVE_CUSTOM_LOCAL_TERMINAL_PATH"),Ns=Pi("CHANGE_THEME"),Rs=Pi("TOGGLE_TERMINAL_SHARING"),Ds=Pi("SETTINGS_OPENED"),Hs=(Pi("OPEN_CREATE_NEW_GROUP_FORM"),Pi("SET_PORT_FORWARDING_WIZARD_ENABLED")),Fs=Pi("DISABLE_COPY_LINK_INFO"),Gs=Pi("SET_QUICK_CONNECT_HIGHLIGHTED"),Us=Pi("SHOW_APP_INTERFACE"),Ls=Pi("SET_CURRENT_CONNECTION_FLOW_STEP_INDEX"),js=Pi("SET_GRACE_PERIOD_UNTIL_DATE");var Ms=n(200),Bs=n.n(Ms);function Ks(e){return"termius-message://ces-survey"===e}function qs({action:e}){return Ks(e)}class Vs{constructor(e){this.local_id=e.local_id,this.id=e.id,this.updated_at=e.updated_at,this.is_shared=Boolean(e.is_shared)}}class $s extends Vs{constructor(e){super(e),this.cloudType="aws",this.accessKeyId=e.accessKeyId||"",this.secretAccessKey=e.secretAccessKey||"",this.region=e.region||"",this.ipAddressType=e.ipAddressType||"public",this.serviceType=e.serviceType||"ec2"}isEmpty(){return[this.accessKeyId,this.secretAccessKey,this.region].every(e=>null==e)}isFulfilled(){return[this.accessKeyId,this.secretAccessKey,this.region].every(e=>!!e)}}class Ws extends Vs{constructor(e){super(e),this.cloudType="azure",this.tenant_id=e.tenant_id||"",this.client_id=e.client_id||"",this.client_secret=e.client_secret||""}isEmpty(){return[this.tenant_id,this.client_id,this.client_secret].every(e=>null==e)}isFulfilled(){return[this.tenant_id,this.client_id,this.client_secret].every(e=>!!e)}}class zs extends Vs{constructor(e){super(e),this.cloudType="DigitalOcean",this.token=e.token||""}isEmpty(){return!this.token}isFulfilled(){return!!this.token}}var Js=n(68),Xs=n.n(Js);function Qs(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Ys(e){Qs(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function Zs(e,t){Qs(2,arguments);var n=Ys(e),r=Ys(t);return n.getTime()-r.getTime()}var eo={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function to(e){return function(t){var n=t||{},r=n.width?String(n.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var no={date:to({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:to({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:to({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ro={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function ao(e){return function(t,n){var r,a=n||{};if("formatting"===(a.context?String(a.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,s=a.width?String(a.width):i;r=e.formattingValues[s]||e.formattingValues[i]}else{var o=e.defaultWidth,l=a.width?String(a.width):e.defaultWidth;r=e.values[l]||e.values[o]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function io(e){return function(t,n){var r=String(t),a=n||{},i=a.width,s=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],o=r.match(s);if(!o)return null;var l,c=o[0],u=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth];return l="[object Array]"===Object.prototype.toString.call(u)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}(u,(function(e){return e.test(c)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}(u,(function(e){return e.test(c)})),l=e.valueCallback?e.valueCallback(l):l,{value:l=a.valueCallback?a.valueCallback(l):l,rest:r.slice(c.length)}}}var so,oo={code:"en-US",formatDistance:function(e,t,n){var r;return n=n||{},r="string"==typeof eo[e]?eo[e]:1===t?eo[e].one:eo[e].other.replace("{{count}}",t),n.addSuffix?n.comparison>0?"in "+r:r+" ago":r},formatLong:no,formatRelative:function(e,t,n,r){return ro[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:ao({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:ao({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:ao({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:ao({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:ao({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(so={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e,t){var n=String(e),r=t||{},a=n.match(so.matchPattern);if(!a)return null;var i=a[0],s=n.match(so.parsePattern);if(!s)return null;var o=so.valueCallback?so.valueCallback(s[0]):s[0];return{value:o=r.valueCallback?r.valueCallback(o):o,rest:n.slice(i.length)}}),era:io({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:io({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:io({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:io({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:io({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function lo(e){return e.getTime()%6e4}function co(e){var t=new Date(e.getTime()),n=Math.ceil(t.getTimezoneOffset());return t.setSeconds(0,0),6e4*n+(n>0?(6e4+lo(t))%6e4:lo(t))}function uo(e,t){Qs(2,arguments);var n=Ys(e),r=Ys(t),a=n.getTime()-r.getTime();return a<0?-1:a>0?1:a}function po(e,t){Qs(2,arguments);var n=Zs(e,t)/1e3;return n>0?Math.floor(n):Math.ceil(n)}function ho(e){return function(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t=t||{})t.hasOwnProperty(n)&&(e[n]=t[n]);return e}({},e)}function fo(e,t,n){Qs(2,arguments);var r=n||{},a=r.locale||oo;if(!a.formatDistance)throw new RangeError("locale must contain localize.formatDistance property");var i=uo(e,t);if(isNaN(i))throw new RangeError("Invalid time value");var s,o,l=ho(r);l.addSuffix=Boolean(r.addSuffix),l.comparison=i,i>0?(s=Ys(t),o=Ys(e)):(s=Ys(e),o=Ys(t));var c,u=null==r.roundingMethod?"round":String(r.roundingMethod);if("floor"===u)c=Math.floor;else if("ceil"===u)c=Math.ceil;else{if("round"!==u)throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");c=Math.round}var p,d=po(o,s),h=(co(o)-co(s))/1e3,f=c((d-h)/60);if("second"===(p=null==r.unit?f<1?"second":f<60?"minute":f<1440?"hour":f<43200?"day":f<525600?"month":"year":String(r.unit)))return a.formatDistance("xSeconds",d,l);if("minute"===p)return a.formatDistance("xMinutes",f,l);if("hour"===p){var m=c(f/60);return a.formatDistance("xHours",m,l)}if("day"===p){var S=c(f/1440);return a.formatDistance("xDays",S,l)}if("month"===p){var y=c(f/43200);return a.formatDistance("xMonths",y,l)}if("year"===p){var g=c(f/525600);return a.formatDistance("xYears",g,l)}throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'")}const mo="YYYY-MM-DDTHH:mm:ss".length;function So(e){return e.length===mo?new Date(e+"Z"):new Date(e)}function yo(e){return e.toISOString().substr(0,mo)}function go(e,t){let n=0,r="",a="";if(e){const i=So(e.until),s=So(t);n=Math.round(function(e,t){Qs(2,arguments);var n=Zs(e,t)/36e5;return n>0?Math.floor(n):Math.ceil(n)}(i,s)/24),r=fo(i,s,{addSuffix:!0,roundingMethod:"floor"}),a=fo(i,s,{addSuffix:!1,roundingMethod:"floor"})}return[n,r,a]}function vo(e,t){return null!=e?null!=t&&e.isPotentialDuplicate(t):null==t}var _o=n(23),bo=n.n(_o);function Po(e){return null!=e}function wo(e,t){return null!=e?t(e):void 0}class Eo{constructor(e={}){this.local_id=e.local_id,this.id=e.id,this.updated_at=e.updated_at,this.label=e.label||"",this.public_key=e.public_key||"",this.storage=e.storage||"",this.is_shared=Boolean(e.is_shared),this.local_updated_at=e.local_updated_at||null}get type(){return this.isSep()?"Type ECDSA":"Type unknown"}isSep(){return"Secure Enclave"===this.storage}clone(e={}){return new Eo({...this,...e})}}var ko=n(3);function To(e){if(!e)return!1;const t=Object(ko.getKeyTypeFromOpenSSHPrivateKey)(e);return"sk-ec"===t||"sk-ed"===t}function Co(e){if(!e)return"Type unknown";const t=Object(ko.getKeyTypeFromOpenSSHPrivateKey)(e);if(t.startsWith("sk"))return"Type "+t.replace(Io,"$1-sk").replace("ec","ECDSA").replace("ed","ED25519").toUpperCase();const n=e.toLowerCase();return function(e){return Ao(e,["begin rsa","ssh-rsa"])}(n)?"Type RSA":function(e){return Ao(e,["begin dsa","ssh-dss"])}(n)?"Type DSA":function(e){return Ao(e,["begin ec","ecdsa-sha2-nistp"])}(n)?"Type ECDSA":function(e){return Ao(e,["begin openssh","ssh-ed25519"])}(n)?"Type ED25519":"Type unknown"}new Map([["AES-256","aes256"],["AES-128","aes128"],["3DES","des3"],["DES","des"]]);const Io=/sk-(e[cd])/;function Ao(e,t){return t.some(t=>-1!==e.indexOf(t))}class Oo{constructor(e={}){this.local_id=e.local_id,this.id=e.id,this.ssh_key_id=e.ssh_key_id,this.updated_at=e.updated_at,this.label=e.label,this.certificate=e.certificate||"",this.is_shared=Boolean(e.is_shared)}prepareForDuplicate(){this.local_id=void 0,this.id=void 0,this.ssh_key_id=void 0}}class xo{constructor(e={}){var t;this.local_id=e.local_id,this.id=e.id,this.updated_at=e.updated_at,this.label=e.label||"",this.passphrase=e.passphrase||"",this.private_key=e.private_key||"",this.public_key=e.public_key||"",this.certificates=(null!==(t=e.certificates)&&void 0!==t?t:[]).map(e=>new Oo(e)),this.is_shared=Boolean(e.is_shared),this.local_updated_at=e.local_updated_at||null}get type(){return this.certificates.length>0?Co(this.certificates[0].certificate)+" SSH Certificate":Co(this.private_key)}clone(e){return new xo({...this,...e})}prepareForDuplicate(){this.local_id=void 0,this.id=void 0,this.certificates.forEach(e=>e.prepareForDuplicate())}trimPrivateAndPublic(){this.private_key=this.private_key.trim(),this.public_key=this.public_key.trim()}}class No{constructor(e){this.local_id=e.local_id,this.id=e.id,this.updated_at=e.updated_at,this.is_visible=e.is_visible,this.label=e.label||"",this.password=e.password||null,this.ssh_key=e.ssh_key?new xo(e.ssh_key):null,this.hardware_key=e.hardware_key?new Eo(e.hardware_key):null,this.username=e.username||null,this.is_shared=Boolean(e.is_shared),this.local_updated_at=e.local_updated_at||null}isPotentialDuplicate(e){return this.username===e.username}prepareForDuplicate(){return this.local_id=void 0,this.id=void 0,this}isEmpty(){return!1===this.is_visible&&null==this.password&&null==this.ssh_key&&null==this.hardware_key&&null==this.username}get authMethod(){const e=this.ssh_key||this.hardware_key;return this.password&&e?"Auth password and key":this.password?"Auth password":e?"Auth key":"No auth method"}get displayLabel(){return this.label||this.username||""}get lastModifiedAt(){return this.local_updated_at?this.local_updated_at:this.updated_at?So(this.updated_at):void 0}clone(e={}){return new No({...this,...e})}}class Ro{_value(e,t){const{value:n}=this._query(e);return null!=n?n:t}_source(e){return this._query(e).source}_merged(e){return"me"!==this._source(e)}}function Do(e){return null!=e}function Ho(e,t,n){if(e){const t=n(e);if(Do(t))return{value:t,source:"me"}}for(const e of t){const t=n(e);if(Do(t))return{value:t,source:"parent"}}return{value:null,source:"global"}}class Fo extends Ro{constructor(e,t=[]){super(),this.current=e,this.parents=t}_query(e){return function(e,t,n){if(e){const{is_visible:t}=e,r=n(e);if(Do(r))return{value:r,source:"me"};if(t)return{value:null,source:"me"}}for(const e of t){const{is_visible:t}=e,r=n(e);if(Do(r))return{value:r,source:"parent"};if(t)return{value:null,source:"parent"}}return{value:null,source:"global"}}(this.current,this.parents,e)}get id(){return this._value(e=>e.is_visible?e.id:null,null)}get local_id(){return this._value(e=>e.is_visible?e.local_id:null,null)}get updated_at(){return this._value(e=>e.is_visible?e.updated_at:null,null)}get is_visible(){return this._value(e=>e.is_visible,!1)}get label(){if(this.current&&this.current.is_visible)return this.current.label;for(const e of this.parents)if(e.is_visible)return e.label;return""}get password(){return this._value(e=>e.password,"")}get merged_password(){return this._merged(e=>e.password)}get ssh_key(){return this._value(e=>e.ssh_key,null)}get merged_ssh_key(){return this._merged(e=>e.ssh_key)}get hardware_key(){return this._value(e=>e.hardware_key,null)}get merged_hardware_key(){return this._merged(e=>e.hardware_key)}get username(){return this._value(e=>e.username,"")}get usernameSource(){return this._source(e=>e.username)}get merged_username(){return this._merged(e=>e.username)}get is_shared(){return this._value(e=>e.is_shared,!1)}get local_updated_at(){return this._value(e=>e.local_updated_at,null)}isEmpty(){return!this.username&&!this.password&&!this.ssh_key}asIdentity(){return new No({local_id:this.local_id,id:this.id,label:this.label,username:this.username,password:this.password,is_visible:this.is_visible,hardware_key:this.hardware_key,is_shared:this.is_shared,updated_at:this.updated_at,ssh_key:this.ssh_key,local_updated_at:this.local_updated_at})}}class Go extends Ro{constructor(e,t=[]){var n;super(),this.current=e,this.parents=t,this.identity=new Fo(null===(n=this.current)||void 0===n?void 0:n.identity,this.parents.map(({identity:e})=>e).filter(Po))}_query(e){return Ho(this.current,this.parents,e)}get agent_forwarding(){return this._value(e=>e.agent_forwarding,!1)}get agentForwardingSource(){return this._source(e=>e.agent_forwarding)}get charset(){return this._value(e=>e.charset,"UTF-8")}get charsetSource(){return this._source(e=>e.charset)}get mergedCharset(){return this._merged(e=>e.charset)}get color_scheme(){return this._value(e=>e.color_scheme,null)}get colorSchemeSource(){return this._source(e=>e.color_scheme)}get cursor_blink(){return this._value(e=>e.cursor_blink,null)}get env_variables(){return this._value(e=>e.env_variables,[])}get envVariablesSource(){return this._source(e=>e.env_variables)}get font_size(){return this._value(e=>e.font_size,null)}get is_forward_ports(){return this._value(e=>e.is_forward_ports,null)}get keep_alive_packages(){return this._value(e=>e.keep_alive_packages,null)}get mosh_server_command(){return this._value(e=>e.mosh_server_command||null,"mosh-server new -s -l LANG=en_US.UTF-8")}get port(){return this._value(e=>e.port,22)}get portSource(){return this._source(e=>e.port)}get proxy(){return this._value(e=>e.proxy,null)}get proxy_source(){return this._source(e=>e.proxy)}get merged_proxy(){return this._merged(e=>e.proxy)}get startup_snippet(){return this._value(e=>e.startup_snippet,null)}get startupSnippetSource(){return this._source(e=>e.startup_snippet)}get mergedStartupSnippet(){return this._merged(e=>e.startup_snippet)}get strict_host_key_check(){return this._value(e=>e.strict_host_key_check,null)}get timeout(){return this._value(e=>e.timeout,null)}get use_mosh(){return this._value(e=>e.use_mosh,!1)}get useMoshSource(){return this._source(e=>e.use_mosh)}get use_ssh_key(){return this._value(e=>e.use_ssh_key,null)}get host_chain(){return this._value(e=>e.host_chain,null)}get host_chain_source(){return this._source(e=>e.host_chain)}get mergedHostChain(){return this._merged(e=>e.host_chain)}get is_shared(){return this._value(e=>e.is_shared,!1)}}class Uo extends Ro{constructor(e,t=[]){var n;super(),this.current=e,this.parents=t,this.identity=new Fo(null===(n=this.current)||void 0===n?void 0:n.identity,this.parents.map(({identity:e})=>e).filter(Po))}_query(e){return Ho(this.current,this.parents,e)}get charset(){return this._value(e=>e.charset,"UTF-8")}get charsetSource(){return this._source(e=>e.charset)}get mergedCharset(){return this._merged(e=>e.charset)}get color_scheme(){return this._value(e=>e.color_scheme,null)}get colorSchemeSource(){return this._source(e=>e.color_scheme)}get cursor_blink(){return this._value(e=>e.cursor_blink,null)}get font_size(){return this._value(e=>e.font_size,null)}get keep_alive_packages(){return this._value(e=>e.keep_alive_packages,null)}get port(){return this._value(e=>e.port,23)}get portSource(){return this._source(e=>e.port)}get startup_snippet(){return this._value(e=>e.startup_snippet,null)}get mergedStartupSnippet(){return this._merged(e=>e.startup_snippet)}get timeout(){return this._value(e=>e.timeout,1500)}get is_shared(){return this._value(e=>e.is_shared,!1)}}class Lo{constructor(e){this.local_id=e.local_id,this.id=e.id,this.address=e.address||"",this.label=e.label||"",this.os_name=e.os_name||""}get displayLabel(){return this.label||this.address}}class jo{constructor(e){this.local_id=e.local_id,this.id=e.id,this.updated_at=e.updated_at,this.is_shared=Boolean(e.is_shared),this.hosts_chain=e.hosts_chain?e.hosts_chain.map(e=>new Lo(e)):[]}prepareForDuplicate(){this.local_id=void 0,this.id=void 0}get displayLabel(){return this.hosts_chain.map(e=>e.displayLabel).join(" -> ")}clone(e={}){return new jo({...this,...e})}}function Mo(e){switch(e){case"http":return 3128;case"socks":return 1080;default:return 0}}class Bo{constructor(e={}){this.local_id=e.local_id,this.id=e.id,this.updated_at=e.updated_at,this.hostname=e.hostname||"",this.identity=e.identity?new No(e.identity):null,this.type=e.type||"http",this.port=null!=e.port?e.port:Mo(this.type),this.is_shared=Boolean(e.is_shared)}prepareForDuplicate(){this.local_id=void 0,this.id=void 0,this.identity&&!this.identity.is_visible&&this.identity.prepareForDuplicate()}get displayLabel(){return`${this.hostname}:${this.port}`}clone(e={}){return new Bo({...this,...e})}}class Ko{constructor(e){this.local_id=e.local_id,this.id=e.id,this.updated_at=e.updated_at,this.label=e.label,this.is_shared=Boolean(e.is_shared),this.snippets_count=e.snippets_count}clone(e={}){return new Ko({...this,...e})}}class qo{constructor(e={}){this.local_id=e.local_id,this.id=e.id,this.updated_at=e.updated_at,this.auto_close=null==e.auto_close||e.auto_close,this.label=e.label||"",this.script=e.script||"",this.is_shared=Boolean(e.is_shared),this.local_updated_at=e.local_updated_at||null,this.package=e.package?new Ko(e.package):null,this.aianalyticsID=e.aianalyticsID}get displayLabel(){var e;return this.label?this.label:null!==(e=function(e,t="\n"){return e.split(t).find(e=>e.trim().length>0)}(this.script))&&void 0!==e?e:""}clone(e={}){return new qo({...this,...e})}prepareForDuplicate(){this.local_id=void 0,this.id=void 0}}class Vo{constructor(e={}){this.local_id=e.local_id,this.id=e.id,this.updated_at=e.updated_at,this.agent_forwarding=e.agent_forwarding,this.charset=e.charset,this.color_scheme=e.color_scheme,this.cursor_blink=e.cursor_blink,this.env_variables=e.env_variables?e.env_variables.slice():null,this.font_size=e.font_size,this.identity=e.identity?new No(e.identity):null,this.is_forward_ports=e.is_forward_ports,this.keep_alive_packages=e.keep_alive_packages,this.mosh_server_command=e.mosh_server_command,this.port=e.port,this.proxy=e.proxy?new Bo(e.proxy):null,this.startup_snippet=e.startup_snippet?new qo(e.startup_snippet):null,this.strict_host_key_check=e.strict_host_key_check,this.timeout=e.timeout,this.use_mosh=e.use_mosh,this.use_ssh_key=e.use_ssh_key,this.host_chain=null!=e.host_chain?new jo(e.host_chain):null,this.is_shared=Boolean(e.is_shared),this.local_updated_at=e.local_updated_at||null}static parseEnvVariables(e){if(!e)return null;try{const t=JSON.parse(e);return Object.entries(t).map(([e,t])=>({name:e,value:"string"==typeof t?t:""}))}catch(e){return null}}static stringifyEnvVariables(e){const t={};return e&&e.forEach(e=>{t[e.name]=e.value}),JSON.stringify(t)}isPotentialDuplicate(e){return this.port===e.port&&vo(this.identity,e.identity)}prepareForDuplicate(){this.local_id=void 0,this.id=void 0,this.identity&&!this.identity.is_visible&&this.identity.prepareForDuplicate(),this.proxy&&this.proxy.prepareForDuplicate(),this.host_chain&&this.host_chain.prepareForDuplicate()}isEmpty(){return[this.agent_forwarding,this.charset,this.color_scheme,this.cursor_blink,this.env_variables,this.font_size,this.identity,this.is_forward_ports,this.keep_alive_packages,this.mosh_server_command,this.port,this.proxy,this.startup_snippet,this.strict_host_key_check,this.timeout,this.use_mosh,this.use_ssh_key,this.host_chain].every(e=>null==e)}stripEmptyIdentity(){this.identity&&this.identity.isEmpty()&&(this.identity=null)}stripForNonProUsers(){var e,t;this.agent_forwarding=null,this.env_variables=null,this.startup_snippet=null,this.proxy=null,this.host_chain=null,(null===(t=null===(e=this.identity)||void 0===e?void 0:e.ssh_key)||void 0===t?void 0:t.certificates)&&(this.identity.ssh_key.certificates=[])}clone(e={}){return new Vo({...this,...e})}}class $o{constructor(e={}){this.local_id=e.local_id,this.id=e.id,this.updated_at=e.updated_at,this.charset=e.charset,this.color_scheme=e.color_scheme,this.cursor_blink=e.cursor_blink,this.font_size=e.font_size,this.identity=e.identity?new No(e.identity):null,this.keep_alive_packages=e.keep_alive_packages,this.port=e.port,this.startup_snippet=e.startup_snippet?new qo(e.startup_snippet):null,this.timeout=e.timeout,this.is_shared=Boolean(e.is_shared),this.local_updated_at=e.local_updated_at||null}isPotentialDuplicate(e){return this.port===e.port&&vo(this.identity,e.identity)}prepareForDuplicate(){this.local_id=void 0,this.id=void 0,this.identity&&!this.identity.is_visible&&this.identity.prepareForDuplicate()}isEmpty(){return null==this.charset&&null==this.color_scheme&&null==this.cursor_blink&&null==this.font_size&&null==this.identity&&null==this.keep_alive_packages&&null==this.port&&null==this.startup_snippet&&null==this.timeout}stripEmptyIdentity(){this.identity&&this.identity.isEmpty()&&(this.identity=null)}stripForNonProUsers(){var e,t;this.startup_snippet=null,(null===(t=null===(e=this.identity)||void 0===e?void 0:e.ssh_key)||void 0===t?void 0:t.certificates)&&(this.identity.ssh_key.certificates=[])}clone(e={}){return new $o({...this,...e})}}class Wo{constructor(e={}){var t;this.local_id=e.local_id,this.id=e.id,this.updated_at=e.updated_at,this.label=e.label||"",this.parent_group=e.parent_group?new Wo(e.parent_group):null,this.ssh_config=e.ssh_config?new Vo(e.ssh_config):null,this.cloud_config=e.cloud_config?zo(e.cloud_config):null,this.telnet_config=e.telnet_config?new $o(e.telnet_config):null,this.is_shared=Boolean(e.is_shared),this.local_updated_at=e.local_updated_at||null,this.sharing_mode=null!==(t=e.sharing_mode)&&void 0!==t?t:null}get displayLabel(){return this.label}get parentGroups(){const{parent_group:e}=this;return e?[e,...e.parentGroups]:[]}get rootGroup(){var e;return null!==(e=bo()(this.parentGroups))&&void 0!==e?e:this}getDefaultProtocolForConnection(){const e=this.hasMergedSshConfig(),t=this.hasMergedTelnetConfig();return e&&t?null:e?this.getMergedSshConfig().use_mosh?"mosh":"ssh":t?"telnet":null}hasMergedSshConfig(){return!!this.ssh_config||!!this.parent_group&&this.parent_group.hasMergedSshConfig()}hasMergedTelnetConfig(){return!!this.telnet_config||!!this.parent_group&&this.parent_group.hasMergedTelnetConfig()}getMergedSshConfig(){var e;return new Go(this.ssh_config,null===(e=this.parent_group)||void 0===e?void 0:e.getSshConfigsRecursively())}getMergedTelnetConfig(){var e;return new Uo(this.telnet_config,null===(e=this.parent_group)||void 0===e?void 0:e.getTelnetConfigsRecursively())}getSshConfigsRecursively(){return[this.ssh_config,...this.parentGroups.map(({ssh_config:e})=>e)].filter(Po)}getTelnetConfigsRecursively(){return[this.telnet_config,...this.parentGroups.map(({telnet_config:e})=>e)].filter(Po)}stripEmptyIdentities(){this.ssh_config&&this.ssh_config.stripEmptyIdentity(),this.telnet_config&&this.telnet_config.stripEmptyIdentity()}stripConfigsForNonProUsers(){this.parent_group&&this.parent_group.stripConfigsForNonProUsers(),this.ssh_config&&this.ssh_config.stripForNonProUsers(),this.telnet_config&&this.telnet_config.stripForNonProUsers(),this.cloud_config&&(this.cloud_config=null)}clone(e={}){return new Wo({...this,...e})}static clone(e,t={}){return new Wo({...e}).clone(t)}}function zo(e){if("aws"===e.cloudType)return new $s(e);if("DigitalOcean"===e.cloudType)return new zs(e);if("azure"===e.cloudType)return new Ws(e);throw new Error("Incorrect cloud config")}class Jo{constructor(e={}){this.local_id=e.local_id,this.id=e.id,this.cloud_instance_id=e.cloud_instance_id,this.cloud_instance_type=e.cloud_instance_type,this.updated_at=e.updated_at,this.address=e.address||"",this.backspace=e.backspace||"default",this.group=e.group?new Wo(e.group):null,this.icon=e.icon||"",this.interaction_date=e.interaction_date,this.label=e.label||"",this.os_name=e.os_name||"",this.ssh_config=e.ssh_config?new Vo(e.ssh_config):null,this.telnet_config=e.telnet_config?new $o(e.telnet_config):null,this.tags=Array.isArray(e.tags)?[...e.tags]:[],this.is_shared=Boolean(e.is_shared),this.ip_version=e.ip_version||"AUTO",this.local_updated_at=e.local_updated_at||null,this.connectionPath=Array.isArray(e.connectionPath)?e.connectionPath.map(e=>new Jo(e)):[]}static fromLocalhost(e){return new Jo({address:e.address,ssh_config:{port:e.port,identity:{is_visible:!1,username:e.username,password:e.password}}})}isPotentialDuplicate(e){return this.address===e.address&&this.label===e.label&&vo(this.ssh_config,e.ssh_config)&&vo(this.telnet_config,e.telnet_config)}touch(){this.interaction_date=yo(new Date)}prepareForDuplicate(){this.local_id=void 0,this.id=void 0,this.cloud_instance_id=void 0,this.cloud_instance_type=void 0,this.os_name="",this.ssh_config&&this.ssh_config.prepareForDuplicate(),this.telnet_config&&this.telnet_config.prepareForDuplicate()}get displayLabel(){return this.label||this.address}get actions(){const e=[];return this.ssh_config&&(this.getMergedSshConfig().use_mosh&&e.push("mosh"),e.push("ssh")),this.telnet_config&&e.push("telnet"),e}get firstChain(){return this.connectionPath.length>1?this.connectionPath[0]:null}get description(){const{ssh_config:e,telnet_config:t}=this,n=[...this.actions];e&&e.identity&&e.identity.username&&n.push(e.identity.username),t&&t.identity&&t.identity.username&&n.push(t.identity.username);const r=Xs()(this.tags);return n.concat(r).join(", ")}get parentGroups(){const{group:e}=this;return e?[e,...e.parentGroups]:[]}getMergedSshConfig(){var e;return new Go(this.ssh_config,null===(e=this.group)||void 0===e?void 0:e.getSshConfigsRecursively())}getDefaultProtocolForConnection(){return this.ssh_config&&this.telnet_config?null:this.ssh_config?this.getMergedSshConfig().use_mosh?"mosh":"ssh":this.telnet_config?"telnet":this.group?this.group.getDefaultProtocolForConnection():null}getHostChainCount(){return this.connectionPath.length>1?this.connectionPath.length-1:0}getMergedTelnetConfig(){var e;return new Uo(this.telnet_config,null===(e=this.group)||void 0===e?void 0:e.getTelnetConfigsRecursively())}getMergedConfigFor(e){return"ssh"===e||"mosh"===e?this.getMergedSshConfig():"telnet"===e?this.getMergedTelnetConfig():void 0}stripEmptyIdentities(){this.ssh_config&&this.ssh_config.stripEmptyIdentity(),this.telnet_config&&this.telnet_config.stripEmptyIdentity()}stripConfigsForNonProUsers(){this.group&&this.group.stripConfigsForNonProUsers(),this.ssh_config&&this.ssh_config.stripForNonProUsers(),this.telnet_config&&this.telnet_config.stripForNonProUsers()}clone(e={}){return new Jo({...this,...e})}get rootGroup(){var e;return null===(e=this.group)||void 0===e?void 0:e.rootGroup}static clone(e,t={}){return new Jo({...e}).clone(t)}}function Xo(e,t){return e?t:[]}function Qo(e,t){return e?t:{}}const Yo={no_credentials_sharing:"No credentials",credentials_sharing:"Credentials",multikey:"MultiKey"},Zo="Host",el="Group",tl="Snippet",nl="Package";function rl(e,t=!1){return(null!=e?e:t)?"yes":"no"}function al(e,t){switch(t){case"me":return e?"yes":"no";case"parent":return"inherited";default:return"no"}}function il(e){return e?"yes":"no"}function sl({type:e,host:t,teamStatus:n,sshServer:r,sshServerComment:a,failureReason:i,errorCode:s,connectionOrigin:o,history:l,connectionID:c,acquisitionChannel:u,cloudIntegration:p,fido2BasedKey:d=!1,sepkey:h=!1}){var f;const m={hostsInChain:0,isSharedEntity:"no",snippet:"no",proxy:"no",mosh:"no",environmentVariables:"no",port:"no",charset:"no",username:"no",theme:"no",agentForwarding:"disabled",credentials:[],parentGroup:"None",hostChain:"no",connectionID:c,cloudIntegration:p};if(e&&(m.type=e),m.sshServer=r,m.sshServerComment=a,i&&(m.failureReason=i),s&&(m.connectionErrorCode=s),o&&(m.connectionOrigin=o),null!=l&&(m.history=l),u&&(m.acquisitionChannel=u),m.fido2BasedKey=rl(d),m.sepkey=rl(h),"Local"===m.type||!t)return m.isSharedEntityOwner="no",m.isSharedEntity="no",m;const{isOwner:S,isTeam:y}=n;if(m.isSharedEntityOwner=il(y&&S||!y),m.isSharedEntity=il(t.is_shared),m.addressType=function(e){switch(Bs.a.isIP(e)){case 4:return"IPv4";case 6:return"IPv6";default:return"hostname"}}(t.address),"Telnet"===m.type)return m;const g=new Jo(t);m.hostsInChain=function(e){return e.connectionPath.length>1?e.connectionPath.length-1:0}(g);const v=g.getMergedSshConfig();return m.hostChain=function(e){var t;return al(Boolean(null===(t=e.host_chain)||void 0===t?void 0:t.hosts_chain.length),e.host_chain_source)}(v),m.snippet=al(Boolean(v.startup_snippet),v.startupSnippetSource),m.proxy=al(Boolean(v.proxy),v.proxy_source),m.mosh=al(Boolean(v.use_mosh),v.useMoshSource),m.environmentVariables=al(Boolean(v.env_variables.length),v.envVariablesSource),m.port=al(Boolean(v.port),v.portSource),m.charset=al(Boolean(v.charset),v.charsetSource),m.theme=al(Boolean(v.color_scheme),v.colorSchemeSource),m.agentForwarding=function(e,t){const n=al(e,t);return"yes"===n?"enabled":"no"===n?"disabled":"inherited"}(Boolean(v.agent_forwarding),v.agentForwardingSource),m.username=function(e){const{identity:t}=e;return t.is_visible?"no":al(Boolean(t.username),t.usernameSource)}(v),m.credentials=function(e){const{identity:t}=e;if(t.is_visible)return[t.merged_username?"Inherited Identity":"Identity"];const n=[];return t.password&&n.push(t.merged_password?"Inherited Password":"Password"),t.ssh_key&&(t.ssh_key.certificates[0]?n.push(t.merged_ssh_key?"Inherited SSH Certificate":"SSH Certificate"):n.push(t.merged_ssh_key?"Inherited SSH Key":"SSH Key")),n}(v),m.parentGroup=function(e){return e.group?e.group.parent_group?"Nested":"Root":"None"}(g),(null===(f=g.rootGroup)||void 0===f?void 0:f.sharing_mode)&&(m.credentialsSharingMode=Yo[g.rootGroup.sharing_mode]),m}const ol={type:void 0,hostChain:void 0,agentForwarding:void 0,addressType:void 0,isSharedEntityOwner:void 0,isLocationTrackingEnabled:void 0,sepkey:void 0,connectionOrigin:void 0,connectionID:void 0,credentialsSharingMode:void 0},ll=e=>(({failureReason:e,history:t,acquisitionChannel:n,fido2BasedKey:r,sepkey:a,cloudIntegration:i,...s})=>({...ol,history:null!=t?t:0,acquisitionChannel:n,fido2BasedKey:r,sepkey:a,cloudIntegration:i,...s}))(sl(e)),cl=e=>(({failureReason:e,history:t,fido2BasedKey:n,sepkey:r,cloudIntegration:a,...i})=>({...ol,fido2BasedKey:n,sepkey:r,cloudIntegration:a,...i}))(sl(e)),ul=e=>(({history:e,failureReason:t,connectionID:n,fido2BasedKey:r,sepkey:a,cloudIntegration:i,sshServer:s,sshServerComment:o,...l})=>({...ol,connectionErrorCode:void 0,failureReason:null!=t?t:"Unknown Error",connectionID:n,fido2BasedKey:r,sepkey:a,cloudIntegration:i,sshserver:s,sshserverComment:o,...l}))(sl(e));function pl(e){switch(e){case"App Store":return"Mac App Store";case"Windows Store":return"Microsoft Store";case"Snapcraft":return"Snapcraft";case"Debian Package":return"Debian Package";default:return"Website"}}function dl(e){switch(e){case"portForwarding":return"Port Forwarding";case"keychain":return"Keychain";case"snippets":return"Snippets";case"knownHosts":return"Known Hosts";default:return"Hosts"}}function hl(e){return"termius-message://migrate-to-new-crypto"===e?"NewEncryption":Ks(e)?"Customer Experience Survey":"termius-message://kex"===e?"Confirm Access":null}const fl=({hasSharedData:e,hasInvitedMembers:t,hasJoinedMembers:n,hasGrantedAccess:r})=>({hasSharedData:rl(e),hasInvitedMembers:rl(t),hasJoinedMembers:rl(n),hasGrantedAccess:rl(r)}),ml=e=>{let t=0;for(const[n,r]of Object.entries(e))t+=r;return{selectedItems:[...Xo(Boolean(e.groups),[el]),...Xo(Boolean(e.hosts),[Zo]),...Xo(Boolean(e.snippets),[tl]),...Xo(Boolean(e.snippetsPackages),[nl])],numberOfSelectedItems:t}},Sl=e=>{const t=e.toLowerCase();return t.includes("aws")?"AWS":t.includes("azure")?"Azure":"Digital Ocean"},yl=e=>{const{cloud_instance_type:t}=null!=e?e:{};return null==t?null:Sl(t)},gl=e=>{if(e instanceof $s)return"lightsail"===e.serviceType?"Amazon Lightsail":"Amazon EC2";if(e instanceof Ws)return"Azure VMs";if(e instanceof zs)return"DigitalOcean Droplets";throw new Error("An unknown cloud config: "+(null==e?void 0:e.cloudType))},vl=e=>e instanceof $s?e.ipAddressType:"public";function _l(e){const t=[];return e.ssh_key&&t.push("SSH key"),e.hardware_key&&t.push("Hardware key"),e.password&&t.push("Password"),0===t.length&&e.username&&t.push("Username-only"),e.is_visible&&t.push("Identity"),t}function bl(e){throw new Error("Switch is not exhaustive")}const Pl=Li("UPDATE_USER"),wl=Pi("SET_USER"),El=Li("SECURITY_TOKEN"),kl=Li("ENABLE_2FA"),Tl=Li("DISABLE_2FA"),Cl=Li("MODIFY_TEAM"),Il=Li("OTP_REGISTER_PROVIDER_AUTHY"),Al=Li("OTP_REGISTER_PROVIDER_TOTP"),Ol=Li("CREATE_TEAM_TRIAL"),xl=Li("UPDATE_BILLING_INFORMATION"),Nl=Li("INVITE_TEAM_MEMBER"),Rl=Li("SIGN_UP_FREE"),Dl=Li("SIGNUP_TRIAL"),Hl=Li("LOGIN"),Fl=Pi("LOGGED_IN"),Gl=Pi("SIGNED_IN"),Ul=Li("LOGOUT"),Ll=Li("CHANGE_USERNAME"),jl=Li("DELETE_ACCOUNT"),Ml=Li("CHANGE_PASSWORD"),Bl=Li("RECOVER_ACCOUNT"),Kl=Li("RESET_PASSWORD"),ql=Li("SEND_VERIFICATION_CODE"),Vl=Li("CONFIRM_EMAIL"),$l=Li("CLEAN_DATABASE"),Wl=Li("REMOVE_LOCAL_DATA"),zl=Li("GET_TEAM_SEATS_LIST"),Jl=Li("GET_TEAM_MEMBERS_LIST"),Xl=Li("GET_TEAM_INVITES_LIST"),Ql=Pi("TEAM_UPDATED"),Yl=Li("GET_TEAM_MEMBER_STALE_ENCRYPTION_LIST"),Zl=Li("GET_STALE_ENCRYPTION_DEVICES_LIST"),ec=Li("GET_ONLY_SHARED_ENTITIES"),tc=Li("DEACTIVATE_TEAM_TRIAL"),nc=Li("MIGRATE_TO_NEW_CRYPTO_SYSTEM"),rc=Li("RESET_PASSWORD_AND_MIGRATE_TO_NEW_CRYPTO_SYSTEM"),ac=Li("REQUEST_UNSYNCED_PERSONAL_DATA"),ic=Li("REQUEST_IS_USER_HAS_ACCESS_TO_SHARED_DATA"),sc=Li("DETECT_SSO_ACTION"),oc=Li("SSO_SIGNUP_TRIAL"),lc=Li("GENERATE_INVITATION_LINK"),cc=Li("KEY_EXCHANGE_WITH_MEMBER"),uc=Li("SIGN_UP_IN_TEAM_TRIAL_ONBOARDING"),pc=Li("CREATE_TEAM_IN_TEAM_TRIAL_ONBOARDING"),dc=Li("QUERY_WHETHER_USER_ENTERPRISE_SSO"),hc=Li("CREATE_TEAM_IN_UNIFY_TRIAL_EXTEND"),{reducer:fc,actions:mc,getInitialState:Sc}=ki({name:"customerExperience",reducers:{setCESVisibility(e,{payload:t}){e.isCESVisible=t},userInteractedWithSurvey(e,{payload:t}){e.interactionData=t,"dismissed"===t.action&&(e.dismissCount+=1)},removeInteractionData(e){e.interactionData=null},initWasPerformed(e){e.initWasPerformed=!0},keyEventHasHappened(e){e.keyEventHasHappened=!0}},extraReducers:e=>{e.addCase(Ul.success,e=>{e.isCESVisible=!1,e.interactionData=null,e.initWasPerformed=!1,e.keyEventHasHappened=!1})},initialState:{isCESVisible:!1,interactionData:null,initWasPerformed:!1,keyEventHasHappened:!1,dismissCount:0}}),{setCESVisibility:yc,userInteractedWithSurvey:gc,removeInteractionData:vc,initWasPerformed:_c,keyEventHasHappened:bc}=mc;var Pc=fc;const wc=Pi("HANDLE_SHOW_DIALOG"),Ec=Li("SHOW_DIALOG"),kc=Pi("UPDATE_DIALOG_PROPS"),Tc=Pi("DIALOG_OPENED"),Cc=Pi("CLOSE_DIALOG"),Ic=Pi("DESTROY_DIALOG");class Ac extends Error{constructor(){super(...arguments),this.name="FailedToFetchUser"}}class Oc extends Error{constructor(){super(...arguments),this.name="UserIsNotProError"}}var xc=Oc;const Nc=Pi("MARK_AS_READ"),Rc=Pi("ADD_LOCAL_IN_APP_MESSAGE"),Dc=Pi("REMOVE_LOCAL_IN_APP_MESSAGE"),Hc=Pi("REMOVE_UPDATE_IN_APP_MESSAGE"),Fc=Pi("MARK_ALL_AS_READ"),Gc=(Pi("CLEAR_ALL_IN_APP_MESSAGES"),Pi("IN_APP_MESSAGE_DETAILS_PRESSED")),Uc=Pi("IN_APP_MESSAGE_LIST_SCREEN_OPENED"),Lc=Pi("GET_IN_APP_MESSAGES_ON_PUSH_NOTIFICATION"),jc=Li("GET_IN_APP_MESSAGES"),Mc=Li("INIT_IN_APP_MESSAGES"),Bc=Li("UPDATE_IN_APP_MESSAGES"),Kc=Pi("SHOW_FULL_SCREEN_IN_APP_MESSAGES"),qc=Li("REMOVE_IN_APP_MESSAGES");var Vc,$c,Wc=n(1),zc=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){Vc=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.__sentry_original__||this;return Vc.apply(n,e)}},e.id="FunctionToString",e}(),Jc=n(6),Xc=n(408);!function(e){e.PENDING="PENDING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED"}($c||($c={}));var Qc=function(){function e(e){var t=this;this._state=$c.PENDING,this._handlers=[],this._resolve=function(e){t._setResult($c.RESOLVED,e)},this._reject=function(e){t._setResult($c.REJECTED,e)},this._setResult=function(e,n){t._state===$c.PENDING&&(Object(Jc.m)(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._attachHandler=function(e){t._handlers=t._handlers.concat(e),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==$c.PENDING){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e.done||(t._state===$c.RESOLVED&&e.onfulfilled&&e.onfulfilled(t._value),t._state===$c.REJECTED&&e.onrejected&&e.onrejected(t._value),e.done=!0)}))}};try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}return e.resolve=function(t){return new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){return new e((function(n,r){if(Array.isArray(t))if(0!==t.length){var a=t.length,i=[];t.forEach((function(t,s){e.resolve(t).then((function(e){i[s]=e,0===(a-=1)&&n(i)})).then(null,r)}))}else n([]);else r(new TypeError("Promise.all requires an array as input."))}))},e.prototype.then=function(t,n){var r=this;return new e((function(e,a){r._attachHandler({done:!1,onfulfilled:function(n){if(t)try{return void e(t(n))}catch(e){return void a(e)}else e(n)},onrejected:function(t){if(n)try{return void e(n(t))}catch(e){return void a(e)}else a(t)}})}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var n=this;return new e((function(e,r){var a,i;return n.then((function(e){i=!1,a=e,t&&t()}),(function(e){i=!0,a=e,t&&t()})).then((function(){i?r(a):e(a)}))}))},e.prototype.toString=function(){return"[object SyncPromise]"},e}(),Yc=n(14),Zc=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}return e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=Object(Wc.d)(t._breadcrumbs),n._tags=Object(Wc.a)({},t._tags),n._extra=Object(Wc.a)({},t._extra),n._contexts=Object(Wc.a)({},t._contexts),n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=Object(Wc.d)(t._eventProcessors)),n},e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype.setUser=function(e){return this._user=e||{},this._session&&this._session.update({user:e}),this._notifyScopeListeners(),this},e.prototype.getUser=function(){return this._user},e.prototype.setTags=function(e){return this._tags=Object(Wc.a)(Object(Wc.a)({},this._tags),e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=Object(Wc.a)(Object(Wc.a)({},this._tags),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=Object(Wc.a)(Object(Wc.a)({},this._extra),e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=Object(Wc.a)(Object(Wc.a)({},this._extra),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransactionName=function(e){return this._transactionName=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this.setTransactionName(e)},e.prototype.setContext=function(e,t){var n;return null===t?delete this._contexts[e]:this._contexts=Object(Wc.a)(Object(Wc.a)({},this._contexts),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.prototype.getTransaction=function(){var e,t,n,r,a=this.getSpan();return(null===(e=a)||void 0===e?void 0:e.transaction)?null===(t=a)||void 0===t?void 0:t.transaction:(null===(r=null===(n=a)||void 0===n?void 0:n.spanRecorder)||void 0===r?void 0:r.spans[0])?a.spanRecorder.spans[0]:void 0},e.prototype.setSession=function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this},e.prototype.getSession=function(){return this._session},e.prototype.update=function(t){if(!t)return this;if("function"==typeof t){var n=t(this);return n instanceof e?n:this}return t instanceof e?(this._tags=Object(Wc.a)(Object(Wc.a)({},this._tags),t._tags),this._extra=Object(Wc.a)(Object(Wc.a)({},this._extra),t._extra),this._contexts=Object(Wc.a)(Object(Wc.a)({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint)):Object(Jc.h)(t)&&(t=t,this._tags=Object(Wc.a)(Object(Wc.a)({},this._tags),t.tags),this._extra=Object(Wc.a)(Object(Wc.a)({},this._extra),t.extra),this._contexts=Object(Wc.a)(Object(Wc.a)({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint)),this},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n=Object(Wc.a)({timestamp:Object(Xc.a)()},e);return this._breadcrumbs=void 0!==t&&t>=0?Object(Wc.d)(this._breadcrumbs,[n]).slice(-t):Object(Wc.d)(this._breadcrumbs,[n]),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype.applyToEvent=function(e,t){var n;if(this._extra&&Object.keys(this._extra).length&&(e.extra=Object(Wc.a)(Object(Wc.a)({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=Object(Wc.a)(Object(Wc.a)({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=Object(Wc.a)(Object(Wc.a)({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=Object(Wc.a)(Object(Wc.a)({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=Object(Wc.a)({trace:this._span.getTraceContext()},e.contexts);var r=null===(n=this._span.transaction)||void 0===n?void 0:n.name;r&&(e.tags=Object(Wc.a)({transaction:r},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=Object(Wc.d)(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,this._notifyEventProcessors(Object(Wc.d)(eu(),this._eventProcessors),e,t)},e.prototype._notifyEventProcessors=function(e,t,n,r){var a=this;return void 0===r&&(r=0),new Qc((function(i,s){var o=e[r];if(null===t||"function"!=typeof o)i(t);else{var l=o(Object(Wc.a)({},t),n);Object(Jc.m)(l)?l.then((function(t){return a._notifyEventProcessors(e,t,n,r+1).then(i)})).then(null,s):a._notifyEventProcessors(e,l,n,r+1).then(i).then(null,s)}}))},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(t){t(e)})),this._notifyingListeners=!1)},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e}();function eu(){var e=Object(Yc.e)();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}function tu(e){eu().push(e)}var nu=Object(Yc.e)(),ru="Sentry Logger ",au=function(){function e(){this._enabled=!1}return e.prototype.disable=function(){this._enabled=!1},e.prototype.enable=function(){this._enabled=!0},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Object(Yc.c)((function(){nu.console.log(ru+"[Log]: "+e.join(" "))}))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Object(Yc.c)((function(){nu.console.warn(ru+"[Warn]: "+e.join(" "))}))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&Object(Yc.c)((function(){nu.console.error(ru+"[Error]: "+e.join(" "))}))},e}();nu.__SENTRY__=nu.__SENTRY__||{};var iu,su=nu.__SENTRY__.logger||(nu.__SENTRY__.logger=new au),ou=n(69);!function(e){e.Ok="ok",e.Exited="exited",e.Crashed="crashed",e.Abnormal="abnormal"}(iu||(iu={}));var lu=n(15),cu=function(){function e(e){this.errors=0,this.sid=Object(Yc.j)(),this.timestamp=Date.now(),this.started=Date.now(),this.duration=0,this.status=iu.Ok,e&&this.update(e)}return e.prototype.update=function(e){void 0===e&&(e={}),e.user&&(e.user.ip_address&&(this.ipAddress=e.user.ip_address),e.did||(this.did=e.user.id||e.user.email||e.user.username)),this.timestamp=e.timestamp||Date.now(),e.sid&&(this.sid=32===e.sid.length?e.sid:Object(Yc.j)()),e.did&&(this.did=""+e.did),"number"==typeof e.started&&(this.started=e.started),"number"==typeof e.duration?this.duration=e.duration:this.duration=this.timestamp-this.started,e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),e.ipAddress&&(this.ipAddress=e.ipAddress),e.userAgent&&(this.userAgent=e.userAgent),"number"==typeof e.errors&&(this.errors=e.errors),e.status&&(this.status=e.status)},e.prototype.close=function(e){e?this.update({status:e}):this.status===iu.Ok?this.update({status:iu.Exited}):this.update()},e.prototype.toJSON=function(){return Object(lu.a)({sid:""+this.sid,init:!0,started:new Date(this.started).toISOString(),timestamp:new Date(this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:Object(lu.a)({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},e}(),uu=function(){function e(e,t,n){void 0===t&&(t=new Zc),void 0===n&&(n=3),this._version=n,this._stack=[{}],this.getStackTop().scope=t,this.bindClient(e)}return e.prototype.isOlderThan=function(e){return this._version<e},e.prototype.bindClient=function(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()},e.prototype.pushScope=function(){var e=Zc.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e},e.prototype.popScope=function(){return!(this.getStack().length<=1)&&!!this.getStack().pop()},e.prototype.withScope=function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}},e.prototype.getClient=function(){return this.getStackTop().client},e.prototype.getScope=function(){return this.getStackTop().scope},e.prototype.getStack=function(){return this._stack},e.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},e.prototype.captureException=function(e,t){var n=this._lastEventId=Object(Yc.j)(),r=t;if(!t){var a=void 0;try{throw new Error("Sentry syntheticException")}catch(e){a=e}r={originalException:e,syntheticException:a}}return this._invokeClient("captureException",e,Object(Wc.a)(Object(Wc.a)({},r),{event_id:n})),n},e.prototype.captureMessage=function(e,t,n){var r=this._lastEventId=Object(Yc.j)(),a=n;if(!n){var i=void 0;try{throw new Error(e)}catch(e){i=e}a={originalException:e,syntheticException:i}}return this._invokeClient("captureMessage",e,t,Object(Wc.a)(Object(Wc.a)({},a),{event_id:r})),r},e.prototype.captureEvent=function(e,t){var n=this._lastEventId=Object(Yc.j)();return this._invokeClient("captureEvent",e,Object(Wc.a)(Object(Wc.a)({},t),{event_id:n})),n},e.prototype.lastEventId=function(){return this._lastEventId},e.prototype.addBreadcrumb=function(e,t){var n=this.getStackTop(),r=n.scope,a=n.client;if(r&&a){var i=a.getOptions&&a.getOptions()||{},s=i.beforeBreadcrumb,o=void 0===s?null:s,l=i.maxBreadcrumbs,c=void 0===l?100:l;if(!(c<=0)){var u=Object(Xc.a)(),p=Object(Wc.a)({timestamp:u},e),d=o?Object(Yc.c)((function(){return o(p,t)})):p;null!==d&&r.addBreadcrumb(d,Math.min(c,100))}}},e.prototype.setUser=function(e){var t=this.getScope();t&&t.setUser(e)},e.prototype.setTags=function(e){var t=this.getScope();t&&t.setTags(e)},e.prototype.setExtras=function(e){var t=this.getScope();t&&t.setExtras(e)},e.prototype.setTag=function(e,t){var n=this.getScope();n&&n.setTag(e,t)},e.prototype.setExtra=function(e,t){var n=this.getScope();n&&n.setExtra(e,t)},e.prototype.setContext=function(e,t){var n=this.getScope();n&&n.setContext(e,t)},e.prototype.configureScope=function(e){var t=this.getStackTop(),n=t.scope,r=t.client;n&&r&&e(n)},e.prototype.run=function(e){var t=du(this);try{e(this)}finally{du(t)}},e.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return su.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},e.prototype.startSpan=function(e){return this._callExtensionMethod("startSpan",e)},e.prototype.startTransaction=function(e,t){return this._callExtensionMethod("startTransaction",e,t)},e.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},e.prototype.startSession=function(e){this.endSession();var t=this.getStackTop(),n=t.scope,r=t.client,a=r&&r.getOptions()||{},i=a.release,s=a.environment,o=new cu(Object(Wc.a)(Object(Wc.a)({release:i,environment:s},n&&{user:n.getUser()}),e));return n&&n.setSession(o),o},e.prototype.endSession=function(){var e=this.getStackTop(),t=e.scope,n=e.client;if(t){var r=t.getSession&&t.getSession();r&&(r.close(),n&&n.captureSession&&n.captureSession(r),t.setSession())}},e.prototype._invokeClient=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var a=this.getStackTop(),i=a.scope,s=a.client;s&&s[e]&&(t=s)[e].apply(t,Object(Wc.d)(n,[i]))},e.prototype._callExtensionMethod=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=pu(),a=r.__SENTRY__;if(a&&a.extensions&&"function"==typeof a.extensions[e])return a.extensions[e].apply(this,t);su.warn("Extension method "+e+" couldn't be found, doing nothing.")},e}();function pu(){var e=Object(Yc.e)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function du(e){var t=pu(),n=mu(t);return Su(t,e),n}function hu(){var e=pu();return fu(e)&&!mu(e).isOlderThan(3)||Su(e,new uu),Object(ou.b)()?function(e){try{var t=(r=pu().__SENTRY__)&&r.extensions&&r.extensions.domain&&r.extensions.domain.active;if(!t)return mu(e);if(!fu(t)||mu(t).isOlderThan(3)){var n=mu(e).getStackTop();Su(t,new uu(n.client,Zc.clone(n.scope)))}return mu(t)}catch(t){return mu(e)}var r}(e):mu(e)}function fu(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function mu(e){return e&&e.__SENTRY__&&e.__SENTRY__.hub||(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=new uu),e.__SENTRY__.hub}function Su(e,t){return!!e&&(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=t,!0)}var yu,gu=n(36),vu=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],_u=function(){function e(t){void 0===t&&(t={}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(){tu((function(t){var n=hu();if(!n)return t;var r=n.getIntegration(e);if(r){var a=n.getClient(),i=a?a.getOptions():{},s=r._mergeOptions(i);if(r._shouldDropEvent(t,s))return null}return t}))},e.prototype._shouldDropEvent=function(e,t){return this._isSentryError(e,t)?(su.warn("Event dropped due to being internal Sentry Error.\nEvent: "+Object(Yc.d)(e)),!0):this._isIgnoredError(e,t)?(su.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+Object(Yc.d)(e)),!0):this._isDeniedUrl(e,t)?(su.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+Object(Yc.d)(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0):!this._isAllowedUrl(e,t)&&(su.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+Object(Yc.d)(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0)},e.prototype._isSentryError=function(e,t){if(!t.ignoreInternal)return!1;try{return e&&e.exception&&e.exception.values&&e.exception.values[0]&&"SentryError"===e.exception.values[0].type||!1}catch(e){return!1}},e.prototype._isIgnoredError=function(e,t){return!(!t.ignoreErrors||!t.ignoreErrors.length)&&this._getPossibleEventMessages(e).some((function(e){return t.ignoreErrors.some((function(t){return Object(gu.a)(e,t)}))}))},e.prototype._isDeniedUrl=function(e,t){if(!t.denyUrls||!t.denyUrls.length)return!1;var n=this._getEventFilterUrl(e);return!!n&&t.denyUrls.some((function(e){return Object(gu.a)(n,e)}))},e.prototype._isAllowedUrl=function(e,t){if(!t.allowUrls||!t.allowUrls.length)return!0;var n=this._getEventFilterUrl(e);return!n||t.allowUrls.some((function(e){return Object(gu.a)(n,e)}))},e.prototype._mergeOptions=function(e){return void 0===e&&(e={}),{allowUrls:Object(Wc.d)(this._options.whitelistUrls||[],this._options.allowUrls||[],e.whitelistUrls||[],e.allowUrls||[]),denyUrls:Object(Wc.d)(this._options.blacklistUrls||[],this._options.denyUrls||[],e.blacklistUrls||[],e.denyUrls||[]),ignoreErrors:Object(Wc.d)(this._options.ignoreErrors||[],e.ignoreErrors||[],vu),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal}},e.prototype._getPossibleEventMessages=function(e){if(e.message)return[e.message];if(e.exception)try{var t=e.exception.values&&e.exception.values[0]||{},n=t.type,r=void 0===n?"":n,a=t.value,i=void 0===a?"":a;return[""+i,r+": "+i]}catch(t){return su.error("Cannot extract message for event "+Object(Yc.d)(e)),[]}return[]},e.prototype._getEventFilterUrl=function(e){try{if(e.stacktrace){var t=e.stacktrace.frames;return t&&t[t.length-1].filename||null}if(e.exception){var n=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return n&&n[n.length-1].filename||null}return null}catch(t){return su.error("Cannot extract url for event "+Object(Yc.d)(e)),null}},e.id="InboundFilters",e}();!function(e){e.Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical"}(yu||(yu={})),function(e){e.fromString=function(t){switch(t){case"debug":return e.Debug;case"info":return e.Info;case"warn":case"warning":return e.Warning;case"error":return e.Error;case"fatal":return e.Fatal;case"critical":return e.Critical;case"log":default:return e.Log}}}(yu||(yu={}));var bu=n(92);function Pu(){if(!("fetch"in Object(Yc.e)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function wu(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Eu(){if(!Pu())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}}var ku,Tu=Object(Yc.e)(),Cu={},Iu={};function Au(e){if(!Iu[e])switch(Iu[e]=!0,e){case"console":!function(){if(!("console"in Tu))return;["debug","info","warn","error","log","assert"].forEach((function(e){e in Tu.console&&Object(lu.c)(Tu.console,e,(function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];xu("console",{args:n,level:e}),t&&Function.prototype.apply.call(t,Tu.console,n)}}))}))}();break;case"dom":!function(){if(!("document"in Tu))return;Tu.document.addEventListener("click",Gu("click",xu.bind(null,"dom")),!1),Tu.document.addEventListener("keypress",Uu(xu.bind(null,"dom")),!1),["EventTarget","Node"].forEach((function(e){var t=Tu[e]&&Tu[e].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(Object(lu.c)(t,"addEventListener",(function(e){return function(t,n,r){return n&&n.handleEvent?("click"===t&&Object(lu.c)(n,"handleEvent",(function(e){return function(t){return Gu("click",xu.bind(null,"dom"))(t),e.call(this,t)}})),"keypress"===t&&Object(lu.c)(n,"handleEvent",(function(e){return function(t){return Uu(xu.bind(null,"dom"))(t),e.call(this,t)}}))):("click"===t&&Gu("click",xu.bind(null,"dom"),!0)(this),"keypress"===t&&Uu(xu.bind(null,"dom"))(this)),e.call(this,t,n,r)}})),Object(lu.c)(t,"removeEventListener",(function(e){return function(t,n,r){try{e.call(this,t,n.__sentry_wrapped__,r)}catch(e){}return e.call(this,t,n,r)}})))}))}();break;case"xhr":!function(){if(!("XMLHttpRequest"in Tu))return;var e=[],t=[],n=XMLHttpRequest.prototype;Object(lu.c)(n,"open",(function(n){return function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];var i=this,s=r[1];i.__sentry_xhr__={method:Object(Jc.k)(r[0])?r[0].toUpperCase():r[0],url:r[1]},Object(Jc.k)(s)&&"POST"===i.__sentry_xhr__.method&&s.match(/sentry_key/)&&(i.__sentry_own_request__=!0);var o=function(){if(4===i.readyState){try{i.__sentry_xhr__&&(i.__sentry_xhr__.status_code=i.status)}catch(e){}try{var n=e.indexOf(i);if(-1!==n){e.splice(n);var a=t.splice(n)[0];i.__sentry_xhr__&&void 0!==a[0]&&(i.__sentry_xhr__.body=a[0])}}catch(e){}xu("xhr",{args:r,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:i})}};return"onreadystatechange"in i&&"function"==typeof i.onreadystatechange?Object(lu.c)(i,"onreadystatechange",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return o(),e.apply(i,t)}})):i.addEventListener("readystatechange",o),n.apply(i,r)}})),Object(lu.c)(n,"send",(function(n){return function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];return e.push(this),t.push(r),xu("xhr",{args:r,startTimestamp:Date.now(),xhr:this}),n.apply(this,r)}}))}();break;case"fetch":!function(){if(!function(){if(!Pu())return!1;var e=Object(Yc.e)();if(wu(e.fetch))return!0;var t=!1,n=e.document;if(n&&"function"==typeof n.createElement)try{var r=n.createElement("iframe");r.hidden=!0,n.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=wu(r.contentWindow.fetch)),n.head.removeChild(r)}catch(e){su.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return t}())return;Object(lu.c)(Tu,"fetch",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r={args:t,fetchData:{method:Nu(t),url:Ru(t)},startTimestamp:Date.now()};return xu("fetch",Object(Wc.a)({},r)),e.apply(Tu,t).then((function(e){return xu("fetch",Object(Wc.a)(Object(Wc.a)({},r),{endTimestamp:Date.now(),response:e})),e}),(function(e){throw xu("fetch",Object(Wc.a)(Object(Wc.a)({},r),{endTimestamp:Date.now(),error:e})),e}))}}))}();break;case"history":!function(){if(!function(){var e=Object(Yc.e)(),t=e.chrome,n=t&&t.app&&t.app.runtime,r="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!n&&r}())return;var e=Tu.onpopstate;function t(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.length>2?t[2]:void 0;if(r){var a=ku,i=String(r);ku=i,xu("history",{from:a,to:i})}return e.apply(this,t)}}Tu.onpopstate=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=Tu.location.href,a=ku;if(ku=r,xu("history",{from:a,to:r}),e)return e.apply(this,t)},Object(lu.c)(Tu.history,"pushState",t),Object(lu.c)(Tu.history,"replaceState",t)}();break;case"error":Lu=Tu.onerror,Tu.onerror=function(e,t,n,r,a){return xu("error",{column:r,error:a,line:n,msg:e,url:t}),!!Lu&&Lu.apply(this,arguments)};break;case"unhandledrejection":ju=Tu.onunhandledrejection,Tu.onunhandledrejection=function(e){return xu("unhandledrejection",e),!ju||ju.apply(this,arguments)};break;default:su.warn("unknown instrumentation type:",e)}}function Ou(e){e&&"string"==typeof e.type&&"function"==typeof e.callback&&(Cu[e.type]=Cu[e.type]||[],Cu[e.type].push(e.callback),Au(e.type))}function xu(e,t){var n,r;if(e&&Cu[e])try{for(var a=Object(Wc.e)(Cu[e]||[]),i=a.next();!i.done;i=a.next()){var s=i.value;try{s(t)}catch(t){su.error("Error while triggering instrumentation handler.\nType: "+e+"\nName: "+Object(bu.a)(s)+"\nError: "+t)}}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}}function Nu(e){return void 0===e&&(e=[]),"Request"in Tu&&Object(Jc.g)(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function Ru(e){return void 0===e&&(e=[]),"string"==typeof e[0]?e[0]:"Request"in Tu&&Object(Jc.g)(e[0],Request)?e[0].url:String(e[0])}var Du,Hu,Fu=0;function Gu(e,t,n){return void 0===n&&(n=!1),function(r){Du=void 0,r&&Hu!==r&&(Hu=r,Fu&&clearTimeout(Fu),n?Fu=setTimeout((function(){t({event:r,name:e})})):t({event:r,name:e}))}}function Uu(e){return function(t){var n;try{n=t.target}catch(e){return}var r=n&&n.tagName;r&&("INPUT"===r||"TEXTAREA"===r||n.isContentEditable)&&(Du||Gu("input",e)(t),clearTimeout(Du),Du=setTimeout((function(){Du=void 0}),1e3))}}var Lu=null;var ju=null;var Mu=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Bu=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,Ku=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,qu=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Vu=/\((\S*)(?::(\d+))(?::(\d+))\)/,$u=/Minified React error #\d+;/i;function Wu(e){var t=null,n=0;e&&("number"==typeof e.framesToPop?n=e.framesToPop:$u.test(e.message)&&(n=1));try{if(t=function(e){if(!e||!e.stacktrace)return null;for(var t,n=e.stacktrace,r=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,a=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,i=n.split("\n"),s=[],o=0;o<i.length;o+=2){var l=null;(t=r.exec(i[o]))?l={url:t[2],func:t[3],args:[],line:+t[1],column:null}:(t=a.exec(i[o]))&&(l={url:t[6],func:t[3]||t[4],args:t[5]?t[5].split(","):[],line:+t[1],column:+t[2]}),l&&(!l.func&&l.line&&(l.func="?"),s.push(l))}if(!s.length)return null;return{message:Ju(e),name:e.name,stack:s}}(e))return zu(t,n)}catch(e){}try{if(t=function(e){if(!e||!e.stack)return null;for(var t,n,r,a=[],i=e.stack.split("\n"),s=0;s<i.length;++s){if(n=Mu.exec(i[s])){var o=n[2]&&0===n[2].indexOf("native");n[2]&&0===n[2].indexOf("eval")&&(t=Vu.exec(n[2]))&&(n[2]=t[1],n[3]=t[2],n[4]=t[3]),r={url:n[2]&&0===n[2].indexOf("address at ")?n[2].substr("address at ".length):n[2],func:n[1]||"?",args:o?[n[2]]:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}else if(n=Ku.exec(i[s]))r={url:n[2],func:n[1]||"?",args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=Bu.exec(i[s])))continue;n[3]&&n[3].indexOf(" > eval")>-1&&(t=qu.exec(n[3]))?(n[1]=n[1]||"eval",n[3]=t[1],n[4]=t[2],n[5]=""):0!==s||n[5]||void 0===e.columnNumber||(a[0].column=e.columnNumber+1),r={url:n[3],func:n[1]||"?",args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!r.func&&r.line&&(r.func="?"),a.push(r)}if(!a.length)return null;return{message:Ju(e),name:e.name,stack:a}}(e))return zu(t,n)}catch(e){}return{message:Ju(e),name:e&&e.name,stack:[],failed:!0}}function zu(e,t){try{return Object(Wc.a)(Object(Wc.a)({},e),{stack:e.stack.slice(t)})}catch(t){return e}}function Ju(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function Xu(e){var t=Yu(e.stack),n={type:e.name,value:e.message};return t&&t.length&&(n.stacktrace={frames:t}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function Qu(e){return{exception:{values:[Xu(e)]}}}function Yu(e){if(!e||!e.length)return[];var t=e,n=t[0].func||"",r=t[t.length-1].func||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==r.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.slice(0,50).map((function(e){return{colno:null===e.column?void 0:e.column,filename:e.url||t[0].url,function:e.func||"?",in_app:!0,lineno:null===e.line?void 0:e.line}})).reverse()}function Zu(e,t,n){var r=tp(t,n&&n.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return Object(Yc.a)(r,{handled:!0,type:"generic"}),r.level=yu.Error,n&&n.event_id&&(r.event_id=n.event_id),Qc.resolve(r)}function ep(e,t,n,r){void 0===n&&(n=yu.Info);var a=np(t,r&&r.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return a.level=n,r&&r.event_id&&(a.event_id=r.event_id),Qc.resolve(a)}function tp(e,t,n){var r;if(void 0===n&&(n={}),Object(Jc.e)(e)&&e.error)return r=Qu(Wu(e=e.error));if(Object(Jc.a)(e)||Object(Jc.b)(e)){var a=e,i=a.name||(Object(Jc.a)(a)?"DOMError":"DOMException"),s=a.message?i+": "+a.message:i;return r=np(s,t,n),Object(Yc.b)(r,s),"code"in a&&(r.tags=Object(Wc.a)(Object(Wc.a)({},r.tags),{"DOMException.code":""+a.code})),r}return Object(Jc.d)(e)?r=Qu(Wu(e)):Object(Jc.h)(e)||Object(Jc.f)(e)?(r=function(e,t,n){var r={exception:{values:[{type:Object(Jc.f)(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+Object(lu.b)(e)}]},extra:{__serialized__:Object(lu.e)(e)}};if(t){var a=Yu(Wu(t).stack);r.stacktrace={frames:a}}return r}(e,t,n.rejection),Object(Yc.a)(r,{synthetic:!0}),r):(r=np(e,t,n),Object(Yc.b)(r,""+e,void 0),Object(Yc.a)(r,{synthetic:!0}),r)}function np(e,t,n){void 0===n&&(n={});var r={message:e};if(n.attachStacktrace&&t){var a=Yu(Wu(t).stack);r.stacktrace={frames:a}}return r}function rp(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=hu();if(r&&r[e])return r[e].apply(r,Object(Wc.d)(t));throw new Error("No hub defined or "+e+" was not found on the hub, please open a bug report.")}function ap(e,t){var n;try{throw new Error("Sentry syntheticException")}catch(e){n=e}return rp("captureException",e,{captureContext:t,originalException:e,syntheticException:n})}function ip(e,t){var n;try{throw new Error(e)}catch(e){n=e}var r="string"!=typeof t?{captureContext:t}:void 0;return rp("captureMessage",e,"string"==typeof t?t:void 0,Object(Wc.a)({originalException:e,syntheticException:n},r))}function sp(e){return rp("captureEvent",e)}function op(e){rp("configureScope",e)}function lp(e){rp("addBreadcrumb",e)}function cp(e,t){rp("setContext",e,t)}function up(e){rp("setExtras",e)}function pp(e){rp("setTags",e)}function dp(e,t){rp("setExtra",e,t)}function hp(e,t){rp("setTag",e,t)}function fp(e){rp("setUser",e)}function mp(e){rp("withScope",e)}var Sp=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){return e.__proto__=t,e}:function(e,t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n]);return e});var yp=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return r.message=t,r.name=n.prototype.constructor.name,Sp(r,n.prototype),r}return Object(Wc.b)(t,e),t}(Error),gp=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,vp=function(){function e(e){"string"==typeof e?this._fromString(e):this._fromComponents(e),this._validate()}return e.prototype.toString=function(e){void 0===e&&(e=!1);var t=this,n=t.host,r=t.path,a=t.pass,i=t.port,s=t.projectId;return t.protocol+"://"+t.user+(e&&a?":"+a:"")+"@"+n+(i?":"+i:"")+"/"+(r?r+"/":r)+s},e.prototype._fromString=function(e){var t=gp.exec(e);if(!t)throw new yp("Invalid Dsn");var n=Object(Wc.c)(t.slice(1),6),r=n[0],a=n[1],i=n[2],s=void 0===i?"":i,o=n[3],l=n[4],c=void 0===l?"":l,u="",p=n[5],d=p.split("/");if(d.length>1&&(u=d.slice(0,-1).join("/"),p=d.pop()),p){var h=p.match(/^\d+/);h&&(p=h[0])}this._fromComponents({host:o,pass:s,path:u,projectId:p,port:c,protocol:r,user:a})},e.prototype._fromComponents=function(e){this.protocol=e.protocol,this.user=e.user,this.pass=e.pass||"",this.host=e.host,this.port=e.port||"",this.path=e.path||"",this.projectId=e.projectId},e.prototype._validate=function(){var e=this;if(["protocol","user","host","projectId"].forEach((function(t){if(!e[t])throw new yp("Invalid Dsn: "+t+" missing")})),!this.projectId.match(/^\d+$/))throw new yp("Invalid Dsn: Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new yp("Invalid Dsn: Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new yp("Invalid Dsn: Invalid port "+this.port)},e}(),_p=function(){function e(e){this.dsn=e,this._dsnObject=new vp(e)}return e.prototype.getDsn=function(){return this._dsnObject},e.prototype.getBaseApiEndpoint=function(){var e=this._dsnObject,t=e.protocol?e.protocol+":":"",n=e.port?":"+e.port:"";return t+"//"+e.host+n+(e.path?"/"+e.path:"")+"/api/"},e.prototype.getStoreEndpoint=function(){return this._getIngestEndpoint("store")},e.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return this.getStoreEndpoint()+"?"+this._encodedAuth()},e.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return this._getEnvelopeEndpoint()+"?"+this._encodedAuth()},e.prototype.getStoreEndpointPath=function(){var e=this._dsnObject;return(e.path?"/"+e.path:"")+"/api/"+e.projectId+"/store/"},e.prototype.getRequestHeaders=function(e,t){var n=this._dsnObject,r=["Sentry sentry_version=7"];return r.push("sentry_client="+e+"/"+t),r.push("sentry_key="+n.user),n.pass&&r.push("sentry_secret="+n.pass),{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}},e.prototype.getReportDialogEndpoint=function(e){void 0===e&&(e={});var t=this._dsnObject,n=this.getBaseApiEndpoint()+"embed/error-page/",r=[];for(var a in r.push("dsn="+t.toString()),e)if("user"===a){if(!e.user)continue;e.user.name&&r.push("name="+encodeURIComponent(e.user.name)),e.user.email&&r.push("email="+encodeURIComponent(e.user.email))}else r.push(encodeURIComponent(a)+"="+encodeURIComponent(e[a]));return r.length?n+"?"+r.join("&"):n},e.prototype._getEnvelopeEndpoint=function(){return this._getIngestEndpoint("envelope")},e.prototype._getIngestEndpoint=function(e){return""+this.getBaseApiEndpoint()+this._dsnObject.projectId+"/"+e+"/"},e.prototype._encodedAuth=function(){var e={sentry_key:this._dsnObject.user,sentry_version:"7"};return Object(lu.f)(e)},e}(),bp=0;function Pp(){return bp>0}function wp(){bp+=1,setTimeout((function(){bp-=1}))}function Ep(e,t,n){if(void 0===t&&(t={}),"function"!=typeof e)return e;try{if(e.__sentry__)return e;if(e.__sentry_wrapped__)return e.__sentry_wrapped__}catch(t){return e}var r=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var a=r.map((function(e){return Ep(e,t)}));return e.handleEvent?e.handleEvent.apply(this,a):e.apply(this,a)}catch(e){throw wp(),mp((function(n){n.addEventProcessor((function(e){var n=Object(Wc.a)({},e);return t.mechanism&&(Object(Yc.b)(n,void 0,void 0),Object(Yc.a)(n,t.mechanism)),n.extra=Object(Wc.a)(Object(Wc.a)({},n.extra),{arguments:r}),n})),ap(e)})),e}};try{for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a])}catch(e){}e.prototype=e.prototype||{},r.prototype=e.prototype,Object.defineProperty(e,"__sentry_wrapped__",{enumerable:!1,value:r}),Object.defineProperties(r,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:e}});try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:function(){return e.name}})}catch(e){}return r}function kp(e){if(void 0===e&&(e={}),e.eventId)if(e.dsn){var t=document.createElement("script");t.async=!0,t.src=new _p(e.dsn).getReportDialogEndpoint(e),e.onLoad&&(t.onload=e.onLoad),(document.head||document.body).appendChild(t)}else su.error("Missing dsn option in showReportDialog call");else su.error("Missing eventId option in showReportDialog call")}var Tp=function(){function e(t){this.name=e.id,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=Object(Wc.a)({onerror:!0,onunhandledrejection:!0},t)}return e.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(su.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(su.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},e.prototype._installGlobalOnErrorHandler=function(){var t=this;this._onErrorHandlerInstalled||(Ou({callback:function(n){var r=n.error,a=hu(),i=a.getIntegration(e),s=r&&!0===r.__sentry_own_request__;if(i&&!Pp()&&!s){var o=a.getClient(),l=Object(Jc.i)(r)?t._eventFromIncompleteOnError(n.msg,n.url,n.line,n.column):t._enhanceEventWithInitialFrame(tp(r,void 0,{attachStacktrace:o&&o.getOptions().attachStacktrace,rejection:!1}),n.url,n.line,n.column);Object(Yc.a)(l,{handled:!1,type:"onerror"}),a.captureEvent(l,{originalException:r})}},type:"error"}),this._onErrorHandlerInstalled=!0)},e.prototype._installGlobalOnUnhandledRejectionHandler=function(){var t=this;this._onUnhandledRejectionHandlerInstalled||(Ou({callback:function(n){var r=n;try{"reason"in n?r=n.reason:"detail"in n&&"reason"in n.detail&&(r=n.detail.reason)}catch(e){}var a=hu(),i=a.getIntegration(e),s=r&&!0===r.__sentry_own_request__;if(!i||Pp()||s)return!0;var o=a.getClient(),l=Object(Jc.i)(r)?t._eventFromIncompleteRejection(r):tp(r,void 0,{attachStacktrace:o&&o.getOptions().attachStacktrace,rejection:!0});l.level=yu.Error,Object(Yc.a)(l,{handled:!1,type:"onunhandledrejection"}),a.captureEvent(l,{originalException:r})},type:"unhandledrejection"}),this._onUnhandledRejectionHandlerInstalled=!0)},e.prototype._eventFromIncompleteOnError=function(e,t,n,r){var a,i=Object(Jc.e)(e)?e.message:e;if(Object(Jc.k)(i)){var s=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);s&&(a=s[1],i=s[2])}var o={exception:{values:[{type:a||"Error",value:i}]}};return this._enhanceEventWithInitialFrame(o,t,n,r)},e.prototype._eventFromIncompleteRejection=function(e){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+e}]}}},e.prototype._enhanceEventWithInitialFrame=function(e,t,n,r){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].stacktrace=e.exception.values[0].stacktrace||{},e.exception.values[0].stacktrace.frames=e.exception.values[0].stacktrace.frames||[];var a=isNaN(parseInt(r,10))?void 0:r,i=isNaN(parseInt(n,10))?void 0:n,s=Object(Jc.k)(t)&&t.length>0?t:Object(Yc.f)();return 0===e.exception.values[0].stacktrace.frames.length&&e.exception.values[0].stacktrace.frames.push({colno:a,filename:s,function:"?",in_app:!0,lineno:i}),e},e.id="GlobalHandlers",e}(),Cp=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Ip=function(){function e(t){this.name=e.id,this._options=Object(Wc.a)({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}return e.prototype.setupOnce=function(){var e=Object(Yc.e)();(this._options.setTimeout&&Object(lu.c)(e,"setTimeout",this._wrapTimeFunction.bind(this)),this._options.setInterval&&Object(lu.c)(e,"setInterval",this._wrapTimeFunction.bind(this)),this._options.requestAnimationFrame&&Object(lu.c)(e,"requestAnimationFrame",this._wrapRAF.bind(this)),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&Object(lu.c)(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),this._options.eventTarget)&&(Array.isArray(this._options.eventTarget)?this._options.eventTarget:Cp).forEach(this._wrapEventTarget.bind(this))},e.prototype._wrapTimeFunction=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t[0];return t[0]=Ep(r,{mechanism:{data:{function:Object(bu.a)(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}},e.prototype._wrapRAF=function(e){return function(t){return e.call(this,Ep(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Object(bu.a)(e)},handled:!0,type:"instrument"}}))}},e.prototype._wrapEventTarget=function(e){var t=Object(Yc.e)(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Object(lu.c)(n,"addEventListener",(function(t){return function(n,r,a){try{"function"==typeof r.handleEvent&&(r.handleEvent=Ep(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:Object(bu.a)(r),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.call(this,n,Ep(r,{mechanism:{data:{function:"addEventListener",handler:Object(bu.a)(r),target:e},handled:!0,type:"instrument"}}),a)}})),Object(lu.c)(n,"removeEventListener",(function(e){return function(t,n,r){var a,i=n;try{var s=null===(a=i)||void 0===a?void 0:a.__sentry_wrapped__;s&&e.call(this,t,s,r)}catch(e){}return e.call(this,t,i,r)}})))},e.prototype._wrapXHR=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this,a=["onload","onerror","onprogress","onreadystatechange"];return a.forEach((function(e){e in r&&"function"==typeof r[e]&&Object(lu.c)(r,e,(function(t){var n={mechanism:{data:{function:e,handler:Object(bu.a)(t)},handled:!0,type:"instrument"}};return t.__sentry_original__&&(n.mechanism.data.handler=Object(bu.a)(t.__sentry_original__)),Ep(t,n)}))})),e.apply(this,t)}},e.id="TryCatch",e}(),Ap=n(126),Op=function(){function e(t){this.name=e.id,this._options=Object(Wc.a)({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return e.prototype.addSentryBreadcrumb=function(e){this._options.sentry&&hu().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:Object(Yc.d)(e)},{event:e})},e.prototype.setupOnce=function(){var e=this;this._options.console&&Ou({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._consoleBreadcrumb.apply(e,Object(Wc.d)(t))},type:"console"}),this._options.dom&&Ou({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._domBreadcrumb.apply(e,Object(Wc.d)(t))},type:"dom"}),this._options.xhr&&Ou({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._xhrBreadcrumb.apply(e,Object(Wc.d)(t))},type:"xhr"}),this._options.fetch&&Ou({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._fetchBreadcrumb.apply(e,Object(Wc.d)(t))},type:"fetch"}),this._options.history&&Ou({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._historyBreadcrumb.apply(e,Object(Wc.d)(t))},type:"history"})},e.prototype._consoleBreadcrumb=function(e){var t={category:"console",data:{arguments:e.args,logger:"console"},level:yu.fromString(e.level),message:Object(gu.b)(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message="Assertion failed: "+(Object(gu.b)(e.args.slice(1)," ")||"console.assert"),t.data.arguments=e.args.slice(1)}hu().addBreadcrumb(t,{input:e.args,level:e.level})},e.prototype._domBreadcrumb=function(e){var t;try{t=e.event.target?Object(Ap.a)(e.event.target):Object(Ap.a)(e.event)}catch(e){t="<unknown>"}0!==t.length&&hu().addBreadcrumb({category:"ui."+e.name,message:t},{event:e.event,name:e.name})},e.prototype._xhrBreadcrumb=function(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;var t=e.xhr.__sentry_xhr__||{},n=t.method,r=t.url,a=t.status_code,i=t.body;hu().addBreadcrumb({category:"xhr",data:{method:n,url:r,status_code:a},type:"http"},{xhr:e.xhr,input:i})}else;},e.prototype._fetchBreadcrumb=function(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?hu().addBreadcrumb({category:"fetch",data:e.fetchData,level:yu.Error,type:"http"},{data:e.error,input:e.args}):hu().addBreadcrumb({category:"fetch",data:Object(Wc.a)(Object(Wc.a)({},e.fetchData),{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})))},e.prototype._historyBreadcrumb=function(e){var t=Object(Yc.e)(),n=e.from,r=e.to,a=Object(Yc.i)(t.location.href),i=Object(Yc.i)(n),s=Object(Yc.i)(r);i.path||(i=a),a.protocol===s.protocol&&a.host===s.host&&(r=s.relative),a.protocol===i.protocol&&a.host===i.host&&(n=i.relative),hu().addBreadcrumb({category:"navigation",data:{from:n,to:r}})},e.id="Breadcrumbs",e}(),xp=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._key=t.key||"cause",this._limit=t.limit||5}return e.prototype.setupOnce=function(){tu((function(t,n){var r=hu().getIntegration(e);return r?r._handler(t,n):t}))},e.prototype._handler=function(e,t){if(!(e.exception&&e.exception.values&&t&&Object(Jc.g)(t.originalException,Error)))return e;var n=this._walkErrorTree(t.originalException,this._key);return e.exception.values=Object(Wc.d)(n,e.exception.values),e},e.prototype._walkErrorTree=function(e,t,n){if(void 0===n&&(n=[]),!Object(Jc.g)(e[t],Error)||n.length+1>=this._limit)return n;var r=Xu(Wu(e[t]));return this._walkErrorTree(e[t],t,Object(Wc.d)([r],n))},e.id="LinkedErrors",e}(),Np=Object(Yc.e)(),Rp=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){tu((function(t){var n,r,a;if(hu().getIntegration(e)){if(!Np.navigator&&!Np.location&&!Np.document)return t;var i=(null===(n=t.request)||void 0===n?void 0:n.url)||(null===(r=Np.location)||void 0===r?void 0:r.href),s=(Np.document||{}).referrer,o=(Np.navigator||{}).userAgent,l=Object(Wc.a)(Object(Wc.a)(Object(Wc.a)({},null===(a=t.request)||void 0===a?void 0:a.headers),s&&{Referer:s}),o&&{"User-Agent":o}),c=Object(Wc.a)(Object(Wc.a)({},i&&{url:i}),{headers:l});return Object(Wc.a)(Object(Wc.a)({},t),{request:c})}return t}))},e.id="UserAgent",e}(),Dp={},Hp=Object(Yc.e)();Hp.Sentry&&Hp.Sentry.Integrations&&(Dp=Hp.Sentry.Integrations);var Fp=Object(Wc.a)(Object(Wc.a)(Object(Wc.a)({},Dp),r),a),Gp=function(e,t){return(Gp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};
/*! *****************************************************************************
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.
***************************************************************************** */function Up(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Gp(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Lp=function(){return(Lp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function jp(e,t,n,r){return new(n||(n=Promise))((function(a,i){function s(e){try{l(r.next(e))}catch(e){i(e)}}function o(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((r=r.apply(e,t||[])).next())}))}function Mp(e,t){var n,r,a,i,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function o(i){return function(o){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(a=s.trys,(a=a.length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){s.label=i[1];break}if(6===i[0]&&s.label<a[1]){s.label=a[1],a=i;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(i);break}a[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,o])}}}Object.create;function Bp(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return s}function Kp(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Bp(arguments[t]));return e}var qp;Object.create;function Vp(e,t){!0===t.debug&&su.enable();var n=hu(),r=new e(t);n.bindClient(r)}!function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.Invalid="invalid",e.Failed="failed"}(qp||(qp={})),function(e){e.fromHttpCode=function(t){return t>=200&&t<300?e.Success:429===t?e.RateLimit:t>=400&&t<500?e.Invalid:t>=500?e.Failed:e.Unknown}}(qp||(qp={}));var $p=[];function Wp(e){var t={};return function(e){var t=e.defaultIntegrations&&Object(Wc.d)(e.defaultIntegrations)||[],n=e.integrations,r=[];if(Array.isArray(n)){var a=n.map((function(e){return e.name})),i=[];t.forEach((function(e){-1===a.indexOf(e.name)&&-1===i.indexOf(e.name)&&(r.push(e),i.push(e.name))})),n.forEach((function(e){-1===i.indexOf(e.name)&&(r.push(e),i.push(e.name))}))}else"function"==typeof n?(r=n(t),r=Array.isArray(r)?r:[r]):r=Object(Wc.d)(t);var s=r.map((function(e){return e.name}));return-1!==s.indexOf("Debug")&&r.push.apply(r,Object(Wc.d)(r.splice(s.indexOf("Debug"),1))),r}(e).forEach((function(e){t[e.name]=e,function(e){-1===$p.indexOf(e.name)&&(e.setupOnce(tu,hu),$p.push(e.name),su.log("Integration installed: "+e.name))}(e)})),t}var zp=function(){function e(e,t){this._integrations={},this._processing=0,this._backend=new e(t),this._options=t,t.dsn&&(this._dsn=new vp(t.dsn))}return e.prototype.captureException=function(e,t,n){var r=this,a=t&&t.event_id;return this._process(this._getBackend().eventFromException(e,t).then((function(e){return r._captureEvent(e,t,n)})).then((function(e){a=e}))),a},e.prototype.captureMessage=function(e,t,n,r){var a=this,i=n&&n.event_id,s=Object(Jc.i)(e)?this._getBackend().eventFromMessage(""+e,t,n):this._getBackend().eventFromException(e,n);return this._process(s.then((function(e){return a._captureEvent(e,n,r)})).then((function(e){i=e}))),i},e.prototype.captureEvent=function(e,t,n){var r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((function(e){r=e}))),r},e.prototype.captureSession=function(e){e.release?this._sendSession(e):su.warn("Discarded session because of missing release")},e.prototype.getDsn=function(){return this._dsn},e.prototype.getOptions=function(){return this._options},e.prototype.flush=function(e){var t=this;return this._isClientProcessing(e).then((function(n){return t._getBackend().getTransport().close(e).then((function(e){return n&&e}))}))},e.prototype.close=function(e){var t=this;return this.flush(e).then((function(e){return t.getOptions().enabled=!1,e}))},e.prototype.setupIntegrations=function(){this._isEnabled()&&(this._integrations=Wp(this._options))},e.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return su.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},e.prototype._updateSessionFromEvent=function(e,t){var n,r,a,i=!1,s=!1,o=t.exception&&t.exception.values;if(o){s=!0;try{for(var l=Object(Wc.e)(o),c=l.next();!c.done;c=l.next()){var u=c.value.mechanism;if(u&&!1===u.handled){i=!0;break}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}var p=t.user;if(!e.userAgent){var d=t.request?t.request.headers:{};for(var h in d)if("user-agent"===h.toLowerCase()){a=d[h];break}}e.update(Object(Wc.a)(Object(Wc.a)({},i&&{status:iu.Crashed}),{user:p,userAgent:a,errors:e.errors+Number(s||i)}))},e.prototype._sendSession=function(e){this._getBackend().sendSession(e)},e.prototype._isClientProcessing=function(e){var t=this;return new Qc((function(n){var r=0,a=setInterval((function(){0==t._processing?(clearInterval(a),n(!0)):(r+=1,e&&r>=e&&(clearInterval(a),n(!1)))}),1)}))},e.prototype._getBackend=function(){return this._backend},e.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},e.prototype._prepareEvent=function(e,t,n){var r=this,a=this.getOptions().normalizeDepth,i=void 0===a?3:a,s=Object(Wc.a)(Object(Wc.a)({},e),{event_id:e.event_id||(n&&n.event_id?n.event_id:Object(Yc.j)()),timestamp:e.timestamp||Object(Xc.a)()});this._applyClientOptions(s),this._applyIntegrationsMetadata(s);var o=t;n&&n.captureContext&&(o=Zc.clone(o).update(n.captureContext));var l=Qc.resolve(s);return o&&(l=o.applyToEvent(s,n)),l.then((function(e){return"number"==typeof i&&i>0?r._normalizeEvent(e,i):e}))},e.prototype._normalizeEvent=function(e,t){if(!e)return null;var n=Object(Wc.a)(Object(Wc.a)(Object(Wc.a)(Object(Wc.a)(Object(Wc.a)({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return Object(Wc.a)(Object(Wc.a)({},e),e.data&&{data:Object(lu.d)(e.data,t)})}))}),e.user&&{user:Object(lu.d)(e.user,t)}),e.contexts&&{contexts:Object(lu.d)(e.contexts,t)}),e.extra&&{extra:Object(lu.d)(e.extra,t)});return e.contexts&&e.contexts.trace&&(n.contexts.trace=e.contexts.trace),n},e.prototype._applyClientOptions=function(e){var t=this.getOptions(),n=t.environment,r=t.release,a=t.dist,i=t.maxValueLength,s=void 0===i?250:i;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==a&&(e.dist=a),e.message&&(e.message=Object(gu.d)(e.message,s));var o=e.exception&&e.exception.values&&e.exception.values[0];o&&o.value&&(o.value=Object(gu.d)(o.value,s));var l=e.request;l&&l.url&&(l.url=Object(gu.d)(l.url,s))},e.prototype._applyIntegrationsMetadata=function(e){var t=e.sdk,n=Object.keys(this._integrations);t&&n.length>0&&(t.integrations=n)},e.prototype._sendEvent=function(e){this._getBackend().sendEvent(e)},e.prototype._captureEvent=function(e,t,n){return this._processEvent(e,t,n).then((function(e){return e.event_id}),(function(e){su.error(e)}))},e.prototype._processEvent=function(e,t,n){var r=this,a=this.getOptions(),i=a.beforeSend,s=a.sampleRate;if(!this._isEnabled())return Qc.reject(new yp("SDK not enabled, will not send event."));var o="transaction"===e.type;return!o&&"number"==typeof s&&Math.random()>s?Qc.reject(new yp("This event has been sampled, will not send event.")):this._prepareEvent(e,n,t).then((function(e){if(null===e)throw new yp("An event processor returned null, will not send event.");if(t&&t.data&&!0===t.data.__sentry__||o||!i)return e;var n=i(e,t);if(void 0===n)throw new yp("`beforeSend` method has to return `null` or a valid event.");return Object(Jc.m)(n)?n.then((function(e){return e}),(function(e){throw new yp("beforeSend rejected with "+e)})):n})).then((function(e){if(null===e)throw new yp("`beforeSend` returned `null`, will not send event.");var t=n&&n.getSession&&n.getSession();return!o&&t&&r._updateSessionFromEvent(t,e),r._sendEvent(e),e})).then(null,(function(e){if(e instanceof yp)throw e;throw r.captureException(e,{data:{__sentry__:!0},originalException:e}),new yp("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)}))},e.prototype._process=function(e){var t=this;this._processing+=1,e.then((function(e){return t._processing-=1,e}),(function(e){return t._processing-=1,e}))},e}(),Jp=function(){function e(){}return e.prototype.sendEvent=function(e){return Qc.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:qp.Skipped})},e.prototype.close=function(e){return Qc.resolve(!0)},e}(),Xp=function(){function e(e){this._options=e,this._options.dsn||su.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return e.prototype.eventFromException=function(e,t){throw new yp("Backend has to implement `eventFromException` method")},e.prototype.eventFromMessage=function(e,t,n){throw new yp("Backend has to implement `eventFromMessage` method")},e.prototype.sendEvent=function(e){this._transport.sendEvent(e).then(null,(function(e){su.error("Error while sending event: "+e)}))},e.prototype.sendSession=function(e){this._transport.sendSession?this._transport.sendSession(e).then(null,(function(e){su.error("Error while sending session: "+e)})):su.warn("Dropping session because custom transport doesn't implement sendSession")},e.prototype.getTransport=function(){return this._transport},e.prototype._setupTransport=function(){return new Jp},e}();function Qp(e,t){return{body:JSON.stringify({sent_at:(new Date).toISOString()})+"\n"+JSON.stringify({type:"session"})+"\n"+JSON.stringify(e),type:"session",url:t.getEnvelopeEndpointWithUrlEncodedAuth()}}function Yp(e,t){var n="transaction"===e.type,r={body:JSON.stringify(e),type:e.type||"event",url:n?t.getEnvelopeEndpointWithUrlEncodedAuth():t.getStoreEndpointWithUrlEncodedAuth()};if(n){var a=JSON.stringify({event_id:e.event_id,sent_at:(new Date).toISOString()})+"\n"+JSON.stringify({type:e.type})+"\n"+r.body;r.body=a}return r}var Zp=function(){function e(e){this._limit=e,this._buffer=[]}return e.prototype.isReady=function(){return void 0===this._limit||this.length()<this._limit},e.prototype.add=function(e){var t=this;return this.isReady()?(-1===this._buffer.indexOf(e)&&this._buffer.push(e),e.then((function(){return t.remove(e)})).then(null,(function(){return t.remove(e).then(null,(function(){}))})),e):Qc.reject(new yp("Not adding Promise due to buffer limit reached."))},e.prototype.remove=function(e){return this._buffer.splice(this._buffer.indexOf(e),1)[0]},e.prototype.length=function(){return this._buffer.length},e.prototype.drain=function(e){var t=this;return new Qc((function(n){var r=setTimeout((function(){e&&e>0&&n(!1)}),e);Qc.all(t._buffer).then((function(){clearTimeout(r),n(!0)})).then(null,(function(){n(!0)}))}))},e}(),ed=function(){function e(e){this.options=e,this._buffer=new Zp(30),this._rateLimits={},this._api=new _p(this.options.dsn),this.url=this._api.getStoreEndpointWithUrlEncodedAuth()}return e.prototype.sendEvent=function(e){throw new yp("Transport Class has to implement `sendEvent` method")},e.prototype.close=function(e){return this._buffer.drain(e)},e.prototype._handleResponse=function(e){var t=e.requestType,n=e.response,r=e.headers,a=e.resolve,i=e.reject,s=qp.fromHttpCode(n.status);this._handleRateLimit(r)&&su.warn("Too many requests, backing off till: "+this._disabledUntil(t)),s!==qp.Success?i(n):a({status:s})},e.prototype._disabledUntil=function(e){return this._rateLimits[e]||this._rateLimits.all},e.prototype._isRateLimited=function(e){return this._disabledUntil(e)>new Date(Date.now())},e.prototype._handleRateLimit=function(e){var t,n,r,a,i=Date.now(),s=e["x-sentry-rate-limits"],o=e["retry-after"];if(s){try{for(var l=Object(Wc.e)(s.trim().split(",")),c=l.next();!c.done;c=l.next()){var u=c.value.split(":",2),p=parseInt(u[0],10),d=1e3*(isNaN(p)?60:p);try{for(var h=(r=void 0,Object(Wc.e)(u[1].split(";"))),f=h.next();!f.done;f=h.next()){var m=f.value;this._rateLimits[m||"all"]=new Date(i+d)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=h.return)&&a.call(h)}finally{if(r)throw r.error}}}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return!0}return!!o&&(this._rateLimits.all=new Date(i+Object(Yc.g)(i,o)),!0)},e}(),td=Object(Yc.e)(),nd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Wc.b)(t,e),t.prototype.sendEvent=function(e){return this._sendRequest(Yp(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest(Qp(e,this._api),e)},t.prototype._sendRequest=function(e,t){var n=this;if(this._isRateLimited(e.type))return Promise.reject({event:t,type:e.type,reason:"Transport locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429});var r={body:e.body,method:"POST",referrerPolicy:Eu()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(r,this.options.fetchParameters),void 0!==this.options.headers&&(r.headers=this.options.headers),this._buffer.add(new Qc((function(t,a){td.fetch(e.url,r).then((function(r){var i={"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")};n._handleResponse({requestType:e.type,response:r,headers:i,resolve:t,reject:a})})).catch(a)})))},t}(ed),rd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Wc.b)(t,e),t.prototype.sendEvent=function(e){return this._sendRequest(Yp(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest(Qp(e,this._api),e)},t.prototype._sendRequest=function(e,t){var n=this;return this._isRateLimited(e.type)?Promise.reject({event:t,type:e.type,reason:"Transport locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429}):this._buffer.add(new Qc((function(t,r){var a=new XMLHttpRequest;for(var i in a.onreadystatechange=function(){if(4===a.readyState){var i={"x-sentry-rate-limits":a.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":a.getResponseHeader("Retry-After")};n._handleResponse({requestType:e.type,response:a,headers:i,resolve:t,reject:r})}},a.open("POST",e.url),n.options.headers)n.options.headers.hasOwnProperty(i)&&a.setRequestHeader(i,n.options.headers[i]);a.send(e.body)})))},t}(ed),ad=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(Wc.b)(t,e),t.prototype.eventFromException=function(e,t){return Zu(this._options,e,t)},t.prototype.eventFromMessage=function(e,t,n){return void 0===t&&(t=yu.Info),ep(this._options,e,t,n)},t.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var t=Object(Wc.a)(Object(Wc.a)({},this._options.transportOptions),{dsn:this._options.dsn});return this._options.transport?new this._options.transport(t):Pu()?new nd(t):new rd(t)},t}(Xp),id="sentry.javascript.browser",sd=(function(e){function t(t){return void 0===t&&(t={}),e.call(this,ad,t)||this}Object(Wc.b)(t,e),t.prototype.showReportDialog=function(e){void 0===e&&(e={}),Object(Yc.e)().document&&(this._isEnabled()?kp(Object(Wc.a)(Object(Wc.a)({},e),{dsn:e.dsn||this.getDsn()})):su.error("Trying to call showReportDialog with Sentry Client disabled"))},t.prototype._prepareEvent=function(t,n,r){return t.platform=t.platform||"javascript",t.sdk=Object(Wc.a)(Object(Wc.a)({},t.sdk),{name:id,packages:Object(Wc.d)(t.sdk&&t.sdk.packages||[],[{name:"npm:@sentry/browser",version:"5.27.6"}]),version:"5.27.6"}),e.prototype._prepareEvent.call(this,t,n,r)},t.prototype._sendEvent=function(t){var n=this.getIntegration(Op);n&&n.addSentryBreadcrumb(t),e.prototype._sendEvent.call(this,t)}}(zp),[new r.InboundFilters,new r.FunctionToString,new Ip,new Op,new Tp,new xp,new Rp]);function od(){var e=n(7);if(e&&e.app){var t=e.app;return t.name||t.getName()}if(!e||!e.remote)throw new yp("The Electron `remote` module was not available to get appName. Please ensure you pass `appName` to Sentry options");var r=e.remote.app;return r.name||r.getName()}function ld(){var e=Object(Yc.h)(process.versions.electron);return{major:e.major||0,minor:e.minor||0,patch:e.patch||0}}function cd(e,t){return Object(lu.g)(e,t,50)}var ud=function(e){function t(t){var r=this;!1===t.enableJavaScript&&(t.enabled=!1),r=e.call(this,t)||this;var a=function(){try{return n(7)}catch(e){}}();return a?(r._isNativeEnabled()&&r._installNativeHandler(a.crashReporter),r._hookIPC(a.ipcRenderer,a.contextBridge),r._pingMainProcess()):null==window.__SENTRY_IPC__&&console.warn('contextIsolation is enabled but IPC has not been exposed. Did you call "init" in the preload script?'),r._setupScopeListener(),r}return Up(t,e),t.prototype.eventFromException=function(e,t){return Zu(this._options,e,t)},t.prototype.eventFromMessage=function(e,t,n){return ep(this._options,e,t,n)},t.prototype.sendEvent=function(e){var t;null===(t=window.__SENTRY_IPC__)||void 0===t||t.sendEvent(e)},t.prototype._hookIPC=function(e,t){var n={sendScope:function(t){return e.send("sentry-electron.scope",JSON.stringify(t,cd))},sendEvent:function(t){return null==t.breadcrumbs&&delete t.breadcrumbs,e.send("sentry-electron.event",JSON.stringify(t,cd))},pingMain:function(t){e.once("sentry-electron.ping",(function(){t()})),e.send("sentry-electron.ping")}};if(window.__SENTRY_IPC__=n,t)try{t.exposeInMainWorld("__SENTRY_IPC__",n)}catch(e){}},t.prototype._setupScopeListener=function(){var e=hu().getScope();e&&e.addScopeListener((function(t){var n;null===(n=window.__SENTRY_IPC__)||void 0===n||n.sendScope(t),e.clearBreadcrumbs()}))},t.prototype._isNativeEnabled=function(){return"darwin"!==process.platform&&(!process.mas&&!1!==this._options.enableNative)},t.prototype._installNativeHandler=function(e){ld().major<9&&e.start({companyName:"",ignoreSystemCrashHandler:!0,productName:this._options.appName||od(),submitURL:"",uploadToServer:!1})},t.prototype._pingMainProcess=function(){setTimeout((function(){var e,t=setTimeout((function(){console.warn("Could not connect to Sentry main process. Did you call init?")}),500);null===(e=window.__SENTRY_IPC__)||void 0===e||e.pingMain((function(){return clearTimeout(t)}))}),500)},t}(Xp),pd=function(e){function t(t){return e.call(this,ud,t)||this}return Up(t,e),t.prototype.captureMinidump=function(){su.warn("captureMinidump is a noop on the renderer")},t.prototype.showReportDialog=function(e){void 0===e&&(e={}),e.eventId||(e.eventId=hu().lastEventId()),kp(e)},t.prototype._prepareEvent=function(t,n,r){return t.platform=t.platform||"javascript",t.sdk=Lp(Lp({},t.sdk),{name:id,packages:Kp(t.sdk&&t.sdk.packages||[],[{name:"npm:@sentry/browser",version:"5.27.6"}]),version:"5.27.6"}),e.prototype._prepareEvent.call(this,t,n,r)},t}(zp);function dd(e){void 0===e.defaultIntegrations&&(e.defaultIntegrations=sd),Vp(pd,e)}function hd(e){void 0===e&&(e={}),hu().getClient().showReportDialog(e)}function fd(e,t){void 0===t&&(t={}),function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];rp.apply(void 0,Object(Wc.d)(["_invokeClient",e],t))}("captureMinidump",e,t)}function md(e){return jp(this,void 0,void 0,(function(){var t;return Mp(this,(function(n){return(t=hu().getClient())?[2,t.flush(e)]:[2,Promise.reject(!1)]}))}))}function Sd(e){return jp(this,void 0,void 0,(function(){var t;return Mp(this,(function(n){return(t=hu().getClient())?[2,t.close(e)]:[2,Promise.reject(!1)]}))}))}
/*! *****************************************************************************
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 yd=function(){return(yd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function gd(e,t,n){if(n||2===arguments.length)for(var r,a=0,i=t.length;a<i;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}var vd="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,_d=Object.keys,bd=Array.isArray;function Pd(e,t){return"object"!=typeof t||_d(t).forEach((function(n){e[n]=t[n]})),e}"undefined"==typeof Promise||vd.Promise||(vd.Promise=Promise);var wd=Object.getPrototypeOf,Ed={}.hasOwnProperty;function kd(e,t){return Ed.call(e,t)}function Td(e,t){"function"==typeof t&&(t=t(wd(e))),("undefined"==typeof Reflect?_d:Reflect.ownKeys)(t).forEach((function(n){Id(e,n,t[n])}))}var Cd=Object.defineProperty;function Id(e,t,n,r){Cd(e,t,Pd(n&&kd(n,"get")&&"function"==typeof n.get?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},r))}function Ad(e){return{from:function(t){return e.prototype=Object.create(t.prototype),Id(e.prototype,"constructor",e),{extend:Td.bind(null,e.prototype)}}}}var Od=Object.getOwnPropertyDescriptor;function xd(e,t){var n;return Od(e,t)||(n=wd(e))&&xd(n,t)}var Nd=[].slice;function Rd(e,t,n){return Nd.call(e,t,n)}function Dd(e,t){return t(e)}function Hd(e){if(!e)throw new Error("Assertion Failed")}function Fd(e){vd.setImmediate?setImmediate(e):setTimeout(e,0)}function Gd(e,t){return e.reduce((function(e,n,r){var a=t(n,r);return a&&(e[a[0]]=a[1]),e}),{})}function Ud(e,t){if(kd(e,t))return e[t];if(!t)return e;if("string"!=typeof t){for(var n=[],r=0,a=t.length;r<a;++r){var i=Ud(e,t[r]);n.push(i)}return n}var s=t.indexOf(".");if(-1!==s){var o=e[t.substr(0,s)];return void 0===o?void 0:Ud(o,t.substr(s+1))}}function Ld(e,t,n){if(e&&void 0!==t&&(!("isFrozen"in Object)||!Object.isFrozen(e)))if("string"!=typeof t&&"length"in t){Hd("string"!=typeof n&&"length"in n);for(var r=0,a=t.length;r<a;++r)Ld(e,t[r],n[r])}else{var i=t.indexOf(".");if(-1!==i){var s=t.substr(0,i),o=t.substr(i+1);if(""===o)void 0===n?bd(e)&&!isNaN(parseInt(s))?e.splice(s,1):delete e[s]:e[s]=n;else{var l=e[s];l&&kd(e,s)||(l=e[s]={}),Ld(l,o,n)}}else void 0===n?bd(e)&&!isNaN(parseInt(t))?e.splice(t,1):delete e[t]:e[t]=n}}function jd(e){var t={};for(var n in e)kd(e,n)&&(t[n]=e[n]);return t}var Md=[].concat;function Bd(e){return Md.apply([],e)}var Kd="Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(Bd([8,16,32,64].map((function(e){return["Int","Uint","Float"].map((function(t){return t+e+"Array"}))})))).filter((function(e){return vd[e]})),qd=Kd.map((function(e){return vd[e]}));Gd(Kd,(function(e){return[e,!0]}));var Vd=null;function $d(e){Vd="undefined"!=typeof WeakMap&&new WeakMap;var t=function e(t){if(!t||"object"!=typeof t)return t;var n=Vd&&Vd.get(t);if(n)return n;if(bd(t)){n=[],Vd&&Vd.set(t,n);for(var r=0,a=t.length;r<a;++r)n.push(e(t[r]))}else if(qd.indexOf(t.constructor)>=0)n=t;else{var i=wd(t);for(var s in n=i===Object.prototype?{}:Object.create(i),Vd&&Vd.set(t,n),t)kd(t,s)&&(n[s]=e(t[s]))}return n}(e);return Vd=null,t}var Wd={}.toString;function zd(e){return Wd.call(e).slice(8,-1)}var Jd="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",Xd="symbol"==typeof Jd?function(e){var t;return null!=e&&(t=e[Jd])&&t.apply(e)}:function(){return null},Qd={};function Yd(e){var t,n,r,a;if(1===arguments.length){if(bd(e))return e.slice();if(this===Qd&&"string"==typeof e)return[e];if(a=Xd(e)){for(n=[];!(r=a.next()).done;)n.push(r.value);return n}if(null==e)return[e];if("number"==typeof(t=e.length)){for(n=new Array(t);t--;)n[t]=e[t];return n}return[e]}for(t=arguments.length,n=new Array(t);t--;)n[t]=arguments[t];return n}var Zd="undefined"!=typeof Symbol?function(e){return"AsyncFunction"===e[Symbol.toStringTag]}:function(){return!1},eh="undefined"!=typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function th(e,t){eh=e,nh=t}var nh=function(){return!0},rh=!new Error("").stack;function ah(){if(rh)try{throw ah.arguments,new Error}catch(e){return e}return new Error}function ih(e,t){var n=e.stack;return n?(t=t||0,0===n.indexOf(e.name)&&(t+=(e.name+e.message).split("\n").length),n.split("\n").slice(t).filter(nh).map((function(e){return"\n"+e})).join("")):""}var sh=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],oh=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(sh),lh={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function ch(e,t){this._e=ah(),this.name=e,this.message=t}function uh(e,t){return e+". Errors: "+Object.keys(t).map((function(e){return t[e].toString()})).filter((function(e,t,n){return n.indexOf(e)===t})).join("\n")}function ph(e,t,n,r){this._e=ah(),this.failures=t,this.failedKeys=r,this.successCount=n,this.message=uh(e,t)}function dh(e,t){this._e=ah(),this.name="BulkError",this.failures=Object.keys(t).map((function(e){return t[e]})),this.failuresByPos=t,this.message=uh(e,t)}Ad(ch).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+ih(this._e,2))}},toString:function(){return this.name+": "+this.message}}),Ad(ph).from(ch),Ad(dh).from(ch);var hh=oh.reduce((function(e,t){return e[t]=t+"Error",e}),{}),fh=ch,mh=oh.reduce((function(e,t){var n=t+"Error";function r(e,r){this._e=ah(),this.name=n,e?"string"==typeof e?(this.message=e+(r?"\n "+r:""),this.inner=r||null):"object"==typeof e&&(this.message=e.name+" "+e.message,this.inner=e):(this.message=lh[t]||n,this.inner=null)}return Ad(r).from(fh),e[t]=r,e}),{});mh.Syntax=SyntaxError,mh.Type=TypeError,mh.Range=RangeError;var Sh=sh.reduce((function(e,t){return e[t+"Error"]=mh[t],e}),{});var yh=oh.reduce((function(e,t){return-1===["Syntax","Type","Range"].indexOf(t)&&(e[t+"Error"]=mh[t]),e}),{});function gh(){}function vh(e){return e}function _h(e,t){return null==e||e===vh?t:function(n){return t(e(n))}}function bh(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function Ph(e,t){return e===gh?t:function(){var n=e.apply(this,arguments);void 0!==n&&(arguments[0]=n);var r=this.onsuccess,a=this.onerror;this.onsuccess=null,this.onerror=null;var i=t.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?bh(r,this.onsuccess):r),a&&(this.onerror=this.onerror?bh(a,this.onerror):a),void 0!==i?i:n}}function wh(e,t){return e===gh?t:function(){e.apply(this,arguments);var n=this.onsuccess,r=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?bh(n,this.onsuccess):n),r&&(this.onerror=this.onerror?bh(r,this.onerror):r)}}function Eh(e,t){return e===gh?t:function(n){var r=e.apply(this,arguments);Pd(n,r);var a=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var s=t.apply(this,arguments);return a&&(this.onsuccess=this.onsuccess?bh(a,this.onsuccess):a),i&&(this.onerror=this.onerror?bh(i,this.onerror):i),void 0===r?void 0===s?void 0:s:Pd(r,s)}}function kh(e,t){return e===gh?t:function(){return!1!==t.apply(this,arguments)&&e.apply(this,arguments)}}function Th(e,t){return e===gh?t:function(){var n=e.apply(this,arguments);if(n&&"function"==typeof n.then){for(var r=this,a=arguments.length,i=new Array(a);a--;)i[a]=arguments[a];return n.then((function(){return t.apply(r,i)}))}return t.apply(this,arguments)}}yh.ModifyError=ph,yh.DexieError=ch,yh.BulkError=dh;var Ch={},Ih="undefined"==typeof Promise?[]:function(){var e=Promise.resolve();if("undefined"==typeof crypto||!crypto.subtle)return[e,wd(e),e];var t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,wd(t),e]}(),Ah=Ih[0],Oh=Ih[1],xh=Ih[2],Nh=Oh&&Oh.then,Rh=Ah&&Ah.constructor,Dh=!!xh,Hh=!1,Fh=xh?function(){xh.then(af)}:vd.setImmediate?setImmediate.bind(null,af):vd.MutationObserver?function(){var e=document.createElement("div");new MutationObserver((function(){af(),e=null})).observe(e,{attributes:!0}),e.setAttribute("i","1")}:function(){setTimeout(af,0)},Gh=function(e,t){$h.push([e,t]),Lh&&(Fh(),Lh=!1)},Uh=!0,Lh=!0,jh=[],Mh=[],Bh=null,Kh=vh,qh={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:Af,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach((function(e){try{Af(e[0],e[1])}catch(e){}}))}},Vh=qh,$h=[],Wh=0,zh=[];function Jh(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=gh,this._lib=!1;var t=this._PSD=Vh;if(eh&&(this._stackHolder=ah(),this._prev=null,this._numPrev=0),"function"!=typeof e){if(e!==Ch)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&Zh(this,this._value))}this._state=null,this._value=null,++t.ref,Yh(this,e)}var Xh={get:function(){var e=Vh,t=mf;function n(n,r){var a=this,i=!e.global&&(e!==Vh||t!==mf),s=i&&!vf(),o=new Jh((function(t,o){tf(a,new Qh(Cf(n,e,i,s),Cf(r,e,i,s),t,o,e))}));return eh&&rf(o,this),o}return n.prototype=Ch,n},set:function(e){Id(this,"then",e&&e.prototype===Ch?Xh:{get:function(){return e},set:Xh.set})}};function Qh(e,t,n,r,a){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=r,this.psd=a}function Yh(e,t){try{t((function(t){if(null===e._state){if(t===e)throw new TypeError("A promise cannot be resolved with itself.");var n=e._lib&&sf();t&&"function"==typeof t.then?Yh(e,(function(e,n){t instanceof Jh?t._then(e,n):t.then(e,n)})):(e._state=!0,e._value=t,ef(e)),n&&of()}}),Zh.bind(null,e))}catch(t){Zh(e,t)}}function Zh(e,t){if(Mh.push(t),null===e._state){var n=e._lib&&sf();t=Kh(t),e._state=!1,e._value=t,eh&&null!==t&&"object"==typeof t&&!t._promise&&function(e,t,n){try{e.apply(null,n)}catch(e){t&&t(e)}}((function(){var n=xd(t,"stack");t._promise=e,Id(t,"stack",{get:function(){return Hh?n&&(n.get?n.get.apply(t):n.value):e.stack}})})),function(e){jh.some((function(t){return t._value===e._value}))||jh.push(e)}(e),ef(e),n&&of()}}function ef(e){var t=e._listeners;e._listeners=[];for(var n=0,r=t.length;n<r;++n)tf(e,t[n]);var a=e._PSD;--a.ref||a.finalize(),0===Wh&&(++Wh,Gh((function(){0==--Wh&&lf()}),[]))}function tf(e,t){if(null!==e._state){var n=e._state?t.onFulfilled:t.onRejected;if(null===n)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++Wh,Gh(nf,[n,e,t])}else e._listeners.push(t)}function nf(e,t,n){try{Bh=t;var r,a=t._value;t._state?r=e(a):(Mh.length&&(Mh=[]),r=e(a),-1===Mh.indexOf(a)&&function(e){var t=jh.length;for(;t;)if(jh[--t]._value===e._value)return void jh.splice(t,1)}(t)),n.resolve(r)}catch(e){n.reject(e)}finally{Bh=null,0==--Wh&&lf(),--n.psd.ref||n.psd.finalize()}}function rf(e,t){var n=t?t._numPrev+1:0;n<100&&(e._prev=t,e._numPrev=n)}function af(){sf()&&of()}function sf(){var e=Uh;return Uh=!1,Lh=!1,e}function of(){var e,t,n;do{for(;$h.length>0;)for(e=$h,$h=[],n=e.length,t=0;t<n;++t){var r=e[t];r[0].apply(null,r[1])}}while($h.length>0);Uh=!0,Lh=!0}function lf(){var e=jh;jh=[],e.forEach((function(e){e._PSD.onunhandled.call(null,e._value,e)}));for(var t=zh.slice(0),n=t.length;n;)t[--n]()}function cf(e){return new Jh(Ch,!1,e)}function uf(e,t){var n=Vh;return function(){var r=sf(),a=Vh;try{return wf(n,!0),e.apply(this,arguments)}catch(e){t&&t(e)}finally{wf(a,!1),r&&of()}}}Td(Jh.prototype,{then:Xh,_then:function(e,t){tf(this,new Qh(null,null,e,t,Vh))},catch:function(e){if(1===arguments.length)return this.then(null,e);var t=arguments[0],n=arguments[1];return"function"==typeof t?this.then(null,(function(e){return e instanceof t?n(e):cf(e)})):this.then(null,(function(e){return e&&e.name===t?n(e):cf(e)}))},finally:function(e){return this.then((function(t){return e(),t}),(function(t){return e(),cf(t)}))},stack:{get:function(){if(this._stack)return this._stack;try{Hh=!0;var e=function e(t,n,r){if(n.length===r)return n;var a="";if(!1===t._state){var i,s,o=t._value;null!=o?(i=o.name||"Error",s=o.message||o,a=ih(o,0)):(i=o,s=""),n.push(i+(s?": "+s:"")+a)}eh&&((a=ih(t._stackHolder,2))&&-1===n.indexOf(a)&&n.push(a),t._prev&&e(t._prev,n,r));return n}(this,[],20).join("\nFrom previous: ");return null!==this._state&&(this._stack=e),e}finally{Hh=!1}}},timeout:function(e,t){var n=this;return e<1/0?new Jh((function(r,a){var i=setTimeout((function(){return a(new mh.Timeout(t))}),e);n.then(r,a).finally(clearTimeout.bind(null,i))})):this}}),"undefined"!=typeof Symbol&&Symbol.toStringTag&&Id(Jh.prototype,Symbol.toStringTag,"Dexie.Promise"),qh.env=Ef(),Td(Jh,{all:function(){var e=Yd.apply(null,arguments).map(_f);return new Jh((function(t,n){0===e.length&&t([]);var r=e.length;e.forEach((function(a,i){return Jh.resolve(a).then((function(n){e[i]=n,--r||t(e)}),n)}))}))},resolve:function(e){if(e instanceof Jh)return e;if(e&&"function"==typeof e.then)return new Jh((function(t,n){e.then(t,n)}));var t=new Jh(Ch,!0,e);return rf(t,Bh),t},reject:cf,race:function(){var e=Yd.apply(null,arguments).map(_f);return new Jh((function(t,n){e.map((function(e){return Jh.resolve(e).then(t,n)}))}))},PSD:{get:function(){return Vh},set:function(e){return Vh=e}},totalEchoes:{get:function(){return mf}},newPSD:yf,usePSD:kf,scheduler:{get:function(){return Gh},set:function(e){Gh=e}},rejectionMapper:{get:function(){return Kh},set:function(e){Kh=e}},follow:function(e,t){return new Jh((function(n,r){return yf((function(t,n){var r=Vh;r.unhandleds=[],r.onunhandled=n,r.finalize=bh((function(){var e=this;!function(e){zh.push((function t(){e(),zh.splice(zh.indexOf(t),1)})),++Wh,Gh((function(){0==--Wh&&lf()}),[])}((function(){0===e.unhandleds.length?t():n(e.unhandleds[0])}))}),r.finalize),e()}),t,n,r)}))}}),Rh&&(Rh.allSettled&&Id(Jh,"allSettled",(function(){var e=Yd.apply(null,arguments).map(_f);return new Jh((function(t){0===e.length&&t([]);var n=e.length,r=new Array(n);e.forEach((function(e,a){return Jh.resolve(e).then((function(e){return r[a]={status:"fulfilled",value:e}}),(function(e){return r[a]={status:"rejected",reason:e}})).then((function(){return--n||t(r)}))}))}))})),Rh.any&&"undefined"!=typeof AggregateError&&Id(Jh,"any",(function(){var e=Yd.apply(null,arguments).map(_f);return new Jh((function(t,n){0===e.length&&n(new AggregateError([]));var r=e.length,a=new Array(r);e.forEach((function(e,i){return Jh.resolve(e).then((function(e){return t(e)}),(function(e){a[i]=e,--r||n(new AggregateError(a))}))}))}))})));var pf={awaits:0,echoes:0,id:0},df=0,hf=[],ff=0,mf=0,Sf=0;function yf(e,t,n,r){var a=Vh,i=Object.create(a);i.parent=a,i.ref=0,i.global=!1,i.id=++Sf;var s=qh.env;i.env=Dh?{Promise:Jh,PromiseProp:{value:Jh,configurable:!0,writable:!0},all:Jh.all,race:Jh.race,allSettled:Jh.allSettled,any:Jh.any,resolve:Jh.resolve,reject:Jh.reject,nthen:If(s.nthen,i),gthen:If(s.gthen,i)}:{},t&&Pd(i,t),++a.ref,i.finalize=function(){--this.parent.ref||this.parent.finalize()};var o=kf(i,e,n,r);return 0===i.ref&&i.finalize(),o}function gf(){return pf.id||(pf.id=++df),++pf.awaits,pf.echoes+=100,pf.id}function vf(){return!!pf.awaits&&(0==--pf.awaits&&(pf.id=0),pf.echoes=100*pf.awaits,!0)}function _f(e){return pf.echoes&&e&&e.constructor===Rh?(gf(),e.then((function(e){return vf(),e}),(function(e){return vf(),Of(e)}))):e}function bf(e){++mf,pf.echoes&&0!=--pf.echoes||(pf.echoes=pf.id=0),hf.push(Vh),wf(e,!0)}function Pf(){var e=hf[hf.length-1];hf.pop(),wf(e,!1)}function wf(e,t){var n=Vh;if((t?!pf.echoes||ff++&&e===Vh:!ff||--ff&&e===Vh)||Tf(t?bf.bind(null,e):Pf),e!==Vh&&(Vh=e,n===qh&&(qh.env=Ef()),Dh)){var r=qh.env.Promise,a=e.env;Oh.then=a.nthen,r.prototype.then=a.gthen,(n.global||e.global)&&(Object.defineProperty(vd,"Promise",a.PromiseProp),r.all=a.all,r.race=a.race,r.resolve=a.resolve,r.reject=a.reject,a.allSettled&&(r.allSettled=a.allSettled),a.any&&(r.any=a.any))}}function Ef(){var e=vd.Promise;return Dh?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(vd,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject,nthen:Oh.then,gthen:e.prototype.then}:{}}function kf(e,t,n,r,a){var i=Vh;try{return wf(e,!0),t(n,r,a)}finally{wf(i,!1)}}function Tf(e){Nh.call(Ah,e)}function Cf(e,t,n,r){return"function"!=typeof e?e:function(){var a=Vh;n&&gf(),wf(t,!0);try{return e.apply(this,arguments)}finally{wf(a,!1),r&&Tf(vf)}}}function If(e,t){return function(n,r){return e.call(this,Cf(n,t),Cf(r,t))}}-1===(""+Nh).indexOf("[native code]")&&(gf=vf=gh);function Af(e,t){var n;try{n=t.onuncatched(e)}catch(e){}if(!1!==n)try{var r,a={promise:t,reason:e};if(vd.document&&document.createEvent?((r=document.createEvent("Event")).initEvent("unhandledrejection",!0,!0),Pd(r,a)):vd.CustomEvent&&Pd(r=new CustomEvent("unhandledrejection",{detail:a}),a),r&&vd.dispatchEvent&&(dispatchEvent(r),!vd.PromiseRejectionEvent&&vd.onunhandledrejection))try{vd.onunhandledrejection(r)}catch(e){}eh&&r&&!r.defaultPrevented&&console.warn("Unhandled rejection: "+(e.stack||e))}catch(e){}}var Of=Jh.reject;var xf=String.fromCharCode(65535),Nf="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",Rf=[],Df="undefined"!=typeof navigator&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),Hf=Df,Ff=Df,Gf=function(e){return!/(dexie\.js|dexie\.min\.js)/.test(e)};function Uf(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}var Lf={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function jf(e){return"string"!=typeof e||/\./.test(e)?function(e){return e}:function(t){return void 0===t[e]&&e in t&&delete(t=$d(t))[e],t}}var Mf=function(){function e(){}return e.prototype._trans=function(e,t,n){var r=this._tx||Vh.trans,a=this.name;function i(e,n,r){if(!r.schema[a])throw new mh.NotFound("Table "+a+" not part of transaction");return t(r.idbtrans,r)}var s=sf();try{return r&&r.db===this.db?r===Vh.trans?r._promise(e,i,n):yf((function(){return r._promise(e,i,n)}),{trans:r,transless:Vh.transless||Vh}):function e(t,n,r,a){if(t.idbdb&&(t._state.openComplete||Vh.letThrough||t._vip)){var i=t._createTransaction(n,r,t._dbSchema);try{i.create(),t._state.PR1398_maxLoop=3}catch(i){return i.name===hh.InvalidState&&t.isOpen()&&--t._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),t._close(),t.open().then((function(){return e(t,n,r,a)}))):Of(i)}return i._promise(n,(function(e,t){return yf((function(){return Vh.trans=i,a(e,t,i)}))})).then((function(e){return i._completion.then((function(){return e}))}))}if(t._state.openComplete)return Of(new mh.DatabaseClosed(t._state.dbOpenError));if(!t._state.isBeingOpened){if(!t._options.autoOpen)return Of(new mh.DatabaseClosed);t.open().catch(gh)}return t._state.dbReadyPromise.then((function(){return e(t,n,r,a)}))}(this.db,e,[this.name],i)}finally{s&&of()}},e.prototype.get=function(e,t){var n=this;return e&&e.constructor===Object?this.where(e).first(t):this._trans("readonly",(function(t){return n.core.get({trans:t,key:e}).then((function(e){return n.hook.reading.fire(e)}))})).then(t)},e.prototype.where=function(e){if("string"==typeof e)return new this.db.WhereClause(this,e);if(bd(e))return new this.db.WhereClause(this,"["+e.join("+")+"]");var t=_d(e);if(1===t.length)return this.where(t[0]).equals(e[t[0]]);var n=this.schema.indexes.concat(this.schema.primKey).filter((function(e){return e.compound&&t.every((function(t){return e.keyPath.indexOf(t)>=0}))&&e.keyPath.every((function(e){return t.indexOf(e)>=0}))}))[0];if(n&&this.db._maxKey!==xf)return this.where(n.name).equals(n.keyPath.map((function(t){return e[t]})));!n&&eh&&console.warn("The query "+JSON.stringify(e)+" on "+this.name+" would benefit of a compound index ["+t.join("+")+"]");var r=this.schema.idxByName,a=this.db._deps.indexedDB;function i(e,t){try{return 0===a.cmp(e,t)}catch(e){return!1}}var s=t.reduce((function(t,n){var a=t[0],s=t[1],o=r[n],l=e[n];return[a||o,a||!o?Uf(s,o&&o.multi?function(e){var t=Ud(e,n);return bd(t)&&t.some((function(e){return i(l,e)}))}:function(e){return i(l,Ud(e,n))}):s]}),[null,null]),o=s[0],l=s[1];return o?this.where(o.name).equals(e[o.keyPath]).filter(l):n?this.filter(l):this.where(t).equals("")},e.prototype.filter=function(e){return this.toCollection().and(e)},e.prototype.count=function(e){return this.toCollection().count(e)},e.prototype.offset=function(e){return this.toCollection().offset(e)},e.prototype.limit=function(e){return this.toCollection().limit(e)},e.prototype.each=function(e){return this.toCollection().each(e)},e.prototype.toArray=function(e){return this.toCollection().toArray(e)},e.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},e.prototype.orderBy=function(e){return new this.db.Collection(new this.db.WhereClause(this,bd(e)?"["+e.join("+")+"]":e))},e.prototype.reverse=function(){return this.toCollection().reverse()},e.prototype.mapToClass=function(e){this.schema.mappedClass=e;var t=function(t){if(!t)return t;var n=Object.create(e.prototype);for(var r in t)if(kd(t,r))try{n[r]=t[r]}catch(e){}return n};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=t,this.hook("reading",t),e},e.prototype.defineClass=function(){return this.mapToClass((function(e){Pd(this,e)}))},e.prototype.add=function(e,t){var n=this,r=this.schema.primKey,a=r.auto,i=r.keyPath,s=e;return i&&a&&(s=jf(i)(e)),this._trans("readwrite",(function(e){return n.core.mutate({trans:e,type:"add",keys:null!=t?[t]:null,values:[s]})})).then((function(e){return e.numFailures?Jh.reject(e.failures[0]):e.lastResult})).then((function(t){if(i)try{Ld(e,i,t)}catch(e){}return t}))},e.prototype.update=function(e,t){if("object"!=typeof e||bd(e))return this.where(":id").equals(e).modify(t);var n=Ud(e,this.schema.primKey.keyPath);if(void 0===n)return Of(new mh.InvalidArgument("Given object does not contain its primary key"));try{"function"!=typeof t?_d(t).forEach((function(n){Ld(e,n,t[n])})):t(e,{value:e,primKey:n})}catch(e){}return this.where(":id").equals(n).modify(t)},e.prototype.put=function(e,t){var n=this,r=this.schema.primKey,a=r.auto,i=r.keyPath,s=e;return i&&a&&(s=jf(i)(e)),this._trans("readwrite",(function(e){return n.core.mutate({trans:e,type:"put",values:[s],keys:null!=t?[t]:null})})).then((function(e){return e.numFailures?Jh.reject(e.failures[0]):e.lastResult})).then((function(t){if(i)try{Ld(e,i,t)}catch(e){}return t}))},e.prototype.delete=function(e){var t=this;return this._trans("readwrite",(function(n){return t.core.mutate({trans:n,type:"delete",keys:[e]})})).then((function(e){return e.numFailures?Jh.reject(e.failures[0]):void 0}))},e.prototype.clear=function(){var e=this;return this._trans("readwrite",(function(t){return e.core.mutate({trans:t,type:"deleteRange",range:Lf})})).then((function(e){return e.numFailures?Jh.reject(e.failures[0]):void 0}))},e.prototype.bulkGet=function(e){var t=this;return this._trans("readonly",(function(n){return t.core.getMany({keys:e,trans:n}).then((function(e){return e.map((function(e){return t.hook.reading.fire(e)}))}))}))},e.prototype.bulkAdd=function(e,t,n){var r=this,a=Array.isArray(t)?t:void 0,i=(n=n||(a?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",(function(t){var n=r.schema.primKey,s=n.auto,o=n.keyPath;if(o&&a)throw new mh.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(a&&a.length!==e.length)throw new mh.InvalidArgument("Arguments objects and keys must have the same length");var l=e.length,c=o&&s?e.map(jf(o)):e;return r.core.mutate({trans:t,type:"add",keys:a,values:c,wantResults:i}).then((function(e){var t=e.numFailures,n=e.results,a=e.lastResult,s=e.failures;if(0===t)return i?n:a;throw new dh(r.name+".bulkAdd(): "+t+" of "+l+" operations failed",s)}))}))},e.prototype.bulkPut=function(e,t,n){var r=this,a=Array.isArray(t)?t:void 0,i=(n=n||(a?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",(function(t){var n=r.schema.primKey,s=n.auto,o=n.keyPath;if(o&&a)throw new mh.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(a&&a.length!==e.length)throw new mh.InvalidArgument("Arguments objects and keys must have the same length");var l=e.length,c=o&&s?e.map(jf(o)):e;return r.core.mutate({trans:t,type:"put",keys:a,values:c,wantResults:i}).then((function(e){var t=e.numFailures,n=e.results,a=e.lastResult,s=e.failures;if(0===t)return i?n:a;throw new dh(r.name+".bulkPut(): "+t+" of "+l+" operations failed",s)}))}))},e.prototype.bulkDelete=function(e){var t=this,n=e.length;return this._trans("readwrite",(function(n){return t.core.mutate({trans:n,type:"delete",keys:e})})).then((function(e){var r=e.numFailures,a=e.lastResult,i=e.failures;if(0===r)return a;throw new dh(t.name+".bulkDelete(): "+r+" of "+n+" operations failed",i)}))},e}();function Bf(e){var t={},n=function(n,r){if(r){for(var a=arguments.length,i=new Array(a-1);--a;)i[a-1]=arguments[a];return t[n].subscribe.apply(null,i),e}if("string"==typeof n)return t[n]};n.addEventType=i;for(var r=1,a=arguments.length;r<a;++r)i(arguments[r]);return n;function i(e,r,a){if("object"==typeof e)return s(e);r||(r=kh),a||(a=gh);var i={subscribers:[],fire:a,subscribe:function(e){-1===i.subscribers.indexOf(e)&&(i.subscribers.push(e),i.fire=r(i.fire,e))},unsubscribe:function(e){i.subscribers=i.subscribers.filter((function(t){return t!==e})),i.fire=i.subscribers.reduce(r,a)}};return t[e]=n[e]=i,i}function s(e){_d(e).forEach((function(t){var n=e[t];if(bd(n))i(t,e[t][0],e[t][1]);else{if("asap"!==n)throw new mh.InvalidArgument("Invalid event config");var r=i(t,vh,(function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];r.subscribers.forEach((function(e){Fd((function(){e.apply(null,t)}))}))}))}}))}}function Kf(e,t){return Ad(t).from({prototype:e}),t}function qf(e,t){return!(e.filter||e.algorithm||e.or)&&(t?e.justLimit:!e.replayFilter)}function Vf(e,t){e.filter=Uf(e.filter,t)}function $f(e,t,n){var r=e.replayFilter;e.replayFilter=r?function(){return Uf(r(),t())}:t,e.justLimit=n&&!r}function Wf(e,t){if(e.isPrimKey)return t.primaryKey;var n=t.getIndexByKeyPath(e.index);if(!n)throw new mh.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return n}function zf(e,t,n){var r=Wf(e,t.schema);return t.openCursor({trans:n,values:!e.keysOnly,reverse:"prev"===e.dir,unique:!!e.unique,query:{index:r,range:e.range}})}function Jf(e,t,n,r){var a=e.replayFilter?Uf(e.filter,e.replayFilter()):e.filter;if(e.or){var i={},s=function(e,n,r){if(!a||a(n,r,(function(e){return n.stop(e)}),(function(e){return n.fail(e)}))){var s=n.primaryKey,o=""+s;"[object ArrayBuffer]"===o&&(o=""+new Uint8Array(s)),kd(i,o)||(i[o]=!0,t(e,n,r))}};return Promise.all([e.or._iterate(s,n),Xf(zf(e,r,n),e.algorithm,s,!e.keysOnly&&e.valueMapper)])}return Xf(zf(e,r,n),Uf(e.algorithm,a),t,!e.keysOnly&&e.valueMapper)}function Xf(e,t,n,r){var a=uf(r?function(e,t,a){return n(r(e),t,a)}:n);return e.then((function(e){if(e)return e.start((function(){var n=function(){return e.continue()};t&&!t(e,(function(e){return n=e}),(function(t){e.stop(t),n=gh}),(function(t){e.fail(t),n=gh}))||a(e.value,e,(function(e){return n=e})),n()}))}))}function Qf(e,t){try{var n=Yf(e),r=Yf(t);if(n!==r)return"Array"===n?1:"Array"===r?-1:"binary"===n?1:"binary"===r?-1:"string"===n?1:"string"===r?-1:"Date"===n?1:"Date"!==r?NaN:-1;switch(n){case"number":case"Date":case"string":return e>t?1:e<t?-1:0;case"binary":return function(e,t){for(var n=e.length,r=t.length,a=n<r?n:r,i=0;i<a;++i)if(e[i]!==t[i])return e[i]<t[i]?-1:1;return n===r?0:n<r?-1:1}(Zf(e),Zf(t));case"Array":return function(e,t){for(var n=e.length,r=t.length,a=n<r?n:r,i=0;i<a;++i){var s=Qf(e[i],t[i]);if(0!==s)return s}return n===r?0:n<r?-1:1}(e,t)}}catch(e){}return NaN}function Yf(e){var t=typeof e;if("object"!==t)return t;if(ArrayBuffer.isView(e))return"binary";var n=zd(e);return"ArrayBuffer"===n?"binary":n}function Zf(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}var em=function(){function e(){}return e.prototype._read=function(e,t){var n=this._ctx;return n.error?n.table._trans(null,Of.bind(null,n.error)):n.table._trans("readonly",e).then(t)},e.prototype._write=function(e){var t=this._ctx;return t.error?t.table._trans(null,Of.bind(null,t.error)):t.table._trans("readwrite",e,"locked")},e.prototype._addAlgorithm=function(e){var t=this._ctx;t.algorithm=Uf(t.algorithm,e)},e.prototype._iterate=function(e,t){return Jf(this._ctx,e,t,this._ctx.table.core)},e.prototype.clone=function(e){var t=Object.create(this.constructor.prototype),n=Object.create(this._ctx);return e&&Pd(n,e),t._ctx=n,t},e.prototype.raw=function(){return this._ctx.valueMapper=null,this},e.prototype.each=function(e){var t=this._ctx;return this._read((function(n){return Jf(t,e,n,t.table.core)}))},e.prototype.count=function(e){var t=this;return this._read((function(e){var n=t._ctx,r=n.table.core;if(qf(n,!0))return r.count({trans:e,query:{index:Wf(n,r.schema),range:n.range}}).then((function(e){return Math.min(e,n.limit)}));var a=0;return Jf(n,(function(){return++a,!1}),e,r).then((function(){return a}))})).then(e)},e.prototype.sortBy=function(e,t){var n=e.split(".").reverse(),r=n[0],a=n.length-1;function i(e,t){return t?i(e[n[t]],t-1):e[r]}var s="next"===this._ctx.dir?1:-1;function o(e,t){var n=i(e,a),r=i(t,a);return n<r?-s:n>r?s:0}return this.toArray((function(e){return e.sort(o)})).then(t)},e.prototype.toArray=function(e){var t=this;return this._read((function(e){var n=t._ctx;if("next"===n.dir&&qf(n,!0)&&n.limit>0){var r=n.valueMapper,a=Wf(n,n.table.core.schema);return n.table.core.query({trans:e,limit:n.limit,values:!0,query:{index:a,range:n.range}}).then((function(e){var t=e.result;return r?t.map(r):t}))}var i=[];return Jf(n,(function(e){return i.push(e)}),e,n.table.core).then((function(){return i}))}),e)},e.prototype.offset=function(e){var t=this._ctx;return e<=0||(t.offset+=e,qf(t)?$f(t,(function(){var t=e;return function(e,n){return 0===t||(1===t?(--t,!1):(n((function(){e.advance(t),t=0})),!1))}})):$f(t,(function(){var t=e;return function(){return--t<0}}))),this},e.prototype.limit=function(e){return this._ctx.limit=Math.min(this._ctx.limit,e),$f(this._ctx,(function(){var t=e;return function(e,n,r){return--t<=0&&n(r),t>=0}}),!0),this},e.prototype.until=function(e,t){return Vf(this._ctx,(function(n,r,a){return!e(n.value)||(r(a),t)})),this},e.prototype.first=function(e){return this.limit(1).toArray((function(e){return e[0]})).then(e)},e.prototype.last=function(e){return this.reverse().first(e)},e.prototype.filter=function(e){var t,n;return Vf(this._ctx,(function(t){return e(t.value)})),t=this._ctx,n=e,t.isMatch=Uf(t.isMatch,n),this},e.prototype.and=function(e){return this.filter(e)},e.prototype.or=function(e){return new this.db.WhereClause(this._ctx.table,e,this)},e.prototype.reverse=function(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},e.prototype.desc=function(){return this.reverse()},e.prototype.eachKey=function(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each((function(t,n){e(n.key,n)}))},e.prototype.eachUniqueKey=function(e){return this._ctx.unique="unique",this.eachKey(e)},e.prototype.eachPrimaryKey=function(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each((function(t,n){e(n.primaryKey,n)}))},e.prototype.keys=function(e){var t=this._ctx;t.keysOnly=!t.isMatch;var n=[];return this.each((function(e,t){n.push(t.key)})).then((function(){return n})).then(e)},e.prototype.primaryKeys=function(e){var t=this._ctx;if("next"===t.dir&&qf(t,!0)&&t.limit>0)return this._read((function(e){var n=Wf(t,t.table.core.schema);return t.table.core.query({trans:e,values:!1,limit:t.limit,query:{index:n,range:t.range}})})).then((function(e){return e.result})).then(e);t.keysOnly=!t.isMatch;var n=[];return this.each((function(e,t){n.push(t.primaryKey)})).then((function(){return n})).then(e)},e.prototype.uniqueKeys=function(e){return this._ctx.unique="unique",this.keys(e)},e.prototype.firstKey=function(e){return this.limit(1).keys((function(e){return e[0]})).then(e)},e.prototype.lastKey=function(e){return this.reverse().firstKey(e)},e.prototype.distinct=function(){var e=this._ctx,t=e.index&&e.table.schema.idxByName[e.index];if(!t||!t.multi)return this;var n={};return Vf(this._ctx,(function(e){var t=e.primaryKey.toString(),r=kd(n,t);return n[t]=!0,!r})),this},e.prototype.modify=function(e){var t=this,n=this._ctx;return this._write((function(r){var a;if("function"==typeof e)a=e;else{var i=_d(e),s=i.length;a=function(t){for(var n=!1,r=0;r<s;++r){var a=i[r],o=e[a];Ud(t,a)!==o&&(Ld(t,a,o),n=!0)}return n}}var o=n.table.core,l=o.schema.primaryKey,c=l.outbound,u=l.extractKey,p=t.db._options.modifyChunkSize||200,d=[],h=0,f=[],m=function(e,t){var n=t.failures,r=t.numFailures;h+=e-r;for(var a=0,i=_d(n);a<i.length;a++){var s=i[a];d.push(n[s])}};return t.clone().primaryKeys().then((function(t){var i=function(s){var l=Math.min(p,t.length-s);return o.getMany({trans:r,keys:t.slice(s,s+l),cache:"immutable"}).then((function(d){for(var h=[],f=[],S=c?[]:null,y=[],g=0;g<l;++g){var v=d[g],_={value:$d(v),primKey:t[s+g]};!1!==a.call(_,_.value,_)&&(null==_.value?y.push(t[s+g]):c||0===Qf(u(v),u(_.value))?(f.push(_.value),c&&S.push(t[s+g])):(y.push(t[s+g]),h.push(_.value)))}var b=qf(n)&&n.limit===1/0&&("function"!=typeof e||e===tm)&&{index:n.index,range:n.range};return Promise.resolve(h.length>0&&o.mutate({trans:r,type:"add",values:h}).then((function(e){for(var t in e.failures)y.splice(parseInt(t),1);m(h.length,e)}))).then((function(){return(f.length>0||b&&"object"==typeof e)&&o.mutate({trans:r,type:"put",keys:S,values:f,criteria:b,changeSpec:"function"!=typeof e&&e}).then((function(e){return m(f.length,e)}))})).then((function(){return(y.length>0||b&&e===tm)&&o.mutate({trans:r,type:"delete",keys:y,criteria:b}).then((function(e){return m(y.length,e)}))})).then((function(){return t.length>s+l&&i(s+p)}))}))};return i(0).then((function(){if(d.length>0)throw new ph("Error modifying one or more objects",d,h,f);return t.length}))}))}))},e.prototype.delete=function(){var e=this._ctx,t=e.range;return qf(e)&&(e.isPrimKey&&!Ff||3===t.type)?this._write((function(n){var r=e.table.core.schema.primaryKey,a=t;return e.table.core.count({trans:n,query:{index:r,range:a}}).then((function(t){return e.table.core.mutate({trans:n,type:"deleteRange",range:a}).then((function(e){var n=e.failures;e.lastResult,e.results;var r=e.numFailures;if(r)throw new ph("Could not delete some values",Object.keys(n).map((function(e){return n[e]})),t-r);return t-r}))}))})):this.modify(tm)},e}(),tm=function(e,t){return t.value=null};function nm(e,t){return e<t?-1:e===t?0:1}function rm(e,t){return e>t?-1:e===t?0:1}function am(e,t,n){var r=e instanceof um?new e.Collection(e):e;return r._ctx.error=n?new n(t):new TypeError(t),r}function im(e){return new e.Collection(e,(function(){return cm("")})).limit(0)}function sm(e,t,n,r,a,i){for(var s=Math.min(e.length,r.length),o=-1,l=0;l<s;++l){var c=t[l];if(c!==r[l])return a(e[l],n[l])<0?e.substr(0,l)+n[l]+n.substr(l+1):a(e[l],r[l])<0?e.substr(0,l)+r[l]+n.substr(l+1):o>=0?e.substr(0,o)+t[o]+n.substr(o+1):null;a(e[l],c)<0&&(o=l)}return s<r.length&&"next"===i?e+n.substr(e.length):s<e.length&&"prev"===i?e.substr(0,n.length):o<0?null:e.substr(0,o)+r[o]+n.substr(o+1)}function om(e,t,n,r){var a,i,s,o,l,c,u,p=n.length;if(!n.every((function(e){return"string"==typeof e})))return am(e,"String expected.");function d(e){a=function(e){return"next"===e?function(e){return e.toUpperCase()}:function(e){return e.toLowerCase()}}(e),i=function(e){return"next"===e?function(e){return e.toLowerCase()}:function(e){return e.toUpperCase()}}(e),s="next"===e?nm:rm;var t=n.map((function(e){return{lower:i(e),upper:a(e)}})).sort((function(e,t){return s(e.lower,t.lower)}));o=t.map((function(e){return e.upper})),l=t.map((function(e){return e.lower})),c=e,u="next"===e?"":r}d("next");var h=new e.Collection(e,(function(){return lm(o[0],l[p-1]+r)}));h._ondirectionchange=function(e){d(e)};var f=0;return h._addAlgorithm((function(e,n,r){var a=e.key;if("string"!=typeof a)return!1;var d=i(a);if(t(d,l,f))return!0;for(var h=null,m=f;m<p;++m){var S=sm(a,d,o[m],l[m],s,c);null===S&&null===h?f=m+1:(null===h||s(h,S)>0)&&(h=S)}return n(null!==h?function(){e.continue(h+u)}:r),!1})),h}function lm(e,t,n,r){return{type:2,lower:e,upper:t,lowerOpen:n,upperOpen:r}}function cm(e){return{type:1,lower:e,upper:e}}var um=function(){function e(){}return Object.defineProperty(e.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),e.prototype.between=function(e,t,n,r){n=!1!==n,r=!0===r;try{return this._cmp(e,t)>0||0===this._cmp(e,t)&&(n||r)&&(!n||!r)?im(this):new this.Collection(this,(function(){return lm(e,t,!n,!r)}))}catch(e){return am(this,Nf)}},e.prototype.equals=function(e){return null==e?am(this,Nf):new this.Collection(this,(function(){return cm(e)}))},e.prototype.above=function(e){return null==e?am(this,Nf):new this.Collection(this,(function(){return lm(e,void 0,!0)}))},e.prototype.aboveOrEqual=function(e){return null==e?am(this,Nf):new this.Collection(this,(function(){return lm(e,void 0,!1)}))},e.prototype.below=function(e){return null==e?am(this,Nf):new this.Collection(this,(function(){return lm(void 0,e,!1,!0)}))},e.prototype.belowOrEqual=function(e){return null==e?am(this,Nf):new this.Collection(this,(function(){return lm(void 0,e)}))},e.prototype.startsWith=function(e){return"string"!=typeof e?am(this,"String expected."):this.between(e,e+xf,!0,!0)},e.prototype.startsWithIgnoreCase=function(e){return""===e?this.startsWith(e):om(this,(function(e,t){return 0===e.indexOf(t[0])}),[e],xf)},e.prototype.equalsIgnoreCase=function(e){return om(this,(function(e,t){return e===t[0]}),[e],"")},e.prototype.anyOfIgnoreCase=function(){var e=Yd.apply(Qd,arguments);return 0===e.length?im(this):om(this,(function(e,t){return-1!==t.indexOf(e)}),e,"")},e.prototype.startsWithAnyOfIgnoreCase=function(){var e=Yd.apply(Qd,arguments);return 0===e.length?im(this):om(this,(function(e,t){return t.some((function(t){return 0===e.indexOf(t)}))}),e,xf)},e.prototype.anyOf=function(){var e=this,t=Yd.apply(Qd,arguments),n=this._cmp;try{t.sort(n)}catch(e){return am(this,Nf)}if(0===t.length)return im(this);var r=new this.Collection(this,(function(){return lm(t[0],t[t.length-1])}));r._ondirectionchange=function(r){n="next"===r?e._ascending:e._descending,t.sort(n)};var a=0;return r._addAlgorithm((function(e,r,i){for(var s=e.key;n(s,t[a])>0;)if(++a===t.length)return r(i),!1;return 0===n(s,t[a])||(r((function(){e.continue(t[a])})),!1)})),r},e.prototype.notEqual=function(e){return this.inAnyRange([[-1/0,e],[e,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},e.prototype.noneOf=function(){var e=Yd.apply(Qd,arguments);if(0===e.length)return new this.Collection(this);try{e.sort(this._ascending)}catch(e){return am(this,Nf)}var t=e.reduce((function(e,t){return e?e.concat([[e[e.length-1][1],t]]):[[-1/0,t]]}),null);return t.push([e[e.length-1],this.db._maxKey]),this.inAnyRange(t,{includeLowers:!1,includeUppers:!1})},e.prototype.inAnyRange=function(e,t){var n=this,r=this._cmp,a=this._ascending,i=this._descending,s=this._min,o=this._max;if(0===e.length)return im(this);if(!e.every((function(e){return void 0!==e[0]&&void 0!==e[1]&&a(e[0],e[1])<=0})))return am(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",mh.InvalidArgument);var l=!t||!1!==t.includeLowers,c=t&&!0===t.includeUppers;var u,p=a;function d(e,t){return p(e[0],t[0])}try{(u=e.reduce((function(e,t){for(var n=0,a=e.length;n<a;++n){var i=e[n];if(r(t[0],i[1])<0&&r(t[1],i[0])>0){i[0]=s(i[0],t[0]),i[1]=o(i[1],t[1]);break}}return n===a&&e.push(t),e}),[])).sort(d)}catch(e){return am(this,Nf)}var h=0,f=c?function(e){return a(e,u[h][1])>0}:function(e){return a(e,u[h][1])>=0},m=l?function(e){return i(e,u[h][0])>0}:function(e){return i(e,u[h][0])>=0};var S=f,y=new this.Collection(this,(function(){return lm(u[0][0],u[u.length-1][1],!l,!c)}));return y._ondirectionchange=function(e){"next"===e?(S=f,p=a):(S=m,p=i),u.sort(d)},y._addAlgorithm((function(e,t,r){for(var i=e.key;S(i);)if(++h===u.length)return t(r),!1;return!!function(e){return!f(e)&&!m(e)}(i)||(0===n._cmp(i,u[h][1])||0===n._cmp(i,u[h][0])||t((function(){p===a?e.continue(u[h][0]):e.continue(u[h][1])})),!1)})),y},e.prototype.startsWithAnyOf=function(){var e=Yd.apply(Qd,arguments);return e.every((function(e){return"string"==typeof e}))?0===e.length?im(this):this.inAnyRange(e.map((function(e){return[e,e+xf]}))):am(this,"startsWithAnyOf() only works with strings")},e}();function pm(e){return uf((function(t){return dm(t),e(t.target.error),!1}))}function dm(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}var hm=Bf(null,"storagemutated"),fm=function(){function e(){}return e.prototype._lock=function(){return Hd(!Vh.global),++this._reculock,1!==this._reculock||Vh.global||(Vh.lockOwnerFor=this),this},e.prototype._unlock=function(){if(Hd(!Vh.global),0==--this._reculock)for(Vh.global||(Vh.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var e=this._blockedFuncs.shift();try{kf(e[1],e[0])}catch(e){}}return this},e.prototype._locked=function(){return this._reculock&&Vh.lockOwnerFor!==this},e.prototype.create=function(e){var t=this;if(!this.mode)return this;var n=this.db.idbdb,r=this.db._state.dbOpenError;if(Hd(!this.idbtrans),!e&&!n)switch(r&&r.name){case"DatabaseClosedError":throw new mh.DatabaseClosed(r);case"MissingAPIError":throw new mh.MissingAPI(r.message,r);default:throw new mh.OpenFailed(r)}if(!this.active)throw new mh.TransactionInactive;return Hd(null===this._completion._state),(e=this.idbtrans=e||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):n.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=uf((function(n){dm(n),t._reject(e.error)})),e.onabort=uf((function(n){dm(n),t.active&&t._reject(new mh.Abort(e.error)),t.active=!1,t.on("abort").fire(n)})),e.oncomplete=uf((function(){t.active=!1,t._resolve(),"mutatedParts"in e&&hm.storagemutated.fire(e.mutatedParts)})),this},e.prototype._promise=function(e,t,n){var r=this;if("readwrite"===e&&"readwrite"!==this.mode)return Of(new mh.ReadOnly("Transaction is readonly"));if(!this.active)return Of(new mh.TransactionInactive);if(this._locked())return new Jh((function(a,i){r._blockedFuncs.push([function(){r._promise(e,t,n).then(a,i)},Vh])}));if(n)return yf((function(){var e=new Jh((function(e,n){r._lock();var a=t(e,n,r);a&&a.then&&a.then(e,n)}));return e.finally((function(){return r._unlock()})),e._lib=!0,e}));var a=new Jh((function(e,n){var a=t(e,n,r);a&&a.then&&a.then(e,n)}));return a._lib=!0,a},e.prototype._root=function(){return this.parent?this.parent._root():this},e.prototype.waitFor=function(e){var t=this._root(),n=Jh.resolve(e);if(t._waitingFor)t._waitingFor=t._waitingFor.then((function(){return n}));else{t._waitingFor=n,t._waitingQueue=[];var r=t.idbtrans.objectStore(t.storeNames[0]);!function e(){for(++t._spinCount;t._waitingQueue.length;)t._waitingQueue.shift()();t._waitingFor&&(r.get(-1/0).onsuccess=e)}()}var a=t._waitingFor;return new Jh((function(e,r){n.then((function(n){return t._waitingQueue.push(uf(e.bind(null,n)))}),(function(e){return t._waitingQueue.push(uf(r.bind(null,e)))})).finally((function(){t._waitingFor===a&&(t._waitingFor=null)}))}))},e.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new mh.Abort))},e.prototype.table=function(e){var t=this._memoizedTables||(this._memoizedTables={});if(kd(t,e))return t[e];var n=this.schema[e];if(!n)throw new mh.NotFound("Table "+e+" not part of transaction");var r=new this.db.Table(e,n,this);return r.core=this.db.core.table(e),t[e]=r,r},e}();function mm(e,t,n,r,a,i,s){return{name:e,keyPath:t,unique:n,multi:r,auto:a,compound:i,src:(n&&!s?"&":"")+(r?"*":"")+(a?"++":"")+Sm(t)}}function Sm(e){return"string"==typeof e?e:e?"["+[].join.call(e,"+")+"]":""}function ym(e,t,n){return{name:e,primKey:t,indexes:n,mappedClass:null,idxByName:Gd(n,(function(e){return[e.name,e]}))}}var gm=function(e){try{return e.only([[]]),gm=function(){return[[]]},[[]]}catch(e){return gm=function(){return xf},xf}};function vm(e){return null==e?function(){}:"string"==typeof e?function(e){return 1===e.split(".").length?function(t){return t[e]}:function(t){return Ud(t,e)}}(e):function(t){return Ud(t,e)}}function _m(e){return[].slice.call(e)}var bm=0;function Pm(e){return null==e?":id":"string"==typeof e?e:"["+e.join("+")+"]"}function wm(e,t,n){function r(e){if(3===e.type)return null;if(4===e.type)throw new Error("Cannot convert never type to IDBKeyRange");var n=e.lower,r=e.upper,a=e.lowerOpen,i=e.upperOpen;return void 0===n?void 0===r?null:t.upperBound(r,!!i):void 0===r?t.lowerBound(n,!!a):t.bound(n,r,!!a,!!i)}var a=function(e,t){var n=_m(e.objectStoreNames);return{schema:{name:e.name,tables:n.map((function(e){return t.objectStore(e)})).map((function(e){var t=e.keyPath,n=e.autoIncrement,r=bd(t),a=null==t,i={},s={name:e.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:a,compound:r,keyPath:t,autoIncrement:n,unique:!0,extractKey:vm(t)},indexes:_m(e.indexNames).map((function(t){return e.index(t)})).map((function(e){var t=e.name,n=e.unique,r=e.multiEntry,a=e.keyPath,s={name:t,compound:bd(a),keyPath:a,unique:n,multiEntry:r,extractKey:vm(a)};return i[Pm(a)]=s,s})),getIndexByKeyPath:function(e){return i[Pm(e)]}};return i[":id"]=s.primaryKey,null!=t&&(i[Pm(t)]=s.primaryKey),s}))},hasGetAll:n.length>0&&"getAll"in t.objectStore(n[0])&&!("undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}(e,n),i=a.schema,s=a.hasGetAll,o=i.tables.map((function(e){return function(e){var t=e.name;return{name:t,schema:e,mutate:function(e){var n=e.trans,a=e.type,i=e.keys,s=e.values,o=e.range;return new Promise((function(e,l){e=uf(e);var c=n.objectStore(t),u=null==c.keyPath,p="put"===a||"add"===a;if(!p&&"delete"!==a&&"deleteRange"!==a)throw new Error("Invalid operation type: "+a);var d,h=(i||s||{length:1}).length;if(i&&s&&i.length!==s.length)throw new Error("Given keys array must have same length as given values array.");if(0===h)return e({numFailures:0,failures:{},results:[],lastResult:void 0});var f=[],m=[],S=0,y=function(e){++S,dm(e)};if("deleteRange"===a){if(4===o.type)return e({numFailures:S,failures:m,results:[],lastResult:void 0});3===o.type?f.push(d=c.clear()):f.push(d=c.delete(r(o)))}else{var g=p?u?[s,i]:[s,null]:[i,null],v=g[0],_=g[1];if(p)for(var b=0;b<h;++b)f.push(d=_&&void 0!==_[b]?c[a](v[b],_[b]):c[a](v[b])),d.onerror=y;else for(b=0;b<h;++b)f.push(d=c[a](v[b])),d.onerror=y}var P=function(t){var n=t.target.result;f.forEach((function(e,t){return null!=e.error&&(m[t]=e.error)})),e({numFailures:S,failures:m,results:"delete"===a?i:f.map((function(e){return e.result})),lastResult:n})};d.onerror=function(e){y(e),P(e)},d.onsuccess=P}))},getMany:function(e){var n=e.trans,r=e.keys;return new Promise((function(e,a){e=uf(e);for(var i,s=n.objectStore(t),o=r.length,l=new Array(o),c=0,u=0,p=function(t){var n=t.target;l[n._pos]=n.result,++u===c&&e(l)},d=pm(a),h=0;h<o;++h){null!=r[h]&&((i=s.get(r[h]))._pos=h,i.onsuccess=p,i.onerror=d,++c)}0===c&&e(l)}))},get:function(e){var n=e.trans,r=e.key;return new Promise((function(e,a){e=uf(e);var i=n.objectStore(t).get(r);i.onsuccess=function(t){return e(t.target.result)},i.onerror=pm(a)}))},query:function(e){return function(n){return new Promise((function(a,i){a=uf(a);var s=n.trans,o=n.values,l=n.limit,c=n.query,u=l===1/0?void 0:l,p=c.index,d=c.range,h=s.objectStore(t),f=p.isPrimaryKey?h:h.index(p.name),m=r(d);if(0===l)return a({result:[]});if(e){var S=o?f.getAll(m,u):f.getAllKeys(m,u);S.onsuccess=function(e){return a({result:e.target.result})},S.onerror=pm(i)}else{var y=0,g=o||!("openKeyCursor"in f)?f.openCursor(m):f.openKeyCursor(m),v=[];g.onsuccess=function(e){var t=g.result;return t?(v.push(o?t.value:t.primaryKey),++y===l?a({result:v}):void t.continue()):a({result:v})},g.onerror=pm(i)}}))}}(s),openCursor:function(e){var n=e.trans,a=e.values,i=e.query,s=e.reverse,o=e.unique;return new Promise((function(e,l){e=uf(e);var c=i.index,u=i.range,p=n.objectStore(t),d=c.isPrimaryKey?p:p.index(c.name),h=s?o?"prevunique":"prev":o?"nextunique":"next",f=a||!("openKeyCursor"in d)?d.openCursor(r(u),h):d.openKeyCursor(r(u),h);f.onerror=pm(l),f.onsuccess=uf((function(t){var r=f.result;if(r){r.___id=++bm,r.done=!1;var a=r.continue.bind(r),i=r.continuePrimaryKey;i&&(i=i.bind(r));var s=r.advance.bind(r),o=function(){throw new Error("Cursor not stopped")};r.trans=n,r.stop=r.continue=r.continuePrimaryKey=r.advance=function(){throw new Error("Cursor not started")},r.fail=uf(l),r.next=function(){var e=this,t=1;return this.start((function(){return t--?e.continue():e.stop()})).then((function(){return e}))},r.start=function(e){var t=new Promise((function(e,t){e=uf(e),f.onerror=pm(t),r.fail=t,r.stop=function(t){r.stop=r.continue=r.continuePrimaryKey=r.advance=o,e(t)}})),n=function(){if(f.result)try{e()}catch(e){r.fail(e)}else r.done=!0,r.start=function(){throw new Error("Cursor behind last entry")},r.stop()};return f.onsuccess=uf((function(e){f.onsuccess=n,n()})),r.continue=a,r.continuePrimaryKey=i,r.advance=s,n(),t},e(r)}else e(null)}),l)}))},count:function(e){var n=e.query,a=e.trans,i=n.index,s=n.range;return new Promise((function(e,n){var o=a.objectStore(t),l=i.isPrimaryKey?o:o.index(i.name),c=r(s),u=c?l.count(c):l.count();u.onsuccess=uf((function(t){return e(t.target.result)})),u.onerror=pm(n)}))}}}(e)})),l={};return o.forEach((function(e){return l[e.name]=e})),{stack:"dbcore",transaction:e.transaction.bind(e),table:function(e){if(!l[e])throw new Error("Table '"+e+"' not found");return l[e]},MIN_KEY:-1/0,MAX_KEY:gm(t),schema:i}}function Em(e,t,n,r){var a=n.IDBKeyRange;return n.indexedDB,{dbcore:function(e,t){return t.reduce((function(e,t){var n=t.create;return yd(yd({},e),n(e))}),e)}(wm(t,a,r),e.dbcore)}}function km(e,t){var n=e._novip,r=t.db,a=Em(n._middlewares,r,n._deps,t);n.core=a.dbcore,n.tables.forEach((function(e){var t=e.name;n.core.schema.tables.some((function(e){return e.name===t}))&&(e.core=n.core.table(t),n[t]instanceof n.Table&&(n[t].core=e.core))}))}function Tm(e,t,n,r){var a=e._novip;n.forEach((function(e){var n=r[e];t.forEach((function(t){var r=xd(t,e);(!r||"value"in r&&void 0===r.value)&&(t===a.Transaction.prototype||t instanceof a.Transaction?Id(t,e,{get:function(){return this.table(e)},set:function(t){Cd(this,e,{value:t,writable:!0,configurable:!0,enumerable:!0})}}):t[e]=new a.Table(e,n))}))}))}function Cm(e,t){var n=e._novip;t.forEach((function(e){for(var t in e)e[t]instanceof n.Table&&delete e[t]}))}function Im(e,t){return e._cfg.version-t._cfg.version}function Am(e,t,n,r){var a=e._dbSchema,i=e._createTransaction("readwrite",e._storeNames,a);i.create(n),i._completion.catch(r);var s=i._reject.bind(i),o=Vh.transless||Vh;yf((function(){Vh.trans=i,Vh.transless=o,0===t?(_d(a).forEach((function(e){xm(n,e,a[e].primKey,a[e].indexes)})),km(e,n),Jh.follow((function(){return e.on.populate.fire(i)})).catch(s)):function(e,t,n,r){var a=e._novip,i=[],s=a._versions,o=a._dbSchema=Rm(a,a.idbdb,r),l=!1;function c(){return i.length?Jh.resolve(i.shift()(n.idbtrans)).then(c):Jh.resolve()}return s.filter((function(e){return e._cfg.version>=t})).forEach((function(e){i.push((function(){var i=o,s=e._cfg.dbschema;Dm(a,i,r),Dm(a,s,r),o=a._dbSchema=s;var c=Om(i,s);c.add.forEach((function(e){xm(r,e[0],e[1].primKey,e[1].indexes)})),c.change.forEach((function(e){if(e.recreate)throw new mh.Upgrade("Not yet support for changing primary key");var t=r.objectStore(e.name);e.add.forEach((function(e){return Nm(t,e)})),e.change.forEach((function(e){t.deleteIndex(e.name),Nm(t,e)})),e.del.forEach((function(e){return t.deleteIndex(e)}))}));var u=e._cfg.contentUpgrade;if(u&&e._cfg.version>t){km(a,r),n._memoizedTables={},l=!0;var p=jd(s);c.del.forEach((function(e){p[e]=i[e]})),Cm(a,[a.Transaction.prototype]),Tm(a,[a.Transaction.prototype],_d(p),p),n.schema=p;var d,h=Zd(u);h&&gf();var f=Jh.follow((function(){if((d=u(n))&&h){var e=vf.bind(null,null);d.then(e,e)}}));return d&&"function"==typeof d.then?Jh.resolve(d):f.then((function(){return d}))}})),i.push((function(t){l&&Hf||function(e,t){[].slice.call(t.db.objectStoreNames).forEach((function(n){return null==e[n]&&t.db.deleteObjectStore(n)}))}(e._cfg.dbschema,t);Cm(a,[a.Transaction.prototype]),Tm(a,[a.Transaction.prototype],a._storeNames,a._dbSchema),n.schema=a._dbSchema}))})),c().then((function(){var e,t;t=r,_d(e=o).forEach((function(n){t.db.objectStoreNames.contains(n)||xm(t,n,e[n].primKey,e[n].indexes)}))}))}(e,t,i,n).catch(s)}))}function Om(e,t){var n,r={del:[],add:[],change:[]};for(n in e)t[n]||r.del.push(n);for(n in t){var a=e[n],i=t[n];if(a){var s={name:n,def:i,recreate:!1,del:[],add:[],change:[]};if(""+(a.primKey.keyPath||"")!=""+(i.primKey.keyPath||"")||a.primKey.auto!==i.primKey.auto&&!Df)s.recreate=!0,r.change.push(s);else{var o=a.idxByName,l=i.idxByName,c=void 0;for(c in o)l[c]||s.del.push(c);for(c in l){var u=o[c],p=l[c];u?u.src!==p.src&&s.change.push(p):s.add.push(p)}(s.del.length>0||s.add.length>0||s.change.length>0)&&r.change.push(s)}}else r.add.push([n,i])}return r}function xm(e,t,n,r){var a=e.db.createObjectStore(t,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});return r.forEach((function(e){return Nm(a,e)})),a}function Nm(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function Rm(e,t,n){var r={};return Rd(t.objectStoreNames,0).forEach((function(e){for(var t=n.objectStore(e),a=t.keyPath,i=mm(Sm(a),a||"",!1,!1,!!t.autoIncrement,a&&"string"!=typeof a,!0),s=[],o=0;o<t.indexNames.length;++o){var l=t.index(t.indexNames[o]);a=l.keyPath;var c=mm(l.name,a,!!l.unique,!!l.multiEntry,!1,a&&"string"!=typeof a,!1);s.push(c)}r[e]=ym(e,i,s)})),r}function Dm(e,t,n){for(var r=e._novip,a=n.db.objectStoreNames,i=0;i<a.length;++i){var s=a[i],o=n.objectStore(s);r._hasGetAll="getAll"in o;for(var l=0;l<o.indexNames.length;++l){var c=o.indexNames[l],u=o.index(c).keyPath,p="string"==typeof u?u:"["+Rd(u).join("+")+"]";if(t[s]){var d=t[s].idxByName[p];d&&(d.name=c,delete t[s].idxByName[p],t[s].idxByName[c]=d)}}}"undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&vd.WorkerGlobalScope&&vd instanceof vd.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(r._hasGetAll=!1)}var Hm=function(){function e(){}return e.prototype._parseStoresSpec=function(e,t){_d(e).forEach((function(n){if(null!==e[n]){var r=e[n].split(",").map((function(e,t){var n=(e=e.trim()).replace(/([&*]|\+\+)/g,""),r=/^\[/.test(n)?n.match(/^\[(.*)\]$/)[1].split("+"):n;return mm(n,r||null,/\&/.test(e),/\*/.test(e),/\+\+/.test(e),bd(r),0===t)})),a=r.shift();if(a.multi)throw new mh.Schema("Primary key cannot be multi-valued");r.forEach((function(e){if(e.auto)throw new mh.Schema("Only primary key can be marked as autoIncrement (++)");if(!e.keyPath)throw new mh.Schema("Index must have a name and cannot be an empty string")})),t[n]=ym(n,a,r)}}))},e.prototype.stores=function(e){var t=this.db;this._cfg.storesSource=this._cfg.storesSource?Pd(this._cfg.storesSource,e):e;var n=t._versions,r={},a={};return n.forEach((function(e){Pd(r,e._cfg.storesSource),a=e._cfg.dbschema={},e._parseStoresSpec(r,a)})),t._dbSchema=a,Cm(t,[t._allTables,t,t.Transaction.prototype]),Tm(t,[t._allTables,t,t.Transaction.prototype,this._cfg.tables],_d(a),a),t._storeNames=_d(a),this},e.prototype.upgrade=function(e){return this._cfg.contentUpgrade=Th(this._cfg.contentUpgrade||gh,e),this},e}();function Fm(e,t){var n=e._dbNamesDB;return n||(n=e._dbNamesDB=new oS("__dbnames",{addons:[],indexedDB:e,IDBKeyRange:t})).version(1).stores({dbnames:"name"}),n.table("dbnames")}function Gm(e){return e&&"function"==typeof e.databases}function Um(e,t){var n=e.indexedDB,r=e.IDBKeyRange;!Gm(n)&&"__dbnames"!==t&&Fm(n,r).delete(t).catch(gh)}function Lm(e){return yf((function(){return Vh.letThrough=!0,e()}))}function jm(){var e;return!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise((function(t){var n=function(){return indexedDB.databases().finally(t)};e=setInterval(n,100),n()})).finally((function(){return clearInterval(e)})):Promise.resolve()}function Mm(e){var t=e._state,n=e._deps.indexedDB;if(t.isBeingOpened||e.idbdb)return t.dbReadyPromise.then((function(){return t.dbOpenError?Of(t.dbOpenError):e}));eh&&(t.openCanceller._stackHolder=ah()),t.isBeingOpened=!0,t.dbOpenError=null,t.openComplete=!1;var r=t.openCanceller;function a(){if(t.openCanceller!==r)throw new mh.DatabaseClosed("db.open() was cancelled")}var i=t.dbReadyResolve,s=null,o=!1;return Jh.race([r,("undefined"==typeof navigator?Jh.resolve():jm()).then((function(){return new Jh((function(r,i){if(a(),!n)throw new mh.MissingAPI;var l=e.name,c=t.autoSchema?n.open(l):n.open(l,Math.round(10*e.verno));if(!c)throw new mh.MissingAPI;c.onerror=pm(i),c.onblocked=uf(e._fireOnBlocked),c.onupgradeneeded=uf((function(r){if(s=c.transaction,t.autoSchema&&!e._options.allowEmptyDB){c.onerror=dm,s.abort(),c.result.close();var a=n.deleteDatabase(l);a.onsuccess=a.onerror=uf((function(){i(new mh.NoSuchDatabase("Database "+l+" doesnt exist"))}))}else{s.onerror=pm(i);var u=r.oldVersion>Math.pow(2,62)?0:r.oldVersion;o=u<1,e._novip.idbdb=c.result,Am(e,u/10,s,i)}}),i),c.onsuccess=uf((function(){s=null;var n,a=e._novip.idbdb=c.result,i=Rd(a.objectStoreNames);if(i.length>0)try{var u=a.transaction(1===(n=i).length?n[0]:n,"readonly");t.autoSchema?function(e,t,n){var r=e._novip;r.verno=t.version/10;var a=r._dbSchema=Rm(0,t,n);r._storeNames=Rd(t.objectStoreNames,0),Tm(r,[r._allTables],_d(a),a)}(e,a,u):(Dm(e,e._dbSchema,u),function(e,t){var n=Om(Rm(0,e.idbdb,t),e._dbSchema);return!(n.add.length||n.change.some((function(e){return e.add.length||e.change.length})))}(e,u)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),km(e,u)}catch(e){}Rf.push(e),a.onversionchange=uf((function(n){t.vcFired=!0,e.on("versionchange").fire(n)})),a.onclose=uf((function(t){e.on("close").fire(t)})),o&&function(e,t){var n=e.indexedDB,r=e.IDBKeyRange;!Gm(n)&&"__dbnames"!==t&&Fm(n,r).put({name:t}).catch(gh)}(e._deps,l),r()}),i)}))}))]).then((function(){return a(),t.onReadyBeingFired=[],Jh.resolve(Lm((function(){return e.on.ready.fire(e.vip)}))).then((function n(){if(t.onReadyBeingFired.length>0){var r=t.onReadyBeingFired.reduce(Th,gh);return t.onReadyBeingFired=[],Jh.resolve(Lm((function(){return r(e.vip)}))).then(n)}}))})).finally((function(){t.onReadyBeingFired=null,t.isBeingOpened=!1})).then((function(){return e})).catch((function(n){t.dbOpenError=n;try{s&&s.abort()}catch(e){}return r===t.openCanceller&&e._close(),Of(n)})).finally((function(){t.openComplete=!0,i()}))}function Bm(e){var t=function(t){return e.next(t)},n=a(t),r=a((function(t){return e.throw(t)}));function a(e){return function(t){var a=e(t),i=a.value;return a.done?i:i&&"function"==typeof i.then?i.then(n,r):bd(i)?Promise.all(i).then(n,r):n(i)}}return a(t)()}function Km(e,t,n){var r=arguments.length;if(r<2)throw new mh.InvalidArgument("Too few arguments");for(var a=new Array(r-1);--r;)a[r-1]=arguments[r];n=a.pop();var i=Bd(a);return[e,i,n]}function qm(e,t,n,r,a){return Jh.resolve().then((function(){var i=Vh.transless||Vh,s=e._createTransaction(t,n,e._dbSchema,r),o={trans:s,transless:i};if(r)s.idbtrans=r.idbtrans;else try{s.create(),e._state.PR1398_maxLoop=3}catch(r){return r.name===hh.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then((function(){return qm(e,t,n,null,a)}))):Of(r)}var l,c=Zd(a);c&&gf();var u=Jh.follow((function(){if(l=a.call(s,s))if(c){var e=vf.bind(null,null);l.then(e,e)}else"function"==typeof l.next&&"function"==typeof l.throw&&(l=Bm(l))}),o);return(l&&"function"==typeof l.then?Jh.resolve(l).then((function(e){return s.active?e:Of(new mh.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))})):u.then((function(){return l}))).then((function(e){return r&&s._resolve(),s._completion.then((function(){return e}))})).catch((function(e){return s._reject(e),Of(e)}))}))}function Vm(e,t,n){for(var r=bd(e)?e.slice():[e],a=0;a<n;++a)r.push(t);return r}var $m={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(e){return yd(yd({},e),{table:function(t){var n=e.table(t),r=n.schema,a={},i=[];function s(e,t,n){var r=Pm(e),o=a[r]=a[r]||[],l=null==e?0:"string"==typeof e?1:e.length,c=t>0,u=yd(yd({},n),{isVirtual:c,keyTail:t,keyLength:l,extractKey:vm(e),unique:!c&&n.unique});(o.push(u),u.isPrimaryKey||i.push(u),l>1)&&s(2===l?e[0]:e.slice(0,l-1),t+1,n);return o.sort((function(e,t){return e.keyTail-t.keyTail})),u}var o=s(r.primaryKey.keyPath,0,r.primaryKey);a[":id"]=[o];for(var l=0,c=r.indexes;l<c.length;l++){var u=c[l];s(u.keyPath,0,u)}function p(t,n){return{type:1===t.type?2:t.type,lower:Vm(t.lower,t.lowerOpen?e.MAX_KEY:e.MIN_KEY,n),lowerOpen:!0,upper:Vm(t.upper,t.upperOpen?e.MIN_KEY:e.MAX_KEY,n),upperOpen:!0}}function d(e){var t=e.query.index;return t.isVirtual?yd(yd({},e),{query:{index:t,range:p(e.query.range,t.keyTail)}}):e}return yd(yd({},n),{schema:yd(yd({},r),{primaryKey:o,indexes:i,getIndexByKeyPath:function(e){var t=a[Pm(e)];return t&&t[0]}}),count:function(e){return n.count(d(e))},query:function(e){return n.query(d(e))},openCursor:function(t){var r=t.query.index,a=r.keyTail,i=r.isVirtual,s=r.keyLength;if(!i)return n.openCursor(t);return n.openCursor(d(t)).then((function(n){return n&&function(n){return Object.create(n,{continue:{value:function(r){null!=r?n.continue(Vm(r,t.reverse?e.MAX_KEY:e.MIN_KEY,a)):t.unique?n.continue(n.key.slice(0,s).concat(t.reverse?e.MIN_KEY:e.MAX_KEY,a)):n.continue()}},continuePrimaryKey:{value:function(t,r){n.continuePrimaryKey(Vm(t,e.MAX_KEY,a),r)}},primaryKey:{get:function(){return n.primaryKey}},key:{get:function(){var e=n.key;return 1===s?e[0]:e.slice(0,s)}},value:{get:function(){return n.value}}})}(n)}))}})}})}};function Wm(e,t,n,r){return n=n||{},r=r||"",_d(e).forEach((function(a){if(kd(t,a)){var i=e[a],s=t[a];if("object"==typeof i&&"object"==typeof s&&i&&s){var o=zd(i);o!==zd(s)?n[r+a]=t[a]:"Object"===o?Wm(i,s,n,r+a+"."):i!==s&&(n[r+a]=t[a])}else i!==s&&(n[r+a]=t[a])}else n[r+a]=void 0})),_d(t).forEach((function(a){kd(e,a)||(n[r+a]=t[a])})),n}var zm={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(e){return yd(yd({},e),{table:function(t){var n=e.table(t),r=n.schema.primaryKey;return yd(yd({},n),{mutate:function(e){var a=Vh.trans,i=a.table(t).hook,s=i.deleting,o=i.creating,l=i.updating;switch(e.type){case"add":if(o.fire===gh)break;return a._promise("readwrite",(function(){return c(e)}),!0);case"put":if(o.fire===gh&&l.fire===gh)break;return a._promise("readwrite",(function(){return c(e)}),!0);case"delete":if(s.fire===gh)break;return a._promise("readwrite",(function(){return c(e)}),!0);case"deleteRange":if(s.fire===gh)break;return a._promise("readwrite",(function(){return function(e){return function e(t,a,i){return n.query({trans:t,values:!1,query:{index:r,range:a},limit:i}).then((function(n){var r=n.result;return c({type:"delete",keys:r,trans:t}).then((function(n){return n.numFailures>0?Promise.reject(n.failures[0]):r.length<i?{failures:[],numFailures:0,lastResult:void 0}:e(t,yd(yd({},a),{lower:r[r.length-1],lowerOpen:!0}),i)}))}))}(e.trans,e.range,1e4)}(e)}),!0)}return n.mutate(e);function c(e){var t=Vh.trans,a=e.keys||function(e,t){return"delete"===t.type?t.keys:t.keys||t.values.map(e.extractKey)}(r,e);if(!a)throw new Error("Keys missing");return"delete"!==(e="add"===e.type||"put"===e.type?yd(yd({},e),{keys:a}):yd({},e)).type&&(e.values=gd([],e.values,!0)),e.keys&&(e.keys=gd([],e.keys,!0)),function(e,t,n){return"add"===t.type?Promise.resolve([]):e.getMany({trans:t.trans,keys:n,cache:"immutable"})}(n,e,a).then((function(i){var c=a.map((function(n,a){var c=i[a],u={onerror:null,onsuccess:null};if("delete"===e.type)s.fire.call(u,n,c,t);else if("add"===e.type||void 0===c){var p=o.fire.call(u,n,e.values[a],t);null==n&&null!=p&&(n=p,e.keys[a]=n,r.outbound||Ld(e.values[a],r.keyPath,n))}else{var d=Wm(c,e.values[a]),h=l.fire.call(u,d,n,c,t);if(h){var f=e.values[a];Object.keys(h).forEach((function(e){kd(f,e)?f[e]=h[e]:Ld(f,e,h[e])}))}}return u}));return n.mutate(e).then((function(t){for(var n=t.failures,r=t.results,s=t.numFailures,o=t.lastResult,l=0;l<a.length;++l){var u=r?r[l]:a[l],p=c[l];null==u?p.onerror&&p.onerror(n[l]):p.onsuccess&&p.onsuccess("put"===e.type&&i[l]?e.values[l]:u)}return{failures:n,results:r,numFailures:s,lastResult:o}})).catch((function(e){return c.forEach((function(t){return t.onerror&&t.onerror(e)})),Promise.reject(e)}))}))}}})}})}};function Jm(e,t,n){try{if(!t)return null;if(t.keys.length<e.length)return null;for(var r=[],a=0,i=0;a<t.keys.length&&i<e.length;++a)0===Qf(t.keys[a],e[i])&&(r.push(n?$d(t.values[a]):t.values[a]),++i);return r.length===e.length?r:null}catch(e){return null}}var Xm,Qm={stack:"dbcore",level:-1,create:function(e){return{table:function(t){var n=e.table(t);return yd(yd({},n),{getMany:function(e){if(!e.cache)return n.getMany(e);var t=Jm(e.keys,e.trans._cache,"clone"===e.cache);return t?Jh.resolve(t):n.getMany(e).then((function(t){return e.trans._cache={keys:e.keys,values:"clone"===e.cache?$d(t):t},t}))},mutate:function(e){return"add"!==e.type&&(e.trans._cache=null),n.mutate(e)}})}}}};function Ym(e){return!("from"in e)}var Zm=function(e,t){if(!this){var n=new Zm;return e&&"d"in e&&Pd(n,e),n}Pd(this,arguments.length?{d:1,from:e,to:arguments.length>1?t:e}:{d:0})};function eS(e,t,n){var r=Qf(t,n);if(!isNaN(r)){if(r>0)throw RangeError();if(Ym(e))return Pd(e,{from:t,to:n,d:1});var a=e.l,i=e.r;if(Qf(n,e.from)<0)return a?eS(a,t,n):e.l={from:t,to:n,d:1,l:null,r:null},rS(e);if(Qf(t,e.to)>0)return i?eS(i,t,n):e.r={from:t,to:n,d:1,l:null,r:null},rS(e);Qf(t,e.from)<0&&(e.from=t,e.l=null,e.d=i?i.d+1:1),Qf(n,e.to)>0&&(e.to=n,e.r=null,e.d=e.l?e.l.d+1:1);var s=!e.r;a&&!e.l&&tS(e,a),i&&s&&tS(e,i)}}function tS(e,t){Ym(t)||function e(t,n){var r=n.from,a=n.to,i=n.l,s=n.r;eS(t,r,a),i&&e(t,i),s&&e(t,s)}(e,t)}function nS(e){var t=Ym(e)?null:{s:0,n:e};return{next:function(e){for(var n=arguments.length>0;t;)switch(t.s){case 0:if(t.s=1,n)for(;t.n.l&&Qf(e,t.n.from)<0;)t={up:t,n:t.n.l,s:1};else for(;t.n.l;)t={up:t,n:t.n.l,s:1};case 1:if(t.s=2,!n||Qf(e,t.n.to)<=0)return{value:t.n,done:!1};case 2:if(t.n.r){t.s=3,t={up:t,n:t.n.r,s:0};continue}case 3:t=t.up}return{done:!0}}}}function rS(e){var t,n,r=((null===(t=e.r)||void 0===t?void 0:t.d)||0)-((null===(n=e.l)||void 0===n?void 0:n.d)||0),a=r>1?"r":r<-1?"l":"";if(a){var i="r"===a?"l":"r",s=yd({},e),o=e[a];e.from=o.from,e.to=o.to,e[a]=o[a],s[a]=o[i],e[i]=s,s.d=aS(s)}e.d=aS(e)}function aS(e){var t=e.r,n=e.l;return(t?n?Math.max(t.d,n.d):t.d:n?n.d:0)+1}Td(Zm.prototype,((Xm={add:function(e){return tS(this,e),this},addKey:function(e){return eS(this,e,e),this},addKeys:function(e){var t=this;return e.forEach((function(e){return eS(t,e,e)})),this}})[Jd]=function(){return nS(this)},Xm));var iS={stack:"dbcore",level:0,create:function(e){var t=e.schema.name,n=new Zm(e.MIN_KEY,e.MAX_KEY);return yd(yd({},e),{table:function(r){var a=e.table(r),i=a.schema,s=i.primaryKey,o=s.extractKey,l=s.outbound,c=yd(yd({},a),{mutate:function(e){var s=e.trans,o=s.mutatedParts||(s.mutatedParts={}),l=function(e){var n="idb://"+t+"/"+r+"/"+e;return o[n]||(o[n]=new Zm)},c=l(""),u=l(":dels"),p=e.type,d="deleteRange"===e.type?[e.range]:"delete"===e.type?[e.keys]:e.values.length<50?[[],e.values]:[],h=d[0],f=d[1],m=e.trans._cache;return a.mutate(e).then((function(e){if(bd(h)){"delete"!==p&&(h=e.results),c.addKeys(h);var t=Jm(h,m);t||"add"===p||u.addKeys(h),(t||f)&&function(e,t,n,r){t.indexes.forEach((function(t){var a=e(t.name||"");function i(e){return null!=e?t.extractKey(e):null}var s=function(e){return t.multiEntry&&bd(e)?e.forEach((function(e){return a.addKey(e)})):a.addKey(e)};(n||r).forEach((function(e,t){var a=n&&i(n[t]),o=r&&i(r[t]);0!==Qf(a,o)&&(null!=a&&s(a),null!=o&&s(o))}))}))}(l,i,t,f)}else if(h){var r={from:h.lower,to:h.upper};u.add(r),c.add(r)}else c.add(n),u.add(n),i.indexes.forEach((function(e){return l(e.name).add(n)}));return e}))}}),u=function(t){var n,r,a=t.query,i=a.index,s=a.range;return[i,new Zm(null!==(n=s.lower)&&void 0!==n?n:e.MIN_KEY,null!==(r=s.upper)&&void 0!==r?r:e.MAX_KEY)]},p={get:function(e){return[s,new Zm(e.key)]},getMany:function(e){return[s,(new Zm).addKeys(e.keys)]},count:u,query:u,openCursor:u};return _d(p).forEach((function(e){c[e]=function(i){var s=Vh.subscr;if(s){var c=function(e){var n="idb://"+t+"/"+r+"/"+e;return s[n]||(s[n]=new Zm)},u=c(""),d=c(":dels"),h=p[e](i),f=h[0],m=h[1];if(c(f.name||"").add(m),!f.isPrimaryKey){if("count"!==e){var S="query"===e&&l&&i.values&&a.query(yd(yd({},i),{values:!1}));return a[e].apply(this,arguments).then((function(t){if("query"===e){if(l&&i.values)return S.then((function(e){var n=e.result;return u.addKeys(n),t}));var n=i.values?t.result.map(o):t.result;i.values?u.addKeys(n):d.addKeys(n)}else if("openCursor"===e){var r=t,a=i.values;return r&&Object.create(r,{key:{get:function(){return d.addKey(r.primaryKey),r.key}},primaryKey:{get:function(){var e=r.primaryKey;return d.addKey(e),e}},value:{get:function(){return a&&u.addKey(r.primaryKey),r.value}}})}return t}))}d.add(n)}}return a[e].apply(this,arguments)}})),c}})}};var sS,oS=function(){function e(t,n){var r=this;this._middlewares={},this.verno=0;var a=e.dependencies;this._options=n=yd({addons:e.addons,autoOpen:!0,indexedDB:a.indexedDB,IDBKeyRange:a.IDBKeyRange},n),this._deps={indexedDB:n.indexedDB,IDBKeyRange:n.IDBKeyRange};var i=n.addons;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;var s,o={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:gh,dbReadyPromise:null,cancelOpen:gh,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};o.dbReadyPromise=new Jh((function(e){o.dbReadyResolve=e})),o.openCanceller=new Jh((function(e,t){o.cancelOpen=t})),this._state=o,this.name=t,this.on=Bf(this,"populate","blocked","versionchange","close",{ready:[Th,gh]}),this.on.ready.subscribe=Dd(this.on.ready.subscribe,(function(t){return function(n,a){e.vip((function(){var e=r._state;if(e.openComplete)e.dbOpenError||Jh.resolve().then(n),a&&t(n);else if(e.onReadyBeingFired)e.onReadyBeingFired.push(n),a&&t(n);else{t(n);var i=r;a||t((function e(){i.on.ready.unsubscribe(n),i.on.ready.unsubscribe(e)}))}}))}})),this.Collection=(s=this,Kf(em.prototype,(function(e,t){this.db=s;var n=Lf,r=null;if(t)try{n=t()}catch(e){r=e}var a=e._ctx,i=a.table,o=i.hook.reading.fire;this._ctx={table:i,index:a.index,isPrimKey:!a.index||i.schema.primKey.keyPath&&a.index===i.schema.primKey.name,range:n,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:r,or:a.or,valueMapper:o!==vh?o:null}}))),this.Table=function(e){return Kf(Mf.prototype,(function(t,n,r){this.db=e,this._tx=r,this.name=t,this.schema=n,this.hook=e._allTables[t]?e._allTables[t].hook:Bf(null,{creating:[Ph,gh],reading:[_h,vh],updating:[Eh,gh],deleting:[wh,gh]})}))}(this),this.Transaction=function(e){return Kf(fm.prototype,(function(t,n,r,a,i){var s=this;this.db=e,this.mode=t,this.storeNames=n,this.schema=r,this.chromeTransactionDurability=a,this.idbtrans=null,this.on=Bf(this,"complete","error","abort"),this.parent=i||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new Jh((function(e,t){s._resolve=e,s._reject=t})),this._completion.then((function(){s.active=!1,s.on.complete.fire()}),(function(e){var t=s.active;return s.active=!1,s.on.error.fire(e),s.parent?s.parent._reject(e):t&&s.idbtrans&&s.idbtrans.abort(),Of(e)}))}))}(this),this.Version=function(e){return Kf(Hm.prototype,(function(t){this.db=e,this._cfg={version:t,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}}))}(this),this.WhereClause=function(e){return Kf(um.prototype,(function(t,n,r){this.db=e,this._ctx={table:t,index:":id"===n?null:n,or:r};var a=e._deps.indexedDB;if(!a)throw new mh.MissingAPI;this._cmp=this._ascending=a.cmp.bind(a),this._descending=function(e,t){return a.cmp(t,e)},this._max=function(e,t){return a.cmp(e,t)>0?e:t},this._min=function(e,t){return a.cmp(e,t)<0?e:t},this._IDBKeyRange=e._deps.IDBKeyRange}))}(this),this.on("versionchange",(function(e){e.newVersion>0?console.warn("Another connection wants to upgrade database '"+r.name+"'. Closing db now to resume the upgrade."):console.warn("Another connection wants to delete database '"+r.name+"'. Closing db now to resume the delete request."),r.close()})),this.on("blocked",(function(e){!e.newVersion||e.newVersion<e.oldVersion?console.warn("Dexie.delete('"+r.name+"') was blocked"):console.warn("Upgrade '"+r.name+"' blocked by other connection holding version "+e.oldVersion/10)})),this._maxKey=gm(n.IDBKeyRange),this._createTransaction=function(e,t,n,a){return new r.Transaction(e,t,n,r._options.chromeTransactionDurability,a)},this._fireOnBlocked=function(e){r.on("blocked").fire(e),Rf.filter((function(e){return e.name===r.name&&e!==r&&!e._state.vcFired})).map((function(t){return t.on("versionchange").fire(e)}))},this.use($m),this.use(zm),this.use(iS),this.use(Qm),this.vip=Object.create(this,{_vip:{value:!0}}),i.forEach((function(e){return e(r)}))}return e.prototype.version=function(e){if(isNaN(e)||e<.1)throw new mh.Type("Given version is not a positive number");if(e=Math.round(10*e)/10,this.idbdb||this._state.isBeingOpened)throw new mh.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,e);var t=this._versions,n=t.filter((function(t){return t._cfg.version===e}))[0];return n||(n=new this.Version(e),t.push(n),t.sort(Im),n.stores({}),this._state.autoSchema=!1,n)},e.prototype._whenReady=function(e){var t=this;return this.idbdb&&(this._state.openComplete||Vh.letThrough||this._vip)?e():new Jh((function(e,n){if(t._state.openComplete)return n(new mh.DatabaseClosed(t._state.dbOpenError));if(!t._state.isBeingOpened){if(!t._options.autoOpen)return void n(new mh.DatabaseClosed);t.open().catch(gh)}t._state.dbReadyPromise.then(e,n)})).then(e)},e.prototype.use=function(e){var t=e.stack,n=e.create,r=e.level,a=e.name;a&&this.unuse({stack:t,name:a});var i=this._middlewares[t]||(this._middlewares[t]=[]);return i.push({stack:t,create:n,level:null==r?10:r,name:a}),i.sort((function(e,t){return e.level-t.level})),this},e.prototype.unuse=function(e){var t=e.stack,n=e.name,r=e.create;return t&&this._middlewares[t]&&(this._middlewares[t]=this._middlewares[t].filter((function(e){return r?e.create!==r:!!n&&e.name!==n}))),this},e.prototype.open=function(){return Mm(this)},e.prototype._close=function(){var e=this._state,t=Rf.indexOf(this);if(t>=0&&Rf.splice(t,1),this.idbdb){try{this.idbdb.close()}catch(e){}this._novip.idbdb=null}e.dbReadyPromise=new Jh((function(t){e.dbReadyResolve=t})),e.openCanceller=new Jh((function(t,n){e.cancelOpen=n}))},e.prototype.close=function(){this._close();var e=this._state;this._options.autoOpen=!1,e.dbOpenError=new mh.DatabaseClosed,e.isBeingOpened&&e.cancelOpen(e.dbOpenError)},e.prototype.delete=function(){var e=this,t=arguments.length>0,n=this._state;return new Jh((function(r,a){var i=function(){e.close();var t=e._deps.indexedDB.deleteDatabase(e.name);t.onsuccess=uf((function(){Um(e._deps,e.name),r()})),t.onerror=pm(a),t.onblocked=e._fireOnBlocked};if(t)throw new mh.InvalidArgument("Arguments not allowed in db.delete()");n.isBeingOpened?n.dbReadyPromise.then(i):i()}))},e.prototype.backendDB=function(){return this.idbdb},e.prototype.isOpen=function(){return null!==this.idbdb},e.prototype.hasBeenClosed=function(){var e=this._state.dbOpenError;return e&&"DatabaseClosed"===e.name},e.prototype.hasFailed=function(){return null!==this._state.dbOpenError},e.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(e.prototype,"tables",{get:function(){var e=this;return _d(this._allTables).map((function(t){return e._allTables[t]}))},enumerable:!1,configurable:!0}),e.prototype.transaction=function(){var e=Km.apply(this,arguments);return this._transaction.apply(this,e)},e.prototype._transaction=function(e,t,n){var r=this,a=Vh.trans;a&&a.db===this&&-1===e.indexOf("!")||(a=null);var i,s,o=-1!==e.indexOf("?");e=e.replace("!","").replace("?","");try{if(s=t.map((function(e){var t=e instanceof r.Table?e.name:e;if("string"!=typeof t)throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return t})),"r"==e||"readonly"===e)i="readonly";else{if("rw"!=e&&"readwrite"!=e)throw new mh.InvalidArgument("Invalid transaction mode: "+e);i="readwrite"}if(a){if("readonly"===a.mode&&"readwrite"===i){if(!o)throw new mh.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");a=null}a&&s.forEach((function(e){if(a&&-1===a.storeNames.indexOf(e)){if(!o)throw new mh.SubTransaction("Table "+e+" not included in parent transaction.");a=null}})),o&&a&&!a.active&&(a=null)}}catch(e){return a?a._promise(null,(function(t,n){n(e)})):Of(e)}var l=qm.bind(null,this,i,s,a,n);return a?a._promise(i,l,"lock"):Vh.trans?kf(Vh.transless,(function(){return r._whenReady(l)})):this._whenReady(l)},e.prototype.table=function(e){if(!kd(this._allTables,e))throw new mh.InvalidTable("Table "+e+" does not exist");return this._allTables[e]},e}(),lS="undefined"!=typeof Symbol&&"observable"in Symbol?Symbol.observable:"@@observable",cS=function(){function e(e){this._subscribe=e}return e.prototype.subscribe=function(e,t,n){return this._subscribe(e&&"function"!=typeof e?e:{next:e,error:t,complete:n})},e.prototype[lS]=function(){return this},e}();function uS(e,t){return _d(t).forEach((function(n){tS(e[n]||(e[n]=new Zm),t[n])})),e}try{sS={indexedDB:vd.indexedDB||vd.mozIndexedDB||vd.webkitIndexedDB||vd.msIndexedDB,IDBKeyRange:vd.IDBKeyRange||vd.webkitIDBKeyRange}}catch(e){sS={indexedDB:null,IDBKeyRange:null}}var pS=oS;function dS(e){var t=hS;try{hS=!0,hm.storagemutated.fire(e)}finally{hS=t}}Td(pS,yd(yd({},yh),{delete:function(e){return new pS(e,{addons:[]}).delete()},exists:function(e){return new pS(e,{addons:[]}).open().then((function(e){return e.close(),!0})).catch("NoSuchDatabaseError",(function(){return!1}))},getDatabaseNames:function(e){try{return function(e){var t=e.indexedDB,n=e.IDBKeyRange;return Gm(t)?Promise.resolve(t.databases()).then((function(e){return e.map((function(e){return e.name})).filter((function(e){return"__dbnames"!==e}))})):Fm(t,n).toCollection().primaryKeys()}(pS.dependencies).then(e)}catch(e){return Of(new mh.MissingAPI)}},defineClass:function(){return function(e){Pd(this,e)}},ignoreTransaction:function(e){return Vh.trans?kf(Vh.transless,e):e()},vip:Lm,async:function(e){return function(){try{var t=Bm(e.apply(this,arguments));return t&&"function"==typeof t.then?t:Jh.resolve(t)}catch(e){return Of(e)}}},spawn:function(e,t,n){try{var r=Bm(e.apply(n,t||[]));return r&&"function"==typeof r.then?r:Jh.resolve(r)}catch(e){return Of(e)}},currentTransaction:{get:function(){return Vh.trans||null}},waitFor:function(e,t){var n=Jh.resolve("function"==typeof e?pS.ignoreTransaction(e):e).timeout(t||6e4);return Vh.trans?Vh.trans.waitFor(n):n},Promise:Jh,debug:{get:function(){return eh},set:function(e){th(e,"dexie"===e?function(){return!0}:Gf)}},derive:Ad,extend:Pd,props:Td,override:Dd,Events:Bf,on:hm,liveQuery:function(e){return new cS((function(t){var n=Zd(e);var r=!1,a={},i={},s={get closed(){return r},unsubscribe:function(){r=!0,hm.storagemutated.unsubscribe(u)}};t.start&&t.start(s);var o=!1,l=!1;function c(){return _d(i).some((function(e){return a[e]&&function(e,t){var n=nS(t),r=n.next();if(r.done)return!1;for(var a=r.value,i=nS(e),s=i.next(a.from),o=s.value;!r.done&&!s.done;){if(Qf(o.from,a.to)<=0&&Qf(o.to,a.from)>=0)return!0;Qf(a.from,o.from)<0?a=(r=n.next(o.from)).value:o=(s=i.next(a.from)).value}return!1}(a[e],i[e])}))}var u=function(e){uS(a,e),c()&&p()},p=function(){if(!o&&!r){a={};var d={},h=function(t){n&&gf();var r=function(){return yf(e,{subscr:t,trans:null})},a=Vh.trans?kf(Vh.transless,r):r();return n&&a.then(vf,vf),a}(d);l||(hm("storagemutated",u),l=!0),o=!0,Promise.resolve(h).then((function(e){o=!1,r||(c()?p():(a={},i=d,t.next&&t.next(e)))}),(function(e){o=!1,t.error&&t.error(e),s.unsubscribe()}))}};return p(),s}))},extendObservabilitySet:uS,getByKeyPath:Ud,setByKeyPath:Ld,delByKeyPath:function(e,t){"string"==typeof t?Ld(e,t,void 0):"length"in t&&[].map.call(t,(function(t){Ld(e,t,void 0)}))},shallowClone:jd,deepClone:$d,getObjectDiff:Wm,cmp:Qf,asap:Fd,minKey:-1/0,addons:[],connections:Rf,errnames:hh,dependencies:sS,semVer:"3.2.2",version:"3.2.2".split(".").map((function(e){return parseInt(e)})).reduce((function(e,t,n){return e+t/Math.pow(10,2*n)}))})),pS.maxKey=gm(pS.dependencies.IDBKeyRange),"undefined"!=typeof dispatchEvent&&"undefined"!=typeof addEventListener&&(hm("storagemutated",(function(e){var t;hS||(Df?(t=document.createEvent("CustomEvent")).initCustomEvent("x-storagemutated-1",!0,!0,e):t=new CustomEvent("x-storagemutated-1",{detail:e}),hS=!0,dispatchEvent(t),hS=!1)})),addEventListener("x-storagemutated-1",(function(e){var t=e.detail;hS||dS(t)})));var hS=!1;if("undefined"!=typeof BroadcastChannel){var fS=new BroadcastChannel("x-storagemutated-1");hm("storagemutated",(function(e){hS||fS.postMessage(e)})),fS.onmessage=function(e){e.data&&dS(e.data)}}else if("undefined"!=typeof self&&"undefined"!=typeof navigator){hm("storagemutated",(function(e){try{hS||("undefined"!=typeof localStorage&&localStorage.setItem("x-storagemutated-1",JSON.stringify({trig:Math.random(),changedParts:e})),"object"==typeof self.clients&&gd([],self.clients.matchAll({includeUncontrolled:!0}),!0).forEach((function(t){return t.postMessage({type:"x-storagemutated-1",changedParts:e})})))}catch(e){}})),"undefined"!=typeof addEventListener&&addEventListener("storage",(function(e){if("x-storagemutated-1"===e.key){var t=JSON.parse(e.newValue);t&&dS(t.changedParts)}}));var mS=self.document&&navigator.serviceWorker;mS&&mS.addEventListener("message",(function(e){var t=e.data;t&&"x-storagemutated-1"===t.type&&dS(t.changedParts)}))}Jh.rejectionMapper=function(e,t){if(!e||e instanceof ch||e instanceof TypeError||e instanceof SyntaxError||!e.name||!Sh[e.name])return e;var n=new Sh[e.name](t||e.message,e);return"stack"in e&&Id(n,"stack",{get:function(){return this.inner.stack}}),n},th(eh,Gf);class SS extends Error{constructor(){super(...arguments),this.name="SafeToLogError"}}var yS=n(91),gS=n(13),vS=n.n(gS);class _S extends Error{constructor(e,t){super(`${e}, error: ${function(e){if(null==e||"object"!=typeof e)return"";const t=e instanceof SS||e instanceof TypeError?bS:PS;return Object(yS.inspect)(vS()(e,t))}(t)}`),t instanceof Error?(this.name=t.name,this.stack=t.stack):this.name=function(e){const t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&null!=e&&"object"==typeof e)return"Object, "+e.constructor.name;return t}(t)}}const bS=e=>e,PS=(e,t)=>"string"!=typeof e||("code"===t||"syscall"===t)?"object"==typeof e?"[Object]":e:"[String]";dd({dsn:"https://55af16af94074b88844cd7e16f535fa5@o76327.ingest.sentry.io/193727",environment:"production",release:void 0,enableNative:!0,maxBreadcrumbs:100,defaultIntegrations:[new Fp.GlobalHandlers({onerror:!1,onunhandledrejection:!1}),new Fp.Breadcrumbs({console:!1,dom:!1,fetch:!0,history:!1,sentry:!1,xhr:!1})],beforeSend:(e,t)=>e,beforeBreadcrumb:e=>function(e){return"http"===e.type&&"fetch"===e.category}(e)?function(e){var t,n;return null!==(n=null===(t=e.data)||void 0===t?void 0:t.url.startsWith("https://api.termius.com"))&&void 0!==n&&n}(e)?(function(e){const{data:t}=e;null!=t&&(t.url=`${(n=new URL(t.url)).origin}${n.pathname}`);var n}(e),e):null:e});const wS=function(e){switch(e){case"browser":return"main";case"renderer":return window.location.pathname.includes("background-process")?"background":"ui";case"worker":return"worker";default:return"unknown"}}(process.type);lp({level:yu.Info,category:wS,message:"Sentry has initialized"});var ES,kS,TS={...(ES=i,kS=wS,{exception:(e,t,n)=>{(function(e){const t=e instanceof oS.BulkError||e instanceof oS.InvalidStateError||e instanceof oS.ConstraintError||e instanceof oS.AbortError;return e instanceof SS||e instanceof TypeError||e instanceof RangeError||t})(t)&&function(e){return"object"==typeof e&&null!=e&&"message"in e}(t)&&"string"==typeof t.message&&""!==t.message&&(e=`${e}:\n${t.message}`);const r=new _S(e,t);ES.captureException(r,n),ES.addBreadcrumb({level:ES.Severity.Error,category:kS,message:`${r.name}: ${r.message}`})},info:(e,t)=>{ES.addBreadcrumb({level:ES.Severity.Info,category:kS,message:e,data:t})},setUser:e=>{ES.configureScope(t=>t.setUser(e))}}),withEncryptionLogin(e,t,n){let r={hasValue:!1};return mp(a=>{a.setExtra("collection",t),a.setExtra("encryption_login",e),r={hasValue:!0,value:n()}}),r.hasValue||(r={hasValue:!0,value:n()}),r.value},getUserId:()=>new Promise(e=>op(t=>{var n,r;e(null!==(r=null===(n=t.getUser())||void 0===n?void 0:n.id)&&void 0!==r?r:"")}))};const CS=(...e)=>localStorage.getItem(...e),IS=(...e)=>JSON.parse(CS(...e)||"null"),AS=(...e)=>localStorage.setItem(...e),OS=(e,t)=>AS(e,JSON.stringify(t)),xS=(...e)=>localStorage.removeItem(...e),NS=e=>{const t=IS(e);return xS(e),t};function RS(e,t=22){return null==t||22===t?""+e:`[${e}]:${t}`}const DS=()=>{var e;return null!==(e=IS("experiments"))&&void 0!==e?e:[]},HS=e=>OS("experiments",e);var FS={getTabsPanelSize:()=>IS("initial_resize_left_size"),setTabsPanelSize:e=>OS("initial_resize_left_size",e),takeColorScheme:()=>NS("settings"),takeFontSize:()=>NS("settings_font_size"),takeFontFamily:()=>(e=>{const t=CS(e);return xS(e),t})("settings_font_family"),setAllKnownHosts:e=>OS("hosts_keys",e),getAllKnownHosts:()=>IS("hosts_keys"),clearKnownHosts:()=>xS("hosts_keys"),userJustSawSuggestionToTryPremium:()=>OS("the_date_user_saw_suggestion_to_try_premium",new Date),didUserSeeSuggestionToTryPremium:()=>null!=IS("the_date_user_saw_suggestion_to_try_premium")||!0===IS("free_plan_started")&&(OS("the_date_user_saw_suggestion_to_try_premium",new Date(0)),xS("free_plan_started"),!0),setDeprecatedWelcomeScreenOpenedEventSend:()=>OS("welcome_screen_open_event_send",!0),isDeprecatedWelcomeScreenOpenedEventSend:()=>!!CS("welcome_screen_open_event_send"),setDeprecatedLocalhost:e=>OS("localhost",e),getDeprecatedLocalhost:()=>IS("localhost"),removeDeprecatedLocalhost:()=>xS("localhost"),getDeprecatedHostHashForUser(e,t){const n=this.getAllKnownHosts();return null==n?null:n[RS(e,t)]},removeDeprecatedHostHashItem(e){const t=this.getAllKnownHosts();delete t[e],this.setAllKnownHosts(t)},removeDeprecatedHostHashForUser(e,t){return this.removeDeprecatedHostHashItem(RS(e,t))},getKeepAliveInterval:()=>CS("keep_alive_interval"),setKeepAliveInterval:e=>AS("keep_alive_interval",e),removeKeepAliveInterval:()=>xS("keep_alive_interval"),wasDeprecatedCopyPasteDialogShown:()=>!!IS("copy_paste_dialog_was_shown"),setDeprecatedCopyPasteDialogWasShown:()=>OS("copy_paste_dialog_was_shown",!0),takeDarkMode:()=>NS("dark_mode"),wasDeprecatedSubscriptionExpired:()=>!!IS("subscription_expired_notification"),setDeprecatedSubscriptionExpired:()=>OS("subscription_expired_notification",!0),removeDeprecatedSubscriptionExpired:()=>xS("subscription_expired_notification"),getDeprecatedLastSyncVersion:()=>IS("last_sync_version"),setDeprecatedLastSyncVersion:e=>OS("last_sync_version",e),setDeprecatedEncryptionSchema:e=>AS("encryptionSchema",e),getLocalKey:()=>IS("localKey"),setLocalKey:e=>OS("localKey",e),getLocalKeyIsReady:()=>!!IS("local_key_is_ready"),setLocalKeyIsReady:()=>OS("local_key_is_ready",!0),removeLocalKeyIsReady:()=>xS("local_key_is_ready"),getLocalKeyVault:()=>IS("local_key_vault"),setLocalKeyVault:e=>OS("local_key_vault",e),removeLocalKeyVault:()=>xS("local_key_vault"),getCredential:e=>IS(e),setCredential:(e,t)=>OS(e,t),removeCredential:e=>xS(e),getMigrationLog:()=>IS("migrationLog"),setMigrationLog:e=>OS("migrationLog",e),getDeprecatedEnableSharingDialogWasShown:()=>!!IS("enable_sharing_dialog_was_shown"),setDeprecatedEnableSharingDialogWasShown:()=>OS("enable_sharing_dialog_was_shown",!0),getDeprecatedIsUnsharedLocalTeamTrialData:()=>!!IS("is_unshared_local_team_trial_data"),setDeprecatedIsUnsharedLocalTeamTrialData:e=>OS("is_unshared_local_team_trial_data",e),wasDeprecatedNewWindowHintShown:()=>!!IS("new_window_hint_was_shown"),newDeprecatedWindowHintWasShown:()=>OS("new_window_hint_was_shown",!0),wasDeprecatedSnippetsPanelShortcutHintShown:()=>!!IS("snippets_panel_shortcut_hint_was_shown"),snippetsDeprecatedPanelShortcutHintWasShown:()=>OS("snippets_panel_shortcut_hint_was_shown",!0),getDeprecatedBellDotType:()=>IS("bell_dot_type"),setDeprecatedBellDotType:e=>OS("bell_dot_type",e),getDeprecatedCustomBackendApiUrl:()=>IS("custom_backend_api_url"),setDeprecatedCustomBackendApiUrl:e=>OS("custom_backend_api_url",e),resetDeprecatedCustomBackendApiUrl:()=>xS("custom_backend_api_url"),getDeprecatedWasTeamTrialInPreferencesOpened:()=>IS("was_team_trial_in_preferences_opened"),setDeprecatedWasTeamTrialInPreferencesOpened:()=>OS("was_team_trial_in_preferences_opened",!0),getDeprecatedForceToShowTeamTrialPromotions:()=>IS("force_show_team_trial_promotions"),setDeprecatedForceToShowTeamTrialPromotions:e=>OS("force_show_team_trial_promotions",e),didDeprecatedUserSentAcquisitionChannel:()=>IS("user_init_connection"),setDeprecatedUserSentAcquisitionChannel:()=>OS("user_init_connection",!0),getDeprecatedDeviceHasSepSupport:()=>IS("device_has_sep_support"),setDeprecatedDeviceHasSepSupport:e=>OS("device_has_sep_support",e)};const GS=Pi("REQUEST_MONTHLY_PREMIUM"),US=Pi("REQUEST_YEARLY_PREMIUM"),LS=Pi("REQUEST_RESTORE_PREMIUM"),jS=Pi("PURCHASE_STARTED"),MS=Pi("PURCHASE_FAILED"),BS=Pi("PURCHASE_SUCCESS"),KS=Pi("RESTORE_FAILED"),qS=Pi("RESTORE_SUCCESS"),VS=Li("UPDATE_PRICES"),$S=Pi("REMOVE_IS_LOADING"),WS=Pi("RETRY_PURCHASE"),zS=Pi("USER_CANCEL_PURCHASE"),JS=Li("REDIRECT_TO_STRIPE_CHECKOUT");class XS{constructor(e){this.local_id=e.local_id,this.id=e.id,this.updated_at=e.updated_at,this.created_at=e.updated_at,this.address=e.address||"",this.connected_at=e.connected_at,this.errorMsg=e.errorMsg||"",this.host=null!=e.host?new Jo(e.host):null,this.label=e.label||"",this.password=e.password||"",this.port=e.port||0,this.ssh_key=null!=e.ssh_key?new xo(e.ssh_key):null,this.startup_snippet=null!=e.startup_snippet?new qo(e.startup_snippet):null,this.username=e.username||"",this.active=e.active,this.protocol=e.protocol,this.session_log_data=e.session_log_data}static createFromConnection(e,t){const{host:n,errorMsg:r,protocol:a,sessionLogData:i}=e,{address:s,label:o}=n,l="telnet"===a?n.getMergedTelnetConfig():n.getMergedSshConfig(),{startup_snippet:c,port:u,identity:p}=l,{ssh_key:d,username:h,password:f}=p;return new XS({address:s,connected_at:t,errorMsg:r||"",host:n,label:o,password:f,port:u,ssh_key:d,startup_snippet:c,username:h,active:!0,protocol:a,session_log_data:i})}}var QS=n(4),YS=n.n(QS);const ZS=process.env.hasOwnProperty("PROCESSOR_ARCHITEW6432"),ey=`${process.env.windir}\\${ZS?"Sysnative":"System32"}`,ty=ey+"\\WindowsPowerShell\\v1.0\\powershell.exe",ny=YS.a.windows()?ty:process.env.SHELL||"",ry=Pi("TEAM_PLAN_TAB_OPENED"),ay=Pi("TRIAL_STARTED"),iy=Pi("TRIAL_DISMISSED"),sy=Pi("WELCOME_SCREEN_OPENED"),oy=Pi("NEW_HOST_BUTTON_PRESSED"),ly=Pi("NEW_HOST_CREATED"),cy=Pi("HOST_DELETED"),uy=Pi("NEW_IDENTITY_BUTTON_PRESSED"),py=Pi("NEW_IDENTITY_SET_UP"),dy=Pi("NEW_SNIPPET_BUTTON_PRESSED"),hy=Pi("NEW_SNIPPET_CREATED"),fy=Pi("SNIPPET_EDITED"),my=Pi("SNIPPET_DELETED"),Sy=Pi("SNIPPET_EXECUTED"),yy=Pi("MAGIC_BUTTON_PRESSED"),gy=Pi("APP_OPENED"),vy=Pi("LEARN_MORE_ABOUT_TEAM_BUTTON_PRESSED"),_y=Pi("TEAM_PROMOTION_DISMISSED"),by=Pi("FEATURE_DESCRIPTION_SCREEN_OPENED"),Py=Pi("NEW_PORT_FORWARDING_RULE_BUTTON_PRESSED"),wy=Pi("NEW_PORT_FORWARDING_RULE_CREATED"),Ey=Pi("ONBOARDING_IMPORT_SCREEN_DISMISSED"),ky=Pi("IMPORT_STARTED"),Ty=Pi("IMPORT_BUTTON_PRESSED"),Cy=Pi("IMPORT_FAILED"),Iy=Pi("IMPORT_COMPLETED"),Ay=Pi("TEAM_PRIVATE_KEY_GENERATED"),Oy=Pi("TEAM_PRIVATE_KEY_ADOPTED"),xy=Pi("PERSONAL_KEY_SET_GENERATED"),Ny=Pi("PASSWORD_CHECKED_WITH_HIBP"),Ry=Pi("SET_TEAM_ID"),Dy=Pi("CRITICAL_ERROR_RESOLUTION_STARTED"),Hy=Pi("MENU_BANNER_DISMISSED"),Fy=Pi("TERMINAL_SEARCH_EXECUTED"),Gy=Pi("NEW_GROUP_CREATED"),Uy=Pi("GROUP_DELETED"),Ly=Pi("NEW_GROUP_BUTTON_PRESSED"),jy=Pi("MULTIPLE_CONNECTIONS_INITIATED"),My=Pi("CONNECTION_INITIATED"),By=Pi("CONNECTION_DETAILS_REQUESTED"),Ky=Pi("CONNECTION_ESTABLISHED"),qy=Pi("CONNECTION_CLOSED"),Vy=Pi("CONNECTION_FAILED"),$y=Pi("EXEC_CHANNEL_OPEN_FAILED"),Wy=Pi("APP_STARTED"),zy=Pi("SHARED_BUTTON_PRESSED"),Jy=Pi("CREATE_TEAM_WIZARD_VIEW_OPENED"),Xy=Pi("NEW_MAIN_WINDOW_OPENED"),Qy=Pi("PROMOTION_SHOWN"),Yy=Pi("PROMOTION_PRESSED"),Zy=Pi("PROMOTION_DISMISSED"),eg=Pi("HISTORY_ITEM_DELETED"),tg=Pi("SESSION_LOG_OPENED"),ng=Pi("ENCRYPTION_MIGRATION_WIZARD_VIEW_OPENED"),rg=Pi("TEAM_SCREEN_OPENED"),ag=Pi("HELP_BUTTON_PRESSED"),ig=Pi("REMIND_TEAM_OWNER_BUTTON_PRESSED"),sg=Pi("TEAM_TRIAL_EXPIRED_BUTTON_PRESSED"),og=Pi("DEEP_LINK_HANDLED"),lg=Pi("NOTIFICATION_RECEIVED"),cg=Pi("NOTIFICATION_SNOOZED"),ug=Pi("CONFIRM_ACCESS_BUTTON_PRESSED"),pg=Pi("CUSTOMER_EXPERIENCE_SURVEY_SHOWN"),dg=Pi("HINT_DISPLAYED"),hg=Pi("HINT_CLOSED"),fg=Pi("SNIPPETS_PANEL_OPENED"),mg=Pi("SWITCH_TO_TEAM_SCREEN_OPENED"),Sg=Pi("ACCOUNT_SET_UP_COMPLETED_SCREEN_OPENED"),yg=Pi("SET_YOUR_DEFAULT_CREDENTIALS_SCREEN_OPENED"),gg=Pi("NEW_IDENTITY_CREATED"),vg=Pi("DOWNLOAD_BUTTON_PRESSED"),_g=Pi("TEAM_SIDE_ONBOARDING_PRESSED"),bg=Pi("TEAM_SIDE_ONBOARDING_SHOWN"),Pg=Pi("TEAM_SIDE_ONBOARDING_CLOSED"),wg=Pi("SNIPPET_SHARING_CANCELED"),Eg=Pi("MULTIPLE_ITEMS_SELECTED"),kg=Pi("PREFERENCES_BUTTON_PRESSED"),Tg=Pi("EDIT_ENTITY_SCREEN_OPENED"),Cg=Pi("AUTHORIZED_KEYS_DOWNLOADED"),Ig=Pi("CREATE_MULTIKEY_EXPORT_SCRIPT_BUTTON_PRESSED"),Ag=Pi("MULTIKEY_UPDATED"),Og=Pi("SSH_KEY_FOR_MULTIKEY_GENERATED"),xg=Pi("MULTIKEY_CHOSEN"),Ng=Pi("ENTITIES_DRAG_AND_DROP_STARTED"),Rg=Pi("ENTITIES_DRAG_AND_DROP_COMPLETED"),Dg=Pi("MFA_INSTALL_AUTHY_SCREEN_OPENED"),Hg=Pi("MFA_CONFIGURE_SCREEN_OPENED"),Fg=Pi("MFA_PHONE_NUMBER_SCREEN_OPENED"),Gg=Pi("MFA_TOKEN_SCREEN_OPENED"),Ug=Pi("MFA_CONFIRM_PASSWORD_SCREEN_OPENED"),Lg=Pi("MFA_CHOOSE_PROVIDER_SCREEN_OPENED"),jg=Pi("MFA_COPY_CODE_SCREEN_OPENED"),Mg=Pi("MFA_CODE_COPIED"),Bg=Pi("MFA_PROVIDER_CHOSEN"),Kg=Pi("WHOS_IS_TERMIUS_SCREEN_OPENED"),qg=Pi("PRESENCE_ICON_PRESSED"),Vg=Pi("SET_PASSPHRASE_SCREEN_OPENED"),$g=Pi("ENTER_PASSPHRASE_SCREEN_OPENED"),Wg=Pi("PASSPHRASE_INFO_SCREEN_OPENED"),zg=Pi("SHARE_TERMINAL_BUTTON_PRESSED"),Jg=Pi("TERMINAL_SESSION_SHARING_STARTED"),Xg=Pi("TERMINAL_SESSION_SHARING_FAILED"),Qg=Pi("TERMINAL_SESSION_SHARING_STOPPED"),Yg=Pi("TERMINAL_SHARING_PERMISSIONS_CHANGED"),Zg=Pi("SHARED_TERMINAL_VIEWER_JOINED"),ev=Pi("SHARED_TERMINAL_VIEWER_LEFT"),tv=Pi("TEAM_TRIAL_EXTENSION_REJECTED_SCREEN_OPENED"),nv=Pi("SEND_CHOOSE_PLAN_SCREEN_OPENED"),rv=Pi("TEAM_TRIAL_EXTENDED_SCREEN_OPENED"),av=Pi("TEAM_TRIAL_EXPIRED_SCREEN_OPENED"),iv=Pi("INVITE_SCREEN_OPENED"),sv=Pi("INVITE_BUTTON_PRESSED"),ov=Pi("CONTEXT_MENU_OPENED"),lv=Pi("SFTP_FILE_OPENED"),cv=Pi("SFTP_UPLOAD_FILE_BUTTON_PRESSED"),uv=Pi("SFTP_DISCARD_FILE_BUTTON_PRESSED"),pv=Pi("SFTP_MODIFIED_FILES_BAR_SHOWN"),dv=Pi("SFTP_FILE_TYPE_ASSOCIATED"),hv=Pi("CREATE_ACCOUNT_SCREEN_OPENED"),fv=Pi("TEAM_TRIAL_FUNNEL_STARTED"),mv=Pi("NEW_KEY_BUTTON_PRESSED"),Sv=Pi("NEW_KEY_OPTION_SELECTED"),yv=Pi("NEW_CERTIFICATE_BUTTON_PRESSED"),gv=Pi("KEYCHAIN_ITEM_CREATED"),vv=Pi("KEYCHAIN_ITEM_DELETED"),_v=Li("RESTART_BUTTON_PRESSED"),bv=Pi("CHANGELOG_BUTTON_PRESSED"),Pv=Pi("CREDENTIALS_SHARING_OPTION_CHOSEN"),wv=Pi("CREDENTIALS_SHARING_SCREEN_OPENED"),Ev=Pi("LEARN_MORE_ABOUT_MULTIKEY_BUTTON_PRESSED"),kv=Pi("MULTIKEY_PROMO_SCREEN_SHOWN"),Tv=Pi("ROOT_GROUP_SHARED"),Cv=Pi("TAB_CONTEXT_MENU_OPENED"),Iv=Pi("NEW_HARDWARE_KEY_CREATED"),Av=Pi("AUTOCOMPLETE"),Ov=Pi("SERIAL_CONNECTION_SCREEN_OPENED"),xv=Pi("SERIAL_CONNECTION_PROMO_SCREEN_OPENED"),Nv=Pi("COPY_INVITATION_LINK_BUTTON_PRESSED"),Rv=Pi("CLOUD_CREDENTIALS_CHECKED"),Dv=Pi("CLOUD_SYNC_ACTIVATED"),Hv=Pi("SYNC_NOW_BUTTON_PRESSED"),Fv=Pi("CLOUD_SYNC_COMPLETED"),Gv=Pi("CLOUD_SYNC_FAILED"),Uv=Pi("TEAM_PRIVATE_KEY_ENCRYPTED"),Lv=Pi("TERMINAL_THEME_CHANGED"),jv=Pi("APPEARENCE_PANEL_OPENED"),Mv=Pi("SAVE_APPEARENCE_BUTTON_PRESSED"),Bv=Pi("RESET_APPEARENCE_BUTTON_PRESSED"),Kv=Pi("TERMINAL_FONT_CHANGED"),qv=Pi("BROADCAST_INPUT_TOGGLED"),Vv=Pi("AUTOCOMPLETE_SETTING_CHANGED"),$v=Pi("AUTOCOMPLETE_SETTINGS_OPENED"),Wv=Pi("TEAM_TRIAL_STARTED_FAILED"),zv=Pi("ENTITY_SELECTED"),Jv=Pi("EXPORT_KEY_BUTTON_PRESSED"),Xv=Pi("EXPORT_KEY_STOPPED"),Qv=Pi("KEY_EXPORT_SUCCEEDED"),Yv=Pi("EDIT_HOST_CHAIN_SCREEN_OPENED"),Zv=Pi("BUY_NOW_BUTTON_PRESSED"),e_=Pi("TEAM_TRIAL_EXTENSION_OFFER_SCREEN_OPENED"),t_=Pi("COPY_PUBLIC_KEY_BUTTON_PRESSED"),n_=Pi("DOWNLOAD_TEMPLATE_BUTTON_PRESSED"),r_=Pi("GROUP_SETTINGS_OPENED"),a_=Pi("HISTORY_DETAILS_SCREEN_OPENED"),i_=Pi("DOWNGRADE_TO_HOBBY_BUTTON_PRESSED"),s_=Pi("PRO_TRIAL_EXTENSION_OFFER_SCREEN_OPENED"),o_=Pi("PRO_TRIAL_EXTENDED_SCREEN_OPENED"),l_=Pi("EXTEND_PRO_TRIAL_BUTTON_PRESSED"),c_=Pi("NEW_SNIPPET_PACKAGE_BUTTON_PRESSED"),u_=Pi("SNIPPETS_SCREEN_OPENED"),p_=Pi("SNIPPET_PACKAGE_CREATED"),d_=Pi("SNIPPET_PACKAGE_DELETED"),h_=Pi("PORT_FORWARDING_FORM_TYPE_CHANGED"),f_=Pi("CREATE_PORT_FORWARDING_WIZARD_VIEW_OPENED"),m_=Pi("PORT_FORWARDING_SCREEN_OPENED"),S_=Pi("ENTERPRISE_SSO_BUTTON_PRESSED"),y_=Pi("USER_LOGIN_FAILED"),g_=Pi("LOGIN_SCREEN_OPENED"),v_=Pi("FIDO2_KEYGEN_OPTIONS_SUBMITTED"),__=Pi("FIDO2_PIN_CODE_REQUESTED"),b_=Pi("FIDO2_SSH_KEYS_SELECTED"),P_=Pi("FIDO2_KEY_GENERATION_CONFIRMED"),w_=Pi("FIDO2_DEVICE_SELECTED"),E_=Pi("SPLIT_VIEW_TAB_CREATED"),k_=Pi("SPLIT_VIEW_TAB_UPDATED"),T_=Pi("SPLIT_VIEW_BUTTON_PRESSED"),C_=Pi("COPY_HOST_DETAILS_LINK_BUTTON_PRESSED"),I_=Pi("DUPLICATE_BUTTON_PRESSED"),A_=Pi("SSH_KEY_DRAGGED_AND_DROPPED"),O_=Pi("SETUP_CLOUD_SYNC_BUTTON_PRESSED"),x_=Pi("CRYPTO_ERROR_OCCURRED"),N_={shown:Pi("ENABLE_SHARING_DIALOG_SHOWN"),submitted:Pi("ENABLE_SHARING_DIALOG_SUBMITTED"),postponed:Pi("ENABLE_SHARING_DIALOG_POSTPONED"),caughtError:Pi("ENABLE_SHARING_DIALOG_CAUGHT_ERROR"),succeeded:Pi("ENABLE_SHARING_DIALOG_SUCCEEDED")},R_=Pi("UPGRADE_TO_PRO_FUNNEL_STARTED"),D_=Pi("PRO_PLAN_SCREEN_OPENED"),H_=Pi("SELECT_ENTITY_SCREEN_OPENED"),F_=Pi("IDENTITY_SETTINGS_SCREEN_OPENED"),G_=Pi("IDENTITY_AUTOCOMPLETE_ITEM_PRESSED"),U_=Pi("IDENTITY_AUTOCOMPLETE_SHOWN"),L_=Pi("KEYWORD_HIGHLIGHTING_SETTING_CHANGED"),j_=Pi("KEYWORD_HIGHLIGHTING_CUSTOMIZATION_BUTTON_PRESSED"),M_=Pi("KEYWORD_HIGHLIGHTING_COLOR_ITEM_PRESSED"),B_=Pi("IMPORT_FIDO2KEY_BUTTON_PRESSED"),K_=Pi("ADVANCED_SETTINGS_BUTTON_PRESSED"),q_=Pi("DO_IT_LATER_BUTTON_PRESSED"),V_=Pi("REQUEST_INPUT_ACCESS_PRESSED"),$_=Pi("INPUT_PERMISSIONS_REQUESTED"),W_=Pi("TERMINAL_SHARING_STATUS_DIALOG_SHOWN"),z_=Pi("COPY_THE_LINK_BUTTON_PRESSED"),J_=Pi("COLLABORATION_CONTEXT_MENU_OPENED"),X_=Pi("COLLABORATION_CONTEXT_MENU_ITEM_PRESSED"),Q_=Pi("WELCOME_SETUP_STARTED"),Y_=Pi("WELCOME_SETUP_STEP_SKIPPED"),Z_=Pi("TOOLS_SETUP_SCREEN_OPENED"),eb=Pi("APPEARANCE_SETUP_SCREEN_OPENED"),tb=Pi("APPEARANCE_PICKED"),nb=Pi("PLATFORM_SETUP_PICKED"),rb=Pi("IMPORT_SETUP_SCREEN_OPENED"),ab=Pi("PLATFORMS_SETUP_SCREEN_OPENED"),ib=Pi("PROFESSIONAL_TOOLS_SELECTED"),sb=Pi("SAVE_HISTORY_COMMAND_BUTTON_PRESSED"),ob=Pi("COMMANDS_HISTORY_PANEL_OPENED"),lb=Pi("TRIAL_ONBOARDING_STARTED"),cb=Pi("TRIAL_ONBOARDING_BUTTON_PRESSED"),ub=Pi("COPY_DOWNLOAD_LINK_BUTTON_PRESSED"),pb=Pi("TRIAL_ONBOARDING_STEP_COMPLETED"),db=Pi("TRIAL_ONBOARDING_MINIMIZED"),hb=Pi("TOOLBAR_CHEVRON_BUTTON_PRESSED"),fb=Pi("SUBSCRIPTION_GRACE_PERIOD_NOTIFICATION_SHOWN"),mb=Pi("SUBSCRIPTION_GRACE_PERIOD_NOTIFICATION_SNOOZED"),Sb=Pi("BULK_DATA_SHARING_SCREEN_OPENED"),yb=Pi("BULK_SHARING_COMPLETED"),gb=Pi("TEAM_DEACTIVATION_SCREEN_OPENED"),vb=Pi("SUBSCRIPTION_EXPIRED_SCREEN_OPENED"),_b=Pi("EXTEND_TEAM_TRIAL_BUTTON_PRESSED"),bb=Pi("UPGRADE_BUTTON_PRESSED"),Pb=Pi("SESSION_AUTH_METHOD_CHANGED");function wb(e){switch(e){case"ssh":return"SSH";case"telnet":return"Telnet";case"mosh":return"Mosh";case"local":return"Local";case"stream":return"LiveTerminal";case"serial":return"Serial";default:return null}}class Eb{constructor({dispatch:e,type:t,host:n,userType:r,teamStatus:a,connectionID:i,getSessionLogSize:s}){var o,l,c,u,p;this.sendEventWithSafeDelayBetweenEventsToAvoidCollision=e=>{const t=this._next_safe_sent_event_date-Date.now();if(t<=0)return e(),void(this._next_safe_sent_event_date=new Date(Date.now()+1e3));setTimeout(()=>{e()},t),this._next_safe_sent_event_date=new Date(this._next_safe_sent_event_date.getTime()+1e3)},this._connectionInitiated=e=>{this._connected=!1;const t=FS.didDeprecatedUserSentAcquisitionChannel()||null==e?void 0:e.acquisitionChannel;FS.setDeprecatedUserSentAcquisitionChannel(),this.dispatch(My({...this.properties,...e,acquisitionChannel:t,cloudIntegration:yl(this.properties.host)}))},this.connectionInitiated=e=>this.sendEventWithSafeDelayBetweenEventsToAvoidCollision(()=>this._connectionInitiated(e)),this._connectionDetailsRequested=e=>{this.dispatch(By({requestedConnectionProperty:e.property,connectionID:this.properties.connectionID,cloudIntegration:yl(this.properties.host),sessionAuthMethod:e.authMethod}))},this.connectionDetailsRequested=e=>{this.sendEventWithSafeDelayBetweenEventsToAvoidCollision(()=>this._connectionDetailsRequested(e))},this._connectionFailed=e=>{this._connected||(this._connected=!0,this.dispatch(Vy({...this.properties,...e,cloudIntegration:yl(this.properties.host)})))},this.connectionFailed=e=>this.sendEventWithSafeDelayBetweenEventsToAvoidCollision(()=>this._connectionFailed(e)),this._connectionEstablished=e=>{this._connected=!0,this.dispatch(Ky({...this.properties,...e,cloudIntegration:yl(this.properties.host)}))},this.connectionEstablished=e=>this.sendEventWithSafeDelayBetweenEventsToAvoidCollision(()=>this._connectionEstablished(e)),this._connectionClosed=async e=>{var t;this.dispatch(qy({...e,sessionLogSize:await(null===(t=this.getSessionLogSize)||void 0===t?void 0:t.call(this))}))},this.connectionClosed=e=>this.sendEventWithSafeDelayBetweenEventsToAvoidCollision(()=>this._connectionClosed(e)),this.dispatch=e;const d=n?new Jo(n):null;this.properties={host:d,type:t,teamStatus:a,userType:r,connectionID:i,fido2BasedKey:To(null===(c=null===(l=null===(o=null==d?void 0:d.ssh_config)||void 0===o?void 0:o.identity)||void 0===l?void 0:l.ssh_key)||void 0===c?void 0:c.private_key),sepkey:null!=(null===(p=null===(u=null==d?void 0:d.ssh_config)||void 0===u?void 0:u.identity)||void 0===p?void 0:p.hardware_key)},this._connected=!1,this._next_safe_sent_event_date=new Date,this.getSessionLogSize=s}}class kb{constructor(e){var t,n,r,a,i,s,o;this.id=null!==(t=e.id)&&void 0!==t?t:Fi()(),this.host=new Jo(e.host||void 0),this.chainedHostOverrides=e.chainedHostOverrides,this.protocol=e.protocol||this._getMergedProtocol(),this.keepaliveInterval=e.keepaliveInterval,this.errorMsg=e.errorMsg,this.connectedAt=e.connectedAt,this.shellPath=e.shellPath||ny,this.sshKnownHosts=e.sshKnownHosts||[],this.stream=e.stream,this.featureSet=null!==(n=e.featureSet)&&void 0!==n?n:[],this.sessionLogData=null!==(r=e.sessionLogData)&&void 0!==r?r:void 0,this.sessionLogAnalytics=null!==(a=e.sessionLogAnalytics)&&void 0!==a?a:void 0,this.serialOptions=e.serialOptions,this.delegate=null!==(i=e.delegate)&&void 0!==i?i:{onDisconnect(){},onClosed:Object(yS.deprecate)(e=>{},"onClose callback is deprecated. Use onDisconnect or onError"),onError(e,t,n,r){},hostVerifier(e,t,n,r,a,i){i(!0)},requestKeyboardInteractive(e,t,n,r,a,i){},requestSignature(e,t,n,r){},async askUserNecessaryFields(){throw new Error("not implemented")},requestPassphrase(){},handleHostChainConnection(){},onLogMessage(e){},requestSKPresence(e){},updateSKPresence(e){},requestPIN(){},onHostOSDetected(e){},requestChooseKey(){},requestAuthMethod(){},requestDiscoverableSKKeys(){}},this.abortController=e.abortController||new AbortController,this.quick=e.quick||!1,this.saveAsHost=null!==(s=e.saveAsHost)&&void 0!==s&&s,this.analyticsHelper=e.analyticsHelper,this.isDetectOSEnabled=null!==(o=e.isDetectOSEnabled)&&void 0!==o&&o}abort(){return this.abortController.abort()}initAnalyticsHelper(e){const{type:t=wb(this.protocol)}=e;this.analyticsHelper=new Eb({...e,type:t,host:this.host,connectionID:this.id})}get signal(){return this.abortController.signal}get displayLabel(){var e,t,n;if("local"===this.protocol)return"Local Terminal";if("serial"===this.protocol)return(null===(e=this.serialOptions)||void 0===e?void 0:e.path)||"Serial";if("stream"===this.protocol)return null!==(n=null===(t=this.stream)||void 0===t?void 0:t.title)&&void 0!==n?n:"Stream";const{label:r,address:a}=this.host;if(r)return r;const i=this._getConfig();if(i){const{identity:e,port:t}=i,{username:n}=e,{protocol:r}=this;if(n)return"telnet"===r&&23===t||"telnet"!==r&&22===t?a:`${n}@[${a}]:${t}`}return a}get colorScheme(){var e;if("stream"===this.protocol)return(null===(e=this.stream)||void 0===e?void 0:e.color_scheme)||null;const t=this._getConfig();return t&&t.color_scheme||null}get startupSnippet(){const e=this._getConfig();return e&&e.startup_snippet||null}get port(){var e;return null===(e=this._getConfig())||void 0===e?void 0:e.port}get username(){var e;return null===(e=this._getConfig())||void 0===e?void 0:e.identity.username}isHostMissingNecessaryFields(){return null!=(e=this.protocol)&&["ssh","mosh","telnet"].includes(e)&&!this.host.address||function(e){return null!=e&&["ssh","mosh"].includes(e)}(this.protocol)&&!this.username;var e}clone(e){return new kb({...this,...e})}_getMergedProtocol(){return this.host.getDefaultProtocolForConnection()}_getConfig(){const{protocol:e,host:t}=this;switch(e){case"telnet":return t.getMergedTelnetConfig();case"ssh":case"mosh":return t.getMergedSshConfig();default:return null}}toTransferableObject(){return{...this,abortController:null,delegate:null,analyticsHelper:null,sessionLogAnalytics:null}}}Error;class Tb extends Wo{constructor(e={}){super(e),this.children_groups=[],this.children_hosts=[],this.children_groups=e.children_groups||[],this.children_hosts=e.children_hosts||[]}clone(e={}){return new Tb({...this,...e})}}class Cb{constructor(e={}){this.local_id=e.local_id,this.id=e.id,this.updated_at=e.updated_at,this.marker=e.marker||"",this.hostnames=e.hostnames||"",this.key=e.key||"",this.comment=e.comment||""}toOpenSshFormat(){return`${this.hostnames} ${this.key}`}isEqual(e){return this.hostnames===e.hostnames&&this.marker===e.marker&&this.key===e.key&&this.comment===e.comment}}class Ib{constructor(e){this.local_id=e.local_id,this.id=e.id,this.updated_at=e.updated_at,this.bound_address=e.bound_address||"127.0.0.1",this.host=new Jo(e.host),this.hostname=e.hostname||"",this.label=e.label||"",this.local_port=e.local_port,this.pf_type=e.pf_type,this.remote_port=e.remote_port,this.status=e.status||"disconnected",this.local_updated_at=e.local_updated_at||null}get rule(){const e=`From ${this.host.displayLabel}:${this.local_port}`;switch(this.pf_type){case"Dynamic Rule":return e;case"Local Rule":case"Remote Rule":return`${e} to ${this.hostname}:${this.remote_port}`;default:return"Unknown port forwarding type"}}get displayLabel(){return this.label||this.rule}get pfRuleType(){switch(this.pf_type){case"Dynamic Rule":return"dynamic";case"Local Rule":return"local";case"Remote Rule":return"remote";default:return"local"}}get isValid(){var e,t,n;return(null===(e=this.pf_type)||void 0===e?void 0:e.toLowerCase().includes("dynamic"))?Boolean((null===(t=this.host)||void 0===t?void 0:t.local_id)&&(this.local_port||0===this.local_port)):Boolean((null===(n=this.host)||void 0===n?void 0:n.local_id)&&this.hostname&&(this.local_port||0===this.local_port)&&(this.remote_port||0===this.remote_port))}clone(e={}){return new Ib({...this,...e})}}class Ab{constructor(e){this.local_id=e.local_id,this.id=e.id,this.updated_at=e.updated_at,this.host=null!=e.host?new Jo(e.host):null,this.latest_used_protocol=e.latest_used_protocol||null,this.latest_used_identity=e.latest_used_identity?new No(e.latest_used_identity):null}}class Ob{constructor(e={}){this.id=e.id,this.local_id=e.local_id,this.username=e.username||"",this.updated_at=e.updated_at,this.is_shared=Boolean(e.is_shared),this.local_updated_at=e.local_updated_at||null}clone(e={}){return new Ob({...this,...e})}}class xb{constructor(e={}){var t;this.local_id=e.local_id,this.id=e.id,this.updated_at=e.updated_at,this.script=e.script||"",this.is_shared=Boolean(e.is_shared),this.local_updated_at=e.local_updated_at||null,this.rating=null!==(t=e.rating)&&void 0!==t?t:1}clone(e={}){return new xb({...this,...e})}}var Nb=n(201),Rb=n.n(Nb);var Db=n(202),Hb=n.n(Db);function Fb({local_id:e},t){if(null==e)return[];const n=t.find(t=>t.local_id===e);if(null==n)return[];const r=[];let a=[n],i=[];const s=e=>{r.push(e),i=Hb()(i,function({local_id:e},t){return null!=e?t.filter(t=>{var n;return(null===(n=t.parent_group)||void 0===n?void 0:n.local_id)===e}):[]}(e,t))};for(;0!==a.length;)a.forEach(s),a=i,i=[];return r}function Gb(e,t){const n=new Set(e.map(e=>e.local_id));return t.filter(({group:e})=>null!=(null==e?void 0:e.local_id)&&n.has(e.local_id))}function Ub(e,t){return e.map(e=>new t(e))}function Lb(e,t){return ei(e,e=>Ub(e,t))}const jb=Lb(e=>e.entities.snippets,qo),Mb=Lb(e=>e.entities.snippetsPackages,Ko),Bb=Lb(e=>e.entities.hardwareKeys,Eo),Kb=(Lb(e=>Bb(e).filter(e=>e.isSep()),Eo),Lb(e=>e.entities.sshKeys,xo),Lb(e=>e.entities.visibleIdentities,No),Lb(e=>e.entities.portForwardingRules,Ib),Lb(e=>e.entities.knownHosts,Cb)),qb=(ei(Kb,e=>e.map(e=>e.toOpenSshFormat())),Lb(e=>e.entities.histories,XS)),Vb=Lb(e=>e.entities.hostLatestActivities,Ab),$b=(e,t)=>null!=t&&Vb(e).find(e=>{var n;return(null===(n=e.host)||void 0===n?void 0:n.local_id)===t})||null,Wb=Lb(e=>e.entities.hosts,Jo),zb=e=>e.entities.hosts.length,Jb=(ei(Wb,e=>t=>t&&e.find(e=>e.local_id===t)||null),(e,t)=>e.filter(e=>{var n,r,a,i,s,o,l;return t.local_id&&((null===(r=null===(n=e.ssh_config)||void 0===n?void 0:n.identity)||void 0===r?void 0:r.local_id)===t.local_id||(null===(s=null===(i=null===(a=e.ssh_config)||void 0===a?void 0:a.proxy)||void 0===i?void 0:i.identity)||void 0===s?void 0:s.local_id)===t.local_id||(null===(l=null===(o=e.telnet_config)||void 0===o?void 0:o.identity)||void 0===l?void 0:l.local_id)===t.local_id)})),Xb=(e,t)=>{const n=Wb(e);return Jb(n,t)},Qb=(e,t)=>{const n=Yb(e);return Jb(n,t)},Yb=ei(e=>e.entities.groups,Wb,(e,t)=>{const n=Ub(e,Wo);return n.map(e=>{const r=new Tb(e),a=Fb(e,n);return r.children_groups=a,r.children_hosts=Gb(a,t),r})});ei((e,t=null)=>Yb(e),(e,t=null)=>t,Zb),ei(Yb,e=>t=>Zb(e,t));function Zb(e,t){return t&&e.find(e=>e.local_id===t)||null}const eP=e=>Yb(e).filter(e=>e.is_shared)||[],tP=e=>Wb(e).filter(e=>e.is_shared)||[],nP=e=>jb(e).filter(e=>e.is_shared)||[],rP=e=>Mb(e).filter(e=>e.is_shared)||[],aP=e=>!!(eP(e).length||nP(e).length||rP(e).length||tP(e).length);Lb(e=>e.entities.historyCommands,xb);function iP(e){return"dark"===e.ui.theme}function sP(e){return e.ui.isTerminalSharingVisible}function oP(e){return e.ui.gracePeriodUntilDate}const lP=["termius dark","termius light","basic","homebrew","grass","man page","novel","ocean","pro","red sands","solarized dark","solarized light","silver aerogel","dracula","monokai","nord light","nord dark"],cP={"termius dark":{name:"Termius Dark",colorPaletteOverrides:["#141729","#f24e50","#198c51","#f8aa4b","#0066aa","#d2549a","#3d97e6","#edf1f2","#8d91a5","#ff7375","#00cc74","#ffcb00","#006fb9","#ffb3ef","#44a7ff","#f7f9fa"],backgroundColor:"#141729",cursorColor:"#21b568",foregroundColor:"#21b568",selectionColor:"#21b56880"},"termius light":{name:"Termius Light",colorPaletteOverrides:["#141729","#f24e50","#198c51","#c8893c","#004878","#d2549a","#3d97e6","#eeeeee","#3e4257","#ff7375","#21b568","#f8aa4b","#0066aa","#ffb3ef","#44a7ff","#f7f9fa"],backgroundColor:"#d5dde0",cursorColor:"#32364a",foregroundColor:"#32364a",selectionColor:"#32364a80"},basic:{name:"Basic",colorPaletteOverrides:["#000000","#ab1500","#00b000","#a9a600","#0223bf","#c12dbf","#00b3bf","#cacaca","#797979","#ec2100","#00db00","#eae600","#0432ff","#ec3aea","#00e8ea","#eaeaea"],backgroundColor:"#ffffff",cursorColor:"#919191",foregroundColor:"#000000",selectionColor:"#00000080"},homebrew:{name:"Homebrew",colorPaletteOverrides:["#000000","#ab1500","#00b000","#a9a600","#0223bf","#c12dbf","#00b3bf","#cacaca","#797979","#ec2100","#00db00","#eae600","#0432ff","#ec3aea","#00e8ea","#eaeaea"],backgroundColor:"#000000",cursorColor:"#07f91d",foregroundColor:"#00f900",selectionColor:"#00ff0080"},grass:{name:"Grass",colorPaletteOverrides:["#000000","#c91b00","#00c200","#ecbb00","#0120b2","#a71e75","#00c5c7","#c7c7c7","#676767","#c91b00","#00c200","#ecbb00","#0225c7","#ff76ff","#5ffdff","#fffefe"],backgroundColor:"#09874d",cursorColor:"#9f3800",foregroundColor:"#fff1b3",selectionColor:"#fff0a580"},"man page":{name:"Man Page",colorPaletteOverrides:["#000000","#d71e00","#00b000","#a9a600","#0223bf","#c12dbf","#00b3bf","#d5d5d5","#797979","#ec2100","#00db00","#eae600","#0432ff","#ec3aea","#00e8ea","#eaeaea"],backgroundColor:"#fef4ab",cursorColor:"#919191",foregroundColor:"#000000",selectionColor:"#00000080"},novel:{name:"Novel",colorPaletteOverrides:["#000000","#d71e00","#00a200","#da7e00","#0228d5","#d834d5","#009ad5","#d5d5d5","#919191","#d71e00","#00a200","#da7e00","#0228d5","#d834d5","#009ad5","#fffefe"],backgroundColor:"#e5e1cd",cursorColor:"#86766d",foregroundColor:"#4c2f2d",selectionColor:"#3b232280"},ocean:{name:"Ocean",colorPaletteOverrides:["#000000","#ab1500","#00b000","#a9a600","#0223bf","#c12dbf","#00b3bf","#cacaca","#797979","#ec2100","#00db00","#eae600","#0432ff","#ec3aea","#00e8ea","#eaeaea"],backgroundColor:"#2b66c8",cursorColor:"#919191",foregroundColor:"#fffefe",selectionColor:"#ffffff80"},pro:{name:"Pro",colorPaletteOverrides:["#000000","#ab1500","#00b000","#a9a600","#2b2ee2","#c12dbf","#00b3bf","#cacaca","#797979","#ec2100","#00db00","#eae600","#0432ff","#ec3aea","#00e8ea","#eaeaea"],backgroundColor:"#000000",cursorColor:"#5f5f5f",foregroundColor:"#f4f4f4",selectionColor:"#f2f2f280"},"red sands":{name:"Red Sands",colorPaletteOverrides:["#000000","#ff5700","#00c200","#ecbb00","#008aff","#c930c7","#00c5c7","#c7c7c7","#676767","#c91b00","#00c200","#ecbb00","#0086bc","#ff76ff","#5ffdff","#fffefe"],backgroundColor:"#8e3427",cursorColor:"#fffefe",foregroundColor:"#ded2b5",selectionColor:"#d7c9a780"},"solarized dark":{name:"Solarized Dark",colorPaletteOverrides:["#073642","#dc322f","#859900","#b58900","#268bd2","#d33682","#2aa198","#eee8d5","#002b36","#cb4b16","#586e75","#657b83","#839496","#6c71c4","#93a1a1","#fdf6e3"],backgroundColor:"#002b36",cursorColor:"#839496",foregroundColor:"#839496",selectionColor:"#70828480"},"solarized light":{name:"Solarized Light",colorPaletteOverrides:["#073642","#dc322f","#859900","#b58900","#268bd2","#d33682","#2aa198","#eee8d5","#002b36","#cb4b16","#586e75","#657b83","#839496","#6c71c4","#93a1a1","#fdf6e3"],backgroundColor:"#fdf6e3",cursorColor:"#657b83",foregroundColor:"#657b83",selectionColor:"#53687080"},"silver aerogel":{name:"Silver Aerogel",colorPaletteOverrides:["#000000","#990000","#00A600","#999900","#0000B2","#B200B2","#00A6B2","#BFBFBF","#666666","#E50000","#00D900","#E5E500","#0000FF","#E500E5","#00E5E5","#E5E5E5"],backgroundColor:"#919191",cursorColor:"#D9D9D9",foregroundColor:"#000000",selectionColor:"#00000080"},dracula:{name:"Dracula",colorPaletteOverrides:["#000000","#ff6d67","#59f68d","#f3f89d","#c9a8fa","#ff92d0","#99ecfd","#c7c7c7","#676767","#ff6d67","#59f68d","#f3f89d","#c9a8fa","#ff92d0","#99ecfd","#fffefe"],backgroundColor:"#282935",cursorColor:"#c7c7c7",foregroundColor:"#f9f9f4",selectionColor:"#55596d"},monokai:{name:"Monokai",colorPaletteOverrides:["#222121","#f82a71","#a6e12e","#ffa727","#ae80fe","#f82a71","#66d8ee","#cfcec1","#75705d","#f82a71","#a6e12e","#e6da73","#ae80fe","#f82a71","#66d8ee","#f7f7f1"],backgroundColor:"#0d0c0c",cursorColor:"#fea726",foregroundColor:"#e0dfdf",selectionColor:"#444343"},"nord light":{name:"Nord Light",colorPaletteOverrides:["#3b4251","#bf6069","#a3be8b","#eacb8a","#81a1c1","#b48dac","#88c0d0","#d8dee9","#4c556a","#bf6069","#a3be8b","#eacb8a","#81a1c1","#b48dac","#8fbcbb","#eceff4"],backgroundColor:"#e5e9f0",cursorColor:"#88c0d0",foregroundColor:"#414858",selectionColor:"#d8dee9"},"nord dark":{name:"Nord Dark",colorPaletteOverrides:["#3b4252","#bf616a","#a3be8c","#ebcb8b","#81a1c1","#b48ead","#88c0d0","#e5e9f0","#4c566a","#bf616a","#a3be8c","#ebcb8b","#81a1c1","#b48ead","#8fbcbb","#eceff4"],backgroundColor:"#2e3440",cursorColor:"#eceff4",foregroundColor:"#d8dee9",selectionColor:"#eceff4"}},uP=["Source Code Pro","Source Code Pro Medium","Operator Mono Book","Operator Mono Medium","Fira Mono","Fira Mono Medium","Inconsolata-g","Anonymous Pro","Ubuntu Mono","Droid Sans Mono","Dejavu Sans Mono","PT Mono","Andale Mono","Cascadia Code","Fira Code","JetBrains Mono","Meslo"];var pP=new class{get(e,t,n){const r=null!=e?e.toLowerCase():"",a=this.getAllSchemeObjects();return e||"auto"!==t?dP(r)?a[r]:dP(t)?a[t]:a["termius dark"]:this.getAutoScheme(n)}getAutoScheme(e){return e?this.getAllSchemeObjects()["termius dark"]:this.getAllSchemeObjects()["termius light"]}getMinFontSize(){return 4}getMaxFontSize(){return 40}getAllSchemeNames(){return[...Object.keys(this.getAllSchemeObjects()),"auto"]}getAllSchemeObjects(){return cP}getValidForBackendSchemesValues(){return Object.values(this.getAllSchemeObjects())}getFontFamailies(){return uP}isValidColorSchemeName(e){return dP(e)||"auto"===e}};const dP=e=>lP.some(t=>t===e);const hP=ei(iP,(function(e){return e.globalTerminalSettings.colorScheme}),(e,t)=>n=>pP.get(n,t,e));function fP(e){return e.globalTerminalSettings.fontFamily}function mP(e){return e.globalTerminalSettings.optionIsMeta}const SP=Li("SYNC_HISTORY"),yP=Pi("UPDATE_HISTORY"),gP=Pi("SHOW_MORE_HISTORY"),vP=Li("LOAD_MORE_HISTORY"),_P=Li("CHECK_HISTORY_UPDATES"),bP=Li("VALIDATE_SESSION_LOG_FILE_EXIST"),PP=Pi("RESET_HISTORY_META"),wP=Pi("SET_HISTORY_META"),EP=Pi("TOGGLE_HISTORY");function kP(e,t){return Ei(t,t=>{for(const[n,r]of Object.entries(e))t.addCase(n,(e,t)=>r(TP(e),t))})}function TP(e){return!m(e)||!f(e)?e:(f(t=e)||h(23,t),t[ae].t);var t}const CP=e=>Pi(e,e=>({payload:e,meta:{scope:"local"}})),IP={isLoading:!1,isNeedUpdate:!1,totalCount:0,shownCount:10,isShowing:!0,sessionLogFileExists:!1};var AP=kP({[vP.request.toString()]:e=>({...e,isLoading:!0}),[vP.success.toString()]:(e,{payload:t})=>({...e,...t,isLoading:!1}),[vP.failure.toString()]:e=>({...e,isLoading:!1}),[SP.success.toString()]:(e,{payload:t})=>({...e,...t}),[wP.toString()]:(e,{payload:t})=>({...e,...t}),[EP.toString()]:e=>({...e,isShowing:!e.isShowing}),[bP.request.toString()]:e=>({...e,sessionLogFileExists:!1}),[bP.success.toString()]:e=>({...e,sessionLogFileExists:!0}),[bP.failure.toString()]:e=>({...e,sessionLogFileExists:!1}),[PP.toString()]:()=>IP},IP);function OP(e){return e.history.totalCount}function xP(e){return e.history.shownCount}function NP(e){return xP(e)+10}function RP(e){return xP(e)<=10}const DP=Pi("CHANGE_SAVING_QUICK_CONNECT_AS_HOST"),HP=Pi("SESSION_LOGS_QUEUE_OVERFLOWED");var FP=n(93),GP=n.n(FP);const UP="team trial owner expired";function LP(e){return e.user}function jP(e){return e.user.account}function MP(e){return e.user.account.user_id}function BP(e){return JP(e)?e.user.team_subscription||e.user.personal_subscription||null:e.user.personal_subscription||null}function KP(e){return!!BP(e)&&!function(e){var t;return!!(null===(t=BP(e))||void 0===t?void 0:t.is_expired)}(e)}function qP(e){return e.user.account.pro_mode}function VP(e){return e.user.account.now}function $P(e){return e.user.account.user_type||"unauthorized"}function WP(e){return"unauthorized"===$P(e).toLowerCase()}function zP(e){return!WP(e)}function JP(e){return!!e.user.team}function XP(e){return!!e.user.team&&!e.user.team.is_owner}function QP(e){var t;return(null===(t=e.team)||void 0===t?void 0:t.team_permissions)||[]}function YP(e){return e.team||{}}function ZP(e){var t;return null===(t=e.user.team)||void 0===t?void 0:t.realtime_collaboration}function ew(e){if(tw(e))return!0;return function(e){var t;return(null===(t=e.user.team)||void 0===t?void 0:t.team_permissions)||[]}(e).includes("platform__edit_shared_entities")&&!!function(e){return e.user.hasAccessToSharedData}(e)}function tw(e){var t;return!!(null===(t=e.user.team)||void 0===t?void 0:t.is_owner)}function nw(e){var t;return null===(t=e.user.team)||void 0===t?void 0:t.owner}function rw(e){return"trial"===$P(e).toLowerCase()}function aw(e){return!!sw(e).show_bell}function iw(e){return!!sw(e.user).generate_multi_key_pair}function sw(e){return e.account.authorized_features||{}}function ow(e){return e.account.feature_toggles||{}}function lw(e){return ow(e.user)}function cw(e){return e.user.account.expired_screen_type}function uw(e){var t;return null!==(t=e.user.account.email)&&void 0!==t?t:e.user.username}function pw(e){return e.account.feature_toggles.encryption_schema}function dw(e){var t;return null===(t=e.team)||void 0===t?void 0:t.encryption_schema}function hw(e){return tw(e)?"Owner":ew(e)?"Editor":XP(e)?"Member":null}function fw(e){return e.user.team_members||[]}function mw(e){return e.user.team_invites||[]}function Sw(e){const t=JP(e),n=tw(e);return t&&n||!t}function yw(e){var t;return null===(t=e.user.team)||void 0===t?void 0:t.id}function gw(e){return!e.user.isTeamDataStale}function vw(e){var t;return null===(t=e.user.team)||void 0===t?void 0:t.owner_id}function _w(e){var t;return null===(t=e.user.device)||void 0===t?void 0:t.id}const bw=CP("SET_TERMINAL_CONNECTION_PROCESS"),Pw=CP("RECONNECT_TERMINAL"),ww=CP("RESET_TERMINAL_DISCONNECT_TIMESTAMP"),Ew=CP("SET_SEARCH_QUERY"),kw=CP("SET_LEFT_PANEL_WIDTH"),Tw=CP("ADD_TERMINAL_TAB"),Cw=CP("MOVE_TERMINAL_TO_NEW_TAB"),Iw=CP("REMOVE_TERMINAL"),Aw=CP("SPLIT_TERMINAL"),Ow=CP("TOGGLE_SPLIT_VIEW_BROADCAST_MODE"),xw=CP("OPEN_TERMINAL_SEARCH"),Nw=CP("CLOSE_TERMINAL_SEARCH"),Rw=CP("ACTIVATE_TERMINAL"),Dw=CP("ACTIVATE_TERMINAL_TAB"),Hw=CP("TERMINAL_DISCONNECT"),Fw=CP("DEACTIVATE_WINDOW_TERMINALS"),Gw=CP("ESTABLISH_TERMINAL"),Uw=(CP("TERMINAL_FIND_NEXT_MATCH"),CP("TERMINAL_FIND_PREV_MATCH"),Pi("INCREASE_TERMINAL_FONT_SIZE"),Pi("DECREASE_TERMINAL_FONT_SIZE"),Pi("SET_TERMINAL_FONT_SIZE"),Pi("SET_TERMINAL_FONT_NAME"),Pi("RESET_TERMINAL_FONT_SIZE_TO_DEFAULT"),Pi("SET_LOCAL_TERMINAL_VISUAL_SETTINGS_AS_DEFAULT"),Pi("SET_TERMINAL_COLOR_SCHEME"),CP("REORDER_TERMINALS")),Lw=CP("REORDER_SPLIT_VIEW_PANES"),jw=CP("RESIZE_SPLIT_VIEW"),Mw=CP("PATCH_TERMINAL"),Bw=CP("PATCH_TERMINAL_TAB"),Kw=(Pi("RUN_IN_ALL_ACTIVE_TABS"),CP("PRE_CREATE_HISTORY"),Pi("SHOW_SPLIT_VIEW_HINT")),qw=Pi("DISMISS_SPLIT_VIEW_HINT"),Vw=Pi("SINGLE_TERMINAL_SESSION_STARTED"),$w=Pi("SINGLE_TERMINAL_SESSION_FINISHED"),Ww=Pi("SINGLE_TERMINAL_TAB_RENAMED"),zw=Pi("OPEN_CONNECTED_TO_TERMINAL_WITH_UNAVAILABLE_PRO_FEATURES_HINT"),Jw=Pi("CLOSE_CONNECTED_TO_TERMINAL_WITH_UNAVAILABLE_PRO_FEATURES_HINT"),Xw=CP("SET_AUTOCOMPLETE_DISABLED_FOR_TERMINAL_SESSION"),Qw=CP("SET_TERMINAL_HISTORY"),Yw=Pi("SET_TREATMENTS"),Zw=Pi("UPDATE_ANALYTICS_TOKEN"),eE=Pi("START_TEAM_TRIAL_DESCRIPTION_EXPERIMENT"),tE=Pi("START_SIDE_MENU_TEAM_TRIAL_PROMOTION_EXPERIMENT"),nE="desktop_new_layout_team_trial_description_screen",rE=["new_connection_flow_desktop","team_setup_desktop","host_sharing_new_flow","mixpanel_token",nE,"desktop_side_menu_team_trial_promotion"],aE={new_connection_flow_desktop:"NewConnectionFlow",team_setup_desktop:"NewTeamSetup",host_sharing_new_flow:"HostSharingNewFlow",mixpanel_token:"MixpanelToken",[nE]:"DesktopNewLayoutTeamTrialDescriptionScreen",desktop_side_menu_team_trial_promotion:"DesktopSideMenuTeamTrialPromotion"},iE={new_connection_flow_desktop:{baseline:"Exp_2_Baseline",ncf:"Exp_2_NewConnectionFlow",disabled:"Exp_2_Disabled"},team_setup_desktop:{baseline:"baseline",teamOnboarding:"teamOnboarding",disabled:"Disabled"},host_sharing_new_flow:{baseline:"Baseline",enabled:"Enabled",disabled:"Disabled"},mixpanel_token:{baseline:"Baseline",enabled:"Enabled",disabled:"Disabled"},[nE]:{new_layout:"new_layout",baseline:"Baseline",disabled:"Disabled"},desktop_side_menu_team_trial_promotion:{SidePromo_Cookies:"SidePromo_Cookies",SidePromo_Box:"SidePromo_Box",SidePromo_Display:"SidePromo_Display",SidePromo_GroupIcon:"SidePromo_GroupIcon",disabled:"Disabled"}};var sE;!function(){if("undefined"!=typeof window){var e="URLSearchParams"in self,t="Symbol"in self&&"iterator"in Symbol,n="FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),r="FormData"in self,a="ArrayBuffer"in self;if(a)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(e){return e&&i.indexOf(Object.prototype.toString.call(e))>-1};d.prototype.append=function(e,t){e=c(e),t=u(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},d.prototype.delete=function(e){delete this.map[c(e)]},d.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},d.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},d.prototype.set=function(e,t){this.map[c(e)]=u(t)},d.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},d.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),p(e)},d.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),p(e)},d.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),p(e)},t&&(d.prototype[Symbol.iterator]=d.prototype.entries);var o=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},y.call(g.prototype),y.call(_.prototype),_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},_.error=function(){var e=new _(null,{status:0,statusText:""});return e.type="error",e};var l=[301,302,303,307,308];_.redirect=function(e,t){if(-1===l.indexOf(t))throw new RangeError("Invalid status code");return new _(null,{status:t,headers:{location:e}})},self.DOMException=self.DOMException;try{new self.DOMException}catch(e){self.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},self.DOMException.prototype=Object.create(Error.prototype),self.DOMException.prototype.constructor=self.DOMException}b.polyfill=!0,self.fetch||(self.fetch=b,self.Headers=d,self.Request=g,self.Response=_)}function c(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function u(e){return"string"!=typeof e&&(e=String(e)),e}function p(e){var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t&&(n[Symbol.iterator]=function(){return n}),n}function d(e){this.map={},e instanceof d?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function h(e){return!!e.bodyUsed||(e.bodyUsed=!0,!1)}function f(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function m(e){var t=new FileReader,n=f(t);return t.readAsArrayBuffer(e),n}function S(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(t){var i;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:n&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:r&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:e&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():a&&n&&((i=t)&&DataView.prototype.isPrototypeOf(i))?(this._bodyArrayBuffer=S(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(t)||s(t))?this._bodyArrayBuffer=S(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n&&(this.blob=function(){if(h(this))return Promise.reject(new TypeError("Already read"));if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)?Promise.reject(new TypeError("Already read")):Promise.resolve(this._bodyArrayBuffer):this.blob().then(m)}),this.text=function(){var e,t,n;if(h(this))return Promise.reject(new TypeError("Already read"));if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=f(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},r&&(this.formData=function(){return this.text().then(v)}),this.json=function(){return this.text().then(JSON.parse)},this}function g(e,t){var n,r,a=(t=t||{}).body;if(e instanceof g){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new d(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,a||null==e._bodyInit||(a=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new d(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),o.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&a)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(a)}function v(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),a=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(a))}})),t}function _(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new d(t.headers),this.url=t.url||"",this._initBody(e)}function b(e,t){return new Promise((function(r,a){var i=new g(e,t);if(i.signal&&i.signal.aborted)return a(new self.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function o(){s.abort()}s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new d,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var a=n.join(":").trim();t.append(r,a)}})),t)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var a="response"in s?s.response:s.responseText;r(new _(a,n))},s.onerror=function(){a(new TypeError("Network request failed"))},s.ontimeout=function(){a(new TypeError("Network request failed"))},s.onabort=function(){a(new self.DOMException("Aborted","AbortError"))},s.open(i.method,i.url,!0),"include"===i.credentials?s.withCredentials=!0:"omit"===i.credentials&&(s.withCredentials=!1),"responseType"in s&&n&&(s.responseType="blob"),i.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),i.signal&&(i.signal.addEventListener("abort",o),s.onreadystatechange=function(){4===s.readyState&&i.signal.removeEventListener("abort",o)}),s.send(void 0===i._bodyInit?null:i._bodyInit)}))}}(),function(e){e.Prod="prod",e.Staging="staging",e.Dev="dev"}(sE||(sE={}));let oE=null,lE=!1,cE=null,uE=null,pE=null,dE=!0;let hE=null;var fE;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");let n=Object(e);for(let e=1;e<arguments.length;e++){let t=arguments[e];if(null!=t)for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])}return n},writable:!0,configurable:!0}),function(e){e.BottomRight="BottomRight",e.BottomLeft="BottomLeft",e.TopRight="TopRight",e.TopLeft="TopLeft"}(fE||(fE={}));let mE,SE,yE,gE,vE=function(e,t,n){const r="Event Sent:"+e+"Event Props:"+JSON.stringify(t)+"User Props:"+JSON.stringify(n);cE&&cE.logDebug&&cE.logDebug(oE,r)||"undefined"!=typeof console&&console.log("[avo] Event Sent:",e,"Event Props:",t,"User Props:",n)},_E=function(e){cE&&cE.logDebug&&cE.logDebug(oE,e)||"undefined"!=typeof console&&console.log("[avo] "+e)},bE=function(e){cE&&cE.logWarn&&cE.logWarn(oE,e)||"undefined"!=typeof console&&console.warn("[avo] "+e)};mE=function(e,t){let n=[];for(let r=0;r<e.length;r++)-1===t.indexOf(e[r])&&n.push(e[r]);return n},SE={assertObject:function(e,t,n){if("object"!=typeof n){return[{tag:"expectedObjectType",propertyId:e,message:t+" should be of type object but you provided type "+typeof n+" with value "+JSON.stringify(n),actualType:typeof n}]}return[]},assertString:function(e,t,n){if("string"!=typeof n){return[{tag:"expectedStringType",propertyId:e,message:t+" should be of type string but you provided type "+typeof n+" with value "+JSON.stringify(n),actualType:typeof n}]}return[]},assertInt:function(e,t,n){if("number"==typeof n&&n!==Math.round(n)){return[{tag:"expectedIntType",propertyId:e,message:t+" should be of type int but you provided type float with value "+JSON.stringify(n),actualType:"float"}]}if("number"!=typeof n){return[{tag:"expectedIntType",propertyId:e,message:t+" should be of type int but you provided type "+typeof n+" with value "+JSON.stringify(n),actualType:typeof n}]}return[]},assertLong:function(e,t,n){if("number"==typeof n&&n!==Math.round(n)){return[{tag:"expectedLongType",propertyId:e,message:t+" should be of type long but you provided type float with value "+JSON.stringify(n),actualType:"float"}]}if("number"!=typeof n){return[{tag:"expectedLongType",propertyId:e,message:t+" should be of type long but you provided type "+typeof n+" with value "+JSON.stringify(n),actualType:typeof n}]}return[]},assertFloat:function(e,t,n){if("number"!=typeof n){return[{tag:"expectedFloatType",propertyId:e,message:t+" should be of type float but you provided type "+typeof n+" with value "+JSON.stringify(n),actualType:typeof n}]}return[]},assertBool:function(e,t,n){if("boolean"!=typeof n){return[{tag:"expectedBoolType",propertyId:e,message:t+" should be of type boolean but you provided type "+typeof n+" with value "+JSON.stringify(n),actualType:typeof n}]}return[]},assertMax:function(e,t,n,r){if(r>n){return[{tag:"expectedMax",propertyId:e,message:t+" has a maximum value of "+n+" but you provided the value "+JSON.stringify(r)}]}return[]},assertMin:function(e,t,n,r){if(r<n){return[{tag:"expectedMin",propertyId:e,message:t+" has a minimum value of "+n+" but you provided the value "+JSON.stringify(r)}]}return[]},assertList:function(e,t,n){if(Array.isArray(n))return[];return[{tag:"expectedList",propertyId:e,message:t+" should be of type list but you provided type "+typeof n}]},assertNoAdditionalProperties:function(e,t,n){let r=mE(t,n);if(r.length){return[{tag:"expectedNoAdditionalProperties",additionalProperties:r,message:"Additional properties when sending event "+e+": "+JSON.stringify(r)}]}return[]},assertNoAdditionalUserProperties:function(e,t,n){let r=mE(t,n);if(r.length){return[{tag:"expectedNoAdditionalUserProperties",additionalProperties:r,message:"Additional user properties when sending event "+e+": "+JSON.stringify(r)}]}return[]}};let PE,wE=1;yE=function(e,t,n,r,a){"undefined"!=typeof window&&wE>0&&Math.random()<wE&&fetch("https://api.avo.app/i",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ac:"qvjFhbwe0biLwwjGOjwS",br:"master",en:e,ev:t,ha:n,sc:"pvOMxiTKpoHAWDEF4z0y",se:(new Date).toISOString(),so:"OkL9kX1Hj",va:0===r.length,me:r,or:a})}).then((function(e){return e.json()})).then((function(e){wE=e.sa})).catch((function(){}))},gE=function(e,t,n,r){"undefined"!=typeof window&&wE>0&&Math.random()<wE&&fetch("https://api.avo.app/i",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ac:"qvjFhbwe0biLwwjGOjwS",br:"master",en:e,ty:t,sc:"pvOMxiTKpoHAWDEF4z0y",se:(new Date).toISOString(),so:"OkL9kX1Hj",va:0===n.length,me:n,or:r})}).then((function(e){return e.json()})).then((function(e){wE=e.sa})).catch((function(){}))};let EE=[],kE=!1;"undefined"!=typeof window&&window.addEventListener("message",(function(e){if("https://www.avo.app"!==e.origin)return;let t=document.getElementById("avo-debugger");if(t&&e&&e.data&&"avo-debugger-update-style"===e.data.type_)t.style=e.data.style;else if(t&&e&&e.data&&"avo-debugger-ready"===e.data.type_){let e={type_:"avo-debugger-boot-events",schemaId:"pvOMxiTKpoHAWDEF4z0y",href:window.location.href,events:EE};EE=[],kE=!0,t.contentWindow.postMessage(e,"https://www.avo.app/_debugger")}})),PE=function(e,t,n,r,a,i){if("undefined"==typeof window)return;let s={eventId:e,eventName:t,messages:n,timestamp:Date.now(),eventProperties:r,userProperties:a,groupProperties:i};if(kE){let e={type_:"avo-debugger-events",events:[s]};document.getElementById("avo-debugger").contentWindow.postMessage(e,"https://www.avo.app/_debugger")}else EE.push(s)};let TE={make:function(e,t){"undefined"!=typeof window?(void 0===window.mixpanel&&function(e,t){var n,r,a,i;t.__SV||(window.mixpanel=t,t._i=[],t.init=function(e,n,r){function s(e,t){var n=t.split(".");2==n.length&&(e=e[n[0]],t=n[1]),e[t]=function(){e.push([t].concat(Array.prototype.slice.call(arguments,0)))}}var o=t;for(void 0!==r?o=t[r]=[]:r="mixpanel",o.people=o.people||[],o.toString=function(e){var t="mixpanel";return"mixpanel"!==r&&(t+="."+r),e||(t+=" (stub)"),t},o.people.toString=function(){return o.toString(1)+".people (stub)"},a="disable time_event track track_pageview track_links track_forms track_with_groups add_group set_group remove_group register register_once alias unregister identify name_tag set_config reset opt_in_tracking opt_out_tracking has_opted_in_tracking has_opted_out_tracking clear_opt_in_out_tracking start_batch_senders people.set people.set_once people.unset people.increment people.append people.union people.track_charge people.clear_charges people.delete_user people.remove".split(" "),i=0;i<a.length;i++)s(o,a[i]);var l="set set_once union unset remove delete".split(" ");o.get_group=function(){function e(e){t[e]=function(){var t=arguments,r=[e].concat(Array.prototype.slice.call(t,0));o.push([n,r])}}for(var t={},n=["get_group"].concat(Array.prototype.slice.call(arguments,0)),r=0;r<l.length;r++)e(l[r]);return t},t._i.push([e,n,r])},t.__SV=1.2,(n=e.createElement("script")).type="text/javascript",n.async=!0,n.src="undefined"!=typeof MIXPANEL_CUSTOM_LIB_URL?MIXPANEL_CUSTOM_LIB_URL:"file:"===e.location.protocol&&"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js".match(/^\/\//)?"https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js":"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js",(r=e.getElementsByTagName("script")[0]).parentNode.insertBefore(n,r))}(document,window.mixpanel||[]),this.getInstance=()=>window.mixpanel,this.getInstance().init(e,t)):bE("window.mixpanel is not available in Node.js")},addCurrentUserToGroup:function(e,t){"undefined"!=typeof window&&this.getInstance().set_group(e,t)},logEvent:function(e,t){"undefined"!=typeof window&&this.getInstance().track(e,t)},logEventWithGroups:function(e,t,n){"undefined"!=typeof window&&this.getInstance().track_with_groups(e,t,n)},setUserProperties:function(e){"undefined"!=typeof window&&this.getInstance().people.set(e)},setGroupProperties:function(e,t,n){"undefined"!=typeof window&&this.getInstance().get_group(e,t).set(n)},identify:function(e){"undefined"!=typeof window&&this.getInstance().identify(e)},revenue:function(e,t){"undefined"!=typeof window&&this.getInstance().people.track_charge(e,t)},unidentify:function(){"undefined"!=typeof window&&this.getInstance().reset()}};let CE,IE,AE,OE,xE,NE,RE,DE,HE,FE,GE,UE,LE;function jE(e){null!==e.platform&&void 0!==e.platform&&(CE=e.platform),null!==e.appSource&&void 0!==e.appSource&&(IE=e.appSource),null!==e.systemPlan&&void 0!==e.systemPlan&&(AE=e.systemPlan),null!==e.appVersion&&void 0!==e.appVersion&&(OE=e.appVersion),null!==e.cpuarchitecture&&void 0!==e.cpuarchitecture&&(xE=e.cpuarchitecture),null!==e.systemHosts&&void 0!==e.systemHosts&&(NE=e.systemHosts),null!==e.systemSnippets&&void 0!==e.systemSnippets&&(RE=e.systemSnippets),null!==e.systemGroups&&void 0!==e.systemGroups&&(DE=e.systemGroups),null!==e.systemSharedHosts&&void 0!==e.systemSharedHosts&&(HE=e.systemSharedHosts),null!==e.systemSharedGroups&&void 0!==e.systemSharedGroups&&(FE=e.systemSharedGroups),null!==e.systemSharedSnippets&&void 0!==e.systemSharedSnippets&&(GE=e.systemSharedSnippets),null!==e.systemSnippetPackages&&void 0!==e.systemSnippetPackages&&(UE=e.systemSnippetPackages,BE(UE)),null!==e.systemSharedSnippetPackages&&void 0!==e.systemSharedSnippetPackages&&(LE=e.systemSharedSnippetPackages,qE(LE))}function ME(e,t,n){var r,a;null===oE&&(oE=e.env,void 0!==e.avoLogger&&(cE=e.avoLogger),!0===e.noop&&(lE=!0),lE&&oE==sE.Prod&&(bE("[avo] ****************************************************"),bE("[avo] WARNING Avo cannot be initialized in noop mode in production:"),bE("[avo] - Overwriting configuration with noop=false."),bE("[avo] - Please reach out if you want to be able to run Avo in production mode with noop=true"),bE("[avo] ****************************************************"),lE=!1),lE&&(_E("[avo] ****************************************************"),_E("[avo] Avo is now initialized in noop mode. This means:"),_E("[avo] - No events will be sent"),_E("[avo] - No network requests are made"),_E("[avo] ****************************************************")),void 0!==e.strict&&(uE=!1!==e.strict),void 0!==e.reportFailureAs&&(pE=e.reportFailureAs),dE=!lE&&("undefined"!=typeof window&&window.location.search.indexOf("avo_debug=1")>-1||!1!==e.webDebugger&&oE!==sE.Prod),lE||void 0===e.inspector?"prod"!==oE&&bE("[avo] Avo Inspector not provided in initAvo() call"):hE=e.inspector,jE(t),n=n||{},dE&&!lE&&((null===(r=e.webDebuggerOptions)||void 0===r?void 0:r.position)&&(a=e.webDebuggerOptions.position,"undefined"!=typeof window&&window.addEventListener("message",(function(e){if("avo-debugger-ready"===e.data.type_&&null!==a){var t={type_:"avo-debugger-position",position:a};document.getElementById("avo-debugger").contentWindow.postMessage(t,"https://www.avo.app/_debugger")}}))),function(){if("undefined"==typeof window)return;let e=function(){let e=document.createElement("iframe");document.body.appendChild(e),e.id="avo-debugger",e.src="https://www.avo.app/_debugger",e.style="display: none;"};document.body?e():document.addEventListener("DOMContentLoaded",e)}()),lE||(oE===sE.Prod&&TE.make("33f17a443becf835952c482848961160",n.mixpanel),oE===sE.Dev&&TE.make("bb7be59ea72efaec753697c6013b3a4f",n.mixpanel),oE===sE.Staging&&TE.make("712dee34a1d609cb0b0c44b0c14c8dd5",n.mixpanel),oE===sE.Dev&&gE(oE,"init",[],"init")))}function BE(e,t){let n=[];return null!=e&&(n=n.concat(SE.assertInt("LXRkNGrwby",t?"SystemSnippetPackages: "+t:"SystemSnippetPackages",e)),n=n.concat(SE.assertMin("LXRkNGrwby",t?"SystemSnippetPackages: "+t:"SystemSnippetPackages",0,e))),n}function KE(e,t){let n=[];return null!=e&&(n=n.concat(SE.assertInt("W9DBs0X2C",t?"Position: "+t:"Position",e)),n=n.concat(SE.assertMin("W9DBs0X2C",t?"Position: "+t:"Position",0,e))),n}function qE(e,t){let n=[];return null!=e&&(n=n.concat(SE.assertInt("oh72Fb99pm",t?"SystemSharedSnippetPackages: "+t:"SystemSharedSnippetPackages",e)),n=n.concat(SE.assertMin("oh72Fb99pm",t?"SystemSharedSnippetPackages: "+t:"SystemSharedSnippetPackages",0,e))),n}function VE(e,t){let n=[];return n=n.concat(SE.assertInt("ymKyyoK7m0",t?"SnippetPackageID: "+t:"SnippetPackageID",e)),n=n.concat(SE.assertMin("ymKyyoK7m0",t?"SnippetPackageID: "+t:"SnippetPackageID",-1,e)),n}function $E(e){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"_vPYKenif","a27f45d7e4993e2bf0d5256b17fc4114fd7e48c7b4fdfa85e5ea976c49a7151e",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Welcome Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("_vPYKenif","Welcome Screen Opened",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Welcome Screen Opened': "+e[0].message)}let t={};t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Welcome Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"_vPYKenif","a27f45d7e4993e2bf0d5256b17fc4114fd7e48c7b4fdfa85e5ea976c49a7151e"),TE.logEvent("Welcome Screen Opened",Object.assign({},t)))}function WE(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"ySRwLYMcF","960155d207dfbd9040c9ef2a80816b7ac1d3412b1034321ba7bac67ce136e726",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("User Login",{AuthMethod:e.authMethod,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{Email:e.email,Plan:e.plan}),dE&&PE("ySRwLYMcF","User Login",t,[{id:"1yGELHVfm8",name:"AuthMethod",value:e.authMethod},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[{id:"-R5kiliI5",name:"Email",value:e.email},{id:"Gbo7USoaG",name:"Plan",value:e.plan}],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'User Login': "+t[0].message)}let t={};t.AuthMethod=e.authMethod,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE);let n={};void 0!==e.email&&null!==e.email&&(n.$email=e.email),n.Plan=e.plan,lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("User Login",{AuthMethod:e.authMethod,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"ySRwLYMcF","960155d207dfbd9040c9ef2a80816b7ac1d3412b1034321ba7bac67ce136e726"),TE.identify(e.userId_),TE.setUserProperties(Object.assign({},n)),TE.logEvent("User Login",Object.assign({},t)))}function zE(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"FMEaeqrqC","86f23dff15f6d1572eaa0439bb81ebb527e996c802d2403d898498c9e1ca1503",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Trial Started",{Source:e.from,AuthMethod:e.authMethod,IntroductoryOffer:e.introductoryOffer,Time:e.time,UpgradeToProFunnelID:e.upgradeToProFunnelID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{Email:e.email,TrialEndDate:e.trialEndDate}),dE&&PE("FMEaeqrqC","Trial Started",t,[{id:"KV_0SzvdI",name:"Source",value:e.from},{id:"1yGELHVfm8",name:"AuthMethod",value:e.authMethod},{id:"Lk1S4CsSou",name:"IntroductoryOffer",value:e.introductoryOffer},{id:"kkJhdtDbsB",name:"Time",value:e.time},{id:"LxHTbfjiwj",name:"UpgradeToProFunnelID",value:e.upgradeToProFunnelID},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[{id:"-R5kiliI5",name:"Email",value:e.email},{id:"uoqM6H2WLH",name:"TrialEndDate",value:e.trialEndDate}],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Trial Started': "+t[0].message)}let t={};t.Source=e.from,void 0!==e.authMethod&&null!==e.authMethod&&(t.AuthMethod=e.authMethod),void 0!==e.introductoryOffer&&null!==e.introductoryOffer&&(t.IntroductoryOffer=e.introductoryOffer),void 0!==e.time&&null!==e.time&&(t.time=e.time),t.UpgradeToProFunnelID=e.upgradeToProFunnelID,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE);let n={};void 0!==e.email&&null!==e.email&&(n.$email=e.email),void 0!==e.trialEndDate&&null!==e.trialEndDate&&(n.TrialEndDate=e.trialEndDate),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Trial Started",{Source:e.from,AuthMethod:e.authMethod,IntroductoryOffer:e.introductoryOffer,Time:e.time,UpgradeToProFunnelID:e.upgradeToProFunnelID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"FMEaeqrqC","86f23dff15f6d1572eaa0439bb81ebb527e996c802d2403d898498c9e1ca1503"),TE.setUserProperties(Object.assign({},n)),TE.logEvent("Trial Started",Object.assign({},t)))}function JE(e){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"p1OMaKKHi","3b37b3e884fbd453d60512500783a0afb404e4c8e472d5ec3b5fa2b3851cb2ac",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Trial Dismissed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("p1OMaKKHi","Trial Dismissed",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Trial Dismissed': "+e[0].message)}let t={};t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Trial Dismissed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"p1OMaKKHi","3b37b3e884fbd453d60512500783a0afb404e4c8e472d5ec3b5fa2b3851cb2ac"),TE.logEvent("Trial Dismissed",Object.assign({},t)))}function XE(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"oBOl8mGks","81cc85c6f9b1c4e039e3478b68a1b82be5a3ba2e89ba807e6ebd58ecfaf7ae94",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Connection Established",{Type:e.type,HostChain:e.hostChain,Proxy:e.proxy,AgentForwarding:e.agentForwarding,AddressType:e.addressType,SharedEntity:e.isSharedEntity,IsSharedEntityOwner:e.isSharedEntityOwner,IsLocationTrackingEnabled:e.isLocationTrackingEnabled,SEPKey:e.sepkey,Snippet:e.snippet,ConnectionID:e.connectionID,FIDO2BasedKey:e.fido2BasedKey,ParentGroup:e.parentGroup,Port:e.port,Charset:e.charset,EnvironmentVariables:e.environmentVariables,Credentials:e.credentials,Username:e.username,Theme:e.theme,Mosh:e.mosh,CloudIntegration:e.cloudIntegration,HostsInChain:e.hostsInChain,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("oBOl8mGks","Connection Established",t,[{id:"4JK6HZoSy",name:"Type",value:e.type},{id:"hfEMKFB-W",name:"HostChain",value:e.hostChain},{id:"Ah7cxGtvs",name:"Proxy",value:e.proxy},{id:"i2MaNCX0T",name:"AgentForwarding",value:e.agentForwarding},{id:"swXL264i3",name:"AddressType",value:e.addressType},{id:"OPNqNxEuxS",name:"SharedEntity",value:e.isSharedEntity},{id:"WEcuaha6WC",name:"IsSharedEntityOwner",value:e.isSharedEntityOwner},{id:"_AYHwbh7r7",name:"IsLocationTrackingEnabled",value:e.isLocationTrackingEnabled},{id:"tlHBNp-4Ik",name:"SEPKey",value:e.sepkey},{id:"dvpH6RB7e1",name:"Snippet",value:e.snippet},{id:"LtX0SIqFoB",name:"ConnectionID",value:e.connectionID},{id:"d0wP8dzLwR",name:"FIDO2BasedKey",value:e.fido2BasedKey},{id:"_V7x0pN7h",name:"ParentGroup",value:e.parentGroup},{id:"NggaaqHaw",name:"Port",value:e.port},{id:"Qt2yxjeru",name:"Charset",value:e.charset},{id:"IEJoR6qrk",name:"EnvironmentVariables",value:e.environmentVariables},{id:"7uK7SjClI",name:"Credentials",value:e.credentials},{id:"Vo4DpSt7V",name:"Username",value:e.username},{id:"k5slDkAXX",name:"Theme",value:e.theme},{id:"HNqSfSOeH",name:"Mosh",value:e.mosh},{id:"9KGA7NDbUO",name:"CloudIntegration",value:e.cloudIntegration},{id:"l_C5WKHfwm",name:"HostsInChain",value:e.hostsInChain},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Connection Established': "+t[0].message)}let t={};void 0!==e.type&&null!==e.type&&(t.Protocol=e.type),t.HostChain=e.hostChain,t.Proxy=e.proxy,void 0!==e.agentForwarding&&null!==e.agentForwarding&&(t.AgentForwarding=e.agentForwarding),void 0!==e.addressType&&null!==e.addressType&&(t.AddressType=e.addressType),t.SharedEntity=e.isSharedEntity,void 0!==e.isSharedEntityOwner&&null!==e.isSharedEntityOwner&&(t.SharedEntityOwner=e.isSharedEntityOwner),void 0!==e.isLocationTrackingEnabled&&null!==e.isLocationTrackingEnabled&&(t.LocationTrackingEnabled=e.isLocationTrackingEnabled),void 0!==e.sepkey&&null!==e.sepkey&&(t.SEPKey=e.sepkey),t.Snippet=e.snippet,t.ConnectionID=e.connectionID,void 0!==e.fido2BasedKey&&null!==e.fido2BasedKey&&(t.FIDO2BasedKey=e.fido2BasedKey),t.ParentGroup=e.parentGroup,t.Port=e.port,t.Charset=e.charset,t.EnvironmentVariables=e.environmentVariables,t.Credentials=e.credentials,t.Username=e.username,t.Theme=e.theme,t.Mosh=e.mosh,void 0!==e.cloudIntegration&&null!==e.cloudIntegration&&(t.CloudIntegration=e.cloudIntegration),t.HostsInChain=e.hostsInChain,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Connection Established",{Type:e.type,HostChain:e.hostChain,Proxy:e.proxy,AgentForwarding:e.agentForwarding,AddressType:e.addressType,SharedEntity:e.isSharedEntity,IsSharedEntityOwner:e.isSharedEntityOwner,IsLocationTrackingEnabled:e.isLocationTrackingEnabled,SEPKey:e.sepkey,Snippet:e.snippet,ConnectionID:e.connectionID,FIDO2BasedKey:e.fido2BasedKey,ParentGroup:e.parentGroup,Port:e.port,Charset:e.charset,EnvironmentVariables:e.environmentVariables,Credentials:e.credentials,Username:e.username,Theme:e.theme,Mosh:e.mosh,CloudIntegration:e.cloudIntegration,HostsInChain:e.hostsInChain,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"oBOl8mGks","81cc85c6f9b1c4e039e3478b68a1b82be5a3ba2e89ba807e6ebd58ecfaf7ae94"),TE.logEvent("Connection Established",Object.assign({},t)))}function QE(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(function(e,t){let n=[];return null!=e&&(n=n.concat(SE.assertInt("GM283Ov5I",t?"Length: "+t:"Length",e)),n=n.concat(SE.assertMin("GM283Ov5I",t?"Length: "+t:"Length",0,e))),n}(e.length)),t=t.concat(KE(e.position)),t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"O-QPA07Fk","5eee97c37a10c09724edcac4d604eaaea888b314e52754025f6bdd8767f1dcfc",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Autocomplete",{Success:e.success,Length:e.length,Position:e.position,SuggestionSource:e.suggestionSource,CloseReason:e.closeReason,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("O-QPA07Fk","Autocomplete",t,[{id:"B4WRezXjG",name:"Success",value:e.success},{id:"GM283Ov5I",name:"Length",value:e.length},{id:"W9DBs0X2C",name:"Position",value:e.position},{id:"Zo7gsYe4UL",name:"SuggestionSource",value:e.suggestionSource},{id:"6TFRRfy1S",name:"CloseReason",value:e.closeReason},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Autocomplete': "+t[0].message)}let t={};t.Success=e.success,void 0!==e.length&&null!==e.length&&(t.Length=e.length),void 0!==e.position&&null!==e.position&&(t.Position=e.position),void 0!==e.suggestionSource&&null!==e.suggestionSource&&(t.SuggestionSource=e.suggestionSource),void 0!==e.closeReason&&null!==e.closeReason&&(t.CloseReason=e.closeReason),t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Autocomplete",{Success:e.success,Length:e.length,Position:e.position,SuggestionSource:e.suggestionSource,CloseReason:e.closeReason,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"O-QPA07Fk","5eee97c37a10c09724edcac4d604eaaea888b314e52754025f6bdd8767f1dcfc"),TE.logEvent("Autocomplete",Object.assign({},t)))}function YE(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"oUGxpVEk4","6235560074eb951cbfc3c7b860e26b486e4ce263d9cf58b23a424cf9d949dd8d",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Purchase Started",{Period:e.period,ProductID:e.productID,BuyNowButtonLocation:e.buyNowButtonLocation,UpgradeToProFunnelID:e.upgradeToProFunnelID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("oUGxpVEk4","Purchase Started",t,[{id:"c3Fu42Njx",name:"Period",value:e.period},{id:"gDYctvq6g",name:"ProductID",value:e.productID},{id:"pLarNQTsUH",name:"BuyNowButtonLocation",value:e.buyNowButtonLocation},{id:"LxHTbfjiwj",name:"UpgradeToProFunnelID",value:e.upgradeToProFunnelID},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Purchase Started': "+t[0].message)}let t={};void 0!==e.period&&null!==e.period&&(t.Period=e.period),void 0!==e.productID&&null!==e.productID&&(t.ProductID=e.productID),t.BuyNowButtonLocation=e.buyNowButtonLocation,t.UpgradeToProFunnelID=e.upgradeToProFunnelID,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Purchase Started",{Period:e.period,ProductID:e.productID,BuyNowButtonLocation:e.buyNowButtonLocation,UpgradeToProFunnelID:e.upgradeToProFunnelID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"oUGxpVEk4","6235560074eb951cbfc3c7b860e26b486e4ce263d9cf58b23a424cf9d949dd8d"),TE.logEvent("Purchase Started",Object.assign({},t)))}function ZE(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"GaZWQ3Hfv","53a143c4298efb6999410626a23427956a0eb0fd72dca41e06f601312cb8e75c",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Choose Plan Screen Opened",{ChoosePlanSource:e.choosePlanSource,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("GaZWQ3Hfv","Choose Plan Screen Opened",t,[{id:"aiR-1EncX1",name:"ChoosePlanSource",value:e.choosePlanSource},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Choose Plan Screen Opened': "+t[0].message)}let t={};t.ChoosePlanSource=e.choosePlanSource,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Choose Plan Screen Opened",{ChoosePlanSource:e.choosePlanSource,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"GaZWQ3Hfv","53a143c4298efb6999410626a23427956a0eb0fd72dca41e06f601312cb8e75c"),TE.logEvent("Choose Plan Screen Opened",Object.assign({},t)))}function ek(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"JTT4rIjY5","cebb93cc22ab6924788cee7ab7af2831dc99350e12b1a939d6e4b0b3ae20d090",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("New Host Button Pressed",{HostCreationOrigin:e.hostCreationOrigin,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("JTT4rIjY5","New Host Button Pressed",t,[{id:"CKBXncUUxf",name:"HostCreationOrigin",value:e.hostCreationOrigin},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'New Host Button Pressed': "+t[0].message)}let t={};t.HostCreationOrigin=e.hostCreationOrigin,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("New Host Button Pressed",{HostCreationOrigin:e.hostCreationOrigin,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"JTT4rIjY5","cebb93cc22ab6924788cee7ab7af2831dc99350e12b1a939d6e4b0b3ae20d090"),TE.logEvent("New Host Button Pressed",Object.assign({},t)))}function tk(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"V7Zm_RvAu","31a3624013d940eea52532dfc352bc41f397777461ea51e6b0bc55a113aede44",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("New Host Created",{SharedEntity:e.isSharedEntity,TeamRole:e.eventTeamRole,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("V7Zm_RvAu","New Host Created",t,[{id:"OPNqNxEuxS",name:"SharedEntity",value:e.isSharedEntity},{id:"6LKqiSL8zD",name:"TeamRole",value:e.eventTeamRole},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'New Host Created': "+t[0].message)}let t={};t.SharedEntity=e.isSharedEntity,void 0!==e.eventTeamRole&&null!==e.eventTeamRole&&(t.TeamRole=e.eventTeamRole),t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("New Host Created",{SharedEntity:e.isSharedEntity,TeamRole:e.eventTeamRole,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"V7Zm_RvAu","31a3624013d940eea52532dfc352bc41f397777461ea51e6b0bc55a113aede44"),TE.logEvent("New Host Created",Object.assign({},t)))}function nk(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"Iq9GkMf57","11094263b9e11ca89533e419283423d783f25212a93f08365c5070c0690e33f8",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Team Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("Iq9GkMf57","Team Screen Opened",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Team Screen Opened': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Team Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"Iq9GkMf57","11094263b9e11ca89533e419283423d783f25212a93f08365c5070c0690e33f8"),TE.logEvent("Team Screen Opened",Object.assign({},e)))}function rk(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"DSEk6QMb7","913a1bb120ce73620388623f6c724a9788df2d8bc5ed35d707887449f3ed3f8f",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Team Plan Tab Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("DSEk6QMb7","Team Plan Tab Opened",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Team Plan Tab Opened': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Team Plan Tab Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"DSEk6QMb7","913a1bb120ce73620388623f6c724a9788df2d8bc5ed35d707887449f3ed3f8f"),TE.logEvent("Team Plan Tab Opened",Object.assign({},e)))}function ak(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"h_Qv5wNHY","111ca3a815f8f834c4c38e199c6858c0c60beac12a84192c9ddcea5771a80812",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Connection Initiated",{Type:e.type,HostChain:e.hostChain,Proxy:e.proxy,AgentForwarding:e.agentForwarding,AddressType:e.addressType,SharedEntity:e.isSharedEntity,IsSharedEntityOwner:e.isSharedEntityOwner,IsLocationTrackingEnabled:e.isLocationTrackingEnabled,SEPKey:e.sepkey,Snippet:e.snippet,ConnectionID:e.connectionID,FIDO2BasedKey:e.fido2BasedKey,ParentGroup:e.parentGroup,Port:e.port,Charset:e.charset,EnvironmentVariables:e.environmentVariables,Credentials:e.credentials,Username:e.username,Theme:e.theme,Mosh:e.mosh,ConnectionOrigin:e.connectionOrigin,CredentialsSharingMode:e.credentialsSharingMode,CloudIntegration:e.cloudIntegration,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{History:e.history,AcquisitionChannel:e.acquisitionChannel}),dE&&PE("h_Qv5wNHY","Connection Initiated",t,[{id:"4JK6HZoSy",name:"Type",value:e.type},{id:"hfEMKFB-W",name:"HostChain",value:e.hostChain},{id:"Ah7cxGtvs",name:"Proxy",value:e.proxy},{id:"i2MaNCX0T",name:"AgentForwarding",value:e.agentForwarding},{id:"swXL264i3",name:"AddressType",value:e.addressType},{id:"OPNqNxEuxS",name:"SharedEntity",value:e.isSharedEntity},{id:"WEcuaha6WC",name:"IsSharedEntityOwner",value:e.isSharedEntityOwner},{id:"_AYHwbh7r7",name:"IsLocationTrackingEnabled",value:e.isLocationTrackingEnabled},{id:"tlHBNp-4Ik",name:"SEPKey",value:e.sepkey},{id:"dvpH6RB7e1",name:"Snippet",value:e.snippet},{id:"LtX0SIqFoB",name:"ConnectionID",value:e.connectionID},{id:"d0wP8dzLwR",name:"FIDO2BasedKey",value:e.fido2BasedKey},{id:"_V7x0pN7h",name:"ParentGroup",value:e.parentGroup},{id:"NggaaqHaw",name:"Port",value:e.port},{id:"Qt2yxjeru",name:"Charset",value:e.charset},{id:"IEJoR6qrk",name:"EnvironmentVariables",value:e.environmentVariables},{id:"7uK7SjClI",name:"Credentials",value:e.credentials},{id:"Vo4DpSt7V",name:"Username",value:e.username},{id:"k5slDkAXX",name:"Theme",value:e.theme},{id:"HNqSfSOeH",name:"Mosh",value:e.mosh},{id:"53c_AHgLyJ",name:"ConnectionOrigin",value:e.connectionOrigin},{id:"EAhyJvlH96",name:"CredentialsSharingMode",value:e.credentialsSharingMode},{id:"9KGA7NDbUO",name:"CloudIntegration",value:e.cloudIntegration},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[{id:"btyOwlRVD",name:"History",value:e.history},{id:"LJQLa2zMX",name:"AcquisitionChannel",value:e.acquisitionChannel}],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Connection Initiated': "+t[0].message)}let t={};void 0!==e.type&&null!==e.type&&(t.Protocol=e.type),t.HostChain=e.hostChain,t.Proxy=e.proxy,void 0!==e.agentForwarding&&null!==e.agentForwarding&&(t.AgentForwarding=e.agentForwarding),void 0!==e.addressType&&null!==e.addressType&&(t.AddressType=e.addressType),t.SharedEntity=e.isSharedEntity,void 0!==e.isSharedEntityOwner&&null!==e.isSharedEntityOwner&&(t.SharedEntityOwner=e.isSharedEntityOwner),void 0!==e.isLocationTrackingEnabled&&null!==e.isLocationTrackingEnabled&&(t.LocationTrackingEnabled=e.isLocationTrackingEnabled),void 0!==e.sepkey&&null!==e.sepkey&&(t.SEPKey=e.sepkey),t.Snippet=e.snippet,t.ConnectionID=e.connectionID,void 0!==e.fido2BasedKey&&null!==e.fido2BasedKey&&(t.FIDO2BasedKey=e.fido2BasedKey),t.ParentGroup=e.parentGroup,t.Port=e.port,t.Charset=e.charset,t.EnvironmentVariables=e.environmentVariables,t.Credentials=e.credentials,t.Username=e.username,t.Theme=e.theme,t.Mosh=e.mosh,void 0!==e.connectionOrigin&&null!==e.connectionOrigin&&(t.ConnectionOrigin=e.connectionOrigin),void 0!==e.credentialsSharingMode&&null!==e.credentialsSharingMode&&(t.CredentialsSharingMode=e.credentialsSharingMode),void 0!==e.cloudIntegration&&null!==e.cloudIntegration&&(t.CloudIntegration=e.cloudIntegration),t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE);let n={};n.History=e.history,void 0!==e.acquisitionChannel&&null!==e.acquisitionChannel&&(n.AcquisitionChannel=e.acquisitionChannel),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Connection Initiated",{Type:e.type,HostChain:e.hostChain,Proxy:e.proxy,AgentForwarding:e.agentForwarding,AddressType:e.addressType,SharedEntity:e.isSharedEntity,IsSharedEntityOwner:e.isSharedEntityOwner,IsLocationTrackingEnabled:e.isLocationTrackingEnabled,SEPKey:e.sepkey,Snippet:e.snippet,ConnectionID:e.connectionID,FIDO2BasedKey:e.fido2BasedKey,ParentGroup:e.parentGroup,Port:e.port,Charset:e.charset,EnvironmentVariables:e.environmentVariables,Credentials:e.credentials,Username:e.username,Theme:e.theme,Mosh:e.mosh,ConnectionOrigin:e.connectionOrigin,CredentialsSharingMode:e.credentialsSharingMode,CloudIntegration:e.cloudIntegration,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"h_Qv5wNHY","111ca3a815f8f834c4c38e199c6858c0c60beac12a84192c9ddcea5771a80812"),TE.setUserProperties(Object.assign({},n)),TE.logEvent("Connection Initiated",Object.assign({},t)))}function ik(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"gIuHgQ8xT","1c34909a0cc551c7e4f6561b99f3deb0dd2a6a608879c07597167c568a765634",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Connection Failed",{Type:e.type,HostChain:e.hostChain,Proxy:e.proxy,AgentForwarding:e.agentForwarding,AddressType:e.addressType,SharedEntity:e.isSharedEntity,IsSharedEntityOwner:e.isSharedEntityOwner,IsLocationTrackingEnabled:e.isLocationTrackingEnabled,SEPKey:e.sepkey,Snippet:e.snippet,ConnectionID:e.connectionID,FIDO2BasedKey:e.fido2BasedKey,ParentGroup:e.parentGroup,Port:e.port,Charset:e.charset,EnvironmentVariables:e.environmentVariables,Credentials:e.credentials,Username:e.username,Theme:e.theme,Mosh:e.mosh,Reason:e.failureReason,ConnectionErrorCode:e.connectionErrorCode,CloudIntegration:e.cloudIntegration,HostsInChain:e.hostsInChain,SSHServer:e.sshserver,SSHServerComment:e.sshserverComment,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("gIuHgQ8xT","Connection Failed",t,[{id:"4JK6HZoSy",name:"Type",value:e.type},{id:"hfEMKFB-W",name:"HostChain",value:e.hostChain},{id:"Ah7cxGtvs",name:"Proxy",value:e.proxy},{id:"i2MaNCX0T",name:"AgentForwarding",value:e.agentForwarding},{id:"swXL264i3",name:"AddressType",value:e.addressType},{id:"OPNqNxEuxS",name:"SharedEntity",value:e.isSharedEntity},{id:"WEcuaha6WC",name:"IsSharedEntityOwner",value:e.isSharedEntityOwner},{id:"_AYHwbh7r7",name:"IsLocationTrackingEnabled",value:e.isLocationTrackingEnabled},{id:"tlHBNp-4Ik",name:"SEPKey",value:e.sepkey},{id:"dvpH6RB7e1",name:"Snippet",value:e.snippet},{id:"LtX0SIqFoB",name:"ConnectionID",value:e.connectionID},{id:"d0wP8dzLwR",name:"FIDO2BasedKey",value:e.fido2BasedKey},{id:"_V7x0pN7h",name:"ParentGroup",value:e.parentGroup},{id:"NggaaqHaw",name:"Port",value:e.port},{id:"Qt2yxjeru",name:"Charset",value:e.charset},{id:"IEJoR6qrk",name:"EnvironmentVariables",value:e.environmentVariables},{id:"7uK7SjClI",name:"Credentials",value:e.credentials},{id:"Vo4DpSt7V",name:"Username",value:e.username},{id:"k5slDkAXX",name:"Theme",value:e.theme},{id:"HNqSfSOeH",name:"Mosh",value:e.mosh},{id:"eVNjeYObne",name:"Reason",value:e.failureReason},{id:"KXtb8IonD7",name:"ConnectionErrorCode",value:e.connectionErrorCode},{id:"9KGA7NDbUO",name:"CloudIntegration",value:e.cloudIntegration},{id:"l_C5WKHfwm",name:"HostsInChain",value:e.hostsInChain},{id:"N0qFTBDXA",name:"SSHServer",value:e.sshserver},{id:"zG_hDC9QO",name:"SSHServerComment",value:e.sshserverComment},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Connection Failed': "+t[0].message)}let t={};void 0!==e.type&&null!==e.type&&(t.Protocol=e.type),t.HostChain=e.hostChain,t.Proxy=e.proxy,void 0!==e.agentForwarding&&null!==e.agentForwarding&&(t.AgentForwarding=e.agentForwarding),void 0!==e.addressType&&null!==e.addressType&&(t.AddressType=e.addressType),t.SharedEntity=e.isSharedEntity,void 0!==e.isSharedEntityOwner&&null!==e.isSharedEntityOwner&&(t.SharedEntityOwner=e.isSharedEntityOwner),void 0!==e.isLocationTrackingEnabled&&null!==e.isLocationTrackingEnabled&&(t.LocationTrackingEnabled=e.isLocationTrackingEnabled),void 0!==e.sepkey&&null!==e.sepkey&&(t.SEPKey=e.sepkey),t.Snippet=e.snippet,t.ConnectionID=e.connectionID,void 0!==e.fido2BasedKey&&null!==e.fido2BasedKey&&(t.FIDO2BasedKey=e.fido2BasedKey),t.ParentGroup=e.parentGroup,t.Port=e.port,t.Charset=e.charset,t.EnvironmentVariables=e.environmentVariables,t.Credentials=e.credentials,t.Username=e.username,t.Theme=e.theme,t.Mosh=e.mosh,t.Reason=e.failureReason,void 0!==e.connectionErrorCode&&null!==e.connectionErrorCode&&(t.ConnectionErrorCode=e.connectionErrorCode),void 0!==e.cloudIntegration&&null!==e.cloudIntegration&&(t.CloudIntegration=e.cloudIntegration),t.HostsInChain=e.hostsInChain,void 0!==e.sshserver&&null!==e.sshserver&&(t.SSHServer=e.sshserver),void 0!==e.sshserverComment&&null!==e.sshserverComment&&(t.SSHServerComment=e.sshserverComment),t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Connection Failed",{Type:e.type,HostChain:e.hostChain,Proxy:e.proxy,AgentForwarding:e.agentForwarding,AddressType:e.addressType,SharedEntity:e.isSharedEntity,IsSharedEntityOwner:e.isSharedEntityOwner,IsLocationTrackingEnabled:e.isLocationTrackingEnabled,SEPKey:e.sepkey,Snippet:e.snippet,ConnectionID:e.connectionID,FIDO2BasedKey:e.fido2BasedKey,ParentGroup:e.parentGroup,Port:e.port,Charset:e.charset,EnvironmentVariables:e.environmentVariables,Credentials:e.credentials,Username:e.username,Theme:e.theme,Mosh:e.mosh,Reason:e.failureReason,ConnectionErrorCode:e.connectionErrorCode,CloudIntegration:e.cloudIntegration,HostsInChain:e.hostsInChain,SSHServer:e.sshserver,SSHServerComment:e.sshserverComment,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"gIuHgQ8xT","1c34909a0cc551c7e4f6561b99f3deb0dd2a6a608879c07597167c568a765634"),TE.logEvent("Connection Failed",Object.assign({},t)))}function sk(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"RsiD2IlTr","62f806155c1cb8c2038a7fb539ea741a441693ddc744b48cb4b3da09657f5233",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("App Opened",{OptionAsMeta:e.optionAsMeta,HardwareKeyboard:e.hardwareKeyboard,AppColorTheme:e.appColorTheme,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{Groups:e.groups,Keys:e.keys,Identities:e.identities,PortForwardings:e.portForwardings,History:e.history,KnownHosts:e.knownHosts,SyncKeyPasswords:e.syncKeyPasswords,ChoosePlanExperiment:e.choosePlanExperiment,TeamOwner:e.teamOwner,Snippets:e.snippets,Hosts:e.hosts,SnippetPackages:e.snippetPackages,GlobalTerminalTheme:e.globalTerminalTheme,TerminalFont:e.terminalFont,Certificates:e.certificates}),dE&&PE("RsiD2IlTr","App Opened",t,[{id:"quzA-qa5qB",name:"OptionAsMeta",value:e.optionAsMeta},{id:"AO0nxC5_Eb",name:"HardwareKeyboard",value:e.hardwareKeyboard},{id:"U1nxNhexeT",name:"AppColorTheme",value:e.appColorTheme},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[{id:"CLYW2g_g-",name:"Groups",value:e.groups},{id:"C-ALvHBy4",name:"Keys",value:e.keys},{id:"QqbeHQnj5",name:"Identities",value:e.identities},{id:"bD0m1yMKp",name:"PortForwardings",value:e.portForwardings},{id:"btyOwlRVD",name:"History",value:e.history},{id:"lPyFjA1BH",name:"KnownHosts",value:e.knownHosts},{id:"cCL22g8r9",name:"SyncKeyPasswords",value:e.syncKeyPasswords},{id:"2C_Wkbl02",name:"ChoosePlanExperiment",value:e.choosePlanExperiment},{id:"fW1suTDaw",name:"TeamOwner",value:e.teamOwner},{id:"pPjLC263t",name:"Snippets",value:e.snippets},{id:"RQlk4dgN-",name:"Hosts",value:e.hosts},{id:"arkc-Mgeq",name:"SnippetPackages",value:e.snippetPackages},{id:"Y6gLgMSQN",name:"GlobalTerminalTheme",value:e.globalTerminalTheme},{id:"mpEeos7N6",name:"TerminalFont",value:e.terminalFont},{id:"oghxwszWAr",name:"Certificates",value:e.certificates}],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'App Opened': "+t[0].message)}let t={};void 0!==e.optionAsMeta&&null!==e.optionAsMeta&&(t.OptionAsMeta=e.optionAsMeta),void 0!==e.hardwareKeyboard&&null!==e.hardwareKeyboard&&(t.HardwareKeyboard=e.hardwareKeyboard),void 0!==e.appColorTheme&&null!==e.appColorTheme&&(t.AppColorTheme=e.appColorTheme),t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE);let n={};n.Groups=e.groups,n.Keys=e.keys,n.Identities=e.identities,n.PortForwardings=e.portForwardings,n.History=e.history,n.KnownHosts=e.knownHosts,n.SyncKeyPasswords=e.syncKeyPasswords,void 0!==e.choosePlanExperiment&&null!==e.choosePlanExperiment&&(n.ChoosePlanExperiment=e.choosePlanExperiment),void 0!==e.teamOwner&&null!==e.teamOwner&&(n.TeamOwner=e.teamOwner),n.Snippets=e.snippets,n.Hosts=e.hosts,n.SnippetPackages=e.snippetPackages,void 0!==e.globalTerminalTheme&&null!==e.globalTerminalTheme&&(n.GlobalTerminalTheme=e.globalTerminalTheme),n.TerminalFont=e.terminalFont,n.Certificates=e.certificates,lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("App Opened",{OptionAsMeta:e.optionAsMeta,HardwareKeyboard:e.hardwareKeyboard,AppColorTheme:e.appColorTheme,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"RsiD2IlTr","62f806155c1cb8c2038a7fb539ea741a441693ddc744b48cb4b3da09657f5233"),TE.setUserProperties(Object.assign({},n)),TE.logEvent("App Opened",Object.assign({},t)))}function ok(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"kCj7HGL9I","a15b15d388cb54ca7d772b5c485e0ecfe5080df647dac1aec49bcda31b82822a",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Sync Failed",{ErrorCode:e.errorCode,FailReason:e.failReason,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("kCj7HGL9I","Sync Failed",t,[{id:"wq_Cu081p",name:"ErrorCode",value:e.errorCode},{id:"ExzuVZSz89",name:"FailReason",value:e.failReason},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Sync Failed': "+t[0].message)}let t={};t.ErrorCode=e.errorCode,void 0!==e.failReason&&null!==e.failReason&&(t.FailReason=e.failReason),t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Sync Failed",{ErrorCode:e.errorCode,FailReason:e.failReason,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"kCj7HGL9I","a15b15d388cb54ca7d772b5c485e0ecfe5080df647dac1aec49bcda31b82822a"),TE.logEvent("Sync Failed",Object.assign({},t)))}function lk(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"1jcjYb10i","99a87cb83fb387ece6127bb4a2a132686269755c643ba2c753cb91eecce655d5",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("User Logout",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("1jcjYb10i","User Logout",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'User Logout': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("User Logout",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"1jcjYb10i","99a87cb83fb387ece6127bb4a2a132686269755c643ba2c753cb91eecce655d5"),TE.logEvent("User Logout",Object.assign({},e)),TE.unidentify())}function ck(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"6FWCuI5PS","397d7dff47a8d9b23eaed55f511c294cd15c9d20d5910e5eac8ae032dfe558a6",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Download Button Pressed",{DownloadPlatform:e.downloadPlatform,DownloadButtonLocation:e.downloadButtonLocation,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("6FWCuI5PS","Download Button Pressed",t,[{id:"gYbcr8Ydm",name:"DownloadPlatform",value:e.downloadPlatform},{id:"LIMTk61yK",name:"DownloadButtonLocation",value:e.downloadButtonLocation},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Download Button Pressed': "+t[0].message)}let t={};t.DownloadPlatform=e.downloadPlatform,t.DownloadButtonLocation=e.downloadButtonLocation,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Download Button Pressed",{DownloadPlatform:e.downloadPlatform,DownloadButtonLocation:e.downloadButtonLocation,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"6FWCuI5PS","397d7dff47a8d9b23eaed55f511c294cd15c9d20d5910e5eac8ae032dfe558a6"),TE.logEvent("Download Button Pressed",Object.assign({},t)))}function uk(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"IXY0ZlSN3","8f106e376e331d0d07173d15dce76d5cceb30a0878f1709991005d6aa333e7e1",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Purchase Dismissed",{Reason:e.reason,ProductID:e.productID,UpgradeToProFunnelID:e.upgradeToProFunnelID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("IXY0ZlSN3","Purchase Dismissed",t,[{id:"zociz0dWi",name:"Reason",value:e.reason},{id:"gDYctvq6g",name:"ProductID",value:e.productID},{id:"LxHTbfjiwj",name:"UpgradeToProFunnelID",value:e.upgradeToProFunnelID},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Purchase Dismissed': "+t[0].message)}let t={};t.Reason=e.reason,t.ProductID=e.productID,t.UpgradeToProFunnelID=e.upgradeToProFunnelID,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Purchase Dismissed",{Reason:e.reason,ProductID:e.productID,UpgradeToProFunnelID:e.upgradeToProFunnelID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"IXY0ZlSN3","8f106e376e331d0d07173d15dce76d5cceb30a0878f1709991005d6aa333e7e1"),TE.logEvent("Purchase Dismissed",Object.assign({},t)))}function pk(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(function(e,t){let n=[];return n=n.concat(SE.assertInt("JQRgbHj1p8",t?"CryptorVersion: "+t:"CryptorVersion",e)),n=n.concat(SE.assertMin("JQRgbHj1p8",t?"CryptorVersion: "+t:"CryptorVersion",0,e)),n=n.concat(SE.assertMax("JQRgbHj1p8",t?"CryptorVersion: "+t:"CryptorVersion",4,e)),n}(e.cryptorVersion)),t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"7aAZDGtTJl","8a034b1d883248622a2d7750fc6323b40c57ba4747a444e3264b3d755415bdb9",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Crypto Error",{Action:e.action,Entity:e.entity,EntityID:e.entityID,CryptorVersion:e.cryptorVersion,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("7aAZDGtTJl","Crypto Error",t,[{id:"7_qQHXAyKt",name:"Action",value:e.action},{id:"IdLc6aidYP",name:"Entity",value:e.entity},{id:"Gn7pMin78i",name:"EntityID",value:e.entityID},{id:"JQRgbHj1p8",name:"CryptorVersion",value:e.cryptorVersion},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Crypto Error': "+t[0].message)}let t={};t.Action=e.action,t.Entity=e.entity,void 0!==e.entityID&&null!==e.entityID&&(t.EntityID=e.entityID),t.CryptorVersion=e.cryptorVersion,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Crypto Error",{Action:e.action,Entity:e.entity,EntityID:e.entityID,CryptorVersion:e.cryptorVersion,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"7aAZDGtTJl","8a034b1d883248622a2d7750fc6323b40c57ba4747a444e3264b3d755415bdb9"),TE.logEvent("Crypto Error",Object.assign({},t)))}function dk(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"4HvSEgFEyD","418d40fa9ad6e421b9065c594223114f17bc6e24598ea5933af435f5e674e3a0",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Option as Meta Changed",{OptionAsMeta:e.optionAsMeta,HardwareKeyboard:e.hardwareKeyboard,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("4HvSEgFEyD","Option as Meta Changed",t,[{id:"quzA-qa5qB",name:"OptionAsMeta",value:e.optionAsMeta},{id:"AO0nxC5_Eb",name:"HardwareKeyboard",value:e.hardwareKeyboard},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Option as Meta Changed': "+t[0].message)}let t={};void 0!==e.optionAsMeta&&null!==e.optionAsMeta&&(t.OptionAsMeta=e.optionAsMeta),void 0!==e.hardwareKeyboard&&null!==e.hardwareKeyboard&&(t.HardwareKeyboard=e.hardwareKeyboard),t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Option as Meta Changed",{OptionAsMeta:e.optionAsMeta,HardwareKeyboard:e.hardwareKeyboard,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"4HvSEgFEyD","418d40fa9ad6e421b9065c594223114f17bc6e24598ea5933af435f5e674e3a0"),TE.logEvent("Option as Meta Changed",Object.assign({},t)))}function hk(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"0pzgLeQLg4","3ed99d2d7f587b87671d18652a3a10337360b945422c7c224f41e2eb57c7fda0",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("New Port Forwarding Rule Button Pressed",{PortForwardingFormType:e.portForwardingFormType,NewPortForwardingLocation:e.newPortForwardingLocation,PortForwardingType:e.portForwardingType,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("0pzgLeQLg4","New Port Forwarding Rule Button Pressed",t,[{id:"4RAzf2u5DV",name:"PortForwardingFormType",value:e.portForwardingFormType},{id:"axjLqWrW3",name:"NewPortForwardingLocation",value:e.newPortForwardingLocation},{id:"vsXVGIjJfk",name:"PortForwardingType",value:e.portForwardingType},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'New Port Forwarding Rule Button Pressed': "+t[0].message)}let t={};t.PortForwardingFormType=e.portForwardingFormType,t.NewPortForwardingLocation=e.newPortForwardingLocation,t.PortForwardingType=e.portForwardingType,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("New Port Forwarding Rule Button Pressed",{PortForwardingFormType:e.portForwardingFormType,NewPortForwardingLocation:e.newPortForwardingLocation,PortForwardingType:e.portForwardingType,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"0pzgLeQLg4","3ed99d2d7f587b87671d18652a3a10337360b945422c7c224f41e2eb57c7fda0"),TE.logEvent("New Port Forwarding Rule Button Pressed",Object.assign({},t)))}function fk(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"m0fm_KJ6fF","3132ec3305e4c876c78a26b207173aa38faa60c67fa8e3c76f1d16d8d4be7c29",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("New Port Forwarding Rule Created",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("m0fm_KJ6fF","New Port Forwarding Rule Created",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'New Port Forwarding Rule Created': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("New Port Forwarding Rule Created",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"m0fm_KJ6fF","3132ec3305e4c876c78a26b207173aa38faa60c67fa8e3c76f1d16d8d4be7c29"),TE.logEvent("New Port Forwarding Rule Created",Object.assign({},e)))}function mk(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"PNseUXkPYd","459bae2b3589cca5ff2534b2e6ae72343000ec730855a977a32d242ba2187660",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Learn More About Team Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{PremiumToTeamAppExperiment:e.premiumToTeamAppExperiment}),dE&&PE("PNseUXkPYd","Learn More About Team Button Pressed",t,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[{id:"TNUDtcXrEE",name:"PremiumToTeamAppExperiment",value:e.premiumToTeamAppExperiment}],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Learn More About Team Button Pressed': "+t[0].message)}let t={};t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE);let n={};void 0!==e.premiumToTeamAppExperiment&&null!==e.premiumToTeamAppExperiment&&(n.PremiumToTeamAppExperiment=e.premiumToTeamAppExperiment),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Learn More About Team Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"PNseUXkPYd","459bae2b3589cca5ff2534b2e6ae72343000ec730855a977a32d242ba2187660"),TE.setUserProperties(Object.assign({},n)),TE.logEvent("Learn More About Team Button Pressed",Object.assign({},t)))}function Sk(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"JwxPNn3mfp","6359ffa9bc9edadfc47819b74217492122bbba09a01db765db1abfe1c678fc55",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Menu Banner Dismissed",{PromoType:e.promoType,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("JwxPNn3mfp","Menu Banner Dismissed",t,[{id:"5wNDwJ-3K3",name:"PromoType",value:e.promoType},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Menu Banner Dismissed': "+t[0].message)}let t={};void 0!==e.promoType&&null!==e.promoType&&(t.PromoType=e.promoType),t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Menu Banner Dismissed",{PromoType:e.promoType,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"JwxPNn3mfp","6359ffa9bc9edadfc47819b74217492122bbba09a01db765db1abfe1c678fc55"),TE.logEvent("Menu Banner Dismissed",Object.assign({},t)))}function yk(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"KAg8tFGW-0","9171379b6711555f5eed849eaeee464176a9121fa644c0f44f581a03b6872eb1",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Autocomplete Setting Changed",{AutocompleteState:e.autocompleteState,AutocompleteType:e.autocompleteType,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("KAg8tFGW-0","Autocomplete Setting Changed",t,[{id:"vo76VoR02V",name:"AutocompleteState",value:e.autocompleteState},{id:"JfertE6mM",name:"AutocompleteType",value:e.autocompleteType},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Autocomplete Setting Changed': "+t[0].message)}let t={};t.AutocompleteState=e.autocompleteState,t.AutocompleteType=e.autocompleteType,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Autocomplete Setting Changed",{AutocompleteState:e.autocompleteState,AutocompleteType:e.autocompleteType,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"KAg8tFGW-0","9171379b6711555f5eed849eaeee464176a9121fa644c0f44f581a03b6872eb1"),TE.logEvent("Autocomplete Setting Changed",Object.assign({},t)))}function gk(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"cmnBUmhLGq","a6ded3cf5c16af676f14cdafced22782d45ed9c9b1e3f82f0cf2c5b16e757795",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Keychain Item Created",{KeychainItemLocation:e.keychainItemLocation,KeySource:e.keySource,KeychainItem:e.keychainItem,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{SEPKeys:e.sepkeys,Identities:e.identities,Keys:e.keys,Certificates:e.certificates}),dE&&PE("cmnBUmhLGq","Keychain Item Created",t,[{id:"yazyYoYkq",name:"KeychainItemLocation",value:e.keychainItemLocation},{id:"u1WQcoOF-",name:"KeySource",value:e.keySource},{id:"-Z42kquDH",name:"KeychainItem",value:e.keychainItem},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[{id:"P_CE4kdFW8",name:"SEPKeys",value:e.sepkeys},{id:"QqbeHQnj5",name:"Identities",value:e.identities},{id:"C-ALvHBy4",name:"Keys",value:e.keys},{id:"oghxwszWAr",name:"Certificates",value:e.certificates}],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Keychain Item Created': "+t[0].message)}let t={};t.KeychainItemLocation=e.keychainItemLocation,t.KeySource=e.keySource,t.KeychainItem=e.keychainItem,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE);let n={};n.SEPKeys=e.sepkeys,n.Identities=e.identities,n.Keys=e.keys,n.Certificates=e.certificates,lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Keychain Item Created",{KeychainItemLocation:e.keychainItemLocation,KeySource:e.keySource,KeychainItem:e.keychainItem,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"cmnBUmhLGq","a6ded3cf5c16af676f14cdafced22782d45ed9c9b1e3f82f0cf2c5b16e757795"),TE.setUserProperties(Object.assign({},n)),TE.logEvent("Keychain Item Created",Object.assign({},t)))}function vk(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"XRFTg4b8L6","2cc04fb0406057c8fe4964d31a6dd8c76a19d1c56409cfafd76f304c86e7a37c",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("New Group Button Pressed",{CreateGroupOrigin:e.createGroupOrigin,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("XRFTg4b8L6","New Group Button Pressed",t,[{id:"QukBAObz_",name:"CreateGroupOrigin",value:e.createGroupOrigin},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'New Group Button Pressed': "+t[0].message)}let t={};t.CreateGroupOrigin=e.createGroupOrigin,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("New Group Button Pressed",{CreateGroupOrigin:e.createGroupOrigin,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"XRFTg4b8L6","2cc04fb0406057c8fe4964d31a6dd8c76a19d1c56409cfafd76f304c86e7a37c"),TE.logEvent("New Group Button Pressed",Object.assign({},t)))}function _k(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"2DPY9FG3-l","ecf132031846dd13780834a2c0bc77f300e830a9488db5656b0116476970b9d8",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("New Group Created",{TeamRole:e.eventTeamRole,SharedEntity:e.isSharedEntity,CloudIntegration:e.cloudIntegration,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("2DPY9FG3-l","New Group Created",t,[{id:"6LKqiSL8zD",name:"TeamRole",value:e.eventTeamRole},{id:"OPNqNxEuxS",name:"SharedEntity",value:e.isSharedEntity},{id:"9KGA7NDbUO",name:"CloudIntegration",value:e.cloudIntegration},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'New Group Created': "+t[0].message)}let t={};void 0!==e.eventTeamRole&&null!==e.eventTeamRole&&(t.TeamRole=e.eventTeamRole),t.SharedEntity=e.isSharedEntity,void 0!==e.cloudIntegration&&null!==e.cloudIntegration&&(t.CloudIntegration=e.cloudIntegration),t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("New Group Created",{TeamRole:e.eventTeamRole,SharedEntity:e.isSharedEntity,CloudIntegration:e.cloudIntegration,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"2DPY9FG3-l","ecf132031846dd13780834a2c0bc77f300e830a9488db5656b0116476970b9d8"),TE.logEvent("New Group Created",Object.assign({},t)))}function bk(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"32D8ne_Ezv","3c081b999138844626db2c74726ad706f50b507aed38ab081ee173ffc30d8815",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Team Promotion Dismissed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("32D8ne_Ezv","Team Promotion Dismissed",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Team Promotion Dismissed': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Team Promotion Dismissed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"32D8ne_Ezv","3c081b999138844626db2c74726ad706f50b507aed38ab081ee173ffc30d8815"),TE.logEvent("Team Promotion Dismissed",Object.assign({},e)))}function Pk(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"bULP-pE2Wp","ebe9f9b7de479544e98931d8bc738304c947d2484414e92bb67b08231618fb8c",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Import Button Pressed",{ImportButtonLocation:e.importButtonLocation,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("bULP-pE2Wp","Import Button Pressed",t,[{id:"votK3i61Xp",name:"ImportButtonLocation",value:e.importButtonLocation},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Import Button Pressed': "+t[0].message)}let t={};t.ImportButtonLocation=e.importButtonLocation,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Import Button Pressed",{ImportButtonLocation:e.importButtonLocation,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"bULP-pE2Wp","ebe9f9b7de479544e98931d8bc738304c947d2484414e92bb67b08231618fb8c"),TE.logEvent("Import Button Pressed",Object.assign({},t)))}function wk(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"BVIgnmr7Ka","2aa56b47553850db550180258e13ec42bcccf7bdd53c2c2ae0459847126a37ab",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Import Completed",{NumberOfImportedHosts:e.numberOfImportedHosts,NumberOfImportedPortForwardingRules:e.numberOfImportedPortForwardingRules,NumberOfImportedKeys:e.numberOfImportedKeys,NumberOfImportedSnippets:e.numberOfImportedSnippets,NumberOfImportedGroups:e.numberOfImportedGroups,NumberOfIgnoredKeys:e.numberOfIgnoredKeys,NumberOfIgnoredSubconfigs:e.numberOfIgnoredSubconfigs,ImportOrigin:e.importOrigin,ImportSource:e.importSource,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("BVIgnmr7Ka","Import Completed",t,[{id:"tdIgKNAqB7",name:"NumberOfImportedHosts",value:e.numberOfImportedHosts},{id:"uIoe8i7qon",name:"NumberOfImportedPortForwardingRules",value:e.numberOfImportedPortForwardingRules},{id:"rllMnGbmIk",name:"NumberOfImportedKeys",value:e.numberOfImportedKeys},{id:"uqspTe_rv",name:"NumberOfImportedSnippets",value:e.numberOfImportedSnippets},{id:"q0t-YWVHHZ",name:"NumberOfImportedGroups",value:e.numberOfImportedGroups},{id:"j1eB4OA5y",name:"NumberOfIgnoredKeys",value:e.numberOfIgnoredKeys},{id:"w-ySgNoi-",name:"NumberOfIgnoredSubconfigs",value:e.numberOfIgnoredSubconfigs},{id:"2Lf-80Nr95",name:"ImportOrigin",value:e.importOrigin},{id:"xmt8-f0SMH",name:"ImportSource",value:e.importSource},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Import Completed': "+t[0].message)}let t={};t.NumberOfImportedHosts=e.numberOfImportedHosts,t.NumberOfImportedPortForwardingRules=e.numberOfImportedPortForwardingRules,t.NumberOfImportedKeys=e.numberOfImportedKeys,t.NumberOfImportedSnippets=e.numberOfImportedSnippets,t.NumberOfImportedGroups=e.numberOfImportedGroups,t.NumberOfIgnoredKeys=e.numberOfIgnoredKeys,t.NumberOfIgnoredSubconfigs=e.numberOfIgnoredSubconfigs,t.ImportOrigin=e.importOrigin,void 0!==e.importSource&&null!==e.importSource&&(t.ImportSource=e.importSource),t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Import Completed",{NumberOfImportedHosts:e.numberOfImportedHosts,NumberOfImportedPortForwardingRules:e.numberOfImportedPortForwardingRules,NumberOfImportedKeys:e.numberOfImportedKeys,NumberOfImportedSnippets:e.numberOfImportedSnippets,NumberOfImportedGroups:e.numberOfImportedGroups,NumberOfIgnoredKeys:e.numberOfIgnoredKeys,NumberOfIgnoredSubconfigs:e.numberOfIgnoredSubconfigs,ImportOrigin:e.importOrigin,ImportSource:e.importSource,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"BVIgnmr7Ka","2aa56b47553850db550180258e13ec42bcccf7bdd53c2c2ae0459847126a37ab"),TE.logEvent("Import Completed",Object.assign({},t)))}function Ek(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"u9bPB1sgdE","3f1a844f6c3774d58d60b24159f92edadbbd41475b729f1034d1c31c445bb714",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Import Failed",{ImportFailReason:e.importFailReason,FileExtension:e.fileExtension,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("u9bPB1sgdE","Import Failed",t,[{id:"ZJRma0YXNL",name:"ImportFailReason",value:e.importFailReason},{id:"vAfcgSvge",name:"FileExtension",value:e.fileExtension},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Import Failed': "+t[0].message)}let t={};t.ImportFailReason=e.importFailReason,t.FileExtension=e.fileExtension,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Import Failed",{ImportFailReason:e.importFailReason,FileExtension:e.fileExtension,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"u9bPB1sgdE","3f1a844f6c3774d58d60b24159f92edadbbd41475b729f1034d1c31c445bb714"),TE.logEvent("Import Failed",Object.assign({},t)))}function kk(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"yc-c_quzKV","b37fa11739a96d7bc37d95a9f70fc192b6def01abdd40a39c266b9b29be81ebc",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Onboarding Import Screen Dismissed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("yc-c_quzKV","Onboarding Import Screen Dismissed",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Onboarding Import Screen Dismissed': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Onboarding Import Screen Dismissed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"yc-c_quzKV","b37fa11739a96d7bc37d95a9f70fc192b6def01abdd40a39c266b9b29be81ebc"),TE.logEvent("Onboarding Import Screen Dismissed",Object.assign({},e)))}function Tk(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"gEZPcNOWjo","fd44116d5b89e72d3b4fc79d8f08f7a76635d0ed4e76a8836cea7899ed152454",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Team Private Key Generated",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("gEZPcNOWjo","Team Private Key Generated",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Team Private Key Generated': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Team Private Key Generated",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"gEZPcNOWjo","fd44116d5b89e72d3b4fc79d8f08f7a76635d0ed4e76a8836cea7899ed152454"),TE.logEvent("Team Private Key Generated",Object.assign({},e)))}function Ck(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"kOw3IuO-bs","35196eb205ca3036dff3ef8e9bc2fe3b87979cfa449ec1efb0fcfa7bd792cc30",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Personal Key Set Generated",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("kOw3IuO-bs","Personal Key Set Generated",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Personal Key Set Generated': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Personal Key Set Generated",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"kOw3IuO-bs","35196eb205ca3036dff3ef8e9bc2fe3b87979cfa449ec1efb0fcfa7bd792cc30"),TE.logEvent("Personal Key Set Generated",Object.assign({},e)))}function Ik(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"577IuMd4OP","5bb07342672d311969f667913d1dc9a5bb67061ecb9a8103beb06d6827db7346",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Team Private Key Encrypted",{TeamMemberID:e.teamMemberID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("577IuMd4OP","Team Private Key Encrypted",t,[{id:"1W4Pysy66",name:"TeamMemberID",value:e.teamMemberID},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Team Private Key Encrypted': "+t[0].message)}let t={};t.TeamMemberID=e.teamMemberID,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Team Private Key Encrypted",{TeamMemberID:e.teamMemberID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"577IuMd4OP","5bb07342672d311969f667913d1dc9a5bb67061ecb9a8103beb06d6827db7346"),TE.logEvent("Team Private Key Encrypted",Object.assign({},t)))}function Ak(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"3XR_9CvOiO","c875221b0cd349cdde2e025c4c9f480e8e610a3751b4e271044ace25bfc2c858",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Team Private Key Adopted",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("3XR_9CvOiO","Team Private Key Adopted",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Team Private Key Adopted': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Team Private Key Adopted",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"3XR_9CvOiO","c875221b0cd349cdde2e025c4c9f480e8e610a3751b4e271044ace25bfc2c858"),TE.logEvent("Team Private Key Adopted",Object.assign({},e)))}function Ok(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"GrZt4VDPb-","7a41d3b3d659fa5ae2ff8827d74146e29ac4add6bcf19663e7727c8bcc9bd10e",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Critical Error Resolution Screen Opened",{CriticalErrorType:e.criticalErrorType,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("GrZt4VDPb-","Critical Error Resolution Screen Opened",t,[{id:"QlNhSybvzD",name:"CriticalErrorType",value:e.criticalErrorType},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Critical Error Resolution Screen Opened': "+t[0].message)}let t={};t.CriticalErrorType=e.criticalErrorType,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Critical Error Resolution Screen Opened",{CriticalErrorType:e.criticalErrorType,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"GrZt4VDPb-","7a41d3b3d659fa5ae2ff8827d74146e29ac4add6bcf19663e7727c8bcc9bd10e"),TE.logEvent("Critical Error Resolution Screen Opened",Object.assign({},t)))}function xk(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"PYWKEn58Lr","7b1d627e566650c9981d245077791086d5de33a2ea67a47027cdfadbf2cfd02d",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Critical Error Resolution Started",{CriticalErrorType:e.criticalErrorType,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("PYWKEn58Lr","Critical Error Resolution Started",t,[{id:"QlNhSybvzD",name:"CriticalErrorType",value:e.criticalErrorType},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Critical Error Resolution Started': "+t[0].message)}let t={};t.CriticalErrorType=e.criticalErrorType,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Critical Error Resolution Started",{CriticalErrorType:e.criticalErrorType,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"PYWKEn58Lr","7b1d627e566650c9981d245077791086d5de33a2ea67a47027cdfadbf2cfd02d"),TE.logEvent("Critical Error Resolution Started",Object.assign({},t)))}function Nk(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"a5PPC14LQw","0c644fa8a34ceac3498c5a953092d444f6b953ba9e967367cde36fae5c108e51",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Feature Description Screen Opened",{Source:e.from,Feature:e.feature,UpgradeToProFunnelID:e.upgradeToProFunnelID,Trial:e.trial,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("a5PPC14LQw","Feature Description Screen Opened",t,[{id:"KV_0SzvdI",name:"Source",value:e.from},{id:"8qh8FC23K",name:"Feature",value:e.feature},{id:"LxHTbfjiwj",name:"UpgradeToProFunnelID",value:e.upgradeToProFunnelID},{id:"zuSXi5ulk4",name:"Trial",value:e.trial},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Feature Description Screen Opened': "+t[0].message)}let t={};t.Source=e.from,t.Feature=e.feature,t.UpgradeToProFunnelID=e.upgradeToProFunnelID,t.Trial=e.trial,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Feature Description Screen Opened",{Source:e.from,Feature:e.feature,UpgradeToProFunnelID:e.upgradeToProFunnelID,Trial:e.trial,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"a5PPC14LQw","0c644fa8a34ceac3498c5a953092d444f6b953ba9e967367cde36fae5c108e51"),TE.logEvent("Feature Description Screen Opened",Object.assign({},t)))}function Rk(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"mGmTs1YhIb","a8c235ce8cf755250bfb2ae9b083fe219dc30451909078cd69b24ac5a45fcc1f",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Deep Link Handled",{URLScheme:e.urlscheme,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("mGmTs1YhIb","Deep Link Handled",t,[{id:"1jzIfmU5vH",name:"URLScheme",value:e.urlscheme},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Deep Link Handled': "+t[0].message)}let t={};t.URLScheme=e.urlscheme,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Deep Link Handled",{URLScheme:e.urlscheme,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"mGmTs1YhIb","a8c235ce8cf755250bfb2ae9b083fe219dc30451909078cd69b24ac5a45fcc1f"),TE.logEvent("Deep Link Handled",Object.assign({},t)))}function Dk(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"G-nUErv8Ar","7688475ec89186f43cc1bc898b5f72a25ec0986a5f20a2ab88bc3c24063bb1f5",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Keychain Item Deleted",{KeychainItemLocation:e.keychainItemLocation,KeychainItem:e.keychainItem,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{SEPKeys:e.sepkeys,Identities:e.identities,Keys:e.keys,Certificates:e.certificates}),dE&&PE("G-nUErv8Ar","Keychain Item Deleted",t,[{id:"yazyYoYkq",name:"KeychainItemLocation",value:e.keychainItemLocation},{id:"-Z42kquDH",name:"KeychainItem",value:e.keychainItem},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[{id:"P_CE4kdFW8",name:"SEPKeys",value:e.sepkeys},{id:"QqbeHQnj5",name:"Identities",value:e.identities},{id:"C-ALvHBy4",name:"Keys",value:e.keys},{id:"oghxwszWAr",name:"Certificates",value:e.certificates}],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Keychain Item Deleted': "+t[0].message)}let t={};t.KeychainItemLocation=e.keychainItemLocation,t.KeychainItem=e.keychainItem,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE);let n={};n.SEPKeys=e.sepkeys,n.Identities=e.identities,n.Keys=e.keys,n.Certificates=e.certificates,lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Keychain Item Deleted",{KeychainItemLocation:e.keychainItemLocation,KeychainItem:e.keychainItem,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"G-nUErv8Ar","7688475ec89186f43cc1bc898b5f72a25ec0986a5f20a2ab88bc3c24063bb1f5"),TE.setUserProperties(Object.assign({},n)),TE.logEvent("Keychain Item Deleted",Object.assign({},t)))}function Hk(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"AXdUDnSZvo","3e16088e6a2032a760755948dacf50d818bcffbe4b9ef607f3941ec41674bdb2",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Password Checked with HIBP",{Leaked:e.leaked,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("AXdUDnSZvo","Password Checked with HIBP",t,[{id:"QPo4oqHA9",name:"Leaked",value:e.leaked},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Password Checked with HIBP': "+t[0].message)}let t={};t.Leaked=e.leaked,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Password Checked with HIBP",{Leaked:e.leaked,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"AXdUDnSZvo","3e16088e6a2032a760755948dacf50d818bcffbe4b9ef607f3941ec41674bdb2"),TE.logEvent("Password Checked with HIBP",Object.assign({},t)))}function Fk(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"UUzvlWldbx","2ae5242783191ea25ca7f9889abf1cf1dd7ebf93888c47994197bc9c93d53817",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Terminal Search Opened",{TerminalSearchSource:e.terminalSearchSource,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("UUzvlWldbx","Terminal Search Opened",t,[{id:"aNAQ5U-kwi",name:"TerminalSearchSource",value:e.terminalSearchSource},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Terminal Search Opened': "+t[0].message)}let t={};t.TerminalSearchSource=e.terminalSearchSource,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Terminal Search Opened",{TerminalSearchSource:e.terminalSearchSource,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"UUzvlWldbx","2ae5242783191ea25ca7f9889abf1cf1dd7ebf93888c47994197bc9c93d53817"),TE.logEvent("Terminal Search Opened",Object.assign({},t)))}function Gk(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"7SceQvfKCp","d3dff78f6c73efc9d4fa997057175cd20c902c3ac409e26cc782762c1f12ade8",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Terminal Search Executed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("7SceQvfKCp","Terminal Search Executed",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Terminal Search Executed': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Terminal Search Executed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"7SceQvfKCp","d3dff78f6c73efc9d4fa997057175cd20c902c3ac409e26cc782762c1f12ade8"),TE.logEvent("Terminal Search Executed",Object.assign({},e)))}function Uk(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"P6Fup3OE0j","a31ba897df34e40308fcb9990cde5079d9e6a9af2fb9155db9ee885ed9903fd8",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Import Started",{ImportSource:e.importSource,ImportOrigin:e.importOrigin,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("P6Fup3OE0j","Import Started",t,[{id:"xmt8-f0SMH",name:"ImportSource",value:e.importSource},{id:"2Lf-80Nr95",name:"ImportOrigin",value:e.importOrigin},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Import Started': "+t[0].message)}let t={};void 0!==e.importSource&&null!==e.importSource&&(t.ImportSource=e.importSource),t.ImportOrigin=e.importOrigin,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Import Started",{ImportSource:e.importSource,ImportOrigin:e.importOrigin,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"P6Fup3OE0j","a31ba897df34e40308fcb9990cde5079d9e6a9af2fb9155db9ee885ed9903fd8"),TE.logEvent("Import Started",Object.assign({},t)))}function Lk(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"1afQXJT_I","12f86165c97796781ca4707763df0ecd7dbc59887f6d43e44e1147d444d1f92f",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Create Account Screen Opened",{CreateAccountScreenType:e.createAccountScreenType,UpgradeToProFunnelID:e.upgradeToProFunnelID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("1afQXJT_I","Create Account Screen Opened",t,[{id:"OPLwDStnF",name:"CreateAccountScreenType",value:e.createAccountScreenType},{id:"LxHTbfjiwj",name:"UpgradeToProFunnelID",value:e.upgradeToProFunnelID},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Create Account Screen Opened': "+t[0].message)}let t={};t.CreateAccountScreenType=e.createAccountScreenType,t.UpgradeToProFunnelID=e.upgradeToProFunnelID,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Create Account Screen Opened",{CreateAccountScreenType:e.createAccountScreenType,UpgradeToProFunnelID:e.upgradeToProFunnelID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"1afQXJT_I","12f86165c97796781ca4707763df0ecd7dbc59887f6d43e44e1147d444d1f92f"),TE.logEvent("Create Account Screen Opened",Object.assign({},t)))}function jk(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"_8l1mU5YYm","61f669519f8a6cea512ba2b72c942572df89765b31e048f69d8689e63b8affb9",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("App Started",{FirstTime:e.firstTime,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("_8l1mU5YYm","App Started",t,[{id:"640FZWTj1q",name:"FirstTime",value:e.firstTime},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'App Started': "+t[0].message)}let t={};t.FirstTime=e.firstTime,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("App Started",{FirstTime:e.firstTime,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"_8l1mU5YYm","61f669519f8a6cea512ba2b72c942572df89765b31e048f69d8689e63b8affb9"),TE.logEvent("App Started",Object.assign({},t)))}function Mk(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"g-_H0sJ7Nw","8d1ef35c5e6ef31147cc729accbc605fffa1ff95553768c4b2ac7f26cecb8beb",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Connection Closed",{ConnectionID:e.connectionID,SessionLogSize:e.sessionLogSize,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("g-_H0sJ7Nw","Connection Closed",t,[{id:"LtX0SIqFoB",name:"ConnectionID",value:e.connectionID},{id:"1zMnR0PgZ",name:"SessionLogSize",value:e.sessionLogSize},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Connection Closed': "+t[0].message)}let t={};t.ConnectionID=e.connectionID,void 0!==e.sessionLogSize&&null!==e.sessionLogSize&&(t.SessionLogSize=e.sessionLogSize),t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Connection Closed",{ConnectionID:e.connectionID,SessionLogSize:e.sessionLogSize,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"g-_H0sJ7Nw","8d1ef35c5e6ef31147cc729accbc605fffa1ff95553768c4b2ac7f26cecb8beb"),TE.logEvent("Connection Closed",Object.assign({},t)))}function Bk(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"1dJvJQdl2x","a7fe8099b05bd11989ac9ed19f0aabdd852a83d32509ff3c96301940e8c3da9c",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Share Button Pressed",{Location:e.sharingButtonLocation,SharedEntity:e.sharedEntity,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("1dJvJQdl2x","Share Button Pressed",t,[{id:"mPalehkskc",name:"Location",value:e.sharingButtonLocation},{id:"SA2XkdmuzJN",name:"SharedEntity",value:e.sharedEntity},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Share Button Pressed': "+t[0].message)}let t={};t.Location=e.sharingButtonLocation,t.SharedEntity=e.sharedEntity,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Share Button Pressed",{Location:e.sharingButtonLocation,SharedEntity:e.sharedEntity,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"1dJvJQdl2x","a7fe8099b05bd11989ac9ed19f0aabdd852a83d32509ff3c96301940e8c3da9c"),TE.logEvent("Share Button Pressed",Object.assign({},t)))}function Kk(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"NjJ4FEIYpM","67c1071a25a44797db1a503c0fe3698d5b0a934f5db084223837017b36fd5e96",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Create-Team Wizard View Opened",{CreateTeamWizardStep:e.createTeamWizardStep,Trial:e.trial,OpenedFrom:e.openedFrom,TeamTrialFunnelID:e.teamTrialFunnelID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("NjJ4FEIYpM","Create-Team Wizard View Opened",t,[{id:"riRNOJmR8b",name:"CreateTeamWizardStep",value:e.createTeamWizardStep},{id:"zuSXi5ulk4",name:"Trial",value:e.trial},{id:"8gtfydWW0",name:"OpenedFrom",value:e.openedFrom},{id:"doMi5lwcT0",name:"TeamTrialFunnelID",value:e.teamTrialFunnelID},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Create-Team Wizard View Opened': "+t[0].message)}let t={};t.CreateTeamWizardStep=e.createTeamWizardStep,void 0!==e.trial&&null!==e.trial&&(t.Trial=e.trial),t.OpenedFrom=e.openedFrom,t.TeamTrialFunnelID=e.teamTrialFunnelID,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Create-Team Wizard View Opened",{CreateTeamWizardStep:e.createTeamWizardStep,Trial:e.trial,OpenedFrom:e.openedFrom,TeamTrialFunnelID:e.teamTrialFunnelID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"NjJ4FEIYpM","67c1071a25a44797db1a503c0fe3698d5b0a934f5db084223837017b36fd5e96"),TE.logEvent("Create-Team Wizard View Opened",Object.assign({},t)))}function qk(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"zqKc62bvij","96a1ac53371951d768c778ec8af3cd68b697afe20cccf1983544fa72dcb81fa4",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("New Main Window Opened",{Origin:e.newWindowOrigin,WindowsCount:e.windowsCount,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("zqKc62bvij","New Main Window Opened",t,[{id:"mjndXzzBdc",name:"Origin",value:e.newWindowOrigin},{id:"ZIiW1WgaSr",name:"WindowsCount",value:e.windowsCount},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'New Main Window Opened': "+t[0].message)}let t={};t.Origin=e.newWindowOrigin,t.WindowsCount=e.windowsCount,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("New Main Window Opened",{Origin:e.newWindowOrigin,WindowsCount:e.windowsCount,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"zqKc62bvij","96a1ac53371951d768c778ec8af3cd68b697afe20cccf1983544fa72dcb81fa4"),TE.logEvent("New Main Window Opened",Object.assign({},t)))}function Vk(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"5_ZdWFXpow","ffd07608b08557a4ea096883e53fc566905ef624f8af30de547e5d8443062028",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Context Menu Opened",{OnScreen:e.onScreen,OpenedVia:e.openedVia,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("5_ZdWFXpow","Context Menu Opened",t,[{id:"B6I4Af3CH3",name:"OnScreen",value:e.onScreen},{id:"o9ERIEC9Y",name:"OpenedVia",value:e.openedVia},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Context Menu Opened': "+t[0].message)}let t={};t.OnScreen=e.onScreen,void 0!==e.openedVia&&null!==e.openedVia&&(t.OpenedVia=e.openedVia),t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Context Menu Opened",{OnScreen:e.onScreen,OpenedVia:e.openedVia,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"5_ZdWFXpow","ffd07608b08557a4ea096883e53fc566905ef624f8af30de547e5d8443062028"),TE.logEvent("Context Menu Opened",Object.assign({},t)))}function $k(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"I4vx1LvxXD","122a6fa162dd9a061a89c0d893ffb610af96fba7bd1722b6cab5be0d8e6ea4b7",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Help Button Pressed",{HelpButtonType:e.helpButtonType,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("I4vx1LvxXD","Help Button Pressed",t,[{id:"jcNobwqlXN",name:"HelpButtonType",value:e.helpButtonType},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Help Button Pressed': "+t[0].message)}let t={};t.ButtonType=e.helpButtonType,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Help Button Pressed",{HelpButtonType:e.helpButtonType,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"I4vx1LvxXD","122a6fa162dd9a061a89c0d893ffb610af96fba7bd1722b6cab5be0d8e6ea4b7"),TE.logEvent("Help Button Pressed",Object.assign({},t)))}function Wk(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"K0ZzLSevC8","63f0745d4458cc33456f1ad457ceb5ff01f8d134387b0d6848f7ec674fd04e41",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Screen Layout Changed",{Layout:e.layoutType,OnScreen:e.onScreen,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("K0ZzLSevC8","Screen Layout Changed",t,[{id:"J4VlcT3plg",name:"Layout",value:e.layoutType},{id:"B6I4Af3CH3",name:"OnScreen",value:e.onScreen},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Screen Layout Changed': "+t[0].message)}let t={};t.Layout=e.layoutType,t.OnScreen=e.onScreen,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Screen Layout Changed",{Layout:e.layoutType,OnScreen:e.onScreen,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"K0ZzLSevC8","63f0745d4458cc33456f1ad457ceb5ff01f8d134387b0d6848f7ec674fd04e41"),TE.logEvent("Screen Layout Changed",Object.assign({},t)))}function zk(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"EwcXY8vVHJ","b9b63b9d153c9a2b02ecadd8060168c49410ed24e5f4f6615c1e9491f09c47ee",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Connection Details Requested",{RequestedProperty:e.requestedConnectionProperty,ConnectionID:e.connectionID,CloudIntegration:e.cloudIntegration,SessionAuthMethod:e.sessionAuthMethod,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("EwcXY8vVHJ","Connection Details Requested",t,[{id:"h2glTAgvbF",name:"RequestedProperty",value:e.requestedConnectionProperty},{id:"LtX0SIqFoB",name:"ConnectionID",value:e.connectionID},{id:"9KGA7NDbUO",name:"CloudIntegration",value:e.cloudIntegration},{id:"wU3CN_zRm",name:"SessionAuthMethod",value:e.sessionAuthMethod},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Connection Details Requested': "+t[0].message)}let t={};t.RequestedProperty=e.requestedConnectionProperty,t.ConnectionID=e.connectionID,void 0!==e.cloudIntegration&&null!==e.cloudIntegration&&(t.CloudIntegration=e.cloudIntegration),void 0!==e.sessionAuthMethod&&null!==e.sessionAuthMethod&&(t.SessionAuthMethod=e.sessionAuthMethod),t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Connection Details Requested",{RequestedProperty:e.requestedConnectionProperty,ConnectionID:e.connectionID,CloudIntegration:e.cloudIntegration,SessionAuthMethod:e.sessionAuthMethod,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"EwcXY8vVHJ","b9b63b9d153c9a2b02ecadd8060168c49410ed24e5f4f6615c1e9491f09c47ee"),TE.logEvent("Connection Details Requested",Object.assign({},t)))}function Jk(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"WvAGWl2C_3","767f028ec2cdabf09036f71a71b379a560ff6ddb9620365f80dc763ee75486eb",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Promotion Shown",{Location:e.promotionLocation,Type:e.promotionType,TrialDaysLeft:e.trialDaysLeft,SideMenuTeamTrialPromoType:e.sideMenuTeamTrialPromoType,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("WvAGWl2C_3","Promotion Shown",t,[{id:"QaL07rDdEQ",name:"Location",value:e.promotionLocation},{id:"12Jzh1xxFN",name:"Type",value:e.promotionType},{id:"LnG4vmu6Ew",name:"TrialDaysLeft",value:e.trialDaysLeft},{id:"JcouUlHi9",name:"SideMenuTeamTrialPromoType",value:e.sideMenuTeamTrialPromoType},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Promotion Shown': "+t[0].message)}let t={};t.Location=e.promotionLocation,t.Type=e.promotionType,void 0!==e.trialDaysLeft&&null!==e.trialDaysLeft&&(t.TrialDaysLeft=e.trialDaysLeft),void 0!==e.sideMenuTeamTrialPromoType&&null!==e.sideMenuTeamTrialPromoType&&(t.SideMenuTeamTrialPromoType=e.sideMenuTeamTrialPromoType),t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Promotion Shown",{Location:e.promotionLocation,Type:e.promotionType,TrialDaysLeft:e.trialDaysLeft,SideMenuTeamTrialPromoType:e.sideMenuTeamTrialPromoType,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"WvAGWl2C_3","767f028ec2cdabf09036f71a71b379a560ff6ddb9620365f80dc763ee75486eb"),TE.logEvent("Promotion Shown",Object.assign({},t)))}function Xk(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"2fABx-u1_2","c1c3a1152a1f1f3beb2e1132fd1f32237967c44c4cdb4c65b90b3d845d4e855e",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Promotion Pressed",{Location:e.promotionLocation,Type:e.promotionType,TrialDaysLeft:e.trialDaysLeft,SideMenuTeamTrialPromoType:e.sideMenuTeamTrialPromoType,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("2fABx-u1_2","Promotion Pressed",t,[{id:"QaL07rDdEQ",name:"Location",value:e.promotionLocation},{id:"12Jzh1xxFN",name:"Type",value:e.promotionType},{id:"LnG4vmu6Ew",name:"TrialDaysLeft",value:e.trialDaysLeft},{id:"JcouUlHi9",name:"SideMenuTeamTrialPromoType",value:e.sideMenuTeamTrialPromoType},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Promotion Pressed': "+t[0].message)}let t={};t.Location=e.promotionLocation,t.Type=e.promotionType,void 0!==e.trialDaysLeft&&null!==e.trialDaysLeft&&(t.TrialDaysLeft=e.trialDaysLeft),void 0!==e.sideMenuTeamTrialPromoType&&null!==e.sideMenuTeamTrialPromoType&&(t.SideMenuTeamTrialPromoType=e.sideMenuTeamTrialPromoType),t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Promotion Pressed",{Location:e.promotionLocation,Type:e.promotionType,TrialDaysLeft:e.trialDaysLeft,SideMenuTeamTrialPromoType:e.sideMenuTeamTrialPromoType,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"2fABx-u1_2","c1c3a1152a1f1f3beb2e1132fd1f32237967c44c4cdb4c65b90b3d845d4e855e"),TE.logEvent("Promotion Pressed",Object.assign({},t)))}function Qk(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"Zqz-q870r3","0933666ca9a25a97b7d71dfedada6abc78138fa1c6bd5e0c76c19dc3ac4a4fb9",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Promotion Dismissed",{Location:e.promotionLocation,Type:e.promotionType,TrialDaysLeft:e.trialDaysLeft,SideMenuTeamTrialPromoType:e.sideMenuTeamTrialPromoType,DismissForever:e.dismissForever,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("Zqz-q870r3","Promotion Dismissed",t,[{id:"QaL07rDdEQ",name:"Location",value:e.promotionLocation},{id:"12Jzh1xxFN",name:"Type",value:e.promotionType},{id:"LnG4vmu6Ew",name:"TrialDaysLeft",value:e.trialDaysLeft},{id:"JcouUlHi9",name:"SideMenuTeamTrialPromoType",value:e.sideMenuTeamTrialPromoType},{id:"eX1QBLdyPs",name:"DismissForever",value:e.dismissForever},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Promotion Dismissed': "+t[0].message)}let t={};t.Location=e.promotionLocation,t.Type=e.promotionType,void 0!==e.trialDaysLeft&&null!==e.trialDaysLeft&&(t.TrialDaysLeft=e.trialDaysLeft),void 0!==e.sideMenuTeamTrialPromoType&&null!==e.sideMenuTeamTrialPromoType&&(t.SideMenuTeamTrialPromoType=e.sideMenuTeamTrialPromoType),void 0!==e.dismissForever&&null!==e.dismissForever&&(t.DismissForever=e.dismissForever),t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Promotion Dismissed",{Location:e.promotionLocation,Type:e.promotionType,TrialDaysLeft:e.trialDaysLeft,SideMenuTeamTrialPromoType:e.sideMenuTeamTrialPromoType,DismissForever:e.dismissForever,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"Zqz-q870r3","0933666ca9a25a97b7d71dfedada6abc78138fa1c6bd5e0c76c19dc3ac4a4fb9"),TE.logEvent("Promotion Dismissed",Object.assign({},t)))}function Yk(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(function(e,t){let n=[];return n=n.concat(SE.assertInt("F10rl0OxEL",t?"SnippetLength: "+t:"SnippetLength",e)),n=n.concat(SE.assertMin("F10rl0OxEL",t?"SnippetLength: "+t:"SnippetLength",-1,e)),n}(e.snippetLength)),t=t.concat(function(e,t){let n=[];return n=n.concat(SE.assertInt("Gmn8dg8iFI",t?"SnippetLines: "+t:"SnippetLines",e)),n=n.concat(SE.assertMin("Gmn8dg8iFI",t?"SnippetLines: "+t:"SnippetLines",-1,e)),n}(e.snippetLines)),t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"V-0Pcxps2y","aeb1e4aafcf8f2bef175b62fcb669edb89f13d2424e02b65a68894ccd1248edb",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("New Snippet Created",{SharedEntity:e.isSharedEntity,SnippetCreationSource:e.snippetCreationSource,CreatedSnippets:e.createdSnippets,SnippetLength:e.snippetLength,SnippetLines:e.snippetLines,AIAnalyticsID:e.aianalyticsID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{Snippets:e.snippets}),dE&&PE("V-0Pcxps2y","New Snippet Created",t,[{id:"OPNqNxEuxS",name:"SharedEntity",value:e.isSharedEntity},{id:"Kbgnl4vlhN",name:"SnippetCreationSource",value:e.snippetCreationSource},{id:"pfJnedbZ2m",name:"CreatedSnippets",value:e.createdSnippets},{id:"F10rl0OxEL",name:"SnippetLength",value:e.snippetLength},{id:"Gmn8dg8iFI",name:"SnippetLines",value:e.snippetLines},{id:"xhalC63i7",name:"AIAnalyticsID",value:e.aianalyticsID},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[{id:"pPjLC263t",name:"Snippets",value:e.snippets}],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'New Snippet Created': "+t[0].message)}let t={};t.SharedEntity=e.isSharedEntity,t.SnippetCreationSource=e.snippetCreationSource,t.CreatedSnippets=e.createdSnippets,t.SnippetLength=e.snippetLength,t.SnippetLines=e.snippetLines,void 0!==e.aianalyticsID&&null!==e.aianalyticsID&&(t.AIAnalyticsID=e.aianalyticsID),t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE);let n={};n.Snippets=e.snippets,lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("New Snippet Created",{SharedEntity:e.isSharedEntity,SnippetCreationSource:e.snippetCreationSource,CreatedSnippets:e.createdSnippets,SnippetLength:e.snippetLength,SnippetLines:e.snippetLines,AIAnalyticsID:e.aianalyticsID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"V-0Pcxps2y","aeb1e4aafcf8f2bef175b62fcb669edb89f13d2424e02b65a68894ccd1248edb"),TE.setUserProperties(Object.assign({},n)),TE.logEvent("New Snippet Created",Object.assign({},t)))}function Zk(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(function(e,t){let n=[];return null!=e&&(n=n.concat(SE.assertInt("ymKyyoK7m0",t?"SnippetPackageID: "+t:"SnippetPackageID",e)),n=n.concat(SE.assertMin("ymKyyoK7m0",t?"SnippetPackageID: "+t:"SnippetPackageID",-1,e))),n}(e.snippetPackageID)),t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"uA4HfKXDre","a23ce804ca5797bda1a0bfb0e4772becf3dc7e6fa9334c09304679d2c0c66d40",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Snippet Executed",{Source:e.snippetSource,SharedEntity:e.isSharedEntity,IsSharedEntityOwner:e.isSharedEntityOwner,IsExecutedInMultipleTabs:e.isExecutedInMultipleTabs,SnippetPackageID:e.snippetPackageID,IsExecutedInSplitView:e.isExecutedInSplitView,SnippetID:e.snippetID,AIAnalyticsID:e.aianalyticsID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("uA4HfKXDre","Snippet Executed",t,[{id:"u_Y9V0HZzU",name:"Source",value:e.snippetSource},{id:"OPNqNxEuxS",name:"SharedEntity",value:e.isSharedEntity},{id:"WEcuaha6WC",name:"IsSharedEntityOwner",value:e.isSharedEntityOwner},{id:"ImJKSbpAvv",name:"IsExecutedInMultipleTabs",value:e.isExecutedInMultipleTabs},{id:"ymKyyoK7m0",name:"SnippetPackageID",value:e.snippetPackageID},{id:"G6aDlMxTT",name:"IsExecutedInSplitView",value:e.isExecutedInSplitView},{id:"r08pzpqtdPz",name:"SnippetID",value:e.snippetID},{id:"xhalC63i7",name:"AIAnalyticsID",value:e.aianalyticsID},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Snippet Executed': "+t[0].message)}let t={};t.Source=e.snippetSource,t.SharedEntity=e.isSharedEntity,void 0!==e.isSharedEntityOwner&&null!==e.isSharedEntityOwner&&(t.SharedEntityOwner=e.isSharedEntityOwner),t.IsExecutedInMultipleTabs=e.isExecutedInMultipleTabs,void 0!==e.snippetPackageID&&null!==e.snippetPackageID&&(t.SnippetPackageID=e.snippetPackageID),t.IsExecutedInSplitView=e.isExecutedInSplitView,t.SnippetID=e.snippetID,void 0!==e.aianalyticsID&&null!==e.aianalyticsID&&(t.AIAnalyticsID=e.aianalyticsID),t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Snippet Executed",{Source:e.snippetSource,SharedEntity:e.isSharedEntity,IsSharedEntityOwner:e.isSharedEntityOwner,IsExecutedInMultipleTabs:e.isExecutedInMultipleTabs,SnippetPackageID:e.snippetPackageID,IsExecutedInSplitView:e.isExecutedInSplitView,SnippetID:e.snippetID,AIAnalyticsID:e.aianalyticsID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"uA4HfKXDre","a23ce804ca5797bda1a0bfb0e4772becf3dc7e6fa9334c09304679d2c0c66d40"),TE.logEvent("Snippet Executed",Object.assign({},t)))}function eT(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"q08ob72UbU","68c70454a52ff60e833a8e049115354c739f2d276bf649814864f6e882a84e6f",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Snippet Deleted",{RemovedSnippets:e.numberOfRemovedSnippets,AIAnalyticsID:e.aianalyticsID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{Snippets:e.snippets}),dE&&PE("q08ob72UbU","Snippet Deleted",t,[{id:"r-iE6RhnE_",name:"RemovedSnippets",value:e.numberOfRemovedSnippets},{id:"xhalC63i7",name:"AIAnalyticsID",value:e.aianalyticsID},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[{id:"pPjLC263t",name:"Snippets",value:e.snippets}],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Snippet Deleted': "+t[0].message)}let t={};t.RemovedSnippets=e.numberOfRemovedSnippets,void 0!==e.aianalyticsID&&null!==e.aianalyticsID&&(t.AIAnalyticsID=e.aianalyticsID),t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE);let n={};n.Snippets=e.snippets,lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Snippet Deleted",{RemovedSnippets:e.numberOfRemovedSnippets,AIAnalyticsID:e.aianalyticsID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"q08ob72UbU","68c70454a52ff60e833a8e049115354c739f2d276bf649814864f6e882a84e6f"),TE.setUserProperties(Object.assign({},n)),TE.logEvent("Snippet Deleted",Object.assign({},t)))}function tT(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"PBbC18Q-q9","09a9ce8178ef97332775e1de708d1eb4a01f31edd90a20f751a5f90edbcc68bc",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("New Snippet Button Pressed",{CreateSnippetOrigin:e.createSnippetOrigin,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("PBbC18Q-q9","New Snippet Button Pressed",t,[{id:"606yMqvAez",name:"CreateSnippetOrigin",value:e.createSnippetOrigin},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'New Snippet Button Pressed': "+t[0].message)}let t={};t.CreateSnippetOrigin=e.createSnippetOrigin,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("New Snippet Button Pressed",{CreateSnippetOrigin:e.createSnippetOrigin,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"PBbC18Q-q9","09a9ce8178ef97332775e1de708d1eb4a01f31edd90a20f751a5f90edbcc68bc"),TE.logEvent("New Snippet Button Pressed",Object.assign({},t)))}function nT(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"o9kSUIypKO","669d14fa084e7a972f45d6e84545e95c9784420379e3fffad13c168d51ccb288",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Platform Setup Picked",{InitiallySelectedPlatform:e.initiallySelectedPlatform,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("o9kSUIypKO","Platform Setup Picked",t,[{id:"I_LZE0F7Al",name:"InitiallySelectedPlatform",value:e.initiallySelectedPlatform},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Platform Setup Picked': "+t[0].message)}let t={};t.InitiallySelectedPlatform=e.initiallySelectedPlatform,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Platform Setup Picked",{InitiallySelectedPlatform:e.initiallySelectedPlatform,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"o9kSUIypKO","669d14fa084e7a972f45d6e84545e95c9784420379e3fffad13c168d51ccb288"),TE.logEvent("Platform Setup Picked",Object.assign({},t)))}function rT(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"P8HM8mr9OH","47da15d132a63869294c99cec440c39e6652d5dc5be1688d25bcfa1c22ff7d7f",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("History Item Deleted",{ClearAll:e.clearAll,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{History:e.history}),dE&&PE("P8HM8mr9OH","History Item Deleted",t,[{id:"fIRZo1cbTC",name:"ClearAll",value:e.clearAll},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[{id:"btyOwlRVD",name:"History",value:e.history}],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'History Item Deleted': "+t[0].message)}let t={};t.ClearAll=e.clearAll,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE);let n={};n.History=e.history,lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("History Item Deleted",{ClearAll:e.clearAll,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"P8HM8mr9OH","47da15d132a63869294c99cec440c39e6652d5dc5be1688d25bcfa1c22ff7d7f"),TE.setUserProperties(Object.assign({},n)),TE.logEvent("History Item Deleted",Object.assign({},t)))}function aT(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"1W4CsCPwbX","0f14580cd44df642dfb1d8f3efc5dac58b9369ec6ad858ca653dbafc0ce1893e",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Notification Received",{Action:e.bellNotificationAction,TeamMemberID:e.teamMemberID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("1W4CsCPwbX","Notification Received",t,[{id:"1cm1oSV7u4",name:"Action",value:e.bellNotificationAction},{id:"1W4Pysy66",name:"TeamMemberID",value:e.teamMemberID},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Notification Received': "+t[0].message)}let t={};t.Action=e.bellNotificationAction,void 0!==e.teamMemberID&&null!==e.teamMemberID&&(t.TeamMemberID=e.teamMemberID),t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Notification Received",{Action:e.bellNotificationAction,TeamMemberID:e.teamMemberID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"1W4CsCPwbX","0f14580cd44df642dfb1d8f3efc5dac58b9369ec6ad858ca653dbafc0ce1893e"),TE.logEvent("Notification Received",Object.assign({},t)))}function iT(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"9D1M13v_HU","e8b8b6050e1887fb2e7bed6df7a89288111cba5a6bf90ff2c1da63c1f7064b97",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Notification List Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("9D1M13v_HU","Notification List Screen Opened",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Notification List Screen Opened': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Notification List Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"9D1M13v_HU","e8b8b6050e1887fb2e7bed6df7a89288111cba5a6bf90ff2c1da63c1f7064b97"),TE.logEvent("Notification List Screen Opened",Object.assign({},e)))}function sT(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"rCl6j-SQFp","fce64ea4c6814098be0f15a8b8326f8cbfc63c17b802673a1427a60d1fb96aec",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Bell Notification Opened",{Action:e.bellNotificationAction,Auto:e.auto,TeamMemberID:e.teamMemberID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("rCl6j-SQFp","Bell Notification Opened",t,[{id:"1cm1oSV7u4",name:"Action",value:e.bellNotificationAction},{id:"nDljpbsRUF",name:"Auto",value:e.auto},{id:"1W4Pysy66",name:"TeamMemberID",value:e.teamMemberID},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Bell Notification Opened': "+t[0].message)}let t={};t.Action=e.bellNotificationAction,t.Auto=e.auto,void 0!==e.teamMemberID&&null!==e.teamMemberID&&(t.TeamMemberID=e.teamMemberID),t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Bell Notification Opened",{Action:e.bellNotificationAction,Auto:e.auto,TeamMemberID:e.teamMemberID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"rCl6j-SQFp","fce64ea4c6814098be0f15a8b8326f8cbfc63c17b802673a1427a60d1fb96aec"),TE.logEvent("Bell Notification Opened",Object.assign({},t)))}function oT(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"976EzGrqCc","62df305f208e461b2c696f63c446dd73cc36c66223db47eeb597c0337456790e",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Encryption Migration Wizard View Opened",{EncryptionMigrationWizardStep:e.encryptionMigrationWizardStep,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("976EzGrqCc","Encryption Migration Wizard View Opened",t,[{id:"qnIrkBDY3S",name:"EncryptionMigrationWizardStep",value:e.encryptionMigrationWizardStep},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Encryption Migration Wizard View Opened': "+t[0].message)}let t={};t.EncryptionMigrationWizardStep=e.encryptionMigrationWizardStep,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Encryption Migration Wizard View Opened",{EncryptionMigrationWizardStep:e.encryptionMigrationWizardStep,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"976EzGrqCc","62df305f208e461b2c696f63c446dd73cc36c66223db47eeb597c0337456790e"),TE.logEvent("Encryption Migration Wizard View Opened",Object.assign({},t)))}function lT(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"OjoT1E_qmQ","bc2d8c215f8083ab8d8101220291ee4d014be42f80fa173cf19fc0485802fa5f",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Host Deleted",{SharedEntity:e.isSharedEntity,TeamRole:e.eventTeamRole,HostID:e.hostID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("OjoT1E_qmQ","Host Deleted",t,[{id:"OPNqNxEuxS",name:"SharedEntity",value:e.isSharedEntity},{id:"6LKqiSL8zD",name:"TeamRole",value:e.eventTeamRole},{id:"7znwrvx1F",name:"HostID",value:e.hostID},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Host Deleted': "+t[0].message)}let t={};t.SharedEntity=e.isSharedEntity,void 0!==e.eventTeamRole&&null!==e.eventTeamRole&&(t.TeamRole=e.eventTeamRole),t.HostID=e.hostID,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Host Deleted",{SharedEntity:e.isSharedEntity,TeamRole:e.eventTeamRole,HostID:e.hostID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"OjoT1E_qmQ","bc2d8c215f8083ab8d8101220291ee4d014be42f80fa173cf19fc0485802fa5f"),TE.logEvent("Host Deleted",Object.assign({},t)))}function cT(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"X4puJJg8Yd","43721ff4f0cd3c08c4337cb58919bc926335b2f2c3be10d27ea28205b5dc3d89",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Group Deleted",{SharedEntity:e.isSharedEntity,TeamRole:e.eventTeamRole,ID:e.groupID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("X4puJJg8Yd","Group Deleted",t,[{id:"OPNqNxEuxS",name:"SharedEntity",value:e.isSharedEntity},{id:"6LKqiSL8zD",name:"TeamRole",value:e.eventTeamRole},{id:"RhQWGFml-1",name:"ID",value:e.groupID},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Group Deleted': "+t[0].message)}let t={};t.SharedEntity=e.isSharedEntity,void 0!==e.eventTeamRole&&null!==e.eventTeamRole&&(t.TeamRole=e.eventTeamRole),void 0!==e.groupID&&null!==e.groupID&&(t.ID=e.groupID),t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Group Deleted",{SharedEntity:e.isSharedEntity,TeamRole:e.eventTeamRole,ID:e.groupID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"X4puJJg8Yd","43721ff4f0cd3c08c4337cb58919bc926335b2f2c3be10d27ea28205b5dc3d89"),TE.logEvent("Group Deleted",Object.assign({},t)))}function uT(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"6B7WCtCdai","cd10982675ec6123e7bb2f7bebf082db19b22b78e4fc0c6e426a8f25b24d1f36",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("New Identity Set Up",{SharedEntity:e.isSharedEntity,TeamRole:e.eventTeamRole,IdentityType:e.identityType,IdentitySource:e.identitySource,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("6B7WCtCdai","New Identity Set Up",t,[{id:"OPNqNxEuxS",name:"SharedEntity",value:e.isSharedEntity},{id:"6LKqiSL8zD",name:"TeamRole",value:e.eventTeamRole},{id:"d74LiZiN0BW",name:"IdentityType",value:e.identityType},{id:"qkVi6xQuee",name:"IdentitySource",value:e.identitySource},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'New Identity Set Up': "+t[0].message)}let t={};t.SharedEntity=e.isSharedEntity,void 0!==e.eventTeamRole&&null!==e.eventTeamRole&&(t.TeamRole=e.eventTeamRole),t.IdentityType=e.identityType,t.IdentitySource=e.identitySource,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("New Identity Set Up",{SharedEntity:e.isSharedEntity,TeamRole:e.eventTeamRole,IdentityType:e.identityType,IdentitySource:e.identitySource,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"6B7WCtCdai","cd10982675ec6123e7bb2f7bebf082db19b22b78e4fc0c6e426a8f25b24d1f36"),TE.logEvent("New Identity Set Up",Object.assign({},t)))}function pT(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"9CsgnTr_Nx","a6d70a1b6ec1df7001f60daf1804a4dc500c5adf744e4c467497b4c5b0cbceb5",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Remind Team Owner Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("9CsgnTr_Nx","Remind Team Owner Button Pressed",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Remind Team Owner Button Pressed': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Remind Team Owner Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"9CsgnTr_Nx","a6d70a1b6ec1df7001f60daf1804a4dc500c5adf744e4c467497b4c5b0cbceb5"),TE.logEvent("Remind Team Owner Button Pressed",Object.assign({},e)))}function dT(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"NmX-RColCA","a64db2ac19d6d8957a202082b24180abdf33903cde49aedb5aa4f1e76123c636",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Team Trial Expired Button Pressed",{TeamExpiredDecision:e.teamExpiredDecision,TeamJoinedMembers:e.teamJoinedMembers,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("NmX-RColCA","Team Trial Expired Button Pressed",t,[{id:"RY4A3LW4bw",name:"TeamExpiredDecision",value:e.teamExpiredDecision},{id:"ks7IIGgN1",name:"TeamJoinedMembers",value:e.teamJoinedMembers},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Team Trial Expired Button Pressed': "+t[0].message)}let t={};t.TeamExpiredDecision=e.teamExpiredDecision,t.TeamJoinedMembers=e.teamJoinedMembers,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Team Trial Expired Button Pressed",{TeamExpiredDecision:e.teamExpiredDecision,TeamJoinedMembers:e.teamJoinedMembers,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"NmX-RColCA","a64db2ac19d6d8957a202082b24180abdf33903cde49aedb5aa4f1e76123c636"),TE.logEvent("Team Trial Expired Button Pressed",Object.assign({},t)))}function hT(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"RC0MOjK3OQ","92660af4ce657103325bf61118cfa83fb47152096716f46b7307d4f26aad49fe",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Customer Experience Survey Shown",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("RC0MOjK3OQ","Customer Experience Survey Shown",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Customer Experience Survey Shown': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Customer Experience Survey Shown",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"RC0MOjK3OQ","92660af4ce657103325bf61118cfa83fb47152096716f46b7307d4f26aad49fe"),TE.logEvent("Customer Experience Survey Shown",Object.assign({},e)))}function fT(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(function(e,t){let n=[];return n=n.concat(SE.assertInt("vzA_bIeMgA",t?"CSAT: "+t:"CSAT",e)),n=n.concat(SE.assertMin("vzA_bIeMgA",t?"CSAT: "+t:"CSAT",1,e)),n=n.concat(SE.assertMax("vzA_bIeMgA",t?"CSAT: "+t:"CSAT",5,e)),n}(e.csat)),t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"lm-MuRBQzB","dac0caff572e7ade81c545a0f42f2630a94bea4a62a2296466e7c8d2b6e47200",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Customer Experience Survey Taken",{CSAT:e.csat,CESurveyResult:e.cesurveyResult,CESurveyEmail:e.cesurveyEmail,CESurveyFeedback:e.cesurveyFeedback,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("lm-MuRBQzB","Customer Experience Survey Taken",t,[{id:"vzA_bIeMgA",name:"CSAT",value:e.csat},{id:"THcwRSZvM6",name:"CESurveyResult",value:e.cesurveyResult},{id:"hOgislLRc",name:"CESurveyEmail",value:e.cesurveyEmail},{id:"m516K79yy",name:"CESurveyFeedback",value:e.cesurveyFeedback},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Customer Experience Survey Taken': "+t[0].message)}let t={};t.CSAT=e.csat,t.CESurveyResult=e.cesurveyResult,void 0!==e.cesurveyEmail&&null!==e.cesurveyEmail&&(t.CESurveyEmail=e.cesurveyEmail),void 0!==e.cesurveyFeedback&&null!==e.cesurveyFeedback&&(t.CESurveyFeedback=e.cesurveyFeedback),t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Customer Experience Survey Taken",{CSAT:e.csat,CESurveyResult:e.cesurveyResult,CESurveyEmail:e.cesurveyEmail,CESurveyFeedback:e.cesurveyFeedback,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"lm-MuRBQzB","dac0caff572e7ade81c545a0f42f2630a94bea4a62a2296466e7c8d2b6e47200"),TE.logEvent("Customer Experience Survey Taken",Object.assign({},t)))}function mT(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"5DOF9DUSWu","7eac57598f69a400409455d1f56cfb55256400b3dad9e035d54f2642d3f2c62b",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Hint Displayed",{HintLevel:e.hintLevel,HintMessage:e.hintMessage,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("5DOF9DUSWu","Hint Displayed",t,[{id:"DeMN2QB0ec",name:"HintLevel",value:e.hintLevel},{id:"BsxQQWI9Wq",name:"HintMessage",value:e.hintMessage},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Hint Displayed': "+t[0].message)}let t={};t.HintLevel=e.hintLevel,t.HintMessage=e.hintMessage,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Hint Displayed",{HintLevel:e.hintLevel,HintMessage:e.hintMessage,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"5DOF9DUSWu","7eac57598f69a400409455d1f56cfb55256400b3dad9e035d54f2642d3f2c62b"),TE.logEvent("Hint Displayed",Object.assign({},t)))}function ST(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"mLmcHm7_I8","ad79d62f613ff53776a7c12e40eeb87c69ee6182d73363e942ca3289acceb7e7",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Hint Closed",{HintLevel:e.hintLevel,HintMessage:e.hintMessage,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("mLmcHm7_I8","Hint Closed",t,[{id:"DeMN2QB0ec",name:"HintLevel",value:e.hintLevel},{id:"BsxQQWI9Wq",name:"HintMessage",value:e.hintMessage},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Hint Closed': "+t[0].message)}let t={};t.HintLevel=e.hintLevel,t.HintMessage=e.hintMessage,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Hint Closed",{HintLevel:e.hintLevel,HintMessage:e.hintMessage,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"mLmcHm7_I8","ad79d62f613ff53776a7c12e40eeb87c69ee6182d73363e942ca3289acceb7e7"),TE.logEvent("Hint Closed",Object.assign({},t)))}function yT(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"jNNwdgzwgN","2eed93ed9e0da3daff6d5a940723b594162c757cb671981cd3891e818c99d0b9",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Snippets Panel Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("jNNwdgzwgN","Snippets Panel Opened",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Snippets Panel Opened': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Snippets Panel Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"jNNwdgzwgN","2eed93ed9e0da3daff6d5a940723b594162c757cb671981cd3891e818c99d0b9"),TE.logEvent("Snippets Panel Opened",Object.assign({},e)))}function gT(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"5c7uPww_ZF","f53d9d7b703676e20f41c41bb63113ffc00d2c8b796322167cb668c710cce154",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Switch To Team Screen Opened",{TrialDaysLeft:e.trialDaysLeft,TeamSharedGroups:e.teamSharedGroups,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("5c7uPww_ZF","Switch To Team Screen Opened",t,[{id:"LnG4vmu6Ew",name:"TrialDaysLeft",value:e.trialDaysLeft},{id:"SgnSzgGRzc",name:"TeamSharedGroups",value:e.teamSharedGroups},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Switch To Team Screen Opened': "+t[0].message)}let t={};void 0!==e.trialDaysLeft&&null!==e.trialDaysLeft&&(t.TrialDaysLeft=e.trialDaysLeft),t.TeamSharedGroups=e.teamSharedGroups,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Switch To Team Screen Opened",{TrialDaysLeft:e.trialDaysLeft,TeamSharedGroups:e.teamSharedGroups,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"5c7uPww_ZF","f53d9d7b703676e20f41c41bb63113ffc00d2c8b796322167cb668c710cce154"),TE.logEvent("Switch To Team Screen Opened",Object.assign({},t)))}function vT(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"VrhGHWR65NG","a92029633caa8cb35a553ce14b6567c7865a4c92975108c0f2aa649a0b6181bf",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Set Your Default Credentials Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("VrhGHWR65NG","Set Your Default Credentials Screen Opened",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Set Your Default Credentials Screen Opened': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Set Your Default Credentials Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"VrhGHWR65NG","a92029633caa8cb35a553ce14b6567c7865a4c92975108c0f2aa649a0b6181bf"),TE.logEvent("Set Your Default Credentials Screen Opened",Object.assign({},e)))}function _T(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"SdZhnjCSDqo","04fe7a0f773be96c3d27a418e9e1f3d110872d8a29a6ce9e203421a86e0ed975",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Account Set Up Completed Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("SdZhnjCSDqo","Account Set Up Completed Screen Opened",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Account Set Up Completed Screen Opened': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Account Set Up Completed Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"SdZhnjCSDqo","04fe7a0f773be96c3d27a418e9e1f3d110872d8a29a6ce9e203421a86e0ed975"),TE.logEvent("Account Set Up Completed Screen Opened",Object.assign({},e)))}function bT(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"oG0KIW9jF09","fe69b65855f08f8dfaef47638a1d6dcf675555f63cca53de362f7d99be93be10",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("New Identity Created",{IdentityType:e.identityType,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("oG0KIW9jF09","New Identity Created",t,[{id:"d74LiZiN0BW",name:"IdentityType",value:e.identityType},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'New Identity Created': "+t[0].message)}let t={};t.IdentityType=e.identityType,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("New Identity Created",{IdentityType:e.identityType,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"oG0KIW9jF09","fe69b65855f08f8dfaef47638a1d6dcf675555f63cca53de362f7d99be93be10"),TE.logEvent("New Identity Created",Object.assign({},t)))}function PT(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"Z7Xdo4oT4dz","2672858b333d50308d22a30ee414fe42beb134dc9c0f31f2e22baf87f18c80e6",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Team Side Onboarding Shown",{HasSharedData:e.hasSharedData,HasInvitedMembers:e.hasInvitedMembers,HasJoinedMembers:e.hasJoinedMembers,HasGrantedAccess:e.hasGrantedAccess,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("Z7Xdo4oT4dz","Team Side Onboarding Shown",t,[{id:"T_GJOpzN0k3",name:"HasSharedData",value:e.hasSharedData},{id:"XP6sVAPyWQ0",name:"HasInvitedMembers",value:e.hasInvitedMembers},{id:"ZMjhQIr0_ji",name:"HasJoinedMembers",value:e.hasJoinedMembers},{id:"IzK8QfangYc",name:"HasGrantedAccess",value:e.hasGrantedAccess},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Team Side Onboarding Shown': "+t[0].message)}let t={};t.HasSharedData=e.hasSharedData,t.HasInvitedMembers=e.hasInvitedMembers,t.HasJoinedMembers=e.hasJoinedMembers,t.HasGrantedAccess=e.hasGrantedAccess,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Team Side Onboarding Shown",{HasSharedData:e.hasSharedData,HasInvitedMembers:e.hasInvitedMembers,HasJoinedMembers:e.hasJoinedMembers,HasGrantedAccess:e.hasGrantedAccess,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"Z7Xdo4oT4dz","2672858b333d50308d22a30ee414fe42beb134dc9c0f31f2e22baf87f18c80e6"),TE.logEvent("Team Side Onboarding Shown",Object.assign({},t)))}function wT(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"G7WMqEPgDYu","b9ec144a2f22a68c61a35111f926eb8c7b652fd837f3068bbdd2f670d801291a",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Team Side Onboarding Pressed",{TeamSideOnboardingStage:e.teamSideOnboardingStage,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("G7WMqEPgDYu","Team Side Onboarding Pressed",t,[{id:"MmOXEv8Gki0",name:"TeamSideOnboardingStage",value:e.teamSideOnboardingStage},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Team Side Onboarding Pressed': "+t[0].message)}let t={};t.TeamSideOnboardingStage=e.teamSideOnboardingStage,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Team Side Onboarding Pressed",{TeamSideOnboardingStage:e.teamSideOnboardingStage,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"G7WMqEPgDYu","b9ec144a2f22a68c61a35111f926eb8c7b652fd837f3068bbdd2f670d801291a"),TE.logEvent("Team Side Onboarding Pressed",Object.assign({},t)))}function ET(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"burpyjUJw1I","5089ff4890e1229b5a4ba47fc54d8cc502c7f6b99f7c62647272ca24a203738a",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Team Side Onboarding Closed",{HasSharedData:e.hasSharedData,HasJoinedMembers:e.hasJoinedMembers,HasInvitedMembers:e.hasInvitedMembers,HasGrantedAccess:e.hasGrantedAccess,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("burpyjUJw1I","Team Side Onboarding Closed",t,[{id:"T_GJOpzN0k3",name:"HasSharedData",value:e.hasSharedData},{id:"ZMjhQIr0_ji",name:"HasJoinedMembers",value:e.hasJoinedMembers},{id:"XP6sVAPyWQ0",name:"HasInvitedMembers",value:e.hasInvitedMembers},{id:"IzK8QfangYc",name:"HasGrantedAccess",value:e.hasGrantedAccess},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Team Side Onboarding Closed': "+t[0].message)}let t={};t.HasSharedData=e.hasSharedData,t.HasJoinedMembers=e.hasJoinedMembers,t.HasInvitedMembers=e.hasInvitedMembers,t.HasGrantedAccess=e.hasGrantedAccess,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Team Side Onboarding Closed",{HasSharedData:e.hasSharedData,HasJoinedMembers:e.hasJoinedMembers,HasInvitedMembers:e.hasInvitedMembers,HasGrantedAccess:e.hasGrantedAccess,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"burpyjUJw1I","5089ff4890e1229b5a4ba47fc54d8cc502c7f6b99f7c62647272ca24a203738a"),TE.logEvent("Team Side Onboarding Closed",Object.assign({},t)))}function kT(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"FqSuK7n6fgS","8669bde8077d5099f1b4bde4d2967138057c670c49bf1c103e4dafb821ea19ef",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Snippet Sharing Canceled",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("FqSuK7n6fgS","Snippet Sharing Canceled",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Snippet Sharing Canceled': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Snippet Sharing Canceled",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"FqSuK7n6fgS","8669bde8077d5099f1b4bde4d2967138057c670c49bf1c103e4dafb821ea19ef"),TE.logEvent("Snippet Sharing Canceled",Object.assign({},e)))}function TT(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"4r2n9ziHWaO","a93a0b05b81684653111969f7b69c825889cc3462e0955f05da29d5e60c78bea",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Multiple Items Selected",{OnScreen:e.onScreen,Layout:e.layoutType,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("4r2n9ziHWaO","Multiple Items Selected",t,[{id:"B6I4Af3CH3",name:"OnScreen",value:e.onScreen},{id:"J4VlcT3plg",name:"Layout",value:e.layoutType},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Multiple Items Selected': "+t[0].message)}let t={};t.OnScreen=e.onScreen,t.Layout=e.layoutType,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Multiple Items Selected",{OnScreen:e.onScreen,Layout:e.layoutType,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"4r2n9ziHWaO","a93a0b05b81684653111969f7b69c825889cc3462e0955f05da29d5e60c78bea"),TE.logEvent("Multiple Items Selected",Object.assign({},t)))}function CT(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"wEuFmnoZeHD","50e11b9ea58c08fbd611afb3dc529a6866b7aebc1dc4b46aea2ef3b68804735c",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Multiple Connections Initiated",{SelectedItems:e.selectedItems,NumberOfSelectedItems:e.numberOfSelectedItems,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("wEuFmnoZeHD","Multiple Connections Initiated",t,[{id:"y1UUcrqggS_",name:"SelectedItems",value:e.selectedItems},{id:"2lB-ZwNtoR",name:"NumberOfSelectedItems",value:e.numberOfSelectedItems},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Multiple Connections Initiated': "+t[0].message)}let t={};t.SelectedItems=e.selectedItems,t.NumberOfSelectedItems=e.numberOfSelectedItems,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Multiple Connections Initiated",{SelectedItems:e.selectedItems,NumberOfSelectedItems:e.numberOfSelectedItems,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"wEuFmnoZeHD","50e11b9ea58c08fbd611afb3dc529a6866b7aebc1dc4b46aea2ef3b68804735c"),TE.logEvent("Multiple Connections Initiated",Object.assign({},t)))}function IT(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"6ghzS_o1ig","b3b080dc642910d58f15358c1c9df9313e8d82d04d0921b510b48bcb0bfdc761",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Preferences Button Pressed",{Preference:e.preference,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("6ghzS_o1ig","Preferences Button Pressed",t,[{id:"MciOfxjGk3",name:"Preference",value:e.preference},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Preferences Button Pressed': "+t[0].message)}let t={};t.Preference=e.preference,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Preferences Button Pressed",{Preference:e.preference,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"6ghzS_o1ig","b3b080dc642910d58f15358c1c9df9313e8d82d04d0921b510b48bcb0bfdc761"),TE.logEvent("Preferences Button Pressed",Object.assign({},t)))}function AT(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"A7NWN5K0Wg","ed0f0a4772346bdf0535e2a836cc9b01177cfff749d160e0e86ead84832ade72",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Edit Entity Screen Opened",{Entity:e.entity,EditButtonOrigin:e.editButtonOrigin,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("A7NWN5K0Wg","Edit Entity Screen Opened",t,[{id:"IdLc6aidYP",name:"Entity",value:e.entity},{id:"BW6ieYUNjc",name:"EditButtonOrigin",value:e.editButtonOrigin},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Edit Entity Screen Opened': "+t[0].message)}let t={};t.Entity=e.entity,void 0!==e.editButtonOrigin&&null!==e.editButtonOrigin&&(t.EditButtonOrigin=e.editButtonOrigin),t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Edit Entity Screen Opened",{Entity:e.entity,EditButtonOrigin:e.editButtonOrigin,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"A7NWN5K0Wg","ed0f0a4772346bdf0535e2a836cc9b01177cfff749d160e0e86ead84832ade72"),TE.logEvent("Edit Entity Screen Opened",Object.assign({},t)))}function OT(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"faY_VsDiM9","cf8c6c2e4e57a261374f079c9337b5b8d01eeb8d37f5f87e0cd5ab16bfe3d1b1",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("MultiKey Updated",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("faY_VsDiM9","MultiKey Updated",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'MultiKey Updated': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("MultiKey Updated",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"faY_VsDiM9","cf8c6c2e4e57a261374f079c9337b5b8d01eeb8d37f5f87e0cd5ab16bfe3d1b1"),TE.logEvent("MultiKey Updated",Object.assign({},e)))}function xT(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"PjUuiO47OU","a562bfe91293f63b4667c197f3222bf2866b1021ffbc360a0a822dc4bdf52f43",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Authorized Keys Downloaded",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("PjUuiO47OU","Authorized Keys Downloaded",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Authorized Keys Downloaded': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Authorized Keys Downloaded",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"PjUuiO47OU","a562bfe91293f63b4667c197f3222bf2866b1021ffbc360a0a822dc4bdf52f43"),TE.logEvent("Authorized Keys Downloaded",Object.assign({},e)))}function NT(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"smHQsUAB8i","2c6686529eb292f9413168c6ae771678c85aa365fb1e7e11c8167e12ee9e305d",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("MultiKey Chosen",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("smHQsUAB8i","MultiKey Chosen",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'MultiKey Chosen': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||null!=hE&&hE._avoFunctionTrackSchemaFromEvent("MultiKey Chosen",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"smHQsUAB8i","2c6686529eb292f9413168c6ae771678c85aa365fb1e7e11c8167e12ee9e305d")}function RT(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"6KKvv6pik","9347b50340fccc9354ac4d1a2d5377468ad4eaa24dd870b2545bdd18ec1de534",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("SSH Key For MultiKey Generated",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("6KKvv6pik","SSH Key For MultiKey Generated",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'SSH Key For MultiKey Generated': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("SSH Key For MultiKey Generated",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"6KKvv6pik","9347b50340fccc9354ac4d1a2d5377468ad4eaa24dd870b2545bdd18ec1de534"),TE.logEvent("SSH Key For MultiKey Generated",Object.assign({},e)))}function DT(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"SB4NEs87IT","b652b1824424aed9fff46a2aa532d1411ea41b2ea70e898b45f2d6efe3cf6b93",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Create MultiKey-Export Script Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("SB4NEs87IT","Create MultiKey-Export Script Button Pressed",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Create MultiKey-Export Script Button Pressed': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Create MultiKey-Export Script Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"SB4NEs87IT","b652b1824424aed9fff46a2aa532d1411ea41b2ea70e898b45f2d6efe3cf6b93"),TE.logEvent("Create MultiKey-Export Script Button Pressed",Object.assign({},e)))}function HT(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"BbOuOWdYKb","91e50ba1f3b9d26f7291b741ec89f381e1a95038cb3e37e54758d36781489ea7",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("MFA Configure Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("BbOuOWdYKb","MFA Configure Screen Opened",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'MFA Configure Screen Opened': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("MFA Configure Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"BbOuOWdYKb","91e50ba1f3b9d26f7291b741ec89f381e1a95038cb3e37e54758d36781489ea7"),TE.logEvent("MFA Configure Screen Opened",Object.assign({},e)))}function FT(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"12KggkktJr","a4a88aed45628d157521e7cc6a0dec7f1eb5298020b60b550a7b010412b11e6b",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("MFA Install Authy Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("12KggkktJr","MFA Install Authy Screen Opened",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'MFA Install Authy Screen Opened': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("MFA Install Authy Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"12KggkktJr","a4a88aed45628d157521e7cc6a0dec7f1eb5298020b60b550a7b010412b11e6b"),TE.logEvent("MFA Install Authy Screen Opened",Object.assign({},e)))}function GT(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"qfetGxaWuW","7df8032e8c97d1c963af6ae39fcb5151b6cc0a328cfbbc661a9fb33ebe6ef4c6",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("MFA Confirm Password Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("qfetGxaWuW","MFA Confirm Password Screen Opened",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'MFA Confirm Password Screen Opened': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("MFA Confirm Password Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"qfetGxaWuW","7df8032e8c97d1c963af6ae39fcb5151b6cc0a328cfbbc661a9fb33ebe6ef4c6"),TE.logEvent("MFA Confirm Password Screen Opened",Object.assign({},e)))}function UT(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"P_iBqyBP42","f2c72f869688050432ba1dc55cf34395022519b40bbd17cd78572f05ecc70ebf",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("MFA Phone Number Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("P_iBqyBP42","MFA Phone Number Screen Opened",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'MFA Phone Number Screen Opened': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("MFA Phone Number Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"P_iBqyBP42","f2c72f869688050432ba1dc55cf34395022519b40bbd17cd78572f05ecc70ebf"),TE.logEvent("MFA Phone Number Screen Opened",Object.assign({},e)))}function LT(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"WWq57_Qb1E","6ea904f8521d8900018043d6fa2cc05ada415615f8e346dfe4cebd0013f01a30",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("MFA Token Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("WWq57_Qb1E","MFA Token Screen Opened",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'MFA Token Screen Opened': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("MFA Token Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"WWq57_Qb1E","6ea904f8521d8900018043d6fa2cc05ada415615f8e346dfe4cebd0013f01a30"),TE.logEvent("MFA Token Screen Opened",Object.assign({},e)))}function jT(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"LGqW4BgzC9","207deb48cc2b0df63e586b748ca12fba27878a4b3c34f6a25602223c19170bed",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Entities Drag and Drop Completed",{SelectedItems:e.selectedItems,NumberOfSelectedItems:e.numberOfSelectedItems,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("LGqW4BgzC9","Entities Drag and Drop Completed",t,[{id:"y1UUcrqggS_",name:"SelectedItems",value:e.selectedItems},{id:"2lB-ZwNtoR",name:"NumberOfSelectedItems",value:e.numberOfSelectedItems},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Entities Drag and Drop Completed': "+t[0].message)}let t={};t.SelectedItems=e.selectedItems,t.NumberOfSelectedItems=e.numberOfSelectedItems,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Entities Drag and Drop Completed",{SelectedItems:e.selectedItems,NumberOfSelectedItems:e.numberOfSelectedItems,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"LGqW4BgzC9","207deb48cc2b0df63e586b748ca12fba27878a4b3c34f6a25602223c19170bed"),TE.logEvent("Entities Drag and Drop Completed",Object.assign({},t)))}function MT(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"53KQu8OQbO","fcaf9ae3598ef178116023cfce357b00b223f0acdaa396f16ef77ec9dbe6de96",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Entities Drag and Drop Started",{SelectedItems:e.selectedItems,NumberOfSelectedItems:e.numberOfSelectedItems,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("53KQu8OQbO","Entities Drag and Drop Started",t,[{id:"y1UUcrqggS_",name:"SelectedItems",value:e.selectedItems},{id:"2lB-ZwNtoR",name:"NumberOfSelectedItems",value:e.numberOfSelectedItems},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Entities Drag and Drop Started': "+t[0].message)}let t={};t.SelectedItems=e.selectedItems,t.NumberOfSelectedItems=e.numberOfSelectedItems,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Entities Drag and Drop Started",{SelectedItems:e.selectedItems,NumberOfSelectedItems:e.numberOfSelectedItems,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"53KQu8OQbO","fcaf9ae3598ef178116023cfce357b00b223f0acdaa396f16ef77ec9dbe6de96"),TE.logEvent("Entities Drag and Drop Started",Object.assign({},t)))}function BT(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"VOsgf3ReZL","d03c612e2fa59547989ad3e39641856a7cdafda2ed84405149df46c6228b98ae",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Enter Passphrase Screen Opened",{AuthMethod:e.authMethod,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("VOsgf3ReZL","Enter Passphrase Screen Opened",t,[{id:"1yGELHVfm8",name:"AuthMethod",value:e.authMethod},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Enter Passphrase Screen Opened': "+t[0].message)}let t={};t.AuthMethod=e.authMethod,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Enter Passphrase Screen Opened",{AuthMethod:e.authMethod,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"VOsgf3ReZL","d03c612e2fa59547989ad3e39641856a7cdafda2ed84405149df46c6228b98ae"),TE.logEvent("Enter Passphrase Screen Opened",Object.assign({},t)))}function KT(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"R2kPreqXUa","5a0b4dd90b3d564814bf3b2c63c1891fe9389902dc94e918a806553bfb15b390",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Set Passphrase Screen Opened",{AuthMethod:e.authMethod,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("R2kPreqXUa","Set Passphrase Screen Opened",t,[{id:"1yGELHVfm8",name:"AuthMethod",value:e.authMethod},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Set Passphrase Screen Opened': "+t[0].message)}let t={};t.AuthMethod=e.authMethod,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Set Passphrase Screen Opened",{AuthMethod:e.authMethod,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"R2kPreqXUa","5a0b4dd90b3d564814bf3b2c63c1891fe9389902dc94e918a806553bfb15b390"),TE.logEvent("Set Passphrase Screen Opened",Object.assign({},t)))}function qT(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"YeNBiqQOwF","22f516c541bd35567522ce56cd6aa84808893260e59498951a61ccd6c1798360",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Passphrase Info Screen Opened",{AuthMethod:e.authMethod,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("YeNBiqQOwF","Passphrase Info Screen Opened",t,[{id:"1yGELHVfm8",name:"AuthMethod",value:e.authMethod},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Passphrase Info Screen Opened': "+t[0].message)}let t={};t.AuthMethod=e.authMethod,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Passphrase Info Screen Opened",{AuthMethod:e.authMethod,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"YeNBiqQOwF","22f516c541bd35567522ce56cd6aa84808893260e59498951a61ccd6c1798360"),TE.logEvent("Passphrase Info Screen Opened",Object.assign({},t)))}function VT(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"67KCqwRYdA","92801ba29c0623a4d974777fdb14861f2056cd8eb74b0aa56b1e76c95759fa43",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Who's in Termius Screen Opened",{UsersOnline:e.usersOnline,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("67KCqwRYdA","Who's in Termius Screen Opened",t,[{id:"uF5Jw9j-9",name:"UsersOnline",value:e.usersOnline},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Who's in Termius Screen Opened': "+t[0].message)}let t={};t.UsersOnline=e.usersOnline,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Who's in Termius Screen Opened",{UsersOnline:e.usersOnline,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"67KCqwRYdA","92801ba29c0623a4d974777fdb14861f2056cd8eb74b0aa56b1e76c95759fa43"),TE.logEvent("Who's in Termius Screen Opened",Object.assign({},t)))}function $T(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"bF6kOLEZR0","5c0048c0c55b84eb3717fc9295b975d9378b7689f70e89d4a5a8281267686572",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Presence Icon Pressed",{PresenceIconLocation:e.presenceIconLocation,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("bF6kOLEZR0","Presence Icon Pressed",t,[{id:"8GJN4gfO8N",name:"PresenceIconLocation",value:e.presenceIconLocation},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Presence Icon Pressed': "+t[0].message)}let t={};t.PresenceIconLocation=e.presenceIconLocation,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Presence Icon Pressed",{PresenceIconLocation:e.presenceIconLocation,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"bF6kOLEZR0","5c0048c0c55b84eb3717fc9295b975d9378b7689f70e89d4a5a8281267686572"),TE.logEvent("Presence Icon Pressed",Object.assign({},t)))}function WT(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"hZ18MRQxJ","293976eab554cfc9696b5e97011903e7499412b3267481c03f130371159e1be4",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Serial Connection Promo Screen Opened",{SerialSource:e.serialSource,PromoType:e.promoType,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("hZ18MRQxJ","Serial Connection Promo Screen Opened",t,[{id:"dpPMXLXJdx",name:"SerialSource",value:e.serialSource},{id:"5wNDwJ-3K3",name:"PromoType",value:e.promoType},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Serial Connection Promo Screen Opened': "+t[0].message)}let t={};t.SerialSource=e.serialSource,void 0!==e.promoType&&null!==e.promoType&&(t.PromoType=e.promoType),t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Serial Connection Promo Screen Opened",{SerialSource:e.serialSource,PromoType:e.promoType,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"hZ18MRQxJ","293976eab554cfc9696b5e97011903e7499412b3267481c03f130371159e1be4"),TE.logEvent("Serial Connection Promo Screen Opened",Object.assign({},t)))}function zT(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"DZf_uvuEKu","2fecb0a0459eb2b2f3f40c55b0d80a6964017efa4edba822cc933d76861827a5",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Serial Connection Screen Opened",{SerialSource:e.serialSource,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("DZf_uvuEKu","Serial Connection Screen Opened",t,[{id:"dpPMXLXJdx",name:"SerialSource",value:e.serialSource},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Serial Connection Screen Opened': "+t[0].message)}let t={};t.SerialSource=e.serialSource,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Serial Connection Screen Opened",{SerialSource:e.serialSource,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"DZf_uvuEKu","2fecb0a0459eb2b2f3f40c55b0d80a6964017efa4edba822cc933d76861827a5"),TE.logEvent("Serial Connection Screen Opened",Object.assign({},t)))}function JT(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"1-52F0GKM","e0f8be596f098e35ed5aa723b31d6126c302388205b2a32070f8e1ee0a3d22ae",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("MFA Choose Provider Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("1-52F0GKM","MFA Choose Provider Screen Opened",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'MFA Choose Provider Screen Opened': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("MFA Choose Provider Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"1-52F0GKM","e0f8be596f098e35ed5aa723b31d6126c302388205b2a32070f8e1ee0a3d22ae"),TE.logEvent("MFA Choose Provider Screen Opened",Object.assign({},e)))}function XT(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"b5uH_0m74S","ec484df3fbc4fc365cdf670f52f5937eb81b47dfb015a8bddebc7c67f7c5a889",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("MFA Copy Code Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("b5uH_0m74S","MFA Copy Code Screen Opened",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'MFA Copy Code Screen Opened': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("MFA Copy Code Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"b5uH_0m74S","ec484df3fbc4fc365cdf670f52f5937eb81b47dfb015a8bddebc7c67f7c5a889"),TE.logEvent("MFA Copy Code Screen Opened",Object.assign({},e)))}function QT(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"QGG1T1nUF","b177e6617e60c83152175ac1c74cf5503a582384e4e70445844f06fdd6d58f1c",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("MFA Code Copied",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("QGG1T1nUF","MFA Code Copied",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'MFA Code Copied': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("MFA Code Copied",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"QGG1T1nUF","b177e6617e60c83152175ac1c74cf5503a582384e4e70445844f06fdd6d58f1c"),TE.logEvent("MFA Code Copied",Object.assign({},e)))}function YT(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"CSRCH7tzW","165a22f23fa2fbe2ea0d6f2f7182f488c072478df0b84fa76d0aa773e88a3322",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("MFA Provider Chosen",{MFAProviderType:e.mfaproviderType,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("CSRCH7tzW","MFA Provider Chosen",t,[{id:"DKvuKwSF0",name:"MFAProviderType",value:e.mfaproviderType},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'MFA Provider Chosen': "+t[0].message)}let t={};t.MFAProviderType=e.mfaproviderType,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("MFA Provider Chosen",{MFAProviderType:e.mfaproviderType,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"CSRCH7tzW","165a22f23fa2fbe2ea0d6f2f7182f488c072478df0b84fa76d0aa773e88a3322"),TE.logEvent("MFA Provider Chosen",Object.assign({},t)))}function ZT(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"BGlxEczlH","3776cc5efdbeceb101dcaab06d13b7b15a39200855cb7e49a1b631e197e9ea25",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Shared Terminal Session Started",{ConnectionID:e.connectionID,TerminalSharingSource:e.terminalSharingSource,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("BGlxEczlH","Shared Terminal Session Started",t,[{id:"LtX0SIqFoB",name:"ConnectionID",value:e.connectionID},{id:"TdSO5JLzHi",name:"TerminalSharingSource",value:e.terminalSharingSource},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Shared Terminal Session Started': "+t[0].message)}let t={};t.ConnectionID=e.connectionID,t.TerminalSharingSource=e.terminalSharingSource,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Shared Terminal Session Started",{ConnectionID:e.connectionID,TerminalSharingSource:e.terminalSharingSource,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"BGlxEczlH","3776cc5efdbeceb101dcaab06d13b7b15a39200855cb7e49a1b631e197e9ea25"),TE.logEvent("Shared Terminal Session Started",Object.assign({},t)))}function eC(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"TopFwE-reB","a68d84c90a7da5ad172408b3167f9da3fcd4371e656de12a558012c9daddcc03",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Shared Terminal Session Permissions Changed",{ConnectionID:e.connectionID,SharedTerminalPermissions:e.sharedTerminalPermissions,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("TopFwE-reB","Shared Terminal Session Permissions Changed",t,[{id:"LtX0SIqFoB",name:"ConnectionID",value:e.connectionID},{id:"MnWhD9Jv8I",name:"SharedTerminalPermissions",value:e.sharedTerminalPermissions},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Shared Terminal Session Permissions Changed': "+t[0].message)}let t={};t.ConnectionID=e.connectionID,t.SharedTerminalPermissions=e.sharedTerminalPermissions,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Shared Terminal Session Permissions Changed",{ConnectionID:e.connectionID,SharedTerminalPermissions:e.sharedTerminalPermissions,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"TopFwE-reB","a68d84c90a7da5ad172408b3167f9da3fcd4371e656de12a558012c9daddcc03"),TE.logEvent("Shared Terminal Session Permissions Changed",Object.assign({},t)))}function tC(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"LRlsjeGPu","5cfd533ed165bf527699b46b4897b604cc168db203dbf26d34b1598f4ba1c21c",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Shared Terminal Session Stopped",{ConnectionID:e.connectionID,PeakViewers:e.peakViewers,Duration:e.duration,ReceivedCommands:e.receivedCommands,TotalViewers:e.totalViewers,SharedTerminalPermissions:e.sharedTerminalPermissions,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("LRlsjeGPu","Shared Terminal Session Stopped",t,[{id:"LtX0SIqFoB",name:"ConnectionID",value:e.connectionID},{id:"teufSR2Bu",name:"PeakViewers",value:e.peakViewers},{id:"2zl-Stmjk",name:"Duration",value:e.duration},{id:"NLmnkBWKH",name:"ReceivedCommands",value:e.receivedCommands},{id:"EMMeE6kiC",name:"TotalViewers",value:e.totalViewers},{id:"MnWhD9Jv8I",name:"SharedTerminalPermissions",value:e.sharedTerminalPermissions},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Shared Terminal Session Stopped': "+t[0].message)}let t={};t.ConnectionID=e.connectionID,t.PeakViewers=e.peakViewers,t.Duration=e.duration,t.ReceivedCommands=e.receivedCommands,t.TotalViewers=e.totalViewers,t.SharedTerminalPermissions=e.sharedTerminalPermissions,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Shared Terminal Session Stopped",{ConnectionID:e.connectionID,PeakViewers:e.peakViewers,Duration:e.duration,ReceivedCommands:e.receivedCommands,TotalViewers:e.totalViewers,SharedTerminalPermissions:e.sharedTerminalPermissions,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"LRlsjeGPu","5cfd533ed165bf527699b46b4897b604cc168db203dbf26d34b1598f4ba1c21c"),TE.logEvent("Shared Terminal Session Stopped",Object.assign({},t)))}function nC(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"xMZFX8kkq","363caf140bf352999df6e94087793b30608053c0f4c883c66e214e0e45be4484",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Shared Terminal Viewer Joined",{ConnectionID:e.connectionID,CurrentViewers:e.currentViewers,SharedTerminalPermissions:e.sharedTerminalPermissions,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("xMZFX8kkq","Shared Terminal Viewer Joined",t,[{id:"LtX0SIqFoB",name:"ConnectionID",value:e.connectionID},{id:"l4X5Kp_TW",name:"CurrentViewers",value:e.currentViewers},{id:"MnWhD9Jv8I",name:"SharedTerminalPermissions",value:e.sharedTerminalPermissions},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Shared Terminal Viewer Joined': "+t[0].message)}let t={};t.ConnectionID=e.connectionID,t.CurrentViewers=e.currentViewers,t.SharedTerminalPermissions=e.sharedTerminalPermissions,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Shared Terminal Viewer Joined",{ConnectionID:e.connectionID,CurrentViewers:e.currentViewers,SharedTerminalPermissions:e.sharedTerminalPermissions,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"xMZFX8kkq","363caf140bf352999df6e94087793b30608053c0f4c883c66e214e0e45be4484"),TE.logEvent("Shared Terminal Viewer Joined",Object.assign({},t)))}function rC(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"YBCcpTz_3m","904e89108b81ce785d555ce3c7a2089feca168b7b876f8167fde8cd92326f349",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Shared Terminal Viewer Left",{ConnectionID:e.connectionID,CurrentViewers:e.currentViewers,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("YBCcpTz_3m","Shared Terminal Viewer Left",t,[{id:"LtX0SIqFoB",name:"ConnectionID",value:e.connectionID},{id:"l4X5Kp_TW",name:"CurrentViewers",value:e.currentViewers},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Shared Terminal Viewer Left': "+t[0].message)}let t={};t.ConnectionID=e.connectionID,t.CurrentViewers=e.currentViewers,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Shared Terminal Viewer Left",{ConnectionID:e.connectionID,CurrentViewers:e.currentViewers,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"YBCcpTz_3m","904e89108b81ce785d555ce3c7a2089feca168b7b876f8167fde8cd92326f349"),TE.logEvent("Shared Terminal Viewer Left",Object.assign({},t)))}function aC(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"1e_LCMCs5","557f57d92b988d8bfc8fd73bc0cbfb622f88bf40adec85c1bdb1b5743eae1a0f",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Share Terminal Button Pressed",{ConnectionID:e.connectionID,TerminalSharingSource:e.terminalSharingSource,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("1e_LCMCs5","Share Terminal Button Pressed",t,[{id:"LtX0SIqFoB",name:"ConnectionID",value:e.connectionID},{id:"TdSO5JLzHi",name:"TerminalSharingSource",value:e.terminalSharingSource},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Share Terminal Button Pressed': "+t[0].message)}let t={};t.ConnectionID=e.connectionID,t.TerminalSharingSource=e.terminalSharingSource,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Share Terminal Button Pressed",{ConnectionID:e.connectionID,TerminalSharingSource:e.terminalSharingSource,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"1e_LCMCs5","557f57d92b988d8bfc8fd73bc0cbfb622f88bf40adec85c1bdb1b5743eae1a0f"),TE.logEvent("Share Terminal Button Pressed",Object.assign({},t)))}function iC(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"KG6OCK1uwI","3a88f0e56e9ae6f059c9463231505a7d5d994cf68efb3b8b05bc4719d233e25b",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Shared Terminal Session Failed",{ConnectionID:e.connectionID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("KG6OCK1uwI","Shared Terminal Session Failed",t,[{id:"LtX0SIqFoB",name:"ConnectionID",value:e.connectionID},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Shared Terminal Session Failed': "+t[0].message)}let t={};t.ConnectionID=e.connectionID,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Shared Terminal Session Failed",{ConnectionID:e.connectionID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"KG6OCK1uwI","3a88f0e56e9ae6f059c9463231505a7d5d994cf68efb3b8b05bc4719d233e25b"),TE.logEvent("Shared Terminal Session Failed",Object.assign({},t)))}function sC(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"y8pocRvOc8","1d6f09938aca20f1e17b86b1f016fd9e74d1ca0f7d643f6ff963e2522447648a",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Team Trial Expired Screen Opened",{TeamJoinedMembers:e.teamJoinedMembers,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("y8pocRvOc8","Team Trial Expired Screen Opened",t,[{id:"ks7IIGgN1",name:"TeamJoinedMembers",value:e.teamJoinedMembers},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Team Trial Expired Screen Opened': "+t[0].message)}let t={};t.TeamJoinedMembers=e.teamJoinedMembers,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Team Trial Expired Screen Opened",{TeamJoinedMembers:e.teamJoinedMembers,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"y8pocRvOc8","1d6f09938aca20f1e17b86b1f016fd9e74d1ca0f7d643f6ff963e2522447648a"),TE.logEvent("Team Trial Expired Screen Opened",Object.assign({},t)))}function oC(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"t_71r4v3c","39289ce67c610f43cc9753b739606710adac19581eb9ea166775fb05e0212ab1",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Team Trial Extended Screen Opened",{TeamJoinedMembers:e.teamJoinedMembers,TrialDaysLeft:e.trialDaysLeft,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("t_71r4v3c","Team Trial Extended Screen Opened",t,[{id:"ks7IIGgN1",name:"TeamJoinedMembers",value:e.teamJoinedMembers},{id:"LnG4vmu6Ew",name:"TrialDaysLeft",value:e.trialDaysLeft},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Team Trial Extended Screen Opened': "+t[0].message)}let t={};t.TeamJoinedMembers=e.teamJoinedMembers,void 0!==e.trialDaysLeft&&null!==e.trialDaysLeft&&(t.TrialDaysLeft=e.trialDaysLeft),t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Team Trial Extended Screen Opened",{TeamJoinedMembers:e.teamJoinedMembers,TrialDaysLeft:e.trialDaysLeft,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"t_71r4v3c","39289ce67c610f43cc9753b739606710adac19581eb9ea166775fb05e0212ab1"),TE.logEvent("Team Trial Extended Screen Opened",Object.assign({},t)))}function lC(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"2XlX4c0LyY","c21515ff3ee5123a3152c19f1b2016e1a24f34cbc0c7e22f8deef216bcd5ddfc",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Team Trial Extension Rejected Screen Opened",{TeamJoinedMembers:e.teamJoinedMembers,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("2XlX4c0LyY","Team Trial Extension Rejected Screen Opened",t,[{id:"ks7IIGgN1",name:"TeamJoinedMembers",value:e.teamJoinedMembers},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Team Trial Extension Rejected Screen Opened': "+t[0].message)}let t={};t.TeamJoinedMembers=e.teamJoinedMembers,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Team Trial Extension Rejected Screen Opened",{TeamJoinedMembers:e.teamJoinedMembers,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"2XlX4c0LyY","c21515ff3ee5123a3152c19f1b2016e1a24f34cbc0c7e22f8deef216bcd5ddfc"),TE.logEvent("Team Trial Extension Rejected Screen Opened",Object.assign({},t)))}function cC(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"OaktgXYQxv","22858d17218095ca8289c756ff631fa92032b31b0363c2f71298e91be6fc972a",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Invite Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("OaktgXYQxv","Invite Screen Opened",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Invite Screen Opened': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Invite Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"OaktgXYQxv","22858d17218095ca8289c756ff631fa92032b31b0363c2f71298e91be6fc972a"),TE.logEvent("Invite Screen Opened",Object.assign({},e)))}function uC(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"_di-DZMVju","993d353e0452df90316c8399825d4488e81bc9bd16cf70bcd2beeb9919acfd71",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Invite Button Pressed",{NumberOfInvitees:e.numberOfInvitees,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("_di-DZMVju","Invite Button Pressed",t,[{id:"Lw0SpgCRV",name:"NumberOfInvitees",value:e.numberOfInvitees},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Invite Button Pressed': "+t[0].message)}let t={};t.NumberOfInvitees=e.numberOfInvitees,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Invite Button Pressed",{NumberOfInvitees:e.numberOfInvitees,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"_di-DZMVju","993d353e0452df90316c8399825d4488e81bc9bd16cf70bcd2beeb9919acfd71"),TE.logEvent("Invite Button Pressed",Object.assign({},t)))}function pC(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"7xt4Qaz4y","c48179fdeecf61d994943b3651bb3bdbd0d4356f7ce127b264919252454858bc",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("SFTP File Opened",{FileExtension:e.fileExtension,FileOpenOption:e.fileOpenOption,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("7xt4Qaz4y","SFTP File Opened",t,[{id:"vAfcgSvge",name:"FileExtension",value:e.fileExtension},{id:"tSkac5onpn",name:"FileOpenOption",value:e.fileOpenOption},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'SFTP File Opened': "+t[0].message)}let t={};t.FileExtension=e.fileExtension,t.FileOpenOption=e.fileOpenOption,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("SFTP File Opened",{FileExtension:e.fileExtension,FileOpenOption:e.fileOpenOption,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"7xt4Qaz4y","c48179fdeecf61d994943b3651bb3bdbd0d4356f7ce127b264919252454858bc"),TE.logEvent("SFTP File Opened",Object.assign({},t)))}function dC(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"uDvBA6LP3Z","099e78b8aeed45edd598429f52fc263347d58d5f7787ae552ca7466dfe1676f8",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("File Type Associated",{OnScreen:e.onScreen,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("uDvBA6LP3Z","File Type Associated",t,[{id:"B6I4Af3CH3",name:"OnScreen",value:e.onScreen},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'File Type Associated': "+t[0].message)}let t={};t.OnScreen=e.onScreen,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("File Type Associated",{OnScreen:e.onScreen,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"uDvBA6LP3Z","099e78b8aeed45edd598429f52fc263347d58d5f7787ae552ca7466dfe1676f8"),TE.logEvent("File Type Associated",Object.assign({},t)))}function hC(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"HwxQ1GLnVN","488f1ab273b61b8a7714337648127ebef104c6b9add009620315860434cce4fa",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("SFTP Upload File Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("HwxQ1GLnVN","SFTP Upload File Button Pressed",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'SFTP Upload File Button Pressed': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("SFTP Upload File Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"HwxQ1GLnVN","488f1ab273b61b8a7714337648127ebef104c6b9add009620315860434cce4fa"),TE.logEvent("SFTP Upload File Button Pressed",Object.assign({},e)))}function fC(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"WZfNZqn-4","15933e5200462eb3a73a6e73808dc24b94b2a3ccb06db001bc287a4a4756c8b4",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("SFTP Discard File Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("WZfNZqn-4","SFTP Discard File Button Pressed",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'SFTP Discard File Button Pressed': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("SFTP Discard File Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"WZfNZqn-4","15933e5200462eb3a73a6e73808dc24b94b2a3ccb06db001bc287a4a4756c8b4"),TE.logEvent("SFTP Discard File Button Pressed",Object.assign({},e)))}function mC(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"a0rIl5eAV","62ecdcc123afb769d69ca03ea06ec4ae60de4abd7db8c10fae9445695d92ae0e",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("SFTP Modified Files Bar Shown",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("a0rIl5eAV","SFTP Modified Files Bar Shown",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'SFTP Modified Files Bar Shown': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("SFTP Modified Files Bar Shown",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"a0rIl5eAV","62ecdcc123afb769d69ca03ea06ec4ae60de4abd7db8c10fae9445695d92ae0e"),TE.logEvent("SFTP Modified Files Bar Shown",Object.assign({},e)))}function SC(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"o5jfvS2OCp","8a95f0d8918c87053d56d89dd2ae25fe304adbd0c4d5dfe2d98833b805c89289",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Team Trial Funnel Started",{OpenedFrom:e.openedFrom,TeamTrialFunnelID:e.teamTrialFunnelID,TeamTrialPlan:e.teamTrialPlan,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("o5jfvS2OCp","Team Trial Funnel Started",t,[{id:"8gtfydWW0",name:"OpenedFrom",value:e.openedFrom},{id:"doMi5lwcT0",name:"TeamTrialFunnelID",value:e.teamTrialFunnelID},{id:"R3l4OxBEb",name:"TeamTrialPlan",value:e.teamTrialPlan},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Team Trial Funnel Started': "+t[0].message)}let t={};t.OpenedFrom=e.openedFrom,t.TeamTrialFunnelID=e.teamTrialFunnelID,void 0!==e.teamTrialPlan&&null!==e.teamTrialPlan&&(t.TeamTrialPlan=e.teamTrialPlan),t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Team Trial Funnel Started",{OpenedFrom:e.openedFrom,TeamTrialFunnelID:e.teamTrialFunnelID,TeamTrialPlan:e.teamTrialPlan,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"o5jfvS2OCp","8a95f0d8918c87053d56d89dd2ae25fe304adbd0c4d5dfe2d98833b805c89289"),TE.logEvent("Team Trial Funnel Started",Object.assign({},t)))}function yC(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"_ynFTy3iQZ","42c3e8530374be76ef4ab338c7fe17bec7beab9c40b5403916861fe7e089467b",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("New Key Button Pressed",{NewKeyLocation:e.newKeyLocation,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("_ynFTy3iQZ","New Key Button Pressed",t,[{id:"lZBTEK4F3G",name:"NewKeyLocation",value:e.newKeyLocation},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'New Key Button Pressed': "+t[0].message)}let t={};t.NewKeyLocation=e.newKeyLocation,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("New Key Button Pressed",{NewKeyLocation:e.newKeyLocation,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"_ynFTy3iQZ","42c3e8530374be76ef4ab338c7fe17bec7beab9c40b5403916861fe7e089467b"),TE.logEvent("New Key Button Pressed",Object.assign({},t)))}function gC(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"aYl6vBHSQ","46c35922f8f8e45760da857848befc5a18b82f6ce16fd7e263cf1d748aeaa1a7",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("New Key Option Selected",{AddKeyOption:e.addKeyOption,WizardID:e.wizardID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("aYl6vBHSQ","New Key Option Selected",t,[{id:"CohO2Q7nBB",name:"AddKeyOption",value:e.addKeyOption},{id:"MGexS9ePV",name:"WizardID",value:e.wizardID},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'New Key Option Selected': "+t[0].message)}let t={};t.AddKeyOption=e.addKeyOption,void 0!==e.wizardID&&null!==e.wizardID&&(t.WizardID=e.wizardID),t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("New Key Option Selected",{AddKeyOption:e.addKeyOption,WizardID:e.wizardID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"aYl6vBHSQ","46c35922f8f8e45760da857848befc5a18b82f6ce16fd7e263cf1d748aeaa1a7"),TE.logEvent("New Key Option Selected",Object.assign({},t)))}function vC(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"1_9kXZN9NE","449bfcaa1e9d8649bfc064313f32e0bcc49e32855fb5a10aabda2fb88842f437",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Restart Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("1_9kXZN9NE","Restart Button Pressed",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Restart Button Pressed': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Restart Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"1_9kXZN9NE","449bfcaa1e9d8649bfc064313f32e0bcc49e32855fb5a10aabda2fb88842f437"),TE.logEvent("Restart Button Pressed",Object.assign({},e)))}function _C(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"t1-R7YvCh","e82057c53a95b62a353528a8f09f1eef5eda178cc001803f5071e2a057326d70",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Changelog Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("t1-R7YvCh","Changelog Button Pressed",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Changelog Button Pressed': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Changelog Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"t1-R7YvCh","e82057c53a95b62a353528a8f09f1eef5eda178cc001803f5071e2a057326d70"),TE.logEvent("Changelog Button Pressed",Object.assign({},e)))}function bC(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"2Zq-iqtUgz","da23631cc10d651bddec5f517e1d804615d10b63ac68bca07407b258104683da",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Tab Context Menu Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("2Zq-iqtUgz","Tab Context Menu Opened",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Tab Context Menu Opened': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Tab Context Menu Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"2Zq-iqtUgz","da23631cc10d651bddec5f517e1d804615d10b63ac68bca07407b258104683da"),TE.logEvent("Tab Context Menu Opened",Object.assign({},e)))}function PC(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"ep-h46gZpJ","9d6c552121d83e0a8411c917852d0a6fa08efd589064e64da32c2a137e99290c",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("New Hardware Key Created",{FIDO2BasedKey:e.fido2BasedKey,KeySource:e.keySource,WizardID:e.wizardID,ConnectionID:e.connectionID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("ep-h46gZpJ","New Hardware Key Created",t,[{id:"d0wP8dzLwR",name:"FIDO2BasedKey",value:e.fido2BasedKey},{id:"u1WQcoOF-",name:"KeySource",value:e.keySource},{id:"MGexS9ePV",name:"WizardID",value:e.wizardID},{id:"LtX0SIqFoB",name:"ConnectionID",value:e.connectionID},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'New Hardware Key Created': "+t[0].message)}let t={};t.FIDO2BasedKey=e.fido2BasedKey,t.KeySource=e.keySource,void 0!==e.wizardID&&null!==e.wizardID&&(t.WizardID=e.wizardID),void 0!==e.connectionID&&null!==e.connectionID&&(t.ConnectionID=e.connectionID),t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("New Hardware Key Created",{FIDO2BasedKey:e.fido2BasedKey,KeySource:e.keySource,WizardID:e.wizardID,ConnectionID:e.connectionID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"ep-h46gZpJ","9d6c552121d83e0a8411c917852d0a6fa08efd589064e64da32c2a137e99290c"),TE.logEvent("New Hardware Key Created",Object.assign({},t)))}function wC(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"SUCW5Ug_Gz","adbe13f844570fefa198d522ca9eabc02cad79a4e1b6c0e48233f8c6ea31086b",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Session Log Opened",{Source:e.sessionLogSource,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("SUCW5Ug_Gz","Session Log Opened",t,[{id:"K_mOuzpKT",name:"Source",value:e.sessionLogSource},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Session Log Opened': "+t[0].message)}let t={};t.Source=e.sessionLogSource,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Session Log Opened",{Source:e.sessionLogSource,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"SUCW5Ug_Gz","adbe13f844570fefa198d522ca9eabc02cad79a4e1b6c0e48233f8c6ea31086b"),TE.logEvent("Session Log Opened",Object.assign({},t)))}function EC(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"zp9KhzqfXc","4ce317878f1d34f852b3e853affd88a5c7e257ddee46f71580c3374e22ff287d",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Commands History Panel Opened",{CommandsHistorySource:e.commandsHistorySource,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("zp9KhzqfXc","Commands History Panel Opened",t,[{id:"xzir_lk9N",name:"CommandsHistorySource",value:e.commandsHistorySource},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Commands History Panel Opened': "+t[0].message)}let t={};t.CommandsHistorySource=e.commandsHistorySource,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Commands History Panel Opened",{CommandsHistorySource:e.commandsHistorySource,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"zp9KhzqfXc","4ce317878f1d34f852b3e853affd88a5c7e257ddee46f71580c3374e22ff287d"),TE.logEvent("Commands History Panel Opened",Object.assign({},t)))}function kC(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"fpB7nE905Y","e2600f4ada57d1c33f03ee49297c70cd61863ace39355819b346f34a0f9dacc0",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Credentials Sharing Screen Opened",{CredentialsSharingMode:e.credentialsSharingMode,HostChainConflicts:e.hostChainConflicts,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("fpB7nE905Y","Credentials Sharing Screen Opened",t,[{id:"EAhyJvlH96",name:"CredentialsSharingMode",value:e.credentialsSharingMode},{id:"9deqEAxUUy",name:"HostChainConflicts",value:e.hostChainConflicts},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Credentials Sharing Screen Opened': "+t[0].message)}let t={};t.CredentialsSharingMode=e.credentialsSharingMode,t.HostChainConflicts=e.hostChainConflicts,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Credentials Sharing Screen Opened",{CredentialsSharingMode:e.credentialsSharingMode,HostChainConflicts:e.hostChainConflicts,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"fpB7nE905Y","e2600f4ada57d1c33f03ee49297c70cd61863ace39355819b346f34a0f9dacc0"),TE.logEvent("Credentials Sharing Screen Opened",Object.assign({},t)))}function TC(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"5pMsD2DzKO","9c6c48af397862dfafd5dae28f725f4804be64248f4100650f94c6695871afc3",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Root Group Shared",{CredentialsSharingMode:e.credentialsSharingMode,DefaultValue:e.defaultValue,HostsWithoutCredentials:e.hostsWithoutCredentials,HostsInTheGroup:e.hostsInTheGroup,CredentialsSettingsMode:e.credentialsSettingsMode,HostChain:e.hostChain,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("5pMsD2DzKO","Root Group Shared",t,[{id:"EAhyJvlH96",name:"CredentialsSharingMode",value:e.credentialsSharingMode},{id:"t6cAXFgtd",name:"DefaultValue",value:e.defaultValue},{id:"FlbONHRsO7",name:"HostsWithoutCredentials",value:e.hostsWithoutCredentials},{id:"DJSG5S4380",name:"HostsInTheGroup",value:e.hostsInTheGroup},{id:"G4ssDJ0mPq",name:"CredentialsSettingsMode",value:e.credentialsSettingsMode},{id:"hfEMKFB-W",name:"HostChain",value:e.hostChain},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Root Group Shared': "+t[0].message)}let t={};t.CredentialsSharingMode=e.credentialsSharingMode,t.DefaultValue=e.defaultValue,void 0!==e.hostsWithoutCredentials&&null!==e.hostsWithoutCredentials&&(t.HostsWithoutCredentials=e.hostsWithoutCredentials),t.HostsInTheGroup=e.hostsInTheGroup,t.CredentialsSettingsMode=e.credentialsSettingsMode,t.HostChain=e.hostChain,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Root Group Shared",{CredentialsSharingMode:e.credentialsSharingMode,DefaultValue:e.defaultValue,HostsWithoutCredentials:e.hostsWithoutCredentials,HostsInTheGroup:e.hostsInTheGroup,CredentialsSettingsMode:e.credentialsSettingsMode,HostChain:e.hostChain,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"5pMsD2DzKO","9c6c48af397862dfafd5dae28f725f4804be64248f4100650f94c6695871afc3"),TE.logEvent("Root Group Shared",Object.assign({},t)))}function CC(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"FrHaD1mTRt","6ddc6d505a8f5f9a429d279fb5140046150791a7c7926058fda312862768ff8e",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Learn More About MultiKey Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("FrHaD1mTRt","Learn More About MultiKey Button Pressed",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Learn More About MultiKey Button Pressed': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Learn More About MultiKey Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"FrHaD1mTRt","6ddc6d505a8f5f9a429d279fb5140046150791a7c7926058fda312862768ff8e"),TE.logEvent("Learn More About MultiKey Button Pressed",Object.assign({},e)))}function IC(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"Wa0oQaH4xq","3f61da8fce35bfc3eb38b67898555c007f9bcecbed9f7ad972622f7f17253b37",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("MultiKey Promo Screen Shown",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("Wa0oQaH4xq","MultiKey Promo Screen Shown",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'MultiKey Promo Screen Shown': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("MultiKey Promo Screen Shown",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"Wa0oQaH4xq","3f61da8fce35bfc3eb38b67898555c007f9bcecbed9f7ad972622f7f17253b37"),TE.logEvent("MultiKey Promo Screen Shown",Object.assign({},e)))}function AC(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"VoX_W19CQ","91cb88ef4e6c497cca2350cf1bd5b8ead03158f003a6e707069c70481f128136",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Credentials Sharing Option Chosen",{CredentialsSharingMode:e.credentialsSharingMode,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("VoX_W19CQ","Credentials Sharing Option Chosen",t,[{id:"EAhyJvlH96",name:"CredentialsSharingMode",value:e.credentialsSharingMode},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Credentials Sharing Option Chosen': "+t[0].message)}let t={};t.CredentialsSharingMode=e.credentialsSharingMode,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Credentials Sharing Option Chosen",{CredentialsSharingMode:e.credentialsSharingMode,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"VoX_W19CQ","91cb88ef4e6c497cca2350cf1bd5b8ead03158f003a6e707069c70481f128136"),TE.logEvent("Credentials Sharing Option Chosen",Object.assign({},t)))}function OC(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"D23dAzAw4F","37b5ab731b85149eba26a68259915953f23c0344f614ce9231637fdb238779f6",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Copy Invitation Link Button Pressed",{InviteLinkLocation:e.inviteLinkLocation,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("D23dAzAw4F","Copy Invitation Link Button Pressed",t,[{id:"ujpie620S",name:"InviteLinkLocation",value:e.inviteLinkLocation},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Copy Invitation Link Button Pressed': "+t[0].message)}let t={};t.InviteLinkLocation=e.inviteLinkLocation,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Copy Invitation Link Button Pressed",{InviteLinkLocation:e.inviteLinkLocation,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"D23dAzAw4F","37b5ab731b85149eba26a68259915953f23c0344f614ce9231637fdb238779f6"),TE.logEvent("Copy Invitation Link Button Pressed",Object.assign({},t)))}function xC(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"Yntp0ITPcj","62e088e8d085b251c919c309b23076095fff9076bf8485c7e5b241cc8f1b1e9f",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Terminal Sharing Visibility Changed",{IsVisible:e.isVisible,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("Yntp0ITPcj","Terminal Sharing Visibility Changed",t,[{id:"wFdQeJjzt",name:"IsVisible",value:e.isVisible},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Terminal Sharing Visibility Changed': "+t[0].message)}let t={};t.IsVisible=e.isVisible,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Terminal Sharing Visibility Changed",{IsVisible:e.isVisible,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"Yntp0ITPcj","62e088e8d085b251c919c309b23076095fff9076bf8485c7e5b241cc8f1b1e9f"),TE.logEvent("Terminal Sharing Visibility Changed",Object.assign({},t)))}function NC(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"Dz7r4RAol","1d3cb5e276f0a52a483f63f100a99d4fa3e9e8e49d2e5ab076c1bb16b36a6210",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Cloud Sync Activated",{CloudIntegration:e.cloudIntegration,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("Dz7r4RAol","Cloud Sync Activated",t,[{id:"9KGA7NDbUO",name:"CloudIntegration",value:e.cloudIntegration},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Cloud Sync Activated': "+t[0].message)}let t={};t.CloudIntegration=e.cloudIntegration,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Cloud Sync Activated",{CloudIntegration:e.cloudIntegration,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"Dz7r4RAol","1d3cb5e276f0a52a483f63f100a99d4fa3e9e8e49d2e5ab076c1bb16b36a6210"),TE.logEvent("Cloud Sync Activated",Object.assign({},t)))}function RC(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"1NcC-b-th","1d9c46ec50e9dad78c490cf012da6c06299654f9101121f225a9f4d3e1dd9835",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Cloud Credentials Checked",{Success:e.success,CloudIntegration:e.cloudIntegration,ImportedServices:e.importedServices,ImportedIPType:e.importedIpType,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("1NcC-b-th","Cloud Credentials Checked",t,[{id:"B4WRezXjG",name:"Success",value:e.success},{id:"9KGA7NDbUO",name:"CloudIntegration",value:e.cloudIntegration},{id:"zk_ff4qfU",name:"ImportedServices",value:e.importedServices},{id:"2X2YElVC7w",name:"ImportedIPType",value:e.importedIpType},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Cloud Credentials Checked': "+t[0].message)}let t={};t.Success=e.success,t.CloudIntegration=e.cloudIntegration,t.ImportedServices=e.importedServices,t.ImportedIPType=e.importedIpType,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Cloud Credentials Checked",{Success:e.success,CloudIntegration:e.cloudIntegration,ImportedServices:e.importedServices,ImportedIPType:e.importedIpType,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"1NcC-b-th","1d9c46ec50e9dad78c490cf012da6c06299654f9101121f225a9f4d3e1dd9835"),TE.logEvent("Cloud Credentials Checked",Object.assign({},t)))}function DC(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"GRv72DDtnz","de396d3fca1447ca64400bdebdcb03bdccca795cedc7ddec5b7e6a793c661e55",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Sync Now Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("GRv72DDtnz","Sync Now Button Pressed",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Sync Now Button Pressed': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Sync Now Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"GRv72DDtnz","de396d3fca1447ca64400bdebdcb03bdccca795cedc7ddec5b7e6a793c661e55"),TE.logEvent("Sync Now Button Pressed",Object.assign({},e)))}function HC(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"riTGaD0y3","74e8413436164070a093b7737ee47ebbc2ee4beffcc63c523430a4bc190b500b",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Cloud Sync Completed",{ResponseTime:e.responseTime,NumberOfImportedHosts:e.numberOfImportedHosts,NumberOfRemovedHosts:e.numberOfRemovedHosts,CloudIntegration:e.cloudIntegration,ImportedServices:e.importedServices,ImportedIPType:e.importedIpType,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("riTGaD0y3","Cloud Sync Completed",t,[{id:"Aj8Sl89wT",name:"ResponseTime",value:e.responseTime},{id:"tdIgKNAqB7",name:"NumberOfImportedHosts",value:e.numberOfImportedHosts},{id:"UBfCxEUpf",name:"NumberOfRemovedHosts",value:e.numberOfRemovedHosts},{id:"9KGA7NDbUO",name:"CloudIntegration",value:e.cloudIntegration},{id:"zk_ff4qfU",name:"ImportedServices",value:e.importedServices},{id:"2X2YElVC7w",name:"ImportedIPType",value:e.importedIpType},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Cloud Sync Completed': "+t[0].message)}let t={};t.ResponseTime=e.responseTime,t.NumberOfImportedHosts=e.numberOfImportedHosts,t.NumberOfRemovedHosts=e.numberOfRemovedHosts,t.CloudIntegration=e.cloudIntegration,t.ImportedServices=e.importedServices,t.ImportedIPType=e.importedIpType,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Cloud Sync Completed",{ResponseTime:e.responseTime,NumberOfImportedHosts:e.numberOfImportedHosts,NumberOfRemovedHosts:e.numberOfRemovedHosts,CloudIntegration:e.cloudIntegration,ImportedServices:e.importedServices,ImportedIPType:e.importedIpType,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"riTGaD0y3","74e8413436164070a093b7737ee47ebbc2ee4beffcc63c523430a4bc190b500b"),TE.logEvent("Cloud Sync Completed",Object.assign({},t)))}function FC(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"NgNLQa0Hf","cd67c4f8f0551d46a414faaa0efc9cd01a2c5415b3f784369601b9236e124623",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Confirm Access Button Pressed",{TeamMemberID:e.teamMemberID,ConfirmAccessButtonLocation:e.confirmAccessButtonLocation,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("NgNLQa0Hf","Confirm Access Button Pressed",t,[{id:"1W4Pysy66",name:"TeamMemberID",value:e.teamMemberID},{id:"mU3J-SLGrJ",name:"ConfirmAccessButtonLocation",value:e.confirmAccessButtonLocation},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Confirm Access Button Pressed': "+t[0].message)}let t={};t.TeamMemberID=e.teamMemberID,t.ConfirmAccessButtonLocation=e.confirmAccessButtonLocation,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Confirm Access Button Pressed",{TeamMemberID:e.teamMemberID,ConfirmAccessButtonLocation:e.confirmAccessButtonLocation,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"NgNLQa0Hf","cd67c4f8f0551d46a414faaa0efc9cd01a2c5415b3f784369601b9236e124623"),TE.logEvent("Confirm Access Button Pressed",Object.assign({},t)))}function GC(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"HNlyzVT9XD","7e72b2113faf52035b89cd232766c20495e2098afd678fcb7731eb9700cb58a9",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Notification Snoozed",{Action:e.bellNotificationAction,TeamMemberID:e.teamMemberID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("HNlyzVT9XD","Notification Snoozed",t,[{id:"1cm1oSV7u4",name:"Action",value:e.bellNotificationAction},{id:"1W4Pysy66",name:"TeamMemberID",value:e.teamMemberID},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Notification Snoozed': "+t[0].message)}let t={};t.Action=e.bellNotificationAction,void 0!==e.teamMemberID&&null!==e.teamMemberID&&(t.TeamMemberID=e.teamMemberID),t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Notification Snoozed",{Action:e.bellNotificationAction,TeamMemberID:e.teamMemberID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"HNlyzVT9XD","7e72b2113faf52035b89cd232766c20495e2098afd678fcb7731eb9700cb58a9"),TE.logEvent("Notification Snoozed",Object.assign({},t)))}function UC(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"TRGVKlmNaM","ddc77ba0d0bc25d456bc9a577dd84608ea47d8ef2061300f3001850f4a869886",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Terminal Theme Changed",{TerminalTheme:e.terminalTheme,TerminalThemeSource:e.terminalThemeSource,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{GlobalTerminalTheme:e.globalTerminalTheme}),dE&&PE("TRGVKlmNaM","Terminal Theme Changed",t,[{id:"QI8h95kq-",name:"TerminalTheme",value:e.terminalTheme},{id:"LgHfdBjOOo",name:"TerminalThemeSource",value:e.terminalThemeSource},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[{id:"Y6gLgMSQN",name:"GlobalTerminalTheme",value:e.globalTerminalTheme}],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Terminal Theme Changed': "+t[0].message)}let t={};t.TerminalTheme=e.terminalTheme,t.TerminalThemeSource=e.terminalThemeSource,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE);let n={};void 0!==e.globalTerminalTheme&&null!==e.globalTerminalTheme&&(n.GlobalTerminalTheme=e.globalTerminalTheme),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Terminal Theme Changed",{TerminalTheme:e.terminalTheme,TerminalThemeSource:e.terminalThemeSource,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"TRGVKlmNaM","ddc77ba0d0bc25d456bc9a577dd84608ea47d8ef2061300f3001850f4a869886"),TE.setUserProperties(Object.assign({},n)),TE.logEvent("Terminal Theme Changed",Object.assign({},t)))}function LC(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"dSsfy0Y8Ko","d1d3a8dc7b8faf0eff820fe1fcd7692b2a95a9e141af72a882ccff36035d164e",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Terminal Font Changed",{TerminalFontSource:e.terminalFontSource,TerminalFontSelected:e.terminalFontSelected,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{TerminalFont:e.terminalFont}),dE&&PE("dSsfy0Y8Ko","Terminal Font Changed",t,[{id:"fggXnGeD5",name:"TerminalFontSource",value:e.terminalFontSource},{id:"doG_XobUa",name:"TerminalFontSelected",value:e.terminalFontSelected},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[{id:"mpEeos7N6",name:"TerminalFont",value:e.terminalFont}],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Terminal Font Changed': "+t[0].message)}let t={};t.TerminalFontSource=e.terminalFontSource,t.TerminalFontSelected=e.terminalFontSelected,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE);let n={};n.TerminalFont=e.terminalFont,lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Terminal Font Changed",{TerminalFontSource:e.terminalFontSource,TerminalFontSelected:e.terminalFontSelected,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"dSsfy0Y8Ko","d1d3a8dc7b8faf0eff820fe1fcd7692b2a95a9e141af72a882ccff36035d164e"),TE.setUserProperties(Object.assign({},n)),TE.logEvent("Terminal Font Changed",Object.assign({},t)))}function jC(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"heVG_dyXp5","0271c0c9678d5d5880e9d9fb7e48d7ca4678a30cbda2e129ba09427bd90194e0",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Download Template Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("heVG_dyXp5","Download Template Button Pressed",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Download Template Button Pressed': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Download Template Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"heVG_dyXp5","0271c0c9678d5d5880e9d9fb7e48d7ca4678a30cbda2e129ba09427bd90194e0"),TE.logEvent("Download Template Button Pressed",Object.assign({},e)))}function MC(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"8GS5aZmLFh","801fbec62947f2116ba4f4c31d4a47ad52fee4ac5ded7bb4f529c0763dfb0d27",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Autocomplete Settings Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("8GS5aZmLFh","Autocomplete Settings Opened",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Autocomplete Settings Opened': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Autocomplete Settings Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"8GS5aZmLFh","801fbec62947f2116ba4f4c31d4a47ad52fee4ac5ded7bb4f529c0763dfb0d27"),TE.logEvent("Autocomplete Settings Opened",Object.assign({},e)))}function BC(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"hmcsU1TZ_l","63d7014e0d8d4a74b16cd6d4e31ea635a46301264a41b9edbcf9ff40560a0b46",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Team Trial Starting Failed",{TeamTrialFunnelID:e.teamTrialFunnelID,OpenedFrom:e.openedFrom,TrialStartingFailReason:e.trialStartingFailReason,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("hmcsU1TZ_l","Team Trial Starting Failed",t,[{id:"doMi5lwcT0",name:"TeamTrialFunnelID",value:e.teamTrialFunnelID},{id:"8gtfydWW0",name:"OpenedFrom",value:e.openedFrom},{id:"er51NtVwlb",name:"TrialStartingFailReason",value:e.trialStartingFailReason},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Team Trial Starting Failed': "+t[0].message)}let t={};t.TeamTrialFunnelID=e.teamTrialFunnelID,t.OpenedFrom=e.openedFrom,t.TrialStartingFailReason=e.trialStartingFailReason,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Team Trial Starting Failed",{TeamTrialFunnelID:e.teamTrialFunnelID,OpenedFrom:e.openedFrom,TrialStartingFailReason:e.trialStartingFailReason,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"hmcsU1TZ_l","63d7014e0d8d4a74b16cd6d4e31ea635a46301264a41b9edbcf9ff40560a0b46"),TE.logEvent("Team Trial Starting Failed",Object.assign({},t)))}function KC(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"MlBiWGJjb","e680ef6e7c6563bd6e6d85bce02575f5b1de8c8bbe0ba89984c1fd8b5c6be686",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Session Log Encode Queue Overflowed",{NumberOfMessages:e.numberOfMessages,SizeOfMessages:e.sizeOfMessages,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("MlBiWGJjb","Session Log Encode Queue Overflowed",t,[{id:"j2rYk-kq5x",name:"NumberOfMessages",value:e.numberOfMessages},{id:"6gefBXDr4",name:"SizeOfMessages",value:e.sizeOfMessages},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Session Log Encode Queue Overflowed': "+t[0].message)}let t={};t.NumberOfMessages=e.numberOfMessages,t.SizeOfMessages=e.sizeOfMessages,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Session Log Encode Queue Overflowed",{NumberOfMessages:e.numberOfMessages,SizeOfMessages:e.sizeOfMessages,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"MlBiWGJjb","e680ef6e7c6563bd6e6d85bce02575f5b1de8c8bbe0ba89984c1fd8b5c6be686"),TE.logEvent("Session Log Encode Queue Overflowed",Object.assign({},t)))}function qC(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"PeaFCy9Pdz","a7f986d789c34462a9a28eca5171faf648bd825f532ac7b72f005841c3dce0d3",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Session Log Write Queue Overflowed",{NumberOfMessages:e.numberOfMessages,SizeOfMessages:e.sizeOfMessages,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("PeaFCy9Pdz","Session Log Write Queue Overflowed",t,[{id:"j2rYk-kq5x",name:"NumberOfMessages",value:e.numberOfMessages},{id:"6gefBXDr4",name:"SizeOfMessages",value:e.sizeOfMessages},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Session Log Write Queue Overflowed': "+t[0].message)}let t={};t.NumberOfMessages=e.numberOfMessages,t.SizeOfMessages=e.sizeOfMessages,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Session Log Write Queue Overflowed",{NumberOfMessages:e.numberOfMessages,SizeOfMessages:e.sizeOfMessages,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"PeaFCy9Pdz","a7f986d789c34462a9a28eca5171faf648bd825f532ac7b72f005841c3dce0d3"),TE.logEvent("Session Log Write Queue Overflowed",Object.assign({},t)))}function VC(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"5wA7eqURli","804e3121b00ed32f3240b10a11cfd75bb8312317ed096fc4486ef21f5b9655cd",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Export Key Button Pressed",{ExportButtonLocation:e.exportButtonLocation,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("5wA7eqURli","Export Key Button Pressed",t,[{id:"E275OIoxiW",name:"ExportButtonLocation",value:e.exportButtonLocation},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Export Key Button Pressed': "+t[0].message)}let t={};t.ExportButtonLocation=e.exportButtonLocation,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Export Key Button Pressed",{ExportButtonLocation:e.exportButtonLocation,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"5wA7eqURli","804e3121b00ed32f3240b10a11cfd75bb8312317ed096fc4486ef21f5b9655cd"),TE.logEvent("Export Key Button Pressed",Object.assign({},t)))}function $C(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"5FYuWBIHSn","259adbc8fbe86f5f83f73eddc6f4ea3bdf4e2dfdba2a57ae8bcc830d996628b4",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Entity Selected",{Entity:e.entity,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("5FYuWBIHSn","Entity Selected",t,[{id:"IdLc6aidYP",name:"Entity",value:e.entity},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Entity Selected': "+t[0].message)}let t={};t.Entity=e.entity,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Entity Selected",{Entity:e.entity,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"5FYuWBIHSn","259adbc8fbe86f5f83f73eddc6f4ea3bdf4e2dfdba2a57ae8bcc830d996628b4"),TE.logEvent("Entity Selected",Object.assign({},t)))}function WC(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"lUe-3TWITt","c43c4685ea9d5a3255d03fb3751210b5cf2e2146313bb851e1a624850dde2b37",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Key Export Succeeded",{KeychainItemLocation:e.keychainItemLocation,KeychainItem:e.keychainItem,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("lUe-3TWITt","Key Export Succeeded",t,[{id:"yazyYoYkq",name:"KeychainItemLocation",value:e.keychainItemLocation},{id:"-Z42kquDH",name:"KeychainItem",value:e.keychainItem},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Key Export Succeeded': "+t[0].message)}let t={};t.KeychainItemLocation=e.keychainItemLocation,t.KeychainItem=e.keychainItem,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Key Export Succeeded",{KeychainItemLocation:e.keychainItemLocation,KeychainItem:e.keychainItem,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"lUe-3TWITt","c43c4685ea9d5a3255d03fb3751210b5cf2e2146313bb851e1a624850dde2b37"),TE.logEvent("Key Export Succeeded",Object.assign({},t)))}function zC(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"FJvalLpllU","457a1bbe08ace289b95f886ef546fb71d2935920d6526fd568a68bf0063957f5",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Export Key Stopped",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("FJvalLpllU","Export Key Stopped",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Export Key Stopped': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Export Key Stopped",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"FJvalLpllU","457a1bbe08ace289b95f886ef546fb71d2935920d6526fd568a68bf0063957f5"),TE.logEvent("Export Key Stopped",Object.assign({},e)))}function JC(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"4l_C1pQSMC","1700a94520f9e8833accf8926fbbcedfd67105e432d9bd5de34a31acd1087081",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Buy Now Button Pressed",{BuyNowButtonLocation:e.buyNowButtonLocation,ProductID:e.productID,UpgradeToProFunnelID:e.upgradeToProFunnelID,Period:e.period,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("4l_C1pQSMC","Buy Now Button Pressed",t,[{id:"pLarNQTsUH",name:"BuyNowButtonLocation",value:e.buyNowButtonLocation},{id:"gDYctvq6g",name:"ProductID",value:e.productID},{id:"LxHTbfjiwj",name:"UpgradeToProFunnelID",value:e.upgradeToProFunnelID},{id:"c3Fu42Njx",name:"Period",value:e.period},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Buy Now Button Pressed': "+t[0].message)}let t={};t.BuyNowButtonLocation=e.buyNowButtonLocation,t.ProductID=e.productID,void 0!==e.upgradeToProFunnelID&&null!==e.upgradeToProFunnelID&&(t.UpgradeToProFunnelID=e.upgradeToProFunnelID),void 0!==e.period&&null!==e.period&&(t.Period=e.period),t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Buy Now Button Pressed",{BuyNowButtonLocation:e.buyNowButtonLocation,ProductID:e.productID,UpgradeToProFunnelID:e.upgradeToProFunnelID,Period:e.period,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"4l_C1pQSMC","1700a94520f9e8833accf8926fbbcedfd67105e432d9bd5de34a31acd1087081"),TE.logEvent("Buy Now Button Pressed",Object.assign({},t)))}function XC(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"E5g4JCeZ3-","9fd1e322c40dfb30a86982b00f5d5dd3c329b881d2365b4b63e2c7beb3bdcf6e",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Team Trial Extension Offer Screen Opened",{TeamJoinedMembers:e.teamJoinedMembers,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("E5g4JCeZ3-","Team Trial Extension Offer Screen Opened",t,[{id:"ks7IIGgN1",name:"TeamJoinedMembers",value:e.teamJoinedMembers},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Team Trial Extension Offer Screen Opened': "+t[0].message)}let t={};t.TeamJoinedMembers=e.teamJoinedMembers,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Team Trial Extension Offer Screen Opened",{TeamJoinedMembers:e.teamJoinedMembers,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"E5g4JCeZ3-","9fd1e322c40dfb30a86982b00f5d5dd3c329b881d2365b4b63e2c7beb3bdcf6e"),TE.logEvent("Team Trial Extension Offer Screen Opened",Object.assign({},t)))}function QC(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"K2fdYB7UpI","67a9e4c6ac1a7034a068302578b1096777247de6e446df87705ea641725bb41f",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Edit Host Chain Screen Opened",{Entity:e.entity,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("K2fdYB7UpI","Edit Host Chain Screen Opened",t,[{id:"IdLc6aidYP",name:"Entity",value:e.entity},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Edit Host Chain Screen Opened': "+t[0].message)}let t={};t.Entity=e.entity,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Edit Host Chain Screen Opened",{Entity:e.entity,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"K2fdYB7UpI","67a9e4c6ac1a7034a068302578b1096777247de6e446df87705ea641725bb41f"),TE.logEvent("Edit Host Chain Screen Opened",Object.assign({},t)))}function YC(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"AhZNGaZLkq","e1dea7683994444ac580d1d7db49e576e1ead66c85afbe018705c29b069046de",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Copy Public Key Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("AhZNGaZLkq","Copy Public Key Button Pressed",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Copy Public Key Button Pressed': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Copy Public Key Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"AhZNGaZLkq","e1dea7683994444ac580d1d7db49e576e1ead66c85afbe018705c29b069046de"),TE.logEvent("Copy Public Key Button Pressed",Object.assign({},e)))}function ZC(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"IwJLQDAloY","9b6526b8436533f08ce6c32caeac72f5f81cd31ecd274b7e1bd33d6296b8698d",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Group Settings Opened",{IsSSHConfigEnabled:e.isSshConfigEnabled,IsTelnetConfigEnabled:e.isTelnetConfigEnabled,CloudIntegration:e.cloudIntegration,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("IwJLQDAloY","Group Settings Opened",t,[{id:"AIzqCgQNNB",name:"IsSSHConfigEnabled",value:e.isSshConfigEnabled},{id:"MeRgdhdj-V",name:"IsTelnetConfigEnabled",value:e.isTelnetConfigEnabled},{id:"9KGA7NDbUO",name:"CloudIntegration",value:e.cloudIntegration},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Group Settings Opened': "+t[0].message)}let t={};t.IsSSHConfigEnabled=e.isSshConfigEnabled,t.IsTelnetConfigEnabled=e.isTelnetConfigEnabled,void 0!==e.cloudIntegration&&null!==e.cloudIntegration&&(t.CloudIntegration=e.cloudIntegration),t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Group Settings Opened",{IsSSHConfigEnabled:e.isSshConfigEnabled,IsTelnetConfigEnabled:e.isTelnetConfigEnabled,CloudIntegration:e.cloudIntegration,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"IwJLQDAloY","9b6526b8436533f08ce6c32caeac72f5f81cd31ecd274b7e1bd33d6296b8698d"),TE.logEvent("Group Settings Opened",Object.assign({},t)))}function eI(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"X_1typjhPG","baf264b33857a8dc7b74f4930995f695f2f11ef3df2a9b73ad4d85278e9693ad",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Cloud Sync Failed",{CloudErrorType:e.cloudErrorType,CloudIntegration:e.cloudIntegration,ImportedServices:e.importedServices,ImportedIPType:e.importedIpType,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("X_1typjhPG","Cloud Sync Failed",t,[{id:"FHiAAlmFBK",name:"CloudErrorType",value:e.cloudErrorType},{id:"9KGA7NDbUO",name:"CloudIntegration",value:e.cloudIntegration},{id:"zk_ff4qfU",name:"ImportedServices",value:e.importedServices},{id:"2X2YElVC7w",name:"ImportedIPType",value:e.importedIpType},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Cloud Sync Failed': "+t[0].message)}let t={};t.CloudErrorType=e.cloudErrorType,t.CloudIntegration=e.cloudIntegration,t.ImportedServices=e.importedServices,t.ImportedIPType=e.importedIpType,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Cloud Sync Failed",{CloudErrorType:e.cloudErrorType,CloudIntegration:e.cloudIntegration,ImportedServices:e.importedServices,ImportedIPType:e.importedIpType,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"X_1typjhPG","baf264b33857a8dc7b74f4930995f695f2f11ef3df2a9b73ad4d85278e9693ad"),TE.logEvent("Cloud Sync Failed",Object.assign({},t)))}function tI(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"bKbL2IkGyO","99c30ad5f96b1525ca186ccb6feba98ca8ade75bfaa173aced7099c23b397003",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Downgrade to Hobby Button Pressed",{ExtensionOffer:e.extensionOffer,DowngradeButtonLocation:e.downgradeButtonLocation,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("bKbL2IkGyO","Downgrade to Hobby Button Pressed",t,[{id:"ToOcPzU1Lu",name:"ExtensionOffer",value:e.extensionOffer},{id:"7Era1drMui",name:"DowngradeButtonLocation",value:e.downgradeButtonLocation},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Downgrade to Hobby Button Pressed': "+t[0].message)}let t={};t.ExtensionOffer=e.extensionOffer,t.DowngradeButtonLocation=e.downgradeButtonLocation,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Downgrade to Hobby Button Pressed",{ExtensionOffer:e.extensionOffer,DowngradeButtonLocation:e.downgradeButtonLocation,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"bKbL2IkGyO","99c30ad5f96b1525ca186ccb6feba98ca8ade75bfaa173aced7099c23b397003"),TE.logEvent("Downgrade to Hobby Button Pressed",Object.assign({},t)))}function nI(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"NFBOw9mgHX","990c7c557a3812dd9486ac25dfafc8009054ee1ba6318356e82a6015ba6665e6",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("History Details Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("NFBOw9mgHX","History Details Screen Opened",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'History Details Screen Opened': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("History Details Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"NFBOw9mgHX","990c7c557a3812dd9486ac25dfafc8009054ee1ba6318356e82a6015ba6665e6"),TE.logEvent("History Details Screen Opened",Object.assign({},e)))}function rI(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"rC-XB7CMwe","77b6198d30fae99dd04f45ffc69399690f3941791a57695779ab098243ebfe74",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Snippet Package Created",{PackageOrigin:e.packageOrigin,SharedEntity:e.isSharedEntity,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{SnippetPackages:e.snippetPackages}),dE&&PE("rC-XB7CMwe","Snippet Package Created",t,[{id:"uezZxC86dI",name:"PackageOrigin",value:e.packageOrigin},{id:"OPNqNxEuxS",name:"SharedEntity",value:e.isSharedEntity},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[{id:"arkc-Mgeq",name:"SnippetPackages",value:e.snippetPackages}],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Snippet Package Created': "+t[0].message)}let t={};t.PackageOrigin=e.packageOrigin,t.SharedEntity=e.isSharedEntity,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE);let n={};n.SnippetPackages=e.snippetPackages,lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Snippet Package Created",{PackageOrigin:e.packageOrigin,SharedEntity:e.isSharedEntity,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"rC-XB7CMwe","77b6198d30fae99dd04f45ffc69399690f3941791a57695779ab098243ebfe74"),TE.setUserProperties(Object.assign({},n)),TE.logEvent("Snippet Package Created",Object.assign({},t)))}function aI(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(VE(e.snippetPackageID)),t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"Z7XEb2H9oz","72d1277a83ac6c322843754cd43e52796ac48965afab49472de756fd800843e8",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Snippet Package Deleted",{SharedEntity:e.isSharedEntity,SnippetPackageID:e.snippetPackageID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{SnippetPackages:e.snippetPackages}),dE&&PE("Z7XEb2H9oz","Snippet Package Deleted",t,[{id:"OPNqNxEuxS",name:"SharedEntity",value:e.isSharedEntity},{id:"ymKyyoK7m0",name:"SnippetPackageID",value:e.snippetPackageID},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[{id:"arkc-Mgeq",name:"SnippetPackages",value:e.snippetPackages}],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Snippet Package Deleted': "+t[0].message)}let t={};t.SharedEntity=e.isSharedEntity,t.SnippetPackageID=e.snippetPackageID,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE);let n={};n.SnippetPackages=e.snippetPackages,lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Snippet Package Deleted",{SharedEntity:e.isSharedEntity,SnippetPackageID:e.snippetPackageID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"Z7XEb2H9oz","72d1277a83ac6c322843754cd43e52796ac48965afab49472de756fd800843e8"),TE.setUserProperties(Object.assign({},n)),TE.logEvent("Snippet Package Deleted",Object.assign({},t)))}function iI(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"7D8dpNPlWS","c23ebd79d9d802597a2f1ef6877ef78785c390e374b3be76998543655dc14087",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("New Snippet Package Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("7D8dpNPlWS","New Snippet Package Button Pressed",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'New Snippet Package Button Pressed': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("New Snippet Package Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"7D8dpNPlWS","c23ebd79d9d802597a2f1ef6877ef78785c390e374b3be76998543655dc14087"),TE.logEvent("New Snippet Package Button Pressed",Object.assign({},e)))}function sI(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"8WGkh-spEr","5aeba62184fe281bfc62bd8cf6be7b47f96e221c498dd751887ee94f941213fb",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Snippets Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("8WGkh-spEr","Snippets Screen Opened",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Snippets Screen Opened': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Snippets Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"8WGkh-spEr","5aeba62184fe281bfc62bd8cf6be7b47f96e221c498dd751887ee94f941213fb"),TE.logEvent("Snippets Screen Opened",Object.assign({},e)))}function oI(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"VwUPK1Z-L","2e4e4671674ee87d69e67d667b67e7da84b0fa1391ff86b71ac03c83e46f2011",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Copy Download Link Button Pressed",{Instruction:e.instruction,DownloadPlatform:e.downloadPlatform,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("VwUPK1Z-L","Copy Download Link Button Pressed",t,[{id:"rQnlDCA-VS",name:"Instruction",value:e.instruction},{id:"gYbcr8Ydm",name:"DownloadPlatform",value:e.downloadPlatform},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Copy Download Link Button Pressed': "+t[0].message)}let t={};t.Instruction=e.instruction,t.DownloadPlatform=e.downloadPlatform,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Copy Download Link Button Pressed",{Instruction:e.instruction,DownloadPlatform:e.downloadPlatform,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"VwUPK1Z-L","2e4e4671674ee87d69e67d667b67e7da84b0fa1391ff86b71ac03c83e46f2011"),TE.logEvent("Copy Download Link Button Pressed",Object.assign({},t)))}function lI(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"KhZJJ3Oas","21622a6bbd100371a95898351eb34e6ca6ddd37de2f65b4f9d9f70da71520cba",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Pro Trial Extended Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("KhZJJ3Oas","Pro Trial Extended Screen Opened",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Pro Trial Extended Screen Opened': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Pro Trial Extended Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"KhZJJ3Oas","21622a6bbd100371a95898351eb34e6ca6ddd37de2f65b4f9d9f70da71520cba"),TE.logEvent("Pro Trial Extended Screen Opened",Object.assign({},e)))}function cI(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"FC-5LUc5f","f2e344dce81194e61f4a5a2c4e7ddab8e4bc5c7e4c5dc9ca2cab5f273a1dc2e2",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Pro Trial Extension Offer Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("FC-5LUc5f","Pro Trial Extension Offer Screen Opened",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Pro Trial Extension Offer Screen Opened': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Pro Trial Extension Offer Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"FC-5LUc5f","f2e344dce81194e61f4a5a2c4e7ddab8e4bc5c7e4c5dc9ca2cab5f273a1dc2e2"),TE.logEvent("Pro Trial Extension Offer Screen Opened",Object.assign({},e)))}function uI(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"2B2fjY2wol","560a879153be3340e3e384f862048d2575dd1b6803bbb084839e6f4fc8b34912",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Extend Pro Trial Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("2B2fjY2wol","Extend Pro Trial Button Pressed",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Extend Pro Trial Button Pressed': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Extend Pro Trial Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"2B2fjY2wol","560a879153be3340e3e384f862048d2575dd1b6803bbb084839e6f4fc8b34912"),TE.logEvent("Extend Pro Trial Button Pressed",Object.assign({},e)))}function pI(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"i9BbQv_W2B","d6c1e1929023657470e3ba123edc74bcf7d6a63a5b8a7d95d2049738ed74e7cd",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Create Port Forwarding Wizard View Opened",{CreatePortForwardingWizardStep:e.createPortForwardingWizardStep,PortForwardingType:e.portForwardingType,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("i9BbQv_W2B","Create Port Forwarding Wizard View Opened",t,[{id:"ilRHb7HbEk",name:"CreatePortForwardingWizardStep",value:e.createPortForwardingWizardStep},{id:"vsXVGIjJfk",name:"PortForwardingType",value:e.portForwardingType},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Create Port Forwarding Wizard View Opened': "+t[0].message)}let t={};t.CreatePortForwardingWizardStep=e.createPortForwardingWizardStep,t.PortForwardingType=e.portForwardingType,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Create Port Forwarding Wizard View Opened",{CreatePortForwardingWizardStep:e.createPortForwardingWizardStep,PortForwardingType:e.portForwardingType,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"i9BbQv_W2B","d6c1e1929023657470e3ba123edc74bcf7d6a63a5b8a7d95d2049738ed74e7cd"),TE.logEvent("Create Port Forwarding Wizard View Opened",Object.assign({},t)))}function dI(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"KDbDSyMFA","376748d59d0fbf15c2cd899fd8f46beb934435dea93d4cc56c1abcc3a676d8f1",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Port Forwarding Form Type Changed",{PortForwardingFormType:e.portForwardingFormType,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("KDbDSyMFA","Port Forwarding Form Type Changed",t,[{id:"4RAzf2u5DV",name:"PortForwardingFormType",value:e.portForwardingFormType},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Port Forwarding Form Type Changed': "+t[0].message)}let t={};t.PortForwardingFormType=e.portForwardingFormType,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Port Forwarding Form Type Changed",{PortForwardingFormType:e.portForwardingFormType,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"KDbDSyMFA","376748d59d0fbf15c2cd899fd8f46beb934435dea93d4cc56c1abcc3a676d8f1"),TE.logEvent("Port Forwarding Form Type Changed",Object.assign({},t)))}function hI(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"sWZjFhRmZ","efaf2cc0b21988c51baaaf30d7b62a3f1eac7d7d00caa8680ff599cf6f8acc70",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Port Forwarding Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("sWZjFhRmZ","Port Forwarding Screen Opened",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Port Forwarding Screen Opened': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Port Forwarding Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"sWZjFhRmZ","efaf2cc0b21988c51baaaf30d7b62a3f1eac7d7d00caa8680ff599cf6f8acc70"),TE.logEvent("Port Forwarding Screen Opened",Object.assign({},e)))}function fI(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"r-OkQKHNnn","102ab1402dc0b9591e86bc6fd9347a6ee4a72a3c65aefd6212af5ac2885dd7d8",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Log-in Screen Opened",{LoginType:e.loginType,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("r-OkQKHNnn","Log-in Screen Opened",t,[{id:"LeXsAZ3QC",name:"LoginType",value:e.loginType},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Log-in Screen Opened': "+t[0].message)}let t={};t.LoginType=e.loginType,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Log-in Screen Opened",{LoginType:e.loginType,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"r-OkQKHNnn","102ab1402dc0b9591e86bc6fd9347a6ee4a72a3c65aefd6212af5ac2885dd7d8"),TE.logEvent("Log-in Screen Opened",Object.assign({},t)))}function mI(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"KP0X5bOND1","cbe1b72894a9a2b4692bdd05997ae9be7d69219aff8b70e84c978638935c3c8a",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Enterprise SSO Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("KP0X5bOND1","Enterprise SSO Button Pressed",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Enterprise SSO Button Pressed': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Enterprise SSO Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"KP0X5bOND1","cbe1b72894a9a2b4692bdd05997ae9be7d69219aff8b70e84c978638935c3c8a"),TE.logEvent("Enterprise SSO Button Pressed",Object.assign({},e)))}function SI(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"Ki56E_KBPb","3c80afc625816e35fbde375eaf8df5e9d783512e2a3d8cdef9457cfac894004b",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("User Login Failed",{ErrorMessage:e.errorMessage,OnScreen:e.onScreen,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("Ki56E_KBPb","User Login Failed",t,[{id:"gqOecLjxp",name:"ErrorMessage",value:e.errorMessage},{id:"B6I4Af3CH3",name:"OnScreen",value:e.onScreen},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'User Login Failed': "+t[0].message)}let t={};t.ErrorMessage=e.errorMessage,t.OnScreen=e.onScreen,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("User Login Failed",{ErrorMessage:e.errorMessage,OnScreen:e.onScreen,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"Ki56E_KBPb","3c80afc625816e35fbde375eaf8df5e9d783512e2a3d8cdef9457cfac894004b"),TE.logEvent("User Login Failed",Object.assign({},t)))}function yI(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"qFO-YELvdm","868965ec59fdc3cb414613543b1a938dd950f3f0b30bcc387ad14e1bc2cc77f1",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("FIDO2 Device Selected",{FIDO2WizardSource:e.fido2WizardSource,WizardID:e.wizardID,ConnectionID:e.connectionID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("qFO-YELvdm","FIDO2 Device Selected",t,[{id:"g5hgdQgvZF",name:"FIDO2WizardSource",value:e.fido2WizardSource},{id:"MGexS9ePV",name:"WizardID",value:e.wizardID},{id:"LtX0SIqFoB",name:"ConnectionID",value:e.connectionID},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'FIDO2 Device Selected': "+t[0].message)}let t={};t.FIDO2WizardSource=e.fido2WizardSource,t.WizardID=e.wizardID,void 0!==e.connectionID&&null!==e.connectionID&&(t.ConnectionID=e.connectionID),t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("FIDO2 Device Selected",{FIDO2WizardSource:e.fido2WizardSource,WizardID:e.wizardID,ConnectionID:e.connectionID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"qFO-YELvdm","868965ec59fdc3cb414613543b1a938dd950f3f0b30bcc387ad14e1bc2cc77f1"),TE.logEvent("FIDO2 Device Selected",Object.assign({},t)))}function gI(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"-NrpYBIgn","3c4a10fe511040d0b876695471a867c42dbc0d241aaeea6503ea6cce0635a005",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("FIDO2 Keygen Options Submitted",{WizardID:e.wizardID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("-NrpYBIgn","FIDO2 Keygen Options Submitted",t,[{id:"MGexS9ePV",name:"WizardID",value:e.wizardID},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'FIDO2 Keygen Options Submitted': "+t[0].message)}let t={};t.WizardID=e.wizardID,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("FIDO2 Keygen Options Submitted",{WizardID:e.wizardID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"-NrpYBIgn","3c4a10fe511040d0b876695471a867c42dbc0d241aaeea6503ea6cce0635a005"),TE.logEvent("FIDO2 Keygen Options Submitted",Object.assign({},t)))}function vI(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"FZwvuuD2mQ","7cff990d8e21b40ac2533e9d0a000921027b397773c127f435d5a4fdbc57b4e0",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("FIDO2 PIN Code Requested",{WizardID:e.wizardID,FIDO2WizardSource:e.fido2WizardSource,ConnectionID:e.connectionID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("FZwvuuD2mQ","FIDO2 PIN Code Requested",t,[{id:"MGexS9ePV",name:"WizardID",value:e.wizardID},{id:"g5hgdQgvZF",name:"FIDO2WizardSource",value:e.fido2WizardSource},{id:"LtX0SIqFoB",name:"ConnectionID",value:e.connectionID},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'FIDO2 PIN Code Requested': "+t[0].message)}let t={};t.WizardID=e.wizardID,t.FIDO2WizardSource=e.fido2WizardSource,void 0!==e.connectionID&&null!==e.connectionID&&(t.ConnectionID=e.connectionID),t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("FIDO2 PIN Code Requested",{WizardID:e.wizardID,FIDO2WizardSource:e.fido2WizardSource,ConnectionID:e.connectionID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"FZwvuuD2mQ","7cff990d8e21b40ac2533e9d0a000921027b397773c127f435d5a4fdbc57b4e0"),TE.logEvent("FIDO2 PIN Code Requested",Object.assign({},t)))}function _I(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"WjTjNSFyp4","678b086e00d2d2a3026e23ef9344f4cbb695a70ea5d2247f4cdce191ef49bb68",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("FIDO2 Key Generation Confirmed",{WizardID:e.wizardID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("WjTjNSFyp4","FIDO2 Key Generation Confirmed",t,[{id:"MGexS9ePV",name:"WizardID",value:e.wizardID},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'FIDO2 Key Generation Confirmed': "+t[0].message)}let t={};t.WizardID=e.wizardID,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("FIDO2 Key Generation Confirmed",{WizardID:e.wizardID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"WjTjNSFyp4","678b086e00d2d2a3026e23ef9344f4cbb695a70ea5d2247f4cdce191ef49bb68"),TE.logEvent("FIDO2 Key Generation Confirmed",Object.assign({},t)))}function bI(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"UVM4_NbKDr","d17f6ac5be47dac2615cc399253571d3a2d0e238e0ea07d437486802bd58f5f6",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("FIDO2 SSH Keys Selected",{FIDO2WizardSource:e.fido2WizardSource,WizardID:e.wizardID,ConnectionID:e.connectionID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("UVM4_NbKDr","FIDO2 SSH Keys Selected",t,[{id:"g5hgdQgvZF",name:"FIDO2WizardSource",value:e.fido2WizardSource},{id:"MGexS9ePV",name:"WizardID",value:e.wizardID},{id:"LtX0SIqFoB",name:"ConnectionID",value:e.connectionID},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'FIDO2 SSH Keys Selected': "+t[0].message)}let t={};t.FIDO2WizardSource=e.fido2WizardSource,t.WizardID=e.wizardID,void 0!==e.connectionID&&null!==e.connectionID&&(t.ConnectionID=e.connectionID),t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("FIDO2 SSH Keys Selected",{FIDO2WizardSource:e.fido2WizardSource,WizardID:e.wizardID,ConnectionID:e.connectionID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"UVM4_NbKDr","d17f6ac5be47dac2615cc399253571d3a2d0e238e0ea07d437486802bd58f5f6"),TE.logEvent("FIDO2 SSH Keys Selected",Object.assign({},t)))}function PI(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"sBkVBkHVh","5434815941178c2ceac4fa8a457d300ada72adda7fb0819b023566fc1f416e09",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Split View Tab Created",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("sBkVBkHVh","Split View Tab Created",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Split View Tab Created': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Split View Tab Created",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"sBkVBkHVh","5434815941178c2ceac4fa8a457d300ada72adda7fb0819b023566fc1f416e09"),TE.logEvent("Split View Tab Created",Object.assign({},e)))}function wI(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"4XntknxtM","949c1ead638546ca28f7416eab141d522d893725d70102fbce9326d47ea99a0d",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Split View Tab Updated",{NumberOfTerminals:e.numberOfTerminals,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("4XntknxtM","Split View Tab Updated",t,[{id:"MiV7GjvDO",name:"NumberOfTerminals",value:e.numberOfTerminals},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Split View Tab Updated': "+t[0].message)}let t={};t.NumberOfTerminals=e.numberOfTerminals,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Split View Tab Updated",{NumberOfTerminals:e.numberOfTerminals,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"4XntknxtM","949c1ead638546ca28f7416eab141d522d893725d70102fbce9326d47ea99a0d"),TE.logEvent("Split View Tab Updated",Object.assign({},t)))}function EI(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"lt0ay4U2Qo","bba55951ef65d25008d0c8226545008f3fe103c8da6ee35b43e98f740c40908f",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Copy Host Details Link Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("lt0ay4U2Qo","Copy Host Details Link Button Pressed",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Copy Host Details Link Button Pressed': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Copy Host Details Link Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"lt0ay4U2Qo","bba55951ef65d25008d0c8226545008f3fe103c8da6ee35b43e98f740c40908f"),TE.logEvent("Copy Host Details Link Button Pressed",Object.assign({},e)))}function kI(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"kIODlszstp","e588df51a3b0029de728f52f4248f672cbdb7a14c961585476bc48188fb598b3",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Split View Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("kIODlszstp","Split View Button Pressed",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Split View Button Pressed': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Split View Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"kIODlszstp","e588df51a3b0029de728f52f4248f672cbdb7a14c961585476bc48188fb598b3"),TE.logEvent("Split View Button Pressed",Object.assign({},e)))}function TI(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"NIEv7wr9a2","be905519be868272e49c975a0a65e2d37c4eb182741d8ba01535dcfdc9cded9a",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Duplicate Button Pressed",{Entity:e.entity,OnScreen:e.onScreen,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("NIEv7wr9a2","Duplicate Button Pressed",t,[{id:"IdLc6aidYP",name:"Entity",value:e.entity},{id:"B6I4Af3CH3",name:"OnScreen",value:e.onScreen},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Duplicate Button Pressed': "+t[0].message)}let t={};t.Entity=e.entity,t.OnScreen=e.onScreen,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Duplicate Button Pressed",{Entity:e.entity,OnScreen:e.onScreen,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"NIEv7wr9a2","be905519be868272e49c975a0a65e2d37c4eb182741d8ba01535dcfdc9cded9a"),TE.logEvent("Duplicate Button Pressed",Object.assign({},t)))}function CI(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"ReDcdERgH4","19c1062b61e9aaef81d793e9b67372cf640a9be35afc93f6f2675b24ba69521b",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("SSH Key Dragged and Dropped",{OnScreen:e.onScreen,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("ReDcdERgH4","SSH Key Dragged and Dropped",t,[{id:"B6I4Af3CH3",name:"OnScreen",value:e.onScreen},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'SSH Key Dragged and Dropped': "+t[0].message)}let t={};t.OnScreen=e.onScreen,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("SSH Key Dragged and Dropped",{OnScreen:e.onScreen,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"ReDcdERgH4","19c1062b61e9aaef81d793e9b67372cf640a9be35afc93f6f2675b24ba69521b"),TE.logEvent("SSH Key Dragged and Dropped",Object.assign({},t)))}function II(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"HmHH4sLcW2","111f5aaa275845090a2fbd2f7fbabc190c0ef7b52804e3cdd87bdc64269a4d7d",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Setup Cloud Sync Button Pressed",{CloudIntegration:e.cloudIntegration,CloudSyncButtonOrigin:e.cloudSyncButtonOrigin,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("HmHH4sLcW2","Setup Cloud Sync Button Pressed",t,[{id:"9KGA7NDbUO",name:"CloudIntegration",value:e.cloudIntegration},{id:"avGrPTXK6",name:"CloudSyncButtonOrigin",value:e.cloudSyncButtonOrigin},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Setup Cloud Sync Button Pressed': "+t[0].message)}let t={};t.CloudIntegration=e.cloudIntegration,t.CloudSyncButtonOrigin=e.cloudSyncButtonOrigin,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Setup Cloud Sync Button Pressed",{CloudIntegration:e.cloudIntegration,CloudSyncButtonOrigin:e.cloudSyncButtonOrigin,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"HmHH4sLcW2","111f5aaa275845090a2fbd2f7fbabc190c0ef7b52804e3cdd87bdc64269a4d7d"),TE.logEvent("Setup Cloud Sync Button Pressed",Object.assign({},t)))}function AI(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"3dvucCzA3E","6950dc9cb4622ef1d47584b2f91f64f0c9d6dd0cf6b40250e2e16ab4502563c4",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Toolbar Chevron Button Pressed",{OnScreen:e.onScreen,AssociatedWith:e.associatedWith,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("3dvucCzA3E","Toolbar Chevron Button Pressed",t,[{id:"B6I4Af3CH3",name:"OnScreen",value:e.onScreen},{id:"iGacyV6jQ",name:"AssociatedWith",value:e.associatedWith},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Toolbar Chevron Button Pressed': "+t[0].message)}let t={};t.OnScreen=e.onScreen,t.AssociatedWith=e.associatedWith,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Toolbar Chevron Button Pressed",{OnScreen:e.onScreen,AssociatedWith:e.associatedWith,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"3dvucCzA3E","6950dc9cb4622ef1d47584b2f91f64f0c9d6dd0cf6b40250e2e16ab4502563c4"),TE.logEvent("Toolbar Chevron Button Pressed",Object.assign({},t)))}function OI(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"7AtZHQmcNf","f40f24565102a85defbeb6897cece90471931701108558de1880435bf8f2b553",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Enable Sharing Screen Shown",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("7AtZHQmcNf","Enable Sharing Screen Shown",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Enable Sharing Screen Shown': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Enable Sharing Screen Shown",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"7AtZHQmcNf","f40f24565102a85defbeb6897cece90471931701108558de1880435bf8f2b553"),TE.logEvent("Enable Sharing Screen Shown",Object.assign({},e)))}function xI(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"KbvoQixKw-","b432672d9f992e33c0aef53f0b3edacaa486df99b3997727642bf3b7d5de8497",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Enable Sharing Form Submitted",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("KbvoQixKw-","Enable Sharing Form Submitted",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Enable Sharing Form Submitted': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Enable Sharing Form Submitted",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"KbvoQixKw-","b432672d9f992e33c0aef53f0b3edacaa486df99b3997727642bf3b7d5de8497"),TE.logEvent("Enable Sharing Form Submitted",Object.assign({},e)))}function NI(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"RGLmz_XlAG","17cd62da419dd246b9a8705895cb310165c9c08b799697be5adf222da4f2405b",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Enable Sharing Form Postponed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("RGLmz_XlAG","Enable Sharing Form Postponed",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Enable Sharing Form Postponed': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Enable Sharing Form Postponed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"RGLmz_XlAG","17cd62da419dd246b9a8705895cb310165c9c08b799697be5adf222da4f2405b"),TE.logEvent("Enable Sharing Form Postponed",Object.assign({},e)))}function RI(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"GvtPnfbvg","2790c36f572ce11f252caa31020224ce2a23a9096c14811288af4eea0cc7f5cd",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Enable Sharing Form Error Caught",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("GvtPnfbvg","Enable Sharing Form Error Caught",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Enable Sharing Form Error Caught': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Enable Sharing Form Error Caught",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"GvtPnfbvg","2790c36f572ce11f252caa31020224ce2a23a9096c14811288af4eea0cc7f5cd"),TE.logEvent("Enable Sharing Form Error Caught",Object.assign({},e)))}function DI(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"eVDeCr0IZ","8c624a27d1ac8ede67c56ed438f8702829593e129d8bfca419a1aa4cc5a49f0d",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Enable Sharing Form Succeeded",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("eVDeCr0IZ","Enable Sharing Form Succeeded",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Enable Sharing Form Succeeded': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Enable Sharing Form Succeeded",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"eVDeCr0IZ","8c624a27d1ac8ede67c56ed438f8702829593e129d8bfca419a1aa4cc5a49f0d"),TE.logEvent("Enable Sharing Form Succeeded",Object.assign({},e)))}function HI(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"vLaRy837B","fb7faee319131b024e2a0116d9160ea52341e5466991cef8a3d3704c72029980",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Platforms Setup Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("vLaRy837B","Platforms Setup Screen Opened",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Platforms Setup Screen Opened': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Platforms Setup Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"vLaRy837B","fb7faee319131b024e2a0116d9160ea52341e5466991cef8a3d3704c72029980"),TE.logEvent("Platforms Setup Screen Opened",Object.assign({},e)))}function FI(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"NHTG6qc8Mf","d74f654384b7a77170f48f0b8f2b58af11b0ae1b82b5512971272e1c4ffec088",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Pro Plan Screen Opened",{Trial:e.trial,UpgradeToProFunnelID:e.upgradeToProFunnelID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("NHTG6qc8Mf","Pro Plan Screen Opened",t,[{id:"zuSXi5ulk4",name:"Trial",value:e.trial},{id:"LxHTbfjiwj",name:"UpgradeToProFunnelID",value:e.upgradeToProFunnelID},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Pro Plan Screen Opened': "+t[0].message)}let t={};t.Trial=e.trial,t.UpgradeToProFunnelID=e.upgradeToProFunnelID,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Pro Plan Screen Opened",{Trial:e.trial,UpgradeToProFunnelID:e.upgradeToProFunnelID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"NHTG6qc8Mf","d74f654384b7a77170f48f0b8f2b58af11b0ae1b82b5512971272e1c4ffec088"),TE.logEvent("Pro Plan Screen Opened",Object.assign({},t)))}function GI(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"eMzW8m9cb","33f8cf7f862af20d2cf05ca314cf83f65223dbb6aeb92cdf7b865c20c9f0d6b6",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Upgrade to Pro Funnel Started",{UpgradeToProFunnelID:e.upgradeToProFunnelID,Trial:e.trial,Source:e.from,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("eMzW8m9cb","Upgrade to Pro Funnel Started",t,[{id:"LxHTbfjiwj",name:"UpgradeToProFunnelID",value:e.upgradeToProFunnelID},{id:"zuSXi5ulk4",name:"Trial",value:e.trial},{id:"KV_0SzvdI",name:"Source",value:e.from},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Upgrade to Pro Funnel Started': "+t[0].message)}let t={};t.UpgradeToProFunnelID=e.upgradeToProFunnelID,t.Trial=e.trial,t.Source=e.from,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Upgrade to Pro Funnel Started",{UpgradeToProFunnelID:e.upgradeToProFunnelID,Trial:e.trial,Source:e.from,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"eMzW8m9cb","33f8cf7f862af20d2cf05ca314cf83f65223dbb6aeb92cdf7b865c20c9f0d6b6"),TE.logEvent("Upgrade to Pro Funnel Started",Object.assign({},t)))}function UI(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"ACpUmXkZXw","08b8387b7b4e31b6dbe4576dfe452a38f21bb0eaa8b3739611d243b8aa70a52f",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Select Entity Screen Opened",{Entity:e.entity,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("ACpUmXkZXw","Select Entity Screen Opened",t,[{id:"IdLc6aidYP",name:"Entity",value:e.entity},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Select Entity Screen Opened': "+t[0].message)}let t={};t.Entity=e.entity,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Select Entity Screen Opened",{Entity:e.entity,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"ACpUmXkZXw","08b8387b7b4e31b6dbe4576dfe452a38f21bb0eaa8b3739611d243b8aa70a52f"),TE.logEvent("Select Entity Screen Opened",Object.assign({},t)))}function LI(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"2_hOoZWV7","50907b5c91ab5c15aad90eecbd654947baad7736d1bc7163847df64bd7ceeb36",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("New Identity Button Pressed",{CreateIdentityOrigin:e.createIdentityOrigin,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("2_hOoZWV7","New Identity Button Pressed",t,[{id:"ZX5sNRmJp",name:"CreateIdentityOrigin",value:e.createIdentityOrigin},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'New Identity Button Pressed': "+t[0].message)}let t={};t.CreateIdentityOrigin=e.createIdentityOrigin,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("New Identity Button Pressed",{CreateIdentityOrigin:e.createIdentityOrigin,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"2_hOoZWV7","50907b5c91ab5c15aad90eecbd654947baad7736d1bc7163847df64bd7ceeb36"),TE.logEvent("New Identity Button Pressed",Object.assign({},t)))}function jI(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"FqxMhhmxN","4dbc2d03f1874eaaf30c3f8bfa33d397374317c194c80f0725493137852ffc58",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Identity Autocomplete Shown",{NumberOfSuggestedIdentities:e.numberOfSuggestedIdentities,NumberOfSuggestedCredentials:e.numberOfSuggestedCredentials,NumberOfSymbols:e.numberOfSymbols,HostInfoFieldType:e.hostInfoFieldType,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("FqxMhhmxN","Identity Autocomplete Shown",t,[{id:"9zDF-6nMFY",name:"NumberOfSuggestedIdentities",value:e.numberOfSuggestedIdentities},{id:"wnx8gA4yy_",name:"NumberOfSuggestedCredentials",value:e.numberOfSuggestedCredentials},{id:"yqWQU3Jhd",name:"NumberOfSymbols",value:e.numberOfSymbols},{id:"dcEUxLfkH",name:"HostInfoFieldType",value:e.hostInfoFieldType},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Identity Autocomplete Shown': "+t[0].message)}let t={};t.NumberOfSuggestedIdentities=e.numberOfSuggestedIdentities,t.NumberOfSuggestedCredentials=e.numberOfSuggestedCredentials,t.NumberOfSymbols=e.numberOfSymbols,t.HostInfoFieldType=e.hostInfoFieldType,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Identity Autocomplete Shown",{NumberOfSuggestedIdentities:e.numberOfSuggestedIdentities,NumberOfSuggestedCredentials:e.numberOfSuggestedCredentials,NumberOfSymbols:e.numberOfSymbols,HostInfoFieldType:e.hostInfoFieldType,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"FqxMhhmxN","4dbc2d03f1874eaaf30c3f8bfa33d397374317c194c80f0725493137852ffc58"),TE.logEvent("Identity Autocomplete Shown",Object.assign({},t)))}function MI(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(KE(e.position)),t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"FaCmMAw1BM","4aa91ec6fc166c3cd010e214527785ff438dd1eec125dc3dccca7003aee603b1",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Identity Autocomplete Item Pressed",{IdentityType:e.identityType,NumberOfLinkedElements:e.numberOfLinkedElements,IdentityID:e.identityID,HostInfoFieldType:e.hostInfoFieldType,NumberOfSymbols:e.numberOfSymbols,Position:e.position,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("FaCmMAw1BM","Identity Autocomplete Item Pressed",t,[{id:"d74LiZiN0BW",name:"IdentityType",value:e.identityType},{id:"N0LOUrnt3J",name:"NumberOfLinkedElements",value:e.numberOfLinkedElements},{id:"bp4_W5oM_u",name:"IdentityID",value:e.identityID},{id:"dcEUxLfkH",name:"HostInfoFieldType",value:e.hostInfoFieldType},{id:"yqWQU3Jhd",name:"NumberOfSymbols",value:e.numberOfSymbols},{id:"W9DBs0X2C",name:"Position",value:e.position},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Identity Autocomplete Item Pressed': "+t[0].message)}let t={};t.IdentityType=e.identityType,t.NumberOfLinkedElements=e.numberOfLinkedElements,t.IdentityID=e.identityID,t.HostInfoFieldType=e.hostInfoFieldType,t.NumberOfSymbols=e.numberOfSymbols,void 0!==e.position&&null!==e.position&&(t.Position=e.position),t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Identity Autocomplete Item Pressed",{IdentityType:e.identityType,NumberOfLinkedElements:e.numberOfLinkedElements,IdentityID:e.identityID,HostInfoFieldType:e.hostInfoFieldType,NumberOfSymbols:e.numberOfSymbols,Position:e.position,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"FaCmMAw1BM","4aa91ec6fc166c3cd010e214527785ff438dd1eec125dc3dccca7003aee603b1"),TE.logEvent("Identity Autocomplete Item Pressed",Object.assign({},t)))}function BI(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"2sXQx-k7MX","24a61a1393c1ee2791c1a7e2138a4e0533b8bf50635650e3052656b7a3bd78d9",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Identity Settings Screen Opened",{IdentitySource:e.identitySource,NumberOfLinkedElements:e.numberOfLinkedElements,IdentityID:e.identityID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("2sXQx-k7MX","Identity Settings Screen Opened",t,[{id:"qkVi6xQuee",name:"IdentitySource",value:e.identitySource},{id:"N0LOUrnt3J",name:"NumberOfLinkedElements",value:e.numberOfLinkedElements},{id:"bp4_W5oM_u",name:"IdentityID",value:e.identityID},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Identity Settings Screen Opened': "+t[0].message)}let t={};t.IdentitySource=e.identitySource,t.NumberOfLinkedElements=e.numberOfLinkedElements,t.IdentityID=e.identityID,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Identity Settings Screen Opened",{IdentitySource:e.identitySource,NumberOfLinkedElements:e.numberOfLinkedElements,IdentityID:e.identityID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"2sXQx-k7MX","24a61a1393c1ee2791c1a7e2138a4e0533b8bf50635650e3052656b7a3bd78d9"),TE.logEvent("Identity Settings Screen Opened",Object.assign({},t)))}function KI(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"AzNLX3GNSR","45b8083cb165ea5d5506782167f144edf15b5e69e7e28b8033b2e3f6dde8ffe2",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Welcome Setup Started",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("AzNLX3GNSR","Welcome Setup Started",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Welcome Setup Started': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Welcome Setup Started",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"AzNLX3GNSR","45b8083cb165ea5d5506782167f144edf15b5e69e7e28b8033b2e3f6dde8ffe2"),TE.logEvent("Welcome Setup Started",Object.assign({},e)))}function qI(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"Ibn69o5Ah","5edfcdb60c37bfffb241137096fce6f9e53c2549cdaf9cbeaa9645c2fd87e333",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Welcome Setup Step Skipped",{WelcomeSetupStep:e.welcomeSetupStep,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("Ibn69o5Ah","Welcome Setup Step Skipped",t,[{id:"QB8EP8ANu",name:"WelcomeSetupStep",value:e.welcomeSetupStep},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Welcome Setup Step Skipped': "+t[0].message)}let t={};t.WelcomeSetupStep=e.welcomeSetupStep,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Welcome Setup Step Skipped",{WelcomeSetupStep:e.welcomeSetupStep,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"Ibn69o5Ah","5edfcdb60c37bfffb241137096fce6f9e53c2549cdaf9cbeaa9645c2fd87e333"),TE.logEvent("Welcome Setup Step Skipped",Object.assign({},t)))}function VI(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"rtevGhBZkG","dd4e57e1ae0e5e3d350c6edbcdeffcd4a59c3fde74de98205d4a3371ce33bcde",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Import Setup Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("rtevGhBZkG","Import Setup Screen Opened",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Import Setup Screen Opened': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Import Setup Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"rtevGhBZkG","dd4e57e1ae0e5e3d350c6edbcdeffcd4a59c3fde74de98205d4a3371ce33bcde"),TE.logEvent("Import Setup Screen Opened",Object.assign({},e)))}function $I(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"Uf-_Q7tskB","2b6d035595a213210bd70b22a1c5a2fd2624d0774c68b7ba22d78a08b217d45b",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Tools Setup Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("Uf-_Q7tskB","Tools Setup Screen Opened",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Tools Setup Screen Opened': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Tools Setup Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"Uf-_Q7tskB","2b6d035595a213210bd70b22a1c5a2fd2624d0774c68b7ba22d78a08b217d45b"),TE.logEvent("Tools Setup Screen Opened",Object.assign({},e)))}function WI(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"wtQ-QSWGCe","322cedd5710549dad8cda2ff3a9389043d959d8035afc39510ec1914841ceab4",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Professional Tools Selected",{SelectedTools:e.selectedTools,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("wtQ-QSWGCe","Professional Tools Selected",t,[{id:"FXsGpFrYCv",name:"SelectedTools",value:e.selectedTools},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Professional Tools Selected': "+t[0].message)}let t={};t.SelectedTools=e.selectedTools,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Professional Tools Selected",{SelectedTools:e.selectedTools,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"wtQ-QSWGCe","322cedd5710549dad8cda2ff3a9389043d959d8035afc39510ec1914841ceab4"),TE.logEvent("Professional Tools Selected",Object.assign({},t)))}function zI(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"eu1JI4WShB","2999636fdedaad7a3a83896099987fe38252b65ce4ed6ff972d4fb11822ee91d",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Keyword Highlighting Setting Changed",{KeywordHighlightingEnabled:e.keywordHighlightingEnabled,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{KeywordHighlighting:e.keywordHighlighting}),dE&&PE("eu1JI4WShB","Keyword Highlighting Setting Changed",t,[{id:"tfd4YVqZw",name:"KeywordHighlightingEnabled",value:e.keywordHighlightingEnabled},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[{id:"s7RRaoVwo",name:"KeywordHighlighting",value:e.keywordHighlighting}],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Keyword Highlighting Setting Changed': "+t[0].message)}let t={};t.KeywordHighlightingEnabled=e.keywordHighlightingEnabled,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE);let n={};n.KeywordHighlighting=e.keywordHighlighting,lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Keyword Highlighting Setting Changed",{KeywordHighlightingEnabled:e.keywordHighlightingEnabled,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"eu1JI4WShB","2999636fdedaad7a3a83896099987fe38252b65ce4ed6ff972d4fb11822ee91d"),TE.setUserProperties(Object.assign({},n)),TE.logEvent("Keyword Highlighting Setting Changed",Object.assign({},t)))}function JI(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"9dQJDDKcYg","6195add6971628298fc39acadd91abea2803b1225e5e9d48ed9ae5f0f5cee000",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Keyword Color Item Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("9dQJDDKcYg","Keyword Color Item Pressed",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Keyword Color Item Pressed': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Keyword Color Item Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"9dQJDDKcYg","6195add6971628298fc39acadd91abea2803b1225e5e9d48ed9ae5f0f5cee000"),TE.logEvent("Keyword Color Item Pressed",Object.assign({},e)))}function XI(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"SwtqGgKENV","eaa8fa1d31ee81c3f1047acab93ba6fbfe5f9fa9a68e5c730edcc52704a28e42",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Request Keywords Highlight Customization Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("SwtqGgKENV","Request Keywords Highlight Customization Button Pressed",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Request Keywords Highlight Customization Button Pressed': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Request Keywords Highlight Customization Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"SwtqGgKENV","eaa8fa1d31ee81c3f1047acab93ba6fbfe5f9fa9a68e5c730edcc52704a28e42"),TE.logEvent("Request Keywords Highlight Customization Button Pressed",Object.assign({},e)))}function QI(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"crCM5fiPHq","488cf4c693ae2d64689b8964ff8451e382eb82efebb8380a1a03e757581848c5",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Advanced Settings Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("crCM5fiPHq","Advanced Settings Button Pressed",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Advanced Settings Button Pressed': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Advanced Settings Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"crCM5fiPHq","488cf4c693ae2d64689b8964ff8451e382eb82efebb8380a1a03e757581848c5"),TE.logEvent("Advanced Settings Button Pressed",Object.assign({},e)))}function YI(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"JMpuRHYTTa","e28207bb4782d41b4233fe7bf93f63dc85ea7321333a11ee43df2f0f41afa7c4",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Save as Host Setting Changed",{SaveAsHostEnabled:e.saveAsHostEnabled,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("JMpuRHYTTa","Save as Host Setting Changed",t,[{id:"B2UYJN6OD",name:"SaveAsHostEnabled",value:e.saveAsHostEnabled},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Save as Host Setting Changed': "+t[0].message)}let t={};t.SaveAsHostEnabled=e.saveAsHostEnabled,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Save as Host Setting Changed",{SaveAsHostEnabled:e.saveAsHostEnabled,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"JMpuRHYTTa","e28207bb4782d41b4233fe7bf93f63dc85ea7321333a11ee43df2f0f41afa7c4"),TE.logEvent("Save as Host Setting Changed",Object.assign({},t)))}function ZI(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"Ds0OUBWJjl","c68d1bd68e3f13cd5d2b12aef2fee65c297f8f2216bee676889560c7dad2cb9c",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Import FIDO2 Key Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("Ds0OUBWJjl","Import FIDO2 Key Button Pressed",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Import FIDO2 Key Button Pressed': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Import FIDO2 Key Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"Ds0OUBWJjl","c68d1bd68e3f13cd5d2b12aef2fee65c297f8f2216bee676889560c7dad2cb9c")}function eA(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"eBGyqk7Tj","a9c9d6ce1d8f0cff1edf66043f7ef716535e0dd7aec93696921088d6de10e176",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Input Permissions Requested",{ConnectionID:e.connectionID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("eBGyqk7Tj","Input Permissions Requested",t,[{id:"LtX0SIqFoB",name:"ConnectionID",value:e.connectionID},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Input Permissions Requested': "+t[0].message)}let t={};t.ConnectionID=e.connectionID,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Input Permissions Requested",{ConnectionID:e.connectionID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"eBGyqk7Tj","a9c9d6ce1d8f0cff1edf66043f7ef716535e0dd7aec93696921088d6de10e176"),TE.logEvent("Input Permissions Requested",Object.assign({},t)))}function tA(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"foKfD2xkG","43c88a41c8a03d017eb0427bd85608faa2ca6f1bd3ce1524c0dee423d2a5ac30",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Terminal Sharing Status Dialog Shown",{ConnectionID:e.connectionID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("foKfD2xkG","Terminal Sharing Status Dialog Shown",t,[{id:"LtX0SIqFoB",name:"ConnectionID",value:e.connectionID},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Terminal Sharing Status Dialog Shown': "+t[0].message)}let t={};t.ConnectionID=e.connectionID,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Terminal Sharing Status Dialog Shown",{ConnectionID:e.connectionID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"foKfD2xkG","43c88a41c8a03d017eb0427bd85608faa2ca6f1bd3ce1524c0dee423d2a5ac30"),TE.logEvent("Terminal Sharing Status Dialog Shown",Object.assign({},t)))}function nA(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"Uw2bhboryx","c89263f5b31f3524ed8ebc94cb7700af3d392b1e1d58f45db2c932fa46fb4860",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Request Input Access Pressed",{ConnectionID:e.connectionID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("Uw2bhboryx","Request Input Access Pressed",t,[{id:"LtX0SIqFoB",name:"ConnectionID",value:e.connectionID},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Request Input Access Pressed': "+t[0].message)}let t={};t.ConnectionID=e.connectionID,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Request Input Access Pressed",{ConnectionID:e.connectionID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"Uw2bhboryx","c89263f5b31f3524ed8ebc94cb7700af3d392b1e1d58f45db2c932fa46fb4860"),TE.logEvent("Request Input Access Pressed",Object.assign({},t)))}function rA(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"kbKMhg_JF","adc8abf2c4ab0e0ac8b255e093a7145a57f55c9e1861ce1247b48e727538c92e",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Copy the Link Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("kbKMhg_JF","Copy the Link Button Pressed",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Copy the Link Button Pressed': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Copy the Link Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"kbKMhg_JF","adc8abf2c4ab0e0ac8b255e093a7145a57f55c9e1861ce1247b48e727538c92e"),TE.logEvent("Copy the Link Button Pressed",Object.assign({},e)))}function aA(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"qQKBUELuKP","705d7ab3fd8a8016aa7af8dd48a2de6f2b85b700d8dfbd930cb9cc08281b7137",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Collaboration Context Menu Opened",{NumberOfConnectedUsers:e.numberOfConnectedUsers,NumberOfConnections:e.numberOfConnections,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("qQKBUELuKP","Collaboration Context Menu Opened",t,[{id:"HstxcQ3Qc",name:"NumberOfConnectedUsers",value:e.numberOfConnectedUsers},{id:"pOwyvVQPog",name:"NumberOfConnections",value:e.numberOfConnections},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Collaboration Context Menu Opened': "+t[0].message)}let t={};t.NumberOfConnectedUsers=e.numberOfConnectedUsers,t.NumberOfConnections=e.numberOfConnections,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Collaboration Context Menu Opened",{NumberOfConnectedUsers:e.numberOfConnectedUsers,NumberOfConnections:e.numberOfConnections,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"qQKBUELuKP","705d7ab3fd8a8016aa7af8dd48a2de6f2b85b700d8dfbd930cb9cc08281b7137"),TE.logEvent("Collaboration Context Menu Opened",Object.assign({},t)))}function iA(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"BpKUW7lEv","dfbeecf0eba208bff4f7bcb4e0ab5c8709271608b5c729e00d847be607376a97",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Do It Later Button Pressed",{OnScreen:e.onScreen,ConnectionID:e.connectionID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("BpKUW7lEv","Do It Later Button Pressed",t,[{id:"B6I4Af3CH3",name:"OnScreen",value:e.onScreen},{id:"LtX0SIqFoB",name:"ConnectionID",value:e.connectionID},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Do It Later Button Pressed': "+t[0].message)}let t={};t.OnScreen=e.onScreen,t.ConnectionID=e.connectionID,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Do It Later Button Pressed",{OnScreen:e.onScreen,ConnectionID:e.connectionID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"BpKUW7lEv","dfbeecf0eba208bff4f7bcb4e0ab5c8709271608b5c729e00d847be607376a97"),TE.logEvent("Do It Later Button Pressed",Object.assign({},t)))}function sA(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"T4RqLf9uYE","47c7bcab785bdc8ce68ebdb86529a3da57422b49549184953a60177d2fd8514c",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Collaboration Context Menu Item Pressed",{ConnectionID:e.connectionID,Owner:e.isOwner,CurrentViewers:e.currentViewers,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("T4RqLf9uYE","Collaboration Context Menu Item Pressed",t,[{id:"LtX0SIqFoB",name:"ConnectionID",value:e.connectionID},{id:"wZLSn-_eq",name:"Owner",value:e.isOwner},{id:"l4X5Kp_TW",name:"CurrentViewers",value:e.currentViewers},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Collaboration Context Menu Item Pressed': "+t[0].message)}let t={};t.ConnectionID=e.connectionID,t.Owner=e.isOwner,t.CurrentViewers=e.currentViewers,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Collaboration Context Menu Item Pressed",{ConnectionID:e.connectionID,Owner:e.isOwner,CurrentViewers:e.currentViewers,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"T4RqLf9uYE","47c7bcab785bdc8ce68ebdb86529a3da57422b49549184953a60177d2fd8514c"),TE.logEvent("Collaboration Context Menu Item Pressed",Object.assign({},t)))}function oA(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"VwOy60-NpV","b526017a02aeaf0754977a8a47a30ab2f64891040bc9ffa1a0a2dfef8cc5c440",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Appearance Setup Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("VwOy60-NpV","Appearance Setup Screen Opened",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Appearance Setup Screen Opened': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Appearance Setup Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"VwOy60-NpV","b526017a02aeaf0754977a8a47a30ab2f64891040bc9ffa1a0a2dfef8cc5c440"),TE.logEvent("Appearance Setup Screen Opened",Object.assign({},e)))}function lA(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"XqoGz-Iob","c481832ab6c46c30544c56c298a4133f8b56dbb6ce64f8958dd76a9ac47a02fa",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Appearance Picked",{AppColorTheme:e.appColorTheme,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("XqoGz-Iob","Appearance Picked",t,[{id:"U1nxNhexeT",name:"AppColorTheme",value:e.appColorTheme},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Appearance Picked': "+t[0].message)}let t={};void 0!==e.appColorTheme&&null!==e.appColorTheme&&(t.AppColorTheme=e.appColorTheme),t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Appearance Picked",{AppColorTheme:e.appColorTheme,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"XqoGz-Iob","c481832ab6c46c30544c56c298a4133f8b56dbb6ce64f8958dd76a9ac47a02fa"),TE.logEvent("Appearance Picked",Object.assign({},t)))}function cA(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"qAkX46X0C","b78abf4f4846825010affc5bd5e12a8123cc2abe2b3a41d201234262f5110887",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Save History Command Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("qAkX46X0C","Save History Command Button Pressed",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Save History Command Button Pressed': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Save History Command Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"qAkX46X0C","b78abf4f4846825010affc5bd5e12a8123cc2abe2b3a41d201234262f5110887"),TE.logEvent("Save History Command Button Pressed",Object.assign({},e)))}function uA(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"SknNUVBfHO","effd2afc78938b94670f6a8d477f421332b0f159ab8b0018b9ae4b0c9b8c07e6",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Trial Onboarding Started",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("SknNUVBfHO","Trial Onboarding Started",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Trial Onboarding Started': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Trial Onboarding Started",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"SknNUVBfHO","effd2afc78938b94670f6a8d477f421332b0f159ab8b0018b9ae4b0c9b8c07e6"),TE.logEvent("Trial Onboarding Started",Object.assign({},e)))}function pA(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"L85uTgtP7z","e76ed3ea663d7d578e220e93171f12391ba1f4dbe624739f4dbf61366c194871",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Trial Onboarding Button Pressed",{OnboardingAction:e.onboardingAction,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("L85uTgtP7z","Trial Onboarding Button Pressed",t,[{id:"6_6tqp2HB",name:"OnboardingAction",value:e.onboardingAction},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Trial Onboarding Button Pressed': "+t[0].message)}let t={};t.OnboardingAction=e.onboardingAction,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Trial Onboarding Button Pressed",{OnboardingAction:e.onboardingAction,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"L85uTgtP7z","e76ed3ea663d7d578e220e93171f12391ba1f4dbe624739f4dbf61366c194871"),TE.logEvent("Trial Onboarding Button Pressed",Object.assign({},t)))}function dA(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"CbVzesajyT","27cdb390cd51d1407e5d9f1b70283817f3cfeb610b9f2b2d4c4743991b8827d1",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Trial Onboarding Minimized",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("CbVzesajyT","Trial Onboarding Minimized",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Trial Onboarding Minimized': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Trial Onboarding Minimized",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"CbVzesajyT","27cdb390cd51d1407e5d9f1b70283817f3cfeb610b9f2b2d4c4743991b8827d1"),TE.logEvent("Trial Onboarding Minimized",Object.assign({},e)))}function hA(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"rEZFSMOypv","dad76f6af69f6ad13c49965693de39cf266a057b2dd055683145ae8424301c13",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Trial Onboarding Step Completed",{OnboardingAction:e.onboardingAction,Success:e.success,RemainingSteps:e.remainingSteps,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("rEZFSMOypv","Trial Onboarding Step Completed",t,[{id:"6_6tqp2HB",name:"OnboardingAction",value:e.onboardingAction},{id:"B4WRezXjG",name:"Success",value:e.success},{id:"fml0_jZ5l",name:"RemainingSteps",value:e.remainingSteps},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Trial Onboarding Step Completed': "+t[0].message)}let t={};t.OnboardingAction=e.onboardingAction,t.Success=e.success,t.RemainingSteps=e.remainingSteps,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Trial Onboarding Step Completed",{OnboardingAction:e.onboardingAction,Success:e.success,RemainingSteps:e.remainingSteps,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"rEZFSMOypv","dad76f6af69f6ad13c49965693de39cf266a057b2dd055683145ae8424301c13"),TE.logEvent("Trial Onboarding Step Completed",Object.assign({},t)))}function fA(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"GLTIan8bZh","4d6b802693ff5c8feb274fc48d20f5ba5f57427078a534e8797a333a4ed495e4",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("New Certificate Button Pressed",{OnScreen:e.onScreen,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("GLTIan8bZh","New Certificate Button Pressed",t,[{id:"B6I4Af3CH3",name:"OnScreen",value:e.onScreen},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'New Certificate Button Pressed': "+t[0].message)}let t={};t.OnScreen=e.onScreen,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("New Certificate Button Pressed",{OnScreen:e.onScreen,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"GLTIan8bZh","4d6b802693ff5c8feb274fc48d20f5ba5f57427078a534e8797a333a4ed495e4"),TE.logEvent("New Certificate Button Pressed",Object.assign({},t)))}function mA(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"xv-0240nC","0bc46c0187f2baad107397f167186325dca2581f46b8357672c4157c8d1e5bfc",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Local Terminal Shell Type Changed",{ShellType:e.shellType,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("xv-0240nC","Local Terminal Shell Type Changed",t,[{id:"YKMQM0sEv",name:"ShellType",value:e.shellType},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Local Terminal Shell Type Changed': "+t[0].message)}let t={};t.ShellType=e.shellType,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Local Terminal Shell Type Changed",{ShellType:e.shellType,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"xv-0240nC","0bc46c0187f2baad107397f167186325dca2581f46b8357672c4157c8d1e5bfc"),TE.logEvent("Local Terminal Shell Type Changed",Object.assign({},t)))}function SA(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"jGU-iSxSSB","119aa9977596ba7b9b89b1d80977d75987a011552f7537b26d31cff8af11d4f8",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Subscription Grace Period Notification Shown",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("jGU-iSxSSB","Subscription Grace Period Notification Shown",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Subscription Grace Period Notification Shown': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Subscription Grace Period Notification Shown",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"jGU-iSxSSB","119aa9977596ba7b9b89b1d80977d75987a011552f7537b26d31cff8af11d4f8"),TE.logEvent("Subscription Grace Period Notification Shown",Object.assign({},e)))}function yA(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"_8FZ8ggKE","74769712d9a1a997cea3cb0611d7e45491558ad9e345dd1d777dc5e8d3869434",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Subscription Grace Period Notification Snoozed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("_8FZ8ggKE","Subscription Grace Period Notification Snoozed",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Subscription Grace Period Notification Snoozed': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Subscription Grace Period Notification Snoozed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"_8FZ8ggKE","74769712d9a1a997cea3cb0611d7e45491558ad9e345dd1d777dc5e8d3869434"),TE.logEvent("Subscription Grace Period Notification Snoozed",Object.assign({},e)))}function gA(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"ejQd8CmVKm","181476f52f60b3c16fd04671d57fce0e2c9e30231edabd4770f1ed9b414c375d",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Subscription Expired Screen Opened",{ExpiredScreenType:e.expiredScreenType,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("ejQd8CmVKm","Subscription Expired Screen Opened",t,[{id:"3LjNRtYT_",name:"ExpiredScreenType",value:e.expiredScreenType},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Subscription Expired Screen Opened': "+t[0].message)}let t={};t.ExpiredScreenType=e.expiredScreenType,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Subscription Expired Screen Opened",{ExpiredScreenType:e.expiredScreenType,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"ejQd8CmVKm","181476f52f60b3c16fd04671d57fce0e2c9e30231edabd4770f1ed9b414c375d"),TE.logEvent("Subscription Expired Screen Opened",Object.assign({},t)))}function vA(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"6YW0JVGD95","f601f7cd31e31daed36271d48837e98024969d48bab0dbe08566f9d1d628dfba",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Team Deactivation Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("6YW0JVGD95","Team Deactivation Screen Opened",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Team Deactivation Screen Opened': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Team Deactivation Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"6YW0JVGD95","f601f7cd31e31daed36271d48837e98024969d48bab0dbe08566f9d1d628dfba"),TE.logEvent("Team Deactivation Screen Opened",Object.assign({},e)))}function _A(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"legeNEqkZ","463f5de09f06e8311bba76e0f2bb39f6f6b7c48c204ba2a9b8e8f28a6494b79c",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Extend Team Trial Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("legeNEqkZ","Extend Team Trial Button Pressed",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Extend Team Trial Button Pressed': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Extend Team Trial Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"legeNEqkZ","463f5de09f06e8311bba76e0f2bb39f6f6b7c48c204ba2a9b8e8f28a6494b79c"),TE.logEvent("Extend Team Trial Button Pressed",Object.assign({},e)))}function bA(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"iZYQb-jRTn","97f029b4d5851e387df63c73a0a04761a7447684d5dea2f8aa3b9082c1244e28",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Magic Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("iZYQb-jRTn","Magic Button Pressed",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Magic Button Pressed': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Magic Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"iZYQb-jRTn","97f029b4d5851e387df63c73a0a04761a7447684d5dea2f8aa3b9082c1244e28"),TE.logEvent("Magic Button Pressed",Object.assign({},e)))}function PA(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(VE(e.snippetPackageID)),t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"R_8vhyYVA","5e3d1dcfbca2339af66d7252a58a43fa6cabfc7bbc90308679eff25130137d5a",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Snippet Edited",{SnippetPackageID:e.snippetPackageID,SnippetID:e.snippetID,AIAnalyticsID:e.aianalyticsID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("R_8vhyYVA","Snippet Edited",t,[{id:"ymKyyoK7m0",name:"SnippetPackageID",value:e.snippetPackageID},{id:"r08pzpqtdPz",name:"SnippetID",value:e.snippetID},{id:"xhalC63i7",name:"AIAnalyticsID",value:e.aianalyticsID},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Snippet Edited': "+t[0].message)}let t={};t.SnippetPackageID=e.snippetPackageID,t.SnippetID=e.snippetID,void 0!==e.aianalyticsID&&null!==e.aianalyticsID&&(t.AIAnalyticsID=e.aianalyticsID),t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Snippet Edited",{SnippetPackageID:e.snippetPackageID,SnippetID:e.snippetID,AIAnalyticsID:e.aianalyticsID,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"R_8vhyYVA","5e3d1dcfbca2339af66d7252a58a43fa6cabfc7bbc90308679eff25130137d5a"),TE.logEvent("Snippet Edited",Object.assign({},t)))}function wA(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"MCA66H2aAB","c4e915198da606c65b64f92123f8c3100ff3b249517279c7eb977f90ee46f4f2",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Bulk Data Sharing Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("MCA66H2aAB","Bulk Data Sharing Screen Opened",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Bulk Data Sharing Screen Opened': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Bulk Data Sharing Screen Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"MCA66H2aAB","c4e915198da606c65b64f92123f8c3100ff3b249517279c7eb977f90ee46f4f2"),TE.logEvent("Bulk Data Sharing Screen Opened",Object.assign({},e)))}function EA(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"oLcT8v7FDy","e645095626e01fb70447d3cf554583ac898c788e8e09349dafdf21e5be051d06",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Bulk Sharing Completed",{NumberOfHosts:e.numberOfHosts,NumberOfGroups:e.numberOfGroups,NumberOfSnippets:e.numberOfSnippets,NumberOfPackages:e.numberOfPackages,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("oLcT8v7FDy","Bulk Sharing Completed",t,[{id:"24-APg5Ij",name:"NumberOfHosts",value:e.numberOfHosts},{id:"iapLxR6-T",name:"NumberOfGroups",value:e.numberOfGroups},{id:"n7Ba_Y7I3",name:"NumberOfSnippets",value:e.numberOfSnippets},{id:"OOG7M0Izj",name:"NumberOfPackages",value:e.numberOfPackages},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Bulk Sharing Completed': "+t[0].message)}let t={};t.NumberOfHosts=e.numberOfHosts,t.NumberOfGroups=e.numberOfGroups,t.NumberOfSnippets=e.numberOfSnippets,t.NumberOfPackages=e.numberOfPackages,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Bulk Sharing Completed",{NumberOfHosts:e.numberOfHosts,NumberOfGroups:e.numberOfGroups,NumberOfSnippets:e.numberOfSnippets,NumberOfPackages:e.numberOfPackages,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"oLcT8v7FDy","e645095626e01fb70447d3cf554583ac898c788e8e09349dafdf21e5be051d06"),TE.logEvent("Bulk Sharing Completed",Object.assign({},t)))}function kA(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"wNWPIRBBp","3e5886b8657d87e02edc6da4a377b56662b9137fa3a855efb70cfb41fd150464",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Exec Channel Open Failed",{SSHServer:e.sshserver,SSHServerComment:e.sshserverComment,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("wNWPIRBBp","Exec Channel Open Failed",t,[{id:"N0qFTBDXA",name:"SSHServer",value:e.sshserver},{id:"zG_hDC9QO",name:"SSHServerComment",value:e.sshserverComment},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Exec Channel Open Failed': "+t[0].message)}let t={};void 0!==e.sshserver&&null!==e.sshserver&&(t.SSHServer=e.sshserver),void 0!==e.sshserverComment&&null!==e.sshserverComment&&(t.SSHServerComment=e.sshserverComment),t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Exec Channel Open Failed",{SSHServer:e.sshserver,SSHServerComment:e.sshserverComment,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"wNWPIRBBp","3e5886b8657d87e02edc6da4a377b56662b9137fa3a855efb70cfb41fd150464"),TE.logEvent("Exec Channel Open Failed",Object.assign({},t)))}function TA(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"WEgCZY0qUn","17999fba771dc9dd7f9c6c25a1706b71a1d1a3c49107ae236854c92a47bccd53",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Appearence Panel Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("WEgCZY0qUn","Appearence Panel Opened",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Appearence Panel Opened': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Appearence Panel Opened",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"WEgCZY0qUn","17999fba771dc9dd7f9c6c25a1706b71a1d1a3c49107ae236854c92a47bccd53"),TE.logEvent("Appearence Panel Opened",Object.assign({},e)))}function CA(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"s_sbwSycNa","eb36147a8f60a5c853aa67caf3a97f673ca4472ec9efc1f4280623625d6c7ee6",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Reset Appearance Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("s_sbwSycNa","Reset Appearance Button Pressed",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Reset Appearance Button Pressed': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Reset Appearance Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"s_sbwSycNa","eb36147a8f60a5c853aa67caf3a97f673ca4472ec9efc1f4280623625d6c7ee6"),TE.logEvent("Reset Appearance Button Pressed",Object.assign({},e)))}function IA(){if(oE!==sE.Prod||dE){let e=[];if(e=e.concat(BE(UE)),e=e.concat(qE(LE)),lE||yE(oE,"D3NjRnuSzg","58cef7dafc23845d9f8cd8847a1dc3578723f80477c7bb712f3c5d13bae4fb72",e.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Save Appearance Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("D3NjRnuSzg","Save Appearance Button Pressed",e,[{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)e.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==e.length)throw new Error("Error sending event 'Save Appearance Button Pressed': "+e[0].message)}let e={};e.Platform=CE,null!=IE&&(e.AppSource=IE),null!=AE&&(e.Plan=AE),e.$app_version_string=OE,null!=xE&&(e.CPUArchitecture=xE),null!=NE&&(e.Hosts=NE),null!=RE&&(e.Snippets=RE),null!=DE&&(e.Groups=DE),null!=HE&&(e.SharedHosts=HE),null!=FE&&(e.SharedGroups=FE),null!=GE&&(e.SharedSnippets=GE),null!=UE&&(e.SnippetPackages=UE),null!=LE&&(e.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Save Appearance Button Pressed",{Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"D3NjRnuSzg","58cef7dafc23845d9f8cd8847a1dc3578723f80477c7bb712f3c5d13bae4fb72"),TE.logEvent("Save Appearance Button Pressed",Object.assign({},e)))}function AA(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"OZRy7Yrh1U","6d60389e4a7fd04f7968e181c8dee9d07dd366aead0f5cb7dda6d6c8bb39be37",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Upgrade Button Pressed",{Highlighted:e.highlighted,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("OZRy7Yrh1U","Upgrade Button Pressed",t,[{id:"gw20UEhDR",name:"Highlighted",value:e.highlighted},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Upgrade Button Pressed': "+t[0].message)}let t={};t.Highlighted=e.highlighted,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Upgrade Button Pressed",{Highlighted:e.highlighted,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"OZRy7Yrh1U","6d60389e4a7fd04f7968e181c8dee9d07dd366aead0f5cb7dda6d6c8bb39be37"),TE.logEvent("Upgrade Button Pressed",Object.assign({},t)))}function OA(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"TyPGydX4c","07b0c8f8bfdafeb7e56ad9ec8cbdc657707263e840ae9dc7caad147fd4bb651c",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Session Auth Method Changed",{SessionAuthMethod:e.sessionAuthMethod,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("TyPGydX4c","Session Auth Method Changed",t,[{id:"wU3CN_zRm",name:"SessionAuthMethod",value:e.sessionAuthMethod},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Session Auth Method Changed': "+t[0].message)}let t={};t.SessionAuthMethod=e.sessionAuthMethod,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Session Auth Method Changed",{SessionAuthMethod:e.sessionAuthMethod,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"TyPGydX4c","07b0c8f8bfdafeb7e56ad9ec8cbdc657707263e840ae9dc7caad147fd4bb651c"),TE.logEvent("Session Auth Method Changed",Object.assign({},t)))}function xA(e){if(oE!==sE.Prod||dE){let t=[];if(t=t.concat(BE(UE)),t=t.concat(qE(LE)),lE||yE(oE,"-n5OzkAia","bd0831ef4476d7959883c79ef84341e1079e2eff483641b46302d170f52d280c",t.map(e=>Object.assign({},{tag:e.tag,propertyId:e.propertyId,additionalProperties:e.additionalProperties,actualType:e.actualType})),"event"),vE("Broadcast Input Toggled",{BroadcastEnabled:e.broadcastEnabled,BroadcastActivatedBy:e.broadcastActivatedBy,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},{}),dE&&PE("-n5OzkAia","Broadcast Input Toggled",t,[{id:"SJ2oRtAGd",name:"BroadcastEnabled",value:e.broadcastEnabled},{id:"e_DWEvcVX",name:"BroadcastActivatedBy",value:e.broadcastActivatedBy},{id:"ca4rUIhxtI",name:"Platform",value:CE},{id:"XF6EVjl1BH",name:"AppSource",value:IE},{id:"sAf4NutJ5V",name:"Plan",value:AE},{id:"7yv3R__WMN",name:"$app_version_string",value:OE},{id:"sOzwci8jpb",name:"CPUArchitecture",value:xE},{id:"Ud7n4KShQY",name:"SystemHosts",value:NE},{id:"gXsCZ6Sto_",name:"SystemSnippets",value:RE},{id:"hiSgGTSlw6",name:"SystemGroups",value:DE},{id:"LIBqDJh-9u",name:"SystemSharedHosts",value:HE},{id:"JQb2bkCxVU",name:"SystemSharedGroups",value:FE},{id:"SCQtbfIFLe",name:"SharedSnippets",value:GE},{id:"LXRkNGrwby",name:"SnippetPackages",value:UE},{id:"oh72Fb99pm",name:"SharedSnippetPackages",value:LE}],[],[]),oE===sE.Prod||null!==uE&&!uE)t.forEach((function(e){console[pE||"error"]("[avo] "+e.message)}));else if(0!==t.length)throw new Error("Error sending event 'Broadcast Input Toggled': "+t[0].message)}let t={};t.BroadcastEnabled=e.broadcastEnabled,t.BroadcastActivatedBy=e.broadcastActivatedBy,t.Platform=CE,null!=IE&&(t.AppSource=IE),null!=AE&&(t.Plan=AE),t.$app_version_string=OE,null!=xE&&(t.CPUArchitecture=xE),null!=NE&&(t.Hosts=NE),null!=RE&&(t.Snippets=RE),null!=DE&&(t.Groups=DE),null!=HE&&(t.SharedHosts=HE),null!=FE&&(t.SharedGroups=FE),null!=GE&&(t.SharedSnippets=GE),null!=UE&&(t.SnippetPackages=UE),null!=LE&&(t.SharedSnippetPackages=LE),lE||(null!=hE&&hE._avoFunctionTrackSchemaFromEvent("Broadcast Input Toggled",{BroadcastEnabled:e.broadcastEnabled,BroadcastActivatedBy:e.broadcastActivatedBy,Platform:CE,AppSource:IE,Plan:AE,$app_version_string:OE,CPUArchitecture:xE,SystemHosts:NE,SystemSnippets:RE,SystemGroups:DE,SystemSharedHosts:HE,SystemSharedGroups:FE,SharedSnippets:GE,SnippetPackages:UE,SharedSnippetPackages:LE},"-n5OzkAia","bd0831ef4476d7959883c79ef84341e1079e2eff483641b46302d170f52d280c"),TE.logEvent("Broadcast Input Toggled",Object.assign({},t)))}const NA=e=>{e&&window.mixpanel.set_group("Team",e)},RA=e=>{e&&window.mixpanel.identify(String(e))},DA=e=>{try{e!==window.mixpanel.config.token&&window.mixpanel.set_config({token:e})}catch(e){TS.exception("Cannot set Mixpanel token",e)}};function*HA(e){var t;window.mixpanel=es.a;const n=function(e){switch(e){case"App Store":return"MacAppStore";case"Windows Store":return"MicrosoftAppStore";case"Snapcraft":return"Snapcraft";case"Debian Package":return"DebianPackage";case"Website":default:return"TermiusWebsite"}}(e.installSource),{api:r}=e,a={platform:"Desktop",appVersion:e.version,appSource:pl(e.installSource),cpuarchitecture:e.arch,systemPlan:void 0,systemHosts:void 0,systemGroups:void 0,systemSnippets:void 0,systemSnippetPackages:void 0,systemSharedHosts:void 0,systemSharedGroups:void 0,systemSharedSnippets:void 0,systemSharedSnippetPackages:void 0};function i(e){jE({...a,...e})}var s;ME({env:"prod",webDebugger:!1,avoLogger:{logDebug:(e,t)=>(console.debug("[avo] "+t),!0),logWarn:(e,t)=>(console.warn("[avo] "+t),!0),logError:(e,t)=>(console.error("[avo] "+t),!0)}},a,{mixpanel:{persistence:"localStorage",property_blacklist:["$current_url"]}}),window.mixpanel.people.set({platform:(s=e.platform,{mac:"MacOS",win:"Windows",linux:"Linux"}[s])});try{const e=null===(t=DS().find(e=>"mixpanel_token"===e.name))||void 0===t?void 0:t.value;e&&DA(e)}catch(e){TS.exception("Fail to restore mixpanel token from experiments cache",e)}const o=e=>{i({systemPlan:e&&"Unauthorized"!==e?e:"Free"})};yield*Rr([br([Wy,ly,cy,Gy,Uy,hy,my,Tv,p_,d_],()=>{const e=r.store.getHosts(),t=r.store.getGroups(),n=r.store.getSnippets(),a=r.store.getSnippetsPackages(),s=Xi()(e,"is_shared"),o=Xi()(t,"is_shared"),l=Xi()(n,"is_shared"),c=Xi()(a,"is_shared");i({systemHosts:e.length,systemGroups:t.length,systemSnippets:n.length,systemSnippetPackages:a.length,systemSharedHosts:s.length,systemSharedGroups:o.length,systemSharedSnippets:l.length,systemSharedSnippetPackages:c.length})}),br(Zw,({payload:e})=>{DA(e)}),br(ts.failure,({payload:e})=>{if(LA(e))return;const{status:t,reason:n}=e;n!==(new xc).name&&(n!==(new Ac).name?ok({errorCode:t,failReason:void 0}):ok({errorCode:t,failReason:"Backend API isn't available - can't fetch user info for sync"}))}),br(Is,({payload:e})=>{Wk({layoutType:Yi()(e.layout),onScreen:dl(e.tab)})}),br(Gc,({payload:e})=>{const{messageAction:t,auto:n,teamMemberID:r}=e,a=hl(t);a&&sT({teamMemberID:r,bellNotificationAction:a,auto:rl(n)})}),jA(Uc,iT),br(gs,()=>{dk({optionAsMeta:"Yes",hardwareKeyboard:void 0})}),br(vs,()=>{dk({optionAsMeta:"No",hardwareKeyboard:void 0})}),br(jS,({payload:{period:e,buyNowButtonLocation:t,upgradeToProFunnelID:n}})=>{YE({period:e,productID:void 0,buyNowButtonLocation:t,upgradeToProFunnelID:n})}),br(MS,({payload:{reason:e,upgradeToProFunnelID:t}})=>{uk({reason:e,upgradeToProFunnelID:t,productID:"premium"})}),br(Fl,({payload:e})=>{var t;o(e.plan),WE({userId_:String(e.userId),email:e.email,plan:(t=e.plan,"Unauthorized"===t?"Free":t),authMethod:e.authMethod})}),br(Ul.success,()=>{lk(),o("Free"),jk({firstTime:"no"})}),br(jy,({payload:e})=>{const{groups:t,hosts:n}=e;0===t&&n<=1||CT(ml(e))}),br(My,(function*({payload:e}){const t=yield*Ar(OP);ak(ll({...e,history:t}))})),jA(By,zk),br(Ky,({payload:e})=>{XE(cl(e))}),br(Vy,({payload:e})=>{ik(ul(e))}),jA(qy,Mk),jA($y,kA),br(ay,({payload:{email:e,from:t,authMethod:r,upgradeToProFunnelID:a}})=>{zE({email:e,from:t,source:n,authMethod:r,upgradeToProFunnelID:a,introductoryOffer:void 0,time:void 0,trialEndDate:void 0})}),br(iy,()=>{JE()}),br(sy,()=>{$E()}),jA(rg,nk),br(by,({payload:e})=>{Nk(e)}),jA(oy,ek),br(ly,(function*({payload:e}){const{is_shared:t,group:n}=e,r=yield*Ar(hw);tk({isSharedEntity:rl(t||!!(null==n?void 0:n.is_shared)),eventTeamRole:r})})),br(cy,(function*({payload:e}){const{isShared:t,hostID:n}=e,r=yield*Ar(hw);lT({isSharedEntity:rl(t),eventTeamRole:r,hostID:n})})),jA(uy,LI),br(py,(function*({payload:e}){const{isShared:t,identitySource:n,identity:r}=e,a=yield*Ar(hw);uT({isSharedEntity:rl(t),eventTeamRole:a,identitySource:n,identityType:r?_l(r):["Username-only"]})})),br(F_,(function*({payload:e}){const{identity:t,...n}=e;let{numberOfLinkedElements:r}=e;if(t){const e=yield*Ar(e=>Xb(e,t)),n=yield*Ar(e=>Qb(e,t));r=e.length+n.length}BI({...n,numberOfLinkedElements:r})})),br(G_,(function*({payload:e}){const{identity:t,...n}=e;let{numberOfLinkedElements:r}=e;if(t){const e=yield*Ar(e=>Xb(e,t)),n=yield*Ar(e=>Qb(e,t));r=e.length+n.length}MI({...n,numberOfLinkedElements:r})})),Nr(500,U_,({payload:e})=>jI(e)),jA(dy,tT),br(hy,({payload:e})=>{Yk({...e,snippets:r.store.getNumberOfSnippets()})}),br(my,({payload:{numberOfRemovedSnippets:e,aianalyticsID:t}})=>{eT({snippets:r.store.getNumberOfSnippets(),numberOfRemovedSnippets:e,aianalyticsID:t})}),jA(fy,PA),jA(wg,kT),br(Sy,(function*({payload:e}){Zk({...e,isSharedEntityOwner:(yield*Ar(Sw))?"yes":"no"})})),jA(Py,hk),jA(wy,fk),jA(ry,rk),jA(_y,bk),br(vy,()=>{mk({premiumToTeamAppExperiment:void 0})}),jA(iv,cC),jA(sv,uC),br(sg,(function*({payload:e}){dT({teamExpiredDecision:e,teamJoinedMembers:(yield*Ar(fw)).length})})),jA(tv,lC),jA(nv,ZE),jA(rv,oC),jA(av,sC),br(Ec.request,({payload:e})=>{"FeaturesScreen"===e.dialog&&ZE({choosePlanSource:e.props.source}),"DecryptionKeyNotFoundDialog"===e.dialog&&Ok({criticalErrorType:"DecryptionKeyNotFoundError"})}),jA(Ey,kk),jA(Ty,Pk),jA(ky,Uk),jA(Iy,wk),jA(Cy,Ek),jA(Ay,Tk),jA(Oy,Ak),br(kg,({payload:e})=>{IT({preference:e})}),br(jc.success,({payload:e})=>{(e.objects||[]).forEach(e=>{var t;const n=hl(e.action);n&&aT({bellNotificationAction:n,teamMemberID:null===(t=e.message_attributes)||void 0===t?void 0:t.user_email})})}),jA(lg,aT),jA(cg,GC),jA(ug,FC),br(Pl.success,({payload:e})=>{var t;NA(null===(t=e.team)||void 0===t?void 0:t.id),RA(e.account.user_id),o(e.account.plan_type)}),br(wl,({payload:e})=>{var t,n,r;NA(null===(t=e.team)||void 0===t?void 0:t.id),RA(null===(n=e.account)||void 0===n?void 0:n.user_id),o(null===(r=e.account)||void 0===r?void 0:r.plan_type)}),jA(xy,Ck),br(Ry,({payload:e})=>{NA(e.teamId)}),br(Dy,({payload:e})=>{xk(e)}),br(Hy,({payload:e})=>{Sk({promoType:e})}),br(Ny,({payload:e})=>{Hk(e)}),Nr(2e3,Fy,()=>{Gk()}),Nr(1e3,xw,({payload:e})=>{const{source:t}=e;Fk({terminalSearchSource:t})}),br(Gy,(function*({payload:e}){const{is_shared:t,parent_group:n,cloud_config:r}=e,a=yield*Ar(hw);_k({isSharedEntity:rl(t||!!(null==n?void 0:n.is_shared)),eventTeamRole:a,cloudIntegration:(null==r?void 0:r.cloudType)?Sl(null==r?void 0:r.cloudType):null})})),br(Uy,(function*({payload:e}){const{isShared:t,id:n}=e,r=yield*Ar(hw);cT({isSharedEntity:rl(t),eventTeamRole:r,groupID:n?String(n):null})})),jA(Ly,vk),br(Wy,({payload:e})=>{e.freePlan&&o("Free"),jk({firstTime:"yes"})}),wr(Wy,(function*(){yield*xr(144e5,gy,(function*(){const e=yield*Ar(mP),t=yield*Ar(hP),n=yield*Ar(fP),a=yield*Ar(OP),i=r.store;var s;sk({hosts:i.getNumberOfHosts(),groups:i.getNumberOfGroups(),keys:i.getNumberOfSshKeys(),certificates:r.store.getNumberOfSshCertificates(),identities:i.getNumberOfVisibleIdentities(),portForwardings:i.getNumberOfPortForwardingRules(),history:a,knownHosts:i.getNumberOfKnownHosts()+Object.keys(FS.getAllKnownHosts()||{}).length,syncKeyPasswords:r.settings.isSynchingKeys()?"Yes":"No",optionAsMeta:e?"Yes":"No",choosePlanExperiment:void 0,teamOwner:void 0,appColorTheme:void 0,hardwareKeyboard:void 0,snippets:i.getNumberOfSnippets(),snippetPackages:i.getNumberOfSnippetsPackages(),globalTerminalTheme:t(void 0).name,terminalFont:(s=n,"Source Code Pro"===s?"Source Code Pro Regular":"Fira Mono"===s?"Fira Mono Medium":"Dejavu Sans Mono"===s?"DejaVu Sans Mono":s)})}))})),jA(zy,Bk),br(Jy,({payload:e})=>{Kk({...e,trial:"yes"})}),jA(Xy,qk),jA(Qy,Jk),jA(Yy,Xk),jA(mg,gT),jA(Zy,Qk),jA(eg,rT),jA(tg,wC),br(ng,({payload:e})=>{oT({encryptionMigrationWizardStep:e})}),br(ag,({payload:e})=>{$k({helpButtonType:e})}),jA(ig,pT),br(og,({payload:e})=>{Rk({urlscheme:e})}),jA(pg,hT),br(gc,(function*({payload:e}){const t=function(e,t=!1){switch(e.action){case"dismissed":return;case"rated":return{csat:e.score,cesurveyResult:"Dismissed",cesurveyEmail:void 0,cesurveyFeedback:void 0};case"reviewed":return{csat:e.score,cesurveyResult:"Review",cesurveyEmail:void 0,cesurveyFeedback:void 0};case"left-feedback":return{csat:e.score,cesurveyResult:"Feedback",cesurveyEmail:t?e.email:void 0,cesurveyFeedback:t?e.comment:void 0};case"rated-in-legacy-app-version":return;default:return bl()}}(e,!(yield*Ar(JP)));null!=t&&fT(t)})),br(dg,({payload:e})=>{mT(e)}),br(hg,({payload:e})=>{ST(e)}),jA(fg,yT),jA(Sg,_T),jA(yg,vT),br(gg,({payload:e})=>{bT({identityType:e})}),jA(vg,ck),br(_g,({payload:e})=>{wT({teamSideOnboardingStage:e})}),br(bg,({payload:e})=>{PT(fl(e))}),br(Pg,({payload:e})=>{ET(fl(e))}),jA(Eg,TT),jA(Tg,AT),jA(Cg,xT),jA(Ig,DT),jA(Ag,OT),jA(Og,RT),jA(xg,NT),br(Ng,({payload:e})=>{MT(ml(e))}),br(Rg,({payload:e})=>{jT(ml(e))}),jA(Hg,HT),jA(Ug,GT),jA(Dg,FT),jA(Fg,UT),jA(Gg,LT),jA(Lg,JT),jA(jg,XT),jA(Mg,QT),jA(Bg,YT),br(Kg,({payload:e})=>{VT({usersOnline:e})}),br(qg,({payload:e})=>{$T({presenceIconLocation:e})}),br(Vg,({payload:e})=>{KT({authMethod:e})}),br($g,({payload:e})=>{BT({authMethod:e})}),br(Wg,({payload:e})=>{qT({authMethod:e})}),jA(zg,aC),jA(Jg,ZT),jA(Xg,iC),jA(Qg,tC),jA(Yg,eC),jA(ov,Vk),jA(I_,TI),jA(A_,CI),jA(lv,pC),jA(cv,hC),jA(uv,fC),jA(pv,mC),jA(dv,dC),jA(hv,Lk),jA(fv,SC),jA(mv,yC),jA(Sv,gC),jA(yv,fA),br(gv,({payload:e})=>{gk({sepkeys:r.store.getNumberOfSepKeys(),keys:r.store.getNumberOfSshKeys(),identities:r.store.getNumberOfVisibleIdentities(),certificates:r.store.getNumberOfSshCertificates(),keySource:e.source,keychainItemLocation:e.location||GA(r.settings),keychainItem:e.type})}),jA(Zg,nC),jA(ev,rC),br(vv,({payload:e})=>{Dk({sepkeys:r.store.getNumberOfSepKeys(),keys:r.store.getNumberOfSshKeys(),identities:r.store.getNumberOfVisibleIdentities(),certificates:r.store.getNumberOfSshCertificates(),keychainItemLocation:e.location||GA(r.settings),keychainItem:e.type})}),jA(Iv,PC),br(_v.request,UA),jA(bv,_C),jA(Pv,AC),jA(wv,kC),jA(Ev,CC),jA(kv,IC),jA(Tv,TC),jA(Cv,bC),jA(Av,QE),jA(Ov,zT),br(Rs,(function*(){xC({isVisible:rl(yield*Ar(sP))})})),jA(xv,WT),jA(Nv,OC),jA(Rv,RC),jA(Dv,NC),jA(Hv,DC),jA(Fv,HC),jA(Gv,eI),br(Uv,({payload:e})=>{Ik({teamMemberID:e})}),jA(Lv,UC),jA(Kv,LC),jA(jv,TA),jA(Mv,IA),jA(Bv,CA),jA(qv,xA),br(HP,({payload:e})=>{"encode"===e.queue?KC(e.data):"write"===e.queue&&qC(e.data)}),jA($v,MC),jA(Vv,yk),jA(Wv,BC),jA(zv,$C),jA(Jv,VC),jA(Xv,zC),jA(Qv,WC),jA(Yv,QC),jA(Zv,JC),jA(L_,zI),jA(j_,XI),jA(M_,JI),jA(e_,XC),jA(t_,YC),jA(n_,jC),jA(r_,ZC),jA(a_,nI),jA(i_,tI),jA(s_,cI),jA(o_,lI),jA(l_,uI),jA(c_,iI),jA(u_,sI),jA(p_,rI),jA(d_,aI),jA(h_,dI),jA(f_,pI),jA(m_,hI),jA(S_,mI),jA(y_,SI),jA(g_,fI),jA(v_,gI),jA(__,vI),jA(b_,bI),jA(P_,_I),jA(w_,yI),jA(E_,PI),jA(k_,wI),jA(C_,EI),jA(T_,kI),jA(O_,II),jA(x_,pk),jA(N_.shown,OI),jA(N_.submitted,xI),jA(N_.postponed,NI),jA(N_.caughtError,RI),jA(N_.succeeded,DI),jA(R_,GI),jA(D_,FI),jA(H_,UI),jA(B_,ZI),br(DP,({payload:e})=>{YI({saveAsHostEnabled:e?"enable":"disable"})}),jA(K_,QI),jA(q_,iA),jA(V_,nA),jA($_,eA),jA(W_,tA),jA(z_,rA),jA(J_,aA),jA(X_,sA),jA(Q_,KI),br(Y_,({payload:e})=>{qI({welcomeSetupStep:e})}),jA(Z_,$I),jA(eb,oA),br(tb,({payload:e})=>{lA(e)}),br(nb,({payload:e})=>{nT(e)}),jA(rb,VI),jA(ab,HI),br(ib,({payload:e})=>{WI(e)}),jA(sb,cA),br(ob,({payload:e})=>{EC(e)}),jA(lb,uA),br(cb,({payload:e})=>{pA(e)}),br(ub,({payload:e})=>{oI(e)}),br(pb,({payload:e})=>{hA(e)}),jA(db,dA),jA(yy,bA),jA(hb,AI),br(As,({payload:e})=>{mA({shellType:Object(Wi.basename)(null!=e?e:ny,".exe").toLowerCase()})}),jA(fb,SA),jA(mb,yA),jA(Sb,wA),br(yb,({payload:e})=>{EA(e)}),jA(gb,vA),jA(_b,_A),jA(vb,gA),jA(bb,AA),br(Pb,({payload:e})=>{OA({sessionAuthMethod:FA(e)})})])}function FA(e){switch(e){case"publickey":return"Public Key";case"keyboard-interactive":return"Keyboard Interactive";default:return"Password"}}function GA(e){return e.isSynchingKeys()?"Cloud":"Local"}function*UA({meta:e}){try{vC(),yield*Er(_v.success(void 0,e.requestId))}catch(t){yield*Er(_v.failure(void 0,e.requestId))}}const LA=e=>"object"!=typeof e||null==e;function*jA(e,t){yield*br(e,function(e){return t=>e(t.payload)}(t))}var MA=n(19),BA=n.n(MA),KA=n(203),qA=n.n(KA);const VA=Pi("UPDATE_ENTITIES"),$A=Li("UPDATE_HISTORY_ENTITIES"),WA=Li("SET_SNIPPET"),zA=Li("DELETE_SNIPPETS"),JA=Pi("DUPLICATE_SNIPPETS"),XA=Li("MOVE_SNIPPET_TO_SNIPPETS_PACKAGE"),QA=Li("GENERATE_SCRIPT"),YA=Li("SET_SNIPPETS_PACKAGE"),ZA=Li("DELETE_SNIPPETS_PACKAGES"),eO=Li("SET_HARDWARE_KEYS"),tO=Li("GENERATE_SEP_KEY"),nO=Pi("CLEANUP_SEP_KEYS"),rO=Li("SET_SSHKEY"),aO=Li("GENERATE_KEY"),iO=Li("DELETE_SSHKEYS_AND_IDENTITIES"),sO=Li("SET_PORT_FORWARDING_RULE"),oO=Li("DELETE_PORT_FORWARDING_RULES"),lO=Li("SET_IDENTITY"),cO=Li("DELETE_HOSTS_AND_GROUPS"),uO=Li("SAVE_GROUP"),pO=Li("SHARE_GROUP"),dO=Li("UNSHARE_GROUP"),hO=Li("MOVE_CHAINS_TO_GROUP_REQUEST"),fO=Li("SHARE_GROUPS"),mO=Li("SHARE_HOSTS"),SO=Li("SHARE_SNIPPETS_AND_SNIPPETS_PACKAGES"),yO=Li("MOVE_HOST_CHAINS_TO_GROUP"),gO=Li("SAVE_HOST_WITH_GROUP"),vO=Li("SAVE_HOST"),_O=Li("DUPLICATE_HOSTS"),bO=Pi("RESOLVE_DUPLICATES"),PO=Pi("SAVE_HOST_OS"),wO=Li("SAVE_TAG"),EO=Li("DELETE_TAG"),kO=Pi("REPLACE_KNOWN_HOST"),TO=Pi("ADD_KNOWN_HOST"),CO=Pi("DELETE_KNOWN_HOSTS"),IO=Li("PUSH_HISTORY"),AO=Li("DEACTIVATE_HISTORY"),OO=Li("DELETE_HISTORY"),xO=Li("CLEAR_ALL_INACTIVE_HISTORIES"),NO=Li("CROP_HISTORY"),RO=Li("SAVE_HOST_LATEST_ACTIVITY"),DO=Li("DELETE_HOST_LATEST_ACTIVITY"),HO=Li("HAS_SYNCABLE_ENTITIES"),FO=Li("IMPORT_ENTITIES"),GO=Li("MOVE_HOSTS_AND_GROUPS_TO_GROUP"),UO=Li("SHARE_ENTITIES_IN_TEAM_TRIAL_ONBOARDING"),LO=Li("SAVE_HISTORY_COMMANDS"),jO=Li("DELETE_HISTORY_COMMANDS");class MO{constructor(e,t){this.store=t,this.relatedEntitiesMap=BO(),this.prepareGraph(e)}prepareGraph(e){switch(e.constructor){case Wo:this.addParentGroup(e);break;case Jo:this.addHost(e,MO.buildOptions(e));break;case qo:this.startupSnippet=e;break;case No:e.is_shared&&this.addIdentity(e);break;case Ko:this.addSnippetsPackage(e)}}set hostChain(e){e&&this.relatedEntitiesMap.hostChain.push(e)}set startupSnippet(e){e&&this.relatedEntitiesMap.startupSnippet.push(e)}addParentGroup(e){if(!e)return;const t=this.store.getChildrenGroupsAndHostsForSharing(e),n=t.children_groups.findIndex(t=>t.local_id===e.local_id);n>=0&&(t.children_groups[n]=e);const r=MO.buildOptions(e);for(const e of t.children_groups)this.addGroup(e,r);for(const e of t.children_hosts)this.addHost(e,r)}addSnippetsPackage(e){if(!e)return;this.relatedEntitiesMap.snippetsPackage.push(e);const t=this.store.getChildrenSnippets(e);for(const e of t)this.startupSnippet=e}addGroup(e,t){e&&(this.relatedEntitiesMap.group.push(e),this.addSshConfig(e.ssh_config,t),this.addTelnetConfig(e.telnet_config,t))}addHost(e,t){e&&(this.relatedEntitiesMap.host.push(e),this.addSshConfig(e.ssh_config,t),this.addTelnetConfig(e.telnet_config,t))}addSshConfig(e,t){e&&(this.relatedEntitiesMap.sshConfig.push(e),this.addProxy(e.proxy,t),this.startupSnippet=e.startup_snippet,this.hostChain=e.host_chain,"credentials_sharing"===t.sharingMode&&this.addIdentity(e.identity))}addProxy(e,t){e&&(this.relatedEntitiesMap.proxy.push(e),this.addIdentity(e.identity))}addTelnetConfig(e,t){e&&(this.relatedEntitiesMap.telnetConfig.push(e),this.startupSnippet=e.startup_snippet,"credentials_sharing"===t.sharingMode&&this.addIdentity(e.identity))}addIdentity(e){if(!e)return;this.relatedEntitiesMap.identity.some(t=>t.local_id===e.local_id)||this.relatedEntitiesMap.identity.push(e),this.addSshKey(e.ssh_key)}addSshKey(e){if(!e)return;this.relatedEntitiesMap.sshKey.some(t=>t.local_id===e.local_id)||this.relatedEntitiesMap.sshKey.push(e),e.certificates.forEach(e=>this.addSshCertificate(e))}addSshCertificate(e){if(!e)return;this.relatedEntitiesMap.sshCertificate.some(t=>t.local_id===e.local_id)||this.relatedEntitiesMap.sshCertificate.push(e)}static buildOptions(e){var t,n;return{sharingMode:null!==(n=null===(t=e.rootGroup)||void 0===t?void 0:t.sharing_mode)&&void 0!==n?n:"no_credentials_sharing"}}}function BO(){const e={};for(const t of["group","host","sshConfig","telnetConfig","proxy","snippetsPackage","startupSnippet","identity","hostChain","sshKey","sshCertificate"])e[t]=[];return e}async function KO(e,t){for(const n of function(e){const t=[];for(const n of["group","host","sshConfig","telnetConfig","proxy","snippetsPackage","startupSnippet","identity","hostChain","sshKey","sshCertificate"])t.push({entityName:n,entities:e[n]});return t}(e))for(const e of n.entities)await t[n.entityName](e)}class qO{constructor(e,{store:t,settings:n}){this.entityGraph=new MO(e,t),this.store=t,this.settings=n,this.is_shared=e.is_shared}async share(e,t){await KO(this.entityGraph.relatedEntitiesMap,this),await this.unshareDiff(e,t)}async host(e){e&&await this.store.setHost(this.mergeShared(e))}async group(e){e&&(this.is_shared||(e.sharing_mode=null),await this.store.setGroup(this.mergeShared(e)))}async sshConfig(e){e&&await this.store.setSshConfig(this.mergeShared(e))}async hostChain(e){}async telnetConfig(e){e&&await this.store.setTelnetConfig(this.mergeShared(e))}async identity(e){if(!e)return;const{store:t}=this;if(this.is_shared)return void await t.setIdentity(this.mergeShared(e));this.matchInSharedProxies("identity",e.local_id)+this.matchInSharedWithCredentialsTelnetConfigs("identity",e.local_id)+this.matchInSharedWithCredentialsSshConfigs("identity",e.local_id)>0||(this.settings.isSynchingKeys()?await t.setIdentity(this.mergeShared(e)):await t.recreateIdentity(this.mergeShared(e)))}async sshKey(e){if(!e)return;if(this.is_shared)return void await this.store.setSshKey(this.mergeShared(e));this.matchInSharedIdentities("ssh_key",e.local_id)>0||(this.settings.isSynchingKeys()?await this.store.setSshKey(this.mergeShared(e)):await this.store.recreateSshKey(this.mergeShared(e)))}async sshCertificate(e){e&&(this.is_shared||this.settings.isSynchingKeys())&&await this.store.setSshCertificate(this.mergeShared(e))}async proxy(e){if(e){const t="proxy";(0===this.matchInSharedSshConfigs(t,e.local_id)||this.is_shared)&&await this.store.setProxy(this.mergeShared(e))}}async startupSnippet(e){if(e&&this.is_shared){const t=e.package&&!e.package.is_shared;await this.store.setSnippet(this.mergeShared(e.clone({package:t?null:e.package})))}}async snippetsPackage(e){e&&await this.store.setSnippetsPackage(this.mergeShared(e))}matchInSharedSshConfigs(e,t){return qO.matchesInSharedEntity(e,t,this.store.getSshConfigs())}matchInSharedTelnetConfigs(e,t){return qO.matchesInSharedEntity(e,t,this.store.getTelnetConfigs())}matchInSharedWithCredentialsSshConfigs(e,t){const n=this.store.getSshConfigs().filter(e=>{const t=this.store.lookupRootGroupBySshConfig(e);return"credentials_sharing"===(null==t?void 0:t.sharing_mode)&&e.is_shared});return qO.matchesInSharedEntity(e,t,n)}matchInSharedWithCredentialsTelnetConfigs(e,t){const n=this.store.getTelnetConfigs().filter(e=>{const t=this.store.lookupRootGroupByTelnetConfig(e);return"credentials_sharing"===(null==t?void 0:t.sharing_mode)&&e.is_shared});return qO.matchesInSharedEntity(e,t,n)}matchInSharedProxies(e,t){return qO.matchesInSharedEntity(e,t,this.store.getProxies())}matchInSharedIdentities(e,t){return qO.matchesInSharedEntity(e,t,this.store.getAllIdentities())}static matchesInSharedEntity(e,t,n){let r=0;for(const a of n)a[e]&&!0===a.is_shared&&a[e].local_id===t&&(r+=1);return r}getDependenciesForUnshare(e,t){const n=BO(),r=new MO(e,this.store).relatedEntitiesMap,a=new MO(t,this.store).relatedEntitiesMap;for(const e of Object.keys(r))for(const t of r[e]){!a[e].some(e=>e.local_id===t.local_id)&&n[e].push(t)}return n}async unshareDiff(e,t){this.is_shared=!1;const n=await this.getDependenciesForUnshare(e,t);await KO(n,this)}mergeShared(e){return e.is_shared=this.is_shared,e}}const VO=async(e,t)=>(await t.store.collectGarbage(),new qO(e,t)),$O=Li("SYNC_GROUP_WITH_CLOUD"),WO=Pi("SET_FAILED_GROUP_SYNC_WITH_CLOUD"),zO=Pi("REMOVE_FAILED_GROUP_SYNC_WITH_CLOUD"),JO=Li("INSTANT_CLOUDS_SYNC");class XO{constructor(e,t){this.group=e,this.store=t}isDiffHost(e,t){return!(e.address===t.address&&e.label===t.label)}async resolveHosts(e=[]){var t,n,r;const a=this.store.getHosts(),i=[],s=[],o=[];for(const r of e){const e=this.store.getHostByCloudId(r.cloud_instance_id,this.group);e&&!this.isDiffHost(r,e)||(e?s.push(r):i.push(r),await this.store.setHost(new Jo({...e,group:null!==(t=null==e?void 0:e.group)&&void 0!==t?t:this.group,address:r.address,label:(null==e?void 0:e.label)||r.label,ssh_config:null!==(n=null==e?void 0:e.ssh_config)&&void 0!==n?n:r.ssh_config,cloud_instance_id:r.cloud_instance_id,cloud_instance_type:r.cloud_instance_type,os_name:r.os_name})))}for(const t of a){const n=!!t.cloud_instance_id,a=(null===(r=t.group)||void 0===r?void 0:r.local_id)===this.group.local_id,i=e.some(e=>e.cloud_instance_id===t.cloud_instance_id);n&&a&&!i&&(o.push(t),await this.store.deleteHost(t))}return{created:i,updated:s,deleted:o}}}class QO extends Error{constructor(e){super(e.message),this.name="CloudSyncError",this.config=e.config,this.type=e.type||"Unknown error"}}var YO=QO;class ZO{async fetch(e){try{const t=await this.getUserIdentity(e);if(!t)return{hosts:[]};const{SubscriptionClient:r}=await Promise.all([n.e(0),n.e(2),n.e(8)]).then(n.bind(null,520)),a=new r(t),i=await this.getSubscriptionIDs(a);return{hosts:await this.getVms(t,i)}}catch(t){throw new YO({config:e,message:t.message,type:t.name})}}async getUserIdentity(e){const{ClientSecretCredential:t}=await Promise.all([n.e(0),n.e(9)]).then(n.bind(null,516));return e.tenant_id&&e.client_id&&e.client_secret?new t(e.tenant_id,e.client_id,e.client_secret):null}async getSubscriptionIDs(e){const t=[];for await(const n of e.subscriptions.list())n.subscriptionId&&t.push(n.subscriptionId);return t}async getVms(e,t){var r,a;const i=[],{ComputeManagementClient:s}=await Promise.all([n.e(0),n.e(2),n.e(7)]).then(n.bind(null,518)),{NetworkManagementClient:o}=await Promise.all([n.e(0),n.e(6)]).then(n.bind(null,517));for(const n of t){const t=new s(e,n),l=new o(e,n),c=t.virtualMachines.listAll();for await(const e of c){const t=await this.getVmConfig(e,l);if(t.vmPublicIpAddress){const n=new Jo({label:e.name,cloud_instance_type:"azure",os_name:null===(a=null===(r=null==e?void 0:e.storageProfile)||void 0===r?void 0:r.osDisk)||void 0===a?void 0:a.osType,cloud_instance_id:e.id,ssh_config:new Vo});n.address=t.vmPublicIpAddress,i.push(n)}}}return i}async getVmConfig(e,t){var n,r;const a=(e=>{var t,n,r,a;return bo()(null===(a=null===(r=null===(n=null===(t=e.networkProfile)||void 0===t?void 0:t.networkInterfaces)||void 0===n?void 0:n[0])||void 0===r?void 0:r.id)||void 0===a?void 0:a.split("/"))})(e),i=(e=>{var t;return null===(t=e.id)||void 0===t?void 0:t.split("/")[4]})(e);if(!i||!a)return{};const s=(e=>{var t,n;return bo()(null===(n=null===(t=null==e?void 0:e.publicIPAddress)||void 0===t?void 0:t.id)||void 0===n?void 0:n.split("/"))})(null===(n=(await t.networkInterfaces.get(i,a)).ipConfigurations)||void 0===n?void 0:n.find(e=>null!=e.publicIPAddress));if(!s)return{};const o=await(null===(r=t.publicIPAddresses)||void 0===r?void 0:r.get(i,s));if(!o.ipAddress)return{};return{vmResourceGroupName:i,vmNetworkName:a,vmPublicIpAddress:o.ipAddress}}}var ex=n(204),tx=n.n(ex);const nx=e=>{if(!e)return null;const t=e.toLowerCase();return t.includes("ubuntu")?"ubuntu":t.includes("red")?"redhat":t.includes("suse")?"suse":t.includes("debian")?"debian":t.includes("macos")||t.includes("osx")?"osx":t.includes("linux")?"linux":t.includes("cent")?"centos":null};class rx{async fetch(e){const t=await this.getReservations(e);if(!t)return{hosts:[]};const n={ipAddressType:e.ipAddressType};return{hosts:tx()(t.map(e=>e.Instances).flat()).filter(e=>{var t;return 48!==(null===(t=null==e?void 0:e.State)||void 0===t?void 0:t.Code)}).map(e=>this.convertToHost(e,n)).filter(Po)}}convertToHost(e,t){var n,r;const{PrivateIpAddress:a,PublicIpAddress:i,InstanceId:s,PlatformDetails:o,Platform:l}=e,c="public"===(null==t?void 0:t.ipAddressType)?i:a;if(!c||!s)return null;const u=["label","name","title"],p=null===(r=null===(n=null==e?void 0:e.Tags)||void 0===n?void 0:n.find(e=>{var t,n;return u.includes(null!==(n=null===(t=e.Key)||void 0===t?void 0:t.toLowerCase())&&void 0!==n?n:"")}))||void 0===r?void 0:r.Value;return new Jo({label:p,address:c,cloud_instance_id:s,cloud_instance_type:"Amazon AWS",ssh_config:new Vo,os_name:nx(l)||nx(o)})}async getReservations(e){try{const{EC2Client:t,DescribeInstancesCommand:r}=await Promise.all([n.e(1),n.e(5)]).then(n.bind(null,514)),a=new t({credentials:{accessKeyId:e.accessKeyId||"",secretAccessKey:e.secretAccessKey||""},region:e.region||void 0}),{Reservations:i}=await a.send(new r({}));return i}catch(t){throw new YO({config:e,message:t.message,type:t.name})}}}class ax{async fetch(e){const t=await this.getInstances(e);if(!t)return{hosts:[]};const n={ipAddressType:e.ipAddressType};return{hosts:t.filter(e=>{var t;return 48!==(null===(t=null==e?void 0:e.state)||void 0===t?void 0:t.code)}).map(e=>this.convertToHost(e,n)).filter(Po)}}convertToHost(e,t){const{privateIpAddress:n,publicIpAddress:r,name:a,arn:i,blueprintName:s}=e,o="public"===(null==t?void 0:t.ipAddressType)?r:n;return o&&i?new Jo({label:a,address:o,cloud_instance_id:i,cloud_instance_type:"Amazon AWS",ssh_config:new Vo,os_name:nx(s)}):null}async getInstances(e){try{const{LightsailClient:t}=await Promise.all([n.e(1),n.e(3)]).then(n.bind(null,515)),r=new t({credentials:{accessKeyId:e.accessKeyId||"",secretAccessKey:e.secretAccessKey||""},region:e.region||void 0});return await this.getInstancesWithPagination({client:r})}catch(t){throw new YO({config:e,message:t.message,type:t.name})}}async getInstancesWithPagination({client:e,arrayOfInstances:t,currentPageToken:r}){const a=t||[],{GetInstancesCommand:i}=await Promise.all([n.e(1),n.e(3)]).then(n.bind(null,515)),s=new i({pageToken:r}),{instances:o,nextPageToken:l}=await e.send(s);return(null==o?void 0:o.length)&&a.push(...o),l?this.getInstancesWithPagination({client:e,arrayOfInstances:a,currentPageToken:l}):a}}class ix{constructor(){this.implementors={lightsail:new ax,ec2:new rx}}async fetch(e){return this.implementors[e.serviceType].fetch(e)}}class sx{async fetch(e){const t=await this.listDroplets(e);if(!t)return{hosts:[]};return{hosts:t.filter(e=>"active"===(null==e?void 0:e.status)).map(e=>this.convertToHost(e)).filter(Po)}}convertToHost(e){var t,n,r;const{id:a,name:i,networks:s,image:o}=e,l=(null===(t=[null==s?void 0:s.v4,null==s?void 0:s.v6].flat().find(e=>"public"===(null==e?void 0:e.type)))||void 0===t?void 0:t.ip_address)||(null===(n=null==s?void 0:s.v4[0])||void 0===n?void 0:n.ip_address)||(null===(r=null==s?void 0:s.v6[0])||void 0===r?void 0:r.ip_address);return a&&l?new Jo({label:i,address:l,cloud_instance_id:a.toString(),cloud_instance_type:"DigitalOcean",ssh_config:new Vo,os_name:nx(o.distribution)}):null}async listDroplets(e){var t,r,a,i;const{createApiClient:s}=await n.e(10).then(n.t.bind(null,512,7));try{const t=s({token:e.token||""}),{data:{droplets:n}}=await t.droplet.listDroplets({per_page:200});return n}catch(n){throw new YO({config:e,message:(null===(r=null===(t=n.response)||void 0===t?void 0:t.data)||void 0===r?void 0:r.message)||n.message,type:(null===(i=null===(a=n.response)||void 0===a?void 0:a.data)||void 0===i?void 0:i.id)||n.name})}}}class ox{constructor(e){this.provider=e}async fetch(e){return this.provider.fetch(e)}}class lx{constructor(e){this.sendSyncCompletedAnalyticsEvent=({requestDate:e,numberOfImportedHosts:t,numberOfRemovedHosts:n,cloudConfig:r})=>{if(!t&&!n)return;const a=po(new Date,e);this.dispatch(Fv({responseTime:a,numberOfImportedHosts:t,numberOfRemovedHosts:n,importedIpType:vl(r),importedServices:gl(r),cloudIntegration:Sl(r.cloudType)}))},this.cloudConfigFetch=async(e,t)=>{var n;const r=new Date;try{const n=((e="")=>"aws"===e?new ix:"DigitalOcean"===e?new sx:"azure"===e?new ZO:null)(t.cloudType);if(!n)throw new Error("Incorrect cloud config");const a=await new ox(n).fetch(t),i=await new XO(e,this.store).resolveHosts(a.hosts),s=this.store.getGroup({local_id:e.local_id},!0);if(e.is_shared&&i.created.length){const t=await VO(e,{store:this.store,settings:this.settings});await t.share(s,e)}return this.sendSyncCompletedAnalyticsEvent({requestDate:r,numberOfImportedHosts:i.created.length,numberOfRemovedHosts:i.deleted.length,cloudConfig:t}),this.dispatch(zO(e)),this.dispatch(VA({hosts:this.store.getHosts(!0),groups:this.store.getGroups(!0)})),i}catch(r){return r instanceof YO||TS.exception("Clouds: cannot fetch data for cloud config",r),this.dispatch(WO({group:e,errorMessage:r.message})),t.isFulfilled()&&this.dispatch(Gv({importedIpType:vl(t),importedServices:gl(t),cloudIntegration:Sl(t.cloudType),cloudErrorType:null!==(n=r.type)&&void 0!==n?n:"Unknown"})),null}},this.syncGroup=async e=>{const{cloud_config:t}=e;return null!=t?this.cloudConfigFetch(e,t):void 0},this.sync=qA()(()=>this.handleSync(),1e4),this.instantSync=this.handleSync,this.store=e.store,this.dispatch=e.dispatch,this.settings=e.settings}get isSyncEnabled(){return this.settings.getDeprecatedUserPro()}async handleSync(){if(!this.isSyncEnabled)return null;const e=this.store.getGroups();return Promise.all(e.map(this.syncGroup))}}var cx,ux=n(67),px=n.n(ux);function dx(e){switch(e){case ko.crypto.errorCodes["crypto::Error::None"]:return"no error";case ko.crypto.errorCodes["crypto::Error::UnknownVersion"]:return"unknown version";case ko.crypto.errorCodes["crypto::Error::UnsupportedVersion"]:return"unsupported version";case ko.crypto.errorCodes["crypto::Error::RNCryptorVersion"]:return"rncryptor version";case ko.crypto.errorCodes["crypto::Error::IncorrectSecretKeySize"]:return"incorrect secret key size";case ko.crypto.errorCodes["crypto::Error::IncorrectPublicKeySize"]:return"incorrect public key size";case ko.crypto.errorCodes["crypto::Error::IncorrectPrivateKeySize"]:return"incorrect private key size";case ko.crypto.errorCodes["crypto::Error::IncorrectSaltSize"]:return"incorrect salt size";case ko.crypto.errorCodes["crypto::Error::Unknown"]:return"unknown error";case ko.crypto.errorCodes["crypto::Error::NoEngine"]:return"no engine";case ko.crypto.errorCodes["crypto::Error::IncompleteCiphertext"]:return"incomplete ciphertext";default:return"unspecified error"}}!function(e){e[e.unknown=0]="unknown",e[e.rnCryptorOldVersion1=1]="rnCryptorOldVersion1",e[e.rnCryptorOldVersion2=2]="rnCryptorOldVersion2",e[e.rnCryptorCurrentVersion=3]="rnCryptorCurrentVersion",e[e.sodium=4]="sodium"}(cx||(cx={}));class hx extends SS{constructor(e,t,n){super(e),this.cryptorVersion=t,this.parentError=n,this.name="CryptoError",this.errorContext=void 0}toString(){return""}withContext(e){var t;return null!==(t=this.errorContext)&&void 0!==t||(this.errorContext=[]),this.errorContext.push(e),this}static is(e){return e instanceof hx}}class fx extends hx{constructor(e){super("Crypto Error occurred in entries",cx.unknown),this.name="AggregatedCryptoError",this.errorContext=e.flatMap(({message:e,cryptorVersion:t,errorContext:n})=>null==n?[{message:"context not set. "+e,kind:void 0,id:0,local_id:0,cryptorVersion:t,operation:"encrypt"}]:n)}}function mx(e){if(0===e.length)return 0;switch(e[0]){case"B":return 4;case"A":return 3;default:return 0}}var Sx=n(24),yx=n.n(Sx);const gx="ES38/f3lTo8=",vx="I49Mqe9ORsk=",_x="",bx="c2592201a988bedfb7b909915e94bd51e532e7162bc272c2dc688abca1544799",Px="29cebb18f20090de7ba31d11e8afe82703fde64cddf733370d3f18aecab739ee";class wx{constructor(){this.rnCryptor=yx.a,this.cryptor=null}getCryptor(){return this.cryptor}decrypt(e){let t;if("string"!=typeof e)return e;if(0===e.length)return"";const n=this.getCryptor();try{t=n.decrypt(e)}catch(t){if("RNCryptor error!"===t.name){switch(mx(e)){case 4:return new hx("RNCryptor has tried to decrypt a Sodium encrypted message",cx.sodium,t);case 3:return new hx("RNCryptor decryption has failed",cx.rnCryptorCurrentVersion,t);default:return new hx("RNCryptor has got a ciphertext with an unknown version",cx.unknown,t)}}return new hx("RNCryptor decryption unknown error",t)}return t}encrypt(e){let t;if("string"!=typeof e)return e;try{t=this.getCryptor().encrypt(e)}catch(e){return"RNCryptor error!"===e.name?new hx("RNCryptor encryption has failed",e):new hx("RNCryptor encryption unknown error",e)}return t}getSettings(){return px.a.extend({},this.cryptor.settings)}static generateHash(e){const t=yx.a.helpers.sjcl.hash.sha256.hash(e);return yx.a.helpers.sjcl.codec.hex.fromBits(t)}}class Ex extends wx{constructor(e=vx,t=gx,n=_x){super();const r={ENCRYPTION_SALT:yx.a.helpers.base64ToHex(e),HMAC_SALT:yx.a.helpers.base64ToHex(t),PASSWORD:n};this.cryptor=new yx.a(r)}}class kx extends wx{constructor(e=vx,t=gx,n=Px,r=bx){super();const a={ENCRYPTION_SALT:yx.a.helpers.base64ToHex(e),HMAC_SALT:yx.a.helpers.base64ToHex(t),HMAC_KEY:r,KEY:n};this.cryptor=new yx.a(a)}}class Tx{constructor(e){this.cryptoSystem=new kx(e.salts.encryption,e.salts.hmac,e.encryptionKey,e.hmacKey)}decrypt(e){return this.cryptoSystem.decrypt(e)}encrypt(e){return this.cryptoSystem.encrypt(e)}}function Cx(e,t){const n=new Ex(t.encryption,t.hmac,e).getSettings();return{encryptionKey:n.KEY,hmacKey:n.HMAC_KEY,salts:t}}var Ix;!function(e){e[e.yes=0]="yes",e[e.no=1]="no",e[e.sharingUnavailable=2]="sharingUnavailable"}(Ix||(Ix={}));var Ax=n(8),Ox=n.n(Ax);const xx=e=>JSON.parse(localStorage.getItem(e)||"null"),Nx=(e,t)=>localStorage.setItem(e,JSON.stringify(t)),Rx=["team_setup_closed","closed_side_menu_promotions"];const Dx=new class{get(e){return xx(e)}set(e,t){return Nx(e,t)}update(e,t){const n=xx(e),r=Ox()({},n,t);return Nx(e,r)}reset(e){return(e=>localStorage.removeItem(e))(e)}clearAll(){Rx.forEach(e=>{this.reset(e)})}},Hx=Pi("START_CENTRIFUGE");class Fx extends Error{constructor(){super(...arguments),this.name="LocalCryptoSystemError"}}var Gx=Fx,Ux=n(26),Lx=n.n(Ux),jx=n(205),Mx=n.n(jx);class Bx{encrypt(){return""}decrypt(){return""}}const Kx=["encryptedTeamKey","ownerPublicKey","privateKey"],qx=["encryptionKey","hmacKey","encryptionSalt","hmacSalt"],Vx=["publicKey","privateKey","personalKey"],$x=["encryptionKey","hmacKey","encryptionSalt","hmacSalt","apiKey","publicKey","privateKey","personalKey","encryptedTeamKey","ownerPublicKey","centrifugeJWTToken","centrifugeClientID"];class Wx{constructor(){this.cache=new Map,this.localCryptoSystem=new Bx}setLocalCryptoSystem(e){this.localCryptoSystem=e}passwordRememberStatus(){const e=e=>null!=this.getPersistedCredential(e);if(!["apiKey",...qx].every(e))return"not-remembered";return[...Vx].every(e)?"remembered":"remembered-without-sharing"}deleteAllCredentials(){$x.forEach(e=>{this.removeCredential(e,!0)})}deleteAllPersistedCredentials(){$x.forEach(e=>{this.removeCredential(e,!1)})}deleteTeamCredentials(){Kx.forEach(e=>{this.removeCredential(e,!0)})}setKeySet(e){this.setAccountsSet(e)}getKeySet(){return this.getAccountsSet(Vx)}setRNCryptorSet(e){this.setAccountsSet(e)}getRNCryptorSet(){return this.getAccountsSet(qx)}resetTeamKeySet(){this.removeCredential("encryptedTeamKey",!0),this.removeCredential("ownerPublicKey",!0)}getApiKey(){return this.getCredential("apiKey")}setApiKey(e){this.setCredential("apiKey",e)}getSalts(){const e=this.getCredential("encryptionSalt"),t=this.getCredential("hmacSalt");return null==e||null==t?null:{encryption:e,hmac:t}}getKeyPair(){const e=this.getCredential("privateKey"),t=this.getCredential("publicKey");return null==e||null==t?null:{privateKey:e,publicKey:t}}setKeyPair(e){this.setCredential("privateKey",e.privateKey),this.setCredential("publicKey",e.publicKey)}getPersonalV3Credentials(){const e=this.getRNCryptorSet();return null==e?null:{encryptionKey:e.encryptionKey,hmacKey:e.hmacKey,salts:{encryption:e.encryptionSalt,hmac:e.hmacSalt}}}setPersonalV3Credentials(e){this.setRNCryptorSet({encryptionKey:e.encryptionKey,hmacKey:e.hmacKey,encryptionSalt:e.salts.encryption,hmacSalt:e.salts.hmac})}getPersonalV4Credentials(){const e=this.getKeySet();return null==e?null:{key:e.personalKey}}setPersonalV4Credentials(e){this.setCredential("personalKey",e.key)}getCentrifugeJWTToken(){const e=this.getCredential("centrifugeJWTToken"),t=this.getCredential("centrifugeClientID");return null==e||null==t?null:{token:e,clientID:t}}setCentrifugeJWTToken({token:e,clientID:t}){this.setCredential("centrifugeJWTToken",e),this.setCredential("centrifugeClientID",t)}getCredential(e){let t=this.cache.get(e);return null==t&&(t=this.getPersistedCredential(e),null!=t&&this.cache.set(e,t)),t}getPersistedCredential(e){var t;return null===(t=this.localCryptoSystem.decrypt(FS.getCredential(e)))||void 0===t?void 0:t.toString()}setCredential(e,t){var n;const r=null===(n=this.localCryptoSystem.encrypt(t))||void 0===n?void 0:n.toString();FS.setCredential(e,Lx()(r,null)),this.cache.set(e,t)}removeCredential(e,t){t&&this.cache.delete(e),FS.removeCredential(e)}getAccountsSet(e){const t={};return e.forEach(e=>{t[e]=this.getCredential(e)}),Object.values(t).some(e=>!e)?null:t}setAccountsSet(e){Mx()(e,(e,t)=>{zx(t)&&this.setCredential(t,e)})}}const zx=e=>$x.includes(e),Jx=(e,t,{debug:n,charset:r})=>{const a=e.encrypt(Buffer.from(t,r));if(a)return a.toString("base64");const i=dx(e.getLastError());return new hx(`${n} encryption has failed with error: ${i}`,cx.sodium)},Xx=(e,t,{debug:n,charset:r})=>{const a=e.decrypt(Buffer.from(t,"base64"));if(a)return a.toString(r);const i=dx(e.getLastError());return new hx(`${n} decryption has failed with error: ${i}`,cx.sodium)};class Qx{constructor(e){this.cryptoSystem=ko.crypto.systems.FromEncryptionKey(Buffer.from(e.key,"base64"))}decrypt(e){return null==e?null:Xx(this.cryptoSystem,e,{debug:"Sodium Personal"})}encrypt(e){return null==e?null:Jx(this.cryptoSystem,e,{debug:"Sodium Personal"})}}class Yx{constructor(e){this.cryptoSystem=ko.crypto.systems.ForMemberWithOwnerKey(Buffer.from(e.keyPair.ownerPublicKey,"base64"),Buffer.from(e.keyPair.privateKey,"base64"),Buffer.from(e.encryptedKey,"base64"))}decrypt(e){return null==e?null:Xx(this.cryptoSystem,e,{debug:"Sodium Team Member"})}encrypt(e){return null==e?null:Jx(this.cryptoSystem,e,{debug:"Sodium Team Member"})}}class Zx{constructor(e){this.cryptoSystem=ko.crypto.systems.ForOwner({privateKey:Buffer.from(e.keyPair.privateKey,"base64"),publicKey:Buffer.from(e.keyPair.publicKey,"base64")},Buffer.from(e.encryptedKey,"base64"))}decrypt(e){return null==e?null:Xx(this.cryptoSystem,e,{debug:"Sodium Team Owner"})}encrypt(e){return null==e?null:Jx(this.cryptoSystem,e,{debug:"Sodium Team Owner"})}exchangeSecret(e){const t=this.cryptoSystem.exchangeSecret(Buffer.from(e,"base64"));if(null==t){const e=dx(this.cryptoSystem.getLastError()),t=new Error("Exchange secret has failed with error: "+e);throw TS.exception(t.message,t),t}return t.toString("base64")}}const eN=Pi("MISSING_PERSONAL_CREDENTIALS");class tN{constructor(e){this.cryptoSystem=ko.crypto.systems.FromKeyPair({publicKey:Buffer.from(e.publicKey,"base64"),privateKey:Buffer.from(e.privateKey,"base64")})}decrypt(e){return Xx(this.cryptoSystem,e,{debug:"Key Pair",charset:"base64"})}encrypt(e,t="base64"){return Jx(this.cryptoSystem,e,{debug:"Key Pair",charset:t})}}function nN(e){return new tN(e).encrypt(ko.crypto.utils.generateEncryptionKey().toString("base64"))}class rN{constructor(e){this.cryptoSystem=ko.crypto.systems.FromPassword(Buffer.from(e.password),Buffer.concat([Buffer.from(e.encryptionSalt,"base64"),Buffer.from(e.hmacSalt,"base64")]))}decrypt(e){return Xx(this.cryptoSystem,e,{debug:"Password",charset:"base64"})}decryptKeyPair(e){const t=this.decrypt(e.encryptedPrivateKey);return hx.is(t)?t:{privateKey:t,publicKey:e.publicKey}}encrypt(e,t="base64"){return Jx(this.cryptoSystem,e,{debug:"Password",charset:t})}encryptKeyPair(e){const t=this.encrypt(e.privateKey);return hx.is(t)?t:{encryptedPrivateKey:t,publicKey:e.publicKey}}}class aN{constructor(e,t,n=(()=>{})){this.api=e,this.credentialsStorage=t,this.dispatch=n}async retrievePersonalKey(){const e=this.credentialsStorage.getPersonalV4Credentials(),t=this.credentialsStorage.getKeyPair();if(null==t||null==e)return null;const n=await this.api.getKeyPair();if(null==n.id)return null;if(n.public_key!==t.publicKey)return TS.exception("Stored key pair does not match with the remote one",new Error),null;const r=new tN(t).decrypt(n.encrypted_personal_key);return"string"==typeof r&&r===e.key?{key:r}:(TS.exception("Stored personal key does not match with the remote one",new Error),null)}async retrieveKeyPair(){const e=this.credentialsStorage.getKeyPair();if(null==e)return null;const t=await this.api.getKeyPair();return null==t.id?null:t.public_key!==e.publicKey?(TS.exception("Stored key pair does not match with the remote one",new Error),null):e}async getOrCreateKeyPair(e,t){const n=await this.retrieveKeyPair();if(null!=n)return n;const r=null!=t?t:await this.generate(e);return this.persist(e,r)}persist(e,t){const n=new rN(e).decryptKeyPair({encryptedPrivateKey:t.encrypted_private_key,publicKey:t.public_key});if(hx.is(n))throw TS.exception("Try to store incorrect decryption KeyPair",new Error),n;const r=new tN(n).decrypt(t.encrypted_personal_key);if(hx.is(r))throw TS.exception("Try to store incorrect decryption personal encryption key",new Error),r;return this.credentialsStorage.setKeyPair(n),this.credentialsStorage.setPersonalV4Credentials({key:r}),n}async reencrypt(e,t=!1){const n=await this.retrieveKeyPair();if(null==n)return t?{encrypted_private_key:"",public_key:""}:iN(e,this.dispatch);const r=new rN(e).encryptKeyPair(n);if(hx.is(r))return r;const{encryptedPrivateKey:a,publicKey:i}=r;return{encrypted_private_key:a,public_key:i}}async generate(e){const t=iN(e,this.dispatch);if(hx.is(t))throw t;try{return await this.api.setKeyPair(t)}catch(e){if(400===e.status)return this.api.getKeyPair();throw e}}}function iN(e,t){const n=function(){const e=ko.crypto.utils.generateKeyPair();return{publicKey:e.publicKey.toString("base64"),privateKey:e.privateKey.toString("base64")}}(),r=nN(n);if(hx.is(r))return r;t(xy());const a=new rN(e).encryptKeyPair(n);return hx.is(a)?a:{public_key:a.publicKey,encrypted_private_key:a.encryptedPrivateKey,encrypted_personal_key:r}}class sN{constructor(e,t=(()=>{})){this.api=e,this.dispatch=t}async tryToDownloadTeamKey(e,t,n){return n?this.fetchOrCreateKey(e,t):this.fetchKey(t)}async issueKey(e,{ownerId:t,memberId:n}){const r=await this.fetchOrCreateKey(t,e),a=new Zx(r),i=(await this.api.getMemberPublicKey(n)).objects[0];if(null==i)return;if(i.has_team_key)return;const s={encrypted_for:i.user_id,encrypted_key:a.exchangeSecret(i.public_key)};this.dispatch(Uv(i.user)),await this.api.uploadTeamEncryptionKey(s)}async fetchOrCreateKey(e,t){let n;try{n=(await this.api.getEncryptionKey()).encrypted_key}catch(r){if(!(404===r.status))throw r;n=await this.createKey(t,e)}return{type:"owner",keyPair:t,encryptedKey:n}}async fetchKey(e){try{const t=await this.api.getEncryptionKey();return this.dispatch(Oy()),{type:"member",keyPair:{privateKey:e.privateKey,ownerPublicKey:t.encrypted_with.public_key},encryptedKey:t.encrypted_key}}catch(e){return null}}async createKey(e,t){const n=nN(e);if(hx.is(n))throw n;this.dispatch(Ay());try{return(await this.api.uploadTeamEncryptionKey({encrypted_for:t,encrypted_key:n})).encrypted_key}catch(e){if(!(400===e.status))throw e;return(await this.api.getEncryptionKey()).encrypted_key}}}class oN extends Error{constructor(){super("Required personal credentials are not found"),this.name="MissingPersonalCredentials",this.status=-102}}class lN extends Error{constructor(){super("Required rncryptor credentials are not found"),this.name="MissingRNCryptorCredentials",this.status=-101}}class cN{constructor(e,t,n){this.legacyPersonal=e,this.personal=t,this.team=n}encryptV3(e,t){return t?null==this.team?new hx("An individual user has tried to encrypt team data (encryption schema: 3)",cx.sodium):this.team.encrypt(e):this.legacyPersonal.encrypt(e)}encryptV5(e,t){return t?null==this.team?new hx("An individual user has tried to encrypt team data (encryption schema: 5)",cx.sodium):this.team.encrypt(e):null==this.personal?new hx("A non-migrated individual user has tried to encrypt data with encryption schema 5",cx.sodium):this.personal.encrypt(e)}decryptV3(e,t){return t?null==this.team?new hx("An individual user has tried to decrypt team data (encryption schema: 3)",cx.sodium):this.team.decrypt(e):this.legacyPersonal.decrypt(e)}decryptV5(e,t){return t?null==this.team?new hx("An individual user has tried to decrypt team data (encryption schema: 5)",cx.sodium):this.team.decrypt(e):null==this.personal?new hx("A non-migrated individual user has tried to decrypt data with encryption schema 5",cx.sodium):this.personal.decrypt(e)}}var uN,pN;!function(e){e[e.setupCompleted=0]="setupCompleted",e[e.setupIncomplete=1]="setupIncomplete",e[e.teamKeyIsMissing=2]="teamKeyIsMissing",e[e.individualUser=3]="individualUser"}(uN||(uN={})),function(e){e[e.administrator=0]="administrator",e[e.regular=1]="regular",e[e.individualUser=2]="individualUser"}(pN||(pN={}));class dN extends Error{}class hN{constructor(e,t,n=(()=>{})){this.api=e,this.credentialsStorage=t,this.dispatch=n,this.keyRingRepository=new sN(this.api,this.dispatch),this.keyPairRepository=new aN(this.api,this.credentialsStorage,this.dispatch)}rnCryptorForMigration(){const e=this.retrieveRequiredPersonalV3Credentials();return new Tx(e)}async getKeyRingStatus(e,t){if(e===pN.individualUser)return uN.individualUser;const n=await this.keyPairRepository.retrieveKeyPair();if(null==n)return uN.setupIncomplete;try{if(!await this.keyRingRepository.tryToDownloadTeamKey(t,n,e===pN.administrator))return uN.teamKeyIsMissing}catch(e){return uN.setupIncomplete}return uN.setupCompleted}async syncCryptor(e,t,n){const{personalV3:r,personalV4:a,team:i}=await this.retrieveRequiredCredentials(e,t,n);return new cN(new Tx(r),null!=a?new Qx(a):null,null!=i?"owner"===i.type?new Zx(i):new Yx(i):null)}async centrifugeTeamChannelCryptor(e,t){const n=await this.retrieveRequiredTeamCredentials(e,t);return n?"owner"===n.type?new Zx(n):new Yx(n):null}async ensureUserHasAllRequiredCredentials(e,t,n,r){this.ensureUserHasAllRequiredV3Credentials(t);const a=await this.keyPairRepository.getOrCreateKeyPair(t,n);null==r||await this.keyRingRepository.tryToDownloadTeamKey(e,a,r)}async retrieveRequiredCredentials(e,t,n){try{const r=this.retrieveRequiredPersonalV3Credentials(),a=await this.retrieveRequiredPersonalV4Credentials(t);return{personalV3:r,personalV4:a,team:await this.retrieveRequiredTeamCredentials(e,n)}}catch(e){throw e instanceof lN?TS.exception(e.message,e):e instanceof oN&&(TS.info(e.message),this.dispatch(eN())),e}}retrieveRequiredPersonalV3Credentials(){const e=this.credentialsStorage.getPersonalV3Credentials();if(null==e)throw new lN;return e}async retrieveRequiredPersonalV4Credentials(e){if("v5"!==e)return null;const t=await this.keyPairRepository.retrievePersonalKey();if(null==t)throw new oN;return t}async retrieveRequiredTeamCredentials(e,t){if(null==t)return null;const n=await this.keyPairRepository.retrieveKeyPair();if(null==n)throw new dN("Team account doesn't have a key pair (sharing is probably disabled)");return this.keyRingRepository.tryToDownloadTeamKey(e,n,t)}ensureUserHasAllRequiredV3Credentials(e){null==this.credentialsStorage.getPersonalV3Credentials()&&this.credentialsStorage.setPersonalV3Credentials(Cx(e.password,{encryption:e.encryptionSalt,hmac:e.hmacSalt}))}async reencryptPersonalPrivateKey(e,t=!1){const n=await this.keyPairRepository.reencrypt(e,t);if(hx.is(n))throw n;return n}async convertUserAccountToTeamType(e,t){const n=await this.keyPairRepository.retrieveKeyPair();null!=n&&await this.keyRingRepository.tryToDownloadTeamKey(e,n,t)}changePassword(e,t){this.credentialsStorage.setPersonalV3Credentials(Cx(e.password,{encryption:e.encryptionSalt,hmac:e.hmacSalt})),null!=t&&this.keyPairRepository.persist(e,t)}async keyExchangeWithMember(e){const t=await this.keyPairRepository.retrieveKeyPair();null!=t?await this.keyRingRepository.issueKey(t,e):TS.exception("Team Owner doesn't have a key pair for key exchange",new Error)}}ko.crypto.init();class fN{constructor(e){this.cryptoSystem=ko.crypto.systems.FromEncryptionKey(Buffer.from(e,"base64"))}static generateEncryptionKey(){return ko.crypto.utils.generateEncryptionKey().toString("base64")}encrypt(e){if(null==e)return e;const t=this.cryptoSystem.encrypt(Buffer.from(e));return null==t?(this.captureCryptoError("encrypt"),""):t.toString("base64")}decrypt(e){if(null==e)return e;const t=this.cryptoSystem.decrypt(Buffer.from(e,"base64"));return null==t?(this.captureCryptoError("decrypt"),""):t.toString()}captureCryptoError(e){const t=dx(this.cryptoSystem.getLastError());TS.exception(`LocalCryptoSystem.${e} has failed with error: ${t}`,new Error)}}class mN extends SS{constructor(){super(...arguments),this.name="UnsupportedKeyTarError"}}class SN extends SS{constructor(){super(...arguments),this.name="KeychainIsNotAvailable"}}class yN extends SS{constructor(){super(...arguments),this.name="IncorrectCredentials"}}class gN extends SS{constructor(){super(...arguments),this.name="UserCancelledOperation"}}class vN{constructor(e,t){this.rnCryptor=e,this.sodiumCryptor=t}encrypt(e){var t;return TS.exception("MigrationCryptor must not encrypt anything",new Error),null==e?e:null===(t=this.sodiumCryptor.encrypt(e))||void 0===t?void 0:t.toString()}decrypt(e){var t,n;if(null==e)return e;return 4===mx(e)?null===(t=this.sodiumCryptor.decrypt(e))||void 0===t?void 0:t.toString():null===(n=this.rnCryptor.decrypt(e))||void 0===n?void 0:n.toString()}}const _N=async e=>{const t=new Error;try{return await e()}catch(e){const n=function(e){const{message:t}=e;switch(t){case"The name org.freedesktop.secrets was not provided by any .service files":return new SN(t);case"The user name or passphrase you entered is not correct.":return new yN(t);case"User cancelled the operation.":return new gN(t);default:return new mN(t)}}(e);throw n.stack=t.stack,n}};class bN{constructor(e,t){this.service=e,this.impl=t}getPassword(e){return _N(()=>this.impl.getPassword(this.service,e))}setPassword(e,t){return _N(()=>this.impl.setPassword(this.service,e,t))}deletePassword(e){return _N(()=>this.impl.deletePassword(this.service,e))}findCredentials(){return _N(()=>this.impl.findCredentials(this.service))}}const PN="secureData",wN="keytar";var EN=new class{addMigration(e){const t=this.getMigrationsAll();t.includes(e)||(t.push(e),FS.setMigrationLog(t))}getMigrationsAll(){return FS.getMigrationLog()||[]}hasMigration(e){return this.getMigrationsAll().includes(e)}addSecureDataMigration(){this.addMigration(PN)}hasSecureDataMigration(){return this.hasMigration(PN)}addKeytarMigration(){this.addMigration(wN)}hasKeytarMigration(){return this.hasMigration(wN)}};function kN(e,t){if(!e)throw new Error("Invariant failed")}const TN=new Map;function CN(e){TN.set((new e).name,e)}CN(Error),CN(TypeError),CN(RangeError),CN(ReferenceError);class IN extends Error{constructor(){super(...arguments),this.name="UserIsNotMigratedError"}}CN(IN);var AN=IN,ON=n(206),xN=n.n(ON);var NN=new class{constructor(){this.token=this._getDeviceToken(),this.os=xN.a.os.toString(),this.appVersion=u.app.getVersion();try{this.name=c.a.hostname()}catch(e){this.name="Unknown device"}}_getDeviceToken(){const e=localStorage.getItem("deviceToken");if(e)return e;const t=Fi()();return localStorage.setItem("deviceToken",t),t}toJSON(){return{token:this.token,app_version:this.appVersion,os_version:this.os,name:this.name,sub_name:"",mobile_type:"Desktop"}}};function RN(e){return e.account.has_sso}class DN{constructor(e,t,n,r,a,i=(()=>{})){this.api=e,this.gRPCApi=t,this.settings=n,this.credentialsStorage=r,this.syncKeyManager=a,this.dispatch=i}async signUpFree({email:e,password:t,recaptcha:n}){await this.gRPCApi.signUp({email:e,password:t,recaptcha:n,do_not_grant_trial_access:!0})}async trialSignup({email:e,password:t,recaptcha:n}){await this.gRPCApi.signUp({email:e,password:t,recaptcha:n})}async trialSignupViaSso(e,t){await this.gRPCApi.signUp({email:"",password:t,firebase_token:e})}async getSecurityToken(e,t){if("v5"===t)try{return await this.gRPCApi.getSecurityToken(e,this.api.api_token)}catch(e){if(!(e instanceof AN))throw e}return this.api.getSecurityToken({password:wx.generateHash(e)})}async validatePassword(e,t){const{userId:n,password:r}=e;try{await this.getSecurityToken(r,t)}catch(e){if(487!==e.status)throw e}const a=this.credentialsStorage.getSalts();if(!a)throw new Error("Could not find salts for remembered user");const{isOwner:i}=this.settings.getDeprecatedUserTeamStatus(),s=await this.api.getKeyPair();return this.syncKeyManager.ensureUserHasAllRequiredCredentials(n,{password:r,encryptionSalt:a.encryption,hmacSalt:a.hmac},null==s.id?null:s,null!=i?i:null)}async login({username:e,password:t,firebaseToken:n,authyToken:r,accessToken:a}){const i=n?"":e;try{const e=await this.gRPCApi.login({email:i,device:NN.toJSON(),password:t,authy_token:r,firebase_token:n,domain_sso_token:a});return this.updateApiCredentials(e.credentials.token),e}catch(e){if(!(e instanceof AN))throw e}const s=await this.api.login({email:i,firebase_token:n,authy_token:r,password:wx.generateHash(t),device:NN.toJSON()});return this.updateApiCredentials(s.credentials.token),s}async afterLogin({username:e,password:t,rememberPassword:n,isReLogin:r,response:a,authMethod:i}){var s,o;this.credentialsStorage.deleteAllCredentials();const l=a.bulk_account,c=null===(s=l.team)||void 0===s?void 0:s.is_owner;await this.setUserProfile(l),this.dispatch(Fl({userId:l.account.user_id,email:e,plan:l.account.plan_type,isReLogin:r,authMethod:i}));const u=null===(o=l.team)||void 0===o?void 0:o.id;u&&this.dispatch(Ry({userId:e,teamId:u}));const{user_id:p}=l.account;return kN(p),await this.syncKeyManager.ensureUserHasAllRequiredCredentials(p,{password:t,encryptionSalt:a.credentials.salt,hmacSalt:a.credentials.hmac_salt},a.credentials.personal_keyset,null!=c?c:null),n?this.credentialsStorage.setApiKey(a.credentials.token):this.credentialsStorage.deleteAllPersistedCredentials(),await this.settings.setDeprecatedUserStr(e),await this.settings.setDeprecatedUserId(l.account.user_id),await this.settings.setDeprecatedAuthorizedFeatures(sw(l)),await this.settings.setDeprecatedTeamPermissions(QP(l)),await this.settings.setDeprecatedTeamInfo(YP(l)),await this.settings.setDeprecatedUserHasSso(RN(l)),{user:l}}async changeUsername(e,t,n){const r={email:e,security_token:t,otp_token:n};await this.api.changeEmail(r),await this.settings.setDeprecatedUserStr(r.email)}removeUserData(){this.credentialsStorage.deleteAllCredentials(),FS.removeDeprecatedLocalhost()}async logout(){this.removeUserData(),await this.settings.setDeprecatedAuthorizedFeatures({}),await this.settings.setDeprecatedUserStr(null),await this.settings.setDeprecatedUserId(null)}async getDataFromNewPassword(e,t=!1){const n=await this.api.regenerateSpecs(),r=new Ex(n.salt,n.hmac_salt,e),a=await this.syncKeyManager.reencryptPersonalPrivateKey({password:e,encryptionSalt:n.salt,hmacSalt:n.hmac_salt},t);return{...n,new_password:wx.generateHash(e),rnCryptor:r,personal_keyset:a}}async changePassword(e,t){const n=await this.api.changePassword(e);return this.applyNewPassword({newPassword:t,token:n.token,salt:n.salt,hmac_salt:n.hmac_salt})}async changePasswordWithSecurityToken(e,t){const{token:n,cryptospec:r}=await this.api.changePasswordWithSecurityToken(e);return this.applyNewPassword({newPassword:t,token:n,salt:r.salt,hmac_salt:r.hmac_salt})}async recoverAccount(e,t){const n=await this.api.accountRecovery(e);return this.applyNewPassword({newPassword:t,token:n.token,salt:n.salt,hmac_salt:n.hmac_salt},n.personal_keyset),{terminalObjects:n.terminal_objects}}applyNewPassword({newPassword:e,token:t,salt:n,hmac_salt:r},a){this.updateApiCredentials(t);const i="not-remembered"!==this.credentialsStorage.passwordRememberStatus();this.syncKeyManager.changePassword({encryptionSalt:n,hmacSalt:r,password:e},a),i?this.credentialsStorage.setApiKey(t):this.credentialsStorage.deleteAllPersistedCredentials()}async updateApiCredentials(e){null!=e&&this.api.updateApiToken(e)}async updateUserProfile()
var e=await this.api.bulkAccount();
e.account.pro_mode=true;
e.account.need_to_update_subscription=false;
e.account.current_period={
    "from": "2022-01-01T00:00:00",
    "until": "2099-01-01T00:00:00"
};
e.account.plan_type="Premium";
e.account.user_type="Premium";
e.student=null;
e.trial=null;
e.account.authorized_features.show_trial_section=false;
e.account.authorized_features.show_subscription_section=true;
e.account.authorized_features.show_github_account_section=false;
e.account.expired_screen_type=null;
e.personal_subscription={
    "now": new Date().toISOString().slice(0, -5),
    "status": "SUCCESS",
    "platform": "stripe",
    "current_period": {
        "from": "2022-01-01T00:00:00",
        "until": "2099-01-01T00:00:00"
    },
    "revokable": true,
    "refunded": false,
    "cancelable": true,
    "reactivatable": false,
    "currency": "usd",
    "created_at": "2022-01-01T00:00:00",
    "updated_at": new Date().toISOString().slice(0, -5),
    "valid_until": "2099-01-01T00:00:00",
    "auto_renew": true,
    "price": 12.0,
    "verbose_plan_name": "Termius Pro Monthly",
    "plan_type": "SINGLE",
    "is_expired": false
};
e.access_objects=[{
    "period": {
        "start": "2022-01-01T00:00:00",
        "end": "2099-01-01T00:00:00"
    },
    "title": "Pro"
}]
return await this.setUserProfile(e),e}async setUserProfile(e){var t,n;const r=this.settings.getDeprecatedUser(),a=null!==(n=null===(t=e.account.feature_toggles)||void 0===t?void 0:t.encryption_schema)&&void 0!==n?n:"v3";FS.setDeprecatedEncryptionSchema(a),r&&(r.set({pro_mode:e.account.pro_mode}),r.set({two_factor_auth:e.account.two_factor_auth}),r.set({authorizedFeatures:sw(e)}),e.account.team&&null!=e.team?r.set({is_team:!0,is_owner:e.team.is_owner,teamPermissions:QP(e)}):r.set({is_team:!1,is_owner:null,teamPermissions:[]}),await r.save({},{wait:!0,do_not_encrypt:!0})),this.dispatch(wl(e))}}class HN extends Error{constructor(){super(...arguments),this.name="NoUsernameAvailable",this.status=-3}}class FN{constructor(e,t,n,r=1){this.session=new ko.srp.ClientSession,this.session.configure({identifier:e,password:t,salt:n,version:r})}generateVerifier(){return this.session.generateVerifier()}}var GN=n(70),UN=n.n(GN);const LN=(e,t)=>{var n,r;return new Date(null!==(n=e.updated_at)&&void 0!==n?n:"").valueOf()-new Date(null!==(r=t.updated_at)&&void 0!==r?r:"").valueOf()};var jN=n(94),MN=n.n(jN);function BN(e,t){const n=[],r=new Set;KN(qN(e),n,r,t),n.unshift(e);const a=n.reverse();return function(e,t){const n=e.findIndex(e=>e.local_id===t.local_id);return-1===n?e:e.slice(0,n+1)}(MN()(a,"local_id"),e)}function KN(e,t,n,r){if(!e)return;[...e.hosts_chain].reverse().forEach(e=>{const a=r.getHost(e);if(!a)throw new Error("There is a host chain with not existed host");t.push(a),n.has(a.local_id||-1)||function(e,t,n,r){n.add(e.local_id||-1);KN(qN(e),t,n,r)}(a,t,n,r)})}function qN(e){return e.getMergedSshConfig().host_chain}class VN{constructor(e,t){this.persistentAdapter=e,this.repositories=t,this.dbToEntity=e=>{if(!e.command)return this.convertDeprecatedDBHistoryToHistory(e);const{id:t,local_id:n,command:r,timestamp:a,active:i,session_log_data:s}=e,{port:o,title:l,host:c,user_name:u,connection_type:p,error_message:d,session_log_data:h}=r,f=a?So(a).getTime():e.connected_at;return new XS({id:t,local_id:n,port:o,password:this.mergeHistoryPassword(e),address:c,errorMsg:d||"",username:u,label:l,protocol:p,active:i,connected_at:f,updated_at:e.updated_at,created_at:e.created_at,session_log_data:s||h,host:this.mergeHistoryHost(e)})},this.convertDeprecatedDBHistoryToHistory=e=>{var t,n;const r=this.persistentAdapter.findHost(e.host),a=this.persistentAdapter.findSnippet(e.startup_snippet),i=this.persistentAdapter.findSshKey(e.ssh_key);return new XS({...e,host:new Jo({...r,ssh_config:new Vo({...null==r?void 0:r.ssh_config,startup_snippet:a,identity:new No({...null===(n=null===(t=null==r?void 0:r.ssh_config)||void 0===t?void 0:t.identity)||void 0===n?void 0:n.prepareForDuplicate(),ssh_key:i,is_visible:!1})})})})},this.mergeHistoryIdentity=e=>{var t;const n=this.mergeHistoryPassword(e),r=this.mergeHistorySshKey(e);return new No({...e.identity,...Qo(null!=n,{password:n}),...Qo(null!=r,{ssh_key:r}),username:null===(t=e.command)||void 0===t?void 0:t.user_name,is_visible:!!e.identity})},this.mergeHistorySshKey=e=>{var t;if(null!=e.ssh_key){const t=this.persistentAdapter.findSshKey(e.ssh_key);if(null!=t)return t}if(null!=e.identity){const t=this.persistentAdapter.findIdentity(e.identity);if(null!=(null==t?void 0:t.ssh_key))return null==t?void 0:t.ssh_key}if(null!=e.host){const n=this.persistentAdapter.findHost(e.host);if(null!=n){const r="telnet"===(null===(t=e.command)||void 0===t?void 0:t.connection_type)?n.getMergedTelnetConfig():n.getMergedSshConfig(),{ssh_key:a}=r.identity;if(null!=a)return a}}return null},this.mergeHistoryPassword=e=>{var t,n;if(null!=e.identity){const t=this.persistentAdapter.findIdentity(e.identity);if(null!=(null==t?void 0:t.password))return null==t?void 0:t.password}if(null!=e.host){const n=this.persistentAdapter.findHost(e.host);if(null!=n){const r="telnet"===(null===(t=e.command)||void 0===t?void 0:t.connection_type)?n.getMergedTelnetConfig():n.getMergedSshConfig(),{password:a}=r.identity;if(null!=a)return a}}return null===(n=e.command)||void 0===n?void 0:n.password},this.mergeHistoryHost=e=>{const t=this.persistentAdapter.findHost(e.host);if(null!=t){const e=BN(t,{getHost:e=>this.persistentAdapter.findHost(e)});return t.clone({connectionPath:e})}const{command:n}=e;if(null==n)return new Jo;const{port:r,title:a,host:i,charset:s,use_mosh:o,color_scheme:l,env_variables:c,startup_command:u,connection_type:p,mosh_server_command:d,host_os_name:h}=n,f=u?new qo({script:u}):null,m="telnet"===p?{telnet_config:new $o({identity:this.mergeHistoryIdentity(e),port:r,charset:s||null,color_scheme:l})}:{ssh_config:new Vo({identity:this.mergeHistoryIdentity(e),port:r,charset:s||null,use_mosh:o,env_variables:Vo.parseEnvVariables(c),color_scheme:l,startup_snippet:f,mosh_server_command:d})};return new Jo({...e.host,...m,address:i,label:a,os_name:h})},this.getDBHistorySshKeyId=e=>{if(null==e.host)return null;const t=new Jo(e.host),n="telnet"===e.protocol?t.getMergedTelnetConfig():t.getMergedSshConfig();return this.repositories.sshKey.getAsRepositoryID(null==n?void 0:n.identity.ssh_key)},this.getDBHistoryIdentityId=e=>{var t;if(null==e.host)return null;const n=new Jo(e.host),r="telnet"===e.protocol?n.getMergedTelnetConfig():n.getMergedSshConfig();return null==(null===(t=null==r?void 0:r.identity)||void 0===t?void 0:t.is_visible)?null:this.repositories.identity.getAsRepositoryID(r.identity)},this.getHistoryHostConfig=({host:e,protocol:t})=>{if(null==e)return new Vo;return"telnet"===t?new Jo(e).getMergedTelnetConfig():new Jo(e).getMergedSshConfig()},this.getDBHistoryHostId=e=>this.repositories.host.getAsRepositoryID(e.host)}entityToDB(e){var t,n,r,a,i,s,o,l;const{active:c,connected_at:u}=e,p=this.getHistoryHostConfig(e),d=Vo.stringifyEnvVariables(null===(n=null===(t=e.host)||void 0===t?void 0:t.ssh_config)||void 0===n?void 0:n.env_variables),h=Boolean(null===(a=null===(r=e.host)||void 0===r?void 0:r.ssh_config)||void 0===a?void 0:a.use_mosh),f=yo(new Date(u)),m=this.getDBHistoryHostId(e),S=this.getDBHistorySshKeyId(e),y=this.getDBHistoryIdentityId(e);return{id:e.id,local_id:e.local_id,connected_at:u,updated_at:e.updated_at,created_at:e.created_at,timestamp:f,active:c,...Qo(null!=e.session_log_data,{session_log_data:e.session_log_data}),host:m,ssh_key:S,identity:y,command:{connection_type:e.protocol,charset:p.charset||"",error_message:e.errorMsg,host:e.address,port:e.port,startup_command:null===(i=p.startup_snippet)||void 0===i?void 0:i.script,title:e.label,use_mosh:h,user_name:e.username,color_scheme:p.color_scheme||"",env_variables:d,mosh_server_command:h&&(null===(o=null===(s=e.host)||void 0===s?void 0:s.ssh_config)||void 0===o?void 0:o.mosh_server_command)||void 0,version_code:1,host_os_name:(null===(l=e.host)||void 0===l?void 0:l.os_name)||"",...Qo(null!=(null==m?void 0:m.id),{host_id:null==m?void 0:m.id}),...Qo(null!=(null==S?void 0:S.id),{key_id:null==S?void 0:S.id}),...Qo(null!=(null==y?void 0:y.id),{visible_identity_id:null==y?void 0:y.id}),...Qo(null!=e.session_log_data,{session_log_data:e.session_log_data})}}}}var $N=n(127),WN=n.n($N),zN=n(17),JN=n.n(zN),XN=n(207),QN=n.n(XN),YN=n(37),ZN=n.n(YN),eR=n(208),tR=n.n(eR),nR=n(95),rR=n.n(nR),aR=n(71),iR=n.n(aR);const sR="UPDATE_FAILED",oR="CREATE_FAILED",lR="DELETE_FAILED";function cR({host:e,connected_at:t},{host:n,connected_at:r}){return function(e,t){var n;return null!=e&&null!=t?null!==(n=function(e,t){return null!=e.id&&null!=t.id?e.id-t.id:void 0}(e,t))&&void 0!==n?n:function(e,t){return null!=e.local_id&&null!=t.local_id?e.local_id-t.local_id:Number(null!=e.local_id)-Number(null!=t.local_id)}(e,t):Number(null!=e)-Number(null!=t)}(e,n)||function(e,t){return t-e}(t,r)}const uR=["address","username","label","password"];function pR(e){const t={...e};return delete t.local_id,t}function dR(e){var t;return e.session_log_data||(null===(t=e.command)||void 0===t?void 0:t.session_log_data)}function hR({host:e},{host:t}){const n=null==e&&null==t,r=null!=e&&null!=t,a=null!=(null==e?void 0:e.id)&&e.id===(null==t?void 0:t.id),i=null!=(null==e?void 0:e.local_id)&&e.local_id===(null==t?void 0:t.local_id);return n||r&&(a||i)}var fR=class{constructor(){this.cryptor=null,this.encrypt=e=>{kN(this.cryptor);const t=JSON.stringify(e.command),n=this.cryptor.encrypt(t);if("string"!=typeof n||""===n)throw new Error("Can not encrypt DB history item");return{...e,command:n,...Qo(null!=e.session_log_data,{session_log_data:this.modifySessionLogData("encrypt",e.session_log_data)})}},this.decrypt=e=>{const{command:t,...n}=e;if(!t)return{...this.decryptDeprecatedCryptoFields(n),...Qo(null!=n.session_log_data,{session_log_data:this.modifySessionLogData("decrypt",n.session_log_data)})};kN(this.cryptor);const r=this.cryptor.decrypt(t);if("string"!=typeof r||""===r)return TS.info("Failed to decrypt history, the command is "+function(e){if(QN()(e))return"null";if(tR()(e))return"undefined";if(""===e)return"empty-string";if(e instanceof hx)return"CryptoError";return"Unexpected type"}(r)),null;const a=JSON.parse(r);return{...n,command:a,...Qo(null!=n.session_log_data,{session_log_data:this.modifySessionLogData("decrypt",n.session_log_data)})}};const e=new oS("activities",{autoOpen:!1});e.version(.2).stores({activities:"++local_id, &local_id, &id, status, connected_at"}),this.db=e,this.histories=this.db.table("activities")}async init(){await this.db.open(),await this.deactivateAll()}get length(){return this.histories.count()}setCryptor(e){this.cryptor=e}deleteDb(){this.db.delete()}async add(e){const t=this.encrypt(e);return await this.histories.add({...pR(t),status:oR})}async bulkAdd(e){const t=e.map(this.encrypt);return this.histories.bulkAdd(t.map(e=>({...pR(e),status:oR})))}async getAll(){return(await this.histories.where("status").notEqual(lR).filter(e=>!e.active).reverse().sortBy("connected_at",JN.a)).map(this.decrypt).filter(Po)}async getSessionLogsOfActiveHistory(){return(await this.histories.where("status").notEqual(lR).filter(e=>e.active).reverse().sortBy("connected_at",JN.a)).map(e=>{const t=this.decrypt(e);return null!=t?dR(t):null}).filter(Po)}async delete(e){await this.bulkDelete([e])}async bulkDelete(e){const t=e.filter(ZN.a);await this.histories.where("local_id").anyOf(t).filter(e=>e.status===oR).delete(),await this.histories.where("local_id").anyOf(t).filter(e=>"SYNCHRONIZED"===e.status).modify({status:lR})}filterBasedOn(e,t){return this.histories.filter(n=>{var r;return(null===(r=n[e])||void 0===r?void 0:r.local_id)===t.local_id})}async deleteAllBasedOn(e,t){const n=await this.filterBasedOn(e,t).toArray();return this.bulkDelete(n.filter(e=>!e.active).map(e=>e.local_id))}async clearAll(){return this.histories.clear()}async deleteAll(){return await this.histories.where("status").equals(oR).filter(e=>!e.active).delete(),this.histories.where("status").equals("SYNCHRONIZED").modify({status:lR})}async deactivateAll(){return this.histories.filter(e=>e.active).modify({active:!1})}async getOverLimited(e=100){return(await this.histories.orderBy("connected_at").reverse().filter(e=>!e.active&&e.status!==lR).offset(e).toArray(JN.a)).map(this.decrypt).filter(Po)}async update(e){if(null==e.local_id)return Promise.resolve();const t=this.encrypt(e);return this.histories.update(e.local_id,t)}async getUnsynced(){const e=await this.histories.where("status").equals(oR).filter(e=>!e.active).limit(100).toArray(JN.a),t=await this.histories.where("status").equals(lR).toArray(JN.a);return{created:e.map(this.decrypt).filter(Po),deleted:t.map(this.decrypt).filter(Po)}}async gotSynced(e){const{deleted:t,created:n}=e;await this.histories.bulkDelete(t.map(e=>e.local_id).filter(ZN.a)),await this.histories.bulkPut(n.map(e=>({...this.encrypt(e),status:"SYNCHRONIZED"})))}async updateSynced(e){const t=await this.histories.where("status").equals("SYNCHRONIZED").filter(e=>!e.active).toArray(),n=WN()(t,e,"id"),r=WN()(e,t,"id");await this.histories.bulkDelete(n.map(e=>e.local_id).filter(ZN.a));const a=r.map(this.encrypt);return this.histories.bulkAdd(a.map(e=>({...pR(e),status:"SYNCHRONIZED"})))}modifySessionLogData(e,t){if(kN(this.cryptor),null==t)return t;const{name:n,secretKey:r}=t;if(null==r)return t;const a=this.cryptor[e](n),i=this.cryptor[e](r);return"string"!=typeof a||""===a||"string"!=typeof i&&null!=i||""===i?null:{name:a,secretKey:i}}decryptDeprecatedCryptoFields(e){kN(this.cryptor);const{cryptor:t}=this,n=iR()(e,uR),r=vS()(n,e=>t.decrypt(e));return{...e,...r}}async cleanup(e,t){const n=(await this.getAll()).filter(e=>{var n,r;return null==t||(null==(null===(n=e.device)||void 0===n?void 0:n.id)||(null===(r=e.device)||void 0===r?void 0:r.id)===t)}).filter(dR).sort(cR),r=(a=hR,i=e,n.reduce((e,t)=>{const n=e.elements.findIndex(e=>a(e.element,t));return-1===n?e.elements.push({element:t,size:1}):e.elements[n].size<i?e.elements[n].size+=1:e.elementsOutside.push(t),e},{elements:[],elementsOutside:[]}).elementsOutside);var a,i;const s=await this.getSessionLogsOfActiveHistory();if(0===r.length)return{toSkip:s,toRemove:[]};const[o,l]=rR()(r,e=>!e.command);await this.histories.bulkPut(l.map(e=>this.encrypt(function(e){return{...e,session_log_data:null,...Qo(null!=e.command,{command:{...e.command,session_log_data:null}})}}(e))));const c=o.map(e=>e.local_id);return await this.histories.where("local_id").anyOf(c).modify({session_log_data:null}),{toSkip:s,toRemove:r.map(dR)}}};var mR=function(){if(YS.a.mas())return"App Store";if(YS.a.windowsStore())return"Windows Store";if(YS.a.linux()){const e=(p.app||n(10).app).getPath("exe");return e.startsWith("/snap/")?"Snapcraft":e.startsWith("/opt/")?"Debian Package":"Custom Linux Distribution"}return"Website"}();const SR=YS.a.sandbox()||"Snapcraft"===mR;YS.a.linux();class yR{constructor(e,t){this.existingKeysByContent=e,this.persistAdapter=t}async importEntities(e,t,n=[]){var r,a;n.push(await this.importHostEntities(e.hosts,t,e.tags));for(const r of e.groups){const a=new Wo({label:r.label,parent_group:t});await this.persistAdapter.saveGroup(a),await this.importEntities({groups:r.groups,hosts:r.hosts,snippets:[],tags:e.tags,knownHosts:[],keyPaths:[]},a,n)}for(const t of e.snippets)await this.persistAdapter.saveSnippet(new qo(t));for(const t of e.knownHosts)await this.persistAdapter.saveKnownHost(new Cb(t));if(null===(r=e.keyPaths)||void 0===r?void 0:r.length)for(const t of e.keyPaths){const e=_R(t.path),n=await vR(e);if(n){const e=null!==(a=this.existingKeysByContent.get(n.trim()))&&void 0!==a?a:new xo({label:zi.a.basename(t.path),private_key:n});await this.persistAdapter.saveSshKey(e)}}let i=0,s=0,o=0;for(const e of n)s+=e.numberOfKeys,i+=e.numberOfPFRules,o+=e.numberOfIgnoredKeys;return{numberOfKeys:s,numberOfPFRules:i,numberOfIgnoredKeys:o}}async importHostEntities(e,t,n){const{savedHosts:r,keys:a,labelIndexMap:i,numberOfIgnoredKeys:s}=await this.saveHostsAndKeysFromHostEntities(e,t,n);return{numberOfPFRules:await this.saveRulesAndHostChainsFromHostEntities(e,r,i),numberOfKeys:a.size,numberOfIgnoredKeys:s}}async saveHostsAndKeysFromHostEntities(e,t,n){var r,a,i;const s=e=>{var t,n;return(null===(t=e.password)||void 0===t?void 0:t.decryptionAlgorithm)?null:null===(n=e.password)||void 0===n?void 0:n.value},o=new Map;let l=0;const c=[],u=new Map,p=new Map;for(const d of e){let e=new No({...d.identity,password:s(d.identity)});if(e.is_visible&&e.label){const t=p.get(e.label);null!=t?e=t:p.set(e.label,e)}const h=new Jo({label:d.label,address:d.address});h.ssh_config=await this.convertSshConfig(d.sshConfig,e,d.identityFile,o),null!=d.identityFile&&null==(null===(a=null===(r=h.ssh_config)||void 0===r?void 0:r.identity)||void 0===a?void 0:a.ssh_key)&&(l+=1),h.telnet_config=this.convertTelnetConfig(d.telnetConfig,e);for(const e of null!==(i=d.tags)&&void 0!==i?i:[])(null==n?void 0:n.find(t=>e===t))&&h.tags.push(e);h.group=t;try{e.is_visible&&await this.persistAdapter.saveIdentity(e),await this.persistAdapter.saveHost(h),c.push(h),u.set(h.label||h.address,c.length-1)}catch(e){}}return{savedHosts:c,keys:o,numberOfIgnoredKeys:l,labelIndexMap:u}}async saveRulesAndHostChainsFromHostEntities(e,t,n){let r=0;for(const a of e){const{pfRules:e}=a,{hostChain:i}=a,s=n.get(a.label||a.address);if(null!=s){const a=t[s];for(const t of e)try{const e=new Ib({...t,host:a});await this.persistAdapter.savePortForwardingRule(e),r+=1}catch(e){}if(i.length){const e=[];for(const r of i){const a=n.get(r);void 0!==a&&e.push(t[a])}if(a.ssh_config){const t=new jo({hosts_chain:e});try{await this.persistAdapter.saveHostChain(t,a.ssh_config)}catch(e){}}}}}return r}async convertSshConfig(e,t,n,r){if(null==e)return;const a=await gR(n,r,this.existingKeysByContent);a&&(null==a.local_id&&await this.persistAdapter.saveSshKey(a),t.ssh_key=a);const i=new Vo(e);return(t.username||t.ssh_key)&&(i.identity=t),i}convertTelnetConfig(e,t){if(null==e)return;const n=new $o(e);return(t.username||t.password)&&(n.identity=t),n}}const gR=async(e,t,n)=>{var r;if(!e)return;const a=_R(e.path),i=t.get(a);if(i)return i;let{content:s}=e;if(s||(s=await vR(a)),!s)return;const o=null!==(r=n.get(s.trim()))&&void 0!==r?r:new xo({label:zi.a.basename(e.path),private_key:s});return t.set(a,o),o};async function vR(e){if(!SR)try{return(await o.a.readFile(e)).toString("utf-8")}catch(e){return}}function _R(e){return zi.a.normalize(e.replace(/^~/,c.a.homedir()))}const bR={wait:!0};function PR(){return Promise.resolve()}function wR(e){return e()}function ER(e){return Promise.all(e.map(wR))}function kR(e,t){return null==e.id&&null!=t.id}function TR(e){return null!=e?e.attributes:null}function CR(e){return 0!==Object.keys(e).length}function IR(e){return"number"==typeof e?{id:e}:{local_id:Number.parseInt(e.split("/")[1],10)}}function AR(e,t){return!function(e){return"number"==typeof e}(e)&&null!=t.id}async function OR(e){const t=e.map(e=>{const t=TR(e),n=Mo(t.type);return(e=>{const t=/^\d+$/.test(e),n=Number.parseInt(e,10);return t&&n>=0&&n<65536})(t.port)?PR:()=>e.save({port:n},bR)});await ER(t)}const xR={do_not_encrypt:!1},NR={wait:!0};class RR{constructor(e){this.collection=e}get length(){return this.collection.length}countOf(e){return this.collection.filter(t=>e(t.attributes)).length}getModel(e){return e&&this.collection.findById(e)}getAll(e=!1){return TS.withEncryptionLogin("local",this.collection.dbName,()=>this.collection.toJSON({...xR,with_local_updated_at:e}))}get(e){return TS.withEncryptionLogin("local",this.collection.dbName,()=>{const t=this.getModel(e);return t&&t.toJSON(xR)})}last(){const{length:e}=this.collection,t=0!==e?this.collection.at(e-1):null;return TS.withEncryptionLogin("local",this.collection.dbName,()=>t&&t.toJSON(xR))}getAsRepositoryID(e){const t=this.getModel(e);return t?{local_id:t.get("local_id"),id:t.get("id")}:null}async set(e,t){const n=this.getModel(e)||this.collection.add({});if(!n)throw new Error("Cannot get or create the data");TS.withEncryptionLogin("local",this.collection.dbName,()=>n.set(t)),await n.saveAll(),e.local_id=n.get("local_id"),e.id=n.get("id")}async bulkSetUnsyncable(e){const t=new this.collection.model,n=e.map(e=>{const n=t.encryptDataForDatabase(e,this.collection.cryptor);return n.status=oR,n});return this.collection.runTransaction(e=>e.bulkPut(n,{allKeys:!0}))}async delete(e){const t=this.getModel(e);return t?t.destroy(NR):null}async deleteAllInArray(e){return Promise.all(e.map(e=>e.destroy(NR)))}async unsetAllInArray(e,t){return Promise.all(e.map(e=>(e.set(t,null),e.saveAll())))}async clear(){await this.collection.runTransaction(e=>e.clear())}filterBasedOn(e,t){return this.collection.filter(n=>{const r=n.get(e);return r&&r.local_id===t.local_id})}async unsetDependencyBasedOn(e,t){const n=this.filterBasedOn(e,t);return this.unsetAllInArray(n,e)}async deleteAllBasedOn(e,t){const n=this.filterBasedOn(e,t);return this.deleteAllInArray(n)}async deleteAllWithProperty(e,t){const n=this.filterWithProperty(e,t);return this.deleteAllInArray(n)}filterWithProperty(e,t){return this.collection.filter(n=>{const r=n.get(e);return null!=r&&r===t})}async deleteMany(e){return Promise.all(e.map(e=>this.delete(e)))}}class DR extends RR{async save(e){await this.set(e,{certificate:e.certificate,label:e.label,ssh_key:e.ssh_key_id,is_shared:e.is_shared})}}var HR=n(209),FR=n.n(HR),GR=n(210),UR=n.n(GR);class LR extends RR{findByGroup(e){var t,n;return null===(n=null===(t=this.collection.find(t=>{var n;return(null===(n=t.get("group"))||void 0===n?void 0:n.local_id)===e}))||void 0===t?void 0:t.toJSON)||void 0===n?void 0:n.call(t,{do_not_encrypt:!1})}}class jR{constructor(e,t){this.lookup=t,this.repositories={aws:new LR(e.aws),digitalOcean:new LR(e.digitalOcean),azure:new LR(e.azure)}}findByGroup(e){var t,n,r;return null!==(r=null!==(n=null!==(t=this.getAwsConfigByGroup(e))&&void 0!==t?t:this.getDigitalOceanConfigByGroup(e))&&void 0!==n?n:this.getAzureConfigByGroup(e))&&void 0!==r?r:null}async saveForGroup(e,t){e instanceof $s&&await this.setAwsConfig(e,t),e instanceof zs&&await this.setDigitalOceanConfig(e,t),e instanceof Ws&&await this.setAzureConfig(e,t)}async deleteByGroup(e){const t=e.cloud_config;"aws"===(null==t?void 0:t.cloudType)&&await this.deleteAwsConfig(t),"DigitalOcean"===(null==t?void 0:t.cloudType)&&await this.deleteDigitalOceanConfig(t),"azure"===(null==t?void 0:t.cloudType)&&await this.deleteAzureConfig(t)}async cleanAllForGroup(e){await this.repositories.aws.deleteAllBasedOn("group",e),await this.repositories.digitalOcean.deleteAllBasedOn("group",e),await this.repositories.azure.deleteAllBasedOn("group",e)}async removeIfReplaced(e,t){var n,r;e&&(r=t,(n=e).cloudType!==(null==r?void 0:r.cloudType)||function(e,t){return!t||t.local_id!==e.local_id}(n,r))&&await this.deleteCloudConfig(e)}get length(){return UR()(FR()(this.repositories,e=>e.length))}async deleteCloudConfig(e){e instanceof $s&&await this.deleteAwsConfig(e),e instanceof zs&&await this.deleteDigitalOceanConfig(e),e instanceof Ws&&await this.deleteAzureConfig(e)}getAwsConfigByGroup(e){const t=this.repositories.aws.findByGroup(e.local_id);return(null==t?void 0:t.local_id)?new $s({...t,group:e}):null}async setAwsConfig(e,t){return this.repositories.aws.set(e,{group:this.lookup.getGroupRepositoryID(t),accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,region:e.region,is_shared:e.is_shared,ipAddressType:e.ipAddressType,serviceType:e.serviceType})}deleteAwsConfig(e){return this.repositories.aws.delete(e)}getDigitalOceanConfigByGroup(e){const t=this.repositories.digitalOcean.findByGroup(e.local_id);return(null==t?void 0:t.local_id)?new zs({...t,group:e}):null}async setDigitalOceanConfig(e,t){return this.repositories.digitalOcean.set(e,{group:this.lookup.getGroupRepositoryID(t),token:e.token,is_shared:e.is_shared})}deleteDigitalOceanConfig(e){return this.repositories.digitalOcean.delete(e)}getAzureConfigByGroup(e){const t=this.repositories.azure.findByGroup(e.local_id);return(null==t?void 0:t.local_id)?new Ws({...t,group:e}):null}async setAzureConfig(e,t){return this.repositories.azure.set(e,{group:this.lookup.getGroupRepositoryID(t),tenant_id:e.tenant_id,client_id:e.client_id,client_secret:e.client_secret,is_shared:e.is_shared})}deleteAzureConfig(e){return this.repositories.azure.delete(e)}}class MR extends RR{constructor(e,t){super(t),this.configKey=e}findByConfig(e){const t=null==e?void 0:e.local_id;if(null==t)return;const n=this.collection.find(e=>e.get(this.configKey)&&e.get(this.configKey).local_id===t);return null==n?void 0:n.toJSON()}async deleteByConfig(e){await this.deleteAllBasedOn(this.configKey,e)}async deleteByIdentity(e){await this.deleteAllBasedOn("identity",e)}}class BR extends RR{constructor(e,t){super(e),this.repositories=t}async save(e){await this.set(e,{label:e.label,is_shared:e.is_shared,parent_group:this.getAsRepositoryID(e.parent_group),ssh_config:this.repositories.sshConfig.getAsRepositoryID(e.ssh_config),telnet_config:this.repositories.telnetConfig.getAsRepositoryID(e.telnet_config),sharing_mode:e.sharing_mode})}}class KR extends RR{constructor(e,t){super(e),this.repositories=t}async save(e){await this.set(e,{address:e.address,backspace:e.backspace,group:this.repositories.group.getAsRepositoryID(e.group),icon:e.icon,interaction_date:e.interaction_date,label:e.label,os_name:e.os_name,ssh_config:this.repositories.sshConfig.getAsRepositoryID(e.ssh_config),telnet_config:this.repositories.telnetConfig.getAsRepositoryID(e.telnet_config),is_shared:e.is_shared,ip_version:e.ip_version,cloud_instance_id:e.cloud_instance_id,cloud_instance_type:e.cloud_instance_type})}}class qR extends RR{constructor(e,t){super(e),this.repositories=t}async save(e){await this.set(e,{host:this.repositories.host.getAsRepositoryID(e.host),latest_used_identity:this.repositories.identity.getAsRepositoryID(e.latest_used_identity),latest_used_protocol:e.latest_used_protocol})}}class VR extends RR{getBySshConfig(e){const t=this.collection.findWhere({ssh_config:e});return t?t.toJSON(xR):null}deleteHostFromChains(e){this.collection.forEach(t=>{const n=t.get("hosts_chain")||[],r=n.filter(t=>t!==e);r.length!==n.length&&t.save({hosts_chain:r},{wait:!0,do_not_encrypt:!0})})}async saveChain(e,t){const n=e.hosts_chain.map($R);if(null==t.local_id)throw new SS("Cannot save without stored ssh config");const r=t.id||"sshconfig_set/"+t.local_id;return this.set(e,{hosts_chain:n,is_shared:!!e.is_shared,ssh_config:r})}}function $R(e){if(e.id)return e.id;if(null==e.local_id)throw new Error("Cannot add a host without local_id to hostchain");return"host_set/"+e.local_id}class WR extends RR{constructor(e,t){super(e),this.repositories=t}async save(e){await this.set(e,{is_visible:e.is_visible,label:e.label,password:e.password||"",ssh_key:this.repositories.sshKey.getAsRepositoryID(e.ssh_key),hardware_key:this.repositories.hardwareKey.getAsRepositoryID(e.hardware_key),username:e.username||"",is_shared:e.is_shared})}}class zR{constructor(){const e=new oS("inAppMessages",{autoOpen:!1});e.version(1).stores({inAppMessages:"++local_id, &local_id, &id, created_at"}),this.db=e,this.inAppMessages=e.table("inAppMessages")}async init(){await this.db.open()}async set(e){const t=await this.inAppMessages.put(e);return{...e,local_id:t}}async getAll(){return this.inAppMessages.orderBy("created_at").reverse().toArray()}async delete(e){await this.inAppMessages.bulkDelete(e)}deleteAll(){return this.inAppMessages.clear()}}class JR extends RR{async save(e){await this.set(e,{marker:e.marker,hostnames:e.hostnames,key:e.key,comment:e.comment})}}class XR{constructor(){const e=new oS("personalDeviceKeyPair",{autoOpen:!1});e.version(1).stores({personalDeviceKeyPair:"++local_id, &local_id"}),this.db=e,this.personalDeviceKeyPair=e.table("personalDeviceKeyPair")}async init(){await this.db.open()}async set(e){const t=await this.personalDeviceKeyPair.put(e);return{...e,local_id:t}}async getAll(){return this.personalDeviceKeyPair.toArray()}async delete(e){await this.personalDeviceKeyPair.bulkDelete(e)}deleteAll(){return this.personalDeviceKeyPair.clear()}}class QR extends RR{constructor(e,t){super(e),this.repositories=t}async save(e){await this.set(e,{bound_address:e.bound_address,host:this.repositories.host.getAsRepositoryID(e.host),hostname:e.hostname,label:e.label,local_port:e.local_port,pf_type:e.pf_type,remote_port:e.remote_port})}}class YR extends RR{constructor(e,t){super(e),this.repositories=t}async save(e){await this.set(e,{auto_close:e.auto_close,label:e.label,script:e.script,is_shared:e.is_shared,aianalyticsID:e.aianalyticsID,package:this.repositories.snippetPackage.getAsRepositoryID(e.package)})}}class ZR extends RR{constructor(e,t){super(e),this.repositories=t}async save(e){await this.set(e,{agent_forwarding:e.agent_forwarding,charset:e.charset,color_scheme:e.color_scheme,cursor_blink:e.cursor_blink,env_variables:Vo.stringifyEnvVariables(e.env_variables),font_size:e.font_size,identity:this.repositories.identity.getAsRepositoryID(e.identity),is_forward_ports:e.is_forward_ports,keep_alive_packages:e.keep_alive_packages,mosh_server_command:e.mosh_server_command,port:e.port,proxycommand:this.repositories.proxy.getAsRepositoryID(e.proxy),startup_snippet:this.repositories.snippet.getAsRepositoryID(e.startup_snippet),strict_host_key_check:e.strict_host_key_check,timeout:e.timeout,use_mosh:e.use_mosh,use_ssh_key:e.use_ssh_key,is_shared:e.is_shared})}}class eD extends RR{constructor(e,t){super(e),this.repositories=t}async save(e){return this.set(e,{hostname:e.hostname,identity:this.repositories.identity.getAsRepositoryID(e.identity),port:e.port,type:e.type,is_shared:e.is_shared})}}class tD extends RR{async save(e){await this.set(e,{label:e.label,passphrase:e.passphrase,private_key:e.private_key,public_key:e.public_key,is_shared:e.is_shared})}}var nD=n(211),rD=n.n(nD),aD=n(212),iD=n.n(aD);class sD extends RR{getUniqueTags(e){const t=this.getAll(!0).map(t=>({label:t.label,canEdit:e(t)})),n=rD()(t,["label","canEdit"],["asc","desc"]);return iD()(n,"label")}async upsertMatchingTag(e,t){const n=this.getAll().filter(t=>t.label===e.previousValue).filter(t);0!==n.length?await Promise.all(n.map(t=>this.set(t,{label:e.newValue}))):await this.set({},{label:e.newValue})}async deleteMatchingTag(e,t){const n=this.getAll().filter(t=>t.label===e).filter(t);await Promise.all(n.map(e=>this.delete(e)))}async getOrCreateTag(e,t){const n=this.findUniqueTag(e,t);if(null!=n)return{local_id:n.get("local_id"),id:n.get("id")};const r={};return await this.set(r,{label:e,is_shared:t.is_shared}),r}findAllTag(e){return this.collection.filter(t=>t.get("label")===e)}findUniqueTag(e,t){return this.getUniqCollection(t).find(t=>t.get("label")===e)}getUniqCollection(e){return this.collection.filter(t=>e.is_shared===t.get("is_shared"))}}var oD=n(213),lD=n.n(oD);class cD extends RR{constructor(e,t){super(e),this.repositories=t,this.collection=e}async getOrCreateRelation(e,t){const{local_id:n}=t;kN(null!=n);let r=this.collection.findByHostAndTag(e.local_id,t.local_id);null==r&&(r=this.collection.add({host:{local_id:e.local_id,id:e.id},tag:{local_id:t.local_id,id:t.id},is_shared:e.is_shared}),await r.saveAll())}async saveForHost(e){const t=this.getRemovedTagsToRemoveFromHost(e);await this.removeTagsForHost(e,t);for(const t of Xs()(e.tags)){const n=await this.repositories.tag.getOrCreateTag(t,e);await this.getOrCreateRelation(e,n)}}getTagsByHost(e){const t=(e.local_id?this.collection.findByHost(e.local_id):[]).filter(e=>e.get("tag")).map(e=>{const t=e.get("tag"),n={local_id:t.local_id,id:t.id},r=n?this.repositories.tag.get(n):void 0;return null==r?void 0:r.label}).filter(Po);return Xs()(t)}clearTagsOfHost(e,t){return Promise.all(e.map(async e=>{const n=this.collection.findByHostAndTag(t.local_id,e.get("local_id"));n&&await n.destroy()}))}async cleanTags(e,t){const n=this.collection.findByHost(e.local_id).filter(e=>t({isShared:e.get("is_shared")}));await Promise.all(n.map(e=>e.destroy()))}getRemovedTagsToRemoveFromHost(e){const t=this.getTagsByHost(e),{tags:n}=e;return lD()(t,n)}async removeTagsForHost(e,t){return await this.cleanTags(e,t=>t.isShared!==e.is_shared),Promise.all(t.map(t=>{const n=this.repositories.tag.findAllTag(t);return this.clearTagsOfHost(n,e)}))}}class uD{constructor(){this.encrypt=e=>{const t=this.cryptor.encrypt(e.email);if("string"!=typeof t)throw new Error("Can not encrypt DB team invite item");return{...e,email:t}},this.decrypt=e=>{const t=this.cryptor.decrypt(e.email);if("string"!=typeof t)throw new Error("Can not decrypt DB team invite item");return{...e,email:t}};const e=new oS("teamInvites",{autoOpen:!1});e.version(1).stores({teamInvites:"id"}),this.db=e,this.teamInvites=e.table("teamInvites")}async init(){await this.db.open()}setCryptor(e){this.cryptor=e}async set(e){const t=await this.teamInvites.put(this.encrypt(e));return{...e,local_id:t}}async getAll(){return(await this.teamInvites.toArray()).map(this.decrypt)}async delete(e){await this.teamInvites.bulkDelete(e)}deleteAll(){return this.teamInvites.clear()}}class pD{constructor(){const e=new oS("teamMemberAvatars",{autoOpen:!1});e.version(1).stores({teamMemberAvatars:"id"}),this.db=e,this.teamMemberAvatars=e.table("teamMemberAvatars")}async init(){await this.db.open()}async set(e){const t=await this.teamMemberAvatars.put(e);return{...e,local_id:t}}async getAll(){return this.teamMemberAvatars.toArray()}async delete(e){await this.teamMemberAvatars.bulkDelete(e)}deleteAll(){return this.teamMemberAvatars.clear()}}class dD{constructor(){this.encrypt=e=>{const t=this.cryptor.encrypt(e.email);if("string"!=typeof t)throw new Error("Can not encrypt DB team member item");return{...e,email:t}},this.decrypt=e=>{const t=this.cryptor.decrypt(e.email);if("string"!=typeof t)throw new Error("Can not decrypt DB team member item");return{...e,email:t}};const e=new oS("teamMembers",{autoOpen:!1});e.version(1).stores({teamMembers:"id"}),this.db=e,this.teamMembers=e.table("teamMembers")}async init(){await this.db.open()}setCryptor(e){this.cryptor=e}async set(e){const t=await this.teamMembers.put(this.encrypt(e));return{...e,local_id:t}}async getAll(){return(await this.teamMembers.toArray()).map(this.decrypt)}async delete(e){await this.teamMembers.bulkDelete(e)}deleteAll(){return this.teamMembers.clear()}}class hD extends RR{constructor(e,t){super(e),this.repositories=t}async save(e){await this.set(e,{charset:e.charset,color_scheme:e.color_scheme,cursor_blink:e.cursor_blink,font_size:e.font_size,identity:this.repositories.identity.getAsRepositoryID(e.identity),keep_alive_packages:e.keep_alive_packages,port:e.port,startup_snippet:this.repositories.snippet.getAsRepositoryID(e.startup_snippet),timeout:e.timeout,is_shared:e.is_shared})}}var fD=n(214),mD=n.n(fD);class SD{async cleanSessionLogs(){}async validateSessionLogFileExists(){}}class yD{constructor(e){this.logsDirectory=e}async getFilesOverLimit(e=100){const t=await o.a.readdir(this.logsDirectory);if(t.length<e)return[];const n=await Promise.all(t.map(async e=>({name:e,time:(await o.a.stat(Object(Wi.join)(this.logsDirectory,e))).mtime.getTime()})));return mD()(n,e=>e.time).reverse().slice(e).map(e=>e.name)}async cleanSessionLogs({toRemove:e,toSkip:t},n=100){try{const r=await o.a.readdir(this.logsDirectory);await Promise.allSettled(r.filter(t=>e.has(t)).map(e=>o.a.unlink(Object(Wi.join)(this.logsDirectory,e))));const a=await this.getFilesOverLimit(n);await Promise.allSettled(a.filter(e=>!t.has(e)).map(e=>o.a.unlink(Object(Wi.join)(this.logsDirectory,e))))}catch(e){TS.exception("Reading session logs directory has failed",e)}}async validateSessionLogFileExists(e){await o.a.access(Object(Wi.join)(this.logsDirectory,e))}}async function gD(e){const t=[];for(const n of e){const e=await n();e&&t.push(e)}return t}var vD=n(30),_D=n.n(vD),bD=n(38),PD=n.n(bD),wD=n(51),ED=n.n(wD),kD=n(124),TD=n.n(kD),CD=n(122),ID=n.n(CD);class AD extends SS{constructor(){super(...arguments),this.name="IndexedDBError"}}
/**
 * @license
 * Backbone IndexedDB Adapter
 * Copyright (c) 2013-2014 Vincent Mac
 * Copyright (c) 2020 Termius Corporation.
 *
 * Available under MIT license <https://raw.github.com/vincentmac/backbone-idb/master/LICENSE>
 */function OD(){}class xD{constructor({storeName:e,dbVersion:t,indexes:n}){this.withStatus=n.split(",").includes("status"),this.db=new oS(e),this.db.version(t/10).stores({[e]:n}),this.store=this.db.table(e),this.keyPath="local_id"}async open(){try{return this.db.open()}catch(e){throw function(e){const t=new AD(e.message);return t.name=e.name,t.stack=e.stack,t}(function(e){var t;return e instanceof Error?e:null!==(t=e.target.error)&&void 0!==t?t:new Error("unknown indexeddb error")}(e))}}async create(e){e.set("status",oR);const t=e.attributes,n=await this.store.put(t);return t[this.keyPath]=n,t}async update(e){e.hasRemoteId()&&e.set("status",sR);const t=e.attributes;return this.store.put(t)}async read(e){return this.store.get(e.id)}async getAll(){return this.withStatus?this.store.filter(({status:e})=>e!==lR).toArray():this.getAllPersisted()}async getAllPersisted(){return this.store.toArray()}async destroy(e){const t=e.attributes;return e.hasRemoteId()?(e.set("status",lR),this.store.put(t)):this.hardDestroy(e)}async hardDestroy(e){const t=e.attributes;return this.store.delete(t[e.idAttribute])}async saveAll(e){return this.store.bulkPut(e)}async getWithStatus(e){return this.store.filter(t=>t.status===e).toArray()}async removeBatch(e){return this.store.bulkDelete(e)}async clear(){return this.store.clear()}}_D.a.sync=async function(e,t,n){const r=n.success||OD,a=n.success||OD;try{const n=await async function(e,t){var n;const r=null!==(n=t.indexedDB)&&void 0!==n?n:t.collection.indexedDB;switch(e){case"read":return void 0!==t.id?r.read(t):r.getAll();case"create":case"update":return t.id?r.update(t):r.create(t);case"delete":return t.isHardDestroyed?r.hardDestroy(t):t.id?r.destroy(t):void 0;default:return}}(e,t);return r(n),n}catch(e){throw a(e),e}};class ND{constructor(e){this.data=e}}class RD extends _D.a.Collection{constructor(){super(...arguments),this._cryptor=null}get useInResetPassword(){return!0}get useInDeactivateTeam(){return!0}get dbVersion(){return 1}get cryptor(){return kN(this._cryptor),this._cryptor}save(){return 0===this.length?Promise.resolve():this.indexedDB.saveAll(this.toJSON())}async removeUnsyncedDeleteFailedData(){await this._removeDeleteFailedData(e=>!e.hasOwnProperty("id"))}async removeDeleteFailedData(e){await this._removeDeleteFailedData(t=>e.includes(t.id))}async _removeDeleteFailedData(e){const t=await this._getDelayedData(lR);await this.removeGarbage(e?t.filter(e):t)}async getDelayedData(){const e=this._getDelayedData(lR),t=this._getDelayedData(oR),n=this._getDelayedData(sR),r=await Promise.all([e,t,n]);return TD()(r)}_getDelayedData(e){return this.indexedDB.getWithStatus(e)}get(e){return this._byId={},PD()(this.models,e=>{this._byId[e.cid]=e,e.id&&(this._byId[e.id]=e)}),super.get(e)}async initializeStorage(){this.indexedDB=new xD({storeName:this.dbName,dbVersion:this.dbVersion,indexes:"++local_id,&local_id,&id,status"}),await this.indexedDB.open()}reCrypt(e){const t=TS.withEncryptionLogin("migration",this.dbName,()=>this.map(t=>t.getReEncrypted(e,!0)));return this.set(t,{merge:!0,do_not_encrypt:!0})}setCryptor(e,t=!1){this._cryptor&&!0===t&&this.reCrypt(e),this._cryptor=e}markAsUpdateFailed(e){return this.each(t=>{const n=t.get("status"),r=t.get("is_shared");"SYNCHRONIZED"!==n||r&&!e||t.set("status",sR)}),this.save()}prepareForSync(e,t){return e}async saveSyncData(e,t,n,r){const{cryptor:a}=this;if(!a)return;const i=await this.indexedDB.getAllPersisted();PD()(e.data,e=>{var t;const s=null!==(t=ED()(i,{id:e.id}))&&void 0!==t?t:ED()(i,{local_id:e.local_id});let o=null!=s?new this.model(s,{collection:this}):null;const l=(new this.model).encryptDataForDatabase(e,a);l.status="SYNCHRONIZED",delete l.local_id;(o?this.shouldSyncModel(o,{syncKeysAndIdentities:r}):this.shouldSyncRaw(l,{syncKeysAndIdentities:r}))&&(null!=o&&o.set(l,{do_not_encrypt:!0}),o=this.add(null!=o?o:l,{do_not_encrypt:!0,merge:!0}),o.updateRelationsData(l,n))}),await this.removeExistingLocalDataGottenInDeleteSets(t),await this.removeDeleteFailedData(t),await this.save(),await this.fetch({do_not_encrypt:!0})}collectGarbage(){return Promise.resolve()}async removeExistingLocalDataGottenInDeleteSets(e=[]){const t=this.filter(t=>{const n=t.get(t.remoteIdAttribute);return e.includes(n)});this.remove(t);const n=t.map(e=>e.toJSON());await this.removeGarbage(n)}removeGarbage(e){if(0===e.length)return Promise.resolve();const t=this.indexedDB.keyPath,n=e.map(e=>e[t]).filter(Boolean);return this.indexedDB.removeBatch(n)}findByLocalId(e){return this.findWhere({local_id:e})}findByRemoteId(e){return this.findWhere({id:e})}findById(e){if(!e)return null;const{id:t,local_id:n}=e;if(null!=t){const e=this.findByRemoteId(t);if(null!=e)return e}if(null!=n){const e=this.findByLocalId(n);if(null!=e)return e}return null}hasUnsyncedEntities(){return this.models.some(e=>"SYNCHRONIZED"!==e.get("status"))}async clearData(){await this.indexedDB.clear(),this.reset()}async buildPushData(e,t){const n=await this.getDelayedData(),r=[],a=[],i=[];return TS.withEncryptionLogin("sync",this.dbName,()=>{n.forEach(n=>{const s=this.findById(n);if(s&&this.shouldSyncModel(s,e)&&s.isShouldBeInPostBulkRequestData()){const n=s.buildPushData(e,t);return hx.is(n)?void i.push(n):void r.push(n)}!s&&this.shouldSyncRaw(n,e)&&a.push(n.id)})}),0!==i.length?new fx(i):{updatedEntities:r,deletedEntities:a}}async unshareNewEntities(){return this.modifySome(e=>e.is_shared&&e.status===oR,{is_shared:!1})}async unshareEntities(){return this.modifySome(e=>e.is_shared,{is_shared:!1})}shouldSyncRaw(e,t){return!0}shouldSyncModel(e,t){return this.shouldSyncRaw(e.toJSON(),t)}async modifySome(e,t){return this.some(t=>e(t.toJSON()))?this.runTransaction(n=>n.filter(e).modify(t)):0}async runTransaction(e){const{db:t}=this.indexedDB,n=await t.transaction("rw",t.table(this.dbName),t=>e(t.table(this.dbName)));return await this.fetch({reset:!0,do_not_encrypt:!0}),n}}var DD=RD;class HD extends RD{get nameOfSetInSync(){throw new Error(`Unsyncable collection ${this.dbName} is used in bulk`)}get useInResetPassword(){return!1}get useInDeactivateTeam(){return!1}async resaveCollection(){await this.save(),await this.fetch({do_not_encrypt:!0})}shouldSyncRaw(e,t){return!1}}const FD={wait:!0},GD=e=>e.destroy(FD),UD=e=>e.get("status")!==lR,LD=(e,t,n)=>{const r=e.get(t);if(null==(null==r?void 0:r.local_id))return!1;const a=n.get(r.local_id);return null!=a&&a.get("status")!==lR},jD="group_set",MD="host_set",BD="pfrule_set",KD="package_set",qD="portknocking_set",VD="snippet_set",$D="sshconfig_set",WD="telnetconfig_set",zD="identity_set",JD="sshkeycrypt_set",XD="taghost_set",QD="tag_set",YD="knownhost_set",ZD="hostchain_set",eH="hostsnippet_set",tH="proxycommand_set",nH="sshconfigidentity_set",rH="sharedsshconfigidentity_set",aH="telnetconfigidentity_set",iH="sharedtelnetconfigidentity_set",sH="multikey_set",oH="sshcertificate_set";var lH;!function(e){e[e.apiV2=0]="apiV2",e[e.apiV3=1]="apiV3",e[e.sharing=2]="sharing",e[e.multiKey=3]="multiKey",e[e.sshCertificates=4]="sshCertificates",e[e.last=4]="last"}(lH||(lH={}));class cH{constructor(e,t){this.repositories=t;const n=[e.known_hosts,e.ssh_keys,e.identities,e.snippets_packages,e.snippets,e.proxies,e.ssh_configs,e.telnet_configs,e.groups,e.hosts,e.tags,e.taghosts,e.host_snippets,e.pf_rules,e.port_knockings,e.host_chains,e.ssh_config_identities,e.ssh_config_identities_shared,e.telnet_config_identities,e.telnet_config_identities_shared,e.multi_keys,e.ssh_certificates];this.collections={all:e,syncable:n}}get managedCollections(){return this.collections.syncable}hasSyncableEntities(){return this.collections.syncable.some(e=>0!==e.length)}hasDataToSync(){return this.collections.syncable.some(e=>e.hasUnsyncedEntities())}async clear(){!async function(e){await Promise.all(e.map(e=>e.clearData()))}(this.collections.syncable)}async generateSyncRequest(e){const t={delete_sets:{}},n=[];if(await Promise.all(this.collections.syncable.map(async r=>{const a=await r.buildPushData(e,this.collections.all);if(hx.is(a))return void n.push(a);const{updatedEntities:i,deletedEntities:s}=a;t[r.nameOfSetInSync]=i,t.delete_sets[r.nameOfSetInSync]=s})),0!==n.length){const e=new fx(n);throw TS.exception("sync encrypt failed",e),e}for(const e of this.collections.syncable)0===(t[e.nameOfSetInSync]||[]).length&&delete t[e.nameOfSetInSync],0===(t.delete_sets[e.nameOfSetInSync]||[]).length&&delete t.delete_sets[e.nameOfSetInSync];return 1===Object.keys(t).length&&0===Object.keys(t.delete_sets).length?null:t}async saveSyncResponse(e,t,n){if(null==e)return null;const r=this.collections.syncable.filter(t=>{var n;return null!==(n=e[t.nameOfSetInSync])&&void 0!==n?n:[]}),a=r.map(r=>async()=>{const a=r.nameOfSetInSync,i=await TS.withEncryptionLogin("sync.decrypt",r.dbName,()=>{var i;return(async(e,t,n,r)=>{const a=t.map(t=>{const a=e.prepareForSync(t,r);return(new e.model).decryptDataFromBackend(a,n)}),i=a.filter(hx.is);return 0!==i.length?new fx(i):new ND(a)})(r,null!==(i=null==e?void 0:e[a])&&void 0!==i?i:[],t,n)});return[a,i]}),i=await gD(a);if(!uH(i)){const e=pH(i);throw TS.exception("sync decrypt failed",e),e}const s=new Map(i),o=r.map(t=>{var r,a;const i=t.nameOfSetInSync,o=(null!==(a=null!==(r=null==e?void 0:e.delete_sets)&&void 0!==r?r:null==e?void 0:e.deleted_sets)&&void 0!==a?a:{})[i],l=s.get(i);return kN(null!=l),()=>TS.withEncryptionLogin("sync.save",t.dbName,()=>t.saveSyncData(l,o||[],this.collections.all,n))});return gD([...this.getRemoveRelationsCallbacks(e),...o])}markAllAsUpdateFailed(e){return this.markCollectionsAsUpdateFailed(this.collections.syncable,e)}markSyncKeyEntitiesAsUpdateFailed(e){const t=this.collections.all;return this.markCollectionsAsUpdateFailed([t.telnet_configs,t.ssh_configs,t.proxies,t.identities,t.ssh_keys],e)}async fixDataByUserPermissions(e){if(e!==Ix.no)return;const t=this.collections.all;await t.groups.moveNewSharedEntitiesToRoot(),await t.hosts.moveNewSharedEntitiesToRoot(t.groups),await Promise.all(Object.values(t).map(e=>e.unshareNewEntities()))}getReEncryptedData(e,t){const n=[];return this.collections.syncable.filter(e=>e.useInResetPassword).forEach(r=>{TS.withEncryptionLogin("change password",r.dbName,()=>{r.forEach(a=>{!a.get("is_shared")&&r.shouldSyncModel(a,{syncKeysAndIdentities:t})&&n.push(a.getForChangePassword(e))})})}),n}async removeNotSyncedDeleteFailed(){const e=this.collections.all;try{const t=[];for(const n of Object.keys(e))t.push(e[n].removeUnsyncedDeleteFailedData());await Promise.all(t)}catch(e){TS.exception("Cannot remove unsynced deleted data",e)}}generateDataForTeamDowngrade(e,t,n,r,a,i="decrypt"){const s=[],o={syncKeysAndIdentities:a,cryptor:t,personalEncryptionSchema:n,teamEncryptionSchema:r,canEditSharedEntities:Ix.yes};for(const n of Object.values(this.collections.all)){const r=new n.model,l=n.useInDeactivateTeam?n.nameOfSetInSync:null,c="multikey_set"!==l&&null!=l?e[l]:null,u=(null!=c?c:[]).map(e=>{let s;if("decrypt"===i)s=r.decryptDataFromBackend({...e,is_shared:!0},t);else{const t=r.encryptDataForBackend({...e,is_shared:!1},o);s=n.prepareForSync(t,a)}if(s instanceof hx)return s;if("encrypt"===i)for(const[t,n]of Object.entries(e)){t in r.relationsInBulk&&dH(n)&&(s[t]=n.id)}return s}),p=u.filter(hx.is);null!=l&&s.push([l,0===p.length?u:new fx(p)])}if(!uH(s)){const e=pH(s);throw TS.exception("sync decrypt failed",e),e}return Object.fromEntries(s)}markCollectionsAsUpdateFailed(e,t){return Promise.all(e.map(e=>e.markAsUpdateFailed(t)))}getRemoveRelationsCallbacks(e){if(null==e)return[];const{hosts:t,identities:n,groups:r}=this.collections.all,a=e.delete_sets||e.deleted_sets||{};return[...this.removeDeletedHostsRelations(a[t.nameOfSetInSync]),...this.removeDeletedIdentitiesRelations(a[n.nameOfSetInSync]),...this.removeDeletedGroupsRelations(a[r.nameOfSetInSync])]}removeDeletedHostsRelations(e=[]){return e.map(e=>async()=>{const t=this.repositories.host.get({local_id:null,id:e});t&&await this.repositories.hostLatestActivity.deleteAllBasedOn("host",t)})}removeDeletedGroupsRelations(e=[]){return e.map(e=>async()=>{const t=this.repositories.group.get({local_id:null,id:e});t&&await this.repositories.cloudConfig.cleanAllForGroup(t)})}removeDeletedIdentitiesRelations(e=[]){return e.map(e=>async()=>{const t=this.repositories.identity.get({local_id:null,id:e});null!=t&&await this.repositories.hostLatestActivity.unsetDependencyBasedOn("latest_used_identity",t)})}}const uH=e=>!e.some(([e,t])=>hx.is(t)),pH=e=>{const t=e.map(([e,t])=>t).filter(hx.is);return new fx(t)},dH=e=>null!=e&&"object"==typeof e&&e.hasOwnProperty("id");class hH{constructor(e,t=new SD){this.sessionLogCleaner=t,this.pendingTransactions=[],this.convertGroup=(e,t)=>{const n=new Wo(e);return n.parent_group=this._getGroup(n.parent_group,t),n.ssh_config=this.getSshConfig(n.ssh_config),n.telnet_config=this.getTelnetConfig(n.telnet_config),n.cloud_config=this.cloudConfigRepository.findByGroup(n),t.forceOriginalData||this.pendingTransactions.forEach(e=>{var r;if("MOVE_ENTITIES_TO_GROUP"===e.type){const{movedGroups:a,targetGroup:i,updateAt:s}=e.props,o=e=>a.some(t=>t.local_id===e.local_id),l=o(n);l&&(n.parent_group=this._getGroup(i,t)),(l||n.parentGroups.some(o))&&(n.is_shared=!!(null===(r=n.parent_group)||void 0===r?void 0:r.is_shared),n.updated_at=s)}}),new Wo(n)},this.convertHost=(e,t)=>{const n=new Jo(e),r={forceOriginalData:t.forceOriginalData,visitedLocalIds:t.visitedGroupLocalIds};return n.group=this._getGroup(n.group,r),n.ssh_config=this.getSshConfig(n.ssh_config),n.telnet_config=this.getTelnetConfig(n.telnet_config),n.tags=this.tagHostsRepository.getTagsByHost(n),t.forceOriginalData||this.pendingTransactions.forEach(e=>{if("MOVE_ENTITIES_TO_GROUP"===e.type){const{movedHosts:t,movedGroups:a,targetGroup:i,updateAt:s}=e.props,o=e=>a.some(t=>t.local_id===e.local_id),l=t.some(e=>e.local_id===n.local_id);l&&(n.group=this._getGroup(i,r)),(l||n.parentGroups.some(e=>o(e)))&&(n.is_shared=!!i.is_shared,n.updated_at=s)}}),new Jo(n)},this.convertIdentity=e=>(e.ssh_key=this.getSshKey(e.ssh_key),e.hardware_key=this.getHardwareKey(e.hardware_key),new No(e)),this.convertPortForwardingRule=e=>(e.host=this.getHost(e.host),e.host?new Ib(e):null),this.convertSnippet=e=>{e.package=this.getSnippetsPackage(e.package);const t=new qo(e);return this.pendingTransactions.forEach(n=>{if("SNIPPET_AND_SNIPPETS_PACKAGE_SHARING"===n.type){const r=n.props.snippets.some(t=>t.local_id===e.local_id),a=n.props.snippetsPackages.some(t=>{var n;return t.local_id===(null===(n=e.package)||void 0===n?void 0:n.local_id)});(r||a)&&(t.is_shared=!0)}}),t},this.convertHistoryCommand=e=>new xb(e),this.convertHostChain=e=>(e.hosts_chain=e.hosts_chain.map(e=>{let t;if(Number.isInteger(e))t=this.hostsRepository.get({local_id:null,id:Number(e)});else{const n=e.split("/").pop();t=this.hostsRepository.get({local_id:Number(n),id:null})}return t?new Lo(t):null}).filter(Boolean),new jo(e)),this.convertSshConfig=e=>(e.identity=this.resolveSshConfigIdentity(e),e.proxy=this.getProxy(e.proxycommand),e.startup_snippet=this.getSnippet(e.startup_snippet),e.host_chain=this.getHostChain(e),e.env_variables=Vo.parseEnvVariables(e.env_variables),e.charset=e.charset||null,new Vo(e)),this.convertTelnetConfig=e=>(e.identity=this.resolveTelnetConfigIdentity(e),e.startup_snippet=this.getSnippet(e.startup_snippet),e.charset=e.charset||null,new $o(e)),this.convertKnownHost=e=>new Cb(e),this.convertSshCertificate=e=>new Oo({...e,ssh_key_id:e.ssh_key}),this.convertSshKey=e=>{const t=this.sshCertificatesRepository.filterBasedOn("ssh_key",e).map(e=>this.getSshCertificate(e.toJSON())).filter(Po).sort(LN);return new xo({...e,certificates:t})},this.convertToSyncHistory=e=>{const{local_id:t,command:n,timestamp:r,...a}=this.convertToDBHistory(this.convertToHistory(e));return null==t||null==n||null==r?null:{...a,local_id:t,command:n,timestamp:r,status:e.status}},this.convertToHistory=e=>this.makeHistoryConverter().dbToEntity(e),this.convertToDBHistory=e=>this.makeHistoryConverter().entityToDB(e),this.makeHistoryConverter=()=>new VN({findHost:e=>this.getHost(e),findSnippet:e=>this.getSnippet(e),findSshKey:e=>this.getSshKey(e),findIdentity:e=>this.getIdentity(e)},{sshKey:this.sshKeysRepository,identity:this.identitiesRepository,host:this.hostsRepository}),this.convertHardwareKey=e=>new Eo(e),this.convertMultiKey=e=>new Ob(e),this.convertSnippetsPackage=e=>{const t=new Ko(e);return t.snippets_count=this.snippetsRepository.filterBasedOn("package",t).length,this.pendingTransactions.forEach(e=>{"SNIPPET_AND_SNIPPETS_PACKAGE_SHARING"===e.type&&e.props.snippetsPackages.some(e=>e.local_id===t.local_id)&&(t.is_shared=!0)}),t},this.convertHostLatestActivity=e=>(e.host=this.getHost(e.host),e.latest_used_identity=this.getIdentity(e.latest_used_identity),new Ab(e)),this.convertProxy=e=>new Bo({...e,identity:this.getIdentity(e.identity)}),this.collections=e,this.hostChainsRepository=new VR(e.host_chains),this.hostSnippetsRepository=new RR(e.host_snippets),this.sshKeysRepository=new tD(e.ssh_keys),this.hardwareKeyRepository=new RR(e.hardware_keys),this.identitiesRepository=new WR(e.identities,{sshKey:this.sshKeysRepository,hardwareKey:this.hardwareKeyRepository}),this.knownHostsRepository=new JR(e.known_hosts),this.snippetsPackagesRepository=new RR(e.snippets_packages),this.snippetsRepository=new YR(e.snippets,{snippetPackage:this.snippetsPackagesRepository}),this.proxiesRepository=new eD(e.proxies,{identity:this.identitiesRepository}),this.sshConfigsRepository=new ZR(e.ssh_configs,{identity:this.identitiesRepository,proxy:this.proxiesRepository,snippet:this.snippetsRepository}),this.tagsRepository=new sD(e.tags),this.tagHostsRepository=new cD(e.taghosts,{tag:this.tagsRepository}),this.telnetConfigsRepository=new hD(e.telnet_configs,{identity:this.identitiesRepository,snippet:this.snippetsRepository}),this.groupsRepository=new BR(e.groups,{sshConfig:this.sshConfigsRepository,telnetConfig:this.telnetConfigsRepository}),this.hostsRepository=new KR(e.hosts,{group:this.groupsRepository,sshConfig:this.sshConfigsRepository,telnetConfig:this.telnetConfigsRepository}),this.pfRulesRepository=new QR(e.pf_rules,{host:this.hostsRepository}),this.historyRepository=new fR,this.inAppMessageRepository=new zR,this.sshConfigIdentitiesRepository=new MR("ssh_config",e.ssh_config_identities),this.sharedSshConfigIdentitiesRepository=new MR("ssh_config",e.ssh_config_identities_shared),this.telnetConfigIdentitiesRepository=new MR("telnet_config",e.telnet_config_identities),this.sharedTelnetConfigIdentitiesRepository=new MR("telnet_config",e.telnet_config_identities_shared),this.personalDeviceKeyPairRepository=new XR,this.multiKeyRepository=new RR(e.multi_keys),this.cloudConfigRepository=new jR({aws:e.aws_configs,digitalOcean:e.digital_ocean_configs,azure:e.azure_configs},{getGroupRepositoryID:e=>this.groupsRepository.getAsRepositoryID(e)}),this.sshCertificatesRepository=new DR(e.ssh_certificates),this.teamMemberAvatarRepository=new pD,this.teamMemberRepository=new dD,this.teamInviteRepository=new uD,this.historyCommandsRepository=new RR(e.history_commands),this.hostLatestActivitiesRepository=new qR(e.host_latest_activities,{host:this.hostsRepository,identity:this.identitiesRepository}),this.syncApiDataManager=new cH(this.collections,{host:this.hostsRepository,group:this.groupsRepository,identity:this.identitiesRepository,hostLatestActivity:this.hostLatestActivitiesRepository,cloudConfig:this.cloudConfigRepository}),this.localCollections=[e.host_latest_activities,e.aws_configs,e.hardware_keys,e.digital_ocean_configs,e.azure_configs,e.history_commands],this.cs=this.syncApiDataManager.managedCollections.concat(this.localCollections)}addPendingTransaction(e){this.pendingTransactions.push(e)}getPendingTransaction(e){return this.pendingTransactions.find(t=>t.id===e)}removePendingTransaction(e){this.pendingTransactions=this.pendingTransactions.filter(t=>t.id!==e)}updatePendingTransaction(e){const t=this.pendingTransactions.findIndex(t=>t.id===e.id);-1!==t&&(this.pendingTransactions[t]=e)}resetPendingTransaction(){this.pendingTransactions=[]}async init(){await this.migrateCollections(),await Promise.all(this.cs.map(e=>e.initializeStorage())),await this.historyRepository.init(),await this.inAppMessageRepository.init(),await this.personalDeviceKeyPairRepository.init(),await this.teamMemberAvatarRepository.init(),await this.teamMemberRepository.init(),await this.teamInviteRepository.init()}async initWithCryptor(e){await this.migrateCollections(),await Promise.all(this.cs.map(async t=>{await t.initializeStorage(),t.setCryptor(e);await t.fetch({do_not_encrypt:!0})})),TS.info("init store success"),await this.historyRepository.init(),await this.historyRepository.setCryptor(e),await this.inAppMessageRepository.init(),await this.personalDeviceKeyPairRepository.init(),await this.teamMemberAvatarRepository.init(),await this.teamMemberRepository.init(),this.teamMemberRepository.setCryptor(e),await this.teamInviteRepository.init(),this.teamInviteRepository.setCryptor(e),await this.historyRepository.deactivateAll(),await this.cleanUpHistory()}async migrateCollections(){try{await Promise.all([this.collections.telnet_configs.migrate(),this.collections.ssh_configs.migrate(),this.collections.aws_configs.migrate()])}catch(e){throw TS.exception("Store migrations have failed",e),e}}async collectGarbage(){await this.collections.taghosts.collectGarbage(),await this.collections.pf_rules.collectGarbage(),await this.collections.host_chains.collectGarbage(),await this.collections.host_snippets.collectGarbage()}async repairCollections(){const e=this.collections,t=[e.identities,e.proxies,e.ssh_configs,e.telnet_configs,e.groups,e.hosts,e.taghosts,e.host_snippets,e.pf_rules,e.port_knockings,e.ssh_config_identities,e.ssh_config_identities_shared,e.telnet_config_identities,e.telnet_config_identities_shared];await async function(e,t){for(const n of e){const e=n.map(e=>{const n={};for(const[a,i]of Object.entries(e.relationsInBulk)){const s=t[i.collection],o=e.get(a);let l=null;if(o&&s&&(l=s.findWhere(null!=(r=o).id?{id:r.id}:{local_id:r.local_id}),l=TR(l)),l)o&&kR(o,l)&&(n[a]={...o,id:l.id});else{if(i.required)return()=>e.destroy(bR);o&&(n[a]=null)}}var r;return CR(n)?()=>e.save(n,bR):PR});await ER(e)}}(t,e),await async function(e,t,n){const r=e.map(e=>{const r=TR(e),a=r.ssh_config,i=TR(t.findWhere(IR(a)));if(!i)return()=>e.destroy(bR);const s={};AR(a,i)&&(s.ssh_config=i.id);const{hosts_chain:o}=r;if(o&&0!==o.length){const t=o.map(e=>{const t=TR(n.findWhere(IR(e)));return t?AR(e,t)?t.id:e:null}).filter(Boolean);if(0===t.length)return()=>e.destroy(bR);UN()(o,t)||(s.hosts_chain=t)}return CR(s)?()=>e.save(s,bR):PR});await ER(r)}(e.host_chains,e.ssh_configs,e.hosts),await OR(e.proxies)}async gotSyncData(...e){return this.syncApiDataManager.saveSyncResponse(...e)}async buildPushData(...e){return this.syncApiDataManager.generateSyncRequest(...e)}markAllSyncableCollectionsAsUpdateFailed(...e){return this.syncApiDataManager.markAllAsUpdateFailed(...e)}markSyncKeyCollectionsAsUpdateFailed(...e){return this.syncApiDataManager.markSyncKeyEntitiesAsUpdateFailed(...e)}hasSyncableEntities(){return this.syncApiDataManager.hasSyncableEntities()}hasUnsyncedEntities(){return this.syncApiDataManager.hasDataToSync()}async removeUnsyncedDeleteFailedData(){return this.syncApiDataManager.removeNotSyncedDeleteFailed()}async fixCollectionsByUserPermissions(...e){return this.syncApiDataManager.fixDataByUserPermissions(...e)}prepareSharedEntitiesForDowngrade(...e){return this.syncApiDataManager.generateDataForTeamDowngrade(...e)}async clearSyncable(){return this.syncApiDataManager.clear()}getReEncryptedData(...e){return this.syncApiDataManager.getReEncryptedData(...e)}async updateCryptor(e,t){for(const n of this.cs)n.setCryptor(e,t);t&&await this.saveAll(),this.historyRepository.setCryptor(e),this.teamMemberRepository.setCryptor(e),this.teamInviteRepository.setCryptor(e)}async resaveUnsyncable(){await Promise.all(this.localCollections.map(e=>e.resaveCollection()))}async removeSharedLocalData(){const{collections:e}=this;try{await Promise.all(Object.values(e).map(e=>e.unshareEntities()))}catch(e){TS.exception("Cannot remove shared local data",e)}}async hardDeleteSharedData(){const e=e=>e.get("is_shared"),t=e=>e.hardDestroy(NR);await Promise.all(this.cs.map(n=>Promise.all(n.filter(e).map(t))))}async clearAll(){this.resetPendingTransaction(),await async function(e){await Promise.all(e.map(e=>e.clearData()))}(this.cs);try{await this.clearAllDBHistories(),await this.inAppMessageRepository.deleteAll(),await this.personalDeviceKeyPairRepository.deleteAll(),await this.teamMemberAvatarRepository.deleteAll(),await this.teamMemberRepository.deleteAll(),await this.teamInviteRepository.deleteAll()}catch(e){}}saveAll(){return Promise.all(this.cs.map(e=>e.save()))}getNumberOfGroups(){return this.groupsRepository.length}getGroups(e=!1){return this.groupsRepository.getAll(e).map(e=>this.convertGroup(e,{forceOriginalData:!1,visitedLocalIds:new Set}))}getGroup(e,t=!1){return this._getGroup(e,{forceOriginalData:t,visitedLocalIds:new Set})}_getGroup(e,t){const n=this.groupsRepository.get(e);return t.visitedLocalIds.has(null==n?void 0:n.local_id)||null==(null==n?void 0:n.local_id)?null:(t.visitedLocalIds.add(e.local_id),this.convertGroup(n,t))}async setGroup(e){const{ssh_config:t,telnet_config:n,cloud_config:r}=e,a=this.getGroup(e);a&&await this.maybeRemoveOldConfigs(a,e),t&&await this.setSshConfig(t),n&&await this.setTelnetConfig(n),await this.groupsRepository.save(e);const i=this.getGroup(e);r&&i&&await this.cloudConfigRepository.saveForGroup(r,i)}async deleteGroup(e){const{children_groups:t,children_hosts:n}=this.getGroupTreeRecursively(e);await Promise.all(n.map(e=>this.deleteHost(e))),await Promise.all(t.map(e=>this._deleteGroup(e)))}async _deleteGroup(e){const{ssh_config:t,telnet_config:n,cloud_config:r}=e;return t&&await this.deleteSshConfig(t),n&&await this.deleteTelnetConfig(n),r&&await this.cloudConfigRepository.deleteByGroup(e),this.groupsRepository.delete(e)}getChildrenGroupsAndHostsForSharing(e){const t=this.getGroupTreeRecursively(e);return t.children_groups.forEach(e=>{e.ssh_config&&this._fixupSshConfigForSharing(e.ssh_config),e.telnet_config&&this._fixupTelnetConfigForSharing(e.telnet_config)}),t.children_hosts.forEach(e=>{e.ssh_config&&this._fixupSshConfigForSharing(e.ssh_config),e.telnet_config&&this._fixupTelnetConfigForSharing(e.telnet_config)}),t}getGroupTreeRecursively(e){const t=[...Fb(e,this.getGroups())];t.reverse();return{children_groups:t,children_hosts:Gb(t,this.getHosts())}}_fixupSshConfigForSharing(e){var t,n;const r=(null===(t=this.sharedSshConfigIdentitiesRepository.findByConfig(e))||void 0===t?void 0:t.identity)||(null===(n=this.sshConfigIdentitiesRepository.findByConfig(e))||void 0===n?void 0:n.identity);e.identity=this.getIdentity(r)}_fixupTelnetConfigForSharing(e){var t,n;const r=(null===(t=this.sharedTelnetConfigIdentitiesRepository.findByConfig(e))||void 0===t?void 0:t.identity)||(null===(n=this.telnetConfigIdentitiesRepository.findByConfig(e))||void 0===n?void 0:n.identity);e.identity=this.getIdentity(r)}getNumberOfHosts(){return this.hostsRepository.length}getHosts(e=!1){return this.hostsRepository.getAll(e).map(e=>this.convertHost(e,{forceOriginalData:!1,visitedGroupLocalIds:new Set}))}getHost(e,t=!1){return this._getHost(e,{forceOriginalData:t,visitedGroupLocalIds:new Set})}_getHost(e,t){const n=this.hostsRepository.get(e);return n?this.convertHost(n,t):null}getHostByCloudId(e,t){if(!e||!t)return null;const{children_hosts:n}=this.getGroupTreeRecursively(t);return n.find(t=>t.cloud_instance_id===e)}async maybeRemoveOldSshConfigIdentity(e,t){e.local_id&&(t.identity||(await this.sshConfigIdentitiesRepository.deleteByConfig(e),await this.sharedSshConfigIdentitiesRepository.deleteByConfig(e)),t.is_shared||await this.sharedSshConfigIdentitiesRepository.deleteByConfig(e))}async setSshConfigIdentity(e,t){if(!(null==t?void 0:t.identity))return;const n={ssh_config:this.sshConfigsRepository.getAsRepositoryID(t),identity:this.identitiesRepository.getAsRepositoryID(t.identity),is_shared:!1},r=this.sshConfigIdentitiesRepository.findByConfig(e);await this.sshConfigIdentitiesRepository.set(null!=r?r:fH(),n);const a=this.lookupRootGroupBySshConfig(t);if(t.is_shared&&"credentials_sharing"===(null==a?void 0:a.sharing_mode)){const t=this.sharedSshConfigIdentitiesRepository.findByConfig(e);await this.sharedSshConfigIdentitiesRepository.set(null!=t?t:fH(),{...n,is_shared:!0})}else await this.sharedSshConfigIdentitiesRepository.deleteByConfig(t)}lookupRootGroupBySshConfig(e){var t,n,r;const a=null===(t=this.collections.hosts.findBySshConfig(e))||void 0===t?void 0:t.toJSON();if(a&&!a.group)return;const i=(null==a?void 0:a.group)?null===(n=this.collections.groups.findById(a.group))||void 0===n?void 0:n.toJSON():null===(r=this.collections.groups.findBySshConfig(e))||void 0===r?void 0:r.toJSON();return this._lookupRootGroupByGroup(i,new Set)}lookupRootGroupByTelnetConfig(e){var t,n,r;const a=null===(t=this.collections.hosts.findByTelnetConfig(e))||void 0===t?void 0:t.toJSON();if(a&&!a.group)return;const i=(null==a?void 0:a.group)?null===(n=this.collections.groups.findById(a.group))||void 0===n?void 0:n.toJSON():null===(r=this.collections.groups.findByTelnetConfig(e))||void 0===r?void 0:r.toJSON();return this._lookupRootGroupByGroup(i,new Set)}_lookupRootGroupByGroup(e,t){var n,r;if(null==e)return;if(null==(null===(n=e.parent_group)||void 0===n?void 0:n.local_id))return e;const a=t.has(e.local_id);if(null!=e.local_id&&a)return e;const i=null===(r=this.collections.groups.findByLocalId(e.parent_group.local_id))||void 0===r?void 0:r.toJSON();return null==i?e:(t.add(e.local_id),this._lookupRootGroupByGroup(i,t))}async maybeRemoveOldTelnetConfigIdentity(e,t){e.local_id&&(t.identity||(await this.telnetConfigIdentitiesRepository.deleteByConfig(e),await this.sharedTelnetConfigIdentitiesRepository.deleteByConfig(e)),t.is_shared||await this.sharedTelnetConfigIdentitiesRepository.deleteByConfig(e))}async setTelnetConfigIdentity(e,t){if(!(null==t?void 0:t.identity))return;const n={telnet_config:this.telnetConfigsRepository.getAsRepositoryID(t),identity:this.identitiesRepository.getAsRepositoryID(t.identity),is_shared:!1},r=this.telnetConfigIdentitiesRepository.findByConfig(e);await this.telnetConfigIdentitiesRepository.set(null!=r?r:fH(),n);const a=this.lookupRootGroupByTelnetConfig(t);if(t.is_shared&&"credentials_sharing"===(null==a?void 0:a.sharing_mode)){const t=this.sharedTelnetConfigIdentitiesRepository.findByConfig(e);await this.sharedTelnetConfigIdentitiesRepository.set(null!=t?t:fH(),{...n,is_shared:!0})}else await this.sharedTelnetConfigIdentitiesRepository.deleteByConfig(t)}async setHost(e){const{ssh_config:t,telnet_config:n}=e,r=this.getHost(e);return r&&await this.maybeRemoveOldConfigs(r,e),t&&await this.setSshConfig(t),n&&await this.setTelnetConfig(n),await this.hostsRepository.save(e),this.tagHostsRepository.saveForHost(e)}async deleteHost(e){await this.tagHostsRepository.deleteAllBasedOn("host",e),await this.hostSnippetsRepository.deleteAllBasedOn("host",e),await this.pfRulesRepository.deleteAllBasedOn("host",e),await this.hostChainsRepository.deleteHostFromChains($R(e)),await this.hostLatestActivitiesRepository.deleteAllBasedOn("host",e);const{ssh_config:t,telnet_config:n}=e;return t&&await this.deleteSshConfig(t),n&&await this.deleteTelnetConfig(n),this.hostsRepository.delete(e)}getNumberOfVisibleIdentities(){return this.identitiesRepository.countOf(e=>e.is_visible)}getVisibleIdentities(e=!1){return this.identitiesRepository.getAll(e).filter(e=>!0===e.is_visible).map(this.convertIdentity)}getAllIdentities(){return this.identitiesRepository.getAll().map(this.convertIdentity)}getIdentity(e){const t=this.identitiesRepository.get(e);return t?this.convertIdentity(t):null}async setIdentity(e){return this.identitiesRepository.save(e)}async recreateIdentity(e){if(!Boolean(this.getIdentity(e)))return;const t=this.getSshConfigs().filter(t=>{var n;return(null===(n=t.identity)||void 0===n?void 0:n.local_id)===e.local_id}),n=this.getTelnetConfigs().filter(t=>{var n;return(null===(n=t.identity)||void 0===n?void 0:n.local_id)===e.local_id}),r=this.proxiesRepository.filterBasedOn("identity",e).map(e=>this.getProxy(e.toJSON())).filter(Po),a=e.clone().prepareForDuplicate();e.is_visible||await this.unsetIdentityRelations(e),await Promise.all([this.setIdentity(a),this.deleteIdentity(e)]),await Promise.all([...t.map(e=>this.setSshConfig(e.clone({identity:a}))),...n.map(e=>this.setTelnetConfig(e.clone({identity:a}))),...r.map(e=>this.setProxy(e.clone({identity:a})))])}async unsetIdentityRelations(e){await Promise.all([this.sshConfigsRepository.unsetDependencyBasedOn("identity",e),this.telnetConfigsRepository.unsetDependencyBasedOn("identity",e),this.proxiesRepository.unsetDependencyBasedOn("identity",e),this.hostLatestActivitiesRepository.unsetDependencyBasedOn("latest_used_identity",e)]),e.local_id&&await Promise.all([this.sshConfigIdentitiesRepository.deleteByIdentity(e),this.telnetConfigIdentitiesRepository.deleteByIdentity(e),this.sharedSshConfigIdentitiesRepository.deleteByIdentity(e),this.sharedTelnetConfigIdentitiesRepository.deleteByIdentity(e)])}async deleteIdentity(e){return e.is_visible&&await this.unsetIdentityRelations(e),this.identitiesRepository.delete(e)}getNumberOfPortForwardingRules(){return this.pfRulesRepository.length}getPortForwardingRules(e=!1){return this.pfRulesRepository.getAll(e).map(this.convertPortForwardingRule).filter(Po)}async setPortForwardingRule(e){return this.pfRulesRepository.save(e)}async deletePortForwardingRule(e){return this.pfRulesRepository.delete(e)}getNumberOfSnippets(){return this.snippetsRepository.length}getSnippets(e=!1){return this.snippetsRepository.getAll(e).map(this.convertSnippet)}getSnippet(e){const t=this.snippetsRepository.get(e);return t?this.convertSnippet(t):null}async setSnippet(e){return this.snippetsRepository.save(e)}async deleteSnippet(e){return await this.sshConfigsRepository.unsetDependencyBasedOn("startup_snippet",e),await this.telnetConfigsRepository.unsetDependencyBasedOn("startup_snippet",e),await this.hostSnippetsRepository.deleteAllBasedOn("snippet",e),this.snippetsRepository.delete(e)}getNumberOfHistoryCommands(){return this.historyCommandsRepository.length}getHistoryCommands(e=!1){return this.historyCommandsRepository.getAll(e).map(this.convertHistoryCommand)}async setHistoryCommands(e){await this.historyCommandsRepository.bulkSetUnsyncable(e.map(e=>({local_id:e.local_id,script:e.script,rating:e.rating})))}async deleteHistoryCommands(){return this.historyCommandsRepository.clear()}getHostChain(e){const t=e.id||"sshconfig_set/"+(e.local_id||0),n=this.hostChainsRepository.getBySshConfig(t);return n?this.convertHostChain(n):null}resolveSshConfigIdentity(e){var t,n;const r=this.lookupRootGroupBySshConfig(e),a="credentials_sharing"===(null==r?void 0:r.sharing_mode)&&e.is_shared?null===(t=this.sharedSshConfigIdentitiesRepository.findByConfig(e))||void 0===t?void 0:t.identity:null===(n=this.sshConfigIdentitiesRepository.findByConfig(e))||void 0===n?void 0:n.identity;return this.getIdentity(a)}resolveTelnetConfigIdentity(e){var t,n;const r=this.lookupRootGroupByTelnetConfig(e),a="credentials_sharing"===(null==r?void 0:r.sharing_mode)&&e.is_shared?null===(t=this.sharedTelnetConfigIdentitiesRepository.findByConfig(e))||void 0===t?void 0:t.identity:null===(n=this.telnetConfigIdentitiesRepository.findByConfig(e))||void 0===n?void 0:n.identity;return this.getIdentity(a)}getSshConfigs(){return this.sshConfigsRepository.getAll().map(this.convertSshConfig)}getSshConfig(e){const t=this.sshConfigsRepository.get(e);return t?this.convertSshConfig(t):null}async setSshConfig(e){const{identity:t,proxy:n,host_chain:r}=e,a=this.getSshConfig(e);if(a){await this.maybeRemoveOldSshConfigIdentity(a,e),await this.maybeRemoveOldInvisibleIdentity(a,e);const t=a.proxy;t&&mH(t,n)&&await this.deleteProxy(t);const i=a.host_chain;i&&(r?r.local_id=i.local_id:await this.hostChainsRepository.delete(i))}n&&await this.setProxy(n),t&&!t.is_visible&&await this.setIdentity(t),function(e,t){if(!e)return!0;return n=e,r=t,!UN()(new Vo({...n,identity:null}),new Vo({...r,identity:null}));var n,r}(a,e)&&await this.sshConfigsRepository.save(e),await this.setSshConfigIdentity(a,e),r&&(r.is_shared=e.is_shared,await this.hostChainsRepository.saveChain(r,e))}async deleteSshConfig(e){if(null==e.local_id)throw new Error("Cannot delete ssh_config without local_id");const t=e.id||"sshconfig_set/"+e.local_id;this.hostChainsRepository.deleteAllWithProperty("ssh_config",t),await this.sshConfigIdentitiesRepository.deleteByConfig(e),await this.sharedSshConfigIdentitiesRepository.deleteByConfig(e);const{identity:n,proxy:r}=e;return n&&!n.is_visible&&await this.deleteIdentity(n),r&&await this.deleteProxy(r),this.sshConfigsRepository.delete(e)}getTelnetConfigs(){return this.telnetConfigsRepository.getAll().map(this.convertTelnetConfig)}getTelnetConfig(e){const t=this.telnetConfigsRepository.get(e);return t?this.convertTelnetConfig(t):null}async setTelnetConfig(e){const{identity:t}=e,n=this.getTelnetConfig(e);n&&(await this.maybeRemoveOldTelnetConfigIdentity(n,e),await this.maybeRemoveOldInvisibleIdentity(n,e)),t&&!t.is_visible&&await this.setIdentity(t),function(e,t){if(!e)return!0;return n=e,r=t,!UN()(new $o({...n,identity:null}),new $o({...r,identity:null}));var n,r}(n,e)&&await this.telnetConfigsRepository.save(e),await this.setTelnetConfigIdentity(n,e)}async deleteTelnetConfig(e){e.local_id&&(await this.telnetConfigIdentitiesRepository.deleteByConfig(e),await this.sharedTelnetConfigIdentitiesRepository.deleteByConfig(e));const{identity:t}=e;return t&&!t.is_visible&&await this.deleteIdentity(t),this.telnetConfigsRepository.delete(e)}getNumberOfKnownHosts(){return this.knownHostsRepository.length}getKnownHosts(e=!1){return this.knownHostsRepository.getAll(e).map(this.convertKnownHost)}async setKnownHost(e){return this.knownHostsRepository.save(e)}async deleteKnownHost(e){return this.knownHostsRepository.delete(e)}getNumberOfSshCertificates(){return this.sshCertificatesRepository.length}getSshCertificates(e=!1){return this.sshCertificatesRepository.getAll(e).map(this.convertSshCertificate)}getSshCertificate(e){const t=this.sshCertificatesRepository.get(e);return t?this.convertSshCertificate(t):null}async setSshCertificate(e){return this.sshCertificatesRepository.save(e)}getNumberOfSshKeys(){return this.sshKeysRepository.length}getSshKeys(e=!1){return this.sshKeysRepository.getAll(e).map(this.convertSshKey)}getSshKey(e){const t=this.sshKeysRepository.get(e);return t?this.convertSshKey(t):null}async setSshKey(e){const{certificates:t}=e,n=this.sshCertificatesRepository.filterBasedOn("ssh_key",e).map(e=>this.getSshCertificate(e.toJSON())).filter(Po).filter(e=>!t.some(t=>t.local_id===e.local_id));await this.sshKeysRepository.save(e);const r=this.sshKeysRepository.getAsRepositoryID(e);await Promise.all(t.map(e=>this.setSshCertificate(new Oo({...e,ssh_key_id:r})))),await this.sshCertificatesRepository.deleteMany(n)}async recreateSshKey(e){if(!Boolean(this.getSshKey(e)))return;const t=this.identitiesRepository.filterBasedOn("ssh_key",e).map(e=>this.getIdentity(e.toJSON())).filter(Po),n=e.clone();n.prepareForDuplicate(),await Promise.all([this.setSshKey(n),this.deleteSshKey(e)]),await Promise.all(t.map(e=>this.setIdentity(e.clone({ssh_key:n}))))}async deleteSshKey(e){return await this.identitiesRepository.unsetDependencyBasedOn("ssh_key",e),await this.sshCertificatesRepository.deleteAllBasedOn("ssh_key",e),this.sshKeysRepository.delete(e)}getTags(...e){return this.tagsRepository.getUniqueTags(...e)}async updateTag(...e){return this.tagsRepository.upsertMatchingTag(...e)}async deleteTag(...e){return this.tagsRepository.deleteMatchingTag(...e)}getNumberOfHistories(){return this.historyRepository.length}convertSessionLogListToSet(e){return new Set(e.flatMap(e=>null!=e?[e.name]:[]))}async cleanUpHistory(e){const{toRemove:t,toSkip:n}=await this.historyRepository.cleanup(5,e);return this.sessionLogCleaner.cleanSessionLogs({toRemove:this.convertSessionLogListToSet(t),toSkip:this.convertSessionLogListToSet(n)})}async cleanUpAllSessionLogs(){const e=await this.historyRepository.getSessionLogsOfActiveHistory();return this.sessionLogCleaner.cleanSessionLogs({toRemove:new Set,toSkip:this.convertSessionLogListToSet(e)},0)}async validateSessionLogFileExists(e){return this.sessionLogCleaner.validateSessionLogFileExists(e)}async setHistory(e){const t=await this.historyRepository.add(this.convertToDBHistory(e));return new XS({...e,local_id:t})}async getDBHistories(){return(await this.historyRepository.getAll()).map(this.convertToSyncHistory).filter(Po)}async getUnsyncedDBHistories(){const{created:e,deleted:t}=await this.historyRepository.getUnsynced();return{created:e.map(this.convertToSyncHistory).filter(Po),deleted:t.map(this.convertToSyncHistory).filter(Po)}}async getHistoryEntities(){return(await this.historyRepository.getAll()).map(this.convertToHistory)}async getOverLimitedHistoryEntities(){return(await this.historyRepository.getOverLimited()).map(this.convertToHistory)}async bulkAddHistoryEntities(e){return this.historyRepository.bulkAdd(e.map(this.convertToDBHistory))}async updateHistoryEntity(e){return this.historyRepository.update(this.convertToDBHistory(e))}async deleteHistoryEntity(e){await this.historyRepository.delete(e.local_id);const t=await this.historyRepository.getSessionLogsOfActiveHistory();return this.sessionLogCleaner.cleanSessionLogs({toRemove:this.convertSessionLogListToSet([e.session_log_data]),toSkip:this.convertSessionLogListToSet(t)})}async bulkDeleteHistoryEntities(e){const t=e.map(e=>e.local_id);return this.historyRepository.bulkDelete(t)}async gotSyncedDBHistories(...e){return this.historyRepository.gotSynced(...e)}async updateSyncedDBHistories(...e){return this.historyRepository.updateSynced(...e)}async clearAllDBHistories(){return await this.historyRepository.clearAll(),this.cleanUpAllSessionLogs()}async clearAllInactiveHistories(){return this.historyRepository.deleteAll()}async setInAppMessage(e){return this.inAppMessageRepository.set(e)}async getAllInAppMessages(){return this.inAppMessageRepository.getAll()}async deleteInAppMessage(e){await this.inAppMessageRepository.delete(e)}async setPersonalDeviceKeyPair(e){return this.personalDeviceKeyPairRepository.set(e)}async getAllPersonalDeviceKeyPair(){return this.personalDeviceKeyPairRepository.getAll()}async setHardwareKey(e){return this.hardwareKeyRepository.set(e,{label:e.label,public_key:e.public_key,storage:e.storage})}getAllHardwareKeys(e=!1){return this.hardwareKeyRepository.getAll(e).map(this.convertHardwareKey)}getAllSepKeys(e=!1){return this.getAllHardwareKeys(e).filter(e=>e.isSep())}getNumberOfSepKeys(){return this.getAllSepKeys().length}getHardwareKey(e){const t=this.hardwareKeyRepository.get(e);return t?this.convertHardwareKey(t):null}async deleteHardwareKey(e){return await this.identitiesRepository.unsetDependencyBasedOn("hardware_key",e),this.hardwareKeyRepository.delete(e)}async setTeamMultiKey(e){return this.multiKeyRepository.set(e,{username:e.username})}getAllTeamMultiKey(e=!1){return this.multiKeyRepository.getAll(e).map(this.convertMultiKey)}getNumberOfSnippetsPackages(){return this.snippetsPackagesRepository.length}getSnippetsPackage(e){const t=this.snippetsPackagesRepository.get(e);return t?this.convertSnippetsPackage(t):null}getSnippetsPackages(){return this.snippetsPackagesRepository.getAll().map(this.convertSnippetsPackage)}async setSnippetsPackage(e){return this.snippetsPackagesRepository.set(e,{label:e.label,is_shared:e.is_shared})}async deleteSnippetsPackage(e){return await this.snippetsRepository.unsetDependencyBasedOn("snippets_package",e),this.snippetsPackagesRepository.delete(e)}getChildrenSnippets(e){return this.snippetsRepository.filterBasedOn("package",e).map(e=>{var t;return this.convertSnippet(null===(t=e.toJSON)||void 0===t?void 0:t.call(e,{do_not_encrypt:!1}))})}async setTeamMemberAvatar(e){return this.teamMemberAvatarRepository.set(e)}async getAllTeamMemberAvatars(){return this.teamMemberAvatarRepository.getAll()}async setTeamMember(e){return this.teamMemberRepository.set(e)}async getAllTeamMembers(){return this.teamMemberRepository.getAll()}async setTeamInvite(e){return this.teamInviteRepository.set(e)}async getAllTeamInvites(){return this.teamInviteRepository.getAll()}getHostLatestActivities(e=!1){return this.hostLatestActivitiesRepository.getAll(e).map(this.convertHostLatestActivity)}async setHostLatestActivity(e){return this.hostLatestActivitiesRepository.save(e)}async deleteHostLatestActivity(e){return this.hostLatestActivitiesRepository.delete(e)}getProxies(){return this.proxiesRepository.getAll().map(this.convertProxy)}getProxy(e){const t=this.proxiesRepository.get(e);return t?this.convertProxy(t):null}async setProxy(e){const{identity:t}=e,n=this.getProxy(e);n&&await this.maybeRemoveOldInvisibleIdentity(n,e),t&&!t.is_visible&&await this.setIdentity(t),await this.proxiesRepository.save(e)}async deleteProxy(e){const{identity:t}=e;return t&&!t.is_visible&&await this.deleteIdentity(t),this.proxiesRepository.delete(e)}async maybeRemoveOldConfigs(e,t){const n=e.ssh_config,r=t.ssh_config;n&&mH(n,r)&&await this.deleteSshConfig(n);const a=e.telnet_config,i=t.telnet_config;a&&mH(a,i)&&await this.deleteTelnetConfig(a),e instanceof Wo&&t instanceof Wo&&await this.cloudConfigRepository.removeIfReplaced(e.cloud_config,t.cloud_config)}async maybeRemoveOldInvisibleIdentity(e,t){const n=e.identity,r=t.identity;var a,i;!n||(i=r,(a=n).is_visible||i&&!i.is_visible&&i.local_id===a.local_id)||await this.deleteIdentity(n)}async resolveDuplicates(){const e=function(e){e.sort((e,t)=>(e.local_id||0)-(t.local_id||0));const t=new Set(Rb()(e,vo));return e.filter(e=>!t.has(e))}(this.getHosts());if(0!==e.length){const t=new Wo({label:"Potential duplicates"});await this.setGroup(t);for(const n of e)n.group=t,await this.setHost(n)}}async importEntities(e,t,n=[]){const r=new Map(this.getSshKeys().filter(e=>!e.is_shared).map(e=>[e.private_key.trim(),e]));return new yR(r,{saveIdentity:e=>this.setIdentity(e),saveHost:e=>this.setHost(e),saveSshKey:e=>this.setSshKey(e),savePortForwardingRule:e=>this.setPortForwardingRule(e),saveHostChain:(e,t)=>this.hostChainsRepository.saveChain(e,t),saveGroup:e=>this.setGroup(e),saveSnippet:e=>this.setSnippet(e),saveKnownHost:e=>this.setKnownHost(e)}).importEntities(e,t,n)}}const fH=()=>({id:null,local_id:null});function mH(e,t){return!t||t.local_id!==e.local_id}function SH(e){return function(e,t){return new Promise(n=>e.once(t,n))}(e,"sync")}class yH{constructor(e){this.syncOptions=e}encrypt(e){const{version:t,shareState:n}=gH(this.syncOptions);return"v5"===t?this.syncOptions.cryptor.encryptV5(e,n):this.syncOptions.cryptor.encryptV3(e,n)}decrypt(e){const{shareState:t,version:n}=gH(this.syncOptions);return"v5"===n?this.syncOptions.cryptor.decryptV5(e,t):this.syncOptions.cryptor.decryptV3(e,t)}}const gH=e=>{const{personalEncryptionSchema:t}=e;return{shareState:!1,version:t}};class vH{constructor(e){this.api=e}async clear(){return this.api.clearHistory()}async pull(e,t=10,n=0){const r=await this.api.getHistory({offset:n,limit:t});return{histories:this.decrypt(e,r.objects).map(this.convertToDBHistory),meta:r.meta}}encryptForSync(e,t){return this.encrypt(e,t.map(this.convertToRemoteHistory))}async sync(e,t){const{created:n,deleted:r}=t,a=this.encryptForSync(e,n),i=r.map(e=>e.id),s=await this.api.syncHistory({objects:a,deleted:i}),o=r.filter(e=>e.id&&s.deleted.includes(e.id));return{created:this.decrypt(e,s.objects).map(this.convertToDBHistory),deleted:o}}convertToRemoteHistory(e){var t;return{id:e.id,success:!e.command.error_message,local_id:e.local_id,timestamp:e.timestamp,command:e.command,updated_at:e.updated_at,created_at:e.created_at,device:null===(t=e.device)||void 0===t?void 0:t.id,set_name:"historyconnection_set"}}convertToDBHistory(e){return{...e,...Qo(null!=e.command.host_id,{host:{id:e.command.host_id}}),...Qo(null!=e.command.key_id,{ssh_key:{id:e.command.key_id}}),...Qo(null!=e.command.visible_identity_id,{identity:{id:e.command.visible_identity_id}}),connected_at:So(e.timestamp).getTime(),active:!1}}encrypt(e,t){const n=new yH(e);return t.map(e=>{const t=JSON.stringify(e.command),r=n.encrypt(t);if("string"!=typeof r)throw new Error("Can not encrypt remote history item");return{...e,command:r}})}decrypt(e,t){const n=new yH(e);return t.map(e=>{const t=n.decrypt(e.command);if("string"!=typeof t)throw new Error("Can not decrypt remote history item");const r=JSON.parse(t);return{...e,command:r}})}}class _H extends SS{constructor(){super(...arguments),this.name="DiscardSync"}}class bH{constructor(e,t,n,r){this.api=e,this.settings=t,this.store=n,this.history=new vH(this.api),this.keyManager=r}async getIsSharingEnabled(e){const{isOwner:t}=this.settings.getDeprecatedUserTeamStatus();if(null==t)return uN.individualUser;const n=function(e){if(null==e)return pN.individualUser;return e?pN.administrator:pN.regular}(t);return this.keyManager.getKeyRingStatus(n,e)}async syncHistory(e,t){return await this.pushHistory(e),this.pullHistory(e,t)}async pushHistory(e){const{created:t,deleted:n}=await this.store.getUnsyncedDBHistories();if(t.length+n.length>0){const r=await this.history.sync(e,{created:t,deleted:n});await this.store.gotSyncedDBHistories(r)}}async pullHistory(e,t){const{histories:n,meta:r}=await this.history.pull(e,t);return await this.store.updateSyncedDBHistories(n),r}async clearHistory(){return this.history.clear()}async restoreRemoteHistory(e){const t=await this.store.getDBHistories();await this.history.sync(e,{created:t,deleted:[]})}async getReEncryptedHistoryData(e){const t=await this.store.getDBHistories();return this.history.encryptForSync(e,t).map(e=>{const{id:t,...n}=e;return null==t?null:{...n,id:t}}).filter(Po)}pushSettings(){const e=this.settings.getSettings();return this.api.updateSettings(e)}async pullSettings(){const e=await this.api.getSettings();return this.settings.setSettings(e)}async sync(e){const{user_id:t}=e.account;if(null==t)return;if(await this.getIsSharingEnabled(t)===uN.setupIncomplete)return;const n=this.settings.isSynchingKeys();await this.pullSettings();const r=await this.buildSyncOptions(e),a=this.settings.isSynchingKeys(),{canEditSharedEntities:i}=this.settings.getDeprecatedUserTeamStatus();if(null==this.settings.getDeprecatedLastSync())return await this.firstSync(t,r),void FS.setDeprecatedLastSyncVersion(lH.last);const s=FS.getDeprecatedLastSyncVersion(),o=!s||s<lH.last;!1===n&&!0===a&&await this.store.markSyncKeyCollectionsAsUpdateFailed(i===Ix.yes),o?(await this.syncWithNewSyncVersion(t,r),FS.setDeprecatedLastSyncVersion(lH.last)):await this.fullSync(t,r)}async fullSync(e,t){if(await this.getIsSharingEnabled(e)===uN.setupIncomplete)return null;try{const e=await this.push(t);return await this.gotBulkData(e,t),e}catch(e){if(400!==e.status)throw e;let n=await this.pull();return await this.gotBulkData(n,t),await this.store.repairCollections(),n=await this.push(t),await this.gotBulkData(n,t),n}}async reloadData(e){const{user_id:t}=e.account;if(null==t)return;if(await this.getIsSharingEnabled(t)===uN.setupIncomplete)return;const n=pw(e),{isOwner:r,canEditSharedEntities:a}=this.settings.getDeprecatedUserTeamStatus(),i=await this.keyManager.syncCryptor(t,n,r),s=await this.pull();this.store.resaveUnsyncable(),await Promise.all([this.pullSettings(),this.store.clearSyncable()]);const o=this.settings.isSynchingKeys();await this.gotBulkData(s,{syncKeysAndIdentities:o,cryptor:i});const l={syncKeysAndIdentities:o,personalEncryptionSchema:n,teamEncryptionSchema:dw(e),canEditSharedEntities:a,cryptor:i};await this.store.clearAllDBHistories(),await this.pullHistory(l)}async syncWithNewSyncVersion(e,t){await this.fullSync(e,t);const n=await this.pull();return await this.gotBulkData(n,t),n}async firstSync(e,t){const n=await this.pull();return this.store.resaveUnsyncable(),await this.gotBulkData(n,t),await this.fullSync(e,t),n}async pull(e){return this.api.getDataSync(e)}async push(e){try{await this.store.fixCollectionsByUserPermissions(e.canEditSharedEntities)}catch(e){TS.exception("Cannot fix collections by user permissions",e)}await this.store.collectGarbage();const t=await this.store.buildPushData(e),n=yo(new Date(this.settings.getDeprecatedLastSync()||0));return null!=t?this.apiSync({...t,last_synced:n}):this.pull({lastSynced:n})}async gotBulkData(e,t){if(null==await this.store.gotSyncData(e,t.cryptor,t.syncKeysAndIdentities))throw new _H;const n=e.now?So(e.now).valueOf():Date.now();return this.settings.setDeprecatedLastSync(n),SH(this.settings)}async apiSync(e){return this.api.sync(e)}async buildSyncOptions(e){const{user_id:t}=e.account;kN(t);const n=pw(e),r=this.settings.isSynchingKeys(),{isOwner:a,canEditSharedEntities:i}=this.settings.getDeprecatedUserTeamStatus(),s=await this.keyManager.syncCryptor(t,n,a);return{syncKeysAndIdentities:r,personalEncryptionSchema:n,teamEncryptionSchema:dw(e),canEditSharedEntities:i,cryptor:s}}}class PH extends BA.a{constructor(e,t,n,r,a=(()=>{}),i){super(),this.systemHasKeychain=!1,this.api=e,this.gRPCApi=t,this.settings=r,this.dispatch=a;const{name:s}=zi.a.parse(u.app.getPath("exe"));this.keytar=new bN(YS.a.mas()?s+" (MAS)":s,Object(u.require)("@termius/keytar")),this.credentialsStorage=new Wx,this.syncKeyManager=new hN(this.api,this.credentialsStorage,a),this.store=new hH(n,i),this.synchronization=new bH(this.api,this.settings,this.store,this.syncKeyManager),this.cloudsController=new lx({store:this.store,dispatch:this.dispatch,settings:this.settings}),this.auth=new DN(this.api,this.gRPCApi,this.settings,this.credentialsStorage,this.syncKeyManager,a),this.event_names={BLOCK_ACCESS:"BLOCK_ACCESS",UNAUTHORIZED_401:"UNAUTHORIZED_401",FORBIDDEN_403:"FORBIDDEN_403"},this.authorized=!1,this.api.on(Gr,()=>this.emit(this.event_names.UNAUTHORIZED_401)),this.api.on(Ur,()=>this.emit(this.event_names.FORBIDDEN_403)),this.api.on(Lr,()=>this.emit(this.event_names.BLOCK_ACCESS))}async init(){await this.initLocalCryptoSystem(),this.credentialsStorage.setLocalCryptoSystem(this.localCryptoSystem),EN.hasSecureDataMigration()||await this.migrateSecureData(),!EN.hasKeytarMigration()&&this.systemHasKeychain&&await this.migrateKeychain(),function(){const e=!!localStorage.getItem("isKeepaliveInSecondsMigrated"),t=FS.getKeepAliveInterval();if(!e){if(t){const e=Math.round(Number(t)/1e3);FS.setKeepAliveInterval(e.toString())}localStorage.setItem("isKeepaliveInSecondsMigrated","true")}}(),await this.store.removeUnsyncedDeleteFailedData(),!1===this.settings.getDeprecatedUserTeamStatus().isTeam&&await this.store.removeSharedLocalData()}async initLocalCryptoSystem(){if(await this.tryToInitLocalCryptoSystem(),null!=this.localCryptoSystem&&FS.getLocalKeyIsReady())TS.info("init store with localCryptoSystem"),await this.store.initWithCryptor(this.localCryptoSystem);else{TS.info("init store with RNCryptor");const e=new kx;await this.store.initWithCryptor(e),null==this.localCryptoSystem&&await this.generateLocalCryptoSystem(),this.settings.getDeprecatedUserStr()||await this.tryToMigrateToLocalCryptoSystem(e)}}async tryToInitLocalCryptoSystem(){const e=await this.getLocalKey();if(e)this.localCryptoSystem=new fN(e);else if(FS.getLocalKeyIsReady())throw TS.exception("LocalCryptoSystem's key is missing",new Error),new Gx("Can't read localKey on init")}async generateLocalCryptoSystem(){const e=fN.generateEncryptionKey();await this.setLocalKey(e);const t=await this.getLocalKey();if(!t)throw TS.exception("Cannot verify the LocalCryptoSystem's key",new Error),new Gx("localKey !== confirmedLocalKey");this.localCryptoSystem=new fN(t)}async tryToMigrateToLocalCryptoSystem(e){if(!FS.getLocalKeyIsReady()){if(!this.localCryptoSystem)return void TS.exception("Cannot start migration because a local crypto system is unavailable",new Error);TS.info("Beginning a local crypto system migration");const t=new vN(e,this.localCryptoSystem);this.migrateLocalHost(t),await this.store.updateCryptor(t),await this.store.updateCryptor(this.localCryptoSystem,!0),FS.setLocalKeyIsReady(),TS.info("Finished a local crypto system migration")}}migrateLocalHost(e){const t=FS.getDeprecatedLocalhost();if(t){const n=e;t.username=n.decrypt(t.username),t.password=n.decrypt(t.password),FS.setDeprecatedLocalhost({...t,username:this.localCryptoSystem.encrypt(t.username),password:this.localCryptoSystem.encrypt(t.password)})}}async resetUserData(){try{this.auth.removeUserData(),await this.clearDB()}catch(e){TS.exception("Cannot reset user data",e)}}async sync(e){this.authorized&&(await this.shouldRequestPasswordToEnableSharing(e)?this.dispatch(wH()):await this.synchronization.sync(e))}async reloadData(e){this.authorized&&(await this.shouldRequestPasswordToEnableSharing(e)?this.dispatch(wH()):await this.synchronization.reloadData(e))}async syncAllData(e){if(!this.authorized)return;const{canEditSharedEntities:t}=this.settings.getDeprecatedUserTeamStatus();await this.store.markAllSyncableCollectionsAsUpdateFailed(t===Ix.yes),await this.shouldRequestPasswordToEnableSharing(e)?this.dispatch(wH()):await this.synchronization.sync(e)}async setSynchronizeKeySetting(e){await this.settings.setSettings({synchronize_key:e})}async pushSettings(){await this.synchronization.pushSettings()}async signedIn(e,t){const n=this.syncKeyManager.rnCryptorForMigration();await this.tryToMigrateToLocalCryptoSystem(n),this.authorized=!0,this.dispatch(Gl()),e&&aw(e)&&this.dispatch(jc.request()),t||this.dispatch(ts.request("does-not-block-ui")),this.dispatch(Hx())}async tryToRestoreUser(e){TS.info("Restoring the user");if(!this.settings.getDeprecatedUserStr())return TS.info("Restored a free user"),{isRestored:!0,isFreeUser:!0};const t=this.credentialsStorage.passwordRememberStatus();if("not-remembered"===t)return TS.info("User is not remembered, skip restoring"),{isRestored:!1,isFreeUser:!1};if("remembered-without-sharing"===t&&null!=e){TS.info("Restored a remembered user with disabled sharing");const t=await this.synchronization.getIsSharingEnabled(e);this.dispatch(ss(t))}else TS.info("Restored a remembered user");const n=this.credentialsStorage.getApiKey();return this.auth.updateApiCredentials(n),{isRestored:!0,isFreeUser:!1}}async convertUserAccountToTeamType({userId:e}){if(!this.authorized)return;const{isOwner:t}=this.settings.getDeprecatedUserTeamStatus();null!=t?await this.syncKeyManager.convertUserAccountToTeamType(e,t):TS.exception("Cannot convert user to a team type because 'isOwner' is 'null'",new Error)}async enableSharing(e,t,n){if(TS.info("User tries to enable sharing"),!this.authorized)return;await this.auth.validatePassword({userId:e,password:t},n);const r=this.syncKeyManager.rnCryptorForMigration();await this.tryToMigrateToLocalCryptoSystem(r);const a=await this.synchronization.getIsSharingEnabled(e);this.dispatch(ss(a)),this.dispatch(ts.request("does-not-block-ui"))}async login({rememberPassword:e=!1,isReLogin:t=!1,...n}){return TS.info("User logs in"),this.auth.login({rememberPassword:e,isReLogin:t,...n})}async afterLogin({username:e,password:t,rememberPassword:n=!1,authyToken:r,isReLogin:a=!1,response:i,shouldSkipSyncAfterSignIn:s,authMethod:o}){try{const{user:l}=await this.auth.afterLogin({username:e,password:t,rememberPassword:n,authyToken:r,isReLogin:a,authMethod:o,response:i});await this.signedIn(l,s);const{user_id:c}=i.bulk_account.account,u=await this.synchronization.getIsSharingEnabled(c);return this.dispatch(ss(u)),TS.info("Signed in a logged in user"),l.account.pro_mode}catch(e){throw TS.info("User has failed to login"),this.authorized=!1,e}}async logout(){try{this.api.logout().catch(e=>{if(!(e instanceof jr))throw e}),await this.clearUserData()}catch(e){TS.exception("Cannot logout the user",e)}}async clearUserData(){await this.auth.logout(),await this.clearDB(),Dx.clearAll()}async clearDB(){await this.store.clearAll(),await this.settings.clearData(),await this.settings.generateData(),this.authorized=!1}async changeUsername(e,t,n){const{token:r}=await this.getSecurityToken(t);await this.auth.changeUsername(e,r,n),await this.auth.updateUserProfile()}async deleteAccount(e,t){const{token:n}=await this.getSecurityToken(e);await this.api.deleteAccount({security_token:n,otp_token:t})}async changePassword(e){if(!this.authorized)throw new HN;const{userId:t,oldPassword:n,newPassword:r,authyToken:a}=e,i=this.settings.isSynchingKeys(),{isOwner:s,canEditSharedEntities:o}=this.settings.getDeprecatedUserTeamStatus(),l=await this.syncKeyManager.syncCryptor(t,"v3",s);await this.synchronization.fullSync(t,{syncKeysAndIdentities:i,personalEncryptionSchema:"v3",teamEncryptionSchema:null,canEditSharedEntities:o,cryptor:l});const c={syncKeysAndIdentities:i,personalEncryptionSchema:"v3",teamEncryptionSchema:dw(await this.api.bulkAccount()),canEditSharedEntities:o};await this.synchronization.syncHistory({...c,cryptor:l},0);const{rnCryptor:u,...p}=await this.auth.getDataFromNewPassword(r),d=new cN(new Tx(Cx(r,{encryption:p.salt,hmac:p.hmac_salt})),null,null),h=await this.synchronization.getReEncryptedHistoryData({...c,cryptor:d}),f={...p,old_password:wx.generateHash(n),objects:[...this.store.getReEncryptedData(u,i),...h]};a&&(f.authy_token=a),await this.auth.changePassword(f,r)}async getSrpSpecs(e){const{salt:t,identifier:n}=await this.api.generateSRPSalt();return{verifier:new FN(n,e,Buffer.from(t,"base64")).generateVerifier(),srp_salt:t}}async changePasswordWithSecurityToken(e,t,n){const{token:r}=await this.getSecurityToken(e),a=await this.api.regenerateSpecs(),i=await this.syncKeyManager.reencryptPersonalPrivateKey({password:t,encryptionSalt:a.salt,hmacSalt:a.hmac_salt}),{srp_salt:s,verifier:o}=await this.getSrpSpecs(t),l={verifier:o,srp_salt:s,personal_keyset:i,cryptospec:{salt:a.salt,hmac_salt:a.hmac_salt},security_token:r};n&&(l.otp_token=n),await this.auth.changePasswordWithSecurityToken(l,t)}async recoverAccount(e){if(!this.authorized)throw new HN;const{verificationCode:t,newPassword:n,authyToken:r}=e,{id:a}=await this.api.getUserProfile(),i=this.settings.isSynchingKeys(),{isOwner:s,canEditSharedEntities:o}=this.settings.getDeprecatedUserTeamStatus(),l={syncKeysAndIdentities:i,personalEncryptionSchema:"v3",teamEncryptionSchema:null,canEditSharedEntities:o,cryptor:await this.syncKeyManager.syncCryptor(a,"v3",s)};await this.synchronization.fullSync(a,l);const{rnCryptor:c,...u}=await this.auth.getDataFromNewPassword(n,!0),p={...u,security_token:t,objects:this.store.getReEncryptedData(c,i)};r&&(p.otp_token=r);const{terminalObjects:d}=await this.auth.recoverAccount(p,n),h=await this.synchronization.getIsSharingEnabled(a);this.dispatch(ss(h));const f=await this.syncKeyManager.syncCryptor(a,"v3",s);this.synchronization.gotBulkData(d,{syncKeysAndIdentities:l.syncKeysAndIdentities,cryptor:f})}otpRegisterProviderAuthy(e){return this.api.registerUserAuthy({cellphone:e})}otpRegisterProviderTotp(){return this.api.otpRegisterProviderTotp()}getLocalhost(){var e,t;const n=FS.getDeprecatedLocalhost();return n?(n.username=null!==(e=this.localCryptoSystem.decrypt(n.username))&&void 0!==e?e:"",n.password=null!==(t=this.localCryptoSystem.decrypt(n.password))&&void 0!==t?t:"",Jo.fromLocalhost(n)):null}setLocalhost(e){FS.setDeprecatedLocalhost({...e,username:this.localCryptoSystem.encrypt(e.username),password:this.localCryptoSystem.encrypt(e.password)})}removeLocalhost(){FS.removeDeprecatedLocalhost()}signUpFree(e){return this.auth.signUpFree(e)}trialSignup(e){return this.auth.trialSignup(e)}trialSignupViaSso(e,t){return this.auth.trialSignupViaSso(e,t)}createTeamTrial(e,t){return this.api.createTeamTrial({team_name:e,invites:t})}inviteTeamMember(e,t){return this.api.inviteTeamMember({email:e,role:t})}getTeamSeatsList(e=0,t=50){return this.api.getTeamSeatsList({offset:e,limit:t})}getTeamMembersList(e=0,t=50){return this.api.getTeamMembersList({offset:e,limit:t})}getTeamInvitesList(e=0,t=50){return this.api.getTeamInvitesList({offset:e,limit:t})}getTeamMembersStaleEncryptionList(e=0,t=30){return this.api.getTeamMembersStaleEncryptionList({offset:e,limit:t})}getStaleEncryptionDevicesList(e=0,t=50){return this.api.getStaleEncryptionDevicesList({offset:e,limit:t})}async getProductboardToken(){const{productboard_jwt:e}=await this.api.getProductBoardToken();return e}async getOnlySharedEntities(e,t,n){if(!this.authorized)throw new HN;const r=await this.api.getDataForTeamTrialDeactivation(),a=this.settings.isSynchingKeys(),{isOwner:i}=this.settings.getDeprecatedUserTeamStatus(),s=await this.syncKeyManager.syncCryptor(e,t,i);return this.store.prepareSharedEntitiesForDowngrade(r,s,t,n,a,"decrypt")}async deactivateTeamTrial(e,t,n){if(!this.authorized)throw new HN;const r=await this.getOnlySharedEntities(e,t,n),a=this.settings.isSynchingKeys(),{isOwner:i}=this.settings.getDeprecatedUserTeamStatus(),s=await this.syncKeyManager.syncCryptor(e,t,i),o={terminal_objects:this.store.prepareSharedEntitiesForDowngrade(r,s,t,n,a,"encrypt")};return this.api.deactivateTeamTrial(o)}async getLocalKey(){if(!this.systemHasKeychain)return FS.getLocalKey();try{return await this.keytar.getPassword("localKey")}catch(e){throw TS.exception("Cannot get a localKey from keychain",e),e}}async setLocalKey(e){if(!this.systemHasKeychain)return FS.setLocalKey(e),void FS.setLocalKeyVault("localStorage");try{await this.keytar.setPassword("localKey",e),FS.setLocalKeyVault("keychain")}catch(e){throw TS.exception("Cannot set a localKey in keychain",e),e}}async testSystemKeychain(){try{await this.keytar.getPassword("localKey"),this.systemHasKeychain=!0}catch(e){e instanceof SN||TS.exception("Keychain is not available for an unexpected reason",e)}}async migrateSecureData(){try{const e=this.settings.getDeprecatedUserData();if(null!=e){const{api_key:t,encryption_key:n,encryption_salt:r,hmac_key:a,hmac_salt:i}=e;this.credentialsStorage.setRNCryptorSet({encryptionKey:n,hmacKey:a,encryptionSalt:r,hmacSalt:i}),this.credentialsStorage.setApiKey(t),await this.settings.setUserData(null)}}catch(e){return void TS.exception("Cannot migrate credentials from IndexedDB to Local Crypto System",e)}EN.addSecureDataMigration()}async migrateKeychain(){try{const e=(await this.keytar.findCredentials().catch(e=>{throw TS.exception("Cannot get a list of secure data from keychain",e),e})).filter(e=>"localKey"!==e.account).map(e=>this.keytar.deletePassword(e.account));await Promise.all(e).catch(e=>{throw TS.exception("Cannot remove secure data from keychain",e),e})}catch(e){return}EN.addKeytarMigration()}async migrateKeychainFromWebsiteToMAS(){if(YS.a.mas()&&FS.getLocalKeyIsReady()&&this.systemHasKeychain&&!await this.keytar.getPassword("localKey")){const e=FS.getLocalKey();if(e)try{await this.keytar.setPassword("localKey",e)}catch(e){TS.exception("Cannot migrate local key from local storage to keychain for MAS",e)}else{const{name:e}=zi.a.parse(u.app.getPath("exe")),t=new bN(e,Object(u.require)("@termius/keytar"));try{const e=await t.getPassword("localKey");e&&await this.keytar.setPassword("localKey",e)}catch(e){TS.exception("Cannot migrate keychain from website to MAS",e)}}}}getInAppMessages(e=0,t=50){return this.api.getInAppMessages({offset:e,limit:t})}async migrateToNewCrypto(e,t){await this.sync(e),await this.clearHistory(),await this.api.migrateToSRP(t)}generateSrpSalt(){return this.api.generateSRPSalt()}async pullHistory({user:e,limit:t}){const n=await this.synchronization.buildSyncOptions(e);return this.synchronization.pullHistory(n,t)}async syncHistory({user:e,limit:t}){const n=await this.synchronization.buildSyncOptions(e);return this.synchronization.syncHistory(n,t)}async clearHistory(){return this.synchronization.clearHistory()}async skipTrialOnboardingInviteStep(e,t){return this.api.skipTrialOnboardingInviteStep({data:e,id:t})}async getSecurityToken(e){const t=await this.auth.updateUserProfile(),{encryption_schema:n}=ow(t);return this.auth.getSecurityToken(e,n)}async isTeamMemberHasCompletedSharing(e){return await this.synchronization.getIsSharingEnabled(e)===uN.setupCompleted}sendFeedback(e){return this.api.sendAppFeedback(e)}async shouldRequestPasswordToEnableSharing(e){const{user_id:t}=e.account;if(null==t)return!0;return await this.synchronization.getIsSharingEnabled(t)===uN.setupIncomplete}}function wH(){return Ec.request({dialog:"EnableSharingDialog",target:"all-windows",props:{}})}var EH=n(215),kH=n.n(EH),TH=n(128),CH=n.n(TH),IH=n(216),AH=n.n(IH);class OH extends _D.a.Model{constructor(){super(...arguments),this.local_updated_at=null,this.isHardDestroyed=null}get version(){return 1}get commonFields(){return["id","local_id","updated_at","is_shared"]}get idAttribute(){return"local_id"}get remoteIdAttribute(){return"id"}get entityName(){}get cryptoFields(){return[]}get sodiumCryptoFields(){return[]}get plainFields(){return[]}get localOnlyFields(){const e=["status"];return void 0!==this.get("id")&&e.push("local_id"),e}get relationsInBulk(){return{}}hasRemoteId(){return!!this.get("id")}isDelayed(){return[lR,sR,oR].includes(this.get("status"))}isCryptoField(e){return this.cryptoFields.includes(e)}isSodiumCryptoField(e){return this.sodiumCryptoFields.includes(e)}isPlainField(e){return this.plainFields.includes(e)}getReEncrypted(e,t){const n=this.toJSON({do_not_encrypt:!1},t);if(n.is_shared)return this.toJSON({do_not_encrypt:!0},t);const r={};for(const[t,a]of Object.entries(n))r[t]=null!=a&&"string"!=typeof a||!this.isCryptoField(t)?kH()(a):e.encrypt(a);return r}getForChangePassword(e){const t=this.getReEncrypted(e);return delete t.local_id,delete t.status,PD()(this.relationsInBulk,(e,n)=>{t[n]&&delete t[n].local_id}),t.set_name=this.collection.nameOfSetInSync,t}get(e,t=!1){const n=super.get(e);if(n&&(this.isCryptoField(e)||this.isSodiumCryptoField(e)&&function(e){if(null==e)return!1;const t=Buffer.from(e,"base64");return t.length>=42&&4===mx(e)&&1===t[1]}(n)||"content"===e)){const r=this.collection.cryptor.decrypt(n,t);return this.deserializeFieldAfterDecryption(e,r)}return n}set(e,t,n){let r={},a=n;if("object"==typeof e?(r=e,a=t):r[e]=t,null!=a&&!a.do_not_encrypt||null==a)for(const e of Object.keys(r||{}))r[e]=this.transformValueDuringSet(e,r[e]);return this.local_updated_at=new Date,super.set(r,a)}transformValueDuringSet(e,t){return null!=t&&(this.isCryptoField(e)||this.isSodiumCryptoField(e)||"content"===e)?this.collection.cryptor.encrypt(this.serializeFieldBeforeEncryption(e,t)):t}unset(e,t){const n=CH()(t||{},{do_not_encrypt:!0});return super.unset(e,n)}clear(e){const t=CH()(e||{},{do_not_encrypt:!0});return super.clear(t)}toJSON(e,t){let n=super.toJSON(e);n=px.a.extend(!0,{},n);try{if(null!=e&&null!=e.do_not_encrypt&&!1===e.do_not_encrypt)for(const e of Object.keys(n))n[e]=this.get(e,t)}catch(e){}return(null==e?void 0:e.with_local_updated_at)&&(n.local_updated_at=this.local_updated_at),n}updateRelationsData(e,t){return PD()(this.relationsInBulk,(n,r)=>{if(null!=e[r]){const a=t[n.collection].findByRemoteId(e[r].id);a&&(e[r].local_id=a.get("local_id"))}}),this.set(e,{do_not_encrypt:!0})}generateIdForSync(e,t){if(null!=t.id)return t.id;if(null!=t.local_id)return`${e}/${t.local_id}`;throw new Error("Unexpected ids in json "+JSON.stringify(t))}getRelationsDataForSync(e){const t={};return PD()(this.relationsInBulk,(n,r)=>{let a=null;const i=this.get(r);null!=i&&(a=e[n.collection].findByLocalId(i.local_id)),t[r]=null!=a?this.generateIdForSync(n.set_name,{id:a.get("id"),local_id:a.get("local_id")}):null}),t}isShouldBeInPostBulkRequestData(){return!0}buildPushData(e,t){const n=this.toJSON({do_not_encrypt:!1});this.localOnlyFields.forEach(e=>{e in n&&delete n[e]});const r=this.encryptDataForBackend(n,e);return hx.is(r)?r:{...r,...this.getRelationsDataForSync(t)}}decryptDataFromBackend(e,t){return null!=e.content?this._decryptV5DataFromBackend(e,t):this._decryptV3DataFromBackend(e,t)}_decryptV5DataFromBackend(e,t){const n=e;try{const r=t.decryptV5(n.content,n.is_shared);if(null==r||""===r)return new hx("empty decrypt",cx.sodium).withContext({kind:this.entityName,id:null==e?void 0:e.id,local_id:null==e?void 0:e.local_id,message:"empty decrypt",operation:"decrypt"});if("string"!=typeof r)return r.withContext({kind:this.entityName,id:null==e?void 0:e.id,local_id:null==e?void 0:e.local_id,message:r.message,operation:"decrypt"});const a=JSON.parse(r);for(const e of Object.keys(a)){(this.isCryptoField(e)||this.isSodiumCryptoField(e)||this.isPlainField(e))&&(n[e]=a[e])}return n.content=a,n}catch(e){return TS.exception(`Cannot proccess a V5 entity from '${this.entityName}'`,e),delete n.content,n}}_decryptV3DataFromBackend(e,t){const n=e;try{for(const e in n)if(this.isCryptoField(e)){const r=t.decryptV3(n[e],n.is_shared);n[e]=null==r?void 0:r.toString()}}catch(e){TS.exception(`Cannot proccess a V3 entity from '${this.entityName}'`,e)}return n}encryptDataForBackend(e,t){var n;const{cryptor:r,personalEncryptionSchema:a,teamEncryptionSchema:i,canEditSharedEntities:s}=t,o=s!==Ix.sharingUnavailable,l=e.is_shared&&o;if("v5"===(l?i:a)){const t=null!==(n=e.content)&&void 0!==n?n:{},a=JSON.stringify({version:this.version,...t,...iR()(e,[...this.cryptoFields,...this.sodiumCryptoFields,...this.plainFields])}),i=r.encryptV5(a,l);return"string"!=typeof i?null!=i?i:new hx("content is empty",cx.sodium).withContext({kind:this.entityName,id:null==e?void 0:e.id,local_id:null==e?void 0:e.local_id,message:"content is empty",operation:"encrypt"}):{...iR()(e,this.commonFields),is_shared:l,content:i}}{const t=GP()(e,["content"]);for(const n of Object.keys(t))if(this.isCryptoField(n)){const a=r.encryptV3(t[n],l);if(hx.is(a))return a.withContext({kind:this.entityName,id:null==e?void 0:e.id,local_id:null==e?void 0:e.local_id,message:a.message,operation:"encrypt"});t[n]=a}return t.is_shared=l,t}}encryptDataForDatabase(e,t){const n=e;for(const e of Object.keys(n)){(this.isCryptoField(e)||this.isSodiumCryptoField(e)||"content"===e)&&(n[e]=t.encrypt(this.serializeFieldBeforeEncryption(e,n[e])))}return n}serializeFieldBeforeEncryption(e,t){return"content"===e&&null!=t?JSON.stringify(t):t}deserializeFieldAfterDecryption(e,t){return"content"===e&&"string"==typeof t?this.parseContent(t):t}parseContent(e){try{return JSON.parse(e)}catch(t){return void TS.exception(`Cannot parse content of a '${this.entityName}' entity${AH()(e)?" because it is empty":""}`,t)}}hardDestroy(e){return this.isHardDestroyed=!0,this.destroy(e)}async saveAll(){return this.save(null,{do_not_encrypt:!0}),SH(this)}}var xH=OH;class NH extends OH{isShouldBeInPostBulkRequestData(){return!1}get cryptoFields(){return["accessKeyId","secretAccessKey","region"]}get plainFields(){return["ipAddressType"]}}var RH=new class extends HD{constructor(){super(...arguments),this.model=NH}get dbName(){return"aws_configs"}get dbVersion(){return 2}get useInResetPassword(){return!1}async migrate(){const e=new oS(this.dbName);e.version(.1).stores({aws_configs:"++local_id,&local_id,&id,status"}),e.version(.2).stores({aws_configs:"++local_id,&local_id,&id,status"}).upgrade(e=>e.table(this.dbName).toCollection().modify(e=>{e.serviceType||(e.serviceType="ec2")})),await e.open(),e.close()}};class DH extends OH{isShouldBeInPostBulkRequestData(){return!1}get cryptoFields(){return["client_id","tenant_id","client_secret"]}get plainFields(){return[]}}var HH=new class extends HD{constructor(){super(...arguments),this.model=DH}get dbName(){return"azure_configs"}get dbVersion(){return 3}get useInResetPassword(){return!1}};class FH extends OH{isShouldBeInPostBulkRequestData(){return!1}get cryptoFields(){return["token"]}get plainFields(){return[]}}var GH=new class extends HD{constructor(){super(...arguments),this.model=FH}get dbName(){return"digital_ocean_configs"}get dbVersion(){return 1}get useInResetPassword(){return!1}};var UH=class extends xH{get entityName(){return"SSHConfig"}get cryptoFields(){return["env_variables"]}get sodiumCryptoFields(){return["mosh_server_command"]}get plainFields(){return["agent_forwarding","charset","color_scheme","port","use_mosh"]}get relationsInBulk(){return{identity:{required:!1,set_name:zD,collection:"identities"},startup_snippet:{required:!1,set_name:VD,collection:"snippets"},proxycommand:{required:!1,set_name:tH,collection:"proxies"}}}buildPushData(e,t){const n=super.buildPushData(e,t);return hx.is(n)||delete n.identity,n}};async function LH(e,t,n){const r=new oS(e);r.version(.1).stores({[e]:"++local_id,&local_id,&id,status"}),r.version(.2).stores({[e]:"++local_id,&local_id,&id,status"}).upgrade(t=>t.table(e).filter(e=>!e.identity).delete()),r.version(.3).stores({[e]:"++local_id,&local_id,&id,status"}).upgrade(async t=>{const n=await t.table(e).orderBy("id").toArray(),r=new Set(n.map(e=>e.id));await t.table(e).filter(e=>r.has(e.remote_id)).delete(),await t.table(e).filter(e=>!!e.remote_id).modify(e=>{e.id||(e.id=e.remote_id),delete e.remote_id})}),r.version(.4).stores({[e]:"++local_id,&local_id,&id,status"}).upgrade(n=>n.table(e).filter(e=>!!e.config).modify(e=>{e[t]||(e[t]=e.config),delete e.config})),r.on("populate",r=>{r.table(e).bulkPut(n.filter(e=>!!e.identity).map(e=>({updated_at:e.updated_at,id:e.id,[t]:{local_id:e.local_id,id:e.id},identity:e.identity,is_shared:!1,status:e.status})))}),await r.open(),r.close()}var jH=new class extends DD{constructor(){super(...arguments),this.model=UH}get dbName(){return"ssh_configs"}get dbVersion(){return 2}get useInResetPassword(){return!1}get nameOfSetInSync(){return $D}async migrate(){const e=new oS(this.dbName);e.version(.1).stores({ssh_configs:"++local_id,&local_id,&id,status"}),e.version(.2).stores({ssh_configs:"++local_id,&local_id,&id,status"}).upgrade(e=>e.table(this.dbName).toCollection().modify(e=>{e.identity=e.ssh_identity,delete e.ssh_identity}));const t=await e.table(this.dbName).toArray();e.close(),await LH("ssh_config_identities","ssh_config",t)}prepareForSync(e,t){var n;const r=e;return t||(null===(n=null==r?void 0:r.identity)||void 0===n?void 0:n.is_shared)||delete r.identity,r}};var MH=class extends OH{get entityName(){return"Group"}get cryptoFields(){return["label"]}get commonFields(){return[...super.commonFields,"sharing_mode"]}get relationsInBulk(){return{parent_group:{required:!1,set_name:jD,collection:"groups"},ssh_config:{required:!1,set_name:$D,collection:"ssh_configs"},telnet_config:{required:!1,set_name:WD,collection:"telnet_configs"}}}getReEncrypted(e,t){const n=super.getReEncrypted(e,t);if(n.ssh_config){const r=jH.findById(n.ssh_config);r&&(n.ssh_config=r.getReEncrypted(e,t))}return n}};var BH=new class extends DD{constructor(){super(...arguments),this.model=MH}get dbName(){return"groups"}get nameOfSetInSync(){return jD}async saveSyncData(e,t,n,r){await super.saveSyncData(e,t,n,r);for(const t of e.data){const e=this.findByRemoteId(t.id);null==e||e.updateRelationsData(t,n)}await this.save(),await this.fetch({do_not_encrypt:!0})}async moveNewSharedEntitiesToRoot(){this.forEach(e=>{const t=e.toJSON();if(t.is_shared&&t.status===oR&&t.parent_group){const n=this.get(t.parent_group.local_id);(null==n?void 0:n.get("status"))!==oR&&e.set("parent_group",null)}}),await this.save()}findBySshConfig(e){return this.find(t=>{var n;return(null===(n=t.get("ssh_config"))||void 0===n?void 0:n.local_id)===e.local_id})}findByTelnetConfig(e){return this.find(t=>{var n;return(null===(n=t.get("telnet_config"))||void 0===n?void 0:n.local_id)===e.local_id})}};var KH=class extends xH{isShouldBeInPostBulkRequestData(){return!1}get cryptoFields(){return["label","public_key","storage"]}};var qH=new class extends HD{constructor(){super(...arguments),this.model=KH}get dbName(){return"hardware_keys"}get dbVersion(){return 1}get useInResetPassword(){return!1}};var VH=class extends xH{get cryptoFields(){return["script"]}};var $H=new class extends HD{constructor(){super(...arguments),this.model=VH}get dbName(){return"history_commands"}get dbVersion(){return 1}get useInResetPassword(){return!1}};var WH=class extends xH{get commonFields(){return["ssh_config","hosts_chain"].concat(super.commonFields)}};var zH=new class extends DD{constructor(){super(...arguments),this.model=WH}get dbName(){return"host_chains"}get nameOfSetInSync(){return ZD}get useInResetPassword(){return!1}get useInDeactivateTeam(){return!1}async collectGarbage(){const e=this.filter(e=>UD(e)&&!function(e){return((e,t,n,r)=>{const a=e.get(t);if(!(ZN()(a)||ID()(a)))return!1;const i=ZN()(a)?{id:a}:{local_id:Number.parseInt(a.split(n+"/")[1],10)},s=r.findById(i);return null!=s&&s.get("status")!==lR})(e,"ssh_config","sshconfig_set",jH)}(e));await Promise.all(e.map(GD))}};var JH=class extends xH{isShouldBeInPostBulkRequestData(){return!1}};var XH=new class extends HD{constructor(){super(...arguments),this.model=JH}get dbName(){return"host_latest_activities"}};var QH=class extends xH{get relationsInBulk(){return{host:{required:!0,set_name:MD,collection:"hosts"},snippet:{required:!0,set_name:VD,collection:"snippets"}}}isShouldBeInPostBulkRequestData(){return void 0===this.get("id")}};var YH=class extends xH{get entityName(){return"Host"}get cryptoFields(){return["address","label","cloud_instance_id","cloud_instance_type"]}get plainFields(){return["backspace","interaction_date","ip_version","os_name"]}get relationsInBulk(){return{group:{required:!1,set_name:jD,collection:"groups"},ssh_config:{required:!1,set_name:$D,collection:"ssh_configs"},telnet_config:{required:!1,set_name:WD,collection:"telnet_configs"}}}getReEncrypted(e,t){const n=super.getReEncrypted(e,t);if(n.ssh_config){const r=jH.findById(n.ssh_config);r&&(n.ssh_config=r.getReEncrypted(e,t))}return n}};var ZH=new class extends DD{constructor(){super(...arguments),this.model=YH}get dbName(){return"hosts"}get nameOfSetInSync(){return MD}async moveNewSharedEntitiesToRoot(e){this.forEach(t=>{const n=t.toJSON();if(n.is_shared&&n.status===oR&&n.group){const r=e.get(n.group.local_id);(null==r?void 0:r.get("status"))!==oR&&t.set("group",null)}}),await this.save()}findBySshConfig(e){return this.find(t=>{var n;return(null===(n=t.get("ssh_config"))||void 0===n?void 0:n.local_id)===e.local_id})}findByTelnetConfig(e){return this.find(t=>{var n;return(null===(n=t.get("telnet_config"))||void 0===n?void 0:n.local_id)===e.local_id})}};var eF=class extends xH{get entityName(){return"Snippet"}get cryptoFields(){return["label","script"]}get relationsInBulk(){return{package:{required:!1,set_name:KD,collection:"snippets_packages"}}}get plainFields(){return["auto_close"]}};var tF=new class extends DD{constructor(){super(...arguments),this.model=eF}get dbName(){return"snippets"}get nameOfSetInSync(){return VD}};var nF=new class extends DD{constructor(){super(...arguments),this.model=QH}get dbName(){return"host_snippets"}get useInResetPassword(){return!1}get useInDeactivateTeam(){return!1}get nameOfSetInSync(){return eH}async collectGarbage(){const e=this.filter(e=>UD(e)&&!(LD(e,"host",ZH)&&LD(e,"snippet",tF)));await Promise.all(e.map(GD))}};var rF=class extends xH{get entityName(){return"Identity"}get cryptoFields(){return["label","password","username"]}get plainFields(){return["is_visible"]}get relationsInBulk(){return{ssh_key:{required:!1,set_name:JD,collection:"ssh_keys"}}}get localOnlyFields(){return[...super.localOnlyFields,"hardware_key"]}};var aF=new class extends DD{get model(){return rF}get dbName(){return"ssh_identities"}get nameOfSetInSync(){return zD}shouldSyncRaw(e,t){return!!t.syncKeysAndIdentities||Boolean(e.is_shared)}};var iF=class extends xH{get entityName(){return"PrivateKey"}get cryptoFields(){return["label","passphrase","private_key","public_key"]}};var sF=new class extends DD{constructor(){super(...arguments),this.model=iF}get dbName(){return"keys"}get nameOfSetInSync(){return JD}shouldSyncRaw(e,t){return!!t.syncKeysAndIdentities||Boolean(e.is_shared)}};var oF=class extends OH{get entityName(){return"KnownHost"}get cryptoFields(){return["hostnames","key"]}};var lF=new class extends DD{constructor(){super(...arguments),this.model=oF}get dbName(){return"known_hosts"}get nameOfSetInSync(){return YD}};var cF=class extends xH{get entityName(){return"MultiKey"}get cryptoFields(){return["username"]}};var uF=new class extends DD{constructor(){super(...arguments),this.model=cF}get dbName(){return"multi_keys"}get nameOfSetInSync(){return sH}};var pF=class extends xH{get entityName(){return"PortForwardingRule"}get cryptoFields(){return["hostname"]}get sodiumCryptoFields(){return["label"]}get plainFields(){return["bound_address","local_port","pf_type","remote_port"]}get relationsInBulk(){return{host:{required:!0,set_name:MD,collection:"hosts"}}}};var dF=new class extends DD{constructor(){super(...arguments),this.model=pF}get dbName(){return"pf_rules"}get nameOfSetInSync(){return BD}async collectGarbage(){const e=this.filter(e=>UD(e)&&!LD(e,"host",ZH));await Promise.all(e.map(GD))}};var hF=class extends xH{get entityName(){return"PortKnockingRule"}get cryptoFields(){return["knocking","label"]}get relationsInBulk(){return{host:{required:!1,set_name:MD,collection:"hosts"}}}};var fF=new class extends DD{constructor(){super(...arguments),this.model=hF}get dbName(){return"port_knockings"}get nameOfSetInSync(){return qD}};var mF=class extends xH{get entityName(){return"Proxy"}get cryptoFields(){return["hostname"]}get plainFields(){return["port","type"]}get relationsInBulk(){return{identity:{required:!1,set_name:zD,collection:"identities"}}}buildPushData(e,t){const n=super.buildPushData(e,t);return hx.is(n)||e.syncKeysAndIdentities||n.is_shared||delete n.identity,n}};var SF=new class extends DD{constructor(){super(...arguments),this.model=mF}get dbName(){return"proxies"}get nameOfSetInSync(){return tH}prepareForSync(e,t){const n=e;return t||(null==n?void 0:n.is_shared)||delete n.identity,n}};var yF=class extends xH{get cryptoFields(){return["label"]}};var gF=new class extends DD{constructor(){super(...arguments),this.model=yF}get dbName(){return"snippets_packages"}get nameOfSetInSync(){return KD}};var vF=class extends xH{get cryptoFields(){return["certificate","label"]}get relationsInBulk(){return{ssh_key:{required:!0,set_name:JD,collection:"ssh_keys"}}}};var _F=new class extends DD{constructor(){super(...arguments),this.model=vF}get dbName(){return"ssh_certificates"}get nameOfSetInSync(){return oH}shouldSyncRaw(e,t){return!!t.syncKeysAndIdentities||Boolean(e.is_shared)}};var bF=class extends xH{get relationsInBulk(){return{ssh_config:{required:!0,set_name:$D,collection:"ssh_configs"},identity:{required:!0,set_name:zD,collection:"identities"}}}};var PF=new class extends DD{constructor(){super(...arguments),this.model=bF}get dbName(){return"ssh_config_identities"}get dbVersion(){return 4}get useInResetPassword(){return!1}get useInDeactivateTeam(){return!1}get nameOfSetInSync(){return nH}};var wF=new class extends DD{constructor(){super(...arguments),this.model=bF}get dbName(){return"ssh_config_identities_shared"}get dbVersion(){return 4}get useInResetPassword(){return!1}get useInDeactivateTeam(){return!1}get nameOfSetInSync(){return rH}};class EF extends xH{get relationsInBulk(){return{host:{required:!0,set_name:MD,collection:"hosts"},tag:{required:!0,set_name:QD,collection:"tags"}}}}class kF extends xH{get entityName(){return"Tag"}get cryptoFields(){return["label"]}}var TF=new class extends DD{constructor(){super(...arguments),this.model=kF}get dbName(){return"tags"}get nameOfSetInSync(){return QD}};var CF=new class extends DD{constructor(){super(...arguments),this.model=EF}get dbName(){return"tag_hosts"}get useInResetPassword(){return!1}get useInDeactivateTeam(){return!1}get nameOfSetInSync(){return XD}findByHostAndTag(e,t){return this.find(n=>n.get("tag")&&n.get("host")&&n.get("host").local_id===e&&n.get("tag").local_id===t)}async collectGarbage(){const e=this.filter(e=>UD(e)&&!(LD(e,"tag",TF)&&LD(e,"host",ZH)));await Promise.all(e.map(GD))}findByHost(e){return this.filter(t=>t.get("host")&&t.get("host").local_id===e)}findByTag(e){return this.filter(t=>t.get("tag")&&t.get("tag").local_id===e)}};var IF=class extends xH{get relationsInBulk(){return{telnet_config:{required:!0,set_name:WD,collection:"telnet_configs"},identity:{required:!0,set_name:zD,collection:"identities"}}}};var AF=new class extends DD{constructor(){super(...arguments),this.model=IF}get dbName(){return"telnet_config_identities"}get dbVersion(){return 4}get useInResetPassword(){return!1}get useInDeactivateTeam(){return!1}get nameOfSetInSync(){return aH}};var OF=new class extends DD{constructor(){super(...arguments),this.model=IF}get dbName(){return"telnet_config_identities_shared"}get dbVersion(){return 4}get useInResetPassword(){return!1}get useInDeactivateTeam(){return!1}get nameOfSetInSync(){return iH}};var xF=class extends xH{get entityName(){return"TelnetConfig"}get plainFields(){return["charset","color_scheme","port"]}get relationsInBulk(){return{identity:{required:!1,set_name:zD,collection:"identities"},startup_snippet:{required:!1,set_name:VD,collection:"snippets"}}}buildPushData(e,t){const n=super.buildPushData(e,t);return hx.is(n)||delete n.identity,n}};var NF=new class extends DD{constructor(){super(...arguments),this.model=xF}get dbName(){return"telnet_configs"}get useInResetPassword(){return!1}get nameOfSetInSync(){return WD}async migrate(){const e=new oS(this.dbName);e.version(.1).stores({telnet_configs:"++local_id,&local_id,&id,status"});const t=await e.table(this.dbName).toArray();e.close(),await LH("telnet_config_identities","telnet_config",t)}prepareForSync(e,t){var n;const r=e;return t||(null===(n=null==r?void 0:r.identity)||void 0===n?void 0:n.is_shared)||delete r.identity,r}};var RF={ssh_configs:jH,telnet_configs:NF,groups:BH,hosts:ZH,ssh_keys:sF,taghosts:CF,identities:aF,tags:TF,snippets_packages:gF,snippets:tF,pf_rules:dF,port_knockings:fF,known_hosts:lF,host_snippets:nF,host_chains:zH,proxies:SF,host_latest_activities:XH,ssh_config_identities:PF,ssh_config_identities_shared:wF,telnet_config_identities:AF,telnet_config_identities_shared:OF,multi_keys:uF,aws_configs:RH,hardware_keys:qH,digital_ocean_configs:GH,azure_configs:HH,ssh_certificates:_F,history_commands:$H};const DF={UNKNOWN:0,INVALID_ARGUMENT:1,UNAUTHENTICATED:2,OTP_TOKEN_REQUIRED:3,THROTTLED:4,DELETION_IS_SCHEDULED:5,APP_OUTDATED:6,NOT_MIGRATED:7,INVALID_PROOF:8,INVALID_PUBLIC_DATA:9,OTP_TOKEN_ERROR:10,INACTIVE_TRIAL:11},HF=3;var FF=n(217),GF=n.n(FF);class UF extends Error{constructor(){super(...arguments),this.name="InternalGRPCError"}}CN(UF);var LF=UF,jF=n(65),MF=n.n(jF),BF=n(218),KF=n.n(BF);const qF=(e,t)=>vS()(KF()(e,t),e=>MF()(e)?qF(e,t):e);var VF=qF;class $F extends Error{constructor(){super(...arguments),this.name="GRPCResponseError"}static fromResponseError({code:e,message:t,details:n}){const r=this.convertGRPCErrorMessageToRest(e,t||n||""),a=new $F(r);return a.status=this.convertGRPCErrorCodeToRestStatus(e),a}static convertGRPCErrorCodeToRestStatus(e){return e===DF.INVALID_ARGUMENT?400:[DF.OTP_TOKEN_REQUIRED,DF.OTP_TOKEN_ERROR].includes(e)?487:e===DF.DELETION_IS_SCHEDULED?488:e===DF.APP_OUTDATED?490:[DF.INVALID_PROOF,DF.UNAUTHENTICATED,DF.INACTIVE_TRIAL].includes(e)?401:e===DF.THROTTLED?429:0}static convertGRPCErrorMessageToRest(e,t){return[DF.UNKNOWN,DF.INVALID_ARGUMENT,DF.NOT_MIGRATED,DF.INVALID_PUBLIC_DATA].includes(e)?"Something went wrong, try again.":t}}CN($F);var WF=$F;var zF=class{constructor(){this.generateVerifier=({identifier:e,password:t,salt:n})=>{const r=new FN(e,t,Buffer.from(n,"base64"));this.srpClient=r;return{verifier:r.generateVerifier()}},this.generateClientProof=({identifier:e,password:t,salt:n,publicData:r})=>{const a=new FN(e,t,Buffer.from(n,"base64"));if(this.srpClient=a,a.generateVerifier(),!a.session.agreeServerPublicValue(r))throw new Error("Server public value is invalid");return{public_data:a.session.getPublicValue(),proof:a.session.generateProof()}},this.mapErrorResponseToAppError=e=>e.code===DF.NOT_MIGRATED?new AN:WF.fromResponseError(e),this.mapStreamErrorToAppError=e=>8===e.code?WF.fromResponseError({code:DF.THROTTLED,message:e.details||e.message||""}):new LF(e.details),this.checkServerProof=e=>{var t;if(!(null===(t=this.srpClient)||void 0===t?void 0:t.session.validateServerProof(e)))throw new LF("Server proof is invalid");return!0},this.srpClient=null}},JF=n(219);const XF=(null!=="https://api.termius.com"?"https://api.termius.com":"").replace("https://","wss://");class QF{constructor(e){this.createClient=()=>{const e=Object(JF.io)(`${XF}/${this.namespace}`,{transports:["websocket"],reconnection:!1,multiplex:!1,path:"/socket.io/grpc-proxy",timeout:12e4});return e.io.timeout(12e4),e},this.namespace=e}}async function YF(e,t){const n=new zF,r=new QF(e).createClient();try{return await Promise.race([t(r,n),eG(r,"error").catch(e=>{throw new LF(tG(e))}),eG(r,"proxy-error").catch(e=>{throw new LF(tG(e))}),(a=r.io,new Promise((e,t)=>{a.once("error",t)})).catch(e=>{throw new LF(tG(e))}),eG(r,"grpc-error-response").catch(e=>{throw n.mapErrorResponseToAppError(e)}),eG(r,"grpc-stream-error").catch(e=>{throw n.mapStreamErrorToAppError(e)}),eG(r,"disconnect").catch(()=>{throw new LF("Connection was closed too soon.")})])}finally{r.close()}var a}function ZF(e,t){return new Promise(n=>{e.once(t,n)})}function eG(e,t){return new Promise((n,r)=>{e.once(t,r)})}function tG(e){return"object"==typeof e&&e instanceof Error?e.message:"Unknown error caught"}const nG=async(e,t)=>{const n=VF(e,(e,t)=>GF()(t)),{proof:r,credentials:a,bulk_account:i,device:s}=n;return await t.checkServerProof(r),a.token=await function(e,t,n){var r;const a=null===(r=e.srpClient)||void 0===r?void 0:r.session.getSaltedSecretKey(Buffer.from(t,"base64"));if(!a)throw new LF("Cannot get encryptionKey from session salt");const i=ko.crypto.systems.FromEncryptionKey(a).decrypt(Buffer.from(n,"base64"));if(!i)throw new LF("Cannot decrypt api token");return i.toString()}(t,e.sessionSalt,a.token),{credentials:a,bulk_account:i,device:s}};const rG=(e,t)=>{const{proof:n,token:r}=e;return t.checkServerProof(n),r};class aG{constructor(e=(async()=>!1)){this.isSSLVerificationFailedCallback=e}async handleError(e){try{return await e}catch(e){throw await this.isSSLVerificationFailedCallback()?new Mr:e}}async signUp(e){return this.handleError((async({password:e,...t})=>YF("signup",async(n,r)=>{await ZF(n,"connect"),n.emit("initialRequest",t);const a=await ZF(n,"initialResponse"),i=r.generateVerifier({...a,password:e});return n.emit("finalRequest",i),ZF(n,"finalResponse")}))(e))}async login(e){return this.handleError((async e=>YF("login_v2",async(t,n)=>{await ZF(t,"connect");const{email:r,password:a,authy_token:i,device:s,firebase_token:o,domain_sso_token:l}=e;t.emit("initialRequest",{otp_token:i,email:r,domain_sso_token:l,device:{...s,sub_name:"",mobile_type:HF},firebase_token:o});const c=await ZF(t,"initialResponse"),u=n.generateClientProof({...c,password:a});t.emit("finalRequest",u);const p=await ZF(t,"finalResponse");try{return await nG(p,n)}catch(e){throw e instanceof LF?TS.exception(e.message,e):TS.exception("Cannot handle final gRPC login response",e),e}}))(e))}async getSecurityToken(e,t){return{token:await this.handleError((async(e,t)=>YF("security-token",async(n,r)=>{await ZF(n,"connect"),n.emit("initialRequest",{token:t});const a=await ZF(n,"initialResponse"),i=r.generateClientProof({...a,password:e});n.emit("finalRequest",i);const s=await ZF(n,"finalResponse");try{return rG(s,r)}catch(e){throw e instanceof LF?TS.exception(e.message,e):TS.exception("Cannot handle final gRPC security-token response",e),e}}))(e,t))}}}class iG extends _D.a.Collection{constructor(){super(...arguments),this.indexedDB=null,this.model=xH}async initializeStorage(){this.indexedDB=new xD({storeName:"settings",dbVersion:1,indexes:"local_id,&local_id"}),await this.indexedDB.open(),await this.fetch({do_not_encrypt:!0});await this.getOrCreateDefaultSettings()&&await this.fetch({do_not_encrypt:!0})}async generateData(){await this.getOrCreateDefaultSettings()}getDeprecatedUser(){return this.get("user")}getDeprecatedUserStr(){return this.getDeprecatedUser().get("username_str")}setDeprecatedUserStr(e){return this.getDeprecatedUser().save({username_str:e},{wait:!0})}getDeprecatedUserHasSso(){return this.getDeprecatedUser().get("has_sso")}setDeprecatedUserHasSso(e){return this.getDeprecatedUser().save({has_sso:e},{wait:!0})}getDeprecatedUserId(){return this.getDeprecatedUser().get("user_id")}setDeprecatedUserId(e){return this.getDeprecatedUser().save({user_id:e},{wait:!0})}getDeprecatedUserPro(){return Lx()(this.getDeprecatedUser().get("pro_mode"),!1)}setDeprecatedAuthorizedFeatures(e){return this.getDeprecatedUser().save({authorizedFeatures:e},{wait:!0})}getDeprecatedAuthorizedFeatures(){return Lx()(this.getDeprecatedUser().get("authorizedFeatures"),{})}setDeprecatedTeamPermissions(e){return this.getDeprecatedUser().save({teamPermissions:e},{wait:!0})}getDeprecatedTeamPermissions(){return Lx()(this.getDeprecatedUser().get("teamPermissions"),[])}setDeprecatedTeamInfo(e){return this.getDeprecatedUser().save({teamInfo:e},{wait:!0})}getDeprecatedTeamInfo(){return Lx()(this.getDeprecatedUser().get("teamInfo"),{})}getDeprecatedLastSync(){var e;return null===(e=this.get("last_sync"))||void 0===e?void 0:e.get("date")}setDeprecatedLastSync(e){var t;null===(t=this.get("last_sync"))||void 0===t||t.save({date:e},{wait:!0})}getDeprecatedUserData(){return this.getDeprecatedUser().get("secure_data")}getDeprecatedUserTeamStatus(){const e=this.getDeprecatedUser();if(!e)return{isTeam:null,isOwner:null,teamOwnerEmail:"",teamOwnerId:-1,canEditSharedEntities:Ix.sharingUnavailable};const t=Lx()(e.get("is_team"),null),n=Lx()(e.get("is_owner"),null),r=this.getDeprecatedTeamInfo(),a=n||this.getDeprecatedTeamPermissions().includes("platform__edit_shared_entities"),i=sG({hasEditPermission:a,isTeam:t});return{isTeam:t,isOwner:n,teamOwnerEmail:r.owner,teamOwnerId:r.owner_id,canEditSharedEntities:i}}setUserData(e){return this.getDeprecatedUser().save({secure_data:e},{wait:!0})}getSettings(){return this.get("user_settings")}setSettings(e){return this.getSettings().save(e,{wait:!0})}isSynchingKeys(){return!0===this.getSettings().get("synchronize_key")}async clearData(){var e;await(null===(e=this.indexedDB)||void 0===e?void 0:e.clear()),this.reset()}async getOrCreateDefaultSettings(){var e;let t=!1;return this.get("user")||(this.add({local_id:"user",username:"",password:"",user_id:null,authorizedFeatures:{},teamPermissions:[]}),t=!0),this.get("last_sync")||(this.add({local_id:"last_sync"}),t=!0),this.get("user_settings")||(this.add({local_id:"user_settings"}),t=!0),t&&await(null===(e=this.indexedDB)||void 0===e?void 0:e.saveAll(this.toJSON())),t}}const sG=({isTeam:e,hasEditPermission:t})=>t?Ix.yes:e?Ix.no:Ix.sharingUnavailable;async function oG(e,t,...n){return Mi(e,Ec,t)}function lG(e,...t){return ji(Ec,e)}class cG extends Error{constructor(){super(...arguments),this.name="UserCancelDialogueError"}static swallow(e){if(e instanceof cG)return e;throw e}}const uG=["ResizeObserver loop limit exceeded"];function pG(e){this.message=e}pG.prototype=new Error,pG.prototype.name="InvalidCharacterError";var dG="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new pG("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,a=0,i=0,s="";r=t.charAt(i++);~r&&(n=a%4?64*n+r:r,a++%4)?s+=String.fromCharCode(255&n>>(-2*a&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return s};function hG(e){this.message=e}hG.prototype=new Error,hG.prototype.name="InvalidTokenError";var fG=function(e,t){if("string"!=typeof e)throw new hG("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(dG(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return dG(t)}}(e.split(".")[n]))}catch(e){throw new hG("Invalid token specified: "+e.message)}};const mG=Pi("UPDATE_PRESENCE_EFFECT"),SG=Pi("SET_ACTIVE_TEAMMATES_FOR_PRESENCE_EFFECT"),yG=Pi("JOIN_PRESENCE_EFFECT_CHANNEL"),gG=Pi("LEAVE_PRESENCE_EFFECT_CHANNEL"),vG=Pi("DOWNLOAD_AVATARS"),_G=Pi("UPDATE_AVATARS"),bG=Li("INIT_PRESENCE_EFFECT"),PG=Pi("SHOW_PRESENCE_EFFECT");const wG=Pi("PUBLISH_TO_CENTRIFUGE_REALTIME_COLLABORATION_CHANNEL");var EG,kG;!function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const n of e)t[n]=n;return t},e.getValidEnumValues=t=>{const n=e.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),r={};for(const e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map((function(e){return t[e]})),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(const n of e)if(t(n))return n},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(EG||(EG={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(kG||(kG={}));const TG=EG.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),CG=e=>{switch(typeof e){case"undefined":return TG.undefined;case"string":return TG.string;case"number":return isNaN(e)?TG.nan:TG.number;case"boolean":return TG.boolean;case"function":return TG.function;case"bigint":return TG.bigint;case"symbol":return TG.symbol;case"object":return Array.isArray(e)?TG.array:null===e?TG.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?TG.promise:"undefined"!=typeof Map&&e instanceof Map?TG.map:"undefined"!=typeof Set&&e instanceof Set?TG.set:"undefined"!=typeof Date&&e instanceof Date?TG.date:TG.object;default:return TG.unknown}},IG=EG.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class AG extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(const a of e.issues)if("invalid_union"===a.code)a.unionErrors.map(r);else if("invalid_return_type"===a.code)r(a.returnTypeError);else if("invalid_arguments"===a.code)r(a.argumentsError);else if(0===a.path.length)n._errors.push(t(a));else{let e=n,r=0;for(;r<a.path.length;){const n=a.path[r];r===a.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(a))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}toString(){return this.message}get message(){return JSON.stringify(this.issues,EG.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=(e=>e.message)){const t={},n=[];for(const r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}AG.create=e=>new AG(e);const OG=(e,t)=>{let n;switch(e.code){case IG.invalid_type:n=e.received===TG.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case IG.invalid_literal:n="Invalid literal value, expected "+JSON.stringify(e.expected,EG.jsonStringifyReplacer);break;case IG.unrecognized_keys:n="Unrecognized key(s) in object: "+EG.joinValues(e.keys,", ");break;case IG.invalid_union:n="Invalid input";break;case IG.invalid_union_discriminator:n="Invalid discriminator value. Expected "+EG.joinValues(e.options);break;case IG.invalid_enum_value:n=`Invalid enum value. Expected ${EG.joinValues(e.options)}, received '${e.received}'`;break;case IG.invalid_arguments:n="Invalid function arguments";break;case IG.invalid_return_type:n="Invalid function return type";break;case IG.invalid_date:n="Invalid date";break;case IG.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:EG.assertNever(e.validation):n="regex"!==e.validation?"Invalid "+e.validation:"Invalid";break;case IG.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case IG.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case IG.custom:n="Invalid input";break;case IG.invalid_intersection_types:n="Intersection results could not be merged";break;case IG.not_multiple_of:n="Number must be a multiple of "+e.multipleOf;break;case IG.not_finite:n="Number must be finite";break;default:n=t.defaultError,EG.assertNever(e)}return{message:n}};let xG=OG;function NG(){return xG}const RG=e=>{const{data:t,path:n,errorMaps:r,issueData:a}=e,i=[...n,...a.path||[]],s={...a,path:i};let o="";const l=r.filter(e=>!!e).slice().reverse();for(const e of l)o=e(s,{data:t,defaultError:o}).message;return{...a,path:i,message:a.message||o}};function DG(e,t){const n=RG({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,NG(),OG].filter(e=>!!e)});e.common.issues.push(n)}class HG{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const n=[];for(const r of t){if("aborted"===r.status)return FG;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){const n=[];for(const e of t)n.push({key:await e.key,value:await e.value});return HG.mergeObjectSync(e,n)}static mergeObjectSync(e,t){const n={};for(const r of t){const{key:t,value:a}=r;if("aborted"===t.status)return FG;if("aborted"===a.status)return FG;"dirty"===t.status&&e.dirty(),"dirty"===a.status&&e.dirty(),(void 0!==a.value||r.alwaysSet)&&(n[t.value]=a.value)}return{status:e.value,value:n}}}const FG=Object.freeze({status:"aborted"}),GG=e=>({status:"dirty",value:e}),UG=e=>({status:"valid",value:e}),LG=e=>"aborted"===e.status,jG=e=>"dirty"===e.status,MG=e=>"valid"===e.status,BG=e=>"undefined"!=typeof Promise&&e instanceof Promise;var KG;!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:null==e?void 0:e.message}(KG||(KG={}));class qG{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const VG=(e,t)=>{if(MG(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new AG(e.common.issues);return this._error=t,this._error}}};function $G(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:a}=e;if(t&&(n||r))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(t)return{errorMap:t,description:a};return{errorMap:(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:void 0===t.data?{message:null!=r?r:t.defaultError}:{message:null!=n?n:t.defaultError},description:a}}class WG{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return CG(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:CG(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new HG,ctx:{common:e.parent.common,data:e.data,parsedType:CG(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(BG(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;const r={common:{issues:[],async:null!==(n=null==t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:CG(e)},a=this._parseSync({data:e,path:r.path,parent:r});return VG(r,a)}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:CG(e)},r=this._parse({data:e,path:n.path,parent:n}),a=await(BG(r)?r:Promise.resolve(r));return VG(n,a)}refine(e,t){const n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,r)=>{const a=e(t),i=()=>r.addIssue({code:IG.custom,...n(t)});return"undefined"!=typeof Promise&&a instanceof Promise?a.then(e=>!!e||(i(),!1)):!!a||(i(),!1)})}refinement(e,t){return this._refinement((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1))}_refinement(e){return new RU({schema:this,typeName:qU.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return DU.create(this,this._def)}nullable(){return HU.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return SU.create(this,this._def)}promise(){return NU.create(this,this._def)}or(e){return gU.create([this,e],this._def)}and(e){return bU.create(this,e,this._def)}transform(e){return new RU({...$G(this._def),schema:this,typeName:qU.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new FU({...$G(this._def),innerType:this,defaultValue:t,typeName:qU.ZodDefault})}brand(){return new jU({typeName:qU.ZodBranded,type:this,...$G(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new GU({...$G(this._def),innerType:this,catchValue:t,typeName:qU.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return MU.create(this,e)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const zG=/^c[^\s-]{8,}$/i,JG=/^[a-z][a-z0-9]*$/,XG=/[0-9A-HJKMNP-TV-Z]{26}/,QG=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,YG=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\])|(\[IPv6:(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\.[A-Za-z]{2,})+))$/,ZG=/^(\p{Extended_Pictographic}|\p{Emoji_Component})+$/u,eU=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,tU=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,nU=e=>e.precision?e.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):0===e.precision?e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");class rU extends WG{constructor(){super(...arguments),this._regex=(e,t,n)=>this.refinement(t=>e.test(t),{validation:t,code:IG.invalid_string,...KG.errToObj(n)}),this.nonempty=e=>this.min(1,KG.errToObj(e)),this.trim=()=>new rU({...this._def,checks:[...this._def.checks,{kind:"trim"}]}),this.toLowerCase=()=>new rU({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]}),this.toUpperCase=()=>new rU({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}_parse(e){this._def.coerce&&(e.data=String(e.data));if(this._getType(e)!==TG.string){const t=this._getOrReturnCtx(e);return DG(t,{code:IG.invalid_type,expected:TG.string,received:t.parsedType}),FG}const t=new HG;let n=void 0;for(const i of this._def.checks)if("min"===i.kind)e.data.length<i.value&&(n=this._getOrReturnCtx(e,n),DG(n,{code:IG.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),t.dirty());else if("max"===i.kind)e.data.length>i.value&&(n=this._getOrReturnCtx(e,n),DG(n,{code:IG.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),t.dirty());else if("length"===i.kind){const r=e.data.length>i.value,a=e.data.length<i.value;(r||a)&&(n=this._getOrReturnCtx(e,n),r?DG(n,{code:IG.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&DG(n,{code:IG.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),t.dirty())}else if("email"===i.kind)YG.test(e.data)||(n=this._getOrReturnCtx(e,n),DG(n,{validation:"email",code:IG.invalid_string,message:i.message}),t.dirty());else if("emoji"===i.kind)ZG.test(e.data)||(n=this._getOrReturnCtx(e,n),DG(n,{validation:"emoji",code:IG.invalid_string,message:i.message}),t.dirty());else if("uuid"===i.kind)QG.test(e.data)||(n=this._getOrReturnCtx(e,n),DG(n,{validation:"uuid",code:IG.invalid_string,message:i.message}),t.dirty());else if("cuid"===i.kind)zG.test(e.data)||(n=this._getOrReturnCtx(e,n),DG(n,{validation:"cuid",code:IG.invalid_string,message:i.message}),t.dirty());else if("cuid2"===i.kind)JG.test(e.data)||(n=this._getOrReturnCtx(e,n),DG(n,{validation:"cuid2",code:IG.invalid_string,message:i.message}),t.dirty());else if("ulid"===i.kind)XG.test(e.data)||(n=this._getOrReturnCtx(e,n),DG(n,{validation:"ulid",code:IG.invalid_string,message:i.message}),t.dirty());else if("url"===i.kind)try{new URL(e.data)}catch(r){n=this._getOrReturnCtx(e,n),DG(n,{validation:"url",code:IG.invalid_string,message:i.message}),t.dirty()}else if("regex"===i.kind){i.regex.lastIndex=0;i.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),DG(n,{validation:"regex",code:IG.invalid_string,message:i.message}),t.dirty())}else if("trim"===i.kind)e.data=e.data.trim();else if("includes"===i.kind)e.data.includes(i.value,i.position)||(n=this._getOrReturnCtx(e,n),DG(n,{code:IG.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),t.dirty());else if("toLowerCase"===i.kind)e.data=e.data.toLowerCase();else if("toUpperCase"===i.kind)e.data=e.data.toUpperCase();else if("startsWith"===i.kind)e.data.startsWith(i.value)||(n=this._getOrReturnCtx(e,n),DG(n,{code:IG.invalid_string,validation:{startsWith:i.value},message:i.message}),t.dirty());else if("endsWith"===i.kind)e.data.endsWith(i.value)||(n=this._getOrReturnCtx(e,n),DG(n,{code:IG.invalid_string,validation:{endsWith:i.value},message:i.message}),t.dirty());else if("datetime"===i.kind){nU(i).test(e.data)||(n=this._getOrReturnCtx(e,n),DG(n,{code:IG.invalid_string,validation:"datetime",message:i.message}),t.dirty())}else"ip"===i.kind?(r=e.data,("v4"!==(a=i.version)&&a||!eU.test(r))&&("v6"!==a&&a||!tU.test(r))&&(n=this._getOrReturnCtx(e,n),DG(n,{validation:"ip",code:IG.invalid_string,message:i.message}),t.dirty())):EG.assertNever(i);var r,a;return{status:t.value,value:e.data}}_addCheck(e){return new rU({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...KG.errToObj(e)})}url(e){return this._addCheck({kind:"url",...KG.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...KG.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...KG.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...KG.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...KG.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...KG.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...KG.errToObj(e)})}datetime(e){var t;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,...KG.errToObj(null==e?void 0:e.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...KG.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...KG.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...KG.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...KG.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...KG.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...KG.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...KG.errToObj(t)})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function aU(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,a=n>r?n:r;return parseInt(e.toFixed(a).replace(".",""))%parseInt(t.toFixed(a).replace(".",""))/Math.pow(10,a)}rU.create=e=>{var t;return new rU({checks:[],typeName:qU.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...$G(e)})};class iU extends WG{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){this._def.coerce&&(e.data=Number(e.data));if(this._getType(e)!==TG.number){const t=this._getOrReturnCtx(e);return DG(t,{code:IG.invalid_type,expected:TG.number,received:t.parsedType}),FG}let t=void 0;const n=new HG;for(const r of this._def.checks)if("int"===r.kind)EG.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),DG(t,{code:IG.invalid_type,expected:"integer",received:"float",message:r.message}),n.dirty());else if("min"===r.kind){(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),DG(t,{code:IG.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty())}else if("max"===r.kind){(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),DG(t,{code:IG.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty())}else"multipleOf"===r.kind?0!==aU(e.data,r.value)&&(t=this._getOrReturnCtx(e,t),DG(t,{code:IG.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),DG(t,{code:IG.not_finite,message:r.message}),n.dirty()):EG.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,KG.toString(t))}gt(e,t){return this.setLimit("min",e,!1,KG.toString(t))}lte(e,t){return this.setLimit("max",e,!0,KG.toString(t))}lt(e,t){return this.setLimit("max",e,!1,KG.toString(t))}setLimit(e,t,n,r){return new iU({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:KG.toString(r)}]})}_addCheck(e){return new iU({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:KG.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:KG.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:KG.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:KG.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:KG.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:KG.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:KG.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:KG.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:KG.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&EG.isInteger(e.value))}get isFinite(){let e=null,t=null;for(const n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}iU.create=e=>new iU({checks:[],typeName:qU.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...$G(e)});class sU extends WG{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){this._def.coerce&&(e.data=BigInt(e.data));if(this._getType(e)!==TG.bigint){const t=this._getOrReturnCtx(e);return DG(t,{code:IG.invalid_type,expected:TG.bigint,received:t.parsedType}),FG}let t=void 0;const n=new HG;for(const r of this._def.checks)if("min"===r.kind){(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),DG(t,{code:IG.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty())}else if("max"===r.kind){(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),DG(t,{code:IG.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty())}else"multipleOf"===r.kind?e.data%r.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),DG(t,{code:IG.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):EG.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,KG.toString(t))}gt(e,t){return this.setLimit("min",e,!1,KG.toString(t))}lte(e,t){return this.setLimit("max",e,!0,KG.toString(t))}lt(e,t){return this.setLimit("max",e,!1,KG.toString(t))}setLimit(e,t,n,r){return new sU({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:KG.toString(r)}]})}_addCheck(e){return new sU({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:KG.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:KG.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:KG.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:KG.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:KG.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}sU.create=e=>{var t;return new sU({checks:[],typeName:qU.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...$G(e)})};class oU extends WG{_parse(e){this._def.coerce&&(e.data=Boolean(e.data));if(this._getType(e)!==TG.boolean){const t=this._getOrReturnCtx(e);return DG(t,{code:IG.invalid_type,expected:TG.boolean,received:t.parsedType}),FG}return UG(e.data)}}oU.create=e=>new oU({typeName:qU.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...$G(e)});class lU extends WG{_parse(e){this._def.coerce&&(e.data=new Date(e.data));if(this._getType(e)!==TG.date){const t=this._getOrReturnCtx(e);return DG(t,{code:IG.invalid_type,expected:TG.date,received:t.parsedType}),FG}if(isNaN(e.data.getTime())){return DG(this._getOrReturnCtx(e),{code:IG.invalid_date}),FG}const t=new HG;let n=void 0;for(const r of this._def.checks)"min"===r.kind?e.data.getTime()<r.value&&(n=this._getOrReturnCtx(e,n),DG(n,{code:IG.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),t.dirty()):"max"===r.kind?e.data.getTime()>r.value&&(n=this._getOrReturnCtx(e,n),DG(n,{code:IG.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),t.dirty()):EG.assertNever(r);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new lU({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:KG.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:KG.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}lU.create=e=>new lU({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:qU.ZodDate,...$G(e)});class cU extends WG{_parse(e){if(this._getType(e)!==TG.symbol){const t=this._getOrReturnCtx(e);return DG(t,{code:IG.invalid_type,expected:TG.symbol,received:t.parsedType}),FG}return UG(e.data)}}cU.create=e=>new cU({typeName:qU.ZodSymbol,...$G(e)});class uU extends WG{_parse(e){if(this._getType(e)!==TG.undefined){const t=this._getOrReturnCtx(e);return DG(t,{code:IG.invalid_type,expected:TG.undefined,received:t.parsedType}),FG}return UG(e.data)}}uU.create=e=>new uU({typeName:qU.ZodUndefined,...$G(e)});class pU extends WG{_parse(e){if(this._getType(e)!==TG.null){const t=this._getOrReturnCtx(e);return DG(t,{code:IG.invalid_type,expected:TG.null,received:t.parsedType}),FG}return UG(e.data)}}pU.create=e=>new pU({typeName:qU.ZodNull,...$G(e)});class dU extends WG{constructor(){super(...arguments),this._any=!0}_parse(e){return UG(e.data)}}dU.create=e=>new dU({typeName:qU.ZodAny,...$G(e)});class hU extends WG{constructor(){super(...arguments),this._unknown=!0}_parse(e){return UG(e.data)}}hU.create=e=>new hU({typeName:qU.ZodUnknown,...$G(e)});class fU extends WG{_parse(e){const t=this._getOrReturnCtx(e);return DG(t,{code:IG.invalid_type,expected:TG.never,received:t.parsedType}),FG}}fU.create=e=>new fU({typeName:qU.ZodNever,...$G(e)});class mU extends WG{_parse(e){if(this._getType(e)!==TG.undefined){const t=this._getOrReturnCtx(e);return DG(t,{code:IG.invalid_type,expected:TG.void,received:t.parsedType}),FG}return UG(e.data)}}mU.create=e=>new mU({typeName:qU.ZodVoid,...$G(e)});class SU extends WG{_parse(e){const{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==TG.array)return DG(t,{code:IG.invalid_type,expected:TG.array,received:t.parsedType}),FG;if(null!==r.exactLength){const e=t.data.length>r.exactLength.value,a=t.data.length<r.exactLength.value;(e||a)&&(DG(t,{code:e?IG.too_big:IG.too_small,minimum:a?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&(DG(t,{code:IG.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(DG(t,{code:IG.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new qG(t,e,t.path,n)))).then(e=>HG.mergeArray(n,e));const a=[...t.data].map((e,n)=>r.type._parseSync(new qG(t,e,t.path,n)));return HG.mergeArray(n,a)}get element(){return this._def.type}min(e,t){return new SU({...this._def,minLength:{value:e,message:KG.toString(t)}})}max(e,t){return new SU({...this._def,maxLength:{value:e,message:KG.toString(t)}})}length(e,t){return new SU({...this._def,exactLength:{value:e,message:KG.toString(t)}})}nonempty(e){return this.min(1,e)}}SU.create=(e,t)=>new SU({type:e,minLength:null,maxLength:null,exactLength:null,typeName:qU.ZodArray,...$G(t)});class yU extends WG{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=EG.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==TG.object){const t=this._getOrReturnCtx(e);return DG(t,{code:IG.invalid_type,expected:TG.object,received:t.parsedType}),FG}const{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:a}=this._getCached(),i=[];if(!(this._def.catchall instanceof fU&&"strip"===this._def.unknownKeys))for(const e in n.data)a.includes(e)||i.push(e);const s=[];for(const e of a){const t=r[e],a=n.data[e];s.push({key:{status:"valid",value:e},value:t._parse(new qG(n,a,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof fU){const e=this._def.unknownKeys;if("passthrough"===e)for(const e of i)s.push({key:{status:"valid",value:e},value:{status:"valid",value:n.data[e]}});else if("strict"===e)i.length>0&&(DG(n,{code:IG.unrecognized_keys,keys:i}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of i){const r=n.data[t];s.push({key:{status:"valid",value:t},value:e._parse(new qG(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{const e=[];for(const t of s){const n=await t.key;e.push({key:n,value:await t.value,alwaysSet:t.alwaysSet})}return e}).then(e=>HG.mergeObjectSync(t,e)):HG.mergeObjectSync(t,s)}get shape(){return this._def.shape()}strict(e){return KG.errToObj,new yU({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,a,i,s;const o=null!==(i=null===(a=(r=this._def).errorMap)||void 0===a?void 0:a.call(r,t,n).message)&&void 0!==i?i:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(s=KG.errToObj(e).message)&&void 0!==s?s:o}:{message:o}}}:{}})}strip(){return new yU({...this._def,unknownKeys:"strip"})}passthrough(){return new yU({...this._def,unknownKeys:"passthrough"})}extend(e){return new yU({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new yU({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:qU.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new yU({...this._def,catchall:e})}pick(e){const t={};return EG.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])}),new yU({...this._def,shape:()=>t})}omit(e){const t={};return EG.objectKeys(this.shape).forEach(n=>{e[n]||(t[n]=this.shape[n])}),new yU({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof yU){const n={};for(const r in t.shape){const a=t.shape[r];n[r]=DU.create(e(a))}return new yU({...t._def,shape:()=>n})}return t instanceof SU?new SU({...t._def,type:e(t.element)}):t instanceof DU?DU.create(e(t.unwrap())):t instanceof HU?HU.create(e(t.unwrap())):t instanceof PU?PU.create(t.items.map(t=>e(t))):t}(this)}partial(e){const t={};return EG.objectKeys(this.shape).forEach(n=>{const r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()}),new yU({...this._def,shape:()=>t})}required(e){const t={};return EG.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof DU;)e=e._def.innerType;t[n]=e}}),new yU({...this._def,shape:()=>t})}keyof(){return AU(EG.objectKeys(this.shape))}}yU.create=(e,t)=>new yU({shape:()=>e,unknownKeys:"strip",catchall:fU.create(),typeName:qU.ZodObject,...$G(t)}),yU.strictCreate=(e,t)=>new yU({shape:()=>e,unknownKeys:"strict",catchall:fU.create(),typeName:qU.ZodObject,...$G(t)}),yU.lazycreate=(e,t)=>new yU({shape:e,unknownKeys:"strip",catchall:fU.create(),typeName:qU.ZodObject,...$G(t)});class gU extends WG{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map(async e=>{const n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then((function(e){for(const t of e)if("valid"===t.result.status)return t.result;for(const n of e)if("dirty"===n.result.status)return t.common.issues.push(...n.ctx.common.issues),n.result;const n=e.map(e=>new AG(e.ctx.common.issues));return DG(t,{code:IG.invalid_union,unionErrors:n}),FG}));{let e=void 0;const r=[];for(const a of n){const n={...t,common:{...t.common,issues:[]},parent:null},i=a._parseSync({data:t.data,path:t.path,parent:n});if("valid"===i.status)return i;"dirty"!==i.status||e||(e={result:i,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const a=r.map(e=>new AG(e));return DG(t,{code:IG.invalid_union,unionErrors:a}),FG}}get options(){return this._def.options}}gU.create=(e,t)=>new gU({options:e,typeName:qU.ZodUnion,...$G(t)});const vU=e=>e instanceof CU?vU(e.schema):e instanceof RU?vU(e.innerType()):e instanceof IU?[e.value]:e instanceof OU?e.options:e instanceof xU?Object.keys(e.enum):e instanceof FU?vU(e._def.innerType):e instanceof uU?[void 0]:e instanceof pU?[null]:null;class _U extends WG{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==TG.object)return DG(t,{code:IG.invalid_type,expected:TG.object,received:t.parsedType}),FG;const n=this.discriminator,r=t.data[n],a=this.optionsMap.get(r);return a?t.common.async?a._parseAsync({data:t.data,path:t.path,parent:t}):a._parseSync({data:t.data,path:t.path,parent:t}):(DG(t,{code:IG.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),FG)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){const r=new Map;for(const n of t){const t=vU(n.shape[e]);if(!t)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const a of t){if(r.has(a))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);r.set(a,n)}}return new _U({typeName:qU.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...$G(n)})}}class bU extends WG{_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(LG(e)||LG(r))return FG;const a=function e(t,n){const r=CG(t),a=CG(n);if(t===n)return{valid:!0,data:t};if(r===TG.object&&a===TG.object){const r=EG.objectKeys(n),a=EG.objectKeys(t).filter(e=>-1!==r.indexOf(e)),i={...t,...n};for(const r of a){const a=e(t[r],n[r]);if(!a.valid)return{valid:!1};i[r]=a.data}return{valid:!0,data:i}}if(r===TG.array&&a===TG.array){if(t.length!==n.length)return{valid:!1};const r=[];for(let a=0;a<t.length;a++){const i=e(t[a],n[a]);if(!i.valid)return{valid:!1};r.push(i.data)}return{valid:!0,data:r}}return r===TG.date&&a===TG.date&&+t==+n?{valid:!0,data:t}:{valid:!1}}(e.value,r.value);return a.valid?((jG(e)||jG(r))&&t.dirty(),{status:t.value,value:a.data}):(DG(n,{code:IG.invalid_intersection_types}),FG)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}bU.create=(e,t,n)=>new bU({left:e,right:t,typeName:qU.ZodIntersection,...$G(n)});class PU extends WG{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==TG.array)return DG(n,{code:IG.invalid_type,expected:TG.array,received:n.parsedType}),FG;if(n.data.length<this._def.items.length)return DG(n,{code:IG.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),FG;!this._def.rest&&n.data.length>this._def.items.length&&(DG(n,{code:IG.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const r=[...n.data].map((e,t)=>{const r=this._def.items[t]||this._def.rest;return r?r._parse(new qG(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>HG.mergeArray(t,e)):HG.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new PU({...this._def,rest:e})}}PU.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new PU({items:e,typeName:qU.ZodTuple,rest:null,...$G(t)})};class wU extends WG{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==TG.object)return DG(n,{code:IG.invalid_type,expected:TG.object,received:n.parsedType}),FG;const r=[],a=this._def.keyType,i=this._def.valueType;for(const e in n.data)r.push({key:a._parse(new qG(n,e,n.path,e)),value:i._parse(new qG(n,n.data[e],n.path,e))});return n.common.async?HG.mergeObjectAsync(t,r):HG.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new wU(t instanceof WG?{keyType:e,valueType:t,typeName:qU.ZodRecord,...$G(n)}:{keyType:rU.create(),valueType:e,typeName:qU.ZodRecord,...$G(t)})}}class EU extends WG{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==TG.map)return DG(n,{code:IG.invalid_type,expected:TG.map,received:n.parsedType}),FG;const r=this._def.keyType,a=this._def.valueType,i=[...n.data.entries()].map(([e,t],i)=>({key:r._parse(new qG(n,e,n.path,[i,"key"])),value:a._parse(new qG(n,t,n.path,[i,"value"]))}));if(n.common.async){const e=new Map;return Promise.resolve().then(async()=>{for(const n of i){const r=await n.key,a=await n.value;if("aborted"===r.status||"aborted"===a.status)return FG;"dirty"!==r.status&&"dirty"!==a.status||t.dirty(),e.set(r.value,a.value)}return{status:t.value,value:e}})}{const e=new Map;for(const n of i){const r=n.key,a=n.value;if("aborted"===r.status||"aborted"===a.status)return FG;"dirty"!==r.status&&"dirty"!==a.status||t.dirty(),e.set(r.value,a.value)}return{status:t.value,value:e}}}}EU.create=(e,t,n)=>new EU({valueType:t,keyType:e,typeName:qU.ZodMap,...$G(n)});class kU extends WG{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==TG.set)return DG(n,{code:IG.invalid_type,expected:TG.set,received:n.parsedType}),FG;const r=this._def;null!==r.minSize&&n.data.size<r.minSize.value&&(DG(n,{code:IG.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&n.data.size>r.maxSize.value&&(DG(n,{code:IG.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());const a=this._def.valueType;function i(e){const n=new Set;for(const r of e){if("aborted"===r.status)return FG;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}const s=[...n.data.values()].map((e,t)=>a._parse(new qG(n,e,n.path,t)));return n.common.async?Promise.all(s).then(e=>i(e)):i(s)}min(e,t){return new kU({...this._def,minSize:{value:e,message:KG.toString(t)}})}max(e,t){return new kU({...this._def,maxSize:{value:e,message:KG.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}kU.create=(e,t)=>new kU({valueType:e,minSize:null,maxSize:null,typeName:qU.ZodSet,...$G(t)});class TU extends WG{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==TG.function)return DG(t,{code:IG.invalid_type,expected:TG.function,received:t.parsedType}),FG;function n(e,n){return RG({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,NG(),OG].filter(e=>!!e),issueData:{code:IG.invalid_arguments,argumentsError:n}})}function r(e,n){return RG({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,NG(),OG].filter(e=>!!e),issueData:{code:IG.invalid_return_type,returnTypeError:n}})}const a={errorMap:t.common.contextualErrorMap},i=t.data;return this._def.returns instanceof NU?UG(async(...e)=>{const t=new AG([]),s=await this._def.args.parseAsync(e,a).catch(r=>{throw t.addIssue(n(e,r)),t}),o=await i(...s);return await this._def.returns._def.type.parseAsync(o,a).catch(e=>{throw t.addIssue(r(o,e)),t})}):UG((...e)=>{const t=this._def.args.safeParse(e,a);if(!t.success)throw new AG([n(e,t.error)]);const s=i(...t.data),o=this._def.returns.safeParse(s,a);if(!o.success)throw new AG([r(s,o.error)]);return o.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new TU({...this._def,args:PU.create(e).rest(hU.create())})}returns(e){return new TU({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new TU({args:e||PU.create([]).rest(hU.create()),returns:t||hU.create(),typeName:qU.ZodFunction,...$G(n)})}}class CU extends WG{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}CU.create=(e,t)=>new CU({getter:e,typeName:qU.ZodLazy,...$G(t)});class IU extends WG{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return DG(t,{received:t.data,code:IG.invalid_literal,expected:this._def.value}),FG}return{status:"valid",value:e.data}}get value(){return this._def.value}}function AU(e,t){return new OU({values:e,typeName:qU.ZodEnum,...$G(t)})}IU.create=(e,t)=>new IU({value:e,typeName:qU.ZodLiteral,...$G(t)});class OU extends WG{_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e),n=this._def.values;return DG(t,{expected:EG.joinValues(n),received:t.parsedType,code:IG.invalid_type}),FG}if(-1===this._def.values.indexOf(e.data)){const t=this._getOrReturnCtx(e),n=this._def.values;return DG(t,{received:t.data,code:IG.invalid_enum_value,options:n}),FG}return UG(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e){return OU.create(e)}exclude(e){return OU.create(this.options.filter(t=>!e.includes(t)))}}OU.create=AU;class xU extends WG{_parse(e){const t=EG.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==TG.string&&n.parsedType!==TG.number){const e=EG.objectValues(t);return DG(n,{expected:EG.joinValues(e),received:n.parsedType,code:IG.invalid_type}),FG}if(-1===t.indexOf(e.data)){const e=EG.objectValues(t);return DG(n,{received:n.data,code:IG.invalid_enum_value,options:e}),FG}return UG(e.data)}get enum(){return this._def.values}}xU.create=(e,t)=>new xU({values:e,typeName:qU.ZodNativeEnum,...$G(t)});class NU extends WG{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==TG.promise&&!1===t.common.async)return DG(t,{code:IG.invalid_type,expected:TG.promise,received:t.parsedType}),FG;const n=t.parsedType===TG.promise?t.data:Promise.resolve(t.data);return UG(n.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}NU.create=(e,t)=>new NU({type:e,typeName:qU.ZodPromise,...$G(t)});class RU extends WG{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===qU.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null;if("preprocess"===r.type){const e=r.transform(n.data);return n.common.async?Promise.resolve(e).then(e=>this._def.schema._parseAsync({data:e,path:n.path,parent:n})):this._def.schema._parseSync({data:e,path:n.path,parent:n})}const a={addIssue:e=>{DG(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(a.addIssue=a.addIssue.bind(a),"refinement"===r.type){const e=e=>{const t=r.refinement(e,a);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===n.common.async){const r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?FG:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>"aborted"===n.status?FG:("dirty"===n.status&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))))}if("transform"===r.type){if(!1===n.common.async){const e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!MG(e))return e;const i=r.transform(e.value,a);if(i instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:i}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>MG(e)?Promise.resolve(r.transform(e.value,a)).then(e=>({status:t.value,value:e})):e)}EG.assertNever(r)}}RU.create=(e,t,n)=>new RU({schema:e,typeName:qU.ZodEffects,effect:t,...$G(n)}),RU.createWithPreprocess=(e,t,n)=>new RU({schema:t,effect:{type:"preprocess",transform:e},typeName:qU.ZodEffects,...$G(n)});class DU extends WG{_parse(e){return this._getType(e)===TG.undefined?UG(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}DU.create=(e,t)=>new DU({innerType:e,typeName:qU.ZodOptional,...$G(t)});class HU extends WG{_parse(e){return this._getType(e)===TG.null?UG(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}HU.create=(e,t)=>new HU({innerType:e,typeName:qU.ZodNullable,...$G(t)});class FU extends WG{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===TG.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}FU.create=(e,t)=>new FU({innerType:e,typeName:qU.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...$G(t)});class GU extends WG{_parse(e){const{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return BG(r)?r.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new AG(n.common.issues)},input:n.data})})):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new AG(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}GU.create=(e,t)=>new GU({innerType:e,typeName:qU.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...$G(t)});class UU extends WG{_parse(e){if(this._getType(e)!==TG.nan){const t=this._getOrReturnCtx(e);return DG(t,{code:IG.invalid_type,expected:TG.nan,received:t.parsedType}),FG}return{status:"valid",value:e.data}}}UU.create=e=>new UU({typeName:qU.ZodNaN,...$G(e)});const LU=Symbol("zod_brand");class jU extends WG{_parse(e){const{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class MU extends WG{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.common.async){return(async()=>{const e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?FG:"dirty"===e.status?(t.dirty(),GG(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})()}{const e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?FG:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new MU({in:e,out:t,typeName:qU.ZodPipeline})}}const BU=(e,t={},n)=>e?dU.create().superRefine((r,a)=>{var i,s;if(!e(r)){const e="function"==typeof t?t(r):"string"==typeof t?{message:t}:t,o=null===(s=null!==(i=e.fatal)&&void 0!==i?i:n)||void 0===s||s,l="string"==typeof e?{message:e}:e;a.addIssue({code:"custom",...l,fatal:o})}}):dU.create(),KU={object:yU.lazycreate};var qU;!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline"}(qU||(qU={}));const VU=rU.create,$U=iU.create,WU=UU.create,zU=sU.create,JU=oU.create,XU=lU.create,QU=cU.create,YU=uU.create,ZU=pU.create,eL=dU.create,tL=hU.create,nL=fU.create,rL=mU.create,aL=SU.create,iL=yU.create,sL=yU.strictCreate,oL=gU.create,lL=_U.create,cL=bU.create,uL=PU.create,pL=wU.create,dL=EU.create,hL=kU.create,fL=TU.create,mL=CU.create,SL=IU.create,yL=OU.create,gL=xU.create,vL=NU.create,_L=RU.create,bL=DU.create,PL=HU.create,wL=RU.createWithPreprocess,EL=MU.create,kL={string:e=>rU.create({...e,coerce:!0}),number:e=>iU.create({...e,coerce:!0}),boolean:e=>oU.create({...e,coerce:!0}),bigint:e=>sU.create({...e,coerce:!0}),date:e=>lU.create({...e,coerce:!0})},TL=FG;var CL=Object.freeze({__proto__:null,defaultErrorMap:OG,setErrorMap:function(e){xG=e},getErrorMap:NG,makeIssue:RG,EMPTY_PATH:[],addIssueToContext:DG,ParseStatus:HG,INVALID:FG,DIRTY:GG,OK:UG,isAborted:LG,isDirty:jG,isValid:MG,isAsync:BG,get util(){return EG},get objectUtil(){return kG},ZodParsedType:TG,getParsedType:CG,ZodType:WG,ZodString:rU,ZodNumber:iU,ZodBigInt:sU,ZodBoolean:oU,ZodDate:lU,ZodSymbol:cU,ZodUndefined:uU,ZodNull:pU,ZodAny:dU,ZodUnknown:hU,ZodNever:fU,ZodVoid:mU,ZodArray:SU,ZodObject:yU,ZodUnion:gU,ZodDiscriminatedUnion:_U,ZodIntersection:bU,ZodTuple:PU,ZodRecord:wU,ZodMap:EU,ZodSet:kU,ZodFunction:TU,ZodLazy:CU,ZodLiteral:IU,ZodEnum:OU,ZodNativeEnum:xU,ZodPromise:NU,ZodEffects:RU,ZodTransformer:RU,ZodOptional:DU,ZodNullable:HU,ZodDefault:FU,ZodCatch:GU,ZodNaN:UU,BRAND:LU,ZodBranded:jU,ZodPipeline:MU,custom:BU,Schema:WG,ZodSchema:WG,late:KU,get ZodFirstPartyTypeKind(){return qU},coerce:kL,any:eL,array:aL,bigint:zU,boolean:JU,date:XU,discriminatedUnion:lL,effect:_L,enum:yL,function:fL,instanceof:(e,t={message:"Input not instance of "+e.name})=>BU(t=>t instanceof e,t),intersection:cL,lazy:mL,literal:SL,map:dL,nan:WU,nativeEnum:gL,never:nL,null:ZU,nullable:PL,number:$U,object:iL,oboolean:()=>JU().optional(),onumber:()=>$U().optional(),optional:bL,ostring:()=>VU().optional(),pipeline:EL,preprocess:wL,promise:vL,record:pL,set:hL,strictObject:sL,string:VU,symbol:QU,transformer:_L,tuple:uL,undefined:YU,union:oL,unknown:tL,void:rL,NEVER:TL,ZodIssueCode:IG,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:AG});const IL=CL.object({type:CL.literal("TEAM_TERMINAL_SESSION_SHARING_REQUEST"),payload:CL.object({id:CL.string(),connectionId:CL.string(),hostId:CL.number()})}),AL=CL.object({type:CL.literal("TEAM_TERMINAL_SESSION_SHARING_RESPONSE"),payload:CL.object({id:CL.string(),url:CL.string()})}),OL=CL.object({type:CL.literal("REQUEST_TEAM_TERMINAL_SESSION_INPUT_ACCESS"),payload:CL.string()}),xL=CL.object({type:CL.literal("TEAM_TERMINAL_SESSION_PARAMS_CHANGED"),payload:CL.object({connectionId:CL.string(),connectionParams:CL.object({terminalTitle:CL.string(),totalViewersCount:CL.number(),allowViewersInput:CL.boolean()}).partial()})}),NL=CL.object({type:CL.literal("SHARE_REALTIME_COLLABORATION_STATE"),payload:CL.array(CL.object({id:CL.string(),owner:CL.number(),ownerDeviceToken:CL.string(),windowId:CL.number(),viewers:CL.array(CL.number()),hostId:CL.number(),params:CL.object({terminalTitle:CL.string(),totalViewersCount:CL.number(),allowViewersInput:CL.boolean()})}))}),RL=CL.object({type:CL.literal("TEAM_TERMINAL_SESSION_STARTED"),payload:CL.object({userId:CL.number(),hostId:CL.number(),windowId:CL.number(),ownerDeviceToken:CL.string(),connectionId:CL.string(),connectionParams:CL.object({terminalTitle:CL.string(),totalViewersCount:CL.number(),allowViewersInput:CL.boolean()})})}),DL=CL.object({type:CL.literal("TEAM_TERMINAL_SESSION_FINISHED"),payload:CL.string()}),HL=CL.object({type:CL.literal("JOIN_TEAM_TERMINAL_SESSION"),payload:CL.object({userId:CL.number(),connectionId:CL.string(),totalViewersCount:CL.number()})}),FL=CL.object({type:CL.literal("LEAVE_TEAM_TERMINAL_SESSION"),payload:CL.object({userId:CL.number(),connectionId:CL.string(),totalViewersCount:CL.number()})}),GL=CL.discriminatedUnion("type",[IL,AL,OL,xL,NL,RL,DL,HL,FL]);const UL=Pi("SHARE_REALTIME_COLLABORATION_STATE"),LL=Pi("TEAM_TERMINAL_SESSION_STARTED"),jL=Pi("TEAM_TERMINAL_SESSION_FINISHED"),ML=Pi("JOIN_TEAM_TERMINAL_SESSION"),BL=Pi("LEAVE_TEAM_TERMINAL_SESSION"),KL=Pi("TEAM_TERMINAL_SESSION_PARAMS_CHANGED"),qL=Pi("USER_LEFT_REALTIME_COLLABORATION"),VL=Pi("TEAM_TERMINAL_SESSION_SHARING_REQUEST"),$L=Pi("TEAM_TERMINAL_SESSION_SHARING_RESPONSE"),WL=Pi("REQUEST_TEAM_TERMINAL_SESSION_INPUT_ACCESS"),zL=Pi("CLEAR_TEAM_TERMINAL_SESSION_SHARING_REQUEST"),JL=Pi("START_REALTIME_COLLABORATION"),XL=Pi("STOP_REALTIME_COLLABORATION");function*QL(e,t){const n=yield*Ar(yw),r=e.subscribe("$teams:team_"+n),a=yn(e=>{const n=n=>{try{const r=function(e,t){const n=e.decrypt(t);if(hx.is(n))throw n;if(null==n)throw new Error("Centrifuge publish message is nullable");return JSON.parse(n)}(t,n.data),a=function(e){switch(e.type){case"TEAM_TERMINAL_SESSION_SHARING_REQUEST":return VL(e.payload);case"TEAM_TERMINAL_SESSION_SHARING_RESPONSE":return $L(e.payload);case"REQUEST_TEAM_TERMINAL_SESSION_INPUT_ACCESS":return WL(e.payload);case"TEAM_TERMINAL_SESSION_PARAMS_CHANGED":return KL(e.payload);case"SHARE_REALTIME_COLLABORATION_STATE":return UL(e.payload);case"TEAM_TERMINAL_SESSION_STARTED":return LL(e.payload);case"TEAM_TERMINAL_SESSION_FINISHED":return jL(e.payload);case"JOIN_TEAM_TERMINAL_SESSION":return ML(e.payload);case"LEAVE_TEAM_TERMINAL_SESSION":return BL(e.payload)}return null}(GL.parse(r));if(null==a)return;e(a)}catch(e){TS.exception("Cannot process incoming centrifuge Realtime Collaboration publish message",e)}};return r.addListener("publish",n),()=>{r.removeListener("publish",n),r.unsubscribe()}});yield*br(a,Er);const i=yield*Tr(YL,r,t);yield*_r(XL),yield*Ir(i),a.close()}function*YL(e,t){yield*br(wG,async({payload:n})=>{try{const r=function(e,t){const n=e.encrypt(JSON.stringify(t));if(hx.is(n))throw n;return n}(t,n);await e.publish(r)}catch(e){TS.exception("Cannot publish centrifuge Realtime Collaboration message",e)}})}const ZL={proTrialOnboarding:{userShouldSeeProTrialOnboarding:!1,proTrialSuccessAnimationFinished:!1,proTrialCompletedStepsOrder:["add_hosts","connect_to_host","add_second_device","invite_members"]},teamOwnerOnboarding:{userShouldSeeTeamOnboarding:!1,teamEntryAnimationFinished:!1,teamSuccessAnimationFinished:!1,userClosedTeamOnboarding:!1,upgradeNowButtonHasActiveMode:!1},onboardingAttributes:[]},{reducer:ej,actions:tj}=ki({name:"onboardings",initialState:ZL,reducers:{setProTrialSuccessAnimationFinished(e){e.proTrialOnboarding.userShouldSeeProTrialOnboarding=!1,e.proTrialOnboarding.proTrialSuccessAnimationFinished=!0},setUserShouldSeeProTrialOnboarding(e,{payload:t}){e.proTrialOnboarding.userShouldSeeProTrialOnboarding=t},setOnboardingAttributes(e,{payload:t}){e.onboardingAttributes=t},setProTrialCompletedStepsOrder(e,{payload:t}){e.proTrialOnboarding.proTrialCompletedStepsOrder=t},setUserHasNoTeam(e){var t;const n=null===(t=e.onboardingAttributes)||void 0===t?void 0:t.find(e=>"personal"===e.type),r=null==n?void 0:n.steps.find(e=>"invite_members"===e.codename);r&&(r.value=!0)},setUserClosedTeamOnboarding(e,{payload:t}){e.teamOwnerOnboarding.userClosedTeamOnboarding=t},setUserShouldSeeTeamOnboarding(e,{payload:t}){e.teamOwnerOnboarding.userShouldSeeTeamOnboarding=t},setTeamSuccessAnimationFinished(e,{payload:t}){e.teamOwnerOnboarding.teamSuccessAnimationFinished=t},setTeamEntryAnimationFinished(e,{payload:t}){e.teamOwnerOnboarding.teamEntryAnimationFinished=t},setUpgradeNowButtonHasActiveMode(e,{payload:t}){e.teamOwnerOnboarding.upgradeNowButtonHasActiveMode=t},setTeamOnboardingFlagsToInitialState(e){e.teamOwnerOnboarding=ZL.teamOwnerOnboarding}},extraReducers:e=>{e.addCase(Ul.success,e=>{e.proTrialOnboarding=ZL.proTrialOnboarding,e.teamOwnerOnboarding=ZL.teamOwnerOnboarding,e.onboardingAttributes=ZL.onboardingAttributes})}}),{setProTrialCompletedStepsOrder:nj,setOnboardingAttributes:rj,setProTrialSuccessAnimationFinished:aj,setUserHasNoTeam:ij,setUserShouldSeeProTrialOnboarding:sj,setUserClosedTeamOnboarding:oj,setUserShouldSeeTeamOnboarding:lj,setTeamSuccessAnimationFinished:cj,setUpgradeNowButtonHasActiveMode:uj,setTeamEntryAnimationFinished:pj,setTeamOnboardingFlagsToInitialState:dj}=tj,hj=Pi("ONBOARDING_UPDATED"),fj=Li("SKIP_PRO_TRIAL_ONBOARDING_INVITE_STEP"),mj=Pi("UPDATE_ONBOARDING_IF_TEAM_WAS_DELETED");var Sj=ej;const yj=new Map([["sync",()=>rs.request("does-not-block-ui")],["logout",()=>Ul.request({keepSepKeys:!1})],["update_profile",()=>Pl.request()],["in-app-message",()=>Lc()],["history-updated",()=>SP.request()],["team-updated",()=>Ql()],["onboarding-updated",()=>hj()]]);var gj=n(220),vj=n.n(gj);class _j{constructor(){this.lastRefreshDate=null,this.lastRefreshStatusCode=200,this.setLastRefreshData=e=>{this.lastRefreshDate=new Date,this.lastRefreshStatusCode=e},this.isRefreshRequestThrottled=()=>200===this.lastRefreshStatusCode&&(this.lastRefreshDate?+new Date-+this.lastRefreshDate<6e5:(this.lastRefreshDate=new Date,!1))}}function*bj(e){yield*Pr(Hx,Pj,e)}function*Pj(e){try{const{token:t,clientID:n}=yield*function*(e){var t;const n=yield*kr({context:e.credentialsStorage,fn:"getCentrifugeJWTToken"});if(n){const e=fG(n.token);if(1e3*(null!==(t=e.exp)&&void 0!==t?t:0)-Date.now()>0)return n}const{token:r,client_id:a}=yield*kr({context:e.api,fn:"getCentrifugoToken"}),i={token:r,clientID:a.toString()};return e.credentialsStorage.setCentrifugeJWTToken(i),i}(e),r=function(e,t){const n=new _j,r=e.api.generateUrl(ja).replace(/^http/,"ws"),a=e.api.generateUrl(Ua),i=e.api.generateAuthHeaders(),s={authorization:i.authorization},o=new vj.a(r,{onRefresh:async function(e,t){if(n.isRefreshRequestThrottled())return void t({status:0,data:{token:""}});let r;try{r=await fetch(a,{method:"POST",headers:i})}catch(e){return}if(401===r.status)return void o.disconnect();const s=await r.json();t({status:r.status,data:{token:s.token}}),n.setLastRefreshData(r.status)},subscribeEndpoint:e.api.generateUrl(La),subscribeHeaders:s,refreshHeaders:i,refreshEndpoint:a,minRetry:5e3,maxRetry:3e5});return o.setToken(t),o}(e,t);yield*function*(e,t){const n=yn(n=>{const r=e.subscribe("notifications#"+t,{publish:e=>{const t=(e=>{var t,n;return null===(n=null===(t=e.data)||void 0===t?void 0:t.termius_data)||void 0===n?void 0:n.notification_type})(e),r=yj.get(t);r&&n(r())}});return()=>r.unsubscribe()});yield*br(n,Er)}(r,n),yield*Tr(wj,e,r),r.connect(),yield*_r(Ul.success.toString()),r.disconnect(),yield*Ir()}catch(e){}}function*wj(e,t){yield*function*(){for(;;){if(yield*Ar(yw))return;yield*_r([Pl.success,Ol.success])}}(),yield*function*(e){const t=yield*Ar(yw),n=yn(n=>{const r=e.subscribe("$teams:team_"+t,{join:e=>{n(yG(null==e?void 0:e.info))},leave:e=>{n(gG(null==e?void 0:e.info))},subscribe:async()=>{const e=await r.presence();n(SG(null==e?void 0:e.presence))},unsubscribe:()=>{n(SG({}))}});return()=>r.unsubscribe()});yield*br(n,Er)}(t);const n=yield*function*(e){for(;;){try{const t=yield*Ar(yw),n=yield*Ar(MP);if(!t||!n)return TS.exception("Team ID or User ID is empty during centrifuge team channel cryptor setup",new Error),null;const r=yield*Ar(tw),a=yield*kr({context:e.syncKeyManager,fn:"centrifugeTeamChannelCryptor"},n,r);if(a)return a}catch(e){return TS.exception("Can not setup centrifuge team channel cryptor",e),null}yield*_r([Pl.success,Ql])}}(e);n&&(yield*function*(e,t){(yield*Ar(ZP))&&(yield*QL(e,t)),yield*br(JL,QL,e,t)}(t,n))}function*Ej(e,{meta:t,payload:n}){try{const{group:r,withBackendSync:a}=n;yield*kr({context:e.cloudsController,fn:"syncGroup"},new Wo(r)),a&&(yield*Er(ts.request("does-not-block-ui"))),yield*Er($O.success(void 0,t.requestId))}catch(e){yield*Er($O.failure(void 0,t.requestId))}}function*kj(e){for(;;){if(yield*Ar(qP)){const t=yield*kr({context:e.cloudsController,fn:"sync"});if(null==t)return;const n=yield*kr(()=>t);n&&n.some(e=>{if(!e)return!1;const{created:t,deleted:n,updated:r}=e;return t.length||n.length||r.length})&&(yield*Er(ts.request("does-not-block-ui")))}yield*Or(18e4)}}function*Tj(e,{meta:t}){try{(yield*Ar(qP))&&(yield*kr({context:e.cloudsController,fn:"instantSync"})),yield*Er(JO.success(void 0,t.requestId))}catch(e){yield*Er(JO.failure(void 0,t.requestId))}}function*Cj(e){yield*Rr([br($O.request,Ej,e),Pr(JO.request,Tj,e),Cr(kj,e)])}function Ij(e){return{init:async()=>e.initCustomerExperience(),send:async t=>e.sendCustomerExperience(function(e){switch(e.action){case"rated":case"reviewed":return{action:"rated",score:e.score,comment:void 0,interacted_at:yo(e.interactedAt)};case"left-feedback":return{action:"rated",score:e.score,comment:e.comment||void 0,interacted_at:yo(e.interactedAt)};case"dismissed":return{action:"dismissed",score:void 0,comment:void 0,interacted_at:yo(e.interactedAt)};case"rated-in-legacy-app-version":return{action:"rated",score:void 0,comment:void 0,interacted_at:yo(e.interactedAt)};default:return bl()}}(t))}}const Aj=e=>e.inAppMessages.objects,Oj=Li("SHOW_ONBOARDING"),xj=(Li("SHOW_ONBOARDING_IN_WINDOW"),Pi("RECOVER_FROM_DECRYPTION_ERROR")),Nj=(CP("OPEN_HOST_FORM"),Pi("OPEN_LOCAL_TERMINAL"),CP("OPEN_CONNECTION_IN_SFTP"),Li("OPEN_TEAM_TRIAL_FLOW"),CP("SET_NAVIGATION_PATH")),Rj=Pi("FAN_OUT_NAVIGATION_PATH"),Dj=(CP("OPEN_TAB"),Pi("OPEN_SETTINGS")),Hj=(Pi("NAVIGATE_SETTINGS"),Pi("TOGGLE_UI_BLOCK"));const Fj=(e={})=>{var t;return(null==e?void 0:e.detail)||(null==e?void 0:e.error)||(null===(t=null==e?void 0:e.authy_token)||void 0===t?void 0:t[0])||"Something went wrong, try again."};function Gj(e){if(FS.getDeprecatedForceToShowTeamTrialPromotions())return!0;const t=JP(e),n=zb(e);return!t&&(e=>e>=2)(n)}function Uj(e){return e.navigation.localPath}function Lj(e){return e.navigation.global}ei(tw,Gj,(e,t)=>{const n=[];let r="/account";return e&&(n.push({title:"Manage Team",path:"/manage-team"}),r="/manage-team"),n.push({title:"Account",path:"/account"}),t&&n.push({title:"Invite People",path:"/invite-people"}),n.push({title:"Terminal",path:"/terminal"}),n.push({title:"SFTP",path:"/sftp"}),n.push({title:"Shortcuts",path:"/shortcuts"}),n.push({title:"Known Hosts",path:"/knownhosts"}),n.push({title:"Keychain",path:"/keychain"}),{tabs:n,defaultPath:r,sanitizePath:function(e){const t=n.find(t=>t.path===e);if(null==t)return r;return t.path}}});const jj=YS.a.windows()?"win":YS.a.macOS()?"mac":"linux",Mj=(YS.a.windows(),YS.a.windowsStore()),Bj=YS.a.macOS(),Kj=YS.a.mas();function qj(e){p.ipcRenderer.send("open-external",e)}const Vj=({username:e,period:t,plan:n})=>{const r=new URL("https://account.termius.com/billing/purchase"),a=new URLSearchParams({email:e,period:t||"",plan:n||""});r.hash=a.toString(),qj({title:"Billing",url:r.toString()})},$j=()=>{qj({title:"G2",url:"https://www.g2.com/products/termius/reviews/start"})},Wj=new Map([["AuthyLearnMore",()=>qj({title:"AuthyLearnMore",url:"https://www.authy.com/learn-more/"})],["Beta",()=>qj({title:"Beta",url:"https://www.termius.com/beta-program"})],["Changelog",()=>qj({title:"Changelog",url:"https://termi.us/desktop-changelog"})],["Documentation",()=>qj({title:"Documentation",url:"https://docs.termius.com/"})],["Create Team",()=>qj({title:"Create Team",url:"https://account.termius.com/team"})],["Manage Team",()=>qj({title:"Manage Team",url:"https://account.termius.com/team"})],["Terms of Use",()=>qj({title:"Terms of Use",url:"https://termius.com/terms-of-use"})],["Privacy Policy",()=>qj({title:"Privacy Policy",url:"https://termius.com/privacy-policy"})],["Mosh.org",()=>qj({title:"Mosh.org",url:"https://mosh.org"})],["Download",()=>{qj({title:"Termius",url:"https://www.termius.com/"+(YS.a.macOS()?"mac-os":YS.a.windows()?"windows":YS.a.linux()?"linux":"")})}],["AppStore",()=>qj({title:"Termius",url:"itms-apps://itunes.apple.com/us/app/termius-ssh-client/id1176074088?mt=12"})],["WindowsStore",()=>qj({title:"Termius",url:"ms-windows-store://pdp/?ProductId=9nk1gdvpx09v"})],["HowWeCheckPasswords",()=>qj({title:"How we check passwords",url:"https://termi.us/hipb"})],["HostchainSharing",()=>qj({title:"Hostchain Sharing",url:"https://termi.us/hostchain-sharing"})],["Support",()=>qj({title:"Termius Support",url:"https://support.termius.com/"})]]);function zj(e){e instanceof jr&&400!==e.status||TS.exception("Customer Experience has failed",e,{tags:{feature:"customer experience"}})}function Jj(e){Qs(1,arguments);var t=Ys(e);return t.setHours(0,0,0,0),t}function Xj(e,t){Qs(2,arguments);var n=Jj(e),r=Jj(t),a=n.getTime()-co(n),i=r.getTime()-co(r);return Math.round((a-i)/864e5)}function Qj(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function Yj(e){return e.customerExperience.isCESVisible}function Zj(e){return e.customerExperience.interactionData}function eM(e){return Aj(e).some(qs)}function tM(e,t=new Date){return WP(e)?function(e,t){const n=Zj(e);if(null==n)return!0;return function(e,t){Qs(2,arguments);var n=Ys(e),r=Ys(t),a=Qj(n,r),i=Math.abs(Xj(n,r));n.setDate(n.getDate()-a*i);var s=Qj(n,r)===-a,o=a*(i-s);return 0===o?0:o}(t,n.interactedAt)>=function(e,t){return function(e,t){return"dismissed"===t.action&&1===e.customerExperience.dismissCount}(e,t)?7:90}(e,n)&&("dismissed"===n.action||n.appVersion!==function(e){return e.app.version}(e))}(e,t):function(e){return eM(e)}(e)}function*nM(e,t){yield*br(gc,rM,t),yield*br([gy,Rj],aM),yield*br([Mc.success,jc.success,Bc.success],iM),yield*br(Ky,sM),yield*br([Gl,Hl.success],lM,e,t)}function*rM(e,{payload:t}){if(yield*function*(){if(yield*Er(yc(!1)),yield*Ar(WP))return;const e=(yield*Ar(Aj)).filter(qs);yield*Er(qc.request(e))}(),"reviewed"===t.action&&(yield*Ar(cM)),!(yield*Ar(WP)))try{yield*kr(()=>e.send(t)),yield*Er(vc()),yield*Er(jc.request())}catch(e){zj(e)}}function*aM(){(yield*Ar(Yj))||(yield*Ar(oM))&&(yield*Er(yc(!0)),yield*Er(pg()))}function*iM(){const e=yield*Ar(Yj),t=yield*Ar(zP),n=yield*Ar(eM);e&&t&&!n&&(yield*Er(yc(!1)))}function*sM({payload:e}){var t;null!=e.type&&(t=e.type,["SSH","Telnet","Mosh","Local"].includes(t))&&(yield*Er(bc()))}function oM(e){return function(e){return zb(e)>0}(e)&&function(e){return Lj(e).some(t=>t.path.toLowerCase().includes("hosts")&&t.windowId===function(e){return e.windows.lastFocused}(e))}(e)&&function(e){return e.customerExperience.keyEventHasHappened}(e)&&tM(e)}function*lM(e,t){try{const n=e.shouldSend(yield*Ar());switch(n.type){case"init":yield*kr(()=>t.init()),yield*Er(_c());break;case"send":yield*kr(()=>t.send(n.payload)),yield*Er(vc());break;case"nothing":break;default:bl()}}catch(e){zj(e)}}function cM(e){JP(e)?$j():Kj?qj({title:"Termius",url:"itms-apps://itunes.apple.com/us/app/termius-ssh-client/id1176074088?mt=12&action=write-review"}):Mj?qj({title:"Termius",url:"ms-windows-store://review/?ProductId=9nk1gdvpx09v"}):$j()}class uM extends Error{constructor(){super(...arguments),this.name="DialogAlreadyOpened"}}function pM(e){return"string"==typeof e||"number"==typeof e}function dM(e){return pM(e)?e:e.window}function hM(e){return pM(e)?void 0:e.container}const fM=e=>e.dialogs||[],mM=ei((e,t)=>fM(e),(e,t)=>t,(e,t)=>e.filter(([e,n])=>n.name===t)),SM=new Set(["BlockAccess","Forced2FA","ProFeatures","GracePeriod","UnifyTrialExtend"]);function*yM({meta:e,payload:t}){const n=yield*Ar(e=>mM(e,t.dialog));SM.has(t.dialog)&&n.some(([e,n])=>{return r=n.target,a=t.target,hM(r)===hM(a)&&dM(r)===dM(a);var r,a})?yield*Er(Ec.failure(new uM,e.requestId)):yield*Er(wc({dialogData:t,requestMeta:e}))}function*gM(){yield*br(Ec.request,yM)}const vM=Li("EXTEND_PRO_TRIAL");function _M(e){return 0===e.data.status?"Network error.":e.data.message}function*bM(e,{meta:t}){const{resp:n}=yield*Rr({delay:Or(5e3),resp:kr(()=>function*(e){try{return{status:"success",data:yield*kr(async()=>e.api.extendProTrial())}}catch(e){return{status:"error",data:e}}}(e))});"success"===n.status&&(yield*Er(vM.success({expirationDate:new Date(n.data.valid_until)},t.requestId)),yield*Er(ts.request("does-not-block-ui"))),"error"===n.status&&(yield*Er(vM.failure({message:_M(n)},t.requestId)))}function*PM(e){yield*Rr([br(vM.request,bM,e)])}const wM=Li("EXTEND_TEAM_TRIAL");function*EM(e,{meta:t}){const{resp:n}=yield*Rr({delay:Or(5e3),resp:kr(()=>function*(e){try{return{status:"success",data:yield*kr(async()=>e.api.extendTeamTrial())}}catch(e){return{status:"error",data:e}}}(e))});if("success"===n.status){const e=yield*Ar(VP),[r]=go({from:e,until:n.data.valid_until},e);yield*Er(wM.success({expirationDate:new Date(n.data.valid_until),days:r,expirationTryNumber:n.data.expiration_try_number},t.requestId)),yield*Er(ts.request("does-not-block-ui"))}"error"===n.status&&(yield*Er(wM.failure(new Error(function(e){var t;const n=e.data.responseJSON;return 0===e.data.status?"Network error.":"Trial period extension deprecated."===(null===(t=null==n?void 0:n.error)||void 0===t?void 0:t[0])?"Trial period extension deprecated.":e.data.message}(n)),t.requestId)))}function*kM(e){yield*br(wM.request,EM,e)}var TM=n(72),CM=n.n(TM);const IM=Li("ASSEMBLE_AUTOCOMPLETE_SUGGESTIONS"),AM=Li("LINK_IDENTITY"),OM=Li("UNLINK_IDENTITY");var xM=n(123),NM=n.n(xM);const RM={ssh:"ssh_config.identity",telnet:"telnet_config.identity",proxy:"ssh_config.proxy.identity"};class DM{constructor({hosts:e,groups:t,isAbleToEditSharedEntities:n}){this.isInvisibleIdentitiesEqual=(e,t)=>{var n,r;return e.username===t.username&&e.password===t.password&&(null===(n=e.ssh_key)||void 0===n?void 0:n.local_id)===(null===(r=t.ssh_key)||void 0===r?void 0:r.local_id)},this.update=(e,t,n)=>{const r=n instanceof Jo?{type:"host",entity:n}:{type:"group",entity:n},a=this.data[t].findIndex(t=>this.isInvisibleIdentitiesEqual(t.identity,e));-1!==a?this.data[t][a].entities.push(r):this.data[t].push({identity:e,entities:[r]})},this.addEntity=e=>{Object.keys(RM).forEach(t=>{const n=RM[t],r=NM()(e,n,null);!r||!r.username||r.is_visible||r.is_shared&&!this.isAbleToEditSharedEntities||this.update(r,t,e)})},this.isAbleToEditSharedEntities=n,this.data={ssh:[],telnet:[],proxy:[]},e.forEach(this.addEntity),t.forEach(this.addEntity)}}var HM=function(e){return new DM(e).data};function FM(e){return t=>{const n=!t.is_shared;return!(e!==Ix.sharingUnavailable&&!n)||e===Ix.yes}}function GM(e){const{canEditSharedEntities:t}=e.settings.getDeprecatedUserTeamStatus(),n=FM(t);return e.store.getTags(n)}function UM(e){return{groups:e.store.getGroups(!0)}}function LM(e){return{hosts:e.store.getHosts(!0).map(t=>t.clone({connectionPath:BN(t,e.store)}))}}function jM(e){return{snippets:e.store.getSnippets(!0)}}function MM(e){return{sshKeys:e.store.getSshKeys(!0)}}function BM(e){return{visibleIdentities:e.store.getVisibleIdentities(!0)}}function KM(e){return{portForwardingRules:e.store.getPortForwardingRules(!0)}}function qM(e){return{knownHosts:e.store.getKnownHosts(!0)}}function VM(e){return{hostLatestActivities:e.store.getHostLatestActivities(!0)}}function $M(e){return{hardwareKeys:e.store.getAllHardwareKeys(!0)}}function WM(e){return{multiKeys:e.store.getAllTeamMultiKey(!0)}}function zM(e){return{snippetsPackages:e.store.getSnippetsPackages()}}function JM(e){return{historyCommands:e.store.getHistoryCommands()}}function XM(e){return{...LM(e),...UM(e),...jM(e),...MM(e),...BM(e),...KM(e),...qM(e),...VM(e),...WM(e),...zM(e),...$M(e),...JM(e)}}async function QM(e){const t=(await ko.sep.fetchAllKeys()).find(t=>t.publicKey===e);if(!t)throw new Error("Key not found");return t}function YM(e){return{isSuccess:!1,error:e}}function ZM(e){return{isSuccess:!0,result:e}}class eB{static listen(){p.ipcMain.handle("keychain.sep",(e,t,n)=>this.handle(t,n))}static async isAvailable(e="FULL_CHECK"){if(!Bj)return!1;const t=FS.getDeprecatedDeviceHasSepSupport();if("SHALLOW_CHECK"===e)return!!t;if(null!=t)return t;const n=await this.invoke("CHECK_SUPPORTED");return FS.setDeprecatedDeviceHasSepSupport(n),n}static async generateNewKey(e){const t=await this.invoke("GENERATE",e);if(!t.isSuccess)throw new Error(t.error.message);return t.result}static async removeKey(e){const t=await this.invoke("REMOVE",e);if(!t.isSuccess)throw new Error(t.error.message);return t.result}static signData(e,t){const n=Fi()();return{promise:this.invokeSignatureRequest({request_id:n,data:e,publicKey:t}),cancel:async()=>this.invoke("SIGN_CANCEL",n)}}static async checkKeyExists(e){return this.invoke("CHECK_KEY_EXISTS",e)}static async getAllKeys(){const e=await this.invoke("GET_ALL_KEYS");if(!e.isSuccess)throw new Error(e.error.message);return e.result}static async invokeSignatureRequest(e){const t=await this.invoke("SIGN",e);if(!t.isSuccess)throw new Error(t.error.message);return t.result}static invoke(e,t){return p.ipcRenderer.invoke("keychain.sep",e,t)}static handle(e,t){switch(e){case"CHECK_SUPPORTED":return this.handleIsSupported();case"GENERATE":return this.handleGenerateNewKey(t);case"REMOVE":return this.handleRemoveKey(t);case"SIGN":return this.handleSignatureRequest(t);case"SIGN_CANCEL":return this.handleCancelSignatureRequest(t);case"CHECK_KEY_EXISTS":return this.handleCheckKeyExists(t);case"GET_ALL_KEYS":return this.handleGetAllKeys();default:throw new Error("API Misuse")}}static handleIsSupported(){return ko.sep.isSupported()}static async handleGenerateNewKey(e){try{return ZM((await ko.sep.generateNewKey({label:e})).publicKey)}catch(e){return YM(e)}}static async handleRemoveKey(e){try{const t=await QM(e);return ZM(await t.remove())}catch(e){return YM(e)}}static async handleSignatureRequest(e){try{return ZM(await this.signatureRequests.add(e))}catch(e){return YM(e)}}static handleCancelSignatureRequest(e){return this.signatureRequests.cancel(e)}static async handleCheckKeyExists(e){try{return 0!==(await QM(e)).publicKey.length}catch(e){return!1}}static async handleGetAllKeys(){try{const e=await ko.sep.fetchAllKeys();return ZM(e.map(e=>({label:e.label,publicKey:e.publicKey})))}catch(e){return YM(e)}}}eB.signatureRequests=new class{constructor(){this.tasks=[],this.isExecuting=!1}add(e){return new Promise((t,n)=>{this.tasks.push({request:e,isCancelled:!1,resolve:t,reject:n}),this.maybeExecute()})}cancel(e){const t=this.tasks.find(t=>t.request.request_id===e);return!!t&&(t.isCancelled=!0,!0)}canStartNewTask(){return!(this.isExecuting||0===this.tasks.length)}maybeExecute(){this.canStartNewTask()&&this.execute()}async execute(){const e=this.tasks.shift();if(e)if(this.isExecuting=!0,e.isCancelled)this.onTaskFailed(e,new Error("Cancelled"));else try{const t=await this.sign(e.request);this.onTaskSucceeded(e,t)}catch(t){this.onTaskFailed(e,t)}}onTaskSucceeded(e,t){e.resolve(t),this.onTaskFinished()}onTaskFailed(e,t){e.reject(t),this.onTaskFinished()}onTaskFinished(){this.isExecuting=!1,this.maybeExecute()}async sign(e){return(await QM(e.publicKey)).sign(e.data)}};const{actions:tB,reducer:nB}=ki({name:"filters/tags",initialState:{tags:[]},reducers:{refreshTags:(e,t)=>{e.tags=t.payload}}}),{refreshTags:rB}=tB;function*aB(e,{payload:t,meta:n}){var r;const a=new xo(t.entity),i=function(e,t){const n=To(t.private_key);if(!n)return!1;const r=e.store.getSshKey(t);if(null==r)return n;return!To(r.private_key)&&n}(e,a),s=e.store.getSshKey(a);s&&s.certificates.length>a.certificates.length&&(yield*Er(vv({type:"SSH Certificate"})));try{yield*kr({context:e.store,fn:"setSshKey"},a)}catch(e){return void(yield*Er(rO.failure(void 0,n.requestId)))}yield*Er(GB(e)),yield*Er(rO.success(a,n.requestId)),yield*Er(ts.request("does-not-block-ui")),i&&(yield*Er(Iv({...null!==(r=t.context)&&void 0!==r?r:{keySource:"Pasted",wizardID:null,connectionID:null},fido2BasedKey:"yes"})))}function*iB(e,{payload:t,meta:n}){const{keygenOptions:r,entity:a}=t;try{const{privateKey:e,publicKey:t}=yield*kr(ko.generateSshKey,r);if(0===e.length)return void(yield*Er(aO.failure(void 0,n.requestId)));const i=new xo({...a,public_key:null!=t?t:"",private_key:e}),s=yield*ji(rO,{entity:i});yield*Er(aO.success(s,n.requestId))}catch(e){yield*Er(aO.failure(void 0,n.requestId))}}function*sB(e,{payload:t,meta:n}){const{label:r}=t;try{const t=yield*kr({context:eB,fn:"generateNewKey"},r),a=new Eo({label:r,public_key:t,storage:"Secure Enclave"});yield*kr({context:e.store,fn:"setHardwareKey"},a),yield*Er(tO.success(a,n.requestId)),yield*Er(GB(e))}catch(e){yield*Er(tO.failure(e.message,n.requestId))}}async function oB(e,t){if(t.isSep())try{if(!await eB.removeKey(t.public_key))return;await e.store.deleteHardwareKey(t)}catch(e){}}function*lB(e,{payload:t,meta:n}){const r=t;try{for(const t of r)yield*kr({context:e.store,fn:"setHardwareKey"},t)}catch(e){return void(yield*Er(eO.failure(void 0,n.requestId)))}yield*Er(eO.success(void 0,n.requestId)),yield*Er(GB(e))}async function cB(e,t,n){const r=t.filter(e=>void 0===n.find(t=>t.publicKey===e.public_key)),a=r.map(t=>e.store.deleteHardwareKey(t));return await Promise.all(a),r.length}async function uB(e,t,n){const r=n.filter(e=>void 0===t.find(t=>t.public_key===e.publicKey)),a=r.map(t=>e.store.setHardwareKey(new Eo({label:t.label,public_key:t.publicKey,storage:"Secure Enclave"})));return await Promise.all(a),r.length}function*pB(e,t){yield*Er(Rc({id:e,force_to_do_action:!1,is_dismissible:!0,is_seen:!1,created_at:new Date,type:"medium",title:"⚙️ Secure Enclave",body:t,button_name:"Dismiss",action:"LOCAL_MESSAGE_ACTION_CLEANUP_SEP_KEYS"}))}function*dB(e){try{const t=e.store.getAllSepKeys(),n=yield*kr({context:eB,fn:"getAllKeys"});if(0===t.length&&0===n.length)return;const r=yield*kr(uB,e,t,n),a=yield*kr(cB,e,t,n);if(0===r&&0===a)return;if(yield*Er(GB(e)),0!==r){const e=1!==r;yield*kr(pB,-3,`${r} ${e?"keys were":"key was"} found in the system which ${e?"are":"is"} associated with Termius. ${e?"These keys were":"This key was"} added and can be found in the Keychain.`)}if(0!==a){const e=1!==a;yield*kr(pB,-4,`${a} ${e?"keys were":"key was"} removed from the Keychain, because ${e?"they":"it"} can't be found in the system.`)}}catch(e){}}function*hB(e,{payload:t,meta:n}){try{for(const n of t.sshKeys)yield*kr({context:e.store,fn:"deleteSshKey"},new xo(n)),yield*Er(vv({type:"SSH Key"}));for(const n of t.identities)yield*kr({context:e.store,fn:"deleteIdentity"},new No(n)),yield*Er(vv({type:"Identity"}));for(const n of t.hardwareKeys)"Secure Enclave"===n.storage&&(yield*kr(oB,e,new Eo(n)),yield*Er(vv({location:"SEPKey",type:"Biometric Key"})))}catch(e){return void(yield*Er(iO.failure(void 0,n.requestId)))}yield*Er(iO.success(void 0,n.requestId)),yield*Er(GB(e)),yield*Er(ts.request("does-not-block-ui"))}function*fB(e,{payload:t,meta:n}){try{const r=yield*kr([e.store,e.store.getIdentity],t),a=null==t.local_id&&t.is_visible;if(yield*kr({context:e.store,fn:"setIdentity"},t),t.is_shared){const n=new No(t),a=yield*kr(VO,n,{store:e.store,settings:e.settings});yield*kr({context:a,fn:"share"},null!=r?r:n,n)}if(a){const e=[];t.password&&e.push("Password"),t.ssh_key&&e.push("SSH key"),t.hardware_key&&e.push("Hardware key"),yield*Er(gg(e)),yield*Er(gv({source:"Pasted",type:"Identity"}))}yield*Er(lO.success(t,n.requestId)),yield*Er(GB(e)),yield*Er(ts.request("does-not-block-ui"))}catch(e){yield*Er(lO.failure(void 0,n.requestId))}}function*mB(e,t){const{store:n}=e;!!n.getKnownHosts().some(e=>e.isEqual(t))||(yield*kr({context:e.store,fn:"setKnownHost"},t),yield*Er(VA(qM(e))),yield*Er(ts.request("does-not-block-ui")))}function*SB(e,{payload:t}){for(const n of t)yield*kr([e.store,e.store.deleteKnownHost],new Cb(n));yield*Er(VA(qM(e))),yield*Er(ts.request("does-not-block-ui"))}function*yB(e,{payload:t,meta:n}){const r=new Ib(t);try{yield*kr({context:e.store,fn:"setPortForwardingRule"},r)}catch(e){return void(yield*Er(sO.failure(void 0,n.requestId)))}yield*Er(sO.success(r,n.requestId)),yield*Er(VA({...KM(e)})),yield*Er(ts.request("does-not-block-ui"))}function*gB(e,{payload:t,meta:n}){try{for(const n of t)yield*kr([e.store,e.store.deletePortForwardingRule],new Ib(n))}catch(e){return void(yield*Er(oO.failure(void 0,n.requestId)))}yield*Er(oO.success(void 0,n.requestId)),yield*Er(VA({...KM(e)})),yield*Er(ts.request("does-not-block-ui"))}function*vB(e,{meta:t}){try{const n=yield*kr({context:e.store,fn:"getOverLimitedHistoryEntities"});yield*kr([e.store,e.store.bulkDeleteHistoryEntities],n),yield*Er(NO.success(n,t.requestId))}catch(e){yield*Er(NO.failure(void 0,t.requestId))}}function*_B(e){const t=yield*Ar(_w);yield*kr({context:e.store,fn:"cleanUpHistory"},t)}function*bB(e,{meta:t}){try{const n=(yield*kr({context:e.store,fn:"getHistoryEntities"})).sort((e,t)=>t.connected_at-e.connected_at);yield*Er(VA({histories:n})),yield*Tr(_B,e),yield*Er($A.success(void 0,t.requestId))}catch(e){yield*Er($A.failure(void 0,t.requestId))}}function*PB(e,{payload:t,meta:n}){var r;const a=yield*Ar($b,null===(r=t.host)||void 0===r?void 0:r.local_id),i=new Ab({...a,...t});try{yield*kr({context:e.store,fn:"setHostLatestActivity"},i),yield*Er(RO.success(void 0,n.requestId)),yield*Er(VA({...LM(e),...VM(e),...BM(e)}))}catch(e){yield*Er(RO.failure(void 0,n.requestId))}}function*wB(e,{payload:t,meta:n}){try{yield*kr({context:e.store,fn:"deleteHostLatestActivity"},t),yield*Er(VA({...LM(e),...VM(e),...BM(e)})),yield*Er(DO.success(void 0,n.requestId))}catch(e){yield*Er(DO.failure(void 0,n.requestId))}}async function EB(e,t){const n=new Wo(t);n.stripEmptyIdentities();const r=e.store.getGroup({local_id:n.local_id},!0)||{local_id:void 0,is_shared:!1};if(n.parent_group&&(n.is_shared=n.parent_group.is_shared),await e.store.setGroup(n),n.is_shared!==Boolean(r.is_shared)||n.is_shared){const t=await VO(n,{store:e.store,settings:e.settings});await t.share(r,n)}return{savedGroup:n,oldGroup:r.local_id?new Wo(r):null}}async function kB(e,t){const n=new Jo(t);n.touch();const r=e.store.getHost({local_id:n.local_id},!0)||{is_shared:!1,local_id:void 0};if(n.group?n.is_shared=n.group.is_shared:n.is_shared=!1,await e.store.setHost(n),n.is_shared!==Boolean(r.is_shared)||n.is_shared){const t=await VO(n,{store:e.store,settings:e.settings});await t.share(r,n)}return{savedHost:n,oldHost:r.local_id?new Jo(r):null}}function TB(e){var t,n;return Boolean((null===(t=e.ssh_config)||void 0===t?void 0:t.identity)&&!e.ssh_config.identity.local_id||(null===(n=e.telnet_config)||void 0===n?void 0:n.identity)&&!e.telnet_config.identity.local_id)}function CB(e,t){var n,r,a,i,s,o,l,c;return Boolean((null===(r=null===(n=null==t?void 0:t.ssh_config)||void 0===n?void 0:n.identity)||void 0===r?void 0:r.local_id)!==(null===(i=null===(a=e.ssh_config)||void 0===a?void 0:a.identity)||void 0===i?void 0:i.local_id)||(null===(o=null===(s=null==t?void 0:t.telnet_config)||void 0===s?void 0:s.identity)||void 0===o?void 0:o.local_id)!==(null===(c=null===(l=e.telnet_config)||void 0===l?void 0:l.identity)||void 0===c?void 0:c.local_id))}function IB(e,t){var n,r,a,i,s,o,l,c,u,p,d,h,f,m,S,y,g,v;return(null===(n=e.ssh_config)||void 0===n?void 0:n.identity)&&!e.ssh_config.identity.local_id?null===(r=e.ssh_config)||void 0===r?void 0:r.identity:(null===(a=e.telnet_config)||void 0===a?void 0:a.identity)&&!e.telnet_config.identity.local_id?null===(i=e.telnet_config)||void 0===i?void 0:i.identity:(null===(o=null===(s=e.ssh_config)||void 0===s?void 0:s.identity)||void 0===o?void 0:o.local_id)&&(null===(c=null===(l=null==t?void 0:t.ssh_config)||void 0===l?void 0:l.identity)||void 0===c?void 0:c.local_id)!==(null===(p=null===(u=e.ssh_config)||void 0===u?void 0:u.identity)||void 0===p?void 0:p.local_id)?null===(d=e.ssh_config)||void 0===d?void 0:d.identity:(null===(f=null===(h=e.telnet_config)||void 0===h?void 0:h.identity)||void 0===f?void 0:f.local_id)&&(null===(S=null===(m=null==t?void 0:t.telnet_config)||void 0===m?void 0:m.identity)||void 0===S?void 0:S.local_id)!==(null===(g=null===(y=e.telnet_config)||void 0===y?void 0:y.identity)||void 0===g?void 0:g.local_id)?null===(v=e.telnet_config)||void 0===v?void 0:v.identity:null}function*AB(e,t){const n=new Jo(t),{group:r}=n;if(!r)throw new Error("Couldn't save host without group");const{savedGroup:a,oldGroup:i}=yield*kr(EB,e,r);(TB(a)||CB(a,i))&&(yield*Er(py({isShared:a.is_shared,identitySource:"Group Settings",identity:IB(a,i)}))),yield*Er(VA({...UM(e),...LM(e),...KM(e)})),n.group=a;const{savedHost:s,oldHost:o}=yield*kr(kB,e,n);return(TB(s)||CB(s,o))&&(yield*Er(py({isShared:s.is_shared,identitySource:"Host Settings",identity:IB(s,o)}))),yield*Er(VA({...LM(e),...KM(e),...UM(e)})),yield*Er(rB(GM(e))),s}function*OB(e,{payload:t,meta:n}){try{const r=yield*kr(AB,e,t);yield*Er(gO.success(r,n.requestId))}catch(e){yield*Er(gO.failure(void 0,n.requestId))}}function*xB(e,{payload:{hosts:t,groups:n},meta:r}){try{for(const t of n.map(e=>new Wo(e))){if(t.is_shared){t.is_shared=!1;const n=yield*kr(VO,t,{store:e.store,settings:e.settings});yield*kr({context:n,fn:"share"},{},t)}yield*kr({context:e.store,fn:"deleteGroup"},t),t.cloud_config&&(yield*Er(zO(t))),yield*Er(Uy({isShared:t.is_shared,id:t.id}))}for(const n of t.map(e=>new Jo(e))){if(n.is_shared){n.is_shared=!1;const t=yield*kr(VO,n,{store:e.store,settings:e.settings});yield*kr({context:t,fn:"share"},{},n)}yield*kr({context:e.store,fn:"deleteHost"},n),yield*Er(cy({isShared:n.is_shared,hostID:n.id||-1}))}yield*Er(GB(e)),yield*Er(rB(GM(e))),yield*Er(ts.request("does-not-block-ui")),yield*Er(cO.success(void 0,r.requestId))}catch(e){yield*Er(cO.failure(void 0,r.requestId))}}function*NB(e,{payload:t,meta:n}){try{const{groups:r,hosts:a,targetGroup:i}=t;for(const t of a.map(e=>new Jo(e))){const n=new Jo(t);n.group=new Wo(i),yield*kr(kB,e,n)}for(const t of r.map(e=>new Wo(e))){const n=new Wo(t);n.parent_group=new Wo(i),yield*kr(EB,e,n)}yield*Er(GB(e)),yield*Er(rB(GM(e))),yield*Er(ts.request("does-not-block-ui")),yield*Er(GO.success(void 0,n.requestId))}catch(e){yield*Er(GO.failure(void 0,n.requestId))}}function*RB(){yield*Er(ts.request("does-not-block-ui"))}function*DB(e){yield*Rr([br(ts.success,FB,e),br(FO.success,FB,e),br(gO.request,OB,e),Pr(gO.success,RB),br(cO.request,xB,e),br(GO.request,NB,e),br(rO.request,aB,e),br(aO.request,iB,e),br(tO.request,sB,e),br(eO.request,lB,e),br(nO,dB,e),br(iO.request,hB,e),br(lO.request,fB,e),br(sO.request,yB,e),br(oO.request,gB,e),qi(AO,(function*(t){const n=new XS({...t,active:!1});yield*kr({context:e.store,fn:"updateHistoryEntity"},n),yield*Er($A.request()),yield*Er(NO.request()),yield*Er(ts.request("does-not-block-ui"))})),qi(IO,(function*(t){return yield*kr({context:e.store,fn:"setHistory"},t)})),qi(OO,(function*(t){const n=yield*Ar(OP);yield*kr({context:e.store,fn:"deleteHistoryEntity"},t),yield*Er($A.request()),yield*Er(SP.request()),yield*Er(eg({clearAll:"no",history:n}))})),br($A.request,bB,e),qi(xO,(function*(){const t=yield*Ar(OP),n={totalCount:0,isNeedUpdate:!1,shownCount:10};(yield*Ar(qP))&&(yield*kr({context:e.store,fn:"clearAllInactiveHistories"})),yield*Er($A.request()),(yield*Ar(qP))&&(yield*kr({context:e,fn:"clearHistory"})),yield*kr({context:e.store,fn:"clearAllInactiveHistories"}),yield*Er(wP(n)),yield*Er(eg({clearAll:"yes",history:t}))})),br(NO.request,vB,e),br(RO.request,PB,e),br(DO.request,wB,e),br(kO,({payload:t})=>function*(e,t){const{store:n}=e;yield*kr(()=>Promise.all(n.getKnownHosts().filter(e=>e.hostnames===t.hostnames).map(e=>n.deleteKnownHost(e)))),yield*mB(e,t)}(e,new Cb(t))),br(TO,({payload:t})=>mB(e,new Cb(t))),br(CO,SB,e),br(os.request,HB,e),qi(HO,async()=>e.store.hasSyncableEntities()),qi(FO,async({entities:t,group:n})=>{try{const r=null!=n?new Wo(n):null,a=await e.store.importEntities(t,r);return null!=r&&r.is_shared&&await EB(e,r),a}catch(e){throw{}}})])}function*HB(e,{payload:t,meta:n}){try{const r=yield*ji(Pl),{user_id:a}=r.account,{encryption_schema:i}=ow(r);yield*kr({context:e,fn:"enableSharing"},a,t,i),yield*Er(os.success(void 0,n.requestId))}catch(e){TS.exception("Enabling sharing failed, error: "+(null==e?void 0:e.constructor),e);const t=Fj(e.responseJSON);yield*Er(os.failure(t,n.requestId))}}function*FB(e){yield*function*(e){yield*Er(GB(e))}(e),yield*Er(rB(GM(e)))}function GB(e){return VA(XM(e))}function*UB({meta:e}){try{const t=yield*Ar(Wb),n=yield*Ar(Yb),r=yield*Ar(ew),a=HM({hosts:t,groups:n,isAbleToEditSharedEntities:r});yield*Er(IM.success(a,e.requestId))}catch(t){yield*Er(IM.failure(void 0,e.requestId))}}function*LB(e,{payload:t,meta:n}){try{const{data:r,identityPathName:a}=t,{identity:i,entities:s}=r,o=RM[a],l=yield*Ar(Wb),c=yield*Ar(Yb),u=s.map(t=>{if("host"===t.type){let n=l.find(e=>e.local_id===t.entity.local_id);if(n)return n=CM()(n,o,i),kB(e,n)}let n=c.find(e=>e.local_id===t.entity.local_id);return n?(n=CM()(n,o,i),EB(e,n)):null});yield*kr(()=>Promise.all(u)),yield*Er(AM.success(i,n.requestId)),yield*Er(VA(XM(e))),yield*Er(rB(GM(e))),yield*Er(ts.request("does-not-block-ui"))}catch(e){yield*Er(AM.failure(void 0,n.requestId))}}function*jB(e,{payload:t,meta:n}){var r,a,i,s;try{const{entity:o,identity:l,type:c}=t,u=new No({...l,is_visible:!1}).prepareForDuplicate();(null===(r=o.ssh_config)||void 0===r?void 0:r.identity)&&o.ssh_config.identity.local_id===l.local_id&&(o.ssh_config.identity=u),(null===(a=o.telnet_config)||void 0===a?void 0:a.identity)&&o.telnet_config.identity.local_id===l.local_id&&(o.telnet_config.identity=u),(null===(s=null===(i=o.ssh_config)||void 0===i?void 0:i.proxy)||void 0===s?void 0:s.identity)&&o.ssh_config.proxy.identity.local_id===l.local_id&&(o.ssh_config.proxy.identity=u),"host"===c?yield*kr(()=>kB(e,o)):yield*kr(()=>EB(e,o)),yield*Er(OM.success(l,n.requestId)),yield*Er(VA(XM(e))),yield*Er(ts.request("does-not-block-ui"))}catch(e){yield*Er(OM.failure(void 0,n.requestId))}}function*MB(e){yield*Rr([xr(1e4,IM.request,UB),br(AM.request,LB,e),br(OM.request,jB,e)])}const BB=(e,t)=>{const n=new Date(e.created_at).valueOf();return new Date(t.created_at).valueOf()-n};function*KB(){yield*Er(jc.request()),yield*Er(Pl.request())}function*qB(e,{meta:t}){try{if(yield*Ar(WP)){const{message:e}=new Mr;return void(yield*Er(jc.failure({message:e},t.requestId)))}const n=yield*kr({context:e,fn:"getInAppMessages"}),r=yield*kr({context:e.store,fn:"getAllInAppMessages"}),a=n.objects.sort(BB).map(({local_id:e,...t})=>{const n=r.find(e=>t.id===e.id),a=(null==n?void 0:n.local_id)?{local_id:n.local_id}:null;return{...t,...a,created_at:new Date(t.created_at),is_seen:(null==n?void 0:n.is_seen)||t.is_seen}});FS.setDeprecatedBellDotType(n.meta.dot_type);const i=yield*kr({context:e.store,fn:"getAllInAppMessages"});yield*kr({context:e.store,fn:"deleteInAppMessage"},i.filter(e=>"termius-message://kex"===e.action).map(e=>e.local_id));for(const t of a)yield*kr({context:e.store,fn:"setInAppMessage"},t);const s=a.filter(e=>e.force_to_do_action).filter(e=>"termius-message://kex"!==e.action);yield*Er(Kc(s)),yield*Er(jc.success({meta:n.meta,objects:a},t.requestId))}catch(e){yield*Er(jc.failure({message:e.message},t.requestId))}}function*VB(e,{meta:t}){try{const n=FS.getDeprecatedBellDotType(),r=yield*kr({context:e.store,fn:"getAllInAppMessages"});yield*Er(Mc.success({meta:{dot_type:n},objects:r},t.requestId))}catch(e){yield*Er(Mc.failure({message:e.message},t.requestId))}}function*$B(e,{meta:t,payload:n}){try{for(const t of n)yield*kr({context:e.store,fn:"setInAppMessage"},t);yield*Er(Bc.success(n,t.requestId))}catch(e){yield*Er(Bc.failure({message:e.message},t.requestId))}}function*WB({payload:e}){var t;const n=yield*Ar(e=>mM(e,"MigrateToNewCryptoSystemScreen"));for(const n of e)yield*Er(Gc({teamMemberID:null===(t=n.message_attributes)||void 0===t?void 0:t.user_email,messageAction:n.action,auto:!0}));if(0===n.length){const t=e.find(e=>"termius-message://migrate-to-new-crypto"===e.action&&!e.is_seen);t&&(yield*lG({dialog:"MigrateToNewCryptoSystemScreen",target:"all-windows",props:{inAppMessage:t}}))}}function*zB({payload:e}){const t=(yield*Ar(Aj)).map(t=>t.id===e?{...t,is_seen:!0}:t);yield*Er(Bc.request(t))}function*JB(e,{meta:t,payload:n}){try{const r=(yield*Ar(Aj)).filter(e=>!n.some(t=>t.id===e.id));yield*Er(Bc.request(r));const a=n.map(e=>e.local_id).filter(e=>!!e);yield*kr({context:e.store,fn:"deleteInAppMessage"},a),yield*Er(qc.success(r,t.requestId))}catch(e){yield*Er(qc.failure({message:e.message},t.requestId))}}function*XB(){const e=(yield*Ar(Aj)).map(e=>({...e,is_seen:!0}));yield*Er(Bc.request(e))}function*QB(e){yield*Rr([br(Mc.request,VB,e),br(Lc,KB),br(jc.request,qB,e),br(Bc.request,$B,e),br(Kc,WB),br(Nc,zB),br(qc.request,JB,e),br(Fc,XB)])}var YB=n(31),ZB=n.n(YB);function eK(e){return e.presenceEffect}function tK(e){return e.devices.length>0}const nK=e=>t=>{var n;return{...null!==(n=e.find(e=>((e,t)=>e.id===t.user_id)(e,t)))&&void 0!==n?n:rK(t),username:t.email}},rK=e=>({id:e.user_id,username:e.email,devices:[]}),aK=(e,t)=>{var n;if(null==t.user_id)return e;const r={...null!==(n=e.find(e=>e.id===t.user_id))&&void 0!==n?n:rK(t)},a=e.filter(e=>e.id!==t.user_id).sort((e,t)=>{var n,r;return(null!==(n=e.id)&&void 0!==n?n:1/0)-(null!==(r=t.id)&&void 0!==r?r:1/0)}),[i,s]=rR()(a,tK);return MN()([r,...i,...s],"username")};function*iK(){const e=yield*Ar(uw),t=yield*Ar(MP);return null==e||null==t?{user_id:void 0,email:void 0}:{user_id:t,email:e}}function*sK(e,t,n){const r=yield*Ar(nw),a=yield*Ar(vw);kN(r),kN(a);const i=yield*iK(),s={user_id:a,email:r},o=[nK(e)(s),...t.map(nK(e)),...n.map(rK)];return aK(o,i).filter(e=>e.username)}function*oK(e){var t,n;const r=yield*iK();try{const r=yield*ji(Jl),a=null!==(t=null==r?void 0:r.results)&&void 0!==t?t:[];yield*Er(vG(a));const i=yield*ji(Xl),s=null!==(n=null==i?void 0:i.results)&&void 0!==n?n:[];return yield*sK(e,a,s)}catch(t){return aK(e.filter(e=>e.username),r)}}const lK=e=>{var t,n,r;return{id:null!==(n=null===(t=e.chan_info)||void 0===t?void 0:t.user_id)&&void 0!==n?n:0,username:"",devices:[null!==(r=e.client)&&void 0!==r?r:""]}},cK=(e,t)=>{var n;return e.id===(null===(n=t.chan_info)||void 0===n?void 0:n.user_id)},uK=(e,t)=>{var n;const r=e.findIndex(e=>cK(e,t));return-1===r?e.push(lK(t)):e[r].devices=[...e[r].devices,null!==(n=t.client)&&void 0!==n?n:""],e};function*pK({payload:e}){const t=yield*Ar(eK),n=Object.values(e).reduce(uK,[]);if(n.some(e=>""===e.username)){const e=yield*oK(n);return void(yield*Er(mG(e)))}const r=yield*iK(),a=[...n,...t.filter(e=>!n.some(t=>{return n=t,e.id===n.id;var n})).map(e=>({...e,devices:[]}))];yield*Er(mG(aK(a,r)))}function*dK({payload:e}){var t;const n=ZB()(yield*Ar(eK)),r=n.findIndex(t=>cK(t,e));if(-1===r){n.push(lK(e));const t=yield*oK(n);return void(yield*Er(mG(t)))}{const a=[...n[r].devices,null!==(t=e.client)&&void 0!==t?t:""];n[r].devices=a}const a=yield*iK();yield*Er(mG(aK(n,a)))}function*hK({payload:e}){const t=ZB()(yield*Ar(eK)),n=t.findIndex(t=>cK(t,e));if(-1===n)return;{const r=t[n].devices.filter(t=>t!==e.client);t[n].devices=r}const r=yield*iK();yield*Er(mG(aK(t,r)))}function*fK(e,t){try{const n=yield*kr({context:e.api,fn:"getUserAvatar"},t);if(n){const r=yield*kr(async()=>{return e=n,new Promise((t,n)=>{const r=new FileReader;r.onload=()=>t(r.result),r.onerror=()=>n(r.error),r.readAsDataURL(e)});var e});kN("string"==typeof r),yield*kr({context:e.store,fn:"setTeamMemberAvatar"},{id:t,base64:r})}}catch(n){404===n.status?yield*kr({context:e.store.teamMemberAvatarRepository,fn:"delete"},[t]):TS.exception("Error during getting user avatar",n)}}function*mK(e,{payload:t}){const n=yield*Ar(MP),r=yield*Ar(vw),a=t.map((function*(t){yield*fK(e,t.user_id)}));r&&a.push(function*(){yield*fK(e,r)}()),n&&a.push(function*(){yield*fK(e,n)}()),yield*Rr(a);const i=yield*kr({context:e.store,fn:"getAllTeamMemberAvatars"});yield*Er(_G(i))}function*SK(e,{meta:t}){try{const n=yield*Ar(eK),r=yield*kr({context:e.store,fn:"getAllTeamInvites"}),a=yield*kr({context:e.store,fn:"getAllTeamMembers"}),i=yield*kr({context:e.store,fn:"getAllTeamMemberAvatars"}),s=yield*sK(n,a,r);yield*Er(mG(s)),yield*Er(bG.success({invites:r,members:a,avatars:i},t.requestId))}catch(e){yield*Er(bG.failure({message:e.message},t.requestId))}}function*yK(){try{const e=yield*Ar(eK),t=yield*Ar(mw),n=yield*Ar(fw),r=yield*sK(e,n,t);yield*Er(mG(r))}catch(e){TS.exception("Error during refreshing presence effect",e)}}function*gK(){yield*Er(vG([]))}function*vK(e){yield*Rr([br(SG,pK),br(yG,dK),br(gG,hK),br(vG,mK,e),br(bG.request,SK,e),br(PG,yK),br([Hl.success,Gl],gK)])}const _K=Pi("WINDOW_CREATED"),bK=Pi("WINDOW_DESTROYED"),PK=(Pi("WINDOW_TITLE_CHANGED"),Li("REQUEST_PRIMARY_WINDOW_FOR_AN_ACTION")),wK=e=>{var t;return null===(t=e.onboardings)||void 0===t?void 0:t.onboardingAttributes.find(e=>"personal"===e.type)},EK=e=>{var t;return null===(t=e.onboardings)||void 0===t?void 0:t.onboardingAttributes.find(e=>"team"===e.type)},kK=(e,t)=>{var n,r;return!!(null===(r=null===(n=wK(e))||void 0===n?void 0:n.steps.find(e=>e.codename===t))||void 0===r?void 0:r.value)},TK=(e,t)=>{var n,r;return!!(null===(r=null===(n=EK(e))||void 0===n?void 0:n.steps.find(e=>e.codename===t))||void 0===r?void 0:r.value)},CK=e=>e.onboardings.proTrialOnboarding.proTrialCompletedStepsOrder,IK=e=>!!e.onboardings.proTrialOnboarding.userShouldSeeProTrialOnboarding,AK=e=>{var t;return null===(t=wK(e))||void 0===t?void 0:t.steps},OK=e=>kK(e,"invite_members")||!1,xK=e=>kK(e,"add_second_device")||!1,NK=e=>kK(e,"add_hosts")||!1,RK=e=>kK(e,"connect_to_host")||!1,DK=e=>!!e.onboardings.proTrialOnboarding.proTrialSuccessAnimationFinished,HK=e=>{var t;return(null===(t=wK(e))||void 0===t?void 0:t.is_completed)||!1},FK=e=>{var t;return(null===(t=wK(e))||void 0===t?void 0:t.id)||0},GK=e=>TK(e,"has_invited_members")||!1,UK=e=>TK(e,"has_shared_data")||!1,LK=e=>!!e.onboardings.teamOwnerOnboarding.userClosedTeamOnboarding,jK=e=>!!e.onboardings.teamOwnerOnboarding.userShouldSeeTeamOnboarding,MK=e=>!!e.onboardings.teamOwnerOnboarding.teamSuccessAnimationFinished,BK=e=>!!e.onboardings.teamOwnerOnboarding.teamEntryAnimationFinished,KK=e=>!!e.onboardings.teamOwnerOnboarding.upgradeNowButtonHasActiveMode,qK=e=>{var t;return null===(t=EK(e))||void 0===t?void 0:t.steps},VK=e=>{const t=EK(e);if(!t)return!1;const n=LK(e),r=fM(e),a=aP(e),i=!!fw(e).length,s=Lj(e).some(e=>"/hosts"===e.path),o=jK(e);return!!(!(null==t?void 0:t.is_completed)&&!o&&(!i||!a)&&0===r.length&&s&&!n)},$K=e=>{const t=qK(e),n=MK(e),r=aP(e),a=fw(e),i=jK(e),s=(null==t?void 0:t.every(e=>e.value))||!!a.length&&r,o=fM(e),l=Lj(e).some(e=>"/hosts"===e.path);return!!(t&&s&&0===o.length&&i&&l&&!n)},WK=e=>{var t;const n=rw(e),r=tw(e),a=MK(e),i=jK(e),s=LK(e),o=HK(e),l=e.user.personal_subscription;return o&&!l||r&&n&&(i||a||s||(null===(t=EK(e))||void 0===t?void 0:t.is_completed))},zK=e=>{const t=mw(e),n=fw(e),r=!!n.length&&n.some(e=>e.is_access_granted);return{hasSharedData:aP(e),hasInvitedMembers:!!t.length,hasJoinedMembers:!!n.length,hasGrantedAccess:r}};function JK(e,t){e instanceof jr&&400!==e.status||0===e.status||TS.exception(t,e)}function*XK(e){yield*br([Hl.success,Gl,hj,tc.success,mj,Ol.success,pc.success,hc.success,ic.success,ij],QK,e),yield*br(rj,YK),yield*br(rj,rq),yield*br([Hl.success,rj],ZK),yield*br($A.success,eq),yield*br(fj.request,tq,e),yield*br(ay,nq),yield*br([Ic,bK],aq),yield*br(Rj,sq),yield*br(Rj,oq),yield*br(oj,iq),yield*br([Ul.success,tc.success],lq),yield*br(Hl.success,cq),yield*br(Pl.success,uq)}function*QK(e){var t,n;if(!(yield*Ar(WP)))try{const r=(yield*kr([e,e.retrieveOnboardingAttributes])).objects;if(!r)return;const a=null==r?void 0:r.find(e=>"team"===e.type),i=yield*Ar(jK);if(a&&i){const e=yield*Ar(GK),r=yield*Ar(UK),i=null===(t=a.steps.find(e=>"has_invited_members"===e.codename))||void 0===t?void 0:t.value;if(r!==(null===(n=a.steps.find(e=>"has_shared_data"===e.codename))||void 0===n?void 0:n.value)||e!==i){const e=yield*Ar(zK);yield*Er(bg(e))}}yield*Er(rj(r))}catch(e){JK(e,"Getting onboarding data from backend failed")}}function*YK(){var e,t;const n=yield*Ar(rw),r=yield*Ar(JP),a=yield*Ar(IK),i=yield*Ar(wK);if(!n||r||!i)return void(a&&(yield*Er(sj(!1))));const s=yield*Ar(xK),o=null===(e=null==i?void 0:i.steps.find(e=>"add_second_device"===e.codename))||void 0===e?void 0:e.value,l=null===(t=null==i?void 0:i.steps.find(e=>"invite_members"===e.codename))||void 0===t?void 0:t.value,c=yield*Ar(IK);if(!(null==i?void 0:i.is_completed)&&l&&(yield*Er(nj(["add_hosts","connect_to_host","invite_members","add_second_device"]))),!s&&o&&c){const e=yield*Ar(OK);yield*Er(pb({onboardingAction:"Install",success:"yes",remainingSteps:e?0:1}))}}function*ZK(){const e=yield*Ar(rw),t=yield*Ar(JP),n=yield*Ar(DK),r=yield*Ar(IK),a=yield*Ar(NK),i=yield*Ar(RK),s=yield*Ar(HK);if(!n&&s)return yield*Or(4e3),yield*Er(aj),yield*Er(sj(!1)),void(yield*Er(uj(!0)));s||n||!e||t||!i||!a||r||(yield*Er(sj(!0)))}function*eq(){const e=yield*Ar(rw),t=yield*Ar(IK),n=yield*Ar(DK),r=yield*Ar(HK);if(!e||t||n||r)return;const a=0!==(yield*Ar(qb)).filter(e=>!e.errorMsg).length;!t&&e&&!r&&a&&(yield*Er(sj(!0)),yield*Er(lb()))}function*tq(e){try{const t=yield*Ar(CK),n=yield*Ar(OK),r=t.indexOf("invite_members");if(n)return;const a=yield*Ar(FK);yield*kr(()=>e.skipTrialOnboardingInviteStep({data:{steps:[{codename:"invite_members",value:!0}]},id:a})),yield*Er(ij());const i=yield*Ar(AK);if(!i)return;const s=yield*Ar(xK),o=i.filter(e=>e.value).length;yield*Er(pb({onboardingAction:"Invite",success:"no",remainingSteps:s?0:1})),yield*Er(nj(((e,t,n)=>{const r=e[t],a=[...e];a.splice(t,1);return a.slice(0,n).concat(r).concat(a.slice(n))})(t,r,o)))}catch(e){JK(e,"Skip invite step failed")}}function*nq(){const e=yield*Ar(rw),t=yield*Ar(RK),n=yield*Ar(NK);e&&t&&n&&(yield*Er(lb()))}function*rq(){const e=yield*Ar(tw),t=yield*Ar(EK),n=yield*Ar(jK);t&&e?(yield*sq(),yield*oq(),yield*function*(){const e=yield*Ar(EK);if(!e)return;const t=yield*Ar(jK),n=yield*Ar(MK);!e.is_completed||n||t||(yield*Er(cj(!0)))}()):n&&(yield*Er(lj(!1)))}function*aq(){if(!(yield*Ar(tw)))return;const e=yield*Ar(MK),t=yield*Ar(qK),n=yield*Ar(aP),r=yield*Ar(fw),a=yield*Ar(jK);!((null==t?void 0:t.every(e=>e.value))||!!r.length&&n)||e||a||(yield*Er(cj(!0)),yield*Er(uj(!0))),yield*sq(),yield*oq()}function*iq(){(yield*Ar(LK))&&(yield*Er(lj(!1)))}function*sq(){if(!(yield*Ar(EK)))return;const e=yield*Ar(zK),t=yield*Ar(VK),n=yield*Ar(BK);t&&(n||(yield*Er(bg(e))),yield*Er(lj(!0)),yield*Or(3e3),yield*Er(pj(!0)))}function*oq(){if(!(yield*Ar(tw)))return;(yield*Ar($K))&&(yield*Or(1e3),yield*Er(cj(!0)),yield*Or(3e3),yield*Er(lj(!1)),yield*Er(uj(!0)))}function*lq(){yield*Er(dj())}function*cq(){const e=yield*Ar(WK),t=yield*Ar(KK),n=yield*Ar(jK);!e||n||t||(yield*Er(uj(!0)))}function*uq(){const e=yield*Ar(tw),t=yield*Ar(jK);!e&&t&&(yield*lq(),yield*Er(mj()))}const pq=Pi("OPEN_LIVE_TERMINAL"),dq=Pi("OPEN_SHARED_HOST"),hq=Pi("OPEN_SSH_HOST"),fq=Pi("OPEN_CONNECTIONS"),mq=Pi("OPEN_CONNECTIONS_FROM_DEEPLINK");Pi("OPEN_TERMINAL_NEW_IDENTITY_FORM");var Sq=n(221),yq=n.n(Sq);const gq=new Map;function vq(e){return ZP(e)?e.realtimeCollaboration.connections.map:gq}const _q=new Map;function bq(e){return ZP(e)?e.realtimeCollaboration.connectionRequests.map:_q}ei(vq,(e,t)=>t,Pq),ei(vq,e=>t=>Pq(e,t));function Pq(e,t){return t.id&&t.is_shared?Object.entries(yq()([...e.values()].filter(e=>e.hostId===t.id),"owner")).map(([e,t])=>[Number(e),t]):[]}ei(bq,(e,t)=>t,wq),ei(bq,e=>t=>wq(e,t));function wq(e,t){return new Map(Array.from(e).filter(([e,n])=>n.hostId===t.id))}function Eq(e,t,n){const r=e.get(t);if(null==r||""===r)throw new Error(n);return decodeURIComponent(r)}function kq(e){const t="Cannot open live terminal. Missing arguments",n=e.hash.substr(1),r=new URLSearchParams(n),a=Eq(r,"id",t),i=function(e){if(pP.isValidColorSchemeName(e))return e;throw new Error("Invalid color scheme")}(Eq(r,"scheme",t)),s=Eq(r,"pwd",t),o=Eq(r,"title",t);return{id:a,color_scheme:i,password:s,connectionId:Eq(r,"connectionId",t),title:o}}function Tq(e,t){var n,r;if(!e.address||!e.port)throw new Error("Can't create connecation without necessary fields");return new kb({protocol:t,quick:!0,host:new Jo({address:e.address,label:null!==(n=e.label)&&void 0!==n?n:"",os_name:null!==(r=e.os)&&void 0!==r?r:null,ssh_config:new Vo({port:e.port,identity:new No({is_visible:!1,username:e.username})})})})}function*Cq(){yield*_r(Vi);let e=null;(yield*Ar(ZP))&&(e=yield*Cr(Iq)),yield*Pr([Pl.success,Ul.success,Hl.success],(function*(){const t=yield*Ar(ZP);if(t&&null==e)return e=yield*Cr(Iq),void(yield*Er(JL()));t||null==e||(yield*Ir(e),e=null,yield*Er(XL()))}))}function*Iq(){yield*br(yG,Aq),yield*br(gG,Oq),yield*br(Vw,xq),yield*br($w,Nq),yield*br(Zg,Rq),yield*br(ev,Dq),yield*br(Qg,Hq),yield*br(Ww,Fq),yield*br(Yg,Gq),yield*br($L,Uq),yield*br(bK,Lq)}function*Aq(){const e=yield*Ar(MP),t=[...(yield*Ar(vq)).values()].filter(t=>t.owner===e&&t.ownerDeviceToken===NN.token);yield*Er(wG({type:"SHARE_REALTIME_COLLABORATION_STATE",payload:t}))}function*Oq({payload:e}){var t;const n=null===(t=e.chan_info)||void 0===t?void 0:t.user_id;n&&(yield*Er(qL(n)))}function*xq({payload:e}){const t=yield*Ar(MP);if(!t)return;const{connection:n,terminal:r,windowId:a}=e,{host:i,protocol:s,id:o}=n;if("stream"!==s&&i.id&&i.is_shared){const e={userId:t,hostId:i.id,connectionId:o,ownerDeviceToken:NN.token,windowId:a,connectionParams:{terminalTitle:r?r.title:"",totalViewersCount:0,allowViewersInput:!1}};yield*Er(LL(e)),yield*Er(wG({type:"TEAM_TERMINAL_SESSION_STARTED",payload:e}))}}function*Nq({payload:e}){const{host:t,protocol:n,id:r}=e;"stream"!==n&&t.is_shared&&(yield*Mq(r))}function*Rq({payload:e}){const t=yield*Ar(eK),{connectionID:n,currentViewers:r,userId:a}=e;if(t.find(e=>e.id===a)){kN(a);const e={userId:a,connectionId:n,totalViewersCount:r};yield*Er(ML(e)),yield*Er(wG({type:"JOIN_TEAM_TERMINAL_SESSION",payload:e}))}else yield*jq({connectionId:n,connectionParams:{totalViewersCount:r}})}function*Dq({payload:e}){const{connectionID:t,currentViewers:n,userId:r}=e;if(r){const e={userId:r,connectionId:t,totalViewersCount:n};yield*Er(BL(e)),yield*Er(wG({type:"LEAVE_TEAM_TERMINAL_SESSION",payload:e}))}else yield*jq({connectionId:t,connectionParams:{totalViewersCount:n}})}function*Hq({payload:e}){const{connectionID:t}=e;(yield*Ar(vq)).get(t)&&(yield*Mq(t))}function*Fq({payload:e}){var t;const{connection:n,title:r}=e;(null===(t=n.host)||void 0===t?void 0:t.is_shared)&&"stream"!==n.protocol&&(yield*jq({connectionId:n.id,connectionParams:{terminalTitle:r}}))}function*Gq({payload:e}){const{connectionID:t,sharedTerminalPermissions:n}=e;yield*jq({connectionId:t,connectionParams:{allowViewersInput:"Input"===n}})}function*Uq({payload:e}){var t;const n=yield*ji(PK),r=yield*Ar(bq);if(n&&r.has(e.id)){const{connectionId:r,title:a,...i}=kq(new URL(e.url)),s=(yield*Ar(vq)).get(r),o=(null===(t=null==s?void 0:s.params)||void 0===t?void 0:t.terminalTitle)||a;yield*Er(pq({windowId:n,connectionOrigin:"Collaboration Context Menu",connectionId:r,title:o,...i})),yield*Er(zL(e.id))}}function*Lq({payload:e}){const t=yield*Ar(MP),n=[...(yield*Ar(vq)).values()].filter(n=>n.owner===t&&n.ownerDeviceToken===NN.token&&n.windowId===e);for(const e of n)yield*Mq(e.id)}function*jq(e){yield*Er(KL(e)),yield*Er(wG({type:"TEAM_TERMINAL_SESSION_PARAMS_CHANGED",payload:e}))}function*Mq(e){yield*Er(jL(e)),yield*Er(wG({type:"TEAM_TERMINAL_SESSION_FINISHED",payload:e}))}function Bq(e){return{...e,abortController:void 0,delegate:void 0,analyticsHelper:void 0,sessionLogAnalytics:void 0}}const Kq=Li("SIGNALING_TOKEN"),qq=Li("SIGNALING_CONFIGURATION"),Vq=Pi("LIVE_TERMINAL_LINK_COPIED");function*$q(e,{payload:t}){try{const n=yield*Ar(MP),{windowId:r,connectionOrigin:a,...i}=t,s=yield*kr({context:e.api,fn:"getSignalingConfiguration"}),o=new kb({id:t.connectionId,protocol:"stream",stream:{...i,currentUserId:n,config:s}});yield*Er(fq({windowId:r,connections:[{connection:Bq(o),connectionOrigin:a,acquisitionChannel:"Live Terminal"}]}))}catch(e){}}function*Wq(e){yield*Rr([qi(Kq,async()=>(await e.api.getSignalingToken()).token),qi(qq,()=>e.api.getSignalingConfiguration()),br(pq,$q,e)])}const zq=Pi("UPDATE_SHORTCUTS_SCHEME");var Jq=n(222),Xq=n.n(Jq);const Qq={metaKey:{win:"Win",linux:"Super",mac:"Cmd"},ctrlKey:{win:"Ctrl",linux:"Ctrl",mac:"Ctrl"},altKey:{win:"Alt",linux:"Alt",mac:"Alt"},shiftKey:{win:"Shift",linux:"Shift",mac:"Shift"}},Yq=(new Map([["ArrowDown","↓"],["ArrowUp","↑"],["ArrowLeft","←"],["ArrowRight","→"],["Semicolon",":"],["Comma",","],["Period","."],["Slash","/"],["Quote",'"'],["Backquote","`"],["Backslash","\\"],["BracketLeft","["],["BracketRight","]"],["Minus","-"],["Equal","="],["Subtract","-"],["Divide","/"],["Multiply","*"],["Decimal","."],["Add","+"]]),{shortcuts:[{shortcut:"meta+c",callbackName:"copyFromTerminal",actionName:"Copy from Terminal",type:"copyFromTerminal"},{shortcut:"meta+v",callbackName:"pasteToTerminal",actionName:"Paste to Terminal",type:"pasteToTerminal"},{shortcut:"meta+a",callbackName:"selectAllInTerminal",actionName:"Select All in Terminal",type:"selectAllInTerminal"},{shortcut:"meta+s",callbackName:"toggleSnippetsPanel",actionName:"Show Snippets Panel in Terminal",type:"toggleSnippetsPanel"},{shortcut:"meta+l",callbackName:"openLocalTerminal",actionName:"Open Local Terminal",type:"localTerminal"},{shortcut:"meta+b",callbackName:"toggleSplitViewBroadcastMode",actionName:"Toggle Split View Broadcast Mode",type:"toggleSplitViewBroadcastMode"},{shortcut:"meta+alt+s",callbackName:"openSerialConnection",actionName:"Open Serial Connection",type:"serialConnection"},{shortcut:"meta+k",callbackName:"clearTerminalBuffer",actionName:"Clear Terminal Buffer",type:"clearTerminalBuffer"},{shortcut:"meta+f",callbackName:"openTerminalSearch",actionName:"Open Terminal Search",type:"openTerminalSearch"},{shortcut:"meta+t",callbackName:"switchToTerminals",actionName:"Open Hosts Page",type:"terminals"},{shortcut:"meta+w",callbackName:"closeTab",actionName:"Close Tab",type:"close"},{shortcut:"meta+shift+s",callbackName:"switchToSnippets",actionName:"Open Snippets",type:"snippets"},{shortcut:"meta+p",callbackName:"switchToPortForwarding",actionName:"Open Port Forwarding",type:"forwarding"},{shortcut:"meta+shift+]",callbackName:"switchBottomTab",actionName:"Next Tab",type:"bottom"},{shortcut:"meta+shift+[",callbackName:"switchTopTab",actionName:"Previous Tab",type:"top"},{shortcut:"alt+shift+b",callbackName:"switchLeftPanelSize",actionName:"Switch Left Panel Size",type:"leftPanel"},{shortcut:"meta+alt+b",callbackName:"focusMultiExec",actionName:"Move focus to the multi-exec field",type:"focusMultiExec"}],mod:"meta",paneMod:"meta+alt",platforms:["mac"],editable:!1}),Zq={shortcuts:[{shortcut:"ctrl+shift+c",callbackName:"copyFromTerminal",actionName:"Copy from Terminal",type:"copyFromTerminal"},{shortcut:"ctrl+shift+v",callbackName:"pasteToTerminal",actionName:"Paste to Terminal",type:"pasteToTerminal"},{shortcut:"ctrl+shift+a",callbackName:"selectAllInTerminal",actionName:"Select All in Terminal",type:"selectAllInTerminal"},{shortcut:"ctrl+s",callbackName:"toggleSnippetsPanel",actionName:"Show Snippets Panel in Terminal",type:"toggleSnippetsPanel"},{shortcut:"ctrl+l",callbackName:"openLocalTerminal",actionName:"Open Local Terminal",type:"localTerminal"},{shortcut:"ctrl+b",callbackName:"toggleSplitViewBroadcastMode",actionName:"Toggle Split View Broadcast Mode",type:"toggleSplitViewBroadcastMode"},{shortcut:"ctrl+alt+s",callbackName:"openSerialConnection",actionName:"Open Serial Connection",type:"serialConnection"},{shortcut:"ctrl+shift+k",callbackName:"clearTerminalBuffer",actionName:"Clear Terminal Buffer",type:"clearTerminalBuffer"},{shortcut:"ctrl+shift+f",callbackName:"openTerminalSearch",actionName:"Open Terminal Search",type:"openTerminalSearch"},{shortcut:"ctrl+shift+t",callbackName:"switchToTerminals",actionName:"Open Hosts Page",type:"terminals"},{shortcut:"ctrl+shift+w",callbackName:"closeTab",actionName:"Close Tab",type:"close"},{shortcut:"ctrl+shift+s",callbackName:"switchToSnippets",actionName:"Open Snippets",type:"snippets"},{shortcut:"ctrl+p",callbackName:"switchToPortForwarding",actionName:"Open Port Forwarding",type:"forwarding"},{shortcut:"alt+→",callbackName:"switchBottomTab",actionName:"Next Tab",type:"bottom"},{shortcut:"alt+←",callbackName:"switchTopTab",actionName:"Previous Tab",type:"top"},{shortcut:"alt+shift+b",callbackName:"switchLeftPanelSize",actionName:"Switch Left Panel Size",type:"leftPanel"},{shortcut:"ctrl+alt+b",callbackName:"focusMultiExec",actionName:"Move focus to the multi-exec field",type:"focusMultiExec"}],mod:"ctrl",paneMod:"ctrl+alt",platforms:["mac","linux","win"],editable:!1};const eV={copyFromTerminal:{callbackName:"copyFromTerminal",actionName:"Copy from Terminal"},pasteToTerminal:{callbackName:"pasteToTerminal",actionName:"Paste to Terminal"},selectAllInTerminal:{callbackName:"selectAllInTerminal",actionName:"Select All in Terminal"},terminals:{callbackName:"switchToTerminals",actionName:"Open Hosts Page"},...SR?{}:{localTerminal:{callbackName:"openLocalTerminal",actionName:"Open Local Terminal"}},serialConnection:{callbackName:"openSerialConnection",actionName:"Open Serial Connection"},close:{callbackName:"closeTab",actionName:"Close Tab"},bottom:{callbackName:"switchBottomTab",actionName:"Next Tab"},top:{callbackName:"switchTopTab",actionName:"Previous Tab"},focusMultiExec:{callbackName:"focusMultiExec",actionName:"Move focus to the multi-exec field"},forwarding:{callbackName:"switchToPortForwarding",actionName:"Open Port Forwarding"},leftPanel:{callbackName:"switchLeftPanelSize",actionName:"Switch Left Panel Size"},clearTerminalBuffer:{callbackName:"clearTerminalBuffer",actionName:"Clear Terminal Buffer"},openTerminalSearch:{callbackName:"openTerminalSearch",actionName:"Open Terminal Search"},toggleSnippetsPanel:{callbackName:"toggleSnippetsPanel",actionName:"Show Snippets Panel in Terminal"},toggleSplitViewBroadcastMode:{callbackName:"toggleSplitViewBroadcastMode",actionName:"Toggle Split View Broadcast Mode"},snippets:{callbackName:"switchToSnippets",actionName:"Open Snippets"}};new Set(["focusMultiExec"]);function tV(e){const t=jj;return e.replace(/[^+]*\+?/g,e=>e.charAt(0).toUpperCase()+e.slice(1)).replace(nV,Qq.metaKey[t]).replace(rV,Qq.altKey[t]).replace(aV,Qq.ctrlKey[t]).replace(iV,Qq.shiftKey[t])}const nV=/cmd|win|super|meta/gi,rV=/alt/gi,aV=/ctrl/gi,iV=/shift/gi;function sV(e){return eV.hasOwnProperty(e)}var oV=n(129),lV=n(223),cV=n.n(lV);new class{constructor(){this.binds=[],this.callbackMap={}}getBoundShortcutFromEvent(e){const t=this.binds.find(t=>null!=t.shortcut.shortcut&&oV.jwerty.is(t.shortcut.shortcut,e));if(t)return{...t.shortcut,args:t.args}}bind(e){var t,n;(this.binds.forEach(({handle:e})=>e.unbind()),null!=e)?this.binds=[...e.shortcuts.filter(({type:e})=>sV(e)).map(e=>({...e,args:[]})),...(n=e.mod,cV()(1,10).map(e=>({shortcut:`${n}+${e}`,args:[e],callbackName:"switchToTab",actionName:"Switch to tab "+e,type:"index"+e}))),...(t=e.paneMod,[{key:"↑",action:"Upward"},{key:"→",action:"Forward"},{key:"↓",action:"Downward"},{key:"←",action:"Back"}].map(e=>({shortcut:`${t}+${e.key}`,args:[e.key],callbackName:"moveSplitViewFocus",actionName:`Navigate ${e.action} in Split View`,type:"moveSplitViewFocus"})))].flatMap(e=>{if(null==e.shortcut)return[];const t=oV.jwerty.key(e.shortcut,()=>{const t=this.callbackMap[e.callbackName];return null==t||t(...e.args),null==t},null);return[{shortcut:e,handle:t,args:e.args}]}):this.binds=[]}};const uV="shortcut_scheme",pV="shortcut_schemes",dV="shortcuts_disabled",hV="isMigratedHotkeysSpecialSymbolsToNames";class fV{constructor(){this.migrateHotkeysSpecialSymbolsToNames()}getShortcutSchemes(){var e,t;return null!==(t=JSON.parse(null!==(e=localStorage.getItem(pV))&&void 0!==e?e:"null"))&&void 0!==t?t:{}}setShortcutSchemes(e){localStorage.setItem(pV,JSON.stringify(e))}getCurrentScheme(){if(this.getShortcutsDisabled())return{type:"disabled"};const e=localStorage.getItem(uV);return e?{type:"enabled",value:e}:{type:"not set"}}setCurrentScheme(e){this.setShortcutsDisabled(!1),localStorage.setItem(uV,e)}disableCurrentScheme(){this.setShortcutsDisabled(!0)}getShortcutsDisabled(){var e;return JSON.parse(null!==(e=localStorage.getItem(dV))&&void 0!==e?e:"false")}setShortcutsDisabled(e){localStorage.setItem(dV,JSON.stringify(e))}migrateHotkeysSpecialSymbolsToNames(){if("mac"!==jj||localStorage.getItem(hV))return;const e=localStorage.getItem(pV);if(e){const t=e.replace(/⌘/gi,Qq.metaKey.mac).replace(/⌃/gi,Qq.ctrlKey.mac).replace(/⌥/gi,Qq.altKey.mac).replace(/⇧/gi,Qq.shiftKey.mac);localStorage.setItem(pV,t)}localStorage.setItem(hV,JSON.stringify(!0))}static clearStorageForTests(){localStorage.clear()}}class mV{get defaultPresets(){return function(e){const t={"Mac hotkeys":Yq,"PC hotkeys":Zq};return Xq()(t,({platforms:t})=>null==t?void 0:t.includes(e))}(this.platform)}get defaultSchemesNames(){return[...Object.keys(this.defaultPresets)]}get shortcutSchemes(){return function(e,t){const n=Object.values(t)[0];return vS()(Object.assign(e,t),he(t=>{var r,a,i;const s=null!==(r=wo(t.parentScheme,t=>e[t]))&&void 0!==r?r:n;t.shortcuts=s.shortcuts.map(e=>{var n,r;return null!==(r=null===(n=t.shortcuts)||void 0===n?void 0:n.find(({type:t})=>t===e.type))&&void 0!==r?r:e}).map(he(e=>{null!=e.shortcut&&(e.shortcut=tV(e.shortcut)||null)})),t.mod=tV(null!==(a=t.mod)&&void 0!==a?a:s.mod),t.paneMod=tV(null!==(i=t.paneMod)&&void 0!==i?i:s.paneMod)}))}(this.storage.getShortcutSchemes(),this.defaultPresets)}get currentScheme(){var e,t;const n=this.defaultSchemesNames[0],r=null!==(e=this.storage.getCurrentScheme())&&void 0!==e?e:n,{shortcutSchemes:a}=this;switch(r.type){case"disabled":return;case"not set":return{name:n,value:a[n]};case"enabled":{const{value:e}=r;return{name:e,value:null!==(t=a[e])&&void 0!==t?t:a[n]}}default:return void kN(!1)}}constructor(e=jj,t=new fV){this.platform=e,this.storage=t,this.storage.setShortcutSchemes(this.shortcutSchemes)}selectScheme(e){const{shortcutSchemes:t}=this;null!=e&&null==t[e]||(null!=e?this.storage.setCurrentScheme(e):this.storage.disableCurrentScheme())}renameScheme(e,t){var n,r;const{shortcutSchemes:a}=this;(null===(n=a[e])||void 0===n?void 0:n.editable)&&(a[t]=a[e],delete a[e],(null===(r=this.currentScheme)||void 0===r?void 0:r.name)===e&&this.storage.setCurrentScheme(t),this.storage.setShortcutSchemes(a))}deleteScheme(e){var t,n;const{shortcutSchemes:r}=this;(null===(t=r[e])||void 0===t?void 0:t.editable)&&(delete r[e],(null===(n=this.currentScheme)||void 0===n?void 0:n.name)===e&&this.storage.setCurrentScheme(this.defaultSchemesNames[0]),this.storage.setShortcutSchemes(r))}changeShortcutByType({shortcut:e,type:t}){sV(t)&&this.modifyCurrentScheme(fe(n=>{if(null!=e){const t=n.shortcuts.find(({shortcut:t})=>t===e);null!=t&&(t.shortcut=null)}const r=n.shortcuts.find(({type:e})=>t===e);null!=r&&(r.shortcut=e)}))}changeTabsModifier(e){this.modifyCurrentScheme(fe(t=>{t.mod=e}))}changePanesModifier(e){this.modifyCurrentScheme(fe(t=>{t.paneMod=e}))}modifyCurrentScheme(e){const{currentScheme:t,shortcutSchemes:n}=this;if(null==t)return;const r=this.getSchemeName(t.name),a=(i=t.value,s=t.name,fe(i,e=>{i.editable||(e.editable=!0,e.parentScheme=s)}));var i,s;n[r]=e(a),this.storage.setCurrentScheme(r),this.storage.setShortcutSchemes(n)}getSchemeName(e){const{shortcutSchemes:t}=this;if(t[e].editable)return e;const n=e+" copy";let r=n,a=0;for(;r in t;)r=`${n} ${a}`,a+=1;return r}}function*SV(){yield*br([Wy,wl,Pl.success,Ul.success],(function*(){var e;const t=new mV;yield*Er(zq(null===(e=t.currentScheme)||void 0===e?void 0:e.value))}))}const yV=Pi("SIGN_IN_WITH_SSO"),gV=Pi("CONTINUE_SSO"),vV=Pi("SIGN_IN_WITH_ENTERPRISE_SSO"),_V=Pi("CONTINUE_ENTERPRISE_SSO"),bV=Pi("RESET_SSO_AUTHORIZATION"),PV=Li("SIGN_IN_WITH_FIREBASE_SSO"),wV=Li("SIGN_IN_WITH_WORK_OS_SSO");function*EV(e){try{yield*_r(bV)}finally{yield*Er(e)}}function*kV({payload:e,meta:t}){yield*Tr(EV,PV.failure(void 0,t.requestId));try{const n=yield*function*(e,t){var n;const r=Fi()();yield*Er(yV({provider:e,requestId:r}));const a=yield*_r(({type:e,payload:t})=>e===gV.toString()&&t.requestId===r);return null===(n=u.BrowserWindow.fromId(t))||void 0===n||n.show(),a.payload}(e.provider,e.windowId);yield*Er(PV.success(n,t.requestId))}catch(e){yield*Er(PV.failure(e,t.requestId))}}function*TV({payload:e,meta:t}){yield*Tr(EV,wV.failure(void 0,t.requestId));try{const n=yield*function*(e,t){var n;const r=Fi()();yield*Er(vV({email:e,requestId:r}));const a=yield*_r(({type:e,payload:t})=>e===_V.toString()&&t.requestId===r);return null===(n=u.BrowserWindow.fromId(t))||void 0===n||n.show(),a.payload}(e.email,e.windowId);yield*Er(wV.success(n,t.requestId))}catch(e){yield*Er(wV.failure(e,t.requestId))}}function*CV(e){e.type===wV.request.toString()&&(yield*Tr(TV,e)),e.type===PV.request.toString()&&(yield*Tr(kV,e))}function*IV(){yield*Pr([wV.request,PV.request,bV],CV)}const AV=Li("GET_AUTHORIZED_KEYS"),OV=Li("INIT_TEAM_MULTI_KEY"),xV=Li("GENERATE_PERSONAL_DEVICE_KEY_PAIR"),NV=Li("UPDATE_TEAM_MULTI_KEY_USERNAME"),RV=Pi("SET_TEAM_MULTIKEY_FORM_OPEN"),DV=Pi("EXPORT_MULTI_KEY_SNIPPET_WAS_CREATED"),HV=Pi("EXPORT_MULTI_KEY_SNIPPET_WAS_UPDATED"),FV=Pi("OPEN_KEYCHAIN_AND_EDIT_MULTIKEY_FORM"),GV={type:"ec",encoding:void 0,bits:void 0,rounds:void 0,curve:"nistp521",password:"",comment:"",includePublicKey:!0};async function UV(){try{const e=await Object(ko.generateSshKey)(GV);if(!e)throw new Error("Personal device keygen error");const{publicKey:t,privateKey:n}=e;if(!t||!n)throw new Error("Personal device keygen error");return{publicKey:t,privateKey:n}}catch(e){throw new Error("Personal device keygen error")}}function*LV(e){yield*Rr([br(OV.request,MV,e),br(AV.request,BV,e),br(NV.request,KV,e),br(xV.request,jV,e),br(FV,qV)])}function*jV(e,{meta:t}){try{if(0!==(yield*kr({context:e.store,fn:"getAllPersonalDeviceKeyPair"})).length)return void(yield*Er(xV.failure({message:"Personal device KeyPair have been already generated"},t.requestId)));const{publicKey:n,privateKey:r}=yield*kr(UV);yield*kr({context:e.api,fn:"sendPersonalPublicKeyForTeamMultiKey"},{public_key:n}),yield*kr({context:e.store,fn:"setPersonalDeviceKeyPair"},{publicKey:n,privateKey:r}),yield*Er(Og()),yield*Er(xV.success({publicKey:n,privateKey:r},t.requestId))}catch(e){yield*Er(xV.failure({message:e.message},t.requestId)),TS.exception("Cannot generate PersonalDeviceKeyPair for TeamMultiKey",e)}}function*MV(e,{meta:t}){try{const n=yield*function*(e){const t=(yield*kr({context:e.store,fn:"getAllPersonalDeviceKeyPair"}))[0];return t||((yield*Ar(iw))?yield*ji(xV):null)}(e);yield*Er(OV.success({personalDeviceKeyPair:n},t.requestId))}catch(e){yield*Er(OV.failure({message:e.message},t.requestId))}}function*BV(e,{meta:t}){try{const n=yield*kr({context:e.api,fn:"getAuthorizedKeys"}),r=n.devices.map(e=>{var t;return{id:e.id,user_id:e.user_id,name:e.name,public_key:null!==(t=n.public_keys.find(t=>e.id===t.device_id))&&void 0!==t?t:null}}),a=n.users.map(e=>({id:e.id,email:e.email,devices:r.filter(t=>e.id===t.user_id)}));yield*Er(AV.success(a,t.requestId))}catch(e){yield*Er(AV.failure({message:e.message},t.requestId))}}function*KV(e,{payload:t,meta:n}){try{yield*kr({context:e.store,fn:"setTeamMultiKey"},t),yield*Er(VA({...WM(e)})),yield*Er(ts.request("does-not-block-ui")),yield*Er(NV.success(t,n.requestId)),yield*Er(Ag())}catch(e){yield*Er(NV.failure({message:e.message},n.requestId))}}function*qV(){yield*Er(RV(!0)),yield*Er(Dj("/keychain"))}function*VV(e){yield*Rr([qi(wO,(function*(t){const{canEditSharedEntities:n}=e.settings.getDeprecatedUserTeamStatus();yield*kr({context:e.store,fn:"updateTag"},t,FM(n))})),qi(EO,(function*(t){const{canEditSharedEntities:n}=e.settings.getDeprecatedUserTeamStatus();yield*kr({context:e.store,fn:"deleteTag"},t,FM(n))})),br([wO.success,EO.success],$V,e)])}function*$V(e){yield*Er(VA(LM(e))),yield*Er(rB(GM(e))),yield*Er(ts.request("does-not-block-ui"))}const WV=Pi("ADD_STORE_TRANSACTION"),zV=Pi("EXECUTE_STORE_TRANSACTION"),JV=Pi("UNDO_STORE_TRANSACTION"),XV=Pi("UPDATE_STORE_TRANSACTION"),QV=Pi("REMOVE_HOST_FROM_MOVE_ENTITIES_TRANSACTIONS"),YV=Pi("REMOVE_GROUP_FROM_MOVE_ENTITIES_TRANSACTIONS");function ZV(e){return e.transactions}function e$(e,t){return(null==t?void 0:t.local_id)?e.filter(e=>"MOVE_ENTITIES_TO_GROUP"===e.type&&(t instanceof Jo?e.props.movedHosts.some(e=>e.local_id===t.local_id):e.props.movedGroups.some(e=>e.local_id===t.local_id))):[]}function*t$(e,{payload:t}){e.store.addPendingTransaction(t),yield*Er(VA(XM(e))),yield*Er(rB(GM(e))),yield*Cr(n$,t,e)}function*n$({id:e,delayInSec:t},n){const r=yield*Tr((function*(){yield*Or(1e3*t),yield*Er(zV(e))})),a=yield*_r(function(e){return({type:t,payload:n})=>[zV.toString(),JV.toString(),Ul.toString()].includes(t)&&n===e}(e));yield*Ir(r);const i=n.store.getPendingTransaction(e);kN(null!=i);const s=a.type===zV.toString();try{s?yield*function*({type:e,props:t}){switch(e){case"MOVE_ENTITIES_TO_GROUP":yield*ji(GO,{hosts:t.movedHosts,groups:t.movedGroups,targetGroup:t.targetGroup});break;case"SNIPPET_AND_SNIPPETS_PACKAGE_SHARING":yield*ji(SO,t)}}(i):yield*function*({type:e}){switch(e){case"SNIPPET_AND_SNIPPETS_PACKAGE_SHARING":yield*Er(wg())}}(i)}catch(e){const{type:t}=i,n=s?"execution":"undo";TS.exception(`Transaction ${t} ${n} has failed`,e)}n.store.removePendingTransaction(e),yield*Er(VA(XM(n))),yield*Er(rB(GM(n)))}function*r$(e,{payload:t}){e.store.updatePendingTransaction(t),yield*Er(VA(XM(e))),yield*Er(rB(GM(e)))}function*a$({payload:e}){const t=yield*Ar(t=>function(e,t){return e$(ZV(e),new Jo(t))}(t,e));for(const n of t)n.props.movedHosts=n.props.movedHosts.filter(t=>t.local_id!==e.local_id),n.props.movedHosts.length||n.props.movedGroups.length?yield*Er(XV(n)):yield*Er(JV(n.id))}function*i$({payload:e}){const t=yield*Ar(t=>function(e,t){return e$(ZV(e),new Wo(t))}(t,e));for(const n of t)n.props.movedGroups=n.props.movedGroups.filter(t=>t.local_id!==e.local_id),n.props.movedHosts.length||n.props.movedGroups.length?yield*Er(XV(n)):yield*Er(JV(n.id))}function*s$(e){yield*Rr([br(WV.toString(),t$,e),br(XV.toString(),r$,e),br(QV.toString(),a$),br(YV.toString(),i$)])}const o$=Pi("INSTRUCTIONS_WERE_COPIED"),l$=Pi("URL_WAS_COPIED"),c$=Pi("HIDE_URL_WAS_COPIED"),u$=Pi("ADD_HINT"),p$=Pi("CLOSE_HINT"),d$=Pi("REMOVE_HINT");function*h$(e){yield*Er(d$(e.type)),yield*Er(u$(e)),yield*Or(15e3),yield*Er(p$(e.type))}function*f$(){const e={type:'The "No Access" Instructions Copied',priority:10};yield*h$(e)}function*m$(){const e={type:'The "No Access" URL Copied',priority:10};yield*h$(e)}function*S$(){const e='The "No Access" URL Copied';yield*Er(p$(e))}function*y$(){yield*Rr([Pr(o$,f$),Pr(l$,m$),Pr(c$,S$)])}var g$=n(0);n(224);var v$=n(225),_$=n.n(v$);function b$(e){return _$.a.createHash("sha1").update(e).digest("hex").toUpperCase()}class P${static generateRandomChar(){let e="";do{const t=new Uint8Array(1);window.crypto.getRandomValues(t);const n=String.fromCharCode(Array.from(t)[0]);this.allowedChars.test(n)&&(e=n)}while(""===e);return e}static generatePassword(){const e=[];for(let t=0;t<20;t+=1)e.push(this.generateRandomChar());return b$(e.join(""))}}P$.allowedChars=/[A-Za-z\d@$!%*_\-+.]/;function*w$(){const e={type:"Live Terminal link Copied",priority:10};yield*function*(e){yield*Er(d$(e.type)),yield*Er(u$(e)),yield*Or(5e3),yield*Er(p$(e.type))}(e)}function*E$(){yield*br(Vq,w$)}function*k$(e){yield*Er(d$(e.type)),yield*Er(u$(e)),yield*Or(5e3),yield*Er(p$(e.type))}function*T$(){const e={type:"Export Snippet Created",priority:10};yield*k$(e)}function*C$(){const e={type:"Export Snippet Updated",priority:10};yield*k$(e)}function*I$(){yield*Rr([br(HV,C$),br(DV,T$)])}var A$=n(96),O$=n.n(A$);const x$=Pi("SAVE_FILE_TYPE_APP_ASSOCIATION"),N$=Pi("DELETE_FILE_TYPE_APP_ASSOCIATION"),R$=Pi("SET_SFTP_SHOW_HIDDEN_FILES"),D$=Pi("SET_SFTP_SORTING"),H$=Pi("SUGGEST_TO_SAVE_FILE_TYPE_ASSOCIATIONS");function*F$(e){const t={id:O$()(),type:"Associate File Type With",priority:10,hintProps:{association:{type:e.type,appPath:e.appPath}}};yield*function*(e){yield*Or(1e3),yield*Er(u$(e)),yield*Or(1e4),yield*Er(p$(e.id||e.type))}(t)}function*G$({payload:e}){yield*Rr(e.map(e=>kr(F$,e)))}function*U$(){yield*br(H$,G$)}const L$=Pi("SET_SNIPPETS_PANEL_WIDTH"),j$=Pi("TOGGLE_SNIPPETS_PANEL"),M$=Pi("SET_SNIPPETS_PANLE_SHORTCUT_HINT_WAS_SHOWN"),B$=Pi("SET_TOP_THREE_PROMO_CLOSED"),K$=Pi("SET_SNIPPETS_PANEL_SCREEN");const q$=new URLSearchParams(window.location.search.substring(1)),V$=()=>{return e=q$,Number.parseInt(null!==(t=e.get("id"))&&void 0!==t?t:"-1",10);var e,t};function $$(e){return e.snippetsPanel.hintWasShown}function W$(e){const t=e.snippetsPanel.windows.find(([e])=>e===V$()),{visible:n}=null!=t?t[1]:e.snippetsPanel;return n}function*z$(){const e=yield*Ar($$),t=yield*Ar(W$);if(e||t)yield*Er(p$("Snippets Shortcut"));else{const e={type:"Snippets Shortcut",priority:10};yield*Er(u$(e)),yield*Er(M$())}}function*J$(){yield*br(j$,z$)}function*X$(){yield*Rr([U$(),J$(),y$(),I$(),E$()])}function*Q$(e,{meta:t}){try{const n=yield*kr({context:e.auth,fn:"updateUserProfile"}),r=yield*Ar(JP),a=n.account.email;kN(a),yield*kr({context:e.settings,fn:"setDeprecatedAuthorizedFeatures"},sw(n)),yield*kr({context:e.settings,fn:"setDeprecatedTeamPermissions"},QP(n)),yield*kr({context:e.settings,fn:"setDeprecatedTeamInfo"},YP(n)),yield*kr({context:e.settings,fn:"setDeprecatedUserHasSso"},RN(n)),!r&&n.account.team&&(yield*kr({context:e,fn:"convertUserAccountToTeamType"},{userId:n.account.user_id}));const i=yield*ji(ic);yield*Er(Pl.success({...n,username:a,hasAccessToSharedData:i},t.requestId)),p.ipcRenderer.send("update-system-menu")}catch(e){yield*Er(Pl.failure({status:e.status,message:e.message},t.requestId))}}function*Y$(e,{payload:t}){try{const n=!!t.team,r=FS.getDeprecatedIsUnsharedLocalTeamTrialData();r||n||(yield*eW(e),FS.setDeprecatedIsUnsharedLocalTeamTrialData(!0)),r&&n&&FS.setDeprecatedIsUnsharedLocalTeamTrialData(!1)}catch(e){TS.exception("Cannot share local data during deactivate team trial",e)}}function*Z$(e,{meta:t}){var n;try{const n=yield*ji(Pl),r=[UP,"premium","premium expired","github student","github student expired","github teacher","github teacher expired","trial"];if(!(!!n.team&&r.includes(n.account.user_type.toLowerCase())))return void(yield*Er(tc.success(void 0,t.requestId)));const a=pw(n),i=dw(n);yield*kr({context:e,fn:"deactivateTeamTrial"},n.account.user_id,a,i),yield*eW(e),FS.setDeprecatedIsUnsharedLocalTeamTrialData(!0),yield*kr({context:e.credentialsStorage,fn:"resetTeamKeySet"}),yield*kr({context:e.auth,fn:"updateUserProfile"}),yield*Er(tc.success(void 0,t.requestId))}catch(e){yield*Er(tc.failure({message:null!==(n=null==e?void 0:e.message)&&void 0!==n?n:"Unknown error"},t.requestId))}}function*eW(e){const t=yield*Ar(Yb);for(const e of t)yield*ji(dO,e);const n=yield*Ar(Mb);for(const t of n)yield*kr({context:e.store,fn:"setSnippetsPackage"},new Ko({...t,is_shared:!1}));const r=yield*Ar(jb);for(const t of r)yield*kr({context:e.store,fn:"setSnippet"},new qo({...t,is_shared:!1}));yield*Er(VA(XM(e))),yield*Er(rB(GM(e)))}function*tW(){const e=yield*Ar(cw),t=yield*Ar(KP);t&&FS.wasDeprecatedSubscriptionExpired()&&FS.removeDeprecatedSubscriptionExpired(),"TEAM_TRIAL_OWNER_AWAITING_DOWNGRADE"===e&&(yield*Er(tc.request(void 0)),t||FS.setDeprecatedSubscriptionExpired())}function*nW(e,{meta:t,payload:n}){try{const{password:r}=n;if(!(yield*Ar(uw)))return void(yield*Er(nc.failure({message:"There is no username"},t.requestId)));yield*aW(e,r),yield*Er(nc.success(void 0,t.requestId))}catch(e){yield*Er(nc.failure({status:e.status,responseJSON:e.responseJSON,message:e.message,detail:e.detail},t.requestId))}}function*rW(e,{meta:t,payload:n}){try{const{code:r,newPassword:a,authyToken:i}=n;if(!(yield*Ar(uw)))return void(yield*Er(nc.failure({message:"There is no username"},t.requestId)));yield*ji(Bl,{securityToken:r,newPassword:a,authyToken:i}),yield*aW(e,a),yield*Er(rc.success(void 0,t.requestId))}catch(e){yield*Er(rc.failure({status:e.status,responseJSON:e.responseJSON},t.requestId))}}function*aW(e,t){const n=e.credentialsStorage.passwordRememberStatus(),r=yield*kr({context:e.auth,fn:"updateUserProfile"});if("remembered-without-sharing"===n){const{encryption_schema:n}=yield*Ar(lw);yield*kr({context:e,fn:"enableSharing"},r.account.user_id,t,n)}const{token:a}=yield*kr({context:e,fn:"getSecurityToken"},t),{srp_salt:i,verifier:s}=yield*kr({context:e,fn:"getSrpSpecs"},t),o={security_token:a,verifier:s,salt:i};yield*kr({context:e,fn:"migrateToNewCrypto"},r,o),yield*ji(Pl),yield*ji(jc),yield*ji(ts,"sync-all-data")}function*iW(e,t,n){try{if(!t&&n&&(yield*ji(HO))){yield*Er(Hj());try{yield*ji(ac)}finally{yield*Er(Hj())}}}catch(t){throw yield*kr({context:e.api,fn:"logout"}),t}}function*sW(e,{meta:t,payload:n}){try{const r=yield*kr({context:e,fn:"login"},n),{bulk_account:a}=r,i=yield*kr(oW,e,n,r),s=function(e){return!!e.team&&!e.team.is_owner}(a);yield*kr(iW,e,!!n.isReLogin,s),yield*kr({context:e,fn:"afterLogin"},{...n,username:i,response:r}),yield*Er(Hl.success(r,t.requestId))}catch(e){const n=function(e){if(e instanceof Mr)return{status:e.status,message:e.message};if(e&&e.responseJSON){const{status:t,responseJSON:n}=e,r=Fj(n);return{status:t,message:r}}if(e instanceof WF)return{status:e.status,message:e.message};if(e instanceof LF)return TS.exception(e.message,e),{status:0,message:"Something went wrong, try again."};return{status:0,message:""}}(e);yield*Er(Hl.failure(n,t.requestId))}}function*oW(e,t,n){const{username:r,wasDataCleaned:a}=yield*kr(lW,e,t,n);if(!a){const{bulk_account:t}=n;yield*kr(uW,e,t)}return r}function*lW(e,t,n){const{bulk_account:r}=n,a=r.account.email,i=yield*Ar(uw);return t.isReLogin&&i!==a?(yield*kr({context:e,fn:"clearUserData"}),e.auth.updateApiCredentials(n.credentials.token),{username:a,wasDataCleaned:!0}):{username:a,wasDataCleaned:!1}}var cW;function*uW(e,t){if(!(yield*Ar(gw)))return cW.skipDueToNotEnoughData;const n=yield*Ar(yw);if(null==n)return cW.noChanges;const{team:r}=t;return null==r||r.id!==n?(yield*kr({context:e.store,fn:"hardDeleteSharedData"}),cW.wipedReloadRequired):cW.noChanges}function*pW({meta:e}){try{yield*lG({dialog:"UnsyncedPersonalData",target:"all-windows",props:{requestId:e.requestId}})}catch(e){}}function*dW(e,{payload:t,meta:n}){var r,a,i,s,o,l,c,u,p,d,h;try{const{oldPassword:r,newPassword:a,authyToken:i}=t,s=yield*ji(Pl),{encryption_schema:o}=ow(s);"v5"===o?yield*kr({context:e,fn:"changePasswordWithSecurityToken"},r,a,i):yield*kr({context:e,fn:"changePassword"},{userId:s.account.user_id,oldPassword:r,newPassword:a,authyToken:i}),yield*Er(Ml.success(void 0,n.requestId))}catch(e){const{status:t,responseJSON:f}=e;let m;switch(t){case 400:m=null!==(u=null!==(l=null!==(s=null!==(a=null===(r=null==f?void 0:f.authy_token)||void 0===r?void 0:r[0])&&void 0!==a?a:null===(i=null==f?void 0:f.old_password)||void 0===i?void 0:i[0])&&void 0!==s?s:null===(o=null==f?void 0:f.new_password)||void 0===o?void 0:o[0])&&void 0!==l?l:null===(c=null==f?void 0:f.error)||void 0===c?void 0:c[0])&&void 0!==u?u:"Unknown error";break;case 401:case 429:m=null!==(p=null==f?void 0:f.detail)&&void 0!==p?p:"Unknown error";break;case 487:m=null!==(h=null===(d=null==f?void 0:f.otp_token)||void 0===d?void 0:d[0])&&void 0!==h?h:"Unknown error";break;case 0:m="Network error";break;default:m="Unknown error"}yield*Er(Ml.failure({status:t,message:m},n.requestId))}}function*hW(e,{meta:t}){try{const n=yield*ji(Pl),r=pw(n),a=dw(n),i=yield*kr({context:e,fn:"getOnlySharedEntities"},n.account.user_id,r,a);yield*Er(ec.success(i,t.requestId))}catch(e){yield*Er(ec.failure(void 0,t.requestId))}}function*fW(e,{meta:t}){try{const n=yield*kr((function*(){const t=yield*Ar(tw),n=yield*Ar(XP);if(t)return!0;if(!n)return!1;const r=yield*Ar(MP);if(null==r)return!1;try{return yield*kr({context:e,fn:"isTeamMemberHasCompletedSharing"},r)}catch(e){return!1}}));yield*Er(ic.success(n,t.requestId))}catch(e){yield*Er(ic.failure(void 0,t.requestId))}}function*mW(){yield*function*(){const e=yield*Ar(tw);try{e&&(yield*Rr([ji(Xl),ji(Jl)]));const t=yield*Ar(fw);yield*Er(vG(t)),yield*Er(PG())}catch(e){TS.exception("Error during updating team info",e)}}(),yield*Er(Pl.request())}function*SW(){yield*Er(ts.request("does-not-block-ui"))}function*yW(e,{payload:t}){var n;yield*kr({context:e.store.teamMemberRepository,fn:"deleteAll"});try{for(const r of null!==(n=null==t?void 0:t.results)&&void 0!==n?n:[])yield*kr({context:e.store,fn:"setTeamMember"},r)}catch(e){TS.exception("Cannot update team members db collection",e)}}function*gW(e,{payload:t}){var n;yield*kr({context:e.store.teamInviteRepository,fn:"deleteAll"});try{for(const r of null!==(n=null==t?void 0:t.results)&&void 0!==n?n:[])yield*kr({context:e.store,fn:"setTeamInvite"},r)}catch(e){TS.exception("Cannot update team invites db collection",e)}}function*vW(e,{payload:t,meta:n}){const{keepSepKeys:r}=t,a=yield*kr({context:e.store,fn:"getAllSepKeys"});try{if(!r){const t=a.map(t=>oB(e,t));yield*kr(()=>Promise.all(t))}yield*kr({context:e,fn:"logout"}),r&&(yield*ji(eO,a))}catch(e){return void(yield*Er(Bi(Ul,e,n)))}yield*Er(Ul.success(void 0,n.requestId))}function*_W(e){var t,n;yield*Rr([br(Pl.request,Q$,e),br(Ql,mW),br(Pl.success,Y$,e),br(tc.request,Z$,e),br([Pl.success,ts.success,Hl.success,Gl],tW),br(nc.request,nW,e),br(rc.request,rW,e),br(Ul.request,vW,e),qi(Cl,async t=>{try{return await e.api.modifyTeam(t)}catch(e){throw{status:e.status}}}),qi(lc,(function*(t){t.createTeam&&(yield*ji(Ol,{teamName:t.teamName,invites:[]}));try{return yield*kr({context:e.api,fn:"generateInvitationLink"})}catch(e){throw{status:e.status}}})),qi(kl,async t=>{var n,r,a,i,s,o;try{await e.api.enableTwoFactorAuth(t)}catch(e){const{status:t,responseJSON:l}=e;switch(t){case 400:throw{status:t,message:null!==(i=null!==(r=null===(n=null==l?void 0:l.security_token)||void 0===n?void 0:n[0])&&void 0!==r?r:null===(a=null==l?void 0:l.error)||void 0===a?void 0:a[0])&&void 0!==i?i:"Unknown error"};case 401:case 429:throw{status:t,message:null!==(s=null==l?void 0:l.detail)&&void 0!==s?s:"Unknown error"};case 487:throw{status:t,message:null!==(o=null==l?void 0:l.otp_token[0])&&void 0!==o?o:"Unknown error"};case 0:throw{status:t,message:"Network error"};default:throw{status:t,message:"Unknown error"}}}}),qi(Tl,async t=>{var n,r,a,i,s,o;try{await e.api.disableTwoFactorAuth(t)}catch(e){const{status:t,responseJSON:l}=e;switch(t){case 400:throw{status:t,message:null!==(i=null!==(r=null===(n=null==l?void 0:l.security_token)||void 0===n?void 0:n[0])&&void 0!==r?r:null===(a=null==l?void 0:l.error)||void 0===a?void 0:a[0])&&void 0!==i?i:"Unknown error"};case 401:case 429:throw{status:t,message:null!==(s=null==l?void 0:l.detail)&&void 0!==s?s:"Unknown error"};case 487:throw{status:t,message:null!==(o=null==l?void 0:l.otp_token[0])&&void 0!==o?o:"Unknown error"};case 0:throw{status:t,message:"Network error"};default:throw{status:t,message:"Unknown error"}}}}),br(kl.success,SW),br(Tl.success,SW),qi(Il,async t=>{var n,r,a,i,s;try{await e.otpRegisterProviderAuthy(t)}catch(e){const{status:t,responseJSON:o}=e;switch(t){case 400:throw{status:t,message:null!==(i=null!==(r=null===(n=null==o?void 0:o.cellphone)||void 0===n?void 0:n[0])&&void 0!==r?r:null===(a=null==o?void 0:o.error)||void 0===a?void 0:a[0])&&void 0!==i?i:"Unknown error"};case 401:throw{status:t,message:null!==(s=null==o?void 0:o.detail)&&void 0!==s?s:"Unknown error"};case 0:throw{status:t,message:"Network error"};default:throw{status:t,message:"Unknown error"}}}}),qi(Al,async()=>{var t,n,r;try{return await e.otpRegisterProviderTotp()}catch(e){const{status:a,responseJSON:i}=e;switch(a){case 400:throw{status:a,message:null!==(n=null===(t=null==i?void 0:i.error)||void 0===t?void 0:t[0])&&void 0!==n?n:"Unknown error"};case 401:throw{status:a,message:null!==(r=null==i?void 0:i.detail)&&void 0!==r?r:"Unknown error"};case 0:throw{status:a,message:"Network error"};default:throw{status:a,message:"Unknown error"}}}}),qi(Rl,(function*({email:t,password:n,recaptcha:r,rememberPassword:a,shouldSkipSyncAfterSignIn:i}){try{yield*kr({context:e,fn:"signUpFree"},{email:t,password:n,recaptcha:r})}catch(e){throw bW(e)}yield*ji(Hl,{username:t,password:n,rememberPassword:a,shouldSkipSyncAfterSignIn:i,authMethod:"Email"})})),qi(Dl,(function*({email:t,password:n,recaptcha:r,rememberPassword:a,shouldSkipSyncAfterSignIn:i}){try{yield*kr({context:e,fn:"trialSignup"},{email:t,password:n,recaptcha:r})}catch(e){throw bW(e)}yield*ji(Hl,{username:t,password:n,rememberPassword:a,shouldSkipSyncAfterSignIn:i,authMethod:"Email"})})),qi(oc,(function*({firebaseToken:t,password:n,email:r,rememberPassword:a,authMethod:i}){try{yield*kr({context:e,fn:"trialSignupViaSso"},t,n)}catch(e){throw bW(e)}yield*ji(Hl,{username:r,password:n,firebaseToken:t,rememberPassword:a,authMethod:i})})),br(ic.request,fW,e),br(Hl.request,sW,e),br(ac.request,pW),br(Ml.request,dW,e),br(ec.request,hW,e),qi(Ll,async({username:t,password:n,authyToken:r})=>{var a,i,s,o,l,c,u,p,d,h,f;try{return await e.changeUsername(t,n,r),await e.settings.setDeprecatedUserHasSso(!1),t}catch(e){const{status:t,responseJSON:n}=e;let r;switch(t){case 400:r=null!==(p=null!==(c=null!==(o=null!==(i=null===(a=null==n?void 0:n.otp_token)||void 0===a?void 0:a[0])&&void 0!==i?i:null===(s=null==n?void 0:n.security_token)||void 0===s?void 0:s[0])&&void 0!==o?o:null===(l=null==n?void 0:n.email)||void 0===l?void 0:l[0])&&void 0!==c?c:null===(u=null==n?void 0:n.error)||void 0===u?void 0:u[0])&&void 0!==p?p:"Unknown error";break;case 401:case 429:r=null!==(d=null==n?void 0:n.detail)&&void 0!==d?d:"Unknown error";break;case 487:r=null!==(f=null===(h=null==n?void 0:n.otp_token)||void 0===h?void 0:h[0])&&void 0!==f?f:"Unknown error";break;case 0:r="Network error";break;default:r="Unknown error"}throw{status:t,message:r}}}),qi(jl,async({password:t,authyToken:n})=>{var r,a,i,s,o,l,c,u,p,d,h;try{await e.deleteAccount(t,n)}catch(e){const{status:t,responseJSON:n}=e;let f;switch(t){case 400:f=null!==(u=null!==(l=null!==(s=null!==(a=null===(r=null==n?void 0:n.otp_token)||void 0===r?void 0:r[0])&&void 0!==a?a:null===(i=null==n?void 0:n.security_token)||void 0===i?void 0:i[0])&&void 0!==s?s:null===(o=null==n?void 0:n.email)||void 0===o?void 0:o[0])&&void 0!==l?l:null===(c=null==n?void 0:n.error)||void 0===c?void 0:c[0])&&void 0!==u?u:"Unknown error";break;case 401:case 429:f=null!==(p=null==n?void 0:n.detail)&&void 0!==p?p:"Unknown error";break;case 487:f=null!==(h=null===(d=null==n?void 0:n.otp_token)||void 0===d?void 0:d[0])&&void 0!==h?h:"Unknown error";break;case 0:f="Network error";break;default:f="Unknown error"}throw{status:t,message:f}}}),qi(Bl,({securityToken:t,newPassword:n,authyToken:r})=>e.recoverAccount({verificationCode:t,newPassword:n,authyToken:r})),(t=Kl,n=t=>e.api.resetPassword({username:t}),qi(t,async e=>{try{await n(e)}catch(e){throw{status:e.status}}})),PW(Vl,()=>e.api.confirmEmail()),qi(ql,async()=>{var t;try{return await e.api.sendVerificationCode()}catch(e){throw{detail:null===(t=e.responseJSON)||void 0===t?void 0:t.detail,status:e.status}}}),PW($l,()=>e.clearDB()),PW(Wl,(function*(){FS.removeLocalKeyIsReady(),FS.removeLocalKeyVault();const t=yield*Ar(uw);yield*kr({context:e,fn:"resetUserData"}),yield*kr({context:e.settings,fn:"setDeprecatedUserStr"},t)})),qi(Ol,async({teamName:t,invites:n})=>{var r;try{await e.createTeamTrial(t,n);const r=await e.auth.updateUserProfile();await e.convertUserAccountToTeamType({userId:r.account.user_id})}catch(e){throw{status:e.status,inviteErrors:null===(r=e.responseJSON)||void 0===r?void 0:r.invites}}}),qi(Nl,async({email:t,role:n})=>{var r,a;try{await e.inviteTeamMember(t,n)}catch(e){throw{status:e.status,team:null===(r=e.responseJSON)||void 0===r?void 0:r.team,email:null===(a=e.responseJSON)||void 0===a?void 0:a.email}}}),qi(zl,()=>e.getTeamSeatsList()),qi(Jl,()=>e.getTeamMembersList()),br(Jl.success,yW,e),qi(Xl,()=>e.getTeamInvitesList()),br(Xl.success,gW,e),br(cc.success,(function*(){yield*Er(jc.request())})),qi(Yl,()=>e.getTeamMembersStaleEncryptionList()),qi(Zl,()=>e.getStaleEncryptionDevicesList()),qi(El,async t=>{var n,r,a,i;try{const{token:n}=await e.getSecurityToken(t);return n}catch(e){if(e instanceof WF)throw{status:e.status,message:e.message};throw{status:e.status,message:null!==(r=null===(n=e.responseJSON)||void 0===n?void 0:n.detail)&&void 0!==r?r:null===(i=null===(a=e.responseJSON)||void 0===a?void 0:a.password)||void 0===i?void 0:i[0]}}}),qi(xl,async t=>{var n;try{return await e.api.updateBillingInformation(t)}catch(e){throw{detail:null===(n=e.responseJSON)||void 0===n?void 0:n.detail,status:e.status}}}),qi(sc,async t=>{var n,r,a,i;try{return await e.api.detectSsoAction(t)}catch(e){throw{status:e.status,message:null!==(r=null===(n=e.responseJSON)||void 0===n?void 0:n.detail)&&void 0!==r?r:null===(i=null===(a=e.responseJSON)||void 0===a?void 0:a.firebase_token)||void 0===i?void 0:i[0]}}}),qi(cc,(function*({memberId:t}){const n=yield*ji(Pl);try{yield*kr({context:e.synchronization.keyManager,fn:"keyExchangeWithMember"},{memberId:t,ownerId:n.account.user_id})}catch(e){throw{status:e.status}}})),qi(dc,async({email:t})=>{var n,r,a,i;try{return(await e.api.queryWhetherUserESSO({email:t})).has_enterprise_sso}catch(e){throw{status:e.status,message:null!==(r=null===(n=e.responseJSON)||void 0===n?void 0:n.detail)&&void 0!==r?r:null===(i=null===(a=e.responseJSON)||void 0===a?void 0:a.email)||void 0===i?void 0:i[0]}}})])}function bW(e){return e instanceof Mr||e instanceof WF?{status:e.status,message:e.message}:(e instanceof LF&&TS.exception(e.message,e),{status:0,message:"Something went wrong, try again."})}function PW(e,t){return qi(e,(function*(n){try{yield*kr(t,n)}catch(t){throw{message:"failed "+e.request.toString()}}}))}!function(e){e[e.wipedReloadRequired=0]="wipedReloadRequired",e[e.noChanges=1]="noChanges",e[e.skipDueToNotEnoughData=2]="skipDueToNotEnoughData"}(cW||(cW={}));const wW=Pi("SET_AUTHORIZED");function EW(e){return e.authorized}function*kW({payload:e}){try{const{windowId:t,connections:n}=e;(yield*Ar(EW))||(yield*_r(TW)),yield*Er(mq({windowId:t,connections:n}))}catch(e){}}function TW({type:e,payload:t}){return e===wW.toString()&&!0===t}function*CW({payload:e}){try{const{windowId:t,...n}=e,r=(yield*Ar(JP))?yield*Ar(e=>((e,t)=>{if(!t)return null;const n=Number.parseInt(t,10);return Wb(e).find(e=>e.id===n)||null})(e,n.id)):null,a=Tq(n,"ssh");(null==r?void 0:r.is_shared)&&(a.host=r,a.quick=!1),yield*Er(fq({windowId:t,connections:[{connection:Bq(a),connectionOrigin:"Host Details Link",acquisitionChannel:"Host Details Deeplink"}]}))}catch(e){}}function*IW({payload:e}){try{const{windowId:t,...n}=e,r=Tq({...n,label:null,os:null,id:null},"ssh");yield*Er(fq({windowId:t,connections:[{connection:Bq(r),connectionOrigin:"Host Details Link",acquisitionChannel:"Host Details Deeplink"}]}))}catch(e){}}function*AW(){yield*br(fq,kW),yield*br(dq,CW),yield*br(hq,IW)}function OW(e){return function(e){return!!e.multiKey.personalDeviceKeyPair&&Boolean(e.multiKey.personalDeviceKeyPair)}(e)?e.entities.multiKeys[0]:null}function xW(e,t){const n=new Map,r=new Map(t.map(e=>[e.local_id,e]));return e.children_hosts.forEach(e=>{e.connectionPath.forEach(e=>n.set(e.local_id||-1,e))}),e.children_groups.forEach(e=>{var t,a;null===(a=null===(t=e.ssh_config)||void 0===t?void 0:t.host_chain)||void 0===a||a.hosts_chain.forEach(e=>{const t=r.get(e.local_id||-1);t&&t.connectionPath.forEach(e=>n.set(e.local_id||-1,e))})}),[...n.values()].filter(t=>!function(e,t){var n;return(null===(n=e.group)||void 0===n?void 0:n.local_id)===t.local_id||function(e,t){return t.children_groups.some(t=>{var n;return t.local_id===(null===(n=e.group)||void 0===n?void 0:n.local_id)})}(e,t)||function(e,t){const{parentGroups:n}=t,{parentGroups:r}=e;return n.some(e=>r.some(t=>e.local_id===t.local_id))}(e,t)}(t,e))}function*NW(e,t){const{savedGroup:n,oldGroup:r}=yield*kr(EB,e,t),a=null==n?void 0:n.cloud_config,i=null==r?void 0:r.cloud_config;return i&&!a&&(yield*Er(zO(n))),(!i&&a||a&&(null==i?void 0:i.cloudType)!==(null==a?void 0:a.cloudType))&&(yield*Er(Dv({cloudIntegration:Sl(a.cloudType)}))),(TB(n)||CB(n,r))&&(yield*Er(py({isShared:n.is_shared,identitySource:"Group Settings",identity:IB(n,r)}))),n}function*RW(e,{payload:t,meta:n}){try{const r=yield*kr(NW,e,t);yield*Er(uO.success(r,n.requestId))}catch(e){TS.exception("Cannot save a group",e),yield*Er(uO.failure(void 0,n.requestId))}}function*DW(e,{payload:t,meta:n}){try{const r=yield*Ar(Yb),a=yield*Ar(Wb),i=r.find(e=>e.local_id===t.local_id),s=yield*kr({context:e.store,fn:"getGroup"},{local_id:t.local_id}),o=Wo.clone(null!=i?i:s,{is_shared:!0});o.stripEmptyIdentities(),o.sharing_mode=t.sharing_mode;const l=yield*kr(VO,o,{store:e.store,settings:e.settings}),c=new Tb({...i,...s,is_shared:!(null==s?void 0:s.is_shared)}),u=xW(c,a);u.length&&o.is_shared?yield*ji(hO,{chains:u,group:c}):(yield*kr({context:l,fn:"share"},s,o),"multikey"===t.sharing_mode&&(yield*LW()),yield*Er(pO.success(o,n.requestId)))}catch(e){TS.exception("Cannot share a group",e),yield*Er(pO.failure(void 0,n.requestId))}}function*HW(e,{payload:t,meta:n}){try{const r=yield*kr({context:e.store,fn:"getGroup"},{local_id:t.local_id});if(null==r)return;const a=r.clone({is_shared:!1});a.stripEmptyIdentities();const i=yield*kr(VO,a,{store:e.store,settings:e.settings});yield*kr({context:i,fn:"share"},r,a),yield*Er(dO.success(a,n.requestId))}catch(e){TS.exception("Cannot share a group",e),yield*Er(dO.failure(void 0,n.requestId))}}function*FW(e,{payload:t,meta:n}){try{const{chains:r,group:a}=t;yield*Rr(r.map(t=>{const n=new Jo(t),r=e.store.getGroup({local_id:a.local_id})||{};return n.group=new Wo(r),kr(()=>e.store.setHost(n))})),yield*Er(uO.request(new Wo({...a,is_shared:!0}))),"multikey"===t.group.sharing_mode&&(yield*LW()),yield*Er(hO.success(void 0,n.requestId))}catch(e){yield*Er(hO.failure(void 0,n.requestId))}}function*GW(e,{payload:t}){var n;try{(null==t?void 0:t.cloud_config)&&(null===(n=zo(t.cloud_config))||void 0===n?void 0:n.isFulfilled())&&(yield*ji($O,{group:t}))}catch(e){}yield*Er(VA({...UM(e),...LM(e),...KM(e),...BM(e),...MM(e)})),yield*Er(ts.request("does-not-block-ui"))}function*UW(e,{payload:t,meta:n}){try{const r=yield*Ar(Yb),a=yield*Ar(Wb),i=Fb(t,r.map(e=>new Wo(e))),s=Gb(i,a),o=xW(new Tb({...t,children_groups:i,children_hosts:s}),a);yield*Rr(o.map(n=>{const r=new Jo(n),a=e.store.getGroup({local_id:t.local_id})||{};return r.group=new Wo(a),kr(()=>e.store.setHost(r))})),yield*Er(yO.success(new Wo(t),n.requestId))}catch(e){yield*Er(yO.failure(void 0,n.requestId))}}function*LW(){const e=yield*Ar(OW);(null==e?void 0:e.username)||(yield*Er(FV()))}function*jW(e){yield*Rr([Pr(uO.request,RW,e),Pr(uO.success,GW,e),Pr(pO.request,DW,e),Pr(pO.success,GW,e),Pr(dO.request,HW,e),Pr(dO.success,GW,e),Pr(hO.request,FW,e),br(yO.request,UW,e)])}function*MW(){yield*Er(PP())}function*BW(e,{meta:t}){if(!(yield*Ar(qP)))return;const n=yield*Ar(xP),r=yield*Ar(LP);try{const a=yield*kr({context:e,fn:"syncHistory"},{user:r,limit:n});if(!a)return void(yield*Er(SP.failure(void 0,t.requestId)));const{total_count:i}=a,s={totalCount:i};yield*Er(SP.success(s,t.requestId))}catch(e){yield*Er(SP.failure(void 0,t.requestId))}}function*KW(){(yield*Ar(RP))?yield*Er($A.request()):yield*Er(_P.request())}function*qW({meta:e}){try{yield*Er(wP({isNeedUpdate:!0}))}catch(t){yield*Er(_P.failure(void 0,e.requestId))}}function*VW(){const e={isNeedUpdate:!1,shownCount:10};yield*Er(wP(e)),yield*Er($A.request())}function*$W(){const e=yield*Ar(qP),t=yield*Ar(NP);e?yield*Er(vP.request(t)):yield*Er(wP({shownCount:t}))}function*WW(e,{payload:t,meta:n}){try{const r=yield*Ar(LP),{total_count:a}=yield*kr({context:e,fn:"pullHistory"},{user:r,limit:t}),i={shownCount:t,totalCount:a};yield*Er($A.request()),yield*Er(vP.success(i,n.requestId))}catch(e){yield*Er(vP.failure(void 0,n.requestId))}}function*zW(e,{payload:t,meta:n}){try{yield*kr({context:e.store,fn:"validateSessionLogFileExists"},t),yield*Er(bP.success(void 0,n.requestId))}catch(e){yield*Er(bP.failure(void 0,n.requestId))}}function*JW(){yield*Or(100),yield*Er(yP()),yield*Er(wP({shownCount:10}))}function*XW(e){yield*Rr([br(EP,JW),br(gP,$W),wr(SP.request,BW,e),br(SP.success,KW),br(yP,VW),br(_P.request,qW),br(vP.request,WW,e),Pr(bP.request,zW,e),br(Ul.success,MW)])}var QW=n(226),YW=n.n(QW);function ZW(e){return e.length>4095}const ez=["ls","cd","mv","rm","git","cp"];function tz(e){return ez.some(t=>e.toLowerCase().startsWith(t))}function nz(e,t,n=1e4){return function(e,t){const n=(a=e,new Map(a.map(e=>[e.script,e]).reverse())),r=[];var a;for(const[e,a]of t){const t=n.get(e);r.push(new xb(null!=t?{...t,rating:t.rating+a}:{script:e}))}return r}(e,function(e){var t;const n=new Map;for(const r of e)if(!tz(r)&&!ZW(r)){const e=null!==(t=n.get(r))&&void 0!==t?t:0;n.set(r,e+1)}return n}(YW()(t,n-e.length).map(e=>e.script)))}function rz(e){return VA({...JM(e)})}function*az(e,{payload:t,meta:n}){try{const r=nz(yield*kr({context:e.store,fn:"getHistoryCommands"}),t);yield*kr({context:e.store,fn:"setHistoryCommands"},r),yield*Er(rz(e)),yield*Er(LO.success(void 0,n.requestId))}catch(e){yield*Er(LO.failure(void 0,n.requestId))}}function*iz(e,{meta:t}){try{yield*Er(VA({historyCommands:[]})),yield*kr({context:e.store,fn:"deleteHistoryCommands"}),yield*Er(rz(e))}catch(e){return void(yield*Er(jO.failure(void 0,t.requestId)))}yield*Er(jO.success(void 0,t.requestId))}function*sz(e){yield*Rr([br(LO.request,az,e),br(jO.request,iz,e)])}function oz(e,t){const n=/(.+) copy( (\d+))?\s*$/,r=e.match(n),a=null!=r?r[1]:e,i=t.filter(e=>{const t=e.match(n);return null!=t&&t[1]===a}).sort(),s=bo()(i);if(null==s)return a+" copy";const o=s.match(n);kN(null!=o);const l=null!=o[3]?parseInt(o[3],10)+1:2;return`${a} copy ${l}`}function*lz(e,{payload:t,meta:n}){try{const{savedHost:r,oldHost:a}=yield*kr(kB,e,t.host);(TB(r)||CB(r,a))&&(yield*Er(py({isShared:r.is_shared,identitySource:"Host Settings",identity:IB(r,a)})));const i=r.clone({connectionPath:BN(r,e.store)});yield*Er(vO.success(i,n.requestId))}catch(e){TS.exception("Cannot save a host",e),yield*Er(vO.failure(void 0,n.requestId))}}function*cz(e,{payload:t,meta:n}){const r=e.store.getHosts().map(e=>e.displayLabel);try{for(const n of t){const t=e.store.getHost(n);t&&(t.prepareForDuplicate(),t.label=oz(t.displayLabel,r),yield*Er(vO.request({host:t})),r.push(t.label))}yield*Er(_O.success(void 0,n.requestId))}catch(e){yield*Er(_O.failure(void 0,n.requestId))}}function*uz(e){yield*Er(VA({...LM(e),...KM(e),...UM(e)})),yield*Er(rB(GM(e))),yield*Er(ts.request("does-not-block-ui"))}function*pz(e){try{yield*kr({context:e.store,fn:"resolveDuplicates"}),yield*Er(VA({...UM(e),...LM(e),...KM(e)}))}catch(e){}}function*dz({payload:e}){const t=(yield*Ar(Wb)).find(t=>t.local_id===e.host.local_id);t&&(yield*Er(vO.request({host:t.clone({os_name:e.os})})))}function*hz(e){yield*Rr([Pr(vO.request,lz,e),Pr(vO.success,uz,e),br(_O.request,cz,e),br(PO,dz),Pr(bO,pz,e)])}const fz=Pi("SET_LOCALHOST"),mz=Pi("REFRESH_LOCALHOST"),Sz=Pi("REMOVE_LOCALHOST"),yz=Pi("UPDATE_STORED_LOCALHOST");function*gz(e,{payload:t}){try{e.setLocalhost(t);const n=Jo.fromLocalhost(t);yield*Er(yz(n))}catch(e){}}function*vz(e){try{const t=e.getLocalhost();yield*Er(yz(t))}catch(e){}}function*_z(e){try{e.removeLocalhost(),yield*Er(yz(null))}catch(e){}}function*bz(e){yield*Rr([br(fz,gz,e),br(mz,vz,e),br(Sz,_z,e)])}const Pz=Li("GET_PRODUCTBOARD_TOKEN");function*wz(e,{meta:t}){try{const n=yield*kr({context:e,fn:"getProductboardToken"});yield*Er(Pz.success(n,t.requestId))}catch(e){yield*Er(Pz.failure({status:e.status,message:e.message},t.requestId))}}function*Ez(e){yield*br(Pz.request,wz,e)}const kz=Pi("REDIRECT_TO");function*Tz(){yield*br(kz,Cz)}function Cz({payload:e}){try{const t=Wj.get(e);null==t||t()}catch(e){}}const Iz=ei(e=>e.tags.tags,e=>e.map(e=>e.label));function*Az(e,{payload:t,meta:n}){try{const r=yield*Oz(e,t);yield*Er(WA.success(r,n.requestId)),yield*Mz(e)}catch(e){yield*Er(WA.failure(void 0,n.requestId))}}function*Oz(e,t){const n=new qo(t);if(n.package&&!n.package.local_id){n.package=yield*Hz(e,n.package);const t=(yield*Ar(Iz)).find(e=>{var t;return e===(null===(t=n.package)||void 0===t?void 0:t.label)});yield*Er(p_({isSharedEntity:n.is_shared?"yes":"no",snippetPackages:e.store.getNumberOfSnippetsPackages(),packageOrigin:t?"Host Tag":"Snippet Edit Form"}))}const r=e.store.getSnippetsPackage(n.package);return r&&(n.is_shared&&!r.is_shared?yield*Lz(e,[r]):n.is_shared=r.is_shared),yield*kr({context:e.store,fn:"setSnippet"},n),n}function*xz(e,{payload:t,meta:n}){try{for(const n of t)yield*kr({context:e.store,fn:"deleteSnippet"},new qo(n)),yield*Er(my({numberOfRemovedSnippets:1,aianalyticsID:n.aianalyticsID}))}catch(e){return void(yield*Er(zA.failure(void 0,n.requestId)))}yield*Er(zA.success(void 0,n.requestId)),yield*Mz(e)}function*Nz(e,{payload:t}){const n=e.store.getSnippets().map(e=>e.displayLabel);for(const r of t){const t=e.store.getSnippet(r);t&&(null==t||t.prepareForDuplicate(),t.label=oz(t.displayLabel,n),yield*Oz(e,t),n.push(t.label))}yield*Mz(e)}function*Rz(e,{payload:t,meta:n}){try{const{snippetsPackage:r,snippets:a}=t;for(const t of a)yield*Oz(e,new qo({...t,package:r}));yield*Er(XA.success(void 0,n.requestId)),yield*Mz(e)}catch(e){yield*Er(XA.failure(void 0,n.requestId))}}function*Dz(e,{payload:t,meta:n}){try{const r=yield*Hz(e,t);yield*Er(p_({isSharedEntity:t.is_shared?"yes":"no",snippetPackages:e.store.getNumberOfSnippetsPackages(),packageOrigin:"Package Create Form"})),YA.success(r,n.requestId),yield*Mz(e)}catch(e){yield*Er(YA.failure(void 0,n.requestId))}}function*Hz(e,t){const n=new Ko(t),r=e.store.getSnippetsPackages().find(e=>n.label===(null==e?void 0:e.label));return r||(yield*kr({context:e.store,fn:"setSnippetsPackage"},n),n)}function*Fz(e,{payload:t,meta:n}){try{for(const n of t){const t=e.store.getChildrenSnippets(n);yield*kr(()=>Promise.all(t.map(t=>e.store.deleteSnippet(t)))),yield*kr({context:e.store,fn:"deleteSnippetsPackage"},new Ko(n)),yield*Er(d_({isSharedEntity:n.is_shared?"yes":"no",snippetPackages:e.store.getNumberOfSnippetsPackages(),snippetPackageID:n.id||-1}));for(const e of t)yield*Er(my({numberOfRemovedSnippets:1,aianalyticsID:e.aianalyticsID}))}}catch(e){return void(yield*Er(ZA.failure(void 0,n.requestId)))}yield*Er(ZA.success(void 0,n.requestId)),yield*Mz(e)}function*Gz(e,{payload:t,meta:n}){try{yield*kr(Uz,e,t.snippets),yield*kr(Lz,e,t.snippetsPackages),yield*Er(SO.success(void 0,n.requestId)),yield*Mz(e)}catch(e){TS.exception("Cannot share snippets and snippets packages",e),yield*Er(SO.failure(void 0,n.requestId))}}function*Uz(e,t){const n=(yield*Ar(jb)).filter(e=>t.some(t=>t.local_id===e.local_id));for(const t of n){const n=new qo({...t,is_shared:!0});yield*Oz(e,n)}}function*Lz(e,t){const n=e.store.getSnippetsPackages().filter(e=>t.some(t=>t.local_id===e.local_id));for(const t of n){const n=new Ko({...t,is_shared:!0});yield*kr({context:e.store,fn:"setSnippetsPackage"},n),yield*kr(async()=>(await VO(n,{store:e.store,settings:e.settings})).share(new Ko(t),n))}}function*jz(e,{payload:t,meta:n}){try{const r=yield*kr(()=>e.api.getShellAssistAnswer(t));if(204===r.status)throw new Error("Empty response");yield*Er(QA.success(r.result,n.requestId))}catch(e){yield*Er(QA.failure(void 0,n.requestId))}}function*Mz(e){yield*Er(function(e){return VA(XM(e))}(e)),yield*Er(ts.request("does-not-block-ui"))}function*Bz(e){yield*Rr([br(WA.request,Az,e),br(JA,Nz,e),br(zA.request,xz,e),br(XA.request,Rz,e),br(SO.request,Gz,e),br(YA.request,Dz,e),br(ZA.request,Fz,e),br(QA.request,jz,e)])}const Kz=["TRIAL","PREMIUM","GITHUB_STUDENT","GITHUB_TEACHER"],qz=["TeamOwnerSubscriptionExpired","TeamMemberSubscriptionExpired","UnifyTrialExtend"];function*Vz(){try{yield*function*(){if(yield*Ar(Wz))return;const e=yield*Ar(cw),t=yield*Ar(nw);if(e)switch(e){case"SUBSCRIBED_TRIAL_TEAM_OWNER":case"SUBSCRIBED_TRIAL_TEAM_OWNER_WITHOUT_MEMBERS_AND_SHARED_GROUPS":case"TRIAL_TEAM_OWNER":case"TRIAL_TEAM_OWNER_WITHOUT_MEMBERS_AND_SHARED_GROUPS":yield*lG({dialog:"UnifyTrialExtend",target:"all-windows",props:{inProgress:!1}});break;case"TEAM_OWNER":yield*lG({dialog:"TeamOwnerSubscriptionExpired",target:"all-windows",props:{}});break;case"TEAM_MEMBER":yield*lG({dialog:"TeamMemberSubscriptionExpired",target:"all-windows",props:{ownerAddress:t||""}})}}(),yield*function*(){if(yield*Ar(Wz))return;const e=yield*Ar(cw),t=yield*Ar(uw);if(null==e)return;const n=Kz.includes(e);!FS.wasDeprecatedSubscriptionExpired()&&t&&n&&(yield*lG({dialog:"UnifyTrialExtend",target:"all-windows",props:{inProgress:!1}}))}(),yield*function*(){const e=yield*Ar(BP),t=yield*Ar(oP),n="RETRYING"===(null==e?void 0:e.status),r=(null==e?void 0:e.current_period.until)!==t,a=yield*Ar(XP),i=yield*Ar(Uj);n&&r&&"/hosts"===i&&!a&&(yield*Er(fb()),yield*lG({dialog:"GracePeriod",target:"all-windows",props:{}}))}()}catch{}yield*function*(){const e=yield*Ar(cw),t=(yield*Ar(fM)).filter(([e,t])=>qz.includes(t.name)&&!0!==t.props.inProgress&&!0!==t.props.entryFromUpgradeNowBtn),n=yield*Ar(KP),r="TEAM_TRIAL_OWNER_AWAITING_DOWNGRADE"===e&&!n,a=!!t.length;(!e&&a||r)&&(yield*Rr(t.map(([e])=>Er(Ic(e)))))}(),yield*function*(){const e=(yield*Ar(fM)).filter(([e,t])=>"GracePeriod"===t.name&&!0!==t.props.inProgress);if(!!!e.length)return;const t=yield*Ar(BP),n=yield*Ar(XP);if("RETRYING"===(null==t?void 0:t.status)&&!n)return;const r=yield*Ar(oP);(null==t?void 0:t.current_period.until)!==r&&(yield*Er(js(null==t?void 0:t.current_period.until))),yield*Rr(e.map(([e])=>Er(Ic(e))))}()}function*$z(){yield*Rr([Pr(Pl.success,Vz),Pr(wl,Vz)])}function Wz(e){return fM(e).some(([e,t])=>qz.includes(t.name))}function zz(e){return"no"!==e.sync.inProcess}function*Jz(e,{payload:t,meta:n}){const r=yield*Ar(JP);try{if(!r){const t=yield*ji(Pl);t.account.team&&(yield*kr({context:e,fn:"convertUserAccountToTeamType"},{userId:t.account.user_id}))}yield*ji(ts,t),yield*Er(rs.success(void 0,n.requestId))}catch(e){yield*Er(rs.failure(e.status,n.requestId))}}function*Xz(e,{payload:t,meta:n}){if(!(yield*Ar(qP)))return void(yield*Er(ts.failure({status:null,reason:(new xc).name},n.requestId)));let r;try{r=yield*kr({context:e.auth,fn:"updateUserProfile"})}catch(e){return void(yield*Er(ts.failure({status:e.status,reason:(new Ac).name},n.requestId)))}try{"reload-data"===t?(yield*kr({context:e,fn:"reloadData"},r),yield*Er($A.request())):"sync-all-data"===t?yield*kr({context:e,fn:"syncAllData"},r):yield*kr({context:e,fn:"sync"},r),"reload-data"!==t&&(yield*Er(SP.request())),yield*Er(ts.success({lastSyncDate:e.settings.getDeprecatedLastSync(),syncKeysAndIdentities:e.settings.isSynchingKeys()},n.requestId))}catch(e){hx.is(e)&&(yield*function*(e){var t,n;for(const r of null!==(t=e.errorContext)&&void 0!==t?t:[]){const{kind:e}=r;null!=e&&(yield*Er(x_({action:"decrypt"===r.operation?"Decryption":"Encryption",entityID:r.id,cryptorVersion:null!==(n=r.cryptorVersion)&&void 0!==n?n:0,entity:e})))}}(e)),"reload-data"===t?TS.exception("Reload data failed",e):"sync-all-data"===t?TS.exception("Sync all data failed",e):TS.exception("Sync failed",e),yield*Er(ts.failure({status:e.status,reason:null},n.requestId))}}function*Qz(e,{payload:t,meta:n}){try{yield*kr({context:e,fn:"setSynchronizeKeySetting"},t),yield*kr({context:e,fn:"pushSettings"}),yield*Er(is.success(t,n.requestId))}catch(e){return void(yield*Er(is.failure(void 0,n.requestId)))}if(t){const{canEditSharedEntities:t}=e.settings.getDeprecatedUserTeamStatus();yield*kr({context:e.store,fn:"markSyncKeyCollectionsAsUpdateFailed"},t===Ix.yes)}}function*Yz(){yield*Er(ic.request());(yield*Ar(iw))&&(yield*Er(xV.request()))}function*Zz(e){(yield*Ar(zz))&&(yield*Dr([_r(ts.failure),_r(ts.success)])),yield*ji(ts,e)}function*eJ(e){yield*Rr([wr(ts.request,Xz,e),wr(rs.request,Jz,e),br(is.request,Qz,e),br(ts.success,Yz)])}function*tJ(){yield*qi(ns,Zz)}function*nJ(e){yield*Rr([qi(mO,(function*(t){var n;const r=yield*Ar(Wb),a=null!==(n=t.group)&&void 0!==n?n:yield*kr(NW,e,new Wo({label:"Shared Group"})),i=xW(new Tb({...a,children_hosts:t.hosts}),r);a.sharing_mode=t.shouldShareCredentials?"credentials_sharing":"no_credentials_sharing",yield*ji(hO,{chains:[...t.hosts,...i],group:a})})),qi(fO,(function*(e){const t=yield*Ar(Wb);for(const n of e){const e=xW(new Tb(n),t);yield*ji(hO,{chains:e,group:new Wo(n)})}})),qi(UO,(function*({shouldShareGroups:t,shouldShareHosts:n,shouldShareSnippets:r,shouldShareCredentials:a,entity:i}){let s=null;if("snippet"===(null==i?void 0:i.type)&&(yield*kr(Uz,e,[i.snippet])),"host"===(null==i?void 0:i.type)&&(s=yield*function*(e,t,n){let r=new Wo({label:"Shared Group"}),a=n.store.getHost(e);if(null==a){if(null!=e.local_id)return;a=new Jo(e)}const i=a.clone({group:r.clone({is_shared:!1})}),s=yield*kr(AB,n,i);yield*ji(yO,Wo.clone(s.group)),r=Wo.clone(s.group,{is_shared:!0,sharing_mode:t?"credentials_sharing":"no_credentials_sharing"});const o=yield*kr(NW,n,r);yield*Er(Gy(r)),e.local_id||(yield*Er(ly(s)));return o}(i.host,a,e)),"group"===(null==i?void 0:i.type)&&(s=yield*function*(e,t,n){let r=n.store.getGroup(e);if(null==r){if(null!=e.local_id)return;r=new Wo(e)}let a=r;const i=yield*kr(NW,n,a.clone({is_shared:!1}));yield*ji(yO,i),a=new Wo({...i,is_shared:!0,sharing_mode:t?"credentials_sharing":"no_credentials_sharing"});const s=yield*kr(NW,n,a);e.local_id||(yield*Er(Gy(i)));return s}(i.group,a,e)),t){const e=(yield*Ar(Yb)).filter(e=>!e.is_shared&&!e.parent_group);yield*ji(fO,e.map(e=>new Tb({...e,sharing_mode:a?"credentials_sharing":"no_credentials_sharing"})))}if(n){const e=(yield*Ar(Wb)).filter(e=>!e.is_shared&&!e.group);yield*ji(mO,{hosts:e,group:s,shouldShareCredentials:a})}if(r){const t=(yield*Ar(jb)).filter(e=>!e.is_shared);yield*kr(Uz,e,t)}yield*Er(VA(XM(e))),yield*Er(rB(GM(e))),yield*ji(ns,"does-not-block-ui")})),qi(uc,(function*({teamName:e,...t}){yield*ji(Rl,t),yield*ji(Ol,{teamName:e,invites:[]})})),qi(pc,(function*({createTeam:e,teamName:t,force2fa:n,invites:r}){e&&(yield*ji(Ol,{teamName:t,invites:[]})),yield*ji(Cl,{name:t,two_factor_auth:n});for(const e of r.filter(({email:e})=>e))yield*Er(Nl.request(e))}))])}function*rJ(){yield*qi(hc,(function*({createTeam:e,teamName:t,invites:n}){e&&(yield*ji(Ol,{teamName:t,invites:[]})),yield*ji(Cl,{name:t});for(const e of n.filter(({email:e})=>e))yield*Er(Nl.request(e))}))}function*aJ(e){yield*Rr([hz(e),nJ(e),jW(e),Bz(e),VV(e),bj(e),_W(e),$z(),bz(e),eJ(e),tJ(),XW(e),Tz(),DB(e),QB(e),Ez(e),X$(),s$(e),LV(e),nM({shouldSend:e=>{if(!zP(e))return{type:"nothing"};const t=Zj(e);return null!=t?{type:"send",payload:t}:qP(e)||function(e){return e.customerExperience.initWasPerformed}(e)?{type:"nothing"}:{type:"init"}}},Ij(e.api)),vK(e),kM(e),PM(e),Wq(e),gM(),SV(),Cj(e),IV(),MB(e),sz(e),yield*AW(),Cq(),XK(e.api),rJ()])}function*iJ(){yield*Rr([br(wl,oJ),br(Pl.success,oJ)])}function sJ(e,{sagaStack:t}){TS.exception("Unhandled saga error inside of "+function(e){var t,n;return null!==(n=null===(t=e.split("\n").find(e=>e.startsWith("    created by ")))||void 0===t?void 0:t.replace("    created by ",""))&&void 0!==n?n:"an unknown saga"}(t),e)}function*oJ(){const e=yield*Ar(MP),t=yield*Ar(uw),n={};null!=e&&(n.id=""+e),null!=t&&""!==t&&(n.email=t),TS.setUser(0!==Object.keys(n).length?n:null)}const lJ=Li("GET_SSL_VERIFICATION_STATUS");function cJ(e,t){return new Promise(n=>{e.run((function*(){n(yield*_r(t))}))})}function uJ(e){var t,n,r;const a=null!==(t=e.getDeprecatedUserStr())&&void 0!==t?t:"",i=null!==(n=e.getDeprecatedUserId())&&void 0!==n?n:null,s=!!a&&e.getDeprecatedUserPro(),o=null!==(r=e.getDeprecatedUserHasSso())&&void 0!==r&&r,l=e.getDeprecatedAuthorizedFeatures(),c=e.getDeprecatedTeamPermissions(),{isTeam:u,isOwner:p,teamOwnerEmail:d,teamOwnerId:h}=e.getDeprecatedUserTeamStatus();return wl({username:a,account:{user_id:i,pro_mode:s,authorized_features:l,has_sso:o},...u?{team:{team_permissions:c,is_owner:!!p,owner_id:h,owner:d}}:{}})}function pJ(e){if(null==e)return"is not there";const t=Buffer.from(e,"base64");return 32===t.length?"is valid":`is not valid. string size: ${e.length}, buffer size: ${t.length}`}var dJ=n(227),hJ=n.n(dJ);const fJ=he((e,t)=>{var n;null!==(n=e.customerExperience)&&void 0!==n||(e.customerExperience=ZB()(Sc()));const r=t();if(null==r)return;const{lastReview:a,dismissDate:i,dismissCount:s=0}=r;e.customerExperience.dismissCount=s,null!=a&&(e.customerExperience.interactionData={action:"rated-in-legacy-app-version",interactedAt:new Date(a.date),appVersion:a.appVersion}),null!=i&&(null==a||i>a.date)&&(e.customerExperience.interactionData={action:"dismissed",interactedAt:new Date(i)})});function mJ(){return NS("non_team_users_survey")}const SJ=it(({interactionData:e,initWasPerformed:t,dismissCount:n})=>({interactionData:yJ(e),initWasPerformed:t,dismissCount:n}),({interactionData:e,...t})=>({...ZB()(Sc()),...t,interactionData:gJ(e)}),{whitelist:["customerExperience"]});function yJ(e){return null==e?e:{...e,interactedAt:e.interactedAt.toISOString()}}function gJ(e){return null==e?e:{...e,interactedAt:new Date(e.interactedAt)}}var vJ=kP({[WO.toString()]:(e,{payload:t})=>{if(!t.group.local_id)return e;const n=new Map(e.failedSyncGroups);return n.set(t.group.local_id,t.errorMessage),{...e,failedSyncGroups:Array.from(n.entries())}},[zO.toString()]:(e,{payload:t})=>{if(!t.local_id)return e;const n=new Map(e.failedSyncGroups);return n.delete(t.local_id),{...e,failedSyncGroups:Array.from(n.entries())}}},{failedSyncGroups:[]});const _J=(e,t,n)=>{const r=new Map(e),a=r.get(t);return a?(r.set(t,Ox()({},a,n)),[...r]):e};var bJ=kP({[wc.toString()]:(e,{payload:t})=>{const{dialogData:n,requestMeta:r}=t,{dialog:a,props:i,target:s}=n,o=new Map(e);return o.set(r.requestId,{name:a,state:"opening",props:i,requestMeta:r,target:s}),[...o]},[kc.toString()]:(e,{payload:{requestId:t,props:n}})=>_J(e,t,{props:n}),[Cc.toString()]:(e,{payload:t})=>_J(e,t,{state:"closing"}),[Tc.toString()]:(e,{payload:t})=>_J(e,t,{state:"opened"}),[Ic.toString()]:(e,{payload:t})=>{const n=new Map(e);return n.delete(t),[...n]}},[]);var PJ=kP({[Yw.toString()]:(e,{payload:t})=>({...e,treatments:t})},{treatments:{}}),wJ=kP({[IM.success.toString()]:(e,{payload:t})=>({...e,suggestions:t}),[Ul.toString()]:()=>({suggestions:{ssh:[],telnet:[],proxy:[]}})},{suggestions:{ssh:[],telnet:[],proxy:[]}});const EJ=[];var kJ=kP({[mG.toString()]:(e,{payload:t})=>[...t],[Ul.success.toString()]:()=>EJ},EJ),TJ=n(66),CJ=n.n(TJ);const IJ=Pi("SET_FREE_TO_TRIAL_DISMISS_TIMESTAMP"),AJ=Pi("SET_TRIAL_TO_PREMIUM_DISMISS_TIMESTAMP"),OJ=(Pi("SET_MULTIKEY_DISMISS_TIMESTAMP"),Pi("DISABLE_DIRECTORIES_AUTOCOMPLETE_DESCRIPTION")),xJ=Pi("HIDE_SHELL_ASSIST_HINT"),NJ=Pi("HIDE_BROADCAST_PROMPT");var RJ=ai({freeToTrialDismissTimestamp:kP({[IJ.toString()]:(e,{payload:t})=>t},null),trialToPremiumDismissTimestamp:kP({[AJ.toString()]:(e,{payload:t})=>t},null),shouldShowDirectoriesAutocompleteDescription:kP({[OJ.toString()]:e=>!1},!0),hideOpenAITooltipReducer:kP({[xJ.toString()]:e=>!0},!1),shouldShowBroadcastPrompt:Ei(!0,e=>{e.addCase(NJ,CJ.a)})});function DJ(e){return{[JL.toString()]:()=>e(),[XL.toString()]:()=>e(),[Ul.success.toString()]:()=>e()}}const HJ=()=>({map:new Map});var FJ=kP({[wG.toString()]:he((e,{payload:t})=>{if("TEAM_TERMINAL_SESSION_SHARING_REQUEST"===t.type){const{hostId:n,id:r}=t.payload;e.map.set(r,{hostId:n,status:"progress"})}}),[zL.toString()]:he((e,{payload:t})=>{e.map.delete(t)}),...DJ(HJ)},HJ()),GJ=n(73),UJ=n.n(GJ);const LJ=()=>({map:new Map});var jJ=ai({connections:kP({[UL.toString()]:he((e,{payload:t})=>{t.forEach(t=>e.map.set(t.id,t))}),[LL.toString()]:he((e,{payload:t})=>{const{userId:n,hostId:r,connectionId:a,connectionParams:i,ownerDeviceToken:s,windowId:o}=t;e.map.set(a,{id:a,owner:n,ownerDeviceToken:s,windowId:o,viewers:[],hostId:r,params:i})}),[jL.toString()]:he((e,{payload:t})=>{e.map.delete(t)}),[ML.toString()]:he((e,{payload:t})=>{const{userId:n,connectionId:r,totalViewersCount:a}=t,i=e.map.get(r);i&&(-1===i.viewers.indexOf(n)&&i.viewers.push(n),i.params.totalViewersCount=a)}),[BL.toString()]:he((e,{payload:t})=>{const{userId:n,connectionId:r,totalViewersCount:a}=t,i=e.map.get(r);i&&(i.viewers=UJ()(i.viewers,n),i.params.totalViewersCount=a)}),[KL.toString()]:he((e,{payload:t})=>{const{connectionId:n,connectionParams:r}=t,a=e.map.get(n);a&&(a.params={...a.params,...r})}),[qL.toString()]:he((e,{payload:t})=>{e.map.forEach((n,r)=>{n.owner===t?e.map.delete(r):e.map.set(r,{...n,viewers:UJ()(n.viewers,t)})})}),...DJ(LJ)},LJ()),connectionRequests:FJ});const MJ={sorting:{sortBy:null,sortDirection:"ASC"}},BJ={showHiddenFiles:!1,left:MJ,right:MJ,fileTypeAppAssociations:[]};var KJ=kP({[x$.toString()]:(e,{payload:t})=>({...e,fileTypeAppAssociations:[...e.fileTypeAppAssociations.filter(e=>e.type!==t.type),t]}),[N$.toString()]:(e,{payload:t})=>({...e,fileTypeAppAssociations:e.fileTypeAppAssociations.filter(e=>e.type!==t.type)}),[R$.toString()]:(e,{payload:t})=>({...e,showHiddenFiles:t}),[D$.toString()]:(e,{payload:t})=>({...e,[t.containerId]:{sorting:t.sorting}}),[Ul.toString()]:e=>({...e,fileTypeAppAssociations:[]})},BJ);var qJ=kP({[zq.toString()]:(e,{payload:t})=>null!=t?t:null},null);const VJ=Pi("ADD_SNACK_NOTIFICATION"),$J=Pi("REMOVE_SNACK_NOTIFICATION"),WJ=Pi("UPDATE_SNACK_NOTIFICATION");var zJ=kP({[VJ.toString()]:(e,{payload:t})=>[...e,t],[$J.toString()]:(e,{payload:t})=>[...e.filter(e=>e.id!==t)],[WJ.toString()]:(e,{payload:t})=>[...e.filter(e=>e.id!==t.id),t],[Ul.toString()]:()=>[]},[]);const{reducer:JJ,actions:XJ}=ki({name:"app",reducers:{initAppRuntimeInfo:(e,{payload:t})=>t},initialState:{userDataPath:"",version:""}}),{initAppRuntimeInfo:QJ}=XJ;var YJ=JJ;const{actions:ZJ,reducer:eX}=ki({name:"connectionFlow",initialState:{saveCredentials:!0},reducers:{changeSaveCredentials:(e,{payload:t})=>{e.saveCredentials=t}}}),{changeSaveCredentials:tX}=ZJ;var nX=eX;const rX={personalDeviceKeyPair:null,authorizedKeys:[],teamMultiKeyFormOpen:!1};var aX=Ei(rX,e=>{e.addCase(Ul.success,()=>rX),e.addCase(OV.success,(e,{payload:t})=>({...e,...t})),e.addCase(xV.success,(e,{payload:t})=>{e.personalDeviceKeyPair=t}),e.addCase(AV.success,(e,{payload:t})=>{e.authorizedKeys=t}),e.addCase(RV,(e,{payload:t})=>{e.teamMultiKeyFormOpen=t})});const iX=[Hl,Ul,Ml,Dl,oc,Vl,jl,tc],sX=e=>({...e,blockUiReferenceCount:e.blockUiReferenceCount+1}),oX=e=>({...e,blockUiReferenceCount:e.blockUiReferenceCount-1});var lX=kP({[Nj.toString()]:(e,{payload:t})=>({...e,localPath:t}),[Rj.toString()]:(e,{payload:t})=>({...e,global:fe(e.global,e=>{const n=e.find(e=>e.windowId===t.windowId);null==n?e.push(t):n.path=t.path})}),[Hj.toString()]:e=>({...e,forceUnblockUi:!e.forceUnblockUi}),...function(){const e={};for(const{request:t,success:n,failure:r}of iX)e[t.toString()]=sX,e[n.toString()]=oX,e[r.toString()]=oX;return e}()},{localPath:"/hosts",global:[],blockUiReferenceCount:0,forceUnblockUi:!1});var cX=kP({[DP.toString()]:fe((e,{payload:t})=>{e.saveAsHost=t})},{saveAsHost:!0});var uX=kP({[WV.toString()]:(e,{payload:t})=>[...e,t],[zV.toString()]:(e,{payload:t})=>[...e.filter(e=>e.id!==t)],[JV.toString()]:(e,{payload:t})=>[...e.filter(e=>e.id!==t)],[XV.toString()]:(e,{payload:t})=>[...e.filter(e=>e.id!==t.id),t],[Ul.toString()]:()=>[]},[]),pX=n(75),dX=n.n(pX);const hX={username:"",team:null,isTeamDataStale:!1,personal_subscription:null,team_subscription:null,student:null,trial:null,account:{id:null,user_id:null,is_email_confirmed:!0,need_to_update_subscription:!1,pro_mode:!1,two_factor_auth:!1,team:!1,updated_at:"",feature_toggles:null,registered_at:"",now:"",plan_type:"Unauthorized",user_type:"Unauthorized",full_name:"",company:"",address:"",country_code:"",current_period:null,authorized_features:null,expired_screen_type:null,tax_id:"",has_sso:!1,team_display_name:"",is_subscribed_to_marketing_emails:!1},device:void 0,team_members:[],team_invites:[],hasAccessToSharedData:null,access_objects:[]};var fX=kP({[Pl.success.toString()]:(e,{payload:t})=>Ox()({},e,t,{isTeamDataStale:!1}),[Hl.success.toString()]:(e,{payload:{bulk_account:t,device:n}})=>Ox()({},e,t,{isTeamDataStale:!1,device:n}),[wl.toString()]:(e,{payload:t})=>Ox()({},e,t),[Ul.success.toString()]:()=>hX,[kl.success.toString()]:e=>Ox()({},e,{account:{two_factor_auth:!0}}),[Tl.success.toString()]:e=>Ox()({},e,{account:{two_factor_auth:!1}}),[Cl.success.toString()]:(e,{payload:t})=>dX()({},e,{team:t},{isTeamDataStale:!1}),[Ll.success.toString()]:(e,{payload:t})=>Ox()({},e,{username:t,account:{is_email_confirmed:!1,has_sso:!1}}),[ic.success.toString()]:(e,{payload:t})=>Ox()({},e,{hasAccessToSharedData:t}),[Jl.success.toString()]:(e,{payload:t})=>{var n;return dX()({},e,{team_members:null!==(n=null==t?void 0:t.results)&&void 0!==n?n:[]})},[Xl.success.toString()]:(e,{payload:t})=>{var n;return dX()({},e,{team_invites:null!==(n=null==t?void 0:t.results)&&void 0!==n?n:[]})},[bG.success.toString()]:(e,{payload:t})=>dX()({},e,{team_invites:t.invites,team_members:t.members})},hX);var mX=kP({[Pi("FOCUSED_WINDOW_HAS_CHANGED").toString()]:(e,{payload:t})=>({...e,lastFocused:t})},{lastFocused:void 0});const SX=(e,t)=>{let n=!0;const r=e.localMessages.map(e=>e.id===t.id?(n=!1,t):e);return n?[...e.localMessages,t]:r};var yX=kP({[Rc.toString()]:(e,{payload:t})=>({...e,localMessages:SX(e,t)}),[Dc.toString()]:(e,{payload:t})=>{const n=e.localMessages.filter(e=>e.id!==t);return{...e,localMessages:n}},[Fc.toString()]:e=>{const t=e.localMessages.map(e=>({...e,is_seen:!0}));return{...e,localMessages:t}},[Nc.toString()]:(e,{payload:t})=>{const n=e.localMessages.map(e=>e.id===t?{...e,is_seen:!0}:e);return{...e,localMessages:n}},[Mc.success.toString()]:(e,{payload:t})=>({...e,...t}),[jc.success.toString()]:(e,{payload:t})=>({...e,...t}),[Bc.success.toString()]:(e,{payload:t})=>({...e,objects:t})},{objects:[],localMessages:[],meta:{dot_type:null}});const gX=Pi("HIDE_KEY_EXCHANGE_PROMOTION"),vX={objects:[]};var _X=kP({[jc.success.toString()]:(e,{payload:t})=>({...e,objects:[...t.objects.filter(e=>{var t;return"termius-message://kex"===e.action&&(null===(t=e.message_attributes)||void 0===t?void 0:t.user_pk)}).map(t=>{var n,r,a,i,s,o,l;return{email:null!==(a=null===(r=null===(n=t.message_attributes)||void 0===n?void 0:n.user_email)||void 0===r?void 0:r.trim())&&void 0!==a?a:"",id:null!==(s=null===(i=t.message_attributes)||void 0===i?void 0:i.user_pk)&&void 0!==s?s:0,isHidden:null!==(l=null===(o=e.objects.find(e=>{var n;return e.id===(null===(n=t.message_attributes)||void 0===n?void 0:n.user_pk)}))||void 0===o?void 0:o.isHidden)&&void 0!==l&&l}}).reverse()]}),[gX.toString()]:(e,{payload:t})=>({...e,objects:e.objects.map(e=>e.id===t?{...e,isHidden:!0}:e)}),[Ul.success.toString()]:()=>vX},vX);const{reducer:bX,actions:PX}=ki({name:"nativeTheme",reducers:{setNativeTheme:(e,t)=>t.payload},initialState:{shouldUseDarkColors:!1}}),{setNativeTheme:wX}=PX;var EX=bX;const kX={monthly:{value:12,currency:"USD"},yearly:{value:120,currency:"USD"}};const TX={isCanceled:!1,isLoading:null,prices:kX},CX=YS.a.mas()||YS.a.windowsStore();var IX=kP({[GS.toString()]:e=>({...e,isCanceled:!1,isLoading:CX?"monthly":null}),[US.toString()]:e=>({...e,isCanceled:!1,isLoading:CX?"yearly":null}),[LS.toString()]:e=>({...e,isLoading:CX?"restore":null}),[zS.toString()]:e=>({...e,isCanceled:!0,isLoading:null}),[KS.toString()]:e=>({...e,isLoading:null}),[qS.toString()]:e=>({...e,isLoading:null}),[VS.success.toString()]:(e,t)=>({...e,prices:t.payload}),[$S.toString()]:e=>({...e,isLoading:null})},TX),AX=kP({[u$.toString()]:(e,{payload:t})=>{const n={...t,timestamp:Date.now(),show:!0};if(!n.id){const r=e.some(e=>e.type===t.type);return n.id=t.type,r?e:[...e,n]}return[...e,n]},[p$.toString()]:(e,{payload:t})=>e.map(e=>e.id===t?{...e,show:!1}:e),[d$.toString()]:(e,{payload:t})=>e.filter(e=>e.id!==t)},[]),OX=kP({[wW.toString()]:(e,{payload:t})=>t},!1);const xX=[];var NX=kP({[_G.toString()]:(e,{payload:t})=>[...t],[bG.success.toString()]:(e,{payload:t})=>[...t.avatars],[Ul.success.toString()]:()=>xX},xX);const RX=CP("SET_SFTP_CHANGED_FILE"),DX=CP("REMOVE_SFTP_CHANGED_FILE"),HX=CP("REMOVE_ALL_SFTP_CHANGED_FILES");var FX=kP({[RX.toString()]:(e,{payload:{fileId:t,changedFile:n}})=>{const r=new Map(e);return r.set(t,n),[...r]},[DX.toString()]:(e,{payload:t})=>{const n=new Map(e);return n.delete(t),[...n]},[HX.toString()]:(e,{payload:t})=>{const n=new Map(e);return e.forEach(([e,r])=>{r.sftpContainerId===t&&n.delete(e)}),[...n]}},[]);var GX=kP({[VA.toString()]:(e,{payload:t})=>({...e,...t})},{hosts:[],groups:[],snippets:[],sshKeys:[],visibleIdentities:[],portForwardingRules:[],knownHosts:[],histories:[],hostLatestActivities:[],multiKeys:[],awsConfigs:[],snippetsPackages:[],hardwareKeys:[],historyCommands:[]}),UX=n(97),LX=n.n(UX);const jX=(e,t,n)=>Ei(n,n=>{n.addCase(e,LX.a).addCase(t,CJ.a)}),MX=(e,t)=>Ei(t,t=>{t.addCase(e,(e,t)=>t.payload)});var BX=ai({rightClickToPaste:jX(_s,bs,!1),bellSound:jX(ls,cs,!1),optionIsMeta:jX(gs,vs,!0),scrollback:MX(Ps,4294967295),colorScheme:MX(ds,"termius dark"),fontFamily:MX(ms,"Source Code Pro"),fontSize:MX(Ss,14),brightenBoldText:jX(us,ps,!1),terminalEmulationType:MX(ws,"xterm-256color"),detectOS:jX(hs,fs,!0),liveTerminalLabel:Ei(!1,e=>{e.addCase(ys,LX.a)}),hideProFeatureSteps:Ei(!1,e=>{e.addCase(Es,LX.a)}),keywordsHighlighting:MX(ks,!0),enableShellHistoryImport:MX(Ts,!0),autocompleteDisabledUntilTimestamp:MX(Cs,1)});const KX={hosts:"grid",keychain:"grid",portForwarding:"grid",snippets:"grid",knownHosts:"grid"};var qX=kP({[Is.toString()]:(e,{payload:t})=>({...e,[t.tab]:t.layout})},KX);var VX=kP({[yz.toString()]:(e,{payload:t})=>t},null),$X=kP({[Os.toString()]:(e,{payload:t})=>[...e,t],[xs.toString()]:(e,{payload:t})=>UJ()(e,t)},[]);var WX=ai({path:kP({[As.toString()]:(e,{payload:t})=>t},null),customPaths:$X});function zX(e,t,n){const r=[...e.windows];let a=r.findIndex(([e])=>e===t);-1===a&&(r.push([t,{width:e.width,visible:e.visible,screen:e.screen}]),a=r.length-1);const[i,s]=r[a],o=n(s);return r[a]=[i,o],{...e,windows:r,...o}}var JX=kP({[L$.toString()]:(e,{payload:{width:t,windowId:n}})=>({...zX(e,n,e=>({...e,visible:t>0,width:t})),interacted:!0}),[j$.toString()]:(e,{payload:{windowId:t}})=>({...zX(e,t,e=>({...e,visible:!e.visible,width:Math.max(e.width,260)})),interacted:!0}),[K$.toString()]:(e,{payload:{screen:t,windowId:n}})=>({...zX(e,n,e=>({...e,screen:t}))}),[_K.toString()]:(e,{payload:t})=>({...e,windows:[...e.windows,[t,{width:e.width,visible:e.visible,screen:e.screen}]]}),[bK.toString()]:(e,{payload:t})=>({...e,windows:e.windows.filter(([e])=>e!==t)}),[M$.toString()]:e=>({...e,hintWasShown:!0}),[B$.toString()]:e=>({...e,topThreePromoClosed:!0})},{interacted:!1,hintWasShown:!1,visible:!0,width:300,windows:[],screen:"theme",topThreePromoClosed:!1});const XX=Pi("SET_SORTING"),QX={by:"Date",reverse:!0},YX={hosts:QX,keychain:QX,portForwarding:QX,snippets:QX,knownHosts:QX};var ZX=kP({[XX.toString()]:(e,{payload:t})=>{const n=t.tab,r=e[n]||QX;return{...e,[n]:{by:t.sort,reverse:t.sort===r.by&&!r.reverse}}}},YX);const eQ=Pi("INCREASE_CONNECTIONS_AMOUNT"),tQ=Pi("SET_FIRST_LAUNCH_DATE");var nQ=kP({[eQ.toString()]:e=>({...e,connectionsAmount:e.connectionsAmount+1}),[tQ.toString()]:(e,{payload:t})=>({...e,firstLaunchDate:t})},{connectionsAmount:0,firstLaunchDate:Date.now()}),rQ=kP({[as.toString()]:(e,{payload:t})=>({...e,...t}),[ts.request.toString()]:(e,{payload:t})=>({...e,inProcess:t}),[ts.success.toString()]:(e,{payload:t})=>({...e,...t,inProcess:"no"}),[ts.failure.toString()]:e=>({...e,inProcess:"no"}),[is.success.toString()]:(e,{payload:t})=>({...e,syncKeysAndIdentities:t}),[Ul.success.toString()]:e=>({...e,lastSyncDate:null}),[ss.toString()]:(e,{payload:t})=>({...e,sharingEnabled:t!==uN.setupIncomplete})},{lastSyncDate:null,syncKeysAndIdentities:!1,inProcess:"no",sharingEnabled:!0});n(39);const aQ="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function iQ(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function sQ(e){return"nodeType"in e}function oQ(e){var t,n;return e?iQ(e)?e:sQ(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function lQ(e){const{Document:t}=oQ(e);return e instanceof t}function cQ(e){return!iQ(e)&&e instanceof oQ(e).HTMLElement}function uQ(e){return e?iQ(e)?e.document:sQ(e)?lQ(e)?e:cQ(e)?e.ownerDocument:document:document:document}aQ?g$.useLayoutEffect:g$.useEffect;function pQ(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return r.reduce((t,n)=>{const r=Object.entries(n);for(const[n,a]of r){const r=t[n];null!=r&&(t[n]=r+e*a)}return t},{...t})}}const dQ=pQ(1),hQ=pQ(-1);function fQ(e){if(!e)return!1;const{KeyboardEvent:t}=oQ(e.target);return t&&e instanceof t}function mQ(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=oQ(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}var SQ;!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(SQ||(SQ={}));const yQ=Object.freeze({x:0,y:0});function gQ(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const vQ={ignoreTransform:!1};function _Q(e,t){void 0===t&&(t=vQ);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=oQ(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=gQ(t);if(!r)return e;const{scaleX:a,scaleY:i,x:s,y:o}=r,l=e.left-s-(1-a)*parseFloat(n),c=e.top-o-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=a?e.width/a:e.width,p=i?e.height/i:e.height;return{width:u,height:p,top:c,right:l+u,bottom:c+p,left:l}}(n,t,r))}const{top:r,left:a,width:i,height:s,bottom:o,right:l}=n;return{top:r,left:a,width:i,height:s,bottom:o,right:l}}function bQ(e){return _Q(e,{ignoreTransform:!0})}function PQ(e,t){const n=[];return e?function r(a){if(null!=t&&n.length>=t)return n;if(!a)return n;if(lQ(a)&&null!=a.scrollingElement&&!n.includes(a.scrollingElement))return n.push(a.scrollingElement),n;if(!cQ(a)||function(e){return e instanceof oQ(e).SVGElement}(a))return n;if(n.includes(a))return n;const i=oQ(e).getComputedStyle(a);return a!==e&&function(e,t){void 0===t&&(t=oQ(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const r=t[e];return"string"==typeof r&&n.test(r)})}(a,i)&&n.push(a),function(e,t){return void 0===t&&(t=oQ(e).getComputedStyle(e)),"fixed"===t.position}(a,i)?n:r(a.parentNode)}(e):n}function wQ(e){const[t]=PQ(e,1);return null!=t?t:null}var EQ;function kQ(e){return!(!aQ||!e)&&e===document.scrollingElement}function TQ(e){const t={x:0,y:0},n=kQ(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(EQ||(EQ={}));function CQ(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:a}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:a,width:e.clientWidth,height:e.clientHeight}}function IQ(e,t){if(void 0===t&&(t=_Q),!e)return;const{top:n,left:r,bottom:a,right:i}=t(e);wQ(e)&&(a<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}class AQ{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function OQ(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var xQ,NQ;function RQ(e){e.preventDefault()}function DQ(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(xQ||(xQ={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}(NQ||(NQ={}));const HQ={start:[NQ.Space,NQ.Enter],cancel:[NQ.Esc],end:[NQ.Space,NQ.Enter]},FQ=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case NQ.Right:return{...n,x:n.x+25};case NQ.Left:return{...n,x:n.x-25};case NQ.Down:return{...n,y:n.y+25};case NQ.Up:return{...n,y:n.y-25}}};class GQ{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new AQ(uQ(t)),this.windowListeners=new AQ(oQ(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(xQ.Resize,this.handleCancel),this.windowListeners.add(xQ.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(xQ.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&IQ(n),t(yQ)}handleKeyDown(e){if(fQ(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:a=HQ,coordinateGetter:i=FQ,scrollBehavior:s="smooth"}=r,{code:o}=e;if(a.end.includes(o))return void this.handleEnd(e);if(a.cancel.includes(o))return void this.handleCancel(e);const{collisionRect:l}=n.current,c=l?{x:l.left,y:l.top}:yQ;this.referenceCoordinates||(this.referenceCoordinates=c);const u=i(e,{active:t,context:n.current,currentCoordinates:c});if(u){const t=hQ(u,c),r={x:0,y:0},{scrollableAncestors:a}=n.current;for(const n of a){const a=e.code,{isTop:i,isRight:o,isLeft:l,isBottom:c,maxScroll:p,minScroll:d}=TQ(n),h=CQ(n),f={x:Math.min(a===NQ.Right?h.right-h.width/2:h.right,Math.max(a===NQ.Right?h.left:h.left+h.width/2,u.x)),y:Math.min(a===NQ.Down?h.bottom-h.height/2:h.bottom,Math.max(a===NQ.Down?h.top:h.top+h.height/2,u.y))},m=a===NQ.Right&&!o||a===NQ.Left&&!l,S=a===NQ.Down&&!c||a===NQ.Up&&!i;if(m&&f.x!==u.x){const e=n.scrollLeft+t.x,i=a===NQ.Right&&e<=p.x||a===NQ.Left&&e>=d.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:s});r.x=i?n.scrollLeft-e:a===NQ.Right?n.scrollLeft-p.x:n.scrollLeft-d.x,r.x&&n.scrollBy({left:-r.x,behavior:s});break}if(S&&f.y!==u.y){const e=n.scrollTop+t.y,i=a===NQ.Down&&e<=p.y||a===NQ.Up&&e>=d.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:s});r.y=i?n.scrollTop-e:a===NQ.Down?n.scrollTop-p.y:n.scrollTop-d.y,r.y&&n.scrollBy({top:-r.y,behavior:s});break}}this.handleMove(e,dQ(hQ(u,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function UQ(e){return Boolean(e&&"distance"in e)}function LQ(e){return Boolean(e&&"delay"in e)}GQ.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=HQ,onActivation:a}=t,{active:i}=n;const{code:s}=e.nativeEvent;if(r.start.includes(s)){const t=i.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==a||a({event:e.nativeEvent}),!0)}return!1}}];class jQ{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=oQ(e);return e instanceof t?e:uQ(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:a}=e,{target:i}=a;this.props=e,this.events=t,this.document=uQ(i),this.documentListeners=new AQ(this.document),this.listeners=new AQ(n),this.windowListeners=new AQ(oQ(i)),this.initialCoordinates=null!=(r=mQ(a))?r:yQ,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(xQ.Resize,this.handleCancel),this.windowListeners.add(xQ.DragStart,RQ),this.windowListeners.add(xQ.VisibilityChange,this.handleCancel),this.windowListeners.add(xQ.ContextMenu,RQ),this.documentListeners.add(xQ.Keydown,this.handleKeydown),t){if(UQ(t))return;if(LQ(t))return void(this.timeoutId=setTimeout(this.handleStart,t.delay))}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(xQ.Click,DQ,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(xQ.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:a}=this,{onMove:i,options:{activationConstraint:s}}=a;if(!r)return;const o=null!=(t=mQ(e))?t:yQ,l=hQ(r,o);if(!n&&s){if(LQ(s))return OQ(l,s.tolerance)?this.handleCancel():void 0;if(UQ(s))return null!=s.tolerance&&OQ(l,s.tolerance)?this.handleCancel():OQ(l,s.distance)?this.handleStart():void 0}e.cancelable&&e.preventDefault(),i(o)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===NQ.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const MQ={move:{name:"pointermove"},end:{name:"pointerup"}};class BQ extends jQ{constructor(e){const{event:t}=e,n=uQ(t.target);super(e,MQ,n)}}BQ.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button)&&(null==r||r({event:n}),!0)}}];const KQ={move:{name:"mousemove"},end:{name:"mouseup"}};var qQ;!function(e){e[e.RightClick=2]="RightClick"}(qQ||(qQ={}));(class extends jQ{constructor(e){super(e,KQ,uQ(e.event.target))}}).activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==qQ.RightClick&&(null==r||r({event:n}),!0)}}];const VQ={move:{name:"touchmove"},end:{name:"touchend"}};var $Q,WQ;(class extends jQ{constructor(e){super(e,VQ)}static setup(){return window.addEventListener(VQ.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(VQ.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:a}=n;return!(a.length>1)&&(null==r||r({event:n}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}($Q||($Q={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(WQ||(WQ={}));EQ.Backward,EQ.Forward,EQ.Backward,EQ.Forward;var zQ,JQ;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(zQ||(zQ={})),function(e){e.Optimized="optimized"}(JQ||(JQ={}));zQ.WhileDragging,JQ.Optimized;Map;var XQ;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(XQ||(XQ={}));function QQ(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}NQ.Down,NQ.Right,NQ.Up,NQ.Left;var YQ=n(52),ZQ=n.n(YQ);var eY=function(e,t){};Pi("SHOW_TERMINAL_SHARING");const tY=Pi("SESSION_SHARING_ACTION_REQUIRED");var nY=n(228),rY=n.n(nY),aY=(n(229),n(130)),iY=n.n(aY);const sY=(e,t,n)=>{e.splice(t,0,n)};var oY;class lY{constructor(e){this[oY]=!0,this.root=e}split(e,t,n){return fe(this,r=>{var a;const[i,s]=null!==(a=r.findBranch(t=>t.id===e))&&void 0!==a?a:[];if(!i||i.children.length>1)return r;const o={id:t,children:[],layout:"single",size:.5};if(!s)return i.size=.5,r.root={id:iY()("split-"),layout:n.layout,size:1,children:"start"===n.position?[o,i]:[i,o]},r;if(s.layout!==n.layout){const e={id:i.id,layout:"single",children:[],size:.5};return i.id=iY()("split-"),i.layout=n.layout,i.children="start"===n.position?[o,e]:[e,o],r}const l=s.children.findIndex(e=>e.id===i.id);o.size=i.size/2,i.size/=2;const c="start"===n.position?l:l+1;return sY(s.children,c,o),r})}remove(e){return fe(this,t=>{var n;const[r,a]=null!==(n=t.findBranch(t=>t.id===e))&&void 0!==n?n:[];if(!a||r.children.length>=1)return t;if(a.children.length>2){ZQ()(a.children,e=>e.id===r.id);for(const e of a.children)e.size+=r.size/a.children.length;return t}const[i,s]=a.children,o=i.id===r.id?s:i;return a.id=o.id,a.layout=o.layout,a.children=o.children,t})}resize(e,t){return fe(this,n=>{var r;const[a]=null!==(r=n.findBranch(t=>t.id===e))&&void 0!==r?r:[];for(const[e,n]of a.children.entries())n.size=t[e]})}has(e){var t;const[n]=null!==(t=this.findBranch(t=>t.id===e))&&void 0!==t?t:[];return void 0!==n}single(){return 0===this.root.children.length?this.root:void 0}*leafs(){yield*function*e(t){if(0===t.children.length)yield t;else for(const n of t.children)yield*e(n)}(this.root)}numberOfLeafs(){return[...this.leafs()].length}toJSON(){return this.root}mapDepthFirst(e){return function e(t,{onLeaf:n,onSplit:r}){if("single"===t.layout)return n(t);return r(t,t=>e(t,{onLeaf:n,onSplit:r}))}(this.root,e)}findAdjacentLeaf(e,t){const n=Array.from(this.getBoundingNodeRects().entries()),r=n.find(([t])=>e(t));if(!r)return;const[a,i]=r,s=uY[t],o=rY()(n,([e,t])=>e===a||e.children.length>0?-1:s(i,t));return null==o?void 0:o[0]}getBoundingNodeRects(){const e=new Map;return e.set(this.root,{left:0,top:0,right:1,bottom:1}),cY(this.root,e),e}findBranch(e,t=this.root,n=[]){if(e(t))return[t,...n];if(0!==t.children.length)for(const r of t.children){const a=this.findBranch(e,r,[t,...n]);if(a)return a}}}oY=re;const cY=(e,t)=>{const n=t.get(e),{layout:r,children:a}=e;if(0===a.length)return;if(kN(n,e.id),"vertical"===r){let e=0;for(const r of a){const a=(n.bottom-n.top)*r.size;t.set(r,{left:n.left,right:n.right,top:e,bottom:a+e}),e+=a,cY(r,t)}return}let i=0;for(const e of a){const r=(n.right-n.left)*e.size;t.set(e,{top:n.top,bottom:n.bottom,left:i,right:i+r}),i+=r,cY(e,t)}},uY={upper:(e,t)=>e.top!==t.bottom?-1:pY({min:e.left,max:e.right},{min:t.left,max:t.right}),lower:(e,t)=>e.bottom!==t.top?-1:pY({min:e.left,max:e.right},{min:t.left,max:t.right}),left:(e,t)=>e.left!==t.right?-1:pY({min:e.top,max:e.bottom},{min:t.top,max:t.bottom}),right:(e,t)=>e.right!==t.left?-1:pY({min:e.top,max:e.bottom},{min:t.top,max:t.bottom})},pY=(e,t)=>t.min<=e.max&&e.min<=t.max?Math.min(e.max,t.max)-Math.max(e.min,t.min):0;function dY(e,t){if(1===e.length)return;const n=e.indexOf(t);return-1!==n?n===e.length-1?e[n-1]:e[n+1]:void 0}var hY=n(230),fY=n.n(hY);var mY=kP({[kw.toString()]:(e,{payload:t})=>({...e,displayedLeftPanelWidth:t}),[Ow.toString()]:fe((e,{payload:t})=>{e.splitViewBroadcastTabs.includes(t)?ZQ()(e.splitViewBroadcastTabs,e=>e===t):e.splitViewBroadcastTabs.push(t)}),[Ew.toString()]:(e,{payload:{windowId:t,query:n}})=>_Y(e,t,n),[Tw.toString()]:fe((e,{payload:t})=>{const{title:n,terminal:r,id:a}=t;e.all[r.id]=r,e.tabs.push({id:a,title:n,isEditingTitle:!1,hasUnreadOutput:!1,hasSessionSharingInputRequest:!1,windowId:r.windowId,showSplitViewHint:!1,layout:new lY({id:r.id,children:[],layout:"single",size:1})})}),[Cw.toString()]:fe((e,{payload:t})=>{const{title:n,id:r,terminalId:a,newTabIndex:i}=t,s=e.all[a];if(!s)return void eY(!1,"Terminal was not found");const o=wY(e,a);if(!o)return void eY(!1,"Terminal has no parent tab");if(o.layout.single())return void eY(!1,"Terminal is the only one in its parent tab");o.layout=$(o.layout).remove(a),sY(e.tabs,i,{id:r,title:n,isEditingTitle:!1,hasUnreadOutput:!1,hasSessionSharingInputRequest:!1,windowId:s.windowId,showSplitViewHint:!1,layout:new lY({id:a,children:[],layout:"single",size:1})});const l=o.layout.single();l&&(o.title=e.all[l.id].title)}),[Iw.toString()]:fe((e,{payload:t})=>{const n=e.all[t],r=wY(e,t);if(!n)return void eY(!1,"Terminal was not found");if(!r)return void eY(!1,"Terminal has no parent tab");const a=r.layout.single();if(n.isActive)if(a){const t=dY(e.tabs,r);if(t){const[n]=t.layout.leafs();e.all[n.id].isActive=!0}}else{const t=dY([...r.layout.leafs()].map(e=>e.id),n.id);t&&(e.all[t].isActive=!0)}if(a)ZQ()(e.tabs,e=>e.id===r.id);else{r.layout=$(r.layout).remove(t);const n=r.layout.single();n&&(r.title=e.all[n.id].title)}delete e.all[t],delete e.history[t]}),[Aw.toString()]:fe((e,{payload:t})=>{const{terminalId:n,targetTerminalId:r,position:a,layout:i}=t,s=e.all[n],o=e.all[r];if(!s||!o)return void eY(!1,"Terminal was not found");const l=wY(e,n);if(!l)return void eY(!1,"Source tab was not found");const c=e.tabs.find(e=>e.layout.has(r));c?s.windowId===c.windowId?c.layout.has(n)?eY(!1,"Terminal is already inside the given tab"):(l.layout.single()?ZQ()(e.tabs,e=>e.id===l.id):l.layout=$(l.layout).remove(n),c.layout=$(c.layout).split(r,n,{layout:i,position:a}),c.showSplitViewHint=!1):eY(!1,"Terminal and target tab must be in the same window"):eY(!1,"Target tab was not found")}),[xw.toString()]:(e,{payload:{windowId:t}})=>yY(e,t,!0),[Nw.toString()]:(e,{payload:t})=>yY(e,t,!1),[Rw.toString()]:fe((e,{payload:t})=>{e.all[t].isActive=!0;const n=wY(e,t);n&&(n.hasUnreadOutput=!1,n.hasSessionSharingInputRequest=!1);for(const n of Object.values(e.all))n.isExternal||n.id===t||(n.isActive=!1)}),[Dw.toString()]:fe((e,t)=>{const n=ED()(e.tabs,{id:t.payload});if(!n)return void eY(!1,"Tab was not found");const[{id:r}]=n.layout.leafs();n.hasUnreadOutput=!1,n.hasSessionSharingInputRequest=!1,e.all[r].isActive=!0;for(const t of Object.values(e.all))t.isExternal||t.id===r||(t.isActive=!1)}),[tY.toString()]:fe((e,t)=>{const n=ED()(e.tabs,{id:t.payload});if(!n)return void eY(!1,"Tab was not found");const r=n.layout.single();r&&!e.all[r.id].isActive&&(n.hasSessionSharingInputRequest=!0)}),[Fw.toString()]:fe((e,{payload:t})=>{for(const n of Object.values(e.all))n.windowId===t&&(n.isActive=!1)}),[Gw.toString()]:(e,{payload:t})=>bY(e,t,!0),[Hw.toString()]:(e,{payload:t})=>gY(e,t,Date.now()),[Pw.toString()]:fe((e,{payload:t})=>{!function(e,t,n){fY()(e,t)&&CM()(e,t,n)}(e,["all",t.terminalId,"disconnectTimestamp"],null)}),[ww.toString()]:(e,{payload:t})=>gY(e,t,null),[bw.toString()]:(e,{payload:{terminalId:t,connectionProcess:n}})=>vY(e,t,n),[Uw.toString()]:fe((e,{payload:t})=>{e.tabs=QQ(e.tabs,t.oldIndex,t.newIndex)}),[Mw.toString()]:fe((e,{payload:t})=>{const n=e.all[t.id];n?Object.assign(n,t.changes):eY(!1,"Terminal was not found")}),[Bw.toString()]:fe((e,{payload:t})=>{const n=e.tabs.find(e=>e.id===t.id);if(!n)return void eY(!1,"Tab was not found");Object.assign(n,t.changes);const r=n.layout.single();r&&t.changes.title&&(e.all[r.id].title=t.changes.title)}),[Kw.toString()]:fe((e,{payload:t})=>{const n=e.tabs.find(e=>e.id===t);n&&(n.showSplitViewHint=!0)}),[qw.toString()]:fe((e,{payload:t})=>{const n=e.tabs.find(e=>e.id===t);n&&(n.showSplitViewHint=!1)}),[Lw.toString()]:fe((e,{payload:t})=>{const n=wY(e,t.sourceTerminalId),r=wY(e,t.targetTerminalId);if(!n||!r)return void eY(!1,"Tab was not found");n.layout=$(n.layout).remove(t.sourceTerminalId);const a=n===r?n.layout:$(r.layout);r.layout=a.split(t.targetTerminalId,t.sourceTerminalId,{layout:t.layout,position:t.position})}),[jw.toString()]:fe((e,{payload:t})=>{const n=e.tabs.find(e=>e.id===t.tabId);n?n.layout=$(n.layout).resize(t.nodeId,t.sizes):eY(n,"Tab was not found")}),[zw.toString()]:(e,{payload:{windowId:t}})=>SY(e,t,!0),[Jw.toString()]:(e,{payload:{windowId:t}})=>SY(e,t,!1),[Xw.toString()]:fe((e,t)=>{const n=e.all[t.payload.terminalId];n?n.autocompleteState=t.payload.state:eY(n,"Terminal was not found")}),[Qw.toString()]:fe((e,t)=>{e.history[t.payload.terminalId]={commands:t.payload.commands,status:t.payload.status}})},{searchQuery:"",displayedLeftPanelWidth:0,all:{},tabs:[],history:{},splitViewBroadcastTabs:[]});const SY=(e,t,n)=>({...e,all:vS()(e.all,e=>PY(e,t)?{...e,isTerminalWithProFeatures:n,terminalWithProFeaturesOpenTimestamp:n?Date.now():null}:e)}),yY=(e,t,n)=>({...e,all:vS()(e.all,e=>PY(e,t)?{...e,isOpenSearch:n,terminalSearchOpenTimestamp:n?Date.now():null}:e)}),gY=(e,t,n)=>({...e,all:vS()(e.all,e=>e.id===t?{...e,disconnectTimestamp:n}:e)}),vY=(e,t,n)=>({...e,all:vS()(e.all,e=>e.id===t?{...e,connectionProcess:n}:e)}),_Y=(e,t,n)=>{var r;const a=null!==(r=Object.values(e.all).filter(e=>PY(e,t))[0])&&void 0!==r?r:null;if(!a)return e;const{id:i,isExternal:s}=a;return s?{...e,all:vS()(e.all,e=>e.id===i?{...e,searchQuery:n}:e)}:{...e,searchQuery:n}},bY=(e,t,n)=>({...e,all:vS()(e.all,e=>e.id===t?{...e,connectionEstablished:n}:e)});function PY(e,t){return e.windowId===t&&e.isActive&&e.connectionEstablished}const wY=(e,t)=>Object.values(e.tabs).find(e=>e.layout.has(t)),EY=CP("ADD_TRANSFER_STREAM"),kY=CP("REMOVE_TRANSFER_STREAM");const TY=ai({transferStreams:kP({[EY.toString()]:(e,{payload:{transferStreamId:t,transferStream:n}})=>{const r=new Map(e);return r.set(t,n),[...r]},[kY.toString()]:(e,{payload:t})=>{const n=new Map(e);return n.delete(t),[...n]}},[]),globalTerminalSettings:BX,snippetsPanel:JX,localTerminalPath:WX,localhost:VX,sorting:ZX,sftp:KJ,entities:GX,user:fX,purchases:IX,dialogs:bJ,sync:rQ,experiments:PJ,inAppMessages:yX,terminal:mY,promotion:RJ,history:AP,ui:kP({[Ns.toString()]:(e,{payload:{theme:t,selectedThemeValue:n}})=>({...e,theme:t,selectedThemeValue:n||t}),[Rs.toString()]:e=>({...e,isTerminalSharingVisible:!e.isTerminalSharingVisible}),[Hs.toString()]:(e,{payload:t})=>({...e,isPortForwardingWizardEnabled:t}),[Ds.toString()]:(e,{payload:t})=>({...e,isSettingsOpened:t}),[Fs.toString()]:e=>({...e,isCopyLinkInfoVisible:!1}),[Gs.toString()]:(e,{payload:t})=>({...e,isQuickConnectHighlighted:t}),[VA.toString()]:fe((e,{payload:t})=>{const{hosts:n=[],groups:r=[]}=t;0===n.length&&0===r.length||(e.isQuickConnectHighlighted=!1)}),[Us.toString()]:e=>({...e,isShowAppInterface:!0}),[Ls.toString()]:fe((e,{payload:t})=>{e.currentWelcomeFlowStepIndex=t}),[js.toString()]:fe((e,{payload:t})=>{e.gracePeriodUntilDate=t})},{theme:"light",selectedThemeValue:"auto",isTerminalSharingVisible:!0,isSettingsOpened:!1,isPortForwardingWizardEnabled:!0,isCopyLinkInfoVisible:!0,isQuickConnectHighlighted:!0,isShowAppInterface:!1,currentWelcomeFlowStepIndex:[],gracePeriodUntilDate:void 0}),navigation:lX,authorized:OX,layout:qX,hints:AX,snackbar:zJ,multiKey:aX,presenceEffect:kJ,avatars:NX,changedSftpFiles:FX,app:YJ,shortcuts:qJ,clouds:vJ,keyExchangePopups:_X,transactions:uX,customerExperience:Pc,windows:mX,identityAutocomplete:wJ,quickConnectSettings:cX,connectionFlow:nX,realtimeCollaboration:jJ,nativeTheme:EX,stats:nQ,onboardings:Sj,tags:nB}),CY=(e,t)=>{const n=Vi.match(t)?t.payload:e;return TY(n,t)};var IY=CY;const AY=he(e=>{if(null!=e.proTrialOnboarding){const t=e.proTrialOnboarding.userShouldSeeTrialOnboarding,n=e.proTrialOnboarding.successAnimationFinished,r=e.proTrialOnboarding.completedStepsOrder;e.onboardings={proTrialOnboarding:{userShouldSeeProTrialOnboarding:t,proTrialSuccessAnimationFinished:n,proTrialCompletedStepsOrder:r},teamOwnerOnboarding:{userShouldSeeTeamOnboarding:!1,teamSuccessAnimationFinished:!1,teamEntryAnimationFinished:!1,userClosedTeamOnboarding:!1,upgradeNowButtonHasActiveMode:!1},onboardingAttributes:[]}}delete e.promotion.shouldGroupSharingDailyTipBeShown,delete e.proTrialOnboarding}),OY=he(e=>{var t,n,r,a;if(null!=(null===(t=e.globalTerminalSettings)||void 0===t?void 0:t.autocompleteForShellHistory)&&(e.globalTerminalSettings.enableShellHistoryImport=e.globalTerminalSettings.autocompleteForShellHistory),null!=e.globalTerminalSettings){const t=0===(null===(n=e.controlCenter)||void 0===n?void 0:n.autocompleteDisabled),i=!0===(null===(r=e.globalTerminalSettings)||void 0===r?void 0:r.autocompleteForDirectories),s=!0===(null===(a=e.globalTerminalSettings)||void 0===a?void 0:a.autocompleteForPasswords),o=t&&s&&i;e.globalTerminalSettings.autocompleteDisabledUntilTimestamp=o?0:1}delete e.controlCenter,delete e.globalTerminalSettings.autocompleteForShellHistory,delete e.globalTerminalSettings.autocompleteForDirectories,delete e.globalTerminalSettings.autocompleteForPasswords}),xY=[e=>e,e=>{const{experiments:t={}}=e,n=t.teamPromotionDisabled?Date.now():null;return{...e,promotion:{...e.promotion,teamDismissTimestamp:n},experiments:{...e.experiments,teamPromotionDisabled:void 0}}},e=>{const{experiments:t}=e,{treatments:n={}}=t,{password_strength:r="Exp_1_Disabled",new_connection_flow_desktop:a="Exp_2_Disabled"}=n;return{...e,experiments:{...t,treatments:{...n,password_strength:"Exp_1_Disabled"===r?"disabled":r,new_connection_flow_desktop:"Exp_2_Disabled"===a?"disabled":a}}}},e=>{const t=FS.takeDarkMode();return null==t?e:Ox()({},e,{ui:{theme:t?"dark":"light"}})},e=>{var t,n,r;return Ox()({},e,{globalTerminalSettings:{colorScheme:null!==(t=DY(FS.takeColorScheme()))&&void 0!==t?t:"termius dark",fontFamily:null!==(n=FS.takeFontFamily())&&void 0!==n?n:"Source Code Pro",fontSize:null!==(r=FS.takeFontSize())&&void 0!==r?r:14}})},e=>{var t;const n=e;return(null===(t=n.ui)||void 0===t?void 0:t.layout)&&delete n.ui.layout,{...n}},({notifications:e,...t})=>t,e=>{const t=ZB()(e);return delete t.promotion.teamDismissTimestamp,t},e=>{const t=e;return t.sftp&&!t.sftp.fileTypeAppAssociations&&(t.sftp.fileTypeAppAssociations=[]),{...t}},e=>{var t;return(null===(t=e.ui)||void 0===t?void 0:t.activeTab)?e:Ox()({},e,{ui:{activeTab:{id:"",type:""},isTerminalSharingVisible:!0}})},e=>{var t;return(null===(t=e.ui)||void 0===t?void 0:t.isSettingsOpened)?e:Ox()({},e,{ui:{isSettingsOpened:!1}})},e=>{var t;return(null===(t=e.ui)||void 0===t?void 0:t.selectedThemeValue)?e:Ox()({},e,{ui:{selectedThemeValue:"light"}})},e=>{const t=e;return t.featureActivations&&delete t.featureActivations,{...t}},e=>{var t;const n=e;return(null===(t=n.promotion)||void 0===t?void 0:t.hasOwnProperty("shouldShareAllSnippetsPromoBeShown"))&&delete n.promotion.shouldShareAllSnippetsPromoBeShown,{...n}},e=>{var t;const n=e;return(null===(t=n.promotion)||void 0===t?void 0:t.hasOwnProperty("multikeyDismissTimestamp"))&&delete n.promotion.multikeyDismissTimestamp,{...n}},e=>{var t;const n=e;return(null===(t=n.liveTerminals)||void 0===t?void 0:t.hasOwnProperty("tryLiveTerminalsDismissTimestamp"))&&delete n.liveTerminals.tryLiveTerminalsDismissTimestamp,{...n}},e=>{const t=e;return t.liveTerminals&&delete t.liveTerminals,{...t}},e=>{var t,n;const r=e;return null!==(t=(n=r.ui).isPortForwardingWizardEnabled)&&void 0!==t||(n.isPortForwardingWizardEnabled=!0),{...r}},function(e){return{...e,user:{username:"",team:null,personal_subscription:null,team_subscription:null,student:null,trial:null,account:{id:null,user_id:null,is_email_confirmed:!0,need_to_update_subscription:!1,pro_mode:!1,two_factor_auth:!1,team:!1,updated_at:"",feature_toggles:null,registered_at:"",now:"",plan_type:"Unauthorized",user_type:"Unauthorized",full_name:"",company:"",address:"",country_code:"",current_period:null,authorized_features:null,expired_screen_type:null,tax_id:"",has_sso:!1},team_members:[],team_invites:[],hasAccessToSharedData:null,isTeamDataStale:!0}}},e=>{var t,n;const r=e;return null!==(t=(n=r.ui).isQuickConnectHighlighted)&&void 0!==t||(n.isQuickConnectHighlighted=!1),{...r}},(NY="autocompleteForPasswords",RY=!0,e=>Ox()({globalTerminalSettings:{[NY]:RY}},e)),he(e=>{var t;const n=null!==(t=e.ui.currentWelcomeFlowStepIndex)&&void 0!==t?t:[];e.ui.currentWelcomeFlowStepIndex=n.filter(e=>e<=10)}),he(e=>{var t,n;const r=null!==(n=null===(t=e.snippetsPanel)||void 0===t?void 0:t.interacted)&&void 0!==n&&n;e.snippetsPanel&&(e.snippetsPanel.screen=r?"snippets":"history",e.snippetsPanel.hintWasShown=FS.wasDeprecatedSnippetsPanelShortcutHintShown())}),he(e=>{var t,n,r,a;null!==(t=(r=e.user.account).team_display_name)&&void 0!==t||(r.team_display_name=""),null!==(n=(a=e.user.account).is_subscribed_to_marketing_emails)&&void 0!==n||(a.is_subscribed_to_marketing_emails=!1)}),e=>fJ(e,mJ),he(e=>{null!=e.controlCenter&&"autocompletePromoShownTimestamp"in e.controlCenter&&(e.controlCenter.autocompletePromoShownTimestamp=void 0),null!=e.promotion&&"passwordAutocompletion"in e.promotion&&(e.promotion.passwordAutocompletion=void 0)}),OY,AY];var NY,RY;function DY(e){try{return JSON.parse(e).name.toLowerCase()}catch(e){return}}const HY=it(({windows:e,...t})=>({...t}),e=>({...e,windows:[]}),{whitelist:["snippetsPanel"]}),FY=it(({isShowing:e})=>({isShowing:e}),e=>({...IP,...e}),{whitelist:["history"]}),GY=it(({isShowAppInterface:e,...t})=>({...t}),e=>({...e,isShowAppInterface:!1}),{whitelist:["ui"]}),UY=(...e)=>{0};var LY=n(2),jY=n.n(LY),MY=function(e){return null!=e&&"function"==typeof e.then};function BY(e){return(BY="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function KY(e,t){return!(!WY(e)||!WY(t))&&e.slice(0,t.length)===t}function qY(e,t,n){var r=n;try{var a=t.split("."),i=e;a.forEach((function(e){return i=i[e]})),void 0!==i&&(r=i)}catch(e){}return r}function VY(e,t){if(Array.isArray(e)&&"function"==typeof t)for(var n=0;n<e.length;n++)if(!0===t(e[n],n,e))return n;return-1}function $Y(e,t){var n;if(QY(e))for(var r=Object.keys(e),a=0;a<r.length&&!n;a++){var i=r[a];t(e[i],i,e)&&(n=e[i])}else if(Array.isArray(e))for(var s=0;s<e.length&&!n;s++){t(e[s],s,e)&&(n=e[s])}return n}function WY(e){return"string"==typeof e||e instanceof String}function zY(e){return e instanceof Number&&(e=e.valueOf()),"number"==typeof e&&(Number.isFinite?Number.isFinite(e):isFinite(e))}function JY(e){return e instanceof Number&&(e=e.valueOf()),e!=e}var XY=-1;function QY(e){return e&&"object"===BY(e)&&e.constructor===Object}function YY(e,t){var n=e;QY(t)&&Object.keys(t).forEach((function(e){var r=t[e];QY(r)&&(r=n[e]&&QY(n[e])?YY({},n[e],r):YY({},r)),void 0!==r&&(n[e]=r)}));for(var r=arguments.length,a=new Array(r>2?r-2:0),i=2;i<r;i++)a[i-2]=arguments[i];if(a&&a.length){var s=a.splice(0,1)[0];n=YY.apply(void 0,[n,s].concat(a))}return n}function ZY(e){var t={};return e.filter((function(e){return!Object.prototype.hasOwnProperty.call(t,e)&&(t[e]=!0)}))}function eZ(e){if(null==e)return"";if("string"==typeof e)return e;if(Array.isArray(e))return e.map((function(e){return WY(e)?e:""}))+"";var t=e+"";return"0"===t&&1/e===Number.NEGATIVE_INFINITY?"-0":t}function tZ(e){if("number"==typeof e)return e;if(QY(e)&&"function"==typeof e.valueOf){var t=e.valueOf();e=QY(t)?t+"":t}return"string"!=typeof e?0===e?e:+e:+(e=e.replace(/^\s+|\s+$/g,""))}function nZ(e,t){return Object.keys(e).forEach((function(n){return t(e[n],n,e)})),e}function rZ(e){return!0===e||!1===e}function aZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iZ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function sZ(e,t,n){return t&&iZ(e.prototype,t),n&&iZ(e,n),e}var oZ={DEBUG:"DEBUG",INFO:"INFO",WARN:"WARN",ERROR:"ERROR",NONE:"NONE"},lZ=oZ.DEBUG,cZ=function(e){lZ=e},uZ={showLevel:!0,displayAllErrors:!1},pZ=function(){function e(t,n){aZ(this,e),this.category=t,this.options=jY()({},uZ,n)}return sZ(e,[{key:"debug",value:function(e){this._shouldLog(oZ.DEBUG)&&this._log(oZ.DEBUG,e)}},{key:"info",value:function(e){this._shouldLog(oZ.INFO)&&this._log(oZ.INFO,e)}},{key:"warn",value:function(e){this._shouldLog(oZ.WARN)&&this._log(oZ.WARN,e)}},{key:"error",value:function(e){(this.options.displayAllErrors||this._shouldLog(oZ.ERROR))&&this._log(oZ.ERROR,e)}},{key:"_log",value:function(e,t){var n=this._generateLogMessage(e,t);console.log(n)}},{key:"_generateLogMessage",value:function(e,t){var n="";return this.options.showLevel&&(n+="["+e+"]"+(e===oZ.INFO||e===oZ.WARN?" ":"")+" "),this.category&&(n+=this.category+" => "),n+t}},{key:"_shouldLog",value:function(e){var t=lZ,n=Object.keys(oZ).map((function(e){return oZ[e]}));return n.indexOf(e)>=n.indexOf(t)}}]),e}();function dZ(){var e="__SPLITSOFTWARE__";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}}var hZ=function(e){return!!$Y(oZ,(function(t){return e===t}))},fZ={showLevel:!0,displayAllErrors:!1},mZ=!1;"undefined"!=typeof process&&void 0!==process.version&&process.version&&(mZ=!0);var SZ=String(mZ?process.env.SPLITIO_DEBUG:dZ()?localStorage.getItem("splitio_debug"):""),yZ=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new pZ(e,YY(t,fZ))},gZ=yZ("splitio-utils:logger"),vZ={enable:function(){cZ(oZ.DEBUG)},setLogLevel:function(e){hZ(e)?cZ(e):gZ.error("Invalid Log Level - No changes to the logs will be applied.")},disable:function(){cZ(oZ.NONE)},LogLevel:oZ};/^(enabled?|on)/i.test(SZ)?vZ.enable(oZ.DEBUG):hZ(SZ)?vZ.setLogLevel(SZ):vZ.disable();var _Z=yZ,bZ=_Z("",{displayAllErrors:!0}),PZ={};function wZ(e){PZ[e]&&PZ[e]--,0===PZ[e]&&delete PZ[e]}var EZ=_Z("");var kZ=_Z(""),TZ=/^[a-zA-Z0-9][-_.:a-zA-Z0-9]{0,79}$/;function CZ(e,t){if(null==e)kZ.error("".concat(t,": you passed a null or undefined event_type, event_type must be a non-empty string."));else if(WY(e))if(0===e.length)kZ.error("".concat(t,": you passed an empty event_type, event_type must be a non-empty string."));else{if(TZ.test(e))return e;kZ.error("".concat(t,': you passed "').concat(e,'", event_type must adhere to the regular expression /^[a-zA-Z0-9][-_.:a-zA-Z0-9]{0,79}$/g. This means an event_type must be alphanumeric, cannot be more than 80 characters long, and can only include a dash, underscore, period, or colon as separators of alphanumeric characters.'))}else kZ.error("".concat(t,": you passed an invalid event_type, event_type must be a non-empty string."));return!1}var IZ=_Z("");function AZ(e,t){return zY(e)||null==e?e:(IZ.error("".concat(t,": value must be a finite number.")),!1)}var OZ=_Z(""),xZ=0,NZ=2,RZ=4,DZ=8;function HZ(e,t){if(null==e)return{properties:null,size:1024};if(!QY(e))return OZ.error("".concat(t,": properties must be a plain object.")),{properties:!1,size:1024};var n=Object.keys(e),r=function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=e[t[r]];return n}(e),a={properties:r,size:1024};n.length>300&&OZ.warn("".concat(t,": Event has more than 300 properties. Some of them will be trimmed when processed."));for(var i=0;i<n.length;i++){a.size+=n[i].length*NZ;var s=r[n[i]],o=WY(s),l=zY(s),c=rZ(s),u=null===s;if(o||l||c||u||(r[n[i]]=null,s=null,u=!0,OZ.warn("".concat(t,": Property ").concat(n[i]," is of invalid type. Setting value to null."))),u?a.size+=xZ:l?a.size+=DZ:c?a.size+=RZ:o&&(a.size+=s.length*NZ),a.size>32768){OZ.error("".concat(t,": The maximum size allowed for the properties is 32768 bytes, which was exceeded. Event not queued.")),a.properties=!1;break}}return a}var FZ=_Z("");function GZ(e,t,n){if(null==e)return FZ.error("".concat(t,": you passed a null or undefined ").concat(n,", ").concat(n," must be a non-empty string.")),!1;if(zY(e))return FZ.warn("".concat(t,": ").concat(n,' "').concat(e,'" is not of type string, converting.')),eZ(e);if(WY(e)){if((e=e.trim()).length>0&&e.length<=250)return e;0===e.length?FZ.error("".concat(t,": you passed an empty string, ").concat(n," must be a non-empty string.")):e.length>250&&FZ.error("".concat(t,": ").concat(n," too long, ").concat(n," must be 250 characters or less."))}else FZ.error("".concat(t,": you passed an invalid ").concat(n," type, ").concat(n," must be a non-empty string."));return!1}function UZ(e,t){if(QY(e)){var n=GZ(e.matchingKey,t,"matchingKey"),r=GZ(e.bucketingKey,t,"bucketingKey");return n&&r?{matchingKey:n,bucketingKey:r}:(FZ.error("".concat(t,": Key must be an object with bucketingKey and matchingKey with valid string properties.")),!1)}return GZ(e,t,"key")}var LZ=_Z(""),jZ=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/;function MZ(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"split name";if(null==e)LZ.error("".concat(t,": you passed a null or undefined ").concat(n,", ").concat(n," must be a non-empty string."));else if(WY(e)){if(jZ.test(e)&&(LZ.warn("".concat(t,": ").concat(n,' "').concat(e,'" has extra whitespace, trimming.')),e=e.trim()),e.length>0)return e;LZ.error("".concat(t,": you passed an empty ").concat(n,", ").concat(n," must be a non-empty string."))}else LZ.error("".concat(t,": you passed an invalid ").concat(n,", ").concat(n," must be a non-empty string."));return!1}function BZ(e,t,n,r){return!e.get(e.constants.READY,!0)||"definition not found"!==n&&null!=n||(LZ.warn("".concat(r,': you passed "').concat(t,'" that does not exist in this environment, please double check what Splits exist in the web console.')),!1)}var KZ=_Z("");function qZ(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"split_names",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"split name";if(Array.isArray(e)&&e.length>0){var a=[];if(e.forEach((function(e){var n=MZ(e,t,r);n&&a.push(n)})),a.length)return ZY(a)}return KZ.error("".concat(t,": ").concat(n," must be a non-empty array.")),!1}var VZ="standalone",$Z="producer",WZ="consumer",zZ="control",JZ={treatment:zZ,config:null},XZ=[{type:"byName",maxLength:400,queryParam:"names="},{type:"byPrefix",maxLength:50,queryParam:"prefixes="}],QZ="DEBUG",YZ="OPTIMIZED",ZZ=_Z(""),e0=/[A-Z]/;function t0(e,t){if(null==e)ZZ.error("".concat(t,": you passed a null or undefined traffic_type_name, traffic_type_name must be a non-empty string."));else if(WY(e)){if(0!==e.length)return e0.test(e)&&(ZZ.warn("".concat(t,": traffic_type_name should be all lowercase - converting string to lowercase.")),e=e.toLowerCase()),e;ZZ.error("".concat(t,": you passed an empty traffic_type_name, traffic_type_name must be a non-empty string."))}else ZZ.error("".concat(t,": you passed an invalid traffic_type_name, traffic_type_name must be a non-empty string."));return!1}function n0(e,t){ZZ.warn("".concat(e,": Traffic Type ").concat(t," does not have any corresponding Splits in this environment, make sure you're tracking your events to a valid traffic type defined in the Split console."))}function r0(e,t,n){var r=t.get(t.constants.READY,!0),a=t.get(t.constants.SETTINGS),i=t.get(t.constants.STORAGE).splits;if(!r||"localhost"===a.mode)return!0;var s=i.trafficTypeExists(e);return MY(s)?s.then((function(t){return t||n0(n,e),t})):s||n0(n,e),s}var a0=_Z("",{displayAllErrors:!0});function i0(e){return!e.get(e.constants.DESTROYED,!0)||(a0.error("Client has already been destroyed - no calls possible."),!1)}function s0(e,t){return!(!e.get(e.constants.READY,!0)&&!e.get(e.constants.READY_FROM_CACHE,!0))||(a0.warn("".concat(t,": the SDK is not ready, results may be incorrect. Make sure to wait for SDK readiness before using this method.")),!1)}var o0=function(e){var t=e.conditions,n=$Y(t,(function(e){return"ROLLOUT"===e.conditionType}));return n||(n=t[0]),n?n.partitions.map((function(e){return e.treatment})):[]},l0=function(e){var t;try{t=JSON.parse(e)}catch(e){return null}return null==t?null:{name:t.name,trafficType:t.trafficTypeName||null,killed:t.killed,changeNumber:t.changeNumber||0,treatments:o0(t),configs:t.configurations||{}}},c0=function(e){var t=[];return e.forEach((function(e){var n=l0(e);null!=n&&t.push(n)})),t};var u0=function(e,t){var n=t.get(t.constants.STATUS_MANAGER);return jY()(Object.create(n),{split:function(n){var r=MZ(n,"split");if(!i0(t)||!s0(t,"split")||!r)return null;var a=e.getSplit(r);return MY(a)?a.then((function(e){return BZ(t,r,e,"split"),l0(e)})):(BZ(t,r,a,"split"),l0(a))},splits:function(){if(!i0(t)||!s0(t,"splits"))return[];var n=e.getAll();return MY(n)?n.then(c0):c0(n)},names:function(){return i0(t)&&s0(t,"names")?e.getKeys():[]}})};var p0=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=0;t<e.length;t++)for(var n=e[t].matcherGroup.matchers,r=0;r<n.length;r++)if("IN_SEGMENT"===n[r].matcherType)return!0;return!1};function d0(e,t,n){var r=this,a=this.getSplit(e);return(MY(a)?a:Promise.resolve(a)).then((function(a){if(a){var i=JSON.parse(a);if(!i.changeNumber||i.changeNumber<n){i.killed=!0,i.defaultTreatment=t,i.changeNumber=n;var s=JSON.stringify(i);return r.addSplit(e,s)}}return!1}))}var h0=function(){function e(){aZ(this,e),this.flush()}return sZ(e,[{key:"addSplit",value:function(e,t){var n=this.getSplit(e);if(n){var r=JSON.parse(n);if(r.trafficTypeName){var a=r.trafficTypeName;this.ttCache[a]--,this.ttCache[a]||delete this.ttCache[a]}p0(r.conditions)&&this.splitsWithSegmentsCount--}var i=JSON.parse(t);if(i){this.splitCache[e]=t;var s=i.trafficTypeName;return s&&(this.ttCache[s]||(this.ttCache[s]=0),this.ttCache[s]++),p0(i.conditions)&&this.splitsWithSegmentsCount++,!0}return!1}},{key:"addSplits",value:function(e){var t=this,n=[];return e.forEach((function(e){n.push(t.addSplit(e[0],e[1]))})),n}},{key:"removeSplit",value:function(e){var t=this.getSplit(e);if(t){delete this.splitCache[e];var n=JSON.parse(t),r=n.trafficTypeName;return r&&(this.ttCache[r]--,this.ttCache[r]||delete this.ttCache[r]),p0(n.conditions)&&this.splitsWithSegmentsCount--,1}return 0}},{key:"removeSplits",value:function(e){var t=this;return e.forEach((function(e){return t.removeSplit(e)})),e.length}},{key:"getSplit",value:function(e){return this.splitCache[e]}},{key:"setChangeNumber",value:function(e){return this.changeNumber=e,!0}},{key:"getChangeNumber",value:function(){return this.changeNumber}},{key:"getAll",value:function(){var e=this;return this.getKeys().map((function(t){return e.splitCache[t]}))}},{key:"getKeys",value:function(){return Object.keys(this.splitCache)}},{key:"trafficTypeExists",value:function(e){return zY(this.ttCache[e])&&this.ttCache[e]>0}},{key:"usesSegments",value:function(){return-1===this.getChangeNumber()||this.splitsWithSegmentsCount>0}},{key:"flush",value:function(){this.splitCache={},this.ttCache={},this.changeNumber=-1,this.splitsWithSegmentsCount=0}},{key:"fetchMany",value:function(e){var t=this,n={};return e.forEach((function(e){n[e]=t.splitCache[e]||null})),n}},{key:"checkCache",value:function(){return!1}}]),e}();h0.prototype.killLocally=d0;var f0=h0,m0=_Z("splitio-storage:localstorage"),S0=function(){function e(t,n,r){aZ(this,e),this.keys=t,this.splitFiltersValidation=r,this.__checkExpiration(n),this.__checkFilterQuery()}return sZ(e,[{key:"decrementCount",value:function(e){var t=tZ(localStorage.getItem(e))-1;t>0?localStorage.setItem(e,t):localStorage.removeItem(e)}},{key:"decrementCounts",value:function(e){try{if(e){if(e.trafficTypeName){var t=this.keys.buildTrafficTypeKey(e.trafficTypeName);this.decrementCount(t)}if(p0(e.conditions)){var n=this.keys.buildSplitsWithSegmentCountKey();this.decrementCount(n)}}}catch(e){m0.error(e)}}},{key:"incrementCounts",value:function(e){try{if(e){if(e.trafficTypeName){var t=this.keys.buildTrafficTypeKey(e.trafficTypeName);localStorage.setItem(t,tZ(localStorage.getItem(t))+1)}if(p0(e.conditions)){var n=this.keys.buildSplitsWithSegmentCountKey();localStorage.setItem(n,tZ(localStorage.getItem(n))+1)}}}catch(e){m0.error(e)}}},{key:"addSplit",value:function(e,t){try{var n=this.keys.buildSplitKey(e),r=localStorage.getItem(n),a=r?JSON.parse(r):null;this.decrementCounts(a),localStorage.setItem(n,t);var i=t?JSON.parse(t):null;return this.incrementCounts(i),!0}catch(e){return m0.error(e),!1}}},{key:"addSplits",value:function(e){var t=this,n=[];return e.forEach((function(e){n.push(t.addSplit(e[0],e[1]))})),n}},{key:"removeSplit",value:function(e){try{var t=this.getSplit(e);localStorage.removeItem(this.keys.buildSplitKey(e));var n=JSON.parse(t);return this.decrementCounts(n),1}catch(e){return m0.error(e),0}}},{key:"removeSplits",value:function(e){for(var t=0,n=e.length,r=0;t<n;t++)r+=this.removeSplit(e[t]);return r}},{key:"getSplit",value:function(e){return localStorage.getItem(this.keys.buildSplitKey(e))}},{key:"setChangeNumber",value:function(e){if(this.cacheReadyButNeedsToFlush&&(this.flush(),this.cacheReadyButNeedsToFlush=!1),this.updateNewFilter){m0.info("Split filter query was modified. Updating cache.");var t=this.keys.buildSplitsFilterQueryKey(),n=this.splitFiltersValidation.queryString;try{n?localStorage.setItem(t,n):localStorage.removeItem(t)}catch(e){m0.error(e)}this.updateNewFilter=!1}try{return localStorage.setItem(this.keys.buildSplitsTillKey(),e+""),localStorage.setItem(this.keys.buildLastUpdatedKey(),Date.now()+""),this.hasSync=!0,!0}catch(e){return m0.error(e),!1}}},{key:"getChangeNumber",value:function(){var e=localStorage.getItem(this.keys.buildSplitsTillKey());return null!==e?JY(e=parseInt(e,10))?-1:e:-1}},{key:"getAll",value:function(){for(var e=localStorage.length,t=[],n=0;n<e;){var r=localStorage.key(n),a=r&&localStorage.getItem(r);null!=r&&this.keys.isSplitKey(r)&&a&&t.push(a),n++}return t}},{key:"getKeys",value:function(){for(var e=localStorage.length,t=[],n=0;n<e;){var r=localStorage.key(n);null!=r&&this.keys.isSplitKey(r)&&t.push(this.keys.extractKey(r)),n++}return t}},{key:"trafficTypeExists",value:function(e){var t=tZ(localStorage.getItem(this.keys.buildTrafficTypeKey(e)));return zY(t)&&t>0}},{key:"usesSegments",value:function(){if(!this.hasSync)return!0;var e=localStorage.getItem(this.keys.buildSplitsWithSegmentCountKey()),t=null===e?0:tZ(e);return!zY(t)||t>0}},{key:"flush",value:function(){m0.info("Flushing Splits data from localStorage");for(var e=localStorage.length,t=[],n=0;n<e;n++){var r=localStorage.key(n);null!=r&&this.keys.isSplitCacheKey(r)&&t.push(r)}t.forEach((function(e){localStorage.removeItem(e)})),this.hasSync=!1}},{key:"fetchMany",value:function(e){var t=this,n={};return e.forEach((function(e){n[e]=localStorage.getItem(t.keys.buildSplitKey(e))})),n}},{key:"checkCache",value:function(){return this.getChangeNumber()>-1||this.cacheReadyButNeedsToFlush}},{key:"__checkExpiration",value:function(e){var t=localStorage.getItem(this.keys.buildLastUpdatedKey());null!==t&&!JY(t=parseInt(t,10))&&t<e&&this.flush()}},{key:"__checkFilterQuery",value:function(){var e=this,t=this.splitFiltersValidation,n=t.queryString,r=t.groupedFilters,a=this.keys.buildSplitsFilterQueryKey();if(localStorage.getItem(a)!==n)try{this.updateNewFilter=!0,this.checkCache()&&(localStorage.setItem(this.keys.buildSplitsTillKey(),"-1"),this.getKeys().forEach((function(t){n&&(r.byName.indexOf(t)>-1||r.byPrefix.some((function(e){return t.startsWith(e+"__")})))?e.cacheReadyButNeedsToFlush=!0:e.removeSplit(t)})))}catch(e){m0.error(e)}}}]),e}();S0.prototype.killLocally=d0;var y0=S0,g0=function(){function e(t){aZ(this,e),this.keys=t,this.flush()}return sZ(e,[{key:"flush",value:function(){this.segmentCache={}}},{key:"addToSegment",value:function(e){var t=this.keys.buildSegmentNameKey(e);return this.segmentCache[t]=!0,!0}},{key:"removeFromSegment",value:function(e){var t=this.keys.buildSegmentNameKey(e);return delete this.segmentCache[t],!0}},{key:"resetSegments",value:function(e){var t,n=this,r=!1,a=Object.keys(this.segmentCache);if(0===e.length&&a.length===e.length)return r;if(a.length!==e.length)r=!0,this.segmentCache={},e.forEach((function(e){n.addToSegment(e)}));else{for(t=0;t<e.length&&this.isInSegment(e[t]);t++);t<e.length&&(r=!0,this.segmentCache={},e.forEach((function(e){n.addToSegment(e)})))}return r}},{key:"isInSegment",value:function(e){var t=this.keys.buildSegmentNameKey(e);return!0===this.segmentCache[t]}},{key:"setChangeNumber",value:function(){return!0}},{key:"getChangeNumber",value:function(){return-1}},{key:"registerSegment",value:function(){return!1}},{key:"registerSegments",value:function(){return!1}},{key:"getRegisteredSegments",value:function(){return[]}}]),e}(),v0=_Z("splitio-storage:localstorage"),_0=function(){function e(t){aZ(this,e),this.keys=t}return sZ(e,[{key:"addToSegment",value:function(e){var t=this.keys.buildSegmentNameKey(e);try{return localStorage.setItem(t,"1"),!0}catch(e){return v0.error(e),!1}}},{key:"removeFromSegment",value:function(e){var t=this.keys.buildSegmentNameKey(e);try{return localStorage.removeItem(t),!0}catch(e){return v0.error(e),!1}}},{key:"resetSegments",value:function(e){var t,n=this,r=!1,a=Object.keys(localStorage).reduce((function(e,t){var r=n.keys.extractSegmentName(t);return r&&e.push(r),e}),[]);if(0===e.length&&a.length===e.length)return r;if(a.length!==e.length)r=!0,a.forEach((function(e){return n.removeFromSegment(e)})),e.forEach((function(e){return n.addToSegment(e)}));else{for(t=0;t<e.length&&-1!==a.indexOf(e[t]);t++);t<e.length&&(r=!0,a.forEach((function(e){return n.removeFromSegment(e)})),e.forEach((function(e){return n.addToSegment(e)})))}return r}},{key:"isInSegment",value:function(e){return"1"===localStorage.getItem(this.keys.buildSegmentNameKey(e))}},{key:"setChangeNumber",value:function(){return!0}},{key:"getChangeNumber",value:function(){return-1}},{key:"registerSegment",value:function(){return!1}},{key:"registerSegments",value:function(){return!1}},{key:"getRegisteredSegments",value:function(){return[]}},{key:"flush",value:function(){v0.info("Flushing MySegments data from localStorage"),this.resetSegments([])}}]),e}();function b0(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function P0(e){return function(e){if(Array.isArray(e))return b0(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return b0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b0(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var w0=function(){function e(){aZ(this,e),this.queue=[]}return sZ(e,[{key:"state",value:function(){return this.queue}},{key:"track",value:function(e){var t;return(t=this.queue).push.apply(t,P0(e)),this}},{key:"clear",value:function(){return this.queue.length=0,this}},{key:"toJSON",value:function(){return this.queue}},{key:"isEmpty",value:function(){return 0===this.queue.length}}]),e}();var E0=function(e,t){for(var n=0,r=e.length-1,a=Math.floor((r+n)/2),i=n,s=r;e[a]!==t&&n<r;)t<e[a]?r=a-1:t>e[a]&&(n=a+1),a=Math.floor((r+n)/2);return a<i?a=i:a>s&&(a=s),t<e[a]&&a>i?a-1:a}.bind(null,[1,1.5,2.25,3.38,5.06,7.59,11.39,17.09,25.63,38.44,57.67,86.5,129.75,194.62,291.93,437.89,656.84,985.26,1477.89,2216.84,3325.26,4987.89,7481.83]),k0=function(){function e(){aZ(this,e),this.clear()}return sZ(e,[{key:"clear",value:function(){return this.counters={},this}},{key:"state",value:function(){return this.counters}},{key:"track",value:function(e,t){return void 0===this.counters[e]&&(this.counters[e]=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),this.counters[e][E0(t)]++,this}},{key:"isEmpty",value:function(){return 0===Object.keys(this.counters).length}},{key:"toJSON",value:function(){return this.counters}}]),e}(),T0=function(){function e(){aZ(this,e),this.clear()}return sZ(e,[{key:"clear",value:function(){return this.counters={},this}},{key:"state",value:function(){return this.counters}},{key:"track",value:function(e){return void 0===this.counters[e]?this.counters[e]=1:this.counters[e]++,this.counters[e]}},{key:"isEmpty",value:function(){return 0===Object.keys(this.counters).length}},{key:"toJSON",value:function(){return this.counters}}]),e}(),C0=function(){function e(t){var n=this;aZ(this,e);var r=t.get(t.constants.SETTINGS),a=t.get(t.constants.EVENTS);this.onFullQueue=!1,this.maxQueue=r.scheduler.eventsQueueSize,this.queue=[],this.queueByteSize=0,MY(a)?a.then((function(e){n.onFullQueue=e.flushAndResetTimer,n._checkForFlush()})):"function"==typeof a.flushAndResetTimer&&(this.onFullQueue=a.flushAndResetTimer)}return sZ(e,[{key:"state",value:function(){return this.queue}},{key:"track",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.queueByteSize+=t,this.queue.push(e),this._checkForFlush(),!0}},{key:"clear",value:function(){return this.queue=[],this.queueByteSize=0,this}},{key:"toJSON",value:function(){return this.queue}},{key:"isEmpty",value:function(){return 0===this.queue.length}},{key:"_checkForFlush",value:function(){(this.queueByteSize>5242880||this.maxQueue>0&&this.queue.length>=this.maxQueue)&&this.onFullQueue&&this.onFullQueue()}}]),e}(),I0=/[^.]+$/,A0=/count\.([^/]+)$/,O0=/latency\.([^/]+)\.bucket\.([0-9]+)$/,x0=function(){function e(t){aZ(this,e),this.settings=t}return sZ(e,[{key:"buildSplitKey",value:function(e){return"".concat(this.settings.storage.prefix,".split.").concat(e)}},{key:"buildTrafficTypeKey",value:function(e){return"".concat(this.settings.storage.prefix,".trafficType.").concat(e)}},{key:"buildSplitsTillKey",value:function(){return"".concat(this.settings.storage.prefix,".splits.till")}},{key:"buildSplitsReady",value:function(){return"".concat(this.settings.storage.prefix,".splits.ready")}},{key:"isSplitKey",value:function(e){return KY(e,"".concat(this.settings.storage.prefix,".split."))}},{key:"buildSegmentNameKey",value:function(e){return"".concat(this.settings.storage.prefix,".segment.").concat(e)}},{key:"buildSegmentTillKey",value:function(e){return"".concat(this.settings.storage.prefix,".segment.").concat(e,".till")}},{key:"buildRegisteredSegmentsKey",value:function(){return"".concat(this.settings.storage.prefix,".segments.registered")}},{key:"buildSegmentsReady",value:function(){return"".concat(this.settings.storage.prefix,".segments.ready")}},{key:"buildVersionablePrefix",value:function(){return"".concat(this.settings.storage.prefix,"/").concat(this.settings.version,"/").concat(this.settings.runtime.ip)}},{key:"buildImpressionsKey",value:function(){return"".concat(this.settings.storage.prefix,".impressions")}},{key:"buildEventsKey",value:function(){return"".concat(this.settings.storage.prefix,".events")}},{key:"buildLatencyKeyPrefix",value:function(){return"".concat(this.buildVersionablePrefix(),"/latency")}},{key:"buildLatencyKey",value:function(e,t){return"".concat(this.buildLatencyKeyPrefix(),".").concat(e,".bucket.").concat(t)}},{key:"buildCountKey",value:function(e){return"".concat(this.buildVersionablePrefix(),"/count.").concat(e)}},{key:"buildGaugeKey",value:function(e){return"".concat(this.buildVersionablePrefix(),"/gauge.").concat(e)}},{key:"searchPatternForCountKeys",value:function(){return"".concat(this.buildVersionablePrefix(),"/count.*")}},{key:"searchPatternForSplitKeys",value:function(){return"".concat(this.settings.storage.prefix,".split.*")}},{key:"searchPatternForLatency",value:function(){return"".concat(this.buildLatencyKeyPrefix(),".*")}},{key:"extractKey",value:function(e){var t=e.match(I0);if(t&&t.length)return t[0];throw new Error("Invalid latency key provided")}},{key:"extractCounterName",value:function(e){var t=e.match(A0);if(t&&t.length)return t[1];throw new Error("Invalid counter key provided")}},{key:"extractLatencyMetricNameAndBucket",value:function(e){var t=e.match(O0);if(t&&t.length>2)return{metricName:t[1],bucketNumber:t[2]};throw new Error("Invalid counter key provided")}}]),e}();function N0(e,t){return(N0=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function R0(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&N0(e,t)}var D0=n(231),H0=n.n(D0);function F0(e,t){return!t||"object"!==H0()(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function G0(e){return(G0=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function U0(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return QY(n)?n[e]:t?void 0:n}}var L0=U0("matchingKey"),j0=U0("bucketingKey",!0);function M0(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=G0(e);if(t){var a=G0(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return F0(this,n)}}var B0=function(e){R0(n,e);var t=M0(n);function n(e){var r;return aZ(this,n),(r=t.call(this,e)).regexSplitCacheKey=new RegExp("^".concat(r.settings.storage.prefix,"\\.(splits?|trafficType)\\.")),r}return sZ(n,[{key:"buildSegmentNameKey",value:function(e){return"".concat(L0(this.settings.core.key),".").concat(this.settings.storage.prefix,".segment.").concat(e)}},{key:"extractSegmentName",value:function(e){var t="".concat(L0(this.settings.core.key),".").concat(this.settings.storage.prefix,".segment.");if(KY(e,t))return e.substr(t.length)}},{key:"buildSplitsWithSegmentCountKey",value:function(){return"".concat(this.settings.storage.prefix,".splits.usingSegments")}},{key:"buildLastUpdatedKey",value:function(){return"".concat(this.settings.storage.prefix,".splits.lastUpdated")}},{key:"isSplitCacheKey",value:function(e){return this.regexSplitCacheKey.test(e)}},{key:"buildSplitsFilterQueryKey",value:function(){return"".concat(this.settings.storage.prefix,".splits.filterQuery")}}]),n}(x0),K0=function(e){var t=e.get(e.constants.SETTINGS);switch(t.storage.type){case"MEMORY":var n=new x0(t);return{splits:new f0,segments:new g0(n),impressions:new w0,metrics:new k0,count:new T0,events:new C0(e),shared:function(e){var t=new x0(e);return{splits:this.splits,segments:new g0(t),impressions:this.impressions,metrics:this.metrics,count:this.count,events:this.events,destroy:function(){this.splits=new f0,this.segments.flush()}}},destroy:function(){this.splits.flush(),this.segments.flush(),this.impressions.clear(),this.metrics.clear(),this.count.clear(),this.events.clear()}};case"LOCALSTORAGE":var r=new B0(t),a=Date.now()-864e6;return{splits:new y0(r,a,t.sync.__splitFiltersValidation),segments:new _0(r),impressions:new w0,metrics:new k0,count:new T0,events:new C0(e),shared:function(e){var t=new B0(e);return{splits:this.splits,segments:new _0(t),impressions:this.impressions,metrics:this.metrics,count:this.count,events:this.events,destroy:function(){this.splits=new f0,this.segments=new g0(t)}}},destroy:function(){this.splits=new f0,this.segments=new g0(new x0(t)),this.impressions.clear(),this.metrics.clear(),this.count.clear(),this.events.clear()}};default:throw new Error("Unsupported storage type")}},q0="init::timeout",V0="init::ready",$0="init::cache-ready",W0="state::splits-arrived",z0="state::segments-arrived",J0="state::splits-cache-loaded",X0="state::update",Q0="state::check";var Y0=function(){var e=0,t=new BA.a;t.SDK_SPLITS_CACHE_LOADED=J0,t.SDK_SPLITS_ARRIVED=W0;var n=0;function r(t,n){var r=new BA.a,a=0,i=0;return r.on(Q0,(function(){14!==i&&e+a===6?(i=14,r.emit(V0)):14===i&&r.emit(X0)})),t.on(W0,(function(t){t||(e=2),r.emit(Q0)})),t.once(J0,(function(){setTimeout((function(){return r.emit($0)}),0)})),n.on(z0,(function(){a=4,r.emit(Q0)})),r}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,a=0,i=new BA.a;i.SDK_SEGMENTS_ARRIVED=z0;var s=r(t,i);return e>0&&(a=setTimeout((function(){s.emit(q0,"Split SDK emitted SDK_READY_TIMED_OUT event.")}),e),s.once(V0,(function(){return clearTimeout(a)}))),s.SDK_READY=V0,s.SDK_READY_FROM_CACHE=$0,s.SDK_UPDATE=X0,s.SDK_READY_TIMED_OUT=q0,n++,{splits:t,segments:i,gate:s,destroy:function(){i.removeAllListeners(),s.removeAllListeners(),clearTimeout(a),n>0&&n--,0===n&&t.removeAllListeners()}}}};var Z0={startup:{requestTimeoutBeforeReady:5,retriesOnFailureBeforeReady:1,readyTimeout:10,eventsFirstPushWindow:10}},e1=_Z("splitio-settings"),t1=function(e){var t=e.mode,n=e.storage,r=n.type,a=void 0===r?"MEMORY":r,i=n.options,s=void 0===i?{}:i,o=n.prefix;return o?o+=".SPLITIO":o="SPLITIO","localhost"===t?{type:"MEMORY",prefix:o}:(("MEMORY"!==a&&"LOCALSTORAGE"!==a||"LOCALSTORAGE"===a&&!dZ())&&(a="MEMORY",e1.warn("Invalid or unavailable storage. Fallbacking into MEMORY storage")),{type:a,options:s,prefix:o})},n1=_Z("splitio-settings"),r1=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.integrations;if(!Array.isArray(n)||0===n.length)return[];var r=n.filter((function(e){return e&&WY(e.type)&&t.indexOf(e.type)>-1})),a=n.length-r.length;return a&&n1.warn("".concat(a," integration ").concat(1===a?"item":"items"," at settings ").concat(1===a?"is":"are"," invalid: integration items must have a valid 'type' value")),r},a1=function(e){return r1(e,["GOOGLE_ANALYTICS_TO_SPLIT","SPLIT_TO_GOOGLE_ANALYTICS"])};var i1=function(e,t){if("localhost"===e)return"localhost";if(-1===[VZ,$Z,WZ].indexOf(t))throw Error("Invalid mode provided");return t},s1=_Z("splitio-settings");function o1(e,t){var n,r,a={validFilters:[],queryString:null,groupedFilters:{}};return e?t!==VZ?(s1.warn("split filters have been configured but will have no effect if mode is not '".concat(VZ,"', since synchronization is being deferred to an external tool.")),a):Array.isArray(e)&&0!==e.length?(XZ.forEach((function(e){a.groupedFilters[e.type]=[]})),a.validFilters=e.filter((function(e,t){return e&&(n=e.type,XZ.some((function(e){return e.type===n})))&&Array.isArray(e.values)?(a.groupedFilters[e.type]=a.groupedFilters[e.type].concat(e.values),!0):(s1.warn("split filter at position '".concat(t,"' is invalid. It must be an object with a valid filter type ('byName' or 'byPrefix') and a list of 'values'.")),!1);var n})),XZ.forEach((function(e){var t=e.type,n=e.maxLength;a.groupedFilters[t].length>0&&(a.groupedFilters[t]=function(e,t,n){var r=qZ(t,"settings","".concat(e," filter"),"".concat(e," filter value"));if(r){if(r.length>n)throw new Error("".concat(n," unique values can be specified at most for '").concat(e,"' filter. You passed ").concat(r.length,". Please consider reducing the amount or using other filter."));r.sort()}return r||[]}(t,a.groupedFilters[t],n))})),a.queryString=(n=a.groupedFilters,r=[],XZ.forEach((function(e){var t=e.type,a=e.queryParam,i=n[t];i.length>0&&r.push(a+i.map((function(e){return encodeURIComponent(e)})).join(","))})),r.length>0?"&"+r.join("&"):null),s1.debug("splits filtering criteria is '".concat(a.queryString,"'.")),a):(s1.warn("splitFilters configuration must be a non-empty array of filter objects."),a):a}var l1=_Z("splitio-settings");var c1=function(e){return e=e.toUpperCase(),-1===[QZ,YZ].indexOf(e)&&(l1.error("You passed an invalid impressionsMode, impressionsMode should be one of the following values: '".concat(QZ,"' or '").concat(YZ,"'. Defaulting to '").concat(YZ,"' mode.")),e=YZ),e},u1=/^\/(testImpressions|metrics|events)/,p1=/^\/auth/,d1=/^\/(sse|event-stream)/,h1={mode:VZ,core:{authorizationKey:void 0,key:void 0,trafficType:void 0,labelsEnabled:!0,IPAddressesEnabled:void 0},scheduler:{featuresRefreshRate:30,segmentsRefreshRate:60,metricsRefreshRate:120,impressionsRefreshRate:60,offlineRefreshRate:15,eventsPushRate:60,eventsQueueSize:500,pushRetryBackoffBase:1},urls:{sdk:"https://sdk.split.io/api",events:"https://events.split.io/api",auth:"https://auth.split.io/api",streaming:"https://streaming.split.io"},storage:{type:"MEMORY"},debug:void 0,impressionListener:void 0,version:"".concat("javascript","-").concat("10.15.9"),integrations:void 0,streamingEnabled:!0,sync:{splitFilters:void 0,impressionsMode:YZ}};function f1(e){return Math.round(1e3*e)}function m1(e){var t,n=YY({},h1,Z0,e);n.scheduler.featuresRefreshRate=f1(n.scheduler.featuresRefreshRate),n.scheduler.segmentsRefreshRate=f1(n.scheduler.segmentsRefreshRate),n.scheduler.metricsRefreshRate=f1(n.scheduler.metricsRefreshRate),n.scheduler.impressionsRefreshRate=f1(n.scheduler.impressionsRefreshRate),n.scheduler.offlineRefreshRate=f1(n.scheduler.offlineRefreshRate),n.scheduler.eventsPushRate=f1(n.scheduler.eventsPushRate),n.startup.requestTimeoutBeforeReady=f1(n.startup.requestTimeoutBeforeReady),n.startup.readyTimeout=f1(n.startup.readyTimeout),n.startup.eventsFirstPushWindow=f1(n.startup.eventsFirstPushWindow),n.mode=i1(n.core.authorizationKey,n.mode),n.storage=t1(n),"boolean"==typeof(t=n.debug)?t?vZ.enable():vZ.disable():"string"==typeof t&&vZ.setLogLevel(t),n.runtime=(n.core.IPAddressesEnabled,n.mode,{ip:!1,hostname:!1}),n.integrations=a1(n),!1!==n.streamingEnabled&&(n.streamingEnabled=!0,n.scheduler.pushRetryBackoffBase=f1(n.scheduler.pushRetryBackoffBase));var r=o1(n.sync.splitFilters,n.mode);return n.sync.splitFilters=r.validFilters,n.sync.__splitFiltersValidation=r,n.sync.impressionsMode=c1(n.sync.impressionsMode),n}var S1={url:function(e){return u1.test(e)?"".concat(this.urls.events).concat(e):p1.test(e)?"".concat(this.urls.auth).concat(e):d1.test(e)?"".concat(this.urls.streaming).concat(e):"".concat(this.urls.sdk).concat(e)},overrideKeyAndTT:function(e,t){return jY()(Object.create(S1),this,{core:jY()({},this.core,{key:e,trafficType:t})})}},y1=function(e){return jY()(Object.create(S1),m1(e))},g1={COLLECTORS:"metrics_collectors",DESTROYED:"is_destroyed",EVENTS:"events_publisher",HAS_TIMEDOUT:"has_timedout",INTEGRATIONS_MANAGER:"integrations_manager",MY_SEGMENTS_CHANGE_WORKER:"my_segments_change_worker",PRODUCER:"producer",READINESS:"readiness_gate",READY:"is_ready",READY_FROM_CACHE:"is_ready_from_cache",SETTINGS:"settings",STATUS_MANAGER:"status_manager",STORAGE:"storage",IMPRESSIONS_COUNTER:"impressions_counter"},v1=function(){function e(){aZ(this,e),this._map={},this.constants=g1}return sZ(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("string"==typeof e&&("string"!=typeof e||e.length)){var n=this._map[e];if(void 0!==n)return n;if(!t){var r,a=new Promise((function(e){return r=e}));return a.manualResolve=r,this._map[e]=a,a}}}},{key:"getAll",value:function(){return jY()({},this._map)}},{key:"put",value:function(e,t){var n=this;if("string"!=typeof e||"string"==typeof e&&!e.length||void 0===t)return!1;var r=this._map[e];return(void 0===r||"function"==typeof r.manualResolve)&&(MY(r)&&r.manualResolve&&r.manualResolve(t),MY(t)&&t.then((function(t){return n._map[e]=t,t})).catch((function(t){return n._map[e]=void 0,t})),this._map[e]=t,!0)}}]),e}(),_1=function(e){return QY(e)?{matchingKey:e.matchingKey,bucketingKey:e.bucketingKey}:{matchingKey:e,bucketingKey:e}};function b1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var P1="object"===("undefined"==typeof performance?"undefined":BY(performance))&&"function"==typeof performance.now?performance.now.bind(performance):Date.now;var w1,E1=function(){var e=P1();return function(){return Math.round(P1()-e)}},k1=new pZ("[TIME TRACKER]",{showLevel:!1}),T1={},C1={SDK_READY:"Getting ready - Split SDK",SDK_GET_TREATMENT:"SDK - Get Treatment",SDK_GET_TREATMENTS:"SDK - Get Treatments",SDK_GET_TREATMENT_WITH_CONFIG:"SDK - Get Treatment with config",SDK_GET_TREATMENTS_WITH_CONFIG:"SDK - Get Treatments with config",SPLITS_READY:"Getting ready - Splits",SEGMENTS_READY:"Getting ready - Segments",METRICS_PUSH:"Pushing - Metrics",IMPRESSIONS_PUSH:"Pushing - Impressions",EVENTS_PUSH:"Pushing - Events",MY_SEGMENTS_FETCH:"Fetching - My Segments",SEGMENTS_FETCH:"Fetching - Segments",SPLITS_FETCH:"Fetching - Splits"},I1=(b1(w1={},C1.SDK_READY,{collector:"client",method:"ready"}),b1(w1,C1.SDK_GET_TREATMENT,{collector:"client",method:"getTreatment"}),b1(w1,C1.SDK_GET_TREATMENTS,{collector:"client",method:"getTreatments"}),b1(w1,C1.SDK_GET_TREATMENT_WITH_CONFIG,{collector:"client",method:"getTreatmentWithConfig"}),b1(w1,C1.SDK_GET_TREATMENTS_WITH_CONFIG,{collector:"client",method:"getTreatmentsWithConfig"}),b1(w1,C1.MY_SEGMENTS_FETCH,{collector:"mySegments",method:"latency"}),b1(w1,C1.SEGMENTS_FETCH,{collector:"segmentChanges",method:"latency"}),b1(w1,C1.SPLITS_FETCH,{collector:"splitChanges",method:"latency"}),w1),A1=function(e,t){return"string"==typeof t?e+t:e},O1=function(e,t){var n=I1[e];return!(!n||!t)&&t[n.collector]},x1=function(e,t){var n=I1[e];return!(!n||!t)&&t[n.method]},N1={__attachToPromise:function(e,t,n,r){var a=this;return e.then((function(e){return a.stop(t,r),n&&n.count&&n.count(e.status),e})).catch((function(e){throw a.stop(t,r),n&&n.countException&&n.countException(),e}))},start:function(e,t,n){var r,a=XY++,i=O1(e,t);MY(n)?r=this.__attachToPromise(n,e,i,a):(r=this.stop.bind(this,e,a),I1[e]&&!i&&(r.setCollectorForTask=this.setCollectorForTask.bind(this,e,a)));var s=A1(e,a),o=x1(e,i);return T1[s]={cb:o,timer:E1()},r},setCollectorForTask:function(e,t,n){var r=O1(e,n);if(r){var a=A1(e,t);T1[a].cb=x1(e,r)}},stop:function(e,t){var n=A1(e,t),r=T1[n];if(r){var a=r.timer();return k1.debug("[".concat(e,"] took ").concat(a,"ms to finish.")),r.cb&&r.cb(a),delete T1[n],a}},TaskNames:C1},R1={ALL:1,SEGMENT:2,WHITELIST:3,EQUAL_TO:4,GREATER_THAN_OR_EQUAL_TO:5,LESS_THAN_OR_EQUAL_TO:6,BETWEEN:7,UNDEFINED:8,EQUAL_TO_SET:9,CONTAINS_ANY_OF_SET:10,CONTAINS_ALL_OF_SET:11,PART_OF_SET:12,ENDS_WITH:13,STARTS_WITH:14,CONTAINS_STRING:15,IN_SPLIT_TREATMENT:16,EQUAL_TO_BOOLEAN:17,MATCHES_STRING:18},D1={BOOLEAN:"BOOLEAN",STRING:"STRING",NUMBER:"NUMBER",SET:"SET",DATETIME:"DATETIME",NOT_SPECIFIED:"NOT_SPECIFIED"};var H1=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.segmentName},F1=function(){function e(){var t=this;aZ(this,e),this.__setData__=[];var n=arguments[0];Array.isArray(n)&&n.forEach((function(e){t.add(e)}))}return sZ(e,[{key:"clear",value:function(){this.__setData__.length&&(this.__setData__.length=0)}},{key:"add",value:function(e){return this.has(e)||this.__setData__.push(e),this}},{key:"delete",value:function(e){var t=this.__setData__.indexOf(e);return-1!==t&&(this.__setData__.splice(t,1),!0)}},{key:"has",value:function(e){return-1!==this.__setData__.indexOf(e)}},{key:"forEach",value:function(e){var t=arguments[1];if("function"!=typeof e)throw new TypeError(e+" is not a function");for(var n=0;n<this.__setData__.length;n++){var r=this.__setData__[n];e.call(t,r,r,this)}}},{key:"size",get:function(){return this.__setData__.length}}]),e}();function G1(e){return e instanceof F1?e.__setData__.slice():Array.from(e)}var U1="function"==typeof Array.from&&"function"==typeof Set&&Set.prototype&&Set.prototype.values?Set:F1;var L1=function(e){return new U1(e.whitelist)};var j1=function(e){return e.whitelist};var M1=function(e){return e.value};function B1(e){return new Date(e).setUTCHours(0,0,0,0)}function K1(e){return new Date(e).setUTCSeconds(0,0)}var q1=function(e){var t=e.map((function(e){var t=e.matcherType,n=e.negate,r=e.keySelector,a=e.userDefinedSegmentMatcherData,i=e.whitelistMatcherData,s=e.unaryNumericMatcherData,o=e.betweenMatcherData,l=e.dependencyMatcherData,c=e.booleanMatcherData,u=e.stringMatcherData,p=r&&r.attribute,d=function(e){switch(e){case"ALL_KEYS":return R1.ALL;case"IN_SEGMENT":return R1.SEGMENT;case"WHITELIST":return R1.WHITELIST;case"EQUAL_TO":return R1.EQUAL_TO;case"GREATER_THAN_OR_EQUAL_TO":return R1.GREATER_THAN_OR_EQUAL_TO;case"LESS_THAN_OR_EQUAL_TO":return R1.LESS_THAN_OR_EQUAL_TO;case"BETWEEN":return R1.BETWEEN;case"EQUAL_TO_SET":return R1.EQUAL_TO_SET;case"CONTAINS_ANY_OF_SET":return R1.CONTAINS_ANY_OF_SET;case"CONTAINS_ALL_OF_SET":return R1.CONTAINS_ALL_OF_SET;case"PART_OF_SET":return R1.PART_OF_SET;case"ENDS_WITH":return R1.ENDS_WITH;case"STARTS_WITH":return R1.STARTS_WITH;case"CONTAINS_STRING":return R1.CONTAINS_STRING;case"IN_SPLIT_TREATMENT":return R1.IN_SPLIT_TREATMENT;case"EQUAL_TO_BOOLEAN":return R1.EQUAL_TO_BOOLEAN;case"MATCHES_STRING":return R1.MATCHES_STRING;default:return R1.UNDEFINED}}(t),h=D1.STRING,f=void 0;return d===R1.SEGMENT?f=H1(a):d===R1.WHITELIST?f=L1(i):d===R1.EQUAL_TO?(f=M1(s),h=D1.NUMBER,"DATETIME"===s.dataType&&(f=B1(f),h=D1.DATETIME)):d===R1.GREATER_THAN_OR_EQUAL_TO||d===R1.LESS_THAN_OR_EQUAL_TO?(f=M1(s),h=D1.NUMBER,"DATETIME"===s.dataType&&(f=K1(f),h=D1.DATETIME)):d===R1.BETWEEN?(f=o,h=D1.NUMBER,"DATETIME"===o.dataType&&(f.start=K1(f.start),f.end=K1(f.end),h=D1.DATETIME)):d===R1.EQUAL_TO_SET||d===R1.CONTAINS_ANY_OF_SET||d===R1.CONTAINS_ALL_OF_SET||d===R1.PART_OF_SET?(f=j1(i),h=D1.SET):d===R1.STARTS_WITH||d===R1.ENDS_WITH||d===R1.CONTAINS_STRING?f=j1(i):d===R1.IN_SPLIT_TREATMENT?(f=l,h=D1.NOT_SPECIFIED):d===R1.EQUAL_TO_BOOLEAN?(h=D1.BOOLEAN,f=c):d===R1.MATCHES_STRING&&(f=u),{attribute:p,negate:n,type:d,value:f,dataType:h}}));return-1===VY(t,(function(e){return e.type===R1.UNDEFINED}))?t:[]};function V1(e,t){if(!(this instanceof V1))return new V1(e,t);if(100!==e[e.length-1])throw new RangeError("Provided invalid dataset as input");this._ranges=e,this._treatments=t}V1.parse=function(e){var t=e.reduce((function(e,t){var n=t.size,r=t.treatment;return e.ranges.push(e.inc+=n),e.treatments.push(r),e}),{inc:0,ranges:[],treatments:[]});return new V1(t.ranges,t.treatments)},V1.prototype.getTreatmentFor=function(e){if(e<0||e>100)throw new RangeError("Please provide a value between 0 and 100");var t=VY(this._ranges,(function(t){return e<=t}));return this._treatments[t]};var $1=V1,W1=_Z("splitio-engine:matcher");function z1(e){return W1.debug("[allMatcher] is always true"),null!=e}var J1=function(){return z1},X1=_Z("splitio-engine:matcher");var Q1=function(e,t){return function(n){var r=t.segments.isInSegment(e,n);return MY(r)?r.then((function(t){return X1.debug("[asyncSegmentMatcher] evaluated ".concat(e," / ").concat(n," => ").concat(r)),t})):X1.debug("[segmentMatcher] evaluated ".concat(e," / ").concat(n," => ").concat(r)),r}},Y1=_Z("splitio-engine:matcher");var Z1=function(e){return function(t){var n=e.has(t);return Y1.debug("[whitelistMatcher] evaluated ".concat(t," in [").concat(G1(e).join(","),"] => ").concat(n)),n}},e2=_Z("splitio-engine:matcher");var t2=function(e){return function(t){var n=t===e;return e2.debug("[equalToMatcher] is ".concat(t," equal to ").concat(e,"? ").concat(n)),n}},n2=_Z("splitio-engine:matcher");var r2=function(e){return function(t){var n=t>=e;return n2.debug("[greaterThanEqualMatcher] is ".concat(t," greater than ").concat(e,"? ").concat(n)),n}},a2=_Z("splitio-engine:matcher");var i2=function(e){return function(t){var n=t<=e;return a2.debug("[lessThanEqualMatcher] is ".concat(t," less than ").concat(e,"? ").concat(n)),n}},s2=_Z("splitio-engine:matcher");var o2=function(e){return function(t){var n=t>=e.start&&t<=e.end;return s2.debug("[betweenMatcher] is ".concat(t," between ").concat(e.start," and ").concat(e.end,"? ").concat(n)),n}},l2=_Z("splitio-engine:matcher");var c2=function(e){return function(t){for(var n=t.length===e.length,r=function(r){VY(e,(function(e){return e===t[r]}))<0&&(n=!1)},a=0;a<t.length&&n;a++)r(a);return l2.debug("[equalToSetMatcher] is ".concat(t," equal to set ").concat(e,"? ").concat(n)),n}},u2=_Z("splitio-engine:matcher");var p2=function(e){return function(t){var n=!0;if(t.length<e.length)n=!1;else for(var r=function(r){VY(t,(function(t){return t===e[r]}))<0&&(n=!1)},a=0;a<e.length&&n;a++)r(a);return u2.debug("[containsAllMatcher] ".concat(t," contains all elements of ").concat(e,"? ").concat(n)),n}},d2=_Z("splitio-engine:matcher");var h2=function(e){return function(t){for(var n=!1,r=function(r){VY(t,(function(t){return t===e[r]}))>=0&&(n=!0)},a=0;a<e.length&&!n;a++)r(a);return d2.debug("[containsAnyMatcher] ".concat(t," contains at least an element of ").concat(e,"? ").concat(n)),n}},f2=_Z("splitio-engine:matcher");var m2=function(e){return function(t){for(var n=t.length<=e.length,r=function(r){VY(e,(function(e){return e===t[r]}))<0&&(n=!1)},a=0;a<t.length&&n;a++)r(a);return f2.debug("[partOfMatcher] ".concat(t," is part of ").concat(e,"? ").concat(n)),n}},S2=_Z("splitio-engine:matcher");var y2=function(e){return function(t){var n=e.some((function(e){return KY(t,e)}));return S2.debug("[startsWithMatcher] ".concat(t," starts with ").concat(e,"? ").concat(n)),n}},g2=_Z("splitio-engine:matcher");var v2=function(e){return function(t){var n=e.some((function(e){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!(!WY(e)||!WY(t))&&(n&&(e=e.toLowerCase(),t=t.toLowerCase()),e.slice(e.length-t.length)===t)}(t,e)}));return g2.debug("[endsWithMatcher] ".concat(t," ends with ").concat(e,"? ").concat(n)),n}},_2=_Z("splitio-engine:matcher");var b2=function(e){return function(t){var n=e.some((function(e){return WY(t)&&t.indexOf(e)>-1}));return _2.debug("[containsStringMatcher] ".concat(t," contains ").concat(e,"? ").concat(n)),n}},P2=_Z("splitio-engine:matcher");function w2(e,t,n){var r=!1;return Array.isArray(t)&&(r=-1!==t.indexOf(e.treatment)),P2.debug('[dependencyMatcher] Parent split "'.concat(n,'" evaluated to "').concat(e.treatment,'" with label "').concat(e.label,'". ').concat(n," evaluated treatment is part of [").concat(t,"] ? ").concat(r,".")),r}var E2=function(e,t){var n=e.split,r=e.treatments;return function(e,a){var i=e.key,s=e.attributes;P2.debug('[dependencyMatcher] will evaluate parent split: "'.concat(n,'" with key: ').concat(JSON.stringify(i)," ").concat(s?"\n attributes: ".concat(JSON.stringify(s)):""));var o=a(i,n,s,t);return MY(o)?o.then((function(e){return w2(e,r,n)})):w2(o,r,n)}},k2=_Z("splitio-engine:matcher");var T2=function(e){return function(t){var n=e===t;return k2.debug("[booleanMatcher] ".concat(e," === ").concat(t)),n}},C2=_Z("splitio-engine:matcher");var I2=function(e){return function(t){var n;try{n=new RegExp(e)}catch(t){return C2.debug("[stringMatcher] ".concat(e," is an invalid regex")),!1}var r=n.test(t);return C2.debug("[stringMatcher] does ".concat(t," matches with ").concat(e,"? ").concat(r?"yes":"no")),r}};var A2=function(e,t){var n,r=e.type,a=e.value;return r===R1.ALL?n=J1(a):r===R1.SEGMENT?n=Q1(a,t):r===R1.WHITELIST?n=Z1(a):r===R1.EQUAL_TO?n=t2(a):r===R1.GREATER_THAN_OR_EQUAL_TO?n=r2(a):r===R1.LESS_THAN_OR_EQUAL_TO?n=i2(a):r===R1.BETWEEN?n=o2(a):r===R1.EQUAL_TO_SET?n=c2(a):r===R1.CONTAINS_ANY_OF_SET?n=h2(a):r===R1.CONTAINS_ALL_OF_SET?n=p2(a):r===R1.PART_OF_SET?n=m2(a):r===R1.STARTS_WITH?n=y2(a):r===R1.ENDS_WITH?n=v2(a):r===R1.CONTAINS_STRING?n=b2(a):r===R1.IN_SPLIT_TREATMENT?n=E2(a,t):r===R1.EQUAL_TO_BOOLEAN?n=T2(a):r===R1.MATCHES_STRING&&(n=I2(a)),n},O2=_Z("splitio-engine:sanitize"),x2=R1,N2=D1;function R2(e,t){return{key:e,attributes:t}}var D2=function(e,t,n,r){var a,i,s=function(e,t){switch(e){case x2.EQUAL_TO:return"DATETIME"===t?B1:void 0;case x2.GREATER_THAN_OR_EQUAL_TO:case x2.LESS_THAN_OR_EQUAL_TO:case x2.BETWEEN:return"DATETIME"===t?K1:void 0;case x2.IN_SPLIT_TREATMENT:return R2;default:return}}(e,n);switch(n){case N2.NUMBER:case N2.DATETIME:i=tZ(t),a=isNaN(i)?void 0:i;break;case N2.STRING:a=function(e){var t=e;QY(e)&&(t=e.matchingKey?e.matchingKey:void 0);var n=eZ(t);return n||void 0}(t);break;case N2.SET:a=function(e){var t=Array.isArray(e)?ZY(e.map((function(e){return e+""}))):[];return t.length?t:void 0}(t);break;case N2.BOOLEAN:a=function(e){if(!0===e||!1===e)return e;if("string"==typeof e){var t=e.toLocaleLowerCase();if("true"===t)return!0;if("false"===t)return!1}}(t);break;case N2.NOT_SPECIFIED:a=t;break;default:a=void 0}return s&&(a=s(a,r)),O2.debug("Attempted to sanitize [".concat(t,"] which should be of type [").concat(n,"]. \n Sanitized and processed value => [").concat(a instanceof Object?JSON.stringify(a):a,"]")),a},H2=_Z("splitio-engine:value");var F2=function(e,t,n){var r=t.attribute,a=function(e,t,n){var r=void 0;return t?n?(r=n[t],H2.debug("Extracted attribute [".concat(t,"], [").concat(r,"] will be used for matching."))):H2.warn("Defined attribute [".concat(t,"], no attributes received.")):r=e,r}(e,r,n),i=D2(t.type,a,t.dataType,n);return void 0!==i?i:void H2.warn("Value ".concat(a," ").concat(r?"for attribute ".concat(r," "):0,"doesn't match with expected type."))};function G2(e){return t=function(e){return(e=Number(e))<0?Math.ceil(e):Math.floor(e)}(e),n=Math.pow(2,32),t-Math.floor(t/n)*n;var t,n}function U2(e){var t=G2(e);return t>=Math.pow(2,31)?t-Math.pow(2,32):t}function L2(e,t){for(var n=0,r=0;r<e.length;r++)n=U2(U2(31*n)+e.charCodeAt(r));return U2(n^t)}var j2,M2,B2=function(e,t){return Math.abs(L2(e,t)%100)+1},K2=(j2={encodeUTF8:function(e,t){var n=null;for("number"==typeof e&&(n=e,e=function(){return null});null!==n||null!==(n=e());)n<128?t(127&n):n<2048?(t(n>>6&31|192),t(63&n|128)):n<65536?(t(n>>12&15|224),t(n>>6&63|128),t(63&n|128)):(t(n>>18&7|240),t(n>>12&63|128),t(n>>6&63|128),t(63&n|128)),n=null},UTF16toUTF8:function(e,t){for(var n,r=null;null!==(n=null!==r?r:e());)n>=55296&&n<=57343&&null!==(r=e())&&r>=56320&&r<=57343?(t(1024*(n-55296)+r-56320+65536),r=null):t(n);null!==r&&t(r)},encodeUTF16toUTF8:function(e,t){j2.UTF16toUTF8(e,(function(e){j2.encodeUTF8(e,t)}))}},M2=String.fromCharCode,j2.stringSource=function(e){if("string"!=typeof e)throw TypeError("Illegal argument: "+BY(e));var t=0;return function(){return t>=e.length?null:e.charCodeAt(t++)}},j2.stringDestination=function(){var e=[],t=[];return function(){if(0===arguments.length)return t.join("")+M2.apply(String,e);e.length+arguments.length>1024&&(t.push(M2.apply(String,e)),e.length=0),Array.prototype.push.apply(e,arguments)}},j2),q2=K2.stringSource,V2=K2.stringDestination,$2=K2.encodeUTF16toUTF8;
/*!
 * +----------------------------------------------------------------------------------+
 * | murmurHash3.js v3.0.0 (http://github.com/karanlyons/murmurHash3.js)              |
 * | A TypeScript/JavaScript implementation of MurmurHash3's hashing algorithms.      |
 * |----------------------------------------------------------------------------------|
 * | Copyright (c) 2012-2020 Karan Lyons. Freely distributable under the MIT license. |
 * +----------------------------------------------------------------------------------+
 */
function W2(e,t){return(65535&e)*t+(((e>>>16)*t&65535)<<16)}function z2(e,t){return e<<t|e>>>32-t}
/*!
 * +----------------------------------------------------------------------------------+
 * | murmurHash3.js v3.0.0 (http://github.com/karanlyons/murmurHash3.js)              |
 * | A TypeScript/JavaScript implementation of MurmurHash3's hashing algorithms.      |
 * |----------------------------------------------------------------------------------|
 * | Copyright (c) 2012-2020 Karan Lyons. Freely distributable under the MIT license. |
 * +----------------------------------------------------------------------------------+
 */
function J2(e,t){t=t||0;for(var n,r=(e=e||"").length%4,a=e.length-r,i=t,s=0,o=3432918353,l=461845907,c=0;c<a;c+=4)s=W2(s=255&e.charCodeAt(c)|(255&e.charCodeAt(c+1))<<8|(255&e.charCodeAt(c+2))<<16|(255&e.charCodeAt(c+3))<<24,o),s=W2(s=z2(s,15),l),i=W2(i=z2(i^=s,13),5)+3864292196;switch(s=0,r){case 3:s^=(255&e.charCodeAt(c+2))<<16;case 2:s^=(255&e.charCodeAt(c+1))<<8;case 1:s=W2(s^=255&e.charCodeAt(c),o),i^=s=W2(s=z2(s,15),l)}return i^=e.length,n=i,n=W2(n^=n>>>16,2246822507),n=W2(n^=n>>>13,3266489909),(i=n^=n>>>16)>>>0}function X2(e,t){return J2(($2(q2(e),n=V2()),n()),t>>>0);var n}var Q2={hash:X2,bucket:function(e,t){return Math.abs(X2(e,t)%100)+1}},Y2=_Z("splitio-engine");function Z2(e){return 2===e?Q2.bucket:B2}var e4={getTreatment:function(e,t,n,r){var a=Z2(r)(e,t),i=n.getTreatmentFor(a);return Y2.debug("[engine] using algo ".concat(2!==r?"legacy":"murmur"," bucket ").concat(a," for key ").concat(e," using seed ").concat(t," - treatment ").concat(i)),i},shouldApplyRollout:function(e,t,n,r){if(e<100&&Z2(r)(t,n)>e)return!1;return!0}};function t4(e,t,n,r,a,i){if(e)return{treatment:e4.getTreatment(t,n,r,i),label:a}}var n4=function(e,t,n,r){return function(a,i,s,o,l,c,u){if("ROLLOUT"===r&&!e4.shouldApplyRollout(s,a.bucketingKey,o,u))return{treatment:void 0,label:"not in split"};var p=e(a,c,l);return MY(p)?p.then((function(e){return t4(e,a.bucketingKey,i,t,n,u)})):t4(p,a.bucketingKey,i,t,n,u)}},r4=_Z("splitio-engine:combiner");function a4(){return r4.error("Invalid Split provided, no valid conditions found"),{treatment:zZ,label:"exception"}}function i4(e){for(var t=e.length,n=0;n<t;n++){var r=e[n];if(void 0!==r)return r4.debug("Treatment found: ".concat(r.treatment)),r}r4.debug("All predicates evaluated, no treatment found.")}var s4=function(e){return!Array.isArray(e)||Array.isArray(e)&&0===e.length?a4:function(t,n,r,a,i,s,o){var l=e.map((function(e){return e(t,n,r,a,o,i,s)}));return-1!==VY(l,MY)?Promise.all(l).then((function(e){return i4(e)})):i4(l)}},o4=_Z("splitio-engine:combiner");function l4(e){for(var t,n=0,r=e.length;n<r&&e[n];n++);return t=n===r,o4.debug("[andCombiner] evaluates to ".concat(t)),t}var c4=function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=e.map((function(e){return e.apply(void 0,n)}));return-1!==VY(a,MY)?Promise.all(a).then(l4):l4(a)}};var u4=function(e,t){for(var n=[],r=0;r<e.length;r++){var a=e[r],i=a.matcherGroup.matchers,s=a.partitions,o=a.label,l=a.conditionType,c=(i=q1(i)).map((function(e){var n=A2(e,t);return function(t,r,a){var i=F2(t,e,r),s=void 0!==i&&n(i,a);return MY(s)?s.then((function(t){return Boolean(t^e.negate)})):Boolean(s^e.negate)}}));if(0===c.length){n=[];break}n.push(n4(c4(c),$1.parse(s),o,l))}return s4(n)};function p4(e,t){return{treatment:qY(e,"treatment",t),label:qY(e,"label","default rule")}}function d4(e,t){if(!(this instanceof d4))return new d4(e,t);var n;this.baseInfo=e,this.evaluator=t,"string"!=typeof(n=this).baseInfo.defaultTreatment&&(n.baseInfo.defaultTreatment=zZ)}d4.parse=function(e,t){var n=e.conditions,r=u4(n,t);return new d4(jY()({},e),r)},d4.prototype.getKey=function(){return this.baseInfo.name},d4.prototype.getTreatment=function(e,t,n){var r,a,i,s=this.baseInfo,o=s.killed,l=s.seed,c=s.defaultTreatment,u=s.trafficAllocation,p=s.trafficAllocationSeed,d=s.algo;try{r=_1(e)}catch(e){return{treatment:zZ,label:"exception"}}if(this.isGarbage())a=zZ,i="archived";else{if(!o){var h=this.evaluator(r,l,u,p,t,d,n);return MY(h)?h.then((function(e){return p4(e,c)})):p4(h,c)}a=c,i="killed"}return{treatment:a,label:i}},d4.prototype.isGarbage=function(){return"ARCHIVED"===this.baseInfo.status},d4.prototype.getChangeNumber=function(){return this.baseInfo.changeNumber};var h4=d4,f4={treatment:zZ,label:"exception",config:null};function m4(e,t,n,r){var a;try{a=r.splits.getSplit(t)}catch(e){return Promise.resolve(f4)}return MY(a)?a.then((function(t){return y4(t,e,n,r)})):y4(a,e,n,r)}function S4(e,t,n,r){var a,i={};try{a=r.splits.fetchMany(t)}catch(e){return t.forEach((function(e){i[e]=f4})),Promise.resolve(i)}return MY(a)?a.then((function(a){return g4(t,a,e,n,r)})):g4(t,a,e,n,r)}function y4(e,t,n,r){var a={treatment:zZ,label:"definition not found",config:null};if(e){var i=JSON.parse(e),s=h4.parse(i,r);if(a=s.getTreatment(t,n,m4),MY(a))return a.then((function(e){return e.changeNumber=s.getChangeNumber(),e.config=qY(i,"configurations.".concat(e.treatment),null),e}));a.changeNumber=s.getChangeNumber(),a.config=qY(i,"configurations.".concat(a.treatment),null)}return a}function g4(e,t,n,r,a){var i={},s=[];return e.forEach((function(e){var o=y4(t[e],n,r,a);MY(o)?s.push(o.then((function(t){i[e]=t}))):i[e]=o})),s.length>0?Promise.all(s).then((function(){return i})):i}var v4=function e(t,n,r,a){aZ(this,e),this.list=a,this.value=t,n?(n.next=this,this.prev=n):this.prev=null,r?(r.prev=this,this.next=r):this.next=null},_4=function(){function e(){aZ(this,e),this.tail=null,this.head=null,this.length=0}return sZ(e,[{key:"removeNode",value:function(e){if(e&&e instanceof v4){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t}}},{key:"unshiftNode",value:function(e){if(e&&e instanceof v4&&e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}}},{key:"unshift",value:function(){for(var e=0,t=arguments.length;e<t;e++)this.head=new v4(arguments[e],null,this.head,this),this.tail||(this.tail=this.head),this.length++;return this.length}}]),e}(),b4="undefined"!=typeof Map?Map:function(){function e(){aZ(this,e)}return sZ(e,[{key:"set",value:function(e,t){this[e]=t}},{key:"get",value:function(e){return this[e]}},{key:"delete",value:function(e){delete this[e]}},{key:"size",get:function(){return Object.keys(this).length}}]),e}(),P4=function(){function e(t){aZ(this,e),this.maxLen=t||1,this.items=new b4,this.lru=new _4}return sZ(e,[{key:"get",value:function(e){var t=this.items.get(e);if(t&&t instanceof v4)return this.lru.unshiftNode(t),t.value.value}},{key:"set",value:function(e,t){var n=this.items.get(e);if(n){if(!(n instanceof v4))return!1;this.lru.unshiftNode(n),this.lru.head.value.value=t}else{if(this.lru.length===this.maxLen){var r=this.lru.tail;if(!r)return!1;this.items.delete(r.value.key),this.lru.removeNode(this.lru.tail)}this.lru.unshift({key:e,value:t}),this.items.set(e,this.lru.head)}return!0}}]),e}(),w4=function(){function e(t,n){aZ(this,e),this.cache=new P4(t),this.hasher=n}return sZ(e,[{key:"testAndSet",value:function(e){if(!e)return null;var t=this.hasher(e),n=this.cache.get(t);return this.cache.set(t,e.time),n}}]),e}();function E4(e){return e||"UNKNOWN"}function k4(e){return e?Q2.hash(function(e){return"".concat(E4(e.keyName),"\n    :").concat(E4(e.feature),"\n    :").concat(E4(e.treatment),"\n    :").concat(E4(e.label),"\n    :").concat(function(e){return e||0}(e.changeNumber))}(e)).toString():null}var T4=function(){return new w4(500,k4)};function C4(e){return e-e%36e5}var I4=_Z("splitio-client:impressions-tracker");function A4(e){return[$Z,VZ].indexOf(e.mode)>-1}var O4=function(e){var t=e.get(e.constants.STORAGE).impressions,n=e.get(e.constants.SETTINGS),r=n.impressionListener,a=e.get(e.constants.INTEGRATIONS_MANAGER,!0),i=n.runtime,s=i.ip,o=i.hostname,l=n.version,c=[],u=A4(n),p=function(e){return!!A4(e)&&e.sync.impressionsMode===YZ}(n),d=T4(),h=e.get(e.constants.IMPRESSIONS_COUNTER);return{queue:function(e,t){c.push({impression:e,attributes:t})},track:function(){var e=c.length,n=c.splice(0,e),i=[];n.forEach((function(e){var t=e.impression;u&&(t.pt=d.testAndSet(t));var n=Date.now();p&&h&&h.inc(t.feature,n,1),(!p||!t.pt||t.pt<C4(n))&&i.push(t)}));var f=t.track(i);if(MY(f)&&f.then((function(){I4.debug("Successfully stored ".concat(e," impression").concat(1===e?"":"s","."))})).catch((function(t){I4.error("Could not store impressions bulk with ".concat(e," impression").concat(1===e?"":"s",". Error: ").concat(t))})),r||a)for(var m=function(e){var t={impression:jY()({},n[e].impression),attributes:n[e].attributes,ip:s,hostname:o,sdkLanguageVersion:l};setTimeout((function(){a&&a.handleImpression(t);try{r&&r.logImpression(t)}catch(e){I4.error("Impression listener logImpression method threw: ".concat(e,"."))}}),0)},S=0;S<e;S++)m(S)}}},x4=_Z("splitio-client:event-tracker");var N4=function(e){var t=e.get(e.constants.STORAGE).events,n=e.get(e.constants.INTEGRATIONS_MANAGER,!0);function r(e,t){var r=e.eventTypeId,a=e.trafficTypeName,i=e.key,s=e.value,o=e.timestamp,l=e.properties,c='event of type "'.concat(r,'" for traffic type "').concat(a,'". Key: ').concat(i,". Value: ").concat(s,". Timestamp: ").concat(o,". ").concat(l?"With properties.":"With no properties.");return t?(x4.info("Successfully queued ".concat(c)),n&&setTimeout((function(){var t=jY()({},e);e.properties&&(t.properties=jY()({},e.properties)),n.handleEvent(t)}),0)):x4.warn("Failed to queue ".concat(c)),t}return{track:function(e,n){var a=t.track(e,n);return MY(a)?a.then(r.bind(null,e)):r(e,a)}}},R4=_Z("splitio-client");var D4=function(e){var t=e.get(e.constants.STORAGE),n=e.get(e.constants.COLLECTORS),r=O4(e),a=N4(e);function i(e,a,i){var s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=N1.TaskNames[s?"SDK_GET_TREATMENT_WITH_CONFIG":"SDK_GET_TREATMENT"],c=N1.start(l,n),u=m4(e,a,i,t),p=function(t){var n=o(t,a,e,i,s,"getTreatment".concat(s?"withConfig":""));return r.track(),c(),n};return MY(u)?u.then((function(e){return p(e)})):p(u)}function s(e,a,i){var s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=N1.TaskNames[s?"SDK_GET_TREATMENTS_WITH_CONFIG":"SDK_GET_TREATMENTS"],c=N1.start(l,n),u=function(t){var n={};return Object.keys(t).forEach((function(r){n[r]=o(t[r],r,e,i,s,"getTreatments".concat(s?"withConfig":""))})),r.track(),c(),n},p=S4(e,a,i,t);return MY(p)?p.then((function(e){return u(e)})):u(p)}function o(t,n,a,i,s,o){var l=e.get(e.constants.READY,!0)||e.get(e.constants.READY_FROM_CACHE,!0),c=L0(a),u=j0(a);l||(t={treatment:zZ,label:"not ready"});var p=t,d=p.treatment,h=p.label,f=p.changeNumber,m=p.config,S=void 0===m?null:m;return R4.info("Split: ".concat(n,". Key: ").concat(c,". Evaluation: ").concat(d,". Label: ").concat(h)),BZ(e,n,h,o)&&(R4.info("Queueing corresponding impression."),r.queue({feature:n,keyName:c,treatment:d,time:Date.now(),bucketingKey:u,label:h,changeNumber:f},i)),s?{treatment:d,config:S}:d}return{getTreatment:i,getTreatmentWithConfig:function(e,t,n){return i(e,t,n,!0)},getTreatments:s,getTreatmentsWithConfig:function(e,t,n){return s(e,t,n,!0)},track:function(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1024,l=L0(t),c=Date.now(),u={eventTypeId:r,trafficTypeName:n,value:i,timestamp:c,key:l,properties:s};return r0(n,e,"track"),a.track(u,o)}}};var H4=function(e,t,n){var r="REDIS"!==e.get(e.constants.SETTINGS).storage.type,a=D4(e),i=a.getTreatment,s=a.getTreatmentWithConfig,o=a.getTreatments,l=a.getTreatmentsWithConfig,c=a.track;function u(n,r,a,i){var s,o,l=KY(i,"getTreatments"),c=t?n:UZ(n,i),u=l?qZ(r,i):MZ(r,i),p=(o=i,QY(s=a)||null==s?s:(EZ.error("".concat(o,": attributes must be a plain object.")),!1)),d=i0(e);return s0(e,i),{valid:d&&c&&u&&!1!==p,key:c,splitOrSplits:u,attributes:p}}return a.getTreatment=function(e,t,n){var a=u(e,t,n,"getTreatment");return a.valid?i(a.key,a.splitOrSplits,a.attributes):r?zZ:Promise.resolve(zZ)},a.getTreatmentWithConfig=function(e,t,n){var a=u(e,t,n,"getTreatmentWithConfig");return a.valid?s(a.key,a.splitOrSplits,a.attributes):r?jY()({},JZ):Promise.resolve(jY()({},JZ))},a.getTreatments=function(e,t,n){var a=u(e,t,n,"getTreatments");if(a.valid)return o(a.key,a.splitOrSplits,a.attributes);var i={};return a.splitOrSplits&&a.splitOrSplits.forEach((function(e){return i[e]=zZ})),r?i:Promise.resolve(i)},a.getTreatmentsWithConfig=function(e,t,n){var a=u(e,t,n,"getTreatmentsWithConfig");if(a.valid)return l(a.key,a.splitOrSplits,a.attributes);var i={};return a.splitOrSplits&&a.splitOrSplits.forEach((function(e){return i[e]=jY()({},JZ)})),r?i:Promise.resolve(i)},a.track=function(a,i,s,o,l){var u=t?a:UZ(a,"track"),p=n?i:t0(i,"track"),d=CZ(s,"track"),h=AZ(o,"track"),f=HZ(l,"track"),m=f.properties,S=f.size;return i0(e)&&u&&p&&d&&!1!==h&&!1!==m?c(u,p,d,h,m,S):!r&&Promise.resolve(!1)},a};var F4=function(e){var t,n=e.get(e.constants.SETTINGS),r=qY(n,"core.key",void 0),a=qY(n,"core.trafficType",void 0);"localhost"===n.mode&&void 0===r?n.core.key="localhost_key":n.core.key=UZ(r,"Client instantiation");var i=[n.core.key];if(void 0!==a){var s=t0(a,"Client instantiation");n.core.trafficType=s,i.push(s)}var o=H4(e,!0,i.length>1);return o.isBrowserClient=!0,o.getTreatment=o.getTreatment.bind(o,n.core.key),o.getTreatmentWithConfig=o.getTreatmentWithConfig.bind(o,n.core.key),o.getTreatments=o.getTreatments.bind(o,n.core.key),o.getTreatmentsWithConfig=o.getTreatmentsWithConfig.bind(o,n.core.key),o.track=(t=o.track).bind.apply(t,[o].concat(i)),o};var G4=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];var i,s=!1;function o(){for(var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,r=arguments.length,a=new Array(r>1?r-1:0),l=1;l<r;l++)a[l-1]=arguments[l];s||(i=setTimeout((function(){e.apply(void 0,a.concat([o]))}),n))}function l(){clearTimeout(i),i=void 0,s=!0}return l.reset=function(){clearTimeout(i),i=void 0,o.apply(void 0,[t].concat(r))},e.apply(void 0,r.concat([o])),l},U4=function(e,t){return t=t||{},new Promise((function(n,r){var a=new XMLHttpRequest,i=[],s=[],o={},l=function(){return{ok:2==(a.status/100|0),statusText:a.statusText,status:a.status,url:a.responseURL,text:function(){return Promise.resolve(a.responseText)},json:function(){return Promise.resolve(a.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([a.response]))},clone:l,headers:{keys:function(){return i},entries:function(){return s},get:function(e){return o[e.toLowerCase()]},has:function(e){return e.toLowerCase()in o}}}};for(var c in a.open(t.method||"get",e,!0),a.onload=function(){a.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){i.push(t=t.toLowerCase()),s.push([t,n]),o[t]=o[t]?o[t]+","+n:n})),n(l())},a.onerror=r,a.withCredentials="include"==t.credentials,t.headers)a.setRequestHeader(c,t.headers[c]);a.send(t.body||null)}))};function L4(){return"function"==typeof fetch?fetch:U4}function j4(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function M4(e,t,n){return(M4=j4()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var a=new(Function.bind.apply(e,r));return n&&N0(a,n.prototype),a}).apply(null,arguments)}function B4(e){var t="function"==typeof Map?new Map:void 0;return(B4=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return M4(e,arguments,G0(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),N0(r,e)})(e)}function K4(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=G0(e);if(t){var a=G0(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return F0(this,n)}}var q4=function(e){R0(n,e);var t=K4(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Split Error";return aZ(this,n),(e=t.call(this,r)).message=r,e}return n}(B4(Error)),V4=function(e){R0(n,e);var t=K4(n);function n(e){return aZ(this,n),t.call(this,e||"Split Timeout Error")}return n}(q4),$4=function(e){R0(n,e);var t=K4(n);function n(e,r){var a;return aZ(this,n),(a=t.call(this,e||"Split Network Error")).statusCode=r,a}return n}(q4),W4=_Z("splitio-services:service");function z4(e){var t=e.url,n=L4();return n?n(t,e).then((function(e){return e.ok?e:e.text().then((function(t){return Promise.reject({response:e,message:t})}))})).catch((function(n){var r=n.response,a="";if(r)switch(r.status){case 404:a="Invalid API key or resource not found.";break;default:a=n.message}else a=n.message;throw r&&403===r.status||W4[e.logErrorsAsInfo?"info":"error"]("Response status is not OK. Status: ".concat(r?r.status:"NO_STATUS",". URL: ").concat(t,". Message: ").concat(a)),new $4(a,r&&r.status)})):Promise.reject(new $4("Global fetch API is not available."))}var J4=z4;var X4=function(e,t,n,r){var a=e.core.authorizationKey,i=e.version,s=e.runtime,o=s.ip,l=s.hostname,c={},u={};return c.Accept="application/json",c["Content-Type"]="application/json",c.Authorization="Bearer ".concat(a),c.SplitSDKVersion=i,o&&(c.SplitSDKMachineIP=o),l&&(c.SplitSDKMachineName=l),r&&jY()(c,r),jY()({headers:c,url:e.url(t)},u,n)},Q4={"Cache-Control":"no-cache"};function Y4(e){var t=[];return nZ(e.toJSON(),(function(e,n){t.push({name:n,delta:e})})),t}var Z4=z4;function e3(e,t){return X4(e,"/testImpressions/bulk",jY()({method:"POST"},t),{SplitSDKImpressionsMode:e.sync.impressionsMode===YZ?YZ:QZ})}function t3(e,t){return X4(e,"/testImpressions/count",jY()({method:"POST"},t))}function n3(e,t){var n=t.core.labelsEnabled,r=function(e,t){var n={};if(Array.isArray(e)&&WY(t))for(var r=0;r<e.length;r++){var a=e[r][t];WY(a)&&(n[a]||(n[a]=[]),n[a].push(e[r]))}return n}(e.state(),"feature"),a=[];return nZ(r,(function(e,t){a.push({f:t,i:e.map((function(e){var t={k:e.keyName,t:e.treatment,m:e.time,c:e.changeNumber};return n&&(t.r=e.label),e.bucketingKey&&(t.b=e.bucketingKey),e.pt&&(t.pt=e.pt),t}))})})),a}function r3(e){var t=[];if(0===(e?e.size():0))return t;for(var n=e.popAll(),r=Object.keys(n),a=0;a<r.length;a++){var i=r[a].split("::");if(2===i.length){var s=i[0],o=i[1],l={f:s,m:Number(o),rc:n[r[a]]};t.push(l)}}return t}function a3(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=G0(e);if(t){var a=G0(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return F0(this,n)}}var i3=function(){function e(t){aZ(this,e),this.storage=t,this.latency=this.latency.bind(this),this.count=this.count.bind(this),this.countException=this.countException.bind(this)}return sZ(e,[{key:"latency",value:function(e){this.storage.metrics.track("".concat(this.metricType,".time"),e)}},{key:"count",value:function(e){this.storage.count.track("".concat(this.metricType,".status.").concat(e))}},{key:"countException",value:function(){this.storage.count.track("".concat(this.metricType,".exception"))}}]),e}(),s3=function(e){R0(n,e);var t=a3(n);function n(e){var r;return aZ(this,n),(r=t.call(this,e)).metricType="segmentChangeFetcher",r}return n}(i3),o3=function(e){R0(n,e);var t=a3(n);function n(e){var r;return aZ(this,n),(r=t.call(this,e)).metricType="splitChangeFetcher",r}return n}(i3),l3=function(e){R0(n,e);var t=a3(n);function n(e){var r;return aZ(this,n),(r=t.call(this,e)).metricType="mySegmentsFetcher",r}return n}(i3),c3=function(){function e(t){aZ(this,e),this.storage=t,this.ready=this.ready.bind(this),this.getTreatment=this.getTreatment.bind(this),this.getTreatments=this.getTreatments.bind(this),this.getTreatmentWithConfig=this.getTreatmentWithConfig.bind(this),this.getTreatmentsWithConfig=this.getTreatmentsWithConfig.bind(this)}return sZ(e,[{key:"ready",value:function(e){this.storage.metrics.track("sdk.ready",e)}},{key:"getTreatment",value:function(e){this.storage.metrics.track("sdk.getTreatment",e)}},{key:"getTreatments",value:function(e){this.storage.metrics.track("sdk.getTreatments",e)}},{key:"getTreatmentWithConfig",value:function(e){this.storage.metrics.track("sdk.getTreatmentWithConfig",e)}},{key:"getTreatmentsWithConfig",value:function(e){this.storage.metrics.track("sdk.getTreatmentsWithConfig",e)}}]),e}(),u3=_Z("splitio-metrics"),p3=function(e){var t=0,n=e.get(e.constants.SETTINGS),r=e.get(e.constants.STORAGE),a=e.get(e.constants.IMPRESSIONS_COUNTER),i=n.sync.impressionsMode===YZ,s=function(){if(r.metrics.isEmpty()&&r.count.isEmpty())return Promise.resolve();u3.info("Pushing metrics");var e,t,a=N1.start(N1.TaskNames.METRICS_PUSH),i=r.metrics.isEmpty()?null:J4(function(e,t){return X4(e,"/metrics/times",jY()({method:"POST"},t,{logErrorsAsInfo:!0}))}(n,{body:JSON.stringify((e=r.metrics,t=[],nZ(e.toJSON(),(function(e,n){t.push({name:n,latencies:e})})),t))})).then((function(){return r.metrics.clear()})).catch((function(){return r.metrics.clear()})),s=r.count.isEmpty()?null:J4(function(e,t){return X4(e,"/metrics/counters",jY()({method:"POST"},t,{logErrorsAsInfo:!0}))}(n,{body:JSON.stringify(Y4(r.count))})).then((function(){return r.count.clear()})).catch((function(){return r.count.clear()}));return Promise.all([i,s]).then((function(e){return a(),e}))},o=function(){if(r.impressions.isEmpty())return Promise.resolve();var e=r.impressions.queue.length;u3.info("Pushing ".concat(e," impressions"));var a=N1.start(N1.TaskNames.IMPRESSIONS_PUSH);return Z4(e3(n,{body:JSON.stringify(n3(r.impressions,n))})).then((function(){t=0,r.impressions.clear()})).catch((function(n){t?(u3.warn("Droping ".concat(e," impressions after retry. Reason ").concat(n,".")),t=0,r.impressions.clear()):(t++,u3.warn("Failed to push ".concat(e," impressions, keeping data to retry on next iteration. Reason ").concat(n,".")))})).then((function(){return a()}))},l=function(){var e=r3(a),r=e.length;return 0===r?Promise.resolve():(u3.info("Pushing count of impressions for ".concat(r," features")),Z4(t3(n,{body:JSON.stringify({pf:e})})).then((function(){t=0})).catch((function(e){t?(u3.warn("Droping count of impressions for ".concat(r," features after retry. Reason ").concat(e,".")),t=0):(t++,u3.warn("Failed to push impressions count for ".concat(r," features, keeping data to retry on next iteration. Reason ").concat(e,".")))})))},c=!1,u=!1,p=!1;return{start:function(){c=G4((function(e){return o().then((function(){return e()}))}),n.scheduler.impressionsRefreshRate),u=G4((function(e){return s().then((function(){return e()}))}),n.scheduler.metricsRefreshRate),i&&(p=G4((function(e){return l().then((function(){return e()}))}),18e5))},flush:function(){return i&&l(),o()},stop:function(){c&&c(),u&&u(),p&&p()},collectors:{segmentChanges:new s3(r),splitChanges:new o3(r),mySegments:new l3(r),client:new c3(r)}}},d3=z4;function h3(e,t){return X4(e,"/events/bulk",jY()({method:"POST"},t))}var f3=_Z("splitio-events"),m3=function(e){var t=e.get(e.constants.SETTINGS),n=e.get(e.constants.STORAGE),r=function(){if(n.events.isEmpty())return Promise.resolve();f3.info("Pushing ".concat(n.events.state().length," queued events."));var e=N1.start(N1.TaskNames.EVENTS_PUSH),r=JSON.stringify(n.events.toJSON()),a=function(){return e()};return n.events.clear(),d3(h3(t,{body:r})).then(a).catch(a)},a=!1,i=!1,s=function(){return i=G4((function(e){return r().then((function(){return e()}))}),t.scheduler.eventsPushRate)};return{start:function(){t.startup.eventsFirstPushWindow>0?a=setTimeout(s,t.startup.eventsFirstPushWindow):s()},flush:function(){return r()},stop:function(){a&&clearTimeout(a),i&&i()},flushAndResetTimer:function(){return f3.info("Flushing events and reseting timer."),i&&i.reset(),r()}}},S3=z4;function y3(e){return"users="+encodeURIComponent(e)}function g3(e){var t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),n=decodeURIComponent(function(e){return atob(e)}(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""));return JSON.parse(n)}function v3(e,t){return S3(function(e,t){var n="/auth";if(t){var r=t.map(y3).join("&");r&&(n+="?"+r)}return X4(e,n)}(e,t)).then((function(e){return e.json()})).then((function(e){if(e.token){var t=g3(e.token);if("number"!=typeof t.iat||"number"!=typeof t.exp)throw new Error('token properties "issuedAt" (iat) or "expiration" (exp) are missing or invalid');var n=JSON.parse(t["x-ably-capability"]);return jY()({decodedToken:t,channels:n},e)}return e}))}function _3(){return"function"==typeof EventSource?EventSource:void 0}var b3=function(){function e(t,n,r){aZ(this,e),this.baseMillis=n||e.DEFAULT_BASE_MILLIS,this.maxMillis=r||e.DEFAULT_MAX_MILLIS,this.attempts=0,this.cb=t}return sZ(e,[{key:"scheduleCall",value:function(){var e=this,t=Math.min(this.baseMillis*Math.pow(2,this.attempts),this.maxMillis);return this.timeoutID&&clearTimeout(this.timeoutID),this.timeoutID=setTimeout((function(){e.cb()}),t),this.attempts++,t}},{key:"reset",value:function(){this.attempts=0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=0)}}]),e}();b3.DEFAULT_BASE_MILLIS=1e3,b3.DEFAULT_MAX_MILLIS=18e5;var P3=b3,w3=function(){function e(t,n){aZ(this,e),this.mySegmentsStorage=t,this.mySegmentsProducer=n,this.maxChangeNumber=0,this.segmentList=void 0,this.currentChangeNumber=-1,this.put=this.put.bind(this),this.__handleMySegmentUpdateCall=this.__handleMySegmentUpdateCall.bind(this),this.backoff=new P3(this.__handleMySegmentUpdateCall)}return sZ(e,[{key:"__handleMySegmentUpdateCall",value:function(){var e=this;if(this.maxChangeNumber>this.currentChangeNumber){this.handleNewEvent=!1;var t=this.maxChangeNumber;this.mySegmentsProducer.synchronizeMySegments(this.segmentList,!0).then((function(n){!1!==n&&(e.currentChangeNumber=Math.max(e.currentChangeNumber,t)),e.handleNewEvent?e.__handleMySegmentUpdateCall():e.backoff.scheduleCall()}))}}},{key:"put",value:function(e,t){e<=this.currentChangeNumber||e<=this.maxChangeNumber||(this.maxChangeNumber=e,this.handleNewEvent=!0,this.backoff.reset(),this.segmentList=t,this.mySegmentsProducer.isSynchronizingMySegments()||this.__handleMySegmentUpdateCall())}}]),e}(),E3=function(){function e(t,n,r){aZ(this,e),this.splitStorage=t,this.splitProducer=n,this.maxChangeNumber=0,this.splitsEventEmitter=r,this.put=this.put.bind(this),this.killSplit=this.killSplit.bind(this),this.__handleSplitUpdateCall=this.__handleSplitUpdateCall.bind(this),this.backoff=new P3(this.__handleSplitUpdateCall)}return sZ(e,[{key:"__handleSplitUpdateCall",value:function(){var e=this;this.maxChangeNumber>this.splitStorage.getChangeNumber()&&(this.handleNewEvent=!1,this.splitProducer.synchronizeSplits(!0).then((function(){e.handleNewEvent?e.__handleSplitUpdateCall():(e.splitProducer.synchronizeSegment&&e.splitProducer.synchronizeSegment(void 0,!1,!0),e.backoff.scheduleCall())})))}},{key:"put",value:function(e){e<=this.splitStorage.getChangeNumber()||e<=this.maxChangeNumber||(this.maxChangeNumber=e,this.handleNewEvent=!0,this.backoff.reset(),this.splitProducer.isSynchronizingSplits()||this.__handleSplitUpdateCall())}},{key:"killSplit",value:function(e,t,n){var r=this;this.splitStorage.killLocally(t,n,e).then((function(t){t&&r.splitsEventEmitter.emit(r.splitsEventEmitter.SDK_SPLITS_ARRIVED,!0),r.put(e)}))}}]),e}(),k3=/^control_/;var T3=function(){function e(t,n,r){aZ(this,e),this.EventSource=t,this.streamingUrl=n.url("/sse"),this.reopen=this.reopen.bind(this),this.useHeaders=r,this.headers=function(e){var t={SplitSDKClientKey:e.core.authorizationKey.slice(-4),SplitSDKVersion:e.version},n=e.runtime,r=n.ip,a=n.hostname;return r&&(t.SplitSDKMachineIP=r),a&&(t.SplitSDKMachineName=a),t}(n)}return sZ(e,[{key:"setEventHandler",value:function(e){this.handler=e}},{key:"open",value:function(e){this.close(),this.authToken=e;var t=Object.keys(e.channels).map((function(e){var t=k3.test(e)?"[?occupancy=metrics.publishers]":"";return encodeURIComponent(t+e)})).join(","),n="".concat(this.streamingUrl,"?channels=").concat(t,"&accessToken=").concat(e.token,"&v=").concat("1.1","&heartbeats=true");this.connection=new this.EventSource(this.useHeaders?n:n+"&SplitSDKVersion=".concat(this.headers.SplitSDKVersion,"&SplitSDKClientKey=").concat(this.headers.SplitSDKClientKey),this.useHeaders?{headers:this.headers}:void 0),this.handler&&(this.connection.onopen=this.handler.handleOpen,this.connection.onmessage=this.handler.handleMessage,this.connection.onerror=this.handler.handleError)}},{key:"close",value:function(){this.connection&&this.connection.close()}},{key:"reopen",value:function(){this.open(this.authToken)}}],[{key:"getInstance",value:function(t,n){var r=_3();if(r)return new e(r,t,n)}}]),e}(),C3="STREAMING_DISABLED",I3="STREAMING_PAUSED",A3="STREAMING_RESUMED";var O3=[/control_pri$/,/control_sec$/];var x3=_Z("splitio-sync:sse-handler");function N3(e){var t,n,r,a,i=(t=e,n=O3.map((function(e){return{regex:e,hasPublishers:!0,oTime:-1,cTime:-1}})),r=!0,a=!0,{handleOpen:function(){t.emit("PUSH_SUBSYSTEM_UP")},isStreamingUp:function(){return a&&r},handleOccupancyEvent:function(e,i,s){for(var o=0;o<n.length;o++){var l=n[o];if(l.regex.test(i)){if(s>l.oTime){l.oTime=s,l.hasPublishers=0!==e;var c=n.some((function(e){return e.hasPublishers}));a&&(!c&&r?t.emit("PUSH_SUBSYSTEM_DOWN"):c&&!r&&t.emit("PUSH_SUBSYSTEM_UP")),r=c}return}}},handleControlEvent:function(e,i,s){for(var o=0;o<n.length;o++){var l=n[o];if(l.regex.test(i))return void(s>l.cTime&&(l.cTime=s,e===C3?t.emit("PUSH_NONRETRYABLE_ERROR"):r&&(e===I3&&a?t.emit("PUSH_SUBSYSTEM_DOWN"):e!==A3||a||t.emit("PUSH_SUBSYSTEM_UP")),a=e===A3))}}});return{handleOpen:function(){i.handleOpen()},handleError:function(t){var n=t;try{n=function(e){return WY(e.data)&&(e.parsedData=JSON.parse(e.data)),e}(t)}catch(e){x3.warn("Error parsing SSE error notification: ".concat(e))}var r=n.parsedData&&n.parsedData.message;x3.error("Fail to connect to streaming".concat(r?', with error message: "'.concat(r,'"'):"")),!function(e){if(e.parsedData&&e.parsedData.code){var t=e.parsedData.code;if(40140<=t&&t<=40149)return!0;if(4e4<=t&&t<=49999)return!1}return!0}(n)?e.emit("PUSH_NONRETRYABLE_ERROR"):e.emit("PUSH_RETRYABLE_ERROR")},handleMessage:function(t){var n;try{n=function(e){var t=JSON.parse(e.data);return t.parsedData=JSON.parse(t.data),t.name&&"[meta]occupancy"===t.name&&(t.parsedData.type="OCCUPANCY"),t}(t)}catch(e){return void x3.warn("Error parsing new SSE message notification: ".concat(e))}var r=n,a=r.parsedData,s=r.data,o=r.channel,l=r.timestamp;if(x3.debug("New SSE message received, with data: ".concat(s,".")),i.isStreamingUp()||"OCCUPANCY"===a.type||"CONTROL"===a.type)switch(a.type){case"SPLIT_UPDATE":e.emit("SPLIT_UPDATE",a.changeNumber);break;case"SEGMENT_UPDATE":e.emit("SEGMENT_UPDATE",a.changeNumber,a.segmentName);break;case"MY_SEGMENTS_UPDATE":e.emit("MY_SEGMENTS_UPDATE",a,o);break;case"SPLIT_KILL":e.emit("SPLIT_KILL",a.changeNumber,a.splitName,a.defaultTreatment);break;case"OCCUPANCY":i.handleOccupancyEvent(a.metrics.publishers,o,l);break;case"CONTROL":i.handleControlEvent(a.controlType,o,l)}}}}function R3(e){return function(e){return btoa(e)}(Q2.hash(e,0).toString())}var D3=_Z("splitio-sync:push-manager");function H3(e,t){if(n=D3,_3()?"function"==typeof atob&&"function"==typeof btoa||(n.warn('"atob" and "btoa" functions for Base64 encoding are not available. Falling back to polling mode.'),0):(n.warn("EventSource API is not available. Falling back to polling mode."),0)){var n,r=new BA.a,a=e.get(e.constants.READINESS).splits,i=e.get(e.constants.SETTINGS),s=e.get(e.constants.STORAGE),o=T3.getInstance(i,!t),l=N3(r);o.setEventHandler(l);var c,u,p={},d=[],h=!1,f=new P3(g,i.scheduler.pushRetryBackoffBase);r.on("PUSH_SUBSYSTEM_DOWN",_),r.on("PUSH_SUBSYSTEM_UP",(function(){f.reset()})),r.on("PUSH_NONRETRYABLE_ERROR",(function(){v(),r.emit("PUSH_SUBSYSTEM_DOWN")})),r.on("PUSH_RETRYABLE_ERROR",(function(){o.close();var e=f.scheduleCall();D3.info("Attempting to reconnect in ".concat(e/1e3," seconds.")),r.emit("PUSH_SUBSYSTEM_DOWN")}));var m=e.get(e.constants.PRODUCER),S=new E3(s.splits,m,a);if(d.push(S),r.on("SPLIT_KILL",S.killSplit),r.on("SPLIT_UPDATE",S.put),t)r.on("MY_SEGMENTS_UPDATE",(function(n,r){var a=r.split("_")[2],i=p[a];if(i&&t[i]){var s=t[i].get(e.constants.MY_SEGMENTS_CHANGE_WORKER,!0);s&&s.put(n.changeNumber,n.includesPayload?n.segmentList?n.segmentList:[]:void 0)}}));else{var y=new w3(s.segments,m);d.push(y),r.on("SEGMENT_UPDATE",y.put)}return jY()(Object.create(r),{stop:v,start:g,startNewClient:function(e,t){var n=R3(e),r=t.get(t.constants.STORAGE),a=t.get(t.constants.PRODUCER);p[n]||(p[n]=e,h=!0);var i=new w3(r.segments,a);d.push(i),t.put(t.constants.MY_SEGMENTS_CHANGE_WORKER,i),setTimeout((function(){h&&(h=!1,g())}),0)},removeClient:function(e){var t=R3(e);delete p[t]}})}function g(){c=!1,D3.info("Connecting to push streaming.");var e=t?Object.keys(t):void 0;v3(i,e).then((function(n){if(!c){if(!n.pushEnabled)return D3.info("Streaming is not available. Switching to polling mode."),void r.emit("PUSH_NONRETRYABLE_ERROR");if(!(e&&e.length<Object.keys(t).length)){var a=n.decodedToken;o.open(n),function(e,t){u&&clearTimeout(u);var n=t-e-600;D3.info("Refreshing streaming token in ".concat(n," seconds.")),u=setTimeout(g,1e3*n)}(a.iat,a.exp)}}})).catch((function(e){c||(D3.error("Failed to authenticate for streaming. Error: ".concat(e.message,".")),e.statusCode>=400&&e.statusCode<500?r.emit("PUSH_NONRETRYABLE_ERROR"):r.emit("PUSH_RETRYABLE_ERROR"))}))}function v(){o.close(),c=!0,D3.info("Disconnecting from push streaming."),u&&clearTimeout(u),f.reset(),_()}function _(){d.forEach((function(e){return e.backoff.reset()}))}}var F3=_Z("splitio-producer:task"),G3=function(e,t){var n,r=(n=e).name?n.name:(n.toString().match(/function (.+?)\(/)||["",""])[1],a=!1;return{start:function(){a||(F3.debug("Starting ".concat(r," refreshing each ").concat(t)),a=G4((function(t){F3.debug("Running ".concat(r)),e().then((function(){return t()}))}),t))},stop:function(){F3.debug("Stopping ".concat(r)),a&&a(),a=!1},isRunning:function(){return!!a}}};var U3=function(e,t){return e<1?t:new Promise((function(n,r){var a=setTimeout((function(){r(new V4("Operation timed out because it exceeded the configured time limit of ".concat(e,"ms.")))}),e);t.then((function(e){clearTimeout(a),n(e)}),(function(e){clearTimeout(a),r(e)}))}))},L3=z4;function j3(e,t,n,r){return X4(e,"/splitChanges?since=".concat(t).concat(n||""),void 0,r?Q4:void 0)}var M3=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,s=e.sync.__splitFiltersValidation.queryString,o=L3(j3(e,t,s,i)),l=n||a;return o=N1.start(N1.TaskNames.SPLITS_FETCH,!!l&&r,o),n&&(o=U3(e.startup.requestTimeoutBeforeReady,o)),o.then((function(e){return e.json().catch((function(e){throw new q4(e.message)}))}))},B3=function(e){var t=new U1;return e.forEach((function(e){e.matcherGroup.matchers.forEach((function(e){var n=e.matcherType,r=e.userDefinedSegmentMatcherData;"IN_SEGMENT"===n&&t.add(r.segmentName)}))})),t},K3=_Z("splitio-producer:split-changes");function q3(e){return e.getRegisteredSegments().every((function(t){return-1!==e.getChangeNumber(t)}))}function V3(e){var t=e.reduce((function(e,t){return"ACTIVE"===t.status?(e.added.push([t.name,JSON.stringify(t)]),B3(t.conditions).forEach((function(t){e.segments.add(t)}))):e.removed.push(t.name),e}),{added:[],removed:[],segments:new U1});return t.segments=G1(t.segments),t}var $3=z4;function W3(e,t){return X4(e,"/mySegments/".concat(encodeURIComponent(L0(e.core.key))),void 0,t?Q4:void 0)}var z3=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,a=$3(W3(e,r));return a=N1.start(N1.TaskNames.MY_SEGMENTS_FETCH,!!t&&n,a),t&&(a=U3(e.startup.requestTimeoutBeforeReady,a)),a.then((function(e){return e.json().catch((function(e){throw new q4(e.message)}))})).then((function(e){return e.mySegments.map((function(e){return e.name}))}))},J3=_Z("splitio-producer:my-segments");var X3=_Z("splitio-producer:mySegmentsHandler"),Q3=function(e){var t=e.get(e.constants.SETTINGS),n=e.get(e.constants.STORAGE).splits,r=e.get(e.constants.READINESS),a=r.splits,i=r.segments,s=function(e){var t=e.getAll(),n=t[e.constants.SETTINGS],r=t[e.constants.READINESS],a=t[e.constants.STORAGE],i=t[e.constants.COLLECTORS],s=r.segments,o=!0,l=!0;function c(e){var t=a.segments.resetSegments(e);a.splits.usesSegments()&&(t||o)&&(o=!1,s.emit(s.SDK_SEGMENTS_ARRIVED))}return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0;return(r?new Promise((function(e){c(r),e()})):z3(n,l,i,a).then((function(e){l=!1,c(e)}))).catch((function(r){return r instanceof q4||setTimeout((function(){throw r}),0),l&&n.startup.retriesOnFailureBeforeReady>t?(t+=1,J3.warn("Retrying download of segments #".concat(t,". Reason: ").concat(r)),e(t)):(l=!1,!1)}))}}(e),o=G3(c,t.scheduler.segmentsRefreshRate);a.on(a.SDK_SPLITS_ARRIVED,(function(){if(!u)return;var e=n.usesSegments();e!==o.isRunning()&&(X3.info("Turning segments data polling ".concat(e?"ON":"OFF",".")),e?o.start():o.stop())})),n.usesSegments()?a.once(a.SDK_SPLITS_ARRIVED,p):setTimeout(p,0);var l=!1;function c(e,t){return l=!0,s(0,e,t).then((function(e){return l=!1,e}))}var u=!1;function p(){e.get(e.constants.READY,!0)||n.usesSegments()||i.emit(i.SDK_SEGMENTS_ARRIVED)}return{start:function(){u=!0,n.usesSegments()&&o.start()},stop:function(){u=!1,o.stop()},isRunning:function(){return u},isSynchronizingMySegments:function(){return l},synchronizeMySegments:c}},Y3=_Z("splitio-producer:updater"),Z3=function(e){var t=e.get(e.constants.SETTINGS),n=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAll(),r=n[e.constants.SETTINGS],a=n[e.constants.READINESS],i=n[e.constants.STORAGE],s=n[e.constants.COLLECTORS],o=a.splits,l=!0,c=!0;return function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,a=arguments.length>1?arguments[1]:void 0;function u(u){K3.debug("Spin up split update using since = ".concat(u));var p=M3(r,u,l,s,t,a).then((function(e){l=!1;var n=V3(e.splits);return K3.debug("New splits ".concat(n.added.length)),K3.debug("Removed splits ".concat(n.removed.length)),K3.debug("Segment names collected ".concat(n.segments)),Promise.all([i.splits.setChangeNumber(e.till),i.splits.addSplits(n.added),i.splits.removeSplits(n.removed),i.segments.registerSegments(n.segments)]).then((function(){(c||u!==e.till&&(!t||q3(i.segments)))&&(c=!1,o.emit(o.SDK_SPLITS_ARRIVED))}))})).catch((function(t){return t instanceof q4||(setTimeout((function(){throw t}),0),l=!1),K3.warn("Error while doing fetch of Splits. ".concat(t)),l&&r.startup.retriesOnFailureBeforeReady>n?(n+=1,K3.info("Retrying download of splits #".concat(n,". Reason: ").concat(t)),e(n,a)):(l=!1,!1)}));return l&&i.splits.checkCache()&&o.emit(o.SDK_SPLITS_CACHE_LOADED),p}var p=i.splits.getChangeNumber(),d=MY(p)?p:Promise.resolve(p);return d.then(u)}}(e),r=G3(s,t.scheduler.featuresRefreshRate),a=Q3(e),i=!1;function s(e){return i=!0,n(0,e).then((function(e){return i=!1,e}))}return{start:function(){Y3.info("Starting BROWSER producer"),r.start(),a.start()},stop:function(){Y3.info("Stopping BROWSER producer"),r.stop(),a.stop()},isRunning:r.isRunning,isSynchronizingSplits:function(){return i},synchronizeSplits:s,isSynchronizingMySegments:a.isSynchronizingMySegments,synchronizeMySegments:a.synchronizeMySegments}},e6=_Z("splitio-sync:sync-manager");var t6=_Z("splitio-client:cleanup"),n6=function(){function e(t,n){aZ(this,e),this.storage=t.get(t.constants.STORAGE),this.settings=t.get(t.constants.SETTINGS),this.syncManager=n,this.flushData=this.flushData.bind(this),this.settings.sync.impressionsMode===YZ&&(this.impressionsCounter=t.get(t.constants.IMPRESSIONS_COUNTER))}return sZ(e,[{key:"start",value:function(){"undefined"!=typeof window&&window.addEventListener&&(t6.debug("Registering flush handler when unload page event is triggered."),window.addEventListener("unload",this.flushData))}},{key:"stop",value:function(){"undefined"!=typeof window&&window.removeEventListener&&(t6.debug("Deregistering flush handler when unload page event is triggered."),window.removeEventListener("unload",this.flushData))}},{key:"flushData",value:function(){this._flushImpressions(),this._flushEvents(),this.impressionsCounter&&this._flushImpressionsCount(),this.syncManager&&this.syncManager.pushManager&&this.syncManager.pushManager.stop()}},{key:"_flushImpressions",value:function(){var e=this.storage.impressions;if(!e.isEmpty()){var t=this.settings.url("/testImpressions/beacon"),n=n3(e,this.settings),r={sim:this.settings.sync.impressionsMode===YZ?YZ:QZ};this._sendBeacon(t,n,r)||Z4(e3(this.settings,{body:JSON.stringify(n)})),e.clear()}}},{key:"_flushImpressionsCount",value:function(){var e={pf:r3(this.impressionsCounter)};if(0!==e.pf.length){var t=this.settings.url("/testImpressions/count/beacon");this._sendBeacon(t,e)||Z4(t3(this.settings,{body:JSON.stringify(e)}))}}},{key:"_flushEvents",value:function(){var e=this.storage.events;if(!e.isEmpty()){var t=this.settings.url("/events/beacon"),n=e.toJSON();this._sendBeacon(t,n)||d3(h3(this.settings,{body:JSON.stringify(n)})),e.clear()}}},{key:"_sendBeacon",value:function(e,t,n){if("undefined"!=typeof navigator&&navigator.sendBeacon){var r={entries:t,token:this.settings.core.authorizationKey,sdk:this.settings.version};n&&jY()(r,n);var a=JSON.stringify(r);return navigator.sendBeacon(e,a)}return!1}}]),e}(),r6={};var a6=function(e,t,n){var r,a=!!n,i=e.get(e.constants.SETTINGS),s=e.get(e.constants.READINESS),o=e.get(e.constants.STORAGE),l=e.get(e.constants.STATUS_MANAGER),c=s.gate,u=s.splits,p=s.segments,d=c.SDK_READY,h=a?void 0:p3(e),f=a?void 0:m3(e);switch(i.mode){case $Z:case VZ:e.put(e.constants.COLLECTORS,h&&h.collectors),a?r=r6[i.core.authorizationKey].shared(e):(r=function(e){var t={},n=e.get(e.constants.SETTINGS),r=c(!1,e),a=n.streamingEnabled?H3(e,t):void 0,i=e.get(e.constants.PRODUCER);function s(){i.isRunning()?e6.info("Streaming couldn't connect. Continue periodic fetch of data."):(e6.info("Streaming not available. Starting periodic fetch of data."),nZ(t,(function(e){e.get(e.constants.PRODUCER).start()})))}function o(){i.isRunning()&&(e6.info("PUSH (re)connected. Syncing and stopping periodic fetch of data."),nZ(t,(function(e){e.get(e.constants.PRODUCER).stop()}))),l()}function l(){e.get(e.constants.PRODUCER).synchronizeSplits(),nZ(t,(function(e){e.get(e.constants.PRODUCER).synchronizeMySegments()}))}function c(e,n){var r=e?Q3(n):Z3(n),c=n.get(n.constants.SETTINGS),u=eZ(L0(c.core.key));return n.put(n.constants.PRODUCER,r),t[u]&&e6.warn("A client with the same user key has already been created. Only the new instance will be properly synchronized."),t[u]=n,{start:function(){a?(e?i.isRunning()?r.start():r.synchronizeMySegments():(l(),a.on("PUSH_SUBSYSTEM_UP",o),a.on("PUSH_SUBSYSTEM_DOWN",s)),a.startNewClient(u,n)):r.start()},stop:function(){t[u]&&(delete t[u],a&&(a.removeClient(u),e||a.stop()),r.isRunning()&&r.stop())}}}return r.shared=c.bind(null,!0),r.pushManager=a,r}(e),r6[i.core.authorizationKey]=r);break;case WZ:e.put(e.constants.READY_FROM_CACHE,!0)}var m=a?void 0:new n6(e,r);if(t&&r&&!a){var S=t.sdkReadyTracker,y=t.splitsReadyTracker,g=t.segmentsReadyTracker;S.setCollectorForTask(h.collectors),c.once(d,S),u.once(u.SDK_SPLITS_ARRIVED,y),p.once(p.SDK_SEGMENTS_ARRIVED,g)}r&&r.start(),h&&h.start(),f&&e.put(e.constants.EVENTS,f)&&f.start(),e.put(e.constants.COLLECTORS,n);var v=jY()(Object.create(l),F4(e),{destroy:function(){return r&&r.stop(),h&&h.stop(),f&&f.stop(),Promise.all([h&&h.flush(),f&&f.flush()]).then((function(){s.destroy(),m&&m.stop(),o.destroy&&o.destroy(),e.put(e.constants.DESTROYED,!0),a||(wZ(i.core.authorizationKey),delete r6[i.core.authorizationKey])}))}});return!a&&m.start(v.destroy),{api:v,metricCollectors:h&&h.collectors}};function i6(e){var t=e.treatment;return e.keys?{conditionType:"WHITELIST",matcherGroup:{combiner:"AND",matchers:[{keySelector:null,matcherType:"WHITELIST",negate:!1,whitelistMatcherData:{whitelist:WY(e.keys)?[e.keys]:e.keys}}]},partitions:[{treatment:t,size:100}],label:"whitelisted ".concat(t)}:{conditionType:"ROLLOUT",matcherGroup:{combiner:"AND",matchers:[{keySelector:null,matcherType:"ALL_KEYS",negate:!1}]},partitions:[{treatment:t,size:100}],label:"default rule"}}function s6(){var e={emptyMock:1};function t(t){var n=Object.keys(t);return n.length!==Object.keys(e).length?(e=t,!0):n.some((function(n){var r,a,i=!e[n],s=(r=e[n],a=t[n],BY(r)!==BY(a)||("string"==typeof r?r!==a:r.treatment!==a.treatment||r.config!==a.config)),o=i||s;return o&&(e=t),o}))}return function(e){var n=e.features||{};if(!t(n))return!1;var r={};return nZ(n,(function(e,t){var n=e,a=null;QY(e)&&(n=e.treatment,a=e.config||a);var i={};null!==a&&(i[n]=a),r[t]={conditions:[i6({treatment:n})],configurations:i}})),r}}var o6=_Z("splitio-producer:offline");var l6=function(e,t){var n=t.getAll(),r=n[t.constants.SETTINGS],a=n[t.constants.READINESS],i=n[t.constants.STORAGE],s=!0;return function(){var t=[],n=null,o={};try{o=e(r)}catch(e){n=e,o6.error("There was an issue loading the mock Splits data, no changes will be applied to the current cache. ".concat(e))}return!n&&o?(o6.debug("Splits data: "),o6.debug(JSON.stringify(o)),nZ(o,(function(e,n){t.push([n,JSON.stringify({name:n,status:"ACTIVE",killed:!1,trafficAllocation:100,defaultTreatment:"control",conditions:e.conditions||[],configurations:e.configurations,trafficTypeName:e.trafficTypeName})])})),Promise.all([i.splits.flush(),i.splits.addSplits(t)]).then((function(){a.splits.emit(a.splits.SDK_SPLITS_ARRIVED),s&&(s=!1,a.segments.emit(a.segments.SDK_SEGMENTS_ARRIVED))}))):Promise.resolve()}};var c6=function(e){var t=e.get(e.constants.SETTINGS),n=function(e){var t=s6();return l6(t,e)}(e);return G3(n,t.scheduler.offlineRefreshRate)};var u6=function(e,t){var n=!t,r=e.get(e.constants.READINESS),a=e.get(e.constants.STORAGE),i=e.get(e.constants.STATUS_MANAGER);n&&setTimeout((function(){r.splits.on(r.splits.SDK_SPLITS_ARRIVED,(function(){r.gate.emit(r.gate.SDK_UPDATE)})),r.gate.emit(r.gate.SDK_READY)}),0);var s=n?void 0:c6(e);return s&&s.start(),{api:jY()(Object.create(i),F4(e),{destroy:function(){return s&&s.stop(),r.destroy(),a.destroy&&a.destroy(),e.put(e.constants.DESTROYED,!0),!n&&wZ(),Promise.resolve()}}),metricCollectors:!1}};function p6(e,t){var n=!1,r=!1;var a=function e(a){var i=new Promise((function(e,n){return a.then(e,(function(e){r?n(e):t(e)}))})),s=i.then;return Object.defineProperty(i,"then",{value:function(t,a){var o=s.call(i,t,a);return"function"==typeof t&&(n=!0),"function"==typeof a?(r=!0,o):e(o)}}),i}(e);return a.hasOnFulfilled=function(){return n},a}var d6=_Z("");function h6(e){d6.error(e)}function f6(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e.get(e.constants.READINESS).gate,r=0,a=!1,i=!1,s=n.SDK_READY,o=n.SDK_READY_FROM_CACHE,l=n.SDK_UPDATE,c=n.SDK_READY_TIMED_OUT;n.on("removeListener",(function(e){e===s&&r--})),n.on("newListener",(function(e){e!==s&&e!==c||(a?d6.error("A listener was added for ".concat(e===s?"SDK_READY":"SDK_READY_TIMED_OUT"," on the SDK, which has already fired and won't be emitted again. The callback won't be executed.")):e===s&&r++)}));var u=p();function p(){var o=p6(new Promise((function(l,u){n.once(s,(function(){d6.info("Split SDK is ready."),r!==t||o.hasOnFulfilled()||d6.warn("No listeners for SDK Readiness detected. Incorrect control treatments could have been logged if you called getTreatment/s while the SDK was not yet ready."),e.put(e.constants.READY,!0),a=!0,l()})),n.once(c,(function(t){e.put(e.constants.HAS_TIMEDOUT,!0),i=!0,u(t)}))})),h6);return o}return n.once(o,(function(){d6.info("Split SDK is ready from cache."),e.put(e.constants.READY_FROM_CACHE,!0)})),jY()(Object.create(n),{Event:{SDK_READY:s,SDK_READY_FROM_CACHE:o,SDK_UPDATE:l,SDK_READY_TIMED_OUT:c},ready:function(){return i?a?Promise.resolve():p6(Promise.reject("Split SDK has emitted SDK_READY_TIMED_OUT event."),h6):u},__context:e})}var m6="splitio-ga-to-split:mapper",S6=_Z("splitio-ga-to-split");var y6,g6=(y6={eventTypeId:{event:"eventAction",social:"socialAction"},eventValue:{event:"eventValue",timing:"timingValue"},eventProperties:{pageview:["page"],screenview:["screenName"],event:["eventCategory","eventLabel"],social:["socialNetwork","socialTarget"],timing:["timingCategory","timingVar","timingLabel"],exception:["exDescription","exFatal"]}},function(e){var t=e.get("hitType"),n=e.get(y6.eventTypeId[t]||"hitType"),r=e.get(y6.eventValue[t]),a={},i=y6.eventProperties[t];if(i)for(var s=0;s<i.length;s++)a[i[s]]=e.get(i[s]);return{eventTypeId:n,value:r,properties:a,timestamp:Date.now()}});function v6(e){return Array.isArray(e)?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:JSON.stringify,n={};return e.filter((function(e){var r=t(e);return!Object.prototype.hasOwnProperty.call(n,r)&&(n[r]=!0)}))}(e).filter((function(e){if(!e)return!1;var t=e.key,n=e.trafficType;return!(!WY(t)&&!zY(t))&&!!WY(n)})):[]}var _6=/^[^a-zA-Z0-9]+/,b6=/[^-_.:a-zA-Z0-9]+/g;var P6=function(e,t,n){var r,a,i,s={prefix:"ga",identities:n.key&&n.trafficType?[{key:n.key,trafficType:n.trafficType}]:void 0};r="splitTracker",a=function n(r,a){aZ(this,n);var i=jY()({},s,e,a);this.tracker=r;var o=v6(i.identities);if(0!==o.length){var l=o.length-i.identities.length;l&&S6.warn("".concat(l," identities were discarded because they are invalid or duplicated. Identities must be an array of objects with key and trafficType.")),i.identities=o,WY(i.prefix)||(S6.warn("The provided `prefix` was ignored since it is invalid. Please check that you are passing a string object as `prefix`."),i.prefix=void 0);var c=r.get("sendHitTask");r.set("sendHitTask",(function(e){if(c(e),!1!==i.hits&&!e.get("splitHit")){try{if(i.filter&&!i.filter(e))return}catch(e){return void S6.warn("GaToSplit custom filter threw: ".concat(e))}var n=g6(e);if(i.mapper){try{n=i.mapper(e,n)}catch(e){return void S6.warn("GaToSplit custom mapper threw: ".concat(e))}if(!n)return}i.prefix&&(n.eventTypeId="".concat(i.prefix,".").concat(n.eventTypeId)),n.eventTypeId=function(e){if(!WY(e)||0===e.length)return e;var t=e.replace(_6,"").replace(b6,"_"),n=t.slice(0,80);return n.length<t.length&&S6.warn("EventTypeId was truncated because it cannot be more than 80 characters long."),n}(n.eventTypeId),function(e){return!(!CZ(e.eventTypeId,m6)||!1===AZ(e.value,m6)||!1===HZ(e.properties,m6).properties||e.timestamp&&!zY(e.timestamp)||e.key&&!1===UZ(e.key,m6)||e.trafficTypeName&&!1===t0(e.trafficTypeName,m6))}(n)&&(n.key&&n.trafficTypeName?t.events.track(n):i.identities.forEach((function(e){var r=jY()({key:e.key,trafficTypeName:e.trafficType},n);t.events.track(r)})))}})),S6.info("Started GA-to-Split integration")}else S6.warn("No valid identities were provided. Please check that you are passing a valid list of identities or providing a traffic type at the SDK configuration.")},i=window.GoogleAnalyticsObject||"ga",window[i]=window[i]||function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];(window[i].q=window[i].q||[]).push(t)},window[i]("provide",r,a)},w6=_Z("splitio-split-to-ga"),E6=function(){function e(t){if(aZ(this,e),"function"!=typeof e.getGa())return w6.warn("`ga` command queue not found. No hits will be sent."),{};this.trackerNames=e.defaultTrackerNames,t&&("function"==typeof t.filter&&(this.filter=t.filter),"function"==typeof t.mapper&&(this.mapper=t.mapper),Array.isArray(t.trackerNames)&&(this.trackerNames=ZY(t.trackerNames)),this.impressions=t.impressions,this.events=t.events),w6.info("Started Split-to-GA integration")}return sZ(e,[{key:"queue",value:function(t){var n=e.getGa();if(n){if(!1===this.impressions&&"IMPRESSION"===t.type)return;if(!1===this.events&&"EVENT"===t.type)return;var r;try{if(this.filter&&!this.filter(t))return;if(r=e.defaultMapper(t),this.mapper&&(!(r=this.mapper(t,r))||!e.validateFieldsObject(r)))return}catch(e){return void w6.warn("SplitToGa queue method threw: ".concat(e,". No hit was sent."))}this.trackerNames.forEach((function(e){var t=e?"".concat(e,".send"):"send";r.splitHit=!0,n(t,r)}))}}}],[{key:"defaultMapper",value:function(e){var t=e.type,n=e.payload;switch(t){case"IMPRESSION":return{hitType:"event",eventCategory:"split-impression",eventAction:"Evaluate "+n.impression.feature,eventLabel:"Treatment: "+n.impression.treatment+". Targeting rule: "+n.impression.label+".",nonInteraction:!0};case"EVENT":return{hitType:"event",eventCategory:"split-event",eventAction:n.eventTypeId,eventValue:n.value,nonInteraction:!0}}return null}},{key:"getGa",value:function(){return"undefined"!=typeof window?window[window.GoogleAnalyticsObject||"ga"]:void 0}},{key:"validateFieldsObject",value:function(e){return!(!e||!e.hitType)||(w6.warn("your custom mapper returned an invalid FieldsObject instance. It must be an object with at least a `hitType` field."),!1)}}]),e}();E6.defaultTrackerNames=[""];var k6=E6,T6=function(e){var t=e.get(e.constants.SETTINGS),n=[];if(t.integrations.forEach((function(r){var a;switch(r.type){case"GOOGLE_ANALYTICS_TO_SPLIT":var i=e.get(e.constants.STORAGE),s=t.core;a=P6(r,i,s);break;case"SPLIT_TO_GOOGLE_ANALYTICS":a=new k6(r)}a&&a.queue&&n.push(a)})),0!==n.length)return{handleImpression:function(e){n.forEach((function(t){return t.queue({type:"IMPRESSION",payload:e})}))},handleEvent:function(e){n.forEach((function(t){return t.queue({type:"EVENT",payload:e})}))}}},C6=function(){function e(){aZ(this,e),this.cache={}}return sZ(e,[{key:"_makeKey",value:function(e,t){return"".concat(e,"::").concat(C4(t))}},{key:"inc",value:function(e,t,n){var r=this._makeKey(e,t),a=this.cache[r];this.cache[r]=a?a+n:n}},{key:"popAll",value:function(){var e={};return jY()(e,this.cache),this.cache={},e}},{key:"size",value:function(){return Object.keys(this.cache).length}}]),e}(),I6=_Z("splitio"),A6=function(e,t){return"".concat(e.matchingKey?e.matchingKey:e,"-").concat(e.bucketingKey?e.bucketingKey:e,"-").concat(void 0!==t?t:"")};function O6(e){var t,n,r={},a={splitsReadyTracker:N1.start(N1.TaskNames.SPLITS_READY),segmentsReadyTracker:N1.start(N1.TaskNames.SEGMENTS_READY),sdkReadyTracker:N1.start(N1.TaskNames.SDK_READY)},i=new v1,s=y1(e);i.put(i.constants.SETTINGS,s),t=s.core.authorizationKey,n=!1,null==t?bZ.error("Factory instantiation: you passed a null or undefined api_key, api_key must be a non-empty string."):WY(t)?t.length>0?n=t:bZ.error("Factory instantiation: you passed an empty api_key, api_key must be a non-empty string."):bZ.error("Factory instantiation: you passed an invalid api_key, api_key must be a non-empty string."),n&&(PZ[n]?(bZ.warn("Factory instantiation: You already have ".concat(PZ[n]," ").concat(1===PZ[n]?"factory":"factories"," with this API Key. We recommend keeping only one instance of the factory at all times (Singleton pattern) and reusing it throughout your application.")),PZ[n]++):(PZ[n]=1,Object.keys(PZ).length>1&&bZ.warn("Factory instantiation: You already have an instance of the Split factory. Make sure you definitely want this additional instance. We recommend keeping only one instance of the factory at all times (Singleton pattern) and reusing it throughout your application.")));var o=Y0(),l=o(s.startup.readyTimeout);i.put(i.constants.READINESS,l);var c=f6(i);i.put(i.constants.STATUS_MANAGER,c);var u=K0(i);i.put(i.constants.STORAGE,u);var p=new C6;i.put(i.constants.IMPRESSIONS_COUNTER,p);var d=T6(i);i.put(i.constants.INTEGRATIONS_MANAGER,d);var h="localhost"===s.mode?u6:a6,f=h(i,a),m=f.api,S=f.metricCollectors,y=u0(u.splits,i),g=_1(s.core.key),v=A6(g,s.core.trafficType);return r[v]=m,I6.info("New Split SDK instance created."),{client:function(e,t){if(void 0===e)return I6.debug("Retrieving default SDK client."),m;if("function"!=typeof u.shared)throw new Error("Shared Client not supported by the storage mechanism. Create isolated instances instead.");var n,a=UZ(e,"Shared Client instantiation");if(!1===a)throw new Error("Shared Client needs a valid key.");if(void 0!==t&&!1===(n=t0(t,"Shared Client instantiation")))throw new Error("Shared Client needs a valid traffic type or no traffic type at all.");var l=A6(a,n);if(r[l])I6.debug("Retrieving existing SDK client.");else{var c=s.overrideKeyAndTT(a,n),d=new v1,f=o(c.startup.readyTimeout);d.put(i.constants.READY_FROM_CACHE,i.get(i.constants.READY_FROM_CACHE,!0)),d.put(i.constants.READINESS,f),d.put(i.constants.STATUS_MANAGER,f6(d,-1)),d.put(i.constants.SETTINGS,c),d.put(i.constants.STORAGE,u.shared(c)),d.put(i.constants.IMPRESSIONS_COUNTER,p),r[l]=h(d,!1,S).api,I6.info("New shared client instance created.")}return r[l]},manager:function(){return I6.info("Manager instance retrieved."),y},Logger:vZ,settings:s}}class x6 extends Error{constructor(){super(...arguments),this.name="Split timeout error"}}var N6=new class extends class{constructor(e,t){this._splitAuthKey=e,this._splits=t,this._isSdkReady=!1}setTrafficId(e){this._trafficId!==e&&(this._isSdkReady=!1,this._trafficId=e,this._initClient())}_initClient(){const e=O6({core:{authorizationKey:this._splitAuthKey,key:this._trafficId}});this._client=e.client()}async getTreatments(e,t){return this.setTrafficId(e),this._isSdkReady||(this._isSdkReady=await this._waitUntilSdkReady()),0===this._splits.length?{}:this._client.getTreatments(this._splits,t)}_waitUntilSdkReady(){return new Promise((e,t)=>{this._client.on(this._client.Event.SDK_READY,()=>e(!0)),this._client.on(this._client.Event.SDK_READY_TIMED_OUT,()=>t(new x6))})}}{constructor(){super("60k3s1qooefmvgtgqj7jdi7geqkdfctvm1e0",rE),this._mixpanel=null,this._treatments={},this._experiments=DS(),this.props={isUserReLogin:!1}}_trackExperimentStarted(e,t){if(!this._mixpanel)return void UY();const n={"Experiment name":e,"Variant name":t,Platform:"Desktop"};this._mixpanel.track("$experiment_started",n),UY()}_setUpExperiment(e,t){return!this._isExperimentHasValue(e,t)&&(this._isExperimentStarted(e)?this._experiments=this._experiments.map(n=>n.name===e?{...n,value:t}:n):this._experiments=[...this._experiments,{name:e,value:t}],HS(this._experiments),!0)}_isExperimentStarted(e){return this._experiments.some(t=>t.name===e)}_isExperimentHasValue(e,t){return this._experiments.some(n=>n.name===e&&n.value===t)}async _tryToStartExperiment(e,t,n,r={},a=!1){if(UY(),await this._updateTreatments(e,t,r),!Object.keys(this._treatments).length)return UY(),null;const i=this._treatments[n];if(null==i)return UY(),null;if("control"===i)return UY(),null;if(this._isExperimentHasValue(n,i))return UY(),i;return this._setUpExperiment(n,i)?"disabled"===i?(UY(),i):(a||this._trackExperimentStarted(aE[n],iE[n][i]),i):i}async _updateTreatments(e,t,n={}){this._treatments;const r=e||NN.token,a={platform:"desktop",user_type:t.toLowerCase(),...n};try{this._treatments=await this.getTreatments(r,a),UY(this._treatments)}catch(e){UY()}}initMixpanel(e){e?(this._mixpanel=e,UY()):UY()}reset(){this._experiments=[],HS(this._experiments),UY()}setProps(e){this.props={...this.props,...e},UY(this.props)}get activeExperiments(){return(e=>{let t={};return e.map(e=>{const{name:n,value:r}=e;return t={...t,[""+n]:r},e}),t})(this._experiments)}startNewTeamSetupExperiment(e,t){return this._tryToStartExperiment(e,t,"team_setup_desktop")}startTeamTrialDescriptionExperiment(e,t){return this._tryToStartExperiment(e,t,nE)}startSideMenuTeamTrialPromotionExperiment(e,t){return this._tryToStartExperiment(e,t,"desktop_side_menu_team_trial_promotion")}startAnalyticsTokenExperiment(e,t,n={}){return this._tryToStartExperiment(e,t,"mixpanel_token",n,!0)}startHostSharingNewFlowExperiment(e,t,n={}){return this._tryToStartExperiment(e,t,"host_sharing_new_flow",n)}};function*R6(){const{user_id:e,user_type:t}=yield*Ar(jP),n=yield*Ar(tw);yield*kr({context:N6,fn:"startHostSharingNewFlowExperiment"},null==e?void 0:e.toFixed(),t,{isTeamOwner:n,isShareHostEnabled:!0})}function*D6(){const{user_id:e,user_type:t}=yield*Ar(jP);yield*kr({context:N6,fn:"startTeamTrialDescriptionExperiment"},null==e?void 0:e.toFixed(),t),yield*Er(Yw(N6.activeExperiments))}function*H6(){const{user_id:e,user_type:t}=yield*Ar(jP);yield*kr({context:N6,fn:"startSideMenuTeamTrialPromotionExperiment"},null==e?void 0:e.toFixed(),t),yield*Er(Yw(N6.activeExperiments))}function*F6(){const{username:e,account:t}=yield*Ar(e=>e.user),{user_id:n,user_type:r}=t;N6.props.isUserReLogin||e&&!n||(yield*kr({context:N6,fn:"startNewTeamSetupExperiment"},n,r),yield*kr(R6),yield*kr({context:N6,fn:"startAnalyticsTokenExperiment"},n,r,{environment:"production"}),yield*Er(Zw(N6.activeExperiments.mixpanel_token)),yield*Er(Yw(N6.activeExperiments)))}function*G6(){yield*kr({context:N6,fn:"reset"})}function*U6(){N6.initMixpanel(window.mixpanel),yield*Rr([Pr(wW,F6),Pr(Hl.success,G6),Pr(Ul.success,G6),Pr(eE,D6),Pr(tE,H6)])}const L6="9NM11M9H4P25",j6="9P9WH188X2X7",M6="com.termius.monthly",B6="com.termius.yearly",K6=0,q6=2,V6="UNKNOWN_ERROR",$6=e=>{switch(String(e)){case"1":case"ITEM_UNAVAILABLE":return"Item Issue";case"2":return"User Canceled";case"3":return"Connection Issue";case"IN_APP_PURCHASES_UNAVAILABLE":return"Billing Issue";default:return"Error"}},W6=2,z6="-1012",J6="ITEM_UNAVAILABLE",X6="UNKNOWN_ERROR",Q6="IN_APP_PURCHASES_UNAVAILABLE",Y6=e=>{switch(String(e)){case"ITEM_UNAVAILABLE":return"Item Issue";case"-1001":case"-1003":case"-1004":case"-1005":case"-1009":return"Connection Issue";case"-1012":return"User Canceled";case"IN_APP_PURCHASES_UNAVAILABLE":return"Billing Issue";default:return"Error"}};var Z6=n(232),e9=n.n(Z6),t9=n(233),n9=n.n(t9);class r9 extends BA.a{constructor(e){super(),this.inAppPurchase=u.inAppPurchase,this.restorePurchase=Object(u.require)("@termius/restore-mas-purchase"),this.upgradeToProFunnelID=O$()(),this.requestMonthlyPremium=({purchaseLocation:e,upgradeToProFunnelID:t})=>{this.purchaseLocation=e,this.upgradeToProFunnelID=t,this.requestMacStorePurchase(M6,t,e)},this.requestYearlyPremium=({purchaseLocation:e,upgradeToProFunnelID:t})=>{this.purchaseLocation=e,this.upgradeToProFunnelID=t,this.requestMacStorePurchase(B6,t,e)},this.requestMacStorePurchase=async(e,t,n)=>{try{await this.inAppPurchase.purchaseProduct(e,1)||this.handlePurchaseFailed(J6,t,n)}catch(e){this.handlePurchaseFailed(X6,t,n)}},this.getProductsPrices=async()=>{const e=await this.inAppPurchase.getProducts([M6,B6]),t=e.find(e=>e.productIdentifier===M6),n=e.find(e=>e.productIdentifier===B6);if(!t||!n)throw new Error("No products");const r=e=>({value:e.price,currency:e.currencyCode});return{monthly:r(t),yearly:r(n)}},this.handlePurchaseFailed=(e,t,n)=>{this.inAppPurchase.finishAllTransactions();const r=e===W6||e===z6;this.props.onPurchaseFail({userCancel:r,purchaseStatus:e,reason:Y6(e),purchaseLocation:n,upgradeToProFunnelID:t})},this.validateReceipt=async()=>{try{await this.restorePurchase.refreshReceipt()}catch(e){}const e=this.inAppPurchase.getReceiptURL(),t=e9.a.readFileSync(e).toString("base64");await this.api.api.validateReceipt({platform:"mac-appstore",user_id_in_shop:t})},this.requestRestorePremium=async()=>{try{await this.validateReceipt(),this.props.onRestoreSuccess(),this.inAppPurchase.finishAllTransactions()}catch(e){this.handleRestoreCompletedTransactions()}},this.handleRestoreCompletedTransactions=async()=>{try{await this.restorePurchase.restoreCompletedTransactions(),await this.validateReceipt(),this.props.onRestoreSuccess()}catch(e){this.props.onRestoreFail()}finally{this.inAppPurchase.finishAllTransactions()}},this.api=e}registerPurchaseListeners(e){this.props=e,this.inAppPurchase.canMakePayments()?(this.inAppPurchase.finishAllTransactions(),this.inAppPurchase.on("transactions-updated",(e,t)=>{if(!Array.isArray(t))return;const n=t.filter(e=>"restored"===e.transactionState),r=n9()(t,n);n.length&&r.push(n[0]),r.forEach(async e=>{switch(e.transactionState){case"purchased":this.inAppPurchase.finishTransactionByDate(e.transactionDate);try{await this.validateReceipt(),this.props.onPurchaseSuccess(),this.inAppPurchase.finishAllTransactions()}catch(e){this.handlePurchaseFailed(X6,this.upgradeToProFunnelID,this.purchaseLocation)}break;case"failed":this.inAppPurchase.finishTransactionByDate(e.transactionDate),this.handlePurchaseFailed(e.errorCode,this.upgradeToProFunnelID,this.purchaseLocation);break;case"restored":this.inAppPurchase.finishTransactionByDate(e.transactionDate);try{await this.validateReceipt(),this.props.onRestoreSuccess()}catch(e){this.props.onRestoreFail()}finally{this.inAppPurchase.finishAllTransactions()}}})})):this.handlePurchaseFailed(Q6,this.upgradeToProFunnelID,this.purchaseLocation)}}const a9=({purchases:e})=>e;var i9=n(234),s9=n.n(i9);class o9{constructor(e){this.initialize=e=>{this.props=e;const t=Object(u.getCurrentWindow)().getNativeWindowHandle(),r=n(406);this.winContext=new r.StoreContext,this.winContext.initialize(t)},this.requestMonthlyPremium=({purchaseLocation:e,upgradeToProFunnelID:t})=>{this.requestWinStorePurchase(L6,t,e)},this.requestYearlyPremium=({purchaseLocation:e,upgradeToProFunnelID:t})=>{this.requestWinStorePurchase(j6,t,e)},this.requestWinStorePurchase=async(e,t,n)=>{try{const{service_ticket:r}=await this.api.api.getWindowsServiceTicket();this.winContext.requestPurchaseAsync(e,"Termius Premium Subscription",(e,a)=>{const{status:i}=a;a.status===K6||a&&!i?this.confirmSuccessedWinStorePurchase(r,t,n):this.handlePurchaseFailed(i,t,n)})}catch(e){this.handlePurchaseFailed(V6,t,n)}},this.confirmSuccessedWinStorePurchase=async(e,t,n)=>{try{const t=await this.getReceipt(e);await this.validateReceipt(t),this.props.onPurchaseSuccess()}catch(e){this.handleConfirmFailed(n,t)}},this.handleConfirmFailed=async(e,t)=>{try{const{service_ticket:e}=await this.api.api.getWindowsServiceTicket(),t=await this.getReceipt(e);await this.validateReceipt(t),this.props.onPurchaseSuccess()}catch(n){this.handlePurchaseFailed(V6,t,e)}},this.getReceipt=async e=>new Promise((t,n)=>{try{const r=this.api.settings.getDeprecatedUserStr();this.winContext.getCustomerPurchaseIdAsync(e,r,async(e,r)=>{r?t(r):n()})}catch(e){n()}}),this.validateReceipt=async e=>{await this.api.api.validateReceipt({platform:"microsoft-store",user_id_in_shop:e})},this.requestRestorePremium=async()=>{try{const{service_ticket:e}=await this.api.api.getWindowsServiceTicket(),t=await this.getReceipt(e);await this.validateReceipt(t),this.props.onRestoreSuccess()}catch(e){this.props.onRestoreFail()}},this.getProductsPrices=async()=>{const e=await new Promise(e=>{this.winContext.getAssociatedStoreProductsAsync(["subscription"],(t,n)=>{e(n)})}),t=({price:e})=>{const t=s9()(e.formattedRecurrencePrice);return null!=t?{value:t.value,currency:e.currencyCode}:kX.yearly},n=e[L6],r=e[j6];return{monthly:t(n),yearly:t(r)}},this.handlePurchaseFailed=(e,t,n)=>{this.props.onPurchaseFail({userCancel:e===q6,purchaseStatus:e,reason:$6(e),purchaseLocation:n,upgradeToProFunnelID:t})},this.api=e}}const l9=Sn();function*c9(e){const t={onPurchaseSuccess:()=>l9.put(BS()),onPurchaseFail:e=>l9.put(MS(e)),onRestoreSuccess:()=>l9.put(qS()),onRestoreFail:()=>l9.put(KS())};if(YS.a.windowsStore()&&YS.a.ltRelease("10.0.14391")){const n=new o9(e);n.initialize(t),yield*Er(VS.request()),yield*Tr(p9,n)}else if(YS.a.mas()){const n=new r9(e);n.registerPurchaseListeners(t),yield*Tr(p9,n)}else yield*Tr(f9);yield*Tr(b9,e),yield*Tr(u9)}function*u9(){for(;;){const e=yield*_r(l9);yield*Er(e)}}function*p9(e){yield*qi(VS,async()=>e.getProductsPrices()),yield*br(GS,d9,e),yield*br(US,h9,e),yield*br(LS,()=>e.requestRestorePremium()),yield*Er(VS.request())}function*d9(e,{payload:{buyNowButtonLocation:t,upgradeToProFunnelID:n}}){yield*Er(jS({period:"monthly",buyNowButtonLocation:t,upgradeToProFunnelID:n})),e.requestMonthlyPremium({buyNowButtonLocation:t,upgradeToProFunnelID:n})}function*h9(e,{payload:{buyNowButtonLocation:t,upgradeToProFunnelID:n}}){yield*Er(jS({period:"yearly",buyNowButtonLocation:t,upgradeToProFunnelID:n})),e.requestYearlyPremium({buyNowButtonLocation:t,upgradeToProFunnelID:n})}function*f9(){yield*Rr([br(GS,S9),br(US,y9),br(LS,m9)])}function*m9(e){const t=yield*Ar(uw);Vj({username:t,period:e})}function*S9({payload:{buyNowButtonLocation:e,upgradeToProFunnelID:t}}){yield*Er(jS({period:"monthly",buyNowButtonLocation:e,upgradeToProFunnelID:t})),yield*m9("MONTH")}function*y9({payload:{buyNowButtonLocation:e,upgradeToProFunnelID:t}}){yield*Er(jS({period:"yearly",buyNowButtonLocation:e,upgradeToProFunnelID:t})),yield*m9("YEAR")}function*g9({payload:e}){const t=yield*Ar(a9);"monthly"===t.isLoading?yield*Er(GS(e)):"yearly"===t.isLoading&&(yield*Er(US(e)))}function*v9({payload:{userCancel:e,purchaseStatus:t,purchaseLocation:n,upgradeToProFunnelID:r}}){if(e)yield*Er(zS());else{const e=`Error ${t}: ${(e=>{switch(String(e)){case"1":case"ITEM_UNAVAILABLE":return"Subscription is unavailable";case"-1001":return"The connection timed out";case"-1003":return"The connection failed because the host could not be found";case"-1004":return"The connection failed because a connection cannot be made to the host";case"-1005":return"The connection failed because the network connection was lost";case"-1009":case"3":return"The connection failed because the device is not connected to the internet";case"-1012":return"The connection failed because the user canceled required authentication";case"IN_APP_PURCHASES_UNAVAILABLE":return"In app purchases are unavailable";default:return"The secure connection failed for an unknown reason"}})(t)}`;yield*lG({dialog:"PurchaseFailedDialog",target:"all-windows",props:{message:e,purchaseLocation:n,upgradeToProFunnelID:r}})}}function*_9(e,{meta:t}){const n=yield*Ar(uw);try{const[r]=yield*Dr([kr(()=>e.api.generateStripeCheckoutUrl()),Or(3e3,null)]);if(null==r)return Vj({username:n}),void(yield*Er(JS.success(!1,t.requestId)));const a="checkout.stripe.com"===new URL(r.url).host;a?qj({title:"Billing",url:r.url}):Vj({username:n}),yield*Er(JS.success(a,t.requestId))}catch(e){Vj({username:n}),yield*Er(JS.success(!1,t.requestId))}}function*b9(e){yield*Rr([br(BS,P9),br(qS,P9),br(WS,g9),br(MS.toString(),v9),br(JS.request,_9,e)])}function*P9(){try{yield*ji(Pl)}catch(e){}finally{yield*Er($S())}}function*w9({shouldSkipLogin:e},t,n){const r=!t.settings.getDeprecatedUserStr();if(yield*Er(Wy({freePlan:r})),yield*Er(as({lastSyncDate:t.settings.getDeprecatedLastSync(),syncKeysAndIdentities:t.settings.isSynchingKeys()})),SR&&(yield*Er(mz())),yield*Er(Hc()),yield*Er(gy()),yield*kr(I9),yield*Er(IM.request()),e)return void(yield*kr(A9,!0,t,n));const a=yield*ji(HO);if(!FS.didUserSeeSuggestionToTryPremium()&&!t.settings.getDeprecatedUserStr()&&!a){TS.info("Show onboarding");try{FS.isDeprecatedWelcomeScreenOpenedEventSend()||(yield*Er(sy()),FS.setDeprecatedWelcomeScreenOpenedEventSend()),yield*ji(Oj,"WelcomeScreen"),yield*kr(A9,!0,t,n)}catch(e){}return void(yield*kr(O9,t))}FS.setDeprecatedUserSentAcquisitionChannel();const i=yield*Ar(MP),{isRestored:s,isFreeUser:o}=yield*kr({context:t,fn:"tryToRestoreUser"},i);yield*kr(A9,s,t,n),s&&!o&&(yield*kr(x9,t))}function*E9(e,t){yield*Tr(k9,e,t),yield*Tr(c9,e),yield*Tr(U6),yield*br("*",N9)}function*k9(e,t){yield*br(Ul.success,C9,e,t),yield*br(eN,A9,!1,e,t),yield*br(Gl,T9,e)}function*T9(e){yield*Er(uJ(e.settings)),yield*kr(O9,e)}function*C9(e,t){yield*kr(A9,!0,e,t),FS.clearKnownHosts(),FS.removeDeprecatedSubscriptionExpired(),yield*kr(O9,e)}function*I9(){(yield*kr({context:eB,fn:"isAvailable"},"SHALLOW_CHECK"))&&(yield*Er(nO()))}function*A9(e,t,n){if(!e){const e=yield*Ar(uw);e&&N6.setProps({isUserReLogin:!0}),yield*Er(wW(!1)),yield*kr(oG,n,{dialog:"SignInScreen",target:"all-windows",props:{initEmail:null!=e?e:""}})}yield*Er(uJ(t.settings)),yield*kr(O9,t),yield*Er(wW(!0))}function*O9(e){FS.getLocalKeyIsReady()||TS.exception("Trying to refresh redux store while local key is not ready yet",new Error);try{yield*Er(VA(XM(e))),yield*Er(rB(GM(e)))}catch(e){throw TS.exception("Failed updating entries in redux",e),e}yield*Er($A.request()),yield*Er(Mc.request()),yield*Er(OV.request()),yield*Er(bG.request())}async function x9(e){let t;try{t=await e.auth.updateUserProfile(),TS.info("Updated user profile")}catch(e){return 401===e.status?void TS.info("Unauthorized user"):null==e.status?void TS.exception("Failed to update user profile",e):void TS.info("Unable to update user profile: "+e.status)}try{await e.signedIn(t),TS.info("Signed in a remembered user")}catch(e){return void TS.exception("Failed to signin a remembered user",e)}try{await e.api.updateDevice(NN.toJSON())}catch(e){if(null==e.status)return void TS.exception("Failed to update user device",e);TS.info("Unable to update user device: "+e.status)}}function N9(e){TS.info("got redux action: "+e.type)}J(),global.addEventListener("error",e=>{const{error:t,message:n}=e;uG.includes(n)||TS.exception("Unhandled Error",t)}),global.addEventListener("unhandledrejection",e=>{const{reason:t}=e;t instanceof cG||TS.exception("Unhandled Promise Rejection",t)});const R9=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||je;function*D9(e){var t,n;if(!(e.getDeprecatedUserStr()&&!e.getDeprecatedUserId()))return;const r=yield*_r(({type:e,payload:t})=>{var n;return e===wl.toString()&&!!(null===(n=null==t?void 0:t.account)||void 0===n?void 0:n.user_id)||e===Ul.success.toString()});wl.match(r)&&(yield*kr({context:e,fn:"setDeprecatedUserId"},null!==(n=null===(t=r.payload.account)||void 0===t?void 0:t.user_id)&&void 0!==n?n:null))}(async function(){TS.info("main has started");const e=Dn({onError:sJ}),{persistedReducer:t,persistedSaga:n}=function(){const e=Ze({key:"root",storage:hJ.a,version:xY.length-1,whitelist:["globalTerminalSettings","localTerminalPath","snippetsPanel","sorting","sftp","experiments","promotion","ui","layout","history","keyExchangePopups","controlCenter","user","quickConnectSettings","connectionFlow","stats","customerExperience","onboardings"],transforms:[HY,FY,GY,SJ],migrate:at(xY)},IY);return{persistedReducer:function(t,n){return n.type===Be?{...t,_persist:{...t._persist,rehydrated:!0}}:e(t,n)},persistedSaga:function*(){const t=yield*_r(({type:e})=>e===Be);t.err&&TS.exception("Redux Persist Rehydrate has failed",t.err);const n=yield*Ar(),r=e(n,t);delete r._persist,yield*Er(Vi(r))}}}(),r=Le(t,p.ipcRenderer.sendSync("init-redux"),R9(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(n,r,a){var i,s=e(n,r,a),o=s.dispatch,l={getState:s.getState,dispatch:function(e){return o(e)}};return i=t.map((function(e){return e(l)})),o=je.apply(void 0,i)(s.dispatch),Me({},s,{dispatch:o})}}}((a=1,e=>e=>t=>{var n;return e("local"===(null===(n=t.meta)||void 0===n?void 0:n.scope)?t:Ox()({meta:{windowId:a}},t))}),d.forwardToMain,e)));var a;Object(d.replayActionRenderer)(r);const i=async()=>await Mi(e,lJ),o=(h=r.getState(),c=h.app.userDataPath,Object(Wi.join)("string"==typeof c?c:c.getPath("userData"),"session-logs"));var c,h;await Object(s.mkdir)(o,{recursive:!0});const f=new PH(new Ja({base_url:"https://api.termius.com",client_version:NN.toJSON().app_version,platform:"Desktop",isSSLVerificationFailedCallback:i}),new aG(i),RF,new iG,r.dispatch,new yD(o));f.on(f.event_names.UNAUTHORIZED_401,()=>{e.run(A9,!1,f,e)}),f.on(f.event_names.FORBIDDEN_403,()=>{qP(r.getState())&&r.dispatch(Pl.request())}),f.on(f.event_names.BLOCK_ACCESS,()=>{oG(e,{dialog:"BlockAccess",target:"all-windows",props:{logout:!0,hasUnsyncedEntities:f.store.hasUnsyncedEntities()}}).catch(Se.a)}),e.run(iJ),e.run(HA,{platform:jj,arch:Object(l.arch)(),version:u.app.getVersion(),installSource:mR,api:f}),e.run(aJ,f),e.run(E9,f,e),e.run(n),function(e,t,n){var r=n||!1,a=Le(rt,nt,t?t.enhancer:void 0),i=function(e){a.dispatch({type:Ke,key:e})},s=function(t,n,i){var s={type:Be,payload:n,err:i,key:t};e.dispatch(s),a.dispatch(s),r&&o.getState().bootstrapped&&(r(),r=!1)},o=et({},a,{purge:function(){var t=[];return e.dispatch({type:"persist/PURGE",result:function(e){t.push(e)}}),Promise.all(t)},flush:function(){var t=[];return e.dispatch({type:"persist/FLUSH",result:function(e){t.push(e)}}),Promise.all(t)},pause:function(){e.dispatch({type:"persist/PAUSE"})},persist:function(){e.dispatch({type:"persist/PERSIST",register:i,rehydrate:s})}});o.persist()}(r),await f.testSystemKeychain(),await f.migrateKeychainFromWebsiteToMAS();const m=FS.getLocalKeyIsReady(),S=await f.getLocalKey(),y=FS.getLocalKey();TS.info("localKey metadata",function(e,t,n,r){const a={key:pJ(e),source:r?"keychain":"localStorage",is_ready:t.toString()};return r&&null!=n&&(a.local_storage_key=pJ(n)),a}(S,m,y,f.systemHasKeychain)),await f.settings.initializeStorage(),r.dispatch(uJ(f.settings)),e.run(D9,f.settings);let g=!1;if(!S&&m){await f.store.init(),TS.info("Decryption key not found, open error dialog"),oG(e,{dialog:"DecryptionKeyNotFoundDialog",target:"all-windows",props:{}}).catch(Se.a);const{meta:t}=await cJ(e,$i.request);try{await f.init(),r.dispatch($i.success(void 0,t.requestId))}catch(e){throw r.dispatch($i.failure(void 0,t.requestId)),e}const{payload:n}=await cJ(e,xj);g=n}else await f.init();TS.info("Application started"),e.run(w9,{shouldSkipLogin:g},f,e)})().then(()=>TS.info("main has finished"),e=>TS.exception("Cannot start the application",e))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var r=n(14),a=n(69),i={nowSeconds:function(){return Date.now()/1e3}};var s=Object(a.b)()?function(){try{return Object(a.a)(e,"perf_hooks").performance}catch(e){return}}():function(){var e=Object(r.e)().performance;if(e&&e.now)return{now:function(){return e.now()},timeOrigin:Date.now()-e.now()}}(),o=void 0===s?i:{nowSeconds:function(){return(s.timeOrigin+s.now())/1e3}},l=i.nowSeconds.bind(i);o.nowSeconds.bind(o),function(){var e=Object(r.e)().performance;if(e)e.timeOrigin?e.timeOrigin:e.timing&&e.timing.navigationStart||Date.now()}()}).call(this,n(99)(e))}]);
//# sourceMappingURL=background-process.js.map