diff --git a/chrome.zip b/chrome.zip index 58f5ba9..a164262 100644 Binary files a/chrome.zip and b/chrome.zip differ diff --git a/chrome/css/history.css b/chrome/css/history.css index 9f20dd7..71d8191 100644 --- a/chrome/css/history.css +++ b/chrome/css/history.css @@ -1 +1 @@ -html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}button{background-color:transparent;background-image:none;padding:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}fieldset,ol,ul{margin:0;padding:0}html{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}*,:after,:before{border:0 solid #e2e8f0}hr{border-top-width:1px}img{border-style:solid}textarea{resize:vertical}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#a0aec0}input::-ms-input-placeholder,textarea::-ms-input-placeholder{color:#a0aec0}input::placeholder,textarea::placeholder{color:#a0aec0}[role=button],button{cursor:pointer}table{border-collapse:collapse}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}*,:after,:before{box-sizing:border-box}body,html,ol[class],ul[class]{padding:0}blockquote,body,dd,dl,figure,html,ol[class],ul[class]{margin:0}body,html{border:0}ol,ul{list-style:none}a:not([class]){text-decoration-skip-ink:auto}a:hover{text-decoration:none}img{max-width:100%;display:block}article>*+*{margin-top:1em}button,input,select,textarea{font:inherit}textarea{resize:none}button:focus,input:active,input:focus,textarea:active,textarea:focus{outline:none!important;box-shadow:none!important}h1,h2,h3,h4,h5{font-weight:600;margin:0 0 10px}p{margin:0 0 15px}:is(ul,ol)>:not(li),a:is(:not([href]),[href=""],[href="#"]){outline:2px dotted red}img:not([alt]),img:not([height]),img:not([width]){filter:blur(10px)}@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}html{height:100%;scroll-behavior:smooth}body{min-height:100vh;text-rendering:optimizeSpeed;line-height:1.3;overflow-x:hidden;width:100%}.icon{width:26px;height:26px;background-color:#ebfff3;align-items:center;justify-content:center;display:flex;position:relative;cursor:pointer;box-shadow:0 2px 1px rgba(138,158,168,.12);padding:4px;outline:none;transition:transform .4s ease-out 0s;border-radius:100%}.icon svg{transition:all .2s ease-out 0s}*{margin:0;padding:0;outline:0}html{height:auto}body{min-height:100%}@-webkit-keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}#spinner{-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite}.d-none{display:none!important} \ No newline at end of file +html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}[hidden],template{display:none}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}button{background-color:transparent;background-image:none;padding:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}fieldset,ol,ul{margin:0;padding:0}html{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}*,:after,:before{border:0 solid #e2e8f0}hr{border-top-width:1px}img{border-style:solid}textarea{resize:vertical}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#a0aec0}input::-ms-input-placeholder,textarea::-ms-input-placeholder{color:#a0aec0}input::placeholder,textarea::placeholder{color:#a0aec0}[role=button],button{cursor:pointer}table{border-collapse:collapse}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}*,:after,:before{box-sizing:border-box}body,html,ol[class],ul[class]{padding:0}blockquote,body,dd,dl,figure,html,ol[class],ul[class]{margin:0}body,html{border:0}ol,ul{list-style:none}a:not([class]){text-decoration-skip-ink:auto}a:hover{text-decoration:none}img{max-width:100%;display:block}article>*+*{margin-top:1em}button,input,select,textarea{font:inherit}textarea{resize:none}button:focus,input:active,input:focus,textarea:active,textarea:focus{outline:none!important;box-shadow:none!important}h1,h2,h3,h4,h5{font-weight:600;margin:0 0 10px}p{margin:0 0 15px}:is(ul,ol)>:not(li),a:is(:not([href]),[href=""],[href="#"]){outline:2px dotted red}img:not([alt]),img:not([height]),img:not([width]){filter:blur(10px)}@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}html{height:100%;scroll-behavior:smooth}body{min-height:100vh;text-rendering:optimizeSpeed;line-height:1.3;overflow-x:hidden;width:100%}.icon{width:26px;height:26px;background-color:#ebfff3;align-items:center;justify-content:center;display:flex;position:relative;cursor:pointer;box-shadow:0 2px 1px rgba(138,158,168,.12);padding:4px;outline:none;transition:transform .4s ease-out 0s;border-radius:100%}.icon svg{transition:all .2s ease-out 0s}*{margin:0;padding:0;outline:0}html{height:auto}body{min-height:100%;background-color:#edf2f7}@-webkit-keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}#spinner{-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite}.d-none{display:none!important} \ No newline at end of file diff --git a/chrome/js/background.bundle.js b/chrome/js/background.bundle.js index a1a51e3..cb18bdb 100644 --- a/chrome/js/background.bundle.js +++ b/chrome/js/background.bundle.js @@ -1 +1 @@ -!function(e){var r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(r){return e[r]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=8)}([,,function(e,r,t){e.exports=t(33)},function(e,r,t){"use strict";var n=t(14),o=Object.prototype.toString;function s(e){return"[object Array]"===o.call(e)}function a(e){return void 0===e}function i(e){return null!==e&&"object"==typeof e}function c(e){return"[object Function]"===o.call(e)}function u(e,r){if(null!=e)if("object"!=typeof e&&(e=[e]),s(e))for(var t=0,n=e.length;t=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function g(e,r,t,n,o,s,a){try{var i=e[s](a),c=i.value}catch(e){return void t(e)}i.done?r(c):Promise.resolve(c).then(n,o)}function p(e){return function(){var r=this,t=arguments;return new Promise((function(n,o){var s=e.apply(r,t);function a(e){g(s,n,o,a,i,"next",e)}function i(e){g(s,n,o,a,i,"throw",e)}a(void 0)}))}}let d,h;function A(){return(A=p(o.a.mark((function e(r){var t,n,s,a,u,f;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.apiBody,n=r.hostUrl,e.prev=1,s=t.apikey,a=m(t,["apikey"]),e.next=5,i()({method:"POST",timeout:c.f,url:n+"/api/v2/links",headers:{"X-API-Key":s},data:l({},a)});case 5:return u=e.sent,f=u.data,e.abrupt("return",{error:!1,data:f});case 10:if(e.prev=10,e.t0=e.catch(1),!e.t0.response){e.next=19;break}if(401!==e.t0.response.status){e.next=15;break}return e.abrupt("return",{error:!0,message:"Error: Invalid API Key"});case 15:if(400!==e.t0.response.status||!Object.prototype.hasOwnProperty.call(e.t0.response.data,"error")){e.next=17;break}return e.abrupt("return",{error:!0,message:"Error: "+e.t0.response.data.error});case 17:if(404!==e.t0.response.status){e.next=19;break}return e.abrupt("return",{error:!0,message:"Error: This extension now uses API v2, please update your kutt.it instance."});case 19:if("ECONNABORTED"!==e.t0.code){e.next=21;break}return e.abrupt("return",{error:!0,message:"Error: Timed out"});case 21:return e.abrupt("return",{error:!0,message:"Error: Something went wrong"});case 22:case"end":return e.stop()}}),e,null,[[1,10]])})))).apply(this,arguments)}function x(e){let r=e.apikey,t=e.hostUrl;return i()({method:"GET",url:t+"/api/v2/users",timeout:c.b,headers:{"X-API-Key":r}})}function y(){return(y=p(o.a.mark((function e(r){var t,n,s,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.apikey,n=r.hostUrl,e.prev=1,e.next=4,x({apikey:t,hostUrl:n});case 4:return s=e.sent,a=s.data,e.abrupt("return",{error:!1,data:a});case 9:if(e.prev=9,e.t0=e.catch(1),!e.t0.response){e.next=15;break}if(401!==e.t0.response.status){e.next=14;break}return e.abrupt("return",{error:!0,message:"Error: Invalid API Key"});case 14:return e.abrupt("return",{error:!0,message:"Error: Something went wrong."});case 15:if("ECONNABORTED"!==e.t0.code){e.next=17;break}return e.abrupt("return",{error:!0,message:"Error: Timed out"});case 17:return e.abrupt("return",{error:!0,message:"Error: Requesting to server failed."});case 18:case"end":return e.stop()}}),e,null,[[1,9]])})))).apply(this,arguments)}function v(){return(v=p(o.a.mark((function e(r){var t,n,s,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.apikey,n=r.hostUrl,e.prev=1,e.next=4,i()({method:"GET",timeout:c.f,url:n+"/api/v2/links",params:{limit:c.d},headers:{"X-API-Key":t}});case 4:return s=e.sent,a=s.data,e.abrupt("return",{error:!1,data:a});case 9:if(e.prev=9,e.t0=e.catch(1),!e.t0.response){e.next=15;break}if(401!==e.t0.response.status){e.next=14;break}return e.abrupt("return",{error:!0,message:"Error: Invalid API Key"});case 14:return e.abrupt("return",{error:!0,message:"Error: Something went wrong."});case 15:if("ECONNABORTED"!==e.t0.code){e.next=17;break}return e.abrupt("return",{error:!0,message:"Error: Timed out"});case 17:return e.abrupt("return",{error:!0,message:"Error: Requesting to server failed."});case 18:case"end":return e.stop()}}),e,null,[[1,9]])})))).apply(this,arguments)}!function(e){e.hostDomain="kutt.it",e.hostUrl="https://kutt.it"}(d||(d={})),function(e){e.chrome="https://chrome.google.com/webstore/detail/kutt/pklakpjfiegjacoppcodencchehlfnpd/reviews",e.firefox="https://addons.mozilla.org/en-US/firefox/addon/kutt/reviews/"}(h||(h={})),s.browser.runtime.onMessage.addListener((e,r)=>{switch(e.action){case c.a:return function(e){return y.apply(this,arguments)}(e.params);case c.e:return function(e){return A.apply(this,arguments)}(e.params);case c.c:return function(e){return v.apply(this,arguments)}(e.params)}})},,function(e,r,t){e.exports=t(35)},,,,function(e,r,t){"use strict";e.exports=function(e,r){return function(){for(var t=new Array(arguments.length),n=0;n=200&&e<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){c.headers[e]=n.merge(s)})),e.exports=c}).call(this,t(24))},function(e,r,t){"use strict";var n=t(3),o=t(41),s=t(15),a=t(43),i=t(46),c=t(47),u=t(19);e.exports=function(e){return new Promise((function(r,l){var f=e.data,m=e.headers;n.isFormData(f)&&delete m["Content-Type"];var g=new XMLHttpRequest;if(e.auth){var p=e.auth.username||"",d=e.auth.password||"";m.Authorization="Basic "+btoa(p+":"+d)}var h=a(e.baseURL,e.url);if(g.open(e.method.toUpperCase(),s(h,e.params,e.paramsSerializer),!0),g.timeout=e.timeout,g.onreadystatechange=function(){if(g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))){var t="getAllResponseHeaders"in g?i(g.getAllResponseHeaders()):null,n={data:e.responseType&&"text"!==e.responseType?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:t,config:e,request:g};o(r,l,n),g=null}},g.onabort=function(){g&&(l(u("Request aborted",e,"ECONNABORTED",g)),g=null)},g.onerror=function(){l(u("Network Error",e,null,g)),g=null},g.ontimeout=function(){var r="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(r=e.timeoutErrorMessage),l(u(r,e,"ECONNABORTED",g)),g=null},n.isStandardBrowserEnv()){var A=t(48),x=(e.withCredentials||c(h))&&e.xsrfCookieName?A.read(e.xsrfCookieName):void 0;x&&(m[e.xsrfHeaderName]=x)}if("setRequestHeader"in g&&n.forEach(m,(function(e,r){void 0===f&&"content-type"===r.toLowerCase()?delete m[r]:g.setRequestHeader(r,e)})),n.isUndefined(e.withCredentials)||(g.withCredentials=!!e.withCredentials),e.responseType)try{g.responseType=e.responseType}catch(r){if("json"!==e.responseType)throw r}"function"==typeof e.onDownloadProgress&&g.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&g.upload&&g.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){g&&(g.abort(),l(e),g=null)})),void 0===f&&(f=null),g.send(f)}))}},function(e,r,t){"use strict";var n=t(42);e.exports=function(e,r,t,o,s){var a=new Error(e);return n(a,r,t,o,s)}},function(e,r,t){"use strict";var n=t(3);e.exports=function(e,r){r=r||{};var t={},o=["url","method","params","data"],s=["headers","auth","proxy"],a=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];n.forEach(o,(function(e){void 0!==r[e]&&(t[e]=r[e])})),n.forEach(s,(function(o){n.isObject(r[o])?t[o]=n.deepMerge(e[o],r[o]):void 0!==r[o]?t[o]=r[o]:n.isObject(e[o])?t[o]=n.deepMerge(e[o]):void 0!==e[o]&&(t[o]=e[o])})),n.forEach(a,(function(n){void 0!==r[n]?t[n]=r[n]:void 0!==e[n]&&(t[n]=e[n])}));var i=o.concat(s).concat(a),c=Object.keys(r).filter((function(e){return-1===i.indexOf(e)}));return n.forEach(c,(function(n){void 0!==r[n]?t[n]=r[n]:void 0!==e[n]&&(t[n]=e[n])})),t}},function(e,r,t){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},,,function(e,r){var t,n,o=e.exports={};function s(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===s||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:s}catch(e){t=s}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var c,u=[],l=!1,f=-1;function m(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&g())}function g(){if(!l){var e=i(m);l=!0;for(var r=u.length;r;){for(c=u,u=[];++f1)for(var t=1;t=0;--o){var s=this.tryEntries[o],a=s.completion;if("root"===s.tryLoc)return n("end");if(s.tryLoc<=this.prev){var i=t.call(s,"catchLoc"),c=t.call(s,"finallyLoc");if(i&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&t.call(o,"finallyLoc")&&this.prev=0;--r){var t=this.tryEntries[r];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),b(t),u}},catch:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var t=this.tryEntries[r];if(t.tryLoc===e){var n=t.completion;if("throw"===n.type){var o=n.arg;b(t)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,t){return this.delegate={iterator:E(e),resultName:r,nextLoc:t},"next"===this.method&&(this.arg=void 0),u}},e}(e.exports);try{regeneratorRuntime=n}catch(e){Function("r","regeneratorRuntime = r")(n)}},function(e,r,t){var n,o,s;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e],void 0===(s="function"==typeof(n=function(e){"use strict";if("undefined"==typeof browser||Object.getPrototypeOf(browser)!==Object.prototype){const r="The message port closed before a response was received.",t="Returning a Promise is the preferred way to send a reply from an onMessage/onMessageExternal listener, as the sendResponse will be removed from the specs (See https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/runtime/onMessage)",n=e=>{const n={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(0===Object.keys(n).length)throw new Error("api-metadata.json has not been included in browser-polyfill");class o extends WeakMap{constructor(e,r){super(r),this.createItem=e}get(e){return this.has(e)||this.set(e,this.createItem(e)),super.get(e)}}const s=(r,t)=>(...n)=>{e.runtime.lastError?r.reject(e.runtime.lastError):t.singleCallbackArg||n.length<=1&&!1!==t.singleCallbackArg?r.resolve(n[0]):r.resolve(n)},a=e=>1==e?"argument":"arguments",i=(e,r,t)=>new Proxy(r,{apply:(r,n,o)=>t.call(n,e,...o)});let c=Function.call.bind(Object.prototype.hasOwnProperty);const u=(e,r={},t={})=>{let n=Object.create(null),o={has:(r,t)=>t in e||t in n,get(o,l,f){if(l in n)return n[l];if(!(l in e))return;let m=e[l];if("function"==typeof m)if("function"==typeof r[l])m=i(e,e[l],r[l]);else if(c(t,l)){let r=((e,r)=>function(t,...n){if(n.lengthr.maxArgs)throw new Error(`Expected at most ${r.maxArgs} ${a(r.maxArgs)} for ${e}(), got ${n.length}`);return new Promise((o,a)=>{if(r.fallbackToNoCallback)try{t[e](...n,s({resolve:o,reject:a},r))}catch(s){console.warn(e+" API method doesn't seem to support the callback parameter, falling back to call it without a callback: ",s),t[e](...n),r.fallbackToNoCallback=!1,r.noCallback=!0,o()}else r.noCallback?(t[e](...n),o()):t[e](...n,s({resolve:o,reject:a},r))})})(l,t[l]);m=i(e,e[l],r)}else m=m.bind(e);else if("object"==typeof m&&null!==m&&(c(r,l)||c(t,l)))m=u(m,r[l],t[l]);else{if(!c(t,"*"))return Object.defineProperty(n,l,{configurable:!0,enumerable:!0,get:()=>e[l],set(r){e[l]=r}}),m;m=u(m,r[l],t["*"])}return n[l]=m,m},set:(r,t,o,s)=>(t in n?n[t]=o:e[t]=o,!0),defineProperty:(e,r,t)=>Reflect.defineProperty(n,r,t),deleteProperty:(e,r)=>Reflect.deleteProperty(n,r)},l=Object.create(e);return new Proxy(l,o)},l=e=>({addListener(r,t,...n){r.addListener(e.get(t),...n)},hasListener:(r,t)=>r.hasListener(e.get(t)),removeListener(r,t){r.removeListener(e.get(t))}});let f=!1;const m=new o(e=>"function"!=typeof e?e:function(r,n,o){let s,a,i=!1,c=new Promise(e=>{s=function(r){f||(console.warn(t,(new Error).stack),f=!0),i=!0,e(r)}});try{a=e(r,n,s)}catch(e){a=Promise.reject(e)}const u=!0!==a&&(l=a)&&"object"==typeof l&&"function"==typeof l.then;var l;if(!0!==a&&!u&&!i)return!1;const m=e=>{e.then(e=>{o(e)},e=>{let r;r=e&&(e instanceof Error||"string"==typeof e.message)?e.message:"An unexpected error occurred",o({__mozWebExtensionPolyfillReject__:!0,message:r})}).catch(e=>{console.error("Failed to send onMessage rejected reply",e)})};return m(u?a:c),!0}),g=({reject:t,resolve:n},o)=>{e.runtime.lastError?e.runtime.lastError.message===r?n():t(e.runtime.lastError):o&&o.__mozWebExtensionPolyfillReject__?t(new Error(o.message)):n(o)},p=(e,r,t,...n)=>{if(n.lengthr.maxArgs)throw new Error(`Expected at most ${r.maxArgs} ${a(r.maxArgs)} for ${e}(), got ${n.length}`);return new Promise((e,r)=>{const o=g.bind(null,{resolve:e,reject:r});n.push(o),t.sendMessage(...n)})},d={runtime:{onMessage:l(m),onMessageExternal:l(m),sendMessage:p.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:p.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},h={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return n.privacy={network:{"*":h},services:{"*":h},websites:{"*":h}},u(e,d,n)};if("object"!=typeof chrome||!chrome||!chrome.runtime||!chrome.runtime.id)throw new Error("This script should only be loaded in a browser extension.");e.exports=n(chrome)}else e.exports=browser})?n.apply(r,o):n)||(e.exports=s)},function(e,r,t){"use strict";var n=t(3),o=t(14),s=t(36),a=t(20);function i(e){var r=new s(e),t=o(s.prototype.request,r);return n.extend(t,s.prototype,r),n.extend(t,r),t}var c=i(t(17));c.Axios=s,c.create=function(e){return i(a(c.defaults,e))},c.Cancel=t(21),c.CancelToken=t(49),c.isCancel=t(16),c.all=function(e){return Promise.all(e)},c.spread=t(50),e.exports=c,e.exports.default=c},function(e,r,t){"use strict";var n=t(3),o=t(15),s=t(37),a=t(38),i=t(20);function c(e){this.defaults=e,this.interceptors={request:new s,response:new s}}c.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=i(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var r=[a,void 0],t=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){r.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){r.push(e.fulfilled,e.rejected)}));r.length;)t=t.then(r.shift(),r.shift());return t},c.prototype.getUri=function(e){return e=i(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(r,t){return this.request(n.merge(t||{},{method:e,url:r}))}})),n.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(r,t,o){return this.request(n.merge(o||{},{method:e,url:r,data:t}))}})),e.exports=c},function(e,r,t){"use strict";var n=t(3);function o(){this.handlers=[]}o.prototype.use=function(e,r){return this.handlers.push({fulfilled:e,rejected:r}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){n.forEach(this.handlers,(function(r){null!==r&&e(r)}))},e.exports=o},function(e,r,t){"use strict";var n=t(3),o=t(39),s=t(16),a=t(17);function i(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return i(e),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(r){delete e.headers[r]})),(e.adapter||a.adapter)(e).then((function(r){return i(e),r.data=o(r.data,r.headers,e.transformResponse),r}),(function(r){return s(r)||(i(e),r&&r.response&&(r.response.data=o(r.response.data,r.response.headers,e.transformResponse))),Promise.reject(r)}))}},function(e,r,t){"use strict";var n=t(3);e.exports=function(e,r,t){return n.forEach(t,(function(t){e=t(e,r)})),e}},function(e,r,t){"use strict";var n=t(3);e.exports=function(e,r){n.forEach(e,(function(t,n){n!==r&&n.toUpperCase()===r.toUpperCase()&&(e[r]=t,delete e[n])}))}},function(e,r,t){"use strict";var n=t(19);e.exports=function(e,r,t){var o=t.config.validateStatus;!o||o(t.status)?e(t):r(n("Request failed with status code "+t.status,t.config,null,t.request,t))}},function(e,r,t){"use strict";e.exports=function(e,r,t,n,o){return e.config=r,t&&(e.code=t),e.request=n,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,r,t){"use strict";var n=t(44),o=t(45);e.exports=function(e,r){return e&&!n(r)?o(e,r):r}},function(e,r,t){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,r,t){"use strict";e.exports=function(e,r){return r?e.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):e}},function(e,r,t){"use strict";var n=t(3),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var r,t,s,a={};return e?(n.forEach(e.split("\n"),(function(e){if(s=e.indexOf(":"),r=n.trim(e.substr(0,s)).toLowerCase(),t=n.trim(e.substr(s+1)),r){if(a[r]&&o.indexOf(r)>=0)return;a[r]="set-cookie"===r?(a[r]?a[r]:[]).concat([t]):a[r]?a[r]+", "+t:t}})),a):a}},function(e,r,t){"use strict";var n=t(3);e.exports=n.isStandardBrowserEnv()?function(){var e,r=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");function o(e){var n=e;return r&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return e=o(window.location.href),function(r){var t=n.isString(r)?o(r):r;return t.protocol===e.protocol&&t.host===e.host}}():function(){return!0}},function(e,r,t){"use strict";var n=t(3);e.exports=n.isStandardBrowserEnv()?{write:function(e,r,t,o,s,a){var i=[];i.push(e+"="+encodeURIComponent(r)),n.isNumber(t)&&i.push("expires="+new Date(t).toGMTString()),n.isString(o)&&i.push("path="+o),n.isString(s)&&i.push("domain="+s),!0===a&&i.push("secure"),document.cookie=i.join("; ")},read:function(e){var r=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,r,t){"use strict";var n=t(21);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var r;this.promise=new Promise((function(e){r=e}));var t=this;e((function(e){t.reason||(t.reason=new n(e),r(t.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(r){e=r})),cancel:e}},e.exports=o},function(e,r,t){"use strict";e.exports=function(e){return function(r){return e.apply(null,r)}}}]); \ No newline at end of file +!function(e){var r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(r){return e[r]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=8)}([,,function(e,r,t){e.exports=t(33)},function(e,r,t){"use strict";var n=t(14),o=Object.prototype.toString;function s(e){return"[object Array]"===o.call(e)}function a(e){return void 0===e}function i(e){return null!==e&&"object"==typeof e}function c(e){return"[object Function]"===o.call(e)}function u(e,r){if(null!=e)if("object"!=typeof e&&(e=[e]),s(e))for(var t=0,n=e.length;t=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function g(e,r,t,n,o,s,a){try{var i=e[s](a),c=i.value}catch(e){return void t(e)}i.done?r(c):Promise.resolve(c).then(n,o)}function p(e){return function(){var r=this,t=arguments;return new Promise((function(n,o){var s=e.apply(r,t);function a(e){g(s,n,o,a,i,"next",e)}function i(e){g(s,n,o,a,i,"throw",e)}a(void 0)}))}}let d,h;function A(){return(A=p(o.a.mark((function e(r){var t,n,s,a,u,f;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.apiBody,n=r.hostUrl,e.prev=1,s=t.apikey,a=m(t,["apikey"]),e.next=5,i()({method:"POST",timeout:c.f,url:n+"/api/v2/links",headers:{"X-API-Key":s},data:l({},a)});case 5:return u=e.sent,f=u.data,e.abrupt("return",{error:!1,data:f});case 10:if(e.prev=10,e.t0=e.catch(1),!e.t0.response){e.next=19;break}if(401!==e.t0.response.status){e.next=15;break}return e.abrupt("return",{error:!0,message:"Error: Invalid API Key"});case 15:if(400!==e.t0.response.status||!Object.prototype.hasOwnProperty.call(e.t0.response.data,"error")){e.next=17;break}return e.abrupt("return",{error:!0,message:"Error: "+e.t0.response.data.error});case 17:if(404!==e.t0.response.status){e.next=19;break}return e.abrupt("return",{error:!0,message:"Error: This extension now uses API v2, please update your kutt.it instance."});case 19:if("ECONNABORTED"!==e.t0.code){e.next=21;break}return e.abrupt("return",{error:!0,message:"Error: Timed out"});case 21:return e.abrupt("return",{error:!0,message:"Error: Something went wrong"});case 22:case"end":return e.stop()}}),e,null,[[1,10]])})))).apply(this,arguments)}function x(e){let r=e.apikey,t=e.hostUrl;return i()({method:"GET",url:t+"/api/v2/users",timeout:c.b,headers:{"X-API-Key":r}})}function y(){return(y=p(o.a.mark((function e(r){var t,n,s,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.apikey,n=r.hostUrl,e.prev=1,e.next=4,x({apikey:t,hostUrl:n});case 4:return s=e.sent,a=s.data,e.abrupt("return",{error:!1,data:a});case 9:if(e.prev=9,e.t0=e.catch(1),!e.t0.response){e.next=15;break}if(401!==e.t0.response.status){e.next=14;break}return e.abrupt("return",{error:!0,message:"Error: Invalid API Key"});case 14:return e.abrupt("return",{error:!0,message:"Error: Something went wrong."});case 15:if("ECONNABORTED"!==e.t0.code){e.next=17;break}return e.abrupt("return",{error:!0,message:"Error: Timed out"});case 17:return e.abrupt("return",{error:!0,message:"Error: Requesting to server failed."});case 18:case"end":return e.stop()}}),e,null,[[1,9]])})))).apply(this,arguments)}function v(){return(v=p(o.a.mark((function e(r){var t,n,s,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.apikey,n=r.hostUrl,e.prev=1,e.next=4,i()({method:"GET",timeout:c.f,url:n+"/api/v2/links",params:{limit:c.d},headers:{"X-API-Key":t}});case 4:return s=e.sent,a=s.data,e.abrupt("return",{error:!1,data:a});case 9:if(e.prev=9,e.t0=e.catch(1),!e.t0.response){e.next=15;break}if(401!==e.t0.response.status){e.next=14;break}return e.abrupt("return",{error:!0,message:"Error: Invalid API Key"});case 14:return e.abrupt("return",{error:!0,message:"Error: Something went wrong."});case 15:if("ECONNABORTED"!==e.t0.code){e.next=17;break}return e.abrupt("return",{error:!0,message:"Error: Timed out"});case 17:return e.abrupt("return",{error:!0,message:"Error: Requesting to server failed."});case 18:case"end":return e.stop()}}),e,null,[[1,9]])})))).apply(this,arguments)}!function(e){e.hostDomain="kutt.it",e.hostUrl="https://kutt.it"}(d||(d={})),function(e){e.chrome="https://chrome.google.com/webstore/detail/kutt/pklakpjfiegjacoppcodencchehlfnpd/reviews",e.firefox="https://addons.mozilla.org/en-US/firefox/addon/kutt/reviews/"}(h||(h={})),s.browser.runtime.onMessage.addListener((e,r)=>{switch(e.action){case c.a:return function(e){return y.apply(this,arguments)}(e.params);case c.e:return function(e){return A.apply(this,arguments)}(e.params);case c.c:return function(e){return v.apply(this,arguments)}(e.params)}})},,function(e,r,t){e.exports=t(35)},,,,function(e,r,t){"use strict";e.exports=function(e,r){return function(){for(var t=new Array(arguments.length),n=0;n=200&&e<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){c.headers[e]=n.merge(s)})),e.exports=c}).call(this,t(24))},function(e,r,t){"use strict";var n=t(3),o=t(41),s=t(15),a=t(43),i=t(46),c=t(47),u=t(19);e.exports=function(e){return new Promise((function(r,l){var f=e.data,m=e.headers;n.isFormData(f)&&delete m["Content-Type"];var g=new XMLHttpRequest;if(e.auth){var p=e.auth.username||"",d=e.auth.password||"";m.Authorization="Basic "+btoa(p+":"+d)}var h=a(e.baseURL,e.url);if(g.open(e.method.toUpperCase(),s(h,e.params,e.paramsSerializer),!0),g.timeout=e.timeout,g.onreadystatechange=function(){if(g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))){var t="getAllResponseHeaders"in g?i(g.getAllResponseHeaders()):null,n={data:e.responseType&&"text"!==e.responseType?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:t,config:e,request:g};o(r,l,n),g=null}},g.onabort=function(){g&&(l(u("Request aborted",e,"ECONNABORTED",g)),g=null)},g.onerror=function(){l(u("Network Error",e,null,g)),g=null},g.ontimeout=function(){var r="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(r=e.timeoutErrorMessage),l(u(r,e,"ECONNABORTED",g)),g=null},n.isStandardBrowserEnv()){var A=t(48),x=(e.withCredentials||c(h))&&e.xsrfCookieName?A.read(e.xsrfCookieName):void 0;x&&(m[e.xsrfHeaderName]=x)}if("setRequestHeader"in g&&n.forEach(m,(function(e,r){void 0===f&&"content-type"===r.toLowerCase()?delete m[r]:g.setRequestHeader(r,e)})),n.isUndefined(e.withCredentials)||(g.withCredentials=!!e.withCredentials),e.responseType)try{g.responseType=e.responseType}catch(r){if("json"!==e.responseType)throw r}"function"==typeof e.onDownloadProgress&&g.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&g.upload&&g.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){g&&(g.abort(),l(e),g=null)})),void 0===f&&(f=null),g.send(f)}))}},function(e,r,t){"use strict";var n=t(42);e.exports=function(e,r,t,o,s){var a=new Error(e);return n(a,r,t,o,s)}},function(e,r,t){"use strict";var n=t(3);e.exports=function(e,r){r=r||{};var t={},o=["url","method","params","data"],s=["headers","auth","proxy"],a=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];n.forEach(o,(function(e){void 0!==r[e]&&(t[e]=r[e])})),n.forEach(s,(function(o){n.isObject(r[o])?t[o]=n.deepMerge(e[o],r[o]):void 0!==r[o]?t[o]=r[o]:n.isObject(e[o])?t[o]=n.deepMerge(e[o]):void 0!==e[o]&&(t[o]=e[o])})),n.forEach(a,(function(n){void 0!==r[n]?t[n]=r[n]:void 0!==e[n]&&(t[n]=e[n])}));var i=o.concat(s).concat(a),c=Object.keys(r).filter((function(e){return-1===i.indexOf(e)}));return n.forEach(c,(function(n){void 0!==r[n]?t[n]=r[n]:void 0!==e[n]&&(t[n]=e[n])})),t}},function(e,r,t){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},,,function(e,r){var t,n,o=e.exports={};function s(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===s||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:s}catch(e){t=s}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var c,u=[],l=!1,f=-1;function m(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&g())}function g(){if(!l){var e=i(m);l=!0;for(var r=u.length;r;){for(c=u,u=[];++f1)for(var t=1;t=0;--o){var s=this.tryEntries[o],a=s.completion;if("root"===s.tryLoc)return n("end");if(s.tryLoc<=this.prev){var i=t.call(s,"catchLoc"),c=t.call(s,"finallyLoc");if(i&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&t.call(o,"finallyLoc")&&this.prev=0;--r){var t=this.tryEntries[r];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),b(t),u}},catch:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var t=this.tryEntries[r];if(t.tryLoc===e){var n=t.completion;if("throw"===n.type){var o=n.arg;b(t)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,t){return this.delegate={iterator:E(e),resultName:r,nextLoc:t},"next"===this.method&&(this.arg=void 0),u}},e}(e.exports);try{regeneratorRuntime=n}catch(e){Function("r","regeneratorRuntime = r")(n)}},function(e,r,t){var n,o,s;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e],void 0===(s="function"==typeof(n=function(e){"use strict";if("undefined"==typeof browser||Object.getPrototypeOf(browser)!==Object.prototype){const r="The message port closed before a response was received.",t="Returning a Promise is the preferred way to send a reply from an onMessage/onMessageExternal listener, as the sendResponse will be removed from the specs (See https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/runtime/onMessage)",n=e=>{const n={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(0===Object.keys(n).length)throw new Error("api-metadata.json has not been included in browser-polyfill");class o extends WeakMap{constructor(e,r){super(r),this.createItem=e}get(e){return this.has(e)||this.set(e,this.createItem(e)),super.get(e)}}const s=(r,t)=>(...n)=>{e.runtime.lastError?r.reject(e.runtime.lastError):t.singleCallbackArg||n.length<=1&&!1!==t.singleCallbackArg?r.resolve(n[0]):r.resolve(n)},a=e=>1==e?"argument":"arguments",i=(e,r,t)=>new Proxy(r,{apply:(r,n,o)=>t.call(n,e,...o)});let c=Function.call.bind(Object.prototype.hasOwnProperty);const u=(e,r={},t={})=>{let n=Object.create(null),o={has:(r,t)=>t in e||t in n,get(o,l,f){if(l in n)return n[l];if(!(l in e))return;let m=e[l];if("function"==typeof m)if("function"==typeof r[l])m=i(e,e[l],r[l]);else if(c(t,l)){let r=((e,r)=>function(t,...n){if(n.lengthr.maxArgs)throw new Error(`Expected at most ${r.maxArgs} ${a(r.maxArgs)} for ${e}(), got ${n.length}`);return new Promise((o,a)=>{if(r.fallbackToNoCallback)try{t[e](...n,s({resolve:o,reject:a},r))}catch(s){console.warn(e+" API method doesn't seem to support the callback parameter, falling back to call it without a callback: ",s),t[e](...n),r.fallbackToNoCallback=!1,r.noCallback=!0,o()}else r.noCallback?(t[e](...n),o()):t[e](...n,s({resolve:o,reject:a},r))})})(l,t[l]);m=i(e,e[l],r)}else m=m.bind(e);else if("object"==typeof m&&null!==m&&(c(r,l)||c(t,l)))m=u(m,r[l],t[l]);else{if(!c(t,"*"))return Object.defineProperty(n,l,{configurable:!0,enumerable:!0,get:()=>e[l],set(r){e[l]=r}}),m;m=u(m,r[l],t["*"])}return n[l]=m,m},set:(r,t,o,s)=>(t in n?n[t]=o:e[t]=o,!0),defineProperty:(e,r,t)=>Reflect.defineProperty(n,r,t),deleteProperty:(e,r)=>Reflect.deleteProperty(n,r)},l=Object.create(e);return new Proxy(l,o)},l=e=>({addListener(r,t,...n){r.addListener(e.get(t),...n)},hasListener:(r,t)=>r.hasListener(e.get(t)),removeListener(r,t){r.removeListener(e.get(t))}});let f=!1;const m=new o(e=>"function"!=typeof e?e:function(r,n,o){let s,a,i=!1,c=new Promise(e=>{s=function(r){f||(console.warn(t,(new Error).stack),f=!0),i=!0,e(r)}});try{a=e(r,n,s)}catch(e){a=Promise.reject(e)}const u=!0!==a&&(l=a)&&"object"==typeof l&&"function"==typeof l.then;var l;if(!0!==a&&!u&&!i)return!1;const m=e=>{e.then(e=>{o(e)},e=>{let r;r=e&&(e instanceof Error||"string"==typeof e.message)?e.message:"An unexpected error occurred",o({__mozWebExtensionPolyfillReject__:!0,message:r})}).catch(e=>{console.error("Failed to send onMessage rejected reply",e)})};return m(u?a:c),!0}),g=({reject:t,resolve:n},o)=>{e.runtime.lastError?e.runtime.lastError.message===r?n():t(e.runtime.lastError):o&&o.__mozWebExtensionPolyfillReject__?t(new Error(o.message)):n(o)},p=(e,r,t,...n)=>{if(n.lengthr.maxArgs)throw new Error(`Expected at most ${r.maxArgs} ${a(r.maxArgs)} for ${e}(), got ${n.length}`);return new Promise((e,r)=>{const o=g.bind(null,{resolve:e,reject:r});n.push(o),t.sendMessage(...n)})},d={runtime:{onMessage:l(m),onMessageExternal:l(m),sendMessage:p.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:p.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},h={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return n.privacy={network:{"*":h},services:{"*":h},websites:{"*":h}},u(e,d,n)};if("object"!=typeof chrome||!chrome||!chrome.runtime||!chrome.runtime.id)throw new Error("This script should only be loaded in a browser extension.");e.exports=n(chrome)}else e.exports=browser})?n.apply(r,o):n)||(e.exports=s)},function(e,r,t){"use strict";var n=t(3),o=t(14),s=t(36),a=t(20);function i(e){var r=new s(e),t=o(s.prototype.request,r);return n.extend(t,s.prototype,r),n.extend(t,r),t}var c=i(t(17));c.Axios=s,c.create=function(e){return i(a(c.defaults,e))},c.Cancel=t(21),c.CancelToken=t(49),c.isCancel=t(16),c.all=function(e){return Promise.all(e)},c.spread=t(50),e.exports=c,e.exports.default=c},function(e,r,t){"use strict";var n=t(3),o=t(15),s=t(37),a=t(38),i=t(20);function c(e){this.defaults=e,this.interceptors={request:new s,response:new s}}c.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=i(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var r=[a,void 0],t=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){r.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){r.push(e.fulfilled,e.rejected)}));r.length;)t=t.then(r.shift(),r.shift());return t},c.prototype.getUri=function(e){return e=i(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(r,t){return this.request(n.merge(t||{},{method:e,url:r}))}})),n.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(r,t,o){return this.request(n.merge(o||{},{method:e,url:r,data:t}))}})),e.exports=c},function(e,r,t){"use strict";var n=t(3);function o(){this.handlers=[]}o.prototype.use=function(e,r){return this.handlers.push({fulfilled:e,rejected:r}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){n.forEach(this.handlers,(function(r){null!==r&&e(r)}))},e.exports=o},function(e,r,t){"use strict";var n=t(3),o=t(39),s=t(16),a=t(17);function i(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return i(e),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(r){delete e.headers[r]})),(e.adapter||a.adapter)(e).then((function(r){return i(e),r.data=o(r.data,r.headers,e.transformResponse),r}),(function(r){return s(r)||(i(e),r&&r.response&&(r.response.data=o(r.response.data,r.response.headers,e.transformResponse))),Promise.reject(r)}))}},function(e,r,t){"use strict";var n=t(3);e.exports=function(e,r,t){return n.forEach(t,(function(t){e=t(e,r)})),e}},function(e,r,t){"use strict";var n=t(3);e.exports=function(e,r){n.forEach(e,(function(t,n){n!==r&&n.toUpperCase()===r.toUpperCase()&&(e[r]=t,delete e[n])}))}},function(e,r,t){"use strict";var n=t(19);e.exports=function(e,r,t){var o=t.config.validateStatus;!o||o(t.status)?e(t):r(n("Request failed with status code "+t.status,t.config,null,t.request,t))}},function(e,r,t){"use strict";e.exports=function(e,r,t,n,o){return e.config=r,t&&(e.code=t),e.request=n,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,r,t){"use strict";var n=t(44),o=t(45);e.exports=function(e,r){return e&&!n(r)?o(e,r):r}},function(e,r,t){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,r,t){"use strict";e.exports=function(e,r){return r?e.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):e}},function(e,r,t){"use strict";var n=t(3),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var r,t,s,a={};return e?(n.forEach(e.split("\n"),(function(e){if(s=e.indexOf(":"),r=n.trim(e.substr(0,s)).toLowerCase(),t=n.trim(e.substr(s+1)),r){if(a[r]&&o.indexOf(r)>=0)return;a[r]="set-cookie"===r?(a[r]?a[r]:[]).concat([t]):a[r]?a[r]+", "+t:t}})),a):a}},function(e,r,t){"use strict";var n=t(3);e.exports=n.isStandardBrowserEnv()?function(){var e,r=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");function o(e){var n=e;return r&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return e=o(window.location.href),function(r){var t=n.isString(r)?o(r):r;return t.protocol===e.protocol&&t.host===e.host}}():function(){return!0}},function(e,r,t){"use strict";var n=t(3);e.exports=n.isStandardBrowserEnv()?{write:function(e,r,t,o,s,a){var i=[];i.push(e+"="+encodeURIComponent(r)),n.isNumber(t)&&i.push("expires="+new Date(t).toGMTString()),n.isString(o)&&i.push("path="+o),n.isString(s)&&i.push("domain="+s),!0===a&&i.push("secure"),document.cookie=i.join("; ")},read:function(e){var r=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,r,t){"use strict";var n=t(21);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var r;this.promise=new Promise((function(e){r=e}));var t=this;e((function(e){t.reason||(t.reason=new n(e),r(t.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(r){e=r})),cancel:e}},e.exports=o},function(e,r,t){"use strict";e.exports=function(e){return function(r){return e.apply(null,r)}}}]); \ No newline at end of file diff --git a/chrome/js/history.bundle.js b/chrome/js/history.bundle.js index 1a9fa2f..4f841a4 100644 --- a/chrome/js/history.bundle.js +++ b/chrome/js/history.bundle.js @@ -1,26 +1,26 @@ -!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=81)}([function(e,t,n){"use strict";e.exports=n(51)},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ke})),n.d(t,"b",(function(){return ae}));var r=n(13),o=n(0),a=n.n(o),i=(n(29),n(30)),l=n(31),u=n(23),s=n(22),c=n.n(s);function f(){return(f=Object.assign||function(e){for(var t=1;t1?t-1:0),r=1;r0?" Additional arguments: "+n.join(", "):""))}var S=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(b))return r}}(n),a=void 0!==o?o.nextSibling:null;r.setAttribute(b,"active"),r.setAttribute("data-styled-version","5.1.1");var i=k();return i&&r.setAttribute("nonce",i),n.insertBefore(r,a),r},T=function(){function e(e){var t=this.element=S(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&E(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var a=r;a=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,a=r;a=N&&(N=t+1),O.set(e,t),P.set(t,e)},L="style["+b+'][data-styled-version="5.1.1"]',z=new RegExp("^"+b+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),M=function(e,t,n){for(var r,o=n.split(","),a=0,i=o.length;a0&&(s+=e+",")})),r+=""+l+u+'{content:"'+s+'"}/*!sc*/\n'}}}return r}(this)},e}(),B=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},H=function(e){return B(5381,e)};var W=/^\s*\/\/.*$/gm;function V(e){var t,n,r,o=void 0===e?h:e,a=o.options,l=void 0===a?h:a,u=o.plugins,s=void 0===u?m:u,c=new i.a(l),f=[],d=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,a,i,l,u,s,c,f){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===s)return r+"/*|*/";break;case 3:switch(s){case 102:case 112:return e(o[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),p=function(e,r,o){return r>0&&-1!==o.slice(0,r).indexOf(n)&&o.slice(r-n.length,r)!==n?"."+t:e};function g(e,o,a,i){void 0===i&&(i="&");var l=e.replace(W,""),u=o&&a?a+" "+o+" { "+l+" }":l;return t=i,n=o,r=new RegExp("\\"+n+"\\b","g"),c(a||!o?"":o,u)}return c.use([].concat(s,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,p))},d,function(e){if(-2===e){var t=f;return f=[],t}}])),g.hash=s.length?s.reduce((function(e,t){return t.name||E(15),B(e,t.name)}),5381).toString():"",g}var q=a.a.createContext(),Q=(q.Consumer,a.a.createContext()),K=(Q.Consumer,new $),G=V();function Y(){return Object(o.useContext)(q)||K}function X(){return Object(o.useContext)(Q)||G}var Z=function(){function e(e,t){var n=this;this.inject=function(e){e.hasNameForId(n.id,n.name)||e.insertRules(n.id,n.name,G.apply(void 0,n.stringifyArgs))},this.toString=function(){return E(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.stringifyArgs=t}return e.prototype.getName=function(){return this.name},e}(),J=/([A-Z])/g,ee=/^ms-/;function te(e){return e.replace(J,"-$1").toLowerCase().replace(ee,"-ms-")}var ne=function(e){return null==e||!1===e||""===e},re=function e(t,n){var r=[];return Object.keys(t).forEach((function(n){if(!ne(t[n])){if(p(t[n]))return r.push.apply(r,e(t[n],n)),r;if(g(t[n]))return r.push(te(n)+":",t[n],";"),r;r.push(te(n)+": "+(o=n,(null==(a=t[n])||"boolean"==typeof a||""===a?"":"number"!=typeof a||0===a||o in l.a?String(a).trim():a+"px")+";"))}var o,a;return r})),n?[n+" {"].concat(r,["}"]):r};function oe(e,t,n){if(Array.isArray(e)){for(var r,o=[],a=0,i=e.length;a1?t-1:0),r=1;r1?t-1:0),r=1;r25?39:97))};function de(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=fe(t%52)+n;return(fe(t%52)+n).replace(ce,"$1-$2")}function pe(e){for(var t=0;t>>0);if(!t.hasNameForId(r,a)){var i=n(o,"."+a,void 0,r);t.insertRules(r,a,i)}return this.staticRulesId=a,a}for(var l=this.rules.length,u=B(this.baseHash,n.hash),s="",c=0;c>>0);if(!t.hasNameForId(r,m)){var h=n(s,"."+m,void 0,r);t.insertRules(r,m,h)}return m},e}(),he=(new Set,function(e,t,n){return void 0===n&&(n=h),e.theme!==n.theme&&e.theme||t||n.theme}),ge=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ye=/(^-|-$)/g;function ve(e){return e.replace(ge,"-").replace(ye,"")}function be(e){return"string"==typeof e&&!0}var we=function(e){return de(H(e)>>>0)};var xe=a.a.createContext();xe.Consumer;function ke(e){var t=Object(o.useContext)(xe),n=Object(o.useMemo)((function(){return function(e,t){return e?g(e)?e(t):Array.isArray(e)||"object"!=typeof e?E(8):t?f({},t,{},e):e:E(14)}(e.theme,t)}),[e.theme,t]);return e.children?a.a.createElement(xe.Provider,{value:n},e.children):null}var Ee={};function Se(e,t,n){var r=e.attrs,a=e.componentStyle,i=e.defaultProps,l=e.foldedComponentIds,s=e.shouldForwardProp,c=e.styledComponentId,d=e.target;Object(o.useDebugValue)(c);var p=function(e,t,n){void 0===e&&(e=h);var r=f({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,a,i=e;for(t in g(i)&&(i=i(r)),i)r[t]=o[t]="className"===t?(n=o[t],a=i[t],n&&a?n+" "+a:n||a):i[t]})),[r,o]}(he(t,Object(o.useContext)(xe),i)||h,t,r),m=p[0],y=p[1],v=function(e,t,n,r){var a=Y(),i=X(),l=e.isStatic&&!t?e.generateAndInjectStyles(h,a,i):e.generateAndInjectStyles(n,a,i);return Object(o.useDebugValue)(l),l}(a,r.length>0,m),b=n,w=y.$as||t.$as||y.as||t.as||d,x=be(w),k=y!==t?f({},t,{},y):t,E=s||x&&u.a,S={};for(var T in k)"$"!==T[0]&&"as"!==T&&("forwardedAs"===T?S.as=k[T]:E&&!E(T,u.a)||(S[T]=k[T]));return t.style&&y.style!==t.style&&(S.style=f({},t.style,{},y.style)),S.className=Array.prototype.concat(l,c,v!==c?v:null,t.className,y.className).filter(Boolean).join(" "),S.ref=b,Object(o.createElement)(w,S)}function Te(e,t,n){var r=v(e),o=!be(e),i=t.displayName,l=void 0===i?function(e){return be(e)?"styled."+e:"Styled("+y(e)+")"}(e):i,u=t.componentId,s=void 0===u?function(e,t){var n="string"!=typeof e?"sc":ve(e);Ee[n]=(Ee[n]||0)+1;var r=n+"-"+we(n+Ee[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):u,d=t.attrs,p=void 0===d?m:d,h=t.displayName&&t.componentId?ve(t.displayName)+"-"+t.componentId:t.componentId||s,g=r&&e.attrs?Array.prototype.concat(e.attrs,p).filter(Boolean):p,b=t.shouldForwardProp;r&&e.shouldForwardProp&&(b=b?function(n,r){return e.shouldForwardProp(n,r)&&t.shouldForwardProp(n,r)}:e.shouldForwardProp);var w,x=new me(r?e.componentStyle.rules.concat(n):n,h),k=function(e,t){return Se(w,e,t)};return k.displayName=l,(w=a.a.forwardRef(k)).attrs=g,w.componentStyle=x,w.displayName=l,w.shouldForwardProp=b,w.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):m,w.styledComponentId=h,w.target=r?e.target:e,w.withComponent=function(e){var r=t.componentId,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(t,["componentId"]),a=r&&r+"-"+(be(e)?e:ve(y(e)));return Te(e,f({},o,{attrs:g,componentId:a}),n)},Object.defineProperty(w,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?se({},e.defaultProps,t):t}}),w.toString=function(){return"."+w.styledComponentId},o&&c()(w,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,self:!0,styledComponentId:!0,target:!0,withComponent:!0}),w}var Ae=function(e){return function e(t,n,o){if(void 0===o&&(o=h),!Object(r.isValidElementType)(n))return E(1,String(n));var a=function(){return t(n,o,ae.apply(void 0,arguments))};return a.withConfig=function(r){return e(t,n,f({},o,{},r))},a.attrs=function(r){return e(t,n,f({},o,{attrs:Array.prototype.concat(o.attrs,r).filter(Boolean)}))},a}(Te,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Ae[e]=Ae(e)}));t.c=Ae}).call(this,n(24))},function(e,t,n){e.exports=n(33)},function(e,t,n){"use strict";var r=n(14),o=Object.prototype.toString;function a(e){return"[object Array]"===o.call(e)}function i(e){return void 0===e}function l(e){return null!==e&&"object"==typeof e}function u(e){return"[object Function]"===o.call(e)}function s(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),a(e))for(var n=0,r=e.length;no.a.createElement("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"#ecc94b",stroke:"#ecc94b",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",className:"star_svg__feather star_svg__feather-star"},o.a.createElement("path",{d:"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"}));var i=o.a.memo(a);const l=()=>o.a.createElement("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"eye-off_svg__feather eye-off_svg__feather-eye-off"},o.a.createElement("path",{d:"M17.94 17.94A10.07 10.07 0 0112 20c-7 0-11-8-11-8a18.45 18.45 0 015.06-5.94M9.9 4.24A9.12 9.12 0 0112 4c7 0 11 8 11 8a18.5 18.5 0 01-2.16 3.19m-6.72-1.07a3 3 0 11-4.24-4.24M1 1l22 22"}));var u=o.a.memo(l);const s=()=>o.a.createElement("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",className:"star_svg__feather star_svg__feather-star"},o.a.createElement("path",{d:"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"}));var c=o.a.memo(s);const f=()=>o.a.createElement("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",className:"settings_svg__feather settings_svg__feather-settings"},o.a.createElement("circle",{cx:12,cy:12,r:3}),o.a.createElement("path",{d:"M19.4 15a1.65 1.65 0 00.33 1.82l.06.06a2 2 0 010 2.83 2 2 0 01-2.83 0l-.06-.06a1.65 1.65 0 00-1.82-.33 1.65 1.65 0 00-1 1.51V21a2 2 0 01-2 2 2 2 0 01-2-2v-.09A1.65 1.65 0 009 19.4a1.65 1.65 0 00-1.82.33l-.06.06a2 2 0 01-2.83 0 2 2 0 010-2.83l.06-.06a1.65 1.65 0 00.33-1.82 1.65 1.65 0 00-1.51-1H3a2 2 0 01-2-2 2 2 0 012-2h.09A1.65 1.65 0 004.6 9a1.65 1.65 0 00-.33-1.82l-.06-.06a2 2 0 010-2.83 2 2 0 012.83 0l.06.06a1.65 1.65 0 001.82.33H9a1.65 1.65 0 001-1.51V3a2 2 0 012-2 2 2 0 012 2v.09a1.65 1.65 0 001 1.51 1.65 1.65 0 001.82-.33l.06-.06a2 2 0 012.83 0 2 2 0 010 2.83l-.06.06a1.65 1.65 0 00-.33 1.82V9a1.65 1.65 0 001.51 1H21a2 2 0 012 2 2 2 0 01-2 2h-.09a1.65 1.65 0 00-1.51 1z"}));var d=o.a.memo(f);const p=()=>o.a.createElement("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",className:"refresh-ccw_svg__feather refresh-ccw_svg__feather-refresh-ccw"},o.a.createElement("path",{d:"M1 4v6h6M23 20v-6h-6"}),o.a.createElement("path",{d:"M20.49 9A9 9 0 005.64 5.64L1 10m22 4l-4.64 4.36A9 9 0 013.51 15"}));var m=o.a.memo(p);n(57);const h=()=>o.a.createElement(o.a.Fragment,null,o.a.createElement("svg",{id:"spinner",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",stroke:"#b8b8b8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",className:"feather feather-loader",viewBox:"0 0 24 24"},o.a.createElement("path",{d:"M12 2L12 6"}),o.a.createElement("path",{d:"M12 18L12 22"}),o.a.createElement("path",{d:"M4.93 4.93L7.76 7.76"}),o.a.createElement("path",{d:"M16.24 16.24L19.07 19.07"}),o.a.createElement("path",{d:"M2 12L6 12"}),o.a.createElement("path",{d:"M18 12L22 12"}),o.a.createElement("path",{d:"M4.93 19.07L7.76 16.24"}),o.a.createElement("path",{d:"M16.24 7.76L19.07 4.93"})));var g=o.a.memo(h);const y=()=>o.a.createElement("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",className:"maximize_svg__feather maximize_svg__feather-maximize"},o.a.createElement("path",{d:"M8 3H5a2 2 0 00-2 2v3m18 0V5a2 2 0 00-2-2h-3m0 18h3a2 2 0 002-2v-3M3 16v3a2 2 0 002 2h3"}));var v=o.a.memo(y);const b=()=>o.a.createElement("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",className:"x_svg__feather x_svg__feather-x"},o.a.createElement("path",{d:"M18 6L6 18M6 6l12 12"}));var w=o.a.memo(b);const x=()=>o.a.createElement("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",className:"copy_svg__feather copy_svg__feather-copy"},o.a.createElement("rect",{x:9,y:9,width:13,height:13,rx:2,ry:2}),o.a.createElement("path",{d:"M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"}));var k=o.a.memo(x);const E=()=>o.a.createElement("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",className:"check_svg__feather check_svg__feather-check"},o.a.createElement("path",{d:"M20 6L9 17l-5-5"}));var S=o.a.memo(E);const T=()=>o.a.createElement("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",className:"zap_svg__feather zap_svg__feather-zap"},o.a.createElement("path",{d:"M13 2L3 14h9l-1 8 10-12h-9l1-8z"}));var A=o.a.memo(T);const C=()=>o.a.createElement("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"eye_svg__feather eye_svg__feather-eye"},o.a.createElement("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"}),o.a.createElement("circle",{cx:12,cy:12,r:3}));function _(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const O={copy:k,cross:w,eye:o.a.memo(C),"eye-closed":u,qrcode:v,refresh:m,settings:d,spinner:g,"star-yellow":i,"star-white":c,tick:S,zap:A};var P=e=>{let t=e.name,n=_(e,["name"]);return o.a.createElement("div",n,o.a.createElement(O[t]))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return v})),n.d(t,"c",(function(){return y}));var r=n(0),o=n.n(r);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{let t=e.children;const n=a(Object(r.useReducer)(m,f),2),i=n[0],l=n[1];return o.a.createElement(o.a.Fragment,null,o.a.createElement(d.Provider,{value:i},o.a.createElement(p.Provider,{value:l},t)))}},function(e,t,n){"use strict";n.r(t),n.d(t,"Kutt",(function(){return h})),n.d(t,"StoreLinks",(function(){return g}));var r=n(2),o=n.n(r),a=n(5),i=n(10),l=n.n(i),u=n(4);function s(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 c(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p(e,t,n,r,o,a,i){try{var l=e[a](i),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}function m(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){p(a,r,o,i,l,"next",e)}function l(e){p(a,r,o,i,l,"throw",e)}i(void 0)}))}}let h,g;function y(){return(y=m(o.a.mark((function e(t){var n,r,a,i,s,f;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.apiBody,r=t.hostUrl,e.prev=1,a=n.apikey,i=d(n,["apikey"]),e.next=5,l()({method:"POST",timeout:u.f,url:r+"/api/v2/links",headers:{"X-API-Key":a},data:c({},i)});case 5:return s=e.sent,f=s.data,e.abrupt("return",{error:!1,data:f});case 10:if(e.prev=10,e.t0=e.catch(1),!e.t0.response){e.next=19;break}if(401!==e.t0.response.status){e.next=15;break}return e.abrupt("return",{error:!0,message:"Error: Invalid API Key"});case 15:if(400!==e.t0.response.status||!Object.prototype.hasOwnProperty.call(e.t0.response.data,"error")){e.next=17;break}return e.abrupt("return",{error:!0,message:"Error: "+e.t0.response.data.error});case 17:if(404!==e.t0.response.status){e.next=19;break}return e.abrupt("return",{error:!0,message:"Error: This extension now uses API v2, please update your kutt.it instance."});case 19:if("ECONNABORTED"!==e.t0.code){e.next=21;break}return e.abrupt("return",{error:!0,message:"Error: Timed out"});case 21:return e.abrupt("return",{error:!0,message:"Error: Something went wrong"});case 22:case"end":return e.stop()}}),e,null,[[1,10]])})))).apply(this,arguments)}function v(e){let t=e.apikey,n=e.hostUrl;return l()({method:"GET",url:n+"/api/v2/users",timeout:u.b,headers:{"X-API-Key":t}})}function b(){return(b=m(o.a.mark((function e(t){var n,r,a,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.apikey,r=t.hostUrl,e.prev=1,e.next=4,v({apikey:n,hostUrl:r});case 4:return a=e.sent,i=a.data,e.abrupt("return",{error:!1,data:i});case 9:if(e.prev=9,e.t0=e.catch(1),!e.t0.response){e.next=15;break}if(401!==e.t0.response.status){e.next=14;break}return e.abrupt("return",{error:!0,message:"Error: Invalid API Key"});case 14:return e.abrupt("return",{error:!0,message:"Error: Something went wrong."});case 15:if("ECONNABORTED"!==e.t0.code){e.next=17;break}return e.abrupt("return",{error:!0,message:"Error: Timed out"});case 17:return e.abrupt("return",{error:!0,message:"Error: Requesting to server failed."});case 18:case"end":return e.stop()}}),e,null,[[1,9]])})))).apply(this,arguments)}function w(){return(w=m(o.a.mark((function e(t){var n,r,a,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.apikey,r=t.hostUrl,e.prev=1,e.next=4,l()({method:"GET",timeout:u.f,url:r+"/api/v2/links",params:{limit:u.d},headers:{"X-API-Key":n}});case 4:return a=e.sent,i=a.data,e.abrupt("return",{error:!1,data:i});case 9:if(e.prev=9,e.t0=e.catch(1),!e.t0.response){e.next=15;break}if(401!==e.t0.response.status){e.next=14;break}return e.abrupt("return",{error:!0,message:"Error: Invalid API Key"});case 14:return e.abrupt("return",{error:!0,message:"Error: Something went wrong."});case 15:if("ECONNABORTED"!==e.t0.code){e.next=17;break}return e.abrupt("return",{error:!0,message:"Error: Timed out"});case 17:return e.abrupt("return",{error:!0,message:"Error: Requesting to server failed."});case 18:case"end":return e.stop()}}),e,null,[[1,9]])})))).apply(this,arguments)}!function(e){e.hostDomain="kutt.it",e.hostUrl="https://kutt.it"}(h||(h={})),function(e){e.chrome="https://chrome.google.com/webstore/detail/kutt/pklakpjfiegjacoppcodencchehlfnpd/reviews",e.firefox="https://addons.mozilla.org/en-US/firefox/addon/kutt/reviews/"}(g||(g={})),a.browser.runtime.onMessage.addListener((e,t)=>{switch(e.action){case u.a:return function(e){return b.apply(this,arguments)}(e.params);case u.e:return function(e){return y.apply(this,arguments)}(e.params);case u.c:return function(e){return w.apply(this,arguments)}(e.params)}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return b})),n.d(t,"c",(function(){return v}));var r=n(0),o=n.n(r),a=n(8);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n{let t=e.children;const n=i(Object(r.useReducer)(h,d),2),a=n[0],l=n[1];return o.a.createElement(o.a.Fragment,null,o.a.createElement(p.Provider,{value:a},o.a.createElement(m.Provider,{value:l},t)))}},function(e,t,n){e.exports=n(35)},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"d",(function(){return p})),n.d(t,"c",(function(){return h})),n.d(t,"b",(function(){return g}));var r=n(2),o=n.n(r),a=n(5);function i(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 l(e){for(var t=1;t=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(a)})),e.exports=u}).call(this,n(24))},function(e,t,n){"use strict";var r=n(3),o=n(41),a=n(15),i=n(43),l=n(46),u=n(47),s=n(19);e.exports=function(e){return new Promise((function(t,c){var f=e.data,d=e.headers;r.isFormData(f)&&delete d["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",h=e.auth.password||"";d.Authorization="Basic "+btoa(m+":"+h)}var g=i(e.baseURL,e.url);if(p.open(e.method.toUpperCase(),a(g,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in p?l(p.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:n,config:e,request:p};o(t,c,r),p=null}},p.onabort=function(){p&&(c(s("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){c(s("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),c(s(t,e,"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var y=n(48),v=(e.withCredentials||u(g))&&e.xsrfCookieName?y.read(e.xsrfCookieName):void 0;v&&(d[e.xsrfHeaderName]=v)}if("setRequestHeader"in p&&r.forEach(d,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete d[t]:p.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),e.responseType)try{p.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){p&&(p.abort(),c(e),p=null)})),void 0===f&&(f=null),p.send(f)}))}},function(e,t,n){"use strict";var r=n(42);e.exports=function(e,t,n,o,a){var i=new Error(e);return r(i,t,n,o,a)}},function(e,t,n){"use strict";var r=n(3);e.exports=function(e,t){t=t||{};var n={},o=["url","method","params","data"],a=["headers","auth","proxy"],i=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];r.forEach(o,(function(e){void 0!==t[e]&&(n[e]=t[e])})),r.forEach(a,(function(o){r.isObject(t[o])?n[o]=r.deepMerge(e[o],t[o]):void 0!==t[o]?n[o]=t[o]:r.isObject(e[o])?n[o]=r.deepMerge(e[o]):void 0!==e[o]&&(n[o]=e[o])})),r.forEach(i,(function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])}));var l=o.concat(a).concat(i),u=Object.keys(t).filter((function(e){return-1===l.indexOf(e)}));return r.forEach(u,(function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])})),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){"use strict";var r=n(13),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function u(e){return r.isMemo(e)?i:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=i;var s=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=p(n);o&&o!==m&&e(t,o,r)}var i=c(n);f&&(i=i.concat(f(n)));for(var l=u(t),h=u(n),g=0;g1)for(var n=1;n{let t=e.children;return a.a.createElement(a.a.Fragment,null,a.a.createElement(i,null,t))}},function(e,t){e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),u=0;ur&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(h,"$1"+e.trim());case 58:return e.trim()+t.replace(h,"$1"+e.trim());default:if(0<1*n&&0u.charCodeAt(8))break;case 115:i=i.replace(u,"-webkit-"+u)+";"+i;break;case 207:case 102:i=i.replace(u,"-webkit-"+(102l.charCodeAt(0)&&(l=l.trim()),l=[l],0p)&&(F=(B=B.replace(" ",":")).length),0e._css3);t.a=e=>a.a.createElement(u,l({},e,{_css3:[{position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},Object(r.b)(["top:50%;left:50%;transform:translate(-50%,-50%);"])]}),a.a.createElement(i.a,{name:"spinner"}))},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag";function l(e,t,n,r){var o=t&&t.prototype instanceof c?t:c,a=Object.create(o.prototype),i=new k(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(o,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw a;return S()}for(n.method=o,n.arg=a;;){var i=n.delegate;if(i){var l=b(i,n);if(l){if(l===s)continue;return l}}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 c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===s)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,i),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var s={};function c(){}function f(){}function d(){}var p={};p[o]=function(){return this};var m=Object.getPrototypeOf,h=m&&m(m(E([])));h&&h!==t&&n.call(h,o)&&(p=h);var g=d.prototype=c.prototype=Object.create(p);function y(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function v(e,t){var r;this._invoke=function(o,a){function i(){return new t((function(r,i){!function r(o,a,i,l){var s=u(e[o],e,a);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,i,l)}),(function(e){r("throw",e,i,l)})):t.resolve(f).then((function(e){c.value=e,i(c)}),(function(e){return r("throw",e,i,l)}))}l(s.arg)}(o,a,r,i)}))}return r=r?r.then(i,i):i()}}function b(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,b(e,t),"throw"===t.method))return s;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,s;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,s):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,s)}function w(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 x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function E(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--o){var a=this.tryEntries[o],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),s}},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;x(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),s}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){var r,o,a;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,o=[e],void 0===(a="function"==typeof(r=function(e){"use strict";if("undefined"==typeof browser||Object.getPrototypeOf(browser)!==Object.prototype){const t="The message port closed before a response was received.",n="Returning a Promise is the preferred way to send a reply from an onMessage/onMessageExternal listener, as the sendResponse will be removed from the specs (See https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/API/runtime/onMessage)",r=e=>{const r={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(0===Object.keys(r).length)throw new Error("api-metadata.json has not been included in browser-polyfill");class o extends WeakMap{constructor(e,t){super(t),this.createItem=e}get(e){return this.has(e)||this.set(e,this.createItem(e)),super.get(e)}}const a=(t,n)=>(...r)=>{e.runtime.lastError?t.reject(e.runtime.lastError):n.singleCallbackArg||r.length<=1&&!1!==n.singleCallbackArg?t.resolve(r[0]):t.resolve(r)},i=e=>1==e?"argument":"arguments",l=(e,t,n)=>new Proxy(t,{apply:(t,r,o)=>n.call(r,e,...o)});let u=Function.call.bind(Object.prototype.hasOwnProperty);const s=(e,t={},n={})=>{let r=Object.create(null),o={has:(t,n)=>n in e||n in r,get(o,c,f){if(c in r)return r[c];if(!(c in e))return;let d=e[c];if("function"==typeof d)if("function"==typeof t[c])d=l(e,e[c],t[c]);else if(u(n,c)){let t=((e,t)=>function(n,...r){if(r.lengtht.maxArgs)throw new Error(`Expected at most ${t.maxArgs} ${i(t.maxArgs)} for ${e}(), got ${r.length}`);return new Promise((o,i)=>{if(t.fallbackToNoCallback)try{n[e](...r,a({resolve:o,reject:i},t))}catch(a){console.warn(e+" API method doesn't seem to support the callback parameter, falling back to call it without a callback: ",a),n[e](...r),t.fallbackToNoCallback=!1,t.noCallback=!0,o()}else t.noCallback?(n[e](...r),o()):n[e](...r,a({resolve:o,reject:i},t))})})(c,n[c]);d=l(e,e[c],t)}else d=d.bind(e);else if("object"==typeof d&&null!==d&&(u(t,c)||u(n,c)))d=s(d,t[c],n[c]);else{if(!u(n,"*"))return Object.defineProperty(r,c,{configurable:!0,enumerable:!0,get:()=>e[c],set(t){e[c]=t}}),d;d=s(d,t[c],n["*"])}return r[c]=d,d},set:(t,n,o,a)=>(n in r?r[n]=o:e[n]=o,!0),defineProperty:(e,t,n)=>Reflect.defineProperty(r,t,n),deleteProperty:(e,t)=>Reflect.deleteProperty(r,t)},c=Object.create(e);return new Proxy(c,o)},c=e=>({addListener(t,n,...r){t.addListener(e.get(n),...r)},hasListener:(t,n)=>t.hasListener(e.get(n)),removeListener(t,n){t.removeListener(e.get(n))}});let f=!1;const d=new o(e=>"function"!=typeof e?e:function(t,r,o){let a,i,l=!1,u=new Promise(e=>{a=function(t){f||(console.warn(n,(new Error).stack),f=!0),l=!0,e(t)}});try{i=e(t,r,a)}catch(e){i=Promise.reject(e)}const s=!0!==i&&(c=i)&&"object"==typeof c&&"function"==typeof c.then;var c;if(!0!==i&&!s&&!l)return!1;const d=e=>{e.then(e=>{o(e)},e=>{let t;t=e&&(e instanceof Error||"string"==typeof e.message)?e.message:"An unexpected error occurred",o({__mozWebExtensionPolyfillReject__:!0,message:t})}).catch(e=>{console.error("Failed to send onMessage rejected reply",e)})};return d(s?i:u),!0}),p=({reject:n,resolve:r},o)=>{e.runtime.lastError?e.runtime.lastError.message===t?r():n(e.runtime.lastError):o&&o.__mozWebExtensionPolyfillReject__?n(new Error(o.message)):r(o)},m=(e,t,n,...r)=>{if(r.lengtht.maxArgs)throw new Error(`Expected at most ${t.maxArgs} ${i(t.maxArgs)} for ${e}(), got ${r.length}`);return new Promise((e,t)=>{const o=p.bind(null,{resolve:e,reject:t});r.push(o),n.sendMessage(...r)})},h={runtime:{onMessage:c(d),onMessageExternal:c(d),sendMessage:m.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:m.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},g={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return r.privacy={network:{"*":g},services:{"*":g},websites:{"*":g}},s(e,h,r)};if("object"!=typeof chrome||!chrome||!chrome.runtime||!chrome.runtime.id)throw new Error("This script should only be loaded in a browser extension.");e.exports=r(chrome)}else e.exports=browser})?r.apply(t,o):r)||(e.exports=a)},function(e,t,n){"use strict";var r=n(3),o=n(14),a=n(36),i=n(20);function l(e){var t=new a(e),n=o(a.prototype.request,t);return r.extend(n,a.prototype,t),r.extend(n,t),n}var u=l(n(17));u.Axios=a,u.create=function(e){return l(i(u.defaults,e))},u.Cancel=n(21),u.CancelToken=n(49),u.isCancel=n(16),u.all=function(e){return Promise.all(e)},u.spread=n(50),e.exports=u,e.exports.default=u},function(e,t,n){"use strict";var r=n(3),o=n(15),a=n(37),i=n(38),l=n(20);function u(e){this.defaults=e,this.interceptors={request:new a,response:new a}}u.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=l(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[i,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},u.prototype.getUri=function(e){return e=l(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(r.merge(n||{},{method:e,url:t}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,o){return this.request(r.merge(o||{},{method:e,url:t,data:n}))}})),e.exports=u},function(e,t,n){"use strict";var r=n(3);function o(){this.handlers=[]}o.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},function(e,t,n){"use strict";var r=n(3),o=n(39),a=n(16),i=n(17);function l(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||i.adapter)(e).then((function(t){return l(e),t.data=o(t.data,t.headers,e.transformResponse),t}),(function(t){return a(t)||(l(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(3);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},function(e,t,n){"use strict";var r=n(3);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(19);e.exports=function(e,t,n){var o=n.config.validateStatus;!o||o(n.status)?e(n):t(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(44),o=n(45);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(3),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,a,i={};return e?(r.forEach(e.split("\n"),(function(e){if(a=e.indexOf(":"),t=r.trim(e.substr(0,a)).toLowerCase(),n=r.trim(e.substr(a+1)),t){if(i[t]&&o.indexOf(t)>=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([n]):i[t]?i[t]+", "+n:n}})),i):i}},function(e,t,n){"use strict";var r=n(3);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(3);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,a,i){var l=[];l.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),r.isString(o)&&l.push("path="+o),r.isString(a)&&l.push("domain="+a),!0===i&&l.push("secure"),document.cookie=l.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var r=n(21);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";var r=n(26),o="function"==typeof Symbol&&Symbol.for,a=o?Symbol.for("react.element"):60103,i=o?Symbol.for("react.portal"):60106,l=o?Symbol.for("react.fragment"):60107,u=o?Symbol.for("react.strict_mode"):60108,s=o?Symbol.for("react.profiler"):60114,c=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,m=o?Symbol.for("react.memo"):60115,h=o?Symbol.for("react.lazy"):60116,g="function"==typeof Symbol&&Symbol.iterator;function y(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nP.length&&P.push(e)}function I(e,t,n){return null==e?0:function e(t,n,r,o){var l=typeof t;"undefined"!==l&&"boolean"!==l||(t=null);var u=!1;if(null===t)u=!0;else switch(l){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case a:case i:u=!0}}if(u)return r(o,t,""===n?"."+R(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var s=0;s