From 14d0a028c54a4e8c27300f10b54c759cda0d49ed Mon Sep 17 00:00:00 2001 From: Rayan Tighiouart Date: Sun, 7 Jul 2024 17:17:36 -0700 Subject: [PATCH] Updates --- asset-manifest.json | 6 +++--- index.html | 2 +- static/js/{main.004790ee.js => main.6d2f3b0d.js} | 6 +++--- ...004790ee.js.LICENSE.txt => main.6d2f3b0d.js.LICENSE.txt} | 0 static/js/{main.004790ee.js.map => main.6d2f3b0d.js.map} | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) rename static/js/{main.004790ee.js => main.6d2f3b0d.js} (69%) rename static/js/{main.004790ee.js.LICENSE.txt => main.6d2f3b0d.js.LICENSE.txt} (100%) rename static/js/{main.004790ee.js.map => main.6d2f3b0d.js.map} (67%) diff --git a/asset-manifest.json b/asset-manifest.json index 0fe80a7..6270963 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,7 +1,7 @@ { "files": { "main.css": "/static/css/main.6e0bddde.css", - "main.js": "/static/js/main.004790ee.js", + "main.js": "/static/js/main.6d2f3b0d.js", "static/media/rayan.jpg": "/static/media/rayan.b5190f193c20b89e168d.jpg", "static/media/greedyants.png": "/static/media/greedyants.c8e97a7c539ebe9e19b1.png", "static/media/social.jpeg": "/static/media/social.b93eff3c7ee2fd0fa6b5.jpeg", @@ -14,10 +14,10 @@ "static/media/cdz.svg": "/static/media/cdz.1706f69a9fae37323603e3794e83e8ee.svg", "index.html": "/index.html", "main.6e0bddde.css.map": "/static/css/main.6e0bddde.css.map", - "main.004790ee.js.map": "/static/js/main.004790ee.js.map" + "main.6d2f3b0d.js.map": "/static/js/main.6d2f3b0d.js.map" }, "entrypoints": [ "static/css/main.6e0bddde.css", - "static/js/main.004790ee.js" + "static/js/main.6d2f3b0d.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index b3d6060..2ae18fe 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Rayan's Portfolio
\ No newline at end of file +Rayan's Portfolio
\ No newline at end of file diff --git a/static/js/main.004790ee.js b/static/js/main.6d2f3b0d.js similarity index 69% rename from static/js/main.004790ee.js rename to static/js/main.6d2f3b0d.js index c09321e..ee05b83 100644 --- a/static/js/main.004790ee.js +++ b/static/js/main.6d2f3b0d.js @@ -1,3 +1,3 @@ -/*! For license information please see main.004790ee.js.LICENSE.txt */ -(()=>{var e={3542:(e,t,r)=>{"use strict";var n,o=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,r,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let o of s(t))c.call(e,o)||o===r||i(e,o,{get:()=>t[o],enumerable:!(n=a(t,o))||n.enumerable});return e},d={};((e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})})(d,{createAppAuth:()=>O,createOAuthUserAuth:()=>P.createOAuthUserAuth}),e.exports=(n=d,u(i({},"__esModule",{value:!0}),n));var p=r(3975),h=r(1422),f=r(8630),m=r(7780),g=(((e,t,r)=>{r=null!=e?o(l(e)):{},u(!t&&e&&e.__esModule?r:i(r,"default",{value:e,enumerable:!0}),e)})(r(8630)),r(7591));async function v(e){let{appId:t,privateKey:r,timeDifference:n}=e;try{const e=await(0,g.githubAppJwt)({id:+t,privateKey:r,now:n&&Math.floor(Date.now()/1e3)+n});return{type:"app",token:e.token,appId:e.appId,expiresAt:new Date(1e3*e.expiration).toISOString()}}catch(o){throw"-----BEGIN RSA PRIVATE KEY-----"===r?new Error("The 'privateKey` option contains only the first line '-----BEGIN RSA PRIVATE KEY-----'. If you are setting it using a `.env` file, make sure it is set on a single line with newlines replaced by '\n'"):o}}var y=r(267);function b(e){let{installationId:t,permissions:r={},repositoryIds:n=[],repositoryNames:o=[]}=e;const i=Object.keys(r).sort().map((e=>"read"===r[e]?e:"".concat(e,"!"))).join(",");return[t,n.sort().join(","),o.join(","),i].filter(Boolean).join("|")}function w(e){let{installationId:t,token:r,createdAt:n,expiresAt:o,repositorySelection:i,permissions:a,repositoryIds:s,repositoryNames:l,singleFileName:c}=e;return Object.assign({type:"token",tokenType:"installation",token:r,installationId:t,permissions:a,createdAt:n,expiresAt:o,repositorySelection:i},s?{repositoryIds:s}:null,l?{repositoryNames:l}:null,c?{singleFileName:c}:null)}async function k(e,t,r){const n=Number(t.installationId||e.installationId);if(!n)throw new Error("[@octokit/auth-app] installationId option is required for installation authentication.");if(t.factory){const{type:r,factory:n,oauthApp:o,...i}={...e,...t};return n(i)}const o=Object.assign({installationId:n},t);if(!t.refresh){const t=await async function(e,t){const r=b(t),n=await e.get(r);if(!n)return;const[o,i,a,s,l,c]=n.split("|");return{token:o,createdAt:i,expiresAt:a,permissions:t.permissions||l.split(/,/).reduce(((e,t)=>(/!$/.test(t)?e[t.slice(0,-1)]="write":e[t]="read",e)),{}),repositoryIds:t.repositoryIds,repositoryNames:t.repositoryNames,singleFileName:c,repositorySelection:s}}(e.cache,o);if(t){const{token:e,createdAt:r,expiresAt:o,permissions:i,repositoryIds:a,repositoryNames:s,singleFileName:l,repositorySelection:c}=t;return w({installationId:n,token:e,createdAt:r,expiresAt:o,permissions:i,repositorySelection:c,repositoryIds:a,repositoryNames:s,singleFileName:l})}}const i=await v(e),a=r||e.request,{data:{token:s,expires_at:l,repositories:c,permissions:u,repository_selection:d,single_file:p}}=await a("POST /app/installations/{installation_id}/access_tokens",{installation_id:n,repository_ids:t.repositoryIds,repositories:t.repositoryNames,permissions:t.permissions,mediaType:{previews:["machine-man"]},headers:{authorization:"bearer ".concat(i.token)}}),h=u||{},f=d||"all",m=c?c.map((e=>e.id)):void 0,g=c?c.map((e=>e.name)):void 0,y=(new Date).toISOString();return await async function(e,t,r){const n=b(t),o=t.permissions?"":Object.keys(r.permissions).map((e=>"".concat(e).concat("write"===r.permissions[e]?"!":""))).join(","),i=[r.token,r.createdAt,r.expiresAt,r.repositorySelection,o,r.singleFileName].join("|");await e.set(n,i)}(e.cache,o,{token:s,createdAt:y,expiresAt:l,repositorySelection:f,permissions:h,repositoryIds:m,repositoryNames:g,singleFileName:p}),w({installationId:n,token:s,createdAt:y,expiresAt:l,repositorySelection:f,permissions:h,repositoryIds:m,repositoryNames:g,singleFileName:p})}async function x(e,t){switch(t.type){case"app":return v(e);case"oauth":e.log.warn(new m.Deprecation('[@octokit/auth-app] {type: "oauth"} is deprecated. Use {type: "oauth-app"} instead'));case"oauth-app":return e.oauthApp({type:"oauth-app"});case"installation":return k(e,{...t,type:"installation"});case"oauth-user":return e.oauthApp(t);default:throw new Error("Invalid auth type: ".concat(t.type))}}var _=r(7556);r(998);var E=function(e){const t=e.map((e=>e.split("/").map((e=>e.startsWith("{")?"(?:.+?)":e)).join("/"))),r="^(?:".concat(t.map((e=>"(?:".concat(e,")"))).join("|"),")$");return new RegExp(r,"i")}(["/app","/app/hook/config","/app/hook/deliveries","/app/hook/deliveries/{delivery_id}","/app/hook/deliveries/{delivery_id}/attempts","/app/installations","/app/installations/{installation_id}","/app/installations/{installation_id}/access_tokens","/app/installations/{installation_id}/suspended","/marketplace_listing/accounts/{account_id}","/marketplace_listing/plan","/marketplace_listing/plans","/marketplace_listing/plans/{plan_id}/accounts","/marketplace_listing/stubbed/accounts/{account_id}","/marketplace_listing/stubbed/plan","/marketplace_listing/stubbed/plans","/marketplace_listing/stubbed/plans/{plan_id}/accounts","/orgs/{org}/installation","/repos/{owner}/{repo}/installation","/users/{username}/installation"]);var S=5e3;async function T(e,t,r,n){const o=t.endpoint.merge(r,n),i=o.url;if(/\/login\/oauth\/access_token$/.test(i))return t(o);if(function(e){return!!e&&E.test(e.split("?")[0])}(i.replace(t.endpoint.DEFAULTS.baseUrl,""))){const{token:r}=await v(e);let n;o.headers.authorization="bearer ".concat(r);try{n=await t(o)}catch(l){if(function(e){return!(e.message.match(/'Expiration time' claim \('exp'\) must be a numeric value representing the future time at which the assertion expires/)||e.message.match(/'Issued at' claim \('iat'\) must be an Integer representing the time that the assertion was issued/))}(l))throw l;if("undefined"===typeof l.response.headers.date)throw l;const r=Math.floor((Date.parse(l.response.headers.date)-Date.parse((new Date).toString()))/1e3);e.log.warn(l.message),e.log.warn("[@octokit/auth-app] GitHub API time and system time are different by ".concat(r," seconds. Retrying request with the difference accounted for."));const{token:n}=await v({...e,timeDifference:r});return o.headers.authorization="bearer ".concat(n),t(o)}return n}if((0,_.requiresBasicAuth)(i)){const r=await e.oauthApp({type:"oauth-app"});return o.headers.authorization=r.headers.authorization,t(o)}const{token:a,createdAt:s}=await k(e,{},t);return o.headers.authorization="token ".concat(a),C(e,t,o,s)}async function C(e,t,r,n){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;const i=+new Date-+new Date(n);try{return await t(r)}catch(a){if(401!==a.status)throw a;if(i>=S)throw o>0&&(a.message="After ".concat(o," retries within ").concat(i/1e3,"s of creating the installation access token, the response remains 401. At this point, the cause may be an authentication problem or a system outage. Please check https://www.githubstatus.com for status information")),a;++o;const s=1e3*o;return e.log.warn("[@octokit/auth-app] Retrying after 401 response to account for token replication delay (retry: ".concat(o,", wait: ").concat(s/1e3,"s)")),await new Promise((e=>setTimeout(e,s))),C(e,t,r,n,o)}}var A="6.0.4",P=r(7556);function O(e){if(!e.appId)throw new Error("[@octokit/auth-app] appId option is required");if(!Number.isFinite(+e.appId))throw new Error("[@octokit/auth-app] appId option must be a number or numeric string");if(!e.privateKey)throw new Error("[@octokit/auth-app] privateKey option is required");if("installationId"in e&&!e.installationId)throw new Error("[@octokit/auth-app] installationId is set to a falsy value");const t=Object.assign({warn:console.warn.bind(console)},e.log),r=e.request||h.request.defaults({headers:{"user-agent":"octokit-auth-app.js/".concat(A," ").concat((0,p.getUserAgent)())}}),n=Object.assign({request:r,cache:new y.LRUCache({max:15e3,ttl:354e4})},e,e.installationId?{installationId:Number(e.installationId)}:{},{log:t,oauthApp:(0,f.createOAuthAppAuth)({clientType:"github-app",clientId:e.clientId||"",clientSecret:e.clientSecret||"",request:r})});return Object.assign(x.bind(null,n),{hook:T.bind(null,n)})}},8630:(e,t,r)=>{"use strict";r.r(t),r.d(t,{createOAuthAppAuth:()=>d,createOAuthUserAuth:()=>s.createOAuthUserAuth});var n=r(3975),o=r(1422),i=r(3514),a=r.n(i),s=r(7556);async function l(e,t){if("oauth-app"===t.type)return{type:"oauth-app",clientId:e.clientId,clientSecret:e.clientSecret,clientType:e.clientType,headers:{authorization:"basic ".concat(a()("".concat(e.clientId,":").concat(e.clientSecret)))}};if("factory"in t){const{type:r,...n}={...t,...e};return t.factory(n)}const r={clientId:e.clientId,clientSecret:e.clientSecret,request:e.request,...t};return(e.clientType,await(0,s.createOAuthUserAuth)({...r,clientType:e.clientType}))()}async function c(e,t,r,n){let o=t.endpoint.merge(r,n);if(/\/login\/(oauth\/access_token|device\/code)$/.test(o.url))return t(o);if("github-app"===e.clientType&&!(0,s.requiresBasicAuth)(o.url))throw new Error('[@octokit/auth-oauth-app] GitHub Apps cannot use their client ID/secret for basic authentication for endpoints other than "/applications/{client_id}/**". "'.concat(o.method," ").concat(o.url,'" is not supported.'));const i=a()("".concat(e.clientId,":").concat(e.clientSecret));o.headers.authorization="basic ".concat(i);try{return await t(o)}catch(l){if(401!==l.status)throw l;throw l.message='[@octokit/auth-oauth-app] "'.concat(o.method," ").concat(o.url,'" does not support clientId/clientSecret basic authentication.'),l}}var u="7.0.1";function d(e){const t=Object.assign({request:o.request.defaults({headers:{"user-agent":"octokit-auth-oauth-app.js/".concat(u," ").concat((0,n.getUserAgent)())}}),clientType:"oauth-app"},e);return Object.assign(l.bind(null,t),{hook:c.bind(null,t)})}},7556:(e,t,r)=>{"use strict";r.r(t),r.d(t,{createOAuthUserAuth:()=>A,requiresBasicAuth:()=>T});var n=r(3975),o=r(1422),i=r(719),a=r(7322);async function s(e,t){const r=function(e,t){if(!0===t.refresh)return!1;if(!e.authentication)return!1;if("github-app"===e.clientType)return e.authentication;const r=e.authentication,n=("scopes"in t&&t.scopes||e.scopes).join(" "),o=r.scopes.join(" ");return n===o&&r}(e,t.auth);if(r)return r;const{data:n}=await(0,i.q)({clientType:e.clientType,clientId:e.clientId,request:t.request||e.request,scopes:t.auth.scopes||e.scopes});await e.onVerification(n);const o=await c(t.request||e.request,e.clientId,e.clientType,n);return e.authentication=o,o}async function l(e){await new Promise((t=>setTimeout(t,1e3*e)))}async function c(e,t,r,n){try{const o={clientId:t,request:e,code:n.device_code},{authentication:i}="oauth-app"===r?await(0,a.B)({...o,clientType:"oauth-app"}):await(0,a.B)({...o,clientType:"github-app"});return{type:"token",tokenType:"oauth",...i}}catch(o){if(!o.response)throw o;const i=o.response.data.error;if("authorization_pending"===i)return await l(n.interval),c(e,t,r,n);if("slow_down"===i)return await l(n.interval+5),c(e,t,r,n);throw o}}async function u(e,t){return s(e,{auth:t})}async function d(e,t,r,n){let o=t.endpoint.merge(r,n);if(/\/login\/(oauth\/access_token|device\/code)$/.test(o.url))return t(o);const{token:i}=await s(e,{request:t,auth:{type:"oauth"}});return o.headers.authorization="token ".concat(i),t(o)}var p="6.0.1";function h(e){const t=e.request||o.request.defaults({headers:{"user-agent":"octokit-auth-oauth-device.js/".concat(p," ").concat((0,n.getUserAgent)())}}),{request:r=t,...i}=e,a="github-app"===e.clientType?{...i,clientType:"github-app",request:r}:{...i,clientType:"oauth-app",request:r,scopes:e.scopes||[]};if(!e.clientId)throw new Error('[@octokit/auth-oauth-device] "clientId" option must be set (https://github.com/octokit/auth-oauth-device.js#usage)');if(!e.onVerification)throw new Error('[@octokit/auth-oauth-device] "onVerification" option must be a function (https://github.com/octokit/auth-oauth-device.js#usage)');return Object.assign(u.bind(null,a),{hook:d.bind(null,a)})}var f=r(2527),m=r(4107),g=r(4468),v=r(8871),y=r(7033),b=r(2829),w=r(3514),k=r.n(w),x="4.0.1";async function _(e){if("code"in e.strategyOptions){const{authentication:t}=await(0,f.b)({clientId:e.clientId,clientSecret:e.clientSecret,clientType:e.clientType,onTokenCreated:e.onTokenCreated,...e.strategyOptions,request:e.request});return{type:"token",tokenType:"oauth",...t}}if("onVerification"in e.strategyOptions){const t=h({clientType:e.clientType,clientId:e.clientId,onTokenCreated:e.onTokenCreated,...e.strategyOptions,request:e.request}),r=await t({type:"oauth"});return{clientSecret:e.clientSecret,...r}}if("token"in e.strategyOptions)return{type:"token",tokenType:"oauth",clientId:e.clientId,clientSecret:e.clientSecret,clientType:e.clientType,onTokenCreated:e.onTokenCreated,...e.strategyOptions};throw new Error("[@octokit/auth-oauth-user] Invalid strategy options")}async function E(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.authentication||(e.authentication=(e.clientType,await _(e))),e.authentication.invalid)throw new Error("[@octokit/auth-oauth-user] Token is invalid");const r=e.authentication;if("expiresAt"in r&&("refresh"===t.type||new Date(r.expiresAt)3&&void 0!==arguments[3]?arguments[3]:{};const o=t.endpoint.merge(r,n);if(/\/login\/(oauth\/access_token|device\/code)$/.test(o.url))return t(o);if(T(o.url)){const r=k()("".concat(e.clientId,":").concat(e.clientSecret));return o.headers.authorization="basic ".concat(r),t(o)}const{token:i}=(e.clientType,await E({...e,request:t}));return o.headers.authorization="token "+i,t(o)}function A(e){let{clientId:t,clientSecret:r,clientType:i="oauth-app",request:a=o.request.defaults({headers:{"user-agent":"octokit-auth-oauth-app.js/".concat(x," ").concat((0,n.getUserAgent)())}}),onTokenCreated:s,...l}=e;const c=Object.assign({clientType:i,clientId:t,clientSecret:r,onTokenCreated:s,strategyOptions:l,request:a});return Object.assign(E.bind(null,c),{hook:C.bind(null,c)})}A.VERSION=x},7015:(e,t,r)=>{"use strict";async function n(e){return{type:"unauthenticated",reason:e}}r.r(t),r.d(t,{createUnauthenticatedAuth:()=>a});var o=/\babuse\b/i;async function i(e,t,r,n){const i=t.endpoint.merge(r,n);return t(i).catch((t=>{if(404===t.status)throw t.message="Not found. May be due to lack of authentication. Reason: ".concat(e),t;if(function(e){return 403===e.status&&!!e.response&&"0"===e.response.headers["x-ratelimit-remaining"]}(t))throw t.message="API rate limit exceeded. This maybe caused by the lack of authentication. Reason: ".concat(e),t;if(function(e){return 403===e.status&&o.test(e.message)}(t))throw t.message="You have triggered an abuse detection mechanism. This maybe caused by the lack of authentication. Reason: ".concat(e),t;if(401===t.status)throw t.message='Unauthorized. "'.concat(i.method," ").concat(i.url,'" failed most likely due to lack of authentication. Reason: ').concat(e),t;throw t.status>=400&&t.status<500&&(t.message=t.message.replace(/\.?$/,". May be caused by lack of authentication (".concat(e,")."))),t}))}var a=function(e){if(!e||!e.reason)throw new Error("[@octokit/auth-unauthenticated] No reason passed to createUnauthenticatedAuth");return Object.assign(n.bind(null,e.reason),{hook:i.bind(null,e.reason)})}},7538:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Octokit:()=>_});var n=r(3975),o=r(2568),i=r(1422);var a=class extends Error{constructor(e,t,r){super("Request failed due to following response errors:\n"+r.errors.map((e=>" - ".concat(e.message))).join("\n")),this.request=e,this.headers=t,this.response=r,this.name="GraphqlResponseError",this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},s=["method","baseUrl","url","headers","request","query","mediaType"],l=["query","method","url"],c=/\/api\/v3\/?$/;function u(e,t){const r=e.defaults(t);return Object.assign(((e,t)=>function(e,t,r){if(r){if("string"===typeof t&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(const e in r)if(l.includes(e))return Promise.reject(new Error('[@octokit/graphql] "'.concat(e,'" cannot be used as variable name')))}const n="string"===typeof t?Object.assign({query:t},r):t,o=Object.keys(n).reduce(((e,t)=>s.includes(t)?(e[t]=n[t],e):(e.variables||(e.variables={}),e.variables[t]=n[t],e)),{}),i=n.baseUrl||e.endpoint.DEFAULTS.baseUrl;return c.test(i)&&(o.url=i.replace(c,"/api/graphql")),e(o).then((e=>{if(e.data.errors){const t={};for(const r of Object.keys(e.headers))t[r]=e.headers[r];throw new a(o,t,e.data)}return e.data.data}))}(r,e,t)),{defaults:u.bind(null,r),endpoint:r.endpoint})}u(i.request,{headers:{"user-agent":"octokit-graphql.js/".concat("7.0.2"," ").concat((0,n.getUserAgent)())},method:"POST",url:"/graphql"});var d=/^v1\./,p=/^ghs_/,h=/^ghu_/;async function f(e){const t=3===e.split(/\./).length,r=d.test(e)||p.test(e),n=h.test(e);return{type:"token",token:e,tokenType:t?"app":r?"installation":n?"user-to-server":"oauth"}}async function m(e,t,r,n){const o=t.endpoint.merge(r,n);return o.headers.authorization=function(e){return 3===e.split(/\./).length?"bearer ".concat(e):"token ".concat(e)}(e),t(o)}var g,v=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if("string"!==typeof e)throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(f.bind(null,e),{hook:m.bind(null,e)})},y="5.1.0",b=()=>{},w=console.warn.bind(console),k=console.error.bind(console),x="octokit-core.js/".concat(y," ").concat((0,n.getUserAgent)()),_=(g=class{static defaults(e){return class extends(this){constructor(){const t=(arguments.length<=0?void 0:arguments[0])||{};super("function"!==typeof e?Object.assign({},e,t,t.userAgent&&e.userAgent?{userAgent:"".concat(t.userAgent," ").concat(e.userAgent)}:null):e(t))}}}static plugin(){var e;const t=this.plugins;return e=class extends(this){},(()=>{for(var r=arguments.length,n=new Array(r),o=0;o!t.includes(e))))})(),e}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=new o.Collection,r={baseUrl:i.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};var n;if(r.headers["user-agent"]=e.userAgent?"".concat(e.userAgent," ").concat(x):x,e.baseUrl&&(r.baseUrl=e.baseUrl),e.previews&&(r.mediaType.previews=e.previews),e.timeZone&&(r.headers["time-zone"]=e.timeZone),this.request=i.request.defaults(r),this.graphql=(n=this.request,u(n,{method:"POST",url:"/graphql"})).defaults(r),this.log=Object.assign({debug:b,info:b,warn:w,error:k},e.log),this.hook=t,e.authStrategy){const{authStrategy:r,...n}=e,o=r(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:n},e.auth));t.wrap("request",o.hook),this.auth=o}else if(e.auth){const r=v(e.auth);t.wrap("request",r.hook),this.auth=r}else this.auth=async()=>({type:"unauthenticated"});const a=this.constructor;for(let o=0;o{"use strict";var n,o,i=Object.create,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,c=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,d=(e,t,r,n)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let o of l(t))u.call(e,o)||o===r||a(e,o,{get:()=>t[o],enumerable:!(n=s(t,o))||n.enumerable});return e},p=(e,t,r)=>(r=null!=e?i(c(e)):{},d(!t&&e&&e.__esModule?r:a(r,"default",{value:e,enumerable:!0}),e)),h={};((e,t)=>{for(var r in t)a(e,r,{get:t[r],enumerable:!0})})(h,{OAuthApp:()=>X,createAWSLambdaAPIGatewayV2Handler:()=>K,createNodeMiddleware:()=>$,createWebWorkerHandler:()=>Y,handleRequest:()=>q,sendNodeResponse:()=>H,unknownRouteResponse:()=>V}),e.exports=(o=h,d(a({},"__esModule",{value:!0}),o));var f=r(8630),m="6.1.0";function g(e,t,r){if(Array.isArray(t))for(const n of t)g(e,n,r);else e.eventHandlers[t]||(e.eventHandlers[t]=[]),e.eventHandlers[t].push(r)}var v=r(7538),y=r(3975),b=v.Octokit.defaults({userAgent:"octokit-oauth-app.js/".concat(m," ").concat((0,y.getUserAgent)())}),w=r(7556);async function k(e,t){const{name:r,action:n}=t;if(e.eventHandlers["".concat(r,".").concat(n)])for(const o of e.eventHandlers["".concat(r,".").concat(n)])await o(t);if(e.eventHandlers[r])for(const o of e.eventHandlers[r])await o(t)}async function x(e,t){return e.octokit.auth({type:"oauth-user",...t,async factory(t){const r=new e.Octokit({authStrategy:w.createOAuthUserAuth,auth:t}),n=await r.auth({type:"get"});return await k(e,{name:"token",action:"created",token:n.token,scopes:n.scopes,authentication:n,octokit:r}),r}})}var _=p(r(4272));function E(e,t){var r,n,o;const i={clientId:e.clientId,request:e.octokit.request,...t,allowSignup:null!==(r=e.allowSignup)&&void 0!==r?r:t.allowSignup,redirectUrl:null!==(n=t.redirectUrl)&&void 0!==n?n:e.redirectUrl,scopes:null!==(o=t.scopes)&&void 0!==o?o:e.defaultScopes};return _.getWebFlowAuthorizationUrl({clientType:e.clientType,...i})}var S=p(r(8630));async function T(e,t){const r=await e.octokit.auth({type:"oauth-user",...t});return await k(e,{name:"token",action:"created",token:r.token,scopes:r.scopes,authentication:r,octokit:new e.Octokit({authStrategy:S.createOAuthUserAuth,auth:{clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:r.token,scopes:r.scopes,refreshToken:r.refreshToken,expiresAt:r.expiresAt,refreshTokenExpiresAt:r.refreshTokenExpiresAt}})}),{authentication:r}}var C=p(r(4272));async function A(e,t){const r=await C.checkToken({clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,request:e.octokit.request,...t});return Object.assign(r.authentication,{type:"token",tokenType:"oauth"}),r}var P=p(r(4272)),O=r(7556);async function j(e,t){const r={clientId:e.clientId,clientSecret:e.clientSecret,request:e.octokit.request,...t};if("oauth-app"===e.clientType){const t=await P.resetToken({clientType:"oauth-app",...r}),n=Object.assign(t.authentication,{type:"token",tokenType:"oauth"});return await k(e,{name:"token",action:"reset",token:t.authentication.token,scopes:t.authentication.scopes||void 0,authentication:n,octokit:new e.Octokit({authStrategy:O.createOAuthUserAuth,auth:{clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:t.authentication.token,scopes:t.authentication.scopes}})}),{...t,authentication:n}}const n=await P.resetToken({clientType:"github-app",...r}),o=Object.assign(n.authentication,{type:"token",tokenType:"oauth"});return await k(e,{name:"token",action:"reset",token:n.authentication.token,authentication:o,octokit:new e.Octokit({authStrategy:O.createOAuthUserAuth,auth:{clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:n.authentication.token}})}),{...n,authentication:o}}var R=p(r(4272)),z=r(7556);async function F(e,t){if("oauth-app"===e.clientType)throw new Error("[@octokit/oauth-app] app.refreshToken() is not supported for OAuth Apps");const r=await R.refreshToken({clientType:"github-app",clientId:e.clientId,clientSecret:e.clientSecret,request:e.octokit.request,refreshToken:t.refreshToken}),n=Object.assign(r.authentication,{type:"token",tokenType:"oauth"});return await k(e,{name:"token",action:"refreshed",token:r.authentication.token,authentication:n,octokit:new e.Octokit({authStrategy:z.createOAuthUserAuth,auth:{clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:r.authentication.token}})}),{...r,authentication:n}}var I=p(r(4272)),D=r(7556);async function M(e,t){if("oauth-app"===e.clientType)throw new Error("[@octokit/oauth-app] app.scopeToken() is not supported for OAuth Apps");const r=await I.scopeToken({clientType:"github-app",clientId:e.clientId,clientSecret:e.clientSecret,request:e.octokit.request,...t}),n=Object.assign(r.authentication,{type:"token",tokenType:"oauth"});return await k(e,{name:"token",action:"scoped",token:r.authentication.token,authentication:n,octokit:new e.Octokit({authStrategy:D.createOAuthUserAuth,auth:{clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:r.authentication.token}})}),{...r,authentication:n}}var L=p(r(4272)),N=r(7015);async function B(e,t){const r={clientId:e.clientId,clientSecret:e.clientSecret,request:e.octokit.request,...t},n="oauth-app"===e.clientType?await L.deleteToken({clientType:"oauth-app",...r}):await L.deleteToken({clientType:"github-app",...r});return await k(e,{name:"token",action:"deleted",token:t.token,octokit:new e.Octokit({authStrategy:N.createUnauthenticatedAuth,auth:{reason:'Handling "token.deleted" event. The access for the token has been revoked.'}})}),n}var U=p(r(4272)),G=r(7015);async function W(e,t){const r={clientId:e.clientId,clientSecret:e.clientSecret,request:e.octokit.request,...t},n="oauth-app"===e.clientType?await U.deleteAuthorization({clientType:"oauth-app",...r}):await U.deleteAuthorization({clientType:"github-app",...r});return await k(e,{name:"token",action:"deleted",token:t.token,octokit:new e.Octokit({authStrategy:G.createUnauthenticatedAuth,auth:{reason:'Handling "token.deleted" event. The access for the token has been revoked.'}})}),await k(e,{name:"authorization",action:"deleted",token:t.token,octokit:new e.Octokit({authStrategy:G.createUnauthenticatedAuth,auth:{reason:'Handling "authorization.deleted" event. The access for the app has been revoked.'}})}),n}function V(e){return{status:404,headers:{"content-type":"application/json"},text:JSON.stringify({error:"Unknown route: ".concat(e.method," ").concat(e.url)})}}async function q(e,t,r){let{pathPrefix:n="/api/github/oauth"}=t;if("OPTIONS"===r.method)return{status:200,headers:{"access-control-allow-origin":"*","access-control-allow-methods":"*","access-control-allow-headers":"Content-Type, User-Agent, Authorization"}};let{pathname:o}=new URL(r.url,"http://localhost");if(!o.startsWith("".concat(n,"/")))return;o=o.slice(n.length+1);const i=[r.method,o].join(" "),a={getLogin:"GET login",getCallback:"GET callback",createToken:"POST token",getToken:"GET token",patchToken:"PATCH token",patchRefreshToken:"PATCH refresh-token",scopeToken:"POST token/scoped",deleteToken:"DELETE token",deleteGrant:"DELETE grant"};if(!Object.values(a).includes(i))return V(r);let s;try{const e=await r.text();s=e?JSON.parse(e):{}}catch(v){return{status:400,headers:{"content-type":"application/json","access-control-allow-origin":"*"},text:JSON.stringify({error:"[@octokit/oauth-app] request error"})}}const{searchParams:l}=new URL(r.url,"http://localhost"),c=Object.fromEntries(l),u=r.headers;try{var d;if(i===a.getLogin){const{url:t}=e.getWebFlowAuthorizationUrl({state:c.state,scopes:c.scopes?c.scopes.split(","):void 0,allowSignup:c.allowSignup?"true"===c.allowSignup:void 0,redirectUrl:c.redirectUrl});return{status:302,headers:{location:t}}}if(i===a.getCallback){if(c.error)throw new Error("[@octokit/oauth-app] ".concat(c.error," ").concat(c.error_description));if(!c.code)throw new Error('[@octokit/oauth-app] "code" parameter is required');const{authentication:{token:t}}=await e.createToken({code:c.code});return{status:200,headers:{"content-type":"text/html"},text:"

Token created successfully

\n\n

Your token is: ".concat(t,". Copy it now as it cannot be shown again.

")}}if(i===a.createToken){const{code:t,redirectUrl:r}=s;if(!t)throw new Error('[@octokit/oauth-app] "code" parameter is required');const n=await e.createToken({code:t,redirectUrl:r});return delete n.authentication.clientSecret,{status:201,headers:{"content-type":"application/json","access-control-allow-origin":"*"},text:JSON.stringify(n)}}if(i===a.getToken){var p;const t=null===(p=u.authorization)||void 0===p?void 0:p.substr(6);if(!t)throw new Error('[@octokit/oauth-app] "Authorization" header is required');const r=await e.checkToken({token:t});return delete r.authentication.clientSecret,{status:200,headers:{"content-type":"application/json","access-control-allow-origin":"*"},text:JSON.stringify(r)}}if(i===a.patchToken){var h;const t=null===(h=u.authorization)||void 0===h?void 0:h.substr(6);if(!t)throw new Error('[@octokit/oauth-app] "Authorization" header is required');const r=await e.resetToken({token:t});return delete r.authentication.clientSecret,{status:200,headers:{"content-type":"application/json","access-control-allow-origin":"*"},text:JSON.stringify(r)}}if(i===a.patchRefreshToken){var f;if(!(null===(f=u.authorization)||void 0===f?void 0:f.substr(6)))throw new Error('[@octokit/oauth-app] "Authorization" header is required');const{refreshToken:t}=s;if(!t)throw new Error("[@octokit/oauth-app] refreshToken must be sent in request body");const r=await e.refreshToken({refreshToken:t});return delete r.authentication.clientSecret,{status:200,headers:{"content-type":"application/json","access-control-allow-origin":"*"},text:JSON.stringify(r)}}if(i===a.scopeToken){var m;const t=null===(m=u.authorization)||void 0===m?void 0:m.substr(6);if(!t)throw new Error('[@octokit/oauth-app] "Authorization" header is required');const r=await e.scopeToken({token:t,...s});return delete r.authentication.clientSecret,{status:200,headers:{"content-type":"application/json","access-control-allow-origin":"*"},text:JSON.stringify(r)}}if(i===a.deleteToken){var g;const t=null===(g=u.authorization)||void 0===g?void 0:g.substr(6);if(!t)throw new Error('[@octokit/oauth-app] "Authorization" header is required');return await e.deleteToken({token:t}),{status:204,headers:{"access-control-allow-origin":"*"}}}const t=null===(d=u.authorization)||void 0===d?void 0:d.substr(6);if(!t)throw new Error('[@octokit/oauth-app] "Authorization" header is required');return await e.deleteAuthorization({token:t}),{status:204,headers:{"access-control-allow-origin":"*"}}}catch(v){return{status:400,headers:{"content-type":"application/json","access-control-allow-origin":"*"},text:JSON.stringify({error:v.message})}}}function H(e,t){t.writeHead(e.status,e.headers),t.end(e.text)}function $(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return async function(r,n,o){const i=await function(e){const{method:t,url:r,headers:n}=e;return{method:t,url:r,headers:n,text:async function(){return await new Promise(((t,r)=>{let n=[];e.on("error",r).on("data",(e=>n.push(e))).on("end",(()=>t(Buffer.concat(n).toString())))}))}}}(r),a=await q(e,t,i);return a?(H(a,n),!0):(null===o||void 0===o||o(),!1)}}function Y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return async function(r){const n=await function(e){const t=Object.fromEntries(e.headers.entries());return{method:e.method,url:e.url,headers:t,text:()=>e.text()}}(r),o=await q(e,t,n);return o?function(e){return new Response(e.text,{status:e.status,headers:e.headers})}(o):void 0}}function K(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return async function(r){const n=function(e){const{method:t}=e.requestContext.http;let r=e.rawPath;const{stage:n}=e.requestContext;return r.startsWith("/"+n)&&(r=r.substring(n.length+1)),e.rawQueryString&&(r+="?"+e.rawQueryString),{method:t,url:r,headers:e.headers,text:async()=>e.body||""}}(r),o=await q(e,t,n);return o?{statusCode:(i=o).status,headers:i.headers,body:i.text}:void 0;var i}}var X=((n=class{static defaults(e){return class extends(this){constructor(){super({...e,...arguments.length<=0?void 0:arguments[0]})}}}constructor(e){const t=e.Octokit||b;this.type=e.clientType||"oauth-app";const r=new t({authStrategy:f.createOAuthAppAuth,auth:{clientType:this.type,clientId:e.clientId,clientSecret:e.clientSecret}}),n={clientType:this.type,clientId:e.clientId,clientSecret:e.clientSecret,defaultScopes:e.defaultScopes||[],allowSignup:e.allowSignup,baseUrl:e.baseUrl,redirectUrl:e.redirectUrl,log:e.log,Octokit:t,octokit:r,eventHandlers:{}};this.on=g.bind(null,n),this.octokit=r,this.getUserOctokit=x.bind(null,n),this.getWebFlowAuthorizationUrl=E.bind(null,n),this.createToken=T.bind(null,n),this.checkToken=A.bind(null,n),this.resetToken=j.bind(null,n),this.refreshToken=F.bind(null,n),this.scopeToken=M.bind(null,n),this.deleteToken=B.bind(null,n),this.deleteAuthorization=W.bind(null,n)}}).VERSION=m,n)},4468:(e,t,r)=>{"use strict";r.d(t,{S:()=>a});var n=r(1422),o=r(3514),i=r.n(o);async function a(e){const t=e.request||n.request,r=await t("POST /applications/{client_id}/token",{headers:{authorization:"basic ".concat(i()("".concat(e.clientId,":").concat(e.clientSecret)))},client_id:e.clientId,access_token:e.token}),o={clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:e.token,scopes:r.data.scopes};return r.data.expires_at&&(o.expiresAt=r.data.expires_at),"github-app"===e.clientType&&delete o.scopes,{...r,authentication:o}}},719:(e,t,r)=>{"use strict";r.d(t,{q:()=>i});var n=r(1422),o=r(3725);async function i(e){const t=e.request||n.request,r={client_id:e.clientId};return"scopes"in e&&Array.isArray(e.scopes)&&(r.scope=e.scopes.join(" ")),(0,o.H)(t,"POST /login/device/code",r)}},2829:(e,t,r)=>{"use strict";r.d(t,{l:()=>a});var n=r(1422),o=r(3514),i=r.n(o);async function a(e){const t=e.request||n.request,r=i()("".concat(e.clientId,":").concat(e.clientSecret));return t("DELETE /applications/{client_id}/grant",{headers:{authorization:"basic ".concat(r)},client_id:e.clientId,access_token:e.token})}},7033:(e,t,r)=>{"use strict";r.d(t,{n:()=>a});var n=r(1422),o=r(3514),i=r.n(o);async function a(e){const t=e.request||n.request,r=i()("".concat(e.clientId,":").concat(e.clientSecret));return t("DELETE /applications/{client_id}/token",{headers:{authorization:"basic ".concat(r)},client_id:e.clientId,access_token:e.token})}},7322:(e,t,r)=>{"use strict";r.d(t,{B:()=>i});var n=r(1422),o=r(3725);async function i(e){const t=e.request||n.request,r=await(0,o.H)(t,"POST /login/oauth/access_token",{client_id:e.clientId,device_code:e.code,grant_type:"urn:ietf:params:oauth:grant-type:device_code"}),i={clientType:e.clientType,clientId:e.clientId,token:r.data.access_token,scopes:r.data.scope.split(/\s+/).filter(Boolean)};if("clientSecret"in e&&(i.clientSecret=e.clientSecret),"github-app"===e.clientType){if("refresh_token"in r.data){const e=new Date(r.headers.date).getTime();i.refreshToken=r.data.refresh_token,i.expiresAt=a(e,r.data.expires_in),i.refreshTokenExpiresAt=a(e,r.data.refresh_token_expires_in)}delete i.scopes}return{...r,authentication:i}}function a(e,t){return new Date(e+1e3*t).toISOString()}},2527:(e,t,r)=>{"use strict";r.d(t,{b:()=>i});var n=r(1422),o=r(3725);async function i(e){const t=e.request||n.request,r=await(0,o.H)(t,"POST /login/oauth/access_token",{client_id:e.clientId,client_secret:e.clientSecret,code:e.code,redirect_uri:e.redirectUrl}),i={clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:r.data.access_token,scopes:r.data.scope.split(/\s+/).filter(Boolean)};if("github-app"===e.clientType){if("refresh_token"in r.data){const e=new Date(r.headers.date).getTime();i.refreshToken=r.data.refresh_token,i.expiresAt=a(e,r.data.expires_in),i.refreshTokenExpiresAt=a(e,r.data.refresh_token_expires_in)}delete i.scopes}return{...r,authentication:i}}function a(e,t){return new Date(e+1e3*t).toISOString()}},4272:(e,t,r)=>{"use strict";r.r(t),r.d(t,{VERSION:()=>n,checkToken:()=>d.S,createDeviceCode:()=>c.q,deleteAuthorization:()=>y.l,deleteToken:()=>v.n,exchangeDeviceCode:()=>u.B,exchangeWebFlowCode:()=>l.b,getWebFlowAuthorizationUrl:()=>s,refreshToken:()=>p.B,resetToken:()=>g.X,scopeToken:()=>m});const n="4.0.1";function o(e){const t=e.clientType||"oauth-app",r=e.baseUrl||"https://github.com",n={clientType:t,allowSignup:!1!==e.allowSignup,clientId:e.clientId,login:e.login||null,redirectUrl:e.redirectUrl||null,state:e.state||Math.random().toString(36).substr(2),url:""};if("oauth-app"===t){const t="scopes"in e?e.scopes:[];n.scopes="string"===typeof t?t.split(/[,\s]+/).filter(Boolean):t}return n.url=function(e,t){const r={allowSignup:"allow_signup",clientId:"client_id",login:"login",redirectUrl:"redirect_uri",scopes:"scope",state:"state"};let n=e;return Object.keys(r).filter((e=>null!==t[e])).filter((e=>"scopes"!==e||"github-app"!==t.clientType&&(!Array.isArray(t[e])||t[e].length>0))).map((e=>[r[e],"".concat(t[e])])).forEach(((e,t)=>{let[r,o]=e;n+=0===t?"?":"&",n+="".concat(r,"=").concat(encodeURIComponent(o))})),n}("".concat(r,"/login/oauth/authorize"),n),n}var i=r(1422),a=r(3725);function s(e){let{request:t=i.request,...r}=e;return o({...r,baseUrl:(0,a.S)(t)})}var l=r(2527),c=r(719),u=r(7322),d=r(4468),p=r(4107),h=r(3514),f=r.n(h);async function m(e){const{request:t,clientType:r,clientId:n,clientSecret:o,token:a,...s}=e,l=t||i.request,c=await l("POST /applications/{client_id}/token/scoped",{headers:{authorization:"basic ".concat(f()("".concat(n,":").concat(o)))},client_id:n,access_token:a,...s}),u=Object.assign({clientType:r,clientId:n,clientSecret:o,token:c.data.token},c.data.expires_at?{expiresAt:c.data.expires_at}:{});return{...c,authentication:u}}var g=r(8871),v=r(7033),y=r(2829)},4107:(e,t,r)=>{"use strict";r.d(t,{B:()=>i});var n=r(1422),o=r(3725);async function i(e){const t=e.request||n.request,r=await(0,o.H)(t,"POST /login/oauth/access_token",{client_id:e.clientId,client_secret:e.clientSecret,grant_type:"refresh_token",refresh_token:e.refreshToken}),i=new Date(r.headers.date).getTime(),s={clientType:"github-app",clientId:e.clientId,clientSecret:e.clientSecret,token:r.data.access_token,refreshToken:r.data.refresh_token,expiresAt:a(i,r.data.expires_in),refreshTokenExpiresAt:a(i,r.data.refresh_token_expires_in)};return{...r,authentication:s}}function a(e,t){return new Date(e+1e3*t).toISOString()}},8871:(e,t,r)=>{"use strict";r.d(t,{X:()=>a});var n=r(1422),o=r(3514),i=r.n(o);async function a(e){const t=e.request||n.request,r=i()("".concat(e.clientId,":").concat(e.clientSecret)),o=await t("PATCH /applications/{client_id}/token",{headers:{authorization:"basic ".concat(r)},client_id:e.clientId,access_token:e.token}),a={clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:o.data.token,scopes:o.data.scopes};return o.data.expires_at&&(a.expiresAt=o.data.expires_at),"github-app"===e.clientType&&delete a.scopes,{...o,authentication:a}}},3725:(e,t,r)=>{"use strict";r.d(t,{H:()=>i,S:()=>o});var n=r(998);function o(e){const t=e.endpoint.DEFAULTS;return/^https:\/\/(api\.)?github\.com$/.test(t.baseUrl)?"https://github.com":t.baseUrl.replace("/api/v3","")}async function i(e,t,r){const i={baseUrl:o(e),headers:{accept:"application/json"},...r},a=await e(t,i);if("error"in a.data){const r=new n.RequestError("".concat(a.data.error_description," (").concat(a.data.error,", ").concat(a.data.error_uri,")"),400,{request:e.endpoint.merge(t,i),headers:a.headers});throw r.response=a,r}return a}},998:(e,t,r)=>{"use strict";r.r(t),r.d(t,{RequestError:()=>l});var n=r(7780),o=r(4164),i=r.n(o),a=i()((e=>console.warn(e))),s=i()((e=>console.warn(e))),l=class extends Error{constructor(e,t,r){let o;super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="HttpError",this.status=t,"headers"in r&&"undefined"!==typeof r.headers&&(o=r.headers),"response"in r&&(this.response=r.response,o=r.response.headers);const i=Object.assign({},r.request);r.request.headers.authorization&&(i.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/ .*$/," [REDACTED]")})),i.url=i.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=i,Object.defineProperty(this,"code",{get:()=>(a(new n.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")),t)}),Object.defineProperty(this,"headers",{get:()=>(s(new n.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`.")),o||{})})}}},1422:(e,t,r)=>{"use strict";r.r(t),r.d(t,{request:()=>_});var n=r(3975),o="octokit-endpoint.js/".concat("9.0.4"," ").concat((0,n.getUserAgent)());function i(e,t){const r=Object.assign({},e);return Object.keys(t).forEach((n=>{!function(e){if("object"!==typeof e||null===e)return!1;if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"===typeof r&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}(t[n])?Object.assign(r,{[n]:t[n]}):n in e?r[n]=i(e[n],t[n]):Object.assign(r,{[n]:t[n]})})),r}function a(e){for(const t in e)void 0===e[t]&&delete e[t];return e}function s(e,t,r){if("string"===typeof t){let[e,n]=t.split(" ");r=Object.assign(n?{method:e,url:n}:{url:e},r)}else r=Object.assign({},t);var n;r.headers=(n=r.headers)?Object.keys(n).reduce(((e,t)=>(e[t.toLowerCase()]=n[t],e)),{}):{},a(r),a(r.headers);const o=i(e||{},r);var s;"/graphql"===r.url&&(e&&null!==(s=e.mediaType.previews)&&void 0!==s&&s.length&&(o.mediaType.previews=e.mediaType.previews.filter((e=>!o.mediaType.previews.includes(e))).concat(o.mediaType.previews)),o.mediaType.previews=(o.mediaType.previews||[]).map((e=>e.replace(/-preview/,""))));return o}var l=/\{[^}]+\}/g;function c(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function u(e,t){const r={__proto__:null};for(const n of Object.keys(e))-1===t.indexOf(n)&&(r[n]=e[n]);return r}function d(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e})).join("")}function p(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function h(e,t,r){return t="+"===e||"#"===e?d(t):p(t),r?p(r)+"="+t:t}function f(e){return void 0!==e&&null!==e}function m(e){return";"===e||"&"===e||"?"===e}function g(e,t){var r=["+","#",".","/",";","?","&"];return e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,n,o){if(n){let e="";const o=[];if(-1!==r.indexOf(n.charAt(0))&&(e=n.charAt(0),n=n.substr(1)),n.split(/,/g).forEach((function(r){var n=/([^:\*]*)(?::(\d+)|(\*))?/.exec(r);o.push(function(e,t,r,n){var o=e[r],i=[];if(f(o)&&""!==o)if("string"===typeof o||"number"===typeof o||"boolean"===typeof o)o=o.toString(),n&&"*"!==n&&(o=o.substring(0,parseInt(n,10))),i.push(h(t,o,m(t)?r:""));else if("*"===n)Array.isArray(o)?o.filter(f).forEach((function(e){i.push(h(t,e,m(t)?r:""))})):Object.keys(o).forEach((function(e){f(o[e])&&i.push(h(t,o[e],e))}));else{const e=[];Array.isArray(o)?o.filter(f).forEach((function(r){e.push(h(t,r))})):Object.keys(o).forEach((function(r){f(o[r])&&(e.push(p(r)),e.push(h(t,o[r].toString())))})),m(t)?i.push(p(r)+"="+e.join(",")):0!==e.length&&i.push(e.join(","))}else";"===t?f(o)&&i.push(p(r)):""!==o||"&"!==t&&"?"!==t?""===o&&i.push(""):i.push(p(r)+"=");return i}(t,e,n[1],n[2]||n[3]))})),e&&"+"!==e){var i=",";return"?"===e?i="&":"#"!==e&&(i=e),(0!==o.length?e:"")+o.join(i)}return o.join(",")}return d(o)})),"/"===e?e:e.replace(/\/$/,"")}function v(e){let t,r=e.method.toUpperCase(),n=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),o=Object.assign({},e.headers),i=u(e,["method","baseUrl","url","headers","request","mediaType"]);const a=function(e){const t=e.match(l);return t?t.map(c).reduce(((e,t)=>e.concat(t)),[]):[]}(n);var s;n=(s=n,{expand:g.bind(null,s)}).expand(i),/^http/.test(n)||(n=e.baseUrl+n);const d=u(i,Object.keys(e).filter((e=>a.includes(e))).concat("baseUrl"));var p;if(!/application\/octet-stream/i.test(o.accept)&&(e.mediaType.format&&(o.accept=o.accept.split(/,/).map((t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,"application/vnd$1$2.".concat(e.mediaType.format)))).join(",")),n.endsWith("/graphql")&&null!==(p=e.mediaType.previews)&&void 0!==p&&p.length)){const t=o.accept.match(/[\w-]+(?=-preview)/g)||[];o.accept=t.concat(e.mediaType.previews).map((t=>{const r=e.mediaType.format?".".concat(e.mediaType.format):"+json";return"application/vnd.github.".concat(t,"-preview").concat(r)})).join(",")}return["GET","HEAD"].includes(r)?n=function(e,t){const r=/\?/.test(e)?"&":"?",n=Object.keys(t);return 0===n.length?e:e+r+n.map((e=>"q"===e?"q="+t.q.split("+").map(encodeURIComponent).join("+"):"".concat(e,"=").concat(encodeURIComponent(t[e])))).join("&")}(n,d):"data"in d?t=d.data:Object.keys(d).length&&(t=d),o["content-type"]||"undefined"===typeof t||(o["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(r)&&"undefined"===typeof t&&(t=""),Object.assign({method:r,url:n,headers:o},"undefined"!==typeof t?{body:t}:null,e.request?{request:e.request}:null)}function y(e,t,r){return v(s(e,t,r))}var b=function e(t,r){const n=s(t,r),o=y.bind(null,n);return Object.assign(o,{DEFAULTS:n,defaults:e.bind(null,n),merge:s.bind(null,n),parse:v})}(null,{method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":o},mediaType:{format:""}}),w=r(998);function k(e){var t,r,n;const o=e.request&&e.request.log?e.request.log:console,i=!1!==(null===(t=e.request)||void 0===t?void 0:t.parseSuccessResponseBody);(function(e){if("object"!==typeof e||null===e)return!1;if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const r=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"===typeof r&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(e)}(e.body)||Array.isArray(e.body))&&(e.body=JSON.stringify(e.body));let a,s,l={},{fetch:c}=globalThis;if(null!==(r=e.request)&&void 0!==r&&r.fetch&&(c=e.request.fetch),!c)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");return c(e.url,{method:e.method,body:e.body,headers:e.headers,signal:null===(n=e.request)||void 0===n?void 0:n.signal,...e.body&&{duplex:"half"}}).then((async t=>{s=t.url,a=t.status;for(const e of t.headers)l[e[0]]=e[1];if("deprecation"in l){const t=l.link&&l.link.match(/<([^>]+)>; rel="deprecation"/),r=t&&t.pop();o.warn('[@octokit/request] "'.concat(e.method," ").concat(e.url,'" is deprecated. It is scheduled to be removed on ').concat(l.sunset).concat(r?". See ".concat(r):""))}if(204!==a&&205!==a){if("HEAD"===e.method){if(a<400)return;throw new w.RequestError(t.statusText,a,{response:{url:s,status:a,headers:l,data:void 0},request:e})}if(304===a)throw new w.RequestError("Not modified",a,{response:{url:s,status:a,headers:l,data:await x(t)},request:e});if(a>=400){const r=await x(t),n=new w.RequestError(function(e){if("string"===typeof e)return e;let t;t="documentation_url"in e?" - ".concat(e.documentation_url):"";if("message"in e)return Array.isArray(e.errors)?"".concat(e.message,": ").concat(e.errors.map(JSON.stringify).join(", ")).concat(t):"".concat(e.message).concat(t);return"Unknown error: ".concat(JSON.stringify(e))}(r),a,{response:{url:s,status:a,headers:l,data:r},request:e});throw n}return i?await x(t):t.body}})).then((e=>({status:a,url:s,headers:l,data:e}))).catch((t=>{if(t instanceof w.RequestError)throw t;if("AbortError"===t.name)throw t;let r=t.message;throw"TypeError"===t.name&&"cause"in t&&(t.cause instanceof Error?r=t.cause.message:"string"===typeof t.cause&&(r=t.cause)),new w.RequestError(r,500,{request:e})}))}async function x(e){const t=e.headers.get("content-type");return/application\/json/.test(t)?e.json().catch((()=>e.text())).catch((()=>"")):!t||/^text\/|charset=utf-8$/.test(t)?e.text():function(e){return e.arrayBuffer()}(e)}var _=function e(t,r){const n=t.defaults(r);return Object.assign((function(t,r){const o=n.merge(t,r);if(!o.request||!o.request.hook)return k(n.parse(o));const i=(e,t)=>k(n.parse(n.merge(e,t)));return Object.assign(i,{endpoint:n,defaults:e.bind(null,n)}),o.request.hook(i,o)}),{endpoint:n,defaults:e.bind(null,n)})}(b,{headers:{"user-agent":"octokit-request.js/".concat("8.2.0"," ").concat((0,n.getUserAgent)())}})},9940:(e,t,r)=>{"use strict";const n=r(5044),o=r(1916);class i extends Error{constructor(e){if(!Array.isArray(e))throw new TypeError("Expected input to be an Array, got ".concat(typeof e));let t=(e=[...e].map((e=>e instanceof Error?e:null!==e&&"object"===typeof e?Object.assign(new Error(e.message),e):new Error(e)))).map((e=>"string"===typeof e.stack?o(e.stack).replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g,""):String(e))).join("\n");t="\n"+n(t,4),super(t),this.name="AggregateError",Object.defineProperty(this,"_errors",{value:e})}*[Symbol.iterator](){for(const e of this._errors)yield e}}e.exports=i},2568:(e,t,r)=>{var n=r(9507),o=r(9439),i=r(18),a=Function.bind,s=a.bind(a);function l(e,t,r){var n=s(i,null).apply(null,r?[t,r]:[t]);e.api={remove:n},e.remove=n,["before","error","after","wrap"].forEach((function(n){var i=r?[t,n,r]:[t,n];e[n]=e.api[n]=s(o,null).apply(null,i)}))}function c(){var e={registry:{}},t=n.bind(null,e);return l(t,e),t}var u=!1;function d(){return u||(console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'),u=!0),c()}d.Singular=function(){var e={registry:{}},t=n.bind(null,e,"h");return l(t,e,"h"),t}.bind(),d.Collection=c.bind(),e.exports=d,e.exports.Hook=d,e.exports.Singular=d.Singular,e.exports.Collection=d.Collection},9439:e=>{e.exports=function(e,t,r,n){var o=n;e.registry[r]||(e.registry[r]=[]);"before"===t&&(n=function(e,t){return Promise.resolve().then(o.bind(null,t)).then(e.bind(null,t))});"after"===t&&(n=function(e,t){var r;return Promise.resolve().then(e.bind(null,t)).then((function(e){return o(r=e,t)})).then((function(){return r}))});"error"===t&&(n=function(e,t){return Promise.resolve().then(e.bind(null,t)).catch((function(e){return o(e,t)}))});e.registry[r].push({hook:n,orig:o})}},9507:e=>{e.exports=function e(t,r,n,o){if("function"!==typeof n)throw new Error("method for before hook must be a function");o||(o={});if(Array.isArray(r))return r.reverse().reduce((function(r,n){return e.bind(null,t,n,r,o)}),n)();return Promise.resolve().then((function(){return t.registry[r]?t.registry[r].reduce((function(e,t){return t.hook.bind(null,e,o)}),n)():n(o)}))}},18:e=>{e.exports=function(e,t,r){if(!e.registry[t])return;var n=e.registry[t].map((function(e){return e.orig})).indexOf(r);if(-1===n)return;e.registry[t].splice(n,1)}},7543:function(e,t,r){e.exports=function(){"use strict";var e="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof r.g?r.g:"undefined"!==typeof self?self:{};function t(e){return e&&e.default||e}var n,o=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var n,o,i;for(n in t)i=t[n],r[n]=null!=(o=e[n])?o:i;return r},i=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var n,o;for(n in e)o=e[n],void 0!==t[n]&&(r[n]=o);return r},a={load:o,overwrite:i},s=class{constructor(e,t){this.incr=e,this.decr=t,this._first=null,this._last=null,this.length=0}push(e){var t;this.length++,"function"===typeof this.incr&&this.incr(),t={value:e,prev:this._last,next:null},null!=this._last?(this._last.next=t,this._last=t):this._first=this._last=t}shift(){var e;if(null!=this._first)return this.length--,"function"===typeof this.decr&&this.decr(),e=this._first.value,null!=(this._first=this._first.next)?this._first.prev=null:this._last=null,e}first(){if(null!=this._first)return this._first.value}getArray(){var e,t,r;for(e=this._first,r=[];null!=e;)r.push((t=e,e=e.next,t.value));return r}forEachShift(e){var t;for(t=this.shift();null!=t;)e(t),t=this.shift()}debug(){var e,t,r,n,o;for(e=this._first,o=[];null!=e;)o.push((t=e,e=e.next,{value:t.value,prev:null!=(r=t.prev)?r.value:void 0,next:null!=(n=t.next)?n.value:void 0}));return o}};n=class{constructor(e){var t=this;if(this.instance=e,this._events={},null!=this.instance.on||null!=this.instance.once||null!=this.instance.removeAllListeners)throw new Error("An Emitter already exists for this object");this.instance.on=(e,t)=>this._addListener(e,"many",t),this.instance.once=(e,t)=>this._addListener(e,"once",t),this.instance.removeAllListeners=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null!=e?delete t._events[e]:t._events={}}}_addListener(e,t,r){var n;return null==(n=this._events)[e]&&(n[e]=[]),this._events[e].push({cb:r,status:t}),this.instance}listenerCount(e){return null!=this._events[e]?this._events[e].length:0}async trigger(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n{var t,n;if("none"!==e.status){"once"===e.status&&(e.status="none");try{return"function"===typeof(null!=(n="function"===typeof e.cb?e.cb(...r):void 0)?n.then:void 0)?await n:n}catch(o){return t=o,this.trigger("error",t),null}}})),(await Promise.all(i)).find((function(e){return null!=e}))}catch(a){return o=a,this.trigger("error",o),null}}};var l,c,u,d=n;l=s,c=d,u=class{constructor(e){this.Events=new c(this),this._length=0,this._lists=function(){var t,r,n;for(n=[],t=1,r=e;1<=r?t<=r:t>=r;1<=r?++t:--t)n.push(new l((()=>this.incr()),(()=>this.decr())));return n}.call(this)}incr(){if(0===this._length++)return this.Events.trigger("leftzero")}decr(){if(0===--this._length)return this.Events.trigger("zero")}push(e){return this._lists[e.options.priority].push(e)}queued(e){return null!=e?this._lists[e].length:this._length}shiftAll(e){return this._lists.forEach((function(t){return t.forEachShift(e)}))}getFirst(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._lists;var t,r,n;for(t=0,r=e.length;t0)return n;return[]}shiftLastFrom(e){return this.getFirst(this._lists.slice(e).reverse()).shift()}};var p,h,f,m,g,v=u,y=class extends Error{};m=10,h=5,g=a,p=y,f=class{constructor(e,t,r,n,o,i,a,s){this.task=e,this.args=t,this.rejectOnDrop=o,this.Events=i,this._states=a,this.Promise=s,this.options=g.load(r,n),this.options.priority=this._sanitizePriority(this.options.priority),this.options.id===n.id&&(this.options.id="".concat(this.options.id,"-").concat(this._randomIndex())),this.promise=new this.Promise(((e,t)=>{this._resolve=e,this._reject=t})),this.retryCount=0}_sanitizePriority(e){var t;return(t=~~e!==e?h:e)<0?0:t>m-1?m-1:t}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop(){let{error:e,message:t="This job has been dropped by Bottleneck"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return!!this._states.remove(this.options.id)&&(this.rejectOnDrop&&this._reject(null!=e?e:new p(t)),this.Events.trigger("dropped",{args:this.args,options:this.options,task:this.task,promise:this.promise}),!0)}_assertStatus(e){var t;if((t=this._states.jobStatus(this.options.id))!==e&&("DONE"!==e||null!==t))throw new p("Invalid job status ".concat(t,", expected ").concat(e,". Please open an issue at https://github.com/SGrondin/bottleneck/issues"))}doReceive(){return this._states.start(this.options.id),this.Events.trigger("received",{args:this.args,options:this.options})}doQueue(e,t){return this._assertStatus("RECEIVED"),this._states.next(this.options.id),this.Events.trigger("queued",{args:this.args,options:this.options,reachedHWM:e,blocked:t})}doRun(){return 0===this.retryCount?(this._assertStatus("QUEUED"),this._states.next(this.options.id)):this._assertStatus("EXECUTING"),this.Events.trigger("scheduled",{args:this.args,options:this.options})}async doExecute(e,t,r,n){var o,i,a;0===this.retryCount?(this._assertStatus("RUNNING"),this._states.next(this.options.id)):this._assertStatus("EXECUTING"),i={args:this.args,options:this.options,retryCount:this.retryCount},this.Events.trigger("executing",i);try{if(a=await(null!=e?e.schedule(this.options,this.task,...this.args):this.task(...this.args)),t())return this.doDone(i),await n(this.options,i),this._assertStatus("DONE"),this._resolve(a)}catch(s){return o=s,this._onFailure(o,i,t,r,n)}}doExpire(e,t,r){var n,o;return this._states.jobStatus("RUNNING"===this.options.id)&&this._states.next(this.options.id),this._assertStatus("EXECUTING"),o={args:this.args,options:this.options,retryCount:this.retryCount},n=new p("This job timed out after ".concat(this.options.expiration," ms.")),this._onFailure(n,o,e,t,r)}async _onFailure(e,t,r,n,o){var i,a;if(r())return null!=(i=await this.Events.trigger("failed",e,t))?(a=~~i,this.Events.trigger("retry","Retrying ".concat(this.options.id," after ").concat(a," ms"),t),this.retryCount++,n(a)):(this.doDone(t),await o(this.options,t),this._assertStatus("DONE"),this._reject(e))}doDone(e){return this._assertStatus("EXECUTING"),this._states.next(this.options.id),this.Events.trigger("done",e)}};var b,w,k,x=f;k=a,b=y,w=class{constructor(e,t,r){this.instance=e,this.storeOptions=t,this.clientId=this.instance._randomIndex(),k.load(r,r,this),this._nextRequest=this._lastReservoirRefresh=this._lastReservoirIncrease=Date.now(),this._running=0,this._done=0,this._unblockTime=0,this.ready=this.Promise.resolve(),this.clients={},this._startHeartbeat()}_startHeartbeat(){var e;return null==this.heartbeat&&(null!=this.storeOptions.reservoirRefreshInterval&&null!=this.storeOptions.reservoirRefreshAmount||null!=this.storeOptions.reservoirIncreaseInterval&&null!=this.storeOptions.reservoirIncreaseAmount)?"function"===typeof(e=this.heartbeat=setInterval((()=>{var e,t,r,n,o;if(n=Date.now(),null!=this.storeOptions.reservoirRefreshInterval&&n>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval&&(this._lastReservoirRefresh=n,this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount,this.instance._drainAll(this.computeCapacity())),null!=this.storeOptions.reservoirIncreaseInterval&&n>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval&&(({reservoirIncreaseAmount:e,reservoirIncreaseMaximum:r,reservoir:o}=this.storeOptions),this._lastReservoirIncrease=n,(t=null!=r?Math.min(e,r-o):e)>0))return this.storeOptions.reservoir+=t,this.instance._drainAll(this.computeCapacity())}),this.heartbeatInterval)).unref?e.unref():void 0:clearInterval(this.heartbeat)}async __publish__(e){return await this.yieldLoop(),this.instance.Events.trigger("message",e.toString())}async __disconnect__(e){return await this.yieldLoop(),clearInterval(this.heartbeat),this.Promise.resolve()}yieldLoop(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new this.Promise((function(t,r){return setTimeout(t,e)}))}computePenalty(){var e;return null!=(e=this.storeOptions.penalty)?e:15*this.storeOptions.minTime||5e3}async __updateSettings__(e){return await this.yieldLoop(),k.overwrite(e,e,this.storeOptions),this._startHeartbeat(),this.instance._drainAll(this.computeCapacity()),!0}async __running__(){return await this.yieldLoop(),this._running}async __queued__(){return await this.yieldLoop(),this.instance.queued()}async __done__(){return await this.yieldLoop(),this._done}async __groupCheck__(e){return await this.yieldLoop(),this._nextRequest+this.timeout=e}check(e,t){return this.conditionsCheck(e)&&this._nextRequest-t<=0}async __check__(e){var t;return await this.yieldLoop(),t=Date.now(),this.check(e,t)}async __register__(e,t,r){var n,o;return await this.yieldLoop(),n=Date.now(),this.conditionsCheck(t)?(this._running+=t,null!=this.storeOptions.reservoir&&(this.storeOptions.reservoir-=t),o=Math.max(this._nextRequest-n,0),this._nextRequest=n+o+this.storeOptions.minTime,{success:!0,wait:o,reservoir:this.storeOptions.reservoir}):{success:!1}}strategyIsBlock(){return 3===this.storeOptions.strategy}async __submit__(e,t){var r,n,o;if(await this.yieldLoop(),null!=this.storeOptions.maxConcurrent&&t>this.storeOptions.maxConcurrent)throw new b("Impossible to add a job having a weight of ".concat(t," to a limiter having a maxConcurrent setting of ").concat(this.storeOptions.maxConcurrent));return n=Date.now(),o=null!=this.storeOptions.highWater&&e===this.storeOptions.highWater&&!this.check(t,n),(r=this.strategyIsBlock()&&(o||this.isBlocked(n)))&&(this._unblockTime=n+this.computePenalty(),this._nextRequest=this._unblockTime+this.storeOptions.minTime,this.instance._dropAllQueued()),{reachedHWM:o,blocked:r,strategy:this.storeOptions.strategy}}async __free__(e,t){return await this.yieldLoop(),this._running-=t,this._done+=t,this.instance._drainAll(this.computeCapacity()),{running:this._running}}};var _,E=w;_=y;var S,T,C=class{constructor(e){this.status=e,this._jobs={},this.counts=this.status.map((function(){return 0}))}next(e){var t,r;return r=(t=this._jobs[e])+1,null!=t&&r(e[this.status[r]]=t,e)),{})}};S=s,T=class{constructor(e,t){this.schedule=this.schedule.bind(this),this.name=e,this.Promise=t,this._running=0,this._queue=new S}isEmpty(){return 0===this._queue.length}async _tryToRun(){var e,t,r,n,o,i,a;if(this._running<1&&this._queue.length>0)return this._running++,({task:a,args:e,resolve:o,reject:n}=this._queue.shift()),t=await async function(){try{return i=await a(...e),function(){return o(i)}}catch(t){return r=t,function(){return n(r)}}}(),this._running--,this._tryToRun(),t()}schedule(e){var t,r,n;n=r=null,t=new this.Promise((function(e,t){return n=e,r=t}));for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;aconsole.log("You must import the full version of Bottleneck in order to use this feature."),N=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");z=a,A=d,j=L,O=N,R=()=>console.log("You must import the full version of Bottleneck in order to use this feature."),P=function(){class e{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.deleteKey=this.deleteKey.bind(this),this.limiterOptions=e,z.load(this.limiterOptions,this.defaults,this),this.Events=new A(this),this.instances={},this.Bottleneck=ie,this._startAutoCleanup(),this.sharedConnection=null!=this.connection,null==this.connection&&("redis"===this.limiterOptions.datastore?this.connection=new j(Object.assign({},this.limiterOptions,{Events:this.Events})):"ioredis"===this.limiterOptions.datastore&&(this.connection=new O(Object.assign({},this.limiterOptions,{Events:this.Events}))))}key(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";var t;return null!=(t=this.instances[e])?t:(()=>{var t;return t=this.instances[e]=new this.Bottleneck(Object.assign(this.limiterOptions,{id:"".concat(this.id,"-").concat(e),timeout:this.timeout,connection:this.connection})),this.Events.trigger("created",t,e),t})()}async deleteKey(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";var t,r;return r=this.instances[e],this.connection&&(t=await this.connection.__runCommand__(["del",...R.allKeys("".concat(this.id,"-").concat(e))])),null!=r&&(delete this.instances[e],await r.disconnect()),null!=r||t>0}limiters(){var e,t,r,n;for(e in r=[],t=this.instances)n=t[e],r.push({key:e,limiter:n});return r}keys(){return Object.keys(this.instances)}async clusterKeys(){var e,t,r,n,o,i,a,s,l;if(null==this.connection)return this.Promise.resolve(this.keys());for(i=[],e=null,l="b_".concat(this.id,"-").length,t=9;0!==e;)for([s,r]=await this.connection.__runCommand__(["scan",null!=e?e:0,"match","b_".concat(this.id,"-*_settings"),"count",1e4]),e=~~s,n=0,a=r.length;n{var e,t,r,n,o,i;for(t in o=Date.now(),n=[],r=this.instances){i=r[t];try{await i._store.__groupCheck__(o)?n.push(this.deleteKey(t)):n.push(void 0)}catch(a){e=a,n.push(i.Events.trigger("error",e))}}return n}),this.timeout/2)).unref?e.unref():void 0}updateSettings(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(z.overwrite(e,this.defaults,this),z.overwrite(e,e,this.limiterOptions),null!=e.timeout)return this._startAutoCleanup()}disconnect(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];var t;if(!this.sharedConnection)return null!=(t=this.connection)?t.disconnect(e):void 0}}return e.prototype.defaults={timeout:3e5,connection:null,Promise:Promise,id:"group-key"},e}.call(e);var B,U,G,W=P;G=a,U=d,B=function(){class e{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=e,G.load(this.options,this.defaults,this),this.Events=new U(this),this._arr=[],this._resetPromise(),this._lastFlush=Date.now()}_resetPromise(){return this._promise=new this.Promise(((e,t)=>this._resolve=e))}_flush(){return clearTimeout(this._timeout),this._lastFlush=Date.now(),this._resolve(),this.Events.trigger("batch",this._arr),this._arr=[],this._resetPromise()}add(e){var t;return this._arr.push(e),t=this._promise,this._arr.length===this.maxSize?this._flush():null!=this.maxTime&&1===this._arr.length&&(this._timeout=setTimeout((()=>this._flush()),this.maxTime)),t}}return e.prototype.defaults={maxTime:null,maxSize:null,Promise:Promise},e}.call(e);var V,q,H,$,Y,K,X,Q,J,Z,ee,te=B,re=()=>console.log("You must import the full version of Bottleneck in order to use this feature."),ne=t(M),oe=[].splice;K=10,q=5,ee=a,X=v,$=x,Y=E,Q=re,H=d,J=C,Z=F,V=function(){class e{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var r,n;this._addToQueue=this._addToQueue.bind(this);for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a{var e;return null!=(e=this._store.heartbeat)&&"function"===typeof e.ref?e.ref():void 0})),this._queues.on("zero",(()=>{var e;return null!=(e=this._store.heartbeat)&&"function"===typeof e.unref?e.unref():void 0}))}_validateOptions(t,r){if(null==t||"object"!==typeof t||0!==r.length)throw new e.prototype.BottleneckError("Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1.")}ready(){return this._store.ready}clients(){return this._store.clients}channel(){return"b_".concat(this.id)}channel_client(){return"b_".concat(this.id,"_").concat(this._store.clientId)}publish(e){return this._store.__publish__(e)}disconnect(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._store.__disconnect__(e)}chain(e){return this._limiter=e,this}queued(e){return this._queues.queued(e)}clusterQueued(){return this._store.__queued__()}empty(){return 0===this.queued()&&this._submitLock.isEmpty()}running(){return this._store.__running__()}done(){return this._store.__done__()}jobStatus(e){return this._states.jobStatus(e)}jobs(e){return this._states.statusJobs(e)}counts(){return this._states.statusCounts()}_randomIndex(){return Math.random().toString(36).slice(2)}check(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this._store.__check__(e)}_clearGlobalState(e){return null!=this._scheduled[e]&&(clearTimeout(this._scheduled[e].expiration),delete this._scheduled[e],!0)}async _free(e,t,r,n){var o,i;try{if(({running:i}=await this._store.__free__(e,r.weight)),this.Events.trigger("debug","Freed ".concat(r.id),n),0===i&&this.empty())return this.Events.trigger("idle")}catch(a){return o=a,this.Events.trigger("error",o)}}_run(e,t,r){var n,o,i;return t.doRun(),n=this._clearGlobalState.bind(this,e),i=this._run.bind(this,e,t),o=this._free.bind(this,e,t),this._scheduled[e]={timeout:setTimeout((()=>t.doExecute(this._limiter,n,i,o)),r),expiration:null!=t.options.expiration?setTimeout((function(){return t.doExpire(n,i,o)}),r+t.options.expiration):void 0,job:t}}_drainOne(e){return this._registerLock.schedule((()=>{var t,r,n,o,i;return 0===this.queued()?this.Promise.resolve(null):(i=this._queues.getFirst(),({options:o,args:t}=n=i.first()),null!=e&&o.weight>e?this.Promise.resolve(null):(this.Events.trigger("debug","Draining ".concat(o.id),{args:t,options:o}),r=this._randomIndex(),this._store.__register__(r,o.weight,o.expiration).then((e=>{let{success:a,wait:s,reservoir:l}=e;var c;return this.Events.trigger("debug","Drained ".concat(o.id),{success:a,args:t,options:o}),a?(i.shift(),(c=this.empty())&&this.Events.trigger("empty"),0===l&&this.Events.trigger("depleted",c),this._run(r,n,s),this.Promise.resolve(o.weight)):this.Promise.resolve(null)}))))}))}_drainAll(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this._drainOne(e).then((r=>{var n;return null!=r?(n=null!=e?e-r:e,this._drainAll(n,t+r)):this.Promise.resolve(t)})).catch((e=>this.Events.trigger("error",e)))}_dropAllQueued(e){return this._queues.shiftAll((function(t){return t.doDrop({message:e})}))}stop(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var r,n;return t=ee.load(t,this.stopDefaults),n=e=>{var t;return t=()=>{var t;return(t=this._states.counts)[0]+t[1]+t[2]+t[3]===e},new this.Promise(((e,r)=>t()?e():this.on("done",(()=>{if(t())return this.removeAllListeners("done"),e()}))))},r=t.dropWaitingJobs?(this._run=function(e,r){return r.doDrop({message:t.dropErrorMessage})},this._drainOne=()=>this.Promise.resolve(null),this._registerLock.schedule((()=>this._submitLock.schedule((()=>{var e,r,o;for(e in r=this._scheduled)o=r[e],"RUNNING"===this.jobStatus(o.job.options.id)&&(clearTimeout(o.timeout),clearTimeout(o.expiration),o.job.doDrop({message:t.dropErrorMessage}));return this._dropAllQueued(t.dropErrorMessage),n(0)}))))):this.schedule({priority:K-1,weight:0},(()=>n(1))),this._receive=function(r){return r._reject(new e.prototype.BottleneckError(t.enqueueErrorMessage))},this.stop=()=>this.Promise.reject(new e.prototype.BottleneckError("stop() has already been called")),r}async _addToQueue(t){var r,n,o,i,a,s,l;({args:r,options:i}=t);try{({reachedHWM:a,blocked:n,strategy:l}=await this._store.__submit__(this.queued(),i.weight))}catch(c){return o=c,this.Events.trigger("debug","Could not queue ".concat(i.id),{args:r,options:i,error:o}),t.doDrop({error:o}),!1}return n?(t.doDrop(),!0):a&&(null!=(s=l===e.prototype.strategy.LEAK?this._queues.shiftLastFrom(i.priority):l===e.prototype.strategy.OVERFLOW_PRIORITY?this._queues.shiftLastFrom(i.priority+1):l===e.prototype.strategy.OVERFLOW?t:void 0)&&s.doDrop(),null==s||l===e.prototype.strategy.OVERFLOW)?(null==s&&t.doDrop(),a):(t.doQueue(a,n),this._queues.push(t),await this._drainAll(),a)}_receive(t){return null!=this._states.jobStatus(t.options.id)?(t._reject(new e.prototype.BottleneckError("A job with the same id already exists (id=".concat(t.options.id,")"))),!1):(t.doReceive(),this._submitLock.schedule(this._addToQueue,t))}submit(){for(var e,t,r,n,o,i,a,s=this,l=arguments.length,c=new Array(l),u=0;u1?n-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:{};return await this._store.__updateSettings__(ee.overwrite(e,this.storeDefaults)),ee.overwrite(e,this.instanceDefaults,this),this}currentReservoir(){return this._store.__currentReservoir__()}incrementReservoir(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this._store.__incrementReservoir__(e)}}return e.default=e,e.Events=H,e.version=e.prototype.version=ne.version,e.strategy=e.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3},e.BottleneckError=e.prototype.BottleneckError=y,e.Group=e.prototype.Group=W,e.RedisConnection=e.prototype.RedisConnection=L,e.IORedisConnection=e.prototype.IORedisConnection=N,e.Batcher=e.prototype.Batcher=te,e.prototype.jobDefaults={priority:q,weight:1,expiration:null,id:""},e.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:e.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null},e.prototype.localStoreDefaults={Promise:Promise,timeout:null,heartbeatInterval:250},e.prototype.redisStoreDefaults={Promise:Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:!1,connection:null},e.prototype.instanceDefaults={datastore:"local",connection:null,id:"",rejectOnDrop:!0,trackDoneStatus:!1,Promise:Promise},e.prototype.stopDefaults={enqueueErrorMessage:"This limiter has been stopped and cannot accept new jobs.",dropWaitingJobs:!0,dropErrorMessage:"This limiter has been stopped."},e}.call(e);var ie=V;return ie}()},3514:e=>{e.exports=function(e){return btoa(e)}},1916:(e,t,r)=>{"use strict";const n=r(8619),o=/\s+at.*(?:\(|\s)(.*)\)?/,i=/^(?:(?:(?:node|(?:internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)\.js:\d+:\d+)|native)/,a="undefined"===typeof n.homedir?"":n.homedir();e.exports=(e,t)=>(t=Object.assign({pretty:!1},t),e.replace(/\\/g,"/").split("\n").filter((e=>{const t=e.match(o);if(null===t||!t[1])return!0;const r=t[1];return!r.includes(".app/Contents/Resources/electron.asar")&&!r.includes(".app/Contents/Resources/default_app.asar")&&!i.test(r)})).filter((e=>""!==e.trim())).map((e=>t.pretty?e.replace(o,((e,t)=>e.replace(t,t.replace(a,"~")))):e)).join("\n"))},7780:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Deprecation:()=>n});class n extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="Deprecation"}}},219:(e,t,r)=>{"use strict";var n=r(3763),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?a:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,r,n){if("string"!==typeof r){if(f){var o=h(r);o&&o!==f&&e(t,o,n)}var a=u(r);d&&(a=a.concat(d(r)));for(var s=l(t),m=l(r),g=0;g{"use strict";var r="function"===typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,f=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function k(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case d:case i:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case m:case l:return e;default:return t}}case o:return t}}}function x(e){return k(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=p,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return x(e)||k(e)===u},t.isConcurrentMode=x,t.isContextConsumer=function(e){return k(e)===c},t.isContextProvider=function(e){return k(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return k(e)===p},t.isFragment=function(e){return k(e)===i},t.isLazy=function(e){return k(e)===g},t.isMemo=function(e){return k(e)===m},t.isPortal=function(e){return k(e)===o},t.isProfiler=function(e){return k(e)===s},t.isStrictMode=function(e){return k(e)===a},t.isSuspense=function(e){return k(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===d||e===s||e===a||e===h||e===f||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=k},3763:(e,t,r)=>{"use strict";e.exports=r(4983)},5044:e=>{"use strict";e.exports=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2?arguments[2]:void 0;if(r={indent:" ",includeEmptyLines:!1,...r},"string"!==typeof e)throw new TypeError("Expected `input` to be a `string`, got `".concat(typeof e,"`"));if("number"!==typeof t)throw new TypeError("Expected `count` to be a `number`, got `".concat(typeof t,"`"));if("string"!==typeof r.indent)throw new TypeError("Expected `options.indent` to be a `string`, got `".concat(typeof r.indent,"`"));if(0===t)return e;const n=r.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(n,r.indent.repeat(t))}},9611:(e,t,r)=>{e=r.nmd(e);var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object AsyncFunction]",s="[object Function]",l="[object GeneratorFunction]",c="[object Null]",u="[object Object]",d="[object Proxy]",p="[object Undefined]",h=/^\[object .+?Constructor\]$/,f=/^(?:0|[1-9]\d*)$/,m={};m["[object Float32Array]"]=m["[object Float64Array]"]=m["[object Int8Array]"]=m["[object Int16Array]"]=m["[object Int32Array]"]=m["[object Uint8Array]"]=m["[object Uint8ClampedArray]"]=m["[object Uint16Array]"]=m["[object Uint32Array]"]=!0,m[i]=m["[object Array]"]=m["[object ArrayBuffer]"]=m["[object Boolean]"]=m["[object DataView]"]=m["[object Date]"]=m["[object Error]"]=m[s]=m["[object Map]"]=m["[object Number]"]=m[u]=m["[object RegExp]"]=m["[object Set]"]=m["[object String]"]=m["[object WeakMap]"]=!1;var g="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,v="object"==typeof self&&self&&self.Object===Object&&self,y=g||v||Function("return this")(),b=t&&!t.nodeType&&t,w=b&&e&&!e.nodeType&&e,k=w&&w.exports===b,x=k&&g.process,_=function(){try{var e=w&&w.require&&w.require("util").types;return e||x&&x.binding&&x.binding("util")}catch(t){}}(),E=_&&_.isTypedArray;var S,T,C=Array.prototype,A=Function.prototype,P=Object.prototype,O=y["__core-js_shared__"],j=A.toString,R=P.hasOwnProperty,z=function(){var e=/[^.]+$/.exec(O&&O.keys&&O.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),F=P.toString,I=j.call(Object),D=RegExp("^"+j.call(R).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),M=k?y.Buffer:void 0,L=y.Symbol,N=y.Uint8Array,B=M?M.allocUnsafe:void 0,U=(S=Object.getPrototypeOf,T=Object,function(e){return S(T(e))}),G=Object.create,W=P.propertyIsEnumerable,V=C.splice,q=L?L.toStringTag:void 0,H=function(){try{var e=ye(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),$=M?M.isBuffer:void 0,Y=Math.max,K=Date.now,X=ye(y,"Map"),Q=ye(Object,"create"),J=function(){function e(){}return function(t){if(!Oe(t))return{};if(G)return G(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Z(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1},ee.prototype.set=function(e,t){var r=this.__data__,n=ae(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},te.prototype.clear=function(){this.size=0,this.__data__={hash:new Z,map:new(X||ee),string:new Z}},te.prototype.delete=function(e){var t=ve(this,e).delete(e);return this.size-=t?1:0,t},te.prototype.get=function(e){return ve(this,e).get(e)},te.prototype.has=function(e){return ve(this,e).has(e)},te.prototype.set=function(e,t){var r=ve(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},re.prototype.clear=function(){this.__data__=new ee,this.size=0},re.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},re.prototype.get=function(e){return this.__data__.get(e)},re.prototype.has=function(e){return this.__data__.has(e)},re.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ee){var n=r.__data__;if(!X||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new te(n)}return r.set(e,t),this.size=r.size,this};var le,ce=function(e,t,r){for(var n=-1,o=Object(e),i=r(e),a=i.length;a--;){var s=i[le?a:++n];if(!1===t(o[s],s,o))break}return e};function ue(e){return null==e?void 0===e?p:c:q&&q in Object(e)?function(e){var t=R.call(e,q),r=e[q];try{e[q]=void 0;var n=!0}catch(i){}var o=F.call(e);n&&(t?e[q]=r:delete e[q]);return o}(e):function(e){return F.call(e)}(e)}function de(e){return je(e)&&ue(e)==i}function pe(e){return!(!Oe(e)||function(e){return!!z&&z in e}(e))&&(Ae(e)?D:h).test(function(e){if(null!=e){try{return j.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e))}function he(e){if(!Oe(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=we(e),r=[];for(var n in e)("constructor"!=n||!t&&R.call(e,n))&&r.push(n);return r}function fe(e,t,r,n,o){e!==t&&ce(t,(function(i,a){if(o||(o=new re),Oe(i))!function(e,t,r,n,o,i,a){var s=ke(e,r),l=ke(t,r),c=a.get(l);if(c)return void oe(e,r,c);var d=i?i(s,l,r+"",e,t,a):void 0,p=void 0===d;if(p){var h=Se(l),f=!h&&Ce(l),m=!h&&!f&&Re(l);d=l,h||f||m?Se(s)?d=s:je(g=s)&&Te(g)?d=function(e,t){var r=-1,n=e.length;t||(t=Array(n));for(;++r-1&&e%1==0&&e0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ge);function _e(e,t){return e===t||e!==e&&t!==t}var Ee=de(function(){return arguments}())?de:function(e){return je(e)&&R.call(e,"callee")&&!W.call(e,"callee")},Se=Array.isArray;function Te(e){return null!=e&&Pe(e.length)&&!Ae(e)}var Ce=$||function(){return!1};function Ae(e){if(!Oe(e))return!1;var t=ue(e);return t==s||t==l||t==a||t==d}function Pe(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function Oe(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function je(e){return null!=e&&"object"==typeof e}var Re=E?function(e){return function(t){return e(t)}}(E):function(e){return je(e)&&Pe(e.length)&&!!m[ue(e)]};function ze(e){return Te(e)?ne(e,!0):he(e)}var Fe,Ie=(Fe=function(e,t,r,n){fe(e,t,r,n)},me((function(e,t){var r=-1,n=t.length,o=n>1?t[n-1]:void 0,i=n>2?t[2]:void 0;for(o=Fe.length>3&&"function"==typeof o?(n--,o):void 0,i&&function(e,t,r){if(!Oe(r))return!1;var n=typeof t;return!!("number"==n?Te(r)&&be(t,r.length):"string"==n&&t in r)&&_e(r[t],e)}(t[0],t[1],i)&&(o=n<3?void 0:o,n=1),e=Object(e);++r{var n=r(7652);function o(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function i(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}e.exports=n(o),e.exports.strict=n(i),o.proto=o((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return o(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return i(this)},configurable:!0})}))},1497:(e,t,r)=>{"use strict";var n=r(3218);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},5173:(e,t,r)=>{e.exports=r(1497)()},3218:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4909:function(e,t,r){e.exports=function(e){"use strict";function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var r=0;r=this.getNumEmptyDaysAtStart()+this.getDateDifferenceInDays())&&!this.props.showOutOfRangeDays)return null;var o=d(this.getSquareCoordinates(t),2),a=o[0],s=o[1],l=this.getValueForIndex(r),c=e.createElement("rect",i({key:r,width:R,height:R,x:a,y:s,className:this.getClassNameForIndex(r),onClick:function(){return n.handleClick(l)},onMouseOver:function(e){return n.handleMouseOver(e,l)},onMouseLeave:function(e){return n.handleMouseLeave(e,l)}},this.getTooltipDataAttrsForIndex(r)),e.createElement("title",null,this.getTitleForIndex(r))),u=this.props.transformDayElement;return u?u(c,l,r):c}},{key:"renderWeek",value:function(t){var r=this;return e.createElement("g",{key:t,transform:this.getTransformForWeek(t),className:"".concat(F,"week")},j(E).map((function(e){return r.renderSquare(e,t*E+e)})))}},{key:"renderAllWeeks",value:function(){var e=this;return j(this.getWeekCount()).map((function(t){return e.renderWeek(t)}))}},{key:"renderMonthLabels",value:function(){var t=this;return this.props.showMonthLabels?j(this.getWeekCount()-1).map((function(r){var n=C(t.getStartDateWithEmptyDays(),(r+1)*E),o=d(t.getMonthLabelCoordinates(r),2),i=o[0],a=o[1];return n.getDate()>=1&&n.getDate()<=E?e.createElement("text",{key:r,x:i,y:a,className:"".concat(F,"month-label")},t.props.monthLabels[n.getMonth()]):null})):null}},{key:"renderWeekdayLabels",value:function(){var t=this;return this.props.showWeekdayLabels?this.props.weekdayLabels.map((function(r,n){var o=d(t.getWeekdayLabelCoordinates(n),2),i=o[0],a=o[1],s="".concat(t.props.horizontal?"":"".concat(F,"small-text")," ").concat(F,"weekday-label");return 1&n?e.createElement("text",{key:"".concat(i).concat(a),x:i,y:a,className:s},r):null})):null}},{key:"render",value:function(){return this.valueCache=this.getValueCache(this.props),e.createElement("svg",{className:"react-calendar-heatmap",viewBox:this.getViewBox()},e.createElement("g",{transform:this.getTransformForMonthLabels(),className:"".concat(F,"month-labels")},this.renderMonthLabels()),e.createElement("g",{transform:this.getTransformForAllWeeks(),className:"".concat(F,"all-weeks")},this.renderAllWeeks()),e.createElement("g",{transform:this.getTransformForWeekdayLabels(),className:"".concat(F,"weekday-labels")},this.renderWeekdayLabels()))}}]),l}(e.Component);return I.propTypes={values:w.arrayOf(w.shape({date:w.oneOfType([w.string,w.number,w.instanceOf(Date)]).isRequired}).isRequired).isRequired,numDays:w.number,startDate:w.oneOfType([w.string,w.number,w.instanceOf(Date)]),endDate:w.oneOfType([w.string,w.number,w.instanceOf(Date)]),gutterSize:w.number,horizontal:w.bool,showMonthLabels:w.bool,showWeekdayLabels:w.bool,showOutOfRangeDays:w.bool,tooltipDataAttrs:w.oneOfType([w.object,w.func]),titleForValue:w.func,classForValue:w.func,monthLabels:w.arrayOf(w.string),weekdayLabels:w.arrayOf(w.string),onClick:w.func,onMouseOver:w.func,onMouseLeave:w.func,transformDayElement:w.func},I.defaultProps={numDays:null,startDate:O(200),endDate:new Date,gutterSize:1,horizontal:!0,showMonthLabels:!0,showWeekdayLabels:!1,showOutOfRangeDays:!1,tooltipDataAttrs:null,titleForValue:null,classForValue:function(e){return e?"color-filled":"color-empty"},monthLabels:S,weekdayLabels:T,onClick:null,onMouseOver:null,onMouseLeave:null,transformDayElement:null},I}(r(5043))},2730:(e,t,r)=>{"use strict";var n=r(5043),o=r(8853);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r