@remit/web-client-dist 0.0.276 → 0.0.277

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/assets/{ComposeBody-DNv4lKVg.js → ComposeBody-Buqe6R7x.js} +1 -1
  2. package/assets/{ConfirmDialog-6u-So5Mj.js → ConfirmDialog-vJmCLTLe.js} +1 -1
  3. package/assets/{ErrorState-Bkp1gXXl.js → ErrorState-AXjv4Vy8.js} +1 -1
  4. package/assets/OnboardingWizard-CBMDT_dT.js +1 -0
  5. package/assets/{account-form-helpers-CiMqlmbr.js → account-form-helpers-CzxNXYwe.js} +1 -1
  6. package/assets/accounts-CXtqI6gg.js +1 -0
  7. package/assets/{advanced-BO6zq6kP.js → advanced-HEzfX-m-.js} +1 -1
  8. package/assets/{appearance-BfWb9_Fy.js → appearance-B5Ib2wg_.js} +1 -1
  9. package/assets/{avatar-lSR-nesO.js → avatar-C9S3OtLv.js} +1 -1
  10. package/assets/{browser-ponyfill-BsjencOU.js → browser-ponyfill-Di7PDaos.js} +1 -1
  11. package/assets/{circle-check-DsCOkSSM.js → circle-check-BPCXCzxy.js} +1 -1
  12. package/assets/{download-COLZC06N.js → download-1gHnHqK5.js} +1 -1
  13. package/assets/{filters-D07T8xAp.js → filters-CXOGLAj6.js} +1 -1
  14. package/assets/{flagged-CAKOVrfq.js → flagged-W7MuVZk5.js} +1 -1
  15. package/assets/{folders-C0VzmNT5.js → folders-BwjbOCXd.js} +1 -1
  16. package/assets/{index-CUqn72uM.js → index--gQY1RVJ.js} +1 -1
  17. package/assets/index-BkBESeqp.js +1 -0
  18. package/assets/{index-CiEaS41j.js → index-C9jlVhwm.js} +6 -6
  19. package/assets/{index-BVVs8455.css → index-DidEu5F1.css} +1 -1
  20. package/assets/{kbd-FhAgSVFv.js → kbd-Bb5qE_0D.js} +1 -1
  21. package/assets/{labels-fkQCQumy.js → labels-CImdvv7n.js} +1 -1
  22. package/assets/mail-DhwMAvfX.js +118 -0
  23. package/assets/{move-options-B90_Im78.js → move-options-BuzyFinM.js} +1 -1
  24. package/assets/{onboarding-pxm_CHBN.js → onboarding--Y66ggRk.js} +1 -1
  25. package/assets/{pencil-Bi_EFx_h.js → pencil-DRINDAuk.js} +1 -1
  26. package/assets/{senders-Dl4Tys8e.js → senders-Gxdkad72.js} +1 -1
  27. package/assets/settings-DQyrs680.js +1 -0
  28. package/assets/settings-screen-CunC4cOB.js +1 -0
  29. package/assets/{shield-check-D9OTHLzn.js → shield-check-Boj4ZtSF.js} +1 -1
  30. package/assets/{suggested-vips-C5XozfMP.js → suggested-vips-BH2WouM-.js} +1 -1
  31. package/assets/{useDebouncedValue-Ba-QrX22.js → useDebouncedValue-BUwYjXup.js} +1 -1
  32. package/assets/useFilters-B0OwcW8j.js +1 -0
  33. package/assets/{useLabels-D5Ao5ySk.js → useLabels-B_293kQ8.js} +1 -1
  34. package/assets/{useSignature-BsS3enZI.js → useSignature-RKbfvMGZ.js} +1 -1
  35. package/index.html +3 -3
  36. package/package.json +1 -1
  37. package/assets/OnboardingWizard-C0UwUPbi.js +0 -1
  38. package/assets/accounts-x6guxeAK.js +0 -1
  39. package/assets/index-CrWgKt9k.js +0 -1
  40. package/assets/mail-4Em6VBK7.js +0 -118
  41. package/assets/settings-DVvZvPYc.js +0 -1
  42. package/assets/settings-screen-DbXrcUiB.js +0 -1
  43. package/assets/useFilters-CIuLf8B3.js +0 -1
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mail-4Em6VBK7.js","assets/pencil-Bi_EFx_h.js","assets/avatar-lSR-nesO.js","assets/kbd-FhAgSVFv.js","assets/shield-check-D9OTHLzn.js","assets/account-form-helpers-CiMqlmbr.js","assets/useSignature-BsS3enZI.js","assets/useDebouncedValue-Ba-QrX22.js","assets/useFilters-CIuLf8B3.js","assets/ErrorState-Bkp1gXXl.js","assets/format-CKZmh-Ru.js","assets/move-options-B90_Im78.js","assets/useLabels-D5Ao5ySk.js","assets/ConfirmDialog-6u-So5Mj.js","assets/circle-check-DsCOkSSM.js","assets/onboarding-pxm_CHBN.js","assets/OnboardingWizard-C0UwUPbi.js","assets/index-CUqn72uM.js","assets/flagged-CAKOVrfq.js","assets/accounts-x6guxeAK.js","assets/settings-screen-DbXrcUiB.js","assets/download-COLZC06N.js","assets/advanced-BO6zq6kP.js","assets/appearance-BfWb9_Fy.js","assets/filters-D07T8xAp.js","assets/folders-C0VzmNT5.js","assets/labels-fkQCQumy.js","assets/senders-Dl4Tys8e.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mail-DhwMAvfX.js","assets/pencil-DRINDAuk.js","assets/avatar-C9S3OtLv.js","assets/kbd-Bb5qE_0D.js","assets/shield-check-Boj4ZtSF.js","assets/account-form-helpers-CzxNXYwe.js","assets/useSignature-RKbfvMGZ.js","assets/useDebouncedValue-BUwYjXup.js","assets/useFilters-B0OwcW8j.js","assets/ErrorState-AXjv4Vy8.js","assets/format-CKZmh-Ru.js","assets/move-options-BuzyFinM.js","assets/useLabels-B_293kQ8.js","assets/ConfirmDialog-vJmCLTLe.js","assets/circle-check-BPCXCzxy.js","assets/onboarding--Y66ggRk.js","assets/OnboardingWizard-CBMDT_dT.js","assets/index--gQY1RVJ.js","assets/flagged-W7MuVZk5.js","assets/accounts-CXtqI6gg.js","assets/settings-screen-CunC4cOB.js","assets/download-1gHnHqK5.js","assets/advanced-HEzfX-m-.js","assets/appearance-B5Ib2wg_.js","assets/filters-CXOGLAj6.js","assets/folders-BwjbOCXd.js","assets/labels-CImdvv7n.js","assets/senders-Gxdkad72.js"])))=>i.map(i=>d[i]);
2
2
  function oD(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in t)){const s=Object.getOwnPropertyDescriptor(r,a);s&&Object.defineProperty(t,a,s.get?s:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const s of a)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(a){if(a.ep)return;a.ep=!0;const s=n(a);fetch(a.href,s)}})();var Ym=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xi(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var dS={exports:{}},If={};var D4;function HW(){if(D4)return If;D4=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,a,s){var i=null;if(s!==void 0&&(i=""+s),a.key!==void 0&&(i=""+a.key),"key"in a){s={};for(var u in a)u!=="key"&&(s[u]=a[u])}else s=a;return a=s.ref,{$$typeof:t,type:r,key:i,ref:a!==void 0?a:null,props:s}}return If.Fragment=e,If.jsx=n,If.jsxs=n,If}var L4;function qW(){return L4||(L4=1,dS.exports=HW()),dS.exports}var C=qW();const WW="Logging",VW="x-amz-user-agent",GW="NoHubcallbackProvidedException";var oa;(function(t){t.DEBUG="DEBUG",t.ERROR="ERROR",t.INFO="INFO",t.WARN="WARN",t.VERBOSE="VERBOSE",t.NONE="NONE"})(oa||(oa={}));const U4={VERBOSE:1,DEBUG:2,INFO:3,WARN:4,ERROR:5,NONE:6};class or{constructor(e,n=oa.WARN){this.name=e,this.level=n,this._pluggables=[]}_padding(e){return e<10?"0"+e:""+e}_ts(){const e=new Date;return[this._padding(e.getMinutes()),this._padding(e.getSeconds())].join(":")+"."+e.getMilliseconds()}configure(e){return e?(this._config=e,this._config):this._config}_log(e,...n){let r=this.level;or.LOG_LEVEL&&(r=or.LOG_LEVEL),typeof window<"u"&&window.LOG_LEVEL&&(r=window.LOG_LEVEL);const a=U4[r];if(!(U4[e]>=a))return;let i=console.log.bind(console);e===oa.ERROR&&console.error&&(i=console.error.bind(console)),e===oa.WARN&&console.warn&&(i=console.warn.bind(console)),or.BIND_ALL_LOG_LEVELS&&(e===oa.INFO&&console.info&&(i=console.info.bind(console)),e===oa.DEBUG&&console.debug&&(i=console.debug.bind(console)));const u=`[${e}] ${this._ts()} ${this.name}`;let c="";if(n.length===1&&typeof n[0]=="string")c=`${u} - ${n[0]}`,i(c);else if(n.length===1)c=`${u} ${n[0]}`,i(u,n[0]);else if(typeof n[0]=="string"){let f=n.slice(1);f.length===1&&(f=f[0]),c=`${u} - ${n[0]} ${f}`,i(`${u} - ${n[0]}`,f)}else c=`${u} ${n}`,i(u,n);for(const f of this._pluggables){const h={message:c,timestamp:Date.now()};f.pushLogs([h])}}log(...e){this._log(oa.INFO,...e)}info(...e){this._log(oa.INFO,...e)}warn(...e){this._log(oa.WARN,...e)}error(...e){this._log(oa.ERROR,...e)}debug(...e){this._log(oa.DEBUG,...e)}verbose(...e){this._log(oa.VERBOSE,...e)}addPluggable(e){e&&e.getCategoryName()===WW&&(this._pluggables.push(e),e.configure(this._config))}listPluggables(){return this._pluggables}}or.LOG_LEVEL=null;or.BIND_ALL_LOG_LEVELS=!1;class Hr extends Error{constructor({message:e,name:n,recoverySuggestion:r,underlyingError:a,metadata:s}){if(super(e),this.name=n,this.underlyingError=a,this.recoverySuggestion=r,s){const{extendedRequestId:i,httpStatusCode:u,requestId:c}=s;this.metadata={extendedRequestId:i,httpStatusCode:u,requestId:c}}this.constructor=Hr,Object.setPrototypeOf(this,Hr.prototype)}}var Fi;(function(t){t.NoEndpointId="NoEndpointId",t.PlatformNotSupported="PlatformNotSupported",t.Unknown="Unknown",t.NetworkError="NetworkError"})(Fi||(Fi={}));const q1=(t,e=Hr)=>(n,r,a)=>{const{message:s,recoverySuggestion:i}=t[r];if(!n)throw new e({name:r,message:a?`${s} ${a}`:s,recoverySuggestion:i})},Rs=typeof Symbol<"u"?Symbol("amplify_default"):"@@amplify_default",Of=new or("Hub");class iD{constructor(e){this.listeners=new Map,this.protectedChannels=["core","auth","api","analytics","interactions","pubsub","storage","ui","xr"],this.name=e}_remove(e,n){const r=this.listeners.get(e);if(!r){Of.warn(`No listeners for ${e}`);return}this.listeners.set(e,[...r.filter(({callback:a})=>a!==n)])}dispatch(e,n,r,a){typeof e=="string"&&this.protectedChannels.indexOf(e)>-1&&(a===Rs||Of.warn(`WARNING: ${e} is protected and dispatching on it can have unintended consequences`));const s={channel:e,payload:{...n},source:r,patternInfo:[]};try{this._toListeners(s)}catch(i){Of.error(i)}}listen(e,n,r="noname"){let a;if(typeof n!="function")throw new Hr({name:GW,message:"No callback supplied to Hub"});a=n;let s=this.listeners.get(e);return s||(s=[],this.listeners.set(e,s)),s.push({name:r,callback:a}),()=>{this._remove(e,a)}}_toListeners(e){const{channel:n,payload:r}=e,a=this.listeners.get(n);a&&a.forEach(s=>{Of.debug(`Dispatching to ${n} with `,r);try{s.callback(e)}catch(i){Of.error(i)}})}}const Is=new iD("__default__"),M0=new iD("internal-hub"),k_=()=>{if(typeof window=="object"&&typeof window.crypto=="object")return window.crypto;if(typeof crypto=="object")return crypto;throw new Hr({name:"MissingPolyfill",message:"Cannot resolve the `crypto` function from the environment."})},KW=()=>{if(typeof window<"u"&&typeof window.btoa=="function")return window.btoa;if(typeof btoa=="function")return btoa;throw new Hr({name:"Base64EncoderError",message:"Cannot resolve the `btoa` function from the environment."})},YW=()=>{if(typeof window<"u"&&typeof window.atob=="function")return window.atob;if(typeof atob=="function")return atob;throw new Hr({name:"Base64EncoderError",message:"Cannot resolve the `atob` function from the environment."})},A_={convert(t,e){let n=t;return e?.urlSafe&&(n=n.replace(/-/g,"+").replace(/_/g,"/")),YW()(n)}};var _s;(function(t){t.AuthTokenConfigException="AuthTokenConfigException",t.AuthUserPoolAndIdentityPoolException="AuthUserPoolAndIdentityPoolException",t.AuthUserPoolException="AuthUserPoolException",t.InvalidIdentityPoolIdException="InvalidIdentityPoolIdException",t.OAuthNotConfigureException="OAuthNotConfigureException"})(_s||(_s={}));const ZW={[_s.AuthTokenConfigException]:{message:"Auth Token Provider not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app."},[_s.AuthUserPoolAndIdentityPoolException]:{message:"Auth UserPool or IdentityPool not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app with UserPoolId and IdentityPoolId."},[_s.AuthUserPoolException]:{message:"Auth UserPool not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app with userPoolId and userPoolClientId."},[_s.InvalidIdentityPoolIdException]:{message:"Invalid identity pool id provided.",recoverySuggestion:"Make sure a valid identityPoolId is given in the config."},[_s.OAuthNotConfigureException]:{message:"oauth param not configured.",recoverySuggestion:"Make sure to call Amplify.configure with oauth parameter in your app."}},T_=q1(ZW);function ut(t){let e=!0;t?e=!!t.userPoolId&&!!t.userPoolClientId:e=!1,T_(e,_s.AuthUserPoolException)}function W1(t){const e=!!t?.loginWith?.oauth?.domain&&!!t?.loginWith?.oauth?.redirectSignOut&&!!t?.loginWith?.oauth?.redirectSignIn&&!!t?.loginWith?.oauth?.responseType;T_(e,_s.OAuthNotConfigureException)}function t0(t){const e=!!t?.identityPoolId;T_(e,_s.InvalidIdentityPoolIdException)}function Co(t){const e=t.split(".");if(e.length!==3)throw new Error("Invalid token");try{const r=e[1].replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(A_.convert(r).split("").map(i=>`%${`00${i.charCodeAt(0).toString(16)}`.slice(-2)}`).join("")),s=JSON.parse(a);return{toString:()=>t,payload:s}}catch{throw new Error("Invalid token payload")}}const lD=t=>{const e=Reflect.ownKeys(t);for(const n of e){const r=t[n];(r&&typeof r=="object"||typeof r=="function")&&lD(r)}return Object.freeze(t)},XW=new or("parseAWSExports"),QW={API_KEY:"apiKey",AWS_IAM:"iam",AMAZON_COGNITO_USER_POOLS:"userPool",OPENID_CONNECT:"oidc",NONE:"none",AWS_LAMBDA:"lambda",LAMBDA:"lambda"},JW=(t={})=>{if(!Object.prototype.hasOwnProperty.call(t,"aws_project_region"))throw new Hr({name:"InvalidParameterException",message:"Invalid config parameter.",recoverySuggestion:"Ensure passing the config object imported from `amplifyconfiguration.json`."});const{aws_appsync_apiKey:e,aws_appsync_authenticationType:n,aws_appsync_graphqlEndpoint:r,aws_appsync_region:a,aws_bots_config:s,aws_cognito_identity_pool_id:i,aws_cognito_sign_up_verification_method:u,aws_cognito_mfa_configuration:c,aws_cognito_mfa_types:f,aws_cognito_password_protection_settings:h,aws_cognito_verification_mechanisms:m,aws_cognito_signup_attributes:g,aws_cognito_social_providers:y,aws_cognito_username_attributes:S,aws_mandatory_sign_in:w,aws_mobile_analytics_app_id:x,aws_mobile_analytics_app_region:E,aws_user_files_s3_bucket:k,aws_user_files_s3_bucket_region:A,aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing:R,aws_user_pools_id:N,aws_user_pools_web_client_id:O,geo:I,oauth:P,predictions:U,aws_cloud_logic_custom:q,Notifications:z,modelIntrospection:j}=t,H={};x&&(H.Analytics={Pinpoint:{appId:x,region:E}});const{InAppMessaging:W,Push:se}=z??{};if(W?.AWSPinpoint||se?.AWSPinpoint){if(W?.AWSPinpoint){const{appId:X,region:G}=W.AWSPinpoint;H.Notifications={InAppMessaging:{Pinpoint:{appId:X,region:G}}}}if(se?.AWSPinpoint){const{appId:X,region:G}=se.AWSPinpoint;H.Notifications={...H.Notifications,PushNotification:{Pinpoint:{appId:X,region:G}}}}}if(Array.isArray(s)&&(H.Interactions={LexV1:Object.fromEntries(s.map(X=>[X.name,X]))}),r){const X=QW[n];X||XW.debug(`Invalid authentication type ${n}. Falling back to IAM.`),H.API={GraphQL:{endpoint:r,apiKey:e,region:a,defaultAuthMode:X??"iam"}},j&&(H.API.GraphQL.modelIntrospection=j)}const $=c?{status:c&&c.toLowerCase(),totpEnabled:f?.includes("TOTP")??!1,smsEnabled:f?.includes("SMS")??!1}:void 0,Q=h?{minLength:h.passwordPolicyMinLength,requireLowercase:h.passwordPolicyCharacters?.includes("REQUIRES_LOWERCASE")??!1,requireUppercase:h.passwordPolicyCharacters?.includes("REQUIRES_UPPERCASE")??!1,requireNumbers:h.passwordPolicyCharacters?.includes("REQUIRES_NUMBERS")??!1,requireSpecialCharacters:h.passwordPolicyCharacters?.includes("REQUIRES_SYMBOLS")??!1}:void 0,he=Array.from(new Set([...m??[],...g??[]])).reduce((X,G)=>({...X,[G.toLowerCase()]:{required:!0}}),{}),xe=S?.includes("EMAIL")??!1,D=S?.includes("PHONE_NUMBER")??!1;(i||N)&&(H.Auth={Cognito:{identityPoolId:i,allowGuestAccess:w!=="enable",signUpVerificationMethod:u,userAttributes:he,userPoolClientId:O,userPoolId:N,mfa:$,passwordFormat:Q,loginWith:{username:!(xe||D),email:xe,phone:D}}});const Z=P?Object.keys(P).length>0:!1,K=y?y.length>0:!1;if(H.Auth&&Z&&(H.Auth.Cognito.loginWith={...H.Auth.Cognito.loginWith,oauth:{...eV(P),...K&&{providers:tV(y)}}}),k&&(H.Storage={S3:{bucket:k,region:A,dangerouslyConnectToHttpEndpointForTesting:R}}),I){const{amazon_location_service:X}=I;H.Geo={LocationService:{maps:X.maps,geofenceCollections:X.geofenceCollections,searchIndices:X.search_indices,region:X.region}}}if(q&&(H.API={...H.API,REST:q.reduce((X,G)=>{const{name:ue,endpoint:oe,region:ce,service:be}=G;return{...X,[ue]:{endpoint:oe,...be?{service:be}:void 0,...ce?{region:ce}:void 0}}},{})}),U){const{VoiceId:X}=U?.convert?.speechGenerator?.defaults??{};H.Predictions=X?{...U,convert:{...U.convert,speechGenerator:{...U.convert.speechGenerator,defaults:{voiceId:X}}}}:U}return H},z4=t=>t?.split(",")??[],eV=({domain:t,scope:e,redirectSignIn:n,redirectSignOut:r,responseType:a})=>({domain:t,scopes:e,redirectSignIn:z4(n),redirectSignOut:z4(r),responseType:a}),tV=t=>t.map(e=>{const n=e.toLowerCase();return n.charAt(0).toUpperCase()+n.slice(1)}),uD=Symbol("oauth-listener"),nr=[];for(let t=0;t<256;++t)nr.push((t+256).toString(16).slice(1));function nV(t,e=0){return(nr[t[e+0]]+nr[t[e+1]]+nr[t[e+2]]+nr[t[e+3]]+"-"+nr[t[e+4]]+nr[t[e+5]]+"-"+nr[t[e+6]]+nr[t[e+7]]+"-"+nr[t[e+8]]+nr[t[e+9]]+"-"+nr[t[e+10]]+nr[t[e+11]]+nr[t[e+12]]+nr[t[e+13]]+nr[t[e+14]]+nr[t[e+15]]).toLowerCase()}let fS;const rV=new Uint8Array(16);function aV(){if(!fS){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");fS=crypto.getRandomValues.bind(crypto)}return fS(rV)}const sV=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),j4={randomUUID:sV};function oV(t,e,n){if(j4.randomUUID&&!e&&!t)return j4.randomUUID();t=t||{};const r=t.random??t.rng?.()??aV();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,e){if(n=n||0,n<0||n+16>e.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let a=0;a<16;++a)e[n+a]=r[a];return e}return nV(r)}function iV(t){const{version:e}=t;return e?e.startsWith("1"):!1}function lV(t){if(!t)return;const{bucket_name:e,aws_region:n,buckets:r}=t;return{S3:{bucket:e,region:n,buckets:r&&bV(r)}}}function uV(t){if(!t)return;const{user_pool_id:e,user_pool_client_id:n,identity_pool_id:r,password_policy:a,mfa_configuration:s,mfa_methods:i,unauthenticated_identities_enabled:u,oauth:c,username_attributes:f,standard_required_attributes:h,groups:m,passwordless:g}=t,y={Cognito:{userPoolId:e,userPoolClientId:n,groups:m}};return r&&(y.Cognito={...y.Cognito,identityPoolId:r}),a&&(y.Cognito.passwordFormat={requireLowercase:a.require_lowercase,requireNumbers:a.require_numbers,requireUppercase:a.require_uppercase,requireSpecialCharacters:a.require_symbols,minLength:a.min_length??6}),s&&(y.Cognito.mfa={status:yV(s),smsEnabled:i?.includes("SMS"),totpEnabled:i?.includes("TOTP")}),u&&(y.Cognito.allowGuestAccess=u),c&&(y.Cognito.loginWith={oauth:{domain:c.domain,redirectSignIn:c.redirect_sign_in_uri,redirectSignOut:c.redirect_sign_out_uri,responseType:c.response_type==="token"?"token":"code",scopes:c.scopes,providers:vV(c.identity_providers)}}),f&&(y.Cognito.loginWith={...y.Cognito.loginWith,email:f.includes("email"),phone:f.includes("phone_number"),username:f.includes("username")}),h&&(y.Cognito.userAttributes=h.reduce((S,w)=>({...S,[w]:{required:!0}}),{})),g&&(y.Cognito.passwordless={emailOtpEnabled:g.email_otp_enabled,smsOtpEnabled:g.sms_otp_enabled,webAuthn:g.web_authn?{relyingPartyId:g.web_authn.relying_party_id,userVerification:g.web_authn.user_verification}:void 0,preferredChallenge:g.preferred_challenge}),y}function cV(t){if(!t?.amazon_pinpoint)return;const{amazon_pinpoint:e}=t;return{Pinpoint:{appId:e.app_id,region:e.aws_region}}}function dV(t){if(!t)return;const{aws_region:e,geofence_collections:n,maps:r,search_indices:a}=t;return{LocationService:{region:e,searchIndices:a,geofenceCollections:n,maps:r}}}function fV(t){if(!t)return;const{aws_region:e,default_authorization_type:n,url:r,api_key:a,model_introspection:s}=t;return{GraphQL:{endpoint:r,defaultAuthMode:cD(n),region:e,apiKey:a,modelIntrospection:s}}}function hV(t){if(!t?.events)return;const{url:e,aws_region:n,api_key:r,default_authorization_type:a}=t.events;return{Events:{endpoint:e,defaultAuthMode:cD(a),region:n,apiKey:r}}}function pV(t){if(!t)return;const{aws_region:e,channels:n,amazon_pinpoint_app_id:r}=t,a=n.includes("IN_APP_MESSAGING"),s=n.includes("APNS")||n.includes("FCM");if(!(a||s))return;const i={};return a&&(i.InAppMessaging={Pinpoint:{appId:r,region:e}}),s&&(i.PushNotification={Pinpoint:{appId:r,region:e}}),i}function mV(t){const e={};if(t.storage&&(e.Storage=lV(t.storage)),t.auth&&(e.Auth=uV(t.auth)),t.analytics&&(e.Analytics=cV(t.analytics)),t.geo&&(e.Geo=dV(t.geo)),t.data&&(e.API=fV(t.data)),t.custom){const n=hV(t.custom);n&&"Events"in n&&(e.API={...e.API,...n})}return t.notifications&&(e.Notifications=pV(t.notifications)),e}const gV={AMAZON_COGNITO_USER_POOLS:"userPool",API_KEY:"apiKey",AWS_IAM:"iam",AWS_LAMBDA:"lambda",OPENID_CONNECT:"oidc"};function cD(t){return gV[t]}const F4={GOOGLE:"Google",LOGIN_WITH_AMAZON:"Amazon",FACEBOOK:"Facebook",SIGN_IN_WITH_APPLE:"Apple"};function vV(t=[]){return t.reduce((e,n)=>(F4[n]!==void 0&&e.push(F4[n]),e),[])}function yV(t){return t==="OPTIONAL"?"optional":t==="REQUIRED"?"on":"off"}function bV(t){const e={};return t.forEach(({name:n,bucket_name:r,aws_region:a,paths:s})=>{if(n in e)throw new Error(`Duplicate friendly name found: ${n}. Name must be unique.`);const i=s?Object.entries(s).reduce((u,[c,f])=>(f!==void 0&&(u[c]=f),u),{}):void 0;e[n]={bucketName:r,region:a,paths:i}}),e}const dD=t=>Object.keys(t).some(e=>e.startsWith("aws_"))?JW(t):iV(t)?mV(t):t;var B4=function(){return B4=Object.assign||function(e){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},B4.apply(this,arguments)};function ZTe(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]]);return n}function SV(t,e,n,r){function a(s){return s instanceof n?s:new n(function(i){i(s)})}return new(n||(n=Promise))(function(s,i){function u(h){try{f(r.next(h))}catch(m){i(m)}}function c(h){try{f(r.throw(h))}catch(m){i(m)}}function f(h){h.done?s(h.value):a(h.value).then(u,c)}f((r=r.apply(t,e||[])).next())})}function wV(t,e){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,a,s,i=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return i.next=u(0),i.throw=u(1),i.return=u(2),typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(f){return function(h){return c([f,h])}}function c(f){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,f[0]&&(n=0)),n;)try{if(r=1,a&&(s=f[0]&2?a.return:f[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,f[1])).done)return s;switch(a=0,s&&(f=[f[0]&2,s.value]),f[0]){case 0:case 1:s=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,a=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!s||f[1]>s[0]&&f[1]<s[3])){n.label=f[1];break}if(f[0]===6&&n.label<s[1]){n.label=s[1],s=f;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(f);break}s[2]&&n.ops.pop(),n.trys.pop();continue}f=e.call(t,n)}catch(h){f=[6,h],a=0}finally{r=s=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}function XTe(t,e,n){if(n||arguments.length===2)for(var r=0,a=e.length,s;r<a;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return t.concat(s||Array.prototype.slice.call(e))}var ka=64,xV=32,CV=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),EV=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],_V=Math.pow(2,53)-1,n0=(function(){function t(){this.state=Int32Array.from(EV),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return t.prototype.update=function(e){if(this.finished)throw new Error("Attempted to update an already finished hash.");var n=0,r=e.byteLength;if(this.bytesHashed+=r,this.bytesHashed*8>_V)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=e[n++],r--,this.bufferLength===ka&&(this.hashBuffer(),this.bufferLength=0)},t.prototype.digest=function(){if(!this.finished){var e=this.bytesHashed*8,n=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),r=this.bufferLength;if(n.setUint8(this.bufferLength++,128),r%ka>=ka-8){for(var a=this.bufferLength;a<ka;a++)n.setUint8(a,0);this.hashBuffer(),this.bufferLength=0}for(var a=this.bufferLength;a<ka-8;a++)n.setUint8(a,0);n.setUint32(ka-8,Math.floor(e/4294967296),!0),n.setUint32(ka-4,e),this.hashBuffer(),this.finished=!0}for(var s=new Uint8Array(xV),a=0;a<8;a++)s[a*4]=this.state[a]>>>24&255,s[a*4+1]=this.state[a]>>>16&255,s[a*4+2]=this.state[a]>>>8&255,s[a*4+3]=this.state[a]>>>0&255;return s},t.prototype.hashBuffer=function(){for(var e=this,n=e.buffer,r=e.state,a=r[0],s=r[1],i=r[2],u=r[3],c=r[4],f=r[5],h=r[6],m=r[7],g=0;g<ka;g++){if(g<16)this.temp[g]=(n[g*4]&255)<<24|(n[g*4+1]&255)<<16|(n[g*4+2]&255)<<8|n[g*4+3]&255;else{var y=this.temp[g-2],S=(y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10;y=this.temp[g-15];var w=(y>>>7|y<<25)^(y>>>18|y<<14)^y>>>3;this.temp[g]=(S+this.temp[g-7]|0)+(w+this.temp[g-16]|0)}var x=(((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&f^~c&h)|0)+(m+(CV[g]+this.temp[g]|0)|0)|0,E=((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+(a&s^a&i^s&i)|0;m=h,h=f,f=c,c=u+x|0,u=i,i=s,s=a,a=x+E|0}r[0]+=a,r[1]+=s,r[2]+=i,r[3]+=u,r[4]+=c,r[5]+=f,r[6]+=h,r[7]+=m},t})();const kV=t=>new TextEncoder().encode(t);var AV=typeof Buffer<"u"&&Buffer.from?function(t){return Buffer.from(t,"utf8")}:kV;function fD(t){return t instanceof Uint8Array?t:typeof t=="string"?AV(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t)}function TV(t){return typeof t=="string"?t.length===0:t.byteLength===0}var Gl=(function(){function t(e){this.secret=e,this.hash=new n0,this.reset()}return t.prototype.update=function(e){if(!(TV(e)||this.error))try{this.hash.update(fD(e))}catch(n){this.error=n}},t.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},t.prototype.digest=function(){return SV(this,void 0,void 0,function(){return wV(this,function(e){return[2,this.digestSync()]})})},t.prototype.reset=function(){if(this.hash=new n0,this.secret){this.outer=new n0;var e=RV(this.secret),n=new Uint8Array(ka);n.set(e);for(var r=0;r<ka;r++)e[r]^=54,n[r]^=92;this.hash.update(e),this.outer.update(n);for(var r=0;r<e.byteLength;r++)e[r]=0}},t})();function RV(t){var e=fD(t);if(e.byteLength>ka){var n=new n0;n.update(e),e=n.digest()}var r=new Uint8Array(ka);return r.set(e),r}for(let t=0;t<256;t++){let e=t.toString(16).toLowerCase();e.length===1&&(e=`0${e}`)}var kn;(function(t){t.WebUnknown="0",t.React="1",t.NextJs="2",t.Angular="3",t.VueJs="4",t.Nuxt="5",t.Svelte="6",t.ServerSideUnknown="100",t.ReactSSR="101",t.NextJsSSR="102",t.AngularSSR="103",t.VueJsSSR="104",t.NuxtSSR="105",t.SvelteSSR="106",t.ReactNative="201",t.Expo="202"})(kn||(kn={}));var Oa;(function(t){t.AI="ai",t.API="api",t.Auth="auth",t.Analytics="analytics",t.DataStore="datastore",t.Geo="geo",t.InAppMessaging="inappmessaging",t.Interactions="interactions",t.Predictions="predictions",t.PubSub="pubsub",t.PushNotification="pushnotification",t.Storage="storage"})(Oa||(Oa={}));var fo;(function(t){t.CreateConversation="1",t.GetConversation="2",t.ListConversations="3",t.DeleteConversation="4",t.SendMessage="5",t.ListMessages="6",t.OnMessage="7",t.Generation="8",t.UpdateConversation="9"})(fo||(fo={}));var $4;(function(t){t.Record="1",t.IdentifyUser="2"})($4||($4={}));var H4;(function(t){t.GraphQl="1",t.Get="2",t.Post="3",t.Put="4",t.Patch="5",t.Del="6",t.Head="7"})(H4||(H4={}));var Ze;(function(t){t.SignUp="1",t.ConfirmSignUp="2",t.ResendSignUpCode="3",t.SignIn="4",t.FetchMFAPreference="6",t.UpdateMFAPreference="7",t.SetUpTOTP="10",t.VerifyTOTPSetup="11",t.ConfirmSignIn="12",t.DeleteUserAttributes="15",t.DeleteUser="16",t.UpdateUserAttributes="17",t.FetchUserAttributes="18",t.ConfirmUserAttribute="22",t.SignOut="26",t.UpdatePassword="27",t.ResetPassword="28",t.ConfirmResetPassword="29",t.FederatedSignIn="30",t.RememberDevice="32",t.ForgetDevice="33",t.FetchDevices="34",t.SendUserAttributeVerificationCode="35",t.SignInWithRedirect="36",t.StartWebAuthnRegistration="37",t.CompleteWebAuthnRegistration="38",t.ListWebAuthnCredentials="39",t.DeleteWebAuthnCredential="40"})(Ze||(Ze={}));var q4;(function(t){t.Subscribe="1",t.GraphQl="2"})(q4||(q4={}));var mh;(function(t){t.SearchByText="0",t.SearchByCoordinates="1",t.SearchForSuggestions="2",t.SearchByPlaceId="3",t.SaveGeofences="4",t.GetGeofence="5",t.ListGeofences="6",t.DeleteGeofences="7"})(mh||(mh={}));var cE;(function(t){t.SyncMessages="1",t.IdentifyUser="2",t.NotifyMessageInteraction="3"})(cE||(cE={}));var W4;(function(t){t.None="0"})(W4||(W4={}));var V4;(function(t){t.Convert="1",t.Identify="2",t.Interpret="3"})(V4||(V4={}));var G4;(function(t){t.Subscribe="1"})(G4||(G4={}));var K4;(function(t){t.InitializePushNotifications="1",t.IdentifyUser="2"})(K4||(K4={}));var Va;(function(t){t.UploadData="1",t.DownloadData="2",t.List="3",t.Copy="4",t.Remove="5",t.GetProperties="6",t.GetUrl="7",t.GetDataAccess="8",t.ListCallerAccessGrants="9"})(Va||(Va={}));const IV="6.18.0",V1=()=>typeof global<"u",pd=()=>typeof window<"u",hD=()=>typeof document<"u",R_=()=>typeof process<"u",Ih=(t,e)=>!!Object.keys(t).find(n=>n.startsWith(e));var Y4={};function OV(){const t=r=>r.startsWith("_react")||r.startsWith("__react"),e=r=>Object.keys(r).find(t),n=()=>Array.from(document.querySelectorAll("[id]"));return hD()&&n().some(e)}function NV(){return R_()&&typeof Y4<"u"&&!!Object.keys(Y4).find(t=>t.includes("react"))}function MV(){return pd()&&Ih(window,"__VUE")}function PV(){return V1()&&Ih(global,"__VUE")}var Z4={};function DV(){return pd()&&Ih(window,"__SVELTE")}function LV(){return R_()&&typeof Z4<"u"&&!!Object.keys(Z4).find(t=>t.includes("svelte"))}function UV(){return pd()&&window.next&&typeof window.next=="object"}function zV(){return V1()&&(Ih(global,"__next")||Ih(global,"__NEXT"))}function jV(){return pd()&&(window.__NUXT__!==void 0||window.$nuxt!==void 0)}function FV(){return V1()&&typeof global.__NUXT_PATHS__<"u"}var X4={};function BV(){const t=!!(hD()&&document.querySelector("[ng-version]")),e=!!(pd()&&typeof window.ng<"u");return t||e}function $V(){return R_()&&typeof X4=="object"&&X4.npm_lifecycle_script?.startsWith("ng ")||!1}function HV(){return typeof navigator<"u"&&typeof navigator.product<"u"&&navigator.product==="ReactNative"}function qV(){return V1()&&typeof global.expo<"u"}function WV(){return pd()}const VV=[{platform:kn.Expo,detectionMethod:qV},{platform:kn.ReactNative,detectionMethod:HV},{platform:kn.NextJs,detectionMethod:UV},{platform:kn.Nuxt,detectionMethod:jV},{platform:kn.Angular,detectionMethod:BV},{platform:kn.React,detectionMethod:OV},{platform:kn.VueJs,detectionMethod:MV},{platform:kn.Svelte,detectionMethod:DV},{platform:kn.WebUnknown,detectionMethod:WV},{platform:kn.NextJsSSR,detectionMethod:zV},{platform:kn.NuxtSSR,detectionMethod:FV},{platform:kn.ReactSSR,detectionMethod:NV},{platform:kn.VueJsSSR,detectionMethod:PV},{platform:kn.AngularSSR,detectionMethod:$V},{platform:kn.SvelteSSR,detectionMethod:LV}];function GV(){return VV.find(t=>t.detectionMethod())?.platform||kn.ServerSideUnknown}let gh;const hS=[];let dE=!1;const KV=10,YV=10,ZV=1e3,pD=()=>{if(!gh){if(gh=GV(),dE)for(;hS.length;)hS.pop()?.();else hS.forEach(t=>{t()});Q4(kn.ServerSideUnknown,KV),Q4(kn.WebUnknown,YV)}return gh};function XV(){gh=void 0}function Q4(t,e){gh===t&&!dE&&setTimeout(()=>{XV(),dE=!0,setTimeout(pD,ZV)},e)}const wi={},so=t=>{wi[t.category]=t.apis.reduce((r,a)=>({...r,[a]:{refCount:r[a]?.refCount?r[a].refCount+1:1,additionalDetails:t.additionalDetails}}),wi[t.category]??{});let e=!1;return()=>{e||(e=!0,t.apis.forEach(r=>{const a=wi[t.category][r].refCount;a>1?wi[t.category][r].refCount=a-1:(delete wi[t.category][r],Object.keys(wi[t.category]).length||delete wi[t.category])}))}},QV=(t,e)=>wi[t]?.[e]?.additionalDetails,JV="aws-amplify",eG=t=>t.replace(/\+.*/,""),tG=({category:t,action:e}={})=>{const n=[[JV,eG(IV)]];if(t&&n.push([t,e]),n.push(["framework",pD()]),t&&e){const r=QV(t,e);r&&r.forEach(a=>{n.push(a)})}return n},G1=t=>tG(t).map(([r,a])=>r&&a?`${r}/${a}`:r).join(" "),K1=()=>typeof window<"u"&&typeof window.document<"u",J4=new or("Auth");class nG{configure(e,n){this.authConfig=e,this.authOptions=n,e&&e.Cognito?.userPoolEndpoint&&J4.warn(e5("Amazon Cognito User Pool")),e&&e.Cognito?.identityPoolEndpoint&&J4.warn(e5("Amazon Cognito Identity Pool"))}async fetchAuthSession(e={}){let n,r;const a=await this.getTokens(e);return a?(r=a.accessToken?.payload?.sub,n=await this.authOptions?.credentialsProvider?.getCredentialsAndIdentityId({authConfig:this.authConfig,tokens:a,authenticated:!0,forceRefresh:e.forceRefresh})):n=await this.authOptions?.credentialsProvider?.getCredentialsAndIdentityId({authConfig:this.authConfig,authenticated:!1,forceRefresh:e.forceRefresh}),{tokens:a,credentials:n?.credentials,identityId:n?.identityId,userSub:r}}async clearCredentials(){await this.authOptions?.credentialsProvider?.clearCredentialsAndIdentityId()}async getTokens(e){return await this.authOptions?.tokenProvider?.getTokens(e)??void 0}}const e5=t=>`You are using a custom Amazon ${t} endpoint, ensure the endpoint is correct.`;class rG{constructor(){this.oAuthListener=void 0,this.isConfigured=!1,this.resourcesConfig={},this.libraryOptions={},this.Auth=new nG}configure(e,n){const r=dD(e);this.resourcesConfig=r,n&&(this.libraryOptions=n),this.resourcesConfig=lD(this.resourcesConfig),this.Auth.configure(this.resourcesConfig.Auth,this.libraryOptions.Auth),(this.resourcesConfig.Analytics?.Pinpoint||this.resourcesConfig.Notifications?.InAppMessaging?.Pinpoint||this.resourcesConfig.Notifications?.PushNotification?.Pinpoint)&&console.warn("AWS will end support for Amazon Pinpoint on October 30, 2026. The guidance is to use AWS End User Messaging for push notifications and SMS, Amazon Simple Email Service for sending emails, Amazon Connect for campaigns, journeys, endpoints, and engagement analytics. Pinpoint recommends Amazon Kinesis for event collection and mobile analytics."),Is.dispatch("core",{event:"configure",data:this.resourcesConfig},"Configure",Rs),this.notifyOAuthListener(),this.isConfigured=!0}getConfig(){return this.isConfigured||console.warn("Amplify has not been configured. Please call Amplify.configure() before using this service."),this.resourcesConfig}[uD](e){this.resourcesConfig.Auth?.Cognito.loginWith?.oauth?e(this.resourcesConfig.Auth?.Cognito):this.oAuthListener=e}notifyOAuthListener(){!this.resourcesConfig.Auth?.Cognito.loginWith?.oauth||!this.oAuthListener||(this.oAuthListener(this.resourcesConfig.Auth?.Cognito),this.oAuthListener=void 0)}}const qt=new rG,mD=(t,e)=>t.Auth.fetchAuthSession(e),Y1=t=>mD(qt,t);function gD(){return qt.Auth.clearCredentials()}const Z1=t=>{const{headers:e,statusCode:n}=t;return{...aG(t)?t.$metadata:{},httpStatusCode:n,requestId:e["x-amzn-requestid"]??e["x-amzn-request-id"]??e["x-amz-request-id"],extendedRequestId:e["x-amz-id-2"],cfId:e["x-amz-cf-id"]}},aG=t=>typeof t?.$metadata=="object",md=async t=>{if(!t||t.statusCode<300)return;const e=await cp(t),r=(i=>{const[u]=i.toString().split(/[,:]+/);return u.includes("#")?u.split("#")[1]:u})(t.headers["x-amzn-errortype"]??e.code??e.__type??"UnknownError"),a=e.message??e.Message??"Unknown error",s=new Error(a);return Object.assign(s,{name:r,$metadata:Z1(t)})},cp=async t=>{if(!t.body)throw new Error("Missing response payload");const e=await t.body.json();return Object.assign(e,{$metadata:Z1(t)})},In=(t,e,n,r)=>async(a,s)=>{const i={...r,...a},u=await i.endpointResolver(i,s),c=await e(s,u),f=await t(c,{...i});return n(f)},sG=300*1e3;function oG(t=sG){return r=>{const a=2**r*100+100*Math.random();return a>t?!1:a}}const vD=3,t5="amz-sdk-invocation-id",iG="amz-sdk-request",n5=300*1e3,yD=t=>{const n=oG(n5)(t);return n===!1?n5:n},lG=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch","BadRequestException"],uG=t=>!!t&&lG.includes(t),bD=t=>async(e,n)=>{const r=n??await t(e)??void 0,a=r?.code||r?.name,s=e?.statusCode;return{retryable:hG(n)||fG(s,a)||uG(a)||pG(s,a)}},cG=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException"],dG=["TimeoutError","RequestTimeout","RequestTimeoutException"],fG=(t,e)=>t===429||!!e&&cG.includes(e),hG=t=>[Fi.NetworkError,"ERR_NETWORK"].includes(t?.name),pG=(t,e)=>!!t&&[500,502,503,504].includes(t)||!!e&&dG.includes(e),SD="cognito-identity",wD={service:SD,retryDecider:bD(md),computeDelay:yD,cache:"no-store"},mG=({maxAttempts:t=vD,retryDecider:e,computeDelay:n,abortSignal:r})=>{if(t<1)throw new Error("maxAttempts must be greater than 0");return(a,s)=>async function(u){let c,f=s.attemptsCount??0,h;const m=()=>{if(h)return r5(h,f),h;throw r5(c,f),c};for(;!r?.aborted&&f<t;){try{h=await a(u),c=void 0}catch(S){c=S,h=void 0}f=(s.attemptsCount??0)>f?s.attemptsCount??0:f+1,s.attemptsCount=f;const{isCredentialsExpiredError:g,retryable:y}=await e(h,c,s);if(y){if(s.isCredentialsExpired=!!g,!r?.aborted&&f<t){const S=n(f);await gG(S,r)}continue}else return m()}if(r?.aborted)throw new Error("Request aborted.");return m()}},gG=(t,e)=>{if(e?.aborted)return Promise.resolve();let n,r;const a=new Promise(s=>{r=s,n=setTimeout(s,t)});return e?.addEventListener("abort",function s(i){clearTimeout(n),e?.removeEventListener("abort",s),r()}),a},r5=(t,e)=>{Object.prototype.toString.call(t)==="[object Object]"&&(t.$metadata={...t.$metadata??{},attempts:e})},vG=oV,yG=()=>t=>async function(n){return n.headers[t5]||(n.headers[t5]=vG()),t(n)},bG=({maxAttempts:t=vD})=>(e,n)=>async function(a){const s=n.attemptsCount??0;return a.headers[iG]=`attempt=${s+1}; max=${t}`,e(a)},SG=({userAgentHeader:t="x-amz-user-agent",userAgentValue:e=""})=>n=>async function(a){if(e.trim().length===0)return await n(a);{const s=t.toLowerCase();return a.headers[s]=a.headers[s]?`${a.headers[s]} ${e}`:e,await n(a)}},I_=(t,e)=>(n,r)=>{const a={};let s=i=>t(i,r);for(let i=e.length-1;i>=0;i--){const u=e[i];s=u(r)(s,a)}return s(n)},pS=t=>{let e;return()=>(e||(e=t()),e)},wG=t=>!["HEAD","GET"].includes(t.toUpperCase()),xG=async({url:t,method:e,headers:n,body:r},{abortSignal:a,cache:s,withCrossDomainCredentials:i})=>{let u;try{u=await fetch(t,{method:e,headers:n,body:wG(e)?r:void 0,signal:a,cache:s,credentials:i?"include":"same-origin"})}catch(m){throw m instanceof TypeError?new Hr({name:Fi.NetworkError,message:"A network error has occurred.",underlyingError:m}):m}const c={};u.headers?.forEach((m,g)=>{c[g.toLowerCase()]=m});const f={statusCode:u.status,headers:c,body:null},h=Object.assign(u.body??{},{text:pS(()=>u.text()),blob:pS(()=>u.blob()),json:pS(()=>u.json())});return{...f,body:h}},xD=I_(xG,[SG,yG,mG,bG]),CG=()=>t=>async function(n){return n.headers["cache-control"]="no-store",t(n)},CD=I_(xD,[CG]),ED=t=>(e,n)=>{const r=EG(t),a=JSON.stringify(e);return _G(n,r,a)},EG=t=>({"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityService.${t}`}),_G=({url:t},e,n)=>({headers:e,url:t,body:n,method:"POST"}),a5=t=>In(CD,ED("GetCredentialsForIdentity"),kG,{...wD,...t,userAgentValue:G1()}),kG=async t=>{if(t.statusCode>=300)throw await md(t);const e=await cp(t);return{IdentityId:e.IdentityId,Credentials:AG(e.Credentials),$metadata:Z1(t)}},AG=({Expiration:t,...e}={})=>({...e,Expiration:t&&new Date(t*1e3)}),TG=t=>In(CD,ED("GetId"),RG,{...wD,...t,userAgentValue:G1()}),RG=async t=>{if(t.statusCode>=300)throw await md(t);return{IdentityId:(await cp(t)).IdentityId,$metadata:Z1(t)}},_D={id:"aws",outputs:{dnsSuffix:"amazonaws.com"},regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",regions:["aws-global"]},IG={partitions:[_D,{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn"},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:["aws-cn-global"]}]},kD=t=>{const{partitions:e}=IG;for(const{regions:n,outputs:r,regionRegex:a}of e){const s=new RegExp(a);if(n.includes(t)||s.test(t))return r.dnsSuffix}return _D.outputs.dnsSuffix},Qi=URL,OG=({region:t})=>({url:new Qi(`https://${SD}.${t}.${kD(t)}`)});class th extends Hr{constructor(){super({name:Fi.PlatformNotSupported,message:"Function not supported on current platform"})}}class AD{constructor(e){this.storage=e}async setItem(e,n){if(!this.storage)throw new th;this.storage.setItem(e,n)}async getItem(e){if(!this.storage)throw new th;return this.storage.getItem(e)}async removeItem(e){if(!this.storage)throw new th;this.storage.removeItem(e)}async clear(){if(!this.storage)throw new th;this.storage.clear()}}class TD{constructor(){this.storage=new Map}get length(){return this.storage.size}key(e){return e>this.length-1?null:Array.from(this.storage.keys())[e]}setItem(e,n){this.storage.set(e,n)}getItem(e){return this.storage.get(e)??null}removeItem(e){this.storage.delete(e)}clear(){this.storage.clear()}}const RD=new or("CoreStorageUtils"),NG=()=>{try{if(typeof window<"u"&&window.localStorage)return window.localStorage}catch{RD.info("localStorage not found. InMemoryStorage is used as a fallback.")}return new TD},ID=()=>{try{if(typeof window<"u"&&window.sessionStorage)return window.sessionStorage.getItem("test"),window.sessionStorage;throw new Error("sessionStorage is not defined")}catch{return RD.info("sessionStorage not found. InMemoryStorage is used as a fallback."),new TD}};class MG extends AD{constructor(){super(NG())}}class PG extends AD{constructor(){super(ID())}}class DG{constructor(e){this._storage=e}get storage(){if(!this._storage)throw new th;return this._storage}setItem(e,n){this.storage.setItem(e,n)}getItem(e){return this.storage.getItem(e)}removeItem(e){this.storage.removeItem(e)}clear(){this.storage.clear()}}class LG extends DG{constructor(){super(ID())}}function Zm(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)r!=="__proto__"&&(t[r]=n[r])}return t}var UG={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function fE(t,e){function n(a,s,i){if(!(typeof document>"u")){i=Zm({},e,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),a=encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var u="";for(var c in i)i[c]&&(u+="; "+c,i[c]!==!0&&(u+="="+i[c].split(";")[0]));return document.cookie=a+"="+t.write(s,a)+u}}function r(a){if(!(typeof document>"u"||arguments.length&&!a)){for(var s=document.cookie?document.cookie.split("; "):[],i={},u=0;u<s.length;u++){var c=s[u].split("="),f=c.slice(1).join("=");try{var h=decodeURIComponent(c[0]);if(h in i||(i[h]=t.read(f,h)),a===h)break}catch{}}return a?i[a]:i}}return Object.create({set:n,get:r,remove:function(a,s){n(a,"",Zm({},s,{expires:-1}))},withAttributes:function(a){return fE(this.converter,Zm({},this.attributes,a))},withConverter:function(a){return fE(Zm({},this.converter,a),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var Xm=fE(UG,{path:"/"});class zG{constructor(e={}){const{path:n,domain:r,expires:a,sameSite:s,secure:i}=e;if(this.domain=r,this.path=n||"/",this.expires=Object.prototype.hasOwnProperty.call(e,"expires")?a:365,this.secure=Object.prototype.hasOwnProperty.call(e,"secure")?i:!0,Object.prototype.hasOwnProperty.call(e,"sameSite")){if(!s||!["strict","lax","none"].includes(s))throw new Error('The sameSite value of cookieStorage must be "lax", "strict" or "none".');if(s==="none"&&!this.secure)throw new Error("sameSite = None requires the Secure attribute in latest browser versions.");this.sameSite=s}}async setItem(e,n){Xm.set(e,n,this.getData())}async getItem(e){return Xm.get(e)??null}async removeItem(e){Xm.remove(e,this.getData())}async clear(){const e=Xm.get(),n=Object.keys(e).map(r=>this.removeItem(r));await Promise.all(n)}getData(){return{path:this.path,expires:this.expires,domain:this.domain,secure:this.secure,...this.sameSite&&{sameSite:this.sameSite}}}}const dp=new MG;new PG;const yo=new LG,jG=new or("I18n");let FG=class{constructor(){this._options=null,this._lang=null,this._dict={}}setDefaultLanguage(){!this._lang&&typeof window<"u"&&window&&window.navigator&&(this._lang=window.navigator.language),jG.debug(this._lang)}setLanguage(e){this._lang=e}get(e,n=void 0){if(this.setDefaultLanguage(),!this._lang)return typeof n<"u"?n:e;const r=this._lang;let a=this.getByLanguage(e,r);return a||(r.indexOf("-")>0&&(a=this.getByLanguage(e,r.split("-")[0])),a)?a:typeof n<"u"?n:e}getByLanguage(e,n,r=null){if(!n)return r;const a=this._dict[n];return a?a[e]:r}putVocabulariesForLanguage(e,n){let r=this._dict[e];r||(r=this._dict[e]={}),this._dict[e]={...r,...n}}putVocabularies(e){Object.keys(e).forEach(n=>{this.putVocabulariesForLanguage(n,e[n])})}};var Rl;(function(t){t.NotConfigured="NotConfigured"})(Rl||(Rl={}));const BG={[Rl.NotConfigured]:{message:"i18n is not configured."}},Qm=q1(BG),s5=new or("I18n");let Jm={language:null},$a=null,OD=class kl{static configure(e){return s5.debug("configure I18n"),e&&(Jm=Object.assign({},Jm,e.I18n||e),kl.createInstance()),Jm}static getModuleName(){return"I18n"}static createInstance(){s5.debug("create I18n instance"),!$a&&($a=new FG)}static setLanguage(e){kl.checkConfig(),Qm(!!$a,Rl.NotConfigured),$a.setLanguage(e)}static get(e,n){return kl.checkConfig(),Qm(!!$a,Rl.NotConfigured),$a.get(e,n)}static putVocabulariesForLanguage(e,n){kl.checkConfig(),Qm(!!$a,Rl.NotConfigured),$a.putVocabulariesForLanguage(e,n)}static putVocabularies(e){kl.checkConfig(),Qm(!!$a,Rl.NotConfigured),$a.putVocabularies(e)}static checkConfig(){return $a||kl.createInstance(),!0}};OD.createInstance();const $G=t=>{const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=[],r=new Uint8Array(t);k_().getRandomValues(r);for(const a of r)n.push(e[a%e.length]);return n.join("")};function HG(t){return(t.match(/.{2}/g)||[]).map(n=>String.fromCharCode(parseInt(n,16))).join("")}function qG(t){return t.split("").map(e=>e.charCodeAt(0).toString(16).padStart(2,"0")).join("")}const WG=t=>{let e;return async(...n)=>e||(e=new Promise((r,a)=>{t(...n).then(s=>{r(s)}).catch(s=>{a(s)}).finally(()=>{e=void 0})}),e)};function o5({expiresAt:t,clockDrift:e,tolerance:n=5e3}){return Date.now()+e+n>t}const VG=async()=>{const{userAgentData:t}=navigator;if(!t)return navigator.userAgent;const{platform:e="",platformVersion:n="",model:r="",architecture:a="",fullVersionList:s=[]}=await t.getHighEntropyValues(["platform","platformVersion","architecture","model","fullVersionList"]),i=s.map(c=>`${c.brand}/${c.version}`).join(";");return[e,n,a,r,e,i].filter(c=>c).join(" ")||navigator.userAgent};function GG(t){return Array.from(t,e=>String.fromCodePoint(e)).join("")}const Kc={convert(t,e={urlSafe:!1,skipPadding:!1}){const n=typeof t=="string"?t:GG(t);let r=KW()(n);return e.urlSafe&&(r=r.replace(/\+/g,"-").replace(/\//g,"_")),e.skipPadding&&(r=r.replace(/=/g,"")),r}};function KG(){return k_().getRandomValues(new Uint32Array(1))[0]}function YG(t){const{words:e}=t,{sigBytes:n}=t,r=[];for(let a=0;a<n;a++){const s=e[a>>>2]>>>24-a%4*8&255;r.push((s>>>4).toString(16)),r.push((s&15).toString(16))}return r.join("")}class O_{constructor(e,n){this.words=[];let r=e;r=this.words=r||[],n!==void 0?this.sigBytes=n:this.sigBytes=r.length*4}random(e){const n=[];for(let r=0;r<e;r+=4)n.push(KG());return new O_(n,e)}toString(){return YG(this)}}var Ye;(function(t){t.EmptySignInUsername="EmptySignInUsername",t.EmptySignInPassword="EmptySignInPassword",t.CustomAuthSignInPassword="CustomAuthSignInPassword",t.EmptySignUpUsername="EmptySignUpUsername",t.EmptySignUpPassword="EmptySignUpPassword",t.EmptyConfirmSignUpUsername="EmptyConfirmSignUpUsername",t.EmptyConfirmSignUpCode="EmptyConfirmSignUpCode",t.EmptyResendSignUpCodeUsername="EmptyresendSignUpCodeUsername",t.EmptyChallengeResponse="EmptyChallengeResponse",t.EmptyConfirmResetPasswordUsername="EmptyConfirmResetPasswordUsername",t.EmptyConfirmResetPasswordNewPassword="EmptyConfirmResetPasswordNewPassword",t.EmptyConfirmResetPasswordConfirmationCode="EmptyConfirmResetPasswordConfirmationCode",t.EmptyResetPasswordUsername="EmptyResetPasswordUsername",t.EmptyVerifyTOTPSetupCode="EmptyVerifyTOTPSetupCode",t.EmptyConfirmUserAttributeCode="EmptyConfirmUserAttributeCode",t.IncorrectMFAMethod="IncorrectMFAMethod",t.EmptyUpdatePassword="EmptyUpdatePassword",t.InvalidPreferredChallenge="InvalidPreferredChallenge"})(Ye||(Ye={}));const ND={[Ye.EmptyChallengeResponse]:{message:"challengeResponse is required to confirmSignIn"},[Ye.EmptyConfirmResetPasswordUsername]:{message:"username is required to confirmResetPassword"},[Ye.EmptyConfirmSignUpCode]:{message:"code is required to confirmSignUp"},[Ye.EmptyConfirmSignUpUsername]:{message:"username is required to confirmSignUp"},[Ye.EmptyConfirmResetPasswordConfirmationCode]:{message:"confirmationCode is required to confirmResetPassword"},[Ye.EmptyConfirmResetPasswordNewPassword]:{message:"newPassword is required to confirmResetPassword"},[Ye.EmptyResendSignUpCodeUsername]:{message:"username is required to confirmSignUp"},[Ye.EmptyResetPasswordUsername]:{message:"username is required to resetPassword"},[Ye.EmptySignInPassword]:{message:"password is required to signIn"},[Ye.EmptySignInUsername]:{message:"username is required to signIn"},[Ye.EmptySignUpPassword]:{message:"password is required to signUp"},[Ye.EmptySignUpUsername]:{message:"username is required to signUp"},[Ye.CustomAuthSignInPassword]:{message:"A password is not needed when signing in with CUSTOM_WITHOUT_SRP",recoverySuggestion:"Do not include a password in your signIn call."},[Ye.IncorrectMFAMethod]:{message:"Incorrect MFA method was chosen. It should be either SMS, TOTP, or EMAIL",recoverySuggestion:"Try to pass SMS, TOTP, or EMAIL as the challengeResponse"},[Ye.EmptyVerifyTOTPSetupCode]:{message:"code is required to verifyTotpSetup"},[Ye.EmptyUpdatePassword]:{message:"oldPassword and newPassword are required to changePassword"},[Ye.EmptyConfirmUserAttributeCode]:{message:"confirmation code is required to confirmUserAttribute"},[Ye.InvalidPreferredChallenge]:{message:"The preferred challenge is not enabled in your backend configuration",recoverySuggestion:"Ensure the authentication method is enabled in your Amplify backend configuration"}};var Hn;(function(t){t.DEFAULT_MSG="Authentication Error",t.EMPTY_EMAIL="Email cannot be empty",t.EMPTY_PHONE="Phone number cannot be empty",t.EMPTY_USERNAME="Username cannot be empty",t.INVALID_USERNAME="The username should either be a string or one of the sign in types",t.EMPTY_PASSWORD="Password cannot be empty",t.EMPTY_CODE="Confirmation code cannot be empty",t.SIGN_UP_ERROR="Error creating account",t.NO_MFA="No valid MFA method provided",t.INVALID_MFA="Invalid MFA type",t.EMPTY_CHALLENGE="Challenge response cannot be empty",t.NO_USER_SESSION="Failed to get the session because the user is empty",t.NETWORK_ERROR="Network Error",t.DEVICE_CONFIG="Device tracking has not been configured in this User Pool",t.AUTOSIGNIN_ERROR="Please use your credentials to sign in",t.OAUTH_ERROR="Couldn't finish OAuth flow, check your User Pool HostedUI settings"})(Hn||(Hn={}));var Os;(function(t){t.SignInException="SignInException",t.OAuthSignInError="OAuthSignInException"})(Os||(Os={}));class ze extends Hr{constructor(e){super(e),this.constructor=ze,Object.setPrototypeOf(this,ze.prototype)}}function pn(t,e){const{message:n,recoverySuggestion:r}=ND[e];if(!t)throw new ze({name:e,message:n,recoverySuggestion:r})}function bt(t){const e=t?.split("_")[0];if(!t||t.indexOf("_")<0||!e||typeof e!="string")throw new ze({name:"InvalidUserPoolId",message:"Invalid user pool id provided."});return e}function hE(t){if(!t||!t.includes(":"))throw new ze({name:"InvalidIdentityPoolIdException",message:"Invalid identity pool id provided.",recoverySuggestion:"Make sure a valid identityPoolId is given in the config."});return t.split(":")[0]}function i5(t){return Object.entries(t).map(([e,n])=>({Name:e,Value:n}))}function ZG(t){const e={};return t?.forEach(n=>{n.Name&&(e[n.Name]=n.Value)}),e}var l5;(function(t){t.ConcurrentModificationException="ConcurrentModificationException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.NotAuthorizedException="NotAuthorizedException",t.ResourceNotFoundException="ResourceNotFoundException",t.SoftwareTokenMFANotFoundException="SoftwareTokenMFANotFoundException"})(l5||(l5={}));var u5;(function(t){t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.InvalidPasswordException="InvalidPasswordException",t.LimitExceededException="LimitExceededException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(u5||(u5={}));var c5;(function(t){t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidLambdaResponseException="InvalidLambdaResponseException",t.InvalidParameterException="InvalidParameterException",t.InvalidPasswordException="InvalidPasswordException",t.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UsernameExistsException="UsernameExistsException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(c5||(c5={}));var d5;(function(t){t.CodeMismatchException="CodeMismatchException",t.ExpiredCodeException="ExpiredCodeException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidLambdaResponseException="InvalidLambdaResponseException",t.InvalidParameterException="InvalidParameterException",t.InvalidPasswordException="InvalidPasswordException",t.LimitExceededException="LimitExceededException",t.NotAuthorizedException="NotAuthorizedException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyFailedAttemptsException="TooManyFailedAttemptsException",t.TooManyRequestsException="TooManyRequestsException",t.UnexpectedLambdaException="UnexpectedLambdaException",t.UserLambdaValidationException="UserLambdaValidationException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(d5||(d5={}));var f5;(function(t){t.AliasExistsException="AliasExistsException",t.CodeMismatchException="CodeMismatchException",t.ExpiredCodeException="ExpiredCodeException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidLambdaResponseException="InvalidLambdaResponseException",t.InvalidParameterException="InvalidParameterException",t.LimitExceededException="LimitExceededException",t.NotAuthorizedException="NotAuthorizedException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyFailedAttemptsException="TooManyFailedAttemptsException",t.TooManyRequestsException="TooManyRequestsException",t.UnexpectedLambdaException="UnexpectedLambdaException",t.UserLambdaValidationException="UserLambdaValidationException",t.UserNotFoundException="UserNotFoundException"})(f5||(f5={}));var h5;(function(t){t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(h5||(h5={}));var p5;(function(t){t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(p5||(p5={}));var m5;(function(t){t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(m5||(m5={}));var g5;(function(t){t.CodeDeliveryFailureException="CodeDeliveryFailureException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",t.InvalidLambdaResponseException="InvalidLambdaResponseException",t.InvalidParameterException="InvalidParameterException",t.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",t.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",t.LimitExceededException="LimitExceededException",t.NotAuthorizedException="NotAuthorizedException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UnexpectedLambdaException="UnexpectedLambdaException",t.UserLambdaValidationException="UserLambdaValidationException",t.UserNotFoundException="UserNotFoundException"})(g5||(g5={}));var v5;(function(t){t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(v5||(v5={}));var y5;(function(t){t.ExternalServiceException="ExternalServiceException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.LimitExceededException="LimitExceededException",t.NotAuthorizedException="NotAuthorizedException",t.ResourceConflictException="ResourceConflictException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException"})(y5||(y5={}));var b5;(function(t){t.ExternalServiceException="ExternalServiceException",t.InternalErrorException="InternalErrorException",t.InvalidIdentityPoolConfigurationException="InvalidIdentityPoolConfigurationException",t.InvalidParameterException="InvalidParameterException",t.NotAuthorizedException="NotAuthorizedException",t.ResourceConflictException="ResourceConflictException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException"})(b5||(b5={}));var S5;(function(t){t.CodeDeliveryFailureException="CodeDeliveryFailureException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",t.InvalidLambdaResponseException="InvalidLambdaResponseException",t.InvalidParameterException="InvalidParameterException",t.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",t.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",t.LimitExceededException="LimitExceededException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UnexpectedLambdaException="UnexpectedLambdaException",t.UserLambdaValidationException="UserLambdaValidationException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(S5||(S5={}));var w5;(function(t){t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UserNotConfirmedException="UserNotConfirmedException"})(w5||(w5={}));var P0;(function(t){t.PasswordResetRequiredException="PasswordResetRequiredException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidLambdaResponseException="InvalidLambdaResponseException",t.InvalidParameterException="InvalidParameterException",t.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",t.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",t.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",t.NotAuthorizedException="NotAuthorizedException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UnexpectedLambdaException="UnexpectedLambdaException",t.UserLambdaValidationException="UserLambdaValidationException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(P0||(P0={}));var x5;(function(t){t.CodeDeliveryFailureException="CodeDeliveryFailureException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",t.InvalidLambdaResponseException="InvalidLambdaResponseException",t.InvalidParameterException="InvalidParameterException",t.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",t.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",t.LimitExceededException="LimitExceededException",t.NotAuthorizedException="NotAuthorizedException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UnexpectedLambdaException="UnexpectedLambdaException",t.UserLambdaValidationException="UserLambdaValidationException",t.UserNotFoundException="UserNotFoundException"})(x5||(x5={}));var C5;(function(t){t.AliasExistsException="AliasExistsException",t.CodeMismatchException="CodeMismatchException",t.ExpiredCodeException="ExpiredCodeException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidLambdaResponseException="InvalidLambdaResponseException",t.InvalidParameterException="InvalidParameterException",t.InvalidPasswordException="InvalidPasswordException",t.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",t.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",t.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",t.MFAMethodNotFoundException="MFAMethodNotFoundException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.SoftwareTokenMFANotFoundException="SoftwareTokenMFANotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UnexpectedLambdaException="UnexpectedLambdaException",t.UserLambdaValidationException="UserLambdaValidationException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(C5||(C5={}));var E5;(function(t){t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(E5||(E5={}));var pE;(function(t){t.CodeDeliveryFailureException="CodeDeliveryFailureException",t.InternalErrorException="InternalErrorException",t.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",t.InvalidLambdaResponseException="InvalidLambdaResponseException",t.InvalidParameterException="InvalidParameterException",t.InvalidPasswordException="InvalidPasswordException",t.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",t.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",t.NotAuthorizedException="NotAuthorizedException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UnexpectedLambdaException="UnexpectedLambdaException",t.UserLambdaValidationException="UserLambdaValidationException",t.UsernameExistsException="UsernameExistsException"})(pE||(pE={}));var _5;(function(t){t.AliasExistsException="AliasExistsException",t.CodeDeliveryFailureException="CodeDeliveryFailureException",t.CodeMismatchException="CodeMismatchException",t.ExpiredCodeException="ExpiredCodeException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",t.InvalidLambdaResponseException="InvalidLambdaResponseException",t.InvalidParameterException="InvalidParameterException",t.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",t.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UnexpectedLambdaException="UnexpectedLambdaException",t.UserLambdaValidationException="UserLambdaValidationException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(_5||(_5={}));var k5;(function(t){t.CodeMismatchException="CodeMismatchException",t.EnableSoftwareTokenMFAException="EnableSoftwareTokenMFAException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.SoftwareTokenMFANotFoundException="SoftwareTokenMFANotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(k5||(k5={}));var A5;(function(t){t.AliasExistsException="AliasExistsException",t.CodeMismatchException="CodeMismatchException",t.ExpiredCodeException="ExpiredCodeException",t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.LimitExceededException="LimitExceededException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(A5||(A5={}));var T5;(function(t){t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(T5||(T5={}));var R5;(function(t){t.ForbiddenException="ForbiddenException",t.InternalErrorException="InternalErrorException",t.InvalidParameterException="InvalidParameterException",t.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",t.NotAuthorizedException="NotAuthorizedException",t.PasswordResetRequiredException="PasswordResetRequiredException",t.ResourceNotFoundException="ResourceNotFoundException",t.TooManyRequestsException="TooManyRequestsException",t.UserNotConfirmedException="UserNotConfirmedException",t.UserNotFoundException="UserNotFoundException"})(R5||(R5={}));const X1="UserUnAuthenticatedException",XG="UserAlreadyAuthenticatedException",QG="DeviceMetadataNotFoundException",MD="AutoSignInException",JG="InvalidRedirectException",eK="InvalidAppSchemeException",tK="InvalidPreferredRedirectUrlException",nK=new ze({name:JG,message:"signInRedirect or signOutRedirect had an invalid format or was not found.",recoverySuggestion:"Please make sure the signIn/Out redirect in your oauth config is valid."});new ze({name:eK,message:"A valid non-http app scheme was not found in the config.",recoverySuggestion:"Please make sure a valid custom app scheme is present in the config."});new ze({name:tK,message:"The given preferredRedirectUrl does not match any items in the redirectSignOutUrls array from the config.",recoverySuggestion:"Please make sure a matching preferredRedirectUrl is provided."});const rK="InvalidOriginException",aK=new ze({name:rK,message:"redirect is coming from a different origin. The oauth flow needs to be initiated from the same origin",recoverySuggestion:"Please call signInWithRedirect from the same origin."}),sK="OAuthSignOutException",oK="TokenRefreshException",iK="UnexpectedSignInInterruptionException";function gd(t){if(!t||!t.accessToken)throw new ze({name:X1,message:"User needs to be authenticated to call this API.",recoverySuggestion:"Sign in before calling this API again."})}function lK(t){if(!t||!t.idToken)throw new ze({name:X1,message:"User needs to be authenticated to call this API.",recoverySuggestion:"Sign in before calling this API again."})}const uK=new ze({name:oK,message:`Token refresh is not supported when authenticated with the 'implicit grant' (token) oauth flow.
3
3
  Please change your oauth configuration to use 'code grant' flow.`,recoverySuggestion:`Please logout and change your Amplify configuration to use "code grant" flow.
4
4
  E.g { responseType: 'code' }`}),cK=new ze({name:X1,message:"User needs to be authenticated to call this API.",recoverySuggestion:"Sign in before calling this API again."});function PD(t){if(hK(t))throw uK;if(!fK(t))throw cK}function DD(t){if(!t||!t.deviceKey||!t.deviceGroupKey||!t.randomPassword)throw new ze({name:QG,message:"Either deviceKey, deviceGroupKey or secretPassword were not found during the sign-in process.",recoverySuggestion:"Make sure to not clear storage after calling the signIn API."})}const dK={inflightOAuth:"inflightOAuth",oauthSignIn:"oauthSignIn",oauthPKCE:"oauthPKCE",oauthState:"oauthState"};function LD(t){return t?.accessToken||t?.idToken}function fK(t){return LD(t)&&t?.refreshToken}function hK(t){return LD(t)&&!t?.refreshToken}const pK=async t=>{const e=t.getConfig().Auth?.Cognito;ut(e);const n=await t.Auth.getTokens({forceRefresh:!1});gd(n);const{"cognito:username":r,sub:a}=n.idToken?.payload??{},s={username:r,userId:a},i=mK(n);return i&&(s.signInDetails=i),s};function mK(t){return t?.signInDetails}const Q1=async()=>pK(qt),Mt=(t,e)=>G1({category:Oa.Auth,action:t,...e}),Vn=t=>(e,n)=>{const r=gK(t),a=JSON.stringify(e);return vK(n,r,a)},gK=t=>({"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityProviderService.${t}`}),vK=({url:t},e,n)=>({headers:e,url:t,body:n,method:"POST"});function Na(t){if(!t||t.name==="Error"||t instanceof TypeError)throw new ze({name:Fi.Unknown,message:"An unknown error has occurred.",underlyingError:t})}const lr=()=>async t=>{if(t.statusCode>=300){const e=await md(t);throw Na(e),new ze({name:e.name,message:e.message,metadata:e.$metadata})}return cp(t)},yK=()=>(t,e)=>async function(r){return r.headers={...r.headers,"cache-control":"no-store",...await qt.libraryOptions?.Auth?.headers?.()},t(r)},Gn=I_(xD,[yK]),UD="cognito-idp",Kn={service:UD,retryDecider:bD(md),computeDelay:yD,get userAgentValue(){return G1()},cache:"no-store"},fp=t=>In(Gn,Vn("InitiateAuth"),lr(),{...Kn,...t}),ua=t=>In(Gn,Vn("RespondToAuthChallenge"),lr(),{...Kn,...t}),bK=t=>In(Gn,Vn("VerifySoftwareToken"),lr(),{...Kn,...t}),SK=t=>In(Gn,Vn("AssociateSoftwareToken"),lr(),{...Kn,...t}),wK=({region:t})=>({url:new Qi(`https://${UD}.${t}.${kD(t)}`)}),St=({endpointOverride:t})=>e=>t?{url:new Qi(t)}:wK(e),xK=t=>In(Gn,Vn("GetTokensFromRefreshToken"),lr(),{...Kn,...t}),CK=async({tokens:t,authConfig:e,username:n,clientMetadata:r})=>{ut(e?.Cognito);const{userPoolId:a,userPoolClientId:s,userPoolEndpoint:i}=e.Cognito,u=bt(a);PD(t);const c=xK({endpointResolver:St({endpointOverride:i})}),{AuthenticationResult:f}=await c({region:u},{ClientId:s,RefreshToken:t.refreshToken,DeviceKey:t.deviceMetadata?.deviceKey,ClientMetadata:r}),h=Co(f?.AccessToken??""),m=f?.IdToken?Co(f.IdToken):void 0,{iat:g}=h.payload;if(!g)throw new ze({name:"iatNotFoundException",message:"iat not found in access token"});const y=g*1e3-new Date().getTime();return{accessToken:h,idToken:m,clockDrift:y,refreshToken:f?.RefreshToken??t.refreshToken,username:n}},EK=WG(CK),_K={accessToken:"accessToken",idToken:"idToken",oidcProvider:"oidcProvider",clockDrift:"clockDrift",refreshToken:"refreshToken",deviceKey:"deviceKey",randomPasswordKey:"randomPasswordKey",deviceGroupKey:"deviceGroupKey",signInDetails:"signInDetails",oauthMetadata:"oauthMetadata"};var D0;(function(t){t.InvalidAuthTokens="InvalidAuthTokens"})(D0||(D0={}));const kK={[D0.InvalidAuthTokens]:{message:"Invalid tokens.",recoverySuggestion:"Make sure the tokens are valid."}},AK=q1(kK),I5="CognitoIdentityServiceProvider";class TK{getKeyValueStorage(){if(!this.keyValueStorage)throw new ze({name:"KeyValueStorageNotFoundException",message:"KeyValueStorage was not found in TokenStore"});return this.keyValueStorage}setKeyValueStorage(e){this.keyValueStorage=e}setAuthConfig(e){this.authConfig=e}async loadTokens(){try{const e=await this.getAuthKeys(),n=await this.getKeyValueStorage().getItem(e.accessToken);if(!n)throw new ze({name:"NoSessionFoundException",message:"Auth session was not found. Make sure to call signIn."});const r=Co(n),a=await this.getKeyValueStorage().getItem(e.idToken),s=a?Co(a):void 0,i=await this.getKeyValueStorage().getItem(e.refreshToken)??void 0,u=await this.getKeyValueStorage().getItem(e.clockDrift)??"0",c=Number.parseInt(u),f=await this.getKeyValueStorage().getItem(e.signInDetails),h={accessToken:r,idToken:s,refreshToken:i,deviceMetadata:await this.getDeviceMetadata()??void 0,clockDrift:c,username:await this.getLastAuthUser()};return f&&(h.signInDetails=JSON.parse(f)),h}catch{return null}}async storeTokens(e){AK(e!==void 0,D0.InvalidAuthTokens);const n=e.username;await this.getKeyValueStorage().setItem(this.getLastAuthUserKey(),n);const r=await this.getAuthKeys();await this.getKeyValueStorage().setItem(r.accessToken,e.accessToken.toString()),e.idToken?await this.getKeyValueStorage().setItem(r.idToken,e.idToken.toString()):await this.getKeyValueStorage().removeItem(r.idToken),e.refreshToken?await this.getKeyValueStorage().setItem(r.refreshToken,e.refreshToken):await this.getKeyValueStorage().removeItem(r.refreshToken),e.deviceMetadata&&(e.deviceMetadata.deviceKey&&await this.getKeyValueStorage().setItem(r.deviceKey,e.deviceMetadata.deviceKey),e.deviceMetadata.deviceGroupKey&&await this.getKeyValueStorage().setItem(r.deviceGroupKey,e.deviceMetadata.deviceGroupKey),await this.getKeyValueStorage().setItem(r.randomPasswordKey,e.deviceMetadata.randomPassword)),e.signInDetails?await this.getKeyValueStorage().setItem(r.signInDetails,JSON.stringify(e.signInDetails)):await this.getKeyValueStorage().removeItem(r.signInDetails),await this.getKeyValueStorage().setItem(r.clockDrift,`${e.clockDrift}`)}async clearTokens(){const e=await this.getAuthKeys();await Promise.all([this.getKeyValueStorage().removeItem(e.accessToken),this.getKeyValueStorage().removeItem(e.idToken),this.getKeyValueStorage().removeItem(e.clockDrift),this.getKeyValueStorage().removeItem(e.refreshToken),this.getKeyValueStorage().removeItem(e.signInDetails),this.getKeyValueStorage().removeItem(this.getLastAuthUserKey()),this.getKeyValueStorage().removeItem(e.oauthMetadata)])}async getDeviceMetadata(e){const n=await this.getAuthKeys(e),r=await this.getKeyValueStorage().getItem(n.deviceKey),a=await this.getKeyValueStorage().getItem(n.deviceGroupKey),s=await this.getKeyValueStorage().getItem(n.randomPasswordKey);return s&&a&&r?{deviceKey:r,deviceGroupKey:a,randomPassword:s}:null}async clearDeviceMetadata(e){const n=await this.getAuthKeys(e);await Promise.all([this.getKeyValueStorage().removeItem(n.deviceKey),this.getKeyValueStorage().removeItem(n.deviceGroupKey),this.getKeyValueStorage().removeItem(n.randomPasswordKey)])}async getAuthKeys(e){ut(this.authConfig?.Cognito);const n=e??await this.getLastAuthUser();return RK(I5,`${this.authConfig.Cognito.userPoolClientId}.${n}`)}getLastAuthUserKey(){ut(this.authConfig?.Cognito);const e=this.authConfig.Cognito.userPoolClientId;return`${I5}.${e}.LastAuthUser`}async getLastAuthUser(){return await this.getKeyValueStorage().getItem(this.getLastAuthUserKey())??"username"}async setOAuthMetadata(e){const{oauthMetadata:n}=await this.getAuthKeys();await this.getKeyValueStorage().setItem(n,JSON.stringify(e))}async getOAuthMetadata(){const{oauthMetadata:e}=await this.getAuthKeys(),n=await this.getKeyValueStorage().getItem(e);return n&&JSON.parse(n)}}const RK=(t,e)=>N_(_K)(`${t}`,e);function N_(t){const e=Object.values({...t});return(n,r)=>e.reduce((a,s)=>({...a,[s]:`${n}.${r}.${s}`}),{})}const O5="amplify-signin-with-hostedUI",ms="CognitoIdentityServiceProvider";class zD{constructor(e){this.keyValueStorage=e}async clearOAuthInflightData(){ut(this.cognitoConfig);const e=gs(ms,this.cognitoConfig.userPoolClientId);await Promise.all([this.keyValueStorage.removeItem(e.inflightOAuth),this.keyValueStorage.removeItem(e.oauthPKCE),this.keyValueStorage.removeItem(e.oauthState)])}async clearOAuthData(){ut(this.cognitoConfig);const e=gs(ms,this.cognitoConfig.userPoolClientId);return await this.clearOAuthInflightData(),await this.keyValueStorage.removeItem(O5),this.keyValueStorage.removeItem(e.oauthSignIn)}loadOAuthState(){ut(this.cognitoConfig);const e=gs(ms,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.getItem(e.oauthState)}storeOAuthState(e){ut(this.cognitoConfig);const n=gs(ms,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.setItem(n.oauthState,e)}loadPKCE(){ut(this.cognitoConfig);const e=gs(ms,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.getItem(e.oauthPKCE)}storePKCE(e){ut(this.cognitoConfig);const n=gs(ms,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.setItem(n.oauthPKCE,e)}setAuthConfig(e){this.cognitoConfig=e}async loadOAuthInFlight(){ut(this.cognitoConfig);const e=gs(ms,this.cognitoConfig.userPoolClientId);return await this.keyValueStorage.getItem(e.inflightOAuth)==="true"}async storeOAuthInFlight(e){ut(this.cognitoConfig);const n=gs(ms,this.cognitoConfig.userPoolClientId);await this.keyValueStorage.setItem(n.inflightOAuth,`${e}`)}async loadOAuthSignIn(){ut(this.cognitoConfig);const e=gs(ms,this.cognitoConfig.userPoolClientId),n=await this.keyValueStorage.getItem(O5),[r,a]=(await this.keyValueStorage.getItem(e.oauthSignIn))?.split(",")??[];return{isOAuthSignIn:r==="true"||n==="true",preferPrivateSession:a==="true"}}async storeOAuthSignIn(e,n=!1){ut(this.cognitoConfig);const r=gs(ms,this.cognitoConfig.userPoolClientId);await this.keyValueStorage.setItem(r.oauthSignIn,`${e},${n}`)}}const gs=(t,e)=>N_(dK)(t,e),jr=new zD(dp),mE=[],IK=t=>{mE.push(t)},jD=()=>{for(;mE.length;)mE.pop()?.()};class OK{constructor(){this.waitForInflightOAuth=K1()?async()=>{if(await jr.loadOAuthInFlight())return this.inflightPromise?this.inflightPromise:(this.inflightPromise=new Promise((e,n)=>{IK(e)}),this.inflightPromise)}:async()=>{}}setAuthConfig(e){jr.setAuthConfig(e.Cognito),this.authConfig=e}setTokenRefresher(e){this.tokenRefresher=e}setAuthTokenStore(e){this.tokenStore=e}getTokenStore(){if(!this.tokenStore)throw new ze({name:"EmptyTokenStoreException",message:"TokenStore not set"});return this.tokenStore}getTokenRefresher(){if(!this.tokenRefresher)throw new ze({name:"EmptyTokenRefresherException",message:"TokenRefresher not set"});return this.tokenRefresher}setClientMetadataProvider(e){this.clientMetadataProvider=e}async getTokens(e){let n;try{ut(this.authConfig?.Cognito)}catch{return null}await this.waitForInflightOAuth(),this.inflightPromise=void 0,n=await this.getTokenStore().loadTokens();const r=await this.getTokenStore().getLastAuthUser();if(n===null)return null;const a=!!n?.idToken&&o5({expiresAt:(n.idToken?.payload?.exp??0)*1e3,clockDrift:n.clockDrift??0}),s=o5({expiresAt:(n.accessToken?.payload?.exp??0)*1e3,clockDrift:n.clockDrift??0});return(e?.forceRefresh||a||s)&&(n=await this.refreshTokens({tokens:n,username:r,clientMetadata:e?.clientMetadata??await this.clientMetadataProvider?.()}),n===null)?null:{accessToken:n?.accessToken,idToken:n?.idToken,signInDetails:n?.signInDetails}}async refreshTokens({tokens:e,username:n,clientMetadata:r}){try{const{signInDetails:a}=e,s=await this.getTokenRefresher()({tokens:e,authConfig:this.authConfig,username:n,clientMetadata:r});return s.signInDetails=a,await this.setTokens({tokens:s}),Is.dispatch("auth",{event:"tokenRefresh"},"Auth",Rs),s}catch(a){return this.handleErrors(a)}}handleErrors(e){if(Na(e),this.isAuthenticationError(e)&&this.clearTokens(),Is.dispatch("auth",{event:"tokenRefresh_failure",data:{error:e}},"Auth",Rs),e.name.startsWith("NotAuthorizedException"))return null;throw e}isAuthenticationError(e){return["NotAuthorizedException","TokenRevokedException","UserNotFoundException","PasswordResetRequiredException","UserNotConfirmedException","RefreshTokenReuseException"].some(r=>e?.name?.startsWith?.(r))}async setTokens({tokens:e}){return this.getTokenStore().storeTokens(e)}async clearTokens(){return this.getTokenStore().clearTokens()}getDeviceMetadata(e){return this.getTokenStore().getDeviceMetadata(e)}clearDeviceMetadata(e){return this.getTokenStore().clearDeviceMetadata(e)}setOAuthMetadata(e){return this.getTokenStore().setOAuthMetadata(e)}getOAuthMetadata(){return this.getTokenStore().getOAuthMetadata()}}class NK{constructor(){this.authTokenStore=new TK,this.authTokenStore.setKeyValueStorage(dp),this.tokenOrchestrator=new OK,this.tokenOrchestrator.setAuthTokenStore(this.authTokenStore),this.tokenOrchestrator.setTokenRefresher(EK)}getTokens(e={}){return this.tokenOrchestrator.getTokens(e)}setKeyValueStorage(e){this.authTokenStore.setKeyValueStorage(e)}setClientMetadataProvider(e){this.tokenOrchestrator.setClientMetadataProvider(e)}setAuthConfig(e){this.authTokenStore.setAuthConfig(e),this.tokenOrchestrator.setAuthConfig(e)}}const r0=new NK,{tokenOrchestrator:qr}=r0;async function Mo(t){if(t.AccessToken){const e=Co(t.AccessToken),n=(e.payload.iat||0)*1e3,r=new Date().getTime(),a=n>0?n-r:0;let s,i,u;t.RefreshToken&&(i=t.RefreshToken),t.IdToken&&(s=Co(t.IdToken)),t?.NewDeviceMetadata&&(u=t.NewDeviceMetadata);const c={accessToken:e,idToken:s,refreshToken:i,clockDrift:a,deviceMetadata:u,username:t.username};t?.signInDetails&&(c.signInDetails=t.signInDetails),await qr.setTokens({tokens:c})}else throw new Hr({message:"Invalid tokens",name:"InvalidTokens",recoverySuggestion:"Check Cognito UserPool settings"})}const MK="Unable to get user session following successful sign-in.",Ji=async()=>{try{Is.dispatch("auth",{event:"signedIn",data:await Q1()},"Auth",Rs)}catch(t){throw t.name===X1?new ze({name:iK,message:MK,recoverySuggestion:"This most likely is due to auth tokens not being persisted. If you are using cookie store, please ensure cookies can be correctly set from your server."}):t}};function FD(){return{active:!1}}const PK=(t,e)=>{switch(e.type){case"SET_USERNAME":return{...t,username:e.value};case"SET_SESSION":return{...t,session:e.value};case"START":return{...t,active:!0};case"RESET":return FD();default:return t}},DK=t=>{let e=t(FD(),{type:"RESET"});return{getState:()=>e,dispatch:n=>{e=t(e,n)}}},Mi=DK(PK),LK=180*1e3,eg="CognitoSignInState",bo={username:`${eg}.username`,challengeName:`${eg}.challengeName`,signInSession:`${eg}.signInSession`,expiry:`${eg}.expiry`},UK=(t,e)=>{switch(e.type){case"SET_SIGN_IN_SESSION":return tg({signInSession:e.value}),{...t,signInSession:e.value};case"SET_SIGN_IN_STATE":return tg(e.value),{...e.value};case"SET_CHALLENGE_NAME":return tg({challengeName:e.value}),{...t,challengeName:e.value};case"SET_USERNAME":return tg({username:e.value}),{...t,username:e.value};case"SET_INITIAL_STATE":return jK();case"RESET_STATE":return BD(),M_();default:return t}},zK=t=>{const e=Number(t),n=Date.now();return e<=n},es=()=>{Ns.dispatch({type:"RESET_STATE"})},BD=()=>{for(const t of Object.values(bo))yo.removeItem(t)},M_=()=>({username:void 0,challengeName:void 0,signInSession:void 0}),jK=()=>{const t=yo.getItem(bo.expiry);if(!t||zK(t))return BD(),M_();const e=yo.getItem(bo.username)??void 0,n=yo.getItem(bo.challengeName)??void 0,r=yo.getItem(bo.signInSession)??void 0;return{username:e,challengeName:n,signInSession:r}},FK=t=>{let e=t(M_(),{type:"SET_INITIAL_STATE"});return{getState:()=>e,dispatch:n=>{e=t(e,n)}}},Ns=FK(UK);function lu(t){Ns.dispatch({type:"SET_SIGN_IN_STATE",value:t})}const tg=({challengeName:t,signInSession:e,username:n})=>{n&&yo.setItem(bo.username,n),t&&yo.setItem(bo.challengeName,t),e&&(yo.setItem(bo.signInSession,e),yo.setItem(bo.expiry,String(Date.now()+LK)))},N5="Passkeys may not be supported on this device. Ensure your application is running in a secure context (HTTPS) and Web Authentication API is supported.";class Ia extends Hr{constructor(e){super(e),this.constructor=Ia,Object.setPrototypeOf(this,Ia.prototype)}}var $t;(function(t){t.PasskeyNotSupported="PasskeyNotSupported",t.PasskeyAlreadyExists="PasskeyAlreadyExists",t.InvalidPasskeyRegistrationOptions="InvalidPasskeyRegistrationOptions",t.InvalidPasskeyAuthenticationOptions="InvalidPasskeyAuthenticationOptions",t.RelyingPartyMismatch="RelyingPartyMismatch",t.PasskeyRegistrationFailed="PasskeyRegistrationFailed",t.PasskeyRetrievalFailed="PasskeyRetrievalFailed",t.PasskeyRegistrationCanceled="PasskeyRegistrationCanceled",t.PasskeyAuthenticationCanceled="PasskeyAuthenticationCanceled",t.PasskeyOperationAborted="PasskeyOperationAborted"})($t||($t={}));const mS="User may have canceled the ceremony or another interruption has occurred. Check underlying error for details.",M5="Ensure your user pool is configured to support the WEB_AUTHN as an authentication factor.",Yc={[$t.PasskeyNotSupported]:{message:"Passkeys may not be supported on this device.",recoverySuggestion:N5},[$t.InvalidPasskeyRegistrationOptions]:{message:"Invalid passkey registration options.",recoverySuggestion:M5},[$t.InvalidPasskeyAuthenticationOptions]:{message:"Invalid passkey authentication options.",recoverySuggestion:M5},[$t.PasskeyRegistrationFailed]:{message:"Device failed to create passkey.",recoverySuggestion:N5},[$t.PasskeyRetrievalFailed]:{message:"Device failed to retrieve passkey.",recoverySuggestion:"Passkeys may not be available on this device. Try an alternative authentication factor like PASSWORD, EMAIL_OTP, or SMS_OTP."},[$t.PasskeyAlreadyExists]:{message:"Passkey already exists in authenticator.",recoverySuggestion:"Proceed with existing passkey or try again after deleting the credential."},[$t.PasskeyRegistrationCanceled]:{message:"Passkey registration ceremony has been canceled.",recoverySuggestion:mS},[$t.PasskeyAuthenticationCanceled]:{message:"Passkey authentication ceremony has been canceled.",recoverySuggestion:mS},[$t.PasskeyOperationAborted]:{message:"Passkey operation has been aborted.",recoverySuggestion:mS},[$t.RelyingPartyMismatch]:{message:"Relying party does not match current domain.",recoverySuggestion:"Ensure relying party identifier matches current domain."}},vd=q1(Yc,Ia),$D=t=>{if(t instanceof Error){if(t.name==="AbortError"){const{message:e,recoverySuggestion:n}=Yc[$t.PasskeyOperationAborted];return new Ia({name:$t.PasskeyOperationAborted,message:e,recoverySuggestion:n,underlyingError:t})}if(t.name==="SecurityError"){const{message:e,recoverySuggestion:n}=Yc[$t.RelyingPartyMismatch];return new Ia({name:$t.RelyingPartyMismatch,message:e,recoverySuggestion:n,underlyingError:t})}}return new Ia({name:Fi.Unknown,message:"An unknown error has occurred.",underlyingError:t})},BK=t=>{if(t instanceof Ia)return t;if(t instanceof Error&&t.name==="NotAllowedError"){const{message:e,recoverySuggestion:n}=Yc[$t.PasskeyAuthenticationCanceled];return new Ia({name:$t.PasskeyAuthenticationCanceled,message:e,recoverySuggestion:n,underlyingError:t})}return $D(t)},HD=()=>K1()&&window.isSecureContext&&"credentials"in navigator&&typeof window.PublicKeyCredential=="function",ks=t=>Kc.convert(new Uint8Array(t),{urlSafe:!0,skipPadding:!0}),vh=t=>Uint8Array.from(A_.convert(t,{urlSafe:!0}),e=>e.charCodeAt(0)).buffer,$K=t=>{const e=vh(t.user.id),n=vh(t.challenge),r=(t.excludeCredentials||[]).map(a=>({...a,id:vh(a.id)}));return{...t,excludeCredentials:r,challenge:n,user:{...t.user,id:e}}},HK=t=>{const e={clientDataJSON:ks(t.response.clientDataJSON),attestationObject:ks(t.response.attestationObject),transports:t.response.getTransports(),publicKeyAlgorithm:t.response.getPublicKeyAlgorithm(),authenticatorData:ks(t.response.getAuthenticatorData())},n=t.response.getPublicKey();n&&(e.publicKey=ks(n));const r={type:t.type,id:t.id,rawId:ks(t.rawId),clientExtensionResults:t.getClientExtensionResults(),response:e};return t.authenticatorAttachment&&(r.authenticatorAttachment=t.authenticatorAttachment),r},qK=t=>{const e=vh(t.challenge),n=(t.allowCredentials||[]).map(r=>({...r,id:vh(r.id)}));return{...t,challenge:e,allowCredentials:n}},WK=t=>{const e={clientDataJSON:ks(t.response.clientDataJSON),authenticatorData:ks(t.response.authenticatorData),signature:ks(t.response.signature)};t.response.userHandle&&(e.userHandle=ks(t.response.userHandle));const n={id:t.id,rawId:ks(t.rawId),type:t.type,clientExtensionResults:t.getClientExtensionResults(),response:e};return t.authenticatorAttachment&&(n.authenticatorAttachment=t.authenticatorAttachment),n};function VK(t){vd([!!t,!!t?.challenge,!!t?.user,!!t?.rp,!!t?.pubKeyCredParams].every(Boolean),$t.InvalidPasskeyRegistrationOptions)}function GK(t){vd(t&&t instanceof PublicKeyCredential&&t.response instanceof AuthenticatorAttestationResponse,$t.PasskeyRegistrationFailed)}function KK(t){vd(t&&t instanceof PublicKeyCredential&&t.response instanceof AuthenticatorAssertionResponse,$t.PasskeyRetrievalFailed)}const YK=async t=>{try{const e=HD();vd(e,$t.PasskeyNotSupported);const n=qK(t),r=await navigator.credentials.get({publicKey:n});return KK(r),WK(r)}catch(e){throw BK(e)}},ZK=t=>In(Gn,Vn("ConfirmDevice"),lr(),{...Kn,...t}),a0={convert(t){return new TextEncoder().encode(t)}};function Re(t,e){t!=null&&this.fromString(t,e)}function kr(){return new Re(null,null)}let Li;const XK=0xdeadbeefcafe,P5=(XK&16777215)===15715070;function QK(t,e,n,r,a,s){for(;--s>=0;){const i=e*this[t++]+n[r]+a;a=Math.floor(i/67108864),n[r++]=i&67108863}return a}function JK(t,e,n,r,a,s){const i=e&32767,u=e>>15;for(;--s>=0;){let c=this[t]&32767;const f=this[t++]>>15,h=u*c+f*i;c=i*c+((h&32767)<<15)+n[r]+(a&1073741823),a=(c>>>30)+(h>>>15)+u*f+(a>>>30),n[r++]=c&1073741823}return a}function eY(t,e,n,r,a,s){const i=e&16383,u=e>>14;for(;--s>=0;){let c=this[t]&16383;const f=this[t++]>>14,h=u*c+f*i;c=i*c+((h&16383)<<14)+n[r]+a,a=(c>>28)+(h>>14)+u*f,n[r++]=c&268435455}return a}const D5=typeof navigator<"u";D5&&P5&&navigator.appName==="Microsoft Internet Explorer"?(Re.prototype.am=JK,Li=30):D5&&P5&&navigator.appName!=="Netscape"?(Re.prototype.am=QK,Li=26):(Re.prototype.am=eY,Li=28);Re.prototype.DB=Li;Re.prototype.DM=(1<<Li)-1;Re.prototype.DV=1<<Li;const P_=52;Re.prototype.FV=Math.pow(2,P_);Re.prototype.F1=P_-Li;Re.prototype.F2=2*Li-P_;const tY="0123456789abcdefghijklmnopqrstuvwxyz",J1=[];let yd,Ta;yd=48;for(Ta=0;Ta<=9;++Ta)J1[yd++]=Ta;yd=97;for(Ta=10;Ta<36;++Ta)J1[yd++]=Ta;yd=65;for(Ta=10;Ta<36;++Ta)J1[yd++]=Ta;function L5(t){return tY.charAt(t)}function nY(t,e){const n=J1[t.charCodeAt(e)];return n??-1}function rY(t){for(let e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s}function aY(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0}function D_(t){const e=kr();return e.fromInt(t),e}function sY(t,e){let n;if(e===16)n=4;else if(e===8)n=3;else if(e===2)n=1;else if(e===32)n=5;else if(e===4)n=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");this.t=0,this.s=0;let r=t.length,a=!1,s=0;for(;--r>=0;){const i=nY(t,r);if(i<0){t.charAt(r)==="-"&&(a=!0);continue}a=!1,s===0?this[this.t++]=i:s+n>this.DB?(this[this.t-1]|=(i&(1<<this.DB-s)-1)<<s,this[this.t++]=i>>this.DB-s):this[this.t-1]|=i<<s,s+=n,s>=this.DB&&(s-=this.DB)}this.clamp(),a&&Re.ZERO.subTo(this,this)}function oY(){const t=this.s&this.DM;for(;this.t>0&&this[this.t-1]==t;)--this.t}function iY(t){if(this.s<0)return"-"+this.negate().toString(t);let e;if(t==16)e=4;else if(t===8)e=3;else if(t===2)e=1;else if(t===32)e=5;else if(t===4)e=2;else throw new Error("Only radix 2, 4, 8, 16, 32 are supported");const n=(1<<e)-1;let r,a=!1,s="",i=this.t,u=this.DB-i*this.DB%e;if(i-- >0)for(u<this.DB&&(r=this[i]>>u)>0&&(a=!0,s=L5(r));i>=0;)u<e?(r=(this[i]&(1<<u)-1)<<e-u,r|=this[--i]>>(u+=this.DB-e)):(r=this[i]>>(u-=e)&n,u<=0&&(u+=this.DB,--i)),r>0&&(a=!0),a&&(s+=L5(r));return a?s:"0"}function lY(){const t=kr();return Re.ZERO.subTo(this,t),t}function uY(){return this.s<0?this.negate():this}function cY(t){let e=this.s-t.s;if(e!=0)return e;let n=this.t;if(e=n-t.t,e!=0)return this.s<0?-e:e;for(;--n>=0;)if((e=this[n]-t[n])!=0)return e;return 0}function L_(t){let e=1,n;return(n=t>>>16)!==0&&(t=n,e+=16),(n=t>>8)!==0&&(t=n,e+=8),(n=t>>4)!==0&&(t=n,e+=4),(n=t>>2)!==0&&(t=n,e+=2),(n=t>>1)!==0&&(t=n,e+=1),e}function dY(){return this.t<=0?0:this.DB*(this.t-1)+L_(this[this.t-1]^this.s&this.DM)}function fY(t,e){let n;for(n=this.t-1;n>=0;--n)e[n+t]=this[n];for(n=t-1;n>=0;--n)e[n]=0;e.t=this.t+t,e.s=this.s}function hY(t,e){for(let n=t;n<this.t;++n)e[n-t]=this[n];e.t=Math.max(this.t-t,0),e.s=this.s}function pY(t,e){const n=t%this.DB,r=this.DB-n,a=(1<<r)-1,s=Math.floor(t/this.DB);let i=this.s<<n&this.DM,u;for(u=this.t-1;u>=0;--u)e[u+s+1]=this[u]>>r|i,i=(this[u]&a)<<n;for(u=s-1;u>=0;--u)e[u]=0;e[s]=i,e.t=this.t+s+1,e.s=this.s,e.clamp()}function mY(t,e){e.s=this.s;const n=Math.floor(t/this.DB);if(n>=this.t){e.t=0;return}const r=t%this.DB,a=this.DB-r,s=(1<<r)-1;e[0]=this[n]>>r;for(let i=n+1;i<this.t;++i)e[i-n-1]|=(this[i]&s)<<a,e[i-n]=this[i]>>r;r>0&&(e[this.t-n-1]|=(this.s&s)<<a),e.t=this.t-n,e.clamp()}function gY(t,e){let n=0,r=0;const a=Math.min(t.t,this.t);for(;n<a;)r+=this[n]-t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r-=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r-=t[n],e[n++]=r&this.DM,r>>=this.DB;r-=t.s}e.s=r<0?-1:0,r<-1?e[n++]=this.DV+r:r>0&&(e[n++]=r),e.t=n,e.clamp()}function vY(t,e){const n=this.abs(),r=t.abs();let a=n.t;for(e.t=a+r.t;--a>=0;)e[a]=0;for(a=0;a<r.t;++a)e[a+n.t]=n.am(0,r[a],e,a,0,n.t);e.s=0,e.clamp(),this.s!==t.s&&Re.ZERO.subTo(e,e)}function yY(t){const e=this.abs();let n=t.t=2*e.t;for(;--n>=0;)t[n]=0;for(n=0;n<e.t-1;++n){const r=e.am(n,e[n],t,2*n,0,1);(t[n+e.t]+=e.am(n+1,2*e[n],t,2*n+1,r,e.t-n-1))>=e.DV&&(t[n+e.t]-=e.DV,t[n+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(n,e[n],t,2*n,0,1)),t.s=0,t.clamp()}function bY(t,e,n){const r=t.abs();if(r.t<=0)return;const a=this.abs();if(a.t<r.t){e?.fromInt(0),n!=null&&this.copyTo(n);return}n===null&&(n=kr());const s=kr(),i=this.s,u=t.s,c=this.DB-L_(r[r.t-1]);c>0?(r.lShiftTo(c,s),a.lShiftTo(c,n)):(r.copyTo(s),a.copyTo(n));const f=s.t,h=s[f-1];if(h===0)return;const m=h*(1<<this.F1)+(f>1?s[f-2]>>this.F2:0),g=this.FV/m,y=(1<<this.F1)/m,S=1<<this.F2;let w=n.t,x=w-f;const E=e===null?kr():e;for(s.dlShiftTo(x,E),n.compareTo(E)>=0&&(n[n.t++]=1,n.subTo(E,n)),Re.ONE.dlShiftTo(f,E),E.subTo(s,s);s.t<f;)s[s.t++]=0;for(;--x>=0;){let k=n[--w]===h?this.DM:Math.floor(n[w]*g+(n[w-1]+S)*y);if((n[w]+=s.am(0,k,n,x,0,f))<k)for(s.dlShiftTo(x,E),n.subTo(E,n);n[w]<--k;)n.subTo(E,n)}e!==null&&(n.drShiftTo(f,e),i!==u&&Re.ZERO.subTo(e,e)),n.t=f,n.clamp(),c>0&&n.rShiftTo(c,n),i<0&&Re.ZERO.subTo(n,n)}function SY(t){const e=kr();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(Re.ZERO)>0&&t.subTo(e,e),e}function wY(){if(this.t<1)return 0;const t=this[0];if((t&1)===0)return 0;let e=t&3;return e=e*(2-(t&15)*e)&15,e=e*(2-(t&255)*e)&255,e=e*(2-((t&65535)*e&65535))&65535,e=e*(2-t*e%this.DV)%this.DV,e>0?this.DV-e:-e}function xY(t){return this.compareTo(t)===0}function CY(t,e){let n=0,r=0;const a=Math.min(t.t,this.t);for(;n<a;)r+=this[n]+t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r+=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r+=t[n],e[n++]=r&this.DM,r>>=this.DB;r+=t.s}e.s=r<0?-1:0,r>0?e[n++]=r:r<-1&&(e[n++]=this.DV+r),e.t=n,e.clamp()}function EY(t){const e=kr();return this.addTo(t,e),e}function _Y(t){const e=kr();return this.subTo(t,e),e}function kY(t){const e=kr();return this.multiplyTo(t,e),e}function AY(t){const e=kr();return this.divRemTo(t,e,null),e}function bd(t){this.m=t,this.mp=t.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}function TY(t){const e=kr();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(Re.ZERO)>0&&this.m.subTo(e,e),e}function RY(t){const e=kr();return t.copyTo(e),this.reduce(e),e}function IY(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(let e=0;e<this.m.t;++e){let n=t[e]&32767;const r=n*this.mpl+((n*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(n=e+this.m.t,t[n]+=this.m.am(0,r,t,e,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)}function OY(t,e){t.squareTo(e),this.reduce(e)}function NY(t,e,n){t.multiplyTo(e,n),this.reduce(n)}bd.prototype.convert=TY;bd.prototype.revert=RY;bd.prototype.reduce=IY;bd.prototype.mulTo=NY;bd.prototype.sqrTo=OY;function MY(t,e,n){let r=t.bitLength(),a,s=D_(1);const i=new bd(e);if(r<=0)return s;r<18?a=1:r<48?a=3:r<144?a=4:r<768?a=5:a=6;const u=[];let c=3;const f=a-1,h=(1<<a)-1;if(u[1]=i.convert(this),a>1){const E=kr();for(i.sqrTo(u[1],E);c<=h;)u[c]=kr(),i.mulTo(E,u[c-2],u[c]),c+=2}let m=t.t-1,g,y=!0,S=kr(),w;for(r=L_(t[m])-1;m>=0;){for(r>=f?g=t[m]>>r-f&h:(g=(t[m]&(1<<r+1)-1)<<f-r,m>0&&(g|=t[m-1]>>this.DB+r-f)),c=a;(g&1)===0;)g>>=1,--c;if((r-=c)<0&&(r+=this.DB,--m),y)u[g].copyTo(s),y=!1;else{for(;c>1;)i.sqrTo(s,S),i.sqrTo(S,s),c-=2;c>0?i.sqrTo(s,S):(w=s,s=S,S=w),i.mulTo(S,u[g],s)}for(;m>=0&&(t[m]&1<<r)===0;)i.sqrTo(s,S),w=s,s=S,S=w,--r<0&&(r=this.DB-1,--m)}const x=i.revert(s);return n(null,x),x}Re.prototype.copyTo=rY;Re.prototype.fromInt=aY;Re.prototype.fromString=sY;Re.prototype.clamp=oY;Re.prototype.dlShiftTo=fY;Re.prototype.drShiftTo=hY;Re.prototype.lShiftTo=pY;Re.prototype.rShiftTo=mY;Re.prototype.subTo=gY;Re.prototype.multiplyTo=vY;Re.prototype.squareTo=yY;Re.prototype.divRemTo=bY;Re.prototype.invDigit=wY;Re.prototype.addTo=CY;Re.prototype.toString=iY;Re.prototype.negate=lY;Re.prototype.abs=uY;Re.prototype.compareTo=cY;Re.prototype.bitLength=dY;Re.prototype.mod=SY;Re.prototype.equals=xY;Re.prototype.add=EY;Re.prototype.subtract=_Y;Re.prototype.multiply=kY;Re.prototype.divide=AY;Re.prototype.modPow=MY;Re.ZERO=D_(0);Re.ONE=D_(1);const PY=async({a:t,g:e,k:n,x:r,B:a,N:s,U:i})=>new Promise((u,c)=>{e.modPow(r,s,(f,h)=>{if(f){c(f);return}a.subtract(n.multiply(h)).modPow(t.add(i.multiply(r)),s,(m,g)=>{if(m){c(m);return}u(g.mod(s))})})}),DY="FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF",qD={},gE={};for(let t=0;t<256;t++){let e=t.toString(16).toLowerCase();e.length===1&&(e=`0${e}`),qD[t]=e,gE[e]=t}const Zc=t=>{if(t.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const e=new Uint8Array(t.length/2);for(let n=0;n<t.length;n+=2){const r=t.slice(n,n+2).toLowerCase();if(r in gE)e[n/2]=gE[r];else throw new Error(`Cannot decode unrecognized sequence ${r} as hexadecimal`)}return e},U_=t=>{let e="";for(let n=0;n<t.byteLength;n++)e+=qD[t[n]];return e},vE=t=>{const e=new Gl;e.update(t);const n=e.digestSync(),r=U_(n);return new Array(64-r.length).join("0")+r},s0=t=>vE(Zc(t)),LY=/^[89a-f]/i,ho=t=>{if(!(t instanceof Re))throw new Error("Not a BigInteger");const e=t.compareTo(Re.ZERO)<0;let n=t.abs().toString(16);if(n=n.length%2!==0?`0${n}`:n,n=LY.test(n)?`00${n}`:n,e){const r=n.split("").map(s=>{const i=~parseInt(s,16)&15;return"0123456789ABCDEF".charAt(i)}).join("");n=new Re(r,16).add(Re.ONE).toString(16),n.toUpperCase().startsWith("FF8")&&(n=n.substring(2))}return n},UY=({A:t,B:e})=>{const n=new Re(s0(ho(t)+ho(e)),16);if(n.equals(Re.ZERO))throw new Error("U cannot be zero.");return n},zY=(t,e,n)=>{const r=new Gl(e);r.update(t);const a=r.digestSync(),s=new Gl(a);return s.update(n),s.digestSync().slice(0,16)},z_=t=>{const e=new O_().random(t).toString();return Zc(e)},jY=()=>Kc.convert(z_(40));class FY{constructor({userPoolName:e,a:n,g:r,A:a,N:s}){this.encoder=a0,this.userPoolName=e,this.a=n,this.g=r,this.A=a,this.N=s,this.k=new Re(s0(`${ho(s)}${ho(r)}`),16)}getRandomPassword(){if(!this.randomPassword)throw new ze({name:"EmptyBigIntegerRandomPassword",message:"random password is empty"});return this.randomPassword}getSaltToHashDevices(){if(!this.saltToHashDevices)throw new ze({name:"EmptyBigIntegersaltToHashDevices",message:"saltToHashDevices is empty"});return this.saltToHashDevices}getVerifierDevices(){if(!this.verifierDevices)throw new ze({name:"EmptyBigIntegerVerifierDevices",message:"verifyDevices is empty"});return this.verifierDevices}async generateHashDevice(e,n){this.randomPassword=jY();const r=`${e}${n}:${this.randomPassword}`,a=vE(r),s=U_(z_(16));return this.saltToHashDevices=ho(new Re(s,16)),new Promise((i,u)=>{this.g.modPow(new Re(s0(this.saltToHashDevices+a),16),this.N,(c,f)=>{if(c){u(c);return}this.verifierDevices=ho(f),i()})})}async getPasswordAuthenticationKey({username:e,password:n,serverBValue:r,salt:a}){if(r.mod(this.N).equals(Re.ZERO))throw new Error("B cannot be zero.");const s=UY({A:this.A,B:r}),i=`${this.userPoolName}${e}:${n}`,u=vE(i),c=new Re(s0(ho(a)+u),16),f=await PY({a:this.a,g:this.g,k:this.k,x:c,B:r,N:this.N,U:s}),h=this.encoder.convert("Caldera Derived Key"),m=this.encoder.convert(""),g=new Uint8Array(h.byteLength+m.byteLength);return g.set(h,0),g.set(m,h.byteLength),zY(Zc(ho(f)),Zc(ho(s)),g)}}const BY=async({a:t,g:e,N:n})=>new Promise((r,a)=>{e.modPow(t,n,(s,i)=>{if(s){a(s);return}if(i.mod(n).equals(Re.ZERO)){a(new Error("Illegal parameter. A mod N cannot be 0."));return}r(i)})}),hp=async t=>{const e=new Re(DY,16),n=new Re("2",16),r=$Y(),a=await BY({a:r,g:n,N:e});return new FY({userPoolName:t,a:r,g:n,A:a,N:e})},$Y=()=>{const t=U_(z_(128));return new Re(t,16)};async function uu({userPoolId:t,userPoolEndpoint:e,newDeviceMetadata:n,accessToken:r}){if(!n)return;const a=t.split("_")[1]||"",s=await hp(a),i=n?.DeviceKey,u=n?.DeviceGroupKey;try{await s.generateHashDevice(u??"",i??"")}catch{return}const c={Salt:Kc.convert(Zc(s.getSaltToHashDevices())),PasswordVerifier:Kc.convert(Zc(s.getVerifierDevices()))},f=s.getRandomPassword();try{return await ZK({endpointResolver:St({endpointOverride:e})})({region:bt(t)},{AccessToken:r,DeviceName:await VG(),DeviceKey:n?.DeviceKey,DeviceSecretVerifierConfig:c}),{deviceKey:i,deviceGroupKey:u,randomPassword:f}}catch{return}}async function HY(t){const e=qt.getConfig().Auth?.Cognito;ut(e);const{username:n,signInSession:r,signInDetails:a,challengeName:s}=Ns.getState();if(s!=="WEB_AUTHN"||!n)throw new ze({name:Os.SignInException,message:"Unable to proceed due to invalid sign in state."});const{CREDENTIAL_REQUEST_OPTIONS:i}=t;vd(!!i,$t.InvalidPasskeyAuthenticationOptions);const u=await YK(JSON.parse(i)),c=ua({endpointResolver:St({endpointOverride:e.userPoolEndpoint})}),{ChallengeName:f,ChallengeParameters:h,AuthenticationResult:m,Session:g}=await c({region:bt(e.userPoolId),userAgentValue:Mt(Ze.ConfirmSignIn)},{ChallengeName:"WEB_AUTHN",ChallengeResponses:{USERNAME:n,CREDENTIAL:JSON.stringify(u)},ClientId:e.userPoolClientId,Session:r});if(lu({signInSession:g,username:n,challengeName:f,signInDetails:a}),m)return await Mo({...m,username:n,NewDeviceMetadata:await uu({userPoolId:e.userPoolId,userPoolEndpoint:e.userPoolEndpoint,newDeviceMetadata:m.NewDeviceMetadata,accessToken:m.AccessToken}),signInDetails:a}),Ns.dispatch({type:"RESET_STATE"}),await Ji(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}};if(f==="WEB_AUTHN")throw new ze({name:Os.SignInException,message:"Sequential WEB_AUTHN challenges returned from underlying service cannot be handled."});return{challengeName:f,challengeParameters:h}}function Yn({username:t,userPoolId:e,userPoolClientId:n}){if(typeof window>"u")return;const r=window.AmazonCognitoAdvancedSecurityData;if(typeof r>"u")return;const a=r.getData(t,e,n);return a?{EncodedData:a}:{}}const qY=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],WY=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],WD=()=>{const t=new Date,e=WY[t.getUTCDay()],n=qY[t.getUTCMonth()],r=t.getUTCDate();let a=t.getUTCHours();a<10&&(a=`0${a}`);let s=t.getUTCMinutes();s<10&&(s=`0${s}`);let i=t.getUTCSeconds();i<10&&(i=`0${i}`);const u=t.getUTCFullYear();return`${e} ${n} ${r} ${a}:${s}:${i} UTC ${u}`},VD=({userPoolName:t,username:e,challengeParameters:n,dateNow:r,hkdf:a})=>{const s=a0.convert(t),i=a0.convert(e),u=VY(n.SECRET_BLOCK),c=a0.convert(r),f=new Uint8Array(s.byteLength+i.byteLength+u.byteLength+c.byteLength);f.set(s,0),f.set(i,s.byteLength),f.set(u,s.byteLength+i.byteLength),f.set(c,s.byteLength+i.byteLength+u.byteLength);const h=new Gl(a);h.update(f);const m=h.digestSync();return Kc.convert(m)},VY=t=>{const e="=".repeat((4-t.length%4)%4),n=(t+e).replace(/-/g,"+").replace(/_/g,"/"),r=A_.convert(n),a=new Uint8Array(r.length);for(let s=0;s<r.length;++s)a[s]=r.charCodeAt(s);return a};async function pp({username:t,config:e,clientMetadata:n,session:r,tokenOrchestrator:a}){const{userPoolId:s,userPoolEndpoint:i}=e,u=e.userPoolClientId,c=await a?.getDeviceMetadata(t);DD(c);const f=await hp(c.deviceGroupKey),h={USERNAME:t,SRP_A:f.A.toString(16),DEVICE_KEY:c.deviceKey},m={ChallengeName:"DEVICE_SRP_AUTH",ClientId:u,ChallengeResponses:h,ClientMetadata:n,Session:r},g=ua({endpointResolver:St({endpointOverride:i})}),{ChallengeParameters:y,Session:S}=await g({region:bt(s)},m);return GY(t,y,n,S,f,e,a)}async function GY(t,e,n,r,a,{userPoolId:s,userPoolClientId:i,userPoolEndpoint:u},c){const f=await c?.getDeviceMetadata(t);DD(f);const h=new Re(e?.SRP_B,16),m=new Re(e?.SALT,16),{deviceKey:g}=f,{deviceGroupKey:y}=f,S=await a.getPasswordAuthenticationKey({username:f.deviceKey,password:f.randomPassword,serverBValue:h,salt:m}),w=WD(),x={USERNAME:e?.USERNAME??t,PASSWORD_CLAIM_SECRET_BLOCK:e?.SECRET_BLOCK,TIMESTAMP:w,PASSWORD_CLAIM_SIGNATURE:VD({username:g,userPoolName:y,challengeParameters:e,dateNow:w,hkdf:S}),DEVICE_KEY:g},E=Yn({username:t,userPoolId:s,userPoolClientId:i}),k={ChallengeName:"DEVICE_PASSWORD_VERIFIER",ClientId:i,ChallengeResponses:x,Session:r,ClientMetadata:n,UserContextData:E};return ua({endpointResolver:St({endpointOverride:u})})({region:bt(s)},k)}async function j_(t,e,n,r,a,s,i){const{userPoolId:u,userPoolClientId:c,userPoolEndpoint:f}=s,h=u?.split("_")[1]||"",m=new Re(e?.SRP_B,16),g=new Re(e?.SALT,16),y=e?.USER_ID_FOR_SRP;if(!y)throw new ze({name:"EmptyUserIdForSRPException",message:"USER_ID_FOR_SRP was not found in challengeParameters"});const S=await a.getPasswordAuthenticationKey({username:y,password:t,serverBValue:m,salt:g}),w=WD(),x={USERNAME:y,PASSWORD_CLAIM_SECRET_BLOCK:e?.SECRET_BLOCK,TIMESTAMP:w,PASSWORD_CLAIM_SIGNATURE:VD({username:y,userPoolName:h,challengeParameters:e,dateNow:w,hkdf:S})},E=await i.getDeviceMetadata(y);E&&E.deviceKey&&(x.DEVICE_KEY=E.deviceKey);const k=Yn({username:y,userPoolId:u,userPoolClientId:c}),A={ChallengeName:"PASSWORD_VERIFIER",ChallengeResponses:x,ClientMetadata:n,Session:r,ClientId:c,UserContextData:k},N=await ua({endpointResolver:St({endpointOverride:f})})({region:bt(u)},A);return N.ChallengeName==="DEVICE_SRP_AUTH"?pp({username:y,config:s,clientMetadata:n,session:N.Session,tokenOrchestrator:i}):N}async function Sd(t,e,n,r){try{return await t(...e)}catch(a){if(a instanceof ze&&a.name==="ResourceNotFoundException"&&a.message.includes("Device does not exist."))return await r.clearDeviceMetadata(n),t(...e);throw a}}function cu(t){const{dispatch:e}=Ns;e({type:"SET_USERNAME",value:t})}async function GD({username:t,password:e,clientMetadata:n,config:r,tokenOrchestrator:a,authFlow:s,preferredChallenge:i}){const{userPoolId:u,userPoolClientId:c,userPoolEndpoint:f}=r,h=u?.split("_")[1]||"",m=await hp(h),g={USERNAME:t,SRP_A:m.A.toString(16)};s==="USER_AUTH"&&i&&(g.PREFERRED_CHALLENGE=i);const y=Yn({username:t,userPoolId:u,userPoolClientId:c}),S={AuthFlow:s,AuthParameters:g,ClientMetadata:n,ClientId:c,UserContextData:y},x=await fp({endpointResolver:St({endpointOverride:f})})({region:bt(u),userAgentValue:Mt(Ze.SignIn)},S),{ChallengeParameters:E,Session:k}=x,A=E?.USERNAME??t;return cu(A),x.ChallengeName==="PASSWORD_VERIFIER"?Sd(j_,[e,E,n,k,m,r,a],A,a):x}async function KY({username:t,session:e,selectedChallenge:n,config:r,clientMetadata:a}){return ua({endpointResolver:St({endpointOverride:r.userPoolEndpoint})})({region:bt(r.userPoolId),userAgentValue:Mt(Ze.ConfirmSignIn)},{ChallengeName:"SELECT_CHALLENGE",ChallengeResponses:{USERNAME:t,ANSWER:n},ClientId:r.userPoolClientId,Session:e,ClientMetadata:a})}async function YY(t,e,n,r,a){const{userPoolId:s,userPoolClientId:i,userPoolEndpoint:u}=r,c={ANSWER:"PASSWORD",USERNAME:t,PASSWORD:e},f=Yn({username:t,userPoolId:s,userPoolClientId:i}),m=await ua({endpointResolver:St({endpointOverride:u})})({region:bt(s),userAgentValue:Mt(Ze.ConfirmSignIn)},{ChallengeName:"SELECT_CHALLENGE",ChallengeResponses:c,ClientId:i,ClientMetadata:n,Session:a,UserContextData:f}),g=m.ChallengeParameters?.USERNAME??t;return cu(g),m}async function ZY(t,e,n,r,a,s){const{userPoolId:i,userPoolClientId:u,userPoolEndpoint:c}=r,f=i.split("_")[1]||"",h=await hp(f),m={ANSWER:"PASSWORD_SRP",USERNAME:t,SRP_A:h.A.toString(16)},g=Yn({username:t,userPoolId:i,userPoolClientId:u}),S=await ua({endpointResolver:St({endpointOverride:c})})({region:bt(i),userAgentValue:Mt(Ze.ConfirmSignIn)},{ChallengeName:"SELECT_CHALLENGE",ChallengeResponses:m,ClientId:u,ClientMetadata:n,Session:a,UserContextData:g}),w=S.ChallengeParameters?.USERNAME??t;return cu(w),S.ChallengeName==="PASSWORD_VERIFIER"?Sd(j_,[e,S.ChallengeParameters,n,S.Session,h,r,s],w,s):S}const yE="userAttributes.";function XY(t){return"isSignedIn"in t&&"nextStep"in t}async function QY({challengeResponse:t,clientMetadata:e,session:n,username:r,config:a,tokenOrchestrator:s}){const{userPoolId:i,userPoolClientId:u,userPoolEndpoint:c}=a,f={USERNAME:r,ANSWER:t},h=await s?.getDeviceMetadata(r);h&&h.deviceKey&&(f.DEVICE_KEY=h.deviceKey);const m=Yn({username:r,userPoolId:i,userPoolClientId:u}),g={ChallengeName:"CUSTOM_CHALLENGE",ChallengeResponses:f,Session:n,ClientMetadata:e,ClientId:u,UserContextData:m},S=await ua({endpointResolver:St({endpointOverride:c})})({region:bt(i),userAgentValue:Mt(Ze.ConfirmSignIn)},g);return S.ChallengeName==="DEVICE_SRP_AUTH"?pp({username:r,config:a,clientMetadata:e,session:S.Session,tokenOrchestrator:s}):S}async function JY({challengeResponse:t,username:e,clientMetadata:n,session:r,deviceName:a,config:s}){const{userPoolId:i,userPoolClientId:u,userPoolEndpoint:c}=s;if(t==="EMAIL")return{ChallengeName:"MFA_SETUP",Session:r,ChallengeParameters:{MFAS_CAN_SETUP:'["EMAIL_OTP"]'},$metadata:{}};if(t==="TOTP")return{ChallengeName:"MFA_SETUP",Session:r,ChallengeParameters:{MFAS_CAN_SETUP:'["SOFTWARE_TOKEN_MFA"]'},$metadata:{}};const f={USERNAME:e};if(/^\d+$/.test(t)){const g=bK({endpointResolver:St({endpointOverride:c})}),{Session:y}=await g({region:bt(i),userAgentValue:Mt(Ze.ConfirmSignIn)},{UserCode:t,Session:r,FriendlyDeviceName:a});Ns.dispatch({type:"SET_SIGN_IN_SESSION",value:y});const S={ChallengeName:"MFA_SETUP",ChallengeResponses:f,Session:y,ClientMetadata:n,ClientId:u};return ua({endpointResolver:St({endpointOverride:c})})({region:bt(i),userAgentValue:Mt(Ze.ConfirmSignIn)},S)}if(t.includes("@")){f.EMAIL=t;const g={ChallengeName:"MFA_SETUP",ChallengeResponses:f,Session:r,ClientMetadata:n,ClientId:u};return ua({endpointResolver:St({endpointOverride:c})})({region:bt(i),userAgentValue:Mt(Ze.ConfirmSignIn)},g)}throw new ze({name:Os.SignInException,message:`Cannot proceed with MFA setup using challengeResponse: ${t}`,recoverySuggestion:'Try passing "EMAIL", "TOTP", a valid email, or OTP code as the challengeResponse.'})}async function eZ({challengeResponse:t,username:e,clientMetadata:n,session:r,config:a}){const{userPoolId:s,userPoolClientId:i,userPoolEndpoint:u}=a;pn(t==="TOTP"||t==="SMS"||t==="EMAIL",Ye.IncorrectMFAMethod);const c={USERNAME:e,ANSWER:cZ(t)},f=Yn({username:e,userPoolId:s,userPoolClientId:i}),h={ChallengeName:"SELECT_MFA_TYPE",ChallengeResponses:c,Session:r,ClientMetadata:n,ClientId:i,UserContextData:f};return ua({endpointResolver:St({endpointOverride:u})})({region:bt(s),userAgentValue:Mt(Ze.ConfirmSignIn)},h)}async function tZ({challengeResponse:t,clientMetadata:e,session:n,username:r,requiredAttributes:a,config:s}){const{userPoolId:i,userPoolClientId:u,userPoolEndpoint:c}=s,f={...lZ(a),NEW_PASSWORD:t,USERNAME:r},h=Yn({username:r,userPoolId:i,userPoolClientId:u}),m={ChallengeName:"NEW_PASSWORD_REQUIRED",ChallengeResponses:f,ClientMetadata:e,Session:n,ClientId:u,UserContextData:h};return ua({endpointResolver:St({endpointOverride:c})})({region:bt(i),userAgentValue:Mt(Ze.ConfirmSignIn)},m)}async function nZ(t,e,n,r,a){const{userPoolClientId:s,userPoolId:i,userPoolEndpoint:u}=r,c={USERNAME:t,PASSWORD:e},f=await a.getDeviceMetadata(t);f&&f.deviceKey&&(c.DEVICE_KEY=f.deviceKey);const h=Yn({username:t,userPoolId:i,userPoolClientId:s}),m={AuthFlow:"USER_PASSWORD_AUTH",AuthParameters:c,ClientMetadata:n,ClientId:s,UserContextData:h},y=await fp({endpointResolver:St({endpointOverride:u})})({region:bt(i),userAgentValue:Mt(Ze.SignIn)},m),S=y.ChallengeParameters?.USERNAME??y.ChallengeParameters?.USER_ID_FOR_SRP??t;return cu(S),y.ChallengeName==="DEVICE_SRP_AUTH"?pp({username:S,config:r,clientMetadata:n,session:y.Session,tokenOrchestrator:a}):y}async function rZ(t,e,n,r,a){return GD({username:t,password:e,clientMetadata:n,config:r,tokenOrchestrator:a,authFlow:"USER_SRP_AUTH"})}async function aZ(t,e,n,r){const{userPoolClientId:a,userPoolId:s,userPoolEndpoint:i}=n,u={USERNAME:t},c=await r.getDeviceMetadata(t);c&&c.deviceKey&&(u.DEVICE_KEY=c.deviceKey);const f=Yn({username:t,userPoolId:s,userPoolClientId:a}),h={AuthFlow:"CUSTOM_AUTH",AuthParameters:u,ClientMetadata:e,ClientId:a,UserContextData:f},g=await fp({endpointResolver:St({endpointOverride:i})})({region:bt(s),userAgentValue:Mt(Ze.SignIn)},h),y=g.ChallengeParameters?.USERNAME??t;return cu(y),g.ChallengeName==="DEVICE_SRP_AUTH"?pp({username:y,config:n,clientMetadata:e,session:g.Session,tokenOrchestrator:r}):g}async function sZ(t,e,n,r,a){ut(r);const{userPoolId:s,userPoolClientId:i,userPoolEndpoint:u}=r,c=s?.split("_")[1]||"",f=await hp(c),h={USERNAME:t,SRP_A:f.A.toString(16),CHALLENGE_NAME:"SRP_A"},m=Yn({username:t,userPoolId:s,userPoolClientId:i}),g={AuthFlow:"CUSTOM_AUTH",AuthParameters:h,ClientMetadata:n,ClientId:i,UserContextData:m},y=fp({endpointResolver:St({endpointOverride:u})}),{ChallengeParameters:S,Session:w}=await y({region:bt(s),userAgentValue:Mt(Ze.SignIn)},g),x=S?.USERNAME??t;return cu(x),Sd(j_,[e,S,n,w,f,r,a],x,a)}async function du(t){const{challengeName:e,challengeParameters:n,availableChallenges:r}=t,a=qt.getConfig().Auth?.Cognito;switch(ut(a),e){case"CUSTOM_CHALLENGE":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_CUSTOM_CHALLENGE",additionalInfo:n}};case"MFA_SETUP":{const{signInSession:s,username:i}=Ns.getState(),u=U5(z5(n.MFAS_CAN_SETUP))||[],c=fZ(u),f=c.includes("TOTP"),h=c.includes("EMAIL");if(f&&h)return{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_MFA_SETUP_SELECTION",allowedMFATypes:c}};if(h)return{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_EMAIL_SETUP"}};if(f){const m=SK({endpointResolver:St({endpointOverride:a.userPoolEndpoint})}),{Session:g,SecretCode:y}=await m({region:bt(a.userPoolId)},{Session:s});return Ns.dispatch({type:"SET_SIGN_IN_SESSION",value:g}),{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_TOTP_SETUP",totpSetupDetails:oZ(y,i)}}}throw new ze({name:Os.SignInException,message:`Cannot initiate MFA setup from available types: ${u}`})}case"NEW_PASSWORD_REQUIRED":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_NEW_PASSWORD_REQUIRED",missingAttributes:iZ(n.requiredAttributes)}};case"SELECT_MFA_TYPE":return{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_MFA_SELECTION",allowedMFATypes:U5(z5(n.MFAS_CAN_CHOOSE))}};case"SMS_OTP":case"SMS_MFA":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_SMS_CODE",codeDeliveryDetails:{deliveryMedium:n.CODE_DELIVERY_DELIVERY_MEDIUM,destination:n.CODE_DELIVERY_DESTINATION}}};case"SOFTWARE_TOKEN_MFA":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_TOTP_CODE"}};case"EMAIL_OTP":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_EMAIL_CODE",codeDeliveryDetails:{deliveryMedium:n.CODE_DELIVERY_DELIVERY_MEDIUM,destination:n.CODE_DELIVERY_DESTINATION}}};case"WEB_AUTHN":{const s=await HY(n);return XY(s)?s:du(s)}case"PASSWORD":case"PASSWORD_SRP":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_PASSWORD"}};case"SELECT_CHALLENGE":return{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_FIRST_FACTOR_SELECTION",availableChallenges:r}}}throw new ze({name:Os.SignInException,message:`An error occurred during the sign in process. ${e} challengeName returned by the underlying service was not addressed.`})}function oZ(t,e){return{sharedSecret:t,getSetupUri:(n,r)=>{const a=`otpauth://totp/${n}:${r??e}?secret=${t}&issuer=${n}`;return new Qi(a)}}}function wd(t){if(t===P0.PasswordResetRequiredException)return{isSignedIn:!1,nextStep:{signInStep:"RESET_PASSWORD"}};if(t===P0.UserNotConfirmedException)return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_UP"}}}function iZ(t){return t?JSON.parse(t).map(n=>n.includes(yE)?n.replace(yE,""):n):[]}function lZ(t){if(!t)return{};const e={};return Object.entries(t).forEach(([n,r])=>{r&&(e[`${yE}${n}`]=r)}),e}async function uZ(t,e,n,r,a,s,i,u){const c=u?.userAttributes,f=u?.friendlyDeviceName;switch(e){case"WEB_AUTHN":case"SELECT_CHALLENGE":return r==="PASSWORD_SRP"||r==="PASSWORD"?{ChallengeName:r,Session:n,$metadata:{}}:KY({username:t,session:n,selectedChallenge:r,config:a,clientMetadata:i});case"SELECT_MFA_TYPE":return eZ({challengeResponse:r,clientMetadata:i,session:n,username:t,config:a});case"MFA_SETUP":return JY({challengeResponse:r,clientMetadata:i,session:n,username:t,deviceName:f,config:a});case"NEW_PASSWORD_REQUIRED":return tZ({challengeResponse:r,clientMetadata:i,session:n,username:t,requiredAttributes:c,config:a});case"CUSTOM_CHALLENGE":return Sd(QY,[{challengeResponse:r,clientMetadata:i,session:n,username:t,config:a,tokenOrchestrator:s}],t,s);case"SMS_MFA":case"SOFTWARE_TOKEN_MFA":case"SMS_OTP":case"EMAIL_OTP":return hZ({challengeName:e,challengeResponse:r,clientMetadata:i,session:n,username:t,config:a,tokenOrchestrator:s});case"PASSWORD":return YY(t,r,i,a,n);case"PASSWORD_SRP":return ZY(t,r,i,a,n,s)}throw new ze({name:Os.SignInException,message:`An error occurred during the sign in process.
@@ -9,9 +9,9 @@ function oD(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&
9
9
  1. signIn was not called before confirmSignIn.
10
10
  2. signIn threw an exception.
11
11
  3. page was refreshed during the sign in flow and session has expired.
12
- `,recoverySuggestion:"Make sure a successful call to signIn is made before calling confirmSignInand that the session has not expired."});try{const{Session:f,ChallengeName:h,AuthenticationResult:m,ChallengeParameters:g}=await uZ(r,a,s,e,u,qr,c,n);return lu({signInSession:f,username:r,challengeName:h,signInDetails:i}),m?(await Mo({username:r,...m,NewDeviceMetadata:await uu({userPoolId:u.userPoolId,userPoolEndpoint:u.userPoolEndpoint,newDeviceMetadata:m.NewDeviceMetadata,accessToken:m.AccessToken}),signInDetails:i}),es(),await Ji(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):du({challengeName:h,challengeParameters:g})}catch(f){Na(f);const h=wd(f.name);if(h)return h;throw f}}const DZ=t=>In(Gn,Vn("GetUser"),lr(),{...Kn,...t}),LZ=t=>In(Gn,Vn("VerifyUserAttribute"),lr(),{...Kn,...t});async function UZ(t){const e=qt.getConfig().Auth?.Cognito;ut(e);const{userPoolEndpoint:n,userPoolId:r}=e,{confirmationCode:a,userAttributeKey:s}=t;pn(!!a,Ye.EmptyConfirmUserAttributeCode);const{tokens:i}=await Y1({forceRefresh:!1});gd(i),await LZ({endpointResolver:St({endpointOverride:n})})({region:bt(r),userAgentValue:Mt(Ze.ConfirmUserAttribute)},{AccessToken:i.accessToken.toString(),AttributeName:s,Code:a})}new or("AuthError");const zZ={oauthSignInError:{message:Hn.OAUTH_ERROR,log:"Make sure Cognito Hosted UI has been configured correctly"},noConfig:{message:Hn.DEFAULT_MSG},missingAuthConfig:{message:Hn.DEFAULT_MSG},emptyUsername:{message:Hn.EMPTY_USERNAME},invalidUsername:{message:Hn.INVALID_USERNAME},emptyPassword:{message:Hn.EMPTY_PASSWORD},emptyCode:{message:Hn.EMPTY_CODE},signUpError:{message:Hn.SIGN_UP_ERROR},noMFA:{message:Hn.NO_MFA},invalidMFA:{message:Hn.INVALID_MFA},emptyChallengeResponse:{message:Hn.EMPTY_CHALLENGE},noUserSession:{message:Hn.NO_USER_SESSION},deviceConfig:{message:Hn.DEVICE_CONFIG},networkError:{message:Hn.NETWORK_ERROR},autoSignInError:{message:Hn.AUTOSIGNIN_ERROR},default:{message:Hn.DEFAULT_MSG}},Bi=(t,e)=>new ze({message:t??"An error has occurred during the oauth process.",name:Os.OAuthSignInError,recoverySuggestion:zZ.oauthSignInError.log});var SE;(function(t){t.NoConfig="noConfig",t.MissingAuthConfig="missingAuthConfig",t.EmptyUsername="emptyUsername",t.InvalidUsername="invalidUsername",t.EmptyPassword="emptyPassword",t.EmptyCode="emptyCode",t.SignUpError="signUpError",t.NoMFA="noMFA",t.InvalidMFA="invalidMFA",t.EmptyChallengeResponse="emptyChallengeResponse",t.NoUserSession="noUserSession",t.Default="default",t.DeviceConfig="deviceConfig",t.NetworkError="networkError",t.AutoSignInError="autoSignInError",t.OAuthSignInError="oauthSignInError"})(SE||(SE={}));const jZ="`signInWithRedirect` has been canceled.",FZ="An error occurred while validating the state.",BZ="Try to initiate an OAuth flow from Amplify",nL=async t=>{const e=await jr.loadOAuthState(),n=t===e?e:void 0;if(!n)throw new ze({name:SE.OAuthSignInError,message:t===null?jZ:FZ,recoverySuggestion:t===null?void 0:BZ});return n},rL=async({currentUrl:t,userAgentValue:e,clientId:n,redirectUri:r,responseType:a,domain:s,preferPrivateSession:i})=>{const u=new Qi(t),c=u.searchParams.get("error"),f=u.searchParams.get("error_description");if(c)throw Bi(f??c);return a==="code"?$Z({currentUrl:t,userAgentValue:e,clientId:n,redirectUri:r,domain:s,preferPrivateSession:i}):HZ({currentUrl:t,redirectUri:r,preferPrivateSession:i})},$Z=async({currentUrl:t,userAgentValue:e,clientId:n,redirectUri:r,domain:a,preferPrivateSession:s})=>{const i=new Qi(t),u=i.searchParams.get("code"),c=i.searchParams.get("state");if(!u||!c)throw Bi("User cancelled OAuth flow.");const f=await nL(c),h="https://"+a+"/oauth2/token",m=await jr.loadPKCE(),g={grant_type:"authorization_code",code:u,client_id:n,redirect_uri:r,...m?{code_verifier:m}:{}},y=Object.entries(g).map(([O,I])=>`${encodeURIComponent(O)}=${encodeURIComponent(I)}`).join("&"),{access_token:S,refresh_token:w,id_token:x,error:E,error_message:k,token_type:A,expires_in:R}=await(await fetch(h,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",[VW]:e},body:y})).json();if(E)throw Bi(k??E);const N=(S&&Co(S).payload.username)??"username";return await Mo({username:N,AccessToken:S,IdToken:x,RefreshToken:w}),aL({redirectUri:r,state:f,preferPrivateSession:s})},HZ=async({currentUrl:t,redirectUri:e,preferPrivateSession:n})=>{const r=new Qi(t),{id_token:a,access_token:s,state:i,token_type:u,expires_in:c,error_description:f,error:h}=(r.hash??"#").substring(1).split("&").map(y=>y.split("=")).reduce((y,[S,w])=>({...y,[S]:w}),{id_token:void 0,access_token:void 0,state:void 0,token_type:void 0,expires_in:void 0,error_description:void 0,error:void 0});if(h)throw Bi(f??h);if(!s)throw Bi("No access token returned from OAuth flow.");const m=await nL(i),g=(s&&Co(s).payload.username)??"username";return await Mo({username:g,AccessToken:s,IdToken:a}),aL({redirectUri:e,state:m,preferPrivateSession:n})},aL=async({redirectUri:t,state:e,preferPrivateSession:n})=>{await qr.setOAuthMetadata({oauthSignIn:!0}),await jr.clearOAuthData(),await jr.storeOAuthSignIn(!0,n),jD(),VZ(t),qZ(e)&&Is.dispatch("auth",{event:"customOAuthState",data:HG(WZ(e))},"Auth",Rs),Is.dispatch("auth",{event:"signInWithRedirect"},"Auth",Rs),await Ji()},qZ=t=>/-/.test(t),WZ=t=>t.split("-").splice(1).join("-"),VZ=t=>{typeof window<"u"&&typeof window.history<"u"&&window.history.replaceState(window.history.state,"",t)};function $_(t,e){{const n=t?.find(GZ)??t?.find(KZ),r=t?.find(ZZ)??t?.find(YZ);if(n)return n;throw r?aK:nK}}const GZ=t=>t.startsWith(String(window.location.origin+(window.location.pathname||"/"))),KZ=t=>t.includes(String(window.location.hostname)),YZ=t=>t.startsWith("http://"),ZZ=t=>t.startsWith("https://"),H_=async t=>{jD(),await jr.clearOAuthInflightData(),Is.dispatch("auth",{event:"signInWithRedirect_failure",data:{error:t}},"Auth",Rs)},XZ=async t=>{try{ut(t),W1(t),jr.setAuthConfig(t)}catch{return}if(await jr.loadOAuthInFlight())try{const e=window.location.href,{loginWith:n,userPoolClientId:r}=t,{domain:a,redirectSignIn:s,responseType:i}=n.oauth,u=$_(s);await rL({currentUrl:e,clientId:r,domain:a,redirectUri:u,responseType:i,userAgentValue:Mt(Ze.SignInWithRedirect)})}catch(e){await H_(e)}};K1()&&qt[uD](XZ);const QZ={Google:"Google",Facebook:"Facebook",Amazon:"LoginWithAmazon",Apple:"SignInWithApple"},sL=async t=>{window?.location&&(window.location.href=t.replace("http://","https://"))},F5="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",JZ=t=>{const e=new Uint8Array(t);k_().getRandomValues(e);let n="",r;for(const a of e)n+=F5.charAt(a%F5.length);return{value:n,method:"S256",toCodeChallenge(){return r||(r=eX(n),r)}}};function eX(t){const e=new Gl;return e.update(t),tX(Kc.convert(e.digestSync(),{urlSafe:!0}))}function tX(t){return t.replace(/=/g,"")}const nX=()=>$G(32),rX=t=>{async function e(n){if(n.persisted&&await t.loadOAuthInFlight()){const a=Bi("User cancelled OAuth flow.");await H_(a)}window.removeEventListener("pageshow",e)}window.addEventListener("pageshow",e)};async function oL(t){const e=qt.getConfig().Auth?.Cognito;ut(e),W1(e),jr.setAuthConfig(e),t?.options?.prompt||await KD();let n="COGNITO",r;return typeof t?.provider=="string"?n=QZ[t.provider]:t?.provider?.custom?n=t.provider.custom:t?.provider?.idpIdentifier&&({idpIdentifier:r}=t.provider),aX({oauthConfig:e.loginWith.oauth,clientId:e.userPoolClientId,provider:n,idpIdentifier:r,customState:t?.customState,preferPrivateSession:t?.options?.preferPrivateSession,options:{loginHint:t?.options?.loginHint,lang:t?.options?.lang,nonce:t?.options?.nonce,prompt:t?.options?.prompt},authSessionOpener:t?.options?.authSessionOpener})}const aX=async({oauthConfig:t,provider:e,idpIdentifier:n,clientId:r,customState:a,preferPrivateSession:s,options:i,authSessionOpener:u})=>{const{domain:c,redirectSignIn:f,responseType:h,scopes:m}=t,{loginHint:g,lang:y,nonce:S,prompt:w}=i??{},x=nX(),E=u||sL,k=a?`${x}-${qG(a)}`:x,{value:A,method:R,toCodeChallenge:N}=JZ(128),O=$_(t.redirectSignIn);K1()&&jr.storeOAuthInFlight(!0),jr.storeOAuthState(k),jr.storePKCE(A);const I=new URLSearchParams;I.append("redirect_uri",O),I.append("response_type",h),I.append("client_id",r),n?I.append("idp_identifier",n):I.append("identity_provider",e),I.append("scope",m.join(" ")),g&&I.append("login_hint",g),y&&I.append("lang",y),S&&I.append("nonce",S),w&&I.append("prompt",w.toLowerCase()),I.append("state",k),h==="code"&&(I.append("code_challenge",N()),I.append("code_challenge_method",R));const P=`https://${c}/oauth2/authorize?${I.toString()}`;rX(jr);const{type:U,error:q,url:z}=await E(P,f,s)??{};try{if(U==="error")throw Bi(String(q));if(U==="canceled")throw Bi(String(U));U==="success"&&z&&await rL({currentUrl:z,clientId:r,domain:c,redirectUri:O,responseType:h,userAgentValue:Mt(Ze.SignInWithRedirect),preferPrivateSession:s})}catch(j){throw await H_(j),j}},sX=async t=>{const e=t.getConfig().Auth?.Cognito;ut(e);const{userPoolEndpoint:n,userPoolId:r}=e,{tokens:a}=await mD(t,{forceRefresh:!1});gd(a);const s=DZ({endpointResolver:St({endpointOverride:n})}),{UserAttributes:i}=await s({region:bt(r),userAgentValue:Mt(Ze.FetchUserAttributes)},{AccessToken:a.accessToken.toString()});return ZG(i)},iL=()=>sX(qt),oX=async t=>{await t.clearOAuthData(),qr.clearTokens(),await gD(),Is.dispatch("auth",{event:"signedOut"},"Auth",Rs)},iX=async(t,e=!1,n)=>{W1(t);const{loginWith:r,userPoolClientId:a}=t,{domain:s,redirectSignOut:i}=r.oauth,u=$_(i),c=`https://${s}/logout?${Object.entries({client_id:a,logout_uri:encodeURIComponent(u)}).map(([f,h])=>`${f}=${h}`).join("&")}`;return sL(c)},lX=async(t,e,n,r)=>{const{isOAuthSignIn:a}=await e.loadOAuthSignIn(),s=await n.getOAuthMetadata();if(await oX(e),a||s?.oauthSignIn)return iX(t,!1)},uX=t=>In(Gn,Vn("RevokeToken"),lr(),{...Kn,...t}),cX=new or("Auth");async function dX(t){const e=qt.getConfig().Auth?.Cognito;ut(e),await fX(e);let n;try{W1(e),n=!0}catch{n=!1}if(n){const r=new zD(dp);r.setAuthConfig(e);const{type:a}=await lX(e,r,qr)??{};if(a==="error")throw new ze({name:sK,message:"An error occurred when attempting to log out from OAuth provider."})}else qr.clearTokens(),await gD(),Is.dispatch("auth",{event:"signedOut"},"Auth",Rs)}async function fX(t){try{const{userPoolEndpoint:e,userPoolId:n,userPoolClientId:r}=t,a=await qr.getTokenStore().loadTokens();PD(a),hX(a.accessToken)&&await uX({endpointResolver:St({endpointOverride:e})})({region:bt(n),userAgentValue:Mt(Ze.SignOut)},{ClientId:r,Token:a.refreshToken})}catch{cX.debug("Client signOut error caught but will proceed with token removal")}}const hX=t=>!!t?.payload?.origin_jti,pX=t=>In(Gn,Vn("GetUserAttributeVerificationCode"),lr(),{...Kn,...t}),mX=async t=>{const{userAttributeKey:e,options:n}=t,r=qt.getConfig().Auth?.Cognito,a=n?.clientMetadata;ut(r);const{userPoolEndpoint:s,userPoolId:i}=r,{tokens:u}=await Y1({forceRefresh:!1});gd(u);const c=pX({endpointResolver:St({endpointOverride:s})}),{CodeDeliveryDetails:f}=await c({region:bt(i),userAgentValue:Mt(Ze.SendUserAttributeVerificationCode)},{AccessToken:u.accessToken.toString(),ClientMetadata:a,AttributeName:e}),{DeliveryMedium:h,AttributeName:m,Destination:g}={...f};return{destination:g,deliveryMedium:h,attributeName:m}},gX={identityId:"identityId"},vX=new or("DefaultIdentityIdStore");class lL{setAuthConfig(e){t0(e.Cognito),this.authConfig=e,this._authKeys=yX("Cognito",e.Cognito.identityPoolId)}constructor(e){this._authKeys={},this._hasGuestIdentityId=!1,this.keyValueStorage=e}async loadIdentityId(){t0(this.authConfig?.Cognito);try{if(this._primaryIdentityId)return{id:this._primaryIdentityId,type:"primary"};{const e=await this.keyValueStorage.getItem(this._authKeys.identityId);return e?(this._hasGuestIdentityId=!0,{id:e,type:"guest"}):null}}catch(e){return vX.log("Error getting stored IdentityId.",e),null}}async storeIdentityId(e){t0(this.authConfig?.Cognito),e.type==="guest"?(this.keyValueStorage.setItem(this._authKeys.identityId,e.id),this._primaryIdentityId=void 0,this._hasGuestIdentityId=!0):(this._primaryIdentityId=e.id,this._hasGuestIdentityId&&(this.keyValueStorage.removeItem(this._authKeys.identityId),this._hasGuestIdentityId=!1))}async clearIdentityId(){this._primaryIdentityId=void 0,await this.keyValueStorage.removeItem(this._authKeys.identityId)}}const yX=(t,e)=>N_(gX)(`com.amplify.${t}`,e),wE=({endpointOverride:t})=>e=>t?{url:new Qi(t)}:OG(e);function uL(t){const e=Co(t).payload.iss,n={};if(!e)throw new ze({name:"InvalidIdTokenException",message:"Invalid Idtoken."});const r=e.replace(/(^\w+:|^)\/\//,"");return n[r]=t,n}async function bX({tokens:t,authConfig:e,identityIdStore:n}){n.setAuthConfig({Cognito:e});const r=await n.loadIdentityId();if(r)return r.id;const a=t?.idToken?uL(t.idToken.toString()):{},s=await SX(a,e);return n.storeIdentityId({id:s,type:t?"primary":"guest"}),s}async function SX(t,e){const n=e?.identityPoolId,r=hE(n),a=TG({endpointResolver:wE({endpointOverride:e.identityPoolEndpoint})});let s;try{s=(await a({region:r},{IdentityPoolId:n,Logins:t})).IdentityId}catch(i){throw Na(i),new ze(i)}if(!s)throw new ze({name:"GetIdResponseException",message:"Received undefined response from getId operation",recoverySuggestion:"Make sure to pass a valid identityPoolId in the configuration."});return s}const ng=new or("CognitoCredentialsProvider"),B5=3e3*1e3;class cL{constructor(e){this._nextCredentialsRefresh=0,this._identityIdStore=e}async clearCredentialsAndIdentityId(){ng.debug("Clearing out credentials and identityId"),this._credentialsAndIdentityId=void 0,await this._identityIdStore.clearIdentityId()}async clearCredentials(){ng.debug("Clearing out in-memory credentials"),this._credentialsAndIdentityId=void 0}async getCredentialsAndIdentityId(e){const n=e.authenticated,{tokens:r}=e,{authConfig:a}=e;try{t0(a?.Cognito)}catch{return}if(!n&&!a.Cognito.allowGuestAccess)return;const{forceRefresh:s}=e,i=this.hasTokenChanged(r),u=await bX({tokens:r,authConfig:a.Cognito,identityIdStore:this._identityIdStore});return(s||i)&&this.clearCredentials(),n?(lK(r),this.credsForOIDCTokens(a.Cognito,r,u)):this.getGuestCredentials(u,a.Cognito)}async getGuestCredentials(e,n){if(this._credentialsAndIdentityId&&!this.isPastTTL()&&this._credentialsAndIdentityId.isAuthenticatedCreds===!1)return ng.info("returning stored credentials as they neither past TTL nor expired."),this._credentialsAndIdentityId;this.clearCredentials();const r=hE(n.identityPoolId),a=a5({endpointResolver:wE({endpointOverride:n.identityPoolEndpoint})});let s;try{s=await a({region:r},{IdentityId:e})}catch(i){throw Na(i),new ze(i)}if(s?.Credentials?.AccessKeyId&&s?.Credentials?.SecretKey){this._nextCredentialsRefresh=new Date().getTime()+B5;const i={credentials:{accessKeyId:s.Credentials.AccessKeyId,secretAccessKey:s.Credentials.SecretKey,sessionToken:s.Credentials.SessionToken,expiration:s.Credentials.Expiration},identityId:e};return s.IdentityId&&(i.identityId=s.IdentityId,this._identityIdStore.storeIdentityId({id:s.IdentityId,type:"guest"})),this._credentialsAndIdentityId={...i,isAuthenticatedCreds:!1},i}else throw new ze({name:"CredentialsNotFoundException",message:"Cognito did not respond with either Credentials, AccessKeyId or SecretKey."})}async credsForOIDCTokens(e,n,r){if(this._credentialsAndIdentityId&&!this.isPastTTL()&&this._credentialsAndIdentityId.isAuthenticatedCreds===!0)return ng.debug("returning stored credentials as they neither past TTL nor expired."),this._credentialsAndIdentityId;this.clearCredentials();const a=n.idToken?uL(n.idToken.toString()):{},s=hE(e.identityPoolId),i=a5({endpointResolver:wE({endpointOverride:e.identityPoolEndpoint})});let u;try{u=await i({region:s},{IdentityId:r,Logins:a})}catch(c){throw Na(c),new ze(c)}if(u?.Credentials?.AccessKeyId&&u?.Credentials?.SecretKey){this._nextCredentialsRefresh=new Date().getTime()+B5;const c={credentials:{accessKeyId:u.Credentials.AccessKeyId,secretAccessKey:u.Credentials.SecretKey,sessionToken:u.Credentials.SessionToken,expiration:u.Credentials.Expiration},identityId:r};return u.IdentityId&&(c.identityId=u.IdentityId,this._identityIdStore.storeIdentityId({id:u.IdentityId,type:"primary"})),this._credentialsAndIdentityId={...c,isAuthenticatedCreds:!0,associatedIdToken:n.idToken?.toString()},c}else throw new ze({name:"CredentialsException",message:"Cognito did not respond with either Credentials, AccessKeyId or SecretKey."})}isPastTTL(){return this._nextCredentialsRefresh===void 0?!0:this._nextCredentialsRefresh<=Date.now()}hasTokenChanged(e){return!!e&&!!this._credentialsAndIdentityId?.associatedIdToken&&e.idToken?.toString()!==this._credentialsAndIdentityId.associatedIdToken}}const wX=new cL(new lL(dp)),dL={configure(t,e){const n=dD(t),r=new zG({sameSite:"lax"}),a=e?.ssr?r:dp,s=e?.ssr?new cL(new lL(r)):wX;if(!n.Auth||e?.Auth){qt.configure(n,e);return}r0.setAuthConfig(n.Auth),r0.setKeyValueStorage(a),qt.configure(n,{...e,Auth:{tokenProvider:r0,credentialsProvider:s}})},getConfig(){return qt.getConfig()}},xX=["internal","acme","tailscale","off"],CX=t=>typeof t=="string"&&xX.includes(t),ev=()=>{const t=globalThis.__REMIT_CONFIG__??{};return{apiUrl:t.apiUrl??"/api",appOrigin:t.appOrigin??"",betterAuthEnabled:t.betterAuthEnabled??!1,cognito:{userPoolId:t.cognito?.userPoolId??"",clientId:t.cognito?.clientId??"",domain:t.cognito?.domain??"",region:t.cognito?.region??""},rum:{appMonitorId:t.rum?.appMonitorId??"",identityPoolId:t.rum?.identityPoolId??"",region:t.rum?.region??"eu-west-1"},mailboxPollIntervalSeconds:t.mailboxPollIntervalSeconds!=null?String(t.mailboxPollIntervalSeconds):void 0,disableDevtools:t.disableDevtools??!1,tlsMode:CX(t.tlsMode)?t.tlsMode:"off"}},EX=()=>{const t=ev(),{userPoolId:e,clientId:n,domain:r,region:a}=t.cognito;return!e||!n?null:{userPoolId:e,userPoolClientId:n,domain:r,region:a,appOrigin:t.appOrigin}},xE=EX(),tv=()=>xE!==null,fL=()=>{if(!xE){console.warn("[auth] Cognito user pool is not configured. Running in local dev mode without Cognito auth.");return}const{userPoolId:t,userPoolClientId:e,domain:n,appOrigin:r}=xE;dL.configure({Auth:{Cognito:{userPoolId:t,userPoolClientId:e,loginWith:n?{oauth:{domain:n,scopes:["openid","email","profile"],redirectSignIn:r?[r]:[],redirectSignOut:r?[r]:[],responseType:"code"}}:void 0}}})};var _X={};const o0=Object.create(null),Nf=t=>_X||globalThis.Deno?.env.toObject()||globalThis.__env__||(t?o0:globalThis),xi=new Proxy(o0,{get(t,e){return Nf()[e]??o0[e]},has(t,e){return e in Nf()||e in o0},set(t,e,n){const r=Nf(!0);return r[e]=n,!0},deleteProperty(t,e){if(!e)return!1;const n=Nf(!0);return delete n[e],!0},ownKeys(){const t=Nf(!0);return Object.keys(t)}});xi.NODE_ENV;var i0=class extends Error{constructor(t,e){super(t,e),this.name="BetterAuthError",this.message=t,this.stack=""}};const kX=47;function hL(t){let e=t.length;for(;e>0&&t.charCodeAt(e-1)===kX;)e--;return e===t.length?t:t.slice(0,e)}function AX(t){try{return(hL(new URL(t).pathname)||"/")!=="/"}catch{throw new i0(`Invalid base URL: ${t}. Please provide a valid base URL.`)}}function TX(t){try{const e=new URL(t);if(e.protocol!=="http:"&&e.protocol!=="https:")throw new i0(`Invalid base URL: ${t}. URL must include 'http://' or 'https://'`)}catch(e){throw e instanceof i0?e:new i0(`Invalid base URL: ${t}. Please provide a valid base URL.`,{cause:e})}}function $5(t,e="/api/auth"){if(TX(t),AX(t))return t;const n=hL(t);return!e||e==="/"?n:(e=e.startsWith("/")?e:`/${e}`,`${n}${e}`)}function RX(t,e,n,r,a){{const s=xi.BETTER_AUTH_URL||xi.NEXT_PUBLIC_BETTER_AUTH_URL||xi.PUBLIC_BETTER_AUTH_URL||xi.NUXT_PUBLIC_BETTER_AUTH_URL||xi.NUXT_PUBLIC_AUTH_URL||(xi.BASE_URL!=="/"?xi.BASE_URL:void 0);if(s)return $5(s,e)}if(typeof window<"u"&&window.location)return $5(window.location.origin,e)}const IX={proto:/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,constructor:/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,protoShort:/"__proto__"\s*:/,constructorShort:/"constructor"\s*:/},OX=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,H5={true:!0,false:!1,null:null,undefined:void 0,nan:NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},NX=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function MX(t){return t instanceof Date&&!isNaN(t.getTime())}function PX(t){const e=NX.exec(t);if(!e)return null;const[,n,r,a,s,i,u,c,f,h,m]=e,g=new Date(Date.UTC(parseInt(n,10),parseInt(r,10)-1,parseInt(a,10),parseInt(s,10),parseInt(i,10),parseInt(u,10),c?parseInt(c.padEnd(3,"0"),10):0));if(f){const y=(parseInt(h,10)*60+parseInt(m,10))*(f==="+"?-1:1);g.setUTCMinutes(g.getUTCMinutes()+y)}return MX(g)?g:null}function DX(t,e={}){const{strict:n=!1,warnings:r=!1,reviver:a,parseDates:s=!0}=e;if(typeof t!="string")return t;const i=t.trim(),u=i.toLowerCase();if(u.length<=9&&u in H5)return H5[u];if(!OX.test(i)){if(n)throw new SyntaxError("[better-json] Invalid JSON");return t}if(Object.entries(IX).some(([c,f])=>{const h=f.test(i);return h&&r&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${c} pattern`),h})&&n)throw new Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(i,(f,h)=>{if(f==="__proto__"||f==="constructor"&&h&&typeof h=="object"&&"prototype"in h){r&&console.warn(`[better-json] Dropping "${f}" key to prevent prototype pollution`);return}if(s&&typeof h=="string"){const m=PX(h);if(m)return m}return a?a(f,h):h})}catch(c){if(n)throw c;return t}}function LX(t,e={strict:!0}){return DX(t,e)}const UX=["javascript:","data:","vbscript:"];function zX(t){let e;try{e=new URL(t)}catch{return!0}return!UX.includes(e.protocol)}const jX={id:"redirect",name:"Redirect",hooks:{onSuccess(t){if(t.data?.url&&t.data?.redirect&&zX(t.data.url)&&typeof window<"u"&&window.location&&window.location)try{window.location.href=t.data.url}catch{}}}};let Ya=[],Ci=0;const l0=4,FX=globalThis.nanostoresGlobal||={epoch:0};let BX=()=>{for(Ci=0;Ci<Ya.length;Ci+=l0)Ya[Ci](Ya[Ci+1].value,Ya[Ci+2],Ya[Ci+3]);Ya.length=0};const q5=t=>{let e=[],n={get(){return n.lc||n.listen(()=>{})(),n.value},init:t,lc:0,listen(r){return n.lc=e.push(r),()=>{for(let s=Ci+l0;s<Ya.length;)Ya[s]===r?Ya.splice(s,l0):s+=l0;let a=e.indexOf(r);~a&&(e.splice(a,1),--n.lc||n.off())}},notify(r,a){FX.epoch++;let s=!Ya.length&&!0;for(let i of e)Ya.push(i,n,r,a);s&&BX()},off(){},set(r){let a=n.value;a!==r&&(n.value=r,n.notify(a))},subscribe(r){let a=n.listen(r);return r(n.value),a},value:t};return n},$X=2,HX=5,rg=6,ag=10;let pL=(t,e,n,r)=>(t.events=t.events||{},t.events[n+ag]||(t.events[n+ag]=r(a=>{t.events[n].reduceRight((s,i)=>(i(s),s),{shared:{},...a})})),t.events[n]=t.events[n]||[],t.events[n].push(e),()=>{let a=t.events[n],s=a.indexOf(e);a.splice(s,1),a.length||(delete t.events[n],t.events[n+ag](),delete t.events[n+ag])}),qX=(t,e)=>pL(t,e,$X,n=>{let r=t.set,a=t.setKey;return t.setKey&&(t.setKey=(s,i)=>{let u;if(n({abort:()=>{u=!0},changed:s,newValue:{...t.value,[s]:i}}),!u)return a(s,i)}),t.set=s=>{let i;if(n({abort:()=>{i=!0},newValue:s}),!i)return r(s)},()=>{t.set=r,t.setKey=a}});const WX=1e3;let VX=(t,e)=>pL(t,r=>{let a=e(r);a&&t.events[rg].push(a)},HX,r=>{let a=t.listen;t.listen=(...i)=>(!t.lc&&!t.active&&(t.active=!0,r()),a(...i));let s=t.off;return t.events[rg]=[],t.off=()=>{s(),setTimeout(()=>{if(t.active&&!t.lc){t.active=!1;for(let i of t.events[rg])i();t.events[rg]=[]}},WX)},()=>{t.listen=a,t.off=s}});function GX(t,e,n){let r=new Set(e);return t.listen((a,s,i)=>{(i===void 0?e.some(u=>a[u]!==s[u]):r.has(i)||r.has(i.split(/\.|\[/)[0]))&&n(a,s,i)})}function W5(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return e===Object.prototype||e===null}function L0(t,e){if(t===e)return!0;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(!L0(t[n],e[n]))return!1;return!0}if(W5(t)&&W5(e)){const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(const a of n)if(!(a in e)||!L0(t[a],e[a]))return!1;return!0}return!1}function KX(t,e){return qX(t,({newValue:n,abort:r})=>{e(t.value,n)&&r()})}const gS=Symbol.for("better-auth:broadcast-channel"),YX=()=>Math.floor(Date.now()/1e3);var ZX=class{listeners=new Set;name;constructor(t="better-auth.message"){this.name=t}subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}post(t){if(!(typeof window>"u"))try{localStorage.setItem(this.name,JSON.stringify({...t,timestamp:YX()}))}catch{}}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const t=e=>{if(e.key!==this.name)return;const n=JSON.parse(e.newValue??"{}");n?.event!=="session"||!n?.data||this.listeners.forEach(r=>r(n))};return window.addEventListener("storage",t),()=>{window.removeEventListener("storage",t)}}};function vS(t="better-auth.message"){return globalThis[gS]||(globalThis[gS]=new ZX(t)),globalThis[gS]}const yS=Symbol.for("better-auth:focus-manager");var XX=class{listeners=new Set;subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}setFocused(t){this.listeners.forEach(e=>e(t))}setup(){if(typeof window>"u"||typeof document>"u"||typeof window.addEventListener>"u")return()=>{};const t=()=>{document.visibilityState==="visible"&&this.setFocused(!0)};return document.addEventListener("visibilitychange",t,!1),()=>{document.removeEventListener("visibilitychange",t,!1)}}};function V5(){return globalThis[yS]||(globalThis[yS]=new XX),globalThis[yS]}const bS=Symbol.for("better-auth:online-manager");var QX=class{listeners=new Set;isOnline=typeof navigator<"u"?navigator.onLine:!0;subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}setOnline(t){this.isOnline=t,this.listeners.forEach(e=>e(t))}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const t=()=>this.setOnline(!0),e=()=>this.setOnline(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",e,!1),()=>{window.removeEventListener("online",t,!1),window.removeEventListener("offline",e,!1)}}};function SS(){return globalThis[bS]||(globalThis[bS]=new QX),globalThis[bS]}const wS=()=>Math.floor(Date.now()/1e3),JX=5;function eQ(t){const{fetchSession:e,shouldPollSession:n=()=>!0,sessionSignal:r,options:a={}}=t,s=a.sessionOptions?.refetchInterval??0,i=a.sessionOptions?.refetchOnWindowFocus??!0,u=a.sessionOptions?.refetchWhenOffline??!1,c={isInitialized:!1,lastSessionRequest:0},f=()=>u||SS().isOnline,h=A=>{if(f()){if(A?.event==="storage"){e();return}if(A?.event==="poll"){c.lastSessionRequest=wS(),e();return}if(A?.event==="visibilitychange"){if(wS()-c.lastSessionRequest<JX)return;c.lastSessionRequest=wS(),e();return}e()}},m=A=>{vS().post({event:"session",data:{trigger:A},clientId:Math.random().toString(36).substring(7)})},g=()=>{s&&s>0&&(c.pollInterval=setInterval(()=>{n()&&h({event:"poll"})},s*1e3))},y=()=>{c.unsubscribeBroadcast=vS().subscribe(()=>{h({event:"storage"})})},S=()=>{i&&(c.unsubscribeFocus=V5().subscribe(()=>{h({event:"visibilitychange"})}))},w=()=>{c.unsubscribeOnline=SS().subscribe(A=>{A&&h({event:"visibilitychange"})})},x=()=>{c.unsubscribeSignal=r.listen(()=>{e()})};return{init:()=>{c.isInitialized||(c.isInitialized=!0,g(),y(),S(),w(),x(),c.cleanupBroadcastSetup=vS().setup(),c.cleanupFocusSetup=V5().setup(),c.cleanupOnlineSetup=SS().setup())},cleanup:()=>{c.isInitialized&&(c.pollInterval&&(clearInterval(c.pollInterval),c.pollInterval=void 0),c.unsubscribeBroadcast&&(c.unsubscribeBroadcast(),c.unsubscribeBroadcast=void 0),c.unsubscribeFocus&&(c.unsubscribeFocus(),c.unsubscribeFocus=void 0),c.unsubscribeOnline&&(c.unsubscribeOnline(),c.unsubscribeOnline=void 0),c.unsubscribeSignal&&(c.unsubscribeSignal(),c.unsubscribeSignal=void 0),c.cleanupBroadcastSetup&&(c.cleanupBroadcastSetup(),c.cleanupBroadcastSetup=void 0),c.cleanupFocusSetup&&(c.cleanupFocusSetup(),c.cleanupFocusSetup=void 0),c.cleanupOnlineSetup&&(c.cleanupOnlineSetup(),c.cleanupOnlineSetup=void 0),c.isInitialized=!1,c.lastSessionRequest=0)},triggerRefetch:h,broadcastSessionUpdate:m}}const tQ=()=>typeof window>"u";function G5(t){return typeof t=="object"&&t!==null&&"data"in t&&"error"in t?t:{data:t,error:null}}function nQ(t){return!t||t.session===null&&t.user===null?null:t}function rQ(t,e){return L0(t.data,e.data)&&t.error===e.error&&t.isPending===e.isPending&&t.isRefetching===e.isRefetching&&t.refetch===e.refetch}function aQ(t,e){const n=q5(!1);let r;const a=f=>u(f),s=q5({data:null,error:null,isPending:!0,isRefetching:!1,refetch:a});KX(s,rQ);const i=f=>{if(r!==f)return;const h=s.get();r=void 0,!(!h.isPending&&!h.isRefetching)&&s.set({...h,isPending:!1,isRefetching:!1,refetch:a})},u=async f=>{r?.abort();const h=new AbortController;r=h;const m=s.get();s.set({...m,isPending:m.data===null,isRefetching:!0,error:null,refetch:a});try{const g=await t("/get-session",{method:"GET",query:f?.query,signal:h.signal});if(h.signal.aborted){i(h);return}let{data:y,error:S}=G5(g);if(y?.needsRefresh)try{const k=await t("/get-session",{method:"POST",signal:h.signal});if(h.signal.aborted){i(h);return}({data:y,error:S}=G5(k))}catch{if(h.signal.aborted){i(h);return}}if(S){const k=s.get(),A=S?.status===401;s.set({data:A?null:k.data,error:S,isPending:!1,isRefetching:!1,refetch:a});return}const w=nQ(y),x=s.get(),E=x.data!=null&&w!=null&&L0(x.data,w)?x.data:w;s.set({data:E,error:null,isPending:!1,isRefetching:!1,refetch:a})}catch(g){if(h.signal.aborted){i(h);return}const y=s.get();s.set({data:y.data,error:g,isPending:!1,isRefetching:!1,refetch:a})}};let c=()=>{};return VX(s,()=>{let f;tQ()||(f=setTimeout(()=>{u()},0));const h=eQ({fetchSession:u,shouldPollSession:()=>s.get().data!=null,sessionSignal:n,options:e});return h.init(),c=h.broadcastSessionUpdate,()=>{f&&clearTimeout(f);const m=r;m?.abort(),m&&i(m),h.cleanup()}}),{session:s,$sessionSignal:n,broadcastSessionUpdate:f=>c(f)}}function xS(t){if(t===null||typeof t!="object")return!1;const e=Object.getPrototypeOf(t);return e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null||Symbol.iterator in t?!1:Symbol.toStringTag in t?Object.prototype.toString.call(t)==="[object Module]":!0}function CE(t,e,n=".",r){if(!xS(e))return CE(t,{},n,r);const a={...e};for(const s of Object.keys(t)){if(s==="__proto__"||s==="constructor")continue;const i=t[s];i!=null&&(r&&r(a,s,i,n)||(Array.isArray(i)&&Array.isArray(a[s])?a[s]=[...i,...a[s]]:xS(i)&&xS(a[s])?a[s]=CE(i,a[s],(n?`${n}.`:"")+s.toString(),r):a[s]=i))}return a}function sQ(t){return(...e)=>e.reduce((n,r)=>CE(n,r,"",t),{})}const oQ=sQ();var iQ=Object.defineProperty,lQ=Object.defineProperties,uQ=Object.getOwnPropertyDescriptors,K5=Object.getOwnPropertySymbols,cQ=Object.prototype.hasOwnProperty,dQ=Object.prototype.propertyIsEnumerable,Y5=(t,e,n)=>e in t?iQ(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ga=(t,e)=>{for(var n in e||(e={}))cQ.call(e,n)&&Y5(t,n,e[n]);if(K5)for(var n of K5(e))dQ.call(e,n)&&Y5(t,n,e[n]);return t},xs=(t,e)=>lQ(t,uQ(e)),fQ=class extends Error{constructor(t,e,n){super(e||t.toString(),{cause:n}),this.status=t,this.statusText=e,this.error=n,Error.captureStackTrace(this,this.constructor)}},hQ=async(t,e)=>{var n,r,a,s,i,u;let c=e||{};const f={onRequest:[e?.onRequest],onResponse:[e?.onResponse],onSuccess:[e?.onSuccess],onError:[e?.onError],onRetry:[e?.onRetry]};if(!e||!e?.plugins)return{url:t,options:c,hooks:f};for(const h of e?.plugins||[]){if(h.init){const m=await((n=h.init)==null?void 0:n.call(h,t.toString(),e));c=m.options||c,t=m.url}f.onRequest.push((r=h.hooks)==null?void 0:r.onRequest),f.onResponse.push((a=h.hooks)==null?void 0:a.onResponse),f.onSuccess.push((s=h.hooks)==null?void 0:s.onSuccess),f.onError.push((i=h.hooks)==null?void 0:i.onError),f.onRetry.push((u=h.hooks)==null?void 0:u.onRetry)}return{url:t,options:c,hooks:f}},Z5=class{constructor(t){this.options=t}shouldAttemptRetry(t,e){return this.options.shouldRetry?Promise.resolve(t<this.options.attempts&&this.options.shouldRetry(e)):Promise.resolve(t<this.options.attempts)}getDelay(){return this.options.delay}},pQ=class{constructor(t){this.options=t}shouldAttemptRetry(t,e){return this.options.shouldRetry?Promise.resolve(t<this.options.attempts&&this.options.shouldRetry(e)):Promise.resolve(t<this.options.attempts)}getDelay(t){return Math.min(this.options.maxDelay,this.options.baseDelay*2**t)}};function mQ(t){if(typeof t=="number")return new Z5({type:"linear",attempts:t,delay:1e3});switch(t.type){case"linear":return new Z5(t);case"exponential":return new pQ(t);default:throw new Error("Invalid retry strategy")}}var gQ=async t=>{const e={},n=async r=>typeof r=="function"?await r():r;if(t?.auth){if(t.auth.type==="Bearer"){const r=await n(t.auth.token);if(!r)return e;e.authorization=`Bearer ${r}`}else if(t.auth.type==="Basic"){const[r,a]=await Promise.all([n(t.auth.username),n(t.auth.password)]);if(!r||!a)return e;e.authorization=`Basic ${btoa(`${r}:${a}`)}`}else if(t.auth.type==="Custom"){const[r,a]=await Promise.all([n(t.auth.prefix),n(t.auth.value)]);if(!a)return e;e.authorization=`${r??""} ${a}`}}return e},vQ=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function yQ(t){const e=t.headers.get("content-type"),n=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!e)return"json";const r=e.split(";").shift()||"";return vQ.test(r)?"json":n.has(r)||r.startsWith("text/")?"text":"blob"}function bQ(t){try{return JSON.parse(t),!0}catch{return!1}}function mL(t){if(t===void 0)return!1;const e=typeof t;return e==="string"||e==="number"||e==="boolean"||e===null?!0:e!=="object"?!1:Array.isArray(t)?!0:t.buffer?!1:t.constructor&&t.constructor.name==="Object"||typeof t.toJSON=="function"}function X5(t){try{return JSON.parse(t)}catch{return t}}function Q5(t){return typeof t=="function"}function SQ(t){if(t?.customFetchImpl)return t.customFetchImpl;if(typeof globalThis<"u"&&Q5(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&Q5(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}function gL(...t){const e={};for(const n of t)if(n)if(n instanceof Headers)n.forEach((r,a)=>{e[a]=r});else{const r=Array.isArray(n)?n:Object.entries(n);for(const[a,s]of r)s!=null&&(e[a]=s)}return e}async function wQ(t){const e=new Headers(gL(t?.headers,await gQ(t)));if(!e.has("content-type")){const n=xQ(t?.body);n&&e.set("content-type",n)}return e}function xQ(t){return mL(t)?"application/json":null}function CQ(t){const e=t.get("content-type");return e?e.split(";")[0].trim().toLowerCase():null}function EQ(t,e){const{body:n}=t;return n?!mL(n)||typeof n=="string"?n:CQ(e)==="application/x-www-form-urlencoded"?new URLSearchParams(n).toString():JSON.stringify(n):null}function _Q(t,e){var n;if(e?.method)return e.method.toUpperCase();if(t.startsWith("@")){const r=(n=t.split("@")[1])==null?void 0:n.split("/")[0];return yL.includes(r)?r.toUpperCase():e?.body?"POST":"GET"}return e?.body?"POST":"GET"}function kQ(t,e){let n;return!t?.signal&&t?.timeout&&(n=setTimeout(()=>e?.abort(),t?.timeout)),{abortTimeout:n,clearTimeout:()=>{n&&clearTimeout(n)}}}var AQ=class vL extends Error{constructor(e,n){super(n||JSON.stringify(e,null,2)),this.issues=e,Object.setPrototypeOf(this,vL.prototype)}};async function nh(t,e){const n=await t["~standard"].validate(e);if(n.issues)throw new AQ(n.issues);return n.value}var yL=["get","post","put","patch","delete"],TQ=t=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(e,n){var r,a,s,i;const u=((a=(r=t.plugins)==null?void 0:r.find(c=>{var f;return(f=c.schema)!=null&&f.config?e.startsWith(c.schema.config.baseURL||"")||e.startsWith(c.schema.config.prefix||""):!1}))==null?void 0:a.schema)||t.schema;if(u){let c=e;(s=u.config)!=null&&s.prefix&&c.startsWith(u.config.prefix)&&(c=c.replace(u.config.prefix,""),u.config.baseURL&&(e=e.replace(u.config.prefix,u.config.baseURL))),(i=u.config)!=null&&i.baseURL&&c.startsWith(u.config.baseURL)&&(c=c.replace(u.config.baseURL,"")),c.startsWith("/")&&c.charAt(1)==="@"&&(c=c.substring(1));const f=u.schema[c];if(f){let h=n?.headers;if(f.headers&&!n?.disableValidation){const g={};if(n?.headers){if(n.headers instanceof Headers)n.headers.forEach((w,x)=>{g[x.toLowerCase()]=w});else if(typeof n.headers=="object")for(const[w,x]of Object.entries(n.headers))x!=null&&(g[w.toLowerCase()]=x)}const y=await nh(f.headers,g),S={};for(const[w,x]of Object.entries(y))S[w.toLowerCase()]=x;h=S}let m=xs(Ga({},n),{method:f.method,output:f.output,headers:h});return n?.disableValidation||(m=xs(Ga({},m),{body:f.input?await nh(f.input,n?.body):n?.body,params:f.params?await nh(f.params,n?.params):n?.params,query:f.query?await nh(f.query,n?.query):n?.query})),{url:e,options:m}}}return{url:e,options:n}}}),RQ=t=>{async function e(n,r){const a=xs(Ga(Ga({},t),r),{headers:gL(t?.headers,r?.headers),plugins:[...t?.plugins||[],TQ(t||{}),...r?.plugins||[]]});if(t?.catchAllError)try{return await EE(n,a)}catch(s){return{data:null,error:{status:500,statusText:"Fetch Error",message:"Fetch related error. Captured by catchAllError option. See error property for more details.",error:s}}}return await EE(n,a)}return e},IQ=t=>t==="."||t==="..";function OQ(t,e){let n=t;for(const[r,a]of e)n=n.replace(r,a);if(IQ(n))throw new TypeError("Path parameters cannot be reserved path segments");return encodeURIComponent(n)}function NQ(t,e){const{baseURL:n,params:r,query:a}=e||{query:{},params:{},baseURL:""};let s=t.startsWith("http")?t.split("/").slice(0,3).join("/"):n||"";if(t.startsWith("@")){const g=t.toString().split("@")[1].split("/")[0];yL.includes(g)&&(t=t.replace(`@${g}/`,"/"))}s.endsWith("/")||(s+="/");let[i,u]=t.replace(s,"").split("?");const c=new URLSearchParams(u);for(const[g,y]of Object.entries(a||{})){if(y==null)continue;let S;if(typeof y=="string")S=y;else if(Array.isArray(y)){for(const w of y)c.append(g,w);continue}else S=JSON.stringify(y);c.set(g,S)}const f=new Map;if(r)if(Array.isArray(r)){const g=i.split("/").filter(y=>y.startsWith(":"));for(const[y,S]of g.entries()){const w=r[y];f.set(S,String(w))}}else for(const[g,y]of Object.entries(r))f.set(`:${g}`,String(y));i=i.split("/").map(g=>OQ(g,f)).join("/"),i=i.replace(/^\/+/,"");let h=c.toString();return h=h.length>0?`?${h}`.replace(/\+/g,"%20"):"",s.startsWith("http")?new URL(`${i}${h}`,s):`${s}${i}${h}`}var EE=async(t,e)=>{var n,r,a,s,i,u,c,f;const{hooks:h,url:m,options:g}=await hQ(t,e),y=SQ(g),S=new AbortController,w=(n=g.signal)!=null?n:S.signal,x=NQ(m,g),E=await wQ(g),k=EQ(g,E),A=_Q(m,g),R=xs(Ga({},g),{url:x,headers:E,body:k,method:A,signal:w});for(const H of h.onRequest)if(H){const W=await H(R);typeof W=="object"&&W!==null&&Object.assign(R,W)}("pipeTo"in R&&typeof R.pipeTo=="function"||typeof((r=e?.body)==null?void 0:r.pipe)=="function")&&("duplex"in R||(R.duplex="half"));const{clearTimeout:N}=kQ(g,S);let O=await y(R.url,R);N();const I={response:O,request:R};for(const H of h.onResponse)if(H){const W=await H(xs(Ga({},I),{response:(a=e?.hookOptions)!=null&&a.cloneResponse?O.clone():O}));W instanceof Response?O=W:typeof W=="object"&&W!==null&&(O=W.response)}if(O.ok){if(!(R.method!=="HEAD"))return{data:"",error:null};const W=yQ(O),se={data:null,response:O,request:R};if(W==="json"||W==="text"){const $=await O.text(),Q=(s=R.jsonParser)!=null?s:X5;se.data=await Q($)}else se.data=await O[W]();R?.output&&R.output&&!R.disableValidation&&(se.data=await nh(R.output,se.data));for(const $ of h.onSuccess)$&&await $(xs(Ga({},se),{response:(i=e?.hookOptions)!=null&&i.cloneResponse?O.clone():O}));return e?.throw?se.data:{data:se.data,error:null}}const P=(u=e?.jsonParser)!=null?u:X5,U=await O.text(),q=bQ(U),z=q?await P(U):null,j={response:O,responseText:U,request:R,error:xs(Ga({},z),{status:O.status,statusText:O.statusText})};for(const H of h.onError)H&&await H(xs(Ga({},j),{response:(c=e?.hookOptions)!=null&&c.cloneResponse?O.clone():O}));if(e?.retry){const H=mQ(e.retry),W=(f=e.retryAttempt)!=null?f:0;if(await H.shouldAttemptRetry(W,O)){for(const $ of h.onRetry)$&&await $(I);const se=H.getDelay(W);return await new Promise($=>setTimeout($,se)),await EE(t,xs(Ga({},e),{retryAttempt:W+1}))}}if(e?.throw)throw new fQ(O.status,O.statusText,q?z:U);return{data:null,error:xs(Ga({},z),{status:O.status,statusText:O.statusText})}},xl={};const MQ=t=>{if(typeof process>"u")return;const e="/api/auth";if(xl.NEXT_PUBLIC_AUTH_URL)return xl.NEXT_PUBLIC_AUTH_URL;if(typeof window>"u"){if(xl.NEXTAUTH_URL)try{return xl.NEXTAUTH_URL}catch{}if(xl.VERCEL_URL)try{const n=xl.VERCEL_URL.startsWith("http")?"":"https://";return`${new URL(`${n}${xl.VERCEL_URL}`).origin}${e}`}catch{}}},PQ=(t,e)=>{const n="credentials"in Request.prototype,r=RX(t?.baseURL,t?.basePath)??MQ()??"/api/auth",a=[],s={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:t?.fetchOptions?.onSuccess,onError:t?.fetchOptions?.onError,onRequest:t?.fetchOptions?.onRequest,onResponse:t?.fetchOptions?.onResponse}},{onSuccess:i,onError:u,onRequest:c,onResponse:f,...h}={},m=RQ({baseURL:r,...n?{credentials:"include"}:{},method:"GET",jsonParser(N){return N?LX(N,{strict:!1}):null},customFetchImpl:fetch,...h,plugins:[s,...h.plugins||[],jX,...a]}),{$sessionSignal:g,session:y,broadcastSessionUpdate:S}=aQ(m,t),w=[];let x={};const E={$sessionSignal:g,session:y},k={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"},A=[{signal:"$sessionSignal",matcher(N){return N==="/sign-out"||N==="/update-user"||N==="/update-session"||N==="/sign-up/email"||N==="/sign-in/email"||N==="/delete-user"||N==="/verify-email"||N==="/revoke-sessions"||N==="/revoke-session"||N==="/revoke-other-sessions"||N==="/change-email"||N==="/change-password"},callback(N){N==="/sign-out"?S("signout"):(N==="/update-user"||N==="/update-session")&&S("updateUser")}}];for(const N of w)N.getAtoms&&Object.assign(E,N.getAtoms?.(m)),N.pathMethods&&Object.assign(k,N.pathMethods),N.atomListeners&&A.push(...N.atomListeners);const R={notify:N=>{E[N].set(!E[N].get())},listen:(N,O)=>{E[N].subscribe(O)},atoms:E};for(const N of w)N.getActions&&(x=oQ(N.getActions?.(m,R,t)??{},x));return{get baseURL(){return r},pluginsActions:x,pluginsAtoms:E,pluginPathMethods:k,atomListeners:A,$fetch:m,$store:R}};function DQ(t){return typeof t=="object"&&t!==null&&"get"in t&&typeof t.get=="function"&&"lc"in t&&typeof t.lc=="number"}function LQ(t){return t.charAt(0).toUpperCase()+t.slice(1)}const UQ=new RegExp("[\\p{Ll}\\d]+|\\p{Lu}+(?!\\p{Ll})|\\p{Lu}[\\p{Ll}\\d]+|\\p{Lo}+","gu"),zQ=/['\u2019]/g;function jQ(t){return t.replace(zQ,"").match(UQ)??[]}function FQ(t){return jQ(t).map(e=>e.toLowerCase()).join("-")}function BQ(t,e,n){const r=e[t],{fetchOptions:a,query:s,...i}=n||{};return r||(a?.method?a.method:i&&Object.keys(i).length>0?"POST":"GET")}function $Q(t,e,n,r,a){function s(i=[]){return new Proxy(function(){},{get(u,c){if(typeof c!="string"||c==="then"||c==="catch"||c==="finally")return;const f=[...i,c];let h=t;for(const m of f)if(h&&typeof h=="object"&&m in h)h=h[m];else{h=void 0;break}return typeof h=="function"||DQ(h)?h:s(f)},apply:async(u,c,f)=>{const h="/"+i.map(FQ).join("/"),m=f[0]||{},g=f[1]||{},{query:y,fetchOptions:S,...w}=m,x={...g,...S},E=BQ(h,n,m);return await e(h,{...x,body:E==="GET"?void 0:{...w,...x?.body||{}},query:y||x?.query,method:E,async onSuccess(k){if(await x?.onSuccess?.(k),!a||x.disableSignal)return;const A=a.filter(N=>N.matcher(h));if(!A.length)return;const R=new Set;for(const N of A){const O=r[N.signal];if(!O)return;if(R.has(N.signal))continue;R.add(N.signal);const I=O.get();setTimeout(()=>{O.set(!I)},10),N.callback?.(h)}}})}})}return s()}var CS={exports:{}},Ke={};var J5;function HQ(){if(J5)return Ke;J5=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),i=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),g=Symbol.iterator;function y(D){return D===null||typeof D!="object"?null:(D=g&&D[g]||D["@@iterator"],typeof D=="function"?D:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,x={};function E(D,Z,K){this.props=D,this.context=Z,this.refs=x,this.updater=K||S}E.prototype.isReactComponent={},E.prototype.setState=function(D,Z){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,Z,"setState")},E.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function k(){}k.prototype=E.prototype;function A(D,Z,K){this.props=D,this.context=Z,this.refs=x,this.updater=K||S}var R=A.prototype=new k;R.constructor=A,w(R,E.prototype),R.isPureReactComponent=!0;var N=Array.isArray;function O(){}var I={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function U(D,Z,K){var X=K.ref;return{$$typeof:t,type:D,key:Z,ref:X!==void 0?X:null,props:K}}function q(D,Z){return U(D.type,Z,D.props)}function z(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function j(D){var Z={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(K){return Z[K]})}var H=/\/+/g;function W(D,Z){return typeof D=="object"&&D!==null&&D.key!=null?j(""+D.key):Z.toString(36)}function se(D){switch(D.status){case"fulfilled":return D.value;case"rejected":throw D.reason;default:switch(typeof D.status=="string"?D.then(O,O):(D.status="pending",D.then(function(Z){D.status==="pending"&&(D.status="fulfilled",D.value=Z)},function(Z){D.status==="pending"&&(D.status="rejected",D.reason=Z)})),D.status){case"fulfilled":return D.value;case"rejected":throw D.reason}}throw D}function $(D,Z,K,X,G){var ue=typeof D;(ue==="undefined"||ue==="boolean")&&(D=null);var oe=!1;if(D===null)oe=!0;else switch(ue){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(D.$$typeof){case t:case e:oe=!0;break;case h:return oe=D._init,$(oe(D._payload),Z,K,X,G)}}if(oe)return G=G(D),oe=X===""?"."+W(D,0):X,N(G)?(K="",oe!=null&&(K=oe.replace(H,"$&/")+"/"),$(G,Z,K,"",function(Ge){return Ge})):G!=null&&(z(G)&&(G=q(G,K+(G.key==null||D&&D.key===G.key?"":(""+G.key).replace(H,"$&/")+"/")+oe)),Z.push(G)),1;oe=0;var ce=X===""?".":X+":";if(N(D))for(var be=0;be<D.length;be++)X=D[be],ue=ce+W(X,be),oe+=$(X,Z,K,ue,G);else if(be=y(D),typeof be=="function")for(D=be.call(D),be=0;!(X=D.next()).done;)X=X.value,ue=ce+W(X,be++),oe+=$(X,Z,K,ue,G);else if(ue==="object"){if(typeof D.then=="function")return $(se(D),Z,K,X,G);throw Z=String(D),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return oe}function Q(D,Z,K){if(D==null)return D;var X=[],G=0;return $(D,X,"","",function(ue){return Z.call(K,ue,G++)}),X}function re(D){if(D._status===-1){var Z=D._result;Z=Z(),Z.then(function(K){(D._status===0||D._status===-1)&&(D._status=1,D._result=K)},function(K){(D._status===0||D._status===-1)&&(D._status=2,D._result=K)}),D._status===-1&&(D._status=0,D._result=Z)}if(D._status===1)return D._result.default;throw D._result}var he=typeof reportError=="function"?reportError:function(D){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D),error:D});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",D);return}console.error(D)},xe={map:Q,forEach:function(D,Z,K){Q(D,function(){Z.apply(this,arguments)},K)},count:function(D){var Z=0;return Q(D,function(){Z++}),Z},toArray:function(D){return Q(D,function(Z){return Z})||[]},only:function(D){if(!z(D))throw Error("React.Children.only expected to receive a single React element child.");return D}};return Ke.Activity=m,Ke.Children=xe,Ke.Component=E,Ke.Fragment=n,Ke.Profiler=a,Ke.PureComponent=A,Ke.StrictMode=r,Ke.Suspense=c,Ke.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,Ke.__COMPILER_RUNTIME={__proto__:null,c:function(D){return I.H.useMemoCache(D)}},Ke.cache=function(D){return function(){return D.apply(null,arguments)}},Ke.cacheSignal=function(){return null},Ke.cloneElement=function(D,Z,K){if(D==null)throw Error("The argument must be a React element, but you passed "+D+".");var X=w({},D.props),G=D.key;if(Z!=null)for(ue in Z.key!==void 0&&(G=""+Z.key),Z)!P.call(Z,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&Z.ref===void 0||(X[ue]=Z[ue]);var ue=arguments.length-2;if(ue===1)X.children=K;else if(1<ue){for(var oe=Array(ue),ce=0;ce<ue;ce++)oe[ce]=arguments[ce+2];X.children=oe}return U(D.type,G,X)},Ke.createContext=function(D){return D={$$typeof:i,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null},D.Provider=D,D.Consumer={$$typeof:s,_context:D},D},Ke.createElement=function(D,Z,K){var X,G={},ue=null;if(Z!=null)for(X in Z.key!==void 0&&(ue=""+Z.key),Z)P.call(Z,X)&&X!=="key"&&X!=="__self"&&X!=="__source"&&(G[X]=Z[X]);var oe=arguments.length-2;if(oe===1)G.children=K;else if(1<oe){for(var ce=Array(oe),be=0;be<oe;be++)ce[be]=arguments[be+2];G.children=ce}if(D&&D.defaultProps)for(X in oe=D.defaultProps,oe)G[X]===void 0&&(G[X]=oe[X]);return U(D,ue,G)},Ke.createRef=function(){return{current:null}},Ke.forwardRef=function(D){return{$$typeof:u,render:D}},Ke.isValidElement=z,Ke.lazy=function(D){return{$$typeof:h,_payload:{_status:-1,_result:D},_init:re}},Ke.memo=function(D,Z){return{$$typeof:f,type:D,compare:Z===void 0?null:Z}},Ke.startTransition=function(D){var Z=I.T,K={};I.T=K;try{var X=D(),G=I.S;G!==null&&G(K,X),typeof X=="object"&&X!==null&&typeof X.then=="function"&&X.then(O,he)}catch(ue){he(ue)}finally{Z!==null&&K.types!==null&&(Z.types=K.types),I.T=Z}},Ke.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},Ke.use=function(D){return I.H.use(D)},Ke.useActionState=function(D,Z,K){return I.H.useActionState(D,Z,K)},Ke.useCallback=function(D,Z){return I.H.useCallback(D,Z)},Ke.useContext=function(D){return I.H.useContext(D)},Ke.useDebugValue=function(){},Ke.useDeferredValue=function(D,Z){return I.H.useDeferredValue(D,Z)},Ke.useEffect=function(D,Z){return I.H.useEffect(D,Z)},Ke.useEffectEvent=function(D){return I.H.useEffectEvent(D)},Ke.useId=function(){return I.H.useId()},Ke.useImperativeHandle=function(D,Z,K){return I.H.useImperativeHandle(D,Z,K)},Ke.useInsertionEffect=function(D,Z){return I.H.useInsertionEffect(D,Z)},Ke.useLayoutEffect=function(D,Z){return I.H.useLayoutEffect(D,Z)},Ke.useMemo=function(D,Z){return I.H.useMemo(D,Z)},Ke.useOptimistic=function(D,Z){return I.H.useOptimistic(D,Z)},Ke.useReducer=function(D,Z,K){return I.H.useReducer(D,Z,K)},Ke.useRef=function(D){return I.H.useRef(D)},Ke.useState=function(D){return I.H.useState(D)},Ke.useSyncExternalStore=function(D,Z,K){return I.H.useSyncExternalStore(D,Z,K)},Ke.useTransition=function(){return I.H.useTransition()},Ke.version="19.2.7",Ke}var e6;function gp(){return e6||(e6=1,CS.exports=HQ()),CS.exports}var _=gp();const F=Xi(_),bL=oD({__proto__:null,default:F},[_]);function qQ(t,e={}){const n=_.useRef(t.get()),{keys:r,deps:a=[t,r]}=e,s=_.useCallback(u=>{const c=f=>{n.current!==f&&(n.current=f,u())};return c(t.value),r?.length?GX(t,r,c):t.listen(c)},a),i=()=>n.current;return _.useSyncExternalStore(s,i,i)}function WQ(t){return`use${LQ(t)}`}function VQ(t){const{pluginPathMethods:e,pluginsActions:n,pluginsAtoms:r,$fetch:a,$store:s,atomListeners:i}=PQ(t),u={};for(const[c,f]of Object.entries(r))u[WQ(c)]=()=>qQ(f);return $Q({...n,...u,$fetch:a,$store:s},a,e,r,i)}const GQ=10,jc=[],KQ=["x-correlation-id","x-request-id","x-amzn-requestid","x-amzn-trace-id","apigw-requestid","x-trace-id"];function YQ(t){const e=typeof t=="string"?t:t instanceof URL?t.href:t.url;try{return new URL(e,window.location.origin).pathname}catch{return e.split(/[?#]/)[0]}}function ZQ(t,e){return e?.method?e.method.toUpperCase():typeof t!="string"&&!(t instanceof URL)&&t.method?t.method.toUpperCase():"GET"}function XQ(t){for(const e of KQ){const n=t.headers.get(e);if(n)return n}}function QQ(t){jc.push(t),jc.length>GQ&&jc.shift()}function t6(t){const{input:e,init:n,response:r,durationMs:a}=t;QQ({method:ZQ(e,n),path:YQ(e),status:r?.status??0,durationMs:Math.round(a),correlationId:r?XQ(r):void 0,timestamp:new Date().toISOString()})}function JQ(){return jc.slice()}function eJ(){for(let t=jc.length-1;t>=0;t--){const e=jc[t];if(e.status===0||e.status>=400)return e}}class q_ extends Error{constructor(e){super(e instanceof Error&&e.message?e.message:"The request could not be completed.",{cause:e}),this.name="NetworkError"}}const tJ=t=>typeof t=="object"&&t!==null&&"name"in t&&t.name==="AbortError",SL=async(t,e)=>{const n=performance.now();try{const r=await fetch(t,e);return t6({input:t,init:e,response:r,durationMs:performance.now()-n}),r}catch(r){throw tJ(r)?r:(t6({input:t,init:e,durationMs:performance.now()-n}),new q_(r))}},nv=()=>ev().betterAuthEnabled,nJ="EMAIL_PASSWORD_SIGN_UP_DISABLED",rJ=t=>typeof t=="object"&&t!==null&&t.code===nJ,Oh=VQ(),aJ=60,sJ=30,_E="remit.better-auth.token",wL=()=>{try{return globalThis.sessionStorage??null}catch{return null}},oJ=()=>{const t=wL()?.getItem(_E);if(!t)return null;try{const e=JSON.parse(t);if(e&&typeof e=="object"&&typeof e.value=="string"&&typeof e.expiresAt=="number")return{value:e.value,expiresAt:e.expiresAt}}catch{}return null},xL=t=>{const e=wL();if(e)try{if(!t){e.removeItem(_E);return}e.setItem(_E,JSON.stringify(t))}catch{}};let Il=null,U0=0;const iJ=()=>Il||(Il=oJ(),Il),Ul=()=>Math.floor(Date.now()/1e3),lJ=t=>{const[,e]=t.split(".");if(!e)return Ul();try{const n=JSON.parse(atob(e.replace(/-/g,"+").replace(/_/g,"/")));return typeof n.exp=="number"?n.exp:Ul()}catch{return Ul()}};class z0 extends Error{status;constructor(e,n){super(e),this.name="AuthTokenError",this.status=n}}const uJ=async()=>{const t=await SL("/api/auth/token",{credentials:"include"});if(!t.ok)throw new z0(`Could not mint a session token: ${t.status} ${t.statusText}`,t.status);const e=await t.json();if(e&&typeof e=="object"&&"token"in e&&typeof e.token=="string")return e.token;throw new z0("The token endpoint returned no token")};let Mf=null;const cJ=()=>Mf||(Mf=uJ().then(t=>(Il={value:t,expiresAt:lJ(t)},xL(Il),U0=0,t)).finally(()=>{Mf=null}),Mf),dJ=t=>t.expiresAt-aJ>Ul(),n6=t=>t.expiresAt>Ul(),fJ=t=>t instanceof q_?!0:t instanceof z0?t.status===408||t.status===429||(t.status??0)>=500:!1,hJ=t=>t instanceof z0&&(t.status===401||t.status===403),pJ=async()=>{const t=iJ();if(t&&dJ(t)||t&&n6(t)&&Ul()<U0)return t.value;try{return await cJ()}catch(e){if(hJ(e))throw W_(),e;if(t&&n6(t)&&fJ(e))return U0=Ul()+sJ,t.value;throw e}},W_=()=>{U0=0,xL(null),Il=null};function CL(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var a=t.length;for(e=0;e<a;e++)t[e]&&(n=CL(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function EL(){for(var t,e,n=0,r="",a=arguments.length;n<a;n++)(t=arguments[n])&&(e=CL(t))&&(r&&(r+=" "),r+=e);return r}var ES={exports:{}},fr={};var r6;function mJ(){if(r6)return fr;r6=1;var t=gp();function e(c){var f="https://react.dev/errors/"+c;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)f+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+c+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(e(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function s(c,f,h){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:m==null?null:""+m,children:c,containerInfo:f,implementation:h}}var i=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(c,f){if(c==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return fr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,fr.createPortal=function(c,f){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(e(299));return s(c,f,null,h)},fr.flushSync=function(c){var f=i.T,h=r.p;try{if(i.T=null,r.p=2,c)return c()}finally{i.T=f,r.p=h,r.d.f()}},fr.preconnect=function(c,f){typeof c=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(c,f))},fr.prefetchDNS=function(c){typeof c=="string"&&r.d.D(c)},fr.preinit=function(c,f){if(typeof c=="string"&&f&&typeof f.as=="string"){var h=f.as,m=u(h,f.crossOrigin),g=typeof f.integrity=="string"?f.integrity:void 0,y=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;h==="style"?r.d.S(c,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:m,integrity:g,fetchPriority:y}):h==="script"&&r.d.X(c,{crossOrigin:m,integrity:g,fetchPriority:y,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},fr.preinitModule=function(c,f){if(typeof c=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var h=u(f.as,f.crossOrigin);r.d.M(c,{crossOrigin:h,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(c)},fr.preload=function(c,f){if(typeof c=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var h=f.as,m=u(h,f.crossOrigin);r.d.L(c,h,{crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},fr.preloadModule=function(c,f){if(typeof c=="string")if(f){var h=u(f.as,f.crossOrigin);r.d.m(c,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:h,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(c)},fr.requestFormReset=function(c){r.d.r(c)},fr.unstable_batchedUpdates=function(c,f){return c(f)},fr.useFormState=function(c,f,h){return i.H.useFormState(c,f,h)},fr.useFormStatus=function(){return i.H.useHostTransitionStatus()},fr.version="19.2.7",fr}var a6;function _L(){if(a6)return ES.exports;a6=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),ES.exports=mJ(),ES.exports}var kL=_L();const JTe=Xi(kL);var _S={exports:{}},kS={};var s6;function gJ(){if(s6)return kS;s6=1;var t=gp();function e(m,g){return m===g&&(m!==0||1/m===1/g)||m!==m&&g!==g}var n=typeof Object.is=="function"?Object.is:e,r=t.useState,a=t.useEffect,s=t.useLayoutEffect,i=t.useDebugValue;function u(m,g){var y=g(),S=r({inst:{value:y,getSnapshot:g}}),w=S[0].inst,x=S[1];return s(function(){w.value=y,w.getSnapshot=g,c(w)&&x({inst:w})},[m,y,g]),a(function(){return c(w)&&x({inst:w}),m(function(){c(w)&&x({inst:w})})},[m]),i(y),y}function c(m){var g=m.getSnapshot;m=m.value;try{var y=g();return!n(m,y)}catch{return!0}}function f(m,g){return g()}var h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:u;return kS.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:h,kS}var o6;function vJ(){return o6||(o6=1,_S.exports=gJ()),_S.exports}const yJ=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),AL=(...t)=>t.filter((e,n,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===n).join(" ").trim();var bJ={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const SJ=_.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:s,iconNode:i,...u},c)=>_.createElement("svg",{ref:c,...bJ,width:e,height:e,stroke:t,strokeWidth:r?Number(n)*24/Number(e):n,className:AL("lucide",a),...u},[...i.map(([f,h])=>_.createElement(f,h)),...Array.isArray(s)?s:[s]]));const Rt=(t,e)=>{const n=_.forwardRef(({className:r,...a},s)=>_.createElement(SJ,{ref:s,iconNode:e,className:AL(`lucide-${yJ(t)}`,r),...a}));return n.displayName=`${t}`,n};const wJ=Rt("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);const TL=Rt("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);const xJ=Rt("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);const rv=Rt("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const kE=Rt("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const CJ=Rt("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const EJ=Rt("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);const _J=Rt("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);const kJ=Rt("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);const AJ=Rt("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);const TJ=Rt("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);const RJ=Rt("FolderInput",[["path",{d:"M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1",key:"fm4g5t"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m9 16 3-3-3-3",key:"6m91ic"}]]);const IJ=Rt("FolderPlus",[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);const OJ=Rt("FolderTree",[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]]);const NJ=Rt("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);const RL=Rt("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);const IL=Rt("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);const j0=Rt("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);const MJ=Rt("Mails",[["rect",{width:"16",height:"13",x:"6",y:"4",rx:"2",key:"1drq3f"}],["path",{d:"m22 7-7.1 3.78c-.57.3-1.23.3-1.8 0L6 7",key:"xn252p"}],["path",{d:"M2 8v11c0 1.1.9 2 2 2h14",key:"n13cji"}]]);const V_=Rt("OctagonAlert",[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]]);const PJ=Rt("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);const DJ=Rt("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const LJ=Rt("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);const UJ=Rt("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);const AE=Rt("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);const zJ=Rt("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);const jJ=Rt("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);const FJ=Rt("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);const Nh=Rt("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);const BJ=Rt("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);const $J=Rt("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);const Ms=Rt("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),G_="-",HJ=t=>{const e=WJ(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:i=>{const u=i.split(G_);return u[0]===""&&u.length!==1&&u.shift(),OL(u,e)||qJ(i)},getConflictingClassGroupIds:(i,u)=>{const c=n[i]||[];return u&&r[i]?[...c,...r[i]]:c}}},OL=(t,e)=>{if(t.length===0)return e.classGroupId;const n=t[0],r=e.nextPart.get(n),a=r?OL(t.slice(1),r):void 0;if(a)return a;if(e.validators.length===0)return;const s=t.join(G_);return e.validators.find(({validator:i})=>i(s))?.classGroupId},i6=/^\[(.+)\]$/,qJ=t=>{if(i6.test(t)){const e=i6.exec(t)[1],n=e?.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}},WJ=t=>{const{theme:e,prefix:n}=t,r={nextPart:new Map,validators:[]};return GJ(Object.entries(t.classGroups),n).forEach(([s,i])=>{TE(i,r,s,e)}),r},TE=(t,e,n,r)=>{t.forEach(a=>{if(typeof a=="string"){const s=a===""?e:l6(e,a);s.classGroupId=n;return}if(typeof a=="function"){if(VJ(a)){TE(a(r),e,n,r);return}e.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([s,i])=>{TE(i,l6(e,s),n,r)})})},l6=(t,e)=>{let n=t;return e.split(G_).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},VJ=t=>t.isThemeGetter,GJ=(t,e)=>e?t.map(([n,r])=>{const a=r.map(s=>typeof s=="string"?e+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,u])=>[e+i,u])):s);return[n,a]}):t,KJ=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,r=new Map;const a=(s,i)=>{n.set(s,i),e++,e>t&&(e=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return a(s,i),i},set(s,i){n.has(s)?n.set(s,i):a(s,i)}}},NL="!",YJ=t=>{const{separator:e,experimentalParseClassName:n}=t,r=e.length===1,a=e[0],s=e.length,i=u=>{const c=[];let f=0,h=0,m;for(let x=0;x<u.length;x++){let E=u[x];if(f===0){if(E===a&&(r||u.slice(x,x+s)===e)){c.push(u.slice(h,x)),h=x+s;continue}if(E==="/"){m=x;continue}}E==="["?f++:E==="]"&&f--}const g=c.length===0?u:u.substring(h),y=g.startsWith(NL),S=y?g.substring(1):g,w=m&&m>h?m-h:void 0;return{modifiers:c,hasImportantModifier:y,baseClassName:S,maybePostfixModifierPosition:w}};return n?u=>n({className:u,parseClassName:i}):i},ZJ=t=>{if(t.length<=1)return t;const e=[];let n=[];return t.forEach(r=>{r[0]==="["?(e.push(...n.sort(),r),n=[]):n.push(r)}),e.push(...n.sort()),e},XJ=t=>({cache:KJ(t.cacheSize),parseClassName:YJ(t),...HJ(t)}),QJ=/\s+/,JJ=(t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a}=e,s=[],i=t.trim().split(QJ);let u="";for(let c=i.length-1;c>=0;c-=1){const f=i[c],{modifiers:h,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:y}=n(f);let S=!!y,w=r(S?g.substring(0,y):g);if(!w){if(!S){u=f+(u.length>0?" "+u:u);continue}if(w=r(g),!w){u=f+(u.length>0?" "+u:u);continue}S=!1}const x=ZJ(h).join(":"),E=m?x+NL:x,k=E+w;if(s.includes(k))continue;s.push(k);const A=a(w,S);for(let R=0;R<A.length;++R){const N=A[R];s.push(E+N)}u=f+(u.length>0?" "+u:u)}return u};function eee(){let t=0,e,n,r="";for(;t<arguments.length;)(e=arguments[t++])&&(n=ML(e))&&(r&&(r+=" "),r+=n);return r}const ML=t=>{if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=ML(t[r]))&&(n&&(n+=" "),n+=e);return n};function tee(t,...e){let n,r,a,s=i;function i(c){const f=e.reduce((h,m)=>m(h),t());return n=XJ(f),r=n.cache.get,a=n.cache.set,s=u,u(c)}function u(c){const f=r(c);if(f)return f;const h=JJ(c,n);return a(c,h),h}return function(){return s(eee.apply(null,arguments))}}const Xt=t=>{const e=n=>n[t]||[];return e.isThemeGetter=!0,e},PL=/^\[(?:([a-z-]+):)?(.+)\]$/i,nee=/^\d+\/\d+$/,ree=new Set(["px","full","screen"]),aee=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,see=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,oee=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,iee=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,lee=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,oo=t=>Fc(t)||ree.has(t)||nee.test(t),vi=t=>xd(t,"length",gee),Fc=t=>!!t&&!Number.isNaN(Number(t)),AS=t=>xd(t,"number",Fc),Pf=t=>!!t&&Number.isInteger(Number(t)),uee=t=>t.endsWith("%")&&Fc(t.slice(0,-1)),tt=t=>PL.test(t),yi=t=>aee.test(t),cee=new Set(["length","size","percentage"]),dee=t=>xd(t,cee,DL),fee=t=>xd(t,"position",DL),hee=new Set(["image","url"]),pee=t=>xd(t,hee,yee),mee=t=>xd(t,"",vee),Df=()=>!0,xd=(t,e,n)=>{const r=PL.exec(t);return r?r[1]?typeof e=="string"?r[1]===e:e.has(r[1]):n(r[2]):!1},gee=t=>see.test(t)&&!oee.test(t),DL=()=>!1,vee=t=>iee.test(t),yee=t=>lee.test(t),bee=()=>{const t=Xt("colors"),e=Xt("spacing"),n=Xt("blur"),r=Xt("brightness"),a=Xt("borderColor"),s=Xt("borderRadius"),i=Xt("borderSpacing"),u=Xt("borderWidth"),c=Xt("contrast"),f=Xt("grayscale"),h=Xt("hueRotate"),m=Xt("invert"),g=Xt("gap"),y=Xt("gradientColorStops"),S=Xt("gradientColorStopPositions"),w=Xt("inset"),x=Xt("margin"),E=Xt("opacity"),k=Xt("padding"),A=Xt("saturate"),R=Xt("scale"),N=Xt("sepia"),O=Xt("skew"),I=Xt("space"),P=Xt("translate"),U=()=>["auto","contain","none"],q=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",tt,e],j=()=>[tt,e],H=()=>["",oo,vi],W=()=>["auto",Fc,tt],se=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],Q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],re=()=>["start","end","center","between","around","evenly","stretch"],he=()=>["","0",tt],xe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>[Fc,tt];return{cacheSize:500,separator:":",theme:{colors:[Df],spacing:[oo,vi],blur:["none","",yi,tt],brightness:D(),borderColor:[t],borderRadius:["none","","full",yi,tt],borderSpacing:j(),borderWidth:H(),contrast:D(),grayscale:he(),hueRotate:D(),invert:he(),gap:j(),gradientColorStops:[t],gradientColorStopPositions:[uee,vi],inset:z(),margin:z(),opacity:D(),padding:j(),saturate:D(),scale:D(),sepia:he(),skew:D(),space:j(),translate:j()},classGroups:{aspect:[{aspect:["auto","square","video",tt]}],container:["container"],columns:[{columns:[yi]}],"break-after":[{"break-after":xe()}],"break-before":[{"break-before":xe()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...se(),tt]}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-y":[{"overflow-y":q()}],overscroll:[{overscroll:U()}],"overscroll-x":[{"overscroll-x":U()}],"overscroll-y":[{"overscroll-y":U()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Pf,tt]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",tt]}],grow:[{grow:he()}],shrink:[{shrink:he()}],order:[{order:["first","last","none",Pf,tt]}],"grid-cols":[{"grid-cols":[Df]}],"col-start-end":[{col:["auto",{span:["full",Pf,tt]},tt]}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":[Df]}],"row-start-end":[{row:["auto",{span:[Pf,tt]},tt]}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",tt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",tt]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...re()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...re(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...re(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[k]}],px:[{px:[k]}],py:[{py:[k]}],ps:[{ps:[k]}],pe:[{pe:[k]}],pt:[{pt:[k]}],pr:[{pr:[k]}],pb:[{pb:[k]}],pl:[{pl:[k]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[I]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[I]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",tt,e]}],"min-w":[{"min-w":[tt,e,"min","max","fit"]}],"max-w":[{"max-w":[tt,e,"none","full","min","max","fit","prose",{screen:[yi]},yi]}],h:[{h:[tt,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[tt,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[tt,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[tt,e,"auto","min","max","fit"]}],"font-size":[{text:["base",yi,vi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",AS]}],"font-family":[{font:[Df]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",tt]}],"line-clamp":[{"line-clamp":["none",Fc,AS]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",oo,tt]}],"list-image":[{"list-image":["none",tt]}],"list-style-type":[{list:["none","disc","decimal",tt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[E]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[E]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",oo,vi]}],"underline-offset":[{"underline-offset":["auto",oo,tt]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",tt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",tt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[E]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...se(),fee]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",dee]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},pee]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[y]}],"gradient-via":[{via:[y]}],"gradient-to":[{to:[y]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[u]}],"border-w-x":[{"border-x":[u]}],"border-w-y":[{"border-y":[u]}],"border-w-s":[{"border-s":[u]}],"border-w-e":[{"border-e":[u]}],"border-w-t":[{"border-t":[u]}],"border-w-r":[{"border-r":[u]}],"border-w-b":[{"border-b":[u]}],"border-w-l":[{"border-l":[u]}],"border-opacity":[{"border-opacity":[E]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[u]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[u]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[E]}],"divide-style":[{divide:$()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...$()]}],"outline-offset":[{"outline-offset":[oo,tt]}],"outline-w":[{outline:[oo,vi]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[E]}],"ring-offset-w":[{"ring-offset":[oo,vi]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",yi,mee]}],"shadow-color":[{shadow:[Df]}],opacity:[{opacity:[E]}],"mix-blend":[{"mix-blend":[...Q(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Q()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",yi,tt]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[m]}],saturate:[{saturate:[A]}],sepia:[{sepia:[N]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[E]}],"backdrop-saturate":[{"backdrop-saturate":[A]}],"backdrop-sepia":[{"backdrop-sepia":[N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",tt]}],duration:[{duration:D()}],ease:[{ease:["linear","in","out","in-out",tt]}],delay:[{delay:D()}],animate:[{animate:["none","spin","ping","pulse","bounce",tt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[R]}],"scale-x":[{"scale-x":[R]}],"scale-y":[{"scale-y":[R]}],rotate:[{rotate:[Pf,tt]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[O]}],"skew-y":[{"skew-y":[O]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",tt]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",tt]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",tt]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[oo,vi,AS]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},LL=tee(bee);function Ue(...t){return LL(EL(t))}const See=1024,wee=1280;function xee(t,e=See,n=wee){const r=t>=e;return{nav:r,reading:r,intelligence:t>=n}}function Cee(t){const e=_.useRef(null),[n,r]=_.useState(t??null);return _.useEffect(()=>{const a=e.current;if(!a||typeof ResizeObserver>"u")return;const s=new ResizeObserver(i=>{const u=i[0];u&&r(u.contentRect.width)});return s.observe(a),r(a.getBoundingClientRect().width),()=>s.disconnect()},[]),[e,n]}const Eee=[{id:"all",label:"All"},{id:"personal",label:"Personal"},{id:"uncategorized",label:"Unclassified"},{id:"newsletter",label:"Newsletters"},{id:"marketing",label:"Marketing"},{id:"automated",label:"Automated"},{id:"transactional",label:"Transactional"},{id:"social",label:"Social"}],_ee={uncategorized:"neutral",personal:"accent",newsletter:"neutral",marketing:"neutral",automated:"neutral",transactional:"positive",social:"warning"};function kee({open:t,onClose:e,title:n,children:r,className:a,anchor:s="center"}){const i=_.useRef(null),u=_.useCallback(h=>{if(h.key!=="Escape")return;const m=document.activeElement;m instanceof Element&&m.closest("[data-escape-owner]")||(h.preventDefault(),h.stopImmediatePropagation(),e())},[e]);if(_.useEffect(()=>{if(t)return window.addEventListener("keydown",u,!0),()=>window.removeEventListener("keydown",u,!0)},[t,u]),_.useEffect(()=>{if(!t)return;const h=i.current;if(!h)return;h.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')[0]?.focus()},[t]),!t)return null;const c=s==="left",f=s==="right";return C.jsxs("div",{className:Ue("fixed inset-0 z-50 flex",c?"items-stretch justify-start":f?"items-stretch justify-end":"items-center justify-center px-4"),role:"presentation",onClick:e,children:[C.jsx("div",{className:"absolute inset-0 bg-canvas/80"}),C.jsxs("div",{ref:i,role:"dialog","aria-modal":"true","aria-labelledby":"dialog-title",className:Ue("relative z-10 overflow-hidden border-line bg-surface shadow-xl",c?"h-full w-72 max-w-[85vw] border-r":f?"h-full w-[80vw] max-w-[320px] border-l":"w-full max-w-lg rounded-md border",a),onClick:h=>h.stopPropagation(),onKeyDown:h=>h.stopPropagation(),children:[C.jsx("h2",{id:"dialog-title",className:"sr-only",children:n}),r]})]})}const av=_.createContext(null);av.displayName="PanelGroupContext";const yn={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},K_=10,zl=_.useLayoutEffect,u6=bL.useId,Aee=typeof u6=="function"?u6:()=>null;let Tee=0;function Y_(t=null){const e=Aee(),n=_.useRef(t||e||null);return n.current===null&&(n.current=""+Tee++),t??n.current}function UL({children:t,className:e="",collapsedSize:n,collapsible:r,defaultSize:a,forwardedRef:s,id:i,maxSize:u,minSize:c,onCollapse:f,onExpand:h,onResize:m,order:g,style:y,tagName:S="div",...w}){const x=_.useContext(av);if(x===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:E,expandPanel:k,getPanelSize:A,getPanelStyle:R,groupId:N,isPanelCollapsed:O,reevaluatePanelConstraints:I,registerPanel:P,resizePanel:U,unregisterPanel:q}=x,z=Y_(i),j=_.useRef({callbacks:{onCollapse:f,onExpand:h,onResize:m},constraints:{collapsedSize:n,collapsible:r,defaultSize:a,maxSize:u,minSize:c},id:z,idIsFromProps:i!==void 0,order:g});_.useRef({didLogMissingDefaultSizeWarning:!1}),zl(()=>{const{callbacks:W,constraints:se}=j.current,$={...se};j.current.id=z,j.current.idIsFromProps=i!==void 0,j.current.order=g,W.onCollapse=f,W.onExpand=h,W.onResize=m,se.collapsedSize=n,se.collapsible=r,se.defaultSize=a,se.maxSize=u,se.minSize=c,($.collapsedSize!==se.collapsedSize||$.collapsible!==se.collapsible||$.maxSize!==se.maxSize||$.minSize!==se.minSize)&&I(j.current,$)}),zl(()=>{const W=j.current;return P(W),()=>{q(W)}},[g,z,P,q]),_.useImperativeHandle(s,()=>({collapse:()=>{E(j.current)},expand:W=>{k(j.current,W)},getId(){return z},getSize(){return A(j.current)},isCollapsed(){return O(j.current)},isExpanded(){return!O(j.current)},resize:W=>{U(j.current,W)}}),[E,k,A,O,z,U]);const H=R(j.current,a);return _.createElement(S,{...w,children:t,className:e,id:z,style:{...H,...y},[yn.groupId]:N,[yn.panel]:"",[yn.panelCollapsible]:r||void 0,[yn.panelId]:z,[yn.panelSize]:parseFloat(""+H.flexGrow).toFixed(1)})}const zL=_.forwardRef((t,e)=>_.createElement(UL,{...t,forwardedRef:e}));UL.displayName="Panel";zL.displayName="forwardRef(Panel)";let RE=null,u0=-1,Ti=null;function Ree(t,e){if(e){const n=(e&HL)!==0,r=(e&qL)!==0,a=(e&WL)!==0,s=(e&VL)!==0;if(n)return a?"se-resize":s?"ne-resize":"e-resize";if(r)return a?"sw-resize":s?"nw-resize":"w-resize";if(a)return"s-resize";if(s)return"n-resize"}switch(t){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function Iee(){Ti!==null&&(document.head.removeChild(Ti),RE=null,Ti=null,u0=-1)}function TS(t,e){var n,r;const a=Ree(t,e);if(RE!==a){if(RE=a,Ti===null&&(Ti=document.createElement("style"),document.head.appendChild(Ti)),u0>=0){var s;(s=Ti.sheet)===null||s===void 0||s.removeRule(u0)}u0=(n=(r=Ti.sheet)===null||r===void 0?void 0:r.insertRule(`*{cursor: ${a} !important;}`))!==null&&n!==void 0?n:-1}}function jL(t){return t.type==="keydown"}function FL(t){return t.type.startsWith("pointer")}function BL(t){return t.type.startsWith("mouse")}function sv(t){if(FL(t)){if(t.isPrimary)return{x:t.clientX,y:t.clientY}}else if(BL(t))return{x:t.clientX,y:t.clientY};return{x:1/0,y:1/0}}function Oee(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function Nee(t,e,n){return t.x<e.x+e.width&&t.x+t.width>e.x&&t.y<e.y+e.height&&t.y+t.height>e.y}function Mee(t,e){if(t===e)throw new Error("Cannot compare node with itself");const n={a:f6(t),b:f6(e)};let r;for(;n.a.at(-1)===n.b.at(-1);)t=n.a.pop(),e=n.b.pop(),r=t;nt(r,"Stacking order can only be calculated for elements with a common ancestor");const a={a:d6(c6(n.a)),b:d6(c6(n.b))};if(a.a===a.b){const s=r.childNodes,i={a:n.a.at(-1),b:n.b.at(-1)};let u=s.length;for(;u--;){const c=s[u];if(c===i.a)return 1;if(c===i.b)return-1}}return Math.sign(a.a-a.b)}const Pee=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Dee(t){var e;const n=getComputedStyle((e=$L(t))!==null&&e!==void 0?e:t).display;return n==="flex"||n==="inline-flex"}function Lee(t){const e=getComputedStyle(t);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||Dee(t))||+e.opacity<1||"transform"in e&&e.transform!=="none"||"webkitTransform"in e&&e.webkitTransform!=="none"||"mixBlendMode"in e&&e.mixBlendMode!=="normal"||"filter"in e&&e.filter!=="none"||"webkitFilter"in e&&e.webkitFilter!=="none"||"isolation"in e&&e.isolation==="isolate"||Pee.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function c6(t){let e=t.length;for(;e--;){const n=t[e];if(nt(n,"Missing node"),Lee(n))return n}return null}function d6(t){return t&&Number(getComputedStyle(t).zIndex)||0}function f6(t){const e=[];for(;t;)e.push(t),t=$L(t);return e}function $L(t){const{parentNode:e}=t;return e&&e instanceof ShadowRoot?e.host:e}const HL=1,qL=2,WL=4,VL=8,Uee=Oee()==="coarse";let Xa=[],Bc=!1,Tl=new Map,ov=new Map;const Mh=new Set;function zee(t,e,n,r,a){var s;const{ownerDocument:i}=e,u={direction:n,element:e,hitAreaMargins:r,setResizeHandlerState:a},c=(s=Tl.get(i))!==null&&s!==void 0?s:0;return Tl.set(i,c+1),Mh.add(u),F0(),function(){var h;ov.delete(t),Mh.delete(u);const m=(h=Tl.get(i))!==null&&h!==void 0?h:1;if(Tl.set(i,m-1),F0(),m===1&&Tl.delete(i),Xa.includes(u)){const g=Xa.indexOf(u);g>=0&&Xa.splice(g,1),X_(),a("up",!0,null)}}}function jee(t){const{target:e}=t,{x:n,y:r}=sv(t);Bc=!0,Z_({target:e,x:n,y:r}),F0(),Xa.length>0&&(B0("down",t),t.preventDefault(),GL(e)||t.stopImmediatePropagation())}function RS(t){const{x:e,y:n}=sv(t);if(Bc&&t.buttons===0&&(Bc=!1,B0("up",t)),!Bc){const{target:r}=t;Z_({target:r,x:e,y:n})}B0("move",t),X_(),Xa.length>0&&t.preventDefault()}function IS(t){const{target:e}=t,{x:n,y:r}=sv(t);ov.clear(),Bc=!1,Xa.length>0&&(t.preventDefault(),GL(e)||t.stopImmediatePropagation()),B0("up",t),Z_({target:e,x:n,y:r}),X_(),F0()}function GL(t){let e=t;for(;e;){if(e.hasAttribute(yn.resizeHandle))return!0;e=e.parentElement}return!1}function Z_({target:t,x:e,y:n}){Xa.splice(0);let r=null;(t instanceof HTMLElement||t instanceof SVGElement)&&(r=t),Mh.forEach(a=>{const{element:s,hitAreaMargins:i}=a,u=s.getBoundingClientRect(),{bottom:c,left:f,right:h,top:m}=u,g=Uee?i.coarse:i.fine;if(e>=f-g&&e<=h+g&&n>=m-g&&n<=c+g){if(r!==null&&document.contains(r)&&s!==r&&!s.contains(r)&&!r.contains(s)&&Mee(r,s)>0){let S=r,w=!1;for(;S&&!S.contains(s);){if(Nee(S.getBoundingClientRect(),u)){w=!0;break}S=S.parentElement}if(w)return}Xa.push(a)}})}function OS(t,e){ov.set(t,e)}function X_(){let t=!1,e=!1;Xa.forEach(r=>{const{direction:a}=r;a==="horizontal"?t=!0:e=!0});let n=0;ov.forEach(r=>{n|=r}),t&&e?TS("intersection",n):t?TS("horizontal",n):e?TS("vertical",n):Iee()}let NS=new AbortController;function F0(){NS.abort(),NS=new AbortController;const t={capture:!0,signal:NS.signal};Mh.size&&(Bc?(Xa.length>0&&Tl.forEach((e,n)=>{const{body:r}=n;e>0&&(r.addEventListener("contextmenu",IS,t),r.addEventListener("pointerleave",RS,t),r.addEventListener("pointermove",RS,t))}),window.addEventListener("pointerup",IS,t),window.addEventListener("pointercancel",IS,t)):Tl.forEach((e,n)=>{const{body:r}=n;e>0&&(r.addEventListener("pointerdown",jee,t),r.addEventListener("pointermove",RS,t))}))}function B0(t,e){Mh.forEach(n=>{const{setResizeHandlerState:r}=n,a=Xa.includes(n);r(t,a,e)})}function Fee(){const[t,e]=_.useState(0);return _.useCallback(()=>e(n=>n+1),[])}function nt(t,e){if(!t)throw console.error(e),Error(e)}function Kl(t,e,n=K_){return t.toFixed(n)===e.toFixed(n)?0:t>e?1:-1}function mo(t,e,n=K_){return Kl(t,e,n)===0}function ia(t,e,n){return Kl(t,e,n)===0}function Bee(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){const a=t[r],s=e[r];if(!ia(a,s,n))return!1}return!0}function Ic({panelConstraints:t,panelIndex:e,size:n}){const r=t[e];nt(r!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:a=0,collapsible:s,maxSize:i=100,minSize:u=0}=r;if(Kl(n,u)<0)if(s){const c=(a+u)/2;Kl(n,c)<0?n=a:n=u}else n=u;return n=Math.min(i,n),n=parseFloat(n.toFixed(K_)),n}function rh({delta:t,initialLayout:e,panelConstraints:n,pivotIndices:r,prevLayout:a,trigger:s}){if(ia(t,0))return e;const i=[...e],[u,c]=r;nt(u!=null,"Invalid first pivot index"),nt(c!=null,"Invalid second pivot index");let f=0;if(s==="keyboard"){{const m=t<0?c:u,g=n[m];nt(g,`Panel constraints not found for index ${m}`);const{collapsedSize:y=0,collapsible:S,minSize:w=0}=g;if(S){const x=e[m];if(nt(x!=null,`Previous layout not found for panel index ${m}`),ia(x,y)){const E=w-x;Kl(E,Math.abs(t))>0&&(t=t<0?0-E:E)}}}{const m=t<0?u:c,g=n[m];nt(g,`No panel constraints found for index ${m}`);const{collapsedSize:y=0,collapsible:S,minSize:w=0}=g;if(S){const x=e[m];if(nt(x!=null,`Previous layout not found for panel index ${m}`),ia(x,w)){const E=x-y;Kl(E,Math.abs(t))>0&&(t=t<0?0-E:E)}}}}{const m=t<0?1:-1;let g=t<0?c:u,y=0;for(;;){const w=e[g];nt(w!=null,`Previous layout not found for panel index ${g}`);const E=Ic({panelConstraints:n,panelIndex:g,size:100})-w;if(y+=E,g+=m,g<0||g>=n.length)break}const S=Math.min(Math.abs(t),Math.abs(y));t=t<0?0-S:S}{let g=t<0?u:c;for(;g>=0&&g<n.length;){const y=Math.abs(t)-Math.abs(f),S=e[g];nt(S!=null,`Previous layout not found for panel index ${g}`);const w=S-y,x=Ic({panelConstraints:n,panelIndex:g,size:w});if(!ia(S,x)&&(f+=S-x,i[g]=x,f.toPrecision(3).localeCompare(Math.abs(t).toPrecision(3),void 0,{numeric:!0})>=0))break;t<0?g--:g++}}if(Bee(a,i))return a;{const m=t<0?c:u,g=e[m];nt(g!=null,`Previous layout not found for panel index ${m}`);const y=g+f,S=Ic({panelConstraints:n,panelIndex:m,size:y});if(i[m]=S,!ia(S,y)){let w=y-S,E=t<0?c:u;for(;E>=0&&E<n.length;){const k=i[E];nt(k!=null,`Previous layout not found for panel index ${E}`);const A=k+w,R=Ic({panelConstraints:n,panelIndex:E,size:A});if(ia(k,R)||(w-=R-k,i[E]=R),ia(w,0))break;t>0?E--:E++}}}const h=i.reduce((m,g)=>g+m,0);return ia(h,100)?i:a}function $ee({layout:t,panelsArray:e,pivotIndices:n}){let r=0,a=100,s=0,i=0;const u=n[0];nt(u!=null,"No pivot index found"),e.forEach((m,g)=>{const{constraints:y}=m,{maxSize:S=100,minSize:w=0}=y;g===u?(r=w,a=S):(s+=w,i+=S)});const c=Math.min(a,100-s),f=Math.max(r,100-i),h=t[u];return{valueMax:c,valueMin:f,valueNow:h}}function Ph(t,e=document){return Array.from(e.querySelectorAll(`[${yn.resizeHandleId}][data-panel-group-id="${t}"]`))}function KL(t,e,n=document){const a=Ph(t,n).findIndex(s=>s.getAttribute(yn.resizeHandleId)===e);return a??null}function YL(t,e,n){const r=KL(t,e,n);return r!=null?[r,r+1]:[-1,-1]}function ZL(t,e=document){var n;if(e instanceof HTMLElement&&(e==null||(n=e.dataset)===null||n===void 0?void 0:n.panelGroupId)==t)return e;const r=e.querySelector(`[data-panel-group][data-panel-group-id="${t}"]`);return r||null}function iv(t,e=document){const n=e.querySelector(`[${yn.resizeHandleId}="${t}"]`);return n||null}function Hee(t,e,n,r=document){var a,s,i,u;const c=iv(e,r),f=Ph(t,r),h=c?f.indexOf(c):-1,m=(a=(s=n[h])===null||s===void 0?void 0:s.id)!==null&&a!==void 0?a:null,g=(i=(u=n[h+1])===null||u===void 0?void 0:u.id)!==null&&i!==void 0?i:null;return[m,g]}function qee({committedValuesRef:t,eagerValuesRef:e,groupId:n,layout:r,panelDataArray:a,panelGroupElement:s,setLayout:i}){_.useRef({didWarnAboutMissingResizeHandle:!1}),zl(()=>{if(!s)return;const u=Ph(n,s);for(let c=0;c<a.length-1;c++){const{valueMax:f,valueMin:h,valueNow:m}=$ee({layout:r,panelsArray:a,pivotIndices:[c,c+1]}),g=u[c];if(g!=null){const y=a[c];nt(y,`No panel data found for index "${c}"`),g.setAttribute("aria-controls",y.id),g.setAttribute("aria-valuemax",""+Math.round(f)),g.setAttribute("aria-valuemin",""+Math.round(h)),g.setAttribute("aria-valuenow",m!=null?""+Math.round(m):"")}}return()=>{u.forEach((c,f)=>{c.removeAttribute("aria-controls"),c.removeAttribute("aria-valuemax"),c.removeAttribute("aria-valuemin"),c.removeAttribute("aria-valuenow")})}},[n,r,a,s]),_.useEffect(()=>{if(!s)return;const u=e.current;nt(u,"Eager values not found");const{panelDataArray:c}=u,f=ZL(n,s);nt(f!=null,`No group found for id "${n}"`);const h=Ph(n,s);nt(h,`No resize handles found for group id "${n}"`);const m=h.map(g=>{const y=g.getAttribute(yn.resizeHandleId);nt(y,"Resize handle element has no handle id attribute");const[S,w]=Hee(n,y,c,s);if(S==null||w==null)return()=>{};const x=E=>{if(!E.defaultPrevented)switch(E.key){case"Enter":{E.preventDefault();const k=c.findIndex(A=>A.id===S);if(k>=0){const A=c[k];nt(A,`No panel data found for index ${k}`);const R=r[k],{collapsedSize:N=0,collapsible:O,minSize:I=0}=A.constraints;if(R!=null&&O){const P=rh({delta:ia(R,N)?I-N:N-R,initialLayout:r,panelConstraints:c.map(U=>U.constraints),pivotIndices:YL(n,y,s),prevLayout:r,trigger:"keyboard"});r!==P&&i(P)}}break}}};return g.addEventListener("keydown",x),()=>{g.removeEventListener("keydown",x)}});return()=>{m.forEach(g=>g())}},[s,t,e,n,r,a,i])}function h6(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function XL(t,e){const n=t==="horizontal",{x:r,y:a}=sv(e);return n?r:a}function Wee(t,e,n,r,a){const s=n==="horizontal",i=iv(e,a);nt(i,`No resize handle element found for id "${e}"`);const u=i.getAttribute(yn.groupId);nt(u,"Resize handle element has no group id attribute");let{initialCursorPosition:c}=r;const f=XL(n,t),h=ZL(u,a);nt(h,`No group element found for id "${u}"`);const m=h.getBoundingClientRect(),g=s?m.width:m.height;return(f-c)/g*100}function Vee(t,e,n,r,a,s){if(jL(t)){const i=n==="horizontal";let u=0;t.shiftKey?u=100:a!=null?u=a:u=10;let c=0;switch(t.key){case"ArrowDown":c=i?0:u;break;case"ArrowLeft":c=i?-u:0;break;case"ArrowRight":c=i?u:0;break;case"ArrowUp":c=i?0:-u;break;case"End":c=100;break;case"Home":c=-100;break}return c}else return r==null?0:Wee(t,e,n,r,s)}function Gee({panelDataArray:t}){const e=Array(t.length),n=t.map(s=>s.constraints);let r=0,a=100;for(let s=0;s<t.length;s++){const i=n[s];nt(i,`Panel constraints not found for index ${s}`);const{defaultSize:u}=i;u!=null&&(r++,e[s]=u,a-=u)}for(let s=0;s<t.length;s++){const i=n[s];nt(i,`Panel constraints not found for index ${s}`);const{defaultSize:u}=i;if(u!=null)continue;const c=t.length-r,f=a/c;r++,e[s]=f,a-=f}return e}function oc(t,e,n){e.forEach((r,a)=>{const s=t[a];nt(s,`Panel data not found for index ${a}`);const{callbacks:i,constraints:u,id:c}=s,{collapsedSize:f=0,collapsible:h}=u,m=n[c];if(m==null||r!==m){n[c]=r;const{onCollapse:g,onExpand:y,onResize:S}=i;S&&S(r,m),h&&(g||y)&&(y&&(m==null||mo(m,f))&&!mo(r,f)&&y(),g&&(m==null||!mo(m,f))&&mo(r,f)&&g())}})}function sg(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n])return!1;return!0}function Kee({defaultSize:t,dragState:e,layout:n,panelData:r,panelIndex:a,precision:s=3}){const i=n[a];let u;return i==null?u=t!=null?t.toPrecision(s):"1":r.length===1?u="1":u=i.toPrecision(s),{flexBasis:0,flexGrow:u,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function Yee(t,e=10){let n=null;return(...a)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{t(...a)},e)}}function p6(t){try{if(typeof localStorage<"u")t.getItem=e=>localStorage.getItem(e),t.setItem=(e,n)=>{localStorage.setItem(e,n)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),t.getItem=()=>null,t.setItem=()=>{}}}function QL(t){return`react-resizable-panels:${t}`}function JL(t){return t.map(e=>{const{constraints:n,id:r,idIsFromProps:a,order:s}=e;return a?r:s?`${s}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((e,n)=>e.localeCompare(n)).join(",")}function eU(t,e){try{const n=QL(t),r=e.getItem(n);if(r){const a=JSON.parse(r);if(typeof a=="object"&&a!=null)return a}}catch{}return null}function Zee(t,e,n){var r,a;const s=(r=eU(t,n))!==null&&r!==void 0?r:{},i=JL(e);return(a=s[i])!==null&&a!==void 0?a:null}function Xee(t,e,n,r,a){var s;const i=QL(t),u=JL(e),c=(s=eU(t,a))!==null&&s!==void 0?s:{};c[u]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{a.setItem(i,JSON.stringify(c))}catch(f){console.error(f)}}function m6({layout:t,panelConstraints:e}){const n=[...t],r=n.reduce((s,i)=>s+i,0);if(n.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${n.map(s=>`${s}%`).join(", ")}`);if(!ia(r,100)&&n.length>0)for(let s=0;s<e.length;s++){const i=n[s];nt(i!=null,`No layout data found for index ${s}`);const u=100/r*i;n[s]=u}let a=0;for(let s=0;s<e.length;s++){const i=n[s];nt(i!=null,`No layout data found for index ${s}`);const u=Ic({panelConstraints:e,panelIndex:s,size:i});i!=u&&(a+=i-u,n[s]=u)}if(!ia(a,0))for(let s=0;s<e.length;s++){const i=n[s];nt(i!=null,`No layout data found for index ${s}`);const u=i+a,c=Ic({panelConstraints:e,panelIndex:s,size:u});if(i!==c&&(a-=c-i,n[s]=c,ia(a,0)))break}return n}const Qee=100,ah={getItem:t=>(p6(ah),ah.getItem(t)),setItem:(t,e)=>{p6(ah),ah.setItem(t,e)}},g6={};function tU({autoSaveId:t=null,children:e,className:n="",direction:r,forwardedRef:a,id:s=null,onLayout:i=null,keyboardResizeBy:u=null,storage:c=ah,style:f,tagName:h="div",...m}){const g=Y_(s),y=_.useRef(null),[S,w]=_.useState(null),[x,E]=_.useState([]),k=Fee(),A=_.useRef({}),R=_.useRef(new Map),N=_.useRef(0),O=_.useRef({autoSaveId:t,direction:r,dragState:S,id:g,keyboardResizeBy:u,onLayout:i,storage:c}),I=_.useRef({layout:x,panelDataArray:[],panelDataArrayChanged:!1});_.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),_.useImperativeHandle(a,()=>({getId:()=>O.current.id,getLayout:()=>{const{layout:K}=I.current;return K},setLayout:K=>{const{onLayout:X}=O.current,{layout:G,panelDataArray:ue}=I.current,oe=m6({layout:K,panelConstraints:ue.map(ce=>ce.constraints)});h6(G,oe)||(E(oe),I.current.layout=oe,X&&X(oe),oc(ue,oe,A.current))}}),[]),zl(()=>{O.current.autoSaveId=t,O.current.direction=r,O.current.dragState=S,O.current.id=g,O.current.onLayout=i,O.current.storage=c}),qee({committedValuesRef:O,eagerValuesRef:I,groupId:g,layout:x,panelDataArray:I.current.panelDataArray,setLayout:E,panelGroupElement:y.current}),_.useEffect(()=>{const{panelDataArray:K}=I.current;if(t){if(x.length===0||x.length!==K.length)return;let X=g6[t];X==null&&(X=Yee(Xee,Qee),g6[t]=X);const G=[...K],ue=new Map(R.current);X(t,G,ue,x,c)}},[t,x,c]),_.useEffect(()=>{});const P=_.useCallback(K=>{const{onLayout:X}=O.current,{layout:G,panelDataArray:ue}=I.current;if(K.constraints.collapsible){const oe=ue.map(Ce=>Ce.constraints),{collapsedSize:ce=0,panelSize:be,pivotIndices:Ge}=Cl(ue,K,G);if(nt(be!=null,`Panel size not found for panel "${K.id}"`),!mo(be,ce)){R.current.set(K.id,be);const mt=wc(ue,K)===ue.length-1?be-ce:ce-be,Ee=rh({delta:mt,initialLayout:G,panelConstraints:oe,pivotIndices:Ge,prevLayout:G,trigger:"imperative-api"});sg(G,Ee)||(E(Ee),I.current.layout=Ee,X&&X(Ee),oc(ue,Ee,A.current))}}},[]),U=_.useCallback((K,X)=>{const{onLayout:G}=O.current,{layout:ue,panelDataArray:oe}=I.current;if(K.constraints.collapsible){const ce=oe.map(Be=>Be.constraints),{collapsedSize:be=0,panelSize:Ge=0,minSize:Ce=0,pivotIndices:mt}=Cl(oe,K,ue),Ee=X??Ce;if(mo(Ge,be)){const Be=R.current.get(K.id),$e=Be!=null&&Be>=Ee?Be:Ee,gr=wc(oe,K)===oe.length-1?Ge-$e:$e-Ge,xt=rh({delta:gr,initialLayout:ue,panelConstraints:ce,pivotIndices:mt,prevLayout:ue,trigger:"imperative-api"});sg(ue,xt)||(E(xt),I.current.layout=xt,G&&G(xt),oc(oe,xt,A.current))}}},[]),q=_.useCallback(K=>{const{layout:X,panelDataArray:G}=I.current,{panelSize:ue}=Cl(G,K,X);return nt(ue!=null,`Panel size not found for panel "${K.id}"`),ue},[]),z=_.useCallback((K,X)=>{const{panelDataArray:G}=I.current,ue=wc(G,K);return Kee({defaultSize:X,dragState:S,layout:x,panelData:G,panelIndex:ue})},[S,x]),j=_.useCallback(K=>{const{layout:X,panelDataArray:G}=I.current,{collapsedSize:ue=0,collapsible:oe,panelSize:ce}=Cl(G,K,X);return nt(ce!=null,`Panel size not found for panel "${K.id}"`),oe===!0&&mo(ce,ue)},[]),H=_.useCallback(K=>{const{layout:X,panelDataArray:G}=I.current,{collapsedSize:ue=0,collapsible:oe,panelSize:ce}=Cl(G,K,X);return nt(ce!=null,`Panel size not found for panel "${K.id}"`),!oe||Kl(ce,ue)>0},[]),W=_.useCallback(K=>{const{panelDataArray:X}=I.current;X.push(K),X.sort((G,ue)=>{const oe=G.order,ce=ue.order;return oe==null&&ce==null?0:oe==null?-1:ce==null?1:oe-ce}),I.current.panelDataArrayChanged=!0,k()},[k]);zl(()=>{if(I.current.panelDataArrayChanged){I.current.panelDataArrayChanged=!1;const{autoSaveId:K,onLayout:X,storage:G}=O.current,{layout:ue,panelDataArray:oe}=I.current;let ce=null;if(K){const Ge=Zee(K,oe,G);Ge&&(R.current=new Map(Object.entries(Ge.expandToSizes)),ce=Ge.layout)}ce==null&&(ce=Gee({panelDataArray:oe}));const be=m6({layout:ce,panelConstraints:oe.map(Ge=>Ge.constraints)});h6(ue,be)||(E(be),I.current.layout=be,X&&X(be),oc(oe,be,A.current))}}),zl(()=>{const K=I.current;return()=>{K.layout=[]}},[]);const se=_.useCallback(K=>{let X=!1;const G=y.current;return G&&window.getComputedStyle(G,null).getPropertyValue("direction")==="rtl"&&(X=!0),function(oe){oe.preventDefault();const ce=y.current;if(!ce)return()=>null;const{direction:be,dragState:Ge,id:Ce,keyboardResizeBy:mt,onLayout:Ee}=O.current,{layout:Be,panelDataArray:$e}=I.current,{initialLayout:qe}=Ge??{},gr=YL(Ce,K,ce);let xt=Vee(oe,K,be,Ge,mt,ce);const Yr=be==="horizontal";Yr&&X&&(xt=-xt);const Zn=$e.map(Rr=>Rr.constraints),Tr=rh({delta:xt,initialLayout:qe??Be,panelConstraints:Zn,pivotIndices:gr,prevLayout:Be,trigger:jL(oe)?"keyboard":"mouse-or-touch"}),as=!sg(Be,Tr);(FL(oe)||BL(oe))&&N.current!=xt&&(N.current=xt,!as&&xt!==0?Yr?OS(K,xt<0?HL:qL):OS(K,xt<0?WL:VL):OS(K,0)),as&&(E(Tr),I.current.layout=Tr,Ee&&Ee(Tr),oc($e,Tr,A.current))}},[]),$=_.useCallback((K,X)=>{const{onLayout:G}=O.current,{layout:ue,panelDataArray:oe}=I.current,ce=oe.map(Be=>Be.constraints),{panelSize:be,pivotIndices:Ge}=Cl(oe,K,ue);nt(be!=null,`Panel size not found for panel "${K.id}"`);const mt=wc(oe,K)===oe.length-1?be-X:X-be,Ee=rh({delta:mt,initialLayout:ue,panelConstraints:ce,pivotIndices:Ge,prevLayout:ue,trigger:"imperative-api"});sg(ue,Ee)||(E(Ee),I.current.layout=Ee,G&&G(Ee),oc(oe,Ee,A.current))},[]),Q=_.useCallback((K,X)=>{const{layout:G,panelDataArray:ue}=I.current,{collapsedSize:oe=0,collapsible:ce}=X,{collapsedSize:be=0,collapsible:Ge,maxSize:Ce=100,minSize:mt=0}=K.constraints,{panelSize:Ee}=Cl(ue,K,G);Ee!=null&&(ce&&Ge&&mo(Ee,oe)?mo(oe,be)||$(K,be):Ee<mt?$(K,mt):Ee>Ce&&$(K,Ce))},[$]),re=_.useCallback((K,X)=>{const{direction:G}=O.current,{layout:ue}=I.current;if(!y.current)return;const oe=iv(K,y.current);nt(oe,`Drag handle element not found for id "${K}"`);const ce=XL(G,X);w({dragHandleId:K,dragHandleRect:oe.getBoundingClientRect(),initialCursorPosition:ce,initialLayout:ue})},[]),he=_.useCallback(()=>{w(null)},[]),xe=_.useCallback(K=>{const{panelDataArray:X}=I.current,G=wc(X,K);G>=0&&(X.splice(G,1),delete A.current[K.id],I.current.panelDataArrayChanged=!0,k())},[k]),D=_.useMemo(()=>({collapsePanel:P,direction:r,dragState:S,expandPanel:U,getPanelSize:q,getPanelStyle:z,groupId:g,isPanelCollapsed:j,isPanelExpanded:H,reevaluatePanelConstraints:Q,registerPanel:W,registerResizeHandle:se,resizePanel:$,startDragging:re,stopDragging:he,unregisterPanel:xe,panelGroupElement:y.current}),[P,S,r,U,q,z,g,j,H,Q,W,se,$,re,he,xe]),Z={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return _.createElement(av.Provider,{value:D},_.createElement(h,{...m,children:e,className:n,id:s,ref:y,style:{...Z,...f},[yn.group]:"",[yn.groupDirection]:r,[yn.groupId]:g}))}const nU=_.forwardRef((t,e)=>_.createElement(tU,{...t,forwardedRef:e}));tU.displayName="PanelGroup";nU.displayName="forwardRef(PanelGroup)";function wc(t,e){return t.findIndex(n=>n===e||n.id===e.id)}function Cl(t,e,n){const r=wc(t,e),s=r===t.length-1?[r-1,r]:[r,r+1],i=n[r];return{...e.constraints,panelSize:i,pivotIndices:s}}function Jee({disabled:t,handleId:e,resizeHandler:n,panelGroupElement:r}){_.useEffect(()=>{if(t||n==null||r==null)return;const a=iv(e,r);if(a==null)return;const s=i=>{if(!i.defaultPrevented)switch(i.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{i.preventDefault(),n(i);break}case"F6":{i.preventDefault();const u=a.getAttribute(yn.groupId);nt(u,`No group element found for id "${u}"`);const c=Ph(u,r),f=KL(u,e,r);nt(f!==null,`No resize element found for id "${e}"`);const h=i.shiftKey?f>0?f-1:c.length-1:f+1<c.length?f+1:0;c[h].focus();break}}};return a.addEventListener("keydown",s),()=>{a.removeEventListener("keydown",s)}},[r,t,e,n])}function rU({children:t=null,className:e="",disabled:n=!1,hitAreaMargins:r,id:a,onBlur:s,onClick:i,onDragging:u,onFocus:c,onPointerDown:f,onPointerUp:h,style:m={},tabIndex:g=0,tagName:y="div",...S}){var w,x;const E=_.useRef(null),k=_.useRef({onClick:i,onDragging:u,onPointerDown:f,onPointerUp:h});_.useEffect(()=>{k.current.onClick=i,k.current.onDragging=u,k.current.onPointerDown=f,k.current.onPointerUp=h});const A=_.useContext(av);if(A===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:R,groupId:N,registerResizeHandle:O,startDragging:I,stopDragging:P,panelGroupElement:U}=A,q=Y_(a),[z,j]=_.useState("inactive"),[H,W]=_.useState(!1),[se,$]=_.useState(null),Q=_.useRef({state:z});zl(()=>{Q.current.state=z}),_.useEffect(()=>{if(n)$(null);else{const D=O(q);$(()=>D)}},[n,q,O]);const re=(w=r?.coarse)!==null&&w!==void 0?w:15,he=(x=r?.fine)!==null&&x!==void 0?x:5;_.useEffect(()=>{if(n||se==null)return;const D=E.current;nt(D,"Element ref not attached");let Z=!1;return zee(q,D,R,{coarse:re,fine:he},(X,G,ue)=>{if(!G){j("inactive");return}switch(X){case"down":{j("drag"),Z=!1,nt(ue,'Expected event to be defined for "down" action'),I(q,ue);const{onDragging:oe,onPointerDown:ce}=k.current;oe?.(!0),ce?.();break}case"move":{const{state:oe}=Q.current;Z=!0,oe!=="drag"&&j("hover"),nt(ue,'Expected event to be defined for "move" action'),se(ue);break}case"up":{j("hover"),P();const{onClick:oe,onDragging:ce,onPointerUp:be}=k.current;ce?.(!1),be?.(),Z||oe?.();break}}})},[re,R,n,he,O,q,se,I,P]),Jee({disabled:n,handleId:q,resizeHandler:se,panelGroupElement:U});const xe={touchAction:"none",userSelect:"none"};return _.createElement(y,{...S,children:t,className:e,id:a,onBlur:()=>{W(!1),s?.()},onFocus:()=>{W(!0),c?.()},ref:E,role:"separator",style:{...xe,...m},tabIndex:g,[yn.groupDirection]:R,[yn.groupId]:N,[yn.resizeHandle]:"",[yn.resizeHandleActive]:z==="drag"?"pointer":H?"keyboard":void 0,[yn.resizeHandleEnabled]:!n,[yn.resizeHandleId]:q,[yn.resizeHandleState]:z})}rU.displayName="PanelResizeHandle";function v6({className:t,...e}){return C.jsx(nU,{className:Ue("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",t),...e})}const Lf=zL;function MS({className:t,...e}){return C.jsx(rU,{className:Ue("relative w-px shrink-0 bg-line transition-colors cursor-col-resize","after:absolute after:inset-y-0 after:left-1/2 after:w-1.5 after:-translate-x-1/2","data-[resize-handle-state=hover]:bg-line-strong","data-[resize-handle-state=drag]:bg-accent","focus-visible:outline-none focus-visible:bg-accent",t),...e})}const aU=_.createContext(null);function eRe(){return _.useContext(aU)}function tRe({nav:t,list:e,reading:n,intelligence:r,intelligenceOpen:a=!0,hasThread:s=!0,density:i="comfortable",header:u,topBar:c,overlay:f,skeleton:h,isLoading:m=!1,initialWidth:g,navOpen:y,onOpenNav:S,onCloseNav:w}){const[x,E]=Cee(g),k=xee(E??0),[A,R]=_.useState(!1),N=k.nav,O=N&&!A,I=k.reading&&!!n,P=k.intelligence,[U,q]=_.useState(!1),z=y!==void 0,j=z?y:U,H=()=>{z||q(!0),S?.()},W=()=>{z||q(!1),w?.()},se=P&&a&&s&&!!r,Q={panes:k,containerWidth:E,showNavPane:N,openNav:H,navCollapsed:A,toggleNav:()=>{if(!N){j?W():H();return}R(xe=>!xe)},showReadingPane:I,showIntelligencePane:P},re=C.jsxs(v6,{direction:"horizontal",className:"min-h-0 flex-1",children:[C.jsx(Lf,{id:"list",order:1,defaultSize:I?i==="compact"?43:33:100,minSize:22,maxSize:I?58:100,className:"min-w-0",children:e}),I&&C.jsxs(C.Fragment,{children:[C.jsx(MS,{}),C.jsx(Lf,{id:"reading",order:2,minSize:29,className:"min-w-0",children:n})]}),se&&C.jsxs(C.Fragment,{children:[C.jsx(MS,{}),C.jsx(Lf,{id:"intelligence",order:3,defaultSize:25,minSize:18,maxSize:39,className:"min-w-0",children:r})]})]}),he=C.jsxs("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:[!N&&u&&C.jsx("div",{className:"shrink-0",children:u}),re]});return C.jsx(aU.Provider,{value:Q,children:C.jsx("div",{ref:x,className:"@container flex h-dvh w-full flex-col overflow-hidden bg-canvas font-sans text-fg",children:m&&h?h:C.jsxs(C.Fragment,{children:[c,O?C.jsxs(v6,{direction:"horizontal",className:"min-h-0 flex-1",children:[C.jsx(Lf,{id:"nav",order:1,defaultSize:17,minSize:12,maxSize:24,className:"min-w-0",children:t}),C.jsx(MS,{}),C.jsx(Lf,{id:"content",order:2,className:"flex min-w-0 flex-col",children:he})]}):he,!N&&C.jsx(kee,{open:j,onClose:W,title:"Folders",anchor:"left",children:t}),f]})})})}const sU="inline-flex items-center justify-center gap-2 rounded-md font-medium whitespace-nowrap transition-colors outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-surface disabled:opacity-50 disabled:pointer-events-none",oU={primary:"bg-accent text-accent-fg hover:bg-accent-hover",secondary:"bg-surface text-fg border border-line hover:bg-surface-sunken hover:border-line-strong",ghost:"text-fg-muted hover:bg-surface-sunken hover:text-fg",danger:"bg-danger text-accent-fg hover:opacity-90"},iU={sm:"h-7 px-2.5 text-xs",md:"h-9 px-3.5 text-sm",touch:"h-11 w-11 text-sm"};function on({variant:t="primary",size:e="md",icon:n,className:r,children:a,...s}){return C.jsxs("button",{type:"button",className:Ue(sU,oU[t],iU[e],r),...s,children:[n,a]})}function nRe({variant:t="primary",size:e="md",icon:n,external:r,className:a,children:s,...i}){return C.jsxs("a",{className:Ue(sU,oU[t],iU[e],a),...r?{target:"_blank",rel:"noopener noreferrer"}:{},...i,children:[n,s]})}const ete={neutral:"bg-surface-sunken text-fg-muted",accent:"bg-accent-2-soft text-accent-2",positive:"bg-surface-sunken text-positive",warning:"bg-surface-sunken text-warning",danger:"bg-danger-soft text-danger"},tte={neutral:"bg-fg-subtle",accent:"bg-accent-2",positive:"bg-positive",warning:"bg-warning",danger:"bg-danger"};function IE({tone:t="neutral",dot:e,className:n,children:r,...a}){return C.jsxs("span",{className:Ue("inline-flex items-center gap-1.5 rounded-full px-2 py-0.5 text-2xs font-medium",ete[t],n),...a,children:[e&&C.jsx("span",{className:Ue("size-1.5 rounded-full",tte[t])}),r]})}const rRe={"data-list-row":""},nte="[data-list-row]";function rte(t,e,n,r="vertical"){if(n===0)return null;const a=r==="vertical"?"ArrowDown":"ArrowRight",s=r==="vertical"?"ArrowUp":"ArrowLeft";return t===a?e<0?0:Math.min(e+1,n-1):t===s?e<=0?0:e-1:t==="Home"?0:t==="End"?n-1:null}function y6(t,e){return Array.from(t.querySelectorAll(e))}function ate({containerRef:t,itemSelector:e,orientation:n="vertical",enabled:r=!0}){_.useEffect(()=>{if(!r)return;const a=t.current;if(!a)return;const s=()=>{const u=y6(a,e);if(u.length===0)return;const f=u.find(h=>h===document.activeElement)??u[0];for(const h of u)h.tabIndex=h===f?0:-1},i=u=>{const c=y6(a,e),f=c.indexOf(document.activeElement),h=rte(u.key,f,c.length,n);h===null||h===f||(u.preventDefault(),u.stopPropagation(),c[h]?.focus())};return s(),a.addEventListener("focusin",s),a.addEventListener("keydown",i),()=>{a.removeEventListener("focusin",s),a.removeEventListener("keydown",i)}})}const b6=10;function ste({section:t,Row:e,selectedThreadId:n,initialExpanded:r=!1,initialCollapsed:a=!1,onSelectThread:s}){const[i,u]=_.useState(r),[c,f]=_.useState(a),h=t.threads.length>b6,g=!i&&h?t.threads.slice(0,b6):t.threads,y=t.threads.length-g.length;return C.jsxs("div",{children:[t.label&&C.jsxs("button",{type:"button","aria-expanded":!c,onClick:()=>f(S=>!S),className:"sticky top-0 z-10 flex h-section-row w-full items-center gap-1.5 border-b border-line bg-surface-sunken px-row-inset text-left outline-none transition-colors hover:bg-surface focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset",children:[C.jsx("span",{className:"flex-1 text-2xs font-semibold uppercase tracking-wider text-fg-subtle",children:t.label}),C.jsx("span",{className:"text-2xs text-fg-subtle tabular-nums",children:t.threads.length}),C.jsx(kE,{className:Ue("size-3 shrink-0 text-fg-subtle transition-transform duration-200",c?"rotate-0":"rotate-180")})]}),!c&&C.jsxs(C.Fragment,{children:[C.jsx("div",{className:"divide-y divide-line",children:g.map(S=>C.jsx(e,{thread:S,active:S.id===n,onClick:()=>s?.(S.id)},S.id))}),h&&C.jsxs("button",{type:"button",onClick:()=>u(S=>!S),className:"flex w-full items-center justify-center border-b border-line px-row-inset py-1.5 text-2xs font-medium text-accent outline-none transition-colors hover:bg-surface focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset",children:[i?"Show less":`Show ${y} more`,!i&&C.jsx(kE,{className:"ml-1 size-3"})]})]})]})}function ote(t){return t.target!==t.currentTarget?!1:t.key==="Enter"||t.key===" "}function lU({className:t}){return C.jsx("svg",{viewBox:"0 0 12 12",className:t,fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",children:C.jsx("path",{d:"M2 4l4 4 4-4"})})}function S6({className:t}){return C.jsx("svg",{viewBox:"0 0 12 12",className:t,fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",children:C.jsx("path",{d:"M3 3l6 6M9 3l-6 6"})})}const lv=_.createContext(null);function aRe({children:t,hasSheet:e,open:n,onOpenChange:r}){const[a,s]=_.useState(!1),[i,u]=_.useState(!1),c=n??a,f=_.useCallback(m=>{n===void 0&&s(m),r?.(m)},[n,r]),h=_.useMemo(()=>({open:c,setOpen:f,active:i,setActive:u,hasSheet:e}),[c,f,i,e]);return C.jsx(lv.Provider,{value:h,children:t})}function sRe({children:t}){return C.jsx(lv.Provider,{value:null,children:t})}function oRe(){const t=_.useContext(lv);if(!t?.hasSheet)return null;const{open:e,active:n,setOpen:r}=t;return C.jsx("button",{type:"button",onClick:()=>r(!e),"aria-expanded":e,"aria-label":e?"Collapse filters":"Expand filters",title:"Filters",className:Ue("flex size-6 shrink-0 items-center justify-center rounded transition-colors hover:bg-surface-sunken",n?"text-accent-2":"text-fg-subtle hover:text-fg-muted"),children:C.jsx(lU,{className:Ue("size-3 transition-transform duration-200",e?"rotate-180":"rotate-0")})})}function ite({categories:t,filters:e,sources:n,sourcesNote:r,selectedCategory:a,activeFilters:s,expanded:i,onSelectCategory:u,onSelectSource:c,onToggleFilter:f,onClear:h,onExpandedChange:m,hideChrome:g=!1,children:y}){const S=_.useContext(lv),w=i!==void 0,[x,E]=_.useState(!1),k=S?.open??(w?i:x),A=_.useCallback(re=>{w||E(re),S?.setOpen(re),m?.(re)},[w,m,S]),R=t[0],N=R!==void 0&&a===R.id,O=n?.[0],I=n?.find(re=>re.active),P=O===void 0||I?.id===O.id,U=!N||s.size>0||!P&&!!I,q=S?.setActive;_.useEffect(()=>{if(q)return q(U),()=>q(!1)},[U,q]);const z=_.useCallback(()=>{O&&c?.(O.id)},[O,c]),j=_.useCallback(()=>{h(),z()},[h,z]),H=t.find(re=>re.id===a),W=U?C.jsxs(C.Fragment,{children:[!P&&I&&C.jsx("span",{className:"inline-flex items-center rounded-full border border-accent-2 bg-accent-2-soft px-2 py-0.5 text-2xs font-medium text-accent-2",children:I.label}),!N&&H&&C.jsx(IE,{tone:H.tone??"neutral",children:H.label}),e.filter(re=>s.has(re.id)).map(re=>C.jsx("span",{className:"inline-flex items-center rounded-full border border-accent-2 bg-accent-2-soft px-2 py-0.5 text-2xs font-medium text-accent-2",children:re.label},re.id))]}):C.jsx("span",{className:"text-2xs text-fg-subtle",children:"Filters"}),se=n&&n.length>1&&C.jsxs("fieldset",{"aria-label":"Accounts",className:"min-w-0 flex flex-wrap items-center gap-1.5 border-b border-line px-row-inset pb-2 pt-2",children:[n.map(re=>C.jsxs("button",{type:"button","aria-pressed":!!re.active,onClick:()=>c?.(re.id),className:Ue("flex items-center gap-1 rounded-full border px-2.5 py-0.5 text-2xs transition-colors",re.active?"border-accent-2 bg-accent-2-soft font-medium text-accent-2":"border-line text-fg-muted hover:border-line-strong"),children:[re.label,re.count!=null&&re.count>0&&C.jsx("span",{className:"tabular-nums opacity-70",children:re.count})]},re.id)),r&&C.jsx("span",{className:"ml-auto shrink-0 text-2xs text-fg-subtle",children:r})]}),$=C.jsx("fieldset",{"aria-label":"Categories",className:"min-w-0 flex flex-wrap items-center gap-1.5 border-b border-line px-row-inset pb-1.5 pt-1.5",children:t.map(re=>{const he=a===re.id;return C.jsx("button",{type:"button","aria-pressed":he,onClick:()=>u(re.id),className:Ue("shrink-0 rounded-full transition-opacity",he?"opacity-100 ring-1 ring-accent-2":"opacity-60 hover:opacity-100"),children:C.jsx(IE,{tone:re.tone??"neutral",children:re.label})},re.id)})}),Q=C.jsxs("fieldset",{"aria-label":"Attributes",className:"min-w-0 flex flex-wrap items-center gap-1.5 border-b border-line px-row-inset pb-2 pt-1.5",children:[e.map(re=>{const he=s.has(re.id);return C.jsx("button",{type:"button","aria-pressed":he,onClick:()=>f(re.id),className:Ue("shrink-0 rounded-full border px-2.5 py-0.5 text-2xs transition-colors",he?"border-accent-2 bg-accent-2-soft font-medium text-accent-2":"border-line text-fg-muted hover:border-line-strong"),children:re.label},re.id)}),U&&C.jsxs("button",{type:"button",onClick:j,className:"ml-auto flex items-center gap-1 px-1 text-2xs text-fg-subtle hover:text-fg-muted",children:[C.jsx(S6,{className:"size-3"}),"Clear"]})]});return C.jsxs("div",{className:"flex h-full w-full flex-col overflow-hidden",children:[!g&&!S&&C.jsxs("div",{role:"button",tabIndex:0,"aria-expanded":k,"aria-label":k?"Collapse filters":"Expand filters",onClick:()=>A(!k),onKeyDown:re=>{ote(re)&&(re.preventDefault(),A(!k))},className:"flex h-section-row w-full shrink-0 cursor-pointer items-center gap-1.5 overflow-x-hidden border-b border-line bg-surface-sunken px-row-inset text-left hover:bg-surface",children:[W,U&&C.jsx("button",{type:"button","aria-label":"Clear filters",onClick:re=>{re.stopPropagation(),j()},className:"flex size-6 items-center justify-center text-fg-subtle hover:text-fg-muted",children:C.jsx(S6,{className:"size-3"})}),C.jsx(lU,{className:Ue("ml-auto size-3 shrink-0 text-fg-subtle transition-transform duration-200",k?"rotate-180":"rotate-0")})]}),k&&!g&&C.jsxs("div",{className:"shrink-0",children:[se,$,Q]}),C.jsx("div",{className:"flex-1 overflow-y-auto",children:y})]})}function lte(t){return t.sentDate!=null?new Date(t.sentDate).toDateString()===new Date().toDateString():/^\d{1,2}:\d{2}$/.test(t.timeLabel)}const uU=[{id:"unread",label:"Unread",match:t=>!t.isRead},{id:"attachment",label:"Has attachment",match:t=>!!t.hasAttachment},{id:"contacts",label:"From contacts",match:t=>t.trust==="vip"||t.trust==="wellknown"},{id:"today",label:"Today",match:lte}],ute=uU.map(({id:t,label:e})=>({id:t,label:e}));function cte(t,e){return uU.every(n=>!e.has(n.id)||n.match(t))}function iRe({sections:t,briefCategory:e="all",selectedThreadId:n,Row:r,onSelectThread:a,onSelectBriefCategory:s,sources:i,sourcesNote:u,onSelectSource:c,activeFilters:f,onToggleFilter:h,onClearFilters:m,hideChrome:g,defaultExpanded:y=!1}){const[S,w]=_.useState(new Set),[x,E]=_.useState(y),k=_.useRef(null);ate({containerRef:k,itemSelector:nte});const A=f??S,R=W=>{if(h){h(W);return}w(se=>{const $=new Set(se);return $.has(W)?$.delete(W):$.add(W),$})},N=W=>(e==="all"||W.category===e)&&cte(W,A),O=e==="all",I=t.map(W=>({...W,threads:W.threads.filter(N)})).filter(W=>W.threads.length>0),P=t.flatMap(W=>W.threads).filter(N),U=Eee.map(W=>({id:W.id,label:W.label,tone:W.id==="all"?"neutral":_ee[W.id]})),q=ute,z=()=>{if(s?.("all"),m){m();return}w(new Set)},j=O?I.length===0:P.length===0,H=C.jsxs("div",{ref:k,children:[O?I.map(W=>C.jsx(ste,{section:W,Row:r,selectedThreadId:n,onSelectThread:a},W.id)):C.jsx("div",{className:"divide-y divide-line",children:P.map(W=>C.jsx(r,{thread:W,active:W.id===n,onClick:()=>a?.(W.id)},W.id))}),j&&C.jsx("div",{className:"px-row-inset py-6 text-center text-2xs text-fg-subtle",children:"No threads match these filters."})]});return C.jsx(ite,{categories:U,filters:q,sources:i,sourcesNote:u,selectedCategory:e,activeFilters:A,expanded:x,onExpandedChange:E,onSelectCategory:W=>s?.(W),onSelectSource:c,onToggleFilter:W=>R(W),onClear:z,hideChrome:g,children:H})}const OE={Default:"bg-fg-subtle",Red:"bg-red-500",Orange:"bg-orange-500",Yellow:"bg-yellow-500",Green:"bg-green-500",Teal:"bg-teal-500",Blue:"bg-blue-500",Purple:"bg-purple-500",Gray:"bg-gray-500"},lRe=["Default","Red","Orange","Yellow","Green","Teal","Blue","Purple","Gray"],dte=t=>Object.hasOwn(OE,t);function fte({label:t,onRemove:e,className:n}){const r=dte(t.color)?OE[t.color]:OE.Default;return C.jsxs("span",{className:Ue("inline-flex items-center gap-1 rounded-full bg-surface-sunken px-2 py-0.5 text-2xs font-medium text-fg-muted shrink-0",n),children:[C.jsx("span",{className:Ue("size-1.5 shrink-0 rounded-full",r)}),C.jsx("span",{className:"truncate",children:t.name}),e&&C.jsx("button",{type:"button",onClick:()=>e(t.labelId),"aria-label":`Remove label ${t.name}`,className:"ml-0.5 rounded-full text-fg-subtle hover:text-fg",children:"×"})]})}function w6(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function hte(t){if(Array.isArray(t))return t}function pte(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,a,s,i,u=[],c=!0,f=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(c=(r=s.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(h){f=!0,a=h}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(f)throw a}}return u}}function mte(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
12
+ `,recoverySuggestion:"Make sure a successful call to signIn is made before calling confirmSignInand that the session has not expired."});try{const{Session:f,ChallengeName:h,AuthenticationResult:m,ChallengeParameters:g}=await uZ(r,a,s,e,u,qr,c,n);return lu({signInSession:f,username:r,challengeName:h,signInDetails:i}),m?(await Mo({username:r,...m,NewDeviceMetadata:await uu({userPoolId:u.userPoolId,userPoolEndpoint:u.userPoolEndpoint,newDeviceMetadata:m.NewDeviceMetadata,accessToken:m.AccessToken}),signInDetails:i}),es(),await Ji(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}}):du({challengeName:h,challengeParameters:g})}catch(f){Na(f);const h=wd(f.name);if(h)return h;throw f}}const DZ=t=>In(Gn,Vn("GetUser"),lr(),{...Kn,...t}),LZ=t=>In(Gn,Vn("VerifyUserAttribute"),lr(),{...Kn,...t});async function UZ(t){const e=qt.getConfig().Auth?.Cognito;ut(e);const{userPoolEndpoint:n,userPoolId:r}=e,{confirmationCode:a,userAttributeKey:s}=t;pn(!!a,Ye.EmptyConfirmUserAttributeCode);const{tokens:i}=await Y1({forceRefresh:!1});gd(i),await LZ({endpointResolver:St({endpointOverride:n})})({region:bt(r),userAgentValue:Mt(Ze.ConfirmUserAttribute)},{AccessToken:i.accessToken.toString(),AttributeName:s,Code:a})}new or("AuthError");const zZ={oauthSignInError:{message:Hn.OAUTH_ERROR,log:"Make sure Cognito Hosted UI has been configured correctly"},noConfig:{message:Hn.DEFAULT_MSG},missingAuthConfig:{message:Hn.DEFAULT_MSG},emptyUsername:{message:Hn.EMPTY_USERNAME},invalidUsername:{message:Hn.INVALID_USERNAME},emptyPassword:{message:Hn.EMPTY_PASSWORD},emptyCode:{message:Hn.EMPTY_CODE},signUpError:{message:Hn.SIGN_UP_ERROR},noMFA:{message:Hn.NO_MFA},invalidMFA:{message:Hn.INVALID_MFA},emptyChallengeResponse:{message:Hn.EMPTY_CHALLENGE},noUserSession:{message:Hn.NO_USER_SESSION},deviceConfig:{message:Hn.DEVICE_CONFIG},networkError:{message:Hn.NETWORK_ERROR},autoSignInError:{message:Hn.AUTOSIGNIN_ERROR},default:{message:Hn.DEFAULT_MSG}},Bi=(t,e)=>new ze({message:t??"An error has occurred during the oauth process.",name:Os.OAuthSignInError,recoverySuggestion:zZ.oauthSignInError.log});var SE;(function(t){t.NoConfig="noConfig",t.MissingAuthConfig="missingAuthConfig",t.EmptyUsername="emptyUsername",t.InvalidUsername="invalidUsername",t.EmptyPassword="emptyPassword",t.EmptyCode="emptyCode",t.SignUpError="signUpError",t.NoMFA="noMFA",t.InvalidMFA="invalidMFA",t.EmptyChallengeResponse="emptyChallengeResponse",t.NoUserSession="noUserSession",t.Default="default",t.DeviceConfig="deviceConfig",t.NetworkError="networkError",t.AutoSignInError="autoSignInError",t.OAuthSignInError="oauthSignInError"})(SE||(SE={}));const jZ="`signInWithRedirect` has been canceled.",FZ="An error occurred while validating the state.",BZ="Try to initiate an OAuth flow from Amplify",nL=async t=>{const e=await jr.loadOAuthState(),n=t===e?e:void 0;if(!n)throw new ze({name:SE.OAuthSignInError,message:t===null?jZ:FZ,recoverySuggestion:t===null?void 0:BZ});return n},rL=async({currentUrl:t,userAgentValue:e,clientId:n,redirectUri:r,responseType:a,domain:s,preferPrivateSession:i})=>{const u=new Qi(t),c=u.searchParams.get("error"),f=u.searchParams.get("error_description");if(c)throw Bi(f??c);return a==="code"?$Z({currentUrl:t,userAgentValue:e,clientId:n,redirectUri:r,domain:s,preferPrivateSession:i}):HZ({currentUrl:t,redirectUri:r,preferPrivateSession:i})},$Z=async({currentUrl:t,userAgentValue:e,clientId:n,redirectUri:r,domain:a,preferPrivateSession:s})=>{const i=new Qi(t),u=i.searchParams.get("code"),c=i.searchParams.get("state");if(!u||!c)throw Bi("User cancelled OAuth flow.");const f=await nL(c),h="https://"+a+"/oauth2/token",m=await jr.loadPKCE(),g={grant_type:"authorization_code",code:u,client_id:n,redirect_uri:r,...m?{code_verifier:m}:{}},y=Object.entries(g).map(([O,I])=>`${encodeURIComponent(O)}=${encodeURIComponent(I)}`).join("&"),{access_token:S,refresh_token:w,id_token:x,error:E,error_message:k,token_type:A,expires_in:R}=await(await fetch(h,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",[VW]:e},body:y})).json();if(E)throw Bi(k??E);const N=(S&&Co(S).payload.username)??"username";return await Mo({username:N,AccessToken:S,IdToken:x,RefreshToken:w}),aL({redirectUri:r,state:f,preferPrivateSession:s})},HZ=async({currentUrl:t,redirectUri:e,preferPrivateSession:n})=>{const r=new Qi(t),{id_token:a,access_token:s,state:i,token_type:u,expires_in:c,error_description:f,error:h}=(r.hash??"#").substring(1).split("&").map(y=>y.split("=")).reduce((y,[S,w])=>({...y,[S]:w}),{id_token:void 0,access_token:void 0,state:void 0,token_type:void 0,expires_in:void 0,error_description:void 0,error:void 0});if(h)throw Bi(f??h);if(!s)throw Bi("No access token returned from OAuth flow.");const m=await nL(i),g=(s&&Co(s).payload.username)??"username";return await Mo({username:g,AccessToken:s,IdToken:a}),aL({redirectUri:e,state:m,preferPrivateSession:n})},aL=async({redirectUri:t,state:e,preferPrivateSession:n})=>{await qr.setOAuthMetadata({oauthSignIn:!0}),await jr.clearOAuthData(),await jr.storeOAuthSignIn(!0,n),jD(),VZ(t),qZ(e)&&Is.dispatch("auth",{event:"customOAuthState",data:HG(WZ(e))},"Auth",Rs),Is.dispatch("auth",{event:"signInWithRedirect"},"Auth",Rs),await Ji()},qZ=t=>/-/.test(t),WZ=t=>t.split("-").splice(1).join("-"),VZ=t=>{typeof window<"u"&&typeof window.history<"u"&&window.history.replaceState(window.history.state,"",t)};function $_(t,e){{const n=t?.find(GZ)??t?.find(KZ),r=t?.find(ZZ)??t?.find(YZ);if(n)return n;throw r?aK:nK}}const GZ=t=>t.startsWith(String(window.location.origin+(window.location.pathname||"/"))),KZ=t=>t.includes(String(window.location.hostname)),YZ=t=>t.startsWith("http://"),ZZ=t=>t.startsWith("https://"),H_=async t=>{jD(),await jr.clearOAuthInflightData(),Is.dispatch("auth",{event:"signInWithRedirect_failure",data:{error:t}},"Auth",Rs)},XZ=async t=>{try{ut(t),W1(t),jr.setAuthConfig(t)}catch{return}if(await jr.loadOAuthInFlight())try{const e=window.location.href,{loginWith:n,userPoolClientId:r}=t,{domain:a,redirectSignIn:s,responseType:i}=n.oauth,u=$_(s);await rL({currentUrl:e,clientId:r,domain:a,redirectUri:u,responseType:i,userAgentValue:Mt(Ze.SignInWithRedirect)})}catch(e){await H_(e)}};K1()&&qt[uD](XZ);const QZ={Google:"Google",Facebook:"Facebook",Amazon:"LoginWithAmazon",Apple:"SignInWithApple"},sL=async t=>{window?.location&&(window.location.href=t.replace("http://","https://"))},F5="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",JZ=t=>{const e=new Uint8Array(t);k_().getRandomValues(e);let n="",r;for(const a of e)n+=F5.charAt(a%F5.length);return{value:n,method:"S256",toCodeChallenge(){return r||(r=eX(n),r)}}};function eX(t){const e=new Gl;return e.update(t),tX(Kc.convert(e.digestSync(),{urlSafe:!0}))}function tX(t){return t.replace(/=/g,"")}const nX=()=>$G(32),rX=t=>{async function e(n){if(n.persisted&&await t.loadOAuthInFlight()){const a=Bi("User cancelled OAuth flow.");await H_(a)}window.removeEventListener("pageshow",e)}window.addEventListener("pageshow",e)};async function oL(t){const e=qt.getConfig().Auth?.Cognito;ut(e),W1(e),jr.setAuthConfig(e),t?.options?.prompt||await KD();let n="COGNITO",r;return typeof t?.provider=="string"?n=QZ[t.provider]:t?.provider?.custom?n=t.provider.custom:t?.provider?.idpIdentifier&&({idpIdentifier:r}=t.provider),aX({oauthConfig:e.loginWith.oauth,clientId:e.userPoolClientId,provider:n,idpIdentifier:r,customState:t?.customState,preferPrivateSession:t?.options?.preferPrivateSession,options:{loginHint:t?.options?.loginHint,lang:t?.options?.lang,nonce:t?.options?.nonce,prompt:t?.options?.prompt},authSessionOpener:t?.options?.authSessionOpener})}const aX=async({oauthConfig:t,provider:e,idpIdentifier:n,clientId:r,customState:a,preferPrivateSession:s,options:i,authSessionOpener:u})=>{const{domain:c,redirectSignIn:f,responseType:h,scopes:m}=t,{loginHint:g,lang:y,nonce:S,prompt:w}=i??{},x=nX(),E=u||sL,k=a?`${x}-${qG(a)}`:x,{value:A,method:R,toCodeChallenge:N}=JZ(128),O=$_(t.redirectSignIn);K1()&&jr.storeOAuthInFlight(!0),jr.storeOAuthState(k),jr.storePKCE(A);const I=new URLSearchParams;I.append("redirect_uri",O),I.append("response_type",h),I.append("client_id",r),n?I.append("idp_identifier",n):I.append("identity_provider",e),I.append("scope",m.join(" ")),g&&I.append("login_hint",g),y&&I.append("lang",y),S&&I.append("nonce",S),w&&I.append("prompt",w.toLowerCase()),I.append("state",k),h==="code"&&(I.append("code_challenge",N()),I.append("code_challenge_method",R));const P=`https://${c}/oauth2/authorize?${I.toString()}`;rX(jr);const{type:U,error:q,url:z}=await E(P,f,s)??{};try{if(U==="error")throw Bi(String(q));if(U==="canceled")throw Bi(String(U));U==="success"&&z&&await rL({currentUrl:z,clientId:r,domain:c,redirectUri:O,responseType:h,userAgentValue:Mt(Ze.SignInWithRedirect),preferPrivateSession:s})}catch(j){throw await H_(j),j}},sX=async t=>{const e=t.getConfig().Auth?.Cognito;ut(e);const{userPoolEndpoint:n,userPoolId:r}=e,{tokens:a}=await mD(t,{forceRefresh:!1});gd(a);const s=DZ({endpointResolver:St({endpointOverride:n})}),{UserAttributes:i}=await s({region:bt(r),userAgentValue:Mt(Ze.FetchUserAttributes)},{AccessToken:a.accessToken.toString()});return ZG(i)},iL=()=>sX(qt),oX=async t=>{await t.clearOAuthData(),qr.clearTokens(),await gD(),Is.dispatch("auth",{event:"signedOut"},"Auth",Rs)},iX=async(t,e=!1,n)=>{W1(t);const{loginWith:r,userPoolClientId:a}=t,{domain:s,redirectSignOut:i}=r.oauth,u=$_(i),c=`https://${s}/logout?${Object.entries({client_id:a,logout_uri:encodeURIComponent(u)}).map(([f,h])=>`${f}=${h}`).join("&")}`;return sL(c)},lX=async(t,e,n,r)=>{const{isOAuthSignIn:a}=await e.loadOAuthSignIn(),s=await n.getOAuthMetadata();if(await oX(e),a||s?.oauthSignIn)return iX(t,!1)},uX=t=>In(Gn,Vn("RevokeToken"),lr(),{...Kn,...t}),cX=new or("Auth");async function dX(t){const e=qt.getConfig().Auth?.Cognito;ut(e),await fX(e);let n;try{W1(e),n=!0}catch{n=!1}if(n){const r=new zD(dp);r.setAuthConfig(e);const{type:a}=await lX(e,r,qr)??{};if(a==="error")throw new ze({name:sK,message:"An error occurred when attempting to log out from OAuth provider."})}else qr.clearTokens(),await gD(),Is.dispatch("auth",{event:"signedOut"},"Auth",Rs)}async function fX(t){try{const{userPoolEndpoint:e,userPoolId:n,userPoolClientId:r}=t,a=await qr.getTokenStore().loadTokens();PD(a),hX(a.accessToken)&&await uX({endpointResolver:St({endpointOverride:e})})({region:bt(n),userAgentValue:Mt(Ze.SignOut)},{ClientId:r,Token:a.refreshToken})}catch{cX.debug("Client signOut error caught but will proceed with token removal")}}const hX=t=>!!t?.payload?.origin_jti,pX=t=>In(Gn,Vn("GetUserAttributeVerificationCode"),lr(),{...Kn,...t}),mX=async t=>{const{userAttributeKey:e,options:n}=t,r=qt.getConfig().Auth?.Cognito,a=n?.clientMetadata;ut(r);const{userPoolEndpoint:s,userPoolId:i}=r,{tokens:u}=await Y1({forceRefresh:!1});gd(u);const c=pX({endpointResolver:St({endpointOverride:s})}),{CodeDeliveryDetails:f}=await c({region:bt(i),userAgentValue:Mt(Ze.SendUserAttributeVerificationCode)},{AccessToken:u.accessToken.toString(),ClientMetadata:a,AttributeName:e}),{DeliveryMedium:h,AttributeName:m,Destination:g}={...f};return{destination:g,deliveryMedium:h,attributeName:m}},gX={identityId:"identityId"},vX=new or("DefaultIdentityIdStore");class lL{setAuthConfig(e){t0(e.Cognito),this.authConfig=e,this._authKeys=yX("Cognito",e.Cognito.identityPoolId)}constructor(e){this._authKeys={},this._hasGuestIdentityId=!1,this.keyValueStorage=e}async loadIdentityId(){t0(this.authConfig?.Cognito);try{if(this._primaryIdentityId)return{id:this._primaryIdentityId,type:"primary"};{const e=await this.keyValueStorage.getItem(this._authKeys.identityId);return e?(this._hasGuestIdentityId=!0,{id:e,type:"guest"}):null}}catch(e){return vX.log("Error getting stored IdentityId.",e),null}}async storeIdentityId(e){t0(this.authConfig?.Cognito),e.type==="guest"?(this.keyValueStorage.setItem(this._authKeys.identityId,e.id),this._primaryIdentityId=void 0,this._hasGuestIdentityId=!0):(this._primaryIdentityId=e.id,this._hasGuestIdentityId&&(this.keyValueStorage.removeItem(this._authKeys.identityId),this._hasGuestIdentityId=!1))}async clearIdentityId(){this._primaryIdentityId=void 0,await this.keyValueStorage.removeItem(this._authKeys.identityId)}}const yX=(t,e)=>N_(gX)(`com.amplify.${t}`,e),wE=({endpointOverride:t})=>e=>t?{url:new Qi(t)}:OG(e);function uL(t){const e=Co(t).payload.iss,n={};if(!e)throw new ze({name:"InvalidIdTokenException",message:"Invalid Idtoken."});const r=e.replace(/(^\w+:|^)\/\//,"");return n[r]=t,n}async function bX({tokens:t,authConfig:e,identityIdStore:n}){n.setAuthConfig({Cognito:e});const r=await n.loadIdentityId();if(r)return r.id;const a=t?.idToken?uL(t.idToken.toString()):{},s=await SX(a,e);return n.storeIdentityId({id:s,type:t?"primary":"guest"}),s}async function SX(t,e){const n=e?.identityPoolId,r=hE(n),a=TG({endpointResolver:wE({endpointOverride:e.identityPoolEndpoint})});let s;try{s=(await a({region:r},{IdentityPoolId:n,Logins:t})).IdentityId}catch(i){throw Na(i),new ze(i)}if(!s)throw new ze({name:"GetIdResponseException",message:"Received undefined response from getId operation",recoverySuggestion:"Make sure to pass a valid identityPoolId in the configuration."});return s}const ng=new or("CognitoCredentialsProvider"),B5=3e3*1e3;class cL{constructor(e){this._nextCredentialsRefresh=0,this._identityIdStore=e}async clearCredentialsAndIdentityId(){ng.debug("Clearing out credentials and identityId"),this._credentialsAndIdentityId=void 0,await this._identityIdStore.clearIdentityId()}async clearCredentials(){ng.debug("Clearing out in-memory credentials"),this._credentialsAndIdentityId=void 0}async getCredentialsAndIdentityId(e){const n=e.authenticated,{tokens:r}=e,{authConfig:a}=e;try{t0(a?.Cognito)}catch{return}if(!n&&!a.Cognito.allowGuestAccess)return;const{forceRefresh:s}=e,i=this.hasTokenChanged(r),u=await bX({tokens:r,authConfig:a.Cognito,identityIdStore:this._identityIdStore});return(s||i)&&this.clearCredentials(),n?(lK(r),this.credsForOIDCTokens(a.Cognito,r,u)):this.getGuestCredentials(u,a.Cognito)}async getGuestCredentials(e,n){if(this._credentialsAndIdentityId&&!this.isPastTTL()&&this._credentialsAndIdentityId.isAuthenticatedCreds===!1)return ng.info("returning stored credentials as they neither past TTL nor expired."),this._credentialsAndIdentityId;this.clearCredentials();const r=hE(n.identityPoolId),a=a5({endpointResolver:wE({endpointOverride:n.identityPoolEndpoint})});let s;try{s=await a({region:r},{IdentityId:e})}catch(i){throw Na(i),new ze(i)}if(s?.Credentials?.AccessKeyId&&s?.Credentials?.SecretKey){this._nextCredentialsRefresh=new Date().getTime()+B5;const i={credentials:{accessKeyId:s.Credentials.AccessKeyId,secretAccessKey:s.Credentials.SecretKey,sessionToken:s.Credentials.SessionToken,expiration:s.Credentials.Expiration},identityId:e};return s.IdentityId&&(i.identityId=s.IdentityId,this._identityIdStore.storeIdentityId({id:s.IdentityId,type:"guest"})),this._credentialsAndIdentityId={...i,isAuthenticatedCreds:!1},i}else throw new ze({name:"CredentialsNotFoundException",message:"Cognito did not respond with either Credentials, AccessKeyId or SecretKey."})}async credsForOIDCTokens(e,n,r){if(this._credentialsAndIdentityId&&!this.isPastTTL()&&this._credentialsAndIdentityId.isAuthenticatedCreds===!0)return ng.debug("returning stored credentials as they neither past TTL nor expired."),this._credentialsAndIdentityId;this.clearCredentials();const a=n.idToken?uL(n.idToken.toString()):{},s=hE(e.identityPoolId),i=a5({endpointResolver:wE({endpointOverride:e.identityPoolEndpoint})});let u;try{u=await i({region:s},{IdentityId:r,Logins:a})}catch(c){throw Na(c),new ze(c)}if(u?.Credentials?.AccessKeyId&&u?.Credentials?.SecretKey){this._nextCredentialsRefresh=new Date().getTime()+B5;const c={credentials:{accessKeyId:u.Credentials.AccessKeyId,secretAccessKey:u.Credentials.SecretKey,sessionToken:u.Credentials.SessionToken,expiration:u.Credentials.Expiration},identityId:r};return u.IdentityId&&(c.identityId=u.IdentityId,this._identityIdStore.storeIdentityId({id:u.IdentityId,type:"primary"})),this._credentialsAndIdentityId={...c,isAuthenticatedCreds:!0,associatedIdToken:n.idToken?.toString()},c}else throw new ze({name:"CredentialsException",message:"Cognito did not respond with either Credentials, AccessKeyId or SecretKey."})}isPastTTL(){return this._nextCredentialsRefresh===void 0?!0:this._nextCredentialsRefresh<=Date.now()}hasTokenChanged(e){return!!e&&!!this._credentialsAndIdentityId?.associatedIdToken&&e.idToken?.toString()!==this._credentialsAndIdentityId.associatedIdToken}}const wX=new cL(new lL(dp)),dL={configure(t,e){const n=dD(t),r=new zG({sameSite:"lax"}),a=e?.ssr?r:dp,s=e?.ssr?new cL(new lL(r)):wX;if(!n.Auth||e?.Auth){qt.configure(n,e);return}r0.setAuthConfig(n.Auth),r0.setKeyValueStorage(a),qt.configure(n,{...e,Auth:{tokenProvider:r0,credentialsProvider:s}})},getConfig(){return qt.getConfig()}},xX=["internal","acme","tailscale","off"],CX=t=>typeof t=="string"&&xX.includes(t),ev=()=>{const t=globalThis.__REMIT_CONFIG__??{};return{apiUrl:t.apiUrl??"/api",appOrigin:t.appOrigin??"",betterAuthEnabled:t.betterAuthEnabled??!1,cognito:{userPoolId:t.cognito?.userPoolId??"",clientId:t.cognito?.clientId??"",domain:t.cognito?.domain??"",region:t.cognito?.region??""},rum:{appMonitorId:t.rum?.appMonitorId??"",identityPoolId:t.rum?.identityPoolId??"",region:t.rum?.region??"eu-west-1"},mailboxPollIntervalSeconds:t.mailboxPollIntervalSeconds!=null?String(t.mailboxPollIntervalSeconds):void 0,disableDevtools:t.disableDevtools??!1,tlsMode:CX(t.tlsMode)?t.tlsMode:"off"}},EX=()=>{const t=ev(),{userPoolId:e,clientId:n,domain:r,region:a}=t.cognito;return!e||!n?null:{userPoolId:e,userPoolClientId:n,domain:r,region:a,appOrigin:t.appOrigin}},xE=EX(),tv=()=>xE!==null,fL=()=>{if(!xE){console.warn("[auth] Cognito user pool is not configured. Running in local dev mode without Cognito auth.");return}const{userPoolId:t,userPoolClientId:e,domain:n,appOrigin:r}=xE;dL.configure({Auth:{Cognito:{userPoolId:t,userPoolClientId:e,loginWith:n?{oauth:{domain:n,scopes:["openid","email","profile"],redirectSignIn:r?[r]:[],redirectSignOut:r?[r]:[],responseType:"code"}}:void 0}}})};var _X={};const o0=Object.create(null),Nf=t=>_X||globalThis.Deno?.env.toObject()||globalThis.__env__||(t?o0:globalThis),xi=new Proxy(o0,{get(t,e){return Nf()[e]??o0[e]},has(t,e){return e in Nf()||e in o0},set(t,e,n){const r=Nf(!0);return r[e]=n,!0},deleteProperty(t,e){if(!e)return!1;const n=Nf(!0);return delete n[e],!0},ownKeys(){const t=Nf(!0);return Object.keys(t)}});xi.NODE_ENV;var i0=class extends Error{constructor(t,e){super(t,e),this.name="BetterAuthError",this.message=t,this.stack=""}};const kX=47;function hL(t){let e=t.length;for(;e>0&&t.charCodeAt(e-1)===kX;)e--;return e===t.length?t:t.slice(0,e)}function AX(t){try{return(hL(new URL(t).pathname)||"/")!=="/"}catch{throw new i0(`Invalid base URL: ${t}. Please provide a valid base URL.`)}}function TX(t){try{const e=new URL(t);if(e.protocol!=="http:"&&e.protocol!=="https:")throw new i0(`Invalid base URL: ${t}. URL must include 'http://' or 'https://'`)}catch(e){throw e instanceof i0?e:new i0(`Invalid base URL: ${t}. Please provide a valid base URL.`,{cause:e})}}function $5(t,e="/api/auth"){if(TX(t),AX(t))return t;const n=hL(t);return!e||e==="/"?n:(e=e.startsWith("/")?e:`/${e}`,`${n}${e}`)}function RX(t,e,n,r,a){{const s=xi.BETTER_AUTH_URL||xi.NEXT_PUBLIC_BETTER_AUTH_URL||xi.PUBLIC_BETTER_AUTH_URL||xi.NUXT_PUBLIC_BETTER_AUTH_URL||xi.NUXT_PUBLIC_AUTH_URL||(xi.BASE_URL!=="/"?xi.BASE_URL:void 0);if(s)return $5(s,e)}if(typeof window<"u"&&window.location)return $5(window.location.origin,e)}const IX={proto:/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,constructor:/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,protoShort:/"__proto__"\s*:/,constructorShort:/"constructor"\s*:/},OX=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,H5={true:!0,false:!1,null:null,undefined:void 0,nan:NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},NX=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function MX(t){return t instanceof Date&&!isNaN(t.getTime())}function PX(t){const e=NX.exec(t);if(!e)return null;const[,n,r,a,s,i,u,c,f,h,m]=e,g=new Date(Date.UTC(parseInt(n,10),parseInt(r,10)-1,parseInt(a,10),parseInt(s,10),parseInt(i,10),parseInt(u,10),c?parseInt(c.padEnd(3,"0"),10):0));if(f){const y=(parseInt(h,10)*60+parseInt(m,10))*(f==="+"?-1:1);g.setUTCMinutes(g.getUTCMinutes()+y)}return MX(g)?g:null}function DX(t,e={}){const{strict:n=!1,warnings:r=!1,reviver:a,parseDates:s=!0}=e;if(typeof t!="string")return t;const i=t.trim(),u=i.toLowerCase();if(u.length<=9&&u in H5)return H5[u];if(!OX.test(i)){if(n)throw new SyntaxError("[better-json] Invalid JSON");return t}if(Object.entries(IX).some(([c,f])=>{const h=f.test(i);return h&&r&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${c} pattern`),h})&&n)throw new Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(i,(f,h)=>{if(f==="__proto__"||f==="constructor"&&h&&typeof h=="object"&&"prototype"in h){r&&console.warn(`[better-json] Dropping "${f}" key to prevent prototype pollution`);return}if(s&&typeof h=="string"){const m=PX(h);if(m)return m}return a?a(f,h):h})}catch(c){if(n)throw c;return t}}function LX(t,e={strict:!0}){return DX(t,e)}const UX=["javascript:","data:","vbscript:"];function zX(t){let e;try{e=new URL(t)}catch{return!0}return!UX.includes(e.protocol)}const jX={id:"redirect",name:"Redirect",hooks:{onSuccess(t){if(t.data?.url&&t.data?.redirect&&zX(t.data.url)&&typeof window<"u"&&window.location&&window.location)try{window.location.href=t.data.url}catch{}}}};let Ya=[],Ci=0;const l0=4,FX=globalThis.nanostoresGlobal||={epoch:0};let BX=()=>{for(Ci=0;Ci<Ya.length;Ci+=l0)Ya[Ci](Ya[Ci+1].value,Ya[Ci+2],Ya[Ci+3]);Ya.length=0};const q5=t=>{let e=[],n={get(){return n.lc||n.listen(()=>{})(),n.value},init:t,lc:0,listen(r){return n.lc=e.push(r),()=>{for(let s=Ci+l0;s<Ya.length;)Ya[s]===r?Ya.splice(s,l0):s+=l0;let a=e.indexOf(r);~a&&(e.splice(a,1),--n.lc||n.off())}},notify(r,a){FX.epoch++;let s=!Ya.length&&!0;for(let i of e)Ya.push(i,n,r,a);s&&BX()},off(){},set(r){let a=n.value;a!==r&&(n.value=r,n.notify(a))},subscribe(r){let a=n.listen(r);return r(n.value),a},value:t};return n},$X=2,HX=5,rg=6,ag=10;let pL=(t,e,n,r)=>(t.events=t.events||{},t.events[n+ag]||(t.events[n+ag]=r(a=>{t.events[n].reduceRight((s,i)=>(i(s),s),{shared:{},...a})})),t.events[n]=t.events[n]||[],t.events[n].push(e),()=>{let a=t.events[n],s=a.indexOf(e);a.splice(s,1),a.length||(delete t.events[n],t.events[n+ag](),delete t.events[n+ag])}),qX=(t,e)=>pL(t,e,$X,n=>{let r=t.set,a=t.setKey;return t.setKey&&(t.setKey=(s,i)=>{let u;if(n({abort:()=>{u=!0},changed:s,newValue:{...t.value,[s]:i}}),!u)return a(s,i)}),t.set=s=>{let i;if(n({abort:()=>{i=!0},newValue:s}),!i)return r(s)},()=>{t.set=r,t.setKey=a}});const WX=1e3;let VX=(t,e)=>pL(t,r=>{let a=e(r);a&&t.events[rg].push(a)},HX,r=>{let a=t.listen;t.listen=(...i)=>(!t.lc&&!t.active&&(t.active=!0,r()),a(...i));let s=t.off;return t.events[rg]=[],t.off=()=>{s(),setTimeout(()=>{if(t.active&&!t.lc){t.active=!1;for(let i of t.events[rg])i();t.events[rg]=[]}},WX)},()=>{t.listen=a,t.off=s}});function GX(t,e,n){let r=new Set(e);return t.listen((a,s,i)=>{(i===void 0?e.some(u=>a[u]!==s[u]):r.has(i)||r.has(i.split(/\.|\[/)[0]))&&n(a,s,i)})}function W5(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return e===Object.prototype||e===null}function L0(t,e){if(t===e)return!0;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(!L0(t[n],e[n]))return!1;return!0}if(W5(t)&&W5(e)){const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(const a of n)if(!(a in e)||!L0(t[a],e[a]))return!1;return!0}return!1}function KX(t,e){return qX(t,({newValue:n,abort:r})=>{e(t.value,n)&&r()})}const gS=Symbol.for("better-auth:broadcast-channel"),YX=()=>Math.floor(Date.now()/1e3);var ZX=class{listeners=new Set;name;constructor(t="better-auth.message"){this.name=t}subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}post(t){if(!(typeof window>"u"))try{localStorage.setItem(this.name,JSON.stringify({...t,timestamp:YX()}))}catch{}}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const t=e=>{if(e.key!==this.name)return;const n=JSON.parse(e.newValue??"{}");n?.event!=="session"||!n?.data||this.listeners.forEach(r=>r(n))};return window.addEventListener("storage",t),()=>{window.removeEventListener("storage",t)}}};function vS(t="better-auth.message"){return globalThis[gS]||(globalThis[gS]=new ZX(t)),globalThis[gS]}const yS=Symbol.for("better-auth:focus-manager");var XX=class{listeners=new Set;subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}setFocused(t){this.listeners.forEach(e=>e(t))}setup(){if(typeof window>"u"||typeof document>"u"||typeof window.addEventListener>"u")return()=>{};const t=()=>{document.visibilityState==="visible"&&this.setFocused(!0)};return document.addEventListener("visibilitychange",t,!1),()=>{document.removeEventListener("visibilitychange",t,!1)}}};function V5(){return globalThis[yS]||(globalThis[yS]=new XX),globalThis[yS]}const bS=Symbol.for("better-auth:online-manager");var QX=class{listeners=new Set;isOnline=typeof navigator<"u"?navigator.onLine:!0;subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}setOnline(t){this.isOnline=t,this.listeners.forEach(e=>e(t))}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const t=()=>this.setOnline(!0),e=()=>this.setOnline(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",e,!1),()=>{window.removeEventListener("online",t,!1),window.removeEventListener("offline",e,!1)}}};function SS(){return globalThis[bS]||(globalThis[bS]=new QX),globalThis[bS]}const wS=()=>Math.floor(Date.now()/1e3),JX=5;function eQ(t){const{fetchSession:e,shouldPollSession:n=()=>!0,sessionSignal:r,options:a={}}=t,s=a.sessionOptions?.refetchInterval??0,i=a.sessionOptions?.refetchOnWindowFocus??!0,u=a.sessionOptions?.refetchWhenOffline??!1,c={isInitialized:!1,lastSessionRequest:0},f=()=>u||SS().isOnline,h=A=>{if(f()){if(A?.event==="storage"){e();return}if(A?.event==="poll"){c.lastSessionRequest=wS(),e();return}if(A?.event==="visibilitychange"){if(wS()-c.lastSessionRequest<JX)return;c.lastSessionRequest=wS(),e();return}e()}},m=A=>{vS().post({event:"session",data:{trigger:A},clientId:Math.random().toString(36).substring(7)})},g=()=>{s&&s>0&&(c.pollInterval=setInterval(()=>{n()&&h({event:"poll"})},s*1e3))},y=()=>{c.unsubscribeBroadcast=vS().subscribe(()=>{h({event:"storage"})})},S=()=>{i&&(c.unsubscribeFocus=V5().subscribe(()=>{h({event:"visibilitychange"})}))},w=()=>{c.unsubscribeOnline=SS().subscribe(A=>{A&&h({event:"visibilitychange"})})},x=()=>{c.unsubscribeSignal=r.listen(()=>{e()})};return{init:()=>{c.isInitialized||(c.isInitialized=!0,g(),y(),S(),w(),x(),c.cleanupBroadcastSetup=vS().setup(),c.cleanupFocusSetup=V5().setup(),c.cleanupOnlineSetup=SS().setup())},cleanup:()=>{c.isInitialized&&(c.pollInterval&&(clearInterval(c.pollInterval),c.pollInterval=void 0),c.unsubscribeBroadcast&&(c.unsubscribeBroadcast(),c.unsubscribeBroadcast=void 0),c.unsubscribeFocus&&(c.unsubscribeFocus(),c.unsubscribeFocus=void 0),c.unsubscribeOnline&&(c.unsubscribeOnline(),c.unsubscribeOnline=void 0),c.unsubscribeSignal&&(c.unsubscribeSignal(),c.unsubscribeSignal=void 0),c.cleanupBroadcastSetup&&(c.cleanupBroadcastSetup(),c.cleanupBroadcastSetup=void 0),c.cleanupFocusSetup&&(c.cleanupFocusSetup(),c.cleanupFocusSetup=void 0),c.cleanupOnlineSetup&&(c.cleanupOnlineSetup(),c.cleanupOnlineSetup=void 0),c.isInitialized=!1,c.lastSessionRequest=0)},triggerRefetch:h,broadcastSessionUpdate:m}}const tQ=()=>typeof window>"u";function G5(t){return typeof t=="object"&&t!==null&&"data"in t&&"error"in t?t:{data:t,error:null}}function nQ(t){return!t||t.session===null&&t.user===null?null:t}function rQ(t,e){return L0(t.data,e.data)&&t.error===e.error&&t.isPending===e.isPending&&t.isRefetching===e.isRefetching&&t.refetch===e.refetch}function aQ(t,e){const n=q5(!1);let r;const a=f=>u(f),s=q5({data:null,error:null,isPending:!0,isRefetching:!1,refetch:a});KX(s,rQ);const i=f=>{if(r!==f)return;const h=s.get();r=void 0,!(!h.isPending&&!h.isRefetching)&&s.set({...h,isPending:!1,isRefetching:!1,refetch:a})},u=async f=>{r?.abort();const h=new AbortController;r=h;const m=s.get();s.set({...m,isPending:m.data===null,isRefetching:!0,error:null,refetch:a});try{const g=await t("/get-session",{method:"GET",query:f?.query,signal:h.signal});if(h.signal.aborted){i(h);return}let{data:y,error:S}=G5(g);if(y?.needsRefresh)try{const k=await t("/get-session",{method:"POST",signal:h.signal});if(h.signal.aborted){i(h);return}({data:y,error:S}=G5(k))}catch{if(h.signal.aborted){i(h);return}}if(S){const k=s.get(),A=S?.status===401;s.set({data:A?null:k.data,error:S,isPending:!1,isRefetching:!1,refetch:a});return}const w=nQ(y),x=s.get(),E=x.data!=null&&w!=null&&L0(x.data,w)?x.data:w;s.set({data:E,error:null,isPending:!1,isRefetching:!1,refetch:a})}catch(g){if(h.signal.aborted){i(h);return}const y=s.get();s.set({data:y.data,error:g,isPending:!1,isRefetching:!1,refetch:a})}};let c=()=>{};return VX(s,()=>{let f;tQ()||(f=setTimeout(()=>{u()},0));const h=eQ({fetchSession:u,shouldPollSession:()=>s.get().data!=null,sessionSignal:n,options:e});return h.init(),c=h.broadcastSessionUpdate,()=>{f&&clearTimeout(f);const m=r;m?.abort(),m&&i(m),h.cleanup()}}),{session:s,$sessionSignal:n,broadcastSessionUpdate:f=>c(f)}}function xS(t){if(t===null||typeof t!="object")return!1;const e=Object.getPrototypeOf(t);return e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null||Symbol.iterator in t?!1:Symbol.toStringTag in t?Object.prototype.toString.call(t)==="[object Module]":!0}function CE(t,e,n=".",r){if(!xS(e))return CE(t,{},n,r);const a={...e};for(const s of Object.keys(t)){if(s==="__proto__"||s==="constructor")continue;const i=t[s];i!=null&&(r&&r(a,s,i,n)||(Array.isArray(i)&&Array.isArray(a[s])?a[s]=[...i,...a[s]]:xS(i)&&xS(a[s])?a[s]=CE(i,a[s],(n?`${n}.`:"")+s.toString(),r):a[s]=i))}return a}function sQ(t){return(...e)=>e.reduce((n,r)=>CE(n,r,"",t),{})}const oQ=sQ();var iQ=Object.defineProperty,lQ=Object.defineProperties,uQ=Object.getOwnPropertyDescriptors,K5=Object.getOwnPropertySymbols,cQ=Object.prototype.hasOwnProperty,dQ=Object.prototype.propertyIsEnumerable,Y5=(t,e,n)=>e in t?iQ(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ga=(t,e)=>{for(var n in e||(e={}))cQ.call(e,n)&&Y5(t,n,e[n]);if(K5)for(var n of K5(e))dQ.call(e,n)&&Y5(t,n,e[n]);return t},xs=(t,e)=>lQ(t,uQ(e)),fQ=class extends Error{constructor(t,e,n){super(e||t.toString(),{cause:n}),this.status=t,this.statusText=e,this.error=n,Error.captureStackTrace(this,this.constructor)}},hQ=async(t,e)=>{var n,r,a,s,i,u;let c=e||{};const f={onRequest:[e?.onRequest],onResponse:[e?.onResponse],onSuccess:[e?.onSuccess],onError:[e?.onError],onRetry:[e?.onRetry]};if(!e||!e?.plugins)return{url:t,options:c,hooks:f};for(const h of e?.plugins||[]){if(h.init){const m=await((n=h.init)==null?void 0:n.call(h,t.toString(),e));c=m.options||c,t=m.url}f.onRequest.push((r=h.hooks)==null?void 0:r.onRequest),f.onResponse.push((a=h.hooks)==null?void 0:a.onResponse),f.onSuccess.push((s=h.hooks)==null?void 0:s.onSuccess),f.onError.push((i=h.hooks)==null?void 0:i.onError),f.onRetry.push((u=h.hooks)==null?void 0:u.onRetry)}return{url:t,options:c,hooks:f}},Z5=class{constructor(t){this.options=t}shouldAttemptRetry(t,e){return this.options.shouldRetry?Promise.resolve(t<this.options.attempts&&this.options.shouldRetry(e)):Promise.resolve(t<this.options.attempts)}getDelay(){return this.options.delay}},pQ=class{constructor(t){this.options=t}shouldAttemptRetry(t,e){return this.options.shouldRetry?Promise.resolve(t<this.options.attempts&&this.options.shouldRetry(e)):Promise.resolve(t<this.options.attempts)}getDelay(t){return Math.min(this.options.maxDelay,this.options.baseDelay*2**t)}};function mQ(t){if(typeof t=="number")return new Z5({type:"linear",attempts:t,delay:1e3});switch(t.type){case"linear":return new Z5(t);case"exponential":return new pQ(t);default:throw new Error("Invalid retry strategy")}}var gQ=async t=>{const e={},n=async r=>typeof r=="function"?await r():r;if(t?.auth){if(t.auth.type==="Bearer"){const r=await n(t.auth.token);if(!r)return e;e.authorization=`Bearer ${r}`}else if(t.auth.type==="Basic"){const[r,a]=await Promise.all([n(t.auth.username),n(t.auth.password)]);if(!r||!a)return e;e.authorization=`Basic ${btoa(`${r}:${a}`)}`}else if(t.auth.type==="Custom"){const[r,a]=await Promise.all([n(t.auth.prefix),n(t.auth.value)]);if(!a)return e;e.authorization=`${r??""} ${a}`}}return e},vQ=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function yQ(t){const e=t.headers.get("content-type"),n=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!e)return"json";const r=e.split(";").shift()||"";return vQ.test(r)?"json":n.has(r)||r.startsWith("text/")?"text":"blob"}function bQ(t){try{return JSON.parse(t),!0}catch{return!1}}function mL(t){if(t===void 0)return!1;const e=typeof t;return e==="string"||e==="number"||e==="boolean"||e===null?!0:e!=="object"?!1:Array.isArray(t)?!0:t.buffer?!1:t.constructor&&t.constructor.name==="Object"||typeof t.toJSON=="function"}function X5(t){try{return JSON.parse(t)}catch{return t}}function Q5(t){return typeof t=="function"}function SQ(t){if(t?.customFetchImpl)return t.customFetchImpl;if(typeof globalThis<"u"&&Q5(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&Q5(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}function gL(...t){const e={};for(const n of t)if(n)if(n instanceof Headers)n.forEach((r,a)=>{e[a]=r});else{const r=Array.isArray(n)?n:Object.entries(n);for(const[a,s]of r)s!=null&&(e[a]=s)}return e}async function wQ(t){const e=new Headers(gL(t?.headers,await gQ(t)));if(!e.has("content-type")){const n=xQ(t?.body);n&&e.set("content-type",n)}return e}function xQ(t){return mL(t)?"application/json":null}function CQ(t){const e=t.get("content-type");return e?e.split(";")[0].trim().toLowerCase():null}function EQ(t,e){const{body:n}=t;return n?!mL(n)||typeof n=="string"?n:CQ(e)==="application/x-www-form-urlencoded"?new URLSearchParams(n).toString():JSON.stringify(n):null}function _Q(t,e){var n;if(e?.method)return e.method.toUpperCase();if(t.startsWith("@")){const r=(n=t.split("@")[1])==null?void 0:n.split("/")[0];return yL.includes(r)?r.toUpperCase():e?.body?"POST":"GET"}return e?.body?"POST":"GET"}function kQ(t,e){let n;return!t?.signal&&t?.timeout&&(n=setTimeout(()=>e?.abort(),t?.timeout)),{abortTimeout:n,clearTimeout:()=>{n&&clearTimeout(n)}}}var AQ=class vL extends Error{constructor(e,n){super(n||JSON.stringify(e,null,2)),this.issues=e,Object.setPrototypeOf(this,vL.prototype)}};async function nh(t,e){const n=await t["~standard"].validate(e);if(n.issues)throw new AQ(n.issues);return n.value}var yL=["get","post","put","patch","delete"],TQ=t=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(e,n){var r,a,s,i;const u=((a=(r=t.plugins)==null?void 0:r.find(c=>{var f;return(f=c.schema)!=null&&f.config?e.startsWith(c.schema.config.baseURL||"")||e.startsWith(c.schema.config.prefix||""):!1}))==null?void 0:a.schema)||t.schema;if(u){let c=e;(s=u.config)!=null&&s.prefix&&c.startsWith(u.config.prefix)&&(c=c.replace(u.config.prefix,""),u.config.baseURL&&(e=e.replace(u.config.prefix,u.config.baseURL))),(i=u.config)!=null&&i.baseURL&&c.startsWith(u.config.baseURL)&&(c=c.replace(u.config.baseURL,"")),c.startsWith("/")&&c.charAt(1)==="@"&&(c=c.substring(1));const f=u.schema[c];if(f){let h=n?.headers;if(f.headers&&!n?.disableValidation){const g={};if(n?.headers){if(n.headers instanceof Headers)n.headers.forEach((w,x)=>{g[x.toLowerCase()]=w});else if(typeof n.headers=="object")for(const[w,x]of Object.entries(n.headers))x!=null&&(g[w.toLowerCase()]=x)}const y=await nh(f.headers,g),S={};for(const[w,x]of Object.entries(y))S[w.toLowerCase()]=x;h=S}let m=xs(Ga({},n),{method:f.method,output:f.output,headers:h});return n?.disableValidation||(m=xs(Ga({},m),{body:f.input?await nh(f.input,n?.body):n?.body,params:f.params?await nh(f.params,n?.params):n?.params,query:f.query?await nh(f.query,n?.query):n?.query})),{url:e,options:m}}}return{url:e,options:n}}}),RQ=t=>{async function e(n,r){const a=xs(Ga(Ga({},t),r),{headers:gL(t?.headers,r?.headers),plugins:[...t?.plugins||[],TQ(t||{}),...r?.plugins||[]]});if(t?.catchAllError)try{return await EE(n,a)}catch(s){return{data:null,error:{status:500,statusText:"Fetch Error",message:"Fetch related error. Captured by catchAllError option. See error property for more details.",error:s}}}return await EE(n,a)}return e},IQ=t=>t==="."||t==="..";function OQ(t,e){let n=t;for(const[r,a]of e)n=n.replace(r,a);if(IQ(n))throw new TypeError("Path parameters cannot be reserved path segments");return encodeURIComponent(n)}function NQ(t,e){const{baseURL:n,params:r,query:a}=e||{query:{},params:{},baseURL:""};let s=t.startsWith("http")?t.split("/").slice(0,3).join("/"):n||"";if(t.startsWith("@")){const g=t.toString().split("@")[1].split("/")[0];yL.includes(g)&&(t=t.replace(`@${g}/`,"/"))}s.endsWith("/")||(s+="/");let[i,u]=t.replace(s,"").split("?");const c=new URLSearchParams(u);for(const[g,y]of Object.entries(a||{})){if(y==null)continue;let S;if(typeof y=="string")S=y;else if(Array.isArray(y)){for(const w of y)c.append(g,w);continue}else S=JSON.stringify(y);c.set(g,S)}const f=new Map;if(r)if(Array.isArray(r)){const g=i.split("/").filter(y=>y.startsWith(":"));for(const[y,S]of g.entries()){const w=r[y];f.set(S,String(w))}}else for(const[g,y]of Object.entries(r))f.set(`:${g}`,String(y));i=i.split("/").map(g=>OQ(g,f)).join("/"),i=i.replace(/^\/+/,"");let h=c.toString();return h=h.length>0?`?${h}`.replace(/\+/g,"%20"):"",s.startsWith("http")?new URL(`${i}${h}`,s):`${s}${i}${h}`}var EE=async(t,e)=>{var n,r,a,s,i,u,c,f;const{hooks:h,url:m,options:g}=await hQ(t,e),y=SQ(g),S=new AbortController,w=(n=g.signal)!=null?n:S.signal,x=NQ(m,g),E=await wQ(g),k=EQ(g,E),A=_Q(m,g),R=xs(Ga({},g),{url:x,headers:E,body:k,method:A,signal:w});for(const H of h.onRequest)if(H){const W=await H(R);typeof W=="object"&&W!==null&&Object.assign(R,W)}("pipeTo"in R&&typeof R.pipeTo=="function"||typeof((r=e?.body)==null?void 0:r.pipe)=="function")&&("duplex"in R||(R.duplex="half"));const{clearTimeout:N}=kQ(g,S);let O=await y(R.url,R);N();const I={response:O,request:R};for(const H of h.onResponse)if(H){const W=await H(xs(Ga({},I),{response:(a=e?.hookOptions)!=null&&a.cloneResponse?O.clone():O}));W instanceof Response?O=W:typeof W=="object"&&W!==null&&(O=W.response)}if(O.ok){if(!(R.method!=="HEAD"))return{data:"",error:null};const W=yQ(O),se={data:null,response:O,request:R};if(W==="json"||W==="text"){const $=await O.text(),Q=(s=R.jsonParser)!=null?s:X5;se.data=await Q($)}else se.data=await O[W]();R?.output&&R.output&&!R.disableValidation&&(se.data=await nh(R.output,se.data));for(const $ of h.onSuccess)$&&await $(xs(Ga({},se),{response:(i=e?.hookOptions)!=null&&i.cloneResponse?O.clone():O}));return e?.throw?se.data:{data:se.data,error:null}}const P=(u=e?.jsonParser)!=null?u:X5,U=await O.text(),q=bQ(U),z=q?await P(U):null,j={response:O,responseText:U,request:R,error:xs(Ga({},z),{status:O.status,statusText:O.statusText})};for(const H of h.onError)H&&await H(xs(Ga({},j),{response:(c=e?.hookOptions)!=null&&c.cloneResponse?O.clone():O}));if(e?.retry){const H=mQ(e.retry),W=(f=e.retryAttempt)!=null?f:0;if(await H.shouldAttemptRetry(W,O)){for(const $ of h.onRetry)$&&await $(I);const se=H.getDelay(W);return await new Promise($=>setTimeout($,se)),await EE(t,xs(Ga({},e),{retryAttempt:W+1}))}}if(e?.throw)throw new fQ(O.status,O.statusText,q?z:U);return{data:null,error:xs(Ga({},z),{status:O.status,statusText:O.statusText})}},xl={};const MQ=t=>{if(typeof process>"u")return;const e="/api/auth";if(xl.NEXT_PUBLIC_AUTH_URL)return xl.NEXT_PUBLIC_AUTH_URL;if(typeof window>"u"){if(xl.NEXTAUTH_URL)try{return xl.NEXTAUTH_URL}catch{}if(xl.VERCEL_URL)try{const n=xl.VERCEL_URL.startsWith("http")?"":"https://";return`${new URL(`${n}${xl.VERCEL_URL}`).origin}${e}`}catch{}}},PQ=(t,e)=>{const n="credentials"in Request.prototype,r=RX(t?.baseURL,t?.basePath)??MQ()??"/api/auth",a=[],s={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:t?.fetchOptions?.onSuccess,onError:t?.fetchOptions?.onError,onRequest:t?.fetchOptions?.onRequest,onResponse:t?.fetchOptions?.onResponse}},{onSuccess:i,onError:u,onRequest:c,onResponse:f,...h}={},m=RQ({baseURL:r,...n?{credentials:"include"}:{},method:"GET",jsonParser(N){return N?LX(N,{strict:!1}):null},customFetchImpl:fetch,...h,plugins:[s,...h.plugins||[],jX,...a]}),{$sessionSignal:g,session:y,broadcastSessionUpdate:S}=aQ(m,t),w=[];let x={};const E={$sessionSignal:g,session:y},k={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"},A=[{signal:"$sessionSignal",matcher(N){return N==="/sign-out"||N==="/update-user"||N==="/update-session"||N==="/sign-up/email"||N==="/sign-in/email"||N==="/delete-user"||N==="/verify-email"||N==="/revoke-sessions"||N==="/revoke-session"||N==="/revoke-other-sessions"||N==="/change-email"||N==="/change-password"},callback(N){N==="/sign-out"?S("signout"):(N==="/update-user"||N==="/update-session")&&S("updateUser")}}];for(const N of w)N.getAtoms&&Object.assign(E,N.getAtoms?.(m)),N.pathMethods&&Object.assign(k,N.pathMethods),N.atomListeners&&A.push(...N.atomListeners);const R={notify:N=>{E[N].set(!E[N].get())},listen:(N,O)=>{E[N].subscribe(O)},atoms:E};for(const N of w)N.getActions&&(x=oQ(N.getActions?.(m,R,t)??{},x));return{get baseURL(){return r},pluginsActions:x,pluginsAtoms:E,pluginPathMethods:k,atomListeners:A,$fetch:m,$store:R}};function DQ(t){return typeof t=="object"&&t!==null&&"get"in t&&typeof t.get=="function"&&"lc"in t&&typeof t.lc=="number"}function LQ(t){return t.charAt(0).toUpperCase()+t.slice(1)}const UQ=new RegExp("[\\p{Ll}\\d]+|\\p{Lu}+(?!\\p{Ll})|\\p{Lu}[\\p{Ll}\\d]+|\\p{Lo}+","gu"),zQ=/['\u2019]/g;function jQ(t){return t.replace(zQ,"").match(UQ)??[]}function FQ(t){return jQ(t).map(e=>e.toLowerCase()).join("-")}function BQ(t,e,n){const r=e[t],{fetchOptions:a,query:s,...i}=n||{};return r||(a?.method?a.method:i&&Object.keys(i).length>0?"POST":"GET")}function $Q(t,e,n,r,a){function s(i=[]){return new Proxy(function(){},{get(u,c){if(typeof c!="string"||c==="then"||c==="catch"||c==="finally")return;const f=[...i,c];let h=t;for(const m of f)if(h&&typeof h=="object"&&m in h)h=h[m];else{h=void 0;break}return typeof h=="function"||DQ(h)?h:s(f)},apply:async(u,c,f)=>{const h="/"+i.map(FQ).join("/"),m=f[0]||{},g=f[1]||{},{query:y,fetchOptions:S,...w}=m,x={...g,...S},E=BQ(h,n,m);return await e(h,{...x,body:E==="GET"?void 0:{...w,...x?.body||{}},query:y||x?.query,method:E,async onSuccess(k){if(await x?.onSuccess?.(k),!a||x.disableSignal)return;const A=a.filter(N=>N.matcher(h));if(!A.length)return;const R=new Set;for(const N of A){const O=r[N.signal];if(!O)return;if(R.has(N.signal))continue;R.add(N.signal);const I=O.get();setTimeout(()=>{O.set(!I)},10),N.callback?.(h)}}})}})}return s()}var CS={exports:{}},Ke={};var J5;function HQ(){if(J5)return Ke;J5=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),i=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.for("react.activity"),g=Symbol.iterator;function y(D){return D===null||typeof D!="object"?null:(D=g&&D[g]||D["@@iterator"],typeof D=="function"?D:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,x={};function E(D,Z,K){this.props=D,this.context=Z,this.refs=x,this.updater=K||S}E.prototype.isReactComponent={},E.prototype.setState=function(D,Z){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,Z,"setState")},E.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function k(){}k.prototype=E.prototype;function A(D,Z,K){this.props=D,this.context=Z,this.refs=x,this.updater=K||S}var R=A.prototype=new k;R.constructor=A,w(R,E.prototype),R.isPureReactComponent=!0;var N=Array.isArray;function O(){}var I={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function U(D,Z,K){var X=K.ref;return{$$typeof:t,type:D,key:Z,ref:X!==void 0?X:null,props:K}}function q(D,Z){return U(D.type,Z,D.props)}function z(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function j(D){var Z={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(K){return Z[K]})}var H=/\/+/g;function W(D,Z){return typeof D=="object"&&D!==null&&D.key!=null?j(""+D.key):Z.toString(36)}function se(D){switch(D.status){case"fulfilled":return D.value;case"rejected":throw D.reason;default:switch(typeof D.status=="string"?D.then(O,O):(D.status="pending",D.then(function(Z){D.status==="pending"&&(D.status="fulfilled",D.value=Z)},function(Z){D.status==="pending"&&(D.status="rejected",D.reason=Z)})),D.status){case"fulfilled":return D.value;case"rejected":throw D.reason}}throw D}function $(D,Z,K,X,G){var ue=typeof D;(ue==="undefined"||ue==="boolean")&&(D=null);var oe=!1;if(D===null)oe=!0;else switch(ue){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(D.$$typeof){case t:case e:oe=!0;break;case h:return oe=D._init,$(oe(D._payload),Z,K,X,G)}}if(oe)return G=G(D),oe=X===""?"."+W(D,0):X,N(G)?(K="",oe!=null&&(K=oe.replace(H,"$&/")+"/"),$(G,Z,K,"",function(Ge){return Ge})):G!=null&&(z(G)&&(G=q(G,K+(G.key==null||D&&D.key===G.key?"":(""+G.key).replace(H,"$&/")+"/")+oe)),Z.push(G)),1;oe=0;var ce=X===""?".":X+":";if(N(D))for(var be=0;be<D.length;be++)X=D[be],ue=ce+W(X,be),oe+=$(X,Z,K,ue,G);else if(be=y(D),typeof be=="function")for(D=be.call(D),be=0;!(X=D.next()).done;)X=X.value,ue=ce+W(X,be++),oe+=$(X,Z,K,ue,G);else if(ue==="object"){if(typeof D.then=="function")return $(se(D),Z,K,X,G);throw Z=String(D),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return oe}function Q(D,Z,K){if(D==null)return D;var X=[],G=0;return $(D,X,"","",function(ue){return Z.call(K,ue,G++)}),X}function re(D){if(D._status===-1){var Z=D._result;Z=Z(),Z.then(function(K){(D._status===0||D._status===-1)&&(D._status=1,D._result=K)},function(K){(D._status===0||D._status===-1)&&(D._status=2,D._result=K)}),D._status===-1&&(D._status=0,D._result=Z)}if(D._status===1)return D._result.default;throw D._result}var he=typeof reportError=="function"?reportError:function(D){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D),error:D});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",D);return}console.error(D)},xe={map:Q,forEach:function(D,Z,K){Q(D,function(){Z.apply(this,arguments)},K)},count:function(D){var Z=0;return Q(D,function(){Z++}),Z},toArray:function(D){return Q(D,function(Z){return Z})||[]},only:function(D){if(!z(D))throw Error("React.Children.only expected to receive a single React element child.");return D}};return Ke.Activity=m,Ke.Children=xe,Ke.Component=E,Ke.Fragment=n,Ke.Profiler=a,Ke.PureComponent=A,Ke.StrictMode=r,Ke.Suspense=c,Ke.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,Ke.__COMPILER_RUNTIME={__proto__:null,c:function(D){return I.H.useMemoCache(D)}},Ke.cache=function(D){return function(){return D.apply(null,arguments)}},Ke.cacheSignal=function(){return null},Ke.cloneElement=function(D,Z,K){if(D==null)throw Error("The argument must be a React element, but you passed "+D+".");var X=w({},D.props),G=D.key;if(Z!=null)for(ue in Z.key!==void 0&&(G=""+Z.key),Z)!P.call(Z,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&Z.ref===void 0||(X[ue]=Z[ue]);var ue=arguments.length-2;if(ue===1)X.children=K;else if(1<ue){for(var oe=Array(ue),ce=0;ce<ue;ce++)oe[ce]=arguments[ce+2];X.children=oe}return U(D.type,G,X)},Ke.createContext=function(D){return D={$$typeof:i,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null},D.Provider=D,D.Consumer={$$typeof:s,_context:D},D},Ke.createElement=function(D,Z,K){var X,G={},ue=null;if(Z!=null)for(X in Z.key!==void 0&&(ue=""+Z.key),Z)P.call(Z,X)&&X!=="key"&&X!=="__self"&&X!=="__source"&&(G[X]=Z[X]);var oe=arguments.length-2;if(oe===1)G.children=K;else if(1<oe){for(var ce=Array(oe),be=0;be<oe;be++)ce[be]=arguments[be+2];G.children=ce}if(D&&D.defaultProps)for(X in oe=D.defaultProps,oe)G[X]===void 0&&(G[X]=oe[X]);return U(D,ue,G)},Ke.createRef=function(){return{current:null}},Ke.forwardRef=function(D){return{$$typeof:u,render:D}},Ke.isValidElement=z,Ke.lazy=function(D){return{$$typeof:h,_payload:{_status:-1,_result:D},_init:re}},Ke.memo=function(D,Z){return{$$typeof:f,type:D,compare:Z===void 0?null:Z}},Ke.startTransition=function(D){var Z=I.T,K={};I.T=K;try{var X=D(),G=I.S;G!==null&&G(K,X),typeof X=="object"&&X!==null&&typeof X.then=="function"&&X.then(O,he)}catch(ue){he(ue)}finally{Z!==null&&K.types!==null&&(Z.types=K.types),I.T=Z}},Ke.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},Ke.use=function(D){return I.H.use(D)},Ke.useActionState=function(D,Z,K){return I.H.useActionState(D,Z,K)},Ke.useCallback=function(D,Z){return I.H.useCallback(D,Z)},Ke.useContext=function(D){return I.H.useContext(D)},Ke.useDebugValue=function(){},Ke.useDeferredValue=function(D,Z){return I.H.useDeferredValue(D,Z)},Ke.useEffect=function(D,Z){return I.H.useEffect(D,Z)},Ke.useEffectEvent=function(D){return I.H.useEffectEvent(D)},Ke.useId=function(){return I.H.useId()},Ke.useImperativeHandle=function(D,Z,K){return I.H.useImperativeHandle(D,Z,K)},Ke.useInsertionEffect=function(D,Z){return I.H.useInsertionEffect(D,Z)},Ke.useLayoutEffect=function(D,Z){return I.H.useLayoutEffect(D,Z)},Ke.useMemo=function(D,Z){return I.H.useMemo(D,Z)},Ke.useOptimistic=function(D,Z){return I.H.useOptimistic(D,Z)},Ke.useReducer=function(D,Z,K){return I.H.useReducer(D,Z,K)},Ke.useRef=function(D){return I.H.useRef(D)},Ke.useState=function(D){return I.H.useState(D)},Ke.useSyncExternalStore=function(D,Z,K){return I.H.useSyncExternalStore(D,Z,K)},Ke.useTransition=function(){return I.H.useTransition()},Ke.version="19.2.7",Ke}var e6;function gp(){return e6||(e6=1,CS.exports=HQ()),CS.exports}var _=gp();const F=Xi(_),bL=oD({__proto__:null,default:F},[_]);function qQ(t,e={}){const n=_.useRef(t.get()),{keys:r,deps:a=[t,r]}=e,s=_.useCallback(u=>{const c=f=>{n.current!==f&&(n.current=f,u())};return c(t.value),r?.length?GX(t,r,c):t.listen(c)},a),i=()=>n.current;return _.useSyncExternalStore(s,i,i)}function WQ(t){return`use${LQ(t)}`}function VQ(t){const{pluginPathMethods:e,pluginsActions:n,pluginsAtoms:r,$fetch:a,$store:s,atomListeners:i}=PQ(t),u={};for(const[c,f]of Object.entries(r))u[WQ(c)]=()=>qQ(f);return $Q({...n,...u,$fetch:a,$store:s},a,e,r,i)}const GQ=10,jc=[],KQ=["x-correlation-id","x-request-id","x-amzn-requestid","x-amzn-trace-id","apigw-requestid","x-trace-id"];function YQ(t){const e=typeof t=="string"?t:t instanceof URL?t.href:t.url;try{return new URL(e,window.location.origin).pathname}catch{return e.split(/[?#]/)[0]}}function ZQ(t,e){return e?.method?e.method.toUpperCase():typeof t!="string"&&!(t instanceof URL)&&t.method?t.method.toUpperCase():"GET"}function XQ(t){for(const e of KQ){const n=t.headers.get(e);if(n)return n}}function QQ(t){jc.push(t),jc.length>GQ&&jc.shift()}function t6(t){const{input:e,init:n,response:r,durationMs:a}=t;QQ({method:ZQ(e,n),path:YQ(e),status:r?.status??0,durationMs:Math.round(a),correlationId:r?XQ(r):void 0,timestamp:new Date().toISOString()})}function JQ(){return jc.slice()}function eJ(){for(let t=jc.length-1;t>=0;t--){const e=jc[t];if(e.status===0||e.status>=400)return e}}class q_ extends Error{constructor(e){super(e instanceof Error&&e.message?e.message:"The request could not be completed.",{cause:e}),this.name="NetworkError"}}const tJ=t=>typeof t=="object"&&t!==null&&"name"in t&&t.name==="AbortError",SL=async(t,e)=>{const n=performance.now();try{const r=await fetch(t,e);return t6({input:t,init:e,response:r,durationMs:performance.now()-n}),r}catch(r){throw tJ(r)?r:(t6({input:t,init:e,durationMs:performance.now()-n}),new q_(r))}},nv=()=>ev().betterAuthEnabled,nJ="EMAIL_PASSWORD_SIGN_UP_DISABLED",rJ=t=>typeof t=="object"&&t!==null&&t.code===nJ,Oh=VQ(),aJ=60,sJ=30,_E="remit.better-auth.token",wL=()=>{try{return globalThis.sessionStorage??null}catch{return null}},oJ=()=>{const t=wL()?.getItem(_E);if(!t)return null;try{const e=JSON.parse(t);if(e&&typeof e=="object"&&typeof e.value=="string"&&typeof e.expiresAt=="number")return{value:e.value,expiresAt:e.expiresAt}}catch{}return null},xL=t=>{const e=wL();if(e)try{if(!t){e.removeItem(_E);return}e.setItem(_E,JSON.stringify(t))}catch{}};let Il=null,U0=0;const iJ=()=>Il||(Il=oJ(),Il),Ul=()=>Math.floor(Date.now()/1e3),lJ=t=>{const[,e]=t.split(".");if(!e)return Ul();try{const n=JSON.parse(atob(e.replace(/-/g,"+").replace(/_/g,"/")));return typeof n.exp=="number"?n.exp:Ul()}catch{return Ul()}};class z0 extends Error{status;constructor(e,n){super(e),this.name="AuthTokenError",this.status=n}}const uJ=async()=>{const t=await SL("/api/auth/token",{credentials:"include"});if(!t.ok)throw new z0(`Could not mint a session token: ${t.status} ${t.statusText}`,t.status);const e=await t.json();if(e&&typeof e=="object"&&"token"in e&&typeof e.token=="string")return e.token;throw new z0("The token endpoint returned no token")};let Mf=null;const cJ=()=>Mf||(Mf=uJ().then(t=>(Il={value:t,expiresAt:lJ(t)},xL(Il),U0=0,t)).finally(()=>{Mf=null}),Mf),dJ=t=>t.expiresAt-aJ>Ul(),n6=t=>t.expiresAt>Ul(),fJ=t=>t instanceof q_?!0:t instanceof z0?t.status===408||t.status===429||(t.status??0)>=500:!1,hJ=t=>t instanceof z0&&(t.status===401||t.status===403),pJ=async()=>{const t=iJ();if(t&&dJ(t)||t&&n6(t)&&Ul()<U0)return t.value;try{return await cJ()}catch(e){if(hJ(e))throw W_(),e;if(t&&n6(t)&&fJ(e))return U0=Ul()+sJ,t.value;throw e}},W_=()=>{U0=0,xL(null),Il=null};function CL(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var a=t.length;for(e=0;e<a;e++)t[e]&&(n=CL(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function EL(){for(var t,e,n=0,r="",a=arguments.length;n<a;n++)(t=arguments[n])&&(e=CL(t))&&(r&&(r+=" "),r+=e);return r}var ES={exports:{}},fr={};var r6;function mJ(){if(r6)return fr;r6=1;var t=gp();function e(c){var f="https://react.dev/errors/"+c;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)f+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+c+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(e(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function s(c,f,h){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:m==null?null:""+m,children:c,containerInfo:f,implementation:h}}var i=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(c,f){if(c==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return fr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,fr.createPortal=function(c,f){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(e(299));return s(c,f,null,h)},fr.flushSync=function(c){var f=i.T,h=r.p;try{if(i.T=null,r.p=2,c)return c()}finally{i.T=f,r.p=h,r.d.f()}},fr.preconnect=function(c,f){typeof c=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(c,f))},fr.prefetchDNS=function(c){typeof c=="string"&&r.d.D(c)},fr.preinit=function(c,f){if(typeof c=="string"&&f&&typeof f.as=="string"){var h=f.as,m=u(h,f.crossOrigin),g=typeof f.integrity=="string"?f.integrity:void 0,y=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;h==="style"?r.d.S(c,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:m,integrity:g,fetchPriority:y}):h==="script"&&r.d.X(c,{crossOrigin:m,integrity:g,fetchPriority:y,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},fr.preinitModule=function(c,f){if(typeof c=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var h=u(f.as,f.crossOrigin);r.d.M(c,{crossOrigin:h,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(c)},fr.preload=function(c,f){if(typeof c=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var h=f.as,m=u(h,f.crossOrigin);r.d.L(c,h,{crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},fr.preloadModule=function(c,f){if(typeof c=="string")if(f){var h=u(f.as,f.crossOrigin);r.d.m(c,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:h,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(c)},fr.requestFormReset=function(c){r.d.r(c)},fr.unstable_batchedUpdates=function(c,f){return c(f)},fr.useFormState=function(c,f,h){return i.H.useFormState(c,f,h)},fr.useFormStatus=function(){return i.H.useHostTransitionStatus()},fr.version="19.2.7",fr}var a6;function _L(){if(a6)return ES.exports;a6=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),ES.exports=mJ(),ES.exports}var kL=_L();const JTe=Xi(kL);var _S={exports:{}},kS={};var s6;function gJ(){if(s6)return kS;s6=1;var t=gp();function e(m,g){return m===g&&(m!==0||1/m===1/g)||m!==m&&g!==g}var n=typeof Object.is=="function"?Object.is:e,r=t.useState,a=t.useEffect,s=t.useLayoutEffect,i=t.useDebugValue;function u(m,g){var y=g(),S=r({inst:{value:y,getSnapshot:g}}),w=S[0].inst,x=S[1];return s(function(){w.value=y,w.getSnapshot=g,c(w)&&x({inst:w})},[m,y,g]),a(function(){return c(w)&&x({inst:w}),m(function(){c(w)&&x({inst:w})})},[m]),i(y),y}function c(m){var g=m.getSnapshot;m=m.value;try{var y=g();return!n(m,y)}catch{return!0}}function f(m,g){return g()}var h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:u;return kS.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:h,kS}var o6;function vJ(){return o6||(o6=1,_S.exports=gJ()),_S.exports}const yJ=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),AL=(...t)=>t.filter((e,n,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===n).join(" ").trim();var bJ={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const SJ=_.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:s,iconNode:i,...u},c)=>_.createElement("svg",{ref:c,...bJ,width:e,height:e,stroke:t,strokeWidth:r?Number(n)*24/Number(e):n,className:AL("lucide",a),...u},[...i.map(([f,h])=>_.createElement(f,h)),...Array.isArray(s)?s:[s]]));const Rt=(t,e)=>{const n=_.forwardRef(({className:r,...a},s)=>_.createElement(SJ,{ref:s,iconNode:e,className:AL(`lucide-${yJ(t)}`,r),...a}));return n.displayName=`${t}`,n};const wJ=Rt("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);const TL=Rt("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);const xJ=Rt("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);const rv=Rt("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);const kE=Rt("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const CJ=Rt("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);const EJ=Rt("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);const _J=Rt("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);const kJ=Rt("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);const AJ=Rt("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);const TJ=Rt("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);const RJ=Rt("FolderInput",[["path",{d:"M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1",key:"fm4g5t"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m9 16 3-3-3-3",key:"6m91ic"}]]);const IJ=Rt("FolderPlus",[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);const OJ=Rt("FolderTree",[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]]);const NJ=Rt("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);const RL=Rt("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);const IL=Rt("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);const j0=Rt("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);const MJ=Rt("Mails",[["rect",{width:"16",height:"13",x:"6",y:"4",rx:"2",key:"1drq3f"}],["path",{d:"m22 7-7.1 3.78c-.57.3-1.23.3-1.8 0L6 7",key:"xn252p"}],["path",{d:"M2 8v11c0 1.1.9 2 2 2h14",key:"n13cji"}]]);const V_=Rt("OctagonAlert",[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]]);const PJ=Rt("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);const DJ=Rt("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const LJ=Rt("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);const UJ=Rt("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);const AE=Rt("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);const zJ=Rt("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);const jJ=Rt("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);const FJ=Rt("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);const Nh=Rt("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);const BJ=Rt("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);const $J=Rt("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);const Ms=Rt("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),G_="-",HJ=t=>{const e=WJ(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:i=>{const u=i.split(G_);return u[0]===""&&u.length!==1&&u.shift(),OL(u,e)||qJ(i)},getConflictingClassGroupIds:(i,u)=>{const c=n[i]||[];return u&&r[i]?[...c,...r[i]]:c}}},OL=(t,e)=>{if(t.length===0)return e.classGroupId;const n=t[0],r=e.nextPart.get(n),a=r?OL(t.slice(1),r):void 0;if(a)return a;if(e.validators.length===0)return;const s=t.join(G_);return e.validators.find(({validator:i})=>i(s))?.classGroupId},i6=/^\[(.+)\]$/,qJ=t=>{if(i6.test(t)){const e=i6.exec(t)[1],n=e?.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}},WJ=t=>{const{theme:e,prefix:n}=t,r={nextPart:new Map,validators:[]};return GJ(Object.entries(t.classGroups),n).forEach(([s,i])=>{TE(i,r,s,e)}),r},TE=(t,e,n,r)=>{t.forEach(a=>{if(typeof a=="string"){const s=a===""?e:l6(e,a);s.classGroupId=n;return}if(typeof a=="function"){if(VJ(a)){TE(a(r),e,n,r);return}e.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([s,i])=>{TE(i,l6(e,s),n,r)})})},l6=(t,e)=>{let n=t;return e.split(G_).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},VJ=t=>t.isThemeGetter,GJ=(t,e)=>e?t.map(([n,r])=>{const a=r.map(s=>typeof s=="string"?e+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([i,u])=>[e+i,u])):s);return[n,a]}):t,KJ=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,r=new Map;const a=(s,i)=>{n.set(s,i),e++,e>t&&(e=0,r=n,n=new Map)};return{get(s){let i=n.get(s);if(i!==void 0)return i;if((i=r.get(s))!==void 0)return a(s,i),i},set(s,i){n.has(s)?n.set(s,i):a(s,i)}}},NL="!",YJ=t=>{const{separator:e,experimentalParseClassName:n}=t,r=e.length===1,a=e[0],s=e.length,i=u=>{const c=[];let f=0,h=0,m;for(let x=0;x<u.length;x++){let E=u[x];if(f===0){if(E===a&&(r||u.slice(x,x+s)===e)){c.push(u.slice(h,x)),h=x+s;continue}if(E==="/"){m=x;continue}}E==="["?f++:E==="]"&&f--}const g=c.length===0?u:u.substring(h),y=g.startsWith(NL),S=y?g.substring(1):g,w=m&&m>h?m-h:void 0;return{modifiers:c,hasImportantModifier:y,baseClassName:S,maybePostfixModifierPosition:w}};return n?u=>n({className:u,parseClassName:i}):i},ZJ=t=>{if(t.length<=1)return t;const e=[];let n=[];return t.forEach(r=>{r[0]==="["?(e.push(...n.sort(),r),n=[]):n.push(r)}),e.push(...n.sort()),e},XJ=t=>({cache:KJ(t.cacheSize),parseClassName:YJ(t),...HJ(t)}),QJ=/\s+/,JJ=(t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a}=e,s=[],i=t.trim().split(QJ);let u="";for(let c=i.length-1;c>=0;c-=1){const f=i[c],{modifiers:h,hasImportantModifier:m,baseClassName:g,maybePostfixModifierPosition:y}=n(f);let S=!!y,w=r(S?g.substring(0,y):g);if(!w){if(!S){u=f+(u.length>0?" "+u:u);continue}if(w=r(g),!w){u=f+(u.length>0?" "+u:u);continue}S=!1}const x=ZJ(h).join(":"),E=m?x+NL:x,k=E+w;if(s.includes(k))continue;s.push(k);const A=a(w,S);for(let R=0;R<A.length;++R){const N=A[R];s.push(E+N)}u=f+(u.length>0?" "+u:u)}return u};function eee(){let t=0,e,n,r="";for(;t<arguments.length;)(e=arguments[t++])&&(n=ML(e))&&(r&&(r+=" "),r+=n);return r}const ML=t=>{if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=ML(t[r]))&&(n&&(n+=" "),n+=e);return n};function tee(t,...e){let n,r,a,s=i;function i(c){const f=e.reduce((h,m)=>m(h),t());return n=XJ(f),r=n.cache.get,a=n.cache.set,s=u,u(c)}function u(c){const f=r(c);if(f)return f;const h=JJ(c,n);return a(c,h),h}return function(){return s(eee.apply(null,arguments))}}const Xt=t=>{const e=n=>n[t]||[];return e.isThemeGetter=!0,e},PL=/^\[(?:([a-z-]+):)?(.+)\]$/i,nee=/^\d+\/\d+$/,ree=new Set(["px","full","screen"]),aee=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,see=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,oee=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,iee=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,lee=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,oo=t=>Fc(t)||ree.has(t)||nee.test(t),vi=t=>xd(t,"length",gee),Fc=t=>!!t&&!Number.isNaN(Number(t)),AS=t=>xd(t,"number",Fc),Pf=t=>!!t&&Number.isInteger(Number(t)),uee=t=>t.endsWith("%")&&Fc(t.slice(0,-1)),tt=t=>PL.test(t),yi=t=>aee.test(t),cee=new Set(["length","size","percentage"]),dee=t=>xd(t,cee,DL),fee=t=>xd(t,"position",DL),hee=new Set(["image","url"]),pee=t=>xd(t,hee,yee),mee=t=>xd(t,"",vee),Df=()=>!0,xd=(t,e,n)=>{const r=PL.exec(t);return r?r[1]?typeof e=="string"?r[1]===e:e.has(r[1]):n(r[2]):!1},gee=t=>see.test(t)&&!oee.test(t),DL=()=>!1,vee=t=>iee.test(t),yee=t=>lee.test(t),bee=()=>{const t=Xt("colors"),e=Xt("spacing"),n=Xt("blur"),r=Xt("brightness"),a=Xt("borderColor"),s=Xt("borderRadius"),i=Xt("borderSpacing"),u=Xt("borderWidth"),c=Xt("contrast"),f=Xt("grayscale"),h=Xt("hueRotate"),m=Xt("invert"),g=Xt("gap"),y=Xt("gradientColorStops"),S=Xt("gradientColorStopPositions"),w=Xt("inset"),x=Xt("margin"),E=Xt("opacity"),k=Xt("padding"),A=Xt("saturate"),R=Xt("scale"),N=Xt("sepia"),O=Xt("skew"),I=Xt("space"),P=Xt("translate"),U=()=>["auto","contain","none"],q=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto",tt,e],j=()=>[tt,e],H=()=>["",oo,vi],W=()=>["auto",Fc,tt],se=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],Q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],re=()=>["start","end","center","between","around","evenly","stretch"],he=()=>["","0",tt],xe=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>[Fc,tt];return{cacheSize:500,separator:":",theme:{colors:[Df],spacing:[oo,vi],blur:["none","",yi,tt],brightness:D(),borderColor:[t],borderRadius:["none","","full",yi,tt],borderSpacing:j(),borderWidth:H(),contrast:D(),grayscale:he(),hueRotate:D(),invert:he(),gap:j(),gradientColorStops:[t],gradientColorStopPositions:[uee,vi],inset:z(),margin:z(),opacity:D(),padding:j(),saturate:D(),scale:D(),sepia:he(),skew:D(),space:j(),translate:j()},classGroups:{aspect:[{aspect:["auto","square","video",tt]}],container:["container"],columns:[{columns:[yi]}],"break-after":[{"break-after":xe()}],"break-before":[{"break-before":xe()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...se(),tt]}],overflow:[{overflow:q()}],"overflow-x":[{"overflow-x":q()}],"overflow-y":[{"overflow-y":q()}],overscroll:[{overscroll:U()}],"overscroll-x":[{"overscroll-x":U()}],"overscroll-y":[{"overscroll-y":U()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[w]}],"inset-x":[{"inset-x":[w]}],"inset-y":[{"inset-y":[w]}],start:[{start:[w]}],end:[{end:[w]}],top:[{top:[w]}],right:[{right:[w]}],bottom:[{bottom:[w]}],left:[{left:[w]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Pf,tt]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",tt]}],grow:[{grow:he()}],shrink:[{shrink:he()}],order:[{order:["first","last","none",Pf,tt]}],"grid-cols":[{"grid-cols":[Df]}],"col-start-end":[{col:["auto",{span:["full",Pf,tt]},tt]}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":[Df]}],"row-start-end":[{row:["auto",{span:[Pf,tt]},tt]}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",tt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",tt]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...re()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...re(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...re(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[k]}],px:[{px:[k]}],py:[{py:[k]}],ps:[{ps:[k]}],pe:[{pe:[k]}],pt:[{pt:[k]}],pr:[{pr:[k]}],pb:[{pb:[k]}],pl:[{pl:[k]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[I]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[I]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",tt,e]}],"min-w":[{"min-w":[tt,e,"min","max","fit"]}],"max-w":[{"max-w":[tt,e,"none","full","min","max","fit","prose",{screen:[yi]},yi]}],h:[{h:[tt,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[tt,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[tt,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[tt,e,"auto","min","max","fit"]}],"font-size":[{text:["base",yi,vi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",AS]}],"font-family":[{font:[Df]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",tt]}],"line-clamp":[{"line-clamp":["none",Fc,AS]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",oo,tt]}],"list-image":[{"list-image":["none",tt]}],"list-style-type":[{list:["none","disc","decimal",tt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[E]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[E]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",oo,vi]}],"underline-offset":[{"underline-offset":["auto",oo,tt]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",tt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",tt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[E]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...se(),fee]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",dee]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},pee]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[S]}],"gradient-via-pos":[{via:[S]}],"gradient-to-pos":[{to:[S]}],"gradient-from":[{from:[y]}],"gradient-via":[{via:[y]}],"gradient-to":[{to:[y]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[u]}],"border-w-x":[{"border-x":[u]}],"border-w-y":[{"border-y":[u]}],"border-w-s":[{"border-s":[u]}],"border-w-e":[{"border-e":[u]}],"border-w-t":[{"border-t":[u]}],"border-w-r":[{"border-r":[u]}],"border-w-b":[{"border-b":[u]}],"border-w-l":[{"border-l":[u]}],"border-opacity":[{"border-opacity":[E]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[u]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[u]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[E]}],"divide-style":[{divide:$()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...$()]}],"outline-offset":[{"outline-offset":[oo,tt]}],"outline-w":[{outline:[oo,vi]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[E]}],"ring-offset-w":[{"ring-offset":[oo,vi]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",yi,mee]}],"shadow-color":[{shadow:[Df]}],opacity:[{opacity:[E]}],"mix-blend":[{"mix-blend":[...Q(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Q()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",yi,tt]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[m]}],saturate:[{saturate:[A]}],sepia:[{sepia:[N]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[m]}],"backdrop-opacity":[{"backdrop-opacity":[E]}],"backdrop-saturate":[{"backdrop-saturate":[A]}],"backdrop-sepia":[{"backdrop-sepia":[N]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",tt]}],duration:[{duration:D()}],ease:[{ease:["linear","in","out","in-out",tt]}],delay:[{delay:D()}],animate:[{animate:["none","spin","ping","pulse","bounce",tt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[R]}],"scale-x":[{"scale-x":[R]}],"scale-y":[{"scale-y":[R]}],rotate:[{rotate:[Pf,tt]}],"translate-x":[{"translate-x":[P]}],"translate-y":[{"translate-y":[P]}],"skew-x":[{"skew-x":[O]}],"skew-y":[{"skew-y":[O]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",tt]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",tt]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",tt]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[oo,vi,AS]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},LL=tee(bee);function Ue(...t){return LL(EL(t))}const See=1024,wee=1280;function xee(t,e=See,n=wee){const r=t>=e;return{nav:r,reading:r,intelligence:t>=n}}function Cee(t){const e=_.useRef(null),[n,r]=_.useState(t??null);return _.useEffect(()=>{const a=e.current;if(!a||typeof ResizeObserver>"u")return;const s=new ResizeObserver(c=>{const f=c[0];f&&r(f.contentRect.width)});s.observe(a);const i=getComputedStyle(a),u=Number.parseFloat(i.paddingLeft)+Number.parseFloat(i.paddingRight);return r(a.clientWidth-u),()=>s.disconnect()},[]),[e,n]}const Eee=[{id:"all",label:"All"},{id:"personal",label:"Personal"},{id:"uncategorized",label:"Unclassified"},{id:"newsletter",label:"Newsletters"},{id:"marketing",label:"Marketing"},{id:"automated",label:"Automated"},{id:"transactional",label:"Transactional"},{id:"social",label:"Social"}],_ee={uncategorized:"neutral",personal:"accent",newsletter:"neutral",marketing:"neutral",automated:"neutral",transactional:"positive",social:"warning"};function kee({open:t,onClose:e,title:n,children:r,className:a,anchor:s="center"}){const i=_.useRef(null),u=_.useCallback(h=>{if(h.key!=="Escape")return;const m=document.activeElement;m instanceof Element&&m.closest("[data-escape-owner]")||(h.preventDefault(),h.stopImmediatePropagation(),e())},[e]);if(_.useEffect(()=>{if(t)return window.addEventListener("keydown",u,!0),()=>window.removeEventListener("keydown",u,!0)},[t,u]),_.useEffect(()=>{if(!t)return;const h=i.current;if(!h)return;h.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')[0]?.focus()},[t]),!t)return null;const c=s==="left",f=s==="right";return C.jsxs("div",{className:Ue("fixed inset-0 z-50 flex",c?"items-stretch justify-start":f?"items-stretch justify-end":"items-center justify-center px-4"),role:"presentation",onClick:e,children:[C.jsx("div",{className:"absolute inset-0 bg-canvas/80"}),C.jsxs("div",{ref:i,role:"dialog","aria-modal":"true","aria-labelledby":"dialog-title",className:Ue("relative z-10 overflow-hidden border-line bg-surface shadow-xl",c?"safe-area-frame h-full w-72 max-w-[85vw] border-r":f?"safe-area-frame h-full w-[80vw] max-w-[320px] border-l":"w-full max-w-lg rounded-md border",a),onClick:h=>h.stopPropagation(),onKeyDown:h=>h.stopPropagation(),children:[C.jsx("h2",{id:"dialog-title",className:"sr-only",children:n}),r]})]})}const av=_.createContext(null);av.displayName="PanelGroupContext";const yn={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},K_=10,zl=_.useLayoutEffect,u6=bL.useId,Aee=typeof u6=="function"?u6:()=>null;let Tee=0;function Y_(t=null){const e=Aee(),n=_.useRef(t||e||null);return n.current===null&&(n.current=""+Tee++),t??n.current}function UL({children:t,className:e="",collapsedSize:n,collapsible:r,defaultSize:a,forwardedRef:s,id:i,maxSize:u,minSize:c,onCollapse:f,onExpand:h,onResize:m,order:g,style:y,tagName:S="div",...w}){const x=_.useContext(av);if(x===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:E,expandPanel:k,getPanelSize:A,getPanelStyle:R,groupId:N,isPanelCollapsed:O,reevaluatePanelConstraints:I,registerPanel:P,resizePanel:U,unregisterPanel:q}=x,z=Y_(i),j=_.useRef({callbacks:{onCollapse:f,onExpand:h,onResize:m},constraints:{collapsedSize:n,collapsible:r,defaultSize:a,maxSize:u,minSize:c},id:z,idIsFromProps:i!==void 0,order:g});_.useRef({didLogMissingDefaultSizeWarning:!1}),zl(()=>{const{callbacks:W,constraints:se}=j.current,$={...se};j.current.id=z,j.current.idIsFromProps=i!==void 0,j.current.order=g,W.onCollapse=f,W.onExpand=h,W.onResize=m,se.collapsedSize=n,se.collapsible=r,se.defaultSize=a,se.maxSize=u,se.minSize=c,($.collapsedSize!==se.collapsedSize||$.collapsible!==se.collapsible||$.maxSize!==se.maxSize||$.minSize!==se.minSize)&&I(j.current,$)}),zl(()=>{const W=j.current;return P(W),()=>{q(W)}},[g,z,P,q]),_.useImperativeHandle(s,()=>({collapse:()=>{E(j.current)},expand:W=>{k(j.current,W)},getId(){return z},getSize(){return A(j.current)},isCollapsed(){return O(j.current)},isExpanded(){return!O(j.current)},resize:W=>{U(j.current,W)}}),[E,k,A,O,z,U]);const H=R(j.current,a);return _.createElement(S,{...w,children:t,className:e,id:z,style:{...H,...y},[yn.groupId]:N,[yn.panel]:"",[yn.panelCollapsible]:r||void 0,[yn.panelId]:z,[yn.panelSize]:parseFloat(""+H.flexGrow).toFixed(1)})}const zL=_.forwardRef((t,e)=>_.createElement(UL,{...t,forwardedRef:e}));UL.displayName="Panel";zL.displayName="forwardRef(Panel)";let RE=null,u0=-1,Ti=null;function Ree(t,e){if(e){const n=(e&HL)!==0,r=(e&qL)!==0,a=(e&WL)!==0,s=(e&VL)!==0;if(n)return a?"se-resize":s?"ne-resize":"e-resize";if(r)return a?"sw-resize":s?"nw-resize":"w-resize";if(a)return"s-resize";if(s)return"n-resize"}switch(t){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function Iee(){Ti!==null&&(document.head.removeChild(Ti),RE=null,Ti=null,u0=-1)}function TS(t,e){var n,r;const a=Ree(t,e);if(RE!==a){if(RE=a,Ti===null&&(Ti=document.createElement("style"),document.head.appendChild(Ti)),u0>=0){var s;(s=Ti.sheet)===null||s===void 0||s.removeRule(u0)}u0=(n=(r=Ti.sheet)===null||r===void 0?void 0:r.insertRule(`*{cursor: ${a} !important;}`))!==null&&n!==void 0?n:-1}}function jL(t){return t.type==="keydown"}function FL(t){return t.type.startsWith("pointer")}function BL(t){return t.type.startsWith("mouse")}function sv(t){if(FL(t)){if(t.isPrimary)return{x:t.clientX,y:t.clientY}}else if(BL(t))return{x:t.clientX,y:t.clientY};return{x:1/0,y:1/0}}function Oee(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function Nee(t,e,n){return t.x<e.x+e.width&&t.x+t.width>e.x&&t.y<e.y+e.height&&t.y+t.height>e.y}function Mee(t,e){if(t===e)throw new Error("Cannot compare node with itself");const n={a:f6(t),b:f6(e)};let r;for(;n.a.at(-1)===n.b.at(-1);)t=n.a.pop(),e=n.b.pop(),r=t;nt(r,"Stacking order can only be calculated for elements with a common ancestor");const a={a:d6(c6(n.a)),b:d6(c6(n.b))};if(a.a===a.b){const s=r.childNodes,i={a:n.a.at(-1),b:n.b.at(-1)};let u=s.length;for(;u--;){const c=s[u];if(c===i.a)return 1;if(c===i.b)return-1}}return Math.sign(a.a-a.b)}const Pee=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Dee(t){var e;const n=getComputedStyle((e=$L(t))!==null&&e!==void 0?e:t).display;return n==="flex"||n==="inline-flex"}function Lee(t){const e=getComputedStyle(t);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||Dee(t))||+e.opacity<1||"transform"in e&&e.transform!=="none"||"webkitTransform"in e&&e.webkitTransform!=="none"||"mixBlendMode"in e&&e.mixBlendMode!=="normal"||"filter"in e&&e.filter!=="none"||"webkitFilter"in e&&e.webkitFilter!=="none"||"isolation"in e&&e.isolation==="isolate"||Pee.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function c6(t){let e=t.length;for(;e--;){const n=t[e];if(nt(n,"Missing node"),Lee(n))return n}return null}function d6(t){return t&&Number(getComputedStyle(t).zIndex)||0}function f6(t){const e=[];for(;t;)e.push(t),t=$L(t);return e}function $L(t){const{parentNode:e}=t;return e&&e instanceof ShadowRoot?e.host:e}const HL=1,qL=2,WL=4,VL=8,Uee=Oee()==="coarse";let Xa=[],Bc=!1,Tl=new Map,ov=new Map;const Mh=new Set;function zee(t,e,n,r,a){var s;const{ownerDocument:i}=e,u={direction:n,element:e,hitAreaMargins:r,setResizeHandlerState:a},c=(s=Tl.get(i))!==null&&s!==void 0?s:0;return Tl.set(i,c+1),Mh.add(u),F0(),function(){var h;ov.delete(t),Mh.delete(u);const m=(h=Tl.get(i))!==null&&h!==void 0?h:1;if(Tl.set(i,m-1),F0(),m===1&&Tl.delete(i),Xa.includes(u)){const g=Xa.indexOf(u);g>=0&&Xa.splice(g,1),X_(),a("up",!0,null)}}}function jee(t){const{target:e}=t,{x:n,y:r}=sv(t);Bc=!0,Z_({target:e,x:n,y:r}),F0(),Xa.length>0&&(B0("down",t),t.preventDefault(),GL(e)||t.stopImmediatePropagation())}function RS(t){const{x:e,y:n}=sv(t);if(Bc&&t.buttons===0&&(Bc=!1,B0("up",t)),!Bc){const{target:r}=t;Z_({target:r,x:e,y:n})}B0("move",t),X_(),Xa.length>0&&t.preventDefault()}function IS(t){const{target:e}=t,{x:n,y:r}=sv(t);ov.clear(),Bc=!1,Xa.length>0&&(t.preventDefault(),GL(e)||t.stopImmediatePropagation()),B0("up",t),Z_({target:e,x:n,y:r}),X_(),F0()}function GL(t){let e=t;for(;e;){if(e.hasAttribute(yn.resizeHandle))return!0;e=e.parentElement}return!1}function Z_({target:t,x:e,y:n}){Xa.splice(0);let r=null;(t instanceof HTMLElement||t instanceof SVGElement)&&(r=t),Mh.forEach(a=>{const{element:s,hitAreaMargins:i}=a,u=s.getBoundingClientRect(),{bottom:c,left:f,right:h,top:m}=u,g=Uee?i.coarse:i.fine;if(e>=f-g&&e<=h+g&&n>=m-g&&n<=c+g){if(r!==null&&document.contains(r)&&s!==r&&!s.contains(r)&&!r.contains(s)&&Mee(r,s)>0){let S=r,w=!1;for(;S&&!S.contains(s);){if(Nee(S.getBoundingClientRect(),u)){w=!0;break}S=S.parentElement}if(w)return}Xa.push(a)}})}function OS(t,e){ov.set(t,e)}function X_(){let t=!1,e=!1;Xa.forEach(r=>{const{direction:a}=r;a==="horizontal"?t=!0:e=!0});let n=0;ov.forEach(r=>{n|=r}),t&&e?TS("intersection",n):t?TS("horizontal",n):e?TS("vertical",n):Iee()}let NS=new AbortController;function F0(){NS.abort(),NS=new AbortController;const t={capture:!0,signal:NS.signal};Mh.size&&(Bc?(Xa.length>0&&Tl.forEach((e,n)=>{const{body:r}=n;e>0&&(r.addEventListener("contextmenu",IS,t),r.addEventListener("pointerleave",RS,t),r.addEventListener("pointermove",RS,t))}),window.addEventListener("pointerup",IS,t),window.addEventListener("pointercancel",IS,t)):Tl.forEach((e,n)=>{const{body:r}=n;e>0&&(r.addEventListener("pointerdown",jee,t),r.addEventListener("pointermove",RS,t))}))}function B0(t,e){Mh.forEach(n=>{const{setResizeHandlerState:r}=n,a=Xa.includes(n);r(t,a,e)})}function Fee(){const[t,e]=_.useState(0);return _.useCallback(()=>e(n=>n+1),[])}function nt(t,e){if(!t)throw console.error(e),Error(e)}function Kl(t,e,n=K_){return t.toFixed(n)===e.toFixed(n)?0:t>e?1:-1}function mo(t,e,n=K_){return Kl(t,e,n)===0}function ia(t,e,n){return Kl(t,e,n)===0}function Bee(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){const a=t[r],s=e[r];if(!ia(a,s,n))return!1}return!0}function Ic({panelConstraints:t,panelIndex:e,size:n}){const r=t[e];nt(r!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:a=0,collapsible:s,maxSize:i=100,minSize:u=0}=r;if(Kl(n,u)<0)if(s){const c=(a+u)/2;Kl(n,c)<0?n=a:n=u}else n=u;return n=Math.min(i,n),n=parseFloat(n.toFixed(K_)),n}function rh({delta:t,initialLayout:e,panelConstraints:n,pivotIndices:r,prevLayout:a,trigger:s}){if(ia(t,0))return e;const i=[...e],[u,c]=r;nt(u!=null,"Invalid first pivot index"),nt(c!=null,"Invalid second pivot index");let f=0;if(s==="keyboard"){{const m=t<0?c:u,g=n[m];nt(g,`Panel constraints not found for index ${m}`);const{collapsedSize:y=0,collapsible:S,minSize:w=0}=g;if(S){const x=e[m];if(nt(x!=null,`Previous layout not found for panel index ${m}`),ia(x,y)){const E=w-x;Kl(E,Math.abs(t))>0&&(t=t<0?0-E:E)}}}{const m=t<0?u:c,g=n[m];nt(g,`No panel constraints found for index ${m}`);const{collapsedSize:y=0,collapsible:S,minSize:w=0}=g;if(S){const x=e[m];if(nt(x!=null,`Previous layout not found for panel index ${m}`),ia(x,w)){const E=x-y;Kl(E,Math.abs(t))>0&&(t=t<0?0-E:E)}}}}{const m=t<0?1:-1;let g=t<0?c:u,y=0;for(;;){const w=e[g];nt(w!=null,`Previous layout not found for panel index ${g}`);const E=Ic({panelConstraints:n,panelIndex:g,size:100})-w;if(y+=E,g+=m,g<0||g>=n.length)break}const S=Math.min(Math.abs(t),Math.abs(y));t=t<0?0-S:S}{let g=t<0?u:c;for(;g>=0&&g<n.length;){const y=Math.abs(t)-Math.abs(f),S=e[g];nt(S!=null,`Previous layout not found for panel index ${g}`);const w=S-y,x=Ic({panelConstraints:n,panelIndex:g,size:w});if(!ia(S,x)&&(f+=S-x,i[g]=x,f.toPrecision(3).localeCompare(Math.abs(t).toPrecision(3),void 0,{numeric:!0})>=0))break;t<0?g--:g++}}if(Bee(a,i))return a;{const m=t<0?c:u,g=e[m];nt(g!=null,`Previous layout not found for panel index ${m}`);const y=g+f,S=Ic({panelConstraints:n,panelIndex:m,size:y});if(i[m]=S,!ia(S,y)){let w=y-S,E=t<0?c:u;for(;E>=0&&E<n.length;){const k=i[E];nt(k!=null,`Previous layout not found for panel index ${E}`);const A=k+w,R=Ic({panelConstraints:n,panelIndex:E,size:A});if(ia(k,R)||(w-=R-k,i[E]=R),ia(w,0))break;t>0?E--:E++}}}const h=i.reduce((m,g)=>g+m,0);return ia(h,100)?i:a}function $ee({layout:t,panelsArray:e,pivotIndices:n}){let r=0,a=100,s=0,i=0;const u=n[0];nt(u!=null,"No pivot index found"),e.forEach((m,g)=>{const{constraints:y}=m,{maxSize:S=100,minSize:w=0}=y;g===u?(r=w,a=S):(s+=w,i+=S)});const c=Math.min(a,100-s),f=Math.max(r,100-i),h=t[u];return{valueMax:c,valueMin:f,valueNow:h}}function Ph(t,e=document){return Array.from(e.querySelectorAll(`[${yn.resizeHandleId}][data-panel-group-id="${t}"]`))}function KL(t,e,n=document){const a=Ph(t,n).findIndex(s=>s.getAttribute(yn.resizeHandleId)===e);return a??null}function YL(t,e,n){const r=KL(t,e,n);return r!=null?[r,r+1]:[-1,-1]}function ZL(t,e=document){var n;if(e instanceof HTMLElement&&(e==null||(n=e.dataset)===null||n===void 0?void 0:n.panelGroupId)==t)return e;const r=e.querySelector(`[data-panel-group][data-panel-group-id="${t}"]`);return r||null}function iv(t,e=document){const n=e.querySelector(`[${yn.resizeHandleId}="${t}"]`);return n||null}function Hee(t,e,n,r=document){var a,s,i,u;const c=iv(e,r),f=Ph(t,r),h=c?f.indexOf(c):-1,m=(a=(s=n[h])===null||s===void 0?void 0:s.id)!==null&&a!==void 0?a:null,g=(i=(u=n[h+1])===null||u===void 0?void 0:u.id)!==null&&i!==void 0?i:null;return[m,g]}function qee({committedValuesRef:t,eagerValuesRef:e,groupId:n,layout:r,panelDataArray:a,panelGroupElement:s,setLayout:i}){_.useRef({didWarnAboutMissingResizeHandle:!1}),zl(()=>{if(!s)return;const u=Ph(n,s);for(let c=0;c<a.length-1;c++){const{valueMax:f,valueMin:h,valueNow:m}=$ee({layout:r,panelsArray:a,pivotIndices:[c,c+1]}),g=u[c];if(g!=null){const y=a[c];nt(y,`No panel data found for index "${c}"`),g.setAttribute("aria-controls",y.id),g.setAttribute("aria-valuemax",""+Math.round(f)),g.setAttribute("aria-valuemin",""+Math.round(h)),g.setAttribute("aria-valuenow",m!=null?""+Math.round(m):"")}}return()=>{u.forEach((c,f)=>{c.removeAttribute("aria-controls"),c.removeAttribute("aria-valuemax"),c.removeAttribute("aria-valuemin"),c.removeAttribute("aria-valuenow")})}},[n,r,a,s]),_.useEffect(()=>{if(!s)return;const u=e.current;nt(u,"Eager values not found");const{panelDataArray:c}=u,f=ZL(n,s);nt(f!=null,`No group found for id "${n}"`);const h=Ph(n,s);nt(h,`No resize handles found for group id "${n}"`);const m=h.map(g=>{const y=g.getAttribute(yn.resizeHandleId);nt(y,"Resize handle element has no handle id attribute");const[S,w]=Hee(n,y,c,s);if(S==null||w==null)return()=>{};const x=E=>{if(!E.defaultPrevented)switch(E.key){case"Enter":{E.preventDefault();const k=c.findIndex(A=>A.id===S);if(k>=0){const A=c[k];nt(A,`No panel data found for index ${k}`);const R=r[k],{collapsedSize:N=0,collapsible:O,minSize:I=0}=A.constraints;if(R!=null&&O){const P=rh({delta:ia(R,N)?I-N:N-R,initialLayout:r,panelConstraints:c.map(U=>U.constraints),pivotIndices:YL(n,y,s),prevLayout:r,trigger:"keyboard"});r!==P&&i(P)}}break}}};return g.addEventListener("keydown",x),()=>{g.removeEventListener("keydown",x)}});return()=>{m.forEach(g=>g())}},[s,t,e,n,r,a,i])}function h6(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function XL(t,e){const n=t==="horizontal",{x:r,y:a}=sv(e);return n?r:a}function Wee(t,e,n,r,a){const s=n==="horizontal",i=iv(e,a);nt(i,`No resize handle element found for id "${e}"`);const u=i.getAttribute(yn.groupId);nt(u,"Resize handle element has no group id attribute");let{initialCursorPosition:c}=r;const f=XL(n,t),h=ZL(u,a);nt(h,`No group element found for id "${u}"`);const m=h.getBoundingClientRect(),g=s?m.width:m.height;return(f-c)/g*100}function Vee(t,e,n,r,a,s){if(jL(t)){const i=n==="horizontal";let u=0;t.shiftKey?u=100:a!=null?u=a:u=10;let c=0;switch(t.key){case"ArrowDown":c=i?0:u;break;case"ArrowLeft":c=i?-u:0;break;case"ArrowRight":c=i?u:0;break;case"ArrowUp":c=i?0:-u;break;case"End":c=100;break;case"Home":c=-100;break}return c}else return r==null?0:Wee(t,e,n,r,s)}function Gee({panelDataArray:t}){const e=Array(t.length),n=t.map(s=>s.constraints);let r=0,a=100;for(let s=0;s<t.length;s++){const i=n[s];nt(i,`Panel constraints not found for index ${s}`);const{defaultSize:u}=i;u!=null&&(r++,e[s]=u,a-=u)}for(let s=0;s<t.length;s++){const i=n[s];nt(i,`Panel constraints not found for index ${s}`);const{defaultSize:u}=i;if(u!=null)continue;const c=t.length-r,f=a/c;r++,e[s]=f,a-=f}return e}function oc(t,e,n){e.forEach((r,a)=>{const s=t[a];nt(s,`Panel data not found for index ${a}`);const{callbacks:i,constraints:u,id:c}=s,{collapsedSize:f=0,collapsible:h}=u,m=n[c];if(m==null||r!==m){n[c]=r;const{onCollapse:g,onExpand:y,onResize:S}=i;S&&S(r,m),h&&(g||y)&&(y&&(m==null||mo(m,f))&&!mo(r,f)&&y(),g&&(m==null||!mo(m,f))&&mo(r,f)&&g())}})}function sg(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n])return!1;return!0}function Kee({defaultSize:t,dragState:e,layout:n,panelData:r,panelIndex:a,precision:s=3}){const i=n[a];let u;return i==null?u=t!=null?t.toPrecision(s):"1":r.length===1?u="1":u=i.toPrecision(s),{flexBasis:0,flexGrow:u,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function Yee(t,e=10){let n=null;return(...a)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{t(...a)},e)}}function p6(t){try{if(typeof localStorage<"u")t.getItem=e=>localStorage.getItem(e),t.setItem=(e,n)=>{localStorage.setItem(e,n)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),t.getItem=()=>null,t.setItem=()=>{}}}function QL(t){return`react-resizable-panels:${t}`}function JL(t){return t.map(e=>{const{constraints:n,id:r,idIsFromProps:a,order:s}=e;return a?r:s?`${s}:${JSON.stringify(n)}`:JSON.stringify(n)}).sort((e,n)=>e.localeCompare(n)).join(",")}function eU(t,e){try{const n=QL(t),r=e.getItem(n);if(r){const a=JSON.parse(r);if(typeof a=="object"&&a!=null)return a}}catch{}return null}function Zee(t,e,n){var r,a;const s=(r=eU(t,n))!==null&&r!==void 0?r:{},i=JL(e);return(a=s[i])!==null&&a!==void 0?a:null}function Xee(t,e,n,r,a){var s;const i=QL(t),u=JL(e),c=(s=eU(t,a))!==null&&s!==void 0?s:{};c[u]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{a.setItem(i,JSON.stringify(c))}catch(f){console.error(f)}}function m6({layout:t,panelConstraints:e}){const n=[...t],r=n.reduce((s,i)=>s+i,0);if(n.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${n.map(s=>`${s}%`).join(", ")}`);if(!ia(r,100)&&n.length>0)for(let s=0;s<e.length;s++){const i=n[s];nt(i!=null,`No layout data found for index ${s}`);const u=100/r*i;n[s]=u}let a=0;for(let s=0;s<e.length;s++){const i=n[s];nt(i!=null,`No layout data found for index ${s}`);const u=Ic({panelConstraints:e,panelIndex:s,size:i});i!=u&&(a+=i-u,n[s]=u)}if(!ia(a,0))for(let s=0;s<e.length;s++){const i=n[s];nt(i!=null,`No layout data found for index ${s}`);const u=i+a,c=Ic({panelConstraints:e,panelIndex:s,size:u});if(i!==c&&(a-=c-i,n[s]=c,ia(a,0)))break}return n}const Qee=100,ah={getItem:t=>(p6(ah),ah.getItem(t)),setItem:(t,e)=>{p6(ah),ah.setItem(t,e)}},g6={};function tU({autoSaveId:t=null,children:e,className:n="",direction:r,forwardedRef:a,id:s=null,onLayout:i=null,keyboardResizeBy:u=null,storage:c=ah,style:f,tagName:h="div",...m}){const g=Y_(s),y=_.useRef(null),[S,w]=_.useState(null),[x,E]=_.useState([]),k=Fee(),A=_.useRef({}),R=_.useRef(new Map),N=_.useRef(0),O=_.useRef({autoSaveId:t,direction:r,dragState:S,id:g,keyboardResizeBy:u,onLayout:i,storage:c}),I=_.useRef({layout:x,panelDataArray:[],panelDataArrayChanged:!1});_.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),_.useImperativeHandle(a,()=>({getId:()=>O.current.id,getLayout:()=>{const{layout:K}=I.current;return K},setLayout:K=>{const{onLayout:X}=O.current,{layout:G,panelDataArray:ue}=I.current,oe=m6({layout:K,panelConstraints:ue.map(ce=>ce.constraints)});h6(G,oe)||(E(oe),I.current.layout=oe,X&&X(oe),oc(ue,oe,A.current))}}),[]),zl(()=>{O.current.autoSaveId=t,O.current.direction=r,O.current.dragState=S,O.current.id=g,O.current.onLayout=i,O.current.storage=c}),qee({committedValuesRef:O,eagerValuesRef:I,groupId:g,layout:x,panelDataArray:I.current.panelDataArray,setLayout:E,panelGroupElement:y.current}),_.useEffect(()=>{const{panelDataArray:K}=I.current;if(t){if(x.length===0||x.length!==K.length)return;let X=g6[t];X==null&&(X=Yee(Xee,Qee),g6[t]=X);const G=[...K],ue=new Map(R.current);X(t,G,ue,x,c)}},[t,x,c]),_.useEffect(()=>{});const P=_.useCallback(K=>{const{onLayout:X}=O.current,{layout:G,panelDataArray:ue}=I.current;if(K.constraints.collapsible){const oe=ue.map(Ce=>Ce.constraints),{collapsedSize:ce=0,panelSize:be,pivotIndices:Ge}=Cl(ue,K,G);if(nt(be!=null,`Panel size not found for panel "${K.id}"`),!mo(be,ce)){R.current.set(K.id,be);const mt=wc(ue,K)===ue.length-1?be-ce:ce-be,Ee=rh({delta:mt,initialLayout:G,panelConstraints:oe,pivotIndices:Ge,prevLayout:G,trigger:"imperative-api"});sg(G,Ee)||(E(Ee),I.current.layout=Ee,X&&X(Ee),oc(ue,Ee,A.current))}}},[]),U=_.useCallback((K,X)=>{const{onLayout:G}=O.current,{layout:ue,panelDataArray:oe}=I.current;if(K.constraints.collapsible){const ce=oe.map(Be=>Be.constraints),{collapsedSize:be=0,panelSize:Ge=0,minSize:Ce=0,pivotIndices:mt}=Cl(oe,K,ue),Ee=X??Ce;if(mo(Ge,be)){const Be=R.current.get(K.id),$e=Be!=null&&Be>=Ee?Be:Ee,gr=wc(oe,K)===oe.length-1?Ge-$e:$e-Ge,xt=rh({delta:gr,initialLayout:ue,panelConstraints:ce,pivotIndices:mt,prevLayout:ue,trigger:"imperative-api"});sg(ue,xt)||(E(xt),I.current.layout=xt,G&&G(xt),oc(oe,xt,A.current))}}},[]),q=_.useCallback(K=>{const{layout:X,panelDataArray:G}=I.current,{panelSize:ue}=Cl(G,K,X);return nt(ue!=null,`Panel size not found for panel "${K.id}"`),ue},[]),z=_.useCallback((K,X)=>{const{panelDataArray:G}=I.current,ue=wc(G,K);return Kee({defaultSize:X,dragState:S,layout:x,panelData:G,panelIndex:ue})},[S,x]),j=_.useCallback(K=>{const{layout:X,panelDataArray:G}=I.current,{collapsedSize:ue=0,collapsible:oe,panelSize:ce}=Cl(G,K,X);return nt(ce!=null,`Panel size not found for panel "${K.id}"`),oe===!0&&mo(ce,ue)},[]),H=_.useCallback(K=>{const{layout:X,panelDataArray:G}=I.current,{collapsedSize:ue=0,collapsible:oe,panelSize:ce}=Cl(G,K,X);return nt(ce!=null,`Panel size not found for panel "${K.id}"`),!oe||Kl(ce,ue)>0},[]),W=_.useCallback(K=>{const{panelDataArray:X}=I.current;X.push(K),X.sort((G,ue)=>{const oe=G.order,ce=ue.order;return oe==null&&ce==null?0:oe==null?-1:ce==null?1:oe-ce}),I.current.panelDataArrayChanged=!0,k()},[k]);zl(()=>{if(I.current.panelDataArrayChanged){I.current.panelDataArrayChanged=!1;const{autoSaveId:K,onLayout:X,storage:G}=O.current,{layout:ue,panelDataArray:oe}=I.current;let ce=null;if(K){const Ge=Zee(K,oe,G);Ge&&(R.current=new Map(Object.entries(Ge.expandToSizes)),ce=Ge.layout)}ce==null&&(ce=Gee({panelDataArray:oe}));const be=m6({layout:ce,panelConstraints:oe.map(Ge=>Ge.constraints)});h6(ue,be)||(E(be),I.current.layout=be,X&&X(be),oc(oe,be,A.current))}}),zl(()=>{const K=I.current;return()=>{K.layout=[]}},[]);const se=_.useCallback(K=>{let X=!1;const G=y.current;return G&&window.getComputedStyle(G,null).getPropertyValue("direction")==="rtl"&&(X=!0),function(oe){oe.preventDefault();const ce=y.current;if(!ce)return()=>null;const{direction:be,dragState:Ge,id:Ce,keyboardResizeBy:mt,onLayout:Ee}=O.current,{layout:Be,panelDataArray:$e}=I.current,{initialLayout:qe}=Ge??{},gr=YL(Ce,K,ce);let xt=Vee(oe,K,be,Ge,mt,ce);const Yr=be==="horizontal";Yr&&X&&(xt=-xt);const Zn=$e.map(Rr=>Rr.constraints),Tr=rh({delta:xt,initialLayout:qe??Be,panelConstraints:Zn,pivotIndices:gr,prevLayout:Be,trigger:jL(oe)?"keyboard":"mouse-or-touch"}),as=!sg(Be,Tr);(FL(oe)||BL(oe))&&N.current!=xt&&(N.current=xt,!as&&xt!==0?Yr?OS(K,xt<0?HL:qL):OS(K,xt<0?WL:VL):OS(K,0)),as&&(E(Tr),I.current.layout=Tr,Ee&&Ee(Tr),oc($e,Tr,A.current))}},[]),$=_.useCallback((K,X)=>{const{onLayout:G}=O.current,{layout:ue,panelDataArray:oe}=I.current,ce=oe.map(Be=>Be.constraints),{panelSize:be,pivotIndices:Ge}=Cl(oe,K,ue);nt(be!=null,`Panel size not found for panel "${K.id}"`);const mt=wc(oe,K)===oe.length-1?be-X:X-be,Ee=rh({delta:mt,initialLayout:ue,panelConstraints:ce,pivotIndices:Ge,prevLayout:ue,trigger:"imperative-api"});sg(ue,Ee)||(E(Ee),I.current.layout=Ee,G&&G(Ee),oc(oe,Ee,A.current))},[]),Q=_.useCallback((K,X)=>{const{layout:G,panelDataArray:ue}=I.current,{collapsedSize:oe=0,collapsible:ce}=X,{collapsedSize:be=0,collapsible:Ge,maxSize:Ce=100,minSize:mt=0}=K.constraints,{panelSize:Ee}=Cl(ue,K,G);Ee!=null&&(ce&&Ge&&mo(Ee,oe)?mo(oe,be)||$(K,be):Ee<mt?$(K,mt):Ee>Ce&&$(K,Ce))},[$]),re=_.useCallback((K,X)=>{const{direction:G}=O.current,{layout:ue}=I.current;if(!y.current)return;const oe=iv(K,y.current);nt(oe,`Drag handle element not found for id "${K}"`);const ce=XL(G,X);w({dragHandleId:K,dragHandleRect:oe.getBoundingClientRect(),initialCursorPosition:ce,initialLayout:ue})},[]),he=_.useCallback(()=>{w(null)},[]),xe=_.useCallback(K=>{const{panelDataArray:X}=I.current,G=wc(X,K);G>=0&&(X.splice(G,1),delete A.current[K.id],I.current.panelDataArrayChanged=!0,k())},[k]),D=_.useMemo(()=>({collapsePanel:P,direction:r,dragState:S,expandPanel:U,getPanelSize:q,getPanelStyle:z,groupId:g,isPanelCollapsed:j,isPanelExpanded:H,reevaluatePanelConstraints:Q,registerPanel:W,registerResizeHandle:se,resizePanel:$,startDragging:re,stopDragging:he,unregisterPanel:xe,panelGroupElement:y.current}),[P,S,r,U,q,z,g,j,H,Q,W,se,$,re,he,xe]),Z={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return _.createElement(av.Provider,{value:D},_.createElement(h,{...m,children:e,className:n,id:s,ref:y,style:{...Z,...f},[yn.group]:"",[yn.groupDirection]:r,[yn.groupId]:g}))}const nU=_.forwardRef((t,e)=>_.createElement(tU,{...t,forwardedRef:e}));tU.displayName="PanelGroup";nU.displayName="forwardRef(PanelGroup)";function wc(t,e){return t.findIndex(n=>n===e||n.id===e.id)}function Cl(t,e,n){const r=wc(t,e),s=r===t.length-1?[r-1,r]:[r,r+1],i=n[r];return{...e.constraints,panelSize:i,pivotIndices:s}}function Jee({disabled:t,handleId:e,resizeHandler:n,panelGroupElement:r}){_.useEffect(()=>{if(t||n==null||r==null)return;const a=iv(e,r);if(a==null)return;const s=i=>{if(!i.defaultPrevented)switch(i.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{i.preventDefault(),n(i);break}case"F6":{i.preventDefault();const u=a.getAttribute(yn.groupId);nt(u,`No group element found for id "${u}"`);const c=Ph(u,r),f=KL(u,e,r);nt(f!==null,`No resize element found for id "${e}"`);const h=i.shiftKey?f>0?f-1:c.length-1:f+1<c.length?f+1:0;c[h].focus();break}}};return a.addEventListener("keydown",s),()=>{a.removeEventListener("keydown",s)}},[r,t,e,n])}function rU({children:t=null,className:e="",disabled:n=!1,hitAreaMargins:r,id:a,onBlur:s,onClick:i,onDragging:u,onFocus:c,onPointerDown:f,onPointerUp:h,style:m={},tabIndex:g=0,tagName:y="div",...S}){var w,x;const E=_.useRef(null),k=_.useRef({onClick:i,onDragging:u,onPointerDown:f,onPointerUp:h});_.useEffect(()=>{k.current.onClick=i,k.current.onDragging=u,k.current.onPointerDown=f,k.current.onPointerUp=h});const A=_.useContext(av);if(A===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:R,groupId:N,registerResizeHandle:O,startDragging:I,stopDragging:P,panelGroupElement:U}=A,q=Y_(a),[z,j]=_.useState("inactive"),[H,W]=_.useState(!1),[se,$]=_.useState(null),Q=_.useRef({state:z});zl(()=>{Q.current.state=z}),_.useEffect(()=>{if(n)$(null);else{const D=O(q);$(()=>D)}},[n,q,O]);const re=(w=r?.coarse)!==null&&w!==void 0?w:15,he=(x=r?.fine)!==null&&x!==void 0?x:5;_.useEffect(()=>{if(n||se==null)return;const D=E.current;nt(D,"Element ref not attached");let Z=!1;return zee(q,D,R,{coarse:re,fine:he},(X,G,ue)=>{if(!G){j("inactive");return}switch(X){case"down":{j("drag"),Z=!1,nt(ue,'Expected event to be defined for "down" action'),I(q,ue);const{onDragging:oe,onPointerDown:ce}=k.current;oe?.(!0),ce?.();break}case"move":{const{state:oe}=Q.current;Z=!0,oe!=="drag"&&j("hover"),nt(ue,'Expected event to be defined for "move" action'),se(ue);break}case"up":{j("hover"),P();const{onClick:oe,onDragging:ce,onPointerUp:be}=k.current;ce?.(!1),be?.(),Z||oe?.();break}}})},[re,R,n,he,O,q,se,I,P]),Jee({disabled:n,handleId:q,resizeHandler:se,panelGroupElement:U});const xe={touchAction:"none",userSelect:"none"};return _.createElement(y,{...S,children:t,className:e,id:a,onBlur:()=>{W(!1),s?.()},onFocus:()=>{W(!0),c?.()},ref:E,role:"separator",style:{...xe,...m},tabIndex:g,[yn.groupDirection]:R,[yn.groupId]:N,[yn.resizeHandle]:"",[yn.resizeHandleActive]:z==="drag"?"pointer":H?"keyboard":void 0,[yn.resizeHandleEnabled]:!n,[yn.resizeHandleId]:q,[yn.resizeHandleState]:z})}rU.displayName="PanelResizeHandle";function v6({className:t,...e}){return C.jsx(nU,{className:Ue("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",t),...e})}const Lf=zL;function MS({className:t,...e}){return C.jsx(rU,{className:Ue("relative w-px shrink-0 bg-line transition-colors cursor-col-resize","after:absolute after:inset-y-0 after:left-1/2 after:w-1.5 after:-translate-x-1/2","data-[resize-handle-state=hover]:bg-line-strong","data-[resize-handle-state=drag]:bg-accent","focus-visible:outline-none focus-visible:bg-accent",t),...e})}const aU=_.createContext(null);function eRe(){return _.useContext(aU)}function tRe({nav:t,list:e,reading:n,intelligence:r,intelligenceOpen:a=!0,hasThread:s=!0,density:i="comfortable",header:u,topBar:c,overlay:f,skeleton:h,isLoading:m=!1,initialWidth:g,navOpen:y,onOpenNav:S,onCloseNav:w}){const[x,E]=Cee(g),k=xee(E??0),[A,R]=_.useState(!1),N=k.nav,O=N&&!A,I=k.reading&&!!n,P=k.intelligence,[U,q]=_.useState(!1),z=y!==void 0,j=z?y:U,H=()=>{z||q(!0),S?.()},W=()=>{z||q(!1),w?.()},se=P&&a&&s&&!!r,Q={panes:k,containerWidth:E,showNavPane:N,openNav:H,navCollapsed:A,toggleNav:()=>{if(!N){j?W():H();return}R(xe=>!xe)},showReadingPane:I,showIntelligencePane:P},re=C.jsxs(v6,{direction:"horizontal",className:"min-h-0 flex-1",children:[C.jsx(Lf,{id:"list",order:1,defaultSize:I?i==="compact"?43:33:100,minSize:22,maxSize:I?58:100,className:"min-w-0",children:e}),I&&C.jsxs(C.Fragment,{children:[C.jsx(MS,{}),C.jsx(Lf,{id:"reading",order:2,minSize:29,className:"min-w-0",children:n})]}),se&&C.jsxs(C.Fragment,{children:[C.jsx(MS,{}),C.jsx(Lf,{id:"intelligence",order:3,defaultSize:25,minSize:18,maxSize:39,className:"min-w-0",children:r})]})]}),he=C.jsxs("div",{className:"flex min-h-0 min-w-0 flex-1 flex-col",children:[!N&&u&&C.jsx("div",{className:"shrink-0",children:u}),re]});return C.jsx(aU.Provider,{value:Q,children:C.jsx("div",{ref:x,className:"safe-area-frame @container flex h-dvh w-full flex-col overflow-hidden bg-canvas font-sans text-fg",children:m&&h?h:C.jsxs(C.Fragment,{children:[c,O?C.jsxs(v6,{direction:"horizontal",className:"min-h-0 flex-1",children:[C.jsx(Lf,{id:"nav",order:1,defaultSize:17,minSize:12,maxSize:24,className:"min-w-0",children:t}),C.jsx(MS,{}),C.jsx(Lf,{id:"content",order:2,className:"flex min-w-0 flex-col",children:he})]}):he,!N&&C.jsx(kee,{open:j,onClose:W,title:"Folders",anchor:"left",children:t}),f]})})})}const sU="inline-flex items-center justify-center gap-2 rounded-md font-medium whitespace-nowrap transition-colors outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-surface disabled:opacity-50 disabled:pointer-events-none",oU={primary:"bg-accent text-accent-fg hover:bg-accent-hover",secondary:"bg-surface text-fg border border-line hover:bg-surface-sunken hover:border-line-strong",ghost:"text-fg-muted hover:bg-surface-sunken hover:text-fg",danger:"bg-danger text-accent-fg hover:opacity-90"},iU={sm:"h-7 px-2.5 text-xs",md:"h-9 px-3.5 text-sm",touch:"h-11 w-11 text-sm"};function on({variant:t="primary",size:e="md",icon:n,className:r,children:a,...s}){return C.jsxs("button",{type:"button",className:Ue(sU,oU[t],iU[e],r),...s,children:[n,a]})}function nRe({variant:t="primary",size:e="md",icon:n,external:r,className:a,children:s,...i}){return C.jsxs("a",{className:Ue(sU,oU[t],iU[e],a),...r?{target:"_blank",rel:"noopener noreferrer"}:{},...i,children:[n,s]})}const ete={neutral:"bg-surface-sunken text-fg-muted",accent:"bg-accent-2-soft text-accent-2",positive:"bg-surface-sunken text-positive",warning:"bg-surface-sunken text-warning",danger:"bg-danger-soft text-danger"},tte={neutral:"bg-fg-subtle",accent:"bg-accent-2",positive:"bg-positive",warning:"bg-warning",danger:"bg-danger"};function IE({tone:t="neutral",dot:e,className:n,children:r,...a}){return C.jsxs("span",{className:Ue("inline-flex items-center gap-1.5 rounded-full px-2 py-0.5 text-2xs font-medium",ete[t],n),...a,children:[e&&C.jsx("span",{className:Ue("size-1.5 rounded-full",tte[t])}),r]})}const rRe={"data-list-row":""},nte="[data-list-row]";function rte(t,e,n,r="vertical"){if(n===0)return null;const a=r==="vertical"?"ArrowDown":"ArrowRight",s=r==="vertical"?"ArrowUp":"ArrowLeft";return t===a?e<0?0:Math.min(e+1,n-1):t===s?e<=0?0:e-1:t==="Home"?0:t==="End"?n-1:null}function y6(t,e){return Array.from(t.querySelectorAll(e))}function ate({containerRef:t,itemSelector:e,orientation:n="vertical",enabled:r=!0}){_.useEffect(()=>{if(!r)return;const a=t.current;if(!a)return;const s=()=>{const u=y6(a,e);if(u.length===0)return;const f=u.find(h=>h===document.activeElement)??u[0];for(const h of u)h.tabIndex=h===f?0:-1},i=u=>{const c=y6(a,e),f=c.indexOf(document.activeElement),h=rte(u.key,f,c.length,n);h===null||h===f||(u.preventDefault(),u.stopPropagation(),c[h]?.focus())};return s(),a.addEventListener("focusin",s),a.addEventListener("keydown",i),()=>{a.removeEventListener("focusin",s),a.removeEventListener("keydown",i)}})}const b6=10;function ste({section:t,Row:e,selectedThreadId:n,initialExpanded:r=!1,initialCollapsed:a=!1,onSelectThread:s}){const[i,u]=_.useState(r),[c,f]=_.useState(a),h=t.threads.length>b6,g=!i&&h?t.threads.slice(0,b6):t.threads,y=t.threads.length-g.length;return C.jsxs("div",{children:[t.label&&C.jsxs("button",{type:"button","aria-expanded":!c,onClick:()=>f(S=>!S),className:"sticky top-0 z-10 flex h-section-row w-full items-center gap-1.5 border-b border-line bg-surface-sunken px-row-inset text-left outline-none transition-colors hover:bg-surface focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset",children:[C.jsx("span",{className:"flex-1 text-2xs font-semibold uppercase tracking-wider text-fg-subtle",children:t.label}),C.jsx("span",{className:"text-2xs text-fg-subtle tabular-nums",children:t.threads.length}),C.jsx(kE,{className:Ue("size-3 shrink-0 text-fg-subtle transition-transform duration-200",c?"rotate-0":"rotate-180")})]}),!c&&C.jsxs(C.Fragment,{children:[C.jsx("div",{className:"divide-y divide-line",children:g.map(S=>C.jsx(e,{thread:S,active:S.id===n,onClick:()=>s?.(S.id)},S.id))}),h&&C.jsxs("button",{type:"button",onClick:()=>u(S=>!S),className:"flex w-full items-center justify-center border-b border-line px-row-inset py-1.5 text-2xs font-medium text-accent outline-none transition-colors hover:bg-surface focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset",children:[i?"Show less":`Show ${y} more`,!i&&C.jsx(kE,{className:"ml-1 size-3"})]})]})]})}function ote(t){return t.target!==t.currentTarget?!1:t.key==="Enter"||t.key===" "}function lU({className:t}){return C.jsx("svg",{viewBox:"0 0 12 12",className:t,fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",children:C.jsx("path",{d:"M2 4l4 4 4-4"})})}function S6({className:t}){return C.jsx("svg",{viewBox:"0 0 12 12",className:t,fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":"true",children:C.jsx("path",{d:"M3 3l6 6M9 3l-6 6"})})}const lv=_.createContext(null);function aRe({children:t,hasSheet:e,open:n,onOpenChange:r}){const[a,s]=_.useState(!1),[i,u]=_.useState(!1),c=n??a,f=_.useCallback(m=>{n===void 0&&s(m),r?.(m)},[n,r]),h=_.useMemo(()=>({open:c,setOpen:f,active:i,setActive:u,hasSheet:e}),[c,f,i,e]);return C.jsx(lv.Provider,{value:h,children:t})}function sRe({children:t}){return C.jsx(lv.Provider,{value:null,children:t})}function oRe(){const t=_.useContext(lv);if(!t?.hasSheet)return null;const{open:e,active:n,setOpen:r}=t;return C.jsx("button",{type:"button",onClick:()=>r(!e),"aria-expanded":e,"aria-label":e?"Collapse filters":"Expand filters",title:"Filters",className:Ue("flex size-6 shrink-0 items-center justify-center rounded transition-colors hover:bg-surface-sunken",n?"text-accent-2":"text-fg-subtle hover:text-fg-muted"),children:C.jsx(lU,{className:Ue("size-3 transition-transform duration-200",e?"rotate-180":"rotate-0")})})}function ite({categories:t,filters:e,sources:n,sourcesNote:r,selectedCategory:a,activeFilters:s,expanded:i,onSelectCategory:u,onSelectSource:c,onToggleFilter:f,onClear:h,onExpandedChange:m,hideChrome:g=!1,children:y}){const S=_.useContext(lv),w=i!==void 0,[x,E]=_.useState(!1),k=S?.open??(w?i:x),A=_.useCallback(re=>{w||E(re),S?.setOpen(re),m?.(re)},[w,m,S]),R=t[0],N=R!==void 0&&a===R.id,O=n?.[0],I=n?.find(re=>re.active),P=O===void 0||I?.id===O.id,U=!N||s.size>0||!P&&!!I,q=S?.setActive;_.useEffect(()=>{if(q)return q(U),()=>q(!1)},[U,q]);const z=_.useCallback(()=>{O&&c?.(O.id)},[O,c]),j=_.useCallback(()=>{h(),z()},[h,z]),H=t.find(re=>re.id===a),W=U?C.jsxs(C.Fragment,{children:[!P&&I&&C.jsx("span",{className:"inline-flex items-center rounded-full border border-accent-2 bg-accent-2-soft px-2 py-0.5 text-2xs font-medium text-accent-2",children:I.label}),!N&&H&&C.jsx(IE,{tone:H.tone??"neutral",children:H.label}),e.filter(re=>s.has(re.id)).map(re=>C.jsx("span",{className:"inline-flex items-center rounded-full border border-accent-2 bg-accent-2-soft px-2 py-0.5 text-2xs font-medium text-accent-2",children:re.label},re.id))]}):C.jsx("span",{className:"text-2xs text-fg-subtle",children:"Filters"}),se=n&&n.length>1&&C.jsxs("fieldset",{"aria-label":"Accounts",className:"min-w-0 flex flex-wrap items-center gap-1.5 border-b border-line px-row-inset pb-2 pt-2",children:[n.map(re=>C.jsxs("button",{type:"button","aria-pressed":!!re.active,onClick:()=>c?.(re.id),className:Ue("flex items-center gap-1 rounded-full border px-2.5 py-0.5 text-2xs transition-colors",re.active?"border-accent-2 bg-accent-2-soft font-medium text-accent-2":"border-line text-fg-muted hover:border-line-strong"),children:[re.label,re.count!=null&&re.count>0&&C.jsx("span",{className:"tabular-nums opacity-70",children:re.count})]},re.id)),r&&C.jsx("span",{className:"ml-auto shrink-0 text-2xs text-fg-subtle",children:r})]}),$=C.jsx("fieldset",{"aria-label":"Categories",className:"min-w-0 flex flex-wrap items-center gap-1.5 border-b border-line px-row-inset pb-1.5 pt-1.5",children:t.map(re=>{const he=a===re.id;return C.jsx("button",{type:"button","aria-pressed":he,onClick:()=>u(re.id),className:Ue("shrink-0 rounded-full transition-opacity",he?"opacity-100 ring-1 ring-accent-2":"opacity-60 hover:opacity-100"),children:C.jsx(IE,{tone:re.tone??"neutral",children:re.label})},re.id)})}),Q=C.jsxs("fieldset",{"aria-label":"Attributes",className:"min-w-0 flex flex-wrap items-center gap-1.5 border-b border-line px-row-inset pb-2 pt-1.5",children:[e.map(re=>{const he=s.has(re.id);return C.jsx("button",{type:"button","aria-pressed":he,onClick:()=>f(re.id),className:Ue("shrink-0 rounded-full border px-2.5 py-0.5 text-2xs transition-colors",he?"border-accent-2 bg-accent-2-soft font-medium text-accent-2":"border-line text-fg-muted hover:border-line-strong"),children:re.label},re.id)}),U&&C.jsxs("button",{type:"button",onClick:j,className:"ml-auto flex items-center gap-1 px-1 text-2xs text-fg-subtle hover:text-fg-muted",children:[C.jsx(S6,{className:"size-3"}),"Clear"]})]});return C.jsxs("div",{className:"flex h-full w-full flex-col overflow-hidden",children:[!g&&!S&&C.jsxs("div",{role:"button",tabIndex:0,"aria-expanded":k,"aria-label":k?"Collapse filters":"Expand filters",onClick:()=>A(!k),onKeyDown:re=>{ote(re)&&(re.preventDefault(),A(!k))},className:"flex h-section-row w-full shrink-0 cursor-pointer items-center gap-1.5 overflow-x-hidden border-b border-line bg-surface-sunken px-row-inset text-left hover:bg-surface",children:[W,U&&C.jsx("button",{type:"button","aria-label":"Clear filters",onClick:re=>{re.stopPropagation(),j()},className:"flex size-6 items-center justify-center text-fg-subtle hover:text-fg-muted",children:C.jsx(S6,{className:"size-3"})}),C.jsx(lU,{className:Ue("ml-auto size-3 shrink-0 text-fg-subtle transition-transform duration-200",k?"rotate-180":"rotate-0")})]}),k&&!g&&C.jsxs("div",{className:"shrink-0",children:[se,$,Q]}),C.jsx("div",{className:"flex-1 overflow-y-auto",children:y})]})}function lte(t){return t.sentDate!=null?new Date(t.sentDate).toDateString()===new Date().toDateString():/^\d{1,2}:\d{2}$/.test(t.timeLabel)}const uU=[{id:"unread",label:"Unread",match:t=>!t.isRead},{id:"attachment",label:"Has attachment",match:t=>!!t.hasAttachment},{id:"contacts",label:"From contacts",match:t=>t.trust==="vip"||t.trust==="wellknown"},{id:"today",label:"Today",match:lte}],ute=uU.map(({id:t,label:e})=>({id:t,label:e}));function cte(t,e){return uU.every(n=>!e.has(n.id)||n.match(t))}function iRe({sections:t,briefCategory:e="all",selectedThreadId:n,Row:r,onSelectThread:a,onSelectBriefCategory:s,sources:i,sourcesNote:u,onSelectSource:c,activeFilters:f,onToggleFilter:h,onClearFilters:m,hideChrome:g,defaultExpanded:y=!1}){const[S,w]=_.useState(new Set),[x,E]=_.useState(y),k=_.useRef(null);ate({containerRef:k,itemSelector:nte});const A=f??S,R=W=>{if(h){h(W);return}w(se=>{const $=new Set(se);return $.has(W)?$.delete(W):$.add(W),$})},N=W=>(e==="all"||W.category===e)&&cte(W,A),O=e==="all",I=t.map(W=>({...W,threads:W.threads.filter(N)})).filter(W=>W.threads.length>0),P=t.flatMap(W=>W.threads).filter(N),U=Eee.map(W=>({id:W.id,label:W.label,tone:W.id==="all"?"neutral":_ee[W.id]})),q=ute,z=()=>{if(s?.("all"),m){m();return}w(new Set)},j=O?I.length===0:P.length===0,H=C.jsxs("div",{ref:k,children:[O?I.map(W=>C.jsx(ste,{section:W,Row:r,selectedThreadId:n,onSelectThread:a},W.id)):C.jsx("div",{className:"divide-y divide-line",children:P.map(W=>C.jsx(r,{thread:W,active:W.id===n,onClick:()=>a?.(W.id)},W.id))}),j&&C.jsx("div",{className:"px-row-inset py-6 text-center text-2xs text-fg-subtle",children:"No threads match these filters."})]});return C.jsx(ite,{categories:U,filters:q,sources:i,sourcesNote:u,selectedCategory:e,activeFilters:A,expanded:x,onExpandedChange:E,onSelectCategory:W=>s?.(W),onSelectSource:c,onToggleFilter:W=>R(W),onClear:z,hideChrome:g,children:H})}const OE={Default:"bg-fg-subtle",Red:"bg-red-500",Orange:"bg-orange-500",Yellow:"bg-yellow-500",Green:"bg-green-500",Teal:"bg-teal-500",Blue:"bg-blue-500",Purple:"bg-purple-500",Gray:"bg-gray-500"},lRe=["Default","Red","Orange","Yellow","Green","Teal","Blue","Purple","Gray"],dte=t=>Object.hasOwn(OE,t);function fte({label:t,onRemove:e,className:n}){const r=dte(t.color)?OE[t.color]:OE.Default;return C.jsxs("span",{className:Ue("inline-flex items-center gap-1 rounded-full bg-surface-sunken px-2 py-0.5 text-2xs font-medium text-fg-muted shrink-0",n),children:[C.jsx("span",{className:Ue("size-1.5 shrink-0 rounded-full",r)}),C.jsx("span",{className:"truncate",children:t.name}),e&&C.jsx("button",{type:"button",onClick:()=>e(t.labelId),"aria-label":`Remove label ${t.name}`,className:"ml-0.5 rounded-full text-fg-subtle hover:text-fg",children:"×"})]})}function w6(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function hte(t){if(Array.isArray(t))return t}function pte(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,a,s,i,u=[],c=!0,f=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(c=(r=s.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(h){f=!0,a=h}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(f)throw a}}return u}}function mte(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
13
13
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gte(t,e){return hte(t)||pte(t,e)||vte(t,e)||mte()}function vte(t,e){if(t){if(typeof t=="string")return w6(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w6(t,e):void 0}}const cU=Object.entries,x6=Object.setPrototypeOf,yte=Object.isFrozen,bte=Object.getPrototypeOf,Ste=Object.getOwnPropertyDescriptor;let sr=Object.freeze,ir=Object.seal,xc=Object.create,dU=typeof Reflect<"u"&&Reflect,NE=dU.apply,ME=dU.construct;sr||(sr=function(e){return e});ir||(ir=function(e){return e});NE||(NE=function(e,n){for(var r=arguments.length,a=new Array(r>2?r-2:0),s=2;s<r;s++)a[s-2]=arguments[s];return e.apply(n,a)});ME||(ME=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return new e(...r)});const ic=Rn(Array.prototype.forEach),wte=Rn(Array.prototype.lastIndexOf),C6=Rn(Array.prototype.pop),lc=Rn(Array.prototype.push),xte=Rn(Array.prototype.splice),Ri=Array.isArray,sh=Rn(String.prototype.toLowerCase),PS=Rn(String.prototype.toString),E6=Rn(String.prototype.match),Uf=Rn(String.prototype.replace),_6=Rn(String.prototype.indexOf),Cte=Rn(String.prototype.trim),Ete=Rn(Number.prototype.toString),_te=Rn(Boolean.prototype.toString),k6=typeof BigInt>"u"?null:Rn(BigInt.prototype.toString),A6=typeof Symbol>"u"?null:Rn(Symbol.prototype.toString),qn=Rn(Object.prototype.hasOwnProperty),zf=Rn(Object.prototype.toString),$n=Rn(RegExp.prototype.test),El=kte(TypeError);function Rn(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return NE(t,e,r)}}function kte(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return ME(t,n)}}function vt(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:sh;if(x6&&x6(t,null),!Ri(e))return t;let r=e.length;for(;r--;){let a=e[r];if(typeof a=="string"){const s=n(a);s!==a&&(yte(e)||(e[r]=s),a=s)}t[a]=!0}return t}function Ate(t){for(let e=0;e<t.length;e++)qn(t,e)||(t[e]=null);return t}function wr(t){const e=xc(null);for(const r of cU(t)){var n=gte(r,2);const a=n[0],s=n[1];qn(t,a)&&(Ri(s)?e[a]=Ate(s):s&&typeof s=="object"&&s.constructor===Object?e[a]=wr(s):e[a]=s)}return e}function Tte(t){switch(typeof t){case"string":return t;case"number":return Ete(t);case"boolean":return _te(t);case"bigint":return k6?k6(t):"0";case"symbol":return A6?A6(t):"Symbol()";case"undefined":return zf(t);case"function":case"object":{if(t===null)return zf(t);const e=t,n=bs(e,"toString");if(typeof n=="function"){const r=n(e);return typeof r=="string"?r:zf(r)}return zf(t)}default:return zf(t)}}function bs(t,e){for(;t!==null;){const r=Ste(t,e);if(r){if(r.get)return Rn(r.get);if(typeof r.value=="function")return Rn(r.value)}t=bte(t)}function n(){return null}return n}function Rte(t){try{return $n(t,""),!0}catch{return!1}}const T6=sr(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),DS=sr(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),LS=sr(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Ite=sr(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),US=sr(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Ote=sr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),R6=sr(["#text"]),I6=sr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),zS=sr(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),O6=sr(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),og=sr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Nte=ir(/{{[\w\W]*|^[\w\W]*}}/g),Mte=ir(/<%[\w\W]*|^[\w\W]*%>/g),Pte=ir(/\${[\w\W]*/g),Dte=ir(/^data-[\-\w.\u00B7-\uFFFF]+$/),Lte=ir(/^aria-[\-\w]+$/),N6=ir(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ute=ir(/^(?:\w+script|data):/i),zte=ir(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),jte=ir(/^html$/i),Fte=ir(/^[a-z][.\w]*(-[.\w]+)+$/i),M6=ir(/<[/\w!]/g),P6=ir(/<[/\w]/g),Bte=ir(/<\/no(script|embed|frames)/i),$te=ir(/\/>/i),sa={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Hte=function(){return typeof window>"u"?null:window},qte=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const a="data-tt-policy-suffix";n&&n.hasAttribute(a)&&(r=n.getAttribute(a));const s="dompurify"+(r?"#"+r:"");try{return e.createPolicy(s,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},D6=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},bi=function(e,n,r,a){return qn(e,n)&&Ri(e[n])?vt(a.base?wr(a.base):{},e[n],a.transform):r};function fU(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Hte();const e=me=>fU(me);if(e.version="3.4.12",e.removed=[],!t||!t.document||t.document.nodeType!==sa.document||!t.Element)return e.isSupported=!1,e;let n=t.document;const r=n,a=r.currentScript;t.DocumentFragment;const s=t.HTMLTemplateElement,i=t.Node,u=t.Element,c=t.NodeFilter,f=t.NamedNodeMap;f===void 0&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const h=t.DOMParser,m=t.trustedTypes,g=u.prototype,y=bs(g,"cloneNode"),S=bs(g,"remove"),w=bs(g,"nextSibling"),x=bs(g,"childNodes"),E=bs(g,"parentNode"),k=bs(g,"shadowRoot"),A=bs(g,"attributes"),R=i&&i.prototype?bs(i.prototype,"nodeType"):null,N=i&&i.prototype?bs(i.prototype,"nodeName"):null;if(typeof s=="function"){const me=n.createElement("template");me.content&&me.content.ownerDocument&&(n=me.content.ownerDocument)}let O,I="",P,U=!1,q=0;const z=function(){if(q>0)throw El('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},j=function(L){z(),q++;try{return O.createHTML(L)}finally{q--}},H=function(L){z(),q++;try{return O.createScriptURL(L)}finally{q--}},W=function(){return U||(P=qte(m,a),U=!0),P},se=n,$=se.implementation,Q=se.createNodeIterator,re=se.createDocumentFragment,he=se.getElementsByTagName,xe=r.importNode;let D=D6();e.isSupported=typeof cU=="function"&&typeof E=="function"&&$&&$.createHTMLDocument!==void 0;const Z=Nte,K=Mte,X=Pte,G=Dte,ue=Lte,oe=Ute,ce=zte,be=Fte;let Ge=N6,Ce=null;const mt=vt({},[...T6,...DS,...LS,...US,...R6]);let Ee=null;const Be=vt({},[...I6,...zS,...O6,...og]);let $e=Object.seal(xc(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),qe=null,gr=null;const xt=Object.seal(xc(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Yr=!0,Zn=!0,Tr=!1,as=!0,Rr=!1,Kt=!0,gt=!1,bn=!1,Ir=null,ss=null,Rd=!1,Fs=!1,xu=!1,Cu=!1,jo=!0,cr=!1;const Da="user-content-";let Xn=!0,Id=!1,Fo={},ma=null;const Bo=vt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let el=null;const tl=vt({},["audio","video","img","source","image","track"]);let La=null;const nl=vt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),os="http://www.w3.org/1998/Math/MathML",Eu="http://www.w3.org/2000/svg",Zr="http://www.w3.org/1999/xhtml";let is=Zr,Bs=!1,Od=null;const Pp=vt({},[os,Eu,Zr],PS),Nd=sr(["mi","mo","mn","ms","mtext"]);let _u=vt({},Nd);const ku=sr(["annotation-xml"]);let rl=vt({},ku);const Dp=vt({},["title","style","font","a","script"]);let $o=null;const ls=["application/xhtml+xml","text/html"],On="text/html";let rt=null,Xr=null;const Md=n.createElement("form"),Lp=function(L){return L instanceof RegExp||L instanceof Function},Pd=function(){let L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Xr&&Xr===L)return;(!L||typeof L!="object")&&(L={}),L=wr(L),$o=ls.indexOf(L.PARSER_MEDIA_TYPE)===-1?On:L.PARSER_MEDIA_TYPE,rt=$o==="application/xhtml+xml"?PS:sh,Ce=bi(L,"ALLOWED_TAGS",mt,{transform:rt}),Ee=bi(L,"ALLOWED_ATTR",Be,{transform:rt}),Od=bi(L,"ALLOWED_NAMESPACES",Pp,{transform:PS}),La=bi(L,"ADD_URI_SAFE_ATTR",nl,{transform:rt,base:nl}),el=bi(L,"ADD_DATA_URI_TAGS",tl,{transform:rt,base:tl}),ma=bi(L,"FORBID_CONTENTS",Bo,{transform:rt}),qe=bi(L,"FORBID_TAGS",wr({}),{transform:rt}),gr=bi(L,"FORBID_ATTR",wr({}),{transform:rt}),Fo=qn(L,"USE_PROFILES")?L.USE_PROFILES&&typeof L.USE_PROFILES=="object"?wr(L.USE_PROFILES):L.USE_PROFILES:!1,Yr=L.ALLOW_ARIA_ATTR!==!1,Zn=L.ALLOW_DATA_ATTR!==!1,Tr=L.ALLOW_UNKNOWN_PROTOCOLS||!1,as=L.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Rr=L.SAFE_FOR_TEMPLATES||!1,Kt=L.SAFE_FOR_XML!==!1,gt=L.WHOLE_DOCUMENT||!1,Fs=L.RETURN_DOM||!1,xu=L.RETURN_DOM_FRAGMENT||!1,Cu=L.RETURN_TRUSTED_TYPE||!1,Rd=L.FORCE_BODY||!1,jo=L.SANITIZE_DOM!==!1,cr=L.SANITIZE_NAMED_PROPS||!1,Xn=L.KEEP_CONTENT!==!1,Id=L.IN_PLACE||!1,Ge=Rte(L.ALLOWED_URI_REGEXP)?L.ALLOWED_URI_REGEXP:N6,is=typeof L.NAMESPACE=="string"?L.NAMESPACE:Zr,_u=qn(L,"MATHML_TEXT_INTEGRATION_POINTS")&&L.MATHML_TEXT_INTEGRATION_POINTS&&typeof L.MATHML_TEXT_INTEGRATION_POINTS=="object"?wr(L.MATHML_TEXT_INTEGRATION_POINTS):vt({},Nd),rl=qn(L,"HTML_INTEGRATION_POINTS")&&L.HTML_INTEGRATION_POINTS&&typeof L.HTML_INTEGRATION_POINTS=="object"?wr(L.HTML_INTEGRATION_POINTS):vt({},ku);const J=qn(L,"CUSTOM_ELEMENT_HANDLING")&&L.CUSTOM_ELEMENT_HANDLING&&typeof L.CUSTOM_ELEMENT_HANDLING=="object"?wr(L.CUSTOM_ELEMENT_HANDLING):xc(null);if($e=xc(null),qn(J,"tagNameCheck")&&Lp(J.tagNameCheck)&&($e.tagNameCheck=J.tagNameCheck),qn(J,"attributeNameCheck")&&Lp(J.attributeNameCheck)&&($e.attributeNameCheck=J.attributeNameCheck),qn(J,"allowCustomizedBuiltInElements")&&typeof J.allowCustomizedBuiltInElements=="boolean"&&($e.allowCustomizedBuiltInElements=J.allowCustomizedBuiltInElements),ir($e),Rr&&(Zn=!1),xu&&(Fs=!0),Fo&&(Ce=vt({},R6),Ee=xc(null),Fo.html===!0&&(vt(Ce,T6),vt(Ee,I6)),Fo.svg===!0&&(vt(Ce,DS),vt(Ee,zS),vt(Ee,og)),Fo.svgFilters===!0&&(vt(Ce,LS),vt(Ee,zS),vt(Ee,og)),Fo.mathMl===!0&&(vt(Ce,US),vt(Ee,O6),vt(Ee,og))),xt.tagCheck=null,xt.attributeCheck=null,qn(L,"ADD_TAGS")&&(typeof L.ADD_TAGS=="function"?xt.tagCheck=L.ADD_TAGS:Ri(L.ADD_TAGS)&&(Ce===mt&&(Ce=wr(Ce)),vt(Ce,L.ADD_TAGS,rt))),qn(L,"ADD_ATTR")&&(typeof L.ADD_ATTR=="function"?xt.attributeCheck=L.ADD_ATTR:Ri(L.ADD_ATTR)&&(Ee===Be&&(Ee=wr(Ee)),vt(Ee,L.ADD_ATTR,rt))),qn(L,"ADD_URI_SAFE_ATTR")&&Ri(L.ADD_URI_SAFE_ATTR)&&vt(La,L.ADD_URI_SAFE_ATTR,rt),qn(L,"FORBID_CONTENTS")&&Ri(L.FORBID_CONTENTS)&&(ma===Bo&&(ma=wr(ma)),vt(ma,L.FORBID_CONTENTS,rt)),qn(L,"ADD_FORBID_CONTENTS")&&Ri(L.ADD_FORBID_CONTENTS)&&(ma===Bo&&(ma=wr(ma)),vt(ma,L.ADD_FORBID_CONTENTS,rt)),Xn&&(Ce["#text"]=!0),gt&&vt(Ce,["html","head","body"]),Ce.table&&(vt(Ce,["tbody"]),delete qe.tbody),L.TRUSTED_TYPES_POLICY){if(typeof L.TRUSTED_TYPES_POLICY.createHTML!="function")throw El('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof L.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw El('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const pe=O;O=L.TRUSTED_TYPES_POLICY;try{I=j("")}catch(Ae){throw O=pe,Ae}}else L.TRUSTED_TYPES_POLICY===null?(O=void 0,I=""):(O===void 0&&(O=W()),O&&typeof I=="string"&&(I=j("")));sr&&sr(L),Xr=L},Dd=vt({},[...DS,...LS,...Ite]),Ho=vt({},[...US,...Ote]),Ld=function(L,J,pe){return J.namespaceURI===Zr?L==="svg":J.namespaceURI===os?L==="svg"&&(pe==="annotation-xml"||_u[pe]):!!Dd[L]},qo=function(L,J,pe){return J.namespaceURI===Zr?L==="math":J.namespaceURI===Eu?L==="math"&&rl[pe]:!!Ho[L]},Wo=function(L,J,pe){return J.namespaceURI===Eu&&!rl[pe]||J.namespaceURI===os&&!_u[pe]?!1:!Ho[L]&&(Dp[L]||!Dd[L])},al=function(L){let J=E(L);(!J||!J.tagName)&&(J={namespaceURI:is,tagName:"template"});const pe=sh(L.tagName),Ae=sh(J.tagName);return Od[L.namespaceURI]?L.namespaceURI===Eu?Ld(pe,J,Ae):L.namespaceURI===os?qo(pe,J,Ae):L.namespaceURI===Zr?Wo(pe,J,Ae):!!($o==="application/xhtml+xml"&&Od[L.namespaceURI]):!1},vr=function(L){lc(e.removed,{element:L});try{E(L).removeChild(L)}catch{if(S(L),!E(L))throw El("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},cn=function(L){Ua(L);const J=x(L);if(J){const Ae=[];ic(J,De=>{lc(Ae,De)}),ic(Ae,De=>{try{S(De)}catch{}})}const pe=A(L);if(pe)for(let Ae=pe.length-1;Ae>=0;--Ae){const De=pe[Ae],je=De&&De.name;if(typeof je=="string")try{L.removeAttribute(je)}catch{}}},us=function(L,J){try{lc(e.removed,{attribute:J.getAttributeNode(L),from:J})}catch{lc(e.removed,{attribute:null,from:J})}if(J.removeAttribute(L),L==="is")if(Fs||xu)try{vr(J)}catch{}else try{J.setAttribute(L,"")}catch{}},Up=function(L){const J=A(L);if(J)for(let pe=J.length-1;pe>=0;--pe){const Ae=J[pe],De=Ae&&Ae.name;if(!(typeof De!="string"||Ee[rt(De)]))try{L.removeAttribute(De)}catch{}}},Ua=function(L){const J=[L];for(;J.length>0;){const pe=J.pop();(R?R(pe):pe.nodeType)===sa.element&&Up(pe);const De=x(pe);if(De)for(let je=De.length-1;je>=0;--je)J.push(De[je])}},Vo=function(L){if(!Kt)return;const J=[L];for(;J.length>0;){const pe=J.pop(),Ae=R?R(pe):pe.nodeType;if(Ae===sa.processingInstruction||Ae===sa.comment&&$n(P6,pe.data)){try{S(pe)}catch{}continue}if(Ae===sa.element){const je=pe,nn=rt(N?N(pe):pe.nodeName);try{je.hasAttribute&&je.hasAttribute("patchsrc")&&je.removeAttribute("patchsrc"),je.hasAttribute&&je.hasAttribute("for")&&nn!=="label"&&nn!=="output"&&je.removeAttribute("for")}catch{}}const De=x(pe);if(De)for(let je=De.length-1;je>=0;--je)J.push(De[je])}},zp=function(L){let J=null,pe=null;if(Rd)L="<remove></remove>"+L;else{const je=E6(L,/^[\r\n\t ]+/);pe=je&&je[0]}$o==="application/xhtml+xml"&&is===Zr&&(L='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+L+"</body></html>");const Ae=O?j(L):L;if(is===Zr)try{J=new h().parseFromString(Ae,$o)}catch{}if(!J||!J.documentElement){J=$.createDocument(is,"template",null);try{J.documentElement.innerHTML=Bs?I:Ae}catch{}}const De=J.body||J.documentElement;return L&&pe&&De.insertBefore(n.createTextNode(pe),De.childNodes[0]||null),is===Zr?he.call(J,gt?"html":"body")[0]:gt?J.documentElement:De},Ud=function(L){return Q.call(L.ownerDocument||L,L,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},sl=function(L){return L=Uf(L,Z," "),L=Uf(L,K," "),L=Uf(L,X," "),L},zd=function(L){var J;L.normalize();const pe=Q.call(L.ownerDocument||L,L,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let Ae=pe.nextNode();for(;Ae;)Ae.data=sl(Ae.data),Ae=pe.nextNode();const De=(J=L.querySelectorAll)===null||J===void 0?void 0:J.call(L,"template");De&&ic(De,je=>{za(je.content)&&zd(je.content)})},$s=function(L){const J=N?N(L):null;return typeof J!="string"||rt(J)!=="form"?!1:typeof L.nodeName!="string"||typeof L.textContent!="string"||typeof L.removeChild!="function"||L.attributes!==A(L)||typeof L.removeAttribute!="function"||typeof L.setAttribute!="function"||typeof L.namespaceURI!="string"||typeof L.insertBefore!="function"||typeof L.hasChildNodes!="function"||L.nodeType!==R(L)||L.childNodes!==x(L)},za=function(L){if(!R||typeof L!="object"||L===null)return!1;try{return R(L)===sa.documentFragment}catch{return!1}},yr=function(L){if(!R||typeof L!="object"||L===null)return!1;try{return typeof R(L)=="number"}catch{return!1}};function dn(me,L,J){me.length!==0&&ic(me,pe=>{pe.call(e,L,J,Xr)})}const jp=function(L,J){return!!(Kt&&L.hasChildNodes()&&!yr(L.firstElementChild)&&$n(M6,L.textContent)&&$n(M6,L.innerHTML)||Kt&&L.namespaceURI===Zr&&J==="style"&&yr(L.firstElementChild)||L.nodeType===sa.processingInstruction||Kt&&L.nodeType===sa.comment&&$n(P6,L.data))},uy=function(L,J){if(!qe[J]&&Fp(J)&&($e.tagNameCheck instanceof RegExp&&$n($e.tagNameCheck,J)||$e.tagNameCheck instanceof Function&&$e.tagNameCheck(J)))return!1;if(Xn&&!ma[J]){const pe=E(L),Ae=x(L);if(Ae&&pe){const De=Ae.length;for(let je=De-1;je>=0;--je){const nn=Id?Ae[je]:y(Ae[je],!0);pe.insertBefore(nn,w(L))}}}return vr(L),!0},Au=function(L,J){if(dn(D.beforeSanitizeElements,L,null),L!==J&&E(L)===null)return!0;if($s(L))return vr(L),!0;const pe=rt(N?N(L):L.nodeName);if(dn(D.uponSanitizeElement,L,{tagName:pe,allowedTags:Ce}),L!==J&&E(L)===null)return!0;if(jp(L,pe))return vr(L),!0;if(qe[pe]||!(xt.tagCheck instanceof Function&&xt.tagCheck(pe))&&!Ce[pe]){const De=uy(L,pe);return De===!1&&dn(D.afterSanitizeElements,L,null),De}if((R?R(L):L.nodeType)===sa.element&&!al(L)||(pe==="noscript"||pe==="noembed"||pe==="noframes")&&$n(Bte,L.innerHTML))return vr(L),!0;if(Rr&&L.nodeType===sa.text){const De=sl(L.textContent);L.textContent!==De&&(lc(e.removed,{element:L.cloneNode()}),L.textContent=De)}return dn(D.afterSanitizeElements,L,null),!1},jd=function(L,J,pe){if(gr[J]||Kt&&J==="patchsrc"||Kt&&J==="for"&&L!=="label"&&L!=="output"||jo&&(J==="id"||J==="name")&&(pe in n||pe in Md))return!1;const Ae=Ee[J]||xt.attributeCheck instanceof Function&&xt.attributeCheck(J,L);if(!(Zn&&$n(G,J))){if(!(Yr&&$n(ue,J))){if(Ae){if(!La[J]){if(!$n(Ge,Uf(pe,ce,""))){if(!((J==="src"||J==="xlink:href"||J==="href")&&L!=="script"&&_6(pe,"data:")===0&&el[L])){if(!(Tr&&!$n(oe,Uf(pe,ce,"")))){if(pe)return!1}}}}}else if(!(Fp(L)&&($e.tagNameCheck instanceof RegExp&&$n($e.tagNameCheck,L)||$e.tagNameCheck instanceof Function&&$e.tagNameCheck(L))&&($e.attributeNameCheck instanceof RegExp&&$n($e.attributeNameCheck,J)||$e.attributeNameCheck instanceof Function&&$e.attributeNameCheck(J,L))||J==="is"&&$e.allowCustomizedBuiltInElements&&($e.tagNameCheck instanceof RegExp&&$n($e.tagNameCheck,pe)||$e.tagNameCheck instanceof Function&&$e.tagNameCheck(pe))))return!1}}return!0},Tu=vt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Fp=function(L){return!Tu[sh(L)]&&$n(be,L)},Or=function(L,J,pe,Ae){if(O&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!pe)switch(m.getAttributeType(L,J)){case"TrustedHTML":return j(Ae);case"TrustedScriptURL":return H(Ae)}return Ae},Fd=function(L,J,pe,Ae){try{pe?L.setAttributeNS(pe,J,Ae):L.setAttribute(J,Ae),$s(L)?vr(L):C6(e.removed)}catch{us(J,L)}},Bd=function(L){dn(D.beforeSanitizeAttributes,L,null);const J=L.attributes;if(!J||$s(L))return;const pe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ee,forceKeepAttr:void 0};let Ae=J.length;const De=rt(L.nodeName);for(;Ae--;){const je=J[Ae],nn=je.name,Fn=je.namespaceURI,dr=je.value,rn=rt(nn),br=dr;let Nn=nn==="value"?br:Cte(br);if(pe.attrName=rn,pe.attrValue=Nn,pe.keepAttr=!0,pe.forceKeepAttr=void 0,dn(D.uponSanitizeAttribute,L,pe),Nn=pe.attrValue,cr&&(rn==="id"||rn==="name")&&_6(Nn,Da)!==0&&(us(nn,L),Nn=Da+Nn),Kt&&$n(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Nn)){us(nn,L);continue}if(rn==="attributename"&&E6(Nn,"href")){us(nn,L);continue}if(!pe.forceKeepAttr){if(!pe.keepAttr){us(nn,L);continue}if(!as&&$n($te,Nn)){us(nn,L);continue}if(Rr&&(Nn=sl(Nn)),!jd(De,rn,Nn)){us(nn,L);continue}Nn=Or(De,rn,Fn,Nn),Nn!==br&&Fd(L,nn,Fn,Nn)}}dn(D.afterSanitizeAttributes,L,null)},Go=function(L){let J=null;const pe=Ud(L);for(dn(D.beforeSanitizeShadowDOM,L,null);J=pe.nextNode();)if(dn(D.uponSanitizeShadowNode,J,null),Au(J,L),Bd(J),za(J.content)&&Go(J.content),(R?R(J):J.nodeType)===sa.element){const De=k(J);za(De)&&(cs(De),Go(De))}dn(D.afterSanitizeShadowDOM,L,null)},cs=function(L){const J=[{node:L,shadow:null}];for(;J.length>0;){const pe=J.pop();if(pe.shadow){Go(pe.shadow);continue}const Ae=pe.node,je=(R?R(Ae):Ae.nodeType)===sa.element,nn=x(Ae);if(nn)for(let Fn=nn.length-1;Fn>=0;--Fn)J.push({node:nn[Fn],shadow:null});if(je){const Fn=N?N(Ae):null;if(typeof Fn=="string"&&rt(Fn)==="template"){const dr=Ae.content;za(dr)&&J.push({node:dr,shadow:null})}}if(je){const Fn=k(Ae);za(Fn)&&J.push({node:null,shadow:Fn},{node:Fn,shadow:null})}}};return e.sanitize=function(me){let L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},J=null,pe=null,Ae=null,De=null;if(Bs=!me,Bs&&(me="<!-->"),typeof me!="string"&&!yr(me)&&(me=Tte(me),typeof me!="string"))throw El("dirty is not a string, aborting");if(!e.isSupported)return me;bn?(Ce=Ir,Ee=ss):Pd(L),(D.uponSanitizeElement.length>0||D.uponSanitizeAttribute.length>0)&&(Ce=wr(Ce)),D.uponSanitizeAttribute.length>0&&(Ee=wr(Ee)),e.removed=[];const je=Id&&typeof me!="string"&&yr(me);if(je){Vo(me);const rn=N?N(me):me.nodeName;if(typeof rn=="string"){const br=rt(rn);if(!Ce[br]||qe[br])throw cn(me),El("root node is forbidden and cannot be sanitized in-place")}if($s(me))throw cn(me),El("root node is clobbered and cannot be sanitized in-place");try{cs(me)}catch(br){throw cn(me),br}}else if(yr(me))J=zp("<!---->"),pe=J.ownerDocument.importNode(me,!0),pe.nodeType===sa.element&&pe.nodeName==="BODY"||pe.nodeName==="HTML"?J=pe:J.appendChild(pe),cs(pe);else{if(!Fs&&!Rr&&!gt&&me.indexOf("<")===-1)return O&&Cu?j(me):me;if(J=zp(me),!J)return Fs?null:Cu?I:""}J&&Rd&&vr(J.firstChild);const nn=je?me:J,Fn=Ud(nn);try{for(;Ae=Fn.nextNode();)Au(Ae,nn),Bd(Ae),za(Ae.content)&&Go(Ae.content)}catch(rn){throw je&&(cn(me),ic(e.removed,br=>{br.element&&Ua(br.element)})),rn}if(je)return ic(e.removed,rn=>{rn.element&&Ua(rn.element)}),Rr&&zd(me),me;if(Fs){if(Rr&&zd(J),xu)for(De=re.call(J.ownerDocument);J.firstChild;)De.appendChild(J.firstChild);else De=J;return(Ee.shadowroot||Ee.shadowrootmode)&&(De=xe.call(r,De,!0)),De}let dr=gt?J.outerHTML:J.innerHTML;return gt&&Ce["!doctype"]&&J.ownerDocument&&J.ownerDocument.doctype&&J.ownerDocument.doctype.name&&$n(jte,J.ownerDocument.doctype.name)&&(dr="<!DOCTYPE "+J.ownerDocument.doctype.name+`>
14
- `+dr),Rr&&(dr=sl(dr)),O&&Cu?j(dr):dr},e.setConfig=function(){let me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Pd(me),bn=!0,Ir=Ce,ss=Ee},e.clearConfig=function(){Xr=null,bn=!1,Ir=null,ss=null,O=P,I=""},e.isValidAttribute=function(me,L,J){Xr||Pd({});const pe=rt(me),Ae=rt(L);return jd(pe,Ae,J)},e.addHook=function(me,L){typeof L=="function"&&qn(D,me)&&lc(D[me],L)},e.removeHook=function(me,L){if(qn(D,me)){if(L!==void 0){const J=wte(D[me],L);return J===-1?void 0:xte(D[me],J,1)[0]}return C6(D[me])}},e.removeHooks=function(me){qn(D,me)&&(D[me]=[])},e.removeAllHooks=function(){D=D6()},e}var uRe=fU();function hU({children:t,className:e}){return C.jsx("div",{"data-auth-page":!0,className:Ue("flex min-h-dvh w-full flex-col items-center justify-center overflow-y-auto bg-surface-sunken px-4 py-8 text-fg",e),style:{backgroundImage:"radial-gradient(at 20% 0%, color-mix(in oklch, var(--accent) 8%, transparent) 0px, transparent 50%), radial-gradient(at 80% 100%, color-mix(in oklch, var(--accent) 8%, transparent) 0px, transparent 50%)"},children:C.jsx("div",{className:"w-full max-w-[26rem]",children:t})})}const Wte="Secure sign-in powered by AWS Cognito";function pU(t){const e=t?.note??"Secure sign-in";return C.jsx("div",{className:"text-center pt-5",children:C.jsx("p",{className:"text-xs text-fg-muted",children:e})})}const Vte=()=>C.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:"text-accent",children:[C.jsx("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),C.jsx("path",{d:"M3 7l9 6 9-6"})]});function mU({wordmark:t="remit,",tagline:e="your email client in the cloud.",mark:n=C.jsx(Vte,{})}){return C.jsxs("div",{className:"text-center pb-6",children:[C.jsx("div",{className:"flex items-center justify-center pb-3",children:n}),C.jsx("h1",{className:"text-[1.75rem] font-semibold tracking-[-0.01em] text-fg",children:t}),C.jsx("p",{className:"mt-1 text-sm text-fg-muted",children:e})]})}const Gte={info:"bg-accent-2/15 text-accent-2 border-accent-2/40",success:"bg-positive/15 text-positive border-positive/40",warning:"bg-warning/15 text-warning border-warning/40",danger:"bg-danger/15 text-danger border-danger/40"},Kte={info:"bg-surface-sunken text-fg-muted",success:"bg-positive/10 text-positive",warning:"bg-warning/10 text-warning",danger:"bg-danger-soft text-danger"},Yte={info:"status",success:"status",warning:"alert",danger:"alert"};function PE({tone:t="info",variant:e="framed",onDismiss:n,role:r,className:a,children:s,...i}){const u=e==="soft";return C.jsxs("div",{role:r??Yte[t],className:Ue("flex gap-2 px-3 py-2 text-sm",u?Ue("items-start rounded-md",Kte[t]):Ue("items-center border",Gte[t]),a),...i,children:[C.jsx("div",{className:"flex-1 min-w-0",children:s}),n&&(u?C.jsx(on,{variant:"ghost",size:"sm",icon:C.jsx(Ms,{className:"size-3.5"}),onClick:n,"aria-label":"Dismiss",className:"-mr-1 shrink-0"}):C.jsx("button",{type:"button",onClick:n,"aria-label":"Dismiss",className:"shrink-0 rounded-md p-1 hover:bg-fg/10 transition-colors",children:C.jsx(Ms,{className:"size-4","aria-hidden":"true"})}))]})}function Zte({id:t,reason:e,nudged:n,className:r}){return C.jsxs(C.Fragment,{children:[C.jsx("p",{id:t,className:Ue(r,!n&&"sr-only"),children:e}),C.jsx("span",{role:"status","aria-live":"polite",className:"sr-only",children:n?e:""})]})}function Q_({className:t,children:e,...n}){return C.jsx("label",{className:Ue("mb-1 block text-xs font-medium text-fg-muted",t),...n,children:e})}const L6={type:"none"};function Xte(t){if(!t.open||t.count<=0)return L6;if(t.key==="ArrowDown"){const n=t.activeIndex+1;return{type:"move",index:n>=t.count?0:n}}if(t.key==="ArrowUp"){const n=t.activeIndex-1;return{type:"move",index:n<0?t.count-1:n}}return t.key==="Escape"?{type:"dismiss"}:(t.key==="Enter"||(t.acceptKeys??[]).includes(t.key))&&t.activeIndex>=0&&t.activeIndex<t.count?{type:"accept",index:t.activeIndex}:L6}function Qte({count:t,onAccept:e,acceptKeys:n}){const[r,a]=_.useState(!1),[s,i]=_.useState(-1),u=_.useId().replace(/[^a-zA-Z0-9_-]/g,""),c=`suggest-${u}`,f=_.useCallback(g=>`suggest-${u}-option-${g}`,[u]);_.useEffect(()=>{i(-1),a(!1)},[t]);const h=t>0&&!r,m=_.useCallback(g=>{const y=Xte({key:g.key,open:h,count:t,activeIndex:s,acceptKeys:n});return y.type==="none"?!1:(g.preventDefault(),y.type==="move"&&i(y.index),y.type==="dismiss"&&a(!0),y.type==="accept"&&e(y.index),!0)},[h,t,s,n,e]);return{open:h,activeIndex:s,setActiveIndex:i,dismiss:_.useCallback(()=>a(!0),[]),reopen:_.useCallback(()=>a(!1),[]),handleKeyDown:m,listId:c,optionId:f,comboboxProps:{role:"combobox","aria-expanded":h,"aria-controls":c,"aria-autocomplete":"list",...s>=0?{"aria-activedescendant":f(s)}:{},...h?{"data-escape-owner":""}:{}}}}const Jte={similar:"Anything similar",properties:"Its properties"};function DE(t){return Jte[t]}const ene={similar:"Reads the messages you picked and finds more that read like them.",properties:"Matches on what the messages say about themselves — sender, subject, list. No reading involved."};function gU(t){return ene[t]}const tne={From:"From",Subject:"Subject",HasWords:"Has the words",ListId:"List",FromDomain:"Domain"};function $c(t){return tne[t]}const nne={ListId:"The mailing list's List-Id header, matched exactly. New mail is matched as it arrives — mail delivered before this was set up may not carry it yet.",FromDomain:"The sender's registrable domain — matches anyone at it, subdomains included (a look-alike like example.com.evil.test never matches)."};function rne(t){return nne[t]}function ane(t){return t==="HasWords"}function sne(t){return t.widen!==void 0&&!t.widen.inactive}function vU(t){return sne(t)?[]:t.clauses.filter(e=>ane(e.field))}const one=["From","Subject","HasWords","ListId","FromDomain"];function $0(t){return`Similar to these ${t.anchorCount}`}const ine={all:"Match all",any:"Match any"};function H0(t){return ine[t]}function J_(t){return t==="all"?"and":"or"}function yU(t){if(t.status==="loading")return"Counting matches…";if(t.status==="error")return t.reason;if(t.count===0)return"No mail matches yet";const e=t.count===1?"message":"messages",n=`${t.count} ${e} match`;return t.stale?`${n} — recounting`:n}const lne={once:"Just once",standing:"Keep doing this",until:"Until a date"};function c0(t){return lne[t]}function bU(t){return t==="once"?"Apply now":t==="standing"?"Save rule":"Save until then"}const Aa={noMatch:"Add a clause so the rule has something to match.",bodyTextOnce:"Applying once can't read message bodies. Save this as a rule instead, or drop the “has the words” clause.",noAction:"Pick a folder to move into, or a label to apply.",unnamed:"Name this rule so you can find it later.",noUntilDate:"Pick the date this rule should stop on.",counting:"Counting matches — save once the count settles.",recounting:"Recounting matches — save once the count settles."},cRe="Can't count matches — “has the words” reads message bodies, which only a saved rule does.";function SU(t){if(t.status==="loading")return Aa.counting;if(t.status==="ready"&&t.stale)return Aa.recounting}function une(t,e){return t.clauses.length>0||t.widen!==void 0&&!t.widen.inactive?t.scope==="once"&&vU(t).length>0?Aa.bodyTextOnce:!t.moveMailboxId&&!t.labelId?Aa.noAction:(t.scope==="standing"||t.scope==="until")&&(t.name??"").trim()===""?Aa.unnamed:t.scope==="until"&&!t.until?Aa.noUntilDate:SU(e):Aa.noMatch}const cne={default:Ue("flex h-9 items-center gap-2 rounded-md border border-line bg-surface-sunken px-3 text-sm","focus-within:border-line-strong focus-within:ring-2 focus-within:ring-ring/30 transition-colors"),inline:"flex items-center gap-2 bg-transparent text-sm"};function ts({icon:t,className:e,variant:n="default",trailing:r,ref:a,...s}){return C.jsxs("div",{className:Ue(cne[n],e),children:[t&&C.jsx("span",{className:"text-fg-subtle shrink-0",children:t}),C.jsx("input",{ref:a,className:"min-w-0 flex-1 bg-transparent text-fg placeholder:text-fg-subtle outline-none",...s}),r]})}function wU({icon:t,className:e,children:n,...r}){return C.jsxs("div",{className:Ue("relative flex h-9 items-center gap-2 rounded-md border border-line bg-surface-sunken pl-3 text-sm","focus-within:border-line-strong focus-within:ring-2 focus-within:ring-ring/30 transition-colors",e),children:[t&&C.jsx("span",{className:"shrink-0 text-fg-subtle",children:t}),C.jsx("select",{className:"min-w-0 flex-1 appearance-none bg-transparent py-0 pr-8 text-fg outline-none",...r,children:n}),C.jsx(kE,{className:"pointer-events-none absolute right-2.5 size-4 text-fg-subtle"})]})}function dne({id:t,suggestions:e,activeIndex:n,optionId:r,onPick:a,onHighlight:s,label:i,className:u}){return e.length===0?null:C.jsx("div",{id:t,role:"listbox","aria-label":i,className:Ue("max-h-44 overflow-y-auto rounded-md border border-line bg-surface py-1 shadow-sm",u),children:e.map((c,f)=>C.jsxs("div",{id:r(f),role:"option",tabIndex:-1,"aria-selected":f===n,className:Ue("flex cursor-pointer items-baseline gap-2 px-3 py-2 text-sm text-fg",f===n&&"bg-accent-2-soft"),onMouseDown:h=>{h.preventDefault(),a(c)},onMouseEnter:()=>s(f),children:[C.jsx("span",{className:"min-w-0 flex-1 truncate",children:c.label??c.value}),c.hint&&C.jsx("span",{className:"shrink-0 truncate text-2xs text-fg-subtle",children:c.hint}),c.source&&C.jsx("span",{className:"shrink-0 text-2xs text-fg-subtle",children:c.source})]},c.value))})}const q0="inline-flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-xs";function xU({clause:t,onEdit:e,onRemove:n}){return C.jsxs("span",{className:Ue(q0,t.derived?"border-dashed border-line-strong bg-surface-sunken":"border-line bg-surface"),children:[C.jsxs("button",{type:"button",onClick:e,"aria-label":`Edit ${$c(t.field)} clause`,className:"flex items-center gap-1 text-left",children:[C.jsx("span",{className:"font-medium text-fg-muted",children:$c(t.field)}),C.jsx("span",{className:"text-fg",children:t.value})]}),t.derived&&C.jsx("span",{className:"text-2xs text-fg-subtle",children:"from sender"}),n&&C.jsx("button",{type:"button",onClick:n,"aria-label":`Remove ${$c(t.field)} clause`,className:"flex size-4 items-center justify-center rounded-full text-fg-subtle hover:bg-surface-sunken hover:text-fg-muted",children:C.jsx(Ms,{className:"size-3"})})]})}function U6({onRemove:t}){return C.jsx("button",{type:"button",onClick:t,"aria-label":"Remove the similar-mail widen",className:"flex size-4 items-center justify-center rounded-full hover:bg-fg-subtle/20",children:C.jsx(Ms,{className:"size-3"})})}function fne({widen:t,onRemove:e}){return t.inactive?C.jsxs("span",{className:Ue(q0,"border-dashed border-line-strong bg-surface-sunken text-fg-subtle"),children:[C.jsx(AE,{className:"size-3 shrink-0","aria-hidden":"true"}),C.jsx("span",{className:"line-through",children:$0(t)}),C.jsx("span",{className:"text-2xs",children:"not available here"}),e&&C.jsx(U6,{onRemove:e})]}):C.jsxs("span",{className:Ue(q0,"border-accent-2 bg-accent-2-soft text-accent-2"),children:[C.jsx(AE,{className:"size-3 shrink-0","aria-hidden":"true"}),C.jsx("span",{className:"font-medium",children:"…and anything similar"}),C.jsx("span",{className:"text-2xs opacity-80",children:$0(t)}),e&&C.jsx(U6,{onRemove:e})]})}function LE({label:t,onClick:e}){return C.jsxs("button",{type:"button",onClick:e,className:Ue(q0,"border-dashed border-line-strong text-fg-muted hover:border-accent-2 hover:text-accent-2"),children:[C.jsx(DJ,{className:"size-3","aria-hidden":"true"}),t]})}function CU({draft:t,mode:e,fields:n=one,suggestions:r=[],onChangeField:a,onChangeValue:s,onSubmit:i,onCancel:u}){const c=rne(t.field),f=Qte({count:r.length,onAccept:h=>s?.(r[h].value)});return C.jsxs("div",{className:"space-y-1.5 rounded-lg border border-accent-2 bg-surface p-2",children:[C.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[C.jsx(wU,{"aria-label":"Clause field",value:t.field,onChange:h=>a?.(h.target.value),className:"h-8 w-32 shrink-0",children:n.map(h=>C.jsx("option",{value:h,children:$c(h)},h))}),C.jsx(ts,{"aria-label":"Clause value",value:t.value,placeholder:"value…",autoComplete:"off",onChange:h=>{f.reopen(),s?.(h.target.value)},onKeyDown:h=>{f.handleKeyDown(h)||h.key==="Enter"&&i?.()},className:"h-8 min-w-40 flex-1",...f.comboboxProps}),C.jsx(on,{variant:"primary",size:"sm",onClick:i,disabled:t.value.trim()==="",className:"shrink-0",children:e==="add"?"Add":"Save"}),C.jsx(on,{variant:"ghost",size:"sm",onClick:u,"aria-label":"Cancel clause edit",icon:C.jsx(Ms,{className:"size-4"}),className:"shrink-0 px-2"})]}),f.open&&C.jsx(dne,{id:f.listId,suggestions:r,activeIndex:f.activeIndex,optionId:f.optionId,onPick:h=>{s?.(h.value),f.dismiss()},onHighlight:f.setActiveIndex,label:`${$c(t.field)} suggestions`}),c&&C.jsx("p",{className:"px-0.5 text-2xs text-fg-subtle",children:c})]})}function hne({preview:t}){const e=yU(t);if(t.status==="loading")return C.jsxs("p",{className:"flex items-center gap-2 text-xs text-fg-muted","aria-live":"polite",children:[C.jsx(j0,{className:"size-3.5 animate-spin","aria-hidden":"true"}),e]});if(t.status==="error")return C.jsxs("p",{className:"flex items-center gap-2 text-xs text-danger",role:"alert",children:[C.jsx(Nh,{className:"size-3.5 shrink-0","aria-hidden":"true"}),e]});const n=t.count===0;return C.jsxs("p",{className:Ue("flex items-center gap-2 text-xs",t.stale?"text-fg-subtle":n?"text-fg-muted":"font-medium text-fg"),"aria-live":"polite",children:[t.stale&&C.jsx(j0,{className:"size-3.5 animate-spin","aria-hidden":"true"}),e]})}const pne=t=>typeof t=="object"&&t!==null&&"name"in t&&t.name==="AbortError",Dh=(t,e)=>{const n=t.lastIndexOf(e);return n===-1?"":t.slice(0,n)},EU=(t,e)=>t.split(e).length-1,Lh=(t,e)=>{const n=[];let r=Dh(t,e);for(;r;)n.push(r),r=Dh(r,e);return n},mne=(t,e)=>{const n=new Set(t.map(i=>i.path)),r=new Set,a=[],s=i=>{if(!r.has(i.path)){r.add(i.path),a.push(i);for(const u of t)Dh(u.path,e)===i.path&&s(u)}};for(const i of t){const u=Dh(i.path,e);u&&n.has(u)||s(i)}return a},_U=(t,e)=>t.label.toLowerCase().includes(e)||t.path.toLowerCase().includes(e),gne=(t,e,n)=>{const r=new Set;if(!e)return r;for(const a of t)if(_U(a,e))for(const s of Lh(a.path,n))r.add(s);return r},vne=(t,e,n,r=new Set)=>{const a=(u,c)=>({folder:u,depth:EU(u.path,n),context:c,expanded:r.has(u.path)});if(!e)return t.map(u=>a(u,!1));const s=new Set;for(const u of t)_U(u,e)&&s.add(u.path);const i=new Set(s);for(const u of s)for(const c of Lh(u,n))i.add(c);return t.filter(u=>i.has(u.path)).map(u=>a(u,!s.has(u.path)))},yne=(t,e,n)=>{const r=new Set(t.map(a=>a.path));return t.filter(a=>Lh(a.path,n).every(s=>!r.has(s)||e.has(s))).map(a=>({folder:a,depth:EU(a.path,n),context:!1,expanded:e.has(a.path)}))},bne=(t,e)=>{const n=[],r=[],a=s=>{for(;r.length>0;){const i=r[r.length-1];if(!i||s?.startsWith(`${i.folder.path}${e}`))break;r.pop(),n.push({kind:"create",parent:i.folder,depth:i.depth+1})}};return t.forEach((s,i)=>{a(s.folder.path),n.push({kind:"folder",row:s,index:i}),s.expanded&&r.push(s)}),a(null),n},Es=t=>t!==void 0&&!t.context,jS=t=>t!==void 0&&!t.folder.isCurrent&&!t.context,FS=t=>{for(let e=0;e<t.length;e+=1)if(Es(t[e]))return e;return-1},Sne=t=>{for(let e=t.length-1;e>=0;e-=1)if(Es(t[e]))return e;return-1},z6=(t,e,n)=>{const r=t.length;if(r<=0)return-1;const a=e<0?n===1?-1:r:e;for(let s=1;s<=r;s+=1){const i=((a+n*s)%r+r)%r;if(Es(t[i]))return i}return-1},wne=(t,e,n)=>{const r=t[e];if(!r)return-1;const a=Dh(r.folder.path,n);if(!a)return-1;for(let s=e-1;s>=0;s-=1)if(t[s]?.folder.path===a)return Es(t[s])?s:-1;return-1},UE="flex min-h-11 min-w-0 flex-1 items-center gap-2 px-3 py-2.5 text-left text-sm transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset",kU=14,xne=60,zE=({depth:t})=>t>0?C.jsx("span",{"aria-hidden":"true",className:"shrink-0",style:{width:t*kU}}):null,jE=({depth:t})=>C.jsx("span",{"aria-hidden":"true",className:"pointer-events-none absolute right-0 bottom-0 h-px bg-line",style:{left:xne+t*kU}}),Cne=({label:t,depth:e,expanded:n,ariaLabel:r,selected:a=!1,context:s=!1,current:i=!1,currentTag:u,separated:c=!1,actions:f,tabIndex:h,onActivate:m,onFocus:g,ref:y})=>{const S=C.jsx(CJ,{className:Ue("size-4 shrink-0 text-fg-subtle transition-transform",n&&"rotate-90"),"aria-hidden":"true"}),w=C.jsx(NJ,{className:"size-4 shrink-0 text-fg-subtle","aria-hidden":"true"});return s?C.jsxs("div",{className:"relative flex items-center",children:[C.jsxs("div",{role:"treeitem","aria-level":e+1,"aria-selected":!1,"aria-expanded":n,"aria-label":r,className:Ue(UE,"opacity-60"),children:[C.jsx(zE,{depth:e}),S,w,C.jsx("span",{className:"min-w-0 flex-1 truncate",children:t})]}),f,c&&C.jsx(jE,{depth:e})]}):C.jsxs("div",{className:"relative flex items-center",children:[C.jsxs("button",{ref:y,type:"button",role:"treeitem","aria-level":e+1,"aria-selected":a,"aria-expanded":n,"aria-current":i?"true":void 0,"aria-label":r,tabIndex:h,onClick:m,onFocus:g,className:Ue(UE,"hover:bg-surface-raised active:bg-surface-sunken",i&&"text-fg-muted"),children:[C.jsx(zE,{depth:e}),S,w,C.jsx("span",{className:"min-w-0 flex-1 truncate",children:t}),i&&u&&C.jsx("span",{className:"shrink-0 text-xs text-fg-muted",children:u}),a&&C.jsx(rv,{className:"size-4 shrink-0 text-accent","aria-hidden":"true"})]}),f,c&&C.jsx(jE,{depth:e})]})},j6=({label:t,ariaLabel:e,depth:n=0,prominence:r="prominent",separated:a=!1,onOpen:s})=>C.jsxs("div",{className:Ue("relative",r==="prominent"&&"p-2"),children:[C.jsxs("button",{type:"button",onClick:s,"aria-label":e,"data-prominence":r,className:Ue(UE,"w-full active:bg-surface-sunken",r==="prominent"?"rounded-lg border border-line-strong border-dashed font-medium text-fg-muted hover:border-accent-2 hover:text-accent-2":"text-fg-subtle hover:bg-surface-raised hover:text-fg-muted"),children:[C.jsx(zE,{depth:n}),C.jsx("span",{"aria-hidden":"true",className:"size-4 shrink-0"}),C.jsx(IJ,{className:"size-4 shrink-0","aria-hidden":"true"}),C.jsx("span",{className:"min-w-0 flex-1 truncate",children:t})]}),a&&C.jsx(jE,{depth:n})]}),AU={nameLabel:"Folder name",namePlaceholder:"Hotels",insideLabel:"Inside",create:"Create folder",cancel:"Cancel",createPending:"Creating folder…"},Ene=({parentLabel:t,name:e,onNameChange:n,onSubmit:r,onCancel:a,pending:s=!1,error:i,labels:u})=>{const c={...AU,...u},f=_.useId(),h=_.useRef(null),m=_.useRef(null);return _.useEffect(()=>{h.current?.focus({preventScroll:!0}),m.current?.scrollIntoView({block:"nearest"})},[]),C.jsxs("div",{ref:m,className:"space-y-3 border-y border-line bg-surface-sunken px-3 py-3",children:[C.jsxs("div",{children:[C.jsx(Q_,{htmlFor:f,children:c.nameLabel}),C.jsx(ts,{id:f,ref:h,value:e,placeholder:c.namePlaceholder,onChange:g=>n(g.target.value),onKeyDown:g=>{g.key==="Enter"&&(g.preventDefault(),r()),g.key==="Escape"&&(g.preventDefault(),a())}})]}),C.jsxs("p",{className:"text-xs text-fg-muted",children:[c.insideLabel," ",C.jsx("span",{className:"font-medium text-fg",children:t})]}),i&&C.jsx("p",{className:"text-xs text-danger",role:"alert",children:i}),C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx(on,{variant:"ghost",size:"md",onClick:a,className:"min-h-11 shrink-0",children:c.cancel}),C.jsx(on,{variant:"secondary",size:"md",onClick:r,disabled:s,className:"min-h-11 shrink-0",children:s?c.createPending:c.create})]})]})},_ne={...AU,filterPlaceholder:"Filter folders…",filterAriaLabel:"Filter folders",treeAriaLabel:"Destination folders",currentSuffix:"(current folder)",currentTag:"current",contextSuffix:"(containing folder)",emptyMessage:t=>`No folders match "${t}"`,noFolders:"No folders to show",optionLabel:t=>`Move to ${t}`,newFolder:"New folder",newSubfolder:t=>`New folder inside ${t}`,topLevel:"Top level",nameRequired:"Give the folder a name.",createError:"Couldn't create that folder. Please try again."},TU=({folders:t,selectedId:e,onSelect:n,rowActions:r,onCreateFolder:a,onCancel:s,delimiter:i="/",labels:u})=>{const c={..._ne,...u},[f,h]=_.useState(""),[m,g]=_.useState(()=>{const G=t.find(ue=>ue.id===e);return new Set(G?Lh(G.path,i):[])}),[y,S]=_.useState(null),[w,x]=_.useState(""),[E,k]=_.useState(),[A,R]=_.useState(!1),[N,O]=_.useState(-1),I=_.useRef([]),P=_.useRef(!1),U=_.useRef(null);_.useEffect(()=>()=>U.current?.abort(),[]);const q=f.trim().toLowerCase(),z=_.useMemo(()=>mne(t,i),[t,i]),j=_.useMemo(()=>{const G=gne(z,q,i);return G.size===0?m:new Set([...m,...G])},[z,m,q,i]),H=_.useMemo(()=>q?vne(z,q,i,j):yne(z,j,i),[z,q,i,j]),W=_.useMemo(()=>a?bne(H,i):void 0,[H,i,a]);_.useEffect(()=>{O(G=>Es(H[G])?G:FS(H))},[H]),_.useEffect(()=>{P.current&&(P.current=!1,!(N<0)&&I.current[N]?.focus())},[N]);const se=_.useCallback((G,ue)=>{g(oe=>{if(ue)return new Set([...Lh(G,i),G]);const ce=new Set(oe);return ce.delete(G),ce})},[i]),$=_.useCallback(G=>{jS(G)&&n?.(G.folder.id),se(G.folder.path,!G.expanded)},[n,se]),Q=_.useCallback(()=>{U.current?.abort(),S(null),x(""),k(void 0),R(!1)},[]),re=_.useCallback(G=>{U.current?.abort(),S({anchorId:G?.id??null,parentPath:G?.path??"",parentLabel:G?.label??c.topLevel}),x(""),k(void 0),R(!1)},[c.topLevel]),he=_.useCallback(()=>{if(!a||!y||A)return;const G=w.trim();if(G===""){k(c.nameRequired);return}R(!0),k(void 0),U.current?.abort();const ue=new AbortController;U.current=ue;const oe=y.parentPath;a(G,oe,ue.signal).then(ce=>{R(!1),S(null),x(""),oe&&se(oe,!0),n?.(ce.id)}).catch(ce=>{pne(ce)||(k(ce instanceof Error?ce.message:c.createError),R(!1))})},[a,y,A,w,n,se,c.nameRequired,c.createError]),xe=_.useCallback(G=>{const ue=G.target;if(!(ue instanceof Element)||!ue.closest('[role="treeitem"]'))return;const oe=be=>{G.preventDefault(),P.current=!0,O(be)},ce=H[N];switch(G.key){case"ArrowDown":return oe(z6(H,N,1));case"ArrowUp":return oe(z6(H,N,-1));case"Home":return oe(FS(H));case"End":return oe(Sne(H));case"ArrowRight":{if(!Es(ce)||!ce)return;if(G.preventDefault(),!ce.expanded){se(ce.folder.path,!0);return}const be=N+1;Es(H[be])&&oe(be);return}case"ArrowLeft":{if(!Es(ce)||!ce)return;if(G.preventDefault(),ce.expanded){se(ce.folder.path,!1);return}const be=wne(H,N,i);be>=0&&oe(be);return}case"Enter":case" ":{if(!Es(ce)||!ce)return;G.preventDefault(),$(ce);return}case"Escape":G.preventDefault(),s?.();return;default:return}},[H,N,i,$,se,s]),D=y!==null&&y.anchorId!==null&&(W?.some(G=>G.kind==="create"&&G.parent.id===y.anchorId)??!1),Z=y&&C.jsx(Ene,{parentLabel:y.parentLabel,name:w,onNameChange:G=>{x(G),k(void 0)},onSubmit:he,onCancel:Q,pending:A,error:E,labels:c}),K=G=>G.context?`${G.folder.label} ${c.contextSuffix}`:jS(G)?c.optionLabel(G.folder.label):`${G.folder.label} ${c.currentSuffix}`,X=(G,ue,oe)=>{const{folder:ce,depth:be}=G,Ge=jS(G);return C.jsx(Cne,{ref:Ce=>{I.current[ue]=Ce},label:ce.label,depth:be,expanded:G.expanded,context:G.context,current:ce.isCurrent,currentTag:c.currentTag,selected:Ge&&ce.id===e,separated:oe,actions:r?.(ce),ariaLabel:K(G),tabIndex:ue===N?0:-1,onActivate:()=>$(G),onFocus:()=>O(ue)})};return C.jsxs("div",{className:"flex min-h-0 w-full min-w-0 flex-col",children:[C.jsx(ts,{variant:"inline",className:"border-b border-line px-3 py-2",icon:C.jsx(LJ,{className:"size-4","aria-hidden":"true"}),type:"search",value:f,onChange:G=>h(G.target.value),onKeyDown:G=>{if(G.key==="Escape"){G.preventDefault(),s?.();return}if(G.key!=="ArrowDown")return;G.preventDefault();const ue=Es(H[N])?N:FS(H);ue<0||(P.current=!0,O(ue),I.current[ue]?.focus())},placeholder:c.filterPlaceholder,"aria-label":c.filterAriaLabel}),a&&C.jsx("div",{className:"shrink-0 border-b border-line","data-create-anchor":"top",children:y&&!D?Z:C.jsx(j6,{label:c.newFolder,ariaLabel:c.newFolder,prominence:"prominent",onOpen:()=>re(null)})}),H.length===0?C.jsx("p",{className:"px-3 py-3 text-sm text-fg-muted","aria-live":"polite",children:t.length===0?c.noFolders:c.emptyMessage(f)}):C.jsx("div",{role:"tree","aria-label":c.treeAriaLabel,className:"min-h-0 flex-1 overflow-y-auto overflow-x-hidden pb-24",onKeyDown:xe,children:(W??H.map((G,ue)=>({kind:"folder",row:G,index:ue}))).map((G,ue,oe)=>{const ce=ue<oe.length-1;return G.kind==="create"?C.jsx("div",{role:"none","data-create-anchor":G.parent.id,children:y?.anchorId===G.parent.id?Z:C.jsx(j6,{label:c.newFolder,ariaLabel:c.newSubfolder(G.parent.label),depth:G.depth,prominence:"quiet",separated:ce,onOpen:()=>re(G.parent)})},`new:${G.parent.id}`):C.jsx("div",{role:"none",children:X(G.row,G.index,ce)},G.row.folder.id)})})]})},kne={sm:"min-h-9 px-3 text-xs",md:"min-h-11 px-4 text-sm"};function d0({name:t,options:e,value:n,onChange:r,size:a="md","aria-label":s}){const i=e.findIndex(u=>u.value===n);return C.jsx("div",{role:"radiogroup","aria-label":s,className:"inline-flex rounded-md border border-line bg-surface-sunken p-0.5",children:e.map((u,c)=>{const f=u.value===n,h=!f&&c<e.length-1&&i!==c+1;return C.jsxs("label",{className:Ue("relative flex cursor-pointer items-center justify-center rounded-[5px] font-medium transition-colors",kne[a],f?"bg-surface text-fg shadow":"text-fg-muted hover:text-fg",h&&"after:pointer-events-none after:absolute after:right-0 after:top-1/4 after:h-1/2 after:w-px after:bg-line"),children:[C.jsx("input",{type:"radio",name:t,value:u.value,checked:f,onChange:()=>r(u.value),className:"sr-only"}),u.label]},u.value)})})}const Ane=[{value:"all",label:H0("all")},{value:"any",label:H0("any")}],Tne=[{value:"similar",label:DE("similar")},{value:"properties",label:DE("properties")}],F6=[{value:"once",label:"Just once"},{value:"standing",label:"Keep doing this"},{value:"until",label:"Until a date"}],B6="__filter_create_label__";function Rne({folders:t,value:e,delimiter:n="/",onChangeMove:r,onCreateFolder:a}){const[s,i]=_.useState(!1),[u,c]=_.useState(),[f,h]=_.useState([]),m=_.useMemo(()=>{const E=new Set(t.map(k=>k.id));return[...t,...f.filter(k=>!E.has(k.id))]},[t,f]),g=_.useMemo(()=>{if(a)return async(E,k,A)=>{const R=await a(E,k,A);return h(N=>N.some(O=>O.id===R.id)?N:[...N,R]),R}},[a]),y=m.find(E=>E.id===e),S=m.find(E=>E.id===u),w=E=>{const k=E.path.split(n);return k.map((A,R)=>{const N=k.slice(0,R+1).join(n);return m.find(O=>O.path===N)?.label??A}).join(" / ")},x=()=>{i(!1),c(void 0)};return s?C.jsxs("div",{className:"space-y-2",children:[C.jsx("div",{className:"flex h-72 min-h-0 overflow-hidden rounded-md border border-line bg-surface",children:C.jsx(TU,{folders:m,selectedId:u,delimiter:n,onSelect:c,onCreateFolder:g,onCancel:x,labels:{createPending:"Waiting for the mail server to confirm the folder…"}})}),S?C.jsx(on,{variant:"primary",onClick:()=>{r?.(S.id),x()},className:"w-full",children:C.jsx("span",{className:"truncate",children:`Move matches to ${w(S)}`})}):C.jsx("p",{className:"text-2xs text-fg-subtle",children:"Tap a folder to open it, or make a new one where you want it."}),C.jsx(on,{variant:"ghost",size:"sm",onClick:x,className:"w-full",children:"Cancel"})]}):C.jsxs("div",{className:"rounded-md border border-line bg-surface-sunken p-3",children:[C.jsx("p",{className:"text-sm font-medium text-fg",children:y?w(y):"No folder yet"}),C.jsxs("div",{className:"mt-1 flex flex-wrap items-center gap-3",children:[C.jsx(on,{variant:"ghost",size:"sm",className:"px-0",onClick:()=>{c(e),i(!0)},children:"Choose a folder"}),y&&C.jsx(on,{variant:"ghost",size:"sm",className:"px-0",onClick:()=>r?.(""),children:"Don't move matches"})]})]})}function Ine({labels:t,value:e,onChangeLabel:n,onCreateLabel:r}){const[a,s]=_.useState(!1),[i,u]=_.useState(""),[c,f]=_.useState(!1),[h,m]=_.useState(),[g,y]=_.useState([]),S=_.useMemo(()=>{const A=new Set(t.map(R=>R.id));return[...t,...g.filter(R=>!A.has(R.id))]},[t,g]),w=S.find(A=>A.id===e),x=A=>{if(A===B6){m(void 0),s(!0);return}n?.(A)},E=()=>{if(!r)return;const A=i.trim();A!==""&&(f(!0),m(void 0),r(A).then(R=>{y(N=>N.some(O=>O.id===R.id)?N:[...N,R]),n?.(R.id),s(!1),u(""),f(!1)}).catch(R=>{m(R instanceof Error?R.message:"Couldn't create that label. Please try again."),f(!1)}))},k=()=>{s(!1),u(""),m(void 0)};return C.jsxs("div",{className:"space-y-2",children:[C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsxs(wU,{"aria-label":"Label to apply",value:e,onChange:A=>x(A.target.value),className:"flex-1",children:[C.jsx("option",{value:"",children:"No label"}),S.map(A=>C.jsx("option",{value:A.id,children:A.name},A.id)),r&&C.jsx("option",{value:B6,children:"+ New label…"})]}),w&&C.jsx(fte,{label:{...w,labelId:w.id}})]}),a&&C.jsxs("div",{className:"space-y-2 rounded-md border border-line bg-surface-sunken p-2",children:[C.jsx(ts,{value:i,onChange:A=>u(A.target.value),placeholder:"Label name","aria-label":"New label name",disabled:c,autoFocus:!0,onKeyDown:A=>{A.key==="Enter"&&(A.preventDefault(),E()),A.key==="Escape"&&(A.preventDefault(),k())}}),h&&C.jsx("p",{className:"text-2xs text-danger",role:"alert",children:h}),C.jsxs("div",{className:"flex gap-2",children:[C.jsx(on,{variant:"primary",size:"sm",onClick:E,disabled:c||i.trim()==="",children:c?"Creating…":"Create label"}),C.jsx(on,{variant:"ghost",size:"sm",onClick:k,disabled:c,children:"Cancel"})]})]})]})}function dRe({rule:t,folders:e,delimiter:n,labels:r=[],preview:a,notice:s,semanticAvailable:i=!1,matchMode:u,onChangeMatchMode:c,clauseFields:f,anchorLocked:h=!1,clauseSuggestions:m,clauseEdit:g,onStartAddClause:y,onStartEditClause:S,onRemoveClause:w,onChangeDraftField:x,onChangeDraftValue:E,onSubmitClause:k,onCancelClause:A,onAddWiden:R,onRemoveWiden:N,onChangeMatchOperator:O,onChangeMove:I,onCreateFolder:P,onChangeLabel:U,onCreateLabel:q,onChangeScope:z,onChangeName:j,onChangeUntil:H,onCommit:W,onCancel:se}){const $=t.widen&&!t.widen.inactive?1:0,re=t.clauses.length+$>=2,he=J_(t.matchOperator),xe=une(t,a),D=t.scope==="standing"||t.scope==="until",Z=h?F6.filter(K=>K.value!=="once"):F6;return C.jsxs("div",{className:"flex min-h-0 flex-col",children:[C.jsxs("div",{className:"border-b border-line px-5 py-3",children:[C.jsx("h2",{className:"text-sm font-semibold text-fg",children:"Filter rule"}),C.jsx("p",{className:"mt-0.5 text-xs text-fg-muted",children:"These chips are the whole rule — what you see is what applies."})]}),C.jsxs("div",{className:"min-h-0 flex-1 space-y-5 overflow-y-auto px-5 py-4",children:[s,u&&C.jsxs("section",{className:"space-y-1.5",children:[C.jsx("p",{className:"text-xs font-medium text-fg-muted",children:"Match on"}),C.jsx(d0,{name:"rule-match-mode",size:"sm","aria-label":"What the rule matches on",options:Tne,value:u,onChange:K=>c?.(K)}),C.jsx("p",{className:"text-2xs text-fg-subtle",children:gU(u)})]}),C.jsxs("section",{className:"space-y-3",children:[C.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[t.clauses.map((K,X)=>C.jsxs(_.Fragment,{children:[X>0&&C.jsx("span",{className:"text-2xs font-medium uppercase text-fg-subtle",children:he}),C.jsx(xU,{clause:K,onEdit:()=>S?.(K.id),onRemove:()=>w?.(K.id)})]},K.id)),t.widen&&C.jsxs(C.Fragment,{children:[t.clauses.length>0&&!t.widen.inactive&&C.jsx("span",{className:"text-2xs font-medium uppercase text-fg-subtle",children:he}),C.jsx(fne,{widen:t.widen,onRemove:h?void 0:N})]}),!g&&C.jsx(LE,{label:"Add clause",onClick:y}),!t.widen&&!h&&i&&u!=="properties"&&!g&&C.jsx(LE,{label:"…and similar",onClick:R})]}),g&&C.jsx(CU,{draft:g.draft,mode:g.mode,fields:f,suggestions:m,onChangeField:x,onChangeValue:E,onSubmit:k,onCancel:A}),h&&t.widen&&C.jsx("p",{className:"text-2xs text-fg-subtle",children:"This filter's similar-mail match is fixed to the message it was created from — create a new filter to change it."}),re&&C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx("span",{className:"text-xs text-fg-muted",children:"Match"}),C.jsx(d0,{name:"match-operator",size:"sm","aria-label":"Match operator",options:Ane,value:t.matchOperator,onChange:K=>O?.(K)})]})]}),C.jsxs("section",{className:"space-y-2",children:[C.jsx("p",{className:"text-xs font-medium text-fg-muted",children:"Move matches to"}),C.jsx(Rne,{folders:e,value:t.moveMailboxId,delimiter:n,onChangeMove:I,onCreateFolder:P})]}),C.jsxs("section",{className:"space-y-2",children:[C.jsx("p",{className:"text-xs font-medium text-fg-muted",children:"Apply a label"}),C.jsx(Ine,{labels:r,value:t.labelId??"",onChangeLabel:U,onCreateLabel:q})]}),C.jsxs("section",{className:"space-y-2",children:[C.jsx("p",{className:"text-xs font-medium text-fg-muted",children:"How long"}),C.jsx(d0,{name:"rule-scope",size:"sm","aria-label":"Rule scope",options:Z,value:t.scope,onChange:K=>z?.(K)}),D&&C.jsx(ts,{value:t.name??"",onChange:K=>j?.(K.target.value),placeholder:"Name this rule (e.g. Receipts)","aria-label":"Rule name",className:"w-full"}),t.scope==="until"&&C.jsxs("div",{className:"flex items-center gap-2 text-xs text-fg-muted",children:[C.jsx("span",{children:"Until"}),C.jsx(ts,{type:"date",value:t.until??"",onChange:K=>H?.(K.target.value),"aria-label":"Expiry date",className:"flex-1"})]})]}),C.jsx("div",{className:"border-t border-line pt-3",children:C.jsx(hne,{preview:a})})]}),C.jsxs("div",{className:"space-y-2 border-t border-line px-5 py-3",children:[xe&&C.jsx("p",{className:"text-xs text-fg-subtle",role:"status",children:xe}),C.jsx(on,{variant:"primary",onClick:W,disabled:xe!==void 0,className:"w-full",children:bU(t.scope)}),C.jsx(on,{variant:"ghost",onClick:se,className:"w-full",children:"Not now"})]})]})}const One={inbox:"Inbox",drafts:"Drafts",sent:"Sent",archive:"Archive",junk:"Spam",trash:"Trash",flagged:"Starred",all:"All Mail"};function Nne(t){return One[t]}function Mne(t){const e=t.split("/");return e[e.length-1]||t}const Pne=new Set(["all","flagged"]);function Dne(t){return Pne.has(t)}const Lne=new Set(["[Gmail]","[Google Mail]"]);function Une(t){if(t.role)return Dne(t.role)?void 0:Nne(t.role);if(t.providerPath&&!Lne.has(t.providerPath.split("/")[0]))return Mne(t.providerPath)}function fRe(t){return t==="inbox"?C.jsx(RL,{className:"size-4"}):t==="drafts"?C.jsx(AJ,{className:"size-4"}):t==="sent"?C.jsx(UJ,{className:"size-4"}):t==="archive"?C.jsx(wJ,{className:"size-4"}):t==="junk"?C.jsx(V_,{className:"size-4"}):t==="trash"?C.jsx(FJ,{className:"size-4"}):t==="flagged"?C.jsx(zJ,{className:"size-4"}):C.jsx(MJ,{className:"size-4"})}const RU={filter:"border-line bg-surface-sunken text-fg-muted",scope:"border-accent-2/40 bg-accent-2-soft text-accent-2"},zne=({label:t,onRemove:e,tone:n="filter",className:r})=>C.jsxs("span",{className:Ue("inline-flex items-center gap-1 rounded-full border px-2 py-0.5 text-2xs",RU[n],r),children:[C.jsx("span",{children:t}),C.jsx("button",{type:"button",onClick:e,className:"shrink-0 rounded-full p-0.5 hover:bg-fg-muted/20 transition-colors","aria-label":`Remove filter: ${t}`,children:C.jsx(Ms,{className:"size-3"})})]}),jne=_.forwardRef(({label:t,onRemove:e,onActivate:n,tone:r="filter",focused:a=!1,onKeyDown:s,onFocusLabel:i,className:u},c)=>C.jsxs("span",{role:"row",tabIndex:-1,className:Ue("inline-flex max-w-48 items-center gap-1 rounded-full border px-2 py-0.5 text-2xs transition-colors",RU[r],a&&"ring-2 ring-ring",u),children:[C.jsx("button",{ref:c,type:"button",role:"gridcell",tabIndex:a?0:-1,onClick:n,onFocus:i,onKeyDown:s,className:Ue("block min-w-0 max-w-full truncate rounded-full outline-none",n?"cursor-pointer":"cursor-default"),children:t}),C.jsx("button",{type:"button",role:"gridcell",tabIndex:-1,onClick:e,className:"block shrink-0 rounded-full p-0.5 transition-colors hover:bg-fg-muted/20","aria-label":`Remove filter: ${t}`,children:C.jsx(Ms,{className:"size-3"})})]}));jne.displayName="SearchChipRow";const hRe=({tokens:t,className:e})=>t.length===0?null:C.jsx("div",{className:Ue("flex flex-wrap items-center gap-1.5 border-b border-line bg-surface px-row-inset py-1.5",e),children:t.map(n=>C.jsx(zne,{label:n.label,onRemove:n.onRemove},n.label))});function Fne(t){const[e,n]=_.useState(!1),r=e?_J:kJ,a=e?"Hide password":"Show password";return C.jsx(ts,{...t,type:e?"text":"password",trailing:C.jsx("button",{type:"button","aria-label":a,"aria-pressed":e,title:a,onClick:()=>n(s=>!s),className:"-my-1 -mr-2 flex size-11 shrink-0 cursor-pointer items-center justify-center rounded-md text-fg-subtle transition-colors hover:text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:C.jsx(r,{className:"size-4","aria-hidden":!0})})})}const Bne={info:"bg-accent-2",success:"bg-positive",warning:"bg-warning",danger:"bg-danger"};function $ne({value:t,max:e,tone:n="info",indeterminate:r=!1,className:a}){const s=r?100:e<=0?0:Math.min(100,Math.max(0,t/e*100));return C.jsx("div",{role:"progressbar","aria-valuenow":r?void 0:t,"aria-valuemin":r?void 0:0,"aria-valuemax":r?void 0:e,className:Ue("h-1.5 w-full overflow-hidden rounded-full bg-surface-sunken",a),children:C.jsx("div",{className:Ue("h-full rounded-full transition-[width] duration-300 ease-out",Bne[n],r&&"w-1/3 animate-pulse"),style:r?void 0:{width:`${s}%`}})})}var Uh;(function(t){t[t.UP=-1]="UP",t[t.DOWN=1]="DOWN"})(Uh||(Uh={}));function Hne(t){var e=getComputedStyle(t).overflowY;return t===document.scrollingElement&&e==="visible"?!0:!(e!=="scroll"&&e!=="auto")}function qne(t,e){if(!Hne(t))return!1;if(e===Uh.DOWN){var n=t.scrollTop+t.clientHeight;return n<t.scrollHeight}if(e===Uh.UP)return t.scrollTop>0;throw new Error("unsupported direction")}function IU(t,e){return qne(t,e)?!0:t.parentElement==null?!1:IU(t.parentElement,e)}function OU(t,e){e===void 0&&(e={});var n=e.insertAt;if(!(!t||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",n==="top"&&r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a),a.styleSheet?a.styleSheet.cssText=t:a.appendChild(document.createTextNode(t))}}var Wne=`.lds-ellipsis {
14
+ `+dr),Rr&&(dr=sl(dr)),O&&Cu?j(dr):dr},e.setConfig=function(){let me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Pd(me),bn=!0,Ir=Ce,ss=Ee},e.clearConfig=function(){Xr=null,bn=!1,Ir=null,ss=null,O=P,I=""},e.isValidAttribute=function(me,L,J){Xr||Pd({});const pe=rt(me),Ae=rt(L);return jd(pe,Ae,J)},e.addHook=function(me,L){typeof L=="function"&&qn(D,me)&&lc(D[me],L)},e.removeHook=function(me,L){if(qn(D,me)){if(L!==void 0){const J=wte(D[me],L);return J===-1?void 0:xte(D[me],J,1)[0]}return C6(D[me])}},e.removeHooks=function(me){qn(D,me)&&(D[me]=[])},e.removeAllHooks=function(){D=D6()},e}var uRe=fU();function hU({children:t,className:e}){return C.jsx("div",{"data-auth-page":!0,className:Ue("flex min-h-dvh w-full flex-col items-center justify-center overflow-y-auto bg-surface-sunken pb-[max(2rem,env(safe-area-inset-bottom,0px))] pl-[max(1rem,env(safe-area-inset-left,0px))] pr-[max(1rem,env(safe-area-inset-right,0px))] pt-[max(2rem,env(safe-area-inset-top,0px))] text-fg",e),style:{backgroundImage:"radial-gradient(at 20% 0%, color-mix(in oklch, var(--accent) 8%, transparent) 0px, transparent 50%), radial-gradient(at 80% 100%, color-mix(in oklch, var(--accent) 8%, transparent) 0px, transparent 50%)"},children:C.jsx("div",{className:"w-full max-w-[26rem]",children:t})})}const Wte="Secure sign-in powered by AWS Cognito";function pU(t){const e=t?.note??"Secure sign-in";return C.jsx("div",{className:"text-center pt-5",children:C.jsx("p",{className:"text-xs text-fg-muted",children:e})})}const Vte=()=>C.jsxs("svg",{width:"36",height:"36",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:"text-accent",children:[C.jsx("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),C.jsx("path",{d:"M3 7l9 6 9-6"})]});function mU({wordmark:t="remit,",tagline:e="your email client in the cloud.",mark:n=C.jsx(Vte,{})}){return C.jsxs("div",{className:"text-center pb-6",children:[C.jsx("div",{className:"flex items-center justify-center pb-3",children:n}),C.jsx("h1",{className:"text-[1.75rem] font-semibold tracking-[-0.01em] text-fg",children:t}),C.jsx("p",{className:"mt-1 text-sm text-fg-muted",children:e})]})}const Gte={info:"bg-accent-2/15 text-accent-2 border-accent-2/40",success:"bg-positive/15 text-positive border-positive/40",warning:"bg-warning/15 text-warning border-warning/40",danger:"bg-danger/15 text-danger border-danger/40"},Kte={info:"bg-surface-sunken text-fg-muted",success:"bg-positive/10 text-positive",warning:"bg-warning/10 text-warning",danger:"bg-danger-soft text-danger"},Yte={info:"status",success:"status",warning:"alert",danger:"alert"};function PE({tone:t="info",variant:e="framed",onDismiss:n,role:r,className:a,children:s,...i}){const u=e==="soft";return C.jsxs("div",{role:r??Yte[t],className:Ue("flex gap-2 px-3 py-2 text-sm",u?Ue("items-start rounded-md",Kte[t]):Ue("items-center border",Gte[t]),a),...i,children:[C.jsx("div",{className:"flex-1 min-w-0",children:s}),n&&(u?C.jsx(on,{variant:"ghost",size:"sm",icon:C.jsx(Ms,{className:"size-3.5"}),onClick:n,"aria-label":"Dismiss",className:"-mr-1 shrink-0"}):C.jsx("button",{type:"button",onClick:n,"aria-label":"Dismiss",className:"shrink-0 rounded-md p-1 hover:bg-fg/10 transition-colors",children:C.jsx(Ms,{className:"size-4","aria-hidden":"true"})}))]})}function Zte({id:t,reason:e,nudged:n,className:r}){return C.jsxs(C.Fragment,{children:[C.jsx("p",{id:t,className:Ue(r,!n&&"sr-only"),children:e}),C.jsx("span",{role:"status","aria-live":"polite",className:"sr-only",children:n?e:""})]})}function Q_({className:t,children:e,...n}){return C.jsx("label",{className:Ue("mb-1 block text-xs font-medium text-fg-muted",t),...n,children:e})}const L6={type:"none"};function Xte(t){if(!t.open||t.count<=0)return L6;if(t.key==="ArrowDown"){const n=t.activeIndex+1;return{type:"move",index:n>=t.count?0:n}}if(t.key==="ArrowUp"){const n=t.activeIndex-1;return{type:"move",index:n<0?t.count-1:n}}return t.key==="Escape"?{type:"dismiss"}:(t.key==="Enter"||(t.acceptKeys??[]).includes(t.key))&&t.activeIndex>=0&&t.activeIndex<t.count?{type:"accept",index:t.activeIndex}:L6}function Qte({count:t,onAccept:e,acceptKeys:n}){const[r,a]=_.useState(!1),[s,i]=_.useState(-1),u=_.useId().replace(/[^a-zA-Z0-9_-]/g,""),c=`suggest-${u}`,f=_.useCallback(g=>`suggest-${u}-option-${g}`,[u]);_.useEffect(()=>{i(-1),a(!1)},[t]);const h=t>0&&!r,m=_.useCallback(g=>{const y=Xte({key:g.key,open:h,count:t,activeIndex:s,acceptKeys:n});return y.type==="none"?!1:(g.preventDefault(),y.type==="move"&&i(y.index),y.type==="dismiss"&&a(!0),y.type==="accept"&&e(y.index),!0)},[h,t,s,n,e]);return{open:h,activeIndex:s,setActiveIndex:i,dismiss:_.useCallback(()=>a(!0),[]),reopen:_.useCallback(()=>a(!1),[]),handleKeyDown:m,listId:c,optionId:f,comboboxProps:{role:"combobox","aria-expanded":h,"aria-controls":c,"aria-autocomplete":"list",...s>=0?{"aria-activedescendant":f(s)}:{},...h?{"data-escape-owner":""}:{}}}}const Jte={similar:"Anything similar",properties:"Its properties"};function DE(t){return Jte[t]}const ene={similar:"Reads the messages you picked and finds more that read like them.",properties:"Matches on what the messages say about themselves — sender, subject, list. No reading involved."};function gU(t){return ene[t]}const tne={From:"From",Subject:"Subject",HasWords:"Has the words",ListId:"List",FromDomain:"Domain"};function $c(t){return tne[t]}const nne={ListId:"The mailing list's List-Id header, matched exactly. New mail is matched as it arrives — mail delivered before this was set up may not carry it yet.",FromDomain:"The sender's registrable domain — matches anyone at it, subdomains included (a look-alike like example.com.evil.test never matches)."};function rne(t){return nne[t]}function ane(t){return t==="HasWords"}function sne(t){return t.widen!==void 0&&!t.widen.inactive}function vU(t){return sne(t)?[]:t.clauses.filter(e=>ane(e.field))}const one=["From","Subject","HasWords","ListId","FromDomain"];function $0(t){return`Similar to these ${t.anchorCount}`}const ine={all:"Match all",any:"Match any"};function H0(t){return ine[t]}function J_(t){return t==="all"?"and":"or"}function yU(t){if(t.status==="loading")return"Counting matches…";if(t.status==="error")return t.reason;if(t.count===0)return"No mail matches yet";const e=t.count===1?"message":"messages",n=`${t.count} ${e} match`;return t.stale?`${n} — recounting`:n}const lne={once:"Just once",standing:"Keep doing this",until:"Until a date"};function c0(t){return lne[t]}function bU(t){return t==="once"?"Apply now":t==="standing"?"Save rule":"Save until then"}const Aa={noMatch:"Add a clause so the rule has something to match.",bodyTextOnce:"Applying once can't read message bodies. Save this as a rule instead, or drop the “has the words” clause.",noAction:"Pick a folder to move into, or a label to apply.",unnamed:"Name this rule so you can find it later.",noUntilDate:"Pick the date this rule should stop on.",counting:"Counting matches — save once the count settles.",recounting:"Recounting matches — save once the count settles."},cRe="Can't count matches — “has the words” reads message bodies, which only a saved rule does.";function SU(t){if(t.status==="loading")return Aa.counting;if(t.status==="ready"&&t.stale)return Aa.recounting}function une(t,e){return t.clauses.length>0||t.widen!==void 0&&!t.widen.inactive?t.scope==="once"&&vU(t).length>0?Aa.bodyTextOnce:!t.moveMailboxId&&!t.labelId?Aa.noAction:(t.scope==="standing"||t.scope==="until")&&(t.name??"").trim()===""?Aa.unnamed:t.scope==="until"&&!t.until?Aa.noUntilDate:SU(e):Aa.noMatch}const cne={default:Ue("flex h-9 items-center gap-2 rounded-md border border-line bg-surface-sunken px-3 text-sm","focus-within:border-line-strong focus-within:ring-2 focus-within:ring-ring/30 transition-colors"),inline:"flex items-center gap-2 bg-transparent text-sm"};function ts({icon:t,className:e,variant:n="default",trailing:r,ref:a,...s}){return C.jsxs("div",{className:Ue(cne[n],e),children:[t&&C.jsx("span",{className:"text-fg-subtle shrink-0",children:t}),C.jsx("input",{ref:a,className:"min-w-0 flex-1 bg-transparent text-fg placeholder:text-fg-subtle outline-none",...s}),r]})}function wU({icon:t,className:e,children:n,...r}){return C.jsxs("div",{className:Ue("relative flex h-9 items-center gap-2 rounded-md border border-line bg-surface-sunken pl-3 text-sm","focus-within:border-line-strong focus-within:ring-2 focus-within:ring-ring/30 transition-colors",e),children:[t&&C.jsx("span",{className:"shrink-0 text-fg-subtle",children:t}),C.jsx("select",{className:"min-w-0 flex-1 appearance-none bg-transparent py-0 pr-8 text-fg outline-none",...r,children:n}),C.jsx(kE,{className:"pointer-events-none absolute right-2.5 size-4 text-fg-subtle"})]})}function dne({id:t,suggestions:e,activeIndex:n,optionId:r,onPick:a,onHighlight:s,label:i,className:u}){return e.length===0?null:C.jsx("div",{id:t,role:"listbox","aria-label":i,className:Ue("max-h-44 overflow-y-auto rounded-md border border-line bg-surface py-1 shadow-sm",u),children:e.map((c,f)=>C.jsxs("div",{id:r(f),role:"option",tabIndex:-1,"aria-selected":f===n,className:Ue("flex cursor-pointer items-baseline gap-2 px-3 py-2 text-sm text-fg",f===n&&"bg-accent-2-soft"),onMouseDown:h=>{h.preventDefault(),a(c)},onMouseEnter:()=>s(f),children:[C.jsx("span",{className:"min-w-0 flex-1 truncate",children:c.label??c.value}),c.hint&&C.jsx("span",{className:"shrink-0 truncate text-2xs text-fg-subtle",children:c.hint}),c.source&&C.jsx("span",{className:"shrink-0 text-2xs text-fg-subtle",children:c.source})]},c.value))})}const q0="inline-flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-xs";function xU({clause:t,onEdit:e,onRemove:n}){return C.jsxs("span",{className:Ue(q0,t.derived?"border-dashed border-line-strong bg-surface-sunken":"border-line bg-surface"),children:[C.jsxs("button",{type:"button",onClick:e,"aria-label":`Edit ${$c(t.field)} clause`,className:"flex items-center gap-1 text-left",children:[C.jsx("span",{className:"font-medium text-fg-muted",children:$c(t.field)}),C.jsx("span",{className:"text-fg",children:t.value})]}),t.derived&&C.jsx("span",{className:"text-2xs text-fg-subtle",children:"from sender"}),n&&C.jsx("button",{type:"button",onClick:n,"aria-label":`Remove ${$c(t.field)} clause`,className:"flex size-4 items-center justify-center rounded-full text-fg-subtle hover:bg-surface-sunken hover:text-fg-muted",children:C.jsx(Ms,{className:"size-3"})})]})}function U6({onRemove:t}){return C.jsx("button",{type:"button",onClick:t,"aria-label":"Remove the similar-mail widen",className:"flex size-4 items-center justify-center rounded-full hover:bg-fg-subtle/20",children:C.jsx(Ms,{className:"size-3"})})}function fne({widen:t,onRemove:e}){return t.inactive?C.jsxs("span",{className:Ue(q0,"border-dashed border-line-strong bg-surface-sunken text-fg-subtle"),children:[C.jsx(AE,{className:"size-3 shrink-0","aria-hidden":"true"}),C.jsx("span",{className:"line-through",children:$0(t)}),C.jsx("span",{className:"text-2xs",children:"not available here"}),e&&C.jsx(U6,{onRemove:e})]}):C.jsxs("span",{className:Ue(q0,"border-accent-2 bg-accent-2-soft text-accent-2"),children:[C.jsx(AE,{className:"size-3 shrink-0","aria-hidden":"true"}),C.jsx("span",{className:"font-medium",children:"…and anything similar"}),C.jsx("span",{className:"text-2xs opacity-80",children:$0(t)}),e&&C.jsx(U6,{onRemove:e})]})}function LE({label:t,onClick:e}){return C.jsxs("button",{type:"button",onClick:e,className:Ue(q0,"border-dashed border-line-strong text-fg-muted hover:border-accent-2 hover:text-accent-2"),children:[C.jsx(DJ,{className:"size-3","aria-hidden":"true"}),t]})}function CU({draft:t,mode:e,fields:n=one,suggestions:r=[],onChangeField:a,onChangeValue:s,onSubmit:i,onCancel:u}){const c=rne(t.field),f=Qte({count:r.length,onAccept:h=>s?.(r[h].value)});return C.jsxs("div",{className:"space-y-1.5 rounded-lg border border-accent-2 bg-surface p-2",children:[C.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[C.jsx(wU,{"aria-label":"Clause field",value:t.field,onChange:h=>a?.(h.target.value),className:"h-8 w-32 shrink-0",children:n.map(h=>C.jsx("option",{value:h,children:$c(h)},h))}),C.jsx(ts,{"aria-label":"Clause value",value:t.value,placeholder:"value…",autoComplete:"off",onChange:h=>{f.reopen(),s?.(h.target.value)},onKeyDown:h=>{f.handleKeyDown(h)||h.key==="Enter"&&i?.()},className:"h-8 min-w-40 flex-1",...f.comboboxProps}),C.jsx(on,{variant:"primary",size:"sm",onClick:i,disabled:t.value.trim()==="",className:"shrink-0",children:e==="add"?"Add":"Save"}),C.jsx(on,{variant:"ghost",size:"sm",onClick:u,"aria-label":"Cancel clause edit",icon:C.jsx(Ms,{className:"size-4"}),className:"shrink-0 px-2"})]}),f.open&&C.jsx(dne,{id:f.listId,suggestions:r,activeIndex:f.activeIndex,optionId:f.optionId,onPick:h=>{s?.(h.value),f.dismiss()},onHighlight:f.setActiveIndex,label:`${$c(t.field)} suggestions`}),c&&C.jsx("p",{className:"px-0.5 text-2xs text-fg-subtle",children:c})]})}function hne({preview:t}){const e=yU(t);if(t.status==="loading")return C.jsxs("p",{className:"flex items-center gap-2 text-xs text-fg-muted","aria-live":"polite",children:[C.jsx(j0,{className:"size-3.5 animate-spin","aria-hidden":"true"}),e]});if(t.status==="error")return C.jsxs("p",{className:"flex items-center gap-2 text-xs text-danger",role:"alert",children:[C.jsx(Nh,{className:"size-3.5 shrink-0","aria-hidden":"true"}),e]});const n=t.count===0;return C.jsxs("p",{className:Ue("flex items-center gap-2 text-xs",t.stale?"text-fg-subtle":n?"text-fg-muted":"font-medium text-fg"),"aria-live":"polite",children:[t.stale&&C.jsx(j0,{className:"size-3.5 animate-spin","aria-hidden":"true"}),e]})}const pne=t=>typeof t=="object"&&t!==null&&"name"in t&&t.name==="AbortError",Dh=(t,e)=>{const n=t.lastIndexOf(e);return n===-1?"":t.slice(0,n)},EU=(t,e)=>t.split(e).length-1,Lh=(t,e)=>{const n=[];let r=Dh(t,e);for(;r;)n.push(r),r=Dh(r,e);return n},mne=(t,e)=>{const n=new Set(t.map(i=>i.path)),r=new Set,a=[],s=i=>{if(!r.has(i.path)){r.add(i.path),a.push(i);for(const u of t)Dh(u.path,e)===i.path&&s(u)}};for(const i of t){const u=Dh(i.path,e);u&&n.has(u)||s(i)}return a},_U=(t,e)=>t.label.toLowerCase().includes(e)||t.path.toLowerCase().includes(e),gne=(t,e,n)=>{const r=new Set;if(!e)return r;for(const a of t)if(_U(a,e))for(const s of Lh(a.path,n))r.add(s);return r},vne=(t,e,n,r=new Set)=>{const a=(u,c)=>({folder:u,depth:EU(u.path,n),context:c,expanded:r.has(u.path)});if(!e)return t.map(u=>a(u,!1));const s=new Set;for(const u of t)_U(u,e)&&s.add(u.path);const i=new Set(s);for(const u of s)for(const c of Lh(u,n))i.add(c);return t.filter(u=>i.has(u.path)).map(u=>a(u,!s.has(u.path)))},yne=(t,e,n)=>{const r=new Set(t.map(a=>a.path));return t.filter(a=>Lh(a.path,n).every(s=>!r.has(s)||e.has(s))).map(a=>({folder:a,depth:EU(a.path,n),context:!1,expanded:e.has(a.path)}))},bne=(t,e)=>{const n=[],r=[],a=s=>{for(;r.length>0;){const i=r[r.length-1];if(!i||s?.startsWith(`${i.folder.path}${e}`))break;r.pop(),n.push({kind:"create",parent:i.folder,depth:i.depth+1})}};return t.forEach((s,i)=>{a(s.folder.path),n.push({kind:"folder",row:s,index:i}),s.expanded&&r.push(s)}),a(null),n},Es=t=>t!==void 0&&!t.context,jS=t=>t!==void 0&&!t.folder.isCurrent&&!t.context,FS=t=>{for(let e=0;e<t.length;e+=1)if(Es(t[e]))return e;return-1},Sne=t=>{for(let e=t.length-1;e>=0;e-=1)if(Es(t[e]))return e;return-1},z6=(t,e,n)=>{const r=t.length;if(r<=0)return-1;const a=e<0?n===1?-1:r:e;for(let s=1;s<=r;s+=1){const i=((a+n*s)%r+r)%r;if(Es(t[i]))return i}return-1},wne=(t,e,n)=>{const r=t[e];if(!r)return-1;const a=Dh(r.folder.path,n);if(!a)return-1;for(let s=e-1;s>=0;s-=1)if(t[s]?.folder.path===a)return Es(t[s])?s:-1;return-1},UE="flex min-h-11 min-w-0 flex-1 items-center gap-2 px-3 py-2.5 text-left text-sm transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset",kU=14,xne=60,zE=({depth:t})=>t>0?C.jsx("span",{"aria-hidden":"true",className:"shrink-0",style:{width:t*kU}}):null,jE=({depth:t})=>C.jsx("span",{"aria-hidden":"true",className:"pointer-events-none absolute right-0 bottom-0 h-px bg-line",style:{left:xne+t*kU}}),Cne=({label:t,depth:e,expanded:n,ariaLabel:r,selected:a=!1,context:s=!1,current:i=!1,currentTag:u,separated:c=!1,actions:f,tabIndex:h,onActivate:m,onFocus:g,ref:y})=>{const S=C.jsx(CJ,{className:Ue("size-4 shrink-0 text-fg-subtle transition-transform",n&&"rotate-90"),"aria-hidden":"true"}),w=C.jsx(NJ,{className:"size-4 shrink-0 text-fg-subtle","aria-hidden":"true"});return s?C.jsxs("div",{className:"relative flex items-center",children:[C.jsxs("div",{role:"treeitem","aria-level":e+1,"aria-selected":!1,"aria-expanded":n,"aria-label":r,className:Ue(UE,"opacity-60"),children:[C.jsx(zE,{depth:e}),S,w,C.jsx("span",{className:"min-w-0 flex-1 truncate",children:t})]}),f,c&&C.jsx(jE,{depth:e})]}):C.jsxs("div",{className:"relative flex items-center",children:[C.jsxs("button",{ref:y,type:"button",role:"treeitem","aria-level":e+1,"aria-selected":a,"aria-expanded":n,"aria-current":i?"true":void 0,"aria-label":r,tabIndex:h,onClick:m,onFocus:g,className:Ue(UE,"hover:bg-surface-raised active:bg-surface-sunken",i&&"text-fg-muted"),children:[C.jsx(zE,{depth:e}),S,w,C.jsx("span",{className:"min-w-0 flex-1 truncate",children:t}),i&&u&&C.jsx("span",{className:"shrink-0 text-xs text-fg-muted",children:u}),a&&C.jsx(rv,{className:"size-4 shrink-0 text-accent","aria-hidden":"true"})]}),f,c&&C.jsx(jE,{depth:e})]})},j6=({label:t,ariaLabel:e,depth:n=0,prominence:r="prominent",separated:a=!1,onOpen:s})=>C.jsxs("div",{className:Ue("relative",r==="prominent"&&"p-2"),children:[C.jsxs("button",{type:"button",onClick:s,"aria-label":e,"data-prominence":r,className:Ue(UE,"w-full active:bg-surface-sunken",r==="prominent"?"rounded-lg border border-line-strong border-dashed font-medium text-fg-muted hover:border-accent-2 hover:text-accent-2":"text-fg-subtle hover:bg-surface-raised hover:text-fg-muted"),children:[C.jsx(zE,{depth:n}),C.jsx("span",{"aria-hidden":"true",className:"size-4 shrink-0"}),C.jsx(IJ,{className:"size-4 shrink-0","aria-hidden":"true"}),C.jsx("span",{className:"min-w-0 flex-1 truncate",children:t})]}),a&&C.jsx(jE,{depth:n})]}),AU={nameLabel:"Folder name",namePlaceholder:"Hotels",insideLabel:"Inside",create:"Create folder",cancel:"Cancel",createPending:"Creating folder…"},Ene=({parentLabel:t,name:e,onNameChange:n,onSubmit:r,onCancel:a,pending:s=!1,error:i,labels:u})=>{const c={...AU,...u},f=_.useId(),h=_.useRef(null),m=_.useRef(null);return _.useEffect(()=>{h.current?.focus({preventScroll:!0}),m.current?.scrollIntoView({block:"nearest"})},[]),C.jsxs("div",{ref:m,className:"space-y-3 border-y border-line bg-surface-sunken px-3 py-3",children:[C.jsxs("div",{children:[C.jsx(Q_,{htmlFor:f,children:c.nameLabel}),C.jsx(ts,{id:f,ref:h,value:e,placeholder:c.namePlaceholder,onChange:g=>n(g.target.value),onKeyDown:g=>{g.key==="Enter"&&(g.preventDefault(),r()),g.key==="Escape"&&(g.preventDefault(),a())}})]}),C.jsxs("p",{className:"text-xs text-fg-muted",children:[c.insideLabel," ",C.jsx("span",{className:"font-medium text-fg",children:t})]}),i&&C.jsx("p",{className:"text-xs text-danger",role:"alert",children:i}),C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx(on,{variant:"ghost",size:"md",onClick:a,className:"min-h-11 shrink-0",children:c.cancel}),C.jsx(on,{variant:"secondary",size:"md",onClick:r,disabled:s,className:"min-h-11 shrink-0",children:s?c.createPending:c.create})]})]})},_ne={...AU,filterPlaceholder:"Filter folders…",filterAriaLabel:"Filter folders",treeAriaLabel:"Destination folders",currentSuffix:"(current folder)",currentTag:"current",contextSuffix:"(containing folder)",emptyMessage:t=>`No folders match "${t}"`,noFolders:"No folders to show",optionLabel:t=>`Move to ${t}`,newFolder:"New folder",newSubfolder:t=>`New folder inside ${t}`,topLevel:"Top level",nameRequired:"Give the folder a name.",createError:"Couldn't create that folder. Please try again."},TU=({folders:t,selectedId:e,onSelect:n,rowActions:r,onCreateFolder:a,onCancel:s,delimiter:i="/",labels:u})=>{const c={..._ne,...u},[f,h]=_.useState(""),[m,g]=_.useState(()=>{const G=t.find(ue=>ue.id===e);return new Set(G?Lh(G.path,i):[])}),[y,S]=_.useState(null),[w,x]=_.useState(""),[E,k]=_.useState(),[A,R]=_.useState(!1),[N,O]=_.useState(-1),I=_.useRef([]),P=_.useRef(!1),U=_.useRef(null);_.useEffect(()=>()=>U.current?.abort(),[]);const q=f.trim().toLowerCase(),z=_.useMemo(()=>mne(t,i),[t,i]),j=_.useMemo(()=>{const G=gne(z,q,i);return G.size===0?m:new Set([...m,...G])},[z,m,q,i]),H=_.useMemo(()=>q?vne(z,q,i,j):yne(z,j,i),[z,q,i,j]),W=_.useMemo(()=>a?bne(H,i):void 0,[H,i,a]);_.useEffect(()=>{O(G=>Es(H[G])?G:FS(H))},[H]),_.useEffect(()=>{P.current&&(P.current=!1,!(N<0)&&I.current[N]?.focus())},[N]);const se=_.useCallback((G,ue)=>{g(oe=>{if(ue)return new Set([...Lh(G,i),G]);const ce=new Set(oe);return ce.delete(G),ce})},[i]),$=_.useCallback(G=>{jS(G)&&n?.(G.folder.id),se(G.folder.path,!G.expanded)},[n,se]),Q=_.useCallback(()=>{U.current?.abort(),S(null),x(""),k(void 0),R(!1)},[]),re=_.useCallback(G=>{U.current?.abort(),S({anchorId:G?.id??null,parentPath:G?.path??"",parentLabel:G?.label??c.topLevel}),x(""),k(void 0),R(!1)},[c.topLevel]),he=_.useCallback(()=>{if(!a||!y||A)return;const G=w.trim();if(G===""){k(c.nameRequired);return}R(!0),k(void 0),U.current?.abort();const ue=new AbortController;U.current=ue;const oe=y.parentPath;a(G,oe,ue.signal).then(ce=>{R(!1),S(null),x(""),oe&&se(oe,!0),n?.(ce.id)}).catch(ce=>{pne(ce)||(k(ce instanceof Error?ce.message:c.createError),R(!1))})},[a,y,A,w,n,se,c.nameRequired,c.createError]),xe=_.useCallback(G=>{const ue=G.target;if(!(ue instanceof Element)||!ue.closest('[role="treeitem"]'))return;const oe=be=>{G.preventDefault(),P.current=!0,O(be)},ce=H[N];switch(G.key){case"ArrowDown":return oe(z6(H,N,1));case"ArrowUp":return oe(z6(H,N,-1));case"Home":return oe(FS(H));case"End":return oe(Sne(H));case"ArrowRight":{if(!Es(ce)||!ce)return;if(G.preventDefault(),!ce.expanded){se(ce.folder.path,!0);return}const be=N+1;Es(H[be])&&oe(be);return}case"ArrowLeft":{if(!Es(ce)||!ce)return;if(G.preventDefault(),ce.expanded){se(ce.folder.path,!1);return}const be=wne(H,N,i);be>=0&&oe(be);return}case"Enter":case" ":{if(!Es(ce)||!ce)return;G.preventDefault(),$(ce);return}case"Escape":G.preventDefault(),s?.();return;default:return}},[H,N,i,$,se,s]),D=y!==null&&y.anchorId!==null&&(W?.some(G=>G.kind==="create"&&G.parent.id===y.anchorId)??!1),Z=y&&C.jsx(Ene,{parentLabel:y.parentLabel,name:w,onNameChange:G=>{x(G),k(void 0)},onSubmit:he,onCancel:Q,pending:A,error:E,labels:c}),K=G=>G.context?`${G.folder.label} ${c.contextSuffix}`:jS(G)?c.optionLabel(G.folder.label):`${G.folder.label} ${c.currentSuffix}`,X=(G,ue,oe)=>{const{folder:ce,depth:be}=G,Ge=jS(G);return C.jsx(Cne,{ref:Ce=>{I.current[ue]=Ce},label:ce.label,depth:be,expanded:G.expanded,context:G.context,current:ce.isCurrent,currentTag:c.currentTag,selected:Ge&&ce.id===e,separated:oe,actions:r?.(ce),ariaLabel:K(G),tabIndex:ue===N?0:-1,onActivate:()=>$(G),onFocus:()=>O(ue)})};return C.jsxs("div",{className:"flex min-h-0 w-full min-w-0 flex-col",children:[C.jsx(ts,{variant:"inline",className:"border-b border-line px-3 py-2",icon:C.jsx(LJ,{className:"size-4","aria-hidden":"true"}),type:"search",value:f,onChange:G=>h(G.target.value),onKeyDown:G=>{if(G.key==="Escape"){G.preventDefault(),s?.();return}if(G.key!=="ArrowDown")return;G.preventDefault();const ue=Es(H[N])?N:FS(H);ue<0||(P.current=!0,O(ue),I.current[ue]?.focus())},placeholder:c.filterPlaceholder,"aria-label":c.filterAriaLabel}),a&&C.jsx("div",{className:"shrink-0 border-b border-line","data-create-anchor":"top",children:y&&!D?Z:C.jsx(j6,{label:c.newFolder,ariaLabel:c.newFolder,prominence:"prominent",onOpen:()=>re(null)})}),H.length===0?C.jsx("p",{className:"px-3 py-3 text-sm text-fg-muted","aria-live":"polite",children:t.length===0?c.noFolders:c.emptyMessage(f)}):C.jsx("div",{role:"tree","aria-label":c.treeAriaLabel,className:"min-h-0 flex-1 overflow-y-auto overflow-x-hidden pb-24",onKeyDown:xe,children:(W??H.map((G,ue)=>({kind:"folder",row:G,index:ue}))).map((G,ue,oe)=>{const ce=ue<oe.length-1;return G.kind==="create"?C.jsx("div",{role:"none","data-create-anchor":G.parent.id,children:y?.anchorId===G.parent.id?Z:C.jsx(j6,{label:c.newFolder,ariaLabel:c.newSubfolder(G.parent.label),depth:G.depth,prominence:"quiet",separated:ce,onOpen:()=>re(G.parent)})},`new:${G.parent.id}`):C.jsx("div",{role:"none",children:X(G.row,G.index,ce)},G.row.folder.id)})})]})},kne={sm:"min-h-9 px-3 text-xs",md:"min-h-11 px-4 text-sm"};function d0({name:t,options:e,value:n,onChange:r,size:a="md","aria-label":s}){const i=e.findIndex(u=>u.value===n);return C.jsx("div",{role:"radiogroup","aria-label":s,className:"inline-flex rounded-md border border-line bg-surface-sunken p-0.5",children:e.map((u,c)=>{const f=u.value===n,h=!f&&c<e.length-1&&i!==c+1;return C.jsxs("label",{className:Ue("relative flex cursor-pointer items-center justify-center rounded-[5px] font-medium transition-colors",kne[a],f?"bg-surface text-fg shadow":"text-fg-muted hover:text-fg",h&&"after:pointer-events-none after:absolute after:right-0 after:top-1/4 after:h-1/2 after:w-px after:bg-line"),children:[C.jsx("input",{type:"radio",name:t,value:u.value,checked:f,onChange:()=>r(u.value),className:"sr-only"}),u.label]},u.value)})})}const Ane=[{value:"all",label:H0("all")},{value:"any",label:H0("any")}],Tne=[{value:"similar",label:DE("similar")},{value:"properties",label:DE("properties")}],F6=[{value:"once",label:"Just once"},{value:"standing",label:"Keep doing this"},{value:"until",label:"Until a date"}],B6="__filter_create_label__";function Rne({folders:t,value:e,delimiter:n="/",onChangeMove:r,onCreateFolder:a}){const[s,i]=_.useState(!1),[u,c]=_.useState(),[f,h]=_.useState([]),m=_.useMemo(()=>{const E=new Set(t.map(k=>k.id));return[...t,...f.filter(k=>!E.has(k.id))]},[t,f]),g=_.useMemo(()=>{if(a)return async(E,k,A)=>{const R=await a(E,k,A);return h(N=>N.some(O=>O.id===R.id)?N:[...N,R]),R}},[a]),y=m.find(E=>E.id===e),S=m.find(E=>E.id===u),w=E=>{const k=E.path.split(n);return k.map((A,R)=>{const N=k.slice(0,R+1).join(n);return m.find(O=>O.path===N)?.label??A}).join(" / ")},x=()=>{i(!1),c(void 0)};return s?C.jsxs("div",{className:"space-y-2",children:[C.jsx("div",{className:"flex h-72 min-h-0 overflow-hidden rounded-md border border-line bg-surface",children:C.jsx(TU,{folders:m,selectedId:u,delimiter:n,onSelect:c,onCreateFolder:g,onCancel:x,labels:{createPending:"Waiting for the mail server to confirm the folder…"}})}),S?C.jsx(on,{variant:"primary",onClick:()=>{r?.(S.id),x()},className:"w-full",children:C.jsx("span",{className:"truncate",children:`Move matches to ${w(S)}`})}):C.jsx("p",{className:"text-2xs text-fg-subtle",children:"Tap a folder to open it, or make a new one where you want it."}),C.jsx(on,{variant:"ghost",size:"sm",onClick:x,className:"w-full",children:"Cancel"})]}):C.jsxs("div",{className:"rounded-md border border-line bg-surface-sunken p-3",children:[C.jsx("p",{className:"text-sm font-medium text-fg",children:y?w(y):"No folder yet"}),C.jsxs("div",{className:"mt-1 flex flex-wrap items-center gap-3",children:[C.jsx(on,{variant:"ghost",size:"sm",className:"px-0",onClick:()=>{c(e),i(!0)},children:"Choose a folder"}),y&&C.jsx(on,{variant:"ghost",size:"sm",className:"px-0",onClick:()=>r?.(""),children:"Don't move matches"})]})]})}function Ine({labels:t,value:e,onChangeLabel:n,onCreateLabel:r}){const[a,s]=_.useState(!1),[i,u]=_.useState(""),[c,f]=_.useState(!1),[h,m]=_.useState(),[g,y]=_.useState([]),S=_.useMemo(()=>{const A=new Set(t.map(R=>R.id));return[...t,...g.filter(R=>!A.has(R.id))]},[t,g]),w=S.find(A=>A.id===e),x=A=>{if(A===B6){m(void 0),s(!0);return}n?.(A)},E=()=>{if(!r)return;const A=i.trim();A!==""&&(f(!0),m(void 0),r(A).then(R=>{y(N=>N.some(O=>O.id===R.id)?N:[...N,R]),n?.(R.id),s(!1),u(""),f(!1)}).catch(R=>{m(R instanceof Error?R.message:"Couldn't create that label. Please try again."),f(!1)}))},k=()=>{s(!1),u(""),m(void 0)};return C.jsxs("div",{className:"space-y-2",children:[C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsxs(wU,{"aria-label":"Label to apply",value:e,onChange:A=>x(A.target.value),className:"flex-1",children:[C.jsx("option",{value:"",children:"No label"}),S.map(A=>C.jsx("option",{value:A.id,children:A.name},A.id)),r&&C.jsx("option",{value:B6,children:"+ New label…"})]}),w&&C.jsx(fte,{label:{...w,labelId:w.id}})]}),a&&C.jsxs("div",{className:"space-y-2 rounded-md border border-line bg-surface-sunken p-2",children:[C.jsx(ts,{value:i,onChange:A=>u(A.target.value),placeholder:"Label name","aria-label":"New label name",disabled:c,autoFocus:!0,onKeyDown:A=>{A.key==="Enter"&&(A.preventDefault(),E()),A.key==="Escape"&&(A.preventDefault(),k())}}),h&&C.jsx("p",{className:"text-2xs text-danger",role:"alert",children:h}),C.jsxs("div",{className:"flex gap-2",children:[C.jsx(on,{variant:"primary",size:"sm",onClick:E,disabled:c||i.trim()==="",children:c?"Creating…":"Create label"}),C.jsx(on,{variant:"ghost",size:"sm",onClick:k,disabled:c,children:"Cancel"})]})]})]})}function dRe({rule:t,folders:e,delimiter:n,labels:r=[],preview:a,notice:s,semanticAvailable:i=!1,matchMode:u,onChangeMatchMode:c,clauseFields:f,anchorLocked:h=!1,clauseSuggestions:m,clauseEdit:g,onStartAddClause:y,onStartEditClause:S,onRemoveClause:w,onChangeDraftField:x,onChangeDraftValue:E,onSubmitClause:k,onCancelClause:A,onAddWiden:R,onRemoveWiden:N,onChangeMatchOperator:O,onChangeMove:I,onCreateFolder:P,onChangeLabel:U,onCreateLabel:q,onChangeScope:z,onChangeName:j,onChangeUntil:H,onCommit:W,onCancel:se}){const $=t.widen&&!t.widen.inactive?1:0,re=t.clauses.length+$>=2,he=J_(t.matchOperator),xe=une(t,a),D=t.scope==="standing"||t.scope==="until",Z=h?F6.filter(K=>K.value!=="once"):F6;return C.jsxs("div",{className:"flex min-h-0 flex-col",children:[C.jsxs("div",{className:"border-b border-line px-5 py-3",children:[C.jsx("h2",{className:"text-sm font-semibold text-fg",children:"Filter rule"}),C.jsx("p",{className:"mt-0.5 text-xs text-fg-muted",children:"These chips are the whole rule — what you see is what applies."})]}),C.jsxs("div",{className:"min-h-0 flex-1 space-y-5 overflow-y-auto px-5 py-4",children:[s,u&&C.jsxs("section",{className:"space-y-1.5",children:[C.jsx("p",{className:"text-xs font-medium text-fg-muted",children:"Match on"}),C.jsx(d0,{name:"rule-match-mode",size:"sm","aria-label":"What the rule matches on",options:Tne,value:u,onChange:K=>c?.(K)}),C.jsx("p",{className:"text-2xs text-fg-subtle",children:gU(u)})]}),C.jsxs("section",{className:"space-y-3",children:[C.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[t.clauses.map((K,X)=>C.jsxs(_.Fragment,{children:[X>0&&C.jsx("span",{className:"text-2xs font-medium uppercase text-fg-subtle",children:he}),C.jsx(xU,{clause:K,onEdit:()=>S?.(K.id),onRemove:()=>w?.(K.id)})]},K.id)),t.widen&&C.jsxs(C.Fragment,{children:[t.clauses.length>0&&!t.widen.inactive&&C.jsx("span",{className:"text-2xs font-medium uppercase text-fg-subtle",children:he}),C.jsx(fne,{widen:t.widen,onRemove:h?void 0:N})]}),!g&&C.jsx(LE,{label:"Add clause",onClick:y}),!t.widen&&!h&&i&&u!=="properties"&&!g&&C.jsx(LE,{label:"…and similar",onClick:R})]}),g&&C.jsx(CU,{draft:g.draft,mode:g.mode,fields:f,suggestions:m,onChangeField:x,onChangeValue:E,onSubmit:k,onCancel:A}),h&&t.widen&&C.jsx("p",{className:"text-2xs text-fg-subtle",children:"This filter's similar-mail match is fixed to the message it was created from — create a new filter to change it."}),re&&C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx("span",{className:"text-xs text-fg-muted",children:"Match"}),C.jsx(d0,{name:"match-operator",size:"sm","aria-label":"Match operator",options:Ane,value:t.matchOperator,onChange:K=>O?.(K)})]})]}),C.jsxs("section",{className:"space-y-2",children:[C.jsx("p",{className:"text-xs font-medium text-fg-muted",children:"Move matches to"}),C.jsx(Rne,{folders:e,value:t.moveMailboxId,delimiter:n,onChangeMove:I,onCreateFolder:P})]}),C.jsxs("section",{className:"space-y-2",children:[C.jsx("p",{className:"text-xs font-medium text-fg-muted",children:"Apply a label"}),C.jsx(Ine,{labels:r,value:t.labelId??"",onChangeLabel:U,onCreateLabel:q})]}),C.jsxs("section",{className:"space-y-2",children:[C.jsx("p",{className:"text-xs font-medium text-fg-muted",children:"How long"}),C.jsx(d0,{name:"rule-scope",size:"sm","aria-label":"Rule scope",options:Z,value:t.scope,onChange:K=>z?.(K)}),D&&C.jsx(ts,{value:t.name??"",onChange:K=>j?.(K.target.value),placeholder:"Name this rule (e.g. Receipts)","aria-label":"Rule name",className:"w-full"}),t.scope==="until"&&C.jsxs("div",{className:"flex items-center gap-2 text-xs text-fg-muted",children:[C.jsx("span",{children:"Until"}),C.jsx(ts,{type:"date",value:t.until??"",onChange:K=>H?.(K.target.value),"aria-label":"Expiry date",className:"flex-1"})]})]}),C.jsx("div",{className:"border-t border-line pt-3",children:C.jsx(hne,{preview:a})})]}),C.jsxs("div",{className:"space-y-2 border-t border-line px-5 py-3",children:[xe&&C.jsx("p",{className:"text-xs text-fg-subtle",role:"status",children:xe}),C.jsx(on,{variant:"primary",onClick:W,disabled:xe!==void 0,className:"w-full",children:bU(t.scope)}),C.jsx(on,{variant:"ghost",onClick:se,className:"w-full",children:"Not now"})]})]})}const One={inbox:"Inbox",drafts:"Drafts",sent:"Sent",archive:"Archive",junk:"Spam",trash:"Trash",flagged:"Starred",all:"All Mail"};function Nne(t){return One[t]}function Mne(t){const e=t.split("/");return e[e.length-1]||t}const Pne=new Set(["all","flagged"]);function Dne(t){return Pne.has(t)}const Lne=new Set(["[Gmail]","[Google Mail]"]);function Une(t){if(t.role)return Dne(t.role)?void 0:Nne(t.role);if(t.providerPath&&!Lne.has(t.providerPath.split("/")[0]))return Mne(t.providerPath)}function fRe(t){return t==="inbox"?C.jsx(RL,{className:"size-4"}):t==="drafts"?C.jsx(AJ,{className:"size-4"}):t==="sent"?C.jsx(UJ,{className:"size-4"}):t==="archive"?C.jsx(wJ,{className:"size-4"}):t==="junk"?C.jsx(V_,{className:"size-4"}):t==="trash"?C.jsx(FJ,{className:"size-4"}):t==="flagged"?C.jsx(zJ,{className:"size-4"}):C.jsx(MJ,{className:"size-4"})}const RU={filter:"border-line bg-surface-sunken text-fg-muted",scope:"border-accent-2/40 bg-accent-2-soft text-accent-2"},zne=({label:t,onRemove:e,tone:n="filter",className:r})=>C.jsxs("span",{className:Ue("inline-flex items-center gap-1 rounded-full border px-2 py-0.5 text-2xs",RU[n],r),children:[C.jsx("span",{children:t}),C.jsx("button",{type:"button",onClick:e,className:"shrink-0 rounded-full p-0.5 hover:bg-fg-muted/20 transition-colors","aria-label":`Remove filter: ${t}`,children:C.jsx(Ms,{className:"size-3"})})]}),jne=_.forwardRef(({label:t,onRemove:e,onActivate:n,tone:r="filter",focused:a=!1,onKeyDown:s,onFocusLabel:i,className:u},c)=>C.jsxs("span",{role:"row",tabIndex:-1,className:Ue("inline-flex max-w-48 items-center gap-1 rounded-full border px-2 py-0.5 text-2xs transition-colors",RU[r],a&&"ring-2 ring-ring",u),children:[C.jsx("button",{ref:c,type:"button",role:"gridcell",tabIndex:a?0:-1,onClick:n,onFocus:i,onKeyDown:s,className:Ue("block min-w-0 max-w-full truncate rounded-full outline-none",n?"cursor-pointer":"cursor-default"),children:t}),C.jsx("button",{type:"button",role:"gridcell",tabIndex:-1,onClick:e,className:"block shrink-0 rounded-full p-0.5 transition-colors hover:bg-fg-muted/20","aria-label":`Remove filter: ${t}`,children:C.jsx(Ms,{className:"size-3"})})]}));jne.displayName="SearchChipRow";const hRe=({tokens:t,className:e})=>t.length===0?null:C.jsx("div",{className:Ue("flex flex-wrap items-center gap-1.5 border-b border-line bg-surface px-row-inset py-1.5",e),children:t.map(n=>C.jsx(zne,{label:n.label,onRemove:n.onRemove},n.label))});function Fne(t){const[e,n]=_.useState(!1),r=e?_J:kJ,a=e?"Hide password":"Show password";return C.jsx(ts,{...t,type:e?"text":"password",trailing:C.jsx("button",{type:"button","aria-label":a,"aria-pressed":e,title:a,onClick:()=>n(s=>!s),className:"-my-1 -mr-2 flex size-11 shrink-0 cursor-pointer items-center justify-center rounded-md text-fg-subtle transition-colors hover:text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:C.jsx(r,{className:"size-4","aria-hidden":!0})})})}const Bne={info:"bg-accent-2",success:"bg-positive",warning:"bg-warning",danger:"bg-danger"};function $ne({value:t,max:e,tone:n="info",indeterminate:r=!1,className:a}){const s=r?100:e<=0?0:Math.min(100,Math.max(0,t/e*100));return C.jsx("div",{role:"progressbar","aria-valuenow":r?void 0:t,"aria-valuemin":r?void 0:0,"aria-valuemax":r?void 0:e,className:Ue("h-1.5 w-full overflow-hidden rounded-full bg-surface-sunken",a),children:C.jsx("div",{className:Ue("h-full rounded-full transition-[width] duration-300 ease-out",Bne[n],r&&"w-1/3 animate-pulse"),style:r?void 0:{width:`${s}%`}})})}var Uh;(function(t){t[t.UP=-1]="UP",t[t.DOWN=1]="DOWN"})(Uh||(Uh={}));function Hne(t){var e=getComputedStyle(t).overflowY;return t===document.scrollingElement&&e==="visible"?!0:!(e!=="scroll"&&e!=="auto")}function qne(t,e){if(!Hne(t))return!1;if(e===Uh.DOWN){var n=t.scrollTop+t.clientHeight;return n<t.scrollHeight}if(e===Uh.UP)return t.scrollTop>0;throw new Error("unsupported direction")}function IU(t,e){return qne(t,e)?!0:t.parentElement==null?!1:IU(t.parentElement,e)}function OU(t,e){e===void 0&&(e={});var n=e.insertAt;if(!(!t||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",n==="top"&&r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a),a.styleSheet?a.styleSheet.cssText=t:a.appendChild(document.createTextNode(t))}}var Wne=`.lds-ellipsis {
15
15
  display: inline-block;
16
16
  position: relative;
17
17
  width: 64px;
@@ -145,7 +145,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
145
145
  .ptr__loader {
146
146
  margin: 0 auto;
147
147
  text-align: center;
148
- }`;OU(Kne);var pRe=function(t){var e=t.isPullable,n=e===void 0?!0:e,r=t.canFetchMore,a=r===void 0?!1:r,s=t.onRefresh,i=t.onFetchMore,u=t.refreshingContent,c=u===void 0?F.createElement(Vne,null):u,f=t.pullingContent,h=f===void 0?F.createElement(Gne,null):f,m=t.children,g=t.pullDownThreshold,y=g===void 0?67:g,S=t.fetchMoreThreshold,w=S===void 0?100:S,x=t.maxPullDownDistance,E=x===void 0?95:x,k=t.resistance,A=k===void 0?1:k,R=t.backgroundColor,N=t.className,O=N===void 0?"":N,I=_.useRef(null),P=_.useRef(null),U=_.useRef(null),q=_.useRef(null),z=!1,j=!1,H=!1,W=0,se=0;_.useEffect(function(){if(!(!n||!P||!P.current)){var Z=P.current;return Z.addEventListener("touchstart",re,{passive:!0}),Z.addEventListener("mousedown",re),Z.addEventListener("touchmove",he,{passive:!1}),Z.addEventListener("mousemove",he),window.addEventListener("scroll",xe),Z.addEventListener("touchend",D),Z.addEventListener("mouseup",D),document.body.addEventListener("mouseleave",D),function(){Z.removeEventListener("touchstart",re),Z.removeEventListener("mousedown",re),Z.removeEventListener("touchmove",he),Z.removeEventListener("mousemove",he),window.removeEventListener("scroll",xe),Z.removeEventListener("touchend",D),Z.removeEventListener("mouseup",D),document.body.removeEventListener("mouseleave",D)}}},[m,n,s,y,E,a,w]),_.useEffect(function(){var Z;if(!((Z=I)===null||Z===void 0)&&Z.current){var K=I.current.classList.contains("ptr--fetch-more-treshold-breached");K||a&&$()<w&&i&&(I.current.classList.add("ptr--fetch-more-treshold-breached"),j=!0,i().then(Q).catch(Q))}},[a,m]);var $=function(){if(!P||!P.current)return-1;var Z=window.scrollY,K=P.current.scrollHeight;return K-Z-window.innerHeight},Q=function(){requestAnimationFrame(function(){P.current&&(P.current.style.overflowX="hidden",P.current.style.overflowY="auto",P.current.style.transform="unset"),U.current&&(U.current.style.opacity="0"),I.current&&(I.current.classList.remove("ptr--pull-down-treshold-breached"),I.current.classList.remove("ptr--dragging"),I.current.classList.remove("ptr--fetch-more-treshold-breached")),z&&(z=!1),j&&(j=!1)})},re=function(Z){H=!1,Z instanceof MouseEvent&&(W=Z.pageY),window.TouchEvent&&Z instanceof TouchEvent&&(W=Z.touches[0].pageY),se=W,!(Z.type==="touchstart"&&IU(Z.target,Uh.UP))&&(P.current.getBoundingClientRect().top<0||(H=!0))},he=function(Z){if(H){if(window.TouchEvent&&Z instanceof TouchEvent?se=Z.touches[0].pageY:se=Z.pageY,I.current.classList.add("ptr--dragging"),se<W){H=!1;return}Z.cancelable&&Z.preventDefault();var K=Math.min((se-W)/A,E);K>=y&&(H=!0,z=!0,I.current.classList.remove("ptr--dragging"),I.current.classList.add("ptr--pull-down-treshold-breached")),!(K>=E)&&(U.current.style.opacity=(K/65).toString(),P.current.style.overflow="visible",P.current.style.transform="translate(0px, "+K+"px)",U.current.style.visibility="visible")}},xe=function(Z){j||a&&$()<w&&i&&(j=!0,I.current.classList.add("ptr--fetch-more-treshold-breached"),i().then(Q).catch(Q))},D=function(){if(H=!1,W=0,se=0,!z){U.current&&(U.current.style.visibility="hidden"),Q();return}P.current&&(P.current.style.overflow="visible",P.current.style.transform="translate(0px, "+y+"px)"),s().then(Q).catch(Q)};return F.createElement("div",{className:"ptr "+O,style:{backgroundColor:R},ref:I},F.createElement("div",{className:"ptr__pull-down",ref:U},F.createElement("div",{className:"ptr__loader ptr__pull-down--loading"},c),F.createElement("div",{className:"ptr__pull-down--pull-more"},h)),F.createElement("div",{className:"ptr__children",ref:P},m,F.createElement("div",{className:"ptr__fetch-more",ref:q},F.createElement("div",{className:"ptr__loader ptr__fetch-more--loading"},c))))};function Yne(t){return t.scopedOutFolder!==void 0||(t.droppedFacets?.length??0)>0||t.droppedSemantic===!0}function Zne(t){return`Your search was limited to ${t}. This filter matches these messages in any folder — it can't be pinned to one.`}const Xne=t=>t.length===1?t[0]:t.length===2?`${t[0]} and ${t[1]}`:`${t.slice(0,-1).join(", ")} and ${t[t.length-1]}`;function Qne(t){const e=t.length===1?"a filter condition":"filter conditions",n=t.length===1?"isn't":"aren't";return`${Xne(t)} ${n} ${e}, so ${t.length===1?"it was":"they were"} left out — the filter still matches everything else you searched for.`}const Jne="The filter matches these words literally. Your search also found similar mail by meaning — a filter can't carry that, so it won't catch mail that means the same thing without these words.";function BS({icon:t,children:e}){return C.jsxs("li",{className:"flex items-start gap-2",children:[C.jsx("span",{className:"mt-0.5 shrink-0 text-fg-subtle","aria-hidden":"true",children:t}),C.jsx("span",{children:e})]})}function ere({notice:t}){return Yne(t)?C.jsxs("div",{className:"rounded-md border border-line bg-surface-sunken px-3 py-2.5",children:[C.jsx("p",{className:"text-2xs font-semibold uppercase tracking-wider text-fg-subtle",children:"From your search"}),C.jsxs("ul",{className:"mt-1.5 space-y-1.5 text-xs text-fg-muted",children:[t.scopedOutFolder!==void 0&&C.jsx(BS,{icon:C.jsx(RJ,{className:"size-3.5"}),children:Zne(t.scopedOutFolder)}),t.droppedFacets&&t.droppedFacets.length>0&&C.jsx(BS,{icon:C.jsx(IL,{className:"size-3.5"}),children:Qne(t.droppedFacets)}),t.droppedSemantic&&C.jsx(BS,{icon:C.jsx(AE,{className:"size-3.5"}),children:Jne})]})]}):null}const tre={delete:{label:"Delete",present:"Deleting",past:"Deleted",destructive:!0},move:{label:"Move",present:"Moving",past:"Moved",destructive:!1},junk:{label:"Junk",present:"Marking as junk",past:"Marked as junk",destructive:!0},markRead:{label:"Mark read",present:"Marking read",past:"Marked read",destructive:!1},organize:{label:"Organize",present:"Organizing",past:"Organized",destructive:!1}},ek=t=>tre[t],nre={match:"Apply to",properties:"Properties",folder:"Folder",rule:"Rule",name:"Name",review:"Review",run:"Run"},NU=t=>nre[t],mRe=({verb:t,mode:e,scope:n,fromSearch:r})=>{const a=r?["properties"]:e==="properties"?["match","properties"]:["match"];return t==="move"?[...a,"folder","review","run"]:t==="organize"?n==="standing"||n==="until"?[...a,"folder","rule","name","review","run"]:[...a,"folder","rule","review","run"]:[...a,"review","run"]},vp=(t,e)=>Math.max(0,t.indexOf(e)),rre=(t,e)=>vp(t,e)===0||e==="run",are=(t,e)=>({clauses:[...t.clauses],matchOperator:t.matchOperator,widen:t.widen,moveMailboxId:t.moveMailboxId,scope:e,until:t.until,name:t.name}),MU=t=>vU(are(t,t.scope??"once")),gRe="A rule only works within one account — clear the selection, or pick messages from a single account.",vRe="A destination only works within one account — clear the selection, or pick messages from a single account.",sre="This matches no messages, so there is nothing to do. Go back and change what it applies to.",ore="Fill in every property, or take the empty one off.",ire="Pick a destination first.",lre="Choose one of the three first.",yRe=(t,e,n)=>{if(t==="properties")return e.clauses.length===0?Aa.noMatch:e.clauses.some(r=>r.value.trim()==="")?ore:void 0;if(t==="folder")return e.moveMailboxId?void 0:ire;if(t==="rule")return e.scope?e.scope==="once"&&MU(e).length>0?Aa.bodyTextOnce:e.scope==="until"&&!e.until?.trim()?Aa.noUntilDate:void 0:lre;if(t==="name"&&!e.name?.trim())return Aa.unnamed;if(t==="review")return n.status==="uncounted"?void 0:n.status==="ready"&&n.count===0&&!n.stale?sre:SU(n)},ure={noMatch:"Nothing matches this yet. Widen a property, or match on a different one.",notIndexed:"This mail isn't indexed yet, so nothing can be counted. The rule still matches once indexing catches up."},cre=t=>ure[t],tk=({state:t,verb:e,scope:n,matched:r,applied:a,failed:s})=>{const{label:i,present:u,past:c}=ek(e),f=c.toLowerCase(),h=n==="standing"||n==="until",g={screenTitle:t==="saving"||t==="backApplyRunning"||t==="statusUnknown"||t==="commitFailed"?i:"Done",showProgress:t==="backApplyRunning"||t==="backApplyComplete"||t==="backApplyFailed"||t==="backApplyRestartFailed"||t==="statusUnknown"||t==="runStopped",failureListLabel:`Not ${f}`};return t==="saving"?{...g,title:h?"Saving rule…":"Applying…",detail:"Nothing has been changed yet.",tone:"progress",dismissLabel:"Close"}:t==="backApplyRunning"?{...g,title:h?"Rule saved. Moving the mail already in your mailbox…":`${u} ${r} messages…`,detail:"This keeps running if you close the wizard.",tone:"progress",dismissLabel:"Close",cancelLabel:"Stop the run"}:t==="statusUnknown"?{...g,title:h?"Rule saved. Its progress over your existing mail is unknown":`${u} — progress unknown`,detail:h?"The connection dropped, so the bar shows the last that was read. The pass runs on the mail server, and the rule keeps working on new mail either way. This keeps checking.":"The connection dropped, so the bar shows the last that was read. The run is on the mail server and carries on either way. This keeps checking.",tone:"warning",dismissLabel:"Close",retryLabel:"Check again"}:t==="backApplyComplete"?{...g,title:h?"Rule saved and applied":`${c} ${a}`,detail:h?`${a} of ${r} already in your mailbox ${f}. New mail follows the rule as it arrives.`:`Every message the match reached was ${f}. Your mail server is still catching up, so the list can lag behind.`,tone:"success",dismissLabel:"Done"}:t==="backApplyFailed"?{...g,title:h?"Rule saved — some mail stayed put":`Not everything was ${f}`,detail:`${a} of ${r} ${f} · the mail server rejected ${s}.${h?" The rule itself is saved and keeps working on new mail.":""}`,tone:"warning",dismissLabel:"Close",retryLabel:`Retry ${s}`}:t==="runStopped"?{...g,title:`Stopped after ${a}`,detail:`${a} of ${r} ${f}. The run stopped before it reached the rest, so nothing was sent for them and nothing has happened to them.`,tone:"warning",dismissLabel:"Close",retryLabel:`Retry ${s}`}:t==="backApplyRestartFailed"?{...g,title:h?"Rule saved — the retry didn't start":"The retry didn't start",detail:`${a} of ${r} ${f} · the mail server rejected ${s}, which are still where they were.${h?" The rule itself is saved and keeps working on new mail.":""} Check your connection and try again.`,tone:"warning",dismissLabel:"Close",retryLabel:`Retry ${s}`}:t==="backApplyStartFailed"?{...g,title:"Rule saved",detail:"New mail follows it automatically. The pass over the mail already in your mailbox never started.",tone:"warning",dismissLabel:"Not now",retryLabel:"Run it over existing mail"}:t==="filterSaved"?{...g,title:"Filter saved",detail:"There is no mail in your mailbox to apply it to yet. New mail follows it as it arrives. You can see it, and when it expires, under Settings › Filters.",tone:"success",dismissLabel:"Done"}:{...g,title:h?"Couldn't save the rule":`Couldn't start ${i.toLowerCase()}`,detail:"Nothing has changed.",tone:"danger",dismissLabel:"Not now",retryLabel:"Try again"}},dre=t=>`${$c(t.field)} "${t.value}"`,PU=(t,e)=>t.map(dre).join(` ${J_(e)} `),f0=(t,e)=>t==="selected"?`These ${e} messages`:t==="similar"?$0({anchorCount:e}):DE("properties"),$S=t=>t==="selected"?"Only the messages ticked in the list.":gU(t),DU=t=>`Every message ${t}`,nk="the list is showing",fre="This reaches every match on the mail server, including the ones the list has not loaded. The search is already the match, so there is nothing to widen.",hre="This covers messages not shown in the list, and anything else matching by the time it runs.",pre=({mode:t,selectedCount:e,clauses:n,matchOperator:r,escalatedScope:a})=>t==="escalated"?DU(a??nk):t==="properties"?PU(n,r):f0(t,e),mre=({mode:t,selectedCount:e,clauses:n,matchOperator:r,escalatedScope:a,escalatedCount:s})=>{if(t==="selected")return`${e} messages`;if(t==="escalated"){const i=a??nk;return s===void 0?`every message ${i}`:`all ${s.toLocaleString()} messages ${i}`}return t==="similar"?`mail ${$0({anchorCount:e}).toLowerCase()}`:n.length===0?"every message":`every message where ${PU(n,r)}`};function gre({steps:t,step:e}){const n=vp(t,e);return C.jsx("ol",{className:"flex items-center gap-1.5","aria-label":"Progress",children:t.map((r,a)=>C.jsx("li",{className:"flex flex-1 items-center gap-1.5",children:C.jsx("span",{className:Ue("h-1 flex-1 rounded-full transition-colors",a<=n?"bg-accent":"bg-surface-sunken"),"aria-current":a===n?"step":void 0})},r))})}function vre({title:t,subtitle:e,steps:n,step:r,onBack:a,onExit:s,footer:i,children:u}){const c=vp(n,r);return C.jsx("div",{role:"dialog","aria-modal":"true","aria-label":t,className:"fixed inset-0 z-50 flex flex-col font-sans text-fg md:items-center md:justify-center md:bg-black/40 md:p-6",children:C.jsxs("div",{className:"flex min-h-0 w-full flex-1 flex-col bg-canvas md:h-[45rem] md:max-h-[calc(100dvh-3rem)] md:w-[35rem] md:max-w-[calc(100vw-3rem)] md:flex-none md:overflow-hidden md:rounded-xl md:border md:border-line md:shadow-lg",children:[C.jsxs("header",{className:"shrink-0 border-b border-line px-3 pb-2 pt-3",children:[C.jsxs("div",{className:"flex items-center gap-1",children:[C.jsx("button",{type:"button",onClick:a,"aria-label":"Back",className:"flex size-11 items-center justify-center rounded-md text-fg-muted",children:C.jsx(TL,{className:"size-5"})}),C.jsxs("div",{className:"min-w-0 flex-1 text-center",children:[C.jsx("h1",{className:"truncate text-sm font-semibold",children:t}),e&&C.jsx("p",{className:"truncate text-2xs text-fg-muted",children:e})]}),C.jsx("button",{type:"button",onClick:s,"aria-label":"Cancel",className:"flex size-11 items-center justify-center rounded-md text-fg-muted",children:C.jsx(Ms,{className:"size-5"})})]}),C.jsxs("div",{className:"space-y-1 px-1 pt-2",children:[C.jsx(gre,{steps:n,step:r}),C.jsxs("p",{className:"text-2xs text-fg-subtle",children:["Step ",c+1," of ",n.length," · ",NU(n[c])]})]})]}),C.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto px-4 py-4",children:u}),C.jsx("footer",{className:"shrink-0 border-t border-line px-4 py-3 pb-[max(0.75rem,env(safe-area-inset-bottom))] md:pb-3",children:i})]})})}function Hc({selected:t,title:e,description:n,unavailable:r,onSelect:a,children:s}){const i=_.useId();return C.jsxs("div",{className:"space-y-1.5",children:[C.jsxs("button",{type:"button",onClick:a,"aria-pressed":t,"aria-describedby":r&&s?i:void 0,className:Ue("flex w-full items-start gap-3 rounded-lg border p-3 text-left transition-colors",t?"border-accent bg-accent-soft":"border-line bg-surface hover:bg-surface-sunken",r&&"opacity-55"),children:[C.jsx("span",{className:Ue("mt-0.5 flex size-5 shrink-0 items-center justify-center rounded-full border",t?"border-accent bg-accent text-accent-fg":"border-line"),children:t&&C.jsx(rv,{className:"size-3"})}),C.jsxs("span",{className:"min-w-0 flex-1",children:[C.jsx("span",{className:"block text-sm font-medium text-fg",children:e}),C.jsx("span",{className:"mt-0.5 block text-xs text-fg-muted",children:n})]})]}),s&&C.jsx("div",{id:i,children:s})]})}const yre=(t,e)=>t.status==="uncounted"?"The first matches. The total is not known until the run finishes.":t.status==="ready"&&t.count>e&&!t.stale?`and ${t.count-e} more`:yU(t),bre=(t,e,n)=>n?"Fetching the messages this covers…":t.status==="error"?t.reason:cre(e??"noMatch");function W0({messages:t,count:e,label:n,emptyReason:r,loading:a}){return C.jsxs("section",{className:"flex flex-col rounded-lg border border-line bg-surface",children:[C.jsx("h2",{className:"shrink-0 border-b border-line px-3 py-2 text-2xs font-medium uppercase tracking-wide text-fg-subtle",children:n}),t.length===0?C.jsx("p",{className:"px-3 py-4 text-xs text-fg-muted",children:bre(e,r,a)}):C.jsxs(C.Fragment,{children:[C.jsx("ul",{className:"min-h-0 max-h-[45dvh] divide-y divide-line overflow-y-auto overscroll-contain md:max-h-[17rem]",children:t.map(s=>C.jsxs("li",{className:"px-3 py-2",children:[C.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[C.jsx("span",{className:"truncate text-xs font-medium text-fg",children:s.sender}),C.jsx("span",{className:"shrink-0 text-2xs text-fg-subtle",children:s.date})]}),C.jsx("p",{className:"truncate text-xs text-fg-muted",children:s.subject})]},s.id))}),C.jsx("p",{className:"shrink-0 border-t border-line px-3 py-2 text-2xs text-fg-subtle",children:yre(e,t.length)})]})]})}function $6({onBack:t,nextLabel:e,onNext:n,nextVariant:r="primary",blockedReason:a,nudged:s}){const i=_.useId();return C.jsxs("div",{className:"space-y-2",children:[a&&C.jsx(Zte,{id:i,reason:a,nudged:s,className:"px-1 text-2xs text-warning"}),C.jsxs("div",{className:"flex items-center gap-3",children:[C.jsx(on,{variant:"ghost",size:"touch",onClick:t,icon:C.jsx(TL,{className:"size-4"}),className:"shrink-0",children:"Back"}),C.jsxs(on,{variant:r,size:"touch",onClick:n,"aria-describedby":a?i:void 0,className:Ue("flex-1",a&&"opacity-55"),children:[e,r==="primary"&&C.jsx(xJ,{className:"size-4"})]})]})]})}function Sre({selectedCount:t,mode:e,onModeChange:n,semanticUnavailable:r,semanticErrorDetail:a,semanticFallbackTaken:s,onSemanticFallback:i,escalatedScope:u,sample:c}){return e==="escalated"?C.jsxs(C.Fragment,{children:[C.jsxs("div",{className:"rounded-lg border border-accent bg-accent-soft p-3",children:[C.jsx("p",{className:"text-sm font-medium text-fg",children:DU(u??nk)}),C.jsx("p",{className:"mt-1 text-xs text-fg-muted",children:fre})]}),C.jsx("div",{className:"mt-4",children:C.jsx(W0,{...c})})]}):C.jsxs(C.Fragment,{children:[C.jsxs("div",{className:"space-y-2",children:[C.jsx(Hc,{selected:e==="selected",onSelect:()=>n("selected"),title:f0("selected",t),description:$S("selected")}),C.jsxs(Hc,{selected:e==="similar",unavailable:r,onSelect:r?i:()=>n("similar"),title:f0("similar",t),description:$S("similar"),children:[a&&C.jsxs("p",{role:"status",className:"px-1 text-2xs text-danger",children:["Couldn't find similar messages: ",a]}),s&&C.jsx("p",{role:"status",className:"px-1 text-2xs text-fg-subtle",children:"Similar-mail matching is unavailable right now — matching on the senders instead."})]}),C.jsx(Hc,{selected:e==="properties",onSelect:()=>n("properties"),title:f0("properties",t),description:$S("properties")})]}),C.jsx("div",{className:"mt-4",children:C.jsx(W0,{...c})})]})}const wre=[{value:"all",label:H0("all")},{value:"any",label:H0("any")}];function xre({clauses:t,matchOperator:e,onMatchOperatorChange:n,clauseEdit:r,onStartAddClause:a,onStartEditClause:s,onRemoveClause:i,onChangeDraft:u,onSubmitClause:c,onCancelClause:f,clauseFields:h,clauseSuggestions:m,conversionNotice:g,semanticFallbackTaken:y,sample:S}){const w=J_(e);return C.jsxs("div",{className:"space-y-4",children:[y&&C.jsx("p",{role:"status",className:"px-1 text-xs text-fg-muted",children:"Similar-mail matching is unavailable right now. These are the senders of the messages you picked."}),g&&C.jsx(ere,{notice:g}),C.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[t.map((x,E)=>C.jsxs(_.Fragment,{children:[E>0&&C.jsx("span",{className:"text-2xs font-medium uppercase text-fg-subtle",children:w}),C.jsx(xU,{clause:x,onEdit:()=>s(x.id),onRemove:()=>i(x.id)})]},x.id)),!r&&C.jsx(LE,{label:"Add clause",onClick:a})]}),r&&C.jsx(CU,{draft:r.draft,mode:r.mode,fields:h,suggestions:m,onChangeField:x=>u({...r.draft,field:x}),onChangeValue:x=>u({...r.draft,value:x}),onSubmit:c,onCancel:f}),t.length>1&&C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx("span",{className:"text-xs text-fg-muted",children:"Match"}),C.jsx(d0,{name:"wizard-match-operator",size:"sm","aria-label":"Match operator",options:wre,value:e,onChange:n})]}),C.jsx("p",{className:"px-1 text-xs text-fg-muted",children:"We started you off from what you were looking at. Change any of it — this is where the rule is decided, not the list behind it."}),C.jsx(W0,{...S})]})}function Cre({folders:t,mailboxId:e,onSelect:n,onCreateFolder:r,delimiter:a,restriction:s}){const i=t.find(u=>u.id===e);return C.jsxs("div",{className:"flex min-h-0 flex-col gap-3",children:[C.jsx("p",{className:Ue("px-1 text-xs",s?"text-warning":"text-fg-muted"),children:s??(i?`Moving to ${i.label}.`:"Tap a folder to open it, or make a new one where you want it.")}),C.jsx("div",{className:"flex min-h-0 flex-1 overflow-hidden rounded-lg border border-line bg-surface",children:C.jsx(TU,{folders:t,selectedId:e,onSelect:n,onCreateFolder:r,delimiter:a,labels:{createPending:"Waiting for the mail server to confirm the folder…"}})})]})}function Ere({draft:t,onScopeChange:e,onUntilChange:n,restriction:r}){const a=_.useId(),{scope:s,until:i=""}=t,u=MU(t).length>0,c=r&&C.jsx("p",{className:"px-1 text-2xs text-warning",children:r});return C.jsxs("div",{className:"space-y-2",children:[C.jsx(Hc,{selected:s==="once",onSelect:()=>e("once"),title:c0("once"),description:"A one-off tidy-up. Nothing changes for future mail.",children:u&&C.jsx("p",{className:"px-1 text-2xs text-warning",children:Aa.bodyTextOnce})}),C.jsx(Hc,{selected:s==="standing",unavailable:!!r,onSelect:()=>e("standing"),title:c0("standing"),description:"Saves a rule and applies it to new mail as it arrives, and to the mail already in your mailbox. You'll name it next.",children:c}),C.jsxs(Hc,{selected:s==="until",unavailable:!!r,onSelect:()=>e("until"),title:c0("until"),description:"The same rule, and it stops on a day you pick.",children:[c,s==="until"&&C.jsxs("div",{className:"rounded-lg border border-line bg-surface p-2",children:[C.jsx(Q_,{htmlFor:a,children:"Stops on"}),C.jsx(ts,{id:a,type:"date",value:i,onChange:f=>n(f.target.value)})]})]})]})}function _re({name:t,onNameChange:e,nudged:n}){const r=_.useId(),a=_.useRef(null);return _.useEffect(()=>{n&&a.current?.focus()},[n]),C.jsxs(C.Fragment,{children:[C.jsx(Q_,{htmlFor:r,children:"Rule name"}),C.jsx(ts,{id:r,ref:a,value:t,placeholder:"Travel confirmations",onChange:s=>e(s.target.value),trailing:t?C.jsx("button",{type:"button","aria-label":"Clear name",onClick:()=>{e(""),a.current?.focus()},className:"-mr-1 flex size-7 shrink-0 items-center justify-center rounded-full text-fg-subtle hover:bg-surface hover:text-fg",children:C.jsx(Ms,{className:"size-4"})}):void 0}),C.jsx("p",{className:"mt-2 text-xs text-fg-muted",children:"We suggested one from this selection. Clear it and write your own if it doesn't read right."})]})}function kre({verb:t,mode:e,selectedCount:n,clauses:r,matchOperator:a,folder:s,scope:i,until:u,ruleName:c,escalatedScope:f,sample:h}){const{label:m}=ek(t),g={mode:e,selectedCount:n,clauses:r,matchOperator:a,escalatedScope:f,escalatedCount:h.count.status==="ready"?h.count.count:void 0},y=e!=="selected",S=i==="standing"||i==="until";return C.jsxs("div",{className:"space-y-4",children:[C.jsxs("div",{className:"rounded-lg border border-line bg-surface p-3",children:[C.jsxs("p",{className:"text-sm text-fg",children:[C.jsx("span",{className:"font-semibold",children:m})," ",mre(g),s?` to ${s}`:"",S&&C.jsxs(C.Fragment,{children:[" ","and ",C.jsx("span",{className:"font-medium",children:"save a rule"})," that keeps doing it"]}),i==="until"&&u&&` until ${u}`,"."]}),y&&C.jsxs("p",{className:"mt-2 flex items-start gap-1.5 text-xs text-warning",children:[C.jsx(Nh,{className:"mt-px size-3.5 shrink-0"}),e==="escalated"?hre:"This covers messages not shown in the list."]})]}),C.jsxs("dl",{className:"divide-y divide-line overflow-hidden rounded-lg border border-line bg-surface text-xs",children:[C.jsxs("div",{className:"flex justify-between gap-3 px-3 py-2",children:[C.jsx("dt",{className:"text-fg-muted",children:"Action"}),C.jsx("dd",{className:"font-medium",children:m})]}),C.jsxs("div",{className:"flex justify-between gap-3 px-3 py-2",children:[C.jsx("dt",{className:"shrink-0 text-fg-muted",children:"Apply to"}),C.jsx("dd",{className:"truncate font-medium",children:pre(g)})]}),s&&C.jsxs("div",{className:"flex justify-between gap-3 px-3 py-2",children:[C.jsx("dt",{className:"text-fg-muted",children:"Destination"}),C.jsx("dd",{className:"font-medium",children:s})]}),i&&C.jsxs("div",{className:"flex justify-between gap-3 px-3 py-2",children:[C.jsx("dt",{className:"text-fg-muted",children:"Scope"}),C.jsxs("dd",{className:"font-medium",children:[c0(i),i==="until"&&u?` · ${u}`:""]})]}),c!==void 0&&C.jsxs("div",{className:"flex justify-between gap-3 px-3 py-2",children:[C.jsx("dt",{className:"text-fg-muted",children:"Rule name"}),C.jsx("dd",{className:"truncate font-medium",children:c})]})]}),C.jsx(W0,{...h})]})}const rk=t=>({state:t.state,verb:t.verb,scope:t.scope,matched:t.matched,applied:t.applied,failed:t.failedCount??t.failures.length}),Are=t=>t==="progress"?C.jsx(j0,{className:"size-10 animate-spin text-accent"}):t==="warning"?C.jsx(Nh,{className:"size-10 text-warning"}):t==="danger"?C.jsx(Nh,{className:"size-10 text-danger"}):C.jsx("span",{className:"flex size-12 items-center justify-center rounded-full bg-accent-soft text-accent",children:C.jsx(rv,{className:"size-6"})});function Tre(t){const{matched:e,applied:n,failures:r}=t,a=rk(t),s=tk(a),i=t.state==="runStopped"?"Never sent":"Server rejected";return C.jsxs("div",{className:"space-y-4 pt-2",children:[C.jsxs("div",{className:"flex flex-col items-center gap-3 py-6 text-center",children:[Are(s.tone),C.jsx("p",{className:"text-sm font-medium",children:s.title}),C.jsx("p",{className:"max-w-xs text-xs text-fg-muted",children:s.detail})]}),s.showProgress&&C.jsx($ne,{value:n,max:e,tone:a.failed>0?"warning":"success"}),r.length>0&&C.jsxs("section",{className:"rounded-lg border border-line bg-surface",children:[C.jsx("h2",{className:"border-b border-line px-3 py-2 text-2xs font-medium uppercase tracking-wide text-fg-subtle",children:s.failureListLabel}),C.jsx("ul",{className:"divide-y divide-line",children:r.map(u=>C.jsxs("li",{className:"px-3 py-2",children:[C.jsx("p",{className:"truncate text-xs font-medium",children:u.sender}),C.jsx("p",{className:"truncate text-xs text-fg-muted",children:u.subject}),C.jsx(IE,{className:"mt-1",tone:"warning",children:i})]},u.id))})]})]})}function Rre(t){const{onRetry:e,onDismiss:n,onCancelRun:r}=t,a=tk(rk(t));return a.cancelLabel!==void 0&&r?C.jsxs("div",{className:"flex items-center gap-3",children:[C.jsx(on,{variant:"ghost",size:"md",className:"min-h-11 shrink-0",onClick:r,children:a.cancelLabel}),C.jsx(on,{variant:"primary",size:"md",className:"min-h-11 flex-1",onClick:n,children:a.dismissLabel})]}):a.retryLabel===void 0?C.jsx(on,{variant:a.tone==="progress"?"ghost":"primary",size:"touch",className:"w-full",onClick:n,children:a.dismissLabel}):C.jsxs("div",{className:"flex items-center gap-3",children:[C.jsx(on,{variant:"ghost",size:"touch",onClick:n,children:a.dismissLabel}),C.jsx(on,{variant:"primary",size:"touch",className:"flex-1",onClick:e,children:a.retryLabel})]})}const Ire={match:{subtitle:"What should this apply to?"},properties:{title:"Match properties",subtitle:"Which properties have to match?"},folder:{title:"Move to",subtitle:"Pick a destination"},rule:{title:"Organize",subtitle:"How long should this hold?"},name:{title:"Name the rule",subtitle:"So you can find it later"},review:{title:"Review",subtitle:"Check before it runs"},run:{}},vs=(t,e)=>{if(t===void 0)throw new Error(`The ${NU(e)} step was rendered without its answers.`);return t};function bRe(t){const{verb:e,steps:n,onExit:r,onContinue:a,onCommit:s}=t,{label:i,destructive:u}=ek(e),c=n[vp(n,t.step)],f=Ire[c],h=rre(n,c)?r:t.onBack,m=()=>c==="match"?C.jsx(Sre,{...vs(t.match,c)}):c==="properties"?C.jsx(xre,{...vs(t.properties,c)}):c==="folder"?C.jsx(Cre,{...vs(t.folder,c)}):c==="rule"?C.jsx(Ere,{...vs(t.rule,c)}):c==="name"?C.jsx(_re,{...vs(t.name,c),nudged:t.nudged}):c==="review"?C.jsx(kre,{...vs(t.review,c)}):C.jsx(Tre,{...vs(t.run,c)}),g=()=>{if(c==="run")return C.jsx(Rre,{...vs(t.run,c)});if(c==="review"){const w=vs(t.review,c);return C.jsx($6,{onBack:h,nextLabel:w.scope?bU(w.scope):i,nextVariant:u?"danger":"primary",onNext:s,blockedReason:t.blockedReason,nudged:t.nudged})}return C.jsx($6,{onBack:h,nextLabel:"Continue",onNext:a,blockedReason:t.blockedReason,nudged:t.nudged})},y=()=>c!=="run"?f.title??i:tk(rk(vs(t.run,c))).screenTitle,S=c==="match"&&t.match?.mode==="escalated"?"What this applies to":f.subtitle;return C.jsx(vre,{title:y(),subtitle:S,steps:n,step:c,onBack:h,onExit:r,footer:g(),children:m()})}const Ore={preparing:"Getting the new version ready",restarting:"Restarting Remit",reconnecting:"Waiting for Remit to answer again"};function H6(t){return Ore[t]}function Nre(t){return t<90?"This usually takes about a minute.":t<240?"Longer than usual. Remit is still trying to reach the server.":"Still no answer. Remit keeps trying."}function SRe(t,e=Date.now()){const n=Math.floor((e-t)/6e4);if(n<1)return"just now";if(n<60)return`${n}m ago`;const r=Math.floor(n/60);return r<24?`${r}h ago`:`${Math.floor(r/24)}d ago`}function wRe(t){return new Date(t).toLocaleDateString(void 0,{dateStyle:"medium"})}function Mre({children:t,show:e,label:n="Update available"}){return C.jsxs("span",{className:"relative inline-flex",children:[t,e&&C.jsxs(C.Fragment,{children:[C.jsx("span",{className:"absolute -right-1 -top-1 size-2 rounded-full bg-accent-2"}),C.jsx("span",{className:"sr-only",children:n})]})]})}const q6=["preparing","restarting","reconnecting"],Pre='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';function LU(t){_.useEffect(()=>{const e=t.current;if(!e)return;const n=()=>Array.from(e.querySelectorAll(Pre));(n()[0]??e).focus();const r=a=>{if(a.key!=="Tab")return;const s=n();if(s.length===0){a.preventDefault(),e.focus();return}const i=s[0],u=s[s.length-1],c=document.activeElement;if(a.shiftKey&&(c===i||!e.contains(c))){a.preventDefault(),u.focus();return}!a.shiftKey&&(c===u||!e.contains(c))&&(a.preventDefault(),i.focus())};return window.addEventListener("keydown",r,!0),()=>window.removeEventListener("keydown",r,!0)},[t])}const UU="fixed inset-0 z-50 flex flex-col items-center justify-center gap-6 bg-canvas p-6 text-center outline-none";function Dre({target:t,phase:e,elapsedSeconds:n}){const r=_.useRef(null);LU(r);const a=q6.indexOf(e);return C.jsxs("div",{ref:r,role:"dialog","aria-modal":"true","aria-labelledby":"self-update-progress-title",tabIndex:-1,className:UU,children:[C.jsxs("div",{className:"max-w-md space-y-2",children:[C.jsxs("h1",{id:"self-update-progress-title",className:"text-lg font-semibold text-fg",children:["Installing Remit ",t]}),C.jsx("p",{className:"text-sm text-fg-muted",children:"Remit is restarting, so this page has no server to talk to for a moment. Leave this open — it reconnects on its own."})]}),C.jsx("ol",{className:"w-full max-w-sm space-y-2 text-left",children:q6.map((s,i)=>{const u=i<a,c=i===a;return C.jsxs("li",{className:Ue("flex items-center gap-3 rounded-sm border px-row-inset py-2 text-sm",c?"border-line-strong bg-surface text-fg":"border-line bg-surface-sunken text-fg-subtle"),children:[u?C.jsx(rv,{className:"size-4 shrink-0 text-positive","aria-hidden":!0}):c?C.jsx(j0,{className:"size-4 shrink-0 animate-spin text-accent-2","aria-hidden":!0}):C.jsx("span",{className:"size-4 shrink-0 rounded-full border border-line-strong"}),H6(s)]},s)})}),C.jsxs("p",{"aria-live":"polite",className:"max-w-md text-xs text-fg-subtle",children:[C.jsx("span",{className:"sr-only",children:`${H6(e)}. `}),Nre(n)]})]})}function Lre({attemptedVersion:t,previousVersion:e,elapsedSeconds:n,logsCommand:r,onRetryConnection:a}){const s=_.useRef(null);LU(s);const i=Math.max(1,Math.round(n/60));return C.jsxs("div",{ref:s,role:"alertdialog","aria-modal":"true","aria-labelledby":"self-update-unreachable-title",tabIndex:-1,className:UU,children:[C.jsx(V_,{className:"size-12 shrink-0 text-danger","aria-hidden":!0}),C.jsxs("div",{className:"max-w-lg space-y-3",children:[C.jsx("h1",{id:"self-update-unreachable-title",className:"text-lg font-semibold text-fg",children:"Remit has not answered since the restart"}),C.jsxs("p",{className:"text-sm text-fg-muted",children:["Installing ",t," started ",i," minute",i===1?"":"s"," ago and the server has been silent since. Your mail is safe at your provider — it was never part of the update."]}),C.jsxs("p",{className:"text-sm text-fg-muted",children:["Remit rolls back to ",e," on its own when the new version fails to start, but this page cannot confirm that from here. Check the server directly:"]}),C.jsx("code",{className:"block rounded-xs bg-surface-sunken px-3 py-2 text-left text-xs text-fg-muted",children:r})]}),C.jsx("div",{className:"flex flex-wrap items-center justify-center gap-2",children:C.jsx(on,{size:"sm",onClick:a,children:"Try connecting again"})})]})}function Ure(t,e,n){if(!e.allowPrivateDomains&&t.length>3){const r=t.length-1,a=t.charCodeAt(r),s=t.charCodeAt(r-1),i=t.charCodeAt(r-2),u=t.charCodeAt(r-3);if(a===109&&s===111&&i===99&&u===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="com",!0;if(a===103&&s===114&&i===111&&u===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="org",!0;if(a===117&&s===100&&i===101&&u===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="edu",!0;if(a===118&&s===111&&i===103&&u===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="gov",!0;if(a===116&&s===101&&i===110&&u===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="net",!0;if(a===101&&s===100&&i===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="de",!0}return!1}const Ol=new Uint8Array([1,2,1,1,1,1,1,1,1,1,1,1,0,2,2,2,0,2,2,0,2,0,0,1,0,0,2,1,1,1,1,1,1,0,0,0,1,0,1,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,0,1,0,1,1,0,1,1,0,0,0,0,0,0,1,1,1,0,2,0,0,0,0,0,0,0,2,0,2,2,0,0,2,2,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,0,2,1,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,2,0,0,0,0,2,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,2,2,1,1,1,1,1,1,1,1,1,0,1,1,0,0,0,0,1,0,2,2,0,0,0,2,0,1,1,0,2,0,2,2,0,1,1,1,1,1,1,1,1,0,1,1,1,0,1,1,1,1,0,0,0,0,1,0,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,2,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,2,2,0,2,2,0,0,0,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,0,2,0,2,2,2,2,0,0,0,0,2,0,0,0,0,0,0,2,2,0,0,0,2,2,1,1,1,1,2,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,2,2,0,0,2,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,2,2,1,2,1,1,1,2,1,1,1,1,1,0,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,2,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,0,0,0,0,0]),V0=new Uint16Array([0,0,0,10,11,18,106,111,117,124,130,136,145,146,147,148,149,150,151,153,154,155,157,159,226,239,241,242,243,258,265,266,269,270,271,274,276,295,296,298,307,312,313,331,332,335,337,338,340,374,375,377,380,381,385,387,391,394,426,429,442,443,451,452,454,464,478,479,480,489,490,527,532,548,568,574,615,616,643,670,671,819,825,828,829,830,835,840,849,871,872,873,874,875,876,877,895,897,898,901,903,904,906,908,923,938,943,944,946,947,948,949,950,952,955,960,961,962,964,965,968,971,972,973,986,988,1e3,1011,1019,1021,1061,1064,1068,1069,1071,1074,1085,1087,1097,1099,1105,1107,1108,1110,1113,1114,1115,1167,1169,1171,1191,1192,1193,1194,1196,1207,1238,1249,1261,1270,1277,1282,1295,1306,1319,1320,1331,1365,1366,1367,1382,1397,1469,1470,1472,1473,1507,1508,1509,1512,1516,1518,1547,1548,1556,1557,1558,1560,1562,1563,1565,1566,1567,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1594,1595,1596,1598,2053,2056,2057,2059,2066,2073,2083,2087,2098,2099,2100,2112,2113,2115,2117,2118,2125,2126,2128,2129,2131,2132,2133,2134,2135,2209,2211,2232,2233,2234,2236,2262,2263,2314,2315,2317,2324,2330,2340,2350,2403,2404,2405,2415,2429,2430,2433,2440,2441,2449,2450,2451,2452,2453,2464,2465,2466,2468,2469,2470,2471,2473,2483,2495,2501,2533,2537,2539,2540,2542,2543,2554,2555,2557,2565,2572,2578,2583,2584,2590,2593,2599,2606,2607,2614,2622,2623,2624,2662,2668,2683,2684,2689,2707,2738,2756,2758,2761,2769,2771,2778,2830,2854,2855,2856,2857,2858,2859,2860,2861,2868,2869,2870,2871,2872,2873,2875,2876,2880,2964,2977,2978,3414,3418,3432,3484,3512,3534,3592,3614,3629,3692,3743,3781,3817,3842,3984,4030,4081,4100,4134,4149,4169,4199,4230,4253,4284,4314,4346,4373,4448,4470,4508,4518,4552,4571,4597,4639,4689,4715,4784,4785,4787,4810,4833,4869,4900,4917,4974,4987,5011,5040,5042,5076,5092,5120,5425,5434,5443,5450,5467,5471,5477,5516,5518,5525,5532,5541,5548,5549,5560,5563,5578,5579,5588,5589,5598,5607,5613,5615,5616,5617,5653,5654,5656,5664,5671,5684,5688,5690,5691,5697,5704,5718,5728,5733,5741,5749,5755,5756,5760,5762,5763,5775,5776,5777,5778,5780,5781,5784,5786,5789,5793,5794,5800,5801,5802,5804,5806,5808,5809,5810,5813,5815,5818,5819,5821,6019,6026,6027,6037,6042,6059,6073,6082,6083,6084,6088,6089,6091,6093,6099,6100,6103,6104,6106,6107,6108,7008,7009,7013,7031,7040,7043,7050,7051,7053,7054,7055,7057,7109,7110,7113,7114,7231,7232,7243,7254,7261,7264,7273,7274,7275,7290,7345,7536,7538,7539,7541,7546,7559,7574,7581,7590,7593,7596,7603,7611,7615,7616,7617,7631,7635,7644,7645,7646,7650,7685,7686,7703,7710,7718,7719,7724,7732,7776,7777,7783,7786,7797,7802,7803,7806,7839,7840,7846,7853,7854,7863,7872,7887,7891,7943,7944,7949,7951,7954,7956,7957,7958,7967,7981,7989,8003,8015,8016,8018,8020,8042,8053,8059,8060,8072,8084,8171,8183,8185,8194,8197,8203,8228,8231,8232,8233,8235,8238,8241,8252,8254,8256,8284,8358,8365,8369,8370,8379,8401,8402,8407,8408,8487,8489,8491,8500,8504,8510,8516,8522,8532,8537,8538,8556,8567,8572,8577,8587,8593,8597,8603,8609,10217,10218,10219,10226,10228]),G0=new Uint8Array([3,3,3,3,3,3,3,3,5,8,8,2,2,3,3,3,3,3,8,5,5,5,5,5,3,3,5,5,9,12,19,8,19,8,11,9,9,8,7,7,6,8,9,16,10,7,7,11,8,6,6,9,7,11,7,14,4,4,4,4,4,4,10,7,6,6,6,6,10,10,6,10,10,22,11,9,10,10,10,9,10,8,7,7,7,8,21,13,11,11,9,10,9,13,10,8,8,9,12,9,7,10,7,7,13,7,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,8,6,3,3,3,3,3,3,2,5,3,3,3,7,2,2,2,2,2,2,3,3,3,1,1,7,8,5,2,2,7,2,2,1,4,1,11,9,9,5,5,8,5,5,5,5,5,5,5,3,3,3,3,3,5,11,9,9,13,7,14,7,6,6,6,7,6,6,6,6,6,10,7,11,9,4,4,4,4,4,4,6,6,6,6,6,8,7,10,9,9,9,8,9,8,10,6,9,9,8,10,10,7,8,1,9,10,12,12,12,10,9,9,10,10,9,9,1,1,5,3,3,3,3,3,3,3,3,3,3,3,3,6,6,6,4,3,3,3,7,4,4,4,3,3,6,7,3,4,1,2,2,2,6,1,2,2,2,2,2,12,5,3,8,9,13,4,4,13,9,9,11,7,3,12,9,2,2,2,3,3,3,3,3,8,2,2,3,3,3,3,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,3,7,10,15,7,15,15,20,15,9,10,10,12,14,14,14,12,12,12,12,12,14,14,10,10,10,10,14,9,9,9,10,14,14,14,13,13,9,9,9,9,9,9,7,8,6,8,8,6,8,13,8,8,6,13,8,11,13,8,6,13,8,6,9,10,10,12,14,14,14,12,12,12,12,14,14,10,10,10,10,9,9,9,10,14,14,11,13,13,9,9,9,9,9,9,2,6,9,2,2,3,3,3,3,3,3,3,3,3,4,4,4,2,3,3,3,3,3,3,7,7,2,3,2,2,5,3,3,3,3,3,3,4,2,2,2,2,2,2,3,3,3,3,3,3,3,4,5,7,2,2,12,8,10,8,10,7,18,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,5,2,2,3,3,3,5,5,3,8,8,6,8,6,6,4,6,7,7,7,10,11,2,5,5,3,3,3,3,3,3,5,5,6,11,10,7,7,7,4,4,4,2,3,3,3,3,3,2,7,5,5,3,3,3,3,3,3,3,3,7,7,7,11,7,6,9,6,6,8,10,8,6,8,13,4,4,4,4,4,10,8,11,8,8,8,10,10,7,10,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,2,2,2,2,5,5,5,5,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,7,10,13,7,8,7,11,8,8,6,9,8,8,6,6,6,8,8,6,6,6,6,6,9,7,6,4,4,4,4,4,4,4,6,6,6,9,7,8,10,8,8,2,3,3,3,3,3,2,8,9,9,2,2,2,3,3,3,2,3,3,3,9,2,2,3,3,3,3,3,3,5,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,12,5,5,3,5,4,2,3,2,4,3,9,2,2,2,2,2,5,5,3,8,8,13,6,10,9,4,7,9,11,2,3,7,3,3,4,1,3,4,2,9,3,3,12,5,3,7,10,10,7,4,4,6,14,7,9,7,13,2,2,2,2,2,2,3,3,3,3,3,8,15,4,4,2,3,3,3,7,4,9,9,2,3,3,3,5,3,2,2,7,2,7,6,6,7,2,4,2,2,2,2,2,2,8,8,8,9,5,2,3,3,3,3,3,3,10,7,4,4,4,4,3,4,2,3,3,3,3,3,10,7,4,4,4,4,2,3,3,3,3,10,7,4,4,4,4,3,9,6,6,6,9,13,9,2,2,2,8,7,9,5,3,3,3,5,5,12,9,10,7,8,7,6,8,6,11,12,7,9,10,4,4,7,8,11,6,7,9,8,7,10,8,9,15,7,8,5,4,7,2,3,3,3,2,14,10,2,14,10,2,14,3,9,13,13,10,14,16,17,11,2,14,2,14,3,9,13,10,14,16,17,11,14,10,14,2,7,3,10,7,14,10,2,14,10,9,9,17,6,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,10,10,10,12,9,4,10,11,8,8,8,7,9,5,3,3,3,3,3,3,3,3,5,8,4,4,4,4,4,4,6,16,3,3,14,3,14,2,14,9,13,10,10,14,16,17,11,6,9,10,10,12,14,14,14,12,12,12,12,14,14,10,10,10,10,14,9,9,9,10,14,14,14,9,9,9,9,9,9,2,14,9,13,10,10,14,16,17,11,6,2,14,9,17,13,10,10,14,16,17,11,6,2,14,9,13,10,14,16,17,11,2,14,9,13,10,16,11,2,14,10,19,7,2,14,9,13,10,19,10,7,14,16,17,11,6,2,14,9,13,10,19,7,14,16,17,11,2,14,9,13,17,13,10,10,14,16,17,11,6,3,2,14,9,13,10,10,14,16,17,11,6,9,10,12,14,14,14,12,12,12,12,12,14,14,14,10,10,10,14,9,9,9,9,14,14,14,13,13,14,9,9,9,9,9,9,4,11,2,14,9,13,17,13,10,19,10,7,14,16,17,11,6,2,14,9,13,17,13,10,19,10,7,14,16,17,11,6,2,9,10,10,7,17,3,3,12,12,16,15,15,12,14,14,14,20,20,13,12,12,12,12,12,12,20,25,14,14,12,12,10,10,10,10,9,9,9,25,4,9,17,10,7,14,16,21,13,13,14,20,14,13,17,24,9,12,13,25,13,21,20,17,9,9,9,9,9,9,12,17,4,4,9,9,9,10,10,12,14,14,14,12,12,12,12,12,14,14,10,10,10,10,14,9,9,9,10,14,14,14,13,13,9,9,9,9,9,9,1,8,7,11,11,1,3,3,3,4,8,9,10,14,14,12,12,12,12,14,14,10,10,10,10,14,9,9,9,10,14,14,14,13,13,9,9,9,9,9,7,4,4,4,4,4,4,4,4,4,4,9,12,6,14,4,12,7,2,2,1,2,7,6,4,4,4,6,8,8,7,4,5,6,3,3,3,3,4,16,8,3,5,4,3,3,3,5,2,2,8,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,11,12,7,7,13,9,10,12,8,9,7,8,5,12,10,13,14,5,5,5,13,5,5,5,3,3,3,5,16,5,5,5,5,5,7,12,14,8,12,8,10,12,9,11,7,9,7,10,7,13,9,7,12,8,17,7,7,16,10,13,13,8,10,10,14,17,7,16,16,15,8,10,10,12,17,7,17,14,7,10,17,8,7,7,7,8,15,15,7,14,10,10,10,11,11,7,7,13,8,10,7,16,7,8,7,14,17,12,10,11,21,8,9,7,13,9,8,13,6,12,7,6,13,10,10,10,8,18,9,17,13,10,12,6,13,6,11,8,13,10,13,18,13,11,13,8,16,7,10,8,16,12,10,8,8,6,14,11,8,15,8,8,7,7,12,7,8,9,14,15,8,9,10,9,15,7,8,8,12,13,9,10,15,15,13,7,10,10,20,7,6,9,6,6,14,11,14,11,12,9,10,16,16,12,7,11,28,8,11,10,7,21,8,7,9,4,4,4,17,7,8,6,9,6,6,13,6,6,6,6,18,20,14,8,11,12,9,10,13,15,19,8,9,12,7,10,16,12,9,9,9,14,12,11,9,12,11,18,9,9,9,10,7,7,16,8,9,7,13,12,10,18,7,8,11,7,7,8,8,13,7,7,7,11,15,13,11,7,8,15,11,7,8,18,14,13,18,15,10,12,12,9,7,11,11,8,7,10,8,14,12,10,18,7,10,9,7,8,13,10,14,9,10,8,8,23,7,7,11,12,12,17,7,7,11,11,17,16,16,7,8,11,14,14,8,10,7,7,16,16,13,9,11,9,15,15,11,11,7,7,14,7,9,7,7,16,10,13,10,11,14,7,11,10,11,7,11,10,11,15,11,15,10,12,17,10,14,13,11,11,12,13,10,7,13,10,16,12,21,9,10,10,7,11,14,17,7,7,8,11,12,8,15,14,14,8,17,12,10,10,7,9,11,7,10,7,11,18,7,11,7,12,11,8,8,14,12,7,8,15,3,7,7,5,2,9,2,2,2,2,2,2,2,3,3,3,3,3,3,3,2,5,3,3,3,3,3,3,4,4,3,3,3,3,3,3,5,11,6,4,7,10,7,7,11,1,10,2,2,3,3,3,3,3,3,3,3,5,7,3,5,6,3,3,5,2,2,5,3,4,13,11,3,3,6,3,5,14,2,2,3,8,2,2,12,5,18,5,3,3,3,16,5,5,5,10,7,13,12,13,9,12,14,19,9,9,21,9,9,10,6,9,6,15,10,6,12,8,6,10,15,4,4,6,6,9,9,12,16,14,23,7,7,7,14,9,7,7,11,14,10,7,10,10,10,12,6,11,10,13,11,15,11,7,12,10,3,7,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,3,7,2,5,5,3,3,5,5,5,5,7,6,6,6,4,4,4,4,4,4,6,6,6,6,6,7,10,2,2,2,5,5,5,5,3,3,3,3,3,5,5,10,9,11,8,7,12,8,9,7,6,13,11,6,13,7,9,9,4,4,4,4,4,4,6,10,7,8,13,8,8,9,14,8,10,7,7,7,9,6,9,7,2,12,5,3,3,13,4,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,4,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,8,4,4,4,4,4,4,4,4,4,4,4,4,9,3,3,3,3,3,3,3,3,3,3,4,2,2,2,5,3,3,3,3,3,3,3,3,4,4,1,7,6,4,12,3,3,3,3,3,8,7,3,3,3,3,3,3,4,4,11,14,2,8,3,5,5,8,10,8,6,4,7,17,7,4,5,2,6,3,5,2,4,4,2,12,5,5,3,15,13,10,8,11,2,2,3,3,3,3,3,3,3,3,4,4,5,3,3,3,3,4,18,2,12,5,3,3,3,3,3,5,16,8,8,9,6,6,4,4,4,4,31,6,6,10,11,21,10,9,7,10,7,7,2,4,4,4,4,6,5,3,3,4,3,3,3,3,3,3,3,3,3,6,6,6,2,2,2,5,3,3,3,7,7,4,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,8,2,3,3,3,3,3,5,9,11,3,3,3,3,4,4,3,3,3,3,3,5,10,9,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,11,10,10,10,10,10,11,10,11,10,11,10,9,9,11,3,3,3,3,3,3,5,3,7,8,8,7,6,6,11,4,4,4,7,8,9,9,2,3,7,4,4,2,5,5,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,2,2,5,5,5,5,5,3,3,5,5,5,7,7,6,6,6,4,4,4,4,4,4,4,4,4,4,6,6,8,8,1,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,6,9,12,3,7,10,7,2,2,3,3,3,3,3,4,3,3,2,2,2,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,8,8,6,6,8,6,7,4,4,4,4,4,4,6,7,5,5,20,19,8,10,9,7,10,6,8,11,6,6,6,6,13,12,8,6,7,14,11,9,2,5,3,3,6,2,3,2,2,2,2,2,2,2,5,4,3,7,6,4,7,4,3,6,4,7,2,7,7,7,5,5,5,5,3,3,3,3,3,3,3,3,3,3,5,9,10,10,8,11,7,8,20,7,8,9,8,12,6,6,6,8,9,8,12,6,6,8,13,10,12,6,6,7,7,8,9,6,4,4,4,4,4,4,4,10,6,6,6,7,14,11,10,7,8,10,8,11,14,11,11,9,7,9,8,11,9,17,10,9,2,2,2,9,3,3,3,3,15,14,9,5,5,2,8,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,15,12,22,19,17,18,18,19,21,7,16,16,5,5,5,5,5,5,5,5,5,5,5,7,5,5,5,5,5,5,5,5,5,5,5,9,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,7,16,11,11,7,7,7,7,17,7,8,12,15,9,19,7,19,8,16,21,11,12,19,14,22,7,7,7,7,7,7,7,7,7,7,7,16,16,19,24,12,7,14,7,12,7,8,10,10,13,7,12,12,7,7,10,18,15,12,16,7,14,12,17,10,16,17,12,17,25,7,7,7,13,6,9,6,9,18,6,6,11,20,10,6,6,6,6,6,6,6,17,6,6,6,15,6,6,6,6,6,8,14,11,12,15,13,19,17,21,7,18,8,13,13,8,12,8,6,6,13,6,15,15,16,6,6,16,6,6,6,14,6,18,6,6,6,17,18,9,13,15,8,19,8,15,15,18,14,16,4,4,4,4,4,4,4,4,4,4,4,4,6,11,10,11,6,21,23,12,17,12,11,14,13,22,15,15,11,12,14,12,7,12,8,14,12,18,10,8,16,19,17,12,14,15,8,9,19,17,12,13,13,15,18,13,23,24,23,21,17,24,8,21,8,14,14,16,14,8,8,15,20,8,19,21,9,8,13,12,13,15,11,8,11,9,9,8,11,8,21,14,21,15,15,13,7,19,7,7,7,7,7,7,16,12,17,18,7,7,11,11,7,9,9,2,2,3,3,2,2,2,3,3,3,3,3,3,3,3,3,3,4,5,5,5,5,5,5,5,5,3,3,10,10,7,9,7,7,7,6,8,6,6,6,6,6,6,6,7,6,8,6,6,9,7,7,7,4,4,4,4,4,4,4,4,8,9,8,7,8,7,8,10,7,5,5,5,5,5,5,3,9,7,7,8,6,6,6,6,6,6,6,6,9,6,6,9,11,13,7,8,9,9,5,5,5,7,8,6,6,6,6,6,6,6,7,8,9,7,10,9,10,7,8,5,5,5,5,5,5,7,7,9,8,7,7,6,6,6,6,6,6,10,6,6,6,6,6,6,6,6,6,6,6,9,10,4,4,4,4,8,7,7,10,10,9,8,8,15,9,8,8,8,8,8,9,10,9,10,7,8,13,5,5,5,5,5,3,3,7,7,8,6,6,6,4,4,11,9,7,8,9,10,7,5,5,5,5,5,3,3,7,6,6,13,7,9,8,7,5,5,5,5,5,5,5,5,3,3,3,3,7,8,7,8,13,6,6,6,6,6,6,6,6,6,6,6,6,6,6,8,8,6,6,6,6,7,6,7,6,6,9,7,4,4,4,4,4,4,4,7,8,7,8,9,8,8,8,7,10,7,8,5,5,5,5,5,5,5,5,3,7,7,7,7,9,7,10,9,6,6,6,6,6,8,8,6,6,6,7,6,6,6,9,9,4,4,13,7,10,9,9,12,7,8,8,10,8,8,8,8,8,8,5,5,5,5,3,7,7,11,7,9,8,8,6,6,10,6,8,8,8,6,7,6,6,12,4,4,4,4,4,4,4,4,4,9,8,8,16,8,9,8,7,5,5,5,5,5,3,3,7,7,7,10,15,8,9,8,9,9,6,6,6,6,6,6,7,4,8,7,8,8,7,8,11,8,5,5,5,5,5,3,7,7,6,11,16,7,6,4,4,4,4,9,9,8,8,8,13,12,8,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,11,7,8,8,9,13,7,7,7,9,8,8,9,12,7,12,7,12,8,7,10,12,9,9,6,6,8,8,6,6,6,6,6,6,6,9,8,9,11,8,6,6,6,6,6,12,7,6,6,6,9,7,7,6,6,6,6,6,11,9,6,6,6,6,6,7,9,4,4,4,4,4,4,4,4,9,9,9,9,7,7,7,7,7,11,7,7,8,8,8,8,8,8,9,8,9,9,7,7,11,11,7,12,8,8,8,8,8,7,8,8,8,8,8,13,12,8,8,8,8,7,7,7,9,5,5,5,5,5,5,5,3,3,7,7,11,7,8,8,8,6,6,6,6,6,6,6,6,6,6,6,10,11,6,7,9,4,4,4,4,4,4,9,9,8,9,8,8,8,7,7,5,5,5,5,5,5,5,5,5,5,3,3,11,7,7,7,9,6,6,11,8,10,6,6,6,12,8,8,7,6,6,8,7,4,4,4,4,4,4,4,4,9,10,9,9,8,10,9,11,8,5,5,5,7,6,6,8,7,4,4,4,4,8,7,7,8,7,8,8,5,5,5,5,7,7,8,8,8,6,6,6,6,6,10,8,9,13,6,7,6,6,8,7,8,4,4,4,4,11,8,8,8,10,5,5,8,7,8,13,8,7,6,8,6,9,7,8,7,5,5,5,5,5,5,3,3,7,8,9,6,4,8,10,10,8,12,9,13,2,7,5,5,5,5,5,7,7,10,6,6,6,6,6,6,6,8,4,4,9,8,8,8,14,8,8,8,9,8,5,5,5,5,5,3,3,9,6,6,6,6,10,12,6,6,6,6,6,6,6,4,4,4,4,11,8,7,8,8,8,5,5,3,3,3,3,7,7,6,8,6,8,11,7,6,6,6,7,4,8,11,9,10,5,5,5,3,3,3,7,7,8,9,8,15,9,6,6,6,6,6,6,11,11,4,4,4,4,4,7,9,9,10,8,7,5,5,5,5,5,5,3,3,8,6,6,6,6,6,6,6,6,6,9,7,4,4,4,4,4,9,9,8,8,10,13,5,5,5,3,17,7,7,7,7,7,8,6,8,13,6,6,6,6,6,6,6,6,4,4,4,9,10,8,8,8,5,5,5,5,3,7,7,7,8,8,6,6,6,8,8,8,9,10,8,4,8,10,9,8,8,8,9,13,10,5,5,5,5,5,5,5,5,5,5,3,3,7,8,9,9,7,7,7,10,9,9,8,9,8,8,8,6,6,6,6,6,6,6,6,6,6,6,6,6,8,12,6,6,6,6,6,6,6,6,6,12,4,4,4,4,4,4,4,4,4,4,4,11,8,8,9,9,10,8,9,7,7,5,5,5,5,5,5,3,7,8,7,6,6,8,6,6,10,4,7,8,9,12,8,7,7,5,5,5,5,5,5,3,3,7,14,7,9,8,8,6,6,8,12,12,6,6,7,7,10,4,4,4,4,4,9,9,14,9,13,8,7,5,5,5,6,6,6,7,4,8,7,5,5,5,5,5,5,5,5,3,3,7,7,7,8,6,6,6,6,6,6,12,6,6,6,6,4,4,9,9,8,8,11,7,7,7,5,5,5,3,9,8,6,6,7,4,4,4,4,4,4,8,8,11,5,5,5,7,7,7,9,6,6,6,6,6,6,9,8,4,4,4,4,7,12,9,8,8,8,7,10,10,5,5,5,5,5,5,5,3,11,14,8,7,8,8,6,6,6,6,6,8,7,6,6,6,7,6,8,9,4,4,4,7,8,9,7,9,7,7,9,8,5,5,5,5,5,5,5,5,5,11,3,9,7,7,12,14,8,6,6,12,11,8,6,6,6,6,6,6,6,6,6,15,7,4,4,4,16,9,9,9,8,9,9,9,9,9,8,8,8,13,11,8,5,5,5,5,3,7,6,6,8,8,8,6,6,7,10,7,4,4,4,4,9,7,8,7,7,7,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,3,7,7,7,9,6,6,6,6,6,8,8,7,7,9,6,6,6,7,6,6,6,6,6,15,4,4,4,4,4,8,8,7,8,12,9,8,8,8,8,8,9,8,8,10,8,8,8,8,16,9,10,2,5,5,5,5,5,5,5,9,7,6,8,9,4,4,4,4,4,7,8,8,8,9,8,11,10,5,5,5,5,3,7,8,6,6,6,6,6,8,6,6,6,6,4,12,10,12,7,7,7,7,7,7,7,5,5,5,5,3,3,7,7,10,8,9,7,6,10,7,6,6,4,4,8,9,7,9,9,9,9,8,8,8,8,10,5,5,5,5,5,5,8,7,6,6,6,10,6,7,10,7,4,4,4,4,4,4,4,12,9,10,7,7,10,8,10,5,12,9,6,6,6,6,6,7,6,4,4,4,10,9,9,8,7,7,5,5,5,5,5,5,3,3,13,7,7,9,7,7,7,8,9,9,7,8,6,6,6,6,6,6,6,6,6,6,6,6,6,7,13,9,15,15,4,4,4,4,4,10,10,9,8,9,8,8,9,7,8,7,8,5,5,7,6,6,6,4,4,4,7,8,11,8,5,5,5,5,5,5,5,7,6,6,6,6,6,6,9,11,10,7,4,4,4,9,8,8,5,5,5,5,5,9,9,6,6,6,6,6,6,6,9,9,4,4,4,4,8,8,8,9,9,8,8,8,13,2,4,2,7,5,5,5,5,5,5,9,9,6,6,6,6,10,8,8,8,6,6,6,4,4,9,8,10,8,9,8,8,8,9,8,8,5,3,3,3,11,6,6,6,7,6,6,6,4,4,9,8,5,5,5,5,5,3,11,8,6,6,6,6,6,9,7,4,4,14,10,9,8,12,8,8,8,11,15,8,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,11,11,11,10,10,7,7,3,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,5,5,5,5,5,5,5,5,3,3,3,7,11,7,7,11,11,7,8,9,10,7,7,9,9,9,9,7,7,10,8,13,8,8,8,8,11,10,6,6,8,10,11,14,14,6,6,6,6,6,6,9,11,7,7,6,8,12,11,11,6,6,10,6,6,6,6,6,10,7,7,6,6,11,6,6,6,11,8,9,7,6,10,11,9,10,11,7,11,8,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,6,6,8,9,10,9,6,6,6,10,6,6,6,6,11,10,11,10,9,8,7,7,7,7,11,14,8,10,9,9,8,8,7,11,8,8,8,11,11,10,10,9,10,8,11,10,8,11,9,12,8,10,8,11,8,9,9,11,11,10,11,13,8,7,8,8,9,7,8,8,8,8,7,8,2,2,2,2,2,2,2,4,4,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,2,3,3,3,3,3,3,3,3,8,6,4,4,4,11,7,11,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,5,5,5,5,3,3,3,3,8,7,7,8,8,4,8,7,7,7,9,7,8,9,8,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,6,3,3,3,3,3,3,3,3,4,2,2,3,3,3,3,3,4,5,5,3,8,8,6,9,4,4,10,7,3,3,3,2,5,3,3,3,3,3,3,3,3,3,3,3,3,4,3,2,2,2,3,3,3,3,3,4,10,2,3,3,3,3,3,3,3,4,2,3,3,3,3,3,3,3,3,2,2,3,3,3,5,2,4,2,6,2,2,9,5,5,3,3,3,3,3,3,3,5,5,5,9,8,7,6,6,11,4,4,4,4,4,4,4,4,6,6,7,7,11,8,8,6,5,11,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,2,2,3,3,3,3,3,3,6,4,4,4,4,3,3,3,3,5,7,2,3,3,3,3,3,8,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,6,4,4,4,4,2,2,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,4,2,2,3,3,3,3,3,3,2,3,3,3,3,3,6,3,3,8,10,3,4,4,1,1,1,1,1,1,1,8,9,10,7,7,1,1,3,8,7,7,8,8,8,1,6,1,1,6,3,3,4,7,3,5,5,4,4,4,4,4,2,7,7,8,12,3,4,5,1,3,4,4,10,4,3,3,3,8,7,7,2,2,2,2,2,2,2,2,2,12,9,20,7,5,5,5,9,13,5,5,5,5,5,3,3,3,16,5,5,5,13,7,8,8,11,8,7,9,7,11,12,9,9,8,8,11,10,14,7,12,10,11,13,7,9,11,17,17,14,13,7,8,7,10,10,7,16,13,7,8,17,12,9,8,6,7,10,6,6,12,6,8,10,8,8,8,6,8,6,14,6,6,6,13,6,10,6,6,7,14,8,6,6,10,11,10,9,9,7,7,6,6,6,9,9,7,9,10,9,13,12,4,4,4,4,4,4,4,4,4,6,6,6,8,8,6,8,9,10,9,7,10,10,8,7,8,7,10,12,9,8,15,8,7,8,8,7,7,15,13,7,10,9,14,18,16,7,24,7,8,10,11,16,8,14,7,9,9,9,11,13,19,14,15,14,11,7,13,9,10,7,13,9,10,11,12,8,9,2,3,5,8,7,4,4,10,5,3,3,3,3,3,5,4,4,4,2,2,2,2,2,1,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,2,2,2,3,3,3,3,3,3,3,3,3,3,4,2,12,5,3,8,10,15,6,7,2,3,2,5,5,12,2,5,5,5,5,2,2,5,5,12,9,5,2,2,9,5,5,12,12,5,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,9,12,5,8,8,9,5,5,5,8,19,7,16,15,14,9,9,9,9,7,11,11,11,7,14,10,10,5,5,5,5,5,5,5,5,5,15,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,9,9,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,14,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,15,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,5,5,5,5,5,12,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,9,9,12,9,9,12,12,12,15,7,11,7,14,11,18,13,8,18,15,18,12,14,12,8,8,8,8,9,9,9,12,7,10,10,8,8,12,12,12,7,12,12,9,7,7,7,7,7,8,15,12,9,10,10,7,10,10,13,11,10,9,22,11,9,8,8,8,8,8,13,18,13,9,15,19,9,7,7,10,7,7,7,11,8,13,17,7,7,10,10,10,7,20,16,7,7,7,7,7,7,11,21,12,12,13,11,14,16,8,8,13,11,7,7,13,7,7,14,15,15,6,6,6,6,6,6,6,6,6,6,13,10,18,6,6,6,6,6,6,6,6,6,11,8,8,12,12,11,11,8,12,9,9,9,13,13,9,9,9,9,9,9,6,10,12,6,6,6,6,17,11,7,7,7,7,14,14,12,6,7,7,6,6,15,10,13,10,6,8,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,13,9,9,15,13,6,12,12,6,19,11,10,7,7,16,8,19,17,9,9,9,9,9,6,6,6,10,8,16,8,6,6,9,6,6,6,6,6,6,6,6,8,8,8,6,7,6,6,6,6,6,6,6,6,6,6,6,14,6,6,6,6,20,6,9,6,14,9,9,9,6,9,8,8,12,9,8,8,8,8,7,8,12,7,8,8,8,6,8,6,6,6,6,6,6,6,9,8,8,6,6,13,9,12,13,12,14,13,12,11,11,6,8,8,8,6,13,12,11,11,12,6,11,12,11,13,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,15,6,6,6,6,6,6,6,13,6,6,6,6,6,6,6,6,6,6,6,6,6,8,8,8,8,6,18,6,12,13,13,13,9,10,15,9,12,6,6,6,6,6,6,6,6,9,15,10,9,10,13,9,19,8,18,17,10,10,8,8,6,6,6,6,6,6,10,14,8,16,16,9,8,15,8,8,10,12,14,7,7,8,8,7,7,7,7,8,13,13,11,9,9,9,12,10,17,8,11,9,7,7,14,8,14,14,7,7,7,7,7,7,14,7,7,7,7,7,10,10,8,14,7,7,7,7,8,8,8,8,8,17,9,7,15,7,8,12,7,9,14,7,7,7,9,13,8,14,7,16,18,13,15,14,12,13,10,15,9,7,7,7,10,13,15,15,9,9,9,9,19,11,7,11,11,13,8,8,8,8,7,12,19,17,9,9,13,7,7,7,9,7,7,7,12,13,15,10,8,8,14,15,12,13,13,8,12,14,7,11,7,14,15,13,12,8,8,8,8,11,13,15,15,8,13,12,8,8,8,13,10,16,14,11,8,8,12,12,9,15,15,12,12,13,8,8,9,12,13,9,8,8,8,8,8,8,8,8,8,8,8,11,12,11,7,14,7,13,13,13,12,18,16,7,12,11,10,10,15,9,9,9,21,7,7,7,11,16,8,8,11,11,7,7,7,7,7,19,7,7,7,7,7,7,7,7,7,12,8,9,12,14,11,9,9,9,22,12,3,8,8,15,4,2,2,5,5,3,3,3,3,3,3,6,6,4,4,4,12,7,10,2,3,3,3,3,3,3,3,6,7,3,7,5,14,4,4,7,8,10,4,1,3,3,6,2,4,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,2,2,5,3,4,2,2,2,2,2,2,11,5,5,5,11,5,5,3,5,5,5,5,11,14,13,9,11,9,12,8,11,11,8,11,16,9,9,7,10,9,12,8,15,6,7,6,6,13,10,8,11,8,6,6,6,12,16,6,11,7,8,9,18,6,6,9,4,4,6,13,6,6,6,6,8,8,9,16,7,7,14,7,8,8,8,7,7,7,7,7,7,15,13,7,10,7,7,10,12,16,15,7,9,9,14,11,11,10,9,10,8,12,7,8,7,7,10,12,7,12,8,7,2,3,3,3,3,3,3,3,3,3,3,5,3,3,5,5,5,10,4,8,7,10,3,3,3,3,3,3,3,3,3,3,1,3,3,3,3,3,3,3,7,4,5,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,6,6,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,8,2,2,2,8,12,7,7,5,5,5,5,5,5,5,5,5,5,5,5,8,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,5,7,11,9,8,8,8,7,8,9,7,7,9,7,7,7,10,7,7,10,9,10,6,6,6,6,6,6,15,7,8,9,9,8,6,6,10,9,6,8,13,9,7,6,6,6,6,6,6,12,6,6,7,6,7,6,6,6,10,10,7,6,6,6,4,4,4,4,4,4,4,4,4,4,4,4,4,4,6,14,6,6,7,7,9,6,6,6,6,9,9,8,9,10,9,8,9,12,7,7,7,8,7,10,12,11,9,10,7,7,7,9,10,10,8,12,9,7,7,9,8,8,8,10,7,7,8,9,9,7,7,7,8,2,4,6,3,4,2,3,3,3,3,2,3,3,3,3,3,3,3,3,4,4,4,4,5,5,3,3,3,3,3,3,3,3,5,8,6,4,7,3,3,3,3,3,3,3,12,3,3,3,3,3,3,4,4,2,3,5,3,4,7,3,3,3,3,3,3,4,3,3,3,3,3,3,3,4,3,3,6,4,3,4,2,2,2,5,3,3,3,3,3,5,4,4,4,4,7,6,8,9,2,2,2,2,3,3,3,5,7,2,3,3,8,7,7,2,2,8,5,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,8,8,7,7,6,10,6,9,7,11,4,6,8,8,7,8,4,5,5,5,3,3,11,8,9,6,6,8,7,4,4,7,8,7,2,2,3,3,3,3,4,3,3,3,3,3,3,3,3,7,2,2,5,3,3,2,3,3,3,3,3,3,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,12,5,5,3,3,3,5,10,12,6,15,4,6,6,7,14,9,3,3,3,3,3,8,2,2,3,5,3,3,3,3,3,3,8,8,8,7,5,8,4,6,11,2,2,6,7,2,9,8,5,5,3,3,5,5,7,7,6,6,10,6,6,8,9,7,4,4,4,4,7,6,6,7,7,10,9,8,11,8,3,3,3,3,3,4,4,2,3,3,3,3,3,7,6,2,5,6,7,6,4,8,9,11,2,2,3,3,3,3,3,3,3,2,2,5,3,3,3,3,3,9,9,6,4,8,7,7,5,9,8,6,8,7,8,5,5,5,5,5,3,3,3,16,8,7,7,7,8,7,7,7,7,9,6,9,6,10,7,7,7,6,10,8,9,11,11,8,4,4,10,8,8,6,9,6,11,8,8,8,15,7,8,9,5,3,3,3,3,3,5,11,2,2,3,8,9,10,3,2,2,2,2,2,2,3,6,4,2,2,3,3,3,3,3,3,3,3,3,3,4,4,2,3,3,3,3,3,3,3,11,5,3,3,3,3,3,3,3,3,6,7,4,4,2,3,3,3,3,3,3,3,3,12,7,4,12,4,6,5,4,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,2,3,3,3,3,3,3,3,3,4,4,11,10,6,4,6,10,8,3,3,3,3,3,3,3,3,5,4,4,4,2,2,2,2,2,2,2,2,5,3,4,4,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,10,5,5,5,5,5,5,3,3,3,3,3,3,3,3,7,8,8,7,13,12,10,10,8,8,7,7,9,12,11,6,6,8,8,9,7,7,7,10,15,10,4,4,4,4,4,11,8,8,9,7,9,14,14,12,2,2,2,2,2,2,2,3,3,3,3,3,2,2,12,5,5,5,8,11,10,7,9,3,8,7,3,15,13,11,4,4,2,2,2,19,7,5,5,3,3,3,3,3,3,3,5,22,18,6,14,17,4,4,19,16,18,2,3,3,2,3,2,3,3,6,4,2,3,3,2,5,3,3,3,3,3,3,3,9,9,2,3,2,2,2,3,3,3,5,7,14,7,7,12,9,13,6,11,6,10,9,7,7,8,12,12,8,8,8,10,7,7,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,5,8,10,7,8,11,8,12,9,4,7,7,9,13,2,3,3,3,3,3,3,2,3,3,3,1,2,2,3,3,3,3,3,3,5,2,2,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,8,4,4,4,3,2,3,3,3,3,5,2,2,2,2,5,5,5,5,3,3,3,3,3,3,3,3,3,7,7,7,7,7,8,8,8,8,8,12,9,8,8,9,8,6,17,6,6,6,8,8,6,6,6,6,6,6,6,6,6,6,6,7,4,4,8,8,9,9,9,7,7,7,7,7,7,7,9,9,9,7,8,8,8,10,7,13,10,8,9,3,3,5,13,3,3,3,3,3,7,7,6,6,10,13,11,11,8,8,9,8,9,9,10,10,10,11,10,10,13,13,16,15,11,12,9,9,10,9,11,10,9,9,14,7,8,3,10,7,7,3,2,2,2,5,3,3,3,3,3,3,3,3,3,3,3,3,6,7,2,2,3,3,3,3,3,3,3,3,4,11,6,7,4,6,2,2,3,3,3,1,3,3,3,3,3,3,6,4,4,2,2,2,3,3,3,3,4,4,6,6,6,6,5,4,4,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,9,11,6,10,9,12,7,7,11,14,9,7,12,3,3,7,12,11,12,7,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,9,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,3,3,3,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,11,5,5,5,5,5,5,5,5,11,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,5,5,5,5,5,3,3,3,5,5,5,5,5,5,5,5,5,5,5,3,3,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,3,10,3,3,3,11,3,5,9,11,8,12,14,9,7,8,7,7,11,11,7,7,10,9,8,10,9,7,7,7,7,7,7,8,8,7,11,8,8,8,7,7,10,8,7,13,12,7,17,10,8,8,11,7,11,11,14,7,11,7,8,6,9,20,8,7,9,16,7,10,6,11,10,8,9,7,16,11,11,9,8,9,8,8,8,11,8,15,8,8,9,7,8,8,11,10,7,5,7,10,10,15,7,7,7,8,7,8,8,10,11,10,10,10,11,11,7,8,6,8,8,8,10,6,8,6,6,7,8,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,16,6,15,6,7,11,11,7,9,10,11,13,10,6,16,8,10,12,11,6,6,6,6,6,6,6,10,6,10,7,7,7,7,11,7,11,6,6,6,6,6,6,17,7,7,6,6,12,22,6,6,6,6,6,8,6,6,6,6,7,6,6,5,6,6,8,11,6,9,14,11,9,11,7,7,8,6,6,6,8,10,9,6,6,6,6,9,7,6,6,6,6,6,15,6,4,4,4,6,4,17,8,11,6,6,9,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,6,6,6,6,10,6,10,6,6,6,6,12,8,6,6,6,6,6,6,6,6,6,9,6,6,6,6,18,6,6,6,8,9,10,7,8,9,10,11,7,13,6,8,8,6,6,14,7,7,7,7,10,7,14,9,6,6,9,15,9,7,14,6,11,14,13,7,12,8,7,7,7,7,7,12,7,10,9,16,6,8,6,5,17,6,8,10,4,6,4,10,15,17,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,4,4,11,7,4,4,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,19,17,6,10,11,6,6,6,6,18,6,6,11,4,4,4,5,6,6,6,9,5,6,4,6,6,4,6,6,6,6,10,6,6,4,6,6,10,6,10,6,6,6,6,11,6,6,10,6,6,8,6,6,6,8,6,11,4,11,9,10,9,11,4,8,4,11,12,7,9,8,6,7,7,8,12,12,11,13,10,11,7,7,7,9,7,11,10,7,7,7,16,11,10,11,17,9,9,8,8,7,7,7,9,7,7,7,14,7,13,9,11,10,14,10,10,12,11,10,7,10,5,14,8,8,8,9,7,8,7,7,9,8,7,8,7,7,7,7,7,7,7,11,8,10,8,7,8,14,11,8,9,9,9,8,24,10,10,12,7,7,15,11,8,8,12,11,8,9,9,7,8,9,10,11,10,11,7,12,7,7,11,9,8,14,13,12,8,11,10,8,8,7,7,14,9,10,8,9,11,7,14,8,8,13,8,8,12,7,10,14,14,11,9,10,9,9,7,7,11,11,13,9,13,5,5,5,7,9,5,11,12,14,8,7,7,11,10,9,7,8,8,7,10,11,11,5,5,7,5,5,5,7,7,15,7,7,8,7,15,12,12,10,7,8,7,11,7,7,7,23,11,8,8,11,10,7,8,11,7,19,7,7,6,9,9,9,11,3,4,7,8,6,6,4,10,8,2,2]),W6=new Uint16Array([0,0,0,1,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,1,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,12,1,1,1,1,1,17,1,1,1,12,1,12,1,12,13,1,1,1,1,12,1,12,1,1,1,1,1,14,21,1,1,1,1,1,1,1,19,12,1,1,1,1,1,1,1,20,1,1,1,16,1,18,1,1,15,1,1,1,1,12,1,1,1,1,1,1,22,1,1,1,12,1,1,1,1,1,1,1,1,1,12,12,12,12,12,12,12,12,12,12,12,12,1,24,25,26,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,1,1,12,12,12,12,1,32,0,0,0,1,1,1,1,35,34,1,1,1,1,1,33,1,1,1,1,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,38,0,0,0,0,39,40,0,0,0,41,0,12,1,1,12,1,1,1,1,44,45,45,45,44,45,44,44,46,45,44,45,44,44,44,44,44,44,46,44,44,44,44,44,44,45,47,47,45,44,44,44,44,44,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,50,52,50,50,50,52,50,51,50,53,50,51,51,50,50,50,51,53,51,53,50,51,51,12,55,55,54,56,51,53,50,50,48,49,57,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,60,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,67,1,12,1,1,66,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,78,0,0,0,0,0,0,0,0,0,0,0,0,0,76,79,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,77,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,12,1,1,1,1,89,1,91,1,1,1,1,1,1,1,1,94,1,1,1,1,1,1,1,1,1,1,1,1,0,1,97,97,1,1,12,1,100,1,1,1,1,1,1,1,98,1,99,1,101,1,1,1,1,1,102,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,110,111,1,1,1,1,1,1,113,113,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,121,122,1,1,1,1,1,1,1,1,1,1,1,1,1,122,1,1,1,1,1,1,1,1,1,1,122,1,1,1,1,1,1,1,1,1,126,123,125,120,1,124,1,1,114,1,1,1,1,117,1,127,1,1,1,1,1,119,1,108,1,109,1,12,128,106,1,112,1,1,1,1,1,107,115,1,12,12,12,118,116,1,1,1,1,1,1,0,0,0,0,1,12,12,1,1,1,1,1,12,134,1,1,1,1,1,1,1,1,1,1,1,12,136,1,1,1,1,1,1,1,1,137,138,12,12,135,133,45,45,140,50,50,139,142,141,1,1,0,0,0,0,0,0,0,0,0,0,0,0,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,143,0,0,0,0,1,0,144,132,1,0,1,12,12,1,1,1,1,1,0,0,0,0,0,0,0,1,148,147,20,1,1,12,12,1,20,12,12,1,1,1,1,1,134,1,1,152,1,1,1,1,153,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,1,1,136,1,1,152,1,1,1,1,153,1,1,134,1,1,1,152,1,1,1,1,153,1,1,134,1,1,1,1,1,1,1,1,134,1,1,1,1,1,1,1,1,1,1,1,160,1,1,1,152,1,1,1,1,1,153,1,1,160,1,1,1,1,1,1,1,1,1,1,134,1,1,1,1,152,1,1,1,1,153,1,1,1,134,1,1,152,1,1,1,1,164,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,1,167,1,1,160,1,1,1,1,1,152,1,1,1,1,1,153,1,1,160,1,1,1,1,1,152,1,1,1,1,1,153,1,154,158,158,12,1,12,166,1,1,1,1,1,158,158,158,154,1,1,1,157,158,161,165,1,1,1,1,157,157,1,1,156,154,154,157,170,156,170,1,1,168,1,156,155,157,1,1,1,1,157,1,159,1,1,1,12,1,162,1,162,1,1,1,162,161,163,169,156,154,1,1,1,1,1,1,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,173,172,173,172,172,172,172,174,174,172,173,172,173,172,172,12,12,12,12,12,1,12,12,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,193,1,1,1,1,12,199,200,201,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,151,1,1,1,1,1,1,1,1,1,1,1,196,1,1,1,184,1,210,1,1,1,208,1,1,205,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,12,1,1,1,1,1,1,1,1,190,1,1,1,186,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,182,1,1,1,1,1,1,1,191,1,1,1,1,195,1,1,1,1,171,1,1,189,1,1,1,192,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,180,1,12,1,1,12,1,1,1,1,183,1,1,1,188,1,203,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,209,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,194,1,1,1,1,1,12,1,1,1,1,1,1,1,1,176,12,1,1,1,178,12,1,1,1,1,1,1,1,198,1,1,1,1,1,1,1,1,1,1,177,1,1,1,1,1,1,204,1,1,1,181,1,1,1,187,1,12,1,1,12,1,1,1,1,1,1,1,1,1,1,191,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,175,1,1,1,1,1,1,1,1,1,1,185,1,1,1,1,1,1,1,1,1,1,1,206,1,1,1,1,1,1,1,1,1,1,1,1,1,207,1,1,12,1,1,1,1,179,1,1,1,185,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,197,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,12,1,1,1,1,1,1,1,1,1,202,1,1,12,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,220,0,0,0,0,0,221,0,0,0,0,0,0,1,12,1,1,1,225,1,1,1,0,226,223,224,1,1,1,1,1,1,231,1,233,1,1,1,1,1,1,1,1,1,1,1,229,1,1,1,1,1,235,1,1,12,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,234,1,1,1,12,1,1,1,1,230,1,1,1,228,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,232,1,1,1,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,241,13,1,1,1,12,12,238,239,1,1,1,1,240,1,1,12,1,1,1,1,1,1,1,242,1,1,12,16,1,1,1,1,1,1,1,243,1,1,1,12,12,1,1,1,1,1,243,12,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,1,252,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,256,256,1,0,0,0,0,0,1,12,0,0,0,0,0,0,0,0,172,261,262,1,12,1,1,1,1,12,264,1,1,263,1,1,266,1,1,1,1,1,1,1,1,1,0,1,1,1,271,272,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,12,1,0,1,0,0,0,0,1,0,1,0,1,1,1,1,1,0,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,1,12,0,283,0,0,284,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,1,12,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,60,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,1,1,1,0,308,0,0,0,0,0,0,0,0,0,310,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,327,327,328,327,0,185,1,1,13,323,1,321,0,0,0,0,1,0,0,0,324,1,1,329,1,205,1,1,1,1,1,322,1,319,1,325,1,317,1,326,1,318,1,1,1,1,1,1,1,12,1,1,1,12,1,12,320,320,1,1,1,316,184,1,1,12,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,12,1,1,1,1,315,1,0,0,0,1,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,332,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,266,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,372,372,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,364,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,0,1,340,351,1,1,339,374,1,345,1,1,337,369,1,1,355,336,341,1,1,1,348,379,357,1,1,1,1,1,1,358,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0,367,371,0,0,79,1,1,0,365,342,378,343,346,353,1,368,0,1,0,79,362,360,1,0,0,1,1,1,0,0,0,0,381,1,1,352,1,79,1,0,1,1,1,384,1,0,0,79,359,0,1,338,1,1,1,0,1,1,361,1,0,1,1,1,0,1,386,349,1,1,0,1,0,0,377,0,1,1,1,79,370,1,1,366,363,1,1,1,1,1,1,1,1,1,1,1,344,1,1,1,1,1,1,1,1,1,1,1,376,0,79,1,1,1,1,0,1,1,1,1,1,1,0,0,1,1,380,1,1,1,0,0,383,0,0,0,1,356,1,0,79,382,1,0,0,0,0,385,1,1,0,0,1,0,1,0,354,0,350,0,1,1,1,0,1,1,0,373,347,375,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,0,0,0,1,0,0,1,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,1,1,1,400,400,1,1,12,12,1,400,1,1,12,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,1,1,1,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,412,1,1,0,1,1,1,1,205,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,430,430,1,1,0,0,317,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,442,1,441,1,1,1,1,1,1,1,1,445,1,12,12,1,1,1,1,1,12,1,1,1,1,453,1,1,1,455,1,1,1,1,1,1,1,1,1,1,452,1,447,1,1,1,1,435,1,1,1,1,1,1,1,1,448,12,1,1,1,1,454,1,1,1,449,444,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,317,1,433,1,1,12,451,1,1,317,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,437,1,1,1,1,1,1,1,1,1,1,1,454,1,1,1,1,317,1,450,1,1,1,439,1,1,1,1,1,440,1,456,443,1,1,1,1,1,438,1,1,1,1,1,1,1,1,1,434,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,446,1,1,1,1,1,1,1,12,1,1,1,1,1,436,1,1,1,1,1,1,1,220,457,1,1,1,1,1,12,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,1,0,0,1,0,1,0,1,1,0,0,0,462,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,12,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,466,0,466,466,466,466,466,466,466,0,466,466,466,466,466,1,466,466,466,0,466,466,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,471,470,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,475,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,468,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,469,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,477,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,466,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,474,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,467,0,0,478,473,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,472,0,0,0,0,0,0,0,0,0,0,0,0,0,466,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,467,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,466,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,476,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,12,1,1,1,1,1,1,1,1,1,1,1,1,488,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,198,198,1,492,1,1,1,491,1,1,1,1,487,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,489,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,493,1,1,490,1,1,1,1,1,1,1,1,372,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,494,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,1,0,0,0,0,1,0,1,0,0,0,0,0,0,0,1,0,0,0,505,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,1,0,1,0,0,0,1,0,0,0,1,0,0,0,0,1,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,0,0,0,0,0,0,1,0,1,0,0,12,1,507,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,12,12,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,0,1,0,0,0,0,0,0,0,1,0,0,1,0,1,1,1,1,0,0,0,1,0,0,0,1,60,1,1,12,12,12,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,526,1,1,1,1,1,1,1,527,1,1,1,1,1,1,1,525,1,1,12,1,529,239,1,1,12,12,1,1,12,1,12,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,533,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,1,1,0,0,0,1,0,0,0,1,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,1,1,1,539,1,1,1,1,1,1,1,1,1,1,1,1,1,1,132,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,107,1,1,12,1,1,1,12,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,548,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,1,1,0,0,0,1,1,1,1,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,144,1,1,1,228,1,1,12,30,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,1,572,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,577,1,220,1,328,1,1,1,1,1,1,1,1,1,0,0,578,1,1,1,1,0,580,0,79,0,579,0,1,1,1,0,1,1,1,1,1,1,12,0,0,0,0,1,0,0,0,0,0,0,586,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,582,582,0,585,583,582,582,582,582,582,587,582,582,591,582,582,582,582,582,582,582,582,582,582,588,585,582,582,585,582,582,582,582,582,582,582,582,582,582,582,582,582,583,582,582,582,582,582,589,582,582,582,582,582,582,0,0,0,1,590,1,1,1,1,584,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,12,595,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,1,12,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,12,1,1,12,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,65,280,306,411,535,0,4,68,236,254,282,307,334,388,413,0,499,519,536,597,9,0,61,88,398,409,429,575,0,497,518,532,612,0,30,6,0,461,500,602,560,70,0,7,285,255,389,463,416,538,79,598,0,576,309,418,465,9,105,288,506,6,30,0,311,79,391,79,483,10,6,131,248,275,0,613,509,0,563,0,64,6,6,251,95,2,432,399,410,596,0,6,0,6,286,103,6,561,501,540,0,464,390,273,287,8,71,104,599,543,392,312,300,419,146,74,290,546,510,601,564,335,330,479,6,75,149,11,0,249,522,547,565,514,551,570,611,36,6,260,295,333,304,218,30,528,553,218,42,216,265,296,305,406,423,481,274,0,73,562,0,403,417,299,79,247,79,0,581,545,504,292,421,79,393,387,0,0,0,9,555,571,217,0,424,407,531,516,573,615,85,218,43,297,396,425,569,0,511,293,276,79,215,80,28,390,30,6,394,331,303,604,592,524,550,513,0,258,81,30,405,422,0,30,426,0,219,593,517,9,408,427,218,248,86,222,594,574,557,482,428,397,250,227,87,59,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,620,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,414,0,0,0,0,0,0,0,0,82,0,129,0,0,84,549,0,0,0,0,0,0,0,27,0,552,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,414,0,0,0,0,503,0,257,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,294,0,0,0,0,0,0,0,617,0,0,0,0,0,616,0,0,0,0,0,0,0,0,0,0,0,0,0,0,395,0,0,0,484,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,69,0,0,0,0,0,0,495,0,0,0,0,0,0,404,0,0,0,0,0,0,0,0,0,0,0,0,0,211,0,0,0,0,0,0,0,0,0,0,515,0,0,0,0,0,0,0,0,0,0,0,0,496,0,0,0,0,0,0,0,0,0,0,0,0,0,0,269,281,0,0,0,0,0,530,277,0,0,0,0,0,0,0,0,0,0,0,0,0,512,0,0,0,0,0,0,0,0,0,0,0,458,0,0,0,314,0,0,0,0,0,0,253,0,0,0,0,0,0,23,0,0,0,0,568,0,0,0,0,600,521,0,0,0,0,244,0,0,0,0,0,0,0,0,0,480,0,0,0,0,0,62,0,0,0,267,58,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,0,0,0,0,0,279,610,0,72,0,0,0,0,0,0,0,0,0,619,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,150,0,278,0,0,0,0,0,0,567,0,0,0,0,0,0,523,0,0,0,0,0,0,0,0,0,566,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,84,0,502,0,0,0,0,0,554,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,84,83,0,0,0,0,0,0,0,0,0,0,0,0,486,0,485,0,0,0,0,0,0,0,0,0,0,259,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,459,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,289,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,537,0,0,0,0,0,0,0,0,298,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,69,237,0,0,0,0,0,0,0,0,0,0,84,0,606,0,0,0,0,0,0,0,0,0,0,0,0,245,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,609,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,520,0,0,0,84,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,498,0,614,0,0,431,0,0,0,0,0,0,0,0,0,0,0,0,402,0,0,0,544,0,93,0,0,0,0,0,0,0,0,0,0,31,0,0,0,0,0,0,29,92,0,0,0,0,0,0,0,0,0,0,0,0,291,0,0,0,214,0,0,0,0,0,0,558,0,270,0,0,130,0,0,0,0,0,559,0,0,0,0,0,0,0,414,420,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,313,0,0,0,0,0,5,0,0,0,0,0,0,0,301,0,0,0,0,0,0,0,0,0,0,0,0,0,534,0,0,0,415,0,0,401,0,0,0,0,0,0,603,0,0,0,541,0,0,90,0,542,0,0,0,0,0,0,0,0,0,0,508,460,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,268,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,414,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,608,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,607,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,618,0,0,0,0,0,556,0,0,0,0,0,0,0,0,0,0,302,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,605,0,0,212,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,623,623,623,623,623,623,623,622,624]),FE="orgmilcomschnetedugovdrrformsfeedbackofficialaccoorgmilschnetgovmagazinemediaunioncargopilotgroupcaarespressworksaerodromeworkinggroupair-traffic-controlaircraftaccident-preventioneducatormarketplaceambulanceinsurancecateringairportrepbodyenginesoftwaremodellingair-surveillanceconsultingchartertrainermaintenanceservicesdesignflightskydivingfreightassociationstudentgroundhandlingdgcafuelclubtaxicrewshowballooningexpresstraderbrokerauthoragentsairtrafficjournalistsafetyconsultantmicrolightaccident-investigationparachutingequipmentproductionfederationrecreationscientistnavigationengineertradingglidingleasingresearchpassenger-associationentertainmentparaglidinghangglidingaerobaticrotorcraftemergencycertificationgovernmentaeroclubexchangelogisticschampionshiphomebuiltcouncilconferencecontrolairlinecivilaviationjournalorgcomnetedugovcoorgcomnomnetobjofforgcomnetuwukiloappsframerorgmilcomnetedugovcoradioorgcomnetcommuneedogpbcoitgvorgedugov*spreviewfrontendrelayononstagingupid*mtls*privatelinktypedreamdeveloperbravemochawindsurfaivenmirenupsunwnextbegetngrokclerkwale2bwebcsbrunputerflutterflowspawnbaseshiptodaymagicpatternsnetlifyondigitaloceanrailwayhostedclaudehasurabotdashvercelgithubluyanigadgetreplitcloudflaretelebitedgecomputeevervaultdetaexponyatnoopencrpplxzeaburwasmerframerzeropsconvexmedusajsspritesonherculeseasypanelstreamlitsnowflakemesserliloginlinehackclubnorthflankbase44corespeedadaptableleapcellngrok-freeclerkstagelovableon-fleek*us-west-3ap-south-2us-central-2us-central-1eu-central-1ap-south-1us-west-2us-east-2eu-north-1ap-north-1us-west-1us-east-1*rcloudintsegorgmilcomgobbetnetintedugovturmusicasenasamutualcoopip6uriurnin-addre164homeirisgovdixdaemoncloudnssthwien*inexexkunden4accogvormymyspreadshop4lima2ixortsinfofuturecmsfuturehosting12hpprivfuturemailinglima-cityfunkfeuer123webseitednshomemelmyspreadshopcloudletswasantqldvicactnswtascatholicwasaqldvictasvpsidwasantozqldorgcomvicasnactnetedugovnswtasconfhrsncomairflowlambda-urltransfer-webappairflowtransfer-webapptransfer-webapptransfer-webapp-fipstransfer-webappeu-west-3ap-south-2eu-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1mx-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1ap-southeast-7us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2ap-southeast-5us-gov-west-1us-gov-east-1ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1privatenotebookstudiolabelingnotebookstudionotebooknotebook-fipslabelingnotebookstudionotebook-fipsnotebookstudio-fipsnotebook-fipsnotebookstudionotebook-fipsnotebookstudioeu-west-3ap-south-2eu-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2experimentsus-gov-west-1us-gov-east-1ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1onrepostsagemakercopporgmilcompronetintedugovbiznameinfoshoprsorgmilcomnetedugovbrendlyresolvenzauscotvstoreorgcomnetedugovbizinfoidacaicoittvorgmilcomschnetedugovinfocloudezproxyacmymyspreadshopkuleuvenwebhostingtransurl123websitecloudnsinterhostsolutionsddns5476103298edgfacbmlonihkjutwvqpsryxzbarsycoororgcomedumyftpno-iporxcloud-ipfor-somemmafanfor-morewebhopselfipjozidyndnscloudnsdscloudfor-thefor-betteractivetrailcoeconorestooteorgcomeconeteduassurmoneyafricaarchitectesrestaurantloisirstourismavocatsinfoagrounivcoorgcomnetedugovtvdeportesaludtksatorgmilcomwebgobnetinteducienciaboliviarevistacooperativaempresanombreindustriamusicapatriamedicinademocraciapoliticapuebloindigenaplurinacionalarteblogwikiinfoagrotransportenoticiasprofesionalacademiaeconomiaecologiamovimientotecnologianaturalsimplesitecepesebamapadfmgalampbacscpirngorotomtrjspaprrprrsesmscepesebamapadfmgalampbacscpirngorotomtrjspaprrprrsesms*biaamfmtcmptvfeirasampajampanatalbelemananiradiog12medindfndbmdtrdthepoaggfjdfdefinfenflegsegongengcngorgzlgslglogppgmillelqslcimcomnomadmjabimbbibbsbabcrectecsjcetcpscpvhudieticriapipsiecnbiorioecogeoteoodoproatoartfstmatvetdetbetnetcntnotfotgrueduajuespappreptmpemparqsrvadvdevgovntrturagrjorfarjusmusdesvixxyzcozfozslzbhzmaringasantamariacampinagrandegoianiasorocabafloripasaobernardocuritibaboavistarecifeaparecidasaogoncasalvadorcuiabamorenamacapalondrinacontagemsocialfortalmaceioleilaoosascoriobranconiteroi9guacutcheblogflogvlogwikitaxicoopmanauspalmascaxiasjoinvillebaruericampinassantoandreribeiraoriopretoweorgcomnetedugovv0windsurfshiptodaycloudsitecoaccoorgnetgovofmilcomgovmediatechzacoorgcomnetedugsjgovmydnspenfnlabnbmbgcbcqconcontnuyksknsmyspreadshopno-ipawdevboxbarsyonidatemfuinabusavinstanceseceuguukussryzespawncsxcloud-ipmyphotosfantasyleaguetwmailcleverappsscrappingccwucloudnsftpaccessgame-serverccgovobjectsrmalpgcust*svcalp1aeappenginermalpgmyspreadshop4lima2ixsquare7cloudscale123websitefirenet12hpflowgotdnslinkyard-cloudcloudnslima-citydnskingobjectstorageedaccogoorusorgcomnetinteduaéroportxn--aroport-byaassogouvcomilgobgovcloudnses-1eu-west-1us-east-1euvipit1eurarubait1s3lbwebsites3websiteru-spbru-mskelasticcsrunstnukukcaukusnl-ams-1fr-par-1fr-par-2functionsnodess3ddlwhmrdbfnck8sifrs3-websitecockpitscblmgdbdtwhkafkpubprivs3ddlwhmrdbk8sifrs3-websitecockpitscblmgdbdtwhkafks3ddlrdbk8sifrs3-websitecockpitscblmgdbdtwhkafkk8sscalebookpl-wawfr-parnl-amsbaremetalsmartlabelinginstancesdechk2kuleuvenlaravelvoorloperurownoxazapscwhstgrvaporobservablehqelementorantagonistreclaimjoteluluencowaydiademjelasticmatlabmagentositetrendhostingaxarnetperspectajenv-arubajelejoteravendbemergenttrafficplexconvexkeliwebserveboltbegetcdnstaticson-rancherprimetelonstackitunison-servicesdnshomelinkyardbarsyjelecloudnscocomnetgovmycn-northwest-1cn-north-1s3s3-accesspoints3-websites3s3-accesspointrdsdualstacks3-deprecatedemrappui-prods3-websiteemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apis3s3-accesspoints3s3-accesspointrdsdualstackemrappui-prods3-websiteemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicn-northwest-1cn-north-1cn-northwest-1ebcomputeelbcn-north-1airflowcn-northwest-1cn-north-1oncn-northwest-1cn-north-1amazonawssagemakeramazonwebservicesdirectasgdsdhehahljlnmhbacscahqhshhihnlnynsnmofjbjzjxjtjhkcqtwgsjssxnxjxgxxzgz網絡网络公司orgmilcomnetedugovxn--55qx5dcanva-appsxn--io0a7iquickconnectcanvasitekhsjxn--od0algmyqnapcloudsrvrlessclustersrealtimestorageleadpagescarrdcrdorgmilcomnomnetedugovhidnssupabaserdpareplmypiumsoxmitotaplpagesfirewalledreplitowodevwebview-assetsvfswebview-assetss3s3-accesspointdualstackemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9eu-west-3ap-south-2eu-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1ap-southeast-7us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2ap-southeast-5ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1s3s3-accesspointdualstackemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3s3-accesspointdualstackanalytics-gatewayemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3s3-accesspointdualstackemrappui-prods3-websiteemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apis3s3-accesspointdualstacks3-deprecateds3-websites3-object-lambdaexecute-apis3s3-accesspoints3-websites3-accesspoint-fipss3-fipss3s3-accesspointdualstackemrappui-prods3-websites3-accesspoint-fipsaws-cloud9s3-fipsemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3s3-accesspointdualstackemrappui-prods3-websites3-accesspoint-fipss3-fipsemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apis3s3-accesspointdualstacks3-deprecatedanalytics-gatewayemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9vfss3s3-accesspointdualstackemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9eu-west-3ap-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1mx-central-1me-central-1ca-central-1il-central-1ap-northeast-1us-northeast-1ap-southeast-1me-south-1af-south-1ap-south-1ap-southeast-7us-west-2eu-west-2ap-east-2us-east-2ap-southeast-2ap-northeast-2ap-southeast-5us-gov-west-1us-gov-east-1ap-southeast-6ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1mrapaccesspoints3s3-accesspointdualstacks3-deprecatedanalytics-gatewayemrappui-prods3-websites3-accesspoint-fipsaws-cloud9s3-fipsemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3s3-accesspointdualstacks3-deprecatedanalytics-gatewayemrappui-prods3-websites3-accesspoint-fipsaws-cloud9s3-fipsemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3eu-west-3ap-south-2eu-south-2computes3-ap-northeast-2elbrdss3-ap-east-1s3-sa-east-1s3-us-gov-west-1s3-eu-central-1s3-ca-central-1eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3s3-website-us-west-2s3-website-eu-west-1s3-external-1eu-central-1me-central-1ca-central-1il-central-1s3-us-west-1s3-eu-west-1s3-website-sa-east-1s3-website-ap-southeast-2ap-northeast-1ap-southeast-1s3-us-west-2s3-eu-west-2me-south-1af-south-1eu-south-1ap-south-1us-west-2eu-west-2us-east-2s3-website-ap-southeast-1s3-1s3-globals3-ap-northeast-3eu-north-1airflowap-southeast-2s3-us-gov-east-1s3-fips-us-gov-east-1s3-me-south-1s3-ap-south-1ap-northeast-2s3-website-us-west-1ap-southeast-5s3-eu-north-1s3-ap-southeast-1s3-website-us-gov-west-1compute-1s3-eu-west-3us-gov-west-1s3-website-ap-northeast-1us-gov-east-1s3-fips-us-gov-west-1s3-website-us-east-1s3-ap-southeast-2ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1s3-us-east-2s3-ap-northeast-1authauthauth-fipsauth-fipseu-west-3ap-south-2eu-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1mx-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1ap-southeast-7us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2ap-southeast-5us-gov-west-1us-gov-east-1ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1rservicesbuilderstg-builderdev-builder*ociocpocsdemoinstanceeu-west-3eu-south-2ap-southeast-3ap-northeast-3eu-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1ap-southeast-7us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2ap-southeast-5us-gov-west-1us-gov-east-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1previeweu-4us-4us-1eu-1us-2eu-2us-3eu-3appspaasrag-cloudrag-cloud-chjcloudjcloud-ver-jpcdemonodebalancermembersipeuxvsoncillaocelotonzayalilynxsphinxfentigercustomercaracalo365cloudstaticxendevapp001testcode-builder-stgplatformapimediasiteprojedrydpagesjsu2u2-localx0desazacncoitrueu4uhkukgrbrushatenadiarymyspreadshopfrom-flfrom-wvwebspace-hosttheworkpchatenablogservesarcasmapplinzisakuratanwixsiteappchizigiizeis-into-carsdnsiskinkyadobeaemcloudis-a-therapistpgfogmyvncdojinis-an-actress1kappfldrvkozowqa2jpnmexprgmrfirewall-gatewaydynnscafjsfbsbxooguyxnbayfrom-gawoltlab-demois-a-anarchistwiardwebteaches-yogadattowebtb-hostinglive-websiteservegamegotpantheonfrom-nhsubsc-payfrom-ohvipsinaappfrom-cadyndns-officehomelinuxfrom-mahercules-appservebbsstreakusercontentfrom-okfrom-wyfastly-terrariumis-a-llamaqualyhqportalserveexchangeon-vaporvivenushopciscofreakgrayjayleaguesmetaaiusercontentfrom-iais-a-libertariansaves-the-whalestaveusercontentyolasiteoperaunitepoint2thisis-a-catererlinodeusercontentfrom-vagithubusercontentsells-for-lesshosteurcanva-appsplaystation-cloudddnsfreefrom-pafrom-prfrom-waddnskingoutsystemscloudhotelwithflightmydattois-a-nascarfanmydbserverminiserverdamnserverservehumouris-a-playerfrom-nvfrom-nmemergentagentgentappsamplifyappfrom-kyis-an-accountantnfshostserveircfrom-akpythonanywherestackhero-networkpostman-echolikescandydyndns-mailobservableusercontentserveftpfreeboxosfrom-utcdn77-storageamazonawsneat-urldyndns-serverlinodeis-a-teacherfrom-vtgleezemythic-beastsus1-pleniteu1-plenitla1-plenitpaywhirlservecounterstrikejdevcloudhealth-carereformis-into-animegoogleapisis-a-painterafricaisa-hockeynutatmetais-an-actora2hostedis-a-democratdatadetectest-le-patrondigitaloceanspacesis-a-designeris-a-hunterlinodeobjectstemp-dnsissmarterthanyoufrom-arsimplesiteevennodetownnews-stagingis-a-liberalgooglecodejelasticservemp3stdlibqualyhqpartnerdyndns-free1cooldnsest-a-la-masiondrayddnsdynuddnsfrom-orfrom-miis-a-bloggerfrom-himydobisscanvacodeis-an-engineerest-a-la-maisonupsunappdevinappswafflecellmyasustorwpenginepoweredfrom-ctservep2psame-appmyshopblocksthingdustdatalikes-piediscordsezis-with-thebanddev-myqnapcloudlpusercontentis-leetshopitsite3utilitiesis-a-personaltrainersinaappladeskis-a-cheflogoipselfipbase44-sandboxnospamproxyalibabacloudcsmesswithdnsauthgearappsiamallamawithgooglelutrausercontentmochausercontentframercanvasmytabitdyndns-homew-credentialless-staticblitzcpserverdiscordsaysis-a-nurseappspotatlassian-isolated-3premotewdfrom-mtwixstudiocode0emm180rmyactivedirectoryawsappsmytuleapdnsabrpolyspaceqbuserrenderbuiltwithdarkboutirgotdnsabrdnsdopaascanva-hosted-embedawsglobalacceleratorhomesecuritypcmyiphostditchyouripclever-clouddyndns-ipon-aptibleis-a-musiciansecuritytacticsappspaceusercontenthomeunixstrapiappsame-previewcf-ipfsmycloudnaselasticbeanstalkis-certifieddontexistkasserverik-serverdrive-platformatlassian-3pfirebaseappherokuappawsapprunnerbarsycenteris-a-cubicle-slaveservehttpmyshopifyis-a-guruquicksytessiiitesorsitesmagicpatternsappis-a-cpameteorappfrom-wiis-a-rockstarbumbleshrimpdattolocalreadthedocs-hostedfrom-rifamilydsdyndns-picsplesknsbplaceddnsaliasdynaliasdyndns-remotedoomdnsip-ddnsblogdnsis-a-doctorroutingthecloudamazoncognitobarsyonlinedsmynasddnsgurucloudflare-ipfsdeus-canvasfrom-idsmushcdnpagespeedmobilizerdyndns-at-homeunusualpersonhosted-by-previderis-a-republicandyn-o-saurstreamlitappworkisboringonthewificprapidqualifioappis-uberleetis-slickgetmyipwpdevcloudtypeformdyndns-at-workgentlentapismynascloudw-corp-staticblitzfrom-ingeekgalaxyservebeerfrom-mdonrenderspace-to-rentaivencloudappspacehostedonfabricawafaicloudcodespotblogspotatlassian-3p-us-gov-modfrom-ndfrom-msis-a-techieis-a-studentcustomer-ociis-a-photographerdurumisfrom-ksmassivegriddyndns-wikiis-an-entertaineris-a-hard-workermysecuritycamerafrom-mnrackmazedyndns-blogis-a-bulls-fanwritesthisblogfreemyipsimple-urlfrom-sdreservdauthgear-stagingest-mon-blogueuris-into-gamesrice-labsxtooldevicesakurawebis-an-anarchistoraclecloudappsdyndns-worksells-for-urhcloudfrom-dcfastvps-serverwpmucdnis-a-geekscrysecfrom-txis-into-cartoonsmodelscapetrycloudflarelocaltonetstreak-linkbalena-devicesfrom-njforgeblocksfreebox-oswebadorsitefrom-ncdoesntexisthobby-sitestreaklinkshomesecuritymacownprovidertuleap-partnersdattorelaywphostedmailalpha-myqnapcloudservequakeis-a-socialistservehalflifepivohostingdynuhostingquipelementsw-staticblitzdyndns-webfrom-deproject-studyaliases121is-not-certifiedhercules-devis-a-financialadvisorservepicsis-a-greenloseyouripfrom-ilwithyoutubemwcloudnonprodwiredbladehostingdnsdojofrom-tnpixolinomyqnapcloudis-an-artisthostedpiis-a-landscaperauiusercontentoaiusercontenton-forgeis-a-conservativedreamhostersnet-freaksapps-1and1is-goneencoreapifastly-edgefrom-nesalesforcefrom-scdeployagentoraclegovcloudappsfrom-alis-a-lawyercechirevultrobjectsstufftoreadisa-geekddnsgeeklovableprojecttry-snowplowfrom-moblogsyteis-a-bookkeepernogmyforumravendbmyboxdeelementoredsaacficogoorinforgcomgobnatneteduidstoreorgcomnetintedudevnomepublorgcomneteduathgovtestscalculatorspaynowinfoquizzesresearchedcloudnsfunnelsassessmentsjscaleforcetmacltdorgmilcompronetgovbizpresseklogesrsccloudcustomfltusrcloude4corealmgovmunicontentproxy9metacentrumdyndyndyndnsdynpagespages-researchitionoccustomercomymyspreadshopipv64diskussionsbereich4limacomrub2ixfirewall-gatewayddnssspdnsbarsykeymachinesquare7myhome-serverspeedpartnercommunity-proschuldockxenonconnectgünstigliefernbwcloud-os-instancedyndnssecmy-routerxn--gnstigliefern-wobin-butterl-o-g-i-nisteingeekin-dslin-berlinin-brbfuettertdasnetzleitungsenin-vpnlcube-serverdyn-ip24logoipdyn-berlinruhr-uni-bochum12hpgoipsrvdnsfruskygit-repossvn-reposinternet-dnsgünstigbestellenhome-webserverxn--gnstigbestellen-zvbbplacedheimdnscosidnswebspaceconfiglima-citydyndns1istmeinvirtualuserschulplattformmy-gatewayddnsseclebtimnetztest-iservmein-iservvirtual-userhome64iservschuletaifun-dnstraeumtgeradeschulserverdynamisches-dns123webseitednshomehs-heilbronndnsupdaterbssgraphicdwadpdwdaepeweaawapaafpfwfabwbpbacwcpcciwebuserapiobjectsidsiskospockkimodorikerbonesteamsparisjanewaypicardglobaltarpitreedpikekiraworfsulukirkarchertuckerhackercanarywesleystagingprereleaset3r2lpbravepanelngrokiservstglclcrmerpflypagesbarsyvivenushoplocalcertlocalplayerbearbloggatewaydeno-stagingis-not-ais-a-goodbotdashvercelmocha-sandboxplatter-appreplitgithubpreviewworkersinbrowserevervaultdetais-ahrsndenoxmitmodxmyaddrstorageapipayloadgrebedocruncontainersstgstagelclstageloginlineis-a-fullstackleapcellngrok-freeis-coolstoragewebharemediatechlibp2pdiscourseimaginecomyspreadshopstoreregbiz123hjemmesidefirmcoorgcomnetedugovsldorgmilcomwebgobartnetedugovtmorgpolcomsocartnetedugovassoagrondiscoodontk12medcuegyecpaabgengorgmilgalsaltulcomadmesmgobpubdocmonfindgnriouioproartlatvetnetfotedulojgovntrturibrbarxxxofficialbasechefprofmktgpsictechinfoarqtcontdentrrpppsiqgit-pagesritmedfieorgcomlibprieduaipgovriikmeactvsportorgmilcomscieunnetedugovnameinfopintouchtawktotawkmyspreadshoporgcomnomgobedu123miwebcomputeorgcomnetedugovbiznameinfocognito-idpeusc-de-east-1onjelasticnxaspdnsbarsydirectwpdeuxfleurstransurldogadoprvwcloudnsamazonwebservicesdnshomeuserpartycokoobinmkmstorjfidemopaasdymyspreadshopalandkapsiikixn--hkkinen-5wacloudplatformdatacenterhäkkinen123kotisivuidacorgmilcompronetedugovbiznameinforadioorgcomneteduuserexperts-comptablestmmyspreadshopgretaprdcomnomynhccifbxoshuissier-justicenotairesaeroportfreeboxoson-webavocatassoportgouvkdnschirurgiens-dentistes-en-franceavouesfbx-os123sitewebveterinairechirurgiens-dentistespharmacienchambagrimedecinfreebox-osdediboxgoupilemszicpyicpvicppleysheezypagesedugovcnpyorgcomcybllcpvtnetedugovtnxonlineschooldaemond6atcopanelorgnetplybotdashstackitkaasorgmilcomnetedugovbizmodltdorgcomedugovcoorgcomneteduappwriteacorgcomnetedugovcloudtranslateusercontentorgcomnetedumobiassoorgcomnetedugovbarsysimplesitediscourseindorgmilcomgobneteduorgcomwebnetedugovguaminfonxhra教育敎育網絡网絡组織組織网络網络组织組织公司政府個人个人箇人ltdorgcomincneteduidvgovxn--uc0ay4axn--55qx5dxn--mk0axixn--io0a7ixn--uc0atvxn--zf0avxxn--lcvr32dxn--od0algxn--wcvs22dxn--gmqw5axn--od0aq3bxn--mxtq1mxn--ciqpnxn--tn0agxn--gmq050iorgmilcomgobneteduiservwp2tempurlmircloudfreesitewpmudevmyfastgadgetcloudaccessjelehalfboltfastvpsemergenteasypanelopencraftizcombrendlynamefromrtpersoadultmedorgpolrelcomproartnetedufirminfoassoshopcoopgouvtmcomediahotelforumvideosportorgsexagrargameslakaseroticaerotikatozsdereklamcasino2000filmsuliinfoboltshopprivnewsszexcityutazasjogaszkonyveloingatlaneacaicogoormyᬩᬮᬶmilwebschnetkopbizzonedesaponpesxn--9tfkymyspreadshopgovmytabittabitorderravpageaccok12idforgnetgovmuniltdplcaccotttvorgcomnetmeca6g5gpgamubacaicniocoukuptverdruscsdelhiindorgmilcomwebnicfingenpronetintedugovresbizbiharbarsyinternetbusinessschooltravelsupabasealumnigujaratfirminfoaeropostbankcoopindevscloudnsno-ipbarsybarrell-of-knowledgebarrel-of-knowledgensupdategroks-thisdnsupdatefor-ourknowsitalldvrcammittwalddynamic-dnsv-infowebhopselfipdyndnshere-for-moreilovecollegemayfirstforumzcloudnsmittwaldservertypo3servergroks-theeusekd1uk0cdndyndnsidrawsainaueuapjpusstagemocksysdevicesclientcustreservdcustdevdisrecprodtestingcobeebyteutwenteboxfusebravepstmndedynngrokorgmilcomnomhzcnetedugovqcxqzzbarsythingdustmo-siemensrb-hostingprotonetfh-muenstergitbookbluebitecloudbeesusercontentnodeartkiloappsforgerockdarklangresinstagingapigeebubbleb-datascryptedhypernodedappnodepantheonsitegitlabgithubkeeneticvirtualservercleverappshostyhostingon-rioedugitticketstelebiton-acornwixstudioon-k3sicp0icp12038jeleqotobigvlairbubbleappsmyaddrstolosmyrdbxwebflowdrive-platformbeagleboardhasura-applolipopdefinimavaporcloudmusicianwebflowtestazurecontainerresindevicereadthedocsloginlineeditorxmoonscalesandcatsbasicserverwebthingsbrowsersafetymarkbeebyteappbitbucketidaccovistablogorgschnetgovxn--mgba3a4f16axn--mgba3a4fraarvanedgeايرانایرانjclaspeziapdudcefegelemeperetevebacanatavaparasabgagfgogrgpgalclblimfmrmcbmbvbfclcmcvcrcpcchlimifibicivipirisimncnbnanenrnpntnnolomobocoaogorosopotoptvtatctbtmtltotpulunutpspapaqsvpvvvtvavvrtrsrprgrfrcrbrarorkrvstsssbscsmsispzczbzbozen-suedtirolmyspreadshopxn--bulsan-sdtirol-nsbxn--valledaoste-ebbtrentinoaltoadigetrentin-sued-tirolxn--forlcesena-c8axn--forl-cesena-fcbxn--bozen-sdtirol-2obtriestetrentinsuedtiroltrentino-s-tirollecceudineaostesienaparmaluccapaviagenoapaduaaostamonzaabruzzoternirietiturinmilanbozenlaziofermoleccocuneonuoropratola-speziavdataaligfvgpugmolcalcamlomumbsicpmnvenvaoedugovabrsarmaremrbastoslazibxosfirenzetrentinosüdtirolval-d-aostavalle-aostamessinacremonaravennatoscanatrentin-suedtirolbolognacalabriaurbinopesarofriuli-v-giuliaogliastraxn--valle-aoste-ebblaquilaandriatranibarlettasyncloudtrentinosudtirolxn--valle-d-aoste-ehbaostavalleyvalled-aostatrentino-alto-adigevallee-d-aostexn--balsan-sdtirol-nsbpistoiasicilialucaniacataniaiserniaperugiabresciaveneziagorizialiguriaimperiabulsan-suedtirolbalsan-suedtirolbarlettatraniandriaxn--trentino-sdtirol-szbforlì-cesenatuscanyvallée-d-aostemantovavallée-aostecasertapiemontevalleaostaval-daostafriulivgiuliatrevisoforli-cesenavalléedaosteferrarapescaravald-aostatrentino-altoadigefriuli-vegiuliavallee-aostecarboniaiglesiastarantomediocampidanovalleedaostetrentinosud-tirolcampobassotrentinsüd-tiroltrentinosüd-tirolmonzabrianzatrentino-südtirolxn--trentino-sd-tirol-c3bpotenzacosenzavicenzaemiliaromagnavenicefrosinonemarchepordenonetrentinosued-tirolvaresemolisevalléeaostefriuli-veneziagiuliabasilicatalatinaanconasavonaveronamodenaaquilabiellabolzano-altoadigepugliafoggiaumbriatrentino-stirolgenovapadovamateranovararagusapiacenzatrentinostirolvalleeaostetempio-olbiatrentinsudtirolmassa-carrarafriuliveneziagiuliatrentinosuedtirolandria-barletta-tranitrapanixn--cesenaforl-i8amaceratacaltanissettaascoli-picenobrindisicarraramassacagliaririmininapolivibo-valentiachietibulsan-sudtirolbalsan-sudtiroltrentino-a-adigebulsanbalsaniglesiascarboniamilanotorinoteramodell-ogliastraarezzotrentinoalto-adigerovigotrentovenetoiglesias-carboniatrentino-sud-tirolaltoadigereggio-emiliareggio-calabriasardegnatranibarlettaandriapiedmontxn--sdtirol-n2amedio-campidanotrentino-süd-tirolfriuli-vgiuliafriuli-ve-giuliaromeennaromapisa32-b16-b64-blodiastibarineencomonaplesforlicesenailiadboxosalessandriasicilytrani-barletta-andriaxn--trentin-sdtirol-7vbpesarourbinotrentinsued-tirolcesena-forliforlìcesenaemilia-romagnamonzaebrianzaxn--trentinsdtirol-nsbtrentinos-tiroltrentinsüdtirolvalledaostaolbia-tempiocampidanomediovibovalentiasassarivalle-daostalombardyfriulivegiuliareggioemiliamonzaedellabrianzaalto-adigevercellitrentin-sudtiroltraniandriabarlettatrentino-sudtirolascolipicenobozen-südtirolfriulive-giuliaflorencevaldaostaxn--cesena-forl-mcbcarbonia-iglesiasaosta-valleycarrara-massadellogliastratrentinoa-adigexn--valleaoste-e7apesaro-urbinoxn--trentinosdtirol-7vbxn--trentin-sd-tirol-rzbxn--trentinsd-tirol-6vbtrani-andria-barlettatrentin-süd-tirolxn--trentinosd-tirol-rzbgrossetomonza-e-della-brianzasüdtirolreggiocalabriatrentinoaadigetrentin-südtirolfriuliv-giuliaverbaniacampaniatrentino-aadigefriulivenezia-giuliasardiniaandriabarlettatranibarletta-trani-andriacatanzarooristanourbino-pesarocesena-forlìvalle-d-aostacampidano-medio123homepagesiracusatempioolbiasuedtirollombardiaavellinocesenaforlìtrentinofriuli-venezia-giuliabozen-sudtirolandria-trani-barlettabulsan-südtirolbalsan-südtirolmonza-brianzabolzanotrentino-sued-tirolbellunosalernolivornocrotonesondriodnshometrentinsud-tirolmassacarraratrentin-sud-tiroltrentino-suedtirolviterbobergamocesenaforliolbiatempiopalermobeneventoagrigentoofcoorgnetfmaitvphdengorgmilcomschnetedugovperagrikanieasukehandachitatokaiaisaikonanoharuamaobuhigashiuraowariasahiinuyamatobishimaiwakurashitarainazawatoyonegamagorimihamatoyotataharakariyayatomioguchikomakimiyoshinishiotokonamekiyosuchiryutoyohashiokazakiisshikikasugaikotakiratoeianjotogofusosetohazutsushimashinshirotakahamanisshinshikatsuhekinantoyokawaichinomiyatoyoakeodateogataakitaikawakyowahonjoogayurihonjonoshirokamiokakatagamimitanegojomeyokotekosakadaisenkazunonikahohonjyomoriyoshimisatohappoukamikoanihachirogatahigashinarusesembokufujisatokitaakitaitayanagiowanitakkomutsutsurutahirosakigonoheoirasetowadamisawanohejiaomorishingohiranairokunohehashikamitsugarushichinohehachinohenakadomarisannohekuroishisakaeisumiasahiotakiinzaiabikomatsudoyachiyomutsuzawakujukuriomigawakashiwatoganemihamanaritasakuranagaramobarahanamigawachoshishiroichoseikozakishisuikatorimidorichonankyonanfuttsuonjukufunabashinagareyamanodasosatakochuotohnoshourayasukimitsuyokaichibayotsukaidosodegauratateyamakamagayayokoshibahikariyachimatakatsuuratomisatokisarazukamogawaichikawanarashinoichinomiyashimofusaminamibososhirakoichiharaoamishirasatoikatahonaiainansaijoseiyoiyoozuuwajimaniihamanamikatamasakiuchikokihokutobetoonshikokuchuomatsuyamaimabarikamijimakumakogenyawatahamamatsunosabaeikedaobamasakaifukuiohionotsurugamihamawakasaminamiechizeneiheijikatsuyamatakahamaechizensoedaukihaomutaokawanishiogoribuzenonojosueumiokiotochikugosasagurisaigawamizumakishinyoshitomikurumekurateyamadakasuganakamamiyamanogatatakatahakataiizukakawaratagawakasuyaashiyainatsukimunakataminamitsuikishonaikurogifukuchikeisenhigashimiyakoshinguyukuhashiokagakiyamekogaongausuikahotohochuotoyotsumiyawakadazaifuhisayamatachiaraiyanagawanakagawahirokawachikujochikushinochikuhochikuzennamieotamaokumashowateneiiwakikoorinangoononishigoshimogoomotegomishimafukushimaasakawakagamiishishirakawaiitatefutabahiratayugawahanawakitakatakawamatakunimiyabukibandaihigashihironoyamatomiharuyamatsuriaizubangedatesomaaizuwakamatsuyanaizuaizumisatonishiaizuizumizakikitashiobarataishinkaneyamakoriyamainawashirotanagurafurudonosamegawasukagawaishikawatamakawaikedaogakitaruiginanenahashimahichisonakatsugawaibigawashirakawamizunamiminokamomitakekawauesekigaharatomikasakahogikitagatayamagatatajimianpachimotosuyaotsukakamigaharahidakanisekitokigujominogodoyorogifukasamatsutakayamawanouchihigashishirakawakasaharashimonitatsumagoichiyodakannakanrashowameiwakiryuotaoratomiokafujiokaitakuranaganoharahigashiagatsumatakasakishibukawaminakamikatashinatsukiyonokawabanumataannakaoizumimidorishintoisesakiuenoyoshiokakusatsutakayamanakanojonanmokutamamuratatebayashimaebashiotakekaitadaiwahongofuchukuietajimashobaramiharahatsukaichihigashihiroshimamiyoshikumanokurenakasakaseraseranishiasaminamifukuyamashinichionomichiosakikamijimajinsekikogentakeharaotobenanaeikedatohmaozoraobiraabirakyowaeniwataikibibaisharirebunerimohiroooketootarupippunishiokoppechitosefurubirahakodateshiranukakitahiroshimakushiroobihironanporoiwamizawaniikappukunneppufukushimanakasatsunaitoyourakuromatsunaiakabirakamisunagawashibechaurakawakamifuranonakatombetsuasahikawashimokawakayabeokoppebiratoriabashirisaromaatsumanumatahidakabifukamukawamikasahorokanaitoyotomisarufutsuhigashikawaishikarikitamiyoichiesashiiwanaitomariminamifuranoakkeshifuranotoyakoyakumootoineppushikaoishiraoinemuronayorohaboroashorobihororishirifujiutashinaihokutotakasuebetsuurausuassabukikonaishimamakinaiedatetoyabieinikiesanuryuoumuteshikagarikubetsuashibetsukimobetsuaibetsutobetsusobetsuembetsushimizuchippubetsurishirihokuryuhoronobeshintokutsubetsushibetsuhonbetsumombetsutsukigatakuriyamakoshimizushiriuchikutchanmurorannoboribetsukamishihorowassamushinshinotsukembuchiwakkanaikamoenaikiyosatotakinoueshikabesunagawafukagawanakagawatakikawakamikawahigashikagurahamatonbetsumatsumaemoseushirankoshishakotanimakanemashikeotofuketomakomaisandatambaitamiawajikasaiasagoshisoonoakoyashirotoyookaminamiawajiinagawafukusakitakasagokamigorikasugaharimayokawaashiyahimejiakashitaishiaogakisannantakinosumototakarazukanishinomiyashingugoshikinishiwakiyokatakaaioimikisayoyabukawanishiamagasakisasayamashinonsenkakogawaichikawakamikawatatsunotsukubaiwamaogawaasahisakaitokaioaraiitakobandodaigosuifuinaamikasumigaurakashimaomitamayachiyoshimodatetomobetoridehitachinakainashikisakuragawakasamayawaramoriyahitachiomiyanamegatayamagatahitachikamisuushikutakahagiibarakitonekoganakasowayukimihojosomitoryugasakishimotsumafujishirotsuchiurachikuseihitachiotashirosatotamatsukuriuchiharashikahakuinanaotsubatawajimakahokukawakitatsurugikaganominotosuzuuchinadakomatsuanamizunakanotohakusannonoichikanazawaiwateshiwafudaikawaimoriokaofunatohanamakikuzumakikitakamininohekunoheyamadayahabasumitaichinosekitanohatahiraizumirikuzentakatajobojiotsuchihironomiyakoiwaizumikarumaiichinohenodakujitonooshushizukuishifujisawamizusawakamaishikanegasakimannoutazukotohiraayagawazentsujihigashikagawauchinomikanonjisanukimarugamemitoyotakamatsutadotsunaoshimatonoshoakuneamamiizumihiokiyusuikinkoisasookouyamanakatanekagoshimakanoyaisenkawanabeminamitanemakurazakitarumizunishinoomotematsumotosatsumasendaioimatsudaayaseebinamiurazushinakaiodawaraiseharasagamiharahakoneaikawakaiseiatsugitsukuihadanoyamatoyamakitazamaoisochigasakininomiyayokosukakamakuraminamiashigarafujisawasamukawakiyokawahiratsukayugawaraokawaumajikochitsunootoyoakiinonishitosayasudahidakamiharasakawaniyodogawahigashitsunokagamigeiseisusakiotsukinaharisukumomurototosakamiochitoyotosashimizumotoyamanankokunakamurakitagawayusuharaogunichoyoukiasoutoozugyokutoamakusamifunetakamoriyamagaminamataminamiogunikikuchisumotoyamatonagasumashikiaraokumamotokamiamakusanishiharayatsushiroayabeseikasakyoideineujinakagyokameokakyotangokyotanabekyotambaminamiyamashiroyamashinatanabeyawatawazukaminaminantanmiyazuhigashiyamafukuchiyamakitamukokamojoyokizumaizuruujitawaraoyamazakinagaokakyokumiyamakawagoeinabeshimameiwaasahitaikiudonoisetsukisosakikuwanamihamamiyamasuzukatamakimisuginabarikumanokomonominamiisewataraitobakiwatakikihotadomatsusakayokkaichikameyamaureshinoishinomakishichikashukuohirataiwaosakizaohigashimatsushimashikamaiwanumashibataogawaraonagawakawasakiseminemarumoriminamisanrikukakudamuratawakuyatomiyanatoriwataritagajomisatotomekamirifushiroishimatsushimayamamotoshiogamafurukawahyugaebinotsunosaitoayakushimanobeokakitauramiyazakitakazakigokaseshiibamimatashintomikunitomikitakatakobayashikawaminamitakaharukijotakanabemiyakonojonishimeranichinankitagawakadogawamorotsukakisofukushimaminamimakisakaeobuseikedaogawamiasaokayaasahiotakiotarichinoinaomichikumakomaganechikuhokukaruizawayasuokaooshikaikusakaminamiaikitogakushimatsukawakawakamitateshinatakamorikitaaikishiojirimiyadahakubaiizunaiijimaiiyamamiyotasuzakayasakatoguraookuwanagawaminowahirayayamagataminamiminowafujimiomachisakakitakaginaganonakanosakuhokomoronagisoshinanomachiwadauedaiidaharasuwatomiachiaokianankisosakunozawaonsenagematsutakayamashimosuwamatsumotoyamanouchinakagawamochizukiazuminotatsunoobamaomuraseihiunzenosetofutsuikichijiwanagasakiisahayahasamisaikaikawatanasasebohiradokuchinotsugototogitsutsushimashimabarashinkamigotomatsuurayamazoekashibaikomakawaitenrioyodosangokoryoudaojiikarugayamatokoriyamatenkawakatsuragikurotakikawakamimiyakemitsuetakatorikamikitayamayamatotakadahegurishinjokanmakisakuraitawaramotogoseoudanarasoniandokawanishishimoichihigashiyoshinokashiharashimokitayamanosegawayoshinomintsivorytopazsakuragehirnsumomoaseinetopalmail-boxmokurenyoitamuikaojiyagosensanjoaganomyokoseiroagaomishibataniigatanagaokamurakamiuonumayuzawakariwatagamitainaitsunanminamiuonumatochioyahikojoetsuseiroukamosadoizumozakitokamachiitoigawasekikawakashiwazakitsubamemitsukekokonoesaikiusukibeppuusahimeshimakunisakihasamataketatsukumihitaoitahijikusuyufukujukamitsuebungoonobungotakadaibaraniimibizentsuyamaokayamakasaokahayashimayakagemaniwaakaiwamisakishinjotamanotakahashikibichuowakesojanagishookumenannishiawakurakurashikiasakuchisetouchikagaminosatoshotomigusukunakagusukuyaeseizenaurumaiheyaaguniogiminanjokinminamidaitokitanakagusukuyonaguniokinawaishigakikunigamiurasoekadenataramahiraraginozataketomishimojizamamitonakiitomanhigashimotobuyonabarugushikamionnanahanagohaebarukumejimakitadaitonakijinnishiharayomitanginowantokashikiishikawaikedasuitaminohizuminishisakaikananabenodaitoosakasayamayaokishiwadatadaokakaizukatondabayashichihayaakasakakumatorikadomasayamahigashiosakashijonawatehirakatataishimisakitajirihannansennankatanotoyonominatosettsuhigashiyodogawaibarakinosekitachuohigashisumiyoshifujiiderakashiwaraizumiotsutoyonakamatsubaramoriguchiizumisanoshimamototakatsukineyagawahabikinotakaishikawachinaganoyoshinogarikamiminearitaouchiimarihizenogikashimaariakekiyamafukudomikitagatakitahataomachigenkaikanzakinishiaritakyuragisagataratosutakushiroishikaratsuhamatamakouhokukawagoeyoshidasatteogoseirumaasakaurawaogawaniizaomiyayoriiotakishikihonjooganohannohanyuinasaitamaokegawaarakawayoshikawayokozehasudasayamahidakafukayachichibuiwatsukiryokamiyoshimikamiizumifujimiwarabiranzanmiyoshiminanoyashiosakadosugitomisatohigashichichibutodasokakukiyonokazoshiraokakasukabekounosukawajimatsurugashimamiyashirokitamotohatoyamamoroyamahatogayakumagayakawaguchinagatorokamisatomatsubushinamegawatokigawakamikawafujiminohigashimatsuyamakoshigayatokorozawas3isk01isk02ryuohkoseikonanaishorittotakashimamaibarahikonetorahimenishiazaikokagamokotoyasuotsukusatsunagahamamoriyamatoyosatotakatsukinotogawaomihachimanhigashiomiakagiunnanizumogotsuamayatsukakakinokimatsuehamadamasudahikawahikimiokuizumoyasugiyakumomisatotamayuohdahigashiizumookinoshimanishinoshimatsuwanoshimaneshimadafujiedayoshidashimodagotembaiwataatamikosaiyaizuitoizumishimahaibaramakinoharaomaezakikawanehonkannamisusonohigashiizufukuroinumazukawazufujiaraishizuokahamamatsushimizuizunokunimatsuzakimorimachiminamiizunishiizukikugawakakegawafujikawafujinomiyaujiietsugaoyamayaitaohiranikkoashikagakuroisokanumasakurashioyakarasuyamamotegiichikaikaminokawatochigihagamokanogisanobatonasumibunasushiobaranishikatautsunomiyaiwafunemashikoshimotsukeohtawaratakanezawaitanokomatsushimatokushimaichibaminamiaizumiwajikikainanmiyoshinarutomimamugiananmatsushigesanagochishishikuinakagawamachidachiyodakomaefussainagitaitochofufuchuomeotahigashiyamatotoshimaokutamaaogashimakodairaedogawaarakawahachiojishinagawatachikawashibuyasuginamihinodekiyosesumidaoshimanerimamitakahamuraadachinakanomizuhobunkyomegurominatokoganeihigashikurumekokubunjihigashimurayamamusashimurayamatamakitahinochuokotokatsushikakouzushimaogasawaraakishimakunitachishinjukusetagayamusashinohachijoitabashiakirunohinoharachizunanbukotouramisasawakasayonagokogehinoyazutottorinichinansakaiminatokawaharaoyabetairainamiasahinantoimizufuchutakaokakurobeyamadajohanatoyamatonaminyuzenfunahashinakaniikawanamerikawaunazukitogahimiuozufukumitsutateyamakamiichiiwadearidayuasainamitaijikatsuragiaridagawatanabemihamahidakakainankiminomisatoshingushirahamakamitondayurakozakoyagobokitayamawakayamakudoyamahashimotokushimotokozagawahirogawakinokawanachikatsuurarsuseroeoishidasagaeoguniasahinagaitendonanyoobanazawanishikawasakataohkuratozawamikawamamurogawayamagatafunagatatakahatashonaishinjokahokuiideyuzakawanishitsuruokakaminoyamayamanobeshiratakamurayamanakayamakaneyamahigashineyonezawasakegawamitouubeyuuabushimonosekitabuseoshimatoyotaiwakunihikarishunannagatohagihofukudamatsutokuyamashowadoshitsurunanbukoshukaiminami-alpsnirasakikosugeotsukioshinohokutominobuyamanashifuefukichuokofuichikawamisatoyamanakakonakamichitabayamanishikatsuranarusawafujikawahayakawafujiyoshidafujikawaguchikouenohara長野京都岐阜大阪三重群馬千葉滋賀佐賀奈良adednelgaccogogror秋田愛知高知埼玉沖縄栃木熊本岩手青森山梨新潟島根鳥取長崎香川宮城石川大分宮崎茨城山口兵庫山形徳島広島福島福岡岡山富山静岡愛媛福井東京xn--4it168dhatenadiaryxn--vgu402ckawaiishophatenablogcocottenamaste北海道penneehimeiwateversestabachibashigagonnagunmapermahaccaakitaosakauh-ohblushkochiaichifukuikuroncapooitigohyogotokyokyotopunyuthickcheap0t00g00j0mie2-ddaapyawjg0amfemsubxiiboomoobutchueekpgwrgrherskrboyrdyupperunderflierchipsmydnsheavyangryhippygirlyrulez神奈川鹿児島和歌山bambinaxn--nit225kokayamasaitamaxn--k7yn95exn--1lqs03nsapporoparasitelolipopmcxn--efvn9sniigatafukuokatokushimafukushimahiroshimakagoshimafakefurokinawaxn--8pvr4ucoolblogxn--0trq7p7nnkawasakinagasakimiyazakichilloutxn--8ltr62kxn--klty5xpeeweezombiecutegirlxn--rny31hxn--uuwu58axn--ntso0iqx3axn--djrs72d6uytoyamanikitanyantakagawamimozanagoyaboyfriendxn--2m4a15egreaterchowderegoismyamagatafashionstorexn--elqq16hxn--pssu33lsendaimiyagixn--rht27zpecoriaomorisaloonwatsonvivianxn--djty4knobushipigboatnaganopinokoxn--f6qx53asadistvelvetsecretxn--5js045dchicappayamanashiibarakidigickgirlfriendxn--1lqs71dmongolianxn--c3s14mxn--qqqt11mtochigixn--5rtq34kparallelo0o0mondkobesagabonadecaoitanarafoolkilldecimainhiholomosblokilociaoundopupugifutankcrapflopnooroopsmodsholyjeezstripperpepperbittershizuokaxn--rht3dkitakyushureadymadeicurusversusmatrixxn--rht61ehungryfloppygloomycrankyhandcraftedlittlestarxn--klt787dxn--kltx9awhitesnowsunnydaytottorilovepoptheshopbuyshopxn--5rtp49cxn--d5qv7z876cwebaccelxn--kbrq7oxn--4pvxsxn--1ctwolovesickkumamotocatfoodxn--tor131oyokohamawakayamatonkotsuxn--ehqz56nxn--uist22hxn--6btw5axn--kltp7dyamaguchifrenchkisspussycatxn--4it797kxn--uisz3gbabybluexn--zbx025dnetgamersxn--7t0a264ckanagawaxn--6orx2rishikawaxn--ntsq17ghalfmoonschoolbusjellybeanxn--mkru45iusercontentlolitapunkxn--32vp30hsakurastoragehokkaidoshimanecandypopbabymilksupersaleweblikeraindropbackdropwebsozaikikirarahateblodaynightmeneacsccogoormobiinfoaeusxxorgmilcomnetedugovorgcomnetedugovbizinfotmprdorgmilcomnomedugovassnotairespresseassocoopgouvveterinairemedecinpharmaciensorgnetedugovtraorgcomedurepgovmeneperekgacscaiiocogoitoresmshsseoulbusanulsandaeguc01milvkimmvchungnamjeonnamjeonbukeliv-dnsgyeonggijejueliv-cdnincheondaejeongangwongyeongbukgwangjuchungbukgyeongnameliv-apicoeduindorgcomembnetedugovorgmilcomnetedugovjcloudorgcomnetintedugovperbnrinfocooyorgcomnetedugovipfscanvamypepw3sstorachakeeneticjoinmcinbrowserdwebcyonnftstoragemyfritzaemewphlxachotelltdorgcomwebsocschngonetintedugrpgovassnomgacsccoorgnetedugovbizinfo123websiteidorgmilcomasnnetedugovconfidmedorgcomplcschnetedugovaccoorgnetgovpresstmassoirseproxaccosoundcasthoptocraftvp4c66orgnetedugovitsmcdirmyboxbarsyedgestacksynologylogintonohostwebhopdiskstationi234tcp4hoocgroknoipprivmydsddnsdnsforlohmustransipdscloudfilegear-sgbrasiliafilegearframerbarsybarsyonlinecoprdorgmilcomnomedugovinforgcomnetedugovnameacprorgcomartnetedugovpresseinfoassoinstgouvorgnycedugovbarsydscloudjuorgcomnetedugovminisiteaccoororgcomnetgovorgmilcompronetintedugovbizmuseumnameinfoaerocoopaccoorgcomnetintedugovbizcooporgcomgobneteduorgmilcomnetedugovbiznameaccoorgmilneteduadvgovcoorgcomnetaltgovforgotherhiskeeneticispmanagernomassoprod5476132eastasiacentraluswesteuropewestus2eastus2rucdnwest1-usfra1-desandboxjls-sto1jls-sto3jls-sto2aglobalabglobalsslmapprodfreetlsmaplon-1lon-2ny-1fr-1sg-1ny-2paassnwebpaashostingjelasticnordeste-idcsocuserpagescwebfileblobservicebuscoreatlricnjsjelasticwebsitestoragesezagbinruhuukjptsmyspreadshopmynetnameakamaiorigin-stagingfrom-coipv64dynv6cdn77serveblogadobeaemcloudhicamsprytdnsupno-ipownipde5ovhicpfirewall-gatewaysytesmypsxbarsyusgovcloudapimyamazemyradwebakamaihdsaveincloudfastlylbfrom-lasubsc-paysquare7in-the-bandblackbaudcdnhomelinuxoninfernoctfcloudservebbsdns-dynamiccloudfrontakamai-stagingipifonyham-radio-opsenseeringclickrisingcommunity-profrom-nylocalcertgrafana-devedgesuite-stagingcloudflareanycasteating-organicatlassian-devmydattofeste-iplocaltotorprojectknx-serveredgekeycloudflareglobalcloudyclustercasacamserveftpakamaized-stagingakamaiorigindns-cloudmyeffectboomlabotdashbuyshousestwmailhetemlazure-mobilein-dslthruhereredirectmedynuddnsbouncemesupabaseluyanicloudappakamaicloudfunctionsdebiannhlfanpgafanstatic-accessin-vpnmysynologymafeloappudohomeftptrafficmanagersiteleafseidatmemsetcloudflarecloudaccesskeyword-onazure-apiis-a-chefdoes-itgets-itwebhopselfiphomeipkicks-assedgesuitewindowsserver-ontunnelmolemydissentscrapper-sitecloudflarecnuni5srcfggffiobbzabcdenodynuopikddnsvpndnsakadnselastxkinghostvps-hostfastlyhomeunixazureedgeshopselectdontexistmyfritzcloudjiffyalwaysdatasells-itsquaresbroke-itazurefddattolocalat-band-campmeinforumfamilydsazurestaticappsdefinimabplaceddnsaliasdynaliasnow-dnsblogdnsroutingthecloudendofinternetdsmynasakamaiedgemymediapcadobeio-staticakamaiedge-stagingakamaihd-stagingddns-ipprivatizehealthinsurancelive-onkrellianschokokeksmassivegridmysecuritycamerarackmazeserveminecraftfrom-azis-a-geekakamaizedmoonscalecryptonomicoffice-on-theusgovtrafficmanageradobeioruntimeedgekey-stagingreserve-onlinechannelsdvrdnsdojousgovcloudappcdn77-sslapps-1and1podzoneazurewebsitesdynathomescaleforceyandexcloudvusercontentisa-geekcdn-edgescoaemalcesappwriteazimuthtlonarvonoticeablestorecomwebrecnetperotherfirminfoartslgdloncogoiltdorgmilcolcomplcschgenngonetedugovbiznamefirmmobiacincoorgmilcomnomwebgobnetintedubizinfocomyspreadshopdemongovtransurl123websitehosting-clusterkhplaycistrongsnesosvalervålerxn--vler-qoaossandeheroysandeherøybøboheroyherøyxn--hery-iraxn--b-5gavalerbøboxn--b-5gasandesandexn--hery-iraxn--vler-qoavålerhåreålaahavaofsfvfhlolnlalrlhmfmtmahcostntbuåstrmreigersundmyspreadshopgálsáeidsvolltingvollgildeskalflorøvadsøvardøvanylvenxn--bhccavuotna-k7astrandaxn--kvnangen-k0axn--sknland-fxaxn--mosjen-eyarakkestadhyllestadnannestadvevelstadvaapstenordre-landsondre-landsøndre-landtjieltexn--vrggt-xqadsør-aurdalsor-aurdalheradstordmoldefordeførdeseljefedjeryggehemnexn--krehamn-dxasognegranesøgnebrynetjomevallebykletokkegiskedovretjømehobølvoldasaudatolgasømnaviknadønnasomnadonnatranafrananesnaraumasmolatrænafrænalesjasmølaørstaorstahitrafloraaukraloppafrøyarissasnasahalsagalsaromsaraisaráisafroyasnåsagronghobolfjelltydalårdalardalaskimharamkraanghkekråanghkesorumbarumhurumbærumsørummodumsálátbálátfrognbjugnvåganvagangulenskienløtenlotenstrynvefsnxn--merker-kuaskaunsveiobømlobomloskjåkvardoflorovadsosalatbalatsálatklæbuklabuselbubarduulvikskjakklepprisørxn--nttery-byaeflåeidflahofmilgolholsellomskifetvikdepvgsfhsaskerrisorhamarasnesåsnesrørosrorosxn--slat-5namasoynaroyvaroyluroydyroyaskoyradoyandoyrodoymeloyradøyandøyrødøymeløyaskøylurøydyrøymåsøyværøynærøyhoylandethøylandetdivtasvuodnalørenskoglorenskognesoddtangenxn--tjme-hraxn--smla-hraxn--stjrdal-s1aunjargalillehammerunjárgaxn--hamary-fyadavvenjargaxn--bearalvhki-y4a123hjemmesidegjerdrumxn--brnnysund-m8acxn--tnsberg-q1axn--mlatvuopmi-s4axn--snsa-roaxn--skierv-utaxn--brum-voatysfjordkvafjordeidfjordkvæfjordsongdalenmjondalenmjøndalenxn--gls-elackragerogáŋgaviikagangaviikasørreisasorreisasør-varangersor-varangerxn--risr-iraskiervaxn--frna-woaxn--trna-woakvinesdalleksvikleirvikrøyrvikroyrviksvelvikvenneslaevje-og-hornnessandnessjøenmarnardalvindafjordsandefjordenebakksnillfjordullensvangxn--trany-yuabrønnøysundnamsskoganaustevollxn--stjrdalshalsen-sqbnord-aurdalnord-frontrøgstadtrogstadgrimstadflakstadgjerstadxn--sandy-yuaxn--leagaviika-52bnore-og-uvdalvegarsheixn--rlingen-mxaxn--ggaviika-8ya47hvegårsheikarlsoykvitsoymasfjordenhamaroyinderoyosteroydavvenjárgasauheradguovdageaidnuxn--vre-eiker-k8abronnoysiellakkrødsheradkrodsheradkvinnheradbrønnøyxn--mtta-vrjjat-k7afxn--lrenskog-54akvitsøyvárggátkarlsøyosterøyinderøyhamarøybronnoysundxn--aurskog-hland-jnbbahccavuotnabáhccavuotnagiehtavuoatnastor-elvdalmidtre-gauldalxn--gildeskl-g0akarasjokevenassixn--bievt-0qaxn--yer-znalebesbynessebyxn--hbmer-xqamalselvmålselvxn--unjrga-rtamøre-og-romsdalmore-og-romsdalhareidmelandørlandorlandstrandålgårdsolundalgardafjordåfjorddielddanuorrikautokeinoxn--stre-toten-zcbskodjeaejriestangeliernebamblestokkefauskesnåasesnaasekongsvingerlangevagberlevagxn--flor-jrahattfjelldalostre-totenøstre-totenvestfoldxn--mely-iraálaheadjualaheadjunordreisaxn--troms-zuaxn--lgrd-poacporsangerflatangerstavangerleikangerbremangersamnangergieldakarasjohkaxn--rdy-0nabfrostautsirasnoasatromsaxn--sr-aurdal-l8aflekkefjordjølsterjolsteraremarkhedmarknååmesjevuemienaamesjevuemiexn--vard-jrarollagmeråkermerakerorskogørskogxn--bdddj-mrabdákŋoluoktaxn--osyro-wuaaknoluoktatrysilskjervøymandaljondalbindalrindalmeldalsuldalorkdalsigdalalvdallærdalhurdalsirdalverdallerdallardaloppdalåseralaseralhadselkragerødivttasvuotnaoverhallasteinkjerxn--hnefoss-q1askedsmokorsettromsøxn--dyry-iravestre-totenmuseumxn--sandnessjen-ogbrahkkeravjufylkesbiblbájddarbajddarxn--laheadju-7yarennesøyxn--koluokta-7ya57hxn--hgebostad-g3aleirfjordstorfjordbalsfjordbåtsfjordbatsfjordmuosátbievátloabátkárášjohkanøtterøyxn--mjndalen-64anordkappláhppilahppialstahaugsiljanverranrøykenroykenhaldenlyngenbergenhortenhønefosshonefosstroandinbeiarnvarggatosoyroosøyrotromsoidrettmuosatbievatruovatloabatvoagattynsetnessetxn--indery-fyaskánitskanitraholtråholtxn--ystre-slidre-ujbandebusarpsborgbearduxn--karlsy-fyahordalandjorpelandjørpelanddeatnuringsakersør-odalsor-odalxn--slt-elabringerikeaudnedalnittedalnissedalhemsedalslattumsurnadalxn--blt-elabelverumstjørdalnaustdalhjartdalgjøvikfyresdalhasviknarviklarvikgjovikmalvikgamviklenvikporsgrunnstjordalengerdaldrobakdrøbakxn--msy-ula0hvestvagoyxn--vgan-qoaxn--ryken-vuaxn--lten-graxn--stfold-9xaxn--hpmir-xqaxn--lury-iramálatvuopmimalatvuopmitysværkirkenesbirkenesmoskenesbáidárxn--fjord-lraxn--rdal-poabahcavuotnabáhcavuotnaxn--frde-gralindåsbearalvahkixn--hobl-iraráhkkerávjuxn--loabt-0qavågåáltábodøsundlundraderådeetnetimeholeauregrueoddavagavegaranatanaarnasolasulaaltalekafusavangbergkvamåmliamlibokntinnroangranosenoslobodorøstroststatåmotamotivguprivøyeroyerliermossvossxn--nvuotna-hwalusterlunnermarkerhábmerhabmerhvalerfjalerxn--rholt-mratysvarbaidarfitjargaularhápmirhapmirmelhusfosnesøksnesoksnestysneshemnesevenesflesbergeidsbergtonsbergtønsberglindasxn--sndre-land-0cbnamsosxn--srum-graøystre-slidreoystre-slidrevestre-slidretrondheimbalestrandxn--langevg-jxaaustrheimxn--skjk-soavagsoyaveroysandoykarmoyfinnoytranoyvestbytranbysykkylvenxn--hyanger-q1aspjelkavikandasuoloxn--fl-ziaxn--drbak-wuastathellexn--sr-varanger-ggbtelemarkxn--bhcavuotna-s4axn--porsgu-sta26fčáhcesuolocahcesuoloakrehamnåkrehamnsandøykarmøyfinnøytranøyvågsøyaverøynamdalseidxn--lesund-huabadaddjaxn--vegrshei-c0axn--btsfjord-9zagildeskålporsanguxn--trgstad-r1anávuotnanavuotnahammerfestxn--sgne-graxn--brnny-wuacibestadharstadnarviikaevenáššivestnesgjemnessandnesagdenesrennesoyxn--avery-yuaxn--tysvr-vrabearalváhkikongsbergspydebergrandabergxn--andy-iradavvesiidaxn--krdsherad-m8aporsáŋgufredrikstadbjerkreimringeburennebuaurskog-holandnotteroyxn--vgsy-qoa0jxn--rmskog-byaskierváivelandbyglandfrolandaurlandforsandxn--bjddar-ptamidsundålesundalesundfetsundfarsundovre-eikerøvre-eikerakershusxn--moreke-juasørfoldøstfoldostfoldsorfoldhøyangerhoyangerlevangerorkangertanangerxn--vestvgy-ixa6olillesandulsteinxn--rennesy-v1agranvinskjervoyxn--klbu-woalavagisxn--h-2faxn--ryrvik-byakafjordkåfjordseljordfolkebiblxn--gjvik-wuajevnakerxn--kfjord-iuabudejjuxn--kranghke-b0axn--davvenjrga-y4axn--rland-uuaxn--ldingen-q1axn--mlselv-iuaxn--rady-iraxn--linds-prabrumunddalxn--ygarden-p1amo-i-ranaeidskogrømskogromskoghjelmelandxn--finny-yuaxn--sr-odal-q1axn--skjervy-v1aballangenkvanangenkvænangengratangenxn--hmmrfeasta-s4acvossevangensuohkanxn--rde-ulaxn--mli-tlaxn--ksnes-uuanordlandskanlandskånlandsortlandfuoiskuxn--rros-graxn--hcesuolo-7ya35bxn--eveni-0qa01gagaivuotnagáivuotnaxn--seral-lradrammenmodalenmosjoenjan-mayentorskensteigengloppenxn--snes-poamatta-varjjatxn--sr-fron-q1aomasvuotnajessheimbådåddjåxn--krager-gyaxn--kvfjord-nxaxn--asky-iraxn--snase-nraxn--bidr-5nacholtålenxn--vads-jraxn--jlster-byamosjøenxn--rst-0nastavernxn--ostery-fyaxn--oppegrd-ixaxn--sknit-yqaxn--risa-5naoppegårdskiptvetrendalenholtalenxn--mot-tlaxn--lhppi-xqaxn--holtlen-hxaxn--srreisa-q1akopervikxn--muost-0qaxn--bmlo-grahokksundkvalsundegersundxn--karmy-yuaullensakerxn--hylandet-54axn--kvitsy-fyaxn--bod-2nalangevågberlevågkristiansandxn--rsta-frahornindalstjørdalshalsenstjordalshalsensandnessjoenhámmárfeastaxn--lrdal-srasør-fronsor-fronnord-odalkristiansundmátta-várjjatvestvågøynesoddennotoddenbuskerudøygardenoygardensalangenlavangenralingenrælingenlodingenlødingenleaŋgaviikalaakesvuemieleangaviikauenorgexn--srfold-byaaskvollxn--rskog-uuaxn--nry-yla5gxn--vry-yla5ghammarfeastaxn--rhkkervju-01afxn--givuotna-8yakommunekrokstadelvanedre-eikerhagebostadhægebostadxn--berlevg-jxakviteseidxn--s-1faxn--l-1faxn--nmesjevuemie-tcbafuosskomoårekemoarekexn--lt-liacxn--jrpeland-54asvalbardoppegardholmestrandtvedestrandsogndalsokndalarendalsunndalfolldalxn--krjohka-hwab49jlyngdaletnedalnorddalsaltdalgausdalskedsmovaksdalgjesdalstordalxn--frya-hraaarbortedrangedalxn--smna-graaurskog-hølandxn--vg-yiabtjeldsundhaugesundlindesnesxn--mre-og-romsdal-qqbxn--dnna-gradynmerseineshacknetenterprisecloudmineaccomaorimāoriorgmilcriiwigennetschoolhealthkiwigovtgeekxn--mori-qsacloudnsparliamentcomedorgcompronetedugovmuseumwebsitekinservicebarsywebsitebuildereerobookheimdnsleapcelleero-stagetechcrscsslorigingohomecdbedeeeiemesecabgngilnlalplchfisiincnnoroptatitmtltruauhulumkdkukskjplvtrgrfrkrhrusesismycynzcznetinteduassoososcloudstgbetaaezaeuhkusjshatenadiarycdn77hoptozaptois-a-knightmyftpno-ipjpnddnssdpdnsspdnsbarsysweetpepperis-a-bruinsfanis-very-sweetservegameis-a-soxfanhomelinuxcdn77-secureservebbsmisconfusedwebredirectblogsitefreedesktopcouchpotatofriestoolforgeaccesscamis-lostreadmyblogsmall-webfedorapeopleserveftpis-a-celticsfanmywirepotagertwmailin-dslsellsyourhomeread-booksfreeddnscable-modemis-savednflfanufcfanmlbfanstuff-4-saleendoftheinternetin-vpnmy-firewallhomeftpis-localis-a-chefboldlygoingnowherewebhopselfipkicks-assroxatunkcamdvrfedoraprojectgotdnsdvrdnsdyndnspubtlspimientahomeunixdontexistfedorainfracloudwmflabsfspagesbmoattachmentsteckidsfamilydsdnsaliasdynaliasnow-dnscloudnsdoomdnsduckdnsblogdnshomednsroutingthecloudendofinternetdsmynasip-dynamicpoivronhttpbinmyfirewallis-very-evilmysecuritycamerais-a-linux-userwmcloudis-a-geektuxfamilyis-a-candidatedoesntexistis-very-badhobby-sitegame-hostaltervistais-foundis-a-patsfandnsdojohepforgepodzonedynservcollegefanis-very-goodfrom-meis-very-niceisa-geeknerdpolacmedsldingorgcomnomgobabonetedupleskaemhlxmyboxrockyprvcydeuxfleurspdnscodebergheyflowstatichostorgmilcomnomgobneteduorgcomeduiorgmilcomngonetedugovcloudns1337ngrokacorggogfamcomwebgobnetedugokgopgkpgovgosbizpasaugumicsopozpapuwmwsrprusiskwpspkppspkmpspokeoiawsawifoumsdnskokwpmuppuppsppiwwiwoowuzswkzoschrzpisdnwzmiuwwitdpssewsseumigugimoirmpinbwinbwiihupporzgwgriwupowwskrwioswuozstarostwokonsulattmpccopruszkowmyspreadshopostrodakartuzyopolegminamediaustkazgorajgoraolawailawalomzawloclradombytomjaworznotargilubinkoninzagantorunkutnokepnonakloczestsopotsanokturekplockslasksklepzarowlukowmedaidgdaorgmilrelcomnomatmgsmartneteduelkgovwawsossexbiztgorysejnytychypomorzeboleslawiechomesklepsdscloudunicloudzakopanelegnicarawa-mazbydgoszczswidnikkrasnikwloclawekbielawamragowograjeworealestatebeskidykaszubymalopolskaprzeworskswiebodzinlecznadfirmaszkolawarmiagdyniamiastakazimierz-dolnymalborkswidnicadlugolekaostrolekapodlasieelblagtravelsimplesitezachpomormielecszczecinnieruchomosciwalbrzychlezajsklublinbedzinpoznanwielunmielnooleckostarachowicedkontopowiatwroclawrybniksuwalkileborkslupskgdanskostrowwlkptarnobrzegtourismwegrowkrakowglogowyou2pilanysamailwrocinfoagroautobeepshopprivlapypiszlodzcfolksecommerce-shopmazurypulawyskoczowrzeszowpomorskiezgierzkaliszolkuszlowiczostrowiecsosnowiecmazowszewodzislawbialowiezazgorzeleckatowicepabianicejelenia-gorawolominkarpaczsieradznowarudaczeladzkonskowolaskierniewiceswinoujscieturystykabieszczadycieszynketrzynolsztynbialystokbabia-goraprochowicewarszawastalowa-wolapolkowicegorlicegliwiceponiatowalimanowalubartowaugustowkobierzyceopocznognieznoszczytnokolobrzegshoparenapodhalebielskoklodzkostargardatwithplayitownnamecoorgnetedugovacorgcomproestnetedugovbiznameislaprofinforechtngrokmedaaaacacpaenglawjurbarbarsykeeneticavocatacctcloudnsorgcomsecplonetedugov123paginaweborgcomnetintedugovnomepublidkinbarsygovx443cloudnsorgmilcomnetedugovcooporgmilcomschnetedugovnamecomcannetlibassoaemclantmcontstoreorgcomnomrecwwwbarsyfirminfoshopartsstackitmyddnswebspacelima-cityacincooxorgedugovbarsybrendlyhbvpsvpsspectrumlandinghostingacppmordoviamcprecbgorgmilcomspbnetintedumsknovgovbirrasmcdirmytismircloudvladimirnalchikadygeyamarinepyatigorskmyjinobashkiriaeurodirvladikavkazna4ugroznykustanaikalmykiacldmaildagestaniranbuildcanvaliaravalwixdevelopmentappwritemigrationneedleverceldatabasestackitcodereplravendbonporterlovableaccoorgmilnetgovcoopmedorgcompubschnetedugovservicemecomygovorggovtvmedorgcomnetedugovinfoedgfacbmlonihkutwpsryxzbdtmacfhppmyspreadshopbrandpartiorgcomfhvpress123minsidaitcouldbeworlanbibkommunalforbundfhskiopsyskomvuxkomforbnaturbruksgymnloginlineorgcomnetedugovenscaledeuusentbotdaorgmilcomnetgovnowteleporthashbangplatformlovablebarsyshopwarebasehoplixbarsyonlinemsf5gitappgitpagecofigma-govcaffeinefigmacanvasoltstputerbarsysupportchatgptsquareomniweopensocialcpanelnotionnovecorewpsquaredpreviewjelecyonbyensrhtfastvpspieboxconvexjouwwebheyflowplatformshloginlinemadethissourcecraftclouderaorgorgcomartedugouvunivmeorgcomnetedugovsurveysstatichfheiyuxs4allprojectmyfastubervibehostapp-ionosdeployagentmecoorgcomschnetedugovbizcncostoreorgmilcomneteduembaixadaconsuladokiraranohoprincipesaotomeheliohobarsystorebaseshopwaresellfyabkhaziavologdamordoviapenzalenugsochinavoiexnetspbmsknovnorth-kazakhstanashgabadkareliaarmeniageorgiavladimirnalchikivanovobukharaadygeyakhakassiakalugakrasnodarjambylaktyubinsktroitskbryanskobninskkurganazerbaijanpokrovskbashkiriatselinogradvladikavkazmurmansktulatuvamangyshlaktashkentchimkentgroznykaragandatermezarkhangelskkustanaikalmykiabalashoveast-kazakhstankaracoldagestantogliattibarsyredorgcomgobedumirenknightpointaccoorgjelasticdiscoursecleverappsschacmiincogoornetonlineshopcogoorgmilcomwebnicnetintedugovbiznametestcoorgmilcomnomnetedugovorangecloudpersoindorgcomfinnatnetgovensmincomtourismintlinfox0611oyaorgmilcomnetedugovquickconnectvpnplusnettprequalifymeaddrmyaddrntdllwadlnctvavdrk12orgmilpolbeltelcomwebgennetedutskkepgovbbsbiznameinfocoorgmilcompronetedugovbiznameinfobetter-thanworse-thansakurafromdyndnson-the-webmymailerorgmilurlcomneteduidvgovmydnsgameclubebizmeneacsccogotvorhotelmilmobiinfovodteiflgplkmsmsbcckhincndnvncoztltmkckppzpdprvcvkvlvcrkrkscxuzchernovtsyrivneyaltaodesavolynrovnolutskltdinforgcomnetedugovbizvinnicazhitomirternopilpoltavakropyvnytskyizaporizhzhiasevastopolsebastopoluzhgoroduzhhorodkharkovkharkivvinnytsiakhmelnytskyizaporizhzhecrimeaodessazhytomyrnikolaevcherkassydonetskluganskluhanskkirovogradivano-frankivskchernivtsikrymkievkyivlvivsumyzakarpattiamykolaivcherkasychernigovkhersonchernihivdnipropetrovskdnepropetrovskkhmelnitskiyneacsccogoorusorgmilcomedugovvmdhmyspreadshopadimono-ipbarsybytemarkbarsyonlinelayershiftnh-servretrosnubapicampaignservicelugaffinitylotteryweeklylotteryraffleentrygluglugsmeaccoindependent-inquestnimsitecopropymntltdorgplcschnetgovnhsbarsyindependent-commissionindependent-reviewpolicepublic-inquiryindependent-panelconnhospindependent-inquiryroyal-commissionoraclegovcloudappscck12libccphxcclibpvtparochchtrcck12libcceatonk12coglibtecgendstmusann-arborwashtenawcck12glghcck12sealibforksolympiabainbridge-islkeyporthoquiamyarrow-pointcentraliaport-townsendsequimport-ludlowrentonsilverdalebremertonredmondsheltonbellevueport-orchardport-angeleskingstonchehalisaberdeengig-harborseattlepoulsboidmdndsddemenegacalamaiavawapailalflnmdcncscohnhmihiviwiriinmntnmocoutvtctmtgunjokakwvnvprarorasmskstxwynykyazisadninsnngosrvis-bymircloudservernamepointtoenscaledland-4-salefreeddnsstuff-4-saleazure-apinoipcloudnsgolffanheliohostazurewebsitesgvorgmilcomgubneteducoorgcomnetd0egvorgmilcomnetedugovmydnsiacostoree12orgmilcomnomwebgobbibrectecnetintedugovraremprendefirminfoartseducok12orgcomnethidnsidacaiiosonlahanamhanoicamauhueorgcompronetintedugovbizbacninhtayninhhoabinhnamdinhtravinhhaiphongvinhlonghaiduongquangnamquangtrithuathienhuequangninhbacgianghaugiangquangbinhsoctrangbentrethanhphohochiminhdanangkontumhatinhkhanhhoathanhhoahealthgialailaocaiyenbaibackanngheanlonganphuyenphuthocanthodaklakdongnainameinfovinhphucdongthapkiengiangtiengiangquangngailaichaulangsonlamdongdaknonghagiangangiangcaobangbinhduongninhthuanbinhthuanbaclieuthaibinhninhbinhbinhdinhtuyenquanghungyenbaria-vungtauthainguyendienbienbinhphuocschbizputerimagine-proxyorgcomnetedugovcloud66advisormypetsdyndnsxn--8dbq2axn--4dbgdty6cxn--5dbhl8dxn--hebda8bxn--80auxn--d1atxn--c1avgxn--o1acxn--o1achxn--90azhxn--55qx5dxn--uc0atvxn--od0algxn--wcvs22dxn--gmqw5axn--mxtq1mxn--12c1fe0brxn--h3cuzk1dixn--12co0c3b4evaxn--12cfi8ixb8lxn--o3cyx2axn--m3ch0j3axn--j1adpxn--90amcxn--90a1afxn--h1ahnxn--j1ael8bxn--h1alizxn--c1avgxn--j1aefxn--80aaa0cvacxn--41acaffeineexeopentunnelbotdashtelebitorgtmaccoagricorgmilnomwebnicngonetaltedugovlawnisschoolgrondaraccoorgmilcomschnetedugovbizinfoprg1-zeropstritonstackitlimazeropsaccoorgmilgovяспборгкоммскбизмирсамаракрымсочиакодпроргобрупрצהלממשלישובאקדמיהองค์กรธุรกิจรัฐบาลศึกษาทหารเน็ต教育網絡組織公司政府個人닷넷한국澳门新闻澳門联通家電嘉里招聘通販닷컴삼성コムგეбгрфеюadcdbdgdidmdsdtdaebedeeegeiejekemenepereseveyegabacalamanauavapaqasazacfbfafgfnfpfwftfbgcgagggegkgngmgsgpgvgtgugilmlnlalclglplsltlhmimjmkmmmomambmcmdmfmgmzmpmsmtmgbbblbsbecccacnclcmcvctcscmhkhghchbhthphshlinikifigiaibicivisikninhnmncnbngnsnpnvntnjoionomobocoaofodorosotoptstttytatbtetgtithtmtltrusuvuaucueuguhulumunufjdjbjtjsjlkmkhkfkdkcktkukskpkgpmpnpkpjpgqaqmqiqsvtvcvbvmvlvrwpwtwzwbwcwawgwkwmwtrsrprgrfrercrbrarnrmrlrkrirhrwsusrssspsgsesbsaslsmsissxmxaxcxuypysylymykygybycyuztzsznzmzkzdzczbzazελευ世界台灣购物公益点看臺灣网络書籍在线网站手机机构大拿游戏信息台湾谷歌慈善商标香港中国餐厅网址中國商城食品微博政务移动集团公司八卦商店健康网店政府时尚佛山中信娱乐广东企业homedepotengineeringاماراتrepublicankuokgroupversicherungchannelcitadelxn--pgbs0dhxn--b4w605ferdstatebankwebsitexn--mgb9awbf亚马逊淡马锡alibabaxn--ngbc5azdxn--mgbbh1axn--45br5cyltoshibabuildworldcloudtradeguideplacespacedancemoviephoneprimesmilebiblestyleappleazurestoreskypegripexn--l1accdrivelottehorsehouseleasechasereisestadahondaomegaaetnaamicaninjanokiamediadeltavodkaedekaosakapizzaslingemailgmailtirolshelltmallfinallegaltotalhotelamfamforumrehabmusicciticricohcoachwatchboschearthfaithirishmiamiarchidubaiguccipraxiみんなストアセールcanonsalononionnikonepsonkoelngreensevencrownikanoradioaudioweiboglobopromogalloyahoociscorodeovideomangobingotokyovolvolottokyotophotosmartsportquesttrusthyattjetztadultcymrubaidutushuxn--kprw13dubankclickblackmerckgroupsharpcheapnowtvxn--h2brj9cקוםհայоргсрбмонкомбелмкдқазрусукрمصرقطرعربكومdadcfdmedwedredphdthdbidpidkrdmsdltdiceonewmeglemoerwecfageacbanbambaaaammakianraspacpaaxawtfbcgaegongingaigvigorgdogdhlmilrilonlaolloluoljllcalgalnflafltelsrlfrllplkimibmcamcombommomifmabbjcbscbcabnabtabmlbpubabcbbcnecincpncllcstcwtcpwcnyckfhbzhovhmoiskiobisbitcifyituipinvinwinxincbnbcnmanfangdnmenrenkpnmtnyunrunfununobiojioriohbogmofooboooooacoecoceongoproartistottnttbbtcateatlatvetpetbetnethktmitfitintjothotgotdotbotprueduicujnjyouinknhktdkappsapgapmapdnptopgopllpjmpzipvipripesqtrvdtvitvdevmovgovhivnrwlawsewnewbmwwownowhowdvrftrmtrsfrbarcartvscrseusawsupsubssbsadsddsldssasbmsmlsxxxboxfoxgmxtjxsextaxbuyflydiysoyjoyskypaydaygayxyzanzbizwebersenerpokerlameractortatarsolarລາວคอมไทยtourslocusnexuslexusgiftsbeatsboatspartspressglassswissकॉमनेटtiresgivescodeshomesgamestunesshoescardswalesloansvegastoolsdealsautosparisファッションworkssucksrocksxeroxforexfedexpartylillymoneystudyrugbytoraytoday中文网xn--unup4y天主教飞利浦新加坡enterprises我爱你嘉里大酒店christmasxn--fct429kholdingsxn--8y0a063axn--mgbx4cd0ablifestyleabogadoallstatenetbankكاثوليكxn--s9brj9cxn--gk3at1ebestbuycharityxn--55qx5dmicrosoftpropertybasketballhomegoodscorsicajewelrygallerygrocerysurgerycountrybrusselsverisignferreroxn--czr694bhdfcbankcommbanksoftbankپاكستانپاکستانnextdirectالسعوديهالعليانxn--h2brj9c8cxn--80adxhksshikshaxn--mgbai9azgqp6jcuisinellabarclayscatholicxn--kpry57dcompanyxn--xhq521bblackfridayxn--mgba3a3ejtsandvikxn--d1acj3bacademydownloadمليسياxn--j1amhxn--w4r85el8fhu5dnraipirangaathletaxn--fhbeixn--mgbqly7cvafrzuerichxn--c2br7gஇலங்கைcontractorsxn--io0a7igraphicsinsurancetemasekxn--xkc2al3hye2amotorcyclesphotographydirectoryplumbingxn--vhquvclothingtrainingcleaningwilliamhilllightingxn--mgba3a4f16ashoppingcateringeducationokinawapicturesventuresproductionsxn--9et52uwalmartഭാരതംsupportrealestatecapitalonexn--nqv7fs00emaauspostfloristdentistxn--qxamgodaddybradescobargainsmitsubishikerryhotelsxn--9dbq2axn--3pxu8kimmobilienxn--fjq720axn--mgbtx2bholidaymckinseymadridbusinessbuildershelsinkixn--4gbrimмоскваالسعودیةcoffeedegreelacaixapartnersalsaceofficeabbvievoyageorangegeorgeonlinechromemobilekindlegoogleoraclecircleschulesecureinsurexn--mgba7c0bbn0aestatexn--mgbc0a9azcgcruisehangoutxn--vuq861bxn--42c2d9arexrothfirestoneuniversityxn--nnx388alifeinsuranceextraspaceонлайнvermögensberatersoftwarexn--fiqs8sxn--mgbab2bdxn--w4rs40ltiendaभारतम्africatoyotaotsukasakuracameracreditcardnagoyaconsultingnetworkjunipertheatermonsterprogressivepioneerxn--55qw42gracingdatingvotingvikinglivinggivingxn--bck1b9a5dre4cbrotherweatherjoburgفلسطينlplfinancialxn--clchc0ea0b2g2a9gcdfutbolschoolsocialglobaldentalwoodsidechanelairtelmatteltravelrealtorwebcamstreamభారత్unicomalstomxn--nodexn--6frz82gmuseumfurniturexn--rvc1e0am3exn--mix891faccenturexn--11b4c3dismailineustardiscountquebeccomsecclinicservicesxn--y9a3aqxn--c1avgswatchchurchsearchالاردنmarketingcontacthealthmonashshoujisanofitaipeiamericanexpresssuzukiアマゾンクラウドポイントbhartiグーグルxn--mgberp4a5d4armemorialxn--1qqw23alondonmormoninstitutevisionbostonnortoncouponmaisonamazonvirginberlindesigndurbanolayannissananquanxihuanhitachikaufengardenreisenbayerntechnologydatsunxn--90a3aclatinocasinostudiophysioxn--ngbe9e0apharmacytattootaobaoaramcoexpertreportabbottdirectselectimamatfairwindspictettargetmarketintuittravelersinsurancecreditdupontryukyusuppliesxn--tckwebnpparibasschmidtmerckmsdyodobashirestaurantbridgestonecricketxn--fpcrj9c3dbostikbroadwayattorneylefrakemerckxn--fiq228c5hscareersfarmerswinnersflowersxn--wgbh1cguitarsxn--54b7fta0ccxn--p1acfmakeupgalluplandroverxn--kcrx77d1x4agoldpointbauhausxn--mgbayh7gpahiphopplaystationxn--mgba3a4fraxn--eckvdtc9dhyundaixn--gckr3f0fistanbulticketsmarketsflightschintaireviewsxn--3e0b707ewindowsxn--fiqz9sfinancialxn--fzys8d69uvgmابوظبيdiscoverreviewবাংলাxn--5su34j936bgsgmoscowobserverapartmentsдетиارامكوсайтeurovisionxn--i1b6b1a6a2exn--xkc2dl3a5ee0hتونسموقعبارتڀارتشبكةعمانبيتكعراقreadkredbondlandbandfundfoodprodgoldfordtubecafesafelifeggeeieeefreefagepagegugezonewinememenamegamesaleablebikenikelikecarecbreherefiresaveloveliveblueartedatesitevotecaseluxebofamodaltdaasdatiaayogasinavanashiaasiajavabbvatevavivadatazaraarpacasavisasncfprofmaifsurfgolfdvagsongbingpingwangkpmggoogblogpohlfailcooldellcalldeallidlsarlfilmteamroomfarmimdbarabclubhdfcicbchsbcgmbhrichtechfishdishcashminiernikddiaudiwikimobitaxicitikiwidesiqponskinloanakdnwienopenporncerntownimmolimoolloinfonicofidolegosaxozeroaerovivoautovotomotofastbestresthostpostnextlgbtchatseatgiftmeetdietreitmintrentgentspotscotguruitausohumenucyoubanklinkpinkdclktalksilkbookseekworkrsvpaarpjeepshopcoophelpcamppccwshowbeerstarruhrflirweirhaircarsparsjprshausplusnewstipstoysjobskidsfanspicsdocsxboxamexsexynavycitysonyarmyallybabyplaydeliverybuzzgbizlamborghiniphilipsලංකාಭಾರತfitnessexpresslanxesspfizercenterwalterlawyersoccercareerkosherbrokerlockerdealerdoctorauthorxn--mgbqly7c0a67fbcvermögensberatungjaguarxn--pssy2uxn--hxt814eflickrrepairrogersairbusxn--mgbai9a5eva00beventsyachtsxn--t60b56aভাৰতভারতभारतभारोतviajeshermeshughesxn--j1aefसंगठनvillasଭାରତclaimshotelsભારતzapposphotosjuegoscondostatamotorsgratistennisਭਾਰਤtkmaxxtjmaxxschaeffleryandexxn--80aswgrealtysafetybeautyluxuryxn--3ds443gsupplyfamilyxn--o3cw4hhockeysydneyxn--90aenissayalipayenergycomputeragencyxn--rovu88b電訊盈科xn--gecrj9cstatefarmaccountantaquarelleolayangroup香格里拉xn--p1ai组织机构xn--1ck2e1bxn--mgbt3dhdschwarzموريتانياabudhabinowruzkomatsufujitsuhospitalxn--80asehdbxn--mgbtf8flxn--j6w193gxn--yfro4i67oprudentialxn--flw351ecruisescoursesrecipesxn--e1a4cferrarixn--ses554gxn--wgbl6awatchesstaplessinglesxn--mgbcpq6gpa1axn--otu796dpropertiescreditunionxn--mgbah1a3hjkrdstockholmhisamitsuالسعوديةstcgroupdomainsoriginscouponsbloombergclubmedfroganslimitedxn--80aqecdr1aexposedinternationalequipmentbarclaycardxn--q7ce6axn--mgbi4ecexpprotectionassociatesconstructionxn--cck2b3bxn--45q11candroidfoundationישראלxn--mgbca7dzdocliniqueboutiqueengineerxn--qxa6asystemsfirmdalefashionauctionxn--nqv7finfinitirentalsreliancetradingweddingfishinghostinggentingbookingcookingxn--3hcrj9cgraingerxn--czrs0tdemocratsamsungyokohamaxn--h2breg3evexn--nyqy26alundbeckmelbournevacationssolutionsfrontierxn--vermgensberatung-pwbmanagementxn--cg4bkixn--mgb2ddeslincolnhamburgsandvikcoromantblockbusterairforcebarefootxn--4dbrk0ceinvestmentsfeedbackcommunityxn--ngbrxالبحرينdiamondsamsterdamhealthcareredumbrellaxn--mxtq1mxn--2scrj9cagakhanxn--mgbpl2fhкатоликcaravanசிங்கப்பூர்richardlimortgageamericanfamilyxn--fzc2c9e2cscholarshipssaarlandxn--imr513nvlaanderensamsclubgoodyearkitchenஇந்தியாweatherchannelallfinanzxn--kput3iالسعودیۃxn--90aisxn--efvy88hالجزائرxn--mgbaam7a8hexchangejpmorganxn--tiq49xqyjfidelitysecurityxn--mk1bu44cwanggouxn--fiq64bxn--6qq986b3xlxn--mgbbh1a71exn--80ao21amarshallsxn--5tzm5gtravelerspanasoniclatrobeyoutubeaccountantsxn--rhqv96gxn--cckwcxetdanalyticsxn--ygbi2ammxبازاربھارتسوريةorganicfreseniusسورياxn--9krt00axn--qcka1pmcxn--jlq480n2rgdeloittesciencefinancexn--jvr189mxn--30rr7yhomesensehotmailbaseballfootballleclercboehringerxn--q9jyb4cxn--mix082fاليمنهمراهpolitieسودانايرانایرانnetflixyamaxunxn--lgbbat1ad8jcollegestoragecapetowncolognekerrypropertiesxn--mgbgu82axn--ogbpf8flxn--czru2dwhoswhociprianilasallexn--g2xx48cforsalebanamexaudiblexn--vermgensberater-ctbxn--zfr164bericssonvanguardxn--45brj9cindustriestheatremarriottxn--3bst00mcomparexn--mgberp4a5d4a87gcapitaldigitalالمغربbarcelonashangrilaxn--d1alfcalvinkleinwwwcitysapporokawasakinagoyasendaikobekitakyushuyokohamackjp",zre=621,jre=625,zU=Ol.length,jU=G0.length,FU=new Uint32Array(jU),h0=new Uint32Array(jU),BE=new Int32Array(zU).fill(-1);for(let t=0,e=0;t<zU;t+=1)for(let n=V0[t];n<V0[t+1];n+=1){FU[n]=e;const r=e+G0[n];let a=5381;for(let s=r-1;s>=e;s-=1)a=a*33^FE.charCodeAt(s);h0[n]=a>>>0,G0[n]===1&&FE.charCodeAt(e)===42&&(BE[t]=n),e=r}let go=-1,$E=0,HE=0;function V6(t,e,n,r){if(G0[t]!==r)return!1;const a=FU[t];for(let s=0;s<r;s+=1)if(FE.charCodeAt(a+s)!==e.charCodeAt(n+s))return!1;return!0}function G6(t,e,n,r,a){let s=V0[t],i=V0[t+1];for(;s<i;){const u=s+i>>>1,c=h0[u];if(c<e)s=u+1;else if(c>e)i=u;else{for(let f=u;f>=s&&h0[f]===e;f-=1)if(V6(f,n,r,a))return f;for(let f=u+1;f<i&&h0[f]===e;f+=1)if(V6(f,n,r,a))return f;return-1}}return-1}function K6(t,e,n){let r=e,a=t.length,s=5381;go=-1;for(let u=t.length-1;u>=0;u-=1){const c=t.charCodeAt(u);if(c===46){const f=u+1;let h=G6(r,s>>>0,t,f,a-f);if(h===-1&&(h=BE[r]),h===-1)return go!==-1;r=W6[h],(Ol[r]&n)!==0&&(go=r,$E=f,HE=a),a=u,s=5381}else s=s*33^c}let i=G6(r,s>>>0,t,0,a);return i===-1&&(i=BE[r]),i!==-1&&(r=W6[i],(Ol[r]&n)!==0&&(go=r,$E=0,HE=a)),go!==-1}function xRe(t,e,n){if(Ure(t,e,n))return;const r=(e.allowPrivateDomains?2:0)|(e.allowIcannDomains?1:0);if(K6(t,jre,r)){n.isIcann=(Ol[go]&1)!==0,n.isPrivate=(Ol[go]&2)!==0,n.publicSuffix=t.slice(HE+1);return}if(K6(t,zre,r)){n.isIcann=(Ol[go]&1)!==0,n.isPrivate=(Ol[go]&2)!==0,n.publicSuffix=t.slice($E);return}n.isIcann=!1,n.isPrivate=!1;const a=t.lastIndexOf(".");n.publicSuffix=a===-1?t:t.slice(a+1)}const Fre=()=>C.jsxs("div",{className:"hidden h-full w-[17%] min-w-40 max-w-64 shrink-0 flex-col gap-1 border-r border-line p-3 md:flex",children:[C.jsx("div",{className:"mb-3 h-6 w-24 rounded bg-surface-sunken"}),Array.from({length:6}).map((t,e)=>C.jsxs("div",{className:"flex items-center gap-2 py-1.5",children:[C.jsx("div",{className:"size-5 shrink-0 rounded bg-surface-sunken"}),C.jsx("div",{className:"h-3.5 flex-1 rounded bg-surface-sunken"})]},e))]}),Bre=()=>C.jsx("div",{className:"min-w-0 flex-1",children:Array.from({length:8}).map((t,e)=>C.jsxs("div",{className:"flex items-start gap-3 border-b border-line py-2 pl-5 pr-4",children:[C.jsx("div",{className:"mt-0.5 size-7 shrink-0 rounded-full bg-surface-sunken"}),C.jsxs("div",{className:"flex-1 space-y-1.5",children:[C.jsxs("div",{className:"flex justify-between gap-2",children:[C.jsx("div",{className:"h-3.5 w-28 rounded bg-surface-sunken"}),C.jsx("div",{className:"h-3 w-12 rounded bg-surface-sunken"})]}),C.jsx("div",{className:"h-3.5 w-48 rounded bg-surface-sunken"}),C.jsx("div",{className:"h-3 w-full rounded bg-surface-sunken"})]})]},e))}),ak=()=>C.jsxs("div",{className:"flex h-dvh animate-pulse bg-canvas","aria-hidden":"true",children:[C.jsx(Fre,{}),C.jsx(Bre,{})]}),sk="ba94ba3440b348d1aef437f4f3116099aeb3a7ca",$re="2026-08-05T21:54:11.726Z",Hre=sk.slice(0,7),qre=/^[0-9a-f]{40}$/.test(sk),Wre=qre?`https://github.com/remit-mail/reader/commit/${sk}`:void 0,Vre="https://github.com/remit-mail/reader/issues/new";class qE extends Error{constructor(e,n,r){super(e),this.status=n,this.body=r,this.name="ApiError"}status;body}const fu=t=>{if(t instanceof qE)return t.status;if(t&&typeof t=="object"){const e=t;if(typeof e.status=="number")return e.status;if(typeof e.statusCode=="number")return e.statusCode}},BU=t=>fu(t)!==void 0,uv=t=>{const e=fu(t);return e!==void 0&&e>=500&&e<=599},cv=t=>!!(typeof DOMException<"u"&&t instanceof DOMException&&t.name==="AbortError"||t&&typeof t=="object"&&"name"in t&&t.name==="AbortError"),Gre=()=>typeof navigator<"u"&&navigator.onLine===!1,$U=t=>cv(t)||BU(t)?!1:t instanceof q_?!0:Gre(),Kre=t=>!BU(t)&&!cv(t)&&!$U(t),HU=t=>uv(t)||Kre(t),Yre=t=>t?.softError===!0,qU=(t,e)=>uv(t)?!0:cv(t)||$U(t)?!1:HU(t)?!0:!Yre(e),Zre=t=>uv(t),WE=new Set;let WU=null,VU=null;const Xre=t=>{VU=t},Qre=t=>t instanceof Error?t:new Error(GU(t)),GU=t=>t instanceof Error?t.message||t.name:typeof t=="string"?t:t&&typeof t=="object"&&"message"in t&&typeof t.message=="string"?t.message:"An unexpected server error occurred.",Jre=()=>typeof globalThis.crypto<"u"&&typeof globalThis.crypto.randomUUID=="function"?globalThis.crypto.randomUUID():`fatal-${Date.now()}-${Math.random().toString(36).slice(2,10)}`,Yl=(t,e)=>{const n={error:t,message:GU(t),correlationId:Jre(),at:Date.now(),recoverable:e?.recoverable??Zre(t),stack:t instanceof Error?t.stack:void 0,componentStack:e?.componentStack};WU=n,sae(`Fatal: ${n.message} [${n.correlationId}]`),VU?.recordError(Qre(t),{fatal:"true",correlationId:n.correlationId});for(const r of WE)r(n);return n},eae=t=>(WE.add(t),()=>{WE.delete(t)}),tae=()=>WU,nae=20,p0=[],rae=new Set(["ResizeObserver loop limit exceeded","ResizeObserver loop completed with undelivered notifications"]);function aae(t){return typeof t!="string"?!1:rae.has(t.replace(/\.\s*$/,""))}function m0(t){p0.push(t),p0.length>nae&&p0.shift()}function sae(t){m0(t)}function oae(t){return t.map(e=>{if(typeof e=="string")return e;if(e instanceof Error)return`${e.name}: ${e.message}`;try{return JSON.stringify(e)}catch{return String(e)}}).join(" ")}function iae(){const t=console.error.bind(console);console.error=(...e)=>{m0(oae(e)),t(...e)},window.addEventListener("error",e=>{aae(e.message)||(m0(`Uncaught ${e.error instanceof Error?`${e.error.name}: ${e.error.message}`:String(e.message)} (${e.filename}:${e.lineno})`),Yl(e.error??e.message))}),window.addEventListener("unhandledrejection",e=>{const n=e.reason,r=n instanceof Error?`${n.name}: ${n.message}`:String(n);m0(`Unhandled rejection: ${r}`),Yl(n)})}function lae(){return p0.slice()}const uae=8,Cc=[];function cae(t){const e=t.split(/[?#]/)[0],n=Cc[Cc.length-1];n&&n.path===e||(Cc.push({path:e,timestamp:new Date().toISOString()}),Cc.length>uae&&Cc.shift())}function dae(){return Cc.slice()}const HS=7500,Y6=`
148
+ }`;OU(Kne);var pRe=function(t){var e=t.isPullable,n=e===void 0?!0:e,r=t.canFetchMore,a=r===void 0?!1:r,s=t.onRefresh,i=t.onFetchMore,u=t.refreshingContent,c=u===void 0?F.createElement(Vne,null):u,f=t.pullingContent,h=f===void 0?F.createElement(Gne,null):f,m=t.children,g=t.pullDownThreshold,y=g===void 0?67:g,S=t.fetchMoreThreshold,w=S===void 0?100:S,x=t.maxPullDownDistance,E=x===void 0?95:x,k=t.resistance,A=k===void 0?1:k,R=t.backgroundColor,N=t.className,O=N===void 0?"":N,I=_.useRef(null),P=_.useRef(null),U=_.useRef(null),q=_.useRef(null),z=!1,j=!1,H=!1,W=0,se=0;_.useEffect(function(){if(!(!n||!P||!P.current)){var Z=P.current;return Z.addEventListener("touchstart",re,{passive:!0}),Z.addEventListener("mousedown",re),Z.addEventListener("touchmove",he,{passive:!1}),Z.addEventListener("mousemove",he),window.addEventListener("scroll",xe),Z.addEventListener("touchend",D),Z.addEventListener("mouseup",D),document.body.addEventListener("mouseleave",D),function(){Z.removeEventListener("touchstart",re),Z.removeEventListener("mousedown",re),Z.removeEventListener("touchmove",he),Z.removeEventListener("mousemove",he),window.removeEventListener("scroll",xe),Z.removeEventListener("touchend",D),Z.removeEventListener("mouseup",D),document.body.removeEventListener("mouseleave",D)}}},[m,n,s,y,E,a,w]),_.useEffect(function(){var Z;if(!((Z=I)===null||Z===void 0)&&Z.current){var K=I.current.classList.contains("ptr--fetch-more-treshold-breached");K||a&&$()<w&&i&&(I.current.classList.add("ptr--fetch-more-treshold-breached"),j=!0,i().then(Q).catch(Q))}},[a,m]);var $=function(){if(!P||!P.current)return-1;var Z=window.scrollY,K=P.current.scrollHeight;return K-Z-window.innerHeight},Q=function(){requestAnimationFrame(function(){P.current&&(P.current.style.overflowX="hidden",P.current.style.overflowY="auto",P.current.style.transform="unset"),U.current&&(U.current.style.opacity="0"),I.current&&(I.current.classList.remove("ptr--pull-down-treshold-breached"),I.current.classList.remove("ptr--dragging"),I.current.classList.remove("ptr--fetch-more-treshold-breached")),z&&(z=!1),j&&(j=!1)})},re=function(Z){H=!1,Z instanceof MouseEvent&&(W=Z.pageY),window.TouchEvent&&Z instanceof TouchEvent&&(W=Z.touches[0].pageY),se=W,!(Z.type==="touchstart"&&IU(Z.target,Uh.UP))&&(P.current.getBoundingClientRect().top<0||(H=!0))},he=function(Z){if(H){if(window.TouchEvent&&Z instanceof TouchEvent?se=Z.touches[0].pageY:se=Z.pageY,I.current.classList.add("ptr--dragging"),se<W){H=!1;return}Z.cancelable&&Z.preventDefault();var K=Math.min((se-W)/A,E);K>=y&&(H=!0,z=!0,I.current.classList.remove("ptr--dragging"),I.current.classList.add("ptr--pull-down-treshold-breached")),!(K>=E)&&(U.current.style.opacity=(K/65).toString(),P.current.style.overflow="visible",P.current.style.transform="translate(0px, "+K+"px)",U.current.style.visibility="visible")}},xe=function(Z){j||a&&$()<w&&i&&(j=!0,I.current.classList.add("ptr--fetch-more-treshold-breached"),i().then(Q).catch(Q))},D=function(){if(H=!1,W=0,se=0,!z){U.current&&(U.current.style.visibility="hidden"),Q();return}P.current&&(P.current.style.overflow="visible",P.current.style.transform="translate(0px, "+y+"px)"),s().then(Q).catch(Q)};return F.createElement("div",{className:"ptr "+O,style:{backgroundColor:R},ref:I},F.createElement("div",{className:"ptr__pull-down",ref:U},F.createElement("div",{className:"ptr__loader ptr__pull-down--loading"},c),F.createElement("div",{className:"ptr__pull-down--pull-more"},h)),F.createElement("div",{className:"ptr__children",ref:P},m,F.createElement("div",{className:"ptr__fetch-more",ref:q},F.createElement("div",{className:"ptr__loader ptr__fetch-more--loading"},c))))};function Yne(t){return t.scopedOutFolder!==void 0||(t.droppedFacets?.length??0)>0||t.droppedSemantic===!0}function Zne(t){return`Your search was limited to ${t}. This filter matches these messages in any folder — it can't be pinned to one.`}const Xne=t=>t.length===1?t[0]:t.length===2?`${t[0]} and ${t[1]}`:`${t.slice(0,-1).join(", ")} and ${t[t.length-1]}`;function Qne(t){const e=t.length===1?"a filter condition":"filter conditions",n=t.length===1?"isn't":"aren't";return`${Xne(t)} ${n} ${e}, so ${t.length===1?"it was":"they were"} left out — the filter still matches everything else you searched for.`}const Jne="The filter matches these words literally. Your search also found similar mail by meaning — a filter can't carry that, so it won't catch mail that means the same thing without these words.";function BS({icon:t,children:e}){return C.jsxs("li",{className:"flex items-start gap-2",children:[C.jsx("span",{className:"mt-0.5 shrink-0 text-fg-subtle","aria-hidden":"true",children:t}),C.jsx("span",{children:e})]})}function ere({notice:t}){return Yne(t)?C.jsxs("div",{className:"rounded-md border border-line bg-surface-sunken px-3 py-2.5",children:[C.jsx("p",{className:"text-2xs font-semibold uppercase tracking-wider text-fg-subtle",children:"From your search"}),C.jsxs("ul",{className:"mt-1.5 space-y-1.5 text-xs text-fg-muted",children:[t.scopedOutFolder!==void 0&&C.jsx(BS,{icon:C.jsx(RJ,{className:"size-3.5"}),children:Zne(t.scopedOutFolder)}),t.droppedFacets&&t.droppedFacets.length>0&&C.jsx(BS,{icon:C.jsx(IL,{className:"size-3.5"}),children:Qne(t.droppedFacets)}),t.droppedSemantic&&C.jsx(BS,{icon:C.jsx(AE,{className:"size-3.5"}),children:Jne})]})]}):null}const tre={delete:{label:"Delete",present:"Deleting",past:"Deleted",destructive:!0},move:{label:"Move",present:"Moving",past:"Moved",destructive:!1},junk:{label:"Junk",present:"Marking as junk",past:"Marked as junk",destructive:!0},markRead:{label:"Mark read",present:"Marking read",past:"Marked read",destructive:!1},organize:{label:"Organize",present:"Organizing",past:"Organized",destructive:!1}},ek=t=>tre[t],nre={match:"Apply to",properties:"Properties",folder:"Folder",rule:"Rule",name:"Name",review:"Review",run:"Run"},NU=t=>nre[t],mRe=({verb:t,mode:e,scope:n,fromSearch:r})=>{const a=r?["properties"]:e==="properties"?["match","properties"]:["match"];return t==="move"?[...a,"folder","review","run"]:t==="organize"?n==="standing"||n==="until"?[...a,"folder","rule","name","review","run"]:[...a,"folder","rule","review","run"]:[...a,"review","run"]},vp=(t,e)=>Math.max(0,t.indexOf(e)),rre=(t,e)=>vp(t,e)===0||e==="run",are=(t,e)=>({clauses:[...t.clauses],matchOperator:t.matchOperator,widen:t.widen,moveMailboxId:t.moveMailboxId,scope:e,until:t.until,name:t.name}),MU=t=>vU(are(t,t.scope??"once")),gRe="A rule only works within one account — clear the selection, or pick messages from a single account.",vRe="A destination only works within one account — clear the selection, or pick messages from a single account.",sre="This matches no messages, so there is nothing to do. Go back and change what it applies to.",ore="Fill in every property, or take the empty one off.",ire="Pick a destination first.",lre="Choose one of the three first.",yRe=(t,e,n)=>{if(t==="properties")return e.clauses.length===0?Aa.noMatch:e.clauses.some(r=>r.value.trim()==="")?ore:void 0;if(t==="folder")return e.moveMailboxId?void 0:ire;if(t==="rule")return e.scope?e.scope==="once"&&MU(e).length>0?Aa.bodyTextOnce:e.scope==="until"&&!e.until?.trim()?Aa.noUntilDate:void 0:lre;if(t==="name"&&!e.name?.trim())return Aa.unnamed;if(t==="review")return n.status==="uncounted"?void 0:n.status==="ready"&&n.count===0&&!n.stale?sre:SU(n)},ure={noMatch:"Nothing matches this yet. Widen a property, or match on a different one.",notIndexed:"This mail isn't indexed yet, so nothing can be counted. The rule still matches once indexing catches up."},cre=t=>ure[t],tk=({state:t,verb:e,scope:n,matched:r,applied:a,failed:s})=>{const{label:i,present:u,past:c}=ek(e),f=c.toLowerCase(),h=n==="standing"||n==="until",g={screenTitle:t==="saving"||t==="backApplyRunning"||t==="statusUnknown"||t==="commitFailed"?i:"Done",showProgress:t==="backApplyRunning"||t==="backApplyComplete"||t==="backApplyFailed"||t==="backApplyRestartFailed"||t==="statusUnknown"||t==="runStopped",failureListLabel:`Not ${f}`};return t==="saving"?{...g,title:h?"Saving rule…":"Applying…",detail:"Nothing has been changed yet.",tone:"progress",dismissLabel:"Close"}:t==="backApplyRunning"?{...g,title:h?"Rule saved. Moving the mail already in your mailbox…":`${u} ${r} messages…`,detail:"This keeps running if you close the wizard.",tone:"progress",dismissLabel:"Close",cancelLabel:"Stop the run"}:t==="statusUnknown"?{...g,title:h?"Rule saved. Its progress over your existing mail is unknown":`${u} — progress unknown`,detail:h?"The connection dropped, so the bar shows the last that was read. The pass runs on the mail server, and the rule keeps working on new mail either way. This keeps checking.":"The connection dropped, so the bar shows the last that was read. The run is on the mail server and carries on either way. This keeps checking.",tone:"warning",dismissLabel:"Close",retryLabel:"Check again"}:t==="backApplyComplete"?{...g,title:h?"Rule saved and applied":`${c} ${a}`,detail:h?`${a} of ${r} already in your mailbox ${f}. New mail follows the rule as it arrives.`:`Every message the match reached was ${f}. Your mail server is still catching up, so the list can lag behind.`,tone:"success",dismissLabel:"Done"}:t==="backApplyFailed"?{...g,title:h?"Rule saved — some mail stayed put":`Not everything was ${f}`,detail:`${a} of ${r} ${f} · the mail server rejected ${s}.${h?" The rule itself is saved and keeps working on new mail.":""}`,tone:"warning",dismissLabel:"Close",retryLabel:`Retry ${s}`}:t==="runStopped"?{...g,title:`Stopped after ${a}`,detail:`${a} of ${r} ${f}. The run stopped before it reached the rest, so nothing was sent for them and nothing has happened to them.`,tone:"warning",dismissLabel:"Close",retryLabel:`Retry ${s}`}:t==="backApplyRestartFailed"?{...g,title:h?"Rule saved — the retry didn't start":"The retry didn't start",detail:`${a} of ${r} ${f} · the mail server rejected ${s}, which are still where they were.${h?" The rule itself is saved and keeps working on new mail.":""} Check your connection and try again.`,tone:"warning",dismissLabel:"Close",retryLabel:`Retry ${s}`}:t==="backApplyStartFailed"?{...g,title:"Rule saved",detail:"New mail follows it automatically. The pass over the mail already in your mailbox never started.",tone:"warning",dismissLabel:"Not now",retryLabel:"Run it over existing mail"}:t==="filterSaved"?{...g,title:"Filter saved",detail:"There is no mail in your mailbox to apply it to yet. New mail follows it as it arrives. You can see it, and when it expires, under Settings › Filters.",tone:"success",dismissLabel:"Done"}:{...g,title:h?"Couldn't save the rule":`Couldn't start ${i.toLowerCase()}`,detail:"Nothing has changed.",tone:"danger",dismissLabel:"Not now",retryLabel:"Try again"}},dre=t=>`${$c(t.field)} "${t.value}"`,PU=(t,e)=>t.map(dre).join(` ${J_(e)} `),f0=(t,e)=>t==="selected"?`These ${e} messages`:t==="similar"?$0({anchorCount:e}):DE("properties"),$S=t=>t==="selected"?"Only the messages ticked in the list.":gU(t),DU=t=>`Every message ${t}`,nk="the list is showing",fre="This reaches every match on the mail server, including the ones the list has not loaded. The search is already the match, so there is nothing to widen.",hre="This covers messages not shown in the list, and anything else matching by the time it runs.",pre=({mode:t,selectedCount:e,clauses:n,matchOperator:r,escalatedScope:a})=>t==="escalated"?DU(a??nk):t==="properties"?PU(n,r):f0(t,e),mre=({mode:t,selectedCount:e,clauses:n,matchOperator:r,escalatedScope:a,escalatedCount:s})=>{if(t==="selected")return`${e} messages`;if(t==="escalated"){const i=a??nk;return s===void 0?`every message ${i}`:`all ${s.toLocaleString()} messages ${i}`}return t==="similar"?`mail ${$0({anchorCount:e}).toLowerCase()}`:n.length===0?"every message":`every message where ${PU(n,r)}`};function gre({steps:t,step:e}){const n=vp(t,e);return C.jsx("ol",{className:"flex items-center gap-1.5","aria-label":"Progress",children:t.map((r,a)=>C.jsx("li",{className:"flex flex-1 items-center gap-1.5",children:C.jsx("span",{className:Ue("h-1 flex-1 rounded-full transition-colors",a<=n?"bg-accent":"bg-surface-sunken"),"aria-current":a===n?"step":void 0})},r))})}function vre({title:t,subtitle:e,steps:n,step:r,onBack:a,onExit:s,footer:i,children:u}){const c=vp(n,r);return C.jsx("div",{role:"dialog","aria-modal":"true","aria-label":t,className:"fixed inset-0 z-50 flex flex-col font-sans text-fg md:items-center md:justify-center md:bg-black/40 md:p-6",children:C.jsxs("div",{className:"flex min-h-0 w-full flex-1 flex-col bg-canvas md:h-[45rem] md:max-h-[calc(100dvh-3rem)] md:w-[35rem] md:max-w-[calc(100vw-3rem)] md:flex-none md:overflow-hidden md:rounded-xl md:border md:border-line md:shadow-lg",children:[C.jsxs("header",{className:"shrink-0 border-b border-line px-3 pb-2 pt-[calc(0.75rem+env(safe-area-inset-top,0px))] md:pt-3",children:[C.jsxs("div",{className:"flex items-center gap-1",children:[C.jsx("button",{type:"button",onClick:a,"aria-label":"Back",className:"flex size-11 items-center justify-center rounded-md text-fg-muted",children:C.jsx(TL,{className:"size-5"})}),C.jsxs("div",{className:"min-w-0 flex-1 text-center",children:[C.jsx("h1",{className:"truncate text-sm font-semibold",children:t}),e&&C.jsx("p",{className:"truncate text-2xs text-fg-muted",children:e})]}),C.jsx("button",{type:"button",onClick:s,"aria-label":"Cancel",className:"flex size-11 items-center justify-center rounded-md text-fg-muted",children:C.jsx(Ms,{className:"size-5"})})]}),C.jsxs("div",{className:"space-y-1 px-1 pt-2",children:[C.jsx(gre,{steps:n,step:r}),C.jsxs("p",{className:"text-2xs text-fg-subtle",children:["Step ",c+1," of ",n.length," · ",NU(n[c])]})]})]}),C.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto px-4 py-4",children:u}),C.jsx("footer",{className:"shrink-0 border-t border-line px-4 py-3 pb-[max(0.75rem,env(safe-area-inset-bottom))] md:pb-3",children:i})]})})}function Hc({selected:t,title:e,description:n,unavailable:r,onSelect:a,children:s}){const i=_.useId();return C.jsxs("div",{className:"space-y-1.5",children:[C.jsxs("button",{type:"button",onClick:a,"aria-pressed":t,"aria-describedby":r&&s?i:void 0,className:Ue("flex w-full items-start gap-3 rounded-lg border p-3 text-left transition-colors",t?"border-accent bg-accent-soft":"border-line bg-surface hover:bg-surface-sunken",r&&"opacity-55"),children:[C.jsx("span",{className:Ue("mt-0.5 flex size-5 shrink-0 items-center justify-center rounded-full border",t?"border-accent bg-accent text-accent-fg":"border-line"),children:t&&C.jsx(rv,{className:"size-3"})}),C.jsxs("span",{className:"min-w-0 flex-1",children:[C.jsx("span",{className:"block text-sm font-medium text-fg",children:e}),C.jsx("span",{className:"mt-0.5 block text-xs text-fg-muted",children:n})]})]}),s&&C.jsx("div",{id:i,children:s})]})}const yre=(t,e)=>t.status==="uncounted"?"The first matches. The total is not known until the run finishes.":t.status==="ready"&&t.count>e&&!t.stale?`and ${t.count-e} more`:yU(t),bre=(t,e,n)=>n?"Fetching the messages this covers…":t.status==="error"?t.reason:cre(e??"noMatch");function W0({messages:t,count:e,label:n,emptyReason:r,loading:a}){return C.jsxs("section",{className:"flex flex-col rounded-lg border border-line bg-surface",children:[C.jsx("h2",{className:"shrink-0 border-b border-line px-3 py-2 text-2xs font-medium uppercase tracking-wide text-fg-subtle",children:n}),t.length===0?C.jsx("p",{className:"px-3 py-4 text-xs text-fg-muted",children:bre(e,r,a)}):C.jsxs(C.Fragment,{children:[C.jsx("ul",{className:"min-h-0 max-h-[45dvh] divide-y divide-line overflow-y-auto overscroll-contain md:max-h-[17rem]",children:t.map(s=>C.jsxs("li",{className:"px-3 py-2",children:[C.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[C.jsx("span",{className:"truncate text-xs font-medium text-fg",children:s.sender}),C.jsx("span",{className:"shrink-0 text-2xs text-fg-subtle",children:s.date})]}),C.jsx("p",{className:"truncate text-xs text-fg-muted",children:s.subject})]},s.id))}),C.jsx("p",{className:"shrink-0 border-t border-line px-3 py-2 text-2xs text-fg-subtle",children:yre(e,t.length)})]})]})}function $6({onBack:t,nextLabel:e,onNext:n,nextVariant:r="primary",blockedReason:a,nudged:s}){const i=_.useId();return C.jsxs("div",{className:"space-y-2",children:[a&&C.jsx(Zte,{id:i,reason:a,nudged:s,className:"px-1 text-2xs text-warning"}),C.jsxs("div",{className:"flex items-center gap-3",children:[C.jsx(on,{variant:"ghost",size:"touch",onClick:t,icon:C.jsx(TL,{className:"size-4"}),className:"shrink-0",children:"Back"}),C.jsxs(on,{variant:r,size:"touch",onClick:n,"aria-describedby":a?i:void 0,className:Ue("flex-1",a&&"opacity-55"),children:[e,r==="primary"&&C.jsx(xJ,{className:"size-4"})]})]})]})}function Sre({selectedCount:t,mode:e,onModeChange:n,semanticUnavailable:r,semanticErrorDetail:a,semanticFallbackTaken:s,onSemanticFallback:i,escalatedScope:u,sample:c}){return e==="escalated"?C.jsxs(C.Fragment,{children:[C.jsxs("div",{className:"rounded-lg border border-accent bg-accent-soft p-3",children:[C.jsx("p",{className:"text-sm font-medium text-fg",children:DU(u??nk)}),C.jsx("p",{className:"mt-1 text-xs text-fg-muted",children:fre})]}),C.jsx("div",{className:"mt-4",children:C.jsx(W0,{...c})})]}):C.jsxs(C.Fragment,{children:[C.jsxs("div",{className:"space-y-2",children:[C.jsx(Hc,{selected:e==="selected",onSelect:()=>n("selected"),title:f0("selected",t),description:$S("selected")}),C.jsxs(Hc,{selected:e==="similar",unavailable:r,onSelect:r?i:()=>n("similar"),title:f0("similar",t),description:$S("similar"),children:[a&&C.jsxs("p",{role:"status",className:"px-1 text-2xs text-danger",children:["Couldn't find similar messages: ",a]}),s&&C.jsx("p",{role:"status",className:"px-1 text-2xs text-fg-subtle",children:"Similar-mail matching is unavailable right now — matching on the senders instead."})]}),C.jsx(Hc,{selected:e==="properties",onSelect:()=>n("properties"),title:f0("properties",t),description:$S("properties")})]}),C.jsx("div",{className:"mt-4",children:C.jsx(W0,{...c})})]})}const wre=[{value:"all",label:H0("all")},{value:"any",label:H0("any")}];function xre({clauses:t,matchOperator:e,onMatchOperatorChange:n,clauseEdit:r,onStartAddClause:a,onStartEditClause:s,onRemoveClause:i,onChangeDraft:u,onSubmitClause:c,onCancelClause:f,clauseFields:h,clauseSuggestions:m,conversionNotice:g,semanticFallbackTaken:y,sample:S}){const w=J_(e);return C.jsxs("div",{className:"space-y-4",children:[y&&C.jsx("p",{role:"status",className:"px-1 text-xs text-fg-muted",children:"Similar-mail matching is unavailable right now. These are the senders of the messages you picked."}),g&&C.jsx(ere,{notice:g}),C.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[t.map((x,E)=>C.jsxs(_.Fragment,{children:[E>0&&C.jsx("span",{className:"text-2xs font-medium uppercase text-fg-subtle",children:w}),C.jsx(xU,{clause:x,onEdit:()=>s(x.id),onRemove:()=>i(x.id)})]},x.id)),!r&&C.jsx(LE,{label:"Add clause",onClick:a})]}),r&&C.jsx(CU,{draft:r.draft,mode:r.mode,fields:h,suggestions:m,onChangeField:x=>u({...r.draft,field:x}),onChangeValue:x=>u({...r.draft,value:x}),onSubmit:c,onCancel:f}),t.length>1&&C.jsxs("div",{className:"flex items-center gap-2",children:[C.jsx("span",{className:"text-xs text-fg-muted",children:"Match"}),C.jsx(d0,{name:"wizard-match-operator",size:"sm","aria-label":"Match operator",options:wre,value:e,onChange:n})]}),C.jsx("p",{className:"px-1 text-xs text-fg-muted",children:"We started you off from what you were looking at. Change any of it — this is where the rule is decided, not the list behind it."}),C.jsx(W0,{...S})]})}function Cre({folders:t,mailboxId:e,onSelect:n,onCreateFolder:r,delimiter:a,restriction:s}){const i=t.find(u=>u.id===e);return C.jsxs("div",{className:"flex min-h-0 flex-col gap-3",children:[C.jsx("p",{className:Ue("px-1 text-xs",s?"text-warning":"text-fg-muted"),children:s??(i?`Moving to ${i.label}.`:"Tap a folder to open it, or make a new one where you want it.")}),C.jsx("div",{className:"flex min-h-0 flex-1 overflow-hidden rounded-lg border border-line bg-surface",children:C.jsx(TU,{folders:t,selectedId:e,onSelect:n,onCreateFolder:r,delimiter:a,labels:{createPending:"Waiting for the mail server to confirm the folder…"}})})]})}function Ere({draft:t,onScopeChange:e,onUntilChange:n,restriction:r}){const a=_.useId(),{scope:s,until:i=""}=t,u=MU(t).length>0,c=r&&C.jsx("p",{className:"px-1 text-2xs text-warning",children:r});return C.jsxs("div",{className:"space-y-2",children:[C.jsx(Hc,{selected:s==="once",onSelect:()=>e("once"),title:c0("once"),description:"A one-off tidy-up. Nothing changes for future mail.",children:u&&C.jsx("p",{className:"px-1 text-2xs text-warning",children:Aa.bodyTextOnce})}),C.jsx(Hc,{selected:s==="standing",unavailable:!!r,onSelect:()=>e("standing"),title:c0("standing"),description:"Saves a rule and applies it to new mail as it arrives, and to the mail already in your mailbox. You'll name it next.",children:c}),C.jsxs(Hc,{selected:s==="until",unavailable:!!r,onSelect:()=>e("until"),title:c0("until"),description:"The same rule, and it stops on a day you pick.",children:[c,s==="until"&&C.jsxs("div",{className:"rounded-lg border border-line bg-surface p-2",children:[C.jsx(Q_,{htmlFor:a,children:"Stops on"}),C.jsx(ts,{id:a,type:"date",value:i,onChange:f=>n(f.target.value)})]})]})]})}function _re({name:t,onNameChange:e,nudged:n}){const r=_.useId(),a=_.useRef(null);return _.useEffect(()=>{n&&a.current?.focus()},[n]),C.jsxs(C.Fragment,{children:[C.jsx(Q_,{htmlFor:r,children:"Rule name"}),C.jsx(ts,{id:r,ref:a,value:t,placeholder:"Travel confirmations",onChange:s=>e(s.target.value),trailing:t?C.jsx("button",{type:"button","aria-label":"Clear name",onClick:()=>{e(""),a.current?.focus()},className:"-mr-1 flex size-7 shrink-0 items-center justify-center rounded-full text-fg-subtle hover:bg-surface hover:text-fg",children:C.jsx(Ms,{className:"size-4"})}):void 0}),C.jsx("p",{className:"mt-2 text-xs text-fg-muted",children:"We suggested one from this selection. Clear it and write your own if it doesn't read right."})]})}function kre({verb:t,mode:e,selectedCount:n,clauses:r,matchOperator:a,folder:s,scope:i,until:u,ruleName:c,escalatedScope:f,sample:h}){const{label:m}=ek(t),g={mode:e,selectedCount:n,clauses:r,matchOperator:a,escalatedScope:f,escalatedCount:h.count.status==="ready"?h.count.count:void 0},y=e!=="selected",S=i==="standing"||i==="until";return C.jsxs("div",{className:"space-y-4",children:[C.jsxs("div",{className:"rounded-lg border border-line bg-surface p-3",children:[C.jsxs("p",{className:"text-sm text-fg",children:[C.jsx("span",{className:"font-semibold",children:m})," ",mre(g),s?` to ${s}`:"",S&&C.jsxs(C.Fragment,{children:[" ","and ",C.jsx("span",{className:"font-medium",children:"save a rule"})," that keeps doing it"]}),i==="until"&&u&&` until ${u}`,"."]}),y&&C.jsxs("p",{className:"mt-2 flex items-start gap-1.5 text-xs text-warning",children:[C.jsx(Nh,{className:"mt-px size-3.5 shrink-0"}),e==="escalated"?hre:"This covers messages not shown in the list."]})]}),C.jsxs("dl",{className:"divide-y divide-line overflow-hidden rounded-lg border border-line bg-surface text-xs",children:[C.jsxs("div",{className:"flex justify-between gap-3 px-3 py-2",children:[C.jsx("dt",{className:"text-fg-muted",children:"Action"}),C.jsx("dd",{className:"font-medium",children:m})]}),C.jsxs("div",{className:"flex justify-between gap-3 px-3 py-2",children:[C.jsx("dt",{className:"shrink-0 text-fg-muted",children:"Apply to"}),C.jsx("dd",{className:"truncate font-medium",children:pre(g)})]}),s&&C.jsxs("div",{className:"flex justify-between gap-3 px-3 py-2",children:[C.jsx("dt",{className:"text-fg-muted",children:"Destination"}),C.jsx("dd",{className:"font-medium",children:s})]}),i&&C.jsxs("div",{className:"flex justify-between gap-3 px-3 py-2",children:[C.jsx("dt",{className:"text-fg-muted",children:"Scope"}),C.jsxs("dd",{className:"font-medium",children:[c0(i),i==="until"&&u?` · ${u}`:""]})]}),c!==void 0&&C.jsxs("div",{className:"flex justify-between gap-3 px-3 py-2",children:[C.jsx("dt",{className:"text-fg-muted",children:"Rule name"}),C.jsx("dd",{className:"truncate font-medium",children:c})]})]}),C.jsx(W0,{...h})]})}const rk=t=>({state:t.state,verb:t.verb,scope:t.scope,matched:t.matched,applied:t.applied,failed:t.failedCount??t.failures.length}),Are=t=>t==="progress"?C.jsx(j0,{className:"size-10 animate-spin text-accent"}):t==="warning"?C.jsx(Nh,{className:"size-10 text-warning"}):t==="danger"?C.jsx(Nh,{className:"size-10 text-danger"}):C.jsx("span",{className:"flex size-12 items-center justify-center rounded-full bg-accent-soft text-accent",children:C.jsx(rv,{className:"size-6"})});function Tre(t){const{matched:e,applied:n,failures:r}=t,a=rk(t),s=tk(a),i=t.state==="runStopped"?"Never sent":"Server rejected";return C.jsxs("div",{className:"space-y-4 pt-2",children:[C.jsxs("div",{className:"flex flex-col items-center gap-3 py-6 text-center",children:[Are(s.tone),C.jsx("p",{className:"text-sm font-medium",children:s.title}),C.jsx("p",{className:"max-w-xs text-xs text-fg-muted",children:s.detail})]}),s.showProgress&&C.jsx($ne,{value:n,max:e,tone:a.failed>0?"warning":"success"}),r.length>0&&C.jsxs("section",{className:"rounded-lg border border-line bg-surface",children:[C.jsx("h2",{className:"border-b border-line px-3 py-2 text-2xs font-medium uppercase tracking-wide text-fg-subtle",children:s.failureListLabel}),C.jsx("ul",{className:"divide-y divide-line",children:r.map(u=>C.jsxs("li",{className:"px-3 py-2",children:[C.jsx("p",{className:"truncate text-xs font-medium",children:u.sender}),C.jsx("p",{className:"truncate text-xs text-fg-muted",children:u.subject}),C.jsx(IE,{className:"mt-1",tone:"warning",children:i})]},u.id))})]})]})}function Rre(t){const{onRetry:e,onDismiss:n,onCancelRun:r}=t,a=tk(rk(t));return a.cancelLabel!==void 0&&r?C.jsxs("div",{className:"flex items-center gap-3",children:[C.jsx(on,{variant:"ghost",size:"md",className:"min-h-11 shrink-0",onClick:r,children:a.cancelLabel}),C.jsx(on,{variant:"primary",size:"md",className:"min-h-11 flex-1",onClick:n,children:a.dismissLabel})]}):a.retryLabel===void 0?C.jsx(on,{variant:a.tone==="progress"?"ghost":"primary",size:"touch",className:"w-full",onClick:n,children:a.dismissLabel}):C.jsxs("div",{className:"flex items-center gap-3",children:[C.jsx(on,{variant:"ghost",size:"touch",onClick:n,children:a.dismissLabel}),C.jsx(on,{variant:"primary",size:"touch",className:"flex-1",onClick:e,children:a.retryLabel})]})}const Ire={match:{subtitle:"What should this apply to?"},properties:{title:"Match properties",subtitle:"Which properties have to match?"},folder:{title:"Move to",subtitle:"Pick a destination"},rule:{title:"Organize",subtitle:"How long should this hold?"},name:{title:"Name the rule",subtitle:"So you can find it later"},review:{title:"Review",subtitle:"Check before it runs"},run:{}},vs=(t,e)=>{if(t===void 0)throw new Error(`The ${NU(e)} step was rendered without its answers.`);return t};function bRe(t){const{verb:e,steps:n,onExit:r,onContinue:a,onCommit:s}=t,{label:i,destructive:u}=ek(e),c=n[vp(n,t.step)],f=Ire[c],h=rre(n,c)?r:t.onBack,m=()=>c==="match"?C.jsx(Sre,{...vs(t.match,c)}):c==="properties"?C.jsx(xre,{...vs(t.properties,c)}):c==="folder"?C.jsx(Cre,{...vs(t.folder,c)}):c==="rule"?C.jsx(Ere,{...vs(t.rule,c)}):c==="name"?C.jsx(_re,{...vs(t.name,c),nudged:t.nudged}):c==="review"?C.jsx(kre,{...vs(t.review,c)}):C.jsx(Tre,{...vs(t.run,c)}),g=()=>{if(c==="run")return C.jsx(Rre,{...vs(t.run,c)});if(c==="review"){const w=vs(t.review,c);return C.jsx($6,{onBack:h,nextLabel:w.scope?bU(w.scope):i,nextVariant:u?"danger":"primary",onNext:s,blockedReason:t.blockedReason,nudged:t.nudged})}return C.jsx($6,{onBack:h,nextLabel:"Continue",onNext:a,blockedReason:t.blockedReason,nudged:t.nudged})},y=()=>c!=="run"?f.title??i:tk(rk(vs(t.run,c))).screenTitle,S=c==="match"&&t.match?.mode==="escalated"?"What this applies to":f.subtitle;return C.jsx(vre,{title:y(),subtitle:S,steps:n,step:c,onBack:h,onExit:r,footer:g(),children:m()})}const Ore={preparing:"Getting the new version ready",restarting:"Restarting Remit",reconnecting:"Waiting for Remit to answer again"};function H6(t){return Ore[t]}function Nre(t){return t<90?"This usually takes about a minute.":t<240?"Longer than usual. Remit is still trying to reach the server.":"Still no answer. Remit keeps trying."}function SRe(t,e=Date.now()){const n=Math.floor((e-t)/6e4);if(n<1)return"just now";if(n<60)return`${n}m ago`;const r=Math.floor(n/60);return r<24?`${r}h ago`:`${Math.floor(r/24)}d ago`}function wRe(t){return new Date(t).toLocaleDateString(void 0,{dateStyle:"medium"})}function Mre({children:t,show:e,label:n="Update available"}){return C.jsxs("span",{className:"relative inline-flex",children:[t,e&&C.jsxs(C.Fragment,{children:[C.jsx("span",{className:"absolute -right-1 -top-1 size-2 rounded-full bg-accent-2"}),C.jsx("span",{className:"sr-only",children:n})]})]})}const q6=["preparing","restarting","reconnecting"],Pre='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';function LU(t){_.useEffect(()=>{const e=t.current;if(!e)return;const n=()=>Array.from(e.querySelectorAll(Pre));(n()[0]??e).focus();const r=a=>{if(a.key!=="Tab")return;const s=n();if(s.length===0){a.preventDefault(),e.focus();return}const i=s[0],u=s[s.length-1],c=document.activeElement;if(a.shiftKey&&(c===i||!e.contains(c))){a.preventDefault(),u.focus();return}!a.shiftKey&&(c===u||!e.contains(c))&&(a.preventDefault(),i.focus())};return window.addEventListener("keydown",r,!0),()=>window.removeEventListener("keydown",r,!0)},[t])}const UU="fixed inset-0 z-50 flex flex-col items-center justify-center gap-6 bg-canvas p-6 text-center outline-none";function Dre({target:t,phase:e,elapsedSeconds:n}){const r=_.useRef(null);LU(r);const a=q6.indexOf(e);return C.jsxs("div",{ref:r,role:"dialog","aria-modal":"true","aria-labelledby":"self-update-progress-title",tabIndex:-1,className:UU,children:[C.jsxs("div",{className:"max-w-md space-y-2",children:[C.jsxs("h1",{id:"self-update-progress-title",className:"text-lg font-semibold text-fg",children:["Installing Remit ",t]}),C.jsx("p",{className:"text-sm text-fg-muted",children:"Remit is restarting, so this page has no server to talk to for a moment. Leave this open — it reconnects on its own."})]}),C.jsx("ol",{className:"w-full max-w-sm space-y-2 text-left",children:q6.map((s,i)=>{const u=i<a,c=i===a;return C.jsxs("li",{className:Ue("flex items-center gap-3 rounded-sm border px-row-inset py-2 text-sm",c?"border-line-strong bg-surface text-fg":"border-line bg-surface-sunken text-fg-subtle"),children:[u?C.jsx(rv,{className:"size-4 shrink-0 text-positive","aria-hidden":!0}):c?C.jsx(j0,{className:"size-4 shrink-0 animate-spin text-accent-2","aria-hidden":!0}):C.jsx("span",{className:"size-4 shrink-0 rounded-full border border-line-strong"}),H6(s)]},s)})}),C.jsxs("p",{"aria-live":"polite",className:"max-w-md text-xs text-fg-subtle",children:[C.jsx("span",{className:"sr-only",children:`${H6(e)}. `}),Nre(n)]})]})}function Lre({attemptedVersion:t,previousVersion:e,elapsedSeconds:n,logsCommand:r,onRetryConnection:a}){const s=_.useRef(null);LU(s);const i=Math.max(1,Math.round(n/60));return C.jsxs("div",{ref:s,role:"alertdialog","aria-modal":"true","aria-labelledby":"self-update-unreachable-title",tabIndex:-1,className:UU,children:[C.jsx(V_,{className:"size-12 shrink-0 text-danger","aria-hidden":!0}),C.jsxs("div",{className:"max-w-lg space-y-3",children:[C.jsx("h1",{id:"self-update-unreachable-title",className:"text-lg font-semibold text-fg",children:"Remit has not answered since the restart"}),C.jsxs("p",{className:"text-sm text-fg-muted",children:["Installing ",t," started ",i," minute",i===1?"":"s"," ago and the server has been silent since. Your mail is safe at your provider — it was never part of the update."]}),C.jsxs("p",{className:"text-sm text-fg-muted",children:["Remit rolls back to ",e," on its own when the new version fails to start, but this page cannot confirm that from here. Check the server directly:"]}),C.jsx("code",{className:"block rounded-xs bg-surface-sunken px-3 py-2 text-left text-xs text-fg-muted",children:r})]}),C.jsx("div",{className:"flex flex-wrap items-center justify-center gap-2",children:C.jsx(on,{size:"sm",onClick:a,children:"Try connecting again"})})]})}function Ure(t,e,n){if(!e.allowPrivateDomains&&t.length>3){const r=t.length-1,a=t.charCodeAt(r),s=t.charCodeAt(r-1),i=t.charCodeAt(r-2),u=t.charCodeAt(r-3);if(a===109&&s===111&&i===99&&u===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="com",!0;if(a===103&&s===114&&i===111&&u===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="org",!0;if(a===117&&s===100&&i===101&&u===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="edu",!0;if(a===118&&s===111&&i===103&&u===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="gov",!0;if(a===116&&s===101&&i===110&&u===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="net",!0;if(a===101&&s===100&&i===46)return n.isIcann=!0,n.isPrivate=!1,n.publicSuffix="de",!0}return!1}const Ol=new Uint8Array([1,2,1,1,1,1,1,1,1,1,1,1,0,2,2,2,0,2,2,0,2,0,0,1,0,0,2,1,1,1,1,1,1,0,0,0,1,0,1,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,0,1,0,1,1,0,1,1,0,0,0,0,0,0,1,1,1,0,2,0,0,0,0,0,0,0,2,0,2,2,0,0,2,2,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,0,2,1,1,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,2,0,0,0,0,2,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,2,2,1,1,1,1,1,1,1,1,1,0,1,1,0,0,0,0,1,0,2,2,0,0,0,2,0,1,1,0,2,0,2,2,0,1,1,1,1,1,1,1,1,0,1,1,1,0,1,1,1,1,0,0,0,0,1,0,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,1,2,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,2,2,0,2,2,0,0,0,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,0,2,0,2,2,2,2,0,0,0,0,2,0,0,0,0,0,0,2,2,0,0,0,2,2,1,1,1,1,2,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,2,2,0,0,2,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,2,2,1,2,1,1,1,2,1,1,1,1,1,0,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1,1,1,1,2,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1,0,0,0,0,0]),V0=new Uint16Array([0,0,0,10,11,18,106,111,117,124,130,136,145,146,147,148,149,150,151,153,154,155,157,159,226,239,241,242,243,258,265,266,269,270,271,274,276,295,296,298,307,312,313,331,332,335,337,338,340,374,375,377,380,381,385,387,391,394,426,429,442,443,451,452,454,464,478,479,480,489,490,527,532,548,568,574,615,616,643,670,671,819,825,828,829,830,835,840,849,871,872,873,874,875,876,877,895,897,898,901,903,904,906,908,923,938,943,944,946,947,948,949,950,952,955,960,961,962,964,965,968,971,972,973,986,988,1e3,1011,1019,1021,1061,1064,1068,1069,1071,1074,1085,1087,1097,1099,1105,1107,1108,1110,1113,1114,1115,1167,1169,1171,1191,1192,1193,1194,1196,1207,1238,1249,1261,1270,1277,1282,1295,1306,1319,1320,1331,1365,1366,1367,1382,1397,1469,1470,1472,1473,1507,1508,1509,1512,1516,1518,1547,1548,1556,1557,1558,1560,1562,1563,1565,1566,1567,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1594,1595,1596,1598,2053,2056,2057,2059,2066,2073,2083,2087,2098,2099,2100,2112,2113,2115,2117,2118,2125,2126,2128,2129,2131,2132,2133,2134,2135,2209,2211,2232,2233,2234,2236,2262,2263,2314,2315,2317,2324,2330,2340,2350,2403,2404,2405,2415,2429,2430,2433,2440,2441,2449,2450,2451,2452,2453,2464,2465,2466,2468,2469,2470,2471,2473,2483,2495,2501,2533,2537,2539,2540,2542,2543,2554,2555,2557,2565,2572,2578,2583,2584,2590,2593,2599,2606,2607,2614,2622,2623,2624,2662,2668,2683,2684,2689,2707,2738,2756,2758,2761,2769,2771,2778,2830,2854,2855,2856,2857,2858,2859,2860,2861,2868,2869,2870,2871,2872,2873,2875,2876,2880,2964,2977,2978,3414,3418,3432,3484,3512,3534,3592,3614,3629,3692,3743,3781,3817,3842,3984,4030,4081,4100,4134,4149,4169,4199,4230,4253,4284,4314,4346,4373,4448,4470,4508,4518,4552,4571,4597,4639,4689,4715,4784,4785,4787,4810,4833,4869,4900,4917,4974,4987,5011,5040,5042,5076,5092,5120,5425,5434,5443,5450,5467,5471,5477,5516,5518,5525,5532,5541,5548,5549,5560,5563,5578,5579,5588,5589,5598,5607,5613,5615,5616,5617,5653,5654,5656,5664,5671,5684,5688,5690,5691,5697,5704,5718,5728,5733,5741,5749,5755,5756,5760,5762,5763,5775,5776,5777,5778,5780,5781,5784,5786,5789,5793,5794,5800,5801,5802,5804,5806,5808,5809,5810,5813,5815,5818,5819,5821,6019,6026,6027,6037,6042,6059,6073,6082,6083,6084,6088,6089,6091,6093,6099,6100,6103,6104,6106,6107,6108,7008,7009,7013,7031,7040,7043,7050,7051,7053,7054,7055,7057,7109,7110,7113,7114,7231,7232,7243,7254,7261,7264,7273,7274,7275,7290,7345,7536,7538,7539,7541,7546,7559,7574,7581,7590,7593,7596,7603,7611,7615,7616,7617,7631,7635,7644,7645,7646,7650,7685,7686,7703,7710,7718,7719,7724,7732,7776,7777,7783,7786,7797,7802,7803,7806,7839,7840,7846,7853,7854,7863,7872,7887,7891,7943,7944,7949,7951,7954,7956,7957,7958,7967,7981,7989,8003,8015,8016,8018,8020,8042,8053,8059,8060,8072,8084,8171,8183,8185,8194,8197,8203,8228,8231,8232,8233,8235,8238,8241,8252,8254,8256,8284,8358,8365,8369,8370,8379,8401,8402,8407,8408,8487,8489,8491,8500,8504,8510,8516,8522,8532,8537,8538,8556,8567,8572,8577,8587,8593,8597,8603,8609,10217,10218,10219,10226,10228]),G0=new Uint8Array([3,3,3,3,3,3,3,3,5,8,8,2,2,3,3,3,3,3,8,5,5,5,5,5,3,3,5,5,9,12,19,8,19,8,11,9,9,8,7,7,6,8,9,16,10,7,7,11,8,6,6,9,7,11,7,14,4,4,4,4,4,4,10,7,6,6,6,6,10,10,6,10,10,22,11,9,10,10,10,9,10,8,7,7,7,8,21,13,11,11,9,10,9,13,10,8,8,9,12,9,7,10,7,7,13,7,3,3,3,3,3,2,3,3,3,3,3,3,3,3,3,3,8,6,3,3,3,3,3,3,2,5,3,3,3,7,2,2,2,2,2,2,3,3,3,1,1,7,8,5,2,2,7,2,2,1,4,1,11,9,9,5,5,8,5,5,5,5,5,5,5,3,3,3,3,3,5,11,9,9,13,7,14,7,6,6,6,7,6,6,6,6,6,10,7,11,9,4,4,4,4,4,4,6,6,6,6,6,8,7,10,9,9,9,8,9,8,10,6,9,9,8,10,10,7,8,1,9,10,12,12,12,10,9,9,10,10,9,9,1,1,5,3,3,3,3,3,3,3,3,3,3,3,3,6,6,6,4,3,3,3,7,4,4,4,3,3,6,7,3,4,1,2,2,2,6,1,2,2,2,2,2,12,5,3,8,9,13,4,4,13,9,9,11,7,3,12,9,2,2,2,3,3,3,3,3,8,2,2,3,3,3,3,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,4,4,3,7,10,15,7,15,15,20,15,9,10,10,12,14,14,14,12,12,12,12,12,14,14,10,10,10,10,14,9,9,9,10,14,14,14,13,13,9,9,9,9,9,9,7,8,6,8,8,6,8,13,8,8,6,13,8,11,13,8,6,13,8,6,9,10,10,12,14,14,14,12,12,12,12,14,14,10,10,10,10,9,9,9,10,14,14,11,13,13,9,9,9,9,9,9,2,6,9,2,2,3,3,3,3,3,3,3,3,3,4,4,4,2,3,3,3,3,3,3,7,7,2,3,2,2,5,3,3,3,3,3,3,4,2,2,2,2,2,2,3,3,3,3,3,3,3,4,5,7,2,2,12,8,10,8,10,7,18,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,5,2,2,3,3,3,5,5,3,8,8,6,8,6,6,4,6,7,7,7,10,11,2,5,5,3,3,3,3,3,3,5,5,6,11,10,7,7,7,4,4,4,2,3,3,3,3,3,2,7,5,5,3,3,3,3,3,3,3,3,7,7,7,11,7,6,9,6,6,8,10,8,6,8,13,4,4,4,4,4,10,8,11,8,8,8,10,10,7,10,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,2,2,2,2,2,2,5,5,5,5,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,7,10,13,7,8,7,11,8,8,6,9,8,8,6,6,6,8,8,6,6,6,6,6,9,7,6,4,4,4,4,4,4,4,6,6,6,9,7,8,10,8,8,2,3,3,3,3,3,2,8,9,9,2,2,2,3,3,3,2,3,3,3,9,2,2,3,3,3,3,3,3,5,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,12,5,5,3,5,4,2,3,2,4,3,9,2,2,2,2,2,5,5,3,8,8,13,6,10,9,4,7,9,11,2,3,7,3,3,4,1,3,4,2,9,3,3,12,5,3,7,10,10,7,4,4,6,14,7,9,7,13,2,2,2,2,2,2,3,3,3,3,3,8,15,4,4,2,3,3,3,7,4,9,9,2,3,3,3,5,3,2,2,7,2,7,6,6,7,2,4,2,2,2,2,2,2,8,8,8,9,5,2,3,3,3,3,3,3,10,7,4,4,4,4,3,4,2,3,3,3,3,3,10,7,4,4,4,4,2,3,3,3,3,10,7,4,4,4,4,3,9,6,6,6,9,13,9,2,2,2,8,7,9,5,3,3,3,5,5,12,9,10,7,8,7,6,8,6,11,12,7,9,10,4,4,7,8,11,6,7,9,8,7,10,8,9,15,7,8,5,4,7,2,3,3,3,2,14,10,2,14,10,2,14,3,9,13,13,10,14,16,17,11,2,14,2,14,3,9,13,10,14,16,17,11,14,10,14,2,7,3,10,7,14,10,2,14,10,9,9,17,6,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,10,10,10,12,9,4,10,11,8,8,8,7,9,5,3,3,3,3,3,3,3,3,5,8,4,4,4,4,4,4,6,16,3,3,14,3,14,2,14,9,13,10,10,14,16,17,11,6,9,10,10,12,14,14,14,12,12,12,12,14,14,10,10,10,10,14,9,9,9,10,14,14,14,9,9,9,9,9,9,2,14,9,13,10,10,14,16,17,11,6,2,14,9,17,13,10,10,14,16,17,11,6,2,14,9,13,10,14,16,17,11,2,14,9,13,10,16,11,2,14,10,19,7,2,14,9,13,10,19,10,7,14,16,17,11,6,2,14,9,13,10,19,7,14,16,17,11,2,14,9,13,17,13,10,10,14,16,17,11,6,3,2,14,9,13,10,10,14,16,17,11,6,9,10,12,14,14,14,12,12,12,12,12,14,14,14,10,10,10,14,9,9,9,9,14,14,14,13,13,14,9,9,9,9,9,9,4,11,2,14,9,13,17,13,10,19,10,7,14,16,17,11,6,2,14,9,13,17,13,10,19,10,7,14,16,17,11,6,2,9,10,10,7,17,3,3,12,12,16,15,15,12,14,14,14,20,20,13,12,12,12,12,12,12,20,25,14,14,12,12,10,10,10,10,9,9,9,25,4,9,17,10,7,14,16,21,13,13,14,20,14,13,17,24,9,12,13,25,13,21,20,17,9,9,9,9,9,9,12,17,4,4,9,9,9,10,10,12,14,14,14,12,12,12,12,12,14,14,10,10,10,10,14,9,9,9,10,14,14,14,13,13,9,9,9,9,9,9,1,8,7,11,11,1,3,3,3,4,8,9,10,14,14,12,12,12,12,14,14,10,10,10,10,14,9,9,9,10,14,14,14,13,13,9,9,9,9,9,7,4,4,4,4,4,4,4,4,4,4,9,12,6,14,4,12,7,2,2,1,2,7,6,4,4,4,6,8,8,7,4,5,6,3,3,3,3,4,16,8,3,5,4,3,3,3,5,2,2,8,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,11,12,7,7,13,9,10,12,8,9,7,8,5,12,10,13,14,5,5,5,13,5,5,5,3,3,3,5,16,5,5,5,5,5,7,12,14,8,12,8,10,12,9,11,7,9,7,10,7,13,9,7,12,8,17,7,7,16,10,13,13,8,10,10,14,17,7,16,16,15,8,10,10,12,17,7,17,14,7,10,17,8,7,7,7,8,15,15,7,14,10,10,10,11,11,7,7,13,8,10,7,16,7,8,7,14,17,12,10,11,21,8,9,7,13,9,8,13,6,12,7,6,13,10,10,10,8,18,9,17,13,10,12,6,13,6,11,8,13,10,13,18,13,11,13,8,16,7,10,8,16,12,10,8,8,6,14,11,8,15,8,8,7,7,12,7,8,9,14,15,8,9,10,9,15,7,8,8,12,13,9,10,15,15,13,7,10,10,20,7,6,9,6,6,14,11,14,11,12,9,10,16,16,12,7,11,28,8,11,10,7,21,8,7,9,4,4,4,17,7,8,6,9,6,6,13,6,6,6,6,18,20,14,8,11,12,9,10,13,15,19,8,9,12,7,10,16,12,9,9,9,14,12,11,9,12,11,18,9,9,9,10,7,7,16,8,9,7,13,12,10,18,7,8,11,7,7,8,8,13,7,7,7,11,15,13,11,7,8,15,11,7,8,18,14,13,18,15,10,12,12,9,7,11,11,8,7,10,8,14,12,10,18,7,10,9,7,8,13,10,14,9,10,8,8,23,7,7,11,12,12,17,7,7,11,11,17,16,16,7,8,11,14,14,8,10,7,7,16,16,13,9,11,9,15,15,11,11,7,7,14,7,9,7,7,16,10,13,10,11,14,7,11,10,11,7,11,10,11,15,11,15,10,12,17,10,14,13,11,11,12,13,10,7,13,10,16,12,21,9,10,10,7,11,14,17,7,7,8,11,12,8,15,14,14,8,17,12,10,10,7,9,11,7,10,7,11,18,7,11,7,12,11,8,8,14,12,7,8,15,3,7,7,5,2,9,2,2,2,2,2,2,2,3,3,3,3,3,3,3,2,5,3,3,3,3,3,3,4,4,3,3,3,3,3,3,5,11,6,4,7,10,7,7,11,1,10,2,2,3,3,3,3,3,3,3,3,5,7,3,5,6,3,3,5,2,2,5,3,4,13,11,3,3,6,3,5,14,2,2,3,8,2,2,12,5,18,5,3,3,3,16,5,5,5,10,7,13,12,13,9,12,14,19,9,9,21,9,9,10,6,9,6,15,10,6,12,8,6,10,15,4,4,6,6,9,9,12,16,14,23,7,7,7,14,9,7,7,11,14,10,7,10,10,10,12,6,11,10,13,11,15,11,7,12,10,3,7,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,4,3,7,2,5,5,3,3,5,5,5,5,7,6,6,6,4,4,4,4,4,4,6,6,6,6,6,7,10,2,2,2,5,5,5,5,3,3,3,3,3,5,5,10,9,11,8,7,12,8,9,7,6,13,11,6,13,7,9,9,4,4,4,4,4,4,6,10,7,8,13,8,8,9,14,8,10,7,7,7,9,6,9,7,2,12,5,3,3,13,4,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,3,3,3,3,4,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,8,4,4,4,4,4,4,4,4,4,4,4,4,9,3,3,3,3,3,3,3,3,3,3,4,2,2,2,5,3,3,3,3,3,3,3,3,4,4,1,7,6,4,12,3,3,3,3,3,8,7,3,3,3,3,3,3,4,4,11,14,2,8,3,5,5,8,10,8,6,4,7,17,7,4,5,2,6,3,5,2,4,4,2,12,5,5,3,15,13,10,8,11,2,2,3,3,3,3,3,3,3,3,4,4,5,3,3,3,3,4,18,2,12,5,3,3,3,3,3,5,16,8,8,9,6,6,4,4,4,4,31,6,6,10,11,21,10,9,7,10,7,7,2,4,4,4,4,6,5,3,3,4,3,3,3,3,3,3,3,3,3,6,6,6,2,2,2,5,3,3,3,7,7,4,3,3,3,3,3,3,3,3,3,3,3,3,3,2,3,3,3,3,8,2,3,3,3,3,3,5,9,11,3,3,3,3,4,4,3,3,3,3,3,5,10,9,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,2,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,11,10,10,10,10,10,11,10,11,10,11,10,9,9,11,3,3,3,3,3,3,5,3,7,8,8,7,6,6,11,4,4,4,7,8,9,9,2,3,7,4,4,2,5,5,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,2,2,5,5,5,5,5,3,3,5,5,5,7,7,6,6,6,4,4,4,4,4,4,4,4,4,4,6,6,8,8,1,2,2,2,2,2,2,3,3,3,3,3,3,3,4,4,6,9,12,3,7,10,7,2,2,3,3,3,3,3,4,3,3,2,2,2,2,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,8,8,6,6,8,6,7,4,4,4,4,4,4,6,7,5,5,20,19,8,10,9,7,10,6,8,11,6,6,6,6,13,12,8,6,7,14,11,9,2,5,3,3,6,2,3,2,2,2,2,2,2,2,5,4,3,7,6,4,7,4,3,6,4,7,2,7,7,7,5,5,5,5,3,3,3,3,3,3,3,3,3,3,5,9,10,10,8,11,7,8,20,7,8,9,8,12,6,6,6,8,9,8,12,6,6,8,13,10,12,6,6,7,7,8,9,6,4,4,4,4,4,4,4,10,6,6,6,7,14,11,10,7,8,10,8,11,14,11,11,9,7,9,8,11,9,17,10,9,2,2,2,9,3,3,3,3,15,14,9,5,5,2,8,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,15,12,22,19,17,18,18,19,21,7,16,16,5,5,5,5,5,5,5,5,5,5,5,7,5,5,5,5,5,5,5,5,5,5,5,9,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,7,16,11,11,7,7,7,7,17,7,8,12,15,9,19,7,19,8,16,21,11,12,19,14,22,7,7,7,7,7,7,7,7,7,7,7,16,16,19,24,12,7,14,7,12,7,8,10,10,13,7,12,12,7,7,10,18,15,12,16,7,14,12,17,10,16,17,12,17,25,7,7,7,13,6,9,6,9,18,6,6,11,20,10,6,6,6,6,6,6,6,17,6,6,6,15,6,6,6,6,6,8,14,11,12,15,13,19,17,21,7,18,8,13,13,8,12,8,6,6,13,6,15,15,16,6,6,16,6,6,6,14,6,18,6,6,6,17,18,9,13,15,8,19,8,15,15,18,14,16,4,4,4,4,4,4,4,4,4,4,4,4,6,11,10,11,6,21,23,12,17,12,11,14,13,22,15,15,11,12,14,12,7,12,8,14,12,18,10,8,16,19,17,12,14,15,8,9,19,17,12,13,13,15,18,13,23,24,23,21,17,24,8,21,8,14,14,16,14,8,8,15,20,8,19,21,9,8,13,12,13,15,11,8,11,9,9,8,11,8,21,14,21,15,15,13,7,19,7,7,7,7,7,7,16,12,17,18,7,7,11,11,7,9,9,2,2,3,3,2,2,2,3,3,3,3,3,3,3,3,3,3,4,5,5,5,5,5,5,5,5,3,3,10,10,7,9,7,7,7,6,8,6,6,6,6,6,6,6,7,6,8,6,6,9,7,7,7,4,4,4,4,4,4,4,4,8,9,8,7,8,7,8,10,7,5,5,5,5,5,5,3,9,7,7,8,6,6,6,6,6,6,6,6,9,6,6,9,11,13,7,8,9,9,5,5,5,7,8,6,6,6,6,6,6,6,7,8,9,7,10,9,10,7,8,5,5,5,5,5,5,7,7,9,8,7,7,6,6,6,6,6,6,10,6,6,6,6,6,6,6,6,6,6,6,9,10,4,4,4,4,8,7,7,10,10,9,8,8,15,9,8,8,8,8,8,9,10,9,10,7,8,13,5,5,5,5,5,3,3,7,7,8,6,6,6,4,4,11,9,7,8,9,10,7,5,5,5,5,5,3,3,7,6,6,13,7,9,8,7,5,5,5,5,5,5,5,5,3,3,3,3,7,8,7,8,13,6,6,6,6,6,6,6,6,6,6,6,6,6,6,8,8,6,6,6,6,7,6,7,6,6,9,7,4,4,4,4,4,4,4,7,8,7,8,9,8,8,8,7,10,7,8,5,5,5,5,5,5,5,5,3,7,7,7,7,9,7,10,9,6,6,6,6,6,8,8,6,6,6,7,6,6,6,9,9,4,4,13,7,10,9,9,12,7,8,8,10,8,8,8,8,8,8,5,5,5,5,3,7,7,11,7,9,8,8,6,6,10,6,8,8,8,6,7,6,6,12,4,4,4,4,4,4,4,4,4,9,8,8,16,8,9,8,7,5,5,5,5,5,3,3,7,7,7,10,15,8,9,8,9,9,6,6,6,6,6,6,7,4,8,7,8,8,7,8,11,8,5,5,5,5,5,3,7,7,6,11,16,7,6,4,4,4,4,9,9,8,8,8,13,12,8,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,11,7,8,8,9,13,7,7,7,9,8,8,9,12,7,12,7,12,8,7,10,12,9,9,6,6,8,8,6,6,6,6,6,6,6,9,8,9,11,8,6,6,6,6,6,12,7,6,6,6,9,7,7,6,6,6,6,6,11,9,6,6,6,6,6,7,9,4,4,4,4,4,4,4,4,9,9,9,9,7,7,7,7,7,11,7,7,8,8,8,8,8,8,9,8,9,9,7,7,11,11,7,12,8,8,8,8,8,7,8,8,8,8,8,13,12,8,8,8,8,7,7,7,9,5,5,5,5,5,5,5,3,3,7,7,11,7,8,8,8,6,6,6,6,6,6,6,6,6,6,6,10,11,6,7,9,4,4,4,4,4,4,9,9,8,9,8,8,8,7,7,5,5,5,5,5,5,5,5,5,5,3,3,11,7,7,7,9,6,6,11,8,10,6,6,6,12,8,8,7,6,6,8,7,4,4,4,4,4,4,4,4,9,10,9,9,8,10,9,11,8,5,5,5,7,6,6,8,7,4,4,4,4,8,7,7,8,7,8,8,5,5,5,5,7,7,8,8,8,6,6,6,6,6,10,8,9,13,6,7,6,6,8,7,8,4,4,4,4,11,8,8,8,10,5,5,8,7,8,13,8,7,6,8,6,9,7,8,7,5,5,5,5,5,5,3,3,7,8,9,6,4,8,10,10,8,12,9,13,2,7,5,5,5,5,5,7,7,10,6,6,6,6,6,6,6,8,4,4,9,8,8,8,14,8,8,8,9,8,5,5,5,5,5,3,3,9,6,6,6,6,10,12,6,6,6,6,6,6,6,4,4,4,4,11,8,7,8,8,8,5,5,3,3,3,3,7,7,6,8,6,8,11,7,6,6,6,7,4,8,11,9,10,5,5,5,3,3,3,7,7,8,9,8,15,9,6,6,6,6,6,6,11,11,4,4,4,4,4,7,9,9,10,8,7,5,5,5,5,5,5,3,3,8,6,6,6,6,6,6,6,6,6,9,7,4,4,4,4,4,9,9,8,8,10,13,5,5,5,3,17,7,7,7,7,7,8,6,8,13,6,6,6,6,6,6,6,6,4,4,4,9,10,8,8,8,5,5,5,5,3,7,7,7,8,8,6,6,6,8,8,8,9,10,8,4,8,10,9,8,8,8,9,13,10,5,5,5,5,5,5,5,5,5,5,3,3,7,8,9,9,7,7,7,10,9,9,8,9,8,8,8,6,6,6,6,6,6,6,6,6,6,6,6,6,8,12,6,6,6,6,6,6,6,6,6,12,4,4,4,4,4,4,4,4,4,4,4,11,8,8,9,9,10,8,9,7,7,5,5,5,5,5,5,3,7,8,7,6,6,8,6,6,10,4,7,8,9,12,8,7,7,5,5,5,5,5,5,3,3,7,14,7,9,8,8,6,6,8,12,12,6,6,7,7,10,4,4,4,4,4,9,9,14,9,13,8,7,5,5,5,6,6,6,7,4,8,7,5,5,5,5,5,5,5,5,3,3,7,7,7,8,6,6,6,6,6,6,12,6,6,6,6,4,4,9,9,8,8,11,7,7,7,5,5,5,3,9,8,6,6,7,4,4,4,4,4,4,8,8,11,5,5,5,7,7,7,9,6,6,6,6,6,6,9,8,4,4,4,4,7,12,9,8,8,8,7,10,10,5,5,5,5,5,5,5,3,11,14,8,7,8,8,6,6,6,6,6,8,7,6,6,6,7,6,8,9,4,4,4,7,8,9,7,9,7,7,9,8,5,5,5,5,5,5,5,5,5,11,3,9,7,7,12,14,8,6,6,12,11,8,6,6,6,6,6,6,6,6,6,15,7,4,4,4,16,9,9,9,8,9,9,9,9,9,8,8,8,13,11,8,5,5,5,5,3,7,6,6,8,8,8,6,6,7,10,7,4,4,4,4,9,7,8,7,7,7,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,3,7,7,7,9,6,6,6,6,6,8,8,7,7,9,6,6,6,7,6,6,6,6,6,15,4,4,4,4,4,8,8,7,8,12,9,8,8,8,8,8,9,8,8,10,8,8,8,8,16,9,10,2,5,5,5,5,5,5,5,9,7,6,8,9,4,4,4,4,4,7,8,8,8,9,8,11,10,5,5,5,5,3,7,8,6,6,6,6,6,8,6,6,6,6,4,12,10,12,7,7,7,7,7,7,7,5,5,5,5,3,3,7,7,10,8,9,7,6,10,7,6,6,4,4,8,9,7,9,9,9,9,8,8,8,8,10,5,5,5,5,5,5,8,7,6,6,6,10,6,7,10,7,4,4,4,4,4,4,4,12,9,10,7,7,10,8,10,5,12,9,6,6,6,6,6,7,6,4,4,4,10,9,9,8,7,7,5,5,5,5,5,5,3,3,13,7,7,9,7,7,7,8,9,9,7,8,6,6,6,6,6,6,6,6,6,6,6,6,6,7,13,9,15,15,4,4,4,4,4,10,10,9,8,9,8,8,9,7,8,7,8,5,5,7,6,6,6,4,4,4,7,8,11,8,5,5,5,5,5,5,5,7,6,6,6,6,6,6,9,11,10,7,4,4,4,9,8,8,5,5,5,5,5,9,9,6,6,6,6,6,6,6,9,9,4,4,4,4,8,8,8,9,9,8,8,8,13,2,4,2,7,5,5,5,5,5,5,9,9,6,6,6,6,10,8,8,8,6,6,6,4,4,9,8,10,8,9,8,8,8,9,8,8,5,3,3,3,11,6,6,6,7,6,6,6,4,4,9,8,5,5,5,5,5,3,11,8,6,6,6,6,6,9,7,4,4,14,10,9,8,12,8,8,8,11,15,8,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,11,11,11,10,10,7,7,3,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,5,5,5,5,5,5,5,5,3,3,3,7,11,7,7,11,11,7,8,9,10,7,7,9,9,9,9,7,7,10,8,13,8,8,8,8,11,10,6,6,8,10,11,14,14,6,6,6,6,6,6,9,11,7,7,6,8,12,11,11,6,6,10,6,6,6,6,6,10,7,7,6,6,11,6,6,6,11,8,9,7,6,10,11,9,10,11,7,11,8,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,6,6,8,9,10,9,6,6,6,10,6,6,6,6,11,10,11,10,9,8,7,7,7,7,11,14,8,10,9,9,8,8,7,11,8,8,8,11,11,10,10,9,10,8,11,10,8,11,9,12,8,10,8,11,8,9,9,11,11,10,11,13,8,7,8,8,9,7,8,8,8,8,7,8,2,2,2,2,2,2,2,4,4,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,4,2,3,3,3,3,3,3,3,3,8,6,4,4,4,11,7,11,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,5,5,5,5,3,3,3,3,8,7,7,8,8,4,8,7,7,7,9,7,8,9,8,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,6,3,3,3,3,3,3,3,3,4,2,2,3,3,3,3,3,4,5,5,3,8,8,6,9,4,4,10,7,3,3,3,2,5,3,3,3,3,3,3,3,3,3,3,3,3,4,3,2,2,2,3,3,3,3,3,4,10,2,3,3,3,3,3,3,3,4,2,3,3,3,3,3,3,3,3,2,2,3,3,3,5,2,4,2,6,2,2,9,5,5,3,3,3,3,3,3,3,5,5,5,9,8,7,6,6,11,4,4,4,4,4,4,4,4,6,6,7,7,11,8,8,6,5,11,2,3,3,3,3,3,3,3,3,3,3,3,3,3,4,2,2,3,3,3,3,3,3,6,4,4,4,4,3,3,3,3,5,7,2,3,3,3,3,3,8,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,6,4,4,4,4,2,2,3,3,3,3,3,3,3,4,3,3,3,3,3,3,3,3,3,3,3,3,4,2,2,3,3,3,3,3,3,2,3,3,3,3,3,6,3,3,8,10,3,4,4,1,1,1,1,1,1,1,8,9,10,7,7,1,1,3,8,7,7,8,8,8,1,6,1,1,6,3,3,4,7,3,5,5,4,4,4,4,4,2,7,7,8,12,3,4,5,1,3,4,4,10,4,3,3,3,8,7,7,2,2,2,2,2,2,2,2,2,12,9,20,7,5,5,5,9,13,5,5,5,5,5,3,3,3,16,5,5,5,13,7,8,8,11,8,7,9,7,11,12,9,9,8,8,11,10,14,7,12,10,11,13,7,9,11,17,17,14,13,7,8,7,10,10,7,16,13,7,8,17,12,9,8,6,7,10,6,6,12,6,8,10,8,8,8,6,8,6,14,6,6,6,13,6,10,6,6,7,14,8,6,6,10,11,10,9,9,7,7,6,6,6,9,9,7,9,10,9,13,12,4,4,4,4,4,4,4,4,4,6,6,6,8,8,6,8,9,10,9,7,10,10,8,7,8,7,10,12,9,8,15,8,7,8,8,7,7,15,13,7,10,9,14,18,16,7,24,7,8,10,11,16,8,14,7,9,9,9,11,13,19,14,15,14,11,7,13,9,10,7,13,9,10,11,12,8,9,2,3,5,8,7,4,4,10,5,3,3,3,3,3,5,4,4,4,2,2,2,2,2,1,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,2,2,2,3,3,3,3,3,3,3,3,3,3,4,2,12,5,3,8,10,15,6,7,2,3,2,5,5,12,2,5,5,5,5,2,2,5,5,12,9,5,2,2,9,5,5,12,12,5,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,9,12,5,8,8,9,5,5,5,8,19,7,16,15,14,9,9,9,9,7,11,11,11,7,14,10,10,5,5,5,5,5,5,5,5,5,15,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,9,9,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,14,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,15,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,5,5,5,5,5,12,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,9,9,12,9,9,12,12,12,15,7,11,7,14,11,18,13,8,18,15,18,12,14,12,8,8,8,8,9,9,9,12,7,10,10,8,8,12,12,12,7,12,12,9,7,7,7,7,7,8,15,12,9,10,10,7,10,10,13,11,10,9,22,11,9,8,8,8,8,8,13,18,13,9,15,19,9,7,7,10,7,7,7,11,8,13,17,7,7,10,10,10,7,20,16,7,7,7,7,7,7,11,21,12,12,13,11,14,16,8,8,13,11,7,7,13,7,7,14,15,15,6,6,6,6,6,6,6,6,6,6,13,10,18,6,6,6,6,6,6,6,6,6,11,8,8,12,12,11,11,8,12,9,9,9,13,13,9,9,9,9,9,9,6,10,12,6,6,6,6,17,11,7,7,7,7,14,14,12,6,7,7,6,6,15,10,13,10,6,8,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,13,9,9,15,13,6,12,12,6,19,11,10,7,7,16,8,19,17,9,9,9,9,9,6,6,6,10,8,16,8,6,6,9,6,6,6,6,6,6,6,6,8,8,8,6,7,6,6,6,6,6,6,6,6,6,6,6,14,6,6,6,6,20,6,9,6,14,9,9,9,6,9,8,8,12,9,8,8,8,8,7,8,12,7,8,8,8,6,8,6,6,6,6,6,6,6,9,8,8,6,6,13,9,12,13,12,14,13,12,11,11,6,8,8,8,6,13,12,11,11,12,6,11,12,11,13,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,15,6,6,6,6,6,6,6,13,6,6,6,6,6,6,6,6,6,6,6,6,6,8,8,8,8,6,18,6,12,13,13,13,9,10,15,9,12,6,6,6,6,6,6,6,6,9,15,10,9,10,13,9,19,8,18,17,10,10,8,8,6,6,6,6,6,6,10,14,8,16,16,9,8,15,8,8,10,12,14,7,7,8,8,7,7,7,7,8,13,13,11,9,9,9,12,10,17,8,11,9,7,7,14,8,14,14,7,7,7,7,7,7,14,7,7,7,7,7,10,10,8,14,7,7,7,7,8,8,8,8,8,17,9,7,15,7,8,12,7,9,14,7,7,7,9,13,8,14,7,16,18,13,15,14,12,13,10,15,9,7,7,7,10,13,15,15,9,9,9,9,19,11,7,11,11,13,8,8,8,8,7,12,19,17,9,9,13,7,7,7,9,7,7,7,12,13,15,10,8,8,14,15,12,13,13,8,12,14,7,11,7,14,15,13,12,8,8,8,8,11,13,15,15,8,13,12,8,8,8,13,10,16,14,11,8,8,12,12,9,15,15,12,12,13,8,8,9,12,13,9,8,8,8,8,8,8,8,8,8,8,8,11,12,11,7,14,7,13,13,13,12,18,16,7,12,11,10,10,15,9,9,9,21,7,7,7,11,16,8,8,11,11,7,7,7,7,7,19,7,7,7,7,7,7,7,7,7,12,8,9,12,14,11,9,9,9,22,12,3,8,8,15,4,2,2,5,5,3,3,3,3,3,3,6,6,4,4,4,12,7,10,2,3,3,3,3,3,3,3,6,7,3,7,5,14,4,4,7,8,10,4,1,3,3,6,2,4,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,4,2,2,5,3,4,2,2,2,2,2,2,11,5,5,5,11,5,5,3,5,5,5,5,11,14,13,9,11,9,12,8,11,11,8,11,16,9,9,7,10,9,12,8,15,6,7,6,6,13,10,8,11,8,6,6,6,12,16,6,11,7,8,9,18,6,6,9,4,4,6,13,6,6,6,6,8,8,9,16,7,7,14,7,8,8,8,7,7,7,7,7,7,15,13,7,10,7,7,10,12,16,15,7,9,9,14,11,11,10,9,10,8,12,7,8,7,7,10,12,7,12,8,7,2,3,3,3,3,3,3,3,3,3,3,5,3,3,5,5,5,10,4,8,7,10,3,3,3,3,3,3,3,3,3,3,1,3,3,3,3,3,3,3,7,4,5,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,6,6,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,9,8,2,2,2,8,12,7,7,5,5,5,5,5,5,5,5,5,5,5,5,8,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,5,7,11,9,8,8,8,7,8,9,7,7,9,7,7,7,10,7,7,10,9,10,6,6,6,6,6,6,15,7,8,9,9,8,6,6,10,9,6,8,13,9,7,6,6,6,6,6,6,12,6,6,7,6,7,6,6,6,10,10,7,6,6,6,4,4,4,4,4,4,4,4,4,4,4,4,4,4,6,14,6,6,7,7,9,6,6,6,6,9,9,8,9,10,9,8,9,12,7,7,7,8,7,10,12,11,9,10,7,7,7,9,10,10,8,12,9,7,7,9,8,8,8,10,7,7,8,9,9,7,7,7,8,2,4,6,3,4,2,3,3,3,3,2,3,3,3,3,3,3,3,3,4,4,4,4,5,5,3,3,3,3,3,3,3,3,5,8,6,4,7,3,3,3,3,3,3,3,12,3,3,3,3,3,3,4,4,2,3,5,3,4,7,3,3,3,3,3,3,4,3,3,3,3,3,3,3,4,3,3,6,4,3,4,2,2,2,5,3,3,3,3,3,5,4,4,4,4,7,6,8,9,2,2,2,2,3,3,3,5,7,2,3,3,8,7,7,2,2,8,5,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,8,8,7,7,6,10,6,9,7,11,4,6,8,8,7,8,4,5,5,5,3,3,11,8,9,6,6,8,7,4,4,7,8,7,2,2,3,3,3,3,4,3,3,3,3,3,3,3,3,7,2,2,5,3,3,2,3,3,3,3,3,3,4,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,12,5,5,3,3,3,5,10,12,6,15,4,6,6,7,14,9,3,3,3,3,3,8,2,2,3,5,3,3,3,3,3,3,8,8,8,7,5,8,4,6,11,2,2,6,7,2,9,8,5,5,3,3,5,5,7,7,6,6,10,6,6,8,9,7,4,4,4,4,7,6,6,7,7,10,9,8,11,8,3,3,3,3,3,4,4,2,3,3,3,3,3,7,6,2,5,6,7,6,4,8,9,11,2,2,3,3,3,3,3,3,3,2,2,5,3,3,3,3,3,9,9,6,4,8,7,7,5,9,8,6,8,7,8,5,5,5,5,5,3,3,3,16,8,7,7,7,8,7,7,7,7,9,6,9,6,10,7,7,7,6,10,8,9,11,11,8,4,4,10,8,8,6,9,6,11,8,8,8,15,7,8,9,5,3,3,3,3,3,5,11,2,2,3,8,9,10,3,2,2,2,2,2,2,3,6,4,2,2,3,3,3,3,3,3,3,3,3,3,4,4,2,3,3,3,3,3,3,3,11,5,3,3,3,3,3,3,3,3,6,7,4,4,2,3,3,3,3,3,3,3,3,12,7,4,12,4,6,5,4,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,2,3,3,3,3,3,3,3,3,4,4,11,10,6,4,6,10,8,3,3,3,3,3,3,3,3,5,4,4,4,2,2,2,2,2,2,2,2,5,3,4,4,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,10,5,5,5,5,5,5,3,3,3,3,3,3,3,3,7,8,8,7,13,12,10,10,8,8,7,7,9,12,11,6,6,8,8,9,7,7,7,10,15,10,4,4,4,4,4,11,8,8,9,7,9,14,14,12,2,2,2,2,2,2,2,3,3,3,3,3,2,2,12,5,5,5,8,11,10,7,9,3,8,7,3,15,13,11,4,4,2,2,2,19,7,5,5,3,3,3,3,3,3,3,5,22,18,6,14,17,4,4,19,16,18,2,3,3,2,3,2,3,3,6,4,2,3,3,2,5,3,3,3,3,3,3,3,9,9,2,3,2,2,2,3,3,3,5,7,14,7,7,12,9,13,6,11,6,10,9,7,7,8,12,12,8,8,8,10,7,7,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,5,8,10,7,8,11,8,12,9,4,7,7,9,13,2,3,3,3,3,3,3,2,3,3,3,1,2,2,3,3,3,3,3,3,5,2,2,5,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,8,4,4,4,3,2,3,3,3,3,5,2,2,2,2,5,5,5,5,3,3,3,3,3,3,3,3,3,7,7,7,7,7,8,8,8,8,8,12,9,8,8,9,8,6,17,6,6,6,8,8,6,6,6,6,6,6,6,6,6,6,6,7,4,4,8,8,9,9,9,7,7,7,7,7,7,7,9,9,9,7,8,8,8,10,7,13,10,8,9,3,3,5,13,3,3,3,3,3,7,7,6,6,10,13,11,11,8,8,9,8,9,9,10,10,10,11,10,10,13,13,16,15,11,12,9,9,10,9,11,10,9,9,14,7,8,3,10,7,7,3,2,2,2,5,3,3,3,3,3,3,3,3,3,3,3,3,6,7,2,2,3,3,3,3,3,3,3,3,4,11,6,7,4,6,2,2,3,3,3,1,3,3,3,3,3,3,6,4,4,2,2,2,3,3,3,3,4,4,6,6,6,6,5,4,4,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,9,11,6,10,9,12,7,7,11,14,9,7,12,3,3,7,12,11,12,7,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,9,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,3,3,3,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,11,5,5,5,5,5,5,5,5,11,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,5,5,5,5,5,5,5,3,3,3,5,5,5,5,5,5,5,5,5,5,5,3,3,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,5,5,5,5,5,5,5,5,5,5,5,5,5,3,10,3,3,3,11,3,5,9,11,8,12,14,9,7,8,7,7,11,11,7,7,10,9,8,10,9,7,7,7,7,7,7,8,8,7,11,8,8,8,7,7,10,8,7,13,12,7,17,10,8,8,11,7,11,11,14,7,11,7,8,6,9,20,8,7,9,16,7,10,6,11,10,8,9,7,16,11,11,9,8,9,8,8,8,11,8,15,8,8,9,7,8,8,11,10,7,5,7,10,10,15,7,7,7,8,7,8,8,10,11,10,10,10,11,11,7,8,6,8,8,8,10,6,8,6,6,7,8,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,16,6,15,6,7,11,11,7,9,10,11,13,10,6,16,8,10,12,11,6,6,6,6,6,6,6,10,6,10,7,7,7,7,11,7,11,6,6,6,6,6,6,17,7,7,6,6,12,22,6,6,6,6,6,8,6,6,6,6,7,6,6,5,6,6,8,11,6,9,14,11,9,11,7,7,8,6,6,6,8,10,9,6,6,6,6,9,7,6,6,6,6,6,15,6,4,4,4,6,4,17,8,11,6,6,9,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,6,6,6,6,10,6,10,6,6,6,6,12,8,6,6,6,6,6,6,6,6,6,9,6,6,6,6,18,6,6,6,8,9,10,7,8,9,10,11,7,13,6,8,8,6,6,14,7,7,7,7,10,7,14,9,6,6,9,15,9,7,14,6,11,14,13,7,12,8,7,7,7,7,7,12,7,10,9,16,6,8,6,5,17,6,8,10,4,6,4,10,15,17,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,8,4,4,11,7,4,4,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,19,17,6,10,11,6,6,6,6,18,6,6,11,4,4,4,5,6,6,6,9,5,6,4,6,6,4,6,6,6,6,10,6,6,4,6,6,10,6,10,6,6,6,6,11,6,6,10,6,6,8,6,6,6,8,6,11,4,11,9,10,9,11,4,8,4,11,12,7,9,8,6,7,7,8,12,12,11,13,10,11,7,7,7,9,7,11,10,7,7,7,16,11,10,11,17,9,9,8,8,7,7,7,9,7,7,7,14,7,13,9,11,10,14,10,10,12,11,10,7,10,5,14,8,8,8,9,7,8,7,7,9,8,7,8,7,7,7,7,7,7,7,11,8,10,8,7,8,14,11,8,9,9,9,8,24,10,10,12,7,7,15,11,8,8,12,11,8,9,9,7,8,9,10,11,10,11,7,12,7,7,11,9,8,14,13,12,8,11,10,8,8,7,7,14,9,10,8,9,11,7,14,8,8,13,8,8,12,7,10,14,14,11,9,10,9,9,7,7,11,11,13,9,13,5,5,5,7,9,5,11,12,14,8,7,7,11,10,9,7,8,8,7,10,11,11,5,5,7,5,5,5,7,7,15,7,7,8,7,15,12,12,10,7,8,7,11,7,7,7,23,11,8,8,11,10,7,8,11,7,19,7,7,6,9,9,9,11,3,4,7,8,6,6,4,10,8,2,2]),W6=new Uint16Array([0,0,0,1,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,1,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,12,1,1,1,1,1,17,1,1,1,12,1,12,1,12,13,1,1,1,1,12,1,12,1,1,1,1,1,14,21,1,1,1,1,1,1,1,19,12,1,1,1,1,1,1,1,20,1,1,1,16,1,18,1,1,15,1,1,1,1,12,1,1,1,1,1,1,22,1,1,1,12,1,1,1,1,1,1,1,1,1,12,12,12,12,12,12,12,12,12,12,12,12,1,24,25,26,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,1,1,12,12,12,12,1,32,0,0,0,1,1,1,1,35,34,1,1,1,1,1,33,1,1,1,1,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,38,0,0,0,0,39,40,0,0,0,41,0,12,1,1,12,1,1,1,1,44,45,45,45,44,45,44,44,46,45,44,45,44,44,44,44,44,44,46,44,44,44,44,44,44,45,47,47,45,44,44,44,44,44,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,50,52,50,50,50,52,50,51,50,53,50,51,51,50,50,50,51,53,51,53,50,51,51,12,55,55,54,56,51,53,50,50,48,49,57,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,60,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,67,1,12,1,1,66,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,78,0,0,0,0,0,0,0,0,0,0,0,0,0,76,79,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,77,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,12,1,1,1,1,89,1,91,1,1,1,1,1,1,1,1,94,1,1,1,1,1,1,1,1,1,1,1,1,0,1,97,97,1,1,12,1,100,1,1,1,1,1,1,1,98,1,99,1,101,1,1,1,1,1,102,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,110,111,1,1,1,1,1,1,113,113,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,121,122,1,1,1,1,1,1,1,1,1,1,1,1,1,122,1,1,1,1,1,1,1,1,1,1,122,1,1,1,1,1,1,1,1,1,126,123,125,120,1,124,1,1,114,1,1,1,1,117,1,127,1,1,1,1,1,119,1,108,1,109,1,12,128,106,1,112,1,1,1,1,1,107,115,1,12,12,12,118,116,1,1,1,1,1,1,0,0,0,0,1,12,12,1,1,1,1,1,12,134,1,1,1,1,1,1,1,1,1,1,1,12,136,1,1,1,1,1,1,1,1,137,138,12,12,135,133,45,45,140,50,50,139,142,141,1,1,0,0,0,0,0,0,0,0,0,0,0,0,145,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,143,0,0,0,0,1,0,144,132,1,0,1,12,12,1,1,1,1,1,0,0,0,0,0,0,0,1,148,147,20,1,1,12,12,1,20,12,12,1,1,1,1,1,134,1,1,152,1,1,1,1,153,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,1,1,136,1,1,152,1,1,1,1,153,1,1,134,1,1,1,152,1,1,1,1,153,1,1,134,1,1,1,1,1,1,1,1,134,1,1,1,1,1,1,1,1,1,1,1,160,1,1,1,152,1,1,1,1,1,153,1,1,160,1,1,1,1,1,1,1,1,1,1,134,1,1,1,1,152,1,1,1,1,153,1,1,1,134,1,1,152,1,1,1,1,164,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,1,167,1,1,160,1,1,1,1,1,152,1,1,1,1,1,153,1,1,160,1,1,1,1,1,152,1,1,1,1,1,153,1,154,158,158,12,1,12,166,1,1,1,1,1,158,158,158,154,1,1,1,157,158,161,165,1,1,1,1,157,157,1,1,156,154,154,157,170,156,170,1,1,168,1,156,155,157,1,1,1,1,157,1,159,1,1,1,12,1,162,1,162,1,1,1,162,161,163,169,156,154,1,1,1,1,1,1,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,173,172,173,172,172,172,172,174,174,172,173,172,173,172,172,12,12,12,12,12,1,12,12,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,193,1,1,1,1,12,199,200,201,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,151,1,1,1,1,1,1,1,1,1,1,1,196,1,1,1,184,1,210,1,1,1,208,1,1,205,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,12,1,1,1,1,1,1,1,1,190,1,1,1,186,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,182,1,1,1,1,1,1,1,191,1,1,1,1,195,1,1,1,1,171,1,1,189,1,1,1,192,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,180,1,12,1,1,12,1,1,1,1,183,1,1,1,188,1,203,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,209,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,194,1,1,1,1,1,12,1,1,1,1,1,1,1,1,176,12,1,1,1,178,12,1,1,1,1,1,1,1,198,1,1,1,1,1,1,1,1,1,1,177,1,1,1,1,1,1,204,1,1,1,181,1,1,1,187,1,12,1,1,12,1,1,1,1,1,1,1,1,1,1,191,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,175,1,1,1,1,1,1,1,1,1,1,185,1,1,1,1,1,1,1,1,1,1,1,206,1,1,1,1,1,1,1,1,1,1,1,1,1,207,1,1,12,1,1,1,1,179,1,1,1,185,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,1,1,197,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,12,1,1,1,1,1,1,1,1,1,202,1,1,12,1,1,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,220,0,0,0,0,0,221,0,0,0,0,0,0,1,12,1,1,1,225,1,1,1,0,226,223,224,1,1,1,1,1,1,231,1,233,1,1,1,1,1,1,1,1,1,1,1,229,1,1,1,1,1,235,1,1,12,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,234,1,1,1,12,1,1,1,1,230,1,1,1,228,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,232,1,1,1,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,241,13,1,1,1,12,12,238,239,1,1,1,1,240,1,1,12,1,1,1,1,1,1,1,242,1,1,12,16,1,1,1,1,1,1,1,243,1,1,1,12,12,1,1,1,1,1,243,12,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,1,252,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,256,256,1,0,0,0,0,0,1,12,0,0,0,0,0,0,0,0,172,261,262,1,12,1,1,1,1,12,264,1,1,263,1,1,266,1,1,1,1,1,1,1,1,1,0,1,1,1,271,272,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,12,1,0,1,0,0,0,0,1,0,1,0,1,1,1,1,1,0,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,1,12,0,283,0,0,284,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,1,12,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,60,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,1,1,1,0,308,0,0,0,0,0,0,0,0,0,310,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,12,1,1,1,1,1,1,1,1,1,12,1,1,1,1,1,327,327,328,327,0,185,1,1,13,323,1,321,0,0,0,0,1,0,0,0,324,1,1,329,1,205,1,1,1,1,1,322,1,319,1,325,1,317,1,326,1,318,1,1,1,1,1,1,1,12,1,1,1,12,1,12,320,320,1,1,1,316,184,1,1,12,1,1,1,1,1,1,1,1,1,1,12,1,1,1,1,12,1,1,1,1,315,1,0,0,0,1,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,332,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,266,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,372,372,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,364,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,0,1,340,351,1,1,339,374,1,345,1,1,337,369,1,1,355,336,341,1,1,1,348,379,357,1,1,1,1,1,1,358,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0,367,371,0,0,79,1,1,0,365,342,378,343,346,353,1,368,0,1,0,79,362,360,1,0,0,1,1,1,0,0,0,0,381,1,1,352,1,79,1,0,1,1,1,384,1,0,0,79,359,0,1,338,1,1,1,0,1,1,361,1,0,1,1,1,0,1,386,349,1,1,0,1,0,0,377,0,1,1,1,79,370,1,1,366,363,1,1,1,1,1,1,1,1,1,1,1,344,1,1,1,1,1,1,1,1,1,1,1,376,0,79,1,1,1,1,0,1,1,1,1,1,1,0,0,1,1,380,1,1,1,0,0,383,0,0,0,1,356,1,0,79,382,1,0,0,0,0,385,1,1,0,0,1,0,1,0,354,0,350,0,1,1,1,0,1,1,0,373,347,375,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,0,0,0,1,0,0,1,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,1,0,0,0,0,0,1,1,1,400,400,1,1,12,12,1,400,1,1,12,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,1,1,1,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,412,1,1,0,1,1,1,1,205,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,430,430,1,1,0,0,317,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,442,1,441,1,1,1,1,1,1,1,1,445,1,12,12,1,1,1,1,1,12,1,1,1,1,453,1,1,1,455,1,1,1,1,1,1,1,1,1,1,452,1,447,1,1,1,1,435,1,1,1,1,1,1,1,1,448,12,1,1,1,1,454,1,1,1,449,444,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,317,1,433,1,1,12,451,1,1,317,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,437,1,1,1,1,1,1,1,1,1,1,1,454,1,1,1,1,317,1,450,1,1,1,439,1,1,1,1,1,440,1,456,443,1,1,1,1,1,438,1,1,1,1,1,1,1,1,1,434,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,446,1,1,1,1,1,1,1,12,1,1,1,1,1,436,1,1,1,1,1,1,1,220,457,1,1,1,1,1,12,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0,1,0,0,1,0,1,0,1,1,0,0,0,462,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,12,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,466,0,466,466,466,466,466,466,466,0,466,466,466,466,466,1,466,466,466,0,466,466,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,471,470,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,475,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,468,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,469,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,477,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,466,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,474,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,467,0,0,478,473,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,472,0,0,0,0,0,0,0,0,0,0,0,0,0,466,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,467,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,466,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,476,0,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,12,1,1,1,1,1,1,1,1,1,1,1,1,488,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,198,198,1,492,1,1,1,491,1,1,1,1,487,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,489,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,493,1,1,490,1,1,1,1,1,1,1,1,372,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,494,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,1,0,0,0,0,1,0,1,0,0,0,0,0,0,0,1,0,0,0,505,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,1,0,1,0,0,0,1,0,0,0,1,0,0,0,0,1,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,0,0,0,0,0,0,1,0,1,0,0,12,1,507,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,1,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,12,12,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,1,1,0,1,0,0,0,0,0,0,0,1,0,0,1,0,1,1,1,1,0,0,0,1,0,0,0,1,60,1,1,12,12,12,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,526,1,1,1,1,1,1,1,527,1,1,1,1,1,1,1,525,1,1,12,1,529,239,1,1,12,12,1,1,12,1,12,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,533,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,1,1,0,0,0,1,0,0,0,1,0,0,0,0,0,1,1,1,1,1,0,0,0,0,0,1,1,1,539,1,1,1,1,1,1,1,1,1,1,1,1,1,1,132,1,12,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,107,1,1,12,1,1,1,12,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,548,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,1,1,0,0,0,1,1,1,1,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,144,1,1,1,228,1,1,12,30,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,1,572,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,577,1,220,1,328,1,1,1,1,1,1,1,1,1,0,0,578,1,1,1,1,0,580,0,79,0,579,0,1,1,1,0,1,1,1,1,1,1,12,0,0,0,0,1,0,0,0,0,0,0,586,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,582,582,0,585,583,582,582,582,582,582,587,582,582,591,582,582,582,582,582,582,582,582,582,582,588,585,582,582,585,582,582,582,582,582,582,582,582,582,582,582,582,582,583,582,582,582,582,582,589,582,582,582,582,582,582,0,0,0,1,590,1,1,1,1,584,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,12,595,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,1,12,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,12,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,12,1,1,12,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,96,65,280,306,411,535,0,4,68,236,254,282,307,334,388,413,0,499,519,536,597,9,0,61,88,398,409,429,575,0,497,518,532,612,0,30,6,0,461,500,602,560,70,0,7,285,255,389,463,416,538,79,598,0,576,309,418,465,9,105,288,506,6,30,0,311,79,391,79,483,10,6,131,248,275,0,613,509,0,563,0,64,6,6,251,95,2,432,399,410,596,0,6,0,6,286,103,6,561,501,540,0,464,390,273,287,8,71,104,599,543,392,312,300,419,146,74,290,546,510,601,564,335,330,479,6,75,149,11,0,249,522,547,565,514,551,570,611,36,6,260,295,333,304,218,30,528,553,218,42,216,265,296,305,406,423,481,274,0,73,562,0,403,417,299,79,247,79,0,581,545,504,292,421,79,393,387,0,0,0,9,555,571,217,0,424,407,531,516,573,615,85,218,43,297,396,425,569,0,511,293,276,79,215,80,28,390,30,6,394,331,303,604,592,524,550,513,0,258,81,30,405,422,0,30,426,0,219,593,517,9,408,427,218,248,86,222,594,574,557,482,428,397,250,227,87,59,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,620,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,414,0,0,0,0,0,0,0,0,82,0,129,0,0,84,549,0,0,0,0,0,0,0,27,0,552,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,414,0,0,0,0,503,0,257,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,294,0,0,0,0,0,0,0,617,0,0,0,0,0,616,0,0,0,0,0,0,0,0,0,0,0,0,0,0,395,0,0,0,484,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,69,0,0,0,0,0,0,495,0,0,0,0,0,0,404,0,0,0,0,0,0,0,0,0,0,0,0,0,211,0,0,0,0,0,0,0,0,0,0,515,0,0,0,0,0,0,0,0,0,0,0,0,496,0,0,0,0,0,0,0,0,0,0,0,0,0,0,269,281,0,0,0,0,0,530,277,0,0,0,0,0,0,0,0,0,0,0,0,0,512,0,0,0,0,0,0,0,0,0,0,0,458,0,0,0,314,0,0,0,0,0,0,253,0,0,0,0,0,0,23,0,0,0,0,568,0,0,0,0,600,521,0,0,0,0,244,0,0,0,0,0,0,0,0,0,480,0,0,0,0,0,62,0,0,0,267,58,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,246,0,0,0,0,0,279,610,0,72,0,0,0,0,0,0,0,0,0,619,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,150,0,278,0,0,0,0,0,0,567,0,0,0,0,0,0,523,0,0,0,0,0,0,0,0,0,566,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,63,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,213,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,84,0,502,0,0,0,0,0,554,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,84,83,0,0,0,0,0,0,0,0,0,0,0,0,486,0,485,0,0,0,0,0,0,0,0,0,0,259,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,459,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,289,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,537,0,0,0,0,0,0,0,0,298,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,69,237,0,0,0,0,0,0,0,0,0,0,84,0,606,0,0,0,0,0,0,0,0,0,0,0,0,245,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,609,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,520,0,0,0,84,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,498,0,614,0,0,431,0,0,0,0,0,0,0,0,0,0,0,0,402,0,0,0,544,0,93,0,0,0,0,0,0,0,0,0,0,31,0,0,0,0,0,0,29,92,0,0,0,0,0,0,0,0,0,0,0,0,291,0,0,0,214,0,0,0,0,0,0,558,0,270,0,0,130,0,0,0,0,0,559,0,0,0,0,0,0,0,414,420,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,313,0,0,0,0,0,5,0,0,0,0,0,0,0,301,0,0,0,0,0,0,0,0,0,0,0,0,0,534,0,0,0,415,0,0,401,0,0,0,0,0,0,603,0,0,0,541,0,0,90,0,542,0,0,0,0,0,0,0,0,0,0,508,460,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,268,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,414,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,608,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,607,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,618,0,0,0,0,0,556,0,0,0,0,0,0,0,0,0,0,302,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,605,0,0,212,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,623,623,623,623,623,623,623,622,624]),FE="orgmilcomschnetedugovdrrformsfeedbackofficialaccoorgmilschnetgovmagazinemediaunioncargopilotgroupcaarespressworksaerodromeworkinggroupair-traffic-controlaircraftaccident-preventioneducatormarketplaceambulanceinsurancecateringairportrepbodyenginesoftwaremodellingair-surveillanceconsultingchartertrainermaintenanceservicesdesignflightskydivingfreightassociationstudentgroundhandlingdgcafuelclubtaxicrewshowballooningexpresstraderbrokerauthoragentsairtrafficjournalistsafetyconsultantmicrolightaccident-investigationparachutingequipmentproductionfederationrecreationscientistnavigationengineertradingglidingleasingresearchpassenger-associationentertainmentparaglidinghangglidingaerobaticrotorcraftemergencycertificationgovernmentaeroclubexchangelogisticschampionshiphomebuiltcouncilconferencecontrolairlinecivilaviationjournalorgcomnetedugovcoorgcomnomnetobjofforgcomnetuwukiloappsframerorgmilcomnetedugovcoradioorgcomnetcommuneedogpbcoitgvorgedugov*spreviewfrontendrelayononstagingupid*mtls*privatelinktypedreamdeveloperbravemochawindsurfaivenmirenupsunwnextbegetngrokclerkwale2bwebcsbrunputerflutterflowspawnbaseshiptodaymagicpatternsnetlifyondigitaloceanrailwayhostedclaudehasurabotdashvercelgithubluyanigadgetreplitcloudflaretelebitedgecomputeevervaultdetaexponyatnoopencrpplxzeaburwasmerframerzeropsconvexmedusajsspritesonherculeseasypanelstreamlitsnowflakemesserliloginlinehackclubnorthflankbase44corespeedadaptableleapcellngrok-freeclerkstagelovableon-fleek*us-west-3ap-south-2us-central-2us-central-1eu-central-1ap-south-1us-west-2us-east-2eu-north-1ap-north-1us-west-1us-east-1*rcloudintsegorgmilcomgobbetnetintedugovturmusicasenasamutualcoopip6uriurnin-addre164homeirisgovdixdaemoncloudnssthwien*inexexkunden4accogvormymyspreadshop4lima2ixortsinfofuturecmsfuturehosting12hpprivfuturemailinglima-cityfunkfeuer123webseitednshomemelmyspreadshopcloudletswasantqldvicactnswtascatholicwasaqldvictasvpsidwasantozqldorgcomvicasnactnetedugovnswtasconfhrsncomairflowlambda-urltransfer-webappairflowtransfer-webapptransfer-webapptransfer-webapp-fipstransfer-webappeu-west-3ap-south-2eu-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1mx-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1ap-southeast-7us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2ap-southeast-5us-gov-west-1us-gov-east-1ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1privatenotebookstudiolabelingnotebookstudionotebooknotebook-fipslabelingnotebookstudionotebook-fipsnotebookstudio-fipsnotebook-fipsnotebookstudionotebook-fipsnotebookstudioeu-west-3ap-south-2eu-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2experimentsus-gov-west-1us-gov-east-1ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1onrepostsagemakercopporgmilcompronetintedugovbiznameinfoshoprsorgmilcomnetedugovbrendlyresolvenzauscotvstoreorgcomnetedugovbizinfoidacaicoittvorgmilcomschnetedugovinfocloudezproxyacmymyspreadshopkuleuvenwebhostingtransurl123websitecloudnsinterhostsolutionsddns5476103298edgfacbmlonihkjutwvqpsryxzbarsycoororgcomedumyftpno-iporxcloud-ipfor-somemmafanfor-morewebhopselfipjozidyndnscloudnsdscloudfor-thefor-betteractivetrailcoeconorestooteorgcomeconeteduassurmoneyafricaarchitectesrestaurantloisirstourismavocatsinfoagrounivcoorgcomnetedugovtvdeportesaludtksatorgmilcomwebgobnetinteducienciaboliviarevistacooperativaempresanombreindustriamusicapatriamedicinademocraciapoliticapuebloindigenaplurinacionalarteblogwikiinfoagrotransportenoticiasprofesionalacademiaeconomiaecologiamovimientotecnologianaturalsimplesitecepesebamapadfmgalampbacscpirngorotomtrjspaprrprrsesmscepesebamapadfmgalampbacscpirngorotomtrjspaprrprrsesms*biaamfmtcmptvfeirasampajampanatalbelemananiradiog12medindfndbmdtrdthepoaggfjdfdefinfenflegsegongengcngorgzlgslglogppgmillelqslcimcomnomadmjabimbbibbsbabcrectecsjcetcpscpvhudieticriapipsiecnbiorioecogeoteoodoproatoartfstmatvetdetbetnetcntnotfotgrueduajuespappreptmpemparqsrvadvdevgovntrturagrjorfarjusmusdesvixxyzcozfozslzbhzmaringasantamariacampinagrandegoianiasorocabafloripasaobernardocuritibaboavistarecifeaparecidasaogoncasalvadorcuiabamorenamacapalondrinacontagemsocialfortalmaceioleilaoosascoriobranconiteroi9guacutcheblogflogvlogwikitaxicoopmanauspalmascaxiasjoinvillebaruericampinassantoandreribeiraoriopretoweorgcomnetedugovv0windsurfshiptodaycloudsitecoaccoorgnetgovofmilcomgovmediatechzacoorgcomnetedugsjgovmydnspenfnlabnbmbgcbcqconcontnuyksknsmyspreadshopno-ipawdevboxbarsyonidatemfuinabusavinstanceseceuguukussryzespawncsxcloud-ipmyphotosfantasyleaguetwmailcleverappsscrappingccwucloudnsftpaccessgame-serverccgovobjectsrmalpgcust*svcalp1aeappenginermalpgmyspreadshop4lima2ixsquare7cloudscale123websitefirenet12hpflowgotdnslinkyard-cloudcloudnslima-citydnskingobjectstorageedaccogoorusorgcomnetinteduaéroportxn--aroport-byaassogouvcomilgobgovcloudnses-1eu-west-1us-east-1euvipit1eurarubait1s3lbwebsites3websiteru-spbru-mskelasticcsrunstnukukcaukusnl-ams-1fr-par-1fr-par-2functionsnodess3ddlwhmrdbfnck8sifrs3-websitecockpitscblmgdbdtwhkafkpubprivs3ddlwhmrdbk8sifrs3-websitecockpitscblmgdbdtwhkafks3ddlrdbk8sifrs3-websitecockpitscblmgdbdtwhkafkk8sscalebookpl-wawfr-parnl-amsbaremetalsmartlabelinginstancesdechk2kuleuvenlaravelvoorloperurownoxazapscwhstgrvaporobservablehqelementorantagonistreclaimjoteluluencowaydiademjelasticmatlabmagentositetrendhostingaxarnetperspectajenv-arubajelejoteravendbemergenttrafficplexconvexkeliwebserveboltbegetcdnstaticson-rancherprimetelonstackitunison-servicesdnshomelinkyardbarsyjelecloudnscocomnetgovmycn-northwest-1cn-north-1s3s3-accesspoints3-websites3s3-accesspointrdsdualstacks3-deprecatedemrappui-prods3-websiteemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apis3s3-accesspoints3s3-accesspointrdsdualstackemrappui-prods3-websiteemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicn-northwest-1cn-north-1cn-northwest-1ebcomputeelbcn-north-1airflowcn-northwest-1cn-north-1oncn-northwest-1cn-north-1amazonawssagemakeramazonwebservicesdirectasgdsdhehahljlnmhbacscahqhshhihnlnynsnmofjbjzjxjtjhkcqtwgsjssxnxjxgxxzgz網絡网络公司orgmilcomnetedugovxn--55qx5dcanva-appsxn--io0a7iquickconnectcanvasitekhsjxn--od0algmyqnapcloudsrvrlessclustersrealtimestorageleadpagescarrdcrdorgmilcomnomnetedugovhidnssupabaserdpareplmypiumsoxmitotaplpagesfirewalledreplitowodevwebview-assetsvfswebview-assetss3s3-accesspointdualstackemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9eu-west-3ap-south-2eu-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1ap-southeast-7us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2ap-southeast-5ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1s3s3-accesspointdualstackemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3s3-accesspointdualstackanalytics-gatewayemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3s3-accesspointdualstackemrappui-prods3-websiteemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apis3s3-accesspointdualstacks3-deprecateds3-websites3-object-lambdaexecute-apis3s3-accesspoints3-websites3-accesspoint-fipss3-fipss3s3-accesspointdualstackemrappui-prods3-websites3-accesspoint-fipsaws-cloud9s3-fipsemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3s3-accesspointdualstackemrappui-prods3-websites3-accesspoint-fipss3-fipsemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apis3s3-accesspointdualstacks3-deprecatedanalytics-gatewayemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9vfss3s3-accesspointdualstackemrappui-prods3-websiteaws-cloud9emrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9eu-west-3ap-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1mx-central-1me-central-1ca-central-1il-central-1ap-northeast-1us-northeast-1ap-southeast-1me-south-1af-south-1ap-south-1ap-southeast-7us-west-2eu-west-2ap-east-2us-east-2ap-southeast-2ap-northeast-2ap-southeast-5us-gov-west-1us-gov-east-1ap-southeast-6ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1mrapaccesspoints3s3-accesspointdualstacks3-deprecatedanalytics-gatewayemrappui-prods3-websites3-accesspoint-fipsaws-cloud9s3-fipsemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3s3-accesspointdualstacks3-deprecatedanalytics-gatewayemrappui-prods3-websites3-accesspoint-fipsaws-cloud9s3-fipsemrstudio-prods3-object-lambdaemrnotebooks-prodexecute-apicloud9s3eu-west-3ap-south-2eu-south-2computes3-ap-northeast-2elbrdss3-ap-east-1s3-sa-east-1s3-us-gov-west-1s3-eu-central-1s3-ca-central-1eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3s3-website-us-west-2s3-website-eu-west-1s3-external-1eu-central-1me-central-1ca-central-1il-central-1s3-us-west-1s3-eu-west-1s3-website-sa-east-1s3-website-ap-southeast-2ap-northeast-1ap-southeast-1s3-us-west-2s3-eu-west-2me-south-1af-south-1eu-south-1ap-south-1us-west-2eu-west-2us-east-2s3-website-ap-southeast-1s3-1s3-globals3-ap-northeast-3eu-north-1airflowap-southeast-2s3-us-gov-east-1s3-fips-us-gov-east-1s3-me-south-1s3-ap-south-1ap-northeast-2s3-website-us-west-1ap-southeast-5s3-eu-north-1s3-ap-southeast-1s3-website-us-gov-west-1compute-1s3-eu-west-3us-gov-west-1s3-website-ap-northeast-1us-gov-east-1s3-fips-us-gov-west-1s3-website-us-east-1s3-ap-southeast-2ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1s3-us-east-2s3-ap-northeast-1authauthauth-fipsauth-fipseu-west-3ap-south-2eu-south-2eu-central-2ap-southeast-3ap-southeast-4ap-northeast-3eu-central-1mx-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1ap-southeast-7us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2ap-southeast-5us-gov-west-1us-gov-east-1ca-west-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1rservicesbuilderstg-builderdev-builder*ociocpocsdemoinstanceeu-west-3eu-south-2ap-southeast-3ap-northeast-3eu-central-1me-central-1ca-central-1il-central-1ap-northeast-1ap-southeast-1me-south-1af-south-1eu-south-1ap-south-1ap-southeast-7us-west-2eu-west-2us-east-2eu-north-1ap-southeast-2ap-northeast-2ap-southeast-5us-gov-west-1us-gov-east-1us-west-1eu-west-1us-east-1ap-east-1sa-east-1previeweu-4us-4us-1eu-1us-2eu-2us-3eu-3appspaasrag-cloudrag-cloud-chjcloudjcloud-ver-jpcdemonodebalancermembersipeuxvsoncillaocelotonzayalilynxsphinxfentigercustomercaracalo365cloudstaticxendevapp001testcode-builder-stgplatformapimediasiteprojedrydpagesjsu2u2-localx0desazacncoitrueu4uhkukgrbrushatenadiarymyspreadshopfrom-flfrom-wvwebspace-hosttheworkpchatenablogservesarcasmapplinzisakuratanwixsiteappchizigiizeis-into-carsdnsiskinkyadobeaemcloudis-a-therapistpgfogmyvncdojinis-an-actress1kappfldrvkozowqa2jpnmexprgmrfirewall-gatewaydynnscafjsfbsbxooguyxnbayfrom-gawoltlab-demois-a-anarchistwiardwebteaches-yogadattowebtb-hostinglive-websiteservegamegotpantheonfrom-nhsubsc-payfrom-ohvipsinaappfrom-cadyndns-officehomelinuxfrom-mahercules-appservebbsstreakusercontentfrom-okfrom-wyfastly-terrariumis-a-llamaqualyhqportalserveexchangeon-vaporvivenushopciscofreakgrayjayleaguesmetaaiusercontentfrom-iais-a-libertariansaves-the-whalestaveusercontentyolasiteoperaunitepoint2thisis-a-catererlinodeusercontentfrom-vagithubusercontentsells-for-lesshosteurcanva-appsplaystation-cloudddnsfreefrom-pafrom-prfrom-waddnskingoutsystemscloudhotelwithflightmydattois-a-nascarfanmydbserverminiserverdamnserverservehumouris-a-playerfrom-nvfrom-nmemergentagentgentappsamplifyappfrom-kyis-an-accountantnfshostserveircfrom-akpythonanywherestackhero-networkpostman-echolikescandydyndns-mailobservableusercontentserveftpfreeboxosfrom-utcdn77-storageamazonawsneat-urldyndns-serverlinodeis-a-teacherfrom-vtgleezemythic-beastsus1-pleniteu1-plenitla1-plenitpaywhirlservecounterstrikejdevcloudhealth-carereformis-into-animegoogleapisis-a-painterafricaisa-hockeynutatmetais-an-actora2hostedis-a-democratdatadetectest-le-patrondigitaloceanspacesis-a-designeris-a-hunterlinodeobjectstemp-dnsissmarterthanyoufrom-arsimplesiteevennodetownnews-stagingis-a-liberalgooglecodejelasticservemp3stdlibqualyhqpartnerdyndns-free1cooldnsest-a-la-masiondrayddnsdynuddnsfrom-orfrom-miis-a-bloggerfrom-himydobisscanvacodeis-an-engineerest-a-la-maisonupsunappdevinappswafflecellmyasustorwpenginepoweredfrom-ctservep2psame-appmyshopblocksthingdustdatalikes-piediscordsezis-with-thebanddev-myqnapcloudlpusercontentis-leetshopitsite3utilitiesis-a-personaltrainersinaappladeskis-a-cheflogoipselfipbase44-sandboxnospamproxyalibabacloudcsmesswithdnsauthgearappsiamallamawithgooglelutrausercontentmochausercontentframercanvasmytabitdyndns-homew-credentialless-staticblitzcpserverdiscordsaysis-a-nurseappspotatlassian-isolated-3premotewdfrom-mtwixstudiocode0emm180rmyactivedirectoryawsappsmytuleapdnsabrpolyspaceqbuserrenderbuiltwithdarkboutirgotdnsabrdnsdopaascanva-hosted-embedawsglobalacceleratorhomesecuritypcmyiphostditchyouripclever-clouddyndns-ipon-aptibleis-a-musiciansecuritytacticsappspaceusercontenthomeunixstrapiappsame-previewcf-ipfsmycloudnaselasticbeanstalkis-certifieddontexistkasserverik-serverdrive-platformatlassian-3pfirebaseappherokuappawsapprunnerbarsycenteris-a-cubicle-slaveservehttpmyshopifyis-a-guruquicksytessiiitesorsitesmagicpatternsappis-a-cpameteorappfrom-wiis-a-rockstarbumbleshrimpdattolocalreadthedocs-hostedfrom-rifamilydsdyndns-picsplesknsbplaceddnsaliasdynaliasdyndns-remotedoomdnsip-ddnsblogdnsis-a-doctorroutingthecloudamazoncognitobarsyonlinedsmynasddnsgurucloudflare-ipfsdeus-canvasfrom-idsmushcdnpagespeedmobilizerdyndns-at-homeunusualpersonhosted-by-previderis-a-republicandyn-o-saurstreamlitappworkisboringonthewificprapidqualifioappis-uberleetis-slickgetmyipwpdevcloudtypeformdyndns-at-workgentlentapismynascloudw-corp-staticblitzfrom-ingeekgalaxyservebeerfrom-mdonrenderspace-to-rentaivencloudappspacehostedonfabricawafaicloudcodespotblogspotatlassian-3p-us-gov-modfrom-ndfrom-msis-a-techieis-a-studentcustomer-ociis-a-photographerdurumisfrom-ksmassivegriddyndns-wikiis-an-entertaineris-a-hard-workermysecuritycamerafrom-mnrackmazedyndns-blogis-a-bulls-fanwritesthisblogfreemyipsimple-urlfrom-sdreservdauthgear-stagingest-mon-blogueuris-into-gamesrice-labsxtooldevicesakurawebis-an-anarchistoraclecloudappsdyndns-worksells-for-urhcloudfrom-dcfastvps-serverwpmucdnis-a-geekscrysecfrom-txis-into-cartoonsmodelscapetrycloudflarelocaltonetstreak-linkbalena-devicesfrom-njforgeblocksfreebox-oswebadorsitefrom-ncdoesntexisthobby-sitestreaklinkshomesecuritymacownprovidertuleap-partnersdattorelaywphostedmailalpha-myqnapcloudservequakeis-a-socialistservehalflifepivohostingdynuhostingquipelementsw-staticblitzdyndns-webfrom-deproject-studyaliases121is-not-certifiedhercules-devis-a-financialadvisorservepicsis-a-greenloseyouripfrom-ilwithyoutubemwcloudnonprodwiredbladehostingdnsdojofrom-tnpixolinomyqnapcloudis-an-artisthostedpiis-a-landscaperauiusercontentoaiusercontenton-forgeis-a-conservativedreamhostersnet-freaksapps-1and1is-goneencoreapifastly-edgefrom-nesalesforcefrom-scdeployagentoraclegovcloudappsfrom-alis-a-lawyercechirevultrobjectsstufftoreadisa-geekddnsgeeklovableprojecttry-snowplowfrom-moblogsyteis-a-bookkeepernogmyforumravendbmyboxdeelementoredsaacficogoorinforgcomgobnatneteduidstoreorgcomnetintedudevnomepublorgcomneteduathgovtestscalculatorspaynowinfoquizzesresearchedcloudnsfunnelsassessmentsjscaleforcetmacltdorgmilcompronetgovbizpresseklogesrsccloudcustomfltusrcloude4corealmgovmunicontentproxy9metacentrumdyndyndyndnsdynpagespages-researchitionoccustomercomymyspreadshopipv64diskussionsbereich4limacomrub2ixfirewall-gatewayddnssspdnsbarsykeymachinesquare7myhome-serverspeedpartnercommunity-proschuldockxenonconnectgünstigliefernbwcloud-os-instancedyndnssecmy-routerxn--gnstigliefern-wobin-butterl-o-g-i-nisteingeekin-dslin-berlinin-brbfuettertdasnetzleitungsenin-vpnlcube-serverdyn-ip24logoipdyn-berlinruhr-uni-bochum12hpgoipsrvdnsfruskygit-repossvn-reposinternet-dnsgünstigbestellenhome-webserverxn--gnstigbestellen-zvbbplacedheimdnscosidnswebspaceconfiglima-citydyndns1istmeinvirtualuserschulplattformmy-gatewayddnsseclebtimnetztest-iservmein-iservvirtual-userhome64iservschuletaifun-dnstraeumtgeradeschulserverdynamisches-dns123webseitednshomehs-heilbronndnsupdaterbssgraphicdwadpdwdaepeweaawapaafpfwfabwbpbacwcpcciwebuserapiobjectsidsiskospockkimodorikerbonesteamsparisjanewaypicardglobaltarpitreedpikekiraworfsulukirkarchertuckerhackercanarywesleystagingprereleaset3r2lpbravepanelngrokiservstglclcrmerpflypagesbarsyvivenushoplocalcertlocalplayerbearbloggatewaydeno-stagingis-not-ais-a-goodbotdashvercelmocha-sandboxplatter-appreplitgithubpreviewworkersinbrowserevervaultdetais-ahrsndenoxmitmodxmyaddrstorageapipayloadgrebedocruncontainersstgstagelclstageloginlineis-a-fullstackleapcellngrok-freeis-coolstoragewebharemediatechlibp2pdiscourseimaginecomyspreadshopstoreregbiz123hjemmesidefirmcoorgcomnetedugovsldorgmilcomwebgobartnetedugovtmorgpolcomsocartnetedugovassoagrondiscoodontk12medcuegyecpaabgengorgmilgalsaltulcomadmesmgobpubdocmonfindgnriouioproartlatvetnetfotedulojgovntrturibrbarxxxofficialbasechefprofmktgpsictechinfoarqtcontdentrrpppsiqgit-pagesritmedfieorgcomlibprieduaipgovriikmeactvsportorgmilcomscieunnetedugovnameinfopintouchtawktotawkmyspreadshoporgcomnomgobedu123miwebcomputeorgcomnetedugovbiznameinfocognito-idpeusc-de-east-1onjelasticnxaspdnsbarsydirectwpdeuxfleurstransurldogadoprvwcloudnsamazonwebservicesdnshomeuserpartycokoobinmkmstorjfidemopaasdymyspreadshopalandkapsiikixn--hkkinen-5wacloudplatformdatacenterhäkkinen123kotisivuidacorgmilcompronetedugovbiznameinforadioorgcomneteduuserexperts-comptablestmmyspreadshopgretaprdcomnomynhccifbxoshuissier-justicenotairesaeroportfreeboxoson-webavocatassoportgouvkdnschirurgiens-dentistes-en-franceavouesfbx-os123sitewebveterinairechirurgiens-dentistespharmacienchambagrimedecinfreebox-osdediboxgoupilemszicpyicpvicppleysheezypagesedugovcnpyorgcomcybllcpvtnetedugovtnxonlineschooldaemond6atcopanelorgnetplybotdashstackitkaasorgmilcomnetedugovbizmodltdorgcomedugovcoorgcomneteduappwriteacorgcomnetedugovcloudtranslateusercontentorgcomnetedumobiassoorgcomnetedugovbarsysimplesitediscourseindorgmilcomgobneteduorgcomwebnetedugovguaminfonxhra教育敎育網絡网絡组織組織网络網络组织組织公司政府個人个人箇人ltdorgcomincneteduidvgovxn--uc0ay4axn--55qx5dxn--mk0axixn--io0a7ixn--uc0atvxn--zf0avxxn--lcvr32dxn--od0algxn--wcvs22dxn--gmqw5axn--od0aq3bxn--mxtq1mxn--ciqpnxn--tn0agxn--gmq050iorgmilcomgobneteduiservwp2tempurlmircloudfreesitewpmudevmyfastgadgetcloudaccessjelehalfboltfastvpsemergenteasypanelopencraftizcombrendlynamefromrtpersoadultmedorgpolrelcomproartnetedufirminfoassoshopcoopgouvtmcomediahotelforumvideosportorgsexagrargameslakaseroticaerotikatozsdereklamcasino2000filmsuliinfoboltshopprivnewsszexcityutazasjogaszkonyveloingatlaneacaicogoormyᬩᬮᬶmilwebschnetkopbizzonedesaponpesxn--9tfkymyspreadshopgovmytabittabitorderravpageaccok12idforgnetgovmuniltdplcaccotttvorgcomnetmeca6g5gpgamubacaicniocoukuptverdruscsdelhiindorgmilcomwebnicfingenpronetintedugovresbizbiharbarsyinternetbusinessschooltravelsupabasealumnigujaratfirminfoaeropostbankcoopindevscloudnsno-ipbarsybarrell-of-knowledgebarrel-of-knowledgensupdategroks-thisdnsupdatefor-ourknowsitalldvrcammittwalddynamic-dnsv-infowebhopselfipdyndnshere-for-moreilovecollegemayfirstforumzcloudnsmittwaldservertypo3servergroks-theeusekd1uk0cdndyndnsidrawsainaueuapjpusstagemocksysdevicesclientcustreservdcustdevdisrecprodtestingcobeebyteutwenteboxfusebravepstmndedynngrokorgmilcomnomhzcnetedugovqcxqzzbarsythingdustmo-siemensrb-hostingprotonetfh-muenstergitbookbluebitecloudbeesusercontentnodeartkiloappsforgerockdarklangresinstagingapigeebubbleb-datascryptedhypernodedappnodepantheonsitegitlabgithubkeeneticvirtualservercleverappshostyhostingon-rioedugitticketstelebiton-acornwixstudioon-k3sicp0icp12038jeleqotobigvlairbubbleappsmyaddrstolosmyrdbxwebflowdrive-platformbeagleboardhasura-applolipopdefinimavaporcloudmusicianwebflowtestazurecontainerresindevicereadthedocsloginlineeditorxmoonscalesandcatsbasicserverwebthingsbrowsersafetymarkbeebyteappbitbucketidaccovistablogorgschnetgovxn--mgba3a4f16axn--mgba3a4fraarvanedgeايرانایرانjclaspeziapdudcefegelemeperetevebacanatavaparasabgagfgogrgpgalclblimfmrmcbmbvbfclcmcvcrcpcchlimifibicivipirisimncnbnanenrnpntnnolomobocoaogorosopotoptvtatctbtmtltotpulunutpspapaqsvpvvvtvavvrtrsrprgrfrcrbrarorkrvstsssbscsmsispzczbzbozen-suedtirolmyspreadshopxn--bulsan-sdtirol-nsbxn--valledaoste-ebbtrentinoaltoadigetrentin-sued-tirolxn--forlcesena-c8axn--forl-cesena-fcbxn--bozen-sdtirol-2obtriestetrentinsuedtiroltrentino-s-tirollecceudineaostesienaparmaluccapaviagenoapaduaaostamonzaabruzzoternirietiturinmilanbozenlaziofermoleccocuneonuoropratola-speziavdataaligfvgpugmolcalcamlomumbsicpmnvenvaoedugovabrsarmaremrbastoslazibxosfirenzetrentinosüdtirolval-d-aostavalle-aostamessinacremonaravennatoscanatrentin-suedtirolbolognacalabriaurbinopesarofriuli-v-giuliaogliastraxn--valle-aoste-ebblaquilaandriatranibarlettasyncloudtrentinosudtirolxn--valle-d-aoste-ehbaostavalleyvalled-aostatrentino-alto-adigevallee-d-aostexn--balsan-sdtirol-nsbpistoiasicilialucaniacataniaiserniaperugiabresciaveneziagorizialiguriaimperiabulsan-suedtirolbalsan-suedtirolbarlettatraniandriaxn--trentino-sdtirol-szbforlì-cesenatuscanyvallée-d-aostemantovavallée-aostecasertapiemontevalleaostaval-daostafriulivgiuliatrevisoforli-cesenavalléedaosteferrarapescaravald-aostatrentino-altoadigefriuli-vegiuliavallee-aostecarboniaiglesiastarantomediocampidanovalleedaostetrentinosud-tirolcampobassotrentinsüd-tiroltrentinosüd-tirolmonzabrianzatrentino-südtirolxn--trentino-sd-tirol-c3bpotenzacosenzavicenzaemiliaromagnavenicefrosinonemarchepordenonetrentinosued-tirolvaresemolisevalléeaostefriuli-veneziagiuliabasilicatalatinaanconasavonaveronamodenaaquilabiellabolzano-altoadigepugliafoggiaumbriatrentino-stirolgenovapadovamateranovararagusapiacenzatrentinostirolvalleeaostetempio-olbiatrentinsudtirolmassa-carrarafriuliveneziagiuliatrentinosuedtirolandria-barletta-tranitrapanixn--cesenaforl-i8amaceratacaltanissettaascoli-picenobrindisicarraramassacagliaririmininapolivibo-valentiachietibulsan-sudtirolbalsan-sudtiroltrentino-a-adigebulsanbalsaniglesiascarboniamilanotorinoteramodell-ogliastraarezzotrentinoalto-adigerovigotrentovenetoiglesias-carboniatrentino-sud-tirolaltoadigereggio-emiliareggio-calabriasardegnatranibarlettaandriapiedmontxn--sdtirol-n2amedio-campidanotrentino-süd-tirolfriuli-vgiuliafriuli-ve-giuliaromeennaromapisa32-b16-b64-blodiastibarineencomonaplesforlicesenailiadboxosalessandriasicilytrani-barletta-andriaxn--trentin-sdtirol-7vbpesarourbinotrentinsued-tirolcesena-forliforlìcesenaemilia-romagnamonzaebrianzaxn--trentinsdtirol-nsbtrentinos-tiroltrentinsüdtirolvalledaostaolbia-tempiocampidanomediovibovalentiasassarivalle-daostalombardyfriulivegiuliareggioemiliamonzaedellabrianzaalto-adigevercellitrentin-sudtiroltraniandriabarlettatrentino-sudtirolascolipicenobozen-südtirolfriulive-giuliaflorencevaldaostaxn--cesena-forl-mcbcarbonia-iglesiasaosta-valleycarrara-massadellogliastratrentinoa-adigexn--valleaoste-e7apesaro-urbinoxn--trentinosdtirol-7vbxn--trentin-sd-tirol-rzbxn--trentinsd-tirol-6vbtrani-andria-barlettatrentin-süd-tirolxn--trentinosd-tirol-rzbgrossetomonza-e-della-brianzasüdtirolreggiocalabriatrentinoaadigetrentin-südtirolfriuliv-giuliaverbaniacampaniatrentino-aadigefriulivenezia-giuliasardiniaandriabarlettatranibarletta-trani-andriacatanzarooristanourbino-pesarocesena-forlìvalle-d-aostacampidano-medio123homepagesiracusatempioolbiasuedtirollombardiaavellinocesenaforlìtrentinofriuli-venezia-giuliabozen-sudtirolandria-trani-barlettabulsan-südtirolbalsan-südtirolmonza-brianzabolzanotrentino-sued-tirolbellunosalernolivornocrotonesondriodnshometrentinsud-tirolmassacarraratrentin-sud-tiroltrentino-suedtirolviterbobergamocesenaforliolbiatempiopalermobeneventoagrigentoofcoorgnetfmaitvphdengorgmilcomschnetedugovperagrikanieasukehandachitatokaiaisaikonanoharuamaobuhigashiuraowariasahiinuyamatobishimaiwakurashitarainazawatoyonegamagorimihamatoyotataharakariyayatomioguchikomakimiyoshinishiotokonamekiyosuchiryutoyohashiokazakiisshikikasugaikotakiratoeianjotogofusosetohazutsushimashinshirotakahamanisshinshikatsuhekinantoyokawaichinomiyatoyoakeodateogataakitaikawakyowahonjoogayurihonjonoshirokamiokakatagamimitanegojomeyokotekosakadaisenkazunonikahohonjyomoriyoshimisatohappoukamikoanihachirogatahigashinarusesembokufujisatokitaakitaitayanagiowanitakkomutsutsurutahirosakigonoheoirasetowadamisawanohejiaomorishingohiranairokunohehashikamitsugarushichinohehachinohenakadomarisannohekuroishisakaeisumiasahiotakiinzaiabikomatsudoyachiyomutsuzawakujukuriomigawakashiwatoganemihamanaritasakuranagaramobarahanamigawachoshishiroichoseikozakishisuikatorimidorichonankyonanfuttsuonjukufunabashinagareyamanodasosatakochuotohnoshourayasukimitsuyokaichibayotsukaidosodegauratateyamakamagayayokoshibahikariyachimatakatsuuratomisatokisarazukamogawaichikawanarashinoichinomiyashimofusaminamibososhirakoichiharaoamishirasatoikatahonaiainansaijoseiyoiyoozuuwajimaniihamanamikatamasakiuchikokihokutobetoonshikokuchuomatsuyamaimabarikamijimakumakogenyawatahamamatsunosabaeikedaobamasakaifukuiohionotsurugamihamawakasaminamiechizeneiheijikatsuyamatakahamaechizensoedaukihaomutaokawanishiogoribuzenonojosueumiokiotochikugosasagurisaigawamizumakishinyoshitomikurumekurateyamadakasuganakamamiyamanogatatakatahakataiizukakawaratagawakasuyaashiyainatsukimunakataminamitsuikishonaikurogifukuchikeisenhigashimiyakoshinguyukuhashiokagakiyamekogaongausuikahotohochuotoyotsumiyawakadazaifuhisayamatachiaraiyanagawanakagawahirokawachikujochikushinochikuhochikuzennamieotamaokumashowateneiiwakikoorinangoononishigoshimogoomotegomishimafukushimaasakawakagamiishishirakawaiitatefutabahiratayugawahanawakitakatakawamatakunimiyabukibandaihigashihironoyamatomiharuyamatsuriaizubangedatesomaaizuwakamatsuyanaizuaizumisatonishiaizuizumizakikitashiobarataishinkaneyamakoriyamainawashirotanagurafurudonosamegawasukagawaishikawatamakawaikedaogakitaruiginanenahashimahichisonakatsugawaibigawashirakawamizunamiminokamomitakekawauesekigaharatomikasakahogikitagatayamagatatajimianpachimotosuyaotsukakamigaharahidakanisekitokigujominogodoyorogifukasamatsutakayamawanouchihigashishirakawakasaharashimonitatsumagoichiyodakannakanrashowameiwakiryuotaoratomiokafujiokaitakuranaganoharahigashiagatsumatakasakishibukawaminakamikatashinatsukiyonokawabanumataannakaoizumimidorishintoisesakiuenoyoshiokakusatsutakayamanakanojonanmokutamamuratatebayashimaebashiotakekaitadaiwahongofuchukuietajimashobaramiharahatsukaichihigashihiroshimamiyoshikumanokurenakasakaseraseranishiasaminamifukuyamashinichionomichiosakikamijimajinsekikogentakeharaotobenanaeikedatohmaozoraobiraabirakyowaeniwataikibibaisharirebunerimohiroooketootarupippunishiokoppechitosefurubirahakodateshiranukakitahiroshimakushiroobihironanporoiwamizawaniikappukunneppufukushimanakasatsunaitoyourakuromatsunaiakabirakamisunagawashibechaurakawakamifuranonakatombetsuasahikawashimokawakayabeokoppebiratoriabashirisaromaatsumanumatahidakabifukamukawamikasahorokanaitoyotomisarufutsuhigashikawaishikarikitamiyoichiesashiiwanaitomariminamifuranoakkeshifuranotoyakoyakumootoineppushikaoishiraoinemuronayorohaboroashorobihororishirifujiutashinaihokutotakasuebetsuurausuassabukikonaishimamakinaiedatetoyabieinikiesanuryuoumuteshikagarikubetsuashibetsukimobetsuaibetsutobetsusobetsuembetsushimizuchippubetsurishirihokuryuhoronobeshintokutsubetsushibetsuhonbetsumombetsutsukigatakuriyamakoshimizushiriuchikutchanmurorannoboribetsukamishihorowassamushinshinotsukembuchiwakkanaikamoenaikiyosatotakinoueshikabesunagawafukagawanakagawatakikawakamikawahigashikagurahamatonbetsumatsumaemoseushirankoshishakotanimakanemashikeotofuketomakomaisandatambaitamiawajikasaiasagoshisoonoakoyashirotoyookaminamiawajiinagawafukusakitakasagokamigorikasugaharimayokawaashiyahimejiakashitaishiaogakisannantakinosumototakarazukanishinomiyashingugoshikinishiwakiyokatakaaioimikisayoyabukawanishiamagasakisasayamashinonsenkakogawaichikawakamikawatatsunotsukubaiwamaogawaasahisakaitokaioaraiitakobandodaigosuifuinaamikasumigaurakashimaomitamayachiyoshimodatetomobetoridehitachinakainashikisakuragawakasamayawaramoriyahitachiomiyanamegatayamagatahitachikamisuushikutakahagiibarakitonekoganakasowayukimihojosomitoryugasakishimotsumafujishirotsuchiurachikuseihitachiotashirosatotamatsukuriuchiharashikahakuinanaotsubatawajimakahokukawakitatsurugikaganominotosuzuuchinadakomatsuanamizunakanotohakusannonoichikanazawaiwateshiwafudaikawaimoriokaofunatohanamakikuzumakikitakamininohekunoheyamadayahabasumitaichinosekitanohatahiraizumirikuzentakatajobojiotsuchihironomiyakoiwaizumikarumaiichinohenodakujitonooshushizukuishifujisawamizusawakamaishikanegasakimannoutazukotohiraayagawazentsujihigashikagawauchinomikanonjisanukimarugamemitoyotakamatsutadotsunaoshimatonoshoakuneamamiizumihiokiyusuikinkoisasookouyamanakatanekagoshimakanoyaisenkawanabeminamitanemakurazakitarumizunishinoomotematsumotosatsumasendaioimatsudaayaseebinamiurazushinakaiodawaraiseharasagamiharahakoneaikawakaiseiatsugitsukuihadanoyamatoyamakitazamaoisochigasakininomiyayokosukakamakuraminamiashigarafujisawasamukawakiyokawahiratsukayugawaraokawaumajikochitsunootoyoakiinonishitosayasudahidakamiharasakawaniyodogawahigashitsunokagamigeiseisusakiotsukinaharisukumomurototosakamiochitoyotosashimizumotoyamanankokunakamurakitagawayusuharaogunichoyoukiasoutoozugyokutoamakusamifunetakamoriyamagaminamataminamiogunikikuchisumotoyamatonagasumashikiaraokumamotokamiamakusanishiharayatsushiroayabeseikasakyoideineujinakagyokameokakyotangokyotanabekyotambaminamiyamashiroyamashinatanabeyawatawazukaminaminantanmiyazuhigashiyamafukuchiyamakitamukokamojoyokizumaizuruujitawaraoyamazakinagaokakyokumiyamakawagoeinabeshimameiwaasahitaikiudonoisetsukisosakikuwanamihamamiyamasuzukatamakimisuginabarikumanokomonominamiisewataraitobakiwatakikihotadomatsusakayokkaichikameyamaureshinoishinomakishichikashukuohirataiwaosakizaohigashimatsushimashikamaiwanumashibataogawaraonagawakawasakiseminemarumoriminamisanrikukakudamuratawakuyatomiyanatoriwataritagajomisatotomekamirifushiroishimatsushimayamamotoshiogamafurukawahyugaebinotsunosaitoayakushimanobeokakitauramiyazakitakazakigokaseshiibamimatashintomikunitomikitakatakobayashikawaminamitakaharukijotakanabemiyakonojonishimeranichinankitagawakadogawamorotsukakisofukushimaminamimakisakaeobuseikedaogawamiasaokayaasahiotakiotarichinoinaomichikumakomaganechikuhokukaruizawayasuokaooshikaikusakaminamiaikitogakushimatsukawakawakamitateshinatakamorikitaaikishiojirimiyadahakubaiizunaiijimaiiyamamiyotasuzakayasakatoguraookuwanagawaminowahirayayamagataminamiminowafujimiomachisakakitakaginaganonakanosakuhokomoronagisoshinanomachiwadauedaiidaharasuwatomiachiaokianankisosakunozawaonsenagematsutakayamashimosuwamatsumotoyamanouchinakagawamochizukiazuminotatsunoobamaomuraseihiunzenosetofutsuikichijiwanagasakiisahayahasamisaikaikawatanasasebohiradokuchinotsugototogitsutsushimashimabarashinkamigotomatsuurayamazoekashibaikomakawaitenrioyodosangokoryoudaojiikarugayamatokoriyamatenkawakatsuragikurotakikawakamimiyakemitsuetakatorikamikitayamayamatotakadahegurishinjokanmakisakuraitawaramotogoseoudanarasoniandokawanishishimoichihigashiyoshinokashiharashimokitayamanosegawayoshinomintsivorytopazsakuragehirnsumomoaseinetopalmail-boxmokurenyoitamuikaojiyagosensanjoaganomyokoseiroagaomishibataniigatanagaokamurakamiuonumayuzawakariwatagamitainaitsunanminamiuonumatochioyahikojoetsuseiroukamosadoizumozakitokamachiitoigawasekikawakashiwazakitsubamemitsukekokonoesaikiusukibeppuusahimeshimakunisakihasamataketatsukumihitaoitahijikusuyufukujukamitsuebungoonobungotakadaibaraniimibizentsuyamaokayamakasaokahayashimayakagemaniwaakaiwamisakishinjotamanotakahashikibichuowakesojanagishookumenannishiawakurakurashikiasakuchisetouchikagaminosatoshotomigusukunakagusukuyaeseizenaurumaiheyaaguniogiminanjokinminamidaitokitanakagusukuyonaguniokinawaishigakikunigamiurasoekadenataramahiraraginozataketomishimojizamamitonakiitomanhigashimotobuyonabarugushikamionnanahanagohaebarukumejimakitadaitonakijinnishiharayomitanginowantokashikiishikawaikedasuitaminohizuminishisakaikananabenodaitoosakasayamayaokishiwadatadaokakaizukatondabayashichihayaakasakakumatorikadomasayamahigashiosakashijonawatehirakatataishimisakitajirihannansennankatanotoyonominatosettsuhigashiyodogawaibarakinosekitachuohigashisumiyoshifujiiderakashiwaraizumiotsutoyonakamatsubaramoriguchiizumisanoshimamototakatsukineyagawahabikinotakaishikawachinaganoyoshinogarikamiminearitaouchiimarihizenogikashimaariakekiyamafukudomikitagatakitahataomachigenkaikanzakinishiaritakyuragisagataratosutakushiroishikaratsuhamatamakouhokukawagoeyoshidasatteogoseirumaasakaurawaogawaniizaomiyayoriiotakishikihonjooganohannohanyuinasaitamaokegawaarakawayoshikawayokozehasudasayamahidakafukayachichibuiwatsukiryokamiyoshimikamiizumifujimiwarabiranzanmiyoshiminanoyashiosakadosugitomisatohigashichichibutodasokakukiyonokazoshiraokakasukabekounosukawajimatsurugashimamiyashirokitamotohatoyamamoroyamahatogayakumagayakawaguchinagatorokamisatomatsubushinamegawatokigawakamikawafujiminohigashimatsuyamakoshigayatokorozawas3isk01isk02ryuohkoseikonanaishorittotakashimamaibarahikonetorahimenishiazaikokagamokotoyasuotsukusatsunagahamamoriyamatoyosatotakatsukinotogawaomihachimanhigashiomiakagiunnanizumogotsuamayatsukakakinokimatsuehamadamasudahikawahikimiokuizumoyasugiyakumomisatotamayuohdahigashiizumookinoshimanishinoshimatsuwanoshimaneshimadafujiedayoshidashimodagotembaiwataatamikosaiyaizuitoizumishimahaibaramakinoharaomaezakikawanehonkannamisusonohigashiizufukuroinumazukawazufujiaraishizuokahamamatsushimizuizunokunimatsuzakimorimachiminamiizunishiizukikugawakakegawafujikawafujinomiyaujiietsugaoyamayaitaohiranikkoashikagakuroisokanumasakurashioyakarasuyamamotegiichikaikaminokawatochigihagamokanogisanobatonasumibunasushiobaranishikatautsunomiyaiwafunemashikoshimotsukeohtawaratakanezawaitanokomatsushimatokushimaichibaminamiaizumiwajikikainanmiyoshinarutomimamugiananmatsushigesanagochishishikuinakagawamachidachiyodakomaefussainagitaitochofufuchuomeotahigashiyamatotoshimaokutamaaogashimakodairaedogawaarakawahachiojishinagawatachikawashibuyasuginamihinodekiyosesumidaoshimanerimamitakahamuraadachinakanomizuhobunkyomegurominatokoganeihigashikurumekokubunjihigashimurayamamusashimurayamatamakitahinochuokotokatsushikakouzushimaogasawaraakishimakunitachishinjukusetagayamusashinohachijoitabashiakirunohinoharachizunanbukotouramisasawakasayonagokogehinoyazutottorinichinansakaiminatokawaharaoyabetairainamiasahinantoimizufuchutakaokakurobeyamadajohanatoyamatonaminyuzenfunahashinakaniikawanamerikawaunazukitogahimiuozufukumitsutateyamakamiichiiwadearidayuasainamitaijikatsuragiaridagawatanabemihamahidakakainankiminomisatoshingushirahamakamitondayurakozakoyagobokitayamawakayamakudoyamahashimotokushimotokozagawahirogawakinokawanachikatsuurarsuseroeoishidasagaeoguniasahinagaitendonanyoobanazawanishikawasakataohkuratozawamikawamamurogawayamagatafunagatatakahatashonaishinjokahokuiideyuzakawanishitsuruokakaminoyamayamanobeshiratakamurayamanakayamakaneyamahigashineyonezawasakegawamitouubeyuuabushimonosekitabuseoshimatoyotaiwakunihikarishunannagatohagihofukudamatsutokuyamashowadoshitsurunanbukoshukaiminami-alpsnirasakikosugeotsukioshinohokutominobuyamanashifuefukichuokofuichikawamisatoyamanakakonakamichitabayamanishikatsuranarusawafujikawahayakawafujiyoshidafujikawaguchikouenohara長野京都岐阜大阪三重群馬千葉滋賀佐賀奈良adednelgaccogogror秋田愛知高知埼玉沖縄栃木熊本岩手青森山梨新潟島根鳥取長崎香川宮城石川大分宮崎茨城山口兵庫山形徳島広島福島福岡岡山富山静岡愛媛福井東京xn--4it168dhatenadiaryxn--vgu402ckawaiishophatenablogcocottenamaste北海道penneehimeiwateversestabachibashigagonnagunmapermahaccaakitaosakauh-ohblushkochiaichifukuikuroncapooitigohyogotokyokyotopunyuthickcheap0t00g00j0mie2-ddaapyawjg0amfemsubxiiboomoobutchueekpgwrgrherskrboyrdyupperunderflierchipsmydnsheavyangryhippygirlyrulez神奈川鹿児島和歌山bambinaxn--nit225kokayamasaitamaxn--k7yn95exn--1lqs03nsapporoparasitelolipopmcxn--efvn9sniigatafukuokatokushimafukushimahiroshimakagoshimafakefurokinawaxn--8pvr4ucoolblogxn--0trq7p7nnkawasakinagasakimiyazakichilloutxn--8ltr62kxn--klty5xpeeweezombiecutegirlxn--rny31hxn--uuwu58axn--ntso0iqx3axn--djrs72d6uytoyamanikitanyantakagawamimozanagoyaboyfriendxn--2m4a15egreaterchowderegoismyamagatafashionstorexn--elqq16hxn--pssu33lsendaimiyagixn--rht27zpecoriaomorisaloonwatsonvivianxn--djty4knobushipigboatnaganopinokoxn--f6qx53asadistvelvetsecretxn--5js045dchicappayamanashiibarakidigickgirlfriendxn--1lqs71dmongolianxn--c3s14mxn--qqqt11mtochigixn--5rtq34kparallelo0o0mondkobesagabonadecaoitanarafoolkilldecimainhiholomosblokilociaoundopupugifutankcrapflopnooroopsmodsholyjeezstripperpepperbittershizuokaxn--rht3dkitakyushureadymadeicurusversusmatrixxn--rht61ehungryfloppygloomycrankyhandcraftedlittlestarxn--klt787dxn--kltx9awhitesnowsunnydaytottorilovepoptheshopbuyshopxn--5rtp49cxn--d5qv7z876cwebaccelxn--kbrq7oxn--4pvxsxn--1ctwolovesickkumamotocatfoodxn--tor131oyokohamawakayamatonkotsuxn--ehqz56nxn--uist22hxn--6btw5axn--kltp7dyamaguchifrenchkisspussycatxn--4it797kxn--uisz3gbabybluexn--zbx025dnetgamersxn--7t0a264ckanagawaxn--6orx2rishikawaxn--ntsq17ghalfmoonschoolbusjellybeanxn--mkru45iusercontentlolitapunkxn--32vp30hsakurastoragehokkaidoshimanecandypopbabymilksupersaleweblikeraindropbackdropwebsozaikikirarahateblodaynightmeneacsccogoormobiinfoaeusxxorgmilcomnetedugovorgcomnetedugovbizinfotmprdorgmilcomnomedugovassnotairespresseassocoopgouvveterinairemedecinpharmaciensorgnetedugovtraorgcomedurepgovmeneperekgacscaiiocogoitoresmshsseoulbusanulsandaeguc01milvkimmvchungnamjeonnamjeonbukeliv-dnsgyeonggijejueliv-cdnincheondaejeongangwongyeongbukgwangjuchungbukgyeongnameliv-apicoeduindorgcomembnetedugovorgmilcomnetedugovjcloudorgcomnetintedugovperbnrinfocooyorgcomnetedugovipfscanvamypepw3sstorachakeeneticjoinmcinbrowserdwebcyonnftstoragemyfritzaemewphlxachotelltdorgcomwebsocschngonetintedugrpgovassnomgacsccoorgnetedugovbizinfo123websiteidorgmilcomasnnetedugovconfidmedorgcomplcschnetedugovaccoorgnetgovpresstmassoirseproxaccosoundcasthoptocraftvp4c66orgnetedugovitsmcdirmyboxbarsyedgestacksynologylogintonohostwebhopdiskstationi234tcp4hoocgroknoipprivmydsddnsdnsforlohmustransipdscloudfilegear-sgbrasiliafilegearframerbarsybarsyonlinecoprdorgmilcomnomedugovinforgcomnetedugovnameacprorgcomartnetedugovpresseinfoassoinstgouvorgnycedugovbarsydscloudjuorgcomnetedugovminisiteaccoororgcomnetgovorgmilcompronetintedugovbizmuseumnameinfoaerocoopaccoorgcomnetintedugovbizcooporgcomgobneteduorgmilcomnetedugovbiznameaccoorgmilneteduadvgovcoorgcomnetaltgovforgotherhiskeeneticispmanagernomassoprod5476132eastasiacentraluswesteuropewestus2eastus2rucdnwest1-usfra1-desandboxjls-sto1jls-sto3jls-sto2aglobalabglobalsslmapprodfreetlsmaplon-1lon-2ny-1fr-1sg-1ny-2paassnwebpaashostingjelasticnordeste-idcsocuserpagescwebfileblobservicebuscoreatlricnjsjelasticwebsitestoragesezagbinruhuukjptsmyspreadshopmynetnameakamaiorigin-stagingfrom-coipv64dynv6cdn77serveblogadobeaemcloudhicamsprytdnsupno-ipownipde5ovhicpfirewall-gatewaysytesmypsxbarsyusgovcloudapimyamazemyradwebakamaihdsaveincloudfastlylbfrom-lasubsc-paysquare7in-the-bandblackbaudcdnhomelinuxoninfernoctfcloudservebbsdns-dynamiccloudfrontakamai-stagingipifonyham-radio-opsenseeringclickrisingcommunity-profrom-nylocalcertgrafana-devedgesuite-stagingcloudflareanycasteating-organicatlassian-devmydattofeste-iplocaltotorprojectknx-serveredgekeycloudflareglobalcloudyclustercasacamserveftpakamaized-stagingakamaiorigindns-cloudmyeffectboomlabotdashbuyshousestwmailhetemlazure-mobilein-dslthruhereredirectmedynuddnsbouncemesupabaseluyanicloudappakamaicloudfunctionsdebiannhlfanpgafanstatic-accessin-vpnmysynologymafeloappudohomeftptrafficmanagersiteleafseidatmemsetcloudflarecloudaccesskeyword-onazure-apiis-a-chefdoes-itgets-itwebhopselfiphomeipkicks-assedgesuitewindowsserver-ontunnelmolemydissentscrapper-sitecloudflarecnuni5srcfggffiobbzabcdenodynuopikddnsvpndnsakadnselastxkinghostvps-hostfastlyhomeunixazureedgeshopselectdontexistmyfritzcloudjiffyalwaysdatasells-itsquaresbroke-itazurefddattolocalat-band-campmeinforumfamilydsazurestaticappsdefinimabplaceddnsaliasdynaliasnow-dnsblogdnsroutingthecloudendofinternetdsmynasakamaiedgemymediapcadobeio-staticakamaiedge-stagingakamaihd-stagingddns-ipprivatizehealthinsurancelive-onkrellianschokokeksmassivegridmysecuritycamerarackmazeserveminecraftfrom-azis-a-geekakamaizedmoonscalecryptonomicoffice-on-theusgovtrafficmanageradobeioruntimeedgekey-stagingreserve-onlinechannelsdvrdnsdojousgovcloudappcdn77-sslapps-1and1podzoneazurewebsitesdynathomescaleforceyandexcloudvusercontentisa-geekcdn-edgescoaemalcesappwriteazimuthtlonarvonoticeablestorecomwebrecnetperotherfirminfoartslgdloncogoiltdorgmilcolcomplcschgenngonetedugovbiznamefirmmobiacincoorgmilcomnomwebgobnetintedubizinfocomyspreadshopdemongovtransurl123websitehosting-clusterkhplaycistrongsnesosvalervålerxn--vler-qoaossandeheroysandeherøybøboheroyherøyxn--hery-iraxn--b-5gavalerbøboxn--b-5gasandesandexn--hery-iraxn--vler-qoavålerhåreålaahavaofsfvfhlolnlalrlhmfmtmahcostntbuåstrmreigersundmyspreadshopgálsáeidsvolltingvollgildeskalflorøvadsøvardøvanylvenxn--bhccavuotna-k7astrandaxn--kvnangen-k0axn--sknland-fxaxn--mosjen-eyarakkestadhyllestadnannestadvevelstadvaapstenordre-landsondre-landsøndre-landtjieltexn--vrggt-xqadsør-aurdalsor-aurdalheradstordmoldefordeførdeseljefedjeryggehemnexn--krehamn-dxasognegranesøgnebrynetjomevallebykletokkegiskedovretjømehobølvoldasaudatolgasømnaviknadønnasomnadonnatranafrananesnaraumasmolatrænafrænalesjasmølaørstaorstahitrafloraaukraloppafrøyarissasnasahalsagalsaromsaraisaráisafroyasnåsagronghobolfjelltydalårdalardalaskimharamkraanghkekråanghkesorumbarumhurumbærumsørummodumsálátbálátfrognbjugnvåganvagangulenskienløtenlotenstrynvefsnxn--merker-kuaskaunsveiobømlobomloskjåkvardoflorovadsosalatbalatsálatklæbuklabuselbubarduulvikskjakklepprisørxn--nttery-byaeflåeidflahofmilgolholsellomskifetvikdepvgsfhsaskerrisorhamarasnesåsnesrørosrorosxn--slat-5namasoynaroyvaroyluroydyroyaskoyradoyandoyrodoymeloyradøyandøyrødøymeløyaskøylurøydyrøymåsøyværøynærøyhoylandethøylandetdivtasvuodnalørenskoglorenskognesoddtangenxn--tjme-hraxn--smla-hraxn--stjrdal-s1aunjargalillehammerunjárgaxn--hamary-fyadavvenjargaxn--bearalvhki-y4a123hjemmesidegjerdrumxn--brnnysund-m8acxn--tnsberg-q1axn--mlatvuopmi-s4axn--snsa-roaxn--skierv-utaxn--brum-voatysfjordkvafjordeidfjordkvæfjordsongdalenmjondalenmjøndalenxn--gls-elackragerogáŋgaviikagangaviikasørreisasorreisasør-varangersor-varangerxn--risr-iraskiervaxn--frna-woaxn--trna-woakvinesdalleksvikleirvikrøyrvikroyrviksvelvikvenneslaevje-og-hornnessandnessjøenmarnardalvindafjordsandefjordenebakksnillfjordullensvangxn--trany-yuabrønnøysundnamsskoganaustevollxn--stjrdalshalsen-sqbnord-aurdalnord-frontrøgstadtrogstadgrimstadflakstadgjerstadxn--sandy-yuaxn--leagaviika-52bnore-og-uvdalvegarsheixn--rlingen-mxaxn--ggaviika-8ya47hvegårsheikarlsoykvitsoymasfjordenhamaroyinderoyosteroydavvenjárgasauheradguovdageaidnuxn--vre-eiker-k8abronnoysiellakkrødsheradkrodsheradkvinnheradbrønnøyxn--mtta-vrjjat-k7afxn--lrenskog-54akvitsøyvárggátkarlsøyosterøyinderøyhamarøybronnoysundxn--aurskog-hland-jnbbahccavuotnabáhccavuotnagiehtavuoatnastor-elvdalmidtre-gauldalxn--gildeskl-g0akarasjokevenassixn--bievt-0qaxn--yer-znalebesbynessebyxn--hbmer-xqamalselvmålselvxn--unjrga-rtamøre-og-romsdalmore-og-romsdalhareidmelandørlandorlandstrandålgårdsolundalgardafjordåfjorddielddanuorrikautokeinoxn--stre-toten-zcbskodjeaejriestangeliernebamblestokkefauskesnåasesnaasekongsvingerlangevagberlevagxn--flor-jrahattfjelldalostre-totenøstre-totenvestfoldxn--mely-iraálaheadjualaheadjunordreisaxn--troms-zuaxn--lgrd-poacporsangerflatangerstavangerleikangerbremangersamnangergieldakarasjohkaxn--rdy-0nabfrostautsirasnoasatromsaxn--sr-aurdal-l8aflekkefjordjølsterjolsteraremarkhedmarknååmesjevuemienaamesjevuemiexn--vard-jrarollagmeråkermerakerorskogørskogxn--bdddj-mrabdákŋoluoktaxn--osyro-wuaaknoluoktatrysilskjervøymandaljondalbindalrindalmeldalsuldalorkdalsigdalalvdallærdalhurdalsirdalverdallerdallardaloppdalåseralaseralhadselkragerødivttasvuotnaoverhallasteinkjerxn--hnefoss-q1askedsmokorsettromsøxn--dyry-iravestre-totenmuseumxn--sandnessjen-ogbrahkkeravjufylkesbiblbájddarbajddarxn--laheadju-7yarennesøyxn--koluokta-7ya57hxn--hgebostad-g3aleirfjordstorfjordbalsfjordbåtsfjordbatsfjordmuosátbievátloabátkárášjohkanøtterøyxn--mjndalen-64anordkappláhppilahppialstahaugsiljanverranrøykenroykenhaldenlyngenbergenhortenhønefosshonefosstroandinbeiarnvarggatosoyroosøyrotromsoidrettmuosatbievatruovatloabatvoagattynsetnessetxn--indery-fyaskánitskanitraholtråholtxn--ystre-slidre-ujbandebusarpsborgbearduxn--karlsy-fyahordalandjorpelandjørpelanddeatnuringsakersør-odalsor-odalxn--slt-elabringerikeaudnedalnittedalnissedalhemsedalslattumsurnadalxn--blt-elabelverumstjørdalnaustdalhjartdalgjøvikfyresdalhasviknarviklarvikgjovikmalvikgamviklenvikporsgrunnstjordalengerdaldrobakdrøbakxn--msy-ula0hvestvagoyxn--vgan-qoaxn--ryken-vuaxn--lten-graxn--stfold-9xaxn--hpmir-xqaxn--lury-iramálatvuopmimalatvuopmitysværkirkenesbirkenesmoskenesbáidárxn--fjord-lraxn--rdal-poabahcavuotnabáhcavuotnaxn--frde-gralindåsbearalvahkixn--hobl-iraráhkkerávjuxn--loabt-0qavågåáltábodøsundlundraderådeetnetimeholeauregrueoddavagavegaranatanaarnasolasulaaltalekafusavangbergkvamåmliamlibokntinnroangranosenoslobodorøstroststatåmotamotivguprivøyeroyerliermossvossxn--nvuotna-hwalusterlunnermarkerhábmerhabmerhvalerfjalerxn--rholt-mratysvarbaidarfitjargaularhápmirhapmirmelhusfosnesøksnesoksnestysneshemnesevenesflesbergeidsbergtonsbergtønsberglindasxn--sndre-land-0cbnamsosxn--srum-graøystre-slidreoystre-slidrevestre-slidretrondheimbalestrandxn--langevg-jxaaustrheimxn--skjk-soavagsoyaveroysandoykarmoyfinnoytranoyvestbytranbysykkylvenxn--hyanger-q1aspjelkavikandasuoloxn--fl-ziaxn--drbak-wuastathellexn--sr-varanger-ggbtelemarkxn--bhcavuotna-s4axn--porsgu-sta26fčáhcesuolocahcesuoloakrehamnåkrehamnsandøykarmøyfinnøytranøyvågsøyaverøynamdalseidxn--lesund-huabadaddjaxn--vegrshei-c0axn--btsfjord-9zagildeskålporsanguxn--trgstad-r1anávuotnanavuotnahammerfestxn--sgne-graxn--brnny-wuacibestadharstadnarviikaevenáššivestnesgjemnessandnesagdenesrennesoyxn--avery-yuaxn--tysvr-vrabearalváhkikongsbergspydebergrandabergxn--andy-iradavvesiidaxn--krdsherad-m8aporsáŋgufredrikstadbjerkreimringeburennebuaurskog-holandnotteroyxn--vgsy-qoa0jxn--rmskog-byaskierváivelandbyglandfrolandaurlandforsandxn--bjddar-ptamidsundålesundalesundfetsundfarsundovre-eikerøvre-eikerakershusxn--moreke-juasørfoldøstfoldostfoldsorfoldhøyangerhoyangerlevangerorkangertanangerxn--vestvgy-ixa6olillesandulsteinxn--rennesy-v1agranvinskjervoyxn--klbu-woalavagisxn--h-2faxn--ryrvik-byakafjordkåfjordseljordfolkebiblxn--gjvik-wuajevnakerxn--kfjord-iuabudejjuxn--kranghke-b0axn--davvenjrga-y4axn--rland-uuaxn--ldingen-q1axn--mlselv-iuaxn--rady-iraxn--linds-prabrumunddalxn--ygarden-p1amo-i-ranaeidskogrømskogromskoghjelmelandxn--finny-yuaxn--sr-odal-q1axn--skjervy-v1aballangenkvanangenkvænangengratangenxn--hmmrfeasta-s4acvossevangensuohkanxn--rde-ulaxn--mli-tlaxn--ksnes-uuanordlandskanlandskånlandsortlandfuoiskuxn--rros-graxn--hcesuolo-7ya35bxn--eveni-0qa01gagaivuotnagáivuotnaxn--seral-lradrammenmodalenmosjoenjan-mayentorskensteigengloppenxn--snes-poamatta-varjjatxn--sr-fron-q1aomasvuotnajessheimbådåddjåxn--krager-gyaxn--kvfjord-nxaxn--asky-iraxn--snase-nraxn--bidr-5nacholtålenxn--vads-jraxn--jlster-byamosjøenxn--rst-0nastavernxn--ostery-fyaxn--oppegrd-ixaxn--sknit-yqaxn--risa-5naoppegårdskiptvetrendalenholtalenxn--mot-tlaxn--lhppi-xqaxn--holtlen-hxaxn--srreisa-q1akopervikxn--muost-0qaxn--bmlo-grahokksundkvalsundegersundxn--karmy-yuaullensakerxn--hylandet-54axn--kvitsy-fyaxn--bod-2nalangevågberlevågkristiansandxn--rsta-frahornindalstjørdalshalsenstjordalshalsensandnessjoenhámmárfeastaxn--lrdal-srasør-fronsor-fronnord-odalkristiansundmátta-várjjatvestvågøynesoddennotoddenbuskerudøygardenoygardensalangenlavangenralingenrælingenlodingenlødingenleaŋgaviikalaakesvuemieleangaviikauenorgexn--srfold-byaaskvollxn--rskog-uuaxn--nry-yla5gxn--vry-yla5ghammarfeastaxn--rhkkervju-01afxn--givuotna-8yakommunekrokstadelvanedre-eikerhagebostadhægebostadxn--berlevg-jxakviteseidxn--s-1faxn--l-1faxn--nmesjevuemie-tcbafuosskomoårekemoarekexn--lt-liacxn--jrpeland-54asvalbardoppegardholmestrandtvedestrandsogndalsokndalarendalsunndalfolldalxn--krjohka-hwab49jlyngdaletnedalnorddalsaltdalgausdalskedsmovaksdalgjesdalstordalxn--frya-hraaarbortedrangedalxn--smna-graaurskog-hølandxn--vg-yiabtjeldsundhaugesundlindesnesxn--mre-og-romsdal-qqbxn--dnna-gradynmerseineshacknetenterprisecloudmineaccomaorimāoriorgmilcriiwigennetschoolhealthkiwigovtgeekxn--mori-qsacloudnsparliamentcomedorgcompronetedugovmuseumwebsitekinservicebarsywebsitebuildereerobookheimdnsleapcelleero-stagetechcrscsslorigingohomecdbedeeeiemesecabgngilnlalplchfisiincnnoroptatitmtltruauhulumkdkukskjplvtrgrfrkrhrusesismycynzcznetinteduassoososcloudstgbetaaezaeuhkusjshatenadiarycdn77hoptozaptois-a-knightmyftpno-ipjpnddnssdpdnsspdnsbarsysweetpepperis-a-bruinsfanis-very-sweetservegameis-a-soxfanhomelinuxcdn77-secureservebbsmisconfusedwebredirectblogsitefreedesktopcouchpotatofriestoolforgeaccesscamis-lostreadmyblogsmall-webfedorapeopleserveftpis-a-celticsfanmywirepotagertwmailin-dslsellsyourhomeread-booksfreeddnscable-modemis-savednflfanufcfanmlbfanstuff-4-saleendoftheinternetin-vpnmy-firewallhomeftpis-localis-a-chefboldlygoingnowherewebhopselfipkicks-assroxatunkcamdvrfedoraprojectgotdnsdvrdnsdyndnspubtlspimientahomeunixdontexistfedorainfracloudwmflabsfspagesbmoattachmentsteckidsfamilydsdnsaliasdynaliasnow-dnscloudnsdoomdnsduckdnsblogdnshomednsroutingthecloudendofinternetdsmynasip-dynamicpoivronhttpbinmyfirewallis-very-evilmysecuritycamerais-a-linux-userwmcloudis-a-geektuxfamilyis-a-candidatedoesntexistis-very-badhobby-sitegame-hostaltervistais-foundis-a-patsfandnsdojohepforgepodzonedynservcollegefanis-very-goodfrom-meis-very-niceisa-geeknerdpolacmedsldingorgcomnomgobabonetedupleskaemhlxmyboxrockyprvcydeuxfleurspdnscodebergheyflowstatichostorgmilcomnomgobneteduorgcomeduiorgmilcomngonetedugovcloudns1337ngrokacorggogfamcomwebgobnetedugokgopgkpgovgosbizpasaugumicsopozpapuwmwsrprusiskwpspkppspkmpspokeoiawsawifoumsdnskokwpmuppuppsppiwwiwoowuzswkzoschrzpisdnwzmiuwwitdpssewsseumigugimoirmpinbwinbwiihupporzgwgriwupowwskrwioswuozstarostwokonsulattmpccopruszkowmyspreadshopostrodakartuzyopolegminamediaustkazgorajgoraolawailawalomzawloclradombytomjaworznotargilubinkoninzagantorunkutnokepnonakloczestsopotsanokturekplockslasksklepzarowlukowmedaidgdaorgmilrelcomnomatmgsmartneteduelkgovwawsossexbiztgorysejnytychypomorzeboleslawiechomesklepsdscloudunicloudzakopanelegnicarawa-mazbydgoszczswidnikkrasnikwloclawekbielawamragowograjeworealestatebeskidykaszubymalopolskaprzeworskswiebodzinlecznadfirmaszkolawarmiagdyniamiastakazimierz-dolnymalborkswidnicadlugolekaostrolekapodlasieelblagtravelsimplesitezachpomormielecszczecinnieruchomosciwalbrzychlezajsklublinbedzinpoznanwielunmielnooleckostarachowicedkontopowiatwroclawrybniksuwalkileborkslupskgdanskostrowwlkptarnobrzegtourismwegrowkrakowglogowyou2pilanysamailwrocinfoagroautobeepshopprivlapypiszlodzcfolksecommerce-shopmazurypulawyskoczowrzeszowpomorskiezgierzkaliszolkuszlowiczostrowiecsosnowiecmazowszewodzislawbialowiezazgorzeleckatowicepabianicejelenia-gorawolominkarpaczsieradznowarudaczeladzkonskowolaskierniewiceswinoujscieturystykabieszczadycieszynketrzynolsztynbialystokbabia-goraprochowicewarszawastalowa-wolapolkowicegorlicegliwiceponiatowalimanowalubartowaugustowkobierzyceopocznognieznoszczytnokolobrzegshoparenapodhalebielskoklodzkostargardatwithplayitownnamecoorgnetedugovacorgcomproestnetedugovbiznameislaprofinforechtngrokmedaaaacacpaenglawjurbarbarsykeeneticavocatacctcloudnsorgcomsecplonetedugov123paginaweborgcomnetintedugovnomepublidkinbarsygovx443cloudnsorgmilcomnetedugovcooporgmilcomschnetedugovnamecomcannetlibassoaemclantmcontstoreorgcomnomrecwwwbarsyfirminfoshopartsstackitmyddnswebspacelima-cityacincooxorgedugovbarsybrendlyhbvpsvpsspectrumlandinghostingacppmordoviamcprecbgorgmilcomspbnetintedumsknovgovbirrasmcdirmytismircloudvladimirnalchikadygeyamarinepyatigorskmyjinobashkiriaeurodirvladikavkazna4ugroznykustanaikalmykiacldmaildagestaniranbuildcanvaliaravalwixdevelopmentappwritemigrationneedleverceldatabasestackitcodereplravendbonporterlovableaccoorgmilnetgovcoopmedorgcompubschnetedugovservicemecomygovorggovtvmedorgcomnetedugovinfoedgfacbmlonihkutwpsryxzbdtmacfhppmyspreadshopbrandpartiorgcomfhvpress123minsidaitcouldbeworlanbibkommunalforbundfhskiopsyskomvuxkomforbnaturbruksgymnloginlineorgcomnetedugovenscaledeuusentbotdaorgmilcomnetgovnowteleporthashbangplatformlovablebarsyshopwarebasehoplixbarsyonlinemsf5gitappgitpagecofigma-govcaffeinefigmacanvasoltstputerbarsysupportchatgptsquareomniweopensocialcpanelnotionnovecorewpsquaredpreviewjelecyonbyensrhtfastvpspieboxconvexjouwwebheyflowplatformshloginlinemadethissourcecraftclouderaorgorgcomartedugouvunivmeorgcomnetedugovsurveysstatichfheiyuxs4allprojectmyfastubervibehostapp-ionosdeployagentmecoorgcomschnetedugovbizcncostoreorgmilcomneteduembaixadaconsuladokiraranohoprincipesaotomeheliohobarsystorebaseshopwaresellfyabkhaziavologdamordoviapenzalenugsochinavoiexnetspbmsknovnorth-kazakhstanashgabadkareliaarmeniageorgiavladimirnalchikivanovobukharaadygeyakhakassiakalugakrasnodarjambylaktyubinsktroitskbryanskobninskkurganazerbaijanpokrovskbashkiriatselinogradvladikavkazmurmansktulatuvamangyshlaktashkentchimkentgroznykaragandatermezarkhangelskkustanaikalmykiabalashoveast-kazakhstankaracoldagestantogliattibarsyredorgcomgobedumirenknightpointaccoorgjelasticdiscoursecleverappsschacmiincogoornetonlineshopcogoorgmilcomwebnicnetintedugovbiznametestcoorgmilcomnomnetedugovorangecloudpersoindorgcomfinnatnetgovensmincomtourismintlinfox0611oyaorgmilcomnetedugovquickconnectvpnplusnettprequalifymeaddrmyaddrntdllwadlnctvavdrk12orgmilpolbeltelcomwebgennetedutskkepgovbbsbiznameinfocoorgmilcompronetedugovbiznameinfobetter-thanworse-thansakurafromdyndnson-the-webmymailerorgmilurlcomneteduidvgovmydnsgameclubebizmeneacsccogotvorhotelmilmobiinfovodteiflgplkmsmsbcckhincndnvncoztltmkckppzpdprvcvkvlvcrkrkscxuzchernovtsyrivneyaltaodesavolynrovnolutskltdinforgcomnetedugovbizvinnicazhitomirternopilpoltavakropyvnytskyizaporizhzhiasevastopolsebastopoluzhgoroduzhhorodkharkovkharkivvinnytsiakhmelnytskyizaporizhzhecrimeaodessazhytomyrnikolaevcherkassydonetskluganskluhanskkirovogradivano-frankivskchernivtsikrymkievkyivlvivsumyzakarpattiamykolaivcherkasychernigovkhersonchernihivdnipropetrovskdnepropetrovskkhmelnitskiyneacsccogoorusorgmilcomedugovvmdhmyspreadshopadimono-ipbarsybytemarkbarsyonlinelayershiftnh-servretrosnubapicampaignservicelugaffinitylotteryweeklylotteryraffleentrygluglugsmeaccoindependent-inquestnimsitecopropymntltdorgplcschnetgovnhsbarsyindependent-commissionindependent-reviewpolicepublic-inquiryindependent-panelconnhospindependent-inquiryroyal-commissionoraclegovcloudappscck12libccphxcclibpvtparochchtrcck12libcceatonk12coglibtecgendstmusann-arborwashtenawcck12glghcck12sealibforksolympiabainbridge-islkeyporthoquiamyarrow-pointcentraliaport-townsendsequimport-ludlowrentonsilverdalebremertonredmondsheltonbellevueport-orchardport-angeleskingstonchehalisaberdeengig-harborseattlepoulsboidmdndsddemenegacalamaiavawapailalflnmdcncscohnhmihiviwiriinmntnmocoutvtctmtgunjokakwvnvprarorasmskstxwynykyazisadninsnngosrvis-bymircloudservernamepointtoenscaledland-4-salefreeddnsstuff-4-saleazure-apinoipcloudnsgolffanheliohostazurewebsitesgvorgmilcomgubneteducoorgcomnetd0egvorgmilcomnetedugovmydnsiacostoree12orgmilcomnomwebgobbibrectecnetintedugovraremprendefirminfoartseducok12orgcomnethidnsidacaiiosonlahanamhanoicamauhueorgcompronetintedugovbizbacninhtayninhhoabinhnamdinhtravinhhaiphongvinhlonghaiduongquangnamquangtrithuathienhuequangninhbacgianghaugiangquangbinhsoctrangbentrethanhphohochiminhdanangkontumhatinhkhanhhoathanhhoahealthgialailaocaiyenbaibackanngheanlonganphuyenphuthocanthodaklakdongnainameinfovinhphucdongthapkiengiangtiengiangquangngailaichaulangsonlamdongdaknonghagiangangiangcaobangbinhduongninhthuanbinhthuanbaclieuthaibinhninhbinhbinhdinhtuyenquanghungyenbaria-vungtauthainguyendienbienbinhphuocschbizputerimagine-proxyorgcomnetedugovcloud66advisormypetsdyndnsxn--8dbq2axn--4dbgdty6cxn--5dbhl8dxn--hebda8bxn--80auxn--d1atxn--c1avgxn--o1acxn--o1achxn--90azhxn--55qx5dxn--uc0atvxn--od0algxn--wcvs22dxn--gmqw5axn--mxtq1mxn--12c1fe0brxn--h3cuzk1dixn--12co0c3b4evaxn--12cfi8ixb8lxn--o3cyx2axn--m3ch0j3axn--j1adpxn--90amcxn--90a1afxn--h1ahnxn--j1ael8bxn--h1alizxn--c1avgxn--j1aefxn--80aaa0cvacxn--41acaffeineexeopentunnelbotdashtelebitorgtmaccoagricorgmilnomwebnicngonetaltedugovlawnisschoolgrondaraccoorgmilcomschnetedugovbizinfoprg1-zeropstritonstackitlimazeropsaccoorgmilgovяспборгкоммскбизмирсамаракрымсочиакодпроргобрупрצהלממשלישובאקדמיהองค์กรธุรกิจรัฐบาลศึกษาทหารเน็ต教育網絡組織公司政府個人닷넷한국澳门新闻澳門联通家電嘉里招聘通販닷컴삼성コムგეбгрфеюadcdbdgdidmdsdtdaebedeeegeiejekemenepereseveyegabacalamanauavapaqasazacfbfafgfnfpfwftfbgcgagggegkgngmgsgpgvgtgugilmlnlalclglplsltlhmimjmkmmmomambmcmdmfmgmzmpmsmtmgbbblbsbecccacnclcmcvctcscmhkhghchbhthphshlinikifigiaibicivisikninhnmncnbngnsnpnvntnjoionomobocoaofodorosotoptstttytatbtetgtithtmtltrusuvuaucueuguhulumunufjdjbjtjsjlkmkhkfkdkcktkukskpkgpmpnpkpjpgqaqmqiqsvtvcvbvmvlvrwpwtwzwbwcwawgwkwmwtrsrprgrfrercrbrarnrmrlrkrirhrwsusrssspsgsesbsaslsmsissxmxaxcxuypysylymykygybycyuztzsznzmzkzdzczbzazελευ世界台灣购物公益点看臺灣网络書籍在线网站手机机构大拿游戏信息台湾谷歌慈善商标香港中国餐厅网址中國商城食品微博政务移动集团公司八卦商店健康网店政府时尚佛山中信娱乐广东企业homedepotengineeringاماراتrepublicankuokgroupversicherungchannelcitadelxn--pgbs0dhxn--b4w605ferdstatebankwebsitexn--mgb9awbf亚马逊淡马锡alibabaxn--ngbc5azdxn--mgbbh1axn--45br5cyltoshibabuildworldcloudtradeguideplacespacedancemoviephoneprimesmilebiblestyleappleazurestoreskypegripexn--l1accdrivelottehorsehouseleasechasereisestadahondaomegaaetnaamicaninjanokiamediadeltavodkaedekaosakapizzaslingemailgmailtirolshelltmallfinallegaltotalhotelamfamforumrehabmusicciticricohcoachwatchboschearthfaithirishmiamiarchidubaiguccipraxiみんなストアセールcanonsalononionnikonepsonkoelngreensevencrownikanoradioaudioweiboglobopromogalloyahoociscorodeovideomangobingotokyovolvolottokyotophotosmartsportquesttrusthyattjetztadultcymrubaidutushuxn--kprw13dubankclickblackmerckgroupsharpcheapnowtvxn--h2brj9cקוםհայоргсрбмонкомбелмкдқазрусукрمصرقطرعربكومdadcfdmedwedredphdthdbidpidkrdmsdltdiceonewmeglemoerwecfageacbanbambaaaammakianraspacpaaxawtfbcgaegongingaigvigorgdogdhlmilrilonlaolloluoljllcalgalnflafltelsrlfrllplkimibmcamcombommomifmabbjcbscbcabnabtabmlbpubabcbbcnecincpncllcstcwtcpwcnyckfhbzhovhmoiskiobisbitcifyituipinvinwinxincbnbcnmanfangdnmenrenkpnmtnyunrunfununobiojioriohbogmofooboooooacoecoceongoproartistottnttbbtcateatlatvetpetbetnethktmitfitintjothotgotdotbotprueduicujnjyouinknhktdkappsapgapmapdnptopgopllpjmpzipvipripesqtrvdtvitvdevmovgovhivnrwlawsewnewbmwwownowhowdvrftrmtrsfrbarcartvscrseusawsupsubssbsadsddsldssasbmsmlsxxxboxfoxgmxtjxsextaxbuyflydiysoyjoyskypaydaygayxyzanzbizwebersenerpokerlameractortatarsolarລາວคอมไทยtourslocusnexuslexusgiftsbeatsboatspartspressglassswissकॉमनेटtiresgivescodeshomesgamestunesshoescardswalesloansvegastoolsdealsautosparisファッションworkssucksrocksxeroxforexfedexpartylillymoneystudyrugbytoraytoday中文网xn--unup4y天主教飞利浦新加坡enterprises我爱你嘉里大酒店christmasxn--fct429kholdingsxn--8y0a063axn--mgbx4cd0ablifestyleabogadoallstatenetbankكاثوليكxn--s9brj9cxn--gk3at1ebestbuycharityxn--55qx5dmicrosoftpropertybasketballhomegoodscorsicajewelrygallerygrocerysurgerycountrybrusselsverisignferreroxn--czr694bhdfcbankcommbanksoftbankپاكستانپاکستانnextdirectالسعوديهالعليانxn--h2brj9c8cxn--80adxhksshikshaxn--mgbai9azgqp6jcuisinellabarclayscatholicxn--kpry57dcompanyxn--xhq521bblackfridayxn--mgba3a3ejtsandvikxn--d1acj3bacademydownloadمليسياxn--j1amhxn--w4r85el8fhu5dnraipirangaathletaxn--fhbeixn--mgbqly7cvafrzuerichxn--c2br7gஇலங்கைcontractorsxn--io0a7igraphicsinsurancetemasekxn--xkc2al3hye2amotorcyclesphotographydirectoryplumbingxn--vhquvclothingtrainingcleaningwilliamhilllightingxn--mgba3a4f16ashoppingcateringeducationokinawapicturesventuresproductionsxn--9et52uwalmartഭാരതംsupportrealestatecapitalonexn--nqv7fs00emaauspostfloristdentistxn--qxamgodaddybradescobargainsmitsubishikerryhotelsxn--9dbq2axn--3pxu8kimmobilienxn--fjq720axn--mgbtx2bholidaymckinseymadridbusinessbuildershelsinkixn--4gbrimмоскваالسعودیةcoffeedegreelacaixapartnersalsaceofficeabbvievoyageorangegeorgeonlinechromemobilekindlegoogleoraclecircleschulesecureinsurexn--mgba7c0bbn0aestatexn--mgbc0a9azcgcruisehangoutxn--vuq861bxn--42c2d9arexrothfirestoneuniversityxn--nnx388alifeinsuranceextraspaceонлайнvermögensberatersoftwarexn--fiqs8sxn--mgbab2bdxn--w4rs40ltiendaभारतम्africatoyotaotsukasakuracameracreditcardnagoyaconsultingnetworkjunipertheatermonsterprogressivepioneerxn--55qw42gracingdatingvotingvikinglivinggivingxn--bck1b9a5dre4cbrotherweatherjoburgفلسطينlplfinancialxn--clchc0ea0b2g2a9gcdfutbolschoolsocialglobaldentalwoodsidechanelairtelmatteltravelrealtorwebcamstreamభారత్unicomalstomxn--nodexn--6frz82gmuseumfurniturexn--rvc1e0am3exn--mix891faccenturexn--11b4c3dismailineustardiscountquebeccomsecclinicservicesxn--y9a3aqxn--c1avgswatchchurchsearchالاردنmarketingcontacthealthmonashshoujisanofitaipeiamericanexpresssuzukiアマゾンクラウドポイントbhartiグーグルxn--mgberp4a5d4armemorialxn--1qqw23alondonmormoninstitutevisionbostonnortoncouponmaisonamazonvirginberlindesigndurbanolayannissananquanxihuanhitachikaufengardenreisenbayerntechnologydatsunxn--90a3aclatinocasinostudiophysioxn--ngbe9e0apharmacytattootaobaoaramcoexpertreportabbottdirectselectimamatfairwindspictettargetmarketintuittravelersinsurancecreditdupontryukyusuppliesxn--tckwebnpparibasschmidtmerckmsdyodobashirestaurantbridgestonecricketxn--fpcrj9c3dbostikbroadwayattorneylefrakemerckxn--fiq228c5hscareersfarmerswinnersflowersxn--wgbh1cguitarsxn--54b7fta0ccxn--p1acfmakeupgalluplandroverxn--kcrx77d1x4agoldpointbauhausxn--mgbayh7gpahiphopplaystationxn--mgba3a4fraxn--eckvdtc9dhyundaixn--gckr3f0fistanbulticketsmarketsflightschintaireviewsxn--3e0b707ewindowsxn--fiqz9sfinancialxn--fzys8d69uvgmابوظبيdiscoverreviewবাংলাxn--5su34j936bgsgmoscowobserverapartmentsдетиارامكوсайтeurovisionxn--i1b6b1a6a2exn--xkc2dl3a5ee0hتونسموقعبارتڀارتشبكةعمانبيتكعراقreadkredbondlandbandfundfoodprodgoldfordtubecafesafelifeggeeieeefreefagepagegugezonewinememenamegamesaleablebikenikelikecarecbreherefiresaveloveliveblueartedatesitevotecaseluxebofamodaltdaasdatiaayogasinavanashiaasiajavabbvatevavivadatazaraarpacasavisasncfprofmaifsurfgolfdvagsongbingpingwangkpmggoogblogpohlfailcooldellcalldeallidlsarlfilmteamroomfarmimdbarabclubhdfcicbchsbcgmbhrichtechfishdishcashminiernikddiaudiwikimobitaxicitikiwidesiqponskinloanakdnwienopenporncerntownimmolimoolloinfonicofidolegosaxozeroaerovivoautovotomotofastbestresthostpostnextlgbtchatseatgiftmeetdietreitmintrentgentspotscotguruitausohumenucyoubanklinkpinkdclktalksilkbookseekworkrsvpaarpjeepshopcoophelpcamppccwshowbeerstarruhrflirweirhaircarsparsjprshausplusnewstipstoysjobskidsfanspicsdocsxboxamexsexynavycitysonyarmyallybabyplaydeliverybuzzgbizlamborghiniphilipsලංකාಭಾರತfitnessexpresslanxesspfizercenterwalterlawyersoccercareerkosherbrokerlockerdealerdoctorauthorxn--mgbqly7c0a67fbcvermögensberatungjaguarxn--pssy2uxn--hxt814eflickrrepairrogersairbusxn--mgbai9a5eva00beventsyachtsxn--t60b56aভাৰতভারতभारतभारोतviajeshermeshughesxn--j1aefसंगठनvillasଭାରତclaimshotelsભારતzapposphotosjuegoscondostatamotorsgratistennisਭਾਰਤtkmaxxtjmaxxschaeffleryandexxn--80aswgrealtysafetybeautyluxuryxn--3ds443gsupplyfamilyxn--o3cw4hhockeysydneyxn--90aenissayalipayenergycomputeragencyxn--rovu88b電訊盈科xn--gecrj9cstatefarmaccountantaquarelleolayangroup香格里拉xn--p1ai组织机构xn--1ck2e1bxn--mgbt3dhdschwarzموريتانياabudhabinowruzkomatsufujitsuhospitalxn--80asehdbxn--mgbtf8flxn--j6w193gxn--yfro4i67oprudentialxn--flw351ecruisescoursesrecipesxn--e1a4cferrarixn--ses554gxn--wgbl6awatchesstaplessinglesxn--mgbcpq6gpa1axn--otu796dpropertiescreditunionxn--mgbah1a3hjkrdstockholmhisamitsuالسعوديةstcgroupdomainsoriginscouponsbloombergclubmedfroganslimitedxn--80aqecdr1aexposedinternationalequipmentbarclaycardxn--q7ce6axn--mgbi4ecexpprotectionassociatesconstructionxn--cck2b3bxn--45q11candroidfoundationישראלxn--mgbca7dzdocliniqueboutiqueengineerxn--qxa6asystemsfirmdalefashionauctionxn--nqv7finfinitirentalsreliancetradingweddingfishinghostinggentingbookingcookingxn--3hcrj9cgraingerxn--czrs0tdemocratsamsungyokohamaxn--h2breg3evexn--nyqy26alundbeckmelbournevacationssolutionsfrontierxn--vermgensberatung-pwbmanagementxn--cg4bkixn--mgb2ddeslincolnhamburgsandvikcoromantblockbusterairforcebarefootxn--4dbrk0ceinvestmentsfeedbackcommunityxn--ngbrxالبحرينdiamondsamsterdamhealthcareredumbrellaxn--mxtq1mxn--2scrj9cagakhanxn--mgbpl2fhкатоликcaravanசிங்கப்பூர்richardlimortgageamericanfamilyxn--fzc2c9e2cscholarshipssaarlandxn--imr513nvlaanderensamsclubgoodyearkitchenஇந்தியாweatherchannelallfinanzxn--kput3iالسعودیۃxn--90aisxn--efvy88hالجزائرxn--mgbaam7a8hexchangejpmorganxn--tiq49xqyjfidelitysecurityxn--mk1bu44cwanggouxn--fiq64bxn--6qq986b3xlxn--mgbbh1a71exn--80ao21amarshallsxn--5tzm5gtravelerspanasoniclatrobeyoutubeaccountantsxn--rhqv96gxn--cckwcxetdanalyticsxn--ygbi2ammxبازاربھارتسوريةorganicfreseniusسورياxn--9krt00axn--qcka1pmcxn--jlq480n2rgdeloittesciencefinancexn--jvr189mxn--30rr7yhomesensehotmailbaseballfootballleclercboehringerxn--q9jyb4cxn--mix082fاليمنهمراهpolitieسودانايرانایرانnetflixyamaxunxn--lgbbat1ad8jcollegestoragecapetowncolognekerrypropertiesxn--mgbgu82axn--ogbpf8flxn--czru2dwhoswhociprianilasallexn--g2xx48cforsalebanamexaudiblexn--vermgensberater-ctbxn--zfr164bericssonvanguardxn--45brj9cindustriestheatremarriottxn--3bst00mcomparexn--mgberp4a5d4a87gcapitaldigitalالمغربbarcelonashangrilaxn--d1alfcalvinkleinwwwcitysapporokawasakinagoyasendaikobekitakyushuyokohamackjp",zre=621,jre=625,zU=Ol.length,jU=G0.length,FU=new Uint32Array(jU),h0=new Uint32Array(jU),BE=new Int32Array(zU).fill(-1);for(let t=0,e=0;t<zU;t+=1)for(let n=V0[t];n<V0[t+1];n+=1){FU[n]=e;const r=e+G0[n];let a=5381;for(let s=r-1;s>=e;s-=1)a=a*33^FE.charCodeAt(s);h0[n]=a>>>0,G0[n]===1&&FE.charCodeAt(e)===42&&(BE[t]=n),e=r}let go=-1,$E=0,HE=0;function V6(t,e,n,r){if(G0[t]!==r)return!1;const a=FU[t];for(let s=0;s<r;s+=1)if(FE.charCodeAt(a+s)!==e.charCodeAt(n+s))return!1;return!0}function G6(t,e,n,r,a){let s=V0[t],i=V0[t+1];for(;s<i;){const u=s+i>>>1,c=h0[u];if(c<e)s=u+1;else if(c>e)i=u;else{for(let f=u;f>=s&&h0[f]===e;f-=1)if(V6(f,n,r,a))return f;for(let f=u+1;f<i&&h0[f]===e;f+=1)if(V6(f,n,r,a))return f;return-1}}return-1}function K6(t,e,n){let r=e,a=t.length,s=5381;go=-1;for(let u=t.length-1;u>=0;u-=1){const c=t.charCodeAt(u);if(c===46){const f=u+1;let h=G6(r,s>>>0,t,f,a-f);if(h===-1&&(h=BE[r]),h===-1)return go!==-1;r=W6[h],(Ol[r]&n)!==0&&(go=r,$E=f,HE=a),a=u,s=5381}else s=s*33^c}let i=G6(r,s>>>0,t,0,a);return i===-1&&(i=BE[r]),i!==-1&&(r=W6[i],(Ol[r]&n)!==0&&(go=r,$E=0,HE=a)),go!==-1}function xRe(t,e,n){if(Ure(t,e,n))return;const r=(e.allowPrivateDomains?2:0)|(e.allowIcannDomains?1:0);if(K6(t,jre,r)){n.isIcann=(Ol[go]&1)!==0,n.isPrivate=(Ol[go]&2)!==0,n.publicSuffix=t.slice(HE+1);return}if(K6(t,zre,r)){n.isIcann=(Ol[go]&1)!==0,n.isPrivate=(Ol[go]&2)!==0,n.publicSuffix=t.slice($E);return}n.isIcann=!1,n.isPrivate=!1;const a=t.lastIndexOf(".");n.publicSuffix=a===-1?t:t.slice(a+1)}const Fre=()=>C.jsxs("div",{className:"hidden h-full w-[17%] min-w-40 max-w-64 shrink-0 flex-col gap-1 border-r border-line p-3 md:flex",children:[C.jsx("div",{className:"mb-3 h-6 w-24 rounded bg-surface-sunken"}),Array.from({length:6}).map((t,e)=>C.jsxs("div",{className:"flex items-center gap-2 py-1.5",children:[C.jsx("div",{className:"size-5 shrink-0 rounded bg-surface-sunken"}),C.jsx("div",{className:"h-3.5 flex-1 rounded bg-surface-sunken"})]},e))]}),Bre=()=>C.jsx("div",{className:"min-w-0 flex-1",children:Array.from({length:8}).map((t,e)=>C.jsxs("div",{className:"flex items-start gap-3 border-b border-line py-2 pl-5 pr-4",children:[C.jsx("div",{className:"mt-0.5 size-7 shrink-0 rounded-full bg-surface-sunken"}),C.jsxs("div",{className:"flex-1 space-y-1.5",children:[C.jsxs("div",{className:"flex justify-between gap-2",children:[C.jsx("div",{className:"h-3.5 w-28 rounded bg-surface-sunken"}),C.jsx("div",{className:"h-3 w-12 rounded bg-surface-sunken"})]}),C.jsx("div",{className:"h-3.5 w-48 rounded bg-surface-sunken"}),C.jsx("div",{className:"h-3 w-full rounded bg-surface-sunken"})]})]},e))}),ak=()=>C.jsxs("div",{className:"flex h-full animate-pulse bg-canvas","aria-hidden":"true",children:[C.jsx(Fre,{}),C.jsx(Bre,{})]}),sk="bbf55a105438bdc9d62ea302bc42fed0f1c91a7c",$re="2026-08-06T03:32:12.516Z",Hre=sk.slice(0,7),qre=/^[0-9a-f]{40}$/.test(sk),Wre=qre?`https://github.com/remit-mail/reader/commit/${sk}`:void 0,Vre="https://github.com/remit-mail/reader/issues/new";class qE extends Error{constructor(e,n,r){super(e),this.status=n,this.body=r,this.name="ApiError"}status;body}const fu=t=>{if(t instanceof qE)return t.status;if(t&&typeof t=="object"){const e=t;if(typeof e.status=="number")return e.status;if(typeof e.statusCode=="number")return e.statusCode}},BU=t=>fu(t)!==void 0,uv=t=>{const e=fu(t);return e!==void 0&&e>=500&&e<=599},cv=t=>!!(typeof DOMException<"u"&&t instanceof DOMException&&t.name==="AbortError"||t&&typeof t=="object"&&"name"in t&&t.name==="AbortError"),Gre=()=>typeof navigator<"u"&&navigator.onLine===!1,$U=t=>cv(t)||BU(t)?!1:t instanceof q_?!0:Gre(),Kre=t=>!BU(t)&&!cv(t)&&!$U(t),HU=t=>uv(t)||Kre(t),Yre=t=>t?.softError===!0,qU=(t,e)=>uv(t)?!0:cv(t)||$U(t)?!1:HU(t)?!0:!Yre(e),Zre=t=>uv(t),WE=new Set;let WU=null,VU=null;const Xre=t=>{VU=t},Qre=t=>t instanceof Error?t:new Error(GU(t)),GU=t=>t instanceof Error?t.message||t.name:typeof t=="string"?t:t&&typeof t=="object"&&"message"in t&&typeof t.message=="string"?t.message:"An unexpected server error occurred.",Jre=()=>typeof globalThis.crypto<"u"&&typeof globalThis.crypto.randomUUID=="function"?globalThis.crypto.randomUUID():`fatal-${Date.now()}-${Math.random().toString(36).slice(2,10)}`,Yl=(t,e)=>{const n={error:t,message:GU(t),correlationId:Jre(),at:Date.now(),recoverable:e?.recoverable??Zre(t),stack:t instanceof Error?t.stack:void 0,componentStack:e?.componentStack};WU=n,sae(`Fatal: ${n.message} [${n.correlationId}]`),VU?.recordError(Qre(t),{fatal:"true",correlationId:n.correlationId});for(const r of WE)r(n);return n},eae=t=>(WE.add(t),()=>{WE.delete(t)}),tae=()=>WU,nae=20,p0=[],rae=new Set(["ResizeObserver loop limit exceeded","ResizeObserver loop completed with undelivered notifications"]);function aae(t){return typeof t!="string"?!1:rae.has(t.replace(/\.\s*$/,""))}function m0(t){p0.push(t),p0.length>nae&&p0.shift()}function sae(t){m0(t)}function oae(t){return t.map(e=>{if(typeof e=="string")return e;if(e instanceof Error)return`${e.name}: ${e.message}`;try{return JSON.stringify(e)}catch{return String(e)}}).join(" ")}function iae(){const t=console.error.bind(console);console.error=(...e)=>{m0(oae(e)),t(...e)},window.addEventListener("error",e=>{aae(e.message)||(m0(`Uncaught ${e.error instanceof Error?`${e.error.name}: ${e.error.message}`:String(e.message)} (${e.filename}:${e.lineno})`),Yl(e.error??e.message))}),window.addEventListener("unhandledrejection",e=>{const n=e.reason,r=n instanceof Error?`${n.name}: ${n.message}`:String(n);m0(`Unhandled rejection: ${r}`),Yl(n)})}function lae(){return p0.slice()}const uae=8,Cc=[];function cae(t){const e=t.split(/[?#]/)[0],n=Cc[Cc.length-1];n&&n.path===e||(Cc.push({path:e,timestamp:new Date().toISOString()}),Cc.length>uae&&Cc.shift())}function dae(){return Cc.slice()}const HS=7500,Y6=`
149
149
  … (truncated — the copy action on this screen has the full report)`;function VE(t){return{appShortSha:Hre,appCommitUrl:Wre,appBuildTime:$re,userAgent:navigator.userAgent,viewport:`${window.innerWidth}×${window.innerHeight}`,timestamp:new Date().toISOString(),timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,href:window.location.href,recentErrors:lae(),requests:JQ(),routes:dae(),failingRequest:eJ(),errorMessage:t?.errorMessage,stack:t?.stack,componentStack:t?.componentStack,quarantine:t?.quarantine,title:t?.title}}function qS(t){return["```",t,"```"].join(`
150
150
  `)}function KU(t){const e=/T(\d{2}:\d{2}:\d{2})/.exec(t);return e?e[1]:t}function fae(t){return`- **Version**: ${t.appCommitUrl?`[\`${t.appShortSha}\`](${t.appCommitUrl})`:`\`${t.appShortSha}\``} built ${t.appBuildTime}`}function hae(t){const e=t.status===0?"no response (transport failure)":`${t.status}`;return["## Failing request",`- **Endpoint**: \`${t.path}\``,`- **Method**: ${t.method}`,`- **Status**: ${e}`,`- **Correlation id**: ${t.correlationId??"(none)"}`,""]}function pae(t){return t.length===0?["## Recent API requests","(none)",""]:["## Recent API requests","| Time | Method | Path | Status | Duration | Correlation |","| --- | --- | --- | --- | --- | --- |",...t.map(n=>{const r=n.status===0?"ERR":`${n.status}`;return`| ${KU(n.timestamp)} | ${n.method} | \`${n.path}\` | ${r} | ${n.durationMs}ms | ${n.correlationId??""} |`}),""]}function mae(t){return t.length===0?["## Navigation trail","(none)",""]:["## Navigation trail",...t.map(n=>`- ${KU(n.timestamp)} \`${n.path}\``),""]}function YU(t,e){const n=t.recentErrors.length>0?t.recentErrors.map(s=>` - ${s}`).join(`
151
151
  `):" (none)",r=["## Environment",fae(t),`- **Browser**: ${t.userAgent}`,`- **Viewport**: ${t.viewport}`,`- **Time**: ${t.timestamp} (${t.timezone})`,"","## URL",t.href,""];if(t.errorMessage&&r.push("## Error",t.errorMessage,""),t.failingRequest&&r.push(...hae(t.failingRequest)),t.quarantine){const s=e?.quarantineStructure??t.quarantine.structure;r.push(t.quarantine.head,"",qS(s),"",t.quarantine.disclaimer,"")}const a=e?.stack??t.stack;return a&&r.push("## Stacktrace",qS(a),""),t.componentStack&&r.push("## Component stack",qS(t.componentStack),""),r.push(...pae(t.requests)),r.push(...mae(t.routes)),r.push("## Recent console errors",n,"","## Steps to reproduce","1. ","","## Expected behaviour","","## Actual behaviour",""),r.join(`
@@ -290,5 +290,5 @@ https://www.w3ctech.com/topic/2226`));let u=n(...i);return u.postcssPlugin=e,u.p
290
290
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),v1.LANG&&v1.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
291
291
  https://www.w3ctech.com/topic/2226`));let u=n(...i);return u.postcssPlugin=e,u.postcssVersion=new XA().version,u}let s;return Object.defineProperty(a,"postcss",{get(){return s||(s=a()),s}}),a.process=function(i,u,c){return zt([a(c)]).process(i,u)},a};zt.stringify=bCe;zt.parse=ECe;zt.fromJSON=SCe;zt.list=_Ce;zt.comment=t=>new P$(t);zt.atRule=t=>new D$(t);zt.decl=t=>new N$(t);zt.rule=t=>new L$(t);zt.root=t=>new U$(t);zt.document=t=>new M$(t);zt.CssSyntaxError=gCe;zt.Declaration=N$;zt.Container=yCe;zt.Processor=XA;zt.Document=M$;zt.Comment=P$;zt.Warning=wCe;zt.AtRule=D$;zt.Result=xCe;zt.Input=CCe;zt.Rule=L$;zt.Root=U$;zt.Node=kCe;vCe.registerPostcss(zt);var ACe=zt;zt.default=zt;const un=Fxe(ACe);un.stringify;un.fromJSON;un.plugin;un.parse;un.list;un.document;un.comment;un.atRule;un.rule;un.decl;un.root;un.CssSyntaxError;un.Declaration;un.Container;un.Processor;un.Document;un.Comment;un.Warning;un.AtRule;un.Result;un.Input;un.Rule;un.Root;un.Node;class QA{constructor(...e){Ea(this,"parentElement",null),Ea(this,"parentNode",null),Ea(this,"ownerDocument"),Ea(this,"firstChild",null),Ea(this,"lastChild",null),Ea(this,"previousSibling",null),Ea(this,"nextSibling",null),Ea(this,"ELEMENT_NODE",1),Ea(this,"TEXT_NODE",3),Ea(this,"nodeType"),Ea(this,"nodeName"),Ea(this,"RRNodeType")}get childNodes(){const e=[];let n=this.firstChild;for(;n;)e.push(n),n=n.nextSibling;return e}contains(e){if(e instanceof QA){if(e.ownerDocument!==this.ownerDocument)return!1;if(e===this)return!0}else return!1;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}return!1}appendChild(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,n){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}const JP={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},e9={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Yg={},TCe=()=>!!globalThis.Zone;function JA(t){if(Yg[t])return Yg[t];const e=globalThis[t],n=e.prototype,r=t in JP?JP[t]:void 0,a=!!(r&&r.every(u=>{var c,f;return!!((f=(c=Object.getOwnPropertyDescriptor(n,u))==null?void 0:c.get)!=null&&f.toString().includes("[native code]"))})),s=t in e9?e9[t]:void 0,i=!!(s&&s.every(u=>{var c;return typeof n[u]=="function"&&((c=n[u])==null?void 0:c.toString().includes("[native code]"))}));if(a&&i&&!TCe())return Yg[t]=e.prototype,e.prototype;try{const u=document.createElement("iframe");document.body.appendChild(u);const c=u.contentWindow;if(!c)return e.prototype;const f=c[t].prototype;return document.body.removeChild(u),f?Yg[t]=f:n}catch{return n}}const eE={};function zo(t,e,n){var r;const a=`${t}.${String(n)}`;if(eE[a])return eE[a].call(e);const s=JA(t),i=(r=Object.getOwnPropertyDescriptor(s,n))==null?void 0:r.get;return i?(eE[a]=i,i.call(e)):e[n]}const tE={};function z$(t,e,n){const r=`${t}.${String(n)}`;if(tE[r])return tE[r].bind(e);const s=JA(t)[n];return typeof s!="function"?e[n]:(tE[r]=s,s.bind(e))}function RCe(t){return zo("Node",t,"ownerDocument")}function ICe(t){return zo("Node",t,"childNodes")}function OCe(t){return zo("Node",t,"parentNode")}function NCe(t){return zo("Node",t,"parentElement")}function MCe(t){return zo("Node",t,"textContent")}function PCe(t,e){return z$("Node",t,"contains")(e)}function DCe(t){return z$("Node",t,"getRootNode")()}function LCe(t){return!t||!("host"in t)?null:zo("ShadowRoot",t,"host")}function UCe(t){return t.styleSheets}function zCe(t){return!t||!("shadowRoot"in t)?null:zo("Element",t,"shadowRoot")}function jCe(t,e){return zo("Element",t,"querySelector")(e)}function FCe(t,e){return zo("Element",t,"querySelectorAll")(e)}function j$(){return JA("MutationObserver").constructor}function wu(t,e,n){try{if(!(e in t))return()=>{};const r=t[e],a=n(r);return typeof a=="function"&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:r}})),t[e]=a,()=>{t[e]=r}}catch{return()=>{}}}const at={ownerDocument:RCe,childNodes:ICe,parentNode:OCe,parentElement:NCe,textContent:MCe,contains:PCe,getRootNode:DCe,host:LCe,styleSheets:UCe,shadowRoot:zCe,querySelector:jCe,querySelectorAll:FCe,mutationObserver:j$,patch:wu};function Cr(t,e,n=document){const r={capture:!0,passive:!0};return n.addEventListener(t,e,r),()=>n.removeEventListener(t,e,r)}const Ac=`Please stop import mirror directly. Instead of that,\r
292
292
  now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
293
- or you can use record.mirror to access the mirror instance during recording.`;let t9={map:{},getId(){return console.error(Ac),-1},getNode(){return console.error(Ac),null},removeNodeFromMap(){console.error(Ac)},has(){return console.error(Ac),!1},reset(){console.error(Ac)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(t9=new Proxy(t9,{get(t,e,n){return e==="map"&&console.error(Ac),Reflect.get(t,e,n)}}));function op(t,e,n={}){let r=null,a=0;return function(...s){const i=Date.now();!a&&n.leading===!1&&(a=i);const u=e-(i-a),c=this;u<=0||u>e?(r&&(clearTimeout(r),r=null),a=i,t.apply(c,s)):!r&&n.trailing!==!1&&(r=setTimeout(()=>{a=n.leading===!1?0:Date.now(),r=null,t.apply(c,s)},u))}}function iy(t,e,n,r,a=window){const s=a.Object.getOwnPropertyDescriptor(t,e);return a.Object.defineProperty(t,e,r?n:{set(i){setTimeout(()=>{n.set.call(this,i)},0),s&&s.set&&s.set.call(this,i)}}),()=>iy(t,e,s||{},!0)}let I1=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(I1=()=>new Date().getTime());function F$(t){var e,n,r,a;const s=t.document;return{left:s.scrollingElement?s.scrollingElement.scrollLeft:t.pageXOffset!==void 0?t.pageXOffset:s.documentElement.scrollLeft||s?.body&&((e=at.parentElement(s.body))==null?void 0:e.scrollLeft)||((n=s?.body)==null?void 0:n.scrollLeft)||0,top:s.scrollingElement?s.scrollingElement.scrollTop:t.pageYOffset!==void 0?t.pageYOffset:s?.documentElement.scrollTop||s?.body&&((r=at.parentElement(s.body))==null?void 0:r.scrollTop)||((a=s?.body)==null?void 0:a.scrollTop)||0}}function B$(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function $$(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function H$(t){return t?t.nodeType===t.ELEMENT_NODE?t:at.parentElement(t):null}function Er(t,e,n,r){if(!t)return!1;const a=H$(t);if(!a)return!1;try{if(typeof e=="string"){if(a.classList.contains(e)||r&&a.closest("."+e)!==null)return!0}else if(w1(a,e,r))return!0}catch{}return!!(n&&(a.matches(n)||r&&a.closest(n)!==null))}function BCe(t,e){return e.getId(t)!==-1}function nE(t,e,n){return t.tagName==="TITLE"&&n.headTitleMutations?!0:e.getId(t)===Xh}function q$(t,e){if(_h(t))return!1;const n=e.getId(t);if(!e.has(n))return!0;const r=at.parentNode(t);return r&&r.nodeType===t.DOCUMENT_NODE?!1:r?q$(r,e):!0}function o_(t){return!!t.changedTouches}function $Ce(t=window){"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function W$(t,e){return!!(t.nodeName==="IFRAME"&&e.getMeta(t))}function V$(t,e){return!!(t.nodeName==="LINK"&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&t.getAttribute("rel")==="stylesheet"&&e.getMeta(t))}function i_(t){return t?t instanceof QA&&"shadowRoot"in t?!!t.shadowRoot:!!at.shadowRoot(t):!1}class HCe{constructor(){we(this,"id",1),we(this,"styleIDMap",new WeakMap),we(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,n){if(this.has(e))return this.getId(e);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function G$(t){var e;let n=null;return"getRootNode"in t&&((e=at.getRootNode(t))==null?void 0:e.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&at.host(at.getRootNode(t))&&(n=at.host(at.getRootNode(t))),n}function qCe(t){let e=t,n;for(;n=G$(e);)e=n;return e}function WCe(t){const e=at.ownerDocument(t);if(!e)return!1;const n=qCe(t);return at.contains(e,n)}function K$(t){const e=at.ownerDocument(t);return e?at.contains(e,t)||WCe(t):!1}var Ct=(t=>(t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t))(Ct||{}),ht=(t=>(t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet",t[t.CustomElement=16]="CustomElement",t))(ht||{}),zr=(t=>(t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel",t))(zr||{}),co=(t=>(t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t))(co||{}),id=(t=>(t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2",t))(id||{}),Tc=(t=>(t[t.Play=0]="Play",t[t.Pause=1]="Pause",t[t.Seeked=2]="Seeked",t[t.VolumeChange=3]="VolumeChange",t[t.RateChange=4]="RateChange",t))(Tc||{}),Y$=(t=>(t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment",t))(Y$||{});function n9(t){return"__ln"in t}class VCe{constructor(){we(this,"length",0),we(this,"head",null),we(this,"tail",null)}get(e){if(e>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<e;r++)n=n?.next||null;return n}addNode(e){const n={value:e,previous:null,next:null};if(e.__ln=n,e.previousSibling&&n9(e.previousSibling)){const r=e.previousSibling.__ln.next;n.next=r,n.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(e.nextSibling&&n9(e.nextSibling)&&e.nextSibling.__ln.previous){const r=e.nextSibling.__ln.previous;n.previous=r,n.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(e){const n=e.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const r9=(t,e)=>`${t}@${e}`;class GCe{constructor(){we(this,"frozen",!1),we(this,"locked",!1),we(this,"texts",[]),we(this,"attributes",[]),we(this,"attributeMap",new WeakMap),we(this,"removes",[]),we(this,"mapRemoves",[]),we(this,"movedMap",{}),we(this,"addedSet",new Set),we(this,"movedSet",new Set),we(this,"droppedSet",new Set),we(this,"removesSubTreeCache",new Set),we(this,"mutationCb"),we(this,"blockClass"),we(this,"blockSelector"),we(this,"maskTextClass"),we(this,"maskTextSelector"),we(this,"inlineStylesheet"),we(this,"maskInputOptions"),we(this,"maskTextFn"),we(this,"maskInputFn"),we(this,"keepIframeSrcFn"),we(this,"recordCanvas"),we(this,"inlineImages"),we(this,"slimDOMOptions"),we(this,"dataURLOptions"),we(this,"doc"),we(this,"mirror"),we(this,"iframeManager"),we(this,"stylesheetManager"),we(this,"shadowDomManager"),we(this,"canvasManager"),we(this,"processedNodeManager"),we(this,"unattachedDoc"),we(this,"processMutations",e=>{e.forEach(this.processMutation),this.emit()}),we(this,"emit",()=>{if(this.frozen||this.locked)return;const e=[],n=new Set,r=new VCe,a=c=>{let f=c,h=Xh;for(;h===Xh;)f=f&&f.nextSibling,h=f&&this.mirror.getId(f);return h},s=c=>{const f=at.parentNode(c);if(!f||!K$(c))return;let h=!1;if(c.nodeType===Node.TEXT_NODE){const S=f.tagName;if(S==="TEXTAREA")return;S==="STYLE"&&this.addedSet.has(f)&&(h=!0)}const m=_h(f)?this.mirror.getId(G$(c)):this.mirror.getId(f),g=a(c);if(m===-1||g===-1)return r.addNode(c);const y=Uc(c,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:S=>{W$(S,this.mirror)&&this.iframeManager.addIframe(S),V$(S,this.mirror)&&this.stylesheetManager.trackLinkElement(S),i_(c)&&this.shadowDomManager.addShadowRoot(at.shadowRoot(c),this.doc)},onIframeLoad:(S,w)=>{this.iframeManager.attachIframe(S,w),this.shadowDomManager.observeAttachShadow(S)},onStylesheetLoad:(S,w)=>{this.stylesheetManager.attachLinkElement(S,w)},cssCaptured:h});y&&(e.push({parentId:m,nextId:g,node:y}),n.add(y.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const c of this.movedSet)a9(this.removesSubTreeCache,c,this.mirror)&&!this.movedSet.has(at.parentNode(c))||s(c);for(const c of this.addedSet)!s9(this.droppedSet,c)&&!a9(this.removesSubTreeCache,c,this.mirror)||s9(this.movedSet,c)?s(c):this.droppedSet.add(c);let i=null;for(;r.length;){let c=null;if(i){const f=this.mirror.getId(at.parentNode(i.value)),h=a(i.value);f!==-1&&h!==-1&&(c=i)}if(!c){let f=r.tail;for(;f;){const h=f;if(f=f.previous,h){const m=this.mirror.getId(at.parentNode(h.value));if(a(h.value)===-1)continue;if(m!==-1){c=h;break}else{const y=h.value,S=at.parentNode(y);if(S&&S.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const w=at.host(S);if(this.mirror.getId(w)!==-1){c=h;break}}}}}}if(!c){for(;r.head;)r.removeNode(r.head.value);break}i=c.previous,r.removeNode(c.value),s(c.value)}const u={texts:this.texts.map(c=>{const f=c.node,h=at.parentNode(f);return h&&h.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(h),{id:this.mirror.getId(f),value:c.value}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{const{attributes:f}=c;if(typeof f.style=="string"){const h=JSON.stringify(c.styleDiff),m=JSON.stringify(c._unchangedStyles);h.length<f.style.length&&(h+m).split("var(").length===f.style.split("var(").length&&(f.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:f}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:e};!u.texts.length&&!u.attributes.length&&!u.removes.length&&!u.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(u))}),we(this,"genTextAreaValueMutation",e=>{let n=this.attributeMap.get(e);n||(n={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(n),this.attributeMap.set(e,n));const r=Array.from(at.childNodes(e),a=>at.textContent(a)||"").join("");n.attributes.value=y1({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:b1(e),value:r,maskInputFn:this.maskInputFn})}),we(this,"processMutation",e=>{if(!nE(e.target,this.mirror,this.slimDOMOptions))switch(e.type){case"characterData":{const n=at.textContent(e.target);!Er(e.target,this.blockClass,this.blockSelector,!1)&&n!==e.oldValue&&this.texts.push({value:yB(e.target,this.maskTextClass,this.maskTextSelector,!0)&&n?this.maskTextFn?this.maskTextFn(n,H$(e.target)):n.replace(/[\S]/g,"*"):n,node:e.target});break}case"attributes":{const n=e.target;let r=e.attributeName,a=e.target.getAttribute(r);if(r==="value"){const i=b1(n);a=y1({element:n,maskInputOptions:this.maskInputOptions,tagName:n.tagName,type:i,value:a,maskInputFn:this.maskInputFn})}if(Er(e.target,this.blockClass,this.blockSelector,!1)||a===e.oldValue)return;let s=this.attributeMap.get(e.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(a))if(!n.contentDocument)r="rr_src";else return;if(s||(s={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(e.target,s)),r==="type"&&n.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!vB(n.tagName,r))if(s.attributes[r]=gB(this.doc,ru(n.tagName),ru(r),a),r==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const i=this.unattachedDoc.createElement("span");e.oldValue&&i.setAttribute("style",e.oldValue);for(const u of Array.from(n.style)){const c=n.style.getPropertyValue(u),f=n.style.getPropertyPriority(u);c!==i.style.getPropertyValue(u)||f!==i.style.getPropertyPriority(u)?f===""?s.styleDiff[u]=c:s.styleDiff[u]=[c,f]:s._unchangedStyles[u]=[c,f]}for(const u of Array.from(i.style))n.style.getPropertyValue(u)===""&&(s.styleDiff[u]=!1)}else r==="open"&&n.tagName==="DIALOG"&&(n.matches("dialog:modal")?s.attributes.rr_open_mode="modal":s.attributes.rr_open_mode="non-modal");break}case"childList":{if(Er(e.target,this.blockClass,this.blockSelector,!0))return;if(e.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(e.target);return}e.addedNodes.forEach(n=>this.genAdds(n,e.target)),e.removedNodes.forEach(n=>{const r=this.mirror.getId(n),a=_h(e.target)?this.mirror.getId(at.host(e.target)):this.mirror.getId(e.target);Er(e.target,this.blockClass,this.blockSelector,!1)||nE(n,this.mirror,this.slimDOMOptions)||!BCe(n,this.mirror)||(this.addedSet.has(n)?(l_(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(e.target)&&r===-1||q$(e.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[r9(r,a)]?l_(this.movedSet,n):(this.removes.push({parentId:a,id:r,isShadow:_h(e.target)&&kh(e.target)?!0:void 0}),KCe(n,this.removesSubTreeCache))),this.mapRemoves.push(n))});break}}}),we(this,"genAdds",(e,n)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(nE(e,this.mirror,this.slimDOMOptions))return;this.movedSet.add(e);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[r9(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Er(e,this.blockClass,this.blockSelector,!1)||(at.childNodes(e).forEach(r=>this.genAdds(r)),i_(e)&&at.childNodes(at.shadowRoot(e)).forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,e)}))}})}init(e){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(n=>{this[n]=e[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function l_(t,e){t.delete(e),at.childNodes(e).forEach(n=>l_(t,n))}function KCe(t,e){const n=[t];for(;n.length;){const r=n.pop();e.has(r)||(e.add(r),at.childNodes(r).forEach(a=>n.push(a)))}}function a9(t,e,n){return t.size===0?!1:YCe(t,e)}function YCe(t,e,n){const r=at.parentNode(e);return r?t.has(r):!1}function s9(t,e){return t.size===0?!1:Z$(t,e)}function Z$(t,e){const n=at.parentNode(e);return n?t.has(n)?!0:Z$(t,n):!1}let Ah;function ZCe(t){Ah=t}function XCe(){Ah=void 0}const yt=t=>Ah?(...n)=>{try{return t(...n)}catch(r){if(Ah&&Ah(r)===!0)return;throw r}}:t,Ll=[];function Ip(t){try{if("composedPath"in t){const e=t.composedPath();if(e.length)return e[0]}else if("path"in t&&t.path.length)return t.path[0]}catch{}return t&&t.target}function X$(t,e){const n=new GCe;Ll.push(n),n.init(t);const r=new(j$())(yt(n.processMutations.bind(n)));return r.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),r}function QCe({mousemoveCb:t,sampling:e,doc:n,mirror:r}){if(e.mousemove===!1)return()=>{};const a=typeof e.mousemove=="number"?e.mousemove:50,s=typeof e.mousemoveCallback=="number"?e.mousemoveCallback:500;let i=[],u;const c=op(yt(m=>{const g=Date.now()-u;t(i.map(y=>(y.timeOffset-=g,y)),m),i=[],u=null}),s),f=yt(op(yt(m=>{const g=Ip(m),{clientX:y,clientY:S}=o_(m)?m.changedTouches[0]:m;u||(u=I1()),i.push({x:y,y:S,id:r.getId(g),timeOffset:I1()-u}),c(typeof DragEvent<"u"&&m instanceof DragEvent?ht.Drag:m instanceof MouseEvent?ht.MouseMove:ht.TouchMove)}),a,{trailing:!1})),h=[Cr("mousemove",f,n),Cr("touchmove",f,n),Cr("drag",f,n)];return yt(()=>{h.forEach(m=>m())})}function JCe({mouseInteractionCb:t,doc:e,mirror:n,blockClass:r,blockSelector:a,sampling:s}){if(s.mouseInteraction===!1)return()=>{};const i=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,u=[];let c=null;const f=h=>m=>{const g=Ip(m);if(Er(g,r,a,!0))return;let y=null,S=h;if("pointerType"in m){switch(m.pointerType){case"mouse":y=co.Mouse;break;case"touch":y=co.Touch;break;case"pen":y=co.Pen;break}y===co.Touch?zr[h]===zr.MouseDown?S="TouchStart":zr[h]===zr.MouseUp&&(S="TouchEnd"):co.Pen}else o_(m)&&(y=co.Touch);y!==null?(c=y,(S.startsWith("Touch")&&y===co.Touch||S.startsWith("Mouse")&&y===co.Mouse)&&(y=null)):zr[h]===zr.Click&&(y=c,c=null);const w=o_(m)?m.changedTouches[0]:m;if(!w)return;const x=n.getId(g),{clientX:E,clientY:k}=w;yt(t)({type:zr[S],id:x,x:E,y:k,...y!==null&&{pointerType:y}})};return Object.keys(zr).filter(h=>Number.isNaN(Number(h))&&!h.endsWith("_Departed")&&i[h]!==!1).forEach(h=>{let m=ru(h);const g=f(h);if(window.PointerEvent)switch(zr[h]){case zr.MouseDown:case zr.MouseUp:m=m.replace("mouse","pointer");break;case zr.TouchStart:case zr.TouchEnd:return}u.push(Cr(m,g,e))}),yt(()=>{u.forEach(h=>h())})}function Q$({scrollCb:t,doc:e,mirror:n,blockClass:r,blockSelector:a,sampling:s}){const i=yt(op(yt(u=>{const c=Ip(u);if(!c||Er(c,r,a,!0))return;const f=n.getId(c);if(c===e&&e.defaultView){const h=F$(e.defaultView);t({id:f,x:h.left,y:h.top})}else t({id:f,x:c.scrollLeft,y:c.scrollTop})}),s.scroll||100));return Cr("scroll",i,e)}function eEe({viewportResizeCb:t},{win:e}){let n=-1,r=-1;const a=yt(op(yt(()=>{const s=B$(),i=$$();(n!==s||r!==i)&&(t({width:Number(i),height:Number(s)}),n=s,r=i)}),200));return Cr("resize",a,e)}const tEe=["INPUT","TEXTAREA","SELECT"],o9=new WeakMap;function nEe({inputCb:t,doc:e,mirror:n,blockClass:r,blockSelector:a,ignoreClass:s,ignoreSelector:i,maskInputOptions:u,maskInputFn:c,sampling:f,userTriggeredOnInput:h}){function m(k){let A=Ip(k);const R=k.isTrusted,N=A&&A.tagName;if(A&&N==="OPTION"&&(A=at.parentElement(A)),!A||!N||tEe.indexOf(N)<0||Er(A,r,a,!0)||A.classList.contains(s)||i&&A.matches(i))return;let O=A.value,I=!1;const P=b1(A)||"";P==="radio"||P==="checkbox"?I=A.checked:(u[N.toLowerCase()]||u[P])&&(O=y1({element:A,maskInputOptions:u,tagName:N,type:P,value:O,maskInputFn:c})),g(A,h?{text:O,isChecked:I,userTriggered:R}:{text:O,isChecked:I});const U=A.name;P==="radio"&&U&&I&&e.querySelectorAll(`input[type="radio"][name="${U}"]`).forEach(q=>{if(q!==A){const z=q.value;g(q,h?{text:z,isChecked:!I,userTriggered:!1}:{text:z,isChecked:!I})}})}function g(k,A){const R=o9.get(k);if(!R||R.text!==A.text||R.isChecked!==A.isChecked){o9.set(k,A);const N=n.getId(k);yt(t)({...A,id:N})}}const S=(f.input==="last"?["change"]:["input","change"]).map(k=>Cr(k,yt(m),e)),w=e.defaultView;if(!w)return()=>{S.forEach(k=>k())};const x=w.Object.getOwnPropertyDescriptor(w.HTMLInputElement.prototype,"value"),E=[[w.HTMLInputElement.prototype,"value"],[w.HTMLInputElement.prototype,"checked"],[w.HTMLSelectElement.prototype,"value"],[w.HTMLTextAreaElement.prototype,"value"],[w.HTMLSelectElement.prototype,"selectedIndex"],[w.HTMLOptionElement.prototype,"selected"]];return x&&x.set&&S.push(...E.map(k=>iy(k[0],k[1],{set(){yt(m)({target:this,isTrusted:!1})}},!1,w))),yt(()=>{S.forEach(k=>k())})}function O1(t){const e=[];function n(r,a){if(Zg("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Zg("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Zg("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Zg("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const i=Array.from(r.parentRule.cssRules).indexOf(r);a.unshift(i)}else if(r.parentStyleSheet){const i=Array.from(r.parentStyleSheet.cssRules).indexOf(r);a.unshift(i)}return a}return n(t,e)}function ki(t,e,n){let r,a;return t?(t.ownerNode?r=e.getId(t.ownerNode):a=n.getId(t),{styleId:a,id:r}):{}}function rEe({styleSheetRuleCb:t,mirror:e,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const a=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(a,{apply:yt((h,m,g)=>{const[y,S]=g,{id:w,styleId:x}=ki(m,e,n.styleMirror);return(w&&w!==-1||x&&x!==-1)&&t({id:w,styleId:x,adds:[{rule:y,index:S}]}),h.apply(m,g)})}),r.CSSStyleSheet.prototype.addRule=function(h,m,g=this.cssRules.length){const y=`${h} { ${m} }`;return r.CSSStyleSheet.prototype.insertRule.apply(this,[y,g])};const s=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:yt((h,m,g)=>{const[y]=g,{id:S,styleId:w}=ki(m,e,n.styleMirror);return(S&&S!==-1||w&&w!==-1)&&t({id:S,styleId:w,removes:[{index:y}]}),h.apply(m,g)})}),r.CSSStyleSheet.prototype.removeRule=function(h){return r.CSSStyleSheet.prototype.deleteRule.apply(this,[h])};let i;r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:yt((h,m,g)=>{const[y]=g,{id:S,styleId:w}=ki(m,e,n.styleMirror);return(S&&S!==-1||w&&w!==-1)&&t({id:S,styleId:w,replace:y}),h.apply(m,g)})}));let u;r.CSSStyleSheet.prototype.replaceSync&&(u=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(u,{apply:yt((h,m,g)=>{const[y]=g,{id:S,styleId:w}=ki(m,e,n.styleMirror);return(S&&S!==-1||w&&w!==-1)&&t({id:S,styleId:w,replaceSync:y}),h.apply(m,g)})}));const c={};Xg("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(Xg("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),Xg("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),Xg("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const f={};return Object.entries(c).forEach(([h,m])=>{f[h]={insertRule:m.prototype.insertRule,deleteRule:m.prototype.deleteRule},m.prototype.insertRule=new Proxy(f[h].insertRule,{apply:yt((g,y,S)=>{const[w,x]=S,{id:E,styleId:k}=ki(y.parentStyleSheet,e,n.styleMirror);return(E&&E!==-1||k&&k!==-1)&&t({id:E,styleId:k,adds:[{rule:w,index:[...O1(y),x||0]}]}),g.apply(y,S)})}),m.prototype.deleteRule=new Proxy(f[h].deleteRule,{apply:yt((g,y,S)=>{const[w]=S,{id:x,styleId:E}=ki(y.parentStyleSheet,e,n.styleMirror);return(x&&x!==-1||E&&E!==-1)&&t({id:x,styleId:E,removes:[{index:[...O1(y),w]}]}),g.apply(y,S)})})}),yt(()=>{r.CSSStyleSheet.prototype.insertRule=a,r.CSSStyleSheet.prototype.deleteRule=s,i&&(r.CSSStyleSheet.prototype.replace=i),u&&(r.CSSStyleSheet.prototype.replaceSync=u),Object.entries(c).forEach(([h,m])=>{m.prototype.insertRule=f[h].insertRule,m.prototype.deleteRule=f[h].deleteRule})})}function J$({mirror:t,stylesheetManager:e},n){var r,a,s;let i=null;n.nodeName==="#document"?i=t.getId(n):i=t.getId(at.host(n));const u=n.nodeName==="#document"?(r=n.defaultView)==null?void 0:r.Document:(s=(a=n.ownerDocument)==null?void 0:a.defaultView)==null?void 0:s.ShadowRoot,c=u?.prototype?Object.getOwnPropertyDescriptor(u?.prototype,"adoptedStyleSheets"):void 0;return i===null||i===-1||!u||!c?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get(){var f;return(f=c.get)==null?void 0:f.call(this)},set(f){var h;const m=(h=c.set)==null?void 0:h.call(this,f);if(i!==null&&i!==-1)try{e.adoptStyleSheets(f,i)}catch{}return m}}),yt(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})}))}function aEe({styleDeclarationCb:t,mirror:e,ignoreCSSAttributes:n,stylesheetManager:r},{win:a}){const s=a.CSSStyleDeclaration.prototype.setProperty;a.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:yt((u,c,f)=>{var h;const[m,g,y]=f;if(n.has(m))return s.apply(c,[m,g,y]);const{id:S,styleId:w}=ki((h=c.parentRule)==null?void 0:h.parentStyleSheet,e,r.styleMirror);return(S&&S!==-1||w&&w!==-1)&&t({id:S,styleId:w,set:{property:m,value:g,priority:y},index:O1(c.parentRule)}),u.apply(c,f)})});const i=a.CSSStyleDeclaration.prototype.removeProperty;return a.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:yt((u,c,f)=>{var h;const[m]=f;if(n.has(m))return i.apply(c,[m]);const{id:g,styleId:y}=ki((h=c.parentRule)==null?void 0:h.parentStyleSheet,e,r.styleMirror);return(g&&g!==-1||y&&y!==-1)&&t({id:g,styleId:y,remove:{property:m},index:O1(c.parentRule)}),u.apply(c,f)})}),yt(()=>{a.CSSStyleDeclaration.prototype.setProperty=s,a.CSSStyleDeclaration.prototype.removeProperty=i})}function sEe({mediaInteractionCb:t,blockClass:e,blockSelector:n,mirror:r,sampling:a,doc:s}){const i=yt(c=>op(yt(f=>{const h=Ip(f);if(!h||Er(h,e,n,!0))return;const{currentTime:m,volume:g,muted:y,playbackRate:S,loop:w}=h;t({type:c,id:r.getId(h),currentTime:m,volume:g,muted:y,playbackRate:S,loop:w})}),a.media||500)),u=[Cr("play",i(Tc.Play),s),Cr("pause",i(Tc.Pause),s),Cr("seeked",i(Tc.Seeked),s),Cr("volumechange",i(Tc.VolumeChange),s),Cr("ratechange",i(Tc.RateChange),s)];return yt(()=>{u.forEach(c=>c())})}function oEe({fontCb:t,doc:e}){const n=e.defaultView;if(!n)return()=>{};const r=[],a=new WeakMap,s=n.FontFace;n.FontFace=function(c,f,h){const m=new s(c,f,h);return a.set(m,{family:c,buffer:typeof f!="string",descriptors:h,fontSource:typeof f=="string"?f:JSON.stringify(Array.from(new Uint8Array(f)))}),m};const i=wu(e.fonts,"add",function(u){return function(c){return setTimeout(yt(()=>{const f=a.get(c);f&&(t(f),a.delete(c))}),0),u.apply(this,[c])}});return r.push(()=>{n.FontFace=s}),r.push(i),yt(()=>{r.forEach(u=>u())})}function iEe(t){const{doc:e,mirror:n,blockClass:r,blockSelector:a,selectionCb:s}=t;let i=!0;const u=yt(()=>{const c=e.getSelection();if(!c||i&&c?.isCollapsed)return;i=c.isCollapsed||!1;const f=[],h=c.rangeCount||0;for(let m=0;m<h;m++){const g=c.getRangeAt(m),{startContainer:y,startOffset:S,endContainer:w,endOffset:x}=g;Er(y,r,a,!0)||Er(w,r,a,!0)||f.push({start:n.getId(y),startOffset:S,end:n.getId(w),endOffset:x})}s({ranges:f})});return u(),Cr("selectionchange",u)}function lEe({doc:t,customElementCb:e}){const n=t.defaultView;return!n||!n.customElements?()=>{}:wu(n.customElements,"define",function(a){return function(s,i,u){try{e({define:{name:s}})}catch{console.warn(`Custom element callback failed for ${s}`)}return a.apply(this,[s,i,u])}})}function uEe(t,e){const{mutationCb:n,mousemoveCb:r,mouseInteractionCb:a,scrollCb:s,viewportResizeCb:i,inputCb:u,mediaInteractionCb:c,styleSheetRuleCb:f,styleDeclarationCb:h,canvasMutationCb:m,fontCb:g,selectionCb:y,customElementCb:S}=t;t.mutationCb=(...w)=>{e.mutation&&e.mutation(...w),n(...w)},t.mousemoveCb=(...w)=>{e.mousemove&&e.mousemove(...w),r(...w)},t.mouseInteractionCb=(...w)=>{e.mouseInteraction&&e.mouseInteraction(...w),a(...w)},t.scrollCb=(...w)=>{e.scroll&&e.scroll(...w),s(...w)},t.viewportResizeCb=(...w)=>{e.viewportResize&&e.viewportResize(...w),i(...w)},t.inputCb=(...w)=>{e.input&&e.input(...w),u(...w)},t.mediaInteractionCb=(...w)=>{e.mediaInteaction&&e.mediaInteaction(...w),c(...w)},t.styleSheetRuleCb=(...w)=>{e.styleSheetRule&&e.styleSheetRule(...w),f(...w)},t.styleDeclarationCb=(...w)=>{e.styleDeclaration&&e.styleDeclaration(...w),h(...w)},t.canvasMutationCb=(...w)=>{e.canvasMutation&&e.canvasMutation(...w),m(...w)},t.fontCb=(...w)=>{e.font&&e.font(...w),g(...w)},t.selectionCb=(...w)=>{e.selection&&e.selection(...w),y(...w)},t.customElementCb=(...w)=>{e.customElement&&e.customElement(...w),S(...w)}}function cEe(t,e={}){const n=t.doc.defaultView;if(!n)return()=>{};uEe(t,e);let r;t.recordDOM&&(r=X$(t,t.doc));const a=QCe(t),s=JCe(t),i=Q$(t),u=eEe(t,{win:n}),c=nEe(t),f=sEe(t);let h=()=>{},m=()=>{},g=()=>{},y=()=>{};t.recordDOM&&(h=rEe(t,{win:n}),m=J$(t,t.doc),g=aEe(t,{win:n}),t.collectFonts&&(y=oEe(t)));const S=iEe(t),w=lEe(t),x=[];for(const E of t.plugins)x.push(E.observer(E.callback,n,E.options));return yt(()=>{Ll.forEach(E=>E.reset()),r?.disconnect(),a(),s(),i(),u(),c(),f(),h(),m(),g(),y(),S(),w(),x.forEach(E=>E())})}function Zg(t){return typeof window[t]<"u"}function Xg(t){return!!(typeof window[t]<"u"&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}class i9{constructor(e){we(this,"iframeIdToRemoteIdMap",new WeakMap),we(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}getId(e,n,r,a){const s=r||this.getIdToRemoteIdMap(e),i=a||this.getRemoteIdToIdMap(e);let u=s.get(n);return u||(u=this.generateIdFn(),s.set(n,u),i.set(u,n)),u}getIds(e,n){const r=this.getIdToRemoteIdMap(e),a=this.getRemoteIdToIdMap(e);return n.map(s=>this.getId(e,s,r,a))}getRemoteId(e,n,r){const a=r||this.getRemoteIdToIdMap(e);if(typeof n!="number")return n;const s=a.get(n);return s||-1}getRemoteIds(e,n){const r=this.getRemoteIdToIdMap(e);return n.map(a=>this.getRemoteId(e,a,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let n=this.iframeIdToRemoteIdMap.get(e);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(e,n)),n}getRemoteIdToIdMap(e){let n=this.iframeRemoteIdToIdMap.get(e);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(e,n)),n}}class dEe{constructor(e){we(this,"iframes",new WeakMap),we(this,"crossOriginIframeMap",new WeakMap),we(this,"crossOriginIframeMirror",new i9(mB)),we(this,"crossOriginIframeStyleMirror"),we(this,"crossOriginIframeRootIdMap",new WeakMap),we(this,"mirror"),we(this,"mutationCb"),we(this,"wrappedEmit"),we(this,"loadListener"),we(this,"stylesheetManager"),we(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new i9(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,n){var r,a;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((r=e.contentWindow)==null||r.addEventListener("message",this.handleMessage.bind(this))),(a=this.loadListener)==null||a.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const n=e;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!e.source)return;const a=this.crossOriginIframeMap.get(e.source);if(!a)return;const s=this.transformCrossOriginEvent(a,n.data.event);s&&this.wrappedEmit(s,n.data.isCheckout)}transformCrossOriginEvent(e,n){var r;switch(n.type){case Ct.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(n.data.node,e);const a=n.data.node.id;return this.crossOriginIframeRootIdMap.set(e,a),this.patchRootIdOnNode(n.data.node,a),{timestamp:n.timestamp,type:Ct.IncrementalSnapshot,data:{source:ht.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Ct.Meta:case Ct.Load:case Ct.DomContentLoaded:return!1;case Ct.Plugin:return n;case Ct.Custom:return this.replaceIds(n.data.payload,e,["id","parentId","previousId","nextId"]),n;case Ct.IncrementalSnapshot:switch(n.data.source){case ht.Mutation:return n.data.adds.forEach(a=>{this.replaceIds(a,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(a.node,e);const s=this.crossOriginIframeRootIdMap.get(e);s&&this.patchRootIdOnNode(a.node,s)}),n.data.removes.forEach(a=>{this.replaceIds(a,e,["parentId","id"])}),n.data.attributes.forEach(a=>{this.replaceIds(a,e,["id"])}),n.data.texts.forEach(a=>{this.replaceIds(a,e,["id"])}),n;case ht.Drag:case ht.TouchMove:case ht.MouseMove:return n.data.positions.forEach(a=>{this.replaceIds(a,e,["id"])}),n;case ht.ViewportResize:return!1;case ht.MediaInteraction:case ht.MouseInteraction:case ht.Scroll:case ht.CanvasMutation:case ht.Input:return this.replaceIds(n.data,e,["id"]),n;case ht.StyleSheetRule:case ht.StyleDeclaration:return this.replaceIds(n.data,e,["id"]),this.replaceStyleIds(n.data,e,["styleId"]),n;case ht.Font:return n;case ht.Selection:return n.data.ranges.forEach(a=>{this.replaceIds(a,e,["start","end"])}),n;case ht.AdoptedStyleSheet:return this.replaceIds(n.data,e,["id"]),this.replaceStyleIds(n.data,e,["styleIds"]),(r=n.data.styles)==null||r.forEach(a=>{this.replaceStyleIds(a,e,["styleId"])}),n}}return!1}replace(e,n,r,a){for(const s of a)!Array.isArray(n[s])&&typeof n[s]!="number"||(Array.isArray(n[s])?n[s]=e.getIds(r,n[s]):n[s]=e.getId(r,n[s]));return n}replaceIds(e,n,r){return this.replace(this.crossOriginIframeMirror,e,n,r)}replaceStyleIds(e,n,r){return this.replace(this.crossOriginIframeStyleMirror,e,n,r)}replaceIdOnNode(e,n){this.replaceIds(e,n,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(e,n){e.type!==Y$.Document&&!e.rootId&&(e.rootId=n),"childNodes"in e&&e.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class fEe{constructor(e){we(this,"shadowDoms",new WeakSet),we(this,"mutationCb"),we(this,"scrollCb"),we(this,"bypassOptions"),we(this,"mirror"),we(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,n){if(!kh(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e);const r=X$({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(Q$({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),setTimeout(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(at.host(e))),this.restoreHandlers.push(J$({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){!e.contentWindow||!e.contentDocument||this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,n){const r=this;this.restoreHandlers.push(wu(e.prototype,"attachShadow",function(a){return function(s){const i=a.call(this,s),u=at.shadowRoot(this);return u&&K$(this)&&r.addShadowRoot(u,n),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}var zc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",hEe=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Qg=0;Qg<zc.length;Qg++)hEe[zc.charCodeAt(Qg)]=Qg;var pEe=function(t){var e=new Uint8Array(t),n,r=e.length,a="";for(n=0;n<r;n+=3)a+=zc[e[n]>>2],a+=zc[(e[n]&3)<<4|e[n+1]>>4],a+=zc[(e[n+1]&15)<<2|e[n+2]>>6],a+=zc[e[n+2]&63];return r%3===2?a=a.substring(0,a.length-1)+"=":r%3===1&&(a=a.substring(0,a.length-2)+"=="),a};const l9=new Map;function mEe(t,e){let n=l9.get(t);return n||(n=new Map,l9.set(t,n)),n.has(e)||n.set(e,[]),n.get(e)}const eH=(t,e,n)=>{if(!t||!(nH(t,e)||typeof t=="object"))return;const r=t.constructor.name,a=mEe(n,r);let s=a.indexOf(t);return s===-1&&(s=a.length,a.push(t)),s};function O0(t,e,n){if(t instanceof Array)return t.map(r=>O0(r,e,n));if(t===null)return t;if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray)return{rr_type:t.constructor.name,args:[Object.values(t)]};if(t instanceof ArrayBuffer){const r=t.constructor.name,a=pEe(t);return{rr_type:r,base64:a}}else{if(t instanceof DataView)return{rr_type:t.constructor.name,args:[O0(t.buffer,e,n),t.byteOffset,t.byteLength]};if(t instanceof HTMLImageElement){const r=t.constructor.name,{src:a}=t;return{rr_type:r,src:a}}else if(t instanceof HTMLCanvasElement){const r="HTMLImageElement",a=t.toDataURL();return{rr_type:r,src:a}}else{if(t instanceof ImageData)return{rr_type:t.constructor.name,args:[O0(t.data,e,n),t.width,t.height]};if(nH(t,e)||typeof t=="object"){const r=t.constructor.name,a=eH(t,e,n);return{rr_type:r,index:a}}}}return t}const tH=(t,e,n)=>t.map(r=>O0(r,e,n)),nH=(t,e)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(a=>typeof e[a]=="function").find(a=>t instanceof e[a]);function gEe(t,e,n,r){const a=[],s=Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype);for(const i of s)try{if(typeof e.CanvasRenderingContext2D.prototype[i]!="function")continue;const u=wu(e.CanvasRenderingContext2D.prototype,i,function(c){return function(...f){return Er(this.canvas,n,r,!0)||setTimeout(()=>{const h=tH(f,e,this);t(this.canvas,{type:id["2D"],property:i,args:h})},0),c.apply(this,f)}});a.push(u)}catch{const u=iy(e.CanvasRenderingContext2D.prototype,i,{set(c){t(this.canvas,{type:id["2D"],property:i,args:[c],setter:!0})}});a.push(u)}return()=>{a.forEach(i=>i())}}function vEe(t){return t==="experimental-webgl"?"webgl":t}function u9(t,e,n,r){const a=[];try{const s=wu(t.HTMLCanvasElement.prototype,"getContext",function(i){return function(u,...c){if(!Er(this,e,n,!0)){const f=vEe(u);if("__context"in this||(this.__context=f),r&&["webgl","webgl2"].includes(f))if(c[0]&&typeof c[0]=="object"){const h=c[0];h.preserveDrawingBuffer||(h.preserveDrawingBuffer=!0)}else c.splice(0,1,{preserveDrawingBuffer:!0})}return i.apply(this,[u,...c])}});a.push(s)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{a.forEach(s=>s())}}function c9(t,e,n,r,a,s){const i=[],u=Object.getOwnPropertyNames(t);for(const c of u)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(c))try{if(typeof t[c]!="function")continue;const f=wu(t,c,function(h){return function(...m){const g=h.apply(this,m);if(eH(g,s,this),"tagName"in this.canvas&&!Er(this.canvas,r,a,!0)){const y=tH(m,s,this),S={type:e,property:c,args:y};n(this.canvas,S)}return g}});i.push(f)}catch{const f=iy(t,c,{set(h){n(this.canvas,{type:e,property:c,args:[h],setter:!0})}});i.push(f)}return i}function yEe(t,e,n,r){const a=[];return a.push(...c9(e.WebGLRenderingContext.prototype,id.WebGL,t,n,r,e)),typeof e.WebGL2RenderingContext<"u"&&a.push(...c9(e.WebGL2RenderingContext.prototype,id.WebGL2,t,n,r,e)),()=>{a.forEach(s=>s())}}const rH="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",bEe=t=>Uint8Array.from(atob(t),e=>e.charCodeAt(0)),d9=typeof window<"u"&&window.Blob&&new Blob([bEe(rH)],{type:"text/javascript;charset=utf-8"});function SEe(t){let e;try{if(e=d9&&(window.URL||window.webkitURL).createObjectURL(d9),!e)throw"";const n=new Worker(e,{name:t?.name});return n.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(e)}),n}catch{return new Worker("data:text/javascript;base64,"+rH,{name:t?.name})}finally{e&&(window.URL||window.webkitURL).revokeObjectURL(e)}}class wEe{constructor(e){we(this,"pendingCanvasMutations",new Map),we(this,"rafStamps",{latestId:0,invokeId:null}),we(this,"mirror"),we(this,"mutationCb"),we(this,"resetObservers"),we(this,"frozen",!1),we(this,"locked",!1),we(this,"processMutation",(c,f)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(c)||this.pendingCanvasMutations.set(c,[]),this.pendingCanvasMutations.get(c).push(f)});const{sampling:n="all",win:r,blockClass:a,blockSelector:s,recordCanvas:i,dataURLOptions:u}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,i&&n==="all"&&this.initCanvasMutationObserver(r,a,s),i&&typeof n=="number"&&this.initCanvasFPSObserver(n,r,a,s,{dataURLOptions:u})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(e,n,r,a,s){const i=u9(n,r,a,!0),u=new Map,c=new SEe;c.onmessage=S=>{const{id:w}=S.data;if(u.set(w,!1),!("base64"in S.data))return;const{base64:x,type:E,width:k,height:A}=S.data;this.mutationCb({id:w,type:id["2D"],commands:[{property:"clearRect",args:[0,0,k,A]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:x}],type:E}]},0,0]}]})};const f=1e3/e;let h=0,m;const g=()=>{const S=[];return n.document.querySelectorAll("canvas").forEach(w=>{Er(w,r,a,!0)||S.push(w)}),S},y=S=>{if(h&&S-h<f){m=requestAnimationFrame(y);return}h=S,g().forEach(async w=>{var x;const E=this.mirror.getId(w);if(u.get(E)||w.width===0||w.height===0)return;if(u.set(E,!0),["webgl","webgl2"].includes(w.__context)){const A=w.getContext(w.__context);((x=A?.getContextAttributes())==null?void 0:x.preserveDrawingBuffer)===!1&&A.clear(A.COLOR_BUFFER_BIT)}const k=await createImageBitmap(w);c.postMessage({id:E,bitmap:k,width:w.width,height:w.height,dataURLOptions:s.dataURLOptions},[k])}),m=requestAnimationFrame(y)};m=requestAnimationFrame(y),this.resetObservers=()=>{i(),cancelAnimationFrame(m)}}initCanvasMutationObserver(e,n,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const a=u9(e,n,r,!1),s=gEe(this.processMutation.bind(this),e,n,r),i=yEe(this.processMutation.bind(this),e,n,r);this.resetObservers=()=>{a(),s(),i()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const e=n=>{this.rafStamps.latestId=n,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,n)=>{const r=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,r)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,n){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(e);if(!r||n===-1)return;const a=r.map(i=>{const{type:u,...c}=i;return c}),{type:s}=r[0];this.mutationCb({id:n,type:s,commands:a}),this.pendingCanvasMutations.delete(e)}}class xEe{constructor(e){we(this,"trackedLinkElements",new WeakSet),we(this,"mutationCb"),we(this,"adoptedStyleSheetCb"),we(this,"styleMirror",new HCe),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,n){if(e.length===0)return;const r={id:n,styleIds:[]},a=[];for(const s of e){let i;this.styleMirror.has(s)?i=this.styleMirror.getId(s):(i=this.styleMirror.add(s),a.push({styleId:i,rules:Array.from(s.rules||CSSRule,(u,c)=>({rule:fB(u,s.href),index:c}))})),r.styleIds.push(i)}a.length>0&&(r.styles=a),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class CEe{constructor(){we(this,"nodeMap",new WeakMap),we(this,"active",!1)}inOtherBuffer(e,n){const r=this.nodeMap.get(e);return r&&Array.from(r).some(a=>a!==n)}add(e,n){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(n))}destroy(){}}let vn,N0,rE,N1=!1;try{if(Array.from([1],t=>t*2)[0]!==2){const t=document.createElement("iframe");document.body.appendChild(t),Array.from=((pP=t.contentWindow)==null?void 0:pP.Array.from)||Array.from,document.body.removeChild(t)}}catch(t){console.debug("Unable to override Array.from",t)}const Ha=_Se();function Op(t={}){const{emit:e,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:a="rr-block",blockSelector:s=null,ignoreClass:i="rr-ignore",ignoreSelector:u=null,maskTextClass:c="rr-mask",maskTextSelector:f=null,inlineStylesheet:h=!0,maskAllInputs:m,maskInputOptions:g,slimDOMOptions:y,maskInputFn:S,maskTextFn:w,hooks:x,packFn:E,sampling:k={},dataURLOptions:A={},mousemoveWait:R,recordDOM:N=!0,recordCanvas:O=!1,recordCrossOriginIframes:I=!1,recordAfter:P=t.recordAfter==="DOMContentLoaded"?t.recordAfter:"load",userTriggeredOnInput:U=!1,collectFonts:q=!1,inlineImages:z=!1,plugins:j,keepIframeSrcFn:H=()=>!1,ignoreCSSAttributes:W=new Set([]),errorHandler:se}=t;ZCe(se);const $=I?window.parent===window:!0;let Q=!1;if(!$)try{window.parent.document&&(Q=!1)}catch{Q=!0}if($&&!e)throw new Error("emit function is required");if(!$&&!Q)return()=>{};R!==void 0&&k.mousemove===void 0&&(k.mousemove=R),Ha.reset();const re=m===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:g!==void 0?g:{password:!0},he=bB(y);$Ce();let xe,D=0;const Z=Ce=>{for(const mt of j||[])mt.eventProcessor&&(Ce=mt.eventProcessor(Ce));return E&&!Q&&(Ce=E(Ce)),Ce};vn=(Ce,mt)=>{var Ee;const Be=Ce;if(Be.timestamp=I1(),(Ee=Ll[0])!=null&&Ee.isFrozen()&&Be.type!==Ct.FullSnapshot&&!(Be.type===Ct.IncrementalSnapshot&&Be.data.source===ht.Mutation)&&Ll.forEach($e=>$e.unfreeze()),$)e?.(Z(Be),mt);else if(Q){const $e={type:"rrweb",event:Z(Be),origin:window.location.origin,isCheckout:mt};window.parent.postMessage($e,"*")}if(Be.type===Ct.FullSnapshot)xe=Be,D=0;else if(Be.type===Ct.IncrementalSnapshot){if(Be.data.source===ht.Mutation&&Be.data.isAttachIframe)return;D++;const $e=r&&D>=r,qe=n&&Be.timestamp-xe.timestamp>n;($e||qe)&&N0(!0)}};const K=Ce=>{vn({type:Ct.IncrementalSnapshot,data:{source:ht.Mutation,...Ce}})},X=Ce=>vn({type:Ct.IncrementalSnapshot,data:{source:ht.Scroll,...Ce}}),G=Ce=>vn({type:Ct.IncrementalSnapshot,data:{source:ht.CanvasMutation,...Ce}}),ue=Ce=>vn({type:Ct.IncrementalSnapshot,data:{source:ht.AdoptedStyleSheet,...Ce}}),oe=new xEe({mutationCb:K,adoptedStyleSheetCb:ue}),ce=new dEe({mirror:Ha,mutationCb:K,stylesheetManager:oe,recordCrossOriginIframes:I,wrappedEmit:vn});for(const Ce of j||[])Ce.getMirror&&Ce.getMirror({nodeMirror:Ha,crossOriginIframeMirror:ce.crossOriginIframeMirror,crossOriginIframeStyleMirror:ce.crossOriginIframeStyleMirror});const be=new CEe;rE=new wEe({recordCanvas:O,mutationCb:G,win:window,blockClass:a,blockSelector:s,mirror:Ha,sampling:k.canvas,dataURLOptions:A});const Ge=new fEe({mutationCb:K,scrollCb:X,bypassOptions:{blockClass:a,blockSelector:s,maskTextClass:c,maskTextSelector:f,inlineStylesheet:h,maskInputOptions:re,dataURLOptions:A,maskTextFn:w,maskInputFn:S,recordCanvas:O,inlineImages:z,sampling:k,slimDOMOptions:he,iframeManager:ce,stylesheetManager:oe,canvasManager:rE,keepIframeSrcFn:H,processedNodeManager:be},mirror:Ha});N0=(Ce=!1)=>{if(!N)return;vn({type:Ct.Meta,data:{href:window.location.href,width:$$(),height:B$()}},Ce),oe.reset(),Ge.init(),Ll.forEach(Ee=>Ee.lock());const mt=YSe(document,{mirror:Ha,blockClass:a,blockSelector:s,maskTextClass:c,maskTextSelector:f,inlineStylesheet:h,maskAllInputs:re,maskTextFn:w,maskInputFn:S,slimDOM:he,dataURLOptions:A,recordCanvas:O,inlineImages:z,onSerialize:Ee=>{W$(Ee,Ha)&&ce.addIframe(Ee),V$(Ee,Ha)&&oe.trackLinkElement(Ee),i_(Ee)&&Ge.addShadowRoot(at.shadowRoot(Ee),document)},onIframeLoad:(Ee,Be)=>{ce.attachIframe(Ee,Be),Ge.observeAttachShadow(Ee)},onStylesheetLoad:(Ee,Be)=>{oe.attachLinkElement(Ee,Be)},keepIframeSrcFn:H});if(!mt)return console.warn("Failed to snapshot the document");vn({type:Ct.FullSnapshot,data:{node:mt,initialOffset:F$(window)}},Ce),Ll.forEach(Ee=>Ee.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&oe.adoptStyleSheets(document.adoptedStyleSheets,Ha.getId(document))};try{const Ce=[],mt=Be=>{var $e;return yt(cEe)({mutationCb:K,mousemoveCb:(qe,gr)=>vn({type:Ct.IncrementalSnapshot,data:{source:gr,positions:qe}}),mouseInteractionCb:qe=>vn({type:Ct.IncrementalSnapshot,data:{source:ht.MouseInteraction,...qe}}),scrollCb:X,viewportResizeCb:qe=>vn({type:Ct.IncrementalSnapshot,data:{source:ht.ViewportResize,...qe}}),inputCb:qe=>vn({type:Ct.IncrementalSnapshot,data:{source:ht.Input,...qe}}),mediaInteractionCb:qe=>vn({type:Ct.IncrementalSnapshot,data:{source:ht.MediaInteraction,...qe}}),styleSheetRuleCb:qe=>vn({type:Ct.IncrementalSnapshot,data:{source:ht.StyleSheetRule,...qe}}),styleDeclarationCb:qe=>vn({type:Ct.IncrementalSnapshot,data:{source:ht.StyleDeclaration,...qe}}),canvasMutationCb:G,fontCb:qe=>vn({type:Ct.IncrementalSnapshot,data:{source:ht.Font,...qe}}),selectionCb:qe=>{vn({type:Ct.IncrementalSnapshot,data:{source:ht.Selection,...qe}})},customElementCb:qe=>{vn({type:Ct.IncrementalSnapshot,data:{source:ht.CustomElement,...qe}})},blockClass:a,ignoreClass:i,ignoreSelector:u,maskTextClass:c,maskTextSelector:f,maskInputOptions:re,inlineStylesheet:h,sampling:k,recordDOM:N,recordCanvas:O,inlineImages:z,userTriggeredOnInput:U,collectFonts:q,doc:Be,maskInputFn:S,maskTextFn:w,keepIframeSrcFn:H,blockSelector:s,slimDOMOptions:he,dataURLOptions:A,mirror:Ha,iframeManager:ce,stylesheetManager:oe,shadowDomManager:Ge,processedNodeManager:be,canvasManager:rE,ignoreCSSAttributes:W,plugins:(($e=j?.filter(qe=>qe.observer))==null?void 0:$e.map(qe=>({observer:qe.observer,options:qe.options,callback:gr=>vn({type:Ct.Plugin,data:{plugin:qe.name,payload:gr}})})))||[]},x)};ce.addLoadListener(Be=>{try{Ce.push(mt(Be.contentDocument))}catch($e){console.warn($e)}});const Ee=()=>{N0(),Ce.push(mt(document)),N1=!0};return["interactive","complete"].includes(document.readyState)?Ee():(Ce.push(Cr("DOMContentLoaded",()=>{vn({type:Ct.DomContentLoaded,data:{}}),P==="DOMContentLoaded"&&Ee()})),Ce.push(Cr("load",()=>{vn({type:Ct.Load,data:{}}),P==="load"&&Ee()},window))),()=>{Ce.forEach(Be=>{try{Be()}catch($e){String($e).toLowerCase().includes("cross-origin")||console.warn($e)}}),be.destroy(),N1=!1,XCe()}}catch(Ce){console.warn(Ce)}}Op.addCustomEvent=(t,e)=>{if(!N1)throw new Error("please add custom event after start recording");vn({type:Ct.Custom,data:{tag:t,payload:e}})};Op.freezePage=()=>{Ll.forEach(t=>t.freeze())};Op.takeFullSnapshot=t=>{if(!N1)throw new Error("please take full snapshot after start recording");N0(t)};Op.mirror=Ha;var f9;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(f9||(f9={}));const EEe="rrweb",_Ee={maskAllInputs:!0,maskTextSelector:"*",maskInputOptions:void 0},kEe={additionalSampleRate:1,batchSize:50,flushInterval:5e3,recordOptions:{slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,recordCrossOriginIframes:!1}},h9=kEe;class AEe extends Ma{constructor(e){super(EEe),this.recordingEvents=[],this.isRecording=!1,this.recordingStartTime=null,this.flushTimer=null,this.stopRecording=null,this.enabled=!1;const n=Object.assign(Object.assign(Object.assign({},h9.recordOptions),e?.recordOptions),_Ee);this.config=Object.assign(Object.assign(Object.assign({},h9),e),{recordOptions:n}),Se.info("RRWebPlugin initialized",{additionalSampleRate:this.config.additionalSampleRate,batchSize:this.config.batchSize,flushInterval:this.config.flushInterval})}enable(){var e;if(this.enabled){Se.info("RRWebPlugin already enabled");return}const n=(e=this.context)===null||e===void 0?void 0:e.getSession();if(!n||!n.record){Se.warn("RRWebPlugin skipping - session not being recorded",{hasSession:!!n,sessionRecord:n?.record});return}const r=Math.random();if(r>this.config.additionalSampleRate){Se.warn("RRWebPlugin skipping - session replay additionalSampleRate",{randomValue:r,samplingRate:this.config.additionalSampleRate});return}this.enabled=!0,Se.info("RRWebPlugin enabled - starting recording"),this.startRecording()}disable(){if(!this.enabled){Se.info("RRWebPlugin already disabled");return}Se.info("RRWebPlugin disabled - stopping recording"),this.enabled=!1,this.stopCurrentRecording()}record(e){const n=e?.action;n==="start"?(Se.info("RRWebPlugin manual start recording"),this.startRecording()):n==="stop"&&(Se.info("RRWebPlugin manual stop recording"),this.stopCurrentRecording())}onload(){}startRecording(){this.recordingStartTime=Date.now(),this.recordingEvents=[],this.isRecording=!0,Se.info("RRWebPlugin starting rrweb recording",{startTime:this.recordingStartTime});const e=Op(Object.assign(Object.assign({},this.config.recordOptions),{emit:this.handleRRWebEvent.bind(this)}));e?(this.stopRecording=e,Se.info("RRWebPlugin rrweb recording initialized successfully")):Se.warn("RRWebPlugin failed to initialize rrweb recording"),this.flushTimer=window.setInterval(()=>{this.flush()},this.config.flushInterval)}stopCurrentRecording(){if(!this.isRecording){Se.info("RRWebPlugin stopCurrentRecording called but not recording");return}Se.info("RRWebPlugin stopping current recording"),this.isRecording=!1,this.stopRecording&&(this.stopRecording(),this.stopRecording=null,Se.info("RRWebPlugin rrweb recording stopped")),this.flushTimer&&(clearInterval(this.flushTimer),this.flushTimer=null,Se.info("RRWebPlugin flush timer cleared")),this.flush()}handleRRWebEvent(e){this.isRecording&&(this.recordingEvents.push(e),this.recordingEvents.length>=this.config.batchSize&&(Se.info("RRWebPlugin flushing events due to batch size",{eventCount:this.recordingEvents.length,batchSize:this.config.batchSize}),this.flush()))}flush(){if(this.recordingEvents.length===0){Se.info("RRWebPlugin flushEvent called but no events to flush");return}Se.info("RRWebPlugin flushing events",{eventCount:this.recordingEvents.length});const e=[...this.recordingEvents],n={version:"1.0.0",events:e,eventCount:e.length};this.context.record(QM,n),Se.info("RRWebPlugin events sent to RUM",{eventType:QM,eventCount:this.recordingEvents.length}),this.recordingEvents=[]}}var TEe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]]);return n},u_;(function(t){t.Path="PATH",t.Hash="HASH",t.PathAndHash="PATH_AND_HASH"})(u_||(u_={}));const aH="us-west-2",c_=`https://dataplane.rum.${aH}.amazonaws.com`,sH=()=>({unique:!1,domain:window.location.hostname,path:"/",sameSite:"Strict",secure:!0}),oH=t=>({allowCookies:!1,batchLimit:100,client:Qve,compressionStrategy:{enabled:!0},cookieAttributes:t,debug:!1,disableAutoPageView:!1,dispatchInterval:5*1e3,enableRumClient:!0,enableXRay:!1,endpoint:c_,endpointUrl:new URL(c_),eventCacheSize:1e3,eventPluginsToLoad:[],pageIdFormat:u_.Path,pagesToExclude:[],pagesToInclude:[/.*/],signing:!1,recordResourceUrl:!0,retries:2,routeChangeComplete:100,routeChangeTimeout:1e4,sessionAttributes:{},sessionEventLimit:200,sessionLengthSeconds:1800,sessionSampleRate:1,suppressSessionStartEvent:!1,useBeacon:!0,userIdRetentionDays:30,enableW3CTraceId:!1,candidatesCacheSize:10});let REe=class{constructor(e,n,r,a={}){var{cookieAttributes:s}=a,i=TEe(a,["cookieAttributes"]);this.eventBus=new ZF,typeof r>"u"&&(r="us-west-2"),this.applicationId=e;const u=Object.assign(Object.assign({},sH()),s);this.config=Object.assign(Object.assign({fetchFunction:fetch},oH(u)),i),this.config.sessionId&&(this.config.suppressSessionStartEvent=!0),this.config.endpoint=i.endpoint?i.endpoint:c_.replace(aH,r),this.config.endpointUrl=new URL(this.config.endpoint),Se.configure(this.config.debug),Se.info("Initialized RUM Slim"),this.eventCache=new ube({id:e,version:n},this.config,this.eventBus),this.dispatchManager=this.initDispatch(r,e),this.pluginManager=this.initPluginManager(e,n),this.eventCache.setPluginFlushHook(()=>this.pluginManager.flush()),this.config.enableRumClient?this.enable():this.disable()}setAwsCredentials(e){this.dispatchManager.setAwsCredentials(e)}setSigningConfigFactory(e){this.dispatchManager.setSigningConfigFactory(e)}addSessionAttributes(e){this.eventCache.addSessionAttributes(e)}getSessionId(){return this.eventCache.getSessionId()}pinSessionId(e){this.eventCache.pinSessionId(e)}startSession(e){return this.eventCache.startSession(e)}getUserId(){return this.eventCache.getUserId()}pinUserId(e){this.eventCache.pinUserId(e)}setEventMetadataHook(e){this.eventCache.setEventMetadataHook(e)}clearEventMetadataHook(){this.eventCache.clearEventMetadataHook()}addPlugin(e){this.pluginManager.addPlugin(e)}dispatch(){this.dispatchManager.dispatchFetch()}dispatchBeacon(){this.dispatchManager.dispatchBeacon()}enable(){this.eventCache.enable(),this.pluginManager.enable(),this.dispatchManager.enable()}disable(){this.dispatchManager.disable(),this.pluginManager.disable(),this.eventCache.disable()}allowCookies(e){this.config.allowCookies=e}clearCookies(){const e=this.config.cookieAttributes;[d1,f1,ed,`${d1}_${this.applicationId}`,`${f1}_${this.applicationId}`,`${ed}_${this.applicationId}`].forEach(r=>tbe(r,e))}recordPageView(e){this.eventCache.recordPageView(e)}recordError(e){this.pluginManager.record("com.amazonaws.rum.js-error",e)}registerDomEvents(e){this.pluginManager.updatePlugin("com.amazonaws.rum.dom-event",e)}recordEvent(e,n,r){this.eventCache.recordEvent(e,n,r)}initDispatch(e,n){return new Jve(n,e,this.config.endpointUrl,this.eventCache,this.config)}initPluginManager(e,n){const r={applicationId:e,applicationVersion:n,config:this.config,record:this.eventCache.recordEvent,recordCandidate:this.eventCache.recordCandidate,recordPageView:this.eventCache.recordPageView,getSession:this.eventCache.getSession,eventBus:this.eventBus},a=new ebe(r);return this.config.disableAutoPageView||a.addPlugin(new Abe),this.config.eventPluginsToLoad.forEach(s=>{a.addPlugin(s)}),a}};var Za;(function(t){t.Errors="errors",t.Performance="performance",t.Interaction="interaction",t.Http="http",t.Replay="replay"})(Za||(Za={}));var p9;(function(t){t.Path="PATH",t.Hash="HASH",t.PathAndHash="PATH_AND_HASH"})(p9||(p9={}));const IEe=t=>Object.assign(Object.assign({},oH(t)),{signing:!0,telemetries:[Za.Errors,Za.Performance,Za.Http,Za.Replay]});class OEe extends REe{constructor(e,n,r,a={}){super(e,n,r,Object.assign(Object.assign({},IEe(sH())),a)),Se.info(`RUM client initialized for app: ${e}`),Se.info(`Telemetries enabled: ${this.config.telemetries.join(", ")||"none"}`)}initDispatch(e,n){const r=super.initDispatch(e,n);return r.setSigningConfigFactory(Tye),r.setCognitoCredentialProviderFactory((a,s,i,u)=>{const c={identityPoolId:i,guestRoleArn:u,cookieAttributes:a.cookieAttributes};return i&&u?new qye(c,s).ChainAnonymousCredentialsProvider:new Wye(c,s).ChainAnonymousCredentialsProvider}),this.config.signing&&this.config.identityPoolId&&r.setCognitoCredentials(this.config.identityPoolId,this.config.guestRoleArn),r}initPluginManager(e,n){const r=super.initPluginManager(e,n);return this.constructBuiltinPlugins().forEach(s=>{r.addPlugin(s)}),r}recordError(e){this.pluginManager.record(JF,e)}registerDomEvents(e){this.pluginManager.updatePlugin(XF,e)}constructBuiltinPlugins(){let e=[];const n=this.telemetryFunctor();return this.config.telemetries.forEach(r=>{typeof r=="string"&&n[r.toLowerCase()]?e=[...e,...n[r.toLowerCase()]({})]:Array.isArray(r)&&n[r[0].toLowerCase()]&&(e=[...e,...n[r[0].toLowerCase()](r[1])])}),e}telemetryFunctor(){return{[Za.Errors]:e=>[new Sbe(e)],[Za.Performance]:e=>[new Cbe(e),new Rbe(e),new Ybe(e)],[Za.Interaction]:e=>[new SA(e)],[Za.Http]:e=>[new eSe(e),new Xbe(e)],[Za.Replay]:e=>[new AEe(e)]}}}const iH={recordPageView:()=>{},recordError:()=>{},recordEvent:()=>{},recordTiming:()=>{}},NEe=/([?&](token|access_token|id_token|authorization)=[^&]*)|\/messages\/[a-z0-9_-]+/gi;function lH(t){return t.replace(NEe,"[redacted]")}function MEe(t){const e=t.indexOf("?"),n=t.indexOf("#"),r=e===-1&&n===-1?t.length:e===-1?n:n===-1?e:Math.min(e,n);return lH(t.slice(0,r))}function PEe(t){const e=lH(t.message);if(e===t.message)return t;const n=new Error(e);return n.name=t.name,n.stack=t.stack,n}function DEe(t){return{recordPageView(e){t.recordPageView(MEe(e))},recordError(e,n){t.recordError(PEe(e)),n&&t.recordEvent("telemetry.error_context",n)},recordEvent(e,n){t.recordEvent(e,n??{})},recordTiming(e,n,r){t.recordEvent("telemetry.timing",{...r,name:e,durationMs:String(n)})}}}function m9(t){return t instanceof Error?t:new Error(String(t))}function LEe(t){window.addEventListener("error",e=>{t.recordError(m9(e.error??e.message))}),window.addEventListener("unhandledrejection",e=>{t.recordError(m9(e.reason))})}function UEe(){const{appMonitorId:t,identityPoolId:e,region:n}=ev().rum;if(!t)return iH;const r=new OEe(t,"1.0.0",n,{sessionSampleRate:1,identityPoolId:e,endpoint:`https://dataplane.rum.${n}.amazonaws.com`,telemetries:["performance"],disableAutoPageView:!0,allowCookies:!1,enableXRay:!1}),a=DEe(r);return LEe(a),a}const uH=_.createContext(iH);function dIe(){return _.useContext(uH)}const d_="remit.theme",zEe="dark";function g9(){return typeof localStorage>"u"?"system":localStorage.getItem(d_)??"system"}function f_(t){if(typeof document>"u")return;const e=t==="dark"||t==="system"&&typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-color-scheme: dark)").matches;document.documentElement.classList.toggle(zEe,e)}function fIe(t){typeof localStorage<"u"&&(t==="system"?localStorage.removeItem(d_):localStorage.setItem(d_,t)),f_(t)}const jEe=()=>{if(typeof window>"u"||(f_(g9()),typeof window.matchMedia!="function"))return;const t=window.matchMedia("(prefers-color-scheme: dark)"),e=()=>{f_(g9())};typeof t.addEventListener=="function"?t.addEventListener("change",e):t.addListener(e)},FEe=(t,e,n,r)=>{const a=[n,{code:e,...r||{}}];if(t?.services?.logger?.forward)return t.services.logger.forward(a,"warn","react-i18next::",!0);Vl(a[0])&&(a[0]=`react-i18next:: ${a[0]}`),t?.services?.logger?.warn?t.services.logger.warn(...a):console?.warn&&console.warn(...a)},v9={},h_=(t,e,n,r)=>{Vl(n)&&v9[n]||(Vl(n)&&(v9[n]=new Date),FEe(t,e,n,r))},cH=(t,e)=>()=>{if(t.isInitialized)e();else{const n=()=>{setTimeout(()=>{t.off("initialized",n)},0),e()};t.on("initialized",n)}},p_=(t,e,n)=>{t.loadNamespaces(e,cH(t,n))},y9=(t,e,n,r)=>{if(Vl(n)&&(n=[n]),t.options.preload&&t.options.preload.indexOf(e)>-1)return p_(t,n,r);n.forEach(a=>{t.options.ns.indexOf(a)<0&&t.options.ns.push(a)}),t.loadLanguages(e,cH(t,r))},BEe=(t,e,n={})=>!e.languages||!e.languages.length?(h_(e,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:e.languages}),!0):e.hasLoadedNamespace(t,{lng:n.lng,precheck:(r,a)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!a(r.isLanguageChangingTo,t))return!1}}),Vl=t=>typeof t=="string",$Ee=t=>typeof t=="object"&&t!==null,HEe=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,qEe={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},WEe=t=>qEe[t],VEe=t=>t.replace(HEe,WEe);let m_={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:VEe};const GEe=(t={})=>{m_={...m_,...t}},KEe=()=>m_;let dH;const YEe=t=>{dH=t},ZEe=()=>dH,XEe={type:"3rdParty",init(t){GEe(t.options.react),YEe(t)}},QEe=_.createContext();class JEe{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const e3e=(t,e)=>{const n=_.useRef();return _.useEffect(()=>{n.current=t},[t,e]),n.current},fH=(t,e,n,r)=>t.getFixedT(e,n,r),t3e=(t,e,n,r)=>_.useCallback(fH(t,e,n,r),[t,e,n,r]),n3e=(t,e={})=>{const{i18n:n}=e,{i18n:r,defaultNS:a}=_.useContext(QEe)||{},s=n||r||ZEe();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new JEe),!s){h_(s,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const R=(O,I)=>Vl(I)?I:$Ee(I)&&Vl(I.defaultValue)?I.defaultValue:Array.isArray(O)?O[O.length-1]:O,N=[R,{},!1];return N.t=R,N.i18n={},N.ready=!1,N}s.options.react?.wait&&h_(s,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const i={...KEe(),...s.options.react,...e},{useSuspense:u,keyPrefix:c}=i;let f=t||a||s.options?.defaultNS;f=Vl(f)?[f]:f||["translation"],s.reportNamespaces.addUsedNamespaces?.(f);const h=(s.isInitialized||s.initializedStoreOnce)&&f.every(R=>BEe(R,s,i)),m=t3e(s,e.lng||null,i.nsMode==="fallback"?f:f[0],c),g=()=>m,y=()=>fH(s,e.lng||null,i.nsMode==="fallback"?f:f[0],c),[S,w]=_.useState(g);let x=f.join();e.lng&&(x=`${e.lng}${x}`);const E=e3e(x),k=_.useRef(!0);_.useEffect(()=>{const{bindI18n:R,bindI18nStore:N}=i;k.current=!0,!h&&!u&&(e.lng?y9(s,e.lng,f,()=>{k.current&&w(y)}):p_(s,f,()=>{k.current&&w(y)})),h&&E&&E!==x&&k.current&&w(y);const O=()=>{k.current&&w(y)};return R&&s?.on(R,O),N&&s?.store.on(N,O),()=>{k.current=!1,s&&R&&R?.split(" ").forEach(I=>s.off(I,O)),N&&s&&N.split(" ").forEach(I=>s.store.off(I,O))}},[s,x]),_.useEffect(()=>{k.current&&h&&w(g)},[s,c,h]);const A=[S,s,h];if(A.t=S,A.i18n=s,A.ready=h,h||!h&&!u)return A;throw new Promise(R=>{e.lng?y9(s,e.lng,f,()=>R()):p_(s,f,()=>R())})},r3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts",...t,headers:{"Content-Type":"application/json",...t.headers}}),a3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/oauth/microsoft/start",...t,headers:{"Content-Type":"application/json",...t.headers}}),s3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/test-connection",...t,headers:{"Content-Type":"application/json",...t.headers}}),o3e=t=>(t.client??Pe).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}",...t}),i3e=t=>(t.client??Pe).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}",...t,headers:{"Content-Type":"application/json",...t.headers}}),l3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/filters",...t}),u3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/filters",...t,headers:{"Content-Type":"application/json",...t.headers}}),c3e=t=>(t.client??Pe).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/filters/{filterId}",...t}),d3e=t=>(t.client??Pe).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/filters/{filterId}",...t,headers:{"Content-Type":"application/json",...t.headers}}),f3e=t=>(t.client??Pe).put({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/folder-roles/{role}",...t,headers:{"Content-Type":"application/json",...t.headers}}),h3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/labels",...t}),p3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/labels",...t,headers:{"Content-Type":"application/json",...t.headers}}),m3e=t=>(t.client??Pe).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/labels/{labelId}",...t}),g3e=t=>(t.client??Pe).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/labels/{labelId}",...t,headers:{"Content-Type":"application/json",...t.headers}}),v3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/mailboxes",...t}),y3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/mailboxes",...t,headers:{"Content-Type":"application/json",...t.headers}}),hIe=t=>(t.client??Pe).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/mailboxes/{mailboxId}",...t}),b3e=t=>(t.client??Pe).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/mailboxes/{mailboxId}",...t,headers:{"Content-Type":"application/json",...t.headers}}),S3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/organize",...t,headers:{"Content-Type":"application/json",...t.headers}}),w3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/organize/preview",...t,headers:{"Content-Type":"application/json",...t.headers}}),x3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/organize/{organizeJobId}",...t}),C3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/sync",...t}),E3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/sync/status",...t}),_3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/addresses/search",...t}),k3e=t=>(t.client??Pe).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/addresses/{addressId}",...t,headers:{"Content-Type":"application/json",...t.headers}}),A3e=t=>(t?.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/config",...t}),pIe=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/mailboxes/{mailboxId}/threads",...t}),T3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/mailboxes/{mailboxId}/threads/search",...t}),R3e=t=>(t.client??Pe).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/me",...t,headers:{"Content-Type":"application/json",...t.headers}}),I3e=t=>(t?.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/me/export",...t}),O3e=t=>(t?.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/me/vip-suggestions",...t}),N3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/delete",...t,headers:{"Content-Type":"application/json",...t.headers}}),M3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/flags",...t,headers:{"Content-Type":"application/json",...t.headers}}),P3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/labels",...t,headers:{"Content-Type":"application/json",...t.headers}}),D3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/move",...t,headers:{"Content-Type":"application/json",...t.headers}}),L3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/{messageId}",...t}),U3e=t=>(t.client??Pe).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/{messageId}/flags",...t,headers:{"Content-Type":"application/json",...t.headers}}),z3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/{messageId}/raw",...t}),j3e=t=>(t?.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox",...t}),F3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox",...t,headers:{"Content-Type":"application/json",...t.headers}}),B3e=t=>(t.client??Pe).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox/{outboxMessageId}",...t}),$3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox/{outboxMessageId}",...t}),H3e=t=>(t.client??Pe).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox/{outboxMessageId}",...t,headers:{"Content-Type":"application/json",...t.headers}}),q3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox/{outboxMessageId}/send",...t}),W3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/search/semantic",...t}),V3e=t=>(t?.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/system/update",...t}),G3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/system/update",...t,headers:{"Content-Type":"application/json",...t.headers}}),K3e=t=>(t?.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/threads",...t}),Y3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/threads/{threadId}/messages",...t}),mIe=t=>({mutationFn:async n=>{const{data:r}=await r3e({...t,...n,throwOnError:!0});return r}}),jn=(t,e,n,r)=>{const a={_id:t,baseUrl:e?.baseUrl||(e?.client??Pe).getConfig().baseUrl};return e?.body&&(a.body=e.body),e?.headers&&(a.headers=e.headers),e?.path&&(a.path=e.path),e?.query&&(a.query=e.query),[a]},gIe=t=>({mutationFn:async n=>{const{data:r}=await a3e({...t,...n,throwOnError:!0});return r}}),vIe=t=>({mutationFn:async n=>{const{data:r}=await s3e({...t,...n,throwOnError:!0});return r}}),yIe=t=>({mutationFn:async n=>{const{data:r}=await o3e({...t,...n,throwOnError:!0});return r}}),bIe=t=>({mutationFn:async n=>{const{data:r}=await i3e({...t,...n,throwOnError:!0});return r}}),Z3e=t=>jn("filterOperationsListFilters",t),SIe=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await l3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:Z3e(t)}),wIe=t=>({mutationFn:async n=>{const{data:r}=await u3e({...t,...n,throwOnError:!0});return r}}),xIe=t=>({mutationFn:async n=>{const{data:r}=await c3e({...t,...n,throwOnError:!0});return r}}),CIe=t=>jn("filterDetailOperationsGetFilter",t),EIe=t=>({mutationFn:async n=>{const{data:r}=await d3e({...t,...n,throwOnError:!0});return r}}),_Ie=t=>({mutationFn:async n=>{const{data:r}=await f3e({...t,...n,throwOnError:!0});return r}}),X3e=t=>jn("labelOperationsListLabels",t),kIe=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await h3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:X3e(t)}),AIe=t=>({mutationFn:async n=>{const{data:r}=await p3e({...t,...n,throwOnError:!0});return r}}),TIe=t=>({mutationFn:async n=>{const{data:r}=await m3e({...t,...n,throwOnError:!0});return r}}),RIe=t=>({mutationFn:async n=>{const{data:r}=await g3e({...t,...n,throwOnError:!0});return r}}),Q3e=t=>jn("mailboxOperationsListMailboxes",t),IIe=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await v3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:Q3e(t)}),OIe=t=>({mutationFn:async n=>{const{data:r}=await y3e({...t,...n,throwOnError:!0});return r}}),NIe=t=>({mutationFn:async n=>{const{data:r}=await b3e({...t,...n,throwOnError:!0});return r}}),MIe=t=>({mutationFn:async n=>{const{data:r}=await S3e({...t,...n,throwOnError:!0});return r}}),PIe=t=>({mutationFn:async n=>{const{data:r}=await w3e({...t,...n,throwOnError:!0});return r}}),J3e=t=>jn("organizeJobDetailOperationsGetOrganizeJob",t),DIe=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await x3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:J3e(t)}),LIe=t=>({mutationFn:async n=>{const{data:r}=await C3e({...t,...n,throwOnError:!0});return r}}),e_e=t=>jn("syncOperationsGetSyncStatus",t),UIe=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await E3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:e_e(t)}),t_e=t=>jn("addressOperationsSearchAddresses",t),zIe=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await _3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:t_e(t)}),jIe=t=>({mutationFn:async n=>{const{data:r}=await k3e({...t,...n,throwOnError:!0});return r}}),n_e=t=>jn("configOperationsGetConfig",t),r_e=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await A3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:n_e(t)}),FIe=t=>jn("threadOperationsListThreads",t),a_e=t=>jn("threadOperationsSearchThreads",t),BIe=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await T3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:a_e(t)}),$Ie=t=>({mutationFn:async n=>{const{data:r}=await R3e({...t,...n,throwOnError:!0});return r}}),HIe=t=>({mutationFn:async n=>{const{data:r}=await I3e({...t,...n,throwOnError:!0});return r}}),s_e=t=>jn("meOperationsListVipSuggestions",t),qIe=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await O3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:s_e(t)}),WIe=t=>({mutationFn:async n=>{const{data:r}=await N3e({...t,...n,throwOnError:!0});return r}}),VIe=t=>({mutationFn:async n=>{const{data:r}=await M3e({...t,...n,throwOnError:!0});return r}}),GIe=t=>({mutationFn:async n=>{const{data:r}=await P3e({...t,...n,throwOnError:!0});return r}}),KIe=t=>({mutationFn:async n=>{const{data:r}=await D3e({...t,...n,throwOnError:!0});return r}}),o_e=t=>jn("messageOperationsDescribeMessage",t),YIe=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await L3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:o_e(t)}),ZIe=t=>({mutationFn:async n=>{const{data:r}=await U3e({...t,...n,throwOnError:!0});return r}}),i_e=t=>jn("messageOperationsGetRawMessage",t),XIe=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await z3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:i_e(t)}),hH=t=>jn("outboxOperationsListOutboxMessages",t),QIe=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await j3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:hH(t)}),JIe=t=>({mutationFn:async n=>{const{data:r}=await F3e({...t,...n,throwOnError:!0});return r}}),e4e=t=>({mutationFn:async n=>{const{data:r}=await B3e({...t,...n,throwOnError:!0});return r}}),l_e=t=>jn("outboxDetailOperationsGetOutboxMessage",t),u_e=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await $3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:l_e(t)}),t4e=t=>({mutationFn:async n=>{const{data:r}=await H3e({...t,...n,throwOnError:!0});return r}}),n4e=t=>({mutationFn:async n=>{const{data:r}=await q3e({...t,...n,throwOnError:!0});return r}}),c_e=t=>jn("semanticSearchOperationsSemanticSearch",t),r4e=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await W3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:c_e(t)}),pH=t=>jn("systemOperationsGetSystemUpdate",t),d_e=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await V3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:pH(t)}),f_e=t=>({mutationFn:async n=>{const{data:r}=await G3e({...t,...n,throwOnError:!0});return r}}),h_e=t=>jn("unifiedThreadOperationsListAllThreads",t),p_e=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await K3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:h_e(t)}),m_e=t=>jn("threadDetailOperationsListThreadMessages",t),a4e=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await Y3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:m_e(t)}),mH=_.createContext(void 0),b9={isOpen:!1,mode:"new"},g_e=2e3,v_e=6e4,y_e=({children:t})=>{const[e,n]=_.useState(b9),[r,a]=_.useState(),s=_.useRef(0),i=zv(),{data:u}=Gj({...u_e({path:{outboxMessageId:r??""}}),enabled:!!r,refetchInterval:y=>{const S=y.state.data?.status;return S==="sent"||S==="failed"||S==="blocked"||Date.now()-s.current>v_e?!1:g_e}});_.useEffect(()=>{if(!u||!r)return;(u.status==="sent"||u.status==="failed"||u.status==="blocked")&&(a(void 0),i.invalidateQueries({queryKey:hH()}))},[u,r,i]);const c=_.useCallback(y=>{n({...y,isOpen:!0})},[]),f=_.useCallback(()=>{n(b9)},[]),h=_.useCallback(y=>{n(S=>({...S,outboxMessageId:y}))},[]),m=_.useCallback(y=>{s.current=Date.now(),a(y)},[]),g=_.useMemo(()=>({state:e,openCompose:c,closeCompose:f,setOutboxMessageId:h,startSendPolling:m}),[e,c,f,h,m]);return C.jsx(mH.Provider,{value:g,children:t})},s4e=()=>{const t=_.useContext(mH);if(!t)throw new Error("useCompose must be used within a ComposeProvider");return t},b_e=600,S_e=300,gH="remit logs",w_e="https://github.com/remit-mail/reader/releases/tag/",x_e={checking:"preparing",pulling:"preparing",snapshotting:"preparing",stopping:"restarting",starting:"restarting",verifying:"reconnecting",committing:"reconnecting",rollingBack:"reconnecting",recovering:"reconnecting"};function eT(t){return x_e[t]??"reconnecting"}function vH(t){const e=fu(t);return e===404||e===403||e===401}function yH(t,e){const n=t?.check;if(n?.status==="ok"&&!(!n.updateAvailable||!n.latestVersion))return{version:n.latestVersion,releasedAt:M1(n.publishedAt)??e,releaseNotesUrl:n.releaseNotesUrl??SH(n.latestVersion),summary:n.summary??""}}function C_e(t){const e=t?.check.schemaVersion,n=t?.currentSchemaVersion;return e===void 0||n===void 0?!1:e>n}function S9(){return b_e+S_e}function bH(t,e){return Math.max(0,Math.floor((e-t)/1e3))}function M1(t){if(!t)return;const e=Date.parse(t);return Number.isNaN(e)?void 0:e}function SH(t){return`${w_e}${t}`}function Th(t,e,n,r,a){return{status:"applying",runId:t,version:e,target:n,phase:r,elapsedSeconds:a}}function E_e(t,e,n){switch(n){case"succeeded":return{status:"succeeded",runId:e.runId,version:e.targetVersion,previousVersion:e.fromVersion,releaseNotesUrl:t.check.releaseNotesUrl??SH(e.targetVersion)};case"rolledBack":return{status:"rolledBack",runId:e.runId,version:e.fromVersion,attemptedVersion:e.targetVersion,reason:e.message,logsCommand:e.logCommand};case"rollbackFailed":return{status:"rollbackFailed",runId:e.runId,attemptedVersion:e.targetVersion,previousVersion:e.fromVersion,reason:e.message,logsCommand:e.logCommand};case"abandoned":return{status:"abandoned",runId:e.runId,version:e.fromVersion,attemptedVersion:e.targetVersion,reason:e.message,logsCommand:e.logCommand};default:return n}}function __e(t,e,n){const r=t.check;if(e)return{status:"checking",version:t.currentVersion};if(r.status==="failed")return{status:"checkFailed",version:t.currentVersion,reason:r.error??"Remit could not reach the update service.",lastCheckedAt:M1(r.lastCheckedAt)};if(r.status==="disabled")return{status:"neverChecked",version:t.currentVersion};const a=yH(t,n);return a?{status:"available",version:t.currentVersion,release:a}:{status:"upToDate",version:t.currentVersion,checkedAt:M1(r.lastCheckedAt)??n}}function aE(t,e,n){return{surface:{status:"ready",section:t,overlay:e},releaseHeld:n}}function k_e(t,e){return{surface:{status:"ready",section:Th(t.runId,t.previousVersion,t.attemptedVersion,"reconnecting",e),overlay:{kind:"neverCameBack",attemptedVersion:t.attemptedVersion,previousVersion:t.previousVersion,elapsedSeconds:e,logsCommand:gH}},releaseHeld:!1}}function A_e(t,e,n,r,a){const s=bH(t.startedAt,a),i=e?.currentVersion??t.previousVersion,u=!r&&n!==null&&n.runId===t.runId;if(u&&n!==null&&n.outcome!==null)return null;if(u&&n!==null){const c=eT(n.phase);return aE(Th(n.runId,i,n.targetVersion,c,s),{kind:"applying",target:n.targetVersion,phase:c,elapsedSeconds:s},!1)}return r?s>S9()?k_e(t,s):aE(Th(t.runId,t.previousVersion,t.attemptedVersion,"reconnecting",s),{kind:"applying",target:t.attemptedVersion,phase:"reconnecting",elapsedSeconds:s},!1):e===void 0?{surface:{status:"loading"},releaseHeld:!1}:s>S9()?{surface:{status:"ready",section:{status:"unreachable",runId:t.runId,previousVersion:t.previousVersion,attemptedVersion:t.attemptedVersion,elapsedSeconds:s,logsCommand:n?.logCommand??gH},overlay:{kind:"none"}},releaseHeld:!0}:aE(Th(t.runId,i,t.attemptedVersion,t.phase,s),{kind:"applying",target:t.attemptedVersion,phase:t.phase,elapsedSeconds:s},!1)}function w9(t){const{data:e,isError:n,isFetching:r,dismissedRunId:a,checkRequested:s,now:i}=t;if(n)return{status:"ready",section:{status:"checkFailed",version:e?.currentVersion??"the current version",reason:"Remit could not reach the update service."},overlay:{kind:"none"}};if(!e)return{status:"loading"};const u=e.run,c=u!==null&&a!==null&&u.runId===a;if(u!==null&&!c&&u.outcome!==null)return{status:"ready",section:E_e(e,u,u.outcome),overlay:{kind:"none"}};if(u!==null&&!c&&u.outcome===null){const f=bH(M1(u.startedAt)??i,i),h=eT(u.phase);return{status:"ready",section:Th(u.runId,u.fromVersion,u.targetVersion,h,f),overlay:{kind:"applying",target:u.targetVersion,phase:h,elapsedSeconds:f}}}return{status:"ready",section:__e(e,s&&r,i),overlay:{kind:"none"}}}function T_e(t){const{data:e,isError:n,error:r,held:a,now:s}=t,i=e?.run??null;if(vH(r)&&!a)return{surface:{status:"absent"},releaseHeld:!0};if(a){const u=A_e(a,e,i,n,s);return u||{surface:w9(t),releaseHeld:!0}}return{surface:w9(t),releaseHeld:!1}}const R_e=3e4,I_e=5e3;function O_e(t,e,n){if(vH(t)&&!n)return!1;const r=e!==null&&e.outcome===null;return n||r?I_e:R_e}function N_e(){const t=zv(),[e,n]=_.useState(null),[r,a]=_.useState(null),[s,i]=_.useState(!1),u=_.useRef(e);u.current=e;const c=Gj({...d_e(),retry:!1,meta:{softError:!0},refetchInterval:A=>O_e(A.state.error,A.state.data?.run??null,u.current!==null)}),f=T_e({data:c.data,isError:c.isError,error:c.error,isFetching:c.isFetching,held:e,dismissedRunId:r,checkRequested:s,now:Date.now()}),h=_.useRef(null);h.current=f.surface.status==="ready"&&"runId"in f.surface.section?f.surface.section.runId:null;const{releaseHeld:m}=f;_.useEffect(()=>{m&&n(A=>A===null?A:null)},[m]),_.useEffect(()=>{s&&!c.isFetching&&i(!1)},[s,c.isFetching]);const{refetch:g}=c,y=_.useCallback(()=>{i(!0),g()},[g]),S=_.useCallback(()=>{g()},[g]),w=Gge({...f_e(),meta:{softError:!0},onSuccess:A=>{const R=A.run;R!==null&&(n({runId:R.runId,attemptedVersion:R.targetVersion,previousVersion:R.fromVersion,phase:eT(R.phase),startedAt:Date.now()}),a(null)),t.setQueryData(pH(),A)},onError:()=>{g()}}),{mutate:x}=w,E=_.useCallback(A=>{x({body:{targetVersion:A}})},[x]),k=_.useCallback(()=>{h.current!==null&&a(h.current),n(null)},[]);return{surface:f.surface,appliesSchemaMigration:C_e(c.data),currentVersion:c.data?.currentVersion,release:yH(c.data,Date.now()),onCheck:y,install:E,onDismissResult:k,onRetryConnection:S}}const tT=_.createContext(null);function M_e({children:t}){const e=N_e();return _.createElement(tT.Provider,{value:e},t)}function P_e(){const t=_.useContext(tT);if(t===null)throw new Error("useSelfUpdate must be used within a SelfUpdateProvider");return t}function D_e(){return _.useContext(tT)}function L_e(){const{surface:t,onRetryConnection:e}=P_e();if(t.status!=="ready")return null;const{overlay:n}=t;return n.kind==="applying"?C.jsx(Dre,{target:n.target,phase:n.phase,elapsedSeconds:n.elapsedSeconds}):n.kind==="neverCameBack"?C.jsx(Lre,{attemptedVersion:n.attemptedVersion,previousVersion:n.previousVersion,elapsedSeconds:n.elapsedSeconds,logsCommand:n.logsCommand,onRetryConnection:e}):null}const sE=(...t)=>LL(EL(t)),U_e={error:{container:"border-danger/50 bg-danger-soft",icon:"text-danger",title:"text-danger"},warning:{container:"border-warning/50 bg-warning-soft",icon:"text-warning",title:"text-warning"},info:{container:"border-accent-2/50 bg-accent-2-soft",icon:"text-accent-2",title:"text-accent-2"}},z_e={error:EJ,warning:Nh,info:IL},j_e={error:"Error",warning:"Warning",info:"Information"},F_e=({id:t,severity:e,title:n,detail:r,onDismiss:a})=>{const s=U_e[e],i=z_e[e];return C.jsxs("div",{role:e==="error"?"alert":"status","aria-live":e==="error"?"assertive":"polite",className:sE("pointer-events-auto flex items-start gap-3 rounded-md border bg-canvas px-3 py-2 shadow-lg",s.container),children:[C.jsx(i,{className:sE("size-5 shrink-0 mt-0.5",s.icon),"aria-hidden":"true"}),C.jsxs("div",{className:"flex-1 min-w-0",children:[C.jsx("p",{className:sE("text-sm font-medium",s.title),children:n}),r&&C.jsx("p",{className:"mt-0.5 text-xs text-fg-muted break-words",children:r})]}),C.jsx("button",{type:"button",onClick:()=>a(t),className:"shrink-0 rounded-md p-1 text-fg-muted hover:bg-surface-raised hover:text-fg transition-colors","aria-label":`Dismiss ${j_e[e].toLowerCase()}`,children:C.jsx(Ms,{className:"size-4","aria-hidden":"true"})})]})},B_e=({errors:t,onDismiss:e})=>t.length===0?null:C.jsx("section",{"aria-label":"Notifications",className:"pointer-events-none fixed inset-x-0 top-0 z-[60] flex flex-col items-center gap-2 px-4 pt-4 sm:items-end sm:pr-6",children:C.jsx("div",{className:"flex w-full max-w-md flex-col gap-2",children:t.map(n=>C.jsx(F_e,{id:n.id,severity:n.severity,title:n.title,detail:n.detail,onDismiss:e},n.id))})}),x9=5,o4e=(t,e,n)=>({title:t,detail:wH(n)??e,error:n}),wH=t=>{if(t!=null){if(t instanceof Error)return t.message||void 0;if(typeof t=="string")return t||void 0;if(typeof t=="object"&&"message"in t&&typeof t.message=="string")return t.message||void 0}},i4e=t=>{const e=wH(t);return e?e.startsWith("Message not found"):!1},$_e=(t,e,n)=>t.severity===n&&t.title===e.title&&t.detail===e.detail,H_e=(t,e)=>{const r=[...t.filter(a=>!$_e(a,{title:e.title,detail:e.detail,severity:e.severity},e.severity)),e];return r.length<=x9?r:r.slice(r.length-x9)},q_e=(t,e)=>t.filter(n=>n.id!==e),W_e=(t,e,n)=>({id:e,severity:t.severity??"error",title:t.title,detail:t.detail,createdAt:n}),xH=_.createContext(void 0),V_e=()=>typeof globalThis.crypto<"u"&&typeof globalThis.crypto.randomUUID=="function"?globalThis.crypto.randomUUID():`banner-${Date.now()}-${Math.random().toString(36).slice(2,10)}`,G_e=({children:t})=>{const[e,n]=_.useState([]),r=_.useCallback(u=>{if(u.error!=null&&HU(u.error))return Yl(u.error).correlationId;const c=W_e(u,V_e(),Date.now());return n(f=>H_e(f,c)),c.id},[]),a=_.useCallback(u=>{n(c=>q_e(c,u))},[]),s=_.useCallback(()=>{n([])},[]),i=_.useMemo(()=>({errors:e,pushError:r,dismissError:a,clearAll:s}),[e,r,a,s]);return C.jsxs(xH.Provider,{value:i,children:[t,C.jsx(B_e,{errors:e,onDismiss:a})]})},l4e=()=>{const t=_.useContext(xH);if(!t)throw new Error("useErrorBanners must be used within an ErrorBannerProvider");return t},K_e=({error:t,reset:e,info:n})=>{const r=uv(t),a=Yl(t,{recoverable:r,componentStack:n?.componentStack});return C.jsx(QU,{fatal:a,onRetry:r?e:void 0})},Np=w1e()({component:Z_e,errorComponent:K_e}),Y_e=()=>{const{t}=n3e("common",{useSuspense:!1});return C.jsx("a",{href:"#main-content",className:"sr-only focus:not-sr-only focus:absolute focus:z-50 focus:p-4 focus:bg-canvas focus:text-fg focus:rounded-md",children:t("accessibility.skipToContent","Skip to main content")})};function Z_e(){return C.jsxs(G_e,{children:[C.jsxs(M_e,{children:[C.jsxs(y_e,{children:[C.jsx(Y_e,{}),C.jsx("main",{id:"main-content",className:"h-dvh overflow-hidden",children:C.jsx(_.Suspense,{fallback:C.jsx(ak,{}),children:C.jsx(CF,{})})})]}),C.jsx(L_e,{})]}),C.jsx(XU,{})]})}const X_e=ur("/")({beforeLoad:()=>{throw aF({to:"/mail"})}});var Tt;(function(t){t.assertEqual=a=>{};function e(a){}t.assertIs=e;function n(a){throw new Error}t.assertNever=n,t.arrayToEnum=a=>{const s={};for(const i of a)s[i]=i;return s},t.getValidEnumValues=a=>{const s=t.objectKeys(a).filter(u=>typeof a[a[u]]!="number"),i={};for(const u of s)i[u]=a[u];return t.objectValues(i)},t.objectValues=a=>t.objectKeys(a).map(function(s){return a[s]}),t.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const s=[];for(const i in a)Object.prototype.hasOwnProperty.call(a,i)&&s.push(i);return s},t.find=(a,s)=>{for(const i of a)if(s(i))return i},t.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&Number.isFinite(a)&&Math.floor(a)===a;function r(a,s=" | "){return a.map(i=>typeof i=="string"?`'${i}'`:i).join(s)}t.joinValues=r,t.jsonStringifyReplacer=(a,s)=>typeof s=="bigint"?s.toString():s})(Tt||(Tt={}));var C9;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})(C9||(C9={}));const Ie=Tt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Ai=t=>{switch(typeof t){case"undefined":return Ie.undefined;case"string":return Ie.string;case"number":return Number.isNaN(t)?Ie.nan:Ie.number;case"boolean":return Ie.boolean;case"function":return Ie.function;case"bigint":return Ie.bigint;case"symbol":return Ie.symbol;case"object":return Array.isArray(t)?Ie.array:t===null?Ie.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?Ie.promise:typeof Map<"u"&&t instanceof Map?Ie.map:typeof Set<"u"&&t instanceof Set?Ie.set:typeof Date<"u"&&t instanceof Date?Ie.date:Ie.object;default:return Ie.unknown}},ge=Tt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class No extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=e}format(e){const n=e||function(s){return s.message},r={_errors:[]},a=s=>{for(const i of s.issues)if(i.code==="invalid_union")i.unionErrors.map(a);else if(i.code==="invalid_return_type")a(i.returnTypeError);else if(i.code==="invalid_arguments")a(i.argumentsError);else if(i.path.length===0)r._errors.push(n(i));else{let u=r,c=0;for(;c<i.path.length;){const f=i.path[c];c===i.path.length-1?(u[f]=u[f]||{_errors:[]},u[f]._errors.push(n(i))):u[f]=u[f]||{_errors:[]},u=u[f],c++}}};return a(this),r}static assert(e){if(!(e instanceof No))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Tt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=n=>n.message){const n={},r=[];for(const a of this.issues)if(a.path.length>0){const s=a.path[0];n[s]=n[s]||[],n[s].push(e(a))}else r.push(e(a));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}No.create=t=>new No(t);const g_=(t,e)=>{let n;switch(t.code){case ge.invalid_type:t.received===Ie.undefined?n="Required":n=`Expected ${t.expected}, received ${t.received}`;break;case ge.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,Tt.jsonStringifyReplacer)}`;break;case ge.unrecognized_keys:n=`Unrecognized key(s) in object: ${Tt.joinValues(t.keys,", ")}`;break;case ge.invalid_union:n="Invalid input";break;case ge.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Tt.joinValues(t.options)}`;break;case ge.invalid_enum_value:n=`Invalid enum value. Expected ${Tt.joinValues(t.options)}, received '${t.received}'`;break;case ge.invalid_arguments:n="Invalid function arguments";break;case ge.invalid_return_type:n="Invalid function return type";break;case ge.invalid_date:n="Invalid date";break;case ge.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(n=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?n=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?n=`Invalid input: must end with "${t.validation.endsWith}"`:Tt.assertNever(t.validation):t.validation!=="regex"?n=`Invalid ${t.validation}`:n="Invalid";break;case ge.too_small:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:n="Invalid input";break;case ge.too_big:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?n=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:n="Invalid input";break;case ge.custom:n="Invalid input";break;case ge.invalid_intersection_types:n="Intersection results could not be merged";break;case ge.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case ge.not_finite:n="Number must be finite";break;default:n=e.defaultError,Tt.assertNever(t)}return{message:n}};let Q_e=g_;function J_e(){return Q_e}const eke=t=>{const{data:e,path:n,errorMaps:r,issueData:a}=t,s=[...n,...a.path||[]],i={...a,path:s};if(a.message!==void 0)return{...a,path:s,message:a.message};let u="";const c=r.filter(f=>!!f).slice().reverse();for(const f of c)u=f(i,{data:e,defaultError:u}).message;return{...a,path:s,message:u}};function ke(t,e){const n=J_e(),r=eke({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,n,n===g_?void 0:g_].filter(a=>!!a)});t.common.issues.push(r)}class da{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,n){const r=[];for(const a of n){if(a.status==="aborted")return Xe;a.status==="dirty"&&e.dirty(),r.push(a.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,n){const r=[];for(const a of n){const s=await a.key,i=await a.value;r.push({key:s,value:i})}return da.mergeObjectSync(e,r)}static mergeObjectSync(e,n){const r={};for(const a of n){const{key:s,value:i}=a;if(s.status==="aborted"||i.status==="aborted")return Xe;s.status==="dirty"&&e.dirty(),i.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof i.value<"u"||a.alwaysSet)&&(r[s.value]=i.value)}return{status:e.value,value:r}}}const Xe=Object.freeze({status:"aborted"}),ph=t=>({status:"dirty",value:t}),Pa=t=>({status:"valid",value:t}),E9=t=>t.status==="aborted",_9=t=>t.status==="dirty",ld=t=>t.status==="valid",P1=t=>typeof Promise<"u"&&t instanceof Promise;var Ne;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(Ne||(Ne={}));class Ki{constructor(e,n,r,a){this._cachedPath=[],this.parent=e,this.data=n,this._path=r,this._key=a}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const k9=(t,e)=>{if(ld(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new No(t.common.issues);return this._error=n,this._error}}};function st(t){if(!t)return{};const{errorMap:e,invalid_type_error:n,required_error:r,description:a}=t;if(e&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:a}:{errorMap:(i,u)=>{const{message:c}=t;return i.code==="invalid_enum_value"?{message:c??u.defaultError}:typeof u.data>"u"?{message:c??r??u.defaultError}:i.code!=="invalid_type"?{message:u.defaultError}:{message:c??n??u.defaultError}},description:a}}class Et{get description(){return this._def.description}_getType(e){return Ai(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:Ai(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new da,ctx:{common:e.parent.common,data:e.data,parsedType:Ai(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const n=this._parse(e);if(P1(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(e){const n=this._parse(e);return Promise.resolve(n)}parse(e,n){const r=this.safeParse(e,n);if(r.success)return r.data;throw r.error}safeParse(e,n){const r={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ai(e)},a=this._parseSync({data:e,path:r.path,parent:r});return k9(r,a)}"~validate"(e){const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ai(e)};if(!this["~standard"].async)try{const r=this._parseSync({data:e,path:[],parent:n});return ld(r)?{value:r.value}:{issues:n.common.issues}}catch(r){r?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:n}).then(r=>ld(r)?{value:r.value}:{issues:n.common.issues})}async parseAsync(e,n){const r=await this.safeParseAsync(e,n);if(r.success)return r.data;throw r.error}async safeParseAsync(e,n){const r={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ai(e)},a=this._parse({data:e,path:r.path,parent:r}),s=await(P1(a)?a:Promise.resolve(a));return k9(r,s)}refine(e,n){const r=a=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(a):n;return this._refinement((a,s)=>{const i=e(a),u=()=>s.addIssue({code:ge.custom,...r(a)});return typeof Promise<"u"&&i instanceof Promise?i.then(c=>c?!0:(u(),!1)):i?!0:(u(),!1)})}refinement(e,n){return this._refinement((r,a)=>e(r)?!0:(a.addIssue(typeof n=="function"?n(r,a):n),!1))}_refinement(e){return new dd({schema:this,typeName:Qe.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return ji.create(this,this._def)}nullable(){return fd.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ts.create(this)}promise(){return z1.create(this,this._def)}or(e){return L1.create([this,e],this._def)}and(e){return U1.create(this,e,this._def)}transform(e){return new dd({...st(this._def),schema:this,typeName:Qe.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const n=typeof e=="function"?e:()=>e;return new S_({...st(this._def),innerType:this,defaultValue:n,typeName:Qe.ZodDefault})}brand(){return new Cke({typeName:Qe.ZodBranded,type:this,...st(this._def)})}catch(e){const n=typeof e=="function"?e:()=>e;return new w_({...st(this._def),innerType:this,catchValue:n,typeName:Qe.ZodCatch})}describe(e){const n=this.constructor;return new n({...this._def,description:e})}pipe(e){return nT.create(this,e)}readonly(){return x_.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const tke=/^c[^\s-]{8,}$/i,nke=/^[0-9a-z]+$/,rke=/^[0-9A-HJKMNP-TV-Z]{26}$/i,ake=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,ske=/^[a-z0-9_-]{21}$/i,oke=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,ike=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,lke=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,uke="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let oE;const cke=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,dke=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,fke=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,hke=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,pke=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,mke=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,CH="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",gke=new RegExp(`^${CH}$`);function EH(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);const n=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${n}`}function vke(t){return new RegExp(`^${EH(t)}$`)}function yke(t){let e=`${CH}T${EH(t)}`;const n=[];return n.push(t.local?"Z?":"Z"),t.offset&&n.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${n.join("|")})`,new RegExp(`^${e}$`)}function bke(t,e){return!!((e==="v4"||!e)&&cke.test(t)||(e==="v6"||!e)&&fke.test(t))}function Ske(t,e){if(!oke.test(t))return!1;try{const[n]=t.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),a=JSON.parse(atob(r));return!(typeof a!="object"||a===null||"typ"in a&&a?.typ!=="JWT"||!a.alg||e&&a.alg!==e)}catch{return!1}}function wke(t,e){return!!((e==="v4"||!e)&&dke.test(t)||(e==="v6"||!e)&&hke.test(t))}class wo extends Et{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==Ie.string){const s=this._getOrReturnCtx(e);return ke(s,{code:ge.invalid_type,expected:Ie.string,received:s.parsedType}),Xe}const r=new da;let a;for(const s of this._def.checks)if(s.kind==="min")e.data.length<s.value&&(a=this._getOrReturnCtx(e,a),ke(a,{code:ge.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="max")e.data.length>s.value&&(a=this._getOrReturnCtx(e,a),ke(a,{code:ge.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="length"){const i=e.data.length>s.value,u=e.data.length<s.value;(i||u)&&(a=this._getOrReturnCtx(e,a),i?ke(a,{code:ge.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):u&&ke(a,{code:ge.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),r.dirty())}else if(s.kind==="email")lke.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"email",code:ge.invalid_string,message:s.message}),r.dirty());else if(s.kind==="emoji")oE||(oE=new RegExp(uke,"u")),oE.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"emoji",code:ge.invalid_string,message:s.message}),r.dirty());else if(s.kind==="uuid")ake.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"uuid",code:ge.invalid_string,message:s.message}),r.dirty());else if(s.kind==="nanoid")ske.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"nanoid",code:ge.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid")tke.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"cuid",code:ge.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid2")nke.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"cuid2",code:ge.invalid_string,message:s.message}),r.dirty());else if(s.kind==="ulid")rke.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"ulid",code:ge.invalid_string,message:s.message}),r.dirty());else if(s.kind==="url")try{new URL(e.data)}catch{a=this._getOrReturnCtx(e,a),ke(a,{validation:"url",code:ge.invalid_string,message:s.message}),r.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"regex",code:ge.invalid_string,message:s.message}),r.dirty())):s.kind==="trim"?e.data=e.data.trim():s.kind==="includes"?e.data.includes(s.value,s.position)||(a=this._getOrReturnCtx(e,a),ke(a,{code:ge.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),r.dirty()):s.kind==="toLowerCase"?e.data=e.data.toLowerCase():s.kind==="toUpperCase"?e.data=e.data.toUpperCase():s.kind==="startsWith"?e.data.startsWith(s.value)||(a=this._getOrReturnCtx(e,a),ke(a,{code:ge.invalid_string,validation:{startsWith:s.value},message:s.message}),r.dirty()):s.kind==="endsWith"?e.data.endsWith(s.value)||(a=this._getOrReturnCtx(e,a),ke(a,{code:ge.invalid_string,validation:{endsWith:s.value},message:s.message}),r.dirty()):s.kind==="datetime"?yke(s).test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{code:ge.invalid_string,validation:"datetime",message:s.message}),r.dirty()):s.kind==="date"?gke.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{code:ge.invalid_string,validation:"date",message:s.message}),r.dirty()):s.kind==="time"?vke(s).test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{code:ge.invalid_string,validation:"time",message:s.message}),r.dirty()):s.kind==="duration"?ike.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"duration",code:ge.invalid_string,message:s.message}),r.dirty()):s.kind==="ip"?bke(e.data,s.version)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"ip",code:ge.invalid_string,message:s.message}),r.dirty()):s.kind==="jwt"?Ske(e.data,s.alg)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"jwt",code:ge.invalid_string,message:s.message}),r.dirty()):s.kind==="cidr"?wke(e.data,s.version)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"cidr",code:ge.invalid_string,message:s.message}),r.dirty()):s.kind==="base64"?pke.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"base64",code:ge.invalid_string,message:s.message}),r.dirty()):s.kind==="base64url"?mke.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"base64url",code:ge.invalid_string,message:s.message}),r.dirty()):Tt.assertNever(s);return{status:r.value,value:e.data}}_regex(e,n,r){return this.refinement(a=>e.test(a),{validation:n,code:ge.invalid_string,...Ne.errToObj(r)})}_addCheck(e){return new wo({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...Ne.errToObj(e)})}url(e){return this._addCheck({kind:"url",...Ne.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...Ne.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...Ne.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...Ne.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...Ne.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...Ne.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...Ne.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...Ne.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...Ne.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...Ne.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...Ne.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...Ne.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...Ne.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...Ne.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...Ne.errToObj(e)})}regex(e,n){return this._addCheck({kind:"regex",regex:e,...Ne.errToObj(n)})}includes(e,n){return this._addCheck({kind:"includes",value:e,position:n?.position,...Ne.errToObj(n?.message)})}startsWith(e,n){return this._addCheck({kind:"startsWith",value:e,...Ne.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:"endsWith",value:e,...Ne.errToObj(n)})}min(e,n){return this._addCheck({kind:"min",value:e,...Ne.errToObj(n)})}max(e,n){return this._addCheck({kind:"max",value:e,...Ne.errToObj(n)})}length(e,n){return this._addCheck({kind:"length",value:e,...Ne.errToObj(n)})}nonempty(e){return this.min(1,Ne.errToObj(e))}trim(){return new wo({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new wo({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new wo({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxLength(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}wo.create=t=>new wo({checks:[],typeName:Qe.ZodString,coerce:t?.coerce??!1,...st(t)});function xke(t,e){const n=(t.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,a=n>r?n:r,s=Number.parseInt(t.toFixed(a).replace(".","")),i=Number.parseInt(e.toFixed(a).replace(".",""));return s%i/10**a}class au extends Et{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==Ie.number){const s=this._getOrReturnCtx(e);return ke(s,{code:ge.invalid_type,expected:Ie.number,received:s.parsedType}),Xe}let r;const a=new da;for(const s of this._def.checks)s.kind==="int"?Tt.isInteger(e.data)||(r=this._getOrReturnCtx(e,r),ke(r,{code:ge.invalid_type,expected:"integer",received:"float",message:s.message}),a.dirty()):s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(r=this._getOrReturnCtx(e,r),ke(r,{code:ge.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),a.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(r=this._getOrReturnCtx(e,r),ke(r,{code:ge.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),a.dirty()):s.kind==="multipleOf"?xke(e.data,s.value)!==0&&(r=this._getOrReturnCtx(e,r),ke(r,{code:ge.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(r=this._getOrReturnCtx(e,r),ke(r,{code:ge.not_finite,message:s.message}),a.dirty()):Tt.assertNever(s);return{status:a.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,Ne.toString(n))}gt(e,n){return this.setLimit("min",e,!1,Ne.toString(n))}lte(e,n){return this.setLimit("max",e,!0,Ne.toString(n))}lt(e,n){return this.setLimit("max",e,!1,Ne.toString(n))}setLimit(e,n,r,a){return new au({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:Ne.toString(a)}]})}_addCheck(e){return new au({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:Ne.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Ne.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Ne.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Ne.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Ne.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:Ne.toString(n)})}finite(e){return this._addCheck({kind:"finite",message:Ne.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Ne.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Ne.toString(e)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&Tt.isInteger(e.value))}get isFinite(){let e=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(e===null||r.value<e)&&(e=r.value)}return Number.isFinite(n)&&Number.isFinite(e)}}au.create=t=>new au({checks:[],typeName:Qe.ZodNumber,coerce:t?.coerce||!1,...st(t)});class su extends Et{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==Ie.bigint)return this._getInvalidInput(e);let r;const a=new da;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(r=this._getOrReturnCtx(e,r),ke(r,{code:ge.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),a.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(r=this._getOrReturnCtx(e,r),ke(r,{code:ge.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),a.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(r=this._getOrReturnCtx(e,r),ke(r,{code:ge.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):Tt.assertNever(s);return{status:a.value,value:e.data}}_getInvalidInput(e){const n=this._getOrReturnCtx(e);return ke(n,{code:ge.invalid_type,expected:Ie.bigint,received:n.parsedType}),Xe}gte(e,n){return this.setLimit("min",e,!0,Ne.toString(n))}gt(e,n){return this.setLimit("min",e,!1,Ne.toString(n))}lte(e,n){return this.setLimit("max",e,!0,Ne.toString(n))}lt(e,n){return this.setLimit("max",e,!1,Ne.toString(n))}setLimit(e,n,r,a){return new su({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:Ne.toString(a)}]})}_addCheck(e){return new su({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Ne.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Ne.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Ne.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Ne.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:Ne.toString(n)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}su.create=t=>new su({checks:[],typeName:Qe.ZodBigInt,coerce:t?.coerce??!1,...st(t)});class D1 extends Et{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==Ie.boolean){const r=this._getOrReturnCtx(e);return ke(r,{code:ge.invalid_type,expected:Ie.boolean,received:r.parsedType}),Xe}return Pa(e.data)}}D1.create=t=>new D1({typeName:Qe.ZodBoolean,coerce:t?.coerce||!1,...st(t)});class ud extends Et{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==Ie.date){const s=this._getOrReturnCtx(e);return ke(s,{code:ge.invalid_type,expected:Ie.date,received:s.parsedType}),Xe}if(Number.isNaN(e.data.getTime())){const s=this._getOrReturnCtx(e);return ke(s,{code:ge.invalid_date}),Xe}const r=new da;let a;for(const s of this._def.checks)s.kind==="min"?e.data.getTime()<s.value&&(a=this._getOrReturnCtx(e,a),ke(a,{code:ge.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),r.dirty()):s.kind==="max"?e.data.getTime()>s.value&&(a=this._getOrReturnCtx(e,a),ke(a,{code:ge.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),r.dirty()):Tt.assertNever(s);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new ud({...this._def,checks:[...this._def.checks,e]})}min(e,n){return this._addCheck({kind:"min",value:e.getTime(),message:Ne.toString(n)})}max(e,n){return this._addCheck({kind:"max",value:e.getTime(),message:Ne.toString(n)})}get minDate(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e!=null?new Date(e):null}}ud.create=t=>new ud({checks:[],coerce:t?.coerce||!1,typeName:Qe.ZodDate,...st(t)});class A9 extends Et{_parse(e){if(this._getType(e)!==Ie.symbol){const r=this._getOrReturnCtx(e);return ke(r,{code:ge.invalid_type,expected:Ie.symbol,received:r.parsedType}),Xe}return Pa(e.data)}}A9.create=t=>new A9({typeName:Qe.ZodSymbol,...st(t)});class T9 extends Et{_parse(e){if(this._getType(e)!==Ie.undefined){const r=this._getOrReturnCtx(e);return ke(r,{code:ge.invalid_type,expected:Ie.undefined,received:r.parsedType}),Xe}return Pa(e.data)}}T9.create=t=>new T9({typeName:Qe.ZodUndefined,...st(t)});class R9 extends Et{_parse(e){if(this._getType(e)!==Ie.null){const r=this._getOrReturnCtx(e);return ke(r,{code:ge.invalid_type,expected:Ie.null,received:r.parsedType}),Xe}return Pa(e.data)}}R9.create=t=>new R9({typeName:Qe.ZodNull,...st(t)});class I9 extends Et{constructor(){super(...arguments),this._any=!0}_parse(e){return Pa(e.data)}}I9.create=t=>new I9({typeName:Qe.ZodAny,...st(t)});class v_ extends Et{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Pa(e.data)}}v_.create=t=>new v_({typeName:Qe.ZodUnknown,...st(t)});class Yi extends Et{_parse(e){const n=this._getOrReturnCtx(e);return ke(n,{code:ge.invalid_type,expected:Ie.never,received:n.parsedType}),Xe}}Yi.create=t=>new Yi({typeName:Qe.ZodNever,...st(t)});class O9 extends Et{_parse(e){if(this._getType(e)!==Ie.undefined){const r=this._getOrReturnCtx(e);return ke(r,{code:ge.invalid_type,expected:Ie.void,received:r.parsedType}),Xe}return Pa(e.data)}}O9.create=t=>new O9({typeName:Qe.ZodVoid,...st(t)});class Ts extends Et{_parse(e){const{ctx:n,status:r}=this._processInputParams(e),a=this._def;if(n.parsedType!==Ie.array)return ke(n,{code:ge.invalid_type,expected:Ie.array,received:n.parsedType}),Xe;if(a.exactLength!==null){const i=n.data.length>a.exactLength.value,u=n.data.length<a.exactLength.value;(i||u)&&(ke(n,{code:i?ge.too_big:ge.too_small,minimum:u?a.exactLength.value:void 0,maximum:i?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),r.dirty())}if(a.minLength!==null&&n.data.length<a.minLength.value&&(ke(n,{code:ge.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),r.dirty()),a.maxLength!==null&&n.data.length>a.maxLength.value&&(ke(n,{code:ge.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((i,u)=>a.type._parseAsync(new Ki(n,i,n.path,u)))).then(i=>da.mergeArray(r,i));const s=[...n.data].map((i,u)=>a.type._parseSync(new Ki(n,i,n.path,u)));return da.mergeArray(r,s)}get element(){return this._def.type}min(e,n){return new Ts({...this._def,minLength:{value:e,message:Ne.toString(n)}})}max(e,n){return new Ts({...this._def,maxLength:{value:e,message:Ne.toString(n)}})}length(e,n){return new Ts({...this._def,exactLength:{value:e,message:Ne.toString(n)}})}nonempty(e){return this.min(1,e)}}Ts.create=(t,e)=>new Ts({type:t,minLength:null,maxLength:null,exactLength:null,typeName:Qe.ZodArray,...st(e)});function Rc(t){if(t instanceof An){const e={};for(const n in t.shape){const r=t.shape[n];e[n]=ji.create(Rc(r))}return new An({...t._def,shape:()=>e})}else return t instanceof Ts?new Ts({...t._def,type:Rc(t.element)}):t instanceof ji?ji.create(Rc(t.unwrap())):t instanceof fd?fd.create(Rc(t.unwrap())):t instanceof ou?ou.create(t.items.map(e=>Rc(e))):t}class An extends Et{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),n=Tt.objectKeys(e);return this._cached={shape:e,keys:n},this._cached}_parse(e){if(this._getType(e)!==Ie.object){const f=this._getOrReturnCtx(e);return ke(f,{code:ge.invalid_type,expected:Ie.object,received:f.parsedType}),Xe}const{status:r,ctx:a}=this._processInputParams(e),{shape:s,keys:i}=this._getCached(),u=[];if(!(this._def.catchall instanceof Yi&&this._def.unknownKeys==="strip"))for(const f in a.data)i.includes(f)||u.push(f);const c=[];for(const f of i){const h=s[f],m=a.data[f];c.push({key:{status:"valid",value:f},value:h._parse(new Ki(a,m,a.path,f)),alwaysSet:f in a.data})}if(this._def.catchall instanceof Yi){const f=this._def.unknownKeys;if(f==="passthrough")for(const h of u)c.push({key:{status:"valid",value:h},value:{status:"valid",value:a.data[h]}});else if(f==="strict")u.length>0&&(ke(a,{code:ge.unrecognized_keys,keys:u}),r.dirty());else if(f!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const f=this._def.catchall;for(const h of u){const m=a.data[h];c.push({key:{status:"valid",value:h},value:f._parse(new Ki(a,m,a.path,h)),alwaysSet:h in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const f=[];for(const h of c){const m=await h.key,g=await h.value;f.push({key:m,value:g,alwaysSet:h.alwaysSet})}return f}).then(f=>da.mergeObjectSync(r,f)):da.mergeObjectSync(r,c)}get shape(){return this._def.shape()}strict(e){return Ne.errToObj,new An({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(n,r)=>{const a=this._def.errorMap?.(n,r).message??r.defaultError;return n.code==="unrecognized_keys"?{message:Ne.errToObj(e).message??a}:{message:a}}}:{}})}strip(){return new An({...this._def,unknownKeys:"strip"})}passthrough(){return new An({...this._def,unknownKeys:"passthrough"})}extend(e){return new An({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new An({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Qe.ZodObject})}setKey(e,n){return this.augment({[e]:n})}catchall(e){return new An({...this._def,catchall:e})}pick(e){const n={};for(const r of Tt.objectKeys(e))e[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new An({...this._def,shape:()=>n})}omit(e){const n={};for(const r of Tt.objectKeys(this.shape))e[r]||(n[r]=this.shape[r]);return new An({...this._def,shape:()=>n})}deepPartial(){return Rc(this)}partial(e){const n={};for(const r of Tt.objectKeys(this.shape)){const a=this.shape[r];e&&!e[r]?n[r]=a:n[r]=a.optional()}return new An({...this._def,shape:()=>n})}required(e){const n={};for(const r of Tt.objectKeys(this.shape))if(e&&!e[r])n[r]=this.shape[r];else{let s=this.shape[r];for(;s instanceof ji;)s=s._def.innerType;n[r]=s}return new An({...this._def,shape:()=>n})}keyof(){return _H(Tt.objectKeys(this.shape))}}An.create=(t,e)=>new An({shape:()=>t,unknownKeys:"strip",catchall:Yi.create(),typeName:Qe.ZodObject,...st(e)});An.strictCreate=(t,e)=>new An({shape:()=>t,unknownKeys:"strict",catchall:Yi.create(),typeName:Qe.ZodObject,...st(e)});An.lazycreate=(t,e)=>new An({shape:t,unknownKeys:"strip",catchall:Yi.create(),typeName:Qe.ZodObject,...st(e)});class L1 extends Et{_parse(e){const{ctx:n}=this._processInputParams(e),r=this._def.options;function a(s){for(const u of s)if(u.result.status==="valid")return u.result;for(const u of s)if(u.result.status==="dirty")return n.common.issues.push(...u.ctx.common.issues),u.result;const i=s.map(u=>new No(u.ctx.common.issues));return ke(n,{code:ge.invalid_union,unionErrors:i}),Xe}if(n.common.async)return Promise.all(r.map(async s=>{const i={...n,common:{...n.common,issues:[]},parent:null};return{result:await s._parseAsync({data:n.data,path:n.path,parent:i}),ctx:i}})).then(a);{let s;const i=[];for(const c of r){const f={...n,common:{...n.common,issues:[]},parent:null},h=c._parseSync({data:n.data,path:n.path,parent:f});if(h.status==="valid")return h;h.status==="dirty"&&!s&&(s={result:h,ctx:f}),f.common.issues.length&&i.push(f.common.issues)}if(s)return n.common.issues.push(...s.ctx.common.issues),s.result;const u=i.map(c=>new No(c));return ke(n,{code:ge.invalid_union,unionErrors:u}),Xe}}get options(){return this._def.options}}L1.create=(t,e)=>new L1({options:t,typeName:Qe.ZodUnion,...st(e)});function y_(t,e){const n=Ai(t),r=Ai(e);if(t===e)return{valid:!0,data:t};if(n===Ie.object&&r===Ie.object){const a=Tt.objectKeys(e),s=Tt.objectKeys(t).filter(u=>a.indexOf(u)!==-1),i={...t,...e};for(const u of s){const c=y_(t[u],e[u]);if(!c.valid)return{valid:!1};i[u]=c.data}return{valid:!0,data:i}}else if(n===Ie.array&&r===Ie.array){if(t.length!==e.length)return{valid:!1};const a=[];for(let s=0;s<t.length;s++){const i=t[s],u=e[s],c=y_(i,u);if(!c.valid)return{valid:!1};a.push(c.data)}return{valid:!0,data:a}}else return n===Ie.date&&r===Ie.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}class U1 extends Et{_parse(e){const{status:n,ctx:r}=this._processInputParams(e),a=(s,i)=>{if(E9(s)||E9(i))return Xe;const u=y_(s.value,i.value);return u.valid?((_9(s)||_9(i))&&n.dirty(),{status:n.value,value:u.data}):(ke(r,{code:ge.invalid_intersection_types}),Xe)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([s,i])=>a(s,i)):a(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}U1.create=(t,e,n)=>new U1({left:t,right:e,typeName:Qe.ZodIntersection,...st(n)});class ou extends Et{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==Ie.array)return ke(r,{code:ge.invalid_type,expected:Ie.array,received:r.parsedType}),Xe;if(r.data.length<this._def.items.length)return ke(r,{code:ge.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Xe;!this._def.rest&&r.data.length>this._def.items.length&&(ke(r,{code:ge.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const s=[...r.data].map((i,u)=>{const c=this._def.items[u]||this._def.rest;return c?c._parse(new Ki(r,i,r.path,u)):null}).filter(i=>!!i);return r.common.async?Promise.all(s).then(i=>da.mergeArray(n,i)):da.mergeArray(n,s)}get items(){return this._def.items}rest(e){return new ou({...this._def,rest:e})}}ou.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ou({items:t,typeName:Qe.ZodTuple,rest:null,...st(e)})};class N9 extends Et{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==Ie.map)return ke(r,{code:ge.invalid_type,expected:Ie.map,received:r.parsedType}),Xe;const a=this._def.keyType,s=this._def.valueType,i=[...r.data.entries()].map(([u,c],f)=>({key:a._parse(new Ki(r,u,r.path,[f,"key"])),value:s._parse(new Ki(r,c,r.path,[f,"value"]))}));if(r.common.async){const u=new Map;return Promise.resolve().then(async()=>{for(const c of i){const f=await c.key,h=await c.value;if(f.status==="aborted"||h.status==="aborted")return Xe;(f.status==="dirty"||h.status==="dirty")&&n.dirty(),u.set(f.value,h.value)}return{status:n.value,value:u}})}else{const u=new Map;for(const c of i){const f=c.key,h=c.value;if(f.status==="aborted"||h.status==="aborted")return Xe;(f.status==="dirty"||h.status==="dirty")&&n.dirty(),u.set(f.value,h.value)}return{status:n.value,value:u}}}}N9.create=(t,e,n)=>new N9({valueType:e,keyType:t,typeName:Qe.ZodMap,...st(n)});class ip extends Et{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==Ie.set)return ke(r,{code:ge.invalid_type,expected:Ie.set,received:r.parsedType}),Xe;const a=this._def;a.minSize!==null&&r.data.size<a.minSize.value&&(ke(r,{code:ge.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),n.dirty()),a.maxSize!==null&&r.data.size>a.maxSize.value&&(ke(r,{code:ge.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),n.dirty());const s=this._def.valueType;function i(c){const f=new Set;for(const h of c){if(h.status==="aborted")return Xe;h.status==="dirty"&&n.dirty(),f.add(h.value)}return{status:n.value,value:f}}const u=[...r.data.values()].map((c,f)=>s._parse(new Ki(r,c,r.path,f)));return r.common.async?Promise.all(u).then(c=>i(c)):i(u)}min(e,n){return new ip({...this._def,minSize:{value:e,message:Ne.toString(n)}})}max(e,n){return new ip({...this._def,maxSize:{value:e,message:Ne.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}}ip.create=(t,e)=>new ip({valueType:t,minSize:null,maxSize:null,typeName:Qe.ZodSet,...st(e)});class M9 extends Et{get schema(){return this._def.getter()}_parse(e){const{ctx:n}=this._processInputParams(e);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}M9.create=(t,e)=>new M9({getter:t,typeName:Qe.ZodLazy,...st(e)});class b_ extends Et{_parse(e){if(e.data!==this._def.value){const n=this._getOrReturnCtx(e);return ke(n,{received:n.data,code:ge.invalid_literal,expected:this._def.value}),Xe}return{status:"valid",value:e.data}}get value(){return this._def.value}}b_.create=(t,e)=>new b_({value:t,typeName:Qe.ZodLiteral,...st(e)});function _H(t,e){return new cd({values:t,typeName:Qe.ZodEnum,...st(e)})}class cd extends Et{_parse(e){if(typeof e.data!="string"){const n=this._getOrReturnCtx(e),r=this._def.values;return ke(n,{expected:Tt.joinValues(r),received:n.parsedType,code:ge.invalid_type}),Xe}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const n=this._getOrReturnCtx(e),r=this._def.values;return ke(n,{received:n.data,code:ge.invalid_enum_value,options:r}),Xe}return Pa(e.data)}get options(){return this._def.values}get enum(){const e={};for(const n of this._def.values)e[n]=n;return e}get Values(){const e={};for(const n of this._def.values)e[n]=n;return e}get Enum(){const e={};for(const n of this._def.values)e[n]=n;return e}extract(e,n=this._def){return cd.create(e,{...this._def,...n})}exclude(e,n=this._def){return cd.create(this.options.filter(r=>!e.includes(r)),{...this._def,...n})}}cd.create=_H;class P9 extends Et{_parse(e){const n=Tt.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==Ie.string&&r.parsedType!==Ie.number){const a=Tt.objectValues(n);return ke(r,{expected:Tt.joinValues(a),received:r.parsedType,code:ge.invalid_type}),Xe}if(this._cache||(this._cache=new Set(Tt.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const a=Tt.objectValues(n);return ke(r,{received:r.data,code:ge.invalid_enum_value,options:a}),Xe}return Pa(e.data)}get enum(){return this._def.values}}P9.create=(t,e)=>new P9({values:t,typeName:Qe.ZodNativeEnum,...st(e)});class z1 extends Et{unwrap(){return this._def.type}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==Ie.promise&&n.common.async===!1)return ke(n,{code:ge.invalid_type,expected:Ie.promise,received:n.parsedType}),Xe;const r=n.parsedType===Ie.promise?n.data:Promise.resolve(n.data);return Pa(r.then(a=>this._def.type.parseAsync(a,{path:n.path,errorMap:n.common.contextualErrorMap})))}}z1.create=(t,e)=>new z1({type:t,typeName:Qe.ZodPromise,...st(e)});class dd extends Et{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Qe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:n,ctx:r}=this._processInputParams(e),a=this._def.effect||null,s={addIssue:i=>{ke(r,i),i.fatal?n.abort():n.dirty()},get path(){return r.path}};if(s.addIssue=s.addIssue.bind(s),a.type==="preprocess"){const i=a.transform(r.data,s);if(r.common.async)return Promise.resolve(i).then(async u=>{if(n.value==="aborted")return Xe;const c=await this._def.schema._parseAsync({data:u,path:r.path,parent:r});return c.status==="aborted"?Xe:c.status==="dirty"||n.value==="dirty"?ph(c.value):c});{if(n.value==="aborted")return Xe;const u=this._def.schema._parseSync({data:i,path:r.path,parent:r});return u.status==="aborted"?Xe:u.status==="dirty"||n.value==="dirty"?ph(u.value):u}}if(a.type==="refinement"){const i=u=>{const c=a.refinement(u,s);if(r.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return u};if(r.common.async===!1){const u=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return u.status==="aborted"?Xe:(u.status==="dirty"&&n.dirty(),i(u.value),{status:n.value,value:u.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(u=>u.status==="aborted"?Xe:(u.status==="dirty"&&n.dirty(),i(u.value).then(()=>({status:n.value,value:u.value}))))}if(a.type==="transform")if(r.common.async===!1){const i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!ld(i))return Xe;const u=a.transform(i.value,s);if(u instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:u}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(i=>ld(i)?Promise.resolve(a.transform(i.value,s)).then(u=>({status:n.value,value:u})):Xe);Tt.assertNever(a)}}dd.create=(t,e,n)=>new dd({schema:t,typeName:Qe.ZodEffects,effect:e,...st(n)});dd.createWithPreprocess=(t,e,n)=>new dd({schema:e,effect:{type:"preprocess",transform:t},typeName:Qe.ZodEffects,...st(n)});class ji extends Et{_parse(e){return this._getType(e)===Ie.undefined?Pa(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ji.create=(t,e)=>new ji({innerType:t,typeName:Qe.ZodOptional,...st(e)});class fd extends Et{_parse(e){return this._getType(e)===Ie.null?Pa(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}fd.create=(t,e)=>new fd({innerType:t,typeName:Qe.ZodNullable,...st(e)});class S_ extends Et{_parse(e){const{ctx:n}=this._processInputParams(e);let r=n.data;return n.parsedType===Ie.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}S_.create=(t,e)=>new S_({innerType:t,typeName:Qe.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...st(e)});class w_ extends Et{_parse(e){const{ctx:n}=this._processInputParams(e),r={...n,common:{...n.common,issues:[]}},a=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return P1(a)?a.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new No(r.common.issues)},input:r.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new No(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}w_.create=(t,e)=>new w_({innerType:t,typeName:Qe.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...st(e)});class D9 extends Et{_parse(e){if(this._getType(e)!==Ie.nan){const r=this._getOrReturnCtx(e);return ke(r,{code:ge.invalid_type,expected:Ie.nan,received:r.parsedType}),Xe}return{status:"valid",value:e.data}}}D9.create=t=>new D9({typeName:Qe.ZodNaN,...st(t)});class Cke extends Et{_parse(e){const{ctx:n}=this._processInputParams(e),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class nT extends Et{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?Xe:s.status==="dirty"?(n.dirty(),ph(s.value)):this._def.out._parseAsync({data:s.value,path:r.path,parent:r})})();{const a=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?Xe:a.status==="dirty"?(n.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:r.path,parent:r})}}static create(e,n){return new nT({in:e,out:n,typeName:Qe.ZodPipeline})}}class x_ extends Et{_parse(e){const n=this._def.innerType._parse(e),r=a=>(ld(a)&&(a.value=Object.freeze(a.value)),a);return P1(n)?n.then(a=>r(a)):r(n)}unwrap(){return this._def.innerType}}x_.create=(t,e)=>new x_({innerType:t,typeName:Qe.ZodReadonly,...st(e)});var Qe;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(Qe||(Qe={}));const _r=wo.create;au.create;su.create;const Eke=D1.create;ud.create;const kH=v_.create;Yi.create;Ts.create;const Td=An.create;L1.create;U1.create;ou.create;const _ke=b_.create,kke=cd.create;z1.create;ji.create;fd.create;const u4e={string:(t=>wo.create({...t,coerce:!0})),number:(t=>au.create({...t,coerce:!0})),boolean:(t=>D1.create({...t,coerce:!0})),bigint:(t=>su.create({...t,coerce:!0})),date:(t=>ud.create({...t,coerce:!0}))},Ake=kke(["match","properties","folder","rule","name","review","run"]),Tke=t=>{const e=Ake.safeParse(t);return e.success?e.data:void 0},Rke=_ke("search"),Ike=t=>{const e=Rke.safeParse(t);return e.success?e.data:void 0},Oke=kH().transform(Ike),Nke=()=>$v({from:"/mail",select:t=>t.wizardFrom}),Mke=kH().transform(Tke),Pke=(t,e)=>vp(t,e)+1,AH=()=>$v({from:"/mail",select:t=>t.wizard}),Dke=()=>{const t=Ep();return _.useCallback((e,n)=>{t({to:".",search:r=>({...r,wizard:e,wizardFrom:n})})},[t])},c4e=()=>{const t=AH(),e=Dke(),[n,r]=_.useState("organize"),a=_.useCallback(i=>{r(i),e("match")},[e]),s=_.useCallback(()=>{e("properties","search")},[e]);return{verb:n,start:a,startFromSearch:s,isOpen:t!==void 0}},d4e=t=>{const e=Kr(),n=Ep(),r=AH(),a=Nke(),s=_.useRef(r!==void 0),i=_.useRef(a),u=_.useRef(void 0);_.useEffect(()=>{u.current=void 0},[r]),_.useEffect(()=>{if(!s.current)return;s.current=!1;const m=i.current;(async()=>(await n({to:".",search:g=>({...g,wizard:void 0,wizardFrom:void 0}),replace:!0}),await n({to:".",search:g=>({...g,wizard:t,wizardFrom:m})})))()},[t,n]);const c=_.useCallback(m=>{m===r||u.current===m||(u.current=m,n({to:".",search:g=>({...g,wizard:m})}))},[n,r]),f=_.useCallback(()=>{e.history.back()},[e]),h=_.useCallback((m,g)=>{e.history.go(-Pke(m,g))},[e]);return{step:r,goToStep:c,goBack:f,closeWizard:h}},Lke=ev().apiUrl;Pe.setConfig({baseUrl:Lke,fetch:SL});Pe.interceptors.error.use((t,e)=>{if(t instanceof qE||!e)return t;const n=t,r=n&&typeof n=="object"&&"message"in n?String(n.message):`Request failed with status ${e.status}`;return new qE(r,e.status,n)});const iE={Inbox:"inbox",Drafts:"drafts",Sent:"sent",Archive:"archive",Junk:"junk",Trash:"trash",All:"all",Flagged:"flagged"},f4e={inbox:"Inbox",drafts:"Drafts",sent:"Sent",archive:"Archive",junk:"Junk",trash:"Trash",all:"All",flagged:"Flagged"},L9=["inbox","flagged","drafts","sent","archive","all","junk","trash"];function Uke(t){const e=new Map,n=[...t].sort((r,a)=>L9.indexOf(iE[r.role])-L9.indexOf(iE[a.role]));for(const r of n){if(!r.mailboxId||e.has(r.mailboxId))continue;const a=iE[r.role];a&&e.set(r.mailboxId,a)}return e}const zke=t=>{const e=t.split("/");return e[e.length-1]||t};function h4e(t,e,n){const r=t.displayNameOverride?.trim();if(r)return r;const a=zke(t.fullPath);return!e||!n?a:n(`sidebar.${e}`,a)}const jke=new Set(["sent","drafts","trash"]),p4e=t=>t===void 0||!jke.has(t),Fke=new Map;function m4e(t){const e=new Map;for(const n of t){const r=Uke(n.folderAppointments);for(const[a,s]of r)e.set(a,{role:s});for(const a of n.mailboxes){const s=r.get(a.mailboxId);e.set(a.mailboxId,{...s?{role:s}:{},providerPath:a.fullPath})}}return e}function g4e(t,e){const n=e[0];if(!t)return n?{mailboxId:n}:{};for(const a of e){const s=t.get(a);if(s&&Une(s)!==void 0)return{mailboxId:a,folder:s}}if(!n)return{};const r=t.get(n);return{mailboxId:n,...r?{folder:r}:{}}}const Bke=_.createContext(null),v4e=()=>_.useContext(Bke)??{accounts:[],mailboxNameIndex:new Map,accountNameIndex:new Map,resultFolderIndex:Fke,searchQuery:"",searchInput:"",searchViewKey:"",onSearchChange:()=>{},onSearchClear:()=>{},onSearchClearQuery:()=>{},intelligenceOpen:!1,onToggleIntelligence:()=>{},onSetIntelligenceOpen:()=>{}},$ke=()=>zn(()=>import("./mail-4Em6VBK7.js").then(t=>t.m),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])),Hke=Td({q:_r().optional(),wizard:Mke,wizardFrom:Oke}),qke=ur("/mail")({loader:({context:{queryClient:t}})=>{t.prefetchQuery(r_e()),t.prefetchQuery({...p_e(),staleTime:6e4})},component:Wn($ke,"component"),validateSearch:Hke}),Wke=()=>zn(()=>import("./onboarding-pxm_CHBN.js"),__vite__mapDeps([15,16,3,5])),Vke=ur("/onboarding")({component:Wn(Wke,"component")});function Gke(){const t=D_e(),e=t?.surface.status==="ready"&&t.surface.section.status==="available";return C.jsx(Mre,{show:e,children:C.jsx($J,{className:"size-4"})})}const Kke=()=>zn(()=>import("./settings-DVvZvPYc.js"),[]),y4e=[{id:"accounts",label:"Accounts",icon:C.jsx(RL,{className:"size-4"})},{id:"senders",label:"Senders & Rules",icon:C.jsx(BJ,{className:"size-4"})},{id:"folders",label:"Folder roles",icon:C.jsx(OJ,{className:"size-4"})},{id:"filters",label:"Filters",icon:C.jsx(TJ,{className:"size-4"})},{id:"labels",label:"Labels",icon:C.jsx(jJ,{className:"size-4"})},{id:"appearance",label:"Appearance",icon:C.jsx(PJ,{className:"size-4"})},{id:"advanced",label:"Advanced",icon:C.jsx(Gke,{})}],b4e={accounts:"/settings/accounts",senders:"/settings/senders",folders:"/settings/folders",filters:"/settings/filters",labels:"/settings/labels",appearance:"/settings/appearance",advanced:"/settings/advanced"},Yke=ur("/settings")({component:Wn(Kke,"component")}),Zke=()=>zn(()=>import("./index-CUqn72uM.js"),__vite__mapDeps([17,9])),Xke=()=>zn(()=>import("./index-DtqBFgK5.js"),[]),Qke=Td({selectedMessageId:_r().optional(),selectedThreadId:_r().optional(),selectedMailboxId:_r().optional(),q:_r().optional()}),Jke=ur("/mail/")({component:Wn(Xke,"component"),validateSearch:Qke,errorComponent:Wn(Zke,"errorComponent")}),eAe=()=>zn(()=>import("./_mailboxId-DtqBFgK5.js"),[]),tAe=Td({selectedMessageId:_r().optional(),selectedThreadId:_r().optional(),q:_r().optional()}),nAe=ur("/mail/$mailboxId")({component:Wn(eAe,"component"),validateSearch:tAe}),rAe=()=>zn(()=>import("./flagged-CAKOVrfq.js"),__vite__mapDeps([18,9])),aAe=()=>zn(()=>import("./flagged-DtqBFgK5.js"),[]),sAe=Td({selectedMessageId:_r().optional(),q:_r().optional()}),oAe=ur("/mail/flagged")({component:Wn(aAe,"component"),validateSearch:sAe,errorComponent:Wn(rAe,"errorComponent")}),iAe=()=>zn(()=>import("./outbox-DtqBFgK5.js"),[]),lAe=Td({selectedOutboxMessageId:_r().optional(),q:_r().optional()}),uAe=ur("/mail/outbox")({component:Wn(iAe,"component"),validateSearch:lAe}),cAe=()=>zn(()=>import("./index-CrWgKt9k.js"),[]),dAe=ur("/settings/")({component:Wn(cAe,"component")}),fAe=()=>zn(()=>import("./accounts-x6guxeAK.js"),__vite__mapDeps([19,6,20,2,16,3,5,21,9,10])),hAe=Td({editAccountId:_r().optional(),focusSmtp:Eke().optional(),connected:_r().optional(),oauthError:_r().optional()}),pAe=ur("/settings/accounts")({component:Wn(fAe,"component"),validateSearch:hAe}),mAe=()=>zn(()=>import("./advanced-BO6zq6kP.js"),__vite__mapDeps([22,20,2,21,4,14])),gAe=ur("/settings/advanced")({component:Wn(mAe,"component")}),vAe=()=>zn(()=>import("./appearance-BfWb9_Fy.js"),__vite__mapDeps([23,20,2])),yAe=ur("/settings/appearance")({component:Wn(vAe,"component")}),bAe=()=>zn(()=>import("./filters-D07T8xAp.js"),__vite__mapDeps([24,20,2,8,11,12,14,9])),SAe=ur("/settings/filters")({component:Wn(bAe,"component")}),wAe=()=>zn(()=>import("./folders-C0VzmNT5.js"),__vite__mapDeps([25,1,20,2,11,9])),xAe=ur("/settings/folders")({component:Wn(wAe,"component")}),CAe=()=>zn(()=>import("./labels-fkQCQumy.js"),__vite__mapDeps([26,20,2,13,9,12])),EAe=ur("/settings/labels")({component:Wn(CAe,"component")}),_Ae=()=>zn(()=>import("./senders-Dl4Tys8e.js"),__vite__mapDeps([27,3,20,2,9,7,10])),kAe=ur("/settings/senders")({component:Wn(_Ae,"component")}),AAe=()=>zn(()=>import("./suggested-vips-C5XozfMP.js"),[]),TAe=ur("/settings/suggested-vips")({component:Wn(AAe,"component")}),RAe=X_e.update({id:"/",path:"/",getParentRoute:()=>Np}),Mp=qke.update({id:"/mail",path:"/mail",getParentRoute:()=>Np}),IAe=Vke.update({id:"/onboarding",path:"/onboarding",getParentRoute:()=>Np}),js=Yke.update({id:"/settings",path:"/settings",getParentRoute:()=>Np}),OAe=Jke.update({id:"/",path:"/",getParentRoute:()=>Mp}),NAe=nAe.update({id:"/$mailboxId",path:"/$mailboxId",getParentRoute:()=>Mp}),MAe=oAe.update({id:"/flagged",path:"/flagged",getParentRoute:()=>Mp}),PAe=uAe.update({id:"/outbox",path:"/outbox",getParentRoute:()=>Mp}),DAe=dAe.update({id:"/",path:"/",getParentRoute:()=>js}),LAe=pAe.update({id:"/accounts",path:"/accounts",getParentRoute:()=>js}),UAe=gAe.update({id:"/advanced",path:"/advanced",getParentRoute:()=>js}),zAe=yAe.update({id:"/appearance",path:"/appearance",getParentRoute:()=>js}),jAe=SAe.update({id:"/filters",path:"/filters",getParentRoute:()=>js}),FAe=xAe.update({id:"/folders",path:"/folders",getParentRoute:()=>js}),BAe=EAe.update({id:"/labels",path:"/labels",getParentRoute:()=>js}),$Ae=kAe.update({id:"/senders",path:"/senders",getParentRoute:()=>js}),HAe=TAe.update({id:"/suggested-vips",path:"/suggested-vips",getParentRoute:()=>js}),qAe={MailMailboxIdRoute:NAe,MailFlaggedRoute:MAe,MailOutboxRoute:PAe,MailIndexRoute:OAe},WAe=Mp._addFileChildren(qAe),VAe={SettingsAccountsRoute:LAe,SettingsAdvancedRoute:UAe,SettingsAppearanceRoute:zAe,SettingsFiltersRoute:jAe,SettingsFoldersRoute:FAe,SettingsLabelsRoute:BAe,SettingsSendersRoute:$Ae,SettingsSuggestedVipsRoute:HAe,SettingsIndexRoute:DAe},GAe=js._addFileChildren(VAe),KAe={IndexRoute:RAe,MailRoute:WAe,OnboardingRoute:IAe,SettingsRoute:GAe},YAe=Np._addFileChildren(KAe)._addFileTypes(),ZAe=(t,e)=>{const n=U1e({routeTree:YAe,context:{queryClient:t},defaultPreload:"intent"});return n.subscribe("onResolved",r=>{e.recordPageView(r.toLocation.pathname),cae(r.toLocation.pathname)}),n},Ve=t=>typeof t=="string",eh=()=>{let t,e;const n=new Promise((r,a)=>{t=r,e=a});return n.resolve=t,n.reject=e,n},U9=t=>t==null?"":""+t,XAe=(t,e,n)=>{t.forEach(r=>{e[r]&&(n[r]=e[r])})},QAe=/###/g,z9=t=>t&&t.indexOf("###")>-1?t.replace(QAe,"."):t,j9=t=>!t||Ve(t),Rh=(t,e,n)=>{const r=Ve(e)?e.split("."):e;let a=0;for(;a<r.length-1;){if(j9(t))return{};const s=z9(r[a]);!t[s]&&n&&(t[s]=new n),Object.prototype.hasOwnProperty.call(t,s)?t=t[s]:t={},++a}return j9(t)?{}:{obj:t,k:z9(r[a])}},F9=(t,e,n)=>{const{obj:r,k:a}=Rh(t,e,Object);if(r!==void 0||e.length===1){r[a]=n;return}let s=e[e.length-1],i=e.slice(0,e.length-1),u=Rh(t,i,Object);for(;u.obj===void 0&&i.length;)s=`${i[i.length-1]}.${s}`,i=i.slice(0,i.length-1),u=Rh(t,i,Object),u?.obj&&typeof u.obj[`${u.k}.${s}`]<"u"&&(u.obj=void 0);u.obj[`${u.k}.${s}`]=n},JAe=(t,e,n,r)=>{const{obj:a,k:s}=Rh(t,e,Object);a[s]=a[s]||[],a[s].push(n)},j1=(t,e)=>{const{obj:n,k:r}=Rh(t,e);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},eTe=(t,e,n)=>{const r=j1(t,n);return r!==void 0?r:j1(e,n)},TH=(t,e,n)=>{for(const r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?Ve(t[r])||t[r]instanceof String||Ve(e[r])||e[r]instanceof String?n&&(t[r]=e[r]):TH(t[r],e[r],n):t[r]=e[r]);return t},vc=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var tTe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const nTe=t=>Ve(t)?t.replace(/[&<>"'\/]/g,e=>tTe[e]):t;class rTe{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}const aTe=[" ",",","?","!",";"],sTe=new rTe(20),oTe=(t,e,n)=>{e=e||"",n=n||"";const r=aTe.filter(i=>e.indexOf(i)<0&&n.indexOf(i)<0);if(r.length===0)return!0;const a=sTe.getRegExp(`(${r.map(i=>i==="?"?"\\?":i).join("|")})`);let s=!a.test(t);if(!s){const i=t.indexOf(n);i>0&&!a.test(t.substring(0,i))&&(s=!0)}return s},C_=function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!t)return;if(t[e])return Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0;const r=e.split(n);let a=t;for(let s=0;s<r.length;){if(!a||typeof a!="object")return;let i,u="";for(let c=s;c<r.length;++c)if(c!==s&&(u+=n),u+=r[c],i=a[u],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&c<r.length-1)continue;s+=c-s+1;break}a=i}return a},F1=t=>t?.replace("_","-"),iTe={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console?.[t]?.apply?.(console,e)}};class B1{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,n)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||iTe,this.options=n,this.debug=n.debug}log(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,r,a){return a&&!this.debug?null:(Ve(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new B1(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new B1(this.logger,e)}}var As=new B1;class ly{constructor(){this.observers={}}on(e,n){return e.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const a=this.observers[r].get(n)||0;this.observers[r].set(n,a+1)}),this}off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(i=>{let[u,c]=i;for(let f=0;f<c;f++)u(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[u,c]=i;for(let f=0;f<c;f++)u.apply(u,[e,...r])})}}class B9 extends ly{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,i=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let u;e.indexOf(".")>-1?u=e.split("."):(u=[e,n],r&&(Array.isArray(r)?u.push(...r):Ve(r)&&s?u.push(...r.split(s)):u.push(r)));const c=j1(this.data,u);return!c&&!n&&!r&&e.indexOf(".")>-1&&(e=u[0],n=u[1],r=u.slice(2).join(".")),c||!i||!Ve(r)?c:C_(this.data?.[e]?.[n],r,s)}addResource(e,n,r,a){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let u=[e,n];r&&(u=u.concat(i?r.split(i):r)),e.indexOf(".")>-1&&(u=e.split("."),a=n,n=u[1]),this.addNamespaces(n),F9(this.data,u,a),s.silent||this.emit("added",e,n,r,a)}addResources(e,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const s in r)(Ve(r[s])||Array.isArray(r[s]))&&this.addResource(e,n,s,r[s],{silent:!0});a.silent||this.emit("added",e,n,r)}addResourceBundle(e,n,r,a,s){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},u=[e,n];e.indexOf(".")>-1&&(u=e.split("."),a=r,r=n,n=u[1]),this.addNamespaces(n);let c=j1(this.data,u)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),a?TH(c,r,s):c={...c,...r},F9(this.data,u,c),i.silent||this.emit("added",e,n,r)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(a=>n[a]&&Object.keys(n[a]).length>0)}toJSON(){return this.data}}var RH={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,r,a){return t.forEach(s=>{e=this.processors[s]?.process(e,n,r,a)??e}),e}};const $9={},H9=t=>!Ve(t)&&typeof t!="boolean"&&typeof t!="number";class $1 extends ly{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),XAe(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=As.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};return e==null?!1:this.resolve(e,n)?.res!==void 0}extractFromKey(e,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let s=n.ns||this.options.defaultNS||[];const i=r&&e.indexOf(r)>-1,u=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!oTe(e,r,a);if(i&&!u){const c=e.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:e,namespaces:Ve(s)?[s]:s};const f=e.split(r);(r!==a||r===a&&this.options.ns.indexOf(f[0])>-1)&&(s=f.shift()),e=f.join(a)}return{key:e,namespaces:Ve(s)?[s]:s}}translate(e,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const a=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:i,namespaces:u}=this.extractFromKey(e[e.length-1],n),c=u[u.length-1],f=n.lng||this.language,h=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f?.toLowerCase()==="cimode"){if(h){const z=n.nsSeparator||this.options.nsSeparator;return a?{res:`${c}${z}${i}`,usedKey:i,exactUsedKey:i,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${z}${i}`}return a?{res:i,usedKey:i,exactUsedKey:i,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:i}const m=this.resolve(e,n);let g=m?.res;const y=m?.usedKey||i,S=m?.exactUsedKey||i,w=["[object Number]","[object Function]","[object RegExp]"],x=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject,k=n.count!==void 0&&!Ve(n.count),A=$1.hasDefaultValue(n),R=k?this.pluralResolver.getSuffix(f,n.count,n):"",N=n.ordinal&&k?this.pluralResolver.getSuffix(f,n.count,{ordinal:!1}):"",O=k&&!n.ordinal&&n.count===0,I=O&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${R}`]||n[`defaultValue${N}`]||n.defaultValue;let P=g;E&&!g&&A&&(P=I);const U=H9(P),q=Object.prototype.toString.apply(P);if(E&&P&&U&&w.indexOf(q)<0&&!(Ve(x)&&Array.isArray(P))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const z=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,P,{...n,ns:u}):`key '${i} (${this.language})' returned an object instead of string.`;return a?(m.res=z,m.usedParams=this.getUsedParamsDetails(n),m):z}if(s){const z=Array.isArray(P),j=z?[]:{},H=z?S:y;for(const W in P)if(Object.prototype.hasOwnProperty.call(P,W)){const se=`${H}${s}${W}`;A&&!g?j[W]=this.translate(se,{...n,defaultValue:H9(I)?I[W]:void 0,joinArrays:!1,ns:u}):j[W]=this.translate(se,{...n,joinArrays:!1,ns:u}),j[W]===se&&(j[W]=P[W])}g=j}}else if(E&&Ve(x)&&Array.isArray(g))g=g.join(x),g&&(g=this.extendTranslation(g,e,n,r));else{let z=!1,j=!1;!this.isValidLookup(g)&&A&&(z=!0,g=I),this.isValidLookup(g)||(j=!0,g=i);const W=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&j?void 0:g,se=A&&I!==g&&this.options.updateMissing;if(j||z||se){if(this.logger.log(se?"updateKey":"missingKey",f,c,i,se?I:g),s){const he=this.resolve(i,{...n,keySeparator:!1});he&&he.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let $=[];const Q=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Q&&Q[0])for(let he=0;he<Q.length;he++)$.push(Q[he]);else this.options.saveMissingTo==="all"?$=this.languageUtils.toResolveHierarchy(n.lng||this.language):$.push(n.lng||this.language);const re=(he,xe,D)=>{const Z=A&&D!==g?D:W;this.options.missingKeyHandler?this.options.missingKeyHandler(he,c,xe,Z,se,n):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(he,c,xe,Z,se,n),this.emit("missingKey",he,c,xe,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&k?$.forEach(he=>{const xe=this.pluralResolver.getSuffixes(he,n);O&&n[`defaultValue${this.options.pluralSeparator}zero`]&&xe.indexOf(`${this.options.pluralSeparator}zero`)<0&&xe.push(`${this.options.pluralSeparator}zero`),xe.forEach(D=>{re([he],i+D,n[`defaultValue${D}`]||I)})}):re($,i,I))}g=this.extendTranslation(g,e,n,m,r),j&&g===i&&this.options.appendNamespaceToMissingKey&&(g=`${c}:${i}`),(j||z)&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${i}`:i,z?g:void 0))}return a?(m.res=g,m.usedParams=this.getUsedParamsDetails(n),m):g}extendTranslation(e,n,r,a,s){var i=this;if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const f=Ve(e)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let h;if(f){const g=e.match(this.interpolator.nestingRegexp);h=g&&g.length}let m=r.replace&&!Ve(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),e=this.interpolator.interpolate(e,m,r.lng||this.language||a.usedLng,r),f){const g=e.match(this.interpolator.nestingRegexp),y=g&&g.length;h<y&&(r.nest=!1)}!r.lng&&a&&a.res&&(r.lng=this.language||a.usedLng),r.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var g=arguments.length,y=new Array(g),S=0;S<g;S++)y[S]=arguments[S];return s?.[0]===y[0]&&!r.context?(i.logger.warn(`It seems you are nesting recursively key: ${y[0]} in key: ${n[0]}`),null):i.translate(...y,n)},r)),r.interpolation&&this.interpolator.reset()}const u=r.postProcess||this.options.postProcess,c=Ve(u)?[u]:u;return e!=null&&c?.length&&r.applyPostProcessor!==!1&&(e=RH.handle(c,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,a,s,i,u;return Ve(e)&&(e=[e]),e.forEach(c=>{if(this.isValidLookup(r))return;const f=this.extractFromKey(c,n),h=f.key;a=h;let m=f.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));const g=n.count!==void 0&&!Ve(n.count),y=g&&!n.ordinal&&n.count===0,S=n.context!==void 0&&(Ve(n.context)||typeof n.context=="number")&&n.context!=="",w=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(x=>{this.isValidLookup(r)||(u=x,!$9[`${w[0]}-${x}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(u)&&($9[`${w[0]}-${x}`]=!0,this.logger.warn(`key "${a}" for languages "${w.join(", ")}" won't get resolved as namespace "${u}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),w.forEach(E=>{if(this.isValidLookup(r))return;i=E;const k=[h];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(k,h,E,x,n);else{let R;g&&(R=this.pluralResolver.getSuffix(E,n.count,n));const N=`${this.options.pluralSeparator}zero`,O=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(g&&(k.push(h+R),n.ordinal&&R.indexOf(O)===0&&k.push(h+R.replace(O,this.options.pluralSeparator)),y&&k.push(h+N)),S){const I=`${h}${this.options.contextSeparator}${n.context}`;k.push(I),g&&(k.push(I+R),n.ordinal&&R.indexOf(O)===0&&k.push(I+R.replace(O,this.options.pluralSeparator)),y&&k.push(I+N))}}let A;for(;A=k.pop();)this.isValidLookup(r)||(s=A,r=this.getResource(E,x,A,n))}))})}),{res:r,usedKey:a,exactUsedKey:s,usedLng:i,usedNS:u}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,n,r,a):this.resourceStore.getResource(e,n,r,a)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&!Ve(e.replace);let a=r?e.replace:e;if(r&&typeof e.count<"u"&&(a.count=e.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!r){a={...a};for(const s of n)delete a[s]}return a}static hasDefaultValue(e){const n="defaultValue";for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&n===r.substring(0,n.length)&&e[r]!==void 0)return!0;return!1}}class q9{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=As.create("languageUtils")}getScriptPartFromCode(e){if(e=F1(e),!e||e.indexOf("-")<0)return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=F1(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(Ve(e)&&e.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(e)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(r=>{if(n)return;const a=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(a))&&(n=a)}),!n&&this.options.supportedLngs&&e.forEach(r=>{if(n)return;const a=this.getLanguagePartFromCode(r);if(this.isSupportedCode(a))return n=a;n=this.options.supportedLngs.find(s=>{if(s===a)return s;if(!(s.indexOf("-")<0&&a.indexOf("-")<0)&&(s.indexOf("-")>0&&a.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===a||s.indexOf(a)===0&&a.length>1))return s})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),Ve(e)&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}toResolveHierarchy(e,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],e),a=[],s=i=>{i&&(this.isSupportedCode(i)?a.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return Ve(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(e))):Ve(e)&&s(this.formatLanguageCode(e)),r.forEach(i=>{a.indexOf(i)<0&&s(this.formatLanguageCode(i))}),a}}const W9={zero:0,one:1,two:2,few:3,many:4,other:5},V9={select:t=>t===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class lTe{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=n,this.logger=As.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,n){this.rules[e]=n}clearCache(){this.pluralRulesCache={}}getRule(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=F1(e==="dev"?"en":e),a=n.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:r,type:a});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let i;try{i=new Intl.PluralRules(r,{type:a})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),V9;if(!e.match(/-|_/))return V9;const c=this.languageUtils.getLanguagePartFromCode(e);i=this.getRule(c,n)}return this.pluralRulesCache[s]=i,i}needsPlural(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(e,n);return r||(r=this.getRule("dev",n)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,r).map(a=>`${n}${a}`)}getSuffixes(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(e,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((a,s)=>W9[a]-W9[s]).map(a=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${a}`):[]}getSuffix(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const a=this.getRule(e,r);return a?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${a.select(n)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",n,r))}}const G9=function(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=eTe(t,e,n);return!s&&a&&Ve(n)&&(s=C_(t,n,r),s===void 0&&(s=C_(e,n,r))),s},lE=t=>t.replace(/\$/g,"$$$$");class uTe{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=As.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(n=>n),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:a,prefix:s,prefixEscaped:i,suffix:u,suffixEscaped:c,formatSeparator:f,unescapeSuffix:h,unescapePrefix:m,nestingPrefix:g,nestingPrefixEscaped:y,nestingSuffix:S,nestingSuffixEscaped:w,nestingOptionsSeparator:x,maxReplaces:E,alwaysFormat:k}=e.interpolation;this.escape=n!==void 0?n:nTe,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=s?vc(s):i||"{{",this.suffix=u?vc(u):c||"}}",this.formatSeparator=f||",",this.unescapePrefix=h?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":h||"",this.nestingPrefix=g?vc(g):y||vc("$t("),this.nestingSuffix=S?vc(S):w||vc(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=E||1e3,this.alwaysFormat=k!==void 0?k:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,r)=>n?.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,n,r,a){let s,i,u;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},f=y=>{if(y.indexOf(this.formatSeparator)<0){const E=G9(n,c,y,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(E,void 0,r,{...a,...n,interpolationkey:y}):E}const S=y.split(this.formatSeparator),w=S.shift().trim(),x=S.join(this.formatSeparator).trim();return this.format(G9(n,c,w,this.options.keySeparator,this.options.ignoreJSONStructure),x,r,{...a,...n,interpolationkey:w})};this.resetRegExp();const h=a?.missingInterpolationHandler||this.options.missingInterpolationHandler,m=a?.interpolation?.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:y=>lE(y)},{regex:this.regexp,safeValue:y=>this.escapeValue?lE(this.escape(y)):lE(y)}].forEach(y=>{for(u=0;s=y.regex.exec(e);){const S=s[1].trim();if(i=f(S),i===void 0)if(typeof h=="function"){const x=h(e,s,a);i=Ve(x)?x:""}else if(a&&Object.prototype.hasOwnProperty.call(a,S))i="";else if(m){i=s[0];continue}else this.logger.warn(`missed to pass in variable ${S} for interpolating ${e}`),i="";else!Ve(i)&&!this.useRawValueToEscape&&(i=U9(i));const w=y.safeValue(i);if(e=e.replace(s[0],w),m?(y.regex.lastIndex+=i.length,y.regex.lastIndex-=s[0].length):y.regex.lastIndex=0,u++,u>=this.maxReplaces)break}}),e}nest(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,s,i;const u=(c,f)=>{const h=this.nestingOptionsSeparator;if(c.indexOf(h)<0)return c;const m=c.split(new RegExp(`${h}[ ]*{`));let g=`{${m[1]}`;c=m[0],g=this.interpolate(g,i);const y=g.match(/'/g),S=g.match(/"/g);((y?.length??0)%2===0&&!S||S.length%2!==0)&&(g=g.replace(/'/g,'"'));try{i=JSON.parse(g),f&&(i={...f,...i})}catch(w){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,w),`${c}${h}${g}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,c};for(;a=this.nestingRegexp.exec(e);){let c=[];i={...r},i=i.replace&&!Ve(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let f=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){const h=a[1].split(this.formatSeparator).map(m=>m.trim());a[1]=h.shift(),c=h,f=!0}if(s=n(u.call(this,a[1].trim(),i),i),s&&a[0]===e&&!Ve(s))return s;Ve(s)||(s=U9(s)),s||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${e}`),s=""),f&&(s=c.reduce((h,m)=>this.format(h,m,r.lng,{...r,interpolationkey:a[1].trim()}),s.trim())),e=e.replace(a[0],s),this.regexp.lastIndex=0}return e}}const cTe=t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const r=t.split("(");e=r[0].toLowerCase().trim();const a=r[1].substring(0,r[1].length-1);e==="currency"&&a.indexOf(":")<0?n.currency||(n.currency=a.trim()):e==="relativetime"&&a.indexOf(":")<0?n.range||(n.range=a.trim()):a.split(";").forEach(i=>{if(i){const[u,...c]=i.split(":"),f=c.join(":").trim().replace(/^'+|'+$/g,""),h=u.trim();n[h]||(n[h]=f),f==="false"&&(n[h]=!1),f==="true"&&(n[h]=!0),isNaN(f)||(n[h]=parseInt(f,10))}})}return{formatName:e,formatOptions:n}},yc=t=>{const e={};return(n,r,a)=>{let s=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(s={...s,[a.interpolationkey]:void 0});const i=r+JSON.stringify(s);let u=e[i];return u||(u=t(F1(r),a),e[i]=u),u(n)}};class dTe{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=As.create("formatter"),this.options=e,this.formats={number:yc((n,r)=>{const a=new Intl.NumberFormat(n,{...r});return s=>a.format(s)}),currency:yc((n,r)=>{const a=new Intl.NumberFormat(n,{...r,style:"currency"});return s=>a.format(s)}),datetime:yc((n,r)=>{const a=new Intl.DateTimeFormat(n,{...r});return s=>a.format(s)}),relativetime:yc((n,r)=>{const a=new Intl.RelativeTimeFormat(n,{...r});return s=>a.format(s,r.range||"day")}),list:yc((n,r)=>{const a=new Intl.ListFormat(n,{...r});return s=>a.format(s)})},this.init(e)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=yc(n)}format(e,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=n.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(u=>u.indexOf(")")>-1)){const u=s.findIndex(c=>c.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,u)].join(this.formatSeparator)}return s.reduce((u,c)=>{const{formatName:f,formatOptions:h}=cTe(c);if(this.formats[f]){let m=u;try{const g=a?.formatParams?.[a.interpolationkey]||{},y=g.locale||g.lng||a.locale||a.lng||r;m=this.formats[f](u,y,{...h,...a,...g})}catch(g){this.logger.warn(g)}return m}else this.logger.warn(`there was no format function for ${f}`);return u},e)}}const fTe=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class hTe extends ly{constructor(e,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=a,this.logger=As.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,a.backend,a)}queueLoad(e,n,r,a){const s={},i={},u={},c={};return e.forEach(f=>{let h=!0;n.forEach(m=>{const g=`${f}|${m}`;!r.reload&&this.store.hasResourceBundle(f,m)?this.state[g]=2:this.state[g]<0||(this.state[g]===1?i[g]===void 0&&(i[g]=!0):(this.state[g]=1,h=!1,i[g]===void 0&&(i[g]=!0),s[g]===void 0&&(s[g]=!0),c[m]===void 0&&(c[m]=!0)))}),h||(u[f]=!0)}),(Object.keys(s).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(s),pending:Object.keys(i),toLoadLanguages:Object.keys(u),toLoadNamespaces:Object.keys(c)}}loaded(e,n,r){const a=e.split("|"),s=a[0],i=a[1];n&&this.emit("failedLoading",s,i,n),!n&&r&&this.store.addResourceBundle(s,i,r,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2,n&&r&&(this.state[e]=0);const u={};this.queue.forEach(c=>{JAe(c.loaded,[s],i),fTe(c,e),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(f=>{u[f]||(u[f]={});const h=c.loaded[f];h.length&&h.forEach(m=>{u[f][m]===void 0&&(u[f][m]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(c=>!c.done)}read(e,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:r,tried:a,wait:s,callback:i});return}this.readingCalls++;const u=(f,h)=>{if(this.readingCalls--,this.waitingReads.length>0){const m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(f&&h&&a<this.maxRetries){setTimeout(()=>{this.read.call(this,e,n,r,a+1,s*2,i)},s);return}i(f,h)},c=this.backend[r].bind(this.backend);if(c.length===2){try{const f=c(e,n);f&&typeof f.then=="function"?f.then(h=>u(null,h)).catch(u):u(null,f)}catch(f){u(f)}return}return c(e,n,u)}prepareLoading(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();Ve(e)&&(e=this.languageUtils.toResolveHierarchy(e)),Ve(n)&&(n=[n]);const s=this.queueLoad(e,n,r,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(i=>{this.loadOne(i)})}load(e,n,r){this.prepareLoading(e,n,{},r)}reload(e,n,r){this.prepareLoading(e,n,{reload:!0},r)}loadOne(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=e.split("|"),a=r[0],s=r[1];this.read(a,s,"read",void 0,void 0,(i,u)=>{i&&this.logger.warn(`${n}loading namespace ${s} for language ${a} failed`,i),!i&&u&&this.logger.log(`${n}loaded namespace ${s} for language ${a}`,u),this.loaded(e,i,u)})}saveMissing(e,n,r,a,s){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend?.create){const c={...i,isUpdate:s},f=this.backend.create.bind(this.backend);if(f.length<6)try{let h;f.length===5?h=f(e,n,r,a,c):h=f(e,n,r,a),h&&typeof h.then=="function"?h.then(m=>u(null,m)).catch(u):u(null,h)}catch(h){u(h)}else f(e,n,r,a,u,c)}!e||!e[0]||this.store.addResource(e[0],n,r,a)}}}const K9=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),Ve(t[1])&&(e.defaultValue=t[1]),Ve(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(r=>{e[r]=n[r]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Y9=t=>(Ve(t.ns)&&(t.ns=[t.ns]),Ve(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),Ve(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs?.indexOf?.("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),typeof t.initImmediate=="boolean"&&(t.initAsync=t.initImmediate),t),Jg=()=>{},pTe=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})};class lp extends ly{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Y9(e),this.services={},this.logger=As,this.modules={external:[]},pTe(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(){var e=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),n.defaultNS==null&&n.ns&&(Ve(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const a=K9();this.options={...a,...this.options,...Y9(n)},this.options.interpolation={...a.interpolation,...this.options.interpolation},n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const s=h=>h?typeof h=="function"?new h:h:null;if(!this.options.isClone){this.modules.logger?As.init(s(this.modules.logger),this.options):As.init(null,this.options);let h;this.modules.formatter?h=this.modules.formatter:h=dTe;const m=new q9(this.options);this.store=new B9(this.options.resources,this.options);const g=this.services;g.logger=As,g.resourceStore=this.store,g.languageUtils=m,g.pluralResolver=new lTe(m,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),h&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(g.formatter=s(h),g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new uTe(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new hTe(s(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",function(y){for(var S=arguments.length,w=new Array(S>1?S-1:0),x=1;x<S;x++)w[x-1]=arguments[x];e.emit(y,...w)}),this.modules.languageDetector&&(g.languageDetector=s(this.modules.languageDetector),g.languageDetector.init&&g.languageDetector.init(g,this.options.detection,this.options)),this.modules.i18nFormat&&(g.i18nFormat=s(this.modules.i18nFormat),g.i18nFormat.init&&g.i18nFormat.init(this)),this.translator=new $1(this.services,this.options),this.translator.on("*",function(y){for(var S=arguments.length,w=new Array(S>1?S-1:0),x=1;x<S;x++)w[x-1]=arguments[x];e.emit(y,...w)}),this.modules.external.forEach(y=>{y.init&&y.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Jg),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const h=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);h.length>0&&h[0]!=="dev"&&(this.options.lng=h[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(h=>{this[h]=function(){return e.store[h](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(h=>{this[h]=function(){return e.store[h](...arguments),e}});const c=eh(),f=()=>{const h=(m,g)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(g),r(m,g)};if(this.languages&&!this.isInitialized)return h(null,this.t.bind(this));this.changeLanguage(this.options.lng,h)};return this.options.resources||!this.options.initAsync?f():setTimeout(f,0),c}loadResources(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Jg;const a=Ve(e)?e:this.language;if(typeof e=="function"&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(a?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const s=[],i=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(f=>{f!=="cimode"&&s.indexOf(f)<0&&s.push(f)})};a?i(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>i(c)),this.options.preload?.forEach?.(u=>i(u)),this.services.backendConnector.load(s,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(u)})}else r(null)}reloadResources(e,n,r){const a=eh();return typeof e=="function"&&(r=e,e=void 0),typeof n=="function"&&(r=n,n=void 0),e||(e=this.languages),n||(n=this.options.ns),r||(r=Jg),this.services.backendConnector.reload(e,n,s=>{a.resolve(),r(s)}),a}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&RH.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(e,n){var r=this;this.isLanguageChangingTo=e;const a=eh();this.emit("languageChanging",e);const s=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},i=(c,f)=>{f?(s(f),this.translator.changeLanguage(f),this.isLanguageChangingTo=void 0,this.emit("languageChanged",f),this.logger.log("languageChanged",f)):this.isLanguageChangingTo=void 0,a.resolve(function(){return r.t(...arguments)}),n&&n(c,function(){return r.t(...arguments)})},u=c=>{!e&&!c&&this.services.languageDetector&&(c=[]);const f=Ve(c)?c:this.services.languageUtils.getBestMatchFromCodes(c);f&&(this.language||s(f),this.translator.language||this.translator.changeLanguage(f),this.services.languageDetector?.cacheUserLanguage?.(f)),this.loadResources(f,h=>{i(h,f)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(u):this.services.languageDetector.detect(u):u(e),a}getFixedT(e,n,r){var a=this;const s=function(i,u){let c;if(typeof u!="object"){for(var f=arguments.length,h=new Array(f>2?f-2:0),m=2;m<f;m++)h[m-2]=arguments[m];c=a.options.overloadTranslationOptionHandler([i,u].concat(h))}else c={...u};c.lng=c.lng||s.lng,c.lngs=c.lngs||s.lngs,c.ns=c.ns||s.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||r||s.keyPrefix);const g=a.options.keySeparator||".";let y;return c.keyPrefix&&Array.isArray(i)?y=i.map(S=>`${c.keyPrefix}${g}${S}`):y=c.keyPrefix?`${c.keyPrefix}${g}${i}`:i,a.t(y,c)};return Ve(e)?s.lng=e:s.lngs=e,s.ns=n,s.keyPrefix=r,s}t(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.translator?.translate(...n)}exists(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.translator?.exists(...n)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const i=(u,c)=>{const f=this.services.backendConnector.state[`${u}|${c}`];return f===-1||f===0||f===2};if(n.precheck){const u=n.precheck(this,i);if(u!==void 0)return u}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(r,e)&&(!a||i(s,e)))}loadNamespaces(e,n){const r=eh();return this.options.ns?(Ve(e)&&(e=[e]),e.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}loadLanguages(e,n){const r=eh();Ve(e)&&(e=[e]);const a=this.options.preload||[],s=e.filter(i=>a.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return s.length?(this.options.preload=a.concat(s),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services?.languageUtils||new q9(K9());return n.indexOf(r.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new lp(e,n)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Jg;const r=e.forkResourceStore;r&&delete e.forkResourceStore;const a={...this.options,...e,isClone:!0},s=new lp(a);if((e.debug!==void 0||e.prefix!==void 0)&&(s.logger=s.logger.clone(e)),["store","services","language"].forEach(u=>{s[u]=this[u]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r){const u=Object.keys(this.store.data).reduce((c,f)=>(c[f]={...this.store.data[f]},Object.keys(c[f]).reduce((h,m)=>(h[m]={...c[f][m]},h),{})),{});s.store=new B9(u,a),s.services.resourceStore=s.store}return s.translator=new $1(s.services,a),s.translator.on("*",function(u){for(var c=arguments.length,f=new Array(c>1?c-1:0),h=1;h<c;h++)f[h-1]=arguments[h];s.emit(u,...f)}),s.init(a,n),s.translator.options=a,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const mr=lp.createInstance();mr.createInstance=lp.createInstance;mr.createInstance;mr.dir;mr.init;mr.loadResources;mr.reloadResources;mr.use;mr.changeLanguage;mr.getFixedT;mr.t;mr.exists;mr.setDefaultNamespace;mr.hasLoadedNamespace;mr.loadNamespaces;mr.loadLanguages;const{slice:mTe,forEach:gTe}=[];function vTe(t){return gTe.call(mTe.call(arguments,1),e=>{if(e)for(const n in e)t[n]===void 0&&(t[n]=e[n])}),t}function yTe(t){return typeof t!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(n=>n.test(t))}const Z9=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,bTe=function(t,e){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},a=encodeURIComponent(e);let s=`${t}=${a}`;if(r.maxAge>0){const i=r.maxAge-0;if(Number.isNaN(i))throw new Error("maxAge should be a Number");s+=`; Max-Age=${Math.floor(i)}`}if(r.domain){if(!Z9.test(r.domain))throw new TypeError("option domain is invalid");s+=`; Domain=${r.domain}`}if(r.path){if(!Z9.test(r.path))throw new TypeError("option path is invalid");s+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(s+="; Partitioned"),s},X9={create(t,e,n,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(a.expires=new Date,a.expires.setTime(a.expires.getTime()+n*60*1e3)),r&&(a.domain=r),document.cookie=bTe(t,e,a)},read(t){const e=`${t}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let a=n[r];for(;a.charAt(0)===" ";)a=a.substring(1,a.length);if(a.indexOf(e)===0)return a.substring(e.length,a.length)}return null},remove(t,e){this.create(t,"",-1,e)}};var STe={name:"cookie",lookup(t){let{lookupCookie:e}=t;if(e&&typeof document<"u")return X9.read(e)||void 0},cacheUserLanguage(t,e){let{lookupCookie:n,cookieMinutes:r,cookieDomain:a,cookieOptions:s}=e;n&&typeof document<"u"&&X9.create(n,t,r,a,s)}},wTe={name:"querystring",lookup(t){let{lookupQuerystring:e}=t,n;if(typeof window<"u"){let{search:r}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));const s=r.substring(1).split("&");for(let i=0;i<s.length;i++){const u=s[i].indexOf("=");u>0&&s[i].substring(0,u)===e&&(n=s[i].substring(u+1))}}return n}},xTe={name:"hash",lookup(t){let{lookupHash:e,lookupFromHashIndex:n}=t,r;if(typeof window<"u"){const{hash:a}=window.location;if(a&&a.length>2){const s=a.substring(1);if(e){const i=s.split("&");for(let u=0;u<i.length;u++){const c=i[u].indexOf("=");c>0&&i[u].substring(0,c)===e&&(r=i[u].substring(c+1))}}if(r)return r;if(!r&&n>-1){const i=a.match(/\/([a-zA-Z-]*)/g);return Array.isArray(i)?i[typeof n=="number"?n:0]?.replace("/",""):void 0}}}return r}};let bc=null;const Q9=()=>{if(bc!==null)return bc;try{if(bc=typeof window<"u"&&window.localStorage!==null,!bc)return!1;const t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{bc=!1}return bc};var CTe={name:"localStorage",lookup(t){let{lookupLocalStorage:e}=t;if(e&&Q9())return window.localStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupLocalStorage:n}=e;n&&Q9()&&window.localStorage.setItem(n,t)}};let Sc=null;const J9=()=>{if(Sc!==null)return Sc;try{if(Sc=typeof window<"u"&&window.sessionStorage!==null,!Sc)return!1;const t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{Sc=!1}return Sc};var ETe={name:"sessionStorage",lookup(t){let{lookupSessionStorage:e}=t;if(e&&J9())return window.sessionStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupSessionStorage:n}=e;n&&J9()&&window.sessionStorage.setItem(n,t)}},_Te={name:"navigator",lookup(t){const e=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:a}=navigator;if(n)for(let s=0;s<n.length;s++)e.push(n[s]);r&&e.push(r),a&&e.push(a)}return e.length>0?e:void 0}},kTe={name:"htmlTag",lookup(t){let{htmlTag:e}=t,n;const r=e||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},ATe={name:"path",lookup(t){let{lookupFromPathIndex:e}=t;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?n[typeof e=="number"?e:0]?.replace("/",""):void 0}},TTe={name:"subdomain",lookup(t){let{lookupFromSubdomainIndex:e}=t;const n=typeof e=="number"?e+1:1,r=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};let IH=!1;try{document.cookie,IH=!0}catch{}const OH=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];IH||OH.splice(1,1);const RTe=()=>({order:OH,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:t=>t});class NH{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,n)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=e,this.options=vTe(n,this.options||{},RTe()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=a=>a.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(STe),this.addDetector(wTe),this.addDetector(CTe),this.addDetector(ETe),this.addDetector(_Te),this.addDetector(kTe),this.addDetector(ATe),this.addDetector(TTe),this.addDetector(xTe)}addDetector(e){return this.detectors[e.name]=e,this}detect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return e.forEach(r=>{if(this.detectors[r]){let a=this.detectors[r].lookup(this.options);a&&typeof a=="string"&&(a=[a]),a&&(n=n.concat(a))}}),n=n.filter(r=>r!=null&&!yTe(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(e,this.options)}))}}NH.type="languageDetector";function ITe(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=OTe(t))||e){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(f){throw f},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
294
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,i=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var f=n.next();return i=f.done,f},e:function(f){u=!0,s=f},f:function(){try{i||n.return==null||n.return()}finally{if(u)throw s}}}}function OTe(t,e){if(t){if(typeof t=="string")return eD(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eD(t,e):void 0}}function eD(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function E_(t){"@babel/helpers - typeof";return E_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E_(t)}var MH=["__proto__","constructor","prototype"];function PH(t){return!(typeof t!="string"||t.length===0||t.length>128||MH.indexOf(t)>-1||t.indexOf("..")>-1||t.indexOf("\\")>-1||/[?#%\s@]/.test(t)||/[\x00-\x1F\x7F]/.test(t))}function DH(t){return!(!PH(t)||t.indexOf("/")>-1)}function NTe(t){return PH(t)}var MTe={lng:DH,ns:NTe};function e0(t){return typeof t!="string"?t:t.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function PTe(t){if(typeof t!="string"||t.length===0)return t;try{var e=new URL(t);return e.username||e.password?(e.username="",e.password="",e.toString()):t}catch{return t.replace(/(\/\/)[^/@\s]+@/g,"$1")}}function LH(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":E_(XMLHttpRequest))==="object"}function DTe(t){return!!t&&typeof t.then=="function"}function LTe(t){return DTe(t)?t:Promise.resolve(t)}var UTe=/\{\{(.+?)\}\}/g;function tD(t,e){var n=!1,r=t.replace(UTe,function(a,s){var i=s.trim();if(MH.indexOf(i)>-1)return a;var u=e[i];if(u==null)return a;var c=MTe[i]||DH,f=String(u).split("+"),h=ITe(f),m;try{for(h.s();!(m=h.n()).done;){var g=m.value;if(!c(g))return n=!0,a}}catch(y){h.e(y)}finally{h.f()}return f.join("+")});return n?null:r}function nD(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function rD(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?nD(Object(n),!0).forEach(function(r){zTe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nD(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function zTe(t,e,n){return(e=jTe(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function jTe(t){var e=FTe(t,"string");return iu(e)=="symbol"?e:e+""}function FTe(t,e){if(iu(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(iu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function iu(t){"@babel/helpers - typeof";return iu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},iu(t)}var Zi=typeof fetch=="function"?fetch:void 0;typeof global<"u"&&global.fetch?Zi=global.fetch:typeof window<"u"&&window.fetch&&(Zi=window.fetch);var up;LH()&&(typeof global<"u"&&global.XMLHttpRequest?up=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(up=window.XMLHttpRequest));var H1;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?H1=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(H1=window.ActiveXObject));typeof Zi!="function"&&(Zi=void 0);if(!Zi&&!up&&!H1)try{zn(()=>import("./browser-ponyfill-BsjencOU.js").then(t=>t.b),[]).then(function(t){Zi=t.default}).catch(function(){})}catch{}var UH=["__proto__","constructor","prototype"],__=function(e,n){if(n&&iu(n)==="object"){for(var r="",a=0,s=Object.keys(n);a<s.length;a++){var i=s[a];UH.indexOf(i)>-1||(r+="&"+encodeURIComponent(i)+"="+encodeURIComponent(n[i]))}if(!r)return e;e=e+(e.indexOf("?")!==-1?"&":"?")+r.slice(1)}return e},aD=function(e,n,r,a){var s=function(c){if(!c.ok)return r(c.statusText||"Error",{status:c.status});c.text().then(function(f){r(null,{status:c.status,data:f})}).catch(r)};if(a){var i=a(e,n);if(i instanceof Promise){i.then(s).catch(r);return}}typeof fetch=="function"?fetch(e,n).then(s).catch(r):Zi(e,n).then(s).catch(r)},BTe=function(e,n,r,a){e.queryStringParams&&(n=__(n,e.queryStringParams));var s=rD({},typeof e.customHeaders=="function"?e.customHeaders():e.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(s["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(s["Content-Type"]="application/json");var i=typeof e.requestOptions=="function"?e.requestOptions(r):e.requestOptions,u=rD({method:r?"POST":"GET",body:r?e.stringify(r):void 0,headers:s},e._omitFetchOptions?{}:i),c=typeof e.alternateFetch=="function"&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{aD(n,u,a,c)}catch(f){if(!i||Object.keys(i).length===0||!f.message||f.message.indexOf("not implemented")<0)return a(f);try{Object.keys(i).forEach(function(h){delete u[h]}),aD(n,u,a,c),e._omitFetchOptions=!0}catch(h){a(h)}}},$Te=function(e,n,r,a){r&&iu(r)==="object"&&(r=__("",r).slice(1)),e.queryStringParams&&(n=__(n,e.queryStringParams));try{var s=up?new up:new H1("MSXML2.XMLHTTP.3.0");s.open(r?"POST":"GET",n,1),e.crossDomain||s.setRequestHeader("X-Requested-With","XMLHttpRequest"),s.withCredentials=!!e.withCredentials,r&&s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),s.overrideMimeType&&s.overrideMimeType("application/json");var i=e.customHeaders;if(i=typeof i=="function"?i():i,i)for(var u=0,c=Object.keys(i);u<c.length;u++){var f=c[u];UH.indexOf(f)>-1||s.setRequestHeader(f,i[f])}s.onreadystatechange=function(){s.readyState>3&&a(s.status>=400?s.statusText:null,{status:s.status,data:s.responseText})},s.send(r)}catch(h){console&&console.log(h)}},HTe=function(e,n,r,a){if(typeof r=="function"&&(a=r,r=void 0),a=a||function(){},Zi&&n.indexOf("file:")!==0)return BTe(e,n,r,a);if(LH()||typeof ActiveXObject=="function")return $Te(e,n,r,a);a(new Error("No fetch and no xhr implementation found!"))};function hd(t){"@babel/helpers - typeof";return hd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hd(t)}function sD(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function uE(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?sD(Object(n),!0).forEach(function(r){zH(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sD(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function qTe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function WTe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,jH(r.key),r)}}function VTe(t,e,n){return e&&WTe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function zH(t,e,n){return(e=jH(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function jH(t){var e=GTe(t,"string");return hd(e)=="symbol"?e:e+""}function GTe(t,e){if(hd(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(hd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var KTe=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(n){return JSON.parse(n)},stringify:JSON.stringify,parsePayload:function(n,r,a){return zH({},r,a||"")},parseLoadPayload:function(n,r){},request:HTe,reloadInterval:typeof window<"u"?!1:3600*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},FH=(function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};qTe(this,t),this.services=e,this.options=n,this.allOptions=r,this.type="backend",this.init(e,n,r)}return VTe(t,[{key:"init",value:function(n){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=n,this.options=uE(uE(uE({},KTe()),this.options||{}),a),this.allOptions=s,this.services&&this.options.reloadInterval){var i=setInterval(function(){return r.reload()},this.options.reloadInterval);hd(i)==="object"&&typeof i.unref=="function"&&i.unref()}}},{key:"readMulti",value:function(n,r,a){this._readAny(n,n,r,r,a)}},{key:"read",value:function(n,r,a){this._readAny([n],n,[r],r,a)}},{key:"_readAny",value:function(n,r,a,s,i){var u=this,c=this.options.loadPath;typeof this.options.loadPath=="function"&&(c=this.options.loadPath(n,a)),c=LTe(c),c.then(function(f){if(!f)return i(null,{});var h=tD(f,{lng:n.join("+"),ns:a.join("+")});if(h==null){var m=n.map(e0).join(", "),g=a.map(e0).join(", ");return i(new Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+m+"] namespaces=["+g+"]"),!1)}u.loadUrl(h,i,r,s)})}},{key:"loadUrl",value:function(n,r,a,s){var i=this,u=typeof a=="string"?[a]:a,c=typeof s=="string"?[s]:s,f=this.options.parseLoadPayload(u,c),h=e0(PTe(n));this.options.request(this.options,n,f,function(m,g){if(g&&(g.status>=500&&g.status<600||!g.status))return r("failed loading "+h+"; status code: "+g.status,!0);if(g&&g.status>=400&&g.status<500)return r("failed loading "+h+"; status code: "+g.status,!1);if(!g&&m&&m.message){var y=m.message.toLowerCase(),S=["failed","fetch","network","load"].find(function(E){return y.indexOf(E)>-1});if(S)return r("failed loading "+h+": "+e0(m.message),!0)}if(m)return r(m,!1);var w,x;try{typeof g.data=="string"?w=i.options.parse(g.data,a,s):w=g.data}catch{x="failed parsing "+h+" to json"}if(x)return r(x,!1);r(null,w)})}},{key:"create",value:function(n,r,a,s,i){var u=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var c=this.options.parsePayload(r,a,s),f=0,h=[],m=[];n.forEach(function(g){var y=u.options.addPath;typeof u.options.addPath=="function"&&(y=u.options.addPath(g,r));var S=tD(y,{lng:g,ns:r});if(S==null){f+=1,i&&f===n.length&&i(h,m);return}u.options.request(u.options,S,c,function(w,x){f+=1,h.push(w),m.push(x),f===n.length&&typeof i=="function"&&i(h,m)})})}}},{key:"reload",value:function(){var n=this,r=this.services,a=r.backendConnector,s=r.languageUtils,i=r.logger,u=a.language;if(!(u&&u.toLowerCase()==="cimode")){var c=[],f=function(m){var g=s.toResolveHierarchy(m);g.forEach(function(y){c.indexOf(y)<0&&c.push(y)})};f(u),this.allOptions.preload&&this.allOptions.preload.forEach(function(h){return f(h)}),c.forEach(function(h){n.allOptions.ns.forEach(function(m){a.read(h,m,"read",null,null,function(g,y){g&&i.warn("loading namespace ".concat(m," for language ").concat(h," failed"),g),!g&&y&&i.log("loaded namespace ".concat(m," for language ").concat(h),y),a.loaded("".concat(h,"|").concat(m),g,y)})})})}}}])})();FH.type="backend";mr.use(FH).use(NH).use(XEe).init({fallbackLng:"en",supportedLngs:["en","nl","de","fr"],ns:["common","mail","settings","errors"],defaultNS:"common",backend:{loadPath:"/locales/{{lng}}/{{ns}}.json"},detection:{order:["navigator","htmlTag"],caches:[]},interpolation:{escapeValue:!1},react:{useSuspense:!0,bindI18n:"languageChanged loaded"}});const YTe=({authProvider:t,rootElementId:e="root"})=>{iae(),jEe(),t.configure(),uve(t);const n=UEe();Xre(n);const r=new Pge({queryCache:new qj({onError:hve}),mutationCache:new Hj({onError:pve}),defaultOptions:{queries:{staleTime:3e4,gcTime:5*6e4,retry:1}}}),a=ZAe(r,n);n.recordPageView(window.location.pathname);const s=document.getElementById(e);if(!s)throw new Error(`Root element not found: #${e}`);const{Shell:i}=t;W1e.createRoot(s).render(C.jsx(_.StrictMode,{children:C.jsx(uH.Provider,{value:n,children:C.jsxs(Dge,{client:r,children:[C.jsx(fve,{value:t,children:C.jsx(i,{children:C.jsx(F1e,{router:a})})}),!1]})})}))};YTe({authProvider:dge});export{kL as $,TL as A,on as B,kE as C,kee as D,PE as E,RJ as F,TJ as G,Zte as H,IL as I,hRe as J,sRe as K,j0 as L,MJ as M,ite as N,V_ as O,eRe as P,Nh as Q,F as R,zJ as S,FJ as T,pRe as U,TU as V,$ne as W,Ms as X,ute as Y,xRe as Z,bL as _,Rt as a,VIe as a$,B4 as a0,ZTe as a1,XTe as a2,Rge as a3,kRe as a4,_Re as a5,kd as a6,Ln as a7,n1 as a8,Dj as a9,Yl as aA,yF as aB,n3e as aC,h4e as aD,CRe as aE,Gj as aF,o_e as aG,SL as aH,Gge as aI,JIe as aJ,t4e as aK,QIe as aL,zIe as aM,Qte as aN,dne as aO,xJ as aP,r_e as aQ,l4e as aR,u_e as aS,wH as aT,n4e as aU,o4e as aV,e4e as aW,zn as aX,FIe as aY,a_e as aZ,h_e as a_,zv as aa,Lge as ab,jge as ac,Hge as ad,Fge as ae,Bge as af,xr as ag,Wge as ah,oM as ai,$ge as aj,Vge as ak,Kr as al,Vr as am,u1e as an,s4e as ao,Ep as ap,IIe as aq,Uke as ar,sE as as,IRe as at,UIe as au,v4e as av,dIe as aw,Q3e as ax,C3e as ay,qU as az,CJ as b,Td as b$,m_e as b0,ZIe as b1,KIe as b2,zke as b3,WIe as b4,jIe as b5,$v as b6,XIe as b7,YIe as b8,i4e as b9,uv as bA,cte as bB,aRe as bC,t_e as bD,K3e as bE,ZU as bF,VE as bG,hH as bH,AH as bI,LIe as bJ,pIe as bK,p4e as bL,m4e as bM,Xi as bN,ev as bO,Bke as bP,tRe as bQ,ak as bR,CF as bS,n_e as bT,TRe as bU,vIe as bV,mIe as bW,bIe as bX,wU as bY,ts as bZ,Fne as b_,a4e as ba,r4e as bb,g4e as bc,GIe as bd,OE as be,dte as bf,jJ as bg,Dke as bh,oRe as bi,SF as bj,T3e as bk,D3e as bl,M3e as bm,N3e as bn,BIe as bo,PIe as bp,Nke as bq,d4e as br,mRe as bs,vp as bt,yRe as bu,bRe as bv,gRe as bw,vRe as bx,c4e as by,p_e as bz,EL as c,Vz as c$,Eke as c0,_r as c1,u4e as c2,$Ie as c3,HIe as c4,pAe as c5,gIe as c6,yIe as c7,y4e as c8,DJ as c9,Nne as cA,hIe as cB,v3e as cC,_Ie as cD,NIe as cE,iE as cF,f4e as cG,OIe as cH,L9 as cI,lRe as cJ,kIe as cK,AIe as cL,X3e as cM,RIe as cN,TIe as cO,qIe as cP,s_e as cQ,Ym as cR,dz as cS,Ls as cT,Rk as cU,Po as cV,Hue as cW,Do as cX,Due as cY,cz as cZ,vv as c_,b4e as ca,Q_ as cb,wRe as cc,nRe as cd,SRe as ce,P_e as cf,Wre as cg,Hre as ch,$re as ci,g9 as cj,d0 as ck,fIe as cl,CIe as cm,EIe as cn,yU as co,dRe as cp,fne as cq,MIe as cr,DIe as cs,cRe as ct,SIe as cu,xIe as cv,Z3e as cw,wIe as cx,Mne as cy,fRe as cz,Ue as d,sle as d0,Gue as d1,nce as d2,ile as d3,ele as d4,hv as d5,fk as d6,az as d7,Jue as d8,Yue as d9,_v as dA,Sp as dB,ece as dC,yp as dD,tce as dE,Kue as dF,fle as da,que as db,Lk as dc,iz as dd,lle as de,Uue as df,zue as dg,Ise as dh,pu as di,wse as dj,Sse as dk,dk as dl,Zz as dm,Lue as dn,Ese as dp,dle as dq,Bue as dr,hk as ds,jue as dt,sce as du,tj as dv,JTe as dw,gp as dx,ERe as dy,Nk as dz,IE as e,AE as f,EJ as g,_ee as h,fte as i,C as j,rRe as k,rv as l,nte as m,iRe as n,RL as o,uRe as p,ote as q,_ as r,UJ as s,NJ as t,ate as u,LJ as v,wJ as w,AJ as x,jne as y,Une as z};
293
+ or you can use record.mirror to access the mirror instance during recording.`;let t9={map:{},getId(){return console.error(Ac),-1},getNode(){return console.error(Ac),null},removeNodeFromMap(){console.error(Ac)},has(){return console.error(Ac),!1},reset(){console.error(Ac)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(t9=new Proxy(t9,{get(t,e,n){return e==="map"&&console.error(Ac),Reflect.get(t,e,n)}}));function op(t,e,n={}){let r=null,a=0;return function(...s){const i=Date.now();!a&&n.leading===!1&&(a=i);const u=e-(i-a),c=this;u<=0||u>e?(r&&(clearTimeout(r),r=null),a=i,t.apply(c,s)):!r&&n.trailing!==!1&&(r=setTimeout(()=>{a=n.leading===!1?0:Date.now(),r=null,t.apply(c,s)},u))}}function iy(t,e,n,r,a=window){const s=a.Object.getOwnPropertyDescriptor(t,e);return a.Object.defineProperty(t,e,r?n:{set(i){setTimeout(()=>{n.set.call(this,i)},0),s&&s.set&&s.set.call(this,i)}}),()=>iy(t,e,s||{},!0)}let I1=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(I1=()=>new Date().getTime());function F$(t){var e,n,r,a;const s=t.document;return{left:s.scrollingElement?s.scrollingElement.scrollLeft:t.pageXOffset!==void 0?t.pageXOffset:s.documentElement.scrollLeft||s?.body&&((e=at.parentElement(s.body))==null?void 0:e.scrollLeft)||((n=s?.body)==null?void 0:n.scrollLeft)||0,top:s.scrollingElement?s.scrollingElement.scrollTop:t.pageYOffset!==void 0?t.pageYOffset:s?.documentElement.scrollTop||s?.body&&((r=at.parentElement(s.body))==null?void 0:r.scrollTop)||((a=s?.body)==null?void 0:a.scrollTop)||0}}function B$(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function $$(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function H$(t){return t?t.nodeType===t.ELEMENT_NODE?t:at.parentElement(t):null}function Er(t,e,n,r){if(!t)return!1;const a=H$(t);if(!a)return!1;try{if(typeof e=="string"){if(a.classList.contains(e)||r&&a.closest("."+e)!==null)return!0}else if(w1(a,e,r))return!0}catch{}return!!(n&&(a.matches(n)||r&&a.closest(n)!==null))}function BCe(t,e){return e.getId(t)!==-1}function nE(t,e,n){return t.tagName==="TITLE"&&n.headTitleMutations?!0:e.getId(t)===Xh}function q$(t,e){if(_h(t))return!1;const n=e.getId(t);if(!e.has(n))return!0;const r=at.parentNode(t);return r&&r.nodeType===t.DOCUMENT_NODE?!1:r?q$(r,e):!0}function o_(t){return!!t.changedTouches}function $Ce(t=window){"NodeList"in t&&!t.NodeList.prototype.forEach&&(t.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in t&&!t.DOMTokenList.prototype.forEach&&(t.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function W$(t,e){return!!(t.nodeName==="IFRAME"&&e.getMeta(t))}function V$(t,e){return!!(t.nodeName==="LINK"&&t.nodeType===t.ELEMENT_NODE&&t.getAttribute&&t.getAttribute("rel")==="stylesheet"&&e.getMeta(t))}function i_(t){return t?t instanceof QA&&"shadowRoot"in t?!!t.shadowRoot:!!at.shadowRoot(t):!1}class HCe{constructor(){we(this,"id",1),we(this,"styleIDMap",new WeakMap),we(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,n){if(this.has(e))return this.getId(e);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(e,r),this.idStyleMap.set(r,e),r}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function G$(t){var e;let n=null;return"getRootNode"in t&&((e=at.getRootNode(t))==null?void 0:e.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&at.host(at.getRootNode(t))&&(n=at.host(at.getRootNode(t))),n}function qCe(t){let e=t,n;for(;n=G$(e);)e=n;return e}function WCe(t){const e=at.ownerDocument(t);if(!e)return!1;const n=qCe(t);return at.contains(e,n)}function K$(t){const e=at.ownerDocument(t);return e?at.contains(e,t)||WCe(t):!1}var Ct=(t=>(t[t.DomContentLoaded=0]="DomContentLoaded",t[t.Load=1]="Load",t[t.FullSnapshot=2]="FullSnapshot",t[t.IncrementalSnapshot=3]="IncrementalSnapshot",t[t.Meta=4]="Meta",t[t.Custom=5]="Custom",t[t.Plugin=6]="Plugin",t))(Ct||{}),ht=(t=>(t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet",t[t.CustomElement=16]="CustomElement",t))(ht||{}),zr=(t=>(t[t.MouseUp=0]="MouseUp",t[t.MouseDown=1]="MouseDown",t[t.Click=2]="Click",t[t.ContextMenu=3]="ContextMenu",t[t.DblClick=4]="DblClick",t[t.Focus=5]="Focus",t[t.Blur=6]="Blur",t[t.TouchStart=7]="TouchStart",t[t.TouchMove_Departed=8]="TouchMove_Departed",t[t.TouchEnd=9]="TouchEnd",t[t.TouchCancel=10]="TouchCancel",t))(zr||{}),co=(t=>(t[t.Mouse=0]="Mouse",t[t.Pen=1]="Pen",t[t.Touch=2]="Touch",t))(co||{}),id=(t=>(t[t["2D"]=0]="2D",t[t.WebGL=1]="WebGL",t[t.WebGL2=2]="WebGL2",t))(id||{}),Tc=(t=>(t[t.Play=0]="Play",t[t.Pause=1]="Pause",t[t.Seeked=2]="Seeked",t[t.VolumeChange=3]="VolumeChange",t[t.RateChange=4]="RateChange",t))(Tc||{}),Y$=(t=>(t[t.Document=0]="Document",t[t.DocumentType=1]="DocumentType",t[t.Element=2]="Element",t[t.Text=3]="Text",t[t.CDATA=4]="CDATA",t[t.Comment=5]="Comment",t))(Y$||{});function n9(t){return"__ln"in t}class VCe{constructor(){we(this,"length",0),we(this,"head",null),we(this,"tail",null)}get(e){if(e>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<e;r++)n=n?.next||null;return n}addNode(e){const n={value:e,previous:null,next:null};if(e.__ln=n,e.previousSibling&&n9(e.previousSibling)){const r=e.previousSibling.__ln.next;n.next=r,n.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(e.nextSibling&&n9(e.nextSibling)&&e.nextSibling.__ln.previous){const r=e.nextSibling.__ln.previous;n.previous=r,n.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(e){const n=e.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}}const r9=(t,e)=>`${t}@${e}`;class GCe{constructor(){we(this,"frozen",!1),we(this,"locked",!1),we(this,"texts",[]),we(this,"attributes",[]),we(this,"attributeMap",new WeakMap),we(this,"removes",[]),we(this,"mapRemoves",[]),we(this,"movedMap",{}),we(this,"addedSet",new Set),we(this,"movedSet",new Set),we(this,"droppedSet",new Set),we(this,"removesSubTreeCache",new Set),we(this,"mutationCb"),we(this,"blockClass"),we(this,"blockSelector"),we(this,"maskTextClass"),we(this,"maskTextSelector"),we(this,"inlineStylesheet"),we(this,"maskInputOptions"),we(this,"maskTextFn"),we(this,"maskInputFn"),we(this,"keepIframeSrcFn"),we(this,"recordCanvas"),we(this,"inlineImages"),we(this,"slimDOMOptions"),we(this,"dataURLOptions"),we(this,"doc"),we(this,"mirror"),we(this,"iframeManager"),we(this,"stylesheetManager"),we(this,"shadowDomManager"),we(this,"canvasManager"),we(this,"processedNodeManager"),we(this,"unattachedDoc"),we(this,"processMutations",e=>{e.forEach(this.processMutation),this.emit()}),we(this,"emit",()=>{if(this.frozen||this.locked)return;const e=[],n=new Set,r=new VCe,a=c=>{let f=c,h=Xh;for(;h===Xh;)f=f&&f.nextSibling,h=f&&this.mirror.getId(f);return h},s=c=>{const f=at.parentNode(c);if(!f||!K$(c))return;let h=!1;if(c.nodeType===Node.TEXT_NODE){const S=f.tagName;if(S==="TEXTAREA")return;S==="STYLE"&&this.addedSet.has(f)&&(h=!0)}const m=_h(f)?this.mirror.getId(G$(c)):this.mirror.getId(f),g=a(c);if(m===-1||g===-1)return r.addNode(c);const y=Uc(c,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:S=>{W$(S,this.mirror)&&this.iframeManager.addIframe(S),V$(S,this.mirror)&&this.stylesheetManager.trackLinkElement(S),i_(c)&&this.shadowDomManager.addShadowRoot(at.shadowRoot(c),this.doc)},onIframeLoad:(S,w)=>{this.iframeManager.attachIframe(S,w),this.shadowDomManager.observeAttachShadow(S)},onStylesheetLoad:(S,w)=>{this.stylesheetManager.attachLinkElement(S,w)},cssCaptured:h});y&&(e.push({parentId:m,nextId:g,node:y}),n.add(y.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const c of this.movedSet)a9(this.removesSubTreeCache,c,this.mirror)&&!this.movedSet.has(at.parentNode(c))||s(c);for(const c of this.addedSet)!s9(this.droppedSet,c)&&!a9(this.removesSubTreeCache,c,this.mirror)||s9(this.movedSet,c)?s(c):this.droppedSet.add(c);let i=null;for(;r.length;){let c=null;if(i){const f=this.mirror.getId(at.parentNode(i.value)),h=a(i.value);f!==-1&&h!==-1&&(c=i)}if(!c){let f=r.tail;for(;f;){const h=f;if(f=f.previous,h){const m=this.mirror.getId(at.parentNode(h.value));if(a(h.value)===-1)continue;if(m!==-1){c=h;break}else{const y=h.value,S=at.parentNode(y);if(S&&S.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const w=at.host(S);if(this.mirror.getId(w)!==-1){c=h;break}}}}}}if(!c){for(;r.head;)r.removeNode(r.head.value);break}i=c.previous,r.removeNode(c.value),s(c.value)}const u={texts:this.texts.map(c=>{const f=c.node,h=at.parentNode(f);return h&&h.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(h),{id:this.mirror.getId(f),value:c.value}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),attributes:this.attributes.map(c=>{const{attributes:f}=c;if(typeof f.style=="string"){const h=JSON.stringify(c.styleDiff),m=JSON.stringify(c._unchangedStyles);h.length<f.style.length&&(h+m).split("var(").length===f.style.split("var(").length&&(f.style=c.styleDiff)}return{id:this.mirror.getId(c.node),attributes:f}}).filter(c=>!n.has(c.id)).filter(c=>this.mirror.has(c.id)),removes:this.removes,adds:e};!u.texts.length&&!u.attributes.length&&!u.removes.length&&!u.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(u))}),we(this,"genTextAreaValueMutation",e=>{let n=this.attributeMap.get(e);n||(n={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(n),this.attributeMap.set(e,n));const r=Array.from(at.childNodes(e),a=>at.textContent(a)||"").join("");n.attributes.value=y1({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:b1(e),value:r,maskInputFn:this.maskInputFn})}),we(this,"processMutation",e=>{if(!nE(e.target,this.mirror,this.slimDOMOptions))switch(e.type){case"characterData":{const n=at.textContent(e.target);!Er(e.target,this.blockClass,this.blockSelector,!1)&&n!==e.oldValue&&this.texts.push({value:yB(e.target,this.maskTextClass,this.maskTextSelector,!0)&&n?this.maskTextFn?this.maskTextFn(n,H$(e.target)):n.replace(/[\S]/g,"*"):n,node:e.target});break}case"attributes":{const n=e.target;let r=e.attributeName,a=e.target.getAttribute(r);if(r==="value"){const i=b1(n);a=y1({element:n,maskInputOptions:this.maskInputOptions,tagName:n.tagName,type:i,value:a,maskInputFn:this.maskInputFn})}if(Er(e.target,this.blockClass,this.blockSelector,!1)||a===e.oldValue)return;let s=this.attributeMap.get(e.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(a))if(!n.contentDocument)r="rr_src";else return;if(s||(s={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(s),this.attributeMap.set(e.target,s)),r==="type"&&n.tagName==="INPUT"&&(e.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!vB(n.tagName,r))if(s.attributes[r]=gB(this.doc,ru(n.tagName),ru(r),a),r==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const i=this.unattachedDoc.createElement("span");e.oldValue&&i.setAttribute("style",e.oldValue);for(const u of Array.from(n.style)){const c=n.style.getPropertyValue(u),f=n.style.getPropertyPriority(u);c!==i.style.getPropertyValue(u)||f!==i.style.getPropertyPriority(u)?f===""?s.styleDiff[u]=c:s.styleDiff[u]=[c,f]:s._unchangedStyles[u]=[c,f]}for(const u of Array.from(i.style))n.style.getPropertyValue(u)===""&&(s.styleDiff[u]=!1)}else r==="open"&&n.tagName==="DIALOG"&&(n.matches("dialog:modal")?s.attributes.rr_open_mode="modal":s.attributes.rr_open_mode="non-modal");break}case"childList":{if(Er(e.target,this.blockClass,this.blockSelector,!0))return;if(e.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(e.target);return}e.addedNodes.forEach(n=>this.genAdds(n,e.target)),e.removedNodes.forEach(n=>{const r=this.mirror.getId(n),a=_h(e.target)?this.mirror.getId(at.host(e.target)):this.mirror.getId(e.target);Er(e.target,this.blockClass,this.blockSelector,!1)||nE(n,this.mirror,this.slimDOMOptions)||!BCe(n,this.mirror)||(this.addedSet.has(n)?(l_(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(e.target)&&r===-1||q$(e.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[r9(r,a)]?l_(this.movedSet,n):(this.removes.push({parentId:a,id:r,isShadow:_h(e.target)&&kh(e.target)?!0:void 0}),KCe(n,this.removesSubTreeCache))),this.mapRemoves.push(n))});break}}}),we(this,"genAdds",(e,n)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(nE(e,this.mirror,this.slimDOMOptions))return;this.movedSet.add(e);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[r9(this.mirror.getId(e),r)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);Er(e,this.blockClass,this.blockSelector,!1)||(at.childNodes(e).forEach(r=>this.genAdds(r)),i_(e)&&at.childNodes(at.shadowRoot(e)).forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,e)}))}})}init(e){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(n=>{this[n]=e[n]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function l_(t,e){t.delete(e),at.childNodes(e).forEach(n=>l_(t,n))}function KCe(t,e){const n=[t];for(;n.length;){const r=n.pop();e.has(r)||(e.add(r),at.childNodes(r).forEach(a=>n.push(a)))}}function a9(t,e,n){return t.size===0?!1:YCe(t,e)}function YCe(t,e,n){const r=at.parentNode(e);return r?t.has(r):!1}function s9(t,e){return t.size===0?!1:Z$(t,e)}function Z$(t,e){const n=at.parentNode(e);return n?t.has(n)?!0:Z$(t,n):!1}let Ah;function ZCe(t){Ah=t}function XCe(){Ah=void 0}const yt=t=>Ah?(...n)=>{try{return t(...n)}catch(r){if(Ah&&Ah(r)===!0)return;throw r}}:t,Ll=[];function Ip(t){try{if("composedPath"in t){const e=t.composedPath();if(e.length)return e[0]}else if("path"in t&&t.path.length)return t.path[0]}catch{}return t&&t.target}function X$(t,e){const n=new GCe;Ll.push(n),n.init(t);const r=new(j$())(yt(n.processMutations.bind(n)));return r.observe(e,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),r}function QCe({mousemoveCb:t,sampling:e,doc:n,mirror:r}){if(e.mousemove===!1)return()=>{};const a=typeof e.mousemove=="number"?e.mousemove:50,s=typeof e.mousemoveCallback=="number"?e.mousemoveCallback:500;let i=[],u;const c=op(yt(m=>{const g=Date.now()-u;t(i.map(y=>(y.timeOffset-=g,y)),m),i=[],u=null}),s),f=yt(op(yt(m=>{const g=Ip(m),{clientX:y,clientY:S}=o_(m)?m.changedTouches[0]:m;u||(u=I1()),i.push({x:y,y:S,id:r.getId(g),timeOffset:I1()-u}),c(typeof DragEvent<"u"&&m instanceof DragEvent?ht.Drag:m instanceof MouseEvent?ht.MouseMove:ht.TouchMove)}),a,{trailing:!1})),h=[Cr("mousemove",f,n),Cr("touchmove",f,n),Cr("drag",f,n)];return yt(()=>{h.forEach(m=>m())})}function JCe({mouseInteractionCb:t,doc:e,mirror:n,blockClass:r,blockSelector:a,sampling:s}){if(s.mouseInteraction===!1)return()=>{};const i=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,u=[];let c=null;const f=h=>m=>{const g=Ip(m);if(Er(g,r,a,!0))return;let y=null,S=h;if("pointerType"in m){switch(m.pointerType){case"mouse":y=co.Mouse;break;case"touch":y=co.Touch;break;case"pen":y=co.Pen;break}y===co.Touch?zr[h]===zr.MouseDown?S="TouchStart":zr[h]===zr.MouseUp&&(S="TouchEnd"):co.Pen}else o_(m)&&(y=co.Touch);y!==null?(c=y,(S.startsWith("Touch")&&y===co.Touch||S.startsWith("Mouse")&&y===co.Mouse)&&(y=null)):zr[h]===zr.Click&&(y=c,c=null);const w=o_(m)?m.changedTouches[0]:m;if(!w)return;const x=n.getId(g),{clientX:E,clientY:k}=w;yt(t)({type:zr[S],id:x,x:E,y:k,...y!==null&&{pointerType:y}})};return Object.keys(zr).filter(h=>Number.isNaN(Number(h))&&!h.endsWith("_Departed")&&i[h]!==!1).forEach(h=>{let m=ru(h);const g=f(h);if(window.PointerEvent)switch(zr[h]){case zr.MouseDown:case zr.MouseUp:m=m.replace("mouse","pointer");break;case zr.TouchStart:case zr.TouchEnd:return}u.push(Cr(m,g,e))}),yt(()=>{u.forEach(h=>h())})}function Q$({scrollCb:t,doc:e,mirror:n,blockClass:r,blockSelector:a,sampling:s}){const i=yt(op(yt(u=>{const c=Ip(u);if(!c||Er(c,r,a,!0))return;const f=n.getId(c);if(c===e&&e.defaultView){const h=F$(e.defaultView);t({id:f,x:h.left,y:h.top})}else t({id:f,x:c.scrollLeft,y:c.scrollTop})}),s.scroll||100));return Cr("scroll",i,e)}function eEe({viewportResizeCb:t},{win:e}){let n=-1,r=-1;const a=yt(op(yt(()=>{const s=B$(),i=$$();(n!==s||r!==i)&&(t({width:Number(i),height:Number(s)}),n=s,r=i)}),200));return Cr("resize",a,e)}const tEe=["INPUT","TEXTAREA","SELECT"],o9=new WeakMap;function nEe({inputCb:t,doc:e,mirror:n,blockClass:r,blockSelector:a,ignoreClass:s,ignoreSelector:i,maskInputOptions:u,maskInputFn:c,sampling:f,userTriggeredOnInput:h}){function m(k){let A=Ip(k);const R=k.isTrusted,N=A&&A.tagName;if(A&&N==="OPTION"&&(A=at.parentElement(A)),!A||!N||tEe.indexOf(N)<0||Er(A,r,a,!0)||A.classList.contains(s)||i&&A.matches(i))return;let O=A.value,I=!1;const P=b1(A)||"";P==="radio"||P==="checkbox"?I=A.checked:(u[N.toLowerCase()]||u[P])&&(O=y1({element:A,maskInputOptions:u,tagName:N,type:P,value:O,maskInputFn:c})),g(A,h?{text:O,isChecked:I,userTriggered:R}:{text:O,isChecked:I});const U=A.name;P==="radio"&&U&&I&&e.querySelectorAll(`input[type="radio"][name="${U}"]`).forEach(q=>{if(q!==A){const z=q.value;g(q,h?{text:z,isChecked:!I,userTriggered:!1}:{text:z,isChecked:!I})}})}function g(k,A){const R=o9.get(k);if(!R||R.text!==A.text||R.isChecked!==A.isChecked){o9.set(k,A);const N=n.getId(k);yt(t)({...A,id:N})}}const S=(f.input==="last"?["change"]:["input","change"]).map(k=>Cr(k,yt(m),e)),w=e.defaultView;if(!w)return()=>{S.forEach(k=>k())};const x=w.Object.getOwnPropertyDescriptor(w.HTMLInputElement.prototype,"value"),E=[[w.HTMLInputElement.prototype,"value"],[w.HTMLInputElement.prototype,"checked"],[w.HTMLSelectElement.prototype,"value"],[w.HTMLTextAreaElement.prototype,"value"],[w.HTMLSelectElement.prototype,"selectedIndex"],[w.HTMLOptionElement.prototype,"selected"]];return x&&x.set&&S.push(...E.map(k=>iy(k[0],k[1],{set(){yt(m)({target:this,isTrusted:!1})}},!1,w))),yt(()=>{S.forEach(k=>k())})}function O1(t){const e=[];function n(r,a){if(Zg("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Zg("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Zg("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Zg("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const i=Array.from(r.parentRule.cssRules).indexOf(r);a.unshift(i)}else if(r.parentStyleSheet){const i=Array.from(r.parentStyleSheet.cssRules).indexOf(r);a.unshift(i)}return a}return n(t,e)}function ki(t,e,n){let r,a;return t?(t.ownerNode?r=e.getId(t.ownerNode):a=n.getId(t),{styleId:a,id:r}):{}}function rEe({styleSheetRuleCb:t,mirror:e,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const a=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(a,{apply:yt((h,m,g)=>{const[y,S]=g,{id:w,styleId:x}=ki(m,e,n.styleMirror);return(w&&w!==-1||x&&x!==-1)&&t({id:w,styleId:x,adds:[{rule:y,index:S}]}),h.apply(m,g)})}),r.CSSStyleSheet.prototype.addRule=function(h,m,g=this.cssRules.length){const y=`${h} { ${m} }`;return r.CSSStyleSheet.prototype.insertRule.apply(this,[y,g])};const s=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(s,{apply:yt((h,m,g)=>{const[y]=g,{id:S,styleId:w}=ki(m,e,n.styleMirror);return(S&&S!==-1||w&&w!==-1)&&t({id:S,styleId:w,removes:[{index:y}]}),h.apply(m,g)})}),r.CSSStyleSheet.prototype.removeRule=function(h){return r.CSSStyleSheet.prototype.deleteRule.apply(this,[h])};let i;r.CSSStyleSheet.prototype.replace&&(i=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:yt((h,m,g)=>{const[y]=g,{id:S,styleId:w}=ki(m,e,n.styleMirror);return(S&&S!==-1||w&&w!==-1)&&t({id:S,styleId:w,replace:y}),h.apply(m,g)})}));let u;r.CSSStyleSheet.prototype.replaceSync&&(u=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(u,{apply:yt((h,m,g)=>{const[y]=g,{id:S,styleId:w}=ki(m,e,n.styleMirror);return(S&&S!==-1||w&&w!==-1)&&t({id:S,styleId:w,replaceSync:y}),h.apply(m,g)})}));const c={};Xg("CSSGroupingRule")?c.CSSGroupingRule=r.CSSGroupingRule:(Xg("CSSMediaRule")&&(c.CSSMediaRule=r.CSSMediaRule),Xg("CSSConditionRule")&&(c.CSSConditionRule=r.CSSConditionRule),Xg("CSSSupportsRule")&&(c.CSSSupportsRule=r.CSSSupportsRule));const f={};return Object.entries(c).forEach(([h,m])=>{f[h]={insertRule:m.prototype.insertRule,deleteRule:m.prototype.deleteRule},m.prototype.insertRule=new Proxy(f[h].insertRule,{apply:yt((g,y,S)=>{const[w,x]=S,{id:E,styleId:k}=ki(y.parentStyleSheet,e,n.styleMirror);return(E&&E!==-1||k&&k!==-1)&&t({id:E,styleId:k,adds:[{rule:w,index:[...O1(y),x||0]}]}),g.apply(y,S)})}),m.prototype.deleteRule=new Proxy(f[h].deleteRule,{apply:yt((g,y,S)=>{const[w]=S,{id:x,styleId:E}=ki(y.parentStyleSheet,e,n.styleMirror);return(x&&x!==-1||E&&E!==-1)&&t({id:x,styleId:E,removes:[{index:[...O1(y),w]}]}),g.apply(y,S)})})}),yt(()=>{r.CSSStyleSheet.prototype.insertRule=a,r.CSSStyleSheet.prototype.deleteRule=s,i&&(r.CSSStyleSheet.prototype.replace=i),u&&(r.CSSStyleSheet.prototype.replaceSync=u),Object.entries(c).forEach(([h,m])=>{m.prototype.insertRule=f[h].insertRule,m.prototype.deleteRule=f[h].deleteRule})})}function J$({mirror:t,stylesheetManager:e},n){var r,a,s;let i=null;n.nodeName==="#document"?i=t.getId(n):i=t.getId(at.host(n));const u=n.nodeName==="#document"?(r=n.defaultView)==null?void 0:r.Document:(s=(a=n.ownerDocument)==null?void 0:a.defaultView)==null?void 0:s.ShadowRoot,c=u?.prototype?Object.getOwnPropertyDescriptor(u?.prototype,"adoptedStyleSheets"):void 0;return i===null||i===-1||!u||!c?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get(){var f;return(f=c.get)==null?void 0:f.call(this)},set(f){var h;const m=(h=c.set)==null?void 0:h.call(this,f);if(i!==null&&i!==-1)try{e.adoptStyleSheets(f,i)}catch{}return m}}),yt(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:c.configurable,enumerable:c.enumerable,get:c.get,set:c.set})}))}function aEe({styleDeclarationCb:t,mirror:e,ignoreCSSAttributes:n,stylesheetManager:r},{win:a}){const s=a.CSSStyleDeclaration.prototype.setProperty;a.CSSStyleDeclaration.prototype.setProperty=new Proxy(s,{apply:yt((u,c,f)=>{var h;const[m,g,y]=f;if(n.has(m))return s.apply(c,[m,g,y]);const{id:S,styleId:w}=ki((h=c.parentRule)==null?void 0:h.parentStyleSheet,e,r.styleMirror);return(S&&S!==-1||w&&w!==-1)&&t({id:S,styleId:w,set:{property:m,value:g,priority:y},index:O1(c.parentRule)}),u.apply(c,f)})});const i=a.CSSStyleDeclaration.prototype.removeProperty;return a.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:yt((u,c,f)=>{var h;const[m]=f;if(n.has(m))return i.apply(c,[m]);const{id:g,styleId:y}=ki((h=c.parentRule)==null?void 0:h.parentStyleSheet,e,r.styleMirror);return(g&&g!==-1||y&&y!==-1)&&t({id:g,styleId:y,remove:{property:m},index:O1(c.parentRule)}),u.apply(c,f)})}),yt(()=>{a.CSSStyleDeclaration.prototype.setProperty=s,a.CSSStyleDeclaration.prototype.removeProperty=i})}function sEe({mediaInteractionCb:t,blockClass:e,blockSelector:n,mirror:r,sampling:a,doc:s}){const i=yt(c=>op(yt(f=>{const h=Ip(f);if(!h||Er(h,e,n,!0))return;const{currentTime:m,volume:g,muted:y,playbackRate:S,loop:w}=h;t({type:c,id:r.getId(h),currentTime:m,volume:g,muted:y,playbackRate:S,loop:w})}),a.media||500)),u=[Cr("play",i(Tc.Play),s),Cr("pause",i(Tc.Pause),s),Cr("seeked",i(Tc.Seeked),s),Cr("volumechange",i(Tc.VolumeChange),s),Cr("ratechange",i(Tc.RateChange),s)];return yt(()=>{u.forEach(c=>c())})}function oEe({fontCb:t,doc:e}){const n=e.defaultView;if(!n)return()=>{};const r=[],a=new WeakMap,s=n.FontFace;n.FontFace=function(c,f,h){const m=new s(c,f,h);return a.set(m,{family:c,buffer:typeof f!="string",descriptors:h,fontSource:typeof f=="string"?f:JSON.stringify(Array.from(new Uint8Array(f)))}),m};const i=wu(e.fonts,"add",function(u){return function(c){return setTimeout(yt(()=>{const f=a.get(c);f&&(t(f),a.delete(c))}),0),u.apply(this,[c])}});return r.push(()=>{n.FontFace=s}),r.push(i),yt(()=>{r.forEach(u=>u())})}function iEe(t){const{doc:e,mirror:n,blockClass:r,blockSelector:a,selectionCb:s}=t;let i=!0;const u=yt(()=>{const c=e.getSelection();if(!c||i&&c?.isCollapsed)return;i=c.isCollapsed||!1;const f=[],h=c.rangeCount||0;for(let m=0;m<h;m++){const g=c.getRangeAt(m),{startContainer:y,startOffset:S,endContainer:w,endOffset:x}=g;Er(y,r,a,!0)||Er(w,r,a,!0)||f.push({start:n.getId(y),startOffset:S,end:n.getId(w),endOffset:x})}s({ranges:f})});return u(),Cr("selectionchange",u)}function lEe({doc:t,customElementCb:e}){const n=t.defaultView;return!n||!n.customElements?()=>{}:wu(n.customElements,"define",function(a){return function(s,i,u){try{e({define:{name:s}})}catch{console.warn(`Custom element callback failed for ${s}`)}return a.apply(this,[s,i,u])}})}function uEe(t,e){const{mutationCb:n,mousemoveCb:r,mouseInteractionCb:a,scrollCb:s,viewportResizeCb:i,inputCb:u,mediaInteractionCb:c,styleSheetRuleCb:f,styleDeclarationCb:h,canvasMutationCb:m,fontCb:g,selectionCb:y,customElementCb:S}=t;t.mutationCb=(...w)=>{e.mutation&&e.mutation(...w),n(...w)},t.mousemoveCb=(...w)=>{e.mousemove&&e.mousemove(...w),r(...w)},t.mouseInteractionCb=(...w)=>{e.mouseInteraction&&e.mouseInteraction(...w),a(...w)},t.scrollCb=(...w)=>{e.scroll&&e.scroll(...w),s(...w)},t.viewportResizeCb=(...w)=>{e.viewportResize&&e.viewportResize(...w),i(...w)},t.inputCb=(...w)=>{e.input&&e.input(...w),u(...w)},t.mediaInteractionCb=(...w)=>{e.mediaInteaction&&e.mediaInteaction(...w),c(...w)},t.styleSheetRuleCb=(...w)=>{e.styleSheetRule&&e.styleSheetRule(...w),f(...w)},t.styleDeclarationCb=(...w)=>{e.styleDeclaration&&e.styleDeclaration(...w),h(...w)},t.canvasMutationCb=(...w)=>{e.canvasMutation&&e.canvasMutation(...w),m(...w)},t.fontCb=(...w)=>{e.font&&e.font(...w),g(...w)},t.selectionCb=(...w)=>{e.selection&&e.selection(...w),y(...w)},t.customElementCb=(...w)=>{e.customElement&&e.customElement(...w),S(...w)}}function cEe(t,e={}){const n=t.doc.defaultView;if(!n)return()=>{};uEe(t,e);let r;t.recordDOM&&(r=X$(t,t.doc));const a=QCe(t),s=JCe(t),i=Q$(t),u=eEe(t,{win:n}),c=nEe(t),f=sEe(t);let h=()=>{},m=()=>{},g=()=>{},y=()=>{};t.recordDOM&&(h=rEe(t,{win:n}),m=J$(t,t.doc),g=aEe(t,{win:n}),t.collectFonts&&(y=oEe(t)));const S=iEe(t),w=lEe(t),x=[];for(const E of t.plugins)x.push(E.observer(E.callback,n,E.options));return yt(()=>{Ll.forEach(E=>E.reset()),r?.disconnect(),a(),s(),i(),u(),c(),f(),h(),m(),g(),y(),S(),w(),x.forEach(E=>E())})}function Zg(t){return typeof window[t]<"u"}function Xg(t){return!!(typeof window[t]<"u"&&window[t].prototype&&"insertRule"in window[t].prototype&&"deleteRule"in window[t].prototype)}class i9{constructor(e){we(this,"iframeIdToRemoteIdMap",new WeakMap),we(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}getId(e,n,r,a){const s=r||this.getIdToRemoteIdMap(e),i=a||this.getRemoteIdToIdMap(e);let u=s.get(n);return u||(u=this.generateIdFn(),s.set(n,u),i.set(u,n)),u}getIds(e,n){const r=this.getIdToRemoteIdMap(e),a=this.getRemoteIdToIdMap(e);return n.map(s=>this.getId(e,s,r,a))}getRemoteId(e,n,r){const a=r||this.getRemoteIdToIdMap(e);if(typeof n!="number")return n;const s=a.get(n);return s||-1}getRemoteIds(e,n){const r=this.getRemoteIdToIdMap(e);return n.map(a=>this.getRemoteId(e,a,r))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let n=this.iframeIdToRemoteIdMap.get(e);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(e,n)),n}getRemoteIdToIdMap(e){let n=this.iframeRemoteIdToIdMap.get(e);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(e,n)),n}}class dEe{constructor(e){we(this,"iframes",new WeakMap),we(this,"crossOriginIframeMap",new WeakMap),we(this,"crossOriginIframeMirror",new i9(mB)),we(this,"crossOriginIframeStyleMirror"),we(this,"crossOriginIframeRootIdMap",new WeakMap),we(this,"mirror"),we(this,"mutationCb"),we(this,"wrappedEmit"),we(this,"loadListener"),we(this,"stylesheetManager"),we(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new i9(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,n){var r,a;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((r=e.contentWindow)==null||r.addEventListener("message",this.handleMessage.bind(this))),(a=this.loadListener)==null||a.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){const n=e;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!e.source)return;const a=this.crossOriginIframeMap.get(e.source);if(!a)return;const s=this.transformCrossOriginEvent(a,n.data.event);s&&this.wrappedEmit(s,n.data.isCheckout)}transformCrossOriginEvent(e,n){var r;switch(n.type){case Ct.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(n.data.node,e);const a=n.data.node.id;return this.crossOriginIframeRootIdMap.set(e,a),this.patchRootIdOnNode(n.data.node,a),{timestamp:n.timestamp,type:Ct.IncrementalSnapshot,data:{source:ht.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Ct.Meta:case Ct.Load:case Ct.DomContentLoaded:return!1;case Ct.Plugin:return n;case Ct.Custom:return this.replaceIds(n.data.payload,e,["id","parentId","previousId","nextId"]),n;case Ct.IncrementalSnapshot:switch(n.data.source){case ht.Mutation:return n.data.adds.forEach(a=>{this.replaceIds(a,e,["parentId","nextId","previousId"]),this.replaceIdOnNode(a.node,e);const s=this.crossOriginIframeRootIdMap.get(e);s&&this.patchRootIdOnNode(a.node,s)}),n.data.removes.forEach(a=>{this.replaceIds(a,e,["parentId","id"])}),n.data.attributes.forEach(a=>{this.replaceIds(a,e,["id"])}),n.data.texts.forEach(a=>{this.replaceIds(a,e,["id"])}),n;case ht.Drag:case ht.TouchMove:case ht.MouseMove:return n.data.positions.forEach(a=>{this.replaceIds(a,e,["id"])}),n;case ht.ViewportResize:return!1;case ht.MediaInteraction:case ht.MouseInteraction:case ht.Scroll:case ht.CanvasMutation:case ht.Input:return this.replaceIds(n.data,e,["id"]),n;case ht.StyleSheetRule:case ht.StyleDeclaration:return this.replaceIds(n.data,e,["id"]),this.replaceStyleIds(n.data,e,["styleId"]),n;case ht.Font:return n;case ht.Selection:return n.data.ranges.forEach(a=>{this.replaceIds(a,e,["start","end"])}),n;case ht.AdoptedStyleSheet:return this.replaceIds(n.data,e,["id"]),this.replaceStyleIds(n.data,e,["styleIds"]),(r=n.data.styles)==null||r.forEach(a=>{this.replaceStyleIds(a,e,["styleId"])}),n}}return!1}replace(e,n,r,a){for(const s of a)!Array.isArray(n[s])&&typeof n[s]!="number"||(Array.isArray(n[s])?n[s]=e.getIds(r,n[s]):n[s]=e.getId(r,n[s]));return n}replaceIds(e,n,r){return this.replace(this.crossOriginIframeMirror,e,n,r)}replaceStyleIds(e,n,r){return this.replace(this.crossOriginIframeStyleMirror,e,n,r)}replaceIdOnNode(e,n){this.replaceIds(e,n,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(e,n){e.type!==Y$.Document&&!e.rootId&&(e.rootId=n),"childNodes"in e&&e.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class fEe{constructor(e){we(this,"shadowDoms",new WeakSet),we(this,"mutationCb"),we(this,"scrollCb"),we(this,"bypassOptions"),we(this,"mirror"),we(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,n){if(!kh(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e);const r=X$({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(Q$({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),setTimeout(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(at.host(e))),this.restoreHandlers.push(J$({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){!e.contentWindow||!e.contentDocument||this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,n){const r=this;this.restoreHandlers.push(wu(e.prototype,"attachShadow",function(a){return function(s){const i=a.call(this,s),u=at.shadowRoot(this);return u&&K$(this)&&r.addShadowRoot(u,n),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}var zc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",hEe=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Qg=0;Qg<zc.length;Qg++)hEe[zc.charCodeAt(Qg)]=Qg;var pEe=function(t){var e=new Uint8Array(t),n,r=e.length,a="";for(n=0;n<r;n+=3)a+=zc[e[n]>>2],a+=zc[(e[n]&3)<<4|e[n+1]>>4],a+=zc[(e[n+1]&15)<<2|e[n+2]>>6],a+=zc[e[n+2]&63];return r%3===2?a=a.substring(0,a.length-1)+"=":r%3===1&&(a=a.substring(0,a.length-2)+"=="),a};const l9=new Map;function mEe(t,e){let n=l9.get(t);return n||(n=new Map,l9.set(t,n)),n.has(e)||n.set(e,[]),n.get(e)}const eH=(t,e,n)=>{if(!t||!(nH(t,e)||typeof t=="object"))return;const r=t.constructor.name,a=mEe(n,r);let s=a.indexOf(t);return s===-1&&(s=a.length,a.push(t)),s};function O0(t,e,n){if(t instanceof Array)return t.map(r=>O0(r,e,n));if(t===null)return t;if(t instanceof Float32Array||t instanceof Float64Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Int16Array||t instanceof Int8Array||t instanceof Uint8ClampedArray)return{rr_type:t.constructor.name,args:[Object.values(t)]};if(t instanceof ArrayBuffer){const r=t.constructor.name,a=pEe(t);return{rr_type:r,base64:a}}else{if(t instanceof DataView)return{rr_type:t.constructor.name,args:[O0(t.buffer,e,n),t.byteOffset,t.byteLength]};if(t instanceof HTMLImageElement){const r=t.constructor.name,{src:a}=t;return{rr_type:r,src:a}}else if(t instanceof HTMLCanvasElement){const r="HTMLImageElement",a=t.toDataURL();return{rr_type:r,src:a}}else{if(t instanceof ImageData)return{rr_type:t.constructor.name,args:[O0(t.data,e,n),t.width,t.height]};if(nH(t,e)||typeof t=="object"){const r=t.constructor.name,a=eH(t,e,n);return{rr_type:r,index:a}}}}return t}const tH=(t,e,n)=>t.map(r=>O0(r,e,n)),nH=(t,e)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(a=>typeof e[a]=="function").find(a=>t instanceof e[a]);function gEe(t,e,n,r){const a=[],s=Object.getOwnPropertyNames(e.CanvasRenderingContext2D.prototype);for(const i of s)try{if(typeof e.CanvasRenderingContext2D.prototype[i]!="function")continue;const u=wu(e.CanvasRenderingContext2D.prototype,i,function(c){return function(...f){return Er(this.canvas,n,r,!0)||setTimeout(()=>{const h=tH(f,e,this);t(this.canvas,{type:id["2D"],property:i,args:h})},0),c.apply(this,f)}});a.push(u)}catch{const u=iy(e.CanvasRenderingContext2D.prototype,i,{set(c){t(this.canvas,{type:id["2D"],property:i,args:[c],setter:!0})}});a.push(u)}return()=>{a.forEach(i=>i())}}function vEe(t){return t==="experimental-webgl"?"webgl":t}function u9(t,e,n,r){const a=[];try{const s=wu(t.HTMLCanvasElement.prototype,"getContext",function(i){return function(u,...c){if(!Er(this,e,n,!0)){const f=vEe(u);if("__context"in this||(this.__context=f),r&&["webgl","webgl2"].includes(f))if(c[0]&&typeof c[0]=="object"){const h=c[0];h.preserveDrawingBuffer||(h.preserveDrawingBuffer=!0)}else c.splice(0,1,{preserveDrawingBuffer:!0})}return i.apply(this,[u,...c])}});a.push(s)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{a.forEach(s=>s())}}function c9(t,e,n,r,a,s){const i=[],u=Object.getOwnPropertyNames(t);for(const c of u)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(c))try{if(typeof t[c]!="function")continue;const f=wu(t,c,function(h){return function(...m){const g=h.apply(this,m);if(eH(g,s,this),"tagName"in this.canvas&&!Er(this.canvas,r,a,!0)){const y=tH(m,s,this),S={type:e,property:c,args:y};n(this.canvas,S)}return g}});i.push(f)}catch{const f=iy(t,c,{set(h){n(this.canvas,{type:e,property:c,args:[h],setter:!0})}});i.push(f)}return i}function yEe(t,e,n,r){const a=[];return a.push(...c9(e.WebGLRenderingContext.prototype,id.WebGL,t,n,r,e)),typeof e.WebGL2RenderingContext<"u"&&a.push(...c9(e.WebGL2RenderingContext.prototype,id.WebGL2,t,n,r,e)),()=>{a.forEach(s=>s())}}const rH="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",bEe=t=>Uint8Array.from(atob(t),e=>e.charCodeAt(0)),d9=typeof window<"u"&&window.Blob&&new Blob([bEe(rH)],{type:"text/javascript;charset=utf-8"});function SEe(t){let e;try{if(e=d9&&(window.URL||window.webkitURL).createObjectURL(d9),!e)throw"";const n=new Worker(e,{name:t?.name});return n.addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(e)}),n}catch{return new Worker("data:text/javascript;base64,"+rH,{name:t?.name})}finally{e&&(window.URL||window.webkitURL).revokeObjectURL(e)}}class wEe{constructor(e){we(this,"pendingCanvasMutations",new Map),we(this,"rafStamps",{latestId:0,invokeId:null}),we(this,"mirror"),we(this,"mutationCb"),we(this,"resetObservers"),we(this,"frozen",!1),we(this,"locked",!1),we(this,"processMutation",(c,f)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(c)||this.pendingCanvasMutations.set(c,[]),this.pendingCanvasMutations.get(c).push(f)});const{sampling:n="all",win:r,blockClass:a,blockSelector:s,recordCanvas:i,dataURLOptions:u}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,i&&n==="all"&&this.initCanvasMutationObserver(r,a,s),i&&typeof n=="number"&&this.initCanvasFPSObserver(n,r,a,s,{dataURLOptions:u})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(e,n,r,a,s){const i=u9(n,r,a,!0),u=new Map,c=new SEe;c.onmessage=S=>{const{id:w}=S.data;if(u.set(w,!1),!("base64"in S.data))return;const{base64:x,type:E,width:k,height:A}=S.data;this.mutationCb({id:w,type:id["2D"],commands:[{property:"clearRect",args:[0,0,k,A]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:x}],type:E}]},0,0]}]})};const f=1e3/e;let h=0,m;const g=()=>{const S=[];return n.document.querySelectorAll("canvas").forEach(w=>{Er(w,r,a,!0)||S.push(w)}),S},y=S=>{if(h&&S-h<f){m=requestAnimationFrame(y);return}h=S,g().forEach(async w=>{var x;const E=this.mirror.getId(w);if(u.get(E)||w.width===0||w.height===0)return;if(u.set(E,!0),["webgl","webgl2"].includes(w.__context)){const A=w.getContext(w.__context);((x=A?.getContextAttributes())==null?void 0:x.preserveDrawingBuffer)===!1&&A.clear(A.COLOR_BUFFER_BIT)}const k=await createImageBitmap(w);c.postMessage({id:E,bitmap:k,width:w.width,height:w.height,dataURLOptions:s.dataURLOptions},[k])}),m=requestAnimationFrame(y)};m=requestAnimationFrame(y),this.resetObservers=()=>{i(),cancelAnimationFrame(m)}}initCanvasMutationObserver(e,n,r){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const a=u9(e,n,r,!1),s=gEe(this.processMutation.bind(this),e,n,r),i=yEe(this.processMutation.bind(this),e,n,r);this.resetObservers=()=>{a(),s(),i()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const e=n=>{this.rafStamps.latestId=n,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,n)=>{const r=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,r)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,n){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(e);if(!r||n===-1)return;const a=r.map(i=>{const{type:u,...c}=i;return c}),{type:s}=r[0];this.mutationCb({id:n,type:s,commands:a}),this.pendingCanvasMutations.delete(e)}}class xEe{constructor(e){we(this,"trackedLinkElements",new WeakSet),we(this,"mutationCb"),we(this,"adoptedStyleSheetCb"),we(this,"styleMirror",new HCe),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,n){if(e.length===0)return;const r={id:n,styleIds:[]},a=[];for(const s of e){let i;this.styleMirror.has(s)?i=this.styleMirror.getId(s):(i=this.styleMirror.add(s),a.push({styleId:i,rules:Array.from(s.rules||CSSRule,(u,c)=>({rule:fB(u,s.href),index:c}))})),r.styleIds.push(i)}a.length>0&&(r.styles=a),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class CEe{constructor(){we(this,"nodeMap",new WeakMap),we(this,"active",!1)}inOtherBuffer(e,n){const r=this.nodeMap.get(e);return r&&Array.from(r).some(a=>a!==n)}add(e,n){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(n))}destroy(){}}let vn,N0,rE,N1=!1;try{if(Array.from([1],t=>t*2)[0]!==2){const t=document.createElement("iframe");document.body.appendChild(t),Array.from=((pP=t.contentWindow)==null?void 0:pP.Array.from)||Array.from,document.body.removeChild(t)}}catch(t){console.debug("Unable to override Array.from",t)}const Ha=_Se();function Op(t={}){const{emit:e,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:a="rr-block",blockSelector:s=null,ignoreClass:i="rr-ignore",ignoreSelector:u=null,maskTextClass:c="rr-mask",maskTextSelector:f=null,inlineStylesheet:h=!0,maskAllInputs:m,maskInputOptions:g,slimDOMOptions:y,maskInputFn:S,maskTextFn:w,hooks:x,packFn:E,sampling:k={},dataURLOptions:A={},mousemoveWait:R,recordDOM:N=!0,recordCanvas:O=!1,recordCrossOriginIframes:I=!1,recordAfter:P=t.recordAfter==="DOMContentLoaded"?t.recordAfter:"load",userTriggeredOnInput:U=!1,collectFonts:q=!1,inlineImages:z=!1,plugins:j,keepIframeSrcFn:H=()=>!1,ignoreCSSAttributes:W=new Set([]),errorHandler:se}=t;ZCe(se);const $=I?window.parent===window:!0;let Q=!1;if(!$)try{window.parent.document&&(Q=!1)}catch{Q=!0}if($&&!e)throw new Error("emit function is required");if(!$&&!Q)return()=>{};R!==void 0&&k.mousemove===void 0&&(k.mousemove=R),Ha.reset();const re=m===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:g!==void 0?g:{password:!0},he=bB(y);$Ce();let xe,D=0;const Z=Ce=>{for(const mt of j||[])mt.eventProcessor&&(Ce=mt.eventProcessor(Ce));return E&&!Q&&(Ce=E(Ce)),Ce};vn=(Ce,mt)=>{var Ee;const Be=Ce;if(Be.timestamp=I1(),(Ee=Ll[0])!=null&&Ee.isFrozen()&&Be.type!==Ct.FullSnapshot&&!(Be.type===Ct.IncrementalSnapshot&&Be.data.source===ht.Mutation)&&Ll.forEach($e=>$e.unfreeze()),$)e?.(Z(Be),mt);else if(Q){const $e={type:"rrweb",event:Z(Be),origin:window.location.origin,isCheckout:mt};window.parent.postMessage($e,"*")}if(Be.type===Ct.FullSnapshot)xe=Be,D=0;else if(Be.type===Ct.IncrementalSnapshot){if(Be.data.source===ht.Mutation&&Be.data.isAttachIframe)return;D++;const $e=r&&D>=r,qe=n&&Be.timestamp-xe.timestamp>n;($e||qe)&&N0(!0)}};const K=Ce=>{vn({type:Ct.IncrementalSnapshot,data:{source:ht.Mutation,...Ce}})},X=Ce=>vn({type:Ct.IncrementalSnapshot,data:{source:ht.Scroll,...Ce}}),G=Ce=>vn({type:Ct.IncrementalSnapshot,data:{source:ht.CanvasMutation,...Ce}}),ue=Ce=>vn({type:Ct.IncrementalSnapshot,data:{source:ht.AdoptedStyleSheet,...Ce}}),oe=new xEe({mutationCb:K,adoptedStyleSheetCb:ue}),ce=new dEe({mirror:Ha,mutationCb:K,stylesheetManager:oe,recordCrossOriginIframes:I,wrappedEmit:vn});for(const Ce of j||[])Ce.getMirror&&Ce.getMirror({nodeMirror:Ha,crossOriginIframeMirror:ce.crossOriginIframeMirror,crossOriginIframeStyleMirror:ce.crossOriginIframeStyleMirror});const be=new CEe;rE=new wEe({recordCanvas:O,mutationCb:G,win:window,blockClass:a,blockSelector:s,mirror:Ha,sampling:k.canvas,dataURLOptions:A});const Ge=new fEe({mutationCb:K,scrollCb:X,bypassOptions:{blockClass:a,blockSelector:s,maskTextClass:c,maskTextSelector:f,inlineStylesheet:h,maskInputOptions:re,dataURLOptions:A,maskTextFn:w,maskInputFn:S,recordCanvas:O,inlineImages:z,sampling:k,slimDOMOptions:he,iframeManager:ce,stylesheetManager:oe,canvasManager:rE,keepIframeSrcFn:H,processedNodeManager:be},mirror:Ha});N0=(Ce=!1)=>{if(!N)return;vn({type:Ct.Meta,data:{href:window.location.href,width:$$(),height:B$()}},Ce),oe.reset(),Ge.init(),Ll.forEach(Ee=>Ee.lock());const mt=YSe(document,{mirror:Ha,blockClass:a,blockSelector:s,maskTextClass:c,maskTextSelector:f,inlineStylesheet:h,maskAllInputs:re,maskTextFn:w,maskInputFn:S,slimDOM:he,dataURLOptions:A,recordCanvas:O,inlineImages:z,onSerialize:Ee=>{W$(Ee,Ha)&&ce.addIframe(Ee),V$(Ee,Ha)&&oe.trackLinkElement(Ee),i_(Ee)&&Ge.addShadowRoot(at.shadowRoot(Ee),document)},onIframeLoad:(Ee,Be)=>{ce.attachIframe(Ee,Be),Ge.observeAttachShadow(Ee)},onStylesheetLoad:(Ee,Be)=>{oe.attachLinkElement(Ee,Be)},keepIframeSrcFn:H});if(!mt)return console.warn("Failed to snapshot the document");vn({type:Ct.FullSnapshot,data:{node:mt,initialOffset:F$(window)}},Ce),Ll.forEach(Ee=>Ee.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&oe.adoptStyleSheets(document.adoptedStyleSheets,Ha.getId(document))};try{const Ce=[],mt=Be=>{var $e;return yt(cEe)({mutationCb:K,mousemoveCb:(qe,gr)=>vn({type:Ct.IncrementalSnapshot,data:{source:gr,positions:qe}}),mouseInteractionCb:qe=>vn({type:Ct.IncrementalSnapshot,data:{source:ht.MouseInteraction,...qe}}),scrollCb:X,viewportResizeCb:qe=>vn({type:Ct.IncrementalSnapshot,data:{source:ht.ViewportResize,...qe}}),inputCb:qe=>vn({type:Ct.IncrementalSnapshot,data:{source:ht.Input,...qe}}),mediaInteractionCb:qe=>vn({type:Ct.IncrementalSnapshot,data:{source:ht.MediaInteraction,...qe}}),styleSheetRuleCb:qe=>vn({type:Ct.IncrementalSnapshot,data:{source:ht.StyleSheetRule,...qe}}),styleDeclarationCb:qe=>vn({type:Ct.IncrementalSnapshot,data:{source:ht.StyleDeclaration,...qe}}),canvasMutationCb:G,fontCb:qe=>vn({type:Ct.IncrementalSnapshot,data:{source:ht.Font,...qe}}),selectionCb:qe=>{vn({type:Ct.IncrementalSnapshot,data:{source:ht.Selection,...qe}})},customElementCb:qe=>{vn({type:Ct.IncrementalSnapshot,data:{source:ht.CustomElement,...qe}})},blockClass:a,ignoreClass:i,ignoreSelector:u,maskTextClass:c,maskTextSelector:f,maskInputOptions:re,inlineStylesheet:h,sampling:k,recordDOM:N,recordCanvas:O,inlineImages:z,userTriggeredOnInput:U,collectFonts:q,doc:Be,maskInputFn:S,maskTextFn:w,keepIframeSrcFn:H,blockSelector:s,slimDOMOptions:he,dataURLOptions:A,mirror:Ha,iframeManager:ce,stylesheetManager:oe,shadowDomManager:Ge,processedNodeManager:be,canvasManager:rE,ignoreCSSAttributes:W,plugins:(($e=j?.filter(qe=>qe.observer))==null?void 0:$e.map(qe=>({observer:qe.observer,options:qe.options,callback:gr=>vn({type:Ct.Plugin,data:{plugin:qe.name,payload:gr}})})))||[]},x)};ce.addLoadListener(Be=>{try{Ce.push(mt(Be.contentDocument))}catch($e){console.warn($e)}});const Ee=()=>{N0(),Ce.push(mt(document)),N1=!0};return["interactive","complete"].includes(document.readyState)?Ee():(Ce.push(Cr("DOMContentLoaded",()=>{vn({type:Ct.DomContentLoaded,data:{}}),P==="DOMContentLoaded"&&Ee()})),Ce.push(Cr("load",()=>{vn({type:Ct.Load,data:{}}),P==="load"&&Ee()},window))),()=>{Ce.forEach(Be=>{try{Be()}catch($e){String($e).toLowerCase().includes("cross-origin")||console.warn($e)}}),be.destroy(),N1=!1,XCe()}}catch(Ce){console.warn(Ce)}}Op.addCustomEvent=(t,e)=>{if(!N1)throw new Error("please add custom event after start recording");vn({type:Ct.Custom,data:{tag:t,payload:e}})};Op.freezePage=()=>{Ll.forEach(t=>t.freeze())};Op.takeFullSnapshot=t=>{if(!N1)throw new Error("please take full snapshot after start recording");N0(t)};Op.mirror=Ha;var f9;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(f9||(f9={}));const EEe="rrweb",_Ee={maskAllInputs:!0,maskTextSelector:"*",maskInputOptions:void 0},kEe={additionalSampleRate:1,batchSize:50,flushInterval:5e3,recordOptions:{slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,recordCrossOriginIframes:!1}},h9=kEe;class AEe extends Ma{constructor(e){super(EEe),this.recordingEvents=[],this.isRecording=!1,this.recordingStartTime=null,this.flushTimer=null,this.stopRecording=null,this.enabled=!1;const n=Object.assign(Object.assign(Object.assign({},h9.recordOptions),e?.recordOptions),_Ee);this.config=Object.assign(Object.assign(Object.assign({},h9),e),{recordOptions:n}),Se.info("RRWebPlugin initialized",{additionalSampleRate:this.config.additionalSampleRate,batchSize:this.config.batchSize,flushInterval:this.config.flushInterval})}enable(){var e;if(this.enabled){Se.info("RRWebPlugin already enabled");return}const n=(e=this.context)===null||e===void 0?void 0:e.getSession();if(!n||!n.record){Se.warn("RRWebPlugin skipping - session not being recorded",{hasSession:!!n,sessionRecord:n?.record});return}const r=Math.random();if(r>this.config.additionalSampleRate){Se.warn("RRWebPlugin skipping - session replay additionalSampleRate",{randomValue:r,samplingRate:this.config.additionalSampleRate});return}this.enabled=!0,Se.info("RRWebPlugin enabled - starting recording"),this.startRecording()}disable(){if(!this.enabled){Se.info("RRWebPlugin already disabled");return}Se.info("RRWebPlugin disabled - stopping recording"),this.enabled=!1,this.stopCurrentRecording()}record(e){const n=e?.action;n==="start"?(Se.info("RRWebPlugin manual start recording"),this.startRecording()):n==="stop"&&(Se.info("RRWebPlugin manual stop recording"),this.stopCurrentRecording())}onload(){}startRecording(){this.recordingStartTime=Date.now(),this.recordingEvents=[],this.isRecording=!0,Se.info("RRWebPlugin starting rrweb recording",{startTime:this.recordingStartTime});const e=Op(Object.assign(Object.assign({},this.config.recordOptions),{emit:this.handleRRWebEvent.bind(this)}));e?(this.stopRecording=e,Se.info("RRWebPlugin rrweb recording initialized successfully")):Se.warn("RRWebPlugin failed to initialize rrweb recording"),this.flushTimer=window.setInterval(()=>{this.flush()},this.config.flushInterval)}stopCurrentRecording(){if(!this.isRecording){Se.info("RRWebPlugin stopCurrentRecording called but not recording");return}Se.info("RRWebPlugin stopping current recording"),this.isRecording=!1,this.stopRecording&&(this.stopRecording(),this.stopRecording=null,Se.info("RRWebPlugin rrweb recording stopped")),this.flushTimer&&(clearInterval(this.flushTimer),this.flushTimer=null,Se.info("RRWebPlugin flush timer cleared")),this.flush()}handleRRWebEvent(e){this.isRecording&&(this.recordingEvents.push(e),this.recordingEvents.length>=this.config.batchSize&&(Se.info("RRWebPlugin flushing events due to batch size",{eventCount:this.recordingEvents.length,batchSize:this.config.batchSize}),this.flush()))}flush(){if(this.recordingEvents.length===0){Se.info("RRWebPlugin flushEvent called but no events to flush");return}Se.info("RRWebPlugin flushing events",{eventCount:this.recordingEvents.length});const e=[...this.recordingEvents],n={version:"1.0.0",events:e,eventCount:e.length};this.context.record(QM,n),Se.info("RRWebPlugin events sent to RUM",{eventType:QM,eventCount:this.recordingEvents.length}),this.recordingEvents=[]}}var TEe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]]);return n},u_;(function(t){t.Path="PATH",t.Hash="HASH",t.PathAndHash="PATH_AND_HASH"})(u_||(u_={}));const aH="us-west-2",c_=`https://dataplane.rum.${aH}.amazonaws.com`,sH=()=>({unique:!1,domain:window.location.hostname,path:"/",sameSite:"Strict",secure:!0}),oH=t=>({allowCookies:!1,batchLimit:100,client:Qve,compressionStrategy:{enabled:!0},cookieAttributes:t,debug:!1,disableAutoPageView:!1,dispatchInterval:5*1e3,enableRumClient:!0,enableXRay:!1,endpoint:c_,endpointUrl:new URL(c_),eventCacheSize:1e3,eventPluginsToLoad:[],pageIdFormat:u_.Path,pagesToExclude:[],pagesToInclude:[/.*/],signing:!1,recordResourceUrl:!0,retries:2,routeChangeComplete:100,routeChangeTimeout:1e4,sessionAttributes:{},sessionEventLimit:200,sessionLengthSeconds:1800,sessionSampleRate:1,suppressSessionStartEvent:!1,useBeacon:!0,userIdRetentionDays:30,enableW3CTraceId:!1,candidatesCacheSize:10});let REe=class{constructor(e,n,r,a={}){var{cookieAttributes:s}=a,i=TEe(a,["cookieAttributes"]);this.eventBus=new ZF,typeof r>"u"&&(r="us-west-2"),this.applicationId=e;const u=Object.assign(Object.assign({},sH()),s);this.config=Object.assign(Object.assign({fetchFunction:fetch},oH(u)),i),this.config.sessionId&&(this.config.suppressSessionStartEvent=!0),this.config.endpoint=i.endpoint?i.endpoint:c_.replace(aH,r),this.config.endpointUrl=new URL(this.config.endpoint),Se.configure(this.config.debug),Se.info("Initialized RUM Slim"),this.eventCache=new ube({id:e,version:n},this.config,this.eventBus),this.dispatchManager=this.initDispatch(r,e),this.pluginManager=this.initPluginManager(e,n),this.eventCache.setPluginFlushHook(()=>this.pluginManager.flush()),this.config.enableRumClient?this.enable():this.disable()}setAwsCredentials(e){this.dispatchManager.setAwsCredentials(e)}setSigningConfigFactory(e){this.dispatchManager.setSigningConfigFactory(e)}addSessionAttributes(e){this.eventCache.addSessionAttributes(e)}getSessionId(){return this.eventCache.getSessionId()}pinSessionId(e){this.eventCache.pinSessionId(e)}startSession(e){return this.eventCache.startSession(e)}getUserId(){return this.eventCache.getUserId()}pinUserId(e){this.eventCache.pinUserId(e)}setEventMetadataHook(e){this.eventCache.setEventMetadataHook(e)}clearEventMetadataHook(){this.eventCache.clearEventMetadataHook()}addPlugin(e){this.pluginManager.addPlugin(e)}dispatch(){this.dispatchManager.dispatchFetch()}dispatchBeacon(){this.dispatchManager.dispatchBeacon()}enable(){this.eventCache.enable(),this.pluginManager.enable(),this.dispatchManager.enable()}disable(){this.dispatchManager.disable(),this.pluginManager.disable(),this.eventCache.disable()}allowCookies(e){this.config.allowCookies=e}clearCookies(){const e=this.config.cookieAttributes;[d1,f1,ed,`${d1}_${this.applicationId}`,`${f1}_${this.applicationId}`,`${ed}_${this.applicationId}`].forEach(r=>tbe(r,e))}recordPageView(e){this.eventCache.recordPageView(e)}recordError(e){this.pluginManager.record("com.amazonaws.rum.js-error",e)}registerDomEvents(e){this.pluginManager.updatePlugin("com.amazonaws.rum.dom-event",e)}recordEvent(e,n,r){this.eventCache.recordEvent(e,n,r)}initDispatch(e,n){return new Jve(n,e,this.config.endpointUrl,this.eventCache,this.config)}initPluginManager(e,n){const r={applicationId:e,applicationVersion:n,config:this.config,record:this.eventCache.recordEvent,recordCandidate:this.eventCache.recordCandidate,recordPageView:this.eventCache.recordPageView,getSession:this.eventCache.getSession,eventBus:this.eventBus},a=new ebe(r);return this.config.disableAutoPageView||a.addPlugin(new Abe),this.config.eventPluginsToLoad.forEach(s=>{a.addPlugin(s)}),a}};var Za;(function(t){t.Errors="errors",t.Performance="performance",t.Interaction="interaction",t.Http="http",t.Replay="replay"})(Za||(Za={}));var p9;(function(t){t.Path="PATH",t.Hash="HASH",t.PathAndHash="PATH_AND_HASH"})(p9||(p9={}));const IEe=t=>Object.assign(Object.assign({},oH(t)),{signing:!0,telemetries:[Za.Errors,Za.Performance,Za.Http,Za.Replay]});class OEe extends REe{constructor(e,n,r,a={}){super(e,n,r,Object.assign(Object.assign({},IEe(sH())),a)),Se.info(`RUM client initialized for app: ${e}`),Se.info(`Telemetries enabled: ${this.config.telemetries.join(", ")||"none"}`)}initDispatch(e,n){const r=super.initDispatch(e,n);return r.setSigningConfigFactory(Tye),r.setCognitoCredentialProviderFactory((a,s,i,u)=>{const c={identityPoolId:i,guestRoleArn:u,cookieAttributes:a.cookieAttributes};return i&&u?new qye(c,s).ChainAnonymousCredentialsProvider:new Wye(c,s).ChainAnonymousCredentialsProvider}),this.config.signing&&this.config.identityPoolId&&r.setCognitoCredentials(this.config.identityPoolId,this.config.guestRoleArn),r}initPluginManager(e,n){const r=super.initPluginManager(e,n);return this.constructBuiltinPlugins().forEach(s=>{r.addPlugin(s)}),r}recordError(e){this.pluginManager.record(JF,e)}registerDomEvents(e){this.pluginManager.updatePlugin(XF,e)}constructBuiltinPlugins(){let e=[];const n=this.telemetryFunctor();return this.config.telemetries.forEach(r=>{typeof r=="string"&&n[r.toLowerCase()]?e=[...e,...n[r.toLowerCase()]({})]:Array.isArray(r)&&n[r[0].toLowerCase()]&&(e=[...e,...n[r[0].toLowerCase()](r[1])])}),e}telemetryFunctor(){return{[Za.Errors]:e=>[new Sbe(e)],[Za.Performance]:e=>[new Cbe(e),new Rbe(e),new Ybe(e)],[Za.Interaction]:e=>[new SA(e)],[Za.Http]:e=>[new eSe(e),new Xbe(e)],[Za.Replay]:e=>[new AEe(e)]}}}const iH={recordPageView:()=>{},recordError:()=>{},recordEvent:()=>{},recordTiming:()=>{}},NEe=/([?&](token|access_token|id_token|authorization)=[^&]*)|\/messages\/[a-z0-9_-]+/gi;function lH(t){return t.replace(NEe,"[redacted]")}function MEe(t){const e=t.indexOf("?"),n=t.indexOf("#"),r=e===-1&&n===-1?t.length:e===-1?n:n===-1?e:Math.min(e,n);return lH(t.slice(0,r))}function PEe(t){const e=lH(t.message);if(e===t.message)return t;const n=new Error(e);return n.name=t.name,n.stack=t.stack,n}function DEe(t){return{recordPageView(e){t.recordPageView(MEe(e))},recordError(e,n){t.recordError(PEe(e)),n&&t.recordEvent("telemetry.error_context",n)},recordEvent(e,n){t.recordEvent(e,n??{})},recordTiming(e,n,r){t.recordEvent("telemetry.timing",{...r,name:e,durationMs:String(n)})}}}function m9(t){return t instanceof Error?t:new Error(String(t))}function LEe(t){window.addEventListener("error",e=>{t.recordError(m9(e.error??e.message))}),window.addEventListener("unhandledrejection",e=>{t.recordError(m9(e.reason))})}function UEe(){const{appMonitorId:t,identityPoolId:e,region:n}=ev().rum;if(!t)return iH;const r=new OEe(t,"1.0.0",n,{sessionSampleRate:1,identityPoolId:e,endpoint:`https://dataplane.rum.${n}.amazonaws.com`,telemetries:["performance"],disableAutoPageView:!0,allowCookies:!1,enableXRay:!1}),a=DEe(r);return LEe(a),a}const uH=_.createContext(iH);function dIe(){return _.useContext(uH)}const d_="remit.theme",zEe="dark";function g9(){return typeof localStorage>"u"?"system":localStorage.getItem(d_)??"system"}function f_(t){if(typeof document>"u")return;const e=t==="dark"||t==="system"&&typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-color-scheme: dark)").matches;document.documentElement.classList.toggle(zEe,e)}function fIe(t){typeof localStorage<"u"&&(t==="system"?localStorage.removeItem(d_):localStorage.setItem(d_,t)),f_(t)}const jEe=()=>{if(typeof window>"u"||(f_(g9()),typeof window.matchMedia!="function"))return;const t=window.matchMedia("(prefers-color-scheme: dark)"),e=()=>{f_(g9())};typeof t.addEventListener=="function"?t.addEventListener("change",e):t.addListener(e)},FEe=(t,e,n,r)=>{const a=[n,{code:e,...r||{}}];if(t?.services?.logger?.forward)return t.services.logger.forward(a,"warn","react-i18next::",!0);Vl(a[0])&&(a[0]=`react-i18next:: ${a[0]}`),t?.services?.logger?.warn?t.services.logger.warn(...a):console?.warn&&console.warn(...a)},v9={},h_=(t,e,n,r)=>{Vl(n)&&v9[n]||(Vl(n)&&(v9[n]=new Date),FEe(t,e,n,r))},cH=(t,e)=>()=>{if(t.isInitialized)e();else{const n=()=>{setTimeout(()=>{t.off("initialized",n)},0),e()};t.on("initialized",n)}},p_=(t,e,n)=>{t.loadNamespaces(e,cH(t,n))},y9=(t,e,n,r)=>{if(Vl(n)&&(n=[n]),t.options.preload&&t.options.preload.indexOf(e)>-1)return p_(t,n,r);n.forEach(a=>{t.options.ns.indexOf(a)<0&&t.options.ns.push(a)}),t.loadLanguages(e,cH(t,r))},BEe=(t,e,n={})=>!e.languages||!e.languages.length?(h_(e,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:e.languages}),!0):e.hasLoadedNamespace(t,{lng:n.lng,precheck:(r,a)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!a(r.isLanguageChangingTo,t))return!1}}),Vl=t=>typeof t=="string",$Ee=t=>typeof t=="object"&&t!==null,HEe=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,qEe={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},WEe=t=>qEe[t],VEe=t=>t.replace(HEe,WEe);let m_={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:VEe};const GEe=(t={})=>{m_={...m_,...t}},KEe=()=>m_;let dH;const YEe=t=>{dH=t},ZEe=()=>dH,XEe={type:"3rdParty",init(t){GEe(t.options.react),YEe(t)}},QEe=_.createContext();class JEe{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const e3e=(t,e)=>{const n=_.useRef();return _.useEffect(()=>{n.current=t},[t,e]),n.current},fH=(t,e,n,r)=>t.getFixedT(e,n,r),t3e=(t,e,n,r)=>_.useCallback(fH(t,e,n,r),[t,e,n,r]),n3e=(t,e={})=>{const{i18n:n}=e,{i18n:r,defaultNS:a}=_.useContext(QEe)||{},s=n||r||ZEe();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new JEe),!s){h_(s,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const R=(O,I)=>Vl(I)?I:$Ee(I)&&Vl(I.defaultValue)?I.defaultValue:Array.isArray(O)?O[O.length-1]:O,N=[R,{},!1];return N.t=R,N.i18n={},N.ready=!1,N}s.options.react?.wait&&h_(s,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const i={...KEe(),...s.options.react,...e},{useSuspense:u,keyPrefix:c}=i;let f=t||a||s.options?.defaultNS;f=Vl(f)?[f]:f||["translation"],s.reportNamespaces.addUsedNamespaces?.(f);const h=(s.isInitialized||s.initializedStoreOnce)&&f.every(R=>BEe(R,s,i)),m=t3e(s,e.lng||null,i.nsMode==="fallback"?f:f[0],c),g=()=>m,y=()=>fH(s,e.lng||null,i.nsMode==="fallback"?f:f[0],c),[S,w]=_.useState(g);let x=f.join();e.lng&&(x=`${e.lng}${x}`);const E=e3e(x),k=_.useRef(!0);_.useEffect(()=>{const{bindI18n:R,bindI18nStore:N}=i;k.current=!0,!h&&!u&&(e.lng?y9(s,e.lng,f,()=>{k.current&&w(y)}):p_(s,f,()=>{k.current&&w(y)})),h&&E&&E!==x&&k.current&&w(y);const O=()=>{k.current&&w(y)};return R&&s?.on(R,O),N&&s?.store.on(N,O),()=>{k.current=!1,s&&R&&R?.split(" ").forEach(I=>s.off(I,O)),N&&s&&N.split(" ").forEach(I=>s.store.off(I,O))}},[s,x]),_.useEffect(()=>{k.current&&h&&w(g)},[s,c,h]);const A=[S,s,h];if(A.t=S,A.i18n=s,A.ready=h,h||!h&&!u)return A;throw new Promise(R=>{e.lng?y9(s,e.lng,f,()=>R()):p_(s,f,()=>R())})},r3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts",...t,headers:{"Content-Type":"application/json",...t.headers}}),a3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/oauth/microsoft/start",...t,headers:{"Content-Type":"application/json",...t.headers}}),s3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/test-connection",...t,headers:{"Content-Type":"application/json",...t.headers}}),o3e=t=>(t.client??Pe).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}",...t}),i3e=t=>(t.client??Pe).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}",...t,headers:{"Content-Type":"application/json",...t.headers}}),l3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/filters",...t}),u3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/filters",...t,headers:{"Content-Type":"application/json",...t.headers}}),c3e=t=>(t.client??Pe).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/filters/{filterId}",...t}),d3e=t=>(t.client??Pe).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/filters/{filterId}",...t,headers:{"Content-Type":"application/json",...t.headers}}),f3e=t=>(t.client??Pe).put({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/folder-roles/{role}",...t,headers:{"Content-Type":"application/json",...t.headers}}),h3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/labels",...t}),p3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/labels",...t,headers:{"Content-Type":"application/json",...t.headers}}),m3e=t=>(t.client??Pe).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/labels/{labelId}",...t}),g3e=t=>(t.client??Pe).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/labels/{labelId}",...t,headers:{"Content-Type":"application/json",...t.headers}}),v3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/mailboxes",...t}),y3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/mailboxes",...t,headers:{"Content-Type":"application/json",...t.headers}}),hIe=t=>(t.client??Pe).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/mailboxes/{mailboxId}",...t}),b3e=t=>(t.client??Pe).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/mailboxes/{mailboxId}",...t,headers:{"Content-Type":"application/json",...t.headers}}),S3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/organize",...t,headers:{"Content-Type":"application/json",...t.headers}}),w3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/organize/preview",...t,headers:{"Content-Type":"application/json",...t.headers}}),x3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/organize/{organizeJobId}",...t}),C3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/sync",...t}),E3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/accounts/{accountId}/sync/status",...t}),_3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/addresses/search",...t}),k3e=t=>(t.client??Pe).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/addresses/{addressId}",...t,headers:{"Content-Type":"application/json",...t.headers}}),A3e=t=>(t?.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/config",...t}),pIe=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/mailboxes/{mailboxId}/threads",...t}),T3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/mailboxes/{mailboxId}/threads/search",...t}),R3e=t=>(t.client??Pe).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/me",...t,headers:{"Content-Type":"application/json",...t.headers}}),I3e=t=>(t?.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/me/export",...t}),O3e=t=>(t?.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/me/vip-suggestions",...t}),N3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/delete",...t,headers:{"Content-Type":"application/json",...t.headers}}),M3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/flags",...t,headers:{"Content-Type":"application/json",...t.headers}}),P3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/labels",...t,headers:{"Content-Type":"application/json",...t.headers}}),D3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/move",...t,headers:{"Content-Type":"application/json",...t.headers}}),L3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/{messageId}",...t}),U3e=t=>(t.client??Pe).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/{messageId}/flags",...t,headers:{"Content-Type":"application/json",...t.headers}}),z3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/messages/{messageId}/raw",...t}),j3e=t=>(t?.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox",...t}),F3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox",...t,headers:{"Content-Type":"application/json",...t.headers}}),B3e=t=>(t.client??Pe).delete({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox/{outboxMessageId}",...t}),$3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox/{outboxMessageId}",...t}),H3e=t=>(t.client??Pe).patch({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox/{outboxMessageId}",...t,headers:{"Content-Type":"application/json",...t.headers}}),q3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/outbox/{outboxMessageId}/send",...t}),W3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/search/semantic",...t}),V3e=t=>(t?.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/system/update",...t}),G3e=t=>(t.client??Pe).post({security:[{name:"Authorization",type:"apiKey"}],url:"/system/update",...t,headers:{"Content-Type":"application/json",...t.headers}}),K3e=t=>(t?.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/threads",...t}),Y3e=t=>(t.client??Pe).get({security:[{name:"Authorization",type:"apiKey"}],url:"/threads/{threadId}/messages",...t}),mIe=t=>({mutationFn:async n=>{const{data:r}=await r3e({...t,...n,throwOnError:!0});return r}}),jn=(t,e,n,r)=>{const a={_id:t,baseUrl:e?.baseUrl||(e?.client??Pe).getConfig().baseUrl};return e?.body&&(a.body=e.body),e?.headers&&(a.headers=e.headers),e?.path&&(a.path=e.path),e?.query&&(a.query=e.query),[a]},gIe=t=>({mutationFn:async n=>{const{data:r}=await a3e({...t,...n,throwOnError:!0});return r}}),vIe=t=>({mutationFn:async n=>{const{data:r}=await s3e({...t,...n,throwOnError:!0});return r}}),yIe=t=>({mutationFn:async n=>{const{data:r}=await o3e({...t,...n,throwOnError:!0});return r}}),bIe=t=>({mutationFn:async n=>{const{data:r}=await i3e({...t,...n,throwOnError:!0});return r}}),Z3e=t=>jn("filterOperationsListFilters",t),SIe=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await l3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:Z3e(t)}),wIe=t=>({mutationFn:async n=>{const{data:r}=await u3e({...t,...n,throwOnError:!0});return r}}),xIe=t=>({mutationFn:async n=>{const{data:r}=await c3e({...t,...n,throwOnError:!0});return r}}),CIe=t=>jn("filterDetailOperationsGetFilter",t),EIe=t=>({mutationFn:async n=>{const{data:r}=await d3e({...t,...n,throwOnError:!0});return r}}),_Ie=t=>({mutationFn:async n=>{const{data:r}=await f3e({...t,...n,throwOnError:!0});return r}}),X3e=t=>jn("labelOperationsListLabels",t),kIe=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await h3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:X3e(t)}),AIe=t=>({mutationFn:async n=>{const{data:r}=await p3e({...t,...n,throwOnError:!0});return r}}),TIe=t=>({mutationFn:async n=>{const{data:r}=await m3e({...t,...n,throwOnError:!0});return r}}),RIe=t=>({mutationFn:async n=>{const{data:r}=await g3e({...t,...n,throwOnError:!0});return r}}),Q3e=t=>jn("mailboxOperationsListMailboxes",t),IIe=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await v3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:Q3e(t)}),OIe=t=>({mutationFn:async n=>{const{data:r}=await y3e({...t,...n,throwOnError:!0});return r}}),NIe=t=>({mutationFn:async n=>{const{data:r}=await b3e({...t,...n,throwOnError:!0});return r}}),MIe=t=>({mutationFn:async n=>{const{data:r}=await S3e({...t,...n,throwOnError:!0});return r}}),PIe=t=>({mutationFn:async n=>{const{data:r}=await w3e({...t,...n,throwOnError:!0});return r}}),J3e=t=>jn("organizeJobDetailOperationsGetOrganizeJob",t),DIe=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await x3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:J3e(t)}),LIe=t=>({mutationFn:async n=>{const{data:r}=await C3e({...t,...n,throwOnError:!0});return r}}),e_e=t=>jn("syncOperationsGetSyncStatus",t),UIe=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await E3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:e_e(t)}),t_e=t=>jn("addressOperationsSearchAddresses",t),zIe=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await _3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:t_e(t)}),jIe=t=>({mutationFn:async n=>{const{data:r}=await k3e({...t,...n,throwOnError:!0});return r}}),n_e=t=>jn("configOperationsGetConfig",t),r_e=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await A3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:n_e(t)}),FIe=t=>jn("threadOperationsListThreads",t),a_e=t=>jn("threadOperationsSearchThreads",t),BIe=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await T3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:a_e(t)}),$Ie=t=>({mutationFn:async n=>{const{data:r}=await R3e({...t,...n,throwOnError:!0});return r}}),HIe=t=>({mutationFn:async n=>{const{data:r}=await I3e({...t,...n,throwOnError:!0});return r}}),s_e=t=>jn("meOperationsListVipSuggestions",t),qIe=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await O3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:s_e(t)}),WIe=t=>({mutationFn:async n=>{const{data:r}=await N3e({...t,...n,throwOnError:!0});return r}}),VIe=t=>({mutationFn:async n=>{const{data:r}=await M3e({...t,...n,throwOnError:!0});return r}}),GIe=t=>({mutationFn:async n=>{const{data:r}=await P3e({...t,...n,throwOnError:!0});return r}}),KIe=t=>({mutationFn:async n=>{const{data:r}=await D3e({...t,...n,throwOnError:!0});return r}}),o_e=t=>jn("messageOperationsDescribeMessage",t),YIe=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await L3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:o_e(t)}),ZIe=t=>({mutationFn:async n=>{const{data:r}=await U3e({...t,...n,throwOnError:!0});return r}}),i_e=t=>jn("messageOperationsGetRawMessage",t),XIe=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await z3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:i_e(t)}),hH=t=>jn("outboxOperationsListOutboxMessages",t),QIe=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await j3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:hH(t)}),JIe=t=>({mutationFn:async n=>{const{data:r}=await F3e({...t,...n,throwOnError:!0});return r}}),e4e=t=>({mutationFn:async n=>{const{data:r}=await B3e({...t,...n,throwOnError:!0});return r}}),l_e=t=>jn("outboxDetailOperationsGetOutboxMessage",t),u_e=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await $3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:l_e(t)}),t4e=t=>({mutationFn:async n=>{const{data:r}=await H3e({...t,...n,throwOnError:!0});return r}}),n4e=t=>({mutationFn:async n=>{const{data:r}=await q3e({...t,...n,throwOnError:!0});return r}}),c_e=t=>jn("semanticSearchOperationsSemanticSearch",t),r4e=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await W3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:c_e(t)}),pH=t=>jn("systemOperationsGetSystemUpdate",t),d_e=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await V3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:pH(t)}),f_e=t=>({mutationFn:async n=>{const{data:r}=await G3e({...t,...n,throwOnError:!0});return r}}),h_e=t=>jn("unifiedThreadOperationsListAllThreads",t),p_e=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await K3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:h_e(t)}),m_e=t=>jn("threadDetailOperationsListThreadMessages",t),a4e=t=>({queryFn:async({queryKey:e,signal:n})=>{const{data:r}=await Y3e({...t,...e[0],signal:n,throwOnError:!0});return r},queryKey:m_e(t)}),mH=_.createContext(void 0),b9={isOpen:!1,mode:"new"},g_e=2e3,v_e=6e4,y_e=({children:t})=>{const[e,n]=_.useState(b9),[r,a]=_.useState(),s=_.useRef(0),i=zv(),{data:u}=Gj({...u_e({path:{outboxMessageId:r??""}}),enabled:!!r,refetchInterval:y=>{const S=y.state.data?.status;return S==="sent"||S==="failed"||S==="blocked"||Date.now()-s.current>v_e?!1:g_e}});_.useEffect(()=>{if(!u||!r)return;(u.status==="sent"||u.status==="failed"||u.status==="blocked")&&(a(void 0),i.invalidateQueries({queryKey:hH()}))},[u,r,i]);const c=_.useCallback(y=>{n({...y,isOpen:!0})},[]),f=_.useCallback(()=>{n(b9)},[]),h=_.useCallback(y=>{n(S=>({...S,outboxMessageId:y}))},[]),m=_.useCallback(y=>{s.current=Date.now(),a(y)},[]),g=_.useMemo(()=>({state:e,openCompose:c,closeCompose:f,setOutboxMessageId:h,startSendPolling:m}),[e,c,f,h,m]);return C.jsx(mH.Provider,{value:g,children:t})},s4e=()=>{const t=_.useContext(mH);if(!t)throw new Error("useCompose must be used within a ComposeProvider");return t},b_e=600,S_e=300,gH="remit logs",w_e="https://github.com/remit-mail/reader/releases/tag/",x_e={checking:"preparing",pulling:"preparing",snapshotting:"preparing",stopping:"restarting",starting:"restarting",verifying:"reconnecting",committing:"reconnecting",rollingBack:"reconnecting",recovering:"reconnecting"};function eT(t){return x_e[t]??"reconnecting"}function vH(t){const e=fu(t);return e===404||e===403||e===401}function yH(t,e){const n=t?.check;if(n?.status==="ok"&&!(!n.updateAvailable||!n.latestVersion))return{version:n.latestVersion,releasedAt:M1(n.publishedAt)??e,releaseNotesUrl:n.releaseNotesUrl??SH(n.latestVersion),summary:n.summary??""}}function C_e(t){const e=t?.check.schemaVersion,n=t?.currentSchemaVersion;return e===void 0||n===void 0?!1:e>n}function S9(){return b_e+S_e}function bH(t,e){return Math.max(0,Math.floor((e-t)/1e3))}function M1(t){if(!t)return;const e=Date.parse(t);return Number.isNaN(e)?void 0:e}function SH(t){return`${w_e}${t}`}function Th(t,e,n,r,a){return{status:"applying",runId:t,version:e,target:n,phase:r,elapsedSeconds:a}}function E_e(t,e,n){switch(n){case"succeeded":return{status:"succeeded",runId:e.runId,version:e.targetVersion,previousVersion:e.fromVersion,releaseNotesUrl:t.check.releaseNotesUrl??SH(e.targetVersion)};case"rolledBack":return{status:"rolledBack",runId:e.runId,version:e.fromVersion,attemptedVersion:e.targetVersion,reason:e.message,logsCommand:e.logCommand};case"rollbackFailed":return{status:"rollbackFailed",runId:e.runId,attemptedVersion:e.targetVersion,previousVersion:e.fromVersion,reason:e.message,logsCommand:e.logCommand};case"abandoned":return{status:"abandoned",runId:e.runId,version:e.fromVersion,attemptedVersion:e.targetVersion,reason:e.message,logsCommand:e.logCommand};default:return n}}function __e(t,e,n){const r=t.check;if(e)return{status:"checking",version:t.currentVersion};if(r.status==="failed")return{status:"checkFailed",version:t.currentVersion,reason:r.error??"Remit could not reach the update service.",lastCheckedAt:M1(r.lastCheckedAt)};if(r.status==="disabled")return{status:"neverChecked",version:t.currentVersion};const a=yH(t,n);return a?{status:"available",version:t.currentVersion,release:a}:{status:"upToDate",version:t.currentVersion,checkedAt:M1(r.lastCheckedAt)??n}}function aE(t,e,n){return{surface:{status:"ready",section:t,overlay:e},releaseHeld:n}}function k_e(t,e){return{surface:{status:"ready",section:Th(t.runId,t.previousVersion,t.attemptedVersion,"reconnecting",e),overlay:{kind:"neverCameBack",attemptedVersion:t.attemptedVersion,previousVersion:t.previousVersion,elapsedSeconds:e,logsCommand:gH}},releaseHeld:!1}}function A_e(t,e,n,r,a){const s=bH(t.startedAt,a),i=e?.currentVersion??t.previousVersion,u=!r&&n!==null&&n.runId===t.runId;if(u&&n!==null&&n.outcome!==null)return null;if(u&&n!==null){const c=eT(n.phase);return aE(Th(n.runId,i,n.targetVersion,c,s),{kind:"applying",target:n.targetVersion,phase:c,elapsedSeconds:s},!1)}return r?s>S9()?k_e(t,s):aE(Th(t.runId,t.previousVersion,t.attemptedVersion,"reconnecting",s),{kind:"applying",target:t.attemptedVersion,phase:"reconnecting",elapsedSeconds:s},!1):e===void 0?{surface:{status:"loading"},releaseHeld:!1}:s>S9()?{surface:{status:"ready",section:{status:"unreachable",runId:t.runId,previousVersion:t.previousVersion,attemptedVersion:t.attemptedVersion,elapsedSeconds:s,logsCommand:n?.logCommand??gH},overlay:{kind:"none"}},releaseHeld:!0}:aE(Th(t.runId,i,t.attemptedVersion,t.phase,s),{kind:"applying",target:t.attemptedVersion,phase:t.phase,elapsedSeconds:s},!1)}function w9(t){const{data:e,isError:n,isFetching:r,dismissedRunId:a,checkRequested:s,now:i}=t;if(n)return{status:"ready",section:{status:"checkFailed",version:e?.currentVersion??"the current version",reason:"Remit could not reach the update service."},overlay:{kind:"none"}};if(!e)return{status:"loading"};const u=e.run,c=u!==null&&a!==null&&u.runId===a;if(u!==null&&!c&&u.outcome!==null)return{status:"ready",section:E_e(e,u,u.outcome),overlay:{kind:"none"}};if(u!==null&&!c&&u.outcome===null){const f=bH(M1(u.startedAt)??i,i),h=eT(u.phase);return{status:"ready",section:Th(u.runId,u.fromVersion,u.targetVersion,h,f),overlay:{kind:"applying",target:u.targetVersion,phase:h,elapsedSeconds:f}}}return{status:"ready",section:__e(e,s&&r,i),overlay:{kind:"none"}}}function T_e(t){const{data:e,isError:n,error:r,held:a,now:s}=t,i=e?.run??null;if(vH(r)&&!a)return{surface:{status:"absent"},releaseHeld:!0};if(a){const u=A_e(a,e,i,n,s);return u||{surface:w9(t),releaseHeld:!0}}return{surface:w9(t),releaseHeld:!1}}const R_e=3e4,I_e=5e3;function O_e(t,e,n){if(vH(t)&&!n)return!1;const r=e!==null&&e.outcome===null;return n||r?I_e:R_e}function N_e(){const t=zv(),[e,n]=_.useState(null),[r,a]=_.useState(null),[s,i]=_.useState(!1),u=_.useRef(e);u.current=e;const c=Gj({...d_e(),retry:!1,meta:{softError:!0},refetchInterval:A=>O_e(A.state.error,A.state.data?.run??null,u.current!==null)}),f=T_e({data:c.data,isError:c.isError,error:c.error,isFetching:c.isFetching,held:e,dismissedRunId:r,checkRequested:s,now:Date.now()}),h=_.useRef(null);h.current=f.surface.status==="ready"&&"runId"in f.surface.section?f.surface.section.runId:null;const{releaseHeld:m}=f;_.useEffect(()=>{m&&n(A=>A===null?A:null)},[m]),_.useEffect(()=>{s&&!c.isFetching&&i(!1)},[s,c.isFetching]);const{refetch:g}=c,y=_.useCallback(()=>{i(!0),g()},[g]),S=_.useCallback(()=>{g()},[g]),w=Gge({...f_e(),meta:{softError:!0},onSuccess:A=>{const R=A.run;R!==null&&(n({runId:R.runId,attemptedVersion:R.targetVersion,previousVersion:R.fromVersion,phase:eT(R.phase),startedAt:Date.now()}),a(null)),t.setQueryData(pH(),A)},onError:()=>{g()}}),{mutate:x}=w,E=_.useCallback(A=>{x({body:{targetVersion:A}})},[x]),k=_.useCallback(()=>{h.current!==null&&a(h.current),n(null)},[]);return{surface:f.surface,appliesSchemaMigration:C_e(c.data),currentVersion:c.data?.currentVersion,release:yH(c.data,Date.now()),onCheck:y,install:E,onDismissResult:k,onRetryConnection:S}}const tT=_.createContext(null);function M_e({children:t}){const e=N_e();return _.createElement(tT.Provider,{value:e},t)}function P_e(){const t=_.useContext(tT);if(t===null)throw new Error("useSelfUpdate must be used within a SelfUpdateProvider");return t}function D_e(){return _.useContext(tT)}function L_e(){const{surface:t,onRetryConnection:e}=P_e();if(t.status!=="ready")return null;const{overlay:n}=t;return n.kind==="applying"?C.jsx(Dre,{target:n.target,phase:n.phase,elapsedSeconds:n.elapsedSeconds}):n.kind==="neverCameBack"?C.jsx(Lre,{attemptedVersion:n.attemptedVersion,previousVersion:n.previousVersion,elapsedSeconds:n.elapsedSeconds,logsCommand:n.logsCommand,onRetryConnection:e}):null}const sE=(...t)=>LL(EL(t)),U_e={error:{container:"border-danger/50 bg-danger-soft",icon:"text-danger",title:"text-danger"},warning:{container:"border-warning/50 bg-warning-soft",icon:"text-warning",title:"text-warning"},info:{container:"border-accent-2/50 bg-accent-2-soft",icon:"text-accent-2",title:"text-accent-2"}},z_e={error:EJ,warning:Nh,info:IL},j_e={error:"Error",warning:"Warning",info:"Information"},F_e=({id:t,severity:e,title:n,detail:r,onDismiss:a})=>{const s=U_e[e],i=z_e[e];return C.jsxs("div",{role:e==="error"?"alert":"status","aria-live":e==="error"?"assertive":"polite",className:sE("pointer-events-auto flex items-start gap-3 rounded-md border bg-canvas px-3 py-2 shadow-lg",s.container),children:[C.jsx(i,{className:sE("size-5 shrink-0 mt-0.5",s.icon),"aria-hidden":"true"}),C.jsxs("div",{className:"flex-1 min-w-0",children:[C.jsx("p",{className:sE("text-sm font-medium",s.title),children:n}),r&&C.jsx("p",{className:"mt-0.5 text-xs text-fg-muted break-words",children:r})]}),C.jsx("button",{type:"button",onClick:()=>a(t),className:"shrink-0 rounded-md p-1 text-fg-muted hover:bg-surface-raised hover:text-fg transition-colors","aria-label":`Dismiss ${j_e[e].toLowerCase()}`,children:C.jsx(Ms,{className:"size-4","aria-hidden":"true"})})]})},B_e=({errors:t,onDismiss:e})=>t.length===0?null:C.jsx("section",{"aria-label":"Notifications",className:"pointer-events-none fixed inset-x-0 top-0 z-[60] flex flex-col items-center gap-2 px-4 pt-[calc(1rem+env(safe-area-inset-top,0px))] sm:items-end sm:pr-6",children:C.jsx("div",{className:"flex w-full max-w-md flex-col gap-2",children:t.map(n=>C.jsx(F_e,{id:n.id,severity:n.severity,title:n.title,detail:n.detail,onDismiss:e},n.id))})}),x9=5,o4e=(t,e,n)=>({title:t,detail:wH(n)??e,error:n}),wH=t=>{if(t!=null){if(t instanceof Error)return t.message||void 0;if(typeof t=="string")return t||void 0;if(typeof t=="object"&&"message"in t&&typeof t.message=="string")return t.message||void 0}},i4e=t=>{const e=wH(t);return e?e.startsWith("Message not found"):!1},$_e=(t,e,n)=>t.severity===n&&t.title===e.title&&t.detail===e.detail,H_e=(t,e)=>{const r=[...t.filter(a=>!$_e(a,{title:e.title,detail:e.detail,severity:e.severity},e.severity)),e];return r.length<=x9?r:r.slice(r.length-x9)},q_e=(t,e)=>t.filter(n=>n.id!==e),W_e=(t,e,n)=>({id:e,severity:t.severity??"error",title:t.title,detail:t.detail,createdAt:n}),xH=_.createContext(void 0),V_e=()=>typeof globalThis.crypto<"u"&&typeof globalThis.crypto.randomUUID=="function"?globalThis.crypto.randomUUID():`banner-${Date.now()}-${Math.random().toString(36).slice(2,10)}`,G_e=({children:t})=>{const[e,n]=_.useState([]),r=_.useCallback(u=>{if(u.error!=null&&HU(u.error))return Yl(u.error).correlationId;const c=W_e(u,V_e(),Date.now());return n(f=>H_e(f,c)),c.id},[]),a=_.useCallback(u=>{n(c=>q_e(c,u))},[]),s=_.useCallback(()=>{n([])},[]),i=_.useMemo(()=>({errors:e,pushError:r,dismissError:a,clearAll:s}),[e,r,a,s]);return C.jsxs(xH.Provider,{value:i,children:[t,C.jsx(B_e,{errors:e,onDismiss:a})]})},l4e=()=>{const t=_.useContext(xH);if(!t)throw new Error("useErrorBanners must be used within an ErrorBannerProvider");return t},K_e=({error:t,reset:e,info:n})=>{const r=uv(t),a=Yl(t,{recoverable:r,componentStack:n?.componentStack});return C.jsx(QU,{fatal:a,onRetry:r?e:void 0})},Np=w1e()({component:Z_e,errorComponent:K_e}),Y_e=()=>{const{t}=n3e("common",{useSuspense:!1});return C.jsx("a",{href:"#main-content",className:"sr-only focus:not-sr-only focus:absolute focus:z-50 focus:p-4 focus:bg-canvas focus:text-fg focus:rounded-md",children:t("accessibility.skipToContent","Skip to main content")})};function Z_e(){return C.jsxs(G_e,{children:[C.jsxs(M_e,{children:[C.jsxs(y_e,{children:[C.jsx(Y_e,{}),C.jsx("main",{id:"main-content",className:"h-dvh overflow-hidden",children:C.jsx(_.Suspense,{fallback:C.jsx(ak,{}),children:C.jsx(CF,{})})})]}),C.jsx(L_e,{})]}),C.jsx(XU,{})]})}const X_e=ur("/")({beforeLoad:()=>{throw aF({to:"/mail"})}});var Tt;(function(t){t.assertEqual=a=>{};function e(a){}t.assertIs=e;function n(a){throw new Error}t.assertNever=n,t.arrayToEnum=a=>{const s={};for(const i of a)s[i]=i;return s},t.getValidEnumValues=a=>{const s=t.objectKeys(a).filter(u=>typeof a[a[u]]!="number"),i={};for(const u of s)i[u]=a[u];return t.objectValues(i)},t.objectValues=a=>t.objectKeys(a).map(function(s){return a[s]}),t.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const s=[];for(const i in a)Object.prototype.hasOwnProperty.call(a,i)&&s.push(i);return s},t.find=(a,s)=>{for(const i of a)if(s(i))return i},t.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&Number.isFinite(a)&&Math.floor(a)===a;function r(a,s=" | "){return a.map(i=>typeof i=="string"?`'${i}'`:i).join(s)}t.joinValues=r,t.jsonStringifyReplacer=(a,s)=>typeof s=="bigint"?s.toString():s})(Tt||(Tt={}));var C9;(function(t){t.mergeShapes=(e,n)=>({...e,...n})})(C9||(C9={}));const Ie=Tt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Ai=t=>{switch(typeof t){case"undefined":return Ie.undefined;case"string":return Ie.string;case"number":return Number.isNaN(t)?Ie.nan:Ie.number;case"boolean":return Ie.boolean;case"function":return Ie.function;case"bigint":return Ie.bigint;case"symbol":return Ie.symbol;case"object":return Array.isArray(t)?Ie.array:t===null?Ie.null:t.then&&typeof t.then=="function"&&t.catch&&typeof t.catch=="function"?Ie.promise:typeof Map<"u"&&t instanceof Map?Ie.map:typeof Set<"u"&&t instanceof Set?Ie.set:typeof Date<"u"&&t instanceof Date?Ie.date:Ie.object;default:return Ie.unknown}},ge=Tt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class No extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=e}format(e){const n=e||function(s){return s.message},r={_errors:[]},a=s=>{for(const i of s.issues)if(i.code==="invalid_union")i.unionErrors.map(a);else if(i.code==="invalid_return_type")a(i.returnTypeError);else if(i.code==="invalid_arguments")a(i.argumentsError);else if(i.path.length===0)r._errors.push(n(i));else{let u=r,c=0;for(;c<i.path.length;){const f=i.path[c];c===i.path.length-1?(u[f]=u[f]||{_errors:[]},u[f]._errors.push(n(i))):u[f]=u[f]||{_errors:[]},u=u[f],c++}}};return a(this),r}static assert(e){if(!(e instanceof No))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Tt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=n=>n.message){const n={},r=[];for(const a of this.issues)if(a.path.length>0){const s=a.path[0];n[s]=n[s]||[],n[s].push(e(a))}else r.push(e(a));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}No.create=t=>new No(t);const g_=(t,e)=>{let n;switch(t.code){case ge.invalid_type:t.received===Ie.undefined?n="Required":n=`Expected ${t.expected}, received ${t.received}`;break;case ge.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,Tt.jsonStringifyReplacer)}`;break;case ge.unrecognized_keys:n=`Unrecognized key(s) in object: ${Tt.joinValues(t.keys,", ")}`;break;case ge.invalid_union:n="Invalid input";break;case ge.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Tt.joinValues(t.options)}`;break;case ge.invalid_enum_value:n=`Invalid enum value. Expected ${Tt.joinValues(t.options)}, received '${t.received}'`;break;case ge.invalid_arguments:n="Invalid function arguments";break;case ge.invalid_return_type:n="Invalid function return type";break;case ge.invalid_date:n="Invalid date";break;case ge.invalid_string:typeof t.validation=="object"?"includes"in t.validation?(n=`Invalid input: must include "${t.validation.includes}"`,typeof t.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?n=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?n=`Invalid input: must end with "${t.validation.endsWith}"`:Tt.assertNever(t.validation):t.validation!=="regex"?n=`Invalid ${t.validation}`:n="Invalid";break;case ge.too_small:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="bigint"?n=`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:n="Invalid input";break;case ge.too_big:t.type==="array"?n=`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:t.type==="string"?n=`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:t.type==="number"?n=`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="bigint"?n=`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:t.type==="date"?n=`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:n="Invalid input";break;case ge.custom:n="Invalid input";break;case ge.invalid_intersection_types:n="Intersection results could not be merged";break;case ge.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case ge.not_finite:n="Number must be finite";break;default:n=e.defaultError,Tt.assertNever(t)}return{message:n}};let Q_e=g_;function J_e(){return Q_e}const eke=t=>{const{data:e,path:n,errorMaps:r,issueData:a}=t,s=[...n,...a.path||[]],i={...a,path:s};if(a.message!==void 0)return{...a,path:s,message:a.message};let u="";const c=r.filter(f=>!!f).slice().reverse();for(const f of c)u=f(i,{data:e,defaultError:u}).message;return{...a,path:s,message:u}};function ke(t,e){const n=J_e(),r=eke({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,n,n===g_?void 0:g_].filter(a=>!!a)});t.common.issues.push(r)}class da{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,n){const r=[];for(const a of n){if(a.status==="aborted")return Xe;a.status==="dirty"&&e.dirty(),r.push(a.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,n){const r=[];for(const a of n){const s=await a.key,i=await a.value;r.push({key:s,value:i})}return da.mergeObjectSync(e,r)}static mergeObjectSync(e,n){const r={};for(const a of n){const{key:s,value:i}=a;if(s.status==="aborted"||i.status==="aborted")return Xe;s.status==="dirty"&&e.dirty(),i.status==="dirty"&&e.dirty(),s.value!=="__proto__"&&(typeof i.value<"u"||a.alwaysSet)&&(r[s.value]=i.value)}return{status:e.value,value:r}}}const Xe=Object.freeze({status:"aborted"}),ph=t=>({status:"dirty",value:t}),Pa=t=>({status:"valid",value:t}),E9=t=>t.status==="aborted",_9=t=>t.status==="dirty",ld=t=>t.status==="valid",P1=t=>typeof Promise<"u"&&t instanceof Promise;var Ne;(function(t){t.errToObj=e=>typeof e=="string"?{message:e}:e||{},t.toString=e=>typeof e=="string"?e:e?.message})(Ne||(Ne={}));class Ki{constructor(e,n,r,a){this._cachedPath=[],this.parent=e,this.data=n,this._path=r,this._key=a}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const k9=(t,e)=>{if(ld(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new No(t.common.issues);return this._error=n,this._error}}};function st(t){if(!t)return{};const{errorMap:e,invalid_type_error:n,required_error:r,description:a}=t;if(e&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:a}:{errorMap:(i,u)=>{const{message:c}=t;return i.code==="invalid_enum_value"?{message:c??u.defaultError}:typeof u.data>"u"?{message:c??r??u.defaultError}:i.code!=="invalid_type"?{message:u.defaultError}:{message:c??n??u.defaultError}},description:a}}class Et{get description(){return this._def.description}_getType(e){return Ai(e.data)}_getOrReturnCtx(e,n){return n||{common:e.parent.common,data:e.data,parsedType:Ai(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new da,ctx:{common:e.parent.common,data:e.data,parsedType:Ai(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const n=this._parse(e);if(P1(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(e){const n=this._parse(e);return Promise.resolve(n)}parse(e,n){const r=this.safeParse(e,n);if(r.success)return r.data;throw r.error}safeParse(e,n){const r={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ai(e)},a=this._parseSync({data:e,path:r.path,parent:r});return k9(r,a)}"~validate"(e){const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ai(e)};if(!this["~standard"].async)try{const r=this._parseSync({data:e,path:[],parent:n});return ld(r)?{value:r.value}:{issues:n.common.issues}}catch(r){r?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:n}).then(r=>ld(r)?{value:r.value}:{issues:n.common.issues})}async parseAsync(e,n){const r=await this.safeParseAsync(e,n);if(r.success)return r.data;throw r.error}async safeParseAsync(e,n){const r={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Ai(e)},a=this._parse({data:e,path:r.path,parent:r}),s=await(P1(a)?a:Promise.resolve(a));return k9(r,s)}refine(e,n){const r=a=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(a):n;return this._refinement((a,s)=>{const i=e(a),u=()=>s.addIssue({code:ge.custom,...r(a)});return typeof Promise<"u"&&i instanceof Promise?i.then(c=>c?!0:(u(),!1)):i?!0:(u(),!1)})}refinement(e,n){return this._refinement((r,a)=>e(r)?!0:(a.addIssue(typeof n=="function"?n(r,a):n),!1))}_refinement(e){return new dd({schema:this,typeName:Qe.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return ji.create(this,this._def)}nullable(){return fd.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ts.create(this)}promise(){return z1.create(this,this._def)}or(e){return L1.create([this,e],this._def)}and(e){return U1.create(this,e,this._def)}transform(e){return new dd({...st(this._def),schema:this,typeName:Qe.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const n=typeof e=="function"?e:()=>e;return new S_({...st(this._def),innerType:this,defaultValue:n,typeName:Qe.ZodDefault})}brand(){return new Cke({typeName:Qe.ZodBranded,type:this,...st(this._def)})}catch(e){const n=typeof e=="function"?e:()=>e;return new w_({...st(this._def),innerType:this,catchValue:n,typeName:Qe.ZodCatch})}describe(e){const n=this.constructor;return new n({...this._def,description:e})}pipe(e){return nT.create(this,e)}readonly(){return x_.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const tke=/^c[^\s-]{8,}$/i,nke=/^[0-9a-z]+$/,rke=/^[0-9A-HJKMNP-TV-Z]{26}$/i,ake=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,ske=/^[a-z0-9_-]{21}$/i,oke=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,ike=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,lke=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,uke="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let oE;const cke=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,dke=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,fke=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,hke=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,pke=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,mke=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,CH="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",gke=new RegExp(`^${CH}$`);function EH(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:t.precision==null&&(e=`${e}(\\.\\d+)?`);const n=t.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${n}`}function vke(t){return new RegExp(`^${EH(t)}$`)}function yke(t){let e=`${CH}T${EH(t)}`;const n=[];return n.push(t.local?"Z?":"Z"),t.offset&&n.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${n.join("|")})`,new RegExp(`^${e}$`)}function bke(t,e){return!!((e==="v4"||!e)&&cke.test(t)||(e==="v6"||!e)&&fke.test(t))}function Ske(t,e){if(!oke.test(t))return!1;try{const[n]=t.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),a=JSON.parse(atob(r));return!(typeof a!="object"||a===null||"typ"in a&&a?.typ!=="JWT"||!a.alg||e&&a.alg!==e)}catch{return!1}}function wke(t,e){return!!((e==="v4"||!e)&&dke.test(t)||(e==="v6"||!e)&&hke.test(t))}class wo extends Et{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==Ie.string){const s=this._getOrReturnCtx(e);return ke(s,{code:ge.invalid_type,expected:Ie.string,received:s.parsedType}),Xe}const r=new da;let a;for(const s of this._def.checks)if(s.kind==="min")e.data.length<s.value&&(a=this._getOrReturnCtx(e,a),ke(a,{code:ge.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="max")e.data.length>s.value&&(a=this._getOrReturnCtx(e,a),ke(a,{code:ge.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),r.dirty());else if(s.kind==="length"){const i=e.data.length>s.value,u=e.data.length<s.value;(i||u)&&(a=this._getOrReturnCtx(e,a),i?ke(a,{code:ge.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):u&&ke(a,{code:ge.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),r.dirty())}else if(s.kind==="email")lke.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"email",code:ge.invalid_string,message:s.message}),r.dirty());else if(s.kind==="emoji")oE||(oE=new RegExp(uke,"u")),oE.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"emoji",code:ge.invalid_string,message:s.message}),r.dirty());else if(s.kind==="uuid")ake.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"uuid",code:ge.invalid_string,message:s.message}),r.dirty());else if(s.kind==="nanoid")ske.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"nanoid",code:ge.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid")tke.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"cuid",code:ge.invalid_string,message:s.message}),r.dirty());else if(s.kind==="cuid2")nke.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"cuid2",code:ge.invalid_string,message:s.message}),r.dirty());else if(s.kind==="ulid")rke.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"ulid",code:ge.invalid_string,message:s.message}),r.dirty());else if(s.kind==="url")try{new URL(e.data)}catch{a=this._getOrReturnCtx(e,a),ke(a,{validation:"url",code:ge.invalid_string,message:s.message}),r.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"regex",code:ge.invalid_string,message:s.message}),r.dirty())):s.kind==="trim"?e.data=e.data.trim():s.kind==="includes"?e.data.includes(s.value,s.position)||(a=this._getOrReturnCtx(e,a),ke(a,{code:ge.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),r.dirty()):s.kind==="toLowerCase"?e.data=e.data.toLowerCase():s.kind==="toUpperCase"?e.data=e.data.toUpperCase():s.kind==="startsWith"?e.data.startsWith(s.value)||(a=this._getOrReturnCtx(e,a),ke(a,{code:ge.invalid_string,validation:{startsWith:s.value},message:s.message}),r.dirty()):s.kind==="endsWith"?e.data.endsWith(s.value)||(a=this._getOrReturnCtx(e,a),ke(a,{code:ge.invalid_string,validation:{endsWith:s.value},message:s.message}),r.dirty()):s.kind==="datetime"?yke(s).test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{code:ge.invalid_string,validation:"datetime",message:s.message}),r.dirty()):s.kind==="date"?gke.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{code:ge.invalid_string,validation:"date",message:s.message}),r.dirty()):s.kind==="time"?vke(s).test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{code:ge.invalid_string,validation:"time",message:s.message}),r.dirty()):s.kind==="duration"?ike.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"duration",code:ge.invalid_string,message:s.message}),r.dirty()):s.kind==="ip"?bke(e.data,s.version)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"ip",code:ge.invalid_string,message:s.message}),r.dirty()):s.kind==="jwt"?Ske(e.data,s.alg)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"jwt",code:ge.invalid_string,message:s.message}),r.dirty()):s.kind==="cidr"?wke(e.data,s.version)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"cidr",code:ge.invalid_string,message:s.message}),r.dirty()):s.kind==="base64"?pke.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"base64",code:ge.invalid_string,message:s.message}),r.dirty()):s.kind==="base64url"?mke.test(e.data)||(a=this._getOrReturnCtx(e,a),ke(a,{validation:"base64url",code:ge.invalid_string,message:s.message}),r.dirty()):Tt.assertNever(s);return{status:r.value,value:e.data}}_regex(e,n,r){return this.refinement(a=>e.test(a),{validation:n,code:ge.invalid_string,...Ne.errToObj(r)})}_addCheck(e){return new wo({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...Ne.errToObj(e)})}url(e){return this._addCheck({kind:"url",...Ne.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...Ne.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...Ne.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...Ne.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...Ne.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...Ne.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...Ne.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...Ne.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...Ne.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...Ne.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...Ne.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...Ne.errToObj(e)})}datetime(e){return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof e?.precision>"u"?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...Ne.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return typeof e=="string"?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:typeof e?.precision>"u"?null:e?.precision,...Ne.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...Ne.errToObj(e)})}regex(e,n){return this._addCheck({kind:"regex",regex:e,...Ne.errToObj(n)})}includes(e,n){return this._addCheck({kind:"includes",value:e,position:n?.position,...Ne.errToObj(n?.message)})}startsWith(e,n){return this._addCheck({kind:"startsWith",value:e,...Ne.errToObj(n)})}endsWith(e,n){return this._addCheck({kind:"endsWith",value:e,...Ne.errToObj(n)})}min(e,n){return this._addCheck({kind:"min",value:e,...Ne.errToObj(n)})}max(e,n){return this._addCheck({kind:"max",value:e,...Ne.errToObj(n)})}length(e,n){return this._addCheck({kind:"length",value:e,...Ne.errToObj(n)})}nonempty(e){return this.min(1,Ne.errToObj(e))}trim(){return new wo({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new wo({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new wo({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isDate(){return!!this._def.checks.find(e=>e.kind==="date")}get isTime(){return!!this._def.checks.find(e=>e.kind==="time")}get isDuration(){return!!this._def.checks.find(e=>e.kind==="duration")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(e=>e.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get isCIDR(){return!!this._def.checks.find(e=>e.kind==="cidr")}get isBase64(){return!!this._def.checks.find(e=>e.kind==="base64")}get isBase64url(){return!!this._def.checks.find(e=>e.kind==="base64url")}get minLength(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxLength(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}wo.create=t=>new wo({checks:[],typeName:Qe.ZodString,coerce:t?.coerce??!1,...st(t)});function xke(t,e){const n=(t.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,a=n>r?n:r,s=Number.parseInt(t.toFixed(a).replace(".","")),i=Number.parseInt(e.toFixed(a).replace(".",""));return s%i/10**a}class au extends Et{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==Ie.number){const s=this._getOrReturnCtx(e);return ke(s,{code:ge.invalid_type,expected:Ie.number,received:s.parsedType}),Xe}let r;const a=new da;for(const s of this._def.checks)s.kind==="int"?Tt.isInteger(e.data)||(r=this._getOrReturnCtx(e,r),ke(r,{code:ge.invalid_type,expected:"integer",received:"float",message:s.message}),a.dirty()):s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(r=this._getOrReturnCtx(e,r),ke(r,{code:ge.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),a.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(r=this._getOrReturnCtx(e,r),ke(r,{code:ge.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),a.dirty()):s.kind==="multipleOf"?xke(e.data,s.value)!==0&&(r=this._getOrReturnCtx(e,r),ke(r,{code:ge.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):s.kind==="finite"?Number.isFinite(e.data)||(r=this._getOrReturnCtx(e,r),ke(r,{code:ge.not_finite,message:s.message}),a.dirty()):Tt.assertNever(s);return{status:a.value,value:e.data}}gte(e,n){return this.setLimit("min",e,!0,Ne.toString(n))}gt(e,n){return this.setLimit("min",e,!1,Ne.toString(n))}lte(e,n){return this.setLimit("max",e,!0,Ne.toString(n))}lt(e,n){return this.setLimit("max",e,!1,Ne.toString(n))}setLimit(e,n,r,a){return new au({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:Ne.toString(a)}]})}_addCheck(e){return new au({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:Ne.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Ne.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Ne.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Ne.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Ne.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:Ne.toString(n)})}finite(e){return this._addCheck({kind:"finite",message:Ne.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Ne.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Ne.toString(e)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&Tt.isInteger(e.value))}get isFinite(){let e=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(e===null||r.value<e)&&(e=r.value)}return Number.isFinite(n)&&Number.isFinite(e)}}au.create=t=>new au({checks:[],typeName:Qe.ZodNumber,coerce:t?.coerce||!1,...st(t)});class su extends Et{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==Ie.bigint)return this._getInvalidInput(e);let r;const a=new da;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?e.data<s.value:e.data<=s.value)&&(r=this._getOrReturnCtx(e,r),ke(r,{code:ge.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),a.dirty()):s.kind==="max"?(s.inclusive?e.data>s.value:e.data>=s.value)&&(r=this._getOrReturnCtx(e,r),ke(r,{code:ge.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),a.dirty()):s.kind==="multipleOf"?e.data%s.value!==BigInt(0)&&(r=this._getOrReturnCtx(e,r),ke(r,{code:ge.not_multiple_of,multipleOf:s.value,message:s.message}),a.dirty()):Tt.assertNever(s);return{status:a.value,value:e.data}}_getInvalidInput(e){const n=this._getOrReturnCtx(e);return ke(n,{code:ge.invalid_type,expected:Ie.bigint,received:n.parsedType}),Xe}gte(e,n){return this.setLimit("min",e,!0,Ne.toString(n))}gt(e,n){return this.setLimit("min",e,!1,Ne.toString(n))}lte(e,n){return this.setLimit("max",e,!0,Ne.toString(n))}lt(e,n){return this.setLimit("max",e,!1,Ne.toString(n))}setLimit(e,n,r,a){return new su({...this._def,checks:[...this._def.checks,{kind:e,value:n,inclusive:r,message:Ne.toString(a)}]})}_addCheck(e){return new su({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Ne.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Ne.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Ne.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Ne.toString(e)})}multipleOf(e,n){return this._addCheck({kind:"multipleOf",value:e,message:Ne.toString(n)})}get minValue(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e}get maxValue(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e}}su.create=t=>new su({checks:[],typeName:Qe.ZodBigInt,coerce:t?.coerce??!1,...st(t)});class D1 extends Et{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==Ie.boolean){const r=this._getOrReturnCtx(e);return ke(r,{code:ge.invalid_type,expected:Ie.boolean,received:r.parsedType}),Xe}return Pa(e.data)}}D1.create=t=>new D1({typeName:Qe.ZodBoolean,coerce:t?.coerce||!1,...st(t)});class ud extends Et{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==Ie.date){const s=this._getOrReturnCtx(e);return ke(s,{code:ge.invalid_type,expected:Ie.date,received:s.parsedType}),Xe}if(Number.isNaN(e.data.getTime())){const s=this._getOrReturnCtx(e);return ke(s,{code:ge.invalid_date}),Xe}const r=new da;let a;for(const s of this._def.checks)s.kind==="min"?e.data.getTime()<s.value&&(a=this._getOrReturnCtx(e,a),ke(a,{code:ge.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),r.dirty()):s.kind==="max"?e.data.getTime()>s.value&&(a=this._getOrReturnCtx(e,a),ke(a,{code:ge.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),r.dirty()):Tt.assertNever(s);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new ud({...this._def,checks:[...this._def.checks,e]})}min(e,n){return this._addCheck({kind:"min",value:e.getTime(),message:Ne.toString(n)})}max(e,n){return this._addCheck({kind:"max",value:e.getTime(),message:Ne.toString(n)})}get minDate(){let e=null;for(const n of this._def.checks)n.kind==="min"&&(e===null||n.value>e)&&(e=n.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const n of this._def.checks)n.kind==="max"&&(e===null||n.value<e)&&(e=n.value);return e!=null?new Date(e):null}}ud.create=t=>new ud({checks:[],coerce:t?.coerce||!1,typeName:Qe.ZodDate,...st(t)});class A9 extends Et{_parse(e){if(this._getType(e)!==Ie.symbol){const r=this._getOrReturnCtx(e);return ke(r,{code:ge.invalid_type,expected:Ie.symbol,received:r.parsedType}),Xe}return Pa(e.data)}}A9.create=t=>new A9({typeName:Qe.ZodSymbol,...st(t)});class T9 extends Et{_parse(e){if(this._getType(e)!==Ie.undefined){const r=this._getOrReturnCtx(e);return ke(r,{code:ge.invalid_type,expected:Ie.undefined,received:r.parsedType}),Xe}return Pa(e.data)}}T9.create=t=>new T9({typeName:Qe.ZodUndefined,...st(t)});class R9 extends Et{_parse(e){if(this._getType(e)!==Ie.null){const r=this._getOrReturnCtx(e);return ke(r,{code:ge.invalid_type,expected:Ie.null,received:r.parsedType}),Xe}return Pa(e.data)}}R9.create=t=>new R9({typeName:Qe.ZodNull,...st(t)});class I9 extends Et{constructor(){super(...arguments),this._any=!0}_parse(e){return Pa(e.data)}}I9.create=t=>new I9({typeName:Qe.ZodAny,...st(t)});class v_ extends Et{constructor(){super(...arguments),this._unknown=!0}_parse(e){return Pa(e.data)}}v_.create=t=>new v_({typeName:Qe.ZodUnknown,...st(t)});class Yi extends Et{_parse(e){const n=this._getOrReturnCtx(e);return ke(n,{code:ge.invalid_type,expected:Ie.never,received:n.parsedType}),Xe}}Yi.create=t=>new Yi({typeName:Qe.ZodNever,...st(t)});class O9 extends Et{_parse(e){if(this._getType(e)!==Ie.undefined){const r=this._getOrReturnCtx(e);return ke(r,{code:ge.invalid_type,expected:Ie.void,received:r.parsedType}),Xe}return Pa(e.data)}}O9.create=t=>new O9({typeName:Qe.ZodVoid,...st(t)});class Ts extends Et{_parse(e){const{ctx:n,status:r}=this._processInputParams(e),a=this._def;if(n.parsedType!==Ie.array)return ke(n,{code:ge.invalid_type,expected:Ie.array,received:n.parsedType}),Xe;if(a.exactLength!==null){const i=n.data.length>a.exactLength.value,u=n.data.length<a.exactLength.value;(i||u)&&(ke(n,{code:i?ge.too_big:ge.too_small,minimum:u?a.exactLength.value:void 0,maximum:i?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),r.dirty())}if(a.minLength!==null&&n.data.length<a.minLength.value&&(ke(n,{code:ge.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),r.dirty()),a.maxLength!==null&&n.data.length>a.maxLength.value&&(ke(n,{code:ge.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((i,u)=>a.type._parseAsync(new Ki(n,i,n.path,u)))).then(i=>da.mergeArray(r,i));const s=[...n.data].map((i,u)=>a.type._parseSync(new Ki(n,i,n.path,u)));return da.mergeArray(r,s)}get element(){return this._def.type}min(e,n){return new Ts({...this._def,minLength:{value:e,message:Ne.toString(n)}})}max(e,n){return new Ts({...this._def,maxLength:{value:e,message:Ne.toString(n)}})}length(e,n){return new Ts({...this._def,exactLength:{value:e,message:Ne.toString(n)}})}nonempty(e){return this.min(1,e)}}Ts.create=(t,e)=>new Ts({type:t,minLength:null,maxLength:null,exactLength:null,typeName:Qe.ZodArray,...st(e)});function Rc(t){if(t instanceof An){const e={};for(const n in t.shape){const r=t.shape[n];e[n]=ji.create(Rc(r))}return new An({...t._def,shape:()=>e})}else return t instanceof Ts?new Ts({...t._def,type:Rc(t.element)}):t instanceof ji?ji.create(Rc(t.unwrap())):t instanceof fd?fd.create(Rc(t.unwrap())):t instanceof ou?ou.create(t.items.map(e=>Rc(e))):t}class An extends Et{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),n=Tt.objectKeys(e);return this._cached={shape:e,keys:n},this._cached}_parse(e){if(this._getType(e)!==Ie.object){const f=this._getOrReturnCtx(e);return ke(f,{code:ge.invalid_type,expected:Ie.object,received:f.parsedType}),Xe}const{status:r,ctx:a}=this._processInputParams(e),{shape:s,keys:i}=this._getCached(),u=[];if(!(this._def.catchall instanceof Yi&&this._def.unknownKeys==="strip"))for(const f in a.data)i.includes(f)||u.push(f);const c=[];for(const f of i){const h=s[f],m=a.data[f];c.push({key:{status:"valid",value:f},value:h._parse(new Ki(a,m,a.path,f)),alwaysSet:f in a.data})}if(this._def.catchall instanceof Yi){const f=this._def.unknownKeys;if(f==="passthrough")for(const h of u)c.push({key:{status:"valid",value:h},value:{status:"valid",value:a.data[h]}});else if(f==="strict")u.length>0&&(ke(a,{code:ge.unrecognized_keys,keys:u}),r.dirty());else if(f!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const f=this._def.catchall;for(const h of u){const m=a.data[h];c.push({key:{status:"valid",value:h},value:f._parse(new Ki(a,m,a.path,h)),alwaysSet:h in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const f=[];for(const h of c){const m=await h.key,g=await h.value;f.push({key:m,value:g,alwaysSet:h.alwaysSet})}return f}).then(f=>da.mergeObjectSync(r,f)):da.mergeObjectSync(r,c)}get shape(){return this._def.shape()}strict(e){return Ne.errToObj,new An({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(n,r)=>{const a=this._def.errorMap?.(n,r).message??r.defaultError;return n.code==="unrecognized_keys"?{message:Ne.errToObj(e).message??a}:{message:a}}}:{}})}strip(){return new An({...this._def,unknownKeys:"strip"})}passthrough(){return new An({...this._def,unknownKeys:"passthrough"})}extend(e){return new An({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new An({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Qe.ZodObject})}setKey(e,n){return this.augment({[e]:n})}catchall(e){return new An({...this._def,catchall:e})}pick(e){const n={};for(const r of Tt.objectKeys(e))e[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new An({...this._def,shape:()=>n})}omit(e){const n={};for(const r of Tt.objectKeys(this.shape))e[r]||(n[r]=this.shape[r]);return new An({...this._def,shape:()=>n})}deepPartial(){return Rc(this)}partial(e){const n={};for(const r of Tt.objectKeys(this.shape)){const a=this.shape[r];e&&!e[r]?n[r]=a:n[r]=a.optional()}return new An({...this._def,shape:()=>n})}required(e){const n={};for(const r of Tt.objectKeys(this.shape))if(e&&!e[r])n[r]=this.shape[r];else{let s=this.shape[r];for(;s instanceof ji;)s=s._def.innerType;n[r]=s}return new An({...this._def,shape:()=>n})}keyof(){return _H(Tt.objectKeys(this.shape))}}An.create=(t,e)=>new An({shape:()=>t,unknownKeys:"strip",catchall:Yi.create(),typeName:Qe.ZodObject,...st(e)});An.strictCreate=(t,e)=>new An({shape:()=>t,unknownKeys:"strict",catchall:Yi.create(),typeName:Qe.ZodObject,...st(e)});An.lazycreate=(t,e)=>new An({shape:t,unknownKeys:"strip",catchall:Yi.create(),typeName:Qe.ZodObject,...st(e)});class L1 extends Et{_parse(e){const{ctx:n}=this._processInputParams(e),r=this._def.options;function a(s){for(const u of s)if(u.result.status==="valid")return u.result;for(const u of s)if(u.result.status==="dirty")return n.common.issues.push(...u.ctx.common.issues),u.result;const i=s.map(u=>new No(u.ctx.common.issues));return ke(n,{code:ge.invalid_union,unionErrors:i}),Xe}if(n.common.async)return Promise.all(r.map(async s=>{const i={...n,common:{...n.common,issues:[]},parent:null};return{result:await s._parseAsync({data:n.data,path:n.path,parent:i}),ctx:i}})).then(a);{let s;const i=[];for(const c of r){const f={...n,common:{...n.common,issues:[]},parent:null},h=c._parseSync({data:n.data,path:n.path,parent:f});if(h.status==="valid")return h;h.status==="dirty"&&!s&&(s={result:h,ctx:f}),f.common.issues.length&&i.push(f.common.issues)}if(s)return n.common.issues.push(...s.ctx.common.issues),s.result;const u=i.map(c=>new No(c));return ke(n,{code:ge.invalid_union,unionErrors:u}),Xe}}get options(){return this._def.options}}L1.create=(t,e)=>new L1({options:t,typeName:Qe.ZodUnion,...st(e)});function y_(t,e){const n=Ai(t),r=Ai(e);if(t===e)return{valid:!0,data:t};if(n===Ie.object&&r===Ie.object){const a=Tt.objectKeys(e),s=Tt.objectKeys(t).filter(u=>a.indexOf(u)!==-1),i={...t,...e};for(const u of s){const c=y_(t[u],e[u]);if(!c.valid)return{valid:!1};i[u]=c.data}return{valid:!0,data:i}}else if(n===Ie.array&&r===Ie.array){if(t.length!==e.length)return{valid:!1};const a=[];for(let s=0;s<t.length;s++){const i=t[s],u=e[s],c=y_(i,u);if(!c.valid)return{valid:!1};a.push(c.data)}return{valid:!0,data:a}}else return n===Ie.date&&r===Ie.date&&+t==+e?{valid:!0,data:t}:{valid:!1}}class U1 extends Et{_parse(e){const{status:n,ctx:r}=this._processInputParams(e),a=(s,i)=>{if(E9(s)||E9(i))return Xe;const u=y_(s.value,i.value);return u.valid?((_9(s)||_9(i))&&n.dirty(),{status:n.value,value:u.data}):(ke(r,{code:ge.invalid_intersection_types}),Xe)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([s,i])=>a(s,i)):a(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}U1.create=(t,e,n)=>new U1({left:t,right:e,typeName:Qe.ZodIntersection,...st(n)});class ou extends Et{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==Ie.array)return ke(r,{code:ge.invalid_type,expected:Ie.array,received:r.parsedType}),Xe;if(r.data.length<this._def.items.length)return ke(r,{code:ge.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Xe;!this._def.rest&&r.data.length>this._def.items.length&&(ke(r,{code:ge.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const s=[...r.data].map((i,u)=>{const c=this._def.items[u]||this._def.rest;return c?c._parse(new Ki(r,i,r.path,u)):null}).filter(i=>!!i);return r.common.async?Promise.all(s).then(i=>da.mergeArray(n,i)):da.mergeArray(n,s)}get items(){return this._def.items}rest(e){return new ou({...this._def,rest:e})}}ou.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ou({items:t,typeName:Qe.ZodTuple,rest:null,...st(e)})};class N9 extends Et{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==Ie.map)return ke(r,{code:ge.invalid_type,expected:Ie.map,received:r.parsedType}),Xe;const a=this._def.keyType,s=this._def.valueType,i=[...r.data.entries()].map(([u,c],f)=>({key:a._parse(new Ki(r,u,r.path,[f,"key"])),value:s._parse(new Ki(r,c,r.path,[f,"value"]))}));if(r.common.async){const u=new Map;return Promise.resolve().then(async()=>{for(const c of i){const f=await c.key,h=await c.value;if(f.status==="aborted"||h.status==="aborted")return Xe;(f.status==="dirty"||h.status==="dirty")&&n.dirty(),u.set(f.value,h.value)}return{status:n.value,value:u}})}else{const u=new Map;for(const c of i){const f=c.key,h=c.value;if(f.status==="aborted"||h.status==="aborted")return Xe;(f.status==="dirty"||h.status==="dirty")&&n.dirty(),u.set(f.value,h.value)}return{status:n.value,value:u}}}}N9.create=(t,e,n)=>new N9({valueType:e,keyType:t,typeName:Qe.ZodMap,...st(n)});class ip extends Et{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.parsedType!==Ie.set)return ke(r,{code:ge.invalid_type,expected:Ie.set,received:r.parsedType}),Xe;const a=this._def;a.minSize!==null&&r.data.size<a.minSize.value&&(ke(r,{code:ge.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),n.dirty()),a.maxSize!==null&&r.data.size>a.maxSize.value&&(ke(r,{code:ge.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),n.dirty());const s=this._def.valueType;function i(c){const f=new Set;for(const h of c){if(h.status==="aborted")return Xe;h.status==="dirty"&&n.dirty(),f.add(h.value)}return{status:n.value,value:f}}const u=[...r.data.values()].map((c,f)=>s._parse(new Ki(r,c,r.path,f)));return r.common.async?Promise.all(u).then(c=>i(c)):i(u)}min(e,n){return new ip({...this._def,minSize:{value:e,message:Ne.toString(n)}})}max(e,n){return new ip({...this._def,maxSize:{value:e,message:Ne.toString(n)}})}size(e,n){return this.min(e,n).max(e,n)}nonempty(e){return this.min(1,e)}}ip.create=(t,e)=>new ip({valueType:t,minSize:null,maxSize:null,typeName:Qe.ZodSet,...st(e)});class M9 extends Et{get schema(){return this._def.getter()}_parse(e){const{ctx:n}=this._processInputParams(e);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}M9.create=(t,e)=>new M9({getter:t,typeName:Qe.ZodLazy,...st(e)});class b_ extends Et{_parse(e){if(e.data!==this._def.value){const n=this._getOrReturnCtx(e);return ke(n,{received:n.data,code:ge.invalid_literal,expected:this._def.value}),Xe}return{status:"valid",value:e.data}}get value(){return this._def.value}}b_.create=(t,e)=>new b_({value:t,typeName:Qe.ZodLiteral,...st(e)});function _H(t,e){return new cd({values:t,typeName:Qe.ZodEnum,...st(e)})}class cd extends Et{_parse(e){if(typeof e.data!="string"){const n=this._getOrReturnCtx(e),r=this._def.values;return ke(n,{expected:Tt.joinValues(r),received:n.parsedType,code:ge.invalid_type}),Xe}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const n=this._getOrReturnCtx(e),r=this._def.values;return ke(n,{received:n.data,code:ge.invalid_enum_value,options:r}),Xe}return Pa(e.data)}get options(){return this._def.values}get enum(){const e={};for(const n of this._def.values)e[n]=n;return e}get Values(){const e={};for(const n of this._def.values)e[n]=n;return e}get Enum(){const e={};for(const n of this._def.values)e[n]=n;return e}extract(e,n=this._def){return cd.create(e,{...this._def,...n})}exclude(e,n=this._def){return cd.create(this.options.filter(r=>!e.includes(r)),{...this._def,...n})}}cd.create=_H;class P9 extends Et{_parse(e){const n=Tt.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==Ie.string&&r.parsedType!==Ie.number){const a=Tt.objectValues(n);return ke(r,{expected:Tt.joinValues(a),received:r.parsedType,code:ge.invalid_type}),Xe}if(this._cache||(this._cache=new Set(Tt.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const a=Tt.objectValues(n);return ke(r,{received:r.data,code:ge.invalid_enum_value,options:a}),Xe}return Pa(e.data)}get enum(){return this._def.values}}P9.create=(t,e)=>new P9({values:t,typeName:Qe.ZodNativeEnum,...st(e)});class z1 extends Et{unwrap(){return this._def.type}_parse(e){const{ctx:n}=this._processInputParams(e);if(n.parsedType!==Ie.promise&&n.common.async===!1)return ke(n,{code:ge.invalid_type,expected:Ie.promise,received:n.parsedType}),Xe;const r=n.parsedType===Ie.promise?n.data:Promise.resolve(n.data);return Pa(r.then(a=>this._def.type.parseAsync(a,{path:n.path,errorMap:n.common.contextualErrorMap})))}}z1.create=(t,e)=>new z1({type:t,typeName:Qe.ZodPromise,...st(e)});class dd extends Et{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Qe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:n,ctx:r}=this._processInputParams(e),a=this._def.effect||null,s={addIssue:i=>{ke(r,i),i.fatal?n.abort():n.dirty()},get path(){return r.path}};if(s.addIssue=s.addIssue.bind(s),a.type==="preprocess"){const i=a.transform(r.data,s);if(r.common.async)return Promise.resolve(i).then(async u=>{if(n.value==="aborted")return Xe;const c=await this._def.schema._parseAsync({data:u,path:r.path,parent:r});return c.status==="aborted"?Xe:c.status==="dirty"||n.value==="dirty"?ph(c.value):c});{if(n.value==="aborted")return Xe;const u=this._def.schema._parseSync({data:i,path:r.path,parent:r});return u.status==="aborted"?Xe:u.status==="dirty"||n.value==="dirty"?ph(u.value):u}}if(a.type==="refinement"){const i=u=>{const c=a.refinement(u,s);if(r.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return u};if(r.common.async===!1){const u=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return u.status==="aborted"?Xe:(u.status==="dirty"&&n.dirty(),i(u.value),{status:n.value,value:u.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(u=>u.status==="aborted"?Xe:(u.status==="dirty"&&n.dirty(),i(u.value).then(()=>({status:n.value,value:u.value}))))}if(a.type==="transform")if(r.common.async===!1){const i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!ld(i))return Xe;const u=a.transform(i.value,s);if(u instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:u}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(i=>ld(i)?Promise.resolve(a.transform(i.value,s)).then(u=>({status:n.value,value:u})):Xe);Tt.assertNever(a)}}dd.create=(t,e,n)=>new dd({schema:t,typeName:Qe.ZodEffects,effect:e,...st(n)});dd.createWithPreprocess=(t,e,n)=>new dd({schema:e,effect:{type:"preprocess",transform:t},typeName:Qe.ZodEffects,...st(n)});class ji extends Et{_parse(e){return this._getType(e)===Ie.undefined?Pa(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ji.create=(t,e)=>new ji({innerType:t,typeName:Qe.ZodOptional,...st(e)});class fd extends Et{_parse(e){return this._getType(e)===Ie.null?Pa(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}fd.create=(t,e)=>new fd({innerType:t,typeName:Qe.ZodNullable,...st(e)});class S_ extends Et{_parse(e){const{ctx:n}=this._processInputParams(e);let r=n.data;return n.parsedType===Ie.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}S_.create=(t,e)=>new S_({innerType:t,typeName:Qe.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...st(e)});class w_ extends Et{_parse(e){const{ctx:n}=this._processInputParams(e),r={...n,common:{...n.common,issues:[]}},a=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return P1(a)?a.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new No(r.common.issues)},input:r.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new No(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}w_.create=(t,e)=>new w_({innerType:t,typeName:Qe.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...st(e)});class D9 extends Et{_parse(e){if(this._getType(e)!==Ie.nan){const r=this._getOrReturnCtx(e);return ke(r,{code:ge.invalid_type,expected:Ie.nan,received:r.parsedType}),Xe}return{status:"valid",value:e.data}}}D9.create=t=>new D9({typeName:Qe.ZodNaN,...st(t)});class Cke extends Et{_parse(e){const{ctx:n}=this._processInputParams(e),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class nT extends Et{_parse(e){const{status:n,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?Xe:s.status==="dirty"?(n.dirty(),ph(s.value)):this._def.out._parseAsync({data:s.value,path:r.path,parent:r})})();{const a=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?Xe:a.status==="dirty"?(n.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:r.path,parent:r})}}static create(e,n){return new nT({in:e,out:n,typeName:Qe.ZodPipeline})}}class x_ extends Et{_parse(e){const n=this._def.innerType._parse(e),r=a=>(ld(a)&&(a.value=Object.freeze(a.value)),a);return P1(n)?n.then(a=>r(a)):r(n)}unwrap(){return this._def.innerType}}x_.create=(t,e)=>new x_({innerType:t,typeName:Qe.ZodReadonly,...st(e)});var Qe;(function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"})(Qe||(Qe={}));const _r=wo.create;au.create;su.create;const Eke=D1.create;ud.create;const kH=v_.create;Yi.create;Ts.create;const Td=An.create;L1.create;U1.create;ou.create;const _ke=b_.create,kke=cd.create;z1.create;ji.create;fd.create;const u4e={string:(t=>wo.create({...t,coerce:!0})),number:(t=>au.create({...t,coerce:!0})),boolean:(t=>D1.create({...t,coerce:!0})),bigint:(t=>su.create({...t,coerce:!0})),date:(t=>ud.create({...t,coerce:!0}))},Ake=kke(["match","properties","folder","rule","name","review","run"]),Tke=t=>{const e=Ake.safeParse(t);return e.success?e.data:void 0},Rke=_ke("search"),Ike=t=>{const e=Rke.safeParse(t);return e.success?e.data:void 0},Oke=kH().transform(Ike),Nke=()=>$v({from:"/mail",select:t=>t.wizardFrom}),Mke=kH().transform(Tke),Pke=(t,e)=>vp(t,e)+1,AH=()=>$v({from:"/mail",select:t=>t.wizard}),Dke=()=>{const t=Ep();return _.useCallback((e,n)=>{t({to:".",search:r=>({...r,wizard:e,wizardFrom:n})})},[t])},c4e=()=>{const t=AH(),e=Dke(),[n,r]=_.useState("organize"),a=_.useCallback(i=>{r(i),e("match")},[e]),s=_.useCallback(()=>{e("properties","search")},[e]);return{verb:n,start:a,startFromSearch:s,isOpen:t!==void 0}},d4e=t=>{const e=Kr(),n=Ep(),r=AH(),a=Nke(),s=_.useRef(r!==void 0),i=_.useRef(a),u=_.useRef(void 0);_.useEffect(()=>{u.current=void 0},[r]),_.useEffect(()=>{if(!s.current)return;s.current=!1;const m=i.current;(async()=>(await n({to:".",search:g=>({...g,wizard:void 0,wizardFrom:void 0}),replace:!0}),await n({to:".",search:g=>({...g,wizard:t,wizardFrom:m})})))()},[t,n]);const c=_.useCallback(m=>{m===r||u.current===m||(u.current=m,n({to:".",search:g=>({...g,wizard:m})}))},[n,r]),f=_.useCallback(()=>{e.history.back()},[e]),h=_.useCallback((m,g)=>{e.history.go(-Pke(m,g))},[e]);return{step:r,goToStep:c,goBack:f,closeWizard:h}},Lke=ev().apiUrl;Pe.setConfig({baseUrl:Lke,fetch:SL});Pe.interceptors.error.use((t,e)=>{if(t instanceof qE||!e)return t;const n=t,r=n&&typeof n=="object"&&"message"in n?String(n.message):`Request failed with status ${e.status}`;return new qE(r,e.status,n)});const iE={Inbox:"inbox",Drafts:"drafts",Sent:"sent",Archive:"archive",Junk:"junk",Trash:"trash",All:"all",Flagged:"flagged"},f4e={inbox:"Inbox",drafts:"Drafts",sent:"Sent",archive:"Archive",junk:"Junk",trash:"Trash",all:"All",flagged:"Flagged"},L9=["inbox","flagged","drafts","sent","archive","all","junk","trash"];function Uke(t){const e=new Map,n=[...t].sort((r,a)=>L9.indexOf(iE[r.role])-L9.indexOf(iE[a.role]));for(const r of n){if(!r.mailboxId||e.has(r.mailboxId))continue;const a=iE[r.role];a&&e.set(r.mailboxId,a)}return e}const zke=t=>{const e=t.split("/");return e[e.length-1]||t};function h4e(t,e,n){const r=t.displayNameOverride?.trim();if(r)return r;const a=zke(t.fullPath);return!e||!n?a:n(`sidebar.${e}`,a)}const jke=new Set(["sent","drafts","trash"]),p4e=t=>t===void 0||!jke.has(t),Fke=new Map;function m4e(t){const e=new Map;for(const n of t){const r=Uke(n.folderAppointments);for(const[a,s]of r)e.set(a,{role:s});for(const a of n.mailboxes){const s=r.get(a.mailboxId);e.set(a.mailboxId,{...s?{role:s}:{},providerPath:a.fullPath})}}return e}function g4e(t,e){const n=e[0];if(!t)return n?{mailboxId:n}:{};for(const a of e){const s=t.get(a);if(s&&Une(s)!==void 0)return{mailboxId:a,folder:s}}if(!n)return{};const r=t.get(n);return{mailboxId:n,...r?{folder:r}:{}}}const Bke=_.createContext(null),v4e=()=>_.useContext(Bke)??{accounts:[],mailboxNameIndex:new Map,accountNameIndex:new Map,resultFolderIndex:Fke,searchQuery:"",searchInput:"",searchViewKey:"",onSearchChange:()=>{},onSearchClear:()=>{},onSearchClearQuery:()=>{},intelligenceOpen:!1,onToggleIntelligence:()=>{},onSetIntelligenceOpen:()=>{}},$ke=()=>zn(()=>import("./mail-DhwMAvfX.js").then(t=>t.m),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])),Hke=Td({q:_r().optional(),wizard:Mke,wizardFrom:Oke}),qke=ur("/mail")({loader:({context:{queryClient:t}})=>{t.prefetchQuery(r_e()),t.prefetchQuery({...p_e(),staleTime:6e4})},component:Wn($ke,"component"),validateSearch:Hke}),Wke=()=>zn(()=>import("./onboarding--Y66ggRk.js"),__vite__mapDeps([15,16,3,5])),Vke=ur("/onboarding")({component:Wn(Wke,"component")});function Gke(){const t=D_e(),e=t?.surface.status==="ready"&&t.surface.section.status==="available";return C.jsx(Mre,{show:e,children:C.jsx($J,{className:"size-4"})})}const Kke=()=>zn(()=>import("./settings-DQyrs680.js"),[]),y4e=[{id:"accounts",label:"Accounts",icon:C.jsx(RL,{className:"size-4"})},{id:"senders",label:"Senders & Rules",icon:C.jsx(BJ,{className:"size-4"})},{id:"folders",label:"Folder roles",icon:C.jsx(OJ,{className:"size-4"})},{id:"filters",label:"Filters",icon:C.jsx(TJ,{className:"size-4"})},{id:"labels",label:"Labels",icon:C.jsx(jJ,{className:"size-4"})},{id:"appearance",label:"Appearance",icon:C.jsx(PJ,{className:"size-4"})},{id:"advanced",label:"Advanced",icon:C.jsx(Gke,{})}],b4e={accounts:"/settings/accounts",senders:"/settings/senders",folders:"/settings/folders",filters:"/settings/filters",labels:"/settings/labels",appearance:"/settings/appearance",advanced:"/settings/advanced"},Yke=ur("/settings")({component:Wn(Kke,"component")}),Zke=()=>zn(()=>import("./index--gQY1RVJ.js"),__vite__mapDeps([17,9])),Xke=()=>zn(()=>import("./index-DtqBFgK5.js"),[]),Qke=Td({selectedMessageId:_r().optional(),selectedThreadId:_r().optional(),selectedMailboxId:_r().optional(),q:_r().optional()}),Jke=ur("/mail/")({component:Wn(Xke,"component"),validateSearch:Qke,errorComponent:Wn(Zke,"errorComponent")}),eAe=()=>zn(()=>import("./_mailboxId-DtqBFgK5.js"),[]),tAe=Td({selectedMessageId:_r().optional(),selectedThreadId:_r().optional(),q:_r().optional()}),nAe=ur("/mail/$mailboxId")({component:Wn(eAe,"component"),validateSearch:tAe}),rAe=()=>zn(()=>import("./flagged-W7MuVZk5.js"),__vite__mapDeps([18,9])),aAe=()=>zn(()=>import("./flagged-DtqBFgK5.js"),[]),sAe=Td({selectedMessageId:_r().optional(),q:_r().optional()}),oAe=ur("/mail/flagged")({component:Wn(aAe,"component"),validateSearch:sAe,errorComponent:Wn(rAe,"errorComponent")}),iAe=()=>zn(()=>import("./outbox-DtqBFgK5.js"),[]),lAe=Td({selectedOutboxMessageId:_r().optional(),q:_r().optional()}),uAe=ur("/mail/outbox")({component:Wn(iAe,"component"),validateSearch:lAe}),cAe=()=>zn(()=>import("./index-BkBESeqp.js"),[]),dAe=ur("/settings/")({component:Wn(cAe,"component")}),fAe=()=>zn(()=>import("./accounts-CXtqI6gg.js"),__vite__mapDeps([19,6,20,2,16,3,5,21,9,10])),hAe=Td({editAccountId:_r().optional(),focusSmtp:Eke().optional(),connected:_r().optional(),oauthError:_r().optional()}),pAe=ur("/settings/accounts")({component:Wn(fAe,"component"),validateSearch:hAe}),mAe=()=>zn(()=>import("./advanced-HEzfX-m-.js"),__vite__mapDeps([22,20,2,21,4,14])),gAe=ur("/settings/advanced")({component:Wn(mAe,"component")}),vAe=()=>zn(()=>import("./appearance-B5Ib2wg_.js"),__vite__mapDeps([23,20,2])),yAe=ur("/settings/appearance")({component:Wn(vAe,"component")}),bAe=()=>zn(()=>import("./filters-CXOGLAj6.js"),__vite__mapDeps([24,20,2,8,11,12,14,9])),SAe=ur("/settings/filters")({component:Wn(bAe,"component")}),wAe=()=>zn(()=>import("./folders-BwjbOCXd.js"),__vite__mapDeps([25,1,20,2,11,9])),xAe=ur("/settings/folders")({component:Wn(wAe,"component")}),CAe=()=>zn(()=>import("./labels-CImdvv7n.js"),__vite__mapDeps([26,20,2,13,9,12])),EAe=ur("/settings/labels")({component:Wn(CAe,"component")}),_Ae=()=>zn(()=>import("./senders-Gxdkad72.js"),__vite__mapDeps([27,3,20,2,9,7,10])),kAe=ur("/settings/senders")({component:Wn(_Ae,"component")}),AAe=()=>zn(()=>import("./suggested-vips-BH2WouM-.js"),[]),TAe=ur("/settings/suggested-vips")({component:Wn(AAe,"component")}),RAe=X_e.update({id:"/",path:"/",getParentRoute:()=>Np}),Mp=qke.update({id:"/mail",path:"/mail",getParentRoute:()=>Np}),IAe=Vke.update({id:"/onboarding",path:"/onboarding",getParentRoute:()=>Np}),js=Yke.update({id:"/settings",path:"/settings",getParentRoute:()=>Np}),OAe=Jke.update({id:"/",path:"/",getParentRoute:()=>Mp}),NAe=nAe.update({id:"/$mailboxId",path:"/$mailboxId",getParentRoute:()=>Mp}),MAe=oAe.update({id:"/flagged",path:"/flagged",getParentRoute:()=>Mp}),PAe=uAe.update({id:"/outbox",path:"/outbox",getParentRoute:()=>Mp}),DAe=dAe.update({id:"/",path:"/",getParentRoute:()=>js}),LAe=pAe.update({id:"/accounts",path:"/accounts",getParentRoute:()=>js}),UAe=gAe.update({id:"/advanced",path:"/advanced",getParentRoute:()=>js}),zAe=yAe.update({id:"/appearance",path:"/appearance",getParentRoute:()=>js}),jAe=SAe.update({id:"/filters",path:"/filters",getParentRoute:()=>js}),FAe=xAe.update({id:"/folders",path:"/folders",getParentRoute:()=>js}),BAe=EAe.update({id:"/labels",path:"/labels",getParentRoute:()=>js}),$Ae=kAe.update({id:"/senders",path:"/senders",getParentRoute:()=>js}),HAe=TAe.update({id:"/suggested-vips",path:"/suggested-vips",getParentRoute:()=>js}),qAe={MailMailboxIdRoute:NAe,MailFlaggedRoute:MAe,MailOutboxRoute:PAe,MailIndexRoute:OAe},WAe=Mp._addFileChildren(qAe),VAe={SettingsAccountsRoute:LAe,SettingsAdvancedRoute:UAe,SettingsAppearanceRoute:zAe,SettingsFiltersRoute:jAe,SettingsFoldersRoute:FAe,SettingsLabelsRoute:BAe,SettingsSendersRoute:$Ae,SettingsSuggestedVipsRoute:HAe,SettingsIndexRoute:DAe},GAe=js._addFileChildren(VAe),KAe={IndexRoute:RAe,MailRoute:WAe,OnboardingRoute:IAe,SettingsRoute:GAe},YAe=Np._addFileChildren(KAe)._addFileTypes(),ZAe=(t,e)=>{const n=U1e({routeTree:YAe,context:{queryClient:t},defaultPreload:"intent"});return n.subscribe("onResolved",r=>{e.recordPageView(r.toLocation.pathname),cae(r.toLocation.pathname)}),n},Ve=t=>typeof t=="string",eh=()=>{let t,e;const n=new Promise((r,a)=>{t=r,e=a});return n.resolve=t,n.reject=e,n},U9=t=>t==null?"":""+t,XAe=(t,e,n)=>{t.forEach(r=>{e[r]&&(n[r]=e[r])})},QAe=/###/g,z9=t=>t&&t.indexOf("###")>-1?t.replace(QAe,"."):t,j9=t=>!t||Ve(t),Rh=(t,e,n)=>{const r=Ve(e)?e.split("."):e;let a=0;for(;a<r.length-1;){if(j9(t))return{};const s=z9(r[a]);!t[s]&&n&&(t[s]=new n),Object.prototype.hasOwnProperty.call(t,s)?t=t[s]:t={},++a}return j9(t)?{}:{obj:t,k:z9(r[a])}},F9=(t,e,n)=>{const{obj:r,k:a}=Rh(t,e,Object);if(r!==void 0||e.length===1){r[a]=n;return}let s=e[e.length-1],i=e.slice(0,e.length-1),u=Rh(t,i,Object);for(;u.obj===void 0&&i.length;)s=`${i[i.length-1]}.${s}`,i=i.slice(0,i.length-1),u=Rh(t,i,Object),u?.obj&&typeof u.obj[`${u.k}.${s}`]<"u"&&(u.obj=void 0);u.obj[`${u.k}.${s}`]=n},JAe=(t,e,n,r)=>{const{obj:a,k:s}=Rh(t,e,Object);a[s]=a[s]||[],a[s].push(n)},j1=(t,e)=>{const{obj:n,k:r}=Rh(t,e);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},eTe=(t,e,n)=>{const r=j1(t,n);return r!==void 0?r:j1(e,n)},TH=(t,e,n)=>{for(const r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?Ve(t[r])||t[r]instanceof String||Ve(e[r])||e[r]instanceof String?n&&(t[r]=e[r]):TH(t[r],e[r],n):t[r]=e[r]);return t},vc=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var tTe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const nTe=t=>Ve(t)?t.replace(/[&<>"'\/]/g,e=>tTe[e]):t;class rTe{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}const aTe=[" ",",","?","!",";"],sTe=new rTe(20),oTe=(t,e,n)=>{e=e||"",n=n||"";const r=aTe.filter(i=>e.indexOf(i)<0&&n.indexOf(i)<0);if(r.length===0)return!0;const a=sTe.getRegExp(`(${r.map(i=>i==="?"?"\\?":i).join("|")})`);let s=!a.test(t);if(!s){const i=t.indexOf(n);i>0&&!a.test(t.substring(0,i))&&(s=!0)}return s},C_=function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!t)return;if(t[e])return Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0;const r=e.split(n);let a=t;for(let s=0;s<r.length;){if(!a||typeof a!="object")return;let i,u="";for(let c=s;c<r.length;++c)if(c!==s&&(u+=n),u+=r[c],i=a[u],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&c<r.length-1)continue;s+=c-s+1;break}a=i}return a},F1=t=>t?.replace("_","-"),iTe={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console?.[t]?.apply?.(console,e)}};class B1{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,n)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||iTe,this.options=n,this.debug=n.debug}log(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,r,a){return a&&!this.debug?null:(Ve(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new B1(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new B1(this.logger,e)}}var As=new B1;class ly{constructor(){this.observers={}}on(e,n){return e.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const a=this.observers[r].get(n)||0;this.observers[r].set(n,a+1)}),this}off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(i=>{let[u,c]=i;for(let f=0;f<c;f++)u(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[u,c]=i;for(let f=0;f<c;f++)u.apply(u,[e,...r])})}}class B9 extends ly{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,i=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let u;e.indexOf(".")>-1?u=e.split("."):(u=[e,n],r&&(Array.isArray(r)?u.push(...r):Ve(r)&&s?u.push(...r.split(s)):u.push(r)));const c=j1(this.data,u);return!c&&!n&&!r&&e.indexOf(".")>-1&&(e=u[0],n=u[1],r=u.slice(2).join(".")),c||!i||!Ve(r)?c:C_(this.data?.[e]?.[n],r,s)}addResource(e,n,r,a){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let u=[e,n];r&&(u=u.concat(i?r.split(i):r)),e.indexOf(".")>-1&&(u=e.split("."),a=n,n=u[1]),this.addNamespaces(n),F9(this.data,u,a),s.silent||this.emit("added",e,n,r,a)}addResources(e,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const s in r)(Ve(r[s])||Array.isArray(r[s]))&&this.addResource(e,n,s,r[s],{silent:!0});a.silent||this.emit("added",e,n,r)}addResourceBundle(e,n,r,a,s){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},u=[e,n];e.indexOf(".")>-1&&(u=e.split("."),a=r,r=n,n=u[1]),this.addNamespaces(n);let c=j1(this.data,u)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),a?TH(c,r,s):c={...c,...r},F9(this.data,u,c),i.silent||this.emit("added",e,n,r)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(a=>n[a]&&Object.keys(n[a]).length>0)}toJSON(){return this.data}}var RH={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,r,a){return t.forEach(s=>{e=this.processors[s]?.process(e,n,r,a)??e}),e}};const $9={},H9=t=>!Ve(t)&&typeof t!="boolean"&&typeof t!="number";class $1 extends ly{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),XAe(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=As.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};return e==null?!1:this.resolve(e,n)?.res!==void 0}extractFromKey(e,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let s=n.ns||this.options.defaultNS||[];const i=r&&e.indexOf(r)>-1,u=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!oTe(e,r,a);if(i&&!u){const c=e.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:e,namespaces:Ve(s)?[s]:s};const f=e.split(r);(r!==a||r===a&&this.options.ns.indexOf(f[0])>-1)&&(s=f.shift()),e=f.join(a)}return{key:e,namespaces:Ve(s)?[s]:s}}translate(e,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const a=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:i,namespaces:u}=this.extractFromKey(e[e.length-1],n),c=u[u.length-1],f=n.lng||this.language,h=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f?.toLowerCase()==="cimode"){if(h){const z=n.nsSeparator||this.options.nsSeparator;return a?{res:`${c}${z}${i}`,usedKey:i,exactUsedKey:i,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${z}${i}`}return a?{res:i,usedKey:i,exactUsedKey:i,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:i}const m=this.resolve(e,n);let g=m?.res;const y=m?.usedKey||i,S=m?.exactUsedKey||i,w=["[object Number]","[object Function]","[object RegExp]"],x=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject,k=n.count!==void 0&&!Ve(n.count),A=$1.hasDefaultValue(n),R=k?this.pluralResolver.getSuffix(f,n.count,n):"",N=n.ordinal&&k?this.pluralResolver.getSuffix(f,n.count,{ordinal:!1}):"",O=k&&!n.ordinal&&n.count===0,I=O&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${R}`]||n[`defaultValue${N}`]||n.defaultValue;let P=g;E&&!g&&A&&(P=I);const U=H9(P),q=Object.prototype.toString.apply(P);if(E&&P&&U&&w.indexOf(q)<0&&!(Ve(x)&&Array.isArray(P))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const z=this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,P,{...n,ns:u}):`key '${i} (${this.language})' returned an object instead of string.`;return a?(m.res=z,m.usedParams=this.getUsedParamsDetails(n),m):z}if(s){const z=Array.isArray(P),j=z?[]:{},H=z?S:y;for(const W in P)if(Object.prototype.hasOwnProperty.call(P,W)){const se=`${H}${s}${W}`;A&&!g?j[W]=this.translate(se,{...n,defaultValue:H9(I)?I[W]:void 0,joinArrays:!1,ns:u}):j[W]=this.translate(se,{...n,joinArrays:!1,ns:u}),j[W]===se&&(j[W]=P[W])}g=j}}else if(E&&Ve(x)&&Array.isArray(g))g=g.join(x),g&&(g=this.extendTranslation(g,e,n,r));else{let z=!1,j=!1;!this.isValidLookup(g)&&A&&(z=!0,g=I),this.isValidLookup(g)||(j=!0,g=i);const W=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&j?void 0:g,se=A&&I!==g&&this.options.updateMissing;if(j||z||se){if(this.logger.log(se?"updateKey":"missingKey",f,c,i,se?I:g),s){const he=this.resolve(i,{...n,keySeparator:!1});he&&he.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let $=[];const Q=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Q&&Q[0])for(let he=0;he<Q.length;he++)$.push(Q[he]);else this.options.saveMissingTo==="all"?$=this.languageUtils.toResolveHierarchy(n.lng||this.language):$.push(n.lng||this.language);const re=(he,xe,D)=>{const Z=A&&D!==g?D:W;this.options.missingKeyHandler?this.options.missingKeyHandler(he,c,xe,Z,se,n):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(he,c,xe,Z,se,n),this.emit("missingKey",he,c,xe,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&k?$.forEach(he=>{const xe=this.pluralResolver.getSuffixes(he,n);O&&n[`defaultValue${this.options.pluralSeparator}zero`]&&xe.indexOf(`${this.options.pluralSeparator}zero`)<0&&xe.push(`${this.options.pluralSeparator}zero`),xe.forEach(D=>{re([he],i+D,n[`defaultValue${D}`]||I)})}):re($,i,I))}g=this.extendTranslation(g,e,n,m,r),j&&g===i&&this.options.appendNamespaceToMissingKey&&(g=`${c}:${i}`),(j||z)&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${i}`:i,z?g:void 0))}return a?(m.res=g,m.usedParams=this.getUsedParamsDetails(n),m):g}extendTranslation(e,n,r,a,s){var i=this;if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const f=Ve(e)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let h;if(f){const g=e.match(this.interpolator.nestingRegexp);h=g&&g.length}let m=r.replace&&!Ve(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),e=this.interpolator.interpolate(e,m,r.lng||this.language||a.usedLng,r),f){const g=e.match(this.interpolator.nestingRegexp),y=g&&g.length;h<y&&(r.nest=!1)}!r.lng&&a&&a.res&&(r.lng=this.language||a.usedLng),r.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var g=arguments.length,y=new Array(g),S=0;S<g;S++)y[S]=arguments[S];return s?.[0]===y[0]&&!r.context?(i.logger.warn(`It seems you are nesting recursively key: ${y[0]} in key: ${n[0]}`),null):i.translate(...y,n)},r)),r.interpolation&&this.interpolator.reset()}const u=r.postProcess||this.options.postProcess,c=Ve(u)?[u]:u;return e!=null&&c?.length&&r.applyPostProcessor!==!1&&(e=RH.handle(c,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,a,s,i,u;return Ve(e)&&(e=[e]),e.forEach(c=>{if(this.isValidLookup(r))return;const f=this.extractFromKey(c,n),h=f.key;a=h;let m=f.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));const g=n.count!==void 0&&!Ve(n.count),y=g&&!n.ordinal&&n.count===0,S=n.context!==void 0&&(Ve(n.context)||typeof n.context=="number")&&n.context!=="",w=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(x=>{this.isValidLookup(r)||(u=x,!$9[`${w[0]}-${x}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(u)&&($9[`${w[0]}-${x}`]=!0,this.logger.warn(`key "${a}" for languages "${w.join(", ")}" won't get resolved as namespace "${u}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),w.forEach(E=>{if(this.isValidLookup(r))return;i=E;const k=[h];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(k,h,E,x,n);else{let R;g&&(R=this.pluralResolver.getSuffix(E,n.count,n));const N=`${this.options.pluralSeparator}zero`,O=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(g&&(k.push(h+R),n.ordinal&&R.indexOf(O)===0&&k.push(h+R.replace(O,this.options.pluralSeparator)),y&&k.push(h+N)),S){const I=`${h}${this.options.contextSeparator}${n.context}`;k.push(I),g&&(k.push(I+R),n.ordinal&&R.indexOf(O)===0&&k.push(I+R.replace(O,this.options.pluralSeparator)),y&&k.push(I+N))}}let A;for(;A=k.pop();)this.isValidLookup(r)||(s=A,r=this.getResource(E,x,A,n))}))})}),{res:r,usedKey:a,exactUsedKey:s,usedLng:i,usedNS:u}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,n,r,a):this.resourceStore.getResource(e,n,r,a)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&!Ve(e.replace);let a=r?e.replace:e;if(r&&typeof e.count<"u"&&(a.count=e.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!r){a={...a};for(const s of n)delete a[s]}return a}static hasDefaultValue(e){const n="defaultValue";for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&n===r.substring(0,n.length)&&e[r]!==void 0)return!0;return!1}}class q9{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=As.create("languageUtils")}getScriptPartFromCode(e){if(e=F1(e),!e||e.indexOf("-")<0)return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=F1(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(Ve(e)&&e.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(e)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(r=>{if(n)return;const a=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(a))&&(n=a)}),!n&&this.options.supportedLngs&&e.forEach(r=>{if(n)return;const a=this.getLanguagePartFromCode(r);if(this.isSupportedCode(a))return n=a;n=this.options.supportedLngs.find(s=>{if(s===a)return s;if(!(s.indexOf("-")<0&&a.indexOf("-")<0)&&(s.indexOf("-")>0&&a.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===a||s.indexOf(a)===0&&a.length>1))return s})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),Ve(e)&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}toResolveHierarchy(e,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],e),a=[],s=i=>{i&&(this.isSupportedCode(i)?a.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return Ve(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(e))):Ve(e)&&s(this.formatLanguageCode(e)),r.forEach(i=>{a.indexOf(i)<0&&s(this.formatLanguageCode(i))}),a}}const W9={zero:0,one:1,two:2,few:3,many:4,other:5},V9={select:t=>t===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class lTe{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=n,this.logger=As.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,n){this.rules[e]=n}clearCache(){this.pluralRulesCache={}}getRule(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=F1(e==="dev"?"en":e),a=n.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:r,type:a});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let i;try{i=new Intl.PluralRules(r,{type:a})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),V9;if(!e.match(/-|_/))return V9;const c=this.languageUtils.getLanguagePartFromCode(e);i=this.getRule(c,n)}return this.pluralRulesCache[s]=i,i}needsPlural(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(e,n);return r||(r=this.getRule("dev",n)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,r).map(a=>`${n}${a}`)}getSuffixes(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(e,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((a,s)=>W9[a]-W9[s]).map(a=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${a}`):[]}getSuffix(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const a=this.getRule(e,r);return a?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${a.select(n)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",n,r))}}const G9=function(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=eTe(t,e,n);return!s&&a&&Ve(n)&&(s=C_(t,n,r),s===void 0&&(s=C_(e,n,r))),s},lE=t=>t.replace(/\$/g,"$$$$");class uTe{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=As.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(n=>n),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:a,prefix:s,prefixEscaped:i,suffix:u,suffixEscaped:c,formatSeparator:f,unescapeSuffix:h,unescapePrefix:m,nestingPrefix:g,nestingPrefixEscaped:y,nestingSuffix:S,nestingSuffixEscaped:w,nestingOptionsSeparator:x,maxReplaces:E,alwaysFormat:k}=e.interpolation;this.escape=n!==void 0?n:nTe,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=s?vc(s):i||"{{",this.suffix=u?vc(u):c||"}}",this.formatSeparator=f||",",this.unescapePrefix=h?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":h||"",this.nestingPrefix=g?vc(g):y||vc("$t("),this.nestingSuffix=S?vc(S):w||vc(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=E||1e3,this.alwaysFormat=k!==void 0?k:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,r)=>n?.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,n,r,a){let s,i,u;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},f=y=>{if(y.indexOf(this.formatSeparator)<0){const E=G9(n,c,y,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(E,void 0,r,{...a,...n,interpolationkey:y}):E}const S=y.split(this.formatSeparator),w=S.shift().trim(),x=S.join(this.formatSeparator).trim();return this.format(G9(n,c,w,this.options.keySeparator,this.options.ignoreJSONStructure),x,r,{...a,...n,interpolationkey:w})};this.resetRegExp();const h=a?.missingInterpolationHandler||this.options.missingInterpolationHandler,m=a?.interpolation?.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:y=>lE(y)},{regex:this.regexp,safeValue:y=>this.escapeValue?lE(this.escape(y)):lE(y)}].forEach(y=>{for(u=0;s=y.regex.exec(e);){const S=s[1].trim();if(i=f(S),i===void 0)if(typeof h=="function"){const x=h(e,s,a);i=Ve(x)?x:""}else if(a&&Object.prototype.hasOwnProperty.call(a,S))i="";else if(m){i=s[0];continue}else this.logger.warn(`missed to pass in variable ${S} for interpolating ${e}`),i="";else!Ve(i)&&!this.useRawValueToEscape&&(i=U9(i));const w=y.safeValue(i);if(e=e.replace(s[0],w),m?(y.regex.lastIndex+=i.length,y.regex.lastIndex-=s[0].length):y.regex.lastIndex=0,u++,u>=this.maxReplaces)break}}),e}nest(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,s,i;const u=(c,f)=>{const h=this.nestingOptionsSeparator;if(c.indexOf(h)<0)return c;const m=c.split(new RegExp(`${h}[ ]*{`));let g=`{${m[1]}`;c=m[0],g=this.interpolate(g,i);const y=g.match(/'/g),S=g.match(/"/g);((y?.length??0)%2===0&&!S||S.length%2!==0)&&(g=g.replace(/'/g,'"'));try{i=JSON.parse(g),f&&(i={...f,...i})}catch(w){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,w),`${c}${h}${g}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,c};for(;a=this.nestingRegexp.exec(e);){let c=[];i={...r},i=i.replace&&!Ve(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let f=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){const h=a[1].split(this.formatSeparator).map(m=>m.trim());a[1]=h.shift(),c=h,f=!0}if(s=n(u.call(this,a[1].trim(),i),i),s&&a[0]===e&&!Ve(s))return s;Ve(s)||(s=U9(s)),s||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${e}`),s=""),f&&(s=c.reduce((h,m)=>this.format(h,m,r.lng,{...r,interpolationkey:a[1].trim()}),s.trim())),e=e.replace(a[0],s),this.regexp.lastIndex=0}return e}}const cTe=t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const r=t.split("(");e=r[0].toLowerCase().trim();const a=r[1].substring(0,r[1].length-1);e==="currency"&&a.indexOf(":")<0?n.currency||(n.currency=a.trim()):e==="relativetime"&&a.indexOf(":")<0?n.range||(n.range=a.trim()):a.split(";").forEach(i=>{if(i){const[u,...c]=i.split(":"),f=c.join(":").trim().replace(/^'+|'+$/g,""),h=u.trim();n[h]||(n[h]=f),f==="false"&&(n[h]=!1),f==="true"&&(n[h]=!0),isNaN(f)||(n[h]=parseInt(f,10))}})}return{formatName:e,formatOptions:n}},yc=t=>{const e={};return(n,r,a)=>{let s=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(s={...s,[a.interpolationkey]:void 0});const i=r+JSON.stringify(s);let u=e[i];return u||(u=t(F1(r),a),e[i]=u),u(n)}};class dTe{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=As.create("formatter"),this.options=e,this.formats={number:yc((n,r)=>{const a=new Intl.NumberFormat(n,{...r});return s=>a.format(s)}),currency:yc((n,r)=>{const a=new Intl.NumberFormat(n,{...r,style:"currency"});return s=>a.format(s)}),datetime:yc((n,r)=>{const a=new Intl.DateTimeFormat(n,{...r});return s=>a.format(s)}),relativetime:yc((n,r)=>{const a=new Intl.RelativeTimeFormat(n,{...r});return s=>a.format(s,r.range||"day")}),list:yc((n,r)=>{const a=new Intl.ListFormat(n,{...r});return s=>a.format(s)})},this.init(e)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=yc(n)}format(e,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=n.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(u=>u.indexOf(")")>-1)){const u=s.findIndex(c=>c.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,u)].join(this.formatSeparator)}return s.reduce((u,c)=>{const{formatName:f,formatOptions:h}=cTe(c);if(this.formats[f]){let m=u;try{const g=a?.formatParams?.[a.interpolationkey]||{},y=g.locale||g.lng||a.locale||a.lng||r;m=this.formats[f](u,y,{...h,...a,...g})}catch(g){this.logger.warn(g)}return m}else this.logger.warn(`there was no format function for ${f}`);return u},e)}}const fTe=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class hTe extends ly{constructor(e,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=a,this.logger=As.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,a.backend,a)}queueLoad(e,n,r,a){const s={},i={},u={},c={};return e.forEach(f=>{let h=!0;n.forEach(m=>{const g=`${f}|${m}`;!r.reload&&this.store.hasResourceBundle(f,m)?this.state[g]=2:this.state[g]<0||(this.state[g]===1?i[g]===void 0&&(i[g]=!0):(this.state[g]=1,h=!1,i[g]===void 0&&(i[g]=!0),s[g]===void 0&&(s[g]=!0),c[m]===void 0&&(c[m]=!0)))}),h||(u[f]=!0)}),(Object.keys(s).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(s),pending:Object.keys(i),toLoadLanguages:Object.keys(u),toLoadNamespaces:Object.keys(c)}}loaded(e,n,r){const a=e.split("|"),s=a[0],i=a[1];n&&this.emit("failedLoading",s,i,n),!n&&r&&this.store.addResourceBundle(s,i,r,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2,n&&r&&(this.state[e]=0);const u={};this.queue.forEach(c=>{JAe(c.loaded,[s],i),fTe(c,e),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(f=>{u[f]||(u[f]={});const h=c.loaded[f];h.length&&h.forEach(m=>{u[f][m]===void 0&&(u[f][m]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(c=>!c.done)}read(e,n,r){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:r,tried:a,wait:s,callback:i});return}this.readingCalls++;const u=(f,h)=>{if(this.readingCalls--,this.waitingReads.length>0){const m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(f&&h&&a<this.maxRetries){setTimeout(()=>{this.read.call(this,e,n,r,a+1,s*2,i)},s);return}i(f,h)},c=this.backend[r].bind(this.backend);if(c.length===2){try{const f=c(e,n);f&&typeof f.then=="function"?f.then(h=>u(null,h)).catch(u):u(null,f)}catch(f){u(f)}return}return c(e,n,u)}prepareLoading(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();Ve(e)&&(e=this.languageUtils.toResolveHierarchy(e)),Ve(n)&&(n=[n]);const s=this.queueLoad(e,n,r,a);if(!s.toLoad.length)return s.pending.length||a(),null;s.toLoad.forEach(i=>{this.loadOne(i)})}load(e,n,r){this.prepareLoading(e,n,{},r)}reload(e,n,r){this.prepareLoading(e,n,{reload:!0},r)}loadOne(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=e.split("|"),a=r[0],s=r[1];this.read(a,s,"read",void 0,void 0,(i,u)=>{i&&this.logger.warn(`${n}loading namespace ${s} for language ${a} failed`,i),!i&&u&&this.logger.log(`${n}loaded namespace ${s} for language ${a}`,u),this.loaded(e,i,u)})}saveMissing(e,n,r,a,s){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend?.create){const c={...i,isUpdate:s},f=this.backend.create.bind(this.backend);if(f.length<6)try{let h;f.length===5?h=f(e,n,r,a,c):h=f(e,n,r,a),h&&typeof h.then=="function"?h.then(m=>u(null,m)).catch(u):u(null,h)}catch(h){u(h)}else f(e,n,r,a,u,c)}!e||!e[0]||this.store.addResource(e[0],n,r,a)}}}const K9=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),Ve(t[1])&&(e.defaultValue=t[1]),Ve(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(r=>{e[r]=n[r]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Y9=t=>(Ve(t.ns)&&(t.ns=[t.ns]),Ve(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),Ve(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs?.indexOf?.("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),typeof t.initImmediate=="boolean"&&(t.initAsync=t.initImmediate),t),Jg=()=>{},pTe=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})};class lp extends ly{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Y9(e),this.services={},this.logger=As,this.modules={external:[]},pTe(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(){var e=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),n.defaultNS==null&&n.ns&&(Ve(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const a=K9();this.options={...a,...this.options,...Y9(n)},this.options.interpolation={...a.interpolation,...this.options.interpolation},n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const s=h=>h?typeof h=="function"?new h:h:null;if(!this.options.isClone){this.modules.logger?As.init(s(this.modules.logger),this.options):As.init(null,this.options);let h;this.modules.formatter?h=this.modules.formatter:h=dTe;const m=new q9(this.options);this.store=new B9(this.options.resources,this.options);const g=this.services;g.logger=As,g.resourceStore=this.store,g.languageUtils=m,g.pluralResolver=new lTe(m,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),h&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(g.formatter=s(h),g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new uTe(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new hTe(s(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",function(y){for(var S=arguments.length,w=new Array(S>1?S-1:0),x=1;x<S;x++)w[x-1]=arguments[x];e.emit(y,...w)}),this.modules.languageDetector&&(g.languageDetector=s(this.modules.languageDetector),g.languageDetector.init&&g.languageDetector.init(g,this.options.detection,this.options)),this.modules.i18nFormat&&(g.i18nFormat=s(this.modules.i18nFormat),g.i18nFormat.init&&g.i18nFormat.init(this)),this.translator=new $1(this.services,this.options),this.translator.on("*",function(y){for(var S=arguments.length,w=new Array(S>1?S-1:0),x=1;x<S;x++)w[x-1]=arguments[x];e.emit(y,...w)}),this.modules.external.forEach(y=>{y.init&&y.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Jg),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const h=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);h.length>0&&h[0]!=="dev"&&(this.options.lng=h[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(h=>{this[h]=function(){return e.store[h](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(h=>{this[h]=function(){return e.store[h](...arguments),e}});const c=eh(),f=()=>{const h=(m,g)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(g),r(m,g)};if(this.languages&&!this.isInitialized)return h(null,this.t.bind(this));this.changeLanguage(this.options.lng,h)};return this.options.resources||!this.options.initAsync?f():setTimeout(f,0),c}loadResources(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Jg;const a=Ve(e)?e:this.language;if(typeof e=="function"&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(a?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const s=[],i=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(f=>{f!=="cimode"&&s.indexOf(f)<0&&s.push(f)})};a?i(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>i(c)),this.options.preload?.forEach?.(u=>i(u)),this.services.backendConnector.load(s,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(u)})}else r(null)}reloadResources(e,n,r){const a=eh();return typeof e=="function"&&(r=e,e=void 0),typeof n=="function"&&(r=n,n=void 0),e||(e=this.languages),n||(n=this.options.ns),r||(r=Jg),this.services.backendConnector.reload(e,n,s=>{a.resolve(),r(s)}),a}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&RH.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(e,n){var r=this;this.isLanguageChangingTo=e;const a=eh();this.emit("languageChanging",e);const s=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},i=(c,f)=>{f?(s(f),this.translator.changeLanguage(f),this.isLanguageChangingTo=void 0,this.emit("languageChanged",f),this.logger.log("languageChanged",f)):this.isLanguageChangingTo=void 0,a.resolve(function(){return r.t(...arguments)}),n&&n(c,function(){return r.t(...arguments)})},u=c=>{!e&&!c&&this.services.languageDetector&&(c=[]);const f=Ve(c)?c:this.services.languageUtils.getBestMatchFromCodes(c);f&&(this.language||s(f),this.translator.language||this.translator.changeLanguage(f),this.services.languageDetector?.cacheUserLanguage?.(f)),this.loadResources(f,h=>{i(h,f)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(u):this.services.languageDetector.detect(u):u(e),a}getFixedT(e,n,r){var a=this;const s=function(i,u){let c;if(typeof u!="object"){for(var f=arguments.length,h=new Array(f>2?f-2:0),m=2;m<f;m++)h[m-2]=arguments[m];c=a.options.overloadTranslationOptionHandler([i,u].concat(h))}else c={...u};c.lng=c.lng||s.lng,c.lngs=c.lngs||s.lngs,c.ns=c.ns||s.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||r||s.keyPrefix);const g=a.options.keySeparator||".";let y;return c.keyPrefix&&Array.isArray(i)?y=i.map(S=>`${c.keyPrefix}${g}${S}`):y=c.keyPrefix?`${c.keyPrefix}${g}${i}`:i,a.t(y,c)};return Ve(e)?s.lng=e:s.lngs=e,s.ns=n,s.keyPrefix=r,s}t(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.translator?.translate(...n)}exists(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.translator?.exists(...n)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const i=(u,c)=>{const f=this.services.backendConnector.state[`${u}|${c}`];return f===-1||f===0||f===2};if(n.precheck){const u=n.precheck(this,i);if(u!==void 0)return u}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(r,e)&&(!a||i(s,e)))}loadNamespaces(e,n){const r=eh();return this.options.ns?(Ve(e)&&(e=[e]),e.forEach(a=>{this.options.ns.indexOf(a)<0&&this.options.ns.push(a)}),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}loadLanguages(e,n){const r=eh();Ve(e)&&(e=[e]);const a=this.options.preload||[],s=e.filter(i=>a.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return s.length?(this.options.preload=a.concat(s),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services?.languageUtils||new q9(K9());return n.indexOf(r.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new lp(e,n)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Jg;const r=e.forkResourceStore;r&&delete e.forkResourceStore;const a={...this.options,...e,isClone:!0},s=new lp(a);if((e.debug!==void 0||e.prefix!==void 0)&&(s.logger=s.logger.clone(e)),["store","services","language"].forEach(u=>{s[u]=this[u]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r){const u=Object.keys(this.store.data).reduce((c,f)=>(c[f]={...this.store.data[f]},Object.keys(c[f]).reduce((h,m)=>(h[m]={...c[f][m]},h),{})),{});s.store=new B9(u,a),s.services.resourceStore=s.store}return s.translator=new $1(s.services,a),s.translator.on("*",function(u){for(var c=arguments.length,f=new Array(c>1?c-1:0),h=1;h<c;h++)f[h-1]=arguments[h];s.emit(u,...f)}),s.init(a,n),s.translator.options=a,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const mr=lp.createInstance();mr.createInstance=lp.createInstance;mr.createInstance;mr.dir;mr.init;mr.loadResources;mr.reloadResources;mr.use;mr.changeLanguage;mr.getFixedT;mr.t;mr.exists;mr.setDefaultNamespace;mr.hasLoadedNamespace;mr.loadNamespaces;mr.loadLanguages;const{slice:mTe,forEach:gTe}=[];function vTe(t){return gTe.call(mTe.call(arguments,1),e=>{if(e)for(const n in e)t[n]===void 0&&(t[n]=e[n])}),t}function yTe(t){return typeof t!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(n=>n.test(t))}const Z9=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,bTe=function(t,e){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},a=encodeURIComponent(e);let s=`${t}=${a}`;if(r.maxAge>0){const i=r.maxAge-0;if(Number.isNaN(i))throw new Error("maxAge should be a Number");s+=`; Max-Age=${Math.floor(i)}`}if(r.domain){if(!Z9.test(r.domain))throw new TypeError("option domain is invalid");s+=`; Domain=${r.domain}`}if(r.path){if(!Z9.test(r.path))throw new TypeError("option path is invalid");s+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;case"none":s+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(s+="; Partitioned"),s},X9={create(t,e,n,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(a.expires=new Date,a.expires.setTime(a.expires.getTime()+n*60*1e3)),r&&(a.domain=r),document.cookie=bTe(t,e,a)},read(t){const e=`${t}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let a=n[r];for(;a.charAt(0)===" ";)a=a.substring(1,a.length);if(a.indexOf(e)===0)return a.substring(e.length,a.length)}return null},remove(t,e){this.create(t,"",-1,e)}};var STe={name:"cookie",lookup(t){let{lookupCookie:e}=t;if(e&&typeof document<"u")return X9.read(e)||void 0},cacheUserLanguage(t,e){let{lookupCookie:n,cookieMinutes:r,cookieDomain:a,cookieOptions:s}=e;n&&typeof document<"u"&&X9.create(n,t,r,a,s)}},wTe={name:"querystring",lookup(t){let{lookupQuerystring:e}=t,n;if(typeof window<"u"){let{search:r}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));const s=r.substring(1).split("&");for(let i=0;i<s.length;i++){const u=s[i].indexOf("=");u>0&&s[i].substring(0,u)===e&&(n=s[i].substring(u+1))}}return n}},xTe={name:"hash",lookup(t){let{lookupHash:e,lookupFromHashIndex:n}=t,r;if(typeof window<"u"){const{hash:a}=window.location;if(a&&a.length>2){const s=a.substring(1);if(e){const i=s.split("&");for(let u=0;u<i.length;u++){const c=i[u].indexOf("=");c>0&&i[u].substring(0,c)===e&&(r=i[u].substring(c+1))}}if(r)return r;if(!r&&n>-1){const i=a.match(/\/([a-zA-Z-]*)/g);return Array.isArray(i)?i[typeof n=="number"?n:0]?.replace("/",""):void 0}}}return r}};let bc=null;const Q9=()=>{if(bc!==null)return bc;try{if(bc=typeof window<"u"&&window.localStorage!==null,!bc)return!1;const t="i18next.translate.boo";window.localStorage.setItem(t,"foo"),window.localStorage.removeItem(t)}catch{bc=!1}return bc};var CTe={name:"localStorage",lookup(t){let{lookupLocalStorage:e}=t;if(e&&Q9())return window.localStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupLocalStorage:n}=e;n&&Q9()&&window.localStorage.setItem(n,t)}};let Sc=null;const J9=()=>{if(Sc!==null)return Sc;try{if(Sc=typeof window<"u"&&window.sessionStorage!==null,!Sc)return!1;const t="i18next.translate.boo";window.sessionStorage.setItem(t,"foo"),window.sessionStorage.removeItem(t)}catch{Sc=!1}return Sc};var ETe={name:"sessionStorage",lookup(t){let{lookupSessionStorage:e}=t;if(e&&J9())return window.sessionStorage.getItem(e)||void 0},cacheUserLanguage(t,e){let{lookupSessionStorage:n}=e;n&&J9()&&window.sessionStorage.setItem(n,t)}},_Te={name:"navigator",lookup(t){const e=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:a}=navigator;if(n)for(let s=0;s<n.length;s++)e.push(n[s]);r&&e.push(r),a&&e.push(a)}return e.length>0?e:void 0}},kTe={name:"htmlTag",lookup(t){let{htmlTag:e}=t,n;const r=e||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},ATe={name:"path",lookup(t){let{lookupFromPathIndex:e}=t;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?n[typeof e=="number"?e:0]?.replace("/",""):void 0}},TTe={name:"subdomain",lookup(t){let{lookupFromSubdomainIndex:e}=t;const n=typeof e=="number"?e+1:1,r=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};let IH=!1;try{document.cookie,IH=!0}catch{}const OH=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];IH||OH.splice(1,1);const RTe=()=>({order:OH,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:t=>t});class NH{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,n)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=e,this.options=vTe(n,this.options||{},RTe()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=a=>a.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(STe),this.addDetector(wTe),this.addDetector(CTe),this.addDetector(ETe),this.addDetector(_Te),this.addDetector(kTe),this.addDetector(ATe),this.addDetector(TTe),this.addDetector(xTe)}addDetector(e){return this.detectors[e.name]=e,this}detect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return e.forEach(r=>{if(this.detectors[r]){let a=this.detectors[r].lookup(this.options);a&&typeof a=="string"&&(a=[a]),a&&(n=n.concat(a))}}),n=n.filter(r=>r!=null&&!yTe(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(e,this.options)}))}}NH.type="languageDetector";function ITe(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=OTe(t))||e){n&&(t=n);var r=0,a=function(){};return{s:a,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(f){throw f},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
294
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,i=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var f=n.next();return i=f.done,f},e:function(f){u=!0,s=f},f:function(){try{i||n.return==null||n.return()}finally{if(u)throw s}}}}function OTe(t,e){if(t){if(typeof t=="string")return eD(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eD(t,e):void 0}}function eD(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function E_(t){"@babel/helpers - typeof";return E_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E_(t)}var MH=["__proto__","constructor","prototype"];function PH(t){return!(typeof t!="string"||t.length===0||t.length>128||MH.indexOf(t)>-1||t.indexOf("..")>-1||t.indexOf("\\")>-1||/[?#%\s@]/.test(t)||/[\x00-\x1F\x7F]/.test(t))}function DH(t){return!(!PH(t)||t.indexOf("/")>-1)}function NTe(t){return PH(t)}var MTe={lng:DH,ns:NTe};function e0(t){return typeof t!="string"?t:t.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function PTe(t){if(typeof t!="string"||t.length===0)return t;try{var e=new URL(t);return e.username||e.password?(e.username="",e.password="",e.toString()):t}catch{return t.replace(/(\/\/)[^/@\s]+@/g,"$1")}}function LH(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":E_(XMLHttpRequest))==="object"}function DTe(t){return!!t&&typeof t.then=="function"}function LTe(t){return DTe(t)?t:Promise.resolve(t)}var UTe=/\{\{(.+?)\}\}/g;function tD(t,e){var n=!1,r=t.replace(UTe,function(a,s){var i=s.trim();if(MH.indexOf(i)>-1)return a;var u=e[i];if(u==null)return a;var c=MTe[i]||DH,f=String(u).split("+"),h=ITe(f),m;try{for(h.s();!(m=h.n()).done;){var g=m.value;if(!c(g))return n=!0,a}}catch(y){h.e(y)}finally{h.f()}return f.join("+")});return n?null:r}function nD(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function rD(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?nD(Object(n),!0).forEach(function(r){zTe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nD(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function zTe(t,e,n){return(e=jTe(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function jTe(t){var e=FTe(t,"string");return iu(e)=="symbol"?e:e+""}function FTe(t,e){if(iu(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(iu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function iu(t){"@babel/helpers - typeof";return iu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},iu(t)}var Zi=typeof fetch=="function"?fetch:void 0;typeof global<"u"&&global.fetch?Zi=global.fetch:typeof window<"u"&&window.fetch&&(Zi=window.fetch);var up;LH()&&(typeof global<"u"&&global.XMLHttpRequest?up=global.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(up=window.XMLHttpRequest));var H1;typeof ActiveXObject=="function"&&(typeof global<"u"&&global.ActiveXObject?H1=global.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(H1=window.ActiveXObject));typeof Zi!="function"&&(Zi=void 0);if(!Zi&&!up&&!H1)try{zn(()=>import("./browser-ponyfill-Di7PDaos.js").then(t=>t.b),[]).then(function(t){Zi=t.default}).catch(function(){})}catch{}var UH=["__proto__","constructor","prototype"],__=function(e,n){if(n&&iu(n)==="object"){for(var r="",a=0,s=Object.keys(n);a<s.length;a++){var i=s[a];UH.indexOf(i)>-1||(r+="&"+encodeURIComponent(i)+"="+encodeURIComponent(n[i]))}if(!r)return e;e=e+(e.indexOf("?")!==-1?"&":"?")+r.slice(1)}return e},aD=function(e,n,r,a){var s=function(c){if(!c.ok)return r(c.statusText||"Error",{status:c.status});c.text().then(function(f){r(null,{status:c.status,data:f})}).catch(r)};if(a){var i=a(e,n);if(i instanceof Promise){i.then(s).catch(r);return}}typeof fetch=="function"?fetch(e,n).then(s).catch(r):Zi(e,n).then(s).catch(r)},BTe=function(e,n,r,a){e.queryStringParams&&(n=__(n,e.queryStringParams));var s=rD({},typeof e.customHeaders=="function"?e.customHeaders():e.customHeaders);typeof window>"u"&&typeof global<"u"&&typeof global.process<"u"&&global.process.versions&&global.process.versions.node&&(s["User-Agent"]="i18next-http-backend (node/".concat(global.process.version,"; ").concat(global.process.platform," ").concat(global.process.arch,")")),r&&(s["Content-Type"]="application/json");var i=typeof e.requestOptions=="function"?e.requestOptions(r):e.requestOptions,u=rD({method:r?"POST":"GET",body:r?e.stringify(r):void 0,headers:s},e._omitFetchOptions?{}:i),c=typeof e.alternateFetch=="function"&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{aD(n,u,a,c)}catch(f){if(!i||Object.keys(i).length===0||!f.message||f.message.indexOf("not implemented")<0)return a(f);try{Object.keys(i).forEach(function(h){delete u[h]}),aD(n,u,a,c),e._omitFetchOptions=!0}catch(h){a(h)}}},$Te=function(e,n,r,a){r&&iu(r)==="object"&&(r=__("",r).slice(1)),e.queryStringParams&&(n=__(n,e.queryStringParams));try{var s=up?new up:new H1("MSXML2.XMLHTTP.3.0");s.open(r?"POST":"GET",n,1),e.crossDomain||s.setRequestHeader("X-Requested-With","XMLHttpRequest"),s.withCredentials=!!e.withCredentials,r&&s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),s.overrideMimeType&&s.overrideMimeType("application/json");var i=e.customHeaders;if(i=typeof i=="function"?i():i,i)for(var u=0,c=Object.keys(i);u<c.length;u++){var f=c[u];UH.indexOf(f)>-1||s.setRequestHeader(f,i[f])}s.onreadystatechange=function(){s.readyState>3&&a(s.status>=400?s.statusText:null,{status:s.status,data:s.responseText})},s.send(r)}catch(h){console&&console.log(h)}},HTe=function(e,n,r,a){if(typeof r=="function"&&(a=r,r=void 0),a=a||function(){},Zi&&n.indexOf("file:")!==0)return BTe(e,n,r,a);if(LH()||typeof ActiveXObject=="function")return $Te(e,n,r,a);a(new Error("No fetch and no xhr implementation found!"))};function hd(t){"@babel/helpers - typeof";return hd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hd(t)}function sD(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,r)}return n}function uE(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?sD(Object(n),!0).forEach(function(r){zH(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sD(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function qTe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function WTe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,jH(r.key),r)}}function VTe(t,e,n){return e&&WTe(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function zH(t,e,n){return(e=jH(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function jH(t){var e=GTe(t,"string");return hd(e)=="symbol"?e:e+""}function GTe(t,e){if(hd(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(hd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var KTe=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(n){return JSON.parse(n)},stringify:JSON.stringify,parsePayload:function(n,r,a){return zH({},r,a||"")},parseLoadPayload:function(n,r){},request:HTe,reloadInterval:typeof window<"u"?!1:3600*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},FH=(function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};qTe(this,t),this.services=e,this.options=n,this.allOptions=r,this.type="backend",this.init(e,n,r)}return VTe(t,[{key:"init",value:function(n){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=n,this.options=uE(uE(uE({},KTe()),this.options||{}),a),this.allOptions=s,this.services&&this.options.reloadInterval){var i=setInterval(function(){return r.reload()},this.options.reloadInterval);hd(i)==="object"&&typeof i.unref=="function"&&i.unref()}}},{key:"readMulti",value:function(n,r,a){this._readAny(n,n,r,r,a)}},{key:"read",value:function(n,r,a){this._readAny([n],n,[r],r,a)}},{key:"_readAny",value:function(n,r,a,s,i){var u=this,c=this.options.loadPath;typeof this.options.loadPath=="function"&&(c=this.options.loadPath(n,a)),c=LTe(c),c.then(function(f){if(!f)return i(null,{});var h=tD(f,{lng:n.join("+"),ns:a.join("+")});if(h==null){var m=n.map(e0).join(", "),g=a.map(e0).join(", ");return i(new Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+m+"] namespaces=["+g+"]"),!1)}u.loadUrl(h,i,r,s)})}},{key:"loadUrl",value:function(n,r,a,s){var i=this,u=typeof a=="string"?[a]:a,c=typeof s=="string"?[s]:s,f=this.options.parseLoadPayload(u,c),h=e0(PTe(n));this.options.request(this.options,n,f,function(m,g){if(g&&(g.status>=500&&g.status<600||!g.status))return r("failed loading "+h+"; status code: "+g.status,!0);if(g&&g.status>=400&&g.status<500)return r("failed loading "+h+"; status code: "+g.status,!1);if(!g&&m&&m.message){var y=m.message.toLowerCase(),S=["failed","fetch","network","load"].find(function(E){return y.indexOf(E)>-1});if(S)return r("failed loading "+h+": "+e0(m.message),!0)}if(m)return r(m,!1);var w,x;try{typeof g.data=="string"?w=i.options.parse(g.data,a,s):w=g.data}catch{x="failed parsing "+h+" to json"}if(x)return r(x,!1);r(null,w)})}},{key:"create",value:function(n,r,a,s,i){var u=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var c=this.options.parsePayload(r,a,s),f=0,h=[],m=[];n.forEach(function(g){var y=u.options.addPath;typeof u.options.addPath=="function"&&(y=u.options.addPath(g,r));var S=tD(y,{lng:g,ns:r});if(S==null){f+=1,i&&f===n.length&&i(h,m);return}u.options.request(u.options,S,c,function(w,x){f+=1,h.push(w),m.push(x),f===n.length&&typeof i=="function"&&i(h,m)})})}}},{key:"reload",value:function(){var n=this,r=this.services,a=r.backendConnector,s=r.languageUtils,i=r.logger,u=a.language;if(!(u&&u.toLowerCase()==="cimode")){var c=[],f=function(m){var g=s.toResolveHierarchy(m);g.forEach(function(y){c.indexOf(y)<0&&c.push(y)})};f(u),this.allOptions.preload&&this.allOptions.preload.forEach(function(h){return f(h)}),c.forEach(function(h){n.allOptions.ns.forEach(function(m){a.read(h,m,"read",null,null,function(g,y){g&&i.warn("loading namespace ".concat(m," for language ").concat(h," failed"),g),!g&&y&&i.log("loaded namespace ".concat(m," for language ").concat(h),y),a.loaded("".concat(h,"|").concat(m),g,y)})})})}}}])})();FH.type="backend";mr.use(FH).use(NH).use(XEe).init({fallbackLng:"en",supportedLngs:["en","nl","de","fr"],ns:["common","mail","settings","errors"],defaultNS:"common",backend:{loadPath:"/locales/{{lng}}/{{ns}}.json"},detection:{order:["navigator","htmlTag"],caches:[]},interpolation:{escapeValue:!1},react:{useSuspense:!0,bindI18n:"languageChanged loaded"}});const YTe=({authProvider:t,rootElementId:e="root"})=>{iae(),jEe(),t.configure(),uve(t);const n=UEe();Xre(n);const r=new Pge({queryCache:new qj({onError:hve}),mutationCache:new Hj({onError:pve}),defaultOptions:{queries:{staleTime:3e4,gcTime:5*6e4,retry:1}}}),a=ZAe(r,n);n.recordPageView(window.location.pathname);const s=document.getElementById(e);if(!s)throw new Error(`Root element not found: #${e}`);const{Shell:i}=t;W1e.createRoot(s).render(C.jsx(_.StrictMode,{children:C.jsx(uH.Provider,{value:n,children:C.jsxs(Dge,{client:r,children:[C.jsx(fve,{value:t,children:C.jsx(i,{children:C.jsx(F1e,{router:a})})}),!1]})})}))};YTe({authProvider:dge});export{kL as $,TL as A,on as B,kE as C,kee as D,PE as E,RJ as F,TJ as G,Zte as H,IL as I,hRe as J,sRe as K,j0 as L,MJ as M,ite as N,V_ as O,eRe as P,Nh as Q,F as R,zJ as S,FJ as T,pRe as U,TU as V,$ne as W,Ms as X,ute as Y,xRe as Z,bL as _,Rt as a,VIe as a$,B4 as a0,ZTe as a1,XTe as a2,Rge as a3,kRe as a4,_Re as a5,kd as a6,Ln as a7,n1 as a8,Dj as a9,Yl as aA,yF as aB,n3e as aC,h4e as aD,CRe as aE,Gj as aF,o_e as aG,SL as aH,Gge as aI,JIe as aJ,t4e as aK,QIe as aL,zIe as aM,Qte as aN,dne as aO,xJ as aP,r_e as aQ,l4e as aR,u_e as aS,wH as aT,n4e as aU,o4e as aV,e4e as aW,zn as aX,FIe as aY,a_e as aZ,h_e as a_,zv as aa,Lge as ab,jge as ac,Hge as ad,Fge as ae,Bge as af,xr as ag,Wge as ah,oM as ai,$ge as aj,Vge as ak,Kr as al,Vr as am,u1e as an,s4e as ao,Ep as ap,IIe as aq,Uke as ar,sE as as,IRe as at,UIe as au,v4e as av,dIe as aw,Q3e as ax,C3e as ay,qU as az,CJ as b,Td as b$,m_e as b0,ZIe as b1,KIe as b2,zke as b3,WIe as b4,jIe as b5,$v as b6,XIe as b7,YIe as b8,i4e as b9,uv as bA,cte as bB,aRe as bC,t_e as bD,K3e as bE,ZU as bF,VE as bG,hH as bH,AH as bI,LIe as bJ,pIe as bK,p4e as bL,m4e as bM,Xi as bN,ev as bO,Bke as bP,tRe as bQ,ak as bR,CF as bS,n_e as bT,TRe as bU,vIe as bV,mIe as bW,bIe as bX,wU as bY,ts as bZ,Fne as b_,a4e as ba,r4e as bb,g4e as bc,GIe as bd,OE as be,dte as bf,jJ as bg,Dke as bh,oRe as bi,SF as bj,T3e as bk,D3e as bl,M3e as bm,N3e as bn,BIe as bo,PIe as bp,Nke as bq,d4e as br,mRe as bs,vp as bt,yRe as bu,bRe as bv,gRe as bw,vRe as bx,c4e as by,p_e as bz,EL as c,Vz as c$,Eke as c0,_r as c1,u4e as c2,$Ie as c3,HIe as c4,pAe as c5,gIe as c6,yIe as c7,y4e as c8,DJ as c9,Nne as cA,hIe as cB,v3e as cC,_Ie as cD,NIe as cE,iE as cF,f4e as cG,OIe as cH,L9 as cI,lRe as cJ,kIe as cK,AIe as cL,X3e as cM,RIe as cN,TIe as cO,qIe as cP,s_e as cQ,Ym as cR,dz as cS,Ls as cT,Rk as cU,Po as cV,Hue as cW,Do as cX,Due as cY,cz as cZ,vv as c_,b4e as ca,Q_ as cb,wRe as cc,nRe as cd,SRe as ce,P_e as cf,Wre as cg,Hre as ch,$re as ci,g9 as cj,d0 as ck,fIe as cl,CIe as cm,EIe as cn,yU as co,dRe as cp,fne as cq,MIe as cr,DIe as cs,cRe as ct,SIe as cu,xIe as cv,Z3e as cw,wIe as cx,Mne as cy,fRe as cz,Ue as d,sle as d0,Gue as d1,nce as d2,ile as d3,ele as d4,hv as d5,fk as d6,az as d7,Jue as d8,Yue as d9,_v as dA,Sp as dB,ece as dC,yp as dD,tce as dE,Kue as dF,fle as da,que as db,Lk as dc,iz as dd,lle as de,Uue as df,zue as dg,Ise as dh,pu as di,wse as dj,Sse as dk,dk as dl,Zz as dm,Lue as dn,Ese as dp,dle as dq,Bue as dr,hk as ds,jue as dt,sce as du,tj as dv,JTe as dw,gp as dx,ERe as dy,Nk as dz,IE as e,AE as f,EJ as g,_ee as h,fte as i,C as j,rRe as k,rv as l,nte as m,iRe as n,RL as o,uRe as p,ote as q,_ as r,UJ as s,NJ as t,ate as u,LJ as v,wJ as w,AJ as x,jne as y,Une as z};