diff --git a/src/404.html b/src/404.html index f3de311..cb8ec97 100644 --- a/src/404.html +++ b/src/404.html @@ -1,5 +1,5 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file +

404

This page could not be found.

\ No newline at end of file diff --git a/src/_next/static/chunks/2405b48f-2af1a744192dc5b0.js b/src/_next/static/chunks/2405b48f-2af1a744192dc5b0.js new file mode 100644 index 0000000..9194cbb --- /dev/null +++ b/src/_next/static/chunks/2405b48f-2af1a744192dc5b0.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[256],{17692:(t,h,a)=>{a.d(h,{$2y:()=>g,$di:()=>e,D8e:()=>n,DEU:()=>v,E5v:()=>r,a95:()=>d,gBu:()=>H,kEc:()=>z,neC:()=>l,rEt:()=>i});var c=a(98357);function v(t){return(0,c.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 12h-2v-2h2v2zm0-4h-2V6h2v4z"},child:[]}]})(t)}function i(t){return(0,c.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4V6zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zm-1 9h-4v-7h4v7z"},child:[]}]})(t)}function r(t){return(0,c.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M5 20h14v-2H5v2zM19 9h-4V3H9v6H5l7 7 7-7z"},child:[]}]})(t)}function l(t){return(0,c.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M15 9H9v6h6V9zm-2 4h-2v-2h2v2zm8-2V9h-2V7c0-1.1-.9-2-2-2h-2V3h-2v2h-2V3H9v2H7c-1.1 0-2 .9-2 2v2H3v2h2v2H3v2h2v2c0 1.1.9 2 2 2h2v2h2v-2h2v2h2v-2h2c1.1 0 2-.9 2-2v-2h2v-2h-2v-2h2zm-4 6H7V7h10v10z"},child:[]}]})(t)}function d(t){return(0,c.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"},child:[]}]})(t)}function n(t){return(0,c.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 17H4V5h8V3H4c-1.11 0-2 .89-2 2v12a2 2 0 0 0 2 2h4v2h8v-2h4c1.1 0 2-.9 2-2v-3h-2v3z"},child:[]},{tag:"path",attr:{d:"m17 14 5-5-1.41-1.41L18 10.17V3h-2v7.17l-2.59-2.58L12 9z"},child:[]}]})(t)}function g(t){return(0,c.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 9H4v2h16V9zM4 15h16v-2H4v2z"},child:[]}]})(t)}function z(t){return(0,c.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M21 4H3c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 15H3V6h18v13zM9 8h2v2H9V8zM5 8h2v2H5V8zm3 8h8v1H8v-1zm5-8h2v2h-2V8zm-4 4h2v2H9v-2zm-4 0h2v2H5v-2zm8 0h2v2h-2v-2zm4-4h2v2h-2V8zm0 4h2v2h-2v-2z"},child:[]}]})(t)}function e(t){return(0,c.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 22C6.49 22 2 17.51 2 12S6.49 2 12 2s10 4.04 10 9c0 3.31-2.69 6-6 6h-1.77c-.28 0-.5.22-.5.5 0 .12.05.23.13.33.41.47.64 1.06.64 1.67A2.5 2.5 0 0 1 12 22zm0-18c-4.41 0-8 3.59-8 8s3.59 8 8 8c.28 0 .5-.22.5-.5a.54.54 0 0 0-.14-.35c-.41-.46-.63-1.05-.63-1.65a2.5 2.5 0 0 1 2.5-2.5H16c2.21 0 4-1.79 4-4 0-3.86-3.59-7-8-7z"},child:[]},{tag:"circle",attr:{cx:"6.5",cy:"11.5",r:"1.5"},child:[]},{tag:"circle",attr:{cx:"9.5",cy:"7.5",r:"1.5"},child:[]},{tag:"circle",attr:{cx:"14.5",cy:"7.5",r:"1.5"},child:[]},{tag:"circle",attr:{cx:"17.5",cy:"11.5",r:"1.5"},child:[]}]})(t)}function H(t){return(0,c.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"},child:[]}]})(t)}}}]); \ No newline at end of file diff --git a/src/_next/static/chunks/2405b48f-b874e9c59d4f3699.js b/src/_next/static/chunks/2405b48f-b874e9c59d4f3699.js deleted file mode 100644 index 62c2495..0000000 --- a/src/_next/static/chunks/2405b48f-b874e9c59d4f3699.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[256],{17692:(t,h,a)=>{a.d(h,{$2y:()=>n,$di:()=>z,D8e:()=>d,DEU:()=>v,E5v:()=>r,a95:()=>l,gBu:()=>e,kEc:()=>g,rEt:()=>i});var c=a(98357);function v(t){return(0,c.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 12h-2v-2h2v2zm0-4h-2V6h2v4z"},child:[]}]})(t)}function i(t){return(0,c.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4V6zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zm-1 9h-4v-7h4v7z"},child:[]}]})(t)}function r(t){return(0,c.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M5 20h14v-2H5v2zM19 9h-4V3H9v6H5l7 7 7-7z"},child:[]}]})(t)}function l(t){return(0,c.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"},child:[]}]})(t)}function d(t){return(0,c.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 17H4V5h8V3H4c-1.11 0-2 .89-2 2v12a2 2 0 0 0 2 2h4v2h8v-2h4c1.1 0 2-.9 2-2v-3h-2v3z"},child:[]},{tag:"path",attr:{d:"m17 14 5-5-1.41-1.41L18 10.17V3h-2v7.17l-2.59-2.58L12 9z"},child:[]}]})(t)}function n(t){return(0,c.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 9H4v2h16V9zM4 15h16v-2H4v2z"},child:[]}]})(t)}function g(t){return(0,c.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M21 4H3c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 15H3V6h18v13zM9 8h2v2H9V8zM5 8h2v2H5V8zm3 8h8v1H8v-1zm5-8h2v2h-2V8zm-4 4h2v2H9v-2zm-4 0h2v2H5v-2zm8 0h2v2h-2v-2zm4-4h2v2h-2V8zm0 4h2v2h-2v-2z"},child:[]}]})(t)}function z(t){return(0,c.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 22C6.49 22 2 17.51 2 12S6.49 2 12 2s10 4.04 10 9c0 3.31-2.69 6-6 6h-1.77c-.28 0-.5.22-.5.5 0 .12.05.23.13.33.41.47.64 1.06.64 1.67A2.5 2.5 0 0 1 12 22zm0-18c-4.41 0-8 3.59-8 8s3.59 8 8 8c.28 0 .5-.22.5-.5a.54.54 0 0 0-.14-.35c-.41-.46-.63-1.05-.63-1.65a2.5 2.5 0 0 1 2.5-2.5H16c2.21 0 4-1.79 4-4 0-3.86-3.59-7-8-7z"},child:[]},{tag:"circle",attr:{cx:"6.5",cy:"11.5",r:"1.5"},child:[]},{tag:"circle",attr:{cx:"9.5",cy:"7.5",r:"1.5"},child:[]},{tag:"circle",attr:{cx:"14.5",cy:"7.5",r:"1.5"},child:[]},{tag:"circle",attr:{cx:"17.5",cy:"11.5",r:"1.5"},child:[]}]})(t)}function e(t){return(0,c.k5)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"},child:[]}]})(t)}}}]); \ No newline at end of file diff --git a/src/_next/static/chunks/pages/_app-43a422ad93704805.js b/src/_next/static/chunks/pages/_app-f5dc86a6933797f7.js similarity index 72% rename from src/_next/static/chunks/pages/_app-43a422ad93704805.js rename to src/_next/static/chunks/pages/_app-f5dc86a6933797f7.js index 02ff23a..411923c 100644 --- a/src/_next/static/chunks/pages/_app-43a422ad93704805.js +++ b/src/_next/static/chunks/pages/_app-f5dc86a6933797f7.js @@ -22,7 +22,7 @@ from { to { transform: scale(1) rotate(90deg); opacity: 1; -}`,K=w("div")` +}`,G=w("div")` width: 20px; opacity: 0; height: 20px; @@ -55,7 +55,7 @@ to { animation-delay: 180ms; transform: rotate(90deg); } -`,G=b` +`,K=b` from { transform: rotate(0deg); } @@ -70,7 +70,7 @@ to { border-radius: 100%; border-color: ${e=>e.secondary||"#e0e0e0"}; border-right-color: ${e=>e.primary||"#616161"}; - animation: ${G} 1s linear infinite; + animation: ${K} 1s linear infinite; `,$=b` from { transform: scale(0) rotate(45deg); @@ -144,7 +144,7 @@ to { min-width: 20px; animation: ${Z} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; -`,ee=({toast:e})=>{let{icon:t,type:r,iconTheme:i}=e;return void 0!==t?"string"==typeof t?n.createElement(Q,null,t):t:"blank"===r?null:n.createElement(X,null,n.createElement(z,{...i}),"loading"!==r&&n.createElement(V,null,"error"===r?n.createElement(K,{...i}):n.createElement(Y,{...i})))},et=e=>` +`,ee=({toast:e})=>{let{icon:t,type:r,iconTheme:i}=e;return void 0!==t?"string"==typeof t?n.createElement(Q,null,t):t:"blank"===r?null:n.createElement(X,null,n.createElement(z,{...i}),"loading"!==r&&n.createElement(V,null,"error"===r?n.createElement(G,{...i}):n.createElement(Y,{...i})))},et=e=>` 0% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;} 100% {transform: translate3d(0,0,0) scale(1); opacity:1;} `,er=e=>` @@ -174,12 +174,12 @@ to { > * { pointer-events: auto; } -`,ef=16,eh=({reverseOrder:e,position:t="top-center",toastOptions:r,gutter:i,children:o,containerStyle:a,containerClassName:s})=>{let{toasts:u,handlers:c}=F(r);return n.createElement("div",{id:"_rht_toaster",style:{position:"fixed",zIndex:9999,top:ef,left:ef,right:ef,bottom:ef,pointerEvents:"none",...a},className:s,onMouseEnter:c.startPause,onMouseLeave:c.endPause},u.map(r=>{let a=r.position||t,s=el(a,c.calculateOffset(r,{reverseOrder:e,gutter:i,defaultPosition:t}));return n.createElement(ec,{id:r.id,key:r.id,onHeightUpdate:c.updateHeight,className:r.visible?ed:"",style:s},"custom"===r.type?_(r.message,r):o?o(r):n.createElement(eu,{toast:r,position:a}))}))},ep=j},1309:(e,t,r)=>{let n=r(78968),i=(e,t,r)=>n(e,t,r)>=0;e.exports=i},1586:(e,t,r)=>{"use strict";var n=r(95024);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},1853:(e,t,r)=>{"use strict";var n=r(8241),i=r(64215),o=r(57599),a=r(61299);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new i("a function is required");return a(n,o,e)}},1855:(e,t,r)=>{var n=r(72076).Buffer;let i=r(37991),o=r(83606),a=r(73670),s=r(87860),u=r(71495),c=r(11857),l=r(29831),d=r(65804),{KeyObject:f,createSecretKey:h,createPublicKey:p}=r(70103),m=["RS256","RS384","RS512"],g=["ES256","ES384","ES512"],y=["RS256","RS384","RS512"],b=["HS256","HS384","HS512"];l&&(m.splice(m.length,0,"PS256","PS384","PS512"),y.splice(y.length,0,"PS256","PS384","PS512")),e.exports=function(e,t,r,l){let v,w,S;if("function"!=typeof r||l||(l=r,r={}),r||(r={}),r=Object.assign({},r),v=l||function(e,t){if(e)throw e;return t},r.clockTimestamp&&"number"!=typeof r.clockTimestamp)return v(new i("clockTimestamp must be a number"));if(void 0!==r.nonce&&("string"!=typeof r.nonce||""===r.nonce.trim()))return v(new i("nonce must be a non-empty string"));if(void 0!==r.allowInvalidAsymmetricKeyTypes&&"boolean"!=typeof r.allowInvalidAsymmetricKeyTypes)return v(new i("allowInvalidAsymmetricKeyTypes must be a boolean"));let _=r.clockTimestamp||Math.floor(Date.now()/1e3);if(!e)return v(new i("jwt must be provided"));if("string"!=typeof e)return v(new i("jwt must be a string"));let x=e.split(".");if(3!==x.length)return v(new i("jwt malformed"));try{w=s(e,{complete:!0})}catch(e){return v(e)}if(!w)return v(new i("invalid token"));let A=w.header;if("function"==typeof t){if(!l)return v(new i("verify must be called asynchronous if secret or public key is provided as a callback"));S=t}else S=function(e,r){return r(null,t)};return S(A,function(t,s){let l;if(t)return v(new i("error in secret or public key callback: "+t.message));let S=""!==x[2].trim();if(!S&&s)return v(new i("jwt signature is required"));if(S&&!s)return v(new i("secret or public key must be provided"));if(!S&&!r.algorithms)return v(new i('please specify "none" in "algorithms" to verify unsigned tokens'));if(null!=s&&!(s instanceof f))try{s=p(s)}catch(e){try{s=h("string"==typeof s?n.from(s):s)}catch(e){return v(new i("secretOrPublicKey is not valid key material"))}}if(r.algorithms||("secret"===s.type?r.algorithms=b:["rsa","rsa-pss"].includes(s.asymmetricKeyType)?r.algorithms=y:"ec"===s.asymmetricKeyType?r.algorithms=g:r.algorithms=m),-1===r.algorithms.indexOf(w.header.alg))return v(new i("invalid algorithm"));if(A.alg.startsWith("HS")&&"secret"!==s.type)return v(new i(`secretOrPublicKey must be a symmetric key when using ${A.alg}`));if(/^(?:RS|PS|ES)/.test(A.alg)&&"public"!==s.type)return v(new i(`secretOrPublicKey must be an asymmetric key when using ${A.alg}`));if(!r.allowInvalidAsymmetricKeyTypes)try{c(A.alg,s)}catch(e){return v(e)}try{l=d.verify(e,w.header.alg,s)}catch(e){return v(e)}if(!l)return v(new i("invalid signature"));let k=w.payload;if(void 0!==k.nbf&&!r.ignoreNotBefore){if("number"!=typeof k.nbf)return v(new i("invalid nbf value"));if(k.nbf>_+(r.clockTolerance||0))return v(new o("jwt not active",new Date(1e3*k.nbf)))}if(void 0!==k.exp&&!r.ignoreExpiration){if("number"!=typeof k.exp)return v(new i("invalid exp value"));if(_>=k.exp+(r.clockTolerance||0))return v(new a("jwt expired",new Date(1e3*k.exp)))}if(r.audience){let e=Array.isArray(r.audience)?r.audience:[r.audience];if(!(Array.isArray(k.aud)?k.aud:[k.aud]).some(function(t){return e.some(function(e){return e instanceof RegExp?e.test(t):e===t})}))return v(new i("jwt audience invalid. expected: "+e.join(" or ")))}if(r.issuer&&("string"==typeof r.issuer&&k.iss!==r.issuer||Array.isArray(r.issuer)&&-1===r.issuer.indexOf(k.iss)))return v(new i("jwt issuer invalid. expected: "+r.issuer));if(r.subject&&k.sub!==r.subject)return v(new i("jwt subject invalid. expected: "+r.subject));if(r.jwtid&&k.jti!==r.jwtid)return v(new i("jwt jwtid invalid. expected: "+r.jwtid));if(r.nonce&&k.nonce!==r.nonce)return v(new i("jwt nonce invalid. expected: "+r.nonce));if(r.maxAge){if("number"!=typeof k.iat)return v(new i("iat required when maxAge is specified"));let e=u(r.maxAge,k.iat);if(void 0===e)return v(new i('"maxAge" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'));if(_>=e+(r.clockTolerance||0))return v(new a("maxAge exceeded",new Date(1e3*e)))}return!0===r.complete?v(null,{header:A,payload:k,signature:w.signature}):v(null,k)})}},1943:e=>{e.exports=function(e){var t=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(r,n,i){return" "===r?r:e[t[Math.round(Math.random()*(t.length-2))]](r)}}},2340:e=>{"use strict";e.exports=ReferenceError},2427:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(67541);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},2453:(e,t,r)=>{let n=r(60697),i=(e,t,r)=>n(e,t,">",r);e.exports=i},2549:(e,t,r)=>{var n=r(72076),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},4391:e=>{var t="[object Number]",r=Object.prototype.toString;function n(e){return!!e&&"object"==typeof e}function i(e){return"number"==typeof e||n(e)&&r.call(e)==t}e.exports=i},5193:(e,t,r)=>{var n=r(72076),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},5305:(e,t,r)=>{"use strict";r.d(t,{N:()=>o});var n=r(44109),i=r(30362);let o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],[t,r]=(0,n.useState)(e);return(0,n.useEffect)(()=>{let e=async()=>{r(await (0,i.Mi)().get("TM_useUserCharacters")||[])};return e(),window.addEventListener("update-user-characters",e),()=>{window.removeEventListener("update-user-characters",e)}},[]),[t,(0,n.useCallback)(async e=>{let t=await (0,i.Mi)().get("TM_useUserCharacters")||[],n="function"==typeof e?e(t):e;r(n),await (0,i.Mi)().set("TM_useUserCharacters",n);{let e=new Event("update-user-characters");window.dispatchEvent(e)}},[])]}},6333:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},8241:(e,t,r)=>{"use strict";var n=r(61293);e.exports=Function.prototype.bind||n},8423:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(88017);function i(e){let{className:t="",width:r="18px",height:i="18px",...o}=e;return(0,n.jsx)("svg",{className:t,width:r,height:i,viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...o,children:(0,n.jsxs)("g",{fill:"currentColor",children:[(0,n.jsx)("line",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",x1:"5.965",x2:"11.034",y1:"7.908",y2:"5.092"}),(0,n.jsx)("line",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",x1:"5.965",x2:"11.034",y1:"10.092",y2:"12.908"}),(0,n.jsx)("circle",{cx:"4",cy:"9",fill:"none",r:"2.25",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),(0,n.jsx)("circle",{cx:"13",cy:"4",fill:"none",r:"2.25",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),(0,n.jsx)("circle",{cx:"13",cy:"14",fill:"none",r:"2.25",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})]})})}},9278:(e,t,r)=>{"use strict";var n=r(57644);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},9865:e=>{"use strict";function t(e){return(e/8|0)+ +(e%8!=0)}var r={ES256:t(256),ES384:t(384),ES512:t(521)};function n(e){var t=r[e];if(t)return t;throw Error('Unknown algorithm "'+e+'"')}e.exports=n},10513:(e,t,r)=>{"use strict";var n;n={value:!0},t.MH=n=n=void 0;let i=r(68716);function o(e){return e.match(/[^a-f0-9]/i)?NaN:parseInt(e,16)}function a(e,t,r){let n=o(e);if(Number.isNaN(n)||void 0!==r&&r!==e.length)throw SyntaxError(i.errorMessages.get(t));return n}function s(e){return String.fromCharCode(a(e,i.ErrorType.MalformedHexadecimal,2))}function u(e,t){let r=a(e,i.ErrorType.MalformedUnicode,4);return void 0!==t?String.fromCharCode(r,a(t,i.ErrorType.MalformedUnicode,4)):String.fromCharCode(r)}function c(e){return"{"===e.charAt(0)&&"}"===e.charAt(e.length-1)}function l(e){if(!c(e))throw SyntaxError(i.errorMessages.get(i.ErrorType.MalformedUnicode));let t=a(e.slice(1,-1),i.ErrorType.MalformedUnicode);try{return String.fromCodePoint(t)}catch(e){throw e instanceof RangeError?SyntaxError(i.errorMessages.get(i.ErrorType.CodePointLimit)):e}}function d(e,t=!1){if(t)throw SyntaxError(i.errorMessages.get(i.ErrorType.OctalDeprecation));return String.fromCharCode(parseInt(e,8))}n={enumerable:!0,get:function(){return i.ErrorType}},n={enumerable:!0,get:function(){return i.errorMessages}};let f=new Map([["b","\b"],["f","\f"],["n","\n"],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function h(e){return f.get(e)||e}let p=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function m(e,t=!1){return e.replace(p,function(e,r,n,o,a,c,f,p,m){if(void 0!==r)return"\\";if(void 0!==n)return s(n);if(void 0!==o)return l(o);if(void 0!==a)return u(a,c);if(void 0!==f)return u(f);if("0"===p)return"\0";if(void 0!==p)return d(p,!t);if(void 0!==m)return h(m);throw SyntaxError(i.errorMessages.get(i.ErrorType.EndOfString))})}t.MH=m,n=m},10701:(e,t,r)=>{"use strict";var n=r(27604);e.exports=n.getPrototypeOf||null},10815:(e,t,r)=>{var n="/",i=r(2272),o=r(72076).Buffer;!function(){var t={992:function(e){e.exports=function(e,r,n){if(e.filter)return e.filter(r,n);if(null==e||"function"!=typeof r)throw TypeError();for(var i=[],o=0;o1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;ie.length)&&(r=e.length),e.substring(r-t.length,r)===t}function _(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,r-e.length)}var x="",A="",k="",E="",M={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},T=10;function P(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach(function(t){r[t]=e[t]}),Object.defineProperty(r,"message",{value:e.message}),r}function I(e){return v(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function C(e,t,r){var n="",o="",a=0,s="",u=!1,c=I(e),l=c.split("\n"),d=I(t).split("\n"),f=0,h="";if("strictEqual"===r&&"object"===b(e)&&"object"===b(t)&&null!==e&&null!==t&&(r="strictEqualObject"),1===l.length&&1===d.length&&l[0]!==d[0]){var p=l[0].length+d[0].length;if(p<=T){if(("object"!==b(e)||null===e)&&("object"!==b(t)||null===t)&&(0!==e||0!==t))return"".concat(M[r],"\n\n")+"".concat(l[0]," !== ").concat(d[0],"\n")}else if("strictEqualObject"!==r&&p<(i.stderr&&i.stderr.isTTY?i.stderr.columns:80)){for(;l[0][f]===d[0][f];)f++;f>2&&(h="\n ".concat(_(" ",f),"^"),f=0)}}for(var m=l[l.length-1],g=d[d.length-1];m===g&&(f++<2?s="\n ".concat(m).concat(s):n=m,l.pop(),d.pop(),0!==l.length&&0!==d.length);)m=l[l.length-1],g=d[d.length-1];var y=Math.max(l.length,d.length);if(0===y){var v=c.split("\n");if(v.length>30)for(v[26]="".concat(x,"...").concat(E);v.length>27;)v.pop();return"".concat(M.notIdentical,"\n\n").concat(v.join("\n"),"\n")}f>3&&(s="\n".concat(x,"...").concat(E).concat(s),u=!0),""!==n&&(s="\n ".concat(n).concat(s),n="");var w=0,P=M[r]+"\n".concat(A,"+ actual").concat(E," ").concat(k,"- expected").concat(E),C=" ".concat(x,"...").concat(E," Lines skipped");for(f=0;f1&&f>2&&(O>4?(o+="\n".concat(x,"...").concat(E),u=!0):O>3&&(o+="\n ".concat(d[f-2]),w++),o+="\n ".concat(d[f-1]),w++),a=f,n+="\n".concat(k,"-").concat(E," ").concat(d[f]),w++;else if(d.length1&&f>2&&(O>4?(o+="\n".concat(x,"...").concat(E),u=!0):O>3&&(o+="\n ".concat(l[f-2]),w++),o+="\n ".concat(l[f-1]),w++),a=f,o+="\n".concat(A,"+").concat(E," ").concat(l[f]),w++;else{var R=d[f],j=l[f],D=j!==R&&(!S(j,",")||j.slice(0,-1)!==R);D&&S(R,",")&&R.slice(0,-1)===j&&(D=!1,j+=","),D?(O>1&&f>2&&(O>4?(o+="\n".concat(x,"...").concat(E),u=!0):O>3&&(o+="\n ".concat(l[f-2]),w++),o+="\n ".concat(l[f-1]),w++),a=f,o+="\n".concat(A,"+").concat(E," ").concat(j),n+="\n".concat(k,"-").concat(E," ").concat(R),w+=2):(o+=n,n="",(1===O||0===f)&&(o+="\n ".concat(j),w++))}if(w>20&&f30)for(p[26]="".concat(x,"...").concat(E);p.length>27;)p.pop();r=1===p.length?c(this,y(t).call(this,"".concat(h," ").concat(p[0]))):c(this,y(t).call(this,"".concat(h,"\n\n").concat(p.join("\n"),"\n")))}else{var m=I(u),g="",v=M[o];"notDeepEqual"===o||"notEqual"===o?(m="".concat(M[o],"\n\n").concat(m)).length>1024&&(m="".concat(m.slice(0,1021),"...")):(g="".concat(I(d)),m.length>512&&(m="".concat(m.slice(0,509),"...")),g.length>512&&(g="".concat(g.slice(0,509),"...")),"deepEqual"===o||"equal"===o?m="".concat(v,"\n\n").concat(m,"\n\nshould equal\n\n"):g=" ".concat(o," ").concat(g)),r=c(this,y(t).call(this,"".concat(m).concat(g)))}return Error.stackTraceLimit=f,r.generatedMessage=!n,Object.defineProperty(l(r),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),r.code="ERR_ASSERTION",r.actual=u,r.expected=d,r.operator=o,Error.captureStackTrace&&Error.captureStackTrace(l(r),s),r.stack,r.name="AssertionError",c(r)}return d(t,e),u(t,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:v.custom,value:function(e,t){return v(this,n({},t,{customInspect:!1,depth:0}))}}]),t}(f(Error));e.exports=O},23:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function o(e,t){return t&&("object"===n(t)||"function"==typeof t)?t:a(e)}function a(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l,d,f={};function h(e,t,r){function n(e,r,n){return"string"==typeof t?t:t(e,r,n)}r||(r=Error);var a=function(t){function r(t,a,u){var c;return i(this,r),(c=o(this,s(r).call(this,n(t,a,u)))).code=e,c}return u(r,t),r}(r);f[e]=a}function p(e,t){if(!Array.isArray(e))return"of ".concat(t," ").concat(String(e));var r=e.length;return(e=e.map(function(e){return String(e)}),r>2)?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}function m(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function g(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function y(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}h("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),h("ERR_INVALID_ARG_TYPE",function(e,t,i){if(void 0===l&&(l=r(167)),l("string"==typeof e,"'name' must be a string"),"string"==typeof t&&m(t,"not ")?(o="must not be",t=t.replace(/^not /,"")):o="must be",g(e," argument"))a="The ".concat(e," ").concat(o," ").concat(p(t,"type"));else{var o,a,s=y(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(s," ").concat(o," ").concat(p(t,"type"))}return a+". Received type ".concat(n(i))},TypeError),h("ERR_INVALID_ARG_VALUE",function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===d&&(d=r(177));var i=d.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(n,". Received ").concat(i)},TypeError,RangeError),h("ERR_INVALID_RETURN_VALUE",function(e,t,r){var i;return i=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")},TypeError),h("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=Array(e),n=0;n0,"At least one arg needs to be specified");var i="The ",o=t.length;switch(t=t.map(function(e){return'"'.concat(e,'"')}),o){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,o-1).join(", "),i+=", and ".concat(t[o-1]," arguments")}return"".concat(i," must be specified")},TypeError),e.exports.codes=f},176:function(e,t,r){"use strict";function n(e,t){return a(e)||o(e,t)||i()}function i(){throw TypeError("Invalid attempt to destructure non-iterable instance")}function o(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}function a(e){if(Array.isArray(e))return e}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var u=void 0!==/a/g.flags,c=function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t},l=function(e){var t=[];return e.forEach(function(e,r){return t.push([r,e])}),t},d=Object.is?Object.is:r(208),f=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},h=Number.isNaN?Number.isNaN:r(718);function p(e){return e.call.bind(e)}var m=p(Object.prototype.hasOwnProperty),g=p(Object.prototype.propertyIsEnumerable),y=p(Object.prototype.toString),b=r(177).types,v=b.isAnyArrayBuffer,w=b.isArrayBufferView,S=b.isDate,_=b.isMap,x=b.isRegExp,A=b.isSet,k=b.isNativeError,E=b.isBoxedPrimitive,M=b.isNumberObject,T=b.isStringObject,P=b.isBooleanObject,I=b.isBigIntObject,C=b.isSymbolObject,O=b.isFloat32Array,R=b.isFloat64Array;function j(e){if(0===e.length||e.length>10)return!0;for(var t=0;t57)return!0}return 10===e.length&&e>=0x100000000}function D(e){return Object.keys(e).filter(j).concat(f(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function L(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i-1?i(r):r}},139:function(e,t,r){"use strict";var n=r(212),i=r(192),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||n.call(a,o),u=i("%Object.getOwnPropertyDescriptor%",!0),c=i("%Object.defineProperty%",!0),l=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){var t=s(n,a,arguments);return u&&c&&u(t,"length").configurable&&c(t,"length",{value:1+l(0,e.length-(arguments.length-1))}),t};var d=function(){return s(n,o,arguments)};c?c(e.exports,"apply",{value:d}):e.exports.apply=d},69:function(e,t,r){"use strict";var n=r(935),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,u=function(e){return"function"==typeof e&&"[object Function]"===o.call(e)},c=function(){var e={};try{for(var t in s(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}},l=s&&c(),d=function(e,t,r,n){(!(t in e)||u(n)&&n())&&(l?s(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r)},f=function(e,t){var r=arguments.length>2?arguments[2]:{},o=n(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===C(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=j(e),n=r.length>0?r[0]:"",i=D("%"+n+"%",t),o=i.name,a=i.value,s=!1,l=i.alias;l&&(n=l[0],T(r,M([0,1],l)));for(var d=1,f=!0;d=r.length){var y=h(a,p);a=(f=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[p]}else f=E(a,p),a=a[p];f&&!s&&(S[o]=a)}}return a}},14:function(e){"use strict";var t={__proto__:null,foo:{}},r=Object;e.exports=function(){return({__proto__:t}).foo===t.foo&&!(t instanceof r)}},942:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(773);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},773:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(t in e[t]=n,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==n||!0!==o.enumerable)return!1}return!0}},115:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(832);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},832:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(t in e[t]=n,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==n||!0!==o.enumerable)return!1}return!0}},270:function(e,t,r){"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=r(212);e.exports=o.call(n,i)},782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},157:function(e){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,r=Object.prototype.toString,n=function(e){return(!t||!e||"object"!=typeof e||!(Symbol.toStringTag in e))&&"[object Arguments]"===r.call(e)},i=function(e){return!!n(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==r.call(e)&&"[object Function]"===r.call(e.callee)},o=function(){return n(arguments)}();n.isLegacyArguments=i,e.exports=o?n:i},391:function(e){"use strict";var t=Object.prototype.toString,r=Function.prototype.toString,n=/^\s*(?:function)?\*/,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,o=Object.getPrototypeOf,a=function(){if(!i)return!1;try{return Function("return function*() {}")()}catch(e){}}(),s=a?o(a):{};e.exports=function(e){return"function"==typeof e&&(!!n.test(r.call(e))||(i?o(e)===s:"[object GeneratorFunction]"===t.call(e)))}},460:function(e){"use strict";e.exports=function(e){return e!=e}},718:function(e,t,r){"use strict";var n=r(139),i=r(69),o=r(460),a=r(625),s=r(171),u=n(a(),Number);i(u,{getPolyfill:a,implementation:o,shim:s}),e.exports=u},625:function(e,t,r){"use strict";var n=r(460);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},171:function(e,t,r){"use strict";var n=r(69),i=r(625);e.exports=function(){var e=i();return n(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},994:function(e,t,n){"use strict";var i=n(144),o=n(349),a=n(256),s=a("Object.prototype.toString"),u=n(942)()&&"symbol"==typeof Symbol.toStringTag,c=o(),l=a("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r-1)}},208:function(e){"use strict";var t=function(e){return e!=e};e.exports=function(e,r){return 0===e&&0===r?1/e==1/r:!!(e===r||t(e)&&t(r))}},579:function(e,t,r){"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=r(412),s=Object.prototype.propertyIsEnumerable,u=!s.call({toString:null},"toString"),c=s.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!f["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{d(window[e])}catch(e){return!0}}catch(e){return!0}return!1}(),p=function(e){if("undefined"==typeof window||!h)return d(e);try{return d(e)}catch(e){return!1}};n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===o.call(e),n=a(e),s=t&&"[object String]"===o.call(e),d=[];if(!t&&!r&&!n)throw TypeError("Object.keys called on a non-object");var f=c&&r;if(s&&e.length>0&&!i.call(e,0))for(var h=0;h0)for(var m=0;m=0&&"[object Function]"===t.call(e.callee)),n}},369:function(e){e.exports=function(e){return e instanceof o}},584:function(e,t,r){"use strict";var n=r(157),i=r(391),o=r(490),a=r(994);function s(e){return e.call.bind(e)}var u="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,l=s(Object.prototype.toString),d=s(Number.prototype.valueOf),f=s(String.prototype.valueOf),h=s(Boolean.prototype.valueOf);if(u)var p=s(BigInt.prototype.valueOf);if(c)var m=s(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function y(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch}function b(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||W(e)}function v(e){return"Uint8Array"===o(e)}function w(e){return"Uint8ClampedArray"===o(e)}function S(e){return"Uint16Array"===o(e)}function _(e){return"Uint32Array"===o(e)}function x(e){return"Int8Array"===o(e)}function A(e){return"Int16Array"===o(e)}function k(e){return"Int32Array"===o(e)}function E(e){return"Float32Array"===o(e)}function M(e){return"Float64Array"===o(e)}function T(e){return"BigInt64Array"===o(e)}function P(e){return"BigUint64Array"===o(e)}function I(e){return"[object Map]"===l(e)}function C(e){return"undefined"!=typeof Map&&(I.working?I(e):e instanceof Map)}function O(e){return"[object Set]"===l(e)}function R(e){return"undefined"!=typeof Set&&(O.working?O(e):e instanceof Set)}function j(e){return"[object WeakMap]"===l(e)}function D(e){return"undefined"!=typeof WeakMap&&(j.working?j(e):e instanceof WeakMap)}function L(e){return"[object WeakSet]"===l(e)}function N(e){return L(e)}function B(e){return"[object ArrayBuffer]"===l(e)}function U(e){return"undefined"!=typeof ArrayBuffer&&(B.working?B(e):e instanceof ArrayBuffer)}function F(e){return"[object DataView]"===l(e)}function W(e){return"undefined"!=typeof DataView&&(F.working?F(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=y,t.isArrayBufferView=b,t.isUint8Array=v,t.isUint8ClampedArray=w,t.isUint16Array=S,t.isUint32Array=_,t.isInt8Array=x,t.isInt16Array=A,t.isInt32Array=k,t.isFloat32Array=E,t.isFloat64Array=M,t.isBigInt64Array=T,t.isBigUint64Array=P,I.working="undefined"!=typeof Map&&I(new Map),t.isMap=C,O.working="undefined"!=typeof Set&&O(new Set),t.isSet=R,j.working="undefined"!=typeof WeakMap&&j(new WeakMap),t.isWeakMap=D,L.working="undefined"!=typeof WeakSet&&L(new WeakSet),t.isWeakSet=N,B.working="undefined"!=typeof ArrayBuffer&&B(new ArrayBuffer),t.isArrayBuffer=U,F.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&F(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=W;var H="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function q(e){return"[object SharedArrayBuffer]"===l(e)}function K(e){return void 0!==H&&(void 0===q.working&&(q.working=q(new H)),q.working?q(e):e instanceof H)}function G(e){return"[object AsyncFunction]"===l(e)}function z(e){return"[object Map Iterator]"===l(e)}function $(e){return"[object Set Iterator]"===l(e)}function J(e){return"[object Generator]"===l(e)}function Y(e){return"[object WebAssembly.Module]"===l(e)}function V(e){return g(e,d)}function X(e){return g(e,f)}function Z(e){return g(e,h)}function Q(e){return u&&g(e,p)}function ee(e){return c&&g(e,m)}function et(e){return V(e)||X(e)||Z(e)||Q(e)||ee(e)}function er(e){return"undefined"!=typeof Uint8Array&&(U(e)||K(e))}t.isSharedArrayBuffer=K,t.isAsyncFunction=G,t.isMapIterator=z,t.isSetIterator=$,t.isGeneratorObject=J,t.isWebAssemblyCompiledModule=Y,t.isNumberObject=V,t.isStringObject=X,t.isBooleanObject=Z,t.isBigIntObject=Q,t.isSymbolObject=ee,t.isBoxedPrimitive=et,t.isAnyArrayBuffer=er,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw Error(e+" is not supported in userland")}})})},177:function(e,t,r){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),s=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),w(r)?n.showHidden=r:r&&t._extend(n,r),E(n.showHidden)&&(n.showHidden=!1),E(n.depth)&&(n.depth=2),E(n.colors)&&(n.colors=!1),E(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),h(n,e,n.depth)}function l(e,t){var r=c.styles[t];return r?"\x1b["+c.colors[r][0]+"m"+e+"\x1b["+c.colors[r][1]+"m":e}function d(e,t){return e}function f(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function h(e,r,n){if(e.customInspect&&r&&C(r.inspect)&&r.inspect!==t.inspect&&!(r.constructor&&r.constructor.prototype===r)){var i,o=r.inspect(n,e);return A(o)||(o=h(e,o,n)),o}var a=p(e,r);if(a)return a;var s=Object.keys(r),u=f(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),I(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return m(r);if(0===s.length){if(C(r)){var c=r.name?": "+r.name:"";return e.stylize("[Function"+c+"]","special")}if(M(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(P(r))return e.stylize(Date.prototype.toString.call(r),"date");if(I(r))return m(r)}var l="",d=!1,w=["{","}"];return(v(r)&&(d=!0,w=["[","]"]),C(r)&&(l=" [Function"+(r.name?": "+r.name:"")+"]"),M(r)&&(l=" "+RegExp.prototype.toString.call(r)),P(r)&&(l=" "+Date.prototype.toUTCString.call(r)),I(r)&&(l=" "+m(r)),0!==s.length||d&&0!=r.length)?n<0?M(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),i=d?g(e,r,n,u,s):s.map(function(t){return y(e,r,n,u,t,d)}),e.seen.pop(),b(i,l,w)):w[0]+l+w[1]}function p(e,t){if(E(t))return e.stylize("undefined","undefined");if(A(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return x(t)?e.stylize(""+t,"number"):w(t)?e.stylize(""+t,"boolean"):S(t)?e.stylize("null","null"):void 0}function m(e){return"["+Error.prototype.toString.call(e)+"]"}function g(e,t,r,n,i){for(var o=[],a=0,s=t.length;ae.seen.indexOf(u.value)?(s=S(r)?h(e,u.value,null):h(e,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),E(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function b(e,t,r){var n=0;return e.reduce(function(e,t){return n++,t.indexOf("\n")>=0&&n++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function v(e){return Array.isArray(e)}function w(e){return"boolean"==typeof e}function S(e){return null===e}function _(e){return null==e}function x(e){return"number"==typeof e}function A(e){return"string"==typeof e}function k(e){return"symbol"==typeof e}function E(e){return void 0===e}function M(e){return T(e)&&"[object RegExp]"===R(e)}function T(e){return"object"==typeof e&&null!==e}function P(e){return T(e)&&"[object Date]"===R(e)}function I(e){return T(e)&&("[object Error]"===R(e)||e instanceof Error)}function C(e){return"function"==typeof e}function O(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function R(e){return Object.prototype.toString.call(e)}function j(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(!a[e=e.toUpperCase()]){if(s.test(e)){var r=i.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){}}return a[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(584),t.isArray=v,t.isBoolean=w,t.isNull=S,t.isNullOrUndefined=_,t.isNumber=x,t.isString=A,t.isSymbol=k,t.isUndefined=E,t.isRegExp=M,t.types.isRegExp=M,t.isObject=T,t.isDate=P,t.types.isDate=P,t.isError=I,t.types.isNativeError=I,t.isFunction=C,t.isPrimitive=O,t.isBuffer=r(369);var D=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function L(){var e=new Date,t=[j(e.getHours()),j(e.getMinutes()),j(e.getSeconds())].join(":");return[e.getDate(),D[e.getMonth()],t].join(" ")}function N(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",L(),t.format.apply(t,arguments))},t.inherits=r(782),t._extend=function(e,t){if(!t||!T(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var B="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function U(e,t){if(!e){var r=Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}function F(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r{"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=r(8241);e.exports=o.call(n,i)},11361:(e,t,r)=>{"use strict";var n=r(61271),i=r(1853),o=i([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i([r]):r}},11857:(e,t,r)=>{let n=r(52051),i=r(74121),o={ec:["ES256","ES384","ES512"],rsa:["RS256","PS256","RS384","PS384","RS512","PS512"],"rsa-pss":["PS256","PS384","PS512"]},a={ES256:"prime256v1",ES384:"secp384r1",ES512:"secp521r1"};e.exports=function(e,t){if(!e||!t)return;let r=t.asymmetricKeyType;if(!r)return;let s=o[r];if(!s)throw Error(`Unknown key type "${r}".`);if(!s.includes(e))throw Error(`"alg" parameter for "${r}" key type must be one of: ${s.join(", ")}.`);if(n)switch(r){case"ec":let u=t.asymmetricKeyDetails.namedCurve,c=a[e];if(u!==c)throw Error(`"alg" parameter "${e}" requires curve "${c}".`);break;case"rsa-pss":if(i){let r=parseInt(e.slice(-3),10),{hashAlgorithm:n,mgf1HashAlgorithm:i,saltLength:o}=t.asymmetricKeyDetails;if(n!==`sha${r}`||i!==n)throw Error(`Invalid key for this operation, its RSA-PSS parameters do not meet the requirements of "alg" ${e}.`);if(void 0!==o&&o>r>>3)throw Error(`Invalid key for this operation, its RSA-PSS parameter saltLength does not meet the requirements of "alg" ${e}.`)}}}},11921:e=>{e.exports=function(e,t){e=e||" he is here ";var r={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},n=[].concat(r.up,r.down,r.mid);function i(e){return Math.floor(Math.random()*e)}function o(e){var t=!1;return n.filter(function(r){t=r===e}),t}return function(e,t){var n,a,s="";for(a in(t=t||{}).up=void 0===t.up||t.up,t.mid=void 0===t.mid||t.mid,t.down=void 0===t.down||t.down,t.size=void 0!==t.size?t.size:"maxi",e=e.split(""))if(!o(a)){switch(s+=e[a],n={up:0,down:0,mid:0},t.size){case"mini":n.up=i(8),n.mid=i(2),n.down=i(8);break;case"maxi":n.up=i(16)+3,n.mid=i(4)+1,n.down=i(64)+3;break;default:n.up=i(8)+1,n.mid=i(6)/2,n.down=i(8)+1}var u=["up","mid","down"];for(var c in u)for(var l=u[c],d=0;d<=n[l];d++)t[l]&&(s+=r[l][i(r[l].length)])}return s}(e,t)}},11955:e=>{var t=1/0,r=17976931348623157e292,n=0/0,i="[object Symbol]",o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt,l=Object.prototype.toString;function d(e){return"number"==typeof e&&e==g(e)}function f(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function h(e){return!!e&&"object"==typeof e}function p(e){return"symbol"==typeof e||h(e)&&l.call(e)==i}function m(e){return e?(e=y(e))===t||e===-t?(e<0?-1:1)*r:e==e?e:0:0===e?e:0}function g(e){var t=m(e),r=t%1;return t==t?r?t-r:t:0}function y(e){if("number"==typeof e)return e;if(p(e))return n;if(f(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=f(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var r=s.test(e);return r||u.test(e)?c(e.slice(2),r?2:8):a.test(e)?n:+e}e.exports=d},12239:e=>{"use strict";e.exports=Math.max},14574:(e,t,r)=>{"use strict";t.parse=r(87433),t.stringify=r(87619)},14804:(e,t,r)=>{var n=r(2549).Buffer,i=r(29979),o=r(31759),a=r(66856),s=r(26512),u=r(65723);function c(e,t){return n.from(e,t).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function l(e,t,r){r=r||"utf8";var n=c(s(e),"binary"),i=c(s(t),r);return u.format("%s.%s",n,i)}function d(e){var t=e.header,r=e.payload,n=e.secret||e.privateKey,i=e.encoding,a=o(t.alg),s=l(t,r,i),c=a.sign(s,n);return u.format("%s.%s",s,c)}function f(e){var t=new i(e.secret||e.privateKey||e.key);this.readable=!0,this.header=e.header,this.encoding=e.encoding,this.secret=this.privateKey=this.key=t,this.payload=new i(e.payload),this.secret.once("close",(function(){!this.payload.writable&&this.readable&&this.sign()}).bind(this)),this.payload.once("close",(function(){!this.secret.writable&&this.readable&&this.sign()}).bind(this))}u.inherits(f,a),f.prototype.sign=function(){try{var e=d({header:this.header,payload:this.payload.buffer,secret:this.secret.buffer,encoding:this.encoding});return this.emit("done",e),this.emit("data",e),this.emit("end"),this.readable=!1,e}catch(e){this.readable=!1,this.emit("error",e),this.emit("close")}},f.sign=d,e.exports=f},15108:e=>{"use strict";let t=/{(\w+)}/,r="^https://github.com/([^\\s\\/\\?]+)/([^\\s\\/\\?]+)((/[^\\s\\/\\?]+)*)/?(\\?[^\\s]*)?$",n=new RegExp(r),i=new RegExp("https://[^\\s]+/plugins/([^\\s?]+)\\??.*|(".concat(r,")")),o=async(e,t)=>{var r;let i=n.test(e)?e.replace(n,"$1/$2"):e;n.lastIndex=0;let[,,,o,,a]=n.exec(e)||[],s=o.startsWith("/tree")&&!o.startsWith("/tree/main")?o.replace("/tree",""):"/main",u=new URLSearchParams(a).get("token"),c=async e=>u?fetch("https://api.github.com/repos/".concat(i,"/contents/").concat(e,"?time=").concat(Date.now()),{headers:{Authorization:"Bearer ".concat(u)}}).then(async t=>{let r=await t.json();if(!r.download_url)throw Error("Failed to fetch ".concat(e));return r.download_url}):"https://raw.githubusercontent.com/".concat(i).concat(s,"/").concat(e,"?time=").concat(Date.now()),[l,d,f]=await Promise.all([fetch(await c("plugin.json")).then(async e=>e.json()),fetch(await c("README.md")).then(async e=>e.text()),fetch(await c("implementation.js")).then(e=>{if(404===e.status)return{text:()=>""};if(!e.ok)throw Error("Failed to fetch implementation file at "+i);return e}).then(e=>e.text())]);if(!l.httpAction&&!f)throw Error("Invalid plugin");if(!(null===(r=l.openaiSpec)||void 0===r?void 0:r.name))throw console.error("Invalid openaiSpec from github plugin"),Error("Invalid plugin");return{...l,id:l.openaiSpec.name,overviewMarkdown:d,code:f,githubURL:"https://github.com/".concat(i).concat(o),system:!1,org:null,...t}},a=(e,t)=>{let r=[];try{let t="object"==typeof e?e:JSON.parse(e);r.push(...Object.keys(t.parameters.properties))}catch(e){}if(t)try{let e="object"==typeof t?t:JSON.parse(t);r.push(...e.map(e=>e.name))}catch(e){}return r},s=(e,r)=>{let{url:n,method:i,hasHeaders:o,hasBody:a,requestBody:s,requestHeaders:u}=e;if(!n||!n.length)throw Error("URL is required.");if(!n.startsWith("http://")&&!n.startsWith("https://")&&!t.test(n))throw Error("URL must start with http:// or https://");if(!["GET","POST","PUT","DELETE","PATCH"].includes(i))throw Error("Method must be one of GET, POST, PUT, DELETE.")},u=e=>{let[t,...r]=e.split("?"),n=r.join("?"),i=t.split(RegExp("(?{var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],r=0;r{let t="2.0.0",r=256,n=Number.MAX_SAFE_INTEGER||0x1fffffffffffff,i=16,o=250,a=["major","premajor","minor","preminor","patch","prepatch","prerelease"];e.exports={MAX_LENGTH:r,MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:o,MAX_SAFE_INTEGER:n,RELEASE_TYPES:a,SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},16241:(e,t,r)=>{let n=r(22626),i=(e,t,r)=>{let i=new n(e,r),o=new n(t,r);return i.compare(o)||i.compareBuild(o)};e.exports=i},16769:(e,t,r)=>{"use strict";r.d(t,{Mi:()=>u,c7:()=>a});let n=null,i=e=>{try{return JSON.parse(e)}catch(e){return null}},o={get:e=>i(window.localStorage.getItem(e)),set:(e,t)=>window.localStorage.setItem(e,JSON.stringify(t)),del:e=>window.localStorage.removeItem(e),getMany:e=>e.map(e=>i(window.localStorage.getItem(e))),setMany(e){e.forEach(e=>{let[t,r]=e;return window.localStorage.setItem(t,JSON.stringify(r))})},delMany(e){e.forEach(e=>window.localStorage.removeItem(e))},entries(){let e={...window.localStorage};return Object.keys(e).map(t=>[t,i(e[t])])}},a=()=>window.localStorage,s=async()=>{if(!n){if(!("indexedDB"in window))return console.warn("indexDB not supported, falling back to localStorage"),n=o;try{n=await r.e(661).then(r.bind(r,9661))}catch(e){return console.warn("Cannot import idb-keyval, falling back to localStorage",e),n=o}try{await n.set("test","test"),await n.del("test")}catch(e){if(e instanceof DOMException)console.warn("IndexedDB not available, using localStorage",e),n=o;else throw console.error("IndexedDB error:",e),e}}return n},u=()=>({set:(e,t)=>s().then(r=>r.set(e,t)),get:e=>s().then(t=>t.get(e)),del:e=>s().then(t=>t.del(e)),getMany:e=>s().then(t=>t.getMany(e)),setMany:e=>s().then(t=>t.setMany(e)),delMany:e=>s().then(t=>t.delMany(e)),entries:()=>s().then(e=>e.entries())})},16975:(e,t,r)=>{"use strict";var n=r(97783),i=r(66380),o=r(64215),a=r(9278);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],d=!!a&&a(e,t);if(n)n(e,t,{configurable:null===c&&d?d.configurable:!c,enumerable:null===s&&d?d.enumerable:!s,value:r,writable:null===u&&d?d.writable:!u});else if(!l&&(s||u||c))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else e[t]=r}},18235:e=>{"use strict";e.exports={messages:JSON.parse('{"7KNmqn":[" - AI Assistant Chat"],"p1BFMF":[" → Send"],"XdZ06Y":[" and will be disabled after the Beta period"],"Rl/SV6":[" Are you sure?"],"5B9kHs":[" Buy a License Key"],"AfcPqM":[" Here is your chat transcript:"],"vZKDNa":[" Note: Web Search works best with the <0>GPT-4 model. Enable Web Search will consume more tokens. All web searches are private. Learn more below."],"pxEiWL":[" Plugin overview not available"],"EQOj9N":[" Programmable Search Engine (by Google)"],"7T/Qrg":[" Search API Key is now working!"],"uDjwJ6":[" Search Engine ID"],"iUoYrq":[" Share to <0>Cloud"],"bTghXz":[" Technical detail: "],"4EFkQG":[" User-specific settings that will be passed to the plugin when it is called. Must be a valid JSON. <0>See Example JSON and instruction here."],"RI9zpW":[" Your API key is not working. You need a <0>paid API account on OpenAI in order to use the ChatGPT API Key (the free trial won\'t work). To verify that you have a paid API account, go here and make sure you have your billing info added: <1>https://platform.openai.com/account/billing/overview. Note that you <2>do not need to have a ChatGPT Plus subscription, it\'s <3>not needed. If you already have a paid OpenAI account, check to see if you still have sufficient credits. Also, try creating a new API key and trying again. If this problem persists, please contact support."],"AlCw7T":["\'Listening...\'"],"KtsNzw":["\\"awsAccessKey\\", \\"awsSecretKey\\", \\"awsRegion\\" properties are required for Bedrock Claude models!"],"4ZWIlk":["(",["0"],"% of total usage)"],"kS/gaE":["(All)"],"wfJ1qf":["(Caching not enabled for this chat)"],"ghNpNS":["(Click Test API Key before saving)"],"nMAlk3":["(Default)"],"3ixyNq":["(Free)"],"AGF92m":["(Inactive)"],"cer5ho":["(Learn more)"],"8RknI/":["(Learn More)"],"fSOo0q":["(Leave empty if you already have an account)"],"Hjx5Vx":["(Locked)"],"LmP7AC":["(Model does not support prompt caching)"],"rjoGU7":["(No instruction provided)"],"DzGwzA":["(No variables)"],"ZN0cYQ":["(Paste As Text)"],"fNqU0V":["(Show)"],"in4V91":["(View Report)"],"WOnzNW":[["0","plural",{"one":["#"," agent"],"other":["#"," agents"]}]],"ef1tvK":[["0","plural",{"one":["#"," archived chat"],"other":["#"," archived chats"]}]],"6KMTVy":[["0","plural",{"one":["#"," Archived Chat"],"other":["#"," Archived Chats"]}]],"IPXOXm":[["0","plural",{"one":["#"," character"],"other":["#"," characters"]}]],"myhHcE":[["0","plural",{"one":["#"," character"],"other":["#"," characters"]}]," per message."],"HWQKU1":[["0","plural",{"one":["#"," chat is excluded from sync due to its large size."],"other":["#"," chats are excluded from sync due to their large size."]}]],"iwKytO":[["0","plural",{"one":["#"," chat"],"other":["#"," chats"]}]],"ao4ihU":[["0","plural",{"one":["#"," custom model"],"other":["#"," custom models"]}]],"Ftz/t9":[["0","plural",{"one":["#"," folder"],"other":["#"," folders"]}]],"M4fjIB":[["0","plural",{"one":["#"," hour"],"other":["#"," hours"]}]],"A8sVYP":[["0","plural",{"one":["#"," message will be queued"],"other":["#"," messages will be queued"]}]],"7dDfMK":[["0","plural",{"one":["#"," message"],"other":["#"," messages"]}]],"yxF19Y":[["0","plural",{"one":["#"," plugin"],"other":["#"," plugins"]}]],"WngjJs":[["0","plural",{"one":["#"," profile"],"other":["#"," profiles"]}]],"83la/n":[["0","plural",{"one":["#"," prompt"],"other":["#"," prompts"]}]],"Cwe7mf":[["0","plural",{"one":["#"," request"],"other":["#"," requests"]}]],"YVY9Iw":[["0","plural",{"one":["#"," saved prompt"],"other":["#"," saved prompts"]}]],"5xe2p4":[["0","plural",{"one":["#"," token"],"other":["#"," tokens"]}]],"G1lxoh":[["0","plural",{"one":["~","#"," token"],"other":["~","#"," tokens"]}]],"HK0pJP":[["0","plural",{"one":["every day"],"other":["every ","#"," days"]}]],"wv8z2V":[["0","plural",{"one":["every hour"],"other":["every ","#"," hours"]}]],"33mr/A":[["0","plural",{"one":["every month"],"other":["every ","#"," months"]}]],"TuGMMD":[["0","plural",{"one":["Move ","#"," chat to"],"other":["Move ","#"," chats to"]}]],"Betvyb":[["0","plural",{"one":["per day"],"other":["every ","#"," days"]}]],"6UqxzA":[["0","plural",{"one":["per hour"],"other":["every ","#"," hours"]}]],"BRJBtW":[["0","plural",{"one":["per month"],"other":["every ","#"," months"]}]],"3dz4IW":[["0","plural",{"one":["You have ","#"," invite code left."],"other":["You have ","#"," invite codes left."]}]],"J/hVSQ":[["0"]],"bVQ97w":[["0"]," characters"],"4cp8tX":[["0"]," is already selected"],"yN4Oln":[["0"]," more AI agents hidden..."],"2OP12J":[["0"],"/",["1"]," used."],"+0skwN":[["availablePromptsCount","plural",{"one":["#"," propmt"],"other":["#"," prompts"]}]],"J3+TD7":[["count","plural",{"one":["#"," AI agent"],"other":["#"," AI agents"]}]],"BnhXW8":[["currentContextLength","plural",{"one":["#"," token"],"other":["#"," tokens"]}]],"MfPdYe":[["enabledCount"]," enabled"],"lo2Y4Y":[["estimatedTokens","plural",{"one":["~","#"," token"],"other":["~","#"," tokens"]}]],"dQB853":[["i","plural",{"one":["#"," seat"],"other":["#"," seats"]}]],"rt+E3q":[["i","plural",{"one":["Last ","#"," message"],"other":["Last ","#"," messages"]}]],"uBvddp":[["item"]],"MYfjvl":[["newAnthropicEndpoint"]," (Custom)"],"ltmlBy":[["totalTokensSpent","plural",{"one":["#"," token"],"other":["#"," tokens"]}]],"fmLRjM":[["trainingMessagesCount","plural",{"one":["#"," training message hidden"],"other":["#"," training messages hidden"]}]],"PyaHIt":["* Find more information about the prompt <0>here"],"b1cX7J":["* Must be compatible with /v1/chat/completions"],"JpDzEJ":["/ 1M input tokens"],"+2w2sP":["/ 1M input tokens "],"eUWcyZ":["/ 1M output tokens"],"sxg+VN":["→ Chat with AI on TypingMind.com"],"0YSH2s":["→ Get your API key from Open AI dashboard."],"t3MnOU":["→ Go to ",["hostname"]],"BdH0Jq":["→ How to get Search Engine ID and API Key"],"lugxJv":["→ I already have a License Key"],"vXqHoZ":["→ See FAQs for more information on device limits."],"59Pj54":["→ View Plan Comparison"],"7HsnfO":["<0>",["totalSelected"]," selected"],"q1Iujb":["<0>⚠️ Important: You already have this plugin. <1/> (ID: ",["0"],").<2/><3/>Do you want to replace the old plugin with this new one?"],"JDdS6f":["<0>10MB free storage: You have 10MB of free storage. Upgrades are available for more storage. If you exceed this limit, you can still use the app but you won\'t be able to sync new data."],"6wedmD":["<0>Automatic Backup/Sync: Your data is securely stored on TypingMind Cloud and automatically synced between devices."],"iUALO0":["<0>Chat history is not saved and other premium features will be limited in the free trial version."],"pKmr0j":["<0>Chat history is not saved and other premium features will be limited soon in the free trial version."],"Wk4fQl":["<0>Data lost risk: If you lose your device or your browser cache/storage/cookies is cleared, you will lose all your data. Make sure to backup your data regularly using our export feature."],"L5HMiK":["<0>Deleting your data from the cloud will also delete the corresponding local data.For example, if a chat is deleted from the cloud, it will be deleted from this device and any other devices with Cloud Sync enabled."],"oJ7rYu":["<0>Login with email: Easily login to your account on any device using your registered email address."],"reZ4Yn":["<0>Login with License Key: Use your license key to activate the app on a new device. If you lose your license key, recover it from your receipt email."],"Njp4Fr":["<0>Microphone access is needed for voice input."],"Gnota0":["<0>Note: Enter API Key is optional. You have access to some free models by default. Only enter your API Key if you wish to use your own API Key and pay the cost by yourself."],"7eL2G1":["<0>OAuth Notes: TypingMind is a static web app intended for single user uses, which means you will need to provide your own OAuth client and the authorization/authentication flows are all performed in the client side. We recommend using <1>Server Plugins for more convenience way to use OAuth 2.0 authentication in your plugin."],"TVbBhK":["<0>Please save this key in a safe place. You will need it when you use TypingMind on another device. You will also receive a receipt and a license key <1>in your email shortly."],"OXz+tI":["<0>Read OAuth for Plugins documents"],"ib3/yS":["<0>Stored on device: Your data is stored only on this device, no one else can see your data. If you need to use TypingMind on another device you need to export/import manually."],"G8VkJu":["<0>Unlimited storage: You can store as much data as your device can handle. There is no limit set by the app."],"G7dFid":["",["0","plural",{"one":["#"," chat"],"other":["#"," chats"]}]," with ",["messagesCount","plural",{"one":["#"," message"],"other":["#"," messages"]}]," on this device."],"U3RTaZ":["⚠️ ",["0"]," chat(s) are excluded from sync because they are too large."],"0reX65":["⚠️ ",["0"]," pending changes(s) are not synced yet. Click to sync."],"rk/03V":["✅ You have access to the compiled code of the app."],"0DCczY":["✅ You have permission to deploy and use the compiled code on your own server."],"csmgN6":["❌ You do not have permissions to modify or redistribute the compiled code."],"6hLl3l":["❌ You do not have permissions to share or resell the compiled code."],"uJfDIv":["\uD83C\uDF81 New feature: <0>Text-to-Speech"],"gMX609":["\uD83C\uDF89 Awesome. API Key and API Endpoint are working!"],"eDPfNj":["\uD83C\uDF89 Awesome. API Key is working!"],"Uautv5":["\uD83C\uDF89 It\'s done!"],"h3QnPS":["\uD83C\uDF89 Thank you for your purchase!"],"aTVsIr":["\uD83C\uDF99️ Voice Input"],"pM19tB":["\uD83D\uDC49 Click here to open your Email client with prefilled content"],"bGwrZ2":["\uD83D\uDC49 Don\'t see the receipt email? Click here."],"B1seby":["\uD83D\uDCD5 Read Developer Documentation"],"sC7DHb":["\uD83D\uDD12 ",["0"]," is not available for your current plan",["1"],". Please buy or upgrade your license key to unlock this feature"],"FuiWSF":["$",["0"]," billed every month"],"x4P/Iu":["1 GB of data storage"],"vTp/56":["1 million characters for KB"],"voMgY+":["1 month"],"3vtzIH":["1 week"],"GKWMv+":["10MB Free"],"dmfyiH":["14-day money-back guarantee. All plans are one-time payments. Upgrade between plans anytime. Price does not include the API cost"],"HCLj1r":["2 months"],"O2B4EJ":["2 weeks"],"VaA9mu":["24 hours"],"7ZrpGs":["3 days"],"x1VeBD":["3 months"],"B/1Qzd":["3 weeks"],"UtXEjp":["48 hours"],"vN4xSW":["5 GB of data storage"],"JC3aZ/":["5 million characters for KB"],"n6p4ka":["A better UI for ChatGPT, Claude, and Gemini"],"73O0MY":["A ChatGPT Plus Subscription is not needed."],"tOO5PC":["A ChatGPT Plus Subscription is NOT needed."],"hedKHR":["A custom model"],"i39oBj":["A JSON string that describes to the AI assistant what the function does and how to use it. Must strictly follow OpenAI\'s document about function call. See <0>Instructions & Examples here."],"LGyzFK":["A powerful frontend for LLMs"],"uyJsf6":["About"],"2lad0+":["About Me"],"n3bn7r":["About This Chat"],"ChasOQ":["Academic"],"LuXP9q":["Access"],"y24CQi":["Access all data"],"7M6lLY":["Access with tags"],"AeXO77":["Account"],"FMUJSP":["Account & Data"],"4WY4MD":["Account options"],"FQBaXG":["Activate"],"VzNizi":["Activate License"],"PGA9Wi":["Activate multi-model"],"JEv05s":["Activated"],"gj6qzs":["Activated Devices: ",["0"]],"F6pfE9":["Active"],"m16xKo":["Add"],"GU1Y4L":["Add Context"],"+7MTQz":["Add Conversation Starters"],"6clT5o":["Add Custom Body Params"],"iT8p0P":["Add Custom Headers"],"QafHeA":["Add custom model"],"d2W4ef":["Add Custom Model"],"JRnw1i":["Add Custom Voice"],"qtYf+J":["Add Limit"],"N9WKcZ":["Add New Prompt"],"B+nQnj":["Add Plugin"],"QGP6it":["Add Post-Processing"],"aoFVdB":["Add profile"],"GGnNgC":["Add Profile"],"OawP82":["Add prompt"],"VrxS4o":["Add Prompt"],"KVJGUP":["Add Request Body"],"Ghn0ZA":["Add Request Headers"],"IKoyMv":["Add Tags"],"WD6ttL":["Add Test Variables"],"YoxD8i":["Add your JS code here..."],"Yj2/Tk":["Add your JSON here..."],"hp8OtS":["Added"],"lXxAVN":["Added to your agents"],"tywOcg":["Added to your prompt library"],"cRj6CO":["Additional Purchase Available"],"U3pytU":["Admin"],"mGLgVd":["Advanced Model Parameters"],"NFIOKv":["Advanced Options"],"JiIKww":["Advanced Settings"],"fcYF58":["agent"],"jrFXIj":["Agent cloned successfully"],"ftfADk":["agents"],"8Uv5e6":["Agents"],"AP0pC3":["Agents are pre-built AI assistants for specific tasks."],"MnmJG1":["AI Agent"],"uHkL3b":["AI Agents"],"IwdUX/":["All costs are <0>estimated, please refer to your <1>OpenAI dashboard for the most accurate cost of your API key."],"NdMF3Q":["All Dynamic Context Endpoints must have a name and a URL"],"OZbbiL":["All feedback, suggestions, feature requests, and bug reports are welcomed!"],"24snR+":["All of your chat data is stored locally by default"],"9jrTB+":["All of your data is stored locally in your browser. Each browser has a different limit of how much data you can store. If you are running out of space, you can delete some of your old chats."],"98vSRA":["All Previous Messages"],"UBpkWM":["All users"],"u6njmO":["Allow access to all data in knowledge base"],"Wkdy65":["Already purchased?"],"86dQmw":["Always include \\"openid\\" if the provider supports it. Use white space to separate multiple scopes. For the best experience, please specify enough scopes to get the user\'s email, first name, last name, and profile picture."],"pcjU7W":["Always show interactive content from this plugin without asking."],"p1aRIt":["An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered."],"+Bu/ke":["Analytical"],"2s9w88":["Answer as concise as possible"],"Q973qV":["Answer in Blog format"],"vcFcLH":["Answer in Brochure format"],"FLWul7":["Answer in Case Study format"],"DukIlz":["Answer in eBook format"],"5LhHEt":["Answer in Email Campaign format"],"QdS+ah":["Answer in Essay format"],"uK5lNr":["Answer in FAQ format"],"jvU/at":["Answer in Infographic format"],"IBOZK1":["Answer in Interview format"],"ZtDtia":["Answer in Listicle format"],"I7V64k":["Answer in Memo format"],"CbfT1F":["Answer in News format"],"K+YMKx":["Answer in Newsletter format"],"0NE/hu":["Answer in Opinion format"],"iaWE1y":["Answer in painstakingly detail"],"lHgh9B":["Answer in Podcast Script format"],"iAYeUy":["Answer in Poem format"],"2BJ8/W":["Answer in Policy Document format"],"5+tfGx":["Answer in Presentation format"],"kWCukR":["Answer in Press Release format"],"NVybHC":["Answer in Product Description format"],"jnWaqI":["Answer in Profile format"],"tko26I":["Answer in Proposal format"],"M3LgmF":["Answer in Q&A format"],"4NCF/2":["Answer in Report format"],"O91zzn":["Answer in Research Paper format"],"VYCzS4":["Answer in Review format"],"sh/MHB":["Answer in Script format"],"x1WQ8C":["Answer in Social Media Post format"],"3Bd6y5":["Answer in Speech format"],"aRLf6W":["Answer in Summary format"],"BgxwOT":["Answer in Table format"],"6IjH1R":["Answer in Technical Documentation format"],"pd07qc":["Answer in Tutorial format"],"KQ5YyF":["Answer in User Guide format"],"FAYtw/":["Answer in Webinar format"],"9Mjf1u":["Answer in Whitepaper format"],"mo4Tok":["Answered using your connected account data via ",["0"]," <0/>"],"OpAwo5":["Anthropic API Key"],"8xI/bl":["Anthropic Chat Completions Endpoint (V1)"],"zMV8th":["Anywhere! You can deploy it on your own server, or on a static web cloud service like GitHub Pages, Cloudflare Pages, AWS S3, Vercel, Netlify, Heroku, etc. You can even run it on localhost."],"VyvMqP":["API Endpoint"],"CcJuiO":["API Key Authentication"],"1xrXA1":["API Key not working? Click Here."],"FfSJ1Y":["API Keys"],"5ghbeJ":["API Keys & License Key"],"HXdJo7":["API keys are locked"],"SHvKkv":["API Missing"],"KHn76P":["API Type"],"dPIVSq":["App Data"],"2BpVx/":["App Data & Storage"],"aAIQg2":["Appearance"],"DB8zMK":["Apply"],"AL93NF":["Apply for all future chats"],"5zTU9p":["Apply for current chat"],"vdM0PU":["Approved Languages"],"B495Gs":["Archive"],"WAOQ5J":["Archive chats older than"],"+Lpf4M":["Archived Chats"],"/ns5IT":["Are you sure you want to cancel this subscription?"],"aS8e0y":["Are you sure you want to clear all your storage? This will delete all cloud data and the corresponding local data as well. To prevent data loss, consider using Manual Backup to export your data into a file."],"G7hiVV":["Are you sure you want to delete <0>",["0"]," <1/>and its chats?"],"KaKLHJ":["Are you sure you want to delete this agent? This is not undoable."],"Pf89wO":["Are you sure you want to delete this chat? This is not undoable."],"1vhl90":["Are you sure you want to delete this plugin? This is not undoable."],"JeWEj+":["Argumentative"],"Jd1Cdw":["As of now, you cannot customize anything. You the self-host version will be exactly the same as the one you are using on TypingMind.com. If you are looking for a more flexible and customizable way to use TypingMind, check out https://custom.typingmind.com"],"CbOT+9":["Ask AI for domain name suggestions, then check the domain availability with 1 click."],"BrM1bb":["Ask the AI assistant to generate a title based on the first message when starting a new chat. This will consume more tokens used in the first message. (All subsequent message tokens will not be affected)."],"LqNfc3":["Ask the AI assistant to suggest relevant keywords if the answer is more than 500 characters long. This will consume more of your token."],"0CRwo2":["Assign a specific model to this AI agent"],"Yokrq5":["Assign custom model parameters for this AI agent"],"vVQGtO":["Assigned AI agent:"],"hICOwR":["Assigned Text-to-Speech API:"],"4rpXj6":["Assistant response"],"fyOcj3":["Assistant Response:"],"tqcmtP":["Assistant:"],"pIrPsA":["At the moment, inactive devices will be revoked automatically after a short time, you don\'t need anything. In the future versions, you can access the License Manager from the app and manage your devices there."],"2/fy8w":["Attached files"],"UY1vmE":["Attachment"],"JGrfzE":["Audio Input"],"1H+Sc2":["Audio input with OpenAI Whisper requires an OpenAI API Key. Please enter an OpenAI API Key to the app and try again."],"zwUb8b":["Authenticate Now"],"2FwEm8":["Authenticating..."],"P8fBlG":["Authentication"],"htuqBH":["Authentication failed"],"EswTGJ":["Authentication successful"],"M9+N8T":["Authoritative"],"WyzrCD":["Authorization URL"],"R9Khdg":["Auto"],"Tppod2":["Auto archive old chats"],"+ZWSxY":["Auto delete archived chats"],"xBo+m8":["Auto fill"],"2Pa8mz":["Auto generate title for new chats"],"rXlXlr":["Auto play assistant messages"],"bE4siw":["Auto send the message after speaking"],"4ryaAZ":["Auto start recording when open"],"ZK5+g/":["Auto suggest relevant keywords after each message"],"j+fvUf":["Auto-Translated Languages"],"UrPLkb":["Automatic audio playback was prevented by the browser. Tap the play button to start playing audio."],"4iqlgG":["Automatically archive chats that are older than a specific period. Exceptions: Favorited chats, chats in folders, or chats with tags will not be archived automatically."],"OSt5XJ":["Automatically delete archived chats after they have been archived for a specific period."],"NL1iX0":["Automatically resume your most recent chat when you reopen the app."],"4/IEEY":["Available Integrations"],"TJCWpw":["Available variables"],"f0rbKh":["Awesome! You can start chatting now!"],"qKMhwa":["Azure API Key for Whisper"],"hksWkB":["Azure OpenAI"],"pVQ52w":["Azure Whisper"],"DPli6Z":["Azure Whisper API Endpoint"],"J58HQL":["Azure Whisper API key"],"FP3F7G":["Azure Whisper Prompt:"],"iH8pgl":["Back"],"qn5Xo4":["Back to active chats"],"UFE2sL":["Back to Options"],"tgg7/2":["Back to profiles"],"/5m0MA":["Back Up Now"],"Ir9ltJ":["Back Up Your Large Chats"],"2UeFj9":["Backup & sync data across devices"],"+f5Tkb":["Bad"],"kJygHz":["Balanced"],"MjtRXA":["Base model"],"YBt9YP":["Beta"],"astDB+":["Blog"],"z2gcLy":["Brochure"],"kxIENU":["Browse agents"],"YYt3fR":["Browse prompts"],"ZtCLxJ":["Browser (Web Speech API)"],"NKHjNY":["Browser TTS"],"YnnY54":["Bulk Action"],"s68EDj":["Bulk Action "],"b5OfjQ":["Bulk License"],"s1c0ja":["Bullet List"],"BtdOqF":["Buy ",["0"]],"ldcOo7":["Buy / Upgrade License"],"kVsn23":["Buy a license"],"lAkf2Q":["Buy Another"],"YX7STt":["Buy More Seats"],"bKEbYm":["Buy now"],"m2pyX2":["Buy Now"],"dMT0t2":["Buy now to get it included for free!"],"o5ASB8":["Buy once, use forever!"],"HPC6Gz":["Buy or Upgrade Here"],"nn8KcR":["By default, the AI agent\'s instruction will be appended to the app\'s default system instruction (set in the model settings popup). Check this box if you want to skip the previous system instruction for this AI agent."],"DkI3Vf":["By default, the AI agent\'s instruction will be appended to the global default system instruction (set in Training Data → Global System Instruction). Check this box if you want to skip the Global System Instruction for this AI agent."],"/WLkpC":["By default, the app will select an optimized model for title generation. You can override this setting here."],"tQht86":["By default, the plugin\'s output will be given to the AI and then the AI will decide how to respond to the user. You can change this behavior by selecting another output option below."],"YjZITy":["By default, your API Key is stored locally on your browser and never sent anywhere else."],"sNAHE5":["By signing up, you agree to our <0>Privacy Policy and <1>Terms of Service."],"KiUAH8":["Cache Expire Time"],"uL2j1y":["Cache Refresh Policy"],"V+yWeE":["Caching is supported but not yet activated for this chat. Some models requires a minimum number of tokens to be used before caching is activated."],"vTVaGb":["Can I embed my License Key/API key to the self-host version somehow and let my team/community/customers use it?"],"aVZ9yc":["Can I get a refund?"],"8o1RNk":["Can I have support on technical issues if I self-host?"],"hcGgve":["Can I let me team/community/customers use the self-host version?"],"ecAC9I":["Can I receive new updates after I buy a license key?"],"Go/vEu":["Can I self-host it?"],"rldNey":["Can I self-host TypingMind?"],"Qf9Ee9":["Can I use GPT-4 in TypingMind?"],"dEgA5A":["Cancel"],"ifkrYE":["Cancel changes"],"vv7kpg":["Cancelled"],"g6Qo8V":["Case Study"],"vweTgW":["Categories (Optional)"],"07FUrc":["change"],"o+XJ9D":["Change"],"h3vADk":["Change API Key"],"SDhZUV":["Change Character"],"pZdBDE":["Change Chat Parameters"],"rZf6Qw":["Change Key"],"CWe7wB":["Changelog"],"P+2e0U":["Changes are saved only for the current chat"],"87RRXI":["characters"],"wQoVcC":["Characters"],"AHZflp":["Chat"],"S641YT":["Chat Content Width"],"TFf1iY":["Chat experience"],"gBGQT7":["Chat Info"],"wx4YAt":["Chat minimap"],"tQ4OxD":["Chat Not Found"],"Qy8/Ab":["Chat now"],"lO1Uso":["Chat Profiles"],"2B2riu":["Chat profiles help the AI understand more about you. You can create multiple profiles for different scenarios (Personal, Work, etc.)."],"t+yDOf":["Chat settings"],"weYGUX":["Chat with AI using your API keys. Pay only for what you use. GPT-4, Gemini, Claude, and other LLMs supported. The best chat LLM frontend UI for all AI models."],"N+il+Q":["Chat with built-in AI agents on various topics."],"5j4DOc":["chats"],"8Q+lLG":["Chats"],"q9j23+":["Check API Key"],"1gDRRp":["Check Domain"],"hlKjs/":["Check Key"],"vTNv5F":["Check your OAuth provider\'s document for the authorization URL. It is usually something like https://example.com/oauth/authorize."],"GSIi/s":["Check your OAuth provider\'s document for the token URL. It is usually something like https://example.com/oauth/token."],"4fbZwm":["Choose how the plugin will be run."],"KrokRF":["Choose how your data is stored"],"LkEYm3":["Civic integrity"],"SqIaK+":["Clarity + Similarity Enhancement:"],"yYxB17":["Clear all"],"zljzWo":["Clear All Storage"],"Sje86b":["Clear all tags"],"z/5ptt":["Clear API Key and Password"],"B3nz9K":["Clear context"],"Blz3jW":["Clear Context"],"UK3fsk":["Clear Selections (",["0"],")"],"GdhD7H":["Click again to confirm"],"qk7MVx":["Click here to help with translation"],"lcFzRd":["Click here to unlink old devices"],"h3L8+6":["Click Record to start recording audio. Text transcription will be provided by Azure\'s Whisper API."],"NpzMnQ":["Click Record to start recording audio. Text transcription will be provided by Groq\'s Whisper API."],"mWkeNy":["Click Record to start recording audio. Text transcription will be provided by OpenAI\'s Whisper API."],"zOYG6Z":["Click the button above to start a new chat"],"oyye2v":["Click the button below to copy the exported data, then save it to a .json file."],"cktsCs":["Click to calculate size"],"BTpdhg":["Click to confirm"],"8J70rq":["Click to deselect the profile"],"cwMTjO":["Click to edit"],"fZoONK":["Click to explore all features available"],"K3F3RN":["Click to scroll left"],"QoDvq2":["Click to scroll right"],"7Zfhs6":["Clinical"],"9UQ730":["Clone"],"yz7wBu":["Close"],"62Ciis":["Close sidebar"],"gmid3w":["Close the onboarding checklist"],"aRI3Om":["Close Window"],"vrtcD8":["Cloud Data"],"s4xjn0":["Cloud Storage"],"Bp/aCq":["Cloud Sync"],"UbVRmW":["Cloud Sync & Backup"],"RK1xy9":["Cloud Sync Mode"],"EWPtMO":["Code"],"sVBJ9u":["Code implementation is required."],"sfhXn4":["Code Implementation:"],"wQ+9wh":["Code to embed chat widget with this specific AI agent"],"3Nxy1n":["CodePen"],"56QffO":["Cold"],"H86f9p":["Collapse"],"wKlyxL":["Color Highlight"],"AUYALh":["Coming soon"],"q93mA4":["Community Prompts"],"9S4Fiy":["Compact"],"qqWcBV":["Completed"],"AzFAXz":["Concise"],"zNPkaU":["Confident"],"7VpPHA":["Confirm"],"WADQsp":["Confirm changes"],"qgyLhK":["Connect data sources to create a knowledge base for your AI agents"],"twilsj":["Connected via <0>",["0"],""],"SQhG9a":["Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response."],"jfC/xh":["Contact"],"ArkuA2":["Content is blocked based on the probability that it is harmful."],"TlBnce":["Content must be a valid JSON object"],"f9cDxV":["Content Type"],"wmnTZp":["Context Length"],"HQF+Mf":["Context Length Limit"],"OI8spO":["Context length limit reached"],"Od+YcO":["Context length: ",["0"]," tokens"],"w7l4QY":["Context Limit:"],"tbb3wK":["Context Name"],"rLpb3A":["Context Source"],"xGVfLh":["Continue"],"TSjITo":["Continue without Backup & Sync"],"fUFexU":["Continuously Updated"],"sogJwa":["Conversation starters"],"hzExWo":["Conversational"],"PiH3UR":["Copied!"],"he3ygx":["Copy"],"NmPNJJ":["Copy code"],"EXTouI":["Copy Content"],"CI0KMI":["Copy export data to clipboard (JSON)"],"XH5xdq":["Copy Formatted Text"],"TZ5uLO":["Copy Last Message"],"p3ndmE":["Copy Markdown"],"8MKAc9":["Cost are estimated and will not be 100% accurate. Please refer to the billing section of your AI provider dashboard for the actual cost."],"jefIoa":["Cost associated with a chat includes the token cost for the chat messages AND all of the <0>enhanced features used for that chat."],"bW1s55":["Cost estimation will be less accurate when stream response is enabled."],"jM5g6I":["Could not connect to Anthropic API from your browser. This could be a network issue or adblock. Please try again or contact support. Open Developer Console to see more details."],"2qQ0j+":["Could not connect to Anthropic API. Please try again later. Error code: "],"atnPxc":["Could not connect to Anthropic API. Please try again later. Error details:"],"y45CeX":["Could not connect to Azure from your browser. This could be a network issue or adblock. Please try again or contact support. Open Developer Console to see more details."],"JkaJIP":["Could not connect to ElevenLabs from your browser. This could be a network issue or adblock. Please try again or contact support. Open Developer Console to see more details."],"qoF6OQ":["Could not connect to Google Gemini API from your browser. This could be a network issue or adblock. Please try again or contact support. Open Developer Console to see more details."],"xpKJNv":["Could not connect to Google Gemini API. Please try again later. Error code: "],"k2RCoK":["Could not connect to Google Gemini API. Please try again later. Error message: "],"BnmFhT":["Could not connect to Groq from your browser. This could be a network issue or adblock. Please try again or contact support. Open Developer Console to see more details."],"0O2epA":["Could not connect to License Server. Please try again later."],"rPok8F":["Could not connect to OpenAI API from your browser. This could be a network issue or adblock. Please try again or contact support. Open Developer Console to see more details."],"idNPJa":["Could not connect to OpenAI API. Please try again later. This could be because OpenAI\'s server is experiencing high demand and rejected your request. Go to https://status.openai.com/ to check their status. Error code: "],"1DAtaq":["Create AI agent"],"k2RpBx":["Create dynamic context with variables or retrieve from an API and inject into the system prompt. This can be used to add live information to the AI or implement Retrieval-Augmented Generation (RAG) from your own data sources (e.g., vector store database)."],"Z3mBOA":["Create new category"],"1uMDHY":["Create new Project/Folder"],"uFQF6u":["Create new tag:"],"75P1u8":["Create plugin"],"0xD/Jm":["Creative"],"J5nbej":["Critical"],"HpGMZX":["Current Context Length:"],"8Tg/JR":["Custom"],"pC7150":["Custom Body Params"],"GnfGTT":["Custom Headers"],"vE8qON":["Custom Instruction"],"Xc27gb":["Custom Model Guides"],"nIAU/3":["Custom Model Parameters"],"4OzRwX":["Custom Models"],"Bav+e0":["Custom Models:"],"C/OtZE":["Custom parameters are added to the request body of the API call. This setting may overrides some of the above settings if the parameter name matches. Please make sure that the model you are using supports the parameters you are adding."],"/xJLUo":["Custom Voices:"],"6eagIY":["Cynical"],"+xHY/f":["Dangerous"],"pvnfJD":["Dark"],"Mb1IHF":["Deal ends in <0>",["timeLeftString"],"."],"Iy+/7K":["Deal ends soon."],"ovBPCi":["Default"],"23umQ0":["DEFAULT"],"OtTlfU":["Default model"],"J6v1s/":["Default Model"],"ztm4oE":["Default Model:"],"nH6IjX":["Defined system messages"],"cnGeoo":["Delete"],"KZN4Lc":["Delete All"],"DmiLNr":["Delete all data on this device"],"mP/ptm":["Delete All Local Data"],"pKnsVf":["Delete Chat"],"lcqFCW":["Delete everything"],"Q6Z4Kc":["Delete Folder & Chats"],"1oxiwc":["Delete Folder, Keep Chats"],"9dEV2s":["Delete Project/Folder"],"LtSIKU":["Delete This Agent"],"Wsu4Xu":["Delete This Chat"],"J4It23":["Delete This Plugin"],"go7MC4":["Delete?"],"uNTuV6":["Deleted successfully!"],"SCsFmd":["Demo Instance"],"C3l213":["Depends on the license key you buy. The Premium License Key is valid forever and includes all updates forever."],"i5udnt":["Describe to the users what your plugin does and how to use it with examples."],"w3qvqD":["Describe what the AI agent does for the user. This is for the user\'s information only and will NOT be included in the agent\'s system instruction."],"CfuxA4":["Describe what the prompt does for the user."],"Nu4oKW":["Description"],"jQFhbL":["Description (optional):"],"Dvc8Qg":["Description:"],"42aQMm":["Descriptive"],"cO9+2L":["Disable"],"mQepIa":["Disable thinking mode"],"E/QGRL":["Disabled"],"bzSI52":["Discard"],"9C6X7Q":["Discard Changes"],"+K0AvT":["Disconnect"],"NnjDLd":["Do I have access to the full source code if I want to self-host?"],"OfaLQ8":["Do I need to have ChatGPT Plus ($20/month) to use TypingMind.com?"],"75mwHY":["Do I need to pay for ChatGPT Plus ($20/month) to use TypingMind.com?"],"OK9+n5":["Do I need to pay for OpenAI for a ChatGPT API Key?"],"xkeWcN":["Do I still need a License Key and Open API Key to use the self-hosted version?"],"HdQ8cc":["Do not show this message again for 30 days (you can enable Backup & Sync in settings later)."],"trpZLK":["Do you want to change the new character for this conversation?"],"TbjyhA":["Docs"],"wVeekH":["Document Attached"],"eCtitK":["Does Web Search require GPT-4? Can I use it with GPT-3.5?"],"bmPNEK":["Domain Check"],"gvy3rp":["Don\'t have one? <0>→ Buy A License Key"],"4+9ATe":["Don\'t see the email? Check your spam folder. If you have problem receiving emails from our system, try using our <0>Alternative Login."],"DPfwMq":["Done"],"7NkkFS":["Download .html"],"egdeNe":["Download .json"],"zQtsZm":["Download .md"],"n4vt3Q":["Download app"],"WEx60O":["Download as a JSON file"],"XJyskP":["Download as JSON file that can be used for <0>fine-tuning"],"IFNYKF":["Download File"],"Lp1xU1":["Download Markdown"],"uOcnoU":["Download your recording"],"eneWvv":["Draft"],"Av1IfJ":["Due to our team\'s limited capacity, we will no longer provide updates to this Mac app. We recommend you to switch to the new PWA desktop app for the best experience."],"euc6Ns":["Duplicate"],"vEGzwu":["Duplicate function name: ",["parsedPluginID"],". The function name in your OpenAI Function Spec has already exists among your installed plugins. Please choose a new one."],"IiVeMr":["Duration Before Deleting Archived Chats"],"tonI3H":["Dynamic context"],"pEwOrQ":["Dynamic context applied (",["0"],")"],"XBquZG":["E.g., A life coach who can help you set and achieve personal and professional goals."],"xVkdoR":["E.g., A list of domain names based on topics"],"Yo1JjQ":["e.g., John"],"RZceWA":["E.g., Provide a title in Spanish."],"ktuiaA":["E.g., Use ReactJS/TailwindCSS for all code output."],"mLbNlk":["E.g., You are a life coach, you help the user identify and achieve their goals, motivate them, and provide support and encouragement."],"OvyFOO":["Each item of \\"bodyRows\\" must include all required keys!"],"ZHX2Nv":["Each item of \\"headerRows\\" must include all required keys!"],"lZ6/UT":["Each license key can be used on 5 devices which is typically enough for 1 user. If you need to use it on for more devices, you can buy a new license keys or add more devices to your existing license key. \\"Device\\" is counted based on the number of places where the license key is entered and the chat history is saved for continuous use. For example, if you use the app on Chrome browser on your laptop and also on your phone, that will be 2 devices. Note that the license key and chat history is saved locally per browser, so if you use the app on Chrome and also on Firefox, you will need to enter the license key 2 times, have 2 separate chat histories, and that counts as 2 devices. If you need to use the license key on a new device but have reached the device limit, you can unlink the previous devices first using the License Manager (this is done online, access to the previous devices not needed). This device limit is put in place to avoid license key abuse and pirate."],"HPqWYc":["Easily review color codes in the AI response."],"+WvWWW":["eBook"],"ePK91l":["Edit"],"js7mpQ":["Edit in canvas"],"mil1pI":["Edit in Canvas"],"iTaifX":["Edit in Canvas is not supported"],"Dx6IaP":["Edit Info"],"SEDPsr":["Edit is not supported"],"QjH+ZX":["Edit message"],"QJQd1J":["Edit Profile"],"lnDMfR":["Edit Project/Folder Name"],"VuGlNF":["Edit Raw"],"alTZor":["Edit the message without regenerating the rest of the conversation."],"MMcsI2":["Edit this message"],"8V61zL":["Edit Title"],"GKJsTg":["Edited at"],"O50UfC":["Editing in Canvas"],"9r6uEg":["ElevenLabs (Beta)"],"gJaAE1":["ElevenLabs API Key"],"u2ugP9":["ElevenLabs requires an ElevenLabs API Key. Please enter an ElevenLabs API Key to the app and try again."],"o2is/9":["ElevenLabs TTS"],"0GJN1u":["ELI5"],"poDAye":["Email Campaign"],"xCCCRp":["Emotional"],"rzMql/":["Empathetic"],"N2S1rs":["Empty"],"lUveJD":["Empty folder"],"FZtBeR":["Enable ",["0"]],"7PDSeD":["Enable Cache"],"CsVLg/":["Enable if the model supports image input (compatible with OpenAI API)."],"oOoBur":["Enable if the model supports image input."],"jdrKSV":["Enable if the model supports streaming output (\\"stream\\": true)."],"dq6am6":["Enable if the model supports the \\"functions\\" or \\"tool_calls\\" parameter."],"uOYIwm":["Enable if the model supports the \\"functions\\" parameter."],"gLOEtC":["Enable if the model supports the \\"system\\" role."],"Nxc1QA":["Enable Plugins"],"9B5tBr":["Enable thinking mode"],"CYhTmg":["Enable TypingMind Cloud"],"7l5TV+":["Enable Web Search"],"6NbliF":["Encrypt API key with password"],"oGPAOk":["End of Chat"],"FCKppt":["Endpoint"],"kGCe95":["Endpoint saved! TypingMind will restart now."],"sCG3Yu":["Endpoint Test Failed:"],"Wagt7O":["Endpoint Test Success:"],"T3juzf":["Endpoint URL"],"ZP7Y2s":["Enhance your chat experience x10 with our integrations."],"5trAhQ":["Enter <0>License Key to unlock all premium features."],"lNYNhx":["Enter a valid JSON object:"],"sbk2AF":["Enter any information you want the AI assistant to remember about you here:"],"YnCPVD":["Enter API Key"],"Eki/+i":["Enter API key to chat"],"17SKb6":["Enter categories or create new one"],"rcyeIO":["Enter extension URL"],"IRwH+C":["Enter License Key"],"ENWqZw":["Enter new tag"],"hITuUq":["Enter Open Router API Key"],"f7sXvi":["Enter password"],"JxXP1G":["Enter Password"],"yAReJj":["Enter Password:"],"DLjqVh":["Enter the AI agent\'s profile picture URL"],"B9mcRt":["Enter the code here:"],"hOnuPw":["Enter to send"],"99MXlb":["Enter Your Anthropic API Key"],"1Wa47i":["Enter your details so that your team can recognize you."],"C3nD/1":["Enter your email"],"vUqMKV":["Enter your email:"],"4s7UWR":["Enter Your Gemini API Key"],"j/jUA8":["Enter your license key here"],"krqIN6":["Enter your license key here:"],"CVVC+5":["Enter your message..."],"/8zMx3":["Enter Your OpenAI API Key:"],"9oAIYm":["Enter your prompt"],"ZMHXQC":["Enter your prompt here..."],"npLws9":["Epigrammatic"],"QhCUtA":["Epistolary"],"uh+FNs":["Essay"],"zh1htt":["estimated"],"xEbu5z":["Estimated Cost:"],"sDp3Xz":["Estimated Size (for sync):"],"0/N6LP":["Every chat within the project will have access to the system instructions and documents assigned below."],"y8MW1k":["Example text..."],"6q8gY6":["Except users from specific groups"],"1A3EXy":["Expand"],"TqoOrQ":["Explain like I\'m five"],"22oG2a":["Explore All Features"],"Gx2RJ7":["Explore more on the topic on Google with 1 click"],"E5STpk":["Explore TypingMind Custom"],"GS+Mus":["Export"],"7ONgDR":["Export Data From OpenAI"],"iTDzyV":["Export Selections"],"MHwMyE":["Expository"],"JToDwi":["Expression:"],"0/BbGM":["Extends the capabilities of the AI with custom functions and workflows."],"COlIpI":["Extensions"],"K8lalb":["Extensions allow you to load custom JavaScript into the application. This can be useful for adding custom functionality or integrating with other services."],"ZbQrfp":["Extensions changed. Please restart the application to apply changes."],"tIa0nY":["Extra Extra Large"],"vp6Yr4":["Extra Large"],"VfpfOY":["Extreme Detail"],"bUwdFY":["Failed to copy formatted text"],"Lgnubj":["Failed to copy markdown"],"tea9y8":["Failed to import because the file is corrupted"],"0aIV5B":["Failed to load extension: ",["url"]],"lKwla6":["Failed to render this response. Please contact support."],"DIdVXY":["Failed to rewrite content. Please try again."],"vVFBZQ":["Fair use bandwidth included. Upgrade or cancel anytime. By making a purchase, you agree with our <0><1>Privacy Policy and <2><3>Terms of Service."],"/lDBHm":["FAQ"],"aJ4pMe":["FAQs"],"TgtE45":["FAQs about API Key"],"qmIOJX":["Faster"],"6Ki4Pv":["Favorite"],"Uh3UT+":["Favorite Chat"],"KK6EVF":["Fetching dynamic context... (",["0"],")"],"ZFQJCK":["Few-shot prompting"],"o/o9PY":["Few-shot prompting is a technique to help the AI agent learn how to respond to users in a specific way by providing demonstrations in the prompt to steer the model toward better performance. The prompts will be automatically inserted at the beginning of every conversation, right after the system instructions (but not included in the system instruction). This is useful when you want the AI to always respond in a very specific format."],"099VRC":["field 1"],"wWlkWH":["field 2"],"J2eKUI":["File"],"Om34YK":["File upload is not allowed"],"sER+bs":["Files"],"1Il5lG":["fill"],"oaz59c":["Filter by tags"],"ym/yoX":["Filter by Tags"],"JmZ/+d":["Finish"],"kODvZJ":["First Name"],"W7PWNd":["Flows"],"5TAuaz":["folders"],"HSh8u/":["Folders"],"cGeFup":["Font Size"],"EsZXjW":["For Bedrock Claude models, you must include \\"awsAccessKey\\", \\"awsSecretKey\\", \\"awsRegion\\" properties in the \\"headerRows\\"!"],"VYIIuD":["For quick development and testing of a new plugin. You can also import a plugin from GitHub and modify it before saving it to use. For additional information on the plugin data format and instructions for sharing via GitHub, please refer to <0>this guide."],"WsEnIq":["Force show login page"],"JRJf8U":["Fork Chat"],"uNHU5d":["Fork chat from here"],"BbNHZY":["Formal"],"1KhOvx":["Formatted text copied to clipboard"],"2POOFK":["Free"],"p1i5jO":["Frequency Penalty: ",["0"]],"a3pVqb":["Frequently asked questions"],"Gq7H1m":["Friendly"],"OwIqiD":["Full screen"],"gGUb6a":["Function name: ",["0"]," is not defined in your code. Please check your code."],"Weq9zb":["General"],"a+arkZ":["General information"],"mmKj/t":["Get A Lifetime License"],"KLCCSP":["Get API key here"],"fTUxkY":["Get Bulk License 10 users"],"zCNvh1":["Get session link here"],"47jGM/":["Get sound notifications for AI responses when you are inactive."],"ZDIydz":["Get started"],"adLo0Q":["Get the client ID from your OAuth provider."],"oKCuHn":["Get the client secret from your OAuth provider."],"c/xVhj":["Get the latest self-host update at https://github.com/TypingMind/typingmind"],"0uv2li":["Get your API key from Anthropic dashboard."],"SitPcJ":["Get your API key from Google AI Studio dashboard."],"Dedbjs":["Give plugin output to the AI"],"ItbKtc":["Go to Agents page"],"DzE6FV":["go to chat"],"gHSuV/":["Go to home page"],"OEEQKT":["Good"],"b9KmAj":["Google Gemini API Key"],"76gPWk":["Got it"],"FPsvA8":["Got it!"],"vvDw4G":["Got Questions?"],"0u7U4p":["GPT-3.5 allows maximum of <0>4,096 tokens per chat. GPT-4 allows maximum of <1>8,192 tokens per chat in the 8K model and <2>32,768 tokens in the 32K model. OpenAI may increase the context length limit in the future."],"Ooe1lZ":["Great job! You are now all set!"],"s6va97":["Groq API Key"],"h3988l":["Groq API Key for Whisper"],"gN49jX":["Groq Whisper"],"YlQFre":["Groq Whisper Prompt:"],"O1wAlQ":["Guest"],"R+05T4":["Guides:"],"EyQMHI":["Harassment"],"LoVB/U":["Hate speech"],"F6Go3M":["Header Key"],"BCL8Ot":["Header Value"],"lXKZGw":["Heading 1"],"El7NbA":["Heading 2"],"SFN6dN":["Heading 3"],"C9r+t2":["Hello, I\'m a life coach. How can I help you today?"],"u3pv+W":["Hello, this is the test audio for the AI assistant."],"UyvU3+":["Help & Info"],"kYLxGT":["Help & Information"],"GNJ1kd":["Help & Support"],"Hb1otQ":["Help you organize your AI agents. You can assign an AI agent to multiple categories."],"WW8EoW":["Here is your <0>License Key:"],"LFGDRf":["Here is your <0>License Key. <1>Please save this key in a safe place."],"RFEi9f":["Here is your chat transcript"],"/hc/Aq":["Here is your messages in JSON:"],"zTGSja":["Here is your plugin in JSON:"],"A+GCyx":["Hide Advanced"],"9aHqty":["Hide Advanced Options"],"2PtsU5":["Hide raw"],"ZUIr2+":["Hide this notification from the main page forever"],"yx/fMc":["High"],"1RkbIp":["High enhancement boosts overall voice clarity and target speaker similarity. Very high values can cause artifacts, so adjusting this setting to find the optimal value is encouraged."],"bgYTxy":["Higher"],"ScdGLq":["Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic."],"ZESzZf":["Hmm... it seems like your chats are corrupted. "],"cOkgyb":["How can I sync my chat conversations across devices?"],"oRr/Bj":["How do I manage the devices that linked to my license key?"],"E+1jcv":["How do I receive updates for the self-host version?"],"rq/EWc":["How do I remove a device from my license? How to access the License Manager?"],"D0hPsf":["How do you want to share this chat?"],"2/52pb":["How do you want to share this plugin?"],"ojrs7f":["How does this app work?"],"zSztZj":["How does TypingMind execute the search?"],"JNKgQJ":["How is the API key handled?"],"aPd0KC":["How is the cost calculated?"],"8AULTO":["How it works"],"/tZEjV":["How it works?"],"OT18hB":["How many chats can I have?"],"ZX9OXO":["How many devices/users can I use the License Key on?"],"ucv4V3":["How much more tokens are used if I enable Web Search?"],"lIWqIu":["How much to penalize new tokens based on their existing frequency in the text so far. Decreases the model\'s likelihood to repeat the same line verbatim."],"ED63fq":["How much to penalize new tokens based on whether they appear in the text so far. Increases the model\'s likelihood to talk about new topics."],"QTYFtz":["How to enable Knowledge Base"],"IHD/ra":["How to export data from OpenAI?"],"PI4HzG":["How to get one?"],"OrpZKj":["How to use Azure OpenAI API"],"1fTVrT":["How to use local models (Vicuna, Alpaca, LLaMa, GPT4All, Dolly, etc.)"],"+u1nrq":["How to use Open Router models"],"TfARvM":["How to use the Team License (Bulk License) Key? How to add new users?"],"QP1jA8":["How to use with AI Agents "],"fN/3SW":["How tokens work?"],"4PbDoL":["How Web Search plugin works?"],"2N4F+A":["How Web Search works?"],"N3Bw7K":["How\'s TypingMind working for you?"],"94nlq2":["HTML Webpage"],"qvRppp":["HTTP Action"],"bHXYoC":["HTTP Method"],"vXtlks":["https://"],"0X8rUE":["https://..."],"4Nl9R0":["Humorous"],"YFlz6q":["I have ChatGPT Plus, will it cost me more to use ChatGPT API via TypingMind?"],"TPNfdq":["I have purchased but forget my license key, how can I get it back?"],"ow9Olb":["I understand my chat will be made public"],"24Fs8p":["I understand that all of my data (chat messages, agents, prompts, etc.) will be lost if my browser cache or site data is cleared."],"rNQi7X":["I understand that my chat history will be lost if my browser cache or site data is cleared."],"OcU847":["I\'ll activate later"],"aMPH6M":["I\'ll do it later",["0"]],"bd1Kuw":["Icon URL"],"/hz2xp":["Icon URL (optional)"],"Ffcffi":["If \'FormData\' is selected, the request body JSON will be converted to FormData."],"XYFDKq":["If selected, new chats within this project will start with the selected AI agent. You can still change the AI agent for each individual chat if needed. Note: if the AI agent already has an assigned model, it will override the starting model setting."],"xZ40r1":["If this problem persists, please contact support."],"vmyQ2D":["If you <0>have been charged but still don\'t see the receipt email, please send your <1>Transaction ID or your bank transaction detail to <2>hello@lemonsqueezy.com and CC <3>support@typingmind.com . We will check this for you ASAP."],"sJ6OIn":["If you already have an account, this will log you in."],"mYZR41":["If you are using a custom model, make sure to set a correct Context Length and set the \\"max_tokens\\" body parameter to the recommended value by the provider. Contact your model provider for more information."],"iK/LRS":["If you forgot or want to change your password, click \\"Change Key\\" and enter the API key again."],"+hdF/5":["If you forgot your password, you can clear your API Key and password, then enter your API Key again."],"PmlOY8":["If you have an account with this email, you will receive an email with a code."],"xDic64":["If you have previously activated this license key on other devices, you must unlink those devices before continue."],"bCDMZI":["If you reached the context length limit, you can delete some old messages to continue the chat, or start a new chat."],"q+OiwQ":["If you think this is a mistake, please contact support."],"1w2Cpf":["If you want to preserve this conversation, you can start a new chat from this point."],"N1FnFw":["If your chat contains an <0>uploaded document or a custom <1>AI agent, those will also become publicly available."],"PVi43z":["Ignore the synced data from the cloud and create a new copy of the data from the file. This may create duplicate chats on your current device."],"N4OVNn":["Implementation"],"l3s5ri":["Import"],"D8LFE+":["Import ",["0"]," model(s)"],"EILfvI":["Import & Clone"],"2iY5s/":["Import & Replace"],"m5Z2VD":["Import a plugin via URL:"],"FhMhTR":["Import Data"],"Owtkdq":["Import from JSON"],"+wwQdk":["Import From OpenAI"],"mggkmp":["Import plugin"],"T/YuOx":["Import Plugin"],"zjeHGx":["Import Plugin <0>",["0"],"?"],"z46NBz":["Import the data from the file to this device and keep them synced with the cloud version. Any existing duplicate chats will be replaced, then synced to the cloud."],"j1RnC6":["Import to ",["0"]],"5yS40W":["Import to TypingMind"],"Bbn1qh":["Imported ",["0"]],"PZkaBL":["Imported successfully!"],"n1w4iu":["Importing new ",["0"],". Are you sure?"],"GdBrLi":["Importing new ",["0"],".<0><1>⚠️ Important: Some ",["1"]," in the imported file have been previously synced to Cloud Backup & Sync.<2/><3/>Do you want to replace those data with the synced version or create new cloned ones?"],"bN4bod":["Importing new data from a local file. Are you sure?"],"6xrUsk":["In the free plan, chat history will not be saved. You will be present with a popup every few minutes. Some other features may also be limited."],"Opr5hc":["In-use"],"jZxGf9":["Incorrect password."],"VoO3VA":["Incorrect password. All API keys must be encrypted with the same password. If you forgot your password, you can remove all API keys and add them again."],"3MLyFF":["Increase Characters Limit"],"6sxUIo":["Increasing stability will make the voice more consistent between re-generations, but it can also make it sounds a bit monotone. On longer text fragments we recommend lowering this value."],"BTNnlL":["IndexDB is unavailable in your current browser, and some features might not work. Please use a different browser for the best experience."],"uSFHsO":["Infographic"],"n668ni":["Informal"],"xazJTP":["Informative"],"BjFC8p":["Initial Context Applied"],"MfdckZ":["Initial System Instruction"],"TKQ7K+":["Install"],"UCDdDm":["Install selected "],"eQkgKV":["Installed"],"p7xApR":["Instruction"],"2oyZ/L":["Instructive"],"GUNLv1":["Interactive Content"],"4SUOez":["Interactive content may slow down your chat experience or be distracting."],"a9Ogao":["Interactive Editor"],"umwQp0":["Interview"],"cTxEen":["Invalid API endpoint."],"EPw/o1":["Invalid API key. Please make sure your API key is still working properly."],"sX7IVf":["Invalid API key. Please make sure your API key is still working properly. Error details:"],"svQd1q":["Invalid OpenAI Function Spec. Please check your JSON."],"e6Mc3R":["Invalid plugin. Please try again."],"Tri+cM":["Invalid User Settings. Please check your JSON."],"eJbPDS":["Invite code:"],"127v3Z":["Ironic"],"2zlZZS":["Is it ok to give my OpenAI API Key to TypingMind? Does OpenAI allow this use case?"],"9wNN3e":["Is my API Key encrypted in local storage?"],"CNe6lp":["Is the License Key one-time purchase? Do I need to renew it?"],"feGwUZ":["Is there a MacOS/Windows/Linux app?"],"1RMOfL":["Is there an Android/iOS/iPad app?"],"Po7tj6":["Is there an expiration date for the License Key?"],"xkuRyy":["is thinking"],"b5PxgQ":["Is this app free?"],"IWs4FI":["is typing"],"HsTJS/":["It\'s free and takes 2 minutes. You need a Google account."],"uIjGvG":["JavaScript Code Implementation"],"lulNQ0":["Journalistic"],"B2Zb/F":["JSON"],"legu7S":["JSON Editor"],"leS9hw":["JSON file"],"9ocsRS":["JSON Source"],"aABkGI":["Kagi Session Link"],"FIkhWn":["KB"],"15ZLRx":["Keep the data"],"y+HKwM":["Keep your data safe!"],"h7MgpO":["Keyboard Shortcuts"],"DVMnO1":["Keyboard shortcuts are not avaiable on mobile"],"Ev5qq2":["Knowledge"],"yWH3P0":["Knowledge Base"],"RQg3Qq":["Knowledge base & embedding processing"],"P0InwF":["Knowledge base access"],"vXIe7J":["Language"],"k7rCa/":["Large"],"JwWiPD":["Last Created"],"UXBCwc":["Last Name"],"qF4jem":["Last Sync"],"zt4unR":["Last Sync: Never"],"tKCBU0":["Last Used"],"zwWKhA":["Learn more"],"NgeSlx":["Learn More"],"BpKSYw":["Learn more about Knowledge Base"],"4nqCi7":["Learn more about OpenAI\'s model, tokens, and context length here."],"ypjVz9":["Less Repetition"],"CcsE7w":["Let the AI know how to response when this profile is used."],"J59eBU":["Let us know how we can make your experience better."],"iYRN9M":["License activated successfully!"],"4o/F78":["License Key"],"ttpgzw":["License Key is used to activate the premium features of TypingMind.com. API Key refers to OpenAI ChatGPT API Key, and is used to connect to OpenAI\'s API to interact with ChatGPT. You need an API Key to use the app. The License Key is only needed if you want to use the premium features."],"h12eY8":["License Key vs. API Key"],"1njn7W":["Light"],"yRkqG9":["Limit"],"p1R7Bt":["Limit #",["0"]],"ml4bvW":["Limit:"],"tQU1G2":["Limitations"],"Hl5i8k":["Limited LTD"],"3Lok4R":["Limited-time offer!"],"6BDqha":["Limits"],"aPY7WC":["List more"],"95r17U":["Listening..."],"UBSiBT":["Listicle"],"bqeTuo":["Llama, Mistral, Perplexity,..."],"dSVyu4":["Load from GitHub"],"WgAC4O":["Load more... (",["0"],")"],"N69wao":["Load Plugin"],"VUP5qf":["Loading Configuration"],"r53GSi":["Loading Plugin..."],"Z3FXyt":["Loading..."],"d5zxa4":["Local"],"2tuzFd":["Local Chat Data:"],"dTa89z":["Local Only"],"rXS98F":["Local Only Mode"],"2iTmdZ":["Local Storage:"],"j8TVcH":["LocalAI (Vicuna, Alpaca, LLaMa, GPT4All, Dolly, etc.)"],"HD2Tiz":["Lock"],"FK/gUg":["Login / Signup"],"khlq+8":["Login Here"],"pzMtjG":["Login to"],"UjFbj1":["Login to sync your data"],"rpu3w+":["Login to sync your data across devices"],"5z2/lU":["Login to TypingMind Cloud"],"Oal4RA":["Login to TypingMind Cloud to get started"],"11JwGr":["Login with email"],"u62JiU":["Login with Email"],"nOhz3x":["Logout"],"ZRkDy6":["Logout from all other sessions"],"4TQrIR":["Lost your license key?"],"hOsSks":["Loved by 18,203+ <0> happy customers"],"nTWWCZ":["Low"],"pdO539":["Lower"],"mk1nRo":["Make friendlier"],"gCwTrH":["Make it friendlier"],"rt3dUx":["Make it longer"],"XckBJl":["Make it more professional"],"ebxFoX":["Make it shorter"],"rRLXT4":["Make longer"],"a0DzB4":["Make more professional"],"xTY2A5":["Make shorter"],"OpIDIK":["Make sure you have your billing info added in <0>OpenAI Billing page. Without billing info, your API key will not work."],"PGlNrd":["Manage Archived Chats"],"l51yT8":["Manage Cloud Sync"],"KhaF0E":["Manage Models"],"UwHZGA":["Manage Plugins"],"2Q43sq":["Manage Shared Links"],"L9IOec":["Manage Subscription"],"faXgrj":["Manage your API keys"],"V7tkSw":["Manage your models and add custom models"],"2P75cf":["Manage/Recover License Key"],"s4b7mG":["Markdown copied to clipboard"],"7FWkv7":["Max Tokens: ",["0"]],"XNLbke":["Maximum Devices Allowed: ",["0"]],"Dd7YLj":["Maybe later"],"agPptk":["Medium"],"Kbwvno":["Memo"],"R8Ba3j":["Message Attachments (Images, Files, etc.)"],"6hMGSB":["Messages Count"],"0ivkbP":["Metadata & User Data:"],"Uo2nri":["Metaphorical"],"3TSz9S":["Minimize"],"9jE74n":["Missing API endpoint or API key."],"lRVSrT":["Missing required key:"],"lXJuyl":["Mistral AI"],"scu3wk":["Model"],"2/J7Pw":["Model & parameters"],"xobO/8":["Model For Title Generation"],"IzB3v0":["Model ID"],"0f8VF5":["Model Quick Selection"],"VdtyvK":["Model Settings"],"hDkkvu":["Model:"],"//nm2/":["Models"],"EvGHqi":["Models Visibility And Order"],"3xm05L":["More stable"],"SjsPQu":["More variable"],"mq//7G":["Move <0>",["chatTitle"]," to"],"/DMBqC":["Move To Folder"],"IS4pR3":["Multi-steps automation and batch processing."],"qhwV2C":["My Account"],"/bH4kC":["My Prompt"],"6YtxFj":["Name"],"Sn9236":["Narrative"],"KwhrYp":["Need help creating plugins?"],"6FUdfq":["Need setup"],"proQUv":["Neutral"],"hIQkLb":["New chat"],"q2+WzE":["New Chat"],"9cpN03":["New Chat in Project/Folder"],"5FLa/t":["New Chat Instance"],"5sQUqJ":["New features, improvements, and bug fixes."],"+VXUp8":["New Project"],"qdyV/M":["News"],"5ACX4z":["Newsletter"],"UcAV3Q":["Nice, the endpoint is working! \uD83C\uDF89"],"1UzENP":["No"],"oPoLg+":["No access"],"pvU+A0":["No agents found"],"2Pl7Xj":["No AI agents found"],"ypvWKm":["No AI agents found for \\"",["debouncedSearch"],"\\""],"cUyict":["No AI agents in your library yet."],"TwE9Sr":["No assigned AI agent"],"CP6gDt":["No Chats Yet"],"INI7x0":["No information available"],"1xVZkL":["No models found"],"Eo6Lg5":["No plugins available"],"uLNH6C":["No plugins found"],"KaEIDi":["No prompts found"],"PPDN8S":["No refresh. Use until cache expires."],"tSEkZI":["No result found for \\"",["searchKeyword"],"\\""],"Ev2r9A":["No results"],"1dhpFr":["No results."],"JD9x0S":["No tags"],"WRRjA9":["No tags found"],"cCELIA":["No tags found!"],"7tSS3w":["No you can\'t, and you shouldn\'t. It\'s not safe to share your License Key and API Key to the public like that. The Static App Self-host version is meant for personal use. If you are looking to setup a custom deployment of TypingMind for your team/community/customers, please check out https://typingmind.com/custom"],"FTMbwN":["No, but you can add typingmind.com to your home screen. It works exaclty like an app!"],"z3hnVp":["No, I want to use my own API key"],"wIOBEk":["No! A ChatGPT Plus subscription is not needed. You just need to have an OpenAI\'s API Key. You can see more info on how to get one here: https://openai.com/blog/openai-api"],"dy1KlD":["No. The license key only grants you the permission to use and deploy the app on your own server. You do not have permissions to modify or redistribute the code. The full source code is not available for sale as the app is not open-source. You will only receive the compiled code of the app, you can deploy the app anywhere without having to update any code or settings."],"EdQY6l":["None"],"IFw5tv":["Normal Text"],"F4BUzD":["NOT allow to access to any data in knowledge base"],"tHgS4B":["Not completed yet"],"2T68PV":["Note: Extensions have full access to the application and can read and modify any data. Only install extensions from sources you trust."],"yA1cUG":["Note: only models with OpenAI compatible API are supported."],"EuE1GI":["Note: Post-Processing only works with JSON responses."],"CvvaRA":["Note: some voices have different character limits."],"mIHRS/":["Note: The content of the API response will be injected to the system prompt, keep your API response short to avoid exceeding the context limit. The best response format is Markdown or Formatted JSON. API responses that are longer than 15% of the model context length will be truncated automatically."],"rF9ATR":["Note: Web Search works best with the <0>GPT-4 model. Enable Web Search will consume more tokens. All web searches are private. Learn more below."],"3iGIId":["Note: You have another Anthropic API key linked to your user profile that takes higher priority. Open Profile Settings (at the top left corner of the sidebar) to update the API key if needed."],"W7Ly1q":["Note: You have another Google Gemini API key linked to your user profile that takes higher priority. Open Profile Settings (at the top left corner of the sidebar) to update the API key if needed."],"On2Jfx":["Note: You have another OpenAI API key linked to your user profile that takes higher priority. Open Profile Settings (at the top left corner of the sidebar) to update the API key if needed."],"NnuIWZ":["Note: you may need to update your API key after changing the endpoint."],"743mE0":["Note: You pay for your own API usage directly to Azure. API requests to Azure are sent directly from your browser without any intermediate server. No one can see your chat content and audio. Enjoy your privacy!"],"UIpYys":["Note: You pay for your own API usage directly to ElevenLabs. API requests to ElevenLabs are sent directly from your browser without any intermediate server. No one can see your chat content and audio. Enjoy your privacy!"],"YCZmv6":["Note: You pay for your own API usage directly to Groq. API requests to Groq are sent directly from your browser without any intermediate server. No one can see your chat content and audio. Enjoy your privacy!"],"dk+V/P":["Nothing found for \\"",["0"],"\\""],"Amd0C9":["Nothing to export."],"qmm0gd":["Notify Me"],"upFPtm":["Numbered List"],"tnGFYP":["OAuth Callback URL for this plugin:"],"FHJMtd":["OAuth Client ID"],"uDlpb7":["OAuth Client secret"],"EAEmSC":["OAuth Client Secret"],"GITnVx":["OAuth Config"],"zga9sT":["OK"],"ESs79K":["Oldest Chats First"],"NIhxhS":["Ollama (Local models: Llava, Llama2, Mistral, Orca, etc.)"],"TnJB0v":["Only allow access to some knowledge base data based on tags"],"FjIVLO":["Only sample from the top K options for each subsequent token. Used to remove \\"long tail\\" low probability responses. Min: 0"],"cf3IX1":["Only store your data on this device, no where else"],"ci8hdq":["Only users in specific groups"],"0Zv01M":["Open Backup & Sync"],"WL5Be4":["Open chat with this AI agent"],"lydwZP":["Open code in CodePen editor with 1 click."],"wc9o2P":["Open Full Page →"],"jZlMgr":["Open in CodePen"],"N5skTB":["Open in separate window"],"seLMUl":["Open Router models"],"s19V4z":["Open Search"],"OdnLE4":["Open sidebar"],"z6JOyi":["Open Voice Input"],"9ElpTL":["Open-minded"],"16pk+G":["OpenAI API Key"],"rNGD7J":["OpenAI API Org ID"],"Rde+o4":["OpenAI Chat Completions Endpoint (V1)"],"7HIUd6":["OpenAI Function Spec"],"4cpPCu":["OpenAI Function Spec is required."],"/xxPLj":["OpenAI Function Spec must have a \\"description\\" property."],"LWocrQ":["OpenAI Function Spec must have a \\"name\\" property."],"dbxhNC":["OpenAI Function Spec:"],"7+CA6l":["OpenAI Status: OK"],"D0uUAb":["OpenAI Status: Slow"],"rmkBdt":["OpenAI Status: Unavailable"],"lKxYcA":["OpenAI Text-to-speech"],"BLqwK7":["OpenAI Text-to-speech requires an OpenAI API Key. Please enter an OpenAI API Key to the app and try again."],"GAv/8X":["OpenAI TTS"],"I3d9HX":["OpenAI Whisper"],"dV7X6u":["OpenAI Whisper Endpoint (V1)"],"t8fFLT":["OpenAI Whisper Prompt:"],"2tVhma":["Opinion"],"rnF+lT":["Optimistic"],"AWA6XY":["optional"],"mp5yqd":["or <0>Upload an audio file"],"I8e+C7":["or anything"],"D7Tm8N":["Our new PWA desktop app is faster, more reliable, and receive updates more frequently. Upgrade now to enjoy the best TypingMind experience!"],"kUi10t":["Output format"],"2o7xcf":["Output Options"],"zJA0U6":["Output Settings"],"ulC6II":["Override Global Model Parameters"],"kzRPrD":["Override system instructions"],"6FSnpy":["Overview (Markdown Supported)"],"l9QF2Y":["Overview:"],"Dr0LZI":["Part ",["0"]],"IgrLD/":["Pause"],"hgrGkS":["Perplexity AI"],"jAz6//":["Persuasive"],"Dc1wVa":["Pessimistic"],"CGEos+":["Pick a color theme for the sidebar"],"qVkGWK":["Pin"],"6dGmJN":["Pin messages"],"NGcwCb":["Pin this AI agent on the main page"],"AURbCJ":["Pinned Messages"],"PBh8Vb":["Pitch: ",["0"]],"GdgCoi":["Plan"],"T91vKp":["Play"],"jzYyPY":["Playful"],"QJz/m1":["Please buy a license to start chatting with this character."],"HW9F5K":["Please confirm that you may lose your data the browser cache or site data is cleared."],"gZgzWU":["Please enter the endpoint."],"RHJKj9":["Please enter your API endpoint and API key to start using Azure Whisper."],"rvyFY9":["Please enter your API key to get started."],"jF//iB":["Please enter your ElevenLabs API key to start using text-to-speech."],"ve+NlK":["Please enter your Groq API key to start using Groq Whisper."],"vbl882":["Please export and backup your chats regularly to avoid data lost! <0>Learn how to protect your data."],"wwrAsK":["Please fill in all required fields"],"JOCX5y":["Please finish adding a Custom Model first (or click Cancel) before applying changes."],"m1DS6L":["Please login to see all available prompts"],"49/2RF":["Please login to see this page."],"36Sd6M":["Please make a copy of the links below, they will not be shown again."],"V5qHtW":["Please make a copy of the links below, you can also manage all previous shared links in <0>Manage Shared Links"],"i3ClJg":["Please provide the configuration for your OAuth connection. The <0>Client ID and <1>Client Secret will be required when this plugin is installed by the user."],"k8Mebo":["Please select tags..."],"cQKduU":["Please try to reload the app."],"AuMuvf":["Please wait while we sync your data with this device"],"rYG2u6":["Please wait..."],"fOuPPd":["Plugin"],"VGOLXi":["Plugin Code Implementation not available"],"IUFHsm":["Plugin Context"],"0dl2VR":["Plugin is running"],"ErRKov":["Plugin Name"],"4od74D":["Plugin name is required."],"nqxUE9":["Plugin OpenAI Function Spec not available"],"LQLgsn":["Plugin overview not available"],"eKHY3W":["Plugin Settings"],"E+y9QY":["Plugin Store"],"heVD0V":["Plugin supported"],"eTB1Zi":["plugins"],"ohUJJM":["Plugins"],"+f7Oe7":["Plugins are ignored because the selected model(s) does not support plugins."],"bPwU1X":["Plugins are locked for this chat"],"xEajPb":["Plugins supported"],"m6koiy":["Plugins: Not Supported"],"LKmpE/":["Plugins: Supported"],"TsPLF1":["Podcast Script"],"HkrWZH":["Poem"],"mcGYQP":["Poetic"],"lXk/9o":["Policy Document"],"PfQA36":["Possible workarounds"],"gF9SeK":["Post-Processing"],"6LWacs":["Precise"],"Q6hhn8":["Preferences"],"J7wKTg":["Presence Penalty: ",["0"]],"FOoDGS":["Presentation"],"gBJdgA":["Press \\"/\\" to focus input"],"PeRQRx":["Press [Tab] to move to the next fill-in-the-blank position."],"uy5i6n":["Press Release"],"a7u1N9":["Price"],"VRFxH7":["Price for Cost Estimation"],"7SLmmC":["Price for Cost Estimation (Optional)"],"5ELsGs":["Pricing varied"],"eU6vr7":["Primary response"],"R3vQ4L":["Print / PDF"],"8AUk5H":["Print this page or save as PDF"],"rjGI/Q":["Privacy"],"LcET2C":["Privacy Policy"],"k+M+xc":["Processing Engine:"],"me35xG":["Product Description"],"vERlcd":["Profile"],"xBzEtd":["Profile Image URL:"],"Szskbr":["Profile Picture"],"NI0r0N":["Profile picture URL must starts with http:// or https://"],"xvRniw":["Profile Picture URL:"],"vrQQgz":["Profiles"],"1mnY67":["Programmable Search Engine (by Google)"],"pqNt/b":["Programmable Search Engine (by Google) is a customizable tool that allows developers to integrate Google\'s search capabilities into their applications or websites."],"e0NrBM":["Project"],"uP40eF":["Project Context & Instructions"],"KUmtmn":["Project Documents"],"Wsk5pi":["Project Settings"],"W9uQXX":["Prompt"],"I4xXUB":["Prompt caching helps save token costs for long conversations. Enabling this will incur additional tokens when initiating the cache for the first time, but it can save many more tokens later, especially for long conversations. Not all models support caching, and some models require a minimum number of tokens for caching to be initiated. Please check with your AI model provider for more information."],"uwdnq4":["Prompt caching supported"],"Ax3Odx":["Prompt Caching:"],"+ZJAD0":["Prompt cloned successfully"],"YChMiU":["Prompt Details"],"MqJtNb":["Prompt Library"],"3jrgtI":["Prompt Title (e.g., \'Domain Names Inspirations\')"],"o73FAt":["Prompt:"],"Ad1kG/":["prompts"],"Qmr3jO":["Prompts"],"JPFjAF":["Prompts are message templates that you can quickly fill in the chat input. Some prompts come with variables."],"o0VDVK":["Prompts are message templates that you can quickly fill in to use in chat, work with AI agents, or build your workflow."],"8B+pY5":["Property"],"i+CFi4":["Property Value"],"qcybNQ":["Proposal"],"aemBRq":["Provider"],"AH5Ipl":["Proxy & Org ID"],"4bZkAM":["Put to background"],"T3l2/7":["Put your OpenAI Function Spec here..."],"z2HsPn":["Q&A"],"E3ezcL":["queue"],"b24kPi":["Queue"],"RQWuCs":["Queue message"],"ZhhOwV":["Quote"],"T0P5gs":["Randomize AI agent\'s avatar"],"TAocpQ":["Rate: ",["0"]],"fqH5by":["Re-sync everything"],"TUtaJT":["Read from HTTP endpoint"],"pcGj5q":["Read our documentations to explore more awesome features of TypingMind, or click \\"Finish\\" to close this window."],"CQ+awi":["Reasoning Effort (Reasoning models only): ",["0"]],"NJkBJc":["Recent Chats First"],"uUXlSw":["Recommendation: 128x128"],"YS2bZx":["Recommendation: 4 words or less."],"WEYdDv":["Recommended"],"w80YWM":["Record"],"GyaNUA":["Record Again"],"9kEKKZ":["Recover License Key"],"lJLwnC":["Redo changes"],"PjpB64":["Refresh once per chat (or when cache expires)"],"rC5mbl":["Refresh once per message (or when cache expires)"],"6exX+8":["Regenerate"],"JhXfkQ":["Register Here"],"y/AqEB":["Remind me later"],"t/YqKh":["Remove"],"V69Ifk":["Remove \\"",["0"],"\\" from chat"],"w61W3L":["Remove ",["0"]],"mTAnk+":["Remove API Key & Disable Web Search"],"+J8ouA":["Remove Key"],"u/WKTl":["Render plugin output as interactive HTML"],"HVm9F2":["Render plugin output as markdown"],"yjKqG9":["Reopen previous chat when app open"],"toJdZA":["Reorder"],"fqSfXY":["Replace"],"gjpdaf":["Report"],"yWOswz":["Request Body (JSON)"],"dZjnSE":["Request Body Format"],"ArNNAV":["Request Headers (JSON)"],"lY4/S/":["Requests to the endpoint are sent directly from the browser. Make sure your endpoint is configurated correctly to avoid CORS related issues."],"RIssSO":["Research Paper"],"OfhWJH":["Reset"],"Xi0sEu":["Reset chat"],"kQlJyC":["Reset Chat"],"SFteAp":["Reset Default"],"L+rMC9":["Reset to default"],"Tj36Dr":["Reset to Default"],"u6QeR6":["Restart Now"],"heil9d":["Restart the app to update to the latest version."],"mBkVGB":["Restore Now"],"RD6AE9":["Result"],"v39wLo":["Resume"],"5k0NLb":["Review"],"HLaotW":["Rewrite"],"Wt3M+q":["Safety Settings (Gemini Only):"],"K6tmBZ":["Sarcastic"],"4uPDxA":["Satirical"],"tfDRzk":["Save"],"mxFYYR":["Save API Key"],"IUwGEM":["Save Changes"],"a/Fq24":["Save Credentials"],"01Jn66":["Save OAuth Config"],"u1xg0F":["Saved successfully!"],"Zi7dyz":["Script"],"sAePxr":["Search agents, prompts, chats..."],"NQ+qi8":["Search agents..."],"4IdIIf":["Search AI agents..."],"aDVBYo":["Search API"],"PtdI1b":["Search API Key"],"fsSQWV":["Search API Key is now working!"],"a4xYoA":["Search chats"],"5qSvKg":["Search Engine ID"],"IV+KjO":["Search KB"],"hFjdEL":["Search Knowledge Base"],"vUOA1+":["Search models..."],"50DcYA":["Search on the internet:"],"slq1pb":["Search plugins..."],"z+mgCt":["Search prompts..."],"xEEOHj":["Search Suggestions Link"],"lnWve4":["Search tags"],"PTtf3y":["Search tags..."],"9Bfco2":["Search your prompts"],"kRqYtp":["Searching knowledge base"],"WNypG5":["Secret Link"],"V1fa9u":["See more"],"iqebkX":["See more FAQs"],"rG3WVm":["Select"],"uvUq+/":["Select a mode to continue"],"z9xdHh":["Select a tab"],"yM5jvp":["Select AI agent"],"c/+K+h":["Select AI Agents"],"mCB6Je":["Select All"],"YH4rCS":["Select an Identity Provider:"],"Vhdpu5":["Select files"],"H7uKqh":["Select groups"],"MHm/fc":["Select Language"],"pvt8IL":["Select multiple agents"],"hJGyn0":["Select multiple chats"],"Tm9WZ6":["Select multiple plugins"],"MZXtNc":["Select multiple prompts"],"VNEe/a":["Select number of seats to buy:"],"C/Z3uS":["Select primary response"],"euBEyc":["Select the profile you want to use"],"O6y01T":["Select what request content type is used by your provider during the authorization flow. Most providers use JSON."],"QdU0Z4":["Select what you want to sync"],"ylXj1N":["Selected"],"LTE+c6":["Self-host means you deploy the same version of TypingMind.com on your own web hosting server and domain name for your personal use."],"JlFcis":["Send"],"kryw05":["Send audio messages"],"7xHXyX":["Send Code"],"LDzfVJ":["Send Feedback"],"Ls+eRP":["Send Test Request"],"QEQlnV":["Send your first message"],"3fV/9W":["Sent at"],"OI539Y":["Serious"],"IihslU":["Set as primary response"],"qRsPIT":["Set default"],"HWCeD3":["Set Default"],"KblLWf":["Set up Knowledge Base now"],"p/gs19":["Set up your OAuth connection for this plugin. The user will need to authenticate before using the plugin."],"1J28UM":["Setapp provides you with some free models, do you want to use free model instead?"],"Tz0i8g":["Settings"],"Ykx85n":["Settings & Tips"],"ah70YE":["Setup Backup & Sync"],"QWHv0N":["Setup OAuth Credentials"],"xwwTVi":["Sexually explicit"],"Z8lGw6":["Share"],"nntTLt":["Share & download as a JSON file"],"h+U8sH":["Share Agent: ",["0"]],"5zYChD":["Share conversation in HTML format"],"TwWdwu":["Share conversation in Markdown text format"],"QxxWAu":["Share Now"],"/9EVpH":["Share Plugin: ",["0"]],"uD5/Z+":["Share This Chat"],"cY+WFi":["Share to <0>ShareGPT"],"I5kQvS":["Share your experience \uD83D\uDC47"],"4DIWvs":["Shared At"],"xMp08Q":["Shared Data"],"4+XAJf":["Shared Links"],"PUO6ed":["Show Advanced Options"],"TKt2IH":["Show Content"],"qsNpLL":["Show estimated tokens while typing"],"xgss0e":["Show in artifacts panel"],"sgzcYD":["Show labels"],"w1f7ZM":["Show on header and while typing"],"2xLA9y":["Show Play button after assistant messages"],"rlNC9x":["Show raw"],"5amG4X":["Show settings"],"Y6SK9K":["Show source"],"6kuw9a":["Show, hide, sort models for quick selection on the navbar"],"pRcxFW":["Showing <0>",["0"]," to <1>",["1"]," of <2>",["totalResult"]," results"],"ebEv56":["Sidebar Color"],"tbgdI4":["Sidebar Style"],"e/ToF5":["Sign in with ",["0"]],"bbwmyn":["Simple license management via email"],"EgLNbX":["Simple text prompt (with variables)"],"Cj2Gtd":["Size"],"PCSkw2":["Skills"],"CoiZM+":["Skipped ",["0"]," chats due to an unsupported format"],"Ada8m+":["Skipped ",["0"]," chats, see details"],"w625t8":["Slower"],"4Revpc":["Small"],"Kmbi2z":["Social Media Post"],"aUncCu":["Some dynamic context failed"],"+iNEMI":["Some enhanced features on TypingMind will increase your token usage. You can always turn these features off in the Settings pannel (click the gear icon in the sidebar). The enhanced features include: Chat Title Suggestion, Search Keywords Suggestions, AI Agents, Upload Document, etc. Amount of tokens used depends on the AI agent and the length of your document."],"ZgGAHI":["Some people prefer to run the software on their own server for privacy and availability reasons. For example, if TypingMind.com becomes inaccessible in the future, you can still access your own version of TypingMind from your server without any problem. The self-host version can also be run locally like an app."],"lkE00/":["Something went wrong. Please try again later."],"fWsBTs":["Something went wrong. Please try again."],"/nDSZq":["Something went wrong. Please try again. Open Developer Console to see more details."],"UGi5Zs":["Something went wrong. Please try again. Open the console may reveal more information."],"x2knav":["Something went wrong. This could be a temporary network connection issue. Please try again or contact support. Opening the console might help clarifying the issue."],"+IoUcJ":["Sorry, audio input is not yet supported on your device/browser."],"lYgpBY":["Sorry, that license key is invalid."],"rl6b8I":["Sorry, there has been a problem with the sync data. Open the Console might clarify the issue."],"cNnfG2":["Sorry, there has been a problem with the sync process. Open the Console might clarify the issue."],"04ofk2":["Sorry, your browser/device does not support Speech-to-Text API. Please select another Speech-to-Text service."],"ZqFmVi":["Sorry. Voice input is not yet supported on your device/browser."],"/HgF9q":["Sort by"],"B9GYd0":["Sort chats"],"Sb94+G":["Sound notifications"],"dpGL2Q":["Source:"],"u7yVRn":["Sources:"],"8BnJo9":["Speech"],"GPIMoy":["Speech API:"],"MbTAbA":["Speech-to-Text Provider:"],"UHgcpG":["Speed: ",["0"]],"CH0AaX":["Stability:"],"TJBHlP":["Standard"],"jDO+4L":["start a new chat"],"vPF04k":["Start a new chat"],"d9HU83":["Start a new chat from here"],"sW2vKi":["Start for free, upgrade any time"],"hYlkID":["Start talking..."],"JEGlfK":["Started"],"enxRnP":["Starting Model:"],"R1H72g":["Step-by-step"],"ygCKqB":["Stop"],"RlyAC4":["Storage Stats"],"oMGFep":["Storage upgrade"],"nd5PZx":["Store your data on the cloud and sync between devices"],"c7CCr7":["Stream AI responses word by word"],"3mDv0d":["Stream AI responses word by word (typing animation)"],"4/+ppZ":["Streaming output supported"],"hQRttt":["Submit"],"FP9FYD":["Subscription ends at"],"ddnJmC":["Suggest Search Keywords"],"yAyOUJ":["Suggest some first messages for the user to select from in the beginning of the conversation."],"dXoieq":["Summary"],"PDCXEl":["Support & Feedback"],"IHh1FJ":["Support OpenAI Vision"],"r41Eim":["Support Plugins (via OpenAI Functions)"],"BxntUw":["Support Streaming Output"],"0PIl7J":["Support System Role"],"Aqw8Kb":["Sure?"],"1+P9RR":["Switch to ",["0"]],"XerTC6":["Sympathetic"],"KmFUm2":["Sync Changes"],"OafbM3":["Sync will continue but you can start using the app right away."],"sP8i1e":["Synced At"],"GYA8rj":["Syncing Data..."],"uHIPUT":["Syncing..."],"D+NlUC":["System"],"WUMeSt":["System instruction"],"0cjp+o":["System Instruction"],"vawWq6":["System Instruction:"],"GGF/7/":["System Instructions:"],"BpBUFA":["System role supported"],"4hJhzz":["Table"],"OYHzN1":["Tags"],"HurUmz":["Tags (optional):"],"n6bA7l":["Tags:"],"9SpTGy":["Talking to <0>",["0"],""],"mwQvwH":["Team Profile"],"CAL6E9":["Teams"],"wanXT9":["Technical"],"8RB+0b":["Technical Documentation"],"r6Q6b1":["Temperature: ",["0"]],"8dEBSa":["Temperature: ",["temperature"]],"lHk6rb":["Template:"],"3WYP3r":["Tentative"],"4Y5H+g":["Terms"],"xowcRf":["Terms of Service"],"NnH3pK":["Test"],"ALQq49":["Test API Key"],"oRX7OJ":["Test audio:"],"NFYITQ":["Test Endpoint"],"V17zQG":["Test Missing Translation."],"cQfI46":["Test Variables (JSON)"],"yJvxHg":["Text (Markdown)"],"TTBVi5":["Text-to-speech"],"CZer2q":["Text-to-Speech"],"M+BBlf":["Text-to-speech is disabled. Please select a Speech API above to enable."],"nAl9s9":["Thank you for your purchase!"],"n8BVEC":["Thanks for sharing!"],"M8UX1B":["That endpoint is not working. Please check and try again. Open the console log may reveal more information."],"vVD6Dy":["That\'s not a license key. It looks like an OpenAI API Key, not a License Key. Please enter your license key instead."],"QS9Feg":["The AI assistant will remember your information on all future chats."],"7egM0P":["The app will connect to Anthropic API server via our proxy to check if your API Key is working properly."],"6NM9H1":["The app will connect to OpenAI API server to check if your API Key is working properly."],"gqbLFw":["The app will restart now."],"u5hWpH":["The base instructions for Web Search contains ~600 tokens. The search result will be added to the context and will be used to answer your question. The more search results you get, the more tokens will be used. The average number of tokens used for Web Search is ~800 tokens."],"vIw2Iu":["The Bulk License gives you a License Key that can be shared and used among your team members. Simply share your license key with your team members and they can use it on their devices."],"0pm0cB":["The ChatGPT API costs soooooo little you won\'t even notice it. Typical chat conversation is about 1000 characters, which costs ~$0.001. That\'s less than a cent. You can have thousands of chats and it will only costs you like $1. See official pricing here: https://openai.com/pricing#language-models"],"30hLYa":["The code that will be executed when the plugin is called. Must be a valid JavaScript code. <0>Learn how the code is executed here."],"gbk4fY":["The cost is calculated based on the <0>public pricing of OpenAI\'s API. Each model has its own pricing, each type of tokens in each model also has its own pricing."],"SaOL3y":["The current chat may come with limits. <0>See details"],"CH5FaG":["The custom model used for this chat is currently not available on your device. The default model <0>",["0"]," will be used for future messages of this chat."],"jbkRdE":["The default free plan of Programmable Search Engine includes 100 searches per day for free. If you need more, you may sign up for billing in the Google API Console. https://cloud.google.com/billing/docs/how-to/manage-billing-account"],"9pywHz":["The endpoint is invalid."],"BmbkK/":["The first ",["skippedMessagesCount"]," messages are forgotten."],"jherDw":["The first message to send to the user when start a new chat."],"pyyzCs":["The green dot indicates that OpenAI API services are working normally. When it turns red<0/>, that means OpenAI is slow or unresponsive due to high demand or other reasons."],"FngNgl":["The license key is valid forever."],"LSy+DK":["The maximum number of tokens to generate before stopping."],"qPRtFC":["The model has reached its maximum output tokens or context limit."],"6b+97c":["The model to start new chats with. When you create a new chat within this project, it will start with this model. You can change to another model manually anytime."],"iJi00j":["The number of characters is limited to ",["0"]," ",["4"],".<0>Your usage: ",["5"],"/",["6"],"."],"tE4Rz2":["The number of characters is limited to ",["0"]," per message"],"5u+jhV":["The number of files exceed the limit (",["fileUploadMaxTokens"],")."],"k2UV77":["The number of messages to include in the context for the AI assistant. When set to 1, the AI assistant will only see and remember the most recent message."],"kXFHYg":["The number of requests is limited to ",["0"]," ",["4"],".<0>Your usage: ",["5"],"/",["6"],"."],"Torea7":["The official website is https://developers.google.com/custom-search/v1/overview. Also, you can follow the instructions on this page https://tdinh.notion.site/How-to-get-Search-Engine-ID-and-API-Key-on-Programmable-Search-Engine-by-Google-b861a749b20f4fcdbc1449f92ad9ed9a"],"wb6atD":["The plugin\'s users (you or someone else) will need to provide the API Key under the Settings tab when using the plugin. If you want to create a plugin with your private API key and the plugin\'s users don\'t need to provide an API Key when using it, sign up for <0>TypingMind Custom to have access to <1>Server-Side Plugin."],"9r58AF":["The premium features include: Chat Search History, Access Prompt Library, Integrations, etc. Check the pricing page for the latest details of all the premium features."],"Za69ud":["The search requests are sent directly from your browser to the search API without any intermediate servers. Your privacy is 100% protected. No one can see your search query and search result except you and the search engine itself."],"UUd8gD":["The selected model is unavailable. Please select another option"],"zJpCEF":["The self-host version comes for free when you buy a license key. There is no support on technical issues if you self-host. If you don\'t have the technical skills to setup the self-host version, we recommend using the hosted version on https://typingmind.com instead. You can also checkout the Custom Deployment for easier setup with custom branding and manage team member: https://typingmind.com/custom (available as a separate purchase)"],"WQEjxZ":["The shared chat only contains the messages <0>at the time it was created. Future messages are not synced automatically. You can share a chat multiple times and have different links each time."],"j123Pn":["The static self-host version does not offer any customizations. Check out https://custom.typingmind.com for a custom version of TypingMind that will allow you to customize almost everything."],"vhyRqG":["The total length of your training files is too big for the selected model. Please remove some files or select another model."],"FEr96N":["Theme"],"WhnWdJ":["Theme: Dark Mode"],"yTmIDf":["Theme: Light Mode"],"ide/cZ":["Theme: System Setting"],"/6BsWs":["There are no login options available. Please contact the admin of this instance for more information."],"i4CFDG":["There are way too many possible technical issues that could happen with various tech stacks and server configurations that are not in my control. That\'s why I cannot offer technical support if you have problem with your self-hosted version."],"ZdIhm8":["There is a current temporary issue with our payment processor <0>Lemon Squeezy that causes the receipt emails to be lost for some customers. This happen more frequently with <1>PayPal users."],"Y5YwXd":["There is no need to manage your devices manually. Our license system works automatically. Inactive devices will be revoked automatically after a short time. We detect unauthorized uses and ask to verify with your purchase email when necessary."],"hzceqz":["There was an error syncing your data. Please try to sync again."],"vadr8e":["These files will be embeded directly to the system instruction for all chats in this project."],"wE+556":["Think"],"CGYYZ/":["Think step-by-step"],"Ed99mE":["Thinking..."],"3gfZ4K":["This agent can be installed by anyone who has the link."],"k5Es8x":["This AI agent has an assigned voice"],"t77h0I":["This AI agent has assigned plugins"],"e50+si":["This archive file is empty."],"WKj+ZI":["This can be used to provide advanced instructions to the AI. This works in combination with the plugin\'s spec function description, you can use this to provide more detailed prompts or add real-time data even before the plugin is run. Plugin context will be added to the AI\'s context (system prompt) when the plugin is enabled for the conversation, even if the AI decide not to run the plugin."],"/tOeF0":["This could be because OpenAI\'s server is experiencing high demand or having an outage. Usually, the issue will goes away pretty quick. You can try to send your message again every few minutes. If it takes too long, go to <0>https://status.openai.com to check their service status."],"6QICdW":["This device has been unlinked from your license key. Please enter your license key again to activate this device."],"XvQUAU":["This device is currently linked with an existing license key. Please unlink it first before activating another license key."],"Mwh/zr":["This extension has already been installed"],"FHVG+T":["This feature"],"ksNPZj":["This instance does\'t have any SSO connections yet. If you are an admin, you can add a new SSO connection in the Admin Panel."],"HZu0OM":["This is a built-in plugin"],"aLYsEA":["This is a built-in plugin, you can read the details but cannot edit it. If you want to customize it, you can duplicate and then edit the duplicated version."],"XmhWD2":["This is a built-in system plugin, you can view the details but cannot edit or delete it."],"gmIkCC":["This is a premium agent. Please buy a license to chat with it."],"cKOmN0":["This is a static web app, it doesn\'t have any backend server. When you enter your API key, it will be stored locally and securely on your browser. All API requests are sent directly from your browser to OpenAI server to interact with ChatGPT. Think of this as a HTTP client for your ChatGPT API with a lot of convenience features."],"vBSaD3":["This is an example chat for demonstration purposes"],"UFFTVk":["This is not a valid archive file or it has been corrupted."],"C9R6Ya":["This is the total length of your current conversation. It is calculated by OpenAI\'s API when you send a message."],"v7jVhI":["This library is empty"],"cTdBYz":["This license key is valid but it has reached the maximum number of activated devices."],"CAvPyP":["This limitation is set by the model provider. This can happen if your message is too long or the model is trying to generate too much output tokens."],"M2+O2G":["This link is not valid"],"sFQY0W":["This means your browser cache or site data is cleared, <0>you will lose your chat history."],"F1uW/d":["This plugin allows you to search the web..."],"xGQeda":["This plugin can be installed by anyone who has the link."],"4AaI7a":["This plugin is assigned to the AI agent but could not be used. Please check if you have installed the plugin and make sure you are using a model with plugins support."],"9uPju4":["This profile has custom API keys linked"],"0WKTdg":["This URL is only valid for the current plugin."],"tAhtTZ":["This will <0>upload your chat conversation to <1>",["0"]," and become <2>publicly accessible for anyone on the internet."],"G2oQAJ":["This will <0>upload your chat conversation to <1>sharegpt.com and become <2>publicly accessible for anyone on the internet."],"SUPntS":["This will also delete any unsynced data associated with your account on those devices. Make sure to sync your data from everywhere before continuing."],"g6OdIQ":["This will be appended to the system instruction for all chats in this project. Note that this does not override, but \\"appended\\" on top of the global system instruction and agent-specific instructions."],"BHoBQr":["This will be used as the system instruction for the AI agent."],"u7fI8q":["This will delete all of your local data from this device, including your chat messages, prompts, agents, custom models, API keys, license key, and reset everything app setting to default. This action is irreversible. Type \\"delete all\\" to the textbox below to confirm."],"wppqhq":["This will only appear if the AI response includes a list of items."],"qZyW8X":["This will remove your license key from this device and you will not be able to use the premium features on this device. Are you sure?"],"B73D1t":["Thought for ",["durationSeconds"]," seconds"],"cDuld0":["Thought for a while"],"7fH3I5":["Tip: Use exactly 4 dashes \\"----\\" as the separator to queue more than one message in one go."],"x4f8pZ":["Tips"],"CjQccY":["Tips: Drag to reorder your current AI agents"],"MHrjPM":["Title"],"mZ8cE/":["Title A to Z"],"X5DieB":["Title and instruction cannot be empty!"],"oE9Wxh":["Title and prompt cannot be empty!"],"Q9vh8b":["Title and System instruction cannot be empty!"],"MUnptd":["Title Z to A"],"P2YRxu":["Title:"],"3fpIq1":["to ",["0"]],"UbVgIu":["to close"],"J5C0cq":["To delete the link above, go here:"],"rSHV7E":["To get started, select an AI agent"],"Xyoped":["To get started, we need to verify your email:"],"S0fQBK":["to navigate"],"TT5b0p":["To prevent this, you can enable <0>Backup & Sync. This will allow you to sync your chat history across devices and restore it if you ever lose it."],"gLj//H":["To unlock your API Key"],"quc4du":["Toggle Bold"],"vE7aXw":["Toggle Italic"],"UF1S+C":["Toggle Knowledge Base"],"VbbNWn":["Toggle Plugins"],"6poLt9":["Toggle Sidebar"],"U9lvA1":["Toggle table width"],"FPqUH0":["Toggle the Knowledge Base icon in the chat box to enable or disable the AI from searching your knowledge content."],"aXYSXE":["Toggle thinking mode"],"vWNv6D":["Token URL"],"7ziKq7":["Token usages are not recorded when <0>streaming response is enabled. We will work on improving this soon."],"uAQyzk":["Tone"],"VhAZmC":["Top K: ",["0"]],"fvdi5P":["Top P: ",["0"]],"SsfBpq":["Total cost:"],"sFQEa3":["Total Reasoning Tokens:"],"p26txP":["Total Tokens Cached:"],"+mOvod":["Total tokens of the files exceed the limit (",["fileUploadMaxTokens"],")."],"AG4LZH":["Total Tokens Spent:"],"Dil/yn":["Total:"],"eS4XLX":["Training Data Tags"],"rOzgch":["Training Examples:"],"cy9hKy":["Training files"],"fp5rKh":["Transcribing..."],"vzAe+s":["Translations provided and approved by human."],"nrlh+D":["Translations provided by AI and may not be accurate."],"P/asuJ":["Try adjusting the max_tokens parameter of the model."],"T7w4KT":["Tutorial"],"GxaPa/":["Type \\"@\\" to mention an AI agent"],"Kfz6IH":["Type \\"/\\" for menu"],"AMCFfq":["Type \\"/\\" for shortcuts..."],"O8x+FV":["Type \\"delete all\\" to confirm"],"4elSI1":["Type 2 or more characters to search..."],"JweEbC":["TypingMind — LLM Frontend Chat UI for AI models"],"Ie5XDH":["TypingMind Cloud"],"7zcVP2":["TypingMind currently only supports Google search engine. We will add more search engines in the future."],"qKkQ0P":["TypingMind for Teams"],"CHoY0X":["TypingMind is a PWA compatible web app, so you can install it to your device and it will work like a native app. Click the menu of your browser → Install on Home screen."],"kwR92f":["TypingMind offers additional encryption for your API Key. You can enable encryption with a password by clicking the \\"OpenAI API Key\\" button in the sidebar and selecting \\"Encrypt API key...\\". Your API Key will be encrypted using the AES algorithm provided by the open-source CryptoJS library (https://github.com/brix/crypto-js). TypingMind only provides an encryption feature for your API key. Chat messages, prompts, AI agents, and other elements are stored using the standard local storage of your browser, which may or may not include encryption, depending on your browser. The encryption process are done entirely locally on your device, there is no backend server. If you use TypingMind on multiple devices, you will need to encrypt your API key on all of them, you can also set different passwords on different devices."],"6nDmw9":["TypingMind respects your privacy. Your chat history is <0>only stored on this device by default and never sent to our servers."],"YHikSC":["TypingMind uses the same underlying model as OpenAI\'s default chat app. For the same prompt, it can produce different responses each time. The default chat app by OpenAI may also have some initial prompt settings that are different from TypingMind. If you don\'t get the response you expects, try \\"Re-generate Response\\" or tweaking the prompt."],"OnFMha":["TypingMind will ask for your password every time you open the app. If you forget your password, you will need to enter your API key again."],"ZyBweS":["TypingMind will use the search engine\'s API to execute the search query. The search requests are sent directly from your browser to the search API without any intermediate servers. Your privacy is 100% protected. No one can see your search query and search result except you and the search engine itself."],"cx6X5s":["TypingMind.com is free to use with some basic features. You will need to have a working OpenAI API Key in order to use the app. When you use the OpenAI API Key, you pay directly to OpenAI for the amount of credits/tokens you use. TypingMind.com has premium features that can be unlocked with a one-time purchase."],"2sahWU":["Unable to import plugin. Please try again."],"O7Pt9v":["Unable to Load Context"],"9OIlwU":["Unable to play audio: "],"Yyo7E4":["Unable to use the API. Check console logs and network requests for more information."],"oh1jwP":["Unable to use the API. Error message: "],"5JOLV9":["Unarchive"],"rOtf7B":["Unarchive Chat"],"b2vAoQ":["Uncategorized"],"iGSBjq":["Under the hood, ChatGPT Plus and ChatGPT API offer the same model and the same quality. You can view this on their official announcement here: https://platform.openai.com/docs/guides/chat. The initial system instruction can be a little bit different, which can be configured to make the AI output different messages from time to time."],"hgNOt7":["Undo changes"],"oGlwk+":["Unfavorite"],"MlM6IH":["Unfavorite Chat"],"fo0VXg":["Uninstall"],"NIuIk1":["Unlimited"],"W2RH+r":["Unlink this device"],"VAOn4r":["Unlock"],"FKZXRo":["Unlock all premium features"],"tUYydg":["Unlock Now"],"MEIAzV":["Unnamed"],"nWMRxa":["Unpin"],"Vl0t8k":["Unpin this AI agent on the main page"],"/lmbYn":["Unsupported Browser"],"x87WPC":["Untitled Chat"],"EkH9pt":["Update"],"L/gNNk":["Update ",["0"]],"2p/Kya":["Update Custom Model"],"XymtD/":["Update Payment Method"],"/LO3aj":["Update Plugin"],"3/+eGC":["Update Prompt"],"ZRx6Ce":["Update Tags"],"+b7T3G":["Updated"],"kwkhPe":["Upgrade"],"ls6PRs":["Upgrade to our new desktop app!"],"XZFk+E":["Upgrade to Premium"],"mA9qRK":["Upgrade to PWA desktop app"],"qedMtm":["Upload and create a secret link that can be viewed by anyone who has the link."],"+H4f9W":["Upload documents to help the AI agent understand your domain knowledge better. The documents will be included directly to the model\'s system instruction."],"xfXHtn":["Upload images/documents"],"WKTsgj":["Upload or connect your data. AI agents can lookup documents from your knowledge base when it needs more information to answer questions."],"XviHNU":["Upload or connect your data. AI agents can lookup documents from your knowledge base when it needs more information to answer questions. Knowledge Base requires an embedding server for data processing, which is provided by TypingMind Cloud."],"9Vfh5E":["Uploaded At"],"k39Ghd":["Uploading documents requires a license. Please buy a license to continue using this feature."],"tb6hYw":["Uploading images requires a license with the Premium plan. Please buy or upgrade your license to continue using this feature."],"9Rz3G/":["URL cannot be empty"],"qzYMlR":["URL to chat with this specific AI agent"],"7FaY4u":["Usage"],"uFPO5Q":["Usage limits"],"4Lzyp6":["Usage:"],"DsBeuB":["Use"],"nskWen":["Use <0>",["field1Variable"]," <1>",["field2Variable"]," <2>",["otherVariable"]," to indicate the fill in the blank part."],"xU8mHI":["Use <0>",["yourContentVariable"]," to indicate the fill in the blank part."],"EuANcq":["Use <0>Google Drive to backup and sync your data across devices."],"ELgLcF":["Use <0>User Settings and <1>Variables to setup API Key for this plugin (<2>learn how)."],"3HkJve":["Use Anthropic models"],"JvNcuL":["Use Global Default"],"U2SXTH":["Use Google Gemini models"],"v5uSXR":["Use now"],"TmUqS+":["Use OpenAI models"],"kQqZRh":["Use Single Sign-On (SSO)"],"7PzzBU":["User"],"FLoqsu":["User Groups"],"Roaswv":["User Guide"],"QOqjv5":["User message"],"y9LVx0":["User Message"],"fVja9T":["User profile"],"WzMCru":["User Profile"],"Nv92aJ":["User Settings (JSON, Optional)"],"GD4I91":["User Settings:"],"vM1Cz9":["User:"],"4aBfTf":["Users can\'t change the model when using this AI agent."],"SsgICz":["Using <0>",["0"],""],"fgipLP":["Using <0>",["0"],"..."],"UQfGo/":["Using alternative email server. Please enter your email and click send login code again."],"OoaSi5":["Using Open Router? See instructions here"],"48CuDM":["variable"],"xJggb1":["Variable names in the OpenAI Function Spec must consist of only letters and numbers, without spaces or special characters."],"0PQOqS":["Variable names in the User Settings must consist of only letters and numbers, without spaces or special characters."],"/AB7hm":["variables"],"e/cvV1":["Verifying..."],"YYdC3A":["Version ",["0"]],"bSSnpo":["Very sorry about this inconvenience!"],"nDMP/Q":["View all (",["count"],")"],"SZw9tS":["View Details"],"KvFtJO":["View Full Changelog →"],"dxFcof":["View Full Error"],"enkk1U":["View inline in chat"],"xZykeZ":["View plugin in chat"],"2q/Q7x":["Visibility"],"hs6G7P":["Vision supported"],"3BQnyB":["Voice ID"],"8YQMY4":["Voice Input"],"M7vN5/":["Voice Settings"],"cKuv8v":["Voice:"],"kWu0yk":["Waiting for previous audio to finish..."],"Wtu1aS":["Warm"],"Ud2w4n":["Warning: you have ",["unencryptedKeys","plural",{"one":["#"," unencrypted API key"],"other":["#"," unencrypted API keys"]}],". Please enter your password again to encrypt them."],"EK7vb0":["We are receiving multiple reports of OpenAI being slow or unresponsive. This is likely due to high demand. If your message is not being sent, please try again later. This issue will usually be resolved within a few hours. If it takes too long, go to <0>https://status.openai.com to check OpenAI service\'s status."],"W4JNTJ":["We encountered an error loading the initial context. You can continue using the application, but some information may be missing."],"Wtg0tB":["We found <0>",["0"]," chats that we were able to restore."],"qKRCLC":["We only notify you when <0>new features are added.<1/>No spam. Unsubscribe anytime."],"tD12zF":["We released <0>100+ updates in the last 6 months! You\'ll never get left behind on the new features and AI capabilities from OpenAI/Anthropic/Google."],"oVltH4":["We\'ve sent a code to your email. Please check your inbox (or spam folder) and enter the code below."],"9kNmZU":["Web API (Free)"],"LnnVIT":["Web Search"],"i8itRy":["Web Search is best used with GPT-4 because it has a larger context length and can store more search results and can pull out information from search result more reliably. However, you can still Web Search with GPT-3.5 without problems (most of the time)."],"rxEvnk":["Webinar"],"/IAPcI":["Welcome message"],"0ZTOta":["Welcome Message:"],"goIoni":["Welcome to TypingMind!"],"W4q2I+":["What about my privacy? Who can see my search query?"],"O6XziL":["What are the limitations of the free plans."],"iB2Bkg":["What are the limits? How many searches can I do?"],"DWdDaE":["What are the premium features?"],"XDMAfS":["What can I customize in the self-host version?"],"DwMTUj":["What is self-hosting?"],"h1Bn7G":["What permissions do I have with the self-host code?"],"zp5xO6":["What search engines are supported?"],"+Z6WVE":["What\'s the difference between ChatGPT Plus and ChatGPT API via TypingMind?"],"2h+sn/":["When you enable Web Search, TypingMind will use the function call feature provided by OpenAI models how to perform a search query using the selected search engine (which is Google by default). The model will then attempt to run a search command only when necessary and use the search result to answer your question."],"opv8HK":["When you reach a certain length, you cannot add any more messages to the chat. This is the <0>context length limit of the OpenAI\'s API."],"v2mmfw":["Where can I deploy my self-host version?"],"9uiWR5":["Where can I get an OpenAI API Key?"],"qbPmKP":["Where can I get the search engine API Key?"],"+bBKUL":["Whisper Model:"],"vkJWU0":["Whitepaper"],"nBo3N2":["Why does sometimes TypingMind responds differently than the default OpenAI\'s ChatGPT event with the same prompt?"],"Gi4C7z":["Why don\'t you offer technical support for the self-hosted version?"],"AUHjnb":["Why self-hosting? What are the benefits?"],"eXdID6":["Wide (1000px)"],"R2ZXpR":["Writing Style"],"l75CjT":["Yes"],"doZNDE":["Yes, Clear All Storage"],"+wDpvB":["Yes, license key is one-time purchase and valid forever. It is not a subscription and you don\'t need to renew it. You will also be provided with an offline static web app (self-host) after you purchase so you can self-host and use the app anytime anywhere you want. Enjoy!"],"Kb4R2a":["Yes, Unlink Now"],"GwJlK4":["Yes, use free Setapp models"],"ODPLFu":["Yes, you can use GPT-4 in TypingMind via the API access. Check out this article for more info: https://blog.typingmind.com/access-gpt-4-on-typingmind"],"sAVvxp":["Yes. After you make a purchase, go to https://www.typingmind.com/self-host-guide to download the static web app and the instruction how to deploy it on your own server. Note that you will only receive the compiled code of the app, the full source code is not available because the app is not open-source. You can deploy the app anywhere without having to update any code or settings."],"phssxy":["Yes. After you make a purchase, you will receive a link to download the static web app and the instruction how to deploy it on your own server. Note that you will only receive the compiled code of the app, the full source code is not available because the app is not open-source. You can deploy the app anywhere without having to update any code or settings."],"3ZEDHA":["Yes. Both are needed, as the self-hosted version is exactly the same as the version you see on TypingMind.com. The License Key is needed in the self-host version. When you enter the license key, the app will connect to TypingMind\'s license server to verify your license."],"UohlSp":["Yes. TypingMind only stores your API Key locally and never sends your API Key anywhere. OpenAI allows use cases where the API key is stored locally in the user\'s device. You can see this official response from OpenAI\'s staff here: https://community.openai.com/t/openais-bring-your-own-key-policy/14538/4"],"oKL8Ih":["Yes. We offer a 14-day money-back guarantee. If you\'re not satisfied, let us know within 14 days and we\'ll give you a full refund. Request a refund at support@typingmind.com"],"9dFN/h":["Yes. You need to have an OpenAI account and a valid API key to use ChatGPT. We don\'t sell API keys."],"+Obvhr":["You appear to be offline. Please check your internet connection and try again."],"rHUldn":["You are a helpful AI assistant."],"v6qdxF":["You are connected."],"ABRN9T":["You are not connected. Please authenticate to use this plugin."],"kW6uow":["You are now using profile \\"",["0"],"\\""],"qzMmix":["You are now using profile \\"Unnamed\\""],"2LLYJB":["You are on the <0>",["0"]," plan"],"R0g4gG":["You are using a preview version."],"Ny0rdk":["You are using the <0><1>free trial version."],"S2lnkb":["You can continue this in a new chat, but keep in mind that the assistant will not remember the previous conversation."],"jzCkMH":["You can delete some old messages from this chat, then start sending new messages again."],"j+Ja1t":["You can export the chats and import it on another device. You can also enable TypingMind Cloud for seamless syncing across devices. TypingMind Cloud is a free service provided to all paying TypingMind users. You can enable it by clicking the cloud icon at the bottom of the sidebar."],"le4y7Z":["You can go to https://www.typingmind.com/license to access your license key."],"a1v3bw":["You can have as many chats as you want. The only limit is your OpenAI API key\'s limit and your browser storage limit (technical term: Local Storage and IndexedDB). Web browser gives you some limited data storage, the actual limit is different for each browser. Typically, you can save thousands of chat conversations without problems, but that\'s not guaranteed. When the browser storage runs out, you will need to delete old chats to save the new ones. We will provide a separate service to sync and backup your chats soon. Adding the website to your home screen may increase the storage capacity."],"acFGPW":["You can now close this window."],"b/cYO6":["You can share a chat multiple times and have different links each time. The link contains the chat conversation and the time it was created."],"B7bPOO":["You can signup directly with OpenAI at https://platform.openai.com/signup"],"G4U6ac":["You can still continue to chat, but the model will start to forget the old messages."],"MSib0J":["You can, but keep in mind that they will also need a TypingMind License Key and OpenAI API Key in order to use it. If you are looking to use TypingMind for a team check out https://custom.typingmind.com"],"EqTwmj":["You cannot edit the system AI agents. Please clone them to make changes."],"kgSpG5":["You cannot share the system AI agents. Please clone them to share."],"meXG5q":["You don\'t have a license key. Please buy or enter a license key to continue using all features."],"yZwzBP":["You don\'t have any AI agents yet."],"IBn/EB":["You don\'t have any invite codes. Please come back later."],"N775f5":["You don\'t have any profiles, click \\"Add profile\\" to create a new one"],"tdX+tp":["You have"],"HSfYBl":["You have ",["0"]," large chat(s) that require backup."],"GF1tzK":["You have <0>",["0"]," changes that have not been synced to the cloud. Your last sync was ",["1"]," (<1>",["2"],")."],"ejaSaN":["You have <0>",["0"],"."],"X6EZIu":["You have deleted the agent successfully!"],"0we8PW":["You have deleted the plugin successfully!"],"LjgHYd":["You have logged out of Cloud Sync. Do you want to clear all your data in the current device?"],"fmVolr":["You have no saved prompts. Tap \\"Add Prompt\\" to add a new prompt."],"sTxGM6":["You have reached the context length limit of the <0>",["model"]," model for this chat."],"hzwvwf":["You have reached the maximum number of dynamic context endpoints."],"ICsA6P":["You have unsaved changes"],"TKppIR":["You have unsaved changes."],"O7hKeS":["You have unsynced changes"],"02OlWC":["You need an Anthropic API Key to use TypingMind."],"K3giZ9":["You need an Gemini API Key to use TypingMind."],"zNOnmO":["You need an OpenAI API Key to use the app."],"GhBsU+":["You need to buy a license key to use this feature."],"zFLIIJ":["You now have ",["0"]," on this device"],"d/uOLs":["You will need this license key when you use TypingMind on another device. You will also receive a receipt and a license key <0>in your email shortly."],"NTiTcj":["Your AI agents"],"/UaKK0":["Your API is safe and stored locally on your device. This is a static app, which means that it doesn\'t have a backend. All the data is stored in your browser\'s local storage. Requests to Open AI\'s API is sent directly from your current browser (check the Network tab in your console if you want to see it)."],"uxcgu1":["Your API key is encrypted with a password"],"yX4ZJX":["Your API Key is stored locally on your browser and never sent anywhere else."],"70QBvo":["Your API Key is working normally."],"Wzyks2":["Your browser does not support speech synthesis."],"BS31Ou":["Your character description"],"abiI8L":["Your character title"],"HS7jeS":["your content here"],"cHR7zG":["Your data include chat messages, agents, prompts, custom models, app settings, etc."],"F56PXI":["Your department, bio, etc."],"vpp2uI":["Your Information"],"PnL/Iu":["Your license is activated"],"lZKsDP":["Your license key is being used on more devices than its limit allows. Please unlink other devices and enter your license key again.<0/>Click <1>Manage/Recover License Key to go to the License Manager."],"WQv9/K":["Your license key is: <0>***",["0"]," "],"/Rj5P4":["Your Name"],"+e9xkq":["Your Prompts"],"At02Ci":["Your Public Link:"],"uYL3GC":["Your Public Link: (tap below to copy)"],"kIKiOK":["Your sastifaction is our top priority!"],"38yscL":["Your users will not see the endpoints and the content of the Dynamic Context."],"QOj7An":["Your users will not see the training files you uploaded."],"81+Izy":["Your users will not see these prompts"],"t03RMp":["Your users will not see this instruction."]}')}},18477:(e,t,r)=>{"use strict";r.d(t,{A:()=>h,I:()=>d});var n=r(88017),i=r(97630),o=r.n(i),a=r(44109),s=r(24760),u=r(879),c=r(85910);let l=(0,a.createContext)(),d=()=>(0,a.useContext)(l),f={id:"lkE00/"};function h(e){let{children:t,defaultUser:r}=e,[i,d]=(0,a.useState)(null),[h,p]=(0,a.useState)(r),[m,g]=(0,a.useState)(!0),[y,b]=(0,a.useState)(null),{i18n:v}=(0,u.uB)(),w=(0,a.useCallback)(async()=>{g(!0),b("");try{let e=await fetch("/api/hosted-users/users/self",{headers:{"Content-Type":"application/json"}});if(403===e.status){await S();return}if(e.status>=400){let t=await e.json();b(t.userMessage||v._(f)),g(!1);return}if(!e.ok){b(v._(f)),g(!1);return}let t=await e.json();return p(t),t}catch(e){b(v._(f)),console.error(e)}return g(!1),null},[]),S=(0,a.useCallback)(async()=>{try{await fetch("/api/hosted-users/logout",{method:"POST"})}catch(e){}s.A.remove("org_token"),s.A.remove("typingmindcloud_token"),await _(),window.location.reload()},[]),_=(0,a.useCallback)(async()=>{window.localStorage.clear(),await (0,c.g5)()},[]),x=(0,a.useCallback)(()=>{let e=s.A.get("typingmindcloud_token");try{let t=o().decode(e);d(t)}catch(e){console.error("Failed to decode cloud token",e)}},[]),A=(0,a.useCallback)(()=>{s.A.remove("typingmindcloud_token"),d(null)},[]);(0,a.useEffect)(()=>{x()},[]);let k=(0,a.useMemo)(()=>({user:h,loading:m,loadUser:w,logout:S,setUser:p,cloudTokenPayload:i,loadCloudSyncTokenFromCookie:x,logoutCloudSyncOnly:A,clearAllLocalData:_}),[h,m,w,S,p,i,x,A,_]);return(0,n.jsx)(l.Provider,{value:k,children:t})}},19154:(e,t,r)=>{"use strict";let n=r(62492),i="undefined"!=typeof window?r(72076).Buffer:r.g.Buffer;function o(e){return 12+4*Math.ceil(e.length/4)}function a(){return"undefined"==typeof window||"undefined"==typeof document}function s(e){return e.BYTES_PER_ELEMENT?e.length*e.BYTES_PER_ELEMENT:-1}function u(e){let t=0,r=-1;try{let r=e;if(e instanceof Map?r=Object.fromEntries(e):e instanceof Set&&(r=Array.from(e)),ArrayBuffer.isView(e))return s(e);let n=JSON.stringify(r,(e,t)=>{if("bigint"==typeof t||"function"==typeof t)return t.toString();if(void 0===t)return"undefined";if("symbol"==typeof t)return t.toString();if(t instanceof RegExp)return t.toString();else return t});t=i.byteLength(n,"utf8")}catch(e){return Error(r)}return t}function c(e){let t=[],r=[e],s=0;for(;r.length;){let u=r.pop();if("boolean"==typeof u)s+=n.BYTES;else if("string"==typeof u)a()?s+=o(u):s+=u.length*n.STRING;else if("number"==typeof u)s+=n.NUMBER;else if("symbol"==typeof u)Symbol.keyFor&&Symbol.keyFor(e)?s+=Symbol.keyFor(e).length*n.STRING:s+=(e.toString().length-8)*n.STRING;else if("bigint"==typeof u)s+=i.from(u.toString()).byteLength;else if("function"==typeof u)s+=u.toString().length;else if("object"==typeof u&&-1===t.indexOf(u))for(let e in t.push(u),u)r.push(u[e])}return s}e.exports=function(e){let t=0;return null!==e&&"object"==typeof e?u(e):c(e)}},19543:e=>{"use strict";e.exports=URIError},20810:(e,t,r)=>{let n=Symbol("SemVer ANY");class i{static get ANY(){return n}constructor(e,t){if(t=o(t),e instanceof i){if(!!t.loose===e.loose)return e;e=e.value}c("comparator",e=e.trim().split(/\s+/).join(" "),t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===n?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){let t=this.options.loose?a[s.COMPARATORLOOSE]:a[s.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new l(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===n||e===n)return!0;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}return u(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof i))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new d(e.value,t).test(this.value):""===e.operator?""===e.value||new d(this.value,t).test(e.semver):!((t=o(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||u(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||u(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"))}}e.exports=i;let o=r(52421),{safeRe:a,t:s}=r(69686),u=r(90971),c=r(44990),l=r(22626),d=r(83715)},21316:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},21634:(e,t,r)=>{let n=r(22626),i=(e,t)=>new n(e,t).minor;e.exports=i},22049:(e,t,r)=>{let n=r(16241),i=(e,t)=>e.sort((e,r)=>n(r,e,t));e.exports=i},22626:(e,t,r)=>{let n=r(44990),{MAX_LENGTH:i,MAX_SAFE_INTEGER:o}=r(16048),{safeRe:a,t:s}=r(69686),u=r(52421),{compareIdentifiers:c}=r(83493);class l{constructor(e,t){if(t=u(t),e instanceof l){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw TypeError(`version is longer than ${i} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let r=e.trim().match(t.loose?a[s.LOOSE]:a[s.FULL]);if(!r)throw TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>o||this.major<0)throw TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let n=[t,e];!1===r&&(n=[t]),0===c(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=l},22835:module=>{var __dirname="/";!function(){var __webpack_modules__={950:function(__unused_webpack_module,exports){var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0;r{let n=r(22626),i=r(83715),o=(e,t,r)=>{let o=null,a=null,s=null;try{s=new i(t,r)}catch(e){return null}return e.forEach(e=>{s.test(e)&&(!o||-1===a.compare(e))&&(a=new n(o=e,r))}),o};e.exports=o},24607:(e,t,r)=>{"use strict";function n(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}r.d(t,{A:()=>n})},24760:(e,t,r)=>{"use strict";function n(e){for(var t=1;to});var o=i({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})},24791:(e,t,r)=>{let n=r(22626),i=r(83715),o=r(32742),a=(e,t)=>{e=new i(e,t);let r=new n("0.0.0");if(e.test(r)||(r=new n("0.0.0-0"),e.test(r)))return r;r=null;for(let t=0;t{let t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!a||o(t,a))&&(a=t);break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),a&&(!r||o(r,a))&&(r=a)}return r&&e.test(r)?r:null};e.exports=a},25561:(e,t,r)=>{"use strict";var n=("undefined"!=typeof JSON?JSON:r(14574)).stringify,i=r(67602),o=r(75166),a=r(34802),s=r(11361),u=s("Array.prototype.join"),c=s("Array.prototype.indexOf"),l=s("Array.prototype.splice"),d=s("Array.prototype.sort"),f=function(e,t){for(var r="",n=0;n1?arguments[1]:void 0,r=t&&t.space||"";"number"==typeof r&&(r=f(r," "));var s=!!t&&"boolean"==typeof t.cycles&&t.cycles,p=t&&t.replacer?a(t.replacer):h,m="function"==typeof t?t:t&&t.cmp,g=m&&function(e){var t=m.length>2&&function(t){return e[t]};return function(r,n){return m({key:r,value:e[r]},{key:n,value:e[n]},t?{__proto__:null,get:t}:void 0)}},y=[];return function e(t,a,h,m){var b=r?"\n"+f(m,r):"",v=r?": ":":";if(h&&h.toJSON&&"function"==typeof h.toJSON&&(h=h.toJSON()),void 0!==(h=p(t,a,h))){if("object"!=typeof h||null===h)return n(h);if(i(h)){for(var w=[],S=0;S{function t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function r(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&t(e.slice(0,0))}e.exports=function(e){return null!=e&&(t(e)||r(e)||!!e._isBuffer)}},26512:(e,t,r)=>{var n=r(72076).Buffer;e.exports=function(e){return"string"==typeof e?e:"number"==typeof e||n.isBuffer(e)?e.toString():JSON.stringify(e)}},26844:(e,t,r)=>{let n=r(22626),i=r(52252),{safeRe:o,t:a}=r(69686),s=(e,t)=>{if(e instanceof n)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){let n;let i=t.includePrerelease?o[a.COERCERTLFULL]:o[a.COERCERTL];for(;(n=i.exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&n.index+n[0].length===r.index+r[0].length||(r=n),i.lastIndex=n.index+n[1].length+n[2].length;i.lastIndex=-1}else r=e.match(t.includePrerelease?o[a.COERCEFULL]:o[a.COERCE]);if(null===r)return null;let s=r[2],u=r[3]||"0",c=r[4]||"0",l=t.includePrerelease&&r[5]?`-${r[5]}`:"",d=t.includePrerelease&&r[6]?`+${r[6]}`:"";return i(`${s}.${u}.${c}${l}${d}`,t)};e.exports=s},27036:(e,t,r)=>{"use strict";r.d(t,{W:()=>o});var n=r(44109),i=r(30362);let o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],[t,r]=(0,n.useState)(e);return(0,n.useEffect)(()=>{let e=async()=>{r(await (0,i.Mi)().get("TM_useUserPrompts")||[])};return e(),window.addEventListener("update-user-prompts",e),()=>{window.removeEventListener("update-user-prompts",e)}},[]),[t,(0,n.useCallback)(async e=>{let t=await (0,i.Mi)().get("TM_useUserPrompts")||[],n="function"==typeof e?e(t):e;r(n),await (0,i.Mi)().set("TM_useUserPrompts",n);{let e=new Event("update-user-prompts");window.dispatchEvent(e)}},[])]}},27604:e=>{"use strict";e.exports=Object},28127:(e,t,r)=>{let n=r(22626),i=(e,t,r,i,o)=>{"string"==typeof r&&(o=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,o).version}catch(e){return null}};e.exports=i},28265:(e,t,r)=>{"use strict";var n=r(6333),i=r(10701),o=r(45703);e.exports=n?function(e){return n(e)}:i?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("getProto: not an object");return i(e)}:o?function(e){return o(e)}:null},28554:e=>{var t={};e.exports=t;var r={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(r).forEach(function(e){var n=r[e],i=t[e]=[];i.open="\x1b["+n[0]+"m",i.close="\x1b["+n[1]+"m"})},29831:(e,t,r)=>{var n=r(2272),i=r(98625);e.exports=i.satisfies(n.version,"^6.12.0 || >=8.0.0")},29979:(e,t,r)=>{var n=r(2272),i=r(2549).Buffer,o=r(66856);function a(e){if(this.buffer=null,this.writable=!0,this.readable=!0,!e)return this.buffer=i.alloc(0),this;if("function"==typeof e.pipe)return this.buffer=i.alloc(0),e.pipe(this),this;if(e.length||"object"==typeof e)return this.buffer=e,this.writable=!1,n.nextTick((function(){this.emit("end",e),this.readable=!1,this.emit("close")}).bind(this)),this;throw TypeError("Unexpected data type ("+typeof e+")")}r(65723).inherits(a,o),a.prototype.write=function(e){this.buffer=i.concat([this.buffer,i.from(e)]),this.emit("data",e)},a.prototype.end=function(e){e&&this.write(e),this.emit("end",e),this.emit("close"),this.writable=!1,this.readable=!1},e.exports=a},30013:e=>{"use strict";var t=Object.prototype.hasOwnProperty,r="~";function n(){}function i(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function o(e,t,n,o,a){if("function"!=typeof n)throw TypeError("The listener must be a function");var s=new i(n,o||e,a),u=r?r+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],s]:e._events[u].push(s):(e._events[u]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function s(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1)),s.prototype.eventNames=function(){var e,n,i=[];if(0===this._eventsCount)return i;for(n in e=this._events)t.call(e,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,a=Array(o);i{"use strict";r.d(t,{ur:()=>b,Mi:()=>g.Mi,c7:()=>g.c7,ML:()=>a});var n=r(44109),i=r(25561),o=r.n(i);function a(e,t,i,o){void 0===i&&(i=r.g),void 0===o&&(o={});var a=(0,n.useRef)(),s=o.capture,u=o.passive,c=o.once;(0,n.useEffect)(function(){a.current=t},[t]),(0,n.useEffect)(function(){if(i&&i.addEventListener){var t=function(e){return a.current(e)},r={capture:s,passive:u,once:c};return i.addEventListener(e,t,r),function(){i.removeEventListener(e,t,r)}}},[e,i,s,u,c])}let s={},u=(e,t,r)=>(s[e]||(s[e]={callbacks:[],value:r}),s[e].callbacks.push(t),{deregister(){let r=s[e].callbacks,n=r.indexOf(t);n>-1&&r.splice(n,1)},emit(r){s[e].value!==r&&(s[e].value=r,s[e].callbacks.forEach(e=>{t!==e&&setTimeout(()=>{e(r)},0)}))}}),c=(e,t,r)=>{let{get:i,set:o}=r,s=(0,n.useRef)(null),[c,l]=(0,n.useState)(()=>i(t,e)),d=(0,n.useRef)([]);return a("storage",r=>{let{key:n,newValue:i}=r;if(n===t){let t;try{t=JSON.parse(i)}catch(r){console.error("usePersistedState failed to parse",n,JSON.stringify(i),r),t=e}c!==t&&l(t)}}),(0,n.useEffect)(()=>{s.current=u(t,l,c);let r=d;return()=>{if(r.current.length>0){console.warn("usePersistedState is unmounting with pending updates, flushing to storage");let n=i(t,e);for(let e of r.current)n=e(n);o(t,n),s.current.emit(n)}s.current.deregister()}},[t]),[c,(0,n.useCallback)(r=>{{let e=new Event("local-storage");e.key=t,window.dispatchEvent(e)}if("function"==typeof r)d.current.push(r),l(n=>{try{let i=r(n);return null===i&&void 0!==e&&(null!==e&&console.warn("[usePersistedState Note] A persisted state with null value will be set to the default non-null value. ".concat(t," is now set to:"),e),i=e),o(t,i),s.current.emit(i),i}finally{let e=d.current.findIndex(e=>e===r);-1!==e&&d.current.splice(e,1)}});else{let n=r;null===n&&void 0!==e&&(null!==e&&console.warn("[usePersistedState Note] A persisted state with null value will be set to the default non-null value. ".concat(t," is now set to:"),e),n=e),o(t,n),l(n),s.current.emit(n)}},[e,o,t])]},l=(e,t)=>{try{return JSON.parse(e)}catch(e){return t}},d=e=>({get(t,r){let n=e.getItem(t),i="function"==typeof r?r():r;return"null"===n&&void 0===r?null:null===n||"null"===n||void 0===n?i:l(n,i)},set(t,r){e.setItem(t,JSON.stringify(r))}}),f={},h=()=>void 0!==r.g&&r.g.localStorage?r.g.localStorage:"undefined"!=typeof globalThis&&globalThis.localStorage?globalThis.localStorage:window.localStorage?window.localStorage:"undefined"!=typeof localStorage?localStorage:null,p=(e,t)=>{if(!(e in f))return f[e]=t,t;{if(t===f[e])return t;let r=o()(t),n=o()(f[e]);return r===n?f[e]:(console.error("⚠️ createPersistedState: inconsistant initialState provided for key ".concat(e," (changed from ").concat(n," to ").concat(r,"). This can lead to unexpected behavior. usePersistedState should always be created with the same initialState for the same key.")),t)}},m=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h();if(t){let r=d(t);return t=>c(p(e,t),e,r)}return n.useState};var g=r(16769);let y="TM_",b=e=>m(y+e)},30875:(e,t,r)=>{let n=r(83715),i=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "));e.exports=i},31553:e=>{"use strict";e.exports=Math.abs},31759:(e,t,r)=>{var n=r(86823),i=r(2549).Buffer,o=r(70103),a=r(84244),s=r(65723),u='"%s" is not a valid algorithm.\n Supported algorithms are:\n "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".',c="secret must be a string or buffer",l="key must be a string or a buffer",d="key must be a string, a buffer or an object",f="function"==typeof o.createPublicKey;function h(e){if(!i.isBuffer(e)&&"string"!=typeof e&&(!f||"object"!=typeof e||"string"!=typeof e.type||"string"!=typeof e.asymmetricKeyType||"function"!=typeof e.export))throw b(l)}function p(e){if(!i.isBuffer(e)&&"string"!=typeof e&&"object"!=typeof e)throw b(d)}function m(e){if(!i.isBuffer(e)){if("string"==typeof e)return e;if(!f||"object"!=typeof e||"secret"!==e.type||"function"!=typeof e.export)throw b(c)}}function g(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function y(e){var t=4-(e=e.toString()).length%4;if(4!==t)for(var r=0;r{"use strict";e.exports=Math.round},32742:(e,t,r)=>{let n=r(78968),i=(e,t,r)=>n(e,t,r)>0;e.exports=i},32860:(e,t,r)=>{"use strict";r.d(t,{A:()=>i,b:()=>n});var n=r(30013);let i=n},33685:(e,t)=>{t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<>1,l=-7,d=r?i-1:0,f=r?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-l)-1,h>>=-l,l+=s;l>0;o=256*o+e[t+d],d+=f,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+e[t+d],d+=f,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),o-=c}return(h?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,f=5960464477539062e-23*(23===i),h=n?0:o-1,p=n?1:-1,m=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(s=+!!isNaN(t),a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+d>=1?t+=f/u:t+=f*Math.pow(2,1-d),t*u>=2&&(a++,u/=2),a+d>=l?(s=0,a=l):a+d>=1?(s=(t*u-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[r+h]=255&s,h+=p,s/=256,i-=8);for(a=a<0;e[r+h]=255&a,h+=p,a/=256,c-=8);e[r+h-p]|=128*m}},33712:(e,t,r)=>{let n=r(78968),i=(e,t,r)=>0>=n(e,t,r);e.exports=i},34802:(e,t,r)=>{"use strict";var n=r(69206),i=r(97783),o=r(1853),a=r(99086);e.exports=function(e){var t=o(arguments),r=e.length-(arguments.length-1);return n(t,1+(r>0?r:0),!0)},i?i(e.exports,"apply",{value:a}):e.exports.apply=a},36734:(e,t,r)=>{!function(){var t=r(83277),n=r(15561).utf8,i=r(25999),o=r(15561).bin,a=function(e,r){e.constructor==String?e=r&&"binary"===r.encoding?o.stringToBytes(e):n.stringToBytes(e):i(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var s=t.bytesToWords(e),u=8*e.length,c=0x67452301,l=-0x10325477,d=-0x67452302,f=0x10325476,h=0;h>>24)&0xff00ff|(s[h]<<24|s[h]>>>8)&0xff00ff00;s[u>>>5]|=128<>>9<<4)+14]=u;for(var p=a._ff,m=a._gg,g=a._hh,y=a._ii,h=0;h>>0,l=l+v>>>0,d=d+w>>>0,f=f+S>>>0}return t.endian([c,l,d,f])};a._ff=function(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+(i>>>0)+a;return(s<>>32-o)+t},a._gg=function(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+(i>>>0)+a;return(s<>>32-o)+t},a._hh=function(e,t,r,n,i,o,a){var s=e+(t^r^n)+(i>>>0)+a;return(s<>>32-o)+t},a._ii=function(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+(i>>>0)+a;return(s<>>32-o)+t},a._blocksize=16,a._digestsize=16,e.exports=function(e,r){if(null==e)throw Error("Illegal argument "+e);var n=t.wordsToBytes(a(e,r));return r&&r.asBytes?n:r&&r.asString?o.bytesToString(n):t.bytesToHex(n)}}()},37207:e=>{var t="[object Boolean]",r=Object.prototype.toString;function n(e){return!0===e||!1===e||i(e)&&r.call(e)==t}function i(e){return!!e&&"object"==typeof e}e.exports=n},37916:(e,t,r)=>{let n=r(83715),i=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}};e.exports=i},37991:e=>{var t=function(e,t){Error.call(this,e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="JsonWebTokenError",this.message=e,t&&(this.inner=t)};t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,e.exports=t},38356:e=>{"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};function i(e){console&&console.warn&&console.warn(e)}t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}e.exports=a,e.exports.once=b,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var s=10;function u(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function l(e,t,r,n){if(u(r),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),s=a[t]),void 0===s)s=a[t]=r,++e._eventsCount;else if("function"==typeof s?s=a[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(o=c(e))>0&&s.length>o&&!s.warned){s.warned=!0;var o,a,s,l=Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,i(l)}return e}function d(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=d.bind(n);return i.listener=r,n.wrapFn=i,i}function h(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?y(i):m(i,i.length)}function p(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function m(e,t){for(var r=Array(t),n=0;n0&&(a=t[0]),a instanceof Error)throw a;var a,s=Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)n(u,this,t);else for(var c=u.length,l=m(u,c),r=0;r=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():g(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0==arguments.length){var i,o=Object.keys(r);for(n=0;n=0;n--)this.removeListener(e,t[n]);return this},a.prototype.listeners=function(e){return h(this,e,!0)},a.prototype.rawListeners=function(e){return h(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},a.prototype.listenerCount=p,a.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},38507:e=>{"use strict";e.exports=Math.pow},39606:function(e,t){var r,n,i;(function(){var o,a,s,u,c,l,d,f,h,p,m,g,y,b,v;s=Math.floor,p=Math.min,a=function(e,t){return et)},h=function(e,t,r,n,i){var o;if(null==r&&(r=0),null==i&&(i=a),r<0)throw Error("lo must be non-negative");for(null==n&&(n=e.length);ri(t,e[o=s((r+n)/2)])?n=o:r=o+1;return[].splice.apply(e,[r,r-r].concat(t)),t},l=function(e,t,r){return null==r&&(r=a),e.push(t),b(e,0,e.length-1,r)},c=function(e,t){var r,n;return null==t&&(t=a),r=e.pop(),e.length?(n=e[0],e[0]=r,v(e,0,t)):n=r,n},f=function(e,t,r){var n;return null==r&&(r=a),n=e[0],e[0]=t,v(e,0,r),n},d=function(e,t,r){var n;return null==r&&(r=a),e.length&&0>r(e[0],t)&&(t=(n=[e[0],t])[0],e[0]=n[1],v(e,0,r)),t},u=function(e,t){var r,n,i,o,u,c;for(null==t&&(t=a),o=(function(){c=[];for(var t=0,r=s(e.length/2);0<=r?tr;0<=r?t++:t--)c.push(t);return c}).apply(this).reverse(),u=[],n=0,i=o.length;nr(n=m[l],o)&&(h(s,n,0,null,r),s.pop(),o=s[s.length-1]);return s}for(u(e,r),y=[],i=d=0,g=p(t,e.length);0<=g?dg;i=0<=g?++d:--d)y.push(c(e,r));return y},b=function(e,t,r,n){var i,o,s;for(null==n&&(n=a),i=e[r];r>t;){if(0>n(i,o=e[s=r-1>>1])){e[r]=o,r=s;continue}break}return e[r]=i},v=function(e,t,r){var n,i,o,s,u;for(null==r&&(r=a),i=e.length,u=t,o=e[t],n=2*t+1;nr(e[n],e[s]))&&(n=s),e[t]=e[n],n=2*(t=n)+1;return e[t]=o,b(e,u,t,r)},o=function(){function e(e){this.cmp=null!=e?e:a,this.nodes=[]}return e.push=l,e.pop=c,e.replace=f,e.pushpop=d,e.heapify=u,e.updateItem=y,e.nlargest=m,e.nsmallest=g,e.prototype.push=function(e){return l(this.nodes,e,this.cmp)},e.prototype.pop=function(){return c(this.nodes,this.cmp)},e.prototype.peek=function(){return this.nodes[0]},e.prototype.contains=function(e){return -1!==this.nodes.indexOf(e)},e.prototype.replace=function(e){return f(this.nodes,e,this.cmp)},e.prototype.pushpop=function(e){return d(this.nodes,e,this.cmp)},e.prototype.heapify=function(){return u(this.nodes,this.cmp)},e.prototype.updateItem=function(e){return y(this.nodes,e,this.cmp)},e.prototype.clear=function(){return this.nodes=[]},e.prototype.empty=function(){return 0===this.nodes.length},e.prototype.size=function(){return this.nodes.length},e.prototype.clone=function(){var t;return(t=new e).nodes=this.nodes.slice(0),t},e.prototype.toArray=function(){return this.nodes.slice(0)},e.prototype.insert=e.prototype.push,e.prototype.top=e.prototype.peek,e.prototype.front=e.prototype.peek,e.prototype.has=e.prototype.contains,e.prototype.copy=e.prototype.clone,e}(),function(o,a){n=[],void 0!==(i="function"==typeof(r=a)?r.apply(t,n):r)&&(e.exports=i)}(0,function(){return o})}).call(this)},40920:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_});var n=r(88017);r(74602),r(71884),r(84610),r(74961);var i=r(879),o=r(81674),a=r(44109),s=r(63122),u=r(30362);function c(){let[e,t]=(0,a.useState)(!1),[r,i]=(0,a.useState)(""),o=()=>{window.location.reload()},s=async()=>{let e=await (0,u.Mi)().entries();i(JSON.stringify({localStorage:window.localStorage,indexedDbData:e}))},c=()=>{var e,t,r;window.localStorage.clear(),null===(r=window.webkit)||void 0===r||null===(t=r.messageHandlers)||void 0===t||null===(e=t.TypingMindMacApp)||void 0===e||e.postMessage("CLEAR_ALL_DATA"),window.location.reload()},l=()=>{t(!0)};return(0,n.jsxs)("div",{className:"my-4 max-w-xl mx-auto",children:[(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("button",{onClick:o,className:"inline-flex items-center px-4 py-2 border border-transparent text-base font-medium rounded-md shadow-sm text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:bg-gray-400 gap-2",children:(0,n.jsx)("span",{children:"Reload App"})}),(0,n.jsx)("div",{className:"text-sm my-2",children:"This will restart the app and reload all data. It should fix any temporary data coruption with no data lost but you will lose any unsaved changes."})]}),(0,n.jsxs)("details",{className:"space-y-8 text-center p-4 rounded-md border border-gray-200 my-4",children:[(0,n.jsx)("summary",{className:"my-4 text-lg font-semibold cursor-pointer hover:underline",children:"View Recovery Options"}),(0,n.jsxs)("div",{children:[(0,n.jsx)("button",{onClick:s,className:"inline-flex items-center px-4 py-2 border border-transparent text-base font-medium rounded-md shadow-sm text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:bg-gray-400 gap-2",children:(0,n.jsx)("span",{children:"Dump All Local Data"})}),(0,n.jsx)("div",{className:"text-sm my-2",children:"This will give you a copy of all the local data currently stored on this device. This data can be inspected by the developer to figure out what went wrong."})]}),r?(0,n.jsxs)("div",{className:"text-left",children:[(0,n.jsx)("div",{className:"text-sm my-2",children:(0,n.jsxs)("span",{className:"font-semibold",children:["Here is your data dump: (",r.length.toLocaleString()," ","bytes)",(0,n.jsx)("br",{}),"Note: This data dump contains all of your previous chat conversations, messages, prompts, custom characters, bookmarks, etc."]})}),(0,n.jsx)("textarea",{className:"w-full h-64 p-2 border border-gray-200 rounded-md",value:r})]}):null,(0,n.jsxs)("div",{children:[(0,n.jsx)("button",{onClick:l,className:"inline-flex items-center px-4 py-2 border border-transparent text-base font-medium rounded-md shadow-sm text-white bg-red-600 hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 disabled:bg-gray-400 gap-2",children:(0,n.jsx)("span",{children:"Clear All Data"})}),(0,n.jsx)("div",{className:"text-sm my-2 text-red-500",children:"This well return the app to its factory settings. All local data will be deleted and the app will be reset to its initial state. This will cause data lost!/"}),e?(0,n.jsxs)("div",{className:"text-sm my-2 text-red-500",children:["Are you sure you want to do this? This will cause data lost!",(0,n.jsx)("div",{className:"my-2",children:(0,n.jsx)("button",{onClick:c,className:"inline-flex items-center px-4 py-2 border border-transparent text-base font-medium rounded-md shadow-sm text-white bg-red-600 hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 disabled:bg-gray-400 gap-2",children:(0,n.jsx)("span",{children:"Yes, I'm sure. Delete all of my data on this device."})})})]}):null]})]})]})}class l extends a.Component{static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error("App render error",e,t),s.Cp(e)}render(){return this.state.hasError?(0,n.jsxs)("div",{className:"p-4 min-h-screen flex items-center justify-center flex-col",children:[(0,n.jsx)("div",{className:"text-7xl",children:"\uD83D\uDCA5"}),(0,n.jsx)("div",{className:"text-red-500 font-semibold ",children:"Oops! The app has been corrupted due to an unexpected error. Open the console log may reveal more information."}),this.state.error&&(0,n.jsx)("div",{className:"max-w-2xl mx-auto",children:(0,n.jsxs)("details",{className:"block w-full mt-10",children:[(0,n.jsx)("summary",{className:"cursor-pointer hover:underline",children:"View Technical Details"}),(0,n.jsx)("code",{className:"my-2 text-xs overflow-auto max-w-full px-2 block font-semibold",children:this.state.error.message}),(0,n.jsx)("code",{className:"my-2 text-xs overflow-auto max-w-full px-2 block whitespace-pre-line",style:{height:300},children:this.state.error.stack})]})}),(0,n.jsx)(c,{})]}):this.props.children}constructor(e){super(e),this.state={hasError:!1}}}let d={OK:"OK"},f=(0,a.createContext)();function h(e){let{children:t}=e,[r,i]=(0,a.useState)(d.OK),o=(0,a.useMemo)(()=>({openAIStatus:r,setOpenAIStatus:i}),[r]);return(0,n.jsx)(f.Provider,{value:o,children:t})}var p=r(80055),m=r(1274),g=r(18477),y=r(18235),b=r.n(y),v=r(93636),w=r(86852),S=r.n(w);let _=function(e){var t;let{Component:r,pageProps:a}=e;return a.locale&&"en"!==a.locale?o.Ru.loadAndActivate({locale:a.locale,messages:a.localeMessages}):o.Ru.loadAndActivate({locale:"en",messages:b().messages}),(0,n.jsx)(l,{children:(0,n.jsx)(i.CY,{i18n:o.Ru,children:(0,n.jsx)(p.A,{serverHostConfig:a.serverHostConfig,children:(0,n.jsxs)(h,{children:[(0,n.jsx)(g.A,{defaultUser:null==a?void 0:null===(t=a.serverHostConfig)||void 0===t?void 0:t.currentUser,children:(0,n.jsxs)(v.A,{children:[(0,n.jsx)("style",{jsx:!0,global:!0,children:"\n body {\n --font-inter: ".concat(S().style.fontFamily,";\n }\n ")}),(0,n.jsx)(r,{...a})]})}),(0,n.jsx)(m.l$,{toastOptions:{success:{style:{background:"#5ec269",color:"white"}},error:{style:{background:"#cb4538",color:"white"}}}})]})})})})}},41325:(e,t,r)=>{let n=r(91170),i=r(78968);e.exports=(e,t,r)=>{let o=[],a=null,s=null,u=e.sort((e,t)=>i(e,t,r));for(let e of u)n(e,t,r)?(s=e,a||(a=e)):(s&&o.push([a,s]),s=null,a=null);a&&o.push([a,null]);let c=[];for(let[e,t]of o)e===t?c.push(e):t||e!==u[0]?t?e===u[0]?c.push(`<=${t}`):c.push(`${e} - ${t}`):c.push(`>=${e}`):c.push("*");let l=c.join(" || "),d="string"==typeof t.raw?t.raw:String(t);return l.length{"use strict";var n=r(5193).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=o(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=p,this.end=m,t=4;break;case"utf8":this.fillLast=d,t=4;break;case"base64":this.text=g,this.end=y,t=3;break;default:this.write=b,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function u(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function c(e,t,r){var n=t.length-1;if(n=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function l(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function d(e){var t=this.lastTotal-this.lastNeed,r=l(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function f(e,t){var r=c(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function g(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function y(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function b(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):""}t.StringDecoder=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r{var n=r(2272);let i="object"==typeof n&&n.env&&n.env.NODE_DEBUG&&/\bsemver\b/i.test(n.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=i},45125:e=>{"use strict";e.exports=Error},45361:e=>{var t="[object Object]";function r(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function n(e,t){return function(r){return e(t(r))}}var i=Object.prototype,o=Function.prototype.toString,a=i.hasOwnProperty,s=o.call(Object),u=i.toString,c=n(Object.getPrototypeOf,Object);function l(e){return!!e&&"object"==typeof e}function d(e){if(!l(e)||u.call(e)!=t||r(e))return!1;var n=c(e);if(null===n)return!0;var i=a.call(n,"constructor")&&n.constructor;return"function"==typeof i&&i instanceof i&&o.call(i)==s}e.exports=d},45564:(e,t)=>{"use strict";t.byteLength=c,t.toByteArray=d,t.fromByteArray=p;for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function c(e){var t=u(e),r=t[0],n=t[1];return(r+n)*3/4-n}function l(e,t,r){return(t+r)*3/4-r}function d(e){var t,r,o=u(e),a=o[0],s=o[1],c=new i(l(e,a,s)),d=0,f=s>0?a-4:a;for(r=0;r>16&255,c[d++]=t>>8&255,c[d++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[d++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[d++]=t>>8&255,c[d++]=255&t),c}function f(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function h(e,t,r){for(var n=[],i=t;iu?u:s+a));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},45703:(e,t,r)=>{"use strict";var n,i=r(1853),o=r(9278);try{n=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!n&&o&&o(Object.prototype,"__proto__"),s=Object,u=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?i([a.get]):"function"==typeof u&&function(e){return u(null==e?e:s(e))}},45714:(e,t,r)=>{"use strict";function n(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}r.d(t,{A:()=>n})},46041:(e,t,r)=>{"use strict";function n(e){return function(t,r){var n;if("formatting"===(null!=r&&r.context?String(r.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=null!=r&&r.width?String(r.width):i;n=e.formattingValues[o]||e.formattingValues[i]}else{var a=e.defaultWidth,s=null!=r&&r.width?String(r.width):e.defaultWidth;n=e.values[s]||e.values[a]}return n[e.argumentCallback?e.argumentCallback(t):t]}}r.d(t,{A:()=>n})},46922:(e,t,r)=>{"use strict";r.d(t,{A:()=>eA});var n=r(64923),i=r(24607);function o(e){return(0,i.A)(1,arguments),e instanceof Date||"object"===(0,n.A)(e)&&"[object Date]"===Object.prototype.toString.call(e)}var a=r(60013);function s(e){return(0,i.A)(1,arguments),(!!o(e)||"number"==typeof e)&&!isNaN(Number((0,a.A)(e)))}var u=r(45714);function c(e,t){return(0,i.A)(2,arguments),new Date((0,a.A)(e).getTime()+(0,u.A)(t))}function l(e,t){return(0,i.A)(2,arguments),c(e,-(0,u.A)(t))}var d=864e5;function f(e){(0,i.A)(1,arguments);var t=(0,a.A)(e),r=t.getTime();return t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0),Math.floor((r-t.getTime())/d)+1}function h(e){(0,i.A)(1,arguments);var t=1,r=(0,a.A)(e),n=r.getUTCDay(),o=7*(n=o.getTime()?r+1:t.getTime()>=u.getTime()?r:r-1}function m(e){(0,i.A)(1,arguments);var t=p(e),r=new Date(0);return r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0),h(r)}var g=6048e5;function y(e){(0,i.A)(1,arguments);var t=(0,a.A)(e);return Math.round((h(t).getTime()-m(t).getTime())/g)+1}var b=r(85686),v=r(92038);function w(e,t){(0,i.A)(1,arguments);var r,n,o,s,c,l,d,f,h=(0,a.A)(e),p=h.getUTCFullYear(),m=(0,v.q)(),g=(0,u.A)(null!==(r=null!==(n=null!==(o=null!==(s=null==t?void 0:t.firstWeekContainsDate)&&void 0!==s?s:null==t?void 0:null===(c=t.locale)||void 0===c?void 0:null===(l=c.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==o?o:m.firstWeekContainsDate)&&void 0!==n?n:null===(d=m.locale)||void 0===d?void 0:null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==r?r:1);if(!(g>=1&&g<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(p+1,0,g),y.setUTCHours(0,0,0,0);var w=(0,b.A)(y,t),S=new Date(0);S.setUTCFullYear(p,0,g),S.setUTCHours(0,0,0,0);var _=(0,b.A)(S,t);return h.getTime()>=w.getTime()?p+1:h.getTime()>=_.getTime()?p:p-1}function S(e,t){(0,i.A)(1,arguments);var r,n,o,a,s,c,l,d,f=(0,v.q)(),h=(0,u.A)(null!==(r=null!==(n=null!==(o=null!==(a=null==t?void 0:t.firstWeekContainsDate)&&void 0!==a?a:null==t?void 0:null===(s=t.locale)||void 0===s?void 0:null===(c=s.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==o?o:f.firstWeekContainsDate)&&void 0!==n?n:null===(l=f.locale)||void 0===l?void 0:null===(d=l.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==r?r:1),p=w(e,t),m=new Date(0);return m.setUTCFullYear(p,0,h),m.setUTCHours(0,0,0,0),(0,b.A)(m,t)}var _=6048e5;function x(e,t){(0,i.A)(1,arguments);var r=(0,a.A)(e);return Math.round(((0,b.A)(r,t).getTime()-S(r,t).getTime())/_)+1}function A(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length0?r:1-r;return A("yy"===t?n%100:n,t.length)},M:function(e,t){var r=e.getUTCMonth();return"M"===t?String(r+1):A(r+1,2)},d:function(e,t){return A(e.getUTCDate(),t.length)},h:function(e,t){return A(e.getUTCHours()%12||12,t.length)},H:function(e,t){return A(e.getUTCHours(),t.length)},m:function(e,t){return A(e.getUTCMinutes(),t.length)},s:function(e,t){return A(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length;return A(Math.floor(e.getUTCMilliseconds()*Math.pow(10,r-3)),t.length)}};var E={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};function M(e,t){var r=e>0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),o=n%60;if(0===o)return r+String(i);var a=t||"";return r+String(i)+a+A(o,2)}function T(e,t){return e%60==0?(e>0?"-":"+")+A(Math.abs(e)/60,2):P(e,t)}function P(e,t){var r=t||"",n=e>0?"-":"+",i=Math.abs(e);return n+A(Math.floor(i/60),2)+r+A(i%60,2)}let I={G:function(e,t,r){var n=+(e.getUTCFullYear()>0);switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){var n=e.getUTCFullYear(),i=n>0?n:1-n;return r.ordinalNumber(i,{unit:"year"})}return k.y(e,t)},Y:function(e,t,r,n){var i=w(e,n),o=i>0?i:1-i;return"YY"===t?A(o%100,2):"Yo"===t?r.ordinalNumber(o,{unit:"year"}):A(o,t.length)},R:function(e,t){return A(p(e),t.length)},u:function(e,t){return A(e.getUTCFullYear(),t.length)},Q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return A(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return A(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){var n=e.getUTCMonth();switch(t){case"M":case"MM":return k.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return A(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){var i=x(e,n);return"wo"===t?r.ordinalNumber(i,{unit:"week"}):A(i,t.length)},I:function(e,t,r){var n=y(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):A(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):k.d(e,t)},D:function(e,t,r){var n=f(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):A(n,t.length)},E:function(e,t,r){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return A(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return A(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){var n=e.getUTCDay(),i=0===n?7:n;switch(t){case"i":return String(i);case"ii":return A(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){var n,i=e.getUTCHours();switch(n=12===i?E.noon:0===i?E.midnight:i/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){var n,i=e.getUTCHours();switch(n=i>=17?E.evening:i>=12?E.afternoon:i>=4?E.morning:E.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){var n=e.getUTCHours()%12;return 0===n&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return k.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):k.H(e,t)},K:function(e,t,r){var n=e.getUTCHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):A(n,t.length)},k:function(e,t,r){var n=e.getUTCHours();return(0===n&&(n=24),"ko"===t)?r.ordinalNumber(n,{unit:"hour"}):A(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):k.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):k.s(e,t)},S:function(e,t){return k.S(e,t)},X:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return T(i);case"XXXX":case"XX":return P(i);default:return P(i,":")}},x:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();switch(t){case"x":return T(i);case"xxxx":case"xx":return P(i);default:return P(i,":")}},O:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+M(i,":");default:return"GMT"+P(i,":")}},z:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+M(i,":");default:return"GMT"+P(i,":")}},t:function(e,t,r,n){return A(Math.floor((n._originalDate||e).getTime()/1e3),t.length)},T:function(e,t,r,n){return A((n._originalDate||e).getTime(),t.length)}};var C=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},O=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},R=function(e,t){var r,n=e.match(/(P+)(p+)?/)||[],i=n[1],o=n[2];if(!o)return C(e,t);switch(i){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;default:r=t.dateTime({width:"full"})}return r.replace("{{date}}",C(i,t)).replace("{{time}}",O(o,t))};let j={p:O,P:R};function D(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var L=["D","DD"],N=["YY","YYYY"];function B(e){return -1!==L.indexOf(e)}function U(e){return -1!==N.indexOf(e)}function F(e,t,r){if("YYYY"===e)throw RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var W={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};let H=function(e,t,r){var n,i=W[e];return(n="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!=r&&r.addSuffix)?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};var q=r(77503),K={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},G={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},z={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"};let $={date:(0,q.A)({formats:K,defaultWidth:"full"}),time:(0,q.A)({formats:G,defaultWidth:"full"}),dateTime:(0,q.A)({formats:z,defaultWidth:"full"})};var J={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};let Y=function(e,t,r,n){return J[e]};var V=r(46041),X={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Z={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Q={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ee={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},et={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},er={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}};let en={ordinalNumber:function(e,t){var r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:(0,V.A)({values:X,defaultWidth:"wide"}),quarter:(0,V.A)({values:Z,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,V.A)({values:Q,defaultWidth:"wide"}),day:(0,V.A)({values:ee,defaultWidth:"wide"}),dayPeriod:(0,V.A)({values:et,defaultWidth:"wide",formattingValues:er,defaultFormattingWidth:"wide"})};var ei=r(56321),eo=r(67563),ea=/^(\d+)(th|st|nd|rd)?/i,es=/\d+/i,eu={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ec={any:[/^b/i,/^(a|c)/i]},el={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ed={any:[/1/i,/2/i,/3/i,/4/i]},ef={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},eh={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},ep={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},em={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},eg={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},ey={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}};let eb={code:"en-US",formatDistance:H,formatLong:$,formatRelative:Y,localize:en,match:{ordinalNumber:(0,eo.A)({matchPattern:ea,parsePattern:es,valueCallback:function(e){return parseInt(e,10)}}),era:(0,ei.A)({matchPatterns:eu,defaultMatchWidth:"wide",parsePatterns:ec,defaultParseWidth:"any"}),quarter:(0,ei.A)({matchPatterns:el,defaultMatchWidth:"wide",parsePatterns:ed,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,ei.A)({matchPatterns:ef,defaultMatchWidth:"wide",parsePatterns:eh,defaultParseWidth:"any"}),day:(0,ei.A)({matchPatterns:ep,defaultMatchWidth:"wide",parsePatterns:em,defaultParseWidth:"any"}),dayPeriod:(0,ei.A)({matchPatterns:eg,defaultMatchWidth:"any",parsePatterns:ey,defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var ev=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ew=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,eS=/^'([^]*?)'?$/,e_=/''/g,ex=/[a-zA-Z]/;function eA(e,t,r){(0,i.A)(2,arguments);var n,o,c,d,f,h,p,m,g,y,b,w,S,_,x,A,k,E,M=String(t),T=(0,v.q)(),P=null!==(n=null!==(o=null==r?void 0:r.locale)&&void 0!==o?o:T.locale)&&void 0!==n?n:eb,C=(0,u.A)(null!==(c=null!==(d=null!==(f=null!==(h=null==r?void 0:r.firstWeekContainsDate)&&void 0!==h?h:null==r?void 0:null===(p=r.locale)||void 0===p?void 0:null===(m=p.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==f?f:T.firstWeekContainsDate)&&void 0!==d?d:null===(g=T.locale)||void 0===g?void 0:null===(y=g.options)||void 0===y?void 0:y.firstWeekContainsDate)&&void 0!==c?c:1);if(!(C>=1&&C<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=(0,u.A)(null!==(b=null!==(w=null!==(S=null!==(_=null==r?void 0:r.weekStartsOn)&&void 0!==_?_:null==r?void 0:null===(x=r.locale)||void 0===x?void 0:null===(A=x.options)||void 0===A?void 0:A.weekStartsOn)&&void 0!==S?S:T.weekStartsOn)&&void 0!==w?w:null===(k=T.locale)||void 0===k?void 0:null===(E=k.options)||void 0===E?void 0:E.weekStartsOn)&&void 0!==b?b:0);if(!(O>=0&&O<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!P.localize)throw RangeError("locale must contain localize property");if(!P.formatLong)throw RangeError("locale must contain formatLong property");var R=(0,a.A)(e);if(!s(R))throw RangeError("Invalid time value");var L=D(R),N=l(R,L),W={firstWeekContainsDate:C,weekStartsOn:O,locale:P,_originalDate:R};return M.match(ew).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,j[t])(e,P.formatLong):e}).join("").match(ev).map(function(n){if("''"===n)return"'";var i=n[0];if("'"===i)return ek(n);var o=I[i];if(o)return!(null!=r&&r.useAdditionalWeekYearTokens)&&U(n)&&F(n,t,String(e)),!(null!=r&&r.useAdditionalDayOfYearTokens)&&B(n)&&F(n,t,String(e)),o(N,n,P.localize,W);if(i.match(ex))throw RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return n}).join("")}function ek(e){var t=e.match(eS);return t?t[1].replace(e_,"'"):e}},47183:(e,t,r)=>{let n=r(60637),{extendedTypeOf:i}=r(69168),o={" ":e=>e,"+":n.green,"-":n.red},a=function(e,t,r,n,o,s){let u;let c=t?`${t}: `:"",l=s+" ",d=t=>{if(t<(void 0===e.maxElisions?1/0:e.maxElisions))for(let e=0;e0&&d(i),i=0,![" ","~","+","-"].includes(t))throw Error(`Unexpected op '${t}' in ${JSON.stringify(r,null,2)}`);"~"===t&&(t=" "),a(e,"",u,n,t,l)}i>0&&d(i)}else for(u of r)a(e,"",u,n,o,l);return n(o,`${s}]`)}default:if(0===r||null===r||!1===r||""===r||r)return n(o,s+c+JSON.stringify(r))}},s=(e,t,r)=>a(t,"",e,r," ",""),u=function(e,t={}){let r=[];return s(e,t,(e,t)=>r.push(`${e}${t}`)),r},c=function(e,t={}){let r=[];return s(e,t,function(e,n){return null==t.color||t.color?r.push(((null!=t.theme?t.theme[e]:void 0)!=null?null!=t.theme?t.theme[e]:void 0:o[e])(`${e}${n}`)+"\n"):r.push(`${e}${n} -`)}),r.join("")};e.exports={colorize:c,colorizeToArray:u,colorizeToCallback:s}},48967:function(e,t,r){var n;e=r.nmd(e),(function(){var i,o="4.17.21",a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",c="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",d=500,f="__lodash_placeholder__",h=1,p=2,m=4,g=1,y=2,b=1,v=2,w=4,S=8,_=16,x=32,A=64,k=128,E=256,M=512,T=30,P="...",I=800,C=16,O=1,R=2,j=3,D=1/0,L=0x1fffffffffffff,N=17976931348623157e292,B=0/0,U=0xffffffff,F=0xfffffffe,W=0x7fffffff,H=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],q="[object Arguments]",K="[object Array]",G="[object AsyncFunction]",z="[object Boolean]",$="[object Date]",J="[object DOMException]",Y="[object Error]",V="[object Function]",X="[object GeneratorFunction]",Z="[object Map]",Q="[object Number]",ee="[object Null]",et="[object Object]",er="[object Promise]",en="[object Proxy]",ei="[object RegExp]",eo="[object Set]",ea="[object String]",es="[object Symbol]",eu="[object Undefined]",ec="[object WeakMap]",el="[object WeakSet]",ed="[object ArrayBuffer]",ef="[object DataView]",eh="[object Float32Array]",ep="[object Float64Array]",em="[object Int8Array]",eg="[object Int16Array]",ey="[object Int32Array]",eb="[object Uint8Array]",ev="[object Uint8ClampedArray]",ew="[object Uint16Array]",eS="[object Uint32Array]",e_=/\b__p \+= '';/g,ex=/\b(__p \+=) '' \+/g,eA=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ek=/&(?:amp|lt|gt|quot|#39);/g,eE=/[&<>"']/g,eM=RegExp(ek.source),eT=RegExp(eE.source),eP=/<%-([\s\S]+?)%>/g,eI=/<%([\s\S]+?)%>/g,eC=/<%=([\s\S]+?)%>/g,eO=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,eR=/^\w*$/,ej=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,eD=/[\\^$.*+?()[\]{}|]/g,eL=RegExp(eD.source),eN=/^\s+/,eB=/\s/,eU=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,eF=/\{\n\/\* \[wrapped with (.+)\] \*/,eW=/,? & /,eH=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,eq=/[()=,{}\[\]\/\s]/,eK=/\\(\\)?/g,eG=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ez=/\w*$/,e$=/^[-+]0x[0-9a-f]+$/i,eJ=/^0b[01]+$/i,eY=/^\[object .+?Constructor\]$/,eV=/^0o[0-7]+$/i,eX=/^(?:0|[1-9]\d*)$/,eZ=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,eQ=/($^)/,e0=/['\n\r\u2028\u2029\\]/g,e1="\ud800-\udfff",e2="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",e3="\\u2700-\\u27bf",e4="a-z\\xdf-\\xf6\\xf8-\\xff",e6="A-Z\\xc0-\\xd6\\xd8-\\xde",e5="\\ufe0e\\ufe0f",e8="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",e9="['’]",e7="["+e1+"]",te="["+e8+"]",tt="["+e2+"]",tr="\\d+",tn="["+e3+"]",ti="["+e4+"]",to="[^"+e1+e8+tr+e3+e4+e6+"]",ta="\ud83c[\udffb-\udfff]",ts="[^"+e1+"]",tu="(?:\ud83c[\udde6-\uddff]){2}",tc="[\ud800-\udbff][\udc00-\udfff]",tl="["+e6+"]",td="\\u200d",tf="(?:"+ti+"|"+to+")",th="(?:"+tl+"|"+to+")",tp="(?:"+e9+"(?:d|ll|m|re|s|t|ve))?",tm="(?:"+e9+"(?:D|LL|M|RE|S|T|VE))?",tg="(?:"+tt+"|"+ta+")?",ty="["+e5+"]?",tb="(?:"+td+"(?:"+[ts,tu,tc].join("|")+")"+ty+tg+")*",tv="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",tw="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",tS=ty+tg+tb,t_="(?:"+[tn,tu,tc].join("|")+")"+tS,tx="(?:"+[ts+tt+"?",tt,tu,tc,e7].join("|")+")",tA=RegExp(e9,"g"),tk=RegExp(tt,"g"),tE=RegExp(ta+"(?="+ta+")|"+tx+tS,"g"),tM=RegExp([tl+"?"+ti+"+"+tp+"(?="+[te,tl,"$"].join("|")+")",th+"+"+tm+"(?="+[te,tl+tf,"$"].join("|")+")",tl+"?"+tf+"+"+tp,tl+"+"+tm,tw,tv,tr,t_].join("|"),"g"),tT=RegExp("["+td+e1+e2+e5+"]"),tP=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tI=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],tC=-1,tO={};tO[eh]=tO[ep]=tO[em]=tO[eg]=tO[ey]=tO[eb]=tO[ev]=tO[ew]=tO[eS]=!0,tO[q]=tO[K]=tO[ed]=tO[z]=tO[ef]=tO[$]=tO[Y]=tO[V]=tO[Z]=tO[Q]=tO[et]=tO[ei]=tO[eo]=tO[ea]=tO[ec]=!1;var tR={};tR[q]=tR[K]=tR[ed]=tR[ef]=tR[z]=tR[$]=tR[eh]=tR[ep]=tR[em]=tR[eg]=tR[ey]=tR[Z]=tR[Q]=tR[et]=tR[ei]=tR[eo]=tR[ea]=tR[es]=tR[eb]=tR[ev]=tR[ew]=tR[eS]=!0,tR[Y]=tR[V]=tR[ec]=!1;var tj={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},tD={"&":"&","<":"<",">":">",'"':""","'":"'"},tL={"&":"&","<":"<",">":">",""":'"',"'":"'"},tN={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tB=parseFloat,tU=parseInt,tF="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,tW="object"==typeof self&&self&&self.Object===Object&&self,tH=tF||tW||Function("return this")(),tq=t&&!t.nodeType&&t,tK=tq&&e&&!e.nodeType&&e,tG=tK&&tK.exports===tq,tz=tG&&tF.process,t$=function(){try{var e=tK&&tK.require&&tK.require("util").types;if(e)return e;return tz&&tz.binding&&tz.binding("util")}catch(e){}}(),tJ=t$&&t$.isArrayBuffer,tY=t$&&t$.isDate,tV=t$&&t$.isMap,tX=t$&&t$.isRegExp,tZ=t$&&t$.isSet,tQ=t$&&t$.isTypedArray;function t0(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function t1(e,t,r,n){for(var i=-1,o=null==e?0:e.length;++i-1}function t8(e,t,r){for(var n=-1,i=null==e?0:e.length;++n-1;);return r}function rA(e,t){for(var r=e.length;r--&&ru(t,e[r],0)>-1;);return r}function rk(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}var rE=rh(tj),rM=rh(tD);function rT(e){return"\\"+tN[e]}function rP(e,t){return null==e?i:e[t]}function rI(e){return tT.test(e)}function rC(e){return tP.test(e)}function rO(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function rR(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function rj(e,t){return function(r){return e(t(r))}}function rD(e,t){for(var r=-1,n=e.length,i=0,o=[];++r-1}function nd(e,t){var r=this.__data__,n=nR(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function nf(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function nF(e,t,r,n,o,a){var s,u=t&h,c=t&p,l=t&m;if(r&&(s=o?r(e,n,o,a):r(e)),i!==s)return s;if(!uZ(e))return e;var d=uL(e);if(d){if(s=o6(e),!u)return ou(e,s)}else{var f=o1(e),g=f==V||f==X;if(uW(e))return i9(e,u);if(f==et||f==q||g&&!o){if(s=c||g?{}:o5(e),!u)return c?od(e,nL(s,e)):ol(e,nD(s,e))}else{if(!tR[f])return o?e:{};s=o8(e,f,u)}}a||(a=new nS);var y=a.get(e);if(y)return y;a.set(e,s),ct(e)?e.forEach(function(n){s.add(nF(n,t,r,n,e,a))}):u0(e)&&e.forEach(function(n,i){s.set(i,nF(n,t,r,i,e,a))});var b=l?c?oK:oq:c?cW:cF,v=d?i:b(e);return t2(v||e,function(n,i){v&&(n=e[i=n]),nO(s,i,nF(n,t,r,i,e,a))}),s}function nW(e){var t=cF(e);return function(r){return nH(r,e,t)}}function nH(e,t,r){var n=r.length;if(null==e)return!n;for(e=e2(e);n--;){var o=r[n],a=t[o],s=e[o];if(i===s&&!(o in e)||!a(s))return!1}return!0}function nq(e,t,r){if("function"!=typeof e)throw new e6(u);return av(function(){e.apply(i,r)},t)}function nK(e,t,r,n){var i=-1,o=t5,s=!0,u=e.length,c=[],l=t.length;if(!u)return c;r&&(t=t9(t,rw(r))),n?(o=t8,s=!1):t.length>=a&&(o=r_,s=!1,t=new nb(t));e:for(;++io?0:o+r),(n=i===n||n>o?o:cf(n))<0&&(n+=o),n=r>n?0:ch(n);r0&&r(s)?t>1?nX(s,t-1,r,n,i):t7(i,s):n||(i[i.length]=s)}return i}var nZ=om(),nQ=om(!0);function n0(e,t){return e&&nZ(e,t,cF)}function n1(e,t){return e&&nQ(e,t,cF)}function n2(e,t){return t6(t,function(t){return uY(e[t])})}function n3(e,t){t=i4(t,e);for(var r=0,n=t.length;null!=e&&rt}function n8(e,t){return null!=e&&tt.call(e,t)}function n9(e,t){return null!=e&&t in e2(e)}function n7(e,t,r){return e>=tN(t,r)&&e=120&&f.length>=120)?new nb(u&&f):i}f=e[0];var h=-1,p=c[0];e:for(;++h-1;)s!==e&&tm.call(s,u,1),tm.call(e,u,1);return e}function iC(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==o){var o=i;ae(i)?tm.call(e,i,1):iV(e,i)}}return e}function iO(e,t){return e+tE(tq()*(t-e+1))}function iR(e,t,n,i){for(var o=-1,a=tL(tx((t-e)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=e,e+=n;return s}function ij(e,t){var r="";if(!e||t<1||t>L)return r;do t%2&&(r+=e),(t=tE(t/2))&&(e+=e);while(t);return r}function iD(e,t){return aw(ap(e,t,lB),e+"")}function iL(e){return nT(c6(e))}function iN(e,t){var r=c6(e);return ax(r,nU(t,0,r.length))}function iB(e,t,r,n){if(!uZ(e))return e;t=i4(t,e);for(var o=-1,a=t.length,s=a-1,u=e;null!=u&&++oo?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i>>1,a=e[o];null!==a&&!cn(a)&&(r?a<=t:a=a){var l=t?null:oR(e);if(l)return rL(l);s=!1,i=r_,c=new nb}else c=t?[]:u;e:for(;++n=n?e:iH(e,t,r)}var i8=tw||function(e){return tH.clearTimeout(e)};function i9(e,t){if(t)return e.slice();var r=e.length,n=td?td(r):new e.constructor(r);return e.copy(n),n}function i7(e){var t=new e.constructor(e.byteLength);return new tl(t).set(new tl(e)),t}function oe(e,t){var r=t?i7(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function ot(e){var t=new e.constructor(e.source,ez.exec(e));return t.lastIndex=e.lastIndex,t}function or(e){return r0?e2(r0.call(e)):{}}function on(e,t){var r=t?i7(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function oi(e,t){if(e!==t){var r=i!==e,n=null===e,o=e==e,a=cn(e),s=i!==t,u=null===t,c=t==t,l=cn(t);if(!u&&!l&&!a&&e>t||a&&s&&c&&!u&&!l||n&&s&&c||!r&&c||!o)return 1;if(!n&&!a&&!l&&e=s)return u;return u*("desc"==r[n]?-1:1)}}return e.index-t.index}function oa(e,t,n,i){for(var o=-1,a=e.length,s=n.length,u=-1,c=t.length,l=tL(a-s,0),d=r(c+l),f=!i;++u1?r[o-1]:i,s=o>2?r[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&at(r[0],r[1],s)&&(a=o<3?i:a,o=1),t=e2(t);++n-1?o[a?t[s]:s]:i}}function o_(e){return oH(function(t){var r=t.length,n=r,o=r6.prototype.thru;for(e&&t.reverse();n--;){var a=t[n];if("function"!=typeof a)throw new e6(u);if(o&&!s&&"wrapper"==oz(a))var s=new r6([],!0)}for(n=s?n:r;++n1&&b.reverse(),f&&lu))return!1;var l=a.get(e),d=a.get(t);if(l&&d)return l==t&&d==e;var f=-1,h=!0,p=r&y?new nb:i;for(a.set(e,t),a.set(t,e);++f1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(eU,"{\n/* [wrapped with "+t+"] */\n")}function o7(e){return uL(e)||uD(e)||!!(tg&&e&&e[tg])}function ae(e,t){var r=typeof e;return!!(t=null==t?L:t)&&("number"==r||"symbol"!=r&&eX.test(e))&&e>-1&&e%1==0&&e0){if(++t>=I)return arguments[0]}else t=0;return e.apply(i,arguments)}}function ax(e,t){var r=-1,n=e.length,o=n-1;for(t=i===t?n:t;++r1?e[t-1]:i;return r="function"==typeof r?(e.pop(),r):i,sw(e,r)});function sP(e){var t=r2(e);return t.__chain__=!0,t}function sI(e,t){return t(e),e}function sC(e,t){return t(e)}var sO=oH(function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,o=function(t){return nB(t,e)};return!(t>1)&&!this.__actions__.length&&n instanceof r5&&ae(r)?((n=n.slice(r,+r+ +!!t)).__actions__.push({func:sC,args:[o],thisArg:i}),new r6(n,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(o)});function sR(){return sP(this)}function sj(){return new r6(this.value(),this.__chain__)}function sD(){this.__values__===i&&(this.__values__=cl(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function sL(){return this}function sN(e){for(var t,r=this;r instanceof r4;){var n=aT(r);n.__index__=0,n.__values__=i,t?o.__wrapped__=n:t=n;var o=n;r=r.__wrapped__}return o.__wrapped__=e,t}function sB(){var e=this.__wrapped__;if(e instanceof r5){var t=e;return this.__actions__.length&&(t=new r5(this)),(t=t.reverse()).__actions__.push({func:sC,args:[a9],thisArg:i}),new r6(t,this.__chain__)}return this.thru(a9)}function sU(){return iQ(this.__wrapped__,this.__actions__)}var sF=of(function(e,t,r){tt.call(e,r)?++e[r]:nN(e,r,1)});function sW(e,t,r){var n=uL(e)?t4:n$;return r&&at(e,t,r)&&(t=i),n(e,oJ(t,3))}function sH(e,t){return(uL(e)?t6:nV)(e,oJ(t,3))}var sq=oS(aF),sK=oS(aW);function sG(e,t){return nX(s0(e,t),1)}function sz(e,t){return nX(s0(e,t),D)}function s$(e,t,r){return r=i===r?1:cf(r),nX(s0(e,t),r)}function sJ(e,t){return(uL(e)?t2:nG)(e,oJ(t,3))}function sY(e,t){return(uL(e)?t3:nz)(e,oJ(t,3))}var sV=of(function(e,t,r){tt.call(e,r)?e[r].push(t):nN(e,r,[t])});function sX(e,t,r,n){e=uB(e)?e:c6(e),r=r&&!n?cf(r):0;var i=e.length;return r<0&&(r=tL(i+r,0)),cr(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&ru(e,t,r)>-1}var sZ=iD(function(e,t,n){var i=-1,o="function"==typeof t,a=uB(e)?r(e.length):[];return nG(e,function(e){a[++i]=o?t0(t,e,n):ir(e,t,n)}),a}),sQ=of(function(e,t,r){nN(e,r,t)});function s0(e,t){return(uL(e)?t9:iw)(e,oJ(t,3))}function s1(e,t,r,n){return null==e?[]:(uL(t)||(t=null==t?[]:[t]),uL(r=n?i:r)||(r=null==r?[]:[r]),iE(e,t,r))}var s2=of(function(e,t,r){e[+!r].push(t)},function(){return[[],[]]});function s3(e,t,r){var n=uL(e)?re:rp,i=arguments.length<3;return n(e,oJ(t,4),r,i,nG)}function s4(e,t,r){var n=uL(e)?rt:rp,i=arguments.length<3;return n(e,oJ(t,4),r,i,nz)}function s6(e,t){return(uL(e)?t6:nV)(e,um(oJ(t,3)))}function s5(e){return(uL(e)?nT:iL)(e)}function s8(e,t,r){return t=(r?at(e,t,r):i===t)?1:cf(t),(uL(e)?nP:iN)(e,t)}function s9(e){return(uL(e)?nI:iW)(e)}function s7(e){if(null==e)return 0;if(uB(e))return cr(e)?rF(e):e.length;var t=o1(e);return t==Z||t==eo?e.size:iy(e).length}function ue(e,t,r){var n=uL(e)?rr:iq;return r&&at(e,t,r)&&(t=i),n(e,oJ(t,3))}var ut=iD(function(e,t){if(null==e)return[];var r=t.length;return r>1&&at(e,t[0],t[1])?t=[]:r>2&&at(t[0],t[1],t[2])&&(t=[t[0]]),iE(e,nX(t,1),[])}),ur=tS||function(){return tH.Date.now()};function un(e,t){if("function"!=typeof t)throw new e6(u);return e=cf(e),function(){if(--e<1)return t.apply(this,arguments)}}function ui(e,t,r){return t=r?i:t,t=e&&null==t?e.length:t,oD(e,k,i,i,i,i,t)}function uo(e,t){var r;if("function"!=typeof t)throw new e6(u);return e=cf(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=i),r}}var ua=iD(function(e,t,r){var n=b;if(r.length){var i=rD(r,o$(ua));n|=x}return oD(e,n,t,r,i)}),us=iD(function(e,t,r){var n=b|v;if(r.length){var i=rD(r,o$(us));n|=x}return oD(t,n,e,r,i)});function uu(e,t,r){t=r?i:t;var n=oD(e,S,i,i,i,i,i,t);return n.placeholder=uu.placeholder,n}function uc(e,t,r){t=r?i:t;var n=oD(e,_,i,i,i,i,i,t);return n.placeholder=uc.placeholder,n}function ul(e,t,r){var n,o,a,s,c,l,d=0,f=!1,h=!1,p=!0;if("function"!=typeof e)throw new e6(u);function m(t){var r=n,a=o;return n=o=i,d=t,s=e.apply(a,r)}function g(e){return d=e,c=av(v,t),f?m(e):s}function y(e){var r=e-l,n=e-d,i=t-r;return h?tN(i,a-n):i}function b(e){var r=e-l,n=e-d;return i===l||r>=t||r<0||h&&n>=a}function v(){var e=ur();if(b(e))return w(e);c=av(v,y(e))}function w(e){return(c=i,p&&n)?m(e):(n=o=i,s)}function S(){i!==c&&i8(c),d=0,n=l=o=c=i}function _(){return i===c?s:w(ur())}function x(){var e=ur(),r=b(e);if(n=arguments,o=this,l=e,r){if(i===c)return g(l);if(h)return i8(c),c=av(v,t),m(l)}return i===c&&(c=av(v,t)),s}return t=cp(t)||0,uZ(r)&&(f=!!r.leading,a=(h="maxWait"in r)?tL(cp(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p),x.cancel=S,x.flush=_,x}var ud=iD(function(e,t){return nq(e,1,t)}),uf=iD(function(e,t,r){return nq(e,cp(t)||0,r)});function uh(e){return oD(e,M)}function up(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new e6(u);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(up.Cache||nf),r}function um(e){if("function"!=typeof e)throw new e6(u);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function ug(e){return uo(2,e)}up.Cache=nf;var uy=i6(function(e,t){var r=(t=1==t.length&&uL(t[0])?t9(t[0],rw(oJ())):t9(nX(t,1),rw(oJ()))).length;return iD(function(n){for(var i=-1,o=tN(n.length,r);++i=t}),uD=ii(function(){return arguments}())?ii:function(e){return uQ(e)&&tt.call(e,"callee")&&!tp.call(e,"callee")},uL=r.isArray,uN=tJ?rw(tJ):io;function uB(e){return null!=e&&uX(e.length)&&!uY(e)}function uU(e){return uQ(e)&&uB(e)}function uF(e){return!0===e||!1===e||uQ(e)&&n6(e)==z}var uW=tT||l2,uH=tY?rw(tY):ia;function uq(e){return uQ(e)&&1===e.nodeType&&!u9(e)}function uK(e){if(null==e)return!0;if(uB(e)&&(uL(e)||"string"==typeof e||"function"==typeof e.splice||uW(e)||ci(e)||uD(e)))return!e.length;var t=o1(e);if(t==Z||t==eo)return!e.size;if(as(e))return!iy(e).length;for(var r in e)if(tt.call(e,r))return!1;return!0}function uG(e,t){return is(e,t)}function uz(e,t,r){var n=(r="function"==typeof r?r:i)?r(e,t):i;return i===n?is(e,t,i,r):!!n}function u$(e){if(!uQ(e))return!1;var t=n6(e);return t==Y||t==J||"string"==typeof e.message&&"string"==typeof e.name&&!u9(e)}function uJ(e){return"number"==typeof e&&tP(e)}function uY(e){if(!uZ(e))return!1;var t=n6(e);return t==V||t==X||t==G||t==en}function uV(e){return"number"==typeof e&&e==cf(e)}function uX(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=L}function uZ(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function uQ(e){return null!=e&&"object"==typeof e}var u0=tV?rw(tV):ic;function u1(e,t){return e===t||il(e,t,oV(t))}function u2(e,t,r){return r="function"==typeof r?r:i,il(e,t,oV(t),r)}function u3(e){return u8(e)&&e!=+e}function u4(e){if(aa(e))throw new eB(s);return id(e)}function u6(e){return null===e}function u5(e){return null==e}function u8(e){return"number"==typeof e||uQ(e)&&n6(e)==Q}function u9(e){if(!uQ(e)||n6(e)!=et)return!1;var t=tf(e);if(null===t)return!0;var r=tt.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&te.call(r)==to}var u7=tX?rw(tX):ih;function ce(e){return uV(e)&&e>=-L&&e<=L}var ct=tZ?rw(tZ):ip;function cr(e){return"string"==typeof e||!uL(e)&&uQ(e)&&n6(e)==ea}function cn(e){return"symbol"==typeof e||uQ(e)&&n6(e)==es}var ci=tQ?rw(tQ):im;function co(e){return i===e}function ca(e){return uQ(e)&&o1(e)==ec}function cs(e){return uQ(e)&&n6(e)==el}var cu=oI(iv),cc=oI(function(e,t){return e<=t});function cl(e){if(!e)return[];if(uB(e))return cr(e)?rW(e):ou(e);if(ty&&e[ty])return rO(e[ty]());var t=o1(e);return(t==Z?rR:t==eo?rL:c6)(e)}function cd(e){return e?(e=cp(e))===D||e===-D?(e<0?-1:1)*N:e==e?e:0:0===e?e:0}function cf(e){var t=cd(e),r=t%1;return t==t?r?t-r:t:0}function ch(e){return e?nU(cf(e),0,U):0}function cp(e){if("number"==typeof e)return e;if(cn(e))return B;if(uZ(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=uZ(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=rv(e);var r=eJ.test(e);return r||eV.test(e)?tU(e.slice(2),r?2:8):e$.test(e)?B:+e}function cm(e){return oc(e,cW(e))}function cg(e){return e?nU(cf(e),-L,L):0===e?e:0}function cy(e){return null==e?"":iJ(e)}var cb=oh(function(e,t){if(as(t)||uB(t)){oc(t,cF(t),e);return}for(var r in t)tt.call(t,r)&&nO(e,r,t[r])}),cv=oh(function(e,t){oc(t,cW(t),e)}),cw=oh(function(e,t,r,n){oc(t,cW(t),e,n)}),cS=oh(function(e,t,r,n){oc(t,cF(t),e,n)}),c_=oH(nB);function cx(e,t){var r=r3(e);return null==t?r:nD(r,t)}var cA=iD(function(e,t){e=e2(e);var r=-1,n=t.length,o=n>2?t[2]:i;for(o&&at(t[0],t[1],o)&&(n=1);++r1),t}),oc(e,oK(e),r),n&&(r=nF(r,h|p|m,oB));for(var i=t.length;i--;)iV(r,t[i]);return r});function c$(e,t){return cY(e,um(oJ(t)))}var cJ=oH(function(e,t){return null==e?{}:iM(e,t)});function cY(e,t){if(null==e)return{};var r=t9(oK(e),function(e){return[e]});return t=oJ(t),iT(e,r,function(e,r){return t(e,r[0])})}function cV(e,t,r){t=i4(t,e);var n=-1,o=t.length;for(o||(o=1,e=i);++nt){var n=e;e=t,t=n}if(r||e%1||t%1){var o=tq();return tN(e+o*(t-e+tB("1e-"+((o+"").length-1))),t)}return iO(e,t)}var le=ob(function(e,t,r){return t=t.toLowerCase(),e+(r?lt(t):t)});function lt(e){return lT(cy(e).toLowerCase())}function lr(e){return(e=cy(e))&&e.replace(eZ,rE).replace(tk,"")}function ln(e,t,r){e=cy(e),t=iJ(t);var n=e.length,o=r=i===r?n:nU(cf(r),0,n);return(r-=t.length)>=0&&e.slice(r,o)==t}function li(e){return(e=cy(e))&&eT.test(e)?e.replace(eE,rM):e}function lo(e){return(e=cy(e))&&eL.test(e)?e.replace(eD,"\\$&"):e}var la=ob(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),ls=ob(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),lu=oy("toLowerCase");function lc(e,t,r){e=cy(e);var n=(t=cf(t))?rF(e):0;if(!t||n>=t)return e;var i=(t-n)/2;return oM(tE(i),r)+e+oM(tx(i),r)}function ll(e,t,r){e=cy(e);var n=(t=cf(t))?rF(e):0;return t&&n>>0)?(e=cy(e))&&("string"==typeof t||null!=t&&!u7(t))&&!(t=iJ(t))&&rI(e)?i5(rW(e),0,r):e.split(t,r):[]}var ly=ob(function(e,t,r){return e+(r?" ":"")+lT(t)});function lb(e,t,r){return e=cy(e),r=null==r?0:nU(cf(r),0,e.length),t=iJ(t),e.slice(r,r+t.length)==t}function lv(e,t,r){var n=r2.templateSettings;r&&at(e,t,r)&&(t=i),e=cy(e),t=cw({},t,n,oL);var o,a,s=cw({},t.imports,n.imports,oL),u=cF(s),l=rS(s,u),d=0,f=t.interpolate||eQ,h="__p += '",p=e3((t.escape||eQ).source+"|"+f.source+"|"+(f===eC?eG:eQ).source+"|"+(t.evaluate||eQ).source+"|$","g"),m="//# sourceURL="+(tt.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++tC+"]")+"\n";e.replace(p,function(t,r,n,i,s,u){return n||(n=i),h+=e.slice(d,u).replace(e0,rT),r&&(o=!0,h+="' +\n__e("+r+") +\n'"),s&&(a=!0,h+="';\n"+s+";\n__p += '"),n&&(h+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),d=u+t.length,t}),h+="';\n";var g=tt.call(t,"variable")&&t.variable;if(g){if(eq.test(g))throw new eB(c)}else h="with (obj) {\n"+h+"\n}\n";h=(a?h.replace(e_,""):h).replace(ex,"$1").replace(eA,"$1;"),h="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var y=lI(function(){return eH(u,m+"return "+h).apply(i,l)});if(y.source=h,u$(y))throw y;return y}function lw(e){return cy(e).toLowerCase()}function lS(e){return cy(e).toUpperCase()}function l_(e,t,r){if((e=cy(e))&&(r||i===t))return rv(e);if(!e||!(t=iJ(t)))return e;var n=rW(e),o=rW(t),a=rx(n,o),s=rA(n,o)+1;return i5(n,a,s).join("")}function lx(e,t,r){if((e=cy(e))&&(r||i===t))return e.slice(0,rH(e)+1);if(!e||!(t=iJ(t)))return e;var n=rW(e),o=rA(n,rW(t))+1;return i5(n,0,o).join("")}function lA(e,t,r){if((e=cy(e))&&(r||i===t))return e.replace(eN,"");if(!e||!(t=iJ(t)))return e;var n=rW(e),o=rx(n,rW(t));return i5(n,o).join("")}function lk(e,t){var r=T,n=P;if(uZ(t)){var o="separator"in t?t.separator:o;r="length"in t?cf(t.length):r,n="omission"in t?iJ(t.omission):n}var a=(e=cy(e)).length;if(rI(e)){var s=rW(e);a=s.length}if(r>=a)return e;var u=r-rF(n);if(u<1)return n;var c=s?i5(s,0,u).join(""):e.slice(0,u);if(i===o)return c+n;if(s&&(u+=c.length-u),u7(o)){if(e.slice(u).search(o)){var l,d=c;for(o.global||(o=e3(o.source,cy(ez.exec(o))+"g")),o.lastIndex=0;l=o.exec(d);)var f=l.index;c=c.slice(0,i===f?u:f)}}else if(e.indexOf(iJ(o),u)!=u){var h=c.lastIndexOf(o);h>-1&&(c=c.slice(0,h))}return c+n}function lE(e){return(e=cy(e))&&eM.test(e)?e.replace(ek,rq):e}var lM=ob(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),lT=oy("toUpperCase");function lP(e,t,r){return(e=cy(e),t=r?i:t,i===t)?rC(e)?rz(e):ro(e):e.match(t)||[]}var lI=iD(function(e,t){try{return t0(e,i,t)}catch(e){return u$(e)?e:new eB(e)}}),lC=oH(function(e,t){return t2(t,function(t){nN(e,t=ak(t),ua(e[t],e))}),e});function lO(e){var t=null==e?0:e.length,r=oJ();return e=t?t9(e,function(e){if("function"!=typeof e[1])throw new e6(u);return[r(e[0]),e[1]]}):[],iD(function(r){for(var n=-1;++nL)return[];var r=U,n=tN(e,U);t=oJ(t),e-=U;for(var i=ry(n,t);++r0||t<0)?new r5(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),i!==t&&(r=(t=cf(t))<0?r.dropRight(-t):r.take(t-e)),r)},r5.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},r5.prototype.toArray=function(){return this.take(U)},n0(r5.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),o=r2[n?"take"+("last"==t?"Right":""):t],a=n||/^find/.test(t);o&&(r2.prototype[t]=function(){var t=this.__wrapped__,s=n?[1]:arguments,u=t instanceof r5,c=s[0],l=u||uL(t),d=function(e){var t=o.apply(r2,t7([e],s));return n&&f?t[0]:t};l&&r&&"function"==typeof c&&1!=c.length&&(u=l=!1);var f=this.__chain__,h=!!this.__actions__.length,p=a&&!f,m=u&&!h;if(!a&&l){t=m?t:new r5(this);var g=e.apply(t,s);return g.__actions__.push({func:sC,args:[d],thisArg:i}),new r6(g,f)}return p&&m?e.apply(this,s):(g=this.thru(d),p?n?g.value()[0]:g.value():g)})}),t2(["pop","push","shift","sort","splice","unshift"],function(e){var t=e5[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);r2.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(uL(i)?i:[],e)}return this[r](function(r){return t.apply(uL(r)?r:[],e)})}}),n0(r5.prototype,function(e,t){var r=r2[t];if(r){var n=r.name+"";tt.call(rG,n)||(rG[n]=[]),rG[n].push({name:t,func:r})}}),rG[ox(i,v).name]=[{name:"wrapper",func:i}],r5.prototype.clone=r8,r5.prototype.reverse=r9,r5.prototype.value=r7,r2.prototype.at=sO,r2.prototype.chain=sR,r2.prototype.commit=sj,r2.prototype.next=sD,r2.prototype.plant=sN,r2.prototype.reverse=sB,r2.prototype.toJSON=r2.prototype.valueOf=r2.prototype.value=sU,r2.prototype.first=r2.prototype.head,ty&&(r2.prototype[ty]=sL),r2}();tH._=r$,i!==(n=(function(){return r$}).call(t,r,t,e))&&(e.exports=n)}).call(this)},49139:(e,t,r)=>{"use strict";var n=r(2272);e.exports=function(e,t){var r=(t=t||n.argv).indexOf("--"),i=/^-{1,2}/.test(e)?"":"--",o=t.indexOf(i+e);return -1!==o&&(-1===r||o{"use strict";e.exports=Function.prototype.apply},50774:e=>{var t="/";!function(){"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab=t+"/");var r={};!function(){var e=r;e.endianness=function(){return"LE"},e.hostname=function(){return"undefined"!=typeof location?location.hostname:""},e.loadavg=function(){return[]},e.uptime=function(){return 0},e.freemem=function(){return Number.MAX_VALUE},e.totalmem=function(){return Number.MAX_VALUE},e.cpus=function(){return[]},e.type=function(){return"Browser"},e.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},e.networkInterfaces=e.getNetworkInterfaces=function(){return{}},e.arch=function(){return"javascript"},e.platform=function(){return"browser"},e.tmpdir=e.tmpDir=function(){return"/tmp"},e.EOL="\n",e.homedir=function(){return"/"}}(),e.exports=r}()},50776:(e,t,r)=>{var n={};e.exports=n,n.themes={};var i=r(65723),o=n.styles=r(28554),a=Object.defineProperties,s=new RegExp(/[\r\n]+/g);n.supportsColor=r(89301).supportsColor,void 0===n.enabled&&(n.enabled=!1!==n.supportsColor()),n.enable=function(){n.enabled=!0},n.disable=function(){n.enabled=!1},n.stripColors=n.strip=function(e){return(""+e).replace(/\x1B\[\d+m/g,"")},n.stylize=function(e,t){if(!n.enabled)return e+"";var r=o[t];return!r&&t in n?n[t](e):r.open+e+r.close};var u=/[|\\{}()[\]^$+*?.]/g,c=function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(u,"\\$&")};function l(e){var t=function e(){return h.apply(e,arguments)};return t._styles=e,t.__proto__=f,t}var d=function(){var e={};return o.grey=o.gray,Object.keys(o).forEach(function(t){o[t].closeRe=RegExp(c(o[t].close),"g"),e[t]={get:function(){return l(this._styles.concat(t))}}}),e}(),f=a(function(){},d);function h(){var e=Array.prototype.slice.call(arguments),t=e.map(function(e){return null!=e&&e.constructor===String?e:i.inspect(e)}).join(" ");if(!n.enabled||!t)return t;for(var r=-1!=t.indexOf("\n"),a=this._styles,u=a.length;u--;){var c=o[a[u]];t=c.open+t.replace(c.closeRe,c.open)+c.close,r&&(t=t.replace(s,function(e){return c.close+e+c.open}))}return t}function p(){var e={};return Object.keys(d).forEach(function(t){e[t]={get:function(){return l([t])}}}),e}n.setTheme=function(e){if("string"==typeof e){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}for(var t in e)!function(t){n[t]=function(r){if("object"==typeof e[t]){var i=r;for(var o in e[t])i=n[e[t][o]](i);return i}return n[e[t]](r)}}(t)};var m=function(e,t){var r=t.split("");return(r=r.map(e)).join("")};for(var g in n.trap=r(72703),n.zalgo=r(11921),n.maps={},n.maps.america=r(61212)(n),n.maps.zebra=r(73932)(n),n.maps.rainbow=r(64774)(n),n.maps.random=r(1943)(n),n.maps)!function(e){n[e]=function(t){return m(n.maps[e],t)}}(g);a(n,p())},51569:e=>{"use strict";e.exports=EvalError},52051:(e,t,r)=>{var n=r(2272);let i=r(98625);e.exports=i.satisfies(n.version,">=15.7.0")},52252:(e,t,r)=>{let n=r(22626),i=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}};e.exports=i},52421:e=>{let t=Object.freeze({loose:!0}),r=Object.freeze({}),n=e=>e?"object"!=typeof e?t:e:r;e.exports=n},52975:(e,t,r)=>{let n=r(78968),i=(e,t,r)=>0===n(e,t,r);e.exports=i},55506:(e,t,r)=>{"use strict";let n,i,o;r.r(t),r.d(t,{CompactEncrypt:()=>tU,CompactSign:()=>tH,EmbeddedJWK:()=>tZ,EncryptJWT:()=>tJ,FlattenedEncrypt:()=>ty,FlattenedSign:()=>tW,GeneralEncrypt:()=>tv,GeneralSign:()=>tK,SignJWT:()=>t$,UnsecuredJWT:()=>rn,base64url:()=>s,calculateJwkThumbprint:()=>tV,calculateJwkThumbprintUri:()=>tX,compactDecrypt:()=>tc,compactVerify:()=>tA,createLocalJWKSet:()=>t6,createRemoteJWKSet:()=>rt,cryptoRuntime:()=>rh,decodeJwt:()=>rs,decodeProtectedHeader:()=>ra,errors:()=>a,experimental_jwksCache:()=>rr,exportJWK:()=>tm,exportPKCS8:()=>tp,exportSPKI:()=>th,flattenedDecrypt:()=>tu,flattenedVerify:()=>tx,generalDecrypt:()=>tl,generalVerify:()=>tk,generateKeyPair:()=>rd,generateSecret:()=>rf,importJWK:()=>e2,importPKCS8:()=>e1,importSPKI:()=>eQ,importX509:()=>e0,jwksCache:()=>t9,jwtDecrypt:()=>tB,jwtVerify:()=>tN});var a={};r.r(a),r.d(a,{JOSEAlgNotAllowed:()=>T,JOSEError:()=>k,JOSENotSupported:()=>P,JWEDecryptionFailed:()=>I,JWEInvalid:()=>C,JWKInvalid:()=>j,JWKSInvalid:()=>D,JWKSMultipleMatchingKeys:()=>N,JWKSNoMatchingKey:()=>L,JWKSTimeout:()=>B,JWSInvalid:()=>O,JWSSignatureVerificationFailed:()=>U,JWTClaimValidationFailed:()=>E,JWTExpired:()=>M,JWTInvalid:()=>R});var s={};r.r(s),r.d(s,{decode:()=>ro,encode:()=>ri});let u=crypto,c=e=>e instanceof CryptoKey,l=async(e,t)=>{let r=`SHA-${e.slice(-3)}`;return new Uint8Array(await u.subtle.digest(r,t))},d=new TextEncoder,f=new TextDecoder,h=0x100000000;function p(...e){let t=new Uint8Array(e.reduce((e,{length:t})=>e+t,0)),r=0;for(let n of e)t.set(n,r),r+=n.length;return t}function m(e,t){return p(d.encode(e),new Uint8Array([0]),t)}function g(e,t,r){if(t<0||t>=h)throw RangeError(`value must be >= 0 and <= ${h-1}. Received ${t}`);e.set([t>>>24,t>>>16,t>>>8,255&t],r)}function y(e){let t=Math.floor(e/h),r=e%h,n=new Uint8Array(8);return g(n,t,0),g(n,r,4),n}function b(e){let t=new Uint8Array(4);return g(t,e),t}function v(e){return p(b(e.length),e)}async function w(e,t,r){let n=Math.ceil((t>>3)/32),i=new Uint8Array(32*n);for(let t=0;t>3)}let S=e=>{let t=e;"string"==typeof t&&(t=d.encode(t));let r=32768,n=[];for(let e=0;eS(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"),x=e=>{let t=atob(e),r=new Uint8Array(t.length);for(let e=0;e{let t=e;t instanceof Uint8Array&&(t=f.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return x(t)}catch{throw TypeError("The input to be decoded is not correctly encoded.")}};class k extends Error{constructor(e,t){super(e,t),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,Error.captureStackTrace?.(this,this.constructor)}}k.code="ERR_JOSE_GENERIC";class E extends k{constructor(e,t,r="unspecified",n="unspecified"){super(e,{cause:{claim:r,reason:n,payload:t}}),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=r,this.reason=n,this.payload=t}}E.code="ERR_JWT_CLAIM_VALIDATION_FAILED";class M extends k{constructor(e,t,r="unspecified",n="unspecified"){super(e,{cause:{claim:r,reason:n,payload:t}}),this.code="ERR_JWT_EXPIRED",this.claim=r,this.reason=n,this.payload=t}}M.code="ERR_JWT_EXPIRED";class T extends k{constructor(){super(...arguments),this.code="ERR_JOSE_ALG_NOT_ALLOWED"}}T.code="ERR_JOSE_ALG_NOT_ALLOWED";class P extends k{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}}P.code="ERR_JOSE_NOT_SUPPORTED";class I extends k{constructor(e="decryption operation failed",t){super(e,t),this.code="ERR_JWE_DECRYPTION_FAILED"}}I.code="ERR_JWE_DECRYPTION_FAILED";class C extends k{constructor(){super(...arguments),this.code="ERR_JWE_INVALID"}}C.code="ERR_JWE_INVALID";class O extends k{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}}O.code="ERR_JWS_INVALID";class R extends k{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}}R.code="ERR_JWT_INVALID";class j extends k{constructor(){super(...arguments),this.code="ERR_JWK_INVALID"}}j.code="ERR_JWK_INVALID";class D extends k{constructor(){super(...arguments),this.code="ERR_JWKS_INVALID"}}D.code="ERR_JWKS_INVALID";class L extends k{constructor(e="no applicable key found in the JSON Web Key Set",t){super(e,t),this.code="ERR_JWKS_NO_MATCHING_KEY"}}L.code="ERR_JWKS_NO_MATCHING_KEY";class N extends k{constructor(e="multiple matching keys found in the JSON Web Key Set",t){super(e,t),this.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS"}}Symbol.asyncIterator,N.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS";class B extends k{constructor(e="request timed out",t){super(e,t),this.code="ERR_JWKS_TIMEOUT"}}B.code="ERR_JWKS_TIMEOUT";class U extends k{constructor(e="signature verification failed",t){super(e,t),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}}U.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED";let F=u.getRandomValues.bind(u);function W(e){switch(e){case"A128GCM":case"A128GCMKW":case"A192GCM":case"A192GCMKW":case"A256GCM":case"A256GCMKW":return 96;case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return 128;default:throw new P(`Unsupported JWE Algorithm: ${e}`)}}let H=e=>F(new Uint8Array(W(e)>>3)),q=(e,t)=>{if(t.length<<3!==W(e))throw new C("Invalid Initialization Vector length")},K=(e,t)=>{let r=e.byteLength<<3;if(r!==t)throw new C(`Invalid Content Encryption Key length. Expected ${t} bits, got ${r} bits`)},G=(e,t)=>{if(!(e instanceof Uint8Array))throw TypeError("First argument must be a buffer");if(!(t instanceof Uint8Array))throw TypeError("Second argument must be a buffer");if(e.length!==t.length)throw TypeError("Input buffers must have the same length");let r=e.length,n=0,i=-1;for(;++ie.usages.includes(t))){let e="CryptoKey does not support this operation, its usages must include ";if(t.length>2){let r=t.pop();e+=`one of ${t.join(", ")}, or ${r}.`}else 2===t.length?e+=`one of ${t[0]} or ${t[1]}.`:e+=`${t[0]}.`;throw TypeError(e)}}function X(e,t,...r){switch(t){case"HS256":case"HS384":case"HS512":{if(!$(e.algorithm,"HMAC"))throw z("HMAC");let r=parseInt(t.slice(2),10);if(J(e.algorithm.hash)!==r)throw z(`SHA-${r}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!$(e.algorithm,"RSASSA-PKCS1-v1_5"))throw z("RSASSA-PKCS1-v1_5");let r=parseInt(t.slice(2),10);if(J(e.algorithm.hash)!==r)throw z(`SHA-${r}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!$(e.algorithm,"RSA-PSS"))throw z("RSA-PSS");let r=parseInt(t.slice(2),10);if(J(e.algorithm.hash)!==r)throw z(`SHA-${r}`,"algorithm.hash");break}case"EdDSA":if("Ed25519"!==e.algorithm.name&&"Ed448"!==e.algorithm.name)throw z("Ed25519 or Ed448");break;case"Ed25519":if(!$(e.algorithm,"Ed25519"))throw z("Ed25519");break;case"ES256":case"ES384":case"ES512":{if(!$(e.algorithm,"ECDSA"))throw z("ECDSA");let r=Y(t);if(e.algorithm.namedCurve!==r)throw z(r,"algorithm.namedCurve");break}default:throw TypeError("CryptoKey does not support this operation")}V(e,r)}function Z(e,t,...r){switch(t){case"A128GCM":case"A192GCM":case"A256GCM":{if(!$(e.algorithm,"AES-GCM"))throw z("AES-GCM");let r=parseInt(t.slice(1,4),10);if(e.algorithm.length!==r)throw z(r,"algorithm.length");break}case"A128KW":case"A192KW":case"A256KW":{if(!$(e.algorithm,"AES-KW"))throw z("AES-KW");let r=parseInt(t.slice(1,4),10);if(e.algorithm.length!==r)throw z(r,"algorithm.length");break}case"ECDH":switch(e.algorithm.name){case"ECDH":case"X25519":case"X448":break;default:throw z("ECDH, X25519, or X448")}break;case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":if(!$(e.algorithm,"PBKDF2"))throw z("PBKDF2");break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":{if(!$(e.algorithm,"RSA-OAEP"))throw z("RSA-OAEP");let r=parseInt(t.slice(9),10)||1;if(J(e.algorithm.hash)!==r)throw z(`SHA-${r}`,"algorithm.hash");break}default:throw TypeError("CryptoKey does not support this operation")}V(e,r)}function Q(e,t,...r){if((r=r.filter(Boolean)).length>2){let t=r.pop();e+=`one of type ${r.join(", ")}, or ${t}.`}else 2===r.length?e+=`one of type ${r[0]} or ${r[1]}.`:e+=`of type ${r[0]}.`;return null==t?e+=` Received ${t}`:"function"==typeof t&&t.name?e+=` Received function ${t.name}`:"object"==typeof t&&null!=t&&t.constructor?.name&&(e+=` Received an instance of ${t.constructor.name}`),e}let ee=(e,...t)=>Q("Key must be ",e,...t);function et(e,t,...r){return Q(`Key for the ${e} algorithm must be `,t,...r)}let er=e=>!!c(e)||e?.[Symbol.toStringTag]==="KeyObject",en=["CryptoKey"];async function ei(e,t,r,n,i,o){let a,s;if(!(t instanceof Uint8Array))throw TypeError(ee(t,"Uint8Array"));let c=parseInt(e.slice(1,4),10),l=await u.subtle.importKey("raw",t.subarray(c>>3),"AES-CBC",!1,["decrypt"]),d=await u.subtle.importKey("raw",t.subarray(0,c>>3),{hash:`SHA-${c<<1}`,name:"HMAC"},!1,["sign"]),f=p(o,n,r,y(o.length<<3)),h=new Uint8Array((await u.subtle.sign("HMAC",d,f)).slice(0,c>>3));try{a=G(i,h)}catch{}if(!a)throw new I;try{s=new Uint8Array(await u.subtle.decrypt({iv:n,name:"AES-CBC"},l,r))}catch{}if(!s)throw new I;return s}async function eo(e,t,r,n,i,o){let a;t instanceof Uint8Array?a=await u.subtle.importKey("raw",t,"AES-GCM",!1,["decrypt"]):(Z(t,e,"decrypt"),a=t);try{return new Uint8Array(await u.subtle.decrypt({additionalData:o,iv:n,name:"AES-GCM",tagLength:128},a,p(r,i)))}catch{throw new I}}let ea=async(e,t,r,n,i,o)=>{if(!c(t)&&!(t instanceof Uint8Array))throw TypeError(ee(t,...en,"Uint8Array"));if(!n)throw new C("JWE Initialization Vector missing");if(!i)throw new C("JWE Authentication Tag missing");switch(q(e,n),e){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return t instanceof Uint8Array&&K(t,parseInt(e.slice(-3),10)),ei(e,t,r,n,i,o);case"A128GCM":case"A192GCM":case"A256GCM":return t instanceof Uint8Array&&K(t,parseInt(e.slice(1,4),10)),eo(e,t,r,n,i,o);default:throw new P("Unsupported JWE Content Encryption Algorithm")}},es=(...e)=>{let t;let r=e.filter(Boolean);if(0===r.length||1===r.length)return!0;for(let e of r){let r=Object.keys(e);if(!t||0===t.size){t=new Set(r);continue}for(let e of r){if(t.has(e))return!1;t.add(e)}}return!0};function eu(e){return"object"==typeof e&&null!==e}function ec(e){if(!eu(e)||"[object Object]"!==Object.prototype.toString.call(e))return!1;if(null===Object.getPrototypeOf(e))return!0;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}let el=[{hash:"SHA-256",name:"HMAC"},!0,["sign"]];function ed(e,t){if(e.algorithm.length!==parseInt(t.slice(1,4),10))throw TypeError(`Invalid key size for alg: ${t}`)}function ef(e,t,r){if(c(e))return Z(e,t,r),e;if(e instanceof Uint8Array)return u.subtle.importKey("raw",e,"AES-KW",!0,[r]);throw TypeError(ee(e,...en,"Uint8Array"))}let eh=async(e,t,r)=>{let n=await ef(t,e,"wrapKey");ed(n,e);let i=await u.subtle.importKey("raw",r,...el);return new Uint8Array(await u.subtle.wrapKey("raw",i,n,"AES-KW"))},ep=async(e,t,r)=>{let n=await ef(t,e,"unwrapKey");ed(n,e);let i=await u.subtle.unwrapKey("raw",r,n,"AES-KW",...el);return new Uint8Array(await u.subtle.exportKey("raw",i))};async function em(e,t,r,n,i=new Uint8Array(0),o=new Uint8Array(0)){let a;if(!c(e))throw TypeError(ee(e,...en));if(Z(e,"ECDH"),!c(t))throw TypeError(ee(t,...en));Z(t,"ECDH","deriveBits");let s=p(v(d.encode(r)),v(i),v(o),b(n));return a="X25519"===e.algorithm.name?256:"X448"===e.algorithm.name?448:Math.ceil(parseInt(e.algorithm.namedCurve.substr(-3),10)/8)<<3,w(new Uint8Array(await u.subtle.deriveBits({name:e.algorithm.name,public:e},t,a)),n,s)}async function eg(e){if(!c(e))throw TypeError(ee(e,...en));return u.subtle.generateKey(e.algorithm,!0,["deriveBits"])}function ey(e){if(!c(e))throw TypeError(ee(e,...en));return["P-256","P-384","P-521"].includes(e.algorithm.namedCurve)||"X25519"===e.algorithm.name||"X448"===e.algorithm.name}function eb(e){if(!(e instanceof Uint8Array)||e.length<8)throw new C("PBES2 Salt Input must be 8 or more octets")}function ev(e,t){if(e instanceof Uint8Array)return u.subtle.importKey("raw",e,"PBKDF2",!1,["deriveBits"]);if(c(e))return Z(e,t,"deriveBits","deriveKey"),e;throw TypeError(ee(e,...en,"Uint8Array"))}async function ew(e,t,r,n){eb(e);let i=m(t,e),o=parseInt(t.slice(13,16),10),a={hash:`SHA-${t.slice(8,11)}`,iterations:r,name:"PBKDF2",salt:i},s={length:o,name:"AES-KW"},c=await ev(n,t);if(c.usages.includes("deriveBits"))return new Uint8Array(await u.subtle.deriveBits(a,c,o));if(c.usages.includes("deriveKey"))return u.subtle.deriveKey(a,c,s,!1,["wrapKey","unwrapKey"]);throw TypeError('PBKDF2 key "usages" must include "deriveBits" or "deriveKey"')}let eS=async(e,t,r,n=2048,i=F(new Uint8Array(16)))=>{let o=await ew(i,e,n,t);return{encryptedKey:await eh(e.slice(-6),o,r),p2c:n,p2s:_(i)}},e_=async(e,t,r,n,i)=>{let o=await ew(i,e,n,t);return ep(e.slice(-6),o,r)};function ex(e){switch(e){case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":return"RSA-OAEP";default:throw new P(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}let eA=(e,t)=>{if(e.startsWith("RS")||e.startsWith("PS")){let{modulusLength:r}=t.algorithm;if("number"!=typeof r||r<2048)throw TypeError(`${e} requires key modulusLength to be 2048 bits or larger`)}},ek=async(e,t,r)=>{if(!c(t))throw TypeError(ee(t,...en));if(Z(t,e,"encrypt","wrapKey"),eA(e,t),t.usages.includes("encrypt"))return new Uint8Array(await u.subtle.encrypt(ex(e),t,r));if(t.usages.includes("wrapKey")){let n=await u.subtle.importKey("raw",r,...el);return new Uint8Array(await u.subtle.wrapKey("raw",n,t,ex(e)))}throw TypeError('RSA-OAEP key "usages" must include "encrypt" or "wrapKey" for this operation')},eE=async(e,t,r)=>{if(!c(t))throw TypeError(ee(t,...en));if(Z(t,e,"decrypt","unwrapKey"),eA(e,t),t.usages.includes("decrypt"))return new Uint8Array(await u.subtle.decrypt(ex(e),t,r));if(t.usages.includes("unwrapKey")){let n=await u.subtle.unwrapKey("raw",r,t,ex(e),...el);return new Uint8Array(await u.subtle.exportKey("raw",n))}throw TypeError('RSA-OAEP key "usages" must include "decrypt" or "unwrapKey" for this operation')};function eM(e){return ec(e)&&"string"==typeof e.kty}function eT(e){return"oct"!==e.kty&&"string"==typeof e.d}function eP(e){return"oct"!==e.kty&&void 0===e.d}function eI(e){return eM(e)&&"oct"===e.kty&&"string"==typeof e.k}function eC(e){let t,r;switch(e.kty){case"RSA":switch(e.alg){case"PS256":case"PS384":case"PS512":t={name:"RSA-PSS",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":t={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":t={name:"RSA-OAEP",hash:`SHA-${parseInt(e.alg.slice(-3),10)||1}`},r=e.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new P('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"EC":switch(e.alg){case"ES256":t={name:"ECDSA",namedCurve:"P-256"},r=e.d?["sign"]:["verify"];break;case"ES384":t={name:"ECDSA",namedCurve:"P-384"},r=e.d?["sign"]:["verify"];break;case"ES512":t={name:"ECDSA",namedCurve:"P-521"},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:"ECDH",namedCurve:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new P('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"OKP":switch(e.alg){case"Ed25519":t={name:"Ed25519"},r=e.d?["sign"]:["verify"];break;case"EdDSA":t={name:e.crv},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new P('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;default:throw new P('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:t,keyUsages:r}}let eO=async e=>{if(!e.alg)throw TypeError('"alg" argument is required when "jwk.alg" is not present');let{algorithm:t,keyUsages:r}=eC(e),n=[t,e.ext??!1,e.key_ops??r],i={...e};return delete i.alg,delete i.use,u.subtle.importKey("jwk",i,...n)},eR=e=>A(e),ej=e=>e?.[Symbol.toStringTag]==="KeyObject",eD=async(e,t,r,n,i=!1)=>{let o=e.get(t);if(o?.[n])return o[n];let a=await eO({...r,alg:n});return i&&Object.freeze(t),o?o[n]=a:e.set(t,{[n]:a}),a},eL={normalizePublicKey:(e,t)=>{if(ej(e)){let r=e.export({format:"jwk"});return(delete r.d,delete r.dp,delete r.dq,delete r.p,delete r.q,delete r.qi,r.k)?eR(r.k):(i||(i=new WeakMap),eD(i,e,r,t))}return eM(e)?e.k?A(e.k):(i||(i=new WeakMap),eD(i,e,e,t,!0)):e},normalizePrivateKey:(e,t)=>{if(ej(e)){let r=e.export({format:"jwk"});return r.k?eR(r.k):(n||(n=new WeakMap),eD(n,e,r,t))}return eM(e)?e.k?A(e.k):(n||(n=new WeakMap),eD(n,e,e,t,!0)):e}};function eN(e){switch(e){case"A128GCM":return 128;case"A192GCM":return 192;case"A256GCM":case"A128CBC-HS256":return 256;case"A192CBC-HS384":return 384;case"A256CBC-HS512":return 512;default:throw new P(`Unsupported JWE Algorithm: ${e}`)}}let eB=e=>F(new Uint8Array(eN(e)>>3)),eU=(e,t)=>{let r=(e.match(/.{1,64}/g)||[]).join("\n");return`-----BEGIN ${t}----- +`,ef=16,eh=({reverseOrder:e,position:t="top-center",toastOptions:r,gutter:i,children:o,containerStyle:a,containerClassName:s})=>{let{toasts:u,handlers:c}=F(r);return n.createElement("div",{id:"_rht_toaster",style:{position:"fixed",zIndex:9999,top:ef,left:ef,right:ef,bottom:ef,pointerEvents:"none",...a},className:s,onMouseEnter:c.startPause,onMouseLeave:c.endPause},u.map(r=>{let a=r.position||t,s=el(a,c.calculateOffset(r,{reverseOrder:e,gutter:i,defaultPosition:t}));return n.createElement(ec,{id:r.id,key:r.id,onHeightUpdate:c.updateHeight,className:r.visible?ed:"",style:s},"custom"===r.type?_(r.message,r):o?o(r):n.createElement(eu,{toast:r,position:a}))}))},ep=j},1309:(e,t,r)=>{let n=r(78968),i=(e,t,r)=>n(e,t,r)>=0;e.exports=i},1586:(e,t,r)=>{"use strict";var n=r(95024);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},1853:(e,t,r)=>{"use strict";var n=r(8241),i=r(64215),o=r(57599),a=r(61299);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new i("a function is required");return a(n,o,e)}},1855:(e,t,r)=>{var n=r(72076).Buffer;let i=r(37991),o=r(83606),a=r(73670),s=r(87860),u=r(71495),c=r(11857),l=r(29831),d=r(65804),{KeyObject:f,createSecretKey:h,createPublicKey:p}=r(70103),m=["RS256","RS384","RS512"],g=["ES256","ES384","ES512"],y=["RS256","RS384","RS512"],b=["HS256","HS384","HS512"];l&&(m.splice(m.length,0,"PS256","PS384","PS512"),y.splice(y.length,0,"PS256","PS384","PS512")),e.exports=function(e,t,r,l){let v,w,S;if("function"!=typeof r||l||(l=r,r={}),r||(r={}),r=Object.assign({},r),v=l||function(e,t){if(e)throw e;return t},r.clockTimestamp&&"number"!=typeof r.clockTimestamp)return v(new i("clockTimestamp must be a number"));if(void 0!==r.nonce&&("string"!=typeof r.nonce||""===r.nonce.trim()))return v(new i("nonce must be a non-empty string"));if(void 0!==r.allowInvalidAsymmetricKeyTypes&&"boolean"!=typeof r.allowInvalidAsymmetricKeyTypes)return v(new i("allowInvalidAsymmetricKeyTypes must be a boolean"));let _=r.clockTimestamp||Math.floor(Date.now()/1e3);if(!e)return v(new i("jwt must be provided"));if("string"!=typeof e)return v(new i("jwt must be a string"));let x=e.split(".");if(3!==x.length)return v(new i("jwt malformed"));try{w=s(e,{complete:!0})}catch(e){return v(e)}if(!w)return v(new i("invalid token"));let A=w.header;if("function"==typeof t){if(!l)return v(new i("verify must be called asynchronous if secret or public key is provided as a callback"));S=t}else S=function(e,r){return r(null,t)};return S(A,function(t,s){let l;if(t)return v(new i("error in secret or public key callback: "+t.message));let S=""!==x[2].trim();if(!S&&s)return v(new i("jwt signature is required"));if(S&&!s)return v(new i("secret or public key must be provided"));if(!S&&!r.algorithms)return v(new i('please specify "none" in "algorithms" to verify unsigned tokens'));if(null!=s&&!(s instanceof f))try{s=p(s)}catch(e){try{s=h("string"==typeof s?n.from(s):s)}catch(e){return v(new i("secretOrPublicKey is not valid key material"))}}if(r.algorithms||("secret"===s.type?r.algorithms=b:["rsa","rsa-pss"].includes(s.asymmetricKeyType)?r.algorithms=y:"ec"===s.asymmetricKeyType?r.algorithms=g:r.algorithms=m),-1===r.algorithms.indexOf(w.header.alg))return v(new i("invalid algorithm"));if(A.alg.startsWith("HS")&&"secret"!==s.type)return v(new i(`secretOrPublicKey must be a symmetric key when using ${A.alg}`));if(/^(?:RS|PS|ES)/.test(A.alg)&&"public"!==s.type)return v(new i(`secretOrPublicKey must be an asymmetric key when using ${A.alg}`));if(!r.allowInvalidAsymmetricKeyTypes)try{c(A.alg,s)}catch(e){return v(e)}try{l=d.verify(e,w.header.alg,s)}catch(e){return v(e)}if(!l)return v(new i("invalid signature"));let k=w.payload;if(void 0!==k.nbf&&!r.ignoreNotBefore){if("number"!=typeof k.nbf)return v(new i("invalid nbf value"));if(k.nbf>_+(r.clockTolerance||0))return v(new o("jwt not active",new Date(1e3*k.nbf)))}if(void 0!==k.exp&&!r.ignoreExpiration){if("number"!=typeof k.exp)return v(new i("invalid exp value"));if(_>=k.exp+(r.clockTolerance||0))return v(new a("jwt expired",new Date(1e3*k.exp)))}if(r.audience){let e=Array.isArray(r.audience)?r.audience:[r.audience];if(!(Array.isArray(k.aud)?k.aud:[k.aud]).some(function(t){return e.some(function(e){return e instanceof RegExp?e.test(t):e===t})}))return v(new i("jwt audience invalid. expected: "+e.join(" or ")))}if(r.issuer&&("string"==typeof r.issuer&&k.iss!==r.issuer||Array.isArray(r.issuer)&&-1===r.issuer.indexOf(k.iss)))return v(new i("jwt issuer invalid. expected: "+r.issuer));if(r.subject&&k.sub!==r.subject)return v(new i("jwt subject invalid. expected: "+r.subject));if(r.jwtid&&k.jti!==r.jwtid)return v(new i("jwt jwtid invalid. expected: "+r.jwtid));if(r.nonce&&k.nonce!==r.nonce)return v(new i("jwt nonce invalid. expected: "+r.nonce));if(r.maxAge){if("number"!=typeof k.iat)return v(new i("iat required when maxAge is specified"));let e=u(r.maxAge,k.iat);if(void 0===e)return v(new i('"maxAge" should be a number of seconds or string representing a timespan eg: "1d", "20h", 60'));if(_>=e+(r.clockTolerance||0))return v(new a("maxAge exceeded",new Date(1e3*e)))}return!0===r.complete?v(null,{header:A,payload:k,signature:w.signature}):v(null,k)})}},1943:e=>{e.exports=function(e){var t=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(r,n,i){return" "===r?r:e[t[Math.round(Math.random()*(t.length-2))]](r)}}},2340:e=>{"use strict";e.exports=ReferenceError},2427:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(67541);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},2453:(e,t,r)=>{let n=r(60697),i=(e,t,r)=>n(e,t,">",r);e.exports=i},2549:(e,t,r)=>{var n=r(72076),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},4391:e=>{var t="[object Number]",r=Object.prototype.toString;function n(e){return!!e&&"object"==typeof e}function i(e){return"number"==typeof e||n(e)&&r.call(e)==t}e.exports=i},5193:(e,t,r)=>{var n=r(72076),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},5305:(e,t,r)=>{"use strict";r.d(t,{N:()=>o});var n=r(44109),i=r(30362);let o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],[t,r]=(0,n.useState)(e);return(0,n.useEffect)(()=>{let e=async()=>{r(await (0,i.Mi)().get("TM_useUserCharacters")||[])};return e(),window.addEventListener("update-user-characters",e),()=>{window.removeEventListener("update-user-characters",e)}},[]),[t,(0,n.useCallback)(async e=>{let t=await (0,i.Mi)().get("TM_useUserCharacters")||[],n="function"==typeof e?e(t):e;r(n),await (0,i.Mi)().set("TM_useUserCharacters",n);{let e=new Event("update-user-characters");window.dispatchEvent(e)}},[])]}},6333:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},8241:(e,t,r)=>{"use strict";var n=r(61293);e.exports=Function.prototype.bind||n},8423:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(88017);function i(e){let{className:t="",width:r="18px",height:i="18px",...o}=e;return(0,n.jsx)("svg",{className:t,width:r,height:i,viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg",...o,children:(0,n.jsxs)("g",{fill:"currentColor",children:[(0,n.jsx)("line",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",x1:"5.965",x2:"11.034",y1:"7.908",y2:"5.092"}),(0,n.jsx)("line",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",x1:"5.965",x2:"11.034",y1:"10.092",y2:"12.908"}),(0,n.jsx)("circle",{cx:"4",cy:"9",fill:"none",r:"2.25",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),(0,n.jsx)("circle",{cx:"13",cy:"4",fill:"none",r:"2.25",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"}),(0,n.jsx)("circle",{cx:"13",cy:"14",fill:"none",r:"2.25",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})]})})}},9278:(e,t,r)=>{"use strict";var n=r(57644);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},9865:e=>{"use strict";function t(e){return(e/8|0)+ +(e%8!=0)}var r={ES256:t(256),ES384:t(384),ES512:t(521)};function n(e){var t=r[e];if(t)return t;throw Error('Unknown algorithm "'+e+'"')}e.exports=n},10513:(e,t,r)=>{"use strict";var n;n={value:!0},t.MH=n=n=void 0;let i=r(68716);function o(e){return e.match(/[^a-f0-9]/i)?NaN:parseInt(e,16)}function a(e,t,r){let n=o(e);if(Number.isNaN(n)||void 0!==r&&r!==e.length)throw SyntaxError(i.errorMessages.get(t));return n}function s(e){return String.fromCharCode(a(e,i.ErrorType.MalformedHexadecimal,2))}function u(e,t){let r=a(e,i.ErrorType.MalformedUnicode,4);return void 0!==t?String.fromCharCode(r,a(t,i.ErrorType.MalformedUnicode,4)):String.fromCharCode(r)}function c(e){return"{"===e.charAt(0)&&"}"===e.charAt(e.length-1)}function l(e){if(!c(e))throw SyntaxError(i.errorMessages.get(i.ErrorType.MalformedUnicode));let t=a(e.slice(1,-1),i.ErrorType.MalformedUnicode);try{return String.fromCodePoint(t)}catch(e){throw e instanceof RangeError?SyntaxError(i.errorMessages.get(i.ErrorType.CodePointLimit)):e}}function d(e,t=!1){if(t)throw SyntaxError(i.errorMessages.get(i.ErrorType.OctalDeprecation));return String.fromCharCode(parseInt(e,8))}n={enumerable:!0,get:function(){return i.ErrorType}},n={enumerable:!0,get:function(){return i.errorMessages}};let f=new Map([["b","\b"],["f","\f"],["n","\n"],["r","\r"],["t"," "],["v","\v"],["0","\0"]]);function h(e){return f.get(e)||e}let p=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function m(e,t=!1){return e.replace(p,function(e,r,n,o,a,c,f,p,m){if(void 0!==r)return"\\";if(void 0!==n)return s(n);if(void 0!==o)return l(o);if(void 0!==a)return u(a,c);if(void 0!==f)return u(f);if("0"===p)return"\0";if(void 0!==p)return d(p,!t);if(void 0!==m)return h(m);throw SyntaxError(i.errorMessages.get(i.ErrorType.EndOfString))})}t.MH=m,n=m},10701:(e,t,r)=>{"use strict";var n=r(27604);e.exports=n.getPrototypeOf||null},10815:(e,t,r)=>{var n="/",i=r(2272),o=r(72076).Buffer;!function(){var t={992:function(e){e.exports=function(e,r,n){if(e.filter)return e.filter(r,n);if(null==e||"function"!=typeof r)throw TypeError();for(var i=[],o=0;o1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;i1?r-1:0),i=1;ie.length)&&(r=e.length),e.substring(r-t.length,r)===t}function _(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var r=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,r-e.length)}var x="",A="",k="",E="",M={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},T=10;function P(e){var t=Object.keys(e),r=Object.create(Object.getPrototypeOf(e));return t.forEach(function(t){r[t]=e[t]}),Object.defineProperty(r,"message",{value:e.message}),r}function I(e){return v(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function C(e,t,r){var n="",o="",a=0,s="",u=!1,c=I(e),l=c.split("\n"),d=I(t).split("\n"),f=0,h="";if("strictEqual"===r&&"object"===b(e)&&"object"===b(t)&&null!==e&&null!==t&&(r="strictEqualObject"),1===l.length&&1===d.length&&l[0]!==d[0]){var p=l[0].length+d[0].length;if(p<=T){if(("object"!==b(e)||null===e)&&("object"!==b(t)||null===t)&&(0!==e||0!==t))return"".concat(M[r],"\n\n")+"".concat(l[0]," !== ").concat(d[0],"\n")}else if("strictEqualObject"!==r&&p<(i.stderr&&i.stderr.isTTY?i.stderr.columns:80)){for(;l[0][f]===d[0][f];)f++;f>2&&(h="\n ".concat(_(" ",f),"^"),f=0)}}for(var m=l[l.length-1],g=d[d.length-1];m===g&&(f++<2?s="\n ".concat(m).concat(s):n=m,l.pop(),d.pop(),0!==l.length&&0!==d.length);)m=l[l.length-1],g=d[d.length-1];var y=Math.max(l.length,d.length);if(0===y){var v=c.split("\n");if(v.length>30)for(v[26]="".concat(x,"...").concat(E);v.length>27;)v.pop();return"".concat(M.notIdentical,"\n\n").concat(v.join("\n"),"\n")}f>3&&(s="\n".concat(x,"...").concat(E).concat(s),u=!0),""!==n&&(s="\n ".concat(n).concat(s),n="");var w=0,P=M[r]+"\n".concat(A,"+ actual").concat(E," ").concat(k,"- expected").concat(E),C=" ".concat(x,"...").concat(E," Lines skipped");for(f=0;f1&&f>2&&(O>4?(o+="\n".concat(x,"...").concat(E),u=!0):O>3&&(o+="\n ".concat(d[f-2]),w++),o+="\n ".concat(d[f-1]),w++),a=f,n+="\n".concat(k,"-").concat(E," ").concat(d[f]),w++;else if(d.length1&&f>2&&(O>4?(o+="\n".concat(x,"...").concat(E),u=!0):O>3&&(o+="\n ".concat(l[f-2]),w++),o+="\n ".concat(l[f-1]),w++),a=f,o+="\n".concat(A,"+").concat(E," ").concat(l[f]),w++;else{var R=d[f],j=l[f],D=j!==R&&(!S(j,",")||j.slice(0,-1)!==R);D&&S(R,",")&&R.slice(0,-1)===j&&(D=!1,j+=","),D?(O>1&&f>2&&(O>4?(o+="\n".concat(x,"...").concat(E),u=!0):O>3&&(o+="\n ".concat(l[f-2]),w++),o+="\n ".concat(l[f-1]),w++),a=f,o+="\n".concat(A,"+").concat(E," ").concat(j),n+="\n".concat(k,"-").concat(E," ").concat(R),w+=2):(o+=n,n="",(1===O||0===f)&&(o+="\n ".concat(j),w++))}if(w>20&&f30)for(p[26]="".concat(x,"...").concat(E);p.length>27;)p.pop();r=1===p.length?c(this,y(t).call(this,"".concat(h," ").concat(p[0]))):c(this,y(t).call(this,"".concat(h,"\n\n").concat(p.join("\n"),"\n")))}else{var m=I(u),g="",v=M[o];"notDeepEqual"===o||"notEqual"===o?(m="".concat(M[o],"\n\n").concat(m)).length>1024&&(m="".concat(m.slice(0,1021),"...")):(g="".concat(I(d)),m.length>512&&(m="".concat(m.slice(0,509),"...")),g.length>512&&(g="".concat(g.slice(0,509),"...")),"deepEqual"===o||"equal"===o?m="".concat(v,"\n\n").concat(m,"\n\nshould equal\n\n"):g=" ".concat(o," ").concat(g)),r=c(this,y(t).call(this,"".concat(m).concat(g)))}return Error.stackTraceLimit=f,r.generatedMessage=!n,Object.defineProperty(l(r),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),r.code="ERR_ASSERTION",r.actual=u,r.expected=d,r.operator=o,Error.captureStackTrace&&Error.captureStackTrace(l(r),s),r.stack,r.name="AssertionError",c(r)}return d(t,e),u(t,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:v.custom,value:function(e,t){return v(this,n({},t,{customInspect:!1,depth:0}))}}]),t}(f(Error));e.exports=O},23:function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function o(e,t){return t&&("object"===n(t)||"function"==typeof t)?t:a(e)}function a(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var l,d,f={};function h(e,t,r){function n(e,r,n){return"string"==typeof t?t:t(e,r,n)}r||(r=Error);var a=function(t){function r(t,a,u){var c;return i(this,r),(c=o(this,s(r).call(this,n(t,a,u)))).code=e,c}return u(r,t),r}(r);f[e]=a}function p(e,t){if(!Array.isArray(e))return"of ".concat(t," ").concat(String(e));var r=e.length;return(e=e.map(function(e){return String(e)}),r>2)?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}function m(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function g(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function y(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}h("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),h("ERR_INVALID_ARG_TYPE",function(e,t,i){if(void 0===l&&(l=r(167)),l("string"==typeof e,"'name' must be a string"),"string"==typeof t&&m(t,"not ")?(o="must not be",t=t.replace(/^not /,"")):o="must be",g(e," argument"))a="The ".concat(e," ").concat(o," ").concat(p(t,"type"));else{var o,a,s=y(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(s," ").concat(o," ").concat(p(t,"type"))}return a+". Received type ".concat(n(i))},TypeError),h("ERR_INVALID_ARG_VALUE",function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===d&&(d=r(177));var i=d.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(n,". Received ").concat(i)},TypeError,RangeError),h("ERR_INVALID_RETURN_VALUE",function(e,t,r){var i;return i=r&&r.constructor&&r.constructor.name?"instance of ".concat(r.constructor.name):"type ".concat(n(r)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")},TypeError),h("ERR_MISSING_ARGS",function(){for(var e=arguments.length,t=Array(e),n=0;n0,"At least one arg needs to be specified");var i="The ",o=t.length;switch(t=t.map(function(e){return'"'.concat(e,'"')}),o){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,o-1).join(", "),i+=", and ".concat(t[o-1]," arguments")}return"".concat(i," must be specified")},TypeError),e.exports.codes=f},176:function(e,t,r){"use strict";function n(e,t){return a(e)||o(e,t)||i()}function i(){throw TypeError("Invalid attempt to destructure non-iterable instance")}function o(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}function a(e){if(Array.isArray(e))return e}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var u=void 0!==/a/g.flags,c=function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t},l=function(e){var t=[];return e.forEach(function(e,r){return t.push([r,e])}),t},d=Object.is?Object.is:r(208),f=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},h=Number.isNaN?Number.isNaN:r(718);function p(e){return e.call.bind(e)}var m=p(Object.prototype.hasOwnProperty),g=p(Object.prototype.propertyIsEnumerable),y=p(Object.prototype.toString),b=r(177).types,v=b.isAnyArrayBuffer,w=b.isArrayBufferView,S=b.isDate,_=b.isMap,x=b.isRegExp,A=b.isSet,k=b.isNativeError,E=b.isBoxedPrimitive,M=b.isNumberObject,T=b.isStringObject,P=b.isBooleanObject,I=b.isBigIntObject,C=b.isSymbolObject,O=b.isFloat32Array,R=b.isFloat64Array;function j(e){if(0===e.length||e.length>10)return!0;for(var t=0;t57)return!0}return 10===e.length&&e>=0x100000000}function D(e){return Object.keys(e).filter(j).concat(f(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function L(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i-1?i(r):r}},139:function(e,t,r){"use strict";var n=r(212),i=r(192),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||n.call(a,o),u=i("%Object.getOwnPropertyDescriptor%",!0),c=i("%Object.defineProperty%",!0),l=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){var t=s(n,a,arguments);return u&&c&&u(t,"length").configurable&&c(t,"length",{value:1+l(0,e.length-(arguments.length-1))}),t};var d=function(){return s(n,o,arguments)};c?c(e.exports,"apply",{value:d}):e.exports.apply=d},69:function(e,t,r){"use strict";var n=r(935),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,u=function(e){return"function"==typeof e&&"[object Function]"===o.call(e)},c=function(){var e={};try{for(var t in s(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}},l=s&&c(),d=function(e,t,r,n){(!(t in e)||u(n)&&n())&&(l?s(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r)},f=function(e,t){var r=arguments.length>2?arguments[2]:{},o=n(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===C(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=j(e),n=r.length>0?r[0]:"",i=D("%"+n+"%",t),o=i.name,a=i.value,s=!1,l=i.alias;l&&(n=l[0],T(r,M([0,1],l)));for(var d=1,f=!0;d=r.length){var y=h(a,p);a=(f=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[p]}else f=E(a,p),a=a[p];f&&!s&&(S[o]=a)}}return a}},14:function(e){"use strict";var t={__proto__:null,foo:{}},r=Object;e.exports=function(){return({__proto__:t}).foo===t.foo&&!(t instanceof r)}},942:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(773);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},773:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(t in e[t]=n,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==n||!0!==o.enumerable)return!1}return!0}},115:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(832);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},832:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(t in e[t]=n,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==n||!0!==o.enumerable)return!1}return!0}},270:function(e,t,r){"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=r(212);e.exports=o.call(n,i)},782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},157:function(e){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,r=Object.prototype.toString,n=function(e){return(!t||!e||"object"!=typeof e||!(Symbol.toStringTag in e))&&"[object Arguments]"===r.call(e)},i=function(e){return!!n(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==r.call(e)&&"[object Function]"===r.call(e.callee)},o=function(){return n(arguments)}();n.isLegacyArguments=i,e.exports=o?n:i},391:function(e){"use strict";var t=Object.prototype.toString,r=Function.prototype.toString,n=/^\s*(?:function)?\*/,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,o=Object.getPrototypeOf,a=function(){if(!i)return!1;try{return Function("return function*() {}")()}catch(e){}}(),s=a?o(a):{};e.exports=function(e){return"function"==typeof e&&(!!n.test(r.call(e))||(i?o(e)===s:"[object GeneratorFunction]"===t.call(e)))}},460:function(e){"use strict";e.exports=function(e){return e!=e}},718:function(e,t,r){"use strict";var n=r(139),i=r(69),o=r(460),a=r(625),s=r(171),u=n(a(),Number);i(u,{getPolyfill:a,implementation:o,shim:s}),e.exports=u},625:function(e,t,r){"use strict";var n=r(460);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n}},171:function(e,t,r){"use strict";var n=r(69),i=r(625);e.exports=function(){var e=i();return n(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},994:function(e,t,n){"use strict";var i=n(144),o=n(349),a=n(256),s=a("Object.prototype.toString"),u=n(942)()&&"symbol"==typeof Symbol.toStringTag,c=o(),l=a("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r-1)}},208:function(e){"use strict";var t=function(e){return e!=e};e.exports=function(e,r){return 0===e&&0===r?1/e==1/r:!!(e===r||t(e)&&t(r))}},579:function(e,t,r){"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=r(412),s=Object.prototype.propertyIsEnumerable,u=!s.call({toString:null},"toString"),c=s.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!f["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{d(window[e])}catch(e){return!0}}catch(e){return!0}return!1}(),p=function(e){if("undefined"==typeof window||!h)return d(e);try{return d(e)}catch(e){return!1}};n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===o.call(e),n=a(e),s=t&&"[object String]"===o.call(e),d=[];if(!t&&!r&&!n)throw TypeError("Object.keys called on a non-object");var f=c&&r;if(s&&e.length>0&&!i.call(e,0))for(var h=0;h0)for(var m=0;m=0&&"[object Function]"===t.call(e.callee)),n}},369:function(e){e.exports=function(e){return e instanceof o}},584:function(e,t,r){"use strict";var n=r(157),i=r(391),o=r(490),a=r(994);function s(e){return e.call.bind(e)}var u="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,l=s(Object.prototype.toString),d=s(Number.prototype.valueOf),f=s(String.prototype.valueOf),h=s(Boolean.prototype.valueOf);if(u)var p=s(BigInt.prototype.valueOf);if(c)var m=s(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function y(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch}function b(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||W(e)}function v(e){return"Uint8Array"===o(e)}function w(e){return"Uint8ClampedArray"===o(e)}function S(e){return"Uint16Array"===o(e)}function _(e){return"Uint32Array"===o(e)}function x(e){return"Int8Array"===o(e)}function A(e){return"Int16Array"===o(e)}function k(e){return"Int32Array"===o(e)}function E(e){return"Float32Array"===o(e)}function M(e){return"Float64Array"===o(e)}function T(e){return"BigInt64Array"===o(e)}function P(e){return"BigUint64Array"===o(e)}function I(e){return"[object Map]"===l(e)}function C(e){return"undefined"!=typeof Map&&(I.working?I(e):e instanceof Map)}function O(e){return"[object Set]"===l(e)}function R(e){return"undefined"!=typeof Set&&(O.working?O(e):e instanceof Set)}function j(e){return"[object WeakMap]"===l(e)}function D(e){return"undefined"!=typeof WeakMap&&(j.working?j(e):e instanceof WeakMap)}function L(e){return"[object WeakSet]"===l(e)}function N(e){return L(e)}function B(e){return"[object ArrayBuffer]"===l(e)}function U(e){return"undefined"!=typeof ArrayBuffer&&(B.working?B(e):e instanceof ArrayBuffer)}function F(e){return"[object DataView]"===l(e)}function W(e){return"undefined"!=typeof DataView&&(F.working?F(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=y,t.isArrayBufferView=b,t.isUint8Array=v,t.isUint8ClampedArray=w,t.isUint16Array=S,t.isUint32Array=_,t.isInt8Array=x,t.isInt16Array=A,t.isInt32Array=k,t.isFloat32Array=E,t.isFloat64Array=M,t.isBigInt64Array=T,t.isBigUint64Array=P,I.working="undefined"!=typeof Map&&I(new Map),t.isMap=C,O.working="undefined"!=typeof Set&&O(new Set),t.isSet=R,j.working="undefined"!=typeof WeakMap&&j(new WeakMap),t.isWeakMap=D,L.working="undefined"!=typeof WeakSet&&L(new WeakSet),t.isWeakSet=N,B.working="undefined"!=typeof ArrayBuffer&&B(new ArrayBuffer),t.isArrayBuffer=U,F.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&F(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=W;var H="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function q(e){return"[object SharedArrayBuffer]"===l(e)}function G(e){return void 0!==H&&(void 0===q.working&&(q.working=q(new H)),q.working?q(e):e instanceof H)}function K(e){return"[object AsyncFunction]"===l(e)}function z(e){return"[object Map Iterator]"===l(e)}function $(e){return"[object Set Iterator]"===l(e)}function J(e){return"[object Generator]"===l(e)}function Y(e){return"[object WebAssembly.Module]"===l(e)}function V(e){return g(e,d)}function X(e){return g(e,f)}function Z(e){return g(e,h)}function Q(e){return u&&g(e,p)}function ee(e){return c&&g(e,m)}function et(e){return V(e)||X(e)||Z(e)||Q(e)||ee(e)}function er(e){return"undefined"!=typeof Uint8Array&&(U(e)||G(e))}t.isSharedArrayBuffer=G,t.isAsyncFunction=K,t.isMapIterator=z,t.isSetIterator=$,t.isGeneratorObject=J,t.isWebAssemblyCompiledModule=Y,t.isNumberObject=V,t.isStringObject=X,t.isBooleanObject=Z,t.isBigIntObject=Q,t.isSymbolObject=ee,t.isBoxedPrimitive=et,t.isAnyArrayBuffer=er,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw Error(e+" is not supported in userland")}})})},177:function(e,t,r){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),s=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),w(r)?n.showHidden=r:r&&t._extend(n,r),E(n.showHidden)&&(n.showHidden=!1),E(n.depth)&&(n.depth=2),E(n.colors)&&(n.colors=!1),E(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),h(n,e,n.depth)}function l(e,t){var r=c.styles[t];return r?"\x1b["+c.colors[r][0]+"m"+e+"\x1b["+c.colors[r][1]+"m":e}function d(e,t){return e}function f(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function h(e,r,n){if(e.customInspect&&r&&C(r.inspect)&&r.inspect!==t.inspect&&!(r.constructor&&r.constructor.prototype===r)){var i,o=r.inspect(n,e);return A(o)||(o=h(e,o,n)),o}var a=p(e,r);if(a)return a;var s=Object.keys(r),u=f(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),I(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return m(r);if(0===s.length){if(C(r)){var c=r.name?": "+r.name:"";return e.stylize("[Function"+c+"]","special")}if(M(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(P(r))return e.stylize(Date.prototype.toString.call(r),"date");if(I(r))return m(r)}var l="",d=!1,w=["{","}"];return(v(r)&&(d=!0,w=["[","]"]),C(r)&&(l=" [Function"+(r.name?": "+r.name:"")+"]"),M(r)&&(l=" "+RegExp.prototype.toString.call(r)),P(r)&&(l=" "+Date.prototype.toUTCString.call(r)),I(r)&&(l=" "+m(r)),0!==s.length||d&&0!=r.length)?n<0?M(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),i=d?g(e,r,n,u,s):s.map(function(t){return y(e,r,n,u,t,d)}),e.seen.pop(),b(i,l,w)):w[0]+l+w[1]}function p(e,t){if(E(t))return e.stylize("undefined","undefined");if(A(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return x(t)?e.stylize(""+t,"number"):w(t)?e.stylize(""+t,"boolean"):S(t)?e.stylize("null","null"):void 0}function m(e){return"["+Error.prototype.toString.call(e)+"]"}function g(e,t,r,n,i){for(var o=[],a=0,s=t.length;ae.seen.indexOf(u.value)?(s=S(r)?h(e,u.value,null):h(e,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),E(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function b(e,t,r){var n=0;return e.reduce(function(e,t){return n++,t.indexOf("\n")>=0&&n++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function v(e){return Array.isArray(e)}function w(e){return"boolean"==typeof e}function S(e){return null===e}function _(e){return null==e}function x(e){return"number"==typeof e}function A(e){return"string"==typeof e}function k(e){return"symbol"==typeof e}function E(e){return void 0===e}function M(e){return T(e)&&"[object RegExp]"===R(e)}function T(e){return"object"==typeof e&&null!==e}function P(e){return T(e)&&"[object Date]"===R(e)}function I(e){return T(e)&&("[object Error]"===R(e)||e instanceof Error)}function C(e){return"function"==typeof e}function O(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function R(e){return Object.prototype.toString.call(e)}function j(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(!a[e=e.toUpperCase()]){if(s.test(e)){var r=i.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){}}return a[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(584),t.isArray=v,t.isBoolean=w,t.isNull=S,t.isNullOrUndefined=_,t.isNumber=x,t.isString=A,t.isSymbol=k,t.isUndefined=E,t.isRegExp=M,t.types.isRegExp=M,t.isObject=T,t.isDate=P,t.types.isDate=P,t.isError=I,t.types.isNativeError=I,t.isFunction=C,t.isPrimitive=O,t.isBuffer=r(369);var D=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function L(){var e=new Date,t=[j(e.getHours()),j(e.getMinutes()),j(e.getSeconds())].join(":");return[e.getDate(),D[e.getMonth()],t].join(" ")}function N(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",L(),t.format.apply(t,arguments))},t.inherits=r(782),t._extend=function(e,t){if(!t||!T(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var B="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function U(e,t){if(!e){var r=Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}function F(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r{"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=r(8241);e.exports=o.call(n,i)},11361:(e,t,r)=>{"use strict";var n=r(61271),i=r(1853),o=i([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&o(e,".prototype.")>-1?i([r]):r}},11857:(e,t,r)=>{let n=r(52051),i=r(74121),o={ec:["ES256","ES384","ES512"],rsa:["RS256","PS256","RS384","PS384","RS512","PS512"],"rsa-pss":["PS256","PS384","PS512"]},a={ES256:"prime256v1",ES384:"secp384r1",ES512:"secp521r1"};e.exports=function(e,t){if(!e||!t)return;let r=t.asymmetricKeyType;if(!r)return;let s=o[r];if(!s)throw Error(`Unknown key type "${r}".`);if(!s.includes(e))throw Error(`"alg" parameter for "${r}" key type must be one of: ${s.join(", ")}.`);if(n)switch(r){case"ec":let u=t.asymmetricKeyDetails.namedCurve,c=a[e];if(u!==c)throw Error(`"alg" parameter "${e}" requires curve "${c}".`);break;case"rsa-pss":if(i){let r=parseInt(e.slice(-3),10),{hashAlgorithm:n,mgf1HashAlgorithm:i,saltLength:o}=t.asymmetricKeyDetails;if(n!==`sha${r}`||i!==n)throw Error(`Invalid key for this operation, its RSA-PSS parameters do not meet the requirements of "alg" ${e}.`);if(void 0!==o&&o>r>>3)throw Error(`Invalid key for this operation, its RSA-PSS parameter saltLength does not meet the requirements of "alg" ${e}.`)}}}},11921:e=>{e.exports=function(e,t){e=e||" he is here ";var r={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},n=[].concat(r.up,r.down,r.mid);function i(e){return Math.floor(Math.random()*e)}function o(e){var t=!1;return n.filter(function(r){t=r===e}),t}return function(e,t){var n,a,s="";for(a in(t=t||{}).up=void 0===t.up||t.up,t.mid=void 0===t.mid||t.mid,t.down=void 0===t.down||t.down,t.size=void 0!==t.size?t.size:"maxi",e=e.split(""))if(!o(a)){switch(s+=e[a],n={up:0,down:0,mid:0},t.size){case"mini":n.up=i(8),n.mid=i(2),n.down=i(8);break;case"maxi":n.up=i(16)+3,n.mid=i(4)+1,n.down=i(64)+3;break;default:n.up=i(8)+1,n.mid=i(6)/2,n.down=i(8)+1}var u=["up","mid","down"];for(var c in u)for(var l=u[c],d=0;d<=n[l];d++)t[l]&&(s+=r[l][i(r[l].length)])}return s}(e,t)}},11955:e=>{var t=1/0,r=17976931348623157e292,n=0/0,i="[object Symbol]",o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt,l=Object.prototype.toString;function d(e){return"number"==typeof e&&e==g(e)}function f(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function h(e){return!!e&&"object"==typeof e}function p(e){return"symbol"==typeof e||h(e)&&l.call(e)==i}function m(e){return e?(e=y(e))===t||e===-t?(e<0?-1:1)*r:e==e?e:0:0===e?e:0}function g(e){var t=m(e),r=t%1;return t==t?r?t-r:t:0}function y(e){if("number"==typeof e)return e;if(p(e))return n;if(f(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=f(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var r=s.test(e);return r||u.test(e)?c(e.slice(2),r?2:8):a.test(e)?n:+e}e.exports=d},12239:e=>{"use strict";e.exports=Math.max},14574:(e,t,r)=>{"use strict";t.parse=r(87433),t.stringify=r(87619)},14804:(e,t,r)=>{var n=r(2549).Buffer,i=r(29979),o=r(31759),a=r(66856),s=r(26512),u=r(65723);function c(e,t){return n.from(e,t).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function l(e,t,r){r=r||"utf8";var n=c(s(e),"binary"),i=c(s(t),r);return u.format("%s.%s",n,i)}function d(e){var t=e.header,r=e.payload,n=e.secret||e.privateKey,i=e.encoding,a=o(t.alg),s=l(t,r,i),c=a.sign(s,n);return u.format("%s.%s",s,c)}function f(e){var t=new i(e.secret||e.privateKey||e.key);this.readable=!0,this.header=e.header,this.encoding=e.encoding,this.secret=this.privateKey=this.key=t,this.payload=new i(e.payload),this.secret.once("close",(function(){!this.payload.writable&&this.readable&&this.sign()}).bind(this)),this.payload.once("close",(function(){!this.secret.writable&&this.readable&&this.sign()}).bind(this))}u.inherits(f,a),f.prototype.sign=function(){try{var e=d({header:this.header,payload:this.payload.buffer,secret:this.secret.buffer,encoding:this.encoding});return this.emit("done",e),this.emit("data",e),this.emit("end"),this.readable=!1,e}catch(e){this.readable=!1,this.emit("error",e),this.emit("close")}},f.sign=d,e.exports=f},15108:e=>{"use strict";let t=/{(\w+)}/,r="^https://github.com/([^\\s\\/\\?]+)/([^\\s\\/\\?]+)((/[^\\s\\/\\?]+)*)/?(\\?[^\\s]*)?$",n=new RegExp(r),i=new RegExp("https://[^\\s]+/plugins/([^\\s?]+)\\??.*|(".concat(r,")")),o=async(e,t)=>{var r;let i=n.test(e)?e.replace(n,"$1/$2"):e;n.lastIndex=0;let[,,,o,,a]=n.exec(e)||[],s=o.startsWith("/tree")&&!o.startsWith("/tree/main")?o.replace("/tree",""):"/main",u=new URLSearchParams(a).get("token"),c=async e=>u?fetch("https://api.github.com/repos/".concat(i,"/contents/").concat(e,"?time=").concat(Date.now()),{headers:{Authorization:"Bearer ".concat(u)}}).then(async t=>{let r=await t.json();if(!r.download_url)throw Error("Failed to fetch ".concat(e));return r.download_url}):"https://raw.githubusercontent.com/".concat(i).concat(s,"/").concat(e,"?time=").concat(Date.now()),[l,d,f]=await Promise.all([fetch(await c("plugin.json")).then(async e=>e.json()),fetch(await c("README.md")).then(async e=>e.text()),fetch(await c("implementation.js")).then(e=>{if(404===e.status)return{text:()=>""};if(!e.ok)throw Error("Failed to fetch implementation file at "+i);return e}).then(e=>e.text())]);if(!l.httpAction&&!f)throw Error("Invalid plugin");if(!(null===(r=l.openaiSpec)||void 0===r?void 0:r.name))throw console.error("Invalid openaiSpec from github plugin"),Error("Invalid plugin");return{...l,id:l.openaiSpec.name,overviewMarkdown:d,code:f,githubURL:"https://github.com/".concat(i).concat(o),system:!1,org:null,...t}},a=(e,t)=>{let r=[];try{let t="object"==typeof e?e:JSON.parse(e);r.push(...Object.keys(t.parameters.properties))}catch(e){}if(t)try{let e="object"==typeof t?t:JSON.parse(t);r.push(...e.map(e=>e.name))}catch(e){}return r},s=(e,r)=>{let{url:n,method:i,hasHeaders:o,hasBody:a,requestBody:s,requestHeaders:u}=e;if(!n||!n.length)throw Error("URL is required.");if(!n.startsWith("http://")&&!n.startsWith("https://")&&!t.test(n))throw Error("URL must start with http:// or https://");if(!["GET","POST","PUT","DELETE","PATCH"].includes(i))throw Error("Method must be one of GET, POST, PUT, DELETE.")},u=e=>{let[t,...r]=e.split("?"),n=r.join("?"),i=t.split(RegExp("(?{var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],r=0;r{let t="2.0.0",r=256,n=Number.MAX_SAFE_INTEGER||0x1fffffffffffff,i=16,o=250,a=["major","premajor","minor","preminor","patch","prepatch","prerelease"];e.exports={MAX_LENGTH:r,MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:o,MAX_SAFE_INTEGER:n,RELEASE_TYPES:a,SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},16241:(e,t,r)=>{let n=r(22626),i=(e,t,r)=>{let i=new n(e,r),o=new n(t,r);return i.compare(o)||i.compareBuild(o)};e.exports=i},16769:(e,t,r)=>{"use strict";r.d(t,{Mi:()=>u,c7:()=>a});let n=null,i=e=>{try{return JSON.parse(e)}catch(e){return null}},o={get:e=>i(window.localStorage.getItem(e)),set:(e,t)=>window.localStorage.setItem(e,JSON.stringify(t)),del:e=>window.localStorage.removeItem(e),getMany:e=>e.map(e=>i(window.localStorage.getItem(e))),setMany(e){e.forEach(e=>{let[t,r]=e;return window.localStorage.setItem(t,JSON.stringify(r))})},delMany(e){e.forEach(e=>window.localStorage.removeItem(e))},entries(){let e={...window.localStorage};return Object.keys(e).map(t=>[t,i(e[t])])}},a=()=>window.localStorage,s=async()=>{if(!n){if(!("indexedDB"in window))return console.warn("indexDB not supported, falling back to localStorage"),n=o;try{n=await r.e(661).then(r.bind(r,9661))}catch(e){return console.warn("Cannot import idb-keyval, falling back to localStorage",e),n=o}try{await n.set("test","test"),await n.del("test")}catch(e){if(e instanceof DOMException)console.warn("IndexedDB not available, using localStorage",e),n=o;else throw console.error("IndexedDB error:",e),e}}return n},u=()=>({set:(e,t)=>s().then(r=>r.set(e,t)),get:e=>s().then(t=>t.get(e)),del:e=>s().then(t=>t.del(e)),getMany:e=>s().then(t=>t.getMany(e)),setMany:e=>s().then(t=>t.setMany(e)),delMany:e=>s().then(t=>t.delMany(e)),entries:()=>s().then(e=>e.entries())})},16975:(e,t,r)=>{"use strict";var n=r(97783),i=r(66380),o=r(64215),a=r(9278);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],d=!!a&&a(e,t);if(n)n(e,t,{configurable:null===c&&d?d.configurable:!c,enumerable:null===s&&d?d.enumerable:!s,value:r,writable:null===u&&d?d.writable:!u});else if(!l&&(s||u||c))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else e[t]=r}},18235:e=>{"use strict";e.exports={messages:JSON.parse('{"7KNmqn":[" - AI Assistant Chat"],"p1BFMF":[" → Send"],"XdZ06Y":[" and will be disabled after the Beta period"],"Rl/SV6":[" Are you sure?"],"5B9kHs":[" Buy a License Key"],"AfcPqM":[" Here is your chat transcript:"],"vZKDNa":[" Note: Web Search works best with the <0>GPT-4 model. Enable Web Search will consume more tokens. All web searches are private. Learn more below."],"pxEiWL":[" Plugin overview not available"],"EQOj9N":[" Programmable Search Engine (by Google)"],"7T/Qrg":[" Search API Key is now working!"],"uDjwJ6":[" Search Engine ID"],"iUoYrq":[" Share to <0>Cloud"],"bTghXz":[" Technical detail: "],"4EFkQG":[" User-specific settings that will be passed to the plugin when it is called. Must be a valid JSON. <0>See Example JSON and instruction here."],"RI9zpW":[" Your API key is not working. You need a <0>paid API account on OpenAI in order to use the ChatGPT API Key (the free trial won\'t work). To verify that you have a paid API account, go here and make sure you have your billing info added: <1>https://platform.openai.com/account/billing/overview. Note that you <2>do not need to have a ChatGPT Plus subscription, it\'s <3>not needed. If you already have a paid OpenAI account, check to see if you still have sufficient credits. Also, try creating a new API key and trying again. If this problem persists, please contact support."],"AlCw7T":["\'Listening...\'"],"KtsNzw":["\\"awsAccessKey\\", \\"awsSecretKey\\", \\"awsRegion\\" properties are required for Bedrock Claude models!"],"4ZWIlk":["(",["0"],"% of total usage)"],"kS/gaE":["(All)"],"wfJ1qf":["(Caching not enabled for this chat)"],"ghNpNS":["(Click Test API Key before saving)"],"nMAlk3":["(Default)"],"3ixyNq":["(Free)"],"AGF92m":["(Inactive)"],"cer5ho":["(Learn more)"],"8RknI/":["(Learn More)"],"fSOo0q":["(Leave empty if you already have an account)"],"Hjx5Vx":["(Locked)"],"LmP7AC":["(Model does not support prompt caching)"],"rjoGU7":["(No instruction provided)"],"DzGwzA":["(No variables)"],"ZN0cYQ":["(Paste As Text)"],"fNqU0V":["(Show)"],"in4V91":["(View Report)"],"WOnzNW":[["0","plural",{"one":["#"," agent"],"other":["#"," agents"]}]],"ef1tvK":[["0","plural",{"one":["#"," archived chat"],"other":["#"," archived chats"]}]],"6KMTVy":[["0","plural",{"one":["#"," Archived Chat"],"other":["#"," Archived Chats"]}]],"IPXOXm":[["0","plural",{"one":["#"," character"],"other":["#"," characters"]}]],"myhHcE":[["0","plural",{"one":["#"," character"],"other":["#"," characters"]}]," per message."],"HWQKU1":[["0","plural",{"one":["#"," chat is excluded from sync due to its large size."],"other":["#"," chats are excluded from sync due to their large size."]}]],"iwKytO":[["0","plural",{"one":["#"," chat"],"other":["#"," chats"]}]],"ao4ihU":[["0","plural",{"one":["#"," custom model"],"other":["#"," custom models"]}]],"Ftz/t9":[["0","plural",{"one":["#"," folder"],"other":["#"," folders"]}]],"M4fjIB":[["0","plural",{"one":["#"," hour"],"other":["#"," hours"]}]],"A8sVYP":[["0","plural",{"one":["#"," message will be queued"],"other":["#"," messages will be queued"]}]],"7dDfMK":[["0","plural",{"one":["#"," message"],"other":["#"," messages"]}]],"yxF19Y":[["0","plural",{"one":["#"," plugin"],"other":["#"," plugins"]}]],"WngjJs":[["0","plural",{"one":["#"," profile"],"other":["#"," profiles"]}]],"83la/n":[["0","plural",{"one":["#"," prompt"],"other":["#"," prompts"]}]],"Cwe7mf":[["0","plural",{"one":["#"," request"],"other":["#"," requests"]}]],"YVY9Iw":[["0","plural",{"one":["#"," saved prompt"],"other":["#"," saved prompts"]}]],"5xe2p4":[["0","plural",{"one":["#"," token"],"other":["#"," tokens"]}]],"G1lxoh":[["0","plural",{"one":["~","#"," token"],"other":["~","#"," tokens"]}]],"HK0pJP":[["0","plural",{"one":["every day"],"other":["every ","#"," days"]}]],"wv8z2V":[["0","plural",{"one":["every hour"],"other":["every ","#"," hours"]}]],"33mr/A":[["0","plural",{"one":["every month"],"other":["every ","#"," months"]}]],"TuGMMD":[["0","plural",{"one":["Move ","#"," chat to"],"other":["Move ","#"," chats to"]}]],"Betvyb":[["0","plural",{"one":["per day"],"other":["every ","#"," days"]}]],"6UqxzA":[["0","plural",{"one":["per hour"],"other":["every ","#"," hours"]}]],"BRJBtW":[["0","plural",{"one":["per month"],"other":["every ","#"," months"]}]],"3dz4IW":[["0","plural",{"one":["You have ","#"," invite code left."],"other":["You have ","#"," invite codes left."]}]],"J/hVSQ":[["0"]],"bVQ97w":[["0"]," characters"],"DsE/2T":[["0"]," context length"],"4cp8tX":[["0"]," is already selected"],"yN4Oln":[["0"]," more AI agents hidden..."],"2OP12J":[["0"],"/",["1"]," used."],"+0skwN":[["availablePromptsCount","plural",{"one":["#"," propmt"],"other":["#"," prompts"]}]],"J3+TD7":[["count","plural",{"one":["#"," AI agent"],"other":["#"," AI agents"]}]],"BnhXW8":[["currentContextLength","plural",{"one":["#"," token"],"other":["#"," tokens"]}]],"MfPdYe":[["enabledCount"]," enabled"],"lo2Y4Y":[["estimatedTokens","plural",{"one":["~","#"," token"],"other":["~","#"," tokens"]}]],"dQB853":[["i","plural",{"one":["#"," seat"],"other":["#"," seats"]}]],"rt+E3q":[["i","plural",{"one":["Last ","#"," message"],"other":["Last ","#"," messages"]}]],"uBvddp":[["item"]],"MYfjvl":[["newAnthropicEndpoint"]," (Custom)"],"ltmlBy":[["totalTokensSpent","plural",{"one":["#"," token"],"other":["#"," tokens"]}]],"fmLRjM":[["trainingMessagesCount","plural",{"one":["#"," training message hidden"],"other":["#"," training messages hidden"]}]],"PyaHIt":["* Find more information about the prompt <0>here"],"b1cX7J":["* Must be compatible with /v1/chat/completions"],"JpDzEJ":["/ 1M input tokens"],"+2w2sP":["/ 1M input tokens "],"eUWcyZ":["/ 1M output tokens"],"sxg+VN":["→ Chat with AI on TypingMind.com"],"0YSH2s":["→ Get your API key from Open AI dashboard."],"t3MnOU":["→ Go to ",["hostname"]],"BdH0Jq":["→ How to get Search Engine ID and API Key"],"lugxJv":["→ I already have a License Key"],"vXqHoZ":["→ See FAQs for more information on device limits."],"59Pj54":["→ View Plan Comparison"],"7HsnfO":["<0>",["totalSelected"]," selected"],"q1Iujb":["<0>⚠️ Important: You already have this plugin. <1/> (ID: ",["0"],").<2/><3/>Do you want to replace the old plugin with this new one?"],"JDdS6f":["<0>10MB free storage: You have 10MB of free storage. Upgrades are available for more storage. If you exceed this limit, you can still use the app but you won\'t be able to sync new data."],"6wedmD":["<0>Automatic Backup/Sync: Your data is securely stored on TypingMind Cloud and automatically synced between devices."],"iUALO0":["<0>Chat history is not saved and other premium features will be limited in the free trial version."],"pKmr0j":["<0>Chat history is not saved and other premium features will be limited soon in the free trial version."],"Wk4fQl":["<0>Data lost risk: If you lose your device or your browser cache/storage/cookies is cleared, you will lose all your data. Make sure to backup your data regularly using our export feature."],"L5HMiK":["<0>Deleting your data from the cloud will also delete the corresponding local data.For example, if a chat is deleted from the cloud, it will be deleted from this device and any other devices with Cloud Sync enabled."],"oJ7rYu":["<0>Login with email: Easily login to your account on any device using your registered email address."],"reZ4Yn":["<0>Login with License Key: Use your license key to activate the app on a new device. If you lose your license key, recover it from your receipt email."],"Njp4Fr":["<0>Microphone access is needed for voice input."],"Gnota0":["<0>Note: Enter API Key is optional. You have access to some free models by default. Only enter your API Key if you wish to use your own API Key and pay the cost by yourself."],"7eL2G1":["<0>OAuth Notes: TypingMind is a static web app intended for single user uses, which means you will need to provide your own OAuth client and the authorization/authentication flows are all performed in the client side. We recommend using <1>Server Plugins for more convenience way to use OAuth 2.0 authentication in your plugin."],"TVbBhK":["<0>Please save this key in a safe place. You will need it when you use TypingMind on another device. You will also receive a receipt and a license key <1>in your email shortly."],"OXz+tI":["<0>Read OAuth for Plugins documents"],"ib3/yS":["<0>Stored on device: Your data is stored only on this device, no one else can see your data. If you need to use TypingMind on another device you need to export/import manually."],"G8VkJu":["<0>Unlimited storage: You can store as much data as your device can handle. There is no limit set by the app."],"G7dFid":["",["0","plural",{"one":["#"," chat"],"other":["#"," chats"]}]," with ",["messagesCount","plural",{"one":["#"," message"],"other":["#"," messages"]}]," on this device."],"U3RTaZ":["⚠️ ",["0"]," chat(s) are excluded from sync because they are too large."],"0reX65":["⚠️ ",["0"]," pending changes(s) are not synced yet. Click to sync."],"rk/03V":["✅ You have access to the compiled code of the app."],"0DCczY":["✅ You have permission to deploy and use the compiled code on your own server."],"csmgN6":["❌ You do not have permissions to modify or redistribute the compiled code."],"6hLl3l":["❌ You do not have permissions to share or resell the compiled code."],"uJfDIv":["\uD83C\uDF81 New feature: <0>Text-to-Speech"],"gMX609":["\uD83C\uDF89 Awesome. API Key and API Endpoint are working!"],"eDPfNj":["\uD83C\uDF89 Awesome. API Key is working!"],"Uautv5":["\uD83C\uDF89 It\'s done!"],"h3QnPS":["\uD83C\uDF89 Thank you for your purchase!"],"aTVsIr":["\uD83C\uDF99️ Voice Input"],"pM19tB":["\uD83D\uDC49 Click here to open your Email client with prefilled content"],"bGwrZ2":["\uD83D\uDC49 Don\'t see the receipt email? Click here."],"B1seby":["\uD83D\uDCD5 Read Developer Documentation"],"sC7DHb":["\uD83D\uDD12 ",["0"]," is not available for your current plan",["1"],". Please buy or upgrade your license key to unlock this feature"],"FuiWSF":["$",["0"]," billed every month"],"x4P/Iu":["1 GB of data storage"],"vTp/56":["1 million characters for KB"],"voMgY+":["1 month"],"3vtzIH":["1 week"],"GKWMv+":["10MB Free"],"dmfyiH":["14-day money-back guarantee. All plans are one-time payments. Upgrade between plans anytime. Price does not include the API cost"],"HCLj1r":["2 months"],"O2B4EJ":["2 weeks"],"VaA9mu":["24 hours"],"7ZrpGs":["3 days"],"x1VeBD":["3 months"],"B/1Qzd":["3 weeks"],"UtXEjp":["48 hours"],"vN4xSW":["5 GB of data storage"],"JC3aZ/":["5 million characters for KB"],"n6p4ka":["A better UI for ChatGPT, Claude, and Gemini"],"73O0MY":["A ChatGPT Plus Subscription is not needed."],"tOO5PC":["A ChatGPT Plus Subscription is NOT needed."],"hedKHR":["A custom model"],"i39oBj":["A JSON string that describes to the AI assistant what the function does and how to use it. Must strictly follow OpenAI\'s document about function call. See <0>Instructions & Examples here."],"LGyzFK":["A powerful frontend for LLMs"],"uyJsf6":["About"],"2lad0+":["About Me"],"n3bn7r":["About This Chat"],"ChasOQ":["Academic"],"LuXP9q":["Access"],"y24CQi":["Access all data"],"7M6lLY":["Access with tags"],"AeXO77":["Account"],"FMUJSP":["Account & Data"],"4WY4MD":["Account options"],"FQBaXG":["Activate"],"VzNizi":["Activate License"],"PGA9Wi":["Activate multi-model"],"JEv05s":["Activated"],"gj6qzs":["Activated Devices: ",["0"]],"F6pfE9":["Active"],"m16xKo":["Add"],"GU1Y4L":["Add Context"],"+7MTQz":["Add Conversation Starters"],"6clT5o":["Add Custom Body Params"],"iT8p0P":["Add Custom Headers"],"QafHeA":["Add custom model"],"d2W4ef":["Add Custom Model"],"JRnw1i":["Add Custom Voice"],"qtYf+J":["Add Limit"],"N9WKcZ":["Add New Prompt"],"B+nQnj":["Add Plugin"],"QGP6it":["Add Post-Processing"],"aoFVdB":["Add profile"],"GGnNgC":["Add Profile"],"OawP82":["Add prompt"],"VrxS4o":["Add Prompt"],"KVJGUP":["Add Request Body"],"Ghn0ZA":["Add Request Headers"],"IKoyMv":["Add Tags"],"WD6ttL":["Add Test Variables"],"YoxD8i":["Add your JS code here..."],"Yj2/Tk":["Add your JSON here..."],"hp8OtS":["Added"],"lXxAVN":["Added to your agents"],"tywOcg":["Added to your prompt library"],"cRj6CO":["Additional Purchase Available"],"U3pytU":["Admin"],"mGLgVd":["Advanced Model Parameters"],"NFIOKv":["Advanced Options"],"JiIKww":["Advanced Settings"],"fcYF58":["agent"],"jrFXIj":["Agent cloned successfully"],"ftfADk":["agents"],"8Uv5e6":["Agents"],"AP0pC3":["Agents are pre-built AI assistants for specific tasks."],"MnmJG1":["AI Agent"],"uHkL3b":["AI Agents"],"IwdUX/":["All costs are <0>estimated, please refer to your <1>OpenAI dashboard for the most accurate cost of your API key."],"NdMF3Q":["All Dynamic Context Endpoints must have a name and a URL"],"OZbbiL":["All feedback, suggestions, feature requests, and bug reports are welcomed!"],"24snR+":["All of your chat data is stored locally by default"],"9jrTB+":["All of your data is stored locally in your browser. Each browser has a different limit of how much data you can store. If you are running out of space, you can delete some of your old chats."],"98vSRA":["All Previous Messages"],"UBpkWM":["All users"],"u6njmO":["Allow access to all data in knowledge base"],"Wkdy65":["Already purchased?"],"86dQmw":["Always include \\"openid\\" if the provider supports it. Use white space to separate multiple scopes. For the best experience, please specify enough scopes to get the user\'s email, first name, last name, and profile picture."],"pcjU7W":["Always show interactive content from this plugin without asking."],"p1aRIt":["An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered."],"+Bu/ke":["Analytical"],"2s9w88":["Answer as concise as possible"],"Q973qV":["Answer in Blog format"],"vcFcLH":["Answer in Brochure format"],"FLWul7":["Answer in Case Study format"],"DukIlz":["Answer in eBook format"],"5LhHEt":["Answer in Email Campaign format"],"QdS+ah":["Answer in Essay format"],"uK5lNr":["Answer in FAQ format"],"jvU/at":["Answer in Infographic format"],"IBOZK1":["Answer in Interview format"],"ZtDtia":["Answer in Listicle format"],"I7V64k":["Answer in Memo format"],"CbfT1F":["Answer in News format"],"K+YMKx":["Answer in Newsletter format"],"0NE/hu":["Answer in Opinion format"],"iaWE1y":["Answer in painstakingly detail"],"lHgh9B":["Answer in Podcast Script format"],"iAYeUy":["Answer in Poem format"],"2BJ8/W":["Answer in Policy Document format"],"5+tfGx":["Answer in Presentation format"],"kWCukR":["Answer in Press Release format"],"NVybHC":["Answer in Product Description format"],"jnWaqI":["Answer in Profile format"],"tko26I":["Answer in Proposal format"],"M3LgmF":["Answer in Q&A format"],"4NCF/2":["Answer in Report format"],"O91zzn":["Answer in Research Paper format"],"VYCzS4":["Answer in Review format"],"sh/MHB":["Answer in Script format"],"x1WQ8C":["Answer in Social Media Post format"],"3Bd6y5":["Answer in Speech format"],"aRLf6W":["Answer in Summary format"],"BgxwOT":["Answer in Table format"],"6IjH1R":["Answer in Technical Documentation format"],"pd07qc":["Answer in Tutorial format"],"KQ5YyF":["Answer in User Guide format"],"FAYtw/":["Answer in Webinar format"],"9Mjf1u":["Answer in Whitepaper format"],"mo4Tok":["Answered using your connected account data via ",["0"]," <0/>"],"OpAwo5":["Anthropic API Key"],"8xI/bl":["Anthropic Chat Completions Endpoint (V1)"],"zMV8th":["Anywhere! You can deploy it on your own server, or on a static web cloud service like GitHub Pages, Cloudflare Pages, AWS S3, Vercel, Netlify, Heroku, etc. You can even run it on localhost."],"VyvMqP":["API Endpoint"],"CcJuiO":["API Key Authentication"],"1xrXA1":["API Key not working? Click Here."],"FfSJ1Y":["API Keys"],"5ghbeJ":["API Keys & License Key"],"HXdJo7":["API keys are locked"],"SHvKkv":["API Missing"],"KHn76P":["API Type"],"dPIVSq":["App Data"],"2BpVx/":["App Data & Storage"],"aAIQg2":["Appearance"],"DB8zMK":["Apply"],"AL93NF":["Apply for all future chats"],"5zTU9p":["Apply for current chat"],"vdM0PU":["Approved Languages"],"B495Gs":["Archive"],"WAOQ5J":["Archive chats older than"],"+Lpf4M":["Archived Chats"],"/ns5IT":["Are you sure you want to cancel this subscription?"],"aS8e0y":["Are you sure you want to clear all your storage? This will delete all cloud data and the corresponding local data as well. To prevent data loss, consider using Manual Backup to export your data into a file."],"G7hiVV":["Are you sure you want to delete <0>",["0"]," <1/>and its chats?"],"KaKLHJ":["Are you sure you want to delete this agent? This is not undoable."],"Pf89wO":["Are you sure you want to delete this chat? This is not undoable."],"1vhl90":["Are you sure you want to delete this plugin? This is not undoable."],"JeWEj+":["Argumentative"],"Jd1Cdw":["As of now, you cannot customize anything. You the self-host version will be exactly the same as the one you are using on TypingMind.com. If you are looking for a more flexible and customizable way to use TypingMind, check out https://custom.typingmind.com"],"CbOT+9":["Ask AI for domain name suggestions, then check the domain availability with 1 click."],"BrM1bb":["Ask the AI assistant to generate a title based on the first message when starting a new chat. This will consume more tokens used in the first message. (All subsequent message tokens will not be affected)."],"LqNfc3":["Ask the AI assistant to suggest relevant keywords if the answer is more than 500 characters long. This will consume more of your token."],"0CRwo2":["Assign a specific model to this AI agent"],"Yokrq5":["Assign custom model parameters for this AI agent"],"vVQGtO":["Assigned AI agent:"],"hICOwR":["Assigned Text-to-Speech API:"],"4rpXj6":["Assistant response"],"fyOcj3":["Assistant Response:"],"tqcmtP":["Assistant:"],"pIrPsA":["At the moment, inactive devices will be revoked automatically after a short time, you don\'t need anything. In the future versions, you can access the License Manager from the app and manage your devices there."],"2/fy8w":["Attached files"],"UY1vmE":["Attachment"],"JGrfzE":["Audio Input"],"1H+Sc2":["Audio input with OpenAI Whisper requires an OpenAI API Key. Please enter an OpenAI API Key to the app and try again."],"zwUb8b":["Authenticate Now"],"2FwEm8":["Authenticating..."],"P8fBlG":["Authentication"],"htuqBH":["Authentication failed"],"EswTGJ":["Authentication successful"],"M9+N8T":["Authoritative"],"WyzrCD":["Authorization URL"],"R9Khdg":["Auto"],"Tppod2":["Auto archive old chats"],"+ZWSxY":["Auto delete archived chats"],"xBo+m8":["Auto fill"],"2Pa8mz":["Auto generate title for new chats"],"rXlXlr":["Auto play assistant messages"],"bE4siw":["Auto send the message after speaking"],"4ryaAZ":["Auto start recording when open"],"ZK5+g/":["Auto suggest relevant keywords after each message"],"j+fvUf":["Auto-Translated Languages"],"UrPLkb":["Automatic audio playback was prevented by the browser. Tap the play button to start playing audio."],"4iqlgG":["Automatically archive chats that are older than a specific period. Exceptions: Favorited chats, chats in folders, or chats with tags will not be archived automatically."],"OSt5XJ":["Automatically delete archived chats after they have been archived for a specific period."],"NL1iX0":["Automatically resume your most recent chat when you reopen the app."],"4/IEEY":["Available Integrations"],"TJCWpw":["Available variables"],"f0rbKh":["Awesome! You can start chatting now!"],"qKMhwa":["Azure API Key for Whisper"],"hksWkB":["Azure OpenAI"],"pVQ52w":["Azure Whisper"],"DPli6Z":["Azure Whisper API Endpoint"],"J58HQL":["Azure Whisper API key"],"FP3F7G":["Azure Whisper Prompt:"],"iH8pgl":["Back"],"qn5Xo4":["Back to active chats"],"UFE2sL":["Back to Options"],"tgg7/2":["Back to profiles"],"/5m0MA":["Back Up Now"],"Ir9ltJ":["Back Up Your Large Chats"],"2UeFj9":["Backup & sync data across devices"],"+f5Tkb":["Bad"],"kJygHz":["Balanced"],"MjtRXA":["Base model"],"YBt9YP":["Beta"],"astDB+":["Blog"],"z2gcLy":["Brochure"],"kxIENU":["Browse agents"],"YYt3fR":["Browse prompts"],"ZtCLxJ":["Browser (Web Speech API)"],"NKHjNY":["Browser TTS"],"YnnY54":["Bulk Action"],"s68EDj":["Bulk Action "],"b5OfjQ":["Bulk License"],"s1c0ja":["Bullet List"],"BtdOqF":["Buy ",["0"]],"ldcOo7":["Buy / Upgrade License"],"kVsn23":["Buy a license"],"lAkf2Q":["Buy Another"],"YX7STt":["Buy More Seats"],"bKEbYm":["Buy now"],"m2pyX2":["Buy Now"],"dMT0t2":["Buy now to get it included for free!"],"o5ASB8":["Buy once, use forever!"],"HPC6Gz":["Buy or Upgrade Here"],"nn8KcR":["By default, the AI agent\'s instruction will be appended to the app\'s default system instruction (set in the model settings popup). Check this box if you want to skip the previous system instruction for this AI agent."],"DkI3Vf":["By default, the AI agent\'s instruction will be appended to the global default system instruction (set in Training Data → Global System Instruction). Check this box if you want to skip the Global System Instruction for this AI agent."],"/WLkpC":["By default, the app will select an optimized model for title generation. You can override this setting here."],"tQht86":["By default, the plugin\'s output will be given to the AI and then the AI will decide how to respond to the user. You can change this behavior by selecting another output option below."],"YjZITy":["By default, your API Key is stored locally on your browser and never sent anywhere else."],"sNAHE5":["By signing up, you agree to our <0>Privacy Policy and <1>Terms of Service."],"KiUAH8":["Cache Expire Time"],"uL2j1y":["Cache Refresh Policy"],"V+yWeE":["Caching is supported but not yet activated for this chat. Some models requires a minimum number of tokens to be used before caching is activated."],"vTVaGb":["Can I embed my License Key/API key to the self-host version somehow and let my team/community/customers use it?"],"aVZ9yc":["Can I get a refund?"],"8o1RNk":["Can I have support on technical issues if I self-host?"],"hcGgve":["Can I let me team/community/customers use the self-host version?"],"ecAC9I":["Can I receive new updates after I buy a license key?"],"Go/vEu":["Can I self-host it?"],"rldNey":["Can I self-host TypingMind?"],"Qf9Ee9":["Can I use GPT-4 in TypingMind?"],"dEgA5A":["Cancel"],"ifkrYE":["Cancel changes"],"vv7kpg":["Cancelled"],"g6Qo8V":["Case Study"],"vweTgW":["Categories (Optional)"],"07FUrc":["change"],"o+XJ9D":["Change"],"h3vADk":["Change API Key"],"SDhZUV":["Change Character"],"pZdBDE":["Change Chat Parameters"],"rZf6Qw":["Change Key"],"CWe7wB":["Changelog"],"P+2e0U":["Changes are saved only for the current chat"],"87RRXI":["characters"],"wQoVcC":["Characters"],"AHZflp":["Chat"],"S641YT":["Chat Content Width"],"TFf1iY":["Chat experience"],"gBGQT7":["Chat Info"],"wx4YAt":["Chat minimap"],"tQ4OxD":["Chat Not Found"],"Qy8/Ab":["Chat now"],"lO1Uso":["Chat Profiles"],"2B2riu":["Chat profiles help the AI understand more about you. You can create multiple profiles for different scenarios (Personal, Work, etc.)."],"t+yDOf":["Chat settings"],"weYGUX":["Chat with AI using your API keys. Pay only for what you use. GPT-4, Gemini, Claude, and other LLMs supported. The best chat LLM frontend UI for all AI models."],"N+il+Q":["Chat with built-in AI agents on various topics."],"5j4DOc":["chats"],"8Q+lLG":["Chats"],"q9j23+":["Check API Key"],"1gDRRp":["Check Domain"],"hlKjs/":["Check Key"],"vTNv5F":["Check your OAuth provider\'s document for the authorization URL. It is usually something like https://example.com/oauth/authorize."],"GSIi/s":["Check your OAuth provider\'s document for the token URL. It is usually something like https://example.com/oauth/token."],"4fbZwm":["Choose how the plugin will be run."],"KrokRF":["Choose how your data is stored"],"LkEYm3":["Civic integrity"],"SqIaK+":["Clarity + Similarity Enhancement:"],"yYxB17":["Clear all"],"zljzWo":["Clear All Storage"],"Sje86b":["Clear all tags"],"z/5ptt":["Clear API Key and Password"],"B3nz9K":["Clear context"],"Blz3jW":["Clear Context"],"UK3fsk":["Clear Selections (",["0"],")"],"GdhD7H":["Click again to confirm"],"qk7MVx":["Click here to help with translation"],"lcFzRd":["Click here to unlink old devices"],"h3L8+6":["Click Record to start recording audio. Text transcription will be provided by Azure\'s Whisper API."],"NpzMnQ":["Click Record to start recording audio. Text transcription will be provided by Groq\'s Whisper API."],"mWkeNy":["Click Record to start recording audio. Text transcription will be provided by OpenAI\'s Whisper API."],"zOYG6Z":["Click the button above to start a new chat"],"oyye2v":["Click the button below to copy the exported data, then save it to a .json file."],"cktsCs":["Click to calculate size"],"BTpdhg":["Click to confirm"],"8J70rq":["Click to deselect the profile"],"cwMTjO":["Click to edit"],"fZoONK":["Click to explore all features available"],"K3F3RN":["Click to scroll left"],"QoDvq2":["Click to scroll right"],"7Zfhs6":["Clinical"],"9UQ730":["Clone"],"yz7wBu":["Close"],"62Ciis":["Close sidebar"],"gmid3w":["Close the onboarding checklist"],"aRI3Om":["Close Window"],"vrtcD8":["Cloud Data"],"s4xjn0":["Cloud Storage"],"Bp/aCq":["Cloud Sync"],"UbVRmW":["Cloud Sync & Backup"],"RK1xy9":["Cloud Sync Mode"],"EWPtMO":["Code"],"sVBJ9u":["Code implementation is required."],"sfhXn4":["Code Implementation:"],"wQ+9wh":["Code to embed chat widget with this specific AI agent"],"3Nxy1n":["CodePen"],"56QffO":["Cold"],"H86f9p":["Collapse"],"wKlyxL":["Color Highlight"],"AUYALh":["Coming soon"],"q93mA4":["Community Prompts"],"9S4Fiy":["Compact"],"qqWcBV":["Completed"],"AzFAXz":["Concise"],"zNPkaU":["Confident"],"7VpPHA":["Confirm"],"WADQsp":["Confirm changes"],"qgyLhK":["Connect data sources to create a knowledge base for your AI agents"],"twilsj":["Connected via <0>",["0"],""],"SQhG9a":["Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response."],"jfC/xh":["Contact"],"ArkuA2":["Content is blocked based on the probability that it is harmful."],"TlBnce":["Content must be a valid JSON object"],"f9cDxV":["Content Type"],"wmnTZp":["Context Length"],"HQF+Mf":["Context Length Limit"],"OI8spO":["Context length limit reached"],"Od+YcO":["Context length: ",["0"]," tokens"],"w7l4QY":["Context Limit:"],"tbb3wK":["Context Name"],"rLpb3A":["Context Source"],"xGVfLh":["Continue"],"TSjITo":["Continue without Backup & Sync"],"fUFexU":["Continuously Updated"],"sogJwa":["Conversation starters"],"hzExWo":["Conversational"],"PiH3UR":["Copied!"],"he3ygx":["Copy"],"NmPNJJ":["Copy code"],"EXTouI":["Copy Content"],"CI0KMI":["Copy export data to clipboard (JSON)"],"XH5xdq":["Copy Formatted Text"],"TZ5uLO":["Copy Last Message"],"p3ndmE":["Copy Markdown"],"8MKAc9":["Cost are estimated and will not be 100% accurate. Please refer to the billing section of your AI provider dashboard for the actual cost."],"jefIoa":["Cost associated with a chat includes the token cost for the chat messages AND all of the <0>enhanced features used for that chat."],"bW1s55":["Cost estimation will be less accurate when stream response is enabled."],"jM5g6I":["Could not connect to Anthropic API from your browser. This could be a network issue or adblock. Please try again or contact support. Open Developer Console to see more details."],"2qQ0j+":["Could not connect to Anthropic API. Please try again later. Error code: "],"atnPxc":["Could not connect to Anthropic API. Please try again later. Error details:"],"y45CeX":["Could not connect to Azure from your browser. This could be a network issue or adblock. Please try again or contact support. Open Developer Console to see more details."],"JkaJIP":["Could not connect to ElevenLabs from your browser. This could be a network issue or adblock. Please try again or contact support. Open Developer Console to see more details."],"qoF6OQ":["Could not connect to Google Gemini API from your browser. This could be a network issue or adblock. Please try again or contact support. Open Developer Console to see more details."],"xpKJNv":["Could not connect to Google Gemini API. Please try again later. Error code: "],"k2RCoK":["Could not connect to Google Gemini API. Please try again later. Error message: "],"BnmFhT":["Could not connect to Groq from your browser. This could be a network issue or adblock. Please try again or contact support. Open Developer Console to see more details."],"0O2epA":["Could not connect to License Server. Please try again later."],"rPok8F":["Could not connect to OpenAI API from your browser. This could be a network issue or adblock. Please try again or contact support. Open Developer Console to see more details."],"idNPJa":["Could not connect to OpenAI API. Please try again later. This could be because OpenAI\'s server is experiencing high demand and rejected your request. Go to https://status.openai.com/ to check their status. Error code: "],"1DAtaq":["Create AI agent"],"k2RpBx":["Create dynamic context with variables or retrieve from an API and inject into the system prompt. This can be used to add live information to the AI or implement Retrieval-Augmented Generation (RAG) from your own data sources (e.g., vector store database)."],"Z3mBOA":["Create new category"],"1uMDHY":["Create new Project/Folder"],"uFQF6u":["Create new tag:"],"75P1u8":["Create plugin"],"0xD/Jm":["Creative"],"J5nbej":["Critical"],"HpGMZX":["Current Context Length:"],"8Tg/JR":["Custom"],"pC7150":["Custom Body Params"],"GnfGTT":["Custom Headers"],"vE8qON":["Custom Instruction"],"Xc27gb":["Custom Model Guides"],"nIAU/3":["Custom Model Parameters"],"4OzRwX":["Custom Models"],"Bav+e0":["Custom Models:"],"C/OtZE":["Custom parameters are added to the request body of the API call. This setting may overrides some of the above settings if the parameter name matches. Please make sure that the model you are using supports the parameters you are adding."],"/xJLUo":["Custom Voices:"],"6eagIY":["Cynical"],"+xHY/f":["Dangerous"],"pvnfJD":["Dark"],"Mb1IHF":["Deal ends in <0>",["timeLeftString"],"."],"Iy+/7K":["Deal ends soon."],"ovBPCi":["Default"],"23umQ0":["DEFAULT"],"OtTlfU":["Default model"],"J6v1s/":["Default Model"],"ztm4oE":["Default Model:"],"nH6IjX":["Defined system messages"],"cnGeoo":["Delete"],"KZN4Lc":["Delete All"],"DmiLNr":["Delete all data on this device"],"mP/ptm":["Delete All Local Data"],"pKnsVf":["Delete Chat"],"lcqFCW":["Delete everything"],"Q6Z4Kc":["Delete Folder & Chats"],"1oxiwc":["Delete Folder, Keep Chats"],"9dEV2s":["Delete Project/Folder"],"LtSIKU":["Delete This Agent"],"Wsu4Xu":["Delete This Chat"],"J4It23":["Delete This Plugin"],"go7MC4":["Delete?"],"uNTuV6":["Deleted successfully!"],"SCsFmd":["Demo Instance"],"C3l213":["Depends on the license key you buy. The Premium License Key is valid forever and includes all updates forever."],"i5udnt":["Describe to the users what your plugin does and how to use it with examples."],"w3qvqD":["Describe what the AI agent does for the user. This is for the user\'s information only and will NOT be included in the agent\'s system instruction."],"CfuxA4":["Describe what the prompt does for the user."],"Nu4oKW":["Description"],"jQFhbL":["Description (optional):"],"Dvc8Qg":["Description:"],"42aQMm":["Descriptive"],"cO9+2L":["Disable"],"mQepIa":["Disable thinking mode"],"E/QGRL":["Disabled"],"bzSI52":["Discard"],"9C6X7Q":["Discard Changes"],"+K0AvT":["Disconnect"],"NnjDLd":["Do I have access to the full source code if I want to self-host?"],"OfaLQ8":["Do I need to have ChatGPT Plus ($20/month) to use TypingMind.com?"],"75mwHY":["Do I need to pay for ChatGPT Plus ($20/month) to use TypingMind.com?"],"OK9+n5":["Do I need to pay for OpenAI for a ChatGPT API Key?"],"xkeWcN":["Do I still need a License Key and Open API Key to use the self-hosted version?"],"HdQ8cc":["Do not show this message again for 30 days (you can enable Backup & Sync in settings later)."],"trpZLK":["Do you want to change the new character for this conversation?"],"TbjyhA":["Docs"],"wVeekH":["Document Attached"],"eCtitK":["Does Web Search require GPT-4? Can I use it with GPT-3.5?"],"bmPNEK":["Domain Check"],"gvy3rp":["Don\'t have one? <0>→ Buy A License Key"],"4+9ATe":["Don\'t see the email? Check your spam folder. If you have problem receiving emails from our system, try using our <0>Alternative Login."],"DPfwMq":["Done"],"7NkkFS":["Download .html"],"egdeNe":["Download .json"],"zQtsZm":["Download .md"],"n4vt3Q":["Download app"],"WEx60O":["Download as a JSON file"],"XJyskP":["Download as JSON file that can be used for <0>fine-tuning"],"IFNYKF":["Download File"],"Lp1xU1":["Download Markdown"],"uOcnoU":["Download your recording"],"eneWvv":["Draft"],"Av1IfJ":["Due to our team\'s limited capacity, we will no longer provide updates to this Mac app. We recommend you to switch to the new PWA desktop app for the best experience."],"euc6Ns":["Duplicate"],"vEGzwu":["Duplicate function name: ",["parsedPluginID"],". The function name in your OpenAI Function Spec has already exists among your installed plugins. Please choose a new one."],"IiVeMr":["Duration Before Deleting Archived Chats"],"tonI3H":["Dynamic context"],"pEwOrQ":["Dynamic context applied (",["0"],")"],"XBquZG":["E.g., A life coach who can help you set and achieve personal and professional goals."],"xVkdoR":["E.g., A list of domain names based on topics"],"Yo1JjQ":["e.g., John"],"RZceWA":["E.g., Provide a title in Spanish."],"ktuiaA":["E.g., Use ReactJS/TailwindCSS for all code output."],"mLbNlk":["E.g., You are a life coach, you help the user identify and achieve their goals, motivate them, and provide support and encouragement."],"OvyFOO":["Each item of \\"bodyRows\\" must include all required keys!"],"ZHX2Nv":["Each item of \\"headerRows\\" must include all required keys!"],"lZ6/UT":["Each license key can be used on 5 devices which is typically enough for 1 user. If you need to use it on for more devices, you can buy a new license keys or add more devices to your existing license key. \\"Device\\" is counted based on the number of places where the license key is entered and the chat history is saved for continuous use. For example, if you use the app on Chrome browser on your laptop and also on your phone, that will be 2 devices. Note that the license key and chat history is saved locally per browser, so if you use the app on Chrome and also on Firefox, you will need to enter the license key 2 times, have 2 separate chat histories, and that counts as 2 devices. If you need to use the license key on a new device but have reached the device limit, you can unlink the previous devices first using the License Manager (this is done online, access to the previous devices not needed). This device limit is put in place to avoid license key abuse and pirate."],"HPqWYc":["Easily review color codes in the AI response."],"+WvWWW":["eBook"],"ePK91l":["Edit"],"js7mpQ":["Edit in canvas"],"mil1pI":["Edit in Canvas"],"iTaifX":["Edit in Canvas is not supported"],"Dx6IaP":["Edit Info"],"SEDPsr":["Edit is not supported"],"QjH+ZX":["Edit message"],"QJQd1J":["Edit Profile"],"lnDMfR":["Edit Project/Folder Name"],"VuGlNF":["Edit Raw"],"alTZor":["Edit the message without regenerating the rest of the conversation."],"MMcsI2":["Edit this message"],"8V61zL":["Edit Title"],"GKJsTg":["Edited at"],"O50UfC":["Editing in Canvas"],"9r6uEg":["ElevenLabs (Beta)"],"gJaAE1":["ElevenLabs API Key"],"u2ugP9":["ElevenLabs requires an ElevenLabs API Key. Please enter an ElevenLabs API Key to the app and try again."],"o2is/9":["ElevenLabs TTS"],"0GJN1u":["ELI5"],"poDAye":["Email Campaign"],"xCCCRp":["Emotional"],"rzMql/":["Empathetic"],"N2S1rs":["Empty"],"lUveJD":["Empty folder"],"FZtBeR":["Enable ",["0"]],"7PDSeD":["Enable Cache"],"CsVLg/":["Enable if the model supports image input (compatible with OpenAI API)."],"oOoBur":["Enable if the model supports image input."],"jdrKSV":["Enable if the model supports streaming output (\\"stream\\": true)."],"dq6am6":["Enable if the model supports the \\"functions\\" or \\"tool_calls\\" parameter."],"uOYIwm":["Enable if the model supports the \\"functions\\" parameter."],"gLOEtC":["Enable if the model supports the \\"system\\" role."],"Nxc1QA":["Enable Plugins"],"9B5tBr":["Enable thinking mode"],"CYhTmg":["Enable TypingMind Cloud"],"7l5TV+":["Enable Web Search"],"6NbliF":["Encrypt API key with password"],"oGPAOk":["End of Chat"],"FCKppt":["Endpoint"],"kGCe95":["Endpoint saved! TypingMind will restart now."],"sCG3Yu":["Endpoint Test Failed:"],"Wagt7O":["Endpoint Test Success:"],"T3juzf":["Endpoint URL"],"ZP7Y2s":["Enhance your chat experience x10 with our integrations."],"5trAhQ":["Enter <0>License Key to unlock all premium features."],"lNYNhx":["Enter a valid JSON object:"],"sbk2AF":["Enter any information you want the AI assistant to remember about you here:"],"YnCPVD":["Enter API Key"],"Eki/+i":["Enter API key to chat"],"17SKb6":["Enter categories or create new one"],"rcyeIO":["Enter extension URL"],"IRwH+C":["Enter License Key"],"ENWqZw":["Enter new tag"],"hITuUq":["Enter Open Router API Key"],"f7sXvi":["Enter password"],"JxXP1G":["Enter Password"],"yAReJj":["Enter Password:"],"DLjqVh":["Enter the AI agent\'s profile picture URL"],"B9mcRt":["Enter the code here:"],"hOnuPw":["Enter to send"],"99MXlb":["Enter Your Anthropic API Key"],"1Wa47i":["Enter your details so that your team can recognize you."],"C3nD/1":["Enter your email"],"vUqMKV":["Enter your email:"],"4s7UWR":["Enter Your Gemini API Key"],"j/jUA8":["Enter your license key here"],"krqIN6":["Enter your license key here:"],"CVVC+5":["Enter your message..."],"/8zMx3":["Enter Your OpenAI API Key:"],"9oAIYm":["Enter your prompt"],"ZMHXQC":["Enter your prompt here..."],"npLws9":["Epigrammatic"],"QhCUtA":["Epistolary"],"uh+FNs":["Essay"],"zh1htt":["estimated"],"xEbu5z":["Estimated Cost:"],"sDp3Xz":["Estimated Size (for sync):"],"0/N6LP":["Every chat within the project will have access to the system instructions and documents assigned below."],"y8MW1k":["Example text..."],"6q8gY6":["Except users from specific groups"],"1A3EXy":["Expand"],"TqoOrQ":["Explain like I\'m five"],"22oG2a":["Explore All Features"],"Gx2RJ7":["Explore more on the topic on Google with 1 click"],"E5STpk":["Explore TypingMind Custom"],"GS+Mus":["Export"],"7ONgDR":["Export Data From OpenAI"],"iTDzyV":["Export Selections"],"MHwMyE":["Expository"],"JToDwi":["Expression:"],"0/BbGM":["Extends the capabilities of the AI with custom functions and workflows."],"COlIpI":["Extensions"],"K8lalb":["Extensions allow you to load custom JavaScript into the application. This can be useful for adding custom functionality or integrating with other services."],"ZbQrfp":["Extensions changed. Please restart the application to apply changes."],"tIa0nY":["Extra Extra Large"],"vp6Yr4":["Extra Large"],"VfpfOY":["Extreme Detail"],"bUwdFY":["Failed to copy formatted text"],"Lgnubj":["Failed to copy markdown"],"tea9y8":["Failed to import because the file is corrupted"],"0aIV5B":["Failed to load extension: ",["url"]],"lKwla6":["Failed to render this response. Please contact support."],"DIdVXY":["Failed to rewrite content. Please try again."],"vVFBZQ":["Fair use bandwidth included. Upgrade or cancel anytime. By making a purchase, you agree with our <0><1>Privacy Policy and <2><3>Terms of Service."],"/lDBHm":["FAQ"],"aJ4pMe":["FAQs"],"TgtE45":["FAQs about API Key"],"qmIOJX":["Faster"],"6Ki4Pv":["Favorite"],"Uh3UT+":["Favorite Chat"],"KK6EVF":["Fetching dynamic context... (",["0"],")"],"ZFQJCK":["Few-shot prompting"],"o/o9PY":["Few-shot prompting is a technique to help the AI agent learn how to respond to users in a specific way by providing demonstrations in the prompt to steer the model toward better performance. The prompts will be automatically inserted at the beginning of every conversation, right after the system instructions (but not included in the system instruction). This is useful when you want the AI to always respond in a very specific format."],"099VRC":["field 1"],"wWlkWH":["field 2"],"J2eKUI":["File"],"Om34YK":["File upload is not allowed"],"sER+bs":["Files"],"1Il5lG":["fill"],"oaz59c":["Filter by tags"],"ym/yoX":["Filter by Tags"],"JmZ/+d":["Finish"],"kODvZJ":["First Name"],"W7PWNd":["Flows"],"5TAuaz":["folders"],"HSh8u/":["Folders"],"cGeFup":["Font Size"],"EsZXjW":["For Bedrock Claude models, you must include \\"awsAccessKey\\", \\"awsSecretKey\\", \\"awsRegion\\" properties in the \\"headerRows\\"!"],"VYIIuD":["For quick development and testing of a new plugin. You can also import a plugin from GitHub and modify it before saving it to use. For additional information on the plugin data format and instructions for sharing via GitHub, please refer to <0>this guide."],"WsEnIq":["Force show login page"],"JRJf8U":["Fork Chat"],"uNHU5d":["Fork chat from here"],"BbNHZY":["Formal"],"1KhOvx":["Formatted text copied to clipboard"],"2POOFK":["Free"],"p1i5jO":["Frequency Penalty: ",["0"]],"a3pVqb":["Frequently asked questions"],"Gq7H1m":["Friendly"],"OwIqiD":["Full screen"],"gGUb6a":["Function name: ",["0"]," is not defined in your code. Please check your code."],"Weq9zb":["General"],"a+arkZ":["General information"],"mmKj/t":["Get A Lifetime License"],"KLCCSP":["Get API key here"],"fTUxkY":["Get Bulk License 10 users"],"zCNvh1":["Get session link here"],"47jGM/":["Get sound notifications for AI responses when you are inactive."],"ZDIydz":["Get started"],"adLo0Q":["Get the client ID from your OAuth provider."],"oKCuHn":["Get the client secret from your OAuth provider."],"c/xVhj":["Get the latest self-host update at https://github.com/TypingMind/typingmind"],"0uv2li":["Get your API key from Anthropic dashboard."],"SitPcJ":["Get your API key from Google AI Studio dashboard."],"Dedbjs":["Give plugin output to the AI"],"ItbKtc":["Go to Agents page"],"DzE6FV":["go to chat"],"gHSuV/":["Go to home page"],"OEEQKT":["Good"],"b9KmAj":["Google Gemini API Key"],"76gPWk":["Got it"],"FPsvA8":["Got it!"],"vvDw4G":["Got Questions?"],"0u7U4p":["GPT-3.5 allows maximum of <0>4,096 tokens per chat. GPT-4 allows maximum of <1>8,192 tokens per chat in the 8K model and <2>32,768 tokens in the 32K model. OpenAI may increase the context length limit in the future."],"Ooe1lZ":["Great job! You are now all set!"],"s6va97":["Groq API Key"],"h3988l":["Groq API Key for Whisper"],"gN49jX":["Groq Whisper"],"YlQFre":["Groq Whisper Prompt:"],"O1wAlQ":["Guest"],"R+05T4":["Guides:"],"EyQMHI":["Harassment"],"LoVB/U":["Hate speech"],"F6Go3M":["Header Key"],"BCL8Ot":["Header Value"],"lXKZGw":["Heading 1"],"El7NbA":["Heading 2"],"SFN6dN":["Heading 3"],"C9r+t2":["Hello, I\'m a life coach. How can I help you today?"],"u3pv+W":["Hello, this is the test audio for the AI assistant."],"UyvU3+":["Help & Info"],"kYLxGT":["Help & Information"],"GNJ1kd":["Help & Support"],"Hb1otQ":["Help you organize your AI agents. You can assign an AI agent to multiple categories."],"WW8EoW":["Here is your <0>License Key:"],"LFGDRf":["Here is your <0>License Key. <1>Please save this key in a safe place."],"RFEi9f":["Here is your chat transcript"],"/hc/Aq":["Here is your messages in JSON:"],"zTGSja":["Here is your plugin in JSON:"],"A+GCyx":["Hide Advanced"],"9aHqty":["Hide Advanced Options"],"2PtsU5":["Hide raw"],"ZUIr2+":["Hide this notification from the main page forever"],"yx/fMc":["High"],"1RkbIp":["High enhancement boosts overall voice clarity and target speaker similarity. Very high values can cause artifacts, so adjusting this setting to find the optimal value is encouraged."],"bgYTxy":["Higher"],"ScdGLq":["Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic."],"ZESzZf":["Hmm... it seems like your chats are corrupted. "],"cOkgyb":["How can I sync my chat conversations across devices?"],"oRr/Bj":["How do I manage the devices that linked to my license key?"],"E+1jcv":["How do I receive updates for the self-host version?"],"rq/EWc":["How do I remove a device from my license? How to access the License Manager?"],"D0hPsf":["How do you want to share this chat?"],"2/52pb":["How do you want to share this plugin?"],"ojrs7f":["How does this app work?"],"zSztZj":["How does TypingMind execute the search?"],"JNKgQJ":["How is the API key handled?"],"aPd0KC":["How is the cost calculated?"],"8AULTO":["How it works"],"/tZEjV":["How it works?"],"OT18hB":["How many chats can I have?"],"ZX9OXO":["How many devices/users can I use the License Key on?"],"ucv4V3":["How much more tokens are used if I enable Web Search?"],"lIWqIu":["How much to penalize new tokens based on their existing frequency in the text so far. Decreases the model\'s likelihood to repeat the same line verbatim."],"ED63fq":["How much to penalize new tokens based on whether they appear in the text so far. Increases the model\'s likelihood to talk about new topics."],"QTYFtz":["How to enable Knowledge Base"],"IHD/ra":["How to export data from OpenAI?"],"PI4HzG":["How to get one?"],"OrpZKj":["How to use Azure OpenAI API"],"1fTVrT":["How to use local models (Vicuna, Alpaca, LLaMa, GPT4All, Dolly, etc.)"],"+u1nrq":["How to use Open Router models"],"TfARvM":["How to use the Team License (Bulk License) Key? How to add new users?"],"QP1jA8":["How to use with AI Agents "],"fN/3SW":["How tokens work?"],"4PbDoL":["How Web Search plugin works?"],"2N4F+A":["How Web Search works?"],"N3Bw7K":["How\'s TypingMind working for you?"],"94nlq2":["HTML Webpage"],"qvRppp":["HTTP Action"],"bHXYoC":["HTTP Method"],"vXtlks":["https://"],"0X8rUE":["https://..."],"4Nl9R0":["Humorous"],"YFlz6q":["I have ChatGPT Plus, will it cost me more to use ChatGPT API via TypingMind?"],"TPNfdq":["I have purchased but forget my license key, how can I get it back?"],"ow9Olb":["I understand my chat will be made public"],"24Fs8p":["I understand that all of my data (chat messages, agents, prompts, etc.) will be lost if my browser cache or site data is cleared."],"rNQi7X":["I understand that my chat history will be lost if my browser cache or site data is cleared."],"OcU847":["I\'ll activate later"],"aMPH6M":["I\'ll do it later",["0"]],"bd1Kuw":["Icon URL"],"/hz2xp":["Icon URL (optional)"],"Ffcffi":["If \'FormData\' is selected, the request body JSON will be converted to FormData."],"XYFDKq":["If selected, new chats within this project will start with the selected AI agent. You can still change the AI agent for each individual chat if needed. Note: if the AI agent already has an assigned model, it will override the starting model setting."],"xZ40r1":["If this problem persists, please contact support."],"vmyQ2D":["If you <0>have been charged but still don\'t see the receipt email, please send your <1>Transaction ID or your bank transaction detail to <2>hello@lemonsqueezy.com and CC <3>support@typingmind.com . We will check this for you ASAP."],"sJ6OIn":["If you already have an account, this will log you in."],"mYZR41":["If you are using a custom model, make sure to set a correct Context Length and set the \\"max_tokens\\" body parameter to the recommended value by the provider. Contact your model provider for more information."],"iK/LRS":["If you forgot or want to change your password, click \\"Change Key\\" and enter the API key again."],"+hdF/5":["If you forgot your password, you can clear your API Key and password, then enter your API Key again."],"PmlOY8":["If you have an account with this email, you will receive an email with a code."],"xDic64":["If you have previously activated this license key on other devices, you must unlink those devices before continue."],"bCDMZI":["If you reached the context length limit, you can delete some old messages to continue the chat, or start a new chat."],"q+OiwQ":["If you think this is a mistake, please contact support."],"1w2Cpf":["If you want to preserve this conversation, you can start a new chat from this point."],"N1FnFw":["If your chat contains an <0>uploaded document or a custom <1>AI agent, those will also become publicly available."],"PVi43z":["Ignore the synced data from the cloud and create a new copy of the data from the file. This may create duplicate chats on your current device."],"N4OVNn":["Implementation"],"l3s5ri":["Import"],"D8LFE+":["Import ",["0"]," model(s)"],"EILfvI":["Import & Clone"],"2iY5s/":["Import & Replace"],"m5Z2VD":["Import a plugin via URL:"],"FhMhTR":["Import Data"],"Owtkdq":["Import from JSON"],"+wwQdk":["Import From OpenAI"],"mggkmp":["Import plugin"],"T/YuOx":["Import Plugin"],"zjeHGx":["Import Plugin <0>",["0"],"?"],"z46NBz":["Import the data from the file to this device and keep them synced with the cloud version. Any existing duplicate chats will be replaced, then synced to the cloud."],"j1RnC6":["Import to ",["0"]],"5yS40W":["Import to TypingMind"],"Bbn1qh":["Imported ",["0"]],"PZkaBL":["Imported successfully!"],"n1w4iu":["Importing new ",["0"],". Are you sure?"],"GdBrLi":["Importing new ",["0"],".<0><1>⚠️ Important: Some ",["1"]," in the imported file have been previously synced to Cloud Backup & Sync.<2/><3/>Do you want to replace those data with the synced version or create new cloned ones?"],"bN4bod":["Importing new data from a local file. Are you sure?"],"6xrUsk":["In the free plan, chat history will not be saved. You will be present with a popup every few minutes. Some other features may also be limited."],"Opr5hc":["In-use"],"jZxGf9":["Incorrect password."],"VoO3VA":["Incorrect password. All API keys must be encrypted with the same password. If you forgot your password, you can remove all API keys and add them again."],"3MLyFF":["Increase Characters Limit"],"6sxUIo":["Increasing stability will make the voice more consistent between re-generations, but it can also make it sounds a bit monotone. On longer text fragments we recommend lowering this value."],"BTNnlL":["IndexDB is unavailable in your current browser, and some features might not work. Please use a different browser for the best experience."],"uSFHsO":["Infographic"],"n668ni":["Informal"],"xazJTP":["Informative"],"BjFC8p":["Initial Context Applied"],"MfdckZ":["Initial System Instruction"],"TKQ7K+":["Install"],"UCDdDm":["Install selected "],"eQkgKV":["Installed"],"p7xApR":["Instruction"],"2oyZ/L":["Instructive"],"GUNLv1":["Interactive Content"],"4SUOez":["Interactive content may slow down your chat experience or be distracting."],"a9Ogao":["Interactive Editor"],"umwQp0":["Interview"],"cTxEen":["Invalid API endpoint."],"EPw/o1":["Invalid API key. Please make sure your API key is still working properly."],"sX7IVf":["Invalid API key. Please make sure your API key is still working properly. Error details:"],"svQd1q":["Invalid OpenAI Function Spec. Please check your JSON."],"e6Mc3R":["Invalid plugin. Please try again."],"Tri+cM":["Invalid User Settings. Please check your JSON."],"eJbPDS":["Invite code:"],"127v3Z":["Ironic"],"2zlZZS":["Is it ok to give my OpenAI API Key to TypingMind? Does OpenAI allow this use case?"],"9wNN3e":["Is my API Key encrypted in local storage?"],"CNe6lp":["Is the License Key one-time purchase? Do I need to renew it?"],"feGwUZ":["Is there a MacOS/Windows/Linux app?"],"1RMOfL":["Is there an Android/iOS/iPad app?"],"Po7tj6":["Is there an expiration date for the License Key?"],"xkuRyy":["is thinking"],"b5PxgQ":["Is this app free?"],"IWs4FI":["is typing"],"HsTJS/":["It\'s free and takes 2 minutes. You need a Google account."],"uIjGvG":["JavaScript Code Implementation"],"lulNQ0":["Journalistic"],"B2Zb/F":["JSON"],"legu7S":["JSON Editor"],"leS9hw":["JSON file"],"9ocsRS":["JSON Source"],"aABkGI":["Kagi Session Link"],"FIkhWn":["KB"],"15ZLRx":["Keep the data"],"y+HKwM":["Keep your data safe!"],"h7MgpO":["Keyboard Shortcuts"],"DVMnO1":["Keyboard shortcuts are not avaiable on mobile"],"Ev5qq2":["Knowledge"],"yWH3P0":["Knowledge Base"],"RQg3Qq":["Knowledge base & embedding processing"],"P0InwF":["Knowledge base access"],"vXIe7J":["Language"],"k7rCa/":["Large"],"JwWiPD":["Last Created"],"UXBCwc":["Last Name"],"qF4jem":["Last Sync"],"zt4unR":["Last Sync: Never"],"tKCBU0":["Last Used"],"zwWKhA":["Learn more"],"NgeSlx":["Learn More"],"BpKSYw":["Learn more about Knowledge Base"],"4nqCi7":["Learn more about OpenAI\'s model, tokens, and context length here."],"ypjVz9":["Less Repetition"],"CcsE7w":["Let the AI know how to response when this profile is used."],"J59eBU":["Let us know how we can make your experience better."],"iYRN9M":["License activated successfully!"],"4o/F78":["License Key"],"ttpgzw":["License Key is used to activate the premium features of TypingMind.com. API Key refers to OpenAI ChatGPT API Key, and is used to connect to OpenAI\'s API to interact with ChatGPT. You need an API Key to use the app. The License Key is only needed if you want to use the premium features."],"h12eY8":["License Key vs. API Key"],"1njn7W":["Light"],"yRkqG9":["Limit"],"p1R7Bt":["Limit #",["0"]],"ml4bvW":["Limit:"],"tQU1G2":["Limitations"],"Hl5i8k":["Limited LTD"],"3Lok4R":["Limited-time offer!"],"6BDqha":["Limits"],"aPY7WC":["List more"],"95r17U":["Listening..."],"UBSiBT":["Listicle"],"bqeTuo":["Llama, Mistral, Perplexity,..."],"dSVyu4":["Load from GitHub"],"WgAC4O":["Load more... (",["0"],")"],"N69wao":["Load Plugin"],"VUP5qf":["Loading Configuration"],"r53GSi":["Loading Plugin..."],"Z3FXyt":["Loading..."],"d5zxa4":["Local"],"2tuzFd":["Local Chat Data:"],"dTa89z":["Local Only"],"rXS98F":["Local Only Mode"],"2iTmdZ":["Local Storage:"],"j8TVcH":["LocalAI (Vicuna, Alpaca, LLaMa, GPT4All, Dolly, etc.)"],"HD2Tiz":["Lock"],"FK/gUg":["Login / Signup"],"khlq+8":["Login Here"],"pzMtjG":["Login to"],"UjFbj1":["Login to sync your data"],"rpu3w+":["Login to sync your data across devices"],"5z2/lU":["Login to TypingMind Cloud"],"Oal4RA":["Login to TypingMind Cloud to get started"],"11JwGr":["Login with email"],"u62JiU":["Login with Email"],"nOhz3x":["Logout"],"ZRkDy6":["Logout from all other sessions"],"4TQrIR":["Lost your license key?"],"hOsSks":["Loved by 18,203+ <0> happy customers"],"nTWWCZ":["Low"],"pdO539":["Lower"],"mk1nRo":["Make friendlier"],"gCwTrH":["Make it friendlier"],"rt3dUx":["Make it longer"],"XckBJl":["Make it more professional"],"ebxFoX":["Make it shorter"],"rRLXT4":["Make longer"],"a0DzB4":["Make more professional"],"xTY2A5":["Make shorter"],"OpIDIK":["Make sure you have your billing info added in <0>OpenAI Billing page. Without billing info, your API key will not work."],"PGlNrd":["Manage Archived Chats"],"l51yT8":["Manage Cloud Sync"],"KhaF0E":["Manage Models"],"UwHZGA":["Manage Plugins"],"2Q43sq":["Manage Shared Links"],"L9IOec":["Manage Subscription"],"faXgrj":["Manage your API keys"],"V7tkSw":["Manage your models and add custom models"],"2P75cf":["Manage/Recover License Key"],"s4b7mG":["Markdown copied to clipboard"],"7FWkv7":["Max Tokens: ",["0"]],"XNLbke":["Maximum Devices Allowed: ",["0"]],"Dd7YLj":["Maybe later"],"agPptk":["Medium"],"Kbwvno":["Memo"],"R8Ba3j":["Message Attachments (Images, Files, etc.)"],"6hMGSB":["Messages Count"],"0ivkbP":["Metadata & User Data:"],"Uo2nri":["Metaphorical"],"3TSz9S":["Minimize"],"9jE74n":["Missing API endpoint or API key."],"lRVSrT":["Missing required key:"],"lXJuyl":["Mistral AI"],"scu3wk":["Model"],"2/J7Pw":["Model & parameters"],"xobO/8":["Model For Title Generation"],"IzB3v0":["Model ID"],"0f8VF5":["Model Quick Selection"],"VdtyvK":["Model Settings"],"hDkkvu":["Model:"],"//nm2/":["Models"],"EvGHqi":["Models Visibility And Order"],"3xm05L":["More stable"],"SjsPQu":["More variable"],"mq//7G":["Move <0>",["chatTitle"]," to"],"/DMBqC":["Move To Folder"],"IS4pR3":["Multi-steps automation and batch processing."],"qhwV2C":["My Account"],"/bH4kC":["My Prompt"],"6YtxFj":["Name"],"Sn9236":["Narrative"],"KwhrYp":["Need help creating plugins?"],"6FUdfq":["Need setup"],"proQUv":["Neutral"],"hIQkLb":["New chat"],"q2+WzE":["New Chat"],"9cpN03":["New Chat in Project/Folder"],"5FLa/t":["New Chat Instance"],"5sQUqJ":["New features, improvements, and bug fixes."],"+VXUp8":["New Project"],"qdyV/M":["News"],"5ACX4z":["Newsletter"],"UcAV3Q":["Nice, the endpoint is working! \uD83C\uDF89"],"1UzENP":["No"],"oPoLg+":["No access"],"pvU+A0":["No agents found"],"2Pl7Xj":["No AI agents found"],"ypvWKm":["No AI agents found for \\"",["debouncedSearch"],"\\""],"cUyict":["No AI agents in your library yet."],"TwE9Sr":["No assigned AI agent"],"CP6gDt":["No Chats Yet"],"INI7x0":["No information available"],"1xVZkL":["No models found"],"Eo6Lg5":["No plugins available"],"uLNH6C":["No plugins found"],"KaEIDi":["No prompts found"],"PPDN8S":["No refresh. Use until cache expires."],"tSEkZI":["No result found for \\"",["searchKeyword"],"\\""],"Ev2r9A":["No results"],"1dhpFr":["No results."],"JD9x0S":["No tags"],"WRRjA9":["No tags found"],"cCELIA":["No tags found!"],"7tSS3w":["No you can\'t, and you shouldn\'t. It\'s not safe to share your License Key and API Key to the public like that. The Static App Self-host version is meant for personal use. If you are looking to setup a custom deployment of TypingMind for your team/community/customers, please check out https://typingmind.com/custom"],"FTMbwN":["No, but you can add typingmind.com to your home screen. It works exaclty like an app!"],"z3hnVp":["No, I want to use my own API key"],"wIOBEk":["No! A ChatGPT Plus subscription is not needed. You just need to have an OpenAI\'s API Key. You can see more info on how to get one here: https://openai.com/blog/openai-api"],"dy1KlD":["No. The license key only grants you the permission to use and deploy the app on your own server. You do not have permissions to modify or redistribute the code. The full source code is not available for sale as the app is not open-source. You will only receive the compiled code of the app, you can deploy the app anywhere without having to update any code or settings."],"EdQY6l":["None"],"IFw5tv":["Normal Text"],"F4BUzD":["NOT allow to access to any data in knowledge base"],"tHgS4B":["Not completed yet"],"2T68PV":["Note: Extensions have full access to the application and can read and modify any data. Only install extensions from sources you trust."],"yA1cUG":["Note: only models with OpenAI compatible API are supported."],"EuE1GI":["Note: Post-Processing only works with JSON responses."],"CvvaRA":["Note: some voices have different character limits."],"mIHRS/":["Note: The content of the API response will be injected to the system prompt, keep your API response short to avoid exceeding the context limit. The best response format is Markdown or Formatted JSON. API responses that are longer than 15% of the model context length will be truncated automatically."],"rF9ATR":["Note: Web Search works best with the <0>GPT-4 model. Enable Web Search will consume more tokens. All web searches are private. Learn more below."],"3iGIId":["Note: You have another Anthropic API key linked to your user profile that takes higher priority. Open Profile Settings (at the top left corner of the sidebar) to update the API key if needed."],"W7Ly1q":["Note: You have another Google Gemini API key linked to your user profile that takes higher priority. Open Profile Settings (at the top left corner of the sidebar) to update the API key if needed."],"On2Jfx":["Note: You have another OpenAI API key linked to your user profile that takes higher priority. Open Profile Settings (at the top left corner of the sidebar) to update the API key if needed."],"NnuIWZ":["Note: you may need to update your API key after changing the endpoint."],"743mE0":["Note: You pay for your own API usage directly to Azure. API requests to Azure are sent directly from your browser without any intermediate server. No one can see your chat content and audio. Enjoy your privacy!"],"UIpYys":["Note: You pay for your own API usage directly to ElevenLabs. API requests to ElevenLabs are sent directly from your browser without any intermediate server. No one can see your chat content and audio. Enjoy your privacy!"],"YCZmv6":["Note: You pay for your own API usage directly to Groq. API requests to Groq are sent directly from your browser without any intermediate server. No one can see your chat content and audio. Enjoy your privacy!"],"dk+V/P":["Nothing found for \\"",["0"],"\\""],"Amd0C9":["Nothing to export."],"qmm0gd":["Notify Me"],"upFPtm":["Numbered List"],"tnGFYP":["OAuth Callback URL for this plugin:"],"FHJMtd":["OAuth Client ID"],"uDlpb7":["OAuth Client secret"],"EAEmSC":["OAuth Client Secret"],"GITnVx":["OAuth Config"],"zga9sT":["OK"],"ESs79K":["Oldest Chats First"],"NIhxhS":["Ollama (Local models: Llava, Llama2, Mistral, Orca, etc.)"],"TnJB0v":["Only allow access to some knowledge base data based on tags"],"FjIVLO":["Only sample from the top K options for each subsequent token. Used to remove \\"long tail\\" low probability responses. Min: 0"],"cf3IX1":["Only store your data on this device, no where else"],"ci8hdq":["Only users in specific groups"],"0Zv01M":["Open Backup & Sync"],"WL5Be4":["Open chat with this AI agent"],"lydwZP":["Open code in CodePen editor with 1 click."],"wc9o2P":["Open Full Page →"],"jZlMgr":["Open in CodePen"],"N5skTB":["Open in separate window"],"seLMUl":["Open Router models"],"s19V4z":["Open Search"],"OdnLE4":["Open sidebar"],"z6JOyi":["Open Voice Input"],"9ElpTL":["Open-minded"],"16pk+G":["OpenAI API Key"],"rNGD7J":["OpenAI API Org ID"],"Rde+o4":["OpenAI Chat Completions Endpoint (V1)"],"7HIUd6":["OpenAI Function Spec"],"4cpPCu":["OpenAI Function Spec is required."],"/xxPLj":["OpenAI Function Spec must have a \\"description\\" property."],"LWocrQ":["OpenAI Function Spec must have a \\"name\\" property."],"dbxhNC":["OpenAI Function Spec:"],"7+CA6l":["OpenAI Status: OK"],"D0uUAb":["OpenAI Status: Slow"],"rmkBdt":["OpenAI Status: Unavailable"],"lKxYcA":["OpenAI Text-to-speech"],"BLqwK7":["OpenAI Text-to-speech requires an OpenAI API Key. Please enter an OpenAI API Key to the app and try again."],"GAv/8X":["OpenAI TTS"],"I3d9HX":["OpenAI Whisper"],"dV7X6u":["OpenAI Whisper Endpoint (V1)"],"t8fFLT":["OpenAI Whisper Prompt:"],"2tVhma":["Opinion"],"rnF+lT":["Optimistic"],"AWA6XY":["optional"],"mp5yqd":["or <0>Upload an audio file"],"I8e+C7":["or anything"],"D7Tm8N":["Our new PWA desktop app is faster, more reliable, and receive updates more frequently. Upgrade now to enjoy the best TypingMind experience!"],"kUi10t":["Output format"],"2o7xcf":["Output Options"],"zJA0U6":["Output Settings"],"ulC6II":["Override Global Model Parameters"],"kzRPrD":["Override system instructions"],"6FSnpy":["Overview (Markdown Supported)"],"l9QF2Y":["Overview:"],"Dr0LZI":["Part ",["0"]],"IgrLD/":["Pause"],"hgrGkS":["Perplexity AI"],"jAz6//":["Persuasive"],"Dc1wVa":["Pessimistic"],"CGEos+":["Pick a color theme for the sidebar"],"qVkGWK":["Pin"],"6dGmJN":["Pin messages"],"NGcwCb":["Pin this AI agent on the main page"],"AURbCJ":["Pinned Messages"],"PBh8Vb":["Pitch: ",["0"]],"GdgCoi":["Plan"],"T91vKp":["Play"],"jzYyPY":["Playful"],"QJz/m1":["Please buy a license to start chatting with this character."],"HW9F5K":["Please confirm that you may lose your data the browser cache or site data is cleared."],"gZgzWU":["Please enter the endpoint."],"RHJKj9":["Please enter your API endpoint and API key to start using Azure Whisper."],"rvyFY9":["Please enter your API key to get started."],"jF//iB":["Please enter your ElevenLabs API key to start using text-to-speech."],"ve+NlK":["Please enter your Groq API key to start using Groq Whisper."],"vbl882":["Please export and backup your chats regularly to avoid data lost! <0>Learn how to protect your data."],"wwrAsK":["Please fill in all required fields"],"JOCX5y":["Please finish adding a Custom Model first (or click Cancel) before applying changes."],"m1DS6L":["Please login to see all available prompts"],"49/2RF":["Please login to see this page."],"36Sd6M":["Please make a copy of the links below, they will not be shown again."],"V5qHtW":["Please make a copy of the links below, you can also manage all previous shared links in <0>Manage Shared Links"],"i3ClJg":["Please provide the configuration for your OAuth connection. The <0>Client ID and <1>Client Secret will be required when this plugin is installed by the user."],"k8Mebo":["Please select tags..."],"cQKduU":["Please try to reload the app."],"AuMuvf":["Please wait while we sync your data with this device"],"rYG2u6":["Please wait..."],"fOuPPd":["Plugin"],"VGOLXi":["Plugin Code Implementation not available"],"IUFHsm":["Plugin Context"],"0dl2VR":["Plugin is running"],"ErRKov":["Plugin Name"],"4od74D":["Plugin name is required."],"nqxUE9":["Plugin OpenAI Function Spec not available"],"LQLgsn":["Plugin overview not available"],"eKHY3W":["Plugin Settings"],"E+y9QY":["Plugin Store"],"heVD0V":["Plugin supported"],"eTB1Zi":["plugins"],"ohUJJM":["Plugins"],"+f7Oe7":["Plugins are ignored because the selected model(s) does not support plugins."],"bPwU1X":["Plugins are locked for this chat"],"xEajPb":["Plugins supported"],"m6koiy":["Plugins: Not Supported"],"LKmpE/":["Plugins: Supported"],"TsPLF1":["Podcast Script"],"HkrWZH":["Poem"],"mcGYQP":["Poetic"],"lXk/9o":["Policy Document"],"PfQA36":["Possible workarounds"],"gF9SeK":["Post-Processing"],"6LWacs":["Precise"],"Q6hhn8":["Preferences"],"J7wKTg":["Presence Penalty: ",["0"]],"FOoDGS":["Presentation"],"gBJdgA":["Press \\"/\\" to focus input"],"PeRQRx":["Press [Tab] to move to the next fill-in-the-blank position."],"uy5i6n":["Press Release"],"a7u1N9":["Price"],"VRFxH7":["Price for Cost Estimation"],"7SLmmC":["Price for Cost Estimation (Optional)"],"5ELsGs":["Pricing varied"],"eU6vr7":["Primary response"],"R3vQ4L":["Print / PDF"],"8AUk5H":["Print this page or save as PDF"],"rjGI/Q":["Privacy"],"LcET2C":["Privacy Policy"],"k+M+xc":["Processing Engine:"],"me35xG":["Product Description"],"vERlcd":["Profile"],"xBzEtd":["Profile Image URL:"],"Szskbr":["Profile Picture"],"NI0r0N":["Profile picture URL must starts with http:// or https://"],"xvRniw":["Profile Picture URL:"],"vrQQgz":["Profiles"],"1mnY67":["Programmable Search Engine (by Google)"],"pqNt/b":["Programmable Search Engine (by Google) is a customizable tool that allows developers to integrate Google\'s search capabilities into their applications or websites."],"e0NrBM":["Project"],"uP40eF":["Project Context & Instructions"],"KUmtmn":["Project Documents"],"Wsk5pi":["Project Settings"],"W9uQXX":["Prompt"],"I4xXUB":["Prompt caching helps save token costs for long conversations. Enabling this will incur additional tokens when initiating the cache for the first time, but it can save many more tokens later, especially for long conversations. Not all models support caching, and some models require a minimum number of tokens for caching to be initiated. Please check with your AI model provider for more information."],"uwdnq4":["Prompt caching supported"],"Ax3Odx":["Prompt Caching:"],"+ZJAD0":["Prompt cloned successfully"],"YChMiU":["Prompt Details"],"MqJtNb":["Prompt Library"],"3jrgtI":["Prompt Title (e.g., \'Domain Names Inspirations\')"],"o73FAt":["Prompt:"],"Ad1kG/":["prompts"],"Qmr3jO":["Prompts"],"JPFjAF":["Prompts are message templates that you can quickly fill in the chat input. Some prompts come with variables."],"o0VDVK":["Prompts are message templates that you can quickly fill in to use in chat, work with AI agents, or build your workflow."],"8B+pY5":["Property"],"i+CFi4":["Property Value"],"qcybNQ":["Proposal"],"aemBRq":["Provider"],"AH5Ipl":["Proxy & Org ID"],"4bZkAM":["Put to background"],"T3l2/7":["Put your OpenAI Function Spec here..."],"z2HsPn":["Q&A"],"E3ezcL":["queue"],"b24kPi":["Queue"],"RQWuCs":["Queue message"],"ZhhOwV":["Quote"],"T0P5gs":["Randomize AI agent\'s avatar"],"TAocpQ":["Rate: ",["0"]],"fqH5by":["Re-sync everything"],"TUtaJT":["Read from HTTP endpoint"],"pcGj5q":["Read our documentations to explore more awesome features of TypingMind, or click \\"Finish\\" to close this window."],"CQ+awi":["Reasoning Effort (Reasoning models only): ",["0"]],"NJkBJc":["Recent Chats First"],"uUXlSw":["Recommendation: 128x128"],"YS2bZx":["Recommendation: 4 words or less."],"WEYdDv":["Recommended"],"w80YWM":["Record"],"GyaNUA":["Record Again"],"9kEKKZ":["Recover License Key"],"lJLwnC":["Redo changes"],"PjpB64":["Refresh once per chat (or when cache expires)"],"rC5mbl":["Refresh once per message (or when cache expires)"],"6exX+8":["Regenerate"],"JhXfkQ":["Register Here"],"y/AqEB":["Remind me later"],"t/YqKh":["Remove"],"V69Ifk":["Remove \\"",["0"],"\\" from chat"],"w61W3L":["Remove ",["0"]],"mTAnk+":["Remove API Key & Disable Web Search"],"+J8ouA":["Remove Key"],"u/WKTl":["Render plugin output as interactive HTML"],"HVm9F2":["Render plugin output as markdown"],"yjKqG9":["Reopen previous chat when app open"],"toJdZA":["Reorder"],"fqSfXY":["Replace"],"gjpdaf":["Report"],"yWOswz":["Request Body (JSON)"],"dZjnSE":["Request Body Format"],"ArNNAV":["Request Headers (JSON)"],"lY4/S/":["Requests to the endpoint are sent directly from the browser. Make sure your endpoint is configurated correctly to avoid CORS related issues."],"RIssSO":["Research Paper"],"OfhWJH":["Reset"],"Xi0sEu":["Reset chat"],"kQlJyC":["Reset Chat"],"SFteAp":["Reset Default"],"L+rMC9":["Reset to default"],"Tj36Dr":["Reset to Default"],"u6QeR6":["Restart Now"],"heil9d":["Restart the app to update to the latest version."],"mBkVGB":["Restore Now"],"RD6AE9":["Result"],"v39wLo":["Resume"],"5k0NLb":["Review"],"HLaotW":["Rewrite"],"Wt3M+q":["Safety Settings (Gemini Only):"],"K6tmBZ":["Sarcastic"],"4uPDxA":["Satirical"],"tfDRzk":["Save"],"mxFYYR":["Save API Key"],"IUwGEM":["Save Changes"],"a/Fq24":["Save Credentials"],"01Jn66":["Save OAuth Config"],"u1xg0F":["Saved successfully!"],"Zi7dyz":["Script"],"sAePxr":["Search agents, prompts, chats..."],"NQ+qi8":["Search agents..."],"4IdIIf":["Search AI agents..."],"aDVBYo":["Search API"],"PtdI1b":["Search API Key"],"fsSQWV":["Search API Key is now working!"],"a4xYoA":["Search chats"],"5qSvKg":["Search Engine ID"],"IV+KjO":["Search KB"],"hFjdEL":["Search Knowledge Base"],"vUOA1+":["Search models..."],"50DcYA":["Search on the internet:"],"slq1pb":["Search plugins..."],"z+mgCt":["Search prompts..."],"xEEOHj":["Search Suggestions Link"],"lnWve4":["Search tags"],"PTtf3y":["Search tags..."],"9Bfco2":["Search your prompts"],"kRqYtp":["Searching knowledge base"],"WNypG5":["Secret Link"],"V1fa9u":["See more"],"iqebkX":["See more FAQs"],"rG3WVm":["Select"],"uvUq+/":["Select a mode to continue"],"z9xdHh":["Select a tab"],"yM5jvp":["Select AI agent"],"c/+K+h":["Select AI Agents"],"mCB6Je":["Select All"],"YH4rCS":["Select an Identity Provider:"],"Vhdpu5":["Select files"],"H7uKqh":["Select groups"],"MHm/fc":["Select Language"],"pvt8IL":["Select multiple agents"],"hJGyn0":["Select multiple chats"],"Tm9WZ6":["Select multiple plugins"],"MZXtNc":["Select multiple prompts"],"VNEe/a":["Select number of seats to buy:"],"C/Z3uS":["Select primary response"],"euBEyc":["Select the profile you want to use"],"O6y01T":["Select what request content type is used by your provider during the authorization flow. Most providers use JSON."],"QdU0Z4":["Select what you want to sync"],"ylXj1N":["Selected"],"LTE+c6":["Self-host means you deploy the same version of TypingMind.com on your own web hosting server and domain name for your personal use."],"JlFcis":["Send"],"kryw05":["Send audio messages"],"7xHXyX":["Send Code"],"LDzfVJ":["Send Feedback"],"Ls+eRP":["Send Test Request"],"QEQlnV":["Send your first message"],"3fV/9W":["Sent at"],"OI539Y":["Serious"],"IihslU":["Set as primary response"],"qRsPIT":["Set default"],"HWCeD3":["Set Default"],"KblLWf":["Set up Knowledge Base now"],"p/gs19":["Set up your OAuth connection for this plugin. The user will need to authenticate before using the plugin."],"1J28UM":["Setapp provides you with some free models, do you want to use free model instead?"],"Tz0i8g":["Settings"],"Ykx85n":["Settings & Tips"],"ah70YE":["Setup Backup & Sync"],"QWHv0N":["Setup OAuth Credentials"],"xwwTVi":["Sexually explicit"],"Z8lGw6":["Share"],"nntTLt":["Share & download as a JSON file"],"h+U8sH":["Share Agent: ",["0"]],"5zYChD":["Share conversation in HTML format"],"TwWdwu":["Share conversation in Markdown text format"],"QxxWAu":["Share Now"],"/9EVpH":["Share Plugin: ",["0"]],"uD5/Z+":["Share This Chat"],"cY+WFi":["Share to <0>ShareGPT"],"I5kQvS":["Share your experience \uD83D\uDC47"],"4DIWvs":["Shared At"],"xMp08Q":["Shared Data"],"4+XAJf":["Shared Links"],"PUO6ed":["Show Advanced Options"],"TKt2IH":["Show Content"],"qsNpLL":["Show estimated tokens while typing"],"xgss0e":["Show in artifacts panel"],"sgzcYD":["Show labels"],"w1f7ZM":["Show on header and while typing"],"2xLA9y":["Show Play button after assistant messages"],"rlNC9x":["Show raw"],"5amG4X":["Show settings"],"Y6SK9K":["Show source"],"6kuw9a":["Show, hide, sort models for quick selection on the navbar"],"pRcxFW":["Showing <0>",["0"]," to <1>",["1"]," of <2>",["totalResult"]," results"],"ebEv56":["Sidebar Color"],"tbgdI4":["Sidebar Style"],"e/ToF5":["Sign in with ",["0"]],"bbwmyn":["Simple license management via email"],"EgLNbX":["Simple text prompt (with variables)"],"Cj2Gtd":["Size"],"PCSkw2":["Skills"],"CoiZM+":["Skipped ",["0"]," chats due to an unsupported format"],"Ada8m+":["Skipped ",["0"]," chats, see details"],"w625t8":["Slower"],"4Revpc":["Small"],"Kmbi2z":["Social Media Post"],"aUncCu":["Some dynamic context failed"],"+iNEMI":["Some enhanced features on TypingMind will increase your token usage. You can always turn these features off in the Settings pannel (click the gear icon in the sidebar). The enhanced features include: Chat Title Suggestion, Search Keywords Suggestions, AI Agents, Upload Document, etc. Amount of tokens used depends on the AI agent and the length of your document."],"ZgGAHI":["Some people prefer to run the software on their own server for privacy and availability reasons. For example, if TypingMind.com becomes inaccessible in the future, you can still access your own version of TypingMind from your server without any problem. The self-host version can also be run locally like an app."],"lkE00/":["Something went wrong. Please try again later."],"fWsBTs":["Something went wrong. Please try again."],"/nDSZq":["Something went wrong. Please try again. Open Developer Console to see more details."],"UGi5Zs":["Something went wrong. Please try again. Open the console may reveal more information."],"x2knav":["Something went wrong. This could be a temporary network connection issue. Please try again or contact support. Opening the console might help clarifying the issue."],"+IoUcJ":["Sorry, audio input is not yet supported on your device/browser."],"lYgpBY":["Sorry, that license key is invalid."],"rl6b8I":["Sorry, there has been a problem with the sync data. Open the Console might clarify the issue."],"cNnfG2":["Sorry, there has been a problem with the sync process. Open the Console might clarify the issue."],"04ofk2":["Sorry, your browser/device does not support Speech-to-Text API. Please select another Speech-to-Text service."],"ZqFmVi":["Sorry. Voice input is not yet supported on your device/browser."],"/HgF9q":["Sort by"],"B9GYd0":["Sort chats"],"Sb94+G":["Sound notifications"],"dpGL2Q":["Source:"],"u7yVRn":["Sources:"],"8BnJo9":["Speech"],"GPIMoy":["Speech API:"],"MbTAbA":["Speech-to-Text Provider:"],"UHgcpG":["Speed: ",["0"]],"CH0AaX":["Stability:"],"TJBHlP":["Standard"],"jDO+4L":["start a new chat"],"vPF04k":["Start a new chat"],"d9HU83":["Start a new chat from here"],"sW2vKi":["Start for free, upgrade any time"],"hYlkID":["Start talking..."],"JEGlfK":["Started"],"enxRnP":["Starting Model:"],"R1H72g":["Step-by-step"],"ygCKqB":["Stop"],"RlyAC4":["Storage Stats"],"oMGFep":["Storage upgrade"],"nd5PZx":["Store your data on the cloud and sync between devices"],"c7CCr7":["Stream AI responses word by word"],"3mDv0d":["Stream AI responses word by word (typing animation)"],"4/+ppZ":["Streaming output supported"],"hQRttt":["Submit"],"FP9FYD":["Subscription ends at"],"ddnJmC":["Suggest Search Keywords"],"yAyOUJ":["Suggest some first messages for the user to select from in the beginning of the conversation."],"dXoieq":["Summary"],"PDCXEl":["Support & Feedback"],"IHh1FJ":["Support OpenAI Vision"],"r41Eim":["Support Plugins (via OpenAI Functions)"],"BxntUw":["Support Streaming Output"],"0PIl7J":["Support System Role"],"Aqw8Kb":["Sure?"],"1+P9RR":["Switch to ",["0"]],"XerTC6":["Sympathetic"],"KmFUm2":["Sync Changes"],"OafbM3":["Sync will continue but you can start using the app right away."],"sP8i1e":["Synced At"],"GYA8rj":["Syncing Data..."],"uHIPUT":["Syncing..."],"D+NlUC":["System"],"WUMeSt":["System instruction"],"0cjp+o":["System Instruction"],"vawWq6":["System Instruction:"],"GGF/7/":["System Instructions:"],"BpBUFA":["System role supported"],"4hJhzz":["Table"],"OYHzN1":["Tags"],"HurUmz":["Tags (optional):"],"n6bA7l":["Tags:"],"9SpTGy":["Talking to <0>",["0"],""],"mwQvwH":["Team Profile"],"CAL6E9":["Teams"],"wanXT9":["Technical"],"8RB+0b":["Technical Documentation"],"r6Q6b1":["Temperature: ",["0"]],"8dEBSa":["Temperature: ",["temperature"]],"lHk6rb":["Template:"],"3WYP3r":["Tentative"],"4Y5H+g":["Terms"],"xowcRf":["Terms of Service"],"NnH3pK":["Test"],"ALQq49":["Test API Key"],"oRX7OJ":["Test audio:"],"NFYITQ":["Test Endpoint"],"V17zQG":["Test Missing Translation."],"cQfI46":["Test Variables (JSON)"],"yJvxHg":["Text (Markdown)"],"TTBVi5":["Text-to-speech"],"CZer2q":["Text-to-Speech"],"M+BBlf":["Text-to-speech is disabled. Please select a Speech API above to enable."],"nAl9s9":["Thank you for your purchase!"],"n8BVEC":["Thanks for sharing!"],"M8UX1B":["That endpoint is not working. Please check and try again. Open the console log may reveal more information."],"vVD6Dy":["That\'s not a license key. It looks like an OpenAI API Key, not a License Key. Please enter your license key instead."],"QS9Feg":["The AI assistant will remember your information on all future chats."],"7egM0P":["The app will connect to Anthropic API server via our proxy to check if your API Key is working properly."],"6NM9H1":["The app will connect to OpenAI API server to check if your API Key is working properly."],"gqbLFw":["The app will restart now."],"u5hWpH":["The base instructions for Web Search contains ~600 tokens. The search result will be added to the context and will be used to answer your question. The more search results you get, the more tokens will be used. The average number of tokens used for Web Search is ~800 tokens."],"vIw2Iu":["The Bulk License gives you a License Key that can be shared and used among your team members. Simply share your license key with your team members and they can use it on their devices."],"0pm0cB":["The ChatGPT API costs soooooo little you won\'t even notice it. Typical chat conversation is about 1000 characters, which costs ~$0.001. That\'s less than a cent. You can have thousands of chats and it will only costs you like $1. See official pricing here: https://openai.com/pricing#language-models"],"30hLYa":["The code that will be executed when the plugin is called. Must be a valid JavaScript code. <0>Learn how the code is executed here."],"gbk4fY":["The cost is calculated based on the <0>public pricing of OpenAI\'s API. Each model has its own pricing, each type of tokens in each model also has its own pricing."],"SaOL3y":["The current chat may come with limits. <0>See details"],"CH5FaG":["The custom model used for this chat is currently not available on your device. The default model <0>",["0"]," will be used for future messages of this chat."],"jbkRdE":["The default free plan of Programmable Search Engine includes 100 searches per day for free. If you need more, you may sign up for billing in the Google API Console. https://cloud.google.com/billing/docs/how-to/manage-billing-account"],"9pywHz":["The endpoint is invalid."],"BmbkK/":["The first ",["skippedMessagesCount"]," messages are forgotten."],"jherDw":["The first message to send to the user when start a new chat."],"pyyzCs":["The green dot indicates that OpenAI API services are working normally. When it turns red<0/>, that means OpenAI is slow or unresponsive due to high demand or other reasons."],"FngNgl":["The license key is valid forever."],"LSy+DK":["The maximum number of tokens to generate before stopping."],"qPRtFC":["The model has reached its maximum output tokens or context limit."],"6b+97c":["The model to start new chats with. When you create a new chat within this project, it will start with this model. You can change to another model manually anytime."],"iJi00j":["The number of characters is limited to ",["0"]," ",["4"],".<0>Your usage: ",["5"],"/",["6"],"."],"tE4Rz2":["The number of characters is limited to ",["0"]," per message"],"5u+jhV":["The number of files exceed the limit (",["fileUploadMaxTokens"],")."],"k2UV77":["The number of messages to include in the context for the AI assistant. When set to 1, the AI assistant will only see and remember the most recent message."],"kXFHYg":["The number of requests is limited to ",["0"]," ",["4"],".<0>Your usage: ",["5"],"/",["6"],"."],"Torea7":["The official website is https://developers.google.com/custom-search/v1/overview. Also, you can follow the instructions on this page https://tdinh.notion.site/How-to-get-Search-Engine-ID-and-API-Key-on-Programmable-Search-Engine-by-Google-b861a749b20f4fcdbc1449f92ad9ed9a"],"wb6atD":["The plugin\'s users (you or someone else) will need to provide the API Key under the Settings tab when using the plugin. If you want to create a plugin with your private API key and the plugin\'s users don\'t need to provide an API Key when using it, sign up for <0>TypingMind Custom to have access to <1>Server-Side Plugin."],"9r58AF":["The premium features include: Chat Search History, Access Prompt Library, Integrations, etc. Check the pricing page for the latest details of all the premium features."],"Za69ud":["The search requests are sent directly from your browser to the search API without any intermediate servers. Your privacy is 100% protected. No one can see your search query and search result except you and the search engine itself."],"UUd8gD":["The selected model is unavailable. Please select another option"],"zJpCEF":["The self-host version comes for free when you buy a license key. There is no support on technical issues if you self-host. If you don\'t have the technical skills to setup the self-host version, we recommend using the hosted version on https://typingmind.com instead. You can also checkout the Custom Deployment for easier setup with custom branding and manage team member: https://typingmind.com/custom (available as a separate purchase)"],"WQEjxZ":["The shared chat only contains the messages <0>at the time it was created. Future messages are not synced automatically. You can share a chat multiple times and have different links each time."],"j123Pn":["The static self-host version does not offer any customizations. Check out https://custom.typingmind.com for a custom version of TypingMind that will allow you to customize almost everything."],"vhyRqG":["The total length of your training files is too big for the selected model. Please remove some files or select another model."],"FEr96N":["Theme"],"WhnWdJ":["Theme: Dark Mode"],"yTmIDf":["Theme: Light Mode"],"ide/cZ":["Theme: System Setting"],"/6BsWs":["There are no login options available. Please contact the admin of this instance for more information."],"i4CFDG":["There are way too many possible technical issues that could happen with various tech stacks and server configurations that are not in my control. That\'s why I cannot offer technical support if you have problem with your self-hosted version."],"ZdIhm8":["There is a current temporary issue with our payment processor <0>Lemon Squeezy that causes the receipt emails to be lost for some customers. This happen more frequently with <1>PayPal users."],"Y5YwXd":["There is no need to manage your devices manually. Our license system works automatically. Inactive devices will be revoked automatically after a short time. We detect unauthorized uses and ask to verify with your purchase email when necessary."],"hzceqz":["There was an error syncing your data. Please try to sync again."],"vadr8e":["These files will be embeded directly to the system instruction for all chats in this project."],"wE+556":["Think"],"CGYYZ/":["Think step-by-step"],"Ed99mE":["Thinking..."],"3gfZ4K":["This agent can be installed by anyone who has the link."],"k5Es8x":["This AI agent has an assigned voice"],"t77h0I":["This AI agent has assigned plugins"],"e50+si":["This archive file is empty."],"WKj+ZI":["This can be used to provide advanced instructions to the AI. This works in combination with the plugin\'s spec function description, you can use this to provide more detailed prompts or add real-time data even before the plugin is run. Plugin context will be added to the AI\'s context (system prompt) when the plugin is enabled for the conversation, even if the AI decide not to run the plugin."],"/tOeF0":["This could be because OpenAI\'s server is experiencing high demand or having an outage. Usually, the issue will goes away pretty quick. You can try to send your message again every few minutes. If it takes too long, go to <0>https://status.openai.com to check their service status."],"6QICdW":["This device has been unlinked from your license key. Please enter your license key again to activate this device."],"XvQUAU":["This device is currently linked with an existing license key. Please unlink it first before activating another license key."],"Mwh/zr":["This extension has already been installed"],"FHVG+T":["This feature"],"ksNPZj":["This instance does\'t have any SSO connections yet. If you are an admin, you can add a new SSO connection in the Admin Panel."],"HZu0OM":["This is a built-in plugin"],"aLYsEA":["This is a built-in plugin, you can read the details but cannot edit it. If you want to customize it, you can duplicate and then edit the duplicated version."],"XmhWD2":["This is a built-in system plugin, you can view the details but cannot edit or delete it."],"gmIkCC":["This is a premium agent. Please buy a license to chat with it."],"cKOmN0":["This is a static web app, it doesn\'t have any backend server. When you enter your API key, it will be stored locally and securely on your browser. All API requests are sent directly from your browser to OpenAI server to interact with ChatGPT. Think of this as a HTTP client for your ChatGPT API with a lot of convenience features."],"vBSaD3":["This is an example chat for demonstration purposes"],"UFFTVk":["This is not a valid archive file or it has been corrupted."],"C9R6Ya":["This is the total length of your current conversation. It is calculated by OpenAI\'s API when you send a message."],"v7jVhI":["This library is empty"],"cTdBYz":["This license key is valid but it has reached the maximum number of activated devices."],"CAvPyP":["This limitation is set by the model provider. This can happen if your message is too long or the model is trying to generate too much output tokens."],"M2+O2G":["This link is not valid"],"sFQY0W":["This means your browser cache or site data is cleared, <0>you will lose your chat history."],"F1uW/d":["This plugin allows you to search the web..."],"xGQeda":["This plugin can be installed by anyone who has the link."],"4AaI7a":["This plugin is assigned to the AI agent but could not be used. Please check if you have installed the plugin and make sure you are using a model with plugins support."],"9uPju4":["This profile has custom API keys linked"],"0WKTdg":["This URL is only valid for the current plugin."],"tAhtTZ":["This will <0>upload your chat conversation to <1>",["0"]," and become <2>publicly accessible for anyone on the internet."],"G2oQAJ":["This will <0>upload your chat conversation to <1>sharegpt.com and become <2>publicly accessible for anyone on the internet."],"SUPntS":["This will also delete any unsynced data associated with your account on those devices. Make sure to sync your data from everywhere before continuing."],"g6OdIQ":["This will be appended to the system instruction for all chats in this project. Note that this does not override, but \\"appended\\" on top of the global system instruction and agent-specific instructions."],"BHoBQr":["This will be used as the system instruction for the AI agent."],"u7fI8q":["This will delete all of your local data from this device, including your chat messages, prompts, agents, custom models, API keys, license key, and reset everything app setting to default. This action is irreversible. Type \\"delete all\\" to the textbox below to confirm."],"wppqhq":["This will only appear if the AI response includes a list of items."],"qZyW8X":["This will remove your license key from this device and you will not be able to use the premium features on this device. Are you sure?"],"B73D1t":["Thought for ",["durationSeconds"]," seconds"],"cDuld0":["Thought for a while"],"7fH3I5":["Tip: Use exactly 4 dashes \\"----\\" as the separator to queue more than one message in one go."],"x4f8pZ":["Tips"],"CjQccY":["Tips: Drag to reorder your current AI agents"],"MHrjPM":["Title"],"mZ8cE/":["Title A to Z"],"X5DieB":["Title and instruction cannot be empty!"],"oE9Wxh":["Title and prompt cannot be empty!"],"Q9vh8b":["Title and System instruction cannot be empty!"],"MUnptd":["Title Z to A"],"P2YRxu":["Title:"],"3fpIq1":["to ",["0"]],"UbVgIu":["to close"],"J5C0cq":["To delete the link above, go here:"],"rSHV7E":["To get started, select an AI agent"],"Xyoped":["To get started, we need to verify your email:"],"S0fQBK":["to navigate"],"TT5b0p":["To prevent this, you can enable <0>Backup & Sync. This will allow you to sync your chat history across devices and restore it if you ever lose it."],"gLj//H":["To unlock your API Key"],"quc4du":["Toggle Bold"],"vE7aXw":["Toggle Italic"],"UF1S+C":["Toggle Knowledge Base"],"VbbNWn":["Toggle Plugins"],"6poLt9":["Toggle Sidebar"],"U9lvA1":["Toggle table width"],"FPqUH0":["Toggle the Knowledge Base icon in the chat box to enable or disable the AI from searching your knowledge content."],"aXYSXE":["Toggle thinking mode"],"vWNv6D":["Token URL"],"7ziKq7":["Token usages are not recorded when <0>streaming response is enabled. We will work on improving this soon."],"uAQyzk":["Tone"],"VhAZmC":["Top K: ",["0"]],"fvdi5P":["Top P: ",["0"]],"SsfBpq":["Total cost:"],"sFQEa3":["Total Reasoning Tokens:"],"p26txP":["Total Tokens Cached:"],"+mOvod":["Total tokens of the files exceed the limit (",["fileUploadMaxTokens"],")."],"AG4LZH":["Total Tokens Spent:"],"Dil/yn":["Total:"],"eS4XLX":["Training Data Tags"],"rOzgch":["Training Examples:"],"cy9hKy":["Training files"],"fp5rKh":["Transcribing..."],"vzAe+s":["Translations provided and approved by human."],"nrlh+D":["Translations provided by AI and may not be accurate."],"P/asuJ":["Try adjusting the max_tokens parameter of the model."],"T7w4KT":["Tutorial"],"GxaPa/":["Type \\"@\\" to mention an AI agent"],"Kfz6IH":["Type \\"/\\" for menu"],"AMCFfq":["Type \\"/\\" for shortcuts..."],"O8x+FV":["Type \\"delete all\\" to confirm"],"4elSI1":["Type 2 or more characters to search..."],"JweEbC":["TypingMind — LLM Frontend Chat UI for AI models"],"Ie5XDH":["TypingMind Cloud"],"7zcVP2":["TypingMind currently only supports Google search engine. We will add more search engines in the future."],"qKkQ0P":["TypingMind for Teams"],"CHoY0X":["TypingMind is a PWA compatible web app, so you can install it to your device and it will work like a native app. Click the menu of your browser → Install on Home screen."],"kwR92f":["TypingMind offers additional encryption for your API Key. You can enable encryption with a password by clicking the \\"OpenAI API Key\\" button in the sidebar and selecting \\"Encrypt API key...\\". Your API Key will be encrypted using the AES algorithm provided by the open-source CryptoJS library (https://github.com/brix/crypto-js). TypingMind only provides an encryption feature for your API key. Chat messages, prompts, AI agents, and other elements are stored using the standard local storage of your browser, which may or may not include encryption, depending on your browser. The encryption process are done entirely locally on your device, there is no backend server. If you use TypingMind on multiple devices, you will need to encrypt your API key on all of them, you can also set different passwords on different devices."],"6nDmw9":["TypingMind respects your privacy. Your chat history is <0>only stored on this device by default and never sent to our servers."],"YHikSC":["TypingMind uses the same underlying model as OpenAI\'s default chat app. For the same prompt, it can produce different responses each time. The default chat app by OpenAI may also have some initial prompt settings that are different from TypingMind. If you don\'t get the response you expects, try \\"Re-generate Response\\" or tweaking the prompt."],"OnFMha":["TypingMind will ask for your password every time you open the app. If you forget your password, you will need to enter your API key again."],"ZyBweS":["TypingMind will use the search engine\'s API to execute the search query. The search requests are sent directly from your browser to the search API without any intermediate servers. Your privacy is 100% protected. No one can see your search query and search result except you and the search engine itself."],"cx6X5s":["TypingMind.com is free to use with some basic features. You will need to have a working OpenAI API Key in order to use the app. When you use the OpenAI API Key, you pay directly to OpenAI for the amount of credits/tokens you use. TypingMind.com has premium features that can be unlocked with a one-time purchase."],"2sahWU":["Unable to import plugin. Please try again."],"O7Pt9v":["Unable to Load Context"],"9OIlwU":["Unable to play audio: "],"Yyo7E4":["Unable to use the API. Check console logs and network requests for more information."],"oh1jwP":["Unable to use the API. Error message: "],"5JOLV9":["Unarchive"],"rOtf7B":["Unarchive Chat"],"b2vAoQ":["Uncategorized"],"iGSBjq":["Under the hood, ChatGPT Plus and ChatGPT API offer the same model and the same quality. You can view this on their official announcement here: https://platform.openai.com/docs/guides/chat. The initial system instruction can be a little bit different, which can be configured to make the AI output different messages from time to time."],"hgNOt7":["Undo changes"],"oGlwk+":["Unfavorite"],"MlM6IH":["Unfavorite Chat"],"fo0VXg":["Uninstall"],"NIuIk1":["Unlimited"],"W2RH+r":["Unlink this device"],"VAOn4r":["Unlock"],"FKZXRo":["Unlock all premium features"],"tUYydg":["Unlock Now"],"MEIAzV":["Unnamed"],"nWMRxa":["Unpin"],"Vl0t8k":["Unpin this AI agent on the main page"],"/lmbYn":["Unsupported Browser"],"x87WPC":["Untitled Chat"],"EkH9pt":["Update"],"L/gNNk":["Update ",["0"]],"2p/Kya":["Update Custom Model"],"XymtD/":["Update Payment Method"],"/LO3aj":["Update Plugin"],"3/+eGC":["Update Prompt"],"ZRx6Ce":["Update Tags"],"+b7T3G":["Updated"],"kwkhPe":["Upgrade"],"ls6PRs":["Upgrade to our new desktop app!"],"XZFk+E":["Upgrade to Premium"],"mA9qRK":["Upgrade to PWA desktop app"],"qedMtm":["Upload and create a secret link that can be viewed by anyone who has the link."],"+H4f9W":["Upload documents to help the AI agent understand your domain knowledge better. The documents will be included directly to the model\'s system instruction."],"xfXHtn":["Upload images/documents"],"WKTsgj":["Upload or connect your data. AI agents can lookup documents from your knowledge base when it needs more information to answer questions."],"XviHNU":["Upload or connect your data. AI agents can lookup documents from your knowledge base when it needs more information to answer questions. Knowledge Base requires an embedding server for data processing, which is provided by TypingMind Cloud."],"9Vfh5E":["Uploaded At"],"k39Ghd":["Uploading documents requires a license. Please buy a license to continue using this feature."],"tb6hYw":["Uploading images requires a license with the Premium plan. Please buy or upgrade your license to continue using this feature."],"9Rz3G/":["URL cannot be empty"],"qzYMlR":["URL to chat with this specific AI agent"],"7FaY4u":["Usage"],"uFPO5Q":["Usage limits"],"4Lzyp6":["Usage:"],"DsBeuB":["Use"],"nskWen":["Use <0>",["field1Variable"]," <1>",["field2Variable"]," <2>",["otherVariable"]," to indicate the fill in the blank part."],"xU8mHI":["Use <0>",["yourContentVariable"]," to indicate the fill in the blank part."],"EuANcq":["Use <0>Google Drive to backup and sync your data across devices."],"ELgLcF":["Use <0>User Settings and <1>Variables to setup API Key for this plugin (<2>learn how)."],"3HkJve":["Use Anthropic models"],"JvNcuL":["Use Global Default"],"U2SXTH":["Use Google Gemini models"],"v5uSXR":["Use now"],"TmUqS+":["Use OpenAI models"],"kQqZRh":["Use Single Sign-On (SSO)"],"7PzzBU":["User"],"FLoqsu":["User Groups"],"Roaswv":["User Guide"],"QOqjv5":["User message"],"y9LVx0":["User Message"],"fVja9T":["User profile"],"WzMCru":["User Profile"],"Nv92aJ":["User Settings (JSON, Optional)"],"GD4I91":["User Settings:"],"vM1Cz9":["User:"],"4aBfTf":["Users can\'t change the model when using this AI agent."],"SsgICz":["Using <0>",["0"],""],"fgipLP":["Using <0>",["0"],"..."],"UQfGo/":["Using alternative email server. Please enter your email and click send login code again."],"OoaSi5":["Using Open Router? See instructions here"],"48CuDM":["variable"],"xJggb1":["Variable names in the OpenAI Function Spec must consist of only letters and numbers, without spaces or special characters."],"0PQOqS":["Variable names in the User Settings must consist of only letters and numbers, without spaces or special characters."],"/AB7hm":["variables"],"e/cvV1":["Verifying..."],"YYdC3A":["Version ",["0"]],"bSSnpo":["Very sorry about this inconvenience!"],"nDMP/Q":["View all (",["count"],")"],"SZw9tS":["View Details"],"KvFtJO":["View Full Changelog →"],"dxFcof":["View Full Error"],"enkk1U":["View inline in chat"],"xZykeZ":["View plugin in chat"],"2q/Q7x":["Visibility"],"hs6G7P":["Vision supported"],"3BQnyB":["Voice ID"],"8YQMY4":["Voice Input"],"M7vN5/":["Voice Settings"],"cKuv8v":["Voice:"],"kWu0yk":["Waiting for previous audio to finish..."],"Wtu1aS":["Warm"],"Ud2w4n":["Warning: you have ",["unencryptedKeys","plural",{"one":["#"," unencrypted API key"],"other":["#"," unencrypted API keys"]}],". Please enter your password again to encrypt them."],"EK7vb0":["We are receiving multiple reports of OpenAI being slow or unresponsive. This is likely due to high demand. If your message is not being sent, please try again later. This issue will usually be resolved within a few hours. If it takes too long, go to <0>https://status.openai.com to check OpenAI service\'s status."],"W4JNTJ":["We encountered an error loading the initial context. You can continue using the application, but some information may be missing."],"Wtg0tB":["We found <0>",["0"]," chats that we were able to restore."],"qKRCLC":["We only notify you when <0>new features are added.<1/>No spam. Unsubscribe anytime."],"tD12zF":["We released <0>100+ updates in the last 6 months! You\'ll never get left behind on the new features and AI capabilities from OpenAI/Anthropic/Google."],"oVltH4":["We\'ve sent a code to your email. Please check your inbox (or spam folder) and enter the code below."],"9kNmZU":["Web API (Free)"],"LnnVIT":["Web Search"],"i8itRy":["Web Search is best used with GPT-4 because it has a larger context length and can store more search results and can pull out information from search result more reliably. However, you can still Web Search with GPT-3.5 without problems (most of the time)."],"rxEvnk":["Webinar"],"/IAPcI":["Welcome message"],"0ZTOta":["Welcome Message:"],"goIoni":["Welcome to TypingMind!"],"W4q2I+":["What about my privacy? Who can see my search query?"],"O6XziL":["What are the limitations of the free plans."],"iB2Bkg":["What are the limits? How many searches can I do?"],"DWdDaE":["What are the premium features?"],"XDMAfS":["What can I customize in the self-host version?"],"DwMTUj":["What is self-hosting?"],"h1Bn7G":["What permissions do I have with the self-host code?"],"zp5xO6":["What search engines are supported?"],"+Z6WVE":["What\'s the difference between ChatGPT Plus and ChatGPT API via TypingMind?"],"2h+sn/":["When you enable Web Search, TypingMind will use the function call feature provided by OpenAI models how to perform a search query using the selected search engine (which is Google by default). The model will then attempt to run a search command only when necessary and use the search result to answer your question."],"opv8HK":["When you reach a certain length, you cannot add any more messages to the chat. This is the <0>context length limit of the OpenAI\'s API."],"v2mmfw":["Where can I deploy my self-host version?"],"9uiWR5":["Where can I get an OpenAI API Key?"],"qbPmKP":["Where can I get the search engine API Key?"],"+bBKUL":["Whisper Model:"],"vkJWU0":["Whitepaper"],"nBo3N2":["Why does sometimes TypingMind responds differently than the default OpenAI\'s ChatGPT event with the same prompt?"],"Gi4C7z":["Why don\'t you offer technical support for the self-hosted version?"],"AUHjnb":["Why self-hosting? What are the benefits?"],"eXdID6":["Wide (1000px)"],"R2ZXpR":["Writing Style"],"l75CjT":["Yes"],"doZNDE":["Yes, Clear All Storage"],"+wDpvB":["Yes, license key is one-time purchase and valid forever. It is not a subscription and you don\'t need to renew it. You will also be provided with an offline static web app (self-host) after you purchase so you can self-host and use the app anytime anywhere you want. Enjoy!"],"Kb4R2a":["Yes, Unlink Now"],"GwJlK4":["Yes, use free Setapp models"],"ODPLFu":["Yes, you can use GPT-4 in TypingMind via the API access. Check out this article for more info: https://blog.typingmind.com/access-gpt-4-on-typingmind"],"sAVvxp":["Yes. After you make a purchase, go to https://www.typingmind.com/self-host-guide to download the static web app and the instruction how to deploy it on your own server. Note that you will only receive the compiled code of the app, the full source code is not available because the app is not open-source. You can deploy the app anywhere without having to update any code or settings."],"phssxy":["Yes. After you make a purchase, you will receive a link to download the static web app and the instruction how to deploy it on your own server. Note that you will only receive the compiled code of the app, the full source code is not available because the app is not open-source. You can deploy the app anywhere without having to update any code or settings."],"3ZEDHA":["Yes. Both are needed, as the self-hosted version is exactly the same as the version you see on TypingMind.com. The License Key is needed in the self-host version. When you enter the license key, the app will connect to TypingMind\'s license server to verify your license."],"UohlSp":["Yes. TypingMind only stores your API Key locally and never sends your API Key anywhere. OpenAI allows use cases where the API key is stored locally in the user\'s device. You can see this official response from OpenAI\'s staff here: https://community.openai.com/t/openais-bring-your-own-key-policy/14538/4"],"oKL8Ih":["Yes. We offer a 14-day money-back guarantee. If you\'re not satisfied, let us know within 14 days and we\'ll give you a full refund. Request a refund at support@typingmind.com"],"9dFN/h":["Yes. You need to have an OpenAI account and a valid API key to use ChatGPT. We don\'t sell API keys."],"+Obvhr":["You appear to be offline. Please check your internet connection and try again."],"rHUldn":["You are a helpful AI assistant."],"v6qdxF":["You are connected."],"ABRN9T":["You are not connected. Please authenticate to use this plugin."],"kW6uow":["You are now using profile \\"",["0"],"\\""],"qzMmix":["You are now using profile \\"Unnamed\\""],"2LLYJB":["You are on the <0>",["0"]," plan"],"R0g4gG":["You are using a preview version."],"Ny0rdk":["You are using the <0><1>free trial version."],"S2lnkb":["You can continue this in a new chat, but keep in mind that the assistant will not remember the previous conversation."],"jzCkMH":["You can delete some old messages from this chat, then start sending new messages again."],"j+Ja1t":["You can export the chats and import it on another device. You can also enable TypingMind Cloud for seamless syncing across devices. TypingMind Cloud is a free service provided to all paying TypingMind users. You can enable it by clicking the cloud icon at the bottom of the sidebar."],"le4y7Z":["You can go to https://www.typingmind.com/license to access your license key."],"a1v3bw":["You can have as many chats as you want. The only limit is your OpenAI API key\'s limit and your browser storage limit (technical term: Local Storage and IndexedDB). Web browser gives you some limited data storage, the actual limit is different for each browser. Typically, you can save thousands of chat conversations without problems, but that\'s not guaranteed. When the browser storage runs out, you will need to delete old chats to save the new ones. We will provide a separate service to sync and backup your chats soon. Adding the website to your home screen may increase the storage capacity."],"acFGPW":["You can now close this window."],"b/cYO6":["You can share a chat multiple times and have different links each time. The link contains the chat conversation and the time it was created."],"B7bPOO":["You can signup directly with OpenAI at https://platform.openai.com/signup"],"G4U6ac":["You can still continue to chat, but the model will start to forget the old messages."],"MSib0J":["You can, but keep in mind that they will also need a TypingMind License Key and OpenAI API Key in order to use it. If you are looking to use TypingMind for a team check out https://custom.typingmind.com"],"EqTwmj":["You cannot edit the system AI agents. Please clone them to make changes."],"kgSpG5":["You cannot share the system AI agents. Please clone them to share."],"meXG5q":["You don\'t have a license key. Please buy or enter a license key to continue using all features."],"yZwzBP":["You don\'t have any AI agents yet."],"IBn/EB":["You don\'t have any invite codes. Please come back later."],"N775f5":["You don\'t have any profiles, click \\"Add profile\\" to create a new one"],"tdX+tp":["You have"],"HSfYBl":["You have ",["0"]," large chat(s) that require backup."],"GF1tzK":["You have <0>",["0"]," changes that have not been synced to the cloud. Your last sync was ",["1"]," (<1>",["2"],")."],"ejaSaN":["You have <0>",["0"],"."],"X6EZIu":["You have deleted the agent successfully!"],"0we8PW":["You have deleted the plugin successfully!"],"LjgHYd":["You have logged out of Cloud Sync. Do you want to clear all your data in the current device?"],"fmVolr":["You have no saved prompts. Tap \\"Add Prompt\\" to add a new prompt."],"sTxGM6":["You have reached the context length limit of the <0>",["model"]," model for this chat."],"hzwvwf":["You have reached the maximum number of dynamic context endpoints."],"ICsA6P":["You have unsaved changes"],"TKppIR":["You have unsaved changes."],"O7hKeS":["You have unsynced changes"],"02OlWC":["You need an Anthropic API Key to use TypingMind."],"K3giZ9":["You need an Gemini API Key to use TypingMind."],"zNOnmO":["You need an OpenAI API Key to use the app."],"GhBsU+":["You need to buy a license key to use this feature."],"zFLIIJ":["You now have ",["0"]," on this device"],"d/uOLs":["You will need this license key when you use TypingMind on another device. You will also receive a receipt and a license key <0>in your email shortly."],"NTiTcj":["Your AI agents"],"/UaKK0":["Your API is safe and stored locally on your device. This is a static app, which means that it doesn\'t have a backend. All the data is stored in your browser\'s local storage. Requests to Open AI\'s API is sent directly from your current browser (check the Network tab in your console if you want to see it)."],"uxcgu1":["Your API key is encrypted with a password"],"yX4ZJX":["Your API Key is stored locally on your browser and never sent anywhere else."],"70QBvo":["Your API Key is working normally."],"Wzyks2":["Your browser does not support speech synthesis."],"BS31Ou":["Your character description"],"abiI8L":["Your character title"],"HS7jeS":["your content here"],"cHR7zG":["Your data include chat messages, agents, prompts, custom models, app settings, etc."],"F56PXI":["Your department, bio, etc."],"vpp2uI":["Your Information"],"PnL/Iu":["Your license is activated"],"lZKsDP":["Your license key is being used on more devices than its limit allows. Please unlink other devices and enter your license key again.<0/>Click <1>Manage/Recover License Key to go to the License Manager."],"WQv9/K":["Your license key is: <0>***",["0"]," "],"/Rj5P4":["Your Name"],"+e9xkq":["Your Prompts"],"At02Ci":["Your Public Link:"],"uYL3GC":["Your Public Link: (tap below to copy)"],"kIKiOK":["Your sastifaction is our top priority!"],"38yscL":["Your users will not see the endpoints and the content of the Dynamic Context."],"QOj7An":["Your users will not see the training files you uploaded."],"81+Izy":["Your users will not see these prompts"],"t03RMp":["Your users will not see this instruction."]}')}},18477:(e,t,r)=>{"use strict";r.d(t,{A:()=>h,I:()=>d});var n=r(88017),i=r(97630),o=r.n(i),a=r(44109),s=r(24760),u=r(879),c=r(85910);let l=(0,a.createContext)(),d=()=>(0,a.useContext)(l),f={id:"lkE00/"};function h(e){let{children:t,defaultUser:r}=e,[i,d]=(0,a.useState)(null),[h,p]=(0,a.useState)(r),[m,g]=(0,a.useState)(!0),[y,b]=(0,a.useState)(null),{i18n:v}=(0,u.uB)(),w=(0,a.useCallback)(async()=>{g(!0),b("");try{let e=await fetch("/api/hosted-users/users/self",{headers:{"Content-Type":"application/json"}});if(403===e.status){await S();return}if(e.status>=400){let t=await e.json();b(t.userMessage||v._(f)),g(!1);return}if(!e.ok){b(v._(f)),g(!1);return}let t=await e.json();return p(t),t}catch(e){b(v._(f)),console.error(e)}return g(!1),null},[]),S=(0,a.useCallback)(async()=>{try{await fetch("/api/hosted-users/logout",{method:"POST"})}catch(e){}s.A.remove("org_token"),s.A.remove("typingmindcloud_token"),await _(),window.location.reload()},[]),_=(0,a.useCallback)(async()=>{window.localStorage.clear(),await (0,c.g5)()},[]),x=(0,a.useCallback)(()=>{let e=s.A.get("typingmindcloud_token");try{let t=o().decode(e);d(t)}catch(e){console.error("Failed to decode cloud token",e)}},[]),A=(0,a.useCallback)(()=>{s.A.remove("typingmindcloud_token"),d(null)},[]);(0,a.useEffect)(()=>{x()},[]);let k=(0,a.useMemo)(()=>({user:h,loading:m,loadUser:w,logout:S,setUser:p,cloudTokenPayload:i,loadCloudSyncTokenFromCookie:x,logoutCloudSyncOnly:A,clearAllLocalData:_}),[h,m,w,S,p,i,x,A,_]);return(0,n.jsx)(l.Provider,{value:k,children:t})}},19154:(e,t,r)=>{"use strict";let n=r(62492),i="undefined"!=typeof window?r(72076).Buffer:r.g.Buffer;function o(e){return 12+4*Math.ceil(e.length/4)}function a(){return"undefined"==typeof window||"undefined"==typeof document}function s(e){return e.BYTES_PER_ELEMENT?e.length*e.BYTES_PER_ELEMENT:-1}function u(e){let t=0,r=-1;try{let r=e;if(e instanceof Map?r=Object.fromEntries(e):e instanceof Set&&(r=Array.from(e)),ArrayBuffer.isView(e))return s(e);let n=JSON.stringify(r,(e,t)=>{if("bigint"==typeof t||"function"==typeof t)return t.toString();if(void 0===t)return"undefined";if("symbol"==typeof t)return t.toString();if(t instanceof RegExp)return t.toString();else return t});t=i.byteLength(n,"utf8")}catch(e){return Error(r)}return t}function c(e){let t=[],r=[e],s=0;for(;r.length;){let u=r.pop();if("boolean"==typeof u)s+=n.BYTES;else if("string"==typeof u)a()?s+=o(u):s+=u.length*n.STRING;else if("number"==typeof u)s+=n.NUMBER;else if("symbol"==typeof u)Symbol.keyFor&&Symbol.keyFor(e)?s+=Symbol.keyFor(e).length*n.STRING:s+=(e.toString().length-8)*n.STRING;else if("bigint"==typeof u)s+=i.from(u.toString()).byteLength;else if("function"==typeof u)s+=u.toString().length;else if("object"==typeof u&&-1===t.indexOf(u))for(let e in t.push(u),u)r.push(u[e])}return s}e.exports=function(e){let t=0;return null!==e&&"object"==typeof e?u(e):c(e)}},19543:e=>{"use strict";e.exports=URIError},20810:(e,t,r)=>{let n=Symbol("SemVer ANY");class i{static get ANY(){return n}constructor(e,t){if(t=o(t),e instanceof i){if(!!t.loose===e.loose)return e;e=e.value}c("comparator",e=e.trim().split(/\s+/).join(" "),t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===n?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){let t=this.options.loose?a[s.COMPARATORLOOSE]:a[s.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new l(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===n||e===n)return!0;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}return u(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof i))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new d(e.value,t).test(this.value):""===e.operator?""===e.value||new d(this.value,t).test(e.semver):!((t=o(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||u(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||u(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"))}}e.exports=i;let o=r(52421),{safeRe:a,t:s}=r(69686),u=r(90971),c=r(44990),l=r(22626),d=r(83715)},21316:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},21634:(e,t,r)=>{let n=r(22626),i=(e,t)=>new n(e,t).minor;e.exports=i},22049:(e,t,r)=>{let n=r(16241),i=(e,t)=>e.sort((e,r)=>n(r,e,t));e.exports=i},22626:(e,t,r)=>{let n=r(44990),{MAX_LENGTH:i,MAX_SAFE_INTEGER:o}=r(16048),{safeRe:a,t:s}=r(69686),u=r(52421),{compareIdentifiers:c}=r(83493);class l{constructor(e,t){if(t=u(t),e instanceof l){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw TypeError(`version is longer than ${i} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let r=e.trim().match(t.loose?a[s.LOOSE]:a[s.FULL]);if(!r)throw TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>o||this.major<0)throw TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let n=[t,e];!1===r&&(n=[t]),0===c(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=l},22835:module=>{var __dirname="/";!function(){var __webpack_modules__={950:function(__unused_webpack_module,exports){var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0;r{let n=r(22626),i=r(83715),o=(e,t,r)=>{let o=null,a=null,s=null;try{s=new i(t,r)}catch(e){return null}return e.forEach(e=>{s.test(e)&&(!o||-1===a.compare(e))&&(a=new n(o=e,r))}),o};e.exports=o},24607:(e,t,r)=>{"use strict";function n(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}r.d(t,{A:()=>n})},24760:(e,t,r)=>{"use strict";function n(e){for(var t=1;to});var o=i({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})},24791:(e,t,r)=>{let n=r(22626),i=r(83715),o=r(32742),a=(e,t)=>{e=new i(e,t);let r=new n("0.0.0");if(e.test(r)||(r=new n("0.0.0-0"),e.test(r)))return r;r=null;for(let t=0;t{let t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!a||o(t,a))&&(a=t);break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),a&&(!r||o(r,a))&&(r=a)}return r&&e.test(r)?r:null};e.exports=a},25561:(e,t,r)=>{"use strict";var n=("undefined"!=typeof JSON?JSON:r(14574)).stringify,i=r(67602),o=r(75166),a=r(34802),s=r(11361),u=s("Array.prototype.join"),c=s("Array.prototype.indexOf"),l=s("Array.prototype.splice"),d=s("Array.prototype.sort"),f=function(e,t){for(var r="",n=0;n1?arguments[1]:void 0,r=t&&t.space||"";"number"==typeof r&&(r=f(r," "));var s=!!t&&"boolean"==typeof t.cycles&&t.cycles,p=t&&t.replacer?a(t.replacer):h,m="function"==typeof t?t:t&&t.cmp,g=m&&function(e){var t=m.length>2&&function(t){return e[t]};return function(r,n){return m({key:r,value:e[r]},{key:n,value:e[n]},t?{__proto__:null,get:t}:void 0)}},y=[];return function e(t,a,h,m){var b=r?"\n"+f(m,r):"",v=r?": ":":";if(h&&h.toJSON&&"function"==typeof h.toJSON&&(h=h.toJSON()),void 0!==(h=p(t,a,h))){if("object"!=typeof h||null===h)return n(h);if(i(h)){for(var w=[],S=0;S{function t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function r(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&t(e.slice(0,0))}e.exports=function(e){return null!=e&&(t(e)||r(e)||!!e._isBuffer)}},26512:(e,t,r)=>{var n=r(72076).Buffer;e.exports=function(e){return"string"==typeof e?e:"number"==typeof e||n.isBuffer(e)?e.toString():JSON.stringify(e)}},26844:(e,t,r)=>{let n=r(22626),i=r(52252),{safeRe:o,t:a}=r(69686),s=(e,t)=>{if(e instanceof n)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){let n;let i=t.includePrerelease?o[a.COERCERTLFULL]:o[a.COERCERTL];for(;(n=i.exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&n.index+n[0].length===r.index+r[0].length||(r=n),i.lastIndex=n.index+n[1].length+n[2].length;i.lastIndex=-1}else r=e.match(t.includePrerelease?o[a.COERCEFULL]:o[a.COERCE]);if(null===r)return null;let s=r[2],u=r[3]||"0",c=r[4]||"0",l=t.includePrerelease&&r[5]?`-${r[5]}`:"",d=t.includePrerelease&&r[6]?`+${r[6]}`:"";return i(`${s}.${u}.${c}${l}${d}`,t)};e.exports=s},27036:(e,t,r)=>{"use strict";r.d(t,{W:()=>o});var n=r(44109),i=r(30362);let o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],[t,r]=(0,n.useState)(e);return(0,n.useEffect)(()=>{let e=async()=>{r(await (0,i.Mi)().get("TM_useUserPrompts")||[])};return e(),window.addEventListener("update-user-prompts",e),()=>{window.removeEventListener("update-user-prompts",e)}},[]),[t,(0,n.useCallback)(async e=>{let t=await (0,i.Mi)().get("TM_useUserPrompts")||[],n="function"==typeof e?e(t):e;r(n),await (0,i.Mi)().set("TM_useUserPrompts",n);{let e=new Event("update-user-prompts");window.dispatchEvent(e)}},[])]}},27604:e=>{"use strict";e.exports=Object},28127:(e,t,r)=>{let n=r(22626),i=(e,t,r,i,o)=>{"string"==typeof r&&(o=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,o).version}catch(e){return null}};e.exports=i},28265:(e,t,r)=>{"use strict";var n=r(6333),i=r(10701),o=r(45703);e.exports=n?function(e){return n(e)}:i?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("getProto: not an object");return i(e)}:o?function(e){return o(e)}:null},28554:e=>{var t={};e.exports=t;var r={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(r).forEach(function(e){var n=r[e],i=t[e]=[];i.open="\x1b["+n[0]+"m",i.close="\x1b["+n[1]+"m"})},29831:(e,t,r)=>{var n=r(2272),i=r(98625);e.exports=i.satisfies(n.version,"^6.12.0 || >=8.0.0")},29979:(e,t,r)=>{var n=r(2272),i=r(2549).Buffer,o=r(66856);function a(e){if(this.buffer=null,this.writable=!0,this.readable=!0,!e)return this.buffer=i.alloc(0),this;if("function"==typeof e.pipe)return this.buffer=i.alloc(0),e.pipe(this),this;if(e.length||"object"==typeof e)return this.buffer=e,this.writable=!1,n.nextTick((function(){this.emit("end",e),this.readable=!1,this.emit("close")}).bind(this)),this;throw TypeError("Unexpected data type ("+typeof e+")")}r(65723).inherits(a,o),a.prototype.write=function(e){this.buffer=i.concat([this.buffer,i.from(e)]),this.emit("data",e)},a.prototype.end=function(e){e&&this.write(e),this.emit("end",e),this.emit("close"),this.writable=!1,this.readable=!1},e.exports=a},30013:e=>{"use strict";var t=Object.prototype.hasOwnProperty,r="~";function n(){}function i(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function o(e,t,n,o,a){if("function"!=typeof n)throw TypeError("The listener must be a function");var s=new i(n,o||e,a),u=r?r+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],s]:e._events[u].push(s):(e._events[u]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function s(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1)),s.prototype.eventNames=function(){var e,n,i=[];if(0===this._eventsCount)return i;for(n in e=this._events)t.call(e,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,a=Array(o);i{"use strict";r.d(t,{ur:()=>b,Mi:()=>g.Mi,c7:()=>g.c7,ML:()=>a});var n=r(44109),i=r(25561),o=r.n(i);function a(e,t,i,o){void 0===i&&(i=r.g),void 0===o&&(o={});var a=(0,n.useRef)(),s=o.capture,u=o.passive,c=o.once;(0,n.useEffect)(function(){a.current=t},[t]),(0,n.useEffect)(function(){if(i&&i.addEventListener){var t=function(e){return a.current(e)},r={capture:s,passive:u,once:c};return i.addEventListener(e,t,r),function(){i.removeEventListener(e,t,r)}}},[e,i,s,u,c])}let s={},u=(e,t,r)=>(s[e]||(s[e]={callbacks:[],value:r}),s[e].callbacks.push(t),{deregister(){let r=s[e].callbacks,n=r.indexOf(t);n>-1&&r.splice(n,1)},emit(r){s[e].value!==r&&(s[e].value=r,s[e].callbacks.forEach(e=>{t!==e&&setTimeout(()=>{e(r)},0)}))}}),c=(e,t,r)=>{let{get:i,set:o}=r,s=(0,n.useRef)(null),[c,l]=(0,n.useState)(()=>i(t,e)),d=(0,n.useRef)([]);return a("storage",r=>{let{key:n,newValue:i}=r;if(n===t){let t;try{t=JSON.parse(i)}catch(r){console.error("usePersistedState failed to parse",n,JSON.stringify(i),r),t=e}c!==t&&l(t)}}),(0,n.useEffect)(()=>{s.current=u(t,l,c);let r=d;return()=>{if(r.current.length>0){console.warn("usePersistedState is unmounting with pending updates, flushing to storage");let n=i(t,e);for(let e of r.current)n=e(n);o(t,n),s.current.emit(n)}s.current.deregister()}},[t]),[c,(0,n.useCallback)(r=>{{let e=new Event("local-storage");e.key=t,window.dispatchEvent(e)}if("function"==typeof r)d.current.push(r),l(n=>{try{let i=r(n);return null===i&&void 0!==e&&(null!==e&&console.warn("[usePersistedState Note] A persisted state with null value will be set to the default non-null value. ".concat(t," is now set to:"),e),i=e),o(t,i),s.current.emit(i),i}finally{let e=d.current.findIndex(e=>e===r);-1!==e&&d.current.splice(e,1)}});else{let n=r;null===n&&void 0!==e&&(null!==e&&console.warn("[usePersistedState Note] A persisted state with null value will be set to the default non-null value. ".concat(t," is now set to:"),e),n=e),o(t,n),l(n),s.current.emit(n)}},[e,o,t])]},l=(e,t)=>{try{return JSON.parse(e)}catch(e){return t}},d=e=>({get(t,r){let n=e.getItem(t),i="function"==typeof r?r():r;return"null"===n&&void 0===r?null:null===n||"null"===n||void 0===n?i:l(n,i)},set(t,r){e.setItem(t,JSON.stringify(r))}}),f={},h=()=>void 0!==r.g&&r.g.localStorage?r.g.localStorage:"undefined"!=typeof globalThis&&globalThis.localStorage?globalThis.localStorage:window.localStorage?window.localStorage:"undefined"!=typeof localStorage?localStorage:null,p=(e,t)=>{if(!(e in f))return f[e]=t,t;{if(t===f[e])return t;let r=o()(t),n=o()(f[e]);return r===n?f[e]:(console.error("⚠️ createPersistedState: inconsistant initialState provided for key ".concat(e," (changed from ").concat(n," to ").concat(r,"). This can lead to unexpected behavior. usePersistedState should always be created with the same initialState for the same key.")),t)}},m=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h();if(t){let r=d(t);return t=>c(p(e,t),e,r)}return n.useState};var g=r(16769);let y="TM_",b=e=>m(y+e)},30875:(e,t,r)=>{let n=r(83715),i=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "));e.exports=i},31553:e=>{"use strict";e.exports=Math.abs},31759:(e,t,r)=>{var n=r(86823),i=r(2549).Buffer,o=r(70103),a=r(84244),s=r(65723),u='"%s" is not a valid algorithm.\n Supported algorithms are:\n "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".',c="secret must be a string or buffer",l="key must be a string or a buffer",d="key must be a string, a buffer or an object",f="function"==typeof o.createPublicKey;function h(e){if(!i.isBuffer(e)&&"string"!=typeof e&&(!f||"object"!=typeof e||"string"!=typeof e.type||"string"!=typeof e.asymmetricKeyType||"function"!=typeof e.export))throw b(l)}function p(e){if(!i.isBuffer(e)&&"string"!=typeof e&&"object"!=typeof e)throw b(d)}function m(e){if(!i.isBuffer(e)){if("string"==typeof e)return e;if(!f||"object"!=typeof e||"secret"!==e.type||"function"!=typeof e.export)throw b(c)}}function g(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function y(e){var t=4-(e=e.toString()).length%4;if(4!==t)for(var r=0;r{"use strict";e.exports=Math.round},32742:(e,t,r)=>{let n=r(78968),i=(e,t,r)=>n(e,t,r)>0;e.exports=i},32860:(e,t,r)=>{"use strict";r.d(t,{A:()=>i,b:()=>n});var n=r(30013);let i=n},33685:(e,t)=>{t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<>1,l=-7,d=r?i-1:0,f=r?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-l)-1,h>>=-l,l+=s;l>0;o=256*o+e[t+d],d+=f,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=256*a+e[t+d],d+=f,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),o-=c}return(h?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,f=5960464477539062e-23*(23===i),h=n?0:o-1,p=n?1:-1,m=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(s=+!!isNaN(t),a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+d>=1?t+=f/u:t+=f*Math.pow(2,1-d),t*u>=2&&(a++,u/=2),a+d>=l?(s=0,a=l):a+d>=1?(s=(t*u-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[r+h]=255&s,h+=p,s/=256,i-=8);for(a=a<0;e[r+h]=255&a,h+=p,a/=256,c-=8);e[r+h-p]|=128*m}},33712:(e,t,r)=>{let n=r(78968),i=(e,t,r)=>0>=n(e,t,r);e.exports=i},34802:(e,t,r)=>{"use strict";var n=r(69206),i=r(97783),o=r(1853),a=r(99086);e.exports=function(e){var t=o(arguments),r=e.length-(arguments.length-1);return n(t,1+(r>0?r:0),!0)},i?i(e.exports,"apply",{value:a}):e.exports.apply=a},36734:(e,t,r)=>{!function(){var t=r(83277),n=r(15561).utf8,i=r(25999),o=r(15561).bin,a=function(e,r){e.constructor==String?e=r&&"binary"===r.encoding?o.stringToBytes(e):n.stringToBytes(e):i(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var s=t.bytesToWords(e),u=8*e.length,c=0x67452301,l=-0x10325477,d=-0x67452302,f=0x10325476,h=0;h>>24)&0xff00ff|(s[h]<<24|s[h]>>>8)&0xff00ff00;s[u>>>5]|=128<>>9<<4)+14]=u;for(var p=a._ff,m=a._gg,g=a._hh,y=a._ii,h=0;h>>0,l=l+v>>>0,d=d+w>>>0,f=f+S>>>0}return t.endian([c,l,d,f])};a._ff=function(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+(i>>>0)+a;return(s<>>32-o)+t},a._gg=function(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+(i>>>0)+a;return(s<>>32-o)+t},a._hh=function(e,t,r,n,i,o,a){var s=e+(t^r^n)+(i>>>0)+a;return(s<>>32-o)+t},a._ii=function(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+(i>>>0)+a;return(s<>>32-o)+t},a._blocksize=16,a._digestsize=16,e.exports=function(e,r){if(null==e)throw Error("Illegal argument "+e);var n=t.wordsToBytes(a(e,r));return r&&r.asBytes?n:r&&r.asString?o.bytesToString(n):t.bytesToHex(n)}}()},37207:e=>{var t="[object Boolean]",r=Object.prototype.toString;function n(e){return!0===e||!1===e||i(e)&&r.call(e)==t}function i(e){return!!e&&"object"==typeof e}e.exports=n},37916:(e,t,r)=>{let n=r(83715),i=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}};e.exports=i},37991:e=>{var t=function(e,t){Error.call(this,e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="JsonWebTokenError",this.message=e,t&&(this.inner=t)};t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,e.exports=t},38356:e=>{"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};function i(e){console&&console.warn&&console.warn(e)}t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}e.exports=a,e.exports.once=b,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var s=10;function u(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function l(e,t,r,n){if(u(r),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),s=a[t]),void 0===s)s=a[t]=r,++e._eventsCount;else if("function"==typeof s?s=a[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(o=c(e))>0&&s.length>o&&!s.warned){s.warned=!0;var o,a,s,l=Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,i(l)}return e}function d(){if(!this.fired)return(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length)?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=d.bind(n);return i.listener=r,n.wrapFn=i,i}function h(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?y(i):m(i,i.length)}function p(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function m(e,t){for(var r=Array(t),n=0;n0&&(a=t[0]),a instanceof Error)throw a;var a,s=Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)n(u,this,t);else for(var c=u.length,l=m(u,c),r=0;r=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():g(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0==arguments.length){var i,o=Object.keys(r);for(n=0;n=0;n--)this.removeListener(e,t[n]);return this},a.prototype.listeners=function(e){return h(this,e,!0)},a.prototype.rawListeners=function(e){return h(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},a.prototype.listenerCount=p,a.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},38507:e=>{"use strict";e.exports=Math.pow},39606:function(e,t){var r,n,i;(function(){var o,a,s,u,c,l,d,f,h,p,m,g,y,b,v;s=Math.floor,p=Math.min,a=function(e,t){return et)},h=function(e,t,r,n,i){var o;if(null==r&&(r=0),null==i&&(i=a),r<0)throw Error("lo must be non-negative");for(null==n&&(n=e.length);ri(t,e[o=s((r+n)/2)])?n=o:r=o+1;return[].splice.apply(e,[r,r-r].concat(t)),t},l=function(e,t,r){return null==r&&(r=a),e.push(t),b(e,0,e.length-1,r)},c=function(e,t){var r,n;return null==t&&(t=a),r=e.pop(),e.length?(n=e[0],e[0]=r,v(e,0,t)):n=r,n},f=function(e,t,r){var n;return null==r&&(r=a),n=e[0],e[0]=t,v(e,0,r),n},d=function(e,t,r){var n;return null==r&&(r=a),e.length&&0>r(e[0],t)&&(t=(n=[e[0],t])[0],e[0]=n[1],v(e,0,r)),t},u=function(e,t){var r,n,i,o,u,c;for(null==t&&(t=a),o=(function(){c=[];for(var t=0,r=s(e.length/2);0<=r?tr;0<=r?t++:t--)c.push(t);return c}).apply(this).reverse(),u=[],n=0,i=o.length;nr(n=m[l],o)&&(h(s,n,0,null,r),s.pop(),o=s[s.length-1]);return s}for(u(e,r),y=[],i=d=0,g=p(t,e.length);0<=g?dg;i=0<=g?++d:--d)y.push(c(e,r));return y},b=function(e,t,r,n){var i,o,s;for(null==n&&(n=a),i=e[r];r>t;){if(0>n(i,o=e[s=r-1>>1])){e[r]=o,r=s;continue}break}return e[r]=i},v=function(e,t,r){var n,i,o,s,u;for(null==r&&(r=a),i=e.length,u=t,o=e[t],n=2*t+1;nr(e[n],e[s]))&&(n=s),e[t]=e[n],n=2*(t=n)+1;return e[t]=o,b(e,u,t,r)},o=function(){function e(e){this.cmp=null!=e?e:a,this.nodes=[]}return e.push=l,e.pop=c,e.replace=f,e.pushpop=d,e.heapify=u,e.updateItem=y,e.nlargest=m,e.nsmallest=g,e.prototype.push=function(e){return l(this.nodes,e,this.cmp)},e.prototype.pop=function(){return c(this.nodes,this.cmp)},e.prototype.peek=function(){return this.nodes[0]},e.prototype.contains=function(e){return -1!==this.nodes.indexOf(e)},e.prototype.replace=function(e){return f(this.nodes,e,this.cmp)},e.prototype.pushpop=function(e){return d(this.nodes,e,this.cmp)},e.prototype.heapify=function(){return u(this.nodes,this.cmp)},e.prototype.updateItem=function(e){return y(this.nodes,e,this.cmp)},e.prototype.clear=function(){return this.nodes=[]},e.prototype.empty=function(){return 0===this.nodes.length},e.prototype.size=function(){return this.nodes.length},e.prototype.clone=function(){var t;return(t=new e).nodes=this.nodes.slice(0),t},e.prototype.toArray=function(){return this.nodes.slice(0)},e.prototype.insert=e.prototype.push,e.prototype.top=e.prototype.peek,e.prototype.front=e.prototype.peek,e.prototype.has=e.prototype.contains,e.prototype.copy=e.prototype.clone,e}(),function(o,a){n=[],void 0!==(i="function"==typeof(r=a)?r.apply(t,n):r)&&(e.exports=i)}(0,function(){return o})}).call(this)},40920:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_});var n=r(88017);r(74602),r(71884),r(84610),r(74961);var i=r(879),o=r(81674),a=r(44109),s=r(63122),u=r(30362);function c(){let[e,t]=(0,a.useState)(!1),[r,i]=(0,a.useState)(""),o=()=>{window.location.reload()},s=async()=>{let e=await (0,u.Mi)().entries();i(JSON.stringify({localStorage:window.localStorage,indexedDbData:e}))},c=()=>{var e,t,r;window.localStorage.clear(),null===(r=window.webkit)||void 0===r||null===(t=r.messageHandlers)||void 0===t||null===(e=t.TypingMindMacApp)||void 0===e||e.postMessage("CLEAR_ALL_DATA"),window.location.reload()},l=()=>{t(!0)};return(0,n.jsxs)("div",{className:"my-4 max-w-xl mx-auto",children:[(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("button",{onClick:o,className:"inline-flex items-center px-4 py-2 border border-transparent text-base font-medium rounded-md shadow-sm text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:bg-gray-400 gap-2",children:(0,n.jsx)("span",{children:"Reload App"})}),(0,n.jsx)("div",{className:"text-sm my-2",children:"This will restart the app and reload all data. It should fix any temporary data coruption with no data lost but you will lose any unsaved changes."})]}),(0,n.jsxs)("details",{className:"space-y-8 text-center p-4 rounded-md border border-gray-200 my-4",children:[(0,n.jsx)("summary",{className:"my-4 text-lg font-semibold cursor-pointer hover:underline",children:"View Recovery Options"}),(0,n.jsxs)("div",{children:[(0,n.jsx)("button",{onClick:s,className:"inline-flex items-center px-4 py-2 border border-transparent text-base font-medium rounded-md shadow-sm text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 disabled:bg-gray-400 gap-2",children:(0,n.jsx)("span",{children:"Dump All Local Data"})}),(0,n.jsx)("div",{className:"text-sm my-2",children:"This will give you a copy of all the local data currently stored on this device. This data can be inspected by the developer to figure out what went wrong."})]}),r?(0,n.jsxs)("div",{className:"text-left",children:[(0,n.jsx)("div",{className:"text-sm my-2",children:(0,n.jsxs)("span",{className:"font-semibold",children:["Here is your data dump: (",r.length.toLocaleString()," ","bytes)",(0,n.jsx)("br",{}),"Note: This data dump contains all of your previous chat conversations, messages, prompts, custom characters, bookmarks, etc."]})}),(0,n.jsx)("textarea",{className:"w-full h-64 p-2 border border-gray-200 rounded-md",value:r})]}):null,(0,n.jsxs)("div",{children:[(0,n.jsx)("button",{onClick:l,className:"inline-flex items-center px-4 py-2 border border-transparent text-base font-medium rounded-md shadow-sm text-white bg-red-600 hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 disabled:bg-gray-400 gap-2",children:(0,n.jsx)("span",{children:"Clear All Data"})}),(0,n.jsx)("div",{className:"text-sm my-2 text-red-500",children:"This well return the app to its factory settings. All local data will be deleted and the app will be reset to its initial state. This will cause data lost!/"}),e?(0,n.jsxs)("div",{className:"text-sm my-2 text-red-500",children:["Are you sure you want to do this? This will cause data lost!",(0,n.jsx)("div",{className:"my-2",children:(0,n.jsx)("button",{onClick:c,className:"inline-flex items-center px-4 py-2 border border-transparent text-base font-medium rounded-md shadow-sm text-white bg-red-600 hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 disabled:bg-gray-400 gap-2",children:(0,n.jsx)("span",{children:"Yes, I'm sure. Delete all of my data on this device."})})})]}):null]})]})]})}class l extends a.Component{static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error("App render error",e,t),s.Cp(e)}render(){return this.state.hasError?(0,n.jsxs)("div",{className:"p-4 min-h-screen flex items-center justify-center flex-col",children:[(0,n.jsx)("div",{className:"text-7xl",children:"\uD83D\uDCA5"}),(0,n.jsx)("div",{className:"text-red-500 font-semibold ",children:"Oops! The app has been corrupted due to an unexpected error. Open the console log may reveal more information."}),this.state.error&&(0,n.jsx)("div",{className:"max-w-2xl mx-auto",children:(0,n.jsxs)("details",{className:"block w-full mt-10",children:[(0,n.jsx)("summary",{className:"cursor-pointer hover:underline",children:"View Technical Details"}),(0,n.jsx)("code",{className:"my-2 text-xs overflow-auto max-w-full px-2 block font-semibold",children:this.state.error.message}),(0,n.jsx)("code",{className:"my-2 text-xs overflow-auto max-w-full px-2 block whitespace-pre-line",style:{height:300},children:this.state.error.stack})]})}),(0,n.jsx)(c,{})]}):this.props.children}constructor(e){super(e),this.state={hasError:!1}}}let d={OK:"OK"},f=(0,a.createContext)();function h(e){let{children:t}=e,[r,i]=(0,a.useState)(d.OK),o=(0,a.useMemo)(()=>({openAIStatus:r,setOpenAIStatus:i}),[r]);return(0,n.jsx)(f.Provider,{value:o,children:t})}var p=r(80055),m=r(1274),g=r(18477),y=r(18235),b=r.n(y),v=r(93636),w=r(86852),S=r.n(w);let _=function(e){var t;let{Component:r,pageProps:a}=e;return a.locale&&"en"!==a.locale?o.Ru.loadAndActivate({locale:a.locale,messages:a.localeMessages}):o.Ru.loadAndActivate({locale:"en",messages:b().messages}),(0,n.jsx)(l,{children:(0,n.jsx)(i.CY,{i18n:o.Ru,children:(0,n.jsx)(p.A,{serverHostConfig:a.serverHostConfig,children:(0,n.jsxs)(h,{children:[(0,n.jsx)(g.A,{defaultUser:null==a?void 0:null===(t=a.serverHostConfig)||void 0===t?void 0:t.currentUser,children:(0,n.jsxs)(v.A,{children:[(0,n.jsx)("style",{jsx:!0,global:!0,children:"\n body {\n --font-inter: ".concat(S().style.fontFamily,";\n }\n ")}),(0,n.jsx)(r,{...a})]})}),(0,n.jsx)(m.l$,{toastOptions:{success:{style:{background:"#5ec269",color:"white"}},error:{style:{background:"#cb4538",color:"white"}}}})]})})})})}},41325:(e,t,r)=>{let n=r(91170),i=r(78968);e.exports=(e,t,r)=>{let o=[],a=null,s=null,u=e.sort((e,t)=>i(e,t,r));for(let e of u)n(e,t,r)?(s=e,a||(a=e)):(s&&o.push([a,s]),s=null,a=null);a&&o.push([a,null]);let c=[];for(let[e,t]of o)e===t?c.push(e):t||e!==u[0]?t?e===u[0]?c.push(`<=${t}`):c.push(`${e} - ${t}`):c.push(`>=${e}`):c.push("*");let l=c.join(" || "),d="string"==typeof t.raw?t.raw:String(t);return l.length{"use strict";var n=r(5193).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=o(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=p,this.end=m,t=4;break;case"utf8":this.fillLast=d,t=4;break;case"base64":this.text=g,this.end=y,t=3;break;default:this.write=b,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function u(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function c(e,t,r){var n=t.length-1;if(n=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function l(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function d(e){var t=this.lastTotal-this.lastNeed,r=l(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function f(e,t){var r=c(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function g(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function y(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function b(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):""}t.StringDecoder=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r{var n=r(2272);let i="object"==typeof n&&n.env&&n.env.NODE_DEBUG&&/\bsemver\b/i.test(n.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=i},45125:e=>{"use strict";e.exports=Error},45361:e=>{var t="[object Object]";function r(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function n(e,t){return function(r){return e(t(r))}}var i=Object.prototype,o=Function.prototype.toString,a=i.hasOwnProperty,s=o.call(Object),u=i.toString,c=n(Object.getPrototypeOf,Object);function l(e){return!!e&&"object"==typeof e}function d(e){if(!l(e)||u.call(e)!=t||r(e))return!1;var n=c(e);if(null===n)return!0;var i=a.call(n,"constructor")&&n.constructor;return"function"==typeof i&&i instanceof i&&o.call(i)==s}e.exports=d},45564:(e,t)=>{"use strict";t.byteLength=c,t.toByteArray=d,t.fromByteArray=p;for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function c(e){var t=u(e),r=t[0],n=t[1];return(r+n)*3/4-n}function l(e,t,r){return(t+r)*3/4-r}function d(e){var t,r,o=u(e),a=o[0],s=o[1],c=new i(l(e,a,s)),d=0,f=s>0?a-4:a;for(r=0;r>16&255,c[d++]=t>>8&255,c[d++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[d++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[d++]=t>>8&255,c[d++]=255&t),c}function f(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function h(e,t,r){for(var n=[],i=t;iu?u:s+a));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},45703:(e,t,r)=>{"use strict";var n,i=r(1853),o=r(9278);try{n=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var a=!!n&&o&&o(Object.prototype,"__proto__"),s=Object,u=s.getPrototypeOf;e.exports=a&&"function"==typeof a.get?i([a.get]):"function"==typeof u&&function(e){return u(null==e?e:s(e))}},45714:(e,t,r)=>{"use strict";function n(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}r.d(t,{A:()=>n})},46041:(e,t,r)=>{"use strict";function n(e){return function(t,r){var n;if("formatting"===(null!=r&&r.context?String(r.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=null!=r&&r.width?String(r.width):i;n=e.formattingValues[o]||e.formattingValues[i]}else{var a=e.defaultWidth,s=null!=r&&r.width?String(r.width):e.defaultWidth;n=e.values[s]||e.values[a]}return n[e.argumentCallback?e.argumentCallback(t):t]}}r.d(t,{A:()=>n})},46922:(e,t,r)=>{"use strict";r.d(t,{A:()=>eA});var n=r(64923),i=r(24607);function o(e){return(0,i.A)(1,arguments),e instanceof Date||"object"===(0,n.A)(e)&&"[object Date]"===Object.prototype.toString.call(e)}var a=r(60013);function s(e){return(0,i.A)(1,arguments),(!!o(e)||"number"==typeof e)&&!isNaN(Number((0,a.A)(e)))}var u=r(45714);function c(e,t){return(0,i.A)(2,arguments),new Date((0,a.A)(e).getTime()+(0,u.A)(t))}function l(e,t){return(0,i.A)(2,arguments),c(e,-(0,u.A)(t))}var d=864e5;function f(e){(0,i.A)(1,arguments);var t=(0,a.A)(e),r=t.getTime();return t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0),Math.floor((r-t.getTime())/d)+1}function h(e){(0,i.A)(1,arguments);var t=1,r=(0,a.A)(e),n=r.getUTCDay(),o=7*(n=o.getTime()?r+1:t.getTime()>=u.getTime()?r:r-1}function m(e){(0,i.A)(1,arguments);var t=p(e),r=new Date(0);return r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0),h(r)}var g=6048e5;function y(e){(0,i.A)(1,arguments);var t=(0,a.A)(e);return Math.round((h(t).getTime()-m(t).getTime())/g)+1}var b=r(85686),v=r(92038);function w(e,t){(0,i.A)(1,arguments);var r,n,o,s,c,l,d,f,h=(0,a.A)(e),p=h.getUTCFullYear(),m=(0,v.q)(),g=(0,u.A)(null!==(r=null!==(n=null!==(o=null!==(s=null==t?void 0:t.firstWeekContainsDate)&&void 0!==s?s:null==t?void 0:null===(c=t.locale)||void 0===c?void 0:null===(l=c.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==o?o:m.firstWeekContainsDate)&&void 0!==n?n:null===(d=m.locale)||void 0===d?void 0:null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==r?r:1);if(!(g>=1&&g<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var y=new Date(0);y.setUTCFullYear(p+1,0,g),y.setUTCHours(0,0,0,0);var w=(0,b.A)(y,t),S=new Date(0);S.setUTCFullYear(p,0,g),S.setUTCHours(0,0,0,0);var _=(0,b.A)(S,t);return h.getTime()>=w.getTime()?p+1:h.getTime()>=_.getTime()?p:p-1}function S(e,t){(0,i.A)(1,arguments);var r,n,o,a,s,c,l,d,f=(0,v.q)(),h=(0,u.A)(null!==(r=null!==(n=null!==(o=null!==(a=null==t?void 0:t.firstWeekContainsDate)&&void 0!==a?a:null==t?void 0:null===(s=t.locale)||void 0===s?void 0:null===(c=s.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==o?o:f.firstWeekContainsDate)&&void 0!==n?n:null===(l=f.locale)||void 0===l?void 0:null===(d=l.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==r?r:1),p=w(e,t),m=new Date(0);return m.setUTCFullYear(p,0,h),m.setUTCHours(0,0,0,0),(0,b.A)(m,t)}var _=6048e5;function x(e,t){(0,i.A)(1,arguments);var r=(0,a.A)(e);return Math.round(((0,b.A)(r,t).getTime()-S(r,t).getTime())/_)+1}function A(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length0?r:1-r;return A("yy"===t?n%100:n,t.length)},M:function(e,t){var r=e.getUTCMonth();return"M"===t?String(r+1):A(r+1,2)},d:function(e,t){return A(e.getUTCDate(),t.length)},h:function(e,t){return A(e.getUTCHours()%12||12,t.length)},H:function(e,t){return A(e.getUTCHours(),t.length)},m:function(e,t){return A(e.getUTCMinutes(),t.length)},s:function(e,t){return A(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length;return A(Math.floor(e.getUTCMilliseconds()*Math.pow(10,r-3)),t.length)}};var E={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};function M(e,t){var r=e>0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),o=n%60;if(0===o)return r+String(i);var a=t||"";return r+String(i)+a+A(o,2)}function T(e,t){return e%60==0?(e>0?"-":"+")+A(Math.abs(e)/60,2):P(e,t)}function P(e,t){var r=t||"",n=e>0?"-":"+",i=Math.abs(e);return n+A(Math.floor(i/60),2)+r+A(i%60,2)}let I={G:function(e,t,r){var n=+(e.getUTCFullYear()>0);switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){var n=e.getUTCFullYear(),i=n>0?n:1-n;return r.ordinalNumber(i,{unit:"year"})}return k.y(e,t)},Y:function(e,t,r,n){var i=w(e,n),o=i>0?i:1-i;return"YY"===t?A(o%100,2):"Yo"===t?r.ordinalNumber(o,{unit:"year"}):A(o,t.length)},R:function(e,t){return A(p(e),t.length)},u:function(e,t){return A(e.getUTCFullYear(),t.length)},Q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return A(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return A(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){var n=e.getUTCMonth();switch(t){case"M":case"MM":return k.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return A(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){var i=x(e,n);return"wo"===t?r.ordinalNumber(i,{unit:"week"}):A(i,t.length)},I:function(e,t,r){var n=y(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):A(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):k.d(e,t)},D:function(e,t,r){var n=f(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):A(n,t.length)},E:function(e,t,r){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return A(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return A(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){var n=e.getUTCDay(),i=0===n?7:n;switch(t){case"i":return String(i);case"ii":return A(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){var n,i=e.getUTCHours();switch(n=12===i?E.noon:0===i?E.midnight:i/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){var n,i=e.getUTCHours();switch(n=i>=17?E.evening:i>=12?E.afternoon:i>=4?E.morning:E.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){var n=e.getUTCHours()%12;return 0===n&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return k.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):k.H(e,t)},K:function(e,t,r){var n=e.getUTCHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):A(n,t.length)},k:function(e,t,r){var n=e.getUTCHours();return(0===n&&(n=24),"ko"===t)?r.ordinalNumber(n,{unit:"hour"}):A(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):k.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):k.s(e,t)},S:function(e,t){return k.S(e,t)},X:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return T(i);case"XXXX":case"XX":return P(i);default:return P(i,":")}},x:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();switch(t){case"x":return T(i);case"xxxx":case"xx":return P(i);default:return P(i,":")}},O:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+M(i,":");default:return"GMT"+P(i,":")}},z:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+M(i,":");default:return"GMT"+P(i,":")}},t:function(e,t,r,n){return A(Math.floor((n._originalDate||e).getTime()/1e3),t.length)},T:function(e,t,r,n){return A((n._originalDate||e).getTime(),t.length)}};var C=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},O=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},R=function(e,t){var r,n=e.match(/(P+)(p+)?/)||[],i=n[1],o=n[2];if(!o)return C(e,t);switch(i){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;default:r=t.dateTime({width:"full"})}return r.replace("{{date}}",C(i,t)).replace("{{time}}",O(o,t))};let j={p:O,P:R};function D(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var L=["D","DD"],N=["YY","YYYY"];function B(e){return -1!==L.indexOf(e)}function U(e){return -1!==N.indexOf(e)}function F(e,t,r){if("YYYY"===e)throw RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var W={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};let H=function(e,t,r){var n,i=W[e];return(n="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!=r&&r.addSuffix)?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};var q=r(77503),G={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},K={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},z={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"};let $={date:(0,q.A)({formats:G,defaultWidth:"full"}),time:(0,q.A)({formats:K,defaultWidth:"full"}),dateTime:(0,q.A)({formats:z,defaultWidth:"full"})};var J={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};let Y=function(e,t,r,n){return J[e]};var V=r(46041),X={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Z={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Q={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ee={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},et={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},er={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}};let en={ordinalNumber:function(e,t){var r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:(0,V.A)({values:X,defaultWidth:"wide"}),quarter:(0,V.A)({values:Z,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,V.A)({values:Q,defaultWidth:"wide"}),day:(0,V.A)({values:ee,defaultWidth:"wide"}),dayPeriod:(0,V.A)({values:et,defaultWidth:"wide",formattingValues:er,defaultFormattingWidth:"wide"})};var ei=r(56321),eo=r(67563),ea=/^(\d+)(th|st|nd|rd)?/i,es=/\d+/i,eu={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ec={any:[/^b/i,/^(a|c)/i]},el={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ed={any:[/1/i,/2/i,/3/i,/4/i]},ef={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},eh={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},ep={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},em={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},eg={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},ey={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}};let eb={code:"en-US",formatDistance:H,formatLong:$,formatRelative:Y,localize:en,match:{ordinalNumber:(0,eo.A)({matchPattern:ea,parsePattern:es,valueCallback:function(e){return parseInt(e,10)}}),era:(0,ei.A)({matchPatterns:eu,defaultMatchWidth:"wide",parsePatterns:ec,defaultParseWidth:"any"}),quarter:(0,ei.A)({matchPatterns:el,defaultMatchWidth:"wide",parsePatterns:ed,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,ei.A)({matchPatterns:ef,defaultMatchWidth:"wide",parsePatterns:eh,defaultParseWidth:"any"}),day:(0,ei.A)({matchPatterns:ep,defaultMatchWidth:"wide",parsePatterns:em,defaultParseWidth:"any"}),dayPeriod:(0,ei.A)({matchPatterns:eg,defaultMatchWidth:"any",parsePatterns:ey,defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var ev=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ew=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,eS=/^'([^]*?)'?$/,e_=/''/g,ex=/[a-zA-Z]/;function eA(e,t,r){(0,i.A)(2,arguments);var n,o,c,d,f,h,p,m,g,y,b,w,S,_,x,A,k,E,M=String(t),T=(0,v.q)(),P=null!==(n=null!==(o=null==r?void 0:r.locale)&&void 0!==o?o:T.locale)&&void 0!==n?n:eb,C=(0,u.A)(null!==(c=null!==(d=null!==(f=null!==(h=null==r?void 0:r.firstWeekContainsDate)&&void 0!==h?h:null==r?void 0:null===(p=r.locale)||void 0===p?void 0:null===(m=p.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==f?f:T.firstWeekContainsDate)&&void 0!==d?d:null===(g=T.locale)||void 0===g?void 0:null===(y=g.options)||void 0===y?void 0:y.firstWeekContainsDate)&&void 0!==c?c:1);if(!(C>=1&&C<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=(0,u.A)(null!==(b=null!==(w=null!==(S=null!==(_=null==r?void 0:r.weekStartsOn)&&void 0!==_?_:null==r?void 0:null===(x=r.locale)||void 0===x?void 0:null===(A=x.options)||void 0===A?void 0:A.weekStartsOn)&&void 0!==S?S:T.weekStartsOn)&&void 0!==w?w:null===(k=T.locale)||void 0===k?void 0:null===(E=k.options)||void 0===E?void 0:E.weekStartsOn)&&void 0!==b?b:0);if(!(O>=0&&O<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!P.localize)throw RangeError("locale must contain localize property");if(!P.formatLong)throw RangeError("locale must contain formatLong property");var R=(0,a.A)(e);if(!s(R))throw RangeError("Invalid time value");var L=D(R),N=l(R,L),W={firstWeekContainsDate:C,weekStartsOn:O,locale:P,_originalDate:R};return M.match(ew).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,j[t])(e,P.formatLong):e}).join("").match(ev).map(function(n){if("''"===n)return"'";var i=n[0];if("'"===i)return ek(n);var o=I[i];if(o)return!(null!=r&&r.useAdditionalWeekYearTokens)&&U(n)&&F(n,t,String(e)),!(null!=r&&r.useAdditionalDayOfYearTokens)&&B(n)&&F(n,t,String(e)),o(N,n,P.localize,W);if(i.match(ex))throw RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return n}).join("")}function ek(e){var t=e.match(eS);return t?t[1].replace(e_,"'"):e}},47183:(e,t,r)=>{let n=r(60637),{extendedTypeOf:i}=r(69168),o={" ":e=>e,"+":n.green,"-":n.red},a=function(e,t,r,n,o,s){let u;let c=t?`${t}: `:"",l=s+" ",d=t=>{if(t<(void 0===e.maxElisions?1/0:e.maxElisions))for(let e=0;e0&&d(i),i=0,![" ","~","+","-"].includes(t))throw Error(`Unexpected op '${t}' in ${JSON.stringify(r,null,2)}`);"~"===t&&(t=" "),a(e,"",u,n,t,l)}i>0&&d(i)}else for(u of r)a(e,"",u,n,o,l);return n(o,`${s}]`)}default:if(0===r||null===r||!1===r||""===r||r)return n(o,s+c+JSON.stringify(r))}},s=(e,t,r)=>a(t,"",e,r," ",""),u=function(e,t={}){let r=[];return s(e,t,(e,t)=>r.push(`${e}${t}`)),r},c=function(e,t={}){let r=[];return s(e,t,function(e,n){return null==t.color||t.color?r.push(((null!=t.theme?t.theme[e]:void 0)!=null?null!=t.theme?t.theme[e]:void 0:o[e])(`${e}${n}`)+"\n"):r.push(`${e}${n} +`)}),r.join("")};e.exports={colorize:c,colorizeToArray:u,colorizeToCallback:s}},48967:function(e,t,r){var n;e=r.nmd(e),(function(){var i,o="4.17.21",a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",c="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",d=500,f="__lodash_placeholder__",h=1,p=2,m=4,g=1,y=2,b=1,v=2,w=4,S=8,_=16,x=32,A=64,k=128,E=256,M=512,T=30,P="...",I=800,C=16,O=1,R=2,j=3,D=1/0,L=0x1fffffffffffff,N=17976931348623157e292,B=0/0,U=0xffffffff,F=0xfffffffe,W=0x7fffffff,H=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],q="[object Arguments]",G="[object Array]",K="[object AsyncFunction]",z="[object Boolean]",$="[object Date]",J="[object DOMException]",Y="[object Error]",V="[object Function]",X="[object GeneratorFunction]",Z="[object Map]",Q="[object Number]",ee="[object Null]",et="[object Object]",er="[object Promise]",en="[object Proxy]",ei="[object RegExp]",eo="[object Set]",ea="[object String]",es="[object Symbol]",eu="[object Undefined]",ec="[object WeakMap]",el="[object WeakSet]",ed="[object ArrayBuffer]",ef="[object DataView]",eh="[object Float32Array]",ep="[object Float64Array]",em="[object Int8Array]",eg="[object Int16Array]",ey="[object Int32Array]",eb="[object Uint8Array]",ev="[object Uint8ClampedArray]",ew="[object Uint16Array]",eS="[object Uint32Array]",e_=/\b__p \+= '';/g,ex=/\b(__p \+=) '' \+/g,eA=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ek=/&(?:amp|lt|gt|quot|#39);/g,eE=/[&<>"']/g,eM=RegExp(ek.source),eT=RegExp(eE.source),eP=/<%-([\s\S]+?)%>/g,eI=/<%([\s\S]+?)%>/g,eC=/<%=([\s\S]+?)%>/g,eO=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,eR=/^\w*$/,ej=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,eD=/[\\^$.*+?()[\]{}|]/g,eL=RegExp(eD.source),eN=/^\s+/,eB=/\s/,eU=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,eF=/\{\n\/\* \[wrapped with (.+)\] \*/,eW=/,? & /,eH=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,eq=/[()=,{}\[\]\/\s]/,eG=/\\(\\)?/g,eK=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ez=/\w*$/,e$=/^[-+]0x[0-9a-f]+$/i,eJ=/^0b[01]+$/i,eY=/^\[object .+?Constructor\]$/,eV=/^0o[0-7]+$/i,eX=/^(?:0|[1-9]\d*)$/,eZ=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,eQ=/($^)/,e0=/['\n\r\u2028\u2029\\]/g,e1="\ud800-\udfff",e2="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",e3="\\u2700-\\u27bf",e4="a-z\\xdf-\\xf6\\xf8-\\xff",e6="A-Z\\xc0-\\xd6\\xd8-\\xde",e5="\\ufe0e\\ufe0f",e8="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",e9="['’]",e7="["+e1+"]",te="["+e8+"]",tt="["+e2+"]",tr="\\d+",tn="["+e3+"]",ti="["+e4+"]",to="[^"+e1+e8+tr+e3+e4+e6+"]",ta="\ud83c[\udffb-\udfff]",ts="[^"+e1+"]",tu="(?:\ud83c[\udde6-\uddff]){2}",tc="[\ud800-\udbff][\udc00-\udfff]",tl="["+e6+"]",td="\\u200d",tf="(?:"+ti+"|"+to+")",th="(?:"+tl+"|"+to+")",tp="(?:"+e9+"(?:d|ll|m|re|s|t|ve))?",tm="(?:"+e9+"(?:D|LL|M|RE|S|T|VE))?",tg="(?:"+tt+"|"+ta+")?",ty="["+e5+"]?",tb="(?:"+td+"(?:"+[ts,tu,tc].join("|")+")"+ty+tg+")*",tv="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",tw="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",tS=ty+tg+tb,t_="(?:"+[tn,tu,tc].join("|")+")"+tS,tx="(?:"+[ts+tt+"?",tt,tu,tc,e7].join("|")+")",tA=RegExp(e9,"g"),tk=RegExp(tt,"g"),tE=RegExp(ta+"(?="+ta+")|"+tx+tS,"g"),tM=RegExp([tl+"?"+ti+"+"+tp+"(?="+[te,tl,"$"].join("|")+")",th+"+"+tm+"(?="+[te,tl+tf,"$"].join("|")+")",tl+"?"+tf+"+"+tp,tl+"+"+tm,tw,tv,tr,t_].join("|"),"g"),tT=RegExp("["+td+e1+e2+e5+"]"),tP=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tI=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],tC=-1,tO={};tO[eh]=tO[ep]=tO[em]=tO[eg]=tO[ey]=tO[eb]=tO[ev]=tO[ew]=tO[eS]=!0,tO[q]=tO[G]=tO[ed]=tO[z]=tO[ef]=tO[$]=tO[Y]=tO[V]=tO[Z]=tO[Q]=tO[et]=tO[ei]=tO[eo]=tO[ea]=tO[ec]=!1;var tR={};tR[q]=tR[G]=tR[ed]=tR[ef]=tR[z]=tR[$]=tR[eh]=tR[ep]=tR[em]=tR[eg]=tR[ey]=tR[Z]=tR[Q]=tR[et]=tR[ei]=tR[eo]=tR[ea]=tR[es]=tR[eb]=tR[ev]=tR[ew]=tR[eS]=!0,tR[Y]=tR[V]=tR[ec]=!1;var tj={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},tD={"&":"&","<":"<",">":">",'"':""","'":"'"},tL={"&":"&","<":"<",">":">",""":'"',"'":"'"},tN={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tB=parseFloat,tU=parseInt,tF="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,tW="object"==typeof self&&self&&self.Object===Object&&self,tH=tF||tW||Function("return this")(),tq=t&&!t.nodeType&&t,tG=tq&&e&&!e.nodeType&&e,tK=tG&&tG.exports===tq,tz=tK&&tF.process,t$=function(){try{var e=tG&&tG.require&&tG.require("util").types;if(e)return e;return tz&&tz.binding&&tz.binding("util")}catch(e){}}(),tJ=t$&&t$.isArrayBuffer,tY=t$&&t$.isDate,tV=t$&&t$.isMap,tX=t$&&t$.isRegExp,tZ=t$&&t$.isSet,tQ=t$&&t$.isTypedArray;function t0(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function t1(e,t,r,n){for(var i=-1,o=null==e?0:e.length;++i-1}function t8(e,t,r){for(var n=-1,i=null==e?0:e.length;++n-1;);return r}function rA(e,t){for(var r=e.length;r--&&ru(t,e[r],0)>-1;);return r}function rk(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}var rE=rh(tj),rM=rh(tD);function rT(e){return"\\"+tN[e]}function rP(e,t){return null==e?i:e[t]}function rI(e){return tT.test(e)}function rC(e){return tP.test(e)}function rO(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function rR(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function rj(e,t){return function(r){return e(t(r))}}function rD(e,t){for(var r=-1,n=e.length,i=0,o=[];++r-1}function nd(e,t){var r=this.__data__,n=nR(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function nf(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function nF(e,t,r,n,o,a){var s,u=t&h,c=t&p,l=t&m;if(r&&(s=o?r(e,n,o,a):r(e)),i!==s)return s;if(!uZ(e))return e;var d=uL(e);if(d){if(s=o6(e),!u)return ou(e,s)}else{var f=o1(e),g=f==V||f==X;if(uW(e))return i9(e,u);if(f==et||f==q||g&&!o){if(s=c||g?{}:o5(e),!u)return c?od(e,nL(s,e)):ol(e,nD(s,e))}else{if(!tR[f])return o?e:{};s=o8(e,f,u)}}a||(a=new nS);var y=a.get(e);if(y)return y;a.set(e,s),ct(e)?e.forEach(function(n){s.add(nF(n,t,r,n,e,a))}):u0(e)&&e.forEach(function(n,i){s.set(i,nF(n,t,r,i,e,a))});var b=l?c?oG:oq:c?cW:cF,v=d?i:b(e);return t2(v||e,function(n,i){v&&(n=e[i=n]),nO(s,i,nF(n,t,r,i,e,a))}),s}function nW(e){var t=cF(e);return function(r){return nH(r,e,t)}}function nH(e,t,r){var n=r.length;if(null==e)return!n;for(e=e2(e);n--;){var o=r[n],a=t[o],s=e[o];if(i===s&&!(o in e)||!a(s))return!1}return!0}function nq(e,t,r){if("function"!=typeof e)throw new e6(u);return av(function(){e.apply(i,r)},t)}function nG(e,t,r,n){var i=-1,o=t5,s=!0,u=e.length,c=[],l=t.length;if(!u)return c;r&&(t=t9(t,rw(r))),n?(o=t8,s=!1):t.length>=a&&(o=r_,s=!1,t=new nb(t));e:for(;++io?0:o+r),(n=i===n||n>o?o:cf(n))<0&&(n+=o),n=r>n?0:ch(n);r0&&r(s)?t>1?nX(s,t-1,r,n,i):t7(i,s):n||(i[i.length]=s)}return i}var nZ=om(),nQ=om(!0);function n0(e,t){return e&&nZ(e,t,cF)}function n1(e,t){return e&&nQ(e,t,cF)}function n2(e,t){return t6(t,function(t){return uY(e[t])})}function n3(e,t){t=i4(t,e);for(var r=0,n=t.length;null!=e&&rt}function n8(e,t){return null!=e&&tt.call(e,t)}function n9(e,t){return null!=e&&t in e2(e)}function n7(e,t,r){return e>=tN(t,r)&&e=120&&f.length>=120)?new nb(u&&f):i}f=e[0];var h=-1,p=c[0];e:for(;++h-1;)s!==e&&tm.call(s,u,1),tm.call(e,u,1);return e}function iC(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==o){var o=i;ae(i)?tm.call(e,i,1):iV(e,i)}}return e}function iO(e,t){return e+tE(tq()*(t-e+1))}function iR(e,t,n,i){for(var o=-1,a=tL(tx((t-e)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=e,e+=n;return s}function ij(e,t){var r="";if(!e||t<1||t>L)return r;do t%2&&(r+=e),(t=tE(t/2))&&(e+=e);while(t);return r}function iD(e,t){return aw(ap(e,t,lB),e+"")}function iL(e){return nT(c6(e))}function iN(e,t){var r=c6(e);return ax(r,nU(t,0,r.length))}function iB(e,t,r,n){if(!uZ(e))return e;t=i4(t,e);for(var o=-1,a=t.length,s=a-1,u=e;null!=u&&++oo?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i>>1,a=e[o];null!==a&&!cn(a)&&(r?a<=t:a=a){var l=t?null:oR(e);if(l)return rL(l);s=!1,i=r_,c=new nb}else c=t?[]:u;e:for(;++n=n?e:iH(e,t,r)}var i8=tw||function(e){return tH.clearTimeout(e)};function i9(e,t){if(t)return e.slice();var r=e.length,n=td?td(r):new e.constructor(r);return e.copy(n),n}function i7(e){var t=new e.constructor(e.byteLength);return new tl(t).set(new tl(e)),t}function oe(e,t){var r=t?i7(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function ot(e){var t=new e.constructor(e.source,ez.exec(e));return t.lastIndex=e.lastIndex,t}function or(e){return r0?e2(r0.call(e)):{}}function on(e,t){var r=t?i7(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function oi(e,t){if(e!==t){var r=i!==e,n=null===e,o=e==e,a=cn(e),s=i!==t,u=null===t,c=t==t,l=cn(t);if(!u&&!l&&!a&&e>t||a&&s&&c&&!u&&!l||n&&s&&c||!r&&c||!o)return 1;if(!n&&!a&&!l&&e=s)return u;return u*("desc"==r[n]?-1:1)}}return e.index-t.index}function oa(e,t,n,i){for(var o=-1,a=e.length,s=n.length,u=-1,c=t.length,l=tL(a-s,0),d=r(c+l),f=!i;++u1?r[o-1]:i,s=o>2?r[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&at(r[0],r[1],s)&&(a=o<3?i:a,o=1),t=e2(t);++n-1?o[a?t[s]:s]:i}}function o_(e){return oH(function(t){var r=t.length,n=r,o=r6.prototype.thru;for(e&&t.reverse();n--;){var a=t[n];if("function"!=typeof a)throw new e6(u);if(o&&!s&&"wrapper"==oz(a))var s=new r6([],!0)}for(n=s?n:r;++n1&&b.reverse(),f&&lu))return!1;var l=a.get(e),d=a.get(t);if(l&&d)return l==t&&d==e;var f=-1,h=!0,p=r&y?new nb:i;for(a.set(e,t),a.set(t,e);++f1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(eU,"{\n/* [wrapped with "+t+"] */\n")}function o7(e){return uL(e)||uD(e)||!!(tg&&e&&e[tg])}function ae(e,t){var r=typeof e;return!!(t=null==t?L:t)&&("number"==r||"symbol"!=r&&eX.test(e))&&e>-1&&e%1==0&&e0){if(++t>=I)return arguments[0]}else t=0;return e.apply(i,arguments)}}function ax(e,t){var r=-1,n=e.length,o=n-1;for(t=i===t?n:t;++r1?e[t-1]:i;return r="function"==typeof r?(e.pop(),r):i,sw(e,r)});function sP(e){var t=r2(e);return t.__chain__=!0,t}function sI(e,t){return t(e),e}function sC(e,t){return t(e)}var sO=oH(function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,o=function(t){return nB(t,e)};return!(t>1)&&!this.__actions__.length&&n instanceof r5&&ae(r)?((n=n.slice(r,+r+ +!!t)).__actions__.push({func:sC,args:[o],thisArg:i}),new r6(n,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(o)});function sR(){return sP(this)}function sj(){return new r6(this.value(),this.__chain__)}function sD(){this.__values__===i&&(this.__values__=cl(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function sL(){return this}function sN(e){for(var t,r=this;r instanceof r4;){var n=aT(r);n.__index__=0,n.__values__=i,t?o.__wrapped__=n:t=n;var o=n;r=r.__wrapped__}return o.__wrapped__=e,t}function sB(){var e=this.__wrapped__;if(e instanceof r5){var t=e;return this.__actions__.length&&(t=new r5(this)),(t=t.reverse()).__actions__.push({func:sC,args:[a9],thisArg:i}),new r6(t,this.__chain__)}return this.thru(a9)}function sU(){return iQ(this.__wrapped__,this.__actions__)}var sF=of(function(e,t,r){tt.call(e,r)?++e[r]:nN(e,r,1)});function sW(e,t,r){var n=uL(e)?t4:n$;return r&&at(e,t,r)&&(t=i),n(e,oJ(t,3))}function sH(e,t){return(uL(e)?t6:nV)(e,oJ(t,3))}var sq=oS(aF),sG=oS(aW);function sK(e,t){return nX(s0(e,t),1)}function sz(e,t){return nX(s0(e,t),D)}function s$(e,t,r){return r=i===r?1:cf(r),nX(s0(e,t),r)}function sJ(e,t){return(uL(e)?t2:nK)(e,oJ(t,3))}function sY(e,t){return(uL(e)?t3:nz)(e,oJ(t,3))}var sV=of(function(e,t,r){tt.call(e,r)?e[r].push(t):nN(e,r,[t])});function sX(e,t,r,n){e=uB(e)?e:c6(e),r=r&&!n?cf(r):0;var i=e.length;return r<0&&(r=tL(i+r,0)),cr(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&ru(e,t,r)>-1}var sZ=iD(function(e,t,n){var i=-1,o="function"==typeof t,a=uB(e)?r(e.length):[];return nK(e,function(e){a[++i]=o?t0(t,e,n):ir(e,t,n)}),a}),sQ=of(function(e,t,r){nN(e,r,t)});function s0(e,t){return(uL(e)?t9:iw)(e,oJ(t,3))}function s1(e,t,r,n){return null==e?[]:(uL(t)||(t=null==t?[]:[t]),uL(r=n?i:r)||(r=null==r?[]:[r]),iE(e,t,r))}var s2=of(function(e,t,r){e[+!r].push(t)},function(){return[[],[]]});function s3(e,t,r){var n=uL(e)?re:rp,i=arguments.length<3;return n(e,oJ(t,4),r,i,nK)}function s4(e,t,r){var n=uL(e)?rt:rp,i=arguments.length<3;return n(e,oJ(t,4),r,i,nz)}function s6(e,t){return(uL(e)?t6:nV)(e,um(oJ(t,3)))}function s5(e){return(uL(e)?nT:iL)(e)}function s8(e,t,r){return t=(r?at(e,t,r):i===t)?1:cf(t),(uL(e)?nP:iN)(e,t)}function s9(e){return(uL(e)?nI:iW)(e)}function s7(e){if(null==e)return 0;if(uB(e))return cr(e)?rF(e):e.length;var t=o1(e);return t==Z||t==eo?e.size:iy(e).length}function ue(e,t,r){var n=uL(e)?rr:iq;return r&&at(e,t,r)&&(t=i),n(e,oJ(t,3))}var ut=iD(function(e,t){if(null==e)return[];var r=t.length;return r>1&&at(e,t[0],t[1])?t=[]:r>2&&at(t[0],t[1],t[2])&&(t=[t[0]]),iE(e,nX(t,1),[])}),ur=tS||function(){return tH.Date.now()};function un(e,t){if("function"!=typeof t)throw new e6(u);return e=cf(e),function(){if(--e<1)return t.apply(this,arguments)}}function ui(e,t,r){return t=r?i:t,t=e&&null==t?e.length:t,oD(e,k,i,i,i,i,t)}function uo(e,t){var r;if("function"!=typeof t)throw new e6(u);return e=cf(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=i),r}}var ua=iD(function(e,t,r){var n=b;if(r.length){var i=rD(r,o$(ua));n|=x}return oD(e,n,t,r,i)}),us=iD(function(e,t,r){var n=b|v;if(r.length){var i=rD(r,o$(us));n|=x}return oD(t,n,e,r,i)});function uu(e,t,r){t=r?i:t;var n=oD(e,S,i,i,i,i,i,t);return n.placeholder=uu.placeholder,n}function uc(e,t,r){t=r?i:t;var n=oD(e,_,i,i,i,i,i,t);return n.placeholder=uc.placeholder,n}function ul(e,t,r){var n,o,a,s,c,l,d=0,f=!1,h=!1,p=!0;if("function"!=typeof e)throw new e6(u);function m(t){var r=n,a=o;return n=o=i,d=t,s=e.apply(a,r)}function g(e){return d=e,c=av(v,t),f?m(e):s}function y(e){var r=e-l,n=e-d,i=t-r;return h?tN(i,a-n):i}function b(e){var r=e-l,n=e-d;return i===l||r>=t||r<0||h&&n>=a}function v(){var e=ur();if(b(e))return w(e);c=av(v,y(e))}function w(e){return(c=i,p&&n)?m(e):(n=o=i,s)}function S(){i!==c&&i8(c),d=0,n=l=o=c=i}function _(){return i===c?s:w(ur())}function x(){var e=ur(),r=b(e);if(n=arguments,o=this,l=e,r){if(i===c)return g(l);if(h)return i8(c),c=av(v,t),m(l)}return i===c&&(c=av(v,t)),s}return t=cp(t)||0,uZ(r)&&(f=!!r.leading,a=(h="maxWait"in r)?tL(cp(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p),x.cancel=S,x.flush=_,x}var ud=iD(function(e,t){return nq(e,1,t)}),uf=iD(function(e,t,r){return nq(e,cp(t)||0,r)});function uh(e){return oD(e,M)}function up(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new e6(u);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(up.Cache||nf),r}function um(e){if("function"!=typeof e)throw new e6(u);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function ug(e){return uo(2,e)}up.Cache=nf;var uy=i6(function(e,t){var r=(t=1==t.length&&uL(t[0])?t9(t[0],rw(oJ())):t9(nX(t,1),rw(oJ()))).length;return iD(function(n){for(var i=-1,o=tN(n.length,r);++i=t}),uD=ii(function(){return arguments}())?ii:function(e){return uQ(e)&&tt.call(e,"callee")&&!tp.call(e,"callee")},uL=r.isArray,uN=tJ?rw(tJ):io;function uB(e){return null!=e&&uX(e.length)&&!uY(e)}function uU(e){return uQ(e)&&uB(e)}function uF(e){return!0===e||!1===e||uQ(e)&&n6(e)==z}var uW=tT||l2,uH=tY?rw(tY):ia;function uq(e){return uQ(e)&&1===e.nodeType&&!u9(e)}function uG(e){if(null==e)return!0;if(uB(e)&&(uL(e)||"string"==typeof e||"function"==typeof e.splice||uW(e)||ci(e)||uD(e)))return!e.length;var t=o1(e);if(t==Z||t==eo)return!e.size;if(as(e))return!iy(e).length;for(var r in e)if(tt.call(e,r))return!1;return!0}function uK(e,t){return is(e,t)}function uz(e,t,r){var n=(r="function"==typeof r?r:i)?r(e,t):i;return i===n?is(e,t,i,r):!!n}function u$(e){if(!uQ(e))return!1;var t=n6(e);return t==Y||t==J||"string"==typeof e.message&&"string"==typeof e.name&&!u9(e)}function uJ(e){return"number"==typeof e&&tP(e)}function uY(e){if(!uZ(e))return!1;var t=n6(e);return t==V||t==X||t==K||t==en}function uV(e){return"number"==typeof e&&e==cf(e)}function uX(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=L}function uZ(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function uQ(e){return null!=e&&"object"==typeof e}var u0=tV?rw(tV):ic;function u1(e,t){return e===t||il(e,t,oV(t))}function u2(e,t,r){return r="function"==typeof r?r:i,il(e,t,oV(t),r)}function u3(e){return u8(e)&&e!=+e}function u4(e){if(aa(e))throw new eB(s);return id(e)}function u6(e){return null===e}function u5(e){return null==e}function u8(e){return"number"==typeof e||uQ(e)&&n6(e)==Q}function u9(e){if(!uQ(e)||n6(e)!=et)return!1;var t=tf(e);if(null===t)return!0;var r=tt.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&te.call(r)==to}var u7=tX?rw(tX):ih;function ce(e){return uV(e)&&e>=-L&&e<=L}var ct=tZ?rw(tZ):ip;function cr(e){return"string"==typeof e||!uL(e)&&uQ(e)&&n6(e)==ea}function cn(e){return"symbol"==typeof e||uQ(e)&&n6(e)==es}var ci=tQ?rw(tQ):im;function co(e){return i===e}function ca(e){return uQ(e)&&o1(e)==ec}function cs(e){return uQ(e)&&n6(e)==el}var cu=oI(iv),cc=oI(function(e,t){return e<=t});function cl(e){if(!e)return[];if(uB(e))return cr(e)?rW(e):ou(e);if(ty&&e[ty])return rO(e[ty]());var t=o1(e);return(t==Z?rR:t==eo?rL:c6)(e)}function cd(e){return e?(e=cp(e))===D||e===-D?(e<0?-1:1)*N:e==e?e:0:0===e?e:0}function cf(e){var t=cd(e),r=t%1;return t==t?r?t-r:t:0}function ch(e){return e?nU(cf(e),0,U):0}function cp(e){if("number"==typeof e)return e;if(cn(e))return B;if(uZ(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=uZ(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=rv(e);var r=eJ.test(e);return r||eV.test(e)?tU(e.slice(2),r?2:8):e$.test(e)?B:+e}function cm(e){return oc(e,cW(e))}function cg(e){return e?nU(cf(e),-L,L):0===e?e:0}function cy(e){return null==e?"":iJ(e)}var cb=oh(function(e,t){if(as(t)||uB(t)){oc(t,cF(t),e);return}for(var r in t)tt.call(t,r)&&nO(e,r,t[r])}),cv=oh(function(e,t){oc(t,cW(t),e)}),cw=oh(function(e,t,r,n){oc(t,cW(t),e,n)}),cS=oh(function(e,t,r,n){oc(t,cF(t),e,n)}),c_=oH(nB);function cx(e,t){var r=r3(e);return null==t?r:nD(r,t)}var cA=iD(function(e,t){e=e2(e);var r=-1,n=t.length,o=n>2?t[2]:i;for(o&&at(t[0],t[1],o)&&(n=1);++r1),t}),oc(e,oG(e),r),n&&(r=nF(r,h|p|m,oB));for(var i=t.length;i--;)iV(r,t[i]);return r});function c$(e,t){return cY(e,um(oJ(t)))}var cJ=oH(function(e,t){return null==e?{}:iM(e,t)});function cY(e,t){if(null==e)return{};var r=t9(oG(e),function(e){return[e]});return t=oJ(t),iT(e,r,function(e,r){return t(e,r[0])})}function cV(e,t,r){t=i4(t,e);var n=-1,o=t.length;for(o||(o=1,e=i);++nt){var n=e;e=t,t=n}if(r||e%1||t%1){var o=tq();return tN(e+o*(t-e+tB("1e-"+((o+"").length-1))),t)}return iO(e,t)}var le=ob(function(e,t,r){return t=t.toLowerCase(),e+(r?lt(t):t)});function lt(e){return lT(cy(e).toLowerCase())}function lr(e){return(e=cy(e))&&e.replace(eZ,rE).replace(tk,"")}function ln(e,t,r){e=cy(e),t=iJ(t);var n=e.length,o=r=i===r?n:nU(cf(r),0,n);return(r-=t.length)>=0&&e.slice(r,o)==t}function li(e){return(e=cy(e))&&eT.test(e)?e.replace(eE,rM):e}function lo(e){return(e=cy(e))&&eL.test(e)?e.replace(eD,"\\$&"):e}var la=ob(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),ls=ob(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),lu=oy("toLowerCase");function lc(e,t,r){e=cy(e);var n=(t=cf(t))?rF(e):0;if(!t||n>=t)return e;var i=(t-n)/2;return oM(tE(i),r)+e+oM(tx(i),r)}function ll(e,t,r){e=cy(e);var n=(t=cf(t))?rF(e):0;return t&&n>>0)?(e=cy(e))&&("string"==typeof t||null!=t&&!u7(t))&&!(t=iJ(t))&&rI(e)?i5(rW(e),0,r):e.split(t,r):[]}var ly=ob(function(e,t,r){return e+(r?" ":"")+lT(t)});function lb(e,t,r){return e=cy(e),r=null==r?0:nU(cf(r),0,e.length),t=iJ(t),e.slice(r,r+t.length)==t}function lv(e,t,r){var n=r2.templateSettings;r&&at(e,t,r)&&(t=i),e=cy(e),t=cw({},t,n,oL);var o,a,s=cw({},t.imports,n.imports,oL),u=cF(s),l=rS(s,u),d=0,f=t.interpolate||eQ,h="__p += '",p=e3((t.escape||eQ).source+"|"+f.source+"|"+(f===eC?eK:eQ).source+"|"+(t.evaluate||eQ).source+"|$","g"),m="//# sourceURL="+(tt.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++tC+"]")+"\n";e.replace(p,function(t,r,n,i,s,u){return n||(n=i),h+=e.slice(d,u).replace(e0,rT),r&&(o=!0,h+="' +\n__e("+r+") +\n'"),s&&(a=!0,h+="';\n"+s+";\n__p += '"),n&&(h+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),d=u+t.length,t}),h+="';\n";var g=tt.call(t,"variable")&&t.variable;if(g){if(eq.test(g))throw new eB(c)}else h="with (obj) {\n"+h+"\n}\n";h=(a?h.replace(e_,""):h).replace(ex,"$1").replace(eA,"$1;"),h="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var y=lI(function(){return eH(u,m+"return "+h).apply(i,l)});if(y.source=h,u$(y))throw y;return y}function lw(e){return cy(e).toLowerCase()}function lS(e){return cy(e).toUpperCase()}function l_(e,t,r){if((e=cy(e))&&(r||i===t))return rv(e);if(!e||!(t=iJ(t)))return e;var n=rW(e),o=rW(t),a=rx(n,o),s=rA(n,o)+1;return i5(n,a,s).join("")}function lx(e,t,r){if((e=cy(e))&&(r||i===t))return e.slice(0,rH(e)+1);if(!e||!(t=iJ(t)))return e;var n=rW(e),o=rA(n,rW(t))+1;return i5(n,0,o).join("")}function lA(e,t,r){if((e=cy(e))&&(r||i===t))return e.replace(eN,"");if(!e||!(t=iJ(t)))return e;var n=rW(e),o=rx(n,rW(t));return i5(n,o).join("")}function lk(e,t){var r=T,n=P;if(uZ(t)){var o="separator"in t?t.separator:o;r="length"in t?cf(t.length):r,n="omission"in t?iJ(t.omission):n}var a=(e=cy(e)).length;if(rI(e)){var s=rW(e);a=s.length}if(r>=a)return e;var u=r-rF(n);if(u<1)return n;var c=s?i5(s,0,u).join(""):e.slice(0,u);if(i===o)return c+n;if(s&&(u+=c.length-u),u7(o)){if(e.slice(u).search(o)){var l,d=c;for(o.global||(o=e3(o.source,cy(ez.exec(o))+"g")),o.lastIndex=0;l=o.exec(d);)var f=l.index;c=c.slice(0,i===f?u:f)}}else if(e.indexOf(iJ(o),u)!=u){var h=c.lastIndexOf(o);h>-1&&(c=c.slice(0,h))}return c+n}function lE(e){return(e=cy(e))&&eM.test(e)?e.replace(ek,rq):e}var lM=ob(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),lT=oy("toUpperCase");function lP(e,t,r){return(e=cy(e),t=r?i:t,i===t)?rC(e)?rz(e):ro(e):e.match(t)||[]}var lI=iD(function(e,t){try{return t0(e,i,t)}catch(e){return u$(e)?e:new eB(e)}}),lC=oH(function(e,t){return t2(t,function(t){nN(e,t=ak(t),ua(e[t],e))}),e});function lO(e){var t=null==e?0:e.length,r=oJ();return e=t?t9(e,function(e){if("function"!=typeof e[1])throw new e6(u);return[r(e[0]),e[1]]}):[],iD(function(r){for(var n=-1;++nL)return[];var r=U,n=tN(e,U);t=oJ(t),e-=U;for(var i=ry(n,t);++r0||t<0)?new r5(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),i!==t&&(r=(t=cf(t))<0?r.dropRight(-t):r.take(t-e)),r)},r5.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},r5.prototype.toArray=function(){return this.take(U)},n0(r5.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),o=r2[n?"take"+("last"==t?"Right":""):t],a=n||/^find/.test(t);o&&(r2.prototype[t]=function(){var t=this.__wrapped__,s=n?[1]:arguments,u=t instanceof r5,c=s[0],l=u||uL(t),d=function(e){var t=o.apply(r2,t7([e],s));return n&&f?t[0]:t};l&&r&&"function"==typeof c&&1!=c.length&&(u=l=!1);var f=this.__chain__,h=!!this.__actions__.length,p=a&&!f,m=u&&!h;if(!a&&l){t=m?t:new r5(this);var g=e.apply(t,s);return g.__actions__.push({func:sC,args:[d],thisArg:i}),new r6(g,f)}return p&&m?e.apply(this,s):(g=this.thru(d),p?n?g.value()[0]:g.value():g)})}),t2(["pop","push","shift","sort","splice","unshift"],function(e){var t=e5[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);r2.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(uL(i)?i:[],e)}return this[r](function(r){return t.apply(uL(r)?r:[],e)})}}),n0(r5.prototype,function(e,t){var r=r2[t];if(r){var n=r.name+"";tt.call(rK,n)||(rK[n]=[]),rK[n].push({name:t,func:r})}}),rK[ox(i,v).name]=[{name:"wrapper",func:i}],r5.prototype.clone=r8,r5.prototype.reverse=r9,r5.prototype.value=r7,r2.prototype.at=sO,r2.prototype.chain=sR,r2.prototype.commit=sj,r2.prototype.next=sD,r2.prototype.plant=sN,r2.prototype.reverse=sB,r2.prototype.toJSON=r2.prototype.valueOf=r2.prototype.value=sU,r2.prototype.first=r2.prototype.head,ty&&(r2.prototype[ty]=sL),r2}();tH._=r$,i!==(n=(function(){return r$}).call(t,r,t,e))&&(e.exports=n)}).call(this)},49139:(e,t,r)=>{"use strict";var n=r(2272);e.exports=function(e,t){var r=(t=t||n.argv).indexOf("--"),i=/^-{1,2}/.test(e)?"":"--",o=t.indexOf(i+e);return -1!==o&&(-1===r||o{"use strict";e.exports=Function.prototype.apply},50774:e=>{var t="/";!function(){"undefined"!=typeof __nccwpck_require__&&(__nccwpck_require__.ab=t+"/");var r={};!function(){var e=r;e.endianness=function(){return"LE"},e.hostname=function(){return"undefined"!=typeof location?location.hostname:""},e.loadavg=function(){return[]},e.uptime=function(){return 0},e.freemem=function(){return Number.MAX_VALUE},e.totalmem=function(){return Number.MAX_VALUE},e.cpus=function(){return[]},e.type=function(){return"Browser"},e.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},e.networkInterfaces=e.getNetworkInterfaces=function(){return{}},e.arch=function(){return"javascript"},e.platform=function(){return"browser"},e.tmpdir=e.tmpDir=function(){return"/tmp"},e.EOL="\n",e.homedir=function(){return"/"}}(),e.exports=r}()},50776:(e,t,r)=>{var n={};e.exports=n,n.themes={};var i=r(65723),o=n.styles=r(28554),a=Object.defineProperties,s=new RegExp(/[\r\n]+/g);n.supportsColor=r(89301).supportsColor,void 0===n.enabled&&(n.enabled=!1!==n.supportsColor()),n.enable=function(){n.enabled=!0},n.disable=function(){n.enabled=!1},n.stripColors=n.strip=function(e){return(""+e).replace(/\x1B\[\d+m/g,"")},n.stylize=function(e,t){if(!n.enabled)return e+"";var r=o[t];return!r&&t in n?n[t](e):r.open+e+r.close};var u=/[|\\{}()[\]^$+*?.]/g,c=function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(u,"\\$&")};function l(e){var t=function e(){return h.apply(e,arguments)};return t._styles=e,t.__proto__=f,t}var d=function(){var e={};return o.grey=o.gray,Object.keys(o).forEach(function(t){o[t].closeRe=RegExp(c(o[t].close),"g"),e[t]={get:function(){return l(this._styles.concat(t))}}}),e}(),f=a(function(){},d);function h(){var e=Array.prototype.slice.call(arguments),t=e.map(function(e){return null!=e&&e.constructor===String?e:i.inspect(e)}).join(" ");if(!n.enabled||!t)return t;for(var r=-1!=t.indexOf("\n"),a=this._styles,u=a.length;u--;){var c=o[a[u]];t=c.open+t.replace(c.closeRe,c.open)+c.close,r&&(t=t.replace(s,function(e){return c.close+e+c.open}))}return t}function p(){var e={};return Object.keys(d).forEach(function(t){e[t]={get:function(){return l([t])}}}),e}n.setTheme=function(e){if("string"==typeof e){console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));");return}for(var t in e)!function(t){n[t]=function(r){if("object"==typeof e[t]){var i=r;for(var o in e[t])i=n[e[t][o]](i);return i}return n[e[t]](r)}}(t)};var m=function(e,t){var r=t.split("");return(r=r.map(e)).join("")};for(var g in n.trap=r(72703),n.zalgo=r(11921),n.maps={},n.maps.america=r(61212)(n),n.maps.zebra=r(73932)(n),n.maps.rainbow=r(64774)(n),n.maps.random=r(1943)(n),n.maps)!function(e){n[e]=function(t){return m(n.maps[e],t)}}(g);a(n,p())},51569:e=>{"use strict";e.exports=EvalError},52051:(e,t,r)=>{var n=r(2272);let i=r(98625);e.exports=i.satisfies(n.version,">=15.7.0")},52252:(e,t,r)=>{let n=r(22626),i=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}};e.exports=i},52421:e=>{let t=Object.freeze({loose:!0}),r=Object.freeze({}),n=e=>e?"object"!=typeof e?t:e:r;e.exports=n},52975:(e,t,r)=>{let n=r(78968),i=(e,t,r)=>0===n(e,t,r);e.exports=i},55506:(e,t,r)=>{"use strict";let n,i,o;r.r(t),r.d(t,{CompactEncrypt:()=>tU,CompactSign:()=>tH,EmbeddedJWK:()=>tZ,EncryptJWT:()=>tJ,FlattenedEncrypt:()=>ty,FlattenedSign:()=>tW,GeneralEncrypt:()=>tv,GeneralSign:()=>tG,SignJWT:()=>t$,UnsecuredJWT:()=>rn,base64url:()=>s,calculateJwkThumbprint:()=>tV,calculateJwkThumbprintUri:()=>tX,compactDecrypt:()=>tc,compactVerify:()=>tA,createLocalJWKSet:()=>t6,createRemoteJWKSet:()=>rt,cryptoRuntime:()=>rh,decodeJwt:()=>rs,decodeProtectedHeader:()=>ra,errors:()=>a,experimental_jwksCache:()=>rr,exportJWK:()=>tm,exportPKCS8:()=>tp,exportSPKI:()=>th,flattenedDecrypt:()=>tu,flattenedVerify:()=>tx,generalDecrypt:()=>tl,generalVerify:()=>tk,generateKeyPair:()=>rd,generateSecret:()=>rf,importJWK:()=>e2,importPKCS8:()=>e1,importSPKI:()=>eQ,importX509:()=>e0,jwksCache:()=>t9,jwtDecrypt:()=>tB,jwtVerify:()=>tN});var a={};r.r(a),r.d(a,{JOSEAlgNotAllowed:()=>T,JOSEError:()=>k,JOSENotSupported:()=>P,JWEDecryptionFailed:()=>I,JWEInvalid:()=>C,JWKInvalid:()=>j,JWKSInvalid:()=>D,JWKSMultipleMatchingKeys:()=>N,JWKSNoMatchingKey:()=>L,JWKSTimeout:()=>B,JWSInvalid:()=>O,JWSSignatureVerificationFailed:()=>U,JWTClaimValidationFailed:()=>E,JWTExpired:()=>M,JWTInvalid:()=>R});var s={};r.r(s),r.d(s,{decode:()=>ro,encode:()=>ri});let u=crypto,c=e=>e instanceof CryptoKey,l=async(e,t)=>{let r=`SHA-${e.slice(-3)}`;return new Uint8Array(await u.subtle.digest(r,t))},d=new TextEncoder,f=new TextDecoder,h=0x100000000;function p(...e){let t=new Uint8Array(e.reduce((e,{length:t})=>e+t,0)),r=0;for(let n of e)t.set(n,r),r+=n.length;return t}function m(e,t){return p(d.encode(e),new Uint8Array([0]),t)}function g(e,t,r){if(t<0||t>=h)throw RangeError(`value must be >= 0 and <= ${h-1}. Received ${t}`);e.set([t>>>24,t>>>16,t>>>8,255&t],r)}function y(e){let t=Math.floor(e/h),r=e%h,n=new Uint8Array(8);return g(n,t,0),g(n,r,4),n}function b(e){let t=new Uint8Array(4);return g(t,e),t}function v(e){return p(b(e.length),e)}async function w(e,t,r){let n=Math.ceil((t>>3)/32),i=new Uint8Array(32*n);for(let t=0;t>3)}let S=e=>{let t=e;"string"==typeof t&&(t=d.encode(t));let r=32768,n=[];for(let e=0;eS(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"),x=e=>{let t=atob(e),r=new Uint8Array(t.length);for(let e=0;e{let t=e;t instanceof Uint8Array&&(t=f.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return x(t)}catch{throw TypeError("The input to be decoded is not correctly encoded.")}};class k extends Error{constructor(e,t){super(e,t),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,Error.captureStackTrace?.(this,this.constructor)}}k.code="ERR_JOSE_GENERIC";class E extends k{constructor(e,t,r="unspecified",n="unspecified"){super(e,{cause:{claim:r,reason:n,payload:t}}),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=r,this.reason=n,this.payload=t}}E.code="ERR_JWT_CLAIM_VALIDATION_FAILED";class M extends k{constructor(e,t,r="unspecified",n="unspecified"){super(e,{cause:{claim:r,reason:n,payload:t}}),this.code="ERR_JWT_EXPIRED",this.claim=r,this.reason=n,this.payload=t}}M.code="ERR_JWT_EXPIRED";class T extends k{constructor(){super(...arguments),this.code="ERR_JOSE_ALG_NOT_ALLOWED"}}T.code="ERR_JOSE_ALG_NOT_ALLOWED";class P extends k{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}}P.code="ERR_JOSE_NOT_SUPPORTED";class I extends k{constructor(e="decryption operation failed",t){super(e,t),this.code="ERR_JWE_DECRYPTION_FAILED"}}I.code="ERR_JWE_DECRYPTION_FAILED";class C extends k{constructor(){super(...arguments),this.code="ERR_JWE_INVALID"}}C.code="ERR_JWE_INVALID";class O extends k{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}}O.code="ERR_JWS_INVALID";class R extends k{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}}R.code="ERR_JWT_INVALID";class j extends k{constructor(){super(...arguments),this.code="ERR_JWK_INVALID"}}j.code="ERR_JWK_INVALID";class D extends k{constructor(){super(...arguments),this.code="ERR_JWKS_INVALID"}}D.code="ERR_JWKS_INVALID";class L extends k{constructor(e="no applicable key found in the JSON Web Key Set",t){super(e,t),this.code="ERR_JWKS_NO_MATCHING_KEY"}}L.code="ERR_JWKS_NO_MATCHING_KEY";class N extends k{constructor(e="multiple matching keys found in the JSON Web Key Set",t){super(e,t),this.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS"}}Symbol.asyncIterator,N.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS";class B extends k{constructor(e="request timed out",t){super(e,t),this.code="ERR_JWKS_TIMEOUT"}}B.code="ERR_JWKS_TIMEOUT";class U extends k{constructor(e="signature verification failed",t){super(e,t),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}}U.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED";let F=u.getRandomValues.bind(u);function W(e){switch(e){case"A128GCM":case"A128GCMKW":case"A192GCM":case"A192GCMKW":case"A256GCM":case"A256GCMKW":return 96;case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return 128;default:throw new P(`Unsupported JWE Algorithm: ${e}`)}}let H=e=>F(new Uint8Array(W(e)>>3)),q=(e,t)=>{if(t.length<<3!==W(e))throw new C("Invalid Initialization Vector length")},G=(e,t)=>{let r=e.byteLength<<3;if(r!==t)throw new C(`Invalid Content Encryption Key length. Expected ${t} bits, got ${r} bits`)},K=(e,t)=>{if(!(e instanceof Uint8Array))throw TypeError("First argument must be a buffer");if(!(t instanceof Uint8Array))throw TypeError("Second argument must be a buffer");if(e.length!==t.length)throw TypeError("Input buffers must have the same length");let r=e.length,n=0,i=-1;for(;++ie.usages.includes(t))){let e="CryptoKey does not support this operation, its usages must include ";if(t.length>2){let r=t.pop();e+=`one of ${t.join(", ")}, or ${r}.`}else 2===t.length?e+=`one of ${t[0]} or ${t[1]}.`:e+=`${t[0]}.`;throw TypeError(e)}}function X(e,t,...r){switch(t){case"HS256":case"HS384":case"HS512":{if(!$(e.algorithm,"HMAC"))throw z("HMAC");let r=parseInt(t.slice(2),10);if(J(e.algorithm.hash)!==r)throw z(`SHA-${r}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!$(e.algorithm,"RSASSA-PKCS1-v1_5"))throw z("RSASSA-PKCS1-v1_5");let r=parseInt(t.slice(2),10);if(J(e.algorithm.hash)!==r)throw z(`SHA-${r}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!$(e.algorithm,"RSA-PSS"))throw z("RSA-PSS");let r=parseInt(t.slice(2),10);if(J(e.algorithm.hash)!==r)throw z(`SHA-${r}`,"algorithm.hash");break}case"EdDSA":if("Ed25519"!==e.algorithm.name&&"Ed448"!==e.algorithm.name)throw z("Ed25519 or Ed448");break;case"Ed25519":if(!$(e.algorithm,"Ed25519"))throw z("Ed25519");break;case"ES256":case"ES384":case"ES512":{if(!$(e.algorithm,"ECDSA"))throw z("ECDSA");let r=Y(t);if(e.algorithm.namedCurve!==r)throw z(r,"algorithm.namedCurve");break}default:throw TypeError("CryptoKey does not support this operation")}V(e,r)}function Z(e,t,...r){switch(t){case"A128GCM":case"A192GCM":case"A256GCM":{if(!$(e.algorithm,"AES-GCM"))throw z("AES-GCM");let r=parseInt(t.slice(1,4),10);if(e.algorithm.length!==r)throw z(r,"algorithm.length");break}case"A128KW":case"A192KW":case"A256KW":{if(!$(e.algorithm,"AES-KW"))throw z("AES-KW");let r=parseInt(t.slice(1,4),10);if(e.algorithm.length!==r)throw z(r,"algorithm.length");break}case"ECDH":switch(e.algorithm.name){case"ECDH":case"X25519":case"X448":break;default:throw z("ECDH, X25519, or X448")}break;case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":if(!$(e.algorithm,"PBKDF2"))throw z("PBKDF2");break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":{if(!$(e.algorithm,"RSA-OAEP"))throw z("RSA-OAEP");let r=parseInt(t.slice(9),10)||1;if(J(e.algorithm.hash)!==r)throw z(`SHA-${r}`,"algorithm.hash");break}default:throw TypeError("CryptoKey does not support this operation")}V(e,r)}function Q(e,t,...r){if((r=r.filter(Boolean)).length>2){let t=r.pop();e+=`one of type ${r.join(", ")}, or ${t}.`}else 2===r.length?e+=`one of type ${r[0]} or ${r[1]}.`:e+=`of type ${r[0]}.`;return null==t?e+=` Received ${t}`:"function"==typeof t&&t.name?e+=` Received function ${t.name}`:"object"==typeof t&&null!=t&&t.constructor?.name&&(e+=` Received an instance of ${t.constructor.name}`),e}let ee=(e,...t)=>Q("Key must be ",e,...t);function et(e,t,...r){return Q(`Key for the ${e} algorithm must be `,t,...r)}let er=e=>!!c(e)||e?.[Symbol.toStringTag]==="KeyObject",en=["CryptoKey"];async function ei(e,t,r,n,i,o){let a,s;if(!(t instanceof Uint8Array))throw TypeError(ee(t,"Uint8Array"));let c=parseInt(e.slice(1,4),10),l=await u.subtle.importKey("raw",t.subarray(c>>3),"AES-CBC",!1,["decrypt"]),d=await u.subtle.importKey("raw",t.subarray(0,c>>3),{hash:`SHA-${c<<1}`,name:"HMAC"},!1,["sign"]),f=p(o,n,r,y(o.length<<3)),h=new Uint8Array((await u.subtle.sign("HMAC",d,f)).slice(0,c>>3));try{a=K(i,h)}catch{}if(!a)throw new I;try{s=new Uint8Array(await u.subtle.decrypt({iv:n,name:"AES-CBC"},l,r))}catch{}if(!s)throw new I;return s}async function eo(e,t,r,n,i,o){let a;t instanceof Uint8Array?a=await u.subtle.importKey("raw",t,"AES-GCM",!1,["decrypt"]):(Z(t,e,"decrypt"),a=t);try{return new Uint8Array(await u.subtle.decrypt({additionalData:o,iv:n,name:"AES-GCM",tagLength:128},a,p(r,i)))}catch{throw new I}}let ea=async(e,t,r,n,i,o)=>{if(!c(t)&&!(t instanceof Uint8Array))throw TypeError(ee(t,...en,"Uint8Array"));if(!n)throw new C("JWE Initialization Vector missing");if(!i)throw new C("JWE Authentication Tag missing");switch(q(e,n),e){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return t instanceof Uint8Array&&G(t,parseInt(e.slice(-3),10)),ei(e,t,r,n,i,o);case"A128GCM":case"A192GCM":case"A256GCM":return t instanceof Uint8Array&&G(t,parseInt(e.slice(1,4),10)),eo(e,t,r,n,i,o);default:throw new P("Unsupported JWE Content Encryption Algorithm")}},es=(...e)=>{let t;let r=e.filter(Boolean);if(0===r.length||1===r.length)return!0;for(let e of r){let r=Object.keys(e);if(!t||0===t.size){t=new Set(r);continue}for(let e of r){if(t.has(e))return!1;t.add(e)}}return!0};function eu(e){return"object"==typeof e&&null!==e}function ec(e){if(!eu(e)||"[object Object]"!==Object.prototype.toString.call(e))return!1;if(null===Object.getPrototypeOf(e))return!0;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}let el=[{hash:"SHA-256",name:"HMAC"},!0,["sign"]];function ed(e,t){if(e.algorithm.length!==parseInt(t.slice(1,4),10))throw TypeError(`Invalid key size for alg: ${t}`)}function ef(e,t,r){if(c(e))return Z(e,t,r),e;if(e instanceof Uint8Array)return u.subtle.importKey("raw",e,"AES-KW",!0,[r]);throw TypeError(ee(e,...en,"Uint8Array"))}let eh=async(e,t,r)=>{let n=await ef(t,e,"wrapKey");ed(n,e);let i=await u.subtle.importKey("raw",r,...el);return new Uint8Array(await u.subtle.wrapKey("raw",i,n,"AES-KW"))},ep=async(e,t,r)=>{let n=await ef(t,e,"unwrapKey");ed(n,e);let i=await u.subtle.unwrapKey("raw",r,n,"AES-KW",...el);return new Uint8Array(await u.subtle.exportKey("raw",i))};async function em(e,t,r,n,i=new Uint8Array(0),o=new Uint8Array(0)){let a;if(!c(e))throw TypeError(ee(e,...en));if(Z(e,"ECDH"),!c(t))throw TypeError(ee(t,...en));Z(t,"ECDH","deriveBits");let s=p(v(d.encode(r)),v(i),v(o),b(n));return a="X25519"===e.algorithm.name?256:"X448"===e.algorithm.name?448:Math.ceil(parseInt(e.algorithm.namedCurve.substr(-3),10)/8)<<3,w(new Uint8Array(await u.subtle.deriveBits({name:e.algorithm.name,public:e},t,a)),n,s)}async function eg(e){if(!c(e))throw TypeError(ee(e,...en));return u.subtle.generateKey(e.algorithm,!0,["deriveBits"])}function ey(e){if(!c(e))throw TypeError(ee(e,...en));return["P-256","P-384","P-521"].includes(e.algorithm.namedCurve)||"X25519"===e.algorithm.name||"X448"===e.algorithm.name}function eb(e){if(!(e instanceof Uint8Array)||e.length<8)throw new C("PBES2 Salt Input must be 8 or more octets")}function ev(e,t){if(e instanceof Uint8Array)return u.subtle.importKey("raw",e,"PBKDF2",!1,["deriveBits"]);if(c(e))return Z(e,t,"deriveBits","deriveKey"),e;throw TypeError(ee(e,...en,"Uint8Array"))}async function ew(e,t,r,n){eb(e);let i=m(t,e),o=parseInt(t.slice(13,16),10),a={hash:`SHA-${t.slice(8,11)}`,iterations:r,name:"PBKDF2",salt:i},s={length:o,name:"AES-KW"},c=await ev(n,t);if(c.usages.includes("deriveBits"))return new Uint8Array(await u.subtle.deriveBits(a,c,o));if(c.usages.includes("deriveKey"))return u.subtle.deriveKey(a,c,s,!1,["wrapKey","unwrapKey"]);throw TypeError('PBKDF2 key "usages" must include "deriveBits" or "deriveKey"')}let eS=async(e,t,r,n=2048,i=F(new Uint8Array(16)))=>{let o=await ew(i,e,n,t);return{encryptedKey:await eh(e.slice(-6),o,r),p2c:n,p2s:_(i)}},e_=async(e,t,r,n,i)=>{let o=await ew(i,e,n,t);return ep(e.slice(-6),o,r)};function ex(e){switch(e){case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":return"RSA-OAEP";default:throw new P(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}let eA=(e,t)=>{if(e.startsWith("RS")||e.startsWith("PS")){let{modulusLength:r}=t.algorithm;if("number"!=typeof r||r<2048)throw TypeError(`${e} requires key modulusLength to be 2048 bits or larger`)}},ek=async(e,t,r)=>{if(!c(t))throw TypeError(ee(t,...en));if(Z(t,e,"encrypt","wrapKey"),eA(e,t),t.usages.includes("encrypt"))return new Uint8Array(await u.subtle.encrypt(ex(e),t,r));if(t.usages.includes("wrapKey")){let n=await u.subtle.importKey("raw",r,...el);return new Uint8Array(await u.subtle.wrapKey("raw",n,t,ex(e)))}throw TypeError('RSA-OAEP key "usages" must include "encrypt" or "wrapKey" for this operation')},eE=async(e,t,r)=>{if(!c(t))throw TypeError(ee(t,...en));if(Z(t,e,"decrypt","unwrapKey"),eA(e,t),t.usages.includes("decrypt"))return new Uint8Array(await u.subtle.decrypt(ex(e),t,r));if(t.usages.includes("unwrapKey")){let n=await u.subtle.unwrapKey("raw",r,t,ex(e),...el);return new Uint8Array(await u.subtle.exportKey("raw",n))}throw TypeError('RSA-OAEP key "usages" must include "decrypt" or "unwrapKey" for this operation')};function eM(e){return ec(e)&&"string"==typeof e.kty}function eT(e){return"oct"!==e.kty&&"string"==typeof e.d}function eP(e){return"oct"!==e.kty&&void 0===e.d}function eI(e){return eM(e)&&"oct"===e.kty&&"string"==typeof e.k}function eC(e){let t,r;switch(e.kty){case"RSA":switch(e.alg){case"PS256":case"PS384":case"PS512":t={name:"RSA-PSS",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":t={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":t={name:"RSA-OAEP",hash:`SHA-${parseInt(e.alg.slice(-3),10)||1}`},r=e.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new P('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"EC":switch(e.alg){case"ES256":t={name:"ECDSA",namedCurve:"P-256"},r=e.d?["sign"]:["verify"];break;case"ES384":t={name:"ECDSA",namedCurve:"P-384"},r=e.d?["sign"]:["verify"];break;case"ES512":t={name:"ECDSA",namedCurve:"P-521"},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:"ECDH",namedCurve:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new P('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;case"OKP":switch(e.alg){case"Ed25519":t={name:"Ed25519"},r=e.d?["sign"]:["verify"];break;case"EdDSA":t={name:e.crv},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new P('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break;default:throw new P('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:t,keyUsages:r}}let eO=async e=>{if(!e.alg)throw TypeError('"alg" argument is required when "jwk.alg" is not present');let{algorithm:t,keyUsages:r}=eC(e),n=[t,e.ext??!1,e.key_ops??r],i={...e};return delete i.alg,delete i.use,u.subtle.importKey("jwk",i,...n)},eR=e=>A(e),ej=e=>e?.[Symbol.toStringTag]==="KeyObject",eD=async(e,t,r,n,i=!1)=>{let o=e.get(t);if(o?.[n])return o[n];let a=await eO({...r,alg:n});return i&&Object.freeze(t),o?o[n]=a:e.set(t,{[n]:a}),a},eL={normalizePublicKey:(e,t)=>{if(ej(e)){let r=e.export({format:"jwk"});return(delete r.d,delete r.dp,delete r.dq,delete r.p,delete r.q,delete r.qi,r.k)?eR(r.k):(i||(i=new WeakMap),eD(i,e,r,t))}return eM(e)?e.k?A(e.k):(i||(i=new WeakMap),eD(i,e,e,t,!0)):e},normalizePrivateKey:(e,t)=>{if(ej(e)){let r=e.export({format:"jwk"});return r.k?eR(r.k):(n||(n=new WeakMap),eD(n,e,r,t))}return eM(e)?e.k?A(e.k):(n||(n=new WeakMap),eD(n,e,e,t,!0)):e}};function eN(e){switch(e){case"A128GCM":return 128;case"A192GCM":return 192;case"A256GCM":case"A128CBC-HS256":return 256;case"A192CBC-HS384":return 384;case"A256CBC-HS512":return 512;default:throw new P(`Unsupported JWE Algorithm: ${e}`)}}let eB=e=>F(new Uint8Array(eN(e)>>3)),eU=(e,t)=>{let r=(e.match(/.{1,64}/g)||[]).join("\n");return`-----BEGIN ${t}----- ${r} ------END ${t}-----`},eF=async(e,t,r)=>{if(!c(r))throw TypeError(ee(r,...en));if(!r.extractable)throw TypeError("CryptoKey is not extractable");if(r.type!==e)throw TypeError(`key is not a ${e} key`);return eU(S(new Uint8Array(await u.subtle.exportKey(t,r))),`${e.toUpperCase()} KEY`)},eW=e=>eF("public","spki",e),eH=e=>eF("private","pkcs8",e),eq=(e,t,r=0)=>{0===r&&(t.unshift(t.length),t.unshift(6));let n=e.indexOf(t[0],r);if(-1===n)return!1;let i=e.subarray(n,n+t.length);return i.length===t.length&&(i.every((e,r)=>e===t[r])||eq(e,t,n+1))},eK=e=>{switch(!0){case eq(e,[42,134,72,206,61,3,1,7]):return"P-256";case eq(e,[43,129,4,0,34]):return"P-384";case eq(e,[43,129,4,0,35]):return"P-521";case eq(e,[43,101,110]):return"X25519";case eq(e,[43,101,111]):return"X448";case eq(e,[43,101,112]):return"Ed25519";case eq(e,[43,101,113]):return"Ed448";default:throw new P("Invalid or unsupported EC Key Curve or OKP Key Sub Type")}},eG=async(e,t,r,n,i)=>{let o,a;let s=new Uint8Array(atob(r.replace(e,"")).split("").map(e=>e.charCodeAt(0))),c="spki"===t;switch(n){case"PS256":case"PS384":case"PS512":o={name:"RSA-PSS",hash:`SHA-${n.slice(-3)}`},a=c?["verify"]:["sign"];break;case"RS256":case"RS384":case"RS512":o={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${n.slice(-3)}`},a=c?["verify"]:["sign"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":o={name:"RSA-OAEP",hash:`SHA-${parseInt(n.slice(-3),10)||1}`},a=c?["encrypt","wrapKey"]:["decrypt","unwrapKey"];break;case"ES256":o={name:"ECDSA",namedCurve:"P-256"},a=c?["verify"]:["sign"];break;case"ES384":o={name:"ECDSA",namedCurve:"P-384"},a=c?["verify"]:["sign"];break;case"ES512":o={name:"ECDSA",namedCurve:"P-521"},a=c?["verify"]:["sign"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{let e=eK(s);o=e.startsWith("P-")?{name:"ECDH",namedCurve:e}:{name:e},a=c?[]:["deriveBits"];break}case"Ed25519":o={name:"Ed25519"},a=c?["verify"]:["sign"];break;case"EdDSA":o={name:eK(s)},a=c?["verify"]:["sign"];break;default:throw new P('Invalid or unsupported "alg" (Algorithm) value')}return u.subtle.importKey(t,s,o,i?.extractable??!1,a)},ez=(e,t,r)=>eG(/(?:-----(?:BEGIN|END) PRIVATE KEY-----|\s)/g,"pkcs8",e,t,r),e$=(e,t,r)=>eG(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g,"spki",e,t,r);function eJ(e){let t=[],r=0;for(;r=128;)r=128*r+e[t]-128,t++;r=128*r+e[t]-128,t++}let n=0;if(e[t]<128)n=e[t],t++;else if(128===n){for(n=0;0!==e[t+n]||0!==e[t+n+1];){if(n>e.byteLength)throw TypeError("invalid indefinite form length");n++}let r=t+n+2;return{byteLength:r,contents:e.subarray(t,t+n),raw:e.subarray(0,r)}}else{let r=127&e[t];t++,n=0;for(let i=0;i{let n;try{n=eX(e)}catch(e){throw TypeError("Failed to parse the X.509 certificate",{cause:e})}return e$(n,t,r)};async function eQ(e,t,r){if("string"!=typeof e||0!==e.indexOf("-----BEGIN PUBLIC KEY-----"))throw TypeError('"spki" must be SPKI formatted string');return e$(e,t,r)}async function e0(e,t,r){if("string"!=typeof e||0!==e.indexOf("-----BEGIN CERTIFICATE-----"))throw TypeError('"x509" must be X.509 formatted string');return eZ(e,t,r)}async function e1(e,t,r){if("string"!=typeof e||0!==e.indexOf("-----BEGIN PRIVATE KEY-----"))throw TypeError('"pkcs8" must be PKCS#8 formatted string');return ez(e,t,r)}async function e2(e,t){if(!ec(e))throw TypeError("JWK must be an object");switch(t||(t=e.alg),e.kty){case"oct":if("string"!=typeof e.k||!e.k)throw TypeError('missing "k" (Key Value) Parameter value');return A(e.k);case"RSA":if("oth"in e&&void 0!==e.oth)throw new P('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');case"EC":case"OKP":return eO({...e,alg:t});default:throw new P('Unsupported "kty" (Key Type) Parameter value')}}let e3=e=>e?.[Symbol.toStringTag],e4=(e,t,r)=>{if(void 0!==t.use&&"sig"!==t.use)throw TypeError("Invalid key for this operation, when present its use must be sig");if(void 0!==t.key_ops&&t.key_ops.includes?.(r)!==!0)throw TypeError(`Invalid key for this operation, when present its key_ops must include ${r}`);if(void 0!==t.alg&&t.alg!==e)throw TypeError(`Invalid key for this operation, when present its alg must be ${e}`);return!0},e6=(e,t,r,n)=>{if(!(t instanceof Uint8Array)){if(n&&eM(t)){if(eI(t)&&e4(e,t,r))return;throw TypeError('JSON Web Key for symmetric algorithms must have JWK "kty" (Key Type) equal to "oct" and the JWK "k" (Key Value) present')}if(!er(t))throw TypeError(et(e,t,...en,"Uint8Array",n?"JSON Web Key":null));if("secret"!==t.type)throw TypeError(`${e3(t)} instances for symmetric algorithms must be of type "secret"`)}},e5=(e,t,r,n)=>{if(n&&eM(t))switch(r){case"sign":if(eT(t)&&e4(e,t,r))return;throw TypeError("JSON Web Key for this operation be a private JWK");case"verify":if(eP(t)&&e4(e,t,r))return;throw TypeError("JSON Web Key for this operation be a public JWK")}if(!er(t))throw TypeError(et(e,t,...en,n?"JSON Web Key":null));if("secret"===t.type)throw TypeError(`${e3(t)} instances for asymmetric algorithms must not be of type "secret"`);if("sign"===r&&"public"===t.type)throw TypeError(`${e3(t)} instances for asymmetric algorithm signing must be of type "private"`);if("decrypt"===r&&"public"===t.type)throw TypeError(`${e3(t)} instances for asymmetric algorithm decryption must be of type "private"`);if(t.algorithm&&"verify"===r&&"private"===t.type)throw TypeError(`${e3(t)} instances for asymmetric algorithm verifying must be of type "public"`);if(t.algorithm&&"encrypt"===r&&"private"===t.type)throw TypeError(`${e3(t)} instances for asymmetric algorithm encryption must be of type "public"`)};function e8(e,t,r,n){t.startsWith("HS")||"dir"===t||t.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(t)?e6(t,r,n,e):e5(t,r,n,e)}let e9=e8.bind(void 0,!1),e7=e8.bind(void 0,!0);async function te(e,t,r,n,i){if(!(r instanceof Uint8Array))throw TypeError(ee(r,"Uint8Array"));let o=parseInt(e.slice(1,4),10),a=await u.subtle.importKey("raw",r.subarray(o>>3),"AES-CBC",!1,["encrypt"]),s=await u.subtle.importKey("raw",r.subarray(0,o>>3),{hash:`SHA-${o<<1}`,name:"HMAC"},!1,["sign"]),c=new Uint8Array(await u.subtle.encrypt({iv:n,name:"AES-CBC"},a,t)),l=p(i,n,c,y(i.length<<3));return{ciphertext:c,tag:new Uint8Array((await u.subtle.sign("HMAC",s,l)).slice(0,o>>3)),iv:n}}async function tt(e,t,r,n,i){let o;r instanceof Uint8Array?o=await u.subtle.importKey("raw",r,"AES-GCM",!1,["encrypt"]):(Z(r,e,"encrypt"),o=r);let a=new Uint8Array(await u.subtle.encrypt({additionalData:i,iv:n,name:"AES-GCM",tagLength:128},o,t)),s=a.slice(-16);return{ciphertext:a.slice(0,-16),tag:s,iv:n}}let tr=async(e,t,r,n,i)=>{if(!c(r)&&!(r instanceof Uint8Array))throw TypeError(ee(r,...en,"Uint8Array"));switch(n?q(e,n):n=H(e),e){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return r instanceof Uint8Array&&K(r,parseInt(e.slice(-3),10)),te(e,t,r,n,i);case"A128GCM":case"A192GCM":case"A256GCM":return r instanceof Uint8Array&&K(r,parseInt(e.slice(1,4),10)),tt(e,t,r,n,i);default:throw new P("Unsupported JWE Content Encryption Algorithm")}};async function tn(e,t,r,n){let i=e.slice(0,7),o=await tr(i,r,t,n,new Uint8Array(0));return{encryptedKey:o.ciphertext,iv:_(o.iv),tag:_(o.tag)}}async function ti(e,t,r,n,i){return ea(e.slice(0,7),t,r,n,i,new Uint8Array(0))}let to=async function(e,t,r,n,i){switch(e9(e,t,"decrypt"),t=await eL.normalizePrivateKey?.(t,e)||t,e){case"dir":if(void 0!==r)throw new C("Encountered unexpected JWE Encrypted Key");return t;case"ECDH-ES":if(void 0!==r)throw new C("Encountered unexpected JWE Encrypted Key");case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{let i,o;if(!ec(n.epk))throw new C('JOSE Header "epk" (Ephemeral Public Key) missing or invalid');if(!ey(t))throw new P("ECDH with the provided key is not allowed or not supported by your javascript runtime");let a=await e2(n.epk,e);if(void 0!==n.apu){if("string"!=typeof n.apu)throw new C('JOSE Header "apu" (Agreement PartyUInfo) invalid');try{i=A(n.apu)}catch{throw new C("Failed to base64url decode the apu")}}if(void 0!==n.apv){if("string"!=typeof n.apv)throw new C('JOSE Header "apv" (Agreement PartyVInfo) invalid');try{o=A(n.apv)}catch{throw new C("Failed to base64url decode the apv")}}let s=await em(a,t,"ECDH-ES"===e?n.enc:e,"ECDH-ES"===e?eN(n.enc):parseInt(e.slice(-5,-2),10),i,o);if("ECDH-ES"===e)return s;if(void 0===r)throw new C("JWE Encrypted Key missing");return ep(e.slice(-6),s,r)}case"RSA1_5":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":if(void 0===r)throw new C("JWE Encrypted Key missing");return eE(e,t,r);case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{let o;if(void 0===r)throw new C("JWE Encrypted Key missing");if("number"!=typeof n.p2c)throw new C('JOSE Header "p2c" (PBES2 Count) missing or invalid');let a=i?.maxPBES2Count||1e4;if(n.p2c>a)throw new C('JOSE Header "p2c" (PBES2 Count) out is of acceptable bounds');if("string"!=typeof n.p2s)throw new C('JOSE Header "p2s" (PBES2 Salt) missing or invalid');try{o=A(n.p2s)}catch{throw new C("Failed to base64url decode the p2s")}return e_(e,t,r,n.p2c,o)}case"A128KW":case"A192KW":case"A256KW":if(void 0===r)throw new C("JWE Encrypted Key missing");return ep(e,t,r);case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{let i,o;if(void 0===r)throw new C("JWE Encrypted Key missing");if("string"!=typeof n.iv)throw new C('JOSE Header "iv" (Initialization Vector) missing or invalid');if("string"!=typeof n.tag)throw new C('JOSE Header "tag" (Authentication Tag) missing or invalid');try{i=A(n.iv)}catch{throw new C("Failed to base64url decode the iv")}try{o=A(n.tag)}catch{throw new C("Failed to base64url decode the tag")}return ti(e,t,r,i,o)}default:throw new P('Invalid or unsupported "alg" (JWE Algorithm) header value')}},ta=function(e,t,r,n,i){let o;if(void 0!==i.crit&&n?.crit===void 0)throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');if(!n||void 0===n.crit)return new Set;if(!Array.isArray(n.crit)||0===n.crit.length||n.crit.some(e=>"string"!=typeof e||0===e.length))throw new e('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');for(let a of(o=void 0!==r?new Map([...Object.entries(r),...t.entries()]):t,n.crit)){if(!o.has(a))throw new P(`Extension Header Parameter "${a}" is not recognized`);if(void 0===i[a])throw new e(`Extension Header Parameter "${a}" is missing`);if(o.get(a)&&void 0===n[a])throw new e(`Extension Header Parameter "${a}" MUST be integrity protected`)}return new Set(n.crit)},ts=(e,t)=>{if(void 0!==t&&(!Array.isArray(t)||t.some(e=>"string"!=typeof e)))throw TypeError(`"${e}" option must be an array of strings`);if(t)return new Set(t)};async function tu(e,t,r){let n,i,o,a,s,u,c;if(!ec(e))throw new C("Flattened JWE must be an object");if(void 0===e.protected&&void 0===e.header&&void 0===e.unprotected)throw new C("JOSE Header missing");if(void 0!==e.iv&&"string"!=typeof e.iv)throw new C("JWE Initialization Vector incorrect type");if("string"!=typeof e.ciphertext)throw new C("JWE Ciphertext missing or incorrect type");if(void 0!==e.tag&&"string"!=typeof e.tag)throw new C("JWE Authentication Tag incorrect type");if(void 0!==e.protected&&"string"!=typeof e.protected)throw new C("JWE Protected Header incorrect type");if(void 0!==e.encrypted_key&&"string"!=typeof e.encrypted_key)throw new C("JWE Encrypted Key incorrect type");if(void 0!==e.aad&&"string"!=typeof e.aad)throw new C("JWE AAD incorrect type");if(void 0!==e.header&&!ec(e.header))throw new C("JWE Shared Unprotected Header incorrect type");if(void 0!==e.unprotected&&!ec(e.unprotected))throw new C("JWE Per-Recipient Unprotected Header incorrect type");if(e.protected)try{let t=A(e.protected);n=JSON.parse(f.decode(t))}catch{throw new C("JWE Protected Header is invalid")}if(!es(n,e.header,e.unprotected))throw new C("JWE Protected, JWE Unprotected Header, and JWE Per-Recipient Unprotected Header Parameter names must be disjoint");let l={...n,...e.header,...e.unprotected};if(ta(C,new Map,r?.crit,n,l),void 0!==l.zip)throw new P('JWE "zip" (Compression Algorithm) Header Parameter is not supported.');let{alg:h,enc:m}=l;if("string"!=typeof h||!h)throw new C("missing JWE Algorithm (alg) in JWE Header");if("string"!=typeof m||!m)throw new C("missing JWE Encryption Algorithm (enc) in JWE Header");let g=r&&ts("keyManagementAlgorithms",r.keyManagementAlgorithms),y=r&&ts("contentEncryptionAlgorithms",r.contentEncryptionAlgorithms);if(g&&!g.has(h)||!g&&h.startsWith("PBES2"))throw new T('"alg" (Algorithm) Header Parameter value not allowed');if(y&&!y.has(m))throw new T('"enc" (Encryption Algorithm) Header Parameter value not allowed');if(void 0!==e.encrypted_key)try{i=A(e.encrypted_key)}catch{throw new C("Failed to base64url decode the encrypted_key")}let b=!1;"function"==typeof t&&(t=await t(n,e),b=!0);try{o=await to(h,t,i,l,r)}catch(e){if(e instanceof TypeError||e instanceof C||e instanceof P)throw e;o=eB(m)}if(void 0!==e.iv)try{a=A(e.iv)}catch{throw new C("Failed to base64url decode the iv")}if(void 0!==e.tag)try{s=A(e.tag)}catch{throw new C("Failed to base64url decode the tag")}let v=d.encode(e.protected??"");u=void 0!==e.aad?p(v,d.encode("."),d.encode(e.aad)):v;try{c=A(e.ciphertext)}catch{throw new C("Failed to base64url decode the ciphertext")}let w={plaintext:await ea(m,o,c,a,s,u)};if(void 0!==e.protected&&(w.protectedHeader=n),void 0!==e.aad)try{w.additionalAuthenticatedData=A(e.aad)}catch{throw new C("Failed to base64url decode the aad")}return(void 0!==e.unprotected&&(w.sharedUnprotectedHeader=e.unprotected),void 0!==e.header&&(w.unprotectedHeader=e.header),b)?{...w,key:t}:w}async function tc(e,t,r){if(e instanceof Uint8Array&&(e=f.decode(e)),"string"!=typeof e)throw new C("Compact JWE must be a string or Uint8Array");let{0:n,1:i,2:o,3:a,4:s,length:u}=e.split(".");if(5!==u)throw new C("Invalid Compact JWE");let c=await tu({ciphertext:a,iv:o||void 0,protected:n,tag:s||void 0,encrypted_key:i||void 0},t,r),l={plaintext:c.plaintext,protectedHeader:c.protectedHeader};return"function"==typeof t?{...l,key:c.key}:l}async function tl(e,t,r){if(!ec(e))throw new C("General JWE must be an object");if(!Array.isArray(e.recipients)||!e.recipients.every(ec))throw new C("JWE Recipients missing or incorrect type");if(!e.recipients.length)throw new C("JWE Recipients has no members");for(let n of e.recipients)try{return await tu({aad:e.aad,ciphertext:e.ciphertext,encrypted_key:n.encrypted_key,header:n.header,iv:e.iv,protected:e.protected,tag:e.tag,unprotected:e.unprotected},t,r)}catch{}throw new I}let td=Symbol(),tf=async e=>{if(e instanceof Uint8Array)return{kty:"oct",k:_(e)};if(!c(e))throw TypeError(ee(e,...en,"Uint8Array"));if(!e.extractable)throw TypeError("non-extractable CryptoKey cannot be exported as a JWK");let{ext:t,key_ops:r,alg:n,use:i,...o}=await u.subtle.exportKey("jwk",e);return o};async function th(e){return eW(e)}async function tp(e){return eH(e)}async function tm(e){return tf(e)}let tg=async function(e,t,r,n,i={}){let o,a,s;switch(e9(e,r,"encrypt"),r=await eL.normalizePublicKey?.(r,e)||r,e){case"dir":s=r;break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{if(!ey(r))throw new P("ECDH with the provided key is not allowed or not supported by your javascript runtime");let{apu:u,apv:c}=i,{epk:l}=i;l||(l=(await eg(r)).privateKey);let{x:d,y:f,crv:h,kty:p}=await tm(l),m=await em(r,l,"ECDH-ES"===e?t:e,"ECDH-ES"===e?eN(t):parseInt(e.slice(-5,-2),10),u,c);if(a={epk:{x:d,crv:h,kty:p}},"EC"===p&&(a.epk.y=f),u&&(a.apu=_(u)),c&&(a.apv=_(c)),"ECDH-ES"===e){s=m;break}s=n||eB(t);let g=e.slice(-6);o=await eh(g,m,s);break}case"RSA1_5":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":s=n||eB(t),o=await ek(e,r,s);break;case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{s=n||eB(t);let{p2c:u,p2s:c}=i;({encryptedKey:o,...a}=await eS(e,r,s,u,c));break}case"A128KW":case"A192KW":case"A256KW":s=n||eB(t),o=await eh(e,r,s);break;case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{s=n||eB(t);let{iv:u}=i;({encryptedKey:o,...a}=await tn(e,r,s,u));break}default:throw new P('Invalid or unsupported "alg" (JWE Algorithm) header value')}return{cek:s,encryptedKey:o,parameters:a}};class ty{constructor(e){if(!(e instanceof Uint8Array))throw TypeError("plaintext must be an instance of Uint8Array");this._plaintext=e}setKeyManagementParameters(e){if(this._keyManagementParameters)throw TypeError("setKeyManagementParameters can only be called once");return this._keyManagementParameters=e,this}setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setSharedUnprotectedHeader(e){if(this._sharedUnprotectedHeader)throw TypeError("setSharedUnprotectedHeader can only be called once");return this._sharedUnprotectedHeader=e,this}setUnprotectedHeader(e){if(this._unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}setAdditionalAuthenticatedData(e){return this._aad=e,this}setContentEncryptionKey(e){if(this._cek)throw TypeError("setContentEncryptionKey can only be called once");return this._cek=e,this}setInitializationVector(e){if(this._iv)throw TypeError("setInitializationVector can only be called once");return this._iv=e,this}async encrypt(e,t){let r,n,i,o,a;if(!this._protectedHeader&&!this._unprotectedHeader&&!this._sharedUnprotectedHeader)throw new C("either setProtectedHeader, setUnprotectedHeader, or sharedUnprotectedHeader must be called before #encrypt()");if(!es(this._protectedHeader,this._unprotectedHeader,this._sharedUnprotectedHeader))throw new C("JWE Protected, JWE Shared Unprotected and JWE Per-Recipient Header Parameter names must be disjoint");let s={...this._protectedHeader,...this._unprotectedHeader,...this._sharedUnprotectedHeader};if(ta(C,new Map,t?.crit,this._protectedHeader,s),void 0!==s.zip)throw new P('JWE "zip" (Compression Algorithm) Header Parameter is not supported.');let{alg:u,enc:c}=s;if("string"!=typeof u||!u)throw new C('JWE "alg" (Algorithm) Header Parameter missing or invalid');if("string"!=typeof c||!c)throw new C('JWE "enc" (Encryption Algorithm) Header Parameter missing or invalid');if(this._cek&&("dir"===u||"ECDH-ES"===u))throw TypeError(`setContentEncryptionKey cannot be called with JWE "alg" (Algorithm) Header ${u}`);{let i;({cek:n,encryptedKey:r,parameters:i}=await tg(u,c,e,this._cek,this._keyManagementParameters)),i&&(t&&td in t?this._unprotectedHeader?this._unprotectedHeader={...this._unprotectedHeader,...i}:this.setUnprotectedHeader(i):this._protectedHeader?this._protectedHeader={...this._protectedHeader,...i}:this.setProtectedHeader(i))}o=this._protectedHeader?d.encode(_(JSON.stringify(this._protectedHeader))):d.encode(""),this._aad?(a=_(this._aad),i=p(o,d.encode("."),d.encode(a))):i=o;let{ciphertext:l,tag:h,iv:m}=await tr(c,this._plaintext,n,this._iv,i),g={ciphertext:_(l)};return m&&(g.iv=_(m)),h&&(g.tag=_(h)),r&&(g.encrypted_key=_(r)),a&&(g.aad=a),this._protectedHeader&&(g.protected=f.decode(o)),this._sharedUnprotectedHeader&&(g.unprotected=this._sharedUnprotectedHeader),this._unprotectedHeader&&(g.header=this._unprotectedHeader),g}}class tb{constructor(e,t,r){this.parent=e,this.key=t,this.options=r}setUnprotectedHeader(e){if(this.unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this.unprotectedHeader=e,this}addRecipient(...e){return this.parent.addRecipient(...e)}encrypt(...e){return this.parent.encrypt(...e)}done(){return this.parent}}class tv{constructor(e){this._recipients=[],this._plaintext=e}addRecipient(e,t){let r=new tb(this,e,{crit:t?.crit});return this._recipients.push(r),r}setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setSharedUnprotectedHeader(e){if(this._unprotectedHeader)throw TypeError("setSharedUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}setAdditionalAuthenticatedData(e){return this._aad=e,this}async encrypt(){let e;if(!this._recipients.length)throw new C("at least one recipient must be added");if(1===this._recipients.length){let[e]=this._recipients,t=await new ty(this._plaintext).setAdditionalAuthenticatedData(this._aad).setProtectedHeader(this._protectedHeader).setSharedUnprotectedHeader(this._unprotectedHeader).setUnprotectedHeader(e.unprotectedHeader).encrypt(e.key,{...e.options}),r={ciphertext:t.ciphertext,iv:t.iv,recipients:[{}],tag:t.tag};return t.aad&&(r.aad=t.aad),t.protected&&(r.protected=t.protected),t.unprotected&&(r.unprotected=t.unprotected),t.encrypted_key&&(r.recipients[0].encrypted_key=t.encrypted_key),t.header&&(r.recipients[0].header=t.header),r}for(let t=0;t>3};case"RS256":case"RS384":case"RS512":return{hash:r,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:r,name:"ECDSA",namedCurve:t.namedCurve};case"Ed25519":return{name:"Ed25519"};case"EdDSA":return{name:t.name};default:throw new P(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}async function tS(e,t,r){if("sign"===r&&(t=await eL.normalizePrivateKey(t,e)),"verify"===r&&(t=await eL.normalizePublicKey(t,e)),c(t))return X(t,e,r),t;if(t instanceof Uint8Array){if(!e.startsWith("HS"))throw TypeError(ee(t,...en));return u.subtle.importKey("raw",t,{hash:`SHA-${e.slice(-3)}`,name:"HMAC"},!1,[r])}throw TypeError(ee(t,...en,"Uint8Array","JSON Web Key"))}let t_=async(e,t,r,n)=>{let i=await tS(e,t,"verify");eA(e,i);let o=tw(e,i.algorithm);try{return await u.subtle.verify(o,i,r,n)}catch{return!1}};async function tx(e,t,r){let n,i;if(!ec(e))throw new O("Flattened JWS must be an object");if(void 0===e.protected&&void 0===e.header)throw new O('Flattened JWS must have either of the "protected" or "header" members');if(void 0!==e.protected&&"string"!=typeof e.protected)throw new O("JWS Protected Header incorrect type");if(void 0===e.payload)throw new O("JWS Payload missing");if("string"!=typeof e.signature)throw new O("JWS Signature missing or incorrect type");if(void 0!==e.header&&!ec(e.header))throw new O("JWS Unprotected Header incorrect type");let o={};if(e.protected)try{let t=A(e.protected);o=JSON.parse(f.decode(t))}catch{throw new O("JWS Protected Header is invalid")}if(!es(o,e.header))throw new O("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let a={...o,...e.header},s=ta(O,new Map([["b64",!0]]),r?.crit,o,a),u=!0;if(s.has("b64")&&"boolean"!=typeof(u=o.b64))throw new O('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:c}=a;if("string"!=typeof c||!c)throw new O('JWS "alg" (Algorithm) Header Parameter missing or invalid');let l=r&&ts("algorithms",r.algorithms);if(l&&!l.has(c))throw new T('"alg" (Algorithm) Header Parameter value not allowed');if(u){if("string"!=typeof e.payload)throw new O("JWS Payload must be a string")}else if("string"!=typeof e.payload&&!(e.payload instanceof Uint8Array))throw new O("JWS Payload must be a string or an Uint8Array instance");let h=!1;"function"==typeof t?(t=await t(o,e),h=!0,e7(c,t,"verify"),eM(t)&&(t=await e2(t,c))):e7(c,t,"verify");let m=p(d.encode(e.protected??""),d.encode("."),"string"==typeof e.payload?d.encode(e.payload):e.payload);try{n=A(e.signature)}catch{throw new O("Failed to base64url decode the signature")}if(!await t_(c,t,n,m))throw new U;if(u)try{i=A(e.payload)}catch{throw new O("Failed to base64url decode the payload")}else i="string"==typeof e.payload?d.encode(e.payload):e.payload;let g={payload:i};return(void 0!==e.protected&&(g.protectedHeader=o),void 0!==e.header&&(g.unprotectedHeader=e.header),h)?{...g,key:t}:g}async function tA(e,t,r){if(e instanceof Uint8Array&&(e=f.decode(e)),"string"!=typeof e)throw new O("Compact JWS must be a string or Uint8Array");let{0:n,1:i,2:o,length:a}=e.split(".");if(3!==a)throw new O("Invalid Compact JWS");let s=await tx({payload:i,protected:n,signature:o},t,r),u={payload:s.payload,protectedHeader:s.protectedHeader};return"function"==typeof t?{...u,key:s.key}:u}async function tk(e,t,r){if(!ec(e))throw new O("General JWS must be an object");if(!Array.isArray(e.signatures)||!e.signatures.every(ec))throw new O("JWS Signatures missing or incorrect type");for(let n of e.signatures)try{return await tx({header:n.header,payload:e.payload,protected:n.protected,signature:n.signature},t,r)}catch{}throw new U}let tE=e=>Math.floor(e.getTime()/1e3),tM=60,tT=3600,tP=86400,tI=604800,tC=0x1e187e0,tO=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i,tR=e=>{let t;let r=tO.exec(e);if(!r||r[4]&&r[1])throw TypeError("Invalid time period format");let n=parseFloat(r[2]);switch(r[3].toLowerCase()){case"sec":case"secs":case"second":case"seconds":case"s":t=Math.round(n);break;case"minute":case"minutes":case"min":case"mins":case"m":t=Math.round(n*tM);break;case"hour":case"hours":case"hr":case"hrs":case"h":t=Math.round(n*tT);break;case"day":case"days":case"d":t=Math.round(n*tP);break;case"week":case"weeks":case"w":t=Math.round(n*tI);break;default:t=Math.round(n*tC)}return"-"===r[1]||"ago"===r[4]?-t:t},tj=e=>e.toLowerCase().replace(/^application\//,""),tD=(e,t)=>"string"==typeof e?t.includes(e):!!Array.isArray(e)&&t.some(Set.prototype.has.bind(new Set(e))),tL=(e,t,r={})=>{let n,i;try{n=JSON.parse(f.decode(t))}catch{}if(!ec(n))throw new R("JWT Claims Set must be a top-level JSON object");let{typ:o}=r;if(o&&("string"!=typeof e.typ||tj(e.typ)!==tj(o)))throw new E('unexpected "typ" JWT header value',n,"typ","check_failed");let{requiredClaims:a=[],issuer:s,subject:u,audience:c,maxTokenAge:l}=r,d=[...a];for(let e of(void 0!==l&&d.push("iat"),void 0!==c&&d.push("aud"),void 0!==u&&d.push("sub"),void 0!==s&&d.push("iss"),new Set(d.reverse())))if(!(e in n))throw new E(`missing required "${e}" claim`,n,e,"missing");if(s&&!(Array.isArray(s)?s:[s]).includes(n.iss))throw new E('unexpected "iss" claim value',n,"iss","check_failed");if(u&&n.sub!==u)throw new E('unexpected "sub" claim value',n,"sub","check_failed");if(c&&!tD(n.aud,"string"==typeof c?[c]:c))throw new E('unexpected "aud" claim value',n,"aud","check_failed");switch(typeof r.clockTolerance){case"string":i=tR(r.clockTolerance);break;case"number":i=r.clockTolerance;break;case"undefined":i=0;break;default:throw TypeError("Invalid clockTolerance option type")}let{currentDate:h}=r,p=tE(h||new Date);if((void 0!==n.iat||l)&&"number"!=typeof n.iat)throw new E('"iat" claim must be a number',n,"iat","invalid");if(void 0!==n.nbf){if("number"!=typeof n.nbf)throw new E('"nbf" claim must be a number',n,"nbf","invalid");if(n.nbf>p+i)throw new E('"nbf" claim timestamp check failed',n,"nbf","check_failed")}if(void 0!==n.exp){if("number"!=typeof n.exp)throw new E('"exp" claim must be a number',n,"exp","invalid");if(n.exp<=p-i)throw new M('"exp" claim timestamp check failed',n,"exp","check_failed")}if(l){let e=p-n.iat;if(e-i>("number"==typeof l?l:tR(l)))throw new M('"iat" claim timestamp check failed (too far in the past)',n,"iat","check_failed");if(e<0-i)throw new E('"iat" claim timestamp check failed (it should be in the past)',n,"iat","check_failed")}return n};async function tN(e,t,r){let n=await tA(e,t,r);if(n.protectedHeader.crit?.includes("b64")&&!1===n.protectedHeader.b64)throw new R("JWTs MUST NOT use unencoded payload");let i={payload:tL(n.protectedHeader,n.payload,r),protectedHeader:n.protectedHeader};return"function"==typeof t?{...i,key:n.key}:i}async function tB(e,t,r){let n=await tc(e,t,r),i=tL(n.protectedHeader,n.plaintext,r),{protectedHeader:o}=n;if(void 0!==o.iss&&o.iss!==i.iss)throw new E('replicated "iss" claim header parameter mismatch',i,"iss","mismatch");if(void 0!==o.sub&&o.sub!==i.sub)throw new E('replicated "sub" claim header parameter mismatch',i,"sub","mismatch");if(void 0!==o.aud&&JSON.stringify(o.aud)!==JSON.stringify(i.aud))throw new E('replicated "aud" claim header parameter mismatch',i,"aud","mismatch");let a={payload:i,protectedHeader:o};return"function"==typeof t?{...a,key:n.key}:a}class tU{constructor(e){this._flattened=new ty(e)}setContentEncryptionKey(e){return this._flattened.setContentEncryptionKey(e),this}setInitializationVector(e){return this._flattened.setInitializationVector(e),this}setProtectedHeader(e){return this._flattened.setProtectedHeader(e),this}setKeyManagementParameters(e){return this._flattened.setKeyManagementParameters(e),this}async encrypt(e,t){let r=await this._flattened.encrypt(e,t);return[r.protected,r.encrypted_key,r.iv,r.ciphertext,r.tag].join(".")}}let tF=async(e,t,r)=>{let n=await tS(e,t,"sign");return eA(e,n),new Uint8Array(await u.subtle.sign(tw(e,n.algorithm),n,r))};class tW{constructor(e){if(!(e instanceof Uint8Array))throw TypeError("payload must be an instance of Uint8Array");this._payload=e}setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setUnprotectedHeader(e){if(this._unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}async sign(e,t){let r;if(!this._protectedHeader&&!this._unprotectedHeader)throw new O("either setProtectedHeader or setUnprotectedHeader must be called before #sign()");if(!es(this._protectedHeader,this._unprotectedHeader))throw new O("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let n={...this._protectedHeader,...this._unprotectedHeader},i=ta(O,new Map([["b64",!0]]),t?.crit,this._protectedHeader,n),o=!0;if(i.has("b64")&&"boolean"!=typeof(o=this._protectedHeader.b64))throw new O('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:a}=n;if("string"!=typeof a||!a)throw new O('JWS "alg" (Algorithm) Header Parameter missing or invalid');e7(a,e,"sign");let s=this._payload;o&&(s=d.encode(_(s)));let u=p(r=this._protectedHeader?d.encode(_(JSON.stringify(this._protectedHeader))):d.encode(""),d.encode("."),s),c={signature:_(await tF(a,e,u)),payload:""};return o&&(c.payload=f.decode(s)),this._unprotectedHeader&&(c.header=this._unprotectedHeader),this._protectedHeader&&(c.protected=f.decode(r)),c}}class tH{constructor(e){this._flattened=new tW(e)}setProtectedHeader(e){return this._flattened.setProtectedHeader(e),this}async sign(e,t){let r=await this._flattened.sign(e,t);if(void 0===r.payload)throw TypeError("use the flattened module for creating JWS with b64: false");return`${r.protected}.${r.payload}.${r.signature}`}}class tq{constructor(e,t,r){this.parent=e,this.key=t,this.options=r}setProtectedHeader(e){if(this.protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this.protectedHeader=e,this}setUnprotectedHeader(e){if(this.unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this.unprotectedHeader=e,this}addSignature(...e){return this.parent.addSignature(...e)}sign(...e){return this.parent.sign(...e)}done(){return this.parent}}class tK{constructor(e){this._signatures=[],this._payload=e}addSignature(e,t){let r=new tq(this,e,t);return this._signatures.push(r),r}async sign(){if(!this._signatures.length)throw new O("at least one signature must be added");let e={signatures:[],payload:""};for(let t=0;t{if("string"!=typeof e||!e)throw new j(`${t} missing or invalid`)};async function tV(e,t){let r;if(!ec(e))throw TypeError("JWK must be an object");if(t??(t="sha256"),"sha256"!==t&&"sha384"!==t&&"sha512"!==t)throw TypeError('digestAlgorithm must one of "sha256", "sha384", or "sha512"');switch(e.kty){case"EC":tY(e.crv,'"crv" (Curve) Parameter'),tY(e.x,'"x" (X Coordinate) Parameter'),tY(e.y,'"y" (Y Coordinate) Parameter'),r={crv:e.crv,kty:e.kty,x:e.x,y:e.y};break;case"OKP":tY(e.crv,'"crv" (Subtype of Key Pair) Parameter'),tY(e.x,'"x" (Public Key) Parameter'),r={crv:e.crv,kty:e.kty,x:e.x};break;case"RSA":tY(e.e,'"e" (Exponent) Parameter'),tY(e.n,'"n" (Modulus) Parameter'),r={e:e.e,kty:e.kty,n:e.n};break;case"oct":tY(e.k,'"k" (Key Value) Parameter'),r={k:e.k,kty:e.kty};break;default:throw new P('"kty" (Key Type) Parameter missing or unsupported')}let n=d.encode(JSON.stringify(r));return _(await l(t,n))}async function tX(e,t){t??(t="sha256");let r=await tV(e,t);return`urn:ietf:params:oauth:jwk-thumbprint:sha-${t.slice(-3)}:${r}`}async function tZ(e,t){let r={...e,...t?.header};if(!ec(r.jwk))throw new O('"jwk" (JSON Web Key) Header Parameter must be a JSON object');let n=await e2({...r.jwk,ext:!0},r.alg);if(n instanceof Uint8Array||"public"!==n.type)throw new O('"jwk" (JSON Web Key) Header Parameter must be a public key');return n}function tQ(e){switch("string"==typeof e&&e.slice(0,2)){case"RS":case"PS":return"RSA";case"ES":return"EC";case"Ed":return"OKP";default:throw new P('Unsupported "alg" value for a JSON Web Key Set')}}function t0(e){return e&&"object"==typeof e&&Array.isArray(e.keys)&&e.keys.every(t1)}function t1(e){return ec(e)}function t2(e){return"function"==typeof structuredClone?structuredClone(e):JSON.parse(JSON.stringify(e))}class t3{constructor(e){if(this._cached=new WeakMap,!t0(e))throw new D("JSON Web Key Set malformed");this._jwks=t2(e)}async getKey(e,t){let{alg:r,kid:n}={...e,...t?.header},i=tQ(r),o=this._jwks.keys.filter(e=>{let t=i===e.kty;if(t&&"string"==typeof n&&(t=n===e.kid),t&&"string"==typeof e.alg&&(t=r===e.alg),t&&"string"==typeof e.use&&(t="sig"===e.use),t&&Array.isArray(e.key_ops)&&(t=e.key_ops.includes("verify")),t)switch(r){case"ES256":t="P-256"===e.crv;break;case"ES256K":t="secp256k1"===e.crv;break;case"ES384":t="P-384"===e.crv;break;case"ES512":t="P-521"===e.crv;break;case"Ed25519":t="Ed25519"===e.crv;break;case"EdDSA":t="Ed25519"===e.crv||"Ed448"===e.crv}return t}),{0:a,length:s}=o;if(0===s)throw new L;if(1!==s){let e=new N,{_cached:t}=this;throw e[Symbol.asyncIterator]=async function*(){for(let e of o)try{yield await t4(t,e,r)}catch{}},e}return t4(this._cached,a,r)}}async function t4(e,t,r){let n=e.get(t)||e.set(t,{}).get(t);if(void 0===n[r]){let e=await e2({...t,ext:!0},r);if(e instanceof Uint8Array||"public"!==e.type)throw new D("JSON Web Key Set members must be public keys");n[r]=e}return n[r]}function t6(e){let t=new t3(e),r=async(e,r)=>t.getKey(e,r);return Object.defineProperties(r,{jwks:{value:()=>t2(t._jwks),enumerable:!0,configurable:!1,writable:!1}}),r}let t5=async(e,t,r)=>{let n,i;let o=!1;"function"==typeof AbortController&&(n=new AbortController,i=setTimeout(()=>{o=!0,n.abort()},t));let a=await fetch(e.href,{signal:n?n.signal:void 0,redirect:"manual",headers:r.headers}).catch(e=>{if(o)throw new B;throw e});if(void 0!==i&&clearTimeout(i),200!==a.status)throw new k("Expected 200 OK from the JSON Web Key Set HTTP response");try{return await a.json()}catch{throw new k("Failed to parse the JSON Web Key Set HTTP response as JSON")}};function t8(){return"undefined"!=typeof WebSocketPair||"undefined"!=typeof navigator&&"Cloudflare-Workers"===navigator.userAgent||"undefined"!=typeof EdgeRuntime&&"vercel"===EdgeRuntime}if("undefined"==typeof navigator||!navigator.userAgent?.startsWith?.("Mozilla/5.0 ")){let e="jose",t="v5.10.0";o=`${e}/${t}`}let t9=Symbol();function t7(e,t){return!!(!("object"!=typeof e||null===e||!("uat"in e)||"number"!=typeof e.uat||Date.now()-e.uat>=t)&&"jwks"in e&&ec(e.jwks)&&Array.isArray(e.jwks.keys)&&Array.prototype.every.call(e.jwks.keys,ec))}class re{constructor(e,t){if(!(e instanceof URL))throw TypeError("url must be an instance of URL");this._url=new URL(e.href),this._options={agent:t?.agent,headers:t?.headers},this._timeoutDuration="number"==typeof t?.timeoutDuration?t?.timeoutDuration:5e3,this._cooldownDuration="number"==typeof t?.cooldownDuration?t?.cooldownDuration:3e4,this._cacheMaxAge="number"==typeof t?.cacheMaxAge?t?.cacheMaxAge:6e5,t?.[t9]!==void 0&&(this._cache=t?.[t9],t7(t?.[t9],this._cacheMaxAge)&&(this._jwksTimestamp=this._cache.uat,this._local=t6(this._cache.jwks)))}coolingDown(){return"number"==typeof this._jwksTimestamp&&Date.now(){this._local=t6(e),this._cache&&(this._cache.uat=Date.now(),this._cache.jwks=e),this._jwksTimestamp=Date.now(),this._pendingFetch=void 0}).catch(e=>{throw this._pendingFetch=void 0,e})),await this._pendingFetch}}function rt(e,t){let r=new re(e,t),n=async(e,t)=>r.getKey(e,t);return Object.defineProperties(n,{coolingDown:{get:()=>r.coolingDown(),enumerable:!0,configurable:!1},fresh:{get:()=>r.fresh(),enumerable:!0,configurable:!1},reload:{value:()=>r.reload(),enumerable:!0,configurable:!1,writable:!1},reloading:{get:()=>!!r._pendingFetch,enumerable:!0,configurable:!1},jwks:{value:()=>r._local?.jwks(),enumerable:!0,configurable:!1,writable:!1}}),n}let rr=t9;class rn extends tz{encode(){let e=_(JSON.stringify({alg:"none"})),t=_(JSON.stringify(this._payload));return`${e}.${t}.`}static decode(e,t){let r;if("string"!=typeof e)throw new R("Unsecured JWT must be a string");let{0:n,1:i,2:o,length:a}=e.split(".");if(3!==a||""!==o)throw new R("Invalid Unsecured JWT");try{if(r=JSON.parse(f.decode(A(n))),"none"!==r.alg)throw Error()}catch{throw new R("Invalid Unsecured JWT")}return{payload:tL(r,A(i),t),header:r}}}let ri=_,ro=A;function ra(e){let t;if("string"==typeof e){let r=e.split(".");(3===r.length||5===r.length)&&([t]=r)}else if("object"==typeof e&&e){if("protected"in e)t=e.protected;else throw TypeError("Token does not contain a Protected Header")}try{if("string"!=typeof t||!t)throw Error();let e=JSON.parse(f.decode(ro(t)));if(!ec(e))throw Error();return e}catch{throw TypeError("Invalid Token or Protected Header formatting")}}function rs(e){let t,r;if("string"!=typeof e)throw new R("JWTs must use Compact JWS serialization, JWT must be a string");let{1:n,length:i}=e.split(".");if(5===i)throw new R("Only JWTs using Compact JWS serialization can be decoded");if(3!==i)throw new R("Invalid JWT");if(!n)throw new R("JWTs must contain a payload");try{t=ro(n)}catch{throw new R("Failed to base64url decode the payload")}try{r=JSON.parse(f.decode(t))}catch{throw new R("Failed to parse the decoded payload as JSON")}if(!ec(r))throw new R("Invalid JWT Claims Set");return r}async function ru(e,t){let r,n,i;switch(e){case"HS256":case"HS384":case"HS512":r=parseInt(e.slice(-3),10),n={name:"HMAC",hash:`SHA-${r}`,length:r},i=["sign","verify"];break;case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return F(new Uint8Array((r=parseInt(e.slice(-3),10))>>3));case"A128KW":case"A192KW":case"A256KW":n={name:"AES-KW",length:r=parseInt(e.slice(1,4),10)},i=["wrapKey","unwrapKey"];break;case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":case"A128GCM":case"A192GCM":case"A256GCM":n={name:"AES-GCM",length:r=parseInt(e.slice(1,4),10)},i=["encrypt","decrypt"];break;default:throw new P('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}return u.subtle.generateKey(n,t?.extractable??!1,i)}function rc(e){let t=e?.modulusLength??2048;if("number"!=typeof t||t<2048)throw new P("Invalid or unsupported modulusLength option provided, 2048 bits or larger keys must be used");return t}async function rl(e,t){let r,n;switch(e){case"PS256":case"PS384":case"PS512":r={name:"RSA-PSS",hash:`SHA-${e.slice(-3)}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:rc(t)},n=["sign","verify"];break;case"RS256":case"RS384":case"RS512":r={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.slice(-3)}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:rc(t)},n=["sign","verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":r={name:"RSA-OAEP",hash:`SHA-${parseInt(e.slice(-3),10)||1}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:rc(t)},n=["decrypt","unwrapKey","encrypt","wrapKey"];break;case"ES256":r={name:"ECDSA",namedCurve:"P-256"},n=["sign","verify"];break;case"ES384":r={name:"ECDSA",namedCurve:"P-384"},n=["sign","verify"];break;case"ES512":r={name:"ECDSA",namedCurve:"P-521"},n=["sign","verify"];break;case"Ed25519":r={name:"Ed25519"},n=["sign","verify"];break;case"EdDSA":{n=["sign","verify"];let e=t?.crv??"Ed25519";switch(e){case"Ed25519":case"Ed448":r={name:e};break;default:throw new P("Invalid or unsupported crv option provided")}break}case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{n=["deriveKey","deriveBits"];let e=t?.crv??"P-256";switch(e){case"P-256":case"P-384":case"P-521":r={name:"ECDH",namedCurve:e};break;case"X25519":case"X448":r={name:e};break;default:throw new P("Invalid or unsupported crv option provided, supported values are P-256, P-384, P-521, X25519, and X448")}break}default:throw new P('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}return u.subtle.generateKey(r,t?.extractable??!1,n)}async function rd(e,t){return rl(e,t)}async function rf(e,t){return ru(e,t)}let rh="WebCryptoAPI"},55640:(e,t,r)=>{let{SequenceMatcher:n}=r(98720),{extendedTypeOf:i,roundObj:o}=r(69168),{colorize:a,colorizeToCallback:s}=r(47183);class u{constructor(e){e.outputKeys=e.outputKeys||[],e.excludeKeys=e.excludeKeys||[],this.options=e}isScalar(e){return"object"!=typeof e||null===e}objectDiff(e,t){let r={},n=0,i=!0;for(let[o,a]of Object.entries(e))if(!this.options.outputNewOnly){let e="__deleted";o in t||this.options.excludeKeys.includes(o)||(r[`${o}${e}`]=a,n-=30,i=!1)}for(let[o,a]of Object.entries(t)){let t=this.options.outputNewOnly?"":"__added";o in e||this.options.excludeKeys.includes(o)||(r[`${o}${t}`]=a,n-=30,i=!1)}for(let[o,a]of Object.entries(e))if(o in t){if(this.options.excludeKeys.includes(o))continue;n+=20;let e=t[o],s=this.diff(a,e);s.equal?(this.options.full||this.options.outputKeys.includes(o))&&(r[o]=a):(r[o]=s.result,i=!1),n+=Math.min(20,Math.max(-10,s.score/5))}return i?(n=100*Math.max(Object.keys(e).length,.5),this.options.full||(r=void 0)):n=Math.max(0,n),{score:n,result:r,equal:i}}findMatchingObject(e,t,r){let n=null;for(let[o,{item:a,index:s}]of Object.entries(r))if("__next"!==o){let r=Math.abs(s-t);if(i(e)===i(a)){let{score:t}=this.diff(e,a);(!n||t>n.score||t===n.score&&rt[o.key].score)&&(t[o.key]={score:o.score,index:n})}for(let[e,r]of Object.entries(t))n[r.index]=e}let i=[];for(let r=0;rm;p?s++:s--){let e=i[s];if(this.isScalarized(e,r)){if(!this.isScalarized(e,o))throw Error(`internal bug: isScalarized(item, originals1) != isScalarized(item, originals2) for item ${JSON.stringify(e)}`);let t=this.descalarize(e,r),n=this.descalarize(e,o),i=this.diff(t,n);i.equal?this.options.full||this.options.keepUnchangedValues?u.push([" ",t]):u.push([" "]):(u.push(["~",i.result]),l=!1)}else this.options.full||this.options.keepUnchangedValues?u.push([" ",e]):u.push([" "]);c+=10}break;case"delete":for(s=t,g=t<=(y=n);g?sy;g?s++:s--)u.push(["-",this.descalarize(i[s],r)]),c-=5;break;case"insert":for(h=d,b=d<=(v=f);b?hv;b?h++:h--)u.push(["+",this.descalarize(a[h],o)]),c-=5;break;case"replace":if(this.options.keysOnly){let e,c;for(s=t,e=t<=(c=n);e?sc;e?s++:s--){let e=this.diff(this.descalarize(i[s],r),this.descalarize(a[s-t+d],o));e.equal?u.push([" "]):(u.push(["~",e.result]),l=!1)}}else{let e,l,p,m;for(s=t,e=t<=(l=n);e?sl;e?s++:s--)u.push(["-",this.descalarize(i[s],r)]),c-=5;for(h=d,p=d<=(m=f);p?hm;p?h++:h--)u.push(["+",this.descalarize(a[h],o)]),c-=5}}}return l||0===s.length?(u=this.options.full?e:void 0,c=100):c=Math.max(0,c),{score:c,result:u,equal:l}}diff(e,t){let r;let n=i(e),o=i(t);if(n===o)switch(n){case"object":return this.objectDiff(e,t);case"array":return this.arrayDiff(e,t)}let a=100,s=e;return this.options.keysOnly?(r=!0,s=void 0):(r="date"===n&&"date"===o?e.getTime()===t.getTime():e===t)?this.options.full||(s=void 0):(a=0,s=this.options.outputNewOnly?t:{__old:e,__new:t}),{score:a,result:s,equal:r}}}function c(e,t,r={}){return void 0!==r.precision&&(e=o(e,r.precision),t=o(t,r.precision)),new u(r).diff(e,t).result}function l(e,t,r={}){return a(c(e,t,r),r)}e.exports={diff:c,diffString:l,colorize:a,colorizeToCallback:s}},56292:e=>{var t=1/0,r=0x1fffffffffffff,n=17976931348623157e292,i=0/0,o="[object Arguments]",a="[object Function]",s="[object GeneratorFunction]",u="[object String]",c="[object Symbol]",l=/^\s+|\s+$/g,d=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,h=/^0o[0-7]+$/i,p=/^(?:0|[1-9]\d*)$/,m=parseInt;function g(e,t){for(var r=-1,n=e?e.length:0,i=Array(n);++r-1&&e%1==0&&e-1:!!i&&b(e,t,r)>-1}function j(e){return N(e)&&A.call(e,"callee")&&(!E.call(e,"callee")||k.call(e)==o)}var D=Array.isArray;function L(e){return null!=e&&U(e.length)&&!B(e)}function N(e){return W(e)&&L(e)}function B(e){var t=F(e)?k.call(e):"";return t==a||t==s}function U(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function F(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function W(e){return!!e&&"object"==typeof e}function H(e){return"string"==typeof e||!D(e)&&W(e)&&k.call(e)==u}function q(e){return"symbol"==typeof e||W(e)&&k.call(e)==c}function K(e){return e?(e=z(e))===t||e===-t?(e<0?-1:1)*n:e==e?e:0:0===e?e:0}function G(e){var t=K(e),r=t%1;return t==t?r?t-r:t:0}function z(e){if("number"==typeof e)return e;if(q(e))return i;if(F(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=F(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(l,"");var r=f.test(e);return r||h.test(e)?m(e.slice(2),r?2:8):d.test(e)?i:+e}function $(e){return L(e)?P(e):I(e)}function J(e){return e?S(e,$(e)):[]}e.exports=R},56321:(e,t,r)=>{"use strict";function n(e){return function(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=n.width,s=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],u=t.match(s);if(!u)return null;var c=u[0],l=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(l)?o(l,function(e){return e.test(c)}):i(l,function(e){return e.test(c)});return r=e.valueCallback?e.valueCallback(d):d,{value:r=n.valueCallback?n.valueCallback(r):r,rest:t.slice(c.length)}}}function i(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function o(e,t){for(var r=0;rn})},57599:e=>{"use strict";e.exports=Function.prototype.call},57644:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},57928:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});let n=(e=>{let t=new Map;return function(){for(var r=arguments.length,n=Array(r),i=0;ie&&"string"==typeof e?Math.max(Math.round(1.33*e.split(" ").length),Math.round(e.length/4)):0)},58033:(e,t,r)=>{let n=r(78968),i=(e,t,r)=>0>n(e,t,r);e.exports=i},58488:(e,t,r)=>{let n=r(78968),i=(e,t,r)=>n(t,e,r);e.exports=i},59277:function(e,t,r){var n;!function(i,o){"use strict";var a="1.0.40",s="",u="?",c="function",l="undefined",d="object",f="string",h="major",p="model",m="name",g="type",y="vendor",b="version",v="architecture",w="console",S="mobile",_="tablet",x="smarttv",A="wearable",k="embedded",E=500,M="Amazon",T="Apple",P="ASUS",I="BlackBerry",C="Browser",O="Chrome",R="Firefox",j="Google",D="Huawei",L="LG",N="Microsoft",B="Motorola",U="Opera",F="Samsung",W="Sharp",H="Sony",q="Xiaomi",K="Zebra",G="Facebook",z="Chromium OS",$="Mac OS",J=" Browser",Y=function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r},V=function(e){for(var t={},r=0;r0?2===a.length?typeof a[1]==c?this[a[0]]=a[1].call(this,u):this[a[0]]=a[1]:3===a.length?typeof a[1]!==c||a[1].exec&&a[1].test?this[a[0]]=u?u.replace(a[1],a[2]):void 0:this[a[0]]=u?a[1].call(this,u,a[2]):o:4===a.length&&(this[a[0]]=u?a[3].call(this,u.replace(a[1],a[2])):o):this[a]=u||o;l+=2}},er=function(e,t){for(var r in t)if(typeof t[r]===d&&t[r].length>0){for(var n=0;n2&&(e[p]="iPad",e[g]=_),e},this.getEngine=function(){var e={};return e[m]=o,e[b]=o,et.call(e,n,u.engine),e},this.getOS=function(){var e={};return e[m]=o,e[b]=o,et.call(e,n,u.os),w&&!e[m]&&a&&a.platform&&"Unknown"!=a.platform&&(e[m]=a.platform.replace(/chrome os/i,z).replace(/macos/i,$)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=typeof e===f&&e.length>E?ee(e,E):e,this},this.setUA(n),this};eo.VERSION=a,eo.BROWSER=V([m,b,h]),eo.CPU=V([v]),eo.DEVICE=V([p,y,g,w,S,x,_,A,k]),eo.ENGINE=eo.OS=V([m,b]),typeof t!==l?("object"!==l&&e.exports&&(t=e.exports=eo),t.UAParser=eo):"function"===c&&r.amdO?o!==(n=(function(){return eo}).call(t,r,t,e))&&(e.exports=n):typeof i!==l&&(i.UAParser=eo);var ea=typeof i!==l&&(i.jQuery||i.Zepto);if(ea&&!ea.ua){var es=new eo;ea.ua=es.getResult(),ea.ua.get=function(){return es.getUA()},ea.ua.set=function(e){es.setUA(e);var t=es.getResult();for(var r in t)ea.ua[r]=t[r]}}}("object"==typeof window?window:this)},59683:e=>{"use strict";e.exports=Math.floor},60013:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(64923),i=r(24607);function o(e){(0,i.A)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,n.A)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(Error().stack)),new Date(NaN))}},60230:(e,t,r)=>{let n=r(22626),i=(e,t)=>new n(e,t).major;e.exports=i},60637:(e,t,r)=>{var n=r(50776);e.exports=n},60697:(e,t,r)=>{let n=r(22626),i=r(20810),{ANY:o}=i,a=r(83715),s=r(91170),u=r(32742),c=r(58033),l=r(33712),d=r(1309),f=(e,t,r,f)=>{let h,p,m,g,y;switch(e=new n(e,f),t=new a(t,f),r){case">":h=u,p=l,m=c,g=">",y=">=";break;case"<":h=c,p=d,m=u,g="<",y="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,f))return!1;for(let r=0;r{e.semver===o&&(e=new i(">=0.0.0")),a=a||e,s=s||e,h(e.semver,a.semver,f)?a=e:m(e.semver,s.semver,f)&&(s=e)}),a.operator===g||a.operator===y||(!s.operator||s.operator===g)&&p(e,s.semver)||s.operator===y&&m(e,s.semver))return!1}return!0};e.exports=f},60962:(e,t,r)=>{let n=r(22626),i=r(83715),o=(e,t,r)=>{let o=null,a=null,s=null;try{s=new i(t,r)}catch(e){return null}return e.forEach(e=>{s.test(e)&&(!o||1===a.compare(e))&&(a=new n(o=e,r))}),o};e.exports=o},61212:e=>{e.exports=function(e){return function(t,r,n){if(" "===t)return t;switch(r%3){case 0:return e.red(t);case 1:return e.white(t);case 2:return e.blue(t)}}}},61271:(e,t,r)=>{"use strict";var n,i=r(27604),o=r(45125),a=r(51569),s=r(78508),u=r(2340),c=r(66380),l=r(64215),d=r(19543),f=r(31553),h=r(59683),p=r(12239),m=r(88221),g=r(38507),y=r(32641),b=r(1586),v=Function,w=function(e){try{return v('"use strict"; return ('+e+").constructor;")()}catch(e){}},S=r(9278),_=r(97783),x=function(){throw new l},A=S?function(){try{return arguments.callee,x}catch(e){try{return S(arguments,"callee").get}catch(e){return x}}}():x,k=r(2427)(),E=r(28265),M=r(10701),T=r(6333),P=r(50721),I=r(57599),C={},O="undefined"!=typeof Uint8Array&&E?E(Uint8Array):n,R={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":k&&E?E([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":C,"%AsyncGenerator%":C,"%AsyncGeneratorFunction%":C,"%AsyncIteratorPrototype%":C,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":C,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":k&&E?E(E([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&k&&E?E(new Map()[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":S,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":u,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&k&&E?E(new Set()[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":k&&E?E(""[Symbol.iterator]()):n,"%Symbol%":k?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":A,"%TypedArray%":O,"%TypeError%":l,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":d,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":I,"%Function.prototype.apply%":P,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":M,"%Math.abs%":f,"%Math.floor%":h,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":g,"%Math.round%":y,"%Math.sign%":b,"%Reflect.getPrototypeOf%":T};if(E)try{null.error}catch(e){var j=E(E(e));R["%Error.prototype%"]=j}var D=function e(t){var r;if("%AsyncFunction%"===t)r=w("async function () {}");else if("%GeneratorFunction%"===t)r=w("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=w("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&E&&(r=E(i.prototype))}return R[t]=r,r},L={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},N=r(8241),B=r(11351),U=N.call(I,Array.prototype.concat),F=N.call(P,Array.prototype.splice),W=N.call(I,String.prototype.replace),H=N.call(I,String.prototype.slice),q=N.call(I,RegExp.prototype.exec),K=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,G=/\\(\\)?/g,z=function(e){var t=H(e,0,1),r=H(e,-1);if("%"===t&&"%"!==r)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var n=[];return W(e,K,function(e,t,r,i){n[n.length]=r?W(i,G,"$1"):t||e}),n},$=function(e,t){var r,n=e;if(B(L,n)&&(n="%"+(r=L[n])[0]+"%"),B(R,n)){var i=R[n];if(i===C&&(i=D(n)),void 0===i&&!t)throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===q(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=z(e),n=r.length>0?r[0]:"",i=$("%"+n+"%",t),o=i.name,a=i.value,s=!1,u=i.alias;u&&(n=u[0],F(r,U([0,1],u)));for(var d=1,f=!0;d=r.length){var g=S(a,h);a=(f=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[h]}else f=B(a,h),a=a[h];f&&!s&&(R[o]=a)}}return a}},61293:e=>{"use strict";var t="Function.prototype.bind called on incompatible ",r=Object.prototype.toString,n=Math.max,i="[object Function]",o=function(e,t){for(var r=[],n=0;n{"use strict";var n=r(8241),i=r(50721),o=r(57599),a=r(21316);e.exports=a||n.call(o,i)},62062:e=>{var t="[object String]",r=Object.prototype.toString,n=Array.isArray;function i(e){return!!e&&"object"==typeof e}function o(e){return"string"==typeof e||!n(e)&&i(e)&&r.call(e)==t}e.exports=o},62064:(e,t,r)=>{"use strict";r.d(t,{K:()=>a});var n=r(44109),i=r(30362),o=r(79983);let a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],[t,r]=(0,n.useState)(e),[a,s]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let e=async()=>{let e=Object.fromEntries(o.map(e=>[e.uuid,e])),t=await (0,i.Mi)().get("TM_useInstalledPlugins");r((null==t?void 0:t.map(t=>e[t.sourceUUID||t.uuid]?{...t,...e[t.sourceUUID||t.uuid],uuid:t.uuid}:t))||[]),s(!0)};return e(),window.addEventListener("update-user-installed-plugins",e),()=>{window.removeEventListener("update-user-installed-plugins",e)}},[]),[t,(0,n.useCallback)(async e=>{let t=await (0,i.Mi)().get("TM_useInstalledPlugins")||[],n="function"==typeof e?e(t):e;r(n),await (0,i.Mi)().set("TM_useInstalledPlugins",n);{let e=new Event("update-user-installed-plugins");window.dispatchEvent(e)}},[]),a]}},62492:e=>{e.exports={STRING:2,BOOLEAN:4,BYTES:4,NUMBER:8,Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8}},63122:(e,t,r)=>{"use strict";r.d(t,{Cp:()=>Y});let n="9.5.0",i=globalThis;function o(){return a(i),i}function a(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||n,t[n]=t[n]||{}}function s(e,t,r=i){let o=r.__SENTRY__=r.__SENTRY__||{},a=o[n]=o[n]||{};return a[e]||(a[e]=t())}let u=1e3;function c(){return Date.now()/u}let l=function(){let{performance:e}=i;if(!e?.now)return c;let t=Date.now()-e.now(),r=void 0==e.timeOrigin?t:e.timeOrigin;return()=>(r+e.now())/u}();function d(){let e=i;return e.crypto||e.msCrypto}function f(e=d()){let t=()=>16*Math.random();try{if(e?.randomUUID)return e.randomUUID().replace(/-/g,"");e?.getRandomValues&&(t=()=>{let t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(e){}return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&t())>>e/4).toString(16))}function h(e,t={}){if(!t.user||(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||l(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:f()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}let p=Object.prototype.toString;function m(e,t){return p.call(e)===`[object ${t}]`}function g(e){return m(e,"Object")}function y(e){return!!(e?.then&&"function"==typeof e.then)}let b="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,v="Sentry Logger ",w=["debug","info","warn","error","log","assert","trace"],S={};function _(e){if(!("console"in i))return e();let t=i.console,r={},n=Object.keys(S);n.forEach(e=>{let n=S[e];r[e]=t[e],t[e]=n});try{return e()}finally{n.forEach(e=>{t[e]=r[e]})}}let x=s("logger",function(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return b?w.forEach(r=>{t[r]=(...t)=>{e&&_(()=>{i.console[r](`${v}[${r}]:`,...t)})}}):w.forEach(e=>{t[e]=()=>void 0}),t});function A(){return f()}function k(e,t,r=2){if(!t||"object"!=typeof t||r<=0)return t;if(e&&0===Object.keys(t).length)return e;let n={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=k(n[e],t[e],r-1));return n}function E(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch(r){b&&x.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function M(e){try{return isElement(e)?htmlTreeAsString(e):Object.prototype.toString.call(e)}catch(e){return""}}function T(e){if("object"!=typeof e||null===e)return{};{let t={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}}function P(e){if(!isPlainObject(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch{return!0}}let I="_sentrySpan";function C(e,t){t?E(e,I,t):delete e[I]}function O(e){return e[I]}let R=100;class j{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:A(),sampleRand:Math.random()}}clone(){let e=new j;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,C(e,O(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&h(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e,{tags:r,extra:n,user:i,contexts:o,level:a,fingerprint:s=[],propagationContext:u}=(t instanceof j?t.getScopeData():g(t)?e:void 0)||{};return this._tags={...this._tags,...r},this._extra={...this._extra,...n},this._contexts={...this._contexts,...o},i&&Object.keys(i).length&&(this._user=i),a&&(this._level=a),s.length&&(this._fingerprint=s),u&&(this._propagationContext=u),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,C(this,void 0),this._attachments=[],this.setPropagationContext({traceId:A(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let r="number"==typeof t?t:R;if(r<=0)return this;let n={timestamp:c(),...e};return this._breadcrumbs.push(n),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:O(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=k(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let r=t?.event_id||f();if(!this._client)return x.warn("No client configured on scope - will not capture exception!"),r;let n=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:n,...t,event_id:r},this),r}captureMessage(e,t,r){let n=r?.event_id||f();if(!this._client)return x.warn("No client configured on scope - will not capture message!"),n;let i=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...r,event_id:n},this),n}captureEvent(e,t){let r=t?.event_id||f();return this._client?this._client.captureEvent(e,{...t,event_id:r},this):x.warn("No client configured on scope - will not capture event!"),r}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}function D(){return s("defaultCurrentScope",()=>new j)}function L(){return s("defaultIsolationScope",()=>new j)}class N{constructor(e,t){let r,n;r=e||new j,n=t||new j,this._stack=[{scope:r}],this._isolationScope=n}withScope(e){let t;let r=this._pushScope();try{t=e(r)}catch(e){throw this._popScope(),e}return y(t)?t.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),t)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function B(){let e=a(o());return e.stack=e.stack||new N(D(),L())}function U(e){return B().withScope(e)}function F(e,t){let r=B();return r.withScope(()=>(r.getStackTop().scope=e,t(e)))}function W(e){return B().withScope(()=>e(B().getIsolationScope()))}function H(){return{withIsolationScope:W,withScope:U,withSetScope:F,withSetIsolationScope:(e,t)=>W(t),getCurrentScope:()=>B().getScope(),getIsolationScope:()=>B().getIsolationScope()}}function q(e){let t=a(e);return t.acs?t.acs:H()}function K(){return q(o()).getCurrentScope()}function G(e){return e?z(e)||J(e)?{captureContext:e}:e:void 0}function z(e){return e instanceof j||"function"==typeof e}let $=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function J(e){return Object.keys(e).some(e=>$.includes(e))}function Y(e,t){return K().captureException(e,G(t))}function V(){let e=getIsolationScope(),t=getClient(),r=e.getSession();r&&t&&t.captureSession(r)}},63293:(e,t,r)=>{let n=r(22626),i=(e,t)=>new n(e,t).patch;e.exports=i},64215:e=>{"use strict";e.exports=TypeError},64774:e=>{e.exports=function(e){var t=["red","yellow","green","blue","magenta"];return function(r,n,i){return" "===r?r:e[t[n++%t.length]](r)}}},64923:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r.d(t,{A:()=>n})},65592:(e,t,r)=>{var n=r(2549).Buffer,i=r(29979),o=r(31759),a=r(66856),s=r(26512),u=r(65723),c=/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;function l(e){return"[object Object]"===Object.prototype.toString.call(e)}function d(e){if(l(e))return e;try{return JSON.parse(e)}catch(e){return}}function f(e){var t=e.split(".",1)[0];return d(n.from(t,"base64").toString("binary"))}function h(e){return e.split(".",2).join(".")}function p(e){return e.split(".")[2]}function m(e,t){t=t||"utf8";var r=e.split(".")[1];return n.from(r,"base64").toString(t)}function g(e){return c.test(e)&&!!f(e)}function y(e,t,r){if(!t){var n=Error("Missing algorithm parameter for jws.verify");throw n.code="MISSING_ALGORITHM",n}var i=p(e=s(e)),a=h(e);return o(t).verify(a,i,r)}function b(e,t){if(t=t||{},!g(e=s(e)))return null;var r=f(e);if(!r)return null;var n=m(e);return("JWT"===r.typ||t.json)&&(n=JSON.parse(n,t.encoding)),{header:r,payload:n,signature:p(e)}}function v(e){var t=new i((e=e||{}).secret||e.publicKey||e.key);this.readable=!0,this.algorithm=e.algorithm,this.encoding=e.encoding,this.secret=this.publicKey=this.key=t,this.signature=new i(e.signature),this.secret.once("close",(function(){!this.signature.writable&&this.readable&&this.verify()}).bind(this)),this.signature.once("close",(function(){!this.secret.writable&&this.readable&&this.verify()}).bind(this))}u.inherits(v,a),v.prototype.verify=function(){try{var e=y(this.signature.buffer,this.algorithm,this.key.buffer),t=b(this.signature.buffer,this.encoding);return this.emit("done",e,t),this.emit("data",e),this.emit("end"),this.readable=!1,e}catch(e){this.readable=!1,this.emit("error",e),this.emit("close")}},v.decode=b,v.isValid=g,v.verify=y,e.exports=v},65723:(e,t,r)=>{var n="/",i=r(72076).Buffer,o=r(2272);!function(){var t={992:function(e){e.exports=function(e,r,n){if(e.filter)return e.filter(r,n);if(null==e||"function"!=typeof r)throw TypeError();for(var i=[],o=0;o-1?i(r):r}},139:function(e,t,r){"use strict";var n=r(212),i=r(192),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||n.call(a,o),u=i("%Object.getOwnPropertyDescriptor%",!0),c=i("%Object.defineProperty%",!0),l=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){var t=s(n,a,arguments);return u&&c&&u(t,"length").configurable&&c(t,"length",{value:1+l(0,e.length-(arguments.length-1))}),t};var d=function(){return s(n,o,arguments)};c?c(e.exports,"apply",{value:d}):e.exports.apply=d},181:function(e){"use strict";e.exports=EvalError},545:function(e){"use strict";e.exports=Error},22:function(e){"use strict";e.exports=RangeError},803:function(e){"use strict";e.exports=ReferenceError},182:function(e){"use strict";e.exports=SyntaxError},202:function(e){"use strict";e.exports=TypeError},284:function(e){"use strict";e.exports=URIError},144:function(e){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,n,i){if("[object Function]"!==r.call(n))throw TypeError("iterator must be a function");var o=e.length;if(o===+o)for(var a=0;a1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===C(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=j(e),n=r.length>0?r[0]:"",i=D("%"+n+"%",t),o=i.name,a=i.value,s=!1,l=i.alias;l&&(n=l[0],T(r,M([0,1],l)));for(var d=1,f=!0;d=r.length){var y=h(a,p);a=(f=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[p]}else f=E(a,p),a=a[p];f&&!s&&(S[o]=a)}}return a}},14:function(e){"use strict";var t={__proto__:null,foo:{}},r=Object;e.exports=function(){return({__proto__:t}).foo===t.foo&&!(t instanceof r)}},942:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(773);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},773:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(t in e[t]=n,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==n||!0!==o.enumerable)return!1}return!0}},115:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(832);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},832:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(t in e[t]=n,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==n||!0!==o.enumerable)return!1}return!0}},270:function(e,t,r){"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=r(212);e.exports=o.call(n,i)},782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},157:function(e){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,r=Object.prototype.toString,n=function(e){return(!t||!e||"object"!=typeof e||!(Symbol.toStringTag in e))&&"[object Arguments]"===r.call(e)},i=function(e){return!!n(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==r.call(e)&&"[object Function]"===r.call(e.callee)},o=function(){return n(arguments)}();n.isLegacyArguments=i,e.exports=o?n:i},391:function(e){"use strict";var t=Object.prototype.toString,r=Function.prototype.toString,n=/^\s*(?:function)?\*/,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,o=Object.getPrototypeOf,a=function(){if(!i)return!1;try{return Function("return function*() {}")()}catch(e){}}(),s=a?o(a):{};e.exports=function(e){return"function"==typeof e&&(!!n.test(r.call(e))||(i?o(e)===s:"[object GeneratorFunction]"===t.call(e)))}},994:function(e,t,n){"use strict";var i=n(144),o=n(349),a=n(256),s=a("Object.prototype.toString"),u=n(942)()&&"symbol"==typeof Symbol.toStringTag,c=o(),l=a("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r-1)}},369:function(e){e.exports=function(e){return e instanceof i}},584:function(e,t,r){"use strict";var n=r(157),i=r(391),o=r(490),a=r(994);function s(e){return e.call.bind(e)}var u="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,l=s(Object.prototype.toString),d=s(Number.prototype.valueOf),f=s(String.prototype.valueOf),h=s(Boolean.prototype.valueOf);if(u)var p=s(BigInt.prototype.valueOf);if(c)var m=s(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function y(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch}function b(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||W(e)}function v(e){return"Uint8Array"===o(e)}function w(e){return"Uint8ClampedArray"===o(e)}function S(e){return"Uint16Array"===o(e)}function _(e){return"Uint32Array"===o(e)}function x(e){return"Int8Array"===o(e)}function A(e){return"Int16Array"===o(e)}function k(e){return"Int32Array"===o(e)}function E(e){return"Float32Array"===o(e)}function M(e){return"Float64Array"===o(e)}function T(e){return"BigInt64Array"===o(e)}function P(e){return"BigUint64Array"===o(e)}function I(e){return"[object Map]"===l(e)}function C(e){return"undefined"!=typeof Map&&(I.working?I(e):e instanceof Map)}function O(e){return"[object Set]"===l(e)}function R(e){return"undefined"!=typeof Set&&(O.working?O(e):e instanceof Set)}function j(e){return"[object WeakMap]"===l(e)}function D(e){return"undefined"!=typeof WeakMap&&(j.working?j(e):e instanceof WeakMap)}function L(e){return"[object WeakSet]"===l(e)}function N(e){return L(e)}function B(e){return"[object ArrayBuffer]"===l(e)}function U(e){return"undefined"!=typeof ArrayBuffer&&(B.working?B(e):e instanceof ArrayBuffer)}function F(e){return"[object DataView]"===l(e)}function W(e){return"undefined"!=typeof DataView&&(F.working?F(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=y,t.isArrayBufferView=b,t.isUint8Array=v,t.isUint8ClampedArray=w,t.isUint16Array=S,t.isUint32Array=_,t.isInt8Array=x,t.isInt16Array=A,t.isInt32Array=k,t.isFloat32Array=E,t.isFloat64Array=M,t.isBigInt64Array=T,t.isBigUint64Array=P,I.working="undefined"!=typeof Map&&I(new Map),t.isMap=C,O.working="undefined"!=typeof Set&&O(new Set),t.isSet=R,j.working="undefined"!=typeof WeakMap&&j(new WeakMap),t.isWeakMap=D,L.working="undefined"!=typeof WeakSet&&L(new WeakSet),t.isWeakSet=N,B.working="undefined"!=typeof ArrayBuffer&&B(new ArrayBuffer),t.isArrayBuffer=U,F.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&F(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=W;var H="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function q(e){return"[object SharedArrayBuffer]"===l(e)}function K(e){return void 0!==H&&(void 0===q.working&&(q.working=q(new H)),q.working?q(e):e instanceof H)}function G(e){return"[object AsyncFunction]"===l(e)}function z(e){return"[object Map Iterator]"===l(e)}function $(e){return"[object Set Iterator]"===l(e)}function J(e){return"[object Generator]"===l(e)}function Y(e){return"[object WebAssembly.Module]"===l(e)}function V(e){return g(e,d)}function X(e){return g(e,f)}function Z(e){return g(e,h)}function Q(e){return u&&g(e,p)}function ee(e){return c&&g(e,m)}function et(e){return V(e)||X(e)||Z(e)||Q(e)||ee(e)}function er(e){return"undefined"!=typeof Uint8Array&&(U(e)||K(e))}t.isSharedArrayBuffer=K,t.isAsyncFunction=G,t.isMapIterator=z,t.isSetIterator=$,t.isGeneratorObject=J,t.isWebAssemblyCompiledModule=Y,t.isNumberObject=V,t.isStringObject=X,t.isBooleanObject=Z,t.isBigIntObject=Q,t.isSymbolObject=ee,t.isBoxedPrimitive=et,t.isAnyArrayBuffer=er,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw Error(e+" is not supported in userland")}})})},177:function(e,t,r){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),s=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),w(r)?n.showHidden=r:r&&t._extend(n,r),E(n.showHidden)&&(n.showHidden=!1),E(n.depth)&&(n.depth=2),E(n.colors)&&(n.colors=!1),E(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),h(n,e,n.depth)}function l(e,t){var r=c.styles[t];return r?"\x1b["+c.colors[r][0]+"m"+e+"\x1b["+c.colors[r][1]+"m":e}function d(e,t){return e}function f(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function h(e,r,n){if(e.customInspect&&r&&C(r.inspect)&&r.inspect!==t.inspect&&!(r.constructor&&r.constructor.prototype===r)){var i,o=r.inspect(n,e);return A(o)||(o=h(e,o,n)),o}var a=p(e,r);if(a)return a;var s=Object.keys(r),u=f(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),I(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return m(r);if(0===s.length){if(C(r)){var c=r.name?": "+r.name:"";return e.stylize("[Function"+c+"]","special")}if(M(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(P(r))return e.stylize(Date.prototype.toString.call(r),"date");if(I(r))return m(r)}var l="",d=!1,w=["{","}"];return(v(r)&&(d=!0,w=["[","]"]),C(r)&&(l=" [Function"+(r.name?": "+r.name:"")+"]"),M(r)&&(l=" "+RegExp.prototype.toString.call(r)),P(r)&&(l=" "+Date.prototype.toUTCString.call(r)),I(r)&&(l=" "+m(r)),0!==s.length||d&&0!=r.length)?n<0?M(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),i=d?g(e,r,n,u,s):s.map(function(t){return y(e,r,n,u,t,d)}),e.seen.pop(),b(i,l,w)):w[0]+l+w[1]}function p(e,t){if(E(t))return e.stylize("undefined","undefined");if(A(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return x(t)?e.stylize(""+t,"number"):w(t)?e.stylize(""+t,"boolean"):S(t)?e.stylize("null","null"):void 0}function m(e){return"["+Error.prototype.toString.call(e)+"]"}function g(e,t,r,n,i){for(var o=[],a=0,s=t.length;ae.seen.indexOf(u.value)?(s=S(r)?h(e,u.value,null):h(e,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),E(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function b(e,t,r){var n=0;return e.reduce(function(e,t){return n++,t.indexOf("\n")>=0&&n++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function v(e){return Array.isArray(e)}function w(e){return"boolean"==typeof e}function S(e){return null===e}function _(e){return null==e}function x(e){return"number"==typeof e}function A(e){return"string"==typeof e}function k(e){return"symbol"==typeof e}function E(e){return void 0===e}function M(e){return T(e)&&"[object RegExp]"===R(e)}function T(e){return"object"==typeof e&&null!==e}function P(e){return T(e)&&"[object Date]"===R(e)}function I(e){return T(e)&&("[object Error]"===R(e)||e instanceof Error)}function C(e){return"function"==typeof e}function O(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function R(e){return Object.prototype.toString.call(e)}function j(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(!a[e=e.toUpperCase()]){if(s.test(e)){var r=o.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){}}return a[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(584),t.isArray=v,t.isBoolean=w,t.isNull=S,t.isNullOrUndefined=_,t.isNumber=x,t.isString=A,t.isSymbol=k,t.isUndefined=E,t.isRegExp=M,t.types.isRegExp=M,t.isObject=T,t.isDate=P,t.types.isDate=P,t.isError=I,t.types.isNativeError=I,t.isFunction=C,t.isPrimitive=O,t.isBuffer=r(369);var D=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function L(){var e=new Date,t=[j(e.getHours()),j(e.getMinutes()),j(e.getSeconds())].join(":");return[e.getDate(),D[e.getMonth()],t].join(" ")}function N(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",L(),t.format.apply(t,arguments))},t.inherits=r(782),t._extend=function(e,t){if(!t||!T(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var B="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function U(e,t){if(!e){var r=Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}function F(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r{var n=r(14804),i=r(65592),o=["HS256","HS384","HS512","RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"];t.ALGORITHMS=o,t.sign=n.sign,t.verify=i.verify,t.decode=i.decode,t.isValid=i.isValid,t.createSign=function(e){return new n(e)},t.createVerify=function(e){return new i(e)}},66380:e=>{"use strict";e.exports=SyntaxError},66856:(e,t,r)=>{var n="/",i=r(2272);!function(){var t={782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},646:function(e){"use strict";let t={};function r(e,r,n){function i(e,t,n){return"string"==typeof r?r:r(e,t,n)}n||(n=Error);class o extends n{constructor(e,t,r){super(i(e,t,r))}}o.prototype.name=n.name,o.prototype.code=e,t[e]=o}function n(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}function i(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function o(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function a(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){let s,u;if("string"==typeof t&&i(t,"not ")?(s="must not be",t=t.replace(/^not /,"")):s="must be",o(e," argument"))u=`The ${e} ${s} ${n(t,"type")}`;else{let r=a(e,".")?"property":"argument";u=`The "${e}" ${r} ${s} ${n(t,"type")}`}return u+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},403:function(e,t,r){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var o=r(709),a=r(337);r(782)(l,o);for(var s=n(a.prototype),u=0;u0){if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===f.prototype||(t=p(t)),n)s.endEmitted?k(e,new A):C(e,s,t,!0);else if(s.ended)k(e,new _);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?C(e,s,t,!1):U(e,s)):C(e,s,t,!1)}}else n||(s.reading=!1,U(e,s));return!s.ended&&(s.length=R?e=R:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function D(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=j(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function L(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?N(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,B(e)))}}function N(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(B,e))}function B(e){var t=e._readableState;a("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,z(e)}function U(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(F,e,t))}function F(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function q(e){a("readable nexttick read 0"),e.read(0)}function K(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(G,e,t))}function G(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),z(e),t.flowing&&!t.reading&&e.read(0)}function z(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function $(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function J(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(Y,t,e))}function Y(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function V(e,t){for(var r=0,n=e.length;r=r.highWaterMark:r.length>0)||r.ended))return a("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?J(this):N(this),null;if(0===(e=D(e,r))&&r.ended)return 0===r.length&&J(this),null;var i=r.needReadable;return a("need readable",i),(0===r.length||r.length-e0?$(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&J(this)),null!==t&&this.emit("data",t),t},P.prototype._read=function(e){k(this,new x("_read()"))},P.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,a("pipe count=%d opts=%j",n.pipesCount,t);var o=t&&!1===t.end||e===i.stdout||e===i.stderr?y:u;function s(e,t){a("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,f())}function u(){a("onend"),e.end()}n.endEmitted?i.nextTick(o):r.once("end",o),e.on("unpipe",s);var c=W(r);e.on("drain",c);var d=!1;function f(){a("cleanup"),e.removeListener("close",m),e.removeListener("finish",g),e.removeListener("drain",c),e.removeListener("error",p),e.removeListener("unpipe",s),r.removeListener("end",u),r.removeListener("end",y),r.removeListener("data",h),d=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&c()}function h(t){a("ondata");var i=e.write(t);a("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==V(n.pipes,e))&&!d&&(a("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function p(t){a("onerror",t),y(),e.removeListener("error",p),0===l(e,"error")&&k(e,t)}function m(){e.removeListener("finish",g),y()}function g(){a("onfinish"),e.removeListener("close",m),y()}function y(){a("unpipe"),r.unpipe(e)}return r.on("data",h),M(e,"error",p),e.once("close",m),e.once("finish",g),e.emit("pipe",r),n.flowing||(a("pipe resume"),r.resume()),e},P.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==n.flowing&&this.resume()):"readable"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,a("on readable",n.length,n.reading),n.length?N(this):n.reading||i.nextTick(q,this)),r},P.prototype.addListener=P.prototype.on,P.prototype.removeListener=function(e,t){var r=d.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(H,this),r},P.prototype.removeAllListeners=function(e){var t=d.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&i.nextTick(H,this),t},P.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,K(this,e)),e.paused=!1,this},P.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},P.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(a("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){if(a("wrapped data"),r.decoder&&(i=r.decoder.write(i)),!r.objectMode||null!=i)(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o-1))throw new A(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(T.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),T.prototype._write=function(e,t,r){r(new b("_write()"))},T.prototype._writev=null,T.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||K(this,n,r),this},Object.defineProperty(T.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),T.prototype.destroy=p.destroy,T.prototype._undestroy=p.undestroy,T.prototype._destroy=function(e,t){t(e)}},871:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o,a=r(698),s=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),d=Symbol("lastPromise"),f=Symbol("handlePromise"),h=Symbol("stream");function p(e,t){return{value:e,done:t}}function m(e){var t=e[s];if(null!==t){var r=e[h].read();null!==r&&(e[d]=null,e[s]=null,e[u]=null,t(p(r,!1)))}}function g(e){i.nextTick(m,e)}function y(e,t){return function(r,n){e.then(function(){if(t[l]){r(p(void 0,!0));return}t[f](r,n)},n)}}var b=Object.getPrototypeOf(function(){}),v=Object.setPrototypeOf((n(o={get stream(){return this[h]},next:function(){var e,t=this,r=this[c];if(null!==r)return Promise.reject(r);if(this[l])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise(function(e,r){i.nextTick(function(){t[c]?r(t[c]):e(p(void 0,!0))})});var n=this[d];if(n)e=new Promise(y(n,this));else{var o=this[h].read();if(null!==o)return Promise.resolve(p(o,!1));e=new Promise(this[f])}return this[d]=e,e}},Symbol.asyncIterator,function(){return this}),n(o,"return",function(){var e=this;return new Promise(function(t,r){e[h].destroy(null,function(e){if(e){r(e);return}t(p(void 0,!0))})})}),o),b),w=function(e){var t,r=Object.create(v,(n(t={},h,{value:e,writable:!0}),n(t,s,{value:null,writable:!0}),n(t,u,{value:null,writable:!0}),n(t,c,{value:null,writable:!0}),n(t,l,{value:e._readableState.endEmitted,writable:!0}),n(t,f,{value:function(e,t){var n=r[h].read();n?(r[d]=null,r[s]=null,r[u]=null,e(p(n,!1))):(r[s]=e,r[u]=t)},writable:!0}),t));return r[d]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];null!==t&&(r[d]=null,r[s]=null,r[u]=null,t(e)),r[c]=e;return}var n=r[s];null!==n&&(r[d]=null,r[s]=null,r[u]=null,n(p(void 0,!0))),r[l]=!0}),e.on("readable",g.bind(null,r)),r};e.exports=w},379:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return c.alloc(0);for(var t=c.allocUnsafe(e>>>0),r=this.head,n=0;r;)f(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return ei.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=c.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:d,value:function(e,t){return l(this,i({},t,{depth:0,customInspect:!1}))}}]),e}()},25:function(e){"use strict";function t(e,t){var o=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i.nextTick(a,this,e)):i.nextTick(a,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?o._writableState?o._writableState.errorEmitted?i.nextTick(n,o):(o._writableState.errorEmitted=!0,i.nextTick(r,o,e)):i.nextTick(r,o,e):t?(i.nextTick(n,o),t(e)):i.nextTick(n,o)})),this}function r(e,t){a(e,t),n(e)}function n(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(e,t){e.emit("error",t)}function s(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}e.exports={destroy:t,undestroy:o,errorOrDestroy:s}},698:function(e,t,r){"use strict";var n=r(646).q.ERR_STREAM_PREMATURE_CLOSE;function i(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=Array(r),i=0;i0,function(t){e||(e=t),t&&o.forEach(d),a||(o.forEach(d),i(e))})});return r.reduce(f)}e.exports=p},776:function(e,t,r){"use strict";var n=r(646).q.ERR_INVALID_OPT_VALUE;function i(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}function o(e,t,r,o){var a=i(t,o,r);if(null!=a){if(!(isFinite(a)&&Math.floor(a)===a)||a<0)throw new n(o?r:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}e.exports={getHighWaterMark:o}},678:function(e,t,r){e.exports=r(781)},55:function(e,t,r){var n=r(300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},173:function(e,t,r){e.exports=i;var n=r(361).EventEmitter;function i(){n.call(this)}r(782)(i,n),i.Readable=r(709),i.Writable=r(337),i.Duplex=r(403),i.Transform=r(170),i.PassThrough=r(889),i.finished=r(698),i.pipeline=r(442),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",u));var a=!1;function s(){a||(a=!0,e.end())}function u(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(l(),0===n.listenerCount(this,"error"))throw e}function l(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",u),r.removeListener("error",c),e.removeListener("error",c),r.removeListener("end",l),r.removeListener("close",l),e.removeListener("close",l)}return r.on("error",c),e.on("error",c),r.on("end",l),r.on("close",l),e.on("close",l),e.emit("pipe",r),e}},704:function(e,t,r){"use strict";var n=r(55).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=o(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=p,this.end=m,t=4;break;case"utf8":this.fillLast=d,t=4;break;case"base64":this.text=g,this.end=y,t=3;break;default:this.write=b,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function u(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function c(e,t,r){var n=t.length-1;if(n=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function l(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function d(e){var t=this.lastTotal-this.lastNeed,r=l(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function f(e,t){var r=c(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function g(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function y(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function b(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):""}t.s=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r{"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},67390:e=>{class t{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(void 0!==t)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}e.exports=t},67541:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(var i in e[t]=n,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==n||!0!==a.enumerable)return!1}return!0}},67563:(e,t,r)=>{"use strict";function n(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var i=n[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];return{value:a=r.valueCallback?r.valueCallback(a):a,rest:t.slice(i.length)}}}r.d(t,{A:()=>n})},67602:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},67718:(e,t,r)=>{let n=r(52252),i=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};e.exports=i},68716:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.errorMessages=t.ErrorType=void 0,function(e){e.MalformedUnicode="MALFORMED_UNICODE",e.MalformedHexadecimal="MALFORMED_HEXADECIMAL",e.CodePointLimit="CODE_POINT_LIMIT",e.OctalDeprecation="OCTAL_DEPRECATION",e.EndOfString="END_OF_STRING"}(r=t.ErrorType||(t.ErrorType={})),t.errorMessages=new Map([[r.MalformedUnicode,"malformed Unicode character escape sequence"],[r.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[r.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[r.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[r.EndOfString,"malformed escape sequence at end of string"]])},69168:e=>{let t=function(e){let t=typeof e;return null==e?"null":"object"===t&&e.constructor===Array?"array":"object"===t&&e instanceof Date?"date":t},r=function(e,t){let n=typeof e;if("array"===n)return e.map(e=>r(e,t));if("object"===n){for(let n in e)e[n]=r(e[n],t);return e}return"number"===n&&Number.isFinite(e)&&!Number.isInteger(e)?+e.toFixed(t):e};e.exports={extendedTypeOf:t,roundObj:r}},69206:(e,t,r)=>{"use strict";var n=r(61271),i=r(16975),o=r(78486)(),a=r(9278),s=r(64215),u=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>0xffffffff||u(t)!==t)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,c=!0;if("length"in e&&a){var l=a(e,"length");l&&!l.configurable&&(n=!1),l&&!l.writable&&(c=!1)}return(n||c||!r)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},69307:e=>{var t=1e3,r=6e4,n=36e5,i=864e5,o=6048e5,a=315576e5;function s(e){if(!((e=String(e)).length>100)){var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(s){var u=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return u*a;case"weeks":case"week":case"w":return u*o;case"days":case"day":case"d":return u*i;case"hours":case"hour":case"hrs":case"hr":case"h":return u*n;case"minutes":case"minute":case"mins":case"min":case"m":return u*r;case"seconds":case"second":case"secs":case"sec":case"s":return u*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}}}function u(e){var o=Math.abs(e);return o>=i?Math.round(e/i)+"d":o>=n?Math.round(e/n)+"h":o>=r?Math.round(e/r)+"m":o>=t?Math.round(e/t)+"s":e+"ms"}function c(e){var o=Math.abs(e);return o>=i?l(e,o,i,"day"):o>=n?l(e,o,n,"hour"):o>=r?l(e,o,r,"minute"):o>=t?l(e,o,t,"second"):e+" ms"}function l(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+" "+n+(i?"s":"")}e.exports=function(e,t){t=t||{};var r=typeof e;if("string"===r&&e.length>0)return s(e);if("number"===r&&isFinite(e))return t.long?c(e):u(e);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},69324:(e,t,r)=>{"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=r(67350),s=Object.prototype.propertyIsEnumerable,u=!s.call({toString:null},"toString"),c=s.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!f["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{d(window[e])}catch(e){return!0}}catch(e){return!0}return!1}(),p=function(e){if("undefined"==typeof window||!h)return d(e);try{return d(e)}catch(e){return!1}};n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===o.call(e),n=a(e),s=t&&"[object String]"===o.call(e),d=[];if(!t&&!r&&!n)throw TypeError("Object.keys called on a non-object");var f=c&&r;if(s&&e.length>0&&!i.call(e,0))for(var h=0;h0)for(var m=0;ma;r=0<=a?++n:--n){if(e[r]t[r])return 1}return i-o},h=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s=function(e){var t,r;for(t=0,r=e.length;t=200&&(c=g(u/100)+1,t.forEach(function(e,r){if(e.length>c)return l.set(r,!0),t.delete(r)})),this.isbjunk=function(e){return o.has(e)},this.isbpopular=function(e){return l.has(e)}}findLongestMatch(e,t,r,n){var i,o,a,s,u,c,l,d,f,h,p,m,g,y,b,v,w,S;for([i,o,a,d]=[this.a,this.b,this.b2j,this.isbjunk],[s,u,c]=[e,r,0],h={},l=g=w=e,S=t;w<=S?gS;l=w<=S?++g:--g){for(v={},p=[],a.has(i[l])&&(p=a.get(i[l])),b=0,y=p.length;b=n)break;(m=v[f]=(h[f-1]||0)+1)>c&&([s,u,c]=[l-m+1,f-m+1,m])}h=v}for(;s>e&&u>r&&!d(o[u-1])&&i[s-1]===o[u-1];)[s,u,c]=[s-1,u-1,c+1];for(;s+ce&&u>r&&d(o[u-1])&&i[s-1]===o[u-1];)[s,u,c]=[s-1,u-1,c+1];for(;s+cl&&(r.push([d,i,v(o,i+e),a,v(s,a+e)]),n.push(r),r=[],[i,a]=[b(i,o-e),b(a,s-e)]),r.push([d,i,o,a,s]);return r.length&&(1!==r.length||"equal"!==r[0][0])&&n.push(r),n}ratio(){var e,t,r,n;for(e=0,r=0,t=(n=this.getMatchingBlocks()).length;e0&&s++;return c(s,this.a.length+this.b.length)}realQuickRatio(){var e,t;return[e,t]=[this.a.length,this.b.length],c(v(e,t),e+t)}},y=function(e,t,r=3,i=.6){var o,s,c,l,d,f,h,p,m;if(!(r>0))throw Error(`n must be > 0: (${r})`);if(!(0<=i&&i<=1))throw Error(`cutoff must be in [0.0, 1.0]: (${i})`);for(d=[],(h=new a).setSeq2(e),o=0,s=t.length;o=i&&h.quickRatio()>=i&&h.ratio()>=i&&d.push([h.ratio(),m]);for(l=0,d=n.nlargest(d,r,u),f=[],c=d.length;ls;i=a<=s?++o:--o)u.push(`${e} ${t[i]}`);return u}_plainReplace(e,t,r,n,i,o){var a,s,u,c,l,d,f,h,m,g;for(p(tH;k=W<=H?++E:--E)for(g=n[k],w.setSeq2(g),A=L=q=t,K=r;q<=K?LK;A=q<=K?++L:--L){if((u=e[A])===g){null===_&&([_,x]=[A,k]);continue}w.setSeq1(u),w.realQuickRatio()>h&&w.quickRatio()>h&&w.ratio()>h&&([h,p,m]=[w.ratio(),A,k])}if(h{if(!c(r))throw TypeError(ee(r,...en));if(!r.extractable)throw TypeError("CryptoKey is not extractable");if(r.type!==e)throw TypeError(`key is not a ${e} key`);return eU(S(new Uint8Array(await u.subtle.exportKey(t,r))),`${e.toUpperCase()} KEY`)},eW=e=>eF("public","spki",e),eH=e=>eF("private","pkcs8",e),eq=(e,t,r=0)=>{0===r&&(t.unshift(t.length),t.unshift(6));let n=e.indexOf(t[0],r);if(-1===n)return!1;let i=e.subarray(n,n+t.length);return i.length===t.length&&(i.every((e,r)=>e===t[r])||eq(e,t,n+1))},eG=e=>{switch(!0){case eq(e,[42,134,72,206,61,3,1,7]):return"P-256";case eq(e,[43,129,4,0,34]):return"P-384";case eq(e,[43,129,4,0,35]):return"P-521";case eq(e,[43,101,110]):return"X25519";case eq(e,[43,101,111]):return"X448";case eq(e,[43,101,112]):return"Ed25519";case eq(e,[43,101,113]):return"Ed448";default:throw new P("Invalid or unsupported EC Key Curve or OKP Key Sub Type")}},eK=async(e,t,r,n,i)=>{let o,a;let s=new Uint8Array(atob(r.replace(e,"")).split("").map(e=>e.charCodeAt(0))),c="spki"===t;switch(n){case"PS256":case"PS384":case"PS512":o={name:"RSA-PSS",hash:`SHA-${n.slice(-3)}`},a=c?["verify"]:["sign"];break;case"RS256":case"RS384":case"RS512":o={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${n.slice(-3)}`},a=c?["verify"]:["sign"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":o={name:"RSA-OAEP",hash:`SHA-${parseInt(n.slice(-3),10)||1}`},a=c?["encrypt","wrapKey"]:["decrypt","unwrapKey"];break;case"ES256":o={name:"ECDSA",namedCurve:"P-256"},a=c?["verify"]:["sign"];break;case"ES384":o={name:"ECDSA",namedCurve:"P-384"},a=c?["verify"]:["sign"];break;case"ES512":o={name:"ECDSA",namedCurve:"P-521"},a=c?["verify"]:["sign"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{let e=eG(s);o=e.startsWith("P-")?{name:"ECDH",namedCurve:e}:{name:e},a=c?[]:["deriveBits"];break}case"Ed25519":o={name:"Ed25519"},a=c?["verify"]:["sign"];break;case"EdDSA":o={name:eG(s)},a=c?["verify"]:["sign"];break;default:throw new P('Invalid or unsupported "alg" (Algorithm) value')}return u.subtle.importKey(t,s,o,i?.extractable??!1,a)},ez=(e,t,r)=>eK(/(?:-----(?:BEGIN|END) PRIVATE KEY-----|\s)/g,"pkcs8",e,t,r),e$=(e,t,r)=>eK(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g,"spki",e,t,r);function eJ(e){let t=[],r=0;for(;r=128;)r=128*r+e[t]-128,t++;r=128*r+e[t]-128,t++}let n=0;if(e[t]<128)n=e[t],t++;else if(128===n){for(n=0;0!==e[t+n]||0!==e[t+n+1];){if(n>e.byteLength)throw TypeError("invalid indefinite form length");n++}let r=t+n+2;return{byteLength:r,contents:e.subarray(t,t+n),raw:e.subarray(0,r)}}else{let r=127&e[t];t++,n=0;for(let i=0;i{let n;try{n=eX(e)}catch(e){throw TypeError("Failed to parse the X.509 certificate",{cause:e})}return e$(n,t,r)};async function eQ(e,t,r){if("string"!=typeof e||0!==e.indexOf("-----BEGIN PUBLIC KEY-----"))throw TypeError('"spki" must be SPKI formatted string');return e$(e,t,r)}async function e0(e,t,r){if("string"!=typeof e||0!==e.indexOf("-----BEGIN CERTIFICATE-----"))throw TypeError('"x509" must be X.509 formatted string');return eZ(e,t,r)}async function e1(e,t,r){if("string"!=typeof e||0!==e.indexOf("-----BEGIN PRIVATE KEY-----"))throw TypeError('"pkcs8" must be PKCS#8 formatted string');return ez(e,t,r)}async function e2(e,t){if(!ec(e))throw TypeError("JWK must be an object");switch(t||(t=e.alg),e.kty){case"oct":if("string"!=typeof e.k||!e.k)throw TypeError('missing "k" (Key Value) Parameter value');return A(e.k);case"RSA":if("oth"in e&&void 0!==e.oth)throw new P('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');case"EC":case"OKP":return eO({...e,alg:t});default:throw new P('Unsupported "kty" (Key Type) Parameter value')}}let e3=e=>e?.[Symbol.toStringTag],e4=(e,t,r)=>{if(void 0!==t.use&&"sig"!==t.use)throw TypeError("Invalid key for this operation, when present its use must be sig");if(void 0!==t.key_ops&&t.key_ops.includes?.(r)!==!0)throw TypeError(`Invalid key for this operation, when present its key_ops must include ${r}`);if(void 0!==t.alg&&t.alg!==e)throw TypeError(`Invalid key for this operation, when present its alg must be ${e}`);return!0},e6=(e,t,r,n)=>{if(!(t instanceof Uint8Array)){if(n&&eM(t)){if(eI(t)&&e4(e,t,r))return;throw TypeError('JSON Web Key for symmetric algorithms must have JWK "kty" (Key Type) equal to "oct" and the JWK "k" (Key Value) present')}if(!er(t))throw TypeError(et(e,t,...en,"Uint8Array",n?"JSON Web Key":null));if("secret"!==t.type)throw TypeError(`${e3(t)} instances for symmetric algorithms must be of type "secret"`)}},e5=(e,t,r,n)=>{if(n&&eM(t))switch(r){case"sign":if(eT(t)&&e4(e,t,r))return;throw TypeError("JSON Web Key for this operation be a private JWK");case"verify":if(eP(t)&&e4(e,t,r))return;throw TypeError("JSON Web Key for this operation be a public JWK")}if(!er(t))throw TypeError(et(e,t,...en,n?"JSON Web Key":null));if("secret"===t.type)throw TypeError(`${e3(t)} instances for asymmetric algorithms must not be of type "secret"`);if("sign"===r&&"public"===t.type)throw TypeError(`${e3(t)} instances for asymmetric algorithm signing must be of type "private"`);if("decrypt"===r&&"public"===t.type)throw TypeError(`${e3(t)} instances for asymmetric algorithm decryption must be of type "private"`);if(t.algorithm&&"verify"===r&&"private"===t.type)throw TypeError(`${e3(t)} instances for asymmetric algorithm verifying must be of type "public"`);if(t.algorithm&&"encrypt"===r&&"private"===t.type)throw TypeError(`${e3(t)} instances for asymmetric algorithm encryption must be of type "public"`)};function e8(e,t,r,n){t.startsWith("HS")||"dir"===t||t.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(t)?e6(t,r,n,e):e5(t,r,n,e)}let e9=e8.bind(void 0,!1),e7=e8.bind(void 0,!0);async function te(e,t,r,n,i){if(!(r instanceof Uint8Array))throw TypeError(ee(r,"Uint8Array"));let o=parseInt(e.slice(1,4),10),a=await u.subtle.importKey("raw",r.subarray(o>>3),"AES-CBC",!1,["encrypt"]),s=await u.subtle.importKey("raw",r.subarray(0,o>>3),{hash:`SHA-${o<<1}`,name:"HMAC"},!1,["sign"]),c=new Uint8Array(await u.subtle.encrypt({iv:n,name:"AES-CBC"},a,t)),l=p(i,n,c,y(i.length<<3));return{ciphertext:c,tag:new Uint8Array((await u.subtle.sign("HMAC",s,l)).slice(0,o>>3)),iv:n}}async function tt(e,t,r,n,i){let o;r instanceof Uint8Array?o=await u.subtle.importKey("raw",r,"AES-GCM",!1,["encrypt"]):(Z(r,e,"encrypt"),o=r);let a=new Uint8Array(await u.subtle.encrypt({additionalData:i,iv:n,name:"AES-GCM",tagLength:128},o,t)),s=a.slice(-16);return{ciphertext:a.slice(0,-16),tag:s,iv:n}}let tr=async(e,t,r,n,i)=>{if(!c(r)&&!(r instanceof Uint8Array))throw TypeError(ee(r,...en,"Uint8Array"));switch(n?q(e,n):n=H(e),e){case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return r instanceof Uint8Array&&G(r,parseInt(e.slice(-3),10)),te(e,t,r,n,i);case"A128GCM":case"A192GCM":case"A256GCM":return r instanceof Uint8Array&&G(r,parseInt(e.slice(1,4),10)),tt(e,t,r,n,i);default:throw new P("Unsupported JWE Content Encryption Algorithm")}};async function tn(e,t,r,n){let i=e.slice(0,7),o=await tr(i,r,t,n,new Uint8Array(0));return{encryptedKey:o.ciphertext,iv:_(o.iv),tag:_(o.tag)}}async function ti(e,t,r,n,i){return ea(e.slice(0,7),t,r,n,i,new Uint8Array(0))}let to=async function(e,t,r,n,i){switch(e9(e,t,"decrypt"),t=await eL.normalizePrivateKey?.(t,e)||t,e){case"dir":if(void 0!==r)throw new C("Encountered unexpected JWE Encrypted Key");return t;case"ECDH-ES":if(void 0!==r)throw new C("Encountered unexpected JWE Encrypted Key");case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{let i,o;if(!ec(n.epk))throw new C('JOSE Header "epk" (Ephemeral Public Key) missing or invalid');if(!ey(t))throw new P("ECDH with the provided key is not allowed or not supported by your javascript runtime");let a=await e2(n.epk,e);if(void 0!==n.apu){if("string"!=typeof n.apu)throw new C('JOSE Header "apu" (Agreement PartyUInfo) invalid');try{i=A(n.apu)}catch{throw new C("Failed to base64url decode the apu")}}if(void 0!==n.apv){if("string"!=typeof n.apv)throw new C('JOSE Header "apv" (Agreement PartyVInfo) invalid');try{o=A(n.apv)}catch{throw new C("Failed to base64url decode the apv")}}let s=await em(a,t,"ECDH-ES"===e?n.enc:e,"ECDH-ES"===e?eN(n.enc):parseInt(e.slice(-5,-2),10),i,o);if("ECDH-ES"===e)return s;if(void 0===r)throw new C("JWE Encrypted Key missing");return ep(e.slice(-6),s,r)}case"RSA1_5":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":if(void 0===r)throw new C("JWE Encrypted Key missing");return eE(e,t,r);case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{let o;if(void 0===r)throw new C("JWE Encrypted Key missing");if("number"!=typeof n.p2c)throw new C('JOSE Header "p2c" (PBES2 Count) missing or invalid');let a=i?.maxPBES2Count||1e4;if(n.p2c>a)throw new C('JOSE Header "p2c" (PBES2 Count) out is of acceptable bounds');if("string"!=typeof n.p2s)throw new C('JOSE Header "p2s" (PBES2 Salt) missing or invalid');try{o=A(n.p2s)}catch{throw new C("Failed to base64url decode the p2s")}return e_(e,t,r,n.p2c,o)}case"A128KW":case"A192KW":case"A256KW":if(void 0===r)throw new C("JWE Encrypted Key missing");return ep(e,t,r);case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{let i,o;if(void 0===r)throw new C("JWE Encrypted Key missing");if("string"!=typeof n.iv)throw new C('JOSE Header "iv" (Initialization Vector) missing or invalid');if("string"!=typeof n.tag)throw new C('JOSE Header "tag" (Authentication Tag) missing or invalid');try{i=A(n.iv)}catch{throw new C("Failed to base64url decode the iv")}try{o=A(n.tag)}catch{throw new C("Failed to base64url decode the tag")}return ti(e,t,r,i,o)}default:throw new P('Invalid or unsupported "alg" (JWE Algorithm) header value')}},ta=function(e,t,r,n,i){let o;if(void 0!==i.crit&&n?.crit===void 0)throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');if(!n||void 0===n.crit)return new Set;if(!Array.isArray(n.crit)||0===n.crit.length||n.crit.some(e=>"string"!=typeof e||0===e.length))throw new e('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');for(let a of(o=void 0!==r?new Map([...Object.entries(r),...t.entries()]):t,n.crit)){if(!o.has(a))throw new P(`Extension Header Parameter "${a}" is not recognized`);if(void 0===i[a])throw new e(`Extension Header Parameter "${a}" is missing`);if(o.get(a)&&void 0===n[a])throw new e(`Extension Header Parameter "${a}" MUST be integrity protected`)}return new Set(n.crit)},ts=(e,t)=>{if(void 0!==t&&(!Array.isArray(t)||t.some(e=>"string"!=typeof e)))throw TypeError(`"${e}" option must be an array of strings`);if(t)return new Set(t)};async function tu(e,t,r){let n,i,o,a,s,u,c;if(!ec(e))throw new C("Flattened JWE must be an object");if(void 0===e.protected&&void 0===e.header&&void 0===e.unprotected)throw new C("JOSE Header missing");if(void 0!==e.iv&&"string"!=typeof e.iv)throw new C("JWE Initialization Vector incorrect type");if("string"!=typeof e.ciphertext)throw new C("JWE Ciphertext missing or incorrect type");if(void 0!==e.tag&&"string"!=typeof e.tag)throw new C("JWE Authentication Tag incorrect type");if(void 0!==e.protected&&"string"!=typeof e.protected)throw new C("JWE Protected Header incorrect type");if(void 0!==e.encrypted_key&&"string"!=typeof e.encrypted_key)throw new C("JWE Encrypted Key incorrect type");if(void 0!==e.aad&&"string"!=typeof e.aad)throw new C("JWE AAD incorrect type");if(void 0!==e.header&&!ec(e.header))throw new C("JWE Shared Unprotected Header incorrect type");if(void 0!==e.unprotected&&!ec(e.unprotected))throw new C("JWE Per-Recipient Unprotected Header incorrect type");if(e.protected)try{let t=A(e.protected);n=JSON.parse(f.decode(t))}catch{throw new C("JWE Protected Header is invalid")}if(!es(n,e.header,e.unprotected))throw new C("JWE Protected, JWE Unprotected Header, and JWE Per-Recipient Unprotected Header Parameter names must be disjoint");let l={...n,...e.header,...e.unprotected};if(ta(C,new Map,r?.crit,n,l),void 0!==l.zip)throw new P('JWE "zip" (Compression Algorithm) Header Parameter is not supported.');let{alg:h,enc:m}=l;if("string"!=typeof h||!h)throw new C("missing JWE Algorithm (alg) in JWE Header");if("string"!=typeof m||!m)throw new C("missing JWE Encryption Algorithm (enc) in JWE Header");let g=r&&ts("keyManagementAlgorithms",r.keyManagementAlgorithms),y=r&&ts("contentEncryptionAlgorithms",r.contentEncryptionAlgorithms);if(g&&!g.has(h)||!g&&h.startsWith("PBES2"))throw new T('"alg" (Algorithm) Header Parameter value not allowed');if(y&&!y.has(m))throw new T('"enc" (Encryption Algorithm) Header Parameter value not allowed');if(void 0!==e.encrypted_key)try{i=A(e.encrypted_key)}catch{throw new C("Failed to base64url decode the encrypted_key")}let b=!1;"function"==typeof t&&(t=await t(n,e),b=!0);try{o=await to(h,t,i,l,r)}catch(e){if(e instanceof TypeError||e instanceof C||e instanceof P)throw e;o=eB(m)}if(void 0!==e.iv)try{a=A(e.iv)}catch{throw new C("Failed to base64url decode the iv")}if(void 0!==e.tag)try{s=A(e.tag)}catch{throw new C("Failed to base64url decode the tag")}let v=d.encode(e.protected??"");u=void 0!==e.aad?p(v,d.encode("."),d.encode(e.aad)):v;try{c=A(e.ciphertext)}catch{throw new C("Failed to base64url decode the ciphertext")}let w={plaintext:await ea(m,o,c,a,s,u)};if(void 0!==e.protected&&(w.protectedHeader=n),void 0!==e.aad)try{w.additionalAuthenticatedData=A(e.aad)}catch{throw new C("Failed to base64url decode the aad")}return(void 0!==e.unprotected&&(w.sharedUnprotectedHeader=e.unprotected),void 0!==e.header&&(w.unprotectedHeader=e.header),b)?{...w,key:t}:w}async function tc(e,t,r){if(e instanceof Uint8Array&&(e=f.decode(e)),"string"!=typeof e)throw new C("Compact JWE must be a string or Uint8Array");let{0:n,1:i,2:o,3:a,4:s,length:u}=e.split(".");if(5!==u)throw new C("Invalid Compact JWE");let c=await tu({ciphertext:a,iv:o||void 0,protected:n,tag:s||void 0,encrypted_key:i||void 0},t,r),l={plaintext:c.plaintext,protectedHeader:c.protectedHeader};return"function"==typeof t?{...l,key:c.key}:l}async function tl(e,t,r){if(!ec(e))throw new C("General JWE must be an object");if(!Array.isArray(e.recipients)||!e.recipients.every(ec))throw new C("JWE Recipients missing or incorrect type");if(!e.recipients.length)throw new C("JWE Recipients has no members");for(let n of e.recipients)try{return await tu({aad:e.aad,ciphertext:e.ciphertext,encrypted_key:n.encrypted_key,header:n.header,iv:e.iv,protected:e.protected,tag:e.tag,unprotected:e.unprotected},t,r)}catch{}throw new I}let td=Symbol(),tf=async e=>{if(e instanceof Uint8Array)return{kty:"oct",k:_(e)};if(!c(e))throw TypeError(ee(e,...en,"Uint8Array"));if(!e.extractable)throw TypeError("non-extractable CryptoKey cannot be exported as a JWK");let{ext:t,key_ops:r,alg:n,use:i,...o}=await u.subtle.exportKey("jwk",e);return o};async function th(e){return eW(e)}async function tp(e){return eH(e)}async function tm(e){return tf(e)}let tg=async function(e,t,r,n,i={}){let o,a,s;switch(e9(e,r,"encrypt"),r=await eL.normalizePublicKey?.(r,e)||r,e){case"dir":s=r;break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{if(!ey(r))throw new P("ECDH with the provided key is not allowed or not supported by your javascript runtime");let{apu:u,apv:c}=i,{epk:l}=i;l||(l=(await eg(r)).privateKey);let{x:d,y:f,crv:h,kty:p}=await tm(l),m=await em(r,l,"ECDH-ES"===e?t:e,"ECDH-ES"===e?eN(t):parseInt(e.slice(-5,-2),10),u,c);if(a={epk:{x:d,crv:h,kty:p}},"EC"===p&&(a.epk.y=f),u&&(a.apu=_(u)),c&&(a.apv=_(c)),"ECDH-ES"===e){s=m;break}s=n||eB(t);let g=e.slice(-6);o=await eh(g,m,s);break}case"RSA1_5":case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":s=n||eB(t),o=await ek(e,r,s);break;case"PBES2-HS256+A128KW":case"PBES2-HS384+A192KW":case"PBES2-HS512+A256KW":{s=n||eB(t);let{p2c:u,p2s:c}=i;({encryptedKey:o,...a}=await eS(e,r,s,u,c));break}case"A128KW":case"A192KW":case"A256KW":s=n||eB(t),o=await eh(e,r,s);break;case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":{s=n||eB(t);let{iv:u}=i;({encryptedKey:o,...a}=await tn(e,r,s,u));break}default:throw new P('Invalid or unsupported "alg" (JWE Algorithm) header value')}return{cek:s,encryptedKey:o,parameters:a}};class ty{constructor(e){if(!(e instanceof Uint8Array))throw TypeError("plaintext must be an instance of Uint8Array");this._plaintext=e}setKeyManagementParameters(e){if(this._keyManagementParameters)throw TypeError("setKeyManagementParameters can only be called once");return this._keyManagementParameters=e,this}setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setSharedUnprotectedHeader(e){if(this._sharedUnprotectedHeader)throw TypeError("setSharedUnprotectedHeader can only be called once");return this._sharedUnprotectedHeader=e,this}setUnprotectedHeader(e){if(this._unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}setAdditionalAuthenticatedData(e){return this._aad=e,this}setContentEncryptionKey(e){if(this._cek)throw TypeError("setContentEncryptionKey can only be called once");return this._cek=e,this}setInitializationVector(e){if(this._iv)throw TypeError("setInitializationVector can only be called once");return this._iv=e,this}async encrypt(e,t){let r,n,i,o,a;if(!this._protectedHeader&&!this._unprotectedHeader&&!this._sharedUnprotectedHeader)throw new C("either setProtectedHeader, setUnprotectedHeader, or sharedUnprotectedHeader must be called before #encrypt()");if(!es(this._protectedHeader,this._unprotectedHeader,this._sharedUnprotectedHeader))throw new C("JWE Protected, JWE Shared Unprotected and JWE Per-Recipient Header Parameter names must be disjoint");let s={...this._protectedHeader,...this._unprotectedHeader,...this._sharedUnprotectedHeader};if(ta(C,new Map,t?.crit,this._protectedHeader,s),void 0!==s.zip)throw new P('JWE "zip" (Compression Algorithm) Header Parameter is not supported.');let{alg:u,enc:c}=s;if("string"!=typeof u||!u)throw new C('JWE "alg" (Algorithm) Header Parameter missing or invalid');if("string"!=typeof c||!c)throw new C('JWE "enc" (Encryption Algorithm) Header Parameter missing or invalid');if(this._cek&&("dir"===u||"ECDH-ES"===u))throw TypeError(`setContentEncryptionKey cannot be called with JWE "alg" (Algorithm) Header ${u}`);{let i;({cek:n,encryptedKey:r,parameters:i}=await tg(u,c,e,this._cek,this._keyManagementParameters)),i&&(t&&td in t?this._unprotectedHeader?this._unprotectedHeader={...this._unprotectedHeader,...i}:this.setUnprotectedHeader(i):this._protectedHeader?this._protectedHeader={...this._protectedHeader,...i}:this.setProtectedHeader(i))}o=this._protectedHeader?d.encode(_(JSON.stringify(this._protectedHeader))):d.encode(""),this._aad?(a=_(this._aad),i=p(o,d.encode("."),d.encode(a))):i=o;let{ciphertext:l,tag:h,iv:m}=await tr(c,this._plaintext,n,this._iv,i),g={ciphertext:_(l)};return m&&(g.iv=_(m)),h&&(g.tag=_(h)),r&&(g.encrypted_key=_(r)),a&&(g.aad=a),this._protectedHeader&&(g.protected=f.decode(o)),this._sharedUnprotectedHeader&&(g.unprotected=this._sharedUnprotectedHeader),this._unprotectedHeader&&(g.header=this._unprotectedHeader),g}}class tb{constructor(e,t,r){this.parent=e,this.key=t,this.options=r}setUnprotectedHeader(e){if(this.unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this.unprotectedHeader=e,this}addRecipient(...e){return this.parent.addRecipient(...e)}encrypt(...e){return this.parent.encrypt(...e)}done(){return this.parent}}class tv{constructor(e){this._recipients=[],this._plaintext=e}addRecipient(e,t){let r=new tb(this,e,{crit:t?.crit});return this._recipients.push(r),r}setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setSharedUnprotectedHeader(e){if(this._unprotectedHeader)throw TypeError("setSharedUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}setAdditionalAuthenticatedData(e){return this._aad=e,this}async encrypt(){let e;if(!this._recipients.length)throw new C("at least one recipient must be added");if(1===this._recipients.length){let[e]=this._recipients,t=await new ty(this._plaintext).setAdditionalAuthenticatedData(this._aad).setProtectedHeader(this._protectedHeader).setSharedUnprotectedHeader(this._unprotectedHeader).setUnprotectedHeader(e.unprotectedHeader).encrypt(e.key,{...e.options}),r={ciphertext:t.ciphertext,iv:t.iv,recipients:[{}],tag:t.tag};return t.aad&&(r.aad=t.aad),t.protected&&(r.protected=t.protected),t.unprotected&&(r.unprotected=t.unprotected),t.encrypted_key&&(r.recipients[0].encrypted_key=t.encrypted_key),t.header&&(r.recipients[0].header=t.header),r}for(let t=0;t>3};case"RS256":case"RS384":case"RS512":return{hash:r,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:r,name:"ECDSA",namedCurve:t.namedCurve};case"Ed25519":return{name:"Ed25519"};case"EdDSA":return{name:t.name};default:throw new P(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}async function tS(e,t,r){if("sign"===r&&(t=await eL.normalizePrivateKey(t,e)),"verify"===r&&(t=await eL.normalizePublicKey(t,e)),c(t))return X(t,e,r),t;if(t instanceof Uint8Array){if(!e.startsWith("HS"))throw TypeError(ee(t,...en));return u.subtle.importKey("raw",t,{hash:`SHA-${e.slice(-3)}`,name:"HMAC"},!1,[r])}throw TypeError(ee(t,...en,"Uint8Array","JSON Web Key"))}let t_=async(e,t,r,n)=>{let i=await tS(e,t,"verify");eA(e,i);let o=tw(e,i.algorithm);try{return await u.subtle.verify(o,i,r,n)}catch{return!1}};async function tx(e,t,r){let n,i;if(!ec(e))throw new O("Flattened JWS must be an object");if(void 0===e.protected&&void 0===e.header)throw new O('Flattened JWS must have either of the "protected" or "header" members');if(void 0!==e.protected&&"string"!=typeof e.protected)throw new O("JWS Protected Header incorrect type");if(void 0===e.payload)throw new O("JWS Payload missing");if("string"!=typeof e.signature)throw new O("JWS Signature missing or incorrect type");if(void 0!==e.header&&!ec(e.header))throw new O("JWS Unprotected Header incorrect type");let o={};if(e.protected)try{let t=A(e.protected);o=JSON.parse(f.decode(t))}catch{throw new O("JWS Protected Header is invalid")}if(!es(o,e.header))throw new O("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let a={...o,...e.header},s=ta(O,new Map([["b64",!0]]),r?.crit,o,a),u=!0;if(s.has("b64")&&"boolean"!=typeof(u=o.b64))throw new O('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:c}=a;if("string"!=typeof c||!c)throw new O('JWS "alg" (Algorithm) Header Parameter missing or invalid');let l=r&&ts("algorithms",r.algorithms);if(l&&!l.has(c))throw new T('"alg" (Algorithm) Header Parameter value not allowed');if(u){if("string"!=typeof e.payload)throw new O("JWS Payload must be a string")}else if("string"!=typeof e.payload&&!(e.payload instanceof Uint8Array))throw new O("JWS Payload must be a string or an Uint8Array instance");let h=!1;"function"==typeof t?(t=await t(o,e),h=!0,e7(c,t,"verify"),eM(t)&&(t=await e2(t,c))):e7(c,t,"verify");let m=p(d.encode(e.protected??""),d.encode("."),"string"==typeof e.payload?d.encode(e.payload):e.payload);try{n=A(e.signature)}catch{throw new O("Failed to base64url decode the signature")}if(!await t_(c,t,n,m))throw new U;if(u)try{i=A(e.payload)}catch{throw new O("Failed to base64url decode the payload")}else i="string"==typeof e.payload?d.encode(e.payload):e.payload;let g={payload:i};return(void 0!==e.protected&&(g.protectedHeader=o),void 0!==e.header&&(g.unprotectedHeader=e.header),h)?{...g,key:t}:g}async function tA(e,t,r){if(e instanceof Uint8Array&&(e=f.decode(e)),"string"!=typeof e)throw new O("Compact JWS must be a string or Uint8Array");let{0:n,1:i,2:o,length:a}=e.split(".");if(3!==a)throw new O("Invalid Compact JWS");let s=await tx({payload:i,protected:n,signature:o},t,r),u={payload:s.payload,protectedHeader:s.protectedHeader};return"function"==typeof t?{...u,key:s.key}:u}async function tk(e,t,r){if(!ec(e))throw new O("General JWS must be an object");if(!Array.isArray(e.signatures)||!e.signatures.every(ec))throw new O("JWS Signatures missing or incorrect type");for(let n of e.signatures)try{return await tx({header:n.header,payload:e.payload,protected:n.protected,signature:n.signature},t,r)}catch{}throw new U}let tE=e=>Math.floor(e.getTime()/1e3),tM=60,tT=3600,tP=86400,tI=604800,tC=0x1e187e0,tO=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i,tR=e=>{let t;let r=tO.exec(e);if(!r||r[4]&&r[1])throw TypeError("Invalid time period format");let n=parseFloat(r[2]);switch(r[3].toLowerCase()){case"sec":case"secs":case"second":case"seconds":case"s":t=Math.round(n);break;case"minute":case"minutes":case"min":case"mins":case"m":t=Math.round(n*tM);break;case"hour":case"hours":case"hr":case"hrs":case"h":t=Math.round(n*tT);break;case"day":case"days":case"d":t=Math.round(n*tP);break;case"week":case"weeks":case"w":t=Math.round(n*tI);break;default:t=Math.round(n*tC)}return"-"===r[1]||"ago"===r[4]?-t:t},tj=e=>e.toLowerCase().replace(/^application\//,""),tD=(e,t)=>"string"==typeof e?t.includes(e):!!Array.isArray(e)&&t.some(Set.prototype.has.bind(new Set(e))),tL=(e,t,r={})=>{let n,i;try{n=JSON.parse(f.decode(t))}catch{}if(!ec(n))throw new R("JWT Claims Set must be a top-level JSON object");let{typ:o}=r;if(o&&("string"!=typeof e.typ||tj(e.typ)!==tj(o)))throw new E('unexpected "typ" JWT header value',n,"typ","check_failed");let{requiredClaims:a=[],issuer:s,subject:u,audience:c,maxTokenAge:l}=r,d=[...a];for(let e of(void 0!==l&&d.push("iat"),void 0!==c&&d.push("aud"),void 0!==u&&d.push("sub"),void 0!==s&&d.push("iss"),new Set(d.reverse())))if(!(e in n))throw new E(`missing required "${e}" claim`,n,e,"missing");if(s&&!(Array.isArray(s)?s:[s]).includes(n.iss))throw new E('unexpected "iss" claim value',n,"iss","check_failed");if(u&&n.sub!==u)throw new E('unexpected "sub" claim value',n,"sub","check_failed");if(c&&!tD(n.aud,"string"==typeof c?[c]:c))throw new E('unexpected "aud" claim value',n,"aud","check_failed");switch(typeof r.clockTolerance){case"string":i=tR(r.clockTolerance);break;case"number":i=r.clockTolerance;break;case"undefined":i=0;break;default:throw TypeError("Invalid clockTolerance option type")}let{currentDate:h}=r,p=tE(h||new Date);if((void 0!==n.iat||l)&&"number"!=typeof n.iat)throw new E('"iat" claim must be a number',n,"iat","invalid");if(void 0!==n.nbf){if("number"!=typeof n.nbf)throw new E('"nbf" claim must be a number',n,"nbf","invalid");if(n.nbf>p+i)throw new E('"nbf" claim timestamp check failed',n,"nbf","check_failed")}if(void 0!==n.exp){if("number"!=typeof n.exp)throw new E('"exp" claim must be a number',n,"exp","invalid");if(n.exp<=p-i)throw new M('"exp" claim timestamp check failed',n,"exp","check_failed")}if(l){let e=p-n.iat;if(e-i>("number"==typeof l?l:tR(l)))throw new M('"iat" claim timestamp check failed (too far in the past)',n,"iat","check_failed");if(e<0-i)throw new E('"iat" claim timestamp check failed (it should be in the past)',n,"iat","check_failed")}return n};async function tN(e,t,r){let n=await tA(e,t,r);if(n.protectedHeader.crit?.includes("b64")&&!1===n.protectedHeader.b64)throw new R("JWTs MUST NOT use unencoded payload");let i={payload:tL(n.protectedHeader,n.payload,r),protectedHeader:n.protectedHeader};return"function"==typeof t?{...i,key:n.key}:i}async function tB(e,t,r){let n=await tc(e,t,r),i=tL(n.protectedHeader,n.plaintext,r),{protectedHeader:o}=n;if(void 0!==o.iss&&o.iss!==i.iss)throw new E('replicated "iss" claim header parameter mismatch',i,"iss","mismatch");if(void 0!==o.sub&&o.sub!==i.sub)throw new E('replicated "sub" claim header parameter mismatch',i,"sub","mismatch");if(void 0!==o.aud&&JSON.stringify(o.aud)!==JSON.stringify(i.aud))throw new E('replicated "aud" claim header parameter mismatch',i,"aud","mismatch");let a={payload:i,protectedHeader:o};return"function"==typeof t?{...a,key:n.key}:a}class tU{constructor(e){this._flattened=new ty(e)}setContentEncryptionKey(e){return this._flattened.setContentEncryptionKey(e),this}setInitializationVector(e){return this._flattened.setInitializationVector(e),this}setProtectedHeader(e){return this._flattened.setProtectedHeader(e),this}setKeyManagementParameters(e){return this._flattened.setKeyManagementParameters(e),this}async encrypt(e,t){let r=await this._flattened.encrypt(e,t);return[r.protected,r.encrypted_key,r.iv,r.ciphertext,r.tag].join(".")}}let tF=async(e,t,r)=>{let n=await tS(e,t,"sign");return eA(e,n),new Uint8Array(await u.subtle.sign(tw(e,n.algorithm),n,r))};class tW{constructor(e){if(!(e instanceof Uint8Array))throw TypeError("payload must be an instance of Uint8Array");this._payload=e}setProtectedHeader(e){if(this._protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this._protectedHeader=e,this}setUnprotectedHeader(e){if(this._unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this._unprotectedHeader=e,this}async sign(e,t){let r;if(!this._protectedHeader&&!this._unprotectedHeader)throw new O("either setProtectedHeader or setUnprotectedHeader must be called before #sign()");if(!es(this._protectedHeader,this._unprotectedHeader))throw new O("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let n={...this._protectedHeader,...this._unprotectedHeader},i=ta(O,new Map([["b64",!0]]),t?.crit,this._protectedHeader,n),o=!0;if(i.has("b64")&&"boolean"!=typeof(o=this._protectedHeader.b64))throw new O('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:a}=n;if("string"!=typeof a||!a)throw new O('JWS "alg" (Algorithm) Header Parameter missing or invalid');e7(a,e,"sign");let s=this._payload;o&&(s=d.encode(_(s)));let u=p(r=this._protectedHeader?d.encode(_(JSON.stringify(this._protectedHeader))):d.encode(""),d.encode("."),s),c={signature:_(await tF(a,e,u)),payload:""};return o&&(c.payload=f.decode(s)),this._unprotectedHeader&&(c.header=this._unprotectedHeader),this._protectedHeader&&(c.protected=f.decode(r)),c}}class tH{constructor(e){this._flattened=new tW(e)}setProtectedHeader(e){return this._flattened.setProtectedHeader(e),this}async sign(e,t){let r=await this._flattened.sign(e,t);if(void 0===r.payload)throw TypeError("use the flattened module for creating JWS with b64: false");return`${r.protected}.${r.payload}.${r.signature}`}}class tq{constructor(e,t,r){this.parent=e,this.key=t,this.options=r}setProtectedHeader(e){if(this.protectedHeader)throw TypeError("setProtectedHeader can only be called once");return this.protectedHeader=e,this}setUnprotectedHeader(e){if(this.unprotectedHeader)throw TypeError("setUnprotectedHeader can only be called once");return this.unprotectedHeader=e,this}addSignature(...e){return this.parent.addSignature(...e)}sign(...e){return this.parent.sign(...e)}done(){return this.parent}}class tG{constructor(e){this._signatures=[],this._payload=e}addSignature(e,t){let r=new tq(this,e,t);return this._signatures.push(r),r}async sign(){if(!this._signatures.length)throw new O("at least one signature must be added");let e={signatures:[],payload:""};for(let t=0;t{if("string"!=typeof e||!e)throw new j(`${t} missing or invalid`)};async function tV(e,t){let r;if(!ec(e))throw TypeError("JWK must be an object");if(t??(t="sha256"),"sha256"!==t&&"sha384"!==t&&"sha512"!==t)throw TypeError('digestAlgorithm must one of "sha256", "sha384", or "sha512"');switch(e.kty){case"EC":tY(e.crv,'"crv" (Curve) Parameter'),tY(e.x,'"x" (X Coordinate) Parameter'),tY(e.y,'"y" (Y Coordinate) Parameter'),r={crv:e.crv,kty:e.kty,x:e.x,y:e.y};break;case"OKP":tY(e.crv,'"crv" (Subtype of Key Pair) Parameter'),tY(e.x,'"x" (Public Key) Parameter'),r={crv:e.crv,kty:e.kty,x:e.x};break;case"RSA":tY(e.e,'"e" (Exponent) Parameter'),tY(e.n,'"n" (Modulus) Parameter'),r={e:e.e,kty:e.kty,n:e.n};break;case"oct":tY(e.k,'"k" (Key Value) Parameter'),r={k:e.k,kty:e.kty};break;default:throw new P('"kty" (Key Type) Parameter missing or unsupported')}let n=d.encode(JSON.stringify(r));return _(await l(t,n))}async function tX(e,t){t??(t="sha256");let r=await tV(e,t);return`urn:ietf:params:oauth:jwk-thumbprint:sha-${t.slice(-3)}:${r}`}async function tZ(e,t){let r={...e,...t?.header};if(!ec(r.jwk))throw new O('"jwk" (JSON Web Key) Header Parameter must be a JSON object');let n=await e2({...r.jwk,ext:!0},r.alg);if(n instanceof Uint8Array||"public"!==n.type)throw new O('"jwk" (JSON Web Key) Header Parameter must be a public key');return n}function tQ(e){switch("string"==typeof e&&e.slice(0,2)){case"RS":case"PS":return"RSA";case"ES":return"EC";case"Ed":return"OKP";default:throw new P('Unsupported "alg" value for a JSON Web Key Set')}}function t0(e){return e&&"object"==typeof e&&Array.isArray(e.keys)&&e.keys.every(t1)}function t1(e){return ec(e)}function t2(e){return"function"==typeof structuredClone?structuredClone(e):JSON.parse(JSON.stringify(e))}class t3{constructor(e){if(this._cached=new WeakMap,!t0(e))throw new D("JSON Web Key Set malformed");this._jwks=t2(e)}async getKey(e,t){let{alg:r,kid:n}={...e,...t?.header},i=tQ(r),o=this._jwks.keys.filter(e=>{let t=i===e.kty;if(t&&"string"==typeof n&&(t=n===e.kid),t&&"string"==typeof e.alg&&(t=r===e.alg),t&&"string"==typeof e.use&&(t="sig"===e.use),t&&Array.isArray(e.key_ops)&&(t=e.key_ops.includes("verify")),t)switch(r){case"ES256":t="P-256"===e.crv;break;case"ES256K":t="secp256k1"===e.crv;break;case"ES384":t="P-384"===e.crv;break;case"ES512":t="P-521"===e.crv;break;case"Ed25519":t="Ed25519"===e.crv;break;case"EdDSA":t="Ed25519"===e.crv||"Ed448"===e.crv}return t}),{0:a,length:s}=o;if(0===s)throw new L;if(1!==s){let e=new N,{_cached:t}=this;throw e[Symbol.asyncIterator]=async function*(){for(let e of o)try{yield await t4(t,e,r)}catch{}},e}return t4(this._cached,a,r)}}async function t4(e,t,r){let n=e.get(t)||e.set(t,{}).get(t);if(void 0===n[r]){let e=await e2({...t,ext:!0},r);if(e instanceof Uint8Array||"public"!==e.type)throw new D("JSON Web Key Set members must be public keys");n[r]=e}return n[r]}function t6(e){let t=new t3(e),r=async(e,r)=>t.getKey(e,r);return Object.defineProperties(r,{jwks:{value:()=>t2(t._jwks),enumerable:!0,configurable:!1,writable:!1}}),r}let t5=async(e,t,r)=>{let n,i;let o=!1;"function"==typeof AbortController&&(n=new AbortController,i=setTimeout(()=>{o=!0,n.abort()},t));let a=await fetch(e.href,{signal:n?n.signal:void 0,redirect:"manual",headers:r.headers}).catch(e=>{if(o)throw new B;throw e});if(void 0!==i&&clearTimeout(i),200!==a.status)throw new k("Expected 200 OK from the JSON Web Key Set HTTP response");try{return await a.json()}catch{throw new k("Failed to parse the JSON Web Key Set HTTP response as JSON")}};function t8(){return"undefined"!=typeof WebSocketPair||"undefined"!=typeof navigator&&"Cloudflare-Workers"===navigator.userAgent||"undefined"!=typeof EdgeRuntime&&"vercel"===EdgeRuntime}if("undefined"==typeof navigator||!navigator.userAgent?.startsWith?.("Mozilla/5.0 ")){let e="jose",t="v5.10.0";o=`${e}/${t}`}let t9=Symbol();function t7(e,t){return!!(!("object"!=typeof e||null===e||!("uat"in e)||"number"!=typeof e.uat||Date.now()-e.uat>=t)&&"jwks"in e&&ec(e.jwks)&&Array.isArray(e.jwks.keys)&&Array.prototype.every.call(e.jwks.keys,ec))}class re{constructor(e,t){if(!(e instanceof URL))throw TypeError("url must be an instance of URL");this._url=new URL(e.href),this._options={agent:t?.agent,headers:t?.headers},this._timeoutDuration="number"==typeof t?.timeoutDuration?t?.timeoutDuration:5e3,this._cooldownDuration="number"==typeof t?.cooldownDuration?t?.cooldownDuration:3e4,this._cacheMaxAge="number"==typeof t?.cacheMaxAge?t?.cacheMaxAge:6e5,t?.[t9]!==void 0&&(this._cache=t?.[t9],t7(t?.[t9],this._cacheMaxAge)&&(this._jwksTimestamp=this._cache.uat,this._local=t6(this._cache.jwks)))}coolingDown(){return"number"==typeof this._jwksTimestamp&&Date.now(){this._local=t6(e),this._cache&&(this._cache.uat=Date.now(),this._cache.jwks=e),this._jwksTimestamp=Date.now(),this._pendingFetch=void 0}).catch(e=>{throw this._pendingFetch=void 0,e})),await this._pendingFetch}}function rt(e,t){let r=new re(e,t),n=async(e,t)=>r.getKey(e,t);return Object.defineProperties(n,{coolingDown:{get:()=>r.coolingDown(),enumerable:!0,configurable:!1},fresh:{get:()=>r.fresh(),enumerable:!0,configurable:!1},reload:{value:()=>r.reload(),enumerable:!0,configurable:!1,writable:!1},reloading:{get:()=>!!r._pendingFetch,enumerable:!0,configurable:!1},jwks:{value:()=>r._local?.jwks(),enumerable:!0,configurable:!1,writable:!1}}),n}let rr=t9;class rn extends tz{encode(){let e=_(JSON.stringify({alg:"none"})),t=_(JSON.stringify(this._payload));return`${e}.${t}.`}static decode(e,t){let r;if("string"!=typeof e)throw new R("Unsecured JWT must be a string");let{0:n,1:i,2:o,length:a}=e.split(".");if(3!==a||""!==o)throw new R("Invalid Unsecured JWT");try{if(r=JSON.parse(f.decode(A(n))),"none"!==r.alg)throw Error()}catch{throw new R("Invalid Unsecured JWT")}return{payload:tL(r,A(i),t),header:r}}}let ri=_,ro=A;function ra(e){let t;if("string"==typeof e){let r=e.split(".");(3===r.length||5===r.length)&&([t]=r)}else if("object"==typeof e&&e){if("protected"in e)t=e.protected;else throw TypeError("Token does not contain a Protected Header")}try{if("string"!=typeof t||!t)throw Error();let e=JSON.parse(f.decode(ro(t)));if(!ec(e))throw Error();return e}catch{throw TypeError("Invalid Token or Protected Header formatting")}}function rs(e){let t,r;if("string"!=typeof e)throw new R("JWTs must use Compact JWS serialization, JWT must be a string");let{1:n,length:i}=e.split(".");if(5===i)throw new R("Only JWTs using Compact JWS serialization can be decoded");if(3!==i)throw new R("Invalid JWT");if(!n)throw new R("JWTs must contain a payload");try{t=ro(n)}catch{throw new R("Failed to base64url decode the payload")}try{r=JSON.parse(f.decode(t))}catch{throw new R("Failed to parse the decoded payload as JSON")}if(!ec(r))throw new R("Invalid JWT Claims Set");return r}async function ru(e,t){let r,n,i;switch(e){case"HS256":case"HS384":case"HS512":r=parseInt(e.slice(-3),10),n={name:"HMAC",hash:`SHA-${r}`,length:r},i=["sign","verify"];break;case"A128CBC-HS256":case"A192CBC-HS384":case"A256CBC-HS512":return F(new Uint8Array((r=parseInt(e.slice(-3),10))>>3));case"A128KW":case"A192KW":case"A256KW":n={name:"AES-KW",length:r=parseInt(e.slice(1,4),10)},i=["wrapKey","unwrapKey"];break;case"A128GCMKW":case"A192GCMKW":case"A256GCMKW":case"A128GCM":case"A192GCM":case"A256GCM":n={name:"AES-GCM",length:r=parseInt(e.slice(1,4),10)},i=["encrypt","decrypt"];break;default:throw new P('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}return u.subtle.generateKey(n,t?.extractable??!1,i)}function rc(e){let t=e?.modulusLength??2048;if("number"!=typeof t||t<2048)throw new P("Invalid or unsupported modulusLength option provided, 2048 bits or larger keys must be used");return t}async function rl(e,t){let r,n;switch(e){case"PS256":case"PS384":case"PS512":r={name:"RSA-PSS",hash:`SHA-${e.slice(-3)}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:rc(t)},n=["sign","verify"];break;case"RS256":case"RS384":case"RS512":r={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.slice(-3)}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:rc(t)},n=["sign","verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":r={name:"RSA-OAEP",hash:`SHA-${parseInt(e.slice(-3),10)||1}`,publicExponent:new Uint8Array([1,0,1]),modulusLength:rc(t)},n=["decrypt","unwrapKey","encrypt","wrapKey"];break;case"ES256":r={name:"ECDSA",namedCurve:"P-256"},n=["sign","verify"];break;case"ES384":r={name:"ECDSA",namedCurve:"P-384"},n=["sign","verify"];break;case"ES512":r={name:"ECDSA",namedCurve:"P-521"},n=["sign","verify"];break;case"Ed25519":r={name:"Ed25519"},n=["sign","verify"];break;case"EdDSA":{n=["sign","verify"];let e=t?.crv??"Ed25519";switch(e){case"Ed25519":case"Ed448":r={name:e};break;default:throw new P("Invalid or unsupported crv option provided")}break}case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":{n=["deriveKey","deriveBits"];let e=t?.crv??"P-256";switch(e){case"P-256":case"P-384":case"P-521":r={name:"ECDH",namedCurve:e};break;case"X25519":case"X448":r={name:e};break;default:throw new P("Invalid or unsupported crv option provided, supported values are P-256, P-384, P-521, X25519, and X448")}break}default:throw new P('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}return u.subtle.generateKey(r,t?.extractable??!1,n)}async function rd(e,t){return rl(e,t)}async function rf(e,t){return ru(e,t)}let rh="WebCryptoAPI"},55640:(e,t,r)=>{let{SequenceMatcher:n}=r(98720),{extendedTypeOf:i,roundObj:o}=r(69168),{colorize:a,colorizeToCallback:s}=r(47183);class u{constructor(e){e.outputKeys=e.outputKeys||[],e.excludeKeys=e.excludeKeys||[],this.options=e}isScalar(e){return"object"!=typeof e||null===e}objectDiff(e,t){let r={},n=0,i=!0;for(let[o,a]of Object.entries(e))if(!this.options.outputNewOnly){let e="__deleted";o in t||this.options.excludeKeys.includes(o)||(r[`${o}${e}`]=a,n-=30,i=!1)}for(let[o,a]of Object.entries(t)){let t=this.options.outputNewOnly?"":"__added";o in e||this.options.excludeKeys.includes(o)||(r[`${o}${t}`]=a,n-=30,i=!1)}for(let[o,a]of Object.entries(e))if(o in t){if(this.options.excludeKeys.includes(o))continue;n+=20;let e=t[o],s=this.diff(a,e);s.equal?(this.options.full||this.options.outputKeys.includes(o))&&(r[o]=a):(r[o]=s.result,i=!1),n+=Math.min(20,Math.max(-10,s.score/5))}return i?(n=100*Math.max(Object.keys(e).length,.5),this.options.full||(r=void 0)):n=Math.max(0,n),{score:n,result:r,equal:i}}findMatchingObject(e,t,r){let n=null;for(let[o,{item:a,index:s}]of Object.entries(r))if("__next"!==o){let r=Math.abs(s-t);if(i(e)===i(a)){let{score:t}=this.diff(e,a);(!n||t>n.score||t===n.score&&rt[o.key].score)&&(t[o.key]={score:o.score,index:n})}for(let[e,r]of Object.entries(t))n[r.index]=e}let i=[];for(let r=0;rm;p?s++:s--){let e=i[s];if(this.isScalarized(e,r)){if(!this.isScalarized(e,o))throw Error(`internal bug: isScalarized(item, originals1) != isScalarized(item, originals2) for item ${JSON.stringify(e)}`);let t=this.descalarize(e,r),n=this.descalarize(e,o),i=this.diff(t,n);i.equal?this.options.full||this.options.keepUnchangedValues?u.push([" ",t]):u.push([" "]):(u.push(["~",i.result]),l=!1)}else this.options.full||this.options.keepUnchangedValues?u.push([" ",e]):u.push([" "]);c+=10}break;case"delete":for(s=t,g=t<=(y=n);g?sy;g?s++:s--)u.push(["-",this.descalarize(i[s],r)]),c-=5;break;case"insert":for(h=d,b=d<=(v=f);b?hv;b?h++:h--)u.push(["+",this.descalarize(a[h],o)]),c-=5;break;case"replace":if(this.options.keysOnly){let e,c;for(s=t,e=t<=(c=n);e?sc;e?s++:s--){let e=this.diff(this.descalarize(i[s],r),this.descalarize(a[s-t+d],o));e.equal?u.push([" "]):(u.push(["~",e.result]),l=!1)}}else{let e,l,p,m;for(s=t,e=t<=(l=n);e?sl;e?s++:s--)u.push(["-",this.descalarize(i[s],r)]),c-=5;for(h=d,p=d<=(m=f);p?hm;p?h++:h--)u.push(["+",this.descalarize(a[h],o)]),c-=5}}}return l||0===s.length?(u=this.options.full?e:void 0,c=100):c=Math.max(0,c),{score:c,result:u,equal:l}}diff(e,t){let r;let n=i(e),o=i(t);if(n===o)switch(n){case"object":return this.objectDiff(e,t);case"array":return this.arrayDiff(e,t)}let a=100,s=e;return this.options.keysOnly?(r=!0,s=void 0):(r="date"===n&&"date"===o?e.getTime()===t.getTime():e===t)?this.options.full||(s=void 0):(a=0,s=this.options.outputNewOnly?t:{__old:e,__new:t}),{score:a,result:s,equal:r}}}function c(e,t,r={}){return void 0!==r.precision&&(e=o(e,r.precision),t=o(t,r.precision)),new u(r).diff(e,t).result}function l(e,t,r={}){return a(c(e,t,r),r)}e.exports={diff:c,diffString:l,colorize:a,colorizeToCallback:s}},56292:e=>{var t=1/0,r=0x1fffffffffffff,n=17976931348623157e292,i=0/0,o="[object Arguments]",a="[object Function]",s="[object GeneratorFunction]",u="[object String]",c="[object Symbol]",l=/^\s+|\s+$/g,d=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,h=/^0o[0-7]+$/i,p=/^(?:0|[1-9]\d*)$/,m=parseInt;function g(e,t){for(var r=-1,n=e?e.length:0,i=Array(n);++r-1&&e%1==0&&e-1:!!i&&b(e,t,r)>-1}function j(e){return N(e)&&A.call(e,"callee")&&(!E.call(e,"callee")||k.call(e)==o)}var D=Array.isArray;function L(e){return null!=e&&U(e.length)&&!B(e)}function N(e){return W(e)&&L(e)}function B(e){var t=F(e)?k.call(e):"";return t==a||t==s}function U(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function F(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function W(e){return!!e&&"object"==typeof e}function H(e){return"string"==typeof e||!D(e)&&W(e)&&k.call(e)==u}function q(e){return"symbol"==typeof e||W(e)&&k.call(e)==c}function G(e){return e?(e=z(e))===t||e===-t?(e<0?-1:1)*n:e==e?e:0:0===e?e:0}function K(e){var t=G(e),r=t%1;return t==t?r?t-r:t:0}function z(e){if("number"==typeof e)return e;if(q(e))return i;if(F(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=F(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(l,"");var r=f.test(e);return r||h.test(e)?m(e.slice(2),r?2:8):d.test(e)?i:+e}function $(e){return L(e)?P(e):I(e)}function J(e){return e?S(e,$(e)):[]}e.exports=R},56321:(e,t,r)=>{"use strict";function n(e){return function(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=n.width,s=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],u=t.match(s);if(!u)return null;var c=u[0],l=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(l)?o(l,function(e){return e.test(c)}):i(l,function(e){return e.test(c)});return r=e.valueCallback?e.valueCallback(d):d,{value:r=n.valueCallback?n.valueCallback(r):r,rest:t.slice(c.length)}}}function i(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function o(e,t){for(var r=0;rn})},57599:e=>{"use strict";e.exports=Function.prototype.call},57644:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},57928:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});let n=(e=>{let t=new Map;return function(){for(var r=arguments.length,n=Array(r),i=0;ie&&"string"==typeof e?Math.max(Math.round(1.33*e.split(" ").length),Math.round(e.length/4)):0)},58033:(e,t,r)=>{let n=r(78968),i=(e,t,r)=>0>n(e,t,r);e.exports=i},58488:(e,t,r)=>{let n=r(78968),i=(e,t,r)=>n(t,e,r);e.exports=i},59277:function(e,t,r){var n;!function(i,o){"use strict";var a="1.0.40",s="",u="?",c="function",l="undefined",d="object",f="string",h="major",p="model",m="name",g="type",y="vendor",b="version",v="architecture",w="console",S="mobile",_="tablet",x="smarttv",A="wearable",k="embedded",E=500,M="Amazon",T="Apple",P="ASUS",I="BlackBerry",C="Browser",O="Chrome",R="Firefox",j="Google",D="Huawei",L="LG",N="Microsoft",B="Motorola",U="Opera",F="Samsung",W="Sharp",H="Sony",q="Xiaomi",G="Zebra",K="Facebook",z="Chromium OS",$="Mac OS",J=" Browser",Y=function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r},V=function(e){for(var t={},r=0;r0?2===a.length?typeof a[1]==c?this[a[0]]=a[1].call(this,u):this[a[0]]=a[1]:3===a.length?typeof a[1]!==c||a[1].exec&&a[1].test?this[a[0]]=u?u.replace(a[1],a[2]):void 0:this[a[0]]=u?a[1].call(this,u,a[2]):o:4===a.length&&(this[a[0]]=u?a[3].call(this,u.replace(a[1],a[2])):o):this[a]=u||o;l+=2}},er=function(e,t){for(var r in t)if(typeof t[r]===d&&t[r].length>0){for(var n=0;n2&&(e[p]="iPad",e[g]=_),e},this.getEngine=function(){var e={};return e[m]=o,e[b]=o,et.call(e,n,u.engine),e},this.getOS=function(){var e={};return e[m]=o,e[b]=o,et.call(e,n,u.os),w&&!e[m]&&a&&a.platform&&"Unknown"!=a.platform&&(e[m]=a.platform.replace(/chrome os/i,z).replace(/macos/i,$)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=typeof e===f&&e.length>E?ee(e,E):e,this},this.setUA(n),this};eo.VERSION=a,eo.BROWSER=V([m,b,h]),eo.CPU=V([v]),eo.DEVICE=V([p,y,g,w,S,x,_,A,k]),eo.ENGINE=eo.OS=V([m,b]),typeof t!==l?("object"!==l&&e.exports&&(t=e.exports=eo),t.UAParser=eo):"function"===c&&r.amdO?o!==(n=(function(){return eo}).call(t,r,t,e))&&(e.exports=n):typeof i!==l&&(i.UAParser=eo);var ea=typeof i!==l&&(i.jQuery||i.Zepto);if(ea&&!ea.ua){var es=new eo;ea.ua=es.getResult(),ea.ua.get=function(){return es.getUA()},ea.ua.set=function(e){es.setUA(e);var t=es.getResult();for(var r in t)ea.ua[r]=t[r]}}}("object"==typeof window?window:this)},59683:e=>{"use strict";e.exports=Math.floor},60013:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(64923),i=r(24607);function o(e){(0,i.A)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,n.A)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):(("string"==typeof e||"[object String]"===t)&&"undefined"!=typeof console&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(Error().stack)),new Date(NaN))}},60230:(e,t,r)=>{let n=r(22626),i=(e,t)=>new n(e,t).major;e.exports=i},60637:(e,t,r)=>{var n=r(50776);e.exports=n},60697:(e,t,r)=>{let n=r(22626),i=r(20810),{ANY:o}=i,a=r(83715),s=r(91170),u=r(32742),c=r(58033),l=r(33712),d=r(1309),f=(e,t,r,f)=>{let h,p,m,g,y;switch(e=new n(e,f),t=new a(t,f),r){case">":h=u,p=l,m=c,g=">",y=">=";break;case"<":h=c,p=d,m=u,g="<",y="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,f))return!1;for(let r=0;r{e.semver===o&&(e=new i(">=0.0.0")),a=a||e,s=s||e,h(e.semver,a.semver,f)?a=e:m(e.semver,s.semver,f)&&(s=e)}),a.operator===g||a.operator===y||(!s.operator||s.operator===g)&&p(e,s.semver)||s.operator===y&&m(e,s.semver))return!1}return!0};e.exports=f},60962:(e,t,r)=>{let n=r(22626),i=r(83715),o=(e,t,r)=>{let o=null,a=null,s=null;try{s=new i(t,r)}catch(e){return null}return e.forEach(e=>{s.test(e)&&(!o||1===a.compare(e))&&(a=new n(o=e,r))}),o};e.exports=o},61212:e=>{e.exports=function(e){return function(t,r,n){if(" "===t)return t;switch(r%3){case 0:return e.red(t);case 1:return e.white(t);case 2:return e.blue(t)}}}},61271:(e,t,r)=>{"use strict";var n,i=r(27604),o=r(45125),a=r(51569),s=r(78508),u=r(2340),c=r(66380),l=r(64215),d=r(19543),f=r(31553),h=r(59683),p=r(12239),m=r(88221),g=r(38507),y=r(32641),b=r(1586),v=Function,w=function(e){try{return v('"use strict"; return ('+e+").constructor;")()}catch(e){}},S=r(9278),_=r(97783),x=function(){throw new l},A=S?function(){try{return arguments.callee,x}catch(e){try{return S(arguments,"callee").get}catch(e){return x}}}():x,k=r(2427)(),E=r(28265),M=r(10701),T=r(6333),P=r(50721),I=r(57599),C={},O="undefined"!=typeof Uint8Array&&E?E(Uint8Array):n,R={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":k&&E?E([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":C,"%AsyncGenerator%":C,"%AsyncGeneratorFunction%":C,"%AsyncIteratorPrototype%":C,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":C,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":k&&E?E(E([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&k&&E?E(new Map()[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":S,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":s,"%ReferenceError%":u,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&k&&E?E(new Set()[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":k&&E?E(""[Symbol.iterator]()):n,"%Symbol%":k?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":A,"%TypedArray%":O,"%TypeError%":l,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":d,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":I,"%Function.prototype.apply%":P,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":M,"%Math.abs%":f,"%Math.floor%":h,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":g,"%Math.round%":y,"%Math.sign%":b,"%Reflect.getPrototypeOf%":T};if(E)try{null.error}catch(e){var j=E(E(e));R["%Error.prototype%"]=j}var D=function e(t){var r;if("%AsyncFunction%"===t)r=w("async function () {}");else if("%GeneratorFunction%"===t)r=w("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=w("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&E&&(r=E(i.prototype))}return R[t]=r,r},L={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},N=r(8241),B=r(11351),U=N.call(I,Array.prototype.concat),F=N.call(P,Array.prototype.splice),W=N.call(I,String.prototype.replace),H=N.call(I,String.prototype.slice),q=N.call(I,RegExp.prototype.exec),G=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,K=/\\(\\)?/g,z=function(e){var t=H(e,0,1),r=H(e,-1);if("%"===t&&"%"!==r)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var n=[];return W(e,G,function(e,t,r,i){n[n.length]=r?W(i,K,"$1"):t||e}),n},$=function(e,t){var r,n=e;if(B(L,n)&&(n="%"+(r=L[n])[0]+"%"),B(R,n)){var i=R[n];if(i===C&&(i=D(n)),void 0===i&&!t)throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===q(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=z(e),n=r.length>0?r[0]:"",i=$("%"+n+"%",t),o=i.name,a=i.value,s=!1,u=i.alias;u&&(n=u[0],F(r,U([0,1],u)));for(var d=1,f=!0;d=r.length){var g=S(a,h);a=(f=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:a[h]}else f=B(a,h),a=a[h];f&&!s&&(R[o]=a)}}return a}},61293:e=>{"use strict";var t="Function.prototype.bind called on incompatible ",r=Object.prototype.toString,n=Math.max,i="[object Function]",o=function(e,t){for(var r=[],n=0;n{"use strict";var n=r(8241),i=r(50721),o=r(57599),a=r(21316);e.exports=a||n.call(o,i)},62062:e=>{var t="[object String]",r=Object.prototype.toString,n=Array.isArray;function i(e){return!!e&&"object"==typeof e}function o(e){return"string"==typeof e||!n(e)&&i(e)&&r.call(e)==t}e.exports=o},62064:(e,t,r)=>{"use strict";r.d(t,{K:()=>a});var n=r(44109),i=r(30362),o=r(79983);let a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],[t,r]=(0,n.useState)(e),[a,s]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let e=async()=>{let e=Object.fromEntries(o.map(e=>[e.uuid,e])),t=await (0,i.Mi)().get("TM_useInstalledPlugins");r((null==t?void 0:t.map(t=>e[t.sourceUUID||t.uuid]?{...t,...e[t.sourceUUID||t.uuid],uuid:t.uuid}:t))||[]),s(!0)};return e(),window.addEventListener("update-user-installed-plugins",e),()=>{window.removeEventListener("update-user-installed-plugins",e)}},[]),[t,(0,n.useCallback)(async e=>{let t=await (0,i.Mi)().get("TM_useInstalledPlugins")||[],n="function"==typeof e?e(t):e;r(n),await (0,i.Mi)().set("TM_useInstalledPlugins",n);{let e=new Event("update-user-installed-plugins");window.dispatchEvent(e)}},[]),a]}},62492:e=>{e.exports={STRING:2,BOOLEAN:4,BYTES:4,NUMBER:8,Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8}},63122:(e,t,r)=>{"use strict";r.d(t,{Cp:()=>Y});let n="9.5.0",i=globalThis;function o(){return a(i),i}function a(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||n,t[n]=t[n]||{}}function s(e,t,r=i){let o=r.__SENTRY__=r.__SENTRY__||{},a=o[n]=o[n]||{};return a[e]||(a[e]=t())}let u=1e3;function c(){return Date.now()/u}let l=function(){let{performance:e}=i;if(!e?.now)return c;let t=Date.now()-e.now(),r=void 0==e.timeOrigin?t:e.timeOrigin;return()=>(r+e.now())/u}();function d(){let e=i;return e.crypto||e.msCrypto}function f(e=d()){let t=()=>16*Math.random();try{if(e?.randomUUID)return e.randomUUID().replace(/-/g,"");e?.getRandomValues&&(t=()=>{let t=new Uint8Array(1);return e.getRandomValues(t),t[0]})}catch(e){}return"10000000100040008000100000000000".replace(/[018]/g,e=>(e^(15&t())>>e/4).toString(16))}function h(e,t={}){if(!t.user||(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||l(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:f()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{let t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}let p=Object.prototype.toString;function m(e,t){return p.call(e)===`[object ${t}]`}function g(e){return m(e,"Object")}function y(e){return!!(e?.then&&"function"==typeof e.then)}let b="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,v="Sentry Logger ",w=["debug","info","warn","error","log","assert","trace"],S={};function _(e){if(!("console"in i))return e();let t=i.console,r={},n=Object.keys(S);n.forEach(e=>{let n=S[e];r[e]=t[e],t[e]=n});try{return e()}finally{n.forEach(e=>{t[e]=r[e]})}}let x=s("logger",function(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return b?w.forEach(r=>{t[r]=(...t)=>{e&&_(()=>{i.console[r](`${v}[${r}]:`,...t)})}}):w.forEach(e=>{t[e]=()=>void 0}),t});function A(){return f()}function k(e,t,r=2){if(!t||"object"!=typeof t||r<=0)return t;if(e&&0===Object.keys(t).length)return e;let n={...e};for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=k(n[e],t[e],r-1));return n}function E(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch(r){b&&x.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function M(e){try{return isElement(e)?htmlTreeAsString(e):Object.prototype.toString.call(e)}catch(e){return""}}function T(e){if("object"!=typeof e||null===e)return{};{let t={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}}function P(e){if(!isPlainObject(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch{return!0}}let I="_sentrySpan";function C(e,t){t?E(e,I,t):delete e[I]}function O(e){return e[I]}let R=100;class j{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:A(),sampleRand:Math.random()}}clone(){let e=new j;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,C(e,O(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&h(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let t="function"==typeof e?e(this):e,{tags:r,extra:n,user:i,contexts:o,level:a,fingerprint:s=[],propagationContext:u}=(t instanceof j?t.getScopeData():g(t)?e:void 0)||{};return this._tags={...this._tags,...r},this._extra={...this._extra,...n},this._contexts={...this._contexts,...o},i&&Object.keys(i).length&&(this._user=i),a&&(this._level=a),s.length&&(this._fingerprint=s),u&&(this._propagationContext=u),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,C(this,void 0),this._attachments=[],this.setPropagationContext({traceId:A(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){let r="number"==typeof t?t:R;if(r<=0)return this;let n={timestamp:c(),...e};return this._breadcrumbs.push(n),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:O(this)}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=k(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){let r=t?.event_id||f();if(!this._client)return x.warn("No client configured on scope - will not capture exception!"),r;let n=Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:n,...t,event_id:r},this),r}captureMessage(e,t,r){let n=r?.event_id||f();if(!this._client)return x.warn("No client configured on scope - will not capture message!"),n;let i=Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:i,...r,event_id:n},this),n}captureEvent(e,t){let r=t?.event_id||f();return this._client?this._client.captureEvent(e,{...t,event_id:r},this):x.warn("No client configured on scope - will not capture event!"),r}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}function D(){return s("defaultCurrentScope",()=>new j)}function L(){return s("defaultIsolationScope",()=>new j)}class N{constructor(e,t){let r,n;r=e||new j,n=t||new j,this._stack=[{scope:r}],this._isolationScope=n}withScope(e){let t;let r=this._pushScope();try{t=e(r)}catch(e){throw this._popScope(),e}return y(t)?t.then(e=>(this._popScope(),e),e=>{throw this._popScope(),e}):(this._popScope(),t)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return!(this._stack.length<=1)&&!!this._stack.pop()}}function B(){let e=a(o());return e.stack=e.stack||new N(D(),L())}function U(e){return B().withScope(e)}function F(e,t){let r=B();return r.withScope(()=>(r.getStackTop().scope=e,t(e)))}function W(e){return B().withScope(()=>e(B().getIsolationScope()))}function H(){return{withIsolationScope:W,withScope:U,withSetScope:F,withSetIsolationScope:(e,t)=>W(t),getCurrentScope:()=>B().getScope(),getIsolationScope:()=>B().getIsolationScope()}}function q(e){let t=a(e);return t.acs?t.acs:H()}function G(){return q(o()).getCurrentScope()}function K(e){return e?z(e)||J(e)?{captureContext:e}:e:void 0}function z(e){return e instanceof j||"function"==typeof e}let $=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function J(e){return Object.keys(e).some(e=>$.includes(e))}function Y(e,t){return G().captureException(e,K(t))}function V(){let e=getIsolationScope(),t=getClient(),r=e.getSession();r&&t&&t.captureSession(r)}},63293:(e,t,r)=>{let n=r(22626),i=(e,t)=>new n(e,t).patch;e.exports=i},64215:e=>{"use strict";e.exports=TypeError},64774:e=>{e.exports=function(e){var t=["red","yellow","green","blue","magenta"];return function(r,n,i){return" "===r?r:e[t[n++%t.length]](r)}}},64923:(e,t,r)=>{"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}r.d(t,{A:()=>n})},65592:(e,t,r)=>{var n=r(2549).Buffer,i=r(29979),o=r(31759),a=r(66856),s=r(26512),u=r(65723),c=/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/;function l(e){return"[object Object]"===Object.prototype.toString.call(e)}function d(e){if(l(e))return e;try{return JSON.parse(e)}catch(e){return}}function f(e){var t=e.split(".",1)[0];return d(n.from(t,"base64").toString("binary"))}function h(e){return e.split(".",2).join(".")}function p(e){return e.split(".")[2]}function m(e,t){t=t||"utf8";var r=e.split(".")[1];return n.from(r,"base64").toString(t)}function g(e){return c.test(e)&&!!f(e)}function y(e,t,r){if(!t){var n=Error("Missing algorithm parameter for jws.verify");throw n.code="MISSING_ALGORITHM",n}var i=p(e=s(e)),a=h(e);return o(t).verify(a,i,r)}function b(e,t){if(t=t||{},!g(e=s(e)))return null;var r=f(e);if(!r)return null;var n=m(e);return("JWT"===r.typ||t.json)&&(n=JSON.parse(n,t.encoding)),{header:r,payload:n,signature:p(e)}}function v(e){var t=new i((e=e||{}).secret||e.publicKey||e.key);this.readable=!0,this.algorithm=e.algorithm,this.encoding=e.encoding,this.secret=this.publicKey=this.key=t,this.signature=new i(e.signature),this.secret.once("close",(function(){!this.signature.writable&&this.readable&&this.verify()}).bind(this)),this.signature.once("close",(function(){!this.secret.writable&&this.readable&&this.verify()}).bind(this))}u.inherits(v,a),v.prototype.verify=function(){try{var e=y(this.signature.buffer,this.algorithm,this.key.buffer),t=b(this.signature.buffer,this.encoding);return this.emit("done",e,t),this.emit("data",e),this.emit("end"),this.readable=!1,e}catch(e){this.readable=!1,this.emit("error",e),this.emit("close")}},v.decode=b,v.isValid=g,v.verify=y,e.exports=v},65723:(e,t,r)=>{var n="/",i=r(72076).Buffer,o=r(2272);!function(){var t={992:function(e){e.exports=function(e,r,n){if(e.filter)return e.filter(r,n);if(null==e||"function"!=typeof r)throw TypeError();for(var i=[],o=0;o-1?i(r):r}},139:function(e,t,r){"use strict";var n=r(212),i=r(192),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||n.call(a,o),u=i("%Object.getOwnPropertyDescriptor%",!0),c=i("%Object.defineProperty%",!0),l=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){var t=s(n,a,arguments);return u&&c&&u(t,"length").configurable&&c(t,"length",{value:1+l(0,e.length-(arguments.length-1))}),t};var d=function(){return s(n,o,arguments)};c?c(e.exports,"apply",{value:d}):e.exports.apply=d},181:function(e){"use strict";e.exports=EvalError},545:function(e){"use strict";e.exports=Error},22:function(e){"use strict";e.exports=RangeError},803:function(e){"use strict";e.exports=ReferenceError},182:function(e){"use strict";e.exports=SyntaxError},202:function(e){"use strict";e.exports=TypeError},284:function(e){"use strict";e.exports=URIError},144:function(e){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;e.exports=function(e,n,i){if("[object Function]"!==r.call(n))throw TypeError("iterator must be a function");var o=e.length;if(o===+o)for(var a=0;a1&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===C(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=j(e),n=r.length>0?r[0]:"",i=D("%"+n+"%",t),o=i.name,a=i.value,s=!1,l=i.alias;l&&(n=l[0],T(r,M([0,1],l)));for(var d=1,f=!0;d=r.length){var y=h(a,p);a=(f=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[p]}else f=E(a,p),a=a[p];f&&!s&&(S[o]=a)}}return a}},14:function(e){"use strict";var t={__proto__:null,foo:{}},r=Object;e.exports=function(){return({__proto__:t}).foo===t.foo&&!(t instanceof r)}},942:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(773);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},773:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(t in e[t]=n,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==n||!0!==o.enumerable)return!1}return!0}},115:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(832);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},832:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(t in e[t]=n,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==n||!0!==o.enumerable)return!1}return!0}},270:function(e,t,r){"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=r(212);e.exports=o.call(n,i)},782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},157:function(e){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,r=Object.prototype.toString,n=function(e){return(!t||!e||"object"!=typeof e||!(Symbol.toStringTag in e))&&"[object Arguments]"===r.call(e)},i=function(e){return!!n(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==r.call(e)&&"[object Function]"===r.call(e.callee)},o=function(){return n(arguments)}();n.isLegacyArguments=i,e.exports=o?n:i},391:function(e){"use strict";var t=Object.prototype.toString,r=Function.prototype.toString,n=/^\s*(?:function)?\*/,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,o=Object.getPrototypeOf,a=function(){if(!i)return!1;try{return Function("return function*() {}")()}catch(e){}}(),s=a?o(a):{};e.exports=function(e){return"function"==typeof e&&(!!n.test(r.call(e))||(i?o(e)===s:"[object GeneratorFunction]"===t.call(e)))}},994:function(e,t,n){"use strict";var i=n(144),o=n(349),a=n(256),s=a("Object.prototype.toString"),u=n(942)()&&"symbol"==typeof Symbol.toStringTag,c=o(),l=a("Array.prototype.indexOf",!0)||function(e,t){for(var r=0;r-1)}},369:function(e){e.exports=function(e){return e instanceof i}},584:function(e,t,r){"use strict";var n=r(157),i=r(391),o=r(490),a=r(994);function s(e){return e.call.bind(e)}var u="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,l=s(Object.prototype.toString),d=s(Number.prototype.valueOf),f=s(String.prototype.valueOf),h=s(Boolean.prototype.valueOf);if(u)var p=s(BigInt.prototype.valueOf);if(c)var m=s(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function y(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch}function b(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||W(e)}function v(e){return"Uint8Array"===o(e)}function w(e){return"Uint8ClampedArray"===o(e)}function S(e){return"Uint16Array"===o(e)}function _(e){return"Uint32Array"===o(e)}function x(e){return"Int8Array"===o(e)}function A(e){return"Int16Array"===o(e)}function k(e){return"Int32Array"===o(e)}function E(e){return"Float32Array"===o(e)}function M(e){return"Float64Array"===o(e)}function T(e){return"BigInt64Array"===o(e)}function P(e){return"BigUint64Array"===o(e)}function I(e){return"[object Map]"===l(e)}function C(e){return"undefined"!=typeof Map&&(I.working?I(e):e instanceof Map)}function O(e){return"[object Set]"===l(e)}function R(e){return"undefined"!=typeof Set&&(O.working?O(e):e instanceof Set)}function j(e){return"[object WeakMap]"===l(e)}function D(e){return"undefined"!=typeof WeakMap&&(j.working?j(e):e instanceof WeakMap)}function L(e){return"[object WeakSet]"===l(e)}function N(e){return L(e)}function B(e){return"[object ArrayBuffer]"===l(e)}function U(e){return"undefined"!=typeof ArrayBuffer&&(B.working?B(e):e instanceof ArrayBuffer)}function F(e){return"[object DataView]"===l(e)}function W(e){return"undefined"!=typeof DataView&&(F.working?F(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=y,t.isArrayBufferView=b,t.isUint8Array=v,t.isUint8ClampedArray=w,t.isUint16Array=S,t.isUint32Array=_,t.isInt8Array=x,t.isInt16Array=A,t.isInt32Array=k,t.isFloat32Array=E,t.isFloat64Array=M,t.isBigInt64Array=T,t.isBigUint64Array=P,I.working="undefined"!=typeof Map&&I(new Map),t.isMap=C,O.working="undefined"!=typeof Set&&O(new Set),t.isSet=R,j.working="undefined"!=typeof WeakMap&&j(new WeakMap),t.isWeakMap=D,L.working="undefined"!=typeof WeakSet&&L(new WeakSet),t.isWeakSet=N,B.working="undefined"!=typeof ArrayBuffer&&B(new ArrayBuffer),t.isArrayBuffer=U,F.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&F(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=W;var H="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function q(e){return"[object SharedArrayBuffer]"===l(e)}function G(e){return void 0!==H&&(void 0===q.working&&(q.working=q(new H)),q.working?q(e):e instanceof H)}function K(e){return"[object AsyncFunction]"===l(e)}function z(e){return"[object Map Iterator]"===l(e)}function $(e){return"[object Set Iterator]"===l(e)}function J(e){return"[object Generator]"===l(e)}function Y(e){return"[object WebAssembly.Module]"===l(e)}function V(e){return g(e,d)}function X(e){return g(e,f)}function Z(e){return g(e,h)}function Q(e){return u&&g(e,p)}function ee(e){return c&&g(e,m)}function et(e){return V(e)||X(e)||Z(e)||Q(e)||ee(e)}function er(e){return"undefined"!=typeof Uint8Array&&(U(e)||G(e))}t.isSharedArrayBuffer=G,t.isAsyncFunction=K,t.isMapIterator=z,t.isSetIterator=$,t.isGeneratorObject=J,t.isWebAssemblyCompiledModule=Y,t.isNumberObject=V,t.isStringObject=X,t.isBooleanObject=Z,t.isBigIntObject=Q,t.isSymbolObject=ee,t.isBoxedPrimitive=et,t.isAnyArrayBuffer=er,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw Error(e+" is not supported in userland")}})})},177:function(e,t,r){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),s=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),w(r)?n.showHidden=r:r&&t._extend(n,r),E(n.showHidden)&&(n.showHidden=!1),E(n.depth)&&(n.depth=2),E(n.colors)&&(n.colors=!1),E(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),h(n,e,n.depth)}function l(e,t){var r=c.styles[t];return r?"\x1b["+c.colors[r][0]+"m"+e+"\x1b["+c.colors[r][1]+"m":e}function d(e,t){return e}function f(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function h(e,r,n){if(e.customInspect&&r&&C(r.inspect)&&r.inspect!==t.inspect&&!(r.constructor&&r.constructor.prototype===r)){var i,o=r.inspect(n,e);return A(o)||(o=h(e,o,n)),o}var a=p(e,r);if(a)return a;var s=Object.keys(r),u=f(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),I(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return m(r);if(0===s.length){if(C(r)){var c=r.name?": "+r.name:"";return e.stylize("[Function"+c+"]","special")}if(M(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(P(r))return e.stylize(Date.prototype.toString.call(r),"date");if(I(r))return m(r)}var l="",d=!1,w=["{","}"];return(v(r)&&(d=!0,w=["[","]"]),C(r)&&(l=" [Function"+(r.name?": "+r.name:"")+"]"),M(r)&&(l=" "+RegExp.prototype.toString.call(r)),P(r)&&(l=" "+Date.prototype.toUTCString.call(r)),I(r)&&(l=" "+m(r)),0!==s.length||d&&0!=r.length)?n<0?M(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),i=d?g(e,r,n,u,s):s.map(function(t){return y(e,r,n,u,t,d)}),e.seen.pop(),b(i,l,w)):w[0]+l+w[1]}function p(e,t){if(E(t))return e.stylize("undefined","undefined");if(A(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return x(t)?e.stylize(""+t,"number"):w(t)?e.stylize(""+t,"boolean"):S(t)?e.stylize("null","null"):void 0}function m(e){return"["+Error.prototype.toString.call(e)+"]"}function g(e,t,r,n,i){for(var o=[],a=0,s=t.length;ae.seen.indexOf(u.value)?(s=S(r)?h(e,u.value,null):h(e,u.value,r-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),E(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function b(e,t,r){var n=0;return e.reduce(function(e,t){return n++,t.indexOf("\n")>=0&&n++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function v(e){return Array.isArray(e)}function w(e){return"boolean"==typeof e}function S(e){return null===e}function _(e){return null==e}function x(e){return"number"==typeof e}function A(e){return"string"==typeof e}function k(e){return"symbol"==typeof e}function E(e){return void 0===e}function M(e){return T(e)&&"[object RegExp]"===R(e)}function T(e){return"object"==typeof e&&null!==e}function P(e){return T(e)&&"[object Date]"===R(e)}function I(e){return T(e)&&("[object Error]"===R(e)||e instanceof Error)}function C(e){return"function"==typeof e}function O(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function R(e){return Object.prototype.toString.call(e)}function j(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(!a[e=e.toUpperCase()]){if(s.test(e)){var r=o.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){}}return a[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(584),t.isArray=v,t.isBoolean=w,t.isNull=S,t.isNullOrUndefined=_,t.isNumber=x,t.isString=A,t.isSymbol=k,t.isUndefined=E,t.isRegExp=M,t.types.isRegExp=M,t.isObject=T,t.isDate=P,t.types.isDate=P,t.isError=I,t.types.isNativeError=I,t.isFunction=C,t.isPrimitive=O,t.isBuffer=r(369);var D=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function L(){var e=new Date,t=[j(e.getHours()),j(e.getMinutes()),j(e.getSeconds())].join(":");return[e.getDate(),D[e.getMonth()],t].join(" ")}function N(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",L(),t.format.apply(t,arguments))},t.inherits=r(782),t._extend=function(e,t){if(!t||!T(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var B="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function U(e,t){if(!e){var r=Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}function F(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');function t(){for(var t=[],r=0;r{var n=r(14804),i=r(65592),o=["HS256","HS384","HS512","RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"];t.ALGORITHMS=o,t.sign=n.sign,t.verify=i.verify,t.decode=i.decode,t.isValid=i.isValid,t.createSign=function(e){return new n(e)},t.createVerify=function(e){return new i(e)}},66380:e=>{"use strict";e.exports=SyntaxError},66856:(e,t,r)=>{var n="/",i=r(2272);!function(){var t={782:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},646:function(e){"use strict";let t={};function r(e,r,n){function i(e,t,n){return"string"==typeof r?r:r(e,t,n)}n||(n=Error);class o extends n{constructor(e,t,r){super(i(e,t,r))}}o.prototype.name=n.name,o.prototype.code=e,t[e]=o}function n(e,t){if(!Array.isArray(e))return`of ${t} ${String(e)}`;{let r=e.length;return(e=e.map(e=>String(e)),r>2)?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:2===r?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}}function i(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function o(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function a(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}r("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(e,t,r){let s,u;if("string"==typeof t&&i(t,"not ")?(s="must not be",t=t.replace(/^not /,"")):s="must be",o(e," argument"))u=`The ${e} ${s} ${n(t,"type")}`;else{let r=a(e,".")?"property":"argument";u=`The "${e}" ${r} ${s} ${n(t,"type")}`}return u+`. Received type ${typeof r}`},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},403:function(e,t,r){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var o=r(709),a=r(337);r(782)(l,o);for(var s=n(a.prototype),u=0;u0){if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===f.prototype||(t=p(t)),n)s.endEmitted?k(e,new A):C(e,s,t,!0);else if(s.ended)k(e,new _);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?C(e,s,t,!1):U(e,s)):C(e,s,t,!1)}}else n||(s.reading=!1,U(e,s));return!s.ended&&(s.length=R?e=R:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function D(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=j(e)),e<=t.length)?e:t.ended?t.length:(t.needReadable=!0,0)}function L(e,t){if(a("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?N(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,B(e)))}}function N(e){var t=e._readableState;a("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(a("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(B,e))}function B(e){var t=e._readableState;a("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,z(e)}function U(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(F,e,t))}function F(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function q(e){a("readable nexttick read 0"),e.read(0)}function G(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(K,e,t))}function K(e,t){a("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),z(e),t.flowing&&!t.reading&&e.read(0)}function z(e){var t=e._readableState;for(a("flow",t.flowing);t.flowing&&null!==e.read(););}function $(e,t){var r;return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r)}function J(e){var t=e._readableState;a("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(Y,t,e))}function Y(e,t){if(a("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function V(e,t){for(var r=0,n=e.length;r=r.highWaterMark:r.length>0)||r.ended))return a("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?J(this):N(this),null;if(0===(e=D(e,r))&&r.ended)return 0===r.length&&J(this),null;var i=r.needReadable;return a("need readable",i),(0===r.length||r.length-e0?$(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&J(this)),null!==t&&this.emit("data",t),t},P.prototype._read=function(e){k(this,new x("_read()"))},P.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,a("pipe count=%d opts=%j",n.pipesCount,t);var o=t&&!1===t.end||e===i.stdout||e===i.stderr?y:u;function s(e,t){a("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,f())}function u(){a("onend"),e.end()}n.endEmitted?i.nextTick(o):r.once("end",o),e.on("unpipe",s);var c=W(r);e.on("drain",c);var d=!1;function f(){a("cleanup"),e.removeListener("close",m),e.removeListener("finish",g),e.removeListener("drain",c),e.removeListener("error",p),e.removeListener("unpipe",s),r.removeListener("end",u),r.removeListener("end",y),r.removeListener("data",h),d=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&c()}function h(t){a("ondata");var i=e.write(t);a("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==V(n.pipes,e))&&!d&&(a("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function p(t){a("onerror",t),y(),e.removeListener("error",p),0===l(e,"error")&&k(e,t)}function m(){e.removeListener("finish",g),y()}function g(){a("onfinish"),e.removeListener("close",m),y()}function y(){a("unpipe"),r.unpipe(e)}return r.on("data",h),M(e,"error",p),e.once("close",m),e.once("finish",g),e.emit("pipe",r),n.flowing||(a("pipe resume"),r.resume()),e},P.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0,!1!==n.flowing&&this.resume()):"readable"!==e||n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,a("on readable",n.length,n.reading),n.length?N(this):n.reading||i.nextTick(q,this)),r},P.prototype.addListener=P.prototype.on,P.prototype.removeListener=function(e,t){var r=d.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(H,this),r},P.prototype.removeAllListeners=function(e){var t=d.prototype.removeAllListeners.apply(this,arguments);return("readable"===e||void 0===e)&&i.nextTick(H,this),t},P.prototype.resume=function(){var e=this._readableState;return e.flowing||(a("resume"),e.flowing=!e.readableListening,G(this,e)),e.paused=!1,this},P.prototype.pause=function(){return a("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(a("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},P.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(a("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){if(a("wrapped data"),r.decoder&&(i=r.decoder.write(i)),!r.objectMode||null!=i)(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o-1))throw new A(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(T.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),T.prototype._write=function(e,t,r){r(new b("_write()"))},T.prototype._writev=null,T.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||G(this,n,r),this},Object.defineProperty(T.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),T.prototype.destroy=p.destroy,T.prototype._undestroy=p.undestroy,T.prototype._destroy=function(e,t){t(e)}},871:function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o,a=r(698),s=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),d=Symbol("lastPromise"),f=Symbol("handlePromise"),h=Symbol("stream");function p(e,t){return{value:e,done:t}}function m(e){var t=e[s];if(null!==t){var r=e[h].read();null!==r&&(e[d]=null,e[s]=null,e[u]=null,t(p(r,!1)))}}function g(e){i.nextTick(m,e)}function y(e,t){return function(r,n){e.then(function(){if(t[l]){r(p(void 0,!0));return}t[f](r,n)},n)}}var b=Object.getPrototypeOf(function(){}),v=Object.setPrototypeOf((n(o={get stream(){return this[h]},next:function(){var e,t=this,r=this[c];if(null!==r)return Promise.reject(r);if(this[l])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise(function(e,r){i.nextTick(function(){t[c]?r(t[c]):e(p(void 0,!0))})});var n=this[d];if(n)e=new Promise(y(n,this));else{var o=this[h].read();if(null!==o)return Promise.resolve(p(o,!1));e=new Promise(this[f])}return this[d]=e,e}},Symbol.asyncIterator,function(){return this}),n(o,"return",function(){var e=this;return new Promise(function(t,r){e[h].destroy(null,function(e){if(e){r(e);return}t(p(void 0,!0))})})}),o),b),w=function(e){var t,r=Object.create(v,(n(t={},h,{value:e,writable:!0}),n(t,s,{value:null,writable:!0}),n(t,u,{value:null,writable:!0}),n(t,c,{value:null,writable:!0}),n(t,l,{value:e._readableState.endEmitted,writable:!0}),n(t,f,{value:function(e,t){var n=r[h].read();n?(r[d]=null,r[s]=null,r[u]=null,e(p(n,!1))):(r[s]=e,r[u]=t)},writable:!0}),t));return r[d]=null,a(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[u];null!==t&&(r[d]=null,r[s]=null,r[u]=null,t(e)),r[c]=e;return}var n=r[s];null!==n&&(r[d]=null,r[s]=null,r[u]=null,n(p(void 0,!0))),r[l]=!0}),e.on("readable",g.bind(null,r)),r};e.exports=w},379:function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return c.alloc(0);for(var t=c.allocUnsafe(e>>>0),r=this.head,n=0;r;)f(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return ei.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=c.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:d,value:function(e,t){return l(this,i({},t,{depth:0,customInspect:!1}))}}]),e}()},25:function(e){"use strict";function t(e,t){var o=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,i.nextTick(a,this,e)):i.nextTick(a,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?o._writableState?o._writableState.errorEmitted?i.nextTick(n,o):(o._writableState.errorEmitted=!0,i.nextTick(r,o,e)):i.nextTick(r,o,e):t?(i.nextTick(n,o),t(e)):i.nextTick(n,o)})),this}function r(e,t){a(e,t),n(e)}function n(e){(!e._writableState||e._writableState.emitClose)&&(!e._readableState||e._readableState.emitClose)&&e.emit("close")}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(e,t){e.emit("error",t)}function s(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}e.exports={destroy:t,undestroy:o,errorOrDestroy:s}},698:function(e,t,r){"use strict";var n=r(646).q.ERR_STREAM_PREMATURE_CLOSE;function i(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=Array(r),i=0;i0,function(t){e||(e=t),t&&o.forEach(d),a||(o.forEach(d),i(e))})});return r.reduce(f)}e.exports=p},776:function(e,t,r){"use strict";var n=r(646).q.ERR_INVALID_OPT_VALUE;function i(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}function o(e,t,r,o){var a=i(t,o,r);if(null!=a){if(!(isFinite(a)&&Math.floor(a)===a)||a<0)throw new n(o?r:"highWaterMark",a);return Math.floor(a)}return e.objectMode?16:16384}e.exports={getHighWaterMark:o}},678:function(e,t,r){e.exports=r(781)},55:function(e,t,r){var n=r(300),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return n.SlowBuffer(e)}},173:function(e,t,r){e.exports=i;var n=r(361).EventEmitter;function i(){n.call(this)}r(782)(i,n),i.Readable=r(709),i.Writable=r(337),i.Duplex=r(403),i.Transform=r(170),i.PassThrough=r(889),i.finished=r(698),i.pipeline=r(442),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",u));var a=!1;function s(){a||(a=!0,e.end())}function u(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(l(),0===n.listenerCount(this,"error"))throw e}function l(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",u),r.removeListener("error",c),e.removeListener("error",c),r.removeListener("end",l),r.removeListener("close",l),e.removeListener("close",l)}return r.on("error",c),e.on("error",c),r.on("end",l),r.on("close",l),e.on("close",l),e.emit("pipe",r),e}},704:function(e,t,r){"use strict";var n=r(55).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;if(!e)return"utf8";for(;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=o(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=p,this.end=m,t=4;break;case"utf8":this.fillLast=d,t=4;break;case"base64":this.text=g,this.end=y,t=3;break;default:this.write=b,this.end=v;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function u(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function c(e,t,r){var n=t.length-1;if(n=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}function l(e,t,r){if((192&t[0])!=128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,"�"}}function d(e){var t=this.lastTotal-this.lastNeed,r=l(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):void(e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length)}function f(e,t){var r=c(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function g(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function y(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function b(e){return e.toString(this.encoding)}function v(e){return e&&e.length?this.write(e):""}t.s=s,s.prototype.write=function(e){var t,r;if(0===e.length)return"";if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r{"use strict";var t=Object.prototype.toString;e.exports=function(e){var r=t.call(e),n="[object Arguments]"===r;return n||(n="[object Array]"!==r&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),n}},67390:e=>{class t{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(void 0!==t)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}e.exports=t},67541:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;var n=42;for(var i in e[t]=n,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==n||!0!==a.enumerable)return!1}return!0}},67563:(e,t,r)=>{"use strict";function n(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var i=n[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];return{value:a=r.valueCallback?r.valueCallback(a):a,rest:t.slice(i.length)}}}r.d(t,{A:()=>n})},67602:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},67718:(e,t,r)=>{let n=r(52252),i=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};e.exports=i},68716:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.errorMessages=t.ErrorType=void 0,function(e){e.MalformedUnicode="MALFORMED_UNICODE",e.MalformedHexadecimal="MALFORMED_HEXADECIMAL",e.CodePointLimit="CODE_POINT_LIMIT",e.OctalDeprecation="OCTAL_DEPRECATION",e.EndOfString="END_OF_STRING"}(r=t.ErrorType||(t.ErrorType={})),t.errorMessages=new Map([[r.MalformedUnicode,"malformed Unicode character escape sequence"],[r.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[r.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[r.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[r.EndOfString,"malformed escape sequence at end of string"]])},69168:e=>{let t=function(e){let t=typeof e;return null==e?"null":"object"===t&&e.constructor===Array?"array":"object"===t&&e instanceof Date?"date":t},r=function(e,t){let n=typeof e;if("array"===n)return e.map(e=>r(e,t));if("object"===n){for(let n in e)e[n]=r(e[n],t);return e}return"number"===n&&Number.isFinite(e)&&!Number.isInteger(e)?+e.toFixed(t):e};e.exports={extendedTypeOf:t,roundObj:r}},69206:(e,t,r)=>{"use strict";var n=r(61271),i=r(16975),o=r(78486)(),a=r(9278),s=r(64215),u=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||t>0xffffffff||u(t)!==t)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,c=!0;if("length"in e&&a){var l=a(e,"length");l&&!l.configurable&&(n=!1),l&&!l.writable&&(c=!1)}return(n||c||!r)&&(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},69307:e=>{var t=1e3,r=6e4,n=36e5,i=864e5,o=6048e5,a=315576e5;function s(e){if(!((e=String(e)).length>100)){var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(s){var u=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return u*a;case"weeks":case"week":case"w":return u*o;case"days":case"day":case"d":return u*i;case"hours":case"hour":case"hrs":case"hr":case"h":return u*n;case"minutes":case"minute":case"mins":case"min":case"m":return u*r;case"seconds":case"second":case"secs":case"sec":case"s":return u*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}}}function u(e){var o=Math.abs(e);return o>=i?Math.round(e/i)+"d":o>=n?Math.round(e/n)+"h":o>=r?Math.round(e/r)+"m":o>=t?Math.round(e/t)+"s":e+"ms"}function c(e){var o=Math.abs(e);return o>=i?l(e,o,i,"day"):o>=n?l(e,o,n,"hour"):o>=r?l(e,o,r,"minute"):o>=t?l(e,o,t,"second"):e+" ms"}function l(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+" "+n+(i?"s":"")}e.exports=function(e,t){t=t||{};var r=typeof e;if("string"===r&&e.length>0)return s(e);if("number"===r&&isFinite(e))return t.long?c(e):u(e);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},69324:(e,t,r)=>{"use strict";var n;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=r(67350),s=Object.prototype.propertyIsEnumerable,u=!s.call({toString:null},"toString"),c=s.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!f["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{d(window[e])}catch(e){return!0}}catch(e){return!0}return!1}(),p=function(e){if("undefined"==typeof window||!h)return d(e);try{return d(e)}catch(e){return!1}};n=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===o.call(e),n=a(e),s=t&&"[object String]"===o.call(e),d=[];if(!t&&!r&&!n)throw TypeError("Object.keys called on a non-object");var f=c&&r;if(s&&e.length>0&&!i.call(e,0))for(var h=0;h0)for(var m=0;ma;r=0<=a?++n:--n){if(e[r]t[r])return 1}return i-o},h=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s=function(e){var t,r;for(t=0,r=e.length;t=200&&(c=g(u/100)+1,t.forEach(function(e,r){if(e.length>c)return l.set(r,!0),t.delete(r)})),this.isbjunk=function(e){return o.has(e)},this.isbpopular=function(e){return l.has(e)}}findLongestMatch(e,t,r,n){var i,o,a,s,u,c,l,d,f,h,p,m,g,y,b,v,w,S;for([i,o,a,d]=[this.a,this.b,this.b2j,this.isbjunk],[s,u,c]=[e,r,0],h={},l=g=w=e,S=t;w<=S?gS;l=w<=S?++g:--g){for(v={},p=[],a.has(i[l])&&(p=a.get(i[l])),b=0,y=p.length;b=n)break;(m=v[f]=(h[f-1]||0)+1)>c&&([s,u,c]=[l-m+1,f-m+1,m])}h=v}for(;s>e&&u>r&&!d(o[u-1])&&i[s-1]===o[u-1];)[s,u,c]=[s-1,u-1,c+1];for(;s+ce&&u>r&&d(o[u-1])&&i[s-1]===o[u-1];)[s,u,c]=[s-1,u-1,c+1];for(;s+cl&&(r.push([d,i,v(o,i+e),a,v(s,a+e)]),n.push(r),r=[],[i,a]=[b(i,o-e),b(a,s-e)]),r.push([d,i,o,a,s]);return r.length&&(1!==r.length||"equal"!==r[0][0])&&n.push(r),n}ratio(){var e,t,r,n;for(e=0,r=0,t=(n=this.getMatchingBlocks()).length;e0&&s++;return c(s,this.a.length+this.b.length)}realQuickRatio(){var e,t;return[e,t]=[this.a.length,this.b.length],c(v(e,t),e+t)}},y=function(e,t,r=3,i=.6){var o,s,c,l,d,f,h,p,m;if(!(r>0))throw Error(`n must be > 0: (${r})`);if(!(0<=i&&i<=1))throw Error(`cutoff must be in [0.0, 1.0]: (${i})`);for(d=[],(h=new a).setSeq2(e),o=0,s=t.length;o=i&&h.quickRatio()>=i&&h.ratio()>=i&&d.push([h.ratio(),m]);for(l=0,d=n.nlargest(d,r,u),f=[],c=d.length;ls;i=a<=s?++o:--o)u.push(`${e} ${t[i]}`);return u}_plainReplace(e,t,r,n,i,o){var a,s,u,c,l,d,f,h,m,g;for(p(tH;k=W<=H?++E:--E)for(g=n[k],w.setSeq2(g),A=L=q=t,G=r;q<=G?LG;A=q<=G?++L:--L){if((u=e[A])===g){null===_&&([_,x]=[A,k]);continue}w.setSeq1(u),w.realQuickRatio()>h&&w.quickRatio()>h&&w.ratio()>h&&([h,p,m]=[w.ratio(),A,k])}if(h=0},f=function(e,t){var r,n;return(r=e+1,1==(n=t-e))?`${r}`:(!n&&r--,`${r},${n}`)},_=function(e,t,{fromfile:r,tofile:n,fromfiledate:i,tofiledate:o,n:s,lineterm:u}={}){var c,l,d,h,p,m,g,y,b,v,w,S,_,x,A,k,E,M,T,P,I,C,O,R,j,D,L,N,B;for(null==r&&(r=""),null==n&&(n=""),null==i&&(i=""),null==o&&(o=""),null==s&&(s=3),null==u&&(u="\n"),M=[],L=!1,v=0,S=(O=new a(null,e,t).getGroupedOpcodes()).length;v=0&&o.push(i.slice(2));return o},t._arrayCmp=u,t.SequenceMatcher=a,t.getCloseMatches=y,t._countLeading=l,t.Differ=e,t.IS_LINE_JUNK=o,t.IS_CHARACTER_JUNK=i,t._formatRangeUnified=f,t.unifiedDiff=_,t._formatRangeContext=d,t.contextDiff=m,t.ndiff=w,t.restore=S}).call(this)},69672:e=>{"use strict";e.exports=JSON.parse('{"E":[{"id":"0pT16kP14o","model":"gpt-4o","chatID":"0pT16kP14o","preview":"Analyze the product offerings and pricing strategy of Apple\'s MacBook lineup.","messages":[{"role":"assistant","type":"character-welcome-message","uuid":"54fc7168-38f7-4af0-8014-bdf556c33f92","model":"gpt-4o","content":"Hello! Ready to outsmart your competition? I’m here to dissect their strategies and refine your market approach. Give me some information about them. Enable Web Search or Perplexity plugins if you need more real-time insights."},{"role":"user","uuid":"3d5aa555-a5bd-4718-a465-096d886be164","content":"Analyze the product offerings and pricing strategy of Apple\'s MacBook lineup."},{"role":"assistant","uuid":"e19310f2-75ae-4ff5-9c1d-9f712614d776","model":"gpt-4o","content":"","refusal":null,"tool_calls":[{"id":"call_fQ3ma96XumGYDfR7Q29jv5Gc","type":"function","index":0,"function":{"name":"get_web_search_results","arguments":"{\\"keyword\\":\\"Apple MacBook lineup product offerings and pricing 2023\\"}"}}]},{"name":"get_web_search_results","role":"tool","type":"tool-response","uuid":"eed37837-2f60-4c82-84e6-e56c2fba1a8f","content":"\\nTitle:Buy MacBook Pro - Apple\\nResult:Get a new MacBook Pro from only $133.25 per month. Select a model or customise your own. Buy now at apple.com.\\nURL:https://www.apple.com/shop/buy-mac/macbook-pro\\n \\nTitle:Best MacBooks (2024): Which Model Should You Buy? | WIRED\\nResult:Mar 29, 2024 ... The 15-inch MacBook Air is the first large-screen option within the Air lineup. ... Apple MacBook Pro (14 Inch and 16 Inch, Late 2023). $2,399\xa0...\\nURL:https://www.wired.com/story/which-macbook-should-you-buy/\\n \\nTitle:Apple unveils new MacBook Pro featuring M3 chips - Apple\\nResult:Oct 30, 2023 ... ... of connectivity options. With up to 22 hours of battery life,1 the lineup offers the ultimate in pro portability, delivering the same\xa0...\\nURL:https://www.apple.com/newsroom/2023/10/apple-unveils-new-macbook-pro-featuring-m3-chips/\\n \\nTitle:Apple 2023 report cards: The Mac\\nResult:Dec 29, 2023 ... ... of Apple\'s major product lines are at going into the new year. ... price more in line with what we\'d want from the Air lineup. The M1 does\xa0...\\nURL:https://birchtree.me/blog/apple-2023-report-cards-the-mac/\\n \\nTitle:Mac - Apple\\nResult:The most powerful Mac laptops and desktops ever. Supercharged by Apple silicon. MacBook Air, MacBook Pro, iMac, Mac mini, Mac Studio, and Mac Pro.\\nURL:https://www.apple.com/mac/\\n \\nTitle:The 2023 M3 MacBook Pros - Daring Fireball\\nResult:Nov 6, 2023 ... ... costs $7,200.) The wildcard in Apple\'s MacBook lineup is what I\'m cheekily calling the “Pro Jr.” model. For the last few years, that\'s been\xa0...\\nURL:https://daringfireball.net/2023/11/the_2023_m3_macbook_pros\\n \\nTitle:New 15-inch MacBook Air, Mac Studio, and Mac Pro are available ...\\nResult:Jun 13, 2023 ... View full terms and conditions of offer here. The promotional Apple Education Pricing on AppleCare+ is available for eligible products only when\xa0...\\nURL:https://www.apple.com/newsroom/2023/06/new-15-inch-macbook-air-mac-studio-and-mac-pro-are-available-today/\\n \\nTitle:MacBook Pro (14-inch, M3, Nov 2023) - Technical Specifications ...\\nResult:Apple M3 chip, Media Engine, Display: Liquid Retina XDR display, XDR (Extreme Dynamic Range), Color, Refresh rates, Memory: Configurable to 16GB or 24GB.\\nURL:https://support.apple.com/en-us/117735\\n \\nTitle:Best MacBook for 2024 - CNET\\nResult:Aug 19, 2024 ... ... laptop for your needs and in your price range. Watch this: M3 ... Here are the starting prices of Apple\'s current MacBook lineup: 13\xa0...\\nURL:https://www.cnet.com/tech/computing/best-macbook/\\n \\nTitle:VMware by Broadcom Dramatically Simplifies Offer Lineup and ...\\nResult:Dec 11, 2023 ... A dramatic simplification of our product portfolio ... products in exchange for the new subscription products, with upgrade pricing incentives.\\nURL:https://news.vmware.com/news/vmware-by-broadcom-business-transformation\\n ","tool_call_id":"call_fQ3ma96XumGYDfR7Q29jv5Gc","pluginResponse":{"data":"\\nTitle:Buy MacBook Pro - Apple\\nResult:Get a new MacBook Pro from only $133.25 per month. Select a model or customise your own. Buy now at apple.com.\\nURL:https://www.apple.com/shop/buy-mac/macbook-pro\\n \\nTitle:Best MacBooks (2024): Which Model Should You Buy? | WIRED\\nResult:Mar 29, 2024 ... The 15-inch MacBook Air is the first large-screen option within the Air lineup. ... Apple MacBook Pro (14 Inch and 16 Inch, Late 2023). $2,399\xa0...\\nURL:https://www.wired.com/story/which-macbook-should-you-buy/\\n \\nTitle:Apple unveils new MacBook Pro featuring M3 chips - Apple\\nResult:Oct 30, 2023 ... ... of connectivity options. With up to 22 hours of battery life,1 the lineup offers the ultimate in pro portability, delivering the same\xa0...\\nURL:https://www.apple.com/newsroom/2023/10/apple-unveils-new-macbook-pro-featuring-m3-chips/\\n \\nTitle:Apple 2023 report cards: The Mac\\nResult:Dec 29, 2023 ... ... of Apple\'s major product lines are at going into the new year. ... price more in line with what we\'d want from the Air lineup. The M1 does\xa0...\\nURL:https://birchtree.me/blog/apple-2023-report-cards-the-mac/\\n \\nTitle:Mac - Apple\\nResult:The most powerful Mac laptops and desktops ever. Supercharged by Apple silicon. MacBook Air, MacBook Pro, iMac, Mac mini, Mac Studio, and Mac Pro.\\nURL:https://www.apple.com/mac/\\n \\nTitle:The 2023 M3 MacBook Pros - Daring Fireball\\nResult:Nov 6, 2023 ... ... costs $7,200.) The wildcard in Apple\'s MacBook lineup is what I\'m cheekily calling the “Pro Jr.” model. For the last few years, that\'s been\xa0...\\nURL:https://daringfireball.net/2023/11/the_2023_m3_macbook_pros\\n \\nTitle:New 15-inch MacBook Air, Mac Studio, and Mac Pro are available ...\\nResult:Jun 13, 2023 ... View full terms and conditions of offer here. The promotional Apple Education Pricing on AppleCare+ is available for eligible products only when\xa0...\\nURL:https://www.apple.com/newsroom/2023/06/new-15-inch-macbook-air-mac-studio-and-mac-pro-are-available-today/\\n \\nTitle:MacBook Pro (14-inch, M3, Nov 2023) - Technical Specifications ...\\nResult:Apple M3 chip, Media Engine, Display: Liquid Retina XDR display, XDR (Extreme Dynamic Range), Color, Refresh rates, Memory: Configurable to 16GB or 24GB.\\nURL:https://support.apple.com/en-us/117735\\n \\nTitle:Best MacBook for 2024 - CNET\\nResult:Aug 19, 2024 ... ... laptop for your needs and in your price range. Watch this: M3 ... Here are the starting prices of Apple\'s current MacBook lineup: 13\xa0...\\nURL:https://www.cnet.com/tech/computing/best-macbook/\\n \\nTitle:VMware by Broadcom Dramatically Simplifies Offer Lineup and ...\\nResult:Dec 11, 2023 ... A dramatic simplification of our product portfolio ... products in exchange for the new subscription products, with upgrade pricing incentives.\\nURL:https://news.vmware.com/news/vmware-by-broadcom-business-transformation\\n ","type":"respond_to_ai","options":null,"inputParams":{"keyword":"Apple MacBook lineup product offerings and pricing 2023"}}},{"role":"assistant","uuid":"46b43b15-73c7-4d67-a670-d1b0c9bb311c","model":"gpt-4o","content":"Based on the recent information, here\'s an analysis of Apple\'s MacBook lineup in terms of product offerings and pricing strategy:\\n\\n### MacBook Product Lineup\\n\\n#### 1. MacBook Air\\n- **MacBook Air (13-inch, M1, 2020)**\\n - **Key Specs**: Apple M1 chip, 8-core CPU, 7-core/8-core GPU, Up to 16GB memory, Up to 2TB SSD, Retina display.\\n - **Price Range**: Starting at $999.\\n \\n- **MacBook Air (13-inch, M2, 2022)**\\n - **Key Specs**: Apple M2 chip, 8-core CPU, 10-core GPU, Up to 24GB memory, Up to 2TB SSD, Liquid Retina display.\\n - **Price Range**: Starting at $1,199.\\n \\n- **MacBook Air (15-inch, M2, 2023)**\\n - **Key Specs**: Bigger screen, Apple M2 chip, all other specs similar to the 13-inch M2.\\n - **Price Range**: Starting at $1,299.\\n\\n#### 2. MacBook Pro\\n- **MacBook Pro (13-inch, M2, 2022)**\\n - **Key Specs**: Apple M2 chip, 8-core CPU, 10-core GPU, Up to 24GB memory, Up to 2TB SSD, Touch Bar, Retina display.\\n - **Price Range**: Starting at $1,299.\\n \\n- **MacBook Pro (14-inch, M3, Nov 2023)**\\n - **Key Specs**: Apple M3 chip, Liquid Retina XDR display, Up to 24GB memory, Configurable up to 8TB SSD.\\n - **Price Range**: Starting at $1,999.\\n \\n- **MacBook Pro (16-inch, M3, 2023)**\\n - **Key Specs**: Apple M3 chip, Liquid Retina XDR display, up to 24GB memory, Configurable up to 8TB SSD.\\n - **Price Range**: Starting at $2,499.\\n\\n#### 3. Legacy Models and Customization Options\\n- Apple still supports and sells older models with Intel chips, although these are gradually phasing out.\\n- Customization options for memory, storage, and other specifications are available, which can significantly increase the price, sometimes up to $7,200 for the highest-end configurations.\\n\\n### Pricing Strategy\\n- **Entry-Level Pricing**: The MacBook Air starts at $999 for the M1 version, making it accessible to a broader audience. The M2 models command higher starting prices ($1,199 and $1,299).\\n \\n- **Mid-Range Pricing**: Pro models like the 13-inch Pro start at $1,299, bridging the gap between affordability and professional features.\\n \\n- **High-End Pricing**: The 14-inch and 16-inch MacBook Pros, especially those with advanced M3 chips, start at $1,999 and $2,499 respectively, targeting high-performance needs and professional users.\\n\\n- **Customization**: Extensive customization (memory, storage, etc.) allows prices to scale significantly, offering a tailored experience for users with specific needs and budgets.\\n \\n- **Financing Options**: Apple offers monthly financing options, e.g., $133.25 per month for their higher-end models, making it easier for customers to manage the purchase cost over time.\\n\\n### Competitive Edge\\nApple\'s pricing strategy shows a clear distinction between product tiers ensuring that there is an option for multiple segments of the market—from everyday users to professionals requiring high performance. This tiered approach allows Apple to capture a broad customer base while offering advanced features and customization for those willing to pay more.\\n\\nIs there a specific aspect or angle of the MacBook lineup you would like to delve deeper into?","refusal":null},{"role":"user","uuid":"356ce570-4435-4221-ae4d-39c69e3d1100","content":"Create a bubble chart showing the MacBook lineup with:\\n\\n- Screen size (in inches).\\n- Starting price (USD).\\n- Max storage (TB).\\n- Chip type (M1, M2, M3).\\n\\nTo see how these key factors relate to each other."},{"role":"assistant","uuid":"bfd25e0c-4f5d-4923-8c8b-89977ee55e78","model":"gpt-4o","content":"","refusal":null,"tool_calls":[{"id":"call_6ijRksbvzbiyyQNEtLcHhZIy","type":"function","index":0,"function":{"name":"render_chart","arguments":"{\\"title\\":\\"MacBook Lineup Overview\\",\\"chartType\\":\\"bubble\\",\\"data\\":{\\"labels\\":[],\\"datasets\\":[{\\"label\\":\\"MacBook Air M1 (2020)\\",\\"data\\":[{\\"x\\":13,\\"y\\":999,\\"r\\":20}],\\"backgroundColor\\":\\"#FF6384\\"},{\\"label\\":\\"MacBook Air M2 (2022)\\",\\"data\\":[{\\"x\\":13,\\"y\\":1199,\\"r\\":20}],\\"backgroundColor\\":\\"#36A2EB\\"},{\\"label\\":\\"MacBook Air 15-inch M2 (2023)\\",\\"data\\":[{\\"x\\":15,\\"y\\":1299,\\"r\\":20}],\\"backgroundColor\\":\\"#36A2EB\\"},{\\"label\\":\\"MacBook Pro 13-inch M2 (2022)\\",\\"data\\":[{\\"x\\":13,\\"y\\":1299,\\"r\\":20}],\\"backgroundColor\\":\\"#36A2EB\\"},{\\"label\\":\\"MacBook Pro 14-inch M3 (2023)\\",\\"data\\":[{\\"x\\":14.2,\\"y\\":1999,\\"r\\":40}],\\"backgroundColor\\":\\"#FFCE56\\"},{\\"label\\":\\"MacBook Pro 16-inch M3 (2023)\\",\\"data\\":[{\\"x\\":16,\\"y\\":2499,\\"r\\":40}],\\"backgroundColor\\":\\"#FFCE56\\"}]},\\"options\\":{\\"responsive\\":true,\\"scales\\":{\\"x\\":{\\"beginAtZero\\":false,\\"title\\":{\\"display\\":true,\\"text\\":\\"Screen Size (inches)\\"}},\\"y\\":{\\"beginAtZero\\":false,\\"title\\":{\\"display\\":true,\\"text\\":\\"Starting Price (USD)\\"}}},\\"plugins\\":{\\"tooltip\\":{\\"enabled\\":true},\\"legend\\":{\\"display\\":true,\\"position\\":\\"top\\"}}}}"}}]},{"name":"render_chart","role":"tool","type":"tool-response","uuid":"07c9cd14-0954-44d4-bd5f-b8c265850a47","content":"The output has been rendered to the user in HTML format.","tool_call_id":"call_6ijRksbvzbiyyQNEtLcHhZIy","pluginResponse":{"data":"\\n \\n \\n \\n MacBook Lineup Overview\\n