diff --git a/languages/en_US/helptext.txt b/languages/en_US/helptext.txt index 9cf486f7f..4cc81c672 100644 --- a/languages/en_US/helptext.txt +++ b/languages/en_US/helptext.txt @@ -1136,7 +1136,7 @@ Determines how the webGUI responds to HTTP and/or HTTPS protocol on your LAN. Select **No** to disable HTTPS. Select **Yes** to enable HTTPS and redirect HTTP to HTTPS. A -self-signed SSL certificate will be generated automatically. +self-signed SSL certificate will be generated automatically if a Let's Encrypt SSL certificate has not been provisioned. Select **Auto** if you have *Provisioned* a Let's Encrypt SSL certificate. In this case webGUI access will use HTTPS with the Let's Encrypt @@ -1191,10 +1191,10 @@ Enter your local Top Level Domain. May be blank. :mgmt_certificate_expiration_help: **Provision** may be used to install a *free* SSL Certficiate from -[Let's Encrypt](https://letsencrypt.org/). +[Let's Encrypt](https://letsencrypt.org/), if the server is signed in to unraid.net. After a Let's Encrypt SSL Certificate has been installed, two -background services are activated: +background services are activated while the server is signed in to unraid.net: - *updatedns* - This starts 30 seconds after server reboot has completed and contacts the Lime Technology DNS service to register the servers local IP address. Thereafter it wakes up every 10 minutes in case @@ -1207,7 +1207,7 @@ provisioned and downloaded to your server. **Delete** may be used to delete the Let's Encrypt certificate file. -**Update DNS** may be used to manually initiate updating the DNS A-record of your server FQDN on unraid.net. Note +**Update DNS** may be used to manually initiate updating the DNS A-record of your server FQDN on unraid.net, assuming the server is signed in. Note that world-wide DNS propagation could take anywhere from 1 minute to several hours (we set TTL to 60 seconds). For this reason, we also recommend assigning a static IP address to the server on your LAN. diff --git a/plugins/dynamix.my.servers/include/myservers2.php b/plugins/dynamix.my.servers/include/myservers2.php index 6a92dd892..3bf117027 100644 --- a/plugins/dynamix.my.servers/include/myservers2.php +++ b/plugins/dynamix.my.servers/include/myservers2.php @@ -57,6 +57,19 @@ 'openDropdown' => _('Open dropdown'), 'pleaseConfirmClosureYouHaveOpenPopUp' => _('Please confirm closure').'. '._('You have an open pop-up').'.', 'trialHasExpiredSeeOptions' => _('Trial has expired see options below'), + 'errorCertRequiresSignIn' => _('Sign In before your Unraid.net SSL certificate expires'), + 'noRemoteApikeyRegisteredWithPlg' => [ + 'heading' => _('My Servers Error'), + 'msg' => _('Unraid.net re-authentication required'), + ], + 'errorTooManyDisks' => [ + 'heading' => 'Too many devices', + 'msg' => [ + 'base' => 'You must upgrade your key to support more devices.', + 'basic' => 'Your Basic key supports 6 devices.', + 'plus' => 'Your Plus key supports 12 devices.', + ], + ], 'extraLinks' => [ 'newTab' => sprintf(_('Opens %s in new tab'), '{0}'), 'myServers' => _('My Servers Dashboard'), @@ -436,8 +449,10 @@ ], ], 'wanIpCheck' => [ + 'checking' => _('Checking Wan IPs'), 'match' => sprintf(_('Remark: your WAN IPv4 is **%s**'), '{0}'), 'mismatch' => sprintf(_("Remark: Unraid's WAN IPv4 **%1s** does not match your client's WAN IPv4 **%2s**"), '{0}', '{1}').'. '._('This may indicate a complex network that will not work with this Remote Access solution').'. '._('Ignore this message if you are currently connected via Remote Access or VPN').'.', + 'resolveError' => _('DNS issue, unable to resolve mothership.unraid.net'), ], ], ]; @@ -459,6 +474,7 @@ "internalip" => $_SERVER['SERVER_ADDR'], "internalport" => $_SERVER['SERVER_PORT'], "keyfile" => str_replace(['+','/','='], ['-','_',''], trim(base64_encode(@file_get_contents($var['regFILE'])))), + "osVersion" => $var['version'], "plgVersion" => 'base-'.$var['version'], "protocol" => $_SERVER['REQUEST_SCHEME'], "reggen" => (int)$var['regGen'], @@ -472,6 +488,7 @@ 'configError' => $var['configValid'] !== 'yes' ? (array_key_exists($var['configValid'], $configErrorEnum) ? $configErrorEnum[$var['configValid']] : 'UNKNOWN_ERROR') : null, + 'hasUnraidNetSSL' => file_exists('/boot/config/ssl/certs/certificate_bundle.pem') ? preg_match('/.*\.unraid\.net$/', $_SERVER['SERVER_NAME']) : 0, // required for boolean to check if user has unraid.net Let's Encrypt cert. Using for a less expensive check w/ $_SERVER['SERVER_NAME'] compared to reading cert file contents on every page load ]; ?> 0&&o(e[0]);)e.shift();for(;e.length>0&&o(e[e.length-1]);)e.pop();return e.join("\n")}function i(t){for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=-1===t.indexOf("\n"),i=" "===t[0]||"\t"===t[0],o='"'===t[t.length-1],a=!n||o||r,s="";return!a||n&&i||(s+="\n"+e),s+=e?t.replace(/\n/g,"\n"+e):t,a&&(s+="\n"),'"""'+s.replace(/"""/g,'\\"""')+'"""'}r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return a}))},"07c7":function(t,e){t.exports=function(){return!1}},"087d":function(t,e){t.exports=function(t,e){for(var r=-1,n=e.length,i=t.length;++r0&&t.jitter<=1?t.jitter:0,this.attempts=0}t.exports=r,r.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),r=Math.floor(e*this.jitter*t);t=0==(1&Math.floor(10*e))?t-r:t+r}return 0|Math.min(t,this.max)},r.prototype.reset=function(){this.attempts=0},r.prototype.setMin=function(t){this.ms=t},r.prototype.setMax=function(t){this.max=t},r.prototype.setJitter=function(t){this.jitter=t}},"0d24":function(t,e,r){(function(t){var n=r("2b3e"),i=r("07c7"),o=e&&!e.nodeType&&e,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===o?n.Buffer:void 0,c=(s?s.isBuffer:void 0)||i;t.exports=c}).call(this,r("62e4")(t))},"10f4":function(t,e,r){var n=r("8dac");n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=r("35d6").default;t.exports.__inject__=function(t){i("5292f54b",n,t)}},1290:function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},1310:function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},1368:function(t,e,r){var n=r("da03"),i=function(){var t=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=function(t){return!!i&&i in t}},1838:function(t,e,r){var n=r("c05f"),i=r("9b02"),o=r("8604"),a=r("f608"),s=r("08cc"),c=r("20ec"),u=r("f4d6");t.exports=function(t,e){return a(t)&&s(e)?c(u(t),e):function(r){var a=i(r,t);return void 0===a&&a===e?o(r,t):n(e,a,3)}}},"18d8":function(t,e,r){var n=r("234d"),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,r,n,i){e.push(n?i.replace(o,"$1"):r||t)})),e}));t.exports=a},"1a8c":function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},"1c3c":function(t,e,r){var n=r("9e69"),i=r("2474"),o=r("9638"),a=r("a2be"),s=r("edfa"),c=r("ac41"),u=n?n.prototype:void 0,l=u?u.valueOf:void 0;t.exports=function(t,e,r,n,u,p,d){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!p(new i(t),new i(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var f=s;case"[object Set]":var h=1&n;if(f||(f=c),t.size!=e.size&&!h)return!1;var m=d.get(t);if(m)return m==e;n|=2,d.set(t,e);var v=a(f(t),f(e),n,u,p,d);return d.delete(t),v;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},"1cec":function(t,e,r){var n=r("0b07")(r("2b3e"),"Promise");t.exports=n},"1eca":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return null!==t&&"object"==typeof t}},"1efc":function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},"1fc8":function(t,e,r){var n=r("4245");t.exports=function(t,e){var r=n(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}},"20ec":function(t,e){t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},2251:function(t,e,r){"use strict";r.r(e);var n=r("3661");for(var i in n)["default"].indexOf(i)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(i)},"22c9":function(t,e,r){"use strict";r.r(e);var n=r("470a");for(var i in n)["default"].indexOf(i)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(i)},"234d":function(t,e,r){var n=r("e380");t.exports=function(t){var e=n(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}},"23ad":function(t,e,r){t.exports=function(){"use strict";var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(e,r,n){var i=r.prototype,o=i.format;n.en.formats=t,i.format=function(e){void 0===e&&(e="YYYY-MM-DDTHH:mm:ssZ");var r=this.$locale().formats,n=function(e,r){return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,n,i){var o=i&&i.toUpperCase();return n||r[i]||t[i]||r[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,r){return e||r.slice(1)}))}))}(e,void 0===r?{}:r);return o.call(this,n)}}}()},"242e":function(t,e,r){var n=r("72af"),i=r("ec69");t.exports=function(t,e){return t&&n(t,e,i)}},2474:function(t,e,r){var n=r("2b3e").Uint8Array;t.exports=n},2478:function(t,e,r){var n=r("4245");t.exports=function(t){return n(this,t).get(t)}},"24fb":function(t,e,r){"use strict";function n(t,e){var r=t[1]||"",n=t[3];if(!n)return r;if(e&&"function"==typeof btoa){var i=function(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(r," */")}(n),o=n.sources.map((function(t){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(t," */")}));return[r].concat(o).concat([i]).join("\n")}return[r].join("\n")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r=n(e,t);return e[2]?"@media ".concat(e[2]," {").concat(r,"}"):r})).join("")},e.i=function(t,r,n){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(n)for(var o=0;o=0&&Math.floor(e)===e&&isFinite(t)}function p(t){return i(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function d(t){return null==t?"":Array.isArray(t)||u(t)&&t.toString===c?JSON.stringify(t,null,2):String(t)}function f(t){var e=parseFloat(t);return isNaN(e)?t:e}function h(t,e){for(var r=Object.create(null),n=t.split(","),i=0;i-1)return t.splice(r,1)}}var g=Object.prototype.hasOwnProperty;function b(t,e){return g.call(t,e)}function y(t){var e=Object.create(null);return function(r){return e[r]||(e[r]=t(r))}}var _=/-(\w)/g,w=y((function(t){return t.replace(_,(function(t,e){return e?e.toUpperCase():""}))})),x=y((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),E=/\B([A-Z])/g,S=y((function(t){return t.replace(E,"-$1").toLowerCase()}));var k=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function r(r){var n=arguments.length;return n?n>1?t.apply(e,arguments):t.call(e,r):t.call(e)}return r._length=t.length,r};function O(t,e){e=e||0;for(var r=t.length-e,n=new Array(r);r--;)n[r]=t[r+e];return n}function T(t,e){for(var r in e)t[r]=e[r];return t}function j(t){for(var e={},r=0;r0,K=H&&H.indexOf("edge/")>0,J=(H&&H.indexOf("android"),H&&/iphone|ipad|ipod|ios/.test(H)||"ios"===W),X=(H&&/chrome\/\d+/.test(H),H&&/phantomjs/.test(H),H&&H.match(/firefox\/(\d+)/)),Z={}.watch,tt=!1;if(B)try{var et={};Object.defineProperty(et,"passive",{get:function(){tt=!0}}),window.addEventListener("test-passive",null,et)}catch(t){}var rt=function(){return void 0===z&&(z=!B&&!G&&void 0!==t&&t.process&&"server"===t.process.env.VUE_ENV),z},nt=B&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function it(t){return"function"==typeof t&&/native code/.test(t.toString())}var ot,at="undefined"!=typeof Symbol&&it(Symbol)&&"undefined"!=typeof Reflect&&it(Reflect.ownKeys);ot="undefined"!=typeof Set&&it(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var st=C,ct=0,ut=function(){this.id=ct++,this.subs=[]};ut.prototype.addSub=function(t){this.subs.push(t)},ut.prototype.removeSub=function(t){v(this.subs,t)},ut.prototype.depend=function(){ut.target&&ut.target.addDep(this)},ut.prototype.notify=function(){for(var t=this.subs.slice(),e=0,r=t.length;e-1)if(o&&!b(i,"default"))a=!1;else if(""===a||a===S(t)){var c=Vt(String,i.type);(c<0||s0&&(le((c=t(c,(r||"")+"_"+s))[0])&&le(l)&&(p[u]=vt(l.text+c[0].text),c.shift()),p.push.apply(p,c)):a(c)?le(l)?p[u]=vt(l.text+c):""!==c&&p.push(vt(c)):le(c)&&le(l)?p[u]=vt(l.text+c.text):(o(e._isVList)&&i(c.tag)&&n(c.key)&&i(r)&&(c.key="__vlist"+r+"_"+s+"__"),p.push(c)));return p}(t):void 0}function le(t){return i(t)&&i(t.text)&&function(t){return!1===t}(t.isComment)}function pe(t,e){if(t){for(var r=Object.create(null),n=at?Reflect.ownKeys(t):Object.keys(t),i=0;i0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&n&&n!==r&&s===n.$key&&!o&&!n.$hasNormal)return n;for(var c in i={},t)t[c]&&"$"!==c[0]&&(i[c]=ve(e,c,t[c]))}else i={};for(var u in e)u in i||(i[u]=ge(e,u));return t&&Object.isExtensible(t)&&(t._normalized=i),$(i,"$stable",a),$(i,"$key",s),$(i,"$hasNormal",o),i}function ve(t,e,r){var n=function(){var t=arguments.length?r.apply(null,arguments):r({}),e=(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:ue(t))&&t[0];return t&&(!e||e.isComment&&!he(e))?void 0:t};return r.proxy&&Object.defineProperty(t,e,{get:n,enumerable:!0,configurable:!0}),n}function ge(t,e){return function(){return t[e]}}function be(t,e){var r,n,o,a,c;if(Array.isArray(t)||"string"==typeof t)for(r=new Array(t.length),n=0,o=t.length;ndocument.createEvent("Event").timeStamp&&(fr=function(){return hr.now()})}function mr(){var t,e;for(dr=fr(),lr=!0,ar.sort((function(t,e){return t.id-e.id})),pr=0;prpr&&ar[r].id>t.id;)r--;ar.splice(r+1,0,t)}else ar.push(t);ur||(ur=!0,ee(mr))}}(this)},gr.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||s(t)||this.deep){var e=this.value;if(this.value=t,this.user){var r='callback for watcher "'+this.expression+'"';qt(this.cb,this.vm,[t,e],this.vm,r)}else this.cb.call(this.vm,t,e)}}},gr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},gr.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},gr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||v(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var br={enumerable:!0,configurable:!0,get:C,set:C};function yr(t,e,r){br.get=function(){return this[e][r]},br.set=function(t){this[e][r]=t},Object.defineProperty(t,r,br)}function _r(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var r=t.$options.propsData||{},n=t._props={},i=t.$options._propKeys=[];!t.$parent||xt(!1);var o=function(o){i.push(o);var a=Lt(o,e,r,t);kt(n,o,a),o in t||yr(t,"_props",o)};for(var a in e)o(a);xt(!0)}(t,e.props),e.methods&&function(t,e){for(var r in t.$options.props,e)t[r]="function"!=typeof e[r]?C:k(e[r],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;u(e=t._data="function"==typeof e?function(t,e){pt();try{return t.call(e,e)}catch(t){return zt(t,e,"data()"),{}}finally{dt()}}(e,t):e||{})||(e={});var r=Object.keys(e),n=t.$options.props,i=(t.$options.methods,r.length);for(;i--;){var o=r[i];n&&b(n,o)||F(o)||yr(t,"_data",o)}St(e,!0)}(t):St(t._data={},!0),e.computed&&function(t,e){var r=t._computedWatchers=Object.create(null),n=rt();for(var i in e){var o=e[i],a="function"==typeof o?o:o.get;n||(r[i]=new gr(t,a||C,C,wr)),i in t||xr(t,i,o)}}(t,e.computed),e.watch&&e.watch!==Z&&function(t,e){for(var r in e){var n=e[r];if(Array.isArray(n))for(var i=0;i-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!function(t){return"[object RegExp]"===c.call(t)}(t)&&t.test(e)}function Rr(t,e){var r=t.cache,n=t.keys,i=t._vnode;for(var o in r){var a=r[o];if(a){var s=a.name;s&&!e(s)&&Nr(r,o,n,i)}}}function Nr(t,e,r,n){var i=t[e];!i||n&&i.tag===n.tag||i.componentInstance.$destroy(),t[e]=null,v(r,e)}(function(t){t.prototype._init=function(t){var e=this;e._uid=Or++,e._isVue=!0,t&&t._isComponent?function(t,e){var r=t.$options=Object.create(t.constructor.options),n=e._parentVnode;r.parent=e.parent,r._parentVnode=n;var i=n.componentOptions;r.propsData=i.propsData,r._parentListeners=i.listeners,r._renderChildren=i.children,r._componentTag=i.tag,e.render&&(r.render=e.render,r.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Pt(Tr(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,r=e.parent;if(r&&!e.abstract){for(;r.$options.abstract&&r.$parent;)r=r.$parent;r.$children.push(t)}t.$parent=r,t.$root=r?r.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Ze(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,i=n&&n.context;t.$slots=de(e._renderChildren,i),t.$scopedSlots=r,t._c=function(e,r,n,i){return Ve(t,e,r,n,i,!1)},t.$createElement=function(e,r,n,i){return Ve(t,e,r,n,i,!0)};var o=n&&n.data;kt(t,"$attrs",o&&o.attrs||r,null,!0),kt(t,"$listeners",e._parentListeners||r,null,!0)}(e),or(e,"beforeCreate"),function(t){var e=pe(t.$options.inject,t);e&&(xt(!1),Object.keys(e).forEach((function(r){kt(t,r,e[r])})),xt(!0))}(e),_r(e),function(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}(e),or(e,"created"),e.$options.el&&e.$mount(e.$options.el)}})(jr),function(t){Object.defineProperty(t.prototype,"$data",{get:function(){return this._data}}),Object.defineProperty(t.prototype,"$props",{get:function(){return this._props}}),t.prototype.$set=Ot,t.prototype.$delete=Tt,t.prototype.$watch=function(t,e,r){var n=this;if(u(e))return kr(n,t,e,r);(r=r||{}).user=!0;var i=new gr(n,t,e,r);if(r.immediate){var o='callback for immediate watcher "'+i.expression+'"';pt(),qt(e,n,[i.value],n,o),dt()}return function(){i.teardown()}}}(jr),function(t){var e=/^hook:/;t.prototype.$on=function(t,r){var n=this;if(Array.isArray(t))for(var i=0,o=t.length;i1?O(r):r;for(var n=O(arguments,1),i='event handler for "'+t+'"',o=0,a=r.length;oparseInt(this.max)&&Nr(e,r[0],r,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Nr(this.cache,t,this.keys)},mounted:function(){var t=this;this.cacheVNode(),this.$watch("include",(function(e){Rr(t,(function(t){return Ir(e,t)}))})),this.$watch("exclude",(function(e){Rr(t,(function(t){return!Ir(e,t)}))}))},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,e=Ye(t),r=e&&e.componentOptions;if(r){var n=Ar(r),i=this.include,o=this.exclude;if(i&&(!n||!Ir(i,n))||o&&n&&Ir(o,n))return e;var a=this.cache,s=this.keys,c=null==e.key?r.Ctor.cid+(r.tag?"::"+r.tag:""):e.key;a[c]?(e.componentInstance=a[c].componentInstance,v(s,c),s.push(c)):(this.vnodeToCache=e,this.keyToCache=c),e.data.keepAlive=!0}return e||t&&t[0]}}};(function(t){var e={get:function(){return U}};Object.defineProperty(t,"config",e),t.util={warn:st,extend:T,mergeOptions:Pt,defineReactive:kt},t.set=Ot,t.delete=Tt,t.nextTick=ee,t.observable=function(t){return St(t),t},t.options=Object.create(null),M.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,T(t.options.components,Pr),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var r=O(arguments,1);return r.unshift(this),"function"==typeof t.install?t.install.apply(t,r):"function"==typeof t&&t.apply(null,r),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Pt(this.options,t),this}}(t),Cr(t),function(t){M.forEach((function(e){t[e]=function(t,r){return r?("component"===e&&u(r)&&(r.name=r.name||t,r=this.options._base.extend(r)),"directive"===e&&"function"==typeof r&&(r={bind:r,update:r}),this.options[e+"s"][t]=r,r):this.options[e+"s"][t]}}))}(t)})(jr),Object.defineProperty(jr.prototype,"$isServer",{get:rt}),Object.defineProperty(jr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(jr,"FunctionalRenderContext",{value:Ne}),jr.version="2.6.13";var Mr=h("style,class"),Lr=h("input,textarea,option,select,progress"),Ur=h("contenteditable,draggable,spellcheck"),Fr=h("events,caret,typing,plaintext-only"),$r=h("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),Vr="http://www.w3.org/1999/xlink",zr=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},qr=function(t){return zr(t)?t.slice(6,t.length):""},Br=function(t){return null==t||!1===t};function Gr(t){for(var e=t.data,r=t,n=t;i(n.componentInstance);)(n=n.componentInstance._vnode)&&n.data&&(e=Wr(n.data,e));for(;i(r=r.parent);)r&&r.data&&(e=Wr(e,r.data));return function(t,e){return i(t)||i(e)?Hr(t,Qr(e)):""}(e.staticClass,e.class)}function Wr(t,e){return{staticClass:Hr(t.staticClass,e.staticClass),class:i(t.class)?[t.class,e.class]:e.class}}function Hr(t,e){return t?e?t+" "+e:t:e||""}function Qr(t){return Array.isArray(t)?function(t){for(var e,r="",n=0,o=t.length;n-1?bn(t,e,r):$r(e)?Br(r)?t.removeAttribute(e):(r="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,r)):Ur(e)?t.setAttribute(e,function(t,e){return Br(e)||"false"===e?"false":"contenteditable"===t&&Fr(e)?e:"true"}(e,r)):zr(e)?Br(r)?t.removeAttributeNS(Vr,qr(e)):t.setAttributeNS(Vr,e,r):bn(t,e,r)}function bn(t,e,r){if(Br(r))t.removeAttribute(e);else{if(Q&&!Y&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==r&&!t.__ieph){var n=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",n)};t.addEventListener("input",n),t.__ieph=!0}t.setAttribute(e,r)}}var yn={create:vn,update:vn};function _n(t,e){var r=e.elm,o=e.data,a=t.data;if(!(n(o.staticClass)&&n(o.class)&&(n(a)||n(a.staticClass)&&n(a.class)))){var s=Gr(e),c=r._transitionClasses;i(c)&&(s=Hr(s,Qr(c))),s!==r._prevClass&&(r.setAttribute("class",s),r._prevClass=s)}}var wn,xn={create:_n,update:_n};function En(t){if(i(t.__r)){var e=Q?"change":"input";t[e]=[].concat(t.__r,t[e]||[]),delete t.__r}i(t.__c)&&(t.change=[].concat(t.__c,t.change||[]),delete t.__c)}function Sn(t,e,r){var n=wn;return function i(){var o=e.apply(null,arguments);null!==o&&Tn(t,i,r,n)}}var kn=Ht&&!(X&&Number(X[1])<=53);function On(t,e,r,n){if(kn){var i=dr,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}wn.addEventListener(t,e,tt?{capture:r,passive:n}:r)}function Tn(t,e,r,n){(n||wn).removeEventListener(t,e._wrapper||e,r)}function jn(t,e){if(!n(t.data.on)||!n(e.data.on)){var r=e.data.on||{},i=t.data.on||{};wn=e.elm,En(r),ae(r,i,On,Tn,Sn,e.context),wn=void 0}}var Cn,An={create:jn,update:jn};function In(t,e){if(!n(t.data.domProps)||!n(e.data.domProps)){var r,o,a=e.elm,s=t.data.domProps||{},c=e.data.domProps||{};for(r in i(c.__ob__)&&(c=e.data.domProps=T({},c)),s)r in c||(a[r]="");for(r in c){if(o=c[r],"textContent"===r||"innerHTML"===r){if(e.children&&(e.children.length=0),o===s[r])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===r&&"PROGRESS"!==a.tagName){a._value=o;var u=n(o)?"":String(o);Rn(a,u)&&(a.value=u)}else if("innerHTML"===r&&Jr(a.tagName)&&n(a.innerHTML)){(Cn=Cn||document.createElement("div")).innerHTML=""+o+"";for(var l=Cn.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;l.firstChild;)a.appendChild(l.firstChild)}else if(o!==s[r])try{a[r]=o}catch(t){}}}}function Rn(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var r=!0;try{r=document.activeElement!==t}catch(t){}return r&&t.value!==e}(t,e)||function(t,e){var r=t.value,n=t._vModifiers;if(i(n)){if(n.number)return f(r)!==f(e);if(n.trim)return r.trim()!==e.trim()}return r!==e}(t,e))}var Nn={create:In,update:In},Dn=y((function(t){var e={},r=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var n=t.split(r);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}));function Pn(t){var e=Mn(t.style);return t.staticStyle?T(t.staticStyle,e):e}function Mn(t){return Array.isArray(t)?j(t):"string"==typeof t?Dn(t):t}var Ln,Un=/^--/,Fn=/\s*!important$/,$n=function(t,e,r){if(Un.test(e))t.style.setProperty(e,r);else if(Fn.test(r))t.style.setProperty(S(e),r.replace(Fn,""),"important");else{var n=zn(e);if(Array.isArray(r))for(var i=0,o=r.length;i-1?e.split(Gn).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var r=" "+(t.getAttribute("class")||"")+" ";r.indexOf(" "+e+" ")<0&&t.setAttribute("class",(r+e).trim())}}function Hn(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Gn).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var r=" "+(t.getAttribute("class")||"")+" ",n=" "+e+" ";r.indexOf(n)>=0;)r=r.replace(n," ");(r=r.trim())?t.setAttribute("class",r):t.removeAttribute("class")}}function Qn(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&T(e,Yn(t.name||"v")),T(e,t),e}return"string"==typeof t?Yn(t):void 0}}var Yn=y((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),Kn=B&&!Y,Jn="transition",Xn="animation",Zn="transition",ti="transitionend",ei="animation",ri="animationend";Kn&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Zn="WebkitTransition",ti="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(ei="WebkitAnimation",ri="webkitAnimationEnd"));var ni=B?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function ii(t){ni((function(){ni(t)}))}function oi(t,e){var r=t._transitionClasses||(t._transitionClasses=[]);r.indexOf(e)<0&&(r.push(e),Wn(t,e))}function ai(t,e){t._transitionClasses&&v(t._transitionClasses,e),Hn(t,e)}function si(t,e,r){var n=ui(t,e),i=n.type,o=n.timeout,a=n.propCount;if(!i)return r();var s=i===Jn?ti:ri,c=0,u=function(){t.removeEventListener(s,l),r()},l=function(e){e.target===t&&++c>=a&&u()};setTimeout((function(){c0&&(r=Jn,l=a,p=o.length):e===Xn?u>0&&(r=Xn,l=u,p=c.length):p=(r=(l=Math.max(a,u))>0?a>u?Jn:Xn:null)?r===Jn?o.length:c.length:0,{type:r,timeout:l,propCount:p,hasTransform:r===Jn&&ci.test(n[Zn+"Property"])}}function li(t,e){for(;t.length1}function vi(t,e){!0!==e.data.show&&di(e)}var gi=function(t){var e,r,s={},c=t.modules,u=t.nodeOps;for(e=0;eh?_(t,n(r[g+1])?null:r[g+1].elm,r,f,g,o):f>g&&x(e,d,h)}function k(t,e,r,n){for(var o=r;o-1,a.selected!==o&&(a.selected=o);else if(R(xi(a),n))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function wi(t,e){return e.every((function(e){return!R(e,t)}))}function xi(t){return"_value"in t?t._value:t.value}function Ei(t){t.target.composing=!0}function Si(t){t.target.composing&&(t.target.composing=!1,ki(t.target,"input"))}function ki(t,e){var r=document.createEvent("HTMLEvents");r.initEvent(e,!0,!0),t.dispatchEvent(r)}function Oi(t){return!t.componentInstance||t.data&&t.data.transition?t:Oi(t.componentInstance._vnode)}var Ti={model:bi,show:{bind:function(t,e,r){var n=e.value,i=(r=Oi(r)).data&&r.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;n&&i?(r.data.show=!0,di(r,(function(){t.style.display=o}))):t.style.display=n?o:"none"},update:function(t,e,r){var n=e.value;!n!=!e.oldValue&&((r=Oi(r)).data&&r.data.transition?(r.data.show=!0,n?di(r,(function(){t.style.display=t.__vOriginalDisplay})):fi(r,(function(){t.style.display="none"}))):t.style.display=n?t.__vOriginalDisplay:"none")},unbind:function(t,e,r,n,i){i||(t.style.display=t.__vOriginalDisplay)}}},ji={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Ci(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Ci(Ye(e.children)):t}function Ai(t){var e={},r=t.$options;for(var n in r.propsData)e[n]=t[n];var i=r._parentListeners;for(var o in i)e[w(o)]=i[o];return e}function Ii(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var Ri=function(t){return t.tag||he(t)},Ni=function(t){return"show"===t.name},Di={name:"transition",props:ji,abstract:!0,render:function(t){var e=this,r=this.$slots.default;if(r&&(r=r.filter(Ri)).length){var n=this.mode,i=r[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return i;var o=Ci(i);if(!o)return i;if(this._leaving)return Ii(t,i);var s="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?s+"comment":s+o.tag:a(o.key)?0===String(o.key).indexOf(s)?o.key:s+o.key:o.key;var c=(o.data||(o.data={})).transition=Ai(this),u=this._vnode,l=Ci(u);if(o.data.directives&&o.data.directives.some(Ni)&&(o.data.show=!0),l&&l.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(o,l)&&!he(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var p=l.data.transition=T({},c);if("out-in"===n)return this._leaving=!0,se(p,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),Ii(t,i);if("in-out"===n){if(he(o))return u;var d,f=function(){d()};se(c,"afterEnter",f),se(c,"enterCancelled",f),se(p,"delayLeave",(function(t){d=t}))}}return i}}},Pi=T({tag:String,moveClass:String},ji);function Mi(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Li(t){t.data.newPos=t.elm.getBoundingClientRect()}function Ui(t){var e=t.data.pos,r=t.data.newPos,n=e.left-r.left,i=e.top-r.top;if(n||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+n+"px,"+i+"px)",o.transitionDuration="0s"}}delete Pi.mode;var Fi={Transition:Di,TransitionGroup:{props:Pi,beforeMount:function(){var t=this,e=this._update;this._update=function(r,n){var i=er(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,r,n)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",r=Object.create(null),n=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Ai(this),s=0;s-1?Zr[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Zr[t]=/HTMLUnknownElement/.test(e.toString())},T(jr.options.directives,Ti),T(jr.options.components,Fi),jr.prototype.__patch__=B?gi:C,jr.prototype.$mount=function(t,e){return function(t,e,r){var n;return t.$el=e,t.$options.render||(t.$options.render=mt),or(t,"beforeMount"),n=function(){t._update(t._render(),r)},new gr(t,n,C,{before:function(){t._isMounted&&!t._isDestroyed&&or(t,"beforeUpdate")}},!0),r=!1,null==t.$vnode&&(t._isMounted=!0,or(t,"mounted")),t}(this,t=t&&B?function(t){return"string"==typeof t?document.querySelector(t)||document.createElement("div"):t}(t):void 0,e)},B&&setTimeout((function(){U.devtools&&nt&&nt.emit("init",jr)}),0),e.default=jr}.call(this,r("c8ba"))},"2b3e":function(t,e,r){var n=r("585a"),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();t.exports=o},"2d7c":function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,i=0,o=[];++r-1&&e.splice(r,1)}}function m(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var r=t.state;g(t,r,[],t._modules.root,!0),v(t,r,e)}function v(t,e,r){var n=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var i=t._wrappedGetters,o={};a(i,(function(e,r){o[r]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,r,{get:function(){return t._vm[r]},enumerable:!0})}));var s=l.config.silent;l.config.silent=!0,t._vm=new l({data:{$$state:e},computed:o}),l.config.silent=s,t.strict&&function(t){t._vm.$watch((function(){return this._data.$$state}),(function(){}),{deep:!0,sync:!0})}(t),n&&(r&&t._withCommit((function(){n._data.$$state=null})),l.nextTick((function(){return n.$destroy()})))}function g(t,e,r,n,i){var o=!r.length,a=t._modules.getNamespace(r);if(n.namespaced&&(t._modulesNamespaceMap[a],t._modulesNamespaceMap[a]=n),!o&&!i){var s=b(e,r.slice(0,-1)),c=r[r.length-1];t._withCommit((function(){l.set(s,c,n.state)}))}var u=n.context=function(t,e,r){var n=""===e,i={dispatch:n?t.dispatch:function(r,n,i){var o=y(r,n,i),a=o.payload,s=o.options,c=o.type;return s&&s.root||(c=e+c),t.dispatch(c,a)},commit:n?t.commit:function(r,n,i){var o=y(r,n,i),a=o.payload,s=o.options,c=o.type;s&&s.root||(c=e+c),t.commit(c,a,s)}};return Object.defineProperties(i,{getters:{get:n?function(){return t.getters}:function(){return function(t,e){if(!t._makeLocalGettersCache[e]){var r={},n=e.length;Object.keys(t.getters).forEach((function(i){if(i.slice(0,n)===e){var o=i.slice(n);Object.defineProperty(r,o,{get:function(){return t.getters[i]},enumerable:!0})}})),t._makeLocalGettersCache[e]=r}return t._makeLocalGettersCache[e]}(t,e)}},state:{get:function(){return b(t.state,r)}}}),i}(t,a,r);n.forEachMutation((function(e,r){!function(t,e,r,n){(t._mutations[e]||(t._mutations[e]=[])).push((function(e){r.call(t,n.state,e)}))}(t,a+r,e,u)})),n.forEachAction((function(e,r){var n=e.root?r:a+r,i=e.handler||e;!function(t,e,r,n){(t._actions[e]||(t._actions[e]=[])).push((function(e){var i=r.call(t,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:t.getters,rootState:t.state},e);return function(t){return t&&"function"==typeof t.then}(i)||(i=Promise.resolve(i)),t._devtoolHook?i.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):i}))}(t,n,i,u)})),n.forEachGetter((function(e,r){!function(t,e,r,n){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return r(n.state,n.getters,t.state,t.getters)})}(t,a+r,e,u)})),n.forEachChild((function(n,o){g(t,e,r.concat(o),n,i)}))}function b(t,e){return e.reduce((function(t,e){return t[e]}),t)}function y(t,e,r){return s(t)&&t.type&&(r=e,e=t,t=t.type),{type:t,payload:e,options:r}}function _(t){l&&t===l||function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:r});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[r].concat(t.init):r,e.call(this,t)}}function r(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(l=t)}f.state.get=function(){return this._vm._data.$$state},f.state.set=function(t){},d.prototype.commit=function(t,e,r){var n=this,i=y(t,e,r),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),c=this._mutations[o];c&&(this._withCommit((function(){c.forEach((function(t){t(a)}))})),this._subscribers.slice().forEach((function(t){return t(s,n.state)})))},d.prototype.dispatch=function(t,e){var r=this,n=y(t,e),i=n.type,o=n.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(a,r.state)}))}catch(t){}var c=s.length>1?Promise.all(s.map((function(t){return t(o)}))):s[0](o);return new Promise((function(t,e){c.then((function(e){try{r._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,r.state)}))}catch(t){}t(e)}),(function(t){try{r._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(a,r.state,t)}))}catch(t){}e(t)}))}))}},d.prototype.subscribe=function(t,e){return h(t,this._subscribers,e)},d.prototype.subscribeAction=function(t,e){return h("function"==typeof t?{before:t}:t,this._actionSubscribers,e)},d.prototype.watch=function(t,e,r){var n=this;return this._watcherVM.$watch((function(){return t(n.state,n.getters)}),e,r)},d.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},d.prototype.registerModule=function(t,e,r){void 0===r&&(r={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),g(this,this.state,t,this._modules.get(t),r.preserveState),v(this,this.state)},d.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var r=b(e.state,t.slice(0,-1));l.delete(r,t[t.length-1])})),m(this)},d.prototype.hasModule=function(t){return"string"==typeof t&&(t=[t]),this._modules.isRegistered(t)},d.prototype.hotUpdate=function(t){this._modules.update(t),m(this,!0)},d.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(d.prototype,f);var w=O((function(t,e){var r={};return k(e).forEach((function(e){var n=e.key,i=e.val;r[n]=function(){var e=this.$store.state,r=this.$store.getters;if(t){var n=T(this.$store,"mapState",t);if(!n)return;e=n.context.state,r=n.context.getters}return"function"==typeof i?i.call(this,e,r):e[i]},r[n].vuex=!0})),r})),x=O((function(t,e){var r={};return k(e).forEach((function(e){var n=e.key,i=e.val;r[n]=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];var n=this.$store.commit;if(t){var o=T(this.$store,"mapMutations",t);if(!o)return;n=o.context.commit}return"function"==typeof i?i.apply(this,[n].concat(e)):n.apply(this.$store,[i].concat(e))}})),r})),E=O((function(t,e){var r={};return k(e).forEach((function(e){var n=e.key,i=e.val;i=t+i,r[n]=function(){if(!t||T(this.$store,"mapGetters",t))return this.$store.getters[i]},r[n].vuex=!0})),r})),S=O((function(t,e){var r={};return k(e).forEach((function(e){var n=e.key,i=e.val;r[n]=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];var n=this.$store.dispatch;if(t){var o=T(this.$store,"mapActions",t);if(!o)return;n=o.context.dispatch}return"function"==typeof i?i.apply(this,[n].concat(e)):n.apply(this.$store,[i].concat(e))}})),r}));function k(t){return function(t){return Array.isArray(t)||s(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function O(t){return function(e,r){return"string"!=typeof e?(r=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,r)}}function T(t,e,r){return t._modulesNamespaceMap[r]}function j(t,e,r){var n=r?t.groupCollapsed:t.group;try{n.call(t,e)}catch(r){t.log(e)}}function C(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function A(){var t=new Date;return" @ "+I(t.getHours(),2)+":"+I(t.getMinutes(),2)+":"+I(t.getSeconds(),2)+"."+I(t.getMilliseconds(),3)}function I(t,e){return function(t,e){return new Array(e+1).join(t)}("0",e-t.toString().length)+t}var R={Store:d,install:_,version:"3.6.2",mapState:w,mapMutations:x,mapGetters:E,mapActions:S,createNamespacedHelpers:function(t){return{mapState:w.bind(null,t),mapGetters:E.bind(null,t),mapMutations:x.bind(null,t),mapActions:S.bind(null,t)}},createLogger:function(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var r=t.filter;void 0===r&&(r=function(t,e,r){return!0});var n=t.transformer;void 0===n&&(n=function(t){return t});var i=t.mutationTransformer;void 0===i&&(i=function(t){return t});var a=t.actionFilter;void 0===a&&(a=function(t,e){return!0});var s=t.actionTransformer;void 0===s&&(s=function(t){return t});var c=t.logMutations;void 0===c&&(c=!0);var u=t.logActions;void 0===u&&(u=!0);var l=t.logger;return void 0===l&&(l=console),function(t){var p=o(t.state);void 0!==l&&(c&&t.subscribe((function(t,a){var s=o(a);if(r(t,p,s)){var c=A(),u=i(t),d="mutation "+t.type+c;j(l,d,e),l.log("%c prev state","color: #9E9E9E; font-weight: bold",n(p)),l.log("%c mutation","color: #03A9F4; font-weight: bold",u),l.log("%c next state","color: #4CAF50; font-weight: bold",n(s)),C(l)}p=s})),u&&t.subscribeAction((function(t,r){if(a(t,r)){var n=A(),i=s(t),o="action "+t.type+n;j(l,o,e),l.log("%c action","color: #03A9F4; font-weight: bold",i),C(l)}})))}}};e.a=R}).call(this,r("c8ba"))},"2f6c":function(t,e,r){"use strict";r.d(e,"a",(function(){return o})),r.d(e,"b",(function(){return a}));var n=r("ad67"),i={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},o=Object.freeze({});function a(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,a=void 0,u=Array.isArray(t),l=[t],p=-1,d=[],f=void 0,h=void 0,m=void 0,v=[],g=[],b=t;do{var y=++p===l.length,_=y&&0!==d.length;if(y){if(h=0===g.length?void 0:v[v.length-1],f=m,m=g.pop(),_){if(u)f=f.slice();else{for(var w={},x=0,E=Object.keys(f);x0){var n=r.connection.filter?r.connection.filter:[];n.sort();var i=e,o={};return n.forEach((function(t){o[t]=i[t]})),r.connection.key+"("+JSON.stringify(o)+")"}return r.connection.key}var a=t;if(e){var c=s()(e);a+="("+c+")"}return r&&Object.keys(r).forEach((function(t){-1===l.indexOf(t)&&(r[t]&&Object.keys(r[t]).length?a+="@"+t+"("+JSON.stringify(r[t])+")":a+="@"+t)})),a}function d(t,e){if(t.arguments&&t.arguments.length){var r={};return t.arguments.forEach((function(t){var n=t.name,i=t.value;return c(r,n,i,e)})),r}return null}function f(t){return t.alias?t.alias.value:t.name.value}function h(t){return"Field"===t.kind}function m(t){return"InlineFragment"===t.kind}function v(t){return t&&"id"===t.type&&"boolean"==typeof t.generated}function g(t,e){return void 0===e&&(e=!1),Object(o.a)({type:"id",generated:e},"string"==typeof t?{id:t,typename:void 0}:t)}function b(t){return null!=t&&"object"==typeof t&&"json"===t.type}function y(t,e){if(t.directives&&t.directives.length){var r={};return t.directives.forEach((function(t){r[t.name.value]=d(t,e)})),r}return null}function _(t,e){return void 0===e&&(e={}),function(t){return t?t.filter(E).map((function(t){var e=t.arguments;t.name.value,Object(i.b)(e&&1===e.length,14);var r=e[0];Object(i.b)(r.name&&"if"===r.name.value,15);var n=r.value;return Object(i.b)(n&&("Variable"===n.kind||"BooleanValue"===n.kind),16),{directive:t,ifArgument:r}})):[]}(t.directives).every((function(t){var r=t.directive,n=t.ifArgument,o=!1;return"Variable"===n.value.kind?(o=e[n.value.name.value],Object(i.b)(void 0!==o,13)):o=n.value.value,"skip"===r.name.value?!o:o}))}function w(t,e){return function(t){var e=[];return Object(n.b)(t,{Directive:function(t){e.push(t.name.value)}}),e}(e).some((function(e){return t.indexOf(e)>-1}))}function x(t){return t&&w(["client"],t)&&w(["export"],t)}function E(t){var e=t.name.value;return"skip"===e||"include"===e}function S(t,e){var r=e,n=[];return t.definitions.forEach((function(t){if("OperationDefinition"===t.kind)throw new i.a(11);"FragmentDefinition"===t.kind&&n.push(t)})),void 0===r&&(Object(i.b)(1===n.length,12),r=n[0].name.value),Object(o.a)(Object(o.a)({},t),{definitions:Object(o.h)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],t.definitions)})}function k(t){for(var e=[],r=1;r1){var n=[];e=at(e,n);for(var i=1;iYour Trial key includes all the functionality and device support of a Pro key.

After your Trial has reached expiration, your server still functions normally until the next time you Stop the array or reboot your server.

At that point you may either purchase a license key or request a Trial extension.

","_extraMsg":"

You have {parsedExpireTime} remaining on your Trial key.

"},"EEXPIRED":{"humanReadable":"Trial Expired","heading":"Your Trial has expired","message":{"base":"To continue using Unraid OS you may purchase a license key.","extensionNotEligible":"You have used all your Trial extensions. @:stateData.EEXPIRED.message.base","extensionEligible":"@:stateData.EEXPIRED.message.base Alternately, you may request a Trial extension."}},"BASIC":{"humanReadable":"Basic"},"PLUS":{"humanReadable":"Plus"},"PRO":{"humanReadable":"Pro"},"EGUID":{"humanReadable":"GUID Error","error":{"heading":"Registration key / GUID mismatch","message":{"default":"The license key file does not correspond to the USB Flash boot device. Please copy the correct key file to the /config directory on your USB Flash boot device or choose Purchase Key.","replacementIneligible":"Your Unraid registration key is ineligible for replacement as it has been replaced within the last 12 months.","replacementEligible":"The license key file does not correspond to the USB Flash boot device. Please copy the correct key file to the /config directory on your USB Flash boot device or choose Purchase Key or Replace Key."}}},"ENOKEYFILE2":{"humanReadable":"Missing key file","error":{"heading":"@:stateData.ENOKEYFILE2.humanReadable","message":"It appears that your license key file is corrupted or missing. The key file should be located in the /config directory on your USB Flash boot device. If you do not have a backup copy of your license key file you may attempt to recover your key. If this was a Trial installation, you may purchase a license key."}},"ETRIAL":{"humanReadable":"Invalid installation","error":{"heading":"@:stateData.ETRIAL.humanReadable","message":"It is not possible to use a Trial key with an existing Unraid OS installation. You may purchase a license key corresponding to this USB Flash device to continue using this installation."}},"ENOKEYFILE1":{"humanReadable":"No Keyfile","error":{"heading":"No USB flash configuration data","message":"There is a problem with your USB Flash device"}},"ENOFLASH":{"humanReadable":"No Flash","error":{"heading":"Cannot access your USB Flash boot device","message":"There is a physical problem accessing your USB Flash boot device"}},"EGUID1":{"humanReadable":"Multiple License Keys Present","error":{"heading":"@:stateData.EGUID1.humanReadable","message":"There are multiple license key files present on your USB flash device and none of them correspond to the USB Flash boot device. Please remove all key files, except the one you want to replace, from the /config directory on your USB Flash boot device. Alternately you may purchase a license key for this USB flash device. If you want to replace one of your license keys with a new key bound to this USB Flash device, please first remove all other key files first."}},"EBLACKLISTED":{"humanReadable":"BLACKLISTED","error":{"heading":"Blacklisted USB Flash GUID","message":"This USB Flash boot device has been blacklisted. This can occur as a result of transferring your license key to a replacement USB Flash device, and you are currently booted from your old USB Flash device. A USB Flash device may also be blacklisted if we discover the serial number is not unique – this is common with USB card readers."}},"EBLACKLISTED1":{"humanReadable":"@:stateData.EBLACKLISTED.humanReadable","error":{"heading":"USB Flash device error","message":"This USB Flash device has an invalid GUID. Please try a different USB Flash device"}},"EBLACKLISTED2":{"humanReadable":"@:stateData.EBLACKLISTED.humanReadable","error":{"heading":"USB Flash has no serial number","message":"@:stateData.EBLACKLISTED.error.message"}},"ENOCONN":{"humanReadable":"Trial Requires Internet Connection","error":{"heading":"Cannot validate Unraid Trial key","message":"Your Trial key requires an internet connection. Please check Settings > Network"}},"STALE":{"humanReadable":"Stale","error":{"heading":"Stale Server","message":"Please refresh the page to ensure you load your latest configuration"}}},"upc":{"avatarAlt":"{0}\'s Avatar","confirmClosure":"Confirm closure then continue to webGUI","closeDropdown":"Close dropdown","openDropdown":"Open dropdown","pleaseConfirmClosureYouHaveOpenPopUp":"Please confirm closure. You have an open pop-up.","trialHasExpiredSeeOptions":"Trial has expired, see options below","extraLinks":{"newTab":"Opens {0} in new tab","myServers":"My Servers Dashboard","forums":"Unraid Forums","settings":{"text":"Settings","title":"Settings > Management Access • Unraid.net"}},"meta":{"trial":{"active":{"date":"Trial key expires at {date}","timeDiff":"Trial expires in {timeDiff}"},"expired":{"date":"Trial key expired at {date}","timeDiff":"Trial expired {timeDiff}"}},"uptime":{"date":"Server up since {date}","readable":"Uptime {timeDiff}"}},"myServers":{"heading":"My Servers","beta":"beta","errors":{"unraidApi":{"heading":"Unraid API Error","message":"Failed to connect to Unraid API."},"myServers":{"heading":"My Servers Error","message":"Please wait a moment and reload the page."}},"closeDetails":"Close Details","loading":"Loading My Servers data","displayingLastKnown":"Displaying last known server data","mothership":{"connected":"Connected to Mothership","notConnected":"Not Connected to Mothership"},"accessLabels":{"current":"Current server","local":"Local access","offline":"Server Offline","remote":"Remote access","unavailable":"Access unavailable"}},"opensNewHttpsWindow":{"base":"Opens new HTTPS window to {0}","signIn":"@:upc.opensNewHttpsWindow.base @:signIn","signOut":"@:upc.opensNewHttpsWindow.base @:signOut","purchase":"@:upc.opensNewHttpsWindow.base @:actions.purchase","upgrade":"@:upc.opensNewHttpsWindow.base @:actions.upgrade"},"signInActions":{"resolve":"@:signIn to resolve","purchaseKey":"@:signIn to @:actions.purchase","purchaseKeyOrExtendTrial":"@:upc.signInActions.purchaseKey or @:actions.extend"}}}')},"5a0c":function(t,e,r){t.exports=function(){"use strict";var t=6e4,e=36e5,r="millisecond",n="second",i="minute",o="hour",a="day",s="week",c="month",u="quarter",l="year",p="date",d="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},v=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},g={s:v,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),i=r%60;return(e<=0?"+":"-")+v(n,2,"0")+":"+v(i,2,"0")},m:function t(e,r){if(e.date()t.replace(a,(t,e)=>e?e.toUpperCase():""),c=/\B([A-Z])/g,u=t=>t.replace(c,"-$1").toLowerCase();function l(t,e,r){t[e]=[].concat(t[e]||[]),t[e].unshift(r)}function p(t,e){if(t){(t.$options[e]||[]).forEach(e=>{e.call(t)})}}function d(t,e,{type:r}={}){if((t=>/function Boolean/.test(String(t)))(r))return"true"===t||"false"===t?"true"===t:""===t||t===e||null!=t||t;if((t=>/function Number/.test(String(t)))(r)){const e=parseFloat(t,10);return isNaN(e)?t:e}return t}function f(t,e){const r=[];for(let n=0,i=e.length;n(t[e]=c[r[n]],t),{}),l(e,"beforeCreate",(function(){const t=this.$emit;this.$emit=(e,...r)=>(this.$root.$options.customElement.dispatchEvent(function(t,e){return new CustomEvent(t,{bubbles:!1,cancelable:!1,detail:e})}(e,r)),t.call(this,e,...r))})),l(e,"created",(function(){i.forEach(t=>{this.$root.props[t]=this[t]})})),i.forEach(t=>{Object.defineProperty(m.prototype,t,{get(){return this._wrapper.props[t]},set(e){this._wrapper.props[t]=e},enumerable:!1,configurable:!0})}),a=!0}function h(t,e){const r=s(e),n=t.hasAttribute(e)?t.getAttribute(e):void 0;t._wrapper.props[r]=d(n,e,o[r])}class m extends HTMLElement{constructor(){const r=super();r.attachShadow({mode:"open"});const n=r._wrapper=new t({name:"shadow-root",customElement:r,shadowRoot:r.shadowRoot,data:()=>({props:{},slotChildren:[]}),render(t){return t(e,{ref:"inner",props:this.props},this.slotChildren)}});new MutationObserver(t=>{let e=!1;for(let n=0;n{t.props=function(t){const e={};return t.forEach(t=>{e[t]=void 0}),e}(i),n.forEach(t=>{h(this,t)})};a?r():e().then(t=>{(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),c(t),r()}),t.slotChildren=Object.freeze(f(t.$createElement,this.childNodes)),t.$mount(),this.shadowRoot.appendChild(t.$el)}}disconnectedCallback(){p(this.vueComponent,"deactivated")}}return r||c(e),m};function g(t,e,r,n,i,o,a,s){var c,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=r,u._compiled=!0),n&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var p=u.beforeCreate;u.beforeCreate=p?[].concat(p,c):[c]}return{exports:t,options:u}}r("24fb"),r("35d6");var b=r("2f62"),y=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"];function _(t,e){"undefined"!=typeof console&&(console.warn("[vue-i18n] "+t),e&&console.warn(e.stack))}var w=Array.isArray;function x(t){return null!==t&&"object"==typeof t}function E(t){return"boolean"==typeof t}function S(t){return"string"==typeof t}var k=Object.prototype.toString;function O(t){return"[object Object]"===k.call(t)}function T(t){return null==t}function j(t){return"function"==typeof t}function C(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var r=null,n=null;return 1===t.length?x(t[0])||w(t[0])?n=t[0]:"string"==typeof t[0]&&(r=t[0]):2===t.length&&("string"==typeof t[0]&&(r=t[0]),(x(t[1])||w(t[1]))&&(n=t[1])),{locale:r,params:n}}function A(t){return JSON.parse(JSON.stringify(t))}function I(t,e){return!!~t.indexOf(e)}var R=Object.prototype.hasOwnProperty;function N(t,e){return R.call(t,e)}function D(t){for(var e=arguments,r=Object(t),n=1;n/g,">").replace(/"/g,""").replace(/'/g,"'")}(t[e]))})),t}var L={beforeCreate:function(){var t=this.$options;if(t.i18n=t.i18n||(t.__i18n?{}:null),t.i18n){if(t.i18n instanceof dt){if(t.__i18n)try{var e=t.i18n&&t.i18n.messages?t.i18n.messages:{};t.__i18n.forEach((function(t){e=D(e,JSON.parse(t))})),Object.keys(e).forEach((function(r){t.i18n.mergeLocaleMessage(r,e[r])}))}catch(t){}this._i18n=t.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(O(t.i18n)){var r=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof dt?this.$root.$i18n:null;if(r&&(t.i18n.root=this.$root,t.i18n.formatter=r.formatter,t.i18n.fallbackLocale=r.fallbackLocale,t.i18n.formatFallbackMessages=r.formatFallbackMessages,t.i18n.silentTranslationWarn=r.silentTranslationWarn,t.i18n.silentFallbackWarn=r.silentFallbackWarn,t.i18n.pluralizationRules=r.pluralizationRules,t.i18n.preserveDirectiveContent=r.preserveDirectiveContent),t.__i18n)try{var n=t.i18n&&t.i18n.messages?t.i18n.messages:{};t.__i18n.forEach((function(t){n=D(n,JSON.parse(t))})),t.i18n.messages=n}catch(t){}var i=t.i18n.sharedMessages;i&&O(i)&&(t.i18n.messages=D(t.i18n.messages,i)),this._i18n=new dt(t.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===t.i18n.sync||t.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),r&&r.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof dt?this._i18n=this.$root.$i18n:t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof dt&&(this._i18n=t.parent.$i18n)},beforeMount:function(){var t=this.$options;t.i18n=t.i18n||(t.__i18n?{}:null),t.i18n?(t.i18n instanceof dt||O(t.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof dt||t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof dt)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:function(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)},beforeDestroy:function(){if(this._i18n){var t=this;this.$nextTick((function(){t._subscribing&&(t._i18n.unsubscribeDataChanging(t),delete t._subscribing),t._i18nWatcher&&(t._i18nWatcher(),t._i18n.destroyVM(),delete t._i18nWatcher),t._localeWatcher&&(t._localeWatcher(),delete t._localeWatcher)}))}}},U={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(t,e){var r=e.data,n=e.parent,i=e.props,o=e.slots,a=n.$i18n;if(a){var s=i.path,c=i.locale,u=i.places,l=o(),p=a.i(s,c,function(t){var e;for(e in t)if("default"!==e)return!1;return Boolean(e)}(l)||u?function(t,e){var r=e?function(t){return Array.isArray(t)?t.reduce($,{}):Object.assign({},t)}(e):{};if(!t)return r;var n=(t=t.filter((function(t){return t.tag||""!==t.text.trim()}))).every(V);return t.reduce(n?F:$,r)}(l.default,u):l),d=i.tag&&!0!==i.tag||!1===i.tag?i.tag:"span";return d?t(d,r,p):p}}};function F(t,e){return e.data&&e.data.attrs&&e.data.attrs.place&&(t[e.data.attrs.place]=e),t}function $(t,e,r){return t[r]=e,t}function V(t){return Boolean(t.data&&t.data.attrs&&t.data.attrs.place)}var z,q={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(t,e){var r=e.props,n=e.parent,i=e.data,o=n.$i18n;if(!o)return null;var a=null,s=null;S(r.format)?a=r.format:x(r.format)&&(r.format.key&&(a=r.format.key),s=Object.keys(r.format).reduce((function(t,e){var n;return I(y,e)?Object.assign({},t,((n={})[e]=r.format[e],n)):t}),null));var c=r.locale||o.locale,u=o._ntp(r.value,c,a,s),l=u.map((function(t,e){var r,n=i.scopedSlots&&i.scopedSlots[t.type];return n?n(((r={})[t.type]=t.value,r.index=e,r.parts=u,r)):t.value})),p=r.tag&&!0!==r.tag||!1===r.tag?r.tag:"span";return p?t(p,{attrs:i.attrs,class:i.class,staticClass:i.staticClass},l):l}};function B(t,e,r){H(t,r)&&Q(t,e,r)}function G(t,e,r,n){if(H(t,r)){var i=r.context.$i18n;(function(t,e){var r=e.context;return t._locale===r.$i18n.locale})(t,r)&&P(e.value,e.oldValue)&&P(t._localeMessage,i.getLocaleMessage(i.locale))||Q(t,e,r)}}function W(t,e,r,n){if(r.context){var i=r.context.$i18n||{};e.modifiers.preserve||i.preserveDirectiveContent||(t.textContent=""),t._vt=void 0,delete t._vt,t._locale=void 0,delete t._locale,t._localeMessage=void 0,delete t._localeMessage}else _("Vue instance does not exists in VNode context")}function H(t,e){var r=e.context;return r?!!r.$i18n||(_("VueI18n instance does not exists in Vue instance"),!1):(_("Vue instance does not exists in VNode context"),!1)}function Q(t,e,r){var n,i,o=function(t){var e,r,n,i;return S(t)?e=t:O(t)&&(e=t.path,r=t.locale,n=t.args,i=t.choice),{path:e,locale:r,args:n,choice:i}}(e.value),a=o.path,s=o.locale,c=o.args,u=o.choice;if(a||s||c)if(a){var l=r.context;t._vt=t.textContent=null!=u?(n=l.$i18n).tc.apply(n,[a,u].concat(Y(s,c))):(i=l.$i18n).t.apply(i,[a].concat(Y(s,c))),t._locale=l.$i18n.locale,t._localeMessage=l.$i18n.getLocaleMessage(l.$i18n.locale)}else _("`path` is required in v-t directive");else _("value type not supported")}function Y(t,e){var r=[];return t&&r.push(t),e&&(Array.isArray(e)||O(e))&&r.push(e),r}function K(t){K.installed=!0,(z=t).version&&Number(z.version.split(".")[0]),function(t){t.prototype.hasOwnProperty("$i18n")||Object.defineProperty(t.prototype,"$i18n",{get:function(){return this._i18n}}),t.prototype.$t=function(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];var n=this.$i18n;return n._t.apply(n,[t,n.locale,n._getMessages(),this].concat(e))},t.prototype.$tc=function(t,e){for(var r=[],n=arguments.length-2;n-- >0;)r[n]=arguments[n+2];var i=this.$i18n;return i._tc.apply(i,[t,i.locale,i._getMessages(),this,e].concat(r))},t.prototype.$te=function(t,e){var r=this.$i18n;return r._te(t,r.locale,r._getMessages(),e)},t.prototype.$d=function(t){for(var e,r=[],n=arguments.length-1;n-- >0;)r[n]=arguments[n+1];return(e=this.$i18n).d.apply(e,[t].concat(r))},t.prototype.$n=function(t){for(var e,r=[],n=arguments.length-1;n-- >0;)r[n]=arguments[n+1];return(e=this.$i18n).n.apply(e,[t].concat(r))}}(z),z.mixin(L),z.directive("t",{bind:B,update:G,unbind:W}),z.component(U.name,U),z.component(q.name,q),z.config.optionMergeStrategies.i18n=function(t,e){return void 0===e?t:e}}var J=function(){this._caches=Object.create(null)};J.prototype.interpolate=function(t,e){if(!e)return[t];var r=this._caches[t];return r||(r=function(t){var e=[],r=0,n="";for(;r0)p--,l=4,d[0]();else{if(p=0,void 0===r)return!1;if(!1===(r=nt(r)))return!1;d[1]()}};null!==l;)if(u++,"\\"!==(e=t[u])||!f()){if(i=rt(e),8===(o=(s=tt[l])[i]||s.else||8))return;if(l=o[0],(a=d[o[1]])&&(n=void 0===(n=o[2])?e:n,!1===a()))return;if(7===l)return c}}(t))&&(this._cache[t]=e),e||[]},it.prototype.getPathValue=function(t,e){if(!x(t))return null;var r=this.parsePath(e);if(0===r.length)return null;for(var n=r.length,i=t,o=0;o/,st=/(?:@(?:\.[a-z]+)?:(?:[\w\-_|.]+|\([\w\-_|.]+\)))/g,ct=/^@(?:\.([a-z]+))?:/,ut=/[()]/g,lt={upper:function(t){return t.toLocaleUpperCase()},lower:function(t){return t.toLocaleLowerCase()},capitalize:function(t){return""+t.charAt(0).toLocaleUpperCase()+t.substr(1)}},pt=new J,dt=function(t){var e=this;void 0===t&&(t={}),!z&&"undefined"!=typeof window&&window.Vue&&K(window.Vue);var r=t.locale||"en-US",n=!1!==t.fallbackLocale&&(t.fallbackLocale||"en-US"),i=t.messages||{},o=t.dateTimeFormats||{},a=t.numberFormats||{};this._vm=null,this._formatter=t.formatter||pt,this._modifiers=t.modifiers||{},this._missing=t.missing||null,this._root=t.root||null,this._sync=void 0===t.sync||!!t.sync,this._fallbackRoot=void 0===t.fallbackRoot||!!t.fallbackRoot,this._formatFallbackMessages=void 0!==t.formatFallbackMessages&&!!t.formatFallbackMessages,this._silentTranslationWarn=void 0!==t.silentTranslationWarn&&t.silentTranslationWarn,this._silentFallbackWarn=void 0!==t.silentFallbackWarn&&!!t.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new it,this._dataListeners=new Set,this._componentInstanceCreatedListener=t.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void 0!==t.preserveDirectiveContent&&!!t.preserveDirectiveContent,this.pluralizationRules=t.pluralizationRules||{},this._warnHtmlInMessage=t.warnHtmlInMessage||"off",this._postTranslation=t.postTranslation||null,this._escapeParameterHtml=t.escapeParameterHtml||!1,this.getChoiceIndex=function(t,r){var n=Object.getPrototypeOf(e);if(n&&n.getChoiceIndex)return n.getChoiceIndex.call(e,t,r);return e.locale in e.pluralizationRules?e.pluralizationRules[e.locale].apply(e,[t,r]):function(t,e){return t=Math.abs(t),2===e?t?t>1?1:0:1:t?Math.min(t,2):0}(t,r)},this._exist=function(t,r){return!(!t||!r||T(e._path.getPathValue(t,r))&&!t[r])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(i).forEach((function(t){e._checkLocaleMessage(t,e._warnHtmlInMessage,i[t])})),this._initVM({locale:r,fallbackLocale:n,messages:i,dateTimeFormats:o,numberFormats:a})},ft={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0}};dt.prototype._checkLocaleMessage=function(t,e,r){var n=function(t,e,r,i){if(O(r))Object.keys(r).forEach((function(o){var a=r[o];O(a)?(i.push(o),i.push("."),n(t,e,a,i),i.pop(),i.pop()):(i.push(o),n(t,e,a,i),i.pop())}));else if(w(r))r.forEach((function(r,o){O(r)?(i.push("["+o+"]"),i.push("."),n(t,e,r,i),i.pop(),i.pop()):(i.push("["+o+"]"),n(t,e,r,i),i.pop())}));else if(S(r)){if(at.test(r)){var o="Detected HTML in message '"+r+"' of keypath '"+i.join("")+"' at '"+e+"'. Consider component interpolation with '' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===t?_(o):"error"===t&&function(t,e){"undefined"!=typeof console&&(console.error("[vue-i18n] "+t),e&&console.error(e.stack))}(o)}}};n(e,t,r,[])},dt.prototype._initVM=function(t){var e=z.config.silent;z.config.silent=!0,this._vm=new z({data:t}),z.config.silent=e},dt.prototype.destroyVM=function(){this._vm.$destroy()},dt.prototype.subscribeDataChanging=function(t){this._dataListeners.add(t)},dt.prototype.unsubscribeDataChanging=function(t){!function(t,e){if(t.delete(e));}(this._dataListeners,t)},dt.prototype.watchI18nData=function(){var t=this;return this._vm.$watch("$data",(function(){t._dataListeners.forEach((function(t){z.nextTick((function(){t&&t.$forceUpdate()}))}))}),{deep:!0})},dt.prototype.watchLocale=function(){if(!this._sync||!this._root)return null;var t=this._vm;return this._root.$i18n.vm.$watch("locale",(function(e){t.$set(t,"locale",e),t.$forceUpdate()}),{immediate:!0})},dt.prototype.onComponentInstanceCreated=function(t){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(t,this)},ft.vm.get=function(){return this._vm},ft.messages.get=function(){return A(this._getMessages())},ft.dateTimeFormats.get=function(){return A(this._getDateTimeFormats())},ft.numberFormats.get=function(){return A(this._getNumberFormats())},ft.availableLocales.get=function(){return Object.keys(this.messages).sort()},ft.locale.get=function(){return this._vm.locale},ft.locale.set=function(t){this._vm.$set(this._vm,"locale",t)},ft.fallbackLocale.get=function(){return this._vm.fallbackLocale},ft.fallbackLocale.set=function(t){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",t)},ft.formatFallbackMessages.get=function(){return this._formatFallbackMessages},ft.formatFallbackMessages.set=function(t){this._formatFallbackMessages=t},ft.missing.get=function(){return this._missing},ft.missing.set=function(t){this._missing=t},ft.formatter.get=function(){return this._formatter},ft.formatter.set=function(t){this._formatter=t},ft.silentTranslationWarn.get=function(){return this._silentTranslationWarn},ft.silentTranslationWarn.set=function(t){this._silentTranslationWarn=t},ft.silentFallbackWarn.get=function(){return this._silentFallbackWarn},ft.silentFallbackWarn.set=function(t){this._silentFallbackWarn=t},ft.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},ft.preserveDirectiveContent.set=function(t){this._preserveDirectiveContent=t},ft.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},ft.warnHtmlInMessage.set=function(t){var e=this,r=this._warnHtmlInMessage;if(this._warnHtmlInMessage=t,r!==t&&("warn"===t||"error"===t)){var n=this._getMessages();Object.keys(n).forEach((function(t){e._checkLocaleMessage(t,e._warnHtmlInMessage,n[t])}))}},ft.postTranslation.get=function(){return this._postTranslation},ft.postTranslation.set=function(t){this._postTranslation=t},dt.prototype._getMessages=function(){return this._vm.messages},dt.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},dt.prototype._getNumberFormats=function(){return this._vm.numberFormats},dt.prototype._warnDefault=function(t,e,r,n,i,o){if(!T(r))return r;if(this._missing){var a=this._missing.apply(null,[t,e,n,i]);if(S(a))return a}if(this._formatFallbackMessages){var s=C.apply(void 0,i);return this._render(e,o,s.params,e)}return e},dt.prototype._isFallbackRoot=function(t){return!t&&!T(this._root)&&this._fallbackRoot},dt.prototype._isSilentFallbackWarn=function(t){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(t):this._silentFallbackWarn},dt.prototype._isSilentFallback=function(t,e){return this._isSilentFallbackWarn(e)&&(this._isFallbackRoot()||t!==this.fallbackLocale)},dt.prototype._isSilentTranslationWarn=function(t){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(t):this._silentTranslationWarn},dt.prototype._interpolate=function(t,e,r,n,i,o,a){if(!e)return null;var s,c=this._path.getPathValue(e,r);if(w(c)||O(c))return c;if(T(c)){if(!O(e))return null;if(!S(s=e[r])&&!j(s))return null}else{if(!S(c)&&!j(c))return null;s=c}return S(s)&&(s.indexOf("@:")>=0||s.indexOf("@.")>=0)&&(s=this._link(t,e,s,n,"raw",o,a)),this._render(s,i,o,r)},dt.prototype._link=function(t,e,r,n,i,o,a){var s=r,c=s.match(st);for(var u in c)if(c.hasOwnProperty(u)){var l=c[u],p=l.match(ct),d=p[0],f=p[1],h=l.replace(d,"").replace(ut,"");if(I(a,h))return s;a.push(h);var m=this._interpolate(t,e,h,n,"raw"===i?"string":i,"raw"===i?void 0:o,a);if(this._isFallbackRoot(m)){if(!this._root)throw Error("unexpected error");var v=this._root.$i18n;m=v._translate(v._getMessages(),v.locale,v.fallbackLocale,h,n,i,o)}m=this._warnDefault(t,h,m,n,w(o)?o:[o],i),this._modifiers.hasOwnProperty(f)?m=this._modifiers[f](m):lt.hasOwnProperty(f)&&(m=lt[f](m)),a.pop(),s=m?s.replace(l,m):s}return s},dt.prototype._createMessageContext=function(t){var e=w(t)?t:[],r=x(t)?t:{};return{list:function(t){return e[t]},named:function(t){return r[t]}}},dt.prototype._render=function(t,e,r,n){if(j(t))return t(this._createMessageContext(r));var i=this._formatter.interpolate(t,r,n);return i||(i=pt.interpolate(t,r,n)),"string"!==e||S(i)?i:i.join("")},dt.prototype._appendItemToChain=function(t,e,r){var n=!1;return I(t,e)||(n=!0,e&&(n="!"!==e[e.length-1],e=e.replace(/!/g,""),t.push(e),r&&r[e]&&(n=r[e]))),n},dt.prototype._appendLocaleToChain=function(t,e,r){var n,i=e.split("-");do{var o=i.join("-");n=this._appendItemToChain(t,o,r),i.splice(-1,1)}while(i.length&&!0===n);return n},dt.prototype._appendBlockToChain=function(t,e,r){for(var n=!0,i=0;i0;)o[a]=arguments[a+4];if(!t)return"";var s=C.apply(void 0,o);this._escapeParameterHtml&&(s.params=M(s.params));var c=s.locale||e,u=this._translate(r,c,this.fallbackLocale,t,n,"string",s.params);if(this._isFallbackRoot(u)){if(!this._root)throw Error("unexpected error");return(i=this._root).$t.apply(i,[t].concat(o))}return u=this._warnDefault(c,t,u,n,o,"string"),this._postTranslation&&null!=u&&(u=this._postTranslation(u,t)),u},dt.prototype.t=function(t){for(var e,r=[],n=arguments.length-1;n-- >0;)r[n]=arguments[n+1];return(e=this)._t.apply(e,[t,this.locale,this._getMessages(),null].concat(r))},dt.prototype._i=function(t,e,r,n,i){var o=this._translate(r,e,this.fallbackLocale,t,n,"raw",i);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(t,e,i)}return this._warnDefault(e,t,o,n,[i],"raw")},dt.prototype.i=function(t,e,r){return t?(S(e)||(e=this.locale),this._i(t,e,this._getMessages(),null,r)):""},dt.prototype._tc=function(t,e,r,n,i){for(var o,a=[],s=arguments.length-5;s-- >0;)a[s]=arguments[s+5];if(!t)return"";void 0===i&&(i=1);var c={count:i,n:i},u=C.apply(void 0,a);return u.params=Object.assign(c,u.params),a=null===u.locale?[u.params]:[u.locale,u.params],this.fetchChoice((o=this)._t.apply(o,[t,e,r,n].concat(a)),i)},dt.prototype.fetchChoice=function(t,e){if(!t||!S(t))return null;var r=t.split("|");return r[e=this.getChoiceIndex(e,r.length)]?r[e].trim():t},dt.prototype.tc=function(t,e){for(var r,n=[],i=arguments.length-2;i-- >0;)n[i]=arguments[i+2];return(r=this)._tc.apply(r,[t,this.locale,this._getMessages(),null,e].concat(n))},dt.prototype._te=function(t,e,r){for(var n=[],i=arguments.length-3;i-- >0;)n[i]=arguments[i+3];var o=C.apply(void 0,n).locale||e;return this._exist(r[o],t)},dt.prototype.te=function(t,e){return this._te(t,this.locale,this._getMessages(),e)},dt.prototype.getLocaleMessage=function(t){return A(this._vm.messages[t]||{})},dt.prototype.setLocaleMessage=function(t,e){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(t,this._warnHtmlInMessage,e),this._vm.$set(this._vm.messages,t,e)},dt.prototype.mergeLocaleMessage=function(t,e){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(t,this._warnHtmlInMessage,e),this._vm.$set(this._vm.messages,t,D(void 0!==this._vm.messages[t]&&Object.keys(this._vm.messages[t]).length?this._vm.messages[t]:{},e))},dt.prototype.getDateTimeFormat=function(t){return A(this._vm.dateTimeFormats[t]||{})},dt.prototype.setDateTimeFormat=function(t,e){this._vm.$set(this._vm.dateTimeFormats,t,e),this._clearDateTimeFormat(t,e)},dt.prototype.mergeDateTimeFormat=function(t,e){this._vm.$set(this._vm.dateTimeFormats,t,D(this._vm.dateTimeFormats[t]||{},e)),this._clearDateTimeFormat(t,e)},dt.prototype._clearDateTimeFormat=function(t,e){for(var r in e){var n=t+"__"+r;this._dateTimeFormatters.hasOwnProperty(n)&&delete this._dateTimeFormatters[n]}},dt.prototype._localizeDateTime=function(t,e,r,n,i){for(var o=e,a=n[o],s=this._getLocaleChain(e,r),c=0;c0;)e[r]=arguments[r+1];var n=this.locale,i=null;return 1===e.length?S(e[0])?i=e[0]:x(e[0])&&(e[0].locale&&(n=e[0].locale),e[0].key&&(i=e[0].key)):2===e.length&&(S(e[0])&&(i=e[0]),S(e[1])&&(n=e[1])),this._d(t,n,i)},dt.prototype.getNumberFormat=function(t){return A(this._vm.numberFormats[t]||{})},dt.prototype.setNumberFormat=function(t,e){this._vm.$set(this._vm.numberFormats,t,e),this._clearNumberFormat(t,e)},dt.prototype.mergeNumberFormat=function(t,e){this._vm.$set(this._vm.numberFormats,t,D(this._vm.numberFormats[t]||{},e)),this._clearNumberFormat(t,e)},dt.prototype._clearNumberFormat=function(t,e){for(var r in e){var n=t+"__"+r;this._numberFormatters.hasOwnProperty(n)&&delete this._numberFormatters[n]}},dt.prototype._getNumberFormatter=function(t,e,r,n,i,o){for(var a=e,s=n[a],c=this._getLocaleChain(e,r),u=0;u0;)e[r]=arguments[r+1];var n=this.locale,i=null,o=null;return 1===e.length?S(e[0])?i=e[0]:x(e[0])&&(e[0].locale&&(n=e[0].locale),e[0].key&&(i=e[0].key),o=Object.keys(e[0]).reduce((function(t,r){var n;return I(y,r)?Object.assign({},t,((n={})[r]=e[0][r],n)):t}),null)):2===e.length&&(S(e[0])&&(i=e[0]),S(e[1])&&(n=e[1])),this._n(t,n,i,o)},dt.prototype._ntp=function(t,e,r,n){if(!dt.availabilities.numberFormat)return[];if(!r)return(n?new Intl.NumberFormat(e,n):new Intl.NumberFormat(e)).formatToParts(t);var i=this._getNumberFormatter(t,e,this.fallbackLocale,this._getNumberFormats(),r,n),o=i&&i.formatToParts(t);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(t,e,r,n)}return o||[]},Object.defineProperties(dt.prototype,ft),Object.defineProperty(dt,"availabilities",{get:function(){if(!ot){var t="undefined"!=typeof Intl;ot={dateTimeFormat:t&&void 0!==Intl.DateTimeFormat,numberFormat:t&&void 0!==Intl.NumberFormat}}return ot}}),dt.install=K,dt.version="8.24.4";var ht=dt;o.default.use(ht);var mt=new ht({locale:"en_US",fallbackLocale:"en_US",messages:function(){const t=r("4b3b"),e={};return t.keys().forEach(r=>{const n=r.match(/([A-Za-z0-9-_]+)\./i);if(n&&n.length>1){const i=n[1];e[i]=t(r)}}),e}()});const vt="production",gt="https://registration.unraid.net",bt="https://unraid.net/preflight",yt=Object({VUE_APP_REGWIZ_URL:"https://registration.unraid.net",VUE_APP_PURCHASE_URL:"https://unraid.net/preflight",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_DEV_GRAPH_URL||null,_t=(Object({VUE_APP_REGWIZ_URL:"https://registration.unraid.net",VUE_APP_PURCHASE_URL:"https://unraid.net/preflight",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_DEV_APIKEY,{url:gt,name:"UnraidRegistrationWizard",width:600,height:810}),wt={errorMessage:"",loading:!0,submissionFrom:null,darkMode:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,darkTheme:{alpha:"#1c1b1b",beta:"#f2f2f2",gamma:"#999999"},lightTheme:{alpha:"#f2f2f2",beta:"#1c1b1b",gamma:"#999999"},csrf:null,isLaunchpadOpen:!1,triggerUPC:!1,ts:null,deviceCount:0,flashproduct:null,flashvendor:null,guid:"",regGuid:"",keyfile:null,servername:null,serverdesc:null,wanip:sessionStorage.getItem("upc_wanip")||null,site:null,state:"",reggen:0,registered:null,internalip:null,internalport:null,protocol:null,license:"",expiretime:null,regWizTime:null,rawServerState:null,plgPath:null,guidRegistered:!1,guidValid:null,replaceable:null,id:null,isPopUpOpen:!1,popUpWindow:"",regAtOpen:null,forumaccount:null,userEmail:"",username:"",avatar:"",userPassword:"",apikey:"",ipsValidated:!1,accountAction:null,keyServerAction:"",licenseAction:null,receivedSuccessNewServerState:null,purchaseWindow:{url:new URL(bt),name:"UnraidPurchaseLicense",width:1198,height:900,sendSessionToPopUp:!0},wizardWindow:_t,signInPayload:{..._t,url:_t.url+"/#/sign-in"},signUpPayload:{..._t,url:_t.url+"/#/sign-up"},signOutPayload:{..._t,url:_t.url+"/#/sign-out",width:600,height:500},extendTrialPayload:{..._t,url:_t.url+"/#/extend-trial"},recoverKeyPayload:{..._t,url:_t.url+"/#/recover-key"},replaceKeyPayload:{..._t,url:_t.url+"/#/replace-key"},troubleshootPayload:{..._t,url:_t.url+"/#/troubleshoot"},locale:"en_US",messages:null,graphOnline:!1,myServers:[],myServersLoading:!1,myServersError:null,myServersEnv:null,sentryEnabled:!1,hideMyServers:!1,plgVersion:null,hasRemoteApikey:null,configValid:null,configError:null},xt="GUID_NOT_RECEIVED",Et=!(!window.opener||window.opener===window),St=Et?window.opener.parent:window.parent,kt=[bt,gt,"https://launchpad.unraid.test:8081","https://launchpad.unraid.test:6969","https://registration.unraid.net","https://registration-dev.unraid.net","https://unraid.net","https://staging.unraid.net","https://craft.unraid.test"],Ot=t=>{try{return[null,JSON.parse(t)]}catch(t){return[t]}},Tt={actions:[],humanReadable:"",heading:"",message:"",messageCenter:!1,error:!1,withKey:!1},jt={...Tt,humanReadable:mt.tc("stateData.ENOFLASH.humanReadable"),error:{heading:mt.tc("stateData.ENOFLASH.error.heading"),message:mt.tc("stateData.ENOFLASH.error.message"),signInToFix:!1}},Ct={statePhpPath:t=>`/plugins/${t.plgPath||"dynamix.unraid.net"}/include/state.php`,myServersCfgPath:t=>(t.plgPath||"Unraid.net")+"/myservers.cfg",requireGuidValidation:t=>!Et||t.guidRegistered,validApiKeyLength:t=>64===t.apikey.length,validApiKeyForUpc:t=>!!t.apikey&&t.apikey.startsWith("unupc_"),trialExtensionEligible:t=>!(t.reggen&&!(t.reggen<2)),signedOutWithKey:(t,e)=>!(!e.stateData.withKey||t.registered),stateData:(t,e)=>{switch(t.state){case"ENOKEYFILE":return{...Tt,actions:[t.registered?"signOut":"register"],humanReadable:mt.tc("stateData.ENOKEYFILE.humanReadable"),heading:t.registered?mt.tc("stateData.ENOKEYFILE.heading.registered"):mt.tc("stateData.ENOKEYFILE.heading.notRegistered"),message:t.registered?mt.tc("stateData.ENOKEYFILE.message.registered"):mt.tc("stateData.ENOKEYFILE.message.notRegistered"),messageCenter:!0};case"TRIAL":return{...Tt,actions:[t.registered?"signOut":"register",t.registered?"purchase":null,t.registered?"continueTrial":null],humanReadable:mt.tc("stateData.TRIAL.humanReadable"),heading:mt.tc("stateData.TRIAL.heading"),message:mt.tc("stateData.TRIAL.message"),withKey:!0};case"EEXPIRED":return{...Tt,actions:[t.registered?"signOut":"register",t.registered&&e.trialExtensionEligible?"extend":null,t.registered?"purchase":null],humanReadable:mt.tc("stateData.EEXPIRED.humanReadable"),error:{heading:mt.tc("stateData.EEXPIRED.heading"),message:e.trialExtensionEligible?mt.tc("stateData.EEXPIRED.message.extensionEligible"):mt.tc("stateData.EEXPIRED.message.extensionNotEligible")},withKey:!0};case"BASIC":return{...Tt,actions:[t.registered?"signOut":"register",t.registered&&e.requireGuidValidation?"upgrade":null],humanReadable:mt.tc("stateData.BASIC.humanReadable"),heading:mt.tc("basicPlusPro.heading"),message:t.registered?t.guidRegistered?mt.tc("basicPlusPro.message.upgradeEligible"):"":mt.tc("basicPlusPro.message.registered"),messageCenter:!t.registered,withKey:!0};case"PLUS":return{...Tt,actions:[t.registered?"signOut":"register",t.registered&&e.requireGuidValidation?"upgrade":null],humanReadable:mt.tc("stateData.PLUS.humanReadable"),heading:mt.tc("basicPlusPro.heading"),message:t.registered?t.guidRegistered?mt.tc("basicPlusPro.message.upgradeEligible"):"":mt.tc("basicPlusPro.message.registered"),messageCenter:!t.registered,withKey:!0};case"PRO":return{...Tt,actions:[t.registered?"signOut":"register",t.registered?"close":null],humanReadable:mt.tc("stateData.PRO.humanReadable"),heading:mt.tc("basicPlusPro.heading"),message:t.registered?"":mt.tc("basicPlusPro.message.registered"),messageCenter:!t.registered,withKey:!0};case"EGUID":return{...Tt,actions:[t.registered?"signOut":"register",t.registered?"purchase":null,t.registered?"replace":null],humanReadable:mt.tc("stateData.EGUID.humanReadable"),error:{heading:mt.tc("stateData.EGUID.error.heading"),message:null===t.replaceable||t.replaceable?mt.tc("stateData.EGUID.error.message.replacementEligible"):`${mt.tc("stateData.EGUID.error.message.default")}
${mt.tc("stateData.EGUID.error.message.replacementIneligible")}`,signInToFix:!0}};case"EGUID1":return{...Tt,actions:[t.registered?"signOut":"register",t.registered?"purchase":null],humanReadable:mt.tc("stateData.EGUID1.humanReadable"),error:{heading:mt.tc("stateData.EGUID1.error.heading"),message:mt.tc("stateData.EGUID1.error.message"),signInToFix:!0}};case"ENOKEYFILE2":return{...Tt,actions:[t.registered?"signOut":"register",t.registered?"purchase":null,t.registered&&e.requireGuidValidation?"recover":null],humanReadable:mt.tc("stateData.ENOKEYFILE2.humanReadable"),error:{heading:mt.tc("stateData.ENOKEYFILE2.error.heading"),message:mt.tc("stateData.ENOKEYFILE2.error.message"),signInToFix:!0}};case"ETRIAL":return{...Tt,actions:[t.registered?"signOut":"register",t.registered&&e.requireGuidValidation?"purchase":null],humanReadable:mt.tc("stateData.ETRIAL.humanReadable"),error:{heading:mt.tc("stateData.ETRIAL.error.heading"),message:mt.tc("stateData.ETRIAL.error.message"),signInToFix:!0}};case"ENOKEYFILE1":return{...Tt,humanReadable:mt.tc("stateData.ENOKEYFILE1.humanReadable"),error:{heading:mt.tc("stateData.ENOKEYFILE1.error.heading"),message:mt.tc("stateData.ENOKEYFILE1.error.message"),signInToFix:!1}};case"ENOFLASH":case"ENOFLASH1":case"ENOFLASH2":case"ENOFLASH3":case"ENOFLASH4":case"ENOFLASH5":case"ENOFLASH6":case"ENOFLASH7":return jt;case"EBLACKLISTED":return{...Tt,humanReadable:mt.tc("stateData.EBLACKLISTED.humanReadable"),error:{heading:mt.tc("stateData.EBLACKLISTED.error.heading"),message:mt.tc("stateData.EBLACKLISTED.error.message"),signInToFix:!1}};case"EBLACKLISTED1":return{...Tt,humanReadable:mt.tc("stateData.EBLACKLISTED1.humanReadable"),error:{heading:mt.tc("stateData.EBLACKLISTED1.error.heading"),message:mt.tc("stateData.EBLACKLISTED1.error.message"),signInToFix:!1}};case"EBLACKLISTED2":return{...Tt,humanReadable:mt.tc("stateData.EBLACKLISTED2.humanReadable"),error:{heading:mt.tc("stateData.EBLACKLISTED2.error.heading"),message:mt.tc("stateData.EBLACKLISTED2.error.message"),signInToFix:!1}};case"ENOCONN":return{...Tt,humanReadable:mt.tc("stateData.ENOCONN.humanReadable"),error:{heading:mt.tc("stateData.ENOCONN.error.heading"),message:mt.tc("stateData.ENOCONN.error.message"),signInToFix:!1}};case"STALE":return{...Tt,humanReadable:mt.tc("stateData.STALE.humanReadable"),error:{heading:mt.tc("stateData.STALE.error.heading"),message:mt.tc("stateData.STALE.error.message"),signInToFix:!1}};default:return{...Tt}}},stateDataKeyActions:(t,e)=>!!(e.stateData.actions.includes("purchase")||e.stateData.actions.includes("upgrade")||e.stateData.actions.includes("recover")||e.stateData.actions.includes("replace")||e.stateData.actions.includes("extend")),keyTypeForPurchase:t=>{switch(t.state){case"BASIC":return"Basic";case"PLUS":return"Plus";case"PRO":return"Pro";default:return"Trial"}},isRemoteAccess:t=>t.site&&t.site.includes("www.")&&t.site.includes("unraid.net"),noRemoteApikeyRegisteredWithPlg:t=>!(!t.registered||t.hideMyServers||"boolean"!=typeof t.hasRemoteApikey||t.hasRemoteApikey),errorTooManyDisks:t=>!(null===t.configValid||t.configValid||"INVALID"!==t.configError),server:(t,e)=>({guid:t.guid||xt,regGuid:t.regGuid,guidRegistered:t.guidRegistered||t.regWizTime,guidValid:t.guidValid,hasRemoteApikey:t.hasRemoteApikey,regWizTime:t.regWizTime,keyfile:t.keyfile,keyTypeForPurchase:e.keyTypeForPurchase,flashproduct:t.flashproduct,flashvendor:t.flashvendor,servername:t.servername,serverdesc:t.serverdesc,internalip:t.internalip,site:t.site,state:t.state,internalport:t.internalport,protocol:t.protocol,registered:t.registered,reggen:t.reggen,userEmail:t.userEmail,expiretime:t.expiretime,ts:t.ts,locale:t.locale,deviceCount:t.deviceCount,sentryEnabled:t.sentryEnabled,plgPath:t.plgPath,plgVersion:t.plgVersion})};var At=r("9ea6");const It=Object(At.redactSecrets)("[REDACTED]",{keys:["guid"],values:[]}),Rt={...Object.fromEntries(Object.entries(console).map(([t,e])=>{if("debug"===t)return[t,()=>{}];if("function"==typeof method){const r=e.bind(console);return[t,(t,...e)=>e.length>=1?r(t,...e.map(t=>It.map(t))):r(t)]}return[t,e]}))},Nt={SET_APP_ERROR_MESSAGE(t,e){t.errorMessage=e,t.errorMessage&&Rt.error("[APP_ERROR]: %s",t.errorMessage)},SET_LOADING_STATE(t,e){Rt.debug("[SET_LOADING_STATE]: %o",e),t.loading=e},SET_IS_LAUNCHPAD_OPEN(t,e){Rt.debug("[SET_IS_LAUNCHPAD_OPEN]: %o",e),t.isLaunchpadOpen=e},SET_STATE(t,e){Rt.debug("[SET_STATE]: %o",e),t.state=e},CHANGE_GUID_REGISTERED(t,e){Rt.debug("[CHANGE_GUID_REGISTERED]: %o",e),t.guidRegistered=e},CHANGE_GUID_VALID(t,e){Rt.debug("[CHANGE_GUID_VALID]: %o",e),t.guidValid=e},CHANGE_REPLACEABLE(t,e){Rt.debug("[CHANGE_REPLACEABLE]: %o",e),t.replaceable=e},CHANGE_POP_UP_WINDOW(t,e){Rt.debug("[CHANGE_POP_UP_WINDOW]: %o",e),t.popUpWindow=e,t.isPopUpOpen=!!e,t.regAtOpen=null},STATE_AT_OPEN(t,e){t.regAtOpen=e},MUTATE_KEYSERVER_RESPONSE(t,e){Rt.debug("[MUTATE_KEYSERVER_RESPONSE]: %o",e),e.license&&(t.license=e.license),e.trial&&(t.keyfile=e.trial),e.apikey&&(t.apikey=e.apikey),e.validated&&(t.ipsValidated=e.validated),e.email&&(t.userEmail=e.email),e.password&&(t.userPassword=e.password),(e.action||e.keyServerAction)&&(t.keyServerAction=e.action||e.keyServerAction),e.username&&(t.username=e.username),e.avatar&&(t.avatar=e.avatar)},SET_TRIAL(t,e){Rt.debug("[SET_TRIAL]: %o",e),t.license=e.license,t.keyfile=e.trial,t.keyServerAction="extendTrial"},SET_USER_EMAIL(t,e){Rt.debug("[SET_USER_EMAIL]: %s",e),t.userEmail=e},SET_FULL_SERVER_STATE(t,e){if(Rt.debug("[SET_FULL_SERVER_STATE] start %o",e),!e)return Rt.error("[SET_FULL_SERVER_STATE] No state data…🤬");let r=e;return(r.registered||0===r.registered)&&(r.registered=Boolean(Number(r.registered))),(r.hasRemoteApikey||0===r.hasRemoteApikey)&&(r.hasRemoteApikey=Boolean(Number(r.hasRemoteApikey))),r.email&&(r={...r,userEmail:r.email},delete r.email),Rt.debug("[SET_FULL_SERVER_STATE] ✨ mutateData ✨ %o",{state:t,mutateData:r}),t=Object.assign(t,r),!0},SET_RAW_SERVER_STATE:(t,e)=>Et?(t.rawServerState=e,Rt.debug("[SET_RAW_SERVER_STATE] %o",e)):Rt.debug("[SET_RAW_SERVER_STATE] ❌ skipped not needed in non-pop-up ❌ %o",{CAN_POST_MESSAGE:Et}),SIGN_OUT(t){Rt.debug("[SIGN_OUT]: %s","✨"),t.registered=!1,t.license="",t.keyfile="",t.apikey="",t.ipsValidated=!1,t.userEmail="",t.userPassword="",t.username="",t.avatar=""},SUBMISSION_FROM(t,e){Rt.debug("[SUBMISSION_FROM]: %s",e),t.submissionFrom=e},SET_WANIP(t,e){Rt.debug("[SET_WANIP]: %s",e),t.wanip=e,sessionStorage.setItem("upc_wanip",e)},SET_SERVERDESC(t,e){Rt.debug("[SET_SERVERDESC]: %s",e),t.serverdesc=e},SET_SITE(t,e){Rt.debug("[SET_SITE]: %s",e),t.site=e},SET_CSRF(t,e){Rt.debug("[SET_CSRF]: %s",e),t.csrf=e},LICENSE_PINGBACK(t,e){Rt.debug("[LICENSE_PINGBACK]: %o",e),t.licenseAction=e},ACCOUNT_PINGBACK(t,e){Rt.debug("[ACCOUNT_PINGBACK]: %o",e),t.accountAction=e},RECEIVED_SUCCESS_NEW_SERVERSTATE(t,e){Rt.debug("[RECEIVED_SUCCESS_NEW_SERVERSTATE]: %o",e),t.receivedSuccessNewServerState=e},SET_EXPIRE_TIME(t,e){Rt.debug("[SET_EXPIRE_TIME]: %s",e),t.expiretime=e},SET_REGWIZ_TIME(t,e){Rt.debug("[SET_REGWIZ_TIME]: %s",e),t.regWizTime=e},CHANGE_GUID_FORUMACCOUNT(t,e){Rt.debug("[CHANGE_GUID_FORUMACCOUNT]: %s",e),t.forumaccount=e},SET_LOCALE(t,e){Rt.debug("[SET_LOCALE]: %s",e),t.locale=e},LOCALE_MESSAGES(t,e){const[r,n]=Ot(decodeURIComponent(e));r?Rt.warn("[LOCALE_MESSAGES]: %o",r):(Rt.debug("[LOCALE_MESSAGES]: %o",n),t.messages=n)},SET_API_KEY(t,e){Rt.debug("[SET_API_KEY]: %s",e),t.apikey=e},SET_GRAPH_ONLINE(t,e){Rt.debug("[SET_GRAPH_ONLINE]: %o",e),t.graphOnline=e},SET_MY_SERVERS(t,e){Rt.debug("[SET_MY_SERVERS]: %o",e),t.myServers=[...e]},SET_MY_SERVERS_LOADING(t,e){Rt.debug("[SET_MY_SERVERS_LOADING]: %o",e),t.myServersLoading=e},SET_MY_SERVERS_ERROR(t,e){e?Rt.error("[myServersError]: %o",e):Rt.debug("[myServersError]",e),t.myServersError=e},SET_MY_SERVERS_ENV(t,e){Rt.debug("[SET_MY_SERVERS_ENV]: %o",e),t.myServersEnv=e},TRIGGER_UPC(t,e){Rt.debug("[TRIGGER_UPC]: %o",e),t.triggerUPC=e},SET_SENTRY_ENABLED(t,e){Rt.debug("[SET_SENTRY_ENABLED]: %o",e),t.sentryEnabled=e},SET_DARK_MODE(t,e){Rt.debug("[SET_DARK_MODE]: %o",e),t.darkMode=e},SET_HIDE_MY_SERVERS(t,e){Rt.debug("[SET_HIDE_MY_SERVERS]: %o",e),t.hideMyServers=!!e},SET_PLG_PATH:(t,e)=>"dynamix.my.servers"!==e?Rt.warn("[SET_PLG_PATH] value not allowed",e):(Rt.debug("[SET_PLG_PATH]: %o",e),t.plgPath=e,!0)};var Dt=function(){return(Dt=Object.assign||function(t){for(var e,r=1,n=arguments.length;r1&&void 0!==arguments[1]?arguments[1]:t.prototype.toString;t.prototype.toJSON=e,t.prototype.inspect=e,Lt.a&&(t.prototype[Lt.a]=e)}function Ft(t){return(Ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $t(t,e){for(var r,n=/\r\n|[\n\r]/g,i=1,o=e+1;(r=n.exec(t.body))&&r.index120){for(var d=Math.floor(c/80),f=c%80,h=[],m=0;m0||Mt(0,"line in locationOffset is 1-indexed and must be positive"),this.locationOffset.column>0||Mt(0,"column in locationOffset is 1-indexed and must be positive")};!function(t){"function"==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t.prototype,Symbol.toStringTag,{get:function(){return this.constructor.name}})}(Qt);var Yt=r("04b4"),Kt=Object.freeze({SOF:"",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function Jt(){return this.lastToken=this.token,this.token=this.lookahead()}function Xt(){var t=this.token;if(t.kind!==Kt.EOF)do{t=t.next||(t.next=ee(this,t))}while(t.kind===Kt.COMMENT);return t}function Zt(t,e,r,n,i,o,a){this.kind=t,this.start=e,this.end=r,this.line=n,this.column=i,this.value=a,this.prev=o,this.next=null}function te(t){return isNaN(t)?Kt.EOF:t<127?JSON.stringify(String.fromCharCode(t)):'"\\u'.concat(("00"+t.toString(16).toUpperCase()).slice(-4),'"')}function ee(t,e){var r=t.source,n=r.body,i=n.length,o=function(t,e,r){var n=t.length,i=e;for(;i=i)return new Zt(Kt.EOF,i,i,a,s,e);var c=n.charCodeAt(o);switch(c){case 33:return new Zt(Kt.BANG,o,o+1,a,s,e);case 35:return function(t,e,r,n,i){var o,a=t.body,s=e;do{o=a.charCodeAt(++s)}while(!isNaN(o)&&(o>31||9===o));return new Zt(Kt.COMMENT,e,s,r,n,i,a.slice(e+1,s))}(r,o,a,s,e);case 36:return new Zt(Kt.DOLLAR,o,o+1,a,s,e);case 38:return new Zt(Kt.AMP,o,o+1,a,s,e);case 40:return new Zt(Kt.PAREN_L,o,o+1,a,s,e);case 41:return new Zt(Kt.PAREN_R,o,o+1,a,s,e);case 46:if(46===n.charCodeAt(o+1)&&46===n.charCodeAt(o+2))return new Zt(Kt.SPREAD,o,o+3,a,s,e);break;case 58:return new Zt(Kt.COLON,o,o+1,a,s,e);case 61:return new Zt(Kt.EQUALS,o,o+1,a,s,e);case 64:return new Zt(Kt.AT,o,o+1,a,s,e);case 91:return new Zt(Kt.BRACKET_L,o,o+1,a,s,e);case 93:return new Zt(Kt.BRACKET_R,o,o+1,a,s,e);case 123:return new Zt(Kt.BRACE_L,o,o+1,a,s,e);case 124:return new Zt(Kt.PIPE,o,o+1,a,s,e);case 125:return new Zt(Kt.BRACE_R,o,o+1,a,s,e);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return function(t,e,r,n,i){var o=t.body,a=o.length,s=e+1,c=0;for(;s!==a&&!isNaN(c=o.charCodeAt(s))&&(95===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122);)++s;return new Zt(Kt.NAME,e,s,r,n,i,o.slice(e,s))}(r,o,a,s,e);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return function(t,e,r,n,i,o){var a=t.body,s=r,c=e,u=!1;if(45===s&&(s=a.charCodeAt(++c)),48===s){if((s=a.charCodeAt(++c))>=48&&s<=57)throw Wt(t,c,"Invalid number, unexpected digit after 0: ".concat(te(s),"."))}else c=re(t,c,s),s=a.charCodeAt(c);if(46===s&&(u=!0,s=a.charCodeAt(++c),c=re(t,c,s),s=a.charCodeAt(c)),69!==s&&101!==s||(u=!0,43!==(s=a.charCodeAt(++c))&&45!==s||(s=a.charCodeAt(++c)),c=re(t,c,s),s=a.charCodeAt(c)),46===s||69===s||101===s)throw Wt(t,c,"Invalid number, expected digit but got: ".concat(te(s),"."));return new Zt(u?Kt.FLOAT:Kt.INT,e,c,n,i,o,a.slice(e,c))}(r,o,c,a,s,e);case 34:return 34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)?function(t,e,r,n,i,o){var a=t.body,s=e+3,c=s,u=0,l="";for(;s=48&&o<=57){do{o=n.charCodeAt(++i)}while(o>=48&&o<=57);return i}throw Wt(t,i,"Invalid number, expected digit but got: ".concat(te(o),"."))}function ne(t,e,r,n){return ie(t)<<12|ie(e)<<8|ie(r)<<4|ie(n)}function ie(t){return t>=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:-1}Ut(Zt,(function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}));var oe=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});var ae=function(){function t(t,e){var r="string"==typeof t?new Qt(t):t;r instanceof Qt||Mt(0,"Must provide Source. Received: ".concat(Object(Pt.a)(r))),this._lexer=function(t,e){var r=new Zt(Kt.SOF,0,0,0,0,null);return{source:t,options:e,lastToken:r,token:r,line:1,lineStart:0,advance:Jt,lookahead:Xt}}(r),this._options=e||{}}var e=t.prototype;return e.parseName=function(){var t=this.expectToken(Kt.NAME);return{kind:Ht.a.NAME,value:t.value,loc:this.loc(t)}},e.parseDocument=function(){var t=this._lexer.token;return{kind:Ht.a.DOCUMENT,definitions:this.many(Kt.SOF,this.parseDefinition,Kt.EOF),loc:this.loc(t)}},e.parseDefinition=function(){if(this.peek(Kt.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(Kt.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},e.parseOperationDefinition=function(){var t=this._lexer.token;if(this.peek(Kt.BRACE_L))return{kind:Ht.a.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(t)};var e,r=this.parseOperationType();return this.peek(Kt.NAME)&&(e=this.parseName()),{kind:Ht.a.OPERATION_DEFINITION,operation:r,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},e.parseOperationType=function(){var t=this.expectToken(Kt.NAME);switch(t.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(t)},e.parseVariableDefinitions=function(){return this.optionalMany(Kt.PAREN_L,this.parseVariableDefinition,Kt.PAREN_R)},e.parseVariableDefinition=function(){var t=this._lexer.token;return{kind:Ht.a.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Kt.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Kt.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(t)}},e.parseVariable=function(){var t=this._lexer.token;return this.expectToken(Kt.DOLLAR),{kind:Ht.a.VARIABLE,name:this.parseName(),loc:this.loc(t)}},e.parseSelectionSet=function(){var t=this._lexer.token;return{kind:Ht.a.SELECTION_SET,selections:this.many(Kt.BRACE_L,this.parseSelection,Kt.BRACE_R),loc:this.loc(t)}},e.parseSelection=function(){return this.peek(Kt.SPREAD)?this.parseFragment():this.parseField()},e.parseField=function(){var t,e,r=this._lexer.token,n=this.parseName();return this.expectOptionalToken(Kt.COLON)?(t=n,e=this.parseName()):e=n,{kind:Ht.a.FIELD,alias:t,name:e,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Kt.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(r)}},e.parseArguments=function(t){var e=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(Kt.PAREN_L,e,Kt.PAREN_R)},e.parseArgument=function(){var t=this._lexer.token,e=this.parseName();return this.expectToken(Kt.COLON),{kind:Ht.a.ARGUMENT,name:e,value:this.parseValueLiteral(!1),loc:this.loc(t)}},e.parseConstArgument=function(){var t=this._lexer.token;return{kind:Ht.a.ARGUMENT,name:this.parseName(),value:(this.expectToken(Kt.COLON),this.parseValueLiteral(!0)),loc:this.loc(t)}},e.parseFragment=function(){var t=this._lexer.token;this.expectToken(Kt.SPREAD);var e=this.expectOptionalKeyword("on");return!e&&this.peek(Kt.NAME)?{kind:Ht.a.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(t)}:{kind:Ht.a.INLINE_FRAGMENT,typeCondition:e?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},e.parseFragmentDefinition=function(){var t=this._lexer.token;return this.expectKeyword("fragment"),this._options.experimentalFragmentVariables?{kind:Ht.a.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:Ht.a.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},e.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},e.parseValueLiteral=function(t){var e=this._lexer.token;switch(e.kind){case Kt.BRACKET_L:return this.parseList(t);case Kt.BRACE_L:return this.parseObject(t);case Kt.INT:return this._lexer.advance(),{kind:Ht.a.INT,value:e.value,loc:this.loc(e)};case Kt.FLOAT:return this._lexer.advance(),{kind:Ht.a.FLOAT,value:e.value,loc:this.loc(e)};case Kt.STRING:case Kt.BLOCK_STRING:return this.parseStringLiteral();case Kt.NAME:return"true"===e.value||"false"===e.value?(this._lexer.advance(),{kind:Ht.a.BOOLEAN,value:"true"===e.value,loc:this.loc(e)}):"null"===e.value?(this._lexer.advance(),{kind:Ht.a.NULL,loc:this.loc(e)}):(this._lexer.advance(),{kind:Ht.a.ENUM,value:e.value,loc:this.loc(e)});case Kt.DOLLAR:if(!t)return this.parseVariable()}throw this.unexpected()},e.parseStringLiteral=function(){var t=this._lexer.token;return this._lexer.advance(),{kind:Ht.a.STRING,value:t.value,block:t.kind===Kt.BLOCK_STRING,loc:this.loc(t)}},e.parseList=function(t){var e=this,r=this._lexer.token;return{kind:Ht.a.LIST,values:this.any(Kt.BRACKET_L,(function(){return e.parseValueLiteral(t)}),Kt.BRACKET_R),loc:this.loc(r)}},e.parseObject=function(t){var e=this,r=this._lexer.token;return{kind:Ht.a.OBJECT,fields:this.any(Kt.BRACE_L,(function(){return e.parseObjectField(t)}),Kt.BRACE_R),loc:this.loc(r)}},e.parseObjectField=function(t){var e=this._lexer.token,r=this.parseName();return this.expectToken(Kt.COLON),{kind:Ht.a.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t),loc:this.loc(e)}},e.parseDirectives=function(t){for(var e=[];this.peek(Kt.AT);)e.push(this.parseDirective(t));return e},e.parseDirective=function(t){var e=this._lexer.token;return this.expectToken(Kt.AT),{kind:Ht.a.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t),loc:this.loc(e)}},e.parseTypeReference=function(){var t,e=this._lexer.token;return this.expectOptionalToken(Kt.BRACKET_L)?(t=this.parseTypeReference(),this.expectToken(Kt.BRACKET_R),t={kind:Ht.a.LIST_TYPE,type:t,loc:this.loc(e)}):t=this.parseNamedType(),this.expectOptionalToken(Kt.BANG)?{kind:Ht.a.NON_NULL_TYPE,type:t,loc:this.loc(e)}:t},e.parseNamedType=function(){var t=this._lexer.token;return{kind:Ht.a.NAMED_TYPE,name:this.parseName(),loc:this.loc(t)}},e.parseTypeSystemDefinition=function(){var t=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(t.kind===Kt.NAME)switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(t)},e.peekDescription=function(){return this.peek(Kt.STRING)||this.peek(Kt.BLOCK_STRING)},e.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},e.parseSchemaDefinition=function(){var t=this._lexer.token;this.expectKeyword("schema");var e=this.parseDirectives(!0),r=this.many(Kt.BRACE_L,this.parseOperationTypeDefinition,Kt.BRACE_R);return{kind:Ht.a.SCHEMA_DEFINITION,directives:e,operationTypes:r,loc:this.loc(t)}},e.parseOperationTypeDefinition=function(){var t=this._lexer.token,e=this.parseOperationType();this.expectToken(Kt.COLON);var r=this.parseNamedType();return{kind:Ht.a.OPERATION_TYPE_DEFINITION,operation:e,type:r,loc:this.loc(t)}},e.parseScalarTypeDefinition=function(){var t=this._lexer.token,e=this.parseDescription();this.expectKeyword("scalar");var r=this.parseName(),n=this.parseDirectives(!0);return{kind:Ht.a.SCALAR_TYPE_DEFINITION,description:e,name:r,directives:n,loc:this.loc(t)}},e.parseObjectTypeDefinition=function(){var t=this._lexer.token,e=this.parseDescription();this.expectKeyword("type");var r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:Ht.a.OBJECT_TYPE_DEFINITION,description:e,name:r,interfaces:n,directives:i,fields:o,loc:this.loc(t)}},e.parseImplementsInterfaces=function(){var t=[];if(this.expectOptionalKeyword("implements")){this.expectOptionalToken(Kt.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(Kt.AMP)||this._options.allowLegacySDLImplementsInterfaces&&this.peek(Kt.NAME))}return t},e.parseFieldsDefinition=function(){return this._options.allowLegacySDLEmptyFields&&this.peek(Kt.BRACE_L)&&this._lexer.lookahead().kind===Kt.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(Kt.BRACE_L,this.parseFieldDefinition,Kt.BRACE_R)},e.parseFieldDefinition=function(){var t=this._lexer.token,e=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(Kt.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:Ht.a.FIELD_DEFINITION,description:e,name:r,arguments:n,type:i,directives:o,loc:this.loc(t)}},e.parseArgumentDefs=function(){return this.optionalMany(Kt.PAREN_L,this.parseInputValueDef,Kt.PAREN_R)},e.parseInputValueDef=function(){var t=this._lexer.token,e=this.parseDescription(),r=this.parseName();this.expectToken(Kt.COLON);var n,i=this.parseTypeReference();this.expectOptionalToken(Kt.EQUALS)&&(n=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:Ht.a.INPUT_VALUE_DEFINITION,description:e,name:r,type:i,defaultValue:n,directives:o,loc:this.loc(t)}},e.parseInterfaceTypeDefinition=function(){var t=this._lexer.token,e=this.parseDescription();this.expectKeyword("interface");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseFieldsDefinition();return{kind:Ht.a.INTERFACE_TYPE_DEFINITION,description:e,name:r,directives:n,fields:i,loc:this.loc(t)}},e.parseUnionTypeDefinition=function(){var t=this._lexer.token,e=this.parseDescription();this.expectKeyword("union");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:Ht.a.UNION_TYPE_DEFINITION,description:e,name:r,directives:n,types:i,loc:this.loc(t)}},e.parseUnionMemberTypes=function(){var t=[];if(this.expectOptionalToken(Kt.EQUALS)){this.expectOptionalToken(Kt.PIPE);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(Kt.PIPE))}return t},e.parseEnumTypeDefinition=function(){var t=this._lexer.token,e=this.parseDescription();this.expectKeyword("enum");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:Ht.a.ENUM_TYPE_DEFINITION,description:e,name:r,directives:n,values:i,loc:this.loc(t)}},e.parseEnumValuesDefinition=function(){return this.optionalMany(Kt.BRACE_L,this.parseEnumValueDefinition,Kt.BRACE_R)},e.parseEnumValueDefinition=function(){var t=this._lexer.token,e=this.parseDescription(),r=this.parseName(),n=this.parseDirectives(!0);return{kind:Ht.a.ENUM_VALUE_DEFINITION,description:e,name:r,directives:n,loc:this.loc(t)}},e.parseInputObjectTypeDefinition=function(){var t=this._lexer.token,e=this.parseDescription();this.expectKeyword("input");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:Ht.a.INPUT_OBJECT_TYPE_DEFINITION,description:e,name:r,directives:n,fields:i,loc:this.loc(t)}},e.parseInputFieldsDefinition=function(){return this.optionalMany(Kt.BRACE_L,this.parseInputValueDef,Kt.BRACE_R)},e.parseTypeSystemExtension=function(){var t=this._lexer.lookahead();if(t.kind===Kt.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)},e.parseSchemaExtension=function(){var t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var e=this.parseDirectives(!0),r=this.optionalMany(Kt.BRACE_L,this.parseOperationTypeDefinition,Kt.BRACE_R);if(0===e.length&&0===r.length)throw this.unexpected();return{kind:Ht.a.SCHEMA_EXTENSION,directives:e,operationTypes:r,loc:this.loc(t)}},e.parseScalarTypeExtension=function(){var t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var e=this.parseName(),r=this.parseDirectives(!0);if(0===r.length)throw this.unexpected();return{kind:Ht.a.SCALAR_TYPE_EXTENSION,name:e,directives:r,loc:this.loc(t)}},e.parseObjectTypeExtension=function(){var t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var e=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return{kind:Ht.a.OBJECT_TYPE_EXTENSION,name:e,interfaces:r,directives:n,fields:i,loc:this.loc(t)}},e.parseInterfaceTypeExtension=function(){var t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var e=this.parseName(),r=this.parseDirectives(!0),n=this.parseFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:Ht.a.INTERFACE_TYPE_EXTENSION,name:e,directives:r,fields:n,loc:this.loc(t)}},e.parseUnionTypeExtension=function(){var t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var e=this.parseName(),r=this.parseDirectives(!0),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:Ht.a.UNION_TYPE_EXTENSION,name:e,directives:r,types:n,loc:this.loc(t)}},e.parseEnumTypeExtension=function(){var t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var e=this.parseName(),r=this.parseDirectives(!0),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:Ht.a.ENUM_TYPE_EXTENSION,name:e,directives:r,values:n,loc:this.loc(t)}},e.parseInputObjectTypeExtension=function(){var t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var e=this.parseName(),r=this.parseDirectives(!0),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:Ht.a.INPUT_OBJECT_TYPE_EXTENSION,name:e,directives:r,fields:n,loc:this.loc(t)}},e.parseDirectiveDefinition=function(){var t=this._lexer.token,e=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Kt.AT);var r=this.parseName(),n=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:Ht.a.DIRECTIVE_DEFINITION,description:e,name:r,arguments:n,repeatable:i,locations:o,loc:this.loc(t)}},e.parseDirectiveLocations=function(){this.expectOptionalToken(Kt.PIPE);var t=[];do{t.push(this.parseDirectiveLocation())}while(this.expectOptionalToken(Kt.PIPE));return t},e.parseDirectiveLocation=function(){var t=this._lexer.token,e=this.parseName();if(void 0!==oe[e.value])return e;throw this.unexpected(t)},e.loc=function(t){if(!this._options.noLocation)return new se(t,this._lexer.lastToken,this._lexer.source)},e.peek=function(t){return this._lexer.token.kind===t},e.expectToken=function(t){var e=this._lexer.token;if(e.kind===t)return this._lexer.advance(),e;throw Wt(this._lexer.source,e.start,"Expected ".concat(t,", found ").concat(ce(e)))},e.expectOptionalToken=function(t){var e=this._lexer.token;if(e.kind===t)return this._lexer.advance(),e},e.expectKeyword=function(t){var e=this._lexer.token;if(e.kind!==Kt.NAME||e.value!==t)throw Wt(this._lexer.source,e.start,'Expected "'.concat(t,'", found ').concat(ce(e)));this._lexer.advance()},e.expectOptionalKeyword=function(t){var e=this._lexer.token;return e.kind===Kt.NAME&&e.value===t&&(this._lexer.advance(),!0)},e.unexpected=function(t){var e=t||this._lexer.token;return Wt(this._lexer.source,e.start,"Unexpected ".concat(ce(e)))},e.any=function(t,e,r){this.expectToken(t);for(var n=[];!this.expectOptionalToken(r);)n.push(e.call(this));return n},e.optionalMany=function(t,e,r){if(this.expectOptionalToken(t)){var n=[];do{n.push(e.call(this))}while(!this.expectOptionalToken(r));return n}return[]},e.many=function(t,e,r){this.expectToken(t);var n=[];do{n.push(e.call(this))}while(!this.expectOptionalToken(r));return n},t}();function se(t,e,r){this.start=t.start,this.end=e.end,this.startToken=t,this.endToken=e,this.source=r}function ce(t){var e=t.value;return e?"".concat(t.kind,' "').concat(e,'"'):t.kind}Ut(se,(function(){return{start:this.start,end:this.end}}));var ue=new Map,le=new Map,pe=!0,de=!1;function fe(t){return t.replace(/[\s,]+/g," ").trim()}function he(t){var e=new Set,r=[];return t.definitions.forEach((function(t){if("FragmentDefinition"===t.kind){var n=t.name.value,i=function(t){return fe(t.source.body.substring(t.start,t.end))}(t.loc),o=le.get(n);o&&!o.has(i)?pe&&console.warn("Warning: fragment with name "+n+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||le.set(n,o=new Set),o.add(i),e.has(i)||(e.add(i),r.push(t))}else r.push(t)})),Dt(Dt({},t),{definitions:r})}function me(t){var e=fe(t);if(!ue.has(e)){var r=function(t,e){return new ae(t,e).parseDocument()}(t,{experimentalFragmentVariables:de});if(!r||"Document"!==r.kind)throw new Error("Not a valid GraphQL document.");ue.set(e,function(t){var e=new Set(t.definitions);e.forEach((function(t){t.loc&&delete t.loc,Object.keys(t).forEach((function(r){var n=t[r];n&&"object"==typeof n&&e.add(n)}))}));var r=t.loc;return r&&(delete r.startToken,delete r.endToken),t}(he(r)))}return ue.get(e)}function ve(t){for(var e=[],r=1;r0}var Ve,ze=function(t){function e(r){var n=r.graphQLErrors,i=r.networkError,o=r.errorMessage,a=r.extraInfo,s=t.call(this,o)||this;return s.graphQLErrors=n||[],s.networkError=i||null,s.message=o||function(t){var e="";return $e(t.graphQLErrors)&&t.graphQLErrors.forEach((function(t){var r=t?t.message:"Error message not found.";e+="GraphQL error: "+r+"\n"})),t.networkError&&(e+="Network error: "+t.networkError.message+"\n"),e=e.replace(/\n$/,"")}(s),s.extraInfo=a,s.__proto__=e.prototype,s}return Object(ye.c)(e,t),e}(Error);!function(t){t[t.normal=1]="normal",t[t.refetch=2]="refetch",t[t.poll=3]="poll"}(Ve||(Ve={}));var qe=function(t){function e(e){var r=e.queryManager,n=e.options,i=e.shouldSubscribe,o=void 0===i||i,a=t.call(this,(function(t){return a.onSubscribe(t)}))||this;a.observers=new Set,a.subscriptions=new Set,a.isTornDown=!1,a.options=n,a.variables=n.variables||{},a.queryId=r.generateQueryId(),a.shouldSubscribe=o;var s=Object(_e.m)(n.query);return a.queryName=s&&s.name&&s.name.value,a.queryManager=r,a}return Object(ye.c)(e,t),e.prototype.result=function(){var t=this;return new Promise((function(e,r){var n={next:function(r){e(r),t.observers.delete(n),t.observers.size||t.queryManager.removeQuery(t.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:r},i=t.subscribe(n)}))},e.prototype.currentResult=function(){var t=this.getCurrentResult();return void 0===t.data&&(t.data={}),t},e.prototype.getCurrentResult=function(){if(this.isTornDown){var t=this.lastResult;return{data:!this.lastError&&t&&t.data||void 0,error:this.lastError,loading:!1,networkStatus:Pe.error}}var e,r=this.queryManager.getCurrentQueryResult(this),n=r.data,i=r.partial,o=this.queryManager.queryStore.get(this.queryId),a=this.options.fetchPolicy,s="network-only"===a||"no-cache"===a;if(o){var c=o.networkStatus;if(function(t,e){return void 0===e&&(e="none"),t&&(t.networkError||"none"===e&&$e(t.graphQLErrors))}(o,this.options.errorPolicy))return{data:void 0,loading:!1,networkStatus:c,error:new ze({graphQLErrors:o.graphQLErrors,networkError:o.networkError})};o.variables&&(this.options.variables=Object(ye.a)(Object(ye.a)({},this.options.variables),o.variables),this.variables=this.options.variables),e={data:n,loading:Ue(c),networkStatus:c},o.graphQLErrors&&"all"===this.options.errorPolicy&&(e.errors=o.graphQLErrors)}else{var u=s||i&&"cache-only"!==a;e={data:n,loading:u,networkStatus:u?Pe.loading:Pe.ready}}return i||this.updateLastResult(Object(ye.a)(Object(ye.a)({},e),{stale:!1})),Object(ye.a)(Object(ye.a)({},e),{partial:i})},e.prototype.isDifferentFromLastResult=function(t){var e=this.lastResultSnapshot;return!(e&&t&&e.networkStatus===t.networkStatus&&e.stale===t.stale&&Object(we.a)(e.data,t.data))},e.prototype.getLastResult=function(){return this.lastResult},e.prototype.getLastError=function(){return this.lastError},e.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},e.prototype.resetQueryStoreErrors=function(){var t=this.queryManager.queryStore.get(this.queryId);t&&(t.networkError=null,t.graphQLErrors=[])},e.prototype.refetch=function(t){var e=this.options.fetchPolicy;return"cache-only"===e?Promise.reject(new Se.a(1)):("no-cache"!==e&&"cache-and-network"!==e&&(e="network-only"),Object(we.a)(this.variables,t)||(this.variables=Object(ye.a)(Object(ye.a)({},this.variables),t)),Object(we.a)(this.options.variables,this.variables)||(this.options.variables=Object(ye.a)(Object(ye.a)({},this.options.variables),this.variables)),this.queryManager.fetchQuery(this.queryId,Object(ye.a)(Object(ye.a)({},this.options),{fetchPolicy:e}),Ve.refetch))},e.prototype.fetchMore=function(t){var e=this;Object(Se.b)(t.updateQuery,2);var r=Object(ye.a)(Object(ye.a)({},t.query?t:Object(ye.a)(Object(ye.a)(Object(ye.a)({},this.options),t),{variables:Object(ye.a)(Object(ye.a)({},this.variables),t.variables)})),{fetchPolicy:"network-only"}),n=this.queryManager.generateQueryId();return this.queryManager.fetchQuery(n,r,Ve.normal,this.queryId).then((function(i){return e.updateQuery((function(e){return t.updateQuery(e,{fetchMoreResult:i.data,variables:r.variables})})),e.queryManager.stopQuery(n),i}),(function(t){throw e.queryManager.stopQuery(n),t}))},e.prototype.subscribeToMore=function(t){var e=this,r=this.queryManager.startGraphQLSubscription({query:t.document,variables:t.variables}).subscribe({next:function(r){var n=t.updateQuery;n&&e.updateQuery((function(t,e){var i=e.variables;return n(t,{subscriptionData:r,variables:i})}))},error:function(e){t.onError&&t.onError(e)}});return this.subscriptions.add(r),function(){e.subscriptions.delete(r)&&r.unsubscribe()}},e.prototype.setOptions=function(t){var e=this.options.fetchPolicy;this.options=Object(ye.a)(Object(ye.a)({},this.options),t),t.pollInterval?this.startPolling(t.pollInterval):0===t.pollInterval&&this.stopPolling();var r=t.fetchPolicy;return this.setVariables(this.options.variables,e!==r&&("cache-only"===e||"standby"===e||"network-only"===r),t.fetchResults)},e.prototype.setVariables=function(t,e,r){return void 0===e&&(e=!1),void 0===r&&(r=!0),this.isTornDown=!1,t=t||this.variables,!e&&Object(we.a)(t,this.variables)?this.observers.size&&r?this.result():Promise.resolve():(this.variables=this.options.variables=t,this.observers.size?this.queryManager.fetchQuery(this.queryId,this.options):Promise.resolve())},e.prototype.updateQuery=function(t){var e=this.queryManager,r=e.getQueryWithPreviousResult(this.queryId),n=r.previousResult,i=r.variables,o=r.document,a=Object(_e.I)((function(){return t(n,{variables:i})}));a&&(e.dataStore.markUpdateQueryResult(o,i,a),e.broadcastQueries())},e.prototype.stopPolling=function(){this.queryManager.stopPollingQuery(this.queryId),this.options.pollInterval=void 0},e.prototype.startPolling=function(t){We(this),this.options.pollInterval=t,this.queryManager.startPollingQuery(this.options,this.queryId)},e.prototype.updateLastResult=function(t){var e=this.lastResult;return this.lastResult=t,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?t:Object(_e.f)(t),e},e.prototype.onSubscribe=function(t){var e=this;try{var r=t._subscription._observer;r&&!r.error&&(r.error=Be)}catch(t){}var n=!this.observers.size;return this.observers.add(t),t.next&&this.lastResult&&t.next(this.lastResult),t.error&&this.lastError&&t.error(this.lastError),n&&this.setUpQuery(),function(){e.observers.delete(t)&&!e.observers.size&&e.tearDownQuery()}},e.prototype.setUpQuery=function(){var t=this,e=this.queryManager,r=this.queryId;this.shouldSubscribe&&e.addObservableQuery(r,this),this.options.pollInterval&&(We(this),e.startPollingQuery(this.options,r));var n=function(e){t.updateLastResult(Object(ye.a)(Object(ye.a)({},t.lastResult),{errors:e.graphQLErrors,networkStatus:Pe.error,loading:!1})),Ge(t.observers,"error",t.lastError=e)};e.observeQuery(r,this.options,{next:function(r){if(t.lastError||t.isDifferentFromLastResult(r)){var n=t.updateLastResult(r),i=t.options,o=i.query,a=i.variables,s=i.fetchPolicy;e.transform(o).hasClientExports?e.getLocalState().addExportedVariables(o,a).then((function(i){var a=t.variables;t.variables=t.options.variables=i,!r.loading&&n&&"cache-only"!==s&&e.transform(o).serverQuery&&!Object(we.a)(a,i)?t.refetch():Ge(t.observers,"next",r)})):Ge(t.observers,"next",r)}},error:n}).catch(n)},e.prototype.tearDownQuery=function(){var t=this.queryManager;this.isTornDown=!0,t.stopPollingQuery(this.queryId),this.subscriptions.forEach((function(t){return t.unsubscribe()})),this.subscriptions.clear(),t.removeObservableQuery(this.queryId),t.stopQuery(this.queryId),this.observers.clear()},e}(Fe);function Be(t){}function Ge(t,e,r){var n=[];t.forEach((function(t){return t[e]&&n.push(t)})),n.forEach((function(t){return t[e](r)}))}function We(t){var e=t.options.fetchPolicy;Object(Se.b)("cache-first"!==e&&"cache-only"!==e,3)}var He=function(){function t(){this.store={}}return t.prototype.getStore=function(){return this.store},t.prototype.get=function(t){return this.store[t]},t.prototype.initMutation=function(t,e,r){this.store[t]={mutation:e,variables:r||{},loading:!0,error:null}},t.prototype.markMutationError=function(t,e){var r=this.store[t];r&&(r.loading=!1,r.error=e)},t.prototype.markMutationResult=function(t){var e=this.store[t];e&&(e.loading=!1,e.error=null)},t.prototype.reset=function(){this.store={}},t}(),Qe=function(){function t(){this.store={}}return t.prototype.getStore=function(){return this.store},t.prototype.get=function(t){return this.store[t]},t.prototype.initQuery=function(t){var e=this.store[t.queryId];Object(Se.b)(!e||e.document===t.document||Object(we.a)(e.document,t.document),19);var r,n=!1,i=null;t.storePreviousVariables&&e&&e.networkStatus!==Pe.loading&&(Object(we.a)(e.variables,t.variables)||(n=!0,i=e.variables)),r=n?Pe.setVariables:t.isPoll?Pe.poll:t.isRefetch?Pe.refetch:Pe.loading;var o=[];e&&e.graphQLErrors&&(o=e.graphQLErrors),this.store[t.queryId]={document:t.document,variables:t.variables,previousVariables:i,networkError:null,graphQLErrors:o,networkStatus:r,metadata:t.metadata},"string"==typeof t.fetchMoreForQueryId&&this.store[t.fetchMoreForQueryId]&&(this.store[t.fetchMoreForQueryId].networkStatus=Pe.fetchMore)},t.prototype.markQueryResult=function(t,e,r){this.store&&this.store[t]&&(this.store[t].networkError=null,this.store[t].graphQLErrors=$e(e.errors)?e.errors:[],this.store[t].previousVariables=null,this.store[t].networkStatus=Pe.ready,"string"==typeof r&&this.store[r]&&(this.store[r].networkStatus=Pe.ready))},t.prototype.markQueryError=function(t,e,r){this.store&&this.store[t]&&(this.store[t].networkError=e,this.store[t].networkStatus=Pe.error,"string"==typeof r&&this.markQueryResultClient(r,!0))},t.prototype.markQueryResultClient=function(t,e){var r=this.store&&this.store[t];r&&(r.networkError=null,r.previousVariables=null,e&&(r.networkStatus=Pe.ready))},t.prototype.stopQuery=function(t){delete this.store[t]},t.prototype.reset=function(t){var e=this;Object.keys(this.store).forEach((function(r){t.indexOf(r)<0?e.stopQuery(r):e.store[r].networkStatus=Pe.loading}))},t}();var Ye=function(){function t(t){var e=t.cache,r=t.client,n=t.resolvers,i=t.fragmentMatcher;this.cache=e,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return t.prototype.addResolvers=function(t){var e=this;this.resolvers=this.resolvers||{},Array.isArray(t)?t.forEach((function(t){e.resolvers=Object(_e.A)(e.resolvers,t)})):this.resolvers=Object(_e.A)(this.resolvers,t)},t.prototype.setResolvers=function(t){this.resolvers={},this.addResolvers(t)},t.prototype.getResolvers=function(){return this.resolvers||{}},t.prototype.runResolvers=function(t){var e=t.document,r=t.remoteResult,n=t.context,i=t.variables,o=t.onlyRunForcedResolvers,a=void 0!==o&&o;return Object(ye.b)(this,void 0,void 0,(function(){return Object(ye.d)(this,(function(t){return e?[2,this.resolveDocument(e,r.data,n,i,this.fragmentMatcher,a).then((function(t){return Object(ye.a)(Object(ye.a)({},r),{data:t.result})}))]:[2,r]}))}))},t.prototype.setFragmentMatcher=function(t){this.fragmentMatcher=t},t.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},t.prototype.clientQuery=function(t){return Object(_e.s)(["client"],t)&&this.resolvers?t:null},t.prototype.serverQuery=function(t){return this.resolvers?Object(_e.C)(t):t},t.prototype.prepareContext=function(t){void 0===t&&(t={});var e=this.cache;return Object(ye.a)(Object(ye.a)({},t),{cache:e,getCacheKey:function(t){if(e.config)return e.config.dataIdFromObject(t);Object(Se.b)(!1,6)}})},t.prototype.addExportedVariables=function(t,e,r){return void 0===e&&(e={}),void 0===r&&(r={}),Object(ye.b)(this,void 0,void 0,(function(){return Object(ye.d)(this,(function(n){return t?[2,this.resolveDocument(t,this.buildRootValueFromCache(t,e)||{},this.prepareContext(r),e).then((function(t){return Object(ye.a)(Object(ye.a)({},e),t.exportedVariables)}))]:[2,Object(ye.a)({},e)]}))}))},t.prototype.shouldForceResolvers=function(t){var e=!1;return Object(Le.b)(t,{Directive:{enter:function(t){if("client"===t.name.value&&t.arguments&&(e=t.arguments.some((function(t){return"always"===t.name.value&&"BooleanValue"===t.value.kind&&!0===t.value.value}))))return Le.a}}}),e},t.prototype.buildRootValueFromCache=function(t,e){return this.cache.diff({query:Object(_e.d)(t),variables:e,returnPartialData:!0,optimistic:!1}).result},t.prototype.resolveDocument=function(t,e,r,n,i,o){return void 0===r&&(r={}),void 0===n&&(n={}),void 0===i&&(i=function(){return!0}),void 0===o&&(o=!1),Object(ye.b)(this,void 0,void 0,(function(){var a,s,c,u,l,p,d,f,h;return Object(ye.d)(this,(function(m){return a=Object(_e.l)(t),s=Object(_e.j)(t),c=Object(_e.g)(s),u=a.operation,l=u?function(t){return t.charAt(0).toUpperCase()+t.slice(1)}(u):"Query",d=(p=this).cache,f=p.client,h={fragmentMap:c,context:Object(ye.a)(Object(ye.a)({},r),{cache:d,client:f}),variables:n,fragmentMatcher:i,defaultOperationType:l,exportedVariables:{},onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(a.selectionSet,e,h).then((function(t){return{result:t,exportedVariables:h.exportedVariables}}))]}))}))},t.prototype.resolveSelectionSet=function(t,e,r){return Object(ye.b)(this,void 0,void 0,(function(){var n,i,o,a,s,c=this;return Object(ye.d)(this,(function(u){return n=r.fragmentMap,i=r.context,o=r.variables,a=[e],s=function(t){return Object(ye.b)(c,void 0,void 0,(function(){var s,c;return Object(ye.d)(this,(function(u){return Object(_e.F)(t,o)?Object(_e.t)(t)?[2,this.resolveField(t,e,r).then((function(e){var r;void 0!==e&&a.push(((r={})[Object(_e.E)(t)]=e,r))}))]:(Object(_e.v)(t)?s=t:(s=n[t.name.value],Object(Se.b)(s,7)),s&&s.typeCondition&&(c=s.typeCondition.name.value,r.fragmentMatcher(e,c,i))?[2,this.resolveSelectionSet(s.selectionSet,e,r).then((function(t){a.push(t)}))]:[2]):[2]}))}))},[2,Promise.all(t.selections.map(s)).then((function(){return Object(_e.B)(a)}))]}))}))},t.prototype.resolveField=function(t,e,r){return Object(ye.b)(this,void 0,void 0,(function(){var n,i,o,a,s,c,u,l,p,d=this;return Object(ye.d)(this,(function(f){return n=r.variables,i=t.name.value,o=Object(_e.E)(t),a=i!==o,s=e[o]||e[i],c=Promise.resolve(s),r.onlyRunForcedResolvers&&!this.shouldForceResolvers(t)||(u=e.__typename||r.defaultOperationType,(l=this.resolvers&&this.resolvers[u])&&((p=l[a?i:o])&&(c=Promise.resolve(p(e,Object(_e.b)(t,n),r.context,{field:t,fragmentMap:r.fragmentMap}))))),[2,c.then((function(e){return void 0===e&&(e=s),t.directives&&t.directives.forEach((function(t){"export"===t.name.value&&t.arguments&&t.arguments.forEach((function(t){"as"===t.name.value&&"StringValue"===t.value.kind&&(r.exportedVariables[t.value.value]=e)}))})),t.selectionSet?null==e?e:Array.isArray(e)?d.resolveSubSelectedArray(t,e,r):t.selectionSet?d.resolveSelectionSet(t.selectionSet,e,r):void 0:e}))]}))}))},t.prototype.resolveSubSelectedArray=function(t,e,r){var n=this;return Promise.all(e.map((function(e){return null===e?null:Array.isArray(e)?n.resolveSubSelectedArray(t,e,r):t.selectionSet?n.resolveSelectionSet(t.selectionSet,e,r):void 0})))},t}();function Ke(t){var e=new Set,r=null;return new Fe((function(n){return e.add(n),r=r||t.subscribe({next:function(t){e.forEach((function(e){return e.next&&e.next(t)}))},error:function(t){e.forEach((function(e){return e.error&&e.error(t)}))},complete:function(){e.forEach((function(t){return t.complete&&t.complete()}))}}),function(){e.delete(n)&&!e.size&&r&&(r.unsubscribe(),r=null)}}))}var Je=Object.prototype.hasOwnProperty,Xe=function(){function t(t){var e=t.link,r=t.queryDeduplication,n=void 0!==r&&r,i=t.store,o=t.onBroadcast,a=void 0===o?function(){}:o,s=t.ssrMode,c=void 0!==s&&s,u=t.clientAwareness,l=void 0===u?{}:u,p=t.localState,d=t.assumeImmutableResults;this.mutationStore=new He,this.queryStore=new Qe,this.clientAwareness={},this.idCounter=1,this.queries=new Map,this.fetchQueryRejectFns=new Map,this.transformCache=new(_e.e?WeakMap:Map),this.inFlightLinkObservables=new Map,this.pollingInfoByQueryId=new Map,this.link=e,this.queryDeduplication=n,this.dataStore=i,this.onBroadcast=a,this.clientAwareness=l,this.localState=p||new Ye({cache:i.getCache()}),this.ssrMode=c,this.assumeImmutableResults=!!d}return t.prototype.stop=function(){var t=this;this.queries.forEach((function(e,r){t.stopQueryNoBroadcast(r)})),this.fetchQueryRejectFns.forEach((function(t){t(new Se.a(8))}))},t.prototype.mutate=function(t){var e=t.mutation,r=t.variables,n=t.optimisticResponse,i=t.updateQueries,o=t.refetchQueries,a=void 0===o?[]:o,s=t.awaitRefetchQueries,c=void 0!==s&&s,u=t.update,l=t.errorPolicy,p=void 0===l?"none":l,d=t.fetchPolicy,f=t.context,h=void 0===f?{}:f;return Object(ye.b)(this,void 0,void 0,(function(){var t,o,s,l=this;return Object(ye.d)(this,(function(f){switch(f.label){case 0:return Object(Se.b)(e,9),Object(Se.b)(!d||"no-cache"===d,10),t=this.generateQueryId(),e=this.transform(e).document,this.setQuery(t,(function(){return{document:e}})),r=this.getVariables(e,r),this.transform(e).hasClientExports?[4,this.localState.addExportedVariables(e,r,h)]:[3,2];case 1:r=f.sent(),f.label=2;case 2:return o=function(){var t={};return i&&l.queries.forEach((function(e,r){var n=e.observableQuery;if(n){var o=n.queryName;o&&Je.call(i,o)&&(t[r]={updater:i[o],query:l.queryStore.get(r)})}})),t},this.mutationStore.initMutation(t,e,r),this.dataStore.markMutationInit({mutationId:t,document:e,variables:r,updateQueries:o(),update:u,optimisticResponse:n}),this.broadcastQueries(),s=this,[2,new Promise((function(i,l){var f,m;s.getObservableFromLink(e,Object(ye.a)(Object(ye.a)({},h),{optimisticResponse:n}),r,!1).subscribe({next:function(n){Object(_e.q)(n)&&"none"===p?m=new ze({graphQLErrors:n.errors}):(s.mutationStore.markMutationResult(t),"no-cache"!==d&&s.dataStore.markMutationResult({mutationId:t,result:n,document:e,variables:r,updateQueries:o(),update:u}),f=n)},error:function(e){s.mutationStore.markMutationError(t,e),s.dataStore.markMutationComplete({mutationId:t,optimisticResponse:n}),s.broadcastQueries(),s.setQuery(t,(function(){return{document:null}})),l(new ze({networkError:e}))},complete:function(){if(m&&s.mutationStore.markMutationError(t,m),s.dataStore.markMutationComplete({mutationId:t,optimisticResponse:n}),s.broadcastQueries(),m)l(m);else{"function"==typeof a&&(a=a(f));var e=[];$e(a)&&a.forEach((function(t){if("string"==typeof t)s.queries.forEach((function(r){var n=r.observableQuery;n&&n.queryName===t&&e.push(n.refetch())}));else{var r={query:t.query,variables:t.variables,fetchPolicy:"network-only"};t.context&&(r.context=t.context),e.push(s.query(r))}})),Promise.all(c?e:[]).then((function(){s.setQuery(t,(function(){return{document:null}})),"ignore"===p&&f&&Object(_e.q)(f)&&delete f.errors,i(f)}))}}})}))]}}))}))},t.prototype.fetchQuery=function(t,e,r,n){return Object(ye.b)(this,void 0,void 0,(function(){var i,o,a,s,c,u,l,p,d,f,h,m,v,g,b,y,_,w,x=this;return Object(ye.d)(this,(function(E){switch(E.label){case 0:return i=e.metadata,o=void 0===i?null:i,a=e.fetchPolicy,s=void 0===a?"cache-first":a,c=e.context,u=void 0===c?{}:c,l=this.transform(e.query).document,p=this.getVariables(l,e.variables),this.transform(l).hasClientExports?[4,this.localState.addExportedVariables(l,p,u)]:[3,2];case 1:p=E.sent(),E.label=2;case 2:if(e=Object(ye.a)(Object(ye.a)({},e),{variables:p}),h=f="network-only"===s||"no-cache"===s,f||(m=this.dataStore.getCache().diff({query:l,variables:p,returnPartialData:!0,optimistic:!1}),v=m.complete,g=m.result,h=!v||"cache-and-network"===s,d=g),b=h&&"cache-only"!==s&&"standby"!==s,Object(_e.s)(["live"],l)&&(b=!0),y=this.idCounter++,_="no-cache"!==s?this.updateQueryWatch(t,l,e):void 0,this.setQuery(t,(function(){return{document:l,lastRequestId:y,invalidated:!0,cancel:_}})),this.invalidate(n),this.queryStore.initQuery({queryId:t,document:l,storePreviousVariables:b,variables:p,isPoll:r===Ve.poll,isRefetch:r===Ve.refetch,metadata:o,fetchMoreForQueryId:n}),this.broadcastQueries(),b){if(w=this.fetchRequest({requestId:y,queryId:t,document:l,options:e,fetchMoreForQueryId:n}).catch((function(e){throw function(t){return t.hasOwnProperty("graphQLErrors")}(e)?e:(y>=x.getQuery(t).lastRequestId&&(x.queryStore.markQueryError(t,e,n),x.invalidate(t),x.invalidate(n),x.broadcastQueries()),new ze({networkError:e}))})),"cache-and-network"!==s)return[2,w];w.catch((function(){}))}return this.queryStore.markQueryResultClient(t,!b),this.invalidate(t),this.invalidate(n),this.transform(l).hasForcedResolvers?[2,this.localState.runResolvers({document:l,remoteResult:{data:d},context:u,variables:p,onlyRunForcedResolvers:!0}).then((function(r){return x.markQueryResult(t,r,e,n),x.broadcastQueries(),r}))]:(this.broadcastQueries(),[2,{data:d}])}}))}))},t.prototype.markQueryResult=function(t,e,r,n){var i=r.fetchPolicy,o=r.variables,a=r.errorPolicy;"no-cache"===i?this.setQuery(t,(function(){return{newData:{result:e.data,complete:!0}}})):this.dataStore.markQueryResult(e,this.getQuery(t).document,o,n,"ignore"===a||"all"===a)},t.prototype.queryListenerForObserver=function(t,e,r){var n=this;function i(t,e){if(r[t])try{r[t](e)}catch(t){}}return function(r,o){if(n.invalidate(t,!1),r){var a=n.getQuery(t),s=a.observableQuery,c=a.document,u=s?s.options.fetchPolicy:e.fetchPolicy;if("standby"!==u){var l=Ue(r.networkStatus),p=s&&s.getLastResult(),d=!(!p||p.networkStatus===r.networkStatus),f=e.returnPartialData||!o&&r.previousVariables||d&&e.notifyOnNetworkStatusChange||"cache-only"===u||"cache-and-network"===u;if(!l||f){var h=$e(r.graphQLErrors),m=s&&s.options.errorPolicy||e.errorPolicy||"none";if("none"===m&&h||r.networkError)return i("error",new ze({graphQLErrors:r.graphQLErrors,networkError:r.networkError}));try{var v=void 0,g=void 0;if(o)"no-cache"!==u&&"network-only"!==u&&n.setQuery(t,(function(){return{newData:null}})),v=o.result,g=!o.complete;else{var b=s&&s.getLastError(),y="none"!==m&&(b&&b.graphQLErrors)!==r.graphQLErrors;if(p&&p.data&&!y)v=p.data,g=!1;else{var _=n.dataStore.getCache().diff({query:c,variables:r.previousVariables||r.variables,returnPartialData:!0,optimistic:!0});v=_.result,g=!_.complete}}var w=g&&!(e.returnPartialData||"cache-only"===u),x={data:w?p&&p.data:v,loading:l,networkStatus:r.networkStatus,stale:w};"all"===m&&h&&(x.errors=r.graphQLErrors),i("next",x)}catch(t){i("error",new ze({networkError:t}))}}}}}},t.prototype.transform=function(t){var e=this.transformCache;if(!e.has(t)){var r=this.dataStore.getCache(),n=r.transformDocument(t),i=Object(_e.D)(r.transformForLink(n)),o=this.localState.clientQuery(n),a=this.localState.serverQuery(i),s={document:n,hasClientExports:Object(_e.r)(n),hasForcedResolvers:this.localState.shouldForceResolvers(n),clientQuery:o,serverQuery:a,defaultVars:Object(_e.h)(Object(_e.m)(n))},c=function(t){t&&!e.has(t)&&e.set(t,s)};c(t),c(n),c(o),c(a)}return e.get(t)},t.prototype.getVariables=function(t,e){return Object(ye.a)(Object(ye.a)({},this.transform(t).defaultVars),e)},t.prototype.watchQuery=function(t,e){void 0===e&&(e=!0),Object(Se.b)("standby"!==t.fetchPolicy,11),t.variables=this.getVariables(t.query,t.variables),void 0===t.notifyOnNetworkStatusChange&&(t.notifyOnNetworkStatusChange=!1);var r=Object(ye.a)({},t);return new qe({queryManager:this,options:r,shouldSubscribe:e})},t.prototype.query=function(t){var e=this;return Object(Se.b)(t.query,12),Object(Se.b)("Document"===t.query.kind,13),Object(Se.b)(!t.returnPartialData,14),Object(Se.b)(!t.pollInterval,15),new Promise((function(r,n){var i=e.watchQuery(t,!1);e.fetchQueryRejectFns.set("query:"+i.queryId,n),i.result().then(r,n).then((function(){return e.fetchQueryRejectFns.delete("query:"+i.queryId)}))}))},t.prototype.generateQueryId=function(){return String(this.idCounter++)},t.prototype.stopQueryInStore=function(t){this.stopQueryInStoreNoBroadcast(t),this.broadcastQueries()},t.prototype.stopQueryInStoreNoBroadcast=function(t){this.stopPollingQuery(t),this.queryStore.stopQuery(t),this.invalidate(t)},t.prototype.addQueryListener=function(t,e){this.setQuery(t,(function(t){return t.listeners.add(e),{invalidated:!1}}))},t.prototype.updateQueryWatch=function(t,e,r){var n=this,i=this.getQuery(t).cancel;i&&i();return this.dataStore.getCache().watch({query:e,variables:r.variables,optimistic:!0,previousResult:function(){var e=null,r=n.getQuery(t).observableQuery;if(r){var i=r.getLastResult();i&&(e=i.data)}return e},callback:function(e){n.setQuery(t,(function(){return{invalidated:!0,newData:e}}))}})},t.prototype.addObservableQuery=function(t,e){this.setQuery(t,(function(){return{observableQuery:e}}))},t.prototype.removeObservableQuery=function(t){var e=this.getQuery(t).cancel;this.setQuery(t,(function(){return{observableQuery:null}})),e&&e()},t.prototype.clearStore=function(){this.fetchQueryRejectFns.forEach((function(t){t(new Se.a(16))}));var t=[];return this.queries.forEach((function(e,r){e.observableQuery&&t.push(r)})),this.queryStore.reset(t),this.mutationStore.reset(),this.dataStore.reset()},t.prototype.resetStore=function(){var t=this;return this.clearStore().then((function(){return t.reFetchObservableQueries()}))},t.prototype.reFetchObservableQueries=function(t){var e=this;void 0===t&&(t=!1);var r=[];return this.queries.forEach((function(n,i){var o=n.observableQuery;if(o){var a=o.options.fetchPolicy;o.resetLastResults(),"cache-only"===a||!t&&"standby"===a||r.push(o.refetch()),e.setQuery(i,(function(){return{newData:null}})),e.invalidate(i)}})),this.broadcastQueries(),Promise.all(r)},t.prototype.observeQuery=function(t,e,r){return this.addQueryListener(t,this.queryListenerForObserver(t,e,r)),this.fetchQuery(t,e)},t.prototype.startQuery=function(t,e,r){return this.addQueryListener(t,r),this.fetchQuery(t,e).catch((function(){})),t},t.prototype.startGraphQLSubscription=function(t){var e=this,r=t.query,n=t.fetchPolicy,i=t.variables;r=this.transform(r).document,i=this.getVariables(r,i);var o=function(t){return e.getObservableFromLink(r,{},t,!1).map((function(i){if(n&&"no-cache"===n||(e.dataStore.markSubscriptionResult(i,r,t),e.broadcastQueries()),Object(_e.q)(i))throw new ze({graphQLErrors:i.errors});return i}))};if(this.transform(r).hasClientExports){var a=this.localState.addExportedVariables(r,i).then(o);return new Fe((function(t){var e=null;return a.then((function(r){return e=r.subscribe(t)}),t.error),function(){return e&&e.unsubscribe()}}))}return o(i)},t.prototype.stopQuery=function(t){this.stopQueryNoBroadcast(t),this.broadcastQueries()},t.prototype.stopQueryNoBroadcast=function(t){this.stopQueryInStoreNoBroadcast(t),this.removeQuery(t)},t.prototype.removeQuery=function(t){this.fetchQueryRejectFns.delete("query:"+t),this.fetchQueryRejectFns.delete("fetchRequest:"+t),this.getQuery(t).subscriptions.forEach((function(t){return t.unsubscribe()})),this.queries.delete(t)},t.prototype.getCurrentQueryResult=function(t,e){void 0===e&&(e=!0);var r=t.options,n=r.variables,i=r.query,o=r.fetchPolicy,a=r.returnPartialData,s=t.getLastResult(),c=this.getQuery(t.queryId).newData;if(c&&c.complete)return{data:c.result,partial:!1};if("no-cache"===o||"network-only"===o)return{data:void 0,partial:!1};var u=this.dataStore.getCache().diff({query:i,variables:n,previousResult:s?s.data:void 0,returnPartialData:!0,optimistic:e}),l=u.result,p=u.complete;return{data:p||a?l:void 0,partial:!p}},t.prototype.getQueryWithPreviousResult=function(t){var e;if("string"==typeof t){var r=this.getQuery(t).observableQuery;Object(Se.b)(r,17),e=r}else e=t;var n=e.options,i=n.variables,o=n.query;return{previousResult:this.getCurrentQueryResult(e,!1).data,variables:i,document:o}},t.prototype.broadcastQueries=function(){var t=this;this.onBroadcast(),this.queries.forEach((function(e,r){e.invalidated&&e.listeners.forEach((function(n){n&&n(t.queryStore.get(r),e.newData)}))}))},t.prototype.getLocalState=function(){return this.localState},t.prototype.getObservableFromLink=function(t,e,r,n){var i,o=this;void 0===n&&(n=this.queryDeduplication);var a=this.transform(t).serverQuery;if(a){var s=this.inFlightLinkObservables,c=this.link,u={query:a,variables:r,operationName:Object(_e.n)(a)||void 0,context:this.prepareContext(Object(ye.a)(Object(ye.a)({},e),{forceFetch:!n}))};if(e=u.context,n){var l=s.get(a)||new Map;s.set(a,l);var p=JSON.stringify(r);if(!(i=l.get(p))){l.set(p,i=Ke(De(c,u)));var d=function(){l.delete(p),l.size||s.delete(a),f.unsubscribe()},f=i.subscribe({next:d,error:d,complete:d})}}else i=Ke(De(c,u))}else i=Fe.of({data:{}}),e=this.prepareContext(e);var h=this.transform(t).clientQuery;return h&&(i=function(t,e){return new Fe((function(r){var n=r.next,i=r.error,o=r.complete,a=0,s=!1,c={next:function(t){++a,new Promise((function(r){r(e(t))})).then((function(t){--a,n&&n.call(r,t),s&&c.complete()}),(function(t){--a,i&&i.call(r,t)}))},error:function(t){i&&i.call(r,t)},complete:function(){s=!0,a||o&&o.call(r)}},u=t.subscribe(c);return function(){return u.unsubscribe()}}))}(i,(function(t){return o.localState.runResolvers({document:h,remoteResult:t,context:e,variables:r})}))),i},t.prototype.fetchRequest=function(t){var e,r,n=this,i=t.requestId,o=t.queryId,a=t.document,s=t.options,c=t.fetchMoreForQueryId,u=s.variables,l=s.errorPolicy,p=void 0===l?"none":l,d=s.fetchPolicy;return new Promise((function(t,l){var f=n.getObservableFromLink(a,s.context,u),h="fetchRequest:"+o;n.fetchQueryRejectFns.set(h,l);var m=function(){n.fetchQueryRejectFns.delete(h),n.setQuery(o,(function(t){t.subscriptions.delete(v)}))},v=f.map((function(t){if(i>=n.getQuery(o).lastRequestId&&(n.markQueryResult(o,t,s,c),n.queryStore.markQueryResult(o,t,c),n.invalidate(o),n.invalidate(c),n.broadcastQueries()),"none"===p&&$e(t.errors))return l(new ze({graphQLErrors:t.errors}));if("all"===p&&(r=t.errors),c||"no-cache"===d)e=t.data;else{var f=n.dataStore.getCache().diff({variables:u,query:a,optimistic:!1,returnPartialData:!0}),h=f.result;(f.complete||s.returnPartialData)&&(e=h)}})).subscribe({error:function(t){m(),l(t)},complete:function(){m(),t({data:e,errors:r,loading:!1,networkStatus:Pe.ready,stale:!1})}});n.setQuery(o,(function(t){t.subscriptions.add(v)}))}))},t.prototype.getQuery=function(t){return this.queries.get(t)||{listeners:new Set,invalidated:!1,document:null,newData:null,lastRequestId:1,observableQuery:null,subscriptions:new Set}},t.prototype.setQuery=function(t,e){var r=this.getQuery(t),n=Object(ye.a)(Object(ye.a)({},r),e(r));this.queries.set(t,n)},t.prototype.invalidate=function(t,e){void 0===e&&(e=!0),t&&this.setQuery(t,(function(){return{invalidated:e}}))},t.prototype.prepareContext=function(t){void 0===t&&(t={});var e=this.localState.prepareContext(t);return Object(ye.a)(Object(ye.a)({},e),{clientAwareness:this.clientAwareness})},t.prototype.checkInFlight=function(t){var e=this.queryStore.get(t);return e&&e.networkStatus!==Pe.ready&&e.networkStatus!==Pe.error},t.prototype.startPollingQuery=function(t,e,r){var n=this,i=t.pollInterval;if(Object(Se.b)(i,18),!this.ssrMode){var o=this.pollingInfoByQueryId.get(e);o||this.pollingInfoByQueryId.set(e,o={}),o.interval=i,o.options=Object(ye.a)(Object(ye.a)({},t),{fetchPolicy:"network-only"});var a=function(){var t=n.pollingInfoByQueryId.get(e);t&&(n.checkInFlight(e)?s():n.fetchQuery(e,t.options,Ve.poll).then(s,s))},s=function(){var t=n.pollingInfoByQueryId.get(e);t&&(clearTimeout(t.timeout),t.timeout=setTimeout(a,t.interval))};r&&this.addQueryListener(e,r),s()}return e},t.prototype.stopPollingQuery=function(t){this.pollingInfoByQueryId.delete(t)},t}(),Ze=function(){function t(t){this.cache=t}return t.prototype.getCache=function(){return this.cache},t.prototype.markQueryResult=function(t,e,r,n,i){void 0===i&&(i=!1);var o=!Object(_e.q)(t);i&&Object(_e.q)(t)&&t.data&&(o=!0),!n&&o&&this.cache.write({result:t.data,dataId:"ROOT_QUERY",query:e,variables:r})},t.prototype.markSubscriptionResult=function(t,e,r){Object(_e.q)(t)||this.cache.write({result:t.data,dataId:"ROOT_SUBSCRIPTION",query:e,variables:r})},t.prototype.markMutationInit=function(t){var e,r=this;t.optimisticResponse&&(e="function"==typeof t.optimisticResponse?t.optimisticResponse(t.variables):t.optimisticResponse,this.cache.recordOptimisticTransaction((function(n){var i=r.cache;r.cache=n;try{r.markMutationResult({mutationId:t.mutationId,result:{data:e},document:t.document,variables:t.variables,updateQueries:t.updateQueries,update:t.update})}finally{r.cache=i}}),t.mutationId))},t.prototype.markMutationResult=function(t){var e=this;if(!Object(_e.q)(t.result)){var r=[{result:t.result.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}],n=t.updateQueries;n&&Object.keys(n).forEach((function(i){var o=n[i],a=o.query,s=o.updater,c=e.cache.diff({query:a.document,variables:a.variables,returnPartialData:!0,optimistic:!1}),u=c.result;if(c.complete){var l=Object(_e.I)((function(){return s(u,{mutationResult:t.result,queryName:Object(_e.n)(a.document)||void 0,queryVariables:a.variables})}));l&&r.push({result:l,dataId:"ROOT_QUERY",query:a.document,variables:a.variables})}})),this.cache.performTransaction((function(e){r.forEach((function(t){return e.write(t)}));var n=t.update;n&&Object(_e.I)((function(){return n(e,t.result)}))}))}},t.prototype.markMutationComplete=function(t){var e=t.mutationId;t.optimisticResponse&&this.cache.removeOptimistic(e)},t.prototype.markUpdateQueryResult=function(t,e,r){this.cache.write({result:r,dataId:"ROOT_QUERY",variables:e,query:t})},t.prototype.reset=function(){return this.cache.reset()},t}(),tr=function(){function t(t){var e=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var r=t.cache,n=t.ssrMode,i=void 0!==n&&n,o=t.ssrForceFetchDelay,a=void 0===o?0:o,s=t.connectToDevTools,c=t.queryDeduplication,u=void 0===c||c,l=t.defaultOptions,p=t.assumeImmutableResults,d=void 0!==p&&p,f=t.resolvers,h=t.typeDefs,m=t.fragmentMatcher,v=t.name,g=t.version,b=t.link;if(!b&&f&&(b=Ne.empty()),!b||!r)throw new Se.a(4);this.link=b,this.cache=r,this.store=new Ze(r),this.disableNetworkFetches=i||a>0,this.queryDeduplication=u,this.defaultOptions=l||{},this.typeDefs=h,a&&setTimeout((function(){return e.disableNetworkFetches=!1}),a),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this);void 0!==s&&(s&&"undefined"!=typeof window)&&(window.__APOLLO_CLIENT__=this),this.version="2.6.10",this.localState=new Ye({cache:r,client:this,resolvers:f,fragmentMatcher:m}),this.queryManager=new Xe({link:this.link,store:this.store,queryDeduplication:u,ssrMode:i,clientAwareness:{name:v,version:g},localState:this.localState,assumeImmutableResults:d,onBroadcast:function(){e.devToolsHookCb&&e.devToolsHookCb({action:{},state:{queries:e.queryManager.queryStore.getStore(),mutations:e.queryManager.mutationStore.getStore()},dataWithOptimisticResults:e.cache.extract(!0)})}})}return t.prototype.stop=function(){this.queryManager.stop()},t.prototype.watchQuery=function(t){return this.defaultOptions.watchQuery&&(t=Object(ye.a)(Object(ye.a)({},this.defaultOptions.watchQuery),t)),!this.disableNetworkFetches||"network-only"!==t.fetchPolicy&&"cache-and-network"!==t.fetchPolicy||(t=Object(ye.a)(Object(ye.a)({},t),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(t)},t.prototype.query=function(t){return this.defaultOptions.query&&(t=Object(ye.a)(Object(ye.a)({},this.defaultOptions.query),t)),Object(Se.b)("cache-and-network"!==t.fetchPolicy,5),this.disableNetworkFetches&&"network-only"===t.fetchPolicy&&(t=Object(ye.a)(Object(ye.a)({},t),{fetchPolicy:"cache-first"})),this.queryManager.query(t)},t.prototype.mutate=function(t){return this.defaultOptions.mutate&&(t=Object(ye.a)(Object(ye.a)({},this.defaultOptions.mutate),t)),this.queryManager.mutate(t)},t.prototype.subscribe=function(t){return this.queryManager.startGraphQLSubscription(t)},t.prototype.readQuery=function(t,e){return void 0===e&&(e=!1),this.cache.readQuery(t,e)},t.prototype.readFragment=function(t,e){return void 0===e&&(e=!1),this.cache.readFragment(t,e)},t.prototype.writeQuery=function(t){var e=this.cache.writeQuery(t);return this.queryManager.broadcastQueries(),e},t.prototype.writeFragment=function(t){var e=this.cache.writeFragment(t);return this.queryManager.broadcastQueries(),e},t.prototype.writeData=function(t){var e=this.cache.writeData(t);return this.queryManager.broadcastQueries(),e},t.prototype.__actionHookForDevTools=function(t){this.devToolsHookCb=t},t.prototype.__requestRaw=function(t){return De(this.link,t)},t.prototype.initQueryManager=function(){return this.queryManager},t.prototype.resetStore=function(){var t=this;return Promise.resolve().then((function(){return t.queryManager.clearStore()})).then((function(){return Promise.all(t.resetStoreCallbacks.map((function(t){return t()})))})).then((function(){return t.reFetchObservableQueries()}))},t.prototype.clearStore=function(){var t=this;return Promise.resolve().then((function(){return t.queryManager.clearStore()})).then((function(){return Promise.all(t.clearStoreCallbacks.map((function(t){return t()})))}))},t.prototype.onResetStore=function(t){var e=this;return this.resetStoreCallbacks.push(t),function(){e.resetStoreCallbacks=e.resetStoreCallbacks.filter((function(e){return e!==t}))}},t.prototype.onClearStore=function(t){var e=this;return this.clearStoreCallbacks.push(t),function(){e.clearStoreCallbacks=e.clearStoreCallbacks.filter((function(e){return e!==t}))}},t.prototype.reFetchObservableQueries=function(t){return this.queryManager.reFetchObservableQueries(t)},t.prototype.extract=function(t){return this.cache.extract(t)},t.prototype.restore=function(t){return this.cache.restore(t)},t.prototype.addResolvers=function(t){this.localState.addResolvers(t)},t.prototype.setResolvers=function(t){this.localState.setResolvers(t)},t.prototype.getResolvers=function(){return this.localState.getResolvers()},t.prototype.setLocalStateFragmentMatcher=function(t){this.localState.setFragmentMatcher(t)},t}();var er=r("7506"),rr={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},nr=function(t,e,r){var n=new Error(r);throw n.name="ServerError",n.response=t,n.statusCode=t.status,n.result=e,n},ir=function(t,e){var r;try{r=JSON.stringify(t)}catch(t){var n=new Se.a(2);throw n.parseError=t,n}return r},or=function(t){void 0===t&&(t={});var e=t.uri,r=void 0===e?"/graphql":e,n=t.fetch,i=t.includeExtensions,o=t.useGETForQueries,a=Object(ye.f)(t,["uri","fetch","includeExtensions","useGETForQueries"]);(function(t){if(!t&&"undefined"==typeof fetch)throw new Se.a(1)})(n),n||(n=fetch);var s={http:{includeExtensions:i},options:a.fetchOptions,credentials:a.credentials,headers:a.headers};return new Ne((function(t){var e=function(t,e){return t.getContext().uri||("function"==typeof e?e(t):e||"/graphql")}(t,r),i=t.getContext(),a={};if(i.clientAwareness){var c=i.clientAwareness,u=c.name,l=c.version;u&&(a["apollographql-client-name"]=u),l&&(a["apollographql-client-version"]=l)}var p,d=Object(ye.a)({},a,i.headers),f={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:d},h=function(t,e){for(var r=[],n=2;n=300&&nr(e,r,"Response not successful: Received status code "+e.status),Array.isArray(r)||r.hasOwnProperty("data")||r.hasOwnProperty("errors")||nr(e,r,"Server response was missing for query '"+(Array.isArray(t)?t.map((function(t){return t.operationName})):t.operationName)+"'."),r}))}}(t)).then((function(t){return r.next(t),r.complete(),t})).catch((function(t){"AbortError"!==t.name&&(t.result&&t.result.errors&&t.result.data&&r.next(t.result),r.error(t))})),function(){p&&p.abort()}}))}))};var ar=function(t){function e(e){return t.call(this,or(e).request)||this}return Object(ye.c)(e,t),e}(Ne);function sr(t){return{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:ur(t)}]}}function cr(t,e){return{kind:"Document",definitions:[{kind:"FragmentDefinition",typeCondition:{kind:"NamedType",name:{kind:"Name",value:e||"__FakeType"}},name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:ur(t)}]}}function ur(t){if("number"==typeof t||"boolean"==typeof t||"string"==typeof t||null==t)return null;if(Array.isArray(t))return ur(t[0]);var e=[];return Object.keys(t).forEach((function(r){var n={kind:"Field",name:{kind:"Name",value:r},selectionSet:ur(t[r])||void 0};e.push(n)})),{kind:"SelectionSet",selections:e}}var lr,pr={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"__typename"},arguments:[],directives:[],selectionSet:null}]}}]},dr=function(){function t(){}return t.prototype.transformDocument=function(t){return t},t.prototype.transformForLink=function(t){return t},t.prototype.readQuery=function(t,e){return void 0===e&&(e=!1),this.read({query:t.query,variables:t.variables,optimistic:e})},t.prototype.readFragment=function(t,e){return void 0===e&&(e=!1),this.read({query:Object(_e.k)(t.fragment,t.fragmentName),variables:t.variables,rootId:t.id,optimistic:e})},t.prototype.writeQuery=function(t){this.write({dataId:"ROOT_QUERY",result:t.data,query:t.query,variables:t.variables})},t.prototype.writeFragment=function(t){this.write({dataId:t.id,result:t.data,variables:t.variables,query:Object(_e.k)(t.fragment,t.fragmentName)})},t.prototype.writeData=function(t){var e=t.id,r=t.data;if(void 0!==e){var n=null;try{n=this.read({rootId:e,optimistic:!1,query:pr})}catch(t){}var i=n&&n.__typename||"__ClientData",o=Object.assign({__typename:i},r);this.writeFragment({id:e,fragment:cr(o,i),data:o})}else this.writeQuery({query:sr(r),data:r})},t}();lr||(lr={});var fr=null,hr={},mr=1,vr="@wry/context:Slot",gr=Array,br=gr[vr]||function(){var t=function(){function t(){this.id=["slot",mr++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return t.prototype.hasValue=function(){for(var t=fr;t;t=t.parent)if(this.id in t.slots){var e=t.slots[this.id];if(e===hr)break;return t!==fr&&(fr.slots[this.id]=e),!0}return fr&&(fr.slots[this.id]=hr),!1},t.prototype.getValue=function(){if(this.hasValue())return fr.slots[this.id]},t.prototype.withValue=function(t,e,r,n){var i,o=((i={__proto__:null})[this.id]=t,i),a=fr;fr={parent:a,slots:o};try{return e.apply(n,r)}finally{fr=a}},t.bind=function(t){var e=fr;return function(){var r=fr;try{return fr=e,t.apply(this,arguments)}finally{fr=r}}},t.noContext=function(t,e,r){if(!fr)return t.apply(r,e);var n=fr;try{return fr=null,t.apply(r,e)}finally{fr=n}},t}();try{Object.defineProperty(gr,vr,{value:gr[vr]=t,enumerable:!1,writable:!1,configurable:!1})}finally{return t}}();function yr(){}br.bind,br.noContext;var _r=function(){function t(t,e){void 0===t&&(t=1/0),void 0===e&&(e=yr),this.max=t,this.dispose=e,this.map=new Map,this.newest=null,this.oldest=null}return t.prototype.has=function(t){return this.map.has(t)},t.prototype.get=function(t){var e=this.getEntry(t);return e&&e.value},t.prototype.getEntry=function(t){var e=this.map.get(t);if(e&&e!==this.newest){var r=e.older,n=e.newer;n&&(n.older=r),r&&(r.newer=n),e.older=this.newest,e.older.newer=e,e.newer=null,this.newest=e,e===this.oldest&&(this.oldest=n)}return e},t.prototype.set=function(t,e){var r=this.getEntry(t);return r?r.value=e:(r={key:t,value:e,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(t,r),r.value)},t.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},t.prototype.delete=function(t){var e=this.map.get(t);return!!e&&(e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.map.delete(t),this.dispose(e.value,t),!0)},t}(),wr=new br,xr=[],Er=[];function Sr(t,e){if(!t)throw new Error(e||"assertion failure")}function kr(t){switch(t.length){case 0:throw new Error("unknown value");case 1:return t[0];case 2:throw t[1]}}var Or=function(){function t(e,r){this.fn=e,this.args=r,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],++t.count}return t.prototype.recompute=function(){if(Sr(!this.recomputing,"already recomputing"),function(t){var e=wr.getValue();if(e)return t.parents.add(e),e.childValues.has(t)||e.childValues.set(t,[]),jr(t)?Ir(e,t):Rr(e,t),e}(this)||!Dr(this))return jr(this)?function(t){var e=Pr(t);return wr.withValue(t,Tr,[t]),function(t){if("function"==typeof t.subscribe)try{Lr(t),t.unsubscribe=t.subscribe.apply(null,t.args)}catch(e){return t.setDirty(),!1}return!0}(t)&&function(t){t.dirty=!1,jr(t)||Ar(t)}(t),e.forEach(Dr),kr(t.value)}(this):kr(this.value)},t.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,Cr(this),Lr(this))},t.prototype.dispose=function(){var t=this;Pr(this).forEach(Dr),Lr(this),this.parents.forEach((function(e){e.setDirty(),Mr(e,t)}))},t.count=0,t}();function Tr(t){t.recomputing=!0,t.value.length=0;try{t.value[0]=t.fn.apply(null,t.args)}catch(e){t.value[1]=e}t.recomputing=!1}function jr(t){return t.dirty||!(!t.dirtyChildren||!t.dirtyChildren.size)}function Cr(t){t.parents.forEach((function(e){return Ir(e,t)}))}function Ar(t){t.parents.forEach((function(e){return Rr(e,t)}))}function Ir(t,e){if(Sr(t.childValues.has(e)),Sr(jr(e)),t.dirtyChildren){if(t.dirtyChildren.has(e))return}else t.dirtyChildren=Er.pop()||new Set;t.dirtyChildren.add(e),Cr(t)}function Rr(t,e){Sr(t.childValues.has(e)),Sr(!jr(e));var r=t.childValues.get(e);0===r.length?t.childValues.set(e,function(t){return t.slice(0)}(e.value)):function(t,e){var r=t.length;return r>0&&r===e.length&&t[r-1]===e[r-1]}(r,e.value)||t.setDirty(),Nr(t,e),jr(t)||Ar(t)}function Nr(t,e){var r=t.dirtyChildren;r&&(r.delete(e),0===r.size&&(Er.length<100&&Er.push(r),t.dirtyChildren=null))}function Dr(t){return 0===t.parents.size&&"function"==typeof t.reportOrphan&&!0===t.reportOrphan()}function Pr(t){var e=xr;return t.childValues.size>0&&(e=[],t.childValues.forEach((function(r,n){Mr(t,n),e.push(n)}))),Sr(null===t.dirtyChildren),e}function Mr(t,e){e.parents.delete(t),t.childValues.delete(e),Nr(t,e)}function Lr(t){var e=t.unsubscribe;"function"==typeof e&&(t.unsubscribe=void 0,e())}var Ur=function(){function t(t){this.weakness=t}return t.prototype.lookup=function(){for(var t=[],e=0;e-1)},t.prototype.parseIntrospectionResult=function(t){var e={};return t.__schema.types.forEach((function(t){"UNION"!==t.kind&&"INTERFACE"!==t.kind||(e[t.name]=t.possibleTypes.map((function(t){return t.name})))})),e}}(),Object.prototype.hasOwnProperty),Wr=function(){function t(t){var e=this;void 0===t&&(t=Object.create(null)),this.data=t,this.depend=zr((function(t){return e.data[t]}),{disposable:!0,makeCacheKey:function(t){return t}})}return t.prototype.toObject=function(){return this.data},t.prototype.get=function(t){return this.depend(t),this.data[t]},t.prototype.set=function(t,e){e!==this.data[t]&&(this.data[t]=e,this.depend.dirty(t))},t.prototype.delete=function(t){Gr.call(this.data,t)&&(delete this.data[t],this.depend.dirty(t))},t.prototype.clear=function(){this.replace(null)},t.prototype.replace=function(t){var e=this;t?(Object.keys(t).forEach((function(r){e.set(r,t[r])})),Object.keys(this.data).forEach((function(r){Gr.call(t,r)||e.delete(r)}))):Object.keys(this.data).forEach((function(t){e.delete(t)}))},t}();function Hr(t){return new Wr(t)}var Qr=function(){function t(t){var e=this,r=void 0===t?{}:t,n=r.cacheKeyRoot,i=void 0===n?new Ur(_e.e):n,o=r.freezeResults,a=void 0!==o&&o,s=this,c=s.executeStoreQuery,u=s.executeSelectionSet,l=s.executeSubSelectedArray;this.freezeResults=a,this.executeStoreQuery=zr((function(t){return c.call(e,t)}),{makeCacheKey:function(t){var e=t.query,r=t.rootValue,n=t.contextValue,o=t.variableValues,a=t.fragmentMatcher;if(n.store instanceof Wr)return i.lookup(n.store,e,a,JSON.stringify(o),r.id)}}),this.executeSelectionSet=zr((function(t){return u.call(e,t)}),{makeCacheKey:function(t){var e=t.selectionSet,r=t.rootValue,n=t.execContext;if(n.contextValue.store instanceof Wr)return i.lookup(n.contextValue.store,e,n.fragmentMatcher,JSON.stringify(n.variableValues),r.id)}}),this.executeSubSelectedArray=zr((function(t){return l.call(e,t)}),{makeCacheKey:function(t){var e=t.field,r=t.array,n=t.execContext;if(n.contextValue.store instanceof Wr)return i.lookup(n.contextValue.store,e,r,JSON.stringify(n.variableValues))}})}return t.prototype.readQueryFromStore=function(t){return this.diffQueryAgainstStore(Object(ye.a)(Object(ye.a)({},t),{returnPartialData:!1})).result},t.prototype.diffQueryAgainstStore=function(t){var e=t.store,r=t.query,n=t.variables,i=t.previousResult,o=t.returnPartialData,a=void 0===o||o,s=t.rootId,c=void 0===s?"ROOT_QUERY":s,u=t.fragmentMatcherFunction,l=t.config,p=Object(_e.o)(r);n=Object(_e.c)({},Object(_e.h)(p),n);var d={store:e,dataIdFromObject:l&&l.dataIdFromObject,cacheRedirects:l&&l.cacheRedirects||{}},f=this.executeStoreQuery({query:r,rootValue:{type:"id",id:c,generated:!0,typename:"Query"},contextValue:d,variableValues:n,fragmentMatcher:u}),h=f.missing&&f.missing.length>0;return h&&!a&&f.missing.forEach((function(t){if(!t.tolerable)throw new Se.a(8)})),i&&Object(we.a)(i,f.result)&&(f.result=i),{result:f.result,complete:!h}},t.prototype.executeStoreQuery=function(t){var e=t.query,r=t.rootValue,n=t.contextValue,i=t.variableValues,o=t.fragmentMatcher,a=void 0===o?Kr:o,s=Object(_e.l)(e),c=Object(_e.j)(e),u={query:e,fragmentMap:Object(_e.g)(c),contextValue:n,variableValues:i,fragmentMatcher:a};return this.executeSelectionSet({selectionSet:s.selectionSet,rootValue:r,execContext:u})},t.prototype.executeSelectionSet=function(t){var e=this,r=t.selectionSet,n=t.rootValue,i=t.execContext,o=i.fragmentMap,a=i.contextValue,s=i.variableValues,c={result:null},u=[],l=a.store.get(n.id),p=l&&l.__typename||"ROOT_QUERY"===n.id&&"Query"||void 0;function d(t){var e;return t.missing&&(c.missing=c.missing||[],(e=c.missing).push.apply(e,t.missing)),t.result}return r.selections.forEach((function(t){var r;if(Object(_e.F)(t,s))if(Object(_e.t)(t)){var c=d(e.executeField(l,p,t,i));void 0!==c&&u.push(((r={})[Object(_e.E)(t)]=c,r))}else{var f=void 0;if(Object(_e.v)(t))f=t;else if(!(f=o[t.name.value]))throw new Se.a(9);var h=f.typeCondition&&f.typeCondition.name.value,m=!h||i.fragmentMatcher(n,h,a);if(m){var v=e.executeSelectionSet({selectionSet:f.selectionSet,rootValue:n,execContext:i});"heuristic"===m&&v.missing&&(v=Object(ye.a)(Object(ye.a)({},v),{missing:v.missing.map((function(t){return Object(ye.a)(Object(ye.a)({},t),{tolerable:!0})}))})),u.push(d(v))}}})),c.result=Object(_e.B)(u),this.freezeResults,c},t.prototype.executeField=function(t,e,r,n){var i=n.variableValues,o=n.contextValue,a=function(t,e,r,n,i,o){o.resultKey;var a=o.directives,s=r;(n||a)&&(s=Object(_e.p)(s,n,a));var c=void 0;if(t&&void 0===(c=t[s])&&i.cacheRedirects&&"string"==typeof e){var u=i.cacheRedirects[e];if(u){var l=u[r];l&&(c=l(t,n,{getCacheKey:function(t){var e=i.dataIdFromObject(t);return e&&Object(_e.H)({id:e,typename:t.__typename})}}))}}return void 0===c?{result:c,missing:[{object:t,fieldName:s,tolerable:!1}]}:(Object(_e.w)(c)&&(c=c.json),{result:c})}(t,e,r.name.value,Object(_e.b)(r,i),o,{resultKey:Object(_e.E)(r),directives:Object(_e.i)(r,i)});return Array.isArray(a.result)?this.combineExecResults(a,this.executeSubSelectedArray({field:r,array:a.result,execContext:n})):r.selectionSet?null==a.result?a:this.combineExecResults(a,this.executeSelectionSet({selectionSet:r.selectionSet,rootValue:a.result,execContext:n})):(Yr(r,a.result),this.freezeResults,a)},t.prototype.combineExecResults=function(){for(var t,e=[],r=0;r=0)return!0;r[t].push(e)}else r[t]=[e];return!1}var rn={fragmentMatcher:new Br,dataIdFromObject:function(t){if(t.__typename){if(void 0!==t.id)return t.__typename+":"+t.id;if(void 0!==t._id)return t.__typename+":"+t._id}return null},addTypename:!0,resultCaching:!0,freezeResults:!1};var nn=Object.prototype.hasOwnProperty,on=function(t){function e(e,r,n){var i=t.call(this,Object.create(null))||this;return i.optimisticId=e,i.parent=r,i.transaction=n,i}return Object(ye.c)(e,t),e.prototype.toObject=function(){return Object(ye.a)(Object(ye.a)({},this.parent.toObject()),this.data)},e.prototype.get=function(t){return nn.call(this.data,t)?this.data[t]:this.parent.get(t)},e}(Jr),an=function(t){function e(e){void 0===e&&(e={});var r=t.call(this)||this;r.watches=new Set,r.typenameDocumentCache=new Map,r.cacheKeyRoot=new Ur(_e.e),r.silenceBroadcast=!1,r.config=Object(ye.a)(Object(ye.a)({},rn),e),r.config.customResolvers&&(r.config.cacheRedirects=r.config.customResolvers),r.config.cacheResolvers&&(r.config.cacheRedirects=r.config.cacheResolvers),r.addTypename=!!r.config.addTypename,r.data=r.config.resultCaching?new Wr:new Jr,r.optimisticData=r.data,r.storeWriter=new Zr,r.storeReader=new Qr({cacheKeyRoot:r.cacheKeyRoot,freezeResults:e.freezeResults});var n=r,i=n.maybeBroadcastWatch;return r.maybeBroadcastWatch=zr((function(t){return i.call(r,t)}),{makeCacheKey:function(t){if(!t.optimistic&&!t.previousResult)return n.data instanceof Wr?n.cacheKeyRoot.lookup(t.query,JSON.stringify(t.variables)):void 0}}),r}return Object(ye.c)(e,t),e.prototype.restore=function(t){return t&&this.data.replace(t),this},e.prototype.extract=function(t){return void 0===t&&(t=!1),(t?this.optimisticData:this.data).toObject()},e.prototype.read=function(t){if("string"==typeof t.rootId&&void 0===this.data.get(t.rootId))return null;var e=this.config.fragmentMatcher,r=e&&e.match;return this.storeReader.readQueryFromStore({store:t.optimistic?this.optimisticData:this.data,query:this.transformDocument(t.query),variables:t.variables,rootId:t.rootId,fragmentMatcherFunction:r,previousResult:t.previousResult,config:this.config})||null},e.prototype.write=function(t){var e=this.config.fragmentMatcher,r=e&&e.match;this.storeWriter.writeResultToStore({dataId:t.dataId,result:t.result,variables:t.variables,document:this.transformDocument(t.query),store:this.data,dataIdFromObject:this.config.dataIdFromObject,fragmentMatcherFunction:r}),this.broadcastWatches()},e.prototype.diff=function(t){var e=this.config.fragmentMatcher,r=e&&e.match;return this.storeReader.diffQueryAgainstStore({store:t.optimistic?this.optimisticData:this.data,query:this.transformDocument(t.query),variables:t.variables,returnPartialData:t.returnPartialData,previousResult:t.previousResult,fragmentMatcherFunction:r,config:this.config})},e.prototype.watch=function(t){var e=this;return this.watches.add(t),function(){e.watches.delete(t)}},e.prototype.evict=function(t){throw new Se.a(7)},e.prototype.reset=function(){return this.data.clear(),this.broadcastWatches(),Promise.resolve()},e.prototype.removeOptimistic=function(t){for(var e=[],r=0,n=this.optimisticData;n instanceof on;)n.optimisticId===t?++r:e.push(n),n=n.parent;if(r>0){for(this.optimisticData=n;e.length>0;){var i=e.pop();this.performTransaction(i.transaction,i.optimisticId)}this.broadcastWatches()}},e.prototype.performTransaction=function(t,e){var r=this.data,n=this.silenceBroadcast;this.silenceBroadcast=!0,"string"==typeof e&&(this.data=this.optimisticData=new on(e,this.optimisticData,t));try{t(this)}finally{this.silenceBroadcast=n,this.data=r}this.broadcastWatches()},e.prototype.recordOptimisticTransaction=function(t,e){return this.performTransaction(t,e)},e.prototype.transformDocument=function(t){if(this.addTypename){var e=this.typenameDocumentCache.get(t);return e||(e=Object(_e.a)(t),this.typenameDocumentCache.set(t,e),this.typenameDocumentCache.set(e,e)),e}return t},e.prototype.broadcastWatches=function(){var t=this;this.silenceBroadcast||this.watches.forEach((function(e){return t.maybeBroadcastWatch(e)}))},e.prototype.maybeBroadcastWatch=function(t){t.callback(this.diff({query:t.query,variables:t.variables,previousResult:t.previousResult&&t.previousResult(),optimistic:t.optimistic}))},e}(dr),sn=r("633a"),cn=function(t){function e(e){var r=t.call(this)||this;return e instanceof sn.SubscriptionClient?r.subscriptionClient=e:r.subscriptionClient=new sn.SubscriptionClient(e.uri,e.options,e.webSocketImpl),r}return Object(ye.c)(e,t),e.prototype.request=function(t){return this.subscriptionClient.request(t)},e}(Ne);function un(t){return new Ne((function(e,r){return new Ee((function(n){var i,o,a;try{i=r(e).subscribe({next:function(i){i.errors&&(a=t({graphQLErrors:i.errors,response:i,operation:e,forward:r}))?o=a.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)}):n.next(i)},error:function(i){(a=t({operation:e,networkError:i,graphQLErrors:i&&i.result&&i.result.errors,forward:r}))?o=a.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)}):n.error(i)},complete:function(){a||n.complete.bind(n)()}})}catch(i){t({networkError:i,operation:e,forward:r}),n.error(i)}return function(){i&&i.unsubscribe(),o&&i.unsubscribe()}}))}))}!function(t){function e(e){var r=t.call(this)||this;return r.link=un(e),r}Object(ye.c)(e,t),e.prototype.request=function(t,e){return this.link.request(t,e)}}(Ne);var ln,pn,dn=function(){function t(t,e,r,n){var i=this;this.operation=t,this.nextLink=e,this.delayFor=r,this.retryIf=n,this.retryCount=0,this.values=[],this.complete=!1,this.canceled=!1,this.observers=[],this.currentSubscription=null,this.onNext=function(t){i.values.push(t);for(var e=0,r=i.observers;e=i)&&(r?r(n,e):!!n)}}(i),r}return Object(ye.c)(e,t),e.prototype.request=function(t,e){var r=new dn(t,e,this.delayFor,this.retryIf);return r.start(),new Ee((function(t){return r.subscribe(t),function(){r.unsubscribe(t)}}))},e}(Ne);(function(t){t.Ok="ok",t.Exited="exited",t.Crashed="crashed",t.Abnormal="abnormal"})(ln||(ln={})),function(t){t.Ok="ok",t.Errored="errored",t.Crashed="crashed"}(pn||(pn={}));var hn=r("f7f6"),mn=r("91db"),vn=Object(hn.e)(),gn="Sentry Logger ",bn=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],e=0;e=0?Object(ye.g)(this._breadcrumbs,[r]).slice(-e):Object(ye.g)(this._breadcrumbs,[r]),this._notifyScopeListeners(),this},t.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},t.prototype.applyToEvent=function(t,e){var r;if(this._extra&&Object.keys(this._extra).length&&(t.extra=Object(ye.a)(Object(ye.a)({},this._extra),t.extra)),this._tags&&Object.keys(this._tags).length&&(t.tags=Object(ye.a)(Object(ye.a)({},this._tags),t.tags)),this._user&&Object.keys(this._user).length&&(t.user=Object(ye.a)(Object(ye.a)({},this._user),t.user)),this._contexts&&Object.keys(this._contexts).length&&(t.contexts=Object(ye.a)(Object(ye.a)({},this._contexts),t.contexts)),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts=Object(ye.a)({trace:this._span.getTraceContext()},t.contexts);var n=null===(r=this._span.transaction)||void 0===r?void 0:r.name;n&&(t.tags=Object(ye.a)({transaction:n},t.tags))}return this._applyFingerprint(t),t.breadcrumbs=Object(ye.g)(t.breadcrumbs||[],this._breadcrumbs),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,this._notifyEventProcessors(Object(ye.g)(kn(),this._eventProcessors),t,e)},t.prototype._notifyEventProcessors=function(t,e,r,n){var i=this;return void 0===n&&(n=0),new En((function(o,a){var s=t[n];if(null===e||"function"!=typeof s)o(e);else{var c=s(Object(ye.a)({},e),r);Object(xn.m)(c)?c.then((function(e){return i._notifyEventProcessors(t,e,r,n+1).then(o)})).then(null,a):i._notifyEventProcessors(t,c,r,n+1).then(o).then(null,a)}}))},t.prototype._notifyScopeListeners=function(){var t=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(e){e(t)})),this._notifyingListeners=!1)},t.prototype._applyFingerprint=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t}();function kn(){var t=Object(hn.e)();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function On(t){kn().push(t)}var Tn=r("e8f5"),jn=function(){function t(t){this.errors=0,this.sid=Object(hn.i)(),this.duration=0,this.status=ln.Ok,this.init=!0,this.ignoreDuration=!1;var e=Object(mn.b)();this.timestamp=e,this.started=e,t&&this.update(t)}return t.prototype.update=function(t){if(void 0===t&&(t={}),t.user&&(t.user.ip_address&&(this.ipAddress=t.user.ip_address),t.did||(this.did=t.user.id||t.user.email||t.user.username)),this.timestamp=t.timestamp||Object(mn.b)(),t.ignoreDuration&&(this.ignoreDuration=t.ignoreDuration),t.sid&&(this.sid=32===t.sid.length?t.sid:Object(hn.i)()),void 0!==t.init&&(this.init=t.init),t.did&&(this.did=""+t.did),"number"==typeof t.started&&(this.started=t.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof t.duration)this.duration=t.duration;else{var e=this.timestamp-this.started;this.duration=e>=0?e:0}t.release&&(this.release=t.release),t.environment&&(this.environment=t.environment),t.ipAddress&&(this.ipAddress=t.ipAddress),t.userAgent&&(this.userAgent=t.userAgent),"number"==typeof t.errors&&(this.errors=t.errors),t.status&&(this.status=t.status)},t.prototype.close=function(t){t?this.update({status:t}):this.status===ln.Ok?this.update({status:ln.Exited}):this.update()},t.prototype.toJSON=function(){return Object(Tn.a)({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*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(Tn.a)({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},t}(),Cn=(function(){function t(t,e){var r=this;this.flushTimeout=60,this._pendingAggregates={},this._isEnabled=!0,this._transport=t,this._intervalId=setInterval((function(){return r.flush()}),1e3*this.flushTimeout),this._sessionAttrs=e}t.prototype.sendSessionAggregates=function(t){this._transport.sendSession?this._transport.sendSession(t).then(null,(function(t){_n.error("Error while sending session: "+t)})):_n.warn("Dropping session because custom transport doesn't implement sendSession")},t.prototype.flush=function(){var t=this.getSessionAggregates();0!==t.aggregates.length&&(this._pendingAggregates={},this.sendSessionAggregates(t))},t.prototype.getSessionAggregates=function(){var t=this,e=Object.keys(this._pendingAggregates).map((function(e){return t._pendingAggregates[parseInt(e)]})),r={attrs:this._sessionAttrs,aggregates:e};return Object(Tn.a)(r)},t.prototype.close=function(){clearInterval(this._intervalId),this._isEnabled=!1,this.flush()},t.prototype.incrementSessionStatusCount=function(){var t,e;if(this._isEnabled){var r=Nn().getScope(),n=null===(t=r)||void 0===t?void 0:t.getRequestSession();n&&n.status&&(this._incrementSessionStatusCount(n.status,new Date),null===(e=r)||void 0===e||e.setRequestSession(void 0))}},t.prototype._incrementSessionStatusCount=function(t,e){var r=new Date(e).setSeconds(0,0);this._pendingAggregates[r]=this._pendingAggregates[r]||{};var n=this._pendingAggregates[r];switch(n.started||(n.started=new Date(r).toISOString()),t){case pn.Errored:return n.errored=(n.errored||0)+1,n.errored;case pn.Ok:return n.exited=(n.exited||0)+1,n.exited;case pn.Crashed:return n.crashed=(n.crashed||0)+1,n.crashed}}}(),4),An=function(){function t(t,e,r){void 0===e&&(e=new Sn),void 0===r&&(r=Cn),this._version=r,this._stack=[{}],this.getStackTop().scope=e,this.bindClient(t)}return t.prototype.isOlderThan=function(t){return this._version{Rt.debug("[createGraphqlClient]");const e=new Ne((e,r)=>r(e).map(r=>{const{response:{headers:n}}=e.getContext();if(n){const e=n.get("x-environment")||null;e&&t.commit("SET_MY_SERVERS_ENV",e)}return r})).concat(new ar({uri:`${$n.protocol}//${$n.host}/graphql`})),r=`${$n.protocol.includes("https")?"wss://":"ws://"}${$n.host}/graphql`,n=new cn({uri:r,options:{timeout:65e3,reconnect:!0,connectionParams:{"x-api-key":t.state.apikey}}});let i;n.subscriptionClient.maxConnectTimeGenerator.setMin(3e3),n.subscriptionClient.onConnected(()=>{Rt.debug("[🚀 wslink.onConnected 🚀]"),t.commit("SET_GRAPH_ONLINE",!0),t.state.myServersError&&t.commit("SET_MY_SERVERS_ERROR",null)}),n.subscriptionClient.onReconnected(()=>{Rt.debug("[🚀 wslink.onReconnected 🚀]"),t.commit("SET_GRAPH_ONLINE",!0),t.state.myServersError&&t.commit("SET_MY_SERVERS_ERROR",null)}),n.subscriptionClient.onDisconnected(()=>{t.state.graphOnline&&(clearTimeout(i),i=setTimeout(()=>{Rt.debug("[🚀 wslink.onDisconnected 🚀]"),t.commit("SET_GRAPH_ONLINE",!1),t.state.myServersError||t.commit("SET_MY_SERVERS_ERROR","Disconnected from Unraid API")},150))});const o=Re(({query:t})=>{const e=Object(_e.l)(t);return"OperationDefinition"===e.kind&&"subscription"===e.operation},n,e),a=function(t){return new Ne((function(e,r){var n=Object(ye.f)(e,[]);return new Ee((function(i){var o;return Promise.resolve(n).then((function(r){return t(r,e.getContext())})).then(e.setContext).then((function(){o=r(e).subscribe({next:i.next.bind(i),error:i.error.bind(i),complete:i.complete.bind(i)})})).catch(i.error.bind(i)),function(){o&&o.unsubscribe()}}))}))}((e,{headers:r})=>({headers:{...r,"x-api-key":t.state.apikey}})),s=un(({graphQLErrors:e,networkError:r})=>{if(e){Rt.error("[GraphQL error] %o",e);const r=e[0].message||e[0].error.message||"No error object - [UNRAID]";t.commit("SET_MY_SERVERS_ERROR",r),t.state.sentryEnabled&&r.includes('guest doesn\'t have permission to access "servers"')&&(Rt.debug("[SPECIAL • SENTRY] ✨✨✨"),Fn(t=>{t.setTag("specialTracking","guestNoPermissionsToAccessServers"),t.setLevel("error"),Un(new Error(r))}))}r&&(Rt.error("[Network error]",r),t.commit("SET_MY_SERVERS_ERROR",r.message)),t.commit("SET_MY_SERVERS_LOADING",!1)}),c=new fn({delay:{initial:300,max:1/0,jitter:!0},attempts:{max:1/0,retryIf:(e,r)=>(Rt.debug("[retryLink - retryIf]",{error:e,_operation:r}),t.commit("SET_GRAPH_ONLINE",!1),!!e)}});return new tr({link:Ne.from([c,s,a,o]),connectToDevTools:!1,cache:new an,defaultOptions:{watchQuery:{fetchPolicy:"no-cache"},query:{fetchPolicy:"no-cache"},mutate:{fetchPolicy:"no-cache"},subscribe:{fetchPolicy:"no-cache"}}})},qn=t=>{if(!t.state.apikey)return Rt.debug("[getGraphqlClient] NO API KEY");if(Object.keys(Vn).includes(t.state.apikey))return Rt.debug("[getGraphqlClient] found existing client"),Vn[t.state.apikey];Rt.debug("[getGraphqlClient] new client inbound");const e=zn(t);return Vn[t.state.apikey]=e,e};var Bn=function(){return(Bn=Object.assign||function(t){for(var e,r=1,n=arguments.length;r0)&&(r(i.reverse()[0]),n.clearMeasures&&n.clearMeasures(e),Yn.callbacks.delete(e),Yn.callbacks.size<1&&(Yn.observer.disconnect(),n.clearResourceTimings&&n.clearResourceTimings()),!0)},Yn={callbacks:new Map,observer:null,observe:function(t,e){if(t&&e){var r=Hn.a.polyfill("performance",{doThrow:!1});(function(t,e){return!Yn.observer&&t&&e&&(Yn.observer=new e((function(e){Yn.callbacks.forEach((function(r,n){Qn(e,n,r,t)}))})),t.clearResourceTimings&&t.clearResourceTimings()),Yn.observer})(r,Hn.a.polyfill("PerformanceObserver",{doThrow:!1}))&&(Qn(r,t,e,r)||(Yn.callbacks.size<1&&Yn.observer.observe({entryTypes:["resource","measure"]}),Yn.callbacks.set(t,e)))}}},Kn=Yn,Jn=function(t){this.error=t},Xn=function(){return(Xn=Object.assign||function(t){for(var e,r=1,n=arguments.length;r1?r[0]+t+"?"+r[1]:this._url+t})},t.prototype.options=function(t,e){return void 0===e&&(e=!0),this.selfFactory({options:e?Wn(this._options,t):t})},t.prototype.query=function(t,e){return void 0===e&&(e=!1),this.selfFactory({url:ni(this._url,t,e)})},t.prototype.headers=function(t){return this.selfFactory({options:Wn(this._options,{headers:t||{}})})},t.prototype.accept=function(t){return this.headers({Accept:t})},t.prototype.content=function(t){var e;return this.headers(((e={})[ei]=t,e))},t.prototype.auth=function(t){return this.headers({Authorization:t})},t.prototype.catcher=function(t,e){var r=new Map(this._catchers);return r.set(t,e),this.selfFactory({catchers:r})},t.prototype.signal=function(t){return this.selfFactory({options:Xn(Xn({},this._options),{signal:t.signal})})},t.prototype.resolve=function(t,e){return void 0===e&&(e=!1),this.selfFactory({resolvers:e?[t]:Zn(this._resolvers,[t])})},t.prototype.defer=function(t,e){return void 0===e&&(e=!1),this.selfFactory({deferredChain:e?[t]:Zn(this._deferredChain,[t])})},t.prototype.middlewares=function(t,e){return void 0===e&&(e=!1),this.selfFactory({middlewares:e?t:Zn(this._middlewares,t)})},t.prototype.method=function(t,e,r){void 0===e&&(e={}),void 0===r&&(r=null);var n=this._options.headers,i=r?"object"!=typeof r||n&&!Object.entries(n).every((function(t){var e=t[0],r=t[1];return e.toLowerCase()!==ei.toLowerCase()||r.startsWith(ti)}))?this.body(r):this.json(r):this;return function(t){var e=t._url,r=t._catchers,n=t._resolvers,i=t._middlewares,o=t._options,a=new Map(r),s=Wn(Hn.a.defaults,o),c=Hn.a.polyfill("AbortController",{doThrow:!1,instance:!0});!s.signal&&c&&(s.signal=c.signal);var u={ref:null,clear:function(){u.ref&&(clearTimeout(u.ref),u.ref=null)}},l=function(t){return function(e){return 0===t.length?e:1===t.length?t[0](e):t.reduceRight((function(r,n,i){return i===t.length-2?n(r(e)):n(r)}))}}(i)(Hn.a.polyfill("fetch"))(e,s),p=l.catch((function(t){throw new Jn(t)})).then((function(t){return u.clear(),t.ok?t:t[Hn.a.errorType||"text"]().then((function(e){var r=new Error(e);throw r[Hn.a.errorType||"text"]=e,r.status=t.status,r.response=t,r}))})),d=function(e){return e.catch((function(e){u.clear();var r=e instanceof Jn?e.error:e;if(e instanceof Jn&&a.has("__fromFetch"))return a.get("__fromFetch")(r,t);if(a.has(r.status))return a.get(r.status)(r,t);if(a.has(r.name))return a.get(r.name)(r,t);throw r}))},f=function(t){return function(e){return d(t?p.then((function(e){return e&&e[t]()})).then((function(t){return e?e(t):t})):p.then((function(t){return e?e(t):t})))}},h={res:f(null),json:f("json"),blob:f("blob"),formData:f("formData"),arrayBuffer:f("arrayBuffer"),text:f("text"),perfs:function(t){return l.then((function(e){return Kn.observe(e.url,t)})),h},setTimeout:function(t,e){return void 0===e&&(e=c),u.clear(),u.ref=setTimeout((function(){return e.abort()}),t),h},controller:function(){return[c,h]},error:function(t,e){return a.set(t,e),h},badRequest:function(t){return h.error(400,t)},unauthorized:function(t){return h.error(401,t)},forbidden:function(t){return h.error(403,t)},notFound:function(t){return h.error(404,t)},timeout:function(t){return h.error(408,t)},internalError:function(t){return h.error(500,t)},fetchError:function(t){return h.error("__fromFetch",t)},onAbort:function(t){return h.error("AbortError",t)}};return n.reduce((function(e,r){return r(e,t)}),h)}((i=i.options(Xn(Xn({},e),{method:t})))._deferredChain.reduce((function(t,e){return e(t,t._url,t._options)}),i))},t.prototype.get=function(t){return this.method("GET",t)},t.prototype.delete=function(t){return this.method("DELETE",t)},t.prototype.put=function(t,e){return this.method("PUT",e,t)},t.prototype.post=function(t,e){return this.method("POST",e,t)},t.prototype.patch=function(t,e){return this.method("PATCH",e,t)},t.prototype.head=function(t){return this.method("HEAD",t)},t.prototype.opts=function(t){return this.method("OPTIONS",t)},t.prototype.replay=function(t){return this.method(this._options.method,t)},t.prototype.body=function(t){return this.selfFactory({options:Xn(Xn({},this._options),{body:t})})},t.prototype.json=function(t){var e,r=null===(e=Object.entries(this._options.headers||{}).find((function(t){var e=t[0],r=t[1];return e.toLowerCase()===ei.toLowerCase()&&r.startsWith(ti)})))||void 0===e?void 0:e[1];return this.content(r||ti).body(JSON.stringify(t))},t.prototype.formData=function(t,e){return void 0===e&&(e=!1),this.body(function t(e,r,n,i){return void 0===r&&(r=!1),void 0===n&&(n=Hn.a.polyfill("FormData",{instance:!0})),void 0===i&&(i=[]),Object.entries(e).forEach((function(e){var o=e[0],a=e[1],s=i.reduce((function(t,e){return t?t+"["+e+"]":e}),null);if(s=s?s+"["+o+"]":o,a instanceof Array)for(var c=0,u=a;cRt.error(t));const si=ai("https://keys.lime-technology.com").catcher(t=>Rt.error(t)),ci=ai("https://mothership.unraid.net/wanip").catcher(t=>Rt.error(t)),ui=ai("/webGui/include/InstallKey.php").catcher(t=>Rt.error(t)),li=ai().catcher(t=>Rt.error(t)),pi=ai("/update.php").catcher(t=>Rt.error(t)),di=ai("/webGui/include/UpdateDNS.php").catcher(t=>Rt.error(t));let fi=0;const hi=(t,e)=>{t||setTimeout(()=>{di.formUrl({csrf_token:e}).post().res(t=>Rt.debug("[WebguiUpdateDns] %o",t)).catch(t=>Rt.error("[WebguiUpdateDns] %o",t))},500)},mi={openPopUp({commit:t,dispatch:e,state:r},n){if(Rt.debug("[openPopUp]: %o",n||"focus existing pop-up"),r.popUpWindow)return r.popUpWindow.focus();const i=((t,e,r,n)=>{const i=void 0!==window.screenLeft?window.screenLeft:window.screenX,o=void 0!==window.screenTop?window.screenTop:window.screenY,a=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:window.screen.width,s=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:window.screen.height,c=a/window.screen.availWidth>1?a/window.screen.availWidth:1,u=(a-r)/2/c+i,l=(s-n)/2/c+o,p=Object.entries({toolbar:"no",location:"yes",status:"no",menubar:"no",scrollbars:"yes",resizable:"yes",width:r/c,height:n/c,top:l,left:u}).reduce((t,e)=>t+`${e[0]}=${e[1]},`,"");return window.open(t,e,p)})(n.url,n.name,n.width,n.height),o=r.darkMode,a=n.url.toString().includes("/preflight")?"#fff":"linear-gradient(to right, #E22828 0%, #ff8c2f 100%)";i.document.body.style.background=o?"#222":a;try{i.focus(),t("CHANGE_POP_UP_WINDOW",i),t("STATE_AT_OPEN",r.registered);const n=setInterval(()=>{r.popUpWindow||clearInterval(n),r.popUpWindow&&r.popUpWindow.closed&&(clearInterval(n),e("resetPopUp",{reloadWebGUI:!1}))},250);return window.onunload=()=>{r.popUpWindow&&!r.popUpWindow.closed&&r.popUpWindow.close()},!0}catch(t){return alert("Pop-up blocker detected.\nTo continue successfully please add this website to your browser's exeception list then refresh.")}},resetPopUp({commit:t,dispatch:e},r={reloadWebGUI:!0}){Rt.debug("[resetPopUp]: %o",r),t("CHANGE_POP_UP_WINDOW",null),e("updateServerState"),r.reloadWebGUI&&e("reloadWebGUI")},closePopUp({dispatch:t,state:e},r={reloadWebGUI:!1}){Rt.debug("[closePopUp]: %o",r),e.popUpWindow&&(e.popUpWindow.close(),t("resetPopUp",{reloadWebGUI:r.reloadWebGUI}))},reloadWebGUI(){Rt.debug("[reloadWebGUI]: %s","✨"),window.location.reload()},closePopUpFromPopUp({dispatch:t}){Rt.debug("[closePopUpFromPopUp]: %o"),t("resetPopUp"),window.close()},sendDataPostMessageToServer({state:t}){const e="SignOut"===t.submissionFrom?{event:"MYSERVERS_UNREGISTER"}:{event:"REG_WIZARD",keyfile:t.keyfile,license:t.license,email:t.userEmail,apikey:t.apikey,avatar:t.avatar,username:t.username,guid:t.guid};Rt.debug("[sendDataPostMessageToServer]: %o",e);try{return St.postMessage(JSON.stringify(e),"*")}catch(t){return Et||Rt.warn("[sendDataPostMessageToServer] !CAN_POST_MESSAGE",e),Rt.error("[sendDataPostMessageToServer]: %o",t)}},requestUpdatedServerStateFromUpc({state:t}){Rt.debug("[requestUpdatedServerStateFromUpc]");try{return St.postMessage(JSON.stringify({event:"SUCCESS_NEW_STATE"}),t.site)}catch(t){return Et||Rt.warn("[requestUpdatedServerStateFromUpc] !CAN_POST_MESSAGE",Et),Rt.error("[requestUpdatedServerStateFromUpc]: %o",t)}},receivePostMessage({commit:t,dispatch:e,getters:r,state:n},i={inject:!1,event:null}){if(!i.event)return void Rt.error("postMessage no event");const[o,a]=Ot(i.event.data);if(o)return;Rt.debug("[receivePostMessage]: %o",a);const s=i.event.origin===gt,c=bt.includes(i.event.origin),u=!(!a||!a.server)&&a.server.site&&i.event.origin===a.server.site,l=i.event.origin===n.site,p="SESSION"===a.event?u:l,d=s||c||p;if(Rt.debug("[originAllowed]: %o",{originAllowed:d,fromRegWiz:s,fromPurchase:c,fromWebGui:p,pmOriginMatchesDataServerUrl:u,pmOriginMatchesStateSite:l}),!d)return void Rt.error("❌ postMessage origin not allowed ❌");const f=t=>{Rt.debug("[sendBackPostMessage] %o",t);try{return i.event.source.postMessage(JSON.stringify(t),i.event.origin)}catch(e){return Rt.error("[sendBackPostMessage.catch] %o",{error:e,message:t})}},h=async t=>{if(!t)return Rt.error("[installKey] missing license data: %s",t);let e=t.split("/");if(e=e[e.length-1].slice(0,-4).toUpperCase(),e===n.state)return f({event:"LICENSE_PINGBACK",message:"Failed to license new key – duplicate install detected",license:t,success:!1}),Rt.error("[installKey] duplicate install detected",{state:n.state,keyType:e});Rt.debug("[installKey] %o",t);return await ui.query({url:t}).get().res(e=>{Rt.log("[installKey] SUCCESS ✨"),Rt.debug("[installKey] SUCCESS res %o",e),setTimeout(()=>{hi(n.hideMyServers,n.csrf)},1e3),f({event:"LICENSE_PINGBACK",message:"New license key installed",license:t,success:!0})}).catch(e=>{Rt.error("[installKey] FAILED: "+t,e),f({event:"LICENSE_PINGBACK",message:"Failed to license new key",license:t,success:!1})})};switch(a.event){case"SESSION":Rt.debug("[receivePostMessage.SESSION]"),t("SET_FULL_SERVER_STATE",a.server),t("SET_RAW_SERVER_STATE",a.server),mt.mergeLocaleMessage(a.locale,a.messages),mt.locale=a.locale,Rt.debug(`[receivePostMessage.SESSION] ${mt.locale} locale & messages set`,mt.messages);break;case"PREFLIGHT_REQUEST":if(Rt.debug("[receivePostMessage.PREFLIGHT_REQUEST]"),!kt.includes(i.event.origin)){Rt.error("[🙅‍♂️ ACCESS DENIED]");break}Rt.debug("[receivePostMessage.SUCCESS_NEW_STATE]");try{e("updateServerState").then(t=>{Rt.debug("[SUCCESS_NEW_STATE.updateServerState.then] %o",{res:t,"getters.server":r.server}),f({event:"SESSION",server:{...r.server},locale:mt.locale,messages:{...mt.messages[mt.locale]}})}).catch(t=>{Rt.error("[SUCCESS_NEW_STATE.updateServerState.catch] %o",t),f({event:"DELIVER_NEW_STATE",success:!1})})}catch(t){Rt.error("[SUCCESS_NEW_STATE.updateServerState.trycatch] %o",t),f({event:"DELIVER_NEW_STATE",success:!1})}break;case"LICENSE_PINGBACK":Rt.debug("[receivePostMessage.LICENSE_PINGBACK]"),t("LICENSE_PINGBACK",a);break;case"ACCOUNT_PINGBACK":Rt.debug("[receivePostMessage.ACCOUNT_PINGBACK]"),t("ACCOUNT_PINGBACK",a);break;case"DELIVER_NEW_STATE":Rt.debug("[receivePostMessage.DELIVER_NEW_STATE] %o",a);const o=!!n.license,s=n.licenseAction&&!n.licenseAction.success,c=n.state,u=a&&a.state?a.state:null,l=c===u;if(Rt.debug("[DELIVER_NEW_STATE]: %o",{keyToInstall:o,failedKeyInstall:s,oldState:c,newState:u,potentiallyStaleState:l,deliverNewStateRetryCounter:fi}),s){t("RECEIVED_SUCCESS_NEW_SERVERSTATE",Date.now());break}if(o&&l&&fi<6){setTimeout(()=>{Rt.debug("[potentiallyStaleState]: %o",{potentiallyStaleState:l}),Rt.debug("[deliverNewStateRetryCounter]: %o",{deliverNewStateRetryCounter:fi}),e("requestUpdatedServerStateFromUpc"),fi+=1},350*fi);break}if(o&&l&&fi>=6){t("SET_APP_ERROR_MESSAGE",`Failed to receive latest server info${n.licenseAction&&n.licenseAction.success?" after successful key install":""}. Please close this pop-up and refresh the webGUI.`),t("RECEIVED_SUCCESS_NEW_SERVERSTATE",Date.now());break}t("SET_FULL_SERVER_STATE",a),t("SET_RAW_SERVER_STATE",a),t("RECEIVED_SUCCESS_NEW_SERVERSTATE",Date.now()),fi=0;break;case"KEY_PURCHASE":Rt.debug("[receivePostMessage.KEY_PURCHASE]"),h(a.license);break;case"MYSERVERS_UNREGISTER":Rt.debug("[receivePostMessage.MYSERVERS_UNREGISTER]: WebguiUpdate"),pi.formUrl({csrf_token:n.csrf,"#file":r.myServersCfgPath,"#section":"remote",apikey:"",avatar:"",email:"",username:"",wanaccess:"no",...!n.hideMyServers&&{"#command":"/plugins/dynamix.my.servers/scripts/.nginx_reload"}}).post().res(t=>{Rt.log("[WebguiUpdate] signed out"),Rt.debug("[receivePostMessage.MYSERVERS_UNREGISTER]: WebguiUpdate.res %o",t),f({event:"ACCOUNT_PINGBACK",success:!0,type:"signOut",webGuiPathname:window.location.pathname})}).catch(t=>{Rt.error("[WebguiUpdate] sign out failed %o",t),f({event:"ACCOUNT_PINGBACK",success:!1,type:"signOut",webGuiPathname:window.location.pathname})});break;case"REG_WIZARD":Rt.debug("[receivePostMessage.REG_WIZARD]"),a.license&&h(a.license),Rt.debug("[receivePostMessage.REG_WIZARD]: WebguiUpdate %o"),pi.formUrl({csrf_token:n.csrf,"#file":r.myServersCfgPath,"#section":"remote",regWizTime:`${Date.now()}_${a.guid}`,...a.apikey&&{apikey:a.apikey},...a.email&&{email:a.email},...a.username&&{username:a.username},...a.avatar&&{avatar:a.avatar}}).post().res(t=>{Rt.log("[WebguiUpdate]"),Rt.debug("[receivePostMessage.REG_WIZARD]: WebguiUpdate.res %o",t),a.license||hi(n.hideMyServers,n.csrf),f({event:"ACCOUNT_PINGBACK",success:!0,type:"signIn",webGuiPathname:window.location.pathname})}).catch(t=>{Rt.error("[WebguiUpdate] %o",t),f({event:"ACCOUNT_PINGBACK",success:!1,type:"signIn",webGuiPathname:window.location.pathname})});break;case"RELOAD":Rt.debug("[receivePostMessage.RELOAD]"),window.location.reload();break;case"SUCCESS_NEW_STATE":Rt.debug("[receivePostMessage.SUCCESS_NEW_STATE]");try{e("updateServerState").then(t=>{Rt.debug("[SUCCESS_NEW_STATE.updateServerState.then]"),f({...t,event:"DELIVER_NEW_STATE",success:!0})}).catch(t=>{Rt.error("[SUCCESS_NEW_STATE.updateServerState.catch] %o",t),f({event:"DELIVER_NEW_STATE",success:!1})})}catch(t){Rt.error("[SUCCESS_NEW_STATE.updateServerState.trycatch] %o",t),f({event:"DELIVER_NEW_STATE",success:!1})}break;case"REDIRECT_MAIN":Rt.debug("[receivePostMessage.REDIRECT_MAIN]"),window.location.href="/Main";break;default:Rt.debug("[receivePostMessage.UNHANDLED_MESSAGE]")}},setStateFromWebComponentProp({commit:t},e){const[r,n]=Ot(decodeURIComponent(e));return r?Rt.error("[setStateFromWebComponentProp]: %o",e):(Rt.debug("[setStateFromWebComponentProp]: %o",n),t("SET_FULL_SERVER_STATE",n))},async updateServerState({commit:t,dispatch:e,getters:r,state:n}){if(Rt.debug("[updateServerState]"),gt===window.location.origin)return Rt.debug("[SKIPPED] updateServerState()");Rt.debug("[updateServerState]",{"state.hideMyServers":n.hideMyServers,"!state.graphOnline":!n.graphOnline,"!getters.validApiKeyLength":!r.validApiKeyLength,"!getters.validApiKeyForUpc":!r.validApiKeyForUpc}),!n.hideMyServers&&n.graphOnline&&r.validApiKeyLength&&r.validApiKeyForUpc?(Rt.debug("[updateServerState] via serverStateFromApi"),await e("serverStateFromApi")):(Rt.debug("[updateServerState] via ",r.statePhpPath),await li.url(r.statePhpPath).get().json().then(e=>e?t("SET_FULL_SERVER_STATE",e):Rt.error("[updateUpcFromStatePhp]: no `res` skipping `SET_FULL_SERVER_STATE`")).catch(t=>{Rt.error("[updateUpcFromStatePhp WebguiState.catch] %o",t),t.toString().includes("Unexpected token")||t.toString().includes("503")?window.location.href="/":"TypeError: Failed to fetch"===t||Rt.error("[updateUpcFromStatePhp WebguiState.catch] %o",t)}));const i=r.server;return Rt.debug("[updateServerState] newState %o",i),i},async validateGuid({commit:t,getters:e,state:r}){await new Promise((n,i)=>{Rt.debug("[validateGuid]");let o="GUID Invalid";if(!r.guid||r.guid===xt)return o+=": not present",t("CHANGE_GUID_VALID",!1),t("SET_STATE","EBLACKLISTED1"),t("SET_APP_ERROR_MESSAGE",o),t("SET_LOADING_STATE",!1),n(!1);if(!!r.regWizTime&&r.regWizTime.split("_")[1]===r.guid&&!e.stateData.error)return Rt.debug("[validateGuid] previouslyRegistered"),t("CHANGE_GUID_REGISTERED",!0),t("CHANGE_GUID_VALID",!0),t("SET_LOADING_STATE",!1),n(!0);const a=r.guid.includes("000000000000");if(r.guid&&r.guid!==xt&&(a||27!==r.guid.length))return a?(o+=": Too many consecutive zeros",t("SET_STATE","EBLACKLISTED2")):(o+=": Not long enough",t("SET_STATE","EBLACKLISTED1")),t("CHANGE_GUID_VALID",!1),t("SET_APP_ERROR_MESSAGE",o),t("SET_LOADING_STATE",!1),i(new Error(o));const s="EGUID"===r.state?r.regGuid:r.guid;try{return n(si.url("/validate/guid").formUrl({guid:s}).post().forbidden(e=>{t("SET_APP_ERROR_MESSAGE",e.message),e.message.includes("blacklisted")?t("SET_STATE","EBLACKLISTED"):e.message.includes("invalid GUID")&&t("SET_STATE","EBLACKLISTED1"),t("CHANGE_GUID_VALID",!1)}).json(e=>{e.registered&&t("CHANGE_GUID_REGISTERED",e.registered),e.forumaccount&&t("CHANGE_GUID_FORUMACCOUNT",e.forumaccount),t("CHANGE_GUID_VALID",!0),t("CHANGE_REPLACEABLE",e.replaceable)}).catch(e=>{t("SET_APP_ERROR_MESSAGE",e.message),i(new Error(e))}).finally(()=>{t("SET_LOADING_STATE",!1)}))}catch(e){return t("SET_APP_ERROR_MESSAGE",e),i(new Error(e))}})},jumpToUpc({commit:t}){window.scrollTo({top:0,behavior:"smooth"}),t("TRIGGER_UPC",!0),setTimeout(()=>{t("TRIGGER_UPC",!1)},500)},async getWanIp({commit:t,state:e}){if(Rt.debug("[getWanIp]"),e.wanip)return Rt.debug("[getWanIp] SKIPPED",e.wanip);try{return t("SET_WANIP",await ci.get().text())}catch(t){return Rt.error("[getWanIp] Unable to get WAN IP")}},fetchServers:async t=>{Rt.debug("[fetchServers]"),t.commit("SET_MY_SERVERS_LOADING",!0);const e=await qn(t).query({query:be`query initialGetServers { +!function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=0)}({0:function(t,e,r){r("8f7e"),t.exports=r("5a74")},"0012":function(t,e,r){t.exports=r("a7b2").Observable},"00fd":function(t,e,r){var n=r("9e69"),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=n?n.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),r=t[s];try{t[s]=void 0;var n=!0}catch(t){}var i=a.call(t);return n&&(e?t[s]=r:delete t[s]),i}},"03dd":function(t,e,r){var n=r("eac5"),i=r("57a5"),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return i(t);var e=[];for(var r in Object(t))o.call(t,r)&&"constructor"!=r&&e.push(r);return e}},"0483":function(t,e,r){var n=r("4767");n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=r("35d6").default;t.exports.__inject__=function(t){i("4ead7b8a",n,t)}},"04b4":function(t,e,r){"use strict";function n(t){var e=t.split(/\r\n|[\n\r]/g),r=function(t){for(var e=null,r=1;r0&&o(e[0]);)e.shift();for(;e.length>0&&o(e[e.length-1]);)e.pop();return e.join("\n")}function i(t){for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=-1===t.indexOf("\n"),i=" "===t[0]||"\t"===t[0],o='"'===t[t.length-1],a=!n||o||r,s="";return!a||n&&i||(s+="\n"+e),s+=e?t.replace(/\n/g,"\n"+e):t,a&&(s+="\n"),'"""'+s.replace(/"""/g,'\\"""')+'"""'}r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return a}))},"07c7":function(t,e){t.exports=function(){return!1}},"087d":function(t,e){t.exports=function(t,e){for(var r=-1,n=e.length,i=t.length;++r0&&t.jitter<=1?t.jitter:0,this.attempts=0}t.exports=r,r.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),r=Math.floor(e*this.jitter*t);t=0==(1&Math.floor(10*e))?t-r:t+r}return 0|Math.min(t,this.max)},r.prototype.reset=function(){this.attempts=0},r.prototype.setMin=function(t){this.ms=t},r.prototype.setMax=function(t){this.max=t},r.prototype.setJitter=function(t){this.jitter=t}},"0d24":function(t,e,r){(function(t){var n=r("2b3e"),i=r("07c7"),o=e&&!e.nodeType&&e,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===o?n.Buffer:void 0,c=(s?s.isBuffer:void 0)||i;t.exports=c}).call(this,r("62e4")(t))},"10f4":function(t,e,r){var n=r("8dac");n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=r("35d6").default;t.exports.__inject__=function(t){i("5292f54b",n,t)}},1290:function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},1310:function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},1368:function(t,e,r){var n=r("da03"),i=function(){var t=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=function(t){return!!i&&i in t}},1838:function(t,e,r){var n=r("c05f"),i=r("9b02"),o=r("8604"),a=r("f608"),s=r("08cc"),c=r("20ec"),u=r("f4d6");t.exports=function(t,e){return a(t)&&s(e)?c(u(t),e):function(r){var a=i(r,t);return void 0===a&&a===e?o(r,t):n(e,a,3)}}},"18d8":function(t,e,r){var n=r("234d"),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,r,n,i){e.push(n?i.replace(o,"$1"):r||t)})),e}));t.exports=a},"1a8c":function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},"1c3c":function(t,e,r){var n=r("9e69"),i=r("2474"),o=r("9638"),a=r("a2be"),s=r("edfa"),c=r("ac41"),u=n?n.prototype:void 0,l=u?u.valueOf:void 0;t.exports=function(t,e,r,n,u,p,d){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!p(new i(t),new i(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var f=s;case"[object Set]":var h=1&n;if(f||(f=c),t.size!=e.size&&!h)return!1;var m=d.get(t);if(m)return m==e;n|=2,d.set(t,e);var v=a(f(t),f(e),n,u,p,d);return d.delete(t),v;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},"1cec":function(t,e,r){var n=r("0b07")(r("2b3e"),"Promise");t.exports=n},"1eca":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return null!==t&&"object"==typeof t}},"1efc":function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},"1fc8":function(t,e,r){var n=r("4245");t.exports=function(t,e){var r=n(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}},"20ec":function(t,e){t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},2251:function(t,e,r){"use strict";r.r(e);var n=r("3661");for(var i in n)["default"].indexOf(i)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(i)},"22c9":function(t,e,r){"use strict";r.r(e);var n=r("470a");for(var i in n)["default"].indexOf(i)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(i)},"234d":function(t,e,r){var n=r("e380");t.exports=function(t){var e=n(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}},"23ad":function(t,e,r){t.exports=function(){"use strict";var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(e,r,n){var i=r.prototype,o=i.format;n.en.formats=t,i.format=function(e){void 0===e&&(e="YYYY-MM-DDTHH:mm:ssZ");var r=this.$locale().formats,n=function(e,r){return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,n,i){var o=i&&i.toUpperCase();return n||r[i]||t[i]||r[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,r){return e||r.slice(1)}))}))}(e,void 0===r?{}:r);return o.call(this,n)}}}()},"242e":function(t,e,r){var n=r("72af"),i=r("ec69");t.exports=function(t,e){return t&&n(t,e,i)}},2474:function(t,e,r){var n=r("2b3e").Uint8Array;t.exports=n},2478:function(t,e,r){var n=r("4245");t.exports=function(t){return n(this,t).get(t)}},"24fb":function(t,e,r){"use strict";function n(t,e){var r=t[1]||"",n=t[3];if(!n)return r;if(e&&"function"==typeof btoa){var i=function(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(r," */")}(n),o=n.sources.map((function(t){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(t," */")}));return[r].concat(o).concat([i]).join("\n")}return[r].join("\n")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r=n(e,t);return e[2]?"@media ".concat(e[2]," {").concat(r,"}"):r})).join("")},e.i=function(t,r,n){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(n)for(var o=0;o=0&&Math.floor(e)===e&&isFinite(t)}function p(t){return i(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function d(t){return null==t?"":Array.isArray(t)||u(t)&&t.toString===c?JSON.stringify(t,null,2):String(t)}function f(t){var e=parseFloat(t);return isNaN(e)?t:e}function h(t,e){for(var r=Object.create(null),n=t.split(","),i=0;i-1)return t.splice(r,1)}}var g=Object.prototype.hasOwnProperty;function b(t,e){return g.call(t,e)}function y(t){var e=Object.create(null);return function(r){return e[r]||(e[r]=t(r))}}var _=/-(\w)/g,w=y((function(t){return t.replace(_,(function(t,e){return e?e.toUpperCase():""}))})),x=y((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),E=/\B([A-Z])/g,S=y((function(t){return t.replace(E,"-$1").toLowerCase()}));var k=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function r(r){var n=arguments.length;return n?n>1?t.apply(e,arguments):t.call(e,r):t.call(e)}return r._length=t.length,r};function O(t,e){e=e||0;for(var r=t.length-e,n=new Array(r);r--;)n[r]=t[r+e];return n}function T(t,e){for(var r in e)t[r]=e[r];return t}function j(t){for(var e={},r=0;r0,K=H&&H.indexOf("edge/")>0,J=(H&&H.indexOf("android"),H&&/iphone|ipad|ipod|ios/.test(H)||"ios"===W),X=(H&&/chrome\/\d+/.test(H),H&&/phantomjs/.test(H),H&&H.match(/firefox\/(\d+)/)),Z={}.watch,tt=!1;if(B)try{var et={};Object.defineProperty(et,"passive",{get:function(){tt=!0}}),window.addEventListener("test-passive",null,et)}catch(t){}var rt=function(){return void 0===z&&(z=!B&&!G&&void 0!==t&&t.process&&"server"===t.process.env.VUE_ENV),z},nt=B&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function it(t){return"function"==typeof t&&/native code/.test(t.toString())}var ot,at="undefined"!=typeof Symbol&&it(Symbol)&&"undefined"!=typeof Reflect&&it(Reflect.ownKeys);ot="undefined"!=typeof Set&&it(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var st=C,ct=0,ut=function(){this.id=ct++,this.subs=[]};ut.prototype.addSub=function(t){this.subs.push(t)},ut.prototype.removeSub=function(t){v(this.subs,t)},ut.prototype.depend=function(){ut.target&&ut.target.addDep(this)},ut.prototype.notify=function(){for(var t=this.subs.slice(),e=0,r=t.length;e-1)if(o&&!b(i,"default"))a=!1;else if(""===a||a===S(t)){var c=Vt(String,i.type);(c<0||s0&&(le((c=t(c,(r||"")+"_"+s))[0])&&le(l)&&(p[u]=vt(l.text+c[0].text),c.shift()),p.push.apply(p,c)):a(c)?le(l)?p[u]=vt(l.text+c):""!==c&&p.push(vt(c)):le(c)&&le(l)?p[u]=vt(l.text+c.text):(o(e._isVList)&&i(c.tag)&&n(c.key)&&i(r)&&(c.key="__vlist"+r+"_"+s+"__"),p.push(c)));return p}(t):void 0}function le(t){return i(t)&&i(t.text)&&function(t){return!1===t}(t.isComment)}function pe(t,e){if(t){for(var r=Object.create(null),n=at?Reflect.ownKeys(t):Object.keys(t),i=0;i0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&n&&n!==r&&s===n.$key&&!o&&!n.$hasNormal)return n;for(var c in i={},t)t[c]&&"$"!==c[0]&&(i[c]=ve(e,c,t[c]))}else i={};for(var u in e)u in i||(i[u]=ge(e,u));return t&&Object.isExtensible(t)&&(t._normalized=i),$(i,"$stable",a),$(i,"$key",s),$(i,"$hasNormal",o),i}function ve(t,e,r){var n=function(){var t=arguments.length?r.apply(null,arguments):r({}),e=(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:ue(t))&&t[0];return t&&(!e||e.isComment&&!he(e))?void 0:t};return r.proxy&&Object.defineProperty(t,e,{get:n,enumerable:!0,configurable:!0}),n}function ge(t,e){return function(){return t[e]}}function be(t,e){var r,n,o,a,c;if(Array.isArray(t)||"string"==typeof t)for(r=new Array(t.length),n=0,o=t.length;ndocument.createEvent("Event").timeStamp&&(fr=function(){return hr.now()})}function mr(){var t,e;for(dr=fr(),lr=!0,ar.sort((function(t,e){return t.id-e.id})),pr=0;prpr&&ar[r].id>t.id;)r--;ar.splice(r+1,0,t)}else ar.push(t);ur||(ur=!0,ee(mr))}}(this)},gr.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||s(t)||this.deep){var e=this.value;if(this.value=t,this.user){var r='callback for watcher "'+this.expression+'"';qt(this.cb,this.vm,[t,e],this.vm,r)}else this.cb.call(this.vm,t,e)}}},gr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},gr.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},gr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||v(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var br={enumerable:!0,configurable:!0,get:C,set:C};function yr(t,e,r){br.get=function(){return this[e][r]},br.set=function(t){this[e][r]=t},Object.defineProperty(t,r,br)}function _r(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var r=t.$options.propsData||{},n=t._props={},i=t.$options._propKeys=[];!t.$parent||xt(!1);var o=function(o){i.push(o);var a=Lt(o,e,r,t);kt(n,o,a),o in t||yr(t,"_props",o)};for(var a in e)o(a);xt(!0)}(t,e.props),e.methods&&function(t,e){for(var r in t.$options.props,e)t[r]="function"!=typeof e[r]?C:k(e[r],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;u(e=t._data="function"==typeof e?function(t,e){pt();try{return t.call(e,e)}catch(t){return zt(t,e,"data()"),{}}finally{dt()}}(e,t):e||{})||(e={});var r=Object.keys(e),n=t.$options.props,i=(t.$options.methods,r.length);for(;i--;){var o=r[i];n&&b(n,o)||F(o)||yr(t,"_data",o)}St(e,!0)}(t):St(t._data={},!0),e.computed&&function(t,e){var r=t._computedWatchers=Object.create(null),n=rt();for(var i in e){var o=e[i],a="function"==typeof o?o:o.get;n||(r[i]=new gr(t,a||C,C,wr)),i in t||xr(t,i,o)}}(t,e.computed),e.watch&&e.watch!==Z&&function(t,e){for(var r in e){var n=e[r];if(Array.isArray(n))for(var i=0;i-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!function(t){return"[object RegExp]"===c.call(t)}(t)&&t.test(e)}function Rr(t,e){var r=t.cache,n=t.keys,i=t._vnode;for(var o in r){var a=r[o];if(a){var s=a.name;s&&!e(s)&&Nr(r,o,n,i)}}}function Nr(t,e,r,n){var i=t[e];!i||n&&i.tag===n.tag||i.componentInstance.$destroy(),t[e]=null,v(r,e)}(function(t){t.prototype._init=function(t){var e=this;e._uid=Or++,e._isVue=!0,t&&t._isComponent?function(t,e){var r=t.$options=Object.create(t.constructor.options),n=e._parentVnode;r.parent=e.parent,r._parentVnode=n;var i=n.componentOptions;r.propsData=i.propsData,r._parentListeners=i.listeners,r._renderChildren=i.children,r._componentTag=i.tag,e.render&&(r.render=e.render,r.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Pt(Tr(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,r=e.parent;if(r&&!e.abstract){for(;r.$options.abstract&&r.$parent;)r=r.$parent;r.$children.push(t)}t.$parent=r,t.$root=r?r.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Ze(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,i=n&&n.context;t.$slots=de(e._renderChildren,i),t.$scopedSlots=r,t._c=function(e,r,n,i){return Ve(t,e,r,n,i,!1)},t.$createElement=function(e,r,n,i){return Ve(t,e,r,n,i,!0)};var o=n&&n.data;kt(t,"$attrs",o&&o.attrs||r,null,!0),kt(t,"$listeners",e._parentListeners||r,null,!0)}(e),or(e,"beforeCreate"),function(t){var e=pe(t.$options.inject,t);e&&(xt(!1),Object.keys(e).forEach((function(r){kt(t,r,e[r])})),xt(!0))}(e),_r(e),function(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}(e),or(e,"created"),e.$options.el&&e.$mount(e.$options.el)}})(jr),function(t){Object.defineProperty(t.prototype,"$data",{get:function(){return this._data}}),Object.defineProperty(t.prototype,"$props",{get:function(){return this._props}}),t.prototype.$set=Ot,t.prototype.$delete=Tt,t.prototype.$watch=function(t,e,r){var n=this;if(u(e))return kr(n,t,e,r);(r=r||{}).user=!0;var i=new gr(n,t,e,r);if(r.immediate){var o='callback for immediate watcher "'+i.expression+'"';pt(),qt(e,n,[i.value],n,o),dt()}return function(){i.teardown()}}}(jr),function(t){var e=/^hook:/;t.prototype.$on=function(t,r){var n=this;if(Array.isArray(t))for(var i=0,o=t.length;i1?O(r):r;for(var n=O(arguments,1),i='event handler for "'+t+'"',o=0,a=r.length;oparseInt(this.max)&&Nr(e,r[0],r,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Nr(this.cache,t,this.keys)},mounted:function(){var t=this;this.cacheVNode(),this.$watch("include",(function(e){Rr(t,(function(t){return Ar(e,t)}))})),this.$watch("exclude",(function(e){Rr(t,(function(t){return!Ar(e,t)}))}))},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,e=Ye(t),r=e&&e.componentOptions;if(r){var n=Ir(r),i=this.include,o=this.exclude;if(i&&(!n||!Ar(i,n))||o&&n&&Ar(o,n))return e;var a=this.cache,s=this.keys,c=null==e.key?r.Ctor.cid+(r.tag?"::"+r.tag:""):e.key;a[c]?(e.componentInstance=a[c].componentInstance,v(s,c),s.push(c)):(this.vnodeToCache=e,this.keyToCache=c),e.data.keepAlive=!0}return e||t&&t[0]}}};(function(t){var e={get:function(){return U}};Object.defineProperty(t,"config",e),t.util={warn:st,extend:T,mergeOptions:Pt,defineReactive:kt},t.set=Ot,t.delete=Tt,t.nextTick=ee,t.observable=function(t){return St(t),t},t.options=Object.create(null),M.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,T(t.options.components,Pr),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var r=O(arguments,1);return r.unshift(this),"function"==typeof t.install?t.install.apply(t,r):"function"==typeof t&&t.apply(null,r),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Pt(this.options,t),this}}(t),Cr(t),function(t){M.forEach((function(e){t[e]=function(t,r){return r?("component"===e&&u(r)&&(r.name=r.name||t,r=this.options._base.extend(r)),"directive"===e&&"function"==typeof r&&(r={bind:r,update:r}),this.options[e+"s"][t]=r,r):this.options[e+"s"][t]}}))}(t)})(jr),Object.defineProperty(jr.prototype,"$isServer",{get:rt}),Object.defineProperty(jr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(jr,"FunctionalRenderContext",{value:Ne}),jr.version="2.6.13";var Mr=h("style,class"),Lr=h("input,textarea,option,select,progress"),Ur=h("contenteditable,draggable,spellcheck"),Fr=h("events,caret,typing,plaintext-only"),$r=h("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),Vr="http://www.w3.org/1999/xlink",zr=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},qr=function(t){return zr(t)?t.slice(6,t.length):""},Br=function(t){return null==t||!1===t};function Gr(t){for(var e=t.data,r=t,n=t;i(n.componentInstance);)(n=n.componentInstance._vnode)&&n.data&&(e=Wr(n.data,e));for(;i(r=r.parent);)r&&r.data&&(e=Wr(e,r.data));return function(t,e){return i(t)||i(e)?Hr(t,Qr(e)):""}(e.staticClass,e.class)}function Wr(t,e){return{staticClass:Hr(t.staticClass,e.staticClass),class:i(t.class)?[t.class,e.class]:e.class}}function Hr(t,e){return t?e?t+" "+e:t:e||""}function Qr(t){return Array.isArray(t)?function(t){for(var e,r="",n=0,o=t.length;n-1?bn(t,e,r):$r(e)?Br(r)?t.removeAttribute(e):(r="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,r)):Ur(e)?t.setAttribute(e,function(t,e){return Br(e)||"false"===e?"false":"contenteditable"===t&&Fr(e)?e:"true"}(e,r)):zr(e)?Br(r)?t.removeAttributeNS(Vr,qr(e)):t.setAttributeNS(Vr,e,r):bn(t,e,r)}function bn(t,e,r){if(Br(r))t.removeAttribute(e);else{if(Q&&!Y&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==r&&!t.__ieph){var n=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",n)};t.addEventListener("input",n),t.__ieph=!0}t.setAttribute(e,r)}}var yn={create:vn,update:vn};function _n(t,e){var r=e.elm,o=e.data,a=t.data;if(!(n(o.staticClass)&&n(o.class)&&(n(a)||n(a.staticClass)&&n(a.class)))){var s=Gr(e),c=r._transitionClasses;i(c)&&(s=Hr(s,Qr(c))),s!==r._prevClass&&(r.setAttribute("class",s),r._prevClass=s)}}var wn,xn={create:_n,update:_n};function En(t){if(i(t.__r)){var e=Q?"change":"input";t[e]=[].concat(t.__r,t[e]||[]),delete t.__r}i(t.__c)&&(t.change=[].concat(t.__c,t.change||[]),delete t.__c)}function Sn(t,e,r){var n=wn;return function i(){var o=e.apply(null,arguments);null!==o&&Tn(t,i,r,n)}}var kn=Ht&&!(X&&Number(X[1])<=53);function On(t,e,r,n){if(kn){var i=dr,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}wn.addEventListener(t,e,tt?{capture:r,passive:n}:r)}function Tn(t,e,r,n){(n||wn).removeEventListener(t,e._wrapper||e,r)}function jn(t,e){if(!n(t.data.on)||!n(e.data.on)){var r=e.data.on||{},i=t.data.on||{};wn=e.elm,En(r),ae(r,i,On,Tn,Sn,e.context),wn=void 0}}var Cn,In={create:jn,update:jn};function An(t,e){if(!n(t.data.domProps)||!n(e.data.domProps)){var r,o,a=e.elm,s=t.data.domProps||{},c=e.data.domProps||{};for(r in i(c.__ob__)&&(c=e.data.domProps=T({},c)),s)r in c||(a[r]="");for(r in c){if(o=c[r],"textContent"===r||"innerHTML"===r){if(e.children&&(e.children.length=0),o===s[r])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===r&&"PROGRESS"!==a.tagName){a._value=o;var u=n(o)?"":String(o);Rn(a,u)&&(a.value=u)}else if("innerHTML"===r&&Jr(a.tagName)&&n(a.innerHTML)){(Cn=Cn||document.createElement("div")).innerHTML=""+o+"";for(var l=Cn.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;l.firstChild;)a.appendChild(l.firstChild)}else if(o!==s[r])try{a[r]=o}catch(t){}}}}function Rn(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var r=!0;try{r=document.activeElement!==t}catch(t){}return r&&t.value!==e}(t,e)||function(t,e){var r=t.value,n=t._vModifiers;if(i(n)){if(n.number)return f(r)!==f(e);if(n.trim)return r.trim()!==e.trim()}return r!==e}(t,e))}var Nn={create:An,update:An},Dn=y((function(t){var e={},r=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var n=t.split(r);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}));function Pn(t){var e=Mn(t.style);return t.staticStyle?T(t.staticStyle,e):e}function Mn(t){return Array.isArray(t)?j(t):"string"==typeof t?Dn(t):t}var Ln,Un=/^--/,Fn=/\s*!important$/,$n=function(t,e,r){if(Un.test(e))t.style.setProperty(e,r);else if(Fn.test(r))t.style.setProperty(S(e),r.replace(Fn,""),"important");else{var n=zn(e);if(Array.isArray(r))for(var i=0,o=r.length;i-1?e.split(Gn).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var r=" "+(t.getAttribute("class")||"")+" ";r.indexOf(" "+e+" ")<0&&t.setAttribute("class",(r+e).trim())}}function Hn(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Gn).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var r=" "+(t.getAttribute("class")||"")+" ",n=" "+e+" ";r.indexOf(n)>=0;)r=r.replace(n," ");(r=r.trim())?t.setAttribute("class",r):t.removeAttribute("class")}}function Qn(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&T(e,Yn(t.name||"v")),T(e,t),e}return"string"==typeof t?Yn(t):void 0}}var Yn=y((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),Kn=B&&!Y,Jn="transition",Xn="animation",Zn="transition",ti="transitionend",ei="animation",ri="animationend";Kn&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Zn="WebkitTransition",ti="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(ei="WebkitAnimation",ri="webkitAnimationEnd"));var ni=B?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function ii(t){ni((function(){ni(t)}))}function oi(t,e){var r=t._transitionClasses||(t._transitionClasses=[]);r.indexOf(e)<0&&(r.push(e),Wn(t,e))}function ai(t,e){t._transitionClasses&&v(t._transitionClasses,e),Hn(t,e)}function si(t,e,r){var n=ui(t,e),i=n.type,o=n.timeout,a=n.propCount;if(!i)return r();var s=i===Jn?ti:ri,c=0,u=function(){t.removeEventListener(s,l),r()},l=function(e){e.target===t&&++c>=a&&u()};setTimeout((function(){c0&&(r=Jn,l=a,p=o.length):e===Xn?u>0&&(r=Xn,l=u,p=c.length):p=(r=(l=Math.max(a,u))>0?a>u?Jn:Xn:null)?r===Jn?o.length:c.length:0,{type:r,timeout:l,propCount:p,hasTransform:r===Jn&&ci.test(n[Zn+"Property"])}}function li(t,e){for(;t.length1}function vi(t,e){!0!==e.data.show&&di(e)}var gi=function(t){var e,r,s={},c=t.modules,u=t.nodeOps;for(e=0;eh?_(t,n(r[g+1])?null:r[g+1].elm,r,f,g,o):f>g&&x(e,d,h)}function k(t,e,r,n){for(var o=r;o-1,a.selected!==o&&(a.selected=o);else if(R(xi(a),n))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function wi(t,e){return e.every((function(e){return!R(e,t)}))}function xi(t){return"_value"in t?t._value:t.value}function Ei(t){t.target.composing=!0}function Si(t){t.target.composing&&(t.target.composing=!1,ki(t.target,"input"))}function ki(t,e){var r=document.createEvent("HTMLEvents");r.initEvent(e,!0,!0),t.dispatchEvent(r)}function Oi(t){return!t.componentInstance||t.data&&t.data.transition?t:Oi(t.componentInstance._vnode)}var Ti={model:bi,show:{bind:function(t,e,r){var n=e.value,i=(r=Oi(r)).data&&r.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;n&&i?(r.data.show=!0,di(r,(function(){t.style.display=o}))):t.style.display=n?o:"none"},update:function(t,e,r){var n=e.value;!n!=!e.oldValue&&((r=Oi(r)).data&&r.data.transition?(r.data.show=!0,n?di(r,(function(){t.style.display=t.__vOriginalDisplay})):fi(r,(function(){t.style.display="none"}))):t.style.display=n?t.__vOriginalDisplay:"none")},unbind:function(t,e,r,n,i){i||(t.style.display=t.__vOriginalDisplay)}}},ji={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Ci(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Ci(Ye(e.children)):t}function Ii(t){var e={},r=t.$options;for(var n in r.propsData)e[n]=t[n];var i=r._parentListeners;for(var o in i)e[w(o)]=i[o];return e}function Ai(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var Ri=function(t){return t.tag||he(t)},Ni=function(t){return"show"===t.name},Di={name:"transition",props:ji,abstract:!0,render:function(t){var e=this,r=this.$slots.default;if(r&&(r=r.filter(Ri)).length){var n=this.mode,i=r[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return i;var o=Ci(i);if(!o)return i;if(this._leaving)return Ai(t,i);var s="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?s+"comment":s+o.tag:a(o.key)?0===String(o.key).indexOf(s)?o.key:s+o.key:o.key;var c=(o.data||(o.data={})).transition=Ii(this),u=this._vnode,l=Ci(u);if(o.data.directives&&o.data.directives.some(Ni)&&(o.data.show=!0),l&&l.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(o,l)&&!he(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var p=l.data.transition=T({},c);if("out-in"===n)return this._leaving=!0,se(p,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),Ai(t,i);if("in-out"===n){if(he(o))return u;var d,f=function(){d()};se(c,"afterEnter",f),se(c,"enterCancelled",f),se(p,"delayLeave",(function(t){d=t}))}}return i}}},Pi=T({tag:String,moveClass:String},ji);function Mi(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Li(t){t.data.newPos=t.elm.getBoundingClientRect()}function Ui(t){var e=t.data.pos,r=t.data.newPos,n=e.left-r.left,i=e.top-r.top;if(n||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+n+"px,"+i+"px)",o.transitionDuration="0s"}}delete Pi.mode;var Fi={Transition:Di,TransitionGroup:{props:Pi,beforeMount:function(){var t=this,e=this._update;this._update=function(r,n){var i=er(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,r,n)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",r=Object.create(null),n=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Ii(this),s=0;s-1?Zr[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Zr[t]=/HTMLUnknownElement/.test(e.toString())},T(jr.options.directives,Ti),T(jr.options.components,Fi),jr.prototype.__patch__=B?gi:C,jr.prototype.$mount=function(t,e){return function(t,e,r){var n;return t.$el=e,t.$options.render||(t.$options.render=mt),or(t,"beforeMount"),n=function(){t._update(t._render(),r)},new gr(t,n,C,{before:function(){t._isMounted&&!t._isDestroyed&&or(t,"beforeUpdate")}},!0),r=!1,null==t.$vnode&&(t._isMounted=!0,or(t,"mounted")),t}(this,t=t&&B?function(t){return"string"==typeof t?document.querySelector(t)||document.createElement("div"):t}(t):void 0,e)},B&&setTimeout((function(){U.devtools&&nt&&nt.emit("init",jr)}),0),e.default=jr}.call(this,r("c8ba"))},"2b3e":function(t,e,r){var n=r("585a"),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();t.exports=o},"2d7c":function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,i=0,o=[];++r-1&&e.splice(r,1)}}function m(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var r=t.state;g(t,r,[],t._modules.root,!0),v(t,r,e)}function v(t,e,r){var n=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var i=t._wrappedGetters,o={};a(i,(function(e,r){o[r]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,r,{get:function(){return t._vm[r]},enumerable:!0})}));var s=l.config.silent;l.config.silent=!0,t._vm=new l({data:{$$state:e},computed:o}),l.config.silent=s,t.strict&&function(t){t._vm.$watch((function(){return this._data.$$state}),(function(){}),{deep:!0,sync:!0})}(t),n&&(r&&t._withCommit((function(){n._data.$$state=null})),l.nextTick((function(){return n.$destroy()})))}function g(t,e,r,n,i){var o=!r.length,a=t._modules.getNamespace(r);if(n.namespaced&&(t._modulesNamespaceMap[a],t._modulesNamespaceMap[a]=n),!o&&!i){var s=b(e,r.slice(0,-1)),c=r[r.length-1];t._withCommit((function(){l.set(s,c,n.state)}))}var u=n.context=function(t,e,r){var n=""===e,i={dispatch:n?t.dispatch:function(r,n,i){var o=y(r,n,i),a=o.payload,s=o.options,c=o.type;return s&&s.root||(c=e+c),t.dispatch(c,a)},commit:n?t.commit:function(r,n,i){var o=y(r,n,i),a=o.payload,s=o.options,c=o.type;s&&s.root||(c=e+c),t.commit(c,a,s)}};return Object.defineProperties(i,{getters:{get:n?function(){return t.getters}:function(){return function(t,e){if(!t._makeLocalGettersCache[e]){var r={},n=e.length;Object.keys(t.getters).forEach((function(i){if(i.slice(0,n)===e){var o=i.slice(n);Object.defineProperty(r,o,{get:function(){return t.getters[i]},enumerable:!0})}})),t._makeLocalGettersCache[e]=r}return t._makeLocalGettersCache[e]}(t,e)}},state:{get:function(){return b(t.state,r)}}}),i}(t,a,r);n.forEachMutation((function(e,r){!function(t,e,r,n){(t._mutations[e]||(t._mutations[e]=[])).push((function(e){r.call(t,n.state,e)}))}(t,a+r,e,u)})),n.forEachAction((function(e,r){var n=e.root?r:a+r,i=e.handler||e;!function(t,e,r,n){(t._actions[e]||(t._actions[e]=[])).push((function(e){var i=r.call(t,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:t.getters,rootState:t.state},e);return function(t){return t&&"function"==typeof t.then}(i)||(i=Promise.resolve(i)),t._devtoolHook?i.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):i}))}(t,n,i,u)})),n.forEachGetter((function(e,r){!function(t,e,r,n){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return r(n.state,n.getters,t.state,t.getters)})}(t,a+r,e,u)})),n.forEachChild((function(n,o){g(t,e,r.concat(o),n,i)}))}function b(t,e){return e.reduce((function(t,e){return t[e]}),t)}function y(t,e,r){return s(t)&&t.type&&(r=e,e=t,t=t.type),{type:t,payload:e,options:r}}function _(t){l&&t===l||function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:r});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[r].concat(t.init):r,e.call(this,t)}}function r(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(l=t)}f.state.get=function(){return this._vm._data.$$state},f.state.set=function(t){},d.prototype.commit=function(t,e,r){var n=this,i=y(t,e,r),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),c=this._mutations[o];c&&(this._withCommit((function(){c.forEach((function(t){t(a)}))})),this._subscribers.slice().forEach((function(t){return t(s,n.state)})))},d.prototype.dispatch=function(t,e){var r=this,n=y(t,e),i=n.type,o=n.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(a,r.state)}))}catch(t){}var c=s.length>1?Promise.all(s.map((function(t){return t(o)}))):s[0](o);return new Promise((function(t,e){c.then((function(e){try{r._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,r.state)}))}catch(t){}t(e)}),(function(t){try{r._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(a,r.state,t)}))}catch(t){}e(t)}))}))}},d.prototype.subscribe=function(t,e){return h(t,this._subscribers,e)},d.prototype.subscribeAction=function(t,e){return h("function"==typeof t?{before:t}:t,this._actionSubscribers,e)},d.prototype.watch=function(t,e,r){var n=this;return this._watcherVM.$watch((function(){return t(n.state,n.getters)}),e,r)},d.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},d.prototype.registerModule=function(t,e,r){void 0===r&&(r={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),g(this,this.state,t,this._modules.get(t),r.preserveState),v(this,this.state)},d.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var r=b(e.state,t.slice(0,-1));l.delete(r,t[t.length-1])})),m(this)},d.prototype.hasModule=function(t){return"string"==typeof t&&(t=[t]),this._modules.isRegistered(t)},d.prototype.hotUpdate=function(t){this._modules.update(t),m(this,!0)},d.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(d.prototype,f);var w=O((function(t,e){var r={};return k(e).forEach((function(e){var n=e.key,i=e.val;r[n]=function(){var e=this.$store.state,r=this.$store.getters;if(t){var n=T(this.$store,"mapState",t);if(!n)return;e=n.context.state,r=n.context.getters}return"function"==typeof i?i.call(this,e,r):e[i]},r[n].vuex=!0})),r})),x=O((function(t,e){var r={};return k(e).forEach((function(e){var n=e.key,i=e.val;r[n]=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];var n=this.$store.commit;if(t){var o=T(this.$store,"mapMutations",t);if(!o)return;n=o.context.commit}return"function"==typeof i?i.apply(this,[n].concat(e)):n.apply(this.$store,[i].concat(e))}})),r})),E=O((function(t,e){var r={};return k(e).forEach((function(e){var n=e.key,i=e.val;i=t+i,r[n]=function(){if(!t||T(this.$store,"mapGetters",t))return this.$store.getters[i]},r[n].vuex=!0})),r})),S=O((function(t,e){var r={};return k(e).forEach((function(e){var n=e.key,i=e.val;r[n]=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];var n=this.$store.dispatch;if(t){var o=T(this.$store,"mapActions",t);if(!o)return;n=o.context.dispatch}return"function"==typeof i?i.apply(this,[n].concat(e)):n.apply(this.$store,[i].concat(e))}})),r}));function k(t){return function(t){return Array.isArray(t)||s(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function O(t){return function(e,r){return"string"!=typeof e?(r=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,r)}}function T(t,e,r){return t._modulesNamespaceMap[r]}function j(t,e,r){var n=r?t.groupCollapsed:t.group;try{n.call(t,e)}catch(r){t.log(e)}}function C(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function I(){var t=new Date;return" @ "+A(t.getHours(),2)+":"+A(t.getMinutes(),2)+":"+A(t.getSeconds(),2)+"."+A(t.getMilliseconds(),3)}function A(t,e){return function(t,e){return new Array(e+1).join(t)}("0",e-t.toString().length)+t}var R={Store:d,install:_,version:"3.6.2",mapState:w,mapMutations:x,mapGetters:E,mapActions:S,createNamespacedHelpers:function(t){return{mapState:w.bind(null,t),mapGetters:E.bind(null,t),mapMutations:x.bind(null,t),mapActions:S.bind(null,t)}},createLogger:function(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var r=t.filter;void 0===r&&(r=function(t,e,r){return!0});var n=t.transformer;void 0===n&&(n=function(t){return t});var i=t.mutationTransformer;void 0===i&&(i=function(t){return t});var a=t.actionFilter;void 0===a&&(a=function(t,e){return!0});var s=t.actionTransformer;void 0===s&&(s=function(t){return t});var c=t.logMutations;void 0===c&&(c=!0);var u=t.logActions;void 0===u&&(u=!0);var l=t.logger;return void 0===l&&(l=console),function(t){var p=o(t.state);void 0!==l&&(c&&t.subscribe((function(t,a){var s=o(a);if(r(t,p,s)){var c=I(),u=i(t),d="mutation "+t.type+c;j(l,d,e),l.log("%c prev state","color: #9E9E9E; font-weight: bold",n(p)),l.log("%c mutation","color: #03A9F4; font-weight: bold",u),l.log("%c next state","color: #4CAF50; font-weight: bold",n(s)),C(l)}p=s})),u&&t.subscribeAction((function(t,r){if(a(t,r)){var n=I(),i=s(t),o="action "+t.type+n;j(l,o,e),l.log("%c action","color: #03A9F4; font-weight: bold",i),C(l)}})))}}};e.a=R}).call(this,r("c8ba"))},"2f6c":function(t,e,r){"use strict";r.d(e,"a",(function(){return o})),r.d(e,"b",(function(){return a}));var n=r("ad67"),i={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},o=Object.freeze({});function a(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,a=void 0,u=Array.isArray(t),l=[t],p=-1,d=[],f=void 0,h=void 0,m=void 0,v=[],g=[],b=t;do{var y=++p===l.length,_=y&&0!==d.length;if(y){if(h=0===g.length?void 0:v[v.length-1],f=m,m=g.pop(),_){if(u)f=f.slice();else{for(var w={},x=0,E=Object.keys(f);x0){var n=r.connection.filter?r.connection.filter:[];n.sort();var i=e,o={};return n.forEach((function(t){o[t]=i[t]})),r.connection.key+"("+JSON.stringify(o)+")"}return r.connection.key}var a=t;if(e){var c=s()(e);a+="("+c+")"}return r&&Object.keys(r).forEach((function(t){-1===l.indexOf(t)&&(r[t]&&Object.keys(r[t]).length?a+="@"+t+"("+JSON.stringify(r[t])+")":a+="@"+t)})),a}function d(t,e){if(t.arguments&&t.arguments.length){var r={};return t.arguments.forEach((function(t){var n=t.name,i=t.value;return c(r,n,i,e)})),r}return null}function f(t){return t.alias?t.alias.value:t.name.value}function h(t){return"Field"===t.kind}function m(t){return"InlineFragment"===t.kind}function v(t){return t&&"id"===t.type&&"boolean"==typeof t.generated}function g(t,e){return void 0===e&&(e=!1),Object(o.a)({type:"id",generated:e},"string"==typeof t?{id:t,typename:void 0}:t)}function b(t){return null!=t&&"object"==typeof t&&"json"===t.type}function y(t,e){if(t.directives&&t.directives.length){var r={};return t.directives.forEach((function(t){r[t.name.value]=d(t,e)})),r}return null}function _(t,e){return void 0===e&&(e={}),function(t){return t?t.filter(E).map((function(t){var e=t.arguments;t.name.value,Object(i.b)(e&&1===e.length,14);var r=e[0];Object(i.b)(r.name&&"if"===r.name.value,15);var n=r.value;return Object(i.b)(n&&("Variable"===n.kind||"BooleanValue"===n.kind),16),{directive:t,ifArgument:r}})):[]}(t.directives).every((function(t){var r=t.directive,n=t.ifArgument,o=!1;return"Variable"===n.value.kind?(o=e[n.value.name.value],Object(i.b)(void 0!==o,13)):o=n.value.value,"skip"===r.name.value?!o:o}))}function w(t,e){return function(t){var e=[];return Object(n.b)(t,{Directive:function(t){e.push(t.name.value)}}),e}(e).some((function(e){return t.indexOf(e)>-1}))}function x(t){return t&&w(["client"],t)&&w(["export"],t)}function E(t){var e=t.name.value;return"skip"===e||"include"===e}function S(t,e){var r=e,n=[];return t.definitions.forEach((function(t){if("OperationDefinition"===t.kind)throw new i.a(11);"FragmentDefinition"===t.kind&&n.push(t)})),void 0===r&&(Object(i.b)(1===n.length,12),r=n[0].name.value),Object(o.a)(Object(o.a)({},t),{definitions:Object(o.h)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],t.definitions)})}function k(t){for(var e=[],r=1;r1){var n=[];e=at(e,n);for(var i=1;iYour Trial key includes all the functionality and device support of a Pro key.

After your Trial has reached expiration, your server still functions normally until the next time you Stop the array or reboot your server.

At that point you may either purchase a license key or request a Trial extension.

","_extraMsg":"

You have {parsedExpireTime} remaining on your Trial key.

"},"EEXPIRED":{"humanReadable":"Trial Expired","heading":"Your Trial has expired","message":{"base":"To continue using Unraid OS you may purchase a license key.","extensionNotEligible":"You have used all your Trial extensions. @:stateData.EEXPIRED.message.base","extensionEligible":"@:stateData.EEXPIRED.message.base Alternately, you may request a Trial extension."}},"BASIC":{"humanReadable":"Basic"},"PLUS":{"humanReadable":"Plus"},"PRO":{"humanReadable":"Pro"},"EGUID":{"humanReadable":"GUID Error","error":{"heading":"Registration key / GUID mismatch","message":{"default":"The license key file does not correspond to the USB Flash boot device. Please copy the correct key file to the /config directory on your USB Flash boot device or choose Purchase Key.","replacementIneligible":"Your Unraid registration key is ineligible for replacement as it has been replaced within the last 12 months.","replacementEligible":"The license key file does not correspond to the USB Flash boot device. Please copy the correct key file to the /config directory on your USB Flash boot device or choose Purchase Key or Replace Key."}}},"ENOKEYFILE2":{"humanReadable":"Missing key file","error":{"heading":"@:stateData.ENOKEYFILE2.humanReadable","message":"It appears that your license key file is corrupted or missing. The key file should be located in the /config directory on your USB Flash boot device. If you do not have a backup copy of your license key file you may attempt to recover your key. If this was a Trial installation, you may purchase a license key."}},"ETRIAL":{"humanReadable":"Invalid installation","error":{"heading":"@:stateData.ETRIAL.humanReadable","message":"It is not possible to use a Trial key with an existing Unraid OS installation. You may purchase a license key corresponding to this USB Flash device to continue using this installation."}},"ENOKEYFILE1":{"humanReadable":"No Keyfile","error":{"heading":"No USB flash configuration data","message":"There is a problem with your USB Flash device"}},"ENOFLASH":{"humanReadable":"No Flash","error":{"heading":"Cannot access your USB Flash boot device","message":"There is a physical problem accessing your USB Flash boot device"}},"EGUID1":{"humanReadable":"Multiple License Keys Present","error":{"heading":"@:stateData.EGUID1.humanReadable","message":"There are multiple license key files present on your USB flash device and none of them correspond to the USB Flash boot device. Please remove all key files, except the one you want to replace, from the /config directory on your USB Flash boot device. Alternately you may purchase a license key for this USB flash device. If you want to replace one of your license keys with a new key bound to this USB Flash device, please first remove all other key files first."}},"EBLACKLISTED":{"humanReadable":"BLACKLISTED","error":{"heading":"Blacklisted USB Flash GUID","message":"This USB Flash boot device has been blacklisted. This can occur as a result of transferring your license key to a replacement USB Flash device, and you are currently booted from your old USB Flash device. A USB Flash device may also be blacklisted if we discover the serial number is not unique – this is common with USB card readers."}},"EBLACKLISTED1":{"humanReadable":"@:stateData.EBLACKLISTED.humanReadable","error":{"heading":"USB Flash device error","message":"This USB Flash device has an invalid GUID. Please try a different USB Flash device"}},"EBLACKLISTED2":{"humanReadable":"@:stateData.EBLACKLISTED.humanReadable","error":{"heading":"USB Flash has no serial number","message":"@:stateData.EBLACKLISTED.error.message"}},"ENOCONN":{"humanReadable":"Trial Requires Internet Connection","error":{"heading":"Cannot validate Unraid Trial key","message":"Your Trial key requires an internet connection. Please check Settings > Network"}},"STALE":{"humanReadable":"Stale","error":{"heading":"Stale Server","message":"Please refresh the page to ensure you load your latest configuration"}}},"upc":{"avatarAlt":"{0}\'s Avatar","confirmClosure":"Confirm closure then continue to webGUI","closeDropdown":"Close dropdown","openDropdown":"Open dropdown","pleaseConfirmClosureYouHaveOpenPopUp":"Please confirm closure. You have an open pop-up.","trialHasExpiredSeeOptions":"Trial has expired, see options below","errorCertRequiresSignIn":"Sign In before your Unraid.net SSL certificate expires","noRemoteApikeyRegisteredWithPlg":{"heading":"My Servers Error","msg":"Unraid.net re-authentication required"},"errorTooManyDisks":{"heading":"Too many devices","msg":{"base":"You must upgrade your key to support more devices.","basic":"Your Basic key supports 6 devices.","plus":"Your Plus key supports 12 devices."}},"extraLinks":{"newTab":"Opens {0} in new tab","myServers":"My Servers Dashboard","forums":"Unraid Forums","settings":{"text":"Settings","title":"Settings > Management Access • Unraid.net"}},"meta":{"trial":{"active":{"date":"Trial key expires at {date}","timeDiff":"Trial expires in {timeDiff}"},"expired":{"date":"Trial key expired at {date}","timeDiff":"Trial expired {timeDiff}"}},"uptime":{"date":"Server up since {date}","readable":"Uptime {timeDiff}"}},"myServers":{"heading":"My Servers","beta":"beta","errors":{"unraidApi":{"heading":"Unraid API Error","message":"Failed to connect to Unraid API."},"myServers":{"heading":"My Servers Error","message":"Please wait a moment and reload the page."}},"closeDetails":"Close Details","loading":"Loading My Servers data","displayingLastKnown":"Displaying last known server data","mothership":{"connected":"Connected to Mothership","notConnected":"Not Connected to Mothership"},"accessLabels":{"current":"Current server","local":"Local access","offline":"Server Offline","remote":"Remote access","unavailable":"Access unavailable"}},"opensNewHttpsWindow":{"base":"Opens new HTTPS window to {0}","signIn":"@:upc.opensNewHttpsWindow.base @:signIn","signOut":"@:upc.opensNewHttpsWindow.base @:signOut","purchase":"@:upc.opensNewHttpsWindow.base @:actions.purchase","upgrade":"@:upc.opensNewHttpsWindow.base @:actions.upgrade"},"signInActions":{"resolve":"@:signIn to resolve","purchaseKey":"@:signIn to @:actions.purchase","purchaseKeyOrExtendTrial":"@:upc.signInActions.purchaseKey or @:actions.extend"}},"wanIpCheck":{"checking":"Checking Wan IPs","avatarAlt":"{0}\'s Avatar","match":"Remark: your WAN IPv4 is {0}","mismatch":"Remark: Unraid\'s WAN IPv4 {0} does not match your client\'s WAN IPv4 {1}. This may indicate a complex network that will not work with this Remote Access solution. Ignore this message if you are currently connected via Remote Access or VPN","resolveError":"DNS issue, unable to resolve mothership.unraid.net"}}')},"5a0c":function(t,e,r){t.exports=function(){"use strict";var t=6e4,e=36e5,r="millisecond",n="second",i="minute",o="hour",a="day",s="week",c="month",u="quarter",l="year",p="date",d="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},v=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},g={s:v,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),i=r%60;return(e<=0?"+":"-")+v(n,2,"0")+":"+v(i,2,"0")},m:function t(e,r){if(e.date()t.replace(a,(t,e)=>e?e.toUpperCase():""),c=/\B([A-Z])/g,u=t=>t.replace(c,"-$1").toLowerCase();function l(t,e,r){t[e]=[].concat(t[e]||[]),t[e].unshift(r)}function p(t,e){if(t){(t.$options[e]||[]).forEach(e=>{e.call(t)})}}function d(t,e,{type:r}={}){if((t=>/function Boolean/.test(String(t)))(r))return"true"===t||"false"===t?"true"===t:""===t||t===e||null!=t||t;if((t=>/function Number/.test(String(t)))(r)){const e=parseFloat(t,10);return isNaN(e)?t:e}return t}function f(t,e){const r=[];for(let n=0,i=e.length;n(t[e]=c[r[n]],t),{}),l(e,"beforeCreate",(function(){const t=this.$emit;this.$emit=(e,...r)=>(this.$root.$options.customElement.dispatchEvent(function(t,e){return new CustomEvent(t,{bubbles:!1,cancelable:!1,detail:e})}(e,r)),t.call(this,e,...r))})),l(e,"created",(function(){i.forEach(t=>{this.$root.props[t]=this[t]})})),i.forEach(t=>{Object.defineProperty(m.prototype,t,{get(){return this._wrapper.props[t]},set(e){this._wrapper.props[t]=e},enumerable:!1,configurable:!0})}),a=!0}function h(t,e){const r=s(e),n=t.hasAttribute(e)?t.getAttribute(e):void 0;t._wrapper.props[r]=d(n,e,o[r])}class m extends HTMLElement{constructor(){const r=super();r.attachShadow({mode:"open"});const n=r._wrapper=new t({name:"shadow-root",customElement:r,shadowRoot:r.shadowRoot,data:()=>({props:{},slotChildren:[]}),render(t){return t(e,{ref:"inner",props:this.props},this.slotChildren)}});new MutationObserver(t=>{let e=!1;for(let n=0;n{t.props=function(t){const e={};return t.forEach(t=>{e[t]=void 0}),e}(i),n.forEach(t=>{h(this,t)})};a?r():e().then(t=>{(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),c(t),r()}),t.slotChildren=Object.freeze(f(t.$createElement,this.childNodes)),t.$mount(),this.shadowRoot.appendChild(t.$el)}}disconnectedCallback(){p(this.vueComponent,"deactivated")}}return r||c(e),m};function g(t,e,r,n,i,o,a,s){var c,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=r,u._compiled=!0),n&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(t,e){return c.call(e),l(t,e)}}else{var p=u.beforeCreate;u.beforeCreate=p?[].concat(p,c):[c]}return{exports:t,options:u}}r("24fb"),r("35d6");var b=r("2f62"),y=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"];function _(t,e){"undefined"!=typeof console&&(console.warn("[vue-i18n] "+t),e&&console.warn(e.stack))}var w=Array.isArray;function x(t){return null!==t&&"object"==typeof t}function E(t){return"boolean"==typeof t}function S(t){return"string"==typeof t}var k=Object.prototype.toString;function O(t){return"[object Object]"===k.call(t)}function T(t){return null==t}function j(t){return"function"==typeof t}function C(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var r=null,n=null;return 1===t.length?x(t[0])||w(t[0])?n=t[0]:"string"==typeof t[0]&&(r=t[0]):2===t.length&&("string"==typeof t[0]&&(r=t[0]),(x(t[1])||w(t[1]))&&(n=t[1])),{locale:r,params:n}}function I(t){return JSON.parse(JSON.stringify(t))}function A(t,e){return!!~t.indexOf(e)}var R=Object.prototype.hasOwnProperty;function N(t,e){return R.call(t,e)}function D(t){for(var e=arguments,r=Object(t),n=1;n/g,">").replace(/"/g,""").replace(/'/g,"'")}(t[e]))})),t}var L={beforeCreate:function(){var t=this.$options;if(t.i18n=t.i18n||(t.__i18n?{}:null),t.i18n){if(t.i18n instanceof dt){if(t.__i18n)try{var e=t.i18n&&t.i18n.messages?t.i18n.messages:{};t.__i18n.forEach((function(t){e=D(e,JSON.parse(t))})),Object.keys(e).forEach((function(r){t.i18n.mergeLocaleMessage(r,e[r])}))}catch(t){}this._i18n=t.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(O(t.i18n)){var r=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof dt?this.$root.$i18n:null;if(r&&(t.i18n.root=this.$root,t.i18n.formatter=r.formatter,t.i18n.fallbackLocale=r.fallbackLocale,t.i18n.formatFallbackMessages=r.formatFallbackMessages,t.i18n.silentTranslationWarn=r.silentTranslationWarn,t.i18n.silentFallbackWarn=r.silentFallbackWarn,t.i18n.pluralizationRules=r.pluralizationRules,t.i18n.preserveDirectiveContent=r.preserveDirectiveContent),t.__i18n)try{var n=t.i18n&&t.i18n.messages?t.i18n.messages:{};t.__i18n.forEach((function(t){n=D(n,JSON.parse(t))})),t.i18n.messages=n}catch(t){}var i=t.i18n.sharedMessages;i&&O(i)&&(t.i18n.messages=D(t.i18n.messages,i)),this._i18n=new dt(t.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===t.i18n.sync||t.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),r&&r.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof dt?this._i18n=this.$root.$i18n:t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof dt&&(this._i18n=t.parent.$i18n)},beforeMount:function(){var t=this.$options;t.i18n=t.i18n||(t.__i18n?{}:null),t.i18n?(t.i18n instanceof dt||O(t.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof dt||t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof dt)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:function(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)},beforeDestroy:function(){if(this._i18n){var t=this;this.$nextTick((function(){t._subscribing&&(t._i18n.unsubscribeDataChanging(t),delete t._subscribing),t._i18nWatcher&&(t._i18nWatcher(),t._i18n.destroyVM(),delete t._i18nWatcher),t._localeWatcher&&(t._localeWatcher(),delete t._localeWatcher)}))}}},U={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(t,e){var r=e.data,n=e.parent,i=e.props,o=e.slots,a=n.$i18n;if(a){var s=i.path,c=i.locale,u=i.places,l=o(),p=a.i(s,c,function(t){var e;for(e in t)if("default"!==e)return!1;return Boolean(e)}(l)||u?function(t,e){var r=e?function(t){return Array.isArray(t)?t.reduce($,{}):Object.assign({},t)}(e):{};if(!t)return r;var n=(t=t.filter((function(t){return t.tag||""!==t.text.trim()}))).every(V);return t.reduce(n?F:$,r)}(l.default,u):l),d=i.tag&&!0!==i.tag||!1===i.tag?i.tag:"span";return d?t(d,r,p):p}}};function F(t,e){return e.data&&e.data.attrs&&e.data.attrs.place&&(t[e.data.attrs.place]=e),t}function $(t,e,r){return t[r]=e,t}function V(t){return Boolean(t.data&&t.data.attrs&&t.data.attrs.place)}var z,q={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(t,e){var r=e.props,n=e.parent,i=e.data,o=n.$i18n;if(!o)return null;var a=null,s=null;S(r.format)?a=r.format:x(r.format)&&(r.format.key&&(a=r.format.key),s=Object.keys(r.format).reduce((function(t,e){var n;return A(y,e)?Object.assign({},t,((n={})[e]=r.format[e],n)):t}),null));var c=r.locale||o.locale,u=o._ntp(r.value,c,a,s),l=u.map((function(t,e){var r,n=i.scopedSlots&&i.scopedSlots[t.type];return n?n(((r={})[t.type]=t.value,r.index=e,r.parts=u,r)):t.value})),p=r.tag&&!0!==r.tag||!1===r.tag?r.tag:"span";return p?t(p,{attrs:i.attrs,class:i.class,staticClass:i.staticClass},l):l}};function B(t,e,r){H(t,r)&&Q(t,e,r)}function G(t,e,r,n){if(H(t,r)){var i=r.context.$i18n;(function(t,e){var r=e.context;return t._locale===r.$i18n.locale})(t,r)&&P(e.value,e.oldValue)&&P(t._localeMessage,i.getLocaleMessage(i.locale))||Q(t,e,r)}}function W(t,e,r,n){if(r.context){var i=r.context.$i18n||{};e.modifiers.preserve||i.preserveDirectiveContent||(t.textContent=""),t._vt=void 0,delete t._vt,t._locale=void 0,delete t._locale,t._localeMessage=void 0,delete t._localeMessage}else _("Vue instance does not exists in VNode context")}function H(t,e){var r=e.context;return r?!!r.$i18n||(_("VueI18n instance does not exists in Vue instance"),!1):(_("Vue instance does not exists in VNode context"),!1)}function Q(t,e,r){var n,i,o=function(t){var e,r,n,i;return S(t)?e=t:O(t)&&(e=t.path,r=t.locale,n=t.args,i=t.choice),{path:e,locale:r,args:n,choice:i}}(e.value),a=o.path,s=o.locale,c=o.args,u=o.choice;if(a||s||c)if(a){var l=r.context;t._vt=t.textContent=null!=u?(n=l.$i18n).tc.apply(n,[a,u].concat(Y(s,c))):(i=l.$i18n).t.apply(i,[a].concat(Y(s,c))),t._locale=l.$i18n.locale,t._localeMessage=l.$i18n.getLocaleMessage(l.$i18n.locale)}else _("`path` is required in v-t directive");else _("value type not supported")}function Y(t,e){var r=[];return t&&r.push(t),e&&(Array.isArray(e)||O(e))&&r.push(e),r}function K(t){K.installed=!0,(z=t).version&&Number(z.version.split(".")[0]),function(t){t.prototype.hasOwnProperty("$i18n")||Object.defineProperty(t.prototype,"$i18n",{get:function(){return this._i18n}}),t.prototype.$t=function(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];var n=this.$i18n;return n._t.apply(n,[t,n.locale,n._getMessages(),this].concat(e))},t.prototype.$tc=function(t,e){for(var r=[],n=arguments.length-2;n-- >0;)r[n]=arguments[n+2];var i=this.$i18n;return i._tc.apply(i,[t,i.locale,i._getMessages(),this,e].concat(r))},t.prototype.$te=function(t,e){var r=this.$i18n;return r._te(t,r.locale,r._getMessages(),e)},t.prototype.$d=function(t){for(var e,r=[],n=arguments.length-1;n-- >0;)r[n]=arguments[n+1];return(e=this.$i18n).d.apply(e,[t].concat(r))},t.prototype.$n=function(t){for(var e,r=[],n=arguments.length-1;n-- >0;)r[n]=arguments[n+1];return(e=this.$i18n).n.apply(e,[t].concat(r))}}(z),z.mixin(L),z.directive("t",{bind:B,update:G,unbind:W}),z.component(U.name,U),z.component(q.name,q),z.config.optionMergeStrategies.i18n=function(t,e){return void 0===e?t:e}}var J=function(){this._caches=Object.create(null)};J.prototype.interpolate=function(t,e){if(!e)return[t];var r=this._caches[t];return r||(r=function(t){var e=[],r=0,n="";for(;r0)p--,l=4,d[0]();else{if(p=0,void 0===r)return!1;if(!1===(r=nt(r)))return!1;d[1]()}};null!==l;)if(u++,"\\"!==(e=t[u])||!f()){if(i=rt(e),8===(o=(s=tt[l])[i]||s.else||8))return;if(l=o[0],(a=d[o[1]])&&(n=void 0===(n=o[2])?e:n,!1===a()))return;if(7===l)return c}}(t))&&(this._cache[t]=e),e||[]},it.prototype.getPathValue=function(t,e){if(!x(t))return null;var r=this.parsePath(e);if(0===r.length)return null;for(var n=r.length,i=t,o=0;o/,st=/(?:@(?:\.[a-z]+)?:(?:[\w\-_|.]+|\([\w\-_|.]+\)))/g,ct=/^@(?:\.([a-z]+))?:/,ut=/[()]/g,lt={upper:function(t){return t.toLocaleUpperCase()},lower:function(t){return t.toLocaleLowerCase()},capitalize:function(t){return""+t.charAt(0).toLocaleUpperCase()+t.substr(1)}},pt=new J,dt=function(t){var e=this;void 0===t&&(t={}),!z&&"undefined"!=typeof window&&window.Vue&&K(window.Vue);var r=t.locale||"en-US",n=!1!==t.fallbackLocale&&(t.fallbackLocale||"en-US"),i=t.messages||{},o=t.dateTimeFormats||{},a=t.numberFormats||{};this._vm=null,this._formatter=t.formatter||pt,this._modifiers=t.modifiers||{},this._missing=t.missing||null,this._root=t.root||null,this._sync=void 0===t.sync||!!t.sync,this._fallbackRoot=void 0===t.fallbackRoot||!!t.fallbackRoot,this._formatFallbackMessages=void 0!==t.formatFallbackMessages&&!!t.formatFallbackMessages,this._silentTranslationWarn=void 0!==t.silentTranslationWarn&&t.silentTranslationWarn,this._silentFallbackWarn=void 0!==t.silentFallbackWarn&&!!t.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new it,this._dataListeners=new Set,this._componentInstanceCreatedListener=t.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void 0!==t.preserveDirectiveContent&&!!t.preserveDirectiveContent,this.pluralizationRules=t.pluralizationRules||{},this._warnHtmlInMessage=t.warnHtmlInMessage||"off",this._postTranslation=t.postTranslation||null,this._escapeParameterHtml=t.escapeParameterHtml||!1,this.getChoiceIndex=function(t,r){var n=Object.getPrototypeOf(e);if(n&&n.getChoiceIndex)return n.getChoiceIndex.call(e,t,r);return e.locale in e.pluralizationRules?e.pluralizationRules[e.locale].apply(e,[t,r]):function(t,e){return t=Math.abs(t),2===e?t?t>1?1:0:1:t?Math.min(t,2):0}(t,r)},this._exist=function(t,r){return!(!t||!r||T(e._path.getPathValue(t,r))&&!t[r])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(i).forEach((function(t){e._checkLocaleMessage(t,e._warnHtmlInMessage,i[t])})),this._initVM({locale:r,fallbackLocale:n,messages:i,dateTimeFormats:o,numberFormats:a})},ft={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0}};dt.prototype._checkLocaleMessage=function(t,e,r){var n=function(t,e,r,i){if(O(r))Object.keys(r).forEach((function(o){var a=r[o];O(a)?(i.push(o),i.push("."),n(t,e,a,i),i.pop(),i.pop()):(i.push(o),n(t,e,a,i),i.pop())}));else if(w(r))r.forEach((function(r,o){O(r)?(i.push("["+o+"]"),i.push("."),n(t,e,r,i),i.pop(),i.pop()):(i.push("["+o+"]"),n(t,e,r,i),i.pop())}));else if(S(r)){if(at.test(r)){var o="Detected HTML in message '"+r+"' of keypath '"+i.join("")+"' at '"+e+"'. Consider component interpolation with '' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===t?_(o):"error"===t&&function(t,e){"undefined"!=typeof console&&(console.error("[vue-i18n] "+t),e&&console.error(e.stack))}(o)}}};n(e,t,r,[])},dt.prototype._initVM=function(t){var e=z.config.silent;z.config.silent=!0,this._vm=new z({data:t}),z.config.silent=e},dt.prototype.destroyVM=function(){this._vm.$destroy()},dt.prototype.subscribeDataChanging=function(t){this._dataListeners.add(t)},dt.prototype.unsubscribeDataChanging=function(t){!function(t,e){if(t.delete(e));}(this._dataListeners,t)},dt.prototype.watchI18nData=function(){var t=this;return this._vm.$watch("$data",(function(){t._dataListeners.forEach((function(t){z.nextTick((function(){t&&t.$forceUpdate()}))}))}),{deep:!0})},dt.prototype.watchLocale=function(){if(!this._sync||!this._root)return null;var t=this._vm;return this._root.$i18n.vm.$watch("locale",(function(e){t.$set(t,"locale",e),t.$forceUpdate()}),{immediate:!0})},dt.prototype.onComponentInstanceCreated=function(t){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(t,this)},ft.vm.get=function(){return this._vm},ft.messages.get=function(){return I(this._getMessages())},ft.dateTimeFormats.get=function(){return I(this._getDateTimeFormats())},ft.numberFormats.get=function(){return I(this._getNumberFormats())},ft.availableLocales.get=function(){return Object.keys(this.messages).sort()},ft.locale.get=function(){return this._vm.locale},ft.locale.set=function(t){this._vm.$set(this._vm,"locale",t)},ft.fallbackLocale.get=function(){return this._vm.fallbackLocale},ft.fallbackLocale.set=function(t){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",t)},ft.formatFallbackMessages.get=function(){return this._formatFallbackMessages},ft.formatFallbackMessages.set=function(t){this._formatFallbackMessages=t},ft.missing.get=function(){return this._missing},ft.missing.set=function(t){this._missing=t},ft.formatter.get=function(){return this._formatter},ft.formatter.set=function(t){this._formatter=t},ft.silentTranslationWarn.get=function(){return this._silentTranslationWarn},ft.silentTranslationWarn.set=function(t){this._silentTranslationWarn=t},ft.silentFallbackWarn.get=function(){return this._silentFallbackWarn},ft.silentFallbackWarn.set=function(t){this._silentFallbackWarn=t},ft.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},ft.preserveDirectiveContent.set=function(t){this._preserveDirectiveContent=t},ft.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},ft.warnHtmlInMessage.set=function(t){var e=this,r=this._warnHtmlInMessage;if(this._warnHtmlInMessage=t,r!==t&&("warn"===t||"error"===t)){var n=this._getMessages();Object.keys(n).forEach((function(t){e._checkLocaleMessage(t,e._warnHtmlInMessage,n[t])}))}},ft.postTranslation.get=function(){return this._postTranslation},ft.postTranslation.set=function(t){this._postTranslation=t},dt.prototype._getMessages=function(){return this._vm.messages},dt.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},dt.prototype._getNumberFormats=function(){return this._vm.numberFormats},dt.prototype._warnDefault=function(t,e,r,n,i,o){if(!T(r))return r;if(this._missing){var a=this._missing.apply(null,[t,e,n,i]);if(S(a))return a}if(this._formatFallbackMessages){var s=C.apply(void 0,i);return this._render(e,o,s.params,e)}return e},dt.prototype._isFallbackRoot=function(t){return!t&&!T(this._root)&&this._fallbackRoot},dt.prototype._isSilentFallbackWarn=function(t){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(t):this._silentFallbackWarn},dt.prototype._isSilentFallback=function(t,e){return this._isSilentFallbackWarn(e)&&(this._isFallbackRoot()||t!==this.fallbackLocale)},dt.prototype._isSilentTranslationWarn=function(t){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(t):this._silentTranslationWarn},dt.prototype._interpolate=function(t,e,r,n,i,o,a){if(!e)return null;var s,c=this._path.getPathValue(e,r);if(w(c)||O(c))return c;if(T(c)){if(!O(e))return null;if(!S(s=e[r])&&!j(s))return null}else{if(!S(c)&&!j(c))return null;s=c}return S(s)&&(s.indexOf("@:")>=0||s.indexOf("@.")>=0)&&(s=this._link(t,e,s,n,"raw",o,a)),this._render(s,i,o,r)},dt.prototype._link=function(t,e,r,n,i,o,a){var s=r,c=s.match(st);for(var u in c)if(c.hasOwnProperty(u)){var l=c[u],p=l.match(ct),d=p[0],f=p[1],h=l.replace(d,"").replace(ut,"");if(A(a,h))return s;a.push(h);var m=this._interpolate(t,e,h,n,"raw"===i?"string":i,"raw"===i?void 0:o,a);if(this._isFallbackRoot(m)){if(!this._root)throw Error("unexpected error");var v=this._root.$i18n;m=v._translate(v._getMessages(),v.locale,v.fallbackLocale,h,n,i,o)}m=this._warnDefault(t,h,m,n,w(o)?o:[o],i),this._modifiers.hasOwnProperty(f)?m=this._modifiers[f](m):lt.hasOwnProperty(f)&&(m=lt[f](m)),a.pop(),s=m?s.replace(l,m):s}return s},dt.prototype._createMessageContext=function(t){var e=w(t)?t:[],r=x(t)?t:{};return{list:function(t){return e[t]},named:function(t){return r[t]}}},dt.prototype._render=function(t,e,r,n){if(j(t))return t(this._createMessageContext(r));var i=this._formatter.interpolate(t,r,n);return i||(i=pt.interpolate(t,r,n)),"string"!==e||S(i)?i:i.join("")},dt.prototype._appendItemToChain=function(t,e,r){var n=!1;return A(t,e)||(n=!0,e&&(n="!"!==e[e.length-1],e=e.replace(/!/g,""),t.push(e),r&&r[e]&&(n=r[e]))),n},dt.prototype._appendLocaleToChain=function(t,e,r){var n,i=e.split("-");do{var o=i.join("-");n=this._appendItemToChain(t,o,r),i.splice(-1,1)}while(i.length&&!0===n);return n},dt.prototype._appendBlockToChain=function(t,e,r){for(var n=!0,i=0;i0;)o[a]=arguments[a+4];if(!t)return"";var s=C.apply(void 0,o);this._escapeParameterHtml&&(s.params=M(s.params));var c=s.locale||e,u=this._translate(r,c,this.fallbackLocale,t,n,"string",s.params);if(this._isFallbackRoot(u)){if(!this._root)throw Error("unexpected error");return(i=this._root).$t.apply(i,[t].concat(o))}return u=this._warnDefault(c,t,u,n,o,"string"),this._postTranslation&&null!=u&&(u=this._postTranslation(u,t)),u},dt.prototype.t=function(t){for(var e,r=[],n=arguments.length-1;n-- >0;)r[n]=arguments[n+1];return(e=this)._t.apply(e,[t,this.locale,this._getMessages(),null].concat(r))},dt.prototype._i=function(t,e,r,n,i){var o=this._translate(r,e,this.fallbackLocale,t,n,"raw",i);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(t,e,i)}return this._warnDefault(e,t,o,n,[i],"raw")},dt.prototype.i=function(t,e,r){return t?(S(e)||(e=this.locale),this._i(t,e,this._getMessages(),null,r)):""},dt.prototype._tc=function(t,e,r,n,i){for(var o,a=[],s=arguments.length-5;s-- >0;)a[s]=arguments[s+5];if(!t)return"";void 0===i&&(i=1);var c={count:i,n:i},u=C.apply(void 0,a);return u.params=Object.assign(c,u.params),a=null===u.locale?[u.params]:[u.locale,u.params],this.fetchChoice((o=this)._t.apply(o,[t,e,r,n].concat(a)),i)},dt.prototype.fetchChoice=function(t,e){if(!t||!S(t))return null;var r=t.split("|");return r[e=this.getChoiceIndex(e,r.length)]?r[e].trim():t},dt.prototype.tc=function(t,e){for(var r,n=[],i=arguments.length-2;i-- >0;)n[i]=arguments[i+2];return(r=this)._tc.apply(r,[t,this.locale,this._getMessages(),null,e].concat(n))},dt.prototype._te=function(t,e,r){for(var n=[],i=arguments.length-3;i-- >0;)n[i]=arguments[i+3];var o=C.apply(void 0,n).locale||e;return this._exist(r[o],t)},dt.prototype.te=function(t,e){return this._te(t,this.locale,this._getMessages(),e)},dt.prototype.getLocaleMessage=function(t){return I(this._vm.messages[t]||{})},dt.prototype.setLocaleMessage=function(t,e){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(t,this._warnHtmlInMessage,e),this._vm.$set(this._vm.messages,t,e)},dt.prototype.mergeLocaleMessage=function(t,e){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(t,this._warnHtmlInMessage,e),this._vm.$set(this._vm.messages,t,D(void 0!==this._vm.messages[t]&&Object.keys(this._vm.messages[t]).length?this._vm.messages[t]:{},e))},dt.prototype.getDateTimeFormat=function(t){return I(this._vm.dateTimeFormats[t]||{})},dt.prototype.setDateTimeFormat=function(t,e){this._vm.$set(this._vm.dateTimeFormats,t,e),this._clearDateTimeFormat(t,e)},dt.prototype.mergeDateTimeFormat=function(t,e){this._vm.$set(this._vm.dateTimeFormats,t,D(this._vm.dateTimeFormats[t]||{},e)),this._clearDateTimeFormat(t,e)},dt.prototype._clearDateTimeFormat=function(t,e){for(var r in e){var n=t+"__"+r;this._dateTimeFormatters.hasOwnProperty(n)&&delete this._dateTimeFormatters[n]}},dt.prototype._localizeDateTime=function(t,e,r,n,i){for(var o=e,a=n[o],s=this._getLocaleChain(e,r),c=0;c0;)e[r]=arguments[r+1];var n=this.locale,i=null;return 1===e.length?S(e[0])?i=e[0]:x(e[0])&&(e[0].locale&&(n=e[0].locale),e[0].key&&(i=e[0].key)):2===e.length&&(S(e[0])&&(i=e[0]),S(e[1])&&(n=e[1])),this._d(t,n,i)},dt.prototype.getNumberFormat=function(t){return I(this._vm.numberFormats[t]||{})},dt.prototype.setNumberFormat=function(t,e){this._vm.$set(this._vm.numberFormats,t,e),this._clearNumberFormat(t,e)},dt.prototype.mergeNumberFormat=function(t,e){this._vm.$set(this._vm.numberFormats,t,D(this._vm.numberFormats[t]||{},e)),this._clearNumberFormat(t,e)},dt.prototype._clearNumberFormat=function(t,e){for(var r in e){var n=t+"__"+r;this._numberFormatters.hasOwnProperty(n)&&delete this._numberFormatters[n]}},dt.prototype._getNumberFormatter=function(t,e,r,n,i,o){for(var a=e,s=n[a],c=this._getLocaleChain(e,r),u=0;u0;)e[r]=arguments[r+1];var n=this.locale,i=null,o=null;return 1===e.length?S(e[0])?i=e[0]:x(e[0])&&(e[0].locale&&(n=e[0].locale),e[0].key&&(i=e[0].key),o=Object.keys(e[0]).reduce((function(t,r){var n;return A(y,r)?Object.assign({},t,((n={})[r]=e[0][r],n)):t}),null)):2===e.length&&(S(e[0])&&(i=e[0]),S(e[1])&&(n=e[1])),this._n(t,n,i,o)},dt.prototype._ntp=function(t,e,r,n){if(!dt.availabilities.numberFormat)return[];if(!r)return(n?new Intl.NumberFormat(e,n):new Intl.NumberFormat(e)).formatToParts(t);var i=this._getNumberFormatter(t,e,this.fallbackLocale,this._getNumberFormats(),r,n),o=i&&i.formatToParts(t);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(t,e,r,n)}return o||[]},Object.defineProperties(dt.prototype,ft),Object.defineProperty(dt,"availabilities",{get:function(){if(!ot){var t="undefined"!=typeof Intl;ot={dateTimeFormat:t&&void 0!==Intl.DateTimeFormat,numberFormat:t&&void 0!==Intl.NumberFormat}}return ot}}),dt.install=K,dt.version="8.24.4";var ht=dt;o.default.use(ht);var mt=new ht({locale:"en_US",fallbackLocale:"en_US",messages:function(){const t=r("4b3b"),e={};return t.keys().forEach(r=>{const n=r.match(/([A-Za-z0-9-_]+)\./i);if(n&&n.length>1){const i=n[1];e[i]=t(r)}}),e}()});const vt="production",gt="https://registration.unraid.net",bt="https://unraid.net/preflight",yt=Object({VUE_APP_REGWIZ_URL:"https://registration.unraid.net",VUE_APP_PURCHASE_URL:"https://unraid.net/preflight",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_DEV_GRAPH_URL||null,_t=(Object({VUE_APP_REGWIZ_URL:"https://registration.unraid.net",VUE_APP_PURCHASE_URL:"https://unraid.net/preflight",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_DEV_APIKEY,{url:gt,name:"UnraidRegistrationWizard",width:600,height:810}),wt={errorMessage:"",loading:!0,submissionFrom:null,darkMode:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,darkTheme:{alpha:"#1c1b1b",beta:"#f2f2f2",gamma:"#999999"},lightTheme:{alpha:"#f2f2f2",beta:"#1c1b1b",gamma:"#999999"},csrf:null,isLaunchpadOpen:!1,triggerUPC:!1,ts:null,deviceCount:0,flashproduct:null,flashvendor:null,guid:"",regGuid:"",keyfile:null,servername:null,serverdesc:null,wanip:sessionStorage.getItem("upc_wanip")||null,site:null,state:"",reggen:0,registered:null,internalip:null,internalport:null,protocol:null,license:"",expiretime:null,regWizTime:null,rawServerState:null,plgPath:null,guidRegistered:!1,guidValid:null,replaceable:null,id:null,isPopUpOpen:!1,popUpWindow:"",regAtOpen:null,forumaccount:null,userEmail:"",username:"",avatar:"",userPassword:"",apikey:"",ipsValidated:!1,accountAction:null,keyServerAction:"",licenseAction:null,receivedSuccessNewServerState:null,purchaseWindow:{url:new URL(bt),name:"UnraidPurchaseLicense",width:1198,height:900,sendSessionToPopUp:!0},wizardWindow:_t,signInPayload:{..._t,url:_t.url+"/#/sign-in"},signUpPayload:{..._t,url:_t.url+"/#/sign-up"},signOutPayload:{..._t,url:_t.url+"/#/sign-out",width:600,height:500},extendTrialPayload:{..._t,url:_t.url+"/#/extend-trial"},recoverKeyPayload:{..._t,url:_t.url+"/#/recover-key"},replaceKeyPayload:{..._t,url:_t.url+"/#/replace-key"},troubleshootPayload:{..._t,url:_t.url+"/#/troubleshoot"},locale:"en_US",messages:null,graphOnline:!1,myServers:[],myServersLoading:!1,myServersError:null,myServersEnv:null,sentryEnabled:!1,hideMyServers:!1,osVersion:null,plgVersion:null,hasRemoteApikey:null,configValid:null,configError:null,hasUnraidNetSSL:!1},xt="GUID_NOT_RECEIVED",Et=!(!window.opener||window.opener===window),St=Et?window.opener.parent:window.parent,kt=[bt,gt,"https://launchpad.unraid.test:8081","https://launchpad.unraid.test:6969","https://registration.unraid.net","https://registration-dev.unraid.net","https://unraid.net","https://staging.unraid.net","https://craft.unraid.test"],Ot=t=>{try{return[null,JSON.parse(t)]}catch(t){return[t]}},Tt={actions:[],humanReadable:"",heading:"",message:"",messageCenter:!1,error:!1,withKey:!1},jt={...Tt,humanReadable:mt.tc("stateData.ENOFLASH.humanReadable"),error:{heading:mt.tc("stateData.ENOFLASH.error.heading"),message:mt.tc("stateData.ENOFLASH.error.message"),signInToFix:!1}},Ct={statePhpPath:t=>`/plugins/${t.plgPath||"dynamix.unraid.net"}/include/state.php`,myServersCfgPath:t=>(t.plgPath||"Unraid.net")+"/myservers.cfg",requireGuidValidation:t=>!Et||t.guidRegistered,validApiKeyLength:t=>64===t.apikey.length,validApiKeyForUpc:t=>!!t.apikey&&t.apikey.startsWith("unupc_"),trialExtensionEligible:t=>!(t.reggen&&!(t.reggen<2)),signedOutWithKey:(t,e)=>!(!e.stateData.withKey||t.registered),stateData:(t,e)=>{switch(t.state){case"ENOKEYFILE":return{...Tt,actions:[t.registered?"signOut":"register"],humanReadable:mt.tc("stateData.ENOKEYFILE.humanReadable"),heading:t.registered?mt.tc("stateData.ENOKEYFILE.heading.registered"):mt.tc("stateData.ENOKEYFILE.heading.notRegistered"),message:t.registered?mt.tc("stateData.ENOKEYFILE.message.registered"):mt.tc("stateData.ENOKEYFILE.message.notRegistered"),messageCenter:!0};case"TRIAL":return{...Tt,actions:[t.registered?"signOut":"register",t.registered?"purchase":null,t.registered?"continueTrial":null],humanReadable:mt.tc("stateData.TRIAL.humanReadable"),heading:mt.tc("stateData.TRIAL.heading"),message:mt.tc("stateData.TRIAL.message"),withKey:!0};case"EEXPIRED":return{...Tt,actions:[t.registered?"signOut":"register",t.registered&&e.trialExtensionEligible?"extend":null,t.registered?"purchase":null],humanReadable:mt.tc("stateData.EEXPIRED.humanReadable"),error:{heading:mt.tc("stateData.EEXPIRED.heading"),message:e.trialExtensionEligible?mt.tc("stateData.EEXPIRED.message.extensionEligible"):mt.tc("stateData.EEXPIRED.message.extensionNotEligible")},withKey:!0};case"BASIC":return{...Tt,actions:[t.registered?"signOut":"register",t.registered&&e.requireGuidValidation?"upgrade":null],humanReadable:mt.tc("stateData.BASIC.humanReadable"),heading:mt.tc("basicPlusPro.heading"),message:t.registered?t.guidRegistered?mt.tc("basicPlusPro.message.upgradeEligible"):"":mt.tc("basicPlusPro.message.registered"),messageCenter:!t.registered,withKey:!0};case"PLUS":return{...Tt,actions:[t.registered?"signOut":"register",t.registered&&e.requireGuidValidation?"upgrade":null],humanReadable:mt.tc("stateData.PLUS.humanReadable"),heading:mt.tc("basicPlusPro.heading"),message:t.registered?t.guidRegistered?mt.tc("basicPlusPro.message.upgradeEligible"):"":mt.tc("basicPlusPro.message.registered"),messageCenter:!t.registered,withKey:!0};case"PRO":return{...Tt,actions:[t.registered?"signOut":"register",t.registered?"close":null],humanReadable:mt.tc("stateData.PRO.humanReadable"),heading:mt.tc("basicPlusPro.heading"),message:t.registered?"":mt.tc("basicPlusPro.message.registered"),messageCenter:!t.registered,withKey:!0};case"EGUID":return{...Tt,actions:[t.registered?"signOut":"register",t.registered?"purchase":null,t.registered?"replace":null],humanReadable:mt.tc("stateData.EGUID.humanReadable"),error:{heading:mt.tc("stateData.EGUID.error.heading"),message:null===t.replaceable||t.replaceable?mt.tc("stateData.EGUID.error.message.replacementEligible"):`${mt.tc("stateData.EGUID.error.message.default")}
${mt.tc("stateData.EGUID.error.message.replacementIneligible")}`,signInToFix:!0}};case"EGUID1":return{...Tt,actions:[t.registered?"signOut":"register",t.registered?"purchase":null],humanReadable:mt.tc("stateData.EGUID1.humanReadable"),error:{heading:mt.tc("stateData.EGUID1.error.heading"),message:mt.tc("stateData.EGUID1.error.message"),signInToFix:!0}};case"ENOKEYFILE2":return{...Tt,actions:[t.registered?"signOut":"register",t.registered?"purchase":null,t.registered&&e.requireGuidValidation?"recover":null],humanReadable:mt.tc("stateData.ENOKEYFILE2.humanReadable"),error:{heading:mt.tc("stateData.ENOKEYFILE2.error.heading"),message:mt.tc("stateData.ENOKEYFILE2.error.message"),signInToFix:!0}};case"ETRIAL":return{...Tt,actions:[t.registered?"signOut":"register",t.registered&&e.requireGuidValidation?"purchase":null],humanReadable:mt.tc("stateData.ETRIAL.humanReadable"),error:{heading:mt.tc("stateData.ETRIAL.error.heading"),message:mt.tc("stateData.ETRIAL.error.message"),signInToFix:!0}};case"ENOKEYFILE1":return{...Tt,humanReadable:mt.tc("stateData.ENOKEYFILE1.humanReadable"),error:{heading:mt.tc("stateData.ENOKEYFILE1.error.heading"),message:mt.tc("stateData.ENOKEYFILE1.error.message"),signInToFix:!1}};case"ENOFLASH":case"ENOFLASH1":case"ENOFLASH2":case"ENOFLASH3":case"ENOFLASH4":case"ENOFLASH5":case"ENOFLASH6":case"ENOFLASH7":return jt;case"EBLACKLISTED":return{...Tt,humanReadable:mt.tc("stateData.EBLACKLISTED.humanReadable"),error:{heading:mt.tc("stateData.EBLACKLISTED.error.heading"),message:mt.tc("stateData.EBLACKLISTED.error.message"),signInToFix:!1}};case"EBLACKLISTED1":return{...Tt,humanReadable:mt.tc("stateData.EBLACKLISTED1.humanReadable"),error:{heading:mt.tc("stateData.EBLACKLISTED1.error.heading"),message:mt.tc("stateData.EBLACKLISTED1.error.message"),signInToFix:!1}};case"EBLACKLISTED2":return{...Tt,humanReadable:mt.tc("stateData.EBLACKLISTED2.humanReadable"),error:{heading:mt.tc("stateData.EBLACKLISTED2.error.heading"),message:mt.tc("stateData.EBLACKLISTED2.error.message"),signInToFix:!1}};case"ENOCONN":return{...Tt,humanReadable:mt.tc("stateData.ENOCONN.humanReadable"),error:{heading:mt.tc("stateData.ENOCONN.error.heading"),message:mt.tc("stateData.ENOCONN.error.message"),signInToFix:!1}};case"STALE":return{...Tt,humanReadable:mt.tc("stateData.STALE.humanReadable"),error:{heading:mt.tc("stateData.STALE.error.heading"),message:mt.tc("stateData.STALE.error.message"),signInToFix:!1}};default:return{...Tt}}},stateDataKeyActions:(t,e)=>!!(e.stateData.actions.includes("purchase")||e.stateData.actions.includes("upgrade")||e.stateData.actions.includes("recover")||e.stateData.actions.includes("replace")||e.stateData.actions.includes("extend")),keyTypeForPurchase:t=>{switch(t.state){case"BASIC":return"Basic";case"PLUS":return"Plus";case"PRO":return"Pro";default:return"Trial"}},isRemoteAccess:t=>t.site&&t.site.includes("www.")&&t.site.includes("unraid.net"),noRemoteApikeyRegisteredWithPlg:t=>!(!t.registered||t.hideMyServers||"boolean"!=typeof t.hasRemoteApikey||t.hasRemoteApikey),errorTooManyDisks:t=>!(null===t.configValid||t.configValid||"INVALID"!==t.configError),errorCertRequiresSignIn:(t,e)=>!(!(t.osVersion&&t.osVersion.includes("6.10.")&&t.hasUnraidNetSSL)||t.registered||e.stateData.error||"ENOKEYFILE"===t.state),server:(t,e)=>({guid:t.guid||xt,regGuid:t.regGuid,guidRegistered:t.guidRegistered||t.regWizTime,guidValid:t.guidValid,hasRemoteApikey:t.hasRemoteApikey,regWizTime:t.regWizTime,keyfile:t.keyfile,keyTypeForPurchase:e.keyTypeForPurchase,flashproduct:t.flashproduct,flashvendor:t.flashvendor,servername:t.servername,serverdesc:t.serverdesc,internalip:t.internalip,site:t.site,state:t.state,internalport:t.internalport,protocol:t.protocol,registered:t.registered,reggen:t.reggen,userEmail:t.userEmail,expiretime:t.expiretime,ts:t.ts,locale:t.locale,deviceCount:t.deviceCount,sentryEnabled:t.sentryEnabled,plgPath:t.plgPath,plgVersion:t.plgVersion,osVersion:t.osVersion})};var It=r("9ea6");const At=Object(It.redactSecrets)("[REDACTED]",{keys:["guid"],values:[]}),Rt={...Object.fromEntries(Object.entries(console).map(([t,e])=>{if("debug"===t)return[t,()=>{}];if("function"==typeof method){const r=e.bind(console);return[t,(t,...e)=>e.length>=1?r(t,...e.map(t=>At.map(t))):r(t)]}return[t,e]}))},Nt={SET_APP_ERROR_MESSAGE(t,e){t.errorMessage=e,t.errorMessage&&Rt.error("[APP_ERROR]: %s",t.errorMessage)},SET_LOADING_STATE(t,e){Rt.debug("[SET_LOADING_STATE]: %o",e),t.loading=e},SET_IS_LAUNCHPAD_OPEN(t,e){Rt.debug("[SET_IS_LAUNCHPAD_OPEN]: %o",e),t.isLaunchpadOpen=e},SET_STATE(t,e){Rt.debug("[SET_STATE]: %o",e),t.state=e},CHANGE_GUID_REGISTERED(t,e){Rt.debug("[CHANGE_GUID_REGISTERED]: %o",e),t.guidRegistered=e},CHANGE_GUID_VALID(t,e){Rt.debug("[CHANGE_GUID_VALID]: %o",e),t.guidValid=e},CHANGE_REPLACEABLE(t,e){Rt.debug("[CHANGE_REPLACEABLE]: %o",e),t.replaceable=e},CHANGE_POP_UP_WINDOW(t,e){Rt.debug("[CHANGE_POP_UP_WINDOW]: %o",e),t.popUpWindow=e,t.isPopUpOpen=!!e,t.regAtOpen=null},STATE_AT_OPEN(t,e){t.regAtOpen=e},MUTATE_KEYSERVER_RESPONSE(t,e){Rt.debug("[MUTATE_KEYSERVER_RESPONSE]: %o",e),e.license&&(t.license=e.license),e.trial&&(t.keyfile=e.trial),e.apikey&&(t.apikey=e.apikey),e.validated&&(t.ipsValidated=e.validated),e.email&&(t.userEmail=e.email),e.password&&(t.userPassword=e.password),(e.action||e.keyServerAction)&&(t.keyServerAction=e.action||e.keyServerAction),e.username&&(t.username=e.username),e.avatar&&(t.avatar=e.avatar)},SET_TRIAL(t,e){Rt.debug("[SET_TRIAL]: %o",e),t.license=e.license,t.keyfile=e.trial,t.keyServerAction="extendTrial"},SET_USER_EMAIL(t,e){Rt.debug("[SET_USER_EMAIL]: %s",e),t.userEmail=e},SET_FULL_SERVER_STATE(t,e){if(Rt.debug("[SET_FULL_SERVER_STATE] start %o",e),!e)return Rt.error("[SET_FULL_SERVER_STATE] No state data…🤬");let r=e;return(r.registered||0===r.registered)&&(r.registered=Boolean(Number(r.registered))),(r.hasRemoteApikey||0===r.hasRemoteApikey)&&(r.hasRemoteApikey=Boolean(Number(r.hasRemoteApikey))),r.email&&(r={...r,userEmail:r.email},delete r.email),Rt.debug("[SET_FULL_SERVER_STATE] ✨ mutateData ✨ %o",{state:t,mutateData:r}),t=Object.assign(t,r),!0},SET_RAW_SERVER_STATE:(t,e)=>Et?(t.rawServerState=e,Rt.debug("[SET_RAW_SERVER_STATE] %o",e)):Rt.debug("[SET_RAW_SERVER_STATE] ❌ skipped not needed in non-pop-up ❌ %o",{CAN_POST_MESSAGE:Et}),SIGN_OUT(t){Rt.debug("[SIGN_OUT]: %s","✨"),t.registered=!1,t.license="",t.keyfile="",t.apikey="",t.ipsValidated=!1,t.userEmail="",t.userPassword="",t.username="",t.avatar=""},SUBMISSION_FROM(t,e){Rt.debug("[SUBMISSION_FROM]: %s",e),t.submissionFrom=e},SET_WANIP(t,e){Rt.debug("[SET_WANIP]: %s",e),t.wanip=e,sessionStorage.setItem("upc_wanip",e)},SET_SERVERDESC(t,e){Rt.debug("[SET_SERVERDESC]: %s",e),t.serverdesc=e},SET_SITE(t,e){Rt.debug("[SET_SITE]: %s",e),t.site=e},SET_CSRF(t,e){Rt.debug("[SET_CSRF]: %s",e),t.csrf=e},LICENSE_PINGBACK(t,e){Rt.debug("[LICENSE_PINGBACK]: %o",e),t.licenseAction=e},ACCOUNT_PINGBACK(t,e){Rt.debug("[ACCOUNT_PINGBACK]: %o",e),t.accountAction=e},RECEIVED_SUCCESS_NEW_SERVERSTATE(t,e){Rt.debug("[RECEIVED_SUCCESS_NEW_SERVERSTATE]: %o",e),t.receivedSuccessNewServerState=e},SET_EXPIRE_TIME(t,e){Rt.debug("[SET_EXPIRE_TIME]: %s",e),t.expiretime=e},SET_REGWIZ_TIME(t,e){Rt.debug("[SET_REGWIZ_TIME]: %s",e),t.regWizTime=e},CHANGE_GUID_FORUMACCOUNT(t,e){Rt.debug("[CHANGE_GUID_FORUMACCOUNT]: %s",e),t.forumaccount=e},SET_LOCALE(t,e){Rt.debug("[SET_LOCALE]: %s",e),t.locale=e},LOCALE_MESSAGES(t,e){const[r,n]=Ot(decodeURIComponent(e));r?Rt.warn("[LOCALE_MESSAGES]: %o",r):(Rt.debug("[LOCALE_MESSAGES]: %o",n),t.messages=n)},SET_API_KEY(t,e){Rt.debug("[SET_API_KEY]: %s",e),t.apikey=e},SET_GRAPH_ONLINE(t,e){Rt.debug("[SET_GRAPH_ONLINE]: %o",e),t.graphOnline=e},SET_MY_SERVERS(t,e){Rt.debug("[SET_MY_SERVERS]: %o",e),t.myServers=[...e]},SET_MY_SERVERS_LOADING(t,e){Rt.debug("[SET_MY_SERVERS_LOADING]: %o",e),t.myServersLoading=e},SET_MY_SERVERS_ERROR(t,e){e?Rt.error("[myServersError]: %o",e):Rt.debug("[myServersError]",e),t.myServersError=e},SET_MY_SERVERS_ENV(t,e){Rt.debug("[SET_MY_SERVERS_ENV]: %o",e),t.myServersEnv=e},TRIGGER_UPC(t,e){Rt.debug("[TRIGGER_UPC]: %o",e),t.triggerUPC=e},SET_SENTRY_ENABLED(t,e){Rt.debug("[SET_SENTRY_ENABLED]: %o",e),t.sentryEnabled=e},SET_DARK_MODE(t,e){Rt.debug("[SET_DARK_MODE]: %o",e),t.darkMode=e},SET_HIDE_MY_SERVERS(t,e){Rt.debug("[SET_HIDE_MY_SERVERS]: %o",e),t.hideMyServers=!!e},SET_PLG_PATH:(t,e)=>"dynamix.my.servers"!==e?Rt.warn("[SET_PLG_PATH] value not allowed",e):(Rt.debug("[SET_PLG_PATH]: %o",e),t.plgPath=e,!0)};var Dt=function(){return(Dt=Object.assign||function(t){for(var e,r=1,n=arguments.length;r1&&void 0!==arguments[1]?arguments[1]:t.prototype.toString;t.prototype.toJSON=e,t.prototype.inspect=e,Lt.a&&(t.prototype[Lt.a]=e)}function Ft(t){return(Ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $t(t,e){for(var r,n=/\r\n|[\n\r]/g,i=1,o=e+1;(r=n.exec(t.body))&&r.index120){for(var d=Math.floor(c/80),f=c%80,h=[],m=0;m0||Mt(0,"line in locationOffset is 1-indexed and must be positive"),this.locationOffset.column>0||Mt(0,"column in locationOffset is 1-indexed and must be positive")};!function(t){"function"==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t.prototype,Symbol.toStringTag,{get:function(){return this.constructor.name}})}(Qt);var Yt=r("04b4"),Kt=Object.freeze({SOF:"",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function Jt(){return this.lastToken=this.token,this.token=this.lookahead()}function Xt(){var t=this.token;if(t.kind!==Kt.EOF)do{t=t.next||(t.next=ee(this,t))}while(t.kind===Kt.COMMENT);return t}function Zt(t,e,r,n,i,o,a){this.kind=t,this.start=e,this.end=r,this.line=n,this.column=i,this.value=a,this.prev=o,this.next=null}function te(t){return isNaN(t)?Kt.EOF:t<127?JSON.stringify(String.fromCharCode(t)):'"\\u'.concat(("00"+t.toString(16).toUpperCase()).slice(-4),'"')}function ee(t,e){var r=t.source,n=r.body,i=n.length,o=function(t,e,r){var n=t.length,i=e;for(;i=i)return new Zt(Kt.EOF,i,i,a,s,e);var c=n.charCodeAt(o);switch(c){case 33:return new Zt(Kt.BANG,o,o+1,a,s,e);case 35:return function(t,e,r,n,i){var o,a=t.body,s=e;do{o=a.charCodeAt(++s)}while(!isNaN(o)&&(o>31||9===o));return new Zt(Kt.COMMENT,e,s,r,n,i,a.slice(e+1,s))}(r,o,a,s,e);case 36:return new Zt(Kt.DOLLAR,o,o+1,a,s,e);case 38:return new Zt(Kt.AMP,o,o+1,a,s,e);case 40:return new Zt(Kt.PAREN_L,o,o+1,a,s,e);case 41:return new Zt(Kt.PAREN_R,o,o+1,a,s,e);case 46:if(46===n.charCodeAt(o+1)&&46===n.charCodeAt(o+2))return new Zt(Kt.SPREAD,o,o+3,a,s,e);break;case 58:return new Zt(Kt.COLON,o,o+1,a,s,e);case 61:return new Zt(Kt.EQUALS,o,o+1,a,s,e);case 64:return new Zt(Kt.AT,o,o+1,a,s,e);case 91:return new Zt(Kt.BRACKET_L,o,o+1,a,s,e);case 93:return new Zt(Kt.BRACKET_R,o,o+1,a,s,e);case 123:return new Zt(Kt.BRACE_L,o,o+1,a,s,e);case 124:return new Zt(Kt.PIPE,o,o+1,a,s,e);case 125:return new Zt(Kt.BRACE_R,o,o+1,a,s,e);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return function(t,e,r,n,i){var o=t.body,a=o.length,s=e+1,c=0;for(;s!==a&&!isNaN(c=o.charCodeAt(s))&&(95===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122);)++s;return new Zt(Kt.NAME,e,s,r,n,i,o.slice(e,s))}(r,o,a,s,e);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return function(t,e,r,n,i,o){var a=t.body,s=r,c=e,u=!1;if(45===s&&(s=a.charCodeAt(++c)),48===s){if((s=a.charCodeAt(++c))>=48&&s<=57)throw Wt(t,c,"Invalid number, unexpected digit after 0: ".concat(te(s),"."))}else c=re(t,c,s),s=a.charCodeAt(c);if(46===s&&(u=!0,s=a.charCodeAt(++c),c=re(t,c,s),s=a.charCodeAt(c)),69!==s&&101!==s||(u=!0,43!==(s=a.charCodeAt(++c))&&45!==s||(s=a.charCodeAt(++c)),c=re(t,c,s),s=a.charCodeAt(c)),46===s||69===s||101===s)throw Wt(t,c,"Invalid number, expected digit but got: ".concat(te(s),"."));return new Zt(u?Kt.FLOAT:Kt.INT,e,c,n,i,o,a.slice(e,c))}(r,o,c,a,s,e);case 34:return 34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)?function(t,e,r,n,i,o){var a=t.body,s=e+3,c=s,u=0,l="";for(;s=48&&o<=57){do{o=n.charCodeAt(++i)}while(o>=48&&o<=57);return i}throw Wt(t,i,"Invalid number, expected digit but got: ".concat(te(o),"."))}function ne(t,e,r,n){return ie(t)<<12|ie(e)<<8|ie(r)<<4|ie(n)}function ie(t){return t>=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:-1}Ut(Zt,(function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}));var oe=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});var ae=function(){function t(t,e){var r="string"==typeof t?new Qt(t):t;r instanceof Qt||Mt(0,"Must provide Source. Received: ".concat(Object(Pt.a)(r))),this._lexer=function(t,e){var r=new Zt(Kt.SOF,0,0,0,0,null);return{source:t,options:e,lastToken:r,token:r,line:1,lineStart:0,advance:Jt,lookahead:Xt}}(r),this._options=e||{}}var e=t.prototype;return e.parseName=function(){var t=this.expectToken(Kt.NAME);return{kind:Ht.a.NAME,value:t.value,loc:this.loc(t)}},e.parseDocument=function(){var t=this._lexer.token;return{kind:Ht.a.DOCUMENT,definitions:this.many(Kt.SOF,this.parseDefinition,Kt.EOF),loc:this.loc(t)}},e.parseDefinition=function(){if(this.peek(Kt.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(Kt.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},e.parseOperationDefinition=function(){var t=this._lexer.token;if(this.peek(Kt.BRACE_L))return{kind:Ht.a.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(t)};var e,r=this.parseOperationType();return this.peek(Kt.NAME)&&(e=this.parseName()),{kind:Ht.a.OPERATION_DEFINITION,operation:r,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},e.parseOperationType=function(){var t=this.expectToken(Kt.NAME);switch(t.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(t)},e.parseVariableDefinitions=function(){return this.optionalMany(Kt.PAREN_L,this.parseVariableDefinition,Kt.PAREN_R)},e.parseVariableDefinition=function(){var t=this._lexer.token;return{kind:Ht.a.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Kt.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Kt.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(t)}},e.parseVariable=function(){var t=this._lexer.token;return this.expectToken(Kt.DOLLAR),{kind:Ht.a.VARIABLE,name:this.parseName(),loc:this.loc(t)}},e.parseSelectionSet=function(){var t=this._lexer.token;return{kind:Ht.a.SELECTION_SET,selections:this.many(Kt.BRACE_L,this.parseSelection,Kt.BRACE_R),loc:this.loc(t)}},e.parseSelection=function(){return this.peek(Kt.SPREAD)?this.parseFragment():this.parseField()},e.parseField=function(){var t,e,r=this._lexer.token,n=this.parseName();return this.expectOptionalToken(Kt.COLON)?(t=n,e=this.parseName()):e=n,{kind:Ht.a.FIELD,alias:t,name:e,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Kt.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(r)}},e.parseArguments=function(t){var e=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(Kt.PAREN_L,e,Kt.PAREN_R)},e.parseArgument=function(){var t=this._lexer.token,e=this.parseName();return this.expectToken(Kt.COLON),{kind:Ht.a.ARGUMENT,name:e,value:this.parseValueLiteral(!1),loc:this.loc(t)}},e.parseConstArgument=function(){var t=this._lexer.token;return{kind:Ht.a.ARGUMENT,name:this.parseName(),value:(this.expectToken(Kt.COLON),this.parseValueLiteral(!0)),loc:this.loc(t)}},e.parseFragment=function(){var t=this._lexer.token;this.expectToken(Kt.SPREAD);var e=this.expectOptionalKeyword("on");return!e&&this.peek(Kt.NAME)?{kind:Ht.a.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(t)}:{kind:Ht.a.INLINE_FRAGMENT,typeCondition:e?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},e.parseFragmentDefinition=function(){var t=this._lexer.token;return this.expectKeyword("fragment"),this._options.experimentalFragmentVariables?{kind:Ht.a.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:Ht.a.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},e.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},e.parseValueLiteral=function(t){var e=this._lexer.token;switch(e.kind){case Kt.BRACKET_L:return this.parseList(t);case Kt.BRACE_L:return this.parseObject(t);case Kt.INT:return this._lexer.advance(),{kind:Ht.a.INT,value:e.value,loc:this.loc(e)};case Kt.FLOAT:return this._lexer.advance(),{kind:Ht.a.FLOAT,value:e.value,loc:this.loc(e)};case Kt.STRING:case Kt.BLOCK_STRING:return this.parseStringLiteral();case Kt.NAME:return"true"===e.value||"false"===e.value?(this._lexer.advance(),{kind:Ht.a.BOOLEAN,value:"true"===e.value,loc:this.loc(e)}):"null"===e.value?(this._lexer.advance(),{kind:Ht.a.NULL,loc:this.loc(e)}):(this._lexer.advance(),{kind:Ht.a.ENUM,value:e.value,loc:this.loc(e)});case Kt.DOLLAR:if(!t)return this.parseVariable()}throw this.unexpected()},e.parseStringLiteral=function(){var t=this._lexer.token;return this._lexer.advance(),{kind:Ht.a.STRING,value:t.value,block:t.kind===Kt.BLOCK_STRING,loc:this.loc(t)}},e.parseList=function(t){var e=this,r=this._lexer.token;return{kind:Ht.a.LIST,values:this.any(Kt.BRACKET_L,(function(){return e.parseValueLiteral(t)}),Kt.BRACKET_R),loc:this.loc(r)}},e.parseObject=function(t){var e=this,r=this._lexer.token;return{kind:Ht.a.OBJECT,fields:this.any(Kt.BRACE_L,(function(){return e.parseObjectField(t)}),Kt.BRACE_R),loc:this.loc(r)}},e.parseObjectField=function(t){var e=this._lexer.token,r=this.parseName();return this.expectToken(Kt.COLON),{kind:Ht.a.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t),loc:this.loc(e)}},e.parseDirectives=function(t){for(var e=[];this.peek(Kt.AT);)e.push(this.parseDirective(t));return e},e.parseDirective=function(t){var e=this._lexer.token;return this.expectToken(Kt.AT),{kind:Ht.a.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t),loc:this.loc(e)}},e.parseTypeReference=function(){var t,e=this._lexer.token;return this.expectOptionalToken(Kt.BRACKET_L)?(t=this.parseTypeReference(),this.expectToken(Kt.BRACKET_R),t={kind:Ht.a.LIST_TYPE,type:t,loc:this.loc(e)}):t=this.parseNamedType(),this.expectOptionalToken(Kt.BANG)?{kind:Ht.a.NON_NULL_TYPE,type:t,loc:this.loc(e)}:t},e.parseNamedType=function(){var t=this._lexer.token;return{kind:Ht.a.NAMED_TYPE,name:this.parseName(),loc:this.loc(t)}},e.parseTypeSystemDefinition=function(){var t=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(t.kind===Kt.NAME)switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(t)},e.peekDescription=function(){return this.peek(Kt.STRING)||this.peek(Kt.BLOCK_STRING)},e.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},e.parseSchemaDefinition=function(){var t=this._lexer.token;this.expectKeyword("schema");var e=this.parseDirectives(!0),r=this.many(Kt.BRACE_L,this.parseOperationTypeDefinition,Kt.BRACE_R);return{kind:Ht.a.SCHEMA_DEFINITION,directives:e,operationTypes:r,loc:this.loc(t)}},e.parseOperationTypeDefinition=function(){var t=this._lexer.token,e=this.parseOperationType();this.expectToken(Kt.COLON);var r=this.parseNamedType();return{kind:Ht.a.OPERATION_TYPE_DEFINITION,operation:e,type:r,loc:this.loc(t)}},e.parseScalarTypeDefinition=function(){var t=this._lexer.token,e=this.parseDescription();this.expectKeyword("scalar");var r=this.parseName(),n=this.parseDirectives(!0);return{kind:Ht.a.SCALAR_TYPE_DEFINITION,description:e,name:r,directives:n,loc:this.loc(t)}},e.parseObjectTypeDefinition=function(){var t=this._lexer.token,e=this.parseDescription();this.expectKeyword("type");var r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:Ht.a.OBJECT_TYPE_DEFINITION,description:e,name:r,interfaces:n,directives:i,fields:o,loc:this.loc(t)}},e.parseImplementsInterfaces=function(){var t=[];if(this.expectOptionalKeyword("implements")){this.expectOptionalToken(Kt.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(Kt.AMP)||this._options.allowLegacySDLImplementsInterfaces&&this.peek(Kt.NAME))}return t},e.parseFieldsDefinition=function(){return this._options.allowLegacySDLEmptyFields&&this.peek(Kt.BRACE_L)&&this._lexer.lookahead().kind===Kt.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(Kt.BRACE_L,this.parseFieldDefinition,Kt.BRACE_R)},e.parseFieldDefinition=function(){var t=this._lexer.token,e=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(Kt.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:Ht.a.FIELD_DEFINITION,description:e,name:r,arguments:n,type:i,directives:o,loc:this.loc(t)}},e.parseArgumentDefs=function(){return this.optionalMany(Kt.PAREN_L,this.parseInputValueDef,Kt.PAREN_R)},e.parseInputValueDef=function(){var t=this._lexer.token,e=this.parseDescription(),r=this.parseName();this.expectToken(Kt.COLON);var n,i=this.parseTypeReference();this.expectOptionalToken(Kt.EQUALS)&&(n=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:Ht.a.INPUT_VALUE_DEFINITION,description:e,name:r,type:i,defaultValue:n,directives:o,loc:this.loc(t)}},e.parseInterfaceTypeDefinition=function(){var t=this._lexer.token,e=this.parseDescription();this.expectKeyword("interface");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseFieldsDefinition();return{kind:Ht.a.INTERFACE_TYPE_DEFINITION,description:e,name:r,directives:n,fields:i,loc:this.loc(t)}},e.parseUnionTypeDefinition=function(){var t=this._lexer.token,e=this.parseDescription();this.expectKeyword("union");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:Ht.a.UNION_TYPE_DEFINITION,description:e,name:r,directives:n,types:i,loc:this.loc(t)}},e.parseUnionMemberTypes=function(){var t=[];if(this.expectOptionalToken(Kt.EQUALS)){this.expectOptionalToken(Kt.PIPE);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(Kt.PIPE))}return t},e.parseEnumTypeDefinition=function(){var t=this._lexer.token,e=this.parseDescription();this.expectKeyword("enum");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:Ht.a.ENUM_TYPE_DEFINITION,description:e,name:r,directives:n,values:i,loc:this.loc(t)}},e.parseEnumValuesDefinition=function(){return this.optionalMany(Kt.BRACE_L,this.parseEnumValueDefinition,Kt.BRACE_R)},e.parseEnumValueDefinition=function(){var t=this._lexer.token,e=this.parseDescription(),r=this.parseName(),n=this.parseDirectives(!0);return{kind:Ht.a.ENUM_VALUE_DEFINITION,description:e,name:r,directives:n,loc:this.loc(t)}},e.parseInputObjectTypeDefinition=function(){var t=this._lexer.token,e=this.parseDescription();this.expectKeyword("input");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:Ht.a.INPUT_OBJECT_TYPE_DEFINITION,description:e,name:r,directives:n,fields:i,loc:this.loc(t)}},e.parseInputFieldsDefinition=function(){return this.optionalMany(Kt.BRACE_L,this.parseInputValueDef,Kt.BRACE_R)},e.parseTypeSystemExtension=function(){var t=this._lexer.lookahead();if(t.kind===Kt.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)},e.parseSchemaExtension=function(){var t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var e=this.parseDirectives(!0),r=this.optionalMany(Kt.BRACE_L,this.parseOperationTypeDefinition,Kt.BRACE_R);if(0===e.length&&0===r.length)throw this.unexpected();return{kind:Ht.a.SCHEMA_EXTENSION,directives:e,operationTypes:r,loc:this.loc(t)}},e.parseScalarTypeExtension=function(){var t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var e=this.parseName(),r=this.parseDirectives(!0);if(0===r.length)throw this.unexpected();return{kind:Ht.a.SCALAR_TYPE_EXTENSION,name:e,directives:r,loc:this.loc(t)}},e.parseObjectTypeExtension=function(){var t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var e=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return{kind:Ht.a.OBJECT_TYPE_EXTENSION,name:e,interfaces:r,directives:n,fields:i,loc:this.loc(t)}},e.parseInterfaceTypeExtension=function(){var t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var e=this.parseName(),r=this.parseDirectives(!0),n=this.parseFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:Ht.a.INTERFACE_TYPE_EXTENSION,name:e,directives:r,fields:n,loc:this.loc(t)}},e.parseUnionTypeExtension=function(){var t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var e=this.parseName(),r=this.parseDirectives(!0),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:Ht.a.UNION_TYPE_EXTENSION,name:e,directives:r,types:n,loc:this.loc(t)}},e.parseEnumTypeExtension=function(){var t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var e=this.parseName(),r=this.parseDirectives(!0),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:Ht.a.ENUM_TYPE_EXTENSION,name:e,directives:r,values:n,loc:this.loc(t)}},e.parseInputObjectTypeExtension=function(){var t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var e=this.parseName(),r=this.parseDirectives(!0),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:Ht.a.INPUT_OBJECT_TYPE_EXTENSION,name:e,directives:r,fields:n,loc:this.loc(t)}},e.parseDirectiveDefinition=function(){var t=this._lexer.token,e=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Kt.AT);var r=this.parseName(),n=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:Ht.a.DIRECTIVE_DEFINITION,description:e,name:r,arguments:n,repeatable:i,locations:o,loc:this.loc(t)}},e.parseDirectiveLocations=function(){this.expectOptionalToken(Kt.PIPE);var t=[];do{t.push(this.parseDirectiveLocation())}while(this.expectOptionalToken(Kt.PIPE));return t},e.parseDirectiveLocation=function(){var t=this._lexer.token,e=this.parseName();if(void 0!==oe[e.value])return e;throw this.unexpected(t)},e.loc=function(t){if(!this._options.noLocation)return new se(t,this._lexer.lastToken,this._lexer.source)},e.peek=function(t){return this._lexer.token.kind===t},e.expectToken=function(t){var e=this._lexer.token;if(e.kind===t)return this._lexer.advance(),e;throw Wt(this._lexer.source,e.start,"Expected ".concat(t,", found ").concat(ce(e)))},e.expectOptionalToken=function(t){var e=this._lexer.token;if(e.kind===t)return this._lexer.advance(),e},e.expectKeyword=function(t){var e=this._lexer.token;if(e.kind!==Kt.NAME||e.value!==t)throw Wt(this._lexer.source,e.start,'Expected "'.concat(t,'", found ').concat(ce(e)));this._lexer.advance()},e.expectOptionalKeyword=function(t){var e=this._lexer.token;return e.kind===Kt.NAME&&e.value===t&&(this._lexer.advance(),!0)},e.unexpected=function(t){var e=t||this._lexer.token;return Wt(this._lexer.source,e.start,"Unexpected ".concat(ce(e)))},e.any=function(t,e,r){this.expectToken(t);for(var n=[];!this.expectOptionalToken(r);)n.push(e.call(this));return n},e.optionalMany=function(t,e,r){if(this.expectOptionalToken(t)){var n=[];do{n.push(e.call(this))}while(!this.expectOptionalToken(r));return n}return[]},e.many=function(t,e,r){this.expectToken(t);var n=[];do{n.push(e.call(this))}while(!this.expectOptionalToken(r));return n},t}();function se(t,e,r){this.start=t.start,this.end=e.end,this.startToken=t,this.endToken=e,this.source=r}function ce(t){var e=t.value;return e?"".concat(t.kind,' "').concat(e,'"'):t.kind}Ut(se,(function(){return{start:this.start,end:this.end}}));var ue=new Map,le=new Map,pe=!0,de=!1;function fe(t){return t.replace(/[\s,]+/g," ").trim()}function he(t){var e=new Set,r=[];return t.definitions.forEach((function(t){if("FragmentDefinition"===t.kind){var n=t.name.value,i=function(t){return fe(t.source.body.substring(t.start,t.end))}(t.loc),o=le.get(n);o&&!o.has(i)?pe&&console.warn("Warning: fragment with name "+n+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||le.set(n,o=new Set),o.add(i),e.has(i)||(e.add(i),r.push(t))}else r.push(t)})),Dt(Dt({},t),{definitions:r})}function me(t){var e=fe(t);if(!ue.has(e)){var r=function(t,e){return new ae(t,e).parseDocument()}(t,{experimentalFragmentVariables:de});if(!r||"Document"!==r.kind)throw new Error("Not a valid GraphQL document.");ue.set(e,function(t){var e=new Set(t.definitions);e.forEach((function(t){t.loc&&delete t.loc,Object.keys(t).forEach((function(r){var n=t[r];n&&"object"==typeof n&&e.add(n)}))}));var r=t.loc;return r&&(delete r.startToken,delete r.endToken),t}(he(r)))}return ue.get(e)}function ve(t){for(var e=[],r=1;r0}var Ve,ze=function(t){function e(r){var n=r.graphQLErrors,i=r.networkError,o=r.errorMessage,a=r.extraInfo,s=t.call(this,o)||this;return s.graphQLErrors=n||[],s.networkError=i||null,s.message=o||function(t){var e="";return $e(t.graphQLErrors)&&t.graphQLErrors.forEach((function(t){var r=t?t.message:"Error message not found.";e+="GraphQL error: "+r+"\n"})),t.networkError&&(e+="Network error: "+t.networkError.message+"\n"),e=e.replace(/\n$/,"")}(s),s.extraInfo=a,s.__proto__=e.prototype,s}return Object(ye.c)(e,t),e}(Error);!function(t){t[t.normal=1]="normal",t[t.refetch=2]="refetch",t[t.poll=3]="poll"}(Ve||(Ve={}));var qe=function(t){function e(e){var r=e.queryManager,n=e.options,i=e.shouldSubscribe,o=void 0===i||i,a=t.call(this,(function(t){return a.onSubscribe(t)}))||this;a.observers=new Set,a.subscriptions=new Set,a.isTornDown=!1,a.options=n,a.variables=n.variables||{},a.queryId=r.generateQueryId(),a.shouldSubscribe=o;var s=Object(_e.m)(n.query);return a.queryName=s&&s.name&&s.name.value,a.queryManager=r,a}return Object(ye.c)(e,t),e.prototype.result=function(){var t=this;return new Promise((function(e,r){var n={next:function(r){e(r),t.observers.delete(n),t.observers.size||t.queryManager.removeQuery(t.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:r},i=t.subscribe(n)}))},e.prototype.currentResult=function(){var t=this.getCurrentResult();return void 0===t.data&&(t.data={}),t},e.prototype.getCurrentResult=function(){if(this.isTornDown){var t=this.lastResult;return{data:!this.lastError&&t&&t.data||void 0,error:this.lastError,loading:!1,networkStatus:Pe.error}}var e,r=this.queryManager.getCurrentQueryResult(this),n=r.data,i=r.partial,o=this.queryManager.queryStore.get(this.queryId),a=this.options.fetchPolicy,s="network-only"===a||"no-cache"===a;if(o){var c=o.networkStatus;if(function(t,e){return void 0===e&&(e="none"),t&&(t.networkError||"none"===e&&$e(t.graphQLErrors))}(o,this.options.errorPolicy))return{data:void 0,loading:!1,networkStatus:c,error:new ze({graphQLErrors:o.graphQLErrors,networkError:o.networkError})};o.variables&&(this.options.variables=Object(ye.a)(Object(ye.a)({},this.options.variables),o.variables),this.variables=this.options.variables),e={data:n,loading:Ue(c),networkStatus:c},o.graphQLErrors&&"all"===this.options.errorPolicy&&(e.errors=o.graphQLErrors)}else{var u=s||i&&"cache-only"!==a;e={data:n,loading:u,networkStatus:u?Pe.loading:Pe.ready}}return i||this.updateLastResult(Object(ye.a)(Object(ye.a)({},e),{stale:!1})),Object(ye.a)(Object(ye.a)({},e),{partial:i})},e.prototype.isDifferentFromLastResult=function(t){var e=this.lastResultSnapshot;return!(e&&t&&e.networkStatus===t.networkStatus&&e.stale===t.stale&&Object(we.a)(e.data,t.data))},e.prototype.getLastResult=function(){return this.lastResult},e.prototype.getLastError=function(){return this.lastError},e.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},e.prototype.resetQueryStoreErrors=function(){var t=this.queryManager.queryStore.get(this.queryId);t&&(t.networkError=null,t.graphQLErrors=[])},e.prototype.refetch=function(t){var e=this.options.fetchPolicy;return"cache-only"===e?Promise.reject(new Se.a(1)):("no-cache"!==e&&"cache-and-network"!==e&&(e="network-only"),Object(we.a)(this.variables,t)||(this.variables=Object(ye.a)(Object(ye.a)({},this.variables),t)),Object(we.a)(this.options.variables,this.variables)||(this.options.variables=Object(ye.a)(Object(ye.a)({},this.options.variables),this.variables)),this.queryManager.fetchQuery(this.queryId,Object(ye.a)(Object(ye.a)({},this.options),{fetchPolicy:e}),Ve.refetch))},e.prototype.fetchMore=function(t){var e=this;Object(Se.b)(t.updateQuery,2);var r=Object(ye.a)(Object(ye.a)({},t.query?t:Object(ye.a)(Object(ye.a)(Object(ye.a)({},this.options),t),{variables:Object(ye.a)(Object(ye.a)({},this.variables),t.variables)})),{fetchPolicy:"network-only"}),n=this.queryManager.generateQueryId();return this.queryManager.fetchQuery(n,r,Ve.normal,this.queryId).then((function(i){return e.updateQuery((function(e){return t.updateQuery(e,{fetchMoreResult:i.data,variables:r.variables})})),e.queryManager.stopQuery(n),i}),(function(t){throw e.queryManager.stopQuery(n),t}))},e.prototype.subscribeToMore=function(t){var e=this,r=this.queryManager.startGraphQLSubscription({query:t.document,variables:t.variables}).subscribe({next:function(r){var n=t.updateQuery;n&&e.updateQuery((function(t,e){var i=e.variables;return n(t,{subscriptionData:r,variables:i})}))},error:function(e){t.onError&&t.onError(e)}});return this.subscriptions.add(r),function(){e.subscriptions.delete(r)&&r.unsubscribe()}},e.prototype.setOptions=function(t){var e=this.options.fetchPolicy;this.options=Object(ye.a)(Object(ye.a)({},this.options),t),t.pollInterval?this.startPolling(t.pollInterval):0===t.pollInterval&&this.stopPolling();var r=t.fetchPolicy;return this.setVariables(this.options.variables,e!==r&&("cache-only"===e||"standby"===e||"network-only"===r),t.fetchResults)},e.prototype.setVariables=function(t,e,r){return void 0===e&&(e=!1),void 0===r&&(r=!0),this.isTornDown=!1,t=t||this.variables,!e&&Object(we.a)(t,this.variables)?this.observers.size&&r?this.result():Promise.resolve():(this.variables=this.options.variables=t,this.observers.size?this.queryManager.fetchQuery(this.queryId,this.options):Promise.resolve())},e.prototype.updateQuery=function(t){var e=this.queryManager,r=e.getQueryWithPreviousResult(this.queryId),n=r.previousResult,i=r.variables,o=r.document,a=Object(_e.I)((function(){return t(n,{variables:i})}));a&&(e.dataStore.markUpdateQueryResult(o,i,a),e.broadcastQueries())},e.prototype.stopPolling=function(){this.queryManager.stopPollingQuery(this.queryId),this.options.pollInterval=void 0},e.prototype.startPolling=function(t){We(this),this.options.pollInterval=t,this.queryManager.startPollingQuery(this.options,this.queryId)},e.prototype.updateLastResult=function(t){var e=this.lastResult;return this.lastResult=t,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?t:Object(_e.f)(t),e},e.prototype.onSubscribe=function(t){var e=this;try{var r=t._subscription._observer;r&&!r.error&&(r.error=Be)}catch(t){}var n=!this.observers.size;return this.observers.add(t),t.next&&this.lastResult&&t.next(this.lastResult),t.error&&this.lastError&&t.error(this.lastError),n&&this.setUpQuery(),function(){e.observers.delete(t)&&!e.observers.size&&e.tearDownQuery()}},e.prototype.setUpQuery=function(){var t=this,e=this.queryManager,r=this.queryId;this.shouldSubscribe&&e.addObservableQuery(r,this),this.options.pollInterval&&(We(this),e.startPollingQuery(this.options,r));var n=function(e){t.updateLastResult(Object(ye.a)(Object(ye.a)({},t.lastResult),{errors:e.graphQLErrors,networkStatus:Pe.error,loading:!1})),Ge(t.observers,"error",t.lastError=e)};e.observeQuery(r,this.options,{next:function(r){if(t.lastError||t.isDifferentFromLastResult(r)){var n=t.updateLastResult(r),i=t.options,o=i.query,a=i.variables,s=i.fetchPolicy;e.transform(o).hasClientExports?e.getLocalState().addExportedVariables(o,a).then((function(i){var a=t.variables;t.variables=t.options.variables=i,!r.loading&&n&&"cache-only"!==s&&e.transform(o).serverQuery&&!Object(we.a)(a,i)?t.refetch():Ge(t.observers,"next",r)})):Ge(t.observers,"next",r)}},error:n}).catch(n)},e.prototype.tearDownQuery=function(){var t=this.queryManager;this.isTornDown=!0,t.stopPollingQuery(this.queryId),this.subscriptions.forEach((function(t){return t.unsubscribe()})),this.subscriptions.clear(),t.removeObservableQuery(this.queryId),t.stopQuery(this.queryId),this.observers.clear()},e}(Fe);function Be(t){}function Ge(t,e,r){var n=[];t.forEach((function(t){return t[e]&&n.push(t)})),n.forEach((function(t){return t[e](r)}))}function We(t){var e=t.options.fetchPolicy;Object(Se.b)("cache-first"!==e&&"cache-only"!==e,3)}var He=function(){function t(){this.store={}}return t.prototype.getStore=function(){return this.store},t.prototype.get=function(t){return this.store[t]},t.prototype.initMutation=function(t,e,r){this.store[t]={mutation:e,variables:r||{},loading:!0,error:null}},t.prototype.markMutationError=function(t,e){var r=this.store[t];r&&(r.loading=!1,r.error=e)},t.prototype.markMutationResult=function(t){var e=this.store[t];e&&(e.loading=!1,e.error=null)},t.prototype.reset=function(){this.store={}},t}(),Qe=function(){function t(){this.store={}}return t.prototype.getStore=function(){return this.store},t.prototype.get=function(t){return this.store[t]},t.prototype.initQuery=function(t){var e=this.store[t.queryId];Object(Se.b)(!e||e.document===t.document||Object(we.a)(e.document,t.document),19);var r,n=!1,i=null;t.storePreviousVariables&&e&&e.networkStatus!==Pe.loading&&(Object(we.a)(e.variables,t.variables)||(n=!0,i=e.variables)),r=n?Pe.setVariables:t.isPoll?Pe.poll:t.isRefetch?Pe.refetch:Pe.loading;var o=[];e&&e.graphQLErrors&&(o=e.graphQLErrors),this.store[t.queryId]={document:t.document,variables:t.variables,previousVariables:i,networkError:null,graphQLErrors:o,networkStatus:r,metadata:t.metadata},"string"==typeof t.fetchMoreForQueryId&&this.store[t.fetchMoreForQueryId]&&(this.store[t.fetchMoreForQueryId].networkStatus=Pe.fetchMore)},t.prototype.markQueryResult=function(t,e,r){this.store&&this.store[t]&&(this.store[t].networkError=null,this.store[t].graphQLErrors=$e(e.errors)?e.errors:[],this.store[t].previousVariables=null,this.store[t].networkStatus=Pe.ready,"string"==typeof r&&this.store[r]&&(this.store[r].networkStatus=Pe.ready))},t.prototype.markQueryError=function(t,e,r){this.store&&this.store[t]&&(this.store[t].networkError=e,this.store[t].networkStatus=Pe.error,"string"==typeof r&&this.markQueryResultClient(r,!0))},t.prototype.markQueryResultClient=function(t,e){var r=this.store&&this.store[t];r&&(r.networkError=null,r.previousVariables=null,e&&(r.networkStatus=Pe.ready))},t.prototype.stopQuery=function(t){delete this.store[t]},t.prototype.reset=function(t){var e=this;Object.keys(this.store).forEach((function(r){t.indexOf(r)<0?e.stopQuery(r):e.store[r].networkStatus=Pe.loading}))},t}();var Ye=function(){function t(t){var e=t.cache,r=t.client,n=t.resolvers,i=t.fragmentMatcher;this.cache=e,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return t.prototype.addResolvers=function(t){var e=this;this.resolvers=this.resolvers||{},Array.isArray(t)?t.forEach((function(t){e.resolvers=Object(_e.A)(e.resolvers,t)})):this.resolvers=Object(_e.A)(this.resolvers,t)},t.prototype.setResolvers=function(t){this.resolvers={},this.addResolvers(t)},t.prototype.getResolvers=function(){return this.resolvers||{}},t.prototype.runResolvers=function(t){var e=t.document,r=t.remoteResult,n=t.context,i=t.variables,o=t.onlyRunForcedResolvers,a=void 0!==o&&o;return Object(ye.b)(this,void 0,void 0,(function(){return Object(ye.d)(this,(function(t){return e?[2,this.resolveDocument(e,r.data,n,i,this.fragmentMatcher,a).then((function(t){return Object(ye.a)(Object(ye.a)({},r),{data:t.result})}))]:[2,r]}))}))},t.prototype.setFragmentMatcher=function(t){this.fragmentMatcher=t},t.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},t.prototype.clientQuery=function(t){return Object(_e.s)(["client"],t)&&this.resolvers?t:null},t.prototype.serverQuery=function(t){return this.resolvers?Object(_e.C)(t):t},t.prototype.prepareContext=function(t){void 0===t&&(t={});var e=this.cache;return Object(ye.a)(Object(ye.a)({},t),{cache:e,getCacheKey:function(t){if(e.config)return e.config.dataIdFromObject(t);Object(Se.b)(!1,6)}})},t.prototype.addExportedVariables=function(t,e,r){return void 0===e&&(e={}),void 0===r&&(r={}),Object(ye.b)(this,void 0,void 0,(function(){return Object(ye.d)(this,(function(n){return t?[2,this.resolveDocument(t,this.buildRootValueFromCache(t,e)||{},this.prepareContext(r),e).then((function(t){return Object(ye.a)(Object(ye.a)({},e),t.exportedVariables)}))]:[2,Object(ye.a)({},e)]}))}))},t.prototype.shouldForceResolvers=function(t){var e=!1;return Object(Le.b)(t,{Directive:{enter:function(t){if("client"===t.name.value&&t.arguments&&(e=t.arguments.some((function(t){return"always"===t.name.value&&"BooleanValue"===t.value.kind&&!0===t.value.value}))))return Le.a}}}),e},t.prototype.buildRootValueFromCache=function(t,e){return this.cache.diff({query:Object(_e.d)(t),variables:e,returnPartialData:!0,optimistic:!1}).result},t.prototype.resolveDocument=function(t,e,r,n,i,o){return void 0===r&&(r={}),void 0===n&&(n={}),void 0===i&&(i=function(){return!0}),void 0===o&&(o=!1),Object(ye.b)(this,void 0,void 0,(function(){var a,s,c,u,l,p,d,f,h;return Object(ye.d)(this,(function(m){return a=Object(_e.l)(t),s=Object(_e.j)(t),c=Object(_e.g)(s),u=a.operation,l=u?function(t){return t.charAt(0).toUpperCase()+t.slice(1)}(u):"Query",d=(p=this).cache,f=p.client,h={fragmentMap:c,context:Object(ye.a)(Object(ye.a)({},r),{cache:d,client:f}),variables:n,fragmentMatcher:i,defaultOperationType:l,exportedVariables:{},onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(a.selectionSet,e,h).then((function(t){return{result:t,exportedVariables:h.exportedVariables}}))]}))}))},t.prototype.resolveSelectionSet=function(t,e,r){return Object(ye.b)(this,void 0,void 0,(function(){var n,i,o,a,s,c=this;return Object(ye.d)(this,(function(u){return n=r.fragmentMap,i=r.context,o=r.variables,a=[e],s=function(t){return Object(ye.b)(c,void 0,void 0,(function(){var s,c;return Object(ye.d)(this,(function(u){return Object(_e.F)(t,o)?Object(_e.t)(t)?[2,this.resolveField(t,e,r).then((function(e){var r;void 0!==e&&a.push(((r={})[Object(_e.E)(t)]=e,r))}))]:(Object(_e.v)(t)?s=t:(s=n[t.name.value],Object(Se.b)(s,7)),s&&s.typeCondition&&(c=s.typeCondition.name.value,r.fragmentMatcher(e,c,i))?[2,this.resolveSelectionSet(s.selectionSet,e,r).then((function(t){a.push(t)}))]:[2]):[2]}))}))},[2,Promise.all(t.selections.map(s)).then((function(){return Object(_e.B)(a)}))]}))}))},t.prototype.resolveField=function(t,e,r){return Object(ye.b)(this,void 0,void 0,(function(){var n,i,o,a,s,c,u,l,p,d=this;return Object(ye.d)(this,(function(f){return n=r.variables,i=t.name.value,o=Object(_e.E)(t),a=i!==o,s=e[o]||e[i],c=Promise.resolve(s),r.onlyRunForcedResolvers&&!this.shouldForceResolvers(t)||(u=e.__typename||r.defaultOperationType,(l=this.resolvers&&this.resolvers[u])&&((p=l[a?i:o])&&(c=Promise.resolve(p(e,Object(_e.b)(t,n),r.context,{field:t,fragmentMap:r.fragmentMap}))))),[2,c.then((function(e){return void 0===e&&(e=s),t.directives&&t.directives.forEach((function(t){"export"===t.name.value&&t.arguments&&t.arguments.forEach((function(t){"as"===t.name.value&&"StringValue"===t.value.kind&&(r.exportedVariables[t.value.value]=e)}))})),t.selectionSet?null==e?e:Array.isArray(e)?d.resolveSubSelectedArray(t,e,r):t.selectionSet?d.resolveSelectionSet(t.selectionSet,e,r):void 0:e}))]}))}))},t.prototype.resolveSubSelectedArray=function(t,e,r){var n=this;return Promise.all(e.map((function(e){return null===e?null:Array.isArray(e)?n.resolveSubSelectedArray(t,e,r):t.selectionSet?n.resolveSelectionSet(t.selectionSet,e,r):void 0})))},t}();function Ke(t){var e=new Set,r=null;return new Fe((function(n){return e.add(n),r=r||t.subscribe({next:function(t){e.forEach((function(e){return e.next&&e.next(t)}))},error:function(t){e.forEach((function(e){return e.error&&e.error(t)}))},complete:function(){e.forEach((function(t){return t.complete&&t.complete()}))}}),function(){e.delete(n)&&!e.size&&r&&(r.unsubscribe(),r=null)}}))}var Je=Object.prototype.hasOwnProperty,Xe=function(){function t(t){var e=t.link,r=t.queryDeduplication,n=void 0!==r&&r,i=t.store,o=t.onBroadcast,a=void 0===o?function(){}:o,s=t.ssrMode,c=void 0!==s&&s,u=t.clientAwareness,l=void 0===u?{}:u,p=t.localState,d=t.assumeImmutableResults;this.mutationStore=new He,this.queryStore=new Qe,this.clientAwareness={},this.idCounter=1,this.queries=new Map,this.fetchQueryRejectFns=new Map,this.transformCache=new(_e.e?WeakMap:Map),this.inFlightLinkObservables=new Map,this.pollingInfoByQueryId=new Map,this.link=e,this.queryDeduplication=n,this.dataStore=i,this.onBroadcast=a,this.clientAwareness=l,this.localState=p||new Ye({cache:i.getCache()}),this.ssrMode=c,this.assumeImmutableResults=!!d}return t.prototype.stop=function(){var t=this;this.queries.forEach((function(e,r){t.stopQueryNoBroadcast(r)})),this.fetchQueryRejectFns.forEach((function(t){t(new Se.a(8))}))},t.prototype.mutate=function(t){var e=t.mutation,r=t.variables,n=t.optimisticResponse,i=t.updateQueries,o=t.refetchQueries,a=void 0===o?[]:o,s=t.awaitRefetchQueries,c=void 0!==s&&s,u=t.update,l=t.errorPolicy,p=void 0===l?"none":l,d=t.fetchPolicy,f=t.context,h=void 0===f?{}:f;return Object(ye.b)(this,void 0,void 0,(function(){var t,o,s,l=this;return Object(ye.d)(this,(function(f){switch(f.label){case 0:return Object(Se.b)(e,9),Object(Se.b)(!d||"no-cache"===d,10),t=this.generateQueryId(),e=this.transform(e).document,this.setQuery(t,(function(){return{document:e}})),r=this.getVariables(e,r),this.transform(e).hasClientExports?[4,this.localState.addExportedVariables(e,r,h)]:[3,2];case 1:r=f.sent(),f.label=2;case 2:return o=function(){var t={};return i&&l.queries.forEach((function(e,r){var n=e.observableQuery;if(n){var o=n.queryName;o&&Je.call(i,o)&&(t[r]={updater:i[o],query:l.queryStore.get(r)})}})),t},this.mutationStore.initMutation(t,e,r),this.dataStore.markMutationInit({mutationId:t,document:e,variables:r,updateQueries:o(),update:u,optimisticResponse:n}),this.broadcastQueries(),s=this,[2,new Promise((function(i,l){var f,m;s.getObservableFromLink(e,Object(ye.a)(Object(ye.a)({},h),{optimisticResponse:n}),r,!1).subscribe({next:function(n){Object(_e.q)(n)&&"none"===p?m=new ze({graphQLErrors:n.errors}):(s.mutationStore.markMutationResult(t),"no-cache"!==d&&s.dataStore.markMutationResult({mutationId:t,result:n,document:e,variables:r,updateQueries:o(),update:u}),f=n)},error:function(e){s.mutationStore.markMutationError(t,e),s.dataStore.markMutationComplete({mutationId:t,optimisticResponse:n}),s.broadcastQueries(),s.setQuery(t,(function(){return{document:null}})),l(new ze({networkError:e}))},complete:function(){if(m&&s.mutationStore.markMutationError(t,m),s.dataStore.markMutationComplete({mutationId:t,optimisticResponse:n}),s.broadcastQueries(),m)l(m);else{"function"==typeof a&&(a=a(f));var e=[];$e(a)&&a.forEach((function(t){if("string"==typeof t)s.queries.forEach((function(r){var n=r.observableQuery;n&&n.queryName===t&&e.push(n.refetch())}));else{var r={query:t.query,variables:t.variables,fetchPolicy:"network-only"};t.context&&(r.context=t.context),e.push(s.query(r))}})),Promise.all(c?e:[]).then((function(){s.setQuery(t,(function(){return{document:null}})),"ignore"===p&&f&&Object(_e.q)(f)&&delete f.errors,i(f)}))}}})}))]}}))}))},t.prototype.fetchQuery=function(t,e,r,n){return Object(ye.b)(this,void 0,void 0,(function(){var i,o,a,s,c,u,l,p,d,f,h,m,v,g,b,y,_,w,x=this;return Object(ye.d)(this,(function(E){switch(E.label){case 0:return i=e.metadata,o=void 0===i?null:i,a=e.fetchPolicy,s=void 0===a?"cache-first":a,c=e.context,u=void 0===c?{}:c,l=this.transform(e.query).document,p=this.getVariables(l,e.variables),this.transform(l).hasClientExports?[4,this.localState.addExportedVariables(l,p,u)]:[3,2];case 1:p=E.sent(),E.label=2;case 2:if(e=Object(ye.a)(Object(ye.a)({},e),{variables:p}),h=f="network-only"===s||"no-cache"===s,f||(m=this.dataStore.getCache().diff({query:l,variables:p,returnPartialData:!0,optimistic:!1}),v=m.complete,g=m.result,h=!v||"cache-and-network"===s,d=g),b=h&&"cache-only"!==s&&"standby"!==s,Object(_e.s)(["live"],l)&&(b=!0),y=this.idCounter++,_="no-cache"!==s?this.updateQueryWatch(t,l,e):void 0,this.setQuery(t,(function(){return{document:l,lastRequestId:y,invalidated:!0,cancel:_}})),this.invalidate(n),this.queryStore.initQuery({queryId:t,document:l,storePreviousVariables:b,variables:p,isPoll:r===Ve.poll,isRefetch:r===Ve.refetch,metadata:o,fetchMoreForQueryId:n}),this.broadcastQueries(),b){if(w=this.fetchRequest({requestId:y,queryId:t,document:l,options:e,fetchMoreForQueryId:n}).catch((function(e){throw function(t){return t.hasOwnProperty("graphQLErrors")}(e)?e:(y>=x.getQuery(t).lastRequestId&&(x.queryStore.markQueryError(t,e,n),x.invalidate(t),x.invalidate(n),x.broadcastQueries()),new ze({networkError:e}))})),"cache-and-network"!==s)return[2,w];w.catch((function(){}))}return this.queryStore.markQueryResultClient(t,!b),this.invalidate(t),this.invalidate(n),this.transform(l).hasForcedResolvers?[2,this.localState.runResolvers({document:l,remoteResult:{data:d},context:u,variables:p,onlyRunForcedResolvers:!0}).then((function(r){return x.markQueryResult(t,r,e,n),x.broadcastQueries(),r}))]:(this.broadcastQueries(),[2,{data:d}])}}))}))},t.prototype.markQueryResult=function(t,e,r,n){var i=r.fetchPolicy,o=r.variables,a=r.errorPolicy;"no-cache"===i?this.setQuery(t,(function(){return{newData:{result:e.data,complete:!0}}})):this.dataStore.markQueryResult(e,this.getQuery(t).document,o,n,"ignore"===a||"all"===a)},t.prototype.queryListenerForObserver=function(t,e,r){var n=this;function i(t,e){if(r[t])try{r[t](e)}catch(t){}}return function(r,o){if(n.invalidate(t,!1),r){var a=n.getQuery(t),s=a.observableQuery,c=a.document,u=s?s.options.fetchPolicy:e.fetchPolicy;if("standby"!==u){var l=Ue(r.networkStatus),p=s&&s.getLastResult(),d=!(!p||p.networkStatus===r.networkStatus),f=e.returnPartialData||!o&&r.previousVariables||d&&e.notifyOnNetworkStatusChange||"cache-only"===u||"cache-and-network"===u;if(!l||f){var h=$e(r.graphQLErrors),m=s&&s.options.errorPolicy||e.errorPolicy||"none";if("none"===m&&h||r.networkError)return i("error",new ze({graphQLErrors:r.graphQLErrors,networkError:r.networkError}));try{var v=void 0,g=void 0;if(o)"no-cache"!==u&&"network-only"!==u&&n.setQuery(t,(function(){return{newData:null}})),v=o.result,g=!o.complete;else{var b=s&&s.getLastError(),y="none"!==m&&(b&&b.graphQLErrors)!==r.graphQLErrors;if(p&&p.data&&!y)v=p.data,g=!1;else{var _=n.dataStore.getCache().diff({query:c,variables:r.previousVariables||r.variables,returnPartialData:!0,optimistic:!0});v=_.result,g=!_.complete}}var w=g&&!(e.returnPartialData||"cache-only"===u),x={data:w?p&&p.data:v,loading:l,networkStatus:r.networkStatus,stale:w};"all"===m&&h&&(x.errors=r.graphQLErrors),i("next",x)}catch(t){i("error",new ze({networkError:t}))}}}}}},t.prototype.transform=function(t){var e=this.transformCache;if(!e.has(t)){var r=this.dataStore.getCache(),n=r.transformDocument(t),i=Object(_e.D)(r.transformForLink(n)),o=this.localState.clientQuery(n),a=this.localState.serverQuery(i),s={document:n,hasClientExports:Object(_e.r)(n),hasForcedResolvers:this.localState.shouldForceResolvers(n),clientQuery:o,serverQuery:a,defaultVars:Object(_e.h)(Object(_e.m)(n))},c=function(t){t&&!e.has(t)&&e.set(t,s)};c(t),c(n),c(o),c(a)}return e.get(t)},t.prototype.getVariables=function(t,e){return Object(ye.a)(Object(ye.a)({},this.transform(t).defaultVars),e)},t.prototype.watchQuery=function(t,e){void 0===e&&(e=!0),Object(Se.b)("standby"!==t.fetchPolicy,11),t.variables=this.getVariables(t.query,t.variables),void 0===t.notifyOnNetworkStatusChange&&(t.notifyOnNetworkStatusChange=!1);var r=Object(ye.a)({},t);return new qe({queryManager:this,options:r,shouldSubscribe:e})},t.prototype.query=function(t){var e=this;return Object(Se.b)(t.query,12),Object(Se.b)("Document"===t.query.kind,13),Object(Se.b)(!t.returnPartialData,14),Object(Se.b)(!t.pollInterval,15),new Promise((function(r,n){var i=e.watchQuery(t,!1);e.fetchQueryRejectFns.set("query:"+i.queryId,n),i.result().then(r,n).then((function(){return e.fetchQueryRejectFns.delete("query:"+i.queryId)}))}))},t.prototype.generateQueryId=function(){return String(this.idCounter++)},t.prototype.stopQueryInStore=function(t){this.stopQueryInStoreNoBroadcast(t),this.broadcastQueries()},t.prototype.stopQueryInStoreNoBroadcast=function(t){this.stopPollingQuery(t),this.queryStore.stopQuery(t),this.invalidate(t)},t.prototype.addQueryListener=function(t,e){this.setQuery(t,(function(t){return t.listeners.add(e),{invalidated:!1}}))},t.prototype.updateQueryWatch=function(t,e,r){var n=this,i=this.getQuery(t).cancel;i&&i();return this.dataStore.getCache().watch({query:e,variables:r.variables,optimistic:!0,previousResult:function(){var e=null,r=n.getQuery(t).observableQuery;if(r){var i=r.getLastResult();i&&(e=i.data)}return e},callback:function(e){n.setQuery(t,(function(){return{invalidated:!0,newData:e}}))}})},t.prototype.addObservableQuery=function(t,e){this.setQuery(t,(function(){return{observableQuery:e}}))},t.prototype.removeObservableQuery=function(t){var e=this.getQuery(t).cancel;this.setQuery(t,(function(){return{observableQuery:null}})),e&&e()},t.prototype.clearStore=function(){this.fetchQueryRejectFns.forEach((function(t){t(new Se.a(16))}));var t=[];return this.queries.forEach((function(e,r){e.observableQuery&&t.push(r)})),this.queryStore.reset(t),this.mutationStore.reset(),this.dataStore.reset()},t.prototype.resetStore=function(){var t=this;return this.clearStore().then((function(){return t.reFetchObservableQueries()}))},t.prototype.reFetchObservableQueries=function(t){var e=this;void 0===t&&(t=!1);var r=[];return this.queries.forEach((function(n,i){var o=n.observableQuery;if(o){var a=o.options.fetchPolicy;o.resetLastResults(),"cache-only"===a||!t&&"standby"===a||r.push(o.refetch()),e.setQuery(i,(function(){return{newData:null}})),e.invalidate(i)}})),this.broadcastQueries(),Promise.all(r)},t.prototype.observeQuery=function(t,e,r){return this.addQueryListener(t,this.queryListenerForObserver(t,e,r)),this.fetchQuery(t,e)},t.prototype.startQuery=function(t,e,r){return this.addQueryListener(t,r),this.fetchQuery(t,e).catch((function(){})),t},t.prototype.startGraphQLSubscription=function(t){var e=this,r=t.query,n=t.fetchPolicy,i=t.variables;r=this.transform(r).document,i=this.getVariables(r,i);var o=function(t){return e.getObservableFromLink(r,{},t,!1).map((function(i){if(n&&"no-cache"===n||(e.dataStore.markSubscriptionResult(i,r,t),e.broadcastQueries()),Object(_e.q)(i))throw new ze({graphQLErrors:i.errors});return i}))};if(this.transform(r).hasClientExports){var a=this.localState.addExportedVariables(r,i).then(o);return new Fe((function(t){var e=null;return a.then((function(r){return e=r.subscribe(t)}),t.error),function(){return e&&e.unsubscribe()}}))}return o(i)},t.prototype.stopQuery=function(t){this.stopQueryNoBroadcast(t),this.broadcastQueries()},t.prototype.stopQueryNoBroadcast=function(t){this.stopQueryInStoreNoBroadcast(t),this.removeQuery(t)},t.prototype.removeQuery=function(t){this.fetchQueryRejectFns.delete("query:"+t),this.fetchQueryRejectFns.delete("fetchRequest:"+t),this.getQuery(t).subscriptions.forEach((function(t){return t.unsubscribe()})),this.queries.delete(t)},t.prototype.getCurrentQueryResult=function(t,e){void 0===e&&(e=!0);var r=t.options,n=r.variables,i=r.query,o=r.fetchPolicy,a=r.returnPartialData,s=t.getLastResult(),c=this.getQuery(t.queryId).newData;if(c&&c.complete)return{data:c.result,partial:!1};if("no-cache"===o||"network-only"===o)return{data:void 0,partial:!1};var u=this.dataStore.getCache().diff({query:i,variables:n,previousResult:s?s.data:void 0,returnPartialData:!0,optimistic:e}),l=u.result,p=u.complete;return{data:p||a?l:void 0,partial:!p}},t.prototype.getQueryWithPreviousResult=function(t){var e;if("string"==typeof t){var r=this.getQuery(t).observableQuery;Object(Se.b)(r,17),e=r}else e=t;var n=e.options,i=n.variables,o=n.query;return{previousResult:this.getCurrentQueryResult(e,!1).data,variables:i,document:o}},t.prototype.broadcastQueries=function(){var t=this;this.onBroadcast(),this.queries.forEach((function(e,r){e.invalidated&&e.listeners.forEach((function(n){n&&n(t.queryStore.get(r),e.newData)}))}))},t.prototype.getLocalState=function(){return this.localState},t.prototype.getObservableFromLink=function(t,e,r,n){var i,o=this;void 0===n&&(n=this.queryDeduplication);var a=this.transform(t).serverQuery;if(a){var s=this.inFlightLinkObservables,c=this.link,u={query:a,variables:r,operationName:Object(_e.n)(a)||void 0,context:this.prepareContext(Object(ye.a)(Object(ye.a)({},e),{forceFetch:!n}))};if(e=u.context,n){var l=s.get(a)||new Map;s.set(a,l);var p=JSON.stringify(r);if(!(i=l.get(p))){l.set(p,i=Ke(De(c,u)));var d=function(){l.delete(p),l.size||s.delete(a),f.unsubscribe()},f=i.subscribe({next:d,error:d,complete:d})}}else i=Ke(De(c,u))}else i=Fe.of({data:{}}),e=this.prepareContext(e);var h=this.transform(t).clientQuery;return h&&(i=function(t,e){return new Fe((function(r){var n=r.next,i=r.error,o=r.complete,a=0,s=!1,c={next:function(t){++a,new Promise((function(r){r(e(t))})).then((function(t){--a,n&&n.call(r,t),s&&c.complete()}),(function(t){--a,i&&i.call(r,t)}))},error:function(t){i&&i.call(r,t)},complete:function(){s=!0,a||o&&o.call(r)}},u=t.subscribe(c);return function(){return u.unsubscribe()}}))}(i,(function(t){return o.localState.runResolvers({document:h,remoteResult:t,context:e,variables:r})}))),i},t.prototype.fetchRequest=function(t){var e,r,n=this,i=t.requestId,o=t.queryId,a=t.document,s=t.options,c=t.fetchMoreForQueryId,u=s.variables,l=s.errorPolicy,p=void 0===l?"none":l,d=s.fetchPolicy;return new Promise((function(t,l){var f=n.getObservableFromLink(a,s.context,u),h="fetchRequest:"+o;n.fetchQueryRejectFns.set(h,l);var m=function(){n.fetchQueryRejectFns.delete(h),n.setQuery(o,(function(t){t.subscriptions.delete(v)}))},v=f.map((function(t){if(i>=n.getQuery(o).lastRequestId&&(n.markQueryResult(o,t,s,c),n.queryStore.markQueryResult(o,t,c),n.invalidate(o),n.invalidate(c),n.broadcastQueries()),"none"===p&&$e(t.errors))return l(new ze({graphQLErrors:t.errors}));if("all"===p&&(r=t.errors),c||"no-cache"===d)e=t.data;else{var f=n.dataStore.getCache().diff({variables:u,query:a,optimistic:!1,returnPartialData:!0}),h=f.result;(f.complete||s.returnPartialData)&&(e=h)}})).subscribe({error:function(t){m(),l(t)},complete:function(){m(),t({data:e,errors:r,loading:!1,networkStatus:Pe.ready,stale:!1})}});n.setQuery(o,(function(t){t.subscriptions.add(v)}))}))},t.prototype.getQuery=function(t){return this.queries.get(t)||{listeners:new Set,invalidated:!1,document:null,newData:null,lastRequestId:1,observableQuery:null,subscriptions:new Set}},t.prototype.setQuery=function(t,e){var r=this.getQuery(t),n=Object(ye.a)(Object(ye.a)({},r),e(r));this.queries.set(t,n)},t.prototype.invalidate=function(t,e){void 0===e&&(e=!0),t&&this.setQuery(t,(function(){return{invalidated:e}}))},t.prototype.prepareContext=function(t){void 0===t&&(t={});var e=this.localState.prepareContext(t);return Object(ye.a)(Object(ye.a)({},e),{clientAwareness:this.clientAwareness})},t.prototype.checkInFlight=function(t){var e=this.queryStore.get(t);return e&&e.networkStatus!==Pe.ready&&e.networkStatus!==Pe.error},t.prototype.startPollingQuery=function(t,e,r){var n=this,i=t.pollInterval;if(Object(Se.b)(i,18),!this.ssrMode){var o=this.pollingInfoByQueryId.get(e);o||this.pollingInfoByQueryId.set(e,o={}),o.interval=i,o.options=Object(ye.a)(Object(ye.a)({},t),{fetchPolicy:"network-only"});var a=function(){var t=n.pollingInfoByQueryId.get(e);t&&(n.checkInFlight(e)?s():n.fetchQuery(e,t.options,Ve.poll).then(s,s))},s=function(){var t=n.pollingInfoByQueryId.get(e);t&&(clearTimeout(t.timeout),t.timeout=setTimeout(a,t.interval))};r&&this.addQueryListener(e,r),s()}return e},t.prototype.stopPollingQuery=function(t){this.pollingInfoByQueryId.delete(t)},t}(),Ze=function(){function t(t){this.cache=t}return t.prototype.getCache=function(){return this.cache},t.prototype.markQueryResult=function(t,e,r,n,i){void 0===i&&(i=!1);var o=!Object(_e.q)(t);i&&Object(_e.q)(t)&&t.data&&(o=!0),!n&&o&&this.cache.write({result:t.data,dataId:"ROOT_QUERY",query:e,variables:r})},t.prototype.markSubscriptionResult=function(t,e,r){Object(_e.q)(t)||this.cache.write({result:t.data,dataId:"ROOT_SUBSCRIPTION",query:e,variables:r})},t.prototype.markMutationInit=function(t){var e,r=this;t.optimisticResponse&&(e="function"==typeof t.optimisticResponse?t.optimisticResponse(t.variables):t.optimisticResponse,this.cache.recordOptimisticTransaction((function(n){var i=r.cache;r.cache=n;try{r.markMutationResult({mutationId:t.mutationId,result:{data:e},document:t.document,variables:t.variables,updateQueries:t.updateQueries,update:t.update})}finally{r.cache=i}}),t.mutationId))},t.prototype.markMutationResult=function(t){var e=this;if(!Object(_e.q)(t.result)){var r=[{result:t.result.data,dataId:"ROOT_MUTATION",query:t.document,variables:t.variables}],n=t.updateQueries;n&&Object.keys(n).forEach((function(i){var o=n[i],a=o.query,s=o.updater,c=e.cache.diff({query:a.document,variables:a.variables,returnPartialData:!0,optimistic:!1}),u=c.result;if(c.complete){var l=Object(_e.I)((function(){return s(u,{mutationResult:t.result,queryName:Object(_e.n)(a.document)||void 0,queryVariables:a.variables})}));l&&r.push({result:l,dataId:"ROOT_QUERY",query:a.document,variables:a.variables})}})),this.cache.performTransaction((function(e){r.forEach((function(t){return e.write(t)}));var n=t.update;n&&Object(_e.I)((function(){return n(e,t.result)}))}))}},t.prototype.markMutationComplete=function(t){var e=t.mutationId;t.optimisticResponse&&this.cache.removeOptimistic(e)},t.prototype.markUpdateQueryResult=function(t,e,r){this.cache.write({result:r,dataId:"ROOT_QUERY",variables:e,query:t})},t.prototype.reset=function(){return this.cache.reset()},t}(),tr=function(){function t(t){var e=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var r=t.cache,n=t.ssrMode,i=void 0!==n&&n,o=t.ssrForceFetchDelay,a=void 0===o?0:o,s=t.connectToDevTools,c=t.queryDeduplication,u=void 0===c||c,l=t.defaultOptions,p=t.assumeImmutableResults,d=void 0!==p&&p,f=t.resolvers,h=t.typeDefs,m=t.fragmentMatcher,v=t.name,g=t.version,b=t.link;if(!b&&f&&(b=Ne.empty()),!b||!r)throw new Se.a(4);this.link=b,this.cache=r,this.store=new Ze(r),this.disableNetworkFetches=i||a>0,this.queryDeduplication=u,this.defaultOptions=l||{},this.typeDefs=h,a&&setTimeout((function(){return e.disableNetworkFetches=!1}),a),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this);void 0!==s&&(s&&"undefined"!=typeof window)&&(window.__APOLLO_CLIENT__=this),this.version="2.6.10",this.localState=new Ye({cache:r,client:this,resolvers:f,fragmentMatcher:m}),this.queryManager=new Xe({link:this.link,store:this.store,queryDeduplication:u,ssrMode:i,clientAwareness:{name:v,version:g},localState:this.localState,assumeImmutableResults:d,onBroadcast:function(){e.devToolsHookCb&&e.devToolsHookCb({action:{},state:{queries:e.queryManager.queryStore.getStore(),mutations:e.queryManager.mutationStore.getStore()},dataWithOptimisticResults:e.cache.extract(!0)})}})}return t.prototype.stop=function(){this.queryManager.stop()},t.prototype.watchQuery=function(t){return this.defaultOptions.watchQuery&&(t=Object(ye.a)(Object(ye.a)({},this.defaultOptions.watchQuery),t)),!this.disableNetworkFetches||"network-only"!==t.fetchPolicy&&"cache-and-network"!==t.fetchPolicy||(t=Object(ye.a)(Object(ye.a)({},t),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(t)},t.prototype.query=function(t){return this.defaultOptions.query&&(t=Object(ye.a)(Object(ye.a)({},this.defaultOptions.query),t)),Object(Se.b)("cache-and-network"!==t.fetchPolicy,5),this.disableNetworkFetches&&"network-only"===t.fetchPolicy&&(t=Object(ye.a)(Object(ye.a)({},t),{fetchPolicy:"cache-first"})),this.queryManager.query(t)},t.prototype.mutate=function(t){return this.defaultOptions.mutate&&(t=Object(ye.a)(Object(ye.a)({},this.defaultOptions.mutate),t)),this.queryManager.mutate(t)},t.prototype.subscribe=function(t){return this.queryManager.startGraphQLSubscription(t)},t.prototype.readQuery=function(t,e){return void 0===e&&(e=!1),this.cache.readQuery(t,e)},t.prototype.readFragment=function(t,e){return void 0===e&&(e=!1),this.cache.readFragment(t,e)},t.prototype.writeQuery=function(t){var e=this.cache.writeQuery(t);return this.queryManager.broadcastQueries(),e},t.prototype.writeFragment=function(t){var e=this.cache.writeFragment(t);return this.queryManager.broadcastQueries(),e},t.prototype.writeData=function(t){var e=this.cache.writeData(t);return this.queryManager.broadcastQueries(),e},t.prototype.__actionHookForDevTools=function(t){this.devToolsHookCb=t},t.prototype.__requestRaw=function(t){return De(this.link,t)},t.prototype.initQueryManager=function(){return this.queryManager},t.prototype.resetStore=function(){var t=this;return Promise.resolve().then((function(){return t.queryManager.clearStore()})).then((function(){return Promise.all(t.resetStoreCallbacks.map((function(t){return t()})))})).then((function(){return t.reFetchObservableQueries()}))},t.prototype.clearStore=function(){var t=this;return Promise.resolve().then((function(){return t.queryManager.clearStore()})).then((function(){return Promise.all(t.clearStoreCallbacks.map((function(t){return t()})))}))},t.prototype.onResetStore=function(t){var e=this;return this.resetStoreCallbacks.push(t),function(){e.resetStoreCallbacks=e.resetStoreCallbacks.filter((function(e){return e!==t}))}},t.prototype.onClearStore=function(t){var e=this;return this.clearStoreCallbacks.push(t),function(){e.clearStoreCallbacks=e.clearStoreCallbacks.filter((function(e){return e!==t}))}},t.prototype.reFetchObservableQueries=function(t){return this.queryManager.reFetchObservableQueries(t)},t.prototype.extract=function(t){return this.cache.extract(t)},t.prototype.restore=function(t){return this.cache.restore(t)},t.prototype.addResolvers=function(t){this.localState.addResolvers(t)},t.prototype.setResolvers=function(t){this.localState.setResolvers(t)},t.prototype.getResolvers=function(){return this.localState.getResolvers()},t.prototype.setLocalStateFragmentMatcher=function(t){this.localState.setFragmentMatcher(t)},t}();var er=r("7506"),rr={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},nr=function(t,e,r){var n=new Error(r);throw n.name="ServerError",n.response=t,n.statusCode=t.status,n.result=e,n},ir=function(t,e){var r;try{r=JSON.stringify(t)}catch(t){var n=new Se.a(2);throw n.parseError=t,n}return r},or=function(t){void 0===t&&(t={});var e=t.uri,r=void 0===e?"/graphql":e,n=t.fetch,i=t.includeExtensions,o=t.useGETForQueries,a=Object(ye.f)(t,["uri","fetch","includeExtensions","useGETForQueries"]);(function(t){if(!t&&"undefined"==typeof fetch)throw new Se.a(1)})(n),n||(n=fetch);var s={http:{includeExtensions:i},options:a.fetchOptions,credentials:a.credentials,headers:a.headers};return new Ne((function(t){var e=function(t,e){return t.getContext().uri||("function"==typeof e?e(t):e||"/graphql")}(t,r),i=t.getContext(),a={};if(i.clientAwareness){var c=i.clientAwareness,u=c.name,l=c.version;u&&(a["apollographql-client-name"]=u),l&&(a["apollographql-client-version"]=l)}var p,d=Object(ye.a)({},a,i.headers),f={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:d},h=function(t,e){for(var r=[],n=2;n=300&&nr(e,r,"Response not successful: Received status code "+e.status),Array.isArray(r)||r.hasOwnProperty("data")||r.hasOwnProperty("errors")||nr(e,r,"Server response was missing for query '"+(Array.isArray(t)?t.map((function(t){return t.operationName})):t.operationName)+"'."),r}))}}(t)).then((function(t){return r.next(t),r.complete(),t})).catch((function(t){"AbortError"!==t.name&&(t.result&&t.result.errors&&t.result.data&&r.next(t.result),r.error(t))})),function(){p&&p.abort()}}))}))};var ar=function(t){function e(e){return t.call(this,or(e).request)||this}return Object(ye.c)(e,t),e}(Ne);function sr(t){return{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:ur(t)}]}}function cr(t,e){return{kind:"Document",definitions:[{kind:"FragmentDefinition",typeCondition:{kind:"NamedType",name:{kind:"Name",value:e||"__FakeType"}},name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:ur(t)}]}}function ur(t){if("number"==typeof t||"boolean"==typeof t||"string"==typeof t||null==t)return null;if(Array.isArray(t))return ur(t[0]);var e=[];return Object.keys(t).forEach((function(r){var n={kind:"Field",name:{kind:"Name",value:r},selectionSet:ur(t[r])||void 0};e.push(n)})),{kind:"SelectionSet",selections:e}}var lr,pr={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"__typename"},arguments:[],directives:[],selectionSet:null}]}}]},dr=function(){function t(){}return t.prototype.transformDocument=function(t){return t},t.prototype.transformForLink=function(t){return t},t.prototype.readQuery=function(t,e){return void 0===e&&(e=!1),this.read({query:t.query,variables:t.variables,optimistic:e})},t.prototype.readFragment=function(t,e){return void 0===e&&(e=!1),this.read({query:Object(_e.k)(t.fragment,t.fragmentName),variables:t.variables,rootId:t.id,optimistic:e})},t.prototype.writeQuery=function(t){this.write({dataId:"ROOT_QUERY",result:t.data,query:t.query,variables:t.variables})},t.prototype.writeFragment=function(t){this.write({dataId:t.id,result:t.data,variables:t.variables,query:Object(_e.k)(t.fragment,t.fragmentName)})},t.prototype.writeData=function(t){var e=t.id,r=t.data;if(void 0!==e){var n=null;try{n=this.read({rootId:e,optimistic:!1,query:pr})}catch(t){}var i=n&&n.__typename||"__ClientData",o=Object.assign({__typename:i},r);this.writeFragment({id:e,fragment:cr(o,i),data:o})}else this.writeQuery({query:sr(r),data:r})},t}();lr||(lr={});var fr=null,hr={},mr=1,vr="@wry/context:Slot",gr=Array,br=gr[vr]||function(){var t=function(){function t(){this.id=["slot",mr++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return t.prototype.hasValue=function(){for(var t=fr;t;t=t.parent)if(this.id in t.slots){var e=t.slots[this.id];if(e===hr)break;return t!==fr&&(fr.slots[this.id]=e),!0}return fr&&(fr.slots[this.id]=hr),!1},t.prototype.getValue=function(){if(this.hasValue())return fr.slots[this.id]},t.prototype.withValue=function(t,e,r,n){var i,o=((i={__proto__:null})[this.id]=t,i),a=fr;fr={parent:a,slots:o};try{return e.apply(n,r)}finally{fr=a}},t.bind=function(t){var e=fr;return function(){var r=fr;try{return fr=e,t.apply(this,arguments)}finally{fr=r}}},t.noContext=function(t,e,r){if(!fr)return t.apply(r,e);var n=fr;try{return fr=null,t.apply(r,e)}finally{fr=n}},t}();try{Object.defineProperty(gr,vr,{value:gr[vr]=t,enumerable:!1,writable:!1,configurable:!1})}finally{return t}}();function yr(){}br.bind,br.noContext;var _r=function(){function t(t,e){void 0===t&&(t=1/0),void 0===e&&(e=yr),this.max=t,this.dispose=e,this.map=new Map,this.newest=null,this.oldest=null}return t.prototype.has=function(t){return this.map.has(t)},t.prototype.get=function(t){var e=this.getEntry(t);return e&&e.value},t.prototype.getEntry=function(t){var e=this.map.get(t);if(e&&e!==this.newest){var r=e.older,n=e.newer;n&&(n.older=r),r&&(r.newer=n),e.older=this.newest,e.older.newer=e,e.newer=null,this.newest=e,e===this.oldest&&(this.oldest=n)}return e},t.prototype.set=function(t,e){var r=this.getEntry(t);return r?r.value=e:(r={key:t,value:e,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(t,r),r.value)},t.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},t.prototype.delete=function(t){var e=this.map.get(t);return!!e&&(e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.map.delete(t),this.dispose(e.value,t),!0)},t}(),wr=new br,xr=[],Er=[];function Sr(t,e){if(!t)throw new Error(e||"assertion failure")}function kr(t){switch(t.length){case 0:throw new Error("unknown value");case 1:return t[0];case 2:throw t[1]}}var Or=function(){function t(e,r){this.fn=e,this.args=r,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],++t.count}return t.prototype.recompute=function(){if(Sr(!this.recomputing,"already recomputing"),function(t){var e=wr.getValue();if(e)return t.parents.add(e),e.childValues.has(t)||e.childValues.set(t,[]),jr(t)?Ar(e,t):Rr(e,t),e}(this)||!Dr(this))return jr(this)?function(t){var e=Pr(t);return wr.withValue(t,Tr,[t]),function(t){if("function"==typeof t.subscribe)try{Lr(t),t.unsubscribe=t.subscribe.apply(null,t.args)}catch(e){return t.setDirty(),!1}return!0}(t)&&function(t){t.dirty=!1,jr(t)||Ir(t)}(t),e.forEach(Dr),kr(t.value)}(this):kr(this.value)},t.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,Cr(this),Lr(this))},t.prototype.dispose=function(){var t=this;Pr(this).forEach(Dr),Lr(this),this.parents.forEach((function(e){e.setDirty(),Mr(e,t)}))},t.count=0,t}();function Tr(t){t.recomputing=!0,t.value.length=0;try{t.value[0]=t.fn.apply(null,t.args)}catch(e){t.value[1]=e}t.recomputing=!1}function jr(t){return t.dirty||!(!t.dirtyChildren||!t.dirtyChildren.size)}function Cr(t){t.parents.forEach((function(e){return Ar(e,t)}))}function Ir(t){t.parents.forEach((function(e){return Rr(e,t)}))}function Ar(t,e){if(Sr(t.childValues.has(e)),Sr(jr(e)),t.dirtyChildren){if(t.dirtyChildren.has(e))return}else t.dirtyChildren=Er.pop()||new Set;t.dirtyChildren.add(e),Cr(t)}function Rr(t,e){Sr(t.childValues.has(e)),Sr(!jr(e));var r=t.childValues.get(e);0===r.length?t.childValues.set(e,function(t){return t.slice(0)}(e.value)):function(t,e){var r=t.length;return r>0&&r===e.length&&t[r-1]===e[r-1]}(r,e.value)||t.setDirty(),Nr(t,e),jr(t)||Ir(t)}function Nr(t,e){var r=t.dirtyChildren;r&&(r.delete(e),0===r.size&&(Er.length<100&&Er.push(r),t.dirtyChildren=null))}function Dr(t){return 0===t.parents.size&&"function"==typeof t.reportOrphan&&!0===t.reportOrphan()}function Pr(t){var e=xr;return t.childValues.size>0&&(e=[],t.childValues.forEach((function(r,n){Mr(t,n),e.push(n)}))),Sr(null===t.dirtyChildren),e}function Mr(t,e){e.parents.delete(t),t.childValues.delete(e),Nr(t,e)}function Lr(t){var e=t.unsubscribe;"function"==typeof e&&(t.unsubscribe=void 0,e())}var Ur=function(){function t(t){this.weakness=t}return t.prototype.lookup=function(){for(var t=[],e=0;e-1)},t.prototype.parseIntrospectionResult=function(t){var e={};return t.__schema.types.forEach((function(t){"UNION"!==t.kind&&"INTERFACE"!==t.kind||(e[t.name]=t.possibleTypes.map((function(t){return t.name})))})),e}}(),Object.prototype.hasOwnProperty),Wr=function(){function t(t){var e=this;void 0===t&&(t=Object.create(null)),this.data=t,this.depend=zr((function(t){return e.data[t]}),{disposable:!0,makeCacheKey:function(t){return t}})}return t.prototype.toObject=function(){return this.data},t.prototype.get=function(t){return this.depend(t),this.data[t]},t.prototype.set=function(t,e){e!==this.data[t]&&(this.data[t]=e,this.depend.dirty(t))},t.prototype.delete=function(t){Gr.call(this.data,t)&&(delete this.data[t],this.depend.dirty(t))},t.prototype.clear=function(){this.replace(null)},t.prototype.replace=function(t){var e=this;t?(Object.keys(t).forEach((function(r){e.set(r,t[r])})),Object.keys(this.data).forEach((function(r){Gr.call(t,r)||e.delete(r)}))):Object.keys(this.data).forEach((function(t){e.delete(t)}))},t}();function Hr(t){return new Wr(t)}var Qr=function(){function t(t){var e=this,r=void 0===t?{}:t,n=r.cacheKeyRoot,i=void 0===n?new Ur(_e.e):n,o=r.freezeResults,a=void 0!==o&&o,s=this,c=s.executeStoreQuery,u=s.executeSelectionSet,l=s.executeSubSelectedArray;this.freezeResults=a,this.executeStoreQuery=zr((function(t){return c.call(e,t)}),{makeCacheKey:function(t){var e=t.query,r=t.rootValue,n=t.contextValue,o=t.variableValues,a=t.fragmentMatcher;if(n.store instanceof Wr)return i.lookup(n.store,e,a,JSON.stringify(o),r.id)}}),this.executeSelectionSet=zr((function(t){return u.call(e,t)}),{makeCacheKey:function(t){var e=t.selectionSet,r=t.rootValue,n=t.execContext;if(n.contextValue.store instanceof Wr)return i.lookup(n.contextValue.store,e,n.fragmentMatcher,JSON.stringify(n.variableValues),r.id)}}),this.executeSubSelectedArray=zr((function(t){return l.call(e,t)}),{makeCacheKey:function(t){var e=t.field,r=t.array,n=t.execContext;if(n.contextValue.store instanceof Wr)return i.lookup(n.contextValue.store,e,r,JSON.stringify(n.variableValues))}})}return t.prototype.readQueryFromStore=function(t){return this.diffQueryAgainstStore(Object(ye.a)(Object(ye.a)({},t),{returnPartialData:!1})).result},t.prototype.diffQueryAgainstStore=function(t){var e=t.store,r=t.query,n=t.variables,i=t.previousResult,o=t.returnPartialData,a=void 0===o||o,s=t.rootId,c=void 0===s?"ROOT_QUERY":s,u=t.fragmentMatcherFunction,l=t.config,p=Object(_e.o)(r);n=Object(_e.c)({},Object(_e.h)(p),n);var d={store:e,dataIdFromObject:l&&l.dataIdFromObject,cacheRedirects:l&&l.cacheRedirects||{}},f=this.executeStoreQuery({query:r,rootValue:{type:"id",id:c,generated:!0,typename:"Query"},contextValue:d,variableValues:n,fragmentMatcher:u}),h=f.missing&&f.missing.length>0;return h&&!a&&f.missing.forEach((function(t){if(!t.tolerable)throw new Se.a(8)})),i&&Object(we.a)(i,f.result)&&(f.result=i),{result:f.result,complete:!h}},t.prototype.executeStoreQuery=function(t){var e=t.query,r=t.rootValue,n=t.contextValue,i=t.variableValues,o=t.fragmentMatcher,a=void 0===o?Kr:o,s=Object(_e.l)(e),c=Object(_e.j)(e),u={query:e,fragmentMap:Object(_e.g)(c),contextValue:n,variableValues:i,fragmentMatcher:a};return this.executeSelectionSet({selectionSet:s.selectionSet,rootValue:r,execContext:u})},t.prototype.executeSelectionSet=function(t){var e=this,r=t.selectionSet,n=t.rootValue,i=t.execContext,o=i.fragmentMap,a=i.contextValue,s=i.variableValues,c={result:null},u=[],l=a.store.get(n.id),p=l&&l.__typename||"ROOT_QUERY"===n.id&&"Query"||void 0;function d(t){var e;return t.missing&&(c.missing=c.missing||[],(e=c.missing).push.apply(e,t.missing)),t.result}return r.selections.forEach((function(t){var r;if(Object(_e.F)(t,s))if(Object(_e.t)(t)){var c=d(e.executeField(l,p,t,i));void 0!==c&&u.push(((r={})[Object(_e.E)(t)]=c,r))}else{var f=void 0;if(Object(_e.v)(t))f=t;else if(!(f=o[t.name.value]))throw new Se.a(9);var h=f.typeCondition&&f.typeCondition.name.value,m=!h||i.fragmentMatcher(n,h,a);if(m){var v=e.executeSelectionSet({selectionSet:f.selectionSet,rootValue:n,execContext:i});"heuristic"===m&&v.missing&&(v=Object(ye.a)(Object(ye.a)({},v),{missing:v.missing.map((function(t){return Object(ye.a)(Object(ye.a)({},t),{tolerable:!0})}))})),u.push(d(v))}}})),c.result=Object(_e.B)(u),this.freezeResults,c},t.prototype.executeField=function(t,e,r,n){var i=n.variableValues,o=n.contextValue,a=function(t,e,r,n,i,o){o.resultKey;var a=o.directives,s=r;(n||a)&&(s=Object(_e.p)(s,n,a));var c=void 0;if(t&&void 0===(c=t[s])&&i.cacheRedirects&&"string"==typeof e){var u=i.cacheRedirects[e];if(u){var l=u[r];l&&(c=l(t,n,{getCacheKey:function(t){var e=i.dataIdFromObject(t);return e&&Object(_e.H)({id:e,typename:t.__typename})}}))}}return void 0===c?{result:c,missing:[{object:t,fieldName:s,tolerable:!1}]}:(Object(_e.w)(c)&&(c=c.json),{result:c})}(t,e,r.name.value,Object(_e.b)(r,i),o,{resultKey:Object(_e.E)(r),directives:Object(_e.i)(r,i)});return Array.isArray(a.result)?this.combineExecResults(a,this.executeSubSelectedArray({field:r,array:a.result,execContext:n})):r.selectionSet?null==a.result?a:this.combineExecResults(a,this.executeSelectionSet({selectionSet:r.selectionSet,rootValue:a.result,execContext:n})):(Yr(r,a.result),this.freezeResults,a)},t.prototype.combineExecResults=function(){for(var t,e=[],r=0;r=0)return!0;r[t].push(e)}else r[t]=[e];return!1}var rn={fragmentMatcher:new Br,dataIdFromObject:function(t){if(t.__typename){if(void 0!==t.id)return t.__typename+":"+t.id;if(void 0!==t._id)return t.__typename+":"+t._id}return null},addTypename:!0,resultCaching:!0,freezeResults:!1};var nn=Object.prototype.hasOwnProperty,on=function(t){function e(e,r,n){var i=t.call(this,Object.create(null))||this;return i.optimisticId=e,i.parent=r,i.transaction=n,i}return Object(ye.c)(e,t),e.prototype.toObject=function(){return Object(ye.a)(Object(ye.a)({},this.parent.toObject()),this.data)},e.prototype.get=function(t){return nn.call(this.data,t)?this.data[t]:this.parent.get(t)},e}(Jr),an=function(t){function e(e){void 0===e&&(e={});var r=t.call(this)||this;r.watches=new Set,r.typenameDocumentCache=new Map,r.cacheKeyRoot=new Ur(_e.e),r.silenceBroadcast=!1,r.config=Object(ye.a)(Object(ye.a)({},rn),e),r.config.customResolvers&&(r.config.cacheRedirects=r.config.customResolvers),r.config.cacheResolvers&&(r.config.cacheRedirects=r.config.cacheResolvers),r.addTypename=!!r.config.addTypename,r.data=r.config.resultCaching?new Wr:new Jr,r.optimisticData=r.data,r.storeWriter=new Zr,r.storeReader=new Qr({cacheKeyRoot:r.cacheKeyRoot,freezeResults:e.freezeResults});var n=r,i=n.maybeBroadcastWatch;return r.maybeBroadcastWatch=zr((function(t){return i.call(r,t)}),{makeCacheKey:function(t){if(!t.optimistic&&!t.previousResult)return n.data instanceof Wr?n.cacheKeyRoot.lookup(t.query,JSON.stringify(t.variables)):void 0}}),r}return Object(ye.c)(e,t),e.prototype.restore=function(t){return t&&this.data.replace(t),this},e.prototype.extract=function(t){return void 0===t&&(t=!1),(t?this.optimisticData:this.data).toObject()},e.prototype.read=function(t){if("string"==typeof t.rootId&&void 0===this.data.get(t.rootId))return null;var e=this.config.fragmentMatcher,r=e&&e.match;return this.storeReader.readQueryFromStore({store:t.optimistic?this.optimisticData:this.data,query:this.transformDocument(t.query),variables:t.variables,rootId:t.rootId,fragmentMatcherFunction:r,previousResult:t.previousResult,config:this.config})||null},e.prototype.write=function(t){var e=this.config.fragmentMatcher,r=e&&e.match;this.storeWriter.writeResultToStore({dataId:t.dataId,result:t.result,variables:t.variables,document:this.transformDocument(t.query),store:this.data,dataIdFromObject:this.config.dataIdFromObject,fragmentMatcherFunction:r}),this.broadcastWatches()},e.prototype.diff=function(t){var e=this.config.fragmentMatcher,r=e&&e.match;return this.storeReader.diffQueryAgainstStore({store:t.optimistic?this.optimisticData:this.data,query:this.transformDocument(t.query),variables:t.variables,returnPartialData:t.returnPartialData,previousResult:t.previousResult,fragmentMatcherFunction:r,config:this.config})},e.prototype.watch=function(t){var e=this;return this.watches.add(t),function(){e.watches.delete(t)}},e.prototype.evict=function(t){throw new Se.a(7)},e.prototype.reset=function(){return this.data.clear(),this.broadcastWatches(),Promise.resolve()},e.prototype.removeOptimistic=function(t){for(var e=[],r=0,n=this.optimisticData;n instanceof on;)n.optimisticId===t?++r:e.push(n),n=n.parent;if(r>0){for(this.optimisticData=n;e.length>0;){var i=e.pop();this.performTransaction(i.transaction,i.optimisticId)}this.broadcastWatches()}},e.prototype.performTransaction=function(t,e){var r=this.data,n=this.silenceBroadcast;this.silenceBroadcast=!0,"string"==typeof e&&(this.data=this.optimisticData=new on(e,this.optimisticData,t));try{t(this)}finally{this.silenceBroadcast=n,this.data=r}this.broadcastWatches()},e.prototype.recordOptimisticTransaction=function(t,e){return this.performTransaction(t,e)},e.prototype.transformDocument=function(t){if(this.addTypename){var e=this.typenameDocumentCache.get(t);return e||(e=Object(_e.a)(t),this.typenameDocumentCache.set(t,e),this.typenameDocumentCache.set(e,e)),e}return t},e.prototype.broadcastWatches=function(){var t=this;this.silenceBroadcast||this.watches.forEach((function(e){return t.maybeBroadcastWatch(e)}))},e.prototype.maybeBroadcastWatch=function(t){t.callback(this.diff({query:t.query,variables:t.variables,previousResult:t.previousResult&&t.previousResult(),optimistic:t.optimistic}))},e}(dr),sn=r("633a"),cn=function(t){function e(e){var r=t.call(this)||this;return e instanceof sn.SubscriptionClient?r.subscriptionClient=e:r.subscriptionClient=new sn.SubscriptionClient(e.uri,e.options,e.webSocketImpl),r}return Object(ye.c)(e,t),e.prototype.request=function(t){return this.subscriptionClient.request(t)},e}(Ne);function un(t){return new Ne((function(e,r){return new Ee((function(n){var i,o,a;try{i=r(e).subscribe({next:function(i){i.errors&&(a=t({graphQLErrors:i.errors,response:i,operation:e,forward:r}))?o=a.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)}):n.next(i)},error:function(i){(a=t({operation:e,networkError:i,graphQLErrors:i&&i.result&&i.result.errors,forward:r}))?o=a.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)}):n.error(i)},complete:function(){a||n.complete.bind(n)()}})}catch(i){t({networkError:i,operation:e,forward:r}),n.error(i)}return function(){i&&i.unsubscribe(),o&&i.unsubscribe()}}))}))}!function(t){function e(e){var r=t.call(this)||this;return r.link=un(e),r}Object(ye.c)(e,t),e.prototype.request=function(t,e){return this.link.request(t,e)}}(Ne);var ln,pn,dn=function(){function t(t,e,r,n){var i=this;this.operation=t,this.nextLink=e,this.delayFor=r,this.retryIf=n,this.retryCount=0,this.values=[],this.complete=!1,this.canceled=!1,this.observers=[],this.currentSubscription=null,this.onNext=function(t){i.values.push(t);for(var e=0,r=i.observers;e=i)&&(r?r(n,e):!!n)}}(i),r}return Object(ye.c)(e,t),e.prototype.request=function(t,e){var r=new dn(t,e,this.delayFor,this.retryIf);return r.start(),new Ee((function(t){return r.subscribe(t),function(){r.unsubscribe(t)}}))},e}(Ne);(function(t){t.Ok="ok",t.Exited="exited",t.Crashed="crashed",t.Abnormal="abnormal"})(ln||(ln={})),function(t){t.Ok="ok",t.Errored="errored",t.Crashed="crashed"}(pn||(pn={}));var hn=r("f7f6"),mn=r("91db"),vn=Object(hn.e)(),gn="Sentry Logger ",bn=function(){function t(){this._enabled=!1}return t.prototype.disable=function(){this._enabled=!1},t.prototype.enable=function(){this._enabled=!0},t.prototype.log=function(){for(var t=[],e=0;e=0?Object(ye.g)(this._breadcrumbs,[r]).slice(-e):Object(ye.g)(this._breadcrumbs,[r]),this._notifyScopeListeners(),this},t.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},t.prototype.applyToEvent=function(t,e){var r;if(this._extra&&Object.keys(this._extra).length&&(t.extra=Object(ye.a)(Object(ye.a)({},this._extra),t.extra)),this._tags&&Object.keys(this._tags).length&&(t.tags=Object(ye.a)(Object(ye.a)({},this._tags),t.tags)),this._user&&Object.keys(this._user).length&&(t.user=Object(ye.a)(Object(ye.a)({},this._user),t.user)),this._contexts&&Object.keys(this._contexts).length&&(t.contexts=Object(ye.a)(Object(ye.a)({},this._contexts),t.contexts)),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts=Object(ye.a)({trace:this._span.getTraceContext()},t.contexts);var n=null===(r=this._span.transaction)||void 0===r?void 0:r.name;n&&(t.tags=Object(ye.a)({transaction:n},t.tags))}return this._applyFingerprint(t),t.breadcrumbs=Object(ye.g)(t.breadcrumbs||[],this._breadcrumbs),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,this._notifyEventProcessors(Object(ye.g)(kn(),this._eventProcessors),t,e)},t.prototype._notifyEventProcessors=function(t,e,r,n){var i=this;return void 0===n&&(n=0),new En((function(o,a){var s=t[n];if(null===e||"function"!=typeof s)o(e);else{var c=s(Object(ye.a)({},e),r);Object(xn.m)(c)?c.then((function(e){return i._notifyEventProcessors(t,e,r,n+1).then(o)})).then(null,a):i._notifyEventProcessors(t,c,r,n+1).then(o).then(null,a)}}))},t.prototype._notifyScopeListeners=function(){var t=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(e){e(t)})),this._notifyingListeners=!1)},t.prototype._applyFingerprint=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t}();function kn(){var t=Object(hn.e)();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function On(t){kn().push(t)}var Tn=r("e8f5"),jn=function(){function t(t){this.errors=0,this.sid=Object(hn.i)(),this.duration=0,this.status=ln.Ok,this.init=!0,this.ignoreDuration=!1;var e=Object(mn.b)();this.timestamp=e,this.started=e,t&&this.update(t)}return t.prototype.update=function(t){if(void 0===t&&(t={}),t.user&&(t.user.ip_address&&(this.ipAddress=t.user.ip_address),t.did||(this.did=t.user.id||t.user.email||t.user.username)),this.timestamp=t.timestamp||Object(mn.b)(),t.ignoreDuration&&(this.ignoreDuration=t.ignoreDuration),t.sid&&(this.sid=32===t.sid.length?t.sid:Object(hn.i)()),void 0!==t.init&&(this.init=t.init),t.did&&(this.did=""+t.did),"number"==typeof t.started&&(this.started=t.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof t.duration)this.duration=t.duration;else{var e=this.timestamp-this.started;this.duration=e>=0?e:0}t.release&&(this.release=t.release),t.environment&&(this.environment=t.environment),t.ipAddress&&(this.ipAddress=t.ipAddress),t.userAgent&&(this.userAgent=t.userAgent),"number"==typeof t.errors&&(this.errors=t.errors),t.status&&(this.status=t.status)},t.prototype.close=function(t){t?this.update({status:t}):this.status===ln.Ok?this.update({status:ln.Exited}):this.update()},t.prototype.toJSON=function(){return Object(Tn.a)({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*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(Tn.a)({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},t}(),Cn=(function(){function t(t,e){var r=this;this.flushTimeout=60,this._pendingAggregates={},this._isEnabled=!0,this._transport=t,this._intervalId=setInterval((function(){return r.flush()}),1e3*this.flushTimeout),this._sessionAttrs=e}t.prototype.sendSessionAggregates=function(t){this._transport.sendSession?this._transport.sendSession(t).then(null,(function(t){_n.error("Error while sending session: "+t)})):_n.warn("Dropping session because custom transport doesn't implement sendSession")},t.prototype.flush=function(){var t=this.getSessionAggregates();0!==t.aggregates.length&&(this._pendingAggregates={},this.sendSessionAggregates(t))},t.prototype.getSessionAggregates=function(){var t=this,e=Object.keys(this._pendingAggregates).map((function(e){return t._pendingAggregates[parseInt(e)]})),r={attrs:this._sessionAttrs,aggregates:e};return Object(Tn.a)(r)},t.prototype.close=function(){clearInterval(this._intervalId),this._isEnabled=!1,this.flush()},t.prototype.incrementSessionStatusCount=function(){var t,e;if(this._isEnabled){var r=Nn().getScope(),n=null===(t=r)||void 0===t?void 0:t.getRequestSession();n&&n.status&&(this._incrementSessionStatusCount(n.status,new Date),null===(e=r)||void 0===e||e.setRequestSession(void 0))}},t.prototype._incrementSessionStatusCount=function(t,e){var r=new Date(e).setSeconds(0,0);this._pendingAggregates[r]=this._pendingAggregates[r]||{};var n=this._pendingAggregates[r];switch(n.started||(n.started=new Date(r).toISOString()),t){case pn.Errored:return n.errored=(n.errored||0)+1,n.errored;case pn.Ok:return n.exited=(n.exited||0)+1,n.exited;case pn.Crashed:return n.crashed=(n.crashed||0)+1,n.crashed}}}(),4),In=function(){function t(t,e,r){void 0===e&&(e=new Sn),void 0===r&&(r=Cn),this._version=r,this._stack=[{}],this.getStackTop().scope=e,this.bindClient(t)}return t.prototype.isOlderThan=function(t){return this._version{Rt.debug("[createGraphqlClient]");const e=new Ne((e,r)=>r(e).map(r=>{const{response:{headers:n}}=e.getContext();if(n){const e=n.get("x-environment")||null;e&&t.commit("SET_MY_SERVERS_ENV",e)}return r})).concat(new ar({uri:`${$n.protocol}//${$n.host}/graphql`})),r=`${$n.protocol.includes("https")?"wss://":"ws://"}${$n.host}/graphql`,n=new cn({uri:r,options:{timeout:65e3,reconnect:!0,connectionParams:{"x-api-key":t.state.apikey}}});let i;n.subscriptionClient.maxConnectTimeGenerator.setMin(3e3),n.subscriptionClient.onConnected(()=>{Rt.debug("[🚀 wslink.onConnected 🚀]"),t.commit("SET_GRAPH_ONLINE",!0),t.state.myServersError&&t.commit("SET_MY_SERVERS_ERROR",null)}),n.subscriptionClient.onReconnected(()=>{Rt.debug("[🚀 wslink.onReconnected 🚀]"),t.commit("SET_GRAPH_ONLINE",!0),t.state.myServersError&&t.commit("SET_MY_SERVERS_ERROR",null)}),n.subscriptionClient.onDisconnected(()=>{t.state.graphOnline&&(clearTimeout(i),i=setTimeout(()=>{Rt.debug("[🚀 wslink.onDisconnected 🚀]"),t.commit("SET_GRAPH_ONLINE",!1),t.state.myServersError||t.commit("SET_MY_SERVERS_ERROR","Disconnected from Unraid API")},150))});const o=Re(({query:t})=>{const e=Object(_e.l)(t);return"OperationDefinition"===e.kind&&"subscription"===e.operation},n,e),a=function(t){return new Ne((function(e,r){var n=Object(ye.f)(e,[]);return new Ee((function(i){var o;return Promise.resolve(n).then((function(r){return t(r,e.getContext())})).then(e.setContext).then((function(){o=r(e).subscribe({next:i.next.bind(i),error:i.error.bind(i),complete:i.complete.bind(i)})})).catch(i.error.bind(i)),function(){o&&o.unsubscribe()}}))}))}((e,{headers:r})=>({headers:{...r,"x-api-key":t.state.apikey}})),s=un(({graphQLErrors:e,networkError:r})=>{if(e){Rt.error("[GraphQL error] %o",e);const r=e[0].message||e[0].error.message||"No error object - [UNRAID]";t.commit("SET_MY_SERVERS_ERROR",r),t.state.sentryEnabled&&r.includes('guest doesn\'t have permission to access "servers"')&&(Rt.debug("[SPECIAL • SENTRY] ✨✨✨"),Fn(t=>{t.setTag("specialTracking","guestNoPermissionsToAccessServers"),t.setLevel("error"),Un(new Error(r))}))}r&&(Rt.error("[Network error]",r),t.commit("SET_MY_SERVERS_ERROR",r.message)),t.commit("SET_MY_SERVERS_LOADING",!1)}),c=new fn({delay:{initial:300,max:1/0,jitter:!0},attempts:{max:1/0,retryIf:(e,r)=>(Rt.debug("[retryLink - retryIf]",{error:e,_operation:r}),t.commit("SET_GRAPH_ONLINE",!1),!!e)}});return new tr({link:Ne.from([c,s,a,o]),connectToDevTools:!1,cache:new an,defaultOptions:{watchQuery:{fetchPolicy:"no-cache"},query:{fetchPolicy:"no-cache"},mutate:{fetchPolicy:"no-cache"},subscribe:{fetchPolicy:"no-cache"}}})},qn=t=>{if(!t.state.apikey)return Rt.debug("[getGraphqlClient] NO API KEY");if(Object.keys(Vn).includes(t.state.apikey))return Rt.debug("[getGraphqlClient] found existing client"),Vn[t.state.apikey];Rt.debug("[getGraphqlClient] new client inbound");const e=zn(t);return Vn[t.state.apikey]=e,e};var Bn=function(){return(Bn=Object.assign||function(t){for(var e,r=1,n=arguments.length;r0)&&(r(i.reverse()[0]),n.clearMeasures&&n.clearMeasures(e),Yn.callbacks.delete(e),Yn.callbacks.size<1&&(Yn.observer.disconnect(),n.clearResourceTimings&&n.clearResourceTimings()),!0)},Yn={callbacks:new Map,observer:null,observe:function(t,e){if(t&&e){var r=Hn.a.polyfill("performance",{doThrow:!1});(function(t,e){return!Yn.observer&&t&&e&&(Yn.observer=new e((function(e){Yn.callbacks.forEach((function(r,n){Qn(e,n,r,t)}))})),t.clearResourceTimings&&t.clearResourceTimings()),Yn.observer})(r,Hn.a.polyfill("PerformanceObserver",{doThrow:!1}))&&(Qn(r,t,e,r)||(Yn.callbacks.size<1&&Yn.observer.observe({entryTypes:["resource","measure"]}),Yn.callbacks.set(t,e)))}}},Kn=Yn,Jn=function(t){this.error=t},Xn=function(){return(Xn=Object.assign||function(t){for(var e,r=1,n=arguments.length;r1?r[0]+t+"?"+r[1]:this._url+t})},t.prototype.options=function(t,e){return void 0===e&&(e=!0),this.selfFactory({options:e?Wn(this._options,t):t})},t.prototype.query=function(t,e){return void 0===e&&(e=!1),this.selfFactory({url:ni(this._url,t,e)})},t.prototype.headers=function(t){return this.selfFactory({options:Wn(this._options,{headers:t||{}})})},t.prototype.accept=function(t){return this.headers({Accept:t})},t.prototype.content=function(t){var e;return this.headers(((e={})[ei]=t,e))},t.prototype.auth=function(t){return this.headers({Authorization:t})},t.prototype.catcher=function(t,e){var r=new Map(this._catchers);return r.set(t,e),this.selfFactory({catchers:r})},t.prototype.signal=function(t){return this.selfFactory({options:Xn(Xn({},this._options),{signal:t.signal})})},t.prototype.resolve=function(t,e){return void 0===e&&(e=!1),this.selfFactory({resolvers:e?[t]:Zn(this._resolvers,[t])})},t.prototype.defer=function(t,e){return void 0===e&&(e=!1),this.selfFactory({deferredChain:e?[t]:Zn(this._deferredChain,[t])})},t.prototype.middlewares=function(t,e){return void 0===e&&(e=!1),this.selfFactory({middlewares:e?t:Zn(this._middlewares,t)})},t.prototype.method=function(t,e,r){void 0===e&&(e={}),void 0===r&&(r=null);var n=this._options.headers,i=r?"object"!=typeof r||n&&!Object.entries(n).every((function(t){var e=t[0],r=t[1];return e.toLowerCase()!==ei.toLowerCase()||r.startsWith(ti)}))?this.body(r):this.json(r):this;return function(t){var e=t._url,r=t._catchers,n=t._resolvers,i=t._middlewares,o=t._options,a=new Map(r),s=Wn(Hn.a.defaults,o),c=Hn.a.polyfill("AbortController",{doThrow:!1,instance:!0});!s.signal&&c&&(s.signal=c.signal);var u={ref:null,clear:function(){u.ref&&(clearTimeout(u.ref),u.ref=null)}},l=function(t){return function(e){return 0===t.length?e:1===t.length?t[0](e):t.reduceRight((function(r,n,i){return i===t.length-2?n(r(e)):n(r)}))}}(i)(Hn.a.polyfill("fetch"))(e,s),p=l.catch((function(t){throw new Jn(t)})).then((function(t){return u.clear(),t.ok?t:t[Hn.a.errorType||"text"]().then((function(e){var r=new Error(e);throw r[Hn.a.errorType||"text"]=e,r.status=t.status,r.response=t,r}))})),d=function(e){return e.catch((function(e){u.clear();var r=e instanceof Jn?e.error:e;if(e instanceof Jn&&a.has("__fromFetch"))return a.get("__fromFetch")(r,t);if(a.has(r.status))return a.get(r.status)(r,t);if(a.has(r.name))return a.get(r.name)(r,t);throw r}))},f=function(t){return function(e){return d(t?p.then((function(e){return e&&e[t]()})).then((function(t){return e?e(t):t})):p.then((function(t){return e?e(t):t})))}},h={res:f(null),json:f("json"),blob:f("blob"),formData:f("formData"),arrayBuffer:f("arrayBuffer"),text:f("text"),perfs:function(t){return l.then((function(e){return Kn.observe(e.url,t)})),h},setTimeout:function(t,e){return void 0===e&&(e=c),u.clear(),u.ref=setTimeout((function(){return e.abort()}),t),h},controller:function(){return[c,h]},error:function(t,e){return a.set(t,e),h},badRequest:function(t){return h.error(400,t)},unauthorized:function(t){return h.error(401,t)},forbidden:function(t){return h.error(403,t)},notFound:function(t){return h.error(404,t)},timeout:function(t){return h.error(408,t)},internalError:function(t){return h.error(500,t)},fetchError:function(t){return h.error("__fromFetch",t)},onAbort:function(t){return h.error("AbortError",t)}};return n.reduce((function(e,r){return r(e,t)}),h)}((i=i.options(Xn(Xn({},e),{method:t})))._deferredChain.reduce((function(t,e){return e(t,t._url,t._options)}),i))},t.prototype.get=function(t){return this.method("GET",t)},t.prototype.delete=function(t){return this.method("DELETE",t)},t.prototype.put=function(t,e){return this.method("PUT",e,t)},t.prototype.post=function(t,e){return this.method("POST",e,t)},t.prototype.patch=function(t,e){return this.method("PATCH",e,t)},t.prototype.head=function(t){return this.method("HEAD",t)},t.prototype.opts=function(t){return this.method("OPTIONS",t)},t.prototype.replay=function(t){return this.method(this._options.method,t)},t.prototype.body=function(t){return this.selfFactory({options:Xn(Xn({},this._options),{body:t})})},t.prototype.json=function(t){var e,r=null===(e=Object.entries(this._options.headers||{}).find((function(t){var e=t[0],r=t[1];return e.toLowerCase()===ei.toLowerCase()&&r.startsWith(ti)})))||void 0===e?void 0:e[1];return this.content(r||ti).body(JSON.stringify(t))},t.prototype.formData=function(t,e){return void 0===e&&(e=!1),this.body(function t(e,r,n,i){return void 0===r&&(r=!1),void 0===n&&(n=Hn.a.polyfill("FormData",{instance:!0})),void 0===i&&(i=[]),Object.entries(e).forEach((function(e){var o=e[0],a=e[1],s=i.reduce((function(t,e){return t?t+"["+e+"]":e}),null);if(s=s?s+"["+o+"]":o,a instanceof Array)for(var c=0,u=a;cRt.error(t));const si=ai("https://keys.lime-technology.com").catcher(t=>Rt.error(t)),ci=ai("https://mothership.unraid.net/wanip").catcher(t=>Rt.error(t)),ui=ai("/webGui/include/InstallKey.php").catcher(t=>Rt.error(t)),li=ai().catcher(t=>Rt.error(t)),pi=ai("/update.php").catcher(t=>Rt.error(t)),di=ai("/webGui/include/UpdateDNS.php").catcher(t=>Rt.error(t));let fi=0;const hi=t=>{setTimeout(()=>{di.formUrl({csrf_token:t}).post().res(t=>Rt.debug("[WebguiUpdateDns] %o",t)).catch(t=>Rt.error("[WebguiUpdateDns] %o",t))},500)},mi={openPopUp({commit:t,dispatch:e,state:r},n){if(Rt.debug("[openPopUp]: %o",n||"focus existing pop-up"),r.popUpWindow)return r.popUpWindow.focus();const i=((t,e,r,n)=>{const i=void 0!==window.screenLeft?window.screenLeft:window.screenX,o=void 0!==window.screenTop?window.screenTop:window.screenY,a=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:window.screen.width,s=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:window.screen.height,c=a/window.screen.availWidth>1?a/window.screen.availWidth:1,u=(a-r)/2/c+i,l=(s-n)/2/c+o,p=Object.entries({toolbar:"no",location:"yes",status:"no",menubar:"no",scrollbars:"yes",resizable:"yes",width:r/c,height:n/c,top:l,left:u}).reduce((t,e)=>t+`${e[0]}=${e[1]},`,"");return window.open(t,e,p)})(n.url,n.name,n.width,n.height),o=r.darkMode,a=n.url.toString().includes("/preflight")?"#fff":"linear-gradient(to right, #E22828 0%, #ff8c2f 100%)";i.document.body.style.background=o?"#222":a;try{i.focus(),t("CHANGE_POP_UP_WINDOW",i),t("STATE_AT_OPEN",r.registered);const n=setInterval(()=>{r.popUpWindow||clearInterval(n),r.popUpWindow&&r.popUpWindow.closed&&(clearInterval(n),e("resetPopUp",{reloadWebGUI:!1}))},250);return window.onunload=()=>{r.popUpWindow&&!r.popUpWindow.closed&&r.popUpWindow.close()},!0}catch(t){return alert("Pop-up blocker detected.\nTo continue successfully please add this website to your browser's exeception list then refresh.")}},resetPopUp({commit:t,dispatch:e},r={reloadWebGUI:!0}){Rt.debug("[resetPopUp]: %o",r),t("CHANGE_POP_UP_WINDOW",null),e("updateServerState"),r.reloadWebGUI&&e("reloadWebGUI")},closePopUp({dispatch:t,state:e},r={reloadWebGUI:!1}){Rt.debug("[closePopUp]: %o",r),e.popUpWindow&&(e.popUpWindow.close(),t("resetPopUp",{reloadWebGUI:r.reloadWebGUI}))},reloadWebGUI(){Rt.debug("[reloadWebGUI]: %s","✨"),window.location.reload()},closePopUpFromPopUp({dispatch:t}){Rt.debug("[closePopUpFromPopUp]: %o"),t("resetPopUp"),window.close()},sendDataPostMessageToServer({state:t}){const e="SignOut"===t.submissionFrom?{event:"MYSERVERS_UNREGISTER"}:{event:"REG_WIZARD",keyfile:t.keyfile,license:t.license,email:t.userEmail,apikey:t.apikey,avatar:t.avatar,username:t.username,guid:t.guid};Rt.debug("[sendDataPostMessageToServer]: %o",e);try{return St.postMessage(JSON.stringify(e),"*")}catch(t){return Et||Rt.warn("[sendDataPostMessageToServer] !CAN_POST_MESSAGE",e),Rt.error("[sendDataPostMessageToServer]: %o",t)}},requestUpdatedServerStateFromUpc({state:t}){Rt.debug("[requestUpdatedServerStateFromUpc]");try{return St.postMessage(JSON.stringify({event:"SUCCESS_NEW_STATE"}),t.site)}catch(t){return Et||Rt.warn("[requestUpdatedServerStateFromUpc] !CAN_POST_MESSAGE",Et),Rt.error("[requestUpdatedServerStateFromUpc]: %o",t)}},receivePostMessage({commit:t,dispatch:e,getters:r,state:n},i={inject:!1,event:null}){if(!i.event)return void Rt.error("postMessage no event");const[o,a]=Ot(i.event.data);if(o)return;Rt.debug("[receivePostMessage]: %o",a);const s=i.event.origin===gt,c=bt.includes(i.event.origin),u=!(!a||!a.server)&&a.server.site&&i.event.origin===a.server.site,l=i.event.origin===n.site,p="SESSION"===a.event?u:l,d=s||c||p;if(Rt.debug("[originAllowed]: %o",{originAllowed:d,fromRegWiz:s,fromPurchase:c,fromWebGui:p,pmOriginMatchesDataServerUrl:u,pmOriginMatchesStateSite:l}),!d)return void Rt.error("❌ postMessage origin not allowed ❌");const f=t=>{Rt.debug("[sendBackPostMessage] %o",t);try{return i.event.source.postMessage(JSON.stringify(t),i.event.origin)}catch(e){return Rt.error("[sendBackPostMessage.catch] %o",{error:e,message:t})}},h=async t=>{if(!t)return Rt.error("[installKey] missing license data: %s",t);let e=t.split("/");if(e=e[e.length-1].slice(0,-4).toUpperCase(),e===n.state)return f({event:"LICENSE_PINGBACK",message:"Failed to license new key – duplicate install detected",license:t,success:!1}),Rt.error("[installKey] duplicate install detected",{state:n.state,keyType:e});Rt.debug("[installKey] %o",t);return await ui.query({url:t}).get().res(e=>{Rt.log("[installKey] SUCCESS ✨"),Rt.debug("[installKey] SUCCESS res %o",e),setTimeout(()=>{hi(n.csrf)},1e3),f({event:"LICENSE_PINGBACK",message:"New license key installed",license:t,success:!0})}).catch(e=>{Rt.error("[installKey] FAILED: "+t,e),f({event:"LICENSE_PINGBACK",message:"Failed to license new key",license:t,success:!1})})};switch(a.event){case"SESSION":Rt.debug("[receivePostMessage.SESSION]"),t("SET_FULL_SERVER_STATE",a.server),t("SET_RAW_SERVER_STATE",a.server),mt.mergeLocaleMessage(a.locale,a.messages),mt.locale=a.locale,Rt.debug(`[receivePostMessage.SESSION] ${mt.locale} locale & messages set`,mt.messages);break;case"PREFLIGHT_REQUEST":if(Rt.debug("[receivePostMessage.PREFLIGHT_REQUEST]"),!kt.includes(i.event.origin)){Rt.error("[🙅‍♂️ ACCESS DENIED]");break}Rt.debug("[receivePostMessage.SUCCESS_NEW_STATE]");try{e("updateServerState").then(t=>{Rt.debug("[SUCCESS_NEW_STATE.updateServerState.then] %o",{res:t,"getters.server":r.server}),f({event:"SESSION",server:{...r.server},locale:mt.locale,messages:{...mt.messages[mt.locale]}})}).catch(t=>{Rt.error("[SUCCESS_NEW_STATE.updateServerState.catch] %o",t),f({event:"DELIVER_NEW_STATE",success:!1})})}catch(t){Rt.error("[SUCCESS_NEW_STATE.updateServerState.trycatch] %o",t),f({event:"DELIVER_NEW_STATE",success:!1})}break;case"LICENSE_PINGBACK":Rt.debug("[receivePostMessage.LICENSE_PINGBACK]"),t("LICENSE_PINGBACK",a);break;case"ACCOUNT_PINGBACK":Rt.debug("[receivePostMessage.ACCOUNT_PINGBACK]"),t("ACCOUNT_PINGBACK",a);break;case"DELIVER_NEW_STATE":Rt.debug("[receivePostMessage.DELIVER_NEW_STATE] %o",a);const o=!!n.license,s=n.licenseAction&&!n.licenseAction.success,c=n.state,u=a&&a.state?a.state:null,l=c===u;if(Rt.debug("[DELIVER_NEW_STATE]: %o",{keyToInstall:o,failedKeyInstall:s,oldState:c,newState:u,potentiallyStaleState:l,deliverNewStateRetryCounter:fi}),s){t("RECEIVED_SUCCESS_NEW_SERVERSTATE",Date.now());break}if(o&&l&&fi<6){setTimeout(()=>{Rt.debug("[potentiallyStaleState]: %o",{potentiallyStaleState:l}),Rt.debug("[deliverNewStateRetryCounter]: %o",{deliverNewStateRetryCounter:fi}),e("requestUpdatedServerStateFromUpc"),fi+=1},350*fi);break}if(o&&l&&fi>=6){t("SET_APP_ERROR_MESSAGE",`Failed to receive latest server info${n.licenseAction&&n.licenseAction.success?" after successful key install":""}. Please close this pop-up and refresh the webGUI.`),t("RECEIVED_SUCCESS_NEW_SERVERSTATE",Date.now());break}t("SET_FULL_SERVER_STATE",a),t("SET_RAW_SERVER_STATE",a),t("RECEIVED_SUCCESS_NEW_SERVERSTATE",Date.now()),fi=0;break;case"KEY_PURCHASE":Rt.debug("[receivePostMessage.KEY_PURCHASE]"),h(a.license);break;case"MYSERVERS_UNREGISTER":Rt.debug("[receivePostMessage.MYSERVERS_UNREGISTER]: WebguiUpdate"),pi.formUrl({csrf_token:n.csrf,"#file":r.myServersCfgPath,"#section":"remote",apikey:"",avatar:"",email:"",username:"",wanaccess:"no",...!n.hideMyServers&&{"#command":"/plugins/dynamix.my.servers/scripts/.nginx_reload"}}).post().res(t=>{Rt.log("[WebguiUpdate] signed out"),Rt.debug("[receivePostMessage.MYSERVERS_UNREGISTER]: WebguiUpdate.res %o",t),f({event:"ACCOUNT_PINGBACK",success:!0,type:"signOut",webGuiPathname:window.location.pathname})}).catch(t=>{Rt.error("[WebguiUpdate] sign out failed %o",t),f({event:"ACCOUNT_PINGBACK",success:!1,type:"signOut",webGuiPathname:window.location.pathname})});break;case"REG_WIZARD":Rt.debug("[receivePostMessage.REG_WIZARD]"),a.license&&h(a.license),Rt.debug("[receivePostMessage.REG_WIZARD]: WebguiUpdate %o"),pi.formUrl({csrf_token:n.csrf,"#file":r.myServersCfgPath,"#section":"remote",regWizTime:`${Date.now()}_${a.guid}`,...a.apikey&&{apikey:a.apikey},...a.email&&{email:a.email},...a.username&&{username:a.username},...a.avatar&&{avatar:a.avatar}}).post().res(t=>{Rt.log("[WebguiUpdate]"),Rt.debug("[receivePostMessage.REG_WIZARD]: WebguiUpdate.res %o",t),a.license||hi(n.csrf),f({event:"ACCOUNT_PINGBACK",success:!0,type:"signIn",webGuiPathname:window.location.pathname})}).catch(t=>{Rt.error("[WebguiUpdate] %o",t),f({event:"ACCOUNT_PINGBACK",success:!1,type:"signIn",webGuiPathname:window.location.pathname})});break;case"RELOAD":Rt.debug("[receivePostMessage.RELOAD]"),window.location.reload();break;case"SUCCESS_NEW_STATE":Rt.debug("[receivePostMessage.SUCCESS_NEW_STATE]");try{e("updateServerState").then(t=>{Rt.debug("[SUCCESS_NEW_STATE.updateServerState.then]"),f({...t,event:"DELIVER_NEW_STATE",success:!0})}).catch(t=>{Rt.error("[SUCCESS_NEW_STATE.updateServerState.catch] %o",t),f({event:"DELIVER_NEW_STATE",success:!1})})}catch(t){Rt.error("[SUCCESS_NEW_STATE.updateServerState.trycatch] %o",t),f({event:"DELIVER_NEW_STATE",success:!1})}break;case"REDIRECT_MAIN":Rt.debug("[receivePostMessage.REDIRECT_MAIN]"),window.location.href="/Main";break;default:Rt.debug("[receivePostMessage.UNHANDLED_MESSAGE]")}},setStateFromWebComponentProp({commit:t},e){const[r,n]=Ot(decodeURIComponent(e));return r?Rt.error("[setStateFromWebComponentProp]: %o",e):(Rt.debug("[setStateFromWebComponentProp]: %o",n),t("SET_FULL_SERVER_STATE",n))},async updateServerState({commit:t,dispatch:e,getters:r,state:n}){if(Rt.debug("[updateServerState]"),gt===window.location.origin)return Rt.debug("[SKIPPED] updateServerState()");Rt.debug("[updateServerState]",{"state.hideMyServers":n.hideMyServers,"!state.graphOnline":!n.graphOnline,"!getters.validApiKeyLength":!r.validApiKeyLength,"!getters.validApiKeyForUpc":!r.validApiKeyForUpc}),!n.hideMyServers&&n.graphOnline&&r.validApiKeyLength&&r.validApiKeyForUpc?(Rt.debug("[updateServerState] via serverStateFromApi"),await e("serverStateFromApi")):(Rt.debug("[updateServerState] via ",r.statePhpPath),await li.url(r.statePhpPath).get().json().then(e=>e?t("SET_FULL_SERVER_STATE",e):Rt.error("[updateUpcFromStatePhp]: no `res` skipping `SET_FULL_SERVER_STATE`")).catch(t=>{Rt.error("[updateUpcFromStatePhp WebguiState.catch] %o",t),t.toString().includes("Unexpected token")||t.toString().includes("503")?window.location.href="/":"TypeError: Failed to fetch"===t||Rt.error("[updateUpcFromStatePhp WebguiState.catch] %o",t)}));const i=r.server;return Rt.debug("[updateServerState] newState %o",i),i},async validateGuid({commit:t,getters:e,state:r}){await new Promise((n,i)=>{Rt.debug("[validateGuid]");let o="GUID Invalid";if(!r.guid||r.guid===xt)return o+=": not present",t("CHANGE_GUID_VALID",!1),t("SET_STATE","EBLACKLISTED1"),t("SET_APP_ERROR_MESSAGE",o),t("SET_LOADING_STATE",!1),n(!1);if(!!r.regWizTime&&r.regWizTime.split("_")[1]===r.guid&&!e.stateData.error)return Rt.debug("[validateGuid] previouslyRegistered"),t("CHANGE_GUID_REGISTERED",!0),t("CHANGE_GUID_VALID",!0),t("SET_LOADING_STATE",!1),n(!0);const a=r.guid.includes("000000000000");if(r.guid&&r.guid!==xt&&(a||27!==r.guid.length))return a?(o+=": Too many consecutive zeros",t("SET_STATE","EBLACKLISTED2")):(o+=": Not long enough",t("SET_STATE","EBLACKLISTED1")),t("CHANGE_GUID_VALID",!1),t("SET_APP_ERROR_MESSAGE",o),t("SET_LOADING_STATE",!1),i(new Error(o));const s="EGUID"===r.state?r.regGuid:r.guid;try{return n(si.url("/validate/guid").formUrl({guid:s}).post().forbidden(e=>{t("SET_APP_ERROR_MESSAGE",e.message),e.message.includes("blacklisted")?t("SET_STATE","EBLACKLISTED"):e.message.includes("invalid GUID")&&t("SET_STATE","EBLACKLISTED1"),t("CHANGE_GUID_VALID",!1)}).json(e=>{e.registered&&t("CHANGE_GUID_REGISTERED",e.registered),e.forumaccount&&t("CHANGE_GUID_FORUMACCOUNT",e.forumaccount),t("CHANGE_GUID_VALID",!0),t("CHANGE_REPLACEABLE",e.replaceable)}).catch(e=>{t("SET_APP_ERROR_MESSAGE",e.message),i(new Error(e))}).finally(()=>{t("SET_LOADING_STATE",!1)}))}catch(e){return t("SET_APP_ERROR_MESSAGE",e),i(new Error(e))}})},jumpToUpc({commit:t}){window.scrollTo({top:0,behavior:"smooth"}),t("TRIGGER_UPC",!0),setTimeout(()=>{t("TRIGGER_UPC",!1)},500)},async getWanIp({commit:t,state:e}){if(Rt.debug("[getWanIp]"),e.wanip)return Rt.debug("[getWanIp] SKIPPED",e.wanip);try{return t("SET_WANIP",await ci.get().text())}catch(t){return Rt.error("[getWanIp] Unable to get WAN IP")}},fetchServers:async t=>{Rt.debug("[fetchServers]"),t.commit("SET_MY_SERVERS_LOADING",!0);const e=await qn(t).query({query:be`query initialGetServers { servers { name guid @@ -66,6 +66,8 @@ } }`});return Rt.debug("[🪐 serverStateFromApi] response %o",e),t.commit("SET_FULL_SERVER_STATE",(t=>{const{data:e}=t;if(!e)return Rt.error("[🪐 serverStateFromApi] response %o",t);const r={registered:!!e.owner&&!(!e.owner.username||!e.owner.avatar),servername:e.info.os.hostname,username:e.owner?e.owner.username:null,avatar:e.owner?e.owner.avatar:null,guid:e.flash.guid,keyfile:e.registration.keyFile.contents||null,flashProduct:e.flash.product,flashvendor:e.flash.vendor,sendCrashInfo:e.crashReportingEnabled,reggen:e.vars.regGen,state:e.vars.regState,configValid:e.vars.configValid,configError:e.vars.configError};return Rt.debug("[🪐 serverStateFromApi] mutated response %o",r),r})(e)),Rt.debug("[🪐 serverStateFromApi] serverVarsSub"),qn(t).subscribe({query:be`subscription serverVarsSub { vars { + configValid + configError regState } }`}).subscribe({next(e){Rt.debug("[🪐 serverStateFromApi] serverVarsSub: %o",e),t.commit("SET_STATE",e.data.vars.regState)},error:e=>(t.commit("SET_MY_SERVERS_ERROR",e),t.state.myServersError)}),Rt.debug("[🪐 serverStateFromApi] serverRegsSub"),qn(t).subscribe({query:be`subscription serverRegsSub { @@ -84,4 +86,4 @@ avatar username } - }`}).subscribe({next(t){Rt.debug("[🪐 serverStateFromApi] serverOwnerSub: %o",t)},error:e=>(t.commit("SET_MY_SERVERS_ERROR",e),t.state.myServersError)}),Rt.debug("[🪐 serverStateFromApi] DONE %o",e.data),e.data},stopGraphqlClient:t=>Object.keys(Vn).includes(t)?(Rt.debug("[getGraphqlClient] found existing client & stopping it"),Vn[t]):Rt.debug("[getGraphqlClient] client does not exist for apikey %s",t)};o.default.use(b.a);var vi=new b.a.Store({state:wt,getters:Ct,mutations:Nt,actions:mi});var gi=g({i18n:mt,store:vi,name:"Authed",props:["propRegistered"],data:()=>({regChanged:!1,popUpClosedTimer:null}),computed:{...Object(b.e)(["state","registered","isPopUpOpen","signOutPayload","wizardWindow"]),...Object(b.c)(["stateData"]),computedReg(){return null===this.registered?!!this.propRegistered:this.registered},buttonPayload(){return this.stateData.error?this.wizardWindow:this.computedReg?this.signOutPayload:this.wizardWindow},buttonText(){return this.stateData.error?this.$t("fixError"):this.isPopUpOpen?this.$t("backToPopUp"):"ENOKEYFILE"===this.state?this.$t("getStarted"):this.computedReg?this.$t("signOut"):this.$t("signIn")},buttonTitle(){return this.$t("upc.opensNewHttpsWindow.base",[this.buttonText])}},watch:{isPopUpOpen(t){!t&&this.regChanged&&(Rt.debug("[REGISTERED CHANGED] 🔥 reload webGUI settings"),window.location.reload())},registered(t,e){null!==e&&t!==this.propRegistered&&(Rt.debug("[REGISTERED CHANGED]",{newVal:t,oldVal:e}),this.regChanged=!0,this.isPopUpOpen||(Rt.debug("[REGISTERED CHANGED] 🔥🔥 reload webGUI settings"),window.location.reload()))}},methods:{...Object(b.b)(["closePopUp","openPopUp"])}},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("transition",{attrs:{appear:"",name:"fade",mode:"out-in"}},[r("div",[r("button",{attrs:{type:"button",title:t.buttonTitle},on:{click:function(e){return t.openPopUp(t.buttonPayload)}}},[t._v(t._s(t.buttonText))]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[t.isPopUpOpen?r("button",{staticClass:"ml-8px",attrs:{type:"button"},on:{click:function(e){return t.closePopUp()}}},[t._v(t._s(t.$t("closePopUp")))]):t._e()])],1)])}),[],!1,(function(t){var e=r("696d");e.__inject__&&e.__inject__(t)}),"0b24b7c6",null,!0).exports,bi=(g({name:"keyline",props:{color:{type:String,default:"grey"}},computed:{computedClass(){return"gradient"===this.color?"h-2px bg-gradient-r-red-orange":"h-1px bg-grey"}}},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("hr",{staticClass:"w-full shadow-none border-none rounded-none",class:t.computedClass})}),[],!1,null,null,null,!0).exports,function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("svg",{staticClass:"unraid_sc_loader",style:t.styles,attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 133.52 76.97",height:t.height+"px",role:"img"}},[r("title",[t._v(t._s(t.title))]),r("desc",[t._v("Unraid logo animating with a wave like effect")]),r("defs",[r("linearGradient",{attrs:{id:t.random,x1:"23.76",y1:"81.49",x2:"109.76",y2:"-4.51",gradientUnits:"userSpaceOnUse"}},[r("stop",{attrs:{offset:"0","stop-color":t.gradientStart}}),r("stop",{attrs:{offset:"1","stop-color":t.gradientStop}})],1)],1),r("path",{staticClass:"unraid_sc_loader_9",attrs:{d:"m70,19.24zm57,0l6.54,0l0,38.49l-6.54,0l0,-38.49z",fill:"url(#"+t.random+")"}}),r("path",{staticClass:"unraid_sc_loader_8",attrs:{d:"m70,19.24zm47.65,11.9l-6.55,0l0,-23.79l6.55,0l0,23.79z",fill:"url(#"+t.random+")"}}),r("path",{staticClass:"unraid_sc_loader_7",attrs:{d:"m70,19.24zm31.77,-4.54l-6.54,0l0,-14.7l6.54,0l0,14.7z",fill:"url(#"+t.random+")"}}),r("path",{staticClass:"unraid_sc_loader_6",attrs:{d:"m70,19.24zm15.9,11.9l-6.54,0l0,-23.79l6.54,0l0,23.79z",fill:"url(#"+t.random+")"}}),r("path",{staticClass:"unraid_sc_loader_5",attrs:{d:"m63.49,19.24l6.51,0l0,38.49l-6.51,0l0,-38.49z",fill:"url(#"+t.random+")"}}),r("path",{staticClass:"unraid_sc_loader_4",attrs:{d:"m70,19.24zm-22.38,26.6l6.54,0l0,23.78l-6.54,0l0,-23.78z",fill:"url(#"+t.random+")"}}),r("path",{staticClass:"unraid_sc_loader_3",attrs:{d:"m70,19.24zm-38.26,43.03l6.55,0l0,14.73l-6.55,0l0,-14.73z",fill:"url(#"+t.random+")"}}),r("path",{staticClass:"unraid_sc_loader_2",attrs:{d:"m70,19.24zm-54.13,26.6l6.54,0l0,23.78l-6.54,0l0,-23.78z",fill:"url(#"+t.random+")"}}),r("path",{staticClass:"unraid_sc_loader_1",attrs:{d:"m70,19.24zm-63.46,38.49l-6.54,0l0,-38.49l6.54,0l0,38.49z",fill:"url(#"+t.random+")"}})])});var yi=g({name:"loading",props:{height:{type:Number,default:64},styles:{type:Object,default:()=>({})},gradientStart:{type:String,default:"#e32929"},gradientStop:{type:String,default:"#ff8d30"},title:{type:String,default:"Loading"}},data:()=>({random:Math.random().toString(36).substring(7)})},bi,[],!1,(function(t){var e=r("ef7a");e.__inject__&&e.__inject__(t)}),null,null,!0).exports,_i=(g({name:"logo",props:{gradientStart:{type:String,default:"#e32929"},gradientStop:{type:String,default:"#ff8d30"}},data:()=>({random:Math.random().toString(36).substring(7)})},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 222.36 39.04"}},[r("defs",[r("linearGradient",{attrs:{id:t.random,x1:"47.53",y1:"79.1",x2:"170.71",y2:"-44.08",gradientUnits:"userSpaceOnUse"}},[r("stop",{attrs:{offset:"0","stop-color":t.gradientStart}}),r("stop",{attrs:{offset:"1","stop-color":t.gradientStop}})],1)],1),r("title",[t._v("Unraid Logo")]),r("path",{attrs:{d:"M146.7,29.47H135l-3,9h-6.49L138.93,0h8l13.41,38.49h-7.09L142.62,6.93l-5.83,16.88h8ZM29.69,0V25.4c0,8.91-5.77,13.64-14.9,13.64S0,34.31,0,25.4V0H6.54V25.4c0,5.17,3.19,7.92,8.25,7.92s8.36-2.75,8.36-7.92V0ZM50.86,12v26.5H44.31V0h6.11l17,26.5V0H74V38.49H67.9ZM171.29,0h6.54V38.49h-6.54Zm51.07,24.69c0,9-5.88,13.8-15.17,13.8H192.67V0H207.3c9.18,0,15.06,4.78,15.06,13.8ZM215.82,13.8c0-5.28-3.3-8.14-8.52-8.14h-8.08V32.77h8c5.33,0,8.63-2.8,8.63-8.08ZM108.31,23.92c4.34-1.6,6.93-5.28,6.93-11.55C115.24,3.68,110.18,0,102.48,0H88.84V38.49h6.55V5.66h6.87c3.8,0,6.21,1.82,6.21,6.71s-2.41,6.76-6.21,6.76H98.88l9.21,19.36h7.53Z",fill:"url(#"+t.random+")"}})])}),[],!1,null,null,null,!0).exports,function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 133.52 76.97"}},[r("title",[t._v("unraid-mark")]),r("defs",[r("linearGradient",{attrs:{id:t.random,x1:"23.76",y1:"81.49",x2:"109.76",y2:"-4.51",gradientUnits:"userSpaceOnUse"}},[r("stop",{attrs:{offset:"0","stop-color":t.gradientStart}}),r("stop",{attrs:{offset:"1","stop-color":t.gradientStop}})],1)],1),r("path",{attrs:{fill:"url(#"+t.random+")",d:"M63.49,19.24H70V57.73H63.49ZM6.54,57.73H0V19.24H6.54Zm25.2,4.54h6.55V77H31.74ZM15.87,45.84h6.54V69.62H15.87Zm31.75,0h6.54V69.62H47.62ZM127,19.24h6.54V57.73H127ZM101.77,14.7H95.23V0h6.54Zm15.88,16.44H111.1V7.35h6.55Zm-31.75,0H79.36V7.35H85.9Z"}})])}),wi=g({name:"logo",props:{gradientStart:{type:String,default:"#e32929"},gradientStop:{type:String,default:"#ff8d30"}},data:()=>({random:Math.random().toString(36).substring(7)})},_i,[],!1,null,null,null,!0).exports,xi=r("5d74"),Ei=r.n(xi);o.default.use(Ei.a,{url:(Object({VUE_APP_REGWIZ_URL:"https://registration.unraid.net",VUE_APP_PURCHASE_URL:"https://unraid.net/preflight",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_SPRITE_URL_PREFIX?Object({VUE_APP_REGWIZ_URL:"https://registration.unraid.net",VUE_APP_PURCHASE_URL:"https://unraid.net/preflight",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_SPRITE_URL_PREFIX:"")+"/assets/svg/sprite.svg",class:"svg-icon"});var Si=(g({name:"svg-icon",props:{symbol:{type:String,required:!0},symbolClass:String}},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("svg",{directives:[{name:"svg",rawName:"v-svg"}],staticClass:"unraid-svg-icon",class:t.symbolClass,attrs:{symbol:t.symbol,title:t.symbol,role:"presentation"}})}),[],!1,(function(t){var e=r("39a1");e.__inject__&&e.__inject__(t)}),"3b60bb54",null,!0).exports,function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"text-center w-full"},[r("header",[r("h2",{staticClass:"text-24px md:text-30px",domProps:{innerHTML:t._s(t.stateData.heading?t.stateData.heading:t.stateData.error.heading)}}),r("div",{staticClass:"text-14px opacity-90 mt-12px mx-auto",class:{"text-center":t.stateData.messageCenter,"text-left":!t.stateData.messageCenter,"prose-2xl":!t.CAN_POST_MESSAGE,prose:t.CAN_POST_MESSAGE},domProps:{innerHTML:t._s(t.stateData.message?t.stateData.message:t.stateData.error.message)}},[t._t("default")],2)]),r("div",{staticClass:"ActionRequired flex flex-col justify-center mt-16px px-16px"},[t.isPopUpOpen?[r("ConditionalButton",{staticClass:"button button-alt w-full mt-8px",attrs:{text:t.$t("backToPopUp")},on:{"btn-click":function(e){return t.openPopUp(t.signInPayload)}}}),r("ConditionalButton",{staticClass:"button-fine-error text-grey-mid w-full mt-8px",attrs:{text:t.$t("closePopUp")},on:{"btn-click":function(e){return t.closePopUp()}}})]:[t.stateData.actions.includes("register")?[r("ConditionalButton",{staticClass:"button button-alt w-full mt-8px",attrs:{routeName:t.CAN_POST_MESSAGE?"SignIn":null,text:t.$t("signIn")},on:{"btn-click":function(e){return t.openPopUp(t.signInPayload)}}}),t.guidRegistered||t.forumaccount?t._e():r("ConditionalButton",{staticClass:"button button-alt w-full mt-8px",attrs:{routeName:t.CAN_POST_MESSAGE?"SignUp":null,text:t.$t("signUp")},on:{"btn-click":function(e){return t.openPopUp(t.signUpPayload)}}})]:t._e(),t.stateData.actions.includes("purchase")?r("ConditionalButton",{staticClass:"button button-alt w-full mt-8px",attrs:{hrefUrl:t.CAN_POST_MESSAGE?t.purchaseWindow.url:null,text:t.$t("actions.purchase")},on:{"btn-click":function(e){return t.openPopUp(t.purchaseWindow)}}}):t._e(),t.stateData.actions.includes("upgrade")?r("ConditionalButton",{staticClass:"button button-alt w-full mt-8px",attrs:{hrefUrl:t.CAN_POST_MESSAGE?t.purchaseWindow.url:null,text:t.$t("actions.upgrade")},on:{"btn-click":function(e){return t.openPopUp(t.purchaseWindow)}}}):t._e(),t.stateData.actions.includes("replace")&&t.replaceable?r("ConditionalButton",{staticClass:"button w-full mt-8px",attrs:{routeName:t.CAN_POST_MESSAGE?"ReplaceKey":null,text:t.$t("actions.replace")},on:{"btn-click":function(e){return t.openPopUp(t.replaceKeyPayload)}}}):t._e(),t.stateData.actions.includes("replace")&&!t.replaceable?r("ConditionalButton",{staticClass:"button w-full mt-8px",attrs:{text:t.$t("actions.replaceIneligible"),title:t.$t("stateData.EGUID.error.message.replacementIneligible"),disabled:""},on:{"btn-click":function(e){return t.niceTry()}}}):t._e(),t.stateData.actions.includes("recover")?r("ConditionalButton",{staticClass:"button w-full mt-8px",attrs:{routeName:t.CAN_POST_MESSAGE?"RecoverKey":null,text:t.$t("actions.recover")},on:{"btn-click":function(e){return t.openPopUp(t.recoverKeyPayload)}}}):t._e(),t.stateData.actions.includes("continueTrial")?r("ConditionalButton",{staticClass:"button w-full mt-8px",attrs:{text:t.$t("regWizPopUp.continueTrial")},on:{"btn-click":function(e){t.CAN_POST_MESSAGE?t.closePopUpFromPopUp():t.SET_IS_LAUNCHPAD_OPEN(!1)}}}):t._e(),t.stateData.actions.includes("extend")?r("ConditionalButton",{staticClass:"button w-full mt-8px",attrs:{routeName:t.CAN_POST_MESSAGE?"ExtendTrial":null,text:t.$t("actions.extend")},on:{"btn-click":function(e){return t.openPopUp(t.extendTrialPayload)}}}):t._e(),t.stateData.actions.includes("close")?r("ConditionalButton",{staticClass:"button w-full mt-8px",attrs:{text:t.$t("continueToUnraid")},on:{"btn-click":function(e){t.CAN_POST_MESSAGE?t.closePopUpFromPopUp():t.SET_IS_LAUNCHPAD_OPEN(!1)}}}):t._e(),t.stateData.actions.includes("signOut")&&t.CAN_POST_MESSAGE?r("ConditionalButton",{staticClass:"button-fine-error text-grey-mid w-full mt-8px",attrs:{routeName:t.CAN_POST_MESSAGE?"SignOut":null,text:t.$t("signOut")},on:{"btn-click":function(e){return t.openPopUp(t.signOutPayload)}}}):t._e()]],2)])}),ki=g({props:{hrefUrl:{type:[Boolean,URL],default:!1},routeName:{type:String},text:{type:String,required:!0}},computed:{}},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.routeName?r("router-link",{attrs:{to:{name:t.routeName}}},[t._v(t._s(t.text))]):t.hrefUrl?r("a",{attrs:{href:t.hrefUrl}},[t._v(t._s(t.text))]):r("button",{on:{click:function(e){return t.$emit("btn-click")}}},[t._v(t._s(t.text))])}),[],!1,null,null,null,!0);var Oi=g({components:{ConditionalButton:ki.exports},data:()=>({CAN_POST_MESSAGE:Et}),computed:{...Object(b.c)(["stateData"]),...Object(b.e)(["isPopUpOpen","purchaseWindow","forumaccount","guidRegistered","extendTrialPayload","recoverKeyPayload","registered","replaceable","replaceKeyPayload","signOutPayload","signInPayload","signUpPayload","state","wizardWindow","messages"])},methods:{...Object(b.b)(["openPopUp","closePopUp","closePopUpFromPopUp"]),...Object(b.d)(["SET_IS_LAUNCHPAD_OPEN"]),niceTry(){alert("❌ Nice try you little sneak ❌")}}},Si,[],!1,(function(t){var e=r("2251");e.__inject__&&e.__inject__(t)}),null,null,!0).exports;var Ti=g({i18n:mt,store:vi,name:"Launchpad",props:["serverstate","webguiTranslations"],components:{UnraidLoading:yi,LaunchpadActionRequired:Oi},computed:{...Object(b.e)(["guid","isLaunchpadOpen","loading"]),...Object(b.c)(["server"])},methods:{...Object(b.b)(["setStateFromWebComponentProp","validateGuid"]),...Object(b.d)(["SET_IS_LAUNCHPAD_OPEN"])},watch:{signedOutWithKey(t,e){t&&!e&&this.validateGuid()}},created(){if(this.serverstate&&this.setStateFromWebComponentProp(this.serverstate),this.guid)this.validateGuid();else{const t=setInterval(()=>{this.guid&&(clearInterval(t),this.validateGuid())},250)}}},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("transition",{attrs:{appear:"",name:"fade",mode:"in-out"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:t.isLaunchpadOpen,expression:"isLaunchpadOpen"}],staticClass:"fixed inset-0 z-10 flex flex-col justify-start items-end mt-90px"},[r("transition",{attrs:{appear:"",name:"fade",mode:"in-out"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:t.isLaunchpadOpen,expression:"isLaunchpadOpen"}],staticClass:"absolute inset-0 z-0 bg-beta opacity-70 cursor-pointer",attrs:{title:t.$t("closeLaunchpad")},on:{click:function(e){return t.SET_IS_LAUNCHPAD_OPEN(!1)}}})]),r("transition",{attrs:{appear:"",name:"slideVerticalFade",mode:"in-out"}},[r("main",{directives:[{name:"show",rawName:"v-show",value:t.isLaunchpadOpen,expression:"isLaunchpadOpen"}],staticClass:"TopBlip text-beta bg-alpha border-grey-darkest text-center relative z-10 w-full max-w-4xl mr-8px p-24px md:p-32px lg:px-40px shadow-md rounded-lg"},[t.loading?r("UnraidLoading",{staticClass:"mx-auto",attrs:{height:64}}):r("LaunchpadActionRequired")],1)])],1)])}),[],!1,(function(t){var e=r("f153");e.__inject__&&e.__inject__(t)}),null,null,!0).exports;var ji=g({i18n:mt,store:vi,name:"UpcTrigger",props:[],data:()=>({}),computed:{...Object(b.c)(["stateData","stateDataKeyActions"]),...Object(b.e)(["isPopUpOpen","registered","state","triggerUPC","wizardWindow"]),copy(){return this.registered?"BASIC"===this.state||"PLUS"===this.state?"To support more storage devices as your server grows, click Upgrade Key in the User Profile located at the top right of the webGUI on every page.":"Key actions are done in the User Profile located at the top right of the webGUI on every page.":"You must be signed in to Unraid.net to perform key actions."},buttonText(){return this.stateData.error?this.$t("fixError"):this.isPopUpOpen?this.$t("backToPopUp"):"ENOKEYFILE"===this.state?this.$t("getStarted"):this.registered?this.stateDataKeyActions?"Open User Profile":"":this.$t("signIn")},buttonTitle(){return this.stateDataKeyActions?"Open User Profile":this.$t("upc.opensNewHttpsWindow.base",[this.buttonText])}},methods:{...Object(b.b)(["jumpToUpc","closePopUp","openPopUp"]),btnClick(){return!this.registered||this.isPopUpOpen?this.openPopUp(this.wizardWindow):this.jumpToUpc()}}},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("transition",{attrs:{appear:"",name:"fade",mode:"out-in"}},[null!==t.registered&&t.buttonText?r("div",{staticClass:"flex flex-wrap pl-12px"},[r("p",{staticClass:"w-7/20 pr-12px"},[t._v(t._s(t.copy))]),r("div",{staticClass:"w-13/20 inline-flex flex-row"},[r("button",{attrs:{type:"button",title:t.buttonTitle,disabled:t.triggerUPC},on:{click:function(e){return t.btnClick()}}},[t._v(t._s(t.buttonText))]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[t.isPopUpOpen?r("button",{staticClass:"ml-8px",attrs:{type:"button"},on:{click:function(e){return t.closePopUp()}}},[t._v(t._s(t.$t("closePopUp")))]):t._e()])],1)]):t._e()])}),[],!1,(function(t){var e=r("22c9");e.__inject__&&e.__inject__(t)}),null,null,!0).exports,Ci=r("ab14"),Ai=r.n(Ci),Ii=r("c7db"),Ri=r("b692"),Ni=r.n(Ri),Di=r("a3b3"),Pi=r.n(Di),Mi=r("8a86"),Li=r.n(Mi),Ui=r("b2a0"),Fi=r.n(Ui),$i=r("45b7"),Vi=r.n($i),zi=r("381c"),qi=r.n(zi),Bi=g({props:{payload:{type:Object},text:{type:String},emphasize:{type:Boolean,default:!1},external:{type:Boolean,default:!0}},components:{UnraidSvgUiKey:qi.a,UnraidSvgUtilNewWindow:Pi.a},methods:{...Object(b.b)(["openPopUp"])}},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("button",{staticClass:"group flex flex-row items-center justify-between",class:{"btn-emphasize":t.emphasize},attrs:{title:t.external?""+t.$t("upc.opensNewHttpsWindow.base",[t.text]):null},on:{click:function(e){return t.$emit("click")}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUiKey",{staticClass:"fill-current w-12px h-12px mr-8px"}),t._v(" "+t._s(t.text)+" ")],1),t.external?r("UnraidSvgUtilNewWindow",{staticClass:"text-white opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"}):t._e()],1)}),[],!1,null,null,null,!0).exports,Gi=r("a190"),Wi=r.n(Gi),Hi=r("a313"),Qi=r.n(Hi),Yi=r("94d0"),Ki=r.n(Yi),Ji=r("973e"),Xi=r.n(Ji),Zi=r("b045"),to=r.n(Zi),eo=g({components:{UnraidLoading:yi,UnraidSvgUiWarningFill:Wi.a,UnraidSvgUtilCheck:Qi.a,UnraidSvgUtilDelete:Ki.a,UnraidSvgUtilHelp:Xi.a,UnraidSvgUtilInfo:to.a,UnraidSvgUtilNewWindow:Pi.a},props:["errorStateMessageVisible","hideotherservers","hideMyServers"],watch:{apikey(t,e){e||!t||this.hideMyServers||(Rt.debug("[apikey set] connect to unraid-api",{newVal:t,oldVal:e}),this.serversPlz()),!e||t||this.hideMyServers||(Rt.debug("[apikey removed] disconnect from unraid-api",{newVal:t,oldVal:e}),this.stopGraphqlClient(e))},noRemoteApikeyRegisteredWithPlg(t,e){e||!t||this.hideMyServers||(Rt.debug("[noRemoteApikeyRegisteredWithPlg set] connect to unraid-api",{newVal:t,oldVal:e}),this.serversPlz()),!e||t||this.hideMyServers||(Rt.debug("[noRemoteApikeyRegisteredWithPlg removed] disconnect from unraid-api",{newVal:t,oldVal:e}),this.stopGraphqlClient(this.apikey))},registered(t,e){e||!t||this.hideMyServers||(Rt.debug("[apikey set] connect to unraid-api",{newVal:t,oldVal:e}),this.serversPlz())},myServersError(t,e){!e||t||this.myServers.length||(Rt.debug("[myServersError set] connect to unraid-api",{newVal:t,oldVal:e}),this.serversPlz())}},computed:{...Object(b.c)(["stateData","validApiKeyLength","noRemoteApikeyRegisteredWithPlg","keyTypeForPurchase","errorTooManyDisks"]),...Object(b.e)(["apikey","guid","graphOnline","myServers","myServersLoading","myServersError","registered","hasRemoteApikey","servername","signInPayload","state","wanip","deviceCount"]),currentServer(){return this.myServers?this.myServers.filter(t=>t.guid===this.guid?t:null)[0]:{name:this.servername,status:"offline"}},currentServerStatus(){return this.currentServer?this.currentServer.status:"offline"},filteredServers(){return this.myServers?this.hideotherservers?[]:this.myServers.filter(t=>t.guid!==this.guid?t:null).sort((t,e)=>t.name.localeCompare(e.name,"en",{numeric:!0,sensitivity:"base"})):[]},errorToggleText(){return this.stateData.error.message?"EEXPIRED"===this.state?this.stateData.error.heading:this.$t("fixError"):this.myServersError||this.noRemoteApikeyRegisteredWithPlg||this.errorTooManyDisks?this.computedErrorHeading:""},errorToggleTitle(){if(this.stateData.error||this.stateData.message||this.myServersError){return`${!this.stateData.error.message&&!this.stateData.message||this.noRemoteApikeyRegisteredWithPlg||this.errorTooManyDisks?this.computedErrorHeading:this.stateData.humanReadable} • ${this.errorStateMessageVisible?this.$t("upc.myServers.closeDetails"):this.$t("learnMore")}`}return""},computedErrorHeading(){return this.noRemoteApikeyRegisteredWithPlg?"My Servers Error":this.stateData.error.heading?this.stateData.error.heading:this.myServersError?this.myServersError.includes("Network error")?this.$t("upc.myServers.errors.unraidApi.heading"):this.$t("upc.myServers.errors.myServers.heading"):this.errorTooManyDisks?"Too many devices":""},computedError(){if(this.noRemoteApikeyRegisteredWithPlg)return"Unraid.net re-authentication required";if(this.stateData.error.message)return this.stateData.error.message;if(this.myServersError)return this.myServersError.includes("Network error")?this.$t("upc.myServers.errors.unraidApi.message"):this.myServersError;if(this.errorTooManyDisks){const t="You must upgrade your key to support more devices.";return"Basic"===this.keyTypeForPurchase?"Your Basic key supports 6 devices. "+t:"Plus"===this.keyTypeForPurchase?"Your Plus key supports 12 devices. "+t:t}return""}},methods:{...Object(b.b)(["fetchServers","stopGraphqlClient","openPopUp"]),serversPlz(){return Rt.debug("[serversPlz]",{apikey:this.apikey,noRemoteApikeyRegisteredWithPlg:this.noRemoteApikeyRegisteredWithPlg,validApiKeyLength:this.validApiKeyLength}),this.noRemoteApikeyRegisteredWithPlg?Rt.error("[MyServers] remote apikey does not exist"):this.validApiKeyLength?this.fetchServers():Rt.error("[MyServers] invalid apikey")}},created(){!this.hideMyServers&&this.registered&&this.serversPlz()}},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"relative"},[r("ul",{staticClass:"relative"},[t.filteredServers.length&&t.myServersError?r("li",{staticClass:"text-red text-12px font-semibold px-16px pb-4px"},[r("em",[t._v(t._s(t.$t("upc.myServers.displayingLastKnown")))])]):t._e(),t.computedError?r("li",{key:"current-server-error",staticClass:"w-full"},[r("button",{staticClass:"btn-error group py-8px px-16px flex flex-col",attrs:{title:t.errorToggleTitle},on:{click:function(e){return t.$emit("toggle-error")}}},[r("div",{staticClass:"w-full flex flex-row justify-between items-center"},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUiWarningFill",{staticClass:"fill-current w-12px h-12px"}),r("span",{staticClass:"font-semibold mx-8px"},[t._v(" "+t._s(t.servername)+" ")])],1),t.computedError&&t.errorStateMessageVisible?r("UnraidSvgUtilDelete",{staticClass:"text-current opacity-100 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"}):r("UnraidSvgUtilInfo",{staticClass:"text-current opacity-100 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1),r("transition",{attrs:{name:"fade",mode:"out-in"}},[t.computedError&&t.errorStateMessageVisible?r("div",{staticClass:"UnraidUPC-serverError"},[r("div",{staticClass:"text-14px font-semibold pt-4px"},[r("h3",{staticClass:"text-16px mb-4px"},[t._v(t._s(t.errorToggleText))]),r("p",{domProps:{innerHTML:t._s(t.computedError)}})])]):t._e()])],1)]):t._e(),r("transition",{attrs:{name:"fade",mode:"out-in"}},["EEXPIRED"!==t.state&&t.stateData.error&&t.errorStateMessageVisible?r("li",[r("a",{staticClass:"link-error group flex flex-row items-center justify-between",attrs:{title:t.$t("upc.opensNewHttpsWindow.base",[t.$t("contactSupport")])},on:{click:function(e){return t.$emit("contact-support")}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilHelp",{staticClass:"fill-current w-12px h-12px mr-8px"}),t._v(" "+t._s(t.$t("contactSupport"))+" ")],1),r("UnraidSvgUtilNewWindow",{staticClass:"opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1)]):t._e()]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[t.noRemoteApikeyRegisteredWithPlg&&t.errorStateMessageVisible?r("li",[r("a",{staticClass:"link-error group flex flex-row items-center justify-between",attrs:{title:t.$t("upc.opensNewHttpsWindow.base",[t.$t("signIn")])},on:{click:function(e){return t.openPopUp(t.signInPayload)}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUiWarningFill",{staticClass:"fill-current w-12px h-12px mr-8px"}),t._v(" "+t._s(t.$t("upc.signInActions.resolve"))+" ")],1),r("UnraidSvgUtilNewWindow",{staticClass:"opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1)]):t._e()]),t.computedError?t._e():r("li",{key:"current-server",staticClass:"w-full py-8px px-16px flex flex-row items-center",class:{"text-beta":"online"===t.currentServerStatus,"text-orange cursor-not-allowed":"online"!==t.currentServerStatus},attrs:{title:t.$t("upc.myServers.accessLabels.current")+" • "+("online"!==t.currentServerStatus?t.$t("upc.myServers.mothership.notConnected"):t.$t("upc.myServers.mothership.connected"))}},["online"!==t.currentServerStatus?r("UnraidSvgUiWarningFill",{staticClass:"fill-current w-12px h-12px"}):r("UnraidSvgUtilCheck",{staticClass:"fill-current w-12px h-12px"}),r("span",{staticClass:"ml-8px select-all"},[t._v(t._s(t.currentServer?t.currentServer.name:t.servername))])],1),r("transition-group",{attrs:{name:"fade",mode:"out-in"}},[t.myServersLoading?r("UnraidLoading",{key:"gql-loading",staticClass:"w-36px my-8px mx-auto",attrs:{height:21,title:t.$t("upc.myServers.loading")}}):t._l(t.filteredServers,(function(e,n){return r("li",{key:"filteredServer_"+n},["online"===e.status&&t.wanip!==e.wanip&&e.remoteurl?r("a",{staticClass:"w-full flex flex-row items-center",attrs:{href:e.remoteurl,tabindex:"0",title:t.$t("upc.myServers.accessLabels.remote")}},[r("span",{staticClass:"block w-12px h-12px mr-8px bg-green rounded-full"}),r("span",{staticClass:"select-all"},[t._v(t._s(e.name))])]):"online"===e.status&&t.wanip===e.wanip&&e.localurl?r("a",{staticClass:"w-full flex flex-row items-center",attrs:{href:e.localurl,tabindex:"0",title:t.$t("upc.myServers.accessLabels.local")}},[r("span",{staticClass:"block w-12px h-12px mr-8px bg-green rounded-full"}),r("span",{staticClass:"select-all"},[t._v(t._s(e.name))])]):"never_connected"!==e.status?r("span",{staticClass:"w-full flex flex-row items-center px-16px py-8px opacity-50 cursor-not-allowed",attrs:{title:"online"===e.status?t.$t("upc.myServers.accessLabels.unavailable"):t.$t("upc.myServers.accessLabels.offline")}},[r("span",{staticClass:"text-red text-14px w-12px mr-8px"},[t._v("×")]),r("span",{staticClass:"select-all"},[t._v(t._s(e.name))])]):t._e()])}))],2)],1)])}),[],!1,null,null,null,!0).exports,ro=r("5a0c"),no=r.n(ro);const io=(t,e,r,n,i,o,a)=>({years:t,months:e,days:r,hours:n,minutes:i,seconds:o,firstDateWasLater:a});var oo=(t,e,r)=>{let n,i=no()(t),o=no()(e);if(i.isSame(o))return r?io(0,0,0,0,0,0,!1):"";if(i.isAfter(o)){const t=i;i=o,o=t,n=!0}else n=!1;let a=o.year()-i.year(),s=o.month()-i.month(),c=o.date()-i.date(),u=o.hour()-i.hour(),l=o.minute()-i.minute(),p=o.second()-i.second();if(p<0&&(p=60+p,l-=1),l<0&&(l=60+l,u-=1),u<0&&(u=24+u,c-=1),c<0){const t=no()(`${o.year()}-${o.month()+1}`).subtract(1,"M").daysInMonth();c=t{const r=t?no()(parseInt(t,10)):no()(),n=e?no()(parseInt(e,10)):no()();return oo(r,n,!0)};var so=(t,e)=>e?ao(t,""):ao("",t),co=r("23ad"),uo=r.n(co);r("e072"),r("6210"),r("e5b7");const lo=document.getElementsByTagName("unraid-user-profile")[0];if(lo){const t=lo.getAttribute("locale").slice(0,2);no.a.locale(t),Rt.debug("[formatDate] dayjs.locale()",no.a.locale())}no.a.extend(uo.a);var po,fo=t=>no()(parseInt(t,10)).format("llll"),ho=g({data:()=>({interval:null,parsedUptime:"",parsedExpireTime:"",dateStrings:{year:mt.tc("year"),years:mt.tc("years"),month:mt.tc("month"),months:mt.tc("months"),day:mt.tc("day"),days:mt.tc("days"),hour:mt.tc("hour"),hours:mt.tc("hours"),minute:mt.tc("minute"),minutes:mt.tc("minutes"),second:mt.tc("second"),seconds:mt.tc("seconds"),firstDateWasLater:mt.tc("ago"),delimiter:" "}}),props:{expiretime:{type:[Number,String],default:null},uptime:{type:[Number,String],default:null}},computed:{...Object(b.e)(["registered","state"]),...Object(b.c)(["stateData"]),formattedUptime(){return fo(this.uptime)},formattedExpireTime(){return fo(this.expiretime)}},methods:{pluralize(t,e){return`${t} ${this.dateStrings[e+(1===t?"":"s")]}`},buildStringFromValues({years:t,months:e,days:r,hours:n,minutes:i,seconds:o,firstDateWasLater:a,displaySecondsInStringReturn:s}){const c=[];return t&&c.push(this.pluralize(t,"year")),e&&c.push(this.pluralize(e,"month")),r&&c.push(this.pluralize(r,"day")),n&&c.push(this.pluralize(n,"hour")),i&&c.push(this.pluralize(i,"minute")),!o||(t||e||r||n||i)&&!s||c.push(this.pluralize(o,"second")),a&&c.push(this.dateStrings.firstDateWasLater),c.join(this.dateStrings.delimiter)},runTimeDiff(){this.uptime&&(this.parsedUptime=this.buildStringFromValues(so(this.uptime,!0))),this.expiretime&&(this.parsedExpireTime=this.buildStringFromValues(so(this.expiretime,!1)))},letsGo(){this.runTimeDiff(),this.interval=setInterval(()=>{this.runTimeDiff()},1e3)}},created(){this.letsGo()},beforeDestroy(){clearInterval(this.interval)}},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"text-gamma text-12px text-right font-semibold leading-normal flex flex-row items-baseline justify-end pr-16px pt-4px"},["EEXPIRED"===t.state?r("p",{attrs:{title:t.$t("upc.meta.trial.expired.date",{date:t.formattedExpireTime})}},[t._v(" "+t._s(t.$t("upc.meta.trial.expired.timeDiff",{timeDiff:t.parsedExpireTime}))+" ")]):this.expiretime>0?r("p",{attrs:{title:t.$t("upc.meta.trial.active.date",{date:t.formattedExpireTime})}},[t._v(" "+t._s(t.$t("upc.meta.trial.active.timeDiff",{timeDiff:t.parsedExpireTime}))+" ")]):r("p",{staticClass:"select-all",attrs:{title:t.$t("upc.meta.uptime.date",{date:t.formattedUptime})}},[t._v(" "+t._s(t.$t("upc.meta.uptime.readable",{timeDiff:t.parsedUptime}))+" ")]),r("span",{staticClass:"px-12px"},[t._v("•")]),t.registered&&t.stateData.actions.includes("upgrade")?r("button",{staticClass:"text-12px text-gamma hover:text-alpha focus:text-alpha font-semibold transition-colors duration-150 ease-in-out border-t-0 border-l-0 border-r-0 border-b-2 border-transparent hover:border-orange-dark focus:border-orange-dark focus:outline-none",attrs:{title:t.$t("upc.opensNewHttpsWindow.upgrade")},on:{click:function(e){return t.$emit("upgrade")}}},[r("h5",[t._v("Unraid OS "),r("em",[r("strong",[t._v(t._s(t.stateData.humanReadable))])])])]):r("h5",[t._v("Unraid OS "),r("em",{class:{"text-red":t.stateData.error||"EEXPIRED"===t.state}},[r("strong",[t._v(t._s(t.stateData.humanReadable))])])]),t.registered&&t.stateData.actions.includes("purchase")?r("button",{staticClass:"text-12px text-orange-dark font-semibold hover:text-alpha focus:text-alpha ml-12px transition-colors duration-150 ease-in-out border-t-0 border-l-0 border-r-0 border-b-2 border-transparent hover:border-orange-dark focus:border-orange-dark focus:outline-none",attrs:{title:t.$t("upc.opensNewHttpsWindow.purchase")},on:{click:function(e){return t.$emit("purchase")}}},[t._v(t._s(t.$t("actions.purchase")))]):t._e()])}),[],!1,null,null,null,!0).exports,mo="6.5.1",vo=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){po=Function.prototype.toString,Function.prototype.toString=function(){for(var t=[],e=0;e2?e[2]:void 0;if(n){var i=So,o=String(n);So=o,Ao("history",{from:i,to:o})}return t.apply(this,e)}}}();break;case"error":Mo=ko.onerror,ko.onerror=function(t,e,r,n,i){return Ao("error",{column:n,error:i,line:r,msg:t,url:e}),!!Mo&&Mo.apply(this,arguments)};break;case"unhandledrejection":Lo=ko.onunhandledrejection,ko.onunhandledrejection=function(t){return Ao("unhandledrejection",t),!Lo||Lo.apply(this,arguments)};break;default:_n.warn("unknown instrumentation type:",t)}}function Co(t){t&&"string"==typeof t.type&&"function"==typeof t.callback&&(Oo[t.type]=Oo[t.type]||[],Oo[t.type].push(t.callback),jo(t.type))}function Ao(t,e){var r,n;if(t&&Oo[t])try{for(var i=Object(ye.i)(Oo[t]||[]),o=i.next();!o.done;o=i.next()){var a=o.value;try{a(e)}catch(e){_n.error("Error while triggering instrumentation handler.\nType: "+t+"\nName: "+Object(_o.a)(a)+"\nError: "+e)}}}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}function Io(t){return void 0===t&&(t=[]),"Request"in ko&&Object(xn.g)(t[0],Request)&&t[0].method?String(t[0].method).toUpperCase():t[1]&&t[1].method?String(t[1].method).toUpperCase():"GET"}function Ro(t){return void 0===t&&(t=[]),"string"==typeof t[0]?t[0]:"Request"in ko&&Object(xn.g)(t[0],Request)?t[0].url:String(t[0])}var No,Do;function Po(t,e){return void 0===e&&(e=!1),function(r){if(r&&Do!==r&&!function(t){if("keypress"!==t.type)return!1;try{var e=t.target;if(!e||!e.tagName)return!0;if("INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable)return!1}catch(t){}return!0}(r)){var n="keypress"===r.type?"input":r.type;(void 0===No||function(t,e){if(!t)return!0;if(t.type!==e.type)return!0;try{if(t.target!==e.target)return!0}catch(t){}return!1}(Do,r))&&(t({event:r,name:n,global:e}),Do=r),clearTimeout(No),No=ko.setTimeout((function(){No=void 0}),1e3)}}}var Mo=null;var Lo=null;var Uo=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){return t.__proto__=e,t}:function(t,e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r]);return t});var Fo=function(t){function e(e){var r=this.constructor,n=t.call(this,e)||this;return n.message=e,n.name=r.prototype.constructor.name,Uo(n,r.prototype),n}return Object(ye.c)(e,t),e}(Error),$o=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,Vo="Invalid Dsn",zo=function(){function t(t){"string"==typeof t?this._fromString(t):this._fromComponents(t),this._validate()}return t.prototype.toString=function(t){void 0===t&&(t=!1);var e=this,r=e.host,n=e.path,i=e.pass,o=e.port,a=e.projectId;return e.protocol+"://"+e.publicKey+(t&&i?":"+i:"")+"@"+r+(o?":"+o:"")+"/"+(n?n+"/":n)+a},t.prototype._fromString=function(t){var e=$o.exec(t);if(!e)throw new Fo(Vo);var r=Object(ye.e)(e.slice(1),6),n=r[0],i=r[1],o=r[2],a=void 0===o?"":o,s=r[3],c=r[4],u=void 0===c?"":c,l="",p=r[5],d=p.split("/");if(d.length>1&&(l=d.slice(0,-1).join("/"),p=d.pop()),p){var f=p.match(/^\d+/);f&&(p=f[0])}this._fromComponents({host:s,pass:a,path:l,projectId:p,port:u,protocol:n,publicKey:i})},t.prototype._fromComponents=function(t){"user"in t&&!("publicKey"in t)&&(t.publicKey=t.user),this.user=t.publicKey||"",this.protocol=t.protocol,this.publicKey=t.publicKey||"",this.pass=t.pass||"",this.host=t.host,this.port=t.port||"",this.path=t.path||"",this.projectId=t.projectId},t.prototype._validate=function(){var t=this;if(["protocol","publicKey","host","projectId"].forEach((function(e){if(!t[e])throw new Fo(Vo+": "+e+" missing")})),!this.projectId.match(/^\d+$/))throw new Fo(Vo+": Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new Fo(Vo+": Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new Fo(Vo+": Invalid port "+this.port)},t}(),qo=[];function Bo(t){return t.reduce((function(t,e){return t.every((function(t){return e.name!==t.name}))&&t.push(e),t}),[])}function Go(t){var e={};return function(t){var e=t.defaultIntegrations&&Object(ye.g)(t.defaultIntegrations)||[],r=t.integrations,n=Object(ye.g)(Bo(e));Array.isArray(r)?n=Object(ye.g)(n.filter((function(t){return r.every((function(e){return e.name!==t.name}))})),Bo(r)):"function"==typeof r&&(n=r(n),n=Array.isArray(n)?n:[n]);var i=n.map((function(t){return t.name})),o="Debug";return-1!==i.indexOf(o)&&n.push.apply(n,Object(ye.g)(n.splice(i.indexOf(o),1))),n}(t).forEach((function(t){e[t.name]=t,function(t){-1===qo.indexOf(t.name)&&(t.setupOnce(On,Nn),qo.push(t.name),_n.log("Integration installed: "+t.name))}(t)})),e}var Wo,Ho=function(){function t(t,e){this._integrations={},this._processing=0,this._backend=new t(e),this._options=e,e.dsn&&(this._dsn=new zo(e.dsn))}return t.prototype.captureException=function(t,e,r){var n=this,i=e&&e.event_id;return this._process(this._getBackend().eventFromException(t,e).then((function(t){return n._captureEvent(t,e,r)})).then((function(t){i=t}))),i},t.prototype.captureMessage=function(t,e,r,n){var i=this,o=r&&r.event_id,a=Object(xn.i)(t)?this._getBackend().eventFromMessage(String(t),e,r):this._getBackend().eventFromException(t,r);return this._process(a.then((function(t){return i._captureEvent(t,r,n)})).then((function(t){o=t}))),o},t.prototype.captureEvent=function(t,e,r){var n=e&&e.event_id;return this._process(this._captureEvent(t,e,r).then((function(t){n=t}))),n},t.prototype.captureSession=function(t){"string"!=typeof t.release?_n.warn("Discarded session because of missing or non-string release"):(this._sendSession(t),t.update({init:!1}))},t.prototype.getDsn=function(){return this._dsn},t.prototype.getOptions=function(){return this._options},t.prototype.flush=function(t){var e=this;return this._isClientProcessing(t).then((function(r){return e._getBackend().getTransport().close(t).then((function(t){return r&&t}))}))},t.prototype.close=function(t){var e=this;return this.flush(t).then((function(t){return e.getOptions().enabled=!1,t}))},t.prototype.setupIntegrations=function(){this._isEnabled()&&(this._integrations=Go(this._options))},t.prototype.getIntegration=function(t){try{return this._integrations[t.id]||null}catch(e){return _n.warn("Cannot retrieve integration "+t.id+" from the current Client"),null}},t.prototype._updateSessionFromEvent=function(t,e){var r,n,i,o=!1,a=!1,s=e.exception&&e.exception.values;if(s){a=!0;try{for(var c=Object(ye.i)(s),u=c.next();!u.done;u=c.next()){var l=u.value.mechanism;if(l&&!1===l.handled){o=!0;break}}}catch(t){r={error:t}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}}var p=e.user;if(!t.userAgent){var d=e.request?e.request.headers:{};for(var f in d)if("user-agent"===f.toLowerCase()){i=d[f];break}}t.update(Object(ye.a)(Object(ye.a)({},o&&{status:ln.Crashed}),{user:p,userAgent:i,errors:t.errors+Number(a||o)})),this.captureSession(t)},t.prototype._sendSession=function(t){this._getBackend().sendSession(t)},t.prototype._isClientProcessing=function(t){var e=this;return new En((function(r){var n=0,i=setInterval((function(){0==e._processing?(clearInterval(i),r(!0)):(n+=1,t&&n>=t&&(clearInterval(i),r(!1)))}),1)}))},t.prototype._getBackend=function(){return this._backend},t.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},t.prototype._prepareEvent=function(t,e,r){var n=this,i=this.getOptions().normalizeDepth,o=void 0===i?3:i,a=Object(ye.a)(Object(ye.a)({},t),{event_id:t.event_id||(r&&r.event_id?r.event_id:Object(hn.i)()),timestamp:t.timestamp||Object(mn.a)()});this._applyClientOptions(a),this._applyIntegrationsMetadata(a);var s=e;r&&r.captureContext&&(s=Sn.clone(s).update(r.captureContext));var c=En.resolve(a);return s&&(c=s.applyToEvent(a,r)),c.then((function(t){return"number"==typeof o&&o>0?n._normalizeEvent(t,o):t}))},t.prototype._normalizeEvent=function(t,e){if(!t)return null;var r=Object(ye.a)(Object(ye.a)(Object(ye.a)(Object(ye.a)(Object(ye.a)({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((function(t){return Object(ye.a)(Object(ye.a)({},t),t.data&&{data:Object(Tn.d)(t.data,e)})}))}),t.user&&{user:Object(Tn.d)(t.user,e)}),t.contexts&&{contexts:Object(Tn.d)(t.contexts,e)}),t.extra&&{extra:Object(Tn.d)(t.extra,e)});return t.contexts&&t.contexts.trace&&(r.contexts.trace=t.contexts.trace),r},t.prototype._applyClientOptions=function(t){var e=this.getOptions(),r=e.environment,n=e.release,i=e.dist,o=e.maxValueLength,a=void 0===o?250:o;"environment"in t||(t.environment="environment"in e?r:"production"),void 0===t.release&&void 0!==n&&(t.release=n),void 0===t.dist&&void 0!==i&&(t.dist=i),t.message&&(t.message=Object(go.d)(t.message,a));var s=t.exception&&t.exception.values&&t.exception.values[0];s&&s.value&&(s.value=Object(go.d)(s.value,a));var c=t.request;c&&c.url&&(c.url=Object(go.d)(c.url,a))},t.prototype._applyIntegrationsMetadata=function(t){var e=Object.keys(this._integrations);e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=Object(ye.g)(t.sdk.integrations||[],e))},t.prototype._sendEvent=function(t){this._getBackend().sendEvent(t)},t.prototype._captureEvent=function(t,e,r){return this._processEvent(t,e,r).then((function(t){return t.event_id}),(function(t){_n.error(t)}))},t.prototype._processEvent=function(t,e,r){var n=this,i=this.getOptions(),o=i.beforeSend,a=i.sampleRate;if(!this._isEnabled())return En.reject(new Fo("SDK not enabled, will not send event."));var s="transaction"===t.type;return!s&&"number"==typeof a&&Math.random()>a?En.reject(new Fo("Discarding event because it's not included in the random sample (sampling rate = "+a+")")):this._prepareEvent(t,r,e).then((function(t){if(null===t)throw new Fo("An event processor returned null, will not send event.");if(e&&e.data&&!0===e.data.__sentry__||s||!o)return t;var r=o(t,e);if(void 0===r)throw new Fo("`beforeSend` method has to return `null` or a valid event.");return Object(xn.m)(r)?r.then((function(t){return t}),(function(t){throw new Fo("beforeSend rejected with "+t)})):r})).then((function(t){if(null===t)throw new Fo("`beforeSend` returned `null`, will not send event.");var e=r&&r.getSession&&r.getSession();return!s&&e&&n._updateSessionFromEvent(e,t),n._sendEvent(t),t})).then(null,(function(t){if(t instanceof Fo)throw t;throw n.captureException(t,{data:{__sentry__:!0},originalException:t}),new Fo("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+t)}))},t.prototype._process=function(t){var e=this;this._processing+=1,t.then((function(t){return e._processing-=1,t}),(function(t){return e._processing-=1,t}))},t}();(function(t){t.Unknown="unknown",t.Skipped="skipped",t.Success="success",t.RateLimit="rate_limit",t.Invalid="invalid",t.Failed="failed"})(Wo||(Wo={})),function(t){t.fromHttpCode=function(e){return e>=200&&e<300?t.Success:429===e?t.RateLimit:e>=400&&e<500?t.Invalid:e>=500?t.Failed:t.Unknown}}(Wo||(Wo={}));var Qo,Yo=function(){function t(){}return t.prototype.sendEvent=function(t){return En.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:Wo.Skipped})},t.prototype.close=function(t){return En.resolve(!0)},t}(),Ko=function(){function t(t){this._options=t,this._options.dsn||_n.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return t.prototype.eventFromException=function(t,e){throw new Fo("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(t,e,r){throw new Fo("Backend has to implement `eventFromMessage` method")},t.prototype.sendEvent=function(t){this._transport.sendEvent(t).then(null,(function(t){_n.error("Error while sending event: "+t)}))},t.prototype.sendSession=function(t){this._transport.sendSession?this._transport.sendSession(t).then(null,(function(t){_n.error("Error while sending session: "+t)})):_n.warn("Dropping session because custom transport doesn't implement sendSession")},t.prototype.getTransport=function(){return this._transport},t.prototype._setupTransport=function(){return new Yo},t}();(function(t){t.Fatal="fatal",t.Error="error",t.Warning="warning",t.Log="log",t.Info="info",t.Debug="debug",t.Critical="critical"})(Qo||(Qo={})),function(t){t.fromString=function(e){switch(e){case"debug":return t.Debug;case"info":return t.Info;case"warn":case"warning":return t.Warning;case"error":return t.Error;case"fatal":return t.Fatal;case"critical":return t.Critical;case"log":default:return t.Log}}}(Qo||(Qo={}));var Jo=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack||[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Xo=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Zo=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,ta=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,ea=/\((\S*)(?::(\d+))(?::(\d+))\)/,ra=/Minified React error #\d+;/i;function na(t){var e=null,r=0;t&&("number"==typeof t.framesToPop?r=t.framesToPop:ra.test(t.message)&&(r=1));try{if(e=function(t){if(!t||!t.stacktrace)return null;for(var e,r=t.stacktrace,n=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,i=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,o=r.split("\n"),a=[],s=0;s eval")>-1&&(e=ta.exec(r[3]))?(r[1]=r[1]||"eval",r[3]=e[1],r[4]=e[2],r[5]=""):0!==a||r[5]||void 0===t.columnNumber||(i[0].column=t.columnNumber+1),n={url:r[3],func:r[1]||"?",args:r[2]?r[2].split(","):[],line:r[4]?+r[4]:null,column:r[5]?+r[5]:null}}!n.func&&n.line&&(n.func="?"),i.push(n)}return i.length?{message:oa(t),name:t.name,stack:i}:null}(t))return ia(e,r)}catch(t){}return{message:oa(t),name:t&&t.name,stack:[],failed:!0}}function ia(t,e){try{return Object(ye.a)(Object(ye.a)({},t),{stack:t.stack.slice(e)})}catch(e){return t}}function oa(t){var e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}function aa(t){var e=ca(t.stack),r={type:t.name,value:t.message};return e&&e.length&&(r.stacktrace={frames:e}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function sa(t){return{exception:{values:[aa(t)]}}}function ca(t){if(!t||!t.length)return[];var e=t,r=e[0].func||"",n=e[e.length-1].func||"";return-1===r.indexOf("captureMessage")&&-1===r.indexOf("captureException")||(e=e.slice(1)),-1!==n.indexOf("sentryWrapped")&&(e=e.slice(0,-1)),e.slice(0,50).map((function(t){return{colno:null===t.column?void 0:t.column,filename:t.url||e[0].url,function:t.func||"?",in_app:!0,lineno:null===t.line?void 0:t.line}})).reverse()}function ua(t,e,r){var n;if(void 0===r&&(r={}),Object(xn.e)(t)&&t.error)return n=sa(na(t=t.error));if(Object(xn.a)(t)||Object(xn.b)(t)){var i=t,o=i.name||(Object(xn.a)(i)?"DOMError":"DOMException"),a=i.message?o+": "+i.message:o;return n=la(a,e,r),Object(hn.b)(n,a),"code"in i&&(n.tags=Object(ye.a)(Object(ye.a)({},n.tags),{"DOMException.code":""+i.code})),n}return Object(xn.d)(t)?n=sa(na(t)):Object(xn.h)(t)||Object(xn.f)(t)?(n=function(t,e,r){var n={exception:{values:[{type:Object(xn.f)(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:"Non-Error "+(r?"promise rejection":"exception")+" captured with keys: "+Object(Tn.b)(t)}]},extra:{__serialized__:Object(Tn.e)(t)}};if(e){var i=ca(na(e).stack);n.stacktrace={frames:i}}return n}(t,e,r.rejection),Object(hn.a)(n,{synthetic:!0}),n):(n=la(t,e,r),Object(hn.b)(n,""+t,void 0),Object(hn.a)(n,{synthetic:!0}),n)}function la(t,e,r){void 0===r&&(r={});var n={message:t};if(r.attachStacktrace&&e){var i=ca(na(e).stack);n.stacktrace={frames:i}}return n}function pa(t){if(t.metadata&&t.metadata.sdk){var e=t.metadata.sdk;return{name:e.name,version:e.version}}}function da(t,e){return e?(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=Object(ye.g)(t.sdk.integrations||[],e.integrations||[]),t.sdk.packages=Object(ye.g)(t.sdk.packages||[],e.packages||[]),t):t}function fa(t,e){var r=pa(e),n="aggregates"in t?"sessions":"session";return{body:JSON.stringify(Object(ye.a)({sent_at:(new Date).toISOString()},r&&{sdk:r}))+"\n"+JSON.stringify({type:n})+"\n"+JSON.stringify(t),type:n,url:e.getEnvelopeEndpointWithUrlEncodedAuth()}}function ha(t,e){var r=pa(e),n=t.type||"event",i="transaction"===n,o=t.debug_meta||{},a=o.transactionSampling,s=Object(ye.f)(o,["transactionSampling"]),c=a||{},u=c.method,l=c.rate;0===Object.keys(s).length?delete t.debug_meta:t.debug_meta=s;var p={body:JSON.stringify(r?da(t,e.metadata.sdk):t),type:n,url:i?e.getEnvelopeEndpointWithUrlEncodedAuth():e.getStoreEndpointWithUrlEncodedAuth()};if(i){var d=JSON.stringify(Object(ye.a)({event_id:t.event_id,sent_at:(new Date).toISOString()},r&&{sdk:r}))+"\n"+JSON.stringify({type:t.type,sample_rates:[{id:u,rate:l}]})+"\n"+p.body;p.body=d}return p}var ma=function(){function t(t,e){void 0===e&&(e={}),this.dsn=t,this._dsnObject=new zo(t),this.metadata=e}return t.prototype.getDsn=function(){return this._dsnObject},t.prototype.getBaseApiEndpoint=function(){var t=this._dsnObject,e=t.protocol?t.protocol+":":"",r=t.port?":"+t.port:"";return e+"//"+t.host+r+(t.path?"/"+t.path:"")+"/api/"},t.prototype.getStoreEndpoint=function(){return this._getIngestEndpoint("store")},t.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return this.getStoreEndpoint()+"?"+this._encodedAuth()},t.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return this._getEnvelopeEndpoint()+"?"+this._encodedAuth()},t.prototype.getStoreEndpointPath=function(){var t=this._dsnObject;return(t.path?"/"+t.path:"")+"/api/"+t.projectId+"/store/"},t.prototype.getRequestHeaders=function(t,e){var r=this._dsnObject,n=["Sentry sentry_version=7"];return n.push("sentry_client="+t+"/"+e),n.push("sentry_key="+r.publicKey),r.pass&&n.push("sentry_secret="+r.pass),{"Content-Type":"application/json","X-Sentry-Auth":n.join(", ")}},t.prototype.getReportDialogEndpoint=function(t){void 0===t&&(t={});var e=this._dsnObject,r=this.getBaseApiEndpoint()+"embed/error-page/",n=[];for(var i in n.push("dsn="+e.toString()),t)if("dsn"!==i)if("user"===i){if(!t.user)continue;t.user.name&&n.push("name="+encodeURIComponent(t.user.name)),t.user.email&&n.push("email="+encodeURIComponent(t.user.email))}else n.push(encodeURIComponent(i)+"="+encodeURIComponent(t[i]));return n.length?r+"?"+n.join("&"):r},t.prototype._getEnvelopeEndpoint=function(){return this._getIngestEndpoint("envelope")},t.prototype._getIngestEndpoint=function(t){return""+this.getBaseApiEndpoint()+this._dsnObject.projectId+"/"+t+"/"},t.prototype._encodedAuth=function(){var t={sentry_key:this._dsnObject.publicKey,sentry_version:"7"};return Object(Tn.f)(t)},t}(),va=function(){function t(t){this._limit=t,this._buffer=[]}return t.prototype.isReady=function(){return void 0===this._limit||this.length()0&&r(!1)}),t);En.all(e._buffer).then((function(){clearTimeout(n),r(!0)})).then(null,(function(){r(!0)}))}))},t}(),ga={event:"error",transaction:"transaction",session:"session",attachment:"attachment"},ba=function(){function t(t){this.options=t,this._buffer=new va(30),this._rateLimits={},this._api=new ma(t.dsn,t._metadata),this.url=this._api.getStoreEndpointWithUrlEncodedAuth()}return t.prototype.sendEvent=function(t){throw new Fo("Transport Class has to implement `sendEvent` method")},t.prototype.close=function(t){return this._buffer.drain(t)},t.prototype._handleResponse=function(t){var e=t.requestType,r=t.response,n=t.headers,i=t.resolve,o=t.reject,a=Wo.fromHttpCode(r.status);this._handleRateLimit(n)&&_n.warn("Too many requests, backing off until: "+this._disabledUntil(e)),a!==Wo.Success?o(r):i({status:a})},t.prototype._disabledUntil=function(t){var e=ga[t];return this._rateLimits[e]||this._rateLimits.all},t.prototype._isRateLimited=function(t){return this._disabledUntil(t)>new Date(Date.now())},t.prototype._handleRateLimit=function(t){var e,r,n,i,o=Date.now(),a=t["x-sentry-rate-limits"],s=t["retry-after"];if(a){try{for(var c=Object(ye.i)(a.trim().split(",")),u=c.next();!u.done;u=c.next()){var l=u.value.split(":",2),p=parseInt(l[0],10),d=1e3*(isNaN(p)?60:p);try{for(var f=(n=void 0,Object(ye.i)(l[1].split(";"))),h=f.next();!h.done;h=f.next()){var m=h.value;this._rateLimits[m||"all"]=new Date(o+d)}}catch(t){n={error:t}}finally{try{h&&!h.done&&(i=f.return)&&i.call(f)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(e)throw e.error}}return!0}return!!s&&(this._rateLimits.all=new Date(o+Object(hn.g)(o,s)),!0)},t}();var ya=function(t){function e(e,r){void 0===r&&(r=function(){var t,e,r=Object(hn.e)();if(xo(r.fetch))return r.fetch.bind(r);var n=r.document,i=r.fetch;if("function"==typeof(null===(t=n)||void 0===t?void 0:t.createElement))try{var o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o),(null===(e=o.contentWindow)||void 0===e?void 0:e.fetch)&&(i=o.contentWindow.fetch),n.head.removeChild(o)}catch(t){_n.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return i.bind(r)}());var n=t.call(this,e)||this;return n._fetch=r,n}return Object(ye.c)(e,t),e.prototype.sendEvent=function(t){return this._sendRequest(ha(t,this._api),t)},e.prototype.sendSession=function(t){return this._sendRequest(fa(t,this._api),t)},e.prototype._sendRequest=function(t,e){var r=this;if(this._isRateLimited(t.type))return Promise.reject({event:e,type:t.type,reason:"Transport locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429});var n={body:t.body,method:"POST",referrerPolicy:Eo()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(n,this.options.fetchParameters),void 0!==this.options.headers&&(n.headers=this.options.headers),this._buffer.add(new En((function(e,i){r._fetch(t.url,n).then((function(n){var o={"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")};r._handleResponse({requestType:t.type,response:n,headers:o,resolve:e,reject:i})})).catch(i)})))},e}(ba),_a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ye.c)(e,t),e.prototype.sendEvent=function(t){return this._sendRequest(ha(t,this._api),t)},e.prototype.sendSession=function(t){return this._sendRequest(fa(t,this._api),t)},e.prototype._sendRequest=function(t,e){var r=this;return this._isRateLimited(t.type)?Promise.reject({event:e,type:t.type,reason:"Transport locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429}):this._buffer.add(new En((function(e,n){var i=new XMLHttpRequest;for(var o in i.onreadystatechange=function(){if(4===i.readyState){var o={"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")};r._handleResponse({requestType:t.type,response:i,headers:o,resolve:e,reject:n})}},i.open("POST",t.url),r.options.headers)r.options.headers.hasOwnProperty(o)&&i.setRequestHeader(o,r.options.headers[o]);i.send(t.body)})))},e}(ba),wa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ye.c)(e,t),e.prototype.eventFromException=function(t,e){return function(t,e,r){var n=ua(e,r&&r.syntheticException||void 0,{attachStacktrace:t.attachStacktrace});return Object(hn.a)(n,{handled:!0,type:"generic"}),n.level=Qo.Error,r&&r.event_id&&(n.event_id=r.event_id),En.resolve(n)}(this._options,t,e)},e.prototype.eventFromMessage=function(t,e,r){return void 0===e&&(e=Qo.Info),function(t,e,r,n){void 0===r&&(r=Qo.Info);var i=la(e,n&&n.syntheticException||void 0,{attachStacktrace:t.attachStacktrace});return i.level=r,n&&n.event_id&&(i.event_id=n.event_id),En.resolve(i)}(this._options,t,e,r)},e.prototype._setupTransport=function(){if(!this._options.dsn)return t.prototype._setupTransport.call(this);var e=Object(ye.a)(Object(ye.a)({},this._options.transportOptions),{dsn:this._options.dsn,_metadata:this._options._metadata});return this._options.transport?new this._options.transport(e):wo()?new ya(e):new _a(e)},e}(Ko),xa=0;function Ea(){return xa>0}function Sa(){xa+=1,setTimeout((function(){xa-=1}))}function ka(t,e,r){if(void 0===e&&(e={}),"function"!=typeof t)return t;try{if(t.__sentry__)return t;if(t.__sentry_wrapped__)return t.__sentry_wrapped__}catch(e){return t}var n=function(){var n=Array.prototype.slice.call(arguments);try{r&&"function"==typeof r&&r.apply(this,arguments);var i=n.map((function(t){return ka(t,e)}));return t.handleEvent?t.handleEvent.apply(this,i):t.apply(this,i)}catch(t){throw Sa(),Fn((function(r){r.addEventProcessor((function(t){var r=Object(ye.a)({},t);return e.mechanism&&(Object(hn.b)(r,void 0,void 0),Object(hn.a)(r,e.mechanism)),r.extra=Object(ye.a)(Object(ye.a)({},r.extra),{arguments:n}),r})),Un(t)})),t}};try{for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}catch(t){}t.prototype=t.prototype||{},n.prototype=t.prototype,Object.defineProperty(t,"__sentry_wrapped__",{enumerable:!1,value:n}),Object.defineProperties(n,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:t}});try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:function(){return t.name}})}catch(t){}return n}var Oa=r("bc5b"),Ta=function(){function t(e){this.name=t.id,this._options=Object(ye.a)({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},e)}return t.prototype.addSentryBreadcrumb=function(t){this._options.sentry&&Nn().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:Object(hn.d)(t)},{event:t})},t.prototype.setupOnce=function(){var t=this;this._options.console&&Co({callback:function(){for(var e=[],r=0;r"}0!==e.length&&Nn().addBreadcrumb({category:"ui."+t.name,message:e},{event:t.event,name:t.name,global:t.global})},t.prototype._xhrBreadcrumb=function(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;var e=t.xhr.__sentry_xhr__||{},r=e.method,n=e.url,i=e.status_code,o=e.body;Nn().addBreadcrumb({category:"xhr",data:{method:r,url:n,status_code:i},type:"http"},{xhr:t.xhr,input:o})}},t.prototype._fetchBreadcrumb=function(t){t.endTimestamp&&(t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method||(t.error?Nn().addBreadcrumb({category:"fetch",data:t.fetchData,level:Qo.Error,type:"http"},{data:t.error,input:t.args}):Nn().addBreadcrumb({category:"fetch",data:Object(ye.a)(Object(ye.a)({},t.fetchData),{status_code:t.response.status}),type:"http"},{input:t.args,response:t.response})))},t.prototype._historyBreadcrumb=function(t){var e=Object(hn.e)(),r=t.from,n=t.to,i=Object(hn.h)(e.location.href),o=Object(hn.h)(r),a=Object(hn.h)(n);o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),Nn().addBreadcrumb({category:"navigation",data:{from:r,to:n}})},t.id="Breadcrumbs",t}(),ja=function(t){function e(e){void 0===e&&(e={});return e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:mo}],version:mo},t.call(this,wa,e)||this}return Object(ye.c)(e,t),e.prototype.showReportDialog=function(t){void 0===t&&(t={}),Object(hn.e)().document&&(this._isEnabled()?function(t){if(void 0===t&&(t={}),t.eventId)if(t.dsn){var e=document.createElement("script");e.async=!0,e.src=new ma(t.dsn).getReportDialogEndpoint(t),t.onLoad&&(e.onload=t.onLoad),(document.head||document.body).appendChild(e)}else _n.error("Missing dsn option in showReportDialog call");else _n.error("Missing eventId option in showReportDialog call")}(Object(ye.a)(Object(ye.a)({},t),{dsn:t.dsn||this.getDsn()})):_n.error("Trying to call showReportDialog with Sentry Client disabled"))},e.prototype._prepareEvent=function(e,r,n){return e.platform=e.platform||"javascript",t.prototype._prepareEvent.call(this,e,r,n)},e.prototype._sendEvent=function(e){var r=this.getIntegration(Ta);r&&r.addSentryBreadcrumb(e),t.prototype._sendEvent.call(this,e)},e}(Ho),Ca=["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"],Aa=function(){function t(e){this.name=t.id,this._options=Object(ye.a)({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},e)}return t.prototype.setupOnce=function(){var t=Object(hn.e)();(this._options.setTimeout&&Object(Tn.c)(t,"setTimeout",this._wrapTimeFunction.bind(this)),this._options.setInterval&&Object(Tn.c)(t,"setInterval",this._wrapTimeFunction.bind(this)),this._options.requestAnimationFrame&&Object(Tn.c)(t,"requestAnimationFrame",this._wrapRAF.bind(this)),this._options.XMLHttpRequest&&"XMLHttpRequest"in t&&Object(Tn.c)(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),this._options.eventTarget)&&(Array.isArray(this._options.eventTarget)?this._options.eventTarget:Ca).forEach(this._wrapEventTarget.bind(this))},t.prototype._wrapTimeFunction=function(t){return function(){for(var e=[],r=0;r0?e:Object(hn.f)();return 0===t.exception.values[0].stacktrace.frames.length&&t.exception.values[0].stacktrace.frames.push({colno:i,filename:a,function:"?",in_app:!0,lineno:o}),t},t.id="GlobalHandlers",t}(),Ra=function(){function t(e){void 0===e&&(e={}),this.name=t.id,this._key=e.key||"cause",this._limit=e.limit||5}return t.prototype.setupOnce=function(){On((function(e,r){var n=Nn().getIntegration(t);return n?n._handler(e,r):e}))},t.prototype._handler=function(t,e){if(!(t.exception&&t.exception.values&&e&&Object(xn.g)(e.originalException,Error)))return t;var r=this._walkErrorTree(e.originalException,this._key);return t.exception.values=Object(ye.g)(r,t.exception.values),t},t.prototype._walkErrorTree=function(t,e,r){if(void 0===r&&(r=[]),!Object(xn.g)(t[e],Error)||r.length+1>=this._limit)return r;var n=aa(na(t[e]));return this._walkErrorTree(t[e],e,Object(ye.g)([n],r))},t.id="LinkedErrors",t}(),Na=Object(hn.e)(),Da=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){On((function(e){var r,n,i;if(Nn().getIntegration(t)){if(!Na.navigator&&!Na.location&&!Na.document)return e;var o=(null===(r=e.request)||void 0===r?void 0:r.url)||(null===(n=Na.location)||void 0===n?void 0:n.href),a=(Na.document||{}).referrer,s=(Na.navigator||{}).userAgent,c=Object(ye.a)(Object(ye.a)(Object(ye.a)({},null===(i=e.request)||void 0===i?void 0:i.headers),a&&{Referer:a}),s&&{"User-Agent":s}),u=Object(ye.a)(Object(ye.a)({},o&&{url:o}),{headers:c});return Object(ye.a)(Object(ye.a)({},e),{request:u})}return e}))},t.id="UserAgent",t}(),Pa=[new i.InboundFilters,new i.FunctionToString,new Aa,new Ta,new Ia,new Ra,new Da];function Ma(t){if(void 0===t&&(t={}),void 0===t.defaultIntegrations&&(t.defaultIntegrations=Pa),void 0===t.release){var e=Object(hn.e)();e.SENTRY_RELEASE&&e.SENTRY_RELEASE.id&&(t.release=e.SENTRY_RELEASE.id)}void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),function(t,e){var r;!0===e.debug&&_n.enable();var n=Nn();null===(r=n.getScope())||void 0===r||r.update(e.initialScope);var i=new t(e);n.bindClient(i)}(ja,t),t.autoSessionTracking&&function(){if(void 0!==Object(hn.e)().document){var t=Nn();"function"==typeof t.startSession&&"function"==typeof t.captureSession&&(t.startSession({ignoreDuration:!0}),t.captureSession(),Co({callback:function(e){var r=e.from,n=e.to;void 0!==r&&r!==n&&(t.startSession({ignoreDuration:!0}),t.captureSession())},type:"history"}))}else _n.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")}()}var La=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^/]+?|)(\.[^./]*|))(?:[/]*)$/;function Ua(t,e){var r=function(t){var e=La.exec(t);return e?e.slice(1):[]}(t)[2];return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r}var Fa={activate:["activated","deactivated"],create:["beforeCreate","created"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]},$a=/(?:^|[-_/])(\w)/g,Va="anonymous component";var za=function(){function t(t){var e=this;this._componentsCache={},this._applyTracingHooks=function(t){if(!t.$options.$_sentryPerfHook){t.$options.$_sentryPerfHook=!0;var r=e._getComponentName(t),n="root"===r,i={},o=function(r){var n=Object(mn.c)();e._rootSpan?e._finishRootSpan(n):t.$once("hook:"+r,(function(){var t=qa();t&&(e._rootSpan=t.startChild({description:"Application Render",op:"Vue"}))}))},a=function(n,o){var a=Array.isArray(e._options.tracingOptions.trackComponents)?e._options.tracingOptions.trackComponents.indexOf(r)>-1:e._options.tracingOptions.trackComponents,s=e._rootSpan||qa();if(s&&a){var c=Object(mn.c)(),u=i[o];u?(u.finish(),e._finishRootSpan(c)):t.$once("hook:"+n,(function(){s&&(i[o]=s.startChild({description:"Vue <"+r+">",op:o}))}))}};e._options.tracingOptions.hooks.forEach((function(r){var i=Fa[r];i?i.forEach((function(i){var s=n?o.bind(e,i):a.bind(e,i,r),c=t.$options[i];Array.isArray(c)?t.$options[i]=Object(ye.g)([s],c):t.$options[i]="function"==typeof c?[s,c]:[s]})):_n.warn("Unknown hook: "+r)}))}},this._options=t}return t.prototype.setup=function(){this._attachErrorHandler(),("tracesSampleRate"in this._options||"tracesSampler"in this._options)&&this._startTracing()},t.prototype._getComponentName=function(t){if(!t)return Va;if(t.$root===t)return"root";if(!t.$options)return Va;if(t.$options.name)return t.$options.name;if(t.$options._componentTag)return t.$options._componentTag;if(t.$options.__file){var e=Ua(t.$options.__file.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"),".vue");return this._componentsCache[e]||(this._componentsCache[e]=e.replace($a,(function(t,e){return e?e.toUpperCase():""})))}return Va},t.prototype._finishRootSpan=function(t){var e=this;this._rootSpanTimer&&clearTimeout(this._rootSpanTimer),this._rootSpanTimer=setTimeout((function(){e._rootSpan&&(e._rootSpan.finish(t),e._rootSpan=void 0)}),this._options.tracingOptions.timeout)},t.prototype._startTracing=function(){var t=this._applyTracingHooks,e=setTimeout((function(){_n.warn("Didn't apply tracing hooks, make sure you call Sentry.init before initialzing Vue!")}),500);this._options.Vue.mixin({beforeCreate:function(){clearTimeout(e),t(this)}})},t.prototype._attachErrorHandler=function(){var t=this,e=this._options.Vue.config.errorHandler;this._options.Vue.config.errorHandler=function(r,n,i){var o={};if(n)try{o.componentName=t._getComponentName(n),t._options.attachProps&&(o.propsData=n.$options.propsData)}catch(t){_n.warn("Unable to extract metadata from Vue component.")}i&&(o.lifecycleHook=i),setTimeout((function(){Nn().withScope((function(t){t.setContext("vue",o),Nn().captureException(r)}))})),"function"==typeof e&&e.call(t._options.Vue,r,n,i),t._options.logErrors&&(t._options.Vue.util&&t._options.Vue.util.warn("Error in "+i+': "'+(r&&r.toString())+'"',n),console.error(r))}},t}();function qa(){var t;return null===(t=Nn().getScope())||void 0===t?void 0:t.getTransaction()}var Ba=r("50ca"),Ga=r.n(Ba);const Wa=(t,e,r=(()=>!0))=>Ga()(t,(n,i,o)=>{const a=e(i,o,t),s=r(i,o,t);return n[o]=!1!==s&&null!==a&&"object"==typeof a?Wa(a,e,r):a,n});var Ha=()=>{Rt.debug("[initSentry] 👃"),function(t){void 0===t&&(t={});var e=Object(ye.a)(Object(ye.a)({Vue:Object(hn.e)().Vue,attachProps:!0,logErrors:!1,tracing:!1},t),{tracingOptions:Object(ye.a)({hooks:["activate","mount","update"],timeout:2e3,trackComponents:!1},t.tracingOptions)});e._metadata=e._metadata||{},e._metadata.sdk={name:"sentry.javascript.vue",packages:[{name:"npm:@sentry/vue",version:mo}],version:mo},Ma(e),void 0===e.Vue?(_n.warn("No Vue instance was provided. Also there is no Vue instance on the `window` object."),_n.warn("We will only capture global unhandled errors.")):new za(e).setup()}({Vue:o.default,autoSessionTracking:!1,attachProps:!0,logErrors:!0,environment:vt,dsn:"https://3e312a60dbdf450b9b8a65d956beb95b@o454915.ingest.sentry.io/5630840",sampleRate:1,ignoreErrors:["dynamix","webGui/javascript/dynamix","trigger(webGui/javascript/dynamix)","n.parseJSON(webGui/javascript/dynamix)","Object.success(Apps)","Object.success(Docker)","Object.success(Main)","Object.success(Plugins)","Object.success(Settings)","Object.success(Shares)","Object.success(Tools)","Object.success(Tools/Syslog)","checkPorts(Settings/ManagementAccess)","disable(Settings/openvpnclient)","community.applications","community-applications","plugins/community.applications/javascript/libraries","plugins","Docker","Tools","Honey.safariextension","validateForm(Settings/openvpnclient)","disable(Settings/openvpnclient)","getLibvirtSchema","initab(Main)","disableTest(Settings/Notifications)","failure(Settings/ManagementAccess)"],denyUrls:["https://[REDACTED]/webGui/javascript/dynamix.js",`https://${window.location.host}/webGui/javascript/dynamix.js`,"https://[REDACTED]/plugins/community.applications/javascript/libraries.js",`https://${window.location.host}/plugins/community.applications/javascript/libraries.js`],beforeSend(t,e){const r=window.location.host,n=Wa(t,(t,e)=>"object"==typeof t?t:((t,e,r)=>String(t).includes(e)?String(t).replace(e,r):t)(t,r,"[REDACTED]")),i=e.originalException;Rt.debug("[sentry.beforeSend] %o",i);const o="UNRAID_SENTRY_GUEST_PERMISSIONS_ISSUE",a=sessionStorage.getItem(o);return i&&i.message&&i.message.includes('guest doesn\'t have permission to access "servers"')?(Rt.debug("[SPECIAL • SENTRY] ✨✨✨"),a?null:(sessionStorage.setItem(o,1),n)):n}})};var Qa=g({i18n:mt,store:vi,name:"UserProfile",mixins:[Ii.mixin],components:{UnraidLogoMark:wi,KeyAction:Bi,MetaInfo:ho,MyServers:eo,UnraidSvgUtilLogout:Ni.a,UnraidSvgUtilNewWindow:Pi.a,UnraidSvgUtilSelect:Li.a,UnraidSvgUtilEdit:Fi.a,UnraidSvgUiWarning:Vi.a},props:{serverstate:String,serverdesc:String,displaydesc:{type:String,default:""},servermodel:String,serverupdate:Boolean,banner:{type:String,default:""},theme:{type:String,default:"black"},textcolor:String,bgcolor:[String,Number],metacolor:String,uptime:[Number,String],expiretime:[Number,String],apikey:String,regWizTime:String,hideotherservers:{type:String,default:""},locale:String,localeMessages:String,sendCrashInfo:String,csrf:String,hideMyServers:{type:String,default:null},plgPath:String},data:()=>({NODE_ENV:vt,dropdownVisible:!1,dropdownTimeout:"",errorStateMessageVisible:!0,avatarFail:!1}),computed:{...Object(b.e)(["avatar","isLaunchpadOpen","isPopUpOpen","guid","guidRegistered","popUpWindow","regAtOpen","purchaseWindow","registered","servername","internalip","state","username","darkTheme","lightTheme","extendTrialPayload","recoverKeyPayload","replaceKeyPayload","signInPayload","signUpPayload","signOutPayload","troubleshootPayload","wizardWindow","messages","myServersEnv","triggerUPC","graphOnline"]),...Object(b.c)(["stateData","signedOutWithKey","noRemoteApikeyRegisteredWithPlg","errorTooManyDisks"]),darkMode(){return"black"===this.theme||"azure"===this.theme},usernameButtonText(){return"ENOKEYFILE"===this.state?this.$t("getStarted"):this.stateData.error&&this.stateData.error.signInToFix&&!this.registered?this.$t("signIn"):this.stateData.error&&!this.stateData.error.signInToFix&&"EEXPIRED"===!this.state?this.$t("fixError"):this.registered?this.username:this.$t("signIn")},usernameButtonTitle(){return"ENOKEYFILE"===this.state?this.$t("getStarted"):this.errorTooManyDisks?"Too many devices":this.stateData.error&&this.stateData.error.signInToFix&&!this.registered?this.$t("upc.signInActions.resolve"):this.stateData.error&&!this.stateData.error.signInToFix?this.$t("learnMore"):this.isPopUpOpen&&this.isLaunchpadOpen?this.$t("upc.confirmClosure"):this.isLaunchpadOpen?this.$t("closeLaunchpad"):"EEXPIRED"===this.state?this.registered?this.$t("upc.trialHasExpiredSeeOptions"):this.stateData.actions.includes("extend")?this.$t("upc.signInActions.purchaseKeyOrExtendTrial"):this.$t("upc.signInActions.purchaseKey"):this.registered&&this.dropdownVisible?this.$t("upc.closeDropdown"):this.registered&&!this.dropdownVisible?this.$t("upc.openDropdown"):this.$t("upc.opensNewHttpsWindow.signIn")},displayKeylineBelowActions(){return!!(this.stateData.actions.includes("purchase")||this.stateData.actions.includes("upgrade")||this.stateData.actions.includes("recover")||this.stateData.actions.includes("replace")||this.stateData.actions.includes("extend"))},extraLinks(){return[...!this.hideMyServers||this.stateData.error.message||this.errorTooManyDisks?[{url:"",text:"",external:!1}]:[],...this.hideMyServers?[{url:"https://wiki.unraid.net/My_Servers",text:"Install My Servers Beta",external:!0,title:this.$t("upc.extraLinks.newTab",["Install My Servers Beta"])}]:[{url:this.myServersEnv?"https://forums.unraid.net/my-servers-staging/":"https://forums.unraid.net/my-servers/",text:this.$t("upc.extraLinks.myServers"),external:!0,title:this.$t("upc.extraLinks.newTab",[this.$t("upc.extraLinks.myServers")])},{url:"/Settings/ManagementAccess#"+(this.plgPath?"MyServersSettings":"UnraidNetSettings"),text:this.$t("upc.extraLinks.settings.text"),settings:!0,title:this.$t("upc.extraLinks.settings.title")}]]},devEnv(){let t=vt;const e="UPC_ENV=",r=document.cookie.split(";");for(let n=0;n{this.dropdownVisible=!1},1e3)},autoTriggerLaunchpad(){setTimeout(()=>{const t=`${this.servername}_${this.guid?this.guid.slice(-12):"NO_GUID"}`;sessionStorage.getItem(t)||"ENOKEYFILE"!==this.state||(sessionStorage.setItem(t,"またね"),this.isLaunchpadOpen||this.toggleLaunchpad())},100)},toggleLaunchpad(){const t="unraid-launchpad";if(!document.getElementsByTagName(t).length){const e=document.getElementsByTagName("body")[0],r=document.createElement(t);e.appendChild(r)}const e=()=>{this.dropdownVisible&&(this.dropdownVisible=!1),this.isPopUpOpen&&this.closePopUp(),this.SET_IS_LAUNCHPAD_OPEN(!this.isLaunchpadOpen)};this.isPopUpOpen&&this.isLaunchpadOpen?window.confirm(this.$t("upc.pleaseConfirmClosureYouHaveOpenPopUp"))&&e():e()},onAvatarError(){Rt.error("Avatar failed to load %s",this.avatar),this.avatarFail=!0},async initUserProfile(){if(this.setStateFromWebComponentProp(this.serverstate),!this.registered){const t=`Sign In to your Unraid.net account to perform license key actions${this.hideMyServers?"":" and to receive real-time server monitoring with My Servers"}.`,e="Learn more at https://wiki.unraid.net/My_Servers.",r=["color: white","background: linear-gradient(to right, #E22828 0%, #FF8C2F 100%)","font-size: 10px","padding: 4px"].join(";");Rt.log("%c"+t,r),Rt.log("%c"+e,r)}if(this.apikey&&this.SET_API_KEY(this.apikey),"yes"===this.sendCrashInfo&&(this.SET_SENTRY_ENABLED(!0),Ha()),this.expiretime&&this.SET_EXPIRE_TIME(this.expiretime),this.regWizTime&&this.SET_REGWIZ_TIME(this.regWizTime),this.serverdesc&&this.SET_SERVERDESC(this.serverdesc),this.localeMessages){Rt.debug("[this.locale] %o",this.locale);const[t,e]=Ot(decodeURIComponent(this.localeMessages));t&&Rt.error("[initUserProfile.localeMessages] %s","Unable to set locale and locale messages"),this.$i18n.locale=this.locale,this.$i18n.setLocaleMessage(this.locale,e[this.locale]),Rt.debug(`[initUserProfile.$i18n] ${this.$i18n.locale} locale & messages set %o`,e[this.locale]),this.SET_LOCALE(this.locale)}this.csrf&&this.SET_CSRF(this.csrf),this.plgPath&&this.SET_PLG_PATH(this.plgPath),this.hideMyServers&&this.SET_HIDE_MY_SERVERS(this.hideMyServers),this.signedOutWithKey&&this.regWizTime?await this.validateGuid():this.autoTriggerLaunchpad(),this.SET_DARK_MODE(this.darkMode),window.addEventListener("message",t=>{this.receivePostMessage({inject:!1,event:t})},!1)}},watch:{signedOutWithKey(t,e){t&&!e&&this.regWizTime&&this.validateGuid()},isPopUpOpen(t,e){this.isLaunchpadOpen&&!t&&e&&!this.regAtOpen&&this.registered&&this.SET_IS_LAUNCHPAD_OPEN(!1)},triggerUPC(t){t&&setTimeout(()=>{this.dropdownVisible=!0},150)},graphOnline(t,e){t&&!e&&this.updateServerState()}},created(){this.initUserProfile()},beforeMount(){const t=document.getElementsByTagName("body")[0];let{alpha:e,beta:r,gamma:n}=this.darkMode?this.darkTheme:this.lightTheme;this.textcolor&&(e=this.textcolor),this.bgcolor&&(r=this.bgcolor,t.style.setProperty("--color-customgradient-start",Ai()(r,0)),t.style.setProperty("--color-customgradient-end",Ai()(r,.9))),this.metacolor&&(n=this.metacolor),t.style.setProperty("--color-alpha",e),t.style.setProperty("--color-beta",r),t.style.setProperty("--color-gamma",n)}},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"UnraidUPC",class:{"--hasBanner-default":t.banner&&!t.bgcolor,"--hasBanner-custom":t.banner&&t.bgcolor},attrs:{id:"UnraidUPC"}},[t.isPopUpOpen&&!t.isLaunchpadOpen?r("div",{staticClass:"absolute z-10 inset-0 flex flex-col items-end justify-center pr-6"},[r("div",{staticClass:"text-center inline-flex flex-col items-center justify-center"},[r("button",{staticClass:"text-14px button button-alt",on:{click:function(e){return t.openPopUp()}}},[t._v(t._s(t.$t("backToPopUp")))]),r("button",{staticClass:"hover:underline text-12px mt-4px",on:{click:function(e){return t.closePopUp()}}},[t._v(t._s(t.$t("closePopUp")))])])]):t._e(),r("MetaInfo",{class:{"blur opacity-30 pointer-events-none transition-all duration-150 ease-in-out":t.isPopUpOpen&&!t.isLaunchpadOpen},attrs:{uptime:t.uptime,expiretime:t.expiretime},on:{purchase:function(e){return t.openPopUp(t.purchaseWindow)},upgrade:function(e){return t.openPopUp(t.purchaseWindow)},signin:function(e){return t.openPopUp(t.signInPayload)}}}),r("div",{staticClass:"relative z-0 flex flex-row items-center justify-end h-full",class:{"blur opacity-30 pointer-events-none transition-all duration-150 ease-in-out":t.isPopUpOpen&&!t.isLaunchpadOpen}},[r("h1",{staticClass:"text-18px border-t-0 border-r-0 border-l-0 border-b-2 border-transparent"},[t.displaydesc?[r("span",{attrs:{title:t.servermodel}},[t._v(t._s(t.serverdesc))]),r("span",{staticClass:"text-grey-mid px-8px"},[t._v("•")])]:t._e(),r("span",{attrs:{title:t.$t("lanIp",[t.internalip])}},[t._v(t._s(t.servername))])],2),r("div",{staticClass:"block w-2px h-24px ml-16px bg-grey-mid"}),r("div",{directives:[{name:"on-clickaway",rawName:"v-on-clickaway",value:t.closeDropdown,expression:"closeDropdown"}],staticClass:"relative flex items-center justify-end h-full",on:{mouseenter:function(e){return t.dropdownMouseEnter()},mouseleave:function(e){return t.dropdownMouseLeave()}}},[r("button",{staticClass:"UnraidUPC-username group text-18px hover:text-alpha focus:text-alpha border border-transparent flex flex-row justify-end items-center h-full px-16px outline-none focus:outline-none",class:{"text-orange-dark":t.isLaunchpadOpen||!t.username&&!t.stateData.error,"text-alpha":t.username&&!t.isLaunchpadOpen,"text-red":t.stateData.error},attrs:{title:t.usernameButtonTitle},on:{click:function(e){return t.usernameAvatarButton()}}},[t.stateData.error||"EEXPIRED"===t.state||t.noRemoteApikeyRegisteredWithPlg||t.errorTooManyDisks?r("UnraidSvgUiWarning",{staticClass:"text-red fill-current relative w-24px h-24px mr-8px"}):t._e(),r("span",{staticClass:"inline-flex items-center bg-transparent border-t-0 border-l-0 border-r-0 border-b-2 border-transparent group-hover:border-orange-dark group-focus:border-orange-dark transition-colors duration-150 ease-in-out"},[t._v(" "+t._s(t.usernameButtonText)+" "),t.registered&&!t.isLaunchpadOpen?r("UnraidSvgUtilSelect",{staticClass:"fill-current w-8px h-8px ml-8px"}):t._e()],1),r("span",{staticClass:"relative z-0 flex items-center justify-center w-36px h-36px ml-8px rounded-full",class:{"bg-transparent":t.registered&&!t.avatarFail,"bg-gradient-to-r from-red to-orange":!t.registered||t.avatarFail}},[t.registered&&!t.avatarFail?r("img",{staticClass:"absolute z-10 inset-0 w-36px h-36px rounded-full overflow-hidden",attrs:{src:t.avatar,alt:""+t.$t("upc.avatarAlt",[t.username])},on:{error:t.onAvatarError}}):r("UnraidLogoMark",{staticClass:"relative z-0 w-28px",attrs:{"gradient-start":"#fff","gradient-stop":"#fff"}})],1)],1),r("transition",{attrs:{name:"slideVerticalFade",mode:"out-in"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:t.dropdownVisible,expression:"dropdownVisible"}],staticClass:"UnraidUPC-dropdown",class:{"border-grey-darkest":t.darkMode,"border-grey-light":!t.darkMode}},[t.hideMyServers?t._e():r("header",{staticClass:"text-14px pt-16px px-16px rounded-t"},[r("h5",{staticClass:"text-18px leading-none inline-flex flex-row items-center"},[r("span",{staticClass:"font-semibold"},[t._v(t._s(t.$t("upc.myServers.heading")))]),r("span",{staticClass:"text-grey-mid text-10px uppercase ml-8px py-4px px-6px border-2 border-grey-mid rounded-full"},[t._v(t._s(t.$t("upc.myServers.beta")))]),t.myServersEnv?r("span",{staticClass:"ml-8px",attrs:{title:"API • "+t.myServersEnv}},[t._v("⚙️")]):t._e(),t.devEnv?r("span",{staticClass:"ml-8px",attrs:{title:t.devEnv}},[t._v("⚠️")]):t._e()])]),r("ul",{staticClass:"list-reset my-8px p-0"},["development"===t.NODE_ENV?[r("li",[r("KeyAction",{attrs:{text:"[DEV] Launchpad",external:!1},on:{click:function(e){return t.toggleLaunchpad()}}})],1),r("li",[r("KeyAction",{attrs:{text:"[DEV] Pop-up"},on:{click:function(e){return t.openPopUp(t.wizardWindow)}}})],1)]:t._e(),t.displayKeylineBelowActions?[r("li",[t.stateData.actions.includes("purchase")?r("KeyAction",{attrs:{text:t.$t("actions.purchase")},on:{click:function(e){return t.openPopUp(t.purchaseWindow)}}}):t._e(),t.stateData.actions.includes("upgrade")?r("KeyAction",{attrs:{text:t.$t("actions.upgrade")},on:{click:function(e){return t.openPopUp(t.purchaseWindow)}}}):t._e(),t.stateData.actions.includes("recover")?r("KeyAction",{attrs:{text:t.$t("actions.recover")},on:{click:function(e){return t.openPopUp(t.recoverKeyPayload)}}}):t._e(),t.stateData.actions.includes("replace")?r("KeyAction",{attrs:{text:t.$t("actions.replace")},on:{click:function(e){return t.openPopUp(t.replaceKeyPayload)}}}):t._e(),t.stateData.actions.includes("extend")?r("KeyAction",{attrs:{text:t.$t("actions.extend")},on:{click:function(e){return t.openPopUp(t.extendTrialPayload)}}}):t._e()],1),r("li",{staticClass:"my-8px mx-12px"},[r("hr",{staticClass:"w-full h-2px bg-gradient-to-r from-red to-orange shadow-none border-none rounded-none"})])]:t._e(),!t.hideMyServers||t.stateData.error.message||t.errorTooManyDisks?r("MyServers",{attrs:{hideMyServers:t.hideMyServers,errorStateMessageVisible:t.errorStateMessageVisible,hideotherservers:t.hideotherservers},on:{"contact-support":function(e){return t.openPopUp(t.troubleshootPayload)},"toggle-error":function(e){t.errorStateMessageVisible=!t.errorStateMessageVisible}}}):t._e(),t._l(t.extraLinks,(function(e,n){return[e.url?r("li",{key:n},[r("a",{staticClass:"flex flex-row items-center",attrs:{href:e.url,target:e.external?"_blank":"",title:e.title}},[e.external?r("UnraidSvgUtilNewWindow",{staticClass:"fill-current w-12px h-12px mr-8px"}):t._e(),e.settings?r("UnraidSvgUtilEdit",{staticClass:"fill-current w-12px h-12px mr-8px"}):t._e(),t._v(" "+t._s(e.text)+" ")],1)]):r("div",{key:n,staticClass:"mx-12px"},[r("hr",{staticClass:"w-full h-2px my-8px bg-gradient-to-r from-red to-orange shadow-none border-none rounded-none"})])]})),r("li",[r("button",{staticClass:"group flex flex-row items-center justify-between",attrs:{title:t.$t("upc.opensNewHttpsWindow.base",["Sign Out of Unraid.net"])},on:{click:function(e){return t.openPopUp(t.signOutPayload)}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilLogout",{staticClass:"fill-current w-12px h-12px mr-8px"}),t._v(" "+t._s("Sign Out of Unraid.net")+" ")],1),r("UnraidSvgUtilNewWindow",{staticClass:"text-white opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1)])],2)])])],1)])],1)}),[],!1,(function(t){var e=r("e519");e.__inject__&&e.__inject__(t)}),null,null,!0).exports;var Ya=g({i18n:mt,store:vi,name:"WanIpCheck",props:["phpWanIp"],computed:{...Object(b.e)(["wanip","site"]),...Object(b.c)(["isRemoteAccess"]),loading(){return!(this.wanip&&this.phpWanIp)}},methods:{...Object(b.b)(["getWanIp"])},created(){Rt.debug("[🍣 WanIpCheck 🍣]"),this.wanip||this.getWanIp()}},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("transition",{attrs:{appear:"",name:"fade",mode:"out-in"}},[t.loading?r("span",[t._v("Checking Wan IPs…")]):[t.isRemoteAccess?r("span",{domProps:{innerHTML:t._s(t.$t("wanIpCheck.match",[t.phpWanIp]))}}):t.phpWanIp!==t.wanip||t.isRemoteAccess?r("span",{staticClass:"mismatch",domProps:{innerHTML:t._s(t.$t("wanIpCheck.mismatch",[t.phpWanIp,t.wanip]))}}):r("span",{domProps:{innerHTML:t._s(t.$t("wanIpCheck.match",[t.wanip]))}})]],2)}),[],!1,(function(t){var e=r("d5a9");e.__inject__&&e.__inject__(t)}),"8567d524",null,!0).exports;window.customElements.define("unraid-authed",v(o.default,gi)),window.customElements.define("unraid-launchpad",v(o.default,Ti)),window.customElements.define("unraid-upc-trigger",v(o.default,ji)),window.customElements.define("unraid-user-profile",v(o.default,Qa)),window.customElements.define("unraid-wan-ip-check",v(o.default,Ya))},"5d74":function(t,e,r){t.exports={options:{},ssr:function(t,e){var r=t.data,n=r.attrs,i=n.symbol,o=n.size,a=this.getAttributes(o);a&&(r.attrs=Object.assign({},r.attrs,a)),o&&delete r.attrs.size,i&&delete r.attrs.symbol;var s=r.class,c=r.staticClass||"";c+=s?Object.keys(s).join(" "):"",this.hasClass(c)||(r.staticClass=r.staticClass?r.staticClass+" "+this.options.class:this.options.class);var u=t.context.$createElement("use",{attrs:{href:this.getHref(i)}});Array.isArray(t.children)?t.children.push(u):t.children=[u]},install:function(t,e){void 0===e&&(e={}),this.options.class=e.class||"icon",this.options.url=void 0===e.url?"/assets/svg/sprite.svg":e.url;var r=this;t.directive("svg",{bind:function(t,e,n){var i=e.value||n.data.attrs.symbol,o=n.data.attrs&&n.data.attrs.size,a=r.getAttributes(o);a&&(t.setAttribute("viewBox",a.viewBox),t.setAttribute("width",a.width),t.setAttribute("height",a.height)),i&&t.removeAttribute("symbol"),o&&t.removeAttribute("size");var s=t.getAttribute("class");if(r.hasClass(s)||t.setAttribute("class",s?s+" "+r.options.class:r.options.class),!t||null===t.querySelector("use")){var c=document.createElementNS("http://www.w3.org/2000/svg","use"),u=r.getHref(i);c.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u),c.setAttribute("href",u),t.appendChild(c)}},update:function(t,e,n){var i=r.getHref(e.value||n.data.attrs.symbol),o=t&&t.querySelector("use");if(o){if(o.getAttribute("href")===i)return!1;var a=document.createElementNS("http://www.w3.org/2000/svg","use");a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i),a.setAttribute("href",i),t.replaceChild(a,o)}}})},getAttributes:function(t){if(!t)return null;var e=t.toString().replace(/( |, |,)/g," ").split(" "),r=e.length;if(3===r||r>4)return console.warn('[vue-svg-sprite] size: "'+t+'" is not valid'),null;var n=[];n[0]=r<4?0:e[0],n[1]=r<4?0:e[1];var i=n[2]=r<4?e[0]:e[2];return{height:n[3]=e[r-1],viewBox:n.join(" "),width:i}},hasClass:function(t){var e=this.options.class;return!!t&&t.split(" ").some((function(t){var r=t.split(/(-|_)/)[0];return-1!==r.indexOf(e)&&r.length===e.length}))},getHref:function(t){return""===this.options.url?"#"+t:this.options.url+"#"+t}}},"5e2e":function(t,e,r){var n=r("28c9"),i=r("69d5"),o=r("b4c0"),a=r("fba5"),s=r("67ca");function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0){var s=e.shift();s&&s.applyMiddleware.apply(i,[t,o])}else r(t)};o()}(a(e.middlewares),e)}))},t.prototype.use=function(t){var e=this;return t.map((function(t){if("function"!=typeof t.applyMiddleware)throw new Error("Middleware must implement the applyMiddleware function.");e.middlewares.push(t)})),this},t.prototype.getConnectionParams=function(t){return function(){return new Promise((function(e,r){if("function"==typeof t)try{return e(t.call(null))}catch(t){return r(t)}e(t)}))}},t.prototype.executeOperation=function(t,e){var r=this;null===this.client&&this.connect();var n=this.generateOperationId();return this.operations[n]={options:t,handler:e},this.applyMiddlewares(t).then((function(t){r.checkOperationOptions(t,e),r.operations[n]&&(r.operations[n]={options:t,handler:e},r.sendMessage(n,b.default.GQL_START,t))})).catch((function(t){r.unsubscribe(n),e(r.formatErrors(t))})),n},t.prototype.getObserver=function(t,e,r){return"function"==typeof t?{next:function(e){return t(e)},error:function(t){return e&&e(t)},complete:function(){return r&&r()}}:t},t.prototype.createMaxConnectTimeGenerator=function(){var t=this.minWsTimeout,e=this.wsTimeout;return new u({min:t,max:e,factor:1.2})},t.prototype.clearCheckConnectionInterval=function(){this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnectionIntervalId=null)},t.prototype.clearMaxConnectTimeout=function(){this.maxConnectTimeoutId&&(clearTimeout(this.maxConnectTimeoutId),this.maxConnectTimeoutId=null)},t.prototype.clearTryReconnectTimeout=function(){this.tryReconnectTimeoutId&&(clearTimeout(this.tryReconnectTimeoutId),this.tryReconnectTimeoutId=null)},t.prototype.clearInactivityTimeout=function(){this.inactivityTimeoutId&&(clearTimeout(this.inactivityTimeoutId),this.inactivityTimeoutId=null)},t.prototype.setInactivityTimeout=function(){var t=this;this.inactivityTimeout>0&&0===Object.keys(this.operations).length&&(this.inactivityTimeoutId=setTimeout((function(){0===Object.keys(t.operations).length&&t.close()}),this.inactivityTimeout))},t.prototype.checkOperationOptions=function(t,e){var r=t.query,n=t.variables,i=t.operationName;if(!r)throw new Error("Must provide a query.");if(!e)throw new Error("Must provide an handler.");if(!p.default(r)&&!h.getOperationAST(r,i)||i&&!p.default(i)||n&&!d.default(n))throw new Error("Incorrect option types. query must be a string or a document,`operationName` must be a string, and `variables` must be an object.")},t.prototype.buildMessage=function(t,e,r){return{id:t,type:e,payload:r&&r.query?n(n({},r),{query:"string"==typeof r.query?r.query:f.print(r.query)}):r}},t.prototype.formatErrors=function(t){return Array.isArray(t)?t:t&&t.errors?this.formatErrors(t.errors):t&&t.message?[t]:[{name:"FormatedError",message:"Unknown error",originalError:t}]},t.prototype.sendMessage=function(t,e,r){this.sendMessageRaw(this.buildMessage(t,e,r))},t.prototype.sendMessageRaw=function(t){switch(this.status){case this.wsImpl.OPEN:var e=JSON.stringify(t);try{JSON.parse(e)}catch(e){this.eventEmitter.emit("error",new Error("Message must be JSON-serializable. Got: "+t))}this.client.send(e);break;case this.wsImpl.CONNECTING:this.unsentMessagesQueue.push(t);break;default:this.reconnecting||this.eventEmitter.emit("error",new Error("A message was not sent because socket is not connected, is closing or is already closed. Message was: "+JSON.stringify(t)))}},t.prototype.generateOperationId=function(){return String(++this.nextOperationId)},t.prototype.tryReconnect=function(){var t=this;if(this.reconnect&&!(this.backoff.attempts>=this.reconnectionAttempts)){this.reconnecting||(Object.keys(this.operations).forEach((function(e){t.unsentMessagesQueue.push(t.buildMessage(e,b.default.GQL_START,t.operations[e].options))})),this.reconnecting=!0),this.clearTryReconnectTimeout();var e=this.backoff.duration();this.tryReconnectTimeoutId=setTimeout((function(){t.connect()}),e)}},t.prototype.flushUnsentMessagesQueue=function(){var t=this;this.unsentMessagesQueue.forEach((function(e){t.sendMessageRaw(e)})),this.unsentMessagesQueue=[]},t.prototype.checkConnection=function(){this.wasKeepAliveReceived?this.wasKeepAliveReceived=!1:this.reconnecting||this.close(!1,!0)},t.prototype.checkMaxConnectTimeout=function(){var t=this;this.clearMaxConnectTimeout(),this.maxConnectTimeoutId=setTimeout((function(){t.status!==t.wsImpl.OPEN&&(t.reconnecting=!0,t.close(!1,!0))}),this.maxConnectTimeGenerator.duration())},t.prototype.connect=function(){var t,e=this;this.client=new((t=this.wsImpl).bind.apply(t,a([void 0,this.url,this.wsProtocols],this.wsOptionArguments))),this.checkMaxConnectTimeout(),this.client.onopen=function(){return i(e,void 0,void 0,(function(){var t,e;return o(this,(function(r){switch(r.label){case 0:if(this.status!==this.wsImpl.OPEN)return[3,4];this.clearMaxConnectTimeout(),this.closedByUser=!1,this.eventEmitter.emit(this.reconnecting?"reconnecting":"connecting"),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.connectionParams()];case 2:return t=r.sent(),this.sendMessage(void 0,b.default.GQL_CONNECTION_INIT,t),this.flushUnsentMessagesQueue(),[3,4];case 3:return e=r.sent(),this.sendMessage(void 0,b.default.GQL_CONNECTION_ERROR,e),this.flushUnsentMessagesQueue(),[3,4];case 4:return[2]}}))}))},this.client.onclose=function(){e.closedByUser||e.close(!1,!1)},this.client.onerror=function(t){e.eventEmitter.emit("error",t)},this.client.onmessage=function(t){var r=t.data;e.processReceivedData(r)}},t.prototype.processReceivedData=function(t){var e,r;try{r=(e=JSON.parse(t)).id}catch(e){throw new Error("Message must be JSON-parseable. Got: "+t)}if(-1===[b.default.GQL_DATA,b.default.GQL_COMPLETE,b.default.GQL_ERROR].indexOf(e.type)||this.operations[r])switch(e.type){case b.default.GQL_CONNECTION_ERROR:this.connectionCallback&&this.connectionCallback(e.payload);break;case b.default.GQL_CONNECTION_ACK:this.eventEmitter.emit(this.reconnecting?"reconnected":"connected",e.payload),this.reconnecting=!1,this.backoff.reset(),this.maxConnectTimeGenerator.reset(),this.connectionCallback&&this.connectionCallback();break;case b.default.GQL_COMPLETE:var i=this.operations[r].handler;delete this.operations[r],i.call(this,null,null);break;case b.default.GQL_ERROR:this.operations[r].handler(this.formatErrors(e.payload),null),delete this.operations[r];break;case b.default.GQL_DATA:var o=e.payload.errors?n(n({},e.payload),{errors:this.formatErrors(e.payload.errors)}):e.payload;this.operations[r].handler(null,o);break;case b.default.GQL_CONNECTION_KEEP_ALIVE:var a=void 0===this.wasKeepAliveReceived;this.wasKeepAliveReceived=!0,a&&this.checkConnection(),this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnection()),this.checkConnectionIntervalId=setInterval(this.checkConnection.bind(this),this.wsTimeout);break;default:throw new Error("Invalid message type!")}else this.unsubscribe(r)},t.prototype.unsubscribe=function(t){this.operations[t]&&(delete this.operations[t],this.setInactivityTimeout(),this.sendMessage(t,b.default.GQL_STOP,void 0))},t}();e.SubscriptionClient=y}).call(this,r("c8ba"))},"642a":function(t,e,r){var n=r("966f"),i=r("3bb4"),o=r("20ec");t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},"656b":function(t,e,r){var n=r("e2e4"),i=r("f4d6");t.exports=function(t,e){for(var r=0,o=(e=n(e,t)).length;null!=t&&r0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function p(){for(var t=[],e=0;e{const n=i.key(t)||i.value(e),a=r.some(e=>e.test(t))||o.some(t=>t.test(e));return n||a};return{map:e=>n(e).map((function(e){a(this.key,e)&&this.update(t)})),forEach:e=>{n(e).forEach((function(e){a(this.key,e)&&this.update(t)}))}}}},a190:function(t,e){t.exports={functional:!0,render(t,e){const{_c:r,_v:n,data:i,children:o=[]}=e,{class:a,staticClass:s,style:c,staticStyle:u,attrs:l={},...p}=i;return r("svg",{class:[a,s],style:[c,u],attrs:Object.assign({"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"},l),...p},o.concat([r("path",{attrs:{fill:"currentColor",d:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"}})]))}}},a2be:function(t,e,r){var n=r("d612"),i=r("4284"),o=r("c584");t.exports=function(t,e,r,a,s,c){var u=1&r,l=t.length,p=e.length;if(l!=p&&!(u&&p>l))return!1;var d=c.get(t),f=c.get(e);if(d&&f)return d==e&&f==t;var h=-1,m=!0,v=2&r?new n:void 0;for(c.set(t,e),c.set(e,t);++h1,i=!1,o=arguments[1],a=o;return new r((function(r){return e.subscribe({next:function(e){var o=!i;if(i=!0,!o||n)try{a=t(a,e)}catch(t){return r.error(t)}else a=e},error:function(t){r.error(t)},complete:function(){if(!i&&!n)return r.error(new TypeError("Cannot reduce an empty sequence"));r.next(a),r.complete()}})}))}},{key:"concat",value:function(){for(var t=this,e=arguments.length,r=new Array(e),n=0;n=0&&i.splice(t,1),a()}});i.push(o)},error:function(t){n.error(t)},complete:function(){a()}});function a(){o.closed&&0===i.length&&n.complete()}return function(){i.forEach((function(t){return t.unsubscribe()})),o.unsubscribe()}}))}},{key:l,value:function(){return this}}],[{key:"from",value:function(e){var r="function"==typeof this?this:t;if(null==e)throw new TypeError(e+" is not an object");var n=d(e,l);if(n){var i=n.call(e);if(Object(i)!==i)throw new TypeError(i+" is not an object");return function(t){return t instanceof x}(i)&&i.constructor===r?i:new r((function(t){return i.subscribe(t)}))}if(s("iterator")&&(n=d(e,u)))return new r((function(t){m((function(){if(!t.closed){var r=!0,i=!1,o=void 0;try{for(var a,s=n.call(e)[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var c=a.value;if(t.next(c),t.closed)return}}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}t.complete()}}))}));if(Array.isArray(e))return new r((function(t){m((function(){if(!t.closed){for(var r=0;r2)return"[Array]";for(var r=Math.min(10,t.length),n=t.length-r,i=[],o=0;o1&&i.push("... ".concat(n," more items")),"["+i.join(", ")+"]"}(t,r);return function(t,e){var r=Object.keys(t);return 0===r.length?"{}":e.length>2?"["+function(t){var e=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if("Object"===e&&"function"==typeof t.constructor){var r=t.constructor.name;if("string"==typeof r&&""!==r)return r}return e}(t)+"]":"{ "+r.map((function(r){return r+": "+a(t[r],e)})).join(", ")+" }"}(t,r)}(t,e);default:return String(t)}}function s(t){var e=t[String(n.a)];return"function"==typeof e?e:"function"==typeof t.inspect?t.inspect:void 0}},b045:function(t,e){t.exports={functional:!0,render(t,e){const{_c:r,_v:n,data:i,children:o=[]}=e,{class:a,staticClass:s,style:c,staticStyle:u,attrs:l={},...p}=i;return r("svg",{class:[a,s],style:[c,u],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},l),...p},o.concat([r("path",{attrs:{"fill-rule":"evenodd",d:"M8 16A8 8 0 118 0a8 8 0 010 16zM6.989 3v2.002h2V3h-2zM7 13h2V7H7a405.483 405.483 0 000 6z"}})]))}}},b047:function(t,e){t.exports=function(t){return function(e){return t(e)}}},b1e5:function(t,e,r){var n=r("a994"),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,o,a,s){var c=1&r,u=n(t),l=u.length;if(l!=n(e).length&&!c)return!1;for(var p=l;p--;){var d=u[p];if(!(c?d in e:i.call(e,d)))return!1}var f=s.get(t),h=s.get(e);if(f&&h)return f==e&&h==t;var m=!0;s.set(t,e),s.set(e,t);for(var v=c;++p-1&&t%1==0&&t<=9007199254740991}},b2a0:function(t,e){t.exports={functional:!0,render(t,e){const{_c:r,_v:n,data:i,children:o=[]}=e,{class:a,staticClass:s,style:c,staticStyle:u,attrs:l={},...p}=i;return r("svg",{class:[a,s],style:[c,u],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},l),...p},o.concat([r("path",{attrs:{"fill-rule":"evenodd",d:"M5.362 8.44l3-3.027L3.618.626A6.32 6.32 0 0110.86 1.88c1.958 1.977 2.373 4.923 1.243 7.31L16 13.126V16h-3.15l-3.745-3.78a6.32 6.32 0 01-7.242-1.256C-.095 8.987-.51 6.04.62 3.654L5.362 8.44z"}})]))}}},b4c0:function(t,e,r){var n=r("cb5a");t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},b57a:function(t,e,r){var n=r("d5b7");n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=r("35d6").default;t.exports.__inject__=function(t){i("c7a3fa1e",n,t)}},b5a7:function(t,e,r){var n=r("0b07")(r("2b3e"),"DataView");t.exports=n},b692:function(t,e){t.exports={functional:!0,render(t,e){const{_c:r,_v:n,data:i,children:o=[]}=e,{class:a,staticClass:s,style:c,staticStyle:u,attrs:l={},...p}=i;return r("svg",{class:[a,s],style:[c,u],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},l),...p},o.concat([r("path",{attrs:{"fill-rule":"evenodd",d:"M7 6h4V2l5 6-5 6v-4H7v2h2v4H0V0h9v4H7v2zm0 0V2H2v12h5v-4H4V6h3z"}})]))}}},ba10:function(t,e,r){"use strict";var n=Object.prototype.hasOwnProperty,i="~";function o(){}function a(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function s(t,e,r,n,o){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new a(r,n||t,o),c=i?i+e:e;return t._events[c]?t._events[c].fn?t._events[c]=[t._events[c],s]:t._events[c].push(s):(t._events[c]=s,t._eventsCount++),t}function c(t,e){0==--t._eventsCount?t._events=new o:delete t._events[e]}function u(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),u.prototype.eventNames=function(){var t,e,r=[];if(0===this._eventsCount)return r;for(e in t=this._events)n.call(t,e)&&r.push(i?e.slice(1):e);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(t)):r},u.prototype.listeners=function(t){var e=i?i+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,o=r.length,a=new Array(o);n ".length,s=void 0;e&&n++<5&&!("html"===(s=o(e))||n>1&&i+r.length*a+s.length>=80);)r.push(s),i+=s.length,e=e.parentNode;return r.reverse().join(" > ")}catch(t){return""}}function o(t){var e,r,i,o,a,s=t,c=[];if(!s||!s.tagName)return"";if(c.push(s.tagName.toLowerCase()),s.id&&c.push("#"+s.id),(e=s.className)&&Object(n.k)(e))for(r=e.split(/\s+/),a=0;a-1&&t%1==0&&t=0;n--){var i=t[n];"."===i?t.splice(n,1):".."===i?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}function n(t,e){if(t.filter)return t.filter(e);for(var r=[],n=0;n=-1&&!i;o--){var a=o>=0?arguments[o]:t.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(e=a+"/"+e,i="/"===a.charAt(0))}return(i?"/":"")+(e=r(n(e.split("/"),(function(t){return!!t})),!i).join("/"))||"."},e.normalize=function(t){var o=e.isAbsolute(t),a="/"===i(t,-1);return(t=r(n(t.split("/"),(function(t){return!!t})),!o).join("/"))||o||(t="."),t&&a&&(t+="/"),(o?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(n(t,(function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,r){function n(t){for(var e=0;e=0&&""===t[r];r--);return e>r?[]:t.slice(e,r-e+1)}t=e.resolve(t).substr(1),r=e.resolve(r).substr(1);for(var i=n(t.split("/")),o=n(r.split("/")),a=Math.min(i.length,o.length),s=a,c=0;c=1;--o)if(47===(e=t.charCodeAt(o))){if(!i){n=o;break}}else i=!1;return-1===n?r?"/":".":r&&1===n?"/":t.slice(0,n)},e.basename=function(t,e){var r=function(t){"string"!=typeof t&&(t+="");var e,r=0,n=-1,i=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!i){r=e+1;break}}else-1===n&&(i=!1,n=e+1);return-1===n?"":t.slice(r,n)}(t);return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r},e.extname=function(t){"string"!=typeof t&&(t+="");for(var e=-1,r=0,n=-1,i=!0,o=0,a=t.length-1;a>=0;--a){var s=t.charCodeAt(a);if(47!==s)-1===n&&(i=!1,n=a+1),46===s?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1);else if(!i){r=a+1;break}}return-1===e||-1===n||0===o||1===o&&e===n-1&&e===r+1?"":t.slice(e,n)};var i="b"==="ab".substr(-1)?function(t,e,r){return t.substr(e,r)}:function(t,e,r){return e<0&&(e=t.length+e),t.substr(e,r)}}).call(this,r("4362"))},e072:function(t,e,r){t.exports=function(t){"use strict";var e=function(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}(t),r={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(t){return t+"º"}};return e.default.locale(r,null,!0),r}(r("5a0c"))},e24b:function(t,e,r){var n=r("49f4"),i=r("1efc"),o=r("bbc0"),a=r("7a48"),s=r("2524");function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e"}try{s.currentTarget=Object(o.c)(a.currentTarget)?Object(i.a)(a.currentTarget):Object.prototype.toString.call(a.currentTarget)}catch(t){s.currentTarget=""}for(var n in"undefined"!=typeof CustomEvent&&Object(o.g)(t,CustomEvent)&&(s.detail=a.detail),a)Object.prototype.hasOwnProperty.call(a,n)&&(s[n]=a);return s}return t}function d(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}function f(t,e,r){void 0===e&&(e=3),void 0===r&&(r=102400);var n=v(t,e);return d(n)>r?f(t,e-1,r):n}function h(e,r){return"domain"===r&&e&&"object"==typeof e&&e._events?"[Domain]":"domainEmitter"===r?"[DomainEmitter]":void 0!==t&&e===t?"[Global]":"undefined"!=typeof window&&e===window?"[Window]":"undefined"!=typeof document&&e===document?"[Document]":Object(o.l)(e)?"[SyntheticEvent]":"number"==typeof e&&e!=e?"[NaN]":void 0===e?"[undefined]":"function"==typeof e?"[Function: "+Object(s.a)(e)+"]":"symbol"==typeof e?"["+String(e)+"]":"bigint"==typeof e?"[BigInt: "+String(e)+"]":e}function m(t,e,r,n){if(void 0===r&&(r=1/0),void 0===n&&(n=new a.a),0===r)return function(t){var e=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===e)return"[Object]";if("[object Array]"===e)return"[Array]";var r=h(t);return Object(o.i)(r)?r:e}(e);if(null!=e&&"function"==typeof e.toJSON)return e.toJSON();var i=h(e,t);if(Object(o.i)(i))return i;var s=p(e),c=Array.isArray(e)?[]:{};if(n.memoize(e))return"[Circular ~]";for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(c[u]=m(u,s[u],r-1,n));return n.unmemoize(e),c}function v(t,e){try{return JSON.parse(JSON.stringify(t,(function(t,r){return m(t,r,e)})))}catch(t){return"**non-serializable**"}}function g(t,e){void 0===e&&(e=40);var r=Object.keys(p(t));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=e)return Object(c.d)(r[0],e);for(var n=r.length;n>0;n--){var i=r.slice(0,n).join(", ");if(!(i.length>e))return n===r.length?i:Object(c.d)(i,e)}return""}function b(t){var e,r;if(Object(o.h)(t)){var i=t,a={};try{for(var s=Object(n.i)(Object.keys(i)),c=s.next();!c.done;c=s.next()){var u=c.value;void 0!==i[u]&&(a[u]=b(i[u]))}}catch(t){e={error:t}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}return a}return Array.isArray(t)?t.map(b):t}}).call(this,r("c8ba"))},eac5:function(t,e){var r=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},ec69:function(t,e,r){var n=r("6fcd"),i=r("03dd"),o=r("30c9");t.exports=function(t){return o(t)?n(t):i(t)}},edfa:function(t,e){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},ef5d:function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},ef7a:function(t,e,r){"use strict";r.r(e);var n=r("945a");for(var i in n)["default"].indexOf(i)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(i)},efb6:function(t,e,r){var n=r("5e2e");t.exports=function(){this.__data__=new n,this.size=0}},f153:function(t,e,r){"use strict";r.r(e);var n=r("10f4");for(var i in n)["default"].indexOf(i)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(i)},f404:function(t,e,r){"use strict";function n(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return m(t,Error)}}function i(t){return"[object ErrorEvent]"===Object.prototype.toString.call(t)}function o(t){return"[object DOMError]"===Object.prototype.toString.call(t)}function a(t){return"[object DOMException]"===Object.prototype.toString.call(t)}function s(t){return"[object String]"===Object.prototype.toString.call(t)}function c(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function u(t){return"[object Object]"===Object.prototype.toString.call(t)}function l(t){return"undefined"!=typeof Event&&m(t,Event)}function p(t){return"undefined"!=typeof Element&&m(t,Element)}function d(t){return"[object RegExp]"===Object.prototype.toString.call(t)}function f(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function h(t){return u(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function m(t,e){try{return t instanceof e}catch(t){return!1}}r.d(e,"d",(function(){return n})),r.d(e,"e",(function(){return i})),r.d(e,"a",(function(){return o})),r.d(e,"b",(function(){return a})),r.d(e,"k",(function(){return s})),r.d(e,"i",(function(){return c})),r.d(e,"h",(function(){return u})),r.d(e,"f",(function(){return l})),r.d(e,"c",(function(){return p})),r.d(e,"j",(function(){return d})),r.d(e,"m",(function(){return f})),r.d(e,"l",(function(){return h})),r.d(e,"g",(function(){return m}))},f4d6:function(t,e,r){var n=r("ffd6");t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},f608:function(t,e,r){var n=r("6747"),i=r("ffd6"),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!i(t))||a.test(t)||!o.test(t)||null!=e&&t in Object(e)}},f6fd:function(t,e){!function(t){var e="currentScript",r=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(n){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(n.stack)||[!1])[1];for(t in r)if(r[t].src==e||"interactive"==r[t].readyState)return r[t];return null}}})}(document)},f71e:function(t,e,r){"use strict";t.exports=function(t,e){e||(e={}),"function"==typeof e&&(e={cmp:e});var r="boolean"==typeof e.cycles&&e.cycles,n=e.cmp&&function(t){return function(e){return function(r,n){var i={key:r,value:e[r]},o={key:n,value:e[n]};return t(i,o)}}}(e.cmp),i=[];return function t(e){if(e&&e.toJSON&&"function"==typeof e.toJSON&&(e=e.toJSON()),void 0!==e){if("number"==typeof e)return isFinite(e)?""+e:"null";if("object"!=typeof e)return JSON.stringify(e);var o,a;if(Array.isArray(e)){for(a="[",o=0;o"}return t.event_id||""}function u(t){var e=o();if(!("console"in e))return t();var r=e.console,n={};["debug","info","warn","error","log","assert"].forEach((function(t){t in e.console&&r[t].__sentry_original__&&(n[t]=r[t],r[t]=r[t].__sentry_original__)}));var i=t();return Object.keys(n).forEach((function(t){r[t]=n[t]})),i}function l(t,e,r){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].value=t.exception.values[0].value||e||"",t.exception.values[0].type=t.exception.values[0].type||r||"Error"}function p(t,e){void 0===e&&(e={});try{t.exception.values[0].mechanism=t.exception.values[0].mechanism||{},Object.keys(e).forEach((function(r){t.exception.values[0].mechanism[r]=e[r]}))}catch(t){}}function d(){try{return document.location.href}catch(t){return""}}function f(t,e){if(!e)return 6e4;var r=parseInt(""+e,10);if(!isNaN(r))return 1e3*r;var n=Date.parse(""+e);return isNaN(n)?6e4:n-t}}).call(this,r("c8ba"))},f80d:function(t,e,r){"use strict";(function(t,n){function i(){return"[object process]"===Object.prototype.toString.call(void 0!==t?t:0)}function o(t,e){return t.require(e)}r.d(e,"b",(function(){return i})),r.d(e,"a",(function(){return o}))}).call(this,r("4362"),r("dd40")(t))},f9af:function(t,e,r){var n=r("6e8b");n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=r("35d6").default;t.exports.__inject__=function(t){i("296e8e3a",n,t)}},f9ce:function(t,e,r){var n=r("ef5d"),i=r("e3f8"),o=r("f608"),a=r("f4d6");t.exports=function(t){return o(t)?n(a(t)):i(t)}},fac5:function(t,e,r){(e=r("24fb")(!1)).push([t.i,".unraid_sc_loader_2,.unraid_sc_loader_4{-webkit-animation:mark_2 1.5s ease infinite;animation:mark_2 1.5s ease infinite}.unraid_sc_loader_3{-webkit-animation:mark_3 1.5s ease infinite;animation:mark_3 1.5s ease infinite}.unraid_sc_loader_6,.unraid_sc_loader_8{-webkit-animation:mark_6 1.5s ease infinite;animation:mark_6 1.5s ease infinite}.unraid_sc_loader_7{-webkit-animation:mark_7 1.5s ease infinite;animation:mark_7 1.5s ease infinite}@-webkit-keyframes mark_2{50%{-webkit-transform:translateY(-40px);transform:translateY(-40px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes mark_2{50%{-webkit-transform:translateY(-40px);transform:translateY(-40px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes mark_3{50%{-webkit-transform:translateY(-62px);transform:translateY(-62px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes mark_3{50%{-webkit-transform:translateY(-62px);transform:translateY(-62px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes mark_6{50%{-webkit-transform:translateY(40px);transform:translateY(40px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes mark_6{50%{-webkit-transform:translateY(40px);transform:translateY(40px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes mark_7{50%{-webkit-transform:translateY(62px);transform:translateY(62px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes mark_7{50%{-webkit-transform:translateY(62px);transform:translateY(62px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}",""]),t.exports=e},fba5:function(t,e,r){var n=r("cb5a");t.exports=function(t){return n(this.__data__,t)>-1}},fbdd:function(t,e,r){"use strict";r.d(e,"d",(function(){return i})),r.d(e,"c",(function(){return o})),r.d(e,"b",(function(){return a})),r.d(e,"a",(function(){return s}));var n=r("f404");function i(t,e){return void 0===e&&(e=0),"string"!=typeof t||0===e||t.length<=e?t:t.substr(0,e)+"..."}function o(t,e){var r=t,n=r.length;if(n<=150)return r;e>n&&(e=n);var i=Math.max(e-60,0);i<5&&(i=0);var o=Math.min(i+140,n);return o>n-5&&(o=n),o===n&&(i=Math.max(o-140,0)),r=r.slice(i,o),i>0&&(r="'{snip} "+r),o(t.commit("SET_MY_SERVERS_ERROR",e),t.state.myServersError)}),Rt.debug("[🪐 serverStateFromApi] DONE %o",e.data),e.data},stopGraphqlClient:t=>Object.keys(Vn).includes(t)?(Rt.debug("[getGraphqlClient] found existing client & stopping it"),Vn[t]):Rt.debug("[getGraphqlClient] client does not exist for apikey %s",t)};o.default.use(b.a);var vi=new b.a.Store({state:wt,getters:Ct,mutations:Nt,actions:mi});var gi=g({i18n:mt,store:vi,name:"Authed",props:["propRegistered"],data:()=>({regChanged:!1,popUpClosedTimer:null}),computed:{...Object(b.e)(["state","registered","isPopUpOpen","signOutPayload","wizardWindow"]),...Object(b.c)(["stateData"]),computedReg(){return null===this.registered?!!this.propRegistered:this.registered},buttonPayload(){return this.stateData.error?this.wizardWindow:this.computedReg?this.signOutPayload:this.wizardWindow},buttonText(){return this.stateData.error?this.$t("fixError"):this.isPopUpOpen?this.$t("backToPopUp"):"ENOKEYFILE"===this.state?this.$t("getStarted"):this.computedReg?this.$t("signOut"):this.$t("signIn")},buttonTitle(){return this.$t("upc.opensNewHttpsWindow.base",[this.buttonText])}},watch:{isPopUpOpen(t){!t&&this.regChanged&&(Rt.debug("[REGISTERED CHANGED] 🔥 reload webGUI settings"),window.location.reload())},registered(t,e){null!==e&&t!==this.propRegistered&&(Rt.debug("[REGISTERED CHANGED]",{newVal:t,oldVal:e}),this.regChanged=!0,this.isPopUpOpen||(Rt.debug("[REGISTERED CHANGED] 🔥🔥 reload webGUI settings"),window.location.reload()))}},methods:{...Object(b.b)(["closePopUp","openPopUp"])}},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("transition",{attrs:{appear:"",name:"fade",mode:"out-in"}},[r("div",[r("button",{attrs:{type:"button",title:t.buttonTitle},on:{click:function(e){return t.openPopUp(t.buttonPayload)}}},[t._v(t._s(t.buttonText))]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[t.isPopUpOpen?r("button",{staticClass:"ml-8px",attrs:{type:"button"},on:{click:function(e){return t.closePopUp()}}},[t._v(t._s(t.$t("closePopUp")))]):t._e()])],1)])}),[],!1,(function(t){var e=r("696d");e.__inject__&&e.__inject__(t)}),"0b24b7c6",null,!0).exports,bi=(g({name:"keyline",props:{color:{type:String,default:"grey"}},computed:{computedClass(){return"gradient"===this.color?"h-2px bg-gradient-r-red-orange":"h-1px bg-grey"}}},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("hr",{staticClass:"w-full shadow-none border-none rounded-none",class:t.computedClass})}),[],!1,null,null,null,!0).exports,function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("svg",{staticClass:"unraid_sc_loader",style:t.styles,attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 133.52 76.97",height:t.height+"px",role:"img"}},[r("title",[t._v(t._s(t.title))]),r("desc",[t._v("Unraid logo animating with a wave like effect")]),r("defs",[r("linearGradient",{attrs:{id:t.random,x1:"23.76",y1:"81.49",x2:"109.76",y2:"-4.51",gradientUnits:"userSpaceOnUse"}},[r("stop",{attrs:{offset:"0","stop-color":t.gradientStart}}),r("stop",{attrs:{offset:"1","stop-color":t.gradientStop}})],1)],1),r("path",{staticClass:"unraid_sc_loader_9",attrs:{d:"m70,19.24zm57,0l6.54,0l0,38.49l-6.54,0l0,-38.49z",fill:"url(#"+t.random+")"}}),r("path",{staticClass:"unraid_sc_loader_8",attrs:{d:"m70,19.24zm47.65,11.9l-6.55,0l0,-23.79l6.55,0l0,23.79z",fill:"url(#"+t.random+")"}}),r("path",{staticClass:"unraid_sc_loader_7",attrs:{d:"m70,19.24zm31.77,-4.54l-6.54,0l0,-14.7l6.54,0l0,14.7z",fill:"url(#"+t.random+")"}}),r("path",{staticClass:"unraid_sc_loader_6",attrs:{d:"m70,19.24zm15.9,11.9l-6.54,0l0,-23.79l6.54,0l0,23.79z",fill:"url(#"+t.random+")"}}),r("path",{staticClass:"unraid_sc_loader_5",attrs:{d:"m63.49,19.24l6.51,0l0,38.49l-6.51,0l0,-38.49z",fill:"url(#"+t.random+")"}}),r("path",{staticClass:"unraid_sc_loader_4",attrs:{d:"m70,19.24zm-22.38,26.6l6.54,0l0,23.78l-6.54,0l0,-23.78z",fill:"url(#"+t.random+")"}}),r("path",{staticClass:"unraid_sc_loader_3",attrs:{d:"m70,19.24zm-38.26,43.03l6.55,0l0,14.73l-6.55,0l0,-14.73z",fill:"url(#"+t.random+")"}}),r("path",{staticClass:"unraid_sc_loader_2",attrs:{d:"m70,19.24zm-54.13,26.6l6.54,0l0,23.78l-6.54,0l0,-23.78z",fill:"url(#"+t.random+")"}}),r("path",{staticClass:"unraid_sc_loader_1",attrs:{d:"m70,19.24zm-63.46,38.49l-6.54,0l0,-38.49l6.54,0l0,38.49z",fill:"url(#"+t.random+")"}})])});var yi=g({name:"loading",props:{height:{type:Number,default:64},styles:{type:Object,default:()=>({})},gradientStart:{type:String,default:"#e32929"},gradientStop:{type:String,default:"#ff8d30"},title:{type:String,default:"Loading"}},data:()=>({random:Math.random().toString(36).substring(7)})},bi,[],!1,(function(t){var e=r("ef7a");e.__inject__&&e.__inject__(t)}),null,null,!0).exports,_i=(g({name:"logo",props:{gradientStart:{type:String,default:"#e32929"},gradientStop:{type:String,default:"#ff8d30"}},data:()=>({random:Math.random().toString(36).substring(7)})},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 222.36 39.04"}},[r("defs",[r("linearGradient",{attrs:{id:t.random,x1:"47.53",y1:"79.1",x2:"170.71",y2:"-44.08",gradientUnits:"userSpaceOnUse"}},[r("stop",{attrs:{offset:"0","stop-color":t.gradientStart}}),r("stop",{attrs:{offset:"1","stop-color":t.gradientStop}})],1)],1),r("title",[t._v("Unraid Logo")]),r("path",{attrs:{d:"M146.7,29.47H135l-3,9h-6.49L138.93,0h8l13.41,38.49h-7.09L142.62,6.93l-5.83,16.88h8ZM29.69,0V25.4c0,8.91-5.77,13.64-14.9,13.64S0,34.31,0,25.4V0H6.54V25.4c0,5.17,3.19,7.92,8.25,7.92s8.36-2.75,8.36-7.92V0ZM50.86,12v26.5H44.31V0h6.11l17,26.5V0H74V38.49H67.9ZM171.29,0h6.54V38.49h-6.54Zm51.07,24.69c0,9-5.88,13.8-15.17,13.8H192.67V0H207.3c9.18,0,15.06,4.78,15.06,13.8ZM215.82,13.8c0-5.28-3.3-8.14-8.52-8.14h-8.08V32.77h8c5.33,0,8.63-2.8,8.63-8.08ZM108.31,23.92c4.34-1.6,6.93-5.28,6.93-11.55C115.24,3.68,110.18,0,102.48,0H88.84V38.49h6.55V5.66h6.87c3.8,0,6.21,1.82,6.21,6.71s-2.41,6.76-6.21,6.76H98.88l9.21,19.36h7.53Z",fill:"url(#"+t.random+")"}})])}),[],!1,null,null,null,!0).exports,function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 133.52 76.97"}},[r("title",[t._v("unraid-mark")]),r("defs",[r("linearGradient",{attrs:{id:t.random,x1:"23.76",y1:"81.49",x2:"109.76",y2:"-4.51",gradientUnits:"userSpaceOnUse"}},[r("stop",{attrs:{offset:"0","stop-color":t.gradientStart}}),r("stop",{attrs:{offset:"1","stop-color":t.gradientStop}})],1)],1),r("path",{attrs:{fill:"url(#"+t.random+")",d:"M63.49,19.24H70V57.73H63.49ZM6.54,57.73H0V19.24H6.54Zm25.2,4.54h6.55V77H31.74ZM15.87,45.84h6.54V69.62H15.87Zm31.75,0h6.54V69.62H47.62ZM127,19.24h6.54V57.73H127ZM101.77,14.7H95.23V0h6.54Zm15.88,16.44H111.1V7.35h6.55Zm-31.75,0H79.36V7.35H85.9Z"}})])}),wi=g({name:"logo",props:{gradientStart:{type:String,default:"#e32929"},gradientStop:{type:String,default:"#ff8d30"}},data:()=>({random:Math.random().toString(36).substring(7)})},_i,[],!1,null,null,null,!0).exports,xi=r("5d74"),Ei=r.n(xi);o.default.use(Ei.a,{url:(Object({VUE_APP_REGWIZ_URL:"https://registration.unraid.net",VUE_APP_PURCHASE_URL:"https://unraid.net/preflight",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_SPRITE_URL_PREFIX?Object({VUE_APP_REGWIZ_URL:"https://registration.unraid.net",VUE_APP_PURCHASE_URL:"https://unraid.net/preflight",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_SPRITE_URL_PREFIX:"")+"/assets/svg/sprite.svg",class:"svg-icon"});var Si=(g({name:"svg-icon",props:{symbol:{type:String,required:!0},symbolClass:String}},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("svg",{directives:[{name:"svg",rawName:"v-svg"}],staticClass:"unraid-svg-icon",class:t.symbolClass,attrs:{symbol:t.symbol,title:t.symbol,role:"presentation"}})}),[],!1,(function(t){var e=r("39a1");e.__inject__&&e.__inject__(t)}),"3b60bb54",null,!0).exports,function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"text-center w-full"},[r("header",[r("h2",{staticClass:"text-24px md:text-30px",domProps:{innerHTML:t._s(t.stateData.heading?t.stateData.heading:t.stateData.error.heading)}}),r("div",{staticClass:"text-14px opacity-90 mt-12px mx-auto",class:{"text-center":t.stateData.messageCenter,"text-left":!t.stateData.messageCenter,"prose-2xl":!t.CAN_POST_MESSAGE,prose:t.CAN_POST_MESSAGE},domProps:{innerHTML:t._s(t.stateData.message?t.stateData.message:t.stateData.error.message)}},[t._t("default")],2)]),r("div",{staticClass:"ActionRequired flex flex-col justify-center mt-16px px-16px"},[t.isPopUpOpen?[r("ConditionalButton",{staticClass:"button button-alt w-full mt-8px",attrs:{text:t.$t("backToPopUp")},on:{"btn-click":function(e){return t.openPopUp(t.signInPayload)}}}),r("ConditionalButton",{staticClass:"button-fine-error text-grey-mid w-full mt-8px",attrs:{text:t.$t("closePopUp")},on:{"btn-click":function(e){return t.closePopUp()}}})]:[t.stateData.actions.includes("register")?[r("ConditionalButton",{staticClass:"button button-alt w-full mt-8px",attrs:{routeName:t.CAN_POST_MESSAGE?"SignIn":null,text:t.$t("signIn")},on:{"btn-click":function(e){return t.openPopUp(t.signInPayload)}}}),t.guidRegistered||t.forumaccount?t._e():r("ConditionalButton",{staticClass:"button button-alt w-full mt-8px",attrs:{routeName:t.CAN_POST_MESSAGE?"SignUp":null,text:t.$t("signUp")},on:{"btn-click":function(e){return t.openPopUp(t.signUpPayload)}}})]:t._e(),t.stateData.actions.includes("purchase")?r("ConditionalButton",{staticClass:"button button-alt w-full mt-8px",attrs:{hrefUrl:t.CAN_POST_MESSAGE?t.purchaseWindow.url:null,text:t.$t("actions.purchase")},on:{"btn-click":function(e){return t.openPopUp(t.purchaseWindow)}}}):t._e(),t.stateData.actions.includes("upgrade")?r("ConditionalButton",{staticClass:"button button-alt w-full mt-8px",attrs:{hrefUrl:t.CAN_POST_MESSAGE?t.purchaseWindow.url:null,text:t.$t("actions.upgrade")},on:{"btn-click":function(e){return t.openPopUp(t.purchaseWindow)}}}):t._e(),t.stateData.actions.includes("replace")&&t.replaceable?r("ConditionalButton",{staticClass:"button w-full mt-8px",attrs:{routeName:t.CAN_POST_MESSAGE?"ReplaceKey":null,text:t.$t("actions.replace")},on:{"btn-click":function(e){return t.openPopUp(t.replaceKeyPayload)}}}):t._e(),t.stateData.actions.includes("replace")&&!t.replaceable?r("ConditionalButton",{staticClass:"button w-full mt-8px",attrs:{text:t.$t("actions.replaceIneligible"),title:t.$t("stateData.EGUID.error.message.replacementIneligible"),disabled:""},on:{"btn-click":function(e){return t.niceTry()}}}):t._e(),t.stateData.actions.includes("recover")?r("ConditionalButton",{staticClass:"button w-full mt-8px",attrs:{routeName:t.CAN_POST_MESSAGE?"RecoverKey":null,text:t.$t("actions.recover")},on:{"btn-click":function(e){return t.openPopUp(t.recoverKeyPayload)}}}):t._e(),t.stateData.actions.includes("continueTrial")?r("ConditionalButton",{staticClass:"button w-full mt-8px",attrs:{text:t.$t("regWizPopUp.continueTrial")},on:{"btn-click":function(e){t.CAN_POST_MESSAGE?t.closePopUpFromPopUp():t.SET_IS_LAUNCHPAD_OPEN(!1)}}}):t._e(),t.stateData.actions.includes("extend")?r("ConditionalButton",{staticClass:"button w-full mt-8px",attrs:{routeName:t.CAN_POST_MESSAGE?"ExtendTrial":null,text:t.$t("actions.extend")},on:{"btn-click":function(e){return t.openPopUp(t.extendTrialPayload)}}}):t._e(),t.stateData.actions.includes("close")?r("ConditionalButton",{staticClass:"button w-full mt-8px",attrs:{text:t.$t("continueToUnraid")},on:{"btn-click":function(e){t.CAN_POST_MESSAGE?t.closePopUpFromPopUp():t.SET_IS_LAUNCHPAD_OPEN(!1)}}}):t._e(),t.stateData.actions.includes("signOut")&&t.CAN_POST_MESSAGE?r("ConditionalButton",{staticClass:"button-fine-error text-grey-mid w-full mt-8px",attrs:{routeName:t.CAN_POST_MESSAGE?"SignOut":null,text:t.$t("signOut")},on:{"btn-click":function(e){return t.openPopUp(t.signOutPayload)}}}):t._e()]],2)])}),ki=g({props:{hrefUrl:{type:[Boolean,URL],default:!1},routeName:{type:String},text:{type:String,required:!0}},computed:{}},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.routeName?r("router-link",{attrs:{to:{name:t.routeName}}},[t._v(t._s(t.text))]):t.hrefUrl?r("a",{attrs:{href:t.hrefUrl}},[t._v(t._s(t.text))]):r("button",{on:{click:function(e){return t.$emit("btn-click")}}},[t._v(t._s(t.text))])}),[],!1,null,null,null,!0);var Oi=g({components:{ConditionalButton:ki.exports},data:()=>({CAN_POST_MESSAGE:Et}),computed:{...Object(b.c)(["stateData"]),...Object(b.e)(["isPopUpOpen","purchaseWindow","forumaccount","guidRegistered","extendTrialPayload","recoverKeyPayload","registered","replaceable","replaceKeyPayload","signOutPayload","signInPayload","signUpPayload","state","wizardWindow","messages"])},methods:{...Object(b.b)(["openPopUp","closePopUp","closePopUpFromPopUp"]),...Object(b.d)(["SET_IS_LAUNCHPAD_OPEN"]),niceTry(){alert("❌ Nice try you little sneak ❌")}}},Si,[],!1,(function(t){var e=r("2251");e.__inject__&&e.__inject__(t)}),null,null,!0).exports;var Ti=g({i18n:mt,store:vi,name:"Launchpad",props:["serverstate","webguiTranslations"],components:{UnraidLoading:yi,LaunchpadActionRequired:Oi},computed:{...Object(b.e)(["guid","isLaunchpadOpen","loading"]),...Object(b.c)(["server"])},methods:{...Object(b.b)(["setStateFromWebComponentProp","validateGuid"]),...Object(b.d)(["SET_IS_LAUNCHPAD_OPEN"])},watch:{signedOutWithKey(t,e){t&&!e&&this.validateGuid()}},created(){if(this.serverstate&&this.setStateFromWebComponentProp(this.serverstate),this.guid)this.validateGuid();else{const t=setInterval(()=>{this.guid&&(clearInterval(t),this.validateGuid())},250)}}},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("transition",{attrs:{appear:"",name:"fade",mode:"in-out"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:t.isLaunchpadOpen,expression:"isLaunchpadOpen"}],staticClass:"fixed inset-0 z-10 flex flex-col justify-start items-end mt-90px"},[r("transition",{attrs:{appear:"",name:"fade",mode:"in-out"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:t.isLaunchpadOpen,expression:"isLaunchpadOpen"}],staticClass:"absolute inset-0 z-0 bg-beta opacity-70 cursor-pointer",attrs:{title:t.$t("closeLaunchpad")},on:{click:function(e){return t.SET_IS_LAUNCHPAD_OPEN(!1)}}})]),r("transition",{attrs:{appear:"",name:"slideVerticalFade",mode:"in-out"}},[r("main",{directives:[{name:"show",rawName:"v-show",value:t.isLaunchpadOpen,expression:"isLaunchpadOpen"}],staticClass:"TopBlip text-beta bg-alpha border-grey-darkest text-center relative z-10 w-full max-w-4xl mr-8px p-24px md:p-32px lg:px-40px shadow-md rounded-lg"},[t.loading?r("UnraidLoading",{staticClass:"mx-auto",attrs:{height:64}}):r("LaunchpadActionRequired")],1)])],1)])}),[],!1,(function(t){var e=r("f153");e.__inject__&&e.__inject__(t)}),null,null,!0).exports;var ji=g({i18n:mt,store:vi,name:"UpcTrigger",props:[],data:()=>({}),computed:{...Object(b.c)(["stateData","stateDataKeyActions"]),...Object(b.e)(["isPopUpOpen","registered","state","triggerUPC","wizardWindow"]),copy(){return this.registered?"BASIC"===this.state||"PLUS"===this.state?"To support more storage devices as your server grows, click Upgrade Key in the User Profile located at the top right of the webGUI on every page.":"Key actions are done in the User Profile located at the top right of the webGUI on every page.":"You must be signed in to Unraid.net to perform key actions."},buttonText(){return this.stateData.error?this.$t("fixError"):this.isPopUpOpen?this.$t("backToPopUp"):"ENOKEYFILE"===this.state?this.$t("getStarted"):this.registered?this.stateDataKeyActions?"Open User Profile":"":this.$t("signIn")},buttonTitle(){return this.stateDataKeyActions?"Open User Profile":this.$t("upc.opensNewHttpsWindow.base",[this.buttonText])}},methods:{...Object(b.b)(["jumpToUpc","closePopUp","openPopUp"]),btnClick(){return!this.registered||this.isPopUpOpen?this.openPopUp(this.wizardWindow):this.jumpToUpc()}}},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("transition",{attrs:{appear:"",name:"fade",mode:"out-in"}},[null!==t.registered&&t.buttonText?r("div",{staticClass:"flex flex-wrap pl-12px"},[r("p",{staticClass:"w-7/20 pr-12px"},[t._v(t._s(t.copy))]),r("div",{staticClass:"w-13/20 inline-flex flex-row"},[r("button",{attrs:{type:"button",title:t.buttonTitle,disabled:t.triggerUPC},on:{click:function(e){return t.btnClick()}}},[t._v(t._s(t.buttonText))]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[t.isPopUpOpen?r("button",{staticClass:"ml-8px",attrs:{type:"button"},on:{click:function(e){return t.closePopUp()}}},[t._v(t._s(t.$t("closePopUp")))]):t._e()])],1)]):t._e()])}),[],!1,(function(t){var e=r("22c9");e.__inject__&&e.__inject__(t)}),null,null,!0).exports,Ci=r("ab14"),Ii=r.n(Ci),Ai=r("c7db"),Ri=r("b692"),Ni=r.n(Ri),Di=r("a3b3"),Pi=r.n(Di),Mi=r("8a86"),Li=r.n(Mi),Ui=r("b2a0"),Fi=r.n(Ui),$i=r("45b7"),Vi=r.n($i),zi=r("381c"),qi=r.n(zi),Bi=g({props:{payload:{type:Object},text:{type:String},emphasize:{type:Boolean,default:!1},external:{type:Boolean,default:!0}},components:{UnraidSvgUiKey:qi.a,UnraidSvgUtilNewWindow:Pi.a},methods:{...Object(b.b)(["openPopUp"])}},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("button",{staticClass:"group flex flex-row items-center justify-between",class:{"btn-emphasize":t.emphasize},attrs:{title:t.external?""+t.$t("upc.opensNewHttpsWindow.base",[t.text]):null},on:{click:function(e){return t.$emit("click")}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUiKey",{staticClass:"fill-current w-12px h-12px mr-8px"}),t._v(" "+t._s(t.text)+" ")],1),t.external?r("UnraidSvgUtilNewWindow",{staticClass:"text-white opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"}):t._e()],1)}),[],!1,null,null,null,!0).exports,Gi=r("a190"),Wi=r.n(Gi),Hi=r("a313"),Qi=r.n(Hi),Yi=r("94d0"),Ki=r.n(Yi),Ji=r("973e"),Xi=r.n(Ji),Zi=r("b045"),to=r.n(Zi),eo=g({components:{UnraidLoading:yi,UnraidSvgUiWarningFill:Wi.a,UnraidSvgUtilCheck:Qi.a,UnraidSvgUtilDelete:Ki.a,UnraidSvgUtilHelp:Xi.a,UnraidSvgUtilInfo:to.a,UnraidSvgUtilNewWindow:Pi.a},props:["errorStateMessageVisible","hideotherservers","hideMyServers"],watch:{apikey(t,e){e||!t||this.hideMyServers||(Rt.debug("[apikey set] connect to unraid-api",{newVal:t,oldVal:e}),this.serversPlz()),!e||t||this.hideMyServers||(Rt.debug("[apikey removed] disconnect from unraid-api",{newVal:t,oldVal:e}),this.stopGraphqlClient(e))},noRemoteApikeyRegisteredWithPlg(t,e){e||!t||this.hideMyServers||(Rt.debug("[noRemoteApikeyRegisteredWithPlg set] connect to unraid-api",{newVal:t,oldVal:e}),this.serversPlz()),!e||t||this.hideMyServers||(Rt.debug("[noRemoteApikeyRegisteredWithPlg removed] disconnect from unraid-api",{newVal:t,oldVal:e}),this.stopGraphqlClient(this.apikey))},registered(t,e){e||!t||this.hideMyServers||(Rt.debug("[apikey set] connect to unraid-api",{newVal:t,oldVal:e}),this.serversPlz())},myServersError(t,e){!e||t||this.myServers.length||(Rt.debug("[myServersError set] connect to unraid-api",{newVal:t,oldVal:e}),this.serversPlz())}},computed:{...Object(b.c)(["stateData","validApiKeyLength","noRemoteApikeyRegisteredWithPlg","keyTypeForPurchase","errorTooManyDisks"]),...Object(b.e)(["apikey","guid","graphOnline","myServers","myServersLoading","myServersError","registered","hasRemoteApikey","servername","signInPayload","state","wanip","deviceCount"]),currentServer(){return this.myServers?this.myServers.filter(t=>t.guid===this.guid?t:null)[0]:{name:this.servername,status:"offline"}},currentServerStatus(){return this.currentServer?this.currentServer.status:"offline"},filteredServers(){return this.myServers?this.hideotherservers?[]:this.myServers.filter(t=>t.guid!==this.guid?t:null).sort((t,e)=>t.name.localeCompare(e.name,"en",{numeric:!0,sensitivity:"base"})):[]},errorToggleText(){return this.stateData.error.message?"EEXPIRED"===this.state?this.stateData.error.heading:this.$t("fixError"):this.myServersError||this.noRemoteApikeyRegisteredWithPlg||this.errorTooManyDisks?this.computedErrorHeading:""},errorToggleTitle(){if(this.stateData.error||this.stateData.message||this.myServersError){return`${!this.stateData.error.message&&!this.stateData.message||this.noRemoteApikeyRegisteredWithPlg||this.errorTooManyDisks?this.computedErrorHeading:this.stateData.humanReadable} • ${this.errorStateMessageVisible?this.$t("upc.myServers.closeDetails"):this.$t("learnMore")}`}return""},computedErrorHeading(){return this.noRemoteApikeyRegisteredWithPlg?this.$t("upc.noRemoteApikeyRegisteredWithPlg.heading"):this.stateData.error.heading?this.stateData.error.heading:this.myServersError?this.myServersError.includes("Network error")?this.$t("upc.myServers.errors.unraidApi.heading"):this.$t("upc.myServers.errors.myServers.heading"):this.errorTooManyDisks?this.$t("upc.errorTooManyDisks.heading"):""},computedError(){if(this.noRemoteApikeyRegisteredWithPlg)return this.$t("upc.noRemoteApikeyRegisteredWithPlg.msg");if(this.stateData.error.message)return this.stateData.error.message;if(this.myServersError)return this.myServersError.includes("Network error")?this.$t("upc.myServers.errors.unraidApi.message"):this.myServersError;if(this.errorTooManyDisks){const t=this.$t("upc.errorTooManyDisks.msg.base");return"Basic"===this.keyTypeForPurchase?`${this.$t("upc.errorTooManyDisks.msg.basic")} ${t}`:"Plus"===this.keyTypeForPurchase?`${this.$t("upc.errorTooManyDisks.msg.plus")} ${t}`:t}return""}},methods:{...Object(b.b)(["fetchServers","stopGraphqlClient","openPopUp"]),serversPlz(){return Rt.debug("[serversPlz]",{apikey:this.apikey,noRemoteApikeyRegisteredWithPlg:this.noRemoteApikeyRegisteredWithPlg,validApiKeyLength:this.validApiKeyLength}),this.noRemoteApikeyRegisteredWithPlg?Rt.error("[MyServers] remote apikey does not exist"):this.validApiKeyLength?this.fetchServers():Rt.error("[MyServers] invalid apikey")}},created(){!this.hideMyServers&&this.registered&&this.serversPlz()}},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"relative"},[r("ul",{staticClass:"relative"},[t.filteredServers.length&&t.myServersError?r("li",{staticClass:"text-red text-12px font-semibold px-16px pb-4px"},[r("em",[t._v(t._s(t.$t("upc.myServers.displayingLastKnown")))])]):t._e(),t.computedError?r("li",{key:"current-server-error",staticClass:"w-full"},[r("button",{staticClass:"btn-error group py-8px px-16px flex flex-col",attrs:{title:t.errorToggleTitle},on:{click:function(e){return t.$emit("toggle-error")}}},[r("div",{staticClass:"w-full flex flex-row justify-between items-center"},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUiWarningFill",{staticClass:"fill-current w-12px h-12px"}),r("span",{staticClass:"font-semibold mx-8px"},[t._v(" "+t._s(t.servername)+" ")])],1),t.computedError&&t.errorStateMessageVisible?r("UnraidSvgUtilDelete",{staticClass:"text-current opacity-100 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"}):r("UnraidSvgUtilInfo",{staticClass:"text-current opacity-100 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1),r("transition",{attrs:{name:"fade",mode:"out-in"}},[t.computedError&&t.errorStateMessageVisible?r("div",{staticClass:"UnraidUPC-serverError"},[r("div",{staticClass:"text-14px font-semibold pt-4px"},[r("h3",{staticClass:"text-16px mb-4px"},[t._v(t._s(t.errorToggleText))]),r("p",{domProps:{innerHTML:t._s(t.computedError)}})])]):t._e()])],1)]):t._e(),r("transition",{attrs:{name:"fade",mode:"out-in"}},["EEXPIRED"!==t.state&&t.stateData.error&&t.errorStateMessageVisible?r("li",[r("a",{staticClass:"link-error group flex flex-row items-center justify-between",attrs:{title:t.$t("upc.opensNewHttpsWindow.base",[t.$t("contactSupport")])},on:{click:function(e){return t.$emit("contact-support")}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilHelp",{staticClass:"fill-current w-12px h-12px mr-8px"}),t._v(" "+t._s(t.$t("contactSupport"))+" ")],1),r("UnraidSvgUtilNewWindow",{staticClass:"opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1)]):t._e()]),r("transition",{attrs:{name:"fade",mode:"out-in"}},[t.noRemoteApikeyRegisteredWithPlg&&t.errorStateMessageVisible?r("li",[r("a",{staticClass:"link-error group flex flex-row items-center justify-between",attrs:{title:t.$t("upc.opensNewHttpsWindow.base",[t.$t("signIn")])},on:{click:function(e){return t.openPopUp(t.signInPayload)}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUiWarningFill",{staticClass:"fill-current w-12px h-12px mr-8px"}),t._v(" "+t._s(t.$t("upc.signInActions.resolve"))+" ")],1),r("UnraidSvgUtilNewWindow",{staticClass:"opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1)]):t._e()]),t.computedError?t._e():r("li",{key:"current-server",staticClass:"w-full py-8px px-16px flex flex-row items-center",class:{"text-beta":"online"===t.currentServerStatus,"text-orange cursor-not-allowed":"online"!==t.currentServerStatus},attrs:{title:t.$t("upc.myServers.accessLabels.current")+" • "+("online"!==t.currentServerStatus?t.$t("upc.myServers.mothership.notConnected"):t.$t("upc.myServers.mothership.connected"))}},["online"!==t.currentServerStatus?r("UnraidSvgUiWarningFill",{staticClass:"fill-current w-12px h-12px"}):r("UnraidSvgUtilCheck",{staticClass:"fill-current w-12px h-12px"}),r("span",{staticClass:"ml-8px select-all"},[t._v(t._s(t.currentServer?t.currentServer.name:t.servername))])],1),r("transition-group",{attrs:{name:"fade",mode:"out-in"}},[t.myServersLoading?r("UnraidLoading",{key:"gql-loading",staticClass:"w-36px my-8px mx-auto",attrs:{height:21,title:t.$t("upc.myServers.loading")}}):t._l(t.filteredServers,(function(e,n){return r("li",{key:"filteredServer_"+n},["online"===e.status&&t.wanip!==e.wanip&&e.remoteurl?r("a",{staticClass:"w-full flex flex-row items-center",attrs:{href:e.remoteurl,tabindex:"0",title:t.$t("upc.myServers.accessLabels.remote")}},[r("span",{staticClass:"block w-12px h-12px mr-8px bg-green rounded-full"}),r("span",{staticClass:"select-all"},[t._v(t._s(e.name))])]):"online"===e.status&&t.wanip===e.wanip&&e.localurl?r("a",{staticClass:"w-full flex flex-row items-center",attrs:{href:e.localurl,tabindex:"0",title:t.$t("upc.myServers.accessLabels.local")}},[r("span",{staticClass:"block w-12px h-12px mr-8px bg-green rounded-full"}),r("span",{staticClass:"select-all"},[t._v(t._s(e.name))])]):"never_connected"!==e.status?r("span",{staticClass:"w-full flex flex-row items-center px-16px py-8px opacity-50 cursor-not-allowed",attrs:{title:"online"===e.status?t.$t("upc.myServers.accessLabels.unavailable"):t.$t("upc.myServers.accessLabels.offline")}},[r("span",{staticClass:"text-red text-14px w-12px mr-8px"},[t._v("×")]),r("span",{staticClass:"select-all"},[t._v(t._s(e.name))])]):t._e()])}))],2)],1)])}),[],!1,null,null,null,!0).exports,ro=r("5a0c"),no=r.n(ro);const io=(t,e,r,n,i,o,a)=>({years:t,months:e,days:r,hours:n,minutes:i,seconds:o,firstDateWasLater:a});var oo=(t,e,r)=>{let n,i=no()(t),o=no()(e);if(i.isSame(o))return r?io(0,0,0,0,0,0,!1):"";if(i.isAfter(o)){const t=i;i=o,o=t,n=!0}else n=!1;let a=o.year()-i.year(),s=o.month()-i.month(),c=o.date()-i.date(),u=o.hour()-i.hour(),l=o.minute()-i.minute(),p=o.second()-i.second();if(p<0&&(p=60+p,l-=1),l<0&&(l=60+l,u-=1),u<0&&(u=24+u,c-=1),c<0){const t=no()(`${o.year()}-${o.month()+1}`).subtract(1,"M").daysInMonth();c=t{const r=t?no()(parseInt(t,10)):no()(),n=e?no()(parseInt(e,10)):no()();return oo(r,n,!0)};var so=(t,e)=>e?ao(t,""):ao("",t),co=r("23ad"),uo=r.n(co);r("e072"),r("6210"),r("e5b7");const lo=document.getElementsByTagName("unraid-user-profile")[0];if(lo){const t=lo.getAttribute("locale").slice(0,2);no.a.locale(t),Rt.debug("[formatDate] dayjs.locale()",no.a.locale())}no.a.extend(uo.a);var po,fo=t=>no()(parseInt(t,10)).format("llll"),ho=g({data:()=>({interval:null,parsedUptime:"",parsedExpireTime:"",dateStrings:{year:mt.tc("year"),years:mt.tc("years"),month:mt.tc("month"),months:mt.tc("months"),day:mt.tc("day"),days:mt.tc("days"),hour:mt.tc("hour"),hours:mt.tc("hours"),minute:mt.tc("minute"),minutes:mt.tc("minutes"),second:mt.tc("second"),seconds:mt.tc("seconds"),firstDateWasLater:mt.tc("ago"),delimiter:" "}}),props:{expiretime:{type:[Number,String],default:null},uptime:{type:[Number,String],default:null}},computed:{...Object(b.e)(["registered","state"]),...Object(b.c)(["stateData"]),formattedUptime(){return fo(this.uptime)},formattedExpireTime(){return fo(this.expiretime)}},methods:{pluralize(t,e){return`${t} ${this.dateStrings[e+(1===t?"":"s")]}`},buildStringFromValues({years:t,months:e,days:r,hours:n,minutes:i,seconds:o,firstDateWasLater:a,displaySecondsInStringReturn:s}){const c=[];return t&&c.push(this.pluralize(t,"year")),e&&c.push(this.pluralize(e,"month")),r&&c.push(this.pluralize(r,"day")),n&&c.push(this.pluralize(n,"hour")),i&&c.push(this.pluralize(i,"minute")),!o||(t||e||r||n||i)&&!s||c.push(this.pluralize(o,"second")),a&&c.push(this.dateStrings.firstDateWasLater),c.join(this.dateStrings.delimiter)},runTimeDiff(){this.uptime&&(this.parsedUptime=this.buildStringFromValues(so(this.uptime,!0))),this.expiretime&&(this.parsedExpireTime=this.buildStringFromValues(so(this.expiretime,!1)))},letsGo(){this.runTimeDiff(),this.interval=setInterval(()=>{this.runTimeDiff()},1e3)}},created(){this.letsGo()},beforeDestroy(){clearInterval(this.interval)}},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"text-gamma text-12px text-right font-semibold leading-normal flex flex-row items-baseline justify-end pr-16px pt-4px"},["EEXPIRED"===t.state?r("p",{attrs:{title:t.$t("upc.meta.trial.expired.date",{date:t.formattedExpireTime})}},[t._v(" "+t._s(t.$t("upc.meta.trial.expired.timeDiff",{timeDiff:t.parsedExpireTime}))+" ")]):this.expiretime>0?r("p",{attrs:{title:t.$t("upc.meta.trial.active.date",{date:t.formattedExpireTime})}},[t._v(" "+t._s(t.$t("upc.meta.trial.active.timeDiff",{timeDiff:t.parsedExpireTime}))+" ")]):r("p",{staticClass:"select-all",attrs:{title:t.$t("upc.meta.uptime.date",{date:t.formattedUptime})}},[t._v(" "+t._s(t.$t("upc.meta.uptime.readable",{timeDiff:t.parsedUptime}))+" ")]),r("span",{staticClass:"px-12px"},[t._v("•")]),t.registered&&t.stateData.actions.includes("upgrade")?r("button",{staticClass:"text-12px text-gamma hover:text-alpha focus:text-alpha font-semibold transition-colors duration-150 ease-in-out border-t-0 border-l-0 border-r-0 border-b-2 border-transparent hover:border-orange-dark focus:border-orange-dark focus:outline-none",attrs:{title:t.$t("upc.opensNewHttpsWindow.upgrade")},on:{click:function(e){return t.$emit("upgrade")}}},[r("h5",[t._v("Unraid OS "),r("em",[r("strong",[t._v(t._s(t.stateData.humanReadable))])])])]):r("h5",[t._v("Unraid OS "),r("em",{class:{"text-red":t.stateData.error||"EEXPIRED"===t.state}},[r("strong",[t._v(t._s(t.stateData.humanReadable))])])]),t.registered&&t.stateData.actions.includes("purchase")?r("button",{staticClass:"text-12px text-orange-dark font-semibold hover:text-alpha focus:text-alpha ml-12px transition-colors duration-150 ease-in-out border-t-0 border-l-0 border-r-0 border-b-2 border-transparent hover:border-orange-dark focus:border-orange-dark focus:outline-none",attrs:{title:t.$t("upc.opensNewHttpsWindow.purchase")},on:{click:function(e){return t.$emit("purchase")}}},[t._v(t._s(t.$t("actions.purchase")))]):t._e()])}),[],!1,null,null,null,!0).exports,mo="6.5.1",vo=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){po=Function.prototype.toString,Function.prototype.toString=function(){for(var t=[],e=0;e2?e[2]:void 0;if(n){var i=So,o=String(n);So=o,Io("history",{from:i,to:o})}return t.apply(this,e)}}}();break;case"error":Mo=ko.onerror,ko.onerror=function(t,e,r,n,i){return Io("error",{column:n,error:i,line:r,msg:t,url:e}),!!Mo&&Mo.apply(this,arguments)};break;case"unhandledrejection":Lo=ko.onunhandledrejection,ko.onunhandledrejection=function(t){return Io("unhandledrejection",t),!Lo||Lo.apply(this,arguments)};break;default:_n.warn("unknown instrumentation type:",t)}}function Co(t){t&&"string"==typeof t.type&&"function"==typeof t.callback&&(Oo[t.type]=Oo[t.type]||[],Oo[t.type].push(t.callback),jo(t.type))}function Io(t,e){var r,n;if(t&&Oo[t])try{for(var i=Object(ye.i)(Oo[t]||[]),o=i.next();!o.done;o=i.next()){var a=o.value;try{a(e)}catch(e){_n.error("Error while triggering instrumentation handler.\nType: "+t+"\nName: "+Object(_o.a)(a)+"\nError: "+e)}}}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}function Ao(t){return void 0===t&&(t=[]),"Request"in ko&&Object(xn.g)(t[0],Request)&&t[0].method?String(t[0].method).toUpperCase():t[1]&&t[1].method?String(t[1].method).toUpperCase():"GET"}function Ro(t){return void 0===t&&(t=[]),"string"==typeof t[0]?t[0]:"Request"in ko&&Object(xn.g)(t[0],Request)?t[0].url:String(t[0])}var No,Do;function Po(t,e){return void 0===e&&(e=!1),function(r){if(r&&Do!==r&&!function(t){if("keypress"!==t.type)return!1;try{var e=t.target;if(!e||!e.tagName)return!0;if("INPUT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable)return!1}catch(t){}return!0}(r)){var n="keypress"===r.type?"input":r.type;(void 0===No||function(t,e){if(!t)return!0;if(t.type!==e.type)return!0;try{if(t.target!==e.target)return!0}catch(t){}return!1}(Do,r))&&(t({event:r,name:n,global:e}),Do=r),clearTimeout(No),No=ko.setTimeout((function(){No=void 0}),1e3)}}}var Mo=null;var Lo=null;var Uo=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){return t.__proto__=e,t}:function(t,e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r]);return t});var Fo=function(t){function e(e){var r=this.constructor,n=t.call(this,e)||this;return n.message=e,n.name=r.prototype.constructor.name,Uo(n,r.prototype),n}return Object(ye.c)(e,t),e}(Error),$o=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,Vo="Invalid Dsn",zo=function(){function t(t){"string"==typeof t?this._fromString(t):this._fromComponents(t),this._validate()}return t.prototype.toString=function(t){void 0===t&&(t=!1);var e=this,r=e.host,n=e.path,i=e.pass,o=e.port,a=e.projectId;return e.protocol+"://"+e.publicKey+(t&&i?":"+i:"")+"@"+r+(o?":"+o:"")+"/"+(n?n+"/":n)+a},t.prototype._fromString=function(t){var e=$o.exec(t);if(!e)throw new Fo(Vo);var r=Object(ye.e)(e.slice(1),6),n=r[0],i=r[1],o=r[2],a=void 0===o?"":o,s=r[3],c=r[4],u=void 0===c?"":c,l="",p=r[5],d=p.split("/");if(d.length>1&&(l=d.slice(0,-1).join("/"),p=d.pop()),p){var f=p.match(/^\d+/);f&&(p=f[0])}this._fromComponents({host:s,pass:a,path:l,projectId:p,port:u,protocol:n,publicKey:i})},t.prototype._fromComponents=function(t){"user"in t&&!("publicKey"in t)&&(t.publicKey=t.user),this.user=t.publicKey||"",this.protocol=t.protocol,this.publicKey=t.publicKey||"",this.pass=t.pass||"",this.host=t.host,this.port=t.port||"",this.path=t.path||"",this.projectId=t.projectId},t.prototype._validate=function(){var t=this;if(["protocol","publicKey","host","projectId"].forEach((function(e){if(!t[e])throw new Fo(Vo+": "+e+" missing")})),!this.projectId.match(/^\d+$/))throw new Fo(Vo+": Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new Fo(Vo+": Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new Fo(Vo+": Invalid port "+this.port)},t}(),qo=[];function Bo(t){return t.reduce((function(t,e){return t.every((function(t){return e.name!==t.name}))&&t.push(e),t}),[])}function Go(t){var e={};return function(t){var e=t.defaultIntegrations&&Object(ye.g)(t.defaultIntegrations)||[],r=t.integrations,n=Object(ye.g)(Bo(e));Array.isArray(r)?n=Object(ye.g)(n.filter((function(t){return r.every((function(e){return e.name!==t.name}))})),Bo(r)):"function"==typeof r&&(n=r(n),n=Array.isArray(n)?n:[n]);var i=n.map((function(t){return t.name})),o="Debug";return-1!==i.indexOf(o)&&n.push.apply(n,Object(ye.g)(n.splice(i.indexOf(o),1))),n}(t).forEach((function(t){e[t.name]=t,function(t){-1===qo.indexOf(t.name)&&(t.setupOnce(On,Nn),qo.push(t.name),_n.log("Integration installed: "+t.name))}(t)})),e}var Wo,Ho=function(){function t(t,e){this._integrations={},this._processing=0,this._backend=new t(e),this._options=e,e.dsn&&(this._dsn=new zo(e.dsn))}return t.prototype.captureException=function(t,e,r){var n=this,i=e&&e.event_id;return this._process(this._getBackend().eventFromException(t,e).then((function(t){return n._captureEvent(t,e,r)})).then((function(t){i=t}))),i},t.prototype.captureMessage=function(t,e,r,n){var i=this,o=r&&r.event_id,a=Object(xn.i)(t)?this._getBackend().eventFromMessage(String(t),e,r):this._getBackend().eventFromException(t,r);return this._process(a.then((function(t){return i._captureEvent(t,r,n)})).then((function(t){o=t}))),o},t.prototype.captureEvent=function(t,e,r){var n=e&&e.event_id;return this._process(this._captureEvent(t,e,r).then((function(t){n=t}))),n},t.prototype.captureSession=function(t){"string"!=typeof t.release?_n.warn("Discarded session because of missing or non-string release"):(this._sendSession(t),t.update({init:!1}))},t.prototype.getDsn=function(){return this._dsn},t.prototype.getOptions=function(){return this._options},t.prototype.flush=function(t){var e=this;return this._isClientProcessing(t).then((function(r){return e._getBackend().getTransport().close(t).then((function(t){return r&&t}))}))},t.prototype.close=function(t){var e=this;return this.flush(t).then((function(t){return e.getOptions().enabled=!1,t}))},t.prototype.setupIntegrations=function(){this._isEnabled()&&(this._integrations=Go(this._options))},t.prototype.getIntegration=function(t){try{return this._integrations[t.id]||null}catch(e){return _n.warn("Cannot retrieve integration "+t.id+" from the current Client"),null}},t.prototype._updateSessionFromEvent=function(t,e){var r,n,i,o=!1,a=!1,s=e.exception&&e.exception.values;if(s){a=!0;try{for(var c=Object(ye.i)(s),u=c.next();!u.done;u=c.next()){var l=u.value.mechanism;if(l&&!1===l.handled){o=!0;break}}}catch(t){r={error:t}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}}var p=e.user;if(!t.userAgent){var d=e.request?e.request.headers:{};for(var f in d)if("user-agent"===f.toLowerCase()){i=d[f];break}}t.update(Object(ye.a)(Object(ye.a)({},o&&{status:ln.Crashed}),{user:p,userAgent:i,errors:t.errors+Number(a||o)})),this.captureSession(t)},t.prototype._sendSession=function(t){this._getBackend().sendSession(t)},t.prototype._isClientProcessing=function(t){var e=this;return new En((function(r){var n=0,i=setInterval((function(){0==e._processing?(clearInterval(i),r(!0)):(n+=1,t&&n>=t&&(clearInterval(i),r(!1)))}),1)}))},t.prototype._getBackend=function(){return this._backend},t.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},t.prototype._prepareEvent=function(t,e,r){var n=this,i=this.getOptions().normalizeDepth,o=void 0===i?3:i,a=Object(ye.a)(Object(ye.a)({},t),{event_id:t.event_id||(r&&r.event_id?r.event_id:Object(hn.i)()),timestamp:t.timestamp||Object(mn.a)()});this._applyClientOptions(a),this._applyIntegrationsMetadata(a);var s=e;r&&r.captureContext&&(s=Sn.clone(s).update(r.captureContext));var c=En.resolve(a);return s&&(c=s.applyToEvent(a,r)),c.then((function(t){return"number"==typeof o&&o>0?n._normalizeEvent(t,o):t}))},t.prototype._normalizeEvent=function(t,e){if(!t)return null;var r=Object(ye.a)(Object(ye.a)(Object(ye.a)(Object(ye.a)(Object(ye.a)({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((function(t){return Object(ye.a)(Object(ye.a)({},t),t.data&&{data:Object(Tn.d)(t.data,e)})}))}),t.user&&{user:Object(Tn.d)(t.user,e)}),t.contexts&&{contexts:Object(Tn.d)(t.contexts,e)}),t.extra&&{extra:Object(Tn.d)(t.extra,e)});return t.contexts&&t.contexts.trace&&(r.contexts.trace=t.contexts.trace),r},t.prototype._applyClientOptions=function(t){var e=this.getOptions(),r=e.environment,n=e.release,i=e.dist,o=e.maxValueLength,a=void 0===o?250:o;"environment"in t||(t.environment="environment"in e?r:"production"),void 0===t.release&&void 0!==n&&(t.release=n),void 0===t.dist&&void 0!==i&&(t.dist=i),t.message&&(t.message=Object(go.d)(t.message,a));var s=t.exception&&t.exception.values&&t.exception.values[0];s&&s.value&&(s.value=Object(go.d)(s.value,a));var c=t.request;c&&c.url&&(c.url=Object(go.d)(c.url,a))},t.prototype._applyIntegrationsMetadata=function(t){var e=Object.keys(this._integrations);e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=Object(ye.g)(t.sdk.integrations||[],e))},t.prototype._sendEvent=function(t){this._getBackend().sendEvent(t)},t.prototype._captureEvent=function(t,e,r){return this._processEvent(t,e,r).then((function(t){return t.event_id}),(function(t){_n.error(t)}))},t.prototype._processEvent=function(t,e,r){var n=this,i=this.getOptions(),o=i.beforeSend,a=i.sampleRate;if(!this._isEnabled())return En.reject(new Fo("SDK not enabled, will not send event."));var s="transaction"===t.type;return!s&&"number"==typeof a&&Math.random()>a?En.reject(new Fo("Discarding event because it's not included in the random sample (sampling rate = "+a+")")):this._prepareEvent(t,r,e).then((function(t){if(null===t)throw new Fo("An event processor returned null, will not send event.");if(e&&e.data&&!0===e.data.__sentry__||s||!o)return t;var r=o(t,e);if(void 0===r)throw new Fo("`beforeSend` method has to return `null` or a valid event.");return Object(xn.m)(r)?r.then((function(t){return t}),(function(t){throw new Fo("beforeSend rejected with "+t)})):r})).then((function(t){if(null===t)throw new Fo("`beforeSend` returned `null`, will not send event.");var e=r&&r.getSession&&r.getSession();return!s&&e&&n._updateSessionFromEvent(e,t),n._sendEvent(t),t})).then(null,(function(t){if(t instanceof Fo)throw t;throw n.captureException(t,{data:{__sentry__:!0},originalException:t}),new Fo("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+t)}))},t.prototype._process=function(t){var e=this;this._processing+=1,t.then((function(t){return e._processing-=1,t}),(function(t){return e._processing-=1,t}))},t}();(function(t){t.Unknown="unknown",t.Skipped="skipped",t.Success="success",t.RateLimit="rate_limit",t.Invalid="invalid",t.Failed="failed"})(Wo||(Wo={})),function(t){t.fromHttpCode=function(e){return e>=200&&e<300?t.Success:429===e?t.RateLimit:e>=400&&e<500?t.Invalid:e>=500?t.Failed:t.Unknown}}(Wo||(Wo={}));var Qo,Yo=function(){function t(){}return t.prototype.sendEvent=function(t){return En.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:Wo.Skipped})},t.prototype.close=function(t){return En.resolve(!0)},t}(),Ko=function(){function t(t){this._options=t,this._options.dsn||_n.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return t.prototype.eventFromException=function(t,e){throw new Fo("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(t,e,r){throw new Fo("Backend has to implement `eventFromMessage` method")},t.prototype.sendEvent=function(t){this._transport.sendEvent(t).then(null,(function(t){_n.error("Error while sending event: "+t)}))},t.prototype.sendSession=function(t){this._transport.sendSession?this._transport.sendSession(t).then(null,(function(t){_n.error("Error while sending session: "+t)})):_n.warn("Dropping session because custom transport doesn't implement sendSession")},t.prototype.getTransport=function(){return this._transport},t.prototype._setupTransport=function(){return new Yo},t}();(function(t){t.Fatal="fatal",t.Error="error",t.Warning="warning",t.Log="log",t.Info="info",t.Debug="debug",t.Critical="critical"})(Qo||(Qo={})),function(t){t.fromString=function(e){switch(e){case"debug":return t.Debug;case"info":return t.Info;case"warn":case"warning":return t.Warning;case"error":return t.Error;case"fatal":return t.Fatal;case"critical":return t.Critical;case"log":default:return t.Log}}}(Qo||(Qo={}));var Jo=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack||[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Xo=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Zo=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,ta=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,ea=/\((\S*)(?::(\d+))(?::(\d+))\)/,ra=/Minified React error #\d+;/i;function na(t){var e=null,r=0;t&&("number"==typeof t.framesToPop?r=t.framesToPop:ra.test(t.message)&&(r=1));try{if(e=function(t){if(!t||!t.stacktrace)return null;for(var e,r=t.stacktrace,n=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,i=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,o=r.split("\n"),a=[],s=0;s eval")>-1&&(e=ta.exec(r[3]))?(r[1]=r[1]||"eval",r[3]=e[1],r[4]=e[2],r[5]=""):0!==a||r[5]||void 0===t.columnNumber||(i[0].column=t.columnNumber+1),n={url:r[3],func:r[1]||"?",args:r[2]?r[2].split(","):[],line:r[4]?+r[4]:null,column:r[5]?+r[5]:null}}!n.func&&n.line&&(n.func="?"),i.push(n)}return i.length?{message:oa(t),name:t.name,stack:i}:null}(t))return ia(e,r)}catch(t){}return{message:oa(t),name:t&&t.name,stack:[],failed:!0}}function ia(t,e){try{return Object(ye.a)(Object(ye.a)({},t),{stack:t.stack.slice(e)})}catch(e){return t}}function oa(t){var e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}function aa(t){var e=ca(t.stack),r={type:t.name,value:t.message};return e&&e.length&&(r.stacktrace={frames:e}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function sa(t){return{exception:{values:[aa(t)]}}}function ca(t){if(!t||!t.length)return[];var e=t,r=e[0].func||"",n=e[e.length-1].func||"";return-1===r.indexOf("captureMessage")&&-1===r.indexOf("captureException")||(e=e.slice(1)),-1!==n.indexOf("sentryWrapped")&&(e=e.slice(0,-1)),e.slice(0,50).map((function(t){return{colno:null===t.column?void 0:t.column,filename:t.url||e[0].url,function:t.func||"?",in_app:!0,lineno:null===t.line?void 0:t.line}})).reverse()}function ua(t,e,r){var n;if(void 0===r&&(r={}),Object(xn.e)(t)&&t.error)return n=sa(na(t=t.error));if(Object(xn.a)(t)||Object(xn.b)(t)){var i=t,o=i.name||(Object(xn.a)(i)?"DOMError":"DOMException"),a=i.message?o+": "+i.message:o;return n=la(a,e,r),Object(hn.b)(n,a),"code"in i&&(n.tags=Object(ye.a)(Object(ye.a)({},n.tags),{"DOMException.code":""+i.code})),n}return Object(xn.d)(t)?n=sa(na(t)):Object(xn.h)(t)||Object(xn.f)(t)?(n=function(t,e,r){var n={exception:{values:[{type:Object(xn.f)(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:"Non-Error "+(r?"promise rejection":"exception")+" captured with keys: "+Object(Tn.b)(t)}]},extra:{__serialized__:Object(Tn.e)(t)}};if(e){var i=ca(na(e).stack);n.stacktrace={frames:i}}return n}(t,e,r.rejection),Object(hn.a)(n,{synthetic:!0}),n):(n=la(t,e,r),Object(hn.b)(n,""+t,void 0),Object(hn.a)(n,{synthetic:!0}),n)}function la(t,e,r){void 0===r&&(r={});var n={message:t};if(r.attachStacktrace&&e){var i=ca(na(e).stack);n.stacktrace={frames:i}}return n}function pa(t){if(t.metadata&&t.metadata.sdk){var e=t.metadata.sdk;return{name:e.name,version:e.version}}}function da(t,e){return e?(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=Object(ye.g)(t.sdk.integrations||[],e.integrations||[]),t.sdk.packages=Object(ye.g)(t.sdk.packages||[],e.packages||[]),t):t}function fa(t,e){var r=pa(e),n="aggregates"in t?"sessions":"session";return{body:JSON.stringify(Object(ye.a)({sent_at:(new Date).toISOString()},r&&{sdk:r}))+"\n"+JSON.stringify({type:n})+"\n"+JSON.stringify(t),type:n,url:e.getEnvelopeEndpointWithUrlEncodedAuth()}}function ha(t,e){var r=pa(e),n=t.type||"event",i="transaction"===n,o=t.debug_meta||{},a=o.transactionSampling,s=Object(ye.f)(o,["transactionSampling"]),c=a||{},u=c.method,l=c.rate;0===Object.keys(s).length?delete t.debug_meta:t.debug_meta=s;var p={body:JSON.stringify(r?da(t,e.metadata.sdk):t),type:n,url:i?e.getEnvelopeEndpointWithUrlEncodedAuth():e.getStoreEndpointWithUrlEncodedAuth()};if(i){var d=JSON.stringify(Object(ye.a)({event_id:t.event_id,sent_at:(new Date).toISOString()},r&&{sdk:r}))+"\n"+JSON.stringify({type:t.type,sample_rates:[{id:u,rate:l}]})+"\n"+p.body;p.body=d}return p}var ma=function(){function t(t,e){void 0===e&&(e={}),this.dsn=t,this._dsnObject=new zo(t),this.metadata=e}return t.prototype.getDsn=function(){return this._dsnObject},t.prototype.getBaseApiEndpoint=function(){var t=this._dsnObject,e=t.protocol?t.protocol+":":"",r=t.port?":"+t.port:"";return e+"//"+t.host+r+(t.path?"/"+t.path:"")+"/api/"},t.prototype.getStoreEndpoint=function(){return this._getIngestEndpoint("store")},t.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return this.getStoreEndpoint()+"?"+this._encodedAuth()},t.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return this._getEnvelopeEndpoint()+"?"+this._encodedAuth()},t.prototype.getStoreEndpointPath=function(){var t=this._dsnObject;return(t.path?"/"+t.path:"")+"/api/"+t.projectId+"/store/"},t.prototype.getRequestHeaders=function(t,e){var r=this._dsnObject,n=["Sentry sentry_version=7"];return n.push("sentry_client="+t+"/"+e),n.push("sentry_key="+r.publicKey),r.pass&&n.push("sentry_secret="+r.pass),{"Content-Type":"application/json","X-Sentry-Auth":n.join(", ")}},t.prototype.getReportDialogEndpoint=function(t){void 0===t&&(t={});var e=this._dsnObject,r=this.getBaseApiEndpoint()+"embed/error-page/",n=[];for(var i in n.push("dsn="+e.toString()),t)if("dsn"!==i)if("user"===i){if(!t.user)continue;t.user.name&&n.push("name="+encodeURIComponent(t.user.name)),t.user.email&&n.push("email="+encodeURIComponent(t.user.email))}else n.push(encodeURIComponent(i)+"="+encodeURIComponent(t[i]));return n.length?r+"?"+n.join("&"):r},t.prototype._getEnvelopeEndpoint=function(){return this._getIngestEndpoint("envelope")},t.prototype._getIngestEndpoint=function(t){return""+this.getBaseApiEndpoint()+this._dsnObject.projectId+"/"+t+"/"},t.prototype._encodedAuth=function(){var t={sentry_key:this._dsnObject.publicKey,sentry_version:"7"};return Object(Tn.f)(t)},t}(),va=function(){function t(t){this._limit=t,this._buffer=[]}return t.prototype.isReady=function(){return void 0===this._limit||this.length()0&&r(!1)}),t);En.all(e._buffer).then((function(){clearTimeout(n),r(!0)})).then(null,(function(){r(!0)}))}))},t}(),ga={event:"error",transaction:"transaction",session:"session",attachment:"attachment"},ba=function(){function t(t){this.options=t,this._buffer=new va(30),this._rateLimits={},this._api=new ma(t.dsn,t._metadata),this.url=this._api.getStoreEndpointWithUrlEncodedAuth()}return t.prototype.sendEvent=function(t){throw new Fo("Transport Class has to implement `sendEvent` method")},t.prototype.close=function(t){return this._buffer.drain(t)},t.prototype._handleResponse=function(t){var e=t.requestType,r=t.response,n=t.headers,i=t.resolve,o=t.reject,a=Wo.fromHttpCode(r.status);this._handleRateLimit(n)&&_n.warn("Too many requests, backing off until: "+this._disabledUntil(e)),a!==Wo.Success?o(r):i({status:a})},t.prototype._disabledUntil=function(t){var e=ga[t];return this._rateLimits[e]||this._rateLimits.all},t.prototype._isRateLimited=function(t){return this._disabledUntil(t)>new Date(Date.now())},t.prototype._handleRateLimit=function(t){var e,r,n,i,o=Date.now(),a=t["x-sentry-rate-limits"],s=t["retry-after"];if(a){try{for(var c=Object(ye.i)(a.trim().split(",")),u=c.next();!u.done;u=c.next()){var l=u.value.split(":",2),p=parseInt(l[0],10),d=1e3*(isNaN(p)?60:p);try{for(var f=(n=void 0,Object(ye.i)(l[1].split(";"))),h=f.next();!h.done;h=f.next()){var m=h.value;this._rateLimits[m||"all"]=new Date(o+d)}}catch(t){n={error:t}}finally{try{h&&!h.done&&(i=f.return)&&i.call(f)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(e)throw e.error}}return!0}return!!s&&(this._rateLimits.all=new Date(o+Object(hn.g)(o,s)),!0)},t}();var ya=function(t){function e(e,r){void 0===r&&(r=function(){var t,e,r=Object(hn.e)();if(xo(r.fetch))return r.fetch.bind(r);var n=r.document,i=r.fetch;if("function"==typeof(null===(t=n)||void 0===t?void 0:t.createElement))try{var o=n.createElement("iframe");o.hidden=!0,n.head.appendChild(o),(null===(e=o.contentWindow)||void 0===e?void 0:e.fetch)&&(i=o.contentWindow.fetch),n.head.removeChild(o)}catch(t){_n.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return i.bind(r)}());var n=t.call(this,e)||this;return n._fetch=r,n}return Object(ye.c)(e,t),e.prototype.sendEvent=function(t){return this._sendRequest(ha(t,this._api),t)},e.prototype.sendSession=function(t){return this._sendRequest(fa(t,this._api),t)},e.prototype._sendRequest=function(t,e){var r=this;if(this._isRateLimited(t.type))return Promise.reject({event:e,type:t.type,reason:"Transport locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429});var n={body:t.body,method:"POST",referrerPolicy:Eo()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(n,this.options.fetchParameters),void 0!==this.options.headers&&(n.headers=this.options.headers),this._buffer.add(new En((function(e,i){r._fetch(t.url,n).then((function(n){var o={"x-sentry-rate-limits":n.headers.get("X-Sentry-Rate-Limits"),"retry-after":n.headers.get("Retry-After")};r._handleResponse({requestType:t.type,response:n,headers:o,resolve:e,reject:i})})).catch(i)})))},e}(ba),_a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ye.c)(e,t),e.prototype.sendEvent=function(t){return this._sendRequest(ha(t,this._api),t)},e.prototype.sendSession=function(t){return this._sendRequest(fa(t,this._api),t)},e.prototype._sendRequest=function(t,e){var r=this;return this._isRateLimited(t.type)?Promise.reject({event:e,type:t.type,reason:"Transport locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429}):this._buffer.add(new En((function(e,n){var i=new XMLHttpRequest;for(var o in i.onreadystatechange=function(){if(4===i.readyState){var o={"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")};r._handleResponse({requestType:t.type,response:i,headers:o,resolve:e,reject:n})}},i.open("POST",t.url),r.options.headers)r.options.headers.hasOwnProperty(o)&&i.setRequestHeader(o,r.options.headers[o]);i.send(t.body)})))},e}(ba),wa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(ye.c)(e,t),e.prototype.eventFromException=function(t,e){return function(t,e,r){var n=ua(e,r&&r.syntheticException||void 0,{attachStacktrace:t.attachStacktrace});return Object(hn.a)(n,{handled:!0,type:"generic"}),n.level=Qo.Error,r&&r.event_id&&(n.event_id=r.event_id),En.resolve(n)}(this._options,t,e)},e.prototype.eventFromMessage=function(t,e,r){return void 0===e&&(e=Qo.Info),function(t,e,r,n){void 0===r&&(r=Qo.Info);var i=la(e,n&&n.syntheticException||void 0,{attachStacktrace:t.attachStacktrace});return i.level=r,n&&n.event_id&&(i.event_id=n.event_id),En.resolve(i)}(this._options,t,e,r)},e.prototype._setupTransport=function(){if(!this._options.dsn)return t.prototype._setupTransport.call(this);var e=Object(ye.a)(Object(ye.a)({},this._options.transportOptions),{dsn:this._options.dsn,_metadata:this._options._metadata});return this._options.transport?new this._options.transport(e):wo()?new ya(e):new _a(e)},e}(Ko),xa=0;function Ea(){return xa>0}function Sa(){xa+=1,setTimeout((function(){xa-=1}))}function ka(t,e,r){if(void 0===e&&(e={}),"function"!=typeof t)return t;try{if(t.__sentry__)return t;if(t.__sentry_wrapped__)return t.__sentry_wrapped__}catch(e){return t}var n=function(){var n=Array.prototype.slice.call(arguments);try{r&&"function"==typeof r&&r.apply(this,arguments);var i=n.map((function(t){return ka(t,e)}));return t.handleEvent?t.handleEvent.apply(this,i):t.apply(this,i)}catch(t){throw Sa(),Fn((function(r){r.addEventProcessor((function(t){var r=Object(ye.a)({},t);return e.mechanism&&(Object(hn.b)(r,void 0,void 0),Object(hn.a)(r,e.mechanism)),r.extra=Object(ye.a)(Object(ye.a)({},r.extra),{arguments:n}),r})),Un(t)})),t}};try{for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}catch(t){}t.prototype=t.prototype||{},n.prototype=t.prototype,Object.defineProperty(t,"__sentry_wrapped__",{enumerable:!1,value:n}),Object.defineProperties(n,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:t}});try{Object.getOwnPropertyDescriptor(n,"name").configurable&&Object.defineProperty(n,"name",{get:function(){return t.name}})}catch(t){}return n}var Oa=r("bc5b"),Ta=function(){function t(e){this.name=t.id,this._options=Object(ye.a)({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},e)}return t.prototype.addSentryBreadcrumb=function(t){this._options.sentry&&Nn().addBreadcrumb({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:Object(hn.d)(t)},{event:t})},t.prototype.setupOnce=function(){var t=this;this._options.console&&Co({callback:function(){for(var e=[],r=0;r"}0!==e.length&&Nn().addBreadcrumb({category:"ui."+t.name,message:e},{event:t.event,name:t.name,global:t.global})},t.prototype._xhrBreadcrumb=function(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;var e=t.xhr.__sentry_xhr__||{},r=e.method,n=e.url,i=e.status_code,o=e.body;Nn().addBreadcrumb({category:"xhr",data:{method:r,url:n,status_code:i},type:"http"},{xhr:t.xhr,input:o})}},t.prototype._fetchBreadcrumb=function(t){t.endTimestamp&&(t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method||(t.error?Nn().addBreadcrumb({category:"fetch",data:t.fetchData,level:Qo.Error,type:"http"},{data:t.error,input:t.args}):Nn().addBreadcrumb({category:"fetch",data:Object(ye.a)(Object(ye.a)({},t.fetchData),{status_code:t.response.status}),type:"http"},{input:t.args,response:t.response})))},t.prototype._historyBreadcrumb=function(t){var e=Object(hn.e)(),r=t.from,n=t.to,i=Object(hn.h)(e.location.href),o=Object(hn.h)(r),a=Object(hn.h)(n);o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),Nn().addBreadcrumb({category:"navigation",data:{from:r,to:n}})},t.id="Breadcrumbs",t}(),ja=function(t){function e(e){void 0===e&&(e={});return e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:mo}],version:mo},t.call(this,wa,e)||this}return Object(ye.c)(e,t),e.prototype.showReportDialog=function(t){void 0===t&&(t={}),Object(hn.e)().document&&(this._isEnabled()?function(t){if(void 0===t&&(t={}),t.eventId)if(t.dsn){var e=document.createElement("script");e.async=!0,e.src=new ma(t.dsn).getReportDialogEndpoint(t),t.onLoad&&(e.onload=t.onLoad),(document.head||document.body).appendChild(e)}else _n.error("Missing dsn option in showReportDialog call");else _n.error("Missing eventId option in showReportDialog call")}(Object(ye.a)(Object(ye.a)({},t),{dsn:t.dsn||this.getDsn()})):_n.error("Trying to call showReportDialog with Sentry Client disabled"))},e.prototype._prepareEvent=function(e,r,n){return e.platform=e.platform||"javascript",t.prototype._prepareEvent.call(this,e,r,n)},e.prototype._sendEvent=function(e){var r=this.getIntegration(Ta);r&&r.addSentryBreadcrumb(e),t.prototype._sendEvent.call(this,e)},e}(Ho),Ca=["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"],Ia=function(){function t(e){this.name=t.id,this._options=Object(ye.a)({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},e)}return t.prototype.setupOnce=function(){var t=Object(hn.e)();(this._options.setTimeout&&Object(Tn.c)(t,"setTimeout",this._wrapTimeFunction.bind(this)),this._options.setInterval&&Object(Tn.c)(t,"setInterval",this._wrapTimeFunction.bind(this)),this._options.requestAnimationFrame&&Object(Tn.c)(t,"requestAnimationFrame",this._wrapRAF.bind(this)),this._options.XMLHttpRequest&&"XMLHttpRequest"in t&&Object(Tn.c)(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),this._options.eventTarget)&&(Array.isArray(this._options.eventTarget)?this._options.eventTarget:Ca).forEach(this._wrapEventTarget.bind(this))},t.prototype._wrapTimeFunction=function(t){return function(){for(var e=[],r=0;r0?e:Object(hn.f)();return 0===t.exception.values[0].stacktrace.frames.length&&t.exception.values[0].stacktrace.frames.push({colno:i,filename:a,function:"?",in_app:!0,lineno:o}),t},t.id="GlobalHandlers",t}(),Ra=function(){function t(e){void 0===e&&(e={}),this.name=t.id,this._key=e.key||"cause",this._limit=e.limit||5}return t.prototype.setupOnce=function(){On((function(e,r){var n=Nn().getIntegration(t);return n?n._handler(e,r):e}))},t.prototype._handler=function(t,e){if(!(t.exception&&t.exception.values&&e&&Object(xn.g)(e.originalException,Error)))return t;var r=this._walkErrorTree(e.originalException,this._key);return t.exception.values=Object(ye.g)(r,t.exception.values),t},t.prototype._walkErrorTree=function(t,e,r){if(void 0===r&&(r=[]),!Object(xn.g)(t[e],Error)||r.length+1>=this._limit)return r;var n=aa(na(t[e]));return this._walkErrorTree(t[e],e,Object(ye.g)([n],r))},t.id="LinkedErrors",t}(),Na=Object(hn.e)(),Da=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){On((function(e){var r,n,i;if(Nn().getIntegration(t)){if(!Na.navigator&&!Na.location&&!Na.document)return e;var o=(null===(r=e.request)||void 0===r?void 0:r.url)||(null===(n=Na.location)||void 0===n?void 0:n.href),a=(Na.document||{}).referrer,s=(Na.navigator||{}).userAgent,c=Object(ye.a)(Object(ye.a)(Object(ye.a)({},null===(i=e.request)||void 0===i?void 0:i.headers),a&&{Referer:a}),s&&{"User-Agent":s}),u=Object(ye.a)(Object(ye.a)({},o&&{url:o}),{headers:c});return Object(ye.a)(Object(ye.a)({},e),{request:u})}return e}))},t.id="UserAgent",t}(),Pa=[new i.InboundFilters,new i.FunctionToString,new Ia,new Ta,new Aa,new Ra,new Da];function Ma(t){if(void 0===t&&(t={}),void 0===t.defaultIntegrations&&(t.defaultIntegrations=Pa),void 0===t.release){var e=Object(hn.e)();e.SENTRY_RELEASE&&e.SENTRY_RELEASE.id&&(t.release=e.SENTRY_RELEASE.id)}void 0===t.autoSessionTracking&&(t.autoSessionTracking=!0),function(t,e){var r;!0===e.debug&&_n.enable();var n=Nn();null===(r=n.getScope())||void 0===r||r.update(e.initialScope);var i=new t(e);n.bindClient(i)}(ja,t),t.autoSessionTracking&&function(){if(void 0!==Object(hn.e)().document){var t=Nn();"function"==typeof t.startSession&&"function"==typeof t.captureSession&&(t.startSession({ignoreDuration:!0}),t.captureSession(),Co({callback:function(e){var r=e.from,n=e.to;void 0!==r&&r!==n&&(t.startSession({ignoreDuration:!0}),t.captureSession())},type:"history"}))}else _n.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")}()}var La=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^/]+?|)(\.[^./]*|))(?:[/]*)$/;function Ua(t,e){var r=function(t){var e=La.exec(t);return e?e.slice(1):[]}(t)[2];return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r}var Fa={activate:["activated","deactivated"],create:["beforeCreate","created"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]},$a=/(?:^|[-_/])(\w)/g,Va="anonymous component";var za=function(){function t(t){var e=this;this._componentsCache={},this._applyTracingHooks=function(t){if(!t.$options.$_sentryPerfHook){t.$options.$_sentryPerfHook=!0;var r=e._getComponentName(t),n="root"===r,i={},o=function(r){var n=Object(mn.c)();e._rootSpan?e._finishRootSpan(n):t.$once("hook:"+r,(function(){var t=qa();t&&(e._rootSpan=t.startChild({description:"Application Render",op:"Vue"}))}))},a=function(n,o){var a=Array.isArray(e._options.tracingOptions.trackComponents)?e._options.tracingOptions.trackComponents.indexOf(r)>-1:e._options.tracingOptions.trackComponents,s=e._rootSpan||qa();if(s&&a){var c=Object(mn.c)(),u=i[o];u?(u.finish(),e._finishRootSpan(c)):t.$once("hook:"+n,(function(){s&&(i[o]=s.startChild({description:"Vue <"+r+">",op:o}))}))}};e._options.tracingOptions.hooks.forEach((function(r){var i=Fa[r];i?i.forEach((function(i){var s=n?o.bind(e,i):a.bind(e,i,r),c=t.$options[i];Array.isArray(c)?t.$options[i]=Object(ye.g)([s],c):t.$options[i]="function"==typeof c?[s,c]:[s]})):_n.warn("Unknown hook: "+r)}))}},this._options=t}return t.prototype.setup=function(){this._attachErrorHandler(),("tracesSampleRate"in this._options||"tracesSampler"in this._options)&&this._startTracing()},t.prototype._getComponentName=function(t){if(!t)return Va;if(t.$root===t)return"root";if(!t.$options)return Va;if(t.$options.name)return t.$options.name;if(t.$options._componentTag)return t.$options._componentTag;if(t.$options.__file){var e=Ua(t.$options.__file.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"),".vue");return this._componentsCache[e]||(this._componentsCache[e]=e.replace($a,(function(t,e){return e?e.toUpperCase():""})))}return Va},t.prototype._finishRootSpan=function(t){var e=this;this._rootSpanTimer&&clearTimeout(this._rootSpanTimer),this._rootSpanTimer=setTimeout((function(){e._rootSpan&&(e._rootSpan.finish(t),e._rootSpan=void 0)}),this._options.tracingOptions.timeout)},t.prototype._startTracing=function(){var t=this._applyTracingHooks,e=setTimeout((function(){_n.warn("Didn't apply tracing hooks, make sure you call Sentry.init before initialzing Vue!")}),500);this._options.Vue.mixin({beforeCreate:function(){clearTimeout(e),t(this)}})},t.prototype._attachErrorHandler=function(){var t=this,e=this._options.Vue.config.errorHandler;this._options.Vue.config.errorHandler=function(r,n,i){var o={};if(n)try{o.componentName=t._getComponentName(n),t._options.attachProps&&(o.propsData=n.$options.propsData)}catch(t){_n.warn("Unable to extract metadata from Vue component.")}i&&(o.lifecycleHook=i),setTimeout((function(){Nn().withScope((function(t){t.setContext("vue",o),Nn().captureException(r)}))})),"function"==typeof e&&e.call(t._options.Vue,r,n,i),t._options.logErrors&&(t._options.Vue.util&&t._options.Vue.util.warn("Error in "+i+': "'+(r&&r.toString())+'"',n),console.error(r))}},t}();function qa(){var t;return null===(t=Nn().getScope())||void 0===t?void 0:t.getTransaction()}var Ba=r("50ca"),Ga=r.n(Ba);const Wa=(t,e,r=(()=>!0))=>Ga()(t,(n,i,o)=>{const a=e(i,o,t),s=r(i,o,t);return n[o]=!1!==s&&null!==a&&"object"==typeof a?Wa(a,e,r):a,n});var Ha=()=>{Rt.debug("[initSentry] 👃"),function(t){void 0===t&&(t={});var e=Object(ye.a)(Object(ye.a)({Vue:Object(hn.e)().Vue,attachProps:!0,logErrors:!1,tracing:!1},t),{tracingOptions:Object(ye.a)({hooks:["activate","mount","update"],timeout:2e3,trackComponents:!1},t.tracingOptions)});e._metadata=e._metadata||{},e._metadata.sdk={name:"sentry.javascript.vue",packages:[{name:"npm:@sentry/vue",version:mo}],version:mo},Ma(e),void 0===e.Vue?(_n.warn("No Vue instance was provided. Also there is no Vue instance on the `window` object."),_n.warn("We will only capture global unhandled errors.")):new za(e).setup()}({Vue:o.default,autoSessionTracking:!1,attachProps:!0,logErrors:!0,environment:vt,dsn:"https://3e312a60dbdf450b9b8a65d956beb95b@o454915.ingest.sentry.io/5630840",sampleRate:1,ignoreErrors:["dynamix","webGui/javascript/dynamix","trigger(webGui/javascript/dynamix)","n.parseJSON(webGui/javascript/dynamix)","Object.success(Apps)","Object.success(Docker)","Object.success(Main)","Object.success(Plugins)","Object.success(Settings)","Object.success(Shares)","Object.success(Tools)","Object.success(Tools/Syslog)","checkPorts(Settings/ManagementAccess)","disable(Settings/openvpnclient)","community.applications","community-applications","plugins/community.applications/javascript/libraries","plugins","Docker","Tools","Honey.safariextension","validateForm(Settings/openvpnclient)","disable(Settings/openvpnclient)","getLibvirtSchema","initab(Main)","disableTest(Settings/Notifications)","failure(Settings/ManagementAccess)"],denyUrls:["https://[REDACTED]/webGui/javascript/dynamix.js",`https://${window.location.host}/webGui/javascript/dynamix.js`,"https://[REDACTED]/plugins/community.applications/javascript/libraries.js",`https://${window.location.host}/plugins/community.applications/javascript/libraries.js`],beforeSend(t,e){const r=window.location.host,n=Wa(t,(t,e)=>"object"==typeof t?t:((t,e,r)=>String(t).includes(e)?String(t).replace(e,r):t)(t,r,"[REDACTED]")),i=e.originalException;Rt.debug("[sentry.beforeSend] %o",i);const o="UNRAID_SENTRY_GUEST_PERMISSIONS_ISSUE",a=sessionStorage.getItem(o);return i&&i.message&&i.message.includes('guest doesn\'t have permission to access "servers"')?(Rt.debug("[SPECIAL • SENTRY] ✨✨✨"),a?null:(sessionStorage.setItem(o,1),n)):n}})};var Qa=g({i18n:mt,store:vi,name:"UserProfile",mixins:[Ai.mixin],components:{UnraidLogoMark:wi,KeyAction:Bi,MetaInfo:ho,MyServers:eo,UnraidSvgUtilLogout:Ni.a,UnraidSvgUtilNewWindow:Pi.a,UnraidSvgUtilSelect:Li.a,UnraidSvgUtilEdit:Fi.a,UnraidSvgUiWarning:Vi.a},props:{serverstate:String,serverdesc:String,displaydesc:{type:String,default:""},servermodel:String,serverupdate:Boolean,banner:{type:String,default:""},theme:{type:String,default:"black"},textcolor:String,bgcolor:[String,Number],metacolor:String,uptime:[Number,String],expiretime:[Number,String],apikey:String,regWizTime:String,hideotherservers:{type:String,default:""},locale:String,localeMessages:String,sendCrashInfo:String,csrf:String,hideMyServers:{type:String,default:null},plgPath:String},data:()=>({NODE_ENV:vt,dropdownVisible:!1,dropdownTimeout:"",errorStateMessageVisible:!0,avatarFail:!1}),computed:{...Object(b.e)(["avatar","isLaunchpadOpen","isPopUpOpen","guid","guidRegistered","popUpWindow","regAtOpen","purchaseWindow","registered","servername","internalip","state","username","darkTheme","lightTheme","extendTrialPayload","recoverKeyPayload","replaceKeyPayload","signInPayload","signUpPayload","signOutPayload","troubleshootPayload","wizardWindow","messages","myServersEnv","triggerUPC","graphOnline"]),...Object(b.c)(["stateData","signedOutWithKey","noRemoteApikeyRegisteredWithPlg","errorTooManyDisks","errorCertRequiresSignIn"]),darkMode(){return"black"===this.theme||"azure"===this.theme},usernameButtonText(){return"ENOKEYFILE"===this.state?this.$t("getStarted"):this.stateData.error&&this.stateData.error.signInToFix&&!this.registered?this.$t("signIn"):this.stateData.error&&!this.stateData.error.signInToFix&&"EEXPIRED"===!this.state?this.$t("fixError"):this.registered?this.username:this.$t("signIn")},usernameButtonTitle(){return"ENOKEYFILE"===this.state?this.$t("getStarted"):this.stateData.error&&this.stateData.error.signInToFix&&!this.registered?this.$t("upc.signInActions.resolve"):this.stateData.error&&!this.stateData.error.signInToFix?this.$t("learnMore"):this.isPopUpOpen&&this.isLaunchpadOpen?this.$t("upc.confirmClosure"):this.errorTooManyDisks?this.$t("upc.errorTooManyDisks.heading"):this.errorCertRequiresSignIn?"":this.isLaunchpadOpen?this.$t("closeLaunchpad"):"EEXPIRED"===this.state?this.registered?this.$t("upc.trialHasExpiredSeeOptions"):this.stateData.actions.includes("extend")?this.$t("upc.signInActions.purchaseKeyOrExtendTrial"):this.$t("upc.signInActions.purchaseKey"):this.registered&&this.dropdownVisible?this.$t("upc.closeDropdown"):this.registered&&!this.dropdownVisible?this.$t("upc.openDropdown"):this.$t("upc.opensNewHttpsWindow.signIn")},displayKeylineBelowActions(){return!!(this.stateData.actions.includes("purchase")||this.stateData.actions.includes("upgrade")||this.stateData.actions.includes("recover")||this.stateData.actions.includes("replace")||this.stateData.actions.includes("extend"))},extraLinks(){return[...!this.hideMyServers||this.stateData.error.message||this.errorTooManyDisks?[{url:"",text:"",external:!1}]:[],...this.hideMyServers?[{url:"https://wiki.unraid.net/My_Servers",text:"Install My Servers Beta",external:!0,title:this.$t("upc.extraLinks.newTab",["Install My Servers Beta"])}]:[{url:this.myServersEnv?"https://forums.unraid.net/my-servers-staging/":"https://forums.unraid.net/my-servers/",text:this.$t("upc.extraLinks.myServers"),external:!0,title:this.$t("upc.extraLinks.newTab",[this.$t("upc.extraLinks.myServers")])},{url:"/Settings/ManagementAccess#"+(this.plgPath?"MyServersSettings":"UnraidNetSettings"),text:this.$t("upc.extraLinks.settings.text"),settings:!0,title:this.$t("upc.extraLinks.settings.title")}]]},devEnv(){let t=vt;const e="UPC_ENV=",r=document.cookie.split(";");for(let n=0;n{this.dropdownVisible=!1},1e3)},autoTriggerLaunchpad(){setTimeout(()=>{const t=`${this.servername}_${this.guid?this.guid.slice(-12):"NO_GUID"}`;sessionStorage.getItem(t)||"ENOKEYFILE"!==this.state||(sessionStorage.setItem(t,"またね"),this.isLaunchpadOpen||this.toggleLaunchpad())},100)},toggleLaunchpad(){const t="unraid-launchpad";if(!document.getElementsByTagName(t).length){const e=document.getElementsByTagName("body")[0],r=document.createElement(t);e.appendChild(r)}const e=()=>{this.dropdownVisible&&(this.dropdownVisible=!1),this.isPopUpOpen&&this.closePopUp(),this.SET_IS_LAUNCHPAD_OPEN(!this.isLaunchpadOpen)};this.isPopUpOpen&&this.isLaunchpadOpen?window.confirm(this.$t("upc.pleaseConfirmClosureYouHaveOpenPopUp"))&&e():e()},onAvatarError(){Rt.error("Avatar failed to load %s",this.avatar),this.avatarFail=!0},async initUserProfile(){if(this.setStateFromWebComponentProp(this.serverstate),!this.registered){const t=`Sign In to your Unraid.net account to perform license key actions${this.hideMyServers?"":" and to receive real-time server monitoring with My Servers"}.`,e="Learn more at https://wiki.unraid.net/My_Servers.",r=["color: white","background: linear-gradient(to right, #E22828 0%, #FF8C2F 100%)","font-size: 10px","padding: 4px"].join(";");Rt.log("%c"+t,r),Rt.log("%c"+e,r)}if(this.apikey&&this.SET_API_KEY(this.apikey),"yes"===this.sendCrashInfo&&(this.SET_SENTRY_ENABLED(!0),Ha()),this.expiretime&&this.SET_EXPIRE_TIME(this.expiretime),this.regWizTime&&this.SET_REGWIZ_TIME(this.regWizTime),this.serverdesc&&this.SET_SERVERDESC(this.serverdesc),this.localeMessages){Rt.debug("[this.locale] %o",this.locale);const[t,e]=Ot(decodeURIComponent(this.localeMessages));t&&Rt.error("[initUserProfile.localeMessages] %s","Unable to set locale and locale messages"),this.$i18n.locale=this.locale,this.$i18n.setLocaleMessage(this.locale,e[this.locale]),Rt.debug(`[initUserProfile.$i18n] ${this.$i18n.locale} locale & messages set %o`,e[this.locale]),this.SET_LOCALE(this.locale)}this.csrf&&this.SET_CSRF(this.csrf),this.plgPath&&this.SET_PLG_PATH(this.plgPath),this.hideMyServers&&this.SET_HIDE_MY_SERVERS(this.hideMyServers),this.signedOutWithKey&&this.regWizTime?await this.validateGuid():this.autoTriggerLaunchpad(),this.SET_DARK_MODE(this.darkMode),window.addEventListener("message",t=>{this.receivePostMessage({inject:!1,event:t})},!1)}},watch:{signedOutWithKey(t,e){t&&!e&&this.regWizTime&&this.validateGuid()},isPopUpOpen(t,e){this.isLaunchpadOpen&&!t&&e&&!this.regAtOpen&&this.registered&&this.SET_IS_LAUNCHPAD_OPEN(!1)},triggerUPC(t){t&&setTimeout(()=>{this.dropdownVisible=!0},150)},graphOnline(t,e){t&&!e&&this.updateServerState()}},created(){this.initUserProfile()},beforeMount(){const t=document.getElementsByTagName("body")[0];let{alpha:e,beta:r,gamma:n}=this.darkMode?this.darkTheme:this.lightTheme;this.textcolor&&(e=this.textcolor),this.bgcolor&&(r=this.bgcolor,t.style.setProperty("--color-customgradient-start",Ii()(r,0)),t.style.setProperty("--color-customgradient-end",Ii()(r,.9))),this.metacolor&&(n=this.metacolor),t.style.setProperty("--color-alpha",e),t.style.setProperty("--color-beta",r),t.style.setProperty("--color-gamma",n)}},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"UnraidUPC",class:{"--hasBanner-default":t.banner&&!t.bgcolor,"--hasBanner-custom":t.banner&&t.bgcolor},attrs:{id:"UnraidUPC"}},[t.isPopUpOpen&&!t.isLaunchpadOpen?r("div",{staticClass:"absolute z-10 inset-0 flex flex-col items-end justify-center pr-6"},[r("div",{staticClass:"text-center inline-flex flex-col items-center justify-center"},[r("button",{staticClass:"text-14px button button-alt",on:{click:function(e){return t.openPopUp()}}},[t._v(t._s(t.$t("backToPopUp")))]),r("button",{staticClass:"hover:underline text-12px mt-4px",on:{click:function(e){return t.closePopUp()}}},[t._v(t._s(t.$t("closePopUp")))])])]):t._e(),r("MetaInfo",{class:{"blur opacity-30 pointer-events-none transition-all duration-150 ease-in-out":t.isPopUpOpen&&!t.isLaunchpadOpen},attrs:{uptime:t.uptime,expiretime:t.expiretime},on:{purchase:function(e){return t.openPopUp(t.purchaseWindow)},upgrade:function(e){return t.openPopUp(t.purchaseWindow)},signin:function(e){return t.openPopUp(t.signInPayload)}}}),r("div",{staticClass:"relative z-0 flex flex-row items-center justify-end h-full",class:{"blur opacity-30 pointer-events-none transition-all duration-150 ease-in-out":t.isPopUpOpen&&!t.isLaunchpadOpen}},[r("h1",{staticClass:"text-18px border-t-0 border-r-0 border-l-0 border-b-2 border-transparent"},[t.displaydesc?[r("span",{attrs:{title:t.servermodel}},[t._v(t._s(t.serverdesc))]),r("span",{staticClass:"text-grey-mid px-8px"},[t._v("•")])]:t._e(),r("span",{attrs:{title:t.$t("lanIp",[t.internalip])}},[t._v(t._s(t.servername))])],2),r("div",{staticClass:"block w-2px h-24px ml-16px bg-grey-mid"}),r("div",{directives:[{name:"on-clickaway",rawName:"v-on-clickaway",value:t.closeDropdown,expression:"closeDropdown"}],staticClass:"relative flex items-center justify-end h-full",on:{mouseenter:function(e){return t.dropdownMouseEnter()},mouseleave:function(e){return t.dropdownMouseLeave()}}},[r("button",{staticClass:"UnraidUPC-username group text-18px hover:text-alpha focus:text-alpha border border-transparent flex flex-row justify-end items-center h-full px-16px outline-none focus:outline-none",class:{"text-orange-dark":t.isLaunchpadOpen||!t.username&&!t.stateData.error,"text-alpha":t.username&&!t.isLaunchpadOpen,"text-red":t.stateData.error},attrs:{title:t.usernameButtonTitle},on:{click:function(e){return t.usernameAvatarButton()}}},[t.stateData.error||"EEXPIRED"===t.state||t.noRemoteApikeyRegisteredWithPlg||t.errorTooManyDisks||t.errorCertRequiresSignIn?r("UnraidSvgUiWarning",{staticClass:"text-red fill-current relative w-24px h-24px mr-8px"}):t._e(),r("span",{staticClass:"inline-flex items-center bg-transparent border-t-0 border-l-0 border-r-0 border-b-2 border-transparent group-hover:border-orange-dark group-focus:border-orange-dark transition-colors duration-150 ease-in-out"},[t._v(" "+t._s(t.usernameButtonText)+" "),t.registered&&!t.isLaunchpadOpen?r("UnraidSvgUtilSelect",{staticClass:"fill-current w-8px h-8px ml-8px"}):t._e()],1),r("span",{staticClass:"relative z-0 flex items-center justify-center w-36px h-36px ml-8px rounded-full",class:{"bg-transparent":t.registered&&!t.avatarFail,"bg-gradient-to-r from-red to-orange":!t.registered||t.avatarFail}},[t.registered&&!t.avatarFail?r("img",{staticClass:"absolute z-10 inset-0 w-36px h-36px rounded-full overflow-hidden",attrs:{src:t.avatar,alt:""+t.$t("upc.avatarAlt",[t.username])},on:{error:t.onAvatarError}}):r("UnraidLogoMark",{staticClass:"relative z-0 w-28px",attrs:{"gradient-start":"#fff","gradient-stop":"#fff"}})],1)],1),r("transition",{attrs:{name:"slideVerticalFade",mode:"out-in"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:t.dropdownVisible&&t.registered,expression:"dropdownVisible && registered"}],staticClass:"UnraidUPC-dropdown",class:{"border-grey-darkest":t.darkMode,"border-grey-light":!t.darkMode}},[t.hideMyServers?t._e():r("header",{staticClass:"text-14px pt-16px px-16px rounded-t"},[r("h5",{staticClass:"text-18px leading-none inline-flex flex-row items-center"},[r("span",{staticClass:"font-semibold"},[t._v(t._s(t.$t("upc.myServers.heading")))]),r("span",{staticClass:"text-grey-mid text-10px uppercase ml-8px py-4px px-6px border-2 border-grey-mid rounded-full"},[t._v(t._s(t.$t("upc.myServers.beta")))]),t.myServersEnv?r("span",{staticClass:"ml-8px",attrs:{title:"API • "+t.myServersEnv}},[t._v("⚙️")]):t._e(),t.devEnv?r("span",{staticClass:"ml-8px",attrs:{title:t.devEnv}},[t._v("⚠️")]):t._e()])]),r("ul",{staticClass:"list-reset my-8px p-0"},["development"===t.NODE_ENV?[r("li",[r("KeyAction",{attrs:{text:"[DEV] Launchpad",external:!1},on:{click:function(e){return t.toggleLaunchpad()}}})],1),r("li",[r("KeyAction",{attrs:{text:"[DEV] Pop-up"},on:{click:function(e){return t.openPopUp(t.wizardWindow)}}})],1)]:t._e(),t.displayKeylineBelowActions?[r("li",[t.stateData.actions.includes("purchase")?r("KeyAction",{attrs:{text:t.$t("actions.purchase")},on:{click:function(e){return t.openPopUp(t.purchaseWindow)}}}):t._e(),t.stateData.actions.includes("upgrade")?r("KeyAction",{attrs:{text:t.$t("actions.upgrade")},on:{click:function(e){return t.openPopUp(t.purchaseWindow)}}}):t._e(),t.stateData.actions.includes("recover")?r("KeyAction",{attrs:{text:t.$t("actions.recover")},on:{click:function(e){return t.openPopUp(t.recoverKeyPayload)}}}):t._e(),t.stateData.actions.includes("replace")?r("KeyAction",{attrs:{text:t.$t("actions.replace")},on:{click:function(e){return t.openPopUp(t.replaceKeyPayload)}}}):t._e(),t.stateData.actions.includes("extend")?r("KeyAction",{attrs:{text:t.$t("actions.extend")},on:{click:function(e){return t.openPopUp(t.extendTrialPayload)}}}):t._e()],1),r("li",{staticClass:"my-8px mx-12px"},[r("hr",{staticClass:"w-full h-2px bg-gradient-to-r from-red to-orange shadow-none border-none rounded-none"})])]:t._e(),!t.hideMyServers||t.stateData.error.message||t.errorTooManyDisks?r("MyServers",{attrs:{hideMyServers:t.hideMyServers,errorStateMessageVisible:t.errorStateMessageVisible,hideotherservers:t.hideotherservers},on:{"contact-support":function(e){return t.openPopUp(t.troubleshootPayload)},"toggle-error":function(e){t.errorStateMessageVisible=!t.errorStateMessageVisible}}}):t._e(),t._l(t.extraLinks,(function(e,n){return[e.url?r("li",{key:n},[r("a",{staticClass:"flex flex-row items-center",attrs:{href:e.url,target:e.external?"_blank":"",title:e.title}},[e.external?r("UnraidSvgUtilNewWindow",{staticClass:"fill-current w-12px h-12px mr-8px"}):t._e(),e.settings?r("UnraidSvgUtilEdit",{staticClass:"fill-current w-12px h-12px mr-8px"}):t._e(),t._v(" "+t._s(e.text)+" ")],1)]):r("div",{key:n,staticClass:"mx-12px"},[r("hr",{staticClass:"w-full h-2px my-8px bg-gradient-to-r from-red to-orange shadow-none border-none rounded-none"})])]})),r("li",[r("button",{staticClass:"group flex flex-row items-center justify-between",attrs:{title:t.$t("upc.opensNewHttpsWindow.base",["Sign Out of Unraid.net"])},on:{click:function(e){return t.openPopUp(t.signOutPayload)}}},[r("span",{staticClass:"inline-flex flex-row items-center"},[r("UnraidSvgUtilLogout",{staticClass:"fill-current w-12px h-12px mr-8px"}),t._v(" "+t._s("Sign Out of Unraid.net")+" ")],1),r("UnraidSvgUtilNewWindow",{staticClass:"text-white opacity-0 group-hover:opacity-100 transition-opacity duration-200 ease-in-out fill-current w-12px h-12px ml-8px"})],1)])],2)])]),r("transition",{attrs:{name:"slideVerticalFade",mode:"out-in"}},[r("div",{directives:[{name:"show",rawName:"v-show",value:t.errorCertRequiresSignIn&&t.dropdownVisible,expression:"errorCertRequiresSignIn && dropdownVisible"}],staticClass:"UnraidUPC-dropdown",class:{"border-grey-darkest":t.darkMode,"border-grey-light":!t.darkMode}},[r("div",{staticClass:"text-red text-14px font-semibold m-12px"},[r("h3",[t._v(t._s(t.$t("upc.errorCertRequiresSignIn")))])])])])],1)])],1)}),[],!1,(function(t){var e=r("e519");e.__inject__&&e.__inject__(t)}),null,null,!0).exports;var Ya=g({i18n:mt,store:vi,name:"WanIpCheck",props:{phpWanIp:{type:String,default:""}},computed:{...Object(b.e)(["wanip","site"]),...Object(b.c)(["isRemoteAccess"]),loading(){return!this.wanip}},methods:{...Object(b.b)(["getWanIp"])},created(){Rt.debug("[🍣 WanIpCheck 🍣]"),this.wanip||this.getWanIp()}},(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("transition",{attrs:{appear:"",name:"fade",mode:"out-in"}},[t.loading?r("span",{domProps:{innerHTML:t._s(t.$t("wanIpCheck.checking")+"…")}}):[t.phpWanIp?[t.isRemoteAccess?r("span",{domProps:{innerHTML:t._s(t.$t("wanIpCheck.match",[t.phpWanIp]))}}):t.phpWanIp!==t.wanip||t.isRemoteAccess?r("span",{staticClass:"mismatch",domProps:{innerHTML:t._s(t.$t("wanIpCheck.mismatch",[t.phpWanIp,t.wanip]))}}):r("span",{domProps:{innerHTML:t._s(t.$t("wanIpCheck.match",[t.wanip]))}})]:r("span",{staticClass:"error",domProps:{innerHTML:t._s(t.$t("wanIpCheck.resolveError"))}})]],2)}),[],!1,(function(t){var e=r("6e03");e.__inject__&&e.__inject__(t)}),"4ca8352c",null,!0).exports;window.customElements.define("unraid-authed",v(o.default,gi)),window.customElements.define("unraid-launchpad",v(o.default,Ti)),window.customElements.define("unraid-upc-trigger",v(o.default,ji)),window.customElements.define("unraid-user-profile",v(o.default,Qa)),window.customElements.define("unraid-wan-ip-check",v(o.default,Ya))},"5d74":function(t,e,r){t.exports={options:{},ssr:function(t,e){var r=t.data,n=r.attrs,i=n.symbol,o=n.size,a=this.getAttributes(o);a&&(r.attrs=Object.assign({},r.attrs,a)),o&&delete r.attrs.size,i&&delete r.attrs.symbol;var s=r.class,c=r.staticClass||"";c+=s?Object.keys(s).join(" "):"",this.hasClass(c)||(r.staticClass=r.staticClass?r.staticClass+" "+this.options.class:this.options.class);var u=t.context.$createElement("use",{attrs:{href:this.getHref(i)}});Array.isArray(t.children)?t.children.push(u):t.children=[u]},install:function(t,e){void 0===e&&(e={}),this.options.class=e.class||"icon",this.options.url=void 0===e.url?"/assets/svg/sprite.svg":e.url;var r=this;t.directive("svg",{bind:function(t,e,n){var i=e.value||n.data.attrs.symbol,o=n.data.attrs&&n.data.attrs.size,a=r.getAttributes(o);a&&(t.setAttribute("viewBox",a.viewBox),t.setAttribute("width",a.width),t.setAttribute("height",a.height)),i&&t.removeAttribute("symbol"),o&&t.removeAttribute("size");var s=t.getAttribute("class");if(r.hasClass(s)||t.setAttribute("class",s?s+" "+r.options.class:r.options.class),!t||null===t.querySelector("use")){var c=document.createElementNS("http://www.w3.org/2000/svg","use"),u=r.getHref(i);c.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u),c.setAttribute("href",u),t.appendChild(c)}},update:function(t,e,n){var i=r.getHref(e.value||n.data.attrs.symbol),o=t&&t.querySelector("use");if(o){if(o.getAttribute("href")===i)return!1;var a=document.createElementNS("http://www.w3.org/2000/svg","use");a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i),a.setAttribute("href",i),t.replaceChild(a,o)}}})},getAttributes:function(t){if(!t)return null;var e=t.toString().replace(/( |, |,)/g," ").split(" "),r=e.length;if(3===r||r>4)return console.warn('[vue-svg-sprite] size: "'+t+'" is not valid'),null;var n=[];n[0]=r<4?0:e[0],n[1]=r<4?0:e[1];var i=n[2]=r<4?e[0]:e[2];return{height:n[3]=e[r-1],viewBox:n.join(" "),width:i}},hasClass:function(t){var e=this.options.class;return!!t&&t.split(" ").some((function(t){var r=t.split(/(-|_)/)[0];return-1!==r.indexOf(e)&&r.length===e.length}))},getHref:function(t){return""===this.options.url?"#"+t:this.options.url+"#"+t}}},"5e2e":function(t,e,r){var n=r("28c9"),i=r("69d5"),o=r("b4c0"),a=r("fba5"),s=r("67ca");function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0){var s=e.shift();s&&s.applyMiddleware.apply(i,[t,o])}else r(t)};o()}(a(e.middlewares),e)}))},t.prototype.use=function(t){var e=this;return t.map((function(t){if("function"!=typeof t.applyMiddleware)throw new Error("Middleware must implement the applyMiddleware function.");e.middlewares.push(t)})),this},t.prototype.getConnectionParams=function(t){return function(){return new Promise((function(e,r){if("function"==typeof t)try{return e(t.call(null))}catch(t){return r(t)}e(t)}))}},t.prototype.executeOperation=function(t,e){var r=this;null===this.client&&this.connect();var n=this.generateOperationId();return this.operations[n]={options:t,handler:e},this.applyMiddlewares(t).then((function(t){r.checkOperationOptions(t,e),r.operations[n]&&(r.operations[n]={options:t,handler:e},r.sendMessage(n,b.default.GQL_START,t))})).catch((function(t){r.unsubscribe(n),e(r.formatErrors(t))})),n},t.prototype.getObserver=function(t,e,r){return"function"==typeof t?{next:function(e){return t(e)},error:function(t){return e&&e(t)},complete:function(){return r&&r()}}:t},t.prototype.createMaxConnectTimeGenerator=function(){var t=this.minWsTimeout,e=this.wsTimeout;return new u({min:t,max:e,factor:1.2})},t.prototype.clearCheckConnectionInterval=function(){this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnectionIntervalId=null)},t.prototype.clearMaxConnectTimeout=function(){this.maxConnectTimeoutId&&(clearTimeout(this.maxConnectTimeoutId),this.maxConnectTimeoutId=null)},t.prototype.clearTryReconnectTimeout=function(){this.tryReconnectTimeoutId&&(clearTimeout(this.tryReconnectTimeoutId),this.tryReconnectTimeoutId=null)},t.prototype.clearInactivityTimeout=function(){this.inactivityTimeoutId&&(clearTimeout(this.inactivityTimeoutId),this.inactivityTimeoutId=null)},t.prototype.setInactivityTimeout=function(){var t=this;this.inactivityTimeout>0&&0===Object.keys(this.operations).length&&(this.inactivityTimeoutId=setTimeout((function(){0===Object.keys(t.operations).length&&t.close()}),this.inactivityTimeout))},t.prototype.checkOperationOptions=function(t,e){var r=t.query,n=t.variables,i=t.operationName;if(!r)throw new Error("Must provide a query.");if(!e)throw new Error("Must provide an handler.");if(!p.default(r)&&!h.getOperationAST(r,i)||i&&!p.default(i)||n&&!d.default(n))throw new Error("Incorrect option types. query must be a string or a document,`operationName` must be a string, and `variables` must be an object.")},t.prototype.buildMessage=function(t,e,r){return{id:t,type:e,payload:r&&r.query?n(n({},r),{query:"string"==typeof r.query?r.query:f.print(r.query)}):r}},t.prototype.formatErrors=function(t){return Array.isArray(t)?t:t&&t.errors?this.formatErrors(t.errors):t&&t.message?[t]:[{name:"FormatedError",message:"Unknown error",originalError:t}]},t.prototype.sendMessage=function(t,e,r){this.sendMessageRaw(this.buildMessage(t,e,r))},t.prototype.sendMessageRaw=function(t){switch(this.status){case this.wsImpl.OPEN:var e=JSON.stringify(t);try{JSON.parse(e)}catch(e){this.eventEmitter.emit("error",new Error("Message must be JSON-serializable. Got: "+t))}this.client.send(e);break;case this.wsImpl.CONNECTING:this.unsentMessagesQueue.push(t);break;default:this.reconnecting||this.eventEmitter.emit("error",new Error("A message was not sent because socket is not connected, is closing or is already closed. Message was: "+JSON.stringify(t)))}},t.prototype.generateOperationId=function(){return String(++this.nextOperationId)},t.prototype.tryReconnect=function(){var t=this;if(this.reconnect&&!(this.backoff.attempts>=this.reconnectionAttempts)){this.reconnecting||(Object.keys(this.operations).forEach((function(e){t.unsentMessagesQueue.push(t.buildMessage(e,b.default.GQL_START,t.operations[e].options))})),this.reconnecting=!0),this.clearTryReconnectTimeout();var e=this.backoff.duration();this.tryReconnectTimeoutId=setTimeout((function(){t.connect()}),e)}},t.prototype.flushUnsentMessagesQueue=function(){var t=this;this.unsentMessagesQueue.forEach((function(e){t.sendMessageRaw(e)})),this.unsentMessagesQueue=[]},t.prototype.checkConnection=function(){this.wasKeepAliveReceived?this.wasKeepAliveReceived=!1:this.reconnecting||this.close(!1,!0)},t.prototype.checkMaxConnectTimeout=function(){var t=this;this.clearMaxConnectTimeout(),this.maxConnectTimeoutId=setTimeout((function(){t.status!==t.wsImpl.OPEN&&(t.reconnecting=!0,t.close(!1,!0))}),this.maxConnectTimeGenerator.duration())},t.prototype.connect=function(){var t,e=this;this.client=new((t=this.wsImpl).bind.apply(t,a([void 0,this.url,this.wsProtocols],this.wsOptionArguments))),this.checkMaxConnectTimeout(),this.client.onopen=function(){return i(e,void 0,void 0,(function(){var t,e;return o(this,(function(r){switch(r.label){case 0:if(this.status!==this.wsImpl.OPEN)return[3,4];this.clearMaxConnectTimeout(),this.closedByUser=!1,this.eventEmitter.emit(this.reconnecting?"reconnecting":"connecting"),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.connectionParams()];case 2:return t=r.sent(),this.sendMessage(void 0,b.default.GQL_CONNECTION_INIT,t),this.flushUnsentMessagesQueue(),[3,4];case 3:return e=r.sent(),this.sendMessage(void 0,b.default.GQL_CONNECTION_ERROR,e),this.flushUnsentMessagesQueue(),[3,4];case 4:return[2]}}))}))},this.client.onclose=function(){e.closedByUser||e.close(!1,!1)},this.client.onerror=function(t){e.eventEmitter.emit("error",t)},this.client.onmessage=function(t){var r=t.data;e.processReceivedData(r)}},t.prototype.processReceivedData=function(t){var e,r;try{r=(e=JSON.parse(t)).id}catch(e){throw new Error("Message must be JSON-parseable. Got: "+t)}if(-1===[b.default.GQL_DATA,b.default.GQL_COMPLETE,b.default.GQL_ERROR].indexOf(e.type)||this.operations[r])switch(e.type){case b.default.GQL_CONNECTION_ERROR:this.connectionCallback&&this.connectionCallback(e.payload);break;case b.default.GQL_CONNECTION_ACK:this.eventEmitter.emit(this.reconnecting?"reconnected":"connected",e.payload),this.reconnecting=!1,this.backoff.reset(),this.maxConnectTimeGenerator.reset(),this.connectionCallback&&this.connectionCallback();break;case b.default.GQL_COMPLETE:var i=this.operations[r].handler;delete this.operations[r],i.call(this,null,null);break;case b.default.GQL_ERROR:this.operations[r].handler(this.formatErrors(e.payload),null),delete this.operations[r];break;case b.default.GQL_DATA:var o=e.payload.errors?n(n({},e.payload),{errors:this.formatErrors(e.payload.errors)}):e.payload;this.operations[r].handler(null,o);break;case b.default.GQL_CONNECTION_KEEP_ALIVE:var a=void 0===this.wasKeepAliveReceived;this.wasKeepAliveReceived=!0,a&&this.checkConnection(),this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnection()),this.checkConnectionIntervalId=setInterval(this.checkConnection.bind(this),this.wsTimeout);break;default:throw new Error("Invalid message type!")}else this.unsubscribe(r)},t.prototype.unsubscribe=function(t){this.operations[t]&&(delete this.operations[t],this.setInactivityTimeout(),this.sendMessage(t,b.default.GQL_STOP,void 0))},t}();e.SubscriptionClient=y}).call(this,r("c8ba"))},"642a":function(t,e,r){var n=r("966f"),i=r("3bb4"),o=r("20ec");t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},"656b":function(t,e,r){var n=r("e2e4"),i=r("f4d6");t.exports=function(t,e){for(var r=0,o=(e=n(e,t)).length;null!=t&&r0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function l(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function p(){for(var t=[],e=0;e{const n=i.key(t)||i.value(e),a=r.some(e=>e.test(t))||o.some(t=>t.test(e));return n||a};return{map:e=>n(e).map((function(e){a(this.key,e)&&this.update(t)})),forEach:e=>{n(e).forEach((function(e){a(this.key,e)&&this.update(t)}))}}}},a190:function(t,e){t.exports={functional:!0,render(t,e){const{_c:r,_v:n,data:i,children:o=[]}=e,{class:a,staticClass:s,style:c,staticStyle:u,attrs:l={},...p}=i;return r("svg",{class:[a,s],style:[c,u],attrs:Object.assign({"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"},l),...p},o.concat([r("path",{attrs:{fill:"currentColor",d:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"}})]))}}},a2be:function(t,e,r){var n=r("d612"),i=r("4284"),o=r("c584");t.exports=function(t,e,r,a,s,c){var u=1&r,l=t.length,p=e.length;if(l!=p&&!(u&&p>l))return!1;var d=c.get(t),f=c.get(e);if(d&&f)return d==e&&f==t;var h=-1,m=!0,v=2&r?new n:void 0;for(c.set(t,e),c.set(e,t);++h1,i=!1,o=arguments[1],a=o;return new r((function(r){return e.subscribe({next:function(e){var o=!i;if(i=!0,!o||n)try{a=t(a,e)}catch(t){return r.error(t)}else a=e},error:function(t){r.error(t)},complete:function(){if(!i&&!n)return r.error(new TypeError("Cannot reduce an empty sequence"));r.next(a),r.complete()}})}))}},{key:"concat",value:function(){for(var t=this,e=arguments.length,r=new Array(e),n=0;n=0&&i.splice(t,1),a()}});i.push(o)},error:function(t){n.error(t)},complete:function(){a()}});function a(){o.closed&&0===i.length&&n.complete()}return function(){i.forEach((function(t){return t.unsubscribe()})),o.unsubscribe()}}))}},{key:l,value:function(){return this}}],[{key:"from",value:function(e){var r="function"==typeof this?this:t;if(null==e)throw new TypeError(e+" is not an object");var n=d(e,l);if(n){var i=n.call(e);if(Object(i)!==i)throw new TypeError(i+" is not an object");return function(t){return t instanceof x}(i)&&i.constructor===r?i:new r((function(t){return i.subscribe(t)}))}if(s("iterator")&&(n=d(e,u)))return new r((function(t){m((function(){if(!t.closed){var r=!0,i=!1,o=void 0;try{for(var a,s=n.call(e)[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var c=a.value;if(t.next(c),t.closed)return}}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}t.complete()}}))}));if(Array.isArray(e))return new r((function(t){m((function(){if(!t.closed){for(var r=0;r2)return"[Array]";for(var r=Math.min(10,t.length),n=t.length-r,i=[],o=0;o1&&i.push("... ".concat(n," more items")),"["+i.join(", ")+"]"}(t,r);return function(t,e){var r=Object.keys(t);return 0===r.length?"{}":e.length>2?"["+function(t){var e=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if("Object"===e&&"function"==typeof t.constructor){var r=t.constructor.name;if("string"==typeof r&&""!==r)return r}return e}(t)+"]":"{ "+r.map((function(r){return r+": "+a(t[r],e)})).join(", ")+" }"}(t,r)}(t,e);default:return String(t)}}function s(t){var e=t[String(n.a)];return"function"==typeof e?e:"function"==typeof t.inspect?t.inspect:void 0}},b045:function(t,e){t.exports={functional:!0,render(t,e){const{_c:r,_v:n,data:i,children:o=[]}=e,{class:a,staticClass:s,style:c,staticStyle:u,attrs:l={},...p}=i;return r("svg",{class:[a,s],style:[c,u],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},l),...p},o.concat([r("path",{attrs:{"fill-rule":"evenodd",d:"M8 16A8 8 0 118 0a8 8 0 010 16zM6.989 3v2.002h2V3h-2zM7 13h2V7H7a405.483 405.483 0 000 6z"}})]))}}},b047:function(t,e){t.exports=function(t){return function(e){return t(e)}}},b1e5:function(t,e,r){var n=r("a994"),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,o,a,s){var c=1&r,u=n(t),l=u.length;if(l!=n(e).length&&!c)return!1;for(var p=l;p--;){var d=u[p];if(!(c?d in e:i.call(e,d)))return!1}var f=s.get(t),h=s.get(e);if(f&&h)return f==e&&h==t;var m=!0;s.set(t,e),s.set(e,t);for(var v=c;++p-1&&t%1==0&&t<=9007199254740991}},b2a0:function(t,e){t.exports={functional:!0,render(t,e){const{_c:r,_v:n,data:i,children:o=[]}=e,{class:a,staticClass:s,style:c,staticStyle:u,attrs:l={},...p}=i;return r("svg",{class:[a,s],style:[c,u],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},l),...p},o.concat([r("path",{attrs:{"fill-rule":"evenodd",d:"M5.362 8.44l3-3.027L3.618.626A6.32 6.32 0 0110.86 1.88c1.958 1.977 2.373 4.923 1.243 7.31L16 13.126V16h-3.15l-3.745-3.78a6.32 6.32 0 01-7.242-1.256C-.095 8.987-.51 6.04.62 3.654L5.362 8.44z"}})]))}}},b4c0:function(t,e,r){var n=r("cb5a");t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},b5a7:function(t,e,r){var n=r("0b07")(r("2b3e"),"DataView");t.exports=n},b692:function(t,e){t.exports={functional:!0,render(t,e){const{_c:r,_v:n,data:i,children:o=[]}=e,{class:a,staticClass:s,style:c,staticStyle:u,attrs:l={},...p}=i;return r("svg",{class:[a,s],style:[c,u],attrs:Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},l),...p},o.concat([r("path",{attrs:{"fill-rule":"evenodd",d:"M7 6h4V2l5 6-5 6v-4H7v2h2v4H0V0h9v4H7v2zm0 0V2H2v12h5v-4H4V6h3z"}})]))}}},ba10:function(t,e,r){"use strict";var n=Object.prototype.hasOwnProperty,i="~";function o(){}function a(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function s(t,e,r,n,o){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new a(r,n||t,o),c=i?i+e:e;return t._events[c]?t._events[c].fn?t._events[c]=[t._events[c],s]:t._events[c].push(s):(t._events[c]=s,t._eventsCount++),t}function c(t,e){0==--t._eventsCount?t._events=new o:delete t._events[e]}function u(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),u.prototype.eventNames=function(){var t,e,r=[];if(0===this._eventsCount)return r;for(e in t=this._events)n.call(t,e)&&r.push(i?e.slice(1):e);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(t)):r},u.prototype.listeners=function(t){var e=i?i+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,o=r.length,a=new Array(o);n ".length,s=void 0;e&&n++<5&&!("html"===(s=o(e))||n>1&&i+r.length*a+s.length>=80);)r.push(s),i+=s.length,e=e.parentNode;return r.reverse().join(" > ")}catch(t){return""}}function o(t){var e,r,i,o,a,s=t,c=[];if(!s||!s.tagName)return"";if(c.push(s.tagName.toLowerCase()),s.id&&c.push("#"+s.id),(e=s.className)&&Object(n.k)(e))for(r=e.split(/\s+/),a=0;a-1&&t%1==0&&t=0;n--){var i=t[n];"."===i?t.splice(n,1):".."===i?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}function n(t,e){if(t.filter)return t.filter(e);for(var r=[],n=0;n=-1&&!i;o--){var a=o>=0?arguments[o]:t.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(e=a+"/"+e,i="/"===a.charAt(0))}return(i?"/":"")+(e=r(n(e.split("/"),(function(t){return!!t})),!i).join("/"))||"."},e.normalize=function(t){var o=e.isAbsolute(t),a="/"===i(t,-1);return(t=r(n(t.split("/"),(function(t){return!!t})),!o).join("/"))||o||(t="."),t&&a&&(t+="/"),(o?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(n(t,(function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,r){function n(t){for(var e=0;e=0&&""===t[r];r--);return e>r?[]:t.slice(e,r-e+1)}t=e.resolve(t).substr(1),r=e.resolve(r).substr(1);for(var i=n(t.split("/")),o=n(r.split("/")),a=Math.min(i.length,o.length),s=a,c=0;c=1;--o)if(47===(e=t.charCodeAt(o))){if(!i){n=o;break}}else i=!1;return-1===n?r?"/":".":r&&1===n?"/":t.slice(0,n)},e.basename=function(t,e){var r=function(t){"string"!=typeof t&&(t+="");var e,r=0,n=-1,i=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!i){r=e+1;break}}else-1===n&&(i=!1,n=e+1);return-1===n?"":t.slice(r,n)}(t);return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r},e.extname=function(t){"string"!=typeof t&&(t+="");for(var e=-1,r=0,n=-1,i=!0,o=0,a=t.length-1;a>=0;--a){var s=t.charCodeAt(a);if(47!==s)-1===n&&(i=!1,n=a+1),46===s?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1);else if(!i){r=a+1;break}}return-1===e||-1===n||0===o||1===o&&e===n-1&&e===r+1?"":t.slice(e,n)};var i="b"==="ab".substr(-1)?function(t,e,r){return t.substr(e,r)}:function(t,e,r){return e<0&&(e=t.length+e),t.substr(e,r)}}).call(this,r("4362"))},e072:function(t,e,r){t.exports=function(t){"use strict";var e=function(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}(t),r={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(t){return t+"º"}};return e.default.locale(r,null,!0),r}(r("5a0c"))},e24b:function(t,e,r){var n=r("49f4"),i=r("1efc"),o=r("bbc0"),a=r("7a48"),s=r("2524");function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e"}try{s.currentTarget=Object(o.c)(a.currentTarget)?Object(i.a)(a.currentTarget):Object.prototype.toString.call(a.currentTarget)}catch(t){s.currentTarget=""}for(var n in"undefined"!=typeof CustomEvent&&Object(o.g)(t,CustomEvent)&&(s.detail=a.detail),a)Object.prototype.hasOwnProperty.call(a,n)&&(s[n]=a);return s}return t}function d(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}function f(t,e,r){void 0===e&&(e=3),void 0===r&&(r=102400);var n=v(t,e);return d(n)>r?f(t,e-1,r):n}function h(e,r){return"domain"===r&&e&&"object"==typeof e&&e._events?"[Domain]":"domainEmitter"===r?"[DomainEmitter]":void 0!==t&&e===t?"[Global]":"undefined"!=typeof window&&e===window?"[Window]":"undefined"!=typeof document&&e===document?"[Document]":Object(o.l)(e)?"[SyntheticEvent]":"number"==typeof e&&e!=e?"[NaN]":void 0===e?"[undefined]":"function"==typeof e?"[Function: "+Object(s.a)(e)+"]":"symbol"==typeof e?"["+String(e)+"]":"bigint"==typeof e?"[BigInt: "+String(e)+"]":e}function m(t,e,r,n){if(void 0===r&&(r=1/0),void 0===n&&(n=new a.a),0===r)return function(t){var e=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===e)return"[Object]";if("[object Array]"===e)return"[Array]";var r=h(t);return Object(o.i)(r)?r:e}(e);if(null!=e&&"function"==typeof e.toJSON)return e.toJSON();var i=h(e,t);if(Object(o.i)(i))return i;var s=p(e),c=Array.isArray(e)?[]:{};if(n.memoize(e))return"[Circular ~]";for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(c[u]=m(u,s[u],r-1,n));return n.unmemoize(e),c}function v(t,e){try{return JSON.parse(JSON.stringify(t,(function(t,r){return m(t,r,e)})))}catch(t){return"**non-serializable**"}}function g(t,e){void 0===e&&(e=40);var r=Object.keys(p(t));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=e)return Object(c.d)(r[0],e);for(var n=r.length;n>0;n--){var i=r.slice(0,n).join(", ");if(!(i.length>e))return n===r.length?i:Object(c.d)(i,e)}return""}function b(t){var e,r;if(Object(o.h)(t)){var i=t,a={};try{for(var s=Object(n.i)(Object.keys(i)),c=s.next();!c.done;c=s.next()){var u=c.value;void 0!==i[u]&&(a[u]=b(i[u]))}}catch(t){e={error:t}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}return a}return Array.isArray(t)?t.map(b):t}}).call(this,r("c8ba"))},eac5:function(t,e){var r=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},ec69:function(t,e,r){var n=r("6fcd"),i=r("03dd"),o=r("30c9");t.exports=function(t){return o(t)?n(t):i(t)}},edfa:function(t,e){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},ef5d:function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},ef7a:function(t,e,r){"use strict";r.r(e);var n=r("945a");for(var i in n)["default"].indexOf(i)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(i)},efb6:function(t,e,r){var n=r("5e2e");t.exports=function(){this.__data__=new n,this.size=0}},f153:function(t,e,r){"use strict";r.r(e);var n=r("10f4");for(var i in n)["default"].indexOf(i)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(i)},f404:function(t,e,r){"use strict";function n(t){switch(Object.prototype.toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return m(t,Error)}}function i(t){return"[object ErrorEvent]"===Object.prototype.toString.call(t)}function o(t){return"[object DOMError]"===Object.prototype.toString.call(t)}function a(t){return"[object DOMException]"===Object.prototype.toString.call(t)}function s(t){return"[object String]"===Object.prototype.toString.call(t)}function c(t){return null===t||"object"!=typeof t&&"function"!=typeof t}function u(t){return"[object Object]"===Object.prototype.toString.call(t)}function l(t){return"undefined"!=typeof Event&&m(t,Event)}function p(t){return"undefined"!=typeof Element&&m(t,Element)}function d(t){return"[object RegExp]"===Object.prototype.toString.call(t)}function f(t){return Boolean(t&&t.then&&"function"==typeof t.then)}function h(t){return u(t)&&"nativeEvent"in t&&"preventDefault"in t&&"stopPropagation"in t}function m(t,e){try{return t instanceof e}catch(t){return!1}}r.d(e,"d",(function(){return n})),r.d(e,"e",(function(){return i})),r.d(e,"a",(function(){return o})),r.d(e,"b",(function(){return a})),r.d(e,"k",(function(){return s})),r.d(e,"i",(function(){return c})),r.d(e,"h",(function(){return u})),r.d(e,"f",(function(){return l})),r.d(e,"c",(function(){return p})),r.d(e,"j",(function(){return d})),r.d(e,"m",(function(){return f})),r.d(e,"l",(function(){return h})),r.d(e,"g",(function(){return m}))},f4d6:function(t,e,r){var n=r("ffd6");t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},f608:function(t,e,r){var n=r("6747"),i=r("ffd6"),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!i(t))||a.test(t)||!o.test(t)||null!=e&&t in Object(e)}},f6fd:function(t,e){!function(t){var e="currentScript",r=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(n){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(n.stack)||[!1])[1];for(t in r)if(r[t].src==e||"interactive"==r[t].readyState)return r[t];return null}}})}(document)},f71e:function(t,e,r){"use strict";t.exports=function(t,e){e||(e={}),"function"==typeof e&&(e={cmp:e});var r="boolean"==typeof e.cycles&&e.cycles,n=e.cmp&&function(t){return function(e){return function(r,n){var i={key:r,value:e[r]},o={key:n,value:e[n]};return t(i,o)}}}(e.cmp),i=[];return function t(e){if(e&&e.toJSON&&"function"==typeof e.toJSON&&(e=e.toJSON()),void 0!==e){if("number"==typeof e)return isFinite(e)?""+e:"null";if("object"!=typeof e)return JSON.stringify(e);var o,a;if(Array.isArray(e)){for(a="[",o=0;o"}return t.event_id||""}function u(t){var e=o();if(!("console"in e))return t();var r=e.console,n={};["debug","info","warn","error","log","assert"].forEach((function(t){t in e.console&&r[t].__sentry_original__&&(n[t]=r[t],r[t]=r[t].__sentry_original__)}));var i=t();return Object.keys(n).forEach((function(t){r[t]=n[t]})),i}function l(t,e,r){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].value=t.exception.values[0].value||e||"",t.exception.values[0].type=t.exception.values[0].type||r||"Error"}function p(t,e){void 0===e&&(e={});try{t.exception.values[0].mechanism=t.exception.values[0].mechanism||{},Object.keys(e).forEach((function(r){t.exception.values[0].mechanism[r]=e[r]}))}catch(t){}}function d(){try{return document.location.href}catch(t){return""}}function f(t,e){if(!e)return 6e4;var r=parseInt(""+e,10);if(!isNaN(r))return 1e3*r;var n=Date.parse(""+e);return isNaN(n)?6e4:n-t}}).call(this,r("c8ba"))},f80d:function(t,e,r){"use strict";(function(t,n){function i(){return"[object process]"===Object.prototype.toString.call(void 0!==t?t:0)}function o(t,e){return t.require(e)}r.d(e,"b",(function(){return i})),r.d(e,"a",(function(){return o}))}).call(this,r("4362"),r("dd40")(t))},f9af:function(t,e,r){var n=r("6e8b");n.__esModule&&(n=n.default),"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=r("35d6").default;t.exports.__inject__=function(t){i("296e8e3a",n,t)}},f9ce:function(t,e,r){var n=r("ef5d"),i=r("e3f8"),o=r("f608"),a=r("f4d6");t.exports=function(t){return o(t)?n(a(t)):i(t)}},fac5:function(t,e,r){(e=r("24fb")(!1)).push([t.i,".unraid_sc_loader_2,.unraid_sc_loader_4{-webkit-animation:mark_2 1.5s ease infinite;animation:mark_2 1.5s ease infinite}.unraid_sc_loader_3{-webkit-animation:mark_3 1.5s ease infinite;animation:mark_3 1.5s ease infinite}.unraid_sc_loader_6,.unraid_sc_loader_8{-webkit-animation:mark_6 1.5s ease infinite;animation:mark_6 1.5s ease infinite}.unraid_sc_loader_7{-webkit-animation:mark_7 1.5s ease infinite;animation:mark_7 1.5s ease infinite}@-webkit-keyframes mark_2{50%{-webkit-transform:translateY(-40px);transform:translateY(-40px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes mark_2{50%{-webkit-transform:translateY(-40px);transform:translateY(-40px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes mark_3{50%{-webkit-transform:translateY(-62px);transform:translateY(-62px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes mark_3{50%{-webkit-transform:translateY(-62px);transform:translateY(-62px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes mark_6{50%{-webkit-transform:translateY(40px);transform:translateY(40px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes mark_6{50%{-webkit-transform:translateY(40px);transform:translateY(40px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes mark_7{50%{-webkit-transform:translateY(62px);transform:translateY(62px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes mark_7{50%{-webkit-transform:translateY(62px);transform:translateY(62px)}to{-webkit-transform:translateY(0);transform:translateY(0)}}",""]),t.exports=e},fba5:function(t,e,r){var n=r("cb5a");t.exports=function(t){return n(this.__data__,t)>-1}},fbdd:function(t,e,r){"use strict";r.d(e,"d",(function(){return i})),r.d(e,"c",(function(){return o})),r.d(e,"b",(function(){return a})),r.d(e,"a",(function(){return s}));var n=r("f404");function i(t,e){return void 0===e&&(e=0),"string"!=typeof t||0===e||t.length<=e?t:t.substr(0,e)+"..."}function o(t,e){var r=t,n=r.length;if(n<=150)return r;e>n&&(e=n);var i=Math.max(e-60,0);i<5&&(i=0);var o=Math.min(i+140,n);return o>n-5&&(o=n),o===n&&(i=Math.max(o-140,0)),r=r.slice(i,o),i>0&&(r="'{snip} "+r),o/dev/null|sed -n 's/ *commonName *= //p'") : ""; $isLEcert = $certPresent && preg_match('/.*\.unraid\.net$/', $certSubject); +$isRegistered = !empty($remote['username']); // signed in to unraid.net or not + if ($isLEcert) { exec("openssl x509 -checkend 2592000 -noout -in $certFile 2>/dev/null", $arrout, $retval_expired); $prot = $$ethX['PROTOCOL:0']=='ipv6' ? '-6' : '-4'; @@ -65,10 +67,11 @@ if ($isLEcert) { } $provisionlabel = $isLEcert ? _('Renew') : _('Provision'); -$disabled_provision = $keyfile===false || ($isLEcert && $retval_expired===0) ? 'disabled' : ''; -$disabled_updatedns = $keyfile!==false && $isLEcert ? '' : 'disabled'; +$disabled_provision = !$isRegistered || $keyfile===false || ($isLEcert && $retval_expired===0) ? 'disabled' : ''; +$disabled_updatedns = $isRegistered && $keyfile!==false && $isLEcert ? '' : 'disabled'; $disabled_delete = $certPresent && $var['USE_SSL']!='auto' ? '' : 'disabled'; -$disabled_auto = $isLEcert && !$dnsRebindingProtection && $dnsValid ? '' : 'disabled'; +$disabled_yes = (!$isRegistered && $isLEcert) || $keyfile===false ? 'disabled' : ''; +$disabled_auto = $isRegistered && $isLEcert && !$dnsRebindingProtection && $dnsValid ? '' : 'disabled'; // Get ports in use $portsInUse = []; @@ -83,7 +86,19 @@ foreach ($output as $line) { } ?>