5 lines
877 KiB
JavaScript
5 lines
877 KiB
JavaScript
/* Copyright (c) 2026 Session Buddy - All Rights Reserved */
|
|
/* The contents of this file may not be modified, copied, and/or distributed, in whole or in part, without the express permission of the author, reachable at support@sessionbuddy.com */
|
|
|
|
/*! For license information please see experiments.bundle.js.LICENSE.txt */
|
|
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=271)}([function(e,t,n){"use strict";e.exports=n(192)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(26);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},function(e,t,n){"use strict";function r(e,t,n,r,o,i,a){try{var c=e[i](a),u=c.value}catch(l){return void n(l)}c.done?t(u):Promise.resolve(u).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function c(e){r(a,o,i,c,u,"next",e)}function u(e){r(a,o,i,c,u,"throw",e)}c(void 0)}))}}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";var r=n(120);var o=n(137),i=n(91);function a(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(i.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return y})),n.d(t,"e",(function(){return g})),n.d(t,"n",(function(){return w})),n.d(t,"l",(function(){return x})),n.d(t,"k",(function(){return O})),n.d(t,"x",(function(){return k})),n.d(t,"i",(function(){return S})),n.d(t,"h",(function(){return E})),n.d(t,"j",(function(){return C})),n.d(t,"m",(function(){return T})),n.d(t,"c",(function(){return I})),n.d(t,"f",(function(){return P})),n.d(t,"d",(function(){return L})),n.d(t,"g",(function(){return _})),n.d(t,"w",(function(){return M})),n.d(t,"s",(function(){return A})),n.d(t,"t",(function(){return F})),n.d(t,"E",(function(){return z})),n.d(t,"D",(function(){return U})),n.d(t,"B",(function(){return G})),n.d(t,"C",(function(){return V})),n.d(t,"p",(function(){return K})),n.d(t,"q",(function(){return Y})),n.d(t,"r",(function(){return Q})),n.d(t,"u",(function(){return X})),n.d(t,"o",(function(){return Z})),n.d(t,"y",(function(){return J})),n.d(t,"A",(function(){return ee})),n.d(t,"z",(function(){return te})),n.d(t,"H",(function(){return ne})),n.d(t,"v",(function(){return ie})),n.d(t,"F",(function(){return ae})),n.d(t,"G",(function(){return ce}));var r=n(67),o=n(26),i=n(1),a=n(22),c=n(10),u=n(87),l=n(12),s=n(77),f=n(24),d=n(88),p=n(151),h=n(61),v=["clientId"],b=["clientId"],m=1e4,y=20,g=200,w=30,x=60,O=100,j=Object(u.a)(),k="nxs.theme",S=["title","type","state","incognito","top","left","width","height","deleted"],E=["url","title","titleOriginal","favIconUrl","description","groupId","active","pinned","deleted"],C="local-client",T=s.a,I=50,P=50,L=30,_=30,R={window:{type:"normal",state:"normal",top:0,left:0},tab:{status:"complete",groupId:-1}},N={folder:{type:"normal",state:"normal",top:0,left:0},link:{groupId:-1}};function M(){return!!Object(h.a)()&&j.ext.isNxsExtensionId(Object(h.a)())}function A(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.relative,o=n.bare,i=n.noun;if(!e)return"";var a=t&&+e<+t;return c.a.date(a?t:e,o?{format:r?"relative":"long"}:{format:r?"relative":"long",noun:i,verb:a?"updated":"created"})}function D(e){return"tabs"in e}function F(e){var t;return null!==(t=null===e||void 0===e?void 0:e.reduce((function(e,t){return e+t.tabs.length}),0))&&void 0!==t?t:0}function z(e){return Object(f.d)(Object(f.c)(e,B))}function B(e,t){return!1!==e&&(!H(t)||e!==R.window[t])}function H(e){return e in R.window}function U(e){return Object(f.d)(Object(f.c)(e,W))}function W(e,t){return!1!==e&&(!("favIconUrl"===t&&!e)&&((!q(t)||e!==R.tab[t])&&!!("mutedInfo"!==t||e&&"object"===typeof e&&"muted"in e&&e.muted)))}function q(e){return e in R.tab}function G(e){var t,n=e.groups,r=e.unitIds,c=e.groupIds,u=e.mapGroup,l=e.mapUnit,s=!r.length&&!c.length,f=[],d=Object(a.a)(n);try{for(d.s();!(t=d.n()).done;){var p=t.value;if(!p.deleted)if(s||c.includes(p.id))f.push(u(p));else{var h=X(p).filter((function(e){return!e.deleted&&r.includes(e.id)})).map((function(e){return l(e)}));if(h.length){var v=u(p,!0);f.push(Object(i.a)(Object(i.a)({},v),{},Object(o.a)({},D(v)?"tabs":"links",h)))}}}}catch(b){d.e(b)}finally{d.f()}return f}function V(e,t){return G(Object(i.a)(Object(i.a)({groups:e},t),{},{mapGroup:d.b,mapUnit:d.b}))}function K(e,t){return $(e,t)||{}}function $(e,t){for(var n=0;n<e.length;n++)for(var r=e[n],o=X(r),i=0;i<o.length;i++)if(t(o[i],r,i,n))return{unit:o[i],group:r,unitIdx:i,groupIdx:n}}function Y(e){if(!e)return[];var t=[];return $(e,(function(e,n,r,o){t.push({unit:e,group:n,unitIdx:r,groupIdx:o})})),t}function Q(e){return e?e.flatMap((function(e){return e?X(e):[]})):[]}function X(e){var t;return null!==(t=D(e)?e.tabs:e.links)&&void 0!==t?t:[]}function Z(e,t){var n=Object(i.a)(Object(i.a)({},e),Object(p.a)(e,t));return n.title===n.titleOriginal&&delete n.titleOriginal,n}function J(e,t){var n,r=Object(f.c)(e,(function(e,n){return(!t||"loaded"!==n)&&(!t||"loading"!==n)&&!1!==e&&null!=e&&("title"!==n||""!==e)&&("description"!==n||""!==e)}));return r.folders=(null!==(n=r.folders)&&void 0!==n?n:[]).map((function(e){return ee(e,t)})),r}function ee(e,t){var n,r=Object(f.c)(e,(function(e,n){return(!t||"_setText"!==n)&&(!t||"titleSplit"!==n)&&(!t||"sourceId"!==n)&&!1!==e&&null!=e&&("title"!==n||""!==e)&&("description"!==n||""!==e)&&(!function(e){return e in N.folder}(n)||e!==N.folder[n])}));r.links=Object(l.d)((null!==(n=r.links)&&void 0!==n?n:[]).map((function(e){return function(e,t){var n=Object(f.c)(e,(function(e,n){return(!t||"titleSplit"!==n)&&(!t||"urlSplit"!==n)&&!1!==e&&null!=e&&("title"!==n||""!==e)&&("description"!==n||""!==e)&&("userDescription"!==n||""!==e)&&("favIconUrl"!==n||""!==e)&&(!function(e){return e in N.link}(n)||e!==N.link[n])}));n.title&&n.title!==n.titleOriginal||delete n.titleOriginal;n.url||(n.url="");return n}(e,t)})),(function(e){return!!e.pinned}));var o=r.links.findLast((function(e){return e.active}));return o&&r.links.forEach((function(e){e.active&&e!==o&&delete e.active})),r}function te(e,t){var n,r=Object(f.c)(e,(function(e,n){return(!t||"loaded"!==n)&&(!t||"loading"!==n)&&!1!==e&&null!=e}));return r.windows=(null!==(n=r.windows)&&void 0!==n?n:[]).map((function(e){return function(e,t){var n,r,o=Object(f.c)(e,(function(e,n){return(!t||"_setText"!==n)&&(!t||"titleSplit"!==n)&&(!t||"sourceId"!==n)&&!1!==e&&null!=e&&("title"!==n||""!==e)&&(!H(n)||e!==R.window[n])}));o.tabs=Object(l.d)((null!==(n=null===(r=o.tabs)||void 0===r?void 0:r.filter((function(e){return e.url})))&&void 0!==n?n:[]).map((function(e){return function(e,t){var n=Object(f.c)(e,(function(e,n){return(!t||"titleSplit"!==n)&&(!t||"urlSplit"!==n)&&!1!==e&&null!=e&&("title"!==n||""!==e)&&("description"!==n||""!==e)&&("favIconUrl"!==n||""!==e)&&(!q(n)||e!==R.tab[n])}));n.title&&n.title!==n.titleOriginal||delete n.titleOriginal;n.url||(n.url="");return n}(e,t)})),(function(e){return!!e.pinned}));var i=o.tabs.findLast((function(e){return e.active}));i&&o.tabs.forEach((function(e){e.active&&e!==i&&delete e.active}));return o}(e,t)})).filter((function(e){return e.tabs.length})),r}function ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!re(e[n],t[n]))return!1;return!0}function re(e,t){if(e.title!==t.title||e.type!==t.type||e.incognito!==t.incognito)return!1;if(e.tabs.length!==t.tabs.length)return!1;for(var n=0;n<e.tabs.length;n++)if(!oe(e.tabs[n],t.tabs[n]))return!1;return!0}function oe(e,t){return e.url===t.url&&e.pinned===t.pinned&&e.groupId===t.groupId}function ie(e,t){return"dark"===e||"default"===e&&t}function ae(e){var t=J(e,!0);t.clientId;return Object(r.a)(t,v)}function ce(e){e.clientId;return Object(r.a)(e,b)}},function(e,t,n){"use strict";n.d(t,"q",(function(){return f})),n.d(t,"y",(function(){return d})),n.d(t,"s",(function(){return p})),n.d(t,"v",(function(){return h})),n.d(t,"w",(function(){return v})),n.d(t,"t",(function(){return b})),n.d(t,"m",(function(){return m})),n.d(t,"g",(function(){return y})),n.d(t,"f",(function(){return g})),n.d(t,"o",(function(){return w})),n.d(t,"e",(function(){return x})),n.d(t,"l",(function(){return O})),n.d(t,"k",(function(){return j})),n.d(t,"n",(function(){return k})),n.d(t,"u",(function(){return S})),n.d(t,"r",(function(){return E})),n.d(t,"j",(function(){return C})),n.d(t,"c",(function(){return P})),n.d(t,"a",(function(){return _})),n.d(t,"b",(function(){return N})),n.d(t,"d",(function(){return M})),n.d(t,"i",(function(){return A})),n.d(t,"h",(function(){return D})),n.d(t,"x",(function(){return F})),n.d(t,"p",(function(){return z}));var r=n(1),o=n(12),i=n(24),a=n(88),c=n(37),u=n(5),l=n(29),s=n(36);function f(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"unavailable";if(!E(t)){var r=m(e,t,!0);r?r.invalid=n:e.invalidSets=Object(o.b)(e.invalidSets,[{id:t,invalid:n}],a.a)}}function d(e,t){if(!E(t)){var n=m(e,t,!0);(null===n||void 0===n?void 0:n.invalid)?delete n.invalid:e.invalidSets=Object(o.j)(e.invalidSets,(function(e){return e.id===t}))}}function p(e,t){if(E(t))return!1;var n=m(e,t,!0);return n?!!n.invalid:e.invalidSets.some((function(e){return e.id===t}))}function h(e,t){if(!E(t)){var n=m(e,t,!0);n?n.loading=!0:e.loadingNewSetIds=F(e.loadingNewSetIds,[t],!0)}}function v(e,t){if(!E(t)){var n=m(e,t,!0);n&&(n.loading=!1),e.loadingNewSetIds=Object(o.j)(e.loadingNewSetIds,(function(e){return e===t}))}}function b(e,t){if(E(t))return!1;var n=m(e,t,!0);return n?!!n.loading:e.loadingNewSetIds.includes(t)}function m(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t)return y(e,t,n)||k(e,t,n)||g(e,t)}function y(e,t){if(t)return arguments.length>2&&void 0!==arguments[2]&&arguments[2]||!p(e,t)?e.collections.sets[t]:void 0}function g(e,t){if(t)return e.clientHistory.sets[t]}function w(e){if(1!==e.selectedSetIds.length)return null;var t=e.selectedSetIds[0],n=y(e,t);return n?S(n)||b(e,t)?null:n:null}function x(e,t){for(var n=e.selectedSetIds.length-1;n>=0;n--){var r=y(e,e.selectedSetIds[n]);if(r&&(!t||t(r)))return r}}function O(e){var t,n,r=-1;do{t=e.collections.navSetIds.at(r--),n=y(e,t)}while(t&&!n);return n}function j(e){var t,n,r=-1;do{t=e.clientHistory.navSetIds.at(r--),n=g(e,t)}while(t&&!n);return n}function k(e,t){if(t)return arguments.length>2&&void 0!==arguments[2]&&arguments[2]||!p(e,t)?e.remoteClients.sets[t]:void 0}function S(e){return!e||Object(i.h)(e,"folders")&&Object(i.h)(e,"windows")}function E(e){return e===u.j||e===l.a.id}function C(e,t,n){return+((null===t||void 0===t?void 0:t[n])||0)-+((null===e||void 0===e?void 0:e[n])||0)}var T=new Map,I=new Map;function P(e,t,n,o){var a;o?T.has(e.id)?a=T.get(e.id):(a=Object(c.c)(),T.set(e.id,a)):a=Object(c.c)();var l=Object(u.E)(e),s=Object(r.a)(Object(r.a)({},Object(i.i)(l,u.i)),{},{id:a});return n&&(s.sourceId=e.id),Object(r.a)(Object(r.a)({},s),{},{links:t||!l.tabs?[]:l.tabs.filter((function(e){return!e.deleted})).map((function(e){return L(e,o)}))})}function L(e,t){var n;t?I.has(e.id)?n=I.get(e.id):(n=Object(c.c)(),I.set(e.id,n)):n=Object(c.c)();var o=Object(u.D)(e);return Object(r.a)(Object(r.a)({},Object(i.i)(o,u.h)),{},{id:n})}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.clearLinks,o=t.includeSourceId,a=t.preserveId,u=Object(i.i)(e,["title","description","icon","type","state","incognito","top","left","width","height","deleted"]),l=Object(r.a)({id:a&&e.id?e.id:Object(c.c)()},u);return o&&(l.sourceId=e.id),Object(r.a)(Object(r.a)({},l),{},{links:n||!e.links?[]:e.links.filter((function(e){return!e.deleted})).map((function(e){return R(e,a)}))})}function R(e,t){var n=Object(i.i)(e,["url","favIconUrl","title","titleOriginal","description","userDescription","groupId","active","pinned","deleted"]);return Object(r.a)({id:t&&e.id?e.id:Object(c.c)()},n)}function N(e){var t=e.folders,n=e.itemSelections,o=void 0===n?{unitIds:[],groupIds:[]}:n,i=e.includeSourceId;return Object(u.B)(Object(r.a)(Object(r.a)({groups:t},o),{},{mapGroup:function(e,t){return _(e,{clearLinks:t,includeSourceId:i})},mapUnit:function(e){return R(e)}}))}function M(e){var t=e.windows,n=e.itemSelections,o=void 0===n?{unitIds:[],groupIds:[]}:n,i=e.includeSourceId;return Object(u.B)(Object(r.a)(Object(r.a)({groups:t},o),{},{mapGroup:function(e,t){return P(e,t,i)},mapUnit:function(e){return L(e)}}))}function A(e){var t=e.multipleSetsAreSelected,n=e.onlyLocalClientIsSelected,r=e.isEventSelected,o=e.isFolders,i=e.itemSelections,a=i.unitIds,c=i.groupIds,u=a.length||c.length;return t?u?"multi-links":"multi":n?r?u?"local-client-history-tabs":"local-client-history":u?"local-client-tabs":"local-client":o?u?"collection-links":"collection":u?"remote-client-tabs":"remote-client"}function D(e){var t=e.combining,n=e.selectedSetCount,r=e.sourceType;return t?{successText:s.a.collectionsCombined(n),failureText:s.a.failedToCombineCollections()}:"local-client"===r||"local-client-tabs"===r||"remote-client"===r||"remote-client-tabs"===r?{successText:s.a.tabsSaved(),failureText:s.a.failedToSaveTabs()}:"collection"===r?{successText:s.a.collectionCloned(),failureText:s.a.failedToCloneCollection()}:{}}function F(e,t,n){var r=Object(o.b)(n?e:void 0,t);return Object(o.f)(e,r)?e:r}function z(e,t){return E(t)?"local-client":y(e,t)?"collection":k(e,t)?"remote-client":void 0}},function(e,t,n){"use strict";var r=n(1),o=n(57),i=n(52),a=n(47),c=n(3),u=n(22),l=n(5),s=n(32),f=n(12);var d={navRemoteClientsLoading:function(e){return e.content.sets.remoteClients.navSetsLoading},navRemoteClientsLoadingLong:function(e){return e.content.sets.remoteClients.navSetsLoadingLong},navRemoteClients:function(e){var t=e.content;return t.sets.remoteClients.navSetIds.map((function(e){return t.sets.remoteClients.sets[e]})).filter(Boolean)},navRemoteClientIds:function(e){return e.content.sets.remoteClients.navSetIds}},p=n(71),h=n(49),v=n(24);n.d(t,"a",(function(){return I})),n.d(t,"c",(function(){return P})),n.d(t,"d",(function(){return L})),n.d(t,"b",(function(){return _}));var b={sets:{selectedSetIds:Object(i.g)(),selectedClientHistoryItemId:Object(h.l)(),localWindows:[],localWindowsInitialized:!1,clientHistory:Object(i.f)(),remoteClients:Object(i.f)(),collections:Object(i.f)(),loadingNewSetIds:[],invalidSets:[],searchTerms:null,filterSearchTerms:null,searchResults:null,searchResultsLoading:!1},items:Object(a.b)()},m=Object(o.b)({name:"content",initialState:b,reducers:{setsSelected:i.q,setsDeselected:i.p,fetchFullSetsStarted:i.d,fetchFullSetsSucceeded:i.e,fetchFullSetsFailed:i.c,selectDuplicateUnits:i.j,selectedSetIdsReset:i.k,setSearchTerms:i.o,setFilterSearchTerms:i.l,setSearchResults:i.m,setSearchResultsLoading:i.n,clearSearch:i.b,itemsSelected:a.h,itemsDeselected:a.f,unitSelectionToggled:a.l,groupSelectionToggled:a.d,unitRangeSelected:a.k,groupRangeSelected:a.c,itemSelectionCleared:a.e,localWindowsChanged:function(e,t){var n=t.payload;e.sets.localWindows=n,e.sets.localWindowsInitialized=!0},localItemsClosed:function(e,t){var n=t.payload,r=n.tabIds,o=void 0===r?[]:r,i=n.winIds,s=void 0===i?[]:i,d=e.sets.localWindows.filter((function(e){var t=e.id;return s.includes(t)}));e.sets.localWindows=Object(f.k)(e.sets.localWindows,d);var p,h=Object(l.r)(e.sets.localWindows).filter((function(e){var t=e.id;return o.includes(t)})),v=Object(u.a)(e.sets.localWindows);try{for(v.s();!(p=v.n()).done;){var b=p.value;b.tabs=Object(f.k)(b.tabs,h)}}catch(w){v.e(w)}finally{v.f()}var m=e.sets.localWindows.filter((function(e){return!e.tabs.length}));e.sets.localWindows=Object(f.k)(e.sets.localWindows,m);var y=[].concat(Object(c.a)(d),Object(c.a)(m)).map((function(e){return e.id})),g=[].concat(Object(c.a)(h),Object(c.a)(Object(l.r)(d))).map((function(e){return e.id}));Object(a.f)(e,{payload:{groupIds:y,unitIds:g}})},localTabIdSwapped:function(e,t){var n=t.payload,r=n.from,o=n.to,i=Object(l.p)(e.sets.localWindows,(function(e){return e.id===r})),a=i.unit;a&&(a.id=o,e.items.selectedUnitIds=Object(f.l)(e.items.selectedUnitIds,r,o))},fetchNavCollectionsStarted:p.h,fetchNavCollectionsLongStarted:p.g,fetchNavCollectionsSucceeded:p.i,fetchNavCollectionsFailed:p.f,navCollectionsNavSetIdsCleared:p.l,navCollectionsLoadingStopped:p.k,saveCollectionsStarted:p.n,saveCollectionsFailed:p.m,deleteCollectionsStarted:p.e,deleteCollectionsFailed:p.d,clientHistoryItemSelected:h.c,fetchFullClientHistoryItemStarted:h.f,fetchFullClientHistoryItemSucceeded:h.g,fetchFullClientHistoryItemFailed:h.e,deleteEventsStarted:h.d,saveEventsStarted:h.q,fetchNavClientHistoryStarted:h.j,fetchNavClientHistoryLongStarted:h.i,fetchNavClientHistorySucceeded:h.k,fetchNavClientHistoryFailed:h.h,navClientHistoryNavSetIdsCleared:h.o,navClientHistoryLoadingStopped:h.n,navClientHistoryRemoveFromSets:h.p}}),y=Object(v.i)(m.actions,["selectDuplicateUnits","setSearchTerms","setFilterSearchTerms","setSearchResults","setSearchResultsLoading","clearSearch","itemsSelected","itemsDeselected","unitSelectionToggled","groupSelectionToggled","unitRangeSelected","groupRangeSelected","itemSelectionCleared","localWindowsChanged","localItemsClosed","localTabIdSwapped","clientHistoryItemSelected"]),g=Object(v.i)(m.actions,i.a),w=Object(i.h)(g),x={findTabs:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n,r){var o={window:[],tab:[]};if(!e.free.length&&!e.window.length&&!e.tab.length)return o;var i,a=r().content,f=Object(u.a)(a.sets.localWindows||[]);try{for(f.s();!(i=f.n()).done;){var d,p=i.value,h=Object(s.a)(p.title,[].concat(Object(c.a)(e.free),Object(c.a)(e.window))),v=0,b=0,m=Object(u.a)(p.tabs||[]);try{for(m.s();!(d=m.n()).done;){var y=d.value,g=Math.pow(Object(s.a)(y.title,[].concat(Object(c.a)(e.free),Object(c.a)(e.window),Object(c.a)(e.tab)))+Object(s.a)(y.url,[].concat(Object(c.a)(e.free),Object(c.a)(e.window),Object(c.a)(e.tab)),"url"),2);g&&(b++,t.excludeTabs||o.tab.push({id:y.id,setId:l.j,text:y.title||y.url,score:g,type:"tab",setTitle:"current session",unit:y}),v+=g)}}catch(w){m.e(w)}finally{m.f()}!h&&!v||t.excludeWindows||o.window.push({id:p.id,setId:l.j,text:p.title,score:h,secondaryScore:v,unitMatchCount:b,type:"window",setTitle:"current session"})}}catch(w){f.e(w)}finally{f.f()}return o}}},O=Object(v.i)(Object(r.a)(Object(r.a)({},m.actions),w),p.b),j=Object(p.j)(O),k=Object(v.i)(m.actions,h.b),S=Object(h.m)(k),E=Object(v.i)(m.actions,a.a),C=Object(a.i)(E),T=Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},x),j),S),C),w),I=Object(r.a)(Object(r.a)({},y),T),P=Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},{localWindows:function(e){return e.content.sets.localWindows},localWindowsInitialized:function(e){return e.content.sets.localWindowsInitialized}}),d),p.o),h.r),i.i),a.j);function L(e,t){return function(n,r){return e(r(),t)}}var _=m.reducer},function(e,t,n){"use strict";var r=n(72),o=n(21),i=n(16);function a(e,t){Object(i.a)(2,arguments);var n=Object(o.a)(e),r=Object(o.a)(t),a=n.getTime()-r.getTime();return a<0?-1:a>0?1:a}function c(e){Object(i.a)(1,arguments);var t=Object(o.a)(e);return function(e){Object(i.a)(1,arguments);var t=Object(o.a)(e);return t.setHours(23,59,59,999),t}(t).getTime()===function(e){Object(i.a)(1,arguments);var t=Object(o.a)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}(t).getTime()}function u(e,t){Object(i.a)(2,arguments);var n,r=Object(o.a)(e),u=Object(o.a)(t),l=a(r,u),s=Math.abs(function(e,t){Object(i.a)(2,arguments);var n=Object(o.a)(e),r=Object(o.a)(t);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}(r,u));if(s<1)n=0;else{1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-l*s);var f=a(r,u)===-l;c(Object(o.a)(e))&&1===s&&1===a(e,u)&&(f=!1),n=l*(s-Number(f))}return 0===n?0:n}var l={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},s="trunc";function f(e,t,n){Object(i.a)(2,arguments);var r,a=function(e,t){return Object(i.a)(2,arguments),Object(o.a)(e).getTime()-Object(o.a)(t).getTime()}(e,t)/1e3;return((r=null===n||void 0===n?void 0:n.roundingMethod)?l[r]:l[s])(a)}var d=n(106);function p(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function h(e){return p({},e)}var v=n(92),b=1440,m=2520,y=43200,g=86400;function w(e,t){return Object(i.a)(1,arguments),function(e,t,n){var c,l;Object(i.a)(2,arguments);var s=Object(r.a)(),w=null!==(c=null!==(l=null===n||void 0===n?void 0:n.locale)&&void 0!==l?l:s.locale)&&void 0!==c?c:d.a;if(!w.formatDistance)throw new RangeError("locale must contain formatDistance property");var x=a(e,t);if(isNaN(x))throw new RangeError("Invalid time value");var O,j,k=p(h(n),{addSuffix:Boolean(null===n||void 0===n?void 0:n.addSuffix),comparison:x});x>0?(O=Object(o.a)(t),j=Object(o.a)(e)):(O=Object(o.a)(e),j=Object(o.a)(t));var S,E=f(j,O),C=(Object(v.a)(j)-Object(v.a)(O))/1e3,T=Math.round((E-C)/60);if(T<2)return null!==n&&void 0!==n&&n.includeSeconds?E<5?w.formatDistance("lessThanXSeconds",5,k):E<10?w.formatDistance("lessThanXSeconds",10,k):E<20?w.formatDistance("lessThanXSeconds",20,k):E<40?w.formatDistance("halfAMinute",0,k):E<60?w.formatDistance("lessThanXMinutes",1,k):w.formatDistance("xMinutes",1,k):0===T?w.formatDistance("lessThanXMinutes",1,k):w.formatDistance("xMinutes",T,k);if(T<45)return w.formatDistance("xMinutes",T,k);if(T<90)return w.formatDistance("aboutXHours",1,k);if(T<b){var I=Math.round(T/60);return w.formatDistance("aboutXHours",I,k)}if(T<m)return w.formatDistance("xDays",1,k);if(T<y){var P=Math.round(T/b);return w.formatDistance("xDays",P,k)}if(T<g)return S=Math.round(T/y),w.formatDistance("aboutXMonths",S,k);if((S=u(j,O))<12){var L=Math.round(T/y);return w.formatDistance("xMonths",L,k)}var _=S%12,R=Math.floor(S/12);return _<3?w.formatDistance("aboutXYears",R,k):_<9?w.formatDistance("overXYears",R,k):w.formatDistance("almostXYears",R+1,k)}(e,Date.now(),t)}var x=6e4,O=1440,j=30*O,k=365*O;function S(e,t){return Object(i.a)(1,arguments),function(e,t,n){var c,u,l;Object(i.a)(2,arguments);var s=Object(r.a)(),f=null!==(c=null!==(u=null===n||void 0===n?void 0:n.locale)&&void 0!==u?u:s.locale)&&void 0!==c?c:d.a;if(!f.formatDistance)throw new RangeError("locale must contain localize.formatDistance property");var b=a(e,t);if(isNaN(b))throw new RangeError("Invalid time value");var m,y,g=p(h(n),{addSuffix:Boolean(null===n||void 0===n?void 0:n.addSuffix),comparison:b});b>0?(m=Object(o.a)(t),y=Object(o.a)(e)):(m=Object(o.a)(e),y=Object(o.a)(t));var w,S=String(null!==(l=null===n||void 0===n?void 0:n.roundingMethod)&&void 0!==l?l:"round");if("floor"===S)w=Math.floor;else if("ceil"===S)w=Math.ceil;else{if("round"!==S)throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");w=Math.round}var E,C=y.getTime()-m.getTime(),T=C/x,I=(C-(Object(v.a)(y)-Object(v.a)(m)))/x,P=null===n||void 0===n?void 0:n.unit;if("second"===(E=P?String(P):T<1?"second":T<60?"minute":T<O?"hour":I<j?"day":I<k?"month":"year")){var L=w(C/1e3);return f.formatDistance("xSeconds",L,g)}if("minute"===E){var _=w(T);return f.formatDistance("xMinutes",_,g)}if("hour"===E){var R=w(T/60);return f.formatDistance("xHours",R,g)}if("day"===E){var N=w(I/O);return f.formatDistance("xDays",N,g)}if("month"===E){var M=w(I/j);return 12===M&&"month"!==P?f.formatDistance("xYears",1,g):f.formatDistance("xMonths",M,g)}if("year"===E){var A=w(I/k);return f.formatDistance("xYears",A,g)}throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'")}(e,Date.now(),t)}n.d(t,"c",(function(){return E})),n.d(t,"a",(function(){return C})),n.d(t,"i",(function(){return T})),n.d(t,"f",(function(){return I})),n.d(t,"d",(function(){return P})),n.d(t,"b",(function(){return L})),n.d(t,"h",(function(){return _})),n.d(t,"g",(function(){return R})),n.d(t,"m",(function(){return N})),n.d(t,"p",(function(){return A})),n.d(t,"k",(function(){return D})),n.d(t,"e",(function(){return F})),n.d(t,"n",(function(){return z})),n.d(t,"l",(function(){return B})),n.d(t,"o",(function(){return H})),n.d(t,"j",(function(){return U}));var E=60,C=24*E,T=365*C,I=6e4,P=E*I,L=24*P,_=7*L,R=30*L;function N(){return Date.now()}var M=null;function A(){var e=N();return M&&e<=M&&(e=M+1),M=e,e}function D(e){try{if(!e)return;var t=new Date(e);if(function(e){return!!(null===e||void 0===e?void 0:e.getTime)&&!isNaN(e.getTime())}(t))return t}catch(n){}}function F(e){var t,n;return null!==(t=null===(n=D(e))||void 0===n?void 0:n.toISOString())&&void 0!==t?t:"(invalid date)"}function z(){return(new Date).toISOString()}function B(e,t){var n,r;return null!==(n=null===(r=D(e))||void 0===r?void 0:r.toLocaleString(t))&&void 0!==n?n:"(invalid date)"}function H(e){return B(N(),e)}function U(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relaxed,r=t.justNowThreshold,o=void 0===r?5e3:r,i=D(e);if(!i)return"at some point";if(n)return w(i,{addSuffix:!0});var a=N()-+i;return a>=0&&a<o?"just now":S(i,{addSuffix:!0,roundingMethod:a<0?"ceil":"floor"})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"d",(function(){return u})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return s})),n.d(t,"b",(function(){return f})),n.d(t,"c",(function(){return d}));var r=n(53),o=n(18),i=!1,a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object(r.e)(Object(o.b)(t,{formatObjects:!0}))},c=r.a;var u=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return c(Object(o.b)(t,{formatObjects:!0}))},l=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object(r.f)(Object(o.b)(t,{formatObjects:!0}))};function s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(i?console.warn:r.i)(Object(o.b)(t,{formatObjects:!0}))}function f(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(i?console.error:r.h)(Object(o.b)(t,{formatObjects:!0}))}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.prefix,a=void 0===n?"":n,u=t.severity,l=void 0===u?"error":u;i?function(e){return"error"===e?console.error:"warn"===e?console.warn:console.log}(l)(a,e):function(e){return"error"===e?r.h:"warn"===e?r.i:"success"===e?r.f:"notice"===e?c:r.e}(l)(Object(o.a)(e,a))}},function(e,t,n){"use strict";var r=n(1),o=n(229),i=n(21),a=n(16);function c(e){Object(a.a)(1,arguments);var t=Object(i.a)(e);return t.setHours(0,0,0,0),t}function u(e,t){Object(a.a)(2,arguments);var n=c(e),r=c(t);return n.getTime()===r.getTime()}var l=n(55);function s(e,t){return Object(a.a)(2,arguments),function(e,t){Object(a.a)(2,arguments);var n=Object(i.a)(e),r=Object(l.a)(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}(e,-Object(l.a)(t))}var f=n(35),d=n(8),p=n(75),h=n(13);n.d(t,"a",(function(){return b}));var v={client:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"browser","browsers")},collection:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"collection","collections",{bare:"collections",withCount:"no collections"})}},b=Object(r.a)(Object(r.a)(Object(r.a)({},{updated:function(){return"updated"},created:function(){return"created"}}),v),{},{thisBrowser:function(){return"this browser"},session:function(){return"session"},history:function(){return"history"},event:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"event","events",{bare:"events",withCount:"no events"})},item:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"item","items",{bare:"items",withCount:"no items"})},window:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"window","windows",{bare:"windows",withCount:"no windows"})},incognitoWindow:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"incognito window","incognito windows",{bare:"incognito windows",withCount:"no incognito windows"})},currentWindow:function(){return"this window"},folder:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"folder","folders",{bare:"folders",withCount:"no folders"})},incognitoFolder:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"incognito folder","incognito folders",{bare:"incognito folders",withCount:"no incognito folders"})},tab:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"tab","tabs",{bare:"tabs",withCount:"no tabs"})},selectedTab:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"selected tab","selected tabs",{bare:"selected tabs",withCount:"no selected tabs"})},link:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"link","links",{bare:"links",withCount:"no links"})},selectedLink:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"selected link","selected links",{bare:"selected links",withCount:"no selected links"})},summarizedItems:function(e){var t=e.groupCount,n=e.unitCount,r=e.isWindow,o=e.includeCount,i=r?b.window:b.folder,a=r?b.tab:b.link;return t&&n?"".concat(i({count:t,includeCount:o})," and ").concat(a({count:n,includeCount:o})):t?i({count:t,includeCount:o}):a({count:n,includeCount:o})},title:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"title","titles")},url:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"URL","URLs",{bare:"URLs",withCount:"no URLs"})},favicon:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(f.b)(e,"favicon","favicons")},untitled:function(){return"untitled"},import:function(){return"import"},restore:function(){return"restore"},recover:function(){return"recover"},date:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.format,r=t.noun,i=t.verb,a="long"===n?Object(o.a)(e,"MMMM d".concat(new Date(e).getFullYear()!==(new Date).getFullYear()?", yyyy":""," 'at' h:mm a")):"relative"===n?Object(d.j)(e,{justNowThreshold:3e4}):"short"===n||"short-abbreviate-recent"===n?this.shortDate(e,{abbreviateRecent:"short-abbreviate-recent"===n}):Object(d.l)(e);return r&&i?"".concat(b[r]()," ").concat(b[i]()," ").concat(a):i?"".concat(b[i]()," ").concat(a):a},shortDate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).abbreviateRecent;if(t&&function(e){return Object(a.a)(1,arguments),u(e,Date.now())}(e))return Object(o.a)(e,"h:mm a");if(t&&function(e){return Object(a.a)(1,arguments),u(e,s(Date.now(),1))}(e))return"".concat(b.yesterday()," \u2022 ").concat(Object(o.a)(e,"h:mm a"));var n=!t||new Date(e).getFullYear()!==(new Date).getFullYear();return Object(o.a)(e,"MMM d".concat(n?", yyyy":""," ' \u2022 ' h:mm a"))},now:function(){return"now"},yesterday:function(){return"yesterday"},number:function(e){return(+e||0).toLocaleString("en-US")},integer:function(e){return(+e||0).toLocaleString("en-US",{maximumFractionDigits:0})},alt:function(){return"alt"},shift:function(){return"shift"},ctrl:function(){return"ctrl"},cmd:function(){return"cmd"},ctrlOrCmd:function(){return"mac"===p.a?b.cmd():b.ctrl()},keyModifier:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.map((function(e){return Object(h.d)(e)})).join("+")},learnMore:function(){return"learn more"},click:function(){return"click"},close:function(){return"close"},cancel:function(){return"cancel"}})},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=o.a.createContext(null);var a=function(e){e()},c=function(){return a};var u={notify:function(){},get:function(){return[]}};function l(e,t){var n,r=u;function o(){a.onStateChange&&a.onStateChange()}function i(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=function(){var e=c(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}var a={addNestedSub:function(e){return i(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(n)},trySubscribe:i,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=u)},getListeners:function(){return r}};return a}var s="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?r.useLayoutEffect:r.useEffect;var f=function(e){var t=e.store,n=e.context,a=e.children,c=Object(r.useMemo)((function(){var e=l(t);return{store:t,subscription:e}}),[t]),u=Object(r.useMemo)((function(){return t.getState()}),[t]);s((function(){var e=c.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),u!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[c,u]);var f=n||i;return o.a.createElement(f.Provider,{value:c},a)};n(4),n(76),n(154),n(142);function d(){return Object(r.useContext)(i)}function p(e){void 0===e&&(e=i);var t=e===i?d:function(){return Object(r.useContext)(e)};return function(){return t().store}}var h=p();function v(e){void 0===e&&(e=i);var t=e===i?h:p(e);return function(){return t().dispatch}}var b=v(),m=function(e,t){return e===t};function y(e){void 0===e&&(e=i);var t=e===i?d:function(){return Object(r.useContext)(e)};return function(e,n){void 0===n&&(n=m);var o=t(),i=function(e,t,n,o){var i,a=Object(r.useReducer)((function(e){return e+1}),0)[1],c=Object(r.useMemo)((function(){return l(n,o)}),[n,o]),u=Object(r.useRef)(),f=Object(r.useRef)(),d=Object(r.useRef)(),p=Object(r.useRef)(),h=n.getState();try{if(e!==f.current||h!==d.current||u.current){var v=e(h);i=void 0!==p.current&&t(v,p.current)?p.current:v}else i=p.current}catch(b){throw u.current&&(b.message+="\nThe error may be correlated with this previous error:\n"+u.current.stack+"\n\n"),b}return s((function(){f.current=e,d.current=h,p.current=i,u.current=void 0})),s((function(){function e(){try{var e=n.getState();if(e===d.current)return;var r=f.current(e);if(t(r,p.current))return;p.current=r,d.current=e}catch(b){u.current=b}a()}return c.onStateChange=e,c.trySubscribe(),e(),function(){return c.tryUnsubscribe()}}),[n,c]),i}(e,n,o.store,o.subscription);return Object(r.useDebugValue)(i),i}}var g,w=y(),x=n(48);n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return b})),n.d(t,"c",(function(){return w})),n.d(t,"d",(function(){return h})),g=x.unstable_batchedUpdates,a=g},function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"q",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"n",(function(){return u})),n.d(t,"g",(function(){return l})),n.d(t,"m",(function(){return s})),n.d(t,"b",(function(){return f})),n.d(t,"j",(function(){return d})),n.d(t,"k",(function(){return p})),n.d(t,"p",(function(){return h})),n.d(t,"o",(function(){return v})),n.d(t,"a",(function(){return b})),n.d(t,"e",(function(){return m})),n.d(t,"l",(function(){return y})),n.d(t,"f",(function(){return g})),n.d(t,"h",(function(){return x})),n.d(t,"i",(function(){return O}));var r=n(3),o=(n(14),n(88));function i(e,t){return[].concat(Object(r.a)(e.filter(t)),Object(r.a)(e.filter((function(e){return!t(e)}))))}function a(e){return e.filter((function(t,n){return e.indexOf(t)===n}))}function c(e){return a(e.flat()).filter((function(e){return void 0!==e}))}function u(e){if(null===e||void 0===e?void 0:e.length)return e[Math.floor(Math.random()*e.length)]}function l(e){return e[e.length-1]}function s(e){return Object(r.a)(e).reverse()}function f(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.c;return[].concat(Object(r.a)(e?d(e,(function(e){return t.some((function(t){return n(t,e)}))})):[]),Object(r.a)(function(e){return e.filter((function(t,n){return e.lastIndexOf(t)===n}))}(t)))}function d(e,t){return e.some(t)?e.filter((function(e){return!t(e)})):e}function p(e,t){return t.length?d(e,(function(e){return t.includes(e)})):e}function h(e,t){return[e.slice(0,t),e.slice(t)]}function v(e,t){for(var n=[],r=[],o=0;o<e.length;o++)(t(e[o],o)?n:r).push(e[o]);return[n,r]}function b(e,t){if(t<1||t>=e.length)return[e];for(var n=[],r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n}function m(e,t){return e.filter((function(e){return t.includes(e)}))}function y(e,t,n){return e.includes(t)?e.map((function(e){return e===t?n:e})):e}function g(e,t){return e.length===t.length&&e.every((function(e,n){return e===t[n]}))}function w(e,t,n){if(!n||t<0)return e;if(0===t&&n<0||t>=e.length-1&&n>0)return e;var r=e.slice(),o=r.splice(t,1);if(1!==o.length)return e;var i=Math.min(Math.max(t+n,0),r.length);return r.splice(i,0,o[0]),r}function x(e,t){return w(e,t,-1)}function O(e,t){return w(e,t,1)}},function(e,t,n){"use strict";n.d(t,"h",(function(){return r})),n.d(t,"i",(function(){return o})),n.d(t,"g",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return s})),n.d(t,"j",(function(){return f})),n.d(t,"f",(function(){return p}));n(3);function r(e,t){return(null===e||void 0===e?void 0:e.startsWith(t))?e.slice(t.length):e}function o(e,t){return(null===t||void 0===t?void 0:t.length)&&(null===e||void 0===e?void 0:e.endsWith(t))?e.slice(0,-t.length):e}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=e.lastIndexOf(t);return n<0?e:e.slice(0,n)}function a(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""")}function c(e){return e?"".concat(e[0].toLocaleUpperCase()).concat(e.substring(1)):""}function u(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase(),n=e.toLowerCase();return t<n?-1:t>n?1:0}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return e.replace(/^/gm," ".repeat(t))}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return e.replace(/^(?=[^\n])/gm," ".repeat(t))}function f(e){return e.toUpperCase()}var d="\ufeff";function p(e){return e.startsWith(d)?p(e.slice(1)):e}},function(e,t,n){"use strict";var r=n(138);var o=n(91),i=n(139);function a(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){o=!0,i=u}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(e,t)||Object(o.a)(e,t)||Object(i.a)()}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(76);function o(e,t){if(null==e)return{};var n,o,i=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){"use strict";function r(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"n",(function(){return m})),n.d(t,"m",(function(){return y})),n.d(t,"f",(function(){return g})),n.d(t,"d",(function(){return w})),n.d(t,"c",(function(){return x})),n.d(t,"j",(function(){return O})),n.d(t,"i",(function(){return j})),n.d(t,"g",(function(){return k})),n.d(t,"a",(function(){return S})),n.d(t,"b",(function(){return E})),n.d(t,"h",(function(){return C})),n.d(t,"e",(function(){return T})),n.d(t,"q",(function(){return I})),n.d(t,"p",(function(){return P})),n.d(t,"o",(function(){return L})),n.d(t,"k",(function(){return _})),n.d(t,"l",(function(){return R}));var r=n(3),o=n(14),i=n(2),a=n(1),c=n(67),u=n(57),l=n(29),s=n(18),f=n(110);function d(){d=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(I){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),c=new E(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(I){return{type:"throw",arg:I}}}e.wrap=l;var f={};function p(){}function h(){}function v(){}var b={};u(b,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(C([])));y&&y!==t&&n.call(y,i)&&(b=y);var g=v.prototype=p.prototype=Object.create(b);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return h.prototype=v,r(g,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:h,configurable:!0}),h.displayName=u(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,u(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},w(x.prototype),u(x.prototype,a,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new x(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(g),u(g,c,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=C,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}f.b.clientId,f.b.clientCreated;var p=Object(c.a)(f.b,["clientId","clientCreated"]),h=Object(a.a)(Object(a.a)({},{settingsIsOpen:!1,importExportDialog:null,animationIsDisabled:!1}),p),v=Object(u.b)({name:"settings",initialState:h,reducers:{settingsOpened:function(e){e.settingsIsOpen=!0},settingsClosed:function(e){e.settingsIsOpen=!1},importDialogOpened:function(e){e.importExportDialog="transfer"},exportDialogOpened:function(e){e.importExportDialog="export"},backupDialogOpened:function(e){e.importExportDialog="backup"},restoreDialogOpened:function(e){e.importExportDialog="restore"},restoreDialogAutoBackupOpened:function(e){e.importExportDialog="restore:auto-backup"},importExportDialogClosed:function(e){e.importExportDialog=null},animationDisabled:function(e){e.animationIsDisabled=!0},animationEnabled:function(e){e.animationIsDisabled=!1},hydrated:function(e,t){var n=t.payload;return Object(a.a)(Object(a.a)({},h),n)},settingChanged:function(e,t){var n=t.payload,r=n.id,o=n.value;e[r]=o}}}),b=v.actions,m=b.settingsOpened,y=b.settingsClosed,g=b.importDialogOpened,w=b.exportDialogOpened,x=b.backupDialogOpened,O=b.restoreDialogOpened,j=b.restoreDialogAutoBackupOpened,k=b.importExportDialogClosed,S=b.animationDisabled,E=b.animationEnabled,C=v.reducer;function T(){return function(){var e=Object(i.a)(d().mark((function e(t){var n,r,i,a;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(l.b)();case 3:return n=e.sent,r=n.settings,e.next=7,r.all();case 7:i=e.sent,a=Object.fromEntries(i.map((function(e){return[e.id,e.value]})).filter((function(e){var t=Object(o.a)(e,1)[0];return"clientId"!==t&&"clientCreated"!==t}))),t(v.actions.hydrated(a)),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),Object(s.e)(e.t0,{prefix:"Failed to hydrate settings"});case 15:case"end":return e.stop()}}),e,null,[[0,12]])})));return function(t){return e.apply(this,arguments)}}()}function I(e,t){return function(){var n=Object(i.a)(d().mark((function n(r){var o,i;return d().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r(v.actions.settingChanged({id:e,value:t})),n.next=3,Object(l.b)();case 3:return o=n.sent,i=o.settings,n.next=7,i.set(e,t);case 7:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()}function P(e){return function(t,n){var r=n().settings;return t(I(e,!r[e]))}}function L(e,t){return function(n,o){var i=o().settings[e],a=i.includes(t)?i.filter((function(e){return e!==t})):[].concat(Object(r.a)(i),[t]);return n(I(e,a))}}function _(e){return function(t,n){return R(e)(n())}}var R=function(e){return function(t){return t.settings[e]}}},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"f",(function(){return c})),n.d(t,"g",(function(){return u})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return s})),n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return d}));var r=n(9),o=n(78),i=!1;function a(){if(r.a.apply(void 0,arguments),!i)return o.b.apply(void 0,arguments)}function c(){if(r.d.apply(void 0,arguments),!i)return o.e.apply(void 0,arguments)}function u(){if(r.f.apply(void 0,arguments),!i)return o.g.apply(void 0,arguments)}function l(){if(r.b.apply(void 0,arguments),!i)return o.c.apply(void 0,arguments)}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Object(r.c)(e,t),!i)return Object(o.d)(e,t)}function f(e,t){var n;return"".concat(t?"".concat(t,": "):"").concat((null===e||void 0===e||null===(n=e.error)||void 0===n?void 0:n.stack)||(null===e||void 0===e?void 0:e.error)||(null===e||void 0===e?void 0:e.stack)||(null===e||void 0===e?void 0:e.message)||e)}function d(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).formatObjects;try{return e.map((function(e){return"object"===typeof e?t?JSON.stringify(e,null,2):JSON.stringify(e):e})).join(" ")}catch(n){return e.join(" ")}}},function(e,t,n){"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}t.a=function(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}},function(e,t,n){"use strict";n.r(t);var r,o=n(0),i=n.n(o),a=n(34),c=["svgRef","title"];function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var s,f,d,p=function(e){var t=e.svgRef,n=e.title,o=l(e,c);return i.a.createElement("svg",u({viewBox:"-2 -2 24 24",height:20,width:20,fill:"currentColor",ref:t},o),n?i.a.createElement("title",null,n):null,r||(r=i.a.createElement("g",null,i.a.createElement("path",{d:"M13.289185,5.817505L11.875,7.23175c1.55957,1.55957,1.559937,4.096924,0,5.65686l1.414185,1.414185C15.628723,11.963257,15.628723,8.157043,13.289185,5.817505z"}),i.a.createElement("path",{d:"M16.103149,3.009827l-1.414551,1.414551c3.101196,3.101196,3.101196,8.147583,0,11.248779l1.414185,1.414246C19.984314,13.205872,19.984314,6.89093,16.103149,3.009827z"}),i.a.createElement("path",{d:"M2,6C1.447693,6,1,6.447693,1,7v6c0,0.552307,0.447693,1,1,1h3l6,4V2L5,6H2z"}))))},h=i.a.forwardRef((function(e,t){return i.a.createElement(p,u({svgRef:t},e))})),v=(n.p,["svgRef","title"]);function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b.apply(this,arguments)}function m(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var y,g=function(e){var t=e.svgRef,n=e.title,r=m(e,v);return i.a.createElement("svg",b({width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",ref:t},r),n?i.a.createElement("title",null,n):null,s||(s=i.a.createElement("path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"})),f||(f=i.a.createElement("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"})),d||(d=i.a.createElement("path",{d:"m9 15 2 2 4-4"})))},w=i.a.forwardRef((function(e,t){return i.a.createElement(g,b({svgRef:t},e))})),x=(n.p,["svgRef","title"]);function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O.apply(this,arguments)}function j(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var k,S=function(e){var t=e.svgRef,n=e.title,r=j(e,x);return i.a.createElement("svg",O({viewBox:"0 0 72 72",height:20,width:20,fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,y||(y=i.a.createElement("g",null,i.a.createElement("path",{d:"M44.9,4.1c-2.1-.6-4.3-1-6.6-1.1-.8,0-1.5-.1-2.3-.1s-1.5,0-2.3.1c-2.3.2-4.5.5-6.6,1.1C13.1,7.9,2.8,20.8,2.8,36s10.2,27.9,24.1,31.9c2.1.6,4.3,1,6.6,1.2.8,0,1.7.1,2.5.1s1.7,0,2.5-.1c2.3-.2,4.5-.6,6.6-1.2,13.9-4,24.1-16.7,24.1-31.9S58.9,7.9,44.9,4.1ZM63.1,33.1h-13.4c-.2-7.6-1.2-15-3-22.2,8.9,3.8,15.3,12.2,16.4,22.2ZM36,8.7c1.4,0,2.8.1,4.2.4,2.2,7.7,3.4,15.7,3.7,24h-15.8c.3-8.3,1.6-16.3,3.7-24,1.4-.2,2.8-.4,4.2-.4ZM25.2,10.9c-1.7,7.1-2.7,14.5-3,22.2h-13.4c1.1-10,7.5-18.3,16.4-22.2ZM8.9,38.9h13.4c.2,7.6,1.1,15,2.8,22.1-8.8-3.9-15.1-12.2-16.2-22.1ZM36,63.3c-1.5,0-3-.2-4.4-.4-2.1-7.7-3.3-15.7-3.5-24h15.8c-.2,8.3-1.4,16.3-3.5,24-1.4.2-2.9.4-4.4.4ZM47,61c1.7-7.1,2.6-14.5,2.8-22.1h13.4c-1.1,9.9-7.4,18.2-16.2,22.1Z"}))))},E=i.a.forwardRef((function(e,t){return i.a.createElement(S,O({svgRef:t},e))})),C=(n.p,["svgRef","title"]);function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T.apply(this,arguments)}function I(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var P,L=function(e){var t=e.svgRef,n=e.title,r=I(e,C);return i.a.createElement("svg",T({viewBox:"0 0 72 72",height:20,width:20,fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,k||(k=i.a.createElement("g",null,i.a.createElement("path",{d:"M45.8,21.5v39.9l-14.8-6.3-2.3-1-2.3,1-14.5,6.3V21.5h33.9M51.7,15.7H6v54.7l22.7-9.8,22.9,9.8V15.7h0Z"}),i.a.createElement("polygon",{points:"65.8 1.7 20.1 1.7 20.1 7.6 59.9 7.6 59.9 52.9 65.8 55.8 65.8 1.7 65.8 1.7"}))))},_=i.a.forwardRef((function(e,t){return i.a.createElement(L,T({svgRef:t},e))})),R=(n.p,["svgRef","title"]);function N(){return N=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N.apply(this,arguments)}function M(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var A,D,F,z,B,H=function(e){var t=e.svgRef,n=e.title,r=M(e,R);return i.a.createElement("svg",N({width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,P||(P=i.a.createElement("path",{d:"M20,2H10C8.897,2,8,2.897,8,4v4H4c-1.103,0-2,0.897-2,2v10c0,1.103,0.897,2,2,2h10c1.103,0,2-0.897,2-2v-4h4 c1.103,0,2-0.897,2-2V4C22,2.897,21.103,2,20,2z M4,20V10h10l0.002,10H4z M20,14h-4v-4c0-1.103-0.897-2-2-2h-4V4h10V14z"})))},U=i.a.forwardRef((function(e,t){return i.a.createElement(H,N({svgRef:t},e))})),W=(n.p,n(178)),q=["svgRef","title"];function G(){return G=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G.apply(this,arguments)}function V(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var K,$=function(e){var t=e.svgRef,n=e.title,r=V(e,q);return i.a.createElement("svg",G({width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",ref:t},r),n?i.a.createElement("title",null,n):null,A||(A=i.a.createElement("path",{d:"M3 6h18"})),D||(D=i.a.createElement("path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"})),F||(F=i.a.createElement("path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"})),z||(z=i.a.createElement("line",{x1:10,x2:10,y1:11,y2:17})),B||(B=i.a.createElement("line",{x1:14,x2:14,y1:11,y2:17})))},Y=i.a.forwardRef((function(e,t){return i.a.createElement($,G({svgRef:t},e))})),Q=(n.p,["svgRef","title"]);function X(){return X=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},X.apply(this,arguments)}function Z(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var J,ee,te=function(e){var t=e.svgRef,n=e.title,r=Z(e,Q);return i.a.createElement("svg",X({height:16,width:16,viewBox:"-2 -2 20 20",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,K||(K=i.a.createElement("path",{d:"M2,17.0024554 L2,9.99754465 C2,9.4463114 2.44771525,9 3,9 C3.55613518,9 4,9.44902676 4,10.0029293 L4,16 L16,16 L16,10.0029293 C16,9.43788135 16.4477153,9 17,9 C17.5561352,9 18,9.44661595 18,9.99754465 L18,17.0024554 C18,17.5536886 17.5518945,18 16.9991283,18 L3.00087166,18 C2.44463086,18 2,17.553384 2,17.0024554 Z M11,13 L9,13 L9,6 L6.99895656,6 C6.44266033,6 6.31604759,5.68395241 6.70591205,5.29408795 L10,2 L13.2940879,5.29408795 C13.6861267,5.68612671 13.5527519,6 13.0010434,6 L11,6 L11,13 Z",transform:"translate(-2 -2)"})))},ne=i.a.forwardRef((function(e,t){return i.a.createElement(te,X({svgRef:t},e))})),re=(n.p,["svgRef","title"]);function oe(){return oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oe.apply(this,arguments)}function ie(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ae,ce,ue,le,se=function(e){var t=e.svgRef,n=e.title,r=ie(e,re);return i.a.createElement("svg",oe({width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",ref:t},r),n?i.a.createElement("title",null,n):null,J||(J=i.a.createElement("path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"})),ee||(ee=i.a.createElement("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"})))},fe=i.a.forwardRef((function(e,t){return i.a.createElement(se,oe({svgRef:t},e))})),de=(n.p,["svgRef","title"]);function pe(){return pe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pe.apply(this,arguments)}function he(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ve,be,me,ye=function(e){var t=e.svgRef,n=e.title,r=he(e,de);return i.a.createElement("svg",pe({width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",ref:t},r),n?i.a.createElement("title",null,n):null,ae||(ae=i.a.createElement("path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4"})),ce||(ce=i.a.createElement("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"})),ue||(ue=i.a.createElement("path",{d:"m8 12.5-5 5"})),le||(le=i.a.createElement("path",{d:"m3 12.5 5 5"})))},ge=i.a.forwardRef((function(e,t){return i.a.createElement(ye,pe({svgRef:t},e))})),we=(n.p,["svgRef","title"]);function xe(){return xe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xe.apply(this,arguments)}function Oe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var je,ke,Se,Ee=function(e){var t=e.svgRef,n=e.title,r=Oe(e,we);return i.a.createElement("svg",xe({width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",ref:t},r),n?i.a.createElement("title",null,n):null,ve||(ve=i.a.createElement("path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4"})),be||(be=i.a.createElement("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"})),me||(me=i.a.createElement("path",{d:"m3 15 2 2 4-4"})))},Ce=i.a.forwardRef((function(e,t){return i.a.createElement(Ee,xe({svgRef:t},e))})),Te=(n.p,["svgRef","title"]);function Ie(){return Ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ie.apply(this,arguments)}function Pe(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Le,_e=function(e){var t=e.svgRef,n=e.title,r=Pe(e,Te);return i.a.createElement("svg",Ie({width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",ref:t},r),n?i.a.createElement("title",null,n):null,je||(je=i.a.createElement("path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2"})),ke||(ke=i.a.createElement("path",{d:"M6.453 15h11.094"})),Se||(Se=i.a.createElement("path",{d:"M8.5 2h7"})))},Re=i.a.forwardRef((function(e,t){return i.a.createElement(_e,Ie({svgRef:t},e))})),Ne=(n.p,["svgRef","title"]);function Me(){return Me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Me.apply(this,arguments)}function Ae(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var De,Fe=function(e){var t=e.svgRef,n=e.title,r=Ae(e,Ne);return i.a.createElement("svg",Me({viewBox:"0 0 93.5 72",width:"1.3in",height:"1in",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,Le||(Le=i.a.createElement("g",null,i.a.createElement("path",{d:"M46.9,16.4l-9.1-9.1H13.2v57.5h66.8V16.4h-33ZM74.2,39v19.9H18.9V13h16.5l9.1,9.1h29.7"}))))},ze=i.a.forwardRef((function(e,t){return i.a.createElement(Fe,Me({svgRef:t},e))})),Be=(n.p,["svgRef","title"]);function He(){return He=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},He.apply(this,arguments)}function Ue(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var We,qe=function(e){var t=e.svgRef,n=e.title,r=Ue(e,Be);return i.a.createElement("svg",He({width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,De||(De=i.a.createElement("path",{d:"M12 4.248c-3.148-5.402-12-3.825-12 2.944 0 4.661 5.571 9.427 12 15.808 6.43-6.381 12-11.147 12-15.808 0-6.792-8.875-8.306-12-2.944z"})))},Ge=i.a.forwardRef((function(e,t){return i.a.createElement(qe,He({svgRef:t},e))})),Ve=(n.p,["svgRef","title"]);function Ke(){return Ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ke.apply(this,arguments)}function $e(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ye,Qe=function(e){var t=e.svgRef,n=e.title,r=$e(e,Ve);return i.a.createElement("svg",Ke({viewBox:"0 0 72 72",height:20,width:20,fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,We||(We=i.a.createElement("g",null,i.a.createElement("path",{d:"M36,63.3c15.1,0,27.3-12.3,27.3-27.3,0-15.1-12.3-27.3-27.3-27.3s-19,5.5-23.7,13.8h11.5v5.9H2.8v-5.9s0-15.2,0-15.2h5.9v10C14.7,8.5,24.6,2.8,36,2.8c18.3,0,33.2,14.9,33.2,33.2,0,18.3-14.9,33.2-33.2,33.2-18.3,0-33.2-14.9-33.2-33.2h5.9c0,15.1,12.3,27.3,27.3,27.3Z"}),i.a.createElement("polygon",{points:"38.8 22.3 32.9 22.3 32.9 36.7 44 48.3 48.2 44.2 38.8 34.4 38.8 22.3"}))))},Xe=i.a.forwardRef((function(e,t){return i.a.createElement(Qe,Ke({svgRef:t},e))})),Ze=(n.p,["svgRef","title"]);function Je(){return Je=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Je.apply(this,arguments)}function et(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var tt,nt=function(e){var t=e.svgRef,n=e.title,r=et(e,Ze);return i.a.createElement("svg",Je({height:16,width:16,viewBox:"-2 -2 20 20",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,Ye||(Ye=i.a.createElement("path",{d:"M32,17.0024554 L32,9.99754465 C32,9.4463114 32.4477153,9 33,9 C33.5561352,9 34,9.44902676 34,10.0029293 L34,16 L46,16 L46,10.0029293 C46,9.43788135 46.4477153,9 47,9 C47.5561352,9 48,9.44661595 48,9.99754465 L48,17.0024554 C48,17.5536886 47.5518945,18 46.9991283,18 L33.0008717,18 C32.4446309,18 32,17.553384 32,17.0024554 Z M40,2 C40.5561352,2 41,2.44902676 41,3.00292933 L41,9 L43.0010434,9 C43.5573397,9 43.6839524,9.31604759 43.2940879,9.70591205 L40,13 L36.7059121,9.70591205 C36.3138733,9.31387329 36.4472481,9 36.9989566,9 L39,9 L39,3.00292933 C39,2.43788135 39.4477153,2 40,2 Z",transform:"translate(-32 -2)"})))},rt=i.a.forwardRef((function(e,t){return i.a.createElement(nt,Je({svgRef:t},e))})),ot=(n.p,["svgRef","title"]);function it(){return it=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},it.apply(this,arguments)}function at(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ct,ut,lt,st=function(e){var t=e.svgRef,n=e.title,r=at(e,ot);return i.a.createElement("svg",it({height:24,width:24,viewBox:"0 0 24 24",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,tt||(tt=i.a.createElement("path",{d:"M3 11h18v1H3zm14.62-1l-2.29-6.1c-.19-.5-.74-.77-1.25-.6L12 4l-2.09-.7c-.51-.17-1.06.1-1.25.6L6.38 10h11.24zm-1.12 3c-1.66 0-3.04 1.16-3.4 2.71-.84-.36-1.62-.26-2.2-.01A3.503 3.503 0 0 0 7.5 13C5.57 13 4 14.57 4 16.5S5.57 20 7.5 20c1.84 0 3.33-1.42 3.47-3.22.3-.21 1.09-.6 2.06.02.16 1.79 1.64 3.2 3.47 3.2 1.93 0 3.5-1.57 3.5-3.5S18.43 13 16.5 13zm-9 6a2.5 2.5 0 0 1 0-5 2.5 2.5 0 0 1 0 5zm9 0a2.5 2.5 0 0 1 0-5 2.5 2.5 0 0 1 0 5z"})))},ft=i.a.forwardRef((function(e,t){return i.a.createElement(st,it({svgRef:t},e))})),dt=(n.p,n(179)),pt=["svgRef","title"];function ht(){return ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ht.apply(this,arguments)}function vt(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var bt,mt=function(e){var t=e.svgRef,n=e.title,r=vt(e,pt);return i.a.createElement("svg",ht({viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,ref:t},r),n?i.a.createElement("title",null,n):null,ct||(ct=i.a.createElement("path",{d:"M15 2H9a1 1 0 0 0-1 1v2c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V3c0-.6-.4-1-1-1Z"})),ut||(ut=i.a.createElement("path",{d:"M8 4H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2M16 4h2a2 2 0 0 1 2 2v2M11 14h10"})),lt||(lt=i.a.createElement("path",{d:"m17 10 4 4-4 4"})))},yt=i.a.forwardRef((function(e,t){return i.a.createElement(mt,ht({svgRef:t},e))})),gt=(n.p,["svgRef","title"]);function wt(){return wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wt.apply(this,arguments)}function xt(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ot,jt,kt=function(e){var t=e.svgRef,n=e.title,r=xt(e,gt);return i.a.createElement("svg",wt({focusable:"false",viewBox:"0 0 24 24",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,bt||(bt=i.a.createElement("path",{fillRule:"evenodd",d:"M16 9V4h2V2H6v2h2v5c0 1.66-1.34 3-3 3v2h5.97v7l1 1 1-1v-7H19v-2c-1.66 0-3-1.34-3-3z"})))},St=i.a.forwardRef((function(e,t){return i.a.createElement(kt,wt({svgRef:t},e))})),Et=(n.p,["svgRef","title"]);function Ct(){return Ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ct.apply(this,arguments)}function Tt(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var It,Pt=function(e){var t=e.svgRef,n=e.title,r=Tt(e,Et);return i.a.createElement("svg",Ct({focusable:"false",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,Ot||(Ot=i.a.createElement("path",{d:"M20.49,19l-5.73-5.73C15.53,12.2,16,10.91,16,9.5C16,5.91,13.09,3,9.5,3S3,5.91,3,9.5C3,13.09,5.91,16,9.5,16 c1.41,0,2.7-0.47,3.77-1.24L19,20.49L20.49,19z M5,9.5C5,7.01,7.01,5,9.5,5S14,7.01,14,9.5S12,14,9.5,14S5,12,5,9.5z"})),jt||(jt=i.a.createElement("path",{d:"M0,0h24v24H0V0z",fill:"none"})))},Lt=i.a.forwardRef((function(e,t){return i.a.createElement(Pt,Ct({svgRef:t},e))})),_t=(n.p,["svgRef","title"]);function Rt(){return Rt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rt.apply(this,arguments)}function Nt(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Mt,At,Dt,Ft=function(e){var t=e.svgRef,n=e.title,r=Nt(e,_t);return i.a.createElement("svg",Rt({viewBox:"0 0 24 24",height:24,width:24,fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,It||(It=i.a.createElement("path",{d:"M3,6 C2.44771525,6 2,5.55228475 2,5 C2,4.44771525 2.44771525,4 3,4 L4.64765383,4 C5.0797487,2.5871829 6.41189658,1.60369786 8,1.60369786 C9.58810342,1.60369786 10.9202513,2.5871829 11.3523462,4 L21,4 C21.5522847,4 22,4.44771525 22,5 C22,5.55228475 21.5522847,6 21,6 L11.3550607,6 C10.9247861,7.44574447 9.58551032,8.5 8,8.5 C6.41448968,8.5 5.07521393,7.44574447 4.64493934,6 L3,6 Z M8,22.5 C6.41448968,22.5 5.07521393,21.4457445 4.64493934,20 L3,20 C2.44771525,20 2,19.5522847 2,19 C2,18.4477153 2.44771525,18 3,18 L4.64493934,18 C5.07521393,16.5542555 6.41448968,15.5 8,15.5 C9.58551032,15.5 10.9247861,16.5542555 11.3550607,18 L21,18 C21.5522847,18 22,18.4477153 22,19 C22,19.5522847 21.5522847,20 21,20 L11.3550607,20 C10.9247861,21.4457445 9.58551032,22.5 8,22.5 Z M3,13 C2.44771525,13 2,12.5522847 2,12 C2,11.4477153 2.44771525,11 3,11 L12.6449393,11 C13.0752139,9.55425553 14.4144897,8.5 16,8.5 C17.5855103,8.5 18.9247861,9.55425553 19.3550607,11 L21,11 C21.5522847,11 22,11.4477153 22,12 C22,12.5522847 21.5522847,13 21,13 L19.3550607,13 C18.9247861,14.4457445 17.5855103,15.5 16,15.5 C14.4144897,15.5 13.0752139,14.4457445 12.6449393,13 L3,13 Z M16,13.5 C16.8284271,13.5 17.5,12.8284271 17.5,12 C17.5,11.1715729 16.8284271,10.5 16,10.5 C15.1715729,10.5 14.5,11.1715729 14.5,12 C14.5,12.8284271 15.1715729,13.5 16,13.5 Z M8,20.5 C8.82842712,20.5 9.5,19.8284271 9.5,19 C9.5,18.1715729 8.82842712,17.5 8,17.5 C7.17157288,17.5 6.5,18.1715729 6.5,19 C6.5,19.8284271 7.17157288,20.5 8,20.5 Z M8,6.5 C8.82842712,6.5 9.5,5.82842712 9.5,5 C9.5,4.20497688 8.86217156,3.60369786 8,3.60369786 C7.13782844,3.60369786 6.5,4.20497688 6.5,5 C6.5,5.82842712 7.17157288,6.5 8,6.5 Z"})))},zt=i.a.forwardRef((function(e,t){return i.a.createElement(Ft,Rt({svgRef:t},e))})),Bt=(n.p,["svgRef","title"]);function Ht(){return Ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ht.apply(this,arguments)}function Ut(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Wt,qt,Gt=function(e){var t=e.svgRef,n=e.title,r=Ut(e,Bt);return i.a.createElement("svg",Ht({viewBox:"0 0 24 24",width:24,height:24,fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",ref:t},r),n?i.a.createElement("title",null,n):null,Mt||(Mt=i.a.createElement("path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"})),At||(At=i.a.createElement("path",{d:"M9 18h6"})),Dt||(Dt=i.a.createElement("path",{d:"M10 22h4"})))},Vt=i.a.forwardRef((function(e,t){return i.a.createElement(Gt,Ht({svgRef:t},e))})),Kt=(n.p,["svgRef","title"]);function $t(){return $t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$t.apply(this,arguments)}function Yt(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Qt,Xt=function(e){var t=e.svgRef,n=e.title,r=Yt(e,Kt);return i.a.createElement("svg",$t({width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,Wt||(Wt=i.a.createElement("path",{d:"M12,9c-1.626,0-3,1.374-3,3s1.374,3,3,3s3-1.374,3-3S13.626,9,12,9z"})),qt||(qt=i.a.createElement("path",{d:"M20,5h-2.586l-2.707-2.707C14.52,2.105,14.266,2,14,2h-4C9.734,2,9.48,2.105,9.293,2.293L6.586,5H4C2.897,5,2,5.897,2,7v11 c0,1.103,0.897,2,2,2h16c1.103,0,2-0.897,2-2V7C22,5.897,21.103,5,20,5z M12,17c-2.71,0-5-2.29-5-5c0-2.71,2.29-5,5-5s5,2.29,5,5 C17,14.71,14.71,17,12,17z"})))},Zt=i.a.forwardRef((function(e,t){return i.a.createElement(Xt,$t({svgRef:t},e))})),Jt=(n.p,["svgRef","title"]);function en(){return en=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},en.apply(this,arguments)}function tn(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var nn,rn=function(e){var t=e.svgRef,n=e.title,r=tn(e,Jt);return i.a.createElement("svg",en({width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,Qt||(Qt=i.a.createElement("path",{d:"M19.707 14.707c.286-.286.372-.716.217-1.09C19.77 13.244 19.404 13 19 13h-7v2h4.586l-4.293 4.293c-.286.286-.372.716-.217 1.09C12.23 20.756 12.596 21 13 21h7v-2h-4.586L19.707 14.707zM7 3.99L5 3.99 5 15.99 2 15.99 6 19.99 10 15.99 7 15.99zM17 3h-2c-.417 0-.79.259-.937.649l-2.75 7.333h2.137L14.193 9h3.613l.743 1.981h2.137l-2.75-7.333C17.79 3.259 17.417 3 17 3zM14.943 7l.75-2h.613l.75 2H14.943z"})))},on=i.a.forwardRef((function(e,t){return i.a.createElement(rn,en({svgRef:t},e))})),an=(n.p,["svgRef","title"]);function cn(){return cn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cn.apply(this,arguments)}function un(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ln,sn=function(e){var t=e.svgRef,n=e.title,r=un(e,an);return i.a.createElement("svg",cn({width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,nn||(nn=i.a.createElement("path",{d:"M6 20L10 16 7 16 7 4 5 4 5 16 2 16zM11 8H20V10H11zM11 12H18V14H11zM11 4H22V6H11zM11 16H16V18H11z"})))},fn=i.a.forwardRef((function(e,t){return i.a.createElement(sn,cn({svgRef:t},e))})),dn=(n.p,["svgRef","title"]);function pn(){return pn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pn.apply(this,arguments)}function hn(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var vn,bn,mn=function(e){var t=e.svgRef,n=e.title,r=hn(e,dn);return i.a.createElement("svg",pn({viewBox:"0 0 93.5 72",width:"1.3in",height:"1in",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,ln||(ln=i.a.createElement("g",null,i.a.createElement("path",{d:"M79.7,31.7h0V8.7H13v54h42.6c3.2,2.2,7,3.5,11.2,3.5,10.8,0,19.6-8.8,19.6-19.6s-2.6-11.2-6.8-14.8ZM18.8,14.5h55v11.4H18.8v-11.4ZM18.8,31.7h35.2c-4.2,3.6-6.8,8.9-6.8,14.8s1.1,7.3,3,10.3h-31.3v-25.2ZM62.5,56.7l-8.6-9.3,4.3-4,4.6,4.9,13-12.1,4,4.3-17.3,16Z"}))))},yn=i.a.forwardRef((function(e,t){return i.a.createElement(mn,pn({svgRef:t},e))})),gn=(n.p,["svgRef","title"]);function wn(){return wn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wn.apply(this,arguments)}function xn(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var On,jn,kn,Sn,En=function(e){var t=e.svgRef,n=e.title,r=xn(e,gn);return i.a.createElement("svg",wn({width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,vn||(vn=i.a.createElement("path",{d:"M15,16c0.553,0,1-0.448,1-1V9c0-0.552-0.447-1-1-1H9C8.448,8,8,8.448,8,9v6c0,0.552,0.448,1,1,1H15z"})),bn||(bn=i.a.createElement("path",{d:"M5 16h1V8c0-1.104.896-2 2-2h8V5c0-1.104-.896-2-2-2H5C3.896 3 3 3.896 3 5v9C3 15.104 3.896 16 5 16zM8 19c0 1.104.896 2 2 2h9c1.104 0 2-.896 2-2v-9c0-1.104-.896-2-2-2h-1v8c0 1.104-.896 2-2 2H8V19z"})))},Cn=i.a.forwardRef((function(e,t){return i.a.createElement(En,wn({svgRef:t},e))})),Tn=(n.p,["svgRef","title"]);function In(){return In=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},In.apply(this,arguments)}function Pn(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ln,_n=function(e){var t=e.svgRef,n=e.title,r=Pn(e,Tn);return i.a.createElement("svg",In({viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:2,ref:t},r),n?i.a.createElement("title",null,n):null,On||(On=i.a.createElement("line",{x1:2,x2:22,y1:2,y2:22})),jn||(jn=i.a.createElement("line",{x1:12,x2:12,y1:17,y2:22})),kn||(kn=i.a.createElement("path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V17h12"})),Sn||(Sn=i.a.createElement("path",{d:"M15 9.34V6h1a2 2 0 0 0 0-4H7.89"})))},Rn=i.a.forwardRef((function(e,t){return i.a.createElement(_n,In({svgRef:t},e))})),Nn=(n.p,["svgRef","title"]);function Mn(){return Mn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mn.apply(this,arguments)}function An(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Dn,Fn=function(e){var t=e.svgRef,n=e.title,r=An(e,Nn);return i.a.createElement("svg",Mn({viewBox:"0 0 93.5 72",width:"1.3in",height:"1in",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,Ln||(Ln=i.a.createElement("g",null,i.a.createElement("path",{d:"M13,8.7v54h66.6V8.7H13ZM73.9,56.9H18.8v-25.2h55v25.2ZM18.8,25.9v-11.4h55v11.4H18.8Z"}))))},zn=i.a.forwardRef((function(e,t){return i.a.createElement(Fn,Mn({svgRef:t},e))})),Bn=(n.p,["svgRef","title"]);function Hn(){return Hn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hn.apply(this,arguments)}function Un(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Wn=function(e){var t=e.svgRef,n=e.title,r=Un(e,Bn);return i.a.createElement("svg",Hn({viewBox:"0 0 93.5 72",width:"1.3in",height:"1in",fill:"currentColor",ref:t},r),n?i.a.createElement("title",null,n):null,Dn||(Dn=i.a.createElement("g",null,i.a.createElement("path",{d:"M4.9,17.6v54h66.6V17.6H4.9ZM65.8,65.8H10.7v-25.2h55v25.2h0ZM10.7,34.8v-11.4h55v11.4H10.7Z"}),i.a.createElement("polygon",{points:"22.1 .4 22.1 6.2 57.8 6.2 57.8 6.2 82.9 6.2 82.9 54.4 88.7 54.4 88.7 .4 22.1 .4"}))))},qn=i.a.forwardRef((function(e,t){return i.a.createElement(Wn,Hn({svgRef:t},e))})),Gn=(n.p,n(89)),Vn=Object(Gn.a)(o.createElement("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"}),"Link"),Kn=Object(Gn.a)(o.createElement("path",{d:"M12 2.02c-5.51 0-9.98 4.47-9.98 9.98s4.47 9.98 9.98 9.98 9.98-4.47 9.98-9.98S17.51 2.02 12 2.02zM11.48 20v-6.26H8L13 4v6.26h3.35L11.48 20z"}),"OfflineBolt"),$n=Object(Gn.a)(o.createElement("path",{d:"M12 2.02c-5.51 0-9.98 4.47-9.98 9.98s4.47 9.98 9.98 9.98 9.98-4.47 9.98-9.98S17.51 2.02 12 2.02zm0 17.96c-4.4 0-7.98-3.58-7.98-7.98S7.6 4.02 12 4.02 19.98 7.6 19.98 12 16.4 19.98 12 19.98zM12.75 5l-4.5 8.5h3.14V19l4.36-8.5h-3z"}),"OfflineBoltOutlined"),Yn=Object(Gn.a)(o.createElement("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"AddCircleOutline"),Qn=Object(Gn.a)(o.createElement("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined"),Xn=Object(Gn.a)(o.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Zn=Object(Gn.a)(o.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Jn=Object(Gn.a)(o.createElement("path",{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H8V4h12v12zm-7-1h2v-4h4V9h-4V5h-2v4H9v2h4z"}),"AddToPhotosOutlined"),er=Object(Gn.a)(o.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),tr=Object(Gn.a)(o.createElement("path",{d:"M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z"}),"FavoriteBorder"),nr=Object(Gn.a)(o.createElement("path",{d:"M14.06 9.02l.92.92L5.92 19H5v-.92l9.06-9.06M17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29zm-3.6 3.19L3 17.25V21h3.75L17.81 9.94l-3.75-3.75z"}),"EditOutlined"),rr=Object(Gn.a)(o.createElement("path",{d:"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"}),"KeyboardReturn"),or=Object(Gn.a)(o.createElement("path",{d:"M14.59 8L12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41 14.59 8zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"HighlightOff"),ir=Object(Gn.a)(o.createElement("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList"),ar=n(260),cr=Object(Gn.a)(o.createElement("path",{d:"M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5z"}),"CallMade"),ur=Object(Gn.a)(o.createElement("path",{d:"M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z"}),"HelpOutline"),lr=Object(Gn.a)(o.createElement("path",{d:"M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"}),"Code"),sr=n(261),fr=Object(Gn.a)(o.createElement("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert"),dr=Object(Gn.a)(o.createElement("path",{d:"M17 20.41L18.41 19 15 15.59 13.59 17 17 20.41zM7.5 8H11v5.59L5.59 19 7 20.41l6-6V8h3.5L12 3.5 7.5 8z"}),"MergeTypeOutlined"),pr=Object(Gn.a)(o.createElement("path",{d:"M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"}),"VerticalAlignTop"),hr=Object(Gn.a)(o.createElement("path",{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z"}),"VolumeOff"),vr=Object(Gn.a)(o.createElement("path",{d:"M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarBorder"),br=Object(Gn.a)(o.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12zm8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8z"}),"Block"),mr=Object(Gn.a)(o.createElement("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"}),"Replay"),yr=Object(Gn.a)(o.createElement("path",{d:"M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess"),gr=Object(Gn.a)(o.createElement("path",{d:"M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.41z"}),"DoneAll"),wr=Object(Gn.a)(o.createElement("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92z"}),"Share"),xr=Object(Gn.a)(o.createElement("path",{d:"M16.59 7.58L10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"CheckCircleOutline"),Or=Object(Gn.a)(o.createElement("path",{d:"M2.5 4v3h5v12h3V7h5V4h-13zm19 5h-9v3h3v7h3v-7h3V9z"}),"TextFields"),jr=Object(Gn.a)(o.createElement("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined");n.d(t,"UrlIcon",(function(){return kr})),n.d(t,"BbcodeIcon",(function(){return Sr})),n.d(t,"CsvIcon",(function(){return Er})),n.d(t,"JsonIcon",(function(){return Cr})),n.d(t,"AudibleIcon",(function(){return Tr})),n.d(t,"BrowserIcon",(function(){return Ir})),n.d(t,"BackupIcon",(function(){return Pr})),n.d(t,"CollectionIcon",(function(){return Lr})),n.d(t,"CopyIcon",(function(){return _r})),n.d(t,"DefaultFavIconIcon",(function(){return Rr})),n.d(t,"DeleteIcon",(function(){return Nr})),n.d(t,"ExportIcon",(function(){return Mr})),n.d(t,"FileIcon",(function(){return Ar})),n.d(t,"FileBadIcon",(function(){return Dr})),n.d(t,"FileGoodIcon",(function(){return Fr})),n.d(t,"FlaskIcon",(function(){return zr})),n.d(t,"FolderIcon",(function(){return Br})),n.d(t,"HeartIcon",(function(){return Hr})),n.d(t,"HistoryIcon",(function(){return Ur})),n.d(t,"ImportIcon",(function(){return Wr})),n.d(t,"IncognitoIcon",(function(){return qr})),n.d(t,"MarkdownIcon",(function(){return Gr})),n.d(t,"PasteIcon",(function(){return Vr})),n.d(t,"PinIcon",(function(){return Kr})),n.d(t,"SearchIcon",(function(){return $r})),n.d(t,"SettingsIcon",(function(){return Yr})),n.d(t,"SnapshotIcon",(function(){return Qr})),n.d(t,"SortTitleIcon",(function(){return Xr})),n.d(t,"SortUrlIcon",(function(){return Zr})),n.d(t,"ThisWindowIcon",(function(){return Jr})),n.d(t,"TipIcon",(function(){return eo})),n.d(t,"UnifyIcon",(function(){return to})),n.d(t,"UnpinIcon",(function(){return no})),n.d(t,"WindowIcon",(function(){return ro})),n.d(t,"WindowsIcon",(function(){return oo})),n.d(t,"LinkIcon",(function(){return io})),n.d(t,"AutoDetectOnIcon",(function(){return Kn})),n.d(t,"AutoDetectOffIcon",(function(){return $n})),n.d(t,"AddIcon",(function(){return Yn})),n.d(t,"AboutIcon",(function(){return Qn})),n.d(t,"CheckboxCheckedIcon",(function(){return Xn})),n.d(t,"CheckboxEmptyIcon",(function(){return Zn})),n.d(t,"CloneIcon",(function(){return Jn})),n.d(t,"CloseIcon",(function(){return er})),n.d(t,"CloseTabIcon",(function(){return er})),n.d(t,"DonateIcon",(function(){return tr})),n.d(t,"EditIcon",(function(){return nr})),n.d(t,"EnterIcon",(function(){return rr})),n.d(t,"ErrorIcon",(function(){return or})),n.d(t,"FilterIcon",(function(){return ir})),n.d(t,"GearIcon",(function(){return ar.a})),n.d(t,"GoToIcon",(function(){return cr})),n.d(t,"HelpIcon",(function(){return ur})),n.d(t,"HtmlIcon",(function(){return lr})),n.d(t,"ImageIcon",(function(){return sr.a})),n.d(t,"KebabIcon",(function(){return fr})),n.d(t,"MergeIcon",(function(){return dr})),n.d(t,"MoveToTopIcon",(function(){return pr})),n.d(t,"MutedIcon",(function(){return hr})),n.d(t,"NotFoundIcon",(function(){return or})),n.d(t,"RateIcon",(function(){return vr})),n.d(t,"RemoveIcon",(function(){return br})),n.d(t,"RestoreIcon",(function(){return mr})),n.d(t,"ArrowUpIcon",(function(){return yr})),n.d(t,"SelectDuplicatesIcon",(function(){return gr})),n.d(t,"ShareIcon",(function(){return wr})),n.d(t,"SuccessIcon",(function(){return xr})),n.d(t,"TitleIcon",(function(){return Or})),n.d(t,"WarningIcon",(function(){return jr}));var kr=function(){return i.a.createElement("span",{style:{fontWeight:600,letterSpacing:1}},"://")},Sr=function(){return i.a.createElement("span",{style:{fontSize:"0.9rem",fontWeight:600}},"BB")},Er=function(){return i.a.createElement("span",{style:{fontWeight:600,padding:"0 3px"}},'","')},Cr=function(){return i.a.createElement("span",{style:{fontSize:"0.9rem",fontWeight:600,padding:"0 3px"}},"{ }")},Tr=Object(a.a)(h),Ir=Object(a.a)(E),Pr=Object(a.a)(w,{noFill:!0}),Lr=Object(a.a)(Object(a.d)(_,.86,.86)),_r=Object(a.a)(U),Rr=Object(a.a)(W.a),Nr=Object(a.a)(Y,{noFill:!0}),Mr=Object(a.a)(ne),Ar=Object(a.a)(fe,{noFill:!0}),Dr=Object(a.a)(ge,{noFill:!0}),Fr=Object(a.a)(Ce,{noFill:!0}),zr=Object(a.a)(Re,{noFill:!0}),Br=Object(a.a)(ze),Hr=Object(a.a)(Object(a.d)(Ge,.9,.9)),Ur=Object(a.a)(Xe),Wr=Object(a.a)(rt),qr=Object(a.a)(Object(a.d)(ft,.82,.82)),Gr=Object(a.a)(Object(a.d)(dt.a,1.1,1.4)),Vr=Object(a.a)(Object(a.d)(yt,.9,.9),{noFill:!0}),Kr=Object(a.a)(St),$r=Object(a.a)(Lt),Yr=Object(a.a)(zt),Qr=Object(a.a)(Zt),Xr=Object(a.a)(on),Zr=Object(a.a)(fn),Jr=Object(a.a)(yn),eo=Object(a.a)(Vt),to=Object(a.a)(Cn),no=Object(a.a)(Object(a.d)(Rn,.86,.86)),ro=Object(a.a)(zn),oo=Object(a.a)(qn),io=Object(a.c)(Vn,-45)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(68),o=n(16);function i(e){Object(o.a)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===Object(r.a)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):("string"!==typeof e&&"[object String]"!==t||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(91);function o(e){if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=Object(r.a)(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i,a=!0,c=!1;return{s:function(){o=e[Symbol.iterator]()},n:function(){var e=o.next();return a=e.done,e},e:function(e){c=!0,i=e},f:function(){try{a||null==o.return||o.return()}finally{if(c)throw i}}}}},function(e,t,n){"use strict";var r=n(4),o=n(15),i=n(0),a=n.n(i),c=n(154),u=n.n(c),l=n(222),s=n(257),f=n(205),d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var i=t.defaultTheme,c=t.withTheme,d=void 0!==c&&c,p=t.name,h=Object(o.a)(t,["defaultTheme","withTheme","name"]);var v=p,b=Object(l.a)(e,Object(r.a)({defaultTheme:i,Component:n,name:p||n.displayName,classNamePrefix:v},h)),m=a.a.forwardRef((function(e,t){e.classes;var c,u=e.innerRef,l=Object(o.a)(e,["classes","innerRef"]),h=b(Object(r.a)({},n.defaultProps,e)),v=l;return("string"===typeof p||d)&&(c=Object(f.a)()||i,p&&(v=Object(s.a)({theme:c,name:p,props:l})),d&&!v.theme&&(v.theme=c)),a.a.createElement(n,Object(r.a)({ref:u||t,classes:h},v))}));return u()(m,n),m}},p=n(143);t.a=function(e,t){return d(e,Object(r.a)({defaultTheme:p.a},t))}},function(e,t,n){"use strict";n.d(t,"i",(function(){return l})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return f})),n.d(t,"f",(function(){return d})),n.d(t,"g",(function(){return h})),n.d(t,"e",(function(){return v})),n.d(t,"h",(function(){return b})),n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return y}));var r=n(3),o=n(14),i=n(1),a=n(90),c=n.n(a),u=n(12);function l(e,t){return t?Object.fromEntries(t.map((function(t){return[t,e[t]]})).filter((function(e){return void 0!==Object(o.a)(e,2)[1]}))):Object(i.a)({},e)}function s(e,t){return Object.fromEntries(Object.entries(e).filter((function(e){var n=Object(o.a)(e,2),r=n[0],i=n[1];return t(i,r)})))}function f(e){return s(e,(function(e){return null!=e}))}function d(e,t){return Object.fromEntries(Object.entries(e).map((function(e){var n=Object(o.a)(e,2),r=n[0],i=n[1];return[r,t(i,r)]})))}function p(e,t){if(c()(e)&&c()(t)||c()(e)&&void 0===t||void 0===e&&c()(t)){e=void 0===e?{}:e,t=void 0===t?{}:t;var n=Object(u.q)([].concat(Object(r.a)(Object.keys(e)),Object(r.a)(Object.keys(t))));return Object.fromEntries(n.map((function(n){return[n,p(e[n],t[n])]})))}return Object(u.c)([e,t])}function h(e){var t=e.slice(1);return t.length||(t=[void 0]),t.reduce(p,e[0])}function v(e,t){return void 0!==e[t]}function b(e,t){return void 0===e[t]}function m(e,t){for(var n=Object.assign({},e,t),r=0,o=Object.keys(e);r<o.length;r++){var i=o[r];c()(e[i])&&c()(t[i])&&(n[i]=m(e[i],t[i]))}return n}function y(e){return Object.entries(e)}},,function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"d",(function(){return b})),n.d(t,"a",(function(){return m})),n.d(t,"g",(function(){return g})),n.d(t,"i",(function(){return w})),n.d(t,"h",(function(){return O})),n.d(t,"f",(function(){return j})),n.d(t,"c",(function(){return S})),n.d(t,"b",(function(){return C})),n.d(t,"e",(function(){return I}));var r,o,i,a,c=n(26),u=n(2),l=n(96),s=n.n(l),f=n(172),d=n.n(f);function p(){p=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(I){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new E(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(I){return{type:"throw",arg:I}}}e.wrap=l;var f={};function d(){}function h(){}function v(){}var b={};u(b,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(C([])));y&&y!==t&&n.call(y,i)&&(b=y);var g=v.prototype=d.prototype=Object.create(b);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return h.prototype=v,r(g,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:h,configurable:!0}),h.displayName=u(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,u(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},w(x.prototype),u(x.prototype,a,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new x(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(g),u(g,c,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=C,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var h=null===(r=globalThis.chrome)||void 0===r||null===(o=r.storage)||void 0===o?void 0:o.local,v=null===(i=globalThis.chrome)||void 0===i||null===(a=i.storage)||void 0===a?void 0:a.session;function b(){return!!h}function m(e,t){return y.apply(this,arguments)}function y(){return(y=Object(u.a)(p().mark((function e(t,n){var r,o;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=P(n)){e.next=3;break}return e.abrupt("return");case 3:if(null!=t){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,r.get(t);case 7:return e.t0=t,o=e.sent[e.t0],e.abrupt("return",o);case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){return m(e,"session")}function w(e,t,n){return x.apply(this,arguments)}function x(){return(x=Object(u.a)(p().mark((function e(t,n,r){var o;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=P(r)){e.next=3;break}return e.abrupt("return");case 3:if(null!=t){e.next=5;break}return e.abrupt("return");case 5:if(void 0!==n){e.next=7;break}return e.abrupt("return");case 7:return e.next=9,o.set(Object(c.a)({},t,n));case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function O(e,t){return w(e,t,"session")}function j(e){return k.apply(this,arguments)}function k(){return(k=Object(u.a)(p().mark((function e(t){return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(h){e.next=2;break}return e.abrupt("return");case 2:if(null!=t){e.next=4;break}return e.abrupt("return");case 4:return e.next=6,h.remove(t);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function S(){return E.apply(this,arguments)}function E(){return(E=Object(u.a)(p().mark((function e(){var t;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(h){e.next=2;break}return e.abrupt("return",[]);case 2:if(!h.getKeys){e.next=4;break}return e.abrupt("return",h.getKeys());case 4:return e.next=6,h.get(null);case 6:return t=e.sent,e.abrupt("return",Object.keys(t));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function C(e){return T.apply(this,arguments)}function T(){return(T=Object(u.a)(p().mark((function e(t){var n;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",null!==(n=null===h||void 0===h?void 0:h.getBytesInUse(t))&&void 0!==n?n:0);case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function I(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.throttle,o=void 0===r?0:r,i=n.skipInitial;if(h){var a=!0,c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.rateLimit,r=t.listen,o="throttle"===(null===n||void 0===n?void 0:n.type)?s()(e,n.delay,{leading:!0,trailing:!0}):"debounce"===(null===n||void 0===n?void 0:n.type)?d()(e,n.delay):e;return function(e,t){"local"===t&&(r&&!r.some((function(t){return t in e}))||o(e))}}((function(n){a&&e in n&&t(n[e].newValue)}),{rateLimit:{type:"throttle",delay:o},listen:[e]});return i||m(e).then((function(e){a&&t(e)})),globalThis.chrome.storage.onChanged.addListener(c),function(){a=!1,globalThis.chrome.storage.onChanged.removeListener(c)}}}function P(e){return"session"===e?v:h}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return h})),n.d(t,"c",(function(){return v}));var r=n(57),o=n(11),i=n(7),a=n(17),c=n(56),u=n(63),l=n(112),s=n(156),f=n(163),d=n(99),p=Object(r.a)({reducer:{content:i.b,settings:a.h,notification:c.c,confirmation:u.b,setEdit:l.b,itemEdit:s.b,unitAddSession:f.a,criticalError:d.c}}),h=o.b,v=o.c},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return f})),n.d(t,"b",(function(){return d}));var r=n(2),o=n(14),i=n(0),a=n(110),c=n(144);function u(){u=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(I){l=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),c=new E(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(I){return{type:"throw",arg:I}}}e.wrap=s;var d={};function p(){}function h(){}function v(){}var b={};l(b,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(C([])));y&&y!==t&&n.call(y,i)&&(b=y);var g=v.prototype=p.prototype=Object.create(b);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,i,a,c){var u=f(e[r],e,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return h.prototype=v,r(g,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:h,configurable:!0}),h.displayName=l(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},w(x.prototype),l(x.prototype,a,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new x(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=C,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}var l,s={},f=function(){var e=Object(i.useState)(null),t=Object(o.a)(e,2),n=t[0],r=t[1];return Object(i.useEffect)((function(){d().then((function(e){r(e)}))}),[]),n};function d(){return l||(l=function(){return p.apply(this,arguments)}()),l}function p(){return(p=Object(r.a)(u().mark((function e(){var t;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!s.id||!s.settings){e.next=2;break}return e.abrupt("return",s);case 2:return t=Object(a.a)(c.a),e.next=5,t.get("clientId");case 5:if(s.id=e.sent,s.id){e.next=8;break}throw new Error("local db does not specify a client id");case 8:return e.next=10,t.get("clientCreated");case 10:return s.created=e.sent,s.settings=t,e.abrupt("return",s);case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"d",(function(){return l})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return f})),n.d(t,"e",(function(){return d}));var r=n(1),o=n(14),i=n(201),a=n.n(i),c=n(12);function u(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object(c.q)(t.map((function(e){return a()(e)?Object.entries(e).filter((function(e){return Object(o.a)(e,2)[1]})).map((function(e){return Object(o.a)(e,1)[0]})):e})).flat()).join(" ").trim()}function l(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.map((function(e){return e?"".concat(e,"px"):0})).join(" ")}function s(e){return{display:"-webkit-box","-webkit-line-clamp":e,"-webkit-box-orient":"vertical",overflow:"hidden",textOverflow:"ellipsis"}}function f(){return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.thickness,n=void 0===t?7:t,o=e.spacing,i=void 0===o?3:o,a=e.color,c=void 0===a?"transparent":a,u=e.hoverColor,l=e.focusColor,s=e.backgroundColor,f=void 0===s?"transparent":s,d=n+2*i;return Object(r.a)(Object(r.a)({"&::-webkit-scrollbar-track":{backgroundColor:f},"&::-webkit-scrollbar-track-piece":{backgroundColor:f},"&::-webkit-scrollbar":{width:d,height:d},"&::-webkit-scrollbar-thumb":{borderRadius:1e3,backgroundColor:c,border:"".concat(i,"px solid ").concat(f),backgroundClip:"padding-box"},"&::-webkit-scrollbar-corner":{backgroundColor:f},"&::-webkit-resizer":{background:"linear-gradient(135deg, transparent 0 50%, ".concat(c," 50% 100%)"),border:"6px solid ".concat(f)}},u?{"&:hover":{"&::-webkit-scrollbar-thumb":{backgroundColor:u},"&::-webkit-resizer":{background:"linear-gradient(135deg, transparent 0 50%, ".concat(u," 50% 100%)")}}}:null),l?{"&:focus, &:focus:hover":{"&::-webkit-scrollbar-thumb":{backgroundColor:l},"&::-webkit-resizer":{background:"linear-gradient(135deg, transparent 0 50%, ".concat(l," 50% 100%)")}}}:null)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(204);function o(e){if("string"!==typeof e)throw new Error(Object(r.a)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},function(e,t,n){"use strict";function r(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}var o=n(12);n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c}));var i=["http","https","www","file"];function a(e){return e?c(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],arguments.length>2&&void 0!==arguments[2]?arguments[2]:"text").matchParts.length:0}function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"text";if(!(null===t||void 0===t?void 0:t.length)||!e)return{parts:e?[e]:[],matchParts:[]};var a=t.map((function(e){return e.toLowerCase()})),c=Object(o.q)("url"===n?a.filter((function(e){return!i.includes(e)})):a),u="text"===n?function(e,t){var n="\\b(".concat(t.map(r).join("|"),")"),o=new RegExp(n,"gi");return e.split(o)}(e,c):function(e,t){var n="\\b(".concat(t.map(r).join("|"),")"),o=new RegExp(n,"gi");return e.split(o)}(e,c),l=u.filter((function(e){return c.includes(e.toLowerCase())}));return{parts:u,matchParts:l}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(1),o=n(14),i=n(0),a=n.n(i),c=n(184),u=n(176),l=n.n(u),s=n(221),f=function(e){return e?{minWidth:0,padding:12,borderRadius:1e3}:void 0},d=function(e){var t=e.selected,n=e.selectedColor,r=e.standardColor,o=e.stateTreatment,i=e.disabled,a=e.palette;if(t&&!i){if("primary"===n||"secondary"===n)return p(n,o,a);if("hover"===n&&r)return p(r,o,a);var c=a.nxsAction[n]||a.nxsAction.hover||a.nxsAction.focus||a.nxsAction.active||a.nxsAction.selected;return{color:c.contrastText,backgroundColor:c.main}}},p=function(e,t,n){return{color:n[e].contrastText,backgroundColor:n[e][h(t,n.type)]}},h=function(e,t){return"dark"===e||"light"===e?e:"match"===e?t:"dark"===t?"light":"dark"},v=l()((function(e){var t=e.selected,n=e.selectedColor,o=e.label,i=e.stateTreatment,a=e.round,u=e.standardColor,l=e.disabled;return Object(c.a)((function(e){return{Button:Object(r.a)(Object(r.a)({transition:e.transitions.create(["background-color"],{duration:e.transitions.duration.shortest}),minWidth:76},f(a)),{},{"&&&&":Object(r.a)({},d({selected:t,selectedColor:n,standardColor:u,stateTreatment:i,disabled:l,palette:e.palette}))}),text:{padding:a?void 0:"6px 16px","&:hover":{color:e.palette.nxsAction.hover.contrastText,backgroundColor:e.palette.nxsAction.hover.main},"&:focus":{color:e.palette.nxsAction.focus.contrastText,backgroundColor:e.palette.nxsAction.focus.main},"&:active":{color:e.palette.nxsAction.active.contrastText,backgroundColor:e.palette.nxsAction.active.main}},outlined:{"&:hover":{color:e.palette.nxsAction.hover.contrastText,backgroundColor:e.palette.nxsAction.hover.main},"&:focus":{color:e.palette.nxsAction.focus.contrastText,backgroundColor:e.palette.nxsAction.focus.main},"&:active":{color:e.palette.nxsAction.active.contrastText,backgroundColor:e.palette.nxsAction.active.main}},contained:{"&.Mui-disabled":{backgroundColor:"transparent"}},containedPrimary:{"&:hover, &:focus, &:active":p("primary",i,e.palette)},containedSecondary:{"&:hover, &:focus, &:active":p("secondary",i,e.palette)},startIcon:{marginRight:o?void 0:0,marginLeft:o?void 0:0}}}))}),(function(e){var t=e.selected,n=e.selectedColor,r=e.label,o=e.stateTreatment,i=e.round,a=e.standardColor,c=e.disabled;return"".concat(i,"*").concat(t,"*").concat(c,"*").concat(o,"*").concat(n,"*").concat(a||"","*").concat(r)})),b=function(e){var t=e.round,n=void 0!==t&&t,r=e.color,i=e.outlined,c=e.selected,u=void 0!==c&&c,l=e.selectedColor,f=void 0===l?"selected":l,d=e.icon,p=e.label,h=void 0===p?"":p,b=e.className,m=e.onClick,y=e.disabled,g=void 0!==y&&y,w=e.size,x=e.type,O=e.autoFocus,j=e.tabIndex,k=e.link,S=function(e){var t=(e||"").split("-"),n=Object(o.a)(t,2),r=n[0],i=n[1];return{standardColor:r||void 0,stateTreatment:void 0===i?"invert":i}}(r),E=S.standardColor,C=S.stateTreatment,T=v({selected:u,selectedColor:f,label:h,stateTreatment:C,round:n,standardColor:E,disabled:g})(),I=a.a.createElement(s.a,{className:b,classes:{root:T.Button,text:T.text,outlined:T.outlined,contained:T.contained,containedPrimary:T.containedPrimary,containedSecondary:T.containedSecondary,startIcon:T.startIcon},color:E,startIcon:d,variant:E?"contained":i?"outlined":"text",onClick:function(e){(null===m||void 0===m?void 0:m(e))&&e.currentTarget.blur(),e.stopPropagation()},disabled:g,size:w,type:x,autoFocus:O,tabIndex:j},h);return k?a.a.createElement("a",{tabIndex:-1,href:k,target:"_blank",rel:"noopener"},I):I}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return f}));var r=n(0),o=n.n(r),i=n(184),a=Object(i.a)((function(){return{root:{fill:function(e){return e.noFill?"none":"currentColor"},width:"1em",height:"1em",display:"inline-block",fontSize:"1.5rem",transition:"fill 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",flexShrink:0,userSelect:"none"}}}));function c(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).noFill,n=void 0!==t&&t;return function(t){var r=a({noFill:n});return o.a.createElement(e,Object.assign({className:r.root},t))}}var u=Object(i.a)((function(){return{root:{padding:1,boxSizing:"border-box"}}}));function l(e){return function(t){var n=u();return o.a.createElement(e,Object.assign({className:n.root},t))}}function s(e,t){return function(n){return o.a.createElement(e,Object.assign({},n,{style:{rotate:"".concat(t,"deg")}}))}}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return function(r){return o.a.createElement(e,Object.assign({},r,{style:{scale:"".concat(t," ").concat(n)}}))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var r=n(10),o=10;function i(e,t,n,o){var i=e.count,a=void 0===i?1:i,c=e.includeCount,u=void 0!==c&&c;return 1===a?u?"1 ".concat(t):t:0===a&&o?u?o.withCount:o.bare:u?"".concat(r.a.integer(a)," ").concat(n):n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(10),o=n(35),i={tabsSaved:function(){return"".concat(r.a.tab({count:o.a})," saved")},collectionSaved:function(){return"".concat(r.a.collection()," saved")},collectionCloned:function(){return"".concat(r.a.collection()," cloned")},collectionsCombined:function(e){return"".concat(r.a.collection({count:e,includeCount:!0})," combined")},collectionDeleted:function(e){return e?"".concat(r.a.collection(),' "').concat(e,'" deleted'):"".concat(r.a.collection()," deleted")},collectionsDeleted:function(e){return"".concat(r.a.collection({count:e,includeCount:!0})," deleted")},tryAgain:function(){return"try again"},failedToDeleteCollection:function(e){return e?"failed to delete ".concat(r.a.collection(),' "').concat(e,'"'):"failed to delete ".concat(r.a.collection())},failedToDeleteCollections:function(e){return"failed to delete ".concat(r.a.collection({count:e,includeCount:!0}))},failedToDeleteEvents:function(e){return"failed to delete ".concat(r.a.event({count:e,includeCount:!0}))},failedToSaveTabs:function(){return"failed to save ".concat(r.a.tab({count:o.a}))},failedToSaveCollection:function(){return"failed to save ".concat(r.a.collection())},failedToCloneCollection:function(){return"failed to clone ".concat(r.a.collection())},failedToCombineCollections:function(){return"failed to combine ".concat(r.a.collection({count:o.a}))},failedToUpdateCollection:function(){return"failed to update ".concat(r.a.collection())},inSet:function(e){var t=e.type,n=e.title,o=e.idx,i=e.totalCount;return"in ".concat(r.a[t]()," ").concat(n?'"'.concat(n,'" '):"","(").concat(o+1," of ").concat(i,")")}}},function(e,t,n){"use strict";var r=function(e){return crypto.getRandomValues(new Uint8Array(e))};n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c}));var o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",i=function(e){return function(e,t,n){var r=(2<<Math.log(e.length-1)/Math.LN2)-1,o=-~(1.6*r*t/e.length);return function(){for(var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,a="";;)for(var c=n(o),u=o;u--;)if((a+=e[c[u]&r]||"").length===i)return a}}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:21,r)}(o,23);function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Math.floor((o.indexOf(e[0])+1)/o.length*100)}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return Math.max(o.indexOf(e[0]),0)%t}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return v})),n.d(t,"d",(function(){return b})),n.d(t,"c",(function(){return m})),n.d(t,"e",(function(){return g}));var r=n(14),o=n(26),i=n(1),a=n(2),c=n(0),u=n(29),l=n(131),s=n(46),f=n(27),d=n(145);function p(){p=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(I){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new E(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(I){return{type:"throw",arg:I}}}e.wrap=l;var f={};function d(){}function h(){}function v(){}var b={};u(b,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(C([])));y&&y!==t&&n.call(y,i)&&(b=y);var g=v.prototype=d.prototype=Object.create(b);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return h.prototype=v,r(g,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:h,configurable:!0}),h.displayName=u(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,u(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},w(x.prototype),u(x.prototype,a,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new x(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(g),u(g,c,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=C,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var h=function(){var e=Object(a.a)(p().mark((function e(t){return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v([t]);case 2:return e.t0=t,e.abrupt("return",e.sent[e.t0]);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),v=function(){var e=Object(a.a)(p().mark((function e(t){var n,r,o;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(u.b)();case 2:return n=e.sent,r=n.settings,e.next=6,r.get("experiments");case 6:if(e.t0=e.sent,e.t0){e.next=9;break}e.t0={};case 9:return o=e.t0,e.abrupt("return",m({keys:t,savedExperiments:o}));case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),b=function(){var e=Object(a.a)(p().mark((function e(t,n){var r,a,c;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(u.b)();case 2:return r=e.sent,a=r.settings,e.next=6,a.get("experiments");case 6:if(e.t0=e.sent,e.t0){e.next=9;break}e.t0={};case 9:return c=e.t0,e.next=12,a.set("experiments",Object(i.a)(Object(i.a)({},c),{},Object(o.a)({},t,n)));case 12:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();function m(e){var t=e.keys,n=e.savedExperiments,r={};return d.a.filter((function(e){var n=e.key;return!t||t.includes(n)})).forEach((function(e){var t=n[e.key];r[e.key]=null==t?e.defaultValue:"number"===typeof t?Object(s.a)(t,"min"in e&&"number"===typeof e.min?e.min:void 0,"max"in e&&"number"===typeof e.max?e.max:void 0):t})),r}var y={"collection-fetch-all":"collectionFetchAll","collection-fetch-count-initial":"collectionFetchCountInitial","collection-fetch-count-lazy":"collectionFetchCountLazy","copy-collections-max":"copyCollectionsMax","history-fetch-all":"historyFetchAll","history-fetch-count-initial":"historyFetchCountInitial","history-fetch-count-lazy":"historyFetchCountLazy","ingest-max-size":"ingestMaxSize","omit-sb-title-suffix":"omitSbTitleSuffix","optimized-open-delay":"optimizedOpenDelay","optimized-open-threshold":"optimizedOpenThreshold","remove-title-suffixes":"removeTitleSuffixes","use-theme-sensitive-favicons":"useThemeSensitiveFavicons","warn-on-open-tab-count":"warnOnOpenTabCount"},g=function(){Object(c.useEffect)((function(){try{navigator.locks.request("migrateExperiments",{mode:"exclusive",ifAvailable:!0},function(){var e=Object(a.a)(p().mark((function e(t){var n,r,o,a;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,Object(u.b)();case 5:return n=e.sent,r=n.settings,e.next=9,r.get("enableAutoBackup");case 9:if(!1!==(o=e.sent)){e.next=21;break}return e.next=13,r.get("experiments");case 13:if(e.t0=e.sent,e.t0){e.next=16;break}e.t0={};case 16:return a=e.t0,e.next=19,r.set("experiments",Object(i.a)(Object(i.a)({},a),{},{enableAutoBackup:o}));case 19:return e.next=21,r.set("enableAutoBackup",!0);case 21:e.next=25;break;case 23:e.prev=23,e.t1=e.catch(2);case 25:return e.prev=25,e.next=28,Object(f.f)("debug");case 28:e.next=32;break;case 30:e.prev=30,e.t2=e.catch(25);case 32:return e.next=34,w();case 34:e.sent&&Object(l.b)();case 36:case"end":return e.stop()}}),e,null,[[2,23],[25,30]])})));return function(t){return e.apply(this,arguments)}}()).then((function(){var e=!1;window.addEventListener("storage",(function(t){var n;e||(null===(n=t.key)||void 0===n?void 0:n.startsWith("nxs.experiment."))&&null!=t.newValue&&(console.log("%cTo update an experiment, go to ".concat(window.location.origin,"/experiments.html"),"background:#af2c1a;color:white;padding:8px 12px;border-radius:8px;"),e=!0)}))}))}catch(e){console.error(e)}}),[])};function w(){return x.apply(this,arguments)}function x(){return(x=Object(a.a)(p().mark((function e(){var t,n,o,a,c,l,s,f,h,v,b,m,g,w,x;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(globalThis.localStorage){e.next=2;break}return e.abrupt("return");case 2:if(t=Object.keys(y).map((function(e){return[e,globalThis.localStorage.getItem("nxs.experiment.".concat(e))]})).filter((function(e){return null!=Object(r.a)(e,2)[1]})),t.length){e.next=5;break}return e.abrupt("return");case 5:return n=Object.fromEntries(t.map((function(e){var t=Object(r.a)(e,2),n=t[0],o=t[1];return[y[n],"true"===o||"false"!==o&&parseInt(null!==o&&void 0!==o?o:"",10)]})).filter((function(e){var t=Object(r.a)(e,2)[1];return!Number.isNaN(t)}))),e.next=8,Object(u.b)();case 8:return o=e.sent,a=o.settings,e.next=12,a.get("experiments");case 12:if(e.t0=e.sent,e.t0){e.next=15;break}e.t0={};case 15:return c=e.t0,e.next=18,a.set("experiments",Object(i.a)(Object(i.a)({},c),n));case 18:for(l=[],s=0;s<globalThis.localStorage.length;s++)(null===(f=globalThis.localStorage.key(s))||void 0===f?void 0:f.startsWith("nxs.experiment."))&&l.push(f);for(h=0,v=l;h<v.length;h++)b=v[h],globalThis.localStorage.removeItem(b);m=!1,g=p().mark((function e(){var t,n;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=x[w],!((n=d.a.find((function(e){return e.key===t})))&&"requiresReload"in n&&n.requiresReload)){e.next=5;break}return m=!0,e.abrupt("return","break");case 5:case"end":return e.stop()}}),e)})),w=0,x=Object.keys(n);case 24:if(!(w<x.length)){e.next=32;break}return e.delegateYield(g(),"t1",26);case 26:if("break"!==e.t1){e.next=29;break}return e.abrupt("break",32);case 29:w++,e.next=24;break;case 32:return e.abrupt("return",m);case 33:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},,function(e,t,n){"use strict";n.d(t,"l",(function(){return c})),n.d(t,"n",(function(){return u})),n.d(t,"m",(function(){return l})),n.d(t,"b",(function(){return s})),n.d(t,"p",(function(){return f})),n.d(t,"k",(function(){return d})),n.d(t,"f",(function(){return p})),n.d(t,"c",(function(){return h})),n.d(t,"e",(function(){return v})),n.d(t,"d",(function(){return b})),n.d(t,"h",(function(){return m})),n.d(t,"g",(function(){return y})),n.d(t,"j",(function(){return g})),n.d(t,"i",(function(){return w})),n.d(t,"q",(function(){return O})),n.d(t,"a",(function(){return j})),n.d(t,"o",(function(){return k}));var r=n(13),o=["/","?","#",":"],i=[".jpg",".jpeg",".png",".apng",".gif",".svg",".webp",".bmp",".ico"],a=["jpeg","png","apng","gif","svg+xml","webp","bmp"];function c(e,t){return e.startsWith(t)&&(e.length===t.length||o.includes(e[t.length]))}function u(e){try{return new URL(e)}catch(t){}return{}}function l(e){var t,n;return Array.from(null!==(t=null===(n=u(e).searchParams)||void 0===n?void 0:n.entries())&&void 0!==t?t:[])}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.substring(0,e.indexOf(":"))}function f(e){return Object(r.g)(Object(r.g)(e,"#"),"?")}function d(e){return"canParse"in URL?URL.canParse(e):p(e)||v(e)||!!(t=e)&&(t.startsWith("chrome://")||t.startsWith("brave://")||t.startsWith("edge://")||t.startsWith("opera://"))||b(e)||h(e)||function(e){return!!e&&e.startsWith("ftp://")}(e);var t}function p(e){return!!e&&(e.startsWith("https://")||e.startsWith("http://"))}function h(e){return!!e&&e.startsWith("data:")}function v(e){return!!e&&e.startsWith("file://")}function b(e){return!!e&&(e.startsWith("chrome-extension://")||e.startsWith("moz-extension://")||e.startsWith("extension://"))}function m(e){return!!e&&e.startsWith("javascript:")}function y(e){if(!e)return!1;var t="string"===typeof e?u(e):e,n=t.pathname,r=t.href;return!!(n&&r&&!h(r)&&i.some((function(e){return n.endsWith(e)}))||h(r)&&a.some((function(e){return r.startsWith("data:image/".concat(e,";base64,"))})))}function g(e){return x(e,["pdf"])}function w(e){return x(e,["md","markdown"])}function x(e,t){if(!e)return!1;var n=("string"===typeof e?u(e):e).pathname;return!!n&&t.some((function(e){return n.endsWith(".".concat(e))}))}function O(e){var t=e.url,n=e.key,r=e.value,o=new URL(t);return o.searchParams.set(n,r),o.toString()}function j(e){var t=e.url,n=e.key,r=new URL(t);return r.searchParams.delete(n),r.toString()}function k(e){window.history.pushState(null,"",e)}},,function(e,t,n){"use strict";function r(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function o(e){return!!e&&!!e[K]}function i(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===$}(e)||Array.isArray(e)||!!e[V]||!!(null===(t=e.constructor)||void 0===t?void 0:t[V])||d(e)||p(e))}function a(e,t,n){void 0===n&&(n=!1),0===c(e)?(n?Object.keys:Y)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function c(e){var t=e[K];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:d(e)?2:p(e)?3:0}function u(e,t){return 2===c(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function l(e,t){return 2===c(e)?e.get(t):e[t]}function s(e,t,n){var r=c(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function f(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function d(e){return U&&e instanceof Map}function p(e){return W&&e instanceof Set}function h(e){return e.o||e.t}function v(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Q(e);delete t[K];for(var n=Y(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function b(e,t){return void 0===t&&(t=!1),y(e)||o(e)||!i(e)||(c(e)>1&&(e.set=e.add=e.clear=e.delete=m),Object.freeze(e),t&&a(e,(function(e,t){return b(t,!0)}),!0)),e}function m(){r(2)}function y(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function g(e){var t=X[e];return t||r(18,e),t}function w(e,t){X[e]||(X[e]=t)}function x(){return B}function O(e,t){t&&(g("Patches"),e.u=[],e.s=[],e.v=t)}function j(e){k(e),e.p.forEach(E),e.p=null}function k(e){e===B&&(B=e.l)}function S(e){return B={p:[],l:B,h:e,m:!0,_:0}}function E(e){var t=e[K];0===t.i||1===t.i?t.j():t.g=!0}function C(e,t){t._=t.p.length;var n=t.p[0],o=void 0!==e&&e!==n;return t.h.O||g("ES5").S(t,e,o),o?(n[K].P&&(j(t),r(4)),i(e)&&(e=T(t,e),t.l||P(t,e)),t.u&&g("Patches").M(n[K].t,e,t.u,t.s)):e=T(t,n,[]),j(t),t.u&&t.v(t.u,t.s),e!==G?e:void 0}function T(e,t,n){if(y(t))return t;var r=t[K];if(!r)return a(t,(function(o,i){return I(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return P(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=v(r.k):r.o,i=o,c=!1;3===r.i&&(i=new Set(o),o.clear(),c=!0),a(i,(function(t,i){return I(e,r,o,t,i,n,c)})),P(e,o,!1),n&&e.u&&g("Patches").N(r,n,e.u,e.s)}return r.o}function I(e,t,n,r,a,c,l){if(o(a)){var f=T(e,a,c&&t&&3!==t.i&&!u(t.R,r)?c.concat(r):void 0);if(s(n,r,f),!o(f))return;e.m=!1}else l&&n.add(a);if(i(a)&&!y(a)){if(!e.h.D&&e._<1)return;T(e,a),t&&t.A.l||P(e,a)}}function P(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&b(t,n)}function L(e,t){var n=e[K];return(n?h(n):e)[t]}function _(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function R(e){e.P||(e.P=!0,e.l&&R(e.l))}function N(e){e.o||(e.o=v(e.t))}function M(e,t,n){var r=d(t)?g("MapSet").F(t,n):p(t)?g("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:x(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=Z;n&&(o=[r],i=J);var a=Proxy.revocable(o,i),c=a.revoke,u=a.proxy;return r.k=u,r.j=c,u}(t,n):g("ES5").J(t,n);return(n?n.A:x()).p.push(r),r}function A(e){return o(e)||r(22,e),function e(t){if(!i(t))return t;var n,r=t[K],o=c(t);if(r){if(!r.P&&(r.i<4||!g("ES5").K(r)))return r.t;r.I=!0,n=D(t,o),r.I=!1}else n=D(t,o);return a(n,(function(t,o){r&&l(r.t,t)===o||s(n,t,e(o))})),3===o?new Set(n):n}(e)}function D(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return v(e)}function F(){function e(e,t){var n=i[e];return n?n.enumerable=t:i[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[K];return Z.get(t,e)},set:function(t){var n=this[K];Z.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var o=e[t][K];if(!o.P)switch(o.i){case 5:r(o)&&R(o);break;case 4:n(o)&&R(o)}}}function n(e){for(var t=e.t,n=e.k,r=Y(n),o=r.length-1;o>=0;o--){var i=r[o];if(i!==K){var a=t[i];if(void 0===a&&!u(t,i))return!0;var c=n[i],l=c&&c[K];if(l?l.t!==a:!f(c,a))return!0}}var s=!!t[K];return r.length!==Y(t).length+(s?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;r<t.length;r++)if(!t.hasOwnProperty(r))return!0;return!1}var i={};w("ES5",{J:function(t,n){var r=Array.isArray(t),o=function(t,n){if(t){for(var r=Array(n.length),o=0;o<n.length;o++)Object.defineProperty(r,""+o,e(o,!0));return r}var i=Q(n);delete i[K];for(var a=Y(i),c=0;c<a.length;c++){var u=a[c];i[u]=e(u,t||!!i[u].enumerable)}return Object.create(Object.getPrototypeOf(n),i)}(r,t),i={i:r?5:4,A:n?n.A:x(),P:!1,I:!1,R:{},l:n,t:t,k:o,o:null,g:!1,C:!1};return Object.defineProperty(o,K,{value:i,writable:!0}),o},S:function(e,n,i){i?o(n)&&n[K].A===e&&t(e.p):(e.u&&function e(t){if(t&&"object"==typeof t){var n=t[K];if(n){var o=n.t,i=n.k,c=n.R,l=n.i;if(4===l)a(i,(function(t){t!==K&&(void 0!==o[t]||u(o,t)?c[t]||e(i[t]):(c[t]=!0,R(n)))})),a(o,(function(e){void 0!==i[e]||u(i,e)||(c[e]=!1,R(n))}));else if(5===l){if(r(n)&&(R(n),c.length=!0),i.length<o.length)for(var s=i.length;s<o.length;s++)c[s]=!1;else for(var f=o.length;f<i.length;f++)c[f]=!0;for(var d=Math.min(i.length,o.length),p=0;p<d;p++)i.hasOwnProperty(p)||(c[p]=!0),void 0===c[p]&&e(i[p])}}}}(e.p[0]),t(e.p))},K:function(e){return 4===e.i?n(e):r(e)}})}n.d(t,"a",(function(){return A})),n.d(t,"c",(function(){return F})),n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return i}));var z,B,H="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),U="undefined"!=typeof Map,W="undefined"!=typeof Set,q="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,G=H?Symbol.for("immer-nothing"):((z={})["immer-nothing"]=!0,z),V=H?Symbol.for("immer-draftable"):"__$immer_draftable",K=H?Symbol.for("immer-state"):"__$immer_state",$=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),Y="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Q=Object.getOwnPropertyDescriptors||function(e){var t={};return Y(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},X={},Z={get:function(e,t){if(t===K)return e;var n=h(e);if(!u(n,t))return function(e,t,n){var r,o=_(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!i(r)?r:r===L(e.t,t)?(N(e),e.o[t]=M(e.A.h,r,e)):r},has:function(e,t){return t in h(e)},ownKeys:function(e){return Reflect.ownKeys(h(e))},set:function(e,t,n){var r=_(h(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=L(h(e),t),i=null==o?void 0:o[K];if(i&&i.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(f(n,o)&&(void 0!==n||u(e.t,t)))return!0;N(e),R(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==L(e.t,t)||t in e.t?(e.R[t]=!1,N(e),R(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=h(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){r(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){r(12)}},J={};a(Z,(function(e,t){J[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),J.deleteProperty=function(e,t){return J.set.call(this,e,t,void 0)},J.set=function(e,t,n){return Z.set.call(this,e[0],t,n,e[0])};var ee=function(){function e(e){var t=this;this.O=q,this.D=!0,this.produce=function(e,n,o){if("function"==typeof e&&"function"!=typeof n){var a=n;n=e;var c=t;return function(e){var t=this;void 0===e&&(e=a);for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return c.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(o))}))}}var u;if("function"!=typeof n&&r(6),void 0!==o&&"function"!=typeof o&&r(7),i(e)){var l=S(t),s=M(t,e,void 0),f=!0;try{u=n(s),f=!1}finally{f?j(l):k(l)}return"undefined"!=typeof Promise&&u instanceof Promise?u.then((function(e){return O(l,o),C(e,l)}),(function(e){throw j(l),e})):(O(l,o),C(u,l))}if(!e||"object"!=typeof e){if(void 0===(u=n(e))&&(u=e),u===G&&(u=void 0),t.D&&b(u,!0),o){var d=[],p=[];g("Patches").M(e,u,d,p),o(d,p)}return u}r(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(o))}))};var r,o,i=t.produce(e,n,(function(e,t){r=e,o=t}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(e){return[e,r,o]})):[i,r,o]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){i(e)||r(8),o(e)&&(e=A(e));var t=S(this),n=M(this,e,void 0);return n[K].C=!0,k(t),n},t.finishDraft=function(e,t){var n=(e&&e[K]).A;return O(n,t),C(void 0,n)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!q&&r(20),this.O=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var i=g("Patches").$;return o(e)?i(e,t):this.produce(e,(function(e){return i(e,t)}))},e}(),te=new ee,ne=te.produce;te.produceWithPatches.bind(te),te.setAutoFreeze.bind(te),te.setUseProxies.bind(te),te.applyPatches.bind(te),te.createDraft.bind(te),te.finishDraft.bind(te);t.b=ne},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n(103);function i(e,t){return r.useMemo((function(){return null==e&&null==t?null:function(n){Object(o.a)(e,n),Object(o.a)(t,n)}}),[e,t])}},function(e,t,n){"use strict";n.d(t,"e",(function(){return u})),n.d(t,"g",(function(){return l})),n.d(t,"f",(function(){return s})),n.d(t,"d",(function(){return f})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return h})),n.d(t,"a",(function(){return v}));var r=n(3),o=n(1),i=n(174),a=n(32),c=n(12);function u(e){if(!(null===e||void 0===e?void 0:e.trim()))return null;var t=Object(i.parse)(e.toLowerCase(),{keywords:["collection","folder","link","history","window","tab"],tokenize:!0,alwaysArray:!0,offsets:!1}),n=Object(c.q)((t.text||[]).filter(m)),r=Object(c.q)((t.collection||[]).filter(m)),o=Object(c.q)((t.folder||[]).filter(m)),a=Object(c.q)((t.link||[]).filter(m)),u=Object(c.q)((t.history||[]).filter(m)),l=Object(c.q)((t.window||[]).filter(m)),s=Object(c.q)((t.tab||[]).filter(m));return n.length||r.length||o.length||a.length||u.length||l.length||s.length?{free:n,collection:r,folder:o,link:a,history:u,window:l,tab:s}:null}function l(e,t){var n,r,o,i;return(null!==(n=t.score)&&void 0!==n?n:0)-(null!==(r=e.score)&&void 0!==r?r:0)||(null!==(o=t.secondaryScore)&&void 0!==o?o:0)-(null!==(i=e.secondaryScore)&&void 0!==i?i:0)}function s(e){return"tab"===e.type||"link"===e.type}function f(e){return e.map((function(e){return Object(o.a)(Object(o.a)({},e),{},{tabs:(e.tabs||[]).filter((function(e){var t,n;return(null===(t=e.titleSplit)||void 0===t?void 0:t.matchParts.length)||(null===(n=e.urlSplit)||void 0===n?void 0:n.matchParts.length)}))})})).filter((function(e){var t;return(null===(t=e.titleSplit)||void 0===t?void 0:t.matchParts.length)||e.tabs.length}))}function d(e,t,n){return t?e.map((function(e){var i=Object(o.a)({},e);if(e.title){var c=Object(a.b)(e.title,[].concat(Object(r.a)(t.free),Object(r.a)(n?t.history:[]),Object(r.a)(t.window)));c.matchParts.length&&(i.titleSplit=c)}return Object(o.a)(Object(o.a)({},i),{},{tabs:p(e.tabs||[],t,n)})})):e}function p(e,t,n){return e.map((function(e){var i=Object(o.a)({},e),c=Object(a.b)(e.url,[].concat(Object(r.a)(t.free),Object(r.a)(n?t.history:[]),Object(r.a)(t.window),Object(r.a)(t.tab)),"url");c.matchParts.length&&(i.urlSplit=c);var u=Object(a.b)(e.title||e.url,[].concat(Object(r.a)(t.free),Object(r.a)(n?t.history:[]),Object(r.a)(t.window),Object(r.a)(t.tab)));return u.matchParts.length&&(i.titleSplit=u),i}))}function h(e){return e.map((function(e){return Object(o.a)(Object(o.a)({},e),{},{links:(e.links||[]).filter((function(e){var t,n;return(null===(t=e.titleSplit)||void 0===t?void 0:t.matchParts.length)||(null===(n=e.urlSplit)||void 0===n?void 0:n.matchParts.length)}))})})).filter((function(e){var t;return(null===(t=e.titleSplit)||void 0===t?void 0:t.matchParts.length)||e.links.length}))}function v(e,t){return t?e.map((function(e){var n=Object(o.a)({},e);if(e.title){var i=Object(a.b)(e.title,[].concat(Object(r.a)(t.free),Object(r.a)(t.collection),Object(r.a)(t.folder)));i.matchParts.length&&(n.titleSplit=i)}return Object(o.a)(Object(o.a)({},n),{},{links:b(e.links||[],t)})})):e}function b(e,t){return e.map((function(e){var n=Object(o.a)({},e),i=Object(a.b)(e.url,[].concat(Object(r.a)(t.free),Object(r.a)(t.collection),Object(r.a)(t.folder),Object(r.a)(t.link)),"url");i.matchParts.length&&(n.urlSplit=i);var c=Object(a.b)(e.title||e.url,[].concat(Object(r.a)(t.free),Object(r.a)(t.collection),Object(r.a)(t.folder),Object(r.a)(t.link)));return c.matchParts.length&&(n.titleSplit=c),n}))}function m(e){return e.length>1}},function(e,t,n){"use strict";function r(e){return"number"===typeof e&&Number.isFinite(e)}function o(e){return Number.isSafeInteger(e)}function i(e,t){return e-t}function a(e,t,n){var r=e;return null!=t&&(r=Math.max(r,t)),null!=n&&(r=Math.min(r,n)),r}n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return i})),n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"h",(function(){return d})),n.d(t,"f",(function(){return p})),n.d(t,"l",(function(){return h})),n.d(t,"d",(function(){return v})),n.d(t,"k",(function(){return b})),n.d(t,"c",(function(){return m})),n.d(t,"e",(function(){return y})),n.d(t,"g",(function(){return g})),n.d(t,"a",(function(){return w})),n.d(t,"i",(function(){return x})),n.d(t,"j",(function(){return O}));var r=n(2),o=n(22),i=n(107),a=n(12),c=n(70),u=n(5),l=n(6);function s(){s=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(I){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),c=new E(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(I){return{type:"throw",arg:I}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var b={};u(b,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(C([])));y&&y!==t&&n.call(y,i)&&(b=y);var g=v.prototype=p.prototype=Object.create(b);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,i,a,c){var u=f(e[r],e,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return h.prototype=v,r(g,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:h,configurable:!0}),h.displayName=u(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,u(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},w(x.prototype),u(x.prototype,a,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new x(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(g),u(g,c,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=C,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}var f=function(){return{selectedUnitIds:[],selectedGroupIds:[]}},d=function(e,t){var n=t.payload,r=n.groupIds,i=void 0===r?[]:r,a=n.unitIds,c=void 0===a?[]:a,s=n.additive,f=n.allGroups,d=n.favorUnits;if(e.items.selectedGroupIds=Object(l.x)(e.items.selectedGroupIds,i,s),e.items.selectedUnitIds=Object(l.x)(e.items.selectedUnitIds,c,s),(i.length&&c.length||s)&&f){var h,v=f.filter((function(t){var n=t.id;return e.items.selectedGroupIds.includes(n)})),b=Object(o.a)(v);try{for(b.s();!(h=b.n()).done;){var m=h.value,y=Object(u.u)(m).map((function(e){return e.id}));if(d)y.some((function(t){return e.items.selectedUnitIds.includes(t)}))&&p(e,{payload:{groupIds:[m.id]}});else p(e,{payload:{unitIds:y}})}}catch(g){b.e(g)}finally{b.f()}}},p=function(e,t){var n=t.payload,r=n.groupIds,o=void 0===r?[]:r,i=n.unitIds,c=void 0===i?[]:i;e.items.selectedGroupIds=Object(a.k)(e.items.selectedGroupIds,o),e.items.selectedUnitIds=Object(a.k)(e.items.selectedUnitIds,c)},h=function(e,t){var n=t.payload,r=n.id,o=n.allGroups;e.items.selectedUnitIds.includes(r)?p(e,{payload:{unitIds:[r]}}):d(e,{payload:{unitIds:[r],additive:!0,allGroups:o,favorUnits:!0}})},v=function(e,t){var n=t.payload,r=n.id,o=n.allGroups;e.items.selectedGroupIds.includes(r)?p(e,{payload:{groupIds:[r]}}):d(e,{payload:{groupIds:[r],additive:!0,allGroups:o}})},b=function(e,t){var n=t.payload,r=n.id,o=n.additive,i=n.allGroups,l=n.showAllItemMatches,s=Object(u.r)(i),f=(e.sets.searchTerms||e.sets.filterSearchTerms)&&!l?s.filter((function(e){return e.titleSplit||e.urlSplit})):s,p=Object(c.b)({selectedItem:r,anchorItem:Object(a.g)(e.items.selectedUnitIds),allItems:f.map((function(e){return e.id}))});d(e,{payload:{unitIds:p,additive:o,allGroups:i,favorUnits:!0}})},m=function(e,t){var n=t.payload,r=n.id,o=n.additive,i=n.allGroups,l=n.showAllItemMatches,s=(e.sets.searchTerms||e.sets.filterSearchTerms)&&!l?i.filter((function(e){return e.titleSplit||Object(u.u)(e).some((function(e){return e.titleSplit||e.urlSplit}))})):i,f=Object(c.b)({selectedItem:r,anchorItem:Object(a.g)(e.items.selectedGroupIds),allItems:s.map((function(e){return e.id}))});d(e,{payload:{groupIds:f,additive:o,allGroups:i}})},y=function(e){e.items.selectedUnitIds.length=0,e.items.selectedGroupIds.length=0},g=function(e){(function(e){return!e.selectedUnitIds.length&&!e.selectedGroupIds.length})(e.items)||(e.items=f())},w=["itemsSelected"];function x(e){return{selectPrevItem:function(n){return function(){var o=Object(r.a)(s().mark((function r(o,i){var a,c,l,f,d,p;return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=O.beforeSelectedItem(i(),{contentGroups:n,fallBackToHead:!0})){r.next=3;break}return r.abrupt("return",o(t(n)));case 3:if(o(e.itemsSelected(a)),c=i().content.items,l=c.selectedUnitIds,f=c.selectedGroupIds,!l.length){r.next=9;break}if(!(d=Object(u.r)(n.folders||n.windows)[0])||!l.includes(d.id)){r.next=9;break}return r.abrupt("return","scroll-top");case 9:if(!f.length){r.next=13;break}if(!(p=(n.folders||n.windows)[0])||!f.includes(p.id)){r.next=13;break}return r.abrupt("return","scroll-top");case 13:case"end":return r.stop()}}),r)})));return function(e,t){return o.apply(this,arguments)}}()},selectNextItem:function(n){return function(){var o=Object(r.a)(s().mark((function r(o,i){var a,c,l,f,d,p,h,v;return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=O.afterSelectedItem(i(),{contentGroups:n,fallBackToHead:!0})){r.next=3;break}return r.abrupt("return",o(t(n)));case 3:if(o(e.itemsSelected(a)),c=i().content.items,l=c.selectedUnitIds,f=c.selectedGroupIds,!l.length){r.next=15;break}if(d=Object(u.r)(n.folders||n.windows),!(p=d[0])||!l.includes(p.id)){r.next=10;break}return r.abrupt("return","scroll-top");case 10:if(!(h=d.at(-1))||!l.includes(h.id)){r.next=13;break}return r.abrupt("return","scroll-bottom");case 13:r.next=19;break;case 15:if(!f.length){r.next=19;break}if(!(v=(n.folders||n.windows)[0])||!f.includes(v.id)){r.next=19;break}return r.abrupt("return","scroll-top");case 19:case"end":return r.stop()}}),r)})));return function(e,t){return o.apply(this,arguments)}}()},selectGroupUnit:function(n){return function(){var o=Object(r.a)(s().mark((function r(o,i){var a,c,l,f,d,p,h,v,b,m,y,g,w,x,O,j,k,S,E,C,T;return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=i(),c=a.content,null!=(l=c.items.selectedUnitIds.at(-1))?o(e.itemsSelected({unitIds:[l]})):null!=(f=c.items.selectedGroupIds.at(-1))?(d=(n.folders||n.windows).find((function(e){return e.id===f})))&&(p=Object(u.u)(d)[0])&&o(e.itemsSelected({unitIds:[p.id]})):o(t(n)),!(h=i().content.items.selectedUnitIds).length){r.next=11;break}if(!(C=(null===(v=n.folders)||void 0===v||null===(b=v[0])||void 0===b||null===(m=b.links)||void 0===m?void 0:m[0])||(null===(y=n.windows)||void 0===y||null===(g=y[0])||void 0===g||null===(w=g.tabs)||void 0===w?void 0:w[0]))||!h.includes(C.id)){r.next=8;break}return r.abrupt("return","scroll-top");case 8:if(!(T=(null===(x=n.folders)||void 0===x||null===(O=x.at(-1))||void 0===O||null===(j=O.links)||void 0===j?void 0:j.at(-1))||(null===(k=n.windows)||void 0===k||null===(S=k.at(-1))||void 0===S||null===(E=S.tabs)||void 0===E?void 0:E.at(-1)))||!h.includes(T.id)){r.next=11;break}return r.abrupt("return","scroll-bottom");case 11:case"end":return r.stop()}}),r)})));return function(e,t){return o.apply(this,arguments)}}()},selectUnitGroup:function(t){return function(){var o=Object(r.a)(s().mark((function r(o,i){var a,c,l,f,d,p,h,v;return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=i(),c=a.content,null!=(l=c.items.selectedUnitIds.at(-1))?(f=Object(u.p)(t.folders||t.windows,(function(e){return e.id===l})),(d=null===f||void 0===f?void 0:f.group)&&o(e.itemsSelected({groupIds:[d.id]}))):(p=c.items.selectedGroupIds.at(-1),o(null!=p?e.itemsSelected({groupIds:[p]}):n(t))),!(h=i().content.items.selectedGroupIds).length){r.next=8;break}if(!(v=(t.folders||t.windows)[0])||!h.includes(v.id)){r.next=8;break}return r.abrupt("return","scroll-top");case 8:case"end":return r.stop()}}),r)})));return function(e,t){return o.apply(this,arguments)}}()},selectFirstItem:function(e){return function(){var o=Object(r.a)(s().mark((function r(o,i){var a,c,u,l,f;return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=i().content.items,c=a.selectedUnitIds,u=a.selectedGroupIds,!c.length&&u.length){r.next=6;break}return o(t(e)),l=i().content.items.selectedUnitIds,1===c.length&&1===l.length&&c[0]===l[0]&&o(n(e)),r.abrupt("return");case 6:o(n(e)),f=i().content.items.selectedGroupIds,1===u.length&&1===f.length&&u[0]===f[0]&&o(t(e));case 9:case"end":return r.stop()}}),r)})));return function(e,t){return o.apply(this,arguments)}}()},selectFirstUnit:t,selectFirstGroup:n,selectLastItem:function(e){return function(){var t=Object(r.a)(s().mark((function t(n,r){var a,c,u;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=r().content.items,c=a.selectedUnitIds,u=a.selectedGroupIds,!c.length&&u.length){t.next=3;break}return t.abrupt("return",n(o(e)));case 3:n(i(e));case 4:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()},selectLastUnit:o,selectLastGroup:i};function t(t){return function(n){var r,o,i,a,c,u,l=(null===(r=t.folders)||void 0===r||null===(o=r[0])||void 0===o||null===(i=o.links)||void 0===i?void 0:i[0])||(null===(a=t.windows)||void 0===a||null===(c=a[0])||void 0===c||null===(u=c.tabs)||void 0===u?void 0:u[0]);l&&n(e.itemsSelected({unitIds:[l.id]}))}}function n(t){return function(n){var r=(t.folders||t.windows)[0];r&&n(e.itemsSelected({groupIds:[r.id]}))}}function o(t){return function(n){var r,o,i,a,c,u,l=(null===(r=t.folders)||void 0===r||null===(o=r.at(-1))||void 0===o||null===(i=o.links)||void 0===i?void 0:i.at(-1))||(null===(a=t.windows)||void 0===a||null===(c=a.at(-1))||void 0===c||null===(u=c.tabs)||void 0===u?void 0:u.at(-1));l&&n(e.itemsSelected({unitIds:[l.id]}))}}function i(t){return function(n){var r=(t.folders||t.windows).at(-1);r&&n(e.itemsSelected({groupIds:[r.id]}))}}}var O={itemSelections:Object(i.a)((function(e){return e.content.items}),(function(e){return{unitIds:e.selectedUnitIds,groupIds:e.selectedGroupIds}})),hasItemSelection:function(e){var t=e.content;return t.items.selectedUnitIds.length>0||t.items.selectedGroupIds.length>0},beforeSelectedItem:function(e,t){var n=e.content,r=t.contentGroups,o=t.skip,i=t.fallBackToHead,a="selected"===o?{unitIds:n.items.selectedUnitIds,groupIds:n.items.selectedGroupIds}:o;if(n.items.selectedUnitIds.length){var c=n.items.selectedUnitIds.at(-1);if(null==c)return;var l=Object(u.q)(r.folders||r.windows),s=a?l.filter((function(e){var t,n,r=e.unit,o=e.group;return r.id===c||!(null===(t=a.unitIds)||void 0===t?void 0:t.includes(r.id))&&!(null===(n=a.groupIds)||void 0===n?void 0:n.includes(o.id))})):l,f=s.findIndex((function(e){return e.unit.id===c}));if(f<0)return;var d=s[f-1];if(d)return{unitIds:[d.unit.id]};if(i)return{unitIds:[c]}}else if(n.items.selectedGroupIds.length){var p=n.items.selectedGroupIds.at(-1);if(null==p)return;var h=r.folders||r.windows,v=a?h.filter((function(e){var t,n=e.id;return n===p||!(null===(t=a.groupIds)||void 0===t?void 0:t.includes(n))})):h,b=v.findIndex((function(e){return e.id===p}));if(b<0)return;var m=v[b-1];if(m)return{groupIds:[m.id]};if(i)return{groupIds:[p]}}},afterSelectedItem:function(e,t){var n=e.content,r=t.contentGroups,o=t.skip,i=t.fallBackToHead,a="selected"===o?{unitIds:n.items.selectedUnitIds,groupIds:n.items.selectedGroupIds}:o;if(n.items.selectedUnitIds.length){var c=n.items.selectedUnitIds.at(-1);if(null==c)return;var l=Object(u.q)(r.folders||r.windows),s=a?l.filter((function(e){var t,n,r=e.unit,o=e.group;return r.id===c||!(null===(t=a.unitIds)||void 0===t?void 0:t.includes(r.id))&&!(null===(n=a.groupIds)||void 0===n?void 0:n.includes(o.id))})):l,f=s.findIndex((function(e){return e.unit.id===c}));if(f<0)return;var d=s[f+1];if(d)return{unitIds:[d.unit.id]};if(i)return{unitIds:[c]}}else if(n.items.selectedGroupIds.length){var p=n.items.selectedGroupIds.at(-1);if(null==p)return;var h=r.folders||r.windows,v=a?h.filter((function(e){var t,n=e.id;return n===p||!(null===(t=a.groupIds)||void 0===t?void 0:t.includes(n))})):h,b=v.findIndex((function(e){return e.id===p}));if(b<0)return;var m=v[b+1];if(m)return{groupIds:[m.id]};if(i)return{groupIds:[p]}}}}},function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(215)},function(e,t,n){"use strict";n.d(t,"a",(function(){return E})),n.d(t,"l",(function(){return C})),n.d(t,"c",(function(){return T})),n.d(t,"j",(function(){return I})),n.d(t,"i",(function(){return P})),n.d(t,"k",(function(){return L})),n.d(t,"h",(function(){return _})),n.d(t,"o",(function(){return R})),n.d(t,"n",(function(){return N})),n.d(t,"p",(function(){return M})),n.d(t,"f",(function(){return A})),n.d(t,"g",(function(){return D})),n.d(t,"e",(function(){return F})),n.d(t,"d",(function(){return z})),n.d(t,"q",(function(){return B})),n.d(t,"b",(function(){return H})),n.d(t,"m",(function(){return W})),n.d(t,"r",(function(){return q}));var r=n(2),o=n(3),i=n(1),a=n(5),c=n(51),u=n(56),l=n(63),s=n(99),f=n(8),d=n(12),p=n(24),h=n(79),v=n(81),b=n(18),m=n(9),y=n(10),g=n(39),w=n(47),x=n(6),O=n(36);function j(){j=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(I){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new E(o||[]);return r(a,"_invoke",{value:x(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(I){return{type:"throw",arg:I}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var b=Object.getPrototypeOf,m=b&&b(b(C([])));m&&m!==t&&n.call(m,i)&&(v=m);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=O(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function O(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=C,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var k,S=250,E=0,C=function(){return E},T=function(e,t){var n=t.payload;e.sets.selectedClientHistoryItemId=n,Object(w.e)(e)},I=function(e){e.sets.clientHistory.navSetsLoading=!0},P=function(e){e.sets.clientHistory.navSetsLoading&&(e.sets.clientHistory.navSetsLoadingLong=!0)},L=function(e,t){var n=t.payload,r=n.fetchedEvents,o=n.exhausted;r.forEach((function(t){t.id&&(e.sets.clientHistory.sets[t.id]=Object(i.a)(Object(i.a)(Object(i.a)({},e.sets.clientHistory.sets[t.id]),t),{},{loaded:Object(f.m)()}),e.sets.clientHistory.navSetIds.includes(t.id)||e.sets.clientHistory.navSetIds.push(t.id))})),e.sets.clientHistory.initialized=!0,e.sets.clientHistory.exhausted=o,G(e.sets.clientHistory)},_=function(e,t){var n=t.payload;Object(b.d)("Failed to fetch history: ".concat(n)),G(e.sets.clientHistory)},R=function(e){e.sets.clientHistory.navSetIds=[],e.sets.clientHistory.exhausted=!0},N=function(e){G(e.sets.clientHistory)},M=function(e,t){var n=t.payload,r=(void 0===n?{}:n).type;e.sets.clientHistory.sets=Object(p.c)(e.sets.clientHistory.sets,(function(e){return!!r&&e.type!==r}))},A=function(e,t){var n=t.payload;Object(x.v)(e.sets,n)},D=function(e,t){var n=t.payload,r=n.fetchedItem,o=n.queryId;if(r.id){var a=e.sets.clientHistory.sets;a[r.id]=Object(i.a)(Object(i.a)(Object(i.a)({},a[r.id]),r),{},{loaded:Object(f.m)()})}Object(x.w)(e.sets,r.id||o)},F=function(e,t){var n=t.payload,r=n.error,o=n.queryId;Object(b.d)("Full history item fetch failed (".concat(o,"): ").concat(r)),Object(x.w)(e.sets,o)},z=function(e,t){var n=t.payload,r=e.sets.clientHistory;r.navSetIds=Object(d.k)(r.navSetIds,n),n.forEach((function(e){delete r.sets[e]}))},B=function(e,t){var n=t.payload;if(n.every(v.a)){var r=e.sets.clientHistory;n.forEach((function(e){r.sets[e.id]=Object(a.z)(e)}));var i=n.map((function(e){return e.id}));r.navSetIds=[].concat(Object(o.a)(i),Object(o.a)(Object(d.k)(r.navSetIds,i))),r.navSetIds=Object(o.a)(r.navSetIds).sort().reverse()}else Object(b.d)("Some saving events are missing an id",n)},H=["clientHistoryItemSelected","fetchNavClientHistoryStarted","fetchNavClientHistoryLongStarted","fetchNavClientHistorySucceeded","fetchNavClientHistoryFailed","navClientHistoryNavSetIdsCleared","navClientHistoryLoadingStopped","navClientHistoryRemoveFromSets","itemSelectionCleared","itemsDeselected","saveEventsStarted","fetchFullClientHistoryItemStarted","fetchFullClientHistoryItemSucceeded","fetchFullClientHistoryItemFailed","deleteEventsStarted"],U=0;function W(e){var t=Object(h.a)();return{fetchNavClientHistory:n,selectClientHistoryItem:o,clearClientHistory:function(){return function(){var t=Object(r.a)(j().mark((function t(r,i){var a;return j().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(c.c)();case 2:r(e.navClientHistoryRemoveFromSets()),a=i(),a.content.sets.selectedClientHistoryItemId!==E&&(r(e.itemSelectionCleared()),r(o(E))),r(n({reset:!0}));case 6:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()},removeSnapshotItems:function(){return function(){var t=Object(r.a)(j().mark((function t(r,i){var a,u;return j().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(c.l)("snapshot-scheduled");case 2:r(e.navClientHistoryRemoveFromSets({type:"snapshot-scheduled"})),a=i(),(u=a.content).sets.selectedClientHistoryItemId!==E&&(Object(x.f)(u.sets,u.sets.selectedClientHistoryItemId)||(r(e.itemSelectionCleared()),r(o(E)))),r(n({reset:!0}));case 6:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()},deleteEvents:d,deleteSelectedEvents:function(e){return function(){var t=Object(r.a)(j().mark((function t(n,r){var o,i,a,c;return j().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=r(),(i=o.content).sets.selectedClientHistoryItemId){t.next=3;break}return t.abrupt("return");case 3:return a="Delete ".concat(y.a.event({count:1}),"?"),c="".concat(y.a.event({count:1,includeCount:!0})," will be permanently deleted"),t.abrupt("return",n(Object(l.d)({title:a,text:c,bypass:e,bypassSetting:"bypassConfirmEventDelete",okAction:function(){n(d([i.sets.selectedClientHistoryItemId]))}})));case 6:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()},deleteItemsFromEvent:p,deleteItemsFromSelectedEvent:function(e){return function(){var t=Object(r.a)(j().mark((function t(n,r){var o,i,a;return j().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=r(),i=o.content,a=Object(x.f)(i.sets,i.sets.selectedClientHistoryItemId)){t.next=4;break}return t.abrupt("return");case 4:return t.abrupt("return",n(p({itemSelections:e,event:a})));case 5:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()},updateEvent:w,selectPrevNavEvent:function(){return function(){var e=Object(r.a)(j().mark((function e(t,n){var r,i;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=(r=q.beforeSelectedNavEventId(n(),{fallBackToHead:!0}))){e.next=5;break}return e.next=4,t(o(E));case 4:return e.abrupt("return","scroll-top");case 5:return e.next=7,t(o(r));case 7:return i=n().content.sets.selectedClientHistoryItemId,e.abrupt("return",i===E?"scroll-top":void 0);case 9:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()},selectNextNavEvent:function(){return function(){var e=Object(r.a)(j().mark((function e(t,n){var r,i,a,c;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=(r=q.afterSelectedNavEventId(n(),{fallBackToHead:!0}))){e.next=5;break}return e.next=4,t(o(E));case 4:return e.abrupt("return","scroll-top");case 5:return e.next=7,t(o(r));case 7:return i=n().content.sets,a=i.clientHistory,c=i.selectedClientHistoryItemId,e.abrupt("return",c===E?"scroll-top":a.navSetIds.length&&a.navSetIds.at(-1)===c?"scroll-bottom":void 0);case 9:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()},selectFirstNavEvent:function(){return function(e){return e(o(E))}},selectLastNavEvent:function(){return function(e,t){var n;return e(o(null!==(n=t().content.sets.clientHistory.navSetIds.at(-1))&&void 0!==n?n:E))}},selectPostDeleteNavEvent:C};function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.immediateLoader,o=void 0!==n&&n,i=t.reset;return function(){var t=Object(r.a)(j().mark((function t(n,r){var a,u,l,f,d,p,h,v,b,y,w,O;return j().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(g.b)(["debug","historyFetchAll","historyFetchCountInitial","historyFetchCountLazy"]);case 2:return a=t.sent,u=a.debug,l=a.historyFetchAll,f=a.historyFetchCountInitial,d=a.historyFetchCountLazy,p=l?999999999:i?f:d,h=++U,v=r(),b=v.content,y=b.sets.searchTerms,n(e.navClientHistoryLoadingStopped()),n(e.fetchNavClientHistoryStarted()),o?n(e.fetchNavClientHistoryLongStarted()):k=window.setTimeout((function(){n(e.fetchNavClientHistoryLongStarted())}),S),t.prev=14,i&&n(e.navClientHistoryNavSetIdsCleared()),w=i?void 0:Object(x.k)(b.sets),t.next=19,Object(c.e)({partial:!0,lastItemId:null===w||void 0===w?void 0:w.id,limit:p,searchTerms:y});case 19:if(O=t.sent,U===h){t.next=23;break}return u&&Object(m.f)("history fetch dropped"),t.abrupt("return");case 23:n(e.fetchNavClientHistorySucceeded({fetchedEvents:O,exhausted:O.length!==p})),t.next=31;break;case 26:t.prev=26,t.t0=t.catch(14),n(e.fetchNavClientHistoryFailed((null===t.t0||void 0===t.t0?void 0:t.t0.message)||t.t0)),"NotReadableError"===((null===t.t0||void 0===t.t0?void 0:t.t0.name)||t.t0)&&n(Object(s.a)("history-NotReadableError"));case 31:case"end":return t.stop()}}),t,null,[[14,26]])})));return function(e,n){return t.apply(this,arguments)}}()}function o(t){return function(){var n=Object(r.a)(j().mark((function n(r,o){var i,a,u;return j().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r(e.clientHistoryItemSelected(t)),i=o(),a=i.content,!Object(x.f)(a.sets,t)||Object(x.t)(a.sets,t)){n.next=15;break}return r(e.fetchFullClientHistoryItemStarted(t)),n.prev=5,n.next=8,Object(c.f)(t);case 8:u=n.sent,r(e.fetchFullClientHistoryItemSucceeded({fetchedItem:u,queryId:t})),n.next=15;break;case 12:n.prev=12,n.t0=n.catch(5),r(e.fetchFullClientHistoryItemFailed({error:(null===n.t0||void 0===n.t0?void 0:n.t0.message)||n.t0,queryId:t}));case 15:case"end":return n.stop()}}),n,null,[[5,12]])})));return function(e,t){return n.apply(this,arguments)}}()}function d(n){return function(){var o=Object(r.a)(j().mark((function r(o){return j().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n.length){r.next=2;break}return r.abrupt("return");case 2:return o(C()),o(e.deleteEventsStarted(n)),o(Object(u.b)()),r.abrupt("return",t((function(){return Object(c.d)(n)})).catch((function(){o(Object(u.e)({text:O.a.failedToDeleteEvents(n.length),severity:"error",actionText:O.a.tryAgain(),action:function(){o(d(n))}}))})));case 6:case"end":return r.stop()}}),r)})));return function(e){return o.apply(this,arguments)}}()}function p(t){var n=t.itemSelections,o=t.eventId,a=t.event;return function(){var t=Object(r.a)(j().mark((function t(r,c){var u,l,s,f;return j().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a||(a=Object(x.f)(c().content.sets,o)),a&&a.windows){t.next=3;break}return t.abrupt("return");case 3:return u=a.windows.filter((function(e){return!e.tabs.length})).map((function(e){return e.id})),l=a.windows.filter((function(e){var t=e.id;return!n.groupIds.includes(t)})).map((function(e){return Object(i.a)(Object(i.a)({},e),{},{tabs:e.tabs.filter((function(e){var t=e.id;return!n.unitIds.includes(t)}))})})),s=l.filter((function(e){return e.tabs.length||u.includes(e.id)})),f=Object(i.a)(Object(i.a)({},a),{},{windows:s}),r(e.itemsDeselected(n)),t.abrupt("return",r(w({event:f})));case 9:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()}function w(e){var t=e.event,n=e.timestamp,o=void 0===n?Object(f.m)():n,a=e.id,c=e.props;return function(){var e=Object(r.a)(j().mark((function e(n,r){var u,l;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=7;break}if(a&&c){e.next=3;break}return e.abrupt("return");case 3:if(u=Object(x.f)(r().content.sets,a)){e.next=6;break}throw new Error("attempt to patch a non-existent or invalid event (id ".concat(a,")"));case 6:t=Object(i.a)(Object(i.a)({},u),c);case 7:if(Object(v.a)(t)&&!Object(x.u)(t)){e.next=9;break}return e.abrupt("return");case 9:return l=Object(i.a)(Object(i.a)({},t),{},{updated:o}),e.abrupt("return",n(T({savingEvents:[l]})));case 11:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()}function C(){return function(){var e=Object(r.a)(j().mark((function e(t,n){var r,i,a,c,u;return j().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n(),i=q.afterSelectedNavEventId(r)||q.beforeSelectedNavEventId(r)||E,e.next=4,t(o(i));case 4:return a=n().content.sets,c=a.clientHistory,u=a.selectedClientHistoryItemId,e.abrupt("return",u===E?"scroll-top":c.navSetIds.length&&c.navSetIds.at(-1)===u?"scroll-bottom":void 0);case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()}function T(t){var n=t.savingEvents;return function(){var t=Object(r.a)(j().mark((function t(r){return j().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n.every(v.a)){t.next=3;break}return Object(b.d)("Some saving events are missing an id",n),t.abrupt("return");case 3:return r(e.saveEventsStarted(n)),r(Object(u.b)()),t.abrupt("return",Object(c.m)(n.map((function(e){return Object(a.z)(e,!0)}))));case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}}var q={selectedClientHistoryItemId:function(e){return e.content.sets.selectedClientHistoryItemId},selectedClientHistoryItem:function(e){var t=e.content;return t.sets.clientHistory.sets[t.sets.selectedClientHistoryItemId]},clientHistoryInitialized:function(e){return e.content.sets.clientHistory.initialized},navClientHistoryIsLoading:function(e){return e.content.sets.clientHistory.navSetsLoading},navClientHistoryIsLoadingLong:function(e){return e.content.sets.clientHistory.navSetsLoadingLong},navClientHistoryIsExhausted:function(e){return!!e.content.sets.clientHistory.exhausted},navClientHistory:function(e){var t=e.content;return t.sets.clientHistory.navSetIds.map((function(e){return t.sets.clientHistory.sets[e]})).filter(Boolean)},noNavClientHistoryExists:function(e){var t=e.content;return!q.navClientHistory({content:t}).length},beforeSelectedNavEventId:function(e){var t,n=e.content,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).fallBackToHead,i=[E].concat(Object(o.a)(n.sets.clientHistory.navSetIds)),a=n.sets.selectedClientHistoryItemId,c=i.indexOf(a);if(!(c<0))return null!==(t=i[c-1])&&void 0!==t?t:r?a:void 0},afterSelectedNavEventId:function(e){var t,n=e.content,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).fallBackToHead,i=[E].concat(Object(o.a)(n.sets.clientHistory.navSetIds)),a=n.sets.selectedClientHistoryItemId,c=i.indexOf(a);if(!(c<0))return null!==(t=i[c+1])&&void 0!==t?t:r?a:void 0}};function G(e){e.navSetsLoading=!1,e.navSetsLoadingLong=!1,window.clearTimeout(k)}},function(e,t,n){"use strict";n.d(t,"h",(function(){return O})),n.d(t,"c",(function(){return k})),n.d(t,"f",(function(){return E})),n.d(t,"d",(function(){return C})),n.d(t,"e",(function(){return I})),n.d(t,"i",(function(){return L})),n.d(t,"a",(function(){return _})),n.d(t,"b",(function(){return N})),n.d(t,"g",(function(){return M}));var r=n(22),o=n(3),i=n(2),a=n(58),c=n(59),u=n(64),l=n(65),s=n(105),f=n(71),d=n(45),p=n(32),h=n(79),v=n(24),b=n(8),m=n(9);function y(){y=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(I){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new E(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(I){return{type:"throw",arg:I}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var b=Object.getPrototypeOf,m=b&&b(b(C([])));m&&m!==t&&n.call(m,i)&&(v=m);var g=h.prototype=d.prototype=Object.create(v);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return p.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},w(x.prototype),u(x.prototype,a,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new x(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(g),u(g,c,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=C,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var g=new(function(e){Object(u.a)(n,e);var t=Object(l.a)(n);function n(){var e;return Object(c.a)(this,n),(e=t.call(this,"nxsCollections",{chromeTransactionDurability:"strict"})).collections=void 0,e.version(1).stores({collections:"id, [pinned+touched]"}),e.collections=e.table("collections"),e}return Object(a.a)(n)}(s.a)),w=g.collections,x=Object(h.a)();function O(){return j.apply(this,arguments)}function j(){return(j=Object(i.a)(y().mark((function e(){return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,w.count();case 3:return e.abrupt("return",e.sent);case 6:e.prev=6,e.t0=e.catch(0),Object(m.c)(e.t0,{prefix:"Failed to get collection count"});case 9:case"end":return e.stop()}}),e,null,[[0,6]])})))).apply(this,arguments)}function k(e){var t=e.from,n=e.limit,a=void 0===n?50:n,c=e.searchTerms,u=e.asc,l=e.partial;return x(Object(i.a)(y().mark((function e(){var n,i,s,f,d,h,v,b,m,g,x;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=function(e){if(!e)return!1;if(t&&e.id===t.collectionId)return!1;if(!c)return!0;if(!c.free.length&&!c.collection.length&&!c.folder.length&&!c.link.length)return!1;if(Object(p.a)(e.title,[].concat(Object(o.a)(c.free),Object(o.a)(c.collection))))return!0;var n,i=Object(r.a)(e.folders||[]);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(Object(p.a)(a.title,[].concat(Object(o.a)(c.free),Object(o.a)(c.collection),Object(o.a)(c.folder))))return!0;var u,l=Object(r.a)(a.links||[]);try{for(l.s();!(u=l.n()).done;){var s=u.value;if(Object(p.a)(s.title,[].concat(Object(o.a)(c.free),Object(o.a)(c.collection),Object(o.a)(c.folder),Object(o.a)(c.link)))||Object(p.a)(s.url,[].concat(Object(o.a)(c.free),Object(o.a)(c.collection),Object(o.a)(c.folder),Object(o.a)(c.link)),"url"))return!0}}catch(f){l.e(f)}finally{l.f()}}}catch(f){i.e(f)}finally{i.f()}return!1},null===t||void 0===t?void 0:t.pinnedTouchedTuple){e.next=8;break}return i=w.orderBy("[pinned+touched]"),s=u?i:i.reverse(),e.next=6,s.filter(n).limit(a).toArray();case 6:return e.t0=e.sent,e.abrupt("return",{main:e.t0});case 8:return f=w.where("[pinned+touched]"),d=u?f.above(t.pinnedTouchedTuple):f.below(t.pinnedTouchedTuple).reverse(),e.next=12,d.filter(n).limit(a).toArray();case 12:return h=e.sent,v=l?h.map(S):h,b=f.equals(t.pinnedTouchedTuple),m=u?b:b.reverse(),e.next=18,m.filter(n).toArray();case 18:return g=e.sent,x=l?g.map(S):g,e.abrupt("return",{main:v,boundary:x});case 21:case"end":return e.stop()}}),e)}))))}function S(e){return e.pinned?e:Object(v.i)(e,["id","title","color","created","updated","pinned","touched"])}function E(e){return C(e)}function C(e){return T.apply(this,arguments)}function T(){return T=Object(i.a)(y().mark((function e(t){var n,r,o=arguments;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:{},e.next=3,w.bulkGet(t);case 3:return r=e.sent.filter(Boolean),"date-desc"===n.order?r.sort(f.c):"date-asc"===n.order&&r.sort(f.c).reverse(),e.abrupt("return",r);case 6:case"end":return e.stop()}}),e)}))),T.apply(this,arguments)}function I(){return P.apply(this,arguments)}function P(){return(P=Object(i.a)(y().mark((function e(){var t;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=void 0,e.next=3,w.each((function(e){e.created&&(!t||e.created<t.created)&&(t=e)}));case 3:return e.abrupt("return",t);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function L(e){return A(),g.transaction("rw",w,Object(i.a)(y().mark((function t(){return y().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,w.bulkPut(e.filter(Boolean));case 2:case"end":return t.stop()}}),t)}))))}function _(e){return R.apply(this,arguments)}function R(){return(R=Object(i.a)(y().mark((function e(t){var n,o,i,a;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:A(),n=0,o=Object(r.a)(t),e.prev=3,o.s();case 5:if((i=o.n()).done){e.next=19;break}if(a=i.value,e.prev=7,a){e.next=10;break}throw new Error("attempt to add null/undefined collection");case 10:return e.next=12,w.add(a);case 12:n++,e.next=17;break;case 15:e.prev=15,e.t0=e.catch(7);case 17:e.next=5;break;case 19:e.next=24;break;case 21:e.prev=21,e.t1=e.catch(3),o.e(e.t1);case 24:return e.prev=24,o.f(),e.finish(24);case 27:return e.abrupt("return",n);case 28:case"end":return e.stop()}}),e,null,[[3,21,24,27],[7,15]])})))).apply(this,arguments)}function N(e){return A(),w.bulkDelete(e)}function M(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return x(Object(i.a)(y().mark((function n(){var i;return y().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i={collection:[],folder:[],link:[]},e.free.length||e.collection.length||e.folder.length||e.link.length){n.next=3;break}return n.abrupt("return",i);case 3:return n.next=5,w.orderBy("[pinned+touched]").reverse().each((function(n){if(n){var a,c=Object(p.a)(n.title,[].concat(Object(o.a)(e.free),Object(o.a)(e.collection))),u=0,l=0,s=Object(r.a)(n.folders||[]);try{for(s.s();!(a=s.n()).done;){var f=a.value,d=Object(p.a)(f.title,[].concat(Object(o.a)(e.free),Object(o.a)(e.collection),Object(o.a)(e.folder))),h=0,v=0;d&&(u+=d);var b,m=Object(r.a)(f.links||[]);try{for(m.s();!(b=m.n()).done;){var y=b.value,g=Math.pow(Object(p.a)(y.title,[].concat(Object(o.a)(e.free),Object(o.a)(e.collection),Object(o.a)(e.folder),Object(o.a)(e.link)))+Object(p.a)(y.url,[].concat(Object(o.a)(e.free),Object(o.a)(e.collection),Object(o.a)(e.folder),Object(o.a)(e.link)),"url"),2);g&&(l++,v++,t.excludeLinks||i.link.push({id:y.id,setId:n.id,text:y.title||y.url,score:g,type:"link",setTitle:n.title,unit:y}),u+=g,h+=g)}}catch(w){m.e(w)}finally{m.f()}!d&&!h||t.excludeFolders||i.folder.push({id:f.id,setId:n.id,text:f.title,score:d,secondaryScore:h,unitMatchCount:v,type:"folder",setTitle:n.title})}}catch(w){s.e(w)}finally{s.f()}!c&&!u||t.excludeCollections||i.collection.push({id:n.id,setId:n.id,text:n.title,score:c,secondaryScore:u,unitMatchCount:l,type:"collection",setCreated:n.created,setUpdated:n.updated,setPinned:n.pinned,setTouched:n.touched})}}));case 5:return n.abrupt("return",{collection:i.collection.sort(d.g),folder:i.folder.sort(d.g),link:i.link.sort(d.g)});case 6:case"end":return n.stop()}}),n)}))))}function A(){try{var e,t,n;null===(e=globalThis.chrome)||void 0===e||null===(t=e.storage)||void 0===t||null===(n=t.local)||void 0===n||n.set({localDbCollectionsChanged:Object(b.n)()})}catch(r){}}},function(e,t,n){"use strict";n.d(t,"j",(function(){return S})),n.d(t,"e",(function(){return C})),n.d(t,"f",(function(){return T})),n.d(t,"g",(function(){return I})),n.d(t,"h",(function(){return L})),n.d(t,"c",(function(){return R})),n.d(t,"l",(function(){return N})),n.d(t,"d",(function(){return M})),n.d(t,"m",(function(){return A})),n.d(t,"b",(function(){return F})),n.d(t,"a",(function(){return B})),n.d(t,"k",(function(){return U})),n.d(t,"i",(function(){return q}));var r=n(3),o=n(22),i=n(2),a=n(58),c=n(59),u=n(64),l=n(65),s=n(105),f=n(102),d=n(45),p=n(32),h=n(79),v=n(8),b=n(24),m=n(13),y=n(18),g=n(9),w=n(10);function x(){x=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(I){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new E(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(I){return{type:"throw",arg:I}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var b=Object.getPrototypeOf,m=b&&b(b(C([])));m&&m!==t&&n.call(m,i)&&(v=m);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=C,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var O=new(function(e){Object(u.a)(n,e);var t=Object(l.a)(n);function n(){var e;return Object(c.a)(this,n),(e=t.call(this,"nxsClientHistory",{chromeTransactionDurability:"strict"})).clientHistory=void 0,e.version(1).stores({clientHistory:"id, type"}),e.clientHistory=e.table("clientHistory"),e}return Object(a.a)(n)}(s.a)),j=O.clientHistory,k=Object(h.a)();function S(){return E.apply(this,arguments)}function E(){return(E=Object(i.a)(x().mark((function e(){return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,j.count();case 3:return e.abrupt("return",e.sent);case 6:e.prev=6,e.t0=e.catch(0),Object(g.c)(e.t0,{prefix:"Failed to get event count"});case 9:case"end":return e.stop()}}),e,null,[[0,6]])})))).apply(this,arguments)}function C(e){var t=e.lastItemId,n=e.limit,a=void 0===n?50:n,c=e.searchTerms,u=e.partial;return k(Object(i.a)(x().mark((function e(){var n,i;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t?j.where("id").below(t):j.orderBy("id"),e.next=3,n.reverse().filter((function(e){if(!e)return!1;if(!c)return!0;if(!c.free.length&&!c.history.length&&!c.window.length&&!c.tab.length)return!1;var t,n=Object(o.a)(e.windows||[]);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(Object(p.a)(i.title,[].concat(Object(r.a)(c.free),Object(r.a)(c.history),Object(r.a)(c.window))))return!0;var a,u=Object(o.a)(i.tabs||[]);try{for(u.s();!(a=u.n()).done;){var l=a.value;if(Object(p.a)(l.title,[].concat(Object(r.a)(c.free),Object(r.a)(c.history),Object(r.a)(c.window),Object(r.a)(c.tab)))||Object(p.a)(l.url,[].concat(Object(r.a)(c.free),Object(r.a)(c.history),Object(r.a)(c.window),Object(r.a)(c.tab)),"url"))return!0}}catch(s){u.e(s)}finally{u.f()}}}catch(s){n.e(s)}finally{n.f()}return!1})).limit(a).toArray();case 3:return i=e.sent,e.abrupt("return",u?i.map((function(e){return Object(b.i)(e,["id","type","updated"])})):i);case 5:case"end":return e.stop()}}),e)}))))}function T(e){return j.get(e)}function I(e){return P.apply(this,arguments)}function P(){return(P=Object(i.a)(x().mark((function e(t){var n,r,o;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=j.orderBy("id").reverse(),r=t?n.filter((function(e){return e&&e.type===t})):n,e.next=4,r.limit(1).toArray();case 4:return o=e.sent,e.abrupt("return",o.length?o[0]:void 0);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function L(){return _.apply(this,arguments)}function _(){return(_=Object(i.a)(x().mark((function e(){var t,n;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=j.orderBy("id"),e.next=3,t.limit(1).toArray();case 3:return n=e.sent,e.abrupt("return",n.length?n[0]:void 0);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function R(){return G(),j.clear()}function N(e){return G(),j.where("type").equals(e).delete()}function M(e){return G(),j.bulkDelete(e)}function A(e,t){return D.apply(this,arguments)}function D(){return(D=Object(i.a)(x().mark((function e(t,n){return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return G(),e.next=3,O.transaction("rw",j,Object(i.a)(x().mark((function e(){return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,j.bulkPut(t.filter(Boolean));case 2:case"end":return e.stop()}}),e)}))));case 3:if(!n){e.next=6;break}return e.next=6,U(n);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function F(e,t){return z.apply(this,arguments)}function z(){return(z=Object(i.a)(x().mark((function e(t,n){return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(G(),e.prev=1,t){e.next=4;break}throw new Error("attempt to add null/undefined history item");case 4:return e.next=6,j.add(t);case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),Object(y.e)(e.t0,{prefix:"Failed to add to history".concat(t?" (id: ".concat(t.id,", instant: ").concat(t.instant,", type: ").concat(t.type,", created: ").concat(t.created,", updated: ").concat(t.updated,")"):"")});case 11:if(!n){e.next=14;break}return e.next=14,U(n);case 14:case"end":return e.stop()}}),e,null,[[1,8]])})))).apply(this,arguments)}function B(e,t){return H.apply(this,arguments)}function H(){return(H=Object(i.a)(x().mark((function e(t,n){var r,i,a,c;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:G(),r=0,i=Object(o.a)(t),e.prev=3,i.s();case 5:if((a=i.n()).done){e.next=19;break}if(c=a.value,e.prev=7,c){e.next=10;break}throw new Error("attempt to add null/undefined history item");case 10:return e.next=12,j.add(c);case 12:r++,e.next=17;break;case 15:e.prev=15,e.t0=e.catch(7);case 17:e.next=5;break;case 19:e.next=24;break;case 21:e.prev=21,e.t1=e.catch(3),i.e(e.t1);case 24:return e.prev=24,i.f(),e.finish(24);case 27:if(!n){e.next=30;break}return e.next=30,U(n);case 30:return e.abrupt("return",r);case 31:case"end":return e.stop()}}),e,null,[[3,21,24,27],[7,15]])})))).apply(this,arguments)}function U(e){return W.apply(this,arguments)}function W(){return(W=Object(i.a)(x().mark((function e(t){var n,r,o,i;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.maxAge,r=t.maxCount,e.prev=1,!n){e.next=8;break}return o=Object(v.m)()-n,e.next=6,j.where("id").below(o).delete();case 6:e.sent&&G();case 8:if(!r){e.next=17;break}return e.next=11,j.count();case 11:if(!((i=e.sent)>r)){e.next=17;break}return e.next=15,j.orderBy("id").limit(i-r).delete();case 15:e.sent&&G();case 17:e.next=22;break;case 19:e.prev=19,e.t0=e.catch(1),console.warn("history housekeeping failed",e.t0);case 22:case"end":return e.stop()}}),e,null,[[1,19]])})))).apply(this,arguments)}function q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return k(Object(i.a)(x().mark((function n(){var i;return x().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i={event:[],window:[],tab:[]},e.free.length||e.history.length||e.window.length||e.tab.length){n.next=3;break}return n.abrupt("return",i);case 3:return n.next=5,j.orderBy("id").reverse().each((function(n){if(n){var a,c=0,u=0,l=Object(o.a)(n.windows||[]);try{for(l.s();!(a=l.n()).done;){var s=a.value,d=Object(p.a)(s.title,[].concat(Object(r.a)(e.free),Object(r.a)(e.history),Object(r.a)(e.window))),h=0,v=0;d&&(c+=d);var b,y=Object(o.a)(s.tabs||[]);try{for(y.s();!(b=y.n()).done;){var g=b.value,x=Math.pow(Object(p.a)(g.title,[].concat(Object(r.a)(e.free),Object(r.a)(e.history),Object(r.a)(e.window),Object(r.a)(e.tab)))+Object(p.a)(g.url,[].concat(Object(r.a)(e.free),Object(r.a)(e.history),Object(r.a)(e.window),Object(r.a)(e.tab)),"url"),2);x&&(u++,v++,t.excludeTabs||i.tab.push({id:g.id,setId:n.id,text:g.title||g.url,score:x,type:"tab",setTitle:"".concat(f.a.clientHistoryItemType(n.type)," ").concat(w.a.event()," from ").concat(w.a.shortDate(n.id,{abbreviateRecent:!0})),unit:g}),c+=x,h+=x)}}catch(O){y.e(O)}finally{y.f()}!d&&!h||t.excludeWindows||i.window.push({id:s.id,setId:n.id,text:s.title,score:d,secondaryScore:h,unitMatchCount:v,type:"window",setTitle:"".concat(f.a.clientHistoryItemType(n.type)," ").concat(w.a.event()," from ").concat(w.a.shortDate(n.id,{abbreviateRecent:!0}))})}}catch(O){l.e(O)}finally{l.f()}c&&!t.excludeEvents&&i.event.push({id:n.id,setId:n.id,text:Object(m.d)(w.a.shortDate(n.id,{abbreviateRecent:!0})),score:0,secondaryScore:c,unitMatchCount:u,type:"event",eventType:n.type})}}));case 5:return n.abrupt("return",{event:i.event.sort(d.g),window:i.window.sort(d.g),tab:i.tab.sort(d.g)});case 6:case"end":return n.stop()}}),n)}))))}function G(){try{var e,t,n;null===(e=globalThis.chrome)||void 0===e||null===(t=e.storage)||void 0===t||null===(n=t.local)||void 0===n||n.set({localDbEventsChanged:Object(v.n)()})}catch(r){}}},function(e,t,n){"use strict";n.d(t,"g",(function(){return C})),n.d(t,"f",(function(){return T})),n.d(t,"q",(function(){return I})),n.d(t,"p",(function(){return P})),n.d(t,"d",(function(){return L})),n.d(t,"e",(function(){return _})),n.d(t,"c",(function(){return R})),n.d(t,"j",(function(){return N})),n.d(t,"k",(function(){return M})),n.d(t,"o",(function(){return A})),n.d(t,"l",(function(){return D})),n.d(t,"m",(function(){return F})),n.d(t,"n",(function(){return z})),n.d(t,"b",(function(){return B})),n.d(t,"a",(function(){return H})),n.d(t,"h",(function(){return U})),n.d(t,"i",(function(){return W}));var r=n(2),o=n(22),i=n(1),a=n(3),c=n(107),u=n(12),l=n(24),s=n(8),f=n(13),d=n(70),p=n(18),h=n(9),v=n(5),b=n(50),m=n(10),y=n(102),g=n(17),w=n(45),x=n(47),O=n(49),j=n(36),k=n(6),S=n(125);function E(){E=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(I){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new S(o||[]);return r(a,"_invoke",{value:x(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(I){return{type:"throw",arg:I}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var b=Object.getPrototypeOf,m=b&&b(b(C([])));m&&m!==t&&n.call(m,i)&&(v=m);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=O(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function O(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=C,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var C=function(){return[v.j]},T=function(){return{initialized:!1,sets:{},navSetIds:[],navSetsLoading:!1,navSetsLoadingLong:!1,exhausted:!1}},I=function(e,t){var n=t.payload,r=n.ids,o=n.additive,i=Object(k.x)(e.sets.selectedSetIds,r,o);e.sets.selectedSetIds=i,Object(S.b)(Object(a.a)(i)),e.sets.selectedClientHistoryItemId=O.a,Object(x.e)(e)},P=function(e,t){var n=t.payload,r=Object(u.k)(e.sets.selectedSetIds,n);e.sets.selectedSetIds=r,Object(S.b)(Object(a.a)(r)),e.sets.selectedClientHistoryItemId=O.a,Object(x.e)(e)},L=function(e,t){t.payload.forEach((function(t){Object(k.v)(e.sets,t)}))},_=function(e,t){var n=t.payload,r=n.fetchedSets,o=n.querySetIds,c=Object(a.a)(o);r.forEach((function(t){if(t.id){c=Object(u.j)(c,(function(e){return e===t.id})),Object(k.y)(e.sets,t.id);var n=Object(l.e)(t,"folders"),r=n?e.sets.collections.sets:e.sets.remoteClients.sets,o=Object(i.a)(Object(i.a)(Object(i.a)({},r[t.id]),t),{},{loaded:Object(s.m)()});r[t.id]=n?Object(v.y)(o):o,Object(k.w)(e.sets,t.id)}})),c.length&&(Object(h.f)("unmatched query set ids (".concat(c,") of (").concat(o,"). possible deletion or insufficient privileges.")),c.forEach((function(t){Object(k.w)(e.sets,t),Object(k.q)(e.sets,t)})))},R=function(e,t){var n=t.payload,r=n.error,o=n.querySetIds;Object(p.d)("Full sets fetch failed (".concat(o,"): ").concat(r)),o.forEach((function(t){Object(k.w)(e.sets,t)}))},N=function(e,t){var n=t.payload,r=n.invert,i=n.showAllItemMatches,a=n.limitToUnitIds,c=W.selectedSetGroups({content:e}),l=c.windows,s=c.folders,f=W.searchTerms({content:e}),d=W.filterSearchTerms({content:e}),p=!f&&!d||i?l||s:l?Object(w.d)(l):Object(w.c)(s),h=[],b=new Set,m=Object(v.r)(p);if(a){var y,g=Object(u.q)(m.filter((function(e){var t=e.id;return a.includes(t)})).map((function(e){return e.url}))),O=Object(o.a)(m);try{for(O.s();!(y=O.n()).done;){var j=y.value;(r?!g.includes(j.url):g.includes(j.url))&&h.push(j.id)}}catch(C){O.e(C)}finally{O.f()}}else{var k,S=Object(o.a)(m);try{for(S.s();!(k=S.n()).done;){var E=k.value;b.has(E.url)?r||h.push(E.id):(b.add(E.url),r&&h.push(E.id))}}catch(C){S.e(C)}finally{S.f()}}Object(x.h)(e,{payload:{unitIds:h}})},M=function(e){var t;1===(t=e.sets.selectedSetIds).length&&Object(k.r)(t[0])||(Object(x.g)(e),e.sets.selectedSetIds=C(),Object(S.b)(Object(a.a)(e.sets.selectedSetIds)))},A=function(e,t){var n=t.payload;e.sets.searchTerms=n},D=function(e,t){var n=t.payload;e.sets.filterSearchTerms=n},F=function(e,t){var n=t.payload;e.sets.searchResults=n},z=function(e,t){var n=t.payload;e.sets.searchResultsLoading=n},B=function(e){e.sets.searchTerms=null,e.sets.filterSearchTerms=null,e.sets.searchResults=null,e.sets.searchResultsLoading=!1},H=["setsSelected","setsDeselected","fetchFullSetsStarted","fetchFullSetsSucceeded","fetchFullSetsFailed"];function U(e){return{rangeSelectAndHydrateSets:function(e){var n=e.id,r=e.additive;return function(e,o){var i=o().content,c=[v.j].concat(Object(a.a)(i.sets.remoteClients.navSetIds),Object(a.a)(i.sets.collections.navSetIds)),u=i.sets.selectedSetIds.findLast((function(e){return c.includes(e)}));e(t({ids:Object(d.b)({selectedItem:n,anchorItem:u,allItems:c}),additive:r}))}},toggleSelectAndHydrateSet:function(n){return function(r,o){r(o().content.sets.selectedSetIds.includes(n)?e.setsDeselected([n]):t({ids:[n],additive:!0}))}},selectAndHydrateSets:t,selectPrevNavSet:function(){return function(){var e=Object(r.a)(E().mark((function e(n,r){var o,i,a,c;return E().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=W.beforeSelectedNavSetId(r(),{fallBackToHead:!0})){e.next=3;break}return e.abrupt("return",n(t({ids:[v.j]})));case 3:return e.next=5,n(t({ids:[o]}));case 5:return i=r().content.sets,a=i.collections,c=i.selectedSetIds,e.abrupt("return",a.navSetIds.length&&c.includes(a.navSetIds[0])?"scroll-top":void 0);case 7:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()},selectNextNavSet:function(){return function(){var e=Object(r.a)(E().mark((function e(n,r){var o,i,a,c;return E().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=W.afterSelectedNavSetId(r(),{fallBackToHead:!0})){e.next=3;break}return e.abrupt("return",n(t({ids:[v.j]})));case 3:return e.next=5,n(t({ids:[o]}));case 5:return i=r().content.sets,a=i.collections,c=i.selectedSetIds,e.abrupt("return",a.navSetIds.length?c.includes(a.navSetIds[0])?"scroll-top":c.includes(a.navSetIds.at(-1))?"scroll-bottom":void 0:void 0);case 7:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()},selectFirstNavSet:function(){return function(e,n){var r=n().content.sets,o=r.selectedSetIds,i=r.collections;if(!o.length)return e(t({ids:[v.j]}));var a=i.navSetIds[0];return!a||1===o.length&&i.navSetIds[0]&&i.navSetIds[0]===o[0]?e(t({ids:[v.j]})):e(t({ids:[a]}))}},selectLastNavSet:function(){return function(e,n){var r;return e(t({ids:[null!==(r=n().content.sets.collections.navSetIds.at(-1))&&void 0!==r?r:v.j]}))}},selectPostDeleteNavSet:function(){return function(){var e=Object(r.a)(E().mark((function e(n,r){var o,i,a,c,u;return E().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=r(),i=W.afterSelectedNavSetId(o,{skipSelected:!0})||W.beforeSelectedNavSetId(o,{skipSelected:!0})||v.j,e.next=4,n(t({ids:[i]}));case 4:return a=r().content.sets,c=a.collections,u=a.selectedSetIds,e.abrupt("return",c.navSetIds.length?u.includes(c.navSetIds[0])?"scroll-top":u.includes(c.navSetIds.at(-1))?"scroll-bottom":void 0:void 0);case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()},fetchFullSets:n};function t(t){var o=t.ids,i=t.additive;return function(){var t=Object(r.a)(E().mark((function t(r,a){var c,l;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r(e.setsSelected({ids:Object(u.q)(o),additive:i})),c=a(),l=c.content,t.next=4,r(n(l.sets.selectedSetIds));case 4:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()}function n(t){return function(){var n=Object(r.a)(E().mark((function n(r,o){var i,a,c,u;return E().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=o(),a=i.content,(c=t.filter((function(e){return!Object(k.r)(e)&&!Object(k.t)(a.sets,e)}))).length){n.next=4;break}return n.abrupt("return");case 4:return r(e.fetchFullSetsStarted(c)),n.prev=5,n.next=8,Object(b.f)(c);case 8:u=n.sent,r(e.fetchFullSetsSucceeded({fetchedSets:u,querySetIds:c})),n.next=15;break;case 12:n.prev=12,n.t0=n.catch(5),r(e.fetchFullSetsFailed({error:(null===n.t0||void 0===n.t0?void 0:n.t0.message)||n.t0,querySetIds:c}));case 15:case"end":return n.stop()}}),n,null,[[5,12]])})));return function(e,t){return n.apply(this,arguments)}}()}}var W={selectedSetIds:function(e){return e.content.sets.selectedSetIds},selectedSetWindows:function(e){return G(e.content.sets)},selectedSetFolders:function(e){return V(e.content.sets)},selectedSetGroups:Object(c.a)((function(e){return e.content.sets}),(function(e){var t=G(e);return t?{windows:Object(w.b)(t,e.searchTerms||e.filterSearchTerms,!!e.selectedClientHistoryItemId)}:{folders:Object(w.a)(V(e)||[],e.searchTerms||e.filterSearchTerms)}})),beforeSelectedNavSetId:function(e){var t=e.content,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.skipSelected,o=n.fallBackToHead,i=[v.j].concat(Object(a.a)(t.sets.remoteClients.navSetIds),Object(a.a)(t.sets.collections.navSetIds)),c=t.sets.selectedSetIds.findLast((function(e){return i.includes(e)}));if(c){var u=r?i.filter((function(e){return e===c||!t.sets.selectedSetIds.includes(e)})):i,l=u.indexOf(c);if(!(l<0))return u[l-1]||(o?c:void 0)}},afterSelectedNavSetId:function(e){var t=e.content,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.skipSelected,o=n.fallBackToHead,i=[v.j].concat(Object(a.a)(t.sets.remoteClients.navSetIds),Object(a.a)(t.sets.collections.navSetIds)),c=t.sets.selectedSetIds.findLast((function(e){return i.includes(e)}));if(c){var u=r?i.filter((function(e){return e===c||!t.sets.selectedSetIds.includes(e)})):i,l=u.indexOf(c);if(!(l<0))return u[l+1]||(o?c:void 0)}},selectedSetsHaveDuplicateUnits:function(e){var t,n=e.content,r=e.settings,i=W.selectedSetGroups({content:n}),a=i.windows,c=i.folders,u=W.searchTerms({content:n}),l=W.filterSearchTerms({content:n}),s=!u&&!l||r.showAllItemMatches?a||c:a?Object(w.d)(a):Object(w.c)(c),f=new Set,d=Object(o.a)(Object(v.r)(s));try{for(d.s();!(t=d.n()).done;){var p=t.value;if(f.has(p.url))return!0;f.add(p.url)}}catch(h){d.e(h)}finally{d.f()}return!1},selectedSetsHaveUnits:function(e){var t=e.content;if(W.onlyLocalClientIsSelected({content:t})&&t.sets.selectedClientHistoryItemId){var n,r=null===(n=Object(k.f)(t.sets,t.sets.selectedClientHistoryItemId))||void 0===n?void 0:n.windows;if(r){var i,a=Object(o.a)(r);try{for(a.s();!(i=a.n()).done;){if(i.value.tabs.length)return!0}}catch(x){a.e(x)}finally{a.f()}}return!1}var c,u=Object(o.a)(t.sets.selectedSetIds);try{for(u.s();!(c=u.n()).done;){var l=c.value,s=Object(k.r)(l)&&t.sets.localWindows;if(s){var f,d=Object(o.a)(s);try{for(d.s();!(f=d.n()).done;){if(f.value.tabs.length)return!0}}catch(x){d.e(x)}finally{d.f()}}else{var p=Object(k.g)(t.sets,l);if(p){var h,v,b=Object(o.a)(null!==(h=p.folders)&&void 0!==h?h:[]);try{for(b.s();!(v=b.n()).done;){if(v.value.links.length)return!0}}catch(x){b.e(x)}finally{b.f()}}else{var m=Object(k.n)(t.sets,l);if(m){var y,g,w=Object(o.a)(null!==(y=m.windows)&&void 0!==y?y:[]);try{for(w.s();!(g=w.n()).done;){if(g.value.tabs.length)return!0}}catch(x){w.e(x)}finally{w.f()}}}}}}catch(x){u.e(x)}finally{u.f()}return!1},selectedSetDateTexts:function(e){var t=e.content.sets;if(1!==t.selectedSetIds.length)return null;if(Object(k.r)(t.selectedSetIds[0])){if(!t.selectedClientHistoryItemId)return null;var n=Object(k.f)(t,t.selectedClientHistoryItemId);if(n)return{primary:Object(f.d)(m.a.date(n.id,{format:"relative"})),secondary:""}}var r=Object(k.g)(t,t.selectedSetIds[0],!0);if(r){var o=r.created,i=r.updated,a=o&&i&&+o<+i;return{primary:Object(f.d)(Object(v.s)(o,i)),secondary:a?Object(f.d)(Object(v.s)(o)):""}}var c=Object(k.n)(t,t.selectedSetIds[0],!0);return(null===c||void 0===c?void 0:c.updated)?{primary:Object(f.d)(m.a.date(c.updated,{format:"long"})),secondary:Object(f.d)(m.a.date(c.updated,{format:"relative",verb:"updated"}))}:null},selectedSetTitle:function(e){var t=e.content,n=e.settings;if(1===t.sets.selectedSetIds.length){var r=t.sets.selectedSetIds[0];if(Object(k.r)(r)){var o=t.sets.clientHistory.sets[t.sets.selectedClientHistoryItemId];return o?"".concat(Object(f.d)(y.a.clientHistoryItemType(o.type))," \u2022 ").concat(Object(f.d)(m.a.shortDate(o.id))):Object(g.l)("clientTitle")({settings:n})}var i=Object(k.g)(t.sets,r,!0);if(i)return i.title;var a=Object(k.n)(t.sets,r,!0);if(a)return a.title}else if(t.sets.selectedSetIds.length>1){var c;return null===(c=Object(k.e)(t.sets,(function(e){return!!e.title})))||void 0===c?void 0:c.title}},lastSelectedCollection:function(e){var t,n=e.content;return null!==(t=Object(k.e)(n.sets,(function(e){return!!e.title})))&&void 0!==t?t:Object(k.e)(n.sets)},someSelectedSetsAreLoading:function(e){var t=e.content;return t.sets.selectedSetIds.some((function(e){return Object(k.t)(t.sets,e)}))||W.onlyLocalClientIsSelected({content:t})&&!!t.sets.selectedClientHistoryItemId&&Object(k.t)(t.sets,t.sets.selectedClientHistoryItemId)},someSelectedSetsAreInvalid:function(e){var t=e.content;return t.sets.selectedSetIds.some((function(e){return Object(k.s)(t.sets,e)}))},allSelectedSetsAreInvalid:function(e){var t=e.content;return t.sets.selectedSetIds.every((function(e){return Object(k.s)(t.sets,e)}))},selectedSetInfo:function(e){var t=e.content,n=t.sets.selectedSetIds,r=n.length,o=n.filter((function(e){return Object(k.s)(t.sets,e)})).length,i=o>0,a=i&&o===r;return{total:r,invalid:o,none:!r,someInvalid:i,multipleInvalid:o>1,singleInvalid:1===o,allInvalid:a,partialInvalid:i&&!a}},someSelectedSetsAreUnhydrated:function(e){var t=e.content;return t.sets.selectedSetIds.some((function(e){return!Object(k.r)(e)&&!Object(k.s)(t.sets,e)&&Object(k.u)(Object(k.m)(t.sets,e,!0))}))||W.onlyLocalClientIsSelected({content:t})&&!!t.sets.selectedClientHistoryItemId&&Object(k.u)(Object(k.f)(t.sets,t.sets.selectedClientHistoryItemId))},someSelectedSetsArePending:function(e){var t=e.content;return W.someSelectedSetsAreLoading({content:t})||W.someSelectedSetsAreUnhydrated({content:t})},someSelectedSetsArePendingOrInvalid:function(e){var t=e.content;return W.someSelectedSetsArePending({content:t})||W.someSelectedSetsAreInvalid({content:t})},noSetIsSelected:function(e){return!e.content.sets.selectedSetIds.length},multipleSetsAreSelected:function(e){return e.content.sets.selectedSetIds.length>1},localClientIsSelected:function(e){return e.content.sets.selectedSetIds.some(k.r)},singleClientIsSelected:function(e){var t=e.content;return W.onlyLocalClientIsSelected({content:t})||W.singleRemoteClientIsSelected({content:t})},onlyLocalClientIsSelected:function(e){var t=e.content;return 1===t.sets.selectedSetIds.length&&Object(k.r)(t.sets.selectedSetIds[0])},onlyLocalClientNowIsSelected:function(e){var t=e.content;return W.onlyLocalClientIsSelected({content:t})&&!t.sets.selectedClientHistoryItemId},onlyLocalClientEventIsSelected:function(e){var t=e.content;return W.onlyLocalClientIsSelected({content:t})&&!!t.sets.selectedClientHistoryItemId},singleRemoteClientIsSelected:function(e){var t=e.content;return 1===t.sets.selectedSetIds.length&&!!Object(k.n)(t.sets,t.sets.selectedSetIds[0],!0)},singleCollectionIsSelected:function(e){var t=e.content;return 1===t.sets.selectedSetIds.length&&!!Object(k.g)(t.sets,t.sets.selectedSetIds[0],!0)},onlyClientsAreSelected:function(e){return q(e.content.sets)},onlyCollectionsAreSelected:function(e){var t=e.content;return t.sets.selectedSetIds.length>0&&t.sets.selectedSetIds.every((function(e){return!!Object(k.g)(t.sets,e,!0)}))},selectedSetCount:function(e){return e.content.sets.selectedSetIds.length},selectedClientCount:function(e){var t=e.content;return t.sets.selectedSetIds.filter((function(e){return Object(k.r)(e)||!!Object(k.n)(t.sets,e,!0)})).length},selectedRemoteClientCount:function(e){var t=e.content;return t.sets.selectedSetIds.filter((function(e){return!!Object(k.n)(t.sets,e,!0)})).length},selectedCollectionCount:function(e){var t=e.content;return t.sets.selectedSetIds.filter((function(e){return!!Object(k.g)(t.sets,e,!0)})).length},selectedCollectionIds:function(e){var t=e.content;return t.sets.selectedSetIds.filter((function(e){return!!Object(k.g)(t.sets,e,!0)}))},searchTerms:function(e){return e.content.sets.searchTerms},filterSearchTerms:function(e){return e.content.sets.filterSearchTerms},searchResults:function(e){return e.content.sets.searchResults},searchResultsLoading:function(e){return e.content.sets.searchResultsLoading}};function q(e){return e.selectedSetIds.length>0&&e.selectedSetIds.every((function(t){return Object(k.r)(t)||!!Object(k.n)(e,t,!0)}))}function G(e){if(q(e))return e.selectedSetIds.map((function(t,n){return function(e){var t,n,r,o,a=e.sets,c=e.setId,u=e.setInfo,l=Object(k.r)(c)?a.selectedClientHistoryItemId?null!==(t=null===(n=Object(k.f)(a,a.selectedClientHistoryItemId))||void 0===n?void 0:n.windows)&&void 0!==t?t:[]:a.localWindows:null!==(r=null===(o=Object(k.n)(a,c))||void 0===o?void 0:o.windows)&&void 0!==r?r:[];return u?K(l,Object(i.a)({type:Object(k.r)(c)?a.selectedClientHistoryItemId?"history":"session":"client"},u)):l}({sets:e,setId:t,setInfo:e.selectedSetIds.length>1?{idx:n,totalCount:e.selectedSetIds.length}:void 0})})).flat()}function V(e){if(!q(e))return e.selectedSetIds.map((function(t,n){return function(e){var t,n=e.sets,r=e.setId,o=e.setInfo;if(Object(k.r)(r)){var a,c,u=(n.selectedClientHistoryItemId?null!==(a=null===(c=Object(k.f)(n,n.selectedClientHistoryItemId))||void 0===c?void 0:c.windows)&&void 0!==a?a:[]:n.localWindows).map((function(e){return Object(k.c)(e,void 0,void 0,!0)}));return o?K(u,Object(i.a)({type:n.selectedClientHistoryItemId?"history":"session"},o)):u}if(Object(k.s)(n,r))return[];var l=Object(k.g)(n,r);if(l){var s,f=null!==(s=l.folders)&&void 0!==s?s:[];return o?K(f,Object(i.a)({type:"collection",title:l.title},o)):f}var d=Object(k.n)(n,r),p=(null!==(t=null===d||void 0===d?void 0:d.windows)&&void 0!==t?t:[]).map((function(e){return Object(k.c)(e)}));return o?K(p,Object(i.a)({type:"client"},o)):p}({sets:e,setId:t,setInfo:e.selectedSetIds.length>1?{idx:n,totalCount:e.selectedSetIds.length}:void 0})})).flat()}function K(e,t){var n=t.type,r=t.title,o=t.idx,a=t.totalCount,c=j.a.inSet({type:n,title:r,idx:o,totalCount:a});return e.map((function(e){return Object(i.a)(Object(i.a)({},e),{},{_setText:c})}))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"g",(function(){return s})),n.d(t,"e",(function(){return f})),n.d(t,"a",(function(){return d})),n.d(t,"f",(function(){return p})),n.d(t,"i",(function(){return h})),n.d(t,"h",(function(){return v})),n.d(t,"d",(function(){return b})),n.d(t,"c",(function(){return m}));var r=n(3),o={gray:"#999",blue:"#0097ff",green:"#6ab200",yellow:"#ca9f00",red:"#d54040"},i="#99999922",a="#0097ff22",c="#6ab20022",u="#ca9f0022",l="#d5404022";function s(e,t){return function(n){return function(e,t){var n,o=t.color1,i=t.color2,a=e.map((function(e){return e.map((function(e){return y(e)})).join("")})),c=m(o),u=m(i),l=e.map((function(e){return e.map((function(e,t){return t%2?u:c}))})).flat();(n=console).log.apply(n,[a.join("\n\r")].concat(Object(r.a)(l)))}(n,{color1:e,color2:t})}}var f=b(o.gray),d=b(o.blue),p=b(o.green),h=b(o.yellow),v=b(o.red);b(o.gray,i),b(o.blue,a),b(o.green,c),b(o.yellow,u),b(o.red,l);function b(e,t){return function(){for(var n,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var c=i[0],u=i.slice(1);(n=console).log.apply(n,[y(c),m(e,t)].concat(Object(r.a)(u)))}}function m(e,t){return"color: ".concat(e).concat(t?";background-color: ".concat(t):"")}function y(e){return"%c".concat("object"===typeof e?JSON.stringify(e,null,2):e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(150);function o(e,t,n){return(t=Object(r.a)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";function r(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"c",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return f}));var r,o,i=n(57),a=Object(i.b)({name:"notification",initialState:{visible:!1,text:"Be kind to yourself",severity:"info"},reducers:{notificationShown:function(e,t){var n=t.payload,r=n.text,o=n.severity,i=void 0===o?"info":o,a=n.actionText;e.visible=!0,e.text=r,e.severity=i,e.actionText=a},notificationHidden:function(e){e.visible=!1}}}),c=a.reducer;function u(e){var t=e.text,n=e.severity,i=e.actionText,c=e.action,u=e.timeout,s=void 0===u?3e3:u;return function(e){r=c,window.clearTimeout(o),"none"!==s&&(o=window.setTimeout((function(){e(l())}),s)),e(a.actions.notificationShown({text:t,severity:n,actionText:i}))}}function l(){return function(e){r=void 0,e(a.actions.notificationHidden())}}function s(){var e;return null===(e=r)||void 0===e?void 0:e()}var f={notificationVisible:function(e){return e.notification.visible},notificationText:function(e){return e.notification.text},notificationSeverity:function(e){return e.notification.severity},notificationActionText:function(e){return e.notification.actionText}}},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return C})),n.d(t,"b",(function(){return P}));var o=n(43),i=(n(107),n(80)),a=n(155),c=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),u=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(c){i=[6,c],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},l=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},s=Object.defineProperty,f=Object.defineProperties,d=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable,b=function(e,t,n){return t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},m=function(e,t){for(var n in t||(t={}))h.call(t,n)&&b(e,n,t[n]);if(p)for(var r=0,o=p(t);r<o.length;r++){n=o[r];v.call(t,n)&&b(e,n,t[n])}return e},y=function(e,t){return f(e,d(t))},g=function(e,t,n){return new Promise((function(r,o){var i=function(e){try{c(n.next(e))}catch(t){o(t)}},a=function(e){try{c(n.throw(e))}catch(t){o(t)}},c=function(e){return e.done?r(e.value):Promise.resolve(e.value).then(i,a)};c((n=n.apply(e,t)).next())}))},w="undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"===typeof arguments[0]?i.c:i.c.apply(null,arguments)};"undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function x(e){if("object"!==typeof e||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n}var O=function(e){function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=e.apply(this,n)||this;return Object.setPrototypeOf(o,t.prototype),o}return c(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,l([void 0],e[0].concat(this)))):new(t.bind.apply(t,l([void 0],e.concat(this))))},t}(Array),j=function(e){function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=e.apply(this,n)||this;return Object.setPrototypeOf(o,t.prototype),o}return c(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,l([void 0],e[0].concat(this)))):new(t.bind.apply(t,l([void 0],e.concat(this))))},t}(Array);function k(e){return Object(o.e)(e)?Object(o.b)(e,(function(){})):e}function S(){return function(e){return function(e){void 0===e&&(e={});var t=e.thunk,n=void 0===t||t,r=(e.immutableCheck,e.serializableCheck,new O);n&&("boolean"===typeof n?r.push(a.a):r.push(a.a.withExtraArgument(n.extraArgument)));0;return r}(e)}}var E=!0;function C(e){var t,n=S(),r=e||{},o=r.reducer,a=void 0===o?void 0:o,c=r.middleware,u=void 0===c?n():c,s=r.devTools,f=void 0===s||s,d=r.preloadedState,p=void 0===d?void 0:d,h=r.enhancers,v=void 0===h?void 0:h;if("function"===typeof a)t=a;else{if(!x(a))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');t=Object(i.b)(a)}var b=u;if("function"===typeof b&&(b=b(n),!E&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!E&&b.some((function(e){return"function"!==typeof e})))throw new Error("each middleware provided to configureStore must be a function");var y=i.a.apply(void 0,b),g=i.c;f&&(g=w(m({trace:!E},"object"===typeof f&&f)));var O=new j(y),k=O;Array.isArray(v)?k=l([y],v):"function"===typeof v&&(k=v(O));var C=g.apply(void 0,k);return Object(i.d)(t,p,C)}function T(e,t){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(t){var o=t.apply(void 0,n);if(!o)throw new Error("prepareAction did not return an object");return m(m({type:e,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:e,payload:n[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(t){return t.type===e},n}function I(e){var t,n={},r=[],o={addCase:function(e,t){var r="string"===typeof e?e:e.type;if(r in n)throw new Error("addCase cannot be called with two reducers for the same action type");return n[r]=t,o},addMatcher:function(e,t){return r.push({matcher:e,reducer:t}),o},addDefaultCase:function(e){return t=e,o}};return e(o),[n,r,t]}function P(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");var n,r="function"==typeof e.initialState?e.initialState:k(e.initialState),i=e.reducers||{},a=Object.keys(i),c={},u={},s={};function f(){var t="function"===typeof e.extraReducers?I(e.extraReducers):[e.extraReducers],n=t[0],i=void 0===n?{}:n,a=t[1],c=void 0===a?[]:a,s=t[2],f=void 0===s?void 0:s,d=m(m({},i),u);return function(e,t,n,r){void 0===n&&(n=[]);var i,a="function"===typeof t?I(t):[t,n,r],c=a[0],u=a[1],s=a[2];if("function"===typeof e)i=function(){return k(e())};else{var f=k(e);i=function(){return f}}function d(e,t){void 0===e&&(e=i());var n=l([c[t.type]],u.filter((function(e){return(0,e.matcher)(t)})).map((function(e){return e.reducer})));return 0===n.filter((function(e){return!!e})).length&&(n=[s]),n.reduce((function(e,n){if(n){var r;if(Object(o.d)(e))return void 0===(r=n(e,t))?e:r;if(Object(o.e)(e))return Object(o.b)(e,(function(e){return n(e,t)}));if(void 0===(r=n(e,t))){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return e}),e)}return d.getInitialState=i,d}(r,(function(e){for(var t in d)e.addCase(t,d[t]);for(var n=0,r=c;n<r.length;n++){var o=r[n];e.addMatcher(o.matcher,o.reducer)}f&&e.addDefaultCase(f)}))}return a.forEach((function(e){var n,r,o=i[e],a=t+"/"+e;"reducer"in o?(n=o.reducer,r=o.prepare):n=o,c[e]=n,u[a]=n,s[e]=r?T(a,r):T(a)})),{name:t,reducer:function(e,t){return n||(n=f()),n(e,t)},actions:s,caseReducers:c,getInitialState:function(){return n||(n=f()),n.getInitialState()}}}var L=function(e){void 0===e&&(e=21);for(var t="",n=e;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},_=["name","message","stack","code"],R=function(e,t){this.payload=e,this.meta=t},N=function(e,t){this.payload=e,this.meta=t},M=function(e){if("object"===typeof e&&null!==e){for(var t={},n=0,r=_;n<r.length;n++){var o=r[n];"string"===typeof e[o]&&(t[o]=e[o])}return t}return{message:String(e)}};!function(){function e(e,t,n){var r=T(e+"/fulfilled",(function(e,t,n,r){return{payload:e,meta:y(m({},r||{}),{arg:n,requestId:t,requestStatus:"fulfilled"})}})),o=T(e+"/pending",(function(e,t,n){return{payload:void 0,meta:y(m({},n||{}),{arg:t,requestId:e,requestStatus:"pending"})}})),i=T(e+"/rejected",(function(e,t,r,o,i){return{payload:o,error:(n&&n.serializeError||M)(e||"Rejected"),meta:y(m({},i||{}),{arg:r,requestId:t,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)})}})),a="undefined"!==typeof AbortController?AbortController:function(){function e(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return e.prototype.abort=function(){0},e}();return Object.assign((function(e){return function(c,l,s){var f,d=(null==n?void 0:n.idGenerator)?n.idGenerator(e):L(),p=new a;function h(e){f=e,p.abort()}var v=function(){return g(this,null,(function(){var a,v,b,m,y,g;return u(this,(function(u){switch(u.label){case 0:return u.trys.push([0,4,,5]),m=null==(a=null==n?void 0:n.condition)?void 0:a.call(n,e,{getState:l,extra:s}),null===(w=m)||"object"!==typeof w||"function"!==typeof w.then?[3,2]:[4,m];case 1:m=u.sent(),u.label=2;case 2:if(!1===m||p.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return!0,y=new Promise((function(e,t){return p.signal.addEventListener("abort",(function(){return t({name:"AbortError",message:f||"Aborted"})}))})),c(o(d,e,null==(v=null==n?void 0:n.getPendingMeta)?void 0:v.call(n,{requestId:d,arg:e},{getState:l,extra:s}))),[4,Promise.race([y,Promise.resolve(t(e,{dispatch:c,getState:l,extra:s,requestId:d,signal:p.signal,abort:h,rejectWithValue:function(e,t){return new R(e,t)},fulfillWithValue:function(e,t){return new N(e,t)}})).then((function(t){if(t instanceof R)throw t;return t instanceof N?r(t.payload,d,e,t.meta):r(t,d,e)}))])];case 3:return b=u.sent(),[3,5];case 4:return g=u.sent(),b=g instanceof R?i(null,d,e,g.payload,g.meta):i(g,d,e),[3,5];case 5:return n&&!n.dispatchConditionRejection&&i.match(b)&&b.meta.condition||c(b),[2,b]}var w}))}))}();return Object.assign(v,{abort:h,requestId:d,arg:e,unwrap:function(){return v.then(A)}})}}),{pending:o,rejected:i,fulfilled:r,typePrefix:e})}e.withTypes=function(){return e}}();function A(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}Object.assign;var D="listenerMiddleware";T(D+"/add"),T(D+"/removeAll"),T(D+"/remove");"function"===typeof queueMicrotask&&queueMicrotask.bind("undefined"!==typeof window?window:"undefined"!==typeof r?r:globalThis);var F,z=function(e){return function(t){setTimeout(t,e)}};"undefined"!==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:z(10);Object(o.c)()}).call(this,n(193),n(136))},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"d",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return f})),n.d(t,"e",(function(){return d}));var r=n(204);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(Object(r.a)(3,e));var o=e.substring(t+1,e.length-1).split(",");return{type:n,values:o=o.map((function(e){return parseFloat(e)}))}}function a(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function c(e,t){var n=u(e),r=u(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function u(e){var t="hsl"===(e=i(e)).type?i(function(e){var t=(e=i(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,c=r*Math.min(o,1-o),u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-c*Math.max(Math.min(t-3,9-t,1),-1)},l="rgb",s=[Math.round(255*u(0)),Math.round(255*u(8)),Math.round(255*u(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),a({type:l,values:s})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return u(e)>.5?f(e,t):d(e,t)}function s(e,t){return e=i(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,a(e)}function f(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function d(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return a(e)}},function(e,t,n){"use strict";n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return p}));var r,o,i=n(2);function a(){a=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(I){l=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),c=new E(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(I){return{type:"throw",arg:I}}}e.wrap=s;var d={};function p(){}function h(){}function v(){}var b={};l(b,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(C([])));y&&y!==t&&n.call(y,i)&&(b=y);var g=v.prototype=p.prototype=Object.create(b);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,i,a,c){var u=f(e[r],e,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return h.prototype=v,r(g,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:h,configurable:!0}),h.displayName=l(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l(e,u,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},w(x.prototype),l(x.prototype,c,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new x(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(g),l(g,u,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=C,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}var c=null===(r=globalThis.chrome)||void 0===r?void 0:r.runtime,u=null===(o=globalThis.chrome)||void 0===o?void 0:o.management;function l(){return s.apply(this,arguments)}function s(){return(s=Object(i.a)(a().mark((function e(){var t,n,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===u||void 0===u||null===(t=u.getSelf)||void 0===t?void 0:t.call(u);case 2:return r=e.sent,e.abrupt("return",null!==(n=null===r||void 0===r?void 0:r.installType)&&void 0!==n?n:"unknown");case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(){var e;return null!==(e=null===c||void 0===c?void 0:c.id)&&void 0!==e?e:""}function d(){var e,t,n;return null!==(e=null===c||void 0===c||null===(t=c.getManifest)||void 0===t||null===(n=t.call(c))||void 0===n?void 0:n.name)&&void 0!==e?e:""}function p(){var e,t,n;return null!==(e=null===c||void 0===c||null===(t=c.getManifest)||void 0===t||null===(n=t.call(c))||void 0===n?void 0:n.version)&&void 0!==e?e:""}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"h",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return f})),n.d(t,"f",(function(){return d})),n.d(t,"e",(function(){return p})),n.d(t,"g",(function(){return h})),n.d(t,"i",(function(){return v}));var r=n(75),o=n(24);function i(){return"window"in globalThis}var a=["altKey","ctrlKey","metaKey","shiftKey"];function c(e){var t=e.single,n=e.double,r=e.stopPropagation,i=e.leftButtonOnly;return function(e){r&&e.stopPropagation(),i&&!u(e)||(1===e.detail&&(null===t||void 0===t||t(Object(o.i)(e,a))),2===e.detail&&(null===n||void 0===n||n(Object(o.i)(e,a))))}}var u=function(e){return 0===e.button&&("mac"!==r.a||!e.ctrlKey)},l=function(e){return"mac"===r.a?e.metaKey:e.ctrlKey},s=function(){return"mac"===r.a?"\u2318":"ctrl"},f=function(e){return"Delete"===e||"mac"===r.a&&"Backspace"===e},d=function(e){return"Home"===e.key||"mac"===r.a&&e.metaKey&&"ArrowUp"===e.key},p=function(e){return"End"===e.key||"mac"===r.a&&e.metaKey&&"ArrowDown"===e.key},h=function(e){return"INPUT"===(null===e||void 0===e?void 0:e.tagName)||"TEXTAREA"===(null===e||void 0===e?void 0:e.tagName)},v=function(e,t){var n=function(n){if(!n.relatedTarget||n.relatedTarget!==e&&!e.contains(n.relatedTarget))return t(n)};return e.addEventListener("focusout",n),function(){e.removeEventListener("focusout",n)}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return l}));var r,o=n(57),i=Object(o.b)({name:"confirmation",initialState:{visible:!1,title:"Be kind to yourself",text:"Be kind to yourself"},reducers:{confirmationShown:function(e,t){var n=t.payload,r=n.title,o=n.text,i=n.bypassSetting,a=n.bypassText,c=n.hasOkAction;e.visible=!0,e.title=r,e.text=o,e.bypassSetting=i,e.bypassText=a,e.hasOkAction=c},confirmationHidden:function(e){e.visible=!1}}}),a=i.reducer;function c(e){var t=e.title,n=e.text,o=e.bypass,a=e.bypassSetting,c=e.bypassText,l=void 0===c?"Don't ask again":c,s=e.okAction;return function(e,c){var f=new Promise((function(e){r=function(t){return e(t?null===s||void 0===s?void 0:s():void 0)}}));if(o)return e(u({executeAction:!0})),f;if(a&&c().settings[a])return e(u({executeAction:!0})),f;return e(i.actions.confirmationShown({title:t,text:n,bypassSetting:a,bypassText:l,hasOkAction:!!s})),f}}function u(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).executeAction;return function(t){var n;null===(n=r)||void 0===n||n(e),r=void 0,t(i.actions.confirmationHidden())}}var l={confirmationVisible:function(e){return e.confirmation.visible},confirmationTitle:function(e){return e.confirmation.title},confirmationText:function(e){return e.confirmation.text},confirmationBypassSetting:function(e){return e.confirmation.bypassSetting},confirmationBypassText:function(e){return e.confirmation.bypassText},hasOkAction:function(e){return!!e.confirmation.hasOkAction}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(104);function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Object(r.a)(e,t)}},function(e,t,n){"use strict";var r=n(121),o=n(141);function i(e){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var a=n(115);function c(e){return function(){var t,n=Object(r.a)(e);if(Object(o.a)()){var c=Object(r.a)(this).constructor;t=Reflect.construct(n,arguments,c)}else t=n.apply(this,arguments);return function(e,t){return!t||"object"!==i(t)&&"function"!==typeof t?Object(a.a)(e):t}(this,t)}}n.d(t,"a",(function(){return c}))},,function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(3),o=n(26),i=n(22),a=n(2);function c(e){this.wrapped=e}function u(e){return new c(e)}function l(e){var t,n;function r(t,n){try{var i=e[t](n),a=i.value,u=a instanceof c;Promise.resolve(u?a.wrapped:a).then((function(e){u?r("return"===t?"return":"next",e):o(i.done?"return":"normal",e)}),(function(e){r("throw",e)}))}catch(l){o("throw",l)}}function o(e,o){switch(e){case"return":t.resolve({value:o,done:!0});break;case"throw":t.reject(o);break;default:t.resolve({value:o,done:!1})}(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,o){return new Promise((function(i,a){var c={key:e,arg:o,resolve:i,reject:a,next:null};n?n=n.next=c:(t=n=c,r(e,o))}))},"function"!==typeof e.return&&(this.return=void 0)}"function"===typeof Symbol&&Symbol.asyncIterator&&(l.prototype[Symbol.asyncIterator]=function(){return this}),l.prototype.next=function(e){return this._invoke("next",e)},l.prototype.throw=function(e){return this._invoke("throw",e)},l.prototype.return=function(e){return this._invoke("return",e)};var s=n(29),f=n(100),d=n(50),p=n(51),h=n(5),v=n(108),b=n(12),m=n(77);function y(){y=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(I){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new E(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(I){return{type:"throw",arg:I}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var b=Object.getPrototypeOf,m=b&&b(b(C([])));m&&m!==t&&n.call(m,i)&&(v=m);var g=h.prototype=d.prototype=Object.create(v);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return p.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},w(x.prototype),u(x.prototype,a,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new x(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(g),u(g,c,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=C,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function g(e){return w.apply(this,arguments)}function w(){return(w=Object(a.a)(y().mark((function e(t){var n,r,o,i;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=JSON.stringify(t),r=new TextEncoder,o=r.encode(n),e.next=5,j(o);case 5:return i=e.sent,e.abrupt("return",Object(m.d)(i));case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function x(e){return O.apply(this,arguments)}function O(){return O=Object(a.a)(y().mark((function e(t){return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=Object(a.a)(y().mark((function e(n,r){var o,i,a,c,u;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=3;break}return n(null),e.abrupt("return");case 3:return e.prev=3,o=Object(m.b)(t),e.next=7,S(o);case 7:i=e.sent,a=new TextDecoder,c=a.decode(i),u=JSON.parse(c),n(u),e.next=18;break;case 14:e.prev=14,e.t0=e.catch(3),console.error("Failed to load or decompress data:",e.t0),r(e.t0);case 18:case"end":return e.stop()}}),e,null,[[3,14]])})));return function(t,n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),O.apply(this,arguments)}function j(e){return k.apply(this,arguments)}function k(){return(k=Object(a.a)(y().mark((function e(t){var n,r,o;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new CompressionStream("gzip"),(r=n.writable.getWriter()).write(t),r.close(),e.next=6,new Response(n.readable).arrayBuffer();case 6:return o=e.sent,e.abrupt("return",new Uint8Array(o));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function S(e){return E.apply(this,arguments)}function E(){return(E=Object(a.a)(y().mark((function e(t){var n,r,o;return y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new DecompressionStream("gzip"),(r=n.writable.getWriter()).write(t),r.close(),e.next=6,new Response(n.readable).arrayBuffer();case 6:return o=e.sent,e.abrupt("return",new Uint8Array(o));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var C=n(140),T=n(46),I=n(8),P=n(97),L=n(27),_=n(18),R=n(9),N=n(39);function M(){M=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(T){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new S(o||[]);return r(a,"_invoke",{value:x(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var b=Object.getPrototypeOf,m=b&&b(b(E([])));m&&m!==t&&n.call(m,i)&&(v=m);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=O(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function O(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function E(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=E,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}n.d(t,"b",(function(){return q})),n.d(t,"a",(function(){return ae})),n.d(t,"c",(function(){return he})),n.d(t,"h",(function(){return ye})),n.d(t,"f",(function(){return ke})),n.d(t,"e",(function(){return Ee})),n.d(t,"g",(function(){return Te})),n.d(t,"d",(function(){return Ie}));var A=138,D=3,F=4*I.d,z=2*I.h,B="backup",H="~backup-",U="backup-summary-",W="backup-checkpoint-";function q(){return G.apply(this,arguments)}function G(){return G=Object(a.a)(M().mark((function e(){var t,n,r,o,i,c,u,l,d,p=arguments;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(t=p.length>0&&void 0!==p[0]?p[0]:{}).anyTime,r=t.debug,e.next=3,Object(N.b)(["debugLocalBackup","debug","backupWhenIdle"]);case 3:if(o=e.sent,i=o.debugLocalBackup,c=o.debug,u=o.backupWhenIdle,l=Ye({debugOverride:r,debugLocalBackup:i,debugGeneral:c}),!(d=Ke())){e.next=12;break}return l.debug&&Object(R.b)("\ud83d\udec7 auto-backup skipped: ".concat(d)),e.abrupt("return");case 12:return e.next=14,Object(f.a)();case 14:return e.abrupt("return",navigator.locks.request(B,{mode:"exclusive",ifAvailable:!0},function(){var e=Object(a.a)(M().mark((function e(t){var r,o,i;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=new Date,n){e.next=12;break}if(r.getHours()===D&&r.getMinutes()<5){e.next=12;break}if(e.t0=u,!e.t0){e.next=9;break}return e.next=8,Object(v.a)();case 8:e.t0=e.sent;case 9:if(e.t0){e.next=12;break}return e.abrupt("return");case 12:if(t){e.next=15;break}return l.debug&&Object(R.f)("\ud83d\udec7 Cannot run auto backup trigger check. A backup or restore is in progress."),e.abrupt("return");case 15:return e.next=17,Object(s.b)();case 17:return o=e.sent,i=o.settings,e.next=21,i.get("disableAutoBackupRemotely");case 21:if(!e.sent){e.next=25;break}return l.debug&&Object(R.a)("\ud83d\udec7 auto-backup skipped: auto-backup is globally disabled"),e.abrupt("return");case 25:return e.next=27,Object(N.a)("enableAutoBackup");case 27:if(e.sent){e.next=31;break}return l.debug&&Object(R.a)("\ud83d\udec7 auto-backup skipped: auto-backup is disabled"),e.abrupt("return");case 31:return e.next=33,Re();case 33:if(!e.sent){e.next=42;break}if(!l.debug){e.next=42;break}return e.t1=R.f,e.t2="auto-backup: web storage usage is high: ",e.next=39,Object(P.b)();case 39:e.t3=e.sent,e.t4=e.t2.concat.call(e.t2,e.t3,"%"),(0,e.t1)(e.t4);case 42:return e.next=44,V({log:l});case 44:return e.next=46,K({log:l});case 46:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 15:case"end":return e.stop()}}),e)}))),G.apply(this,arguments)}function V(e){var t=e.log;return t.debug&&Object(R.d)("-----------------------------------\n--- AUTO-BACKUP FOR COLLECTIONS ---\n-----------------------------------"),$({type:"collections",getDbChangedDate:Z,checkForClearingEvent:function(){var e=Object(a.a)(M().mark((function e(){var t;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(d.h)();case 2:return t=e.sent,e.abrupt("return",void 0!==t&&t<20);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),getDbOldestCreatedDate:ne,backup:ue,log:t})}function K(e){var t=e.log;return t.debug&&Object(R.d)("------------------------------\n--- AUTO-BACKUP FOR EVENTS ---\n------------------------------"),$({type:"events",getDbChangedDate:ee,checkForClearingEvent:function(){return Promise.resolve(!0)},getDbOldestCreatedDate:oe,backup:se,log:t})}function $(e){return Y.apply(this,arguments)}function Y(){return(Y=Object(a.a)(M().mark((function e(t){var n,r,o,i,a,c,u,l,s,f,d,p,h,v;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.type,r=t.getDbChangedDate,o=t.checkForClearingEvent,i=t.getDbOldestCreatedDate,a=t.backup,c=t.log,e.next=3,Q(n);case 3:if(!(u=e.sent)){e.next=30;break}if(!((l=Object(I.k)(Object(I.m)()-F))&&l<u)){e.next=9;break}return c.debug&&(s=Math.round((+u-+l)/I.f),f=s?" (".concat(s," minutes remaining)"):"",Object(R.a)("\ud83d\udec7 ".concat(n," auto-backup skipped: last backup is too recent").concat(f))),e.abrupt("return");case 9:return e.next=11,r();case 11:if(!((d=e.sent)&&d<u)){e.next=15;break}return c.debug&&Object(R.a)("\ud83d\udec7 ".concat(n," auto-backup skipped: no changes since last backup")),e.abrupt("return");case 15:return e.next=17,o();case 17:if(!e.sent){e.next=30;break}return e.next=20,i();case 20:if(p=e.sent,c.debug&&Object(R.a)("oldest item in ".concat(n," DB is ").concat(p?"".concat(Object(I.e)(p)," (").concat(Object(I.j)(p),")"):"unknown")),p&&!(u<p)){e.next=30;break}if(c.debug&&Object(R.f)("recent clearing event likely for ".concat(n)),h=+u+z,c.debug&&Object(R.a)("".concat(n," backup preservation ").concat(Object(I.m)()<h?"expires":"expired"," ").concat(Object(I.j)(h))),!((v=Object(I.k)(Object(I.m)()-z))&&v<u)){e.next=30;break}return c.debug&&Object(R.a)("\ud83d\udec7 ".concat(n," auto-backup skipped: preserving backup")),e.abrupt("return");case 30:return c.debug&&Object(R.a)("".concat(n," auto-backup checks satisfied")),e.next=33,a({log:c});case 33:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Q(e){return X.apply(this,arguments)}function X(){return(X=Object(a.a)(M().mark((function e(t){var n;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ze(t);case 2:return n=e.sent,e.abrupt("return",Object(I.k)(null===n||void 0===n?void 0:n.timestamp));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Z(){return J.apply(this,arguments)}function J(){return(J=Object(a.a)(M().mark((function e(){var t;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(L.a)("localDbCollectionsChanged");case 2:return t=e.sent,e.abrupt("return",Object(I.k)(t));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ee(){return te.apply(this,arguments)}function te(){return(te=Object(a.a)(M().mark((function e(){var t;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(L.a)("localDbEventsChanged");case 2:return t=e.sent,e.abrupt("return",Object(I.k)(t));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ne(){return re.apply(this,arguments)}function re(){return(re=Object(a.a)(M().mark((function e(){var t,n;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(d.e)();case 2:if(e.t1=t=e.sent,e.t0=null===e.t1,e.t0){e.next=6;break}e.t0=void 0===t;case 6:if(!e.t0){e.next=10;break}e.t2=void 0,e.next=11;break;case 10:e.t2=t.created;case 11:return n=e.t2,e.abrupt("return",Object(I.k)(n));case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function oe(){return ie.apply(this,arguments)}function ie(){return(ie=Object(a.a)(M().mark((function e(){var t,n;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(p.h)();case 2:if(e.t1=t=e.sent,e.t0=null===e.t1,e.t0){e.next=6;break}e.t0=void 0===t;case 6:if(!e.t0){e.next=10;break}e.t2=void 0,e.next=11;break;case 10:e.t2=t.id;case 11:return n=e.t2,e.abrupt("return",Object(I.k)(n));case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ae(){return ce.apply(this,arguments)}function ce(){return ce=Object(a.a)(M().mark((function e(){var t,n,r,i,c,u,l,s,f,d=arguments;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(t=d.length>0&&void 0!==d[0]?d[0]:{}).type,r=t.logProgress,e.next=3,Object(N.b)(["debugLocalBackup","debug"]);case 3:if(i=e.sent,c=i.debugLocalBackup,u=i.debug,l=Ye({debugLocalBackup:c,debugGeneral:u,logProgress:r}),!(s=Ke())){e.next=14;break}if(f={status:"error",message:"Backup failed. ".concat(s,".")},l.progress&&Object(R.b)(f.message),!n){e.next=13;break}return e.abrupt("return",Object(o.a)({},n,f));case 13:return e.abrupt("return",{collections:f,events:f});case 14:return e.abrupt("return",navigator.locks.request(B,{mode:"exclusive",ifAvailable:!0},function(){var e=Object(a.a)(M().mark((function e(t){var r;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=6;break}if(r={status:"skipped",message:"Cannot run backup. A backup or restore is in progress."},l.progress&&Object(R.f)(r.message),!n){e.next=5;break}return e.abrupt("return",Object(o.a)({},n,r));case 5:return e.abrupt("return",{collections:r,events:r});case 6:return e.next=8,Re();case 8:if(!e.sent){e.next=16;break}return e.t0=R.f,e.t1="Web storage usage is high: ",e.next=13,Object(P.b)();case 13:e.t2=e.sent,e.t3=e.t1.concat.call(e.t1,e.t2,"%"),(0,e.t0)(e.t3);case 16:if(!n){e.next=31;break}if(e.t4=o.a,e.t5={},e.t6=n,"collections"!==n){e.next=26;break}return e.next=23,ue({log:l});case 23:e.t7=e.sent,e.next=29;break;case 26:return e.next=28,se({log:l});case 28:e.t7=e.sent;case 29:return e.t8=e.t7,e.abrupt("return",(0,e.t4)(e.t5,e.t6,e.t8));case 31:return e.next=33,ue({log:l});case 33:return e.t9=e.sent,e.next=36,se({log:l});case 36:return e.t10=e.sent,e.abrupt("return",{collections:e.t9,events:e.t10});case 38:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 15:case"end":return e.stop()}}),e)}))),ce.apply(this,arguments)}function ue(e){return le.apply(this,arguments)}function le(){return(le=Object(a.a)(M().mark((function e(t){var n,r,o,i;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=t.log).progress&&Object(R.d)("Backing up collections..."),e.next=4,Object(N.b)(["backupCollectionsMax","backupChunkSize"]);case 4:return r=e.sent,o=r.backupCollectionsMax,i=r.backupChunkSize,e.abrupt("return",de({type:"collections",getDbCount:d.h,chunkSize:i,max:o,fetchChunk:function(e){return Object(d.c)({from:e?{pinnedTouchedTuple:[e.pinned,e.touched],collectionId:e.id}:void 0,limit:i}).then((function(e){var t;return{main:e.main.map(h.F),boundary:null===(t=e.boundary)||void 0===t?void 0:t.map(h.F)}}))},log:n}));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function se(e){return fe.apply(this,arguments)}function fe(){return(fe=Object(a.a)(M().mark((function e(t){var n,r,o,i;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=t.log).progress&&Object(R.d)("Backing up events..."),e.next=4,Object(N.b)(["backupEventsMax","backupChunkSize"]);case 4:return r=e.sent,o=r.backupEventsMax,i=r.backupChunkSize,e.abrupt("return",de({type:"events",getDbCount:p.j,chunkSize:i,max:o,fetchChunk:function(e){return Object(p.e)({lastItemId:null===e||void 0===e?void 0:e.id,limit:i}).then((function(e){return{main:e.map(h.G)}}))},log:n}));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function de(e){return pe.apply(this,arguments)}function pe(){return(pe=Object(a.a)(M().mark((function e(t){var n,o,i,a,c,u,l,s,f,d,p,h,v,m,y,g,w,x,O,j,k,S,E,C,T,P,N,A;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.type,o=t.getDbCount,i=t.chunkSize,a=t.max,c=t.fetchChunk,u=t.log,!(l=u.checkpoints?$e(n):void 0)){e.next=5;break}return e.next=5,l("getting DB count...");case 5:return e.next=7,o();case 7:if(s=e.sent){e.next=15;break}if(f=null==s?"error accessing ".concat(n):"no ".concat(n," to back up"),u.progress&&Object(R.a)("\ud83d\udec7 ".concat(n," backup skipped: ").concat(f)),!l){e.next=14;break}return e.next=14,l("done");case 14:return e.abrupt("return",{status:"skipped",message:f});case 15:if(d=Object(I.m)(),!l){e.next=19;break}return e.next=19,l("clearing backup...");case 19:return e.next=21,be(n);case 21:e.prev=21,h=0,v=0,m=0,y=new Set,g=Ve({type:n,chunkSize:i,max:a,checkpoint:l}),w=g.saveItems,x=g.flush;case 27:if(v++,!l){e.next=32;break}return e.next=32,l("fetching page ".concat(v," (size: ").concat(i,", count: ").concat(h,")..."));case 32:return e.next=34,c(p);case 34:if(O=e.sent,j=(O.boundary||[]).filter((function(e){var t=e.id;return!y.has(t)})),(k=[].concat(Object(r.a)(j),Object(r.a)(O.main))).forEach((function(e){var t=e.id;return y.add(t)})),S=O.main.length!==i,h+k.length>a&&(E=Math.max(0,a-h),u.debug&&Object(R.f)("Backup count limit reached for ".concat(n,": ").concat(a," items. current count: ").concat(h,". trimming items from ").concat(k.length," to ").concat(E)),S=!0,k.length=E),!k.length){e.next=46;break}return p=Object(b.g)(k),e.next=44,w(k);case 44:h+=k.length,u.progress&&(C=10*Math.round(h/Math.min(a,s)*10))>m&&C<100&&(m=C,Object(R.a)("".concat(m,"% ").concat(n," backed up")));case 46:if(!S){e.next=48;break}return e.abrupt("break",50);case 48:e.next=27;break;case 50:return e.next=52,x();case 52:if(h){e.next=59;break}if(T="backup storage at capacity (".concat(s.toLocaleString("en-US")," ").concat(n," not backed up)"),u.progress&&Object(R.a)("\ud83d\udec7 ".concat(n," backup skipped: ").concat(T)),!l){e.next=58;break}return e.next=58,l("done");case 58:return e.abrupt("return",{status:"skipped",message:T});case 59:if(!l){e.next=62;break}return e.next=62,l("generating summary...");case 62:return P=Math.round(Object(I.m)()-d),e.t0=Object(I.n)(),e.t1=h,e.t2=P,e.t3=L.b,e.next=69,Me(n);case 69:return e.t4=e.sent,e.next=72,(0,e.t3)(e.t4);case 72:if(e.t5=e.sent,e.t6=i,e.t7=s,e.t8=a,N={timestamp:e.t0,count:e.t1,duration:e.t2,usage:e.t5,chunkSize:e.t6,dbCount:e.t7,max:e.t8,version:1},!l){e.next=80;break}return e.next=80,l("saving summary...");case 80:return e.next=82,He(n,N);case 82:if(!l){e.next=85;break}return e.next=85,l("done");case 85:return u.progress&&Object(R.e)("\u2713 ".concat(n," backed up (").concat(h.toLocaleString("en-US")," of ").concat(s.toLocaleString("en-US")," in ").concat((Math.round(P/1e3*100)/100).toLocaleString("en-US")," seconds)")),e.abrupt("return",{status:"success",summary:N});case 89:if(e.prev=89,e.t9=e.catch(21),A=Object(_.a)(e.t9),e.prev=92,!l){e.next=96;break}return e.next=96,l("clearing incomplete backup after exception: ".concat(A));case 96:return e.next=98,be(n);case 98:e.next=102;break;case 100:e.prev=100,e.t10=e.catch(92);case 102:if(e.prev=102,u.progress&&Object(R.b)("\u2717 ".concat(n," backup failed: ").concat(A)),!l){e.next=107;break}return e.next=107,l("backup failed: ".concat(A));case 107:return e.abrupt("return",{status:"error",message:A});case 109:case"end":return e.stop()}}),e,null,[[21,89],[92,100,102,109]])})))).apply(this,arguments)}function he(e){return ve.apply(this,arguments)}function ve(){return ve=Object(a.a)(M().mark((function e(t){var n,r,o=arguments;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(o.length>1&&void 0!==o[1]?o[1]:{}).minSize,!(r=Ke())){e.next=4;break}return e.abrupt("return","Backup clear failed. ".concat(r,"."));case 4:return e.abrupt("return",navigator.locks.request(B,{mode:"exclusive",ifAvailable:!0},function(){var e=Object(a.a)(M().mark((function e(r){return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r){e.next=2;break}return e.abrupt("return","Can't clear right now. A backup or restore is in progress.");case 2:if(!t){e.next=4;break}return e.abrupt("return",be(t,{minSize:n}));case 4:return e.next=6,be("collections",{minSize:n});case 6:return e.next=8,be("events",{minSize:n});case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 5:case"end":return e.stop()}}),e)}))),ve.apply(this,arguments)}function be(e){return me.apply(this,arguments)}function me(){return me=Object(a.a)(M().mark((function e(t){var n,o,a,c,u,l,s,f,d=arguments;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=(d.length>1&&void 0!==d[1]?d[1]:{}).minSize,!Object(T.c)(n)){e.next=7;break}return e.next=4,ze(t);case 4:if(!((o=e.sent)&&Object(T.c)(o.usage)&&o.usage<n)){e.next=7;break}return e.abrupt("return");case 7:return a=We(t),e.next=10,Me(t);case 10:c=e.sent,u=[a].concat(Object(r.a)(c)),l=Object(i.a)(u),e.prev=13,l.s();case 15:if((s=l.n()).done){e.next=21;break}return f=s.value,e.next=19,Object(L.f)(f);case 19:e.next=15;break;case 21:e.next=26;break;case 23:e.prev=23,e.t0=e.catch(13),l.e(e.t0);case 26:return e.prev=26,l.f(),e.finish(26);case 29:case"end":return e.stop()}}),e,null,[[13,23,26,29]])}))),me.apply(this,arguments)}function ye(e){return ge.apply(this,arguments)}function ge(){return ge=Object(a.a)(M().mark((function e(t){var n,r;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=Ke())){e.next=6;break}if(r={valid:void 0,message:"Backup validation failed. ".concat(n,".")},!t){e.next=5;break}return e.abrupt("return",Object(o.a)({},t,r));case 5:return e.abrupt("return",{collections:r,events:r});case 6:return e.abrupt("return",navigator.locks.request(B,{mode:"exclusive",ifAvailable:!0},function(){var e=Object(a.a)(M().mark((function e(n){var r;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n){e.next=5;break}if(r={valid:void 0,message:"Can't validate right now. A backup or restore is in progress."},!t){e.next=4;break}return e.abrupt("return",Object(o.a)({},t,r));case 4:return e.abrupt("return",{collections:r,events:r});case 5:if(!t){e.next=13;break}return e.t0=o.a,e.t1={},e.t2=t,e.next=11,we(t);case 11:return e.t3=e.sent,e.abrupt("return",(0,e.t0)(e.t1,e.t2,e.t3));case 13:return e.next=15,we("collections");case 15:return e.t4=e.sent,e.next=18,we("events");case 18:return e.t5=e.sent,e.abrupt("return",{collections:e.t4,events:e.t5});case 20:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 7:case"end":return e.stop()}}),e)}))),ge.apply(this,arguments)}function we(e){return xe.apply(this,arguments)}function xe(){return(xe=Object(a.a)(M().mark((function e(t){var n;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Oe(t);case 2:return n=e.sent,e.abrupt("return",n?{valid:!1,message:n}:{valid:!0});case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Oe(e){return je.apply(this,arguments)}function je(){return(je=Object(a.a)(M().mark((function e(t){var n,r,o,a,c,u,l,s,f,d,p,h,v,b;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ze(t);case 2:if(n=e.sent){e.next=5;break}return e.abrupt("return","No backup found");case 5:return r=n.count,o=n.chunkSize,a=n.max,e.next=8,Me(t);case 8:c=e.sent.sort(),u=1,l=0,s=Ge(o,a),f=function(e){return De(t,e,s)},d=Object(i.a)(c),e.prev=14,d.s();case 16:if((p=d.n()).done){e.next=38;break}if(h=p.value,(v=f(u))===h){e.next=21;break}return e.abrupt("return","Expected chunk key ".concat(v," but found ").concat(h));case 21:return e.next=23,Le(h);case 23:if(b=e.sent,Array.isArray(b)){e.next=26;break}return e.abrupt("return","Data for ".concat(h," is not an array"));case 26:if(!(u===c.length)){e.next=32;break}if(!(b.length>o)){e.next=30;break}return e.abrupt("return","Expected last chunk size ".concat(o," or less for ").concat(h," but found ").concat(b.length));case 30:e.next=34;break;case 32:if(b.length===o){e.next=34;break}return e.abrupt("return","Expected chunk size ".concat(o," for ").concat(h," but found ").concat(b.length));case 34:l+=b.length,u++;case 36:e.next=16;break;case 38:e.next=43;break;case 40:e.prev=40,e.t0=e.catch(14),d.e(e.t0);case 43:return e.prev=43,d.f(),e.finish(43);case 46:if(l===r){e.next=48;break}return e.abrupt("return","Expected ".concat(t," count to be ").concat(r.toLocaleString("en-US")," but it was ").concat(l.toLocaleString("en-US")));case 48:case"end":return e.stop()}}),e,null,[[14,40,43,46]])})))).apply(this,arguments)}function ke(){return Se.apply(this,arguments)}function Se(){return(Se=Object(a.a)(M().mark((function e(){return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Ke()){e.next=2;break}return e.abrupt("return",{});case 2:return e.next=4,ze("collections");case 4:return e.t0=e.sent,e.next=7,ze("events");case 7:return e.t1=e.sent,e.abrupt("return",{collections:e.t0,events:e.t1});case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ee(e){return Ce.apply(this,arguments)}function Ce(){var e;return e=M().mark((function e(t){var n,r,o,a,c;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u(Me(t));case 2:n=e.sent.sort(),r=Object(i.a)(n),e.prev=4,r.s();case 6:if((o=r.n()).done){e.next=19;break}return a=o.value,e.next=10,u(Le(a));case 10:if(c=e.sent,!Array.isArray(c)){e.next=16;break}return e.next=14,c;case 14:e.next=17;break;case 16:Object(R.f)("invalid ".concat(t," chunk for key ").concat(a,": not an array"));case 17:e.next=6;break;case 19:e.next=24;break;case 21:e.prev=21,e.t0=e.catch(4),r.e(e.t0);case 24:return e.prev=24,r.f(),e.finish(24);case 27:case"end":return e.stop()}}),e,null,[[4,21,24,27]])})),Ce=function(){return new l(e.apply(this,arguments))},Ce.apply(this,arguments)}function Te(e,t){return Object(L.e)(We(e),(function(e){t(Ue(e)?e:void 0)}))}function Ie(){return Pe.apply(this,arguments)}function Pe(){return(Pe=Object(a.a)(M().mark((function e(){return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(L.a)("".concat(W,"collections"));case 2:return e.t0=e.sent,e.next=5,Object(L.a)("".concat(W,"events"));case 5:return e.t1=e.sent,e.abrupt("return",{collections:e.t0,events:e.t1});case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Le(e){return _e.apply(this,arguments)}function _e(){return(_e=Object(a.a)(M().mark((function e(t){var n;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(L.a)(t);case 2:if(n=e.sent,!(n&&"string"===typeof n)){e.next=10;break}return e.next=7,x(n);case 7:e.t0=e.sent,e.next=11;break;case 10:e.t0=n;case 11:return e.abrupt("return",e.t0);case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Re(){return Ne.apply(this,arguments)}function Ne(){return(Ne=Object(a.a)(M().mark((function e(){var t;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(P.b)();case 2:return t=e.sent,e.abrupt("return",!!t&&t>90);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Me(e){return Ae.apply(this,arguments)}function Ae(){return(Ae=Object(a.a)(M().mark((function e(t){var n;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Fe(t),e.next=3,Object(L.c)();case 3:return e.abrupt("return",e.sent.filter((function(e){return e.startsWith(n)})));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function De(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8;return"".concat(Fe(e)).concat(t.toString().padStart(n,"0"))}function Fe(e){return"".concat(H).concat(e,"-")}function ze(e){return Be.apply(this,arguments)}function Be(){return(Be=Object(a.a)(M().mark((function e(t){var n,r;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=We(t),e.next=3,Object(L.a)(n);case 3:if(!Ue(r=e.sent)){e.next=6;break}return e.abrupt("return",r);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function He(e,t){return Object(L.i)(We(e),t)}function Ue(e){if(!e||"object"!==typeof e)return!1;var t=e;return"string"===typeof t.timestamp&&!!t.timestamp&&"number"===typeof t.count&&"number"===typeof t.usage&&"number"===typeof t.duration&&"number"===typeof t.chunkSize&&(null==t.max||"number"===typeof t.max)}function We(e){return"".concat(U).concat(e)}function qe(e){var t,n=Object(i.a)(e||[]);try{for(n.s();!(t=n.n()).done;){var r=t.value;if("folders"in r){var o,a,c=Object(i.a)(null!==(o=r.folders)&&void 0!==o?o:[]);try{for(c.s();!(a=c.n()).done;){var u,l,s=a.value,f=Object(i.a)(null!==(u=s.links)&&void 0!==u?u:[]);try{for(f.s();!(l=f.n()).done;){g(l.value)}}catch(w){f.e(w)}finally{f.f()}}}catch(w){c.e(w)}finally{c.f()}}else if("windows"in r){var d,p,h=Object(i.a)(null!==(d=r.windows)&&void 0!==d?d:[]);try{for(h.s();!(p=h.n()).done;){var v,b,m=p.value,y=Object(i.a)(null!==(v=m.tabs)&&void 0!==v?v:[]);try{for(y.s();!(b=y.n()).done;){g(b.value)}}catch(w){y.e(w)}finally{y.f()}}}catch(w){h.e(w)}finally{h.f()}}}}catch(w){n.e(w)}finally{n.f()}return e;function g(e){e.favIconUrl&&"string"===typeof e.favIconUrl&&e.favIconUrl.length>1e3&&delete e.favIconUrl}}function Ge(e,t){return null==t?8:Math.ceil(t/e).toString().length+1}function Ve(e){var t=e.type,n=e.chunkSize,r=e.max,o=e.checkpoint,c=Ge(n,r),u=function(e){return De(t,e,c)},l=[],s=1;return{saveItems:function(e){return Object(a.a)(M().mark((function t(){var r,o,a;return M().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=Object(i.a)(e),t.prev=1,r.s();case 3:if((o=r.n()).done){t.next=11;break}if(a=o.value,l.push(a),!(l.length>=n)){t.next=9;break}return t.next=9,f();case 9:t.next=3;break;case 11:t.next=16;break;case 13:t.prev=13,t.t0=t.catch(1),r.e(t.t0);case 16:return t.prev=16,r.f(),t.finish(16);case 19:return t.abrupt("return",l.length);case 20:case"end":return t.stop()}}),t,null,[[1,13,16,19]])})))()},flush:f};function f(){return d.apply(this,arguments)}function d(){return(d=Object(a.a)(M().mark((function e(){var t;return M().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l.length){e.next=2;break}return e.abrupt("return");case 2:if(!o){e.next=5;break}return e.next=5,o("sanitizing and compressing chunk ".concat(s," (").concat(l.length," items, buffer size: ").concat(n,")..."));case 5:return e.next=7,g(qe(l));case 7:if(t=e.sent,!o){e.next=11;break}return e.next=11,o("saving chunk ".concat(s," (").concat(l.length," items, buffer size: ").concat(n,")..."));case 11:return e.next=13,Object(L.i)(u(s),t);case 13:s++,l.length=0;case 15:case"end":return e.stop()}}),e)})))).apply(this,arguments)}}function Ke(){var e=Object(C.a)();return e&&e<A?"Chromium version ".concat(e," is older than min required version (").concat(A,")"):Object(L.d)()?void 0:"Extension storage is not available"}function $e(e){return function(t){return Object(L.i)("".concat(W).concat(e),{message:t,timestamp:Object(I.n)()})}}function Ye(e){var t=e.debugOverride,n=e.debugLocalBackup,r=e.debugGeneral,o=e.logProgress,i=!!(t||n||r);return{debug:i,progress:i||!!o,checkpoints:!!n}}},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n(62);function o(e){var t=Object(r.c)(e);return e.shiftKey?t?"additive-range":"range":t?"toggle":"single"}function i(e,t,n){if(!(null===n||void 0===n?void 0:n.length))return null;var r=n.length-1,o=null==e||"first"===t?0:"next"===t?e+1:"prev"===t?e-1:"last"===t?r:null;return null==o?null:o<0?0:o>r?r:o}function a(e){var t=e.selectedItem,n=e.anchorItem,r=e.allItems,o=e.preserveOrder,i=r.indexOf(t);if(i<0)return[];if(null==n||n===t)return[t];var a=r.indexOf(n);if(a<0)return[t];var c=r.slice(Math.min(a,i),Math.max(a,i)+1);return!o&&i<a&&c.reverse(),c}},function(e,t,n){"use strict";n.d(t,"a",(function(){return G})),n.d(t,"h",(function(){return V})),n.d(t,"g",(function(){return K})),n.d(t,"i",(function(){return $})),n.d(t,"f",(function(){return Y})),n.d(t,"l",(function(){return Q})),n.d(t,"k",(function(){return X})),n.d(t,"n",(function(){return Z})),n.d(t,"m",(function(){return J})),n.d(t,"e",(function(){return ee})),n.d(t,"d",(function(){return te})),n.d(t,"b",(function(){return ne})),n.d(t,"j",(function(){return oe})),n.d(t,"o",(function(){return ie})),n.d(t,"c",(function(){return ue}));var r=n(149),o=n(22),i=n(67),a=n(14),c=n(26),u=n(2),l=n(3),s=n(1),f=n(59),d=n(58),p=n(115),h=n(64),v=n(65),b=n(116),m=n(50),y=n(56),g=n(63),w=n(99),x=n(29),O=n(5),j=n(109),k=n(81),S=n(79),E=n(12),C=n(8),T=n(37),I=n(13),P=n(18),L=n(9),_=n(10),R=n(39),N=n(52),M=n(49),A=n(47),D=n(6),F=n(36),z=["sourceId"],B=["sourceId"];function H(){H=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(T){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new S(o||[]);return r(a,"_invoke",{value:x(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var b=Object.getPrototypeOf,m=b&&b(b(E([])));m&&m!==t&&n.call(m,i)&&(v=m);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=O(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function O(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function E(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=E,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var U,W,q=250,G=function(e){Object(h.a)(n,e);var t=Object(v.a)(n);function n(){var e;Object(f.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),Error.captureStackTrace&&Error.captureStackTrace(Object(p.a)(e),n),e.name="PinExceededError",e}return Object(d.a)(n,[{key:"toString",value:function(){return this.message}}]),n}(Object(b.a)(Error)),V=function(e){e.sets.collections.navSetsLoading=!0},K=function(e){e.sets.collections.navSetsLoading&&(e.sets.collections.navSetsLoadingLong=!0)},$=function(e,t){var n,r=t.payload,o=r.fetchedCollections,i=r.exhausted,a=function(t){t.id&&(e.sets.collections.sets[t.id]=Object(s.a)(Object(s.a)(Object(s.a)({},e.sets.collections.sets[t.id]),t),{},{loaded:Object(C.m)()}),e.sets.collections.navSetIds.includes(t.id)||e.sets.collections.navSetIds.push(t.id))};null===(n=o.boundary)||void 0===n||n.forEach(a),o.main.forEach(a),e.sets.collections.navSetIds=Object(l.a)(e.sets.collections.navSetIds).sort(ce(e.sets)),e.sets.collections.initialized=!0,e.sets.collections.exhausted=i,ae(e.sets.collections)},Y=function(e,t){var n=t.payload;Object(P.d)("Failed to fetch nav collections: ".concat(n)),ae(e.sets.collections)},Q=function(e){e.sets.collections.navSetIds=[],e.sets.collections.exhausted=!0},X=function(e){ae(e.sets.collections)},Z=function(e,t){var n=t.payload;if(n.every(k.a)){var r=e.sets.collections;n.forEach((function(e){r.sets[e.id]=Object(O.y)(e)}));var o=n.map((function(e){return e.id}));r.navSetIds=[].concat(Object(l.a)(o),Object(l.a)(Object(E.k)(r.navSetIds,o))),r.navSetIds=Object(l.a)(r.navSetIds).sort(ce(e.sets))}else Object(P.d)("Some saving collections are missing an id",n)},J=function(e,t){var n=t.payload,r=n.error,o=n.savingCollections;if(Object(P.d)("Failed to save collections".concat(r?": ".concat(r):""),o),W)return Object(s.a)(Object(s.a)({},e),{},{sets:Object(s.a)(Object(s.a)({},e.sets),W)})},ee=function(e,t){var n=t.payload,r=e.sets.collections;r.navSetIds=Object(E.k)(r.navSetIds,n),e.sets.invalidSets=Object(E.j)(e.sets.invalidSets,(function(e){var t=e.id;return n.includes(t)})),e.sets.loadingNewSetIds=Object(E.k)(e.sets.loadingNewSetIds,n),n.forEach((function(e){delete r.sets[e]}))},te=function(e,t){var n=t.payload,r=n.error,o=n.deletingCollectionIds;if(Object(P.d)("Failed to delete collections".concat(r?": ".concat(r):""),o),W)return Object(s.a)(Object(s.a)({},e),{},{sets:Object(s.a)(Object(s.a)({},e.sets),W)})},ne=["itemsSelected","setsSelected","fetchNavCollectionsStarted","fetchNavCollectionsLongStarted","fetchNavCollectionsSucceeded","fetchNavCollectionsFailed","navCollectionsNavSetIdsCleared","navCollectionsLoadingStopped","saveCollectionsStarted","saveCollectionsFailed","deleteCollectionsStarted","deleteCollectionsFailed","itemsDeselected","selectPostDeleteNavSet"],re=0;function oe(e){var t=Object(S.a)();return{fetchNavCollections:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.immediateLoader,r=void 0!==n&&n,o=t.reset;return function(){var t=Object(u.a)(H().mark((function t(n,i){var a,c,u,l,s,f,d,p,h,v,b,y;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(R.b)(["debug","collectionFetchAll","collectionFetchCountInitial","collectionFetchCountLazy"]);case 2:return a=t.sent,c=a.debug,u=a.collectionFetchAll,l=a.collectionFetchCountInitial,s=a.collectionFetchCountLazy,f=u?999999999:o?l:s,d=++re,p=i(),h=p.content,v=h.sets.searchTerms,n(e.navCollectionsLoadingStopped()),n(e.fetchNavCollectionsStarted()),r?n(e.fetchNavCollectionsLongStarted()):U=window.setTimeout((function(){n(e.fetchNavCollectionsLongStarted())}),q),t.prev=14,o&&n(e.navCollectionsNavSetIdsCleared()),b=o?void 0:Object(D.l)(h.sets),t.next=19,Object(m.c)({partial:!0,from:b?{pinnedTouchedTuple:[b.pinned,b.touched],collectionId:b.id}:void 0,limit:f,searchTerms:v});case 19:if(y=t.sent,re===d){t.next=23;break}return c&&Object(L.f)("collections fetch dropped"),t.abrupt("return");case 23:n(e.fetchNavCollectionsSucceeded({fetchedCollections:y,exhausted:y.main.length!==f})),t.next=31;break;case 26:t.prev=26,t.t0=t.catch(14),n(e.fetchNavCollectionsFailed((null===t.t0||void 0===t.t0?void 0:t.t0.message)||t.t0)),"NotReadableError"===((null===t.t0||void 0===t.t0?void 0:t.t0.name)||t.t0)&&n(Object(w.a)("collections-NotReadableError"));case 31:case"end":return t.stop()}}),t,null,[[14,26]])})));return function(e,n){return t.apply(this,arguments)}}()},createCollectionFromSelectedSets:n,createCollectionFromLocalWindows:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.timestamp,n=void 0===t?Object(C.m)():t;return function(e,t){var r=t(),o=r.content,i=r.settings;if(o.sets.localWindows.length){var a="local-client",c=Object(D.h)({selectedSetCount:1,sourceType:a}),u=c.successText,l=c.failureText,s={id:Object(T.c)(),clientId:x.a.id,sourceType:a,created:n,pinned:0,updated:n,touched:n,folders:Object(D.d)({windows:o.sets.localWindows})};return i.autoNameCollections&&(s.title=_.a.shortDate(Object(C.m)())),e(d({savingCollections:[s],select:!0,successNotificationOpts:{text:u||F.a.collectionSaved()},failureNotificationOpts:{text:l||F.a.failedToSaveCollection(),severity:"error",actionText:F.a.tryAgain(),action:"replay"}}))}}},updateCollection:r,touchCollections:o,touchSelectedCollections:function(){return X(o)},pinCollections:f,pinSelectedCollections:function(){return X(f)},unpinSelectedCollections:function(){return function(e,t){var n,r=t().content,o=r.sets.collections,i=Object(E.e)(o.navSetIds,r.sets.selectedSetIds);return e((n=i,function(e,t){var r=t().content;return e(d({savingCollections:Object(E.q)(n).map((function(e){var t=Object(D.g)(r.sets,e);return t?Object(s.a)(Object(s.a)({},t),{},{pinned:0}):null})).filter(Boolean)}))}))}},deleteCollections:p,deleteSelectedCollections:function(e){return function(){var t=Object(u.a)(H().mark((function t(n,r){var o,i,a,c,u;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=r(),i=o.content,(a=i.sets.selectedSetIds.filter((function(e){return i.sets.collections.sets[e]}))).length){t.next=4;break}return t.abrupt("return");case 4:return c="Delete ".concat(_.a.collection({count:a.length}),"?"),u="".concat(_.a.collection({count:a.length,includeCount:!0})," will be permanently deleted"),t.abrupt("return",n(Object(g.d)({title:c,text:u,bypass:e,bypassSetting:"bypassConfirmCollectionDelete",okAction:function(){n(p(a))}})));case 7:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()},unifyCollectionFolders:h,unifySelectedCollectionFolders:function(){return pe((function(e){return h(e)}),null)},overwriteCollectionWithCurrent:v,overwriteSelectedCollectionWithCurrent:function(){return pe((function(e){return v(e)}),null)},sortCollectionLinks:b,sortSelectedCollectionLinks:function(e){return pe((function(t){return b(t,e)}),null)},moveCollectionItems:I,moveSelectedCollectionItems:function(e){return pe((function(t){return I(t,e)}),void 0)},addLinksToCollection:V,addLinksToSelectedCollection:function(e,t){return pe((function(n){return V(e,n,t)}),{links:[]})},deleteItemsFromCollection:K,deleteItemsFromSelectedCollection:function(e){return pe((function(t){return K({itemSelections:e,collection:t})}),void 0)},moveItemsFromCollection:$,moveItemsFromSelectedCollection:function(e){return pe((function(t){return $({itemSelections:e,collection:t})}),void 0)},patchCollectionFolder:Y,patchSelectedCollectionFolder:function(e,t){return pe((function(n){return Y({collection:n,folderId:e,props:t})}),void 0)},patchCollectionLink:Q,patchSelectedCollectionLink:function(e,t){return pe((function(n){return Q({collection:n,linkId:e,props:t})}),void 0)}};function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.combine,n=e.selectedItemsOnly,r=e.timestamp,o=void 0===r?Object(C.m)():r,i=e.propagateColor;return function(){var e=Object(u.a)(H().mark((function e(r,a){var c,u,l,f,h,v,b,m,y,g,w,O,k,S,E,I,P,L,R,z,B,U,W;return H().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(u=a(),l=N.i.selectedSetGroups(u),f=l.windows,h=l.folders,(f||h).length){e.next=4;break}return e.abrupt("return",[]);case 4:return v=u.content.sets.selectedSetIds,b=n?A.j.itemSelections(u):{unitIds:[],groupIds:[]},m=N.i.multipleSetsAreSelected(u),y=N.i.onlyLocalClientIsSelected(u),g=M.r.selectedClientHistoryItemId(u),w=Object(D.i)({multipleSetsAreSelected:m,onlyLocalClientIsSelected:y,isEventSelected:y&&!!g,isFolders:!!h,itemSelections:b}),O="multi"===w&&t,k=Object(D.h)({combining:O,selectedSetCount:v.length,sourceType:w}),S=k.successText,E=k.failureText,I=null!==(c=Object(D.e)(u.content.sets,(function(e){return!!e.title})))&&void 0!==c?c:Object(D.e)(u.content.sets),P=O?I:null,e.next=16,Object(x.b)();case 16:return L=e.sent,R=L.id,z=i&&I?Object(j.c)({id:I.id,color:I.color,defaultCollectionColor:u.settings.defaultCollectionColor}):void 0,B=P||{id:Object(T.c)(),clientId:R,color:z,sourceType:w,created:o,pinned:0},U=Object(s.a)(Object(s.a)({},B),{},{updated:o,touched:o,folders:h?Object(D.b)({folders:h,itemSelections:b}):Object(D.d)({windows:f,itemSelections:b})}),"collection"!==w&&"collection-links"!==w&&"remote-client"!==w&&"remote-client-tabs"!==w||(U.sourceId=v[0]),O||(W=N.i.selectedSetTitle(u))&&("multi"!==w&&"multi-links"!==w&&(U.sourceTitle=W),"local-client-history"!==w&&"local-client-history-tabs"!==w&&"collection"!==w&&"collection-links"!==w&&"multi"!==w&&"multi-links"!==w||(U.title=W)),O&&r(p(v.filter((function(e){return!P||e!==P.id})))),y&&!g&&!U.title&&u.settings.autoNameCollections&&(U.title=_.a.shortDate(Object(C.m)())),e.next=27,r(d({savingCollections:[U],select:!0,successNotificationOpts:{text:S||F.a.collectionSaved()},failureNotificationOpts:{text:E||F.a.failedToSaveCollection(),severity:"error",actionText:F.a.tryAgain(),action:"replay"}}));case 27:return e.abrupt("return",v);case 28:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()}function r(e){var t=e.collection,n=e.timestamp,r=void 0===n?Object(C.m)():n,o=e.id,i=e.props;return function(){var e=Object(u.a)(H().mark((function e(n,a){var c,u;return H().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=7;break}if(o&&i){e.next=3;break}return e.abrupt("return");case 3:if(c=Object(D.g)(a().content.sets,o)){e.next=6;break}throw new Error("attempt to patch a non-existent or invalid collection (id ".concat(o,")"));case 6:t=Object(s.a)(Object(s.a)({},c),i);case 7:if(Object(k.a)(t)&&!Object(D.u)(t)){e.next=9;break}return e.abrupt("return");case 9:return u=r>0?Object(s.a)(Object(s.a)({},t),{},{updated:r,touched:r}):t,e.abrupt("return",n(d({savingCollections:[u],failureNotificationOpts:{text:F.a.failedToUpdateCollection(),severity:"error",actionText:F.a.tryAgain(),action:"replay"}})));case 11:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()}function o(e){return function(t,n){var r=n().content,o=Object(C.m)(),i=0;return t(d({savingCollections:Object(E.m)(Object(E.q)(e)).map((function(e){var t=Object(D.g)(r.sets,e);return t&&Object(s.a)(Object(s.a)({},t),{},Object(c.a)({},t.pinned?"pinned":"touched",o+i++))})).filter(Boolean)}))}}function f(e){return function(t,n){var r=n().content,o=Object(C.m)(),i=0,a=0,c=Object(E.m)(Object(E.q)(e)).map((function(e){var t=Object(D.g)(r.sets,e);return t?(t.pinned||a++,Object(s.a)(Object(s.a)({},t),{},{pinned:o+i++})):null})).filter(Boolean);if(ie.pinnedCollectionCount({content:r})+a>O.c)throw new G("pinned collection max exceeded");return t(d({savingCollections:c}))}}function d(n){var r=n.savingCollections,o=n.select,i=n.successNotificationOpts,a=n.failureNotificationOpts;return function(){var n=Object(u.a)(H().mark((function n(c,u){var l,f;return H().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r.every(k.a)){n.next=3;break}return Object(P.d)("Some saving collections are missing an id",r),n.abrupt("return");case 3:return l=u(),f=l.content,o&&c(e.setsSelected({ids:r.map((function(e){return e.id}))})),c(e.saveCollectionsStarted(r)),c(Object(y.b)()),n.abrupt("return",t((function(){return W={selectedSetIds:f.sets.selectedSetIds,collections:f.sets.collections},Object(m.i)(r.map((function(e){return Object(O.y)(e,!0)})))})).then((function(){W=void 0,i&&c(Object(y.e)(i))})).catch((function(t){if(c(e.saveCollectionsFailed({error:(null===t||void 0===t?void 0:t.message)||t||null,savingCollections:r})),W=void 0,a){var n="replay"===a.action?Object(s.a)(Object(s.a)({},a),{},{action:function(){c(d({savingCollections:r,select:o,successNotificationOpts:i,failureNotificationOpts:a}))}}):a;c(Object(y.e)(n))}})));case 8:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}()}function p(n){return function(){var r=Object(u.a)(H().mark((function r(o,i){var a,c;return H().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n.length){r.next=2;break}return r.abrupt("return");case 2:return a=i(),c=a.content,o(e.selectPostDeleteNavSet()),o(e.deleteCollectionsStarted(n)),o(Object(y.b)()),r.abrupt("return",t((function(){return W={selectedSetIds:c.sets.selectedSetIds,collections:c.sets.collections},Object(m.b)(n)})).then((function(){W=void 0})).catch((function(t){var r;o(e.deleteCollectionsFailed({error:(null===t||void 0===t?void 0:t.message)||t||null,deletingCollectionIds:n})),W=void 0,o(Object(y.e)({text:n.length>1?F.a.failedToDeleteCollections(n.length):F.a.failedToDeleteCollection(null===(r=Object(D.g)(c.sets,n[0],!0))||void 0===r?void 0:r.title),severity:"error",actionText:F.a.tryAgain(),action:function(){o(p(n))}}))})));case 7:case"end":return r.stop()}}),r)})));return function(e,t){return r.apply(this,arguments)}}()}function h(t){return function(){var n=Object(u.a)(H().mark((function n(o,i){var a,c,u,l,f,d,p;return H().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t.folders){n.next=2;break}return n.abrupt("return",null);case 2:if(a=i(),c=A.j.itemSelections(a),u=!!c.unitIds.length,l=t.folders.length>1,f=c.groupIds.length,u||l&&1!==f){n.next=9;break}return n.abrupt("return",null);case 9:return d=Object(s.a)(Object(s.a)({},t),{},{folders:se(t.folders,c)}),p=o(r({collection:d})),o(e.itemsSelected(Object(s.a)(Object(s.a)({},c),{},{allGroups:d.folders}))),n.abrupt("return",p);case 13:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}()}function v(e){return function(){var t=Object(u.a)(H().mark((function t(n,o){var i,a,c;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.folders){t.next=2;break}return t.abrupt("return",null);case 2:return i=o(),a=i.content,c=Object(s.a)(Object(s.a)({},e),{},{sourceType:"local-client",folders:Object(D.d)({windows:a.sets.localWindows})}),t.abrupt("return",n(r({collection:c})));case 5:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()}function b(e,t){return function(){var n=Object(u.a)(H().mark((function n(o){var i;return H().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.folders){n.next=2;break}return n.abrupt("return",null);case 2:if(e.folders.some((function(e){return e.links&&e.links.length>1}))){n.next=5;break}return n.abrupt("return",null);case 5:return i=Object(s.a)(Object(s.a)({},e),{},{folders:e.folders.map((function(e){var n=Object(E.o)(e.links,(function(e){return!!e.pinned})),r=Object(a.a)(n,2),o=r[0],i=r[1];return Object(s.a)(Object(s.a)({},e),{},{links:[].concat(Object(l.a)(o),Object(l.a)(de(i,t.by)))})}))}),n.abrupt("return",o(r({collection:i})));case 7:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()}function I(t,n){return function(){var o=Object(u.a)(H().mark((function o(i,a){var c,u,l,f,d,p,h,v,b;return H().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(null===(c=t.folders)||void 0===c?void 0:c.length){o.next=2;break}return o.abrupt("return");case 2:if(u=a(),l=u.content.sets.searchTerms,f=u.content.sets.filterSearchTerms,d=u.settings.showAllItemMatches,!l&&!f||d){o.next=8;break}return o.abrupt("return");case 8:if(p=A.j.itemSelections(u),(h=fe(t.folders,p,n))!==t.folders){o.next=12;break}return o.abrupt("return");case 12:return v=Object(s.a)(Object(s.a)({},t),{},{folders:h}),b=i(r({collection:v})),i(e.itemsSelected(Object(s.a)(Object(s.a)({},p),{},{allGroups:v.folders}))),o.abrupt("return",b);case 16:case"end":return o.stop()}}),o)})));return function(e,t){return o.apply(this,arguments)}}()}function V(e,t,n){var o=n.target,c=void 0===o?{singleFolder:!1}:o,f=c.afterLink,d=c.prependToFolder,p=c.singleFolder,h=n.itemSelections;return function(){var n=Object(u.a)(H().mark((function n(o){var c,u,v,b,m,y,g,w,x,j,k;return H().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t.folders){n.next=2;break}return n.abrupt("return",{links:[]});case 2:if(c=e.folders?Object(D.b)({folders:e.folders,itemSelections:h,includeSourceId:!0}):Object(D.d)({windows:e.windows,itemSelections:h,includeSourceId:!0}),!p){n.next=9;break}b=se(c),u=[].concat(Object(l.a)(t.folders),Object(l.a)(b.map((function(e){e.sourceId;return Object(i.a)(e,z)})))),v={folders:b},n.next=29;break;case 9:if(!d){n.next=18;break}if(m=t.folders.find((function(e){return e.id===d}))){n.next=13;break}throw new Error("folder id ".concat(d," does not match any folder in collection ").concat(t.id));case 13:y=[],u=t.folders.map((function(e){if(e!==m)return e;var t=Object(E.o)(Object(O.r)(c),(function(e){return!!e.pinned})),n=Object(a.a)(t,2),r=n[0],o=n[1];y=[].concat(Object(l.a)(r),Object(l.a)(o));var i=Object(E.o)(e.links,(function(e){return!!e.pinned})),u=Object(a.a)(i,2),f=u[0],d=u[1];return Object(s.a)(Object(s.a)({},e),{},{links:[].concat(Object(l.a)(r),Object(l.a)(f),Object(l.a)(o),Object(l.a)(d))})})),v={links:y},n.next=29;break;case 18:if(!f){n.next=27;break}if(g=Object(O.p)(t.folders,(function(e){return e.id===f})),w=g.group,x=g.unit){n.next=22;break}throw new Error("link id ".concat(f," does not match any link in collection ").concat(t.id));case 22:j=[],u=t.folders.map((function(e){if(e!==w)return e;var t=Object(E.o)(Object(O.r)(c),(function(e){return!!e.pinned})),n=Object(a.a)(t,2),r=n[0],o=n[1];j=[].concat(Object(l.a)(r),Object(l.a)(o));var i=Object(E.o)(e.links,(function(e){return!!e.pinned})),u=Object(a.a)(i,2),f=u[0],d=u[1];if(x.pinned){var p=f.indexOf(x)+1,h=Object(E.p)(f,p),v=Object(a.a)(h,2),b=v[0],m=v[1];return Object(s.a)(Object(s.a)({},e),{},{links:[].concat(Object(l.a)(b),Object(l.a)(r),Object(l.a)(m),Object(l.a)(o),Object(l.a)(d))})}var y=d.indexOf(x)+1,g=Object(E.p)(d,y),k=Object(a.a)(g,2),S=k[0],C=k[1];return Object(s.a)(Object(s.a)({},e),{},{links:[].concat(Object(l.a)(f),Object(l.a)(r),Object(l.a)(S),Object(l.a)(o),Object(l.a)(C))})})),v={links:j},n.next=29;break;case 27:u=[].concat(Object(l.a)(t.folders),Object(l.a)(c.map((function(e){e.sourceId;return Object(i.a)(e,B)})))),v={folders:c};case 29:return k=Object(s.a)(Object(s.a)({},t),{},{folders:u}),n.next=32,o(r({collection:k}));case 32:return n.abrupt("return",v);case 33:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}()}function K(t){var n=t.itemSelections,o=t.collectionId,i=t.collection,a=t.timestamp;return function(){var t=Object(u.a)(H().mark((function t(c,u){var l,f,d,p;return H().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i||(i=Object(D.g)(u().content.sets,o)),i&&i.folders){t.next=3;break}return t.abrupt("return");case 3:if(!Object(D.u)(i)&&!Object(D.t)(u().content.sets,i.id)){t.next=5;break}return t.abrupt("return");case 5:return l=i.folders.filter((function(e){return!e.links.length})).map((function(e){return e.id})),f=i.folders.filter((function(e){var t=e.id;return!n.groupIds.includes(t)})).map((function(e){return Object(s.a)(Object(s.a)({},e),{},{links:e.links.filter((function(e){var t=e.id;return!n.unitIds.includes(t)}))})})),d=f.filter((function(e){return e.links.length||l.includes(e.id)})),p=Object(s.a)(Object(s.a)({},i),{},{folders:d}),c(e.itemsDeselected(n)),t.abrupt("return",c(r({collection:p,timestamp:a})));case 11:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()}function $(e){var t=e.itemSelections,r=e.collection;return function(){var e=Object(u.a)(H().mark((function e(o,i){var a;return H().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r&&r.folders){e.next=2;break}return e.abrupt("return");case 2:if(!Object(D.u)(r)&&!Object(D.t)(i().content.sets,r.id)){e.next=4;break}return e.abrupt("return");case 4:return a=Object(C.m)(),e.next=7,o(n({selectedItemsOnly:!0,timestamp:a+1}));case 7:o(K({itemSelections:t,collectionId:r.id,timestamp:a}));case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()}function Y(e){var t=e.collection,n=e.folderId,o=e.props;return function(){var e=Object(u.a)(H().mark((function e(i){var a;return H().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.folders){e.next=2;break}return e.abrupt("return");case 2:return a=Object(s.a)(Object(s.a)({},t),{},{folders:t.folders.map((function(e){return e.id===n?Object(s.a)(Object(s.a)({},e),o):e}))}),e.abrupt("return",i(r({collection:a})));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}function Q(e){var t=e.collection,n=e.linkId,o=e.props;return function(){var e=Object(u.a)(H().mark((function e(i){var a;return H().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.folders){e.next=2;break}return e.abrupt("return");case 2:return a=Object(s.a)(Object(s.a)({},t),{},{folders:t.folders.map((function(e){return Object(s.a)(Object(s.a)({},e),{},{links:e.links.map((function(e){return e.id===n?Object(s.a)(Object(s.a)({},e),o):e}))})}))}),e.abrupt("return",i(r({collection:a})));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}function X(e){return function(t,n){var r=n().content,o=r.sets.collections,i=Object(E.e)(o.navSetIds,r.sets.selectedSetIds);return t(e(i))}}}var ie={collectionsInitialized:function(e){return e.content.sets.collections.initialized},navCollectionsAreLoading:function(e){return e.content.sets.collections.navSetsLoading},navCollectionsAreLoadingLong:function(e){return e.content.sets.collections.navSetsLoadingLong},navCollectionsIsExhausted:function(e){return!!e.content.sets.collections.exhausted},navCollections:function(e){var t=e.content;return t.sets.collections.navSetIds.map((function(e){return t.sets.collections.sets[e]})).filter(Boolean)},noNavCollectionsExist:function(e){var t=e.content;return!ie.navCollections({content:t}).length},pinnedCollectionCount:function(e){var t,n=e.content,r=0,i=Object(o.a)(n.sets.collections.navSetIds);try{for(i.s();!(t=i.n()).done;){var a=t.value,c=Object(D.g)(n.sets,a);if(c){if(!c.pinned)break;r++}}}catch(u){i.e(u)}finally{i.f()}return r},allSelectedCollectionsAreAtTop:function(e){var t=e.content,n=ie.pinnedCollectionCount({content:t}),r=Object(E.p)(t.sets.collections.navSetIds,n),o=Object(a.a)(r,2),i=o[0],c=o[1],u=Object(E.e)(i,t.sets.selectedSetIds),l=Object(E.e)(c,t.sets.selectedSetIds);return le(u,i)&&le(l,c)},allSelectedCollectionsArePinned:function(e){var t=e.content;return t.sets.selectedSetIds.every((function(e){var n=Object(D.g)(t.sets,e,!0);return!n||n.pinned}))}};function ae(e){e.navSetsLoading=!1,e.navSetsLoadingLong=!1,window.clearTimeout(U)}function ce(e){return function(t,n){var r=Object(D.g)(e,t,!0),o=Object(D.g)(e,n,!0);return r||o?r?o?ue(r,o):-1:1:0}}function ue(e,t){return Object(D.j)(e,t,"pinned")||Object(D.j)(e,t,"touched")||Object(D.j)(e,t,"updated")||Object(D.j)(e,t,"created")}function le(e,t){return t.slice(0,e.length).every((function(t){return e.includes(t)}))}function se(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{groupIds:[],unitIds:[]};if(!e.length)return[];var n=t.groupIds,o=t.unitIds,i=Object(O.C)(e,t),a=n.map((function(e){return i.find((function(t){return t.id===e}))})).filter((function(e){return!!e})),c=Object(O.r)(i),u=o.map((function(e){return c.find((function(t){return t.id===e}))})).filter((function(e){return!!e})),f=a.length;if(u.length&&!f){var d=Object(O.A)({id:Object(T.c)(),links:u,incognito:i.some((function(e){return e.incognito}))});return[].concat(Object(l.a)(e.map((function(e){return Object(s.a)(Object(s.a)({},e),{},{links:(e.links||[]).filter((function(e){return!u.includes(e)}))})})).filter((function(e){return e.links.length}))),[d])}var p=f?a:e,h=Object(r.a)(p),v=h[0],b=h.slice(1),m=Object(O.r)(b);return e.filter((function(e){return!b.includes(e)})).map((function(e){return e===v?Object(O.A)(Object(s.a)(Object(s.a)({},e),{},{links:[].concat(Object(l.a)(v.links),Object(l.a)(m),Object(l.a)(u))})):Object(s.a)(Object(s.a)({},e),{},{links:(e.links||[]).filter((function(e){return!u.includes(e)}))})})).filter((function(e){return e.links.length}))}function fe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{groupIds:[],unitIds:[]},n=arguments.length>2?arguments[2]:void 0;if(!e.length)return e;var r=t.groupIds,o=t.unitIds;return 1!==o.length||r.length?1!==r.length||o.length?e:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=t[0],o=e.findIndex((function(e){return e.id===r}));if(o<0||!e[o])return e;return("up"===n.direction?E.h:E.i)(e,o)}(e,r,n):function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=t[0],o=Object(O.p)(e,(function(e){return e.id===r})),i=o.group,c=o.groupIdx,u=o.unit,f=o.unitIdx;if(!i||null==c||c<0||!u||null==f||f<0)return e;if(u.pinned)return e;if("up"===n.direction){var d=f-1;if(d<0||i.links[d].pinned){if(g(i,t)){if(0===c)return e;var p=e[c-1];return p?e.map((function(e){return e===p?Object(O.A)(Object(s.a)(Object(s.a)({},e),{},{links:[].concat(Object(l.a)(e.links),[u])})):e===i?w(e,u):e})).filter((function(e){return e.links.length})):e}var h=Object(O.A)({id:Object(T.c)(),links:[u],incognito:!!i.incognito}),v=Object(l.a)(e);return v.splice(c,0,h),v.map((function(e){return e===i?w(e,u):e})).filter((function(e){return e.links.length}))}return e.map((function(e){return e===i?Object(O.A)(Object(s.a)(Object(s.a)({},e),{},{links:Object(E.h)(e.links,f)})):e}))}if(f+1>=i.links.length){if(g(i,t)){if(c>=e.length-1)return e;var b=e[c+1];return b?e.map((function(e){return e===b?Object(O.A)(Object(s.a)(Object(s.a)({},e),{},{links:x(e.links,u)})):e===i?w(e,u):e})).filter((function(e){return e.links.length})):e}var m=Object(O.A)({id:Object(T.c)(),links:[u],incognito:!!i.incognito}),y=Object(l.a)(e);return y.splice(c+1,0,m),y.map((function(e){return e===i?w(e,u):e})).filter((function(e){return e.links.length}))}return e.map((function(e){return e===i?Object(O.A)(Object(s.a)(Object(s.a)({},e),{},{links:Object(E.i)(e.links,f)})):e}));function g(e,t){return e.links.every((function(e){var n=e.id;return t.includes(n)}))}function w(e,t){return Object(s.a)(Object(s.a)({},e),{},{links:(e.links||[]).filter((function(e){return e!==t}))})}function x(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=Object(E.o)(e,(function(e){return!!e.pinned})),r=Object(a.a)(n,2),o=r[0],i=r[1];return[].concat(Object(l.a)(o),[t],Object(l.a)(i))}}(e,o,n)}function de(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return e.length<2?e:Object(l.a)(e).sort((function(e,n){return Object(I.e)(e[t],n[t])}))}function pe(e,t){return function(){var n=Object(u.a)(H().mark((function n(r,o){var i,a,c;return H().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=o(),a=i.content,c=Object(D.o)(a.sets)){n.next=4;break}return n.abrupt("return",t);case 4:return n.abrupt("return",r(e(c)));case 5:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r={};function o(){return r}},,function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=["Win32","Win64","Windows","WinCE"],o=["macOS","Macintosh","MacIntel","MacPPC","Mac68K"],i=["iPhone","iPad","iPod"];var a=function(){var e,t=(null===(e=globalThis.navigator.userAgentData)||void 0===e?void 0:e.platform)||globalThis.navigator.platform;return r.includes(t)?"windows":o.includes(t)?"mac":i.includes(t)?"ios":/Android/.test(globalThis.navigator.userAgent)?"android":/Linux/.test(t)?"linux":void 0}()},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"b",(function(){return s}));var r=n(3),o=["B","kB","MB","GB","TB"],i=1024,a=1024*i;function c(e){if(!e)return"0 B";var t=Math.floor(Math.log(e)/Math.log(i));return t>=o.length?"Over 1 PB":"".concat(1*+(e/Math.pow(i,t)).toFixed(2)," ").concat(o[t])}var u=16384;function l(e){for(var t=[],n=0;n<e.length;n+=u){var o=e.subarray(n,n+u);t.push(String.fromCharCode.apply(String,Object(r.a)(o)))}var i=t.join("");return btoa(i)}function s(e){for(var t=atob(e),n=t.length,r=new Uint8Array(n),o=0;o<n;o++)r[o]=t.charCodeAt(o);return r}},function(e,t,n){"use strict";n.d(t,"b",(function(){return d})),n.d(t,"e",(function(){return p})),n.d(t,"f",(function(){return h})),n.d(t,"g",(function(){return v})),n.d(t,"c",(function(){return b})),n.d(t,"d",(function(){return m})),n.d(t,"a",(function(){return y}));var r=n(2),o=n(8),i=n(79),a=n(27),c=n(18);function u(){u=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(I){l=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),c=new E(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(I){return{type:"throw",arg:I}}}e.wrap=s;var d={};function p(){}function h(){}function v(){}var b={};l(b,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(C([])));y&&y!==t&&n.call(y,i)&&(b=y);var g=v.prototype=p.prototype=Object.create(b);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,i,a,c){var u=f(e[r],e,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return h.prototype=v,r(g,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:h,configurable:!0}),h.displayName=l(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},w(x.prototype),l(x.prototype,a,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new x(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=C,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}var l=100,s="logs",f=Object(i.a)();function d(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return w(Object(c.b)(t),"info")}function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return w(Object(c.b)(t),"notice")}function h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return w(Object(c.b)(t),"success")}function v(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return w(Object(c.b)(t),"warn")}function b(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return w(Object(c.b)(t),"error")}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.prefix,r=void 0===n?"":n,o=t.severity,i=void 0===o?"error":o;return w(Object(c.a)(e,r),i)}function y(){return g.apply(this,arguments)}function g(){return(g=Object(r.a)(u().mark((function e(){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(a.a)(s);case 2:if(e.t0=e.sent,e.t0){e.next=5;break}e.t0=[];case 5:return e.abrupt("return",e.t0);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function w(e,t){return f((function(){return function(e,t){return x.apply(this,arguments)}(e,t)}))}function x(){return(x=Object(r.a)(u().mark((function e(t,n){var r;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,y();case 3:return(r=e.sent).unshift({timestamp:Object(o.n)(),severity:n,message:t}),e.next=7,Object(a.i)(s,r.slice(0,l));case 7:e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),console.error("Failed to update local logs",e.t0);case 12:case"end":return e.stop()}}),e,null,[[0,9]])})))).apply(this,arguments)}},function(e,t,n){"use strict";function r(){var e,t=0;return function(n){return t||(e=Promise.resolve()),t++,e=e.then(n).finally((function(){t--}))}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(54);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return f}));var c="function"===typeof Symbol&&Symbol.observable||"@@observable",u=function(){return Math.random().toString(36).substring(7).split("").join(".")},l={INIT:"@@redux/INIT"+u(),REPLACE:"@@redux/REPLACE"+u(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+u()}};function s(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function f(e,t,n){var r;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(a(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(a(1));return n(f)(e,t)}if("function"!==typeof e)throw new Error(a(2));var o=e,i=t,u=[],d=u,p=!1;function h(){d===u&&(d=u.slice())}function v(){if(p)throw new Error(a(3));return i}function b(e){if("function"!==typeof e)throw new Error(a(4));if(p)throw new Error(a(5));var t=!0;return h(),d.push(e),function(){if(t){if(p)throw new Error(a(6));t=!1,h();var n=d.indexOf(e);d.splice(n,1),u=null}}}function m(e){if(!s(e))throw new Error(a(7));if("undefined"===typeof e.type)throw new Error(a(8));if(p)throw new Error(a(9));try{p=!0,i=o(i,e)}finally{p=!1}for(var t=u=d,n=0;n<t.length;n++){(0,t[n])()}return e}return m({type:l.INIT}),(r={dispatch:m,subscribe:b,getState:v,replaceReducer:function(e){if("function"!==typeof e)throw new Error(a(10));o=e,m({type:l.REPLACE})}})[c]=function(){var e,t=b;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new Error(a(11));function n(){e.next&&e.next(v())}return n(),{unsubscribe:t(n)}}})[c]=function(){return this},e},r}function d(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];0,"function"===typeof e[o]&&(n[o]=e[o])}var i,c=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if("undefined"===typeof n(void 0,{type:l.INIT}))throw new Error(a(12));if("undefined"===typeof n(void 0,{type:l.PROBE_UNKNOWN_ACTION()}))throw new Error(a(13))}))}(n)}catch(u){i=u}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},u=0;u<c.length;u++){var l=c[u],s=n[l],f=e[l],d=s(f,t);if("undefined"===typeof d){t&&t.type;throw new Error(a(14))}o[l]=d,r=r||d!==f}return(r=r||c.length!==Object.keys(e).length)?o:e}}function p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(a(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},c=t.map((function(e){return e(o)}));return r=p.apply(void 0,c)(n.dispatch),i(i({},n),{},{dispatch:r})}}}},function(e,t,n){"use strict";function r(e){return"id"in e&&("string"===typeof e.id&&!!e.id||"number"===typeof e.id)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;function i(e){var t=r.useRef(e);return o((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),o=function(e){Object(r.useEffect)((function(){var t=function(){e()};return window.addEventListener("popstate",t),function(){window.removeEventListener("popstate",t)}}),[e])}},,function(e){e.exports=JSON.parse('{"ext":{"mainFilenames":["session-buddy.html","main.html","mainUI.html","m.html"],"optionsFilename":"options.html","appStoreProfiles":{"googleChromeWebStore":{"url":"https://chrome.google.com/webstore/detail/session-buddy/edacconmaakjimmfgnblocblbcdcpbko","reviews":"https://chrome.google.com/webstore/detail/session-buddy/edacconmaakjimmfgnblocblbcdcpbko/reviews","extensionId":"edacconmaakjimmfgnblocblbcdcpbko"},"microsoftAddOnStore":{"url":"","extensionId":"microsoft-nxs-extension-id-placeholder"},"mozillaAddOnStore":{"url":"","extensionId":"mozilla-nxs-extension-id-placeholder"},"operaAddOnStore":{"url":"","extensionId":"opera-nxs-extension-id-placeholder"},"appleMacAppStore":{"url":"","extensionId":"apple-nxs-extension-id-placeholder"}}},"web":{"appUrls":["https://sessionbuddy.com/app","https://noox.is/app","https://app.sessionbuddy.com","https://sessionbuddy.app","https://www.sessionbuddy.com/app","https://www.noox.is/app","https://app.sessionbuddy.com","https://www.sessionbuddy.app"]}}')},,function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r,o=n(22),i=n(14),a=n(85),c=n(111),u=n(173),l=n(140),s=n(41),f=n(12),d=n(24),p=n(61);function h(){return r||(r=function(){var e=function(){var e=Object(l.b)();if(e){var t=Object.values(c).find((function(t){return t.browsers.includes(e)}));if(t)return t}var n=Object(p.a)();if(n){var r,o,s=null===(r=Object.entries(a.ext.appStoreProfiles).find((function(e){var t=Object(i.a)(e,2);t[0];return t[1].extensionId===n})))||void 0===r?void 0:r[0],f=s&&(null===(o=u[s])||void 0===o?void 0:o.authoritativeBrowserConfig);if(f)return c[f]}return c.chrome}(),t=function(e){var t=Object(f.d)(Object.values(c),(function(t){return t===e})).map((function(e){return{urls:n(e.urls),schemes:n(e.schemes)}}));return Object(d.g)(t);function n(e){return Object(d.f)(e,(function(e){return e.map((function(e){return e.toLowerCase()}))}))}}(e),n=t.urls,r=t.schemes,o=v(e),s=v(e,a.ext.mainFilenames),h=v(e,[a.ext.optionsFilename]),y=a.ext.mainFilenames[0],O=Object.values(a.ext.appStoreProfiles).map((function(e){return e.extensionId})),j=a.web.appUrls.map((function(e){return e.toLowerCase()}));return{ext:{canonicalMainFilename:y,canonicalMainUrl:b(e,y),allNxsExtensionIds:O,isNxsExtensionId:function(e){return O.includes(e)},isNxsUrl:function(e){return w(e,o)},isMainUrl:function(e){return w(e,s)},isOptionsUrl:function(e){return w(e,h)}},web:{isAppUrl:function(e){return w(e,j)}},browser:{canonicalBookmarksUrl:m(e,"bookmarks"),canonicalDownloadsUrl:m(e,"downloads"),canonicalExtensionsUrl:m(e,"extensions"),canonicalHistoryUrl:m(e,"history"),canonicalNewtabUrl:m(e,"newtab"),canonicalSettingsUrl:m(e,"settings"),isFeatureUrl:function(e,t){return t?w(e,n[t]):x(e,r.feature)},isExtensionUrl:function(e,t){if(t){var n=t.toLowerCase();return w(e,r.extension.map((function(e){return g(e,n)})))}return x(e,r.extension)}}}}())}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[""],n=[],r=y(e);d(e.schemes.extension,[r]);for(var i=0,u=Object.values(c);i<u.length;i++){var l=u[i],s=l.appStores.map((function(e){return a.ext.appStoreProfiles[e].extensionId}));d(l.schemes.extension,s)}return Object(f.q)(n);function d(e,r){var i,a=Object(o.a)(e);try{for(a.s();!(i=a.n()).done;){var c,u=i.value,l=Object(o.a)(r);try{for(l.s();!(c=l.n()).done;){var s,f=c.value,d=Object(o.a)(t);try{for(d.s();!(s=d.n()).done;){var p=s.value;n.push(g(u,f,p).toLowerCase())}}catch(h){d.e(h)}finally{d.f()}}}catch(h){l.e(h)}finally{l.f()}}}catch(h){a.e(h)}finally{a.f()}}}function b(e,t){return g(e.schemes.extension[0],y(e),t)}function m(e,t){return e.urls[t][0]}function y(e){return Object(p.a)()||a.ext.appStoreProfiles[e.appStores[0]].extensionId}function g(e,t,n){return"".concat(e,"://").concat(t).concat(n?"/".concat(n):"")}function w(e,t){if(!e)return!1;var n=e.toLowerCase();return t.some((function(e){return Object(s.l)(n,e)}))}function x(e,t){if(!e)return!1;var n=Object(s.b)(e).toLowerCase();return!!n&&t.some((function(e){return e===n}))}},function(e,t,n){"use strict";function r(e){return e}function o(e,t){return e===t}function i(e,t){return e.id===t.id}n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";var r=n(4),o=n(0),i=n.n(o),a=n(15),c=n(19),u=n(23),l=n(31),s=o.forwardRef((function(e,t){var n=e.children,i=e.classes,u=e.className,s=e.color,f=void 0===s?"inherit":s,d=e.component,p=void 0===d?"svg":d,h=e.fontSize,v=void 0===h?"medium":h,b=e.htmlColor,m=e.titleAccess,y=e.viewBox,g=void 0===y?"0 0 24 24":y,w=Object(a.a)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return o.createElement(p,Object(r.a)({className:Object(c.a)(i.root,u,"inherit"!==f&&i["color".concat(Object(l.a)(f))],"default"!==v&&"medium"!==v&&i["fontSize".concat(Object(l.a)(v))]),focusable:"false",viewBox:g,color:b,"aria-hidden":!m||void 0,role:m?"img":void 0,ref:t},w),n,m?o.createElement("title",null,m):null)}));s.muiName="SvgIcon";var f=Object(u.a)((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(s);function d(e,t){var n=function(t,n){return i.a.createElement(f,Object(r.a)({ref:n},t),e)};return n.muiName=f.muiName,i.a.memo(i.a.forwardRef(n))}n.d(t,"a",(function(){return d}))},function(e,t){var n,r,o=Function.prototype,i=Object.prototype,a=o.toString,c=i.hasOwnProperty,u=a.call(Object),l=i.toString,s=(n=Object.getPrototypeOf,r=Object,function(e){return n(r(e))});e.exports=function(e){if(!function(e){return!!e&&"object"==typeof e}(e)||"[object Object]"!=l.call(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}(e))return!1;var t=s(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&a.call(n)==u}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(120);function o(e,t){if(e){if("string"===typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t,n){"use strict";function r(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),o=n(118);function i(){return r.useContext(o.a)}},function(e,t,n){"use strict";function r(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&"undefined"===typeof t[n]&&(e[n]=r[n]),e}),{})}n.d(t,"a",(function(){return r}))},,function(e,t,n){(function(t){var n="Expected a function",r=NaN,o="[object Symbol]",i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt,s="object"==typeof t&&t&&t.Object===Object&&t,f="object"==typeof self&&self&&self.Object===Object&&self,d=s||f||Function("return this")(),p=Object.prototype.toString,h=Math.max,v=Math.min,b=function(){return d.Date.now()};function m(e,t,r){var o,i,a,c,u,l,s=0,f=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError(n);function m(t){var n=o,r=i;return o=i=void 0,s=t,c=e.apply(r,n)}function w(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-s>=a}function x(){var e=b();if(w(e))return O(e);u=setTimeout(x,function(e){var n=t-(e-l);return d?v(n,a-(e-s)):n}(e))}function O(e){return u=void 0,p&&o?m(e):(o=i=void 0,c)}function j(){var e=b(),n=w(e);if(o=arguments,i=this,l=e,n){if(void 0===u)return function(e){return s=e,u=setTimeout(x,t),f?m(e):c}(l);if(d)return u=setTimeout(x,t),m(l)}return void 0===u&&(u=setTimeout(x,t)),c}return t=g(t)||0,y(r)&&(f=!!r.leading,a=(d="maxWait"in r)?h(g(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p),j.cancel=function(){void 0!==u&&clearTimeout(u),s=0,o=l=i=u=void 0},j.flush=function(){return void 0===u?c:O(b())},j}function y(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&p.call(e)==o}(e))return r;if(y(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=y(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=c.test(e);return n||u.test(e)?l(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,r){var o=!0,i=!0;if("function"!=typeof e)throw new TypeError(n);return y(r)&&(o="leading"in r?!!r.leading:o,i="trailing"in r?!!r.trailing:i),m(e,t,{leading:o,maxWait:t,trailing:i})}}).call(this,n(136))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return d})),n.d(t,"c",(function(){return h}));var r=n(2),o=n(9),i=n(39);function a(){a=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(I){l=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),c=new E(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(I){return{type:"throw",arg:I}}}e.wrap=s;var d={};function p(){}function h(){}function v(){}var b={};l(b,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(C([])));y&&y!==t&&n.call(y,i)&&(b=y);var g=v.prototype=p.prototype=Object.create(b);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,i,a,c){var u=f(e[r],e,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return h.prototype=v,r(g,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:h,configurable:!0}),h.displayName=l(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l(e,u,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},w(x.prototype),l(x.prototype,c,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new x(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(g),l(g,u,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=C,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function c(){return u.apply(this,arguments)}function u(){return(u=Object(r.a)(a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l();case 2:if(!(t=e.sent)){e.next=8;break}if(!("usageDetails"in t&&t.usageDetails&&"object"===typeof t.usageDetails&&"indexedDB"in t.usageDetails&&"number"===typeof t.usageDetails.indexedDB)){e.next=6;break}return e.abrupt("return",t.usageDetails.indexedDB);case 6:if(!("usage"in t)||"number"!==typeof t.usage){e.next=8;break}return e.abrupt("return",t.usage);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function l(){return navigator.storage.estimate()}function s(){return f.apply(this,arguments)}function f(){return(f=Object(r.a)(a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=null,e.prev=1,e.next=4,l();case 4:t=e.sent,e.next=9;break;case 7:e.prev=7,e.t0=e.catch(1);case 9:if(t&&t.quota&&void 0!==t.usage){e.next=11;break}return e.abrupt("return",void 0);case 11:return e.abrupt("return",Math.round(t.usage/t.quota*1e4)/100);case 12:case"end":return e.stop()}}),e,null,[[1,7]])})))).apply(this,arguments)}function d(){return p.apply(this,arguments)}function p(){return(p=Object(r.a)(a().mark((function e(){var t,n,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h();case 2:return t=e.sent,e.next=5,Object(i.a)("debug");case 5:if(n=e.sent,null!=t){e.next=9;break}return n&&Object(o.f)("persisted storage API unavailable or navigator.storage.persisted() call threw"),e.abrupt("return");case 9:if(!t){e.next=12;break}return n&&Object(o.d)("persisted storage permission exists"),e.abrupt("return");case 12:if(navigator.storage.persist){e.next=15;break}return n&&Object(o.f)("navigator.storage.persist() unavailable"),e.abrupt("return");case 15:return e.prev=15,e.next=18,navigator.storage.persist();case 18:r=e.sent,n&&(r?o.e:o.f)("persisted storage ".concat(r?"granted":"denied")),e.next=25;break;case 22:e.prev=22,e.t0=e.catch(15),n&&console.error("call to navigator.storage.persist() failed:",e.t0);case 25:case"end":return e.stop()}}),e,null,[[15,22]])})))).apply(this,arguments)}function h(){return v.apply(this,arguments)}function v(){return(v=Object(r.a)(a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,null===(t=navigator.storage)||void 0===t?void 0:t.persisted();case 3:return e.abrupt("return",e.sent);case 6:e.prev=6,e.t0=e.catch(0);case 8:case"end":return e.stop()}}),e,null,[[0,6]])})))).apply(this,arguments)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(205),o=(n(0),n(143));function i(){return Object(r.a)()||o.a}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return l}));var r=n(57),o=Object(r.b)({name:"critical-error",initialState:{show:!1,issues:[]},reducers:{criticalErrorRaised:function(e,t){var n=t.payload;e.show=!0,e.issues.includes(n)||e.issues.push(n)},criticalErrorResolved:function(e){e.show=!1,e.issues=[]}}}),i=o.actions,a=i.criticalErrorRaised,c=i.criticalErrorResolved,u=o.reducer,l={criticalErrorShow:function(e){return e.criticalError.show},criticalErrorIssues:function(e){return e.criticalError.issues}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return w}));var r=n(2),o=n(14),i=n(0),a=n(29),c=n(50),u=n(51),l=n(69),s=n(61),f=n(27),d=n(9),p=n(8),h=n(46);function v(){v=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(I){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new E(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(I){return{type:"throw",arg:I}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var b={};u(b,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(C([])));y&&y!==t&&n.call(y,i)&&(b=y);var g=h.prototype=d.prototype=Object.create(b);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return p.prototype=h,r(g,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},w(x.prototype),u(x.prototype,a,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new x(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(g),u(g,c,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=C,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var b,m="rc-cache",y=p.b,g=function(){var e=Object(i.useState)(null),t=Object(o.a)(e,2),n=t[0],r=t[1];return Object(i.useEffect)((function(){w().then((function(e){r(e)}))}),[]),n};function w(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).clientId;return b||(b=function(e){return x.apply(this,arguments)}({clientId:e}).then(function(){var e=Object(r.a)(v().mark((function e(t){var n,r,o,i,c;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n={disableAutoBackup:!1,maxBackupSize:5e6,maxRDCohort:0},r=null===t||void 0===t?void 0:t.v4){e.next=4;break}return e.abrupt("return",n);case 4:return e.next=6,Object(a.b)();case 6:return o=e.sent,i=o.settings,e.next=10,i.get("disableAutoBackupRemotely");case 10:if(c=e.sent,!0!==r.disableAutoBackup){e.next=26;break}if(n.disableAutoBackup=!0,c){e.next=16;break}return e.next=16,i.set("disableAutoBackupRemotely",!0);case 16:return Object(h.b)(r.maxBackupSize)&&r.maxBackupSize>0&&(n.maxBackupSize=r.maxBackupSize),e.prev=17,e.next=20,Object(l.c)(void 0,{minSize:n.maxBackupSize});case 20:e.next=24;break;case 22:e.prev=22,e.t0=e.catch(17);case 24:e.next=31;break;case 26:if(!1!==r.disableAutoBackup){e.next=31;break}if(n.disableAutoBackup=!1,!c){e.next=31;break}return e.next=31,i.set("disableAutoBackupRemotely",!1);case 31:return Object(h.b)(r.maxRDCohort)&&r.maxRDCohort>0&&(n.maxRDCohort=r.maxRDCohort),e.abrupt("return",n);case 33:case"end":return e.stop()}}),e,null,[[17,22]])})));return function(t){return e.apply(this,arguments)}}()).finally((function(){b=void 0})),b)}function x(){return(x=Object(r.a)(v().mark((function e(t){var n,r,o,i;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.clientId){e.next=7;break}return e.next=4,Object(f.a)(m);case 4:if(!((null===(o=e.sent)||void 0===o||null===(r=o.config)||void 0===r?void 0:r.v4)&&o.timestamp&&Object(p.m)()-o.timestamp<y)){e.next=7;break}return e.abrupt("return",o.config);case 7:return e.next=9,O({clientId:n});case 9:if(!(null===(i=e.sent)||void 0===i?void 0:i.v4)){e.next=13;break}return e.next=13,Object(f.i)(m,{timestamp:Object(p.m)(),config:i});case 13:return e.abrupt("return",i);case 14:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function O(e){return j.apply(this,arguments)}function j(){return(j=Object(r.a)(v().mark((function e(t){var n,r,o,i,l;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.clientId,r={method:"GET",cache:"no-store"},e.prev=2,o=new URL(n?"https://remote-config.sessionbuddy.com/":"https://sessionbuddy.pages.dev/remote-config/config.json"),!n){e.next=21;break}return k(o,"e",Object(s.a)()),k(o,"v",Object(s.c)()),k(o,"client",n),(null===a.a||void 0===a.a?void 0:a.a.created)&&Object(h.b)(a.a.created)&&(i=Math.floor(a.a.created/1e3))&&k(o,"i",i),e.t0=k,e.t1=o,e.next=13,Object(c.h)();case 13:return e.t2=e.sent,(0,e.t0)(e.t1,"cc",e.t2),e.t3=k,e.t4=o,e.next=19,Object(u.j)();case 19:e.t5=e.sent,(0,e.t3)(e.t4,"ec",e.t5);case 21:return e.next=23,fetch(o,r);case 23:if((l=e.sent).ok){e.next=26;break}return e.abrupt("return");case 26:return e.next=28,l.json();case 28:return e.abrupt("return",e.sent);case 31:e.prev=31,e.t6=e.catch(2),Object(d.c)(e.t6,{prefix:"Error fetching remote config"});case 34:case"end":return e.stop()}}),e,null,[[2,31]])})))).apply(this,arguments)}function k(e,t,n){null!=n&&e.searchParams.append(t,n.toString())}},function(e,t,n){"use strict";var r=n(198);var o=n(165),i=n(199);function a(e,t){return Object(r.a)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);u=!0);}catch(s){l=!0,o=s}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,t)||Object(o.a)(e,t)||Object(i.a)()}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r={"snapshot-scheduled":"snapshot","snapshot-manual":"manual snapshot","tab-navigated":"tab navigated","tab-moved":"tab moved","tabs-moved":"tabs moved","tab-opened":"tab opened","tabs-opened":"tabs opened","window-opened":"window opened","windows-opened":"windows opened","tabs-changed":"tabs changed","browser-closed":"browser closed","windows-closed":"windows closed","window-closed":"window closed","tabs-closed":"tabs closed","tab-closed":"tab closed"},o={clientHistoryItemType:function(e){return r[e]}}},function(e,t,n){"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return hr}));var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)};function i(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}var a="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,c=Object.keys,u=Array.isArray;function l(e,t){return"object"!==typeof t||c(t).forEach((function(n){e[n]=t[n]})),e}"undefined"===typeof Promise||a.Promise||(a.Promise=Promise);var s=Object.getPrototypeOf,f={}.hasOwnProperty;function d(e,t){return f.call(e,t)}function p(e,t){"function"===typeof t&&(t=t(s(e))),("undefined"===typeof Reflect?c:Reflect.ownKeys)(t).forEach((function(n){v(e,n,t[n])}))}var h=Object.defineProperty;function v(e,t,n,r){h(e,t,l(n&&d(n,"get")&&"function"===typeof n.get?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},r))}function b(e){return{from:function(t){return e.prototype=Object.create(t.prototype),v(e.prototype,"constructor",e),{extend:p.bind(null,e.prototype)}}}}var m=Object.getOwnPropertyDescriptor;function y(e,t){var n;return m(e,t)||(n=s(e))&&y(n,t)}var g=[].slice;function w(e,t,n){return g.call(e,t,n)}function x(e,t){return t(e)}function O(e){if(!e)throw new Error("Assertion Failed")}function j(e){a.setImmediate?setImmediate(e):setTimeout(e,0)}function k(e,t){if("string"===typeof t&&d(e,t))return e[t];if(!t)return e;if("string"!==typeof t){for(var n=[],r=0,o=t.length;r<o;++r){var i=k(e,t[r]);n.push(i)}return n}var a=t.indexOf(".");if(-1!==a){var c=e[t.substr(0,a)];return null==c?void 0:k(c,t.substr(a+1))}}function S(e,t,n){if(e&&void 0!==t&&(!("isFrozen"in Object)||!Object.isFrozen(e)))if("string"!==typeof t&&"length"in t){O("string"!==typeof n&&"length"in n);for(var r=0,o=t.length;r<o;++r)S(e,t[r],n[r])}else{var i=t.indexOf(".");if(-1!==i){var a=t.substr(0,i),c=t.substr(i+1);if(""===c)void 0===n?u(e)&&!isNaN(parseInt(a))?e.splice(a,1):delete e[a]:e[a]=n;else{var l=e[a];l&&d(e,a)||(l=e[a]={}),S(l,c,n)}}else void 0===n?u(e)&&!isNaN(parseInt(t))?e.splice(t,1):delete e[t]:e[t]=n}}function E(e){var t={};for(var n in e)d(e,n)&&(t[n]=e[n]);return t}var C=[].concat;function T(e){return C.apply([],e)}var I="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(T([8,16,32,64].map((function(e){return["Int","Uint","Float"].map((function(t){return t+e+"Array"}))})))).filter((function(e){return a[e]})),P=new Set(I.map((function(e){return a[e]})));function L(e){var t={};for(var n in e)if(d(e,n)){var r=e[n];t[n]=!r||"object"!==typeof r||P.has(r.constructor)?r:L(r)}return t}var _=null;function R(e){_=new WeakMap;var t=N(e);return _=null,t}function N(e){if(!e||"object"!==typeof e)return e;var t=_.get(e);if(t)return t;if(u(e)){t=[],_.set(e,t);for(var n=0,r=e.length;n<r;++n)t.push(N(e[n]))}else if(P.has(e.constructor))t=e;else{var o=s(e);for(var i in t=o===Object.prototype?{}:Object.create(o),_.set(e,t),e)d(e,i)&&(t[i]=N(e[i]))}return t}var M={}.toString;function A(e){return M.call(e).slice(8,-1)}var D="undefined"!==typeof Symbol?Symbol.iterator:"@@iterator",F="symbol"===typeof D?function(e){var t;return null!=e&&(t=e[D])&&t.apply(e)}:function(){return null};function z(e,t){var n=e.indexOf(t);return n>=0&&e.splice(n,1),n>=0}var B={};function H(e){var t,n,r,o;if(1===arguments.length){if(u(e))return e.slice();if(this===B&&"string"===typeof e)return[e];if(o=F(e)){for(n=[];!(r=o.next()).done;)n.push(r.value);return n}if(null==e)return[e];if("number"===typeof(t=e.length)){for(n=new Array(t);t--;)n[t]=e[t];return n}return[e]}for(t=arguments.length,n=new Array(t);t--;)n[t]=arguments[t];return n}var U="undefined"!==typeof Symbol?function(e){return"AsyncFunction"===e[Symbol.toStringTag]}:function(){return!1},W=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],q=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(W),G={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function V(e,t){this.name=e,this.message=t}function K(e,t){return e+". Errors: "+Object.keys(t).map((function(e){return t[e].toString()})).filter((function(e,t,n){return n.indexOf(e)===t})).join("\n")}function $(e,t,n,r){this.failures=t,this.failedKeys=r,this.successCount=n,this.message=K(e,t)}function Y(e,t){this.name="BulkError",this.failures=Object.keys(t).map((function(e){return t[e]})),this.failuresByPos=t,this.message=K(e,this.failures)}b(V).from(Error).extend({toString:function(){return this.name+": "+this.message}}),b($).from(V),b(Y).from(V);var Q=q.reduce((function(e,t){return e[t]=t+"Error",e}),{}),X=V,Z=q.reduce((function(e,t){var n=t+"Error";function r(e,r){this.name=n,e?"string"===typeof e?(this.message="".concat(e).concat(r?"\n "+r:""),this.inner=r||null):"object"===typeof e&&(this.message="".concat(e.name," ").concat(e.message),this.inner=e):(this.message=G[t]||n,this.inner=null)}return b(r).from(X),e[t]=r,e}),{});Z.Syntax=SyntaxError,Z.Type=TypeError,Z.Range=RangeError;var J=W.reduce((function(e,t){return e[t+"Error"]=Z[t],e}),{});var ee=q.reduce((function(e,t){return-1===["Syntax","Type","Range"].indexOf(t)&&(e[t+"Error"]=Z[t]),e}),{});function te(){}function ne(e){return e}function re(e,t){return null==e||e===ne?t:function(n){return t(e(n))}}function oe(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function ie(e,t){return e===te?t:function(){var n=e.apply(this,arguments);void 0!==n&&(arguments[0]=n);var r=this.onsuccess,o=this.onerror;this.onsuccess=null,this.onerror=null;var i=t.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?oe(r,this.onsuccess):r),o&&(this.onerror=this.onerror?oe(o,this.onerror):o),void 0!==i?i:n}}function ae(e,t){return e===te?t:function(){e.apply(this,arguments);var n=this.onsuccess,r=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?oe(n,this.onsuccess):n),r&&(this.onerror=this.onerror?oe(r,this.onerror):r)}}function ce(e,t){return e===te?t:function(n){var r=e.apply(this,arguments);l(n,r);var o=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var a=t.apply(this,arguments);return o&&(this.onsuccess=this.onsuccess?oe(o,this.onsuccess):o),i&&(this.onerror=this.onerror?oe(i,this.onerror):i),void 0===r?void 0===a?void 0:a:l(r,a)}}function ue(e,t){return e===te?t:function(){return!1!==t.apply(this,arguments)&&e.apply(this,arguments)}}function le(e,t){return e===te?t:function(){var n=e.apply(this,arguments);if(n&&"function"===typeof n.then){for(var r=this,o=arguments.length,i=new Array(o);o--;)i[o]=arguments[o];return n.then((function(){return t.apply(r,i)}))}return t.apply(this,arguments)}}ee.ModifyError=$,ee.DexieError=V,ee.BulkError=Y;var se="undefined"!==typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function fe(e,t){se=e}var de={},pe=100,he="undefined"===typeof Promise?[]:function(){var e=Promise.resolve();if("undefined"===typeof crypto||!crypto.subtle)return[e,s(e),e];var t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,s(t),e]}(),ve=he[0],be=he[1],me=he[2],ye=be&&be.then,ge=ve&&ve.constructor,we=!!me;var xe=function(e,t){Ie.push([e,t]),je&&(queueMicrotask(Be),je=!1)},Oe=!0,je=!0,ke=[],Se=[],Ee=ne,Ce={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:te,pgp:!1,env:{},finalize:te},Te=Ce,Ie=[],Pe=0,Le=[];function _e(e){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var t=this._PSD=Te;if("function"!==typeof e){if(e!==de)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&Ae(this,this._value))}this._state=null,this._value=null,++t.ref,Me(this,e)}var Re={get:function(){var e=Te,t=Qe;function n(n,r){var o=this,i=!e.global&&(e!==Te||t!==Qe),a=i&&!et(),c=new _e((function(t,c){Fe(o,new Ne(ct(n,e,i,a),ct(r,e,i,a),t,c,e))}));return this._consoleTask&&(c._consoleTask=this._consoleTask),c}return n.prototype=de,n},set:function(e){v(this,"then",e&&e.prototype===de?Re:{get:function(){return e},set:Re.set})}};function Ne(e,t,n,r,o){this.onFulfilled="function"===typeof e?e:null,this.onRejected="function"===typeof t?t:null,this.resolve=n,this.reject=r,this.psd=o}function Me(e,t){try{t((function(t){if(null===e._state){if(t===e)throw new TypeError("A promise cannot be resolved with itself.");var n=e._lib&&He();t&&"function"===typeof t.then?Me(e,(function(e,n){t instanceof _e?t._then(e,n):t.then(e,n)})):(e._state=!0,e._value=t,De(e)),n&&Ue()}}),Ae.bind(null,e))}catch(n){Ae(e,n)}}function Ae(e,t){if(Se.push(t),null===e._state){var n=e._lib&&He();t=Ee(t),e._state=!1,e._value=t,function(e){ke.some((function(t){return t._value===e._value}))||ke.push(e)}(e),De(e),n&&Ue()}}function De(e){var t=e._listeners;e._listeners=[];for(var n=0,r=t.length;n<r;++n)Fe(e,t[n]);var o=e._PSD;--o.ref||o.finalize(),0===Pe&&(++Pe,xe((function(){0===--Pe&&We()}),[]))}function Fe(e,t){if(null!==e._state){var n=e._state?t.onFulfilled:t.onRejected;if(null===n)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++Pe,xe(ze,[n,e,t])}else e._listeners.push(t)}function ze(e,t,n){try{var r,o=t._value;!t._state&&Se.length&&(Se=[]),r=se&&t._consoleTask?t._consoleTask.run((function(){return e(o)})):e(o),t._state||-1!==Se.indexOf(o)||function(e){var t=ke.length;for(;t;)if(ke[--t]._value===e._value)return void ke.splice(t,1)}(t),n.resolve(r)}catch(i){n.reject(i)}finally{0===--Pe&&We(),--n.psd.ref||n.psd.finalize()}}function Be(){at(Ce,(function(){He()&&Ue()}))}function He(){var e=Oe;return Oe=!1,je=!1,e}function Ue(){var e,t,n;do{for(;Ie.length>0;)for(e=Ie,Ie=[],n=e.length,t=0;t<n;++t){var r=e[t];r[0].apply(null,r[1])}}while(Ie.length>0);Oe=!0,je=!0}function We(){var e=ke;ke=[],e.forEach((function(e){e._PSD.onunhandled.call(null,e._value,e)}));for(var t=Le.slice(0),n=t.length;n;)t[--n]()}function qe(e){return new _e(de,!1,e)}function Ge(e,t){var n=Te;return function(){var r=He(),o=Te;try{return ot(n,!0),e.apply(this,arguments)}catch(i){t&&t(i)}finally{ot(o,!1),r&&Ue()}}}p(_e.prototype,{then:Re,_then:function(e,t){Fe(this,new Ne(null,null,e,t,Te))},catch:function(e){if(1===arguments.length)return this.then(null,e);var t=arguments[0],n=arguments[1];return"function"===typeof t?this.then(null,(function(e){return e instanceof t?n(e):qe(e)})):this.then(null,(function(e){return e&&e.name===t?n(e):qe(e)}))},finally:function(e){return this.then((function(t){return _e.resolve(e()).then((function(){return t}))}),(function(t){return _e.resolve(e()).then((function(){return qe(t)}))}))},timeout:function(e,t){var n=this;return e<1/0?new _e((function(r,o){var i=setTimeout((function(){return o(new Z.Timeout(t))}),e);n.then(r,o).finally(clearTimeout.bind(null,i))})):this}}),"undefined"!==typeof Symbol&&Symbol.toStringTag&&v(_e.prototype,Symbol.toStringTag,"Dexie.Promise"),Ce.env=it(),p(_e,{all:function(){var e=H.apply(null,arguments).map(tt);return new _e((function(t,n){0===e.length&&t([]);var r=e.length;e.forEach((function(o,i){return _e.resolve(o).then((function(n){e[i]=n,--r||t(e)}),n)}))}))},resolve:function(e){return e instanceof _e?e:e&&"function"===typeof e.then?new _e((function(t,n){e.then(t,n)})):new _e(de,!0,e)},reject:qe,race:function(){var e=H.apply(null,arguments).map(tt);return new _e((function(t,n){e.map((function(e){return _e.resolve(e).then(t,n)}))}))},PSD:{get:function(){return Te},set:function(e){return Te=e}},totalEchoes:{get:function(){return Qe}},newPSD:Ze,usePSD:at,scheduler:{get:function(){return xe},set:function(e){xe=e}},rejectionMapper:{get:function(){return Ee},set:function(e){Ee=e}},follow:function(e,t){return new _e((function(n,r){return Ze((function(t,n){var r=Te;r.unhandleds=[],r.onunhandled=n,r.finalize=oe((function(){var e=this;!function(e){function t(){e(),Le.splice(Le.indexOf(t),1)}Le.push(t),++Pe,xe((function(){0===--Pe&&We()}),[])}((function(){0===e.unhandleds.length?t():n(e.unhandleds[0])}))}),r.finalize),e()}),t,n,r)}))}}),ge&&(ge.allSettled&&v(_e,"allSettled",(function(){var e=H.apply(null,arguments).map(tt);return new _e((function(t){0===e.length&&t([]);var n=e.length,r=new Array(n);e.forEach((function(e,o){return _e.resolve(e).then((function(e){return r[o]={status:"fulfilled",value:e}}),(function(e){return r[o]={status:"rejected",reason:e}})).then((function(){return--n||t(r)}))}))}))})),ge.any&&"undefined"!==typeof AggregateError&&v(_e,"any",(function(){var e=H.apply(null,arguments).map(tt);return new _e((function(t,n){0===e.length&&n(new AggregateError([]));var r=e.length,o=new Array(r);e.forEach((function(e,i){return _e.resolve(e).then((function(e){return t(e)}),(function(e){o[i]=e,--r||n(new AggregateError(o))}))}))}))})),ge.withResolvers&&(_e.withResolvers=ge.withResolvers));var Ve={awaits:0,echoes:0,id:0},Ke=0,$e=[],Ye=0,Qe=0,Xe=0;function Ze(e,t,n,r){var o=Te,i=Object.create(o);i.parent=o,i.ref=0,i.global=!1,i.id=++Xe,Ce.env,i.env=we?{Promise:_e,PromiseProp:{value:_e,configurable:!0,writable:!0},all:_e.all,race:_e.race,allSettled:_e.allSettled,any:_e.any,resolve:_e.resolve,reject:_e.reject}:{},t&&l(i,t),++o.ref,i.finalize=function(){--this.parent.ref||this.parent.finalize()};var a=at(i,e,n,r);return 0===i.ref&&i.finalize(),a}function Je(){return Ve.id||(Ve.id=++Ke),++Ve.awaits,Ve.echoes+=pe,Ve.id}function et(){return!!Ve.awaits&&(0===--Ve.awaits&&(Ve.id=0),Ve.echoes=Ve.awaits*pe,!0)}function tt(e){return Ve.echoes&&e&&e.constructor===ge?(Je(),e.then((function(e){return et(),e}),(function(e){return et(),lt(e)}))):e}function nt(e){++Qe,Ve.echoes&&0!==--Ve.echoes||(Ve.echoes=Ve.awaits=Ve.id=0),$e.push(Te),ot(e,!0)}function rt(){var e=$e[$e.length-1];$e.pop(),ot(e,!1)}function ot(e,t){var n=Te;if((t?!Ve.echoes||Ye++&&e===Te:!Ye||--Ye&&e===Te)||queueMicrotask(t?nt.bind(null,e):rt),e!==Te&&(Te=e,n===Ce&&(Ce.env=it()),we)){var r=Ce.env.Promise,o=e.env;(n.global||e.global)&&(Object.defineProperty(a,"Promise",o.PromiseProp),r.all=o.all,r.race=o.race,r.resolve=o.resolve,r.reject=o.reject,o.allSettled&&(r.allSettled=o.allSettled),o.any&&(r.any=o.any))}}function it(){var e=a.Promise;return we?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(a,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject}:{}}function at(e,t,n,r,o){var i=Te;try{return ot(e,!0),t(n,r,o)}finally{ot(i,!1)}}function ct(e,t,n,r){return"function"!==typeof e?e:function(){var o=Te;n&&Je(),ot(t,!0);try{return e.apply(this,arguments)}finally{ot(o,!1),r&&queueMicrotask(et)}}}function ut(e){Promise===ge&&0===Ve.echoes?0===Ye?e():enqueueNativeMicroTask(e):setTimeout(e,0)}-1===(""+ye).indexOf("[native code]")&&(Je=et=te);var lt=_e.reject;function st(e,t,n,r){if(e.idbdb&&(e._state.openComplete||Te.letThrough||e._vip)){var o=e._createTransaction(t,n,e._dbSchema);try{o.create(),e._state.PR1398_maxLoop=3}catch(i){return i.name===Q.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e.close({disableAutoOpen:!1}),e.open().then((function(){return st(e,t,n,r)}))):lt(i)}return o._promise(t,(function(e,t){return Ze((function(){return Te.trans=o,r(e,t,o)}))})).then((function(e){if("readwrite"===t)try{o.idbtrans.commit()}catch(kn){}return"readonly"===t?e:o._completion.then((function(){return e}))}))}if(e._state.openComplete)return lt(new Z.DatabaseClosed(e._state.dbOpenError));if(!e._state.isBeingOpened){if(!e._state.autoOpen)return lt(new Z.DatabaseClosed);e.open().catch(te)}return e._state.dbReadyPromise.then((function(){return st(e,t,n,r)}))}var ft="4.0.11",dt=String.fromCharCode(65535),pt=-1/0,ht="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",vt="String expected.",bt=[],mt="__dbnames",yt="readonly",gt="readwrite";function wt(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}var xt={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function Ot(e){return"string"!==typeof e||/\./.test(e)?function(e){return e}:function(t){return void 0===t[e]&&e in t&&delete(t=R(t))[e],t}}function jt(){throw Z.Type()}function kt(e,t){try{var n=St(e),r=St(t);if(n!==r)return"Array"===n?1:"Array"===r?-1:"binary"===n?1:"binary"===r?-1:"string"===n?1:"string"===r?-1:"Date"===n?1:"Date"!==r?NaN:-1;switch(n){case"number":case"Date":case"string":return e>t?1:e<t?-1:0;case"binary":return function(e,t){for(var n=e.length,r=t.length,o=n<r?n:r,i=0;i<o;++i)if(e[i]!==t[i])return e[i]<t[i]?-1:1;return n===r?0:n<r?-1:1}(Et(e),Et(t));case"Array":return function(e,t){for(var n=e.length,r=t.length,o=n<r?n:r,i=0;i<o;++i){var a=kt(e[i],t[i]);if(0!==a)return a}return n===r?0:n<r?-1:1}(e,t)}}catch(kn){}return NaN}function St(e){var t=typeof e;if("object"!==t)return t;if(ArrayBuffer.isView(e))return"binary";var n=A(e);return"ArrayBuffer"===n?"binary":n}function Et(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}var Ct=function(){function e(){}return e.prototype._trans=function(e,t,n){var r=this._tx||Te.trans,o=this.name,i=se&&"undefined"!==typeof console&&console.createTask&&console.createTask("Dexie: ".concat("readonly"===e?"read":"write"," ").concat(this.name));function a(e,n,r){if(!r.schema[o])throw new Z.NotFound("Table "+o+" not part of transaction");return t(r.idbtrans,r)}var c=He();try{var u=r&&r.db._novip===this.db._novip?r===Te.trans?r._promise(e,a,n):Ze((function(){return r._promise(e,a,n)}),{trans:r,transless:Te.transless||Te}):st(this.db,e,[this.name],a);return i&&(u._consoleTask=i,u=u.catch((function(e){return console.trace(e),lt(e)}))),u}finally{c&&Ue()}},e.prototype.get=function(e,t){var n=this;return e&&e.constructor===Object?this.where(e).first(t):null==e?lt(new Z.Type("Invalid argument to Table.get()")):this._trans("readonly",(function(t){return n.core.get({trans:t,key:e}).then((function(e){return n.hook.reading.fire(e)}))})).then(t)},e.prototype.where=function(e){if("string"===typeof e)return new this.db.WhereClause(this,e);if(u(e))return new this.db.WhereClause(this,"[".concat(e.join("+"),"]"));var t=c(e);if(1===t.length)return this.where(t[0]).equals(e[t[0]]);var n=this.schema.indexes.concat(this.schema.primKey).filter((function(e){if(e.compound&&t.every((function(t){return e.keyPath.indexOf(t)>=0}))){for(var n=0;n<t.length;++n)if(-1===t.indexOf(e.keyPath[n]))return!1;return!0}return!1})).sort((function(e,t){return e.keyPath.length-t.keyPath.length}))[0];if(n&&this.db._maxKey!==dt){var r=n.keyPath.slice(0,t.length);return this.where(r).equals(r.map((function(t){return e[t]})))}!n&&se&&console.warn("The query ".concat(JSON.stringify(e)," on ").concat(this.name," would benefit from a ")+"compound index [".concat(t.join("+"),"]"));var o=this.schema.idxByName;function i(e,t){return 0===kt(e,t)}var a=t.reduce((function(t,n){var r=t[0],a=t[1],c=o[n],l=e[n];return[r||c,r||!c?wt(a,c&&c.multi?function(e){var t=k(e,n);return u(t)&&t.some((function(e){return i(l,e)}))}:function(e){return i(l,k(e,n))}):a]}),[null,null]),l=a[0],s=a[1];return l?this.where(l.name).equals(e[l.keyPath]).filter(s):n?this.filter(s):this.where(t).equals("")},e.prototype.filter=function(e){return this.toCollection().and(e)},e.prototype.count=function(e){return this.toCollection().count(e)},e.prototype.offset=function(e){return this.toCollection().offset(e)},e.prototype.limit=function(e){return this.toCollection().limit(e)},e.prototype.each=function(e){return this.toCollection().each(e)},e.prototype.toArray=function(e){return this.toCollection().toArray(e)},e.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},e.prototype.orderBy=function(e){return new this.db.Collection(new this.db.WhereClause(this,u(e)?"[".concat(e.join("+"),"]"):e))},e.prototype.reverse=function(){return this.toCollection().reverse()},e.prototype.mapToClass=function(e){var t=this.db,n=this.name;this.schema.mappedClass=e,e.prototype instanceof jt&&(e=function(e){function o(){return null!==e&&e.apply(this,arguments)||this}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(o,e),Object.defineProperty(o.prototype,"db",{get:function(){return t},enumerable:!1,configurable:!0}),o.prototype.table=function(){return n},o}(e));for(var o=new Set,i=e.prototype;i;i=s(i))Object.getOwnPropertyNames(i).forEach((function(e){return o.add(e)}));var a=function(t){if(!t)return t;var n=Object.create(e.prototype);for(var r in t)if(!o.has(r))try{n[r]=t[r]}catch(i){}return n};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=a,this.hook("reading",a),e},e.prototype.defineClass=function(){return this.mapToClass((function(e){l(this,e)}))},e.prototype.add=function(e,t){var n=this,r=this.schema.primKey,o=r.auto,i=r.keyPath,a=e;return i&&o&&(a=Ot(i)(e)),this._trans("readwrite",(function(e){return n.core.mutate({trans:e,type:"add",keys:null!=t?[t]:null,values:[a]})})).then((function(e){return e.numFailures?_e.reject(e.failures[0]):e.lastResult})).then((function(t){if(i)try{S(e,i,t)}catch(n){}return t}))},e.prototype.update=function(e,t){if("object"!==typeof e||u(e))return this.where(":id").equals(e).modify(t);var n=k(e,this.schema.primKey.keyPath);return void 0===n?lt(new Z.InvalidArgument("Given object does not contain its primary key")):this.where(":id").equals(n).modify(t)},e.prototype.put=function(e,t){var n=this,r=this.schema.primKey,o=r.auto,i=r.keyPath,a=e;return i&&o&&(a=Ot(i)(e)),this._trans("readwrite",(function(e){return n.core.mutate({trans:e,type:"put",values:[a],keys:null!=t?[t]:null})})).then((function(e){return e.numFailures?_e.reject(e.failures[0]):e.lastResult})).then((function(t){if(i)try{S(e,i,t)}catch(n){}return t}))},e.prototype.delete=function(e){var t=this;return this._trans("readwrite",(function(n){return t.core.mutate({trans:n,type:"delete",keys:[e]})})).then((function(e){return e.numFailures?_e.reject(e.failures[0]):void 0}))},e.prototype.clear=function(){var e=this;return this._trans("readwrite",(function(t){return e.core.mutate({trans:t,type:"deleteRange",range:xt})})).then((function(e){return e.numFailures?_e.reject(e.failures[0]):void 0}))},e.prototype.bulkGet=function(e){var t=this;return this._trans("readonly",(function(n){return t.core.getMany({keys:e,trans:n}).then((function(e){return e.map((function(e){return t.hook.reading.fire(e)}))}))}))},e.prototype.bulkAdd=function(e,t,n){var r=this,o=Array.isArray(t)?t:void 0,i=(n=n||(o?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",(function(t){var n=r.schema.primKey,a=n.auto,c=n.keyPath;if(c&&o)throw new Z.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(o&&o.length!==e.length)throw new Z.InvalidArgument("Arguments objects and keys must have the same length");var u=e.length,l=c&&a?e.map(Ot(c)):e;return r.core.mutate({trans:t,type:"add",keys:o,values:l,wantResults:i}).then((function(e){var t=e.numFailures,n=e.results,o=e.lastResult,a=e.failures;if(0===t)return i?n:o;throw new Y("".concat(r.name,".bulkAdd(): ").concat(t," of ").concat(u," operations failed"),a)}))}))},e.prototype.bulkPut=function(e,t,n){var r=this,o=Array.isArray(t)?t:void 0,i=(n=n||(o?void 0:t))?n.allKeys:void 0;return this._trans("readwrite",(function(t){var n=r.schema.primKey,a=n.auto,c=n.keyPath;if(c&&o)throw new Z.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(o&&o.length!==e.length)throw new Z.InvalidArgument("Arguments objects and keys must have the same length");var u=e.length,l=c&&a?e.map(Ot(c)):e;return r.core.mutate({trans:t,type:"put",keys:o,values:l,wantResults:i}).then((function(e){var t=e.numFailures,n=e.results,o=e.lastResult,a=e.failures;if(0===t)return i?n:o;throw new Y("".concat(r.name,".bulkPut(): ").concat(t," of ").concat(u," operations failed"),a)}))}))},e.prototype.bulkUpdate=function(e){var t=this,n=this.core,r=e.map((function(e){return e.key})),o=e.map((function(e){return e.changes})),i=[];return this._trans("readwrite",(function(a){return n.getMany({trans:a,keys:r,cache:"clone"}).then((function(c){var u=[],l=[];e.forEach((function(e,n){var r=e.key,o=e.changes,a=c[n];if(a){for(var s=0,f=Object.keys(o);s<f.length;s++){var d=f[s],p=o[d];if(d===t.schema.primKey.keyPath){if(0!==kt(p,r))throw new Z.Constraint("Cannot update primary key in bulkUpdate()")}else S(a,d,p)}i.push(n),u.push(r),l.push(a)}}));var s=u.length;return n.mutate({trans:a,type:"put",keys:u,values:l,updates:{keys:r,changeSpecs:o}}).then((function(e){var n=e.numFailures,r=e.failures;if(0===n)return s;for(var o=0,a=Object.keys(r);o<a.length;o++){var c=a[o],u=i[Number(c)];if(null!=u){var l=r[c];delete r[c],r[u]=l}}throw new Y("".concat(t.name,".bulkUpdate(): ").concat(n," of ").concat(s," operations failed"),r)}))}))}))},e.prototype.bulkDelete=function(e){var t=this,n=e.length;return this._trans("readwrite",(function(n){return t.core.mutate({trans:n,type:"delete",keys:e})})).then((function(e){var r=e.numFailures,o=e.lastResult,i=e.failures;if(0===r)return o;throw new Y("".concat(t.name,".bulkDelete(): ").concat(r," of ").concat(n," operations failed"),i)}))},e}();function Tt(e){var t={},n=function(n,r){if(r){for(var o=arguments.length,i=new Array(o-1);--o;)i[o-1]=arguments[o];return t[n].subscribe.apply(null,i),e}if("string"===typeof n)return t[n]};n.addEventType=i;for(var r=1,o=arguments.length;r<o;++r)i(arguments[r]);return n;function i(e,r,o){if("object"!==typeof e){var a;r||(r=ue),o||(o=te);var l={subscribers:[],fire:o,subscribe:function(e){-1===l.subscribers.indexOf(e)&&(l.subscribers.push(e),l.fire=r(l.fire,e))},unsubscribe:function(e){l.subscribers=l.subscribers.filter((function(t){return t!==e})),l.fire=l.subscribers.reduce(r,o)}};return t[e]=n[e]=l,l}c(a=e).forEach((function(e){var t=a[e];if(u(t))i(e,a[e][0],a[e][1]);else{if("asap"!==t)throw new Z.InvalidArgument("Invalid event config");var n=i(e,ne,(function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];n.subscribers.forEach((function(e){j((function(){e.apply(null,t)}))}))}))}}))}}function It(e,t){return b(t).from({prototype:e}),t}function Pt(e,t){return!(e.filter||e.algorithm||e.or)&&(t?e.justLimit:!e.replayFilter)}function Lt(e,t){e.filter=wt(e.filter,t)}function _t(e,t,n){var r=e.replayFilter;e.replayFilter=r?function(){return wt(r(),t())}:t,e.justLimit=n&&!r}function Rt(e,t){if(e.isPrimKey)return t.primaryKey;var n=t.getIndexByKeyPath(e.index);if(!n)throw new Z.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return n}function Nt(e,t,n){var r=Rt(e,t.schema);return t.openCursor({trans:n,values:!e.keysOnly,reverse:"prev"===e.dir,unique:!!e.unique,query:{index:r,range:e.range}})}function Mt(e,t,n,r){var o=e.replayFilter?wt(e.filter,e.replayFilter()):e.filter;if(e.or){var i={},a=function(e,n,r){if(!o||o(n,r,(function(e){return n.stop(e)}),(function(e){return n.fail(e)}))){var a=n.primaryKey,c=""+a;"[object ArrayBuffer]"===c&&(c=""+new Uint8Array(a)),d(i,c)||(i[c]=!0,t(e,n,r))}};return Promise.all([e.or._iterate(a,n),At(Nt(e,r,n),e.algorithm,a,!e.keysOnly&&e.valueMapper)])}return At(Nt(e,r,n),wt(e.algorithm,o),t,!e.keysOnly&&e.valueMapper)}function At(e,t,n,r){var o=Ge(r?function(e,t,o){return n(r(e),t,o)}:n);return e.then((function(e){if(e)return e.start((function(){var n=function(){return e.continue()};t&&!t(e,(function(e){return n=e}),(function(t){e.stop(t),n=te}),(function(t){e.fail(t),n=te}))||o(e.value,e,(function(e){return n=e})),n()}))}))}var Dt=function(){function e(e){this["@@propmod"]=e}return e.prototype.execute=function(e){var t,n=this["@@propmod"];if(void 0!==n.add){var r=n.add;if(u(r))return i(i([],u(e)?e:[],!0),r,!0).sort();if("number"===typeof r)return(Number(e)||0)+r;if("bigint"===typeof r)try{return BigInt(e)+r}catch(c){return BigInt(0)+r}throw new TypeError("Invalid term ".concat(r))}if(void 0!==n.remove){var o=n.remove;if(u(o))return u(e)?e.filter((function(e){return!o.includes(e)})).sort():[];if("number"===typeof o)return Number(e)-o;if("bigint"===typeof o)try{return BigInt(e)-o}catch(l){return BigInt(0)-o}throw new TypeError("Invalid subtrahend ".concat(o))}var a=null===(t=n.replacePrefix)||void 0===t?void 0:t[0];return a&&"string"===typeof e&&e.startsWith(a)?n.replacePrefix[1]+e.substring(a.length):e},e}(),Ft=function(){function e(){}return e.prototype._read=function(e,t){var n=this._ctx;return n.error?n.table._trans(null,lt.bind(null,n.error)):n.table._trans("readonly",e).then(t)},e.prototype._write=function(e){var t=this._ctx;return t.error?t.table._trans(null,lt.bind(null,t.error)):t.table._trans("readwrite",e,"locked")},e.prototype._addAlgorithm=function(e){var t=this._ctx;t.algorithm=wt(t.algorithm,e)},e.prototype._iterate=function(e,t){return Mt(this._ctx,e,t,this._ctx.table.core)},e.prototype.clone=function(e){var t=Object.create(this.constructor.prototype),n=Object.create(this._ctx);return e&&l(n,e),t._ctx=n,t},e.prototype.raw=function(){return this._ctx.valueMapper=null,this},e.prototype.each=function(e){var t=this._ctx;return this._read((function(n){return Mt(t,e,n,t.table.core)}))},e.prototype.count=function(e){var t=this;return this._read((function(e){var n=t._ctx,r=n.table.core;if(Pt(n,!0))return r.count({trans:e,query:{index:Rt(n,r.schema),range:n.range}}).then((function(e){return Math.min(e,n.limit)}));var o=0;return Mt(n,(function(){return++o,!1}),e,r).then((function(){return o}))})).then(e)},e.prototype.sortBy=function(e,t){var n=e.split(".").reverse(),r=n[0],o=n.length-1;function i(e,t){return t?i(e[n[t]],t-1):e[r]}var a="next"===this._ctx.dir?1:-1;function c(e,t){return kt(i(e,o),i(t,o))*a}return this.toArray((function(e){return e.sort(c)})).then(t)},e.prototype.toArray=function(e){var t=this;return this._read((function(e){var n=t._ctx;if("next"===n.dir&&Pt(n,!0)&&n.limit>0){var r=n.valueMapper,o=Rt(n,n.table.core.schema);return n.table.core.query({trans:e,limit:n.limit,values:!0,query:{index:o,range:n.range}}).then((function(e){var t=e.result;return r?t.map(r):t}))}var i=[];return Mt(n,(function(e){return i.push(e)}),e,n.table.core).then((function(){return i}))}),e)},e.prototype.offset=function(e){var t=this._ctx;return e<=0||(t.offset+=e,Pt(t)?_t(t,(function(){var t=e;return function(e,n){return 0===t||(1===t?(--t,!1):(n((function(){e.advance(t),t=0})),!1))}})):_t(t,(function(){var t=e;return function(){return--t<0}}))),this},e.prototype.limit=function(e){return this._ctx.limit=Math.min(this._ctx.limit,e),_t(this._ctx,(function(){var t=e;return function(e,n,r){return--t<=0&&n(r),t>=0}}),!0),this},e.prototype.until=function(e,t){return Lt(this._ctx,(function(n,r,o){return!e(n.value)||(r(o),t)})),this},e.prototype.first=function(e){return this.limit(1).toArray((function(e){return e[0]})).then(e)},e.prototype.last=function(e){return this.reverse().first(e)},e.prototype.filter=function(e){var t,n;return Lt(this._ctx,(function(t){return e(t.value)})),t=this._ctx,n=e,t.isMatch=wt(t.isMatch,n),this},e.prototype.and=function(e){return this.filter(e)},e.prototype.or=function(e){return new this.db.WhereClause(this._ctx.table,e,this)},e.prototype.reverse=function(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},e.prototype.desc=function(){return this.reverse()},e.prototype.eachKey=function(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each((function(t,n){e(n.key,n)}))},e.prototype.eachUniqueKey=function(e){return this._ctx.unique="unique",this.eachKey(e)},e.prototype.eachPrimaryKey=function(e){var t=this._ctx;return t.keysOnly=!t.isMatch,this.each((function(t,n){e(n.primaryKey,n)}))},e.prototype.keys=function(e){var t=this._ctx;t.keysOnly=!t.isMatch;var n=[];return this.each((function(e,t){n.push(t.key)})).then((function(){return n})).then(e)},e.prototype.primaryKeys=function(e){var t=this._ctx;if("next"===t.dir&&Pt(t,!0)&&t.limit>0)return this._read((function(e){var n=Rt(t,t.table.core.schema);return t.table.core.query({trans:e,values:!1,limit:t.limit,query:{index:n,range:t.range}})})).then((function(e){return e.result})).then(e);t.keysOnly=!t.isMatch;var n=[];return this.each((function(e,t){n.push(t.primaryKey)})).then((function(){return n})).then(e)},e.prototype.uniqueKeys=function(e){return this._ctx.unique="unique",this.keys(e)},e.prototype.firstKey=function(e){return this.limit(1).keys((function(e){return e[0]})).then(e)},e.prototype.lastKey=function(e){return this.reverse().firstKey(e)},e.prototype.distinct=function(){var e=this._ctx,t=e.index&&e.table.schema.idxByName[e.index];if(!t||!t.multi)return this;var n={};return Lt(this._ctx,(function(e){var t=e.primaryKey.toString(),r=d(n,t);return n[t]=!0,!r})),this},e.prototype.modify=function(e){var t=this,n=this._ctx;return this._write((function(r){var o;if("function"===typeof e)o=e;else{var i=c(e),a=i.length;o=function(t){for(var n=!1,r=0;r<a;++r){var o=i[r],c=e[o],u=k(t,o);c instanceof Dt?(S(t,o,c.execute(u)),n=!0):u!==c&&(S(t,o,c),n=!0)}return n}}var u=n.table.core,l=u.schema.primaryKey,s=l.outbound,f=l.extractKey,d=200,p=t.db._options.modifyChunkSize;p&&(d="object"==typeof p?p[u.name]||p["*"]||200:p);var h=[],v=0,b=[],m=function(e,t){var n=t.failures,r=t.numFailures;v+=e-r;for(var o=0,i=c(n);o<i.length;o++){var a=i[o];h.push(n[a])}};return t.clone().primaryKeys().then((function(t){var i=Pt(n)&&n.limit===1/0&&("function"!==typeof e||e===zt)&&{index:n.index,range:n.range};return function n(a){var c=Math.min(d,t.length-a);return u.getMany({trans:r,keys:t.slice(a,a+c),cache:"immutable"}).then((function(l){for(var p=[],h=[],v=s?[]:null,b=[],y=0;y<c;++y){var g=l[y],w={value:R(g),primKey:t[a+y]};!1!==o.call(w,w.value,w)&&(null==w.value?b.push(t[a+y]):s||0===kt(f(g),f(w.value))?(h.push(w.value),s&&v.push(t[a+y])):(b.push(t[a+y]),p.push(w.value)))}return Promise.resolve(p.length>0&&u.mutate({trans:r,type:"add",values:p}).then((function(e){for(var t in e.failures)b.splice(parseInt(t),1);m(p.length,e)}))).then((function(){return(h.length>0||i&&"object"===typeof e)&&u.mutate({trans:r,type:"put",keys:v,values:h,criteria:i,changeSpec:"function"!==typeof e&&e,isAdditionalChunk:a>0}).then((function(e){return m(h.length,e)}))})).then((function(){return(b.length>0||i&&e===zt)&&u.mutate({trans:r,type:"delete",keys:b,criteria:i,isAdditionalChunk:a>0}).then((function(e){return m(b.length,e)}))})).then((function(){return t.length>a+c&&n(a+d)}))}))}(0).then((function(){if(h.length>0)throw new $("Error modifying one or more objects",h,v,b);return t.length}))}))}))},e.prototype.delete=function(){var e=this._ctx,t=e.range;return Pt(e)&&(e.isPrimKey||3===t.type)?this._write((function(n){var r=e.table.core.schema.primaryKey,o=t;return e.table.core.count({trans:n,query:{index:r,range:o}}).then((function(t){return e.table.core.mutate({trans:n,type:"deleteRange",range:o}).then((function(e){var n=e.failures;e.lastResult,e.results;var r=e.numFailures;if(r)throw new $("Could not delete some values",Object.keys(n).map((function(e){return n[e]})),t-r);return t-r}))}))})):this.modify(zt)},e}(),zt=function(e,t){return t.value=null};function Bt(e,t){return e<t?-1:e===t?0:1}function Ht(e,t){return e>t?-1:e===t?0:1}function Ut(e,t,n){var r=e instanceof $t?new e.Collection(e):e;return r._ctx.error=n?new n(t):new TypeError(t),r}function Wt(e){return new e.Collection(e,(function(){return Kt("")})).limit(0)}function qt(e,t,n,r,o,i){for(var a=Math.min(e.length,r.length),c=-1,u=0;u<a;++u){var l=t[u];if(l!==r[u])return o(e[u],n[u])<0?e.substr(0,u)+n[u]+n.substr(u+1):o(e[u],r[u])<0?e.substr(0,u)+r[u]+n.substr(u+1):c>=0?e.substr(0,c)+t[c]+n.substr(c+1):null;o(e[u],l)<0&&(c=u)}return a<r.length&&"next"===i?e+n.substr(e.length):a<e.length&&"prev"===i?e.substr(0,n.length):c<0?null:e.substr(0,c)+r[c]+n.substr(c+1)}function Gt(e,t,n,r){var o,i,a,c,u,l,s,f=n.length;if(!n.every((function(e){return"string"===typeof e})))return Ut(e,vt);function d(e){o=function(e){return"next"===e?function(e){return e.toUpperCase()}:function(e){return e.toLowerCase()}}(e),i=function(e){return"next"===e?function(e){return e.toLowerCase()}:function(e){return e.toUpperCase()}}(e),a="next"===e?Bt:Ht;var t=n.map((function(e){return{lower:i(e),upper:o(e)}})).sort((function(e,t){return a(e.lower,t.lower)}));c=t.map((function(e){return e.upper})),u=t.map((function(e){return e.lower})),l=e,s="next"===e?"":r}d("next");var p=new e.Collection(e,(function(){return Vt(c[0],u[f-1]+r)}));p._ondirectionchange=function(e){d(e)};var h=0;return p._addAlgorithm((function(e,n,r){var o=e.key;if("string"!==typeof o)return!1;var d=i(o);if(t(d,u,h))return!0;for(var p=null,v=h;v<f;++v){var b=qt(o,d,c[v],u[v],a,l);null===b&&null===p?h=v+1:(null===p||a(p,b)>0)&&(p=b)}return n(null!==p?function(){e.continue(p+s)}:r),!1})),p}function Vt(e,t,n,r){return{type:2,lower:e,upper:t,lowerOpen:n,upperOpen:r}}function Kt(e){return{type:1,lower:e,upper:e}}var $t=function(){function e(){}return Object.defineProperty(e.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),e.prototype.between=function(e,t,n,r){n=!1!==n,r=!0===r;try{return this._cmp(e,t)>0||0===this._cmp(e,t)&&(n||r)&&(!n||!r)?Wt(this):new this.Collection(this,(function(){return Vt(e,t,!n,!r)}))}catch(o){return Ut(this,ht)}},e.prototype.equals=function(e){return null==e?Ut(this,ht):new this.Collection(this,(function(){return Kt(e)}))},e.prototype.above=function(e){return null==e?Ut(this,ht):new this.Collection(this,(function(){return Vt(e,void 0,!0)}))},e.prototype.aboveOrEqual=function(e){return null==e?Ut(this,ht):new this.Collection(this,(function(){return Vt(e,void 0,!1)}))},e.prototype.below=function(e){return null==e?Ut(this,ht):new this.Collection(this,(function(){return Vt(void 0,e,!1,!0)}))},e.prototype.belowOrEqual=function(e){return null==e?Ut(this,ht):new this.Collection(this,(function(){return Vt(void 0,e)}))},e.prototype.startsWith=function(e){return"string"!==typeof e?Ut(this,vt):this.between(e,e+dt,!0,!0)},e.prototype.startsWithIgnoreCase=function(e){return""===e?this.startsWith(e):Gt(this,(function(e,t){return 0===e.indexOf(t[0])}),[e],dt)},e.prototype.equalsIgnoreCase=function(e){return Gt(this,(function(e,t){return e===t[0]}),[e],"")},e.prototype.anyOfIgnoreCase=function(){var e=H.apply(B,arguments);return 0===e.length?Wt(this):Gt(this,(function(e,t){return-1!==t.indexOf(e)}),e,"")},e.prototype.startsWithAnyOfIgnoreCase=function(){var e=H.apply(B,arguments);return 0===e.length?Wt(this):Gt(this,(function(e,t){return t.some((function(t){return 0===e.indexOf(t)}))}),e,dt)},e.prototype.anyOf=function(){var e=this,t=H.apply(B,arguments),n=this._cmp;try{t.sort(n)}catch(i){return Ut(this,ht)}if(0===t.length)return Wt(this);var r=new this.Collection(this,(function(){return Vt(t[0],t[t.length-1])}));r._ondirectionchange=function(r){n="next"===r?e._ascending:e._descending,t.sort(n)};var o=0;return r._addAlgorithm((function(e,r,i){for(var a=e.key;n(a,t[o])>0;)if(++o===t.length)return r(i),!1;return 0===n(a,t[o])||(r((function(){e.continue(t[o])})),!1)})),r},e.prototype.notEqual=function(e){return this.inAnyRange([[pt,e],[e,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},e.prototype.noneOf=function(){var e=H.apply(B,arguments);if(0===e.length)return new this.Collection(this);try{e.sort(this._ascending)}catch(n){return Ut(this,ht)}var t=e.reduce((function(e,t){return e?e.concat([[e[e.length-1][1],t]]):[[pt,t]]}),null);return t.push([e[e.length-1],this.db._maxKey]),this.inAnyRange(t,{includeLowers:!1,includeUppers:!1})},e.prototype.inAnyRange=function(e,t){var n=this,r=this._cmp,o=this._ascending,i=this._descending,a=this._min,c=this._max;if(0===e.length)return Wt(this);if(!e.every((function(e){return void 0!==e[0]&&void 0!==e[1]&&o(e[0],e[1])<=0})))return Ut(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",Z.InvalidArgument);var u=!t||!1!==t.includeLowers,l=t&&!0===t.includeUppers;var s,f=o;function d(e,t){return f(e[0],t[0])}try{s=e.reduce((function(e,t){for(var n=0,o=e.length;n<o;++n){var i=e[n];if(r(t[0],i[1])<0&&r(t[1],i[0])>0){i[0]=a(i[0],t[0]),i[1]=c(i[1],t[1]);break}}return n===o&&e.push(t),e}),[]),s.sort(d)}catch(y){return Ut(this,ht)}var p=0,h=l?function(e){return o(e,s[p][1])>0}:function(e){return o(e,s[p][1])>=0},v=u?function(e){return i(e,s[p][0])>0}:function(e){return i(e,s[p][0])>=0};var b=h,m=new this.Collection(this,(function(){return Vt(s[0][0],s[s.length-1][1],!u,!l)}));return m._ondirectionchange=function(e){"next"===e?(b=h,f=o):(b=v,f=i),s.sort(d)},m._addAlgorithm((function(e,t,r){for(var i=e.key;b(i);)if(++p===s.length)return t(r),!1;return!!function(e){return!h(e)&&!v(e)}(i)||(0===n._cmp(i,s[p][1])||0===n._cmp(i,s[p][0])||t((function(){f===o?e.continue(s[p][0]):e.continue(s[p][1])})),!1)})),m},e.prototype.startsWithAnyOf=function(){var e=H.apply(B,arguments);return e.every((function(e){return"string"===typeof e}))?0===e.length?Wt(this):this.inAnyRange(e.map((function(e){return[e,e+dt]}))):Ut(this,"startsWithAnyOf() only works with strings")},e}();function Yt(e){return Ge((function(t){return Qt(t),e(t.target.error),!1}))}function Qt(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}var Xt="storagemutated",Zt="x-storagemutated-1",Jt=Tt(null,Xt),en=function(){function e(){}return e.prototype._lock=function(){return O(!Te.global),++this._reculock,1!==this._reculock||Te.global||(Te.lockOwnerFor=this),this},e.prototype._unlock=function(){if(O(!Te.global),0===--this._reculock)for(Te.global||(Te.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var e=this._blockedFuncs.shift();try{at(e[1],e[0])}catch(t){}}return this},e.prototype._locked=function(){return this._reculock&&Te.lockOwnerFor!==this},e.prototype.create=function(e){var t=this;if(!this.mode)return this;var n=this.db.idbdb,r=this.db._state.dbOpenError;if(O(!this.idbtrans),!e&&!n)switch(r&&r.name){case"DatabaseClosedError":throw new Z.DatabaseClosed(r);case"MissingAPIError":throw new Z.MissingAPI(r.message,r);default:throw new Z.OpenFailed(r)}if(!this.active)throw new Z.TransactionInactive;return O(null===this._completion._state),(e=this.idbtrans=e||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):n.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=Ge((function(n){Qt(n),t._reject(e.error)})),e.onabort=Ge((function(n){Qt(n),t.active&&t._reject(new Z.Abort(e.error)),t.active=!1,t.on("abort").fire(n)})),e.oncomplete=Ge((function(){t.active=!1,t._resolve(),"mutatedParts"in e&&Jt.storagemutated.fire(e.mutatedParts)})),this},e.prototype._promise=function(e,t,n){var r=this;if("readwrite"===e&&"readwrite"!==this.mode)return lt(new Z.ReadOnly("Transaction is readonly"));if(!this.active)return lt(new Z.TransactionInactive);if(this._locked())return new _e((function(o,i){r._blockedFuncs.push([function(){r._promise(e,t,n).then(o,i)},Te])}));if(n)return Ze((function(){var e=new _e((function(e,n){r._lock();var o=t(e,n,r);o&&o.then&&o.then(e,n)}));return e.finally((function(){return r._unlock()})),e._lib=!0,e}));var o=new _e((function(e,n){var o=t(e,n,r);o&&o.then&&o.then(e,n)}));return o._lib=!0,o},e.prototype._root=function(){return this.parent?this.parent._root():this},e.prototype.waitFor=function(e){var t=this._root(),n=_e.resolve(e);if(t._waitingFor)t._waitingFor=t._waitingFor.then((function(){return n}));else{t._waitingFor=n,t._waitingQueue=[];var r=t.idbtrans.objectStore(t.storeNames[0]);!function e(){for(++t._spinCount;t._waitingQueue.length;)t._waitingQueue.shift()();t._waitingFor&&(r.get(-1/0).onsuccess=e)}()}var o=t._waitingFor;return new _e((function(e,r){n.then((function(n){return t._waitingQueue.push(Ge(e.bind(null,n)))}),(function(e){return t._waitingQueue.push(Ge(r.bind(null,e)))})).finally((function(){t._waitingFor===o&&(t._waitingFor=null)}))}))},e.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new Z.Abort))},e.prototype.table=function(e){var t=this._memoizedTables||(this._memoizedTables={});if(d(t,e))return t[e];var n=this.schema[e];if(!n)throw new Z.NotFound("Table "+e+" not part of transaction");var r=new this.db.Table(e,n,this);return r.core=this.db.core.table(e),t[e]=r,r},e}();function tn(e,t,n,r,o,i,a){return{name:e,keyPath:t,unique:n,multi:r,auto:o,compound:i,src:(n&&!a?"&":"")+(r?"*":"")+(o?"++":"")+nn(t)}}function nn(e){return"string"===typeof e?e:e?"["+[].join.call(e,"+")+"]":""}function rn(e,t,n){return{name:e,primKey:t,indexes:n,mappedClass:null,idxByName:(r=n,o=function(e){return[e.name,e]},r.reduce((function(e,t,n){var r=o(t,n);return r&&(e[r[0]]=r[1]),e}),{}))};var r,o}var on=function(e){try{return e.only([[]]),on=function(){return[[]]},[[]]}catch(t){return on=function(){return dt},dt}};function an(e){return null==e?function(){}:"string"===typeof e?function(e){var t=e.split(".");return 1===t.length?function(t){return t[e]}:function(t){return k(t,e)}}(e):function(t){return k(t,e)}}function cn(e){return[].slice.call(e)}var un=0;function ln(e){return null==e?":id":"string"===typeof e?e:"[".concat(e.join("+"),"]")}function sn(e,t,n){function r(e){if(3===e.type)return null;if(4===e.type)throw new Error("Cannot convert never type to IDBKeyRange");var n=e.lower,r=e.upper,o=e.lowerOpen,i=e.upperOpen;return void 0===n?void 0===r?null:t.upperBound(r,!!i):void 0===r?t.lowerBound(n,!!o):t.bound(n,r,!!o,!!i)}var o=function(e,t){var n=cn(e.objectStoreNames);return{schema:{name:e.name,tables:n.map((function(e){return t.objectStore(e)})).map((function(e){var t=e.keyPath,n=e.autoIncrement,r=u(t),o=null==t,i={},a={name:e.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:o,compound:r,keyPath:t,autoIncrement:n,unique:!0,extractKey:an(t)},indexes:cn(e.indexNames).map((function(t){return e.index(t)})).map((function(e){var t=e.name,n=e.unique,r=e.multiEntry,o=e.keyPath,a={name:t,compound:u(o),keyPath:o,unique:n,multiEntry:r,extractKey:an(o)};return i[ln(o)]=a,a})),getIndexByKeyPath:function(e){return i[ln(e)]}};return i[":id"]=a.primaryKey,null!=t&&(i[ln(t)]=a.primaryKey),a}))},hasGetAll:n.length>0&&"getAll"in t.objectStore(n[0])&&!("undefined"!==typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}(e,n),i=o.schema,a=o.hasGetAll,c=i.tables.map((function(e){return function(e){var t=e.name;return{name:t,schema:e,mutate:function(e){var n=e.trans,o=e.type,i=e.keys,a=e.values,c=e.range;return new Promise((function(e,u){e=Ge(e);var l=n.objectStore(t),s=null==l.keyPath,f="put"===o||"add"===o;if(!f&&"delete"!==o&&"deleteRange"!==o)throw new Error("Invalid operation type: "+o);var d,p=(i||a||{length:1}).length;if(i&&a&&i.length!==a.length)throw new Error("Given keys array must have same length as given values array.");if(0===p)return e({numFailures:0,failures:{},results:[],lastResult:void 0});var h=[],v=[],b=0,m=function(e){++b,Qt(e)};if("deleteRange"===o){if(4===c.type)return e({numFailures:b,failures:v,results:[],lastResult:void 0});3===c.type?h.push(d=l.clear()):h.push(d=l.delete(r(c)))}else{var y=f?s?[a,i]:[a,null]:[i,null],g=y[0],w=y[1];if(f)for(var x=0;x<p;++x)h.push(d=w&&void 0!==w[x]?l[o](g[x],w[x]):l[o](g[x])),d.onerror=m;else for(x=0;x<p;++x)h.push(d=l[o](g[x])),d.onerror=m}var O=function(t){var n=t.target.result;h.forEach((function(e,t){return null!=e.error&&(v[t]=e.error)})),e({numFailures:b,failures:v,results:"delete"===o?i:h.map((function(e){return e.result})),lastResult:n})};d.onerror=function(e){m(e),O(e)},d.onsuccess=O}))},getMany:function(e){var n=e.trans,r=e.keys;return new Promise((function(e,o){e=Ge(e);for(var i,a=n.objectStore(t),c=r.length,u=new Array(c),l=0,s=0,f=function(t){var n=t.target;u[n._pos]=n.result,++s===l&&e(u)},d=Yt(o),p=0;p<c;++p)null!=r[p]&&((i=a.get(r[p]))._pos=p,i.onsuccess=f,i.onerror=d,++l);0===l&&e(u)}))},get:function(e){var n=e.trans,r=e.key;return new Promise((function(e,o){e=Ge(e);var i=n.objectStore(t).get(r);i.onsuccess=function(t){return e(t.target.result)},i.onerror=Yt(o)}))},query:function(e){return function(n){return new Promise((function(o,i){o=Ge(o);var a=n.trans,c=n.values,u=n.limit,l=n.query,s=u===1/0?void 0:u,f=l.index,d=l.range,p=a.objectStore(t),h=f.isPrimaryKey?p:p.index(f.name),v=r(d);if(0===u)return o({result:[]});if(e){var b=c?h.getAll(v,s):h.getAllKeys(v,s);b.onsuccess=function(e){return o({result:e.target.result})},b.onerror=Yt(i)}else{var m=0,y=c||!("openKeyCursor"in h)?h.openCursor(v):h.openKeyCursor(v),g=[];y.onsuccess=function(e){var t=y.result;return t?(g.push(c?t.value:t.primaryKey),++m===u?o({result:g}):void t.continue()):o({result:g})},y.onerror=Yt(i)}}))}}(a),openCursor:function(e){var n=e.trans,o=e.values,i=e.query,a=e.reverse,c=e.unique;return new Promise((function(e,u){e=Ge(e);var l=i.index,s=i.range,f=n.objectStore(t),d=l.isPrimaryKey?f:f.index(l.name),p=a?c?"prevunique":"prev":c?"nextunique":"next",h=o||!("openKeyCursor"in d)?d.openCursor(r(s),p):d.openKeyCursor(r(s),p);h.onerror=Yt(u),h.onsuccess=Ge((function(t){var r=h.result;if(r){r.___id=++un,r.done=!1;var o=r.continue.bind(r),i=r.continuePrimaryKey;i&&(i=i.bind(r));var a=r.advance.bind(r),c=function(){throw new Error("Cursor not stopped")};r.trans=n,r.stop=r.continue=r.continuePrimaryKey=r.advance=function(){throw new Error("Cursor not started")},r.fail=Ge(u),r.next=function(){var e=this,t=1;return this.start((function(){return t--?e.continue():e.stop()})).then((function(){return e}))},r.start=function(e){var t=new Promise((function(e,t){e=Ge(e),h.onerror=Yt(t),r.fail=t,r.stop=function(t){r.stop=r.continue=r.continuePrimaryKey=r.advance=c,e(t)}})),n=function(){if(h.result)try{e()}catch(t){r.fail(t)}else r.done=!0,r.start=function(){throw new Error("Cursor behind last entry")},r.stop()};return h.onsuccess=Ge((function(e){h.onsuccess=n,n()})),r.continue=o,r.continuePrimaryKey=i,r.advance=a,n(),t},e(r)}else e(null)}),u)}))},count:function(e){var n=e.query,o=e.trans,i=n.index,a=n.range;return new Promise((function(e,n){var c=o.objectStore(t),u=i.isPrimaryKey?c:c.index(i.name),l=r(a),s=l?u.count(l):u.count();s.onsuccess=Ge((function(t){return e(t.target.result)})),s.onerror=Yt(n)}))}}}(e)})),l={};return c.forEach((function(e){return l[e.name]=e})),{stack:"dbcore",transaction:e.transaction.bind(e),table:function(e){if(!l[e])throw new Error("Table '".concat(e,"' not found"));return l[e]},MIN_KEY:-1/0,MAX_KEY:on(t),schema:i}}function fn(e,t,n,r){var i=n.IDBKeyRange;n.indexedDB;var a=function(e,t){return t.reduce((function(e,t){var n=t.create;return o(o({},e),n(e))}),e)}(sn(t,i,r),e.dbcore);return{dbcore:a}}function dn(e,t){var n=t.db,r=fn(e._middlewares,n,e._deps,t);e.core=r.dbcore,e.tables.forEach((function(t){var n=t.name;e.core.schema.tables.some((function(e){return e.name===n}))&&(t.core=e.core.table(n),e[n]instanceof e.Table&&(e[n].core=t.core))}))}function pn(e,t,n,r){n.forEach((function(n){var o=r[n];t.forEach((function(t){var r=y(t,n);(!r||"value"in r&&void 0===r.value)&&(t===e.Transaction.prototype||t instanceof e.Transaction?v(t,n,{get:function(){return this.table(n)},set:function(e){h(this,n,{value:e,writable:!0,configurable:!0,enumerable:!0})}}):t[n]=new e.Table(n,o))}))}))}function hn(e,t){t.forEach((function(t){for(var n in t)t[n]instanceof e.Table&&delete t[n]}))}function vn(e,t){return e._cfg.version-t._cfg.version}function bn(e,t,n,r){var o=e._dbSchema;n.objectStoreNames.contains("$meta")&&!o.$meta&&(o.$meta=rn("$meta",jn("")[0],[]),e._storeNames.push("$meta"));var i=e._createTransaction("readwrite",e._storeNames,o);i.create(n),i._completion.catch(r);var a=i._reject.bind(i),u=Te.transless||Te;Ze((function(){if(Te.trans=i,Te.transless=u,0!==t)return dn(e,n),function(e,t,n){return t.storeNames.includes("$meta")?t.table("$meta").get("version").then((function(e){return null!=e?e:n})):_e.resolve(n)}(0,i,t).then((function(t){return function(e,t,n,r){var o=[],i=e._versions,a=e._dbSchema=xn(e,e.idbdb,r),u=i.filter((function(e){return e._cfg.version>=t}));if(0===u.length)return _e.resolve();function l(){return o.length?_e.resolve(o.shift()(n.idbtrans)).then(l):_e.resolve()}return u.forEach((function(i){o.push((function(){var o=a,u=i._cfg.dbschema;On(e,o,r),On(e,u,r),a=e._dbSchema=u;var l=mn(o,u);l.add.forEach((function(e){yn(r,e[0],e[1].primKey,e[1].indexes)})),l.change.forEach((function(e){if(e.recreate)throw new Z.Upgrade("Not yet support for changing primary key");var t=r.objectStore(e.name);e.add.forEach((function(e){return wn(t,e)})),e.change.forEach((function(e){t.deleteIndex(e.name),wn(t,e)})),e.del.forEach((function(e){return t.deleteIndex(e)}))}));var s=i._cfg.contentUpgrade;if(s&&i._cfg.version>t){dn(e,r),n._memoizedTables={};var f=E(u);l.del.forEach((function(e){f[e]=o[e]})),hn(e,[e.Transaction.prototype]),pn(e,[e.Transaction.prototype],c(f),f),n.schema=f;var d,p=U(s);p&&Je();var h=_e.follow((function(){if((d=s(n))&&p){var e=et.bind(null,null);d.then(e,e)}}));return d&&"function"===typeof d.then?_e.resolve(d):h.then((function(){return d}))}})),o.push((function(t){!function(e,t){[].slice.call(t.db.objectStoreNames).forEach((function(n){return null==e[n]&&t.db.deleteObjectStore(n)}))}(i._cfg.dbschema,t),hn(e,[e.Transaction.prototype]),pn(e,[e.Transaction.prototype],e._storeNames,e._dbSchema),n.schema=e._dbSchema})),o.push((function(t){e.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(e.idbdb.version/10)===i._cfg.version?(e.idbdb.deleteObjectStore("$meta"),delete e._dbSchema.$meta,e._storeNames=e._storeNames.filter((function(e){return"$meta"!==e}))):t.objectStore("$meta").put(i._cfg.version,"version"))}))})),l().then((function(){gn(a,r)}))}(e,t,i,n)})).catch(a);c(o).forEach((function(e){yn(n,e,o[e].primKey,o[e].indexes)})),dn(e,n),_e.follow((function(){return e.on.populate.fire(i)})).catch(a)}))}function mn(e,t){var n,r={del:[],add:[],change:[]};for(n in e)t[n]||r.del.push(n);for(n in t){var o=e[n],i=t[n];if(o){var a={name:n,def:i,recreate:!1,del:[],add:[],change:[]};if(""+(o.primKey.keyPath||"")!==""+(i.primKey.keyPath||"")||o.primKey.auto!==i.primKey.auto)a.recreate=!0,r.change.push(a);else{var c=o.idxByName,u=i.idxByName,l=void 0;for(l in c)u[l]||a.del.push(l);for(l in u){var s=c[l],f=u[l];s?s.src!==f.src&&a.change.push(f):a.add.push(f)}(a.del.length>0||a.add.length>0||a.change.length>0)&&r.change.push(a)}}else r.add.push([n,i])}return r}function yn(e,t,n,r){var o=e.db.createObjectStore(t,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});return r.forEach((function(e){return wn(o,e)})),o}function gn(e,t){c(e).forEach((function(n){t.db.objectStoreNames.contains(n)||(se&&console.debug("Dexie: Creating missing table",n),yn(t,n,e[n].primKey,e[n].indexes))}))}function wn(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function xn(e,t,n){var r={};return w(t.objectStoreNames,0).forEach((function(e){for(var t=n.objectStore(e),o=t.keyPath,i=tn(nn(o),o||"",!0,!1,!!t.autoIncrement,o&&"string"!==typeof o,!0),a=[],c=0;c<t.indexNames.length;++c){var u=t.index(t.indexNames[c]);o=u.keyPath;var l=tn(u.name,o,!!u.unique,!!u.multiEntry,!1,o&&"string"!==typeof o,!1);a.push(l)}r[e]=rn(e,i,a)})),r}function On(e,t,n){for(var r=n.db.objectStoreNames,o=0;o<r.length;++o){var i=r[o],c=n.objectStore(i);e._hasGetAll="getAll"in c;for(var u=0;u<c.indexNames.length;++u){var l=c.indexNames[u],s=c.index(l).keyPath,f="string"===typeof s?s:"["+w(s).join("+")+"]";if(t[i]){var d=t[i].idxByName[f];d&&(d.name=l,delete t[i].idxByName[f],t[i].idxByName[l]=d)}}}"undefined"!==typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&a.WorkerGlobalScope&&a instanceof a.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(e._hasGetAll=!1)}function jn(e){return e.split(",").map((function(e,t){var n=(e=e.trim()).replace(/([&*]|\+\+)/g,""),r=/^\[/.test(n)?n.match(/^\[(.*)\]$/)[1].split("+"):n;return tn(n,r||null,/\&/.test(e),/\*/.test(e),/\+\+/.test(e),u(r),0===t)}))}var kn,Sn=function(){function e(){}return e.prototype._parseStoresSpec=function(e,t){c(e).forEach((function(n){if(null!==e[n]){var r=jn(e[n]),o=r.shift();if(o.unique=!0,o.multi)throw new Z.Schema("Primary key cannot be multi-valued");r.forEach((function(e){if(e.auto)throw new Z.Schema("Only primary key can be marked as autoIncrement (++)");if(!e.keyPath)throw new Z.Schema("Index must have a name and cannot be an empty string")})),t[n]=rn(n,o,r)}}))},e.prototype.stores=function(e){var t=this.db;this._cfg.storesSource=this._cfg.storesSource?l(this._cfg.storesSource,e):e;var n=t._versions,r={},o={};return n.forEach((function(e){l(r,e._cfg.storesSource),o=e._cfg.dbschema={},e._parseStoresSpec(r,o)})),t._dbSchema=o,hn(t,[t._allTables,t,t.Transaction.prototype]),pn(t,[t._allTables,t,t.Transaction.prototype,this._cfg.tables],c(o),o),t._storeNames=c(o),this},e.prototype.upgrade=function(e){return this._cfg.contentUpgrade=le(this._cfg.contentUpgrade||te,e),this},e}();function En(e,t){var n=e._dbNamesDB;return n||(n=e._dbNamesDB=new hr(mt,{addons:[],indexedDB:e,IDBKeyRange:t})).version(1).stores({dbnames:"name"}),n.table("dbnames")}function Cn(e){return e&&"function"===typeof e.databases}function Tn(e){return Ze((function(){return Te.letThrough=!0,e()}))}function In(){var e;return!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise((function(t){var n=function(){return indexedDB.databases().finally(t)};e=setInterval(n,100),n()})).finally((function(){return clearInterval(e)})):Promise.resolve()}function Pn(e){return!("from"in e)}var Ln=function e(t,n){if(!this){var r=new e;return t&&"d"in t&&l(r,t),r}l(this,arguments.length?{d:1,from:t,to:arguments.length>1?n:t}:{d:0})};function _n(e,t,n){var r=kt(t,n);if(!isNaN(r)){if(r>0)throw RangeError();if(Pn(e))return l(e,{from:t,to:n,d:1});var o=e.l,i=e.r;if(kt(n,e.from)<0)return o?_n(o,t,n):e.l={from:t,to:n,d:1,l:null,r:null},Mn(e);if(kt(t,e.to)>0)return i?_n(i,t,n):e.r={from:t,to:n,d:1,l:null,r:null},Mn(e);kt(t,e.from)<0&&(e.from=t,e.l=null,e.d=i?i.d+1:1),kt(n,e.to)>0&&(e.to=n,e.r=null,e.d=e.l?e.l.d+1:1);var a=!e.r;o&&!e.l&&Rn(e,o),i&&a&&Rn(e,i)}}function Rn(e,t){Pn(t)||function e(t,n){var r=n.from,o=n.to,i=n.l,a=n.r;_n(t,r,o),i&&e(t,i),a&&e(t,a)}(e,t)}function Nn(e){var t=Pn(e)?null:{s:0,n:e};return{next:function(e){for(var n=arguments.length>0;t;)switch(t.s){case 0:if(t.s=1,n)for(;t.n.l&&kt(e,t.n.from)<0;)t={up:t,n:t.n.l,s:1};else for(;t.n.l;)t={up:t,n:t.n.l,s:1};case 1:if(t.s=2,!n||kt(e,t.n.to)<=0)return{value:t.n,done:!1};case 2:if(t.n.r){t.s=3,t={up:t,n:t.n.r,s:0};continue}case 3:t=t.up}return{done:!0}}}}function Mn(e){var t,n,r=((null===(t=e.r)||void 0===t?void 0:t.d)||0)-((null===(n=e.l)||void 0===n?void 0:n.d)||0),i=r>1?"r":r<-1?"l":"";if(i){var a="r"===i?"l":"r",c=o({},e),u=e[i];e.from=u.from,e.to=u.to,e[i]=u[i],c[i]=u[a],e[a]=c,c.d=An(c)}e.d=An(e)}function An(e){var t=e.r,n=e.l;return(t?n?Math.max(t.d,n.d):t.d:n?n.d:0)+1}function Dn(e,t){return c(t).forEach((function(n){e[n]?Rn(e[n],t[n]):e[n]=L(t[n])})),e}function Fn(e,t){return e.all||t.all||Object.keys(e).some((function(n){return t[n]&&function(e,t){var n=Nn(t),r=n.next();if(r.done)return!1;for(var o=r.value,i=Nn(e),a=i.next(o.from),c=a.value;!r.done&&!a.done;){if(kt(c.from,o.to)<=0&&kt(c.to,o.from)>=0)return!0;kt(o.from,c.from)<0?o=(r=n.next(c.from)).value:c=(a=i.next(o.from)).value}return!1}(t[n],e[n])}))}p(Ln.prototype,(kn={add:function(e){return Rn(this,e),this},addKey:function(e){return _n(this,e,e),this},addKeys:function(e){var t=this;return e.forEach((function(e){return _n(t,e,e)})),this},hasKey:function(e){var t=Nn(this).next(e).value;return t&&kt(t.from,e)<=0&&kt(t.to,e)>=0}},kn[D]=function(){return Nn(this)},kn));var zn={},Bn={},Hn=!1;function Un(e,t){Dn(Bn,e),Hn||(Hn=!0,setTimeout((function(){Hn=!1;var e=Bn;Bn={},Wn(e,!1)}),0))}function Wn(e,t){void 0===t&&(t=!1);var n=new Set;if(e.all)for(var r=0,o=Object.values(zn);r<o.length;r++){qn(c=o[r],e,n,t)}else for(var i in e){var a=/^idb\:\/\/(.*)\/(.*)\//.exec(i);if(a){var c,u=a[1],l=a[2];(c=zn["idb://".concat(u,"/").concat(l)])&&qn(c,e,n,t)}}n.forEach((function(e){return e()}))}function qn(e,t,n,r){for(var o=[],i=0,a=Object.entries(e.queries.query);i<a.length;i++){for(var c=a[i],u=c[0],l=[],s=0,f=c[1];s<f.length;s++){var d=f[s];Fn(t,d.obsSet)?d.subscribers.forEach((function(e){return n.add(e)})):r&&l.push(d)}r&&o.push([u,l])}if(r)for(var p=0,h=o;p<h.length;p++){var v=h[p];u=v[0],l=v[1];e.queries.query[u]=l}}function Gn(e){var t=e._state,n=e._deps.indexedDB;if(t.isBeingOpened||e.idbdb)return t.dbReadyPromise.then((function(){return t.dbOpenError?lt(t.dbOpenError):e}));t.isBeingOpened=!0,t.dbOpenError=null,t.openComplete=!1;var r=t.openCanceller,o=Math.round(10*e.verno),i=!1;function a(){if(t.openCanceller!==r)throw new Z.DatabaseClosed("db.open() was cancelled")}var u=t.dbReadyResolve,l=null,s=!1;return _e.race([r,("undefined"===typeof navigator?_e.resolve():In()).then((function r(){return new _e((function(u,f){if(a(),!n)throw new Z.MissingAPI;var d=e.name,p=t.autoSchema||!o?n.open(d):n.open(d,o);if(!p)throw new Z.MissingAPI;p.onerror=Yt(f),p.onblocked=Ge(e._fireOnBlocked),p.onupgradeneeded=Ge((function(r){if(l=p.transaction,t.autoSchema&&!e._options.allowEmptyDB){p.onerror=Qt,l.abort(),p.result.close();var o=n.deleteDatabase(d);o.onsuccess=o.onerror=Ge((function(){f(new Z.NoSuchDatabase("Database ".concat(d," doesnt exist")))}))}else{l.onerror=Yt(f);var a=r.oldVersion>Math.pow(2,62)?0:r.oldVersion;s=a<1,e.idbdb=p.result,i&&function(e,t){gn(e._dbSchema,t),t.db.version%10!==0||t.objectStoreNames.contains("$meta")||t.db.createObjectStore("$meta").add(Math.ceil(t.db.version/10-1),"version");var n=xn(0,e.idbdb,t);On(e,e._dbSchema,t);for(var r=function(e){if(e.change.length||e.recreate)return console.warn("Unable to patch indexes of table ".concat(e.name," because it has changes on the type of index or primary key.")),{value:void 0};var n=t.objectStore(e.name);e.add.forEach((function(t){se&&console.debug("Dexie upgrade patch: Creating missing index ".concat(e.name,".").concat(t.src)),wn(n,t)}))},o=0,i=mn(n,e._dbSchema).change;o<i.length;o++){var a=r(i[o]);if("object"===typeof a)return a.value}}(e,l),bn(e,a/10,l,f)}}),f),p.onsuccess=Ge((function(){l=null;var n,a=e.idbdb=p.result,f=w(a.objectStoreNames);if(f.length>0)try{var h=a.transaction(1===(n=f).length?n[0]:n,"readonly");if(t.autoSchema)!function(e,t,n){e.verno=t.version/10;var r=e._dbSchema=xn(0,t,n);e._storeNames=w(t.objectStoreNames,0),pn(e,[e._allTables],c(r),r)}(e,a,h);else if(On(e,e._dbSchema,h),!function(e,t){var n=mn(xn(0,e.idbdb,t),e._dbSchema);return!(n.add.length||n.change.some((function(e){return e.add.length||e.change.length})))}(e,h)&&!i)return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."),a.close(),o=a.version+1,i=!0,u(r());dn(e,h)}catch(v){}bt.push(e),a.onversionchange=Ge((function(n){t.vcFired=!0,e.on("versionchange").fire(n)})),a.onclose=Ge((function(t){e.on("close").fire(t)})),s&&function(e,t){var n=e.indexedDB,r=e.IDBKeyRange;!Cn(n)&&t!==mt&&En(n,r).put({name:t}).catch(te)}(e._deps,d),u()}),f)})).catch((function(e){switch(null===e||void 0===e?void 0:e.name){case"UnknownError":if(t.PR1398_maxLoop>0)return t.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),r();break;case"VersionError":if(o>0)return o=0,r()}return _e.reject(e)}))}))]).then((function(){return a(),t.onReadyBeingFired=[],_e.resolve(Tn((function(){return e.on.ready.fire(e.vip)}))).then((function n(){if(t.onReadyBeingFired.length>0){var r=t.onReadyBeingFired.reduce(le,te);return t.onReadyBeingFired=[],_e.resolve(Tn((function(){return r(e.vip)}))).then(n)}}))})).finally((function(){t.openCanceller===r&&(t.onReadyBeingFired=null,t.isBeingOpened=!1)})).catch((function(n){t.dbOpenError=n;try{l&&l.abort()}catch(kn){}return r===t.openCanceller&&e._close(),lt(n)})).finally((function(){t.openComplete=!0,u()})).then((function(){if(s){var t={};e.tables.forEach((function(n){n.schema.indexes.forEach((function(r){r.name&&(t["idb://".concat(e.name,"/").concat(n.name,"/").concat(r.name)]=new Ln(-1/0,[[[]]]))})),t["idb://".concat(e.name,"/").concat(n.name,"/")]=t["idb://".concat(e.name,"/").concat(n.name,"/:dels")]=new Ln(-1/0,[[[]]])})),Jt(Xt).fire(t),Wn(t,!0)}return e}))}function Vn(e){var t=function(t){return e.next(t)},n=o(t),r=o((function(t){return e.throw(t)}));function o(e){return function(t){var o=e(t),i=o.value;return o.done?i:i&&"function"===typeof i.then?i.then(n,r):u(i)?Promise.all(i).then(n,r):n(i)}}return o(t)()}function Kn(e,t,n){var r=arguments.length;if(r<2)throw new Z.InvalidArgument("Too few arguments");for(var o=new Array(r-1);--r;)o[r-1]=arguments[r];return n=o.pop(),[e,T(o),n]}function $n(e,t,n,r,o){return _e.resolve().then((function(){var i=Te.transless||Te,a=e._createTransaction(t,n,e._dbSchema,r);a.explicit=!0;var c={trans:a,transless:i};if(r)a.idbtrans=r.idbtrans;else try{a.create(),a.idbtrans._explicit=!0,e._state.PR1398_maxLoop=3}catch(f){return f.name===Q.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e.close({disableAutoOpen:!1}),e.open().then((function(){return $n(e,t,n,null,o)}))):lt(f)}var u,l=U(o);l&&Je();var s=_e.follow((function(){if(u=o.call(a,a))if(l){var e=et.bind(null,null);u.then(e,e)}else"function"===typeof u.next&&"function"===typeof u.throw&&(u=Vn(u))}),c);return(u&&"function"===typeof u.then?_e.resolve(u).then((function(e){return a.active?e:lt(new Z.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))})):s.then((function(){return u}))).then((function(e){return r&&a._resolve(),a._completion.then((function(){return e}))})).catch((function(e){return a._reject(e),lt(e)}))}))}function Yn(e,t,n){for(var r=u(e)?e.slice():[e],o=0;o<n;++o)r.push(t);return r}var Qn={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(e){return o(o({},e),{table:function(t){var n=e.table(t),r=n.schema,i={},a=[];function c(e,t,n){var r=ln(e),u=i[r]=i[r]||[],l=null==e?0:"string"===typeof e?1:e.length,s=t>0,f=o(o({},n),{name:s?"".concat(r,"(virtual-from:").concat(n.name,")"):n.name,lowLevelIndex:n,isVirtual:s,keyTail:t,keyLength:l,extractKey:an(e),unique:!s&&n.unique});(u.push(f),f.isPrimaryKey||a.push(f),l>1)&&c(2===l?e[0]:e.slice(0,l-1),t+1,n);return u.sort((function(e,t){return e.keyTail-t.keyTail})),f}var u=c(r.primaryKey.keyPath,0,r.primaryKey);i[":id"]=[u];for(var l=0,s=r.indexes;l<s.length;l++){var f=s[l];c(f.keyPath,0,f)}function d(t){var n,r,i=t.query.index;return i.isVirtual?o(o({},t),{query:{index:i.lowLevelIndex,range:(n=t.query.range,r=i.keyTail,{type:1===n.type?2:n.type,lower:Yn(n.lower,n.lowerOpen?e.MAX_KEY:e.MIN_KEY,r),lowerOpen:!0,upper:Yn(n.upper,n.upperOpen?e.MIN_KEY:e.MAX_KEY,r),upperOpen:!0})}}):t}var p=o(o({},n),{schema:o(o({},r),{primaryKey:u,indexes:a,getIndexByKeyPath:function(e){var t=i[ln(e)];return t&&t[0]}}),count:function(e){return n.count(d(e))},query:function(e){return n.query(d(e))},openCursor:function(t){var r=t.query.index,o=r.keyTail,i=r.isVirtual,a=r.keyLength;if(!i)return n.openCursor(t);return n.openCursor(d(t)).then((function(n){return n&&function(n){var r=Object.create(n,{continue:{value:function(r){null!=r?n.continue(Yn(r,t.reverse?e.MAX_KEY:e.MIN_KEY,o)):t.unique?n.continue(n.key.slice(0,a).concat(t.reverse?e.MIN_KEY:e.MAX_KEY,o)):n.continue()}},continuePrimaryKey:{value:function(t,r){n.continuePrimaryKey(Yn(t,e.MAX_KEY,o),r)}},primaryKey:{get:function(){return n.primaryKey}},key:{get:function(){var e=n.key;return 1===a?e[0]:e.slice(0,a)}},value:{get:function(){return n.value}}});return r}(n)}))}});return p}})}};function Xn(e,t,n,r){return n=n||{},r=r||"",c(e).forEach((function(o){if(d(t,o)){var i=e[o],a=t[o];if("object"===typeof i&&"object"===typeof a&&i&&a){var c=A(i);c!==A(a)?n[r+o]=t[o]:"Object"===c?Xn(i,a,n,r+o+"."):i!==a&&(n[r+o]=t[o])}else i!==a&&(n[r+o]=t[o])}else n[r+o]=void 0})),c(t).forEach((function(o){d(e,o)||(n[r+o]=t[o])})),n}function Zn(e,t){return"delete"===t.type?t.keys:t.keys||t.values.map(e.extractKey)}var Jn={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(e){return o(o({},e),{table:function(t){var n=e.table(t),r=n.schema.primaryKey,a=o(o({},n),{mutate:function(e){var a=Te.trans,c=a.table(t).hook,u=c.deleting,l=c.creating,s=c.updating;switch(e.type){case"add":if(l.fire===te)break;return a._promise("readwrite",(function(){return f(e)}),!0);case"put":if(l.fire===te&&s.fire===te)break;return a._promise("readwrite",(function(){return f(e)}),!0);case"delete":if(u.fire===te)break;return a._promise("readwrite",(function(){return f(e)}),!0);case"deleteRange":if(u.fire===te)break;return a._promise("readwrite",(function(){return function(e){return p(e.trans,e.range,1e4)}(e)}),!0)}return n.mutate(e);function f(e){var t=Te.trans,a=e.keys||Zn(r,e);if(!a)throw new Error("Keys missing");return"delete"!==(e="add"===e.type||"put"===e.type?o(o({},e),{keys:a}):o({},e)).type&&(e.values=i([],e.values,!0)),e.keys&&(e.keys=i([],e.keys,!0)),function(e,t,n){return"add"===t.type?Promise.resolve([]):e.getMany({trans:t.trans,keys:n,cache:"immutable"})}(n,e,a).then((function(o){var i=a.map((function(n,i){var a=o[i],c={onerror:null,onsuccess:null};if("delete"===e.type)u.fire.call(c,n,a,t);else if("add"===e.type||void 0===a){var f=l.fire.call(c,n,e.values[i],t);null==n&&null!=f&&(n=f,e.keys[i]=n,r.outbound||S(e.values[i],r.keyPath,n))}else{var p=Xn(a,e.values[i]),h=s.fire.call(c,p,n,a,t);if(h){var v=e.values[i];Object.keys(h).forEach((function(e){d(v,e)?v[e]=h[e]:S(v,e,h[e])}))}}return c}));return n.mutate(e).then((function(t){for(var n=t.failures,r=t.results,c=t.numFailures,u=t.lastResult,l=0;l<a.length;++l){var s=r?r[l]:a[l],f=i[l];null==s?f.onerror&&f.onerror(n[l]):f.onsuccess&&f.onsuccess("put"===e.type&&o[l]?e.values[l]:s)}return{failures:n,results:r,numFailures:c,lastResult:u}})).catch((function(e){return i.forEach((function(t){return t.onerror&&t.onerror(e)})),Promise.reject(e)}))}))}function p(e,t,i){return n.query({trans:e,values:!1,query:{index:r,range:t},limit:i}).then((function(n){var r=n.result;return f({type:"delete",keys:r,trans:e}).then((function(n){return n.numFailures>0?Promise.reject(n.failures[0]):r.length<i?{failures:[],numFailures:0,lastResult:void 0}:p(e,o(o({},t),{lower:r[r.length-1],lowerOpen:!0}),i)}))}))}}});return a}})}};function er(e,t,n){try{if(!t)return null;if(t.keys.length<e.length)return null;for(var r=[],o=0,i=0;o<t.keys.length&&i<e.length;++o)0===kt(t.keys[o],e[i])&&(r.push(n?R(t.values[o]):t.values[o]),++i);return r.length===e.length?r:null}catch(kn){return null}}var tr={stack:"dbcore",level:-1,create:function(e){return{table:function(t){var n=e.table(t);return o(o({},n),{getMany:function(e){if(!e.cache)return n.getMany(e);var t=er(e.keys,e.trans._cache,"clone"===e.cache);return t?_e.resolve(t):n.getMany(e).then((function(t){return e.trans._cache={keys:e.keys,values:"clone"===e.cache?R(t):t},t}))},mutate:function(e){return"add"!==e.type&&(e.trans._cache=null),n.mutate(e)}})}}}};function nr(e,t){return"readonly"===e.trans.mode&&!!e.subscr&&!e.trans.explicit&&"disabled"!==e.trans.db._options.cache&&!t.schema.primaryKey.outbound}function rr(e,t){switch(e){case"query":return t.values&&!t.unique;case"get":case"getMany":case"count":case"openCursor":return!1}}var or={stack:"dbcore",level:0,name:"Observability",create:function(e){var t=e.schema.name,n=new Ln(e.MIN_KEY,e.MAX_KEY);return o(o({},e),{transaction:function(t,n,r){if(Te.subscr&&"readonly"!==n)throw new Z.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(Te.querier));return e.transaction(t,n,r)},table:function(r){var i=e.table(r),a=i.schema,l=a.primaryKey,s=a.indexes,f=l.extractKey,d=l.outbound,p=l.autoIncrement&&s.filter((function(e){return e.compound&&e.keyPath.includes(l.keyPath)})),h=o(o({},i),{mutate:function(o){var c,s,f=o.trans,d=o.mutatedParts||(o.mutatedParts={}),h=function(e){var n="idb://".concat(t,"/").concat(r,"/").concat(e);return d[n]||(d[n]=new Ln)},v=h(""),b=h(":dels"),m=o.type,y="deleteRange"===o.type?[o.range]:"delete"===o.type?[o.keys]:o.values.length<50?[Zn(l,o).filter((function(e){return e})),o.values]:[],g=y[0],w=y[1],x=o.trans._cache;if(u(g)){v.addKeys(g);var O="delete"===m||g.length===w.length?er(g,x):null;O||b.addKeys(g),(O||w)&&function(e,t,n,r){function o(t){var o=e(t.name||"");function i(e){return null!=e?t.extractKey(e):null}var a=function(e){return t.multiEntry&&u(e)?e.forEach((function(e){return o.addKey(e)})):o.addKey(e)};(n||r).forEach((function(e,t){var o=n&&i(n[t]),c=r&&i(r[t]);0!==kt(o,c)&&(null!=o&&a(o),null!=c&&a(c))}))}t.indexes.forEach(o)}(h,a,O,w)}else if(g){var j={from:null!==(c=g.lower)&&void 0!==c?c:e.MIN_KEY,to:null!==(s=g.upper)&&void 0!==s?s:e.MAX_KEY};b.add(j),v.add(j)}else v.add(n),b.add(n),a.indexes.forEach((function(e){return h(e.name).add(n)}));return i.mutate(o).then((function(e){return!g||"add"!==o.type&&"put"!==o.type||(v.addKeys(e.results),p&&p.forEach((function(t){for(var n=o.values.map((function(e){return t.extractKey(e)})),r=t.keyPath.findIndex((function(e){return e===l.keyPath})),i=0,a=e.results.length;i<a;++i)n[i][r]=e.results[i];h(t.name).addKeys(n)}))),f.mutatedParts=Dn(f.mutatedParts||{},d),e}))}}),v=function(t){var n,r,o=t.query,i=o.index,a=o.range;return[i,new Ln(null!==(n=a.lower)&&void 0!==n?n:e.MIN_KEY,null!==(r=a.upper)&&void 0!==r?r:e.MAX_KEY)]},b={get:function(e){return[l,new Ln(e.key)]},getMany:function(e){return[l,(new Ln).addKeys(e.keys)]},count:v,query:v,openCursor:v};return c(b).forEach((function(e){h[e]=function(a){var c=Te.subscr,u=!!c,l=nr(Te,i)&&rr(e,a)?a.obsSet={}:c;if(u){var s=function(e){var n="idb://".concat(t,"/").concat(r,"/").concat(e);return l[n]||(l[n]=new Ln)},p=s(""),h=s(":dels"),v=b[e](a),m=v[0],y=v[1];if("query"===e&&m.isPrimaryKey&&!a.values?h.add(y):s(m.name||"").add(y),!m.isPrimaryKey){if("count"!==e){var g="query"===e&&d&&a.values&&i.query(o(o({},a),{values:!1}));return i[e].apply(this,arguments).then((function(t){if("query"===e){if(d&&a.values)return g.then((function(e){var n=e.result;return p.addKeys(n),t}));var n=a.values?t.result.map(f):t.result;a.values?p.addKeys(n):h.addKeys(n)}else if("openCursor"===e){var r=t,o=a.values;return r&&Object.create(r,{key:{get:function(){return h.addKey(r.primaryKey),r.key}},primaryKey:{get:function(){var e=r.primaryKey;return h.addKey(e),e}},value:{get:function(){return o&&p.addKey(r.primaryKey),r.value}}})}return t}))}h.add(n)}}return i[e].apply(this,arguments)}})),h}})}};function ir(e,t,n){if(0===n.numFailures)return t;if("deleteRange"===t.type)return null;var r=t.keys?t.keys.length:"values"in t&&t.values?t.values.length:1;if(n.numFailures===r)return null;var i=o({},t);return u(i.keys)&&(i.keys=i.keys.filter((function(e,t){return!(t in n.failures)}))),"values"in i&&u(i.values)&&(i.values=i.values.filter((function(e,t){return!(t in n.failures)}))),i}function ar(e,t){return function(e,t){return void 0===t.lower||(t.lowerOpen?kt(e,t.lower)>0:kt(e,t.lower)>=0)}(e,t)&&function(e,t){return void 0===t.upper||(t.upperOpen?kt(e,t.upper)<0:kt(e,t.upper)<=0)}(e,t)}function cr(e,t,n,r,o,i){if(!n||0===n.length)return e;var a=t.query.index,c=a.multiEntry,l=t.query.range,s=r.schema.primaryKey.extractKey,f=a.extractKey,d=(a.lowLevelIndex||a).extractKey,p=n.reduce((function(e,n){var r=e,o=[];if("add"===n.type||"put"===n.type)for(var i=new Ln,a=n.values.length-1;a>=0;--a){var d=n.values[a],p=s(d);if(!i.hasKey(p)){var h=f(d);(c&&u(h)?h.some((function(e){return ar(e,l)})):ar(h,l))&&(i.addKey(p),o.push(d))}}switch(n.type){case"add":var v=(new Ln).addKeys(t.values?e.map((function(e){return s(e)})):e);r=e.concat(t.values?o.filter((function(e){var t=s(e);return!v.hasKey(t)&&(v.addKey(t),!0)})):o.map((function(e){return s(e)})).filter((function(e){return!v.hasKey(e)&&(v.addKey(e),!0)})));break;case"put":var b=(new Ln).addKeys(n.values.map((function(e){return s(e)})));r=e.filter((function(e){return!b.hasKey(t.values?s(e):e)})).concat(t.values?o:o.map((function(e){return s(e)})));break;case"delete":var m=(new Ln).addKeys(n.keys);r=e.filter((function(e){return!m.hasKey(t.values?s(e):e)}));break;case"deleteRange":var y=n.range;r=e.filter((function(e){return!ar(s(e),y)}))}return r}),e);return p===e?e:(p.sort((function(e,t){return kt(d(e),d(t))||kt(s(e),s(t))})),t.limit&&t.limit<1/0&&(p.length>t.limit?p.length=t.limit:e.length===t.limit&&p.length<t.limit&&(o.dirty=!0)),i?Object.freeze(p):p)}function ur(e,t){return 0===kt(e.lower,t.lower)&&0===kt(e.upper,t.upper)&&!!e.lowerOpen===!!t.lowerOpen&&!!e.upperOpen===!!t.upperOpen}function lr(e,t){return function(e,t,n,r){if(void 0===e)return void 0!==t?-1:0;if(void 0===t)return 1;var o=kt(e,t);if(0===o){if(n&&r)return 0;if(n)return 1;if(r)return-1}return o}(e.lower,t.lower,e.lowerOpen,t.lowerOpen)<=0&&function(e,t,n,r){if(void 0===e)return void 0!==t?1:0;if(void 0===t)return-1;var o=kt(e,t);if(0===o){if(n&&r)return 0;if(n)return-1;if(r)return 1}return o}(e.upper,t.upper,e.upperOpen,t.upperOpen)>=0}function sr(e,t,n,r){e.subscribers.add(n),r.addEventListener("abort",(function(){e.subscribers.delete(n),0===e.subscribers.size&&function(e,t){setTimeout((function(){0===e.subscribers.size&&z(t,e)}),3e3)}(e,t)}))}var fr={stack:"dbcore",level:0,name:"Cache",create:function(e){var t=e.schema.name,n=o(o({},e),{transaction:function(n,r,o){var i=e.transaction(n,r,o);if("readwrite"===r){var a=new AbortController,c=a.signal,u=function(o){return function(){if(a.abort(),"readwrite"===r){for(var c=new Set,u=0,l=n;u<l.length;u++){var s=l[u],f=zn["idb://".concat(t,"/").concat(s)];if(f){var d=e.table(s),p=f.optimisticOps.filter((function(e){return e.trans===i}));if(i._explicit&&o&&i.mutatedParts)for(var h=0,v=Object.values(f.queries.query);h<v.length;h++)for(var b=0,m=(w=v[h]).slice();b<m.length;b++){Fn((j=m[b]).obsSet,i.mutatedParts)&&(z(w,j),j.subscribers.forEach((function(e){return c.add(e)})))}else if(p.length>0){f.optimisticOps=f.optimisticOps.filter((function(e){return e.trans!==i}));for(var y=0,g=Object.values(f.queries.query);y<g.length;y++)for(var w,x=0,O=(w=g[y]).slice();x<O.length;x++){var j;if(null!=(j=O[x]).res&&i.mutatedParts)if(o&&!j.dirty){var k=Object.isFrozen(j.res),S=cr(j.res,j.req,p,d,j,k);j.dirty?(z(w,j),j.subscribers.forEach((function(e){return c.add(e)}))):S!==j.res&&(j.res=S,j.promise=_e.resolve({result:S}))}else j.dirty&&z(w,j),j.subscribers.forEach((function(e){return c.add(e)}))}}}}c.forEach((function(e){return e()}))}}};i.addEventListener("abort",u(!1),{signal:c}),i.addEventListener("error",u(!1),{signal:c}),i.addEventListener("complete",u(!0),{signal:c})}return i},table:function(n){var r=e.table(n),i=r.schema.primaryKey,a=o(o({},r),{mutate:function(e){var a=Te.trans;if(i.outbound||"disabled"===a.db._options.cache||a.explicit||"readwrite"!==a.idbtrans.mode)return r.mutate(e);var c=zn["idb://".concat(t,"/").concat(n)];if(!c)return r.mutate(e);var u=r.mutate(e);return"add"!==e.type&&"put"!==e.type||!(e.values.length>=50||Zn(i,e).some((function(e){return null==e})))?(c.optimisticOps.push(e),e.mutatedParts&&Un(e.mutatedParts),u.then((function(t){if(t.numFailures>0){z(c.optimisticOps,e);var n=ir(0,e,t);n&&c.optimisticOps.push(n),e.mutatedParts&&Un(e.mutatedParts)}})),u.catch((function(){z(c.optimisticOps,e),e.mutatedParts&&Un(e.mutatedParts)}))):u.then((function(t){var n=o(o({},e),{values:e.values.map((function(e,n){var r;if(t.failures[n])return e;var a=(null===(r=i.keyPath)||void 0===r?void 0:r.includes("."))?R(e):o({},e);return S(a,i.keyPath,t.results[n]),a}))}),r=ir(0,n,t);c.optimisticOps.push(r),queueMicrotask((function(){return e.mutatedParts&&Un(e.mutatedParts)}))})),u},query:function(e){var o;if(!nr(Te,r)||!rr("query",e))return r.query(e);var i="immutable"===(null===(o=Te.trans)||void 0===o?void 0:o.db._options.cache),a=Te,c=a.requery,u=a.signal,l=function(e,t,n,r){var o=zn["idb://".concat(e,"/").concat(t)];if(!o)return[];var i=o.queries[n];if(!i)return[null,!1,o,null];var a=i[(r.query?r.query.index.name:null)||""];if(!a)return[null,!1,o,null];switch(n){case"query":var c=a.find((function(e){return e.req.limit===r.limit&&e.req.values===r.values&&ur(e.req.query.range,r.query.range)}));return c?[c,!0,o,a]:[a.find((function(e){return("limit"in e.req?e.req.limit:1/0)>=r.limit&&(!r.values||e.req.values)&&lr(e.req.query.range,r.query.range)})),!1,o,a];case"count":var u=a.find((function(e){return ur(e.req.query.range,r.query.range)}));return[u,!!u,o,a]}}(t,n,"query",e),s=l[0],f=l[1],d=l[2],p=l[3];if(s&&f)s.obsSet=e.obsSet;else{var h=r.query(e).then((function(e){var t=e.result;if(s&&(s.res=t),i){for(var n=0,r=t.length;n<r;++n)Object.freeze(t[n]);Object.freeze(t)}else e.result=R(t);return e})).catch((function(e){return p&&s&&z(p,s),Promise.reject(e)}));s={obsSet:e.obsSet,promise:h,subscribers:new Set,type:"query",req:e,dirty:!1},p?p.push(s):(p=[s],d||(d=zn["idb://".concat(t,"/").concat(n)]={queries:{query:{},count:{}},objs:new Map,optimisticOps:[],unsignaledParts:{}}),d.queries.query[e.query.index.name||""]=p)}return sr(s,p,c,u),s.promise.then((function(t){return{result:cr(t.result,e,null===d||void 0===d?void 0:d.optimisticOps,r,s,i)}}))}});return a}});return n}};function dr(e,t){return new Proxy(e,{get:function(e,n,r){return"db"===n?t:Reflect.get(e,n,r)}})}var pr,hr=function(){function e(t,n){var r=this;this._middlewares={},this.verno=0;var i=e.dependencies;this._options=n=o({addons:e.addons,autoOpen:!0,indexedDB:i.indexedDB,IDBKeyRange:i.IDBKeyRange,cache:"cloned"},n),this._deps={indexedDB:n.indexedDB,IDBKeyRange:n.IDBKeyRange};var a=n.addons;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;var c,u={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:te,dbReadyPromise:null,cancelOpen:te,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3,autoOpen:n.autoOpen};u.dbReadyPromise=new _e((function(e){u.dbReadyResolve=e})),u.openCanceller=new _e((function(e,t){u.cancelOpen=t})),this._state=u,this.name=t,this.on=Tt(this,"populate","blocked","versionchange","close",{ready:[le,te]}),this.on.ready.subscribe=x(this.on.ready.subscribe,(function(t){return function(n,o){e.vip((function(){var e=r._state;if(e.openComplete)e.dbOpenError||_e.resolve().then(n),o&&t(n);else if(e.onReadyBeingFired)e.onReadyBeingFired.push(n),o&&t(n);else{t(n);var i=r;o||t((function e(){i.on.ready.unsubscribe(n),i.on.ready.unsubscribe(e)}))}}))}})),this.Collection=(c=this,It(Ft.prototype,(function(e,t){this.db=c;var n=xt,r=null;if(t)try{n=t()}catch(u){r=u}var o=e._ctx,i=o.table,a=i.hook.reading.fire;this._ctx={table:i,index:o.index,isPrimKey:!o.index||i.schema.primKey.keyPath&&o.index===i.schema.primKey.name,range:n,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:r,or:o.or,valueMapper:a!==ne?a:null}}))),this.Table=function(e){return It(Ct.prototype,(function(t,n,r){this.db=e,this._tx=r,this.name=t,this.schema=n,this.hook=e._allTables[t]?e._allTables[t].hook:Tt(null,{creating:[ie,te],reading:[re,ne],updating:[ce,te],deleting:[ae,te]})}))}(this),this.Transaction=function(e){return It(en.prototype,(function(t,n,r,o,i){var a=this;this.db=e,this.mode=t,this.storeNames=n,this.schema=r,this.chromeTransactionDurability=o,this.idbtrans=null,this.on=Tt(this,"complete","error","abort"),this.parent=i||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new _e((function(e,t){a._resolve=e,a._reject=t})),this._completion.then((function(){a.active=!1,a.on.complete.fire()}),(function(e){var t=a.active;return a.active=!1,a.on.error.fire(e),a.parent?a.parent._reject(e):t&&a.idbtrans&&a.idbtrans.abort(),lt(e)}))}))}(this),this.Version=function(e){return It(Sn.prototype,(function(t){this.db=e,this._cfg={version:t,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}}))}(this),this.WhereClause=function(e){return It($t.prototype,(function(t,n,r){if(this.db=e,this._ctx={table:t,index:":id"===n?null:n,or:r},this._cmp=this._ascending=kt,this._descending=function(e,t){return kt(t,e)},this._max=function(e,t){return kt(e,t)>0?e:t},this._min=function(e,t){return kt(e,t)<0?e:t},this._IDBKeyRange=e._deps.IDBKeyRange,!this._IDBKeyRange)throw new Z.MissingAPI}))}(this),this.on("versionchange",(function(e){e.newVersion>0?console.warn("Another connection wants to upgrade database '".concat(r.name,"'. Closing db now to resume the upgrade.")):console.warn("Another connection wants to delete database '".concat(r.name,"'. Closing db now to resume the delete request.")),r.close({disableAutoOpen:!1})})),this.on("blocked",(function(e){!e.newVersion||e.newVersion<e.oldVersion?console.warn("Dexie.delete('".concat(r.name,"') was blocked")):console.warn("Upgrade '".concat(r.name,"' blocked by other connection holding version ").concat(e.oldVersion/10))})),this._maxKey=on(n.IDBKeyRange),this._createTransaction=function(e,t,n,o){return new r.Transaction(e,t,n,r._options.chromeTransactionDurability,o)},this._fireOnBlocked=function(e){r.on("blocked").fire(e),bt.filter((function(e){return e.name===r.name&&e!==r&&!e._state.vcFired})).map((function(t){return t.on("versionchange").fire(e)}))},this.use(tr),this.use(fr),this.use(or),this.use(Qn),this.use(Jn);var l=new Proxy(this,{get:function(e,t,n){if("_vip"===t)return!0;if("table"===t)return function(e){return dr(r.table(e),l)};var o=Reflect.get(e,t,n);return o instanceof Ct?dr(o,l):"tables"===t?o.map((function(e){return dr(e,l)})):"_createTransaction"===t?function(){return dr(o.apply(this,arguments),l)}:o}});this.vip=l,a.forEach((function(e){return e(r)}))}return e.prototype.version=function(e){if(isNaN(e)||e<.1)throw new Z.Type("Given version is not a positive number");if(e=Math.round(10*e)/10,this.idbdb||this._state.isBeingOpened)throw new Z.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,e);var t=this._versions,n=t.filter((function(t){return t._cfg.version===e}))[0];return n||(n=new this.Version(e),t.push(n),t.sort(vn),n.stores({}),this._state.autoSchema=!1,n)},e.prototype._whenReady=function(e){var t=this;return this.idbdb&&(this._state.openComplete||Te.letThrough||this._vip)?e():new _e((function(e,n){if(t._state.openComplete)return n(new Z.DatabaseClosed(t._state.dbOpenError));if(!t._state.isBeingOpened){if(!t._state.autoOpen)return void n(new Z.DatabaseClosed);t.open().catch(te)}t._state.dbReadyPromise.then(e,n)})).then(e)},e.prototype.use=function(e){var t=e.stack,n=e.create,r=e.level,o=e.name;o&&this.unuse({stack:t,name:o});var i=this._middlewares[t]||(this._middlewares[t]=[]);return i.push({stack:t,create:n,level:null==r?10:r,name:o}),i.sort((function(e,t){return e.level-t.level})),this},e.prototype.unuse=function(e){var t=e.stack,n=e.name,r=e.create;return t&&this._middlewares[t]&&(this._middlewares[t]=this._middlewares[t].filter((function(e){return r?e.create!==r:!!n&&e.name!==n}))),this},e.prototype.open=function(){var e=this;return at(Ce,(function(){return Gn(e)}))},e.prototype._close=function(){var e=this._state,t=bt.indexOf(this);if(t>=0&&bt.splice(t,1),this.idbdb){try{this.idbdb.close()}catch(n){}this.idbdb=null}e.isBeingOpened||(e.dbReadyPromise=new _e((function(t){e.dbReadyResolve=t})),e.openCanceller=new _e((function(t,n){e.cancelOpen=n})))},e.prototype.close=function(e){var t=(void 0===e?{disableAutoOpen:!0}:e).disableAutoOpen,n=this._state;t?(n.isBeingOpened&&n.cancelOpen(new Z.DatabaseClosed),this._close(),n.autoOpen=!1,n.dbOpenError=new Z.DatabaseClosed):(this._close(),n.autoOpen=this._options.autoOpen||n.isBeingOpened,n.openComplete=!1,n.dbOpenError=null)},e.prototype.delete=function(e){var t=this;void 0===e&&(e={disableAutoOpen:!0});var n=arguments.length>0&&"object"!==typeof arguments[0],r=this._state;return new _e((function(o,i){var a=function(){t.close(e);var n=t._deps.indexedDB.deleteDatabase(t.name);n.onsuccess=Ge((function(){!function(e,t){var n=e.indexedDB,r=e.IDBKeyRange;!Cn(n)&&t!==mt&&En(n,r).delete(t).catch(te)}(t._deps,t.name),o()})),n.onerror=Yt(i),n.onblocked=t._fireOnBlocked};if(n)throw new Z.InvalidArgument("Invalid closeOptions argument to db.delete()");r.isBeingOpened?r.dbReadyPromise.then(a):a()}))},e.prototype.backendDB=function(){return this.idbdb},e.prototype.isOpen=function(){return null!==this.idbdb},e.prototype.hasBeenClosed=function(){var e=this._state.dbOpenError;return e&&"DatabaseClosed"===e.name},e.prototype.hasFailed=function(){return null!==this._state.dbOpenError},e.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(e.prototype,"tables",{get:function(){var e=this;return c(this._allTables).map((function(t){return e._allTables[t]}))},enumerable:!1,configurable:!0}),e.prototype.transaction=function(){var e=Kn.apply(this,arguments);return this._transaction.apply(this,e)},e.prototype._transaction=function(e,t,n){var r=this,o=Te.trans;o&&o.db===this&&-1===e.indexOf("!")||(o=null);var i,a,c=-1!==e.indexOf("?");e=e.replace("!","").replace("?","");try{if(a=t.map((function(e){var t=e instanceof r.Table?e.name:e;if("string"!==typeof t)throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return t})),"r"==e||e===yt)i=yt;else{if("rw"!=e&&e!=gt)throw new Z.InvalidArgument("Invalid transaction mode: "+e);i=gt}if(o){if(o.mode===yt&&i===gt){if(!c)throw new Z.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");o=null}o&&a.forEach((function(e){if(o&&-1===o.storeNames.indexOf(e)){if(!c)throw new Z.SubTransaction("Table "+e+" not included in parent transaction.");o=null}})),c&&o&&!o.active&&(o=null)}}catch(l){return o?o._promise(null,(function(e,t){t(l)})):lt(l)}var u=$n.bind(null,this,i,a,o,n);return o?o._promise(i,u,"lock"):Te.trans?at(Te.transless,(function(){return r._whenReady(u)})):this._whenReady(u)},e.prototype.table=function(e){if(!d(this._allTables,e))throw new Z.InvalidTable("Table ".concat(e," does not exist"));return this._allTables[e]},e}(),vr="undefined"!==typeof Symbol&&"observable"in Symbol?Symbol.observable:"@@observable",br=function(){function e(e){this._subscribe=e}return e.prototype.subscribe=function(e,t,n){return this._subscribe(e&&"function"!==typeof e?e:{next:e,error:t,complete:n})},e.prototype[vr]=function(){return this},e}();try{pr={indexedDB:a.indexedDB||a.mozIndexedDB||a.webkitIndexedDB||a.msIndexedDB,IDBKeyRange:a.IDBKeyRange||a.webkitIDBKeyRange}}catch(Or){pr={indexedDB:null,IDBKeyRange:null}}var mr=hr;function yr(e){var t=wr;try{wr=!0,Jt.storagemutated.fire(e),Wn(e,!0)}finally{wr=t}}p(mr,o(o({},ee),{delete:function(e){return new mr(e,{addons:[]}).delete()},exists:function(e){return new mr(e,{addons:[]}).open().then((function(e){return e.close(),!0})).catch("NoSuchDatabaseError",(function(){return!1}))},getDatabaseNames:function(e){try{return function(e){var t=e.indexedDB,n=e.IDBKeyRange;return Cn(t)?Promise.resolve(t.databases()).then((function(e){return e.map((function(e){return e.name})).filter((function(e){return e!==mt}))})):En(t,n).toCollection().primaryKeys()}(mr.dependencies).then(e)}catch(kn){return lt(new Z.MissingAPI)}},defineClass:function(){return function(e){l(this,e)}},ignoreTransaction:function(e){return Te.trans?at(Te.transless,e):e()},vip:Tn,async:function(e){return function(){try{var t=Vn(e.apply(this,arguments));return t&&"function"===typeof t.then?t:_e.resolve(t)}catch(Or){return lt(Or)}}},spawn:function(e,t,n){try{var r=Vn(e.apply(n,t||[]));return r&&"function"===typeof r.then?r:_e.resolve(r)}catch(Or){return lt(Or)}},currentTransaction:{get:function(){return Te.trans||null}},waitFor:function(e,t){var n=_e.resolve("function"===typeof e?mr.ignoreTransaction(e):e).timeout(t||6e4);return Te.trans?Te.trans.waitFor(n):n},Promise:_e,debug:{get:function(){return se},set:function(e){fe(e)}},derive:b,extend:l,props:p,override:x,Events:Tt,on:Jt,liveQuery:function(e){var t,n=!1,r=new br((function(r){var o=U(e);var i,a=!1,c={},u={},l={get closed(){return a},unsubscribe:function(){a||(a=!0,i&&i.abort(),s&&Jt.storagemutated.unsubscribe(p))}};r.start&&r.start(l);var s=!1,f=function(){return ut(h)};var p=function(e){Dn(c,e),Fn(u,c)&&f()},h=function(){if(!a&&pr.indexedDB){c={};var l={};i&&i.abort(),i=new AbortController;var h={subscr:l,signal:i.signal,requery:f,querier:e,trans:null},v=function(t){var n=He();try{o&&Je();var r=Ze(e,t);return o&&(r=r.finally(et)),r}finally{n&&Ue()}}(h);Promise.resolve(v).then((function(e){n=!0,t=e,a||h.signal.aborted||(c={},function(e){for(var t in e)if(d(e,t))return!1;return!0}(u=l)||s||(Jt(Xt,p),s=!0),ut((function(){return!a&&r.next&&r.next(e)})))}),(function(e){n=!1,["DatabaseClosedError","AbortError"].includes(null===e||void 0===e?void 0:e.name)||a||ut((function(){a||r.error&&r.error(e)}))}))}};return setTimeout(f,0),l}));return r.hasValue=function(){return n},r.getValue=function(){return t},r},extendObservabilitySet:Dn,getByKeyPath:k,setByKeyPath:S,delByKeyPath:function(e,t){"string"===typeof t?S(e,t,void 0):"length"in t&&[].map.call(t,(function(t){S(e,t,void 0)}))},shallowClone:E,deepClone:R,getObjectDiff:Xn,cmp:kt,asap:j,minKey:pt,addons:[],connections:bt,errnames:Q,dependencies:pr,cache:zn,semVer:ft,version:ft.split(".").map((function(e){return parseInt(e)})).reduce((function(e,t,n){return e+t/Math.pow(10,2*n)}))})),mr.maxKey=on(mr.dependencies.IDBKeyRange),"undefined"!==typeof dispatchEvent&&"undefined"!==typeof addEventListener&&(Jt(Xt,(function(e){var t;wr||(t=new CustomEvent(Zt,{detail:e}),wr=!0,dispatchEvent(t),wr=!1)})),addEventListener(Zt,(function(e){var t=e.detail;wr||yr(t)})));var gr,wr=!1,xr=function(){};"undefined"!==typeof BroadcastChannel&&((xr=function(){(gr=new BroadcastChannel(Zt)).onmessage=function(e){return e.data&&yr(e.data)}})(),"function"===typeof gr.unref&&gr.unref(),Jt(Xt,(function(e){wr||gr.postMessage(e)}))),"undefined"!==typeof addEventListener&&(addEventListener("pagehide",(function(e){if(!hr.disableBfCache&&e.persisted){se&&console.debug("Dexie: handling persisted pagehide"),null===gr||void 0===gr||gr.close();for(var t=0,n=bt;t<n.length;t++){n[t].close({disableAutoOpen:!1})}}})),addEventListener("pageshow",(function(e){!hr.disableBfCache&&e.persisted&&(se&&console.debug("Dexie: handling persisted pageshow"),xr(),yr({all:new Ln(-1/0,[[]])}))}))),_e.rejectionMapper=function(e,t){if(!e||e instanceof V||e instanceof TypeError||e instanceof SyntaxError||!e.name||!J[e.name])return e;var n=new J[e.name](t||e.message,e);return"stack"in e&&v(n,"stack",{get:function(){return this.inner.stack}}),n},fe(se)},function(e,t,n){"use strict";var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},o=function(e,t,n){var o,i=r[e];return o="string"===typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o};function i(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var a={date:i({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:i({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:i({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},c={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},u=function(e,t,n,r){return c[e]};function l(e){return function(t,n){var r;if("formatting"===(null!==n&&void 0!==n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!==n&&void 0!==n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,c=null!==n&&void 0!==n&&n.width?String(n.width):e.defaultWidth;r=e.values[c]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var s={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:l({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:l({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:l({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:l({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:l({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function f(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,c=i[0],u=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(u)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(u,(function(e){return e.test(c)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(u,(function(e){return e.test(c)}));return a=e.valueCallback?e.valueCallback(l):l,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(c.length)}}}var d,p={ordinalNumber:(d={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(d.matchPattern);if(!n)return null;var r=n[0],o=e.match(d.parsePattern);if(!o)return null;var i=d.valueCallback?d.valueCallback(o[0]):o[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(r.length)}}),era:f({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:f({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:f({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:f({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:f({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},h={code:"en-US",formatDistance:o,formatLong:a,formatRelative:u,localize:s,match:p,options:{weekStartsOn:0,firstWeekContainsDate:1}};t.a=h},function(e,t,n){"use strict";var r="NOT_FOUND";var o=function(e,t){return e===t};function i(e,t){var n="object"===typeof t?t:{equalityCheck:t},i=n.equalityCheck,a=void 0===i?o:i,c=n.maxSize,u=void 0===c?1:c,l=n.resultEqualityCheck,s=function(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0}}(a),f=1===u?function(e){var t;return{get:function(n){return t&&e(t.key,n)?t.value:r},put:function(e,n){t={key:e,value:n}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}(s):function(e,t){var n=[];function o(e){var o=n.findIndex((function(n){return t(e,n.key)}));if(o>-1){var i=n[o];return o>0&&(n.splice(o,1),n.unshift(i)),i.value}return r}return{get:o,put:function(t,i){o(t)===r&&(n.unshift({key:t,value:i}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(u,s);function d(){var t=f.get(arguments);if(t===r){if(t=e.apply(null,arguments),l){var n=f.getEntries().find((function(e){return l(e.value,t)}));n&&(t=n.value)}f.put(arguments,t)}return t}return d.clearCache=function(){return f.clear()},d}function a(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];var i,a=0,c={memoizeOptions:void 0},u=r.pop();if("object"===typeof u&&(c=u,u=r.pop()),"function"!==typeof u)throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof u+"]");var l=c.memoizeOptions,s=void 0===l?n:l,f=Array.isArray(s)?s:[s],d=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"===typeof e}))){var n=t.map((function(e){return"function"===typeof e?"function "+(e.name||"unnamed")+"()":typeof e})).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}(r),p=e.apply(void 0,[function(){return a++,u.apply(null,arguments)}].concat(f)),h=e((function(){for(var e=[],t=d.length,n=0;n<t;n++)e.push(d[n].apply(null,arguments));return i=p.apply(null,e)}));return Object.assign(h,{resultFunc:u,memoizedResultFunc:p,dependencies:d,lastResult:function(){return i},recomputations:function(){return a},resetRecomputations:function(){return a=0}}),h}}n.d(t,"a",(function(){return c}));var c=a(i)},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return p}));var r=n(2),o=n(96),i=n.n(o),a=n(27),c=n(8);function u(){u=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(I){l=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),c=new E(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(I){return{type:"throw",arg:I}}}e.wrap=s;var d={};function p(){}function h(){}function v(){}var b={};l(b,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(C([])));y&&y!==t&&n.call(y,i)&&(b=y);var g=v.prototype=p.prototype=Object.create(b);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,i,a,c){var u=f(e[r],e,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return h.prototype=v,r(g,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:h,configurable:!0}),h.displayName=l(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},w(x.prototype),l(x.prototype,a,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new x(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=C,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}var l=5*c.f,s=i()((function(){Object(a.i)("userActive",Object(c.n)())}),5e3,{leading:!0,trailing:!1}),f=function(){var e=Object(r.a)(u().mark((function e(){var t;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(a.a)("userActive");case 2:return t=e.sent,e.abrupt("return",Object(c.k)(t));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),d=function(){var e=Object(r.a)(u().mark((function e(){var t;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(a.a)("activeSnapshot");case 2:return t=e.sent,e.abrupt("return",Object(c.k)(null===t||void 0===t?void 0:t.timestamp));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),p=function(){var e=Object(r.a)(u().mark((function e(){var t,n,r,o,i,a,s=arguments;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(s.length>0&&void 0!==s[0]?s[0]:{}).debug,e.next=3,f();case 3:return n=e.sent,e.next=6,d();case 6:if(r=e.sent,n||r){e.next=10;break}return t&&console.log("idle status unknown: no user or browser activity recorded"),e.abrupt("return",void 0);case 10:return o=n&&r?Math.max(+n,+r):n?+n:+r,i=Object(c.m)()-l,a=o<i,t&&console.log(a?"\u2705 browser and user are idle (last activity ".concat(Math.floor((Object(c.m)()-o)/1e3).toLocaleString("en-US")," seconds ago)"):"\u23f3 browser or user is active (idle in ".concat(Math.floor((o-i)/1e3).toLocaleString("en-US")," seconds)")),e.abrupt("return",a);case 15:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return u})),n.d(t,"b",(function(){return l}));var r=n(37),o=["red","orange","yellow","green","teal","blue","purple","pink"],i=[].concat(o,["brown","gray","neutral"]),a={red:"red",orange:"orange",yellow:"yellow",green:"green",teal:"teal",blue:"blue",purple:"purple",pink:"pink",brown:"brown",gray:"gray",neutral:"neutral"};function c(e){var t=e.id;return function(e){var t=e.color,n=e.defaultColor;return s(t)||f(t)?t:n||void 0}({color:e.color,defaultColor:d(t,e.defaultCollectionColor)})}function u(e){var t=e.color,n=e.defaultColor,r=e.theme;return s(t)?r.palette.nxsSet[a[t]].main:f(t)?t:n?r.palette.nxsSet[a[n]].main:void 0}function l(e){var t=e.id,n=e.color,r=e.defaultCollectionColor;return u({color:n,theme:e.theme,defaultColor:d(t,r)})}function s(e){return!!e&&i.includes(e)}function f(e){return!!(null===e||void 0===e?void 0:e.startsWith("#"))}function d(e,t){return s(t)?t:"auto"===t?function(e){return o[Object(r.b)("".concat(e),o.length)]}(e):void 0}},function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return d}));var r=n(1),o=n(2),i=n(18),a=n(75),c=n(8);function u(){u=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(I){l=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),c=new E(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(I){return{type:"throw",arg:I}}}e.wrap=s;var d={};function p(){}function h(){}function v(){}var b={};l(b,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(C([])));y&&y!==t&&n.call(y,i)&&(b=y);var g=v.prototype=p.prototype=Object.create(b);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,i,a,c){var u=f(e[r],e,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return h.prototype=v,r(g,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:h,configurable:!0}),h.displayName=l(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},w(x.prototype),l(x.prototype,a,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new x(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(g),l(g,c,"Generator"),l(g,i,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=C,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}var l={experiments:{},clientId:void 0,clientCreated:void 0,view:"single-line",defaultCollectionColor:"none",shareUsageStats:!0,rateDonateViewed:null,enableAutoBackup:!0,disableAutoBackupRemotely:!1,appTip_export:{text:"Use Export to transfer collections to other apps.\nTo save both collections and history, use Backup."},appTip_itemMove:{text:"mac"===a.a?"Use Option+\u2191/Option+\u2193 to move a selected link or folder up/down.":"Use Alt+\u2191/Alt+\u2193 to move a selected link or folder up/down."},exportScope:"all-collections",exportFormat:"json",unitAddTextAreaHeight:120,importTextAreaHeight:120,enableOpenOptimizations:!1,showTabCountsBadge:!1,enableSingleClickRemove:!1,alwaysShowUnitCounts:!1,showWelcome:!1,clientTitle:"",enabledCopyActions:["title","titleAndUrl","markdown","csv","json","html"],currentWindowFirst:!0,bypassConfirmCollectionDelete:!1,bypassConfirmEventDelete:!1,bypassConfirmClientItemClose:!1,bypassConfirmCollectionItemDelete:!1,bypassConfirmEventItemDelete:!1,bypassConfirmClientItemOpen:!1,bypassConfirmCollectionItemMove:!1,bypassConfirmSort:!1,bypassConfirmUnify:!1,bypassConfirmReplace:!1,ignoreNxsTabs:!1,ignoreNewTabs:!1,ignorePinnedTabs:!1,ignoreBrowserFeatureTabs:!1,desiredTheme:"default",historyIsOpen:!1,scheduledSnapshotCycle:c.c,scheduledSnapshotRemoveOlderThan:10*c.i,scheduledSnapshotKeepAtMost:500,searchResultsShowUnitsOnly:!1,suppressMacShortcutBugNotification:!1,askForNameWhenSavingCollection:!0,autoNameCollections:!0,showAllItemMatches:!1,dummyGlobal:"dummyGlobal"},s=["dummyGlobal"];function f(e){return s.includes(e)}function d(e){var t={all:function(){return n.apply(this,arguments)},get:function(e){return a.apply(this,arguments)},set:function(e,t){return c.apply(this,arguments)}};return t;function n(){return(n=Object(o.a)(u().mark((function t(){var n;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.fetchAllSettings();case 3:return n=t.sent,t.abrupt("return",n.filter((function(e){return e.id in l})).map((function(e){return p(e.id,e.value)?e:Object(r.a)(Object(r.a)({},e),{},{value:l[e.id]})})).map((function(e){return Object(r.a)(Object(r.a)({},e),{},{global:f(e.id)})})));case 7:t.prev=7,t.t0=t.catch(0),Object(i.e)(t.t0,{prefix:"Failed to fetch all settings"});case 10:return t.abrupt("return",[]);case 11:case"end":return t.stop()}}),t,null,[[0,7]])})))).apply(this,arguments)}function a(){return(a=Object(o.a)(u().mark((function t(n){var r;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!f(n)){t.next=7;break}return t.next=4,e.fetchGlobalSetting(n);case 4:t.t0=t.sent,t.next=10;break;case 7:return t.next=9,e.fetchClientSetting(n);case 9:t.t0=t.sent;case 10:if(r=t.t0,!p(n,r)){t.next=13;break}return t.abrupt("return",r);case 13:t.next=18;break;case 15:t.prev=15,t.t1=t.catch(0),Object(i.e)(t.t1,{prefix:"Failed to fetch setting ".concat(n)});case 18:return t.abrupt("return",l[n]);case 19:case"end":return t.stop()}}),t,null,[[0,15]])})))).apply(this,arguments)}function c(){return(c=Object(o.a)(u().mark((function t(n,r){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!f(n)){t.next=3;break}return t.abrupt("return",e.saveGlobalSetting({id:n,value:r}));case 3:return t.next=5,e.saveClientSetting({id:n,value:r});case 5:t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),Object(i.e)(t.t0,{prefix:"Failed to save setting ".concat(n)});case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))).apply(this,arguments)}}function p(e,t){return void 0!==t&&!!("scheduledSnapshotRemoveOlderThan"!==e&&"scheduledSnapshotKeepAtMost"!==e||t)}},function(e){e.exports=JSON.parse('{"brave":{"browsers":["brave"],"appStores":["googleChromeWebStore"],"urls":{"bookmarks":["brave://bookmarks"],"downloads":["brave://downloads"],"extensions":["brave://extensions"],"history":["brave://history"],"newtab":[],"settings":["brave://settings"]},"schemes":{"devTools":[],"extension":["chrome-extension"],"feature":["brave"]}},"chrome":{"browsers":["chrome","chromium"],"appStores":["googleChromeWebStore"],"urls":{"bookmarks":["chrome://bookmarks"],"downloads":["chrome://downloads"],"extensions":["chrome://extensions","chrome://chrome/extensions","chrome://settings/extensions"],"history":["chrome://history","chrome://chrome/history"],"newtab":["chrome://newtab"],"settings":["chrome://settings","chrome://chrome/settings"]},"schemes":{"devTools":["devtools","chrome-devtools"],"extension":["chrome-extension"],"feature":["chrome"]}},"edge":{"browsers":["edge"],"appStores":["microsoftAddOnStore","googleChromeWebStore"],"urls":{"bookmarks":["edge://favorites"],"downloads":["edge://downloads"],"extensions":["edge://extensions"],"history":["edge://history"],"newtab":["edge://newtab"],"settings":["edge://settings"]},"schemes":{"devTools":[],"extension":["chrome-extension","extension"],"feature":["edge"]}},"opera":{"browsers":["opera"],"appStores":["operaAddOnStore","googleChromeWebStore"],"urls":{"bookmarks":["opera://bookmarks"],"downloads":["opera://downloads"],"extensions":["opera://extensions"],"history":["opera://history"],"newtab":["opera://newtab","chrome://startpageshared"],"settings":["opera://settings"]},"schemes":{"devTools":[],"extension":["chrome-extension"],"feature":["opera"]}},"firefox":{"browsers":["firefox"],"appStores":["mozillaAddOnStore"],"urls":{"bookmarks":[],"downloads":[],"extensions":["about:addons"],"history":[],"newtab":["about:newtab"],"settings":["about:preferences"]},"schemes":{"devTools":[],"extension":["moz-extension"],"feature":["about"]}},"safari":{"browsers":["safari"],"appStores":["appleMacAppStore"],"urls":{"bookmarks":[],"downloads":[],"extensions":[],"history":[],"newtab":[],"settings":[]},"schemes":{"devTools":[],"extension":[],"feature":[]}},"tor":{"browsers":["tor"],"appStores":[],"urls":{"bookmarks":[],"downloads":[],"extensions":[],"history":[],"newtab":[],"settings":[]},"schemes":{"devTools":[],"extension":[],"feature":[]}},"vivaldi":{"browsers":["vivaldi"],"appStores":[],"urls":{"bookmarks":[],"downloads":[],"extensions":[],"history":[],"newtab":[],"settings":[]},"schemes":{"devTools":[],"extension":[],"feature":[]}},"yandex":{"browsers":["yandex"],"appStores":[],"urls":{"bookmarks":[],"downloads":[],"extensions":[],"history":[],"newtab":[],"settings":[]},"schemes":{"devTools":[],"extension":[],"feature":[]}},"arc":{"browsers":["arc"],"appStores":[],"urls":{"bookmarks":[],"downloads":[],"extensions":[],"history":[],"newtab":[],"settings":[]},"schemes":{"devTools":[],"extension":[],"feature":[]}}}')},function(e,t,n){"use strict";n.d(t,"d",(function(){return u})),n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return f}));var r,o=n(57),i=n(17),a=n(6),c=Object(o.b)({name:"set-edit",initialState:{},reducers:{setEditingStarted:function(e,t){var n=t.payload;e.context=n},setEditingEnded:function(e){var t;null===(t=r)||void 0===t||t(),r=void 0,e.context=void 0}}}),u=c.actions.setEditingEnded,l=c.reducer;function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.isNew,n=e.onEditingEnded;return function(e,o){var u=o(),l=u.content,s=u.settings;if(!u.setEdit.context&&1===l.sets.selectedSetIds.length){var f=l.sets.selectedSetIds[0];if(!Object(a.s)(l.sets,f)&&!Object(a.t)(l.sets,f)){if(Object(a.r)(f))return h({type:"local-client",title:Object(i.l)("clientTitle")({settings:s})});var d=Object(a.g)(l.sets,f);if(d)return h({type:"collection",title:d.title,color:d.color,isNew:t});var p=Object(a.n)(l.sets,f);if(p)return h({type:"remote-client",title:p.title})}}function h(t){var o=t.type,i=t.title,a=t.color,u=t.isNew;r=n,e(c.actions.setEditingStarted({id:f,type:o,title:i,color:a,isNew:u}))}}}var f={context:function(e){return e.setEdit.context}}},,,function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(121),o=n(104);var i=n(141);function a(e,t,n){return a=Object(i.a)()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&Object(o.a)(i,n.prototype),i},a.apply(null,arguments)}function c(e){var t="function"===typeof Map?new Map:void 0;return c=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return a(e,arguments,Object(r.a)(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Object(o.a)(i,e)},c(e)}n.d(t,"a",(function(){return c}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(202);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Object(r.a)(e,t)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i}));var r=n(0),o=r.createContext();function i(){return r.useContext(o)}t.a=o},function(e,t,n){"use strict";var r=n(157);var o=n(200),i=n(165);function a(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(o.a)(e)||Object(i.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";n.d(t,"b",(function(){return i}));var r=n(15),o={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},i={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function a(e){return"".concat(Math.round(e),"ms")}t.a={easing:o,duration:i,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,c=void 0===n?i.standard:n,u=t.easing,l=void 0===u?o.easeInOut:u,s=t.delay,f=void 0===s?0:s;Object(r.a)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof c?c:a(c)," ").concat(l," ").concat("string"===typeof f?f:a(f))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}}},function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}}),(function(){}))}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return c}));var r=n(5),o=n(41),i=n(12);function a(e){var t=window.location.href,n=u(t),a=function(e,t){if(!t.length)return Object(o.q)({url:e,key:"s",value:"n"});if(1===t.length&&t[0]===r.j)return Object(o.a)({url:e,key:"s"});return Object(o.q)({url:e,key:"s",value:t.map((function(e){return e===r.j?"l":e})).join(",")}).replace(/%2C/gi,",")}(t,e),c=u(a);Object(i.f)(n,c)||Object(o.o)(a)}function c(){return u(window.location.href)}function u(e){var t,n=(null===(t=new URL(e).searchParams.get("s"))||void 0===t?void 0:t.split(","))||[];return n.length?n.filter((function(e){return"n"!==e})).map((function(e){return"l"===e?r.j:e})):[r.j]}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));var r=function(e){return e.scrollTop};function o(e,t){var n=e.timeout,r=e.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"===typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}},function(e,t,n){"use strict";function r(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,o)}),n)}return r.clear=function(){clearTimeout(t)},r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return u}));var r=n(2),o=n(87);function i(){i=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(I){l=function(e,t,n){return e[t]=n}}function s(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),c=new E(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(I){return{type:"throw",arg:I}}}e.wrap=s;var d={};function p(){}function h(){}function v(){}var b={};l(b,a,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(C([])));y&&y!==t&&n.call(y,a)&&(b=y);var g=v.prototype=p.prototype=Object.create(b);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,i,a,c){var u=f(e[r],e,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function C(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return h.prototype=v,r(g,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:h,configurable:!0}),h.displayName=l(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l(e,u,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},w(x.prototype),l(x.prototype,c,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new x(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(g),l(g,u,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=C,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function a(){return c.apply(this,arguments)}function c(){return(c=Object(r.a)(i().mark((function e(){var t,n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.abrupt("return",null===(t=chrome)||void 0===t||null===(n=t.tabs)||void 0===n||null===(r=n.query)||void 0===r?void 0:r.call(n,{url:"".concat(Object(o.a)().ext.canonicalMainUrl.toLowerCase(),"*")}));case 4:e.prev=4,e.t0=e.catch(0),console.error("Error getting nxs tabs:",e.t0);case 7:case"end":return e.stop()}}),e,null,[[0,4]])})))).apply(this,arguments)}function u(){a().then((function(e){null===e||void 0===e||e.forEach((function(e){try{e.id&&chrome.tabs.reload(e.id)}catch(t){console.error("Error reloading nxs tab:",t)}}))}))}},function(e,t,n){"use strict";var r=n(0),o=r.createContext({});t.a=o},function(e,t,n){"use strict";function r(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function o(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(r(e.value)&&""!==e.value||t&&r(e.defaultValue)&&""!==e.defaultValue)}function i(e){return e.startAdornment}n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i}))},,,function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";function r(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){return"chrome"}function o(){var e,t,n=null===(e=navigator.userAgentData)||void 0===e||null===(t=e.brands)||void 0===t?void 0:t.find((function(e){return"chromium"===e.brand.toLowerCase()}));return parseInt((null===n||void 0===n?void 0:n.version)||"0",10)||0}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";function r(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";e.exports=n(220)},function(e,t,n){"use strict";var r=n(182),o=Object(r.a)();t.a=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(1),o=n(2),i=n(58),a=n(59),c=n(64),u=n(65),l=n(105),s=n(37),f=n(8);function d(){d=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(I){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),c=new E(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(I){return{type:"throw",arg:I}}}e.wrap=l;var f={};function p(){}function h(){}function v(){}var b={};u(b,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(C([])));y&&y!==t&&n.call(y,i)&&(b=y);var g=v.prototype=p.prototype=Object.create(b);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return h.prototype=v,r(g,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:h,configurable:!0}),h.displayName=u(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,u(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},w(x.prototype),u(x.prototype,a,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new x(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(g),u(g,c,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=C,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function p(e){return h.apply(this,arguments)}function h(){return h=Object(o.a)(d().mark((function e(t){var n,r;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.settings,e.next=3,n.get("clientId");case 3:if(null===(r=e.sent)||void 0===r?void 0:r.value){e.next=9;break}return e.next=7,n.put({id:"clientId",value:Object(s.c)()});case 7:return e.next=9,n.put({id:"clientCreated",value:Object(f.m)()});case 9:case"end":return e.stop()}}),e)}))),h.apply(this,arguments)}var v=(new(function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(){var e;return Object(a.a)(this,n),(e=t.call(this,"nxsSettings",{chromeTransactionDurability:"strict"})).settings=void 0,e.version(1).stores({settings:"id"}),e.on("ready",p),e.settings=e.table("settings"),e}return Object(i.a)(n)}(l.a))).settings,b={fetchAllSettings:function(){return v.toArray()},fetchClientSetting:function(){var e=Object(o.a)(d().mark((function e(t){var n;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v.get(t);case 2:if(n=e.sent){e.next=5;break}return e.abrupt("return",void 0);case 5:return e.abrupt("return",n.global?void 0:n.value);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),fetchGlobalSetting:function(){var e=Object(o.a)(d().mark((function e(t){var n;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v.get(t);case 2:if(n=e.sent){e.next=5;break}return e.abrupt("return",void 0);case 5:return e.abrupt("return",n.global?n.value:void 0);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),saveClientSetting:function(){var e=Object(o.a)(d().mark((function e(t){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v.put(t);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),saveGlobalSetting:function(){var e=Object(o.a)(d().mark((function e(t){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v.put(Object(r.a)(Object(r.a)({},t),{},{global:!0}));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(0),o=n.n(r),i=n(5),a=n(77),c=[{key:"debug",name:"Debug",description:"Show inline debug information in the UI.",defaultValue:!1,requiresReload:!0},{key:"debugLocalBackup",name:"Debug local backup",description:o.a.createElement("span",null,"Log local backup operations to the"," ",o.a.createElement("a",{href:"https://sessionbuddy.com/console",target:"_blank",rel:"noopener"},"console"),"."),defaultValue:!1},{key:"debugSessionEvents",name:"Debug session changes",description:o.a.createElement("span",null,"Log session changes to the"," ",o.a.createElement("a",{href:"https://sessionbuddy.com/console",target:"_blank",rel:"noopener"},"console"),"."),defaultValue:!1,requiresReload:!0},{key:"removeTitleSuffixes",name:"Omit title suffixes",description:"Omit suffixes from titles of popular web sites.",defaultValue:!1,requiresReload:!0},{key:"omitSbTitleSuffix",name:"Omit Session Buddy suffix",description:'Omit the "Session Buddy" suffix in the application tab.',defaultValue:!1,requiresReload:!0},{key:"useThemeSensitiveFavicons",name:"Use theme sensitive favicons",description:"Use favicons that adapt to the current theme.",defaultValue:!0,requiresReload:!0},{key:"ingestMaxSize",name:"Maximum text size",description:'Maximum size (in bytes) allowed by "Add from text" and "Open from text". This limit also applies to non-JSON files selected for Import.',defaultValue:i.m,min:0,requiresReload:!0},{key:"enableAutoBackup",name:"Enable auto backup",description:"Enable automatic local backups of collections and events.",defaultValue:!0},{key:"backupWhenIdle",name:"Back up continuously",description:"Back up when data changes instead of just once a day. Requires auto backup to be enabled.",defaultValue:!1},{key:"backupCollectionsMax",name:"Maximum backup collections",description:"Maximum number of collections to include in local backups.",defaultValue:i.b,min:0},{key:"backupEventsMax",name:"Maximum backup events",description:"Maximum number of events to include in local backups.",defaultValue:i.b,min:0},{key:"backupChunkSize",name:"Backup chunk size",description:"Number of collections or events per local backup storage item.",defaultValue:i.a,min:1,max:100},{key:"copyCollectionsMax",name:"Maximum copy collections",description:"Maximum number of collections to allow for copying.",defaultValue:i.e,min:2,requiresReload:!0},{key:"warnOnOpenTabCount",name:"Warn on open tab count",description:"Warn before opening more than this number of tabs at once.",defaultValue:i.n,min:0,requiresReload:!0},{key:"optimizedOpenThreshold",name:"Optimized tab open threshold",description:"Suspend and delay tabs when opening more than this number of tabs if optimizations are enabled.",defaultValue:i.l,min:1,requiresReload:!0},{key:"optimizedOpenDelay",name:"Optimized tab open delay",description:"Delay (in milliseconds) between opening each tab when optimizations are in effect.",defaultValue:i.k,min:0,max:1e4},{key:"collectionFetchCountInitial",name:"Initial collection count",description:"Number of collection tiles to display on app start.",defaultValue:i.c,min:i.c},{key:"collectionFetchCountLazy",name:"Subsequent collection count",description:"Number of additional collection tiles to load while scrolling.",defaultValue:i.d,min:i.d},{key:"collectionFetchAll",name:"Load all collections",description:"Display all collection tiles on app load. May be slow.",defaultValue:!1},{key:"historyFetchCountInitial",name:"Initial history count",description:"Number of history tiles to display on app start.",defaultValue:i.f,min:i.f},{key:"historyFetchCountLazy",name:"Subsequent history count",description:"Number of additional history tiles to load while scrolling.",defaultValue:i.g,min:i.g},{key:"historyFetchAll",name:"Load all history",description:"Display all history tiles on app load. May be slow.",defaultValue:!1},{key:"highIdbUsageThreshold",name:"High IndexedDB usage threshold",description:"Size (in bytes) above which IndexedDB usage is considered high.",defaultValue:300*a.a,min:0},{key:"highExtensionStorageUsageThreshold",name:"High extension storage usage threshold",description:"Size (in bytes) above which extension storage usage is considered high.",defaultValue:100*a.a,min:0}]},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(150);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Object(r.a)(o.key),o)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},function(e,t,n){"use strict";var r=n(0),o=n.n(r);t.a=o.a.createContext(null)},,function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(138),o=n(137),i=n(91),a=n(139);function c(e){return Object(r.a)(e)||Object(o.a)(e)||Object(i.a)(e)||Object(a.a)()}},function(e,t,n){"use strict";var r=n(68);function o(e){var t=function(e,t){if("object"!==Object(r.a)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==Object(r.a)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Object(r.a)(t)?t:String(t)}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";function r(e,t){var n,r;return t&&t!==e.title?{title:t,titleOriginal:null!==(n=null!==(r=e.titleOriginal)&&void 0!==r?r:e.title)&&void 0!==n?n:""}:{}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(74);function o(e){return Object(r.a)(e).defaultView||window}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0);function o(e){var t=e.controlled,n=e.default,o=(e.name,e.state,r.useRef(void 0!==t).current),i=r.useState(n),a=i[0],c=i[1];return[o?t:a,r.useCallback((function(e){o||c(e)}),[])]}},function(e,t,n){"use strict";var r=n(218),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function u(e){return r.isMemo(e)?a:c[e.$$typeof]||o}c[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[r.Memo]=a;var l=Object.defineProperty,s=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=s(n);f&&(a=a.concat(f(n)));for(var c=u(t),v=u(n),b=0;b<a.length;++b){var m=a[b];if(!i[m]&&(!r||!r[m])&&(!v||!v[m])&&(!c||!c[m])){var y=d(n,m);try{l(t,m,y)}catch(g){}}}}return t}},function(e,t,n){"use strict";function r(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"===typeof o?o(n,r,e):t(o)}}}}var o=r();o.withExtraArgument=r,t.a=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l})),n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return f}));var r,o=n(57),i=n(6),a=n(5),c=Object(o.b)({name:"item-edit",initialState:{},reducers:{itemEditingStarted:function(e,t){var n=t.payload;e.context=n},itemEditingEnded:function(e){var t;null===(t=r)||void 0===t||t(),r=void 0,e.context=void 0}}}),u=c.actions.itemEditingEnded,l=c.reducer;function s(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).onEditingEnded;return function(t,n){var o=n(),u=o.content;if(!o.itemEdit.context&&1===u.sets.selectedSetIds.length){var l=u.sets.selectedSetIds[0],s=Object(i.g)(u.sets,l);if(s&&!Object(i.s)(u.sets,l)&&!Object(i.t)(u.sets,l)){var f=u.items,d=f.selectedUnitIds,p=f.selectedGroupIds;if(1!==d.length||p.length){if(1===p.length&&!d.length){var h,v=p[0];(null===(h=s.folders)||void 0===h?void 0:h.find((function(e){return e.id===v})))&&(r=e,t(c.actions.itemEditingStarted({type:"folder",id:v})))}}else{var b,m=d[0],y=Object(a.p)(null!==(b=s.folders)&&void 0!==b?b:[],(function(e){return e.id===m}));y.unit&&(r=e,t(c.actions.itemEditingStarted({type:"link",id:m})))}}}}}var f={context:function(e){return e.itemEdit.context}}},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0);function o(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var r=n(14),o=n(0),i="(prefers-color-scheme: dark)";function a(){var e,t;return!!(null===(e=(t=window).matchMedia)||void 0===e?void 0:e.call(t,i).matches)}var c,u=function(e){var t;null===(t=c)||void 0===t||t(e.matches)};function l(){var e,t;c&&(null===(e=(t=window).matchMedia)||void 0===e||e.call(t,i).removeEventListener("change",u),c=void 0)}var s=function(){var e=Object(o.useState)(a),t=Object(r.a)(e,2),n=t[0],s=t[1];return Object(o.useEffect)((function(){return function(e){var t,n;c||null===(t=(n=window).matchMedia)||void 0===t||t.call(n,i).addEventListener("change",u),c=e}(s),l}),[]),n}},function(e,t,n){"use strict";n.d(t,"d",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return s}));var r,o=n(57),i=n(6),a=Object(o.b)({name:"unit-add-session",initialState:{},reducers:{unitAddSessionStarted:function(e,t){var n=t.payload;e.context=n},unitAddSessionEnded:function(e){var t;null===(t=r)||void 0===t||t(),r=void 0,e.context=void 0}}}),c=a.actions.unitAddSessionEnded,u=a.reducer;function l(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).onSessionEnded;return function(t,n){var o=n().content;if(1===o.sets.selectedSetIds.length&&!o.sets.selectedClientHistoryItemId){var c=o.sets.selectedSetIds[0];if(!Object(i.s)(o.sets,c)&&!Object(i.t)(o.sets,c)){var u=Object(i.p)(o.sets,c);u&&(r=e,t(a.actions.unitAddSessionStarted({setId:c,setType:u})))}}}}var s={context:function(e){return e.unitAddSession.context}}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(157);function o(e,t){if(e){if("string"===typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t,n){"use strict";t.a={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},function(e,t,n){"use strict";var r=n(0),o=n.n(r).a.createContext(null);t.a=o},function(e,t,n){"use strict";var r="function"===typeof Symbol&&Symbol.for;t.a=r?Symbol.for("mui.nested"):"__THEME_NESTED__"},function(e,t,n){"use strict";function r(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}n.d(t,"a",(function(){return r}))},,,function(e,t,n){(function(t){var n=NaN,r="[object Symbol]",o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt,l="object"==typeof t&&t&&t.Object===Object&&t,s="object"==typeof self&&self&&self.Object===Object&&self,f=l||s||Function("return this")(),d=Object.prototype.toString,p=Math.max,h=Math.min,v=function(){return f.Date.now()};function b(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&d.call(e)==r}(e))return n;if(b(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=b(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var l=a.test(e);return l||c.test(e)?u(e.slice(2),l?2:8):i.test(e)?n:+e}e.exports=function(e,t,n){var r,o,i,a,c,u,l=0,s=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=r,i=o;return r=o=void 0,l=t,a=e.apply(i,n)}function g(e){var n=e-u;return void 0===u||n>=t||n<0||f&&e-l>=i}function w(){var e=v();if(g(e))return x(e);c=setTimeout(w,function(e){var n=t-(e-u);return f?h(n,i-(e-l)):n}(e))}function x(e){return c=void 0,d&&r?y(e):(r=o=void 0,a)}function O(){var e=v(),n=g(e);if(r=arguments,o=this,u=e,n){if(void 0===c)return function(e){return l=e,c=setTimeout(w,t),s?y(e):a}(u);if(f)return c=setTimeout(w,t),y(u)}return void 0===c&&(c=setTimeout(w,t)),a}return t=m(t)||0,b(n)&&(s=!!n.leading,i=(f="maxWait"in n)?p(m(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),O.cancel=function(){void 0!==c&&clearTimeout(c),l=0,r=u=o=c=void 0},O.flush=function(){return void 0===c?a:x(v())},O}}).call(this,n(136))},function(e){e.exports=JSON.parse('{"googleChromeWebStore":{"url":"https://chrome.google.com/webstore/","authoritativeBrowserConfig":"chrome"},"microsoftAddOnStore":{"url":"","authoritativeBrowserConfig":"edge"},"mozillaAddOnStore":{"url":"","authoritativeBrowserConfig":"firefox"},"operaAddOnStore":{"url":"https://addons.opera.com/","authoritativeBrowserConfig":"opera"},"appleMacAppStore":{"url":"","authoritativeBrowserConfig":"safari"}}')},function(e,t,n){e.exports=n(194)},function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,t){for(var n,a,c=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u<arguments.length;u++){for(var l in n=Object(arguments[u]))o.call(n,l)&&(c[l]=n[l]);if(r){a=r(n);for(var s=0;s<a.length;s++)i.call(n,a[s])&&(c[a[s]]=n[a[s]])}}return c}},function(e,t,n){(function(t){var n="__lodash_hash_undefined__",r="[object Function]",o="[object GeneratorFunction]",i=/^\[object .+?Constructor\]$/,a="object"==typeof t&&t&&t.Object===Object&&t,c="object"==typeof self&&self&&self.Object===Object&&self,u=a||c||Function("return this")();var l=Array.prototype,s=Function.prototype,f=Object.prototype,d=u["__core-js_shared__"],p=function(){var e=/[^.]+$/.exec(d&&d.keys&&d.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),h=s.toString,v=f.hasOwnProperty,b=f.toString,m=RegExp("^"+h.call(v).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),y=l.splice,g=C(u,"Map"),w=C(Object,"create");function x(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function O(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function j(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function k(e,t){for(var n,r,o=e.length;o--;)if((n=e[o][0])===(r=t)||n!==n&&r!==r)return o;return-1}function S(e){if(!I(e)||(t=e,p&&p in t))return!1;var t,n=function(e){var t=I(e)?b.call(e):"";return t==r||t==o}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}(e)?m:i;return n.test(function(e){if(null!=e){try{return h.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e))}function E(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function C(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return S(n)?n:void 0}function T(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a),a};return n.cache=new(T.Cache||j),n}function I(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}x.prototype.clear=function(){this.__data__=w?w(null):{}},x.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},x.prototype.get=function(e){var t=this.__data__;if(w){var r=t[e];return r===n?void 0:r}return v.call(t,e)?t[e]:void 0},x.prototype.has=function(e){var t=this.__data__;return w?void 0!==t[e]:v.call(t,e)},x.prototype.set=function(e,t){return this.__data__[e]=w&&void 0===t?n:t,this},O.prototype.clear=function(){this.__data__=[]},O.prototype.delete=function(e){var t=this.__data__,n=k(t,e);return!(n<0)&&(n==t.length-1?t.pop():y.call(t,n,1),!0)},O.prototype.get=function(e){var t=this.__data__,n=k(t,e);return n<0?void 0:t[n][1]},O.prototype.has=function(e){return k(this.__data__,e)>-1},O.prototype.set=function(e,t){var n=this.__data__,r=k(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},j.prototype.clear=function(){this.__data__={hash:new x,map:new(g||O),string:new x}},j.prototype.delete=function(e){return E(this,e).delete(e)},j.prototype.get=function(e){return E(this,e).get(e)},j.prototype.has=function(e){return E(this,e).has(e)},j.prototype.set=function(e,t){return E(this,e).set(e,t),this},T.Cache=j,e.exports=T}).call(this,n(136))},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(0),o=n(48),i=!0,a=!1,c=null,u={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function l(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function s(){i=!1}function f(){"hidden"===this.visibilityState&&a&&(i=!0)}function d(e){var t=e.target;try{return t.matches(":focus-visible")}catch(n){}return i||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!u[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function p(){a=!0,window.clearTimeout(c),c=window.setTimeout((function(){a=!1}),100)}function h(){return{isFocusVisible:d,onBlurVisible:p,ref:r.useCallback((function(e){var t,n=o.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",l,!0),t.addEventListener("mousedown",s,!0),t.addEventListener("pointerdown",s,!0),t.addEventListener("touchstart",s,!0),t.addEventListener("visibilitychange",f,!0))}),[])}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r,o=n(0),i=n.n(o),a=["svgRef","title"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var l=function(e){var t=e.svgRef,n=e.title,o=u(e,a);return i.a.createElement("svg",c({width:18,height:18,viewBox:"0 0 28 28",ref:t},o),n?i.a.createElement("title",null,n):null,r||(r=i.a.createElement("path",{clipRule:"evenodd",d:"M5.5 2C4.5 2 4 2.948 4 3.5V24.5C4 25.5 5 26 5.5 26H22.5C23.0523 26 24 25.5 24 24.5V10C24 9.5 24 9 23.5 8.5L17.5 2.5C17 2 16.5 2 16.1716 2H5.5ZM6 5C6 4.448 6.448 4 7 4H15V9.5C15 10.0523 15.448 10.5 16 10.5H22V23C22 23.552 21.552 24 21 24H7C6.448 24 6 23.552 6 23V5ZM20.6716 8.5L17 4.82843V8.5H20.6716Z",fill:"currentColor",fillRule:"evenodd"})))},s=i.a.forwardRef((function(e,t){return i.a.createElement(l,c({svgRef:t},e))}));n.p},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r,o=n(0),i=n.n(o),a=["svgRef","title"];function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var l=function(e){var t=e.svgRef,n=e.title,o=u(e,a);return i.a.createElement("svg",c({height:1024,width:1024,viewBox:"0 0 1024 1024",fill:"currentColor",ref:t},o),n?i.a.createElement("title",null,n):null,r||(r=i.a.createElement("path",{d:"M85.333 682.667 85.333 341.333 170.667 341.333 298.667 469.333 426.667 341.333 512 341.333 512 682.667 426.667 682.667 426.667 462.08 298.667 590.08 170.667 462.08 170.667 682.667 85.333 682.667M682.667 341.333 810.667 341.333 810.667 512 917.333 512 746.667 704 576 512 682.667 512 682.667 341.333Z"})))},s=i.a.forwardRef((function(e,t){return i.a.createElement(l,c({svgRef:t},e))}));n.p},,,function(e,t,n){"use strict";var r=n(54),o=n(15),i=n(255),a=n(4),c=["xs","sm","md","lg","xl"];function u(e,t,n){var o;return Object(a.a)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),Object(a.a)({paddingLeft:t(2),paddingRight:t(2)},n,Object(r.a)({},e.up("sm"),Object(a.a)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(o={minHeight:56},Object(r.a)(o,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),Object(r.a)(o,e.up("sm"),{minHeight:64}),o)},n)}var l=n(204),s={black:"#000",white:"#fff"},f={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},d={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},p={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},h={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},v={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},b={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},m={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},y=n(60),g={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:s.white,default:f[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},w={text:{primary:s.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:f[800],default:"#303030"},action:{active:s.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function x(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Object(y.e)(e.main,o):"dark"===t&&(e.dark=Object(y.b)(e.main,i)))}function O(e){return Math.round(1e5*e)/1e5}function j(e){return O(e)}var k={textTransform:"uppercase"},S='"Roboto", "Helvetica", "Arial", sans-serif';function E(e,t){var n="function"===typeof t?t(e):t,r=n.fontFamily,c=void 0===r?S:r,u=n.fontSize,l=void 0===u?14:u,s=n.fontWeightLight,f=void 0===s?300:s,d=n.fontWeightRegular,p=void 0===d?400:d,h=n.fontWeightMedium,v=void 0===h?500:h,b=n.fontWeightBold,m=void 0===b?700:b,y=n.htmlFontSize,g=void 0===y?16:y,w=n.allVariants,x=n.pxToRem,E=Object(o.a)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var C=l/14,T=x||function(e){return"".concat(e/g*C,"rem")},I=function(e,t,n,r,o){return Object(a.a)({fontFamily:c,fontWeight:e,fontSize:T(t),lineHeight:n},c===S?{letterSpacing:"".concat(O(r/t),"em")}:{},o,w)},P={h1:I(f,96,1.167,-1.5),h2:I(f,60,1.2,-.5),h3:I(p,48,1.167,0),h4:I(p,34,1.235,.25),h5:I(p,24,1.334,0),h6:I(v,20,1.6,.15),subtitle1:I(p,16,1.75,.15),subtitle2:I(v,14,1.57,.1),body1:I(p,16,1.5,.15),body2:I(p,14,1.43,.15),button:I(v,14,1.75,.4,k),caption:I(p,12,1.66,.4),overline:I(p,12,2.66,1,k)};return Object(i.a)(Object(a.a)({htmlFontSize:g,pxToRem:T,round:j,fontFamily:c,fontSize:l,fontWeightLight:f,fontWeightRegular:p,fontWeightMedium:v,fontWeightBold:m},P),E,{clone:!1})}function C(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var T=["none",C(0,2,1,-1,0,1,1,0,0,1,3,0),C(0,3,1,-2,0,2,2,0,0,1,5,0),C(0,3,3,-2,0,3,4,0,0,1,8,0),C(0,2,4,-1,0,4,5,0,0,1,10,0),C(0,3,5,-1,0,5,8,0,0,1,14,0),C(0,3,5,-1,0,6,10,0,0,1,18,0),C(0,4,5,-2,0,7,10,1,0,2,16,1),C(0,5,5,-3,0,8,10,1,0,3,14,2),C(0,5,6,-3,0,9,12,1,0,3,16,2),C(0,6,6,-3,0,10,14,1,0,4,18,3),C(0,6,7,-4,0,11,15,1,0,4,20,3),C(0,7,8,-4,0,12,17,2,0,5,22,4),C(0,7,8,-4,0,13,19,2,0,5,24,4),C(0,7,9,-4,0,14,21,2,0,5,26,4),C(0,8,9,-5,0,15,22,2,0,6,28,5),C(0,8,10,-5,0,16,24,2,0,6,30,5),C(0,8,11,-5,0,17,26,2,0,6,32,5),C(0,9,11,-5,0,18,28,2,0,7,34,6),C(0,9,12,-6,0,19,29,2,0,7,36,6),C(0,10,13,-6,0,20,31,3,0,8,38,7),C(0,10,13,-6,0,21,33,3,0,8,40,7),C(0,10,14,-6,0,22,35,3,0,8,42,7),C(0,11,14,-7,0,23,36,3,0,9,44,8),C(0,11,15,-7,0,24,38,3,0,9,46,8)],I={borderRadius:4},P=n(101),L=(n(119),n(68));var _=function(e,t){return t?Object(i.a)(e,t,{clone:!1}):e},R={xs:0,sm:600,md:960,lg:1280,xl:1920},N={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(R[e],"px)")}};var M={m:"margin",p:"padding"},A={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},D={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},F=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){if(e.length>2){if(!D[e])return[e];e=D[e]}var t=e.split(""),n=Object(P.a)(t,2),r=n[0],o=n[1],i=M[r],a=A[o]||"";return Array.isArray(a)?a.map((function(e){return i+e})):[i+a]})),z=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function B(e){var t=e.spacing||8;return"number"===typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"===typeof t?t:function(){}}function H(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"===typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function U(e){var t=B(e.theme);return Object.keys(e).map((function(n){if(-1===z.indexOf(n))return null;var r=H(F(n),t),o=e[n];return function(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||N;return t.reduce((function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e}),{})}if("object"===Object(L.a)(t)){var o=e.theme.breakpoints||N;return Object.keys(t).reduce((function(e,r){return e[o.up(r)]=n(t[r]),e}),{})}return n(t)}(e,o,r)})).reduce(_,{})}U.propTypes={},U.filterProps=z;var W=n(123),q=n(166);function G(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,O=void 0===r?{}:r,j=e.palette,k=void 0===j?{}:j,S=e.spacing,C=e.typography,P=void 0===C?{}:C,L=Object(o.a)(e,["breakpoints","mixins","palette","spacing","typography"]),_=function(e){var t=e.primary,n=void 0===t?{light:d[300],main:d[500],dark:d[700]}:t,r=e.secondary,c=void 0===r?{light:p.A200,main:p.A400,dark:p.A700}:r,u=e.error,O=void 0===u?{light:h[300],main:h[500],dark:h[700]}:u,j=e.warning,k=void 0===j?{light:v[300],main:v[500],dark:v[700]}:j,S=e.info,E=void 0===S?{light:b[300],main:b[500],dark:b[700]}:S,C=e.success,T=void 0===C?{light:m[300],main:m[500],dark:m[700]}:C,I=e.type,P=void 0===I?"light":I,L=e.contrastThreshold,_=void 0===L?3:L,R=e.tonalOffset,N=void 0===R?.2:R,M=Object(o.a)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function A(e){return Object(y.d)(e,w.text.primary)>=_?w.text.primary:g.text.primary}var D=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=Object(a.a)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(Object(l.a)(4,t));if("string"!==typeof e.main)throw new Error(Object(l.a)(5,JSON.stringify(e.main)));return x(e,"light",n,N),x(e,"dark",r,N),e.contrastText||(e.contrastText=A(e.main)),e},F={dark:w,light:g};return Object(i.a)(Object(a.a)({common:s,type:P,primary:D(n),secondary:D(c,"A400","A200","A700"),error:D(O),warning:D(k),info:D(E),success:D(T),grey:f,contrastThreshold:_,getContrastText:A,augmentColor:D,tonalOffset:N},F[P]),M)}(k),R=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,i=void 0===r?"px":r,u=e.step,l=void 0===u?5:u,s=Object(o.a)(e,["values","unit","step"]);function f(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(i,")")}function d(e,t){var r=c.indexOf(t);return r===c.length-1?f(e):"@media (min-width:".concat("number"===typeof n[e]?n[e]:e).concat(i,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[c[r+1]]?n[c[r+1]]:t)-l/100).concat(i,")")}return Object(a.a)({keys:c,values:n,up:f,down:function(e){var t=c.indexOf(e)+1,r=n[c[t]];return t===c.length?f("xs"):"@media (max-width:".concat(("number"===typeof r&&t>0?r:e)-l/100).concat(i,")")},between:d,only:function(e){return d(e,e)},width:function(e){return n[e]}},s)}(n),N=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=B({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"===typeof e)return e;var n=t(e);return"number"===typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}(S),M=Object(i.a)({breakpoints:R,direction:"ltr",mixins:u(R,N,O),overrides:{},palette:_,props:{},shadows:T,typography:E(_,P),spacing:N,shape:I,transitions:W.a,zIndex:q.a},L),A=arguments.length,D=new Array(A>1?A-1:0),F=1;F<A;F++)D[F-1]=arguments[F];return M=D.reduce((function(e,t){return Object(i.a)(e,t)}),M)}t.a=G},,function(e,t,n){"use strict";var r=n(4),o=n(222),i=n(143);t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(o.a)(e,Object(r.a)({defaultTheme:i.a},t))}},,,,,,,,function(e,t,n){"use strict";var r=n(175),o="function"===typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,c=o?Symbol.for("react.fragment"):60107,u=o?Symbol.for("react.strict_mode"):60108,l=o?Symbol.for("react.profiler"):60114,s=o?Symbol.for("react.provider"):60109,f=o?Symbol.for("react.context"):60110,d=o?Symbol.for("react.forward_ref"):60112,p=o?Symbol.for("react.suspense"):60113,h=o?Symbol.for("react.memo"):60115,v=o?Symbol.for("react.lazy"):60116,b="function"===typeof Symbol&&Symbol.iterator;function m(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g={};function w(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||y}function x(){}function O(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||y}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(m(85));this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},x.prototype=w.prototype;var j=O.prototype=new x;j.constructor=O,r(j,w.prototype),j.isPureReactComponent=!0;var k={current:null},S=Object.prototype.hasOwnProperty,E={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,n){var r,o={},a=null,c=null;if(null!=t)for(r in void 0!==t.ref&&(c=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,r)&&!E.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){for(var l=Array(u),s=0;s<u;s++)l[s]=arguments[s+2];o.children=l}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===o[r]&&(o[r]=u[r]);return{$$typeof:i,type:e,key:a,ref:c,props:o,_owner:k.current}}function T(e){return"object"===typeof e&&null!==e&&e.$$typeof===i}var I=/\/+/g,P=[];function L(e,t,n,r){if(P.length){var o=P.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function _(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>P.length&&P.push(e)}function R(e,t,n,r){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var c=!1;if(null===e)c=!0;else switch(o){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case i:case a:c=!0}}if(c)return n(r,e,""===t?"."+M(e,0):t),1;if(c=0,t=""===t?".":t+":",Array.isArray(e))for(var u=0;u<e.length;u++){var l=t+M(o=e[u],u);c+=R(o,l,n,r)}else if(null===e||"object"!==typeof e?l=null:l="function"===typeof(l=b&&e[b]||e["@@iterator"])?l:null,"function"===typeof l)for(e=l.call(e),u=0;!(o=e.next()).done;)c+=R(o=o.value,l=t+M(o,u++),n,r);else if("object"===o)throw n=""+e,Error(m(31,"[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return c}function N(e,t,n){return null==e?0:R(e,"",t,n)}function M(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function A(e,t){e.func.call(e.context,t,e.count++)}function D(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?F(e,r,n,(function(e){return e})):null!=e&&(T(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(I,"$&/")+"/")+n)),r.push(e))}function F(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(I,"$&/")+"/"),N(e,D,t=L(t,i,r,o)),_(t)}var z={current:null};function B(){var e=z.current;if(null===e)throw Error(m(321));return e}var H={ReactCurrentDispatcher:z,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:k,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return F(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;N(e,A,t=L(null,null,t,n)),_(t)},count:function(e){return N(e,(function(){return null}),null)},toArray:function(e){var t=[];return F(e,t,null,(function(e){return e})),t},only:function(e){if(!T(e))throw Error(m(143));return e}},t.Component=w,t.Fragment=c,t.Profiler=l,t.PureComponent=O,t.StrictMode=u,t.Suspense=p,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=H,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(m(267,e));var o=r({},e.props),a=e.key,c=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(c=t.ref,u=k.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)S.call(t,s)&&!E.hasOwnProperty(s)&&(o[s]=void 0===t[s]&&void 0!==l?l[s]:t[s])}var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){l=Array(s);for(var f=0;f<s;f++)l[f]=arguments[f+2];o.children=l}return{$$typeof:i,type:e.type,key:a,ref:c,props:o,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:f,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:d,render:e}},t.isValidElement=T,t.lazy=function(e){return{$$typeof:v,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return B().useCallback(e,t)},t.useContext=function(e,t){return B().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return B().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return B().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return B().useLayoutEffect(e,t)},t.useMemo=function(e,t){return B().useMemo(e,t)},t.useReducer=function(e,t,n){return B().useReducer(e,t,n)},t.useRef=function(e){return B().useRef(e)},t.useState=function(e){return B().useState(e)},t.version="16.14.0"},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function c(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,l=[],s=!1,f=-1;function d(){s&&u&&(s=!1,u.length?l=u.concat(l):f=-1,l.length&&p())}function p(){if(!s){var e=c(d);s=!0;for(var t=l.length;t;){for(u=l,l=[];++f<t;)u&&u[f].run();f=-1,t=l.length}u=null,s=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function v(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new h(e,t)),1!==l.length||s||c(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t){t.parse=function(e,t){if(t?t.offsets="undefined"===typeof t.offsets||t.offsets:t={offsets:!0},e||(e=""),-1!==e.indexOf(":")||t.tokenize){if(t.keywords||t.ranges||t.tokenize){var n={text:[]};t.offsets&&(n.offsets=[]);for(var r,o={},i=[],a=/(\S+:'(?:[^'\\]|\\.)*')|(\S+:"(?:[^"\\]|\\.)*")|(-?"(?:[^"\\]|\\.)*")|(-?'(?:[^'\\]|\\.)*')|\S+|\S+:\S+/g;null!==(r=a.exec(e));){var c,u=(c=r[0]).indexOf(":");if(-1!==u){c.split(":");var l=c.slice(0,u),s=c.slice(u+1);s=((s=s.replace(/^\"|\"$|^\'|\'$/g,""))+"").replace(/\\(.?)/g,(function(e,t){switch(t){case"\\":return"\\";case"0":return"\0";case"":return"";default:return t}})),i.push({keyword:l,value:s,offsetStart:r.index,offsetEnd:r.index+c.length})}else{var f=!1;"-"===c[0]&&(f=!0,c=c.slice(1)),c=((c=c.replace(/^\"|\"$|^\'|\'$/g,""))+"").replace(/\\(.?)/g,(function(e,t){switch(t){case"\\":return"\\";case"0":return"\0";case"":return"";default:return t}})),f?o.text?(o.text instanceof Array||(o.text=[o.text]),o.text.push(c)):o.text=c:i.push({text:c,offsetStart:r.index,offsetEnd:r.index+c.length})}}for(i.reverse();c=i.pop();)if(c.text)n.text.push(c.text),t.offsets&&n.offsets.push(c);else{l=c.keyword;t.keywords=t.keywords||[];var d=!1,p=!1;if(/^-/.test(l)){if("-"===l[0]){var h=l.slice(1);(d=!(-1===t.keywords.indexOf(h)))&&(l=h,p=!0)}}else d=!(-1===t.keywords.indexOf(l));t.ranges=t.ranges||[];var v=!(-1===t.ranges.indexOf(l));if(d){if(t.offsets&&n.offsets.push({keyword:l,value:c.value,offsetStart:p?c.offsetStart+1:c.offsetStart,offsetEnd:c.offsetEnd}),(m=c.value).length){var b=m.split(",");p?o[l]?o[l]instanceof Array?b.length>1?o[l]=o[l].concat(b):o[l].push(m):(o[l]=[o[l]],o[l].push(m)):b.length>1?o[l]=b:t.alwaysArray?o[l]=[m]:o[l]=m:n[l]?n[l]instanceof Array?b.length>1?n[l]=n[l].concat(b):n[l].push(m):(n[l]=[n[l]],n[l].push(m)):b.length>1?n[l]=b:t.alwaysArray?n[l]=[m]:n[l]=m}}else if(v){t.offsets&&n.offsets.push(c);var m,y=(m=c.value).split("-");n[l]={},2===y.length?(n[l].from=y[0],n[l].to=y[1]):!y.length%2||(n[l].from=m)}else{var g=c.keyword+":"+c.value;n.text.push(g),t.offsets&&n.offsets.push({text:g,offsetStart:c.offsetStart,offsetEnd:c.offsetEnd})}}return n.text.length?t.tokenize||(n.text=n.text.join(" ").trim()):delete n.text,n.exclude=o,n}return e}return e},t.stringify=function(e,n,r){if(n||(n={offsets:!0}),!e)return"";if("string"===typeof e)return e;if(Array.isArray(e))return e.join(" ");if(!Object.keys(e).length)return"";if(3===Object.keys(e).length&&e.text&&e.offsets&&e.exclude&&"string"===typeof e.text)return e.text;r||(r="");var o=function(e){return e.indexOf(" ")>-1?JSON.stringify(e):e},i=function(e){return r+e},a=[];if(e.text){var c=[];"string"===typeof e.text?c.push(e.text):c.push.apply(c,e.text),c.length>0&&a.push(c.map(o).map(i).join(" "))}return n.keywords&&n.keywords.forEach((function(t){if(e[t]){var n=[];"string"===typeof e[t]?n.push(e[t]):n.push.apply(n,e[t]),n.length>0&&a.push(i(t+":"+n.map(o).join(",")))}})),n.ranges&&n.ranges.forEach((function(t){if(e[t]){var n=e[t].from,r=e[t].to;r&&(n=n+"-"+r),n&&a.push(i(t+":"+n))}})),e.exclude&&Object.keys(e.exclude).length>0&&a.push(t.stringify(e.exclude,n,"-")),a.join(" ")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(0),o=n.n(r),i=n(11),a=n(28),c=function(e){var t=e.children;return o.a.createElement(i.a,{store:a.a},t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(2),o=n(14),i=n(0),a=n(29),c=n(100),u=n(28),l=n(17);function s(){s=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(I){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),c=new E(o||[]);return r(a,"_invoke",{value:O(e,n,c)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(I){return{type:"throw",arg:I}}}e.wrap=l;var d={};function p(){}function h(){}function v(){}var b={};u(b,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(C([])));y&&y!==t&&n.call(y,i)&&(b=y);var g=v.prototype=p.prototype=Object.create(b);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function o(r,i,a,c){var u=f(e[r],e,i);if("throw"!==u.type){var l=u.arg,s=l.value;return s&&"object"==typeof s&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function O(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=j(a,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function j(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,j(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return h.prototype=v,r(g,"constructor",{value:v,configurable:!0}),r(v,"constructor",{value:h,configurable:!0}),h.displayName=u(v,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,u(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},w(x.prototype),u(x.prototype,a,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new x(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(g),u(g,c,"Generator"),u(g,i,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=C,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}var f=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).skipRemoteConfig,t=Object(u.b)(),n=Object(i.useState)(!1),f=Object(o.a)(n,2),d=f[0],p=f[1];return Object(i.useEffect)((function(){function n(){return(n=Object(r.a)(s().mark((function n(){var r,o,i;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(a.b)();case 2:return r=n.sent,o=r.id,i=r.settings,n.next=7,t(Object(l.e)());case 7:if(e){n.next=12;break}return n.next=10,i.get("shareUsageStats");case 10:n.sent&&Object(c.a)({clientId:o});case 12:p(!0);case 13:case"end":return n.stop()}}),n)})))).apply(this,arguments)}!function(){n.apply(this,arguments)}()}),[t,e]),d}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(1),o=n(182),i="hsl(0, 0%, 50%)",a={type:"light",primary:{main:"#007acc",light:"hsl(204, 100%, 45%)",contrastText:"#fff",secondaryContrastText:"hsla(0, 0%, 100%, 0.74)"},secondary:{main:"#474747",light:"#474747",dark:"#474747",contrastText:"#fff"},success:{main:"#00d400"},error:{main:"#b94b43",light:"#b8000699",contrastText:"#fff",secondaryContrastText:"hsla(0, 0%, 100%, 0.74)"},info:{main:"hsl(0, 0%, 93%)",contrastText:"hsl(0, 0%, 45%)"},text:{primary:"#000",secondary:"#8c8c8c"},background:{paper:"#fff",secondaryPaper:"hsla(0, 0%, 0%, 8%)",default:"#fff",secondaryDefault:"#f0f3f4",popup:"#3c3c3c",secondary:"hsla(0, 0%, 0%, 4%)"},divider:"#e6e6e6",tonalOffset:{light:.2,dark:.2},nxsSet:{red:{main:"#f74e4e"},orange:{main:"#ffa500"},yellow:{main:"#d2d200"},green:{main:"#18db08"},teal:{main:"#1dcccc"},blue:{main:"#199df5"},purple:{main:"#cc4bff"},pink:{main:"#ff9ad9"},brown:{main:"#bd8264"},gray:{main:"#cdcdcd"},neutral:{main:"#888"}},nxsAction:{hover:{main:"rgba(0, 0, 0, 0.04)",contrastText:"#000",dark:"rgb(204, 204, 204)"},focus:{main:"rgba(0, 0, 0, 0.08)",contrastText:"#000"},active:{main:"rgba(0, 0, 0, 0.12)",contrastText:"#000"},selected:{main:"rgba(0, 0, 0, 0.08)",contrastText:"#000",secondaryContrastText:"rgb(99, 99, 99)"}},nxsSetIcon:{client:{main:"#f93",contrastText:"#fff"},event:{main:"#8571ff",contrastText:"#fff"},collection:{main:"#38c300",contrastText:"#fff"}},nxsTimelineMarker:{neutral:{main:"hsl(0, 0%, 70%)",light:"hsl(0, 0%, 93%)"},constructive:{main:"rgb(115, 177, 101)",light:"rgb(217, 239, 211)"},destructive:{main:"rgb(214, 165, 116)",light:"rgb(255, 236, 226)"}},nxsUrl:{link:{main:"#8c8c8c"},hover:{main:"#007acc"},visited:{main:"#551a8b"}}},c="rgb(241, 241, 241)",u={type:"dark",primary:{main:"#005c9b",dark:"hsl(204, 90%, 26%)",contrastText:"#fff",secondaryContrastText:"hsla(0, 0%, 100%, 0.74)"},secondary:{main:"#f1f1f1",dark:"#f1f1f1",light:"#f1f1f1",contrastText:"#000"},success:{main:"#00d400"},error:{main:"#732b2b",light:"#ffa2a2",contrastText:"#fff",secondaryContrastText:"hsla(0, 0%, 100%, 0.74)"},info:{main:"#83838375",contrastText:"#dadada"},text:{primary:c,secondary:"#b3b3b3"},background:{paper:"#424242",secondaryPaper:"hsla(0, 0%, 100%, 22%)",default:"#1e1e1e",secondaryDefault:"#2b2b2b",popup:"#666",secondary:"hsla(0, 0%, 100%, 4%)"},divider:"#757575",tonalOffset:{light:.2,dark:.16},nxsSet:{red:{main:"#ff4343"},orange:{main:"#dd6700"},yellow:{main:"#e9b80d"},green:{main:"#21aa16"},teal:{main:"#00b8aa"},blue:{main:"#0078ca"},purple:{main:"#ba59de"},pink:{main:"#ff4c9a"},brown:{main:"#91614a"},gray:{main:"#888"},neutral:{main:c}},nxsAction:{hover:{main:"rgba(255, 255, 255, 0.09)",contrastText:"rgb(241, 241, 241)",light:"rgb(77, 77, 77)"},focus:{main:"rgba(255, 255, 255, 0.16)",contrastText:"rgb(241, 241, 241)"},active:{main:"rgba(255, 255, 255, 0.24)",contrastText:"rgb(241, 241, 241)"},selected:{main:"rgba(255, 255, 255, 0.16)",contrastText:"#fff",secondaryContrastText:"hsla(0, 0%, 100%, 0.62)"}},nxsSetIcon:{client:{main:"#d08343",contrastText:"#fff"},event:{main:"#7072fd",contrastText:"#fff"},collection:{main:"#51b21d",contrastText:"#fff"}},nxsTimelineMarker:{neutral:{main:"hsl(0, 0%, 60%)"},constructive:{main:"rgb(115, 177, 101)"},destructive:{main:"rgb(214, 165, 116)"}},nxsUrl:{link:{main:"#a4a4a4"},hover:{main:"#6ba3fc"},visited:{main:"#bd79fc"}}};function l(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0]?u:a,t=Object(o.a)({props:{MuiButtonBase:{disableRipple:!0},MuiButton:{disableElevation:!0},MuiTooltip:{arrow:!0}},typography:{button:{fontSize:"1rem",fontWeight:400,textTransform:"none"}},palette:e,shape:{borderRadiusSmall:8,borderRadius:10,borderRadiusLarge:12}});t.palette.nxsSet=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{red:c(e.red),orange:c(e.orange),yellow:c(e.yellow),green:c(e.green),teal:c(e.teal),blue:c(e.blue),purple:c(e.purple),pink:c(e.pink),brown:c(e.brown),gray:c(e.gray),neutral:c(e.neutral)}}(e.nxsSet),t.palette.nxsAction=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{hover:c(e.hover),focus:c(e.focus),active:c(e.active),selected:c(e.selected)}}(e.nxsAction),t.palette.nxsSetIcon=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{client:c(e.client),event:c(e.event),collection:c(e.collection)}}(e.nxsSetIcon),t.palette.nxsTimelineMarker=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n={light:t};return{neutral:c(e.neutral,n),constructive:c(e.constructive,n),destructive:c(e.destructive,n)}}(e.nxsTimelineMarker,t.palette.background.default),t.palette.nxsUrl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{link:c(e.link),visited:c(e.visited),hover:c(e.hover),active:c(e.active),focus:c(e.focus)}}(e.nxsUrl);var n=("dark"===t.palette.type?["0.6","0.42","0.36"]:["0.2","0.14","0.12"]).map((function(e){return"rgba(0,0,0,".concat(e,")")}));return t.shadows=["none","0px 2px 1px -1px ".concat(n[0],",0px 1px 1px 0px ").concat(n[1],",0px 1px 3px 0px ").concat(n[2]),"0px 3px 1px -2px ".concat(n[0],",0px 2px 2px 0px ").concat(n[1],",0px 1px 5px 0px ").concat(n[2]),"0px 3px 3px -2px ".concat(n[0],",0px 3px 4px 0px ").concat(n[1],",0px 1px 8px 0px ").concat(n[2]),"0px 2px 4px -1px ".concat(n[0],",0px 4px 5px 0px ").concat(n[1],",0px 1px 10px 0px ").concat(n[2]),"0px 3px 5px -1px ".concat(n[0],",0px 5px 8px 0px ").concat(n[1],",0px 1px 14px 0px ").concat(n[2]),"0px 3px 5px -1px ".concat(n[0],",0px 6px 10px 0px ").concat(n[1],",0px 1px 18px 0px ").concat(n[2]),"0px 4px 5px -2px ".concat(n[0],",0px 7px 10px 1px ").concat(n[1],",0px 2px 16px 1px ").concat(n[2]),"0px 5px 5px -3px ".concat(n[0],",0px 8px 10px 1px ").concat(n[1],",0px 3px 14px 2px ").concat(n[2]),"0px 5px 6px -3px ".concat(n[0],",0px 9px 12px 1px ").concat(n[1],",0px 3px 16px 2px ").concat(n[2]),"0px 6px 6px -3px ".concat(n[0],",0px 10px 14px 1px ").concat(n[1],",0px 4px 18px 3px ").concat(n[2]),"0px 6px 7px -4px ".concat(n[0],",0px 11px 15px 1px ").concat(n[1],",0px 4px 20px 3px ").concat(n[2]),"0px 7px 8px -4px ".concat(n[0],",0px 12px 17px 2px ").concat(n[1],",0px 5px 22px 4px ").concat(n[2]),"0px 7px 8px -4px ".concat(n[0],",0px 13px 19px 2px ").concat(n[1],",0px 5px 24px 4px ").concat(n[2]),"0px 7px 9px -4px ".concat(n[0],",0px 14px 21px 2px ").concat(n[1],",0px 5px 26px 4px ").concat(n[2]),"0px 8px 9px -5px ".concat(n[0],",0px 15px 22px 2px ").concat(n[1],",0px 6px 28px 5px ").concat(n[2]),"0px 8px 10px -5px ".concat(n[0],",0px 16px 24px 2px ").concat(n[1],",0px 6px 30px 5px ").concat(n[2]),"0px 8px 11px -5px ".concat(n[0],",0px 17px 26px 2px ").concat(n[1],",0px 6px 32px 5px ").concat(n[2]),"0px 9px 11px -5px ".concat(n[0],",0px 18px 28px 2px ").concat(n[1],",0px 7px 34px 6px ").concat(n[2]),"0px 9px 12px -6px ".concat(n[0],",0px 19px 29px 2px ").concat(n[1],",0px 7px 36px 6px ").concat(n[2]),"0px 10px 13px -6px ".concat(n[0],",0px 20px 31px 3px ").concat(n[1],",0px 8px 38px 7px ").concat(n[2]),"0px 10px 13px -6px ".concat(n[0],",0px 21px 33px 3px ").concat(n[1],",0px 8px 40px 7px ").concat(n[2]),"0px 10px 14px -6px ".concat(n[0],",0px 22px 35px 3px ").concat(n[1],",0px 8px 42px 7px ").concat(n[2]),"0px 11px 14px -7px ".concat(n[0],",0px 23px 36px 3px ").concat(n[1],",0px 9px 44px 8px ").concat(n[2]),"0px 11px 15px -7px ".concat(n[0],",0px 24px 38px 3px ").concat(n[1],",0px 9px 46px 8px ").concat(n[2])],t.overrides={MuiButton:{root:{borderRadius:t.shape.borderRadiusSmall}},MuiCheckbox:{root:{marginTop:-9,marginBottom:-9}},MuiDialog:{scrollPaper:{alignItems:"flex-start","& div.MuiDialog-paper":{transform:"translate(0, 120px)"}},paperScrollBody:{verticalAlign:"top"}},MuiDialogTitle:{root:{paddingBottom:0}},MuiDialogContent:{root:{padding:t.spacing(2,3),textAlign:"center"}},MuiDialogContentText:{root:{marginBottom:0}},MuiFormControlLabel:{root:{marginRight:0}},MuiList:{root:{outline:"none"}},MuiListItem:{button:{transition:"none"}},MuiListItemIcon:{root:{minWidth:30,color:"dark"===t.palette.type?"rgba(255, 255, 255, 0.7)":"rgba(0, 0, 0, 0.7)","& svg":{width:18,height:18}}},MuiDivider:{root:{margin:4}},MuiMenuItem:{root:{paddingTop:4,paddingBottom:4,"&:hover, &:focus":{backgroundColor:t.palette.nxsAction.hover.main}},gutters:{paddingRight:t.spacing(3)}},MuiSelect:{root:{paddingLeft:t.spacing(1)}},MuiSnackbarContent:{root:{color:"#fff",fontSize:"1em",padding:t.spacing(1,3)},action:{"& button":{marginLeft:14,color:"#fff","&:hover, &:focus":{color:"#fff",backgroundColor:"rgba(255, 255, 255, 0.26)"}},"& .MuiButton-root":{backgroundColor:"rgba(255, 255, 255, 0.14)"},"& .MuiIconButton-root":{padding:t.spacing(.6)}}},MuiTabs:{indicator:{transitionDuration:"150ms",height:3,backgroundColor:t.palette.text.primary},flexContainer:{borderBottom:"1px solid ".concat(t.palette.divider)}},MuiTab:{textColorPrimary:{color:t.palette.text.primary,"&.Mui-selected":{color:t.palette.text.primary}}},MuiTextField:{root:{"& .Mui-error":{color:t.palette.error.light,"&.MuiInput-underline:after":{borderBottomColor:t.palette.error.light}}}},MuiTooltip:{tooltip:{fontSize:"0.86rem",backgroundColor:t.palette.background.popup,whiteSpace:"pre-wrap",padding:"6px 12px",borderRadius:t.shape.borderRadiusSmall},arrow:{color:t.palette.background.popup}},MuiTypography:{colorError:{color:t.palette.error.light}}},t;function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.palette.augmentColor(Object(r.a)(Object(r.a)(Object(r.a)({},n),e),{},{main:e.main||n.main||i}))}}},function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,"a",(function(){return r}))},function(e,t){e.exports=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";function r(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),o=n.n(r),i=n(167);function a(){return o.a.useContext(i.a)}},function(e,t,n){"use strict";var r=n(4),o=n(15),i=n(0),a=n.n(i),c=n(48),u=n(19),l=n(44),s=n(82),f=n(23),d=n(177),p=n(119),h=n(76),v=n(129),b=n(117),m=n(147);function y(e,t){var n=Object.create(null);return e&&i.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Object(i.isValidElement)(e)?t(e):e}(e)})),n}function g(e,t,n){return null!=n[t]?n[t]:e.props[t]}function w(e,t,n){var r=y(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var c={};for(var u in t){if(o[u])for(r=0;r<o[u].length;r++){var l=o[u][r];c[o[u][r]]=n(l)}c[u]=n(u)}for(r=0;r<i.length;r++)c[i[r]]=n(i[r]);return c}(t,r);return Object.keys(o).forEach((function(a){var c=o[a];if(Object(i.isValidElement)(c)){var u=a in t,l=a in r,s=t[a],f=Object(i.isValidElement)(s)&&!s.props.in;!l||u&&!f?l||!u||f?l&&u&&Object(i.isValidElement)(s)&&(o[a]=Object(i.cloneElement)(c,{onExited:n.bind(null,c),in:s.props.in,exit:g(c,"exit",e),enter:g(c,"enter",e)})):o[a]=Object(i.cloneElement)(c,{in:!1}):o[a]=Object(i.cloneElement)(c,{onExited:n.bind(null,c),in:!0,exit:g(c,"exit",e),enter:g(c,"enter",e)})}})),o}var x=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},O=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Object(v.a)(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Object(b.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,y(n.children,(function(e){return Object(i.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:g(e,"appear",n),enter:g(e,"enter",n),exit:g(e,"exit",n)})}))):w(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=y(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Object(r.a)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Object(h.a)(e,["component","childFactory"]),o=this.state.contextValue,i=x(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?a.a.createElement(m.a.Provider,{value:o},i):a.a.createElement(m.a.Provider,{value:o},a.a.createElement(t,r,i))},t}(a.a.Component);O.propTypes={},O.defaultProps={component:"div",childFactory:function(e){return e}};var j=O,k="undefined"===typeof window?i.useEffect:i.useLayoutEffect;var S=function(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,o=e.rippleX,a=e.rippleY,c=e.rippleSize,l=e.in,f=e.onExited,d=void 0===f?function(){}:f,p=e.timeout,h=i.useState(!1),v=h[0],b=h[1],m=Object(u.a)(t.ripple,t.rippleVisible,r&&t.ripplePulsate),y={width:c,height:c,top:-c/2+a,left:-c/2+o},g=Object(u.a)(t.child,v&&t.childLeaving,r&&t.childPulsate),w=Object(s.a)(d);return k((function(){if(!l){b(!0);var e=setTimeout(w,p);return function(){clearTimeout(e)}}}),[w,l,p]),i.createElement("span",{className:m,style:y},i.createElement("span",{className:g}))},E=i.forwardRef((function(e,t){var n=e.center,a=void 0!==n&&n,c=e.classes,l=e.className,s=Object(o.a)(e,["center","classes","className"]),f=i.useState([]),d=f[0],h=f[1],v=i.useRef(0),b=i.useRef(null);i.useEffect((function(){b.current&&(b.current(),b.current=null)}),[d]);var m=i.useRef(!1),y=i.useRef(null),g=i.useRef(null),w=i.useRef(null);i.useEffect((function(){return function(){clearTimeout(y.current)}}),[]);var x=i.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,a=e.cb;h((function(e){return[].concat(Object(p.a)(e),[i.createElement(S,{key:v.current,classes:c,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o})])})),v.current+=1,b.current=a}),[c]),O=i.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,o=void 0!==r&&r,i=t.center,c=void 0===i?a||t.pulsate:i,u=t.fakeElement,l=void 0!==u&&u;if("mousedown"===e.type&&m.current)m.current=!1;else{"touchstart"===e.type&&(m.current=!0);var s,f,d,p=l?null:w.current,h=p?p.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(c||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)s=Math.round(h.width/2),f=Math.round(h.height/2);else{var v=e.touches?e.touches[0]:e,b=v.clientX,O=v.clientY;s=Math.round(b-h.left),f=Math.round(O-h.top)}if(c)(d=Math.sqrt((2*Math.pow(h.width,2)+Math.pow(h.height,2))/3))%2===0&&(d+=1);else{var j=2*Math.max(Math.abs((p?p.clientWidth:0)-s),s)+2,k=2*Math.max(Math.abs((p?p.clientHeight:0)-f),f)+2;d=Math.sqrt(Math.pow(j,2)+Math.pow(k,2))}e.touches?null===g.current&&(g.current=function(){x({pulsate:o,rippleX:s,rippleY:f,rippleSize:d,cb:n})},y.current=setTimeout((function(){g.current&&(g.current(),g.current=null)}),80)):x({pulsate:o,rippleX:s,rippleY:f,rippleSize:d,cb:n})}}),[a,x]),k=i.useCallback((function(){O({},{pulsate:!0})}),[O]),E=i.useCallback((function(e,t){if(clearTimeout(y.current),"touchend"===e.type&&g.current)return e.persist(),g.current(),g.current=null,void(y.current=setTimeout((function(){E(e,t)})));g.current=null,h((function(e){return e.length>0?e.slice(1):e})),b.current=t}),[]);return i.useImperativeHandle(t,(function(){return{pulsate:k,start:O,stop:E}}),[k,O,E]),i.createElement("span",Object(r.a)({className:Object(u.a)(c.root,l),ref:w},s),i.createElement(j,{component:null,exit:!0},d))})),C=Object(f.a)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(i.memo(E)),T=i.forwardRef((function(e,t){var n=e.action,a=e.buttonRef,f=e.centerRipple,p=void 0!==f&&f,h=e.children,v=e.classes,b=e.className,m=e.component,y=void 0===m?"button":m,g=e.disabled,w=void 0!==g&&g,x=e.disableRipple,O=void 0!==x&&x,j=e.disableTouchRipple,k=void 0!==j&&j,S=e.focusRipple,E=void 0!==S&&S,T=e.focusVisibleClassName,I=e.onBlur,P=e.onClick,L=e.onFocus,_=e.onFocusVisible,R=e.onKeyDown,N=e.onKeyUp,M=e.onMouseDown,A=e.onMouseLeave,D=e.onMouseUp,F=e.onTouchEnd,z=e.onTouchMove,B=e.onTouchStart,H=e.onDragLeave,U=e.tabIndex,W=void 0===U?0:U,q=e.TouchRippleProps,G=e.type,V=void 0===G?"button":G,K=Object(o.a)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),$=i.useRef(null);var Y=i.useRef(null),Q=i.useState(!1),X=Q[0],Z=Q[1];w&&X&&Z(!1);var J=Object(d.a)(),ee=J.isFocusVisible,te=J.onBlurVisible,ne=J.ref;function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:k;return Object(s.a)((function(r){return t&&t(r),!n&&Y.current&&Y.current[e](r),!0}))}i.useImperativeHandle(n,(function(){return{focusVisible:function(){Z(!0),$.current.focus()}}}),[]),i.useEffect((function(){X&&E&&!O&&Y.current.pulsate()}),[O,E,X]);var oe=re("start",M),ie=re("stop",H),ae=re("stop",D),ce=re("stop",(function(e){X&&e.preventDefault(),A&&A(e)})),ue=re("start",B),le=re("stop",F),se=re("stop",z),fe=re("stop",(function(e){X&&(te(e),Z(!1)),I&&I(e)}),!1),de=Object(s.a)((function(e){$.current||($.current=e.currentTarget),ee(e)&&(Z(!0),_&&_(e)),L&&L(e)})),pe=function(){var e=c.findDOMNode($.current);return y&&"button"!==y&&!("A"===e.tagName&&e.href)},he=i.useRef(!1),ve=Object(s.a)((function(e){E&&!he.current&&X&&Y.current&&" "===e.key&&(he.current=!0,e.persist(),Y.current.stop(e,(function(){Y.current.start(e)}))),e.target===e.currentTarget&&pe()&&" "===e.key&&e.preventDefault(),R&&R(e),e.target===e.currentTarget&&pe()&&"Enter"===e.key&&!w&&(e.preventDefault(),P&&P(e))})),be=Object(s.a)((function(e){E&&" "===e.key&&Y.current&&X&&!e.defaultPrevented&&(he.current=!1,e.persist(),Y.current.stop(e,(function(){Y.current.pulsate(e)}))),N&&N(e),P&&e.target===e.currentTarget&&pe()&&" "===e.key&&!e.defaultPrevented&&P(e)})),me=y;"button"===me&&K.href&&(me="a");var ye={};"button"===me?(ye.type=V,ye.disabled=w):("a"===me&&K.href||(ye.role="button"),ye["aria-disabled"]=w);var ge=Object(l.a)(a,t),we=Object(l.a)(ne,$),xe=Object(l.a)(ge,we),Oe=i.useState(!1),je=Oe[0],ke=Oe[1];i.useEffect((function(){ke(!0)}),[]);var Se=je&&!O&&!w;return i.createElement(me,Object(r.a)({className:Object(u.a)(v.root,b,X&&[v.focusVisible,T],w&&v.disabled),onBlur:fe,onClick:P,onFocus:de,onKeyDown:ve,onKeyUp:be,onMouseDown:oe,onMouseLeave:ce,onMouseUp:ae,onDragLeave:ie,onTouchEnd:le,onTouchMove:se,onTouchStart:ue,ref:xe,tabIndex:w?-1:W},ye,K),h,Se?i.createElement(C,Object(r.a)({ref:Y,center:p},q)):null)}));t.a=Object(f.a)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(T)},function(e,t,n){"use strict";var r=n(15),o=n(4),i=n(204),a=n(0),c=n(19),u=n(94),l=n(118),s=n(23),f=n(31),d=n(44),p=n(128);function h(e,t){return parseInt(e[t],10)||0}var v="undefined"!==typeof window?a.useLayoutEffect:a.useEffect,b={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},m=a.forwardRef((function(e,t){var n=e.onChange,i=e.rows,c=e.rowsMax,u=e.rowsMin,l=e.maxRows,s=e.minRows,f=void 0===s?1:s,m=e.style,y=e.value,g=Object(r.a)(e,["onChange","rows","rowsMax","rowsMin","maxRows","minRows","style","value"]),w=l||c,x=i||u||f,O=a.useRef(null!=y).current,j=a.useRef(null),k=Object(d.a)(t,j),S=a.useRef(null),E=a.useRef(0),C=a.useState({}),T=C[0],I=C[1],P=a.useCallback((function(){var t=j.current,n=window.getComputedStyle(t),r=S.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var o=n["box-sizing"],i=h(n,"padding-bottom")+h(n,"padding-top"),a=h(n,"border-bottom-width")+h(n,"border-top-width"),c=r.scrollHeight-i;r.value="x";var u=r.scrollHeight-i,l=c;x&&(l=Math.max(Number(x)*u,l)),w&&(l=Math.min(Number(w)*u,l));var s=(l=Math.max(l,u))+("border-box"===o?i+a:0),f=Math.abs(l-c)<=1;I((function(e){return E.current<20&&(s>0&&Math.abs((e.outerHeightStyle||0)-s)>1||e.overflow!==f)?(E.current+=1,{overflow:f,outerHeightStyle:s}):e}))}),[w,x,e.placeholder]);a.useEffect((function(){var e=Object(p.a)((function(){E.current=0,P()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[P]),v((function(){P()})),a.useEffect((function(){E.current=0}),[y]);return a.createElement(a.Fragment,null,a.createElement("textarea",Object(o.a)({value:y,onChange:function(e){E.current=0,O||P(),n&&n(e)},ref:k,rows:x,style:Object(o.a)({height:T.outerHeightStyle,overflow:T.overflow?"hidden":null},m)},g)),a.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:S,tabIndex:-1,style:Object(o.a)({},b,m)}))})),y=n(133),g="undefined"===typeof window?a.useEffect:a.useLayoutEffect,w=a.forwardRef((function(e,t){var n=e["aria-describedby"],s=e.autoComplete,p=e.autoFocus,h=e.classes,v=e.className,b=(e.color,e.defaultValue),w=e.disabled,x=e.endAdornment,O=(e.error,e.fullWidth),j=void 0!==O&&O,k=e.id,S=e.inputComponent,E=void 0===S?"input":S,C=e.inputProps,T=void 0===C?{}:C,I=e.inputRef,P=(e.margin,e.multiline),L=void 0!==P&&P,_=e.name,R=e.onBlur,N=e.onChange,M=e.onClick,A=e.onFocus,D=e.onKeyDown,F=e.onKeyUp,z=e.placeholder,B=e.readOnly,H=e.renderSuffix,U=e.rows,W=e.rowsMax,q=e.rowsMin,G=e.maxRows,V=e.minRows,K=e.startAdornment,$=e.type,Y=void 0===$?"text":$,Q=e.value,X=Object(r.a)(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","maxRows","minRows","startAdornment","type","value"]),Z=null!=T.value?T.value:Q,J=a.useRef(null!=Z).current,ee=a.useRef(),te=a.useCallback((function(e){0}),[]),ne=Object(d.a)(T.ref,te),re=Object(d.a)(I,ne),oe=Object(d.a)(ee,re),ie=a.useState(!1),ae=ie[0],ce=ie[1],ue=Object(l.b)();var le=Object(u.a)({props:e,muiFormControl:ue,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});le.focused=ue?ue.focused:ae,a.useEffect((function(){!ue&&w&&ae&&(ce(!1),R&&R())}),[ue,w,ae,R]);var se=ue&&ue.onFilled,fe=ue&&ue.onEmpty,de=a.useCallback((function(e){Object(y.b)(e)?se&&se():fe&&fe()}),[se,fe]);g((function(){J&&de({value:Z})}),[Z,de,J]);a.useEffect((function(){de(ee.current)}),[]);var pe=E,he=Object(o.a)({},T,{ref:oe});"string"!==typeof pe?he=Object(o.a)({inputRef:oe,type:Y},he,{ref:null}):L?!U||G||V||W||q?(he=Object(o.a)({minRows:U||V,rowsMax:W,maxRows:G},he),pe=m):pe="textarea":he=Object(o.a)({type:Y},he);return a.useEffect((function(){ue&&ue.setAdornedStart(Boolean(K))}),[ue,K]),a.createElement("div",Object(o.a)({className:Object(c.a)(h.root,h["color".concat(Object(f.a)(le.color||"primary"))],v,le.disabled&&h.disabled,le.error&&h.error,j&&h.fullWidth,le.focused&&h.focused,ue&&h.formControl,L&&h.multiline,K&&h.adornedStart,x&&h.adornedEnd,"dense"===le.margin&&h.marginDense),onClick:function(e){ee.current&&e.currentTarget===e.target&&ee.current.focus(),M&&M(e)},ref:t},X),K,a.createElement(l.a.Provider,{value:null},a.createElement(pe,Object(o.a)({"aria-invalid":le.error,"aria-describedby":n,autoComplete:s,autoFocus:p,defaultValue:b,disabled:le.disabled,id:k,onAnimationStart:function(e){de("mui-auto-fill-cancel"===e.animationName?ee.current:{value:"x"})},name:_,placeholder:z,readOnly:B,required:le.required,rows:U,value:Z,onKeyDown:D,onKeyUp:F},he,{className:Object(c.a)(h.input,T.className,le.disabled&&h.disabled,L&&h.inputMultiline,le.hiddenLabel&&h.inputHiddenLabel,K&&h.inputAdornedStart,x&&h.inputAdornedEnd,"search"===Y&&h.inputTypeSearch,"dense"===le.margin&&h.inputMarginDense),onBlur:function(e){R&&R(e),T.onBlur&&T.onBlur(e),ue&&ue.onBlur?ue.onBlur(e):ce(!1)},onChange:function(e){if(!J){var t=e.target||ee.current;if(null==t)throw new Error(Object(i.a)(1));de({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];T.onChange&&T.onChange.apply(T,[e].concat(r)),N&&N.apply(void 0,[e].concat(r))},onFocus:function(e){le.disabled?e.stopPropagation():(A&&A(e),T.onFocus&&T.onFocus(e),ue&&ue.onFocus?ue.onFocus(e):ce(!0))}}))),x,H?H(Object(o.a)({},le,{startAdornment:K})):null)}));t.a=Object(s.a)((function(e){var t="light"===e.palette.type,n={color:"currentColor",opacity:t?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},i={opacity:t?.42:.5};return{"@global":{"@keyframes mui-auto-fill":{},"@keyframes mui-auto-fill-cancel":{}},root:Object(o.a)({},e.typography.body1,{color:e.palette.text.primary,lineHeight:"1.1876em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}}),formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1876em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},inputMarginDense:{paddingTop:3},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}}),{name:"MuiInputBase"})(w)},,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(175),i=n(216);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));function c(e,t,n,r,o,i,a,c,u){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(s){this.onError(s)}}var u=!1,l=null,s=!1,f=null,d={onError:function(e){u=!0,l=e}};function p(e,t,n,r,o,i,a,s,f){u=!1,l=null,c.apply(d,arguments)}var h=null,v=null,b=null;function m(e,t,n){var r=e.type||"unknown-event";e.currentTarget=b(n),function(e,t,n,r,o,i,c,d,h){if(p.apply(this,arguments),u){if(!u)throw Error(a(198));var v=l;u=!1,l=null,s||(s=!0,f=v)}}(r,t,void 0,e),e.currentTarget=null}var y=null,g={};function w(){if(y)for(var e in g){var t=g[e],n=y.indexOf(e);if(!(-1<n))throw Error(a(96,e));if(!O[n]){if(!t.extractEvents)throw Error(a(97,e));for(var r in O[n]=t,n=t.eventTypes){var o=void 0,i=n[r],c=t,u=r;if(j.hasOwnProperty(u))throw Error(a(99,u));j[u]=i;var l=i.phasedRegistrationNames;if(l){for(o in l)l.hasOwnProperty(o)&&x(l[o],c,u);o=!0}else i.registrationName?(x(i.registrationName,c,u),o=!0):o=!1;if(!o)throw Error(a(98,r,e))}}}}function x(e,t,n){if(k[e])throw Error(a(100,e));k[e]=t,S[e]=t.eventTypes[n].dependencies}var O=[],j={},k={},S={};function E(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!g.hasOwnProperty(t)||g[t]!==r){if(g[t])throw Error(a(102,t));g[t]=r,n=!0}}n&&w()}var C=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),T=null,I=null,P=null;function L(e){if(e=v(e)){if("function"!==typeof T)throw Error(a(280));var t=e.stateNode;t&&(t=h(t),T(e.stateNode,e.type,t))}}function _(e){I?P?P.push(e):P=[e]:I=e}function R(){if(I){var e=I,t=P;if(P=I=null,L(e),t)for(e=0;e<t.length;e++)L(t[e])}}function N(e,t){return e(t)}function M(e,t,n,r,o){return e(t,n,r,o)}function A(){}var D=N,F=!1,z=!1;function B(){null===I&&null===P||(A(),R())}function H(e,t,n){if(z)return e(t,n);z=!0;try{return D(e,t,n)}finally{z=!1,B()}}var U=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,W=Object.prototype.hasOwnProperty,q={},G={};function V(e,t,n,r,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var K={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){K[e]=new V(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];K[t]=new V(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){K[e]=new V(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){K[e]=new V(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){K[e]=new V(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){K[e]=new V(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){K[e]=new V(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){K[e]=new V(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){K[e]=new V(e,5,!1,e.toLowerCase(),null,!1)}));var $=/[\-:]([a-z])/g;function Y(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace($,Y);K[t]=new V(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace($,Y);K[t]=new V(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace($,Y);K[t]=new V(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){K[e]=new V(e,1,!1,e.toLowerCase(),null,!1)})),K.xlinkHref=new V("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){K[e]=new V(e,1,!1,e.toLowerCase(),null,!0)}));var Q=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function X(e,t,n,r){var o=K.hasOwnProperty(t)?K[t]:null;(null!==o?0===o.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!W.call(G,e)||!W.call(q,e)&&(U.test(e)?G[e]=!0:(q[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}Q.hasOwnProperty("ReactCurrentDispatcher")||(Q.ReactCurrentDispatcher={current:null}),Q.hasOwnProperty("ReactCurrentBatchConfig")||(Q.ReactCurrentBatchConfig={suspense:null});var Z=/^(.*)[\\\/]/,J="function"===typeof Symbol&&Symbol.for,ee=J?Symbol.for("react.element"):60103,te=J?Symbol.for("react.portal"):60106,ne=J?Symbol.for("react.fragment"):60107,re=J?Symbol.for("react.strict_mode"):60108,oe=J?Symbol.for("react.profiler"):60114,ie=J?Symbol.for("react.provider"):60109,ae=J?Symbol.for("react.context"):60110,ce=J?Symbol.for("react.concurrent_mode"):60111,ue=J?Symbol.for("react.forward_ref"):60112,le=J?Symbol.for("react.suspense"):60113,se=J?Symbol.for("react.suspense_list"):60120,fe=J?Symbol.for("react.memo"):60115,de=J?Symbol.for("react.lazy"):60116,pe=J?Symbol.for("react.block"):60121,he="function"===typeof Symbol&&Symbol.iterator;function ve(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=he&&e[he]||e["@@iterator"])?e:null}function be(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case ne:return"Fragment";case te:return"Portal";case oe:return"Profiler";case re:return"StrictMode";case le:return"Suspense";case se:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case ae:return"Context.Consumer";case ie:return"Context.Provider";case ue:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case fe:return be(e.type);case pe:return be(e.render);case de:if(e=1===e._status?e._result:null)return be(e)}return null}function me(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,o=e._debugSource,i=be(e.type);n=null,r&&(n=be(r.type)),r=i,i="",o?i=" (at "+o.fileName.replace(Z,"")+":"+o.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n in "+(r||"Unknown")+i}t+=n,e=e.return}while(e);return t}function ye(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ge(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function we(e){e._valueTracker||(e._valueTracker=function(e){var t=ge(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function xe(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ge(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Oe(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function je(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ye(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function ke(e,t){null!=(t=t.checked)&&X(e,"checked",t,!1)}function Se(e,t){ke(e,t);var n=ye(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Ce(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ce(e,t.type,ye(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Ee(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Ce(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Te(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Ie(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ye(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function Pe(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Le(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ye(n)}}function _e(e,t){var n=ye(t.value),r=ye(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Re(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Ne="http://www.w3.org/1999/xhtml",Me="http://www.w3.org/2000/svg";function Ae(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function De(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Ae(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Fe,ze,Be=(ze=function(e,t){if(e.namespaceURI!==Me||"innerHTML"in e)e.innerHTML=t;else{for((Fe=Fe||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Fe.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ze(e,t)}))}:ze);function He(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function Ue(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var We={animationend:Ue("Animation","AnimationEnd"),animationiteration:Ue("Animation","AnimationIteration"),animationstart:Ue("Animation","AnimationStart"),transitionend:Ue("Transition","TransitionEnd")},qe={},Ge={};function Ve(e){if(qe[e])return qe[e];if(!We[e])return e;var t,n=We[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ge)return qe[e]=n[t];return e}C&&(Ge=document.createElement("div").style,"AnimationEvent"in window||(delete We.animationend.animation,delete We.animationiteration.animation,delete We.animationstart.animation),"TransitionEvent"in window||delete We.transitionend.transition);var Ke=Ve("animationend"),$e=Ve("animationiteration"),Ye=Ve("animationstart"),Qe=Ve("transitionend"),Xe="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ze=new("function"===typeof WeakMap?WeakMap:Map);function Je(e){var t=Ze.get(e);return void 0===t&&(t=new Map,Ze.set(e,t)),t}function et(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function tt(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function nt(e){if(et(e)!==e)throw Error(a(188))}function rt(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=et(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return nt(o),e;if(i===r)return nt(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var c=!1,u=o.child;u;){if(u===n){c=!0,n=o,r=i;break}if(u===r){c=!0,r=o,n=i;break}u=u.sibling}if(!c){for(u=i.child;u;){if(u===n){c=!0,n=i,r=o;break}if(u===r){c=!0,r=i,n=o;break}u=u.sibling}if(!c)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function ot(e,t){if(null==t)throw Error(a(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function it(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var at=null;function ct(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)m(e,t[r],n[r]);else t&&m(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function ut(e){if(null!==e&&(at=ot(at,e)),e=at,at=null,e){if(it(e,ct),at)throw Error(a(95));if(s)throw e=f,s=!1,f=null,e}}function lt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function st(e){if(!C)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"===typeof t[e]),t}var ft=[];function dt(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>ft.length&&ft.push(e)}function pt(e,t,n,r){if(ft.length){var o=ft.pop();return o.topLevelType=e,o.eventSystemFlags=r,o.nativeEvent=t,o.targetInst=n,o}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function ht(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=Rn(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var o=lt(e.nativeEvent);r=e.topLevelType;var i=e.nativeEvent,a=e.eventSystemFlags;0===n&&(a|=64);for(var c=null,u=0;u<O.length;u++){var l=O[u];l&&(l=l.extractEvents(r,t,i,o,a))&&(c=ot(c,l))}ut(c)}}function vt(e,t,n){if(!n.has(e)){switch(e){case"scroll":Yt(t,"scroll",!0);break;case"focus":case"blur":Yt(t,"focus",!0),Yt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":st(e)&&Yt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Xe.indexOf(e)&&$t(e,t)}n.set(e,null)}}var bt,mt,yt,gt=!1,wt=[],xt=null,Ot=null,jt=null,kt=new Map,St=new Map,Et=[],Ct="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Tt="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function It(e,t,n,r,o){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:o,container:r}}function Pt(e,t){switch(e){case"focus":case"blur":xt=null;break;case"dragenter":case"dragleave":Ot=null;break;case"mouseover":case"mouseout":jt=null;break;case"pointerover":case"pointerout":kt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":St.delete(t.pointerId)}}function Lt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e=It(t,n,r,o,i),null!==t&&(null!==(t=Nn(t))&&mt(t)),e):(e.eventSystemFlags|=r,e)}function _t(e){var t=Rn(e.target);if(null!==t){var n=et(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=tt(n)))return e.blockedOn=t,void i.unstable_runWithPriority(e.priority,(function(){yt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Rt(e){if(null!==e.blockedOn)return!1;var t=Jt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=Nn(t);return null!==n&&mt(n),e.blockedOn=t,!1}return!0}function Nt(e,t,n){Rt(e)&&n.delete(t)}function Mt(){for(gt=!1;0<wt.length;){var e=wt[0];if(null!==e.blockedOn){null!==(e=Nn(e.blockedOn))&&bt(e);break}var t=Jt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:wt.shift()}null!==xt&&Rt(xt)&&(xt=null),null!==Ot&&Rt(Ot)&&(Ot=null),null!==jt&&Rt(jt)&&(jt=null),kt.forEach(Nt),St.forEach(Nt)}function At(e,t){e.blockedOn===t&&(e.blockedOn=null,gt||(gt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Mt)))}function Dt(e){function t(t){return At(t,e)}if(0<wt.length){At(wt[0],e);for(var n=1;n<wt.length;n++){var r=wt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==xt&&At(xt,e),null!==Ot&&At(Ot,e),null!==jt&&At(jt,e),kt.forEach(t),St.forEach(t),n=0;n<Et.length;n++)(r=Et[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Et.length&&null===(n=Et[0]).blockedOn;)_t(n),null===n.blockedOn&&Et.shift()}var Ft={},zt=new Map,Bt=new Map,Ht=["abort","abort",Ke,"animationEnd",$e,"animationIteration",Ye,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Qe,"transitionEnd","waiting","waiting"];function Ut(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1],i="on"+(o[0].toUpperCase()+o.slice(1));i={phasedRegistrationNames:{bubbled:i,captured:i+"Capture"},dependencies:[r],eventPriority:t},Bt.set(r,t),zt.set(r,i),Ft[o]=i}}Ut("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Ut("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Ut(Ht,2);for(var Wt="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),qt=0;qt<Wt.length;qt++)Bt.set(Wt[qt],0);var Gt=i.unstable_UserBlockingPriority,Vt=i.unstable_runWithPriority,Kt=!0;function $t(e,t){Yt(t,e,!1)}function Yt(e,t,n){var r=Bt.get(t);switch(void 0===r?2:r){case 0:r=Qt.bind(null,t,1,e);break;case 1:r=Xt.bind(null,t,1,e);break;default:r=Zt.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function Qt(e,t,n,r){F||A();var o=Zt,i=F;F=!0;try{M(o,e,t,n,r)}finally{(F=i)||B()}}function Xt(e,t,n,r){Vt(Gt,Zt.bind(null,e,t,n,r))}function Zt(e,t,n,r){if(Kt)if(0<wt.length&&-1<Ct.indexOf(e))e=It(null,e,t,n,r),wt.push(e);else{var o=Jt(e,t,n,r);if(null===o)Pt(e,r);else if(-1<Ct.indexOf(e))e=It(o,e,t,n,r),wt.push(e);else if(!function(e,t,n,r,o){switch(t){case"focus":return xt=Lt(xt,e,t,n,r,o),!0;case"dragenter":return Ot=Lt(Ot,e,t,n,r,o),!0;case"mouseover":return jt=Lt(jt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return kt.set(i,Lt(kt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,St.set(i,Lt(St.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r)){Pt(e,r),e=pt(e,r,null,t);try{H(ht,e)}finally{dt(e)}}}}function Jt(e,t,n,r){if(null!==(n=Rn(n=lt(r)))){var o=et(n);if(null===o)n=null;else{var i=o.tag;if(13===i){if(null!==(n=tt(o)))return n;n=null}else if(3===i){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;n=null}else o!==n&&(n=null)}}e=pt(e,r,n,t);try{H(ht,e)}finally{dt(e)}return null}var en={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},tn=["Webkit","ms","Moz","O"];function nn(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||en.hasOwnProperty(e)&&en[e]?(""+t).trim():t+"px"}function rn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=nn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(en).forEach((function(e){tn.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),en[t]=en[e]}))}));var on=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function an(e,t){if(t){if(on[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62,""))}}function cn(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var un=Ne;function ln(e,t){var n=Je(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=S[t];for(var r=0;r<t.length;r++)vt(t[r],e,n)}function sn(){}function fn(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function dn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pn(e,t){var n,r=dn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=dn(r)}}function hn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?hn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function vn(){for(var e=window,t=fn();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=fn((e=t.contentWindow).document)}return t}function bn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var mn="$",yn="/$",gn="$?",wn="$!",xn=null,On=null;function jn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function kn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Sn="function"===typeof setTimeout?setTimeout:void 0,En="function"===typeof clearTimeout?clearTimeout:void 0;function Cn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Tn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===mn||n===wn||n===gn){if(0===t)return e;t--}else n===yn&&t++}e=e.previousSibling}return null}var In=Math.random().toString(36).slice(2),Pn="__reactInternalInstance$"+In,Ln="__reactEventHandlers$"+In,_n="__reactContainere$"+In;function Rn(e){var t=e[Pn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[_n]||n[Pn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Tn(e);null!==e;){if(n=e[Pn])return n;e=Tn(e)}return t}n=(e=n).parentNode}return null}function Nn(e){return!(e=e[Pn]||e[_n])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Mn(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function An(e){return e[Ln]||null}function Dn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Fn(e,t){var n=e.stateNode;if(!n)return null;var r=h(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}function zn(e,t,n){(t=Fn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=ot(n._dispatchListeners,t),n._dispatchInstances=ot(n._dispatchInstances,e))}function Bn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Dn(t);for(t=n.length;0<t--;)zn(n[t],"captured",e);for(t=0;t<n.length;t++)zn(n[t],"bubbled",e)}}function Hn(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Fn(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=ot(n._dispatchListeners,t),n._dispatchInstances=ot(n._dispatchInstances,e))}function Un(e){e&&e.dispatchConfig.registrationName&&Hn(e._targetInst,null,e)}function Wn(e){it(e,Bn)}var qn=null,Gn=null,Vn=null;function Kn(){if(Vn)return Vn;var e,t,n=Gn,r=n.length,o="value"in qn?qn.value:qn.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Vn=o.slice(e,1<t?1-t:void 0)}function $n(){return!0}function Yn(){return!1}function Qn(e,t,n,r){for(var o in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(n):"target"===o?this.target=r:this[o]=n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?$n:Yn,this.isPropagationStopped=Yn,this}function Xn(e,t,n,r){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)}function Zn(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Jn(e){e.eventPool=[],e.getPooled=Xn,e.release=Zn}o(Qn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=$n)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=$n)},persist:function(){this.isPersistent=$n},isPersistent:Yn,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Yn,this._dispatchInstances=this._dispatchListeners=null}}),Qn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Qn.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return o(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=o({},r.Interface,e),n.extend=r.extend,Jn(n),n},Jn(Qn);var er=Qn.extend({data:null}),tr=Qn.extend({data:null}),nr=[9,13,27,32],rr=C&&"CompositionEvent"in window,or=null;C&&"documentMode"in document&&(or=document.documentMode);var ir=C&&"TextEvent"in window&&!or,ar=C&&(!rr||or&&8<or&&11>=or),cr=String.fromCharCode(32),ur={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},lr=!1;function sr(e,t){switch(e){case"keyup":return-1!==nr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function fr(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var dr=!1;var pr={eventTypes:ur,extractEvents:function(e,t,n,r){var o;if(rr)e:{switch(e){case"compositionstart":var i=ur.compositionStart;break e;case"compositionend":i=ur.compositionEnd;break e;case"compositionupdate":i=ur.compositionUpdate;break e}i=void 0}else dr?sr(e,n)&&(i=ur.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=ur.compositionStart);return i?(ar&&"ko"!==n.locale&&(dr||i!==ur.compositionStart?i===ur.compositionEnd&&dr&&(o=Kn()):(Gn="value"in(qn=r)?qn.value:qn.textContent,dr=!0)),i=er.getPooled(i,t,n,r),o?i.data=o:null!==(o=fr(n))&&(i.data=o),Wn(i),o=i):o=null,(e=ir?function(e,t){switch(e){case"compositionend":return fr(t);case"keypress":return 32!==t.which?null:(lr=!0,cr);case"textInput":return(e=t.data)===cr&&lr?null:e;default:return null}}(e,n):function(e,t){if(dr)return"compositionend"===e||!rr&&sr(e,t)?(e=Kn(),Vn=Gn=qn=null,dr=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ar&&"ko"!==t.locale?null:t.data}}(e,n))?((t=tr.getPooled(ur.beforeInput,t,n,r)).data=e,Wn(t)):t=null,null===o?t:null===t?o:[o,t]}},hr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function vr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!hr[e.type]:"textarea"===t}var br={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function mr(e,t,n){return(e=Qn.getPooled(br.change,e,t,n)).type="change",_(n),Wn(e),e}var yr=null,gr=null;function wr(e){ut(e)}function xr(e){if(xe(Mn(e)))return e}function Or(e,t){if("change"===e)return t}var jr=!1;function kr(){yr&&(yr.detachEvent("onpropertychange",Sr),gr=yr=null)}function Sr(e){if("value"===e.propertyName&&xr(gr))if(e=mr(gr,e,lt(e)),F)ut(e);else{F=!0;try{N(wr,e)}finally{F=!1,B()}}}function Er(e,t,n){"focus"===e?(kr(),gr=n,(yr=t).attachEvent("onpropertychange",Sr)):"blur"===e&&kr()}function Cr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return xr(gr)}function Tr(e,t){if("click"===e)return xr(t)}function Ir(e,t){if("input"===e||"change"===e)return xr(t)}C&&(jr=st("input")&&(!document.documentMode||9<document.documentMode));var Pr={eventTypes:br,_isInputEventSupported:jr,extractEvents:function(e,t,n,r){var o=t?Mn(t):window,i=o.nodeName&&o.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===o.type)var a=Or;else if(vr(o))if(jr)a=Ir;else{a=Cr;var c=Er}else(i=o.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(a=Tr);if(a&&(a=a(e,t)))return mr(a,n,r);c&&c(e,o,t),"blur"===e&&(e=o._wrapperState)&&e.controlled&&"number"===o.type&&Ce(o,"number",o.value)}},Lr=Qn.extend({view:null,detail:null}),_r={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Rr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=_r[e])&&!!t[e]}function Nr(){return Rr}var Mr=0,Ar=0,Dr=!1,Fr=!1,zr=Lr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Nr,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Mr;return Mr=e.screenX,Dr?"mousemove"===e.type?e.screenX-t:0:(Dr=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Ar;return Ar=e.screenY,Fr?"mousemove"===e.type?e.screenY-t:0:(Fr=!0,0)}}),Br=zr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Hr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Ur={eventTypes:Hr,extractEvents:function(e,t,n,r,o){var i="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(i&&0===(32&o)&&(n.relatedTarget||n.fromElement)||!a&&!i)return null;(i=r.window===r?r:(i=r.ownerDocument)?i.defaultView||i.parentWindow:window,a)?(a=t,null!==(t=(t=n.relatedTarget||n.toElement)?Rn(t):null)&&(t!==et(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null;if(a===t)return null;if("mouseout"===e||"mouseover"===e)var c=zr,u=Hr.mouseLeave,l=Hr.mouseEnter,s="mouse";else"pointerout"!==e&&"pointerover"!==e||(c=Br,u=Hr.pointerLeave,l=Hr.pointerEnter,s="pointer");if(e=null==a?i:Mn(a),i=null==t?i:Mn(t),(u=c.getPooled(u,a,n,r)).type=s+"leave",u.target=e,u.relatedTarget=i,(n=c.getPooled(l,t,n,r)).type=s+"enter",n.target=i,n.relatedTarget=e,s=t,(r=a)&&s)e:{for(l=s,a=0,e=c=r;e;e=Dn(e))a++;for(e=0,t=l;t;t=Dn(t))e++;for(;0<a-e;)c=Dn(c),a--;for(;0<e-a;)l=Dn(l),e--;for(;a--;){if(c===l||c===l.alternate)break e;c=Dn(c),l=Dn(l)}c=null}else c=null;for(l=c,c=[];r&&r!==l&&(null===(a=r.alternate)||a!==l);)c.push(r),r=Dn(r);for(r=[];s&&s!==l&&(null===(a=s.alternate)||a!==l);)r.push(s),s=Dn(s);for(s=0;s<c.length;s++)Hn(c[s],"bubbled",u);for(s=r.length;0<s--;)Hn(r[s],"captured",n);return 0===(64&o)?[u]:[u,n]}};var Wr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},qr=Object.prototype.hasOwnProperty;function Gr(e,t){if(Wr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!qr.call(t,n[r])||!Wr(e[n[r]],t[n[r]]))return!1;return!0}var Vr=C&&"documentMode"in document&&11>=document.documentMode,Kr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},$r=null,Yr=null,Qr=null,Xr=!1;function Zr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Xr||null==$r||$r!==fn(n)?null:("selectionStart"in(n=$r)&&bn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Qr&&Gr(Qr,n)?null:(Qr=n,(e=Qn.getPooled(Kr.select,Yr,e,t)).type="select",e.target=$r,Wn(e),e))}var Jr={eventTypes:Kr,extractEvents:function(e,t,n,r,o,i){if(!(i=!(o=i||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{o=Je(o),i=S.onSelect;for(var a=0;a<i.length;a++)if(!o.has(i[a])){o=!1;break e}o=!0}i=!o}if(i)return null;switch(o=t?Mn(t):window,e){case"focus":(vr(o)||"true"===o.contentEditable)&&($r=o,Yr=t,Qr=null);break;case"blur":Qr=Yr=$r=null;break;case"mousedown":Xr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Xr=!1,Zr(n,r);case"selectionchange":if(Vr)break;case"keydown":case"keyup":return Zr(n,r)}return null}},eo=Qn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),to=Qn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),no=Lr.extend({relatedTarget:null});function ro(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var oo={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},io={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ao=Lr.extend({key:function(e){if(e.key){var t=oo[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=ro(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?io[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Nr,charCode:function(e){return"keypress"===e.type?ro(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ro(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),co=zr.extend({dataTransfer:null}),uo=Lr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Nr}),lo=Qn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),so=zr.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),fo={eventTypes:Ft,extractEvents:function(e,t,n,r){var o=zt.get(e);if(!o)return null;switch(e){case"keypress":if(0===ro(n))return null;case"keydown":case"keyup":e=ao;break;case"blur":case"focus":e=no;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=zr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=co;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=uo;break;case Ke:case $e:case Ye:e=eo;break;case Qe:e=lo;break;case"scroll":e=Lr;break;case"wheel":e=so;break;case"copy":case"cut":case"paste":e=to;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Br;break;default:e=Qn}return Wn(t=e.getPooled(o,t,n,r)),t}};if(y)throw Error(a(101));y=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w(),h=An,v=Nn,b=Mn,E({SimpleEventPlugin:fo,EnterLeaveEventPlugin:Ur,ChangeEventPlugin:Pr,SelectEventPlugin:Jr,BeforeInputEventPlugin:pr});var po=[],ho=-1;function vo(e){0>ho||(e.current=po[ho],po[ho]=null,ho--)}function bo(e,t){ho++,po[ho]=e.current,e.current=t}var mo={},yo={current:mo},go={current:!1},wo=mo;function xo(e,t){var n=e.type.contextTypes;if(!n)return mo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Oo(e){return null!==(e=e.childContextTypes)&&void 0!==e}function jo(){vo(go),vo(yo)}function ko(e,t,n){if(yo.current!==mo)throw Error(a(168));bo(yo,t),bo(go,n)}function So(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(a(108,be(t)||"Unknown",i));return o({},n,{},r)}function Eo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||mo,wo=yo.current,bo(yo,e),bo(go,go.current),!0}function Co(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=So(e,t,wo),r.__reactInternalMemoizedMergedChildContext=e,vo(go),vo(yo),bo(yo,e)):vo(go),bo(go,n)}var To=i.unstable_runWithPriority,Io=i.unstable_scheduleCallback,Po=i.unstable_cancelCallback,Lo=i.unstable_requestPaint,_o=i.unstable_now,Ro=i.unstable_getCurrentPriorityLevel,No=i.unstable_ImmediatePriority,Mo=i.unstable_UserBlockingPriority,Ao=i.unstable_NormalPriority,Do=i.unstable_LowPriority,Fo=i.unstable_IdlePriority,zo={},Bo=i.unstable_shouldYield,Ho=void 0!==Lo?Lo:function(){},Uo=null,Wo=null,qo=!1,Go=_o(),Vo=1e4>Go?_o:function(){return _o()-Go};function Ko(){switch(Ro()){case No:return 99;case Mo:return 98;case Ao:return 97;case Do:return 96;case Fo:return 95;default:throw Error(a(332))}}function $o(e){switch(e){case 99:return No;case 98:return Mo;case 97:return Ao;case 96:return Do;case 95:return Fo;default:throw Error(a(332))}}function Yo(e,t){return e=$o(e),To(e,t)}function Qo(e,t,n){return e=$o(e),Io(e,t,n)}function Xo(e){return null===Uo?(Uo=[e],Wo=Io(No,Jo)):Uo.push(e),zo}function Zo(){if(null!==Wo){var e=Wo;Wo=null,Po(e)}Jo()}function Jo(){if(!qo&&null!==Uo){qo=!0;var e=0;try{var t=Uo;Yo(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Uo=null}catch(n){throw null!==Uo&&(Uo=Uo.slice(e+1)),Io(No,Zo),n}finally{qo=!1}}}function ei(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function ti(e,t){if(e&&e.defaultProps)for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var ni={current:null},ri=null,oi=null,ii=null;function ai(){ii=oi=ri=null}function ci(e){var t=ni.current;vo(ni),e.type._context._currentValue=t}function ui(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function li(e,t){ri=e,ii=oi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Aa=!0),e.firstContext=null)}function si(e,t){if(ii!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(ii=e,t=1073741823),t={context:e,observedBits:t,next:null},null===oi){if(null===ri)throw Error(a(308));oi=t,ri.dependencies={expirationTime:0,firstContext:t,responders:null}}else oi=oi.next=t;return e._currentValue}var fi=!1;function di(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function pi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function hi(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function vi(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function bi(e,t){var n=e.alternate;null!==n&&pi(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function mi(e,t,n,r){var i=e.updateQueue;fi=!1;var a=i.baseQueue,c=i.shared.pending;if(null!==c){if(null!==a){var u=a.next;a.next=c.next,c.next=u}a=c,i.shared.pending=null,null!==(u=e.alternate)&&(null!==(u=u.updateQueue)&&(u.baseQueue=c))}if(null!==a){u=a.next;var l=i.baseState,s=0,f=null,d=null,p=null;if(null!==u)for(var h=u;;){if((c=h.expirationTime)<r){var v={expirationTime:h.expirationTime,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null};null===p?(d=p=v,f=l):p=p.next=v,c>s&&(s=c)}else{null!==p&&(p=p.next={expirationTime:1073741823,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null}),Ou(c,h.suspenseConfig);e:{var b=e,m=h;switch(c=t,v=n,m.tag){case 1:if("function"===typeof(b=m.payload)){l=b.call(v,l,c);break e}l=b;break e;case 3:b.effectTag=-4097&b.effectTag|64;case 0:if(null===(c="function"===typeof(b=m.payload)?b.call(v,l,c):b)||void 0===c)break e;l=o({},l,c);break e;case 2:fi=!0}}null!==h.callback&&(e.effectTag|=32,null===(c=i.effects)?i.effects=[h]:c.push(h))}if(null===(h=h.next)||h===u){if(null===(c=i.shared.pending))break;h=a.next=c.next,c.next=u,i.baseQueue=a=c,i.shared.pending=null}}null===p?f=l:p.next=d,i.baseState=f,i.baseQueue=p,ju(s),e.expirationTime=s,e.memoizedState=l}}function yi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=o,o=n,"function"!==typeof r)throw Error(a(191,r));r.call(o)}}}var gi=Q.ReactCurrentBatchConfig,wi=(new r.Component).refs;function xi(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:o({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var Oi={isMounted:function(e){return!!(e=e._reactInternalFiber)&&et(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=lu(),o=gi.suspense;(o=hi(r=su(r,e,o),o)).payload=t,void 0!==n&&null!==n&&(o.callback=n),vi(e,o),fu(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=lu(),o=gi.suspense;(o=hi(r=su(r,e,o),o)).tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),vi(e,o),fu(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=lu(),r=gi.suspense;(r=hi(n=su(n,e,r),r)).tag=2,void 0!==t&&null!==t&&(r.callback=t),vi(e,r),fu(e,n)}};function ji(e,t,n,r,o,i,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!Gr(n,r)||!Gr(o,i))}function ki(e,t,n){var r=!1,o=mo,i=t.contextType;return"object"===typeof i&&null!==i?i=si(i):(o=Oo(t)?wo:yo.current,i=(r=null!==(r=t.contextTypes)&&void 0!==r)?xo(e,o):mo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Oi,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Si(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Oi.enqueueReplaceState(t,t.state,null)}function Ei(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=wi,di(e);var i=t.contextType;"object"===typeof i&&null!==i?o.context=si(i):(i=Oo(t)?wo:yo.current,o.context=xo(e,i)),mi(e,n,o,r),o.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(xi(e,t,i,n),o.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Oi.enqueueReplaceState(o,o.state,null),mi(e,n,o,r),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.effectTag|=4)}var Ci=Array.isArray;function Ti(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=r.refs;t===wi&&(t=r.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Ii(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Pi(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Wu(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function c(t){return e&&null===t.alternate&&(t.effectTag=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Vu(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function l(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=Ti(e,t,n),r.return=e,r):((r=qu(n.type,n.key,n.props,null,e.mode,r)).ref=Ti(e,t,n),r.return=e,r)}function s(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ku(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=Gu(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=Vu(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=qu(t.type,t.key,t.props,null,e.mode,n)).ref=Ti(e,null,t),n.return=e,n;case te:return(t=Ku(t,e.mode,n)).return=e,t}if(Ci(t)||ve(t))return(t=Gu(t,e.mode,n,null)).return=e,t;Ii(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==o?null:u(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===o?n.type===ne?f(e,t,n.props.children,r,o):l(e,t,n,r):null;case te:return n.key===o?s(e,t,n,r):null}if(Ci(n)||ve(n))return null!==o?null:f(e,t,n,r,null);Ii(e,n)}return null}function h(e,t,n,r,o){if("string"===typeof r||"number"===typeof r)return u(t,e=e.get(n)||null,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case ee:return e=e.get(null===r.key?n:r.key)||null,r.type===ne?f(t,e,r.props.children,o,r.key):l(t,e,r,o);case te:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(Ci(r)||ve(r))return f(t,e=e.get(n)||null,r,o,null);Ii(t,r)}return null}function v(o,a,c,u){for(var l=null,s=null,f=a,v=a=0,b=null;null!==f&&v<c.length;v++){f.index>v?(b=f,f=null):b=f.sibling;var m=p(o,f,c[v],u);if(null===m){null===f&&(f=b);break}e&&f&&null===m.alternate&&t(o,f),a=i(m,a,v),null===s?l=m:s.sibling=m,s=m,f=b}if(v===c.length)return n(o,f),l;if(null===f){for(;v<c.length;v++)null!==(f=d(o,c[v],u))&&(a=i(f,a,v),null===s?l=f:s.sibling=f,s=f);return l}for(f=r(o,f);v<c.length;v++)null!==(b=h(f,o,v,c[v],u))&&(e&&null!==b.alternate&&f.delete(null===b.key?v:b.key),a=i(b,a,v),null===s?l=b:s.sibling=b,s=b);return e&&f.forEach((function(e){return t(o,e)})),l}function b(o,c,u,l){var s=ve(u);if("function"!==typeof s)throw Error(a(150));if(null==(u=s.call(u)))throw Error(a(151));for(var f=s=null,v=c,b=c=0,m=null,y=u.next();null!==v&&!y.done;b++,y=u.next()){v.index>b?(m=v,v=null):m=v.sibling;var g=p(o,v,y.value,l);if(null===g){null===v&&(v=m);break}e&&v&&null===g.alternate&&t(o,v),c=i(g,c,b),null===f?s=g:f.sibling=g,f=g,v=m}if(y.done)return n(o,v),s;if(null===v){for(;!y.done;b++,y=u.next())null!==(y=d(o,y.value,l))&&(c=i(y,c,b),null===f?s=y:f.sibling=y,f=y);return s}for(v=r(o,v);!y.done;b++,y=u.next())null!==(y=h(v,o,b,y.value,l))&&(e&&null!==y.alternate&&v.delete(null===y.key?b:y.key),c=i(y,c,b),null===f?s=y:f.sibling=y,f=y);return e&&v.forEach((function(e){return t(o,e)})),s}return function(e,r,i,u){var l="object"===typeof i&&null!==i&&i.type===ne&&null===i.key;l&&(i=i.props.children);var s="object"===typeof i&&null!==i;if(s)switch(i.$$typeof){case ee:e:{for(s=i.key,l=r;null!==l;){if(l.key===s){if(7===l.tag){if(i.type===ne){n(e,l.sibling),(r=o(l,i.props.children)).return=e,e=r;break e}}else if(l.elementType===i.type){n(e,l.sibling),(r=o(l,i.props)).ref=Ti(e,l,i),r.return=e,e=r;break e}n(e,l);break}t(e,l),l=l.sibling}i.type===ne?((r=Gu(i.props.children,e.mode,u,i.key)).return=e,e=r):((u=qu(i.type,i.key,i.props,null,e.mode,u)).ref=Ti(e,r,i),u.return=e,e=u)}return c(e);case te:e:{for(l=i.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Ku(i,e.mode,u)).return=e,e=r}return c(e)}if("string"===typeof i||"number"===typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=Vu(i,e.mode,u)).return=e,e=r),c(e);if(Ci(i))return v(e,r,i,u);if(ve(i))return b(e,r,i,u);if(s&&Ii(e,i),"undefined"===typeof i&&!l)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||"Component"))}return n(e,r)}}var Li=Pi(!0),_i=Pi(!1),Ri={},Ni={current:Ri},Mi={current:Ri},Ai={current:Ri};function Di(e){if(e===Ri)throw Error(a(174));return e}function Fi(e,t){switch(bo(Ai,t),bo(Mi,e),bo(Ni,Ri),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:De(null,"");break;default:t=De(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}vo(Ni),bo(Ni,t)}function zi(){vo(Ni),vo(Mi),vo(Ai)}function Bi(e){Di(Ai.current);var t=Di(Ni.current),n=De(t,e.type);t!==n&&(bo(Mi,e),bo(Ni,n))}function Hi(e){Mi.current===e&&(vo(Ni),vo(Mi))}var Ui={current:0};function Wi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===gn||n.data===wn))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function qi(e,t){return{responder:e,props:t}}var Gi=Q.ReactCurrentDispatcher,Vi=Q.ReactCurrentBatchConfig,Ki=0,$i=null,Yi=null,Qi=null,Xi=!1;function Zi(){throw Error(a(321))}function Ji(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Wr(e[n],t[n]))return!1;return!0}function ea(e,t,n,r,o,i){if(Ki=i,$i=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Gi.current=null===e||null===e.memoizedState?ja:ka,e=n(r,o),t.expirationTime===Ki){i=0;do{if(t.expirationTime=0,!(25>i))throw Error(a(301));i+=1,Qi=Yi=null,t.updateQueue=null,Gi.current=Sa,e=n(r,o)}while(t.expirationTime===Ki)}if(Gi.current=Oa,t=null!==Yi&&null!==Yi.next,Ki=0,Qi=Yi=$i=null,Xi=!1,t)throw Error(a(300));return e}function ta(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Qi?$i.memoizedState=Qi=e:Qi=Qi.next=e,Qi}function na(){if(null===Yi){var e=$i.alternate;e=null!==e?e.memoizedState:null}else e=Yi.next;var t=null===Qi?$i.memoizedState:Qi.next;if(null!==t)Qi=t,Yi=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Yi=e).memoizedState,baseState:Yi.baseState,baseQueue:Yi.baseQueue,queue:Yi.queue,next:null},null===Qi?$i.memoizedState=Qi=e:Qi=Qi.next=e}return Qi}function ra(e,t){return"function"===typeof t?t(e):t}function oa(e){var t=na(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Yi,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var c=o.next;o.next=i.next,i.next=c}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var u=c=i=null,l=o;do{var s=l.expirationTime;if(s<Ki){var f={expirationTime:l.expirationTime,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===u?(c=u=f,i=r):u=u.next=f,s>$i.expirationTime&&($i.expirationTime=s,ju(s))}else null!==u&&(u=u.next={expirationTime:1073741823,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),Ou(s,l.suspenseConfig),r=l.eagerReducer===e?l.eagerState:e(r,l.action);l=l.next}while(null!==l&&l!==o);null===u?i=r:u.next=c,Wr(r,t.memoizedState)||(Aa=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function ia(e){var t=na(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var c=o=o.next;do{i=e(i,c.action),c=c.next}while(c!==o);Wr(i,t.memoizedState)||(Aa=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function aa(e){var t=ta();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ra,lastRenderedState:e}).dispatch=xa.bind(null,$i,e),[t.memoizedState,e]}function ca(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=$i.updateQueue)?(t={lastEffect:null},$i.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ua(){return na().memoizedState}function la(e,t,n,r){var o=ta();$i.effectTag|=e,o.memoizedState=ca(1|t,n,void 0,void 0===r?null:r)}function sa(e,t,n,r){var o=na();r=void 0===r?null:r;var i=void 0;if(null!==Yi){var a=Yi.memoizedState;if(i=a.destroy,null!==r&&Ji(r,a.deps))return void ca(t,n,i,r)}$i.effectTag|=e,o.memoizedState=ca(1|t,n,i,r)}function fa(e,t){return la(516,4,e,t)}function da(e,t){return sa(516,4,e,t)}function pa(e,t){return sa(4,2,e,t)}function ha(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function va(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,sa(4,2,ha.bind(null,t,e),n)}function ba(){}function ma(e,t){return ta().memoizedState=[e,void 0===t?null:t],e}function ya(e,t){var n=na();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ji(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ga(e,t){var n=na();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ji(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function wa(e,t,n){var r=Ko();Yo(98>r?98:r,(function(){e(!0)})),Yo(97<r?97:r,(function(){var r=Vi.suspense;Vi.suspense=void 0===t?null:t;try{e(!1),n()}finally{Vi.suspense=r}}))}function xa(e,t,n){var r=lu(),o=gi.suspense;o={expirationTime:r=su(r,e,o),suspenseConfig:o,action:n,eagerReducer:null,eagerState:null,next:null};var i=t.pending;if(null===i?o.next=o:(o.next=i.next,i.next=o),t.pending=o,i=e.alternate,e===$i||null!==i&&i===$i)Xi=!0,o.expirationTime=Ki,$i.expirationTime=Ki;else{if(0===e.expirationTime&&(null===i||0===i.expirationTime)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,c=i(a,n);if(o.eagerReducer=i,o.eagerState=c,Wr(c,a))return}catch(u){}fu(e,r)}}var Oa={readContext:si,useCallback:Zi,useContext:Zi,useEffect:Zi,useImperativeHandle:Zi,useLayoutEffect:Zi,useMemo:Zi,useReducer:Zi,useRef:Zi,useState:Zi,useDebugValue:Zi,useResponder:Zi,useDeferredValue:Zi,useTransition:Zi},ja={readContext:si,useCallback:ma,useContext:si,useEffect:fa,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,la(4,2,ha.bind(null,t,e),n)},useLayoutEffect:function(e,t){return la(4,2,e,t)},useMemo:function(e,t){var n=ta();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ta();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=xa.bind(null,$i,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ta().memoizedState=e},useState:aa,useDebugValue:ba,useResponder:qi,useDeferredValue:function(e,t){var n=aa(e),r=n[0],o=n[1];return fa((function(){var n=Vi.suspense;Vi.suspense=void 0===t?null:t;try{o(e)}finally{Vi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=aa(!1),n=t[0];return t=t[1],[ma(wa.bind(null,t,e),[t,e]),n]}},ka={readContext:si,useCallback:ya,useContext:si,useEffect:da,useImperativeHandle:va,useLayoutEffect:pa,useMemo:ga,useReducer:oa,useRef:ua,useState:function(){return oa(ra)},useDebugValue:ba,useResponder:qi,useDeferredValue:function(e,t){var n=oa(ra),r=n[0],o=n[1];return da((function(){var n=Vi.suspense;Vi.suspense=void 0===t?null:t;try{o(e)}finally{Vi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=oa(ra),n=t[0];return t=t[1],[ya(wa.bind(null,t,e),[t,e]),n]}},Sa={readContext:si,useCallback:ya,useContext:si,useEffect:da,useImperativeHandle:va,useLayoutEffect:pa,useMemo:ga,useReducer:ia,useRef:ua,useState:function(){return ia(ra)},useDebugValue:ba,useResponder:qi,useDeferredValue:function(e,t){var n=ia(ra),r=n[0],o=n[1];return da((function(){var n=Vi.suspense;Vi.suspense=void 0===t?null:t;try{o(e)}finally{Vi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=ia(ra),n=t[0];return t=t[1],[ya(wa.bind(null,t,e),[t,e]),n]}},Ea=null,Ca=null,Ta=!1;function Ia(e,t){var n=Hu(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Pa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function La(e){if(Ta){var t=Ca;if(t){var n=t;if(!Pa(e,t)){if(!(t=Cn(n.nextSibling))||!Pa(e,t))return e.effectTag=-1025&e.effectTag|2,Ta=!1,void(Ea=e);Ia(Ea,n)}Ea=e,Ca=Cn(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Ta=!1,Ea=e}}function _a(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ea=e}function Ra(e){if(e!==Ea)return!1;if(!Ta)return _a(e),Ta=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!kn(t,e.memoizedProps))for(t=Ca;t;)Ia(e,t),t=Cn(t.nextSibling);if(_a(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if(n===yn){if(0===t){Ca=Cn(e.nextSibling);break e}t--}else n!==mn&&n!==wn&&n!==gn||t++}e=e.nextSibling}Ca=null}}else Ca=Ea?Cn(e.stateNode.nextSibling):null;return!0}function Na(){Ca=Ea=null,Ta=!1}var Ma=Q.ReactCurrentOwner,Aa=!1;function Da(e,t,n,r){t.child=null===e?_i(t,null,n,r):Li(t,e.child,n,r)}function Fa(e,t,n,r,o){n=n.render;var i=t.ref;return li(t,o),r=ea(e,t,n,r,i,o),null===e||Aa?(t.effectTag|=1,Da(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),tc(e,t,o))}function za(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!==typeof a||Uu(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=qu(n.type,null,r,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ba(e,t,a,r,o,i))}return a=e.child,o<i&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:Gr)(o,r)&&e.ref===t.ref)?tc(e,t,i):(t.effectTag|=1,(e=Wu(a,r)).ref=t.ref,e.return=t,t.child=e)}function Ba(e,t,n,r,o,i){return null!==e&&Gr(e.memoizedProps,r)&&e.ref===t.ref&&(Aa=!1,o<i)?(t.expirationTime=e.expirationTime,tc(e,t,i)):Ua(e,t,n,r,i)}function Ha(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Ua(e,t,n,r,o){var i=Oo(n)?wo:yo.current;return i=xo(t,i),li(t,o),n=ea(e,t,n,r,i,o),null===e||Aa?(t.effectTag|=1,Da(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),tc(e,t,o))}function Wa(e,t,n,r,o){if(Oo(n)){var i=!0;Eo(t)}else i=!1;if(li(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),ki(t,n,r),Ei(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,c=t.memoizedProps;a.props=c;var u=a.context,l=n.contextType;"object"===typeof l&&null!==l?l=si(l):l=xo(t,l=Oo(n)?wo:yo.current);var s=n.getDerivedStateFromProps,f="function"===typeof s||"function"===typeof a.getSnapshotBeforeUpdate;f||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(c!==r||u!==l)&&Si(t,a,r,l),fi=!1;var d=t.memoizedState;a.state=d,mi(t,r,a,o),u=t.memoizedState,c!==r||d!==u||go.current||fi?("function"===typeof s&&(xi(t,n,s,r),u=t.memoizedState),(c=fi||ji(t,n,c,r,d,u,l))?(f||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.effectTag|=4)):("function"===typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=l,r=c):("function"===typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,pi(e,t),c=t.memoizedProps,a.props=t.type===t.elementType?c:ti(t.type,c),u=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=si(l):l=xo(t,l=Oo(n)?wo:yo.current),(f="function"===typeof(s=n.getDerivedStateFromProps)||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(c!==r||u!==l)&&Si(t,a,r,l),fi=!1,u=t.memoizedState,a.state=u,mi(t,r,a,o),d=t.memoizedState,c!==r||u!==d||go.current||fi?("function"===typeof s&&(xi(t,n,s,r),d=t.memoizedState),(s=fi||ji(t,n,c,r,u,d,l))?(f||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,d,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,d,l)),"function"===typeof a.componentDidUpdate&&(t.effectTag|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!==typeof a.componentDidUpdate||c===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!==typeof a.getSnapshotBeforeUpdate||c===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=d),a.props=r,a.state=d,a.context=l,r=s):("function"!==typeof a.componentDidUpdate||c===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!==typeof a.getSnapshotBeforeUpdate||c===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),r=!1);return qa(e,t,n,r,i,o)}function qa(e,t,n,r,o,i){Ha(e,t);var a=0!==(64&t.effectTag);if(!r&&!a)return o&&Co(t,n,!1),tc(e,t,i);r=t.stateNode,Ma.current=t;var c=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=Li(t,e.child,null,i),t.child=Li(t,null,c,i)):Da(e,t,c,i),t.memoizedState=r.state,o&&Co(t,n,!0),t.child}function Ga(e){var t=e.stateNode;t.pendingContext?ko(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ko(0,t.context,!1),Fi(e,t.containerInfo)}var Va,Ka,$a,Ya,Qa={dehydrated:null,retryTime:0};function Xa(e,t,n){var r,o=t.mode,i=t.pendingProps,a=Ui.current,c=!1;if((r=0!==(64&t.effectTag))||(r=0!==(2&a)&&(null===e||null!==e.memoizedState)),r?(c=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),bo(Ui,1&a),null===e){if(void 0!==i.fallback&&La(t),c){if(c=i.fallback,(i=Gu(null,o,0,null)).return=t,0===(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=Gu(c,o,n,null)).return=t,i.sibling=n,t.memoizedState=Qa,t.child=i,n}return o=i.children,t.memoizedState=null,t.child=_i(t,null,o,n)}if(null!==e.memoizedState){if(o=(e=e.child).sibling,c){if(i=i.fallback,(n=Wu(e,e.pendingProps)).return=t,0===(2&t.mode)&&(c=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=c;null!==c;)c.return=n,c=c.sibling;return(o=Wu(o,i)).return=t,n.sibling=o,n.childExpirationTime=0,t.memoizedState=Qa,t.child=n,o}return n=Li(t,e.child,i.children,n),t.memoizedState=null,t.child=n}if(e=e.child,c){if(c=i.fallback,(i=Gu(null,o,0,null)).return=t,i.child=e,null!==e&&(e.return=i),0===(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=Gu(c,o,n,null)).return=t,i.sibling=n,n.effectTag|=2,i.childExpirationTime=0,t.memoizedState=Qa,t.child=i,n}return t.memoizedState=null,t.child=Li(t,e,i.children,n)}function Za(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),ui(e.return,t)}function Ja(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=o,a.lastEffect=i)}function ec(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Da(e,t,r.children,n),0!==(2&(r=Ui.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!==(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Za(e,n);else if(19===e.tag)Za(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(bo(Ui,r),0===(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Wi(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ja(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Wi(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Ja(t,!0,n,null,i,t.lastEffect);break;case"together":Ja(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function tc(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&ju(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Wu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Wu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function nc(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function rc(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return Oo(t.type)&&jo(),null;case 3:return zi(),vo(go),vo(yo),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!Ra(t)||(t.effectTag|=4),Ka(t),null;case 5:Hi(t),n=Di(Ai.current);var i=t.type;if(null!==e&&null!=t.stateNode)$a(e,t,i,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Di(Ni.current),Ra(t)){r=t.stateNode,i=t.type;var c=t.memoizedProps;switch(r[Pn]=t,r[Ln]=c,i){case"iframe":case"object":case"embed":$t("load",r);break;case"video":case"audio":for(e=0;e<Xe.length;e++)$t(Xe[e],r);break;case"source":$t("error",r);break;case"img":case"image":case"link":$t("error",r),$t("load",r);break;case"form":$t("reset",r),$t("submit",r);break;case"details":$t("toggle",r);break;case"input":je(r,c),$t("invalid",r),ln(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!c.multiple},$t("invalid",r),ln(n,"onChange");break;case"textarea":Le(r,c),$t("invalid",r),ln(n,"onChange")}for(var u in an(i,c),e=null,c)if(c.hasOwnProperty(u)){var l=c[u];"children"===u?"string"===typeof l?r.textContent!==l&&(e=["children",l]):"number"===typeof l&&r.textContent!==""+l&&(e=["children",""+l]):k.hasOwnProperty(u)&&null!=l&&ln(n,u)}switch(i){case"input":we(r),Ee(r,c,!0);break;case"textarea":we(r),Re(r);break;case"select":case"option":break;default:"function"===typeof c.onClick&&(r.onclick=sn)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(u=9===n.nodeType?n:n.ownerDocument,e===un&&(e=Ae(i)),e===un?"script"===i?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=u.createElement(i,{is:r.is}):(e=u.createElement(i),"select"===i&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,i),e[Pn]=t,e[Ln]=r,Va(e,t,!1,!1),t.stateNode=e,u=cn(i,r),i){case"iframe":case"object":case"embed":$t("load",e),l=r;break;case"video":case"audio":for(l=0;l<Xe.length;l++)$t(Xe[l],e);l=r;break;case"source":$t("error",e),l=r;break;case"img":case"image":case"link":$t("error",e),$t("load",e),l=r;break;case"form":$t("reset",e),$t("submit",e),l=r;break;case"details":$t("toggle",e),l=r;break;case"input":je(e,r),l=Oe(e,r),$t("invalid",e),ln(n,"onChange");break;case"option":l=Te(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=o({},r,{value:void 0}),$t("invalid",e),ln(n,"onChange");break;case"textarea":Le(e,r),l=Pe(e,r),$t("invalid",e),ln(n,"onChange");break;default:l=r}an(i,l);var s=l;for(c in s)if(s.hasOwnProperty(c)){var f=s[c];"style"===c?rn(e,f):"dangerouslySetInnerHTML"===c?null!=(f=f?f.__html:void 0)&&Be(e,f):"children"===c?"string"===typeof f?("textarea"!==i||""!==f)&&He(e,f):"number"===typeof f&&He(e,""+f):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(k.hasOwnProperty(c)?null!=f&&ln(n,c):null!=f&&X(e,c,f,u))}switch(i){case"input":we(e),Ee(e,r,!1);break;case"textarea":we(e),Re(e);break;case"option":null!=r.value&&e.setAttribute("value",""+ye(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?Ie(e,!!r.multiple,n,!1):null!=r.defaultValue&&Ie(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof l.onClick&&(e.onclick=sn)}jn(i,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Ya(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));n=Di(Ai.current),Di(Ni.current),Ra(t)?(n=t.stateNode,r=t.memoizedProps,n[Pn]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Pn]=t,t.stateNode=n)}return null;case 13:return vo(Ui),r=t.memoizedState,0!==(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&Ra(t):(r=null!==(i=e.memoizedState),n||null===i||null!==(i=e.child.sibling)&&(null!==(c=t.firstEffect)?(t.firstEffect=i,i.nextEffect=c):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),n&&!r&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&Ui.current)?Wc===Rc&&(Wc=Ac):(Wc!==Rc&&Wc!==Ac||(Wc=Dc),0!==$c&&null!==Bc&&(Qu(Bc,Uc),Xu(Bc,$c)))),(n||r)&&(t.effectTag|=4),null);case 4:return zi(),Ka(t),null;case 10:return ci(t),null;case 19:if(vo(Ui),null===(r=t.memoizedState))return null;if(i=0!==(64&t.effectTag),null===(c=r.rendering)){if(i)nc(r,!1);else if(Wc!==Rc||null!==e&&0!==(64&e.effectTag))for(c=t.child;null!==c;){if(null!==(e=Wi(c))){for(t.effectTag|=64,nc(r,!1),null!==(i=e.updateQueue)&&(t.updateQueue=i,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)c=n,(i=r).effectTag&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,null===(e=i.alternate)?(i.childExpirationTime=0,i.expirationTime=c,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null):(i.childExpirationTime=e.childExpirationTime,i.expirationTime=e.expirationTime,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,c=e.dependencies,i.dependencies=null===c?null:{expirationTime:c.expirationTime,firstContext:c.firstContext,responders:c.responders}),r=r.sibling;return bo(Ui,1&Ui.current|2),t.child}c=c.sibling}}else{if(!i)if(null!==(e=Wi(c))){if(t.effectTag|=64,i=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),nc(r,!0),null===r.tail&&"hidden"===r.tailMode&&!c.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Vo()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,i=!0,nc(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=r.last)?n.sibling=c:t.child=c,r.last=c)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=Vo()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Vo(),n.sibling=null,t=Ui.current,bo(Ui,i?1&t|2:1&t),n):null}throw Error(a(156,t.tag))}function oc(e){switch(e.tag){case 1:Oo(e.type)&&jo();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(zi(),vo(go),vo(yo),0!==(64&(t=e.effectTag)))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return Hi(e),null;case 13:return vo(Ui),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return vo(Ui),null;case 4:return zi(),null;case 10:return ci(e),null;default:return null}}function ic(e,t){return{value:e,source:t,stack:me(t)}}Va=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ka=function(){},$a=function(e,t,n,r,i){var a=e.memoizedProps;if(a!==r){var c,u,l=t.stateNode;switch(Di(Ni.current),e=null,n){case"input":a=Oe(l,a),r=Oe(l,r),e=[];break;case"option":a=Te(l,a),r=Te(l,r),e=[];break;case"select":a=o({},a,{value:void 0}),r=o({},r,{value:void 0}),e=[];break;case"textarea":a=Pe(l,a),r=Pe(l,r),e=[];break;default:"function"!==typeof a.onClick&&"function"===typeof r.onClick&&(l.onclick=sn)}for(c in an(n,r),n=null,a)if(!r.hasOwnProperty(c)&&a.hasOwnProperty(c)&&null!=a[c])if("style"===c)for(u in l=a[c])l.hasOwnProperty(u)&&(n||(n={}),n[u]="");else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(k.hasOwnProperty(c)?e||(e=[]):(e=e||[]).push(c,null));for(c in r){var s=r[c];if(l=null!=a?a[c]:void 0,r.hasOwnProperty(c)&&s!==l&&(null!=s||null!=l))if("style"===c)if(l){for(u in l)!l.hasOwnProperty(u)||s&&s.hasOwnProperty(u)||(n||(n={}),n[u]="");for(u in s)s.hasOwnProperty(u)&&l[u]!==s[u]&&(n||(n={}),n[u]=s[u])}else n||(e||(e=[]),e.push(c,n)),n=s;else"dangerouslySetInnerHTML"===c?(s=s?s.__html:void 0,l=l?l.__html:void 0,null!=s&&l!==s&&(e=e||[]).push(c,s)):"children"===c?l===s||"string"!==typeof s&&"number"!==typeof s||(e=e||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(k.hasOwnProperty(c)?(null!=s&&ln(i,c),e||l===s||(e=[])):(e=e||[]).push(c,s))}n&&(e=e||[]).push("style",n),i=e,(t.updateQueue=i)&&(t.effectTag|=4)}},Ya=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var ac="function"===typeof WeakSet?WeakSet:Set;function cc(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=me(n)),null!==n&&be(n.type),t=t.value,null!==e&&1===e.tag&&be(e.type);try{console.error(t)}catch(o){setTimeout((function(){throw o}))}}function uc(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){Mu(e,n)}else t.current=null}function lc(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 3:case 5:case 6:case 4:case 17:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:ti(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return}throw Error(a(163))}function sc(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function fc(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function dc(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void fc(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:ti(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&yi(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}yi(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&jn(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Dt(n)))))}throw Error(a(163))}function pc(e,t,n){switch("function"===typeof zu&&zu(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;Yo(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var o=t;try{n()}catch(i){Mu(o,i)}}e=e.next}while(e!==r)}))}break;case 1:uc(t),"function"===typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(n){Mu(e,n)}}(t,n);break;case 5:uc(t);break;case 4:gc(e,t,n)}}function hc(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&hc(t)}function vc(e){return 5===e.tag||3===e.tag||4===e.tag}function bc(e){e:{for(var t=e.return;null!==t;){if(vc(t)){var n=t;break e}t=t.return}throw Error(a(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.effectTag&&(He(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||vc(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?mc(e,n,t):yc(e,n,t)}function mc(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=sn));else if(4!==r&&null!==(e=e.child))for(mc(e,t,n),e=e.sibling;null!==e;)mc(e,t,n),e=e.sibling}function yc(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(yc(e,t,n),e=e.sibling;null!==e;)yc(e,t,n),e=e.sibling}function gc(e,t,n){for(var r,o,i=t,c=!1;;){if(!c){c=i.return;e:for(;;){if(null===c)throw Error(a(160));switch(r=c.stateNode,c.tag){case 5:o=!1;break e;case 3:case 4:r=r.containerInfo,o=!0;break e}c=c.return}c=!0}if(5===i.tag||6===i.tag){e:for(var u=e,l=i,s=n,f=l;;)if(pc(u,f,s),null!==f.child&&4!==f.tag)f.child.return=f,f=f.child;else{if(f===l)break e;for(;null===f.sibling;){if(null===f.return||f.return===l)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}o?(u=r,l=i.stateNode,8===u.nodeType?u.parentNode.removeChild(l):u.removeChild(l)):r.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){r=i.stateNode.containerInfo,o=!0,i.child.return=i,i=i.child;continue}}else if(pc(e,i,n),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(c=!1)}i.sibling.return=i.return,i=i.sibling}}function wc(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void sc(3,t);case 1:case 12:case 17:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[Ln]=r,"input"===e&&"radio"===r.type&&null!=r.name&&ke(n,r),cn(e,o),t=cn(e,r),o=0;o<i.length;o+=2){var c=i[o],u=i[o+1];"style"===c?rn(n,u):"dangerouslySetInnerHTML"===c?Be(n,u):"children"===c?He(n,u):X(n,c,u,t)}switch(e){case"input":Se(n,r);break;case"textarea":_e(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Ie(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Ie(n,!!r.multiple,r.defaultValue,!0):Ie(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Dt(t.containerInfo)));case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,Qc=Vo()),null!==n)e:for(e=n;;){if(5===e.tag)i=e.stateNode,r?"function"===typeof(i=i.style).setProperty?i.setProperty("display","none","important"):i.display="none":(i=e.stateNode,o=void 0!==(o=e.memoizedProps.style)&&null!==o&&o.hasOwnProperty("display")?o.display:null,i.style.display=nn("display",o));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(i=e.child.sibling).return=e,e=i;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void xc(t);case 19:return void xc(t)}throw Error(a(163))}function xc(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ac),t.forEach((function(t){var r=Du.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var Oc="function"===typeof WeakMap?WeakMap:Map;function jc(e,t,n){(n=hi(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Jc||(Jc=!0,eu=r),cc(e,t)},n}function kc(e,t,n){(n=hi(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;n.payload=function(){return cc(e,t),r(o)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===tu?tu=new Set([this]):tu.add(this),cc(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var Sc,Ec=Math.ceil,Cc=Q.ReactCurrentDispatcher,Tc=Q.ReactCurrentOwner,Ic=0,Pc=8,Lc=16,_c=32,Rc=0,Nc=1,Mc=2,Ac=3,Dc=4,Fc=5,zc=Ic,Bc=null,Hc=null,Uc=0,Wc=Rc,qc=null,Gc=1073741823,Vc=1073741823,Kc=null,$c=0,Yc=!1,Qc=0,Xc=500,Zc=null,Jc=!1,eu=null,tu=null,nu=!1,ru=null,ou=90,iu=null,au=0,cu=null,uu=0;function lu(){return(zc&(Lc|_c))!==Ic?1073741821-(Vo()/10|0):0!==uu?uu:uu=1073741821-(Vo()/10|0)}function su(e,t,n){if(0===(2&(t=t.mode)))return 1073741823;var r=Ko();if(0===(4&t))return 99===r?1073741823:1073741822;if((zc&Lc)!==Ic)return Uc;if(null!==n)e=ei(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=ei(e,150,100);break;case 97:case 96:e=ei(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==Bc&&e===Uc&&--e,e}function fu(e,t){if(50<au)throw au=0,cu=null,Error(a(185));if(null!==(e=du(e,t))){var n=Ko();1073741823===t?(zc&Pc)!==Ic&&(zc&(Lc|_c))===Ic?bu(e):(hu(e),zc===Ic&&Zo()):hu(e),(4&zc)===Ic||98!==n&&99!==n||(null===iu?iu=new Map([[e,t]]):(void 0===(n=iu.get(e))||n>t)&&iu.set(e,t))}}function du(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,o=null;if(null===r&&3===e.tag)o=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){o=r.stateNode;break}r=r.return}return null!==o&&(Bc===o&&(ju(t),Wc===Dc&&Qu(o,Uc)),Xu(o,t)),o}function pu(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Yu(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function hu(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Xo(bu.bind(null,e));else{var t=pu(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=lu();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var o=e.callbackPriority;if(e.callbackExpirationTime===t&&o>=r)return;n!==zo&&Po(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Xo(bu.bind(null,e)):Qo(r,vu.bind(null,e),{timeout:10*(1073741821-t)-Vo()}),e.callbackNode=t}}}function vu(e,t){if(uu=0,t)return Zu(e,t=lu()),hu(e),null;var n=pu(e);if(0!==n){if(t=e.callbackNode,(zc&(Lc|_c))!==Ic)throw Error(a(327));if(_u(),e===Bc&&n===Uc||gu(e,n),null!==Hc){var r=zc;zc|=Lc;for(var o=xu();;)try{Su();break}catch(u){wu(e,u)}if(ai(),zc=r,Cc.current=o,Wc===Nc)throw t=qc,gu(e,n),Qu(e,n),hu(e),t;if(null===Hc)switch(o=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=Wc,Bc=null,r){case Rc:case Nc:throw Error(a(345));case Mc:Zu(e,2<n?2:n);break;case Ac:if(Qu(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=Tu(o)),1073741823===Gc&&10<(o=Qc+Xc-Vo())){if(Yc){var i=e.lastPingedTime;if(0===i||i>=n){e.lastPingedTime=n,gu(e,n);break}}if(0!==(i=pu(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=Sn(Iu.bind(null,e),o);break}Iu(e);break;case Dc:if(Qu(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=Tu(o)),Yc&&(0===(o=e.lastPingedTime)||o>=n)){e.lastPingedTime=n,gu(e,n);break}if(0!==(o=pu(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Vc?r=10*(1073741821-Vc)-Vo():1073741823===Gc?r=0:(r=10*(1073741821-Gc)-5e3,0>(r=(o=Vo())-r)&&(r=0),(n=10*(1073741821-n)-o)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Ec(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=Sn(Iu.bind(null,e),r);break}Iu(e);break;case Fc:if(1073741823!==Gc&&null!==Kc){i=Gc;var c=Kc;if(0>=(r=0|c.busyMinDurationMs)?r=0:(o=0|c.busyDelayMs,r=(i=Vo()-(10*(1073741821-i)-(0|c.timeoutMs||5e3)))<=o?0:o+r-i),10<r){Qu(e,n),e.timeoutHandle=Sn(Iu.bind(null,e),r);break}}Iu(e);break;default:throw Error(a(329))}if(hu(e),e.callbackNode===t)return vu.bind(null,e)}}return null}function bu(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,(zc&(Lc|_c))!==Ic)throw Error(a(327));if(_u(),e===Bc&&t===Uc||gu(e,t),null!==Hc){var n=zc;zc|=Lc;for(var r=xu();;)try{ku();break}catch(o){wu(e,o)}if(ai(),zc=n,Cc.current=r,Wc===Nc)throw n=qc,gu(e,t),Qu(e,t),hu(e),n;if(null!==Hc)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Bc=null,Iu(e),hu(e)}return null}function mu(e,t){var n=zc;zc|=1;try{return e(t)}finally{(zc=n)===Ic&&Zo()}}function yu(e,t){var n=zc;zc&=-2,zc|=Pc;try{return e(t)}finally{(zc=n)===Ic&&Zo()}}function gu(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,En(n)),null!==Hc)for(n=Hc.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&jo();break;case 3:zi(),vo(go),vo(yo);break;case 5:Hi(r);break;case 4:zi();break;case 13:case 19:vo(Ui);break;case 10:ci(r)}n=n.return}Bc=e,Hc=Wu(e.current,null),Uc=t,Wc=Rc,qc=null,Vc=Gc=1073741823,Kc=null,$c=0,Yc=!1}function wu(e,t){for(;;){try{if(ai(),Gi.current=Oa,Xi)for(var n=$i.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Ki=0,Qi=Yi=$i=null,Xi=!1,null===Hc||null===Hc.return)return Wc=Nc,qc=t,Hc=null;e:{var o=e,i=Hc.return,a=Hc,c=t;if(t=Uc,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==c&&"object"===typeof c&&"function"===typeof c.then){var u=c;if(0===(2&a.mode)){var l=a.alternate;l?(a.updateQueue=l.updateQueue,a.memoizedState=l.memoizedState,a.expirationTime=l.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var s=0!==(1&Ui.current),f=i;do{var d;if(d=13===f.tag){var p=f.memoizedState;if(null!==p)d=null!==p.dehydrated;else{var h=f.memoizedProps;d=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!s)}}if(d){var v=f.updateQueue;if(null===v){var b=new Set;b.add(u),f.updateQueue=b}else v.add(u);if(0===(2&f.mode)){if(f.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var m=hi(1073741823,null);m.tag=2,vi(a,m)}a.expirationTime=1073741823;break e}c=void 0,a=t;var y=o.pingCache;if(null===y?(y=o.pingCache=new Oc,c=new Set,y.set(u,c)):void 0===(c=y.get(u))&&(c=new Set,y.set(u,c)),!c.has(a)){c.add(a);var g=Au.bind(null,o,u,a);u.then(g,g)}f.effectTag|=4096,f.expirationTime=t;break e}f=f.return}while(null!==f);c=Error((be(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+me(a))}Wc!==Fc&&(Wc=Mc),c=ic(c,a),f=i;do{switch(f.tag){case 3:u=c,f.effectTag|=4096,f.expirationTime=t,bi(f,jc(f,u,t));break e;case 1:u=c;var w=f.type,x=f.stateNode;if(0===(64&f.effectTag)&&("function"===typeof w.getDerivedStateFromError||null!==x&&"function"===typeof x.componentDidCatch&&(null===tu||!tu.has(x)))){f.effectTag|=4096,f.expirationTime=t,bi(f,kc(f,u,t));break e}}f=f.return}while(null!==f)}Hc=Cu(Hc)}catch(O){t=O;continue}break}}function xu(){var e=Cc.current;return Cc.current=Oa,null===e?Oa:e}function Ou(e,t){e<Gc&&2<e&&(Gc=e),null!==t&&e<Vc&&2<e&&(Vc=e,Kc=t)}function ju(e){e>$c&&($c=e)}function ku(){for(;null!==Hc;)Hc=Eu(Hc)}function Su(){for(;null!==Hc&&!Bo();)Hc=Eu(Hc)}function Eu(e){var t=Sc(e.alternate,e,Uc);return e.memoizedProps=e.pendingProps,null===t&&(t=Cu(e)),Tc.current=null,t}function Cu(e){Hc=e;do{var t=Hc.alternate;if(e=Hc.return,0===(2048&Hc.effectTag)){if(t=rc(t,Hc,Uc),1===Uc||1!==Hc.childExpirationTime){for(var n=0,r=Hc.child;null!==r;){var o=r.expirationTime,i=r.childExpirationTime;o>n&&(n=o),i>n&&(n=i),r=r.sibling}Hc.childExpirationTime=n}if(null!==t)return t;null!==e&&0===(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Hc.firstEffect),null!==Hc.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Hc.firstEffect),e.lastEffect=Hc.lastEffect),1<Hc.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Hc:e.firstEffect=Hc,e.lastEffect=Hc))}else{if(null!==(t=oc(Hc)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Hc.sibling))return t;Hc=e}while(null!==Hc);return Wc===Rc&&(Wc=Fc),null}function Tu(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function Iu(e){var t=Ko();return Yo(99,Pu.bind(null,e,t)),null}function Pu(e,t){do{_u()}while(null!==ru);if((zc&(Lc|_c))!==Ic)throw Error(a(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var o=Tu(n);if(e.firstPendingTime=o,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Bc&&(Hc=Bc=null,Uc=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,null!==o){var i=zc;zc|=_c,Tc.current=null,xn=Kt;var c=vn();if(bn(c)){if("selectionStart"in c)var u={start:c.selectionStart,end:c.selectionEnd};else e:{var l=(u=(u=c.ownerDocument)&&u.defaultView||window).getSelection&&u.getSelection();if(l&&0!==l.rangeCount){u=l.anchorNode;var s=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{u.nodeType,f.nodeType}catch(E){u=null;break e}var d=0,p=-1,h=-1,v=0,b=0,m=c,y=null;t:for(;;){for(var g;m!==u||0!==s&&3!==m.nodeType||(p=d+s),m!==f||0!==l&&3!==m.nodeType||(h=d+l),3===m.nodeType&&(d+=m.nodeValue.length),null!==(g=m.firstChild);)y=m,m=g;for(;;){if(m===c)break t;if(y===u&&++v===s&&(p=d),y===f&&++b===l&&(h=d),null!==(g=m.nextSibling))break;y=(m=y).parentNode}m=g}u=-1===p||-1===h?null:{start:p,end:h}}else u=null}u=u||{start:0,end:0}}else u=null;On={activeElementDetached:null,focusedElem:c,selectionRange:u},Kt=!1,Zc=o;do{try{Lu()}catch(E){if(null===Zc)throw Error(a(330));Mu(Zc,E),Zc=Zc.nextEffect}}while(null!==Zc);Zc=o;do{try{for(c=e,u=t;null!==Zc;){var w=Zc.effectTag;if(16&w&&He(Zc.stateNode,""),128&w){var x=Zc.alternate;if(null!==x){var O=x.ref;null!==O&&("function"===typeof O?O(null):O.current=null)}}switch(1038&w){case 2:bc(Zc),Zc.effectTag&=-3;break;case 6:bc(Zc),Zc.effectTag&=-3,wc(Zc.alternate,Zc);break;case 1024:Zc.effectTag&=-1025;break;case 1028:Zc.effectTag&=-1025,wc(Zc.alternate,Zc);break;case 4:wc(Zc.alternate,Zc);break;case 8:gc(c,s=Zc,u),hc(s)}Zc=Zc.nextEffect}}catch(E){if(null===Zc)throw Error(a(330));Mu(Zc,E),Zc=Zc.nextEffect}}while(null!==Zc);if(O=On,x=vn(),w=O.focusedElem,u=O.selectionRange,x!==w&&w&&w.ownerDocument&&hn(w.ownerDocument.documentElement,w)){null!==u&&bn(w)&&(x=u.start,void 0===(O=u.end)&&(O=x),"selectionStart"in w?(w.selectionStart=x,w.selectionEnd=Math.min(O,w.value.length)):(O=(x=w.ownerDocument||document)&&x.defaultView||window).getSelection&&(O=O.getSelection(),s=w.textContent.length,c=Math.min(u.start,s),u=void 0===u.end?c:Math.min(u.end,s),!O.extend&&c>u&&(s=u,u=c,c=s),s=pn(w,c),f=pn(w,u),s&&f&&(1!==O.rangeCount||O.anchorNode!==s.node||O.anchorOffset!==s.offset||O.focusNode!==f.node||O.focusOffset!==f.offset)&&((x=x.createRange()).setStart(s.node,s.offset),O.removeAllRanges(),c>u?(O.addRange(x),O.extend(f.node,f.offset)):(x.setEnd(f.node,f.offset),O.addRange(x))))),x=[];for(O=w;O=O.parentNode;)1===O.nodeType&&x.push({element:O,left:O.scrollLeft,top:O.scrollTop});for("function"===typeof w.focus&&w.focus(),w=0;w<x.length;w++)(O=x[w]).element.scrollLeft=O.left,O.element.scrollTop=O.top}Kt=!!xn,On=xn=null,e.current=n,Zc=o;do{try{for(w=e;null!==Zc;){var j=Zc.effectTag;if(36&j&&dc(w,Zc.alternate,Zc),128&j){x=void 0;var k=Zc.ref;if(null!==k){var S=Zc.stateNode;Zc.tag,x=S,"function"===typeof k?k(x):k.current=x}}Zc=Zc.nextEffect}}catch(E){if(null===Zc)throw Error(a(330));Mu(Zc,E),Zc=Zc.nextEffect}}while(null!==Zc);Zc=null,Ho(),zc=i}else e.current=n;if(nu)nu=!1,ru=e,ou=t;else for(Zc=o;null!==Zc;)t=Zc.nextEffect,Zc.nextEffect=null,Zc=t;if(0===(t=e.firstPendingTime)&&(tu=null),1073741823===t?e===cu?au++:(au=0,cu=e):au=0,"function"===typeof Fu&&Fu(n.stateNode,r),hu(e),Jc)throw Jc=!1,e=eu,eu=null,e;return(zc&Pc)!==Ic||Zo(),null}function Lu(){for(;null!==Zc;){var e=Zc.effectTag;0!==(256&e)&&lc(Zc.alternate,Zc),0===(512&e)||nu||(nu=!0,Qo(97,(function(){return _u(),null}))),Zc=Zc.nextEffect}}function _u(){if(90!==ou){var e=97<ou?97:ou;return ou=90,Yo(e,Ru)}}function Ru(){if(null===ru)return!1;var e=ru;if(ru=null,(zc&(Lc|_c))!==Ic)throw Error(a(331));var t=zc;for(zc|=_c,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!==(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:sc(5,n),fc(5,n)}}catch(r){if(null===e)throw Error(a(330));Mu(e,r)}n=e.nextEffect,e.nextEffect=null,e=n}return zc=t,Zo(),!0}function Nu(e,t,n){vi(e,t=jc(e,t=ic(n,t),1073741823)),null!==(e=du(e,1073741823))&&hu(e)}function Mu(e,t){if(3===e.tag)Nu(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Nu(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===tu||!tu.has(r))){vi(n,e=kc(n,e=ic(t,e),1073741823)),null!==(n=du(n,1073741823))&&hu(n);break}}n=n.return}}function Au(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),Bc===e&&Uc===n?Wc===Dc||Wc===Ac&&1073741823===Gc&&Vo()-Qc<Xc?gu(e,Uc):Yc=!0:Yu(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,hu(e)))}function Du(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=su(t=lu(),e,null)),null!==(e=du(e,t))&&hu(e)}Sc=function(e,t,n){var r=t.expirationTime;if(null!==e){var o=t.pendingProps;if(e.memoizedProps!==o||go.current)Aa=!0;else{if(r<n){switch(Aa=!1,t.tag){case 3:Ga(t),Na();break;case 5:if(Bi(t),4&t.mode&&1!==n&&o.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:Oo(t.type)&&Eo(t);break;case 4:Fi(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,o=t.type._context,bo(ni,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Xa(e,t,n):(bo(Ui,1&Ui.current),null!==(t=tc(e,t,n))?t.sibling:null);bo(Ui,1&Ui.current);break;case 19:if(r=t.childExpirationTime>=n,0!==(64&e.effectTag)){if(r)return ec(e,t,n);t.effectTag|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null),bo(Ui,Ui.current),!r)return null}return tc(e,t,n)}Aa=!1}}else Aa=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,o=xo(t,yo.current),li(t,n),o=ea(null,t,r,e,o,n),t.effectTag|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Oo(r)){var i=!0;Eo(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,di(t);var c=r.getDerivedStateFromProps;"function"===typeof c&&xi(t,r,c,e),o.updater=Oi,t.stateNode=o,o._reactInternalFiber=t,Ei(t,r,e,n),t=qa(null,t,r,!0,i,n)}else t.tag=0,Da(null,t,o,n),t=t.child;return t;case 16:e:{if(o=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(o),1!==o._status)throw o._result;switch(o=o._result,t.type=o,i=t.tag=function(e){if("function"===typeof e)return Uu(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===ue)return 11;if(e===fe)return 14}return 2}(o),e=ti(o,e),i){case 0:t=Ua(null,t,o,e,n);break e;case 1:t=Wa(null,t,o,e,n);break e;case 11:t=Fa(null,t,o,e,n);break e;case 14:t=za(null,t,o,ti(o.type,e),r,n);break e}throw Error(a(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ua(e,t,r,o=t.elementType===r?o:ti(r,o),n);case 1:return r=t.type,o=t.pendingProps,Wa(e,t,r,o=t.elementType===r?o:ti(r,o),n);case 3:if(Ga(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,pi(e,t),mi(t,r,null,n),(r=t.memoizedState.element)===o)Na(),t=tc(e,t,n);else{if((o=t.stateNode.hydrate)&&(Ca=Cn(t.stateNode.containerInfo.firstChild),Ea=t,o=Ta=!0),o)for(n=_i(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Da(e,t,r,n),Na();t=t.child}return t;case 5:return Bi(t),null===e&&La(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,c=o.children,kn(r,o)?c=null:null!==i&&kn(r,i)&&(t.effectTag|=16),Ha(e,t),4&t.mode&&1!==n&&o.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Da(e,t,c,n),t=t.child),t;case 6:return null===e&&La(t),null;case 13:return Xa(e,t,n);case 4:return Fi(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Li(t,null,r,n):Da(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Fa(e,t,r,o=t.elementType===r?o:ti(r,o),n);case 7:return Da(e,t,t.pendingProps,n),t.child;case 8:case 12:return Da(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,c=t.memoizedProps,i=o.value;var u=t.type._context;if(bo(ni,u._currentValue),u._currentValue=i,null!==c)if(u=c.value,0===(i=Wr(u,i)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(u,i):1073741823))){if(c.children===o.children&&!go.current){t=tc(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var l=u.dependencies;if(null!==l){c=u.child;for(var s=l.firstContext;null!==s;){if(s.context===r&&0!==(s.observedBits&i)){1===u.tag&&((s=hi(n,null)).tag=2,vi(u,s)),u.expirationTime<n&&(u.expirationTime=n),null!==(s=u.alternate)&&s.expirationTime<n&&(s.expirationTime=n),ui(u.return,n),l.expirationTime<n&&(l.expirationTime=n);break}s=s.next}}else c=10===u.tag&&u.type===t.type?null:u.child;if(null!==c)c.return=u;else for(c=u;null!==c;){if(c===t){c=null;break}if(null!==(u=c.sibling)){u.return=c.return,c=u;break}c=c.return}u=c}Da(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,li(t,n),r=r(o=si(o,i.unstable_observedBits)),t.effectTag|=1,Da(e,t,r,n),t.child;case 14:return i=ti(o=t.type,t.pendingProps),za(e,t,o,i=ti(o.type,i),r,n);case 15:return Ba(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ti(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,Oo(r)?(e=!0,Eo(t)):e=!1,li(t,n),ki(t,r,o),Ei(t,r,o,n),qa(null,t,r,!0,e,n);case 19:return ec(e,t,n)}throw Error(a(156,t.tag))};var Fu=null,zu=null;function Bu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Hu(e,t,n,r){return new Bu(e,t,n,r)}function Uu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Wu(e,t){var n=e.alternate;return null===n?((n=Hu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function qu(e,t,n,r,o,i){var c=2;if(r=e,"function"===typeof e)Uu(e)&&(c=1);else if("string"===typeof e)c=5;else e:switch(e){case ne:return Gu(n.children,o,i,t);case ce:c=8,o|=7;break;case re:c=8,o|=1;break;case oe:return(e=Hu(12,n,t,8|o)).elementType=oe,e.type=oe,e.expirationTime=i,e;case le:return(e=Hu(13,n,t,o)).type=le,e.elementType=le,e.expirationTime=i,e;case se:return(e=Hu(19,n,t,o)).elementType=se,e.expirationTime=i,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case ie:c=10;break e;case ae:c=9;break e;case ue:c=11;break e;case fe:c=14;break e;case de:c=16,r=null;break e;case pe:c=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Hu(c,n,t,o)).elementType=e,t.type=r,t.expirationTime=i,t}function Gu(e,t,n,r){return(e=Hu(7,e,r,t)).expirationTime=n,e}function Vu(e,t,n){return(e=Hu(6,e,null,t)).expirationTime=n,e}function Ku(e,t,n){return(t=Hu(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $u(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Yu(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Qu(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Xu(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Zu(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Ju(e,t,n,r){var o=t.current,i=lu(),c=gi.suspense;i=su(i,o,c);e:if(n){t:{if(et(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(Oo(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(a(171))}if(1===n.tag){var l=n.type;if(Oo(l)){n=So(n,l,u);break e}}n=u}else n=mo;return null===t.context?t.context=n:t.pendingContext=n,(t=hi(i,c)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),vi(o,t),fu(o,i),i}function el(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function tl(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function nl(e,t){tl(e,t),(e=e.alternate)&&tl(e,t)}function rl(e,t,n){var r=new $u(e,t,n=null!=n&&!0===n.hydrate),o=Hu(3,null,null,2===t?7:1===t?3:0);r.current=o,o.stateNode=r,di(o),e[_n]=r.current,n&&0!==t&&function(e,t){var n=Je(t);Ct.forEach((function(e){vt(e,t,n)})),Tt.forEach((function(e){vt(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function ol(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function il(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"===typeof o){var c=o;o=function(){var e=el(a);c.call(e)}}Ju(t,a,e,o)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new rl(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"===typeof o){var u=o;o=function(){var e=el(a);u.call(e)}}yu((function(){Ju(t,a,e,o)}))}return el(a)}function al(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ol(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}rl.prototype.render=function(e){Ju(e,this._internalRoot,null,null)},rl.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Ju(null,e,null,(function(){t[_n]=null}))},bt=function(e){if(13===e.tag){var t=ei(lu(),150,100);fu(e,t),nl(e,t)}},mt=function(e){13===e.tag&&(fu(e,3),nl(e,3))},yt=function(e){if(13===e.tag){var t=lu();fu(e,t=su(t,e,null)),nl(e,t)}},T=function(e,t,n){switch(t){case"input":if(Se(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=An(r);if(!o)throw Error(a(90));xe(r),Se(r,o)}}}break;case"textarea":_e(e,n);break;case"select":null!=(t=n.value)&&Ie(e,!!n.multiple,t,!1)}},N=mu,M=function(e,t,n,r,o){var i=zc;zc|=4;try{return Yo(98,e.bind(null,t,n,r,o))}finally{(zc=i)===Ic&&Zo()}},A=function(){(zc&(1|Lc|_c))===Ic&&(function(){if(null!==iu){var e=iu;iu=null,e.forEach((function(e,t){Zu(t,e),hu(t)})),Zo()}}(),_u())},D=function(e,t){var n=zc;zc|=2;try{return e(t)}finally{(zc=n)===Ic&&Zo()}};var cl={Events:[Nn,Mn,An,E,j,Wn,function(e){it(e,Un)},_,R,Zt,ut,_u,{current:!1}]};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Fu=function(e){try{t.onCommitFiberRoot(n,e,void 0,64===(64&e.current.effectTag))}catch(r){}},zu=function(e){try{t.onCommitFiberUnmount(n,e)}catch(r){}}}catch(r){}})(o({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Q.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=rt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:Rn,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=cl,t.createPortal=al,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=rt(t))?null:e.stateNode},t.flushSync=function(e,t){if((zc&(Lc|_c))!==Ic)throw Error(a(187));var n=zc;zc|=1;try{return Yo(99,e.bind(null,t))}finally{zc=n,Zo()}},t.hydrate=function(e,t,n){if(!ol(t))throw Error(a(200));return il(null,e,t,!0,n)},t.render=function(e,t,n){if(!ol(t))throw Error(a(200));return il(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!ol(e))throw Error(a(40));return!!e._reactRootContainer&&(yu((function(){il(null,null,e,!1,(function(){e._reactRootContainer=null,e[_n]=null}))})),!0)},t.unstable_batchedUpdates=mu,t.unstable_createPortal=function(e,t){return al(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ol(n))throw Error(a(200));if(null==e||void 0===e._reactInternalFiber)throw Error(a(38));return il(e,t,n,!1,r)},t.version="16.14.0"},function(e,t,n){"use strict";e.exports=n(217)},function(e,t,n){"use strict";var r,o,i,a,c;if("undefined"===typeof window||"function"!==typeof MessageChannel){var u=null,l=null,s=function e(){if(null!==u)try{var n=t.unstable_now();u(!0,n),u=null}catch(r){throw setTimeout(e,0),r}},f=Date.now();t.unstable_now=function(){return Date.now()-f},r=function(e){null!==u?setTimeout(r,0,e):(u=e,setTimeout(s,0))},o=function(e,t){l=setTimeout(e,t)},i=function(){clearTimeout(l)},a=function(){return!1},c=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,p=window.Date,h=window.setTimeout,v=window.clearTimeout;if("undefined"!==typeof console){var b=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!==typeof b&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"===typeof d&&"function"===typeof d.now)t.unstable_now=function(){return d.now()};else{var m=p.now();t.unstable_now=function(){return p.now()-m}}var y=!1,g=null,w=-1,x=5,O=0;a=function(){return t.unstable_now()>=O},c=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):x=0<e?Math.floor(1e3/e):5};var j=new MessageChannel,k=j.port2;j.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();O=e+x;try{g(!0,e)?k.postMessage(null):(y=!1,g=null)}catch(n){throw k.postMessage(null),n}}else y=!1},r=function(e){g=e,y||(y=!0,k.postMessage(null))},o=function(e,n){w=h((function(){e(t.unstable_now())}),n)},i=function(){v(w),w=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<T(o,t)))break e;e[r]=t,e[n]=o,n=r}}function E(e){return void 0===(e=e[0])?null:e}function C(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],c=i+1,u=e[c];if(void 0!==a&&0>T(a,n))void 0!==u&&0>T(u,a)?(e[r]=u,e[c]=n,r=c):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==u&&0>T(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}return null}function T(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var I=[],P=[],L=1,_=null,R=3,N=!1,M=!1,A=!1;function D(e){for(var t=E(P);null!==t;){if(null===t.callback)C(P);else{if(!(t.startTime<=e))break;C(P),t.sortIndex=t.expirationTime,S(I,t)}t=E(P)}}function F(e){if(A=!1,D(e),!M)if(null!==E(I))M=!0,r(z);else{var t=E(P);null!==t&&o(F,t.startTime-e)}}function z(e,n){M=!1,A&&(A=!1,i()),N=!0;var r=R;try{for(D(n),_=E(I);null!==_&&(!(_.expirationTime>n)||e&&!a());){var c=_.callback;if(null!==c){_.callback=null,R=_.priorityLevel;var u=c(_.expirationTime<=n);n=t.unstable_now(),"function"===typeof u?_.callback=u:_===E(I)&&C(I),D(n)}else C(I);_=E(I)}if(null!==_)var l=!0;else{var s=E(P);null!==s&&o(F,s.startTime-n),l=!1}return l}finally{_=null,R=r,N=!1}}function B(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var H=c;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){M||N||(M=!0,r(z))},t.unstable_getCurrentPriorityLevel=function(){return R},t.unstable_getFirstCallbackNode=function(){return E(I)},t.unstable_next=function(e){switch(R){case 1:case 2:case 3:var t=3;break;default:t=R}var n=R;R=t;try{return e()}finally{R=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=H,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=R;R=e;try{return t()}finally{R=n}},t.unstable_scheduleCallback=function(e,n,a){var c=t.unstable_now();if("object"===typeof a&&null!==a){var u=a.delay;u="number"===typeof u&&0<u?c+u:c,a="number"===typeof a.timeout?a.timeout:B(e)}else a=B(e),u=c;return e={id:L++,callback:n,priorityLevel:e,startTime:u,expirationTime:a=u+a,sortIndex:-1},u>c?(e.sortIndex=u,S(P,e),null===E(I)&&e===E(P)&&(A?i():A=!0,o(F,u-c))):(e.sortIndex=a,S(I,e),M||N||(M=!0,r(z))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();D(e);var n=E(I);return n!==_&&null!==_&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<_.expirationTime||a()},t.unstable_wrapCallback=function(e){var t=R;return function(){var n=R;R=t;try{return e.apply(this,arguments)}finally{R=n}}}},function(e,t,n){"use strict";e.exports=n(219)},function(e,t,n){"use strict";var r="function"===typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,s=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,v=r?Symbol.for("react.suspense_list"):60120,b=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function O(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case f:case d:case a:case u:case c:case h:return e;default:switch(e=e&&e.$$typeof){case s:case p:case m:case b:case l:return e;default:return t}}case i:return t}}}function j(e){return O(e)===d}t.AsyncMode=f,t.ConcurrentMode=d,t.ContextConsumer=s,t.ContextProvider=l,t.Element=o,t.ForwardRef=p,t.Fragment=a,t.Lazy=m,t.Memo=b,t.Portal=i,t.Profiler=u,t.StrictMode=c,t.Suspense=h,t.isAsyncMode=function(e){return j(e)||O(e)===f},t.isConcurrentMode=j,t.isContextConsumer=function(e){return O(e)===s},t.isContextProvider=function(e){return O(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return O(e)===p},t.isFragment=function(e){return O(e)===a},t.isLazy=function(e){return O(e)===m},t.isMemo=function(e){return O(e)===b},t.isPortal=function(e){return O(e)===i},t.isProfiler=function(e){return O(e)===u},t.isStrictMode=function(e){return O(e)===c},t.isSuspense=function(e){return O(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===d||e===u||e===c||e===h||e===v||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===b||e.$$typeof===l||e.$$typeof===s||e.$$typeof===p||e.$$typeof===g||e.$$typeof===w||e.$$typeof===x||e.$$typeof===y)},t.typeOf=O},function(e,t,n){"use strict";var r=60103,o=60106,i=60107,a=60108,c=60114,u=60109,l=60110,s=60112,f=60113,d=60120,p=60115,h=60116,v=60121,b=60122,m=60117,y=60129,g=60131;if("function"===typeof Symbol&&Symbol.for){var w=Symbol.for;r=w("react.element"),o=w("react.portal"),i=w("react.fragment"),a=w("react.strict_mode"),c=w("react.profiler"),u=w("react.provider"),l=w("react.context"),s=w("react.forward_ref"),f=w("react.suspense"),d=w("react.suspense_list"),p=w("react.memo"),h=w("react.lazy"),v=w("react.block"),b=w("react.server.block"),m=w("react.fundamental"),y=w("react.debug_trace_mode"),g=w("react.legacy_hidden")}function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case c:case a:case f:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case h:case p:case u:return e;default:return t}}case o:return t}}}var O=u,j=r,k=s,S=i,E=h,C=p,T=o,I=c,P=a,L=f;t.ContextConsumer=l,t.ContextProvider=O,t.Element=j,t.ForwardRef=k,t.Fragment=S,t.Lazy=E,t.Memo=C,t.Portal=T,t.Profiler=I,t.StrictMode=P,t.Suspense=L,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return x(e)===l},t.isContextProvider=function(e){return x(e)===u},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===s},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===h},t.isMemo=function(e){return x(e)===p},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===c},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===f},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===c||e===y||e===a||e===f||e===d||e===g||"object"===typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===p||e.$$typeof===u||e.$$typeof===l||e.$$typeof===s||e.$$typeof===m||e.$$typeof===v||e[0]===b)},t.typeOf=x},function(e,t,n){"use strict";var r=n(15),o=n(4),i=n(0),a=n(19),c=n(23),u=n(60),l=n(206),s=n(31),f=i.forwardRef((function(e,t){var n=e.children,c=e.classes,u=e.className,f=e.color,d=void 0===f?"default":f,p=e.component,h=void 0===p?"button":p,v=e.disabled,b=void 0!==v&&v,m=e.disableElevation,y=void 0!==m&&m,g=e.disableFocusRipple,w=void 0!==g&&g,x=e.endIcon,O=e.focusVisibleClassName,j=e.fullWidth,k=void 0!==j&&j,S=e.size,E=void 0===S?"medium":S,C=e.startIcon,T=e.type,I=void 0===T?"button":T,P=e.variant,L=void 0===P?"text":P,_=Object(r.a)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),R=C&&i.createElement("span",{className:Object(a.a)(c.startIcon,c["iconSize".concat(Object(s.a)(E))])},C),N=x&&i.createElement("span",{className:Object(a.a)(c.endIcon,c["iconSize".concat(Object(s.a)(E))])},x);return i.createElement(l.a,Object(o.a)({className:Object(a.a)(c.root,c[L],u,"inherit"===d?c.colorInherit:"default"!==d&&c["".concat(L).concat(Object(s.a)(d))],"medium"!==E&&[c["".concat(L,"Size").concat(Object(s.a)(E))],c["size".concat(Object(s.a)(E))]],y&&c.disableElevation,b&&c.disabled,k&&c.fullWidth),component:h,disabled:b,focusRipple:!w,focusVisibleClassName:Object(a.a)(c.focusVisible,O),ref:t,type:I},_),i.createElement("span",{className:c.label},R,n,N))}));t.a=Object(c.a)((function(e){return{root:Object(o.a)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:Object(u.a)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(u.a)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(u.a)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(Object(u.a)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:Object(u.a)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(Object(u.a)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:Object(u.a)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(f)},function(e,t,n){"use strict";var r=n(15),o=n(4),i=n(0),a=n.n(i),c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u="object"===("undefined"===typeof window?"undefined":c(window))&&"object"===("undefined"===typeof document?"undefined":c(document))&&9===document.nodeType;var l=n(146),s=n(117),f=n(129),d=n(76),p={}.constructor;function h(e){if(null==e||"object"!==typeof e)return e;if(Array.isArray(e))return e.map(h);if(e.constructor!==p)return e;var t={};for(var n in e)t[n]=h(e[n]);return t}function v(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=h(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var b=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},m=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=b(e[n]," ");else t=b(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function y(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function g(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function w(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;!1===n.format&&(i=-1/0);var c=y(n),u=c.linebreak,l=c.space;if(e&&i++,a)if(Array.isArray(a))for(var s=0;s<a.length;s++){var f=a[s];for(var d in f){var p=f[d];null!=p&&(r&&(r+=u),r+=g(d+":"+l+m(p)+";",i))}}else for(var h in a){var v=a[h];null!=v&&(r&&(r+=u),r+=g(h+":"+l+m(v)+";",i))}for(var b in t){var w=t[b];null!=w&&"fallbacks"!==b&&(r&&(r+=u),r+=g(b+":"+l+m(w)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+u+r+u),g(""+e+l+"{"+r,--i)+g("}",i)):r}var x=/([[\].#*$><+~=|^:(),"'`\s])/g,O="undefined"!==typeof CSS&&CSS.escape,j=function(e){return O?O(e):e.replace(x,"\\$1")},k=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var c=i&&a;if(c?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return c?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var u=this.options.sheet;return u&&u.attached,this},e}(),S=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,a=r.scoped,c=r.sheet,u=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=u(Object(f.a)(Object(f.a)(o)),c),o.selectorText="."+j(o.id)),o}Object(s.a)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!==typeof n?e[t]=n:Array.isArray(n)&&(e[t]=m(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Object(o.a)({},e,{allowEmpty:!0}):e;return w(this.selectorText,this.style,n)},Object(l.a)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(k),E={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new S(e,t,n)}},C={indent:1,children:!0},T=/@([\w-]+)/,I=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(T);for(var i in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new Z(Object(o.a)({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=C);var t=y(e).linebreak;if(null==e.indent&&(e.indent=C.indent),null==e.children&&(e.children=C.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),P=/@container|@media|@supports\s+/,L={onCreateRule:function(e,t,n){return P.test(e)?new I(e,t,n):null}},_={indent:1,children:!0},R=/@keyframes\s+([\w-]+)/,N=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(R);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,a=n.sheet,c=n.generateId;for(var u in this.id=!1===i?this.name:j(c(this,a)),this.rules=new Z(Object(o.a)({},n,{parent:this})),t)this.rules.add(u,t[u],Object(o.a)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=_);var t=y(e).linebreak;if(null==e.indent&&(e.indent=_.indent),null==e.children&&(e.children=_.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),M=/@keyframes\s+/,A=/\$([\w-]+)/g,D=function(e,t){return"string"===typeof e?e.replace(A,(function(e,n){return n in t?t[n]:e})):e},F=function(e,t,n){var r=e[t],o=D(r,n);o!==r&&(e[t]=o)},z={onCreateRule:function(e,t,n){return"string"===typeof e&&M.test(e)?new N(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&F(e,"animation-name",n.keyframes),"animation"in e&&F(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return D(e,r.keyframes);default:return e}}},B=function(e){function t(){return e.apply(this,arguments)||this}return Object(s.a)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Object(o.a)({},e,{allowEmpty:!0}):e;return w(this.key,this.style,n)},t}(k),H={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new B(e,t,n):null}},U=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=y(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=w(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return w(this.at,this.style,e)},e}(),W=/@font-face/,q={onCreateRule:function(e,t,n){return W.test(e)?new U(e,t,n):null}},G=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return w(this.key,this.style,e)},e}(),V={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new G(e,t,n):null}},K=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),$={"@charset":!0,"@import":!0,"@namespace":!0},Y=[E,L,z,H,q,V,{onCreateRule:function(e,t,n){return e in $?new K(e,t,n):null}}],Q={process:!0},X={force:!0,process:!0},Z=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,i=r.parent,a=r.sheet,c=r.jss,u=r.Renderer,l=r.generateId,s=r.scoped,f=Object(o.a)({classes:this.classes,parent:i,sheet:a,jss:c,Renderer:u,generateId:l,scoped:s,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(f.selector="."+j(this.classes[d]));var p=v(d,t,f);if(!p)return null;this.register(p);var h=void 0===f.index?this.index.length:f.index;return this.index.splice(h,0,p),p},t.replace=function(e,t,n){var r=this.get(e),i=this.index.indexOf(r);r&&this.remove(r);var a=n;return-1!==i&&(a=Object(o.a)({},n,{index:i})),this.add(e,t,a)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof S?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof N&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof S?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof N&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"===typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=Q);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var c=t.style;if(i.onUpdate(n,t,a,r),r.process&&c&&c!==t.style){for(var u in i.onProcessStyle(t.style,t,a),t.style){var l=t.style[u];l!==c[u]&&t.prop(u,l,X)}for(var s in c){var f=t.style[s],d=c[s];null==f&&f!==d&&t.prop(s,null,X)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=y(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||r)&&(t&&(t+=o),t+=a)}return t},e}(),J=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Object(o.a)({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Z(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var o=this.rules.replace(e,t,n);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?r.renderable&&this.renderer.replaceRule(r.renderable,o):this.renderer.deleteRule(r)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"===typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),ee=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),te=new(function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=Object(d.a)(t,["attached"]),o=y(r).linebreak,i="",a=0;a<this.registry.length;a++){var c=this.registry[a];null!=n&&c.attached!==n||(i&&(i+=o),i+=c.toString(r))}return i},Object(l.a)(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}()),ne="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window&&window.Math===Math?window:"undefined"!==typeof self&&self.Math===Math?self:Function("return this")(),re="2f1acc6c3a606b082e5eef5e54414ffb";null==ne[re]&&(ne[re]=0);var oe=ne[re]++,ie=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+oe+o+t:i+n.key+"-"+oe+(o?"-"+o:"")+"-"+t}},ae=function(e){var t;return function(){return t||(t=e()),t}},ce=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(n){return""}},ue=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=m(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var o=r?r.indexOf("!important"):-1,i=o>-1?r.substr(0,o-1):r;e.style.setProperty(t,i,o>-1?"important":"")}}catch(a){return!1}return!0},le=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(n){}},se=function(e,t){return e.selectorText=t,e.selectorText===t},fe=ae((function(){return document.querySelector("head")}));function de(e){var t=te.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"===typeof r){var o=function(e){for(var t=fe(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var pe=ae((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),he=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(r){return!1}return e.cssRules[n]},ve=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},be=function(){function e(e){this.getPropertyValue=ce,this.setProperty=ue,this.removeProperty=le,this.setSelector=se,this.hasInsertedRules=!1,this.cssRules=[],e&&te.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=pe();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=de(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"===typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else fe().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=ve(n,t);if(!1===(o=he(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var a=e.toString();if(!a)return!1;var c=ve(n,t),u=he(n,a,c);return!1!==u&&(this.hasInsertedRules=!0,this.refCssRule(e,c,u),u)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof J&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),me=0,ye=function(){function e(e){this.id=me++,this.version="10.10.0",this.plugins=new ee,this.options={id:{minify:!1},createGenerateId:ie,Renderer:u?be:null,plugins:[]},this.generateId=ie({minify:!1});for(var t=0;t<Y.length;t++)this.plugins.use(Y[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=Object(o.a)({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!==typeof n&&(n=0===te.index?0:te.index+1);var r=new J(e,Object(o.a)({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),te.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"===typeof e)return this.createRule(void 0,e,t);var r=Object(o.a)({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var i=v(e,t,r);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),ge=function(e){return new ye(e)},we="object"===typeof CSS&&null!=CSS&&"number"in CSS;function xe(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=xe(r);i&&(t||(t={}),t[n]=i)}}return t}ge();var Oe=n(256),je={set:function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},ke=je,Se=n(205),Ee=n(168),Ce=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var Te=Date.now(),Ie="fnValues"+Te,Pe="fnStyle"+ ++Te,Le=function(){return{onCreateRule:function(e,t,n){if("function"!==typeof t)return null;var r=v(e,{},n);return r[Pe]=t,r},onProcessStyle:function(e,t){if(Ie in t||Pe in t)return e;var n={};for(var r in e){var o=e[r];"function"===typeof o&&(delete e[r],n[r]=o)}return t[Ie]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[Pe];i&&(o.style=i(e)||{});var a=o[Ie];if(a)for(var c in a)o.prop(c,a[c](e),r)}}},_e="@global",Re="@global ",Ne=function(){function e(e,t,n){for(var r in this.type="global",this.at=_e,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new Z(Object(o.a)({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Me=function(){function e(e,t,n){this.type="global",this.at=_e,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,Object(o.a)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Ae=/\s*,\s*/g;function De(e,t){for(var n=e.split(Ae),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}var Fe=function(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===_e)return new Ne(e,t,n);if("@"===e[0]&&e.substr(0,8)===Re)return new Me(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,i=r?r[_e]:null;if(i){for(var a in i)t.addRule(a,i[a],Object(o.a)({},n,{selector:De(a,e.selector)}));delete r[_e]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var i in r)if("@"===i[0]&&i.substr(0,_e.length)===_e){var a=De(i.substr(_e.length),e.selector);t.addRule(a,r[i],Object(o.a)({},n,{selector:a})),delete r[i]}}(e,t))}}},ze=/\s*,\s*/g,Be=/&/g,He=/\$([\w-]+)/g;var Ue=function(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?o.selector:r}}function t(e,t){for(var n=t.split(ze),r=e.split(ze),o="",i=0;i<n.length;i++)for(var a=n[i],c=0;c<r.length;c++){var u=r[c];o&&(o+=", "),o+=-1!==u.indexOf("&")?u.replace(Be,a):a+" "+u}return o}function n(e,t,n){if(n)return Object(o.a)({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var i=Object(o.a)({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete i.name,i}return{onProcessStyle:function(r,i,a){if("style"!==i.type)return r;var c,u,l=i,s=l.options.parent;for(var f in r){var d=-1!==f.indexOf("&"),p="@"===f[0];if(d||p){if(c=n(l,s,c),d){var h=t(f,l.selector);u||(u=e(s,a)),h=h.replace(He,u);var v=l.key+"-"+f;"replaceRule"in s?s.replaceRule(v,r[f],Object(o.a)({},c,{selector:h})):s.addRule(v,r[f],Object(o.a)({},c,{selector:h}))}else p&&s.addRule(f,{},c).addRule(l.key,r[f],{selector:l.selector});delete r[f]}}return r}}},We=/[A-Z]/g,qe=/^ms-/,Ge={};function Ve(e){return"-"+e.toLowerCase()}var Ke=function(e){if(Ge.hasOwnProperty(e))return Ge[e];var t=e.replace(We,Ve);return Ge[e]=qe.test(t)?"-"+t:t};function $e(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:Ke(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map($e):t.fallbacks=$e(e.fallbacks)),t}var Ye=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=$e(e[t]);return e}return $e(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=Ke(t);return t===r?e:(n.prop(r,e),null)}}},Qe=we&&CSS?CSS.px:"px",Xe=we&&CSS?CSS.ms:"ms",Ze=we&&CSS?CSS.percent:"%";function Je(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var et=Je({"animation-delay":Xe,"animation-duration":Xe,"background-position":Qe,"background-position-x":Qe,"background-position-y":Qe,"background-size":Qe,border:Qe,"border-bottom":Qe,"border-bottom-left-radius":Qe,"border-bottom-right-radius":Qe,"border-bottom-width":Qe,"border-left":Qe,"border-left-width":Qe,"border-radius":Qe,"border-right":Qe,"border-right-width":Qe,"border-top":Qe,"border-top-left-radius":Qe,"border-top-right-radius":Qe,"border-top-width":Qe,"border-width":Qe,"border-block":Qe,"border-block-end":Qe,"border-block-end-width":Qe,"border-block-start":Qe,"border-block-start-width":Qe,"border-block-width":Qe,"border-inline":Qe,"border-inline-end":Qe,"border-inline-end-width":Qe,"border-inline-start":Qe,"border-inline-start-width":Qe,"border-inline-width":Qe,"border-start-start-radius":Qe,"border-start-end-radius":Qe,"border-end-start-radius":Qe,"border-end-end-radius":Qe,margin:Qe,"margin-bottom":Qe,"margin-left":Qe,"margin-right":Qe,"margin-top":Qe,"margin-block":Qe,"margin-block-end":Qe,"margin-block-start":Qe,"margin-inline":Qe,"margin-inline-end":Qe,"margin-inline-start":Qe,padding:Qe,"padding-bottom":Qe,"padding-left":Qe,"padding-right":Qe,"padding-top":Qe,"padding-block":Qe,"padding-block-end":Qe,"padding-block-start":Qe,"padding-inline":Qe,"padding-inline-end":Qe,"padding-inline-start":Qe,"mask-position-x":Qe,"mask-position-y":Qe,"mask-size":Qe,height:Qe,width:Qe,"min-height":Qe,"max-height":Qe,"min-width":Qe,"max-width":Qe,bottom:Qe,left:Qe,top:Qe,right:Qe,inset:Qe,"inset-block":Qe,"inset-block-end":Qe,"inset-block-start":Qe,"inset-inline":Qe,"inset-inline-end":Qe,"inset-inline-start":Qe,"box-shadow":Qe,"text-shadow":Qe,"column-gap":Qe,"column-rule":Qe,"column-rule-width":Qe,"column-width":Qe,"font-size":Qe,"font-size-delta":Qe,"letter-spacing":Qe,"text-decoration-thickness":Qe,"text-indent":Qe,"text-stroke":Qe,"text-stroke-width":Qe,"word-spacing":Qe,motion:Qe,"motion-offset":Qe,outline:Qe,"outline-offset":Qe,"outline-width":Qe,perspective:Qe,"perspective-origin-x":Ze,"perspective-origin-y":Ze,"transform-origin":Ze,"transform-origin-x":Ze,"transform-origin-y":Ze,"transform-origin-z":Ze,"transition-delay":Xe,"transition-duration":Xe,"vertical-align":Qe,"flex-basis":Qe,"shape-margin":Qe,size:Qe,gap:Qe,grid:Qe,"grid-gap":Qe,"row-gap":Qe,"grid-row-gap":Qe,"grid-column-gap":Qe,"grid-template-rows":Qe,"grid-template-columns":Qe,"grid-auto-rows":Qe,"grid-auto-columns":Qe,"box-shadow-x":Qe,"box-shadow-y":Qe,"box-shadow-blur":Qe,"box-shadow-spread":Qe,"font-line-height":Qe,"text-shadow-x":Qe,"text-shadow-y":Qe,"text-shadow-blur":Qe});function tt(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=tt(e,t[r],n);else if("object"===typeof t)if("fallbacks"===e)for(var o in t)t[o]=tt(o,t[o],n);else for(var i in t)t[i]=tt(e+"-"+i,t[i],n);else if("number"===typeof t&&!1===isNaN(t)){var a=n[e]||et[e];return!a||0===t&&a===Qe?t.toString():"function"===typeof a?a(t).toString():""+t+a}return t}var nt=function(e){void 0===e&&(e={});var t=Je(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=tt(r,e[r],t);return e},onChangeValue:function(e,n){return tt(n,e,t)}}},rt=n(119),ot="",it="",at="",ct="",ut=u&&"ontouchstart"in document.documentElement;if(u){var lt={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},st=document.createElement("p").style;for(var ft in lt)if(ft+"Transform"in st){ot=ft,it=lt[ft];break}"Webkit"===ot&&"msHyphens"in st&&(ot="ms",it=lt.ms,ct="edge"),"Webkit"===ot&&"-apple-trailing-word"in st&&(at="apple")}var dt={js:ot,css:it,vendor:at,browser:ct,isTouch:ut};var pt={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===dt.js?"-webkit-"+e:dt.css+e)}},ht={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===dt.js?dt.css+"print-"+e:e)}},vt=/[-\s]+(.)?/g;function bt(e,t){return t?t.toUpperCase():""}function mt(e){return e.replace(vt,bt)}function yt(e){return mt("-"+e)}var gt,wt={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===dt.js){var n="mask-image";if(mt(n)in t)return e;if(dt.js+yt(n)in t)return dt.css+e}return e}},xt={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==dt.vendor||dt.isTouch?e:dt.css+e)}},Ot={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:dt.css+e)}},jt={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:dt.css+e)}},kt={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===dt.js||"ms"===dt.js&&"edge"!==dt.browser?dt.css+e:e)}},St={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===dt.js||"ms"===dt.js||"apple"===dt.vendor?dt.css+e:e)}},Et={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===dt.js?"WebkitColumn"+yt(e)in t&&dt.css+"column-"+e:"Moz"===dt.js&&("page"+yt(e)in t&&"page-"+e))}},Ct={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===dt.js)return e;var n=e.replace("-inline","");return dt.js+yt(n)in t&&dt.css+n}},Tt={supportedProperty:function(e,t){return mt(e)in t&&e}},It={supportedProperty:function(e,t){var n=yt(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:dt.js+n in t?dt.css+e:"Webkit"!==dt.js&&"Webkit"+n in t&&"-webkit-"+e}},Pt={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===dt.js?""+dt.css+e:e)}},Lt={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===dt.js?dt.css+"scroll-chaining":e)}},_t={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},Rt={supportedProperty:function(e,t){var n=_t[e];return!!n&&(dt.js+yt(n)in t&&dt.css+n)}},Nt={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},Mt=Object.keys(Nt),At=function(e){return dt.css+e},Dt=[pt,ht,wt,xt,Ot,jt,kt,St,Et,Ct,Tt,It,Pt,Lt,Rt,{supportedProperty:function(e,t,n){var r=n.multiple;if(Mt.indexOf(e)>-1){var o=Nt[e];if(!Array.isArray(o))return dt.js+yt(o)in t&&dt.css+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(dt.js+yt(o[0])in t))return!1;return o.map(At)}return!1}}],Ft=Dt.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),zt=Dt.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Object(rt.a)(t.noPrefill)),e}),[]),Bt={};if(u){gt=document.createElement("p");var Ht=window.getComputedStyle(document.documentElement,"");for(var Ut in Ht)isNaN(Ut)||(Bt[Ht[Ut]]=Ht[Ut]);zt.forEach((function(e){return delete Bt[e]}))}function Wt(e,t){if(void 0===t&&(t={}),!gt)return e;if(null!=Bt[e])return Bt[e];"transition"!==e&&"transform"!==e||(t[e]=e in gt.style);for(var n=0;n<Ft.length&&(Bt[e]=Ft[n](e,gt.style,t),!Bt[e]);n++);try{gt.style[e]=""}catch(r){return!1}return Bt[e]}var qt,Gt={},Vt={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Kt=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function $t(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Wt(t):", "+Wt(n);return r||(t||n)}function Yt(e,t){var n=t;if(!qt||"content"===e)return t;if("string"!==typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=Gt[r])return Gt[r];try{qt.style[e]=n}catch(o){return Gt[r]=!1,!1}if(Vt[e])n=n.replace(Kt,$t);else if(""===qt.style[e]&&("-ms-flex"===(n=dt.css+n)&&(qt.style[e]="-ms-flexbox"),qt.style[e]=n,""===qt.style[e]))return Gt[r]=!1,!1;return qt.style[e]="",Gt[r]=n,Gt[r]}u&&(qt=document.createElement("p"));var Qt=function(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var o=!1,i=Wt(n);i&&i!==n&&(o=!0);var a=!1,c=Yt(i,m(r));c&&c!==r&&(a=!0),(o||a)&&(o&&delete t[n],t[i||n]=c||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at="-"===(n=t.at)[1]||"ms"===dt.js?n:"@"+dt.css+"keyframes"+n.substr(10)}var n},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Yt(t,m(e))||e}}};var Xt=function(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)r[o[i]]=t[o[i]];return r}}};function Zt(){return{plugins:[Le(),Fe(),Ue(),Ye(),nt(),"undefined"===typeof window?null:Qt(),Xt()]}}var Jt=ge(Zt()),en=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,a=void 0===i?"":i,c=""===a?"":"".concat(a,"-"),u=0,l=function(){return u+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Ce.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(c).concat(r,"-").concat(e.key);return t.options.theme[Ee.a]&&""===a?"".concat(i,"-").concat(l()):i}return"".concat(c).concat(o).concat(l())}}(),tn={disableGeneration:!1,generateClassName:en,jss:Jt,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},nn=a.a.createContext(tn);var rn=-1e9;n(68);var on=n(255);var an={};function cn(e,t){var n=e.state,r=e.theme,i=e.stylesOptions,a=e.stylesCreator,c=e.name;if(!i.disableGeneration){var u=ke.get(i.sheetsManager,a,r);u||(u={refs:0,staticSheet:null,dynamicStyles:null},ke.set(i.sheetsManager,a,r,u));var l=Object(o.a)({},a.options,i,{theme:r,flip:"boolean"===typeof i.flip?i.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var s=i.sheetsRegistry;if(0===u.refs){var f;i.sheetsCache&&(f=ke.get(i.sheetsCache,a,r));var d=a.create(r,c);f||((f=i.jss.createStyleSheet(d,Object(o.a)({link:!1},l))).attach(),i.sheetsCache&&ke.set(i.sheetsCache,a,r,f)),s&&s.add(f),u.staticSheet=f,u.dynamicStyles=xe(d)}if(u.dynamicStyles){var p=i.jss.createStyleSheet(u.dynamicStyles,Object(o.a)({link:!0},l));p.update(t),p.attach(),n.dynamicSheet=p,n.classes=Object(Oe.a)({baseClasses:u.staticSheet.classes,newClasses:p.classes}),s&&s.add(p)}else n.classes=u.staticSheet.classes;u.refs+=1}}function un(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,i=t.classNamePrefix,c=t.Component,u=t.defaultTheme,l=void 0===u?an:u,s=Object(r.a)(t,["name","classNamePrefix","Component","defaultTheme"]),f=function(e){var t="function"===typeof e;return{create:function(n,r){var i;try{i=t?e(n):e}catch(u){throw u}if(!r||!n.overrides||!n.overrides[r])return i;var a=n.overrides[r],c=Object(o.a)({},i);return Object.keys(a).forEach((function(e){c[e]=Object(on.a)(c[e],a[e])})),c},options:{}}}(e),d=n||i||"makeStyles";f.options={index:rn+=1,name:n,meta:d,classNamePrefix:d};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object(Se.a)()||l,r=Object(o.a)({},a.a.useContext(nn),s),i=a.a.useRef(),u=a.a.useRef();!function(e,t){var n,r=a.a.useRef([]),o=a.a.useMemo((function(){return{}}),t);r.current!==o&&(r.current=o,n=e()),a.a.useEffect((function(){return function(){n&&n()}}),[o])}((function(){var o={name:n,state:{},stylesCreator:f,stylesOptions:r,theme:t};return cn(o,e),u.current=!1,i.current=o,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=ke.get(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(ke.delete(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(o)}}),[t,f]),a.a.useEffect((function(){u.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(i.current,e),u.current=!0}));var d=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=Object(Oe.a)({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(i.current,e.classes,c);return d}}n.d(t,"a",(function(){return un}))},function(e,t,n){"use strict";var r=n(76),o=n(117),i=n(0),a=n.n(i),c=n(48),u=n.n(c),l=!1,s=n(147),f="unmounted",d="exited",p="entering",h="entered",v="exiting",b=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=d,r.appearStatus=p):o=h:o=t.unmountOnExit||t.mountOnEnter?f:d,r.state={status:o},r.nextCallback=null,r}Object(o.a)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===f?{status:d}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==p&&n!==h&&(t=p):n!==p&&n!==h||(t=v)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===p){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:u.a.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===d&&this.setState({status:f})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[u.a.findDOMNode(this),r],i=o[0],a=o[1],c=this.getTimeouts(),s=r?c.appear:c.enter;!e&&!n||l?this.safeSetState({status:h},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:p},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:h},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:u.a.findDOMNode(this);t&&!l?(this.props.onExit(r),this.safeSetState({status:v},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:d},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:d},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:u.a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===f)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Object(r.a)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a.a.createElement(s.a.Provider,{value:null},"function"===typeof n?n(e,o):a.a.cloneElement(a.a.Children.only(n),o))},t}(a.a.Component);function m(){}b.contextType=s.a,b.propTypes={},b.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:m,onEntering:m,onEntered:m,onExit:m,onExiting:m,onExited:m},b.UNMOUNTED=f,b.EXITED=d,b.ENTERING=p,b.ENTERED=h,b.EXITING=v;t.a=b},,,,,,function(e,t,n){"use strict";var r=n(68),o=n(16);var i=n(21);function a(e){if(Object(o.a)(1,arguments),!function(e){return Object(o.a)(1,arguments),e instanceof Date||"object"===Object(r.a)(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!==typeof e)return!1;var t=Object(i.a)(e);return!isNaN(Number(t))}var c=n(55);function u(e,t){return Object(o.a)(2,arguments),function(e,t){Object(o.a)(2,arguments);var n=Object(i.a)(e).getTime(),r=Object(c.a)(t);return new Date(n+r)}(e,-Object(c.a)(t))}function l(e){Object(o.a)(1,arguments);var t=Object(i.a)(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function s(e){Object(o.a)(1,arguments);var t=Object(i.a)(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var a=l(r),c=new Date(0);c.setUTCFullYear(n,0,4),c.setUTCHours(0,0,0,0);var u=l(c);return t.getTime()>=a.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1}function f(e){Object(o.a)(1,arguments);var t=Object(i.a)(e),n=l(t).getTime()-function(e){Object(o.a)(1,arguments);var t=s(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),l(n)}(t).getTime();return Math.round(n/6048e5)+1}var d=n(72);function p(e,t){var n,r,a,u,l,s,f,p;Object(o.a)(1,arguments);var h=Object(d.a)(),v=Object(c.a)(null!==(n=null!==(r=null!==(a=null!==(u=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==u?u:null===t||void 0===t||null===(l=t.locale)||void 0===l||null===(s=l.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==a?a:h.weekStartsOn)&&void 0!==r?r:null===(f=h.locale)||void 0===f||null===(p=f.options)||void 0===p?void 0:p.weekStartsOn)&&void 0!==n?n:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var b=Object(i.a)(e),m=b.getUTCDay(),y=(m<v?7:0)+m-v;return b.setUTCDate(b.getUTCDate()-y),b.setUTCHours(0,0,0,0),b}function h(e,t){var n,r,a,u,l,s,f,h;Object(o.a)(1,arguments);var v=Object(i.a)(e),b=v.getUTCFullYear(),m=Object(d.a)(),y=Object(c.a)(null!==(n=null!==(r=null!==(a=null!==(u=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==u?u:null===t||void 0===t||null===(l=t.locale)||void 0===l||null===(s=l.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==a?a:m.firstWeekContainsDate)&&void 0!==r?r:null===(f=m.locale)||void 0===f||null===(h=f.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==n?n:1);if(!(y>=1&&y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=new Date(0);g.setUTCFullYear(b+1,0,y),g.setUTCHours(0,0,0,0);var w=p(g,t),x=new Date(0);x.setUTCFullYear(b,0,y),x.setUTCHours(0,0,0,0);var O=p(x,t);return v.getTime()>=w.getTime()?b+1:v.getTime()>=O.getTime()?b:b-1}function v(e,t){Object(o.a)(1,arguments);var n=Object(i.a)(e),r=p(n,t).getTime()-function(e,t){var n,r,i,a,u,l,s,f;Object(o.a)(1,arguments);var v=Object(d.a)(),b=Object(c.a)(null!==(n=null!==(r=null!==(i=null!==(a=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==a?a:null===t||void 0===t||null===(u=t.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==i?i:v.firstWeekContainsDate)&&void 0!==r?r:null===(s=v.locale)||void 0===s||null===(f=s.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==n?n:1),m=h(e,t),y=new Date(0);return y.setUTCFullYear(m,0,b),y.setUTCHours(0,0,0,0),p(y,t)}(n,t).getTime();return Math.round(r/6048e5)+1}function b(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var m={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return b("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):b(n+1,2)},d:function(e,t){return b(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return b(e.getUTCHours()%12||12,t.length)},H:function(e,t){return b(e.getUTCHours(),t.length)},m:function(e,t){return b(e.getUTCMinutes(),t.length)},s:function(e,t){return b(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return b(Math.floor(r*Math.pow(10,n-3)),t.length)}},y="midnight",g="noon",w="morning",x="afternoon",O="evening",j="night",k={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return m.y(e,t)},Y:function(e,t,n,r){var o=h(e,r),i=o>0?o:1-o;return"YY"===t?b(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):b(i,t.length)},R:function(e,t){return b(s(e),t.length)},u:function(e,t){return b(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return b(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return b(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return m.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return b(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=v(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):b(o,t.length)},I:function(e,t,n){var r=f(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):b(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):m.d(e,t)},D:function(e,t,n){var r=function(e){Object(o.a)(1,arguments);var t=Object(i.a)(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):b(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return b(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return b(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return b(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?g:0===o?y:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?O:o>=12?x:o>=4?w:j,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return m.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):m.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):b(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):b(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):m.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):m.s(e,t)},S:function(e,t){return m.S(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return E(o);case"XXXX":case"XX":return C(o);default:return C(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return E(o);case"xxxx":case"xx":return C(o);default:return C(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+S(o,":");default:return"GMT"+C(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+S(o,":");default:return"GMT"+C(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return b(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return b((r._originalDate||e).getTime(),t.length)}};function S(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+b(i,2)}function E(e,t){return e%60===0?(e>0?"-":"+")+b(Math.abs(e)/60,2):C(e,t)}function C(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+b(Math.floor(o/60),2)+n+b(o%60,2)}var T=k,I=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},P=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},L={p:P,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return I(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",I(o,t)).replace("{{time}}",P(i,t))}},_=n(92),R=["D","DD"],N=["YY","YYYY"];function M(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var A=n(106);n.d(t,"a",(function(){return U}));var D=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,F=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,z=/^'([^]*?)'?$/,B=/''/g,H=/[a-zA-Z]/;function U(e,t,n){var r,l,s,f,p,h,v,b,m,y,g,w,x,O,j,k,S,E;Object(o.a)(2,arguments);var C=String(t),I=Object(d.a)(),P=null!==(r=null!==(l=null===n||void 0===n?void 0:n.locale)&&void 0!==l?l:I.locale)&&void 0!==r?r:A.a,U=Object(c.a)(null!==(s=null!==(f=null!==(p=null!==(h=null===n||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==h?h:null===n||void 0===n||null===(v=n.locale)||void 0===v||null===(b=v.options)||void 0===b?void 0:b.firstWeekContainsDate)&&void 0!==p?p:I.firstWeekContainsDate)&&void 0!==f?f:null===(m=I.locale)||void 0===m||null===(y=m.options)||void 0===y?void 0:y.firstWeekContainsDate)&&void 0!==s?s:1);if(!(U>=1&&U<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var W=Object(c.a)(null!==(g=null!==(w=null!==(x=null!==(O=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==O?O:null===n||void 0===n||null===(j=n.locale)||void 0===j||null===(k=j.options)||void 0===k?void 0:k.weekStartsOn)&&void 0!==x?x:I.weekStartsOn)&&void 0!==w?w:null===(S=I.locale)||void 0===S||null===(E=S.options)||void 0===E?void 0:E.weekStartsOn)&&void 0!==g?g:0);if(!(W>=0&&W<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!P.localize)throw new RangeError("locale must contain localize property");if(!P.formatLong)throw new RangeError("locale must contain formatLong property");var q=Object(i.a)(e);if(!a(q))throw new RangeError("Invalid time value");var G=u(q,Object(_.a)(q)),V={firstWeekContainsDate:U,weekStartsOn:W,locale:P,_originalDate:q};return C.match(F).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,L[t])(e,P.formatLong):e})).join("").match(D).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return function(e){var t=e.match(z);if(!t)return e;return t[1].replace(B,"'")}(r);var i,a=T[o];if(a)return null!==n&&void 0!==n&&n.useAdditionalWeekYearTokens||(i=r,-1===N.indexOf(i))||M(r,t,String(e)),null!==n&&void 0!==n&&n.useAdditionalDayOfYearTokens||!function(e){return-1!==R.indexOf(e)}(r)||M(r,t,String(e)),a(G,r,P.localize,V);if(o.match(H))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("")}},,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(4),o=n(68);function i(e){return e&&"object"===Object(o.a)(e)&&e.constructor===Object}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},o=n.clone?Object(r.a)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(i(t[r])&&r in e?o[r]=a(e[r],t[r],n):o[r]=t[r])})),o}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(4);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;e.Component;if(!n)return t;var o=Object(r.a)({},t);return Object.keys(n).forEach((function(e){n[e]&&(o[e]="".concat(t[e]," ").concat(n[e]))})),o}},function(e,t,n){"use strict";function r(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(15),o=n(4),i=n(0),a=n(19),c=n(23),u=i.forwardRef((function(e,t){var n=e.classes,c=e.className,u=e.component,l=void 0===u?"div":u,s=e.square,f=void 0!==s&&s,d=e.elevation,p=void 0===d?1:d,h=e.variant,v=void 0===h?"elevation":h,b=Object(r.a)(e,["classes","className","component","square","elevation","variant"]);return i.createElement(l,Object(o.a)({className:Object(a.a)(n.root,c,"outlined"===v?n.outlined:n["elevation".concat(p)],!f&&n.rounded),ref:t},b))}));t.a=Object(c.a)((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),Object(o.a)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(u)},function(e,t,n){"use strict";var r=n(0),o=n(48),i=n(103),a=n(44);var c="undefined"!==typeof window?r.useLayoutEffect:r.useEffect,u=r.forwardRef((function(e,t){var n=e.children,u=e.container,l=e.disablePortal,s=void 0!==l&&l,f=e.onRendered,d=r.useState(null),p=d[0],h=d[1],v=Object(a.a)(r.isValidElement(n)?n.ref:null,t);return c((function(){s||h(function(e){return e="function"===typeof e?e():e,o.findDOMNode(e)}(u)||document.body)}),[u,s]),c((function(){if(p&&!s)return Object(i.a)(t,p),function(){Object(i.a)(t,null)}}),[t,p,s]),c((function(){f&&(p||s)&&f()}),[f,p,s]),s?r.isValidElement(n)?r.cloneElement(n,{ref:v}):n:p?o.createPortal(n,p):p}));t.a=u},function(e,t,n){"use strict";var r=n(0),o=n(89);t.a=Object(o.a)(r.createElement("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}),"Settings")},function(e,t,n){"use strict";var r=n(0),o=n(89);t.a=Object(o.a)(r.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4.86 8.86l-3 3.87L9 13.14 6 17h12l-3.86-5.14z"}),"ImageOutlined")},function(e,t,n){"use strict";var r=n(4),o=n(101),i=n(15),a=n(0),c=n(223),u=n(98),l=n(127),s=n(44);function f(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var d={entering:{opacity:1,transform:f(1)},entered:{opacity:1,transform:"none"}},p=a.forwardRef((function(e,t){var n=e.children,p=e.disableStrictModeCompat,h=void 0!==p&&p,v=e.in,b=e.onEnter,m=e.onEntered,y=e.onEntering,g=e.onExit,w=e.onExited,x=e.onExiting,O=e.style,j=e.timeout,k=void 0===j?"auto":j,S=e.TransitionComponent,E=void 0===S?c.a:S,C=Object(i.a)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),T=a.useRef(),I=a.useRef(),P=Object(u.a)(),L=P.unstable_strictMode&&!h,_=a.useRef(null),R=Object(s.a)(n.ref,t),N=Object(s.a)(L?_:void 0,R),M=function(e){return function(t,n){if(e){var r=L?[_.current,t]:[t,n],i=Object(o.a)(r,2),a=i[0],c=i[1];void 0===c?e(a):e(a,c)}}},A=M(y),D=M((function(e,t){Object(l.b)(e);var n,r=Object(l.a)({style:O,timeout:k},{mode:"enter"}),o=r.duration,i=r.delay;"auto"===k?(n=P.transitions.getAutoHeightDuration(e.clientHeight),I.current=n):n=o,e.style.transition=[P.transitions.create("opacity",{duration:n,delay:i}),P.transitions.create("transform",{duration:.666*n,delay:i})].join(","),b&&b(e,t)})),F=M(m),z=M(x),B=M((function(e){var t,n=Object(l.a)({style:O,timeout:k},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===k?(t=P.transitions.getAutoHeightDuration(e.clientHeight),I.current=t):t=r,e.style.transition=[P.transitions.create("opacity",{duration:t,delay:o}),P.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=f(.75),g&&g(e)})),H=M(w);return a.useEffect((function(){return function(){clearTimeout(T.current)}}),[]),a.createElement(E,Object(r.a)({appear:!0,in:v,nodeRef:L?_:void 0,onEnter:D,onEntered:F,onEntering:A,onExit:B,onExited:H,onExiting:z,addEndListener:function(e,t){var n=L?e:t;"auto"===k&&(T.current=setTimeout(n,I.current||0))},timeout:"auto"===k?null:k},C),(function(e,t){return a.cloneElement(n,Object(r.a)({style:Object(r.a)({opacity:0,transform:f(.75),visibility:"exited"!==e||v?void 0:"hidden"},d[e],O,n.props.style),ref:N},t))}))}));p.muiSupportAuto=!0,t.a=p},function(e,t,n){"use strict";var r=n(4),o=n(15),i=n(0),a=n(19),c=n(23),u=n(60),l=n(206),s=n(31),f=i.forwardRef((function(e,t){var n=e.edge,c=void 0!==n&&n,u=e.children,f=e.classes,d=e.className,p=e.color,h=void 0===p?"default":p,v=e.disabled,b=void 0!==v&&v,m=e.disableFocusRipple,y=void 0!==m&&m,g=e.size,w=void 0===g?"medium":g,x=Object(o.a)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return i.createElement(l.a,Object(r.a)({className:Object(a.a)(f.root,d,"default"!==h&&f["color".concat(Object(s.a)(h))],b&&f.disabled,"small"===w&&f["size".concat(Object(s.a)(w))],{start:f.edgeStart,end:f.edgeEnd}[c]),centerRipple:!0,focusRipple:!y,disabled:b,ref:t},x),i.createElement("span",{className:f.label},u))}));t.a=Object(c.a)((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:Object(u.a)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(u.a)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(u.a)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(f)},function(e,t,n){"use strict";var r=n(4),o=n(15),i=n(0),a=n(19),c=n(133),u=n(23),l=n(31),s=n(160),f=n(118),d=i.forwardRef((function(e,t){var n=e.children,u=e.classes,d=e.className,p=e.color,h=void 0===p?"primary":p,v=e.component,b=void 0===v?"div":v,m=e.disabled,y=void 0!==m&&m,g=e.error,w=void 0!==g&&g,x=e.fullWidth,O=void 0!==x&&x,j=e.focused,k=e.hiddenLabel,S=void 0!==k&&k,E=e.margin,C=void 0===E?"none":E,T=e.required,I=void 0!==T&&T,P=e.size,L=e.variant,_=void 0===L?"standard":L,R=Object(o.a)(e,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),N=i.useState((function(){var e=!1;return n&&i.Children.forEach(n,(function(t){if(Object(s.a)(t,["Input","Select"])){var n=Object(s.a)(t,["Select"])?t.props.input:t;n&&Object(c.a)(n.props)&&(e=!0)}})),e})),M=N[0],A=N[1],D=i.useState((function(){var e=!1;return n&&i.Children.forEach(n,(function(t){Object(s.a)(t,["Input","Select"])&&Object(c.b)(t.props,!0)&&(e=!0)})),e})),F=D[0],z=D[1],B=i.useState(!1),H=B[0],U=B[1],W=void 0!==j?j:H;y&&W&&U(!1);var q=i.useCallback((function(){z(!0)}),[]),G={adornedStart:M,setAdornedStart:A,color:h,disabled:y,error:w,filled:F,focused:W,fullWidth:O,hiddenLabel:S,margin:("small"===P?"dense":void 0)||C,onBlur:function(){U(!1)},onEmpty:i.useCallback((function(){z(!1)}),[]),onFilled:q,onFocus:function(){U(!0)},registerEffect:undefined,required:I,variant:_};return i.createElement(f.a.Provider,{value:G},i.createElement(b,Object(r.a)({className:Object(a.a)(u.root,d,"none"!==C&&u["margin".concat(Object(l.a)(C))],O&&u.fullWidth),ref:t},R),n))}));t.a=Object(u.a)({root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},{name:"MuiFormControl"})(d)},function(e,t,n){"use strict";var r=n(4),o=n(15),i=n(0),a=n(19),c=n(207),u=n(23),l=i.forwardRef((function(e,t){var n=e.disableUnderline,u=e.classes,l=e.fullWidth,s=void 0!==l&&l,f=e.inputComponent,d=void 0===f?"input":f,p=e.multiline,h=void 0!==p&&p,v=e.type,b=void 0===v?"text":v,m=Object(o.a)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return i.createElement(c.a,Object(r.a)({classes:Object(r.a)({},u,{root:Object(a.a)(u.root,!n&&u.underline),underline:null}),fullWidth:s,inputComponent:d,multiline:h,ref:t,type:b},m))}));l.muiName="Input",t.a=Object(u.a)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(t),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):before":{borderBottom:"2px solid ".concat(e.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(t)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},marginDense:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}}),{name:"MuiInput"})(l)},function(e,t,n){"use strict";var r=n(4),o=n(15),i=n(0),a=n(19),c=n(207),u=n(23),l=i.forwardRef((function(e,t){var n=e.disableUnderline,u=e.classes,l=e.fullWidth,s=void 0!==l&&l,f=e.inputComponent,d=void 0===f?"input":f,p=e.multiline,h=void 0!==p&&p,v=e.type,b=void 0===v?"text":v,m=Object(o.a)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return i.createElement(c.a,Object(r.a)({classes:Object(r.a)({},u,{root:Object(a.a)(u.root,!n&&u.underline),underline:null}),fullWidth:s,inputComponent:d,multiline:h,ref:t,type:b},m))}));l.muiName="Input",t.a=Object(u.a)((function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:r,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:t?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:r}},"&$focused":{backgroundColor:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:before":{borderBottom:"1px solid ".concat(e.palette.text.primary)},"&$disabled:before":{borderBottomStyle:"dotted"}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},marginDense:{},multiline:{padding:"27px 12px 10px","&$marginDense":{paddingTop:23,paddingBottom:6}},input:{padding:"27px 12px 10px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},inputMarginDense:{paddingTop:23,paddingBottom:6},inputHiddenLabel:{paddingTop:18,paddingBottom:19,"&$inputMarginDense":{paddingTop:10,paddingBottom:11}},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiFilledInput"})(l)},,,function(e,t,n){"use strict";var r=n(4),o=n(0),i=n.n(o),a=n(167),c=n(205),u=n(168);t.a=function(e){var t=e.children,n=e.theme,o=Object(c.a)(),l=i.a.useMemo((function(){var e=null===o?n:function(e,t){return"function"===typeof t?t(e):Object(r.a)({},e,t)}(o,n);return null!=e&&(e[u.a]=null!==o),e}),[n,o]);return i.a.createElement(a.a.Provider,{value:l},t)}},,function(e,t,n){e.exports=n(277)},,,function(e,t,n){"use strict";var r=n(4),o=n(15),i=n(0),a=n(256),c=n(101),u=n(68),l=n(204),s=(n(142),n(19)),f=n(74),d=n(31),p=n(23),h=n(48),v=n(128),b=n(152),m=n(124),y=n(275),g=n(262),w=n(258);function x(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function O(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function j(e){return[e.horizontal,e.vertical].map((function(e){return"number"===typeof e?"".concat(e,"px"):e})).join(" ")}function k(e){return"function"===typeof e?e():e}var S=i.forwardRef((function(e,t){var n=e.action,a=e.anchorEl,c=e.anchorOrigin,u=void 0===c?{vertical:"top",horizontal:"left"}:c,l=e.anchorPosition,d=e.anchorReference,p=void 0===d?"anchorEl":d,S=e.children,E=e.classes,C=e.className,T=e.container,I=e.elevation,P=void 0===I?8:I,L=e.getContentAnchorEl,_=e.marginThreshold,R=void 0===_?16:_,N=e.onEnter,M=e.onEntered,A=e.onEntering,D=e.onExit,F=e.onExited,z=e.onExiting,B=e.open,H=e.PaperProps,U=void 0===H?{}:H,W=e.transformOrigin,q=void 0===W?{vertical:"top",horizontal:"left"}:W,G=e.TransitionComponent,V=void 0===G?g.a:G,K=e.transitionDuration,$=void 0===K?"auto":K,Y=e.TransitionProps,Q=void 0===Y?{}:Y,X=Object(o.a)(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),Z=i.useRef(),J=i.useCallback((function(e){if("anchorPosition"===p)return l;var t=k(a),n=(t&&1===t.nodeType?t:Object(f.a)(Z.current).body).getBoundingClientRect(),r=0===e?u.vertical:"center";return{top:n.top+x(n,r),left:n.left+O(n,u.horizontal)}}),[a,u.horizontal,u.vertical,l,p]),ee=i.useCallback((function(e){var t=0;if(L&&"anchorEl"===p){var n=L(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}0}return t}),[u.vertical,p,L]),te=i.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:x(e,q.vertical)+t,horizontal:O(e,q.horizontal)}}),[q.horizontal,q.vertical]),ne=i.useCallback((function(e){var t=ee(e),n={width:e.offsetWidth,height:e.offsetHeight},r=te(n,t);if("none"===p)return{top:null,left:null,transformOrigin:j(r)};var o=J(t),i=o.top-r.vertical,c=o.left-r.horizontal,u=i+n.height,l=c+n.width,s=Object(b.a)(k(a)),f=s.innerHeight-R,d=s.innerWidth-R;if(i<R){var h=i-R;i-=h,r.vertical+=h}else if(u>f){var v=u-f;i-=v,r.vertical+=v}if(c<R){var m=c-R;c-=m,r.horizontal+=m}else if(l>d){var y=l-d;c-=y,r.horizontal+=y}return{top:"".concat(Math.round(i),"px"),left:"".concat(Math.round(c),"px"),transformOrigin:j(r)}}),[a,p,J,ee,te,R]),re=i.useCallback((function(){var e=Z.current;if(e){var t=ne(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[ne]),oe=i.useCallback((function(e){Z.current=h.findDOMNode(e)}),[]);i.useEffect((function(){B&&re()})),i.useImperativeHandle(n,(function(){return B?{updatePosition:function(){re()}}:null}),[B,re]),i.useEffect((function(){if(B){var e=Object(v.a)((function(){re()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[B,re]);var ie=$;"auto"!==$||V.muiSupportAuto||(ie=void 0);var ae=T||(a?Object(f.a)(k(a)).body:void 0);return i.createElement(y.a,Object(r.a)({container:ae,open:B,ref:t,BackdropProps:{invisible:!0},className:Object(s.a)(E.root,C)},X),i.createElement(V,Object(r.a)({appear:!0,in:B,onEnter:N,onEntered:M,onExit:D,onExited:F,onExiting:z,timeout:ie},Q,{onEntering:Object(m.a)((function(e,t){A&&A(e,t),re()}),Q.onEntering)}),i.createElement(w.a,Object(r.a)({elevation:P,ref:oe},U,{className:Object(s.a)(E.paper,U.className)}),S)))})),E=Object(p.a)({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(S),C=n(278),T=n(103),I=n(98),P={vertical:"top",horizontal:"right"},L={vertical:"top",horizontal:"left"},_=i.forwardRef((function(e,t){var n=e.autoFocus,a=void 0===n||n,c=e.children,u=e.classes,l=e.disableAutoFocusItem,f=void 0!==l&&l,d=e.MenuListProps,p=void 0===d?{}:d,v=e.onClose,b=e.onEntering,m=e.open,y=e.PaperProps,g=void 0===y?{}:y,w=e.PopoverClasses,x=e.transitionDuration,O=void 0===x?"auto":x,j=e.TransitionProps,k=(j=void 0===j?{}:j).onEntering,S=Object(o.a)(j,["onEntering"]),_=e.variant,R=void 0===_?"selectedMenu":_,N=Object(o.a)(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"]),M=Object(I.a)(),A=a&&!f&&m,D=i.useRef(null),F=i.useRef(null),z=-1;i.Children.map(c,(function(e,t){i.isValidElement(e)&&(e.props.disabled||("menu"!==R&&e.props.selected||-1===z)&&(z=t))}));var B=i.Children.map(c,(function(e,t){return t===z?i.cloneElement(e,{ref:function(t){F.current=h.findDOMNode(t),Object(T.a)(e.ref,t)}}):e}));return i.createElement(E,Object(r.a)({getContentAnchorEl:function(){return F.current},classes:w,onClose:v,TransitionProps:Object(r.a)({onEntering:function(e,t){D.current&&D.current.adjustStyleForScrollbar(e,M),b&&b(e,t),k&&k(e,t)}},S),anchorOrigin:"rtl"===M.direction?P:L,transformOrigin:"rtl"===M.direction?P:L,PaperProps:Object(r.a)({},g,{classes:Object(r.a)({},g.classes,{root:u.paper})}),open:m,ref:t,transitionDuration:O},N),i.createElement(C.a,Object(r.a)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),v&&v(e,"tabKeyDown"))},actions:D,autoFocus:a&&(-1===z||f),autoFocusItem:A,variant:R},p,{className:Object(s.a)(u.list,p.className)}),B))})),R=Object(p.a)({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(_),N=n(133),M=n(44),A=n(153);function D(e,t){return"object"===Object(u.a)(t)&&null!==t?e===t:String(e)===String(t)}var F=i.forwardRef((function(e,t){var n=e["aria-label"],a=e.autoFocus,u=e.autoWidth,p=e.children,h=e.classes,v=e.className,b=e.defaultValue,m=e.disabled,y=e.displayEmpty,g=e.IconComponent,w=e.inputRef,x=e.labelId,O=e.MenuProps,j=void 0===O?{}:O,k=e.multiple,S=e.name,E=e.onBlur,C=e.onChange,T=e.onClose,I=e.onFocus,P=e.onOpen,L=e.open,_=e.readOnly,F=e.renderValue,z=e.SelectDisplayProps,B=void 0===z?{}:z,H=e.tabIndex,U=(e.type,e.value),W=e.variant,q=void 0===W?"standard":W,G=Object(o.a)(e,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),V=Object(A.a)({controlled:U,default:b,name:"Select"}),K=Object(c.a)(V,2),$=K[0],Y=K[1],Q=i.useRef(null),X=i.useState(null),Z=X[0],J=X[1],ee=i.useRef(null!=L).current,te=i.useState(),ne=te[0],re=te[1],oe=i.useState(!1),ie=oe[0],ae=oe[1],ce=Object(M.a)(t,w);i.useImperativeHandle(ce,(function(){return{focus:function(){Z.focus()},node:Q.current,value:$}}),[Z,$]),i.useEffect((function(){a&&Z&&Z.focus()}),[a,Z]),i.useEffect((function(){if(Z){var e=Object(f.a)(Z).getElementById(x);if(e){var t=function(){getSelection().isCollapsed&&Z.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[x,Z]);var ue,le,se=function(e,t){e?P&&P(t):T&&T(t),ee||(re(u?null:Z.clientWidth),ae(e))},fe=i.Children.toArray(p),de=function(e){return function(t){var n;if(k||se(!1,t),k){n=Array.isArray($)?$.slice():[];var r=$.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),$!==n&&(Y(n),C&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:S}}),C(t,e)))}},pe=null!==Z&&(ee?L:ie);delete G["aria-invalid"];var he=[],ve=!1;(Object(N.b)({value:$})||y)&&(F?ue=F($):ve=!0);var be=fe.map((function(e){if(!i.isValidElement(e))return null;var t;if(k){if(!Array.isArray($))throw new Error(Object(l.a)(2));(t=$.some((function(t){return D(t,e.props.value)})))&&ve&&he.push(e.props.children)}else(t=D($,e.props.value))&&ve&&(le=e.props.children);return t&&!0,i.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:de(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));ve&&(ue=k?he.join(", "):le);var me,ye=ne;!u&&ee&&Z&&(ye=Z.clientWidth),me="undefined"!==typeof H?H:m?null:0;var ge=B.id||(S?"mui-component-select-".concat(S):void 0);return i.createElement(i.Fragment,null,i.createElement("div",Object(r.a)({className:Object(s.a)(h.root,h.select,h.selectMenu,h[q],v,m&&h.disabled),ref:J,tabIndex:me,role:"button","aria-disabled":m?"true":void 0,"aria-expanded":pe?"true":void 0,"aria-haspopup":"listbox","aria-label":n,"aria-labelledby":[x,ge].filter(Boolean).join(" ")||void 0,onKeyDown:function(e){if(!_){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),se(!0,e))}},onMouseDown:m||_?null:function(e){0===e.button&&(e.preventDefault(),Z.focus(),se(!0,e))},onBlur:function(e){!pe&&E&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:$,name:S}}),E(e))},onFocus:I},B,{id:ge}),function(e){return null==e||"string"===typeof e&&!e.trim()}(ue)?i.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):ue),i.createElement("input",Object(r.a)({value:Array.isArray($)?$.join(","):$,name:S,ref:Q,"aria-hidden":!0,onChange:function(e){var t=fe.map((function(e){return e.props.value})).indexOf(e.target.value);if(-1!==t){var n=fe[t];Y(n.props.value),C&&C(e,n)}},tabIndex:-1,className:h.nativeInput,autoFocus:a},G)),i.createElement(g,{className:Object(s.a)(h.icon,h["icon".concat(Object(d.a)(q))],pe&&h.iconOpen,m&&h.disabled)}),i.createElement(R,Object(r.a)({id:"menu-".concat(S||""),anchorEl:Z,open:pe,onClose:function(e){se(!1,e)}},j,{MenuListProps:Object(r.a)({"aria-labelledby":x,role:"listbox",disableListWrap:!0},j.MenuListProps),PaperProps:Object(r.a)({},j.PaperProps,{style:Object(r.a)({minWidth:ye},null!=j.PaperProps?j.PaperProps.style:null)})}),be))})),z=n(94),B=n(93),H=n(89),U=Object(H.a)(i.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),W=n(265),q=i.forwardRef((function(e,t){var n=e.classes,a=e.className,c=e.disabled,u=e.IconComponent,l=e.inputRef,f=e.variant,p=void 0===f?"standard":f,h=Object(o.a)(e,["classes","className","disabled","IconComponent","inputRef","variant"]);return i.createElement(i.Fragment,null,i.createElement("select",Object(r.a)({className:Object(s.a)(n.root,n.select,n[p],a,c&&n.disabled),disabled:c,ref:l||t},h)),e.multiple?null:i.createElement(u,{className:Object(s.a)(n.icon,n["icon".concat(Object(d.a)(p))],c&&n.disabled)}))})),G=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:e.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",minHeight:"1.1876em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:e.palette.action.active,"&$disabled":{color:e.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7},nativeInput:{bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%"}}},V=i.createElement(W.a,null),K=i.forwardRef((function(e,t){var n=e.children,a=e.classes,c=e.IconComponent,u=void 0===c?U:c,l=e.input,s=void 0===l?V:l,f=e.inputProps,d=(e.variant,Object(o.a)(e,["children","classes","IconComponent","input","inputProps","variant"])),p=Object(B.a)(),h=Object(z.a)({props:e,muiFormControl:p,states:["variant"]});return i.cloneElement(s,Object(r.a)({inputComponent:q,inputProps:Object(r.a)({children:n,classes:a,IconComponent:u,variant:h.variant,type:void 0},f,s?s.props.inputProps:{}),ref:t},d))}));K.muiName="Select";Object(p.a)(G,{name:"MuiNativeSelect"})(K);var $=n(266),Y=n(281),Q=G,X=i.createElement(W.a,null),Z=i.createElement($.a,null),J=i.forwardRef((function e(t,n){var c=t.autoWidth,u=void 0!==c&&c,l=t.children,s=t.classes,f=t.displayEmpty,d=void 0!==f&&f,p=t.IconComponent,h=void 0===p?U:p,v=t.id,b=t.input,m=t.inputProps,y=t.label,g=t.labelId,w=t.labelWidth,x=void 0===w?0:w,O=t.MenuProps,j=t.multiple,k=void 0!==j&&j,S=t.native,E=void 0!==S&&S,C=t.onClose,T=t.onOpen,I=t.open,P=t.renderValue,L=t.SelectDisplayProps,_=t.variant,R=void 0===_?"standard":_,N=Object(o.a)(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),M=E?q:F,A=Object(B.a)(),D=Object(z.a)({props:t,muiFormControl:A,states:["variant"]}).variant||R,H=b||{standard:X,outlined:i.createElement(Y.a,{label:y,labelWidth:x}),filled:Z}[D];return i.cloneElement(H,Object(r.a)({inputComponent:M,inputProps:Object(r.a)({children:l,IconComponent:h,variant:D,type:void 0,multiple:k},E?{id:v}:{autoWidth:u,displayEmpty:d,labelId:g,MenuProps:O,onClose:C,onOpen:T,open:I,renderValue:P,SelectDisplayProps:Object(r.a)({id:v},L)},m,{classes:m?Object(a.a)({baseClasses:s,newClasses:m.classes,Component:e}):s},b?b.props.inputProps:{}),ref:n},N))}));J.muiName="Select";t.a=Object(p.a)(Q,{name:"MuiSelect"})(J)},function(e,t,n){"use strict";var r=n(15),o=n(4),i=n(0),a=n(48),c=n(205),u=n(257),l=n(74),s=n(259),f=n(124),d=n(44),p=n(82),h=n(166);var v=n(146),b=n(119),m=n(169),y=n(152);function g(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function w(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function x(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,i=[t,n].concat(Object(b.a)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===a.indexOf(e.tagName)&&g(e,o)}))}function O(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function j(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=Object(l.a)(e);return t.body===e?Object(y.a)(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){var a=Object(m.a)();r.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(w(i)+a,"px"),n=Object(l.a)(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(w(e)+a,"px")}))}var c=i.parentElement,u="HTML"===c.nodeName&&"scroll"===window.getComputedStyle(c)["overflow-y"]?c:i;r.push({value:u.style.overflow,key:"overflow",el:u}),u.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){o[t]?e.style.paddingRight=o[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var k=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}return Object(v.a)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&g(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);x(t,e.mountNode,e.modalRef,r,!0);var o=O(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=O(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=j(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=O(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&g(e.modalRef,!0),x(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var o=r.modals[r.modals.length-1];o.modalRef&&g(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();var S=function(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,o=e.disableEnforceFocus,c=void 0!==o&&o,u=e.disableRestoreFocus,s=void 0!==u&&u,f=e.getDoc,p=e.isEnabled,h=e.open,v=i.useRef(),b=i.useRef(null),m=i.useRef(null),y=i.useRef(),g=i.useRef(null),w=i.useCallback((function(e){g.current=a.findDOMNode(e)}),[]),x=Object(d.a)(t.ref,w),O=i.useRef();return i.useEffect((function(){O.current=h}),[h]),!O.current&&h&&"undefined"!==typeof window&&(y.current=f().activeElement),i.useEffect((function(){if(h){var e=Object(l.a)(g.current);r||!g.current||g.current.contains(e.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex",-1),g.current.focus());var t=function(){null!==g.current&&(e.hasFocus()&&!c&&p()&&!v.current?g.current&&!g.current.contains(e.activeElement)&&g.current.focus():v.current=!1)},n=function(t){!c&&p()&&9===t.keyCode&&e.activeElement===g.current&&(v.current=!0,t.shiftKey?m.current.focus():b.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var o=setInterval((function(){t()}),50);return function(){clearInterval(o),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),s||(y.current&&y.current.focus&&y.current.focus(),y.current=null)}}}),[r,c,s,p,h]),i.createElement(i.Fragment,null,i.createElement("div",{tabIndex:0,ref:b,"data-test":"sentinelStart"}),i.cloneElement(t,{ref:x}),i.createElement("div",{tabIndex:0,ref:m,"data-test":"sentinelEnd"}))},E={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},C=i.forwardRef((function(e,t){var n=e.invisible,a=void 0!==n&&n,c=e.open,u=Object(r.a)(e,["invisible","open"]);return c?i.createElement("div",Object(o.a)({"aria-hidden":!0,ref:t},u,{style:Object(o.a)({},E.root,a?E.invisible:{},u.style)})):null}));var T=new k,I=i.forwardRef((function(e,t){var n=Object(c.a)(),v=Object(u.a)({name:"MuiModal",props:Object(o.a)({},e),theme:n}),b=v.BackdropComponent,m=void 0===b?C:b,y=v.BackdropProps,w=v.children,x=v.closeAfterTransition,O=void 0!==x&&x,j=v.container,k=v.disableAutoFocus,E=void 0!==k&&k,I=v.disableBackdropClick,P=void 0!==I&&I,L=v.disableEnforceFocus,_=void 0!==L&&L,R=v.disableEscapeKeyDown,N=void 0!==R&&R,M=v.disablePortal,A=void 0!==M&&M,D=v.disableRestoreFocus,F=void 0!==D&&D,z=v.disableScrollLock,B=void 0!==z&&z,H=v.hideBackdrop,U=void 0!==H&&H,W=v.keepMounted,q=void 0!==W&&W,G=v.manager,V=void 0===G?T:G,K=v.onBackdropClick,$=v.onClose,Y=v.onEscapeKeyDown,Q=v.onRendered,X=v.open,Z=Object(r.a)(v,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),J=i.useState(!0),ee=J[0],te=J[1],ne=i.useRef({}),re=i.useRef(null),oe=i.useRef(null),ie=Object(d.a)(oe,t),ae=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(v),ce=function(){return Object(l.a)(re.current)},ue=function(){return ne.current.modalRef=oe.current,ne.current.mountNode=re.current,ne.current},le=function(){V.mount(ue(),{disableScrollLock:B}),oe.current.scrollTop=0},se=Object(p.a)((function(){var e=function(e){return e="function"===typeof e?e():e,a.findDOMNode(e)}(j)||ce().body;V.add(ue(),e),oe.current&&le()})),fe=i.useCallback((function(){return V.isTopModal(ue())}),[V]),de=Object(p.a)((function(e){re.current=e,e&&(Q&&Q(),X&&fe()?le():g(oe.current,!0))})),pe=i.useCallback((function(){V.remove(ue())}),[V]);if(i.useEffect((function(){return function(){pe()}}),[pe]),i.useEffect((function(){X?se():ae&&O||pe()}),[X,pe,ae,O,se]),!q&&!X&&(!ae||ee))return null;var he=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:h.a}),ve={};return void 0===w.props.tabIndex&&(ve.tabIndex=w.props.tabIndex||"-1"),ae&&(ve.onEnter=Object(f.a)((function(){te(!1)}),w.props.onEnter),ve.onExited=Object(f.a)((function(){te(!0),O&&pe()}),w.props.onExited)),i.createElement(s.a,{ref:de,container:j,disablePortal:A},i.createElement("div",Object(o.a)({ref:ie,onKeyDown:function(e){"Escape"===e.key&&fe()&&(Y&&Y(e),N||(e.stopPropagation(),$&&$(e,"escapeKeyDown")))},role:"presentation"},Z,{style:Object(o.a)({},he.root,!X&&ee?he.hidden:{},Z.style)}),U?null:i.createElement(m,Object(o.a)({open:X,onClick:function(e){e.target===e.currentTarget&&(K&&K(e),!P&&$&&$(e,"backdropClick"))}},y)),i.createElement(S,{disableEnforceFocus:_,disableAutoFocus:E,disableRestoreFocus:F,getDoc:ce,isEnabled:fe,open:X},i.cloneElement(w,ve))))}));t.a=I},function(e,t,n){"use strict";var r=n(4),o=n(15),i=n(0),a=n(19),c=n(101),u=n(153),l=n(93),s=n(23),f=n(263),d=i.forwardRef((function(e,t){var n=e.autoFocus,s=e.checked,d=e.checkedIcon,p=e.classes,h=e.className,v=e.defaultChecked,b=e.disabled,m=e.icon,y=e.id,g=e.inputProps,w=e.inputRef,x=e.name,O=e.onBlur,j=e.onChange,k=e.onFocus,S=e.readOnly,E=e.required,C=e.tabIndex,T=e.type,I=e.value,P=Object(o.a)(e,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),L=Object(u.a)({controlled:s,default:Boolean(v),name:"SwitchBase",state:"checked"}),_=Object(c.a)(L,2),R=_[0],N=_[1],M=Object(l.a)(),A=b;M&&"undefined"===typeof A&&(A=M.disabled);var D="checkbox"===T||"radio"===T;return i.createElement(f.a,Object(r.a)({component:"span",className:Object(a.a)(p.root,h,R&&p.checked,A&&p.disabled),disabled:A,tabIndex:null,role:void 0,onFocus:function(e){k&&k(e),M&&M.onFocus&&M.onFocus(e)},onBlur:function(e){O&&O(e),M&&M.onBlur&&M.onBlur(e)},ref:t},P),i.createElement("input",Object(r.a)({autoFocus:n,checked:s,defaultChecked:v,className:p.input,disabled:A,id:D&&y,name:x,onChange:function(e){var t=e.target.checked;N(t),j&&j(e,t)},readOnly:S,ref:w,required:E,tabIndex:C,type:T,value:I},g)),R?d:m)})),p=Object(s.a)({root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},{name:"PrivateSwitchBase"})(d),h=n(89),v=Object(h.a)(i.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),b=Object(h.a)(i.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),m=n(60),y=Object(h.a)(i.createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox"),g=n(31),w=i.createElement(b,null),x=i.createElement(v,null),O=i.createElement(y,null),j=i.forwardRef((function(e,t){var n=e.checkedIcon,c=void 0===n?w:n,u=e.classes,l=e.color,s=void 0===l?"secondary":l,f=e.icon,d=void 0===f?x:f,h=e.indeterminate,v=void 0!==h&&h,b=e.indeterminateIcon,m=void 0===b?O:b,y=e.inputProps,j=e.size,k=void 0===j?"medium":j,S=Object(o.a)(e,["checkedIcon","classes","color","icon","indeterminate","indeterminateIcon","inputProps","size"]),E=v?m:d,C=v?m:c;return i.createElement(p,Object(r.a)({type:"checkbox",classes:{root:Object(a.a)(u.root,u["color".concat(Object(g.a)(s))],v&&u.indeterminate),checked:u.checked,disabled:u.disabled},color:s,inputProps:Object(r.a)({"data-indeterminate":v},y),icon:i.cloneElement(E,{fontSize:void 0===E.props.fontSize&&"small"===k?k:E.props.fontSize}),checkedIcon:i.cloneElement(C,{fontSize:void 0===C.props.fontSize&&"small"===k?k:C.props.fontSize}),ref:t},S))}));t.a=Object(s.a)((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},indeterminate:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(m.a)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(m.a)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiCheckbox"})(j)},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),i=n(48),a=n.n(i),c=n(195),u=n(269),l=n(28),s=n(17),f=n(196),d=n(162),p=n(5),h=n(197),v=n(26),b=n(1),m=n(2),y=n(14),g=n(184),w=n(276),x=n(280),O=n(131),j=n(33),k=n(83),S=n(13),E=n(46),C=n(30),T=n(20),I=n(145);function P(){P=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(T){u=function(e,t,n){return e[t]=n}}function l(e,t,n,o){var i=t&&t.prototype instanceof d?t:d,a=Object.create(i.prototype),c=new S(o||[]);return r(a,"_invoke",{value:x(e,n,c)}),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=l;var f={};function d(){}function p(){}function h(){}var v={};u(v,i,(function(){return this}));var b=Object.getPrototypeOf,m=b&&b(b(E([])));m&&m!==t&&n.call(m,i)&&(v=m);var y=h.prototype=d.prototype=Object.create(v);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(r,i,a,c){var u=s(e[r],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,a,c)}),(function(e){o("throw",e,a,c)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return o("throw",e,a,c)}))}c(u.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){o(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function x(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=O(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=s(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function O(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,O(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=s(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function E(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(w.prototype),u(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(l(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),u(y,c,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=E,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}var L=Object(g.a)((function(e){return{Experiments:{margin:"0 auto",padding:e.spacing(4),maxWidth:e.spacing(80),color:e.palette.text.primary,backgroundColor:e.palette.background.default,'& input[type="number"]':{MozAppearance:"textfield"},'& input[type="number"]::-webkit-outer-spin-button':{WebkitAppearance:"none",margin:0},'& input[type="number"]::-webkit-inner-spin-button':{WebkitAppearance:"none",margin:0}},reloadNotice:{position:"fixed",left:0,top:0,width:"100%",height:68,fontSize:"1.1rem",fontWeight:400,color:"dark"===e.palette.type?"#fff":"#663c00",backgroundColor:"dark"===e.palette.type?"#757524":"#ffbc58",transition:"transform 0.2s ease-in-out",transform:"translateY(-100%)",zIndex:1e3},reloadNoticeInner:{display:"flex",alignItems:"center",justifyContent:"space-between",maxWidth:e.spacing(80),height:"100%",boxSizing:"border-box",margin:"0 auto",padding:e.spacing(0,4)},reloadNoticeText:{paddingRight:e.spacing(3)},reloadButton:{color:"dark"===e.palette.type?"#fff":"#472a00",backgroundColor:"dark"===e.palette.type?"#50511b":"#ffd698","&&&:hover, &&&:focus":{color:"dark"===e.palette.type?"#fff":"#472a00",backgroundColor:"dark"===e.palette.type?"#3b3b14":"#fae1bd"}},reloadNoticeVisible:{transform:"translateY(0)",boxShadow:"dark"===e.palette.type?e.shadows[6]:e.shadows[1]},header:{display:"flex",alignItems:"center",gap:e.spacing(1.5),padding:e.spacing(0,1),marginTop:e.spacing(1),fontWeight:500,"& > svg":{fontSize:"1.3rem"}},explanation:{padding:e.spacing(0,1),marginBottom:e.spacing(6),color:"dark"===e.palette.type?e.palette.text.secondary:e.palette.text.primary},warning:{marginTop:e.spacing(2),color:e.palette.error.light,fontWeight:"dark"===e.palette.type?"normal":500},paper:{padding:e.spacing(1,4,3,3),backgroundColor:e.palette.background.secondaryDefault,borderRadius:e.shape.borderRadius},experiment:{display:"flex",alignItems:"center",justifyContent:"space-between",height:e.spacing(12)},title:{display:"flex",alignItems:"center",gap:e.spacing(.6),paddingRight:e.spacing(4),fontSize:"1rem",fontWeight:500,"& a":{fontSize:0,color:e.palette.text.secondary,textDecoration:"none",cursor:"pointer","&:hover, &:focus":{color:e.palette.text.primary},"& svg":{width:14,height:14}}},name:{padding:e.spacing(.5,1),borderRadius:4},revertButton:{minWidth:"10px !important",padding:e.spacing(.5,1),marginLeft:e.spacing(1),fontSize:"0.65rem",lineHeight:"0.65rem",borderRadius:4},highlight:{backgroundColor:"dark"===e.palette.type?"#ffff0045":"#ffd89d"},description:{maxWidth:400,padding:e.spacing(.8,4,.5,1),fontSize:"0.875rem",color:"dark"===e.palette.type?e.palette.text.secondary:e.palette.text.primary,"& a":{color:"inherit"}},input:{"& .MuiTextField-root":{width:"6rem","& p":{textAlign:"right"}}}}})),_=function(){var e=L(),t=Object(l.b)(),n=Object(r.useState)(window.location.hash.slice(1)),i=Object(y.a)(n,2),a=i[0],c=i[1],u=Object(r.useState)(!1),f=Object(y.a)(u,2),d=f[0],p=f[1];Object(k.a)((function(){c(window.location.hash.slice(1))}));var h=Object(l.c)(Object(s.l)("experiments")),g=Object(r.useCallback)(function(){var e=Object(m.a)(P().mark((function e(n,r){var o;return P().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t(Object(s.q)("experiments",Object(b.a)(Object(b.a)({},h),{},Object(v.a)({},n.key,r)))),e.t0="requiresReload"in n&&n.requiresReload,!e.t0){e.next=15;break}return e.next=5,Object(O.a)();case 5:if(e.t2=o=e.sent,e.t1=null===e.t2,e.t1){e.next=9;break}e.t1=void 0===o;case 9:if(!e.t1){e.next=13;break}e.t3=void 0,e.next=14;break;case 13:e.t3=o.length;case 14:e.t0=e.t3;case 15:if(!e.t0){e.next=17;break}p(!0);case 17:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),[t,h]);return o.a.createElement("div",{className:e.Experiments},o.a.createElement("div",{className:Object(C.a)(e.reloadNotice,Object(v.a)({},e.reloadNoticeVisible,d))},o.a.createElement("div",{className:e.reloadNoticeInner},o.a.createElement("div",{className:e.reloadNoticeText},"Session Buddy tabs must be reloaded to apply your changes."),o.a.createElement(j.a,{label:"Reload",className:e.reloadButton,onClick:function(){Object(O.b)(),p(!1)}}))),o.a.createElement("h2",{className:e.header},o.a.createElement(T.FlaskIcon,null),o.a.createElement("span",null,"Session Buddy Experiments")),o.a.createElement("div",{className:e.explanation},o.a.createElement("div",null,"Experiments allow you to fine-tune or troubleshoot Session Buddy's behavior."," "),o.a.createElement("div",{className:e.warning},"While generally safe, updating experiments may lead to poor performance or unexpected behavior. Revert changes if you experience issues. Also note that experiments are subject to change. They may be converted to formal settings or removed in future releases.")),o.a.createElement("div",{className:e.paper},I.a.map((function(t){var n,r;return o.a.createElement("div",{key:t.key,className:e.experiment},o.a.createElement("div",null,o.a.createElement("div",{id:t.key,className:e.title},o.a.createElement("span",{className:Object(C.a)(e.name,Object(v.a)({},e.highlight,a===t.key))},Object(S.d)(t.name)),o.a.createElement("a",{href:"#".concat(t.key)},o.a.createElement(T.LinkIcon,null)),(null!==(n=h[t.key])&&void 0!==n?n:t.defaultValue)!==t.defaultValue?o.a.createElement(j.a,{label:"Revert",className:e.revertButton,outlined:!0,size:"small",onClick:function(){g(t,t.defaultValue)}}):null),o.a.createElement("div",{className:e.description},t.description)),o.a.createElement("div",{className:e.input},o.a.createElement(R,{value:null!==(r=h[t.key])&&void 0!==r?r:t.defaultValue,min:"min"in t&&"number"===typeof t.min?t.min:void 0,max:"max"in t&&"number"===typeof t.max?t.max:void 0,onChange:function(e){return g(t,e)}})))}))))},R=function(e){var t=e.value,n=e.min,r=e.max,i=e.onChange,a=N(t,n,r);return"boolean"===typeof t?o.a.createElement(w.a,{checked:t,color:"secondary",inputProps:{"aria-label":"experiment checkbox"},onClick:function(e){i(e.target.checked)}}):o.a.createElement(x.a,{type:"number"===typeof t?"number":"text",value:t,error:!!a,helperText:a,onChange:function(e){i("number"===typeof t?Number(e.target.value):e.target.value)},onBlur:function(){if("number"===typeof t){var e=Object(E.a)(t,n,r);e!==t&&i(e)}},inputProps:Object(b.a)(Object(b.a)(Object(b.a)({},"number"===typeof t&&null!=n?{min:n}:null),"number"===typeof t&&null!=r?{max:r}:null),{},{"aria-label":"experiment ".concat(typeof t," input"),style:{textAlign:"right"}})})},N=function(e,t,n){if("number"===typeof e){if(null!=t&&e<t)return"Min: ".concat(t);if(null!=n&&e>n)return"Max: ".concat(n)}return""},M=function(){var e=Object(f.a)({skipRemoteConfig:!0}),t=Object(d.a)(),n=Object(l.c)(Object(s.l)("desiredTheme"));if(!e)return null;var r=Object(h.a)(Object(p.v)(n,t));return o.a.createElement(u.a,{theme:r},o.a.createElement(_,null))};a.a.render(o.a.createElement(c.a,null,o.a.createElement(M,null)),document.getElementById("root"))},function(e,t,n){"use strict";var r=n(4),o=n(15),i=n(0),a=(n(142),n(48)),c=n(74),u=n(19),l=n(23),s=n(132),f=i.forwardRef((function(e,t){var n=e.children,a=e.classes,c=e.className,l=e.component,f=void 0===l?"ul":l,d=e.dense,p=void 0!==d&&d,h=e.disablePadding,v=void 0!==h&&h,b=e.subheader,m=Object(o.a)(e,["children","classes","className","component","dense","disablePadding","subheader"]),y=i.useMemo((function(){return{dense:p}}),[p]);return i.createElement(s.a.Provider,{value:y},i.createElement(f,Object(r.a)({className:Object(u.a)(a.root,c,p&&a.dense,!v&&a.padding,b&&a.subheader),ref:t},m),b,n))})),d=Object(l.a)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(f),p=n(169),h=n(44);function v(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function b(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function m(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function y(e,t,n,r,o,i){for(var a=!1,c=o(e,t,!!t&&n);c;){if(c===e.firstChild){if(a)return;a=!0}var u=!r&&(c.disabled||"true"===c.getAttribute("aria-disabled"));if(c.hasAttribute("tabindex")&&m(c,i)&&!u)return void c.focus();c=o(e,c,n)}}var g="undefined"===typeof window?i.useEffect:i.useLayoutEffect,w=i.forwardRef((function(e,t){var n=e.actions,u=e.autoFocus,l=void 0!==u&&u,s=e.autoFocusItem,f=void 0!==s&&s,w=e.children,x=e.className,O=e.disabledItemsFocusable,j=void 0!==O&&O,k=e.disableListWrap,S=void 0!==k&&k,E=e.onKeyDown,C=e.variant,T=void 0===C?"selectedMenu":C,I=Object(o.a)(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),P=i.useRef(null),L=i.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});g((function(){l&&P.current.focus()}),[l]),i.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!P.current.style.width;if(e.clientHeight<P.current.clientHeight&&n){var r="".concat(Object(p.a)(!0),"px");P.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,P.current.style.width="calc(100% + ".concat(r,")")}return P.current}}}),[]);var _=i.useCallback((function(e){P.current=a.findDOMNode(e)}),[]),R=Object(h.a)(_,t),N=-1;i.Children.forEach(w,(function(e,t){i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===T&&e.props.selected||-1===N)&&(N=t))}));var M=i.Children.map(w,(function(e,t){if(t===N){var n={};return f&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===T&&(n.tabIndex=0),i.cloneElement(e,n)}return e}));return i.createElement(d,Object(r.a)({role:"menu",ref:R,className:x,onKeyDown:function(e){var t=P.current,n=e.key,r=Object(c.a)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),y(t,r,S,j,v);else if("ArrowUp"===n)e.preventDefault(),y(t,r,S,j,b);else if("Home"===n)e.preventDefault(),y(t,null,S,j,v);else if("End"===n)e.preventDefault(),y(t,null,S,j,b);else if(1===n.length){var o=L.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);var u=r&&!o.repeating&&m(r,o);o.previousKeyMatched&&(u||y(t,r,!1,j,v,o))?e.preventDefault():o.previousKeyMatched=!1}E&&E(e)},tabIndex:l?0:-1},I),M)}));t.a=w},function(e,t,n){"use strict";var r=n(4),o=n(15),i=n(0),a=n(19),c=n(94),u=n(93),l=n(23),s=n(31),f=i.forwardRef((function(e,t){var n=e.children,l=e.classes,f=e.className,d=(e.color,e.component),p=void 0===d?"label":d,h=(e.disabled,e.error,e.filled,e.focused,e.required,Object(o.a)(e,["children","classes","className","color","component","disabled","error","filled","focused","required"])),v=Object(u.a)(),b=Object(c.a)({props:e,muiFormControl:v,states:["color","required","focused","disabled","error","filled"]});return i.createElement(p,Object(r.a)({className:Object(a.a)(l.root,l["color".concat(Object(s.a)(b.color||"primary"))],f,b.disabled&&l.disabled,b.error&&l.error,b.filled&&l.filled,b.focused&&l.focused,b.required&&l.required),ref:t},h),n,b.required&&i.createElement("span",{"aria-hidden":!0,className:Object(a.a)(l.asterisk,b.error&&l.error)},"\u2009","*"))})),d=Object(l.a)((function(e){return{root:Object(r.a)({color:e.palette.text.secondary},e.typography.body1,{lineHeight:1,padding:0,"&$focused":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),colorSecondary:{"&$focused":{color:e.palette.secondary.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:e.palette.error.main}}}}),{name:"MuiFormLabel"})(f),p=i.forwardRef((function(e,t){var n=e.classes,l=e.className,s=e.disableAnimation,f=void 0!==s&&s,p=(e.margin,e.shrink),h=(e.variant,Object(o.a)(e,["classes","className","disableAnimation","margin","shrink","variant"])),v=Object(u.a)(),b=p;"undefined"===typeof b&&v&&(b=v.filled||v.focused||v.adornedStart);var m=Object(c.a)({props:e,muiFormControl:v,states:["margin","variant"]});return i.createElement(d,Object(r.a)({"data-shrink":b,className:Object(a.a)(n.root,l,v&&n.formControl,!f&&n.animated,b&&n.shrink,"dense"===m.margin&&n.marginDense,{filled:n.filled,outlined:n.outlined}[m.variant]),classes:{focused:n.focused,disabled:n.disabled,error:n.error,required:n.required,asterisk:n.asterisk},ref:t},h))}));t.a=Object(l.a)((function(e){return{root:{display:"block",transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},asterisk:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:e.transitions.create(["color","transform"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 12px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}}),{name:"MuiInputLabel"})(p)},function(e,t,n){"use strict";var r=n(4),o=n(15),i=n(0),a=n(19),c=n(265),u=n(266),l=n(281),s=n(279),f=n(264),d=n(94),p=n(93),h=n(23),v=i.forwardRef((function(e,t){var n=e.children,c=e.classes,u=e.className,l=e.component,s=void 0===l?"p":l,f=(e.disabled,e.error,e.filled,e.focused,e.margin,e.required,e.variant,Object(o.a)(e,["children","classes","className","component","disabled","error","filled","focused","margin","required","variant"])),h=Object(p.a)(),v=Object(d.a)({props:e,muiFormControl:h,states:["variant","margin","disabled","error","filled","focused","required"]});return i.createElement(s,Object(r.a)({className:Object(a.a)(c.root,("filled"===v.variant||"outlined"===v.variant)&&c.contained,u,v.disabled&&c.disabled,v.error&&c.error,v.filled&&c.filled,v.focused&&c.focused,v.required&&c.required,"dense"===v.margin&&c.marginDense),ref:t},f)," "===n?i.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):n)})),b=Object(h.a)((function(e){return{root:Object(r.a)({color:e.palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,margin:0,"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{marginLeft:14,marginRight:14},focused:{},filled:{},required:{}}}),{name:"MuiFormHelperText"})(v),m=n(274),y={standard:c.a,filled:u.a,outlined:l.a},g=i.forwardRef((function(e,t){var n=e.autoComplete,c=e.autoFocus,u=void 0!==c&&c,l=e.children,d=e.classes,p=e.className,h=e.color,v=void 0===h?"primary":h,g=e.defaultValue,w=e.disabled,x=void 0!==w&&w,O=e.error,j=void 0!==O&&O,k=e.FormHelperTextProps,S=e.fullWidth,E=void 0!==S&&S,C=e.helperText,T=e.hiddenLabel,I=e.id,P=e.InputLabelProps,L=e.inputProps,_=e.InputProps,R=e.inputRef,N=e.label,M=e.multiline,A=void 0!==M&&M,D=e.name,F=e.onBlur,z=e.onChange,B=e.onFocus,H=e.placeholder,U=e.required,W=void 0!==U&&U,q=e.rows,G=e.rowsMax,V=e.maxRows,K=e.minRows,$=e.select,Y=void 0!==$&&$,Q=e.SelectProps,X=e.type,Z=e.value,J=e.variant,ee=void 0===J?"standard":J,te=Object(o.a)(e,["autoComplete","autoFocus","children","classes","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","maxRows","minRows","select","SelectProps","type","value","variant"]);var ne={};if("outlined"===ee&&(P&&"undefined"!==typeof P.shrink&&(ne.notched=P.shrink),N)){var re,oe=null!==(re=null===P||void 0===P?void 0:P.required)&&void 0!==re?re:W;ne.label=i.createElement(i.Fragment,null,N,oe&&"\xa0*")}Y&&(Q&&Q.native||(ne.id=void 0),ne["aria-describedby"]=void 0);var ie=C&&I?"".concat(I,"-helper-text"):void 0,ae=N&&I?"".concat(I,"-label"):void 0,ce=y[ee],ue=i.createElement(ce,Object(r.a)({"aria-describedby":ie,autoComplete:n,autoFocus:u,defaultValue:g,fullWidth:E,multiline:A,name:D,rows:q,rowsMax:G,maxRows:V,minRows:K,type:X,value:Z,id:I,inputRef:R,onBlur:F,onChange:z,onFocus:B,placeholder:H,inputProps:L},ne,_));return i.createElement(f.a,Object(r.a)({className:Object(a.a)(d.root,p),disabled:x,error:j,fullWidth:E,hiddenLabel:T,ref:t,required:W,color:v,variant:ee},te),N&&i.createElement(s.a,Object(r.a)({htmlFor:I,id:ae},P),N),Y?i.createElement(m.a,Object(r.a)({"aria-describedby":ie,id:I,labelId:ae,value:Z,input:ue},Q),l):ue,C&&i.createElement(b,Object(r.a)({id:ie},k),C))}));t.a=Object(h.a)({root:{}},{name:"MuiTextField"})(g)},function(e,t,n){"use strict";var r=n(4),o=n(15),i=n(0),a=n(19),c=n(207),u=n(54),l=n(23),s=n(98),f=n(31),d=i.forwardRef((function(e,t){e.children;var n=e.classes,c=e.className,l=e.label,d=e.labelWidth,p=e.notched,h=e.style,v=Object(o.a)(e,["children","classes","className","label","labelWidth","notched","style"]),b="rtl"===Object(s.a)().direction?"right":"left";if(void 0!==l)return i.createElement("fieldset",Object(r.a)({"aria-hidden":!0,className:Object(a.a)(n.root,c),ref:t,style:h},v),i.createElement("legend",{className:Object(a.a)(n.legendLabelled,p&&n.legendNotched)},l?i.createElement("span",null,l):i.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})));var m=d>0?.75*d+8:.01;return i.createElement("fieldset",Object(r.a)({"aria-hidden":!0,style:Object(r.a)(Object(u.a)({},"padding".concat(Object(f.a)(b)),8),h),className:Object(a.a)(n.root,c),ref:t},v),i.createElement("legend",{className:n.legend,style:{width:p?m:.01}},i.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})))})),p=Object(l.a)((function(e){return{root:{position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden"},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}}),{name:"PrivateNotchedOutline"})(d),h=i.forwardRef((function(e,t){var n=e.classes,u=e.fullWidth,l=void 0!==u&&u,s=e.inputComponent,f=void 0===s?"input":s,d=e.label,h=e.labelWidth,v=void 0===h?0:h,b=e.multiline,m=void 0!==b&&b,y=e.notched,g=e.type,w=void 0===g?"text":g,x=Object(o.a)(e,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return i.createElement(c.a,Object(r.a)({renderSuffix:function(e){return i.createElement(p,{className:n.notchedOutline,label:d,labelWidth:v,notched:"undefined"!==typeof y?y:Boolean(e.startAdornment||e.filled||e.focused)})},classes:Object(r.a)({},n,{root:Object(a.a)(n.root,n.underline),notchedOutline:null}),fullWidth:l,inputComponent:f,multiline:m,ref:t,type:w},x))}));h.muiName="Input";t.a=Object(l.a)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiOutlinedInput"})(h)}]); |