repositories

NixDaemon

NixOS pentest workstation as one flake — IceBreaker's successor

clonegit clone https://git.daemon-sec.xyz/NixDaemon.git
index.jsJavaScript232 lines885.4 KiBraw download
var marketplace=(()=>{var k=Object.create,_=Object.defineProperty,S=Object.getOwnPropertyDescriptor,I=Object.getOwnPropertyNames,j=Object.getPrototypeOf,L=Object.prototype.hasOwnProperty,e=(e,t)=>function(){return t||(0,e[I(e)[0]])((t={exports:{}}).exports,t),t.exports},t=(e,t)=>{for(var r in t)_(e,r,{get:t[r],enumerable:!0})},U=(t,r,n,i)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let e of I(r))L.call(t,e)||e===n||_(t,e,{get:()=>r[e],enumerable:!(i=S(r,e))||i.enumerable});return t},r=(e,t,r)=>(r=null!=e?k(j(e)):{},U(!t&&e&&e.__esModule?r:_(r,"default",{value:e,enumerable:!0}),e)),h=e({"external-global-plugin:react"(e,t){t.exports=Spicetify.React}}),R=e({"node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.3/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js"(e){"use strict";function o(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!l(e,r)}catch(e){return 1}}var s,l,u,c,d,p,m,f,t;"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),s=h(),l="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},u=s.useState,c=s.useEffect,d=s.useLayoutEffect,p=s.useDebugValue,f=m=!1,t="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){m||void 0===s.startTransition||(m=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var r,n=t(),i=(f||(r=t(),l(n,r))||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0),(r=u({inst:{value:n,getSnapshot:t}}))[0].inst),a=r[1];return d(function(){i.value=n,i.getSnapshot=t,o(i)&&a({inst:i})},[e,n,t]),c(function(){return o(i)&&a({inst:i}),e(function(){o(i)&&a({inst:i})})},[e]),p(n),n},e.useSyncExternalStore=void 0!==s.useSyncExternalStore?s.useSyncExternalStore:t,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}}),n=e({"node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.3/node_modules/use-sync-external-store/shim/index.js"(e,t){"use strict";t.exports=R()}}),V=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/constants.js"(e,t){"use strict";var r=Number.MAX_SAFE_INTEGER||9007199254740991;t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:r,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}}),M=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/debug.js"(e,t){"use strict";var r="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};t.exports=r}}),J=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/re.js"(e,t){"use strict";var{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:i}=V(),a=M(),o=(e=t.exports={}).re=[],s=e.safeRe=[],l=e.src=[],u=e.safeSrc=[],c=e.t={},d=0,t="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",i],[t,n]],i=(e,t,r)=>{var n=(e=>{for(var[t,r]of p)e=e.split(t+"*").join(`${t}{0,${r}}`).split(t+"+").join(`${t}{1,${r}}`);return e})(t),i=d++;a(e,i,t),c[e]=i,l[i]=t,u[i]=n,o[i]=new RegExp(t,r?"g":void 0),s[i]=new RegExp(n,r?"g":void 0)};i("NUMERICIDENTIFIER","0|[1-9]\\d*"),i("NUMERICIDENTIFIERLOOSE","\\d+"),i("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${t}*`),i("MAINVERSION",`(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})`),i("MAINVERSIONLOOSE",`(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})`),i("PRERELEASEIDENTIFIER",`(?:${l[c.NONNUMERICIDENTIFIER]}|${l[c.NUMERICIDENTIFIER]})`),i("PRERELEASEIDENTIFIERLOOSE",`(?:${l[c.NONNUMERICIDENTIFIER]}|${l[c.NUMERICIDENTIFIERLOOSE]})`),i("PRERELEASE",`(?:-(${l[c.PRERELEASEIDENTIFIER]}(?:\\.${l[c.PRERELEASEIDENTIFIER]})*))`),i("PRERELEASELOOSE",`(?:-?(${l[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[c.PRERELEASEIDENTIFIERLOOSE]})*))`),i("BUILDIDENTIFIER",t+"+"),i("BUILD",`(?:\\+(${l[c.BUILDIDENTIFIER]}(?:\\.${l[c.BUILDIDENTIFIER]})*))`),i("FULLPLAIN",`v?${l[c.MAINVERSION]}${l[c.PRERELEASE]}?${l[c.BUILD]}?`),i("FULL",`^${l[c.FULLPLAIN]}$`),i("LOOSEPLAIN",`[v=\\s]*${l[c.MAINVERSIONLOOSE]}${l[c.PRERELEASELOOSE]}?${l[c.BUILD]}?`),i("LOOSE",`^${l[c.LOOSEPLAIN]}$`),i("GTLT","((?:<|>)?=?)"),i("XRANGEIDENTIFIERLOOSE",l[c.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),i("XRANGEIDENTIFIER",l[c.NUMERICIDENTIFIER]+"|x|X|\\*"),i("XRANGEPLAIN",`[v=\\s]*(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:${l[c.PRERELEASE]})?${l[c.BUILD]}?)?)?`),i("XRANGEPLAINLOOSE",`[v=\\s]*(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:${l[c.PRERELEASELOOSE]})?${l[c.BUILD]}?)?)?`),i("XRANGE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAIN]}$`),i("XRANGELOOSE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAINLOOSE]}$`),i("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),i("COERCE",l[c.COERCEPLAIN]+"(?:$|[^\\d])"),i("COERCEFULL",l[c.COERCEPLAIN]+`(?:${l[c.PRERELEASE]})?(?:${l[c.BUILD]})?(?:$|[^\\d])`),i("COERCERTL",l[c.COERCE],!0),i("COERCERTLFULL",l[c.COERCEFULL],!0),i("LONETILDE","(?:~>?)"),i("TILDETRIM",`(\\s*)${l[c.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",i("TILDE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAIN]}$`),i("TILDELOOSE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAINLOOSE]}$`),i("LONECARET","(?:\\^)"),i("CARETTRIM",`(\\s*)${l[c.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",i("CARET",`^${l[c.LONECARET]}${l[c.XRANGEPLAIN]}$`),i("CARETLOOSE",`^${l[c.LONECARET]}${l[c.XRANGEPLAINLOOSE]}$`),i("COMPARATORLOOSE",`^${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]})$|^$`),i("COMPARATOR",`^${l[c.GTLT]}\\s*(${l[c.FULLPLAIN]})$|^$`),i("COMPARATORTRIM",`(\\s*)${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]}|${l[c.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",i("HYPHENRANGE",`^\\s*(${l[c.XRANGEPLAIN]})\\s+-\\s+(${l[c.XRANGEPLAIN]})\\s*$`),i("HYPHENRANGELOOSE",`^\\s*(${l[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[c.XRANGEPLAINLOOSE]})\\s*$`),i("STAR","(<|>)?=?\\s*\\*"),i("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),i("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}}),B=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/parse-options.js"(e,t){"use strict";var r=Object.freeze({loose:!0}),n=Object.freeze({});t.exports=e=>e?"object"!=typeof e?r:e:n}}),W=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/identifiers.js"(e,t){"use strict";var i=/^[0-9]+$/,r=(e,t)=>{var r,n;return"number"==typeof e&&"number"==typeof t?e===t?0:e<t?-1:1:(r=i.test(e),n=i.test(t),r&&n&&(e=+e,t=+t),e===t?0:r&&!n||(!n||r)&&e<t?-1:1)};t.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}}}),X=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/semver.js"(e,t){"use strict";var i=M(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:n}=V(),{safeRe:a,t:o}=J(),s=B(),l=W()["compareIdentifiers"],u=class{constructor(e,t){if(t=s(t),e instanceof u){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>r)throw new TypeError(`version is longer than ${r} characters`);i("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;t=e.trim().match(t.loose?a[o.LOOSE]:a[o.FULL]);if(!t)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+t[1],this.minor=+t[2],this.patch=+t[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");t[4]?this.prerelease=t[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){var t=+e;if(0<=t&&t<n)return t}return e}):this.prerelease=[],this.build=t[5]?t[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.`+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version}toString(){return this.version}compare(e){if(i("SemVer.compare",this.version,this.options,e),!(e instanceof u)){if("string"==typeof e&&e===this.version)return 0;e=new u(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof u||(e=new u(e,this.options)),this.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof u||(e=new u(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{var r=this.prerelease[t],n=e.prerelease[t];if(i("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(r!==n)return l(r,n)}while(++t)}compareBuild(e){e instanceof u||(e=new u(e,this.options));let t=0;do{var r=this.build[t],n=e.build[t];if(i("build compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(r!==n)return l(r,n)}while(++t)}inc(e,t,r){if(e.startsWith("pre")){if(!t&&!1===r)throw new Error("invalid increment argument: identifier is empty");if(t){var n=("-"+t).match(this.options.loose?a[o.PRERELEASELOOSE]:a[o.PRERELEASE]);if(!n||n[1]!==t)throw new Error("invalid identifier: "+t)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":var i=Number(r)?1:0;if(0===this.prerelease.length)this.prerelease=[i];else{let e=this.prerelease.length;for(;0<=--e;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);if(-1===e){if(t===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(t){let e=[t,i];!1===r&&(e=[t]),((t,e)=>{var r=e.split(".");if(r.length>t.length)return!1;for(let e=0;e<r.length;e++)if(0!==l(t[e],r[e]))return!1;return!0})(this.prerelease,t)&&(i=this.prerelease[t.split(".").length],!isNaN(i))||(this.prerelease=e)}break;default:throw new Error("invalid increment argument: "+e)}return this.raw=this.format(),this.build.length&&(this.raw+="+"+this.build.join(".")),this}};t.exports=u}}),Y=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/parse.js"(e,t){"use strict";var n=X();t.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(r)throw e;return null}}}}),Q=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/valid.js"(e,t){"use strict";var r=Y();t.exports=(e,t)=>{e=r(e,t);return e?e.version:null}}}),ee=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/clean.js"(e,t){"use strict";var r=Y();t.exports=(e,t)=>{e=r(e.trim().replace(/^[=v]+/,""),t);return e?e.version:null}}}),te=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/inc.js"(e,t){"use strict";var a=X();t.exports=(e,t,r,n,i)=>{"string"==typeof r&&(i=n,n=r,r=void 0);try{return new a(e instanceof a?e.version:e,r).inc(t,n,i).version}catch(e){return null}}}}),re=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/diff.js"(e,t){"use strict";var a=Y();t.exports=(e,t)=>{var e=a(e,null,!0),t=a(t,null,!0),r=e.compare(t);if(0===r)return null;var r=0<r,n=r?e:t,r=r?t:e,i=!!n.prerelease.length;if(!!r.prerelease.length&&!i){if(!r.patch&&!r.minor)return"major";if(0===r.compareMain(n))return r.minor&&!r.patch?"minor":"patch"}n=i?"pre":"";return e.major!==t.major?n+"major":e.minor!==t.minor?n+"minor":e.patch!==t.patch?n+"patch":"prerelease"}}}),ne=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/major.js"(e,t){"use strict";var r=X();t.exports=(e,t)=>new r(e,t).major}}),ie=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/minor.js"(e,t){"use strict";var r=X();t.exports=(e,t)=>new r(e,t).minor}}),ae=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/patch.js"(e,t){"use strict";var r=X();t.exports=(e,t)=>new r(e,t).patch}}),oe=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/prerelease.js"(e,t){"use strict";var r=Y();t.exports=(e,t)=>{e=r(e,t);return e&&e.prerelease.length?e.prerelease:null}}}),se=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare.js"(e,t){"use strict";var n=X();t.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))}}),le=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/rcompare.js"(e,t){"use strict";var n=se();t.exports=(e,t,r)=>n(t,e,r)}}),ue=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare-loose.js"(e,t){"use strict";var r=se();t.exports=(e,t)=>r(e,t,!0)}}),ce=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/compare-build.js"(e,t){"use strict";var n=X();t.exports=(e,t,r)=>{e=new n(e,r),t=new n(t,r);return e.compare(t)||e.compareBuild(t)}}}),de=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/sort.js"(e,t){"use strict";var n=ce();t.exports=(e,r)=>e.sort((e,t)=>n(e,t,r))}}),pe=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/rsort.js"(e,t){"use strict";var n=ce();t.exports=(e,r)=>e.sort((e,t)=>n(t,e,r))}}),me=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/gt.js"(e,t){"use strict";var n=se();t.exports=(e,t,r)=>0<n(e,t,r)}}),fe=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/lt.js"(e,t){"use strict";var n=se();t.exports=(e,t,r)=>n(e,t,r)<0}}),he=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/eq.js"(e,t){"use strict";var n=se();t.exports=(e,t,r)=>0===n(e,t,r)}}),ge=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/neq.js"(e,t){"use strict";var n=se();t.exports=(e,t,r)=>0!==n(e,t,r)}}),ve=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/gte.js"(e,t){"use strict";var n=se();t.exports=(e,t,r)=>0<=n(e,t,r)}}),be=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/lte.js"(e,t){"use strict";var n=se();t.exports=(e,t,r)=>n(e,t,r)<=0}}),ye=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/cmp.js"(e,t){"use strict";var i=he(),a=ge(),o=me(),s=ve(),l=fe(),u=be();t.exports=(e,t,r,n)=>{switch(t){case"===":return(e="object"==typeof e?e.version:e)===(r="object"==typeof r?r.version:r);case"!==":return(e="object"==typeof e?e.version:e)!==(r="object"==typeof r?r.version:r);case"":case"=":case"==":return i(e,r,n);case"!=":return a(e,r,n);case">":return o(e,r,n);case">=":return s(e,r,n);case"<":return l(e,r,n);case"<=":return u(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}}}),we=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/coerce.js"(e,t){"use strict";var c=X(),d=Y(),{safeRe:p,t:m}=J();t.exports=(e,t)=>{if(e instanceof c)return e;if("string"!=typeof(e="number"==typeof e?String(e):e))return null;let r=null;if((t=t||{}).rtl){for(var n,i=t.includePrerelease?p[m.COERCERTLFULL]:p[m.COERCERTL];(n=i.exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&n.index+n[0].length===r.index+r[0].length||(r=n),i.lastIndex=n.index+n[1].length+n[2].length;i.lastIndex=-1}else r=e.match(t.includePrerelease?p[m.COERCEFULL]:p[m.COERCE]);var a,o,s,l,u;return null===r?null:(a=r[2],o=r[3]||"0",s=r[4]||"0",l=t.includePrerelease&&r[5]?"-"+r[5]:"",u=t.includePrerelease&&r[6]?"+"+r[6]:"",d(a+`.${o}.`+s+l+u,t))}}}),ke=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/truncate.js"(e,t){"use strict";var n=Y(),i=V(),a=X(),o=e=>e.startsWith("pre");t.exports=(e,t,r)=>{return i.RELEASE_TYPES.includes(t)?(e=((e,t)=>{const r=e instanceof a?e.version:e;return n(r,t)})(e,r))&&((e,t)=>{if(o(t))return e.version;switch(e.prerelease=[],t){case"major":e.minor=0;e.patch=0;break;case"minor":e.patch=0;break}return e.format()})(e,t):null}}}),F=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/internal/lrucache.js"(e,t){"use strict";t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){var t=this.map.get(e);if(void 0!==t)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){var r;return this.delete(e)||void 0===t||(this.map.size>=this.max&&(r=this.map.keys().next().value,this.delete(r)),this.map.set(e,t)),this}}}}),_e=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/range.js"(e,t){"use strict";var n=/\s+/g,i=class{constructor(e,t){if(t=a(t),e instanceof i)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new i(e.raw,t);if(e instanceof l)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(n," "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);if(1<this.set.length){t=this.set[0];if(this.set=this.set.filter(e=>!b(e[0])),0===this.set.length)this.set=[t];else if(1<this.set.length)for(const r of this.set)if(1===r.length&&o(r[0])){this.set=[r];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){0<e&&(this.formatted+="||");var t=this.set[e];for(let e=0;e<t.length;e++)0<e&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(v,"");var t=((this.options.includePrerelease&&h)|(this.options.loose&&g))+":"+e,r=s.get(t);if(r)return r;var r=this.options.loose,n=r?p[m.HYPHENRANGELOOSE]:p[m.HYPHENRANGE];e=e.replace(n,N(this.options.includePrerelease)),d("hyphen replace",e),e=e.replace(p[m.COMPARATORTRIM],u),d("comparator trim",e),e=e.replace(p[m.TILDETRIM],c),d("tilde trim",e),e=e.replace(p[m.CARETTRIM],f),d("caret trim",e);let i=e.split(" ").map(e=>w(e,this.options)).join(" ").split(/\s+/).map(e=>O(e,this.options));r&&(i=i.filter(e=>(d("loose invalid filter",e,this.options),!!e.match(p[m.COMPARATORLOOSE])))),d("range list",i);var a=new Map;for(const o of i.map(e=>new l(e,this.options))){if(b(o))return[o];a.set(o.value,o)}1<a.size&&a.has("")&&a.delete("");n=[...a.values()];return s.set(t,n),n}intersects(e,r){if(e instanceof i)return this.set.some(t=>y(t,r)&&e.set.some(e=>y(e,r)&&t.every(t=>e.every(e=>t.intersects(e,r)))));throw new TypeError("a Range is required")}test(t){if(t){if("string"==typeof t)try{t=new r(t,this.options)}catch(e){return!1}for(let e=0;e<this.set.length;e++)if(A(this.set[e],t,this.options))return!0}return!1}};t.exports=i;var s=new(F()),a=B(),l=Se(),d=M(),r=X(),{safeRe:p,src:t,t:m,comparatorTrimReplace:u,tildeTrimReplace:c,caretTrimReplace:f}=J(),{FLAG_INCLUDE_PRERELEASE:h,FLAG_LOOSE:g}=V(),v=new RegExp(t[m.BUILD],"g"),b=e=>"<0.0.0-0"===e.value,o=e=>""===e.value,y=(e,t)=>{let r=!0;var n=e.slice();let i=n.pop();for(;r&&n.length;)r=n.every(e=>i.intersects(e,t)),i=n.pop();return r},w=(e,t)=>(e=e.replace(p[m.BUILD],""),d("comp",e,t),e=I(e,t),d("caret",e),e=_(e,t),d("tildes",e),e=$(e,t),d("xrange",e),e=C(e,t),d("stars",e),e),k=e=>!e||"x"===e.toLowerCase()||"*"===e,_=(e,t)=>e.trim().split(/\s+/).map(e=>S(e,t)).join(" "),S=(o,e)=>{var t=e.loose?p[m.TILDELOOSE]:p[m.TILDE];const s=e.includePrerelease?"-0":"";return o.replace(t,(e,t,r,n,i)=>{d("tilde",o,e,t,r,n,i);let a;return a=k(t)?"":k(r)?`>=${t}.0.0${s} <${+t+1}.0.0-0`:k(n)?`>=${t}.${r}.0${s} <${t}.${+r+1}.0-0`:i?(d("replaceTilde pr",i),`>=${t}.${r}.${n}-${i} <${t}.${+r+1}.0-0`):`>=${t}.${r}.${n} <${t}.${+r+1}.0-0`,d("tilde return",a),a})},I=(e,t)=>e.trim().split(/\s+/).map(e=>x(e,t)).join(" "),x=(o,e)=>{d("caret",o,e);var t=e.loose?p[m.CARETLOOSE]:p[m.CARET];const s=e.includePrerelease?"-0":"";return o.replace(t,(e,t,r,n,i)=>{d("caret",o,e,t,r,n,i);let a;return a=k(t)?"":k(r)?`>=${t}.0.0${s} <${+t+1}.0.0-0`:k(n)?"0"===t?`>=${t}.${r}.0${s} <${t}.${+r+1}.0-0`:`>=${t}.${r}.0${s} <${+t+1}.0.0-0`:i?(d("replaceCaret pr",i),"0"===t?"0"===r?`>=${t}.${r}.${n}-${i} <${t}.${r}.${+n+1}-0`:`>=${t}.${r}.${n}-${i} <${t}.${+r+1}.0-0`:`>=${t}.${r}.${n}-${i} <${+t+1}.0.0-0`):(d("no pr"),"0"===t?"0"===r?`>=${t}.${r}.${n} <${t}.${r}.${+n+1}-0`:`>=${t}.${r}.${n} <${t}.${+r+1}.0-0`:`>=${t}.${r}.${n} <${+t+1}.0.0-0`),d("caret return",a),a})},$=(e,t)=>(d("replaceXRanges",e,t),e.split(/\s+/).map(e=>E(e,t)).join(" ")),E=(u,c)=>{u=u.trim();var e=c.loose?p[m.XRANGELOOSE]:p[m.XRANGE];return u.replace(e,(e,t,r,n,i,a)=>{var o,s,l;return d("xRange",u,e,t,r,n,i,a),o=n,s=i,k(r)&&!k(o)||k(o)&&s&&!k(s)?u:(l=(s=(o=k(r))||k(n))||k(i),"="===t&&l&&(t=""),a=c.includePrerelease?"-0":"",o?e=">"===t||"<"===t?"<0.0.0-0":"*":t&&l?(s&&(n=0),i=0,">"===t?(t=">=",i=s?(r=+r+1,n=0):(n=+n+1,0)):"<="===t&&(t="<",s?r=+r+1:n=+n+1),e=t+r+`.${n}.`+i+(a="<"===t?"-0":a)):s?e=`>=${r}.0.0${a} <${+r+1}.0.0-0`:l&&(e=`>=${r}.${n}.0${a} <${r}.${+n+1}.0-0`),d("xRange return",e),e)})},C=(e,t)=>(d("replaceStars",e,t),e.trim().replace(p[m.STAR],"")),O=(e,t)=>(d("replaceGTE0",e,t),e.trim().replace(p[t.includePrerelease?m.GTE0PRE:m.GTE0],"")),N=p=>(e,t,r,n,i,a,o,s,l,u,c,d)=>((t=k(r)?"":k(n)?`>=${r}.0.0`+(p?"-0":""):k(i)?`>=${r}.${n}.0`+(p?"-0":""):a?">="+t:">="+t+(p?"-0":""))+" "+(s=k(l)?"":k(u)?`<${+l+1}.0.0-0`:k(c)?`<${l}.${+u+1}.0-0`:d?`<=${l}.${u}.${c}-`+d:p?`<${l}.${u}.${+c+1}-0`:"<="+s)).trim(),A=(t,r,e)=>{for(let e=0;e<t.length;e++)if(!t[e].test(r))return!1;if(!r.prerelease.length||e.includePrerelease)return!0;for(let e=0;e<t.length;e++)if(d(t[e].semver),t[e].semver!==l.ANY&&0<t[e].semver.prerelease.length){var n=t[e].semver;if(n.major===r.major&&n.minor===r.minor&&n.patch===r.patch)return!0}return!1}}}),Se=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/classes/comparator.js"(e,t){"use strict";var r=Symbol("SemVer ANY"),n=class{static get ANY(){return r}constructor(e,t){if(t=i(t),e instanceof n){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),l("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(e){var t=this.options.loose?a[o.COMPARATORLOOSE]:a[o.COMPARATOR],t=e.match(t);if(!t)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==t[1]?t[1]:"","="===this.operator&&(this.operator=""),t[2]?this.semver=new u(t[2],this.options.loose):this.semver=r}toString(){return this.value}test(e){if(l("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}return s(e,this.operator,this.semver,this.options)}intersects(e,t){if(e instanceof n)return""===this.operator?""===this.value||new c(e.value,t).test(this.value):""===e.operator?""===e.value||new c(this.value,t).test(e.semver):(!(t=i(t)).includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==e.value)&&!(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&!(this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||s(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||s(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")));throw new TypeError("a Comparator is required")}},i=(t.exports=n,B()),{safeRe:a,t:o}=J(),s=ye(),l=M(),u=X(),c=_e()}}),Ie=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/functions/satisfies.js"(e,t){"use strict";var n=_e();t.exports=(e,t,r)=>{try{t=new n(t,r)}catch(e){return!1}return t.test(e)}}}),xe=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/to-comparators.js"(e,t){"use strict";var r=_e();t.exports=(e,t)=>new r(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "))}}),$e=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/max-satisfying.js"(e,t){"use strict";var o=X(),s=_e();t.exports=(e,t,r)=>{let n=null,i=null,a=null;try{a=new s(t,r)}catch(e){return null}return e.forEach(e=>{!a.test(e)||n&&-1!==i.compare(e)||(n=e,i=new o(n,r))}),n}}}),Ee=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/min-satisfying.js"(e,t){"use strict";var o=X(),s=_e();t.exports=(e,t,r)=>{let n=null,i=null,a=null;try{a=new s(t,r)}catch(e){return null}return e.forEach(e=>{!a.test(e)||n&&1!==i.compare(e)||(n=e,i=new o(n,r))}),n}}}),Ce=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/min-version.js"(e,t){"use strict";var a=X(),r=_e(),o=me();t.exports=(t,e)=>{t=new r(t,e);let n=new a("0.0.0");if(t.test(n))return n;if(n=new a("0.0.0-0"),t.test(n))return n;n=null;for(let e=0;e<t.set.length;++e){var i=t.set[e];let r=null;i.forEach(e=>{var t=new a(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":r&&!o(t,r)||(r=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}),!r||n&&!o(n,r)||(n=r)}return n&&t.test(n)?n:null}}}),Oe=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/valid.js"(e,t){"use strict";var r=_e();t.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}}}),Ne=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/outside.js"(e,t){"use strict";var r=X(),p=Se(),m=p["ANY"],f=_e(),h=Ie(),g=me(),v=fe(),b=be(),y=ve();t.exports=(n,i,e,a)=>{n=new r(n,a),i=new f(i,a);let o,s,l,u,c;switch(e){case">":o=g,s=b,l=v,u=">",c=">=";break;case"<":o=v,s=y,l=g,u="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(h(n,i,a))return!1;for(let e=0;e<i.set.length;++e){var d=i.set[e];let t=null,r=null;if(d.forEach(e=>{e.semver===m&&(e=new p(">=0.0.0")),t=t||e,r=r||e,o(e.semver,t.semver,a)?t=e:l(e.semver,r.semver,a)&&(r=e)}),t.operator===u||t.operator===c)return!1;if((!r.operator||r.operator===u)&&s(n,r.semver))return!1;if(r.operator===c&&l(n,r.semver))return!1}return!0}}}),Ae=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/gtr.js"(e,t){"use strict";var n=Ne();t.exports=(e,t,r)=>n(e,t,">",r)}}),De=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/ltr.js"(e,t){"use strict";var n=Ne();t.exports=(e,t,r)=>n(e,t,"<",r)}}),Pe=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/intersects.js"(e,t){"use strict";var n=_e();t.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))}}),Te=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/simplify.js"(e,t){"use strict";var m=Ie(),f=se();t.exports=(e,t,r)=>{var n=[];let i=null,a=null;var o=e.sort((e,t)=>f(e,t,r));for(const p of o){var s=m(p,t,r);i=s?(a=p,i||p):(a&&n.push([i,a]),a=null)}i&&n.push([i,null]);var l,u,c=[];for([l,u]of n)l===u?c.push(l):u||l!==o[0]?u?l===o[0]?c.push("<="+u):c.push(l+" - "+u):c.push(">="+l):c.push("*");var e=c.join(" || "),d="string"==typeof t.raw?t.raw:String(t);return e.length<d.length?e:t}}}),ze=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/ranges/subset.js"(e,t){"use strict";var s=_e(),r=Se(),v=r["ANY"],b=Ie(),y=se(),w=[new r(">=0.0.0-0")],k=[new r(">=0.0.0")],_=(e,t,r)=>{return!e||!(0<(r=y(e.semver,t.semver,r)))&&(r<0||">"===t.operator&&">="===e.operator)?t:e},S=(e,t,r)=>{return!e||!((r=y(e.semver,t.semver,r))<0)&&(0<r||"<"===t.operator&&"<="===e.operator)?t:e};t.exports=(t,r,n={})=>{if(t!==r){t=new s(t,n),r=new s(r,n);let e=!1;e:for(const a of t.set){for(const o of r.set){var i=((s,l,u)=>{if(s!==l){if(1===s.length&&s[0].semver===v){if(1===l.length&&l[0].semver===v)return!0;s=u.includePrerelease?w:k}if(1===l.length&&l[0].semver===v){if(u.includePrerelease)return!0;l=k}var c=new Set,d,p;let e,t;for(const m of s)">"===m.operator||">="===m.operator?e=_(e,m,u):"<"===m.operator||"<="===m.operator?t=S(t,m,u):c.add(m.semver);if(1<c.size)return null;let r;if(e&&t){if(0<(r=y(e.semver,t.semver,u)))return null;if(0===r&&(">="!==e.operator||"<="!==t.operator))return null}for(const f of c){if(e&&!b(f,String(e),u))return null;if(t&&!b(f,String(t),u))return null;for(const h of l)if(!b(f,String(h),u))return!1;return!0}let n,i,a=!(!t||u.includePrerelease||!t.semver.prerelease.length)&&t.semver,o=!(!e||u.includePrerelease||!e.semver.prerelease.length)&&e.semver;a&&1===a.prerelease.length&&"<"===t.operator&&0===a.prerelease[0]&&(a=!1);for(const g of l){if(i=i||">"===g.operator||">="===g.operator,n=n||"<"===g.operator||"<="===g.operator,e)if(o&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===o.major&&g.semver.minor===o.minor&&g.semver.patch===o.patch&&(o=!1),">"===g.operator||">="===g.operator){if((d=_(e,g,u))===g&&d!==e)return!1}else if(">="===e.operator&&!g.test(e.semver))return!1;if(t)if(a&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===a.major&&g.semver.minor===a.minor&&g.semver.patch===a.patch&&(a=!1),"<"===g.operator||"<="===g.operator){if((p=S(t,g,u))===g&&p!==t)return!1}else if("<="===t.operator&&!g.test(t.semver))return!1;if(!g.operator&&(t||e)&&0!==r)return!1}if(e&&n&&!t&&0!==r)return!1;if(t&&i&&!e&&0!==r)return!1;if(o||a)return!1}return true})(a,o,n);if(e=e||null!==i,i)continue e}if(e)return!1}}return!0}}}),i=e({"node_modules/.pnpm/semver@7.8.5/node_modules/semver/index.js"(j,e){"use strict";var t=J(),r=V(),n=X(),i=W(),a=Y(),o=Q(),s=ee(),l=te(),u=re(),c=ne(),d=ie(),p=ae(),m=oe(),f=se(),h=le(),g=ue(),v=ce(),b=de(),y=pe(),w=me(),k=fe(),_=he(),S=ge(),I=ve(),x=be(),$=ye(),E=we(),C=ke(),O=Se(),N=_e(),A=Ie(),D=xe(),P=$e(),T=Ee(),z=Ce(),L=Oe(),U=Ne(),R=Ae(),M=De(),B=Pe(),F=Te(),Z=ze();e.exports={parse:a,valid:o,clean:s,inc:l,diff:u,major:c,minor:d,patch:p,prerelease:m,compare:f,rcompare:h,compareLoose:g,compareBuild:v,sort:b,rsort:y,gt:w,lt:k,eq:_,neq:S,gte:I,lte:x,cmp:$,coerce:E,truncate:C,Comparator:O,Range:N,satisfies:A,toComparators:D,maxSatisfying:P,minSatisfying:T,minVersion:z,validRange:L,outside:U,gtr:R,ltr:M,intersects:B,simplifyRange:F,subset:Z,SemVer:n,re:t.re,src:t.src,tokens:t.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:i.compareIdentifiers,rcompareIdentifiers:i.rcompareIdentifiers}}}),Z=e({"node_modules/.pnpm/dexie@4.4.5/node_modules/dexie/dist/dexie.js"(e,t){var r;r=function(){"use strict";var j=function(e,t){return(j=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}))(e,t)};var k=function(){return(k=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function L(e,t,r){if(r||2===arguments.length)for(var n,i=0,a=t.length;i<a;i++)!n&&i in t||((n=n||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}var d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,I=Object.keys,_=Array.isArray;function o(t,r){return"object"==typeof r&&I(r).forEach(function(e){t[e]=r[e]}),t}"undefined"==typeof Promise||d.Promise||(d.Promise=Promise);var U=Object.getPrototypeOf,R={}.hasOwnProperty;function v(e,t){return R.call(e,t)}function M(t,r){"function"==typeof r&&(r=r(U(t))),("undefined"==typeof Reflect?I:Reflect.ownKeys)(r).forEach(function(e){s(t,e,r[e])})}var B=Object.defineProperty;function s(e,t,r,n){B(e,t,o(r&&v(r,"get")&&"function"==typeof r.get?{get:r.get,set:r.set,configurable:!0}:{value:r,configurable:!0,writable:!0},n))}function F(t){return{from:function(e){return t.prototype=Object.create(e.prototype),s(t.prototype,"constructor",t),{extend:M.bind(null,t.prototype)}}}}var Z=Object.getOwnPropertyDescriptor;var V=[].slice;function G(e,t,r){return V.call(e,t,r)}function K(e,t){return t(e)}function q(e){if(!e)throw new Error("Assertion Failed")}function H(e){d.setImmediate?setImmediate(e):setTimeout(e,0)}function u(e,t){if("string"==typeof t&&v(e,t))return e[t];if(!t)return e;if("string"!=typeof t){for(var r=[],n=0,i=t.length;n<i;++n){var a=u(e,t[n]);r.push(a)}return r}var o,s=t.indexOf(".");return-1===s||null==(o=e[t.substr(0,s)])?void 0:u(o,t.substr(s+1))}function b(e,t,r){if(e&&void 0!==t&&!("isFrozen"in Object&&Object.isFrozen(e)))if("string"!=typeof t&&"length"in t){q("string"!=typeof r&&"length"in r);for(var n=0,i=t.length;n<i;++n)b(e,t[n],r[n])}else{var a=t.indexOf(".");if(-1!==a){var o=t.substr(0,a),a=t.substr(a+1);if(""===a)void 0===r?_(e)&&!isNaN(parseInt(o))?e.splice(o,1):delete e[o]:e[o]=r;else{var s=e[o];if(!s||!v(e,o)){if(void 0===r)return;s=e[o]={}}b(s,a,r)}}else void 0===r?_(e)&&!isNaN(parseInt(t))?e.splice(t,1):delete e[t]:e[t]=r}}function J(e){var t,r={};for(t in e)v(e,t)&&(r[t]=e[t]);return r}var W=[].concat;function X(e){return W.apply([],e)}var e="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(X([8,16,32,64].map(function(t){return["Int","Uint","Float"].map(function(e){return e+t+"Array"})}))).filter(function(e){return d[e]}),Y=new Set(e.map(function(e){return d[e]}));var Q=null;function ee(e){Q=new WeakMap;e=function e(t){if(!t||"object"!=typeof t)return t;var r=Q.get(t);if(r)return r;if(_(t)){r=[],Q.set(t,r);for(var n=0,i=t.length;n<i;++n)r.push(e(t[n]))}else if(Y.has(t.constructor))r=t;else{var a,o=U(t);for(a in r=o===Object.prototype?{}:Object.create(o),Q.set(t,r),t)v(t,a)&&(r[a]=e(t[a]))}return r}(e);return Q=null,e}var te={}.toString;function re(e){return te.call(e).slice(8,-1)}var ne="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",ie="symbol"==typeof ne?function(e){var t;return null!=e&&(t=e[ne])&&t.apply(e)}:function(){return null};function ae(e,t){t=e.indexOf(t);0<=t&&e.splice(t,1)}var oe={};function r(e){var t,r,n,i;if(1===arguments.length){if(_(e))return e.slice();if(this===oe&&"string"==typeof e)return[e];if(i=ie(e))for(r=[];!(n=i.next()).done;)r.push(n.value);else{if(null==e)return[e];if("number"!=typeof(t=e.length))return[e];for(r=new Array(t);t--;)r[t]=e[t]}}else for(t=arguments.length,r=new Array(t);t--;)r[t]=arguments[t];return r}var se="undefined"!=typeof Symbol?function(e){return"AsyncFunction"===e[Symbol.toStringTag]}:function(){return!1},e=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],t=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(e),le={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function ue(e,t){this.name=e,this.message=t}function ce(e,t){return e+". Errors: "+Object.keys(t).map(function(e){return t[e].toString()}).filter(function(e,t,r){return r.indexOf(e)===t}).join("\n")}function de(e,t,r,n){this.failures=t,this.failedKeys=n,this.successCount=r,this.message=ce(e,t)}function pe(e,t){this.name="BulkError",this.failures=Object.keys(t).map(function(e){return t[e]}),this.failuresByPos=t,this.message=ce(e,this.failures)}F(ue).from(Error).extend({toString:function(){return this.name+": "+this.message}}),F(de).from(ue),F(pe).from(ue);var me=t.reduce(function(e,t){return e[t]=t+"Error",e},{}),fe=ue,S=t.reduce(function(e,r){var n=r+"Error";function t(e,t){this.name=n,e?"string"==typeof e?(this.message="".concat(e).concat(t?"\n "+t:""),this.inner=t||null):"object"==typeof e&&(this.message="".concat(e.name," ").concat(e.message),this.inner=e):(this.message=le[r]||n,this.inner=null)}return F(t).from(fe),e[r]=t,e},{}),he=(S.Syntax=SyntaxError,S.Type=TypeError,S.Range=RangeError,e.reduce(function(e,t){return e[t+"Error"]=S[t],e},{}));e=t.reduce(function(e,t){return-1===["Syntax","Type","Range"].indexOf(t)&&(e[t+"Error"]=S[t]),e},{});function y(){}function ge(e){return e}function ve(t,r){return null==t||t===ge?r:function(e){return r(t(e))}}function be(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function ye(i,a){return i===y?a:function(){var e=i.apply(this,arguments),t=(void 0!==e&&(arguments[0]=e),this.onsuccess),r=this.onerror,n=(this.onsuccess=null,this.onerror=null,a.apply(this,arguments));return t&&(this.onsuccess=this.onsuccess?be(t,this.onsuccess):t),r&&(this.onerror=this.onerror?be(r,this.onerror):r),void 0!==n?n:e}}function we(r,n){return r===y?n:function(){r.apply(this,arguments);var e=this.onsuccess,t=this.onerror;this.onsuccess=this.onerror=null,n.apply(this,arguments),e&&(this.onsuccess=this.onsuccess?be(e,this.onsuccess):e),t&&(this.onerror=this.onerror?be(t,this.onerror):t)}}function ke(i,a){return i===y?a:function(e){var t=i.apply(this,arguments),e=(o(e,t),this.onsuccess),r=this.onerror,n=(this.onsuccess=null,this.onerror=null,a.apply(this,arguments));return e&&(this.onsuccess=this.onsuccess?be(e,this.onsuccess):e),r&&(this.onerror=this.onerror?be(r,this.onerror):r),void 0===t?void 0===n?void 0:n:o(t,n)}}function _e(e,t){return e===y?t:function(){return!1!==t.apply(this,arguments)&&e.apply(this,arguments)}}function Se(i,a){return i===y?a:function(){var e=i.apply(this,arguments);if(e&&"function"==typeof e.then){for(var t=this,r=arguments.length,n=new Array(r);r--;)n[r]=arguments[r];return e.then(function(){return a.apply(t,n)})}return a.apply(this,arguments)}}e.ModifyError=de,e.DexieError=ue,e.BulkError=pe;var c="undefined"!=typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function Ie(e){c=e}var xe={},$e=100,Ee="undefined"==typeof Promise?[]:(t=Promise.resolve(),"undefined"!=typeof crypto&&crypto.subtle?[Ee=crypto.subtle.digest("SHA-512",new Uint8Array([0])),U(Ee),t]:[t,U(t),t]),t=Ee[0],Ce=Ee[1],Ce=Ce&&Ce.then,Oe=t&&t.constructor,Ne=!!Ee[2];var Ae=function(e,t){Le.push([e,t]),Pe&&(queueMicrotask(Ke),Pe=!1)},De=!0,Pe=!0,Te=[],ze=[],je=ge,l={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:y,pgp:!1,env:{},finalize:y},x=l,Le=[],Ue=0,Re=[];function $(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var t=this._PSD=x;if("function"!=typeof e){if(e!==xe)throw new TypeError("Not a function");this._state=arguments[1],this._value=arguments[2],!1===this._state&&Fe(this,this._value)}else this._state=null,this._value=null,++t.ref,!function t(n,e){try{e(function(r){if(null===n._state){if(r===n)throw new TypeError("A promise cannot be resolved with itself.");var e=n._lib&&qe();r&&"function"==typeof r.then?t(n,function(e,t){r instanceof $?r._then(e,t):r.then(e,t)}):(n._state=!0,n._value=r,Ze(n)),e&&He()}},Fe.bind(null,n))}catch(e){Fe(n,e)}}(this,e)}var Me={get:function(){var s=x,t=et;function e(r,n){var i=this,a=!s.global&&(s!==x||t!==et),o=a&&!w(),e=new $(function(e,t){Ve(i,new Be(st(r,s,a,o),st(n,s,a,o),e,t,s))});return this._consoleTask&&(e._consoleTask=this._consoleTask),e}return e.prototype=xe,e},set:function(e){s(this,"then",e&&e.prototype===xe?Me:{get:function(){return e},set:Me.set})}};function Be(e,t,r,n,i){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=r,this.reject=n,this.psd=i}function Fe(e,t){var r,n;ze.push(t),null===e._state&&(r=e._lib&&qe(),t=je(t),e._state=!1,e._value=t,n=e,Te.some(function(e){return e._value===n._value})||Te.push(n),Ze(e),r)&&He()}function Ze(e){var t=e._listeners;e._listeners=[];for(var r=0,n=t.length;r<n;++r)Ve(e,t[r]);var i=e._PSD;--i.ref||i.finalize(),0===Ue&&(++Ue,Ae(function(){0==--Ue&&Je()},[]))}function Ve(e,t){if(null===e._state)e._listeners.push(t);else{var r=e._state?t.onFulfilled:t.onRejected;if(null===r)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++Ue,Ae(Ge,[r,e,t])}}function Ge(e,t,r){try{var n,i=t._value;!t._state&&ze.length&&(ze=[]),n=c&&t._consoleTask?t._consoleTask.run(function(){return e(i)}):e(i),t._state||-1!==ze.indexOf(i)||!function(e){var t=Te.length;for(;t;)if(Te[--t]._value===e._value)return Te.splice(t,1)}(t),r.resolve(n)}catch(e){r.reject(e)}finally{0==--Ue&&Je(),--r.psd.ref||r.psd.finalize()}}function Ke(){ot(l,function(){qe()&&He()})}function qe(){var e=De;return Pe=De=!1,e}function He(){var e,t,r;do{for(;0<Le.length;)for(e=Le,Le=[],r=e.length,t=0;t<r;++t){var n=e[t];n[0].apply(null,n[1])}}while(0<Le.length);Pe=De=!0}function Je(){for(var e=Te,t=(Te=[],e.forEach(function(e){e._PSD.onunhandled.call(null,e._value,e)}),Re.slice(0)),r=t.length;r;)t[--r]()}function We(e){return new $(xe,!1,e)}function E(r,n){var i=x;return function(){var e=qe(),t=x;try{return p(i,!0),r.apply(this,arguments)}catch(e){n&&n(e)}finally{p(t,!1),e&&He()}}}M($.prototype,{then:Me,_then:function(e,t){Ve(this,new Be(null,null,e,t,x))},catch:function(e){var t,r;return 1===arguments.length?this.then(null,e):(t=e,r=arguments[1],"function"==typeof t?this.then(null,function(e){return(e instanceof t?r:We)(e)}):this.then(null,function(e){return(e&&e.name===t?r:We)(e)}))},finally:function(t){return this.then(function(e){return $.resolve(t()).then(function(){return e})},function(e){return $.resolve(t()).then(function(){return We(e)})})},timeout:function(n,i){var a=this;return n<1/0?new $(function(e,t){var r=setTimeout(function(){return t(new S.Timeout(i))},n);a.then(e,t).finally(clearTimeout.bind(null,r))}):this}}),"undefined"!=typeof Symbol&&Symbol.toStringTag&&s($.prototype,Symbol.toStringTag,"Dexie.Promise"),l.env=at(),M($,{all:function(){var a=r.apply(null,arguments).map(nt);return new $(function(r,n){0===a.length&&r([]);var i=a.length;a.forEach(function(e,t){return $.resolve(e).then(function(e){a[t]=e,--i||r(a)},n)})})},resolve:function(r){return r instanceof $?r:r&&"function"==typeof r.then?new $(function(e,t){r.then(e,t)}):new $(xe,!0,r)},reject:We,race:function(){var e=r.apply(null,arguments).map(nt);return new $(function(t,r){e.map(function(e){return $.resolve(e).then(t,r)})})},PSD:{get:function(){return x},set:function(e){return x=e}},totalEchoes:{get:function(){return et}},newPSD:g,usePSD:ot,scheduler:{get:function(){return Ae},set:function(e){Ae=e}},rejectionMapper:{get:function(){return je},set:function(e){je=e}},follow:function(i,r){return new $(function(e,t){return g(function(r,n){var e=x;e.unhandleds=[],e.onunhandled=n,e.finalize=be(function(){var t,e=this;t=function(){0===e.unhandleds.length?r():n(e.unhandleds[0])},Re.push(function e(){t(),Re.splice(Re.indexOf(e),1)}),++Ue,Ae(function(){0==--Ue&&Je()},[])},e.finalize),i()},r,e,t)})}}),Oe&&(Oe.allSettled&&s($,"allSettled",function(){var e=r.apply(null,arguments).map(nt);return new $(function(r){0===e.length&&r([]);var n=e.length,i=new Array(n);e.forEach(function(e,t){return $.resolve(e).then(function(e){return i[t]={status:"fulfilled",value:e}},function(e){return i[t]={status:"rejected",reason:e}}).then(function(){return--n||r(i)})})})}),Oe.any&&"undefined"!=typeof AggregateError&&s($,"any",function(){var e=r.apply(null,arguments).map(nt);return new $(function(r,n){0===e.length&&n(new AggregateError([]));var i=e.length,a=new Array(i);e.forEach(function(e,t){return $.resolve(e).then(function(e){return r(e)},function(e){a[t]=e,--i||n(new AggregateError(a))})})})}),Oe.withResolvers)&&($.withResolvers=Oe.withResolvers);var a={awaits:0,echoes:0,id:0},Xe=0,Ye=[],Qe=0,et=0,tt=0;function g(e,t,r,n){var i=x,a=Object.create(i),t=(a.parent=i,a.ref=0,a.global=!1,a.id=++tt,l.env,a.env=Ne?{Promise:$,PromiseProp:{value:$,configurable:!0,writable:!0},all:$.all,race:$.race,allSettled:$.allSettled,any:$.any,resolve:$.resolve,reject:$.reject}:{},t&&o(a,t),++i.ref,a.finalize=function(){--this.parent.ref||this.parent.finalize()},ot(a,e,r,n));return 0===a.ref&&a.finalize(),t}function rt(){return a.id||(a.id=++Xe),++a.awaits,a.echoes+=$e,a.id}function w(){return!!a.awaits&&(0==--a.awaits&&(a.id=0),a.echoes=a.awaits*$e,!0)}function nt(e){return a.echoes&&e&&e.constructor===Oe?(rt(),e.then(function(e){return w(),e},function(e){return w(),C(e)})):e}function it(){var e=Ye[Ye.length-1];Ye.pop(),p(e,!1)}function p(e,t){var r,n,i=x;(t?!a.echoes||Qe++&&e===x:!Qe||--Qe&&e===x)||queueMicrotask(t?function(e){++et,a.echoes&&0!=--a.echoes||(a.echoes=a.awaits=a.id=0),Ye.push(x),p(e,!0)}.bind(null,e):it),e!==x&&(x=e,i===l&&(l.env=at()),Ne)&&(r=l.env.Promise,n=e.env,i.global||e.global)&&(Object.defineProperty(d,"Promise",n.PromiseProp),r.all=n.all,r.race=n.race,r.resolve=n.resolve,r.reject=n.reject,n.allSettled&&(r.allSettled=n.allSettled),n.any)&&(r.any=n.any)}function at(){var e=d.Promise;return Ne?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(d,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject}:{}}function ot(e,t,r,n,i){var a=x;try{return p(e,!0),t(r,n,i)}finally{p(a,!1)}}function st(t,r,n,i){return"function"!=typeof t?t:function(){var e=x;n&&rt(),p(r,!0);try{return t.apply(this,arguments)}finally{p(e,!1),i&&queueMicrotask(w)}}}function lt(e){Promise===Oe&&0===a.echoes?0===Qe?e():enqueueNativeMicroTask(e):setTimeout(e,0)}-1===(""+Ce).indexOf("[native code]")&&(rt=w=y);var C=$.reject;var ut=String.fromCharCode(65535),O="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",ct="String expected.",dt="__dbnames",pt="readonly",mt="readwrite";function ft(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}var ht={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function gt(t){return"string"!=typeof t||/\./.test(t)?function(e){return e}:function(e){return void 0===e[t]&&t in e&&delete(e=ee(e))[t],e}}function vt(){throw S.Type("Entity instances must never be new:ed. Instances are generated by the framework bypassing the constructor.")}function N(e,t){try{var r=bt(e),n=bt(t);if(r!==n)return"Array"===r?1:"Array"===n?-1:"binary"===r?1:"binary"===n?-1:"string"===r?1:"string"===n?-1:"Date"===r?1:"Date"!==n?NaN:-1;switch(r){case"number":case"Date":case"string":return t<e?1:e<t?-1:0;case"binary":for(var i=yt(e),a=yt(t),o=i.length,s=a.length,l=o<s?o:s,u=0;u<l;++u)if(i[u]!==a[u])return i[u]<a[u]?-1:1;return o===s?0:o<s?-1:1;case"Array":for(var c=e,d=t,p=c.length,m=d.length,f=p<m?p:m,h=0;h<f;++h){var g=N(c[h],d[h]);if(0!==g)return g}return p===m?0:p<m?-1:1}}catch(e){}return NaN}function bt(e){var t=typeof e;return"object"==t&&(ArrayBuffer.isView(e)||"ArrayBuffer"===(t=re(e)))?"binary":t}function yt(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}function wt(t,r,n){var e=t.schema.yProps;return e?(r&&0<n.numFailures&&(r=r.filter(function(e,t){return!n.failures[t]})),Promise.all(e.map(function(e){e=e.updatesTable;return r?t.db.table(e).where("k").anyOf(r).delete():t.db.table(e).clear()})).then(function(){return n})):n}_t.prototype.execute=function(e){var t=this["@@propmod"];if(void 0!==t.add){var r=t.add;if(_(r))return L(L([],_(e)?e:[],!0),r,!0).sort();if("number"==typeof r)return(Number(e)||0)+r;if("bigint"==typeof r)try{return BigInt(e)+r}catch(e){return BigInt(0)+r}throw new TypeError("Invalid term ".concat(r))}if(void 0!==t.remove){var n=t.remove;if(_(n))return _(e)?e.filter(function(e){return!n.includes(e)}).sort():[];if("number"==typeof n)return Number(e)-n;if("bigint"==typeof n)try{return BigInt(e)-n}catch(e){return BigInt(0)-n}throw new TypeError("Invalid subtrahend ".concat(n))}r=null==(r=t.replacePrefix)?void 0:r[0];return r&&"string"==typeof e&&e.startsWith(r)?t.replacePrefix[1]+e.substring(r.length):e};var kt=_t;function _t(e){this["@@propmod"]=e}function St(e,t){for(var r=I(t),n=r.length,i=!1,a=0;a<n;++a){var o=r[a],s=t[o],l=u(e,o);s instanceof kt?(b(e,o,s.execute(l)),i=!0):l!==s&&(b(e,o,s),i=!0)}return i}n.prototype._trans=function(e,n,t){var r=this._tx||x.trans,i=this.name,a=c&&"undefined"!=typeof console&&console.createTask&&console.createTask("Dexie: ".concat("readonly"===e?"read":"write"," ").concat(this.name));function o(e,t,r){if(r.schema[i])return n(r.idbtrans,r);throw new S.NotFound("Table "+i+" not part of transaction")}var s=qe();try{var l=r&&r.db._novip===this.db._novip?r===x.trans?r._promise(e,o,t):g(function(){return r._promise(e,o,t)},{trans:r,transless:x.transless||x}):function t(r,n,i,a){if(r.idbdb&&(r._state.openComplete||x.letThrough||r._vip)){var o=r._createTransaction(n,i,r._dbSchema);try{o.create(),r._state.PR1398_maxLoop=3}catch(e){return e.name===me.InvalidState&&r.isOpen()&&0<--r._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),r.close({disableAutoOpen:!1}),r.open().then(function(){return t(r,n,i,a)})):C(e)}return o._promise(n,function(e,t){return g(function(){return x.trans=o,a(e,t,o)})}).then(function(e){if("readwrite"===n)try{o.idbtrans.commit()}catch(e){}return"readonly"===n?e:o._completion.then(function(){return e})})}if(r._state.openComplete)return C(new S.DatabaseClosed(r._state.dbOpenError));if(!r._state.isBeingOpened){if(!r._state.autoOpen)return C(new S.DatabaseClosed);r.open().catch(y)}return r._state.dbReadyPromise.then(function(){return t(r,n,i,a)})}(this.db,e,[this.name],o);return a&&(l._consoleTask=a,l=l.catch(function(e){return console.trace(e),C(e)})),l}finally{s&&He()}},n.prototype.get=function(t,e){var r=this;return t&&t.constructor===Object?this.where(t).first(e):null==t?C(new S.Type("Invalid argument to Table.get()")):this._trans("readonly",function(e){return r.core.get({trans:e,key:t}).then(function(e){return r.hook.reading.fire(e)})}).then(e)},n.prototype.where=function(a){if("string"==typeof a)return new this.db.WhereClause(this,a);if(_(a))return new this.db.WhereClause(this,"[".concat(a.join("+"),"]"));var r=I(a);if(1===r.length)return this.where(r[0]).equals(a[r[0]]);var e=this.schema.indexes.concat(this.schema.primKey).filter(function(t){if(t.compound&&r.every(function(e){return 0<=t.keyPath.indexOf(e)})){for(var e=0;e<r.length;++e)if(-1===r.indexOf(t.keyPath[e]))return!1;return!0}return!1}).sort(function(e,t){return e.keyPath.length-t.keyPath.length})[0];if(e&&this.db._maxKey!==ut)return t=e.keyPath.slice(0,r.length),this.where(t).equals(t.map(function(e){return a[e]}));!e&&c&&console.warn("The query ".concat(JSON.stringify(a)," on ").concat(this.name," would benefit from a ")+"compound index [".concat(r.join("+"),"]"));var o=this.schema.idxByName;function s(e,t){return 0===N(e,t)}var t=r.reduce(function(e,t){var r=e[0],e=e[1],n=o[t],i=a[t];return[r||n,r||!n?ft(e,n&&n.multi?function(e){e=u(e,t);return _(e)&&e.some(function(e){return s(i,e)})}:function(e){return s(i,u(e,t))}):e]},[null,null]),n=t[0],t=t[1];return n?this.where(n.name).equals(a[n.keyPath]).filter(t):e?this.filter(t):this.where(r).equals("")},n.prototype.filter=function(e){return this.toCollection().and(e)},n.prototype.count=function(e){return this.toCollection().count(e)},n.prototype.offset=function(e){return this.toCollection().offset(e)},n.prototype.limit=function(e){return this.toCollection().limit(e)},n.prototype.each=function(e){return this.toCollection().each(e)},n.prototype.toArray=function(e){return this.toCollection().toArray(e)},n.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},n.prototype.orderBy=function(e){return new this.db.Collection(new this.db.WhereClause(this,_(e)?"[".concat(e.join("+"),"]"):e))},n.prototype.reverse=function(){return this.toCollection().reverse()},n.prototype.mapToClass=function(n){for(var a=this.db,o=this.name,i=((this.schema.mappedClass=n).prototype instanceof vt&&(n=function(e){var t=i,r=e;if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}function i(){return null!==e&&e.apply(this,arguments)||this}return j(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n),Object.defineProperty(i.prototype,"db",{get:function(){return a},enumerable:!1,configurable:!0}),i.prototype.table=function(){return o},i}(n)),new Set),e=n.prototype;e;e=U(e))Object.getOwnPropertyNames(e).forEach(function(e){return i.add(e)});function t(e){if(!e)return e;var t,r=Object.create(n.prototype);for(t in e)if(!i.has(t))try{r[t]=e[t]}catch(e){}return r}return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=t,this.hook("reading",t),n},n.prototype.defineClass=function(){return this.mapToClass(function(e){o(this,e)})},n.prototype.add=function(t,r){var n=this,e=this.schema.primKey,i=e.auto,a=e.keyPath,o=t;return a&&i&&(o=gt(a)(t)),this._trans("readwrite",function(e){return n.core.mutate({trans:e,type:"add",keys:null!=r?[r]:null,values:[o]})}).then(function(e){return e.numFailures?$.reject(e.failures[0]):e.lastResult}).then(function(e){if(a)try{b(t,a,e)}catch(e){}return e})},n.prototype.upsert=function(n,i){var a=this,o=this.schema.primKey.keyPath;return this._trans("readwrite",function(r){return a.core.get({trans:r,key:n}).then(function(t){var e=null!=t?t:{};return St(e,i),o&&b(e,o,n),a.core.mutate({trans:r,type:"put",values:[e],keys:[n],upsert:!0,updates:{keys:[n],changeSpecs:[i]}}).then(function(e){return e.numFailures?$.reject(e.failures[0]):!!t})})})},n.prototype.update=function(e,t){return"object"!=typeof e||_(e)?this.where(":id").equals(e).modify(t):void 0===(e=u(e,this.schema.primKey.keyPath))?C(new S.InvalidArgument("Given object does not contain its primary key")):this.where(":id").equals(e).modify(t)},n.prototype.put=function(t,r){var n=this,e=this.schema.primKey,i=e.auto,a=e.keyPath,o=t;return a&&i&&(o=gt(a)(t)),this._trans("readwrite",function(e){return n.core.mutate({trans:e,type:"put",values:[o],keys:null!=r?[r]:null})}).then(function(e){return e.numFailures?$.reject(e.failures[0]):e.lastResult}).then(function(e){if(a)try{b(t,a,e)}catch(e){}return e})},n.prototype.delete=function(t){var r=this;return this._trans("readwrite",function(e){return r.core.mutate({trans:e,type:"delete",keys:[t]}).then(function(e){return wt(r,[t],e)}).then(function(e){return e.numFailures?$.reject(e.failures[0]):void 0})})},n.prototype.clear=function(){var t=this;return this._trans("readwrite",function(e){return t.core.mutate({trans:e,type:"deleteRange",range:ht}).then(function(e){return wt(t,null,e)})}).then(function(e){return e.numFailures?$.reject(e.failures[0]):void 0})},n.prototype.bulkGet=function(t){var r=this;return this._trans("readonly",function(e){return r.core.getMany({keys:t,trans:e}).then(function(e){return e.map(function(e){return r.hook.reading.fire(e)})})})},n.prototype.bulkAdd=function(n,e,t){var a=this,o=Array.isArray(e)?e:void 0,s=(t=t||(o?void 0:e))?t.allKeys:void 0;return this._trans("readwrite",function(e){var t=a.schema.primKey,r=t.auto,t=t.keyPath;if(t&&o)throw new S.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(o&&o.length!==n.length)throw new S.InvalidArgument("Arguments objects and keys must have the same length");var i=n.length,r=t&&r?n.map(gt(t)):n;return a.core.mutate({trans:e,type:"add",keys:o,values:r,wantResults:s}).then(function(e){var t=e.numFailures,r=e.results,n=e.lastResult,e=e.failures;if(0===t)return s?r:n;throw new pe("".concat(a.name,".bulkAdd(): ").concat(t," of ").concat(i," operations failed"),e)})})},n.prototype.bulkPut=function(n,e,t){var a=this,o=Array.isArray(e)?e:void 0,s=(t=t||(o?void 0:e))?t.allKeys:void 0;return this._trans("readwrite",function(e){var t=a.schema.primKey,r=t.auto,t=t.keyPath;if(t&&o)throw new S.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(o&&o.length!==n.length)throw new S.InvalidArgument("Arguments objects and keys must have the same length");var i=n.length,r=t&&r?n.map(gt(t)):n;return a.core.mutate({trans:e,type:"put",keys:o,values:r,wantResults:s}).then(function(e){var t=e.numFailures,r=e.results,n=e.lastResult,e=e.failures;if(0===t)return s?r:n;throw new pe("".concat(a.name,".bulkPut(): ").concat(t," of ").concat(i," operations failed"),e)})})},n.prototype.bulkUpdate=function(t){var p=this,r=this.core,n=t.map(function(e){return e.key}),i=t.map(function(e){return e.changes}),m=[];return this._trans("readwrite",function(e){return r.getMany({trans:e,keys:n,cache:"clone"}).then(function(u){var c=[],d=[],l=(t.forEach(function(e,t){var r=e.key,n=e.changes,i=u[t];if(i){for(var a=0,o=Object.keys(n);a<o.length;a++){var s=o[a],l=n[s];if(s===p.schema.primKey.keyPath){if(0!==N(l,r))throw new S.Constraint("Cannot update primary key in bulkUpdate()")}else b(i,s,l)}m.push(t),c.push(r),d.push(i)}}),c.length);return r.mutate({trans:e,type:"put",keys:c,values:d,updates:{keys:n,changeSpecs:i}}).then(function(e){var t=e.numFailures,r=e.failures;if(0===t)return l;for(var n=0,i=Object.keys(r);n<i.length;n++){var a,o=i[n],s=m[Number(o)];null!=s&&(a=r[o],delete r[o],r[s]=a)}throw new pe("".concat(p.name,".bulkUpdate(): ").concat(t," of ").concat(l," operations failed"),r)})})})},n.prototype.bulkDelete=function(t){var n=this,i=t.length;return this._trans("readwrite",function(e){return n.core.mutate({trans:e,type:"delete",keys:t}).then(function(e){return wt(n,t,e)})}).then(function(e){var t=e.numFailures,r=e.lastResult,e=e.failures;if(0===t)return r;throw new pe("".concat(n.name,".bulkDelete(): ").concat(t," of ").concat(i," operations failed"),e)})};var It=n;function n(){}function xt(i){function t(e,t){if(t){for(var r=arguments.length,n=new Array(r-1);--r;)n[r-1]=arguments[r];return o[e].subscribe.apply(null,n),i}if("string"==typeof e)return o[e]}var o={};t.addEventType=s;for(var e=1,r=arguments.length;e<r;++e)s(arguments[e]);return t;function s(e,r,n){var i,a;if("object"!=typeof e)return r=r||_e,a={subscribers:[],fire:n=n||y,subscribe:function(e){-1===a.subscribers.indexOf(e)&&(a.subscribers.push(e),a.fire=r(a.fire,e))},unsubscribe:function(t){a.subscribers=a.subscribers.filter(function(e){return e!==t}),a.fire=a.subscribers.reduce(r,n)}},o[e]=t[e]=a;I(i=e).forEach(function(e){var t=i[e];if(_(t))s(e,i[e][0],i[e][1]);else{if("asap"!==t)throw new S.InvalidArgument("Invalid event config");var r=s(e,ge,function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];r.subscribers.forEach(function(e){H(function(){e.apply(null,t)})})})}})}}function $t(e,t){return F(t).from({prototype:e}),t}function Et(e,t){return!(e.filter||e.algorithm||e.or)&&(t?e.justLimit:!e.replayFilter)}function Ct(e,t){e.filter=ft(e.filter,t)}function Ot(e,t,r){var n=e.replayFilter;e.replayFilter=n?function(){return ft(n(),t())}:t,e.justLimit=r&&!n}function Nt(e,t){if(e.isPrimKey)return t.primaryKey;var r=t.getIndexByKeyPath(e.index);if(r)return r;throw new S.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed")}function At(e,t,r){var n=Nt(e,t.schema);return t.openCursor({trans:r,values:!e.keysOnly,reverse:"prev"===e.dir,unique:!!e.unique,query:{index:n,range:e.range}})}function Dt(e,a,t,r){var o,n,s=e.replayFilter?ft(e.filter,e.replayFilter()):e.filter;return e.or?(o={},n=function(e,t,r){var n,i;s&&!s(t,r,function(e){return t.stop(e)},function(e){return t.fail(e)})||("[object ArrayBuffer]"===(i=""+(n=t.primaryKey))&&(i=""+new Uint8Array(n)),v(o,i))||(o[i]=!0,a(e,t,r))},Promise.all([e.or._iterate(n,t),Pt(At(e,r,t),e.algorithm,n,!e.keysOnly&&e.valueMapper)])):Pt(At(e,r,t),ft(e.algorithm,s),a,!e.keysOnly&&e.valueMapper)}function Pt(e,n,i,a){var o=E(a?function(e,t,r){return i(a(e),t,r)}:i);return e.then(function(r){if(r)return r.start(function(){var t=function(){return r.continue()};n&&!n(r,function(e){return t=e},function(e){r.stop(e),t=y},function(e){r.fail(e),t=y})||o(r.value,r,function(e){return t=e}),t()})})}i.prototype._read=function(e,t){var r=this._ctx;return r.error?r.table._trans(null,C.bind(null,r.error)):r.table._trans("readonly",e).then(t)},i.prototype._write=function(e){var t=this._ctx;return t.error?t.table._trans(null,C.bind(null,t.error)):t.table._trans("readwrite",e,"locked")},i.prototype._addAlgorithm=function(e){var t=this._ctx;t.algorithm=ft(t.algorithm,e)},i.prototype._iterate=function(e,t){return Dt(this._ctx,e,t,this._ctx.table.core)},i.prototype.clone=function(e){var t=Object.create(this.constructor.prototype),r=Object.create(this._ctx);return e&&o(r,e),t._ctx=r,t},i.prototype.raw=function(){return this._ctx.valueMapper=null,this},i.prototype.each=function(t){var r=this._ctx;return this._read(function(e){return Dt(r,t,e,r.table.core)})},i.prototype.count=function(e){var i=this;return this._read(function(e){var t,r=i._ctx,n=r.table.core;return Et(r,!0)?n.count({trans:e,query:{index:Nt(r,n.schema),range:r.range}}).then(function(e){return Math.min(e,r.limit)}):(t=0,Dt(r,function(){return++t,!1},e,n).then(function(){return t}))}).then(e)},i.prototype.sortBy=function(e,t){var r=e.split(".").reverse(),n=r[0],i=r.length-1;function a(e,t){return t?a(e[r[t]],t-1):e[n]}var o="next"===this._ctx.dir?1:-1;function s(e,t){return N(a(e,i),a(t,i))*o}return this.toArray(function(e){return e.slice().sort(s)}).then(t)},i.prototype.toArray=function(e){var a=this;return this._read(function(e){var t,r,n,i=a._ctx;return Et(i,!0)&&0<i.limit?(t=i.valueMapper,r=Nt(i,i.table.core.schema),i.table.core.query({trans:e,limit:i.limit,values:!0,direction:"prev"===i.dir?"prev":void 0,query:{index:r,range:i.range}}).then(function(e){e=e.result;return t?e.map(t):e})):(n=[],Dt(i,function(e){return n.push(e)},e,i.table.core).then(function(){return n}))},e)},i.prototype.offset=function(t){var e=this._ctx;return t<=0||(e.offset+=t,Et(e)?Ot(e,function(){var r=t;return function(e,t){return 0===r||(1===r?--r:t(function(){e.advance(r),r=0}),!1)}}):Ot(e,function(){var e=t;return function(){return--e<0}})),this},i.prototype.limit=function(e){return this._ctx.limit=Math.min(this._ctx.limit,e),Ot(this._ctx,function(){var n=e;return function(e,t,r){return--n<=0&&t(r),0<=n}},!0),this},i.prototype.until=function(n,i){return Ct(this._ctx,function(e,t,r){return!n(e.value)||(t(r),i)}),this},i.prototype.first=function(e){return this.limit(1).toArray(function(e){return e[0]}).then(e)},i.prototype.last=function(e){return this.reverse().first(e)},i.prototype.filter=function(t){var e;return Ct(this._ctx,function(e){return t(e.value)}),(e=this._ctx).isMatch=ft(e.isMatch,t),this},i.prototype.and=function(e){return this.filter(e)},i.prototype.or=function(e){return new this.db.WhereClause(this._ctx.table,e,this)},i.prototype.reverse=function(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},i.prototype.desc=function(){return this.reverse()},i.prototype.eachKey=function(r){var e=this._ctx;return e.keysOnly=!e.isMatch,this.each(function(e,t){r(t.key,t)})},i.prototype.eachUniqueKey=function(e){return this._ctx.unique="unique",this.eachKey(e)},i.prototype.eachPrimaryKey=function(r){var e=this._ctx;return e.keysOnly=!e.isMatch,this.each(function(e,t){r(t.primaryKey,t)})},i.prototype.keys=function(e){var t=this._ctx,r=(t.keysOnly=!t.isMatch,[]);return this.each(function(e,t){r.push(t.key)}).then(function(){return r}).then(e)},i.prototype.primaryKeys=function(e){var r=this._ctx;if(Et(r,!0)&&0<r.limit)return this._read(function(e){var t=Nt(r,r.table.core.schema);return r.table.core.query({trans:e,values:!1,limit:r.limit,direction:"prev"===r.dir?"prev":void 0,query:{index:t,range:r.range}})}).then(function(e){return e.result}).then(e);r.keysOnly=!r.isMatch;var n=[];return this.each(function(e,t){n.push(t.primaryKey)}).then(function(){return n}).then(e)},i.prototype.uniqueKeys=function(e){return this._ctx.unique="unique",this.keys(e)},i.prototype.firstKey=function(e){return this.limit(1).keys(function(e){return e[0]}).then(e)},i.prototype.lastKey=function(e){return this.reverse().firstKey(e)},i.prototype.distinct=function(){var r,e=this._ctx,e=e.index&&e.table.schema.idxByName[e.index];return e&&e.multi&&(r={},Ct(this._ctx,function(e){var e=e.primaryKey.toString(),t=v(r,e);return r[e]=!0,!t})),this},i.prototype.modify=function(_){var r=this,S=this._ctx;return this._write(function(f){function h(e,t){var r=t.failures,t=t.numFailures;s+=e-t;for(var n=0,i=I(r);n<i.length;n++){var a=i[n];o.push(r[a])}}var g="function"==typeof _?_:function(e){return St(e,_)},v=S.table.core,e=v.schema.primaryKey,b=e.outbound,y=e.extractKey,w=200,e=r.db._options.modifyChunkSize,o=(e&&(w="object"==typeof e?e[v.name]||e["*"]||200:e),[]),s=0,t=[],k=_===zt;return r.clone().primaryKeys().then(function(d){function p(l){var u=Math.min(w,d.length-l),c=d.slice(l,l+u);return(k?Promise.resolve([]):v.getMany({trans:f,keys:c,cache:"immutable"})).then(function(e){var r=[],t=[],n=b?[]:null,i=k?c:[];if(!k)for(var a=0;a<u;++a){var o=e[a],s={value:ee(o),primKey:d[l+a]};!1!==g.call(s,s.value,s)&&(null==s.value?i.push(d[l+a]):b||0===N(y(o),y(s.value))?(t.push(s.value),b&&n.push(d[l+a])):(i.push(d[l+a]),r.push(s.value)))}return Promise.resolve(0<r.length&&v.mutate({trans:f,type:"add",values:r}).then(function(e){for(var t in e.failures)i.splice(parseInt(t),1);h(r.length,e)})).then(function(){return(0<t.length||m&&"object"==typeof _)&&v.mutate({trans:f,type:"put",keys:n,values:t,criteria:m,changeSpec:"function"!=typeof _&&_,isAdditionalChunk:0<l}).then(function(e){return h(t.length,e)})}).then(function(){return(0<i.length||m&&k)&&v.mutate({trans:f,type:"delete",keys:i,criteria:m,isAdditionalChunk:0<l}).then(function(e){return wt(S.table,i,e)}).then(function(e){return h(i.length,e)})}).then(function(){return d.length>l+u&&p(l+w)})})}var m=Et(S)&&S.limit===1/0&&("function"!=typeof _||k)&&{index:S.index,range:S.range};return p(0).then(function(){if(0<o.length)throw new de("Error modifying one or more objects",o,s,t);return d.length})})})},i.prototype.delete=function(){var i=this._ctx,r=i.range;return!Et(i)||i.table.schema.yProps||!i.isPrimKey&&3!==r.type?this.modify(zt):this._write(function(e){var t=i.table.core.schema.primaryKey,n=r;return i.table.core.count({trans:e,query:{index:t,range:n}}).then(function(r){return i.table.core.mutate({trans:e,type:"deleteRange",range:n}).then(function(e){var t=e.failures,e=e.numFailures;if(e)throw new de("Could not delete some values",Object.keys(t).map(function(e){return t[e]}),r-e);return r-e})})})};var Tt=i;function i(){}var zt=function(e,t){return t.value=null};function jt(e,t){return e<t?-1:e===t?0:1}function Lt(e,t){return t<e?-1:e===t?0:1}function A(e,t,r){e=e instanceof Bt?new e.Collection(e):e;return e._ctx.error=new(r||TypeError)(t),e}function Ut(e){return new e.Collection(e,function(){return Mt("")}).limit(0)}function Rt(e,l,r,n){var i,u,c,d,p,m,f,h=r.length;if(!r.every(function(e){return"string"==typeof e}))return A(e,ct);function t(e){i="next"===e?function(e){return e.toUpperCase()}:function(e){return e.toLowerCase()},u="next"===e?function(e){return e.toLowerCase()}:function(e){return e.toUpperCase()},c="next"===e?jt:Lt;var t=r.map(function(e){return{lower:u(e),upper:i(e)}}).sort(function(e,t){return c(e.lower,t.lower)});d=t.map(function(e){return e.upper}),p=t.map(function(e){return e.lower}),f="next"===(m=e)?"":n}t("next");var e=new e.Collection(e,function(){return D(d[0],p[h-1]+n)}),g=(e._ondirectionchange=function(e){t(e)},0);return e._addAlgorithm(function(e,t,r){var n=e.key;if("string"==typeof n){var i=u(n);if(l(i,p,g))return!0;for(var a=null,o=g;o<h;++o){var s=function(e,t,r,n,i,a){for(var o=Math.min(e.length,n.length),s=-1,l=0;l<o;++l){var u=t[l];if(u!==n[l])return i(e[l],r[l])<0?e.substr(0,l)+r[l]+r.substr(l+1):i(e[l],n[l])<0?e.substr(0,l)+n[l]+r.substr(l+1):0<=s?e.substr(0,s)+t[s]+r.substr(s+1):null;i(e[l],u)<0&&(s=l)}return o<n.length&&"next"===a?e+r.substr(e.length):o<e.length&&"prev"===a?e.substr(0,r.length):s<0?null:e.substr(0,s)+n[s]+r.substr(s+1)}(n,i,d[o],p[o],c,m);null===s&&null===a?g=o+1:(null===a||0<c(a,s))&&(a=s)}t(null!==a?function(){e.continue(a+f)}:r)}return!1}),e}function D(e,t,r,n){return{type:2,lower:e,upper:t,lowerOpen:r,upperOpen:n}}function Mt(e){return{type:1,lower:e,upper:e}}Object.defineProperty(m.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),m.prototype.between=function(e,t,r,n){r=!1!==r,n=!0===n;try{return 0<this._cmp(e,t)||0===this._cmp(e,t)&&(r||n)&&(!r||!n)?Ut(this):new this.Collection(this,function(){return D(e,t,!r,!n)})}catch(e){return A(this,O)}},m.prototype.equals=function(e){return null==e?A(this,O):new this.Collection(this,function(){return Mt(e)})},m.prototype.above=function(e){return null==e?A(this,O):new this.Collection(this,function(){return D(e,void 0,!0)})},m.prototype.aboveOrEqual=function(e){return null==e?A(this,O):new this.Collection(this,function(){return D(e,void 0,!1)})},m.prototype.below=function(e){return null==e?A(this,O):new this.Collection(this,function(){return D(void 0,e,!1,!0)})},m.prototype.belowOrEqual=function(e){return null==e?A(this,O):new this.Collection(this,function(){return D(void 0,e)})},m.prototype.startsWith=function(e){return"string"!=typeof e?A(this,ct):this.between(e,e+ut,!0,!0)},m.prototype.startsWithIgnoreCase=function(e){return""===e?this.startsWith(e):Rt(this,function(e,t){return 0===e.indexOf(t[0])},[e],ut)},m.prototype.equalsIgnoreCase=function(e){return Rt(this,function(e,t){return e===t[0]},[e],"")},m.prototype.anyOfIgnoreCase=function(){var e=r.apply(oe,arguments);return 0===e.length?Ut(this):Rt(this,function(e,t){return-1!==t.indexOf(e)},e,"")},m.prototype.startsWithAnyOfIgnoreCase=function(){var e=r.apply(oe,arguments);return 0===e.length?Ut(this):Rt(this,function(t,e){return e.some(function(e){return 0===t.indexOf(e)})},e,ut)},m.prototype.anyOf=function(){var e,i,t=this,a=r.apply(oe,arguments),o=this._cmp;try{a.sort(o)}catch(e){return A(this,O)}return 0===a.length?Ut(this):((e=new this.Collection(this,function(){return D(a[0],a[a.length-1])}))._ondirectionchange=function(e){o="next"===e?t._ascending:t._descending,a.sort(o)},i=0,e._addAlgorithm(function(e,t,r){for(var n=e.key;0<o(n,a[i]);)if(++i===a.length)return t(r),!1;return 0===o(n,a[i])||(t(function(){e.continue(a[i])}),!1)}),e)},m.prototype.notEqual=function(e){return this.inAnyRange([[-1/0,e],[e,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},m.prototype.noneOf=function(){var e=r.apply(oe,arguments);if(0===e.length)return new this.Collection(this);try{e.sort(this._ascending)}catch(e){return A(this,O)}var t=e.reduce(function(e,t){return e?e.concat([[e[e.length-1][1],t]]):[[-1/0,t]]},null);return t.push([e[e.length-1],this.db._maxKey]),this.inAnyRange(t,{includeLowers:!1,includeUppers:!1})},m.prototype.inAnyRange=function(e,t){var a=this,o=this._cmp,s=this._ascending,r=this._descending,l=this._min,u=this._max;if(0===e.length)return Ut(this);if(!e.every(function(e){return void 0!==e[0]&&void 0!==e[1]&&s(e[0],e[1])<=0}))return A(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",S.InvalidArgument);var n=!t||!1!==t.includeLowers,i=t&&!0===t.includeUppers;var c,d=s;function p(e,t){return d(e[0],t[0])}try{(c=e.reduce(function(e,t){for(var r=0,n=e.length;r<n;++r){var i=e[r];if(o(t[0],i[1])<0&&0<o(t[1],i[0])){i[0]=l(i[0],t[0]),i[1]=u(i[1],t[1]);break}}return r===n&&e.push(t),e},[])).sort(p)}catch(e){return A(this,O)}var m=0,f=i?function(e){return 0<s(e,c[m][1])}:function(e){return 0<=s(e,c[m][1])},h=n?function(e){return 0<r(e,c[m][0])}:function(e){return 0<=r(e,c[m][0])};var g=f,t=new this.Collection(this,function(){return D(c[0][0],c[c.length-1][1],!n,!i)});return t._ondirectionchange=function(e){d="next"===e?(g=f,s):(g=h,r),c.sort(p)},t._addAlgorithm(function(e,t,r){for(var n,i=e.key;g(i);)if(++m===c.length)return t(r),!1;return!f(n=i)&&!h(n)||(0===a._cmp(i,c[m][1])||0===a._cmp(i,c[m][0])||t(function(){d===s?e.continue(c[m][0]):e.continue(c[m][1])}),!1)}),t},m.prototype.startsWithAnyOf=function(){var e=r.apply(oe,arguments);return e.every(function(e){return"string"==typeof e})?0===e.length?Ut(this):this.inAnyRange(e.map(function(e){return[e,e+ut]})):A(this,"startsWithAnyOf() only works with strings")};var Bt=m;function m(){}function P(t){return E(function(e){return Ft(e),t(e.target.error),!1})}function Ft(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}var Zt="storagemutated",Vt="x-storagemutated-1",Gt=xt(null,Zt),Kt=(f.prototype._lock=function(){return q(!x.global),++this._reculock,1!==this._reculock||x.global||(x.lockOwnerFor=this),this},f.prototype._unlock=function(){if(q(!x.global),0==--this._reculock)for(x.global||(x.lockOwnerFor=null);0<this._blockedFuncs.length&&!this._locked();){var e=this._blockedFuncs.shift();try{ot(e[1],e[0])}catch(e){}}return this},f.prototype._locked=function(){return this._reculock&&x.lockOwnerFor!==this},f.prototype.create=function(t){var r=this;if(this.mode){var e=this.db.idbdb,n=this.db._state.dbOpenError;if(q(!this.idbtrans),!t&&!e)switch(n&&n.name){case"DatabaseClosedError":throw new S.DatabaseClosed(n);case"MissingAPIError":throw new S.MissingAPI(n.message,n);default:throw new S.OpenFailed(n)}if(!this.active)throw new S.TransactionInactive;q(null===this._completion._state),(t=this.idbtrans=t||(this.db.core||e).transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})).onerror=E(function(e){Ft(e),r._reject(t.error)}),t.onabort=E(function(e){Ft(e),r.active&&r._reject(new S.Abort(t.error)),r.active=!1,r.on("abort").fire(e)}),t.oncomplete=E(function(){r.active=!1,r._resolve(),"mutatedParts"in t&&Gt.storagemutated.fire(t.mutatedParts)})}return this},f.prototype._promise=function(r,n,i){var e,a=this;return"readwrite"===r&&"readwrite"!==this.mode?C(new S.ReadOnly("Transaction is readonly")):this.active?this._locked()?new $(function(e,t){a._blockedFuncs.push([function(){a._promise(r,n,i).then(e,t)},x])}):i?g(function(){var e=new $(function(e,t){a._lock();var r=n(e,t,a);r&&r.then&&r.then(e,t)});return e.finally(function(){return a._unlock()}),e._lib=!0,e}):((e=new $(function(e,t){var r=n(e,t,a);r&&r.then&&r.then(e,t)}))._lib=!0,e):C(new S.TransactionInactive)},f.prototype._root=function(){return this.parent?this.parent._root():this},f.prototype.waitFor=function(e){var t,n=this._root(),i=$.resolve(e),a=(n._waitingFor?n._waitingFor=n._waitingFor.then(function(){return i}):(n._waitingFor=i,n._waitingQueue=[],t=n.idbtrans.objectStore(n.storeNames[0]),function e(){for(++n._spinCount;n._waitingQueue.length;)n._waitingQueue.shift()();n._waitingFor&&(t.get(-1/0).onsuccess=e)}()),n._waitingFor);return new $(function(t,r){i.then(function(e){return n._waitingQueue.push(E(t.bind(null,e)))},function(e){return n._waitingQueue.push(E(r.bind(null,e)))}).finally(function(){n._waitingFor===a&&(n._waitingFor=null)})})},f.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new S.Abort))},f.prototype.table=function(e){var t=this._memoizedTables||(this._memoizedTables={});if(v(t,e))return t[e];var r=this.schema[e];if(r)return(r=new this.db.Table(e,r,this)).core=this.db.core.table(e),t[e]=r;throw new S.NotFound("Table "+e+" not part of transaction")},f);function f(){}function qt(e,t,r,n,i,a,o,s){return{name:e,keyPath:t,unique:r,multi:n,auto:i,compound:a,src:(r&&!o?"&":"")+(n?"*":"")+(i?"++":"")+Ht(t),type:s}}function Ht(e){return"string"==typeof e?e:e?"["+[].join.call(e,"+")+"]":""}function Jt(e,t,r){return{name:e,primKey:t,indexes:r,mappedClass:null,idxByName:(n=function(e){return[e.name,e]},r.reduce(function(e,t,r){t=n(t,r);return t&&(e[t[0]]=t[1]),e},{}))};var n}var Wt=function(e){try{return e.only([[]]),Wt=function(){return[[]]},[[]]}catch(e){return Wt=function(){return ut},ut}};function Xt(t){return null==t?function(){}:"string"==typeof t?1===(r=t).split(".").length?function(e){return e[r]}:function(e){return u(e,r)}:function(e){return u(e,t)};var r}function Yt(e){return[].slice.call(e)}var Qt=0;function er(e){return null==e?":id":"string"==typeof e?e:"[".concat(e.join("+"),"]")}function tr(e,i,t){function k(e){if(3===e.type)return null;if(4===e.type)throw new Error("Cannot convert never type to IDBKeyRange");var t=e.lower,r=e.upper,n=e.lowerOpen,e=e.upperOpen;return void 0===t?void 0===r?null:i.upperBound(r,!!e):void 0===r?i.lowerBound(t,!!n):i.bound(t,r,!!n,!!e)}function r(e){var f,h,w=e.name;return{name:w,schema:e,mutate:function(e){var h=e.trans,g=e.type,v=e.keys,b=e.values,y=e.range;return new Promise(function(t,e){t=E(t);var r=h.objectStore(w),n=null==r.keyPath,i="put"===g||"add"===g;if(!i&&"delete"!==g&&"deleteRange"!==g)throw new Error("Invalid operation type: "+g);var a,o=(v||b||{length:1}).length;if(v&&b&&v.length!==b.length)throw new Error("Given keys array must have same length as given values array.");if(0===o)return t({numFailures:0,failures:{},results:[],lastResult:void 0});function s(e){++c,Ft(e)}var l=[],u=[],c=0;if("deleteRange"===g){if(4===y.type)return t({numFailures:c,failures:u,results:[],lastResult:void 0});3===y.type?l.push(a=r.clear()):l.push(a=r.delete(k(y)))}else{var n=i?n?[b,v]:[b,null]:[v,null],d=n[0],p=n[1];if(i)for(var m=0;m<o;++m)l.push(a=p&&void 0!==p[m]?r[g](d[m],p[m]):r[g](d[m])),a.onerror=s;else for(m=0;m<o;++m)l.push(a=r[g](d[m])),a.onerror=s}function f(e){e=e.target.result,l.forEach(function(e,t){return null!=e.error&&(u[t]=e.error)}),t({numFailures:c,failures:u,results:"delete"===g?v:l.map(function(e){return e.result}),lastResult:e})}a.onerror=function(e){s(e),f(e)},a.onsuccess=f})},getMany:function(e){var d=e.trans,p=e.keys;return new Promise(function(t,e){t=E(t);for(var r,n=d.objectStore(w),i=p.length,a=new Array(i),o=0,s=0,l=function(e){e=e.target;a[e._pos]=e.result,++s===o&&t(a)},u=P(e),c=0;c<i;++c)null!=p[c]&&((r=n.get(p[c]))._pos=c,r.onsuccess=l,r.onerror=u,++o);0===o&&t(a)})},get:function(e){var n=e.trans,i=e.key;return new Promise(function(t,e){t=E(t);var r=n.objectStore(w).get(i);r.onsuccess=function(e){return t(e.target.result)},r.onerror=P(e)})},query:(f=o,h=s,function(m){return new Promise(function(t,e){t=E(t);var r,n,i,a,o=m.trans,s=m.values,l=m.limit,u=m.query,c=null!=(c=m.direction)?c:"next",d=l===1/0?void 0:l,p=u.index,u=u.range,o=o.objectStore(w),o=p.isPrimaryKey?o:o.index(p.name),p=k(u);if(0===l)return t({result:[]});h?(u={query:p,count:d,direction:c},(r=s?o.getAll(u):o.getAllKeys(u)).onsuccess=function(e){return t({result:e.target.result})},r.onerror=P(e)):f&&"next"===c?((r=s?o.getAll(p,d):o.getAllKeys(p,d)).onsuccess=function(e){return t({result:e.target.result})},r.onerror=P(e)):(n=0,i=!s&&"openKeyCursor"in o?o.openKeyCursor(p,c):o.openCursor(p,c),a=[],i.onsuccess=function(){var e=i.result;return!e||(a.push(s?e.value:e.primaryKey),++n===l)?t({result:a}):void e.continue()},i.onerror=P(e))})}),openCursor:function(e){var u=e.trans,a=e.values,o=e.query,s=e.reverse,c=e.unique;return new Promise(function(t,r){t=E(t);var e=o.index,n=o.range,i=u.objectStore(w),i=e.isPrimaryKey?i:i.index(e.name),e=s?c?"prevunique":"prev":c?"nextunique":"next",l=!a&&"openKeyCursor"in i?i.openKeyCursor(k(n),e):i.openCursor(k(n),e);l.onerror=P(r),l.onsuccess=E(function(e){var n,i,a,o,s=l.result;s?(s.___id=++Qt,s.done=!1,n=s.continue.bind(s),i=(i=s.continuePrimaryKey)&&i.bind(s),a=s.advance.bind(s),o=function(){throw new Error("Cursor not stopped")},s.trans=u,s.stop=s.continue=s.continuePrimaryKey=s.advance=function(){throw new Error("Cursor not started")},s.fail=E(r),s.next=function(){var e=this,t=1;return this.start(function(){return t--?e.continue():e.stop()}).then(function(){return e})},s.start=function(e){function t(){if(l.result)try{e()}catch(e){s.fail(e)}else s.done=!0,s.start=function(){throw new Error("Cursor behind last entry")},s.stop()}var r=new Promise(function(t,e){t=E(t),l.onerror=P(e),s.fail=e,s.stop=function(e){s.stop=s.continue=s.continuePrimaryKey=s.advance=o,t(e)}});return l.onsuccess=E(function(e){l.onsuccess=t,t()}),s.continue=n,s.continuePrimaryKey=i,s.advance=a,t(),r},t(s)):t(null)},r)})},count:function(e){var t=e.query,i=e.trans,a=t.index,o=t.range;return new Promise(function(t,e){var r=i.objectStore(w),r=a.isPrimaryKey?r:r.index(a.name),n=k(o),n=n?r.count(n):r.count();n.onsuccess=E(function(e){return t(e.target.result)}),n.onerror=P(e)})}}}n=t,a=Yt((t=e).objectStoreNames),l=0<a.length?n.objectStore(a[0]):{};var n,t={schema:{name:t.name,tables:a.map(function(e){return n.objectStore(e)}).map(function(t){var e=t.keyPath,r=t.autoIncrement,n=_(e),i={},n={name:t.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:null==e,compound:n,keyPath:e,autoIncrement:r,unique:!0,extractKey:Xt(e)},indexes:Yt(t.indexNames).map(function(e){return t.index(e)}).map(function(e){var t=e.name,r=e.unique,n=e.multiEntry,e=e.keyPath,t={name:t,compound:_(e),keyPath:e,unique:r,multiEntry:n,extractKey:Xt(e)};return i[er(e)]=t}),getIndexByKeyPath:function(e){return i[er(e)]}};return i[":id"]=n.primaryKey,null!=e&&(i[er(e)]=n.primaryKey),n})},hasGetAll:0<a.length&&"getAll"in l&&!("undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604),hasIdb3Features:"getAllRecords"in l},a=t.schema,o=t.hasGetAll,s=t.hasIdb3Features,l=a.tables.map(r),u={};return l.forEach(function(e){return u[e.name]=e}),{stack:"dbcore",transaction:e.transaction.bind(e),table:function(e){if(u[e])return u[e];throw new Error("Table '".concat(e,"' not found"))},MIN_KEY:-1/0,MAX_KEY:Wt(i),schema:a}}function rr(e,t,r,n){var i=r.IDBKeyRange;return r.indexedDB,r=tr(t,i,n),{dbcore:e.dbcore.reduce(function(e,t){t=t.create;return k(k({},e),t(e))},r)}}function nr(r,e){var t=e.db,t=rr(r._middlewares,t,r._deps,e);r.core=t.dbcore,r.tables.forEach(function(e){var t=e.name;r.core.schema.tables.some(function(e){return e.name===t})&&(e.core=r.core.table(t),r[t]instanceof r.Table)&&(r[t].core=e.core)})}function ir(i,e,t,a){t.forEach(function(r){var n=a[r];e.forEach(function(e){var t=function e(t,r){return Z(t,r)||(t=U(t))&&e(t,r)}(e,r);(!t||"value"in t&&void 0===t.value)&&(e===i.Transaction.prototype||e instanceof i.Transaction?s(e,r,{get:function(){return this.table(r)},set:function(e){B(this,r,{value:e,writable:!0,configurable:!0,enumerable:!0})}}):e[r]=new i.Table(r,n))})})}function ar(r,e){e.forEach(function(e){for(var t in e)e[t]instanceof r.Table&&delete e[t]})}function or(e,t){return e._cfg.version-t._cfg.version}function sr(r,n,i,e){var a=r._dbSchema,o=(i.objectStoreNames.contains("$meta")&&!a.$meta&&(a.$meta=Jt("$meta",hr("")[0],[]),r._storeNames.push("$meta")),r._createTransaction("readwrite",r._storeNames,a)),s=(o.create(i),o._completion.catch(e),o._reject.bind(o)),l=x.transless||x;g(function(){if(x.trans=o,x.transless=l,0!==n)return nr(r,i),t=n,((e=o).storeNames.includes("$meta")?e.table("$meta").get("version").then(function(e){return null!=e?e:t}):$.resolve(t)).then(function(e){var l=r,u=e,c=o,d=i,t=[],e=l._versions,p=l._dbSchema=mr(0,l.idbdb,d);return 0===(e=e.filter(function(e){return e._cfg.version>=u})).length?$.resolve():(e.forEach(function(s){t.push(function(){var t,r,n,i=p,e=s._cfg.dbschema,a=(fr(l,i,d),fr(l,e,d),p=l._dbSchema=e,ur(i,e)),o=(a.add.forEach(function(e){cr(d,e[0],e[1].primKey,e[1].indexes)}),a.change.forEach(function(e){if(e.recreate)throw new S.Upgrade("Not yet support for changing primary key");var t=d.objectStore(e.name);e.add.forEach(function(e){return pr(t,e)}),e.change.forEach(function(e){t.deleteIndex(e.name),pr(t,e)}),e.del.forEach(function(e){return t.deleteIndex(e)})}),s._cfg.contentUpgrade);if(o&&s._cfg.version>u)return nr(l,d),c._memoizedTables={},t=J(e),a.del.forEach(function(e){t[e]=i[e]}),ar(l,[l.Transaction.prototype]),ir(l,[l.Transaction.prototype],I(t),t),c.schema=t,(r=se(o))&&rt(),e=$.follow(function(){var e;(n=o(c))&&r&&(e=w.bind(null,null),n.then(e,e))}),n&&"function"==typeof n.then?$.resolve(n):e.then(function(){return n})}),t.push(function(e){var t,r,n=s._cfg.dbschema;t=n,r=e,[].slice.call(r.db.objectStoreNames).forEach(function(e){return null==t[e]&&r.db.deleteObjectStore(e)}),ar(l,[l.Transaction.prototype]),ir(l,[l.Transaction.prototype],l._storeNames,l._dbSchema),c.schema=l._dbSchema}),t.push(function(e){l.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(l.idbdb.version/10)===s._cfg.version?(l.idbdb.deleteObjectStore("$meta"),delete l._dbSchema.$meta,l._storeNames=l._storeNames.filter(function(e){return"$meta"!==e})):e.objectStore("$meta").put(s._cfg.version,"version"))})}),function e(){return t.length?$.resolve(t.shift()(c.idbtrans)).then(e):$.resolve()}().then(function(){dr(p,d)}))}).catch(s);var e,t;I(a).forEach(function(e){cr(i,e,a[e].primKey,a[e].indexes)}),nr(r,i),$.follow(function(){return r.on.populate.fire(o)}).catch(s)})}function lr(e,n){dr(e._dbSchema,n),n.db.version%10!=0||n.objectStoreNames.contains("$meta")||n.db.createObjectStore("$meta").add(Math.ceil(n.db.version/10-1),"version");var t=mr(0,e.idbdb,n);fr(e,e._dbSchema,n);for(var r=0,i=ur(t,e._dbSchema).change;r<i.length;r++){var a=function(t){if(t.change.length||t.recreate)return console.warn("Unable to patch indexes of table ".concat(t.name," because it has changes on the type of index or primary key.")),{value:void 0};var r=n.objectStore(t.name);t.add.forEach(function(e){c&&console.debug("Dexie upgrade patch: Creating missing index ".concat(t.name,".").concat(e.src)),pr(r,e)})}(i[r]);if("object"==typeof a)return a.value}}function ur(e,t){var r,n={del:[],add:[],change:[]};for(r in e)t[r]||n.del.push(r);for(r in t){var i=e[r],a=t[r];if(i){var o={name:r,def:a,recreate:!1,del:[],add:[],change:[]};if(""+(i.primKey.keyPath||"")!=""+(a.primKey.keyPath||"")||i.primKey.auto!==a.primKey.auto)o.recreate=!0,n.change.push(o);else{var s=i.idxByName,l=a.idxByName,u=void 0;for(u in s)l[u]||o.del.push(u);for(u in l){var c=s[u],d=l[u];c?c.src!==d.src&&o.change.push(d):o.add.push(d)}(0<o.del.length||0<o.add.length||0<o.change.length)&&n.change.push(o)}}else n.add.push([r,a])}return n}function cr(e,t,r,n){var i=e.db.createObjectStore(t,r.keyPath?{keyPath:r.keyPath,autoIncrement:r.auto}:{autoIncrement:r.auto});n.forEach(function(e){return pr(i,e)})}function dr(t,r){I(t).forEach(function(e){r.db.objectStoreNames.contains(e)||(c&&console.debug("Dexie: Creating missing table",e),cr(r,e,t[e].primKey,t[e].indexes))})}function pr(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function mr(e,t,s){var l={};return G(t.objectStoreNames,0).forEach(function(e){for(var t=s.objectStore(e),r=qt(Ht(o=t.keyPath),o||"",!0,!1,!!t.autoIncrement,o&&"string"!=typeof o,!0),n=[],i=0;i<t.indexNames.length;++i){var a=t.index(t.indexNames[i]),o=a.keyPath,a=qt(a.name,o,!!a.unique,!!a.multiEntry,!1,o&&"string"!=typeof o,!1);n.push(a)}l[e]=Jt(e,r,n)}),l}function fr(e,t,r){for(var n=r.db.objectStoreNames,i=0;i<n.length;++i){var a=n[i],o=r.objectStore(a);e._hasGetAll="getAll"in o;for(var s=0;s<o.indexNames.length;++s){var l,u=o.indexNames[s],c=o.index(u).keyPath,c="string"==typeof c?c:"["+G(c).join("+")+"]";t[a]&&(l=t[a].idxByName[c])&&(l.name=u,delete t[a].idxByName[c],t[a].idxByName[u]=l)}}"undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&d.WorkerGlobalScope&&d instanceof d.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(e._hasGetAll=!1)}function hr(e){return e.split(",").map(function(e,t){var r=e.split(":"),n=null==(n=r[1])?void 0:n.trim(),r=(e=r[0].trim()).replace(/([&*]|\+\+)/g,""),i=/^\[/.test(r)?r.match(/^\[(.*)\]$/)[1].split("+"):r;return qt(r,i||null,/\&/.test(e),/\*/.test(e),/\+\+/.test(e),_(i),0===t,n)})}vr.prototype._createTableSchema=Jt,vr.prototype._parseIndexSyntax=hr,vr.prototype._parseStoresSpec=function(n,i){var a=this;I(n).forEach(function(e){if(null!==n[e]){var t=a._parseIndexSyntax(n[e]),r=t.shift();if(!r)throw new S.Schema("Invalid schema for table "+e+": "+n[e]);if(r.unique=!0,r.multi)throw new S.Schema("Primary key cannot be multiEntry*");t.forEach(function(e){if(e.auto)throw new S.Schema("Only primary key can be marked as autoIncrement (++)");if(!e.keyPath)throw new S.Schema("Index must have a name and cannot be an empty string")});r=a._createTableSchema(e,r,t);i[e]=r}})},vr.prototype.stores=function(e){var t=this.db,e=(this._cfg.storesSource=this._cfg.storesSource?o(this._cfg.storesSource,e):e,t._versions),r={},n={};return e.forEach(function(e){o(r,e._cfg.storesSource),n=e._cfg.dbschema={},e._parseStoresSpec(r,n)}),t._dbSchema=n,ar(t,[t._allTables,t,t.Transaction.prototype]),ir(t,[t._allTables,t,t.Transaction.prototype,this._cfg.tables],I(n),n),t._storeNames=I(n),this},vr.prototype.upgrade=function(e){return this._cfg.contentUpgrade=Se(this._cfg.contentUpgrade||y,e),this};var gr=vr;function vr(){}var br=function(){{var i,a,t;return"undefined"!=typeof FinalizationRegistry&&"undefined"!=typeof WeakRef?(i=new Set,a=new FinalizationRegistry(function(e){i.delete(e)}),{toArray:function(){return Array.from(i).map(function(e){return e.deref()}).filter(function(e){return void 0!==e})},add:function(e){var t=new WeakRef(e._novip);i.add(t),a.register(e._novip,t,t),i.size>e._options.maxConnections&&(t=i.values().next().value,i.delete(t),a.unregister(t))},remove:function(e){if(e)for(var t=i.values(),r=t.next();!r.done;){var n=r.value;if(n.deref()===e._novip)return i.delete(n),void a.unregister(n);r=t.next()}}}):(t=[],{toArray:function(){return t},add:function(e){t.push(e._novip)},remove:function(e){e&&-1!==(e=t.indexOf(e._novip))&&t.splice(e,1)}})}}();function yr(e,t){var r=e._dbNamesDB;return r||(r=e._dbNamesDB=new h(dt,{addons:[],indexedDB:e,IDBKeyRange:t})).version(1).stores({dbnames:"name"}),r.table("dbnames")}function wr(e){return e&&"function"==typeof e.databases}function kr(e){return g(function(){return x.letThrough=!0,e()})}function _r(e){return!("from"in e)}var T=function(e,t){var r;if(!this)return r=new T,e&&"d"in e&&o(r,e),r;o(this,arguments.length?{d:1,from:e,to:1<arguments.length?t:e}:{d:0})};function Sr(e,t,r){var n=N(t,r);if(!isNaN(n)){if(0<n)throw RangeError();if(_r(e))return o(e,{from:t,to:r,d:1});var n=e.l,i=e.r;if(N(r,e.from)<0)return n?Sr(n,t,r):e.l={from:t,to:r,d:1,l:null,r:null},Er(e);if(0<N(t,e.to))return i?Sr(i,t,r):e.r={from:t,to:r,d:1,l:null,r:null},Er(e);N(t,e.from)<0&&(e.from=t,e.l=null,e.d=i?i.d+1:1),0<N(r,e.to)&&(e.to=r,e.r=null,e.d=e.l?e.l.d+1:1);t=!e.r;n&&!e.l&&Ir(e,n),i&&t&&Ir(e,i)}}function Ir(e,t){_r(t)||!function e(t,r){var n=r.from,i=r.to,a=r.l,r=r.r;Sr(t,n,i),a&&e(t,a),r&&e(t,r)}(e,t)}function xr(e,t){var r=$r(t),n=r.next();if(!n.done)for(var i=n.value,a=$r(e),o=a.next(i.from),s=o.value;!n.done&&!o.done;){if(N(s.from,i.to)<=0&&0<=N(s.to,i.from))return!0;N(i.from,s.from)<0?i=(n=r.next(s.from)).value:s=(o=a.next(i.from)).value}return!1}function $r(e){var r=_r(e)?null:{s:0,n:e};return{next:function(e){for(var t=0<arguments.length;r;)switch(r.s){case 0:if(r.s=1,t)for(;r.n.l&&N(e,r.n.from)<0;)r={up:r,n:r.n.l,s:1};else for(;r.n.l;)r={up:r,n:r.n.l,s:1};case 1:if(r.s=2,!t||N(e,r.n.to)<=0)return{value:r.n,done:!1};case 2:if(r.n.r){r.s=3,r={up:r,n:r.n.r,s:0};continue}case 3:r=r.up}return{done:!0}}}}function Er(e){var t,r,n,i=((null==(i=e.r)?void 0:i.d)||0)-((null==(i=e.l)?void 0:i.d)||0),i=1<i?"r":i<-1?"l":"";i&&(t="r"==i?"l":"r",r=k({},e),n=e[i],e.from=n.from,e.to=n.to,e[i]=n[i],r[i]=n[t],(e[t]=r).d=Cr(r)),e.d=Cr(e)}function Cr(e){var t=e.r,e=e.l;return(t?e?Math.max(t.d,e.d):t.d:e?e.d:0)+1}function Or(t,r){return I(r).forEach(function(e){t[e]?Ir(t[e],r[e]):t[e]=function e(t){var r,n,i={};for(r in t)v(t,r)&&(n=t[r],i[r]=!n||"object"!=typeof n||Y.has(n.constructor)?n:e(n));return i}(r[e])}),t}function Nr(t,r){return t.all||r.all||Object.keys(t).some(function(e){return r[e]&&xr(r[e],t[e])})}M(T.prototype,((t={add:function(e){return Ir(this,e),this},addKey:function(e){return Sr(this,e,e),this},addKeys:function(e){var t=this;return e.forEach(function(e){return Sr(t,e,e)}),this},hasKey:function(e){var t=$r(this).next(e).value;return t&&N(t.from,e)<=0&&0<=N(t.to,e)}})[ne]=function(){return $r(this)},t));var Ar={},Dr={},Pr=!1;function Tr(e){Or(Dr,e),Pr||(Pr=!0,setTimeout(function(){Pr=!1,zr(Dr,!(Dr={}))},0))}function zr(e,t){void 0===t&&(t=!1);var r=new Set;if(e.all)for(var n=0,i=Object.values(Ar);n<i.length;n++)jr(s=i[n],e,r,t);else for(var a in e){var o,s,a=/^idb\:\/\/(.*)\/(.*)\//.exec(a);a&&(o=a[1],a=a[2],s=Ar["idb://".concat(o,"/").concat(a)])&&jr(s,e,r,t)}r.forEach(function(e){return e()})}function jr(e,t,r,n){for(var i=[],a=0,o=Object.entries(e.queries.query);a<o.length;a++){for(var s=o[a],l=s[0],u=[],c=0,d=s[1];c<d.length;c++){var p=d[c];Nr(t,p.obsSet)?p.subscribers.forEach(function(e){return r.add(e)}):n&&u.push(p)}n&&i.push([l,u])}if(n)for(var m=0,f=i;m<f.length;m++){var h=f[m],l=h[0],u=h[1];e.queries.query[l]=u}}function Lr(p){var m=p._state,n=p._deps.indexedDB;if(m.isBeingOpened||p.idbdb)return m.dbReadyPromise.then(function(){return m.dbOpenError?C(m.dbOpenError):p});m.isBeingOpened=!0,m.dbOpenError=null,m.openComplete=!1;var t=m.openCanceller,f=Math.round(10*p.verno),h=!1;function e(){if(m.openCanceller!==t)throw new S.DatabaseClosed("db.open() was cancelled")}function g(){return new $(function(u,r){if(e(),!n)throw new S.MissingAPI;var c=p.name,d=m.autoSchema||!f?n.open(c):n.open(c,f);if(!d)throw new S.MissingAPI;d.onerror=P(r),d.onblocked=E(p._fireOnBlocked),d.onupgradeneeded=E(function(e){var t;v=d.transaction,m.autoSchema&&!p._options.allowEmptyDB?(d.onerror=Ft,v.abort(),d.result.close(),(t=n.deleteDatabase(c)).onsuccess=t.onerror=E(function(){r(new S.NoSuchDatabase("Database ".concat(c," doesnt exist")))})):(v.onerror=P(r),t=e.oldVersion>Math.pow(2,62)?0:e.oldVersion,b=t<1,p.idbdb=d.result,h&&lr(p,v),sr(p,t/10,v,r))},r),d.onsuccess=E(function(){v=null;var e,t,r,n,i,a,o=p.idbdb=d.result,s=G(o.objectStoreNames);if(0<s.length)try{var l=o.transaction(1===(i=s).length?i[0]:i,"readonly");if(m.autoSchema)a=o,n=l,(r=p).verno=a.version/10,n=r._dbSchema=mr(0,a,n),r._storeNames=G(a.objectStoreNames,0),ir(r,[r._allTables],I(n),n);else if(fr(p,p._dbSchema,l),t=l,((t=ur(mr(0,(e=p).idbdb,t),e._dbSchema)).add.length||t.change.some(function(e){return e.add.length||e.change.length}))&&!h)return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."),o.close(),f=o.version+1,h=!0,u(g());nr(p,l)}catch(e){}br.add(p),o.onversionchange=E(function(e){m.vcFired=!0,p.on("versionchange").fire(e)}),o.onclose=E(function(){p.close({disableAutoOpen:!1})}),b&&(s=p._deps,i=c,a=s.indexedDB,s=s.IDBKeyRange,wr(a)||i===dt||yr(a,s).put({name:i}).catch(y)),u()},r)}).catch(function(e){switch(null==e?void 0:e.name){case"UnknownError":if(0<m.PR1398_maxLoop)return m.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),g();break;case"VersionError":if(0<f)return f=0,g()}return $.reject(e)})}var r,i=m.dbReadyResolve,v=null,b=!1;return $.race([t,("undefined"==typeof navigator?$.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(e){function t(){return indexedDB.databases().finally(e)}r=setInterval(t,100),t()}).finally(function(){return clearInterval(r)}):Promise.resolve()).then(g)]).then(function(){return e(),m.onReadyBeingFired=[],$.resolve(kr(function(){return p.on.ready.fire(p.vip)})).then(function e(){var t;if(0<m.onReadyBeingFired.length)return t=m.onReadyBeingFired.reduce(Se,y),m.onReadyBeingFired=[],$.resolve(kr(function(){return t(p.vip)})).then(e)})}).finally(function(){m.openCanceller===t&&(m.onReadyBeingFired=null,m.isBeingOpened=!1)}).catch(function(e){m.dbOpenError=e;try{v&&v.abort()}catch(e){}return t===m.openCanceller&&p._close(),C(e)}).finally(function(){m.openComplete=!0,i()}).then(function(){var r;return b&&(r={},p.tables.forEach(function(t){t.schema.indexes.forEach(function(e){e.name&&(r["idb://".concat(p.name,"/").concat(t.name,"/").concat(e.name)]=new T(-1/0,[[[]]]))}),r["idb://".concat(p.name,"/").concat(t.name,"/")]=r["idb://".concat(p.name,"/").concat(t.name,"/:dels")]=new T(-1/0,[[[]]])}),Gt(Zt).fire(r),zr(r,!0)),p})}function Ur(t){function e(e){return t.next(e)}var n=r(e),i=r(function(e){return t.throw(e)});function r(r){return function(e){var e=r(e),t=e.value;return e.done?t:t&&"function"==typeof t.then?t.then(n,i):_(t)?Promise.all(t).then(n,i):n(t)}}return r(e)()}function Rr(e,t,r){for(var n=_(e)?e.slice():[e],i=0;i<r;++i)n.push(t);return n}var Mr={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(d){return k(k({},d),{table:function(e){var o=d.table(e),e=o.schema,s=Object.create(null),l=[];function u(e,t,r){var n=er(e),i=s[n]=s[n]||[],a=null==e?0:"string"==typeof e?1:e.length,o=0<t,n=k(k({},r),{name:o?"".concat(n,"(virtual-from:").concat(r.name,")"):r.name,lowLevelIndex:r,isVirtual:o,keyTail:t,keyLength:a,extractKey:Xt(e),unique:!o&&r.unique});return i.push(n),n.isPrimaryKey||l.push(n),1<a&&u(2===a?e[0]:e.slice(0,a-1),t+1,r),i.sort(function(e,t){return e.keyTail-t.keyTail}),n}var t=u(e.primaryKey.keyPath,0,e.primaryKey);s[":id"]=[t];for(var r=0,n=e.indexes;r<n.length;r++){var i=n[r];u(i.keyPath,0,i)}function c(e){var t,r=e.query.index;return r.isVirtual?k(k({},e),{query:{index:r.lowLevelIndex,range:(t=e.query.range,r=r.keyTail,{type:1===t.type?2:t.type,lower:Rr(t.lower,t.lowerOpen?d.MAX_KEY:d.MIN_KEY,r),lowerOpen:!0,upper:Rr(t.upper,t.upperOpen?d.MIN_KEY:d.MAX_KEY,r),upperOpen:!0})}}):e}return k(k({},o),{schema:k(k({},e),{primaryKey:t,indexes:l,getIndexByKeyPath:function(e){return(e=s[er(e)])&&e[0]}}),count:function(e){return o.count(c(e))},query:function(e){return o.query(c(e))},openCursor:function(t){var e=t.query.index,n=e.keyTail,r=e.isVirtual,i=e.keyLength;return r?o.openCursor(c(t)).then(function(e){return e&&a(e)}):o.openCursor(t);function a(r){return Object.create(r,{continue:{value:function(e){null!=e?r.continue(Rr(e,t.reverse?d.MAX_KEY:d.MIN_KEY,n)):t.unique?r.continue(r.key.slice(0,i).concat(t.reverse?d.MIN_KEY:d.MAX_KEY,n)):r.continue()}},continuePrimaryKey:{value:function(e,t){r.continuePrimaryKey(Rr(e,d.MAX_KEY,n),t)}},primaryKey:{get:function(){return r.primaryKey}},key:{get:function(){var e=r.key;return 1===i?e[0]:e.slice(0,i)}},value:{get:function(){return r.value}}})}}})}})}};function Br(i,a,o,s){return o=o||{},s=s||"",I(i).forEach(function(e){var t,r,n;v(a,e)?(t=i[e],r=a[e],"object"==typeof t&&"object"==typeof r&&t&&r?(n=re(t))!==re(r)?o[s+e]=a[e]:"Object"===n?Br(t,r,o,s+e+"."):t!==r&&(o[s+e]=a[e]):t!==r&&(o[s+e]=a[e])):o[s+e]=void 0}),I(a).forEach(function(e){v(i,e)||(o[s+e]=a[e])}),o}function Fr(e,t){return"delete"===t.type?t.keys:t.keys||t.values.map(e.extractKey)}var Zr={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(e){return k(k({},e),{table:function(n){var h=e.table(n),g=h.schema.primaryKey;return k(k({},h),{mutate:function(e){var t=x.trans,r=t.table(n).hook,p=r.deleting,m=r.creating,f=r.updating;switch(e.type){case"add":if(m.fire===y)break;return t._promise("readwrite",function(){return o(e)},!0);case"put":if(m.fire===y&&f.fire===y)break;return t._promise("readwrite",function(){return o(e)},!0);case"delete":if(p.fire===y)break;return t._promise("readwrite",function(){return o(e)},!0);case"deleteRange":if(p.fire===y)break;return t._promise("readwrite",function(){return function r(n,i,a){return h.query({trans:n,values:!1,query:{index:g,range:i},limit:a}).then(function(e){var t=e.result;return o({type:"delete",keys:t,trans:n}).then(function(e){return 0<e.numFailures?Promise.reject(e.failures[0]):t.length<a?{failures:[],numFailures:0,lastResult:void 0}:r(n,k(k({},i),{lower:t[t.length-1],lowerOpen:!0}),a)})})}(e.trans,e.range,1e4)},!0)}return h.mutate(e);function o(u){var e,t,r,c=x.trans,d=u.keys||Fr(g,u);if(d)return"delete"!==(u="add"===u.type||"put"===u.type?k(k({},u),{keys:d}):k({},u)).type&&(u.values=L([],u.values,!0)),u.keys&&(u.keys=L([],u.keys,!0)),e=h,r=d,("add"===(t=u).type?Promise.resolve([]):e.getMany({trans:t.trans,keys:r,cache:"immutable"})).then(function(s){var l=d.map(function(e,t){var r,n,i,a=s[t],o={onerror:null,onsuccess:null};return"delete"===u.type?p.fire.call(o,e,a,c):"add"===u.type||void 0===a?(r=m.fire.call(o,e,u.values[t],c),null==e&&null!=r&&(u.keys[t]=e=r,g.outbound||b(u.values[t],g.keyPath,e))):(r=Br(a,u.values[t]),(n=f.fire.call(o,r,e,a,c))&&(i=u.values[t],Object.keys(n).forEach(function(e){v(i,e)?i[e]=n[e]:b(i,e,n[e])}))),o});return h.mutate(u).then(function(e){for(var t=e.failures,r=e.results,n=e.numFailures,e=e.lastResult,i=0;i<d.length;++i){var a=(r||d)[i],o=l[i];null==a?o.onerror&&o.onerror(t[i]):o.onsuccess&&o.onsuccess("put"===u.type&&s[i]?u.values[i]:a)}return{failures:t,results:r,numFailures:n,lastResult:e}}).catch(function(t){return l.forEach(function(e){return e.onerror&&e.onerror(t)}),Promise.reject(t)})});throw new Error("Keys missing")}}})}})}};function Vr(e,t,r){try{if(!t)return null;if(t.keys.length<e.length)return null;for(var n=[],i=0,a=0;i<t.keys.length&&a<e.length;++i)0===N(t.keys[i],e[a])&&(n.push(r?ee(t.values[i]):t.values[i]),++a);return n.length===e.length?n:null}catch(e){return null}}var Gr={stack:"dbcore",level:-1,create:function(t){return{table:function(e){var r=t.table(e);return k(k({},r),{getMany:function(t){var e;return t.cache?(e=Vr(t.keys,t.trans._cache,"clone"===t.cache))?$.resolve(e):r.getMany(t).then(function(e){return t.trans._cache={keys:t.keys,values:"clone"===t.cache?ee(e):e},e}):r.getMany(t)},mutate:function(e){return"add"!==e.type&&(e.trans._cache=null),r.mutate(e)}})}}}};function Kr(e,t){return"readonly"===e.trans.mode&&!!e.subscr&&!e.trans.explicit&&"disabled"!==e.trans.db._options.cache&&!t.schema.primaryKey.outbound}function qr(e,t){switch(e){case"query":return t.values&&!t.unique;case"get":case"getMany":case"count":case"openCursor":return!1}}var Hr={stack:"dbcore",level:0,name:"Observability",create:function(b){var y=b.schema.name,w=new T(b.MIN_KEY,b.MAX_KEY);return k(k({},b),{transaction:function(e,t,r){if(x.subscr&&"readonly"!==t)throw new S.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(x.querier));return b.transaction(e,t,r)},table:function(m){function e(e){var t=(e=e.query).index,e=e.range;return[t,new T(null!=(t=e.lower)?t:b.MIN_KEY,null!=(t=e.upper)?t:b.MAX_KEY)]}var f=b.table(m),h=f.schema,g=h.primaryKey,t=h.indexes,u=g.extractKey,c=g.outbound,v=g.autoIncrement&&t.filter(function(e){return e.compound&&e.keyPath.includes(g.keyPath)}),r=k(k({},f),{mutate:function(o){function s(e){return e="idb://".concat(y,"/").concat(m,"/").concat(e),r[e]||(r[e]=new T)}var e,a,l,t=o.trans,r=o.mutatedParts||(o.mutatedParts={}),n=s(""),i=s(":dels"),u=o.type,c="deleteRange"===o.type?[o.range]:"delete"===o.type?[o.keys]:o.values.length<50?[Fr(g,o).filter(function(e){return e}),o.values]:[],d=c[0],c=c[1],p=o.trans._cache;return _(d)?(n.addKeys(d),(u="delete"===u||d.length===c.length?Vr(d,p):null)||i.addKeys(d),(u||c)&&(e=s,a=u,l=c,h.indexes.forEach(function(t){var r=e(t.name||"");function n(e){return null!=e?t.extractKey(e):null}function i(e){t.multiEntry&&_(e)?e.forEach(function(e){return r.addKey(e)}):r.addKey(e)}(a||l).forEach(function(e,t){var r=a&&n(a[t]),t=l&&n(l[t]);0!==N(r,t)&&(null!=r&&i(r),null!=t)&&i(t)})}))):d?(c={from:null!=(p=d.lower)?p:b.MIN_KEY,to:null!=(u=d.upper)?u:b.MAX_KEY},i.add(c),n.add(c)):(n.add(w),i.add(w),h.indexes.forEach(function(e){return s(e.name).add(w)})),f.mutate(o).then(function(a){return!d||"add"!==o.type&&"put"!==o.type||(n.addKeys(a.results),v&&v.forEach(function(t){for(var e=o.values.map(function(e){return t.extractKey(e)}),r=t.keyPath.findIndex(function(e){return e===g.keyPath}),n=0,i=a.results.length;n<i;++n)e[n][r]=a.results[n];s(t.name).addKeys(e)})),t.mutatedParts=Or(t.mutatedParts||{},r),a})}}),d={get:function(e){return[g,new T(e.key)]},getMany:function(e){return[g,(new T).addKeys(e.keys)]},count:e,query:e,openCursor:e};return I(d).forEach(function(l){r[l]=function(i){var e=x.subscr,t=!!e,r=Kr(x,f)&&qr(l,i)?i.obsSet={}:e;if(t){var a,e=function(e){e="idb://".concat(y,"/").concat(m,"/").concat(e);return r[e]||(r[e]=new T)},o=e(""),s=e(":dels"),t=d[l](i),n=t[0],t=t[1];if(("query"===l&&n.isPrimaryKey&&!i.values?s:e(n.name||"")).add(t),!n.isPrimaryKey){if("count"!==l)return a="query"===l&&c&&i.values&&f.query(k(k({},i),{values:!1})),f[l].apply(this,arguments).then(function(t){if("query"===l){if(c&&i.values)return a.then(function(e){e=e.result;return o.addKeys(e),t});var e=i.values?t.result.map(u):t.result;(i.values?o:s).addKeys(e)}else{var r,n;if("openCursor"===l)return n=i.values,(r=t)&&Object.create(r,{key:{get:function(){return s.addKey(r.primaryKey),r.key}},primaryKey:{get:function(){var e=r.primaryKey;return s.addKey(e),e}},value:{get:function(){return n&&o.addKey(r.primaryKey),r.value}}})}return t});s.add(w)}}return f[l].apply(this,arguments)}}),r}})}};function Jr(e,t,r){var n;return 0===r.numFailures?t:"deleteRange"===t.type||(n=t.keys?t.keys.length:"values"in t&&t.values?t.values.length:1,r.numFailures===n)?null:(n=k({},t),_(n.keys)&&(n.keys=n.keys.filter(function(e,t){return!(t in r.failures)})),"values"in n&&_(n.values)&&(n.values=n.values.filter(function(e,t){return!(t in r.failures)})),n)}function Wr(e,t){return r=e,(void 0===(n=t).lower||(n.lowerOpen?0<N(r,n.lower):0<=N(r,n.lower)))&&(r=e,void 0===(n=t).upper||(n.upperOpen?N(r,n.upper)<0:N(r,n.upper)<=0));var r,n}function Xr(e,m,t,r,n,i){var a,f,h,g,v,o,s;return!t||0===t.length||(a=m.query.index,f=a.multiEntry,h=m.query.range,g=r.schema.primaryKey.extractKey,v=a.extractKey,o=(a.lowLevelIndex||a).extractKey,(r=t.reduce(function(e,t){var r=e,n=[];if("add"===t.type||"put"===t.type)for(var i=new T,a=t.values.length-1;0<=a;--a){var o,s=t.values[a],l=g(s);!i.hasKey(l)&&(o=v(s),f&&_(o)?o.some(function(e){return Wr(e,h)}):Wr(o,h))&&(i.addKey(l),n.push(s))}switch(t.type){case"add":var u=(new T).addKeys(m.values?e.map(function(e){return g(e)}):e),r=e.concat(m.values?n.filter(function(e){e=g(e);return!u.hasKey(e)&&(u.addKey(e),!0)}):n.map(function(e){return g(e)}).filter(function(e){return!u.hasKey(e)&&(u.addKey(e),!0)}));break;case"put":var c=(new T).addKeys(t.values.map(function(e){return g(e)}));r=e.filter(function(e){return!c.hasKey(m.values?g(e):e)}).concat(m.values?n:n.map(function(e){return g(e)}));break;case"delete":var d=(new T).addKeys(t.keys);r=e.filter(function(e){return!d.hasKey(m.values?g(e):e)});break;case"deleteRange":var p=t.range;r=e.filter(function(e){return!Wr(g(e),p)})}return r},e))===e)?e:(s=function(e,t){return N(o(e),o(t))||N(g(e),g(t))},r.sort("prev"===m.direction||"prevunique"===m.direction?function(e,t){return s(t,e)}:s),m.limit&&m.limit<1/0&&(r.length>m.limit?r.length=m.limit:e.length===m.limit&&r.length<m.limit&&(n.dirty=!0)),i?Object.freeze(r):r)}function Yr(e,t){return 0===N(e.lower,t.lower)&&0===N(e.upper,t.upper)&&!!e.lowerOpen==!!t.lowerOpen&&!!e.upperOpen==!!t.upperOpen}function Qr(e,t){return function(e,t,r,n){if(void 0===e)return void 0!==t?-1:0;if(void 0===t)return 1;if(0===(e=N(e,t))){if(r&&n)return 0;if(r)return 1;if(n)return-1}return e}(e.lower,t.lower,e.lowerOpen,t.lowerOpen)<=0&&0<=function(e,t,r,n){if(void 0===e)return void 0!==t?1:0;if(void 0===t)return-1;if(0===(e=N(e,t))){if(r&&n)return 0;if(r)return-1;if(n)return 1}return e}(e.upper,t.upper,e.upperOpen,t.upperOpen)}function en(r,n,i,e){r.subscribers.add(i),e.addEventListener("abort",function(){var e,t;r.subscribers.delete(i),0===r.subscribers.size&&(e=r,t=n,setTimeout(function(){0===e.subscribers.size&&ae(t,e)},3e3))})}var tn={stack:"dbcore",level:0,name:"Cache",create:function(S){var I=S.schema.name;return k(k({},S),{transaction:function(y,w,e){var k,t,_=S.transaction(y,w,e);return"readwrite"===w&&(e=(k=new AbortController).signal,_.addEventListener("abort",(t=function(b){return function(){if(k.abort(),"readwrite"===w){for(var t=new Set,e=0,r=y;e<r.length;e++){var n=r[e],i=Ar["idb://".concat(I,"/").concat(n)];if(i){var a=S.table(n),o=i.optimisticOps.filter(function(e){return e.trans===_});if(_._explicit&&b&&_.mutatedParts)for(var s=0,l=Object.values(i.queries.query);s<l.length;s++)for(var u=0,c=(m=l[s]).slice();u<c.length;u++)Nr((f=c[u]).obsSet,_.mutatedParts)&&(ae(m,f),f.subscribers.forEach(function(e){return t.add(e)}));else if(0<o.length){i.optimisticOps=i.optimisticOps.filter(function(e){return e.trans!==_});for(var d=0,p=Object.values(i.queries.query);d<p.length;d++)for(var m,f,h,g=0,v=(m=p[d]).slice();g<v.length;g++)null!=(f=v[g]).res&&_.mutatedParts&&(b&&!f.dirty?(h=Object.isFrozen(f.res),h=Xr(f.res,f.req,o,a,f,h),f.dirty?(ae(m,f),f.subscribers.forEach(function(e){return t.add(e)})):h!==f.res&&(f.res=h,f.promise=$.resolve({result:h}))):(f.dirty&&ae(m,f),f.subscribers.forEach(function(e){return t.add(e)})))}}}t.forEach(function(e){return e()})}}})(!1),{signal:e}),_.addEventListener("error",t(!1),{signal:e}),_.addEventListener("complete",t(!0),{signal:e})),_},table:function(u){var c=S.table(u),i=c.schema.primaryKey;return k(k({},c),{mutate:function(t){var r,e=x.trans;return!i.outbound&&"disabled"!==e.db._options.cache&&!e.explicit&&"readwrite"===e.idbtrans.mode&&(r=Ar["idb://".concat(I,"/").concat(u)])?(e=c.mutate(t),"add"!==t.type&&"put"!==t.type||!(50<=t.values.length||Fr(i,t).some(function(e){return null==e}))?(r.optimisticOps.push(t),t.mutatedParts&&Tr(t.mutatedParts),e.then(function(e){0<e.numFailures&&(ae(r.optimisticOps,t),(e=Jr(0,t,e))&&r.optimisticOps.push(e),t.mutatedParts)&&Tr(t.mutatedParts)}),e.catch(function(){ae(r.optimisticOps,t),t.mutatedParts&&Tr(t.mutatedParts)})):e.then(function(n){var e=Jr(0,k(k({},t),{values:t.values.map(function(e,t){var r;return n.failures[t]?e:(b(r=null!=(r=i.keyPath)&&r.includes(".")?ee(e):k({},e),i.keyPath,n.results[t]),r)})}),n);r.optimisticOps.push(e),queueMicrotask(function(){return t.mutatedParts&&Tr(t.mutatedParts)})}),e):c.mutate(t)},query:function(t){var i,e,r,n,a,o,s,l;return Kr(x,c)&&qr("query",t)?(i="immutable"===(null==(r=x.trans)?void 0:r.db._options.cache),e=(r=x).requery,r=r.signal,s=function(e,t,r,n){var i=Ar["idb://".concat(e,"/").concat(t)];if(!i)return[];if(!(e=i.queries[r]))return[null,!1,i,null];var a=e[(n.query?n.query.index.name:null)||""];if(!a)return[null,!1,i,null];switch(r){case"query":var o=null!=(s=n.direction)?s:"next",s=a.find(function(e){var t;return e.req.limit===n.limit&&e.req.values===n.values&&(null!=(t=e.req.direction)?t:"next")===o&&Yr(e.req.query.range,n.query.range)});return s?[s,!0,i,a]:[a.find(function(e){var t;return("limit"in e.req?e.req.limit:1/0)>=n.limit&&(null!=(t=e.req.direction)?t:"next")===o&&(!n.values||e.req.values)&&Qr(e.req.query.range,n.query.range)}),!1,i,a];case"count":s=a.find(function(e){return Yr(e.req.query.range,n.query.range)});return[s,!!s,i,a]}}(I,u,"query",t),l=s[0],n=s[1],a=s[2],o=s[3],l&&n?l.obsSet=t.obsSet:(s=c.query(t).then(function(e){var t=e.result;if(l&&(l.res=t),i){for(var r=0,n=t.length;r<n;++r)Object.freeze(t[r]);Object.freeze(t)}return e}).catch(function(e){return o&&l&&ae(o,l),Promise.reject(e)}),l={obsSet:t.obsSet,promise:s,subscribers:new Set,type:"query",req:t,dirty:!1},o?o.push(l):(o=[l],(a=a||(Ar["idb://".concat(I,"/").concat(u)]={queries:{query:{},count:{}},objs:new Map,optimisticOps:[],unsignaledParts:{}})).queries.query[t.query.index.name||""]=o)),en(l,o,e,r),l.promise.then(function(e){e=Xr(e.result,t,null==a?void 0:a.optimisticOps,c,l,i);return{result:i?e:ee(e)}})):c.query(t)}})}})}};function rn(e,n){return new Proxy(e,{get:function(e,t,r){return"db"===t?n:Reflect.get(e,t,r)}})}z.prototype.version=function(t){if(isNaN(t)||t<.1)throw new S.Type("Given version is not a positive number");if(t=Math.round(10*t)/10,this.idbdb||this._state.isBeingOpened)throw new S.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,t);var e=this._versions,r=e.filter(function(e){return e._cfg.version===t})[0];return r||(r=new this.Version(t),e.push(r),e.sort(or),r.stores({}),this._state.autoSchema=!1),r},z.prototype._whenReady=function(e){var r=this;return this.idbdb&&(this._state.openComplete||x.letThrough||this._vip)?e():new $(function(e,t){if(r._state.openComplete)return t(new S.DatabaseClosed(r._state.dbOpenError));if(!r._state.isBeingOpened){if(!r._state.autoOpen)return void t(new S.DatabaseClosed);r.open().catch(y)}r._state.dbReadyPromise.then(e,t)}).then(e)},z.prototype.use=function(e){var t=e.stack,r=e.create,n=e.level,e=e.name,i=(e&&this.unuse({stack:t,name:e}),this._middlewares[t]||(this._middlewares[t]=[]));return i.push({stack:t,create:r,level:null==n?10:n,name:e}),i.sort(function(e,t){return e.level-t.level}),this},z.prototype.unuse=function(e){var t=e.stack,r=e.name,n=e.create;return t&&this._middlewares[t]&&(this._middlewares[t]=this._middlewares[t].filter(function(e){return n?e.create!==n:!!r&&e.name!==r})),this},z.prototype.open=function(){var e=this;return ot(l,function(){return Lr(e)})},z.prototype._close=function(){this.on.close.fire(new CustomEvent("close"));var r=this._state;if(br.remove(this),this.idbdb){try{this.idbdb.close()}catch(e){}this.idbdb=null}r.isBeingOpened||(r.dbReadyPromise=new $(function(e){r.dbReadyResolve=e}),r.openCanceller=new $(function(e,t){r.cancelOpen=t}))},z.prototype.close=function(e){var e=(void 0===e?{disableAutoOpen:!0}:e).disableAutoOpen,t=this._state;e?(t.isBeingOpened&&t.cancelOpen(new S.DatabaseClosed),this._close(),t.autoOpen=!1,t.dbOpenError=new S.DatabaseClosed):(this._close(),t.autoOpen=this._options.autoOpen||t.isBeingOpened,t.openComplete=!1,t.dbOpenError=null)},z.prototype.delete=function(r){var i=this,a=(void 0===r&&(r={disableAutoOpen:!0}),0<arguments.length&&"object"!=typeof arguments[0]),o=this._state;return new $(function(n,t){function e(){i.close(r);var e=i._deps.indexedDB.deleteDatabase(i.name);e.onsuccess=E(function(){var e,t,r;e=i._deps,t=i.name,r=e.indexedDB,e=e.IDBKeyRange,wr(r)||t===dt||yr(r,e).delete(t).catch(y),n()}),e.onerror=P(t),e.onblocked=i._fireOnBlocked}if(a)throw new S.InvalidArgument("Invalid closeOptions argument to db.delete()");o.isBeingOpened?o.dbReadyPromise.then(e):e()})},z.prototype.backendDB=function(){return this.idbdb},z.prototype.isOpen=function(){return null!==this.idbdb},z.prototype.hasBeenClosed=function(){var e=this._state.dbOpenError;return e&&"DatabaseClosed"===e.name},z.prototype.hasFailed=function(){return null!==this._state.dbOpenError},z.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(z.prototype,"tables",{get:function(){var t=this;return I(this._allTables).map(function(e){return t._allTables[e]})},enumerable:!1,configurable:!0}),z.prototype.transaction=function(){var e=function(e,t,r){var n=arguments.length;if(n<2)throw new S.InvalidArgument("Too few arguments");for(var i=new Array(n-1);--n;)i[n-1]=arguments[n];return r=i.pop(),[e,X(i),r]}.apply(this,arguments);return this._transaction.apply(this,e)},z.prototype._transaction=function(e,t,r){var n,i,a=this,o=x.trans,s=(o&&o.db===this&&-1===e.indexOf("!")||(o=null),-1!==e.indexOf("?"));e=e.replace("!","").replace("?","");try{if(i=t.map(function(e){e=e instanceof a.Table?e.name:e;if("string"!=typeof e)throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return e}),"r"==e||e===pt)n=pt;else{if("rw"!=e&&e!=mt)throw new S.InvalidArgument("Invalid transaction mode: "+e);n=mt}if(o){if(o.mode===pt&&n===mt){if(!s)throw new S.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");o=null}o&&i.forEach(function(e){if(o&&-1===o.storeNames.indexOf(e)){if(!s)throw new S.SubTransaction("Table "+e+" not included in parent transaction.");o=null}}),s&&o&&!o.active&&(o=null)}}catch(r){return o?o._promise(null,function(e,t){t(r)}):C(r)}var l=function i(a,o,s,l,u){return $.resolve().then(function(){var e=x.transless||x,t=a._createTransaction(o,s,a._dbSchema,l),e=(t.explicit=!0,{trans:t,transless:e});if(l)t.idbtrans=l.idbtrans;else try{t.create(),t.idbtrans._explicit=!0,a._state.PR1398_maxLoop=3}catch(e){return e.name===me.InvalidState&&a.isOpen()&&0<--a._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),a.close({disableAutoOpen:!1}),a.open().then(function(){return i(a,o,s,null,u)})):C(e)}var r,n=se(u),e=(n&&rt(),$.follow(function(){var e;(r=u.call(t,t))&&(n?(e=w.bind(null,null),r.then(e,e)):"function"==typeof r.next&&"function"==typeof r.throw&&(r=Ur(r)))},e));return(r&&"function"==typeof r.then?$.resolve(r).then(function(e){return t.active?e:C(new S.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))}):e.then(function(){return r})).then(function(e){return l&&t._resolve(),t._completion.then(function(){return e})}).catch(function(e){return t._reject(e),C(e)})})}.bind(null,this,n,i,o,r);return o?o._promise(n,l,"lock"):x.trans?ot(x.transless,function(){return a._whenReady(l)}):this._whenReady(l)},z.prototype.table=function(e){if(v(this._allTables,e))return this._allTables[e];throw new S.InvalidTable("Table ".concat(e," does not exist"))};var h=z;function z(e,t){var a,n,o,r,i,s=this,l=(this._middlewares={},this.verno=0,z.dependencies),l=(this._options=t=k({addons:z.addons,autoOpen:!0,indexedDB:l.indexedDB,IDBKeyRange:l.IDBKeyRange,cache:"cloned",maxConnections:1e3},t),this._deps={indexedDB:t.indexedDB,IDBKeyRange:t.IDBKeyRange},t.addons),u=(this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this,{dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:y,dbReadyPromise:null,cancelOpen:y,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3,autoOpen:t.autoOpen}),c=(u.dbReadyPromise=new $(function(e){u.dbReadyResolve=e}),u.openCanceller=new $(function(e,t){u.cancelOpen=t}),this._state=u,this.name=e,this.on=xt(this,"populate","blocked","versionchange","close",{ready:[Se,y]}),this.once=function(r,n){var i=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];s.on(r).unsubscribe(i),n.apply(s,e)};return s.on(r,i)},this.on.ready.subscribe=K(this.on.ready.subscribe,function(i){return function(r,n){z.vip(function(){var t,e=s._state;e.openComplete?(e.dbOpenError||$.resolve().then(r),n&&i(r)):e.onReadyBeingFired?(e.onReadyBeingFired.push(r),n&&i(r)):(i(r),t=s,n||i(function e(){t.on.ready.unsubscribe(r),t.on.ready.unsubscribe(e)}))})}}),this.Collection=(a=this,$t(Tt.prototype,function(e,t){this.db=a;var r=ht,n=null;if(t)try{r=t()}catch(e){n=e}var t=e._ctx,e=t.table,i=e.hook.reading.fire;this._ctx={table:e,index:t.index,isPrimKey:!t.index||e.schema.primKey.keyPath&&t.index===e.schema.primKey.name,range:r,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:n,or:t.or,valueMapper:i!==ge?i:null}})),this.Table=(n=this,$t(It.prototype,function(e,t,r){this.db=n,this._tx=r,this.name=e,this.schema=t,this.hook=n._allTables[e]?n._allTables[e].hook:xt(null,{creating:[ye,y],reading:[ve,ge],updating:[ke,y],deleting:[we,y]})})),this.Transaction=(o=this,$t(Kt.prototype,function(e,t,r,n,i){var a=this;"readonly"!==e&&t.forEach(function(e){e=null==(e=r[e])?void 0:e.yProps;e&&(t=t.concat(e.map(function(e){return e.updatesTable})))}),this.db=o,this.mode=e,this.storeNames=t,this.schema=r,this.chromeTransactionDurability=n,this.idbtrans=null,this.on=xt(this,"complete","error","abort"),this.parent=i||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new $(function(e,t){a._resolve=e,a._reject=t}),this._completion.then(function(){a.active=!1,a.on.complete.fire()},function(e){var t=a.active;return a.active=!1,a.on.error.fire(e),a.parent?a.parent._reject(e):t&&a.idbtrans&&a.idbtrans.abort(),C(e)})})),this.Version=(r=this,$t(gr.prototype,function(e){this.db=r,this._cfg={version:e,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})),this.WhereClause=(i=this,$t(Bt.prototype,function(e,t,r){if(this.db=i,this._ctx={table:e,index:":id"===t?null:t,or:r},this._cmp=this._ascending=N,this._descending=function(e,t){return N(t,e)},this._max=function(e,t){return 0<N(e,t)?e:t},this._min=function(e,t){return N(e,t)<0?e:t},this._IDBKeyRange=i._deps.IDBKeyRange,!this._IDBKeyRange)throw new S.MissingAPI})),this.on("versionchange",function(e){0<e.newVersion?console.warn("Another connection wants to upgrade database '".concat(s.name,"'. Closing db now to resume the upgrade.")):console.warn("Another connection wants to delete database '".concat(s.name,"'. Closing db now to resume the delete request.")),s.close({disableAutoOpen:!1})}),this.on("blocked",function(e){!e.newVersion||e.newVersion<e.oldVersion?console.warn("Dexie.delete('".concat(s.name,"') was blocked")):console.warn("Upgrade '".concat(s.name,"' blocked by other connection holding version ").concat(e.oldVersion/10))}),this._maxKey=Wt(t.IDBKeyRange),this._createTransaction=function(e,t,r,n){return new s.Transaction(e,t,r,s._options.chromeTransactionDurability,n)},this._fireOnBlocked=function(t){s.on("blocked").fire(t),br.toArray().filter(function(e){return e.name===s.name&&e!==s&&!e._state.vcFired}).map(function(e){return e.on("versionchange").fire(t)})},this.use(Gr),this.use(tn),this.use(Hr),this.use(Mr),this.use(Zr),new Proxy(this,{get:function(e,t,r){var n;return"_vip"===t||("table"===t?function(e){return rn(s.table(e),c)}:(n=Reflect.get(e,t,r))instanceof It?rn(n,c):"tables"===t?n.map(function(e){return rn(e,c)}):"_createTransaction"===t?function(){return rn(n.apply(this,arguments),c)}:n)}}));this.vip=c,l.forEach(function(e){return e(s)})}var nn,Ce="undefined"!=typeof Symbol&&"observable"in Symbol?Symbol.observable:"@@observable",an=(on.prototype.subscribe=function(e,t,r){return this._subscribe(e&&"function"!=typeof e?e:{next:e,error:t,complete:r})},on.prototype[Ce]=function(){return this},on);function on(e){this._subscribe=e}try{nn={indexedDB:d.indexedDB||d.mozIndexedDB||d.webkitIndexedDB||d.msIndexedDB,IDBKeyRange:d.IDBKeyRange||d.webkitIDBKeyRange}}catch(e){nn={indexedDB:null,IDBKeyRange:null}}function sn(m){var f,h=!1,e=new an(function(n){var i=se(m);var a,o=!1,s={},l={},e={get closed(){return o},unsubscribe:function(){o||(o=!0,a&&a.abort(),u&&Gt.storagemutated.unsubscribe(p))}},u=(n.start&&n.start(e),!1),c=function(){return lt(t)};function d(){return Nr(l,s)}var p=function(e){Or(s,e),d()&&c()},t=function(){var t,r,e;!o&&nn.indexedDB&&(s={},t={},a&&a.abort(),a=new AbortController,e=function(e){var t=qe();try{i&&rt();var r=g(m,e);return r=i?r.finally(w):r}finally{t&&He()}}(r={subscr:t,signal:a.signal,requery:c,querier:m,trans:null}),u||(Gt.storagemutated.subscribe(p),u=!0),Promise.resolve(e).then(function(e){h=!0,f=e,o||r.signal.aborted||(d()||(l=t,d())?c():(s={},lt(function(){return!o&&n.next&&n.next(e)})))},function(e){h=!1,["DatabaseClosedError","AbortError"].includes(null==e?void 0:e.name)||o||lt(function(){o||n.error&&n.error(e)})}))};return setTimeout(c,0),e});return e.hasValue=function(){return h},e.getValue=function(){return f},e}var ln=h;function un(e){var t=dn;try{dn=!0,Gt.storagemutated.fire(e),zr(e,!0)}finally{dn=t}}M(ln,k(k({},e),{delete:function(e){return new ln(e,{addons:[]}).delete()},exists:function(e){return new ln(e,{addons:[]}).open().then(function(e){return e.close(),!0}).catch("NoSuchDatabaseError",function(){return!1})},getDatabaseNames:function(e){try{return t=ln.dependencies,r=t.indexedDB,t=t.IDBKeyRange,(wr(r)?Promise.resolve(r.databases()).then(function(e){return e.map(function(e){return e.name}).filter(function(e){return e!==dt})}):yr(r,t).toCollection().primaryKeys()).then(e)}catch(e){return C(new S.MissingAPI)}var t,r},defineClass:function(){return function(e){o(this,e)}},ignoreTransaction:function(e){return x.trans?ot(x.transless||l,e):e()},vip:kr,async:function(t){return function(){try{var e=Ur(t.apply(this,arguments));return e&&"function"==typeof e.then?e:$.resolve(e)}catch(e){return C(e)}}},spawn:function(e,t,r){try{var n=Ur(e.apply(r,t||[]));return n&&"function"==typeof n.then?n:$.resolve(n)}catch(e){return C(e)}},currentTransaction:{get:function(){return x.trans||null}},waitFor:function(e,t){e=$.resolve("function"==typeof e?ln.ignoreTransaction(e):e).timeout(t||6e4);return x.trans?x.trans.waitFor(e):e},Promise:$,debug:{get:function(){return c},set:function(e){Ie(e)}},derive:F,extend:o,props:M,override:K,Events:xt,on:Gt,liveQuery:sn,extendObservabilitySet:Or,getByKeyPath:u,setByKeyPath:b,delByKeyPath:function(t,e){"string"==typeof e?b(t,e,void 0):"length"in e&&[].map.call(e,function(e){b(t,e,void 0)})},shallowClone:J,deepClone:ee,getObjectDiff:Br,cmp:N,asap:H,minKey:-1/0,addons:[],connections:{get:br.toArray},errnames:me,dependencies:nn,cache:Ar,semVer:"4.4.5",version:"4.4.5".split(".").map(function(e){return parseInt(e)}).reduce(function(e,t,r){return e+t/Math.pow(10,2*r)})})),ln.maxKey=Wt(ln.dependencies.IDBKeyRange),"undefined"!=typeof dispatchEvent&&"undefined"!=typeof addEventListener&&(Gt(Zt,function(e){dn||(e=new CustomEvent(Vt,{detail:e}),dn=!0,dispatchEvent(e),dn=!1)}),addEventListener(Vt,function(e){e=e.detail;dn||un(e)}));var cn,dn=!1,pn=function(){};return"undefined"!=typeof BroadcastChannel&&((pn=function(){(cn=new BroadcastChannel(Vt)).onmessage=function(e){return e.data&&un(e.data)}})(),"function"==typeof cn.unref&&cn.unref(),Gt(Zt,function(e){dn||cn.postMessage(e)})),"undefined"!=typeof addEventListener&&(addEventListener("pagehide",function(e){if(!h.disableBfCache&&e.persisted){c&&console.debug("Dexie: handling persisted pagehide"),null!=cn&&cn.close();for(var t=0,r=br.toArray();t<r.length;t++)r[t].close({disableAutoOpen:!1})}}),addEventListener("pageshow",function(e){!h.disableBfCache&&e.persisted&&(c&&console.debug("Dexie: handling persisted pageshow"),pn(),un({all:new T(-1/0,[[]])}))})),$.rejectionMapper=function(e,t){return!e||e instanceof ue||e instanceof TypeError||e instanceof SyntaxError||!e.name||!he[e.name]?e:(t=new he[e.name](t||e.message,e),"stack"in e&&s(t,"stack",{get:function(){return this.inner.stack}}),t)},Ie(c),k(h,Object.freeze({__proto__:null,DEFAULT_MAX_CONNECTIONS:1e3,Dexie:h,Entity:vt,PropModification:kt,RangeSet:T,add:function(e){return new kt({add:e})},cmp:N,default:h,liveQuery:sn,mergeRanges:Ir,rangesOverlap:xr,remove:function(e){return new kt({remove:e})},replacePrefix:function(e,t){return new kt({replacePrefix:[e,t]})}}),{default:h}),h},"object"==typeof(e=e)&&void 0!==t?t.exports=r():"function"==typeof define&&define.amd?define(r):(e="undefined"!=typeof globalThis?globalThis:e||self).Dexie=r()}}),je=e({"node_modules/.pnpm/prismjs@1.30.0/node_modules/prismjs/components/prism-core.js"(e,t){var l,r,n,i,N,a="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},a=(r=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,i={},N={manual:(l=a).Prism&&l.Prism.manual,disableWorkerMessageHandler:l.Prism&&l.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof A?new A(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function r(e,n){var i,t;switch(n=n||{},N.util.type(e)){case"Object":if(t=N.util.objId(e),n[t])return n[t];for(var a in i={},n[t]=i,e)e.hasOwnProperty(a)&&(i[a]=r(e[a],n));return i;case"Array":return(t=N.util.objId(e),n[t])?n[t]:(i=[],n[t]=i,e.forEach(function(e,t){i[t]=r(e,n)}),i);default:return e}},getLanguage:function(e){for(;e;){var t=r.exec(e.className);if(t)return t[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,t){e.className=e.className.replace(RegExp(r,"gi"),""),e.classList.add("language-"+t)},currentScript:function(){if("undefined"==typeof document)return null;if(document.currentScript&&"SCRIPT"===document.currentScript.tagName)return document.currentScript;try{throw new Error}catch(e){var t=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(e.stack)||[])[1];if(t){var r,n=document.getElementsByTagName("script");for(r in n)if(n[r].src==t)return n[r]}return null}},isActive:function(e,t,r){for(var n="no-"+t;e;){var i=e.classList;if(i.contains(t))return!0;if(i.contains(n))return!1;e=e.parentElement}return!!r}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(e,t){var r,n=N.util.clone(N.languages[e]);for(r in t)n[r]=t[r];return n},insertBefore:function(r,e,t,n){var i,a=(n=n||N.languages)[r],o={};for(i in a)if(a.hasOwnProperty(i)){if(i==e)for(var s in t)t.hasOwnProperty(s)&&(o[s]=t[s]);t.hasOwnProperty(i)||(o[i]=a[i])}var l=n[r];return n[r]=o,N.languages.DFS(N.languages,function(e,t){t===l&&e!=r&&(this[e]=o)}),o},DFS:function e(t,r,n,i){i=i||{};var a,o,s,l=N.util.objId;for(a in t)t.hasOwnProperty(a)&&(r.call(t,a,t[a],n||a),o=t[a],"Object"!==(s=N.util.type(o))||i[l(o)]?"Array"!==s||i[l(o)]||(i[l(o)]=!0,e(o,r,a,i)):(i[l(o)]=!0,e(o,r,null,i)))}},plugins:{},highlightAll:function(e,t){N.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,r){var n={callback:r,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};N.hooks.run("before-highlightall",n),n.elements=Array.prototype.slice.apply(n.container.querySelectorAll(n.selector)),N.hooks.run("before-all-elements-highlight",n);for(var i,a=0;i=n.elements[a++];)N.highlightElement(i,!0===t,n.callback)},highlightElement:function(e,t,r){var n=N.util.getLanguage(e),i=N.languages[n],a=(N.util.setLanguage(e,n),e.parentElement);a&&"pre"===a.nodeName.toLowerCase()&&N.util.setLanguage(a,n);var o={element:e,language:n,grammar:i,code:e.textContent};function s(e){o.highlightedCode=e,N.hooks.run("before-insert",o),o.element.innerHTML=o.highlightedCode,N.hooks.run("after-highlight",o),N.hooks.run("complete",o),r&&r.call(o.element)}N.hooks.run("before-sanity-check",o),(a=o.element.parentElement)&&"pre"===a.nodeName.toLowerCase()&&!a.hasAttribute("tabindex")&&a.setAttribute("tabindex","0"),o.code?(N.hooks.run("before-highlight",o),o.grammar?t&&l.Worker?((n=new Worker(N.filename)).onmessage=function(e){s(e.data)},n.postMessage(JSON.stringify({language:o.language,code:o.code,immediateClose:!0}))):s(N.highlight(o.code,o.grammar,o.language)):s(N.util.encode(o.code))):(N.hooks.run("complete",o),r&&r.call(o.element))},highlight:function(e,t,r){e={code:e,grammar:t,language:r};if(N.hooks.run("before-tokenize",e),e.grammar)return e.tokens=N.tokenize(e.code,e.grammar),N.hooks.run("after-tokenize",e),A.stringify(N.util.encode(e.tokens),e.language);throw new Error('The language "'+e.language+'" has no grammar.')},tokenize:function(e,t){var r=t.rest;if(r){for(var n in r)t[n]=r[n];delete t.rest}for(var i=new u,a=(P(i,i.head,e),!function e(t,r,n,i,a,o){for(var s in n)if(n.hasOwnProperty(s)&&n[s]){var l=n[s];l=Array.isArray(l)?l:[l];for(var u=0;u<l.length;++u){if(o&&o.cause==s+","+u)return;for(var c,d=l[u],p=d.inside,m=!!d.lookbehind,f=!!d.greedy,h=d.alias,g=(f&&!d.pattern.global&&(c=d.pattern.toString().match(/[imsuy]*$/)[0],d.pattern=RegExp(d.pattern.source,c+"g")),d.pattern||d),v=i.next,b=a;v!==r.tail&&!(o&&b>=o.reach);b+=v.value.length,v=v.next){var y=v.value;if(r.length>t.length)return;if(!(y instanceof A)){var w,k=1;if(f){if(!(w=D(g,b,t,m))||w.index>=t.length)break;var _=w.index,S=w.index+w[0].length,I=b;for(I+=v.value.length;I<=_;)v=v.next,I+=v.value.length;if(I-=v.value.length,b=I,v.value instanceof A)continue;for(var x=v;x!==r.tail&&(I<S||"string"==typeof x.value);x=x.next)k++,I+=x.value.length;k--,y=t.slice(b,I),w.index-=b}else if(!(w=D(g,0,y,m)))continue;var _=w.index,$=w[0],E=y.slice(0,_),C=y.slice(_+$.length),y=b+y.length,O=(o&&y>o.reach&&(o.reach=y),v.prev),E=(E&&(O=P(r,O,E),b+=E.length),T(r,O,k),new A(s,p?N.tokenize($,p):$,h,$));v=P(r,O,E),C&&P(r,v,C),1<k&&($={cause:s+","+u,reach:y},e(t,r,n,v.prev,b,$),o)&&$.reach>o.reach&&(o.reach=$.reach)}}}}}(e,i,t,i.head,0),i),o=[],s=a.head.next;s!==a.tail;)o.push(s.value),s=s.next;return o},hooks:{all:{},add:function(e,t){var r=N.hooks.all;r[e]=r[e]||[],r[e].push(t)},run:function(e,t){var r=N.hooks.all[e];if(r&&r.length)for(var n,i=0;n=r[i++];)n(t)}},Token:A},l.Prism=N,A.stringify=function t(e,r){if("string"==typeof e)return e;var n;if(Array.isArray(e))return n="",e.forEach(function(e){n+=t(e,r)}),n;var i,a={type:e.type,content:t(e.content,r),tag:"span",classes:["token",e.type],attributes:{},language:r},e=e.alias,o=(e&&(Array.isArray(e)?Array.prototype.push.apply(a.classes,e):a.classes.push(e)),N.hooks.run("wrap",a),"");for(i in a.attributes)o+=" "+i+'="'+(a.attributes[i]||"").replace(/"/g,"&quot;")+'"';return"<"+a.tag+' class="'+a.classes.join(" ")+'"'+o+">"+a.content+"</"+a.tag+">"},l.document?((i=N.util.currentScript())&&(N.filename=i.src,i.hasAttribute("data-manual"))&&(N.manual=!0),N.manual||("loading"===(a=document.readyState)||"interactive"===a&&i&&i.defer?document.addEventListener("DOMContentLoaded",o):window.requestAnimationFrame?window.requestAnimationFrame(o):window.setTimeout(o,16))):l.addEventListener&&!N.disableWorkerMessageHandler&&l.addEventListener("message",function(e){var e=JSON.parse(e.data),t=e.language,r=e.code,e=e.immediateClose;l.postMessage(N.highlight(r,N.languages[t],t)),e&&l.close()},!1),N);function A(e,t,r,n){this.type=e,this.content=t,this.alias=r,this.length=0|(n||"").length}function D(e,t,r,n){e.lastIndex=t;t=e.exec(r);return t&&n&&t[1]&&(e=t[1].length,t.index+=e,t[0]=t[0].slice(e)),t}function u(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function P(e,t,r){var n=t.next,r={value:r,prev:t,next:n};return t.next=r,n.prev=r,e.length++,r}function T(e,t,r){for(var n=t.next,i=0;i<r&&n!==e.tail;i++)n=n.next;(t.next=n).prev=t,e.length-=i}function o(){N.manual||N.highlightAll()}void 0!==t&&t.exports&&(t.exports=a),"undefined"!=typeof global&&(global.Prism=a)}}),Le=e({"node_modules/.pnpm/react-simple-code-editor@0.14.1_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/react-simple-code-editor/lib/index.js"(e){"use strict";var L=e&&e.__assign||function(){return(L=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},n=e&&e.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&("get"in i?t.__esModule:!i.writable&&!i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){e[n=void 0===n?r:n]=t[r]}),i=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),t=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},U=e&&e.__rest||function(e,t){var r={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r},R=(Object.defineProperty(e,"__esModule",{value:!0}),t(h())),M="undefined"!=typeof window&&"navigator"in window&&/Win/i.test(navigator.platform),B="undefined"!=typeof window&&"navigator"in window&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),F="npm__react-simple-code-editor__textarea",Z="\n/**\n * Reset the text fill color so that placeholder is visible\n */\n.".concat(F,":empty {\n  -webkit-text-fill-color: inherit !important;\n}\n\n/**\n * Hack to apply on some CSS on IE10 and IE11\n */\n@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n  /**\n    * IE doesn't support '-webkit-text-fill-color'\n    * So we use 'color: transparent' to make the text transparent on IE\n    * Unlike other browsers, it doesn't affect caret color in IE\n    */\n  .").concat(F," {\n    color: transparent !important;\n  }\n\n  .").concat(F,"::selection {\n    background-color: #accef7 !important;\n    color: transparent !important;\n  }\n}\n"),t=R.forwardRef(function(e,t){function m(e,t){return e.substring(0,t).split("\n")}function f(e){var t=N.current,r=O.current.stack[O.current.offset];r&&t&&(O.current.stack[O.current.offset]=L(L({},r),{selectionStart:t.selectionStart,selectionEnd:t.selectionEnd})),P(e),z(e)}var r=e.autoFocus,n=e.disabled,i=e.form,a=e.highlight,o=e.ignoreTabKey,h=void 0!==o&&o,o=e.insertSpaces,g=void 0===o||o,o=e.maxLength,s=e.minLength,l=e.name,u=e.onBlur,c=e.onClick,d=e.onFocus,v=e.onKeyDown,p=e.onKeyUp,b=e.onValueChange,y=e.padding,y=void 0===y?0:y,w=e.placeholder,k=e.preClassName,_=e.readOnly,S=e.required,I=e.style,x=e.tabSize,$=void 0===x?2:x,x=e.textareaClassName,E=e.textareaId,C=e.value,e=U(e,["autoFocus","disabled","form","highlight","ignoreTabKey","insertSpaces","maxLength","minLength","name","onBlur","onClick","onFocus","onKeyDown","onKeyUp","onValueChange","padding","placeholder","preClassName","readOnly","required","style","tabSize","textareaClassName","textareaId","value"]),O=R.useRef({stack:[],offset:-1}),N=R.useRef(null),A=R.useState(!0),D=A[0],j=A[1],A={paddingTop:"object"==typeof y?y.top:y,paddingRight:"object"==typeof y?y.right:y,paddingBottom:"object"==typeof y?y.bottom:y,paddingLeft:"object"==typeof y?y.left:y},y=a(C),P=R.useCallback(function(e,t){void 0===t&&(t=!1);var r=O.current,n=r.stack,r=r.offset,r=(n.length&&-1<r&&(O.current.stack=n.slice(0,r+1),100<(r=O.current.stack.length))&&(O.current.stack=n.slice(n=r-100,r),O.current.offset=Math.max(O.current.offset-n,0)),Date.now());if(t){var n=O.current.stack[O.current.offset];if(n&&r-n.timestamp<3e3){var t=/[^a-z0-9]([a-z0-9]+)$/i,n=null==(n=m(n.value,n.selectionStart).pop())?void 0:n.match(t),i=null==(i=m(e.value,e.selectionStart).pop())?void 0:i.match(t);if(null!=n&&n[1]&&null!=(t=null==i?void 0:i[1])&&t.startsWith(n[1]))return void(O.current.stack[O.current.offset]=L(L({},e),{timestamp:r}))}}O.current.stack.push(L(L({},e),{timestamp:r})),O.current.offset++},[]),T=R.useCallback(function(){var e,t,r=N.current;r&&(e=r.value,t=r.selectionStart,r=r.selectionEnd,P({value:e,selectionStart:t,selectionEnd:r}))},[P]),z=function(e){var t=N.current;t&&(t.value=e.value,t.selectionStart=e.selectionStart,t.selectionEnd=e.selectionEnd,null!=b)&&b(e.value)};return R.useEffect(function(){T()},[T]),R.useImperativeHandle(t,function(){return{get session(){return{history:O.current}},set session(e){O.current=e.history}}},[]),R.createElement("div",L({},e,{style:L(L({},V.container),I)}),R.createElement("pre",L({className:k,"aria-hidden":"true",style:L(L(L({},V.editor),V.highlight),A)},"string"==typeof y?{dangerouslySetInnerHTML:{__html:y+"<br />"}}:{children:y})),R.createElement("textarea",{ref:function(e){return N.current=e},style:L(L(L({},V.editor),V.textarea),A),className:F+(x?" ".concat(x):""),id:E,value:C,onChange:function(e){var e=e.currentTarget,t=e.value,r=e.selectionStart,e=e.selectionEnd;P({value:t,selectionStart:r,selectionEnd:e},!0),b(t)},onKeyDown:function(e){var t,r,n,i,a,o,s,l,u,c,d,p;v&&(v(e),e.defaultPrevented)||("Escape"===e.key&&e.currentTarget.blur(),c=(r=e.currentTarget).value,t=r.selectionStart,r=r.selectionEnd,n=(g?" ":"\t").repeat($),"Tab"===e.key&&!h&&D?(e.preventDefault(),e.shiftKey?(i=(u=m(c,t)).length-1,a=m(c,r).length-1,p=c.split("\n").map(function(e,t){return i<=t&&t<=a&&e.startsWith(n)?e.substring(n.length):e}).join("\n"),c!==p&&(d=u[i],f({value:p,selectionStart:null!=d&&d.startsWith(n)?t-n.length:t,selectionEnd:r-(c.length-p.length)}))):t!==r?(o=(u=m(c,t)).length-1,s=m(c,r).length-1,d=u[o],f({value:c.split("\n").map(function(e,t){return o<=t&&t<=s?n+e:e}).join("\n"),selectionStart:d&&/\S/.test(d)?t+n.length:t,selectionEnd:r+n.length*(s-o+1)})):(l=t+n.length,f({value:c.substring(0,t)+n+c.substring(r),selectionStart:l,selectionEnd:l}))):"Backspace"===e.key?(p=t!==r,c.substring(0,t).endsWith(n)&&!p&&(e.preventDefault(),l=t-n.length,f({value:c.substring(0,t-n.length)+c.substring(r),selectionStart:l,selectionEnd:l}))):"Enter"===e.key?t===r&&null!=(d=null==(u=m(c,t).pop())?void 0:u.match(/^\s+/))&&d[0]&&(e.preventDefault(),l=t+(p="\n"+d[0]).length,f({value:c.substring(0,t)+p+c.substring(r),selectionStart:l,selectionEnd:l})):57===e.keyCode||219===e.keyCode||222===e.keyCode||192===e.keyCode?(u=void 0,57===e.keyCode&&e.shiftKey?u=["(",")"]:219===e.keyCode?u=e.shiftKey?["{","}"]:["[","]"]:222===e.keyCode?u=e.shiftKey?['"','"']:["'","'"]:192!==e.keyCode||e.shiftKey||(u=["`","`"]),t!==r&&u&&(e.preventDefault(),f({value:c.substring(0,t)+u[0]+c.substring(t,r)+u[1]+c.substring(r),selectionStart:t,selectionEnd:r+2}))):(B?e.metaKey&&90===e.keyCode:e.ctrlKey&&90===e.keyCode)&&!e.shiftKey&&!e.altKey?(e.preventDefault(),d=O.current,p=d.stack,d=d.offset,(p=p[d-1])&&(z(p),O.current.offset=Math.max(d-1,0))):(B?e.metaKey&&90===e.keyCode&&e.shiftKey:M?e.ctrlKey&&89===e.keyCode:e.ctrlKey&&90===e.keyCode&&e.shiftKey)&&!e.altKey?(e.preventDefault(),l=O.current,u=l.stack,l=l.offset,(c=u[l+1])&&(z(c),O.current.offset=Math.min(l+1,u.length-1))):77!==e.keyCode||!e.ctrlKey||B&&!e.shiftKey||(e.preventDefault(),j(function(e){return!e})))},onClick:c,onKeyUp:p,onFocus:d,onBlur:u,disabled:n,form:i,maxLength:o,minLength:s,name:l,placeholder:w,readOnly:_,required:S,autoFocus:r,autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"data-gramm":!1}),R.createElement("style",{dangerouslySetInnerHTML:{__html:Z}}))}),V={container:{position:"relative",textAlign:"left",boxSizing:"border-box",padding:0,overflow:"hidden"},textarea:{position:"absolute",top:0,left:0,height:"100%",width:"100%",resize:"none",color:"inherit",overflow:"hidden",MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",WebkitTextFillColor:"transparent"},highlight:{position:"relative",pointerEvents:"none"},editor:{margin:0,border:0,background:"none",boxSizing:"inherit",display:"inherit",fontFamily:"inherit",fontSize:"inherit",fontStyle:"inherit",fontVariantLigatures:"inherit",fontWeight:"inherit",letterSpacing:"inherit",lineHeight:"inherit",tabSize:"inherit",textIndent:"inherit",textRendering:"inherit",textTransform:"inherit",whiteSpace:"pre-wrap",wordBreak:"keep-all",overflowWrap:"break-word"}};e.default=t}}),Ue=e({"node_modules/.pnpm/classnames@2.3.2/node_modules/classnames/index.js"(e,t){!function(){"use strict";var o={}.hasOwnProperty;function s(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var n,i=typeof r;if("string"==i||"number"==i)e.push(r);else if(Array.isArray(r))r.length&&(n=s.apply(null,r))&&e.push(n);else if("object"==i)if(r.toString===Object.prototype.toString||r.toString.toString().includes("[native code]"))for(var a in r)o.call(r,a)&&r[a]&&e.push(a);else e.push(r.toString())}}return e.join(" ")}void 0!==t&&t.exports?t.exports=s.default=s:"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("classnames",[],function(){return s}):window.classNames=s}()}}),Re=e({"node_modules/.pnpm/react-dropdown@1.11.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/react-dropdown/dist/index.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var d=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==s(e)&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var r,n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(r in e){var a;Object.prototype.hasOwnProperty.call(e,r)&&((a=i?Object.getOwnPropertyDescriptor(e,r):null)&&(a.get||a.set)?Object.defineProperty(n,r,a):n[r]=e[r])}n.default=e,t&&t.set(e,n);return n}(h()),p=(t=Ue())&&t.__esModule?t:{default:t};function o(){var e;return"function"!=typeof WeakMap?null:(o=function(){return e},e=new WeakMap)}function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var t=function(e){var t,r=n;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");function n(e){var t,r;if(this instanceof n)return t=this,(t=!(r=a(n).call(this,e))||"object"!==s(r)&&"function"!=typeof r?c(t):r).state={selected:t.parseValue(e.value,e.options)||{label:void 0===e.placeholder?"Select...":e.placeholder,value:""},isOpen:!1},t.dropdownRef=(0,d.createRef)(),t.mounted=!0,t.handleDocumentClick=t.handleDocumentClick.bind(c(t)),t.fireChangeEvent=t.fireChangeEvent.bind(c(t)),t;throw new TypeError("Cannot call a class as a function")}return r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),e&&f(r,e),r=n,(e=[{key:"componentDidUpdate",value:function(e){this.props.value!==e.value&&(this.props.value?(e=this.parseValue(this.props.value,this.props.options))!==this.state.selected&&this.setState({selected:e}):this.setState({selected:{label:void 0===this.props.placeholder?"Select...":this.props.placeholder,value:""}}))}},{key:"componentDidMount",value:function(){document.addEventListener("click",this.handleDocumentClick,!1),document.addEventListener("touchend",this.handleDocumentClick,!1)}},{key:"componentWillUnmount",value:function(){this.mounted=!1,document.removeEventListener("click",this.handleDocumentClick,!1),document.removeEventListener("touchend",this.handleDocumentClick,!1)}},{key:"handleMouseDown",value:function(e){this.props.onFocus&&"function"==typeof this.props.onFocus&&this.props.onFocus(this.state.isOpen),"mousedown"===e.type&&0!==e.button||(e.stopPropagation(),e.preventDefault(),this.props.disabled)||this.setState({isOpen:!this.state.isOpen})}},{key:"parseValue",value:function(t,e){var r;if("string"==typeof t)for(var n,i=0,a=e.length;i<a;i++)"group"===e[i].type?(n=e[i].items.filter(function(e){return e.value===t})).length&&(r=n[0]):void 0!==e[i].value&&e[i].value===t&&(r=e[i]);return r||t}},{key:"setValue",value:function(e,t){e={selected:{value:e,label:t},isOpen:!1};this.fireChangeEvent(e),this.setState(e)}},{key:"fireChangeEvent",value:function(e){e.selected!==this.state.selected&&this.props.onChange&&this.props.onChange(e.selected)}},{key:"renderOption",value:function(r){var e=r.value,t=(void 0===e&&(e=r.label||r),r.label||r.value||r),n=e===this.state.selected.value||e===this.state.selected;m(i={},"".concat(this.props.baseClassName,"-option"),!0),m(i,r.className,!!r.className),m(i,"is-selected",n);var i=(0,p.default)(i),a=Object.keys(r.data||{}).reduce(function(e,t){return function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(r,!0).forEach(function(e){m(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(r).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({},e,m({},"data-".concat(t),r.data[t]))},{});return d.default.createElement("div",l({key:e,className:i,onMouseDown:this.setValue.bind(this,e,t),onClick:this.setValue.bind(this,e,t),role:"option","aria-selected":n?"true":"false"},a),t)}},{key:"buildMenu",value:function(){var n=this,e=this.props,t=e.options,i=e.baseClassName,e=t.map(function(e){var t,r;return"group"===e.type?(t=d.default.createElement("div",{className:"".concat(i,"-title")},e.name),r=e.items.map(function(e){return n.renderOption(e)}),d.default.createElement("div",{className:"".concat(i,"-group"),key:e.name,role:"listbox",tabIndex:"-1"},t,r)):n.renderOption(e)});return e.length?e:d.default.createElement("div",{className:"".concat(i,"-noresults")},"No options found")}},{key:"handleDocumentClick",value:function(e){!this.mounted||this.dropdownRef.current.contains(e.target)||this.state.isOpen&&this.setState({isOpen:!1})}},{key:"isValueSelected",value:function(){return"string"==typeof this.state.selected||""!==this.state.selected.value}},{key:"render",value:function(){var e=this.props,t=e.baseClassName,r=e.controlClassName,n=e.placeholderClassName,i=e.menuClassName,a=e.arrowClassName,o=e.arrowClosed,s=e.arrowOpen,e=e.className,l=this.props.disabled?"Dropdown-disabled":"",u="string"==typeof this.state.selected?this.state.selected:this.state.selected.label,e=(0,p.default)((m(c={},"".concat(t,"-root"),!0),m(c,e,!!e),m(c,"is-open",this.state.isOpen),c)),r=(0,p.default)((m(c={},"".concat(t,"-control"),!0),m(c,r,!!r),m(c,l,!!l),c)),c=(0,p.default)((m(l={},"".concat(t,"-placeholder"),!0),m(l,n,!!n),m(l,"is-selected",this.isValueSelected()),l)),l=(0,p.default)((m(n={},"".concat(t,"-menu"),!0),m(n,i,!!i),n)),n=(0,p.default)((m(i={},"".concat(t,"-arrow"),!0),m(i,a,!!a),i)),a=d.default.createElement("div",{className:c},u),i=this.state.isOpen?d.default.createElement("div",{className:l,"aria-expanded":"true"},this.buildMenu()):null;return d.default.createElement("div",{ref:this.dropdownRef,className:e},d.default.createElement("div",{className:r,onMouseDown:this.handleMouseDown.bind(this),onTouchEnd:this.handleMouseDown.bind(this),"aria-haspopup":"listbox"},a,d.default.createElement("div",{className:"".concat(t,"-arrow-wrapper")},s&&o?this.state.isOpen?s:o:d.default.createElement("span",{className:n}))),i)}}])&&i(r.prototype,e),t&&i(r,t),n}(d.Component);t.defaultProps={baseClassName:"Dropdown"},e.default=t}}),Me=e({"external-global-plugin:react-dom"(e,t){t.exports=Spicetify.ReactDOM}}),Be=e({"node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.3/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js"(e){"use strict";var t,c,i,a,d,p,m;"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),t=h(),c="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=t.useSyncExternalStore,a=t.useRef,d=t.useEffect,p=t.useMemo,m=t.useDebugValue,e.useSyncExternalStoreWithSelector=function(e,r,o,s,l){var u,t=a(null),n=(null===t.current?(u={hasValue:!1,value:null},t.current=u):u=t.current,t=p(function(){function e(e){var t;if(a)return r=i,c(n,e)?r:(t=s(e),void 0!==l&&l(r,t)?(n=e,r):(n=e,i=t));if(a=!0,e=s(n=e),void 0!==l&&u.hasValue){var r=u.value;if(l(r,e))return i=r}return i=e}var n,i,a=!1,t=void 0===o?null:o;return[function(){return e(r())},null===t?void 0:function(){return e(t())}]},[r,o,s,l]),i(e,t[0],t[1]));return d(function(){u.hasValue=!0,u.value=n},[n]),m(n),n},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}}),e=e({"node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.3/node_modules/use-sync-external-store/with-selector.js"(e,t){"use strict";t.exports=Be()}}),Fe={},A=(t(Fe,{default:()=>function(){return x$.default.createElement(I$,null)}}),e=>"string"==typeof e),Ze=()=>{let r,n;var e=new Promise((e,t)=>{r=e,n=t});return e.resolve=r,e.reject=n,e},Ve=e=>null==e?"":String(e),Ge=(e,t,r)=>{e.forEach(e=>{t[e]&&(r[e]=t[e])})},Ke=/###/g,qe=e=>e&&e.includes("###")?e.replace(Ke,"."):e,He=e=>!e||A(e),Je=(e,t,r)=>{var n=A(t)?t.split("."):t;let i=0;for(;i<n.length-1;){if(He(e))return{};var a=qe(n[i]);!e[a]&&r&&(e[a]=new r),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{},++i}return He(e)?{}:{obj:e,k:qe(n[i])}},We=(n,i,a)=>{var{obj:e,k:t}=Je(n,i,Object);if(void 0!==e||1===i.length)e[t]=a;else{let e=i[i.length-1],t=i.slice(0,i.length-1),r=Je(n,t,Object);for(;void 0===r.obj&&t.length;)e=t[t.length-1]+"."+e,t=t.slice(0,t.length-1),(r=Je(n,t,Object))?.obj&&void 0!==r.obj[r.k+"."+e]&&(r.obj=void 0);r.obj[r.k+"."+e]=a}},Xe=(e,t,r,n)=>{var{obj:e,k:t}=Je(e,t,Object);e[t]=e[t]||[],e[t].push(r)},Ye=(e,t)=>{var{obj:e,k:t}=Je(e,t);if(e&&Object.prototype.hasOwnProperty.call(e,t))return e[t]},Qe=(e,t,r)=>{e=Ye(e,r);return void 0!==e?e:Ye(t,r)},et=(e,t,r)=>{for(const n in t)"__proto__"!==n&&"constructor"!==n&&(Object.prototype.hasOwnProperty.call(e,n)?A(e[n])||e[n]instanceof String||A(t[n])||t[n]instanceof String?r&&(e[n]=t[n]):et(e[n],t[n],r):e[n]=t[n]);return e},tt=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),rt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},nt=e=>A(e)?e.replace(/[&<>"'\/]/g,e=>rt[e]):e,it=[" ",",","?","!",";"],at=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){var t=this.regExpMap.get(e);return void 0!==t||(t=new RegExp(e),this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,t),this.regExpQueue.push(e)),t}}(20),ot=(e,t,r)=>{t=t||"",r=r||"";var n=it.filter(e=>!t.includes(e)&&!r.includes(e));if(0===n.length)return!0;var i,n=at.getRegExp(`(${n.map(e=>"?"===e?"\\?":e).join("|")})`);let a=!n.test(e);return a||0<(i=e.indexOf(r))&&!n.test(e.substring(0,i))&&(a=!0),a},st=(e,t,a=".")=>{if(e){if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;var o=t.split(a);let i=e;for(let n=0;n<o.length;){if(!i||"object"!=typeof i)return;let t,r="";for(let e=n;e<o.length;++e)if(e!==n&&(r+=a),r+=o[e],void 0!==(t=i[r])&&!(["string","number","boolean"].includes(typeof t)&&e<o.length-1)){n+=e-n+1;break}i=t}return i}},lt=e=>e?.replace(/_/g,"-"),ut={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}},ct=class{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||ut,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,r,n){return n&&!this.debug?null:(e=e.map(e=>A(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g," "):e),A(e[0])&&(e[0]=""+r+this.prefix+" "+e[0]),this.logger[t](e))}create(e){return new ct(this.logger,{prefix:this.prefix+`:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new ct(this.logger,e)}},dt=new ct,pt=class{constructor(){this.observers={}}on(e,r){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);var t=this.observers[e].get(r)||0;this.observers[e].set(r,t+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}once(t,r){const n=(...e)=>{r(...e),this.off(t,n)};return this.on(t,n),this}emit(n,...i){this.observers[n]&&Array.from(this.observers[n].entries()).forEach(([t,r])=>{for(let e=0;e<r;e++)t(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([t,r])=>{for(let e=0;e<r;e++)t(n,...i)})}},mt=class extends pt{constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){e=this.options.ns.indexOf(e);-1<e&&this.options.ns.splice(e,1)}getResource(e,t,r,n={}){var i=(void 0!==n.keySeparator?n:this.options).keySeparator,n=(void 0!==n.ignoreJSONStructure?n:this.options).ignoreJSONStructure;let a;e.includes(".")?a=e.split("."):(a=[e,t],r&&(Array.isArray(r)?a.push(...r):A(r)&&i?a.push(...r.split(i)):a.push(r)));var o=Ye(this.data,a);return o||t||r||!e.includes(".")||(e=a[0],t=a[1],r=a.slice(2).join(".")),!o&&n&&A(r)?st(this.data?.[e]?.[t],r,i):o}addResource(e,t,r,n,i={silent:!1}){var a=(void 0!==i.keySeparator?i:this.options).keySeparator;let o=[e,t];r&&(o=o.concat(a?r.split(a):r)),e.includes(".")&&(n=t,t=(o=e.split("."))[1]),this.addNamespaces(t),We(this.data,o,n),i.silent||this.emit("added",e,t,r,n)}addResources(e,t,r,n={silent:!1}){for(const i in r)(A(r[i])||Array.isArray(r[i]))&&this.addResource(e,t,i,r[i],{silent:!0});n.silent||this.emit("added",e,t,r)}addResourceBundle(e,t,r,n,i,a={silent:!1,skipCopy:!1}){let o=[e,t],s=(e.includes(".")&&(n=r,r=t,t=(o=e.split("."))[1]),this.addNamespaces(t),Ye(this.data,o)||{});a.skipCopy||(r=JSON.parse(JSON.stringify(r))),n?et(s,r,i):s={...s,...r},We(this.data,o,s),a.silent||this.emit("added",e,t,r)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t=t||this.options.defaultNS,this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&0<Object.keys(t[e]).length)}toJSON(){return this.data}},ft={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,n,i){return e.forEach(e=>{t=this.processors[e]?.process(t,r,n,i)??t}),t}},ht=Symbol("i18next/PATH_KEY");function gt(e,t){var{[ht]:e}=e(function(){const r=[],n=Object.create(null);let i;return n.get=(e,t)=>(i?.revoke?.(),t===ht?r:(r.push(t),(i=Proxy.revocable(e,n)).proxy)),Proxy.revocable(Object.create(null),n).proxy}()),r=t?.keySeparator??".",n=t?.nsSeparator??":",i="strict"===t?.enableSelector;if(1<e.length&&n){t=t?.ns,t=i?Array.isArray(t)?t:t?[t]:null:Array.isArray(t)?t:null;if(t)if((i?t:1<t.length?t.slice(1):[]).includes(e[0]))return""+e[0]+n+e.slice(1).join(r)}return e.join(r)}var vt,bt=e=>!A(e)&&"boolean"!=typeof e&&"number"!=typeof e,yt=class extends pt{constructor(e,t={}){super(),Ge(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=dt.create("translator"),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){t={...t};return null!=e&&void 0!==(e=this.resolve(e,t))?.res&&(e=bt(e.res),!1!==t.returnObjects||!e)}extractFromKey(e,t){let r=(void 0!==t.nsSeparator?t:this.options).nsSeparator;void 0===r&&(r=":");var n=(void 0!==t.keySeparator?t:this.options).keySeparator;let i=t.ns||this.options.defaultNS||[];var a=r&&e.includes(r),t=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||ot(e,r,n));if(a&&!t){a=e.match(this.interpolator.nestingRegexp);if(a&&0<a.length)return{key:e,namespaces:A(i)?[i]:i};t=e.split(r);(r!==n||r===n&&this.options.ns.includes(t[0]))&&(i=t.shift()),e=t.join(n)}return{key:e,namespaces:A(i)?[i]:i}}translate(r,e,n){let i="object"==typeof e?{...e}:e;if(i=(i="object"==typeof(i="object"!=typeof i&&this.options.overloadTranslationOptionHandler?this.options.overloadTranslationOptionHandler(arguments):i)?{...i}:i)||{},null==r)return"";"function"==typeof r&&(r=gt(r,{...this.options,...i})),r=(r=Array.isArray(r)?r:[String(r)]).map(e=>"function"==typeof e?gt(e,{...this.options,...i}):String(e));var e=(void 0!==i.returnDetails?i:this.options).returnDetails,a=(void 0!==i.keySeparator?i:this.options).keySeparator;const{key:o,namespaces:t}=this.extractFromKey(r[r.length-1],i),s=t[t.length-1];let l=(void 0!==i.nsSeparator?i:this.options).nsSeparator;void 0===l&&(l=":");var u=i.lng||this.language,c=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===u?.toLowerCase())return c?e?{res:""+s+l+o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:s,usedParams:this.getUsedParamsDetails(i)}:""+s+l+o:e?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:s,usedParams:this.getUsedParamsDetails(i)}:o;c=this.resolve(r,i);let d=c?.res;var p=c?.usedKey||o,m=c?.exactUsedKey||o,f=(void 0!==i.joinArrays?i:this.options).joinArrays,h=!this.i18nFormat||this.i18nFormat.handleAsObject,g=void 0!==i.count&&!A(i.count);const v=yt.hasDefaultValue(i);var b=g?this.pluralResolver.getSuffix(u,i.count,i):"",y=i.ordinal&&g?this.pluralResolver.getSuffix(u,i.count,{ordinal:!1}):"";const w=g&&!i.ordinal&&0===i.count,k=w&&i[`defaultValue${this.options.pluralSeparator}zero`]||i["defaultValue"+b]||i["defaultValue"+y]||i.defaultValue;let _=d;h&&!d&&v&&(_=k);var b=bt(_),y=Object.prototype.toString.apply(_);if(!(h&&_&&b)||["[object Number]","[object Function]","[object RegExp]"].includes(y)||A(f)&&Array.isArray(_))if(h&&A(f)&&Array.isArray(d))d=(d=d.join(f))&&this.extendTranslation(d,r,i,n);else{let e=!1,t=!1;!this.isValidLookup(d)&&v&&(e=!0,d=k),this.isValidLookup(d)||(t=!0,d=o);const E=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&t?void 0:d,C=v&&k!==d&&this.options.updateMissing;if(t||e||C){this.logger.log(C?"updateKey":"missingKey",u,s,g&&!C?""+o+this.pluralResolver.getSuffix(u,i.count,i):o,C?k:d),a&&(b=this.resolve(o,{...i,keySeparator:!1}))&&b.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 t=[];var S=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if("fallback"===this.options.saveMissingTo&&S&&S[0])for(let e=0;e<S.length;e++)t.push(S[e]);else"all"===this.options.saveMissingTo?t=this.languageUtils.toResolveHierarchy(i.lng||this.language):t.push(i.lng||this.language);const O=(e,t,r)=>{r=v&&r!==d?r:E;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,t,r,C,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,s,t,r,C,i),this.emit("missingKey",e,s,t,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&g?t.forEach(t=>{var e=this.pluralResolver.getSuffixes(t,i);w&&i[`defaultValue${this.options.pluralSeparator}zero`]&&!e.includes(this.options.pluralSeparator+"zero")&&e.push(this.options.pluralSeparator+"zero"),e.forEach(e=>{O([t],o+e,i["defaultValue"+e]||k)})}):O(t,o,k))}d=this.extendTranslation(d,r,i,c,n),t&&d===o&&this.options.appendNamespaceToMissingKey&&(d=""+s+l+o),(t||e)&&this.options.parseMissingKeyHandler&&(d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?""+s+l+o:o,e?d:void 0,i))}else{if(!i.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),y=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,_,{...i,ns:t}):`key '${o} (${this.language})' returned an object instead of string.`,e?(c.res=y,c.usedParams=this.getUsedParamsDetails(i),c):y;if(a){var I,h=Array.isArray(_),x=h?[]:{},$=h?m:p;for(const N in _)Object.prototype.hasOwnProperty.call(_,N)&&(I=""+$+a+N,v&&!d?x[N]=this.translate(I,{...i,defaultValue:bt(k)?k[N]:void 0,joinArrays:!1,ns:t}):x[N]=this.translate(I,{...i,joinArrays:!1,ns:t}),x[N]===I)&&(x[N]=_[N]);d=x}}return e?(c.res=d,c.usedParams=this.getUsedParamsDetails(i),c):d}extendTranslation(r,n,i,a,o){if(this.i18nFormat?.parse)r=this.i18nFormat.parse(r,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});var s=A(r)&&(void 0!==i?.interpolation?.skipOnVariables?i:this.options).interpolation.skipOnVariables;let e,t=(s&&(l=r.match(this.interpolator.nestingRegexp),e=l&&l.length),i.replace&&!A(i.replace)?i.replace:i);this.options.interpolation.defaultVariables&&(t={...this.options.interpolation.defaultVariables,...t}),r=this.interpolator.interpolate(r,t,i.lng||this.language||a.usedLng,i),s&&(s=(l=r.match(this.interpolator.nestingRegexp))&&l.length,e<s)&&(i.nest=!1),!i.lng&&a&&a.res&&(i.lng=this.language||a.usedLng),!1!==i.nest&&(r=this.interpolator.nest(r,(...e)=>o?.[0]!==e[0]||i.context?this.translate(...e,n):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: `+n[0]),null),i)),i.interpolation&&this.interpolator.reset()}var l=i.postProcess||this.options.postProcess,s=A(l)?[l]:l;return r=null!=r&&s?.length&&!1!==i.applyPostProcessor?ft.handle(s,r,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(i)},...i}:i,this):r}resolve(e,d={}){let p,n,m,f,i;return A(e)&&(e=[e]),(e=Array.isArray(e)?e.map(e=>"function"==typeof e?gt(e,{...this.options,...d}):e):e).forEach(t=>{if(!this.isValidLookup(p)){t=this.extractFromKey(t,d);const s=t.key;n=s;let e=t.namespaces;this.options.fallbackNS&&(e=e.concat(this.options.fallbackNS));const l=void 0!==d.count&&!A(d.count),u=l&&!d.ordinal&&0===d.count,c=void 0!==d.context&&(A(d.context)||"number"==typeof d.context)&&""!==d.context,r=d.lngs||this.languageUtils.toResolveHierarchy(d.lng||this.language,d.fallbackLng);e.forEach(o=>{this.isValidLookup(p)||(i=o,this.checkedLoadedFor[r[0]+"-"+o]||!this.utils?.hasLoadedNamespace||this.utils?.hasLoadedNamespace(i)||(this.checkedLoadedFor[r[0]+"-"+o]=!0,this.logger.warn(`key "${n}" for languages "${r.join(", ")}" won't get resolved as namespace "${i}" 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!!!")),r.forEach(t=>{if(!this.isValidLookup(p)){f=t;var e,r=[s];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(r,s,t,o,d);else{let e;l&&(e=this.pluralResolver.getSuffix(t,d.count,d));var n,i=this.options.pluralSeparator+"zero",a=this.options.pluralSeparator+"ordinal"+this.options.pluralSeparator;l&&(d.ordinal&&e.startsWith(a)&&r.push(s+e.replace(a,this.options.pluralSeparator)),r.push(s+e),u)&&r.push(s+i),c&&(n=""+s+(this.options.contextSeparator||"_")+d.context,r.push(n),l)&&(d.ordinal&&e.startsWith(a)&&r.push(n+e.replace(a,this.options.pluralSeparator)),r.push(n+e),u)&&r.push(n+i)}for(;e=r.pop();)this.isValidLookup(p)||(m=e,p=this.getResource(t,o,e,d))}}))})}}),{res:p,usedKey:n,exactUsedKey:m,usedLng:f,usedNS:i}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,r,n={}){return(this.i18nFormat?.getResource?this.i18nFormat:this.resourceStore).getResource(e,t,r,n)}getUsedParamsDetails(e={}){var t=e.replace&&!A(e.replace);let r=t?e.replace:e;if(t&&void 0!==e.count&&(r={...r,count:e.count}),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!t){r={...r};for(const n of["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"])delete r[n]}return r}static hasDefaultValue(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith("defaultValue")&&void 0!==e[t])return!0;return!1}},wt=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=dt.create("languageUtils"),this.resolveHierarchyCache={}}clearCache(){this.resolveHierarchyCache={}}getScriptPartFromCode(e){return!(e=lt(e))||!e.includes("-")||2===(e=e.split("-")).length||(e.pop(),"x"===e[e.length-1].toLowerCase())?null:this.formatLanguageCode(e.join("-"))}getLanguagePartFromCode(e){var t;return(e=lt(e))&&e.includes("-")?(t=e.split("-"),this.formatLanguageCode(t[0])):e}formatLanguageCode(t){if(A(t)&&t.includes("-")){let e;try{e=Intl.getCanonicalLocales(t)[0]}catch(e){}return(e=e&&this.options.lowerCaseLng?e.toLowerCase():e)?e:this.options.lowerCaseLng?t.toLowerCase():t}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(e){return"languageOnly"!==this.options.load&&!this.options.nonExplicitSupportedLngs||(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(e=>{n||(e=this.formatLanguageCode(e),this.options.supportedLngs&&!this.isSupportedCode(e))||(n=e)}),!n&&this.options.supportedLngs&&e.forEach(e=>{if(!n){var t=this.getScriptPartFromCode(e);if(this.isSupportedCode(t))return n=t;const r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return n=r;n=this.options.supportedLngs.find(e=>e===r||!(!e.includes("-")&&!r.includes("-")||(!e.includes("-")||r.includes("-")||e.slice(0,e.indexOf("-"))!==r)&&!(e.startsWith(r)&&1<r.length)))}}),n=n||this.getFallbackCodes(this.options.fallbackLng)[0]}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),A(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let r=e[t];return(r=(r=(r=(r=r||e[this.getScriptPartFromCode(t)])||e[this.formatLanguageCode(t)])||e[this.getLanguagePartFromCode(t)])||e.default)||[]}toResolveHierarchy(t,r){var e=this.options.fallbackLng,e=Array.isArray(e)?e.join("|"):e,e=(e!==this._cachedFallbackLng&&(this.resolveHierarchyCache={},this._cachedFallbackLng=e),void 0===r||!1===r||A(r)),n=void 0===r&&"function"==typeof this.options.fallbackLng;let i=null;if(A(t)&&e&&!n){let e;e=void 0===r?"undefined":!1===r?"boolean:false":"string:"+r,i=t.length+`:${t}|`+e}if(null!==i){e=this.resolveHierarchyCache[i];if(void 0!==e)return e.slice()}n=this.getFallbackCodes((!1===r?[]:r)||this.options.fallbackLng||[],t);const a=[],o=e=>{e&&(this.isSupportedCode(e)?a.push(e):this.logger.warn("rejecting language code not found in supportedLngs: "+e))};return A(t)&&(t.includes("-")||t.includes("_"))?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(t))):A(t)&&o(this.formatLanguageCode(t)),n.forEach(e=>{a.includes(e)||o(this.formatLanguageCode(e))}),null!==i?(this.resolveHierarchyCache[i]=a).slice():a}},kt={zero:0,one:1,two:2,few:3,many:4,other:5},_t={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})},St=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=dt.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,r={}){var n=lt("dev"===t?"en":t),e=r.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:n,type:e});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:e})}catch(e){if("undefined"==typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),_t;if(!t.match(/-|_/))return _t;n=this.languageUtils.getLanguagePartFromCode(t);a=this.getRule(n,r)}return this.pluralRulesCache[i]=a}needsPlural(e,t={}){let r=this.getRule(e,t);return 1<(r=r||this.getRule("dev",t))?.resolvedOptions().pluralCategories.length}getPluralFormsOfKey(e,t,r={}){return this.getSuffixes(e,r).map(e=>""+t+e)}getSuffixes(e,t={}){let r=this.getRule(e,t);return(r=r||this.getRule("dev",t))?r.resolvedOptions().pluralCategories.sort((e,t)=>kt[e]-kt[t]).map(e=>""+this.options.prepend+(t.ordinal?"ordinal"+this.options.prepend:"")+e):[]}getSuffix(e,t,r={}){var n=this.getRule(e,r);return n?""+this.options.prepend+(r.ordinal?"ordinal"+this.options.prepend:"")+n.select(t):(this.logger.warn("no plural rule found for: "+e),this.getSuffix("dev",t,r))}},It=(e,t,r,n=".",i=!0)=>{let a=Qe(e,t,r);return a=!a&&i&&A(r)&&void 0===(a=st(e,r,n))?st(t,r,n):a},xt=e=>e.replace(/\$/g,"$$$$"),$t=class{constructor(e={}){this.logger=dt.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});var{escape:e,escapeValue:t,useRawValueToEscape:r,prefix:n,prefixEscaped:i,suffix:a,suffixEscaped:o,formatSeparator:s,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:c,nestingPrefixEscaped:d,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:f,maxReplaces:h,alwaysFormat:g}=e.interpolation;this.escape=void 0!==e?e:nt,this.escapeValue=void 0===t||t,this.useRawValueToEscape=void 0!==r&&r,this.prefix=n?tt(n):i||"{{",this.suffix=a?tt(a):o||"}}",this.formatSeparator=s||",",this.unescapePrefix=l?"":u?tt(u):"-",this.unescapeSuffix=!this.unescapePrefix&&l?tt(l):"",this.nestingPrefix=c?tt(c):d||tt("$t("),this.nestingSuffix=p?tt(p):m||tt(")"),this.nestingOptionsSeparator=f||",",this.maxReplaces=h||1e3,this.alwaysFormat=void 0!==g&&g,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){var e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,"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(n,i,a,o){let s,l,u;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},d=e=>{var t,r;return e.includes(this.formatSeparator)?(t=(r=e.split(this.formatSeparator)).shift().trim(),r=r.join(this.formatSeparator).trim(),this.format(It(i,c,t,this.options.keySeparator,this.options.ignoreJSONStructure),r,a,{...o,...i,interpolationkey:t})):(r=It(i,c,e,this.options.keySeparator,this.options.ignoreJSONStructure),this.alwaysFormat?this.format(r,void 0,a,{...o,...i,interpolationkey:e}):r)},p=(this.resetRegExp(),!this.escapeValue&&"string"==typeof n&&/\$t\([^)]*\{[^}]*\{\{/.test(n)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true."),o?.missingInterpolationHandler||this.options.missingInterpolationHandler),m=(void 0!==o?.interpolation?.skipOnVariables?o:this.options).interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>e},{regex:this.regexp,safeValue:e=>this.escapeValue?this.escape(e):e}].forEach(e=>{for(u=0;s=e.regex.exec(n);){var t=s[1].trim();if(void 0===(l=d(t)))if("function"==typeof p){var r=p(n,s,o);l=A(r)?r:""}else{if(!o||!Object.prototype.hasOwnProperty.call(o,t)){if(m){l=s[0];continue}this.logger.warn(`missed to pass in variable ${t} for interpolating `+n)}l=""}else A(l)||this.useRawValueToEscape||(l=Ve(l));r=e.safeValue(l);if(n=n.replace(s[0],xt(r)),m?(e.regex.lastIndex+=r.length,e.regex.lastIndex-=s[0].length):e.regex.lastIndex=0,++u>=this.maxReplaces)break}}),n}nest(t,r,n={}){let i,a,o;for(var s=(r,e)=>{var n=this.nestingOptionsSeparator;if(r.includes(n)){var i=r.split(new RegExp(tt(n)+"[ ]*{"));let t="{"+i[1];r=i[0];var i=(t=this.interpolate(t,o)).match(/'/g),a=t.match(/"/g);((i?.length??0)%2!=0||a)&&(a?.length??0)%2==0||(t=t.replace(/'/g,'"'));try{o=JSON.parse(t),e&&(o={...e,...o})}catch(e){return this.logger.warn("failed parsing options string in nesting for key "+r,e),""+r+n+t}o.defaultValue&&o.defaultValue.includes(this.prefix)&&delete o.defaultValue}return r};i=this.nestingRegexp.exec(t);){let e=[];(o=(o={...n}).replace&&!A(o.replace)?o.replace:o).applyPostProcessor=!1,delete o.defaultValue;var l=/{.*}/s.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(-1!==l&&(e=i[1].slice(l).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),i[1]=i[1].slice(0,l)),(a=r(s.call(this,i[1].trim(),o),o))&&i[0]===t&&!A(a))return a;(a=A(a)?a:Ve(a))||(this.logger.warn(`missed to resolve ${i[1]} for nesting `+t),a=""),e.length&&(a=e.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:i[1].trim()}),a.trim())),t=t.replace(i[0],a),this.regexp.lastIndex=0}return t}},Et=e=>{let t=e.toLowerCase().trim();const r={};return e.includes("(")&&(e=e.split("("),t=e[0].toLowerCase().trim(),e=e[1].slice(0,-1),"currency"!==t||e.includes(":")?"relativetime"!==t||e.includes(":")?e.split(";").forEach(e=>{var t;e&&([e,...t]=e.split(":"),t=t.join(":").trim().replace(/^'+|'+$/g,""),e=e.trim(),r[e]||(r[e]=t),"false"===t&&(r[e]=!1),"true"===t&&(r[e]=!0),isNaN(t)||(r[e]=parseInt(t,10)))}):r.range||(r.range=e.trim()):r.currency||(r.currency=e.trim())),{formatName:t,formatOptions:r}},Ct=o=>{const s={};return(e,t,r)=>{let n=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(n={...n,[r.interpolationkey]:void 0});var i=t+JSON.stringify(n);let a=s[i];return a||(a=o(lt(t),r),s[i]=a),a(e)}},Ot=n=>(e,t,r)=>n(lt(t),r)(e),Nt=class{constructor(e={}){this.logger=dt.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";t=t.cacheInBuiltFormats?Ct:Ot;this.formats={number:t((e,t)=>{const r=new Intl.NumberFormat(e,{...t});return e=>r.format(e)}),currency:t((e,t)=>{const r=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>r.format(e)}),datetime:t((e,t)=>{const r=new Intl.DateTimeFormat(e,{...t});return e=>r.format(e)}),relativetime:t((e,t)=>{const r=new Intl.RelativeTimeFormat(e,{...t});return e=>r.format(e,t.range||"day")}),list:t((e,t)=>{const r=new Intl.ListFormat(e,{...t});return e=>r.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Ct(t)}format(e,t,o,s={}){if(!t)return e;if(null==e)return e;var r=t.split(this.formatSeparator),n=[];for(let t=0;t<r.length;t++){let e=r[t];for(;-1<e.indexOf("(")&&!e.includes(")")&&t+1<r.length;)e=""+e+this.formatSeparator+r[++t];n.push(e)}return n.reduce((t,r)=>{var{formatName:r,formatOptions:n}=Et(r);if(this.formats[r]){let e=t;try{var i=s?.formatParams?.[s.interpolationkey]||{},a=i.locale||i.lng||s.locale||s.lng||o;e=this.formats[r](t,a,{...n,...s,...i})}catch(e){this.logger.warn(e)}return e}return this.logger.warn("there was no format function for "+r),t},e)}},At=(e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)},Dt=class extends pt{constructor(e,t,r,n={}){super(),this.backend=e,this.store=t,this.services=r,this.languageUtils=r.languageUtils,this.options=n,this.logger=dt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=0<=n.maxRetries?n.maxRetries:5,this.retryTimeout=1<=n.retryTimeout?n.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,n.backend,n)}queueLoad(e,t,i,r){const a={},o={},s={},l={};return e.forEach(r=>{let n=!0;t.forEach(e=>{var t=r+"|"+e;!i.reload&&this.store.hasResourceBundle(r,e)?this.state[t]=2:this.state[t]<0||(1===this.state[t]?void 0===o[t]&&(o[t]=!0):(this.state[t]=1,n=!1,void 0===o[t]&&(o[t]=!0),void 0===a[t]&&(a[t]=!0),void 0===l[e]&&(l[e]=!0)))}),n||(s[r]=!0)}),(Object.keys(a).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(a),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}loaded(e,t,r){var n=e.split("|");const i=n[0],a=n[1],o=(t&&this.emit("failedLoading",i,a,t),!t&&r&&this.store.addResourceBundle(i,a,r,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&r&&(this.state[e]=0),{});this.queue.forEach(r=>{Xe(r.loaded,[i],a),At(r,e),t&&r.errors.push(t),0!==r.pendingCount||r.done||(Object.keys(r.loaded).forEach(t=>{o[t]||(o[t]={});var e=r.loaded[t];e.length&&e.forEach(e=>{void 0===o[t][e]&&(o[t][e]=!0)})}),r.done=!0,r.errors.length?r.callback(r.errors):r.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(e=>!e.done)}read(n,i,a,o=0,s=this.retryTimeout,l){if(!n.length)return l(null,{});if(this.readingCalls>=this.maxParallelReads)this.waitingReads.push({lng:n,ns:i,fcName:a,tried:o,wait:s,callback:l});else{this.readingCalls++;const r=(e,t)=>{var r;this.readingCalls--,0<this.waitingReads.length&&(r=this.waitingReads.shift(),this.read(r.lng,r.ns,r.fcName,r.tried,r.wait,r.callback)),e&&t&&o<this.maxRetries?setTimeout(()=>{this.read(n,i,a,o+1,2*s,l)},s):l(e,t)};var e=this.backend[a].bind(this.backend);if(2!==e.length)return e(n,i,r);try{var t=e(n,i);t&&"function"==typeof t.then?t.then(e=>r(null,e)).catch(r):r(null,t)}catch(e){r(e)}}}prepareLoading(e,t,r={},n){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();A(e)&&(e=this.languageUtils.toResolveHierarchy(e)),A(t)&&(t=[t]);e=this.queueLoad(e,t,r,n);if(!e.toLoad.length)return e.pending.length||n(),null;e.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,r){this.prepareLoading(e,t,{},r)}reload(e,t,r){this.prepareLoading(e,t,{reload:!0},r)}loadOne(r,n=""){var e=r.split("|");const i=e[0],a=e[1];this.read(i,a,"read",void 0,void 0,(e,t)=>{e&&this.logger.warn(`${n}loading namespace ${a} for language ${i} failed`,e),!e&&t&&this.logger.log(`${n}loaded namespace ${a} for language `+i,t),this.loaded(r,e,t)})}saveMissing(t,r,n,i,a,o={},s=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(r))this.logger.warn(`did not save key "${n}" as the namespace "${r}" 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!!!");else if(null!=n&&""!==n){if(this.backend?.create){o={...o,isUpdate:a},a=this.backend.create.bind(this.backend);if(a.length<6)try{let e;(e=5===a.length?a(t,r,n,i,o):a(t,r,n,i))&&"function"==typeof e.then?e.then(e=>s(null,e)).catch(s):s(null,e)}catch(e){s(e)}else a(t,r,n,i,s,o)}t&&t[0]&&this.store.addResource(t[0],r,n,i)}}},Pt=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,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:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),A(e[1])&&(t.defaultValue=e[1]),A(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const r=e[3]||e[2];Object.keys(r).forEach(e=>{t[e]=r[e]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Tt=e=>(A(e.ns)&&(e.ns=[e.ns]),A(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),A(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),zt=()=>{},jt=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(e=>{"function"==typeof t[e]&&(t[e]=t[e].bind(t))})},Lt=class extends pt{constructor(e={},t){if(super(),this.options=Tt(e),this.services={},this.logger=dt,this.modules={external:[]},jt(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(t={},r){this.isInitializing=!0,"function"==typeof t&&(r=t,t={}),null==t.defaultNS&&t.ns&&(A(t.ns)?t.defaultNS=t.ns:t.ns.includes("translation")||(t.defaultNS=t.ns[0]));var n=Pt(),t=(this.options={...n,...this.options,...Tt(t)},this.options.interpolation={...n.interpolation,...this.options.interpolation},void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler),e=>e?"function"==typeof e?new e:e:null);if(!this.options.isClone){this.modules.logger?dt.init(t(this.modules.logger),this.options):dt.init(null,this.options);let e;e=this.modules.formatter||Nt;var n=new wt(this.options),i=(this.store=new mt(this.options.resources,this.options),this.services);i.logger=dt,i.resourceStore=this.store,i.languageUtils=n,i.pluralResolver=new St(n,{prepend:this.options.pluralSeparator}),e&&(i.formatter=t(e),i.formatter.init&&i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new $t(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new Dt(t(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(i.languageDetector=t(this.modules.languageDetector),i.languageDetector.init)&&i.languageDetector.init(i,this.options.detection,this.options),this.modules.i18nFormat&&(i.i18nFormat=t(this.modules.i18nFormat),i.i18nFormat.init)&&i.i18nFormat.init(this),this.translator=new yt(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}this.format=this.options.interpolation.format,r=r||zt,!this.options.fallbackLng||this.services.languageDetector||this.options.lng||0<(n=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng)).length&&"dev"!==n[0]&&(this.options.lng=n[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(t=>{this[t]=(...e)=>this.store[t](...e)});["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=(...e)=>(this.store[t](...e),this)});const a=Ze();t=()=>{var e=(e,t)=>{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),a.resolve(t),r(e,t)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?t():setTimeout(t,0),a}loadResources(e,t=zt){let r=t;t=A(e)?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if("cimode"===t?.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return r();const n=[],i=e=>{e&&"cimode"!==e&&this.services.languageUtils.toResolveHierarchy(e).forEach(e=>{"cimode"===e||n.includes(e)||n.push(e)})};t?i(t):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>i(e)),this.options.preload?.forEach?.(e=>i(e)),this.services.backendConnector.load(n,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),r(e)})}else r(null)}reloadResources(e,t,r){const n=Ze();return"function"==typeof e&&(r=e,e=void 0),"function"==typeof t&&(r=t,t=void 0),e=e||this.languages,t=t||this.options.ns,r=r||zt,this.services.backendConnector.reload(e,t,e=>{n.resolve(),r(e)}),n}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)return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&ft.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this;throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()")}setResolvedLanguage(e){if(e&&this.languages&&!["cimode","dev"].includes(e)){for(let e=0;e<this.languages.length;e++){var t=this.languages[e];if(!["cimode","dev"].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}this.resolvedLanguage||this.languages.includes(e)||!this.store.hasLanguageSomeTranslations(e)||(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(n,r){this.isLanguageChangingTo=n;const i=Ze(),a=(this.emit("languageChanging",n),e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)}),o=(e,t)=>{t?this.isLanguageChangingTo===n&&(a(t),this.translator.changeLanguage(t),this.isLanguageChangingTo=void 0,this.emit("languageChanged",t),this.logger.log("languageChanged",t)):this.isLanguageChangingTo=void 0,i.resolve((...e)=>this.t(...e)),r&&r(e,(...e)=>this.t(...e))};var e=e=>{n||e||!this.services.languageDetector||(e=[]);var t=A(e)?e:e&&e[0];const r=this.store.hasLanguageSomeTranslations(t)?t:this.services.languageUtils.getBestMatchFromCodes(A(e)?[e]:e);r&&(this.language||a(r),this.translator.language||this.translator.changeLanguage(r),this.services.languageDetector?.cacheUserLanguage?.(r)),this.loadResources(r,e=>{o(e,r)})};return n||!this.services.languageDetector||this.services.languageDetector.async?!n&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(e):this.services.languageDetector.detect(e):e(n):e(this.services.languageDetector.detect()),i}getFixedT(e,t,s,r){const l=r?.scopeNs,u=(e,t,...r)=>{let n;(n="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(r)):{...t}).lng=n.lng||u.lng,n.lngs=n.lngs||u.lngs;r=void 0!==n.ns&&null!==n.ns;n.ns=n.ns||u.ns,""!==n.keyPrefix&&(n.keyPrefix=n.keyPrefix||s||u.keyPrefix);const i={...this.options,...n},a=(Array.isArray(l)&&!r&&(i.ns=l),"function"==typeof n.keyPrefix&&(n.keyPrefix=gt(n.keyPrefix,i)),this.options.keySeparator||".");let o;return o=n.keyPrefix&&Array.isArray(e)?e.map(e=>("function"==typeof e&&(e=gt(e,i)),""+n.keyPrefix+a+e)):("function"==typeof e&&(e=gt(e,i)),n.keyPrefix?""+n.keyPrefix+a+e:e),this.t(o,n)};return A(e)?u.lng=e:u.lngs=e,u.ns=t,u.keyPrefix=s,u}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){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;var r=t.lng||this.resolvedLanguage||this.languages[0],n=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=(e,t)=>{e=this.services.backendConnector.state[e+"|"+t];return-1===e||0===e||2===e};if(t.precheck){t=t.precheck(this,a);if(void 0!==t)return t}return!!this.hasResourceBundle(r,e)||!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!a(r,e)||n&&!a(i,e)))}loadNamespaces(e,t){const r=Ze();return this.options.ns?((e=A(e)?[e]:e).forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}loadLanguages(e,t){const r=Ze(),n=(A(e)&&(e=[e]),this.options.preload||[]);e=e.filter(e=>!n.includes(e)&&this.services.languageUtils.isSupportedCode(e));return e.length?(this.options.preload=n.concat(e),this.loadResources(e=>{r.resolve(),t&&t(e)}),r):(t&&t(),Promise.resolve())}dir(e){if(!(e=e||this.resolvedLanguage||(0<this.languages?.length?this.languages[0]:this.language)))return"rtl";try{var t=new Intl.Locale(e);if(t&&t.getTextInfo){var r=t.getTextInfo();if(r&&r.direction)return r.direction}}catch(e){}t=this.services?.languageUtils||new wt(Pt());return!(1<e.toLowerCase().indexOf("-latn"))&&(["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"].includes(t.getLanguagePartFromCode(e))||1<e.toLowerCase().indexOf("-arab"))?"rtl":"ltr"}static createInstance(e={},t){e=new Lt(e,t);return e.createInstance=Lt.createInstance,e}cloneInstance(e={},t=zt){var r=e.forkResourceStore,n=(r&&delete e.forkResourceStore,{...this.options,...e,isClone:!0});const i=new Lt(n);void 0===e.debug&&void 0===e.prefix||(i.logger=i.logger.clone(e));return["store","services","language"].forEach(e=>{i[e]=this[e]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r&&(r=Object.keys(this.store.data).reduce((r,n)=>(r[n]={...this.store.data[n]},r[n]=Object.keys(r[n]).reduce((e,t)=>(e[t]={...r[n][t]},e),r[n]),r),{}),i.store=new mt(r,n),i.services.resourceStore=i.store),e.interpolation&&(r={...Pt().interpolation,...this.options.interpolation,...e.interpolation},e={...n,interpolation:r},i.services.interpolator=new $t(e)),i.translator=new yt(i.services,n),i.translator.on("*",(e,...t)=>{i.emit(e,...t)}),i.init(n,t),i.translator.options=n,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}},pt=Lt.createInstance(),w=(pt.createInstance,pt.dir,pt.init,pt.loadResources,pt.reloadResources,pt.use,pt.changeLanguage,pt.getFixedT,pt.t),Ut=(pt.exists,pt.setDefaultNamespace,pt.hasLoadedNamespace,pt.loadNamespaces,pt.loadLanguages,r(h())),Rt=(r(h(),1),r(h(),1),(e,t,r,n)=>{r=[r,{code:t,...n||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(r,"warn","react-i18next::",!0);Kt(r[0])&&(r[0]="react-i18next:: "+r[0]),e?.services?.logger?.warn?e.services.logger.warn(...r):console?.warn&&console.warn(...r)}),Mt={},Bt=(e,t,r,n)=>{Kt(r)&&Mt[r]||(Kt(r)&&(Mt[r]=new Date),Rt(e,t,r,n))},Ft=(t,r)=>()=>{if(t.isInitialized)r();else{const e=()=>{setTimeout(()=>{t.off("initialized",e)},0),r()};t.on("initialized",e)}},Zt=(e,t,r)=>{e.loadNamespaces(t,Ft(e,r))},Vt=(t,e,r,n)=>{if(Kt(r)&&(r=[r]),t.options.preload&&-1<t.options.preload.indexOf(e))return Zt(t,r,n);r.forEach(e=>{t.options.ns.indexOf(e)<0&&t.options.ns.push(e)}),t.loadLanguages(e,Ft(t,n))},Gt=(r,e,n={})=>e.languages&&e.languages.length?e.hasLoadedNamespace(r,{lng:n.lng,precheck:(e,t)=>{if(n.bindI18n&&-1<n.bindI18n.indexOf("languageChanging")&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!t(e.isLanguageChangingTo,r))return!1}}):(Bt(e,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:e.languages}),!0),Kt=e=>"string"==typeof e,qt=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Ht={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},Jt=e=>Ht[e],Wt={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(qt,Jt),transDefaultProps:void 0},Xt=()=>Wt,Yt=()=>vt,Qt={type:"3rdParty",init(e){var t;[t={}]=[e.options.react],Wt={...Wt,...t},vt=e}},er=(0,r(h(),1).createContext)(),tr=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}},rr=(r(h(),1),r(h(),1),class extends Error{constructor(e,t,r){super(e),this.name="TranslationParserError",this.position=t,this.translationString=r,Error.captureStackTrace&&Error.captureStackTrace(this,rr)}}),nr={"&nbsp;":" ","&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&apos;":"'","&copy;":"©","&reg;":"®","&trade;":"™","&hellip;":"…","&ndash;":"–","&mdash;":"—","&lsquo;":"‘","&rsquo;":"’","&sbquo;":"‚","&ldquo;":"“","&rdquo;":"”","&bdquo;":"„","&dagger;":"†","&Dagger;":"‡","&bull;":"•","&prime;":"′","&Prime;":"″","&lsaquo;":"‹","&rsaquo;":"›","&sect;":"§","&para;":"¶","&middot;":"·","&ensp;":" ","&emsp;":" ","&thinsp;":" ","&euro;":"€","&pound;":"£","&yen;":"¥","&cent;":"¢","&curren;":"¤","&times;":"×","&divide;":"÷","&minus;":"−","&plusmn;":"±","&ne;":"≠","&le;":"≤","&ge;":"≥","&asymp;":"≈","&equiv;":"≡","&infin;":"∞","&int;":"∫","&sum;":"∑","&prod;":"∏","&radic;":"√","&part;":"∂","&permil;":"‰","&deg;":"°","&micro;":"µ","&larr;":"←","&uarr;":"↑","&rarr;":"→","&darr;":"↓","&harr;":"↔","&crarr;":"↵","&lArr;":"⇐","&uArr;":"⇑","&rArr;":"⇒","&dArr;":"⇓","&hArr;":"⇔","&alpha;":"α","&beta;":"β","&gamma;":"γ","&delta;":"δ","&epsilon;":"ε","&zeta;":"ζ","&eta;":"η","&theta;":"θ","&iota;":"ι","&kappa;":"κ","&lambda;":"λ","&mu;":"μ","&nu;":"ν","&xi;":"ξ","&omicron;":"ο","&pi;":"π","&rho;":"ρ","&sigma;":"σ","&tau;":"τ","&upsilon;":"υ","&phi;":"φ","&chi;":"χ","&psi;":"ψ","&omega;":"ω","&Alpha;":"Α","&Beta;":"Β","&Gamma;":"Γ","&Delta;":"Δ","&Epsilon;":"Ε","&Zeta;":"Ζ","&Eta;":"Η","&Theta;":"Θ","&Iota;":"Ι","&Kappa;":"Κ","&Lambda;":"Λ","&Mu;":"Μ","&Nu;":"Ν","&Xi;":"Ξ","&Omicron;":"Ο","&Pi;":"Π","&Rho;":"Ρ","&Sigma;":"Σ","&Tau;":"Τ","&Upsilon;":"Υ","&Phi;":"Φ","&Chi;":"Χ","&Psi;":"Ψ","&Omega;":"Ω","&Agrave;":"À","&Aacute;":"Á","&Acirc;":"Â","&Atilde;":"Ã","&Auml;":"Ä","&Aring;":"Å","&AElig;":"Æ","&Ccedil;":"Ç","&Egrave;":"È","&Eacute;":"É","&Ecirc;":"Ê","&Euml;":"Ë","&Igrave;":"Ì","&Iacute;":"Í","&Icirc;":"Î","&Iuml;":"Ï","&ETH;":"Ð","&Ntilde;":"Ñ","&Ograve;":"Ò","&Oacute;":"Ó","&Ocirc;":"Ô","&Otilde;":"Õ","&Ouml;":"Ö","&Oslash;":"Ø","&Ugrave;":"Ù","&Uacute;":"Ú","&Ucirc;":"Û","&Uuml;":"Ü","&Yacute;":"Ý","&THORN;":"Þ","&szlig;":"ß","&agrave;":"à","&aacute;":"á","&acirc;":"â","&atilde;":"ã","&auml;":"ä","&aring;":"å","&aelig;":"æ","&ccedil;":"ç","&egrave;":"è","&eacute;":"é","&ecirc;":"ê","&euml;":"ë","&igrave;":"ì","&iacute;":"í","&icirc;":"î","&iuml;":"ï","&eth;":"ð","&ntilde;":"ñ","&ograve;":"ò","&oacute;":"ó","&ocirc;":"ô","&otilde;":"õ","&ouml;":"ö","&oslash;":"ø","&ugrave;":"ù","&uacute;":"ú","&ucirc;":"û","&uuml;":"ü","&yacute;":"ý","&thorn;":"þ","&yuml;":"ÿ","&iexcl;":"¡","&iquest;":"¿","&fnof;":"ƒ","&circ;":"ˆ","&tilde;":"˜","&OElig;":"Œ","&oelig;":"œ","&Scaron;":"Š","&scaron;":"š","&Yuml;":"Ÿ","&ordf;":"ª","&ordm;":"º","&macr;":"¯","&acute;":"´","&cedil;":"¸","&sup1;":"¹","&sup2;":"²","&sup3;":"³","&frac14;":"¼","&frac12;":"½","&frac34;":"¾","&spades;":"♠","&clubs;":"♣","&hearts;":"♥","&diams;":"♦","&loz;":"◊","&oline;":"‾","&frasl;":"⁄","&weierp;":"℘","&image;":"ℑ","&real;":"ℜ","&alefsym;":"ℵ"};new RegExp(Object.keys(nr).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),"g"),r(h(),1);var ir=r(h(),1),ar=r(n(),1),or={t:(e,t)=>{var r;return Kt(t)?t:"object"==typeof(r=t)&&null!==r&&Kt(t.defaultValue)?t.defaultValue:"function"==typeof e?"":Array.isArray(e)?"function"==typeof(r=e[e.length-1])?"":r:e},ready:!1},sr=()=>()=>{},lr=r(h(),1),nr=(o,s={})=>function(a){function r({forwardedRef:e,...t}){var[r,n,i]=((e,i)=>{var t=i["i18n"],{i18n:r,defaultNS:n}=(0,ir.useContext)(er)||{};const a=t||r||Yt(),o=(a&&!a.reportNamespaces&&(a.reportNamespaces=new tr),a||Bt(a,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next."),(0,ir.useMemo)(()=>({...Xt(),...a?.options?.react,...i}),[a,i])),{useSuspense:s,keyPrefix:l}=o;t=e||n||a?.options?.defaultNS;const u=Kt(t)?[t]:t||["translation"],c=(0,ir.useMemo)(()=>u,u),d=(a?.reportNamespaces?.addUsedNamespaces?.(c),(0,ir.useRef)(0));r=(0,ir.useCallback)(e=>{if(!a)return sr;const{bindI18n:t,bindI18nStore:r}=o,n=()=>{d.current+=1,e()};return t&&a.on(t,n),r&&a.store.on(r,n),()=>{t&&t.split(" ").forEach(e=>a.off(e,n)),r&&r.split(" ").forEach(e=>a.store.off(e,n))}},[a,o]);const p=(0,ir.useRef)();e=(0,ir.useCallback)(()=>{var e,t,r,n;return a?(e=!(!a.isInitialized&&!a.initializedStoreOnce)&&c.every(e=>Gt(e,a,o)),t=i.lng||a.language,r=d.current,(n=p.current)&&n.ready===e&&n.lng===t&&n.keyPrefix===l&&n.revision===r?n:(n={t:a.getFixedT(t,"fallback"===o.nsMode?c:c[0],l,{scopeNs:c}),ready:e,lng:t,keyPrefix:l,revision:r},p.current=n)):or},[a,c,l,o,i.lng]);const[m,f]=(0,ir.useState)(0),{t:h,ready:g}=(0,ar.useSyncExternalStore)(r,e,e),v=((0,ir.useEffect)(()=>{var e;!a||g||s||(e=()=>f(e=>e+1),i.lng?Vt(a,i.lng,c,e):Zt(a,c,e))},[a,i.lng,c,g,s,m]),a||{}),b=(0,ir.useRef)(null),y=(0,ir.useRef)(),w=e=>{var t=Object.getOwnPropertyDescriptors(e),t=(t.__original&&delete t.__original,Object.create(Object.getPrototypeOf(e),t));if(!Object.prototype.hasOwnProperty.call(t,"__original"))try{Object.defineProperty(t,"__original",{value:e,writable:!1,enumerable:!1,configurable:!1})}catch(e){}return t};n=(0,ir.useMemo)(()=>{var e=v,t=e?.language;let r=e;e&&(!b.current||b.current.__original!==e||y.current!==t?(r=w(e),b.current=r,y.current=t):r=b.current);e=g||s?h:(...e)=>(Bt(a,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),h(...e)),t=[e,r,g];return t.t=e,t.i18n=r,t.ready=g,t},[h,v,g,v.resolvedLanguage,v.language,v.languages]);if(a&&s&&!g){let e=!1;try{e=!0}catch(e){}throw e&&Bt(a,"SUSPENDED_WHILE_LOADING","useTranslation: suspended while translations are loading (useSuspense is true by default). Add a <Suspense> boundary above this component, or set react.useSuspense: false in the i18next init options. https://react.i18next.com/latest/usetranslation-hook"),new Promise(e=>{var t=()=>e();i.lng?Vt(a,i.lng,c,t):Zt(a,c,t)})}return n})(o,{...t,keyPrefix:s.keyPrefix}),t={...t,t:r,i18n:n,tReady:i};return s.withRef&&e?t.ref=e:!s.withRef&&e&&(t.forwardedRef=e),(0,lr.createElement)(a,t)}var e;r.displayName=`withI18nextTranslation(${e=a,e.displayName||e.name||(Kt(e)&&0<e.length?e:"Unknown")})`,r.WrappedComponent=a;return s.withRef?(0,lr.forwardRef)((e,t)=>(0,lr.createElement)(r,Object.assign({},e,{forwardedRef:t}))):r},a=(r(h(),1),r(h(),1),r(h(),1),r(h())),ur=r(i()),cr="1.0.10",n="marketplace",x={installedExtensions:n+":installed-extensions",installedSnippets:n+":installed-snippets",installedThemes:n+":installed-themes",activeTab:n+":active-tab",tabs:n+":tabs",sort:n+":sort",themeInstalled:n+":theme-installed",localTheme:n+":local-theme",albumArtBasedColor:n+":albumArtBasedColors",albumArtBasedColorMode:n+":albumArtBasedColorsMode",albumArtBasedColorVibrancy:n+":albumArtBasedColorsVibrancy",colorShift:n+":colorShift"},dr=[{name:"Extensions",enabled:!0},{name:"Themes",enabled:!0},{name:"Snippets",enabled:!0},{name:"Apps",enabled:!0},{name:"Installed",enabled:!0}],pr=100,mr="/marketplace",fr="https://github.com/spicetify/marketplace/releases",hr="https://api.github.com/repos/spicetify/marketplace/releases/latest",i={},gr=(t(i,{$brand:()=>hn,$input:()=>Du,$output:()=>Au,NEVER:()=>pn,TimePrecision:()=>Pc,ZodAny:()=>Zf,ZodArray:()=>Qf,ZodBase64:()=>sf,ZodBase64URL:()=>uf,ZodBigInt:()=>Df,ZodBigIntFormat:()=>Tf,ZodBoolean:()=>Nf,ZodCIDRv4:()=>rf,ZodCIDRv6:()=>af,ZodCUID:()=>Mm,ZodCUID2:()=>Fm,ZodCatch:()=>Hh,ZodCodec:()=>eg,ZodCompileAsyncError:()=>Uu,ZodCompileUnsupportedError:()=>O,ZodCreditCard:()=>mf,ZodCustom:()=>fg,ZodCustomStringFormat:()=>vf,ZodDate:()=>Xf,ZodDefault:()=>Mh,ZodDiscriminatedUnion:()=>ch,ZodE164:()=>df,ZodEmail:()=>Im,ZodEmoji:()=>jm,ZodEnum:()=>Ih,ZodError:()=>tm,ZodExactOptional:()=>zh,ZodFile:()=>Oh,ZodFirstPartyTypeKind:()=>$g,ZodFunction:()=>pg,ZodGUID:()=>$m,ZodIPv4:()=>Wm,ZodIPv6:()=>ef,ZodISODate:()=>km,ZodISODateTime:()=>wm,ZodISODuration:()=>Sm,ZodISOTime:()=>_m,ZodIntersection:()=>ph,ZodIssueCode:()=>xg,ZodJWT:()=>hf,ZodKSUID:()=>Hm,ZodLazy:()=>lg,ZodLiteral:()=>Eh,ZodMAC:()=>Ym,ZodMap:()=>wh,ZodNaN:()=>Wh,ZodNanoID:()=>Um,ZodNever:()=>qf,ZodNonOptional:()=>Vh,ZodNull:()=>Bf,ZodNullable:()=>Lh,ZodNumber:()=>_f,ZodNumberFormat:()=>If,ZodObject:()=>rh,ZodOptional:()=>Ph,ZodPipe:()=>Yh,ZodPrefault:()=>Fh,ZodPreprocess:()=>ng,ZodPromise:()=>cg,ZodReadonly:()=>ig,ZodRealError:()=>rm,ZodRecord:()=>gh,ZodSet:()=>_h,ZodString:()=>vm,ZodStringFormat:()=>ym,ZodSuccess:()=>Kh,ZodSymbol:()=>Lf,ZodTemplateLiteral:()=>og,ZodTransform:()=>Ah,ZodTuple:()=>fh,ZodType:()=>l,ZodULID:()=>Vm,ZodURL:()=>Pm,ZodUUID:()=>Cm,ZodUndefined:()=>Rf,ZodUnion:()=>oh,ZodUnknown:()=>Gf,ZodVoid:()=>Jf,ZodXID:()=>Km,ZodXor:()=>lh,_ZodString:()=>gm,_default:()=>Bh,_function:()=>mg,any:()=>Vf,array:()=>eh,base64:()=>lf,base64url:()=>cf,bigint:()=>Pf,boolean:()=>Af,catch:()=>Jh,check:()=>hg,cidrv4:()=>nf,cidrv6:()=>of,clone:()=>Rr,codec:()=>tg,coerce:()=>Lg,compile:()=>Ru,config:()=>yn,core:()=>gr,creditCard:()=>ff,cuid:()=>Bm,cuid2:()=>Zm,custom:()=>gg,date:()=>Yf,decode:()=>lm,decodeAsync:()=>cm,deepPartial:()=>function(e){return zg(e,{object:e=>e.partial(),union:e=>{var t=e._zod.def;return void 0===t.discriminator?e:sh(t.options)}})},describe:()=>yg,discriminatedUnion:()=>dh,e164:()=>pf,email:()=>xm,emoji:()=>Lm,encode:()=>sm,encodeAsync:()=>um,endsWith:()=>Ed,enum:()=>xh,exactOptional:()=>jh,file:()=>Nh,flattenError:()=>$n,float32:()=>$f,float64:()=>Ef,formatError:()=>En,fromJSONSchema:()=>function(e,t){if("boolean"==typeof e)return e?$.any():$.never();let r;try{r=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}var e=function(e,t){e=e.$schema;return"https://json-schema.org/draft/2020-12/schema"!==e?"http://json-schema.org/draft-07/schema#"!==e?"http://json-schema.org/draft-04/schema#"!==e?t??"draft-2020-12":"draft-4":"draft-7":"draft-2020-12"}(r,t?.defaultTarget),n=r.$defs||r.definitions||{},e={version:e,defs:n,refs:new Map,processing:new Set,rootSchema:r,registry:t?.registry??zu};return Pg(r,e)},function:()=>mg,getDiscriminatedOption:()=>ps,getErrorMap:()=>function(){return yn().customError},globalRegistry:()=>zu,gt:()=>ud,gte:()=>cd,guid:()=>Em,hash:()=>kf,hex:()=>wf,hostname:()=>yf,httpUrl:()=>zm,includes:()=>xd,input:()=>function(e){return zg(e,{pipe:e=>{return(e=e._zod.def).in._zod.traits.has("$ZodTransform")?jg(e):e.in},default:(e,t)=>t?Th(e._zod.def.innerType):e,catch:(e,t)=>t?e._zod.def.innerType:e})},instanceof:()=>kg,int:()=>xf,int32:()=>Cf,int64:()=>zf,intersection:()=>mh,invertCodec:()=>rg,ipv4:()=>Xm,ipv6:()=>tf,iso:()=>Eg,json:()=>Sg,jwt:()=>gf,keyof:()=>th,ksuid:()=>Jm,lazy:()=>ug,length:()=>kd,literal:()=>Ch,locales:()=>hl,looseObject:()=>ah,looseRecord:()=>yh,lowercase:()=>Sd,lt:()=>sd,lte:()=>ld,mac:()=>Qm,map:()=>kh,maxLength:()=>yd,maxSize:()=>gd,memoizer:()=>ml,meta:()=>wg,mime:()=>Nd,minLength:()=>wd,minSize:()=>vd,multipleOf:()=>hd,nan:()=>Xh,nanoid:()=>Rm,nativeEnum:()=>$h,negative:()=>pd,never:()=>Hf,nonnegative:()=>fd,nonoptional:()=>Gh,nonpositive:()=>md,normalize:()=>Dd,null:()=>Ff,nullable:()=>Uh,nullish:()=>Rh,number:()=>Sf,object:()=>nh,optional:()=>Th,output:()=>function(e){return zg(e,{pipe:e=>jg(e._zod.def),prefault:(e,t)=>t?e._zod.def.innerType:e})},overwrite:()=>Ad,parse:()=>nm,parseAsync:()=>im,partialRecord:()=>bh,pipe:()=>Qh,positive:()=>dd,prefault:()=>Zh,preprocess:()=>Ig,prettifyError:()=>Nn,promise:()=>dg,properties:()=>Od,property:()=>Cd,readonly:()=>ag,record:()=>vh,refine:()=>vg,regex:()=>_d,regexes:()=>oi,registry:()=>Tu,safeDecode:()=>pm,safeDecodeAsync:()=>fm,safeEncode:()=>dm,safeEncodeAsync:()=>mm,safeParse:()=>am,safeParseAsync:()=>om,set:()=>Sh,setErrorMap:()=>function(e){yn({customError:e})},size:()=>bd,slugify:()=>jd,startsWith:()=>$d,strictObject:()=>ih,string:()=>bm,stringFormat:()=>bf,stringbool:()=>_g,success:()=>qh,superRefine:()=>bg,symbol:()=>Uf,templateLiteral:()=>sg,toJSONSchema:()=>Jp,toLowerCase:()=>Td,toUpperCase:()=>zd,toZod:()=>vr,transform:()=>Dh,treeifyError:()=>Cn,trim:()=>Pd,tuple:()=>hh,uint32:()=>Of,uint64:()=>jf,ulid:()=>Gm,undefined:()=>Mf,union:()=>sh,unknown:()=>Kf,uppercase:()=>Id,url:()=>Tm,util:()=>o,uuid:()=>Om,uuidv4:()=>Nm,uuidv6:()=>Am,uuidv7:()=>Dm,validate:()=>Fn,validateAsync:()=>Zn,void:()=>Wf,xid:()=>qm,xor:()=>uh}),{}),o=(t(gr,{$ZodAny:()=>Ho,$ZodArray:()=>es,$ZodAsyncError:()=>gn,$ZodBase64:()=>No,$ZodBase64URL:()=>Do,$ZodBigInt:()=>Zo,$ZodBigIntFormat:()=>Vo,$ZodBoolean:()=>Fo,$ZodCIDRv4:()=>$o,$ZodCIDRv6:()=>Co,$ZodCUID:()=>po,$ZodCUID2:()=>mo,$ZodCatch:()=>Bs,$ZodCheck:()=>wa,$ZodCheckBigIntFormat:()=>Ca,$ZodCheckEndsWith:()=>Ba,$ZodCheckGreaterThan:()=>xa,$ZodCheckIncludes:()=>Ra,$ZodCheckLengthEquals:()=>Ta,$ZodCheckLessThan:()=>Ia,$ZodCheckLowerCase:()=>La,$ZodCheckMaxLength:()=>Da,$ZodCheckMaxSize:()=>Oa,$ZodCheckMimeType:()=>Va,$ZodCheckMinLength:()=>Pa,$ZodCheckMinSize:()=>Na,$ZodCheckMultipleOf:()=>$a,$ZodCheckNumberFormat:()=>Ea,$ZodCheckOverwrite:()=>Ga,$ZodCheckProperty:()=>Za,$ZodCheckRegex:()=>ja,$ZodCheckSizeEquals:()=>Aa,$ZodCheckStartsWith:()=>Ma,$ZodCheckStringFormat:()=>za,$ZodCheckUpperCase:()=>Ua,$ZodCodec:()=>Gs,$ZodCreditCard:()=>jo,$ZodCustom:()=>tl,$ZodCustomStringFormat:()=>Ro,$ZodCyclicError:()=>nl,$ZodDate:()=>Yo,$ZodDefault:()=>Ts,$ZodDiscriminatedUnion:()=>ms,$ZodE164:()=>Po,$ZodEmail:()=>eo,$ZodEmoji:()=>uo,$ZodEncodeError:()=>vn,$ZodEnum:()=>$s,$ZodError:()=>In,$ZodExactOptional:()=>Ds,$ZodFile:()=>Cs,$ZodFunction:()=>Ys,$ZodGUID:()=>Ya,$ZodIPv4:()=>ko,$ZodIPv6:()=>Io,$ZodISODate:()=>bo,$ZodISODateTime:()=>vo,$ZodISODuration:()=>wo,$ZodISOTime:()=>yo,$ZodIntersection:()=>fs,$ZodJWT:()=>Uo,$ZodKSUID:()=>go,$ZodLazy:()=>el,$ZodLiteral:()=>Es,$ZodMAC:()=>xo,$ZodMap:()=>_s,$ZodNaN:()=>Fs,$ZodNanoID:()=>co,$ZodNever:()=>Wo,$ZodNonOptional:()=>Ls,$ZodNull:()=>qo,$ZodNullable:()=>Ps,$ZodNumber:()=>Mo,$ZodNumberFormat:()=>Bo,$ZodObject:()=>os,$ZodObjectJIT:()=>ss,$ZodOptional:()=>As,$ZodPipe:()=>Zs,$ZodPrefault:()=>js,$ZodPreprocess:()=>Hs,$ZodPromise:()=>Qs,$ZodReadonly:()=>Js,$ZodRealError:()=>xn,$ZodRecord:()=>ks,$ZodRegistry:()=>Pu,$ZodSet:()=>Is,$ZodString:()=>Wa,$ZodStringFormat:()=>Xa,$ZodSuccess:()=>Rs,$ZodSymbol:()=>Go,$ZodTemplateLiteral:()=>Xs,$ZodTransform:()=>Os,$ZodTuple:()=>vs,$ZodType:()=>v,$ZodULID:()=>fo,$ZodURL:()=>lo,$ZodUUID:()=>Qa,$ZodUndefined:()=>Ko,$ZodUnion:()=>us,$ZodUnknown:()=>Jo,$ZodVoid:()=>Xo,$ZodXID:()=>ho,$ZodXor:()=>ds,$brand:()=>hn,$constructor:()=>s,$input:()=>Du,$output:()=>Au,Doc:()=>Ka,INVALID:()=>ju,JSONSchema:()=>Xp,JSONSchemaGenerator:()=>Wp,NEVER:()=>pn,TimePrecision:()=>Pc,URL_BAD_FORMAT:()=>to,URL_UNPARSEABLE:()=>ro,ZodCompileAsyncError:()=>Uu,ZodCompileUnsupportedError:()=>O,_any:()=>ed,_array:()=>Ld,_base64:()=>Cc,_base64url:()=>Oc,_bigint:()=>qc,_boolean:()=>Gc,_catch:()=>function(e,t,r){return new e({type:"catch",innerType:t,catchValue:"function"==typeof r?r:dn(r)})},_check:()=>Fd,_cidrv4:()=>$c,_cidrv6:()=>Ec,_coercedBigint:()=>Hc,_coercedBoolean:()=>Kc,_coercedDate:()=>ad,_coercedNumber:()=>Rc,_coercedString:()=>lc,_creditCard:()=>Ac,_cuid:()=>bc,_cuid2:()=>yc,_custom:()=>Rd,_date:()=>id,_decode:()=>Kn,_decodeAsync:()=>Wn,_default:()=>function(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return"function"==typeof r?r():Tr(r)}})},_discriminatedUnion:()=>function(e,t,r,n){return new e({type:"union",options:r,discriminator:t,...u(n)})},_e164:()=>Nc,_email:()=>uc,_emoji:()=>gc,_encode:()=>Vn,_encodeAsync:()=>Hn,_endsWith:()=>Ed,_enum:()=>function(e,t,r){t=Array.isArray(t)?Object.fromEntries(t.map(e=>[e,e])):t;return new e({type:"enum",entries:t,...u(r)})},_file:()=>Ud,_float32:()=>Bc,_float64:()=>Fc,_gt:()=>ud,_gte:()=>cd,_guid:()=>cc,_includes:()=>xd,_int:()=>Mc,_int32:()=>Zc,_int64:()=>Jc,_intersection:()=>function(e,t,r){return new e({type:"intersection",left:t,right:r})},_ipv4:()=>Sc,_ipv6:()=>Ic,_isoDate:()=>zc,_isoDateTime:()=>Tc,_isoDuration:()=>Lc,_isoTime:()=>jc,_jwt:()=>Dc,_ksuid:()=>_c,_lazy:()=>function(e,t){return new e({type:"lazy",getter:t})},_length:()=>kd,_literal:()=>function(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...u(r)})},_lowercase:()=>Sd,_lt:()=>sd,_lte:()=>ld,_mac:()=>xc,_map:()=>function(e,t,r,n){return new e({type:"map",keyType:t,valueType:r,...u(n)})},_max:()=>ld,_maxLength:()=>yd,_maxSize:()=>gd,_mime:()=>Nd,_min:()=>cd,_minLength:()=>wd,_minSize:()=>vd,_multipleOf:()=>hd,_nan:()=>od,_nanoid:()=>vc,_nativeEnum:()=>function(e,t,r){return new e({type:"enum",entries:t,...u(r)})},_negative:()=>pd,_never:()=>rd,_nonnegative:()=>fd,_nonoptional:()=>function(e,t,r){return new e({type:"nonoptional",innerType:t,...u(r)})},_nonpositive:()=>md,_normalize:()=>Dd,_null:()=>Qc,_nullable:()=>function(e,t){return new e({type:"nullable",innerType:t})},_number:()=>Uc,_optional:()=>function(e,t){return new e({type:"optional",innerType:t})},_overwrite:()=>Ad,_parse:()=>Dn,_parseAsync:()=>Tn,_pipe:()=>function(e,t,r){return new e({type:"pipe",in:t,out:r})},_positive:()=>dd,_promise:()=>function(e,t){return new e({type:"promise",innerType:t})},_properties:()=>Od,_property:()=>Cd,_readonly:()=>function(e,t){return new e({type:"readonly",innerType:t})},_record:()=>function(e,t,r,n){return new e({type:"record",keyType:t,valueType:r,...u(n)})},_refine:()=>Md,_regex:()=>_d,_safeDecode:()=>ei,_safeDecodeAsync:()=>ii,_safeEncode:()=>Yn,_safeEncodeAsync:()=>ri,_safeParse:()=>jn,_safeParseAsync:()=>Un,_set:()=>function(e,t,r){return new e({type:"set",valueType:t,...u(r)})},_size:()=>bd,_slugify:()=>jd,_startsWith:()=>$d,_string:()=>sc,_stringFormat:()=>Kd,_stringbool:()=>Gd,_success:()=>function(e,t){return new e({type:"success",innerType:t})},_superRefine:()=>Bd,_symbol:()=>Xc,_templateLiteral:()=>function(e,t,r){return new e({type:"template_literal",parts:t,...u(r)})},_toLowerCase:()=>Td,_toUpperCase:()=>zd,_transform:()=>function(e,t){return new e({type:"transform",transform:t})},_trim:()=>Pd,_tuple:()=>function(e,t,r,n){var i=r instanceof v,n=i?n:r,i=i?r:null;return new e({type:"tuple",items:t,rest:i,...u(n)})},_uint32:()=>Vc,_uint64:()=>Wc,_ulid:()=>wc,_undefined:()=>Yc,_union:()=>function(e,t,r){return new e({type:"union",options:t,...u(r)})},_unknown:()=>td,_uppercase:()=>Id,_url:()=>hc,_uuid:()=>dc,_uuidv4:()=>pc,_uuidv6:()=>mc,_uuidv7:()=>fc,_void:()=>nd,_xid:()=>kc,_xor:()=>function(e,t,r){return new e({type:"union",options:t,inclusive:!1,...u(r)})},clone:()=>Rr,compile:()=>Ru,compileFn:()=>Mu,config:()=>yn,createStandardJSONSchemaMethod:()=>ap,createToJSONSchemaMethod:()=>ip,decode:()=>qn,decodeAsync:()=>Xn,describe:()=>Zd,encode:()=>Gn,encodeAsync:()=>Jn,extractDefs:()=>Yd,finalize:()=>np,flattenError:()=>$n,formatError:()=>En,getDiscriminatedOption:()=>ps,globalConfig:()=>bn,globalRegistry:()=>zu,handleUnrepresentable:()=>Jd,initializeContext:()=>Hd,isBackEdge:()=>fl,isRecursiveSchema:()=>cl,isValidBase64:()=>Oo,isValidBase64URL:()=>Ao,isValidCIDRv6:()=>Eo,isValidCreditCard:()=>zo,isValidIPv6:()=>So,isValidJWT:()=>Lo,locales:()=>hl,memoizer:()=>ml,mergeValues:()=>hs,meta:()=>Vd,parse:()=>Pn,parseAsync:()=>zn,parseURLObject:()=>no,prettifyError:()=>Nn,process:()=>Wd,regexes:()=>oi,registry:()=>Tu,safeDecode:()=>ti,safeDecodeAsync:()=>ai,safeEncode:()=>Qn,safeEncodeAsync:()=>ni,safeParse:()=>Ln,safeParseAsync:()=>Rn,standardProps:()=>Ja,stripTabAndNewline:()=>ao,toDotPath:()=>On,toJSONSchema:()=>Jp,toZod:()=>vr,treeifyError:()=>Cn,urlHostnameOk:()=>oo,urlProtocolOk:()=>so,util:()=>o,validate:()=>Fn,validateAsync:()=>Zn,version:()=>qa}),{});function vr(){return e=>e}function br(e){const t=Object.values(e).filter(e=>"number"==typeof e);return Object.entries(e).filter(([e])=>-1===t.indexOf(+e)).map(([,e])=>e)}function p(e,t="|"){return e.map(e=>m(e)).join(t)}function yr(e,t){return"bigint"==typeof t?t.toString():t}function wr(t){return{get value(){var e=t();return Object.defineProperty(this,"value",{value:e}),e}}}function kr(e){return null==e}function _r(e){var t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function Sr(e,t){var e=e/t,t=Math.round(e),r=4*Number.EPSILON*Math.max(Math.abs(e),1);return Math.abs(e-t)<r?0:e-t}t(o,{BIGINT_FORMAT_RANGES:()=>Fr,CONSTANT_CATCH:()=>cn,Class:()=>nn,NUMBER_FORMAT_RANGES:()=>Br,aborted:()=>Zr,allowsEval:()=>Dr,assert:()=>function(e){},assertEqual:()=>function(e){return e},assertIs:()=>function(e){},assertNever:()=>function(e){throw new Error("Unexpected value in exhaustive check")},assertNotEqual:()=>function(e){return e},assignProp:()=>$r,attachSchema:()=>qr,base64ToUint8Array:()=>en,base64urlToUint8Array:()=>function(e){var e=e.replace(/-/g,"+").replace(/_/g,"/"),t="=".repeat((4-e.length%4)%4);return en(e+t)},cached:()=>wr,captureStackTrace:()=>Nr,cleanEnum:()=>function(e){return Object.entries(e).filter(([e])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])},cleanRegex:()=>_r,clone:()=>Rr,cloneDef:()=>function(e){return Er(e._zod.def)},codePointLength:()=>Xr,constantCatch:()=>dn,createTransparentProxy:()=>function(i){let a;return new Proxy({},{get(e,t,r){return a=a??i(),Reflect.get(a,t,r)},set(e,t,r,n){return a=a??i(),Reflect.set(a,t,r,n)},has(e,t){return a=a??i(),Reflect.has(a,t)},deleteProperty(e,t){return a=a??i(),Reflect.deleteProperty(a,t)},ownKeys(e){return a=a??i(),Reflect.ownKeys(a)},getOwnPropertyDescriptor(e,t){return a=a??i(),Reflect.getOwnPropertyDescriptor(a,t)},defineProperty(e,t,r){return a=a??i(),Reflect.defineProperty(a,t,r)}})},defineLazy:()=>xr,defineLazyInternal:()=>g,esc:()=>Cr,escapeRegex:()=>Ur,explicitlyAborted:()=>Vr,extend:()=>function(t,r){if(!Pr(r))throw new Error("Invalid input to extend: expected a plain object");var e=t._zod.def.checks,e=e&&0<e.length;if(e){var n=t._zod.def.shape;for(const i of Reflect.ownKeys(r))if(void 0!==Object.getOwnPropertyDescriptor(n,i))throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}e=Er(t._zod.def,{get shape(){var e={...t._zod.def.shape,...r};return $r(this,"shape",e),e}});return Rr(t,e)},finalizeIssue:()=>Hr,floatSafeRemainder:()=>Sr,getElementAtPath:()=>function(e,t){return t?t.reduce((e,t)=>e?.[t],e):e},getEnumValues:()=>br,getLengthableOrigin:()=>Yr,getParsedType:()=>zr,getSizableOrigin:()=>Jr,hexToUint8Array:()=>function(e){var t=e.replace(/^0x/,"");if(t.length%2!=0)throw new Error("Invalid hex string length");var r=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2)r[e/2]=Number.parseInt(t.slice(e,e+2),16);return r},hide:()=>sn,installLazyProp:()=>function(e,t,r,n){e=function(e,t){e=Object.getPrototypeOf(e);return t in e?void 0:e}(e,t);e&&Object.defineProperty(e,t,{configurable:!0,get(){var e={configurable:!0,writable:!0,enumerable:n,value:void 0};return Object.defineProperty(this,t,e),e.value=r(this),Object.defineProperty(this,t,e),e.value},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:n,value:e})}})},isObject:()=>Ar,isPlainObject:()=>Pr,issue:()=>Qr,joinValues:()=>p,jsonStringifyReplacer:()=>yr,members:()=>an,merge:()=>function(t,r){if(!r?._zod?.def)throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(t._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");var e=Er(t._zod.def,{get shape(){var e={...t._zod.def.shape,...r._zod.def.shape};return $r(this,"shape",e),e},get catchall(){return r._zod.def.catchall},checks:r._zod.def.checks??[]});return Rr(t,e)},mergeDefs:()=>Er,normalizeParams:()=>u,nullish:()=>kr,numKeys:()=>function(e){let t=0;for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t},objectClone:()=>function(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))},omit:()=>function(r,n){const i=r._zod.def,e=i.checks,t=e&&0<e.length;if(t)throw new Error(".omit() cannot be used on object schemas containing refinements");var a=Er(r._zod.def,{get shape(){var e={...r._zod.def.shape};for(const t of Reflect.ownKeys(n)){if(!Object.prototype.hasOwnProperty.call(i.shape,t))throw new Error(`Unrecognized key: "${String(t)}"`);n[t]&&delete e[t]}return $r(this,"shape",e),e},checks:[]});return Rr(r,a)},optionalKeys:()=>Mr,own:()=>on,parsedType:()=>f,partial:()=>function(i,a,o,e="partial"){var t=a._zod.def,t=t.checks,t=t&&0<t.length;if(t)throw new Error(`.${e}() cannot be used on object schemas containing refinements`);t=Er(a._zod.def,{get shape(){var e=a._zod.def.shape,t={...e};if(o)for(const r of Reflect.ownKeys(o)){if(!Object.prototype.hasOwnProperty.call(e,r))throw new Error(`Unrecognized key: "${String(r)}"`);o[r]&&(t[r]=i?new i({type:"optional",innerType:e[r]}):e[r])}else for(const n of Reflect.ownKeys(e))t[n]=i?new i({type:"optional",innerType:e[n]}):e[n];return $r(this,"shape",t),t},checks:[]});return Rr(a,t)},pick:()=>function(e,r){const n=e._zod.def,t=n.checks,i=t&&0<t.length;if(i)throw new Error(".pick() cannot be used on object schemas containing refinements");var a=Er(e._zod.def,{get shape(){var e={};for(const t of Reflect.ownKeys(r)){if(!Object.prototype.hasOwnProperty.call(n.shape,t))throw new Error(`Unrecognized key: "${String(t)}"`);r[t]&&$r(e,t,n.shape[t])}return $r(this,"shape",e),e},checks:[]});return Rr(e,a)},prefixIssues:()=>Gr,primitiveTypes:()=>Lr,promiseAllObject:()=>function(t){const n=Object.keys(t),e=n.map(e=>t[e]);return Promise.all(e).then(t=>{var r={};for(let e=0;e<n.length;e++)r[n[e]]=t[e];return r})},propertyKeyTypes:()=>jr,randomString:()=>function(t=10){var r="abcdefghijklmnopqrstuvwxyz";let n="";for(let e=0;e<t;e++)n+=r[Math.floor(Math.random()*r.length)];return n},required:()=>function(i,a,o){var e=Er(a._zod.def,{get shape(){var e=a._zod.def.shape,t={...e};if(o)for(const r of Reflect.ownKeys(o)){if(!Object.prototype.hasOwnProperty.call(t,r))throw new Error(`Unrecognized key: "${String(r)}"`);o[r]&&(t[r]=new i({type:"nonoptional",innerType:e[r]}))}else for(const n of Reflect.ownKeys(e))t[n]=new i({type:"nonoptional",innerType:e[n]});return $r(this,"shape",t),t}});return Rr(a,e)},safeExtend:()=>function(t,r){if(!Pr(r))throw new Error("Invalid input to safeExtend: expected a plain object");var e=Er(t._zod.def,{get shape(){var e={...t._zod.def.shape,...r};return $r(this,"shape",e),e}});return Rr(t,e)},shallowClone:()=>Tr,slugify:()=>Or,stringifyPrimitive:()=>m,toZod:()=>vr,uint8ArrayToBase64:()=>tn,uint8ArrayToBase64url:()=>function(e){return tn(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},uint8ArrayToHex:()=>function(e){return Array.from(e).map(e=>e.toString(16).padStart(2,"0")).join("")},unwrapMessage:()=>Kr});var Ir=Symbol("evaluating");function xr(t,r,e){let n=void 0;Object.defineProperty(t,r,{get(){if(n!==Ir)return void 0===n&&(n=Ir,n=e()),n},set(e){Object.defineProperty(t,r,{value:e})},configurable:!0})}function $r(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Er(...e){var t={};for(const n of e){var r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function Cr(e){return JSON.stringify(e)}function Or(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Nr="captureStackTrace"in Error?Error.captureStackTrace:()=>{};function Ar(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}var Dr=wr(()=>{if(bn.jitless)return!1;if("undefined"!=typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(e){return!1}});function Pr(e){return!1!==Ar(e)&&(void 0===(e=e.constructor)||"function"!=typeof e||!1!==Ar(e=e.prototype)&&!1!==Object.prototype.hasOwnProperty.call(e,"isPrototypeOf"))}function Tr(e){return Pr(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var zr=e=>{var t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":null===e?"null":e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?"promise":"undefined"!=typeof Map&&e instanceof Map?"map":"undefined"!=typeof Set&&e instanceof Set?"set":"undefined"!=typeof Date&&e instanceof Date?"date":"undefined"!=typeof File&&e instanceof File?"file":"object";default:throw new Error("Unknown data type: "+t)}},jr=new Set(["string","number","symbol"]),Lr=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Ur(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Rr(e,t,r){var n=new e._zod.constr(t??e._zod.def);return t&&!r?.parent||(n._zod.parent=e),n}function u(e){const t=e;if(!t)return{};if("string"==typeof t)return{error:()=>t};if(void 0!==t?.message){if(void 0!==t?.error)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,"string"==typeof t.error?{...t,error:()=>t.error}:t}function m(e){return"bigint"==typeof e?e.toString()+"n":"string"==typeof e?`"${e}"`:""+e}function Mr(t){return Object.keys(t).filter(e=>void 0!==t[e]._zod.optin&&"optional"===t[e]._zod.optout)}var Br=(()=>({safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]}))(),Fr={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Zr(t,r=0){if(!0===t.aborted)return!0;for(let e=r;e<t.issues.length;e++)if(!0!==t.issues[e]?.continue)return!0;return!1}function Vr(t,r=0){if(!0===t.aborted)return!0;for(let e=r;e<t.issues.length;e++)if(!1===t.issues[e]?.continue)return!0;return!1}function Gr(t,e){return e.map(e=>{return e.path??(e.path=[]),e.path.unshift(t),e})}function Kr(e){return"string"==typeof e?e:e?.message}function qr(t,r,n){var i;for(let e=r;e<t.length;e++)(i=t[e]).schema??(i.schema=n)}function Hr(e,t,r){var n=e.inst?._zod?.traits,n=(n?.has("$ZodType")&&(n.has("$ZodCheck")?e.schema??(e.schema=e.inst):e.schema=e.inst),e.schema!==e.inst?e.schema?._zod.def?.error:void 0),n=e.message||(Kr(e.inst?._zod.def?.error?.(e))??Kr(n?.(e))??Kr(t?.error?.(e))??Kr(r.customError?.(e))??Kr(r.localeError?.(e))??"Invalid input");const{inst:i,schema:a,continue:o,input:s,...l}=e;return l.path??(l.path=[]),l.message=n,t?.reportInput&&(l.input=s),l}function Jr(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}var Wr=/[\uD800-\uDBFF]/;function Xr(t){var r=t.length;if(!Wr.test(t))return r;let n=r;for(let e=0;e<r-1;e++)55296==(64512&t.charCodeAt(e))&&56320==(64512&t.charCodeAt(e+1))&&(n--,e++);return n}function Yr(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function f(e){var t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":if(null===e)return"null";if(Array.isArray(e))return"array";var r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}return t}function Qr(...e){var[e,t,r]=e;return"string"==typeof e?{message:e,code:"custom",input:t,inst:r}:{...e}}function en(e){var t=atob(e),r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)r[e]=t.charCodeAt(e);return r}function tn(t){let r="";for(let e=0;e<t.length;e++)r+=String.fromCharCode(t[e]);return btoa(r)}var rn,nn=class{constructor(){}};function an(e,t){for(const n in t){var r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):function(e,t,r){Object.defineProperty(e,t,{configurable:!0,get(){return on(this,t,r.bind(this))},set(e){on(this,t,e)}})}(e,n,r.value)}}function on(e,t,r,n=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:n,value:r}),r}function sn(e,t,r){return on(e,t,r,!1)}var ln=!1,un={configurable:!0,get(){ln=!0}};function g(e,r,n){var t=Object.getPrototypeOf(e._zod);r in t&&rn!==e._zod?rn=void 0:(rn=e._zod,Object.defineProperty(t,r,{configurable:!0,get(){Object.defineProperty(this,r,un);var t=ln;ln=!1;try{var e=n(this);return ln?delete this[r]:Object.defineProperty(this,r,{configurable:!0,writable:!0,value:e}),ln=ln||t,e}catch(e){throw delete this[r],ln=ln||t,e}},set(e){Object.defineProperty(this,r,{configurable:!0,writable:!0,value:e})}}))}var cn="~constantCatch";function dn(e){var t=()=>e;return t[cn]=!0,t}var pn=Object.freeze({status:"aborted"}),mn={value:void 0,enumerable:!1},fn="captureStackTrace"in Error?Error:null;function s(a,o,e,n){function s(e){this.def=e,this.constr=d,this.traits=new Set}s.prototype={};const l=e,u=l&&new WeakSet;function i(t,r){if(!t._zod){mn.value=new s(r);try{Object.defineProperty(t,"_zod",mn)}finally{mn.value=void 0}}if(!t._zod.traits.has(a)){if(t._zod.traits.add(a),o(t,r),u){var r=Object.getPrototypeOf(t),n=t._zod.constr.prototype;let e=r;for(;e&&e!==n;)e=Object.getPrototypeOf(e);r=e??r;u.has(r)||(u.add(r),an(r,l))}var e=d.prototype;for(const i in e)!Object.prototype.hasOwnProperty.call(e,i)||i in t||(t[i]=e[i].bind(t))}}e=n?.Parent??Object;class c extends e{}function d(e){var t=n?.Parent?function(e){var t=fn;if(t){var r=t.stackTraceLimit;if("number"==typeof r){try{t.stackTraceLimit=0}catch{return fn=null,new e}try{return new e}finally{t.stackTraceLimit=r}}}return new e}(c):this,e=(i(t,e),t._zod.deferred);if(e){for(const r of e)r();t._zod.deferred=void 0}e=globalThis.__zod_globalConfig?.postProcessor;return e&&e(t),t}return Object.defineProperty(c,"name",{value:a}),Object.defineProperty(d,"init",{value:i}),Object.defineProperty(d,Symbol.hasInstance,{value:e=>!!(n?.Parent&&e instanceof n.Parent)||e?._zod?.traits?.has(a)}),Object.defineProperty(d,"name",{value:a}),d}var hn=Symbol("zod_brand"),gn=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},vn=class extends Error{constructor(e){super("Encountered unidirectional transform during encode: "+e),this.name="ZodEncodeError"}},bn=((n=globalThis).__zod_globalConfig??(n.__zod_globalConfig={}),globalThis.__zod_globalConfig);function yn(e){return e&&Object.assign(bn,e),bn}var wn={get:function(){var e=this._zod;return e.message??(e.message=JSON.stringify(e.def,yr,2)),e.message},set:function(e){this._zod.message=e},enumerable:!0,configurable:!0},kn={value:void 0,enumerable:!1},_n={value:void 0,enumerable:!1},Sn=new WeakSet([Object.prototype,Error.prototype]),n=(e,t)=>{e.name="$ZodError",kn.value=e._zod,Object.defineProperty(e,"_zod",kn),_n.value=t,Object.defineProperty(e,"issues",_n),_n.value=kn.value=void 0,Object.defineProperty(e,"message",wn);t=Object.getPrototypeOf(e);Sn.has(t)||(Sn.add(t),Object.defineProperty(t,"toString",{configurable:!0,enumerable:!1,get(){var e=()=>this.message;return Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0})}}))},In=s("$ZodError",n),xn=s("$ZodError",n,void 0,{Parent:Error});function $n(e,t=e=>e.message){var r,n,i,a={},o=[];for(const s of e.issues)(0<s.path.length?(r=a,n=s.path[0],i=()=>[],Object.prototype.hasOwnProperty.call(r,n)||("__proto__"===n?Object.defineProperty(r,n,{value:i(),writable:!0,enumerable:!0,configurable:!0}):r[n]=i()),r[n]):o).push(t(s));return{formErrors:o,fieldErrors:a}}function En(e,o=e=>e.message){const s={_errors:[]},l=(e,t=[])=>{for(const a of e.issues)if("invalid_union"===a.code&&a.errors.length)a.errors.map(e=>l({issues:e},[...t,...a.path]));else if("invalid_key"===a.code)l({issues:a.issues},[...t,...a.path]);else if("invalid_element"===a.code)l({issues:a.issues},[...t,...a.path]);else{var r=[...t,...a.path];if(0===r.length)s._errors.push(o(a));else{let e=s,t=0;for(;t<r.length;){var n=r[t],i=t===r.length-1;"_errors"===n?(i&&e._errors.push(o(a)),t++):(Object.prototype.hasOwnProperty.call(e,n)||Object.defineProperty(e,n,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0}),n=e[n],i&&n._errors.push(o(a)),e=n,t++)}}}};return l(e),s}function Cn(e,s=e=>e.message){const l={errors:[]},u=(e,t=[])=>{var r;for(const o of e.issues)if("invalid_union"===o.code&&o.errors.length)o.errors.map(e=>u({issues:e},[...t,...o.path]));else if("invalid_key"===o.code)u({issues:o.issues},[...t,...o.path]);else if("invalid_element"===o.code)u({issues:o.issues},[...t,...o.path]);else{var n=[...t,...o.path];if(0===n.length)l.errors.push(s(o));else{let e=l,t=0;for(;t<n.length;){var i=n[t],a=t===n.length-1;e=("string"==typeof i?(e.properties??(e.properties={}),Object.prototype.hasOwnProperty.call(e.properties,i)||Object.defineProperty(e.properties,i,{value:{errors:[]},enumerable:!0,writable:!0,configurable:!0}),e.properties):(e.items??(e.items=[]),(r=e.items)[i]??(r[i]={errors:[]}),e.items))[i],a&&e.errors.push(s(o)),t++}}}};return u(e),l}function On(e){var t=[];for(const r of e.map(e=>"object"==typeof e?e.key:e))"number"==typeof r?t.push(`[${r}]`):"symbol"==typeof r?t.push(`[${JSON.stringify(String(r))}]`):/[^\w$]/.test(r)?t.push(`[${JSON.stringify(r)}]`):(t.length&&t.push("."),t.push(r));return t.join("")}function Nn(e){var t=[];for(const r of[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length))t.push("✖ "+r.message),r.path?.length&&t.push("  → at "+On(r.path));return t.join("\n")}function An(e,t){return{callee:t?.callee??e,Err:t?.Err}}var Dn=a=>{const o=(e,t,r,n)=>{const i=r?{...r,async:!1}:{async:!1};r=e._zod.run({value:t,issues:[]},i);if(r instanceof Promise)throw new gn;if(r.issues.length)throw e=new(n?.Err??a)(r.issues.map(e=>Hr(e,i,yn()))),Nr(e,n?.callee??o),e;return r.value};return o},Pn=Dn(xn),Tn=o=>{const s=async(e,t,r,n)=>{const i=r?{...r,async:!0}:{async:!0};let a=e._zod.run({value:t,issues:[]},i);if((a=a instanceof Promise?await a:a).issues.length)throw r=new(n?.Err??o)(a.issues.map(e=>Hr(e,i,yn()))),Nr(r,n?.callee??s),r;return a.value};return s},zn=Tn(xn),jn=i=>(e,t,r)=>{const n=r?{...r,async:!1}:{async:!1};r=e._zod.run({value:t,issues:[]},n);if(r instanceof Promise)throw new gn;return r.issues.length?{success:!1,error:new(i??In)(r.issues.map(e=>Hr(e,n,yn())))}:{success:!0,data:r.value}},Ln=jn(xn),Un=a=>async(e,t,r)=>{const n=r?{...r,async:!0}:{async:!0};let i=e._zod.run({value:t,issues:[]},n);return(i=i instanceof Promise?await i:i).issues.length?{success:!1,error:new a(i.issues.map(e=>Hr(e,n,yn())))}:{success:!0,data:i.value}},Rn=Un(xn),Mn=Symbol.for("zod.compile.invalid"),Bn=Symbol.for("zod.compile.fallback"),Fn=(t,r,n)=>{var i=t._zod.bag.validator;if(void 0!==i&&i(r)!==Mn)return!0;{i=t;t=r;r=n;r=r?{...r,async:!1}:{async:!1},n=i._zod.bag.fallbackRun;let e;e=n?(r[Bn]=!0,n({value:t,issues:[]},r)):i._zod.run({value:t,issues:[]},r);if(e instanceof Promise)throw new gn;return 0===e.issues.length;return}};var Zn=async(e,t,r)=>{r=r?{...r,async:!0}:{async:!0};let n=e._zod.run({value:t,issues:[]},r);return 0===(n=n instanceof Promise?await n:n).issues.length},Vn=e=>{const i=Dn(e),a=(e,t,r,n)=>{r=r?{...r,direction:"backward"}:{direction:"backward"};return i(e,t,r,An(a,n))};return a},Gn=Vn(xn),Kn=e=>{const i=Dn(e),a=(e,t,r,n)=>i(e,t,r,An(a,n));return a},qn=Kn(xn),Hn=e=>{const i=Tn(e),a=async(e,t,r,n)=>{r=r?{...r,direction:"backward"}:{direction:"backward"};return i(e,t,r,An(a,n))};return a},Jn=Hn(xn),Wn=e=>{const i=Tn(e),a=async(e,t,r,n)=>i(e,t,r,An(a,n));return a},Xn=Wn(xn),Yn=n=>(e,t,r)=>{r=r?{...r,direction:"backward"}:{direction:"backward"};return jn(n)(e,t,r)},Qn=Yn(xn),ei=n=>(e,t,r)=>jn(n)(e,t,r),ti=ei(xn),ri=n=>async(e,t,r)=>{r=r?{...r,direction:"backward"}:{direction:"backward"};return Un(n)(e,t,r)},ni=ri(xn),ii=n=>async(e,t,r)=>Un(n)(e,t,r),ai=ii(xn),oi={},si=(t(oi,{base64:()=>Ti,base64url:()=>zi,bigint:()=>Hi,boolean:()=>Xi,browserEmail:()=>$i,cidrv4:()=>Di,cidrv6:()=>Pi,creditCard:()=>Mi,cuid:()=>si,cuid2:()=>li,date:()=>Zi,datetime:()=>Ki,domain:()=>Li,duration:()=>fi,e164:()=>Ri,email:()=>ki,emoji:()=>Ci,extendedDuration:()=>hi,guid:()=>gi,hex:()=>ra,hostname:()=>ji,html5Email:()=>_i,httpProtocol:()=>Ui,idnEmail:()=>xi,integer:()=>Ji,ipv4:()=>Oi,ipv6:()=>Ni,ksuid:()=>di,lowercase:()=>ea,mac:()=>Ai,md5_base64:()=>oa,md5_base64url:()=>sa,md5_hex:()=>aa,nanoid:()=>pi,nanoidOfLength:()=>mi,null:()=>Yi,number:()=>Wi,rfc5322Email:()=>Si,sha1_base64:()=>ua,sha1_base64url:()=>ca,sha1_hex:()=>la,sha256_base64:()=>pa,sha256_base64url:()=>ma,sha256_hex:()=>da,sha384_base64:()=>ha,sha384_base64url:()=>ga,sha384_hex:()=>fa,sha512_base64:()=>ba,sha512_base64url:()=>ya,sha512_hex:()=>va,string:()=>qi,time:()=>Gi,ulid:()=>ui,undefined:()=>Qi,unicodeEmail:()=>Ii,uppercase:()=>ta,uuid:()=>vi,uuid4:()=>bi,uuid6:()=>yi,uuid7:()=>wi,xid:()=>ci}),/^[cC][0-9a-z]{6,}$/),li=/^[0-9a-z]+$/,ui=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,ci=/^[0-9a-vA-V]{20}$/,di=/^[A-Za-z0-9]{27}$/,pi=/^[a-zA-Z0-9_-]{21}$/;function mi(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var fi=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,hi=/^[-+]?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)?)??$/,gi=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,vi=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,bi=vi(4),yi=vi(6),wi=vi(7),ki=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,_i=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Si=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Ii=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,xi=Ii,$i=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ei="^[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function Ci(){return new RegExp(Ei,"u")}var Oi=/^(?:(?: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])$/,Ni=/^(([0-9a-fA-F]{1,4}:){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}|:))$/,Ai=e=>{e=Ur(e??":");return new RegExp(`^(?:[0-9A-F]{2}${e}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${e}){5}[0-9a-f]{2}$`)},Di=/^((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])\/([0-9]|[1-2][0-9]|3[0-2])$/,Pi=/^(([0-9a-fA-F]{1,4}:){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}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Ti=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,zi=/^[A-Za-z0-9_-]*$/,ji=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,Li=/^(?=.{1,253}$)([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,63}$/,Ui=/^https?$/,Ri=/^\+[1-9]\d{6,14}$/,Mi=/^\d(?:[ -]?\d){11,18}$/,Bi="(?:(?:\\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])))";function Fi(e){return new RegExp(`^${e}$`)}var Zi=Fi(Bi);function Vi(e){var t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?t:0===e.precision?t+":[0-5]\\d":t+`:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?t+":[0-5]\\d(?:\\.\\d+)?":t+"(?::[0-5]\\d(?:\\.\\d+)?)?"}function Gi(e){return new RegExp(`^${Vi(e)}$`)}function Ki(e){var t=["Z"],t=(e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)"),`${Vi({precision:e.precision,seconds:!0})}(?:${t.join("|")})`),e=e.local?t+"|"+Vi({precision:e.precision}):t;return new RegExp(`^${Bi}T(?:${e})$`)}var qi=e=>{e=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)},Hi=/^-?\d+n?$/,Ji=/^-?\d+$/,Wi=/^-?\d+(?:\.\d+)?$/,Xi=/^(?:true|false)$/i,Yi=/^null$/i,Qi=/^undefined$/i,ea=/^[^A-Z]*$/,ta=/^[^a-z]*$/,ra=/^[0-9a-fA-F]*$/;function na(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function ia(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var aa=/^[0-9a-fA-F]{32}$/,oa=na(22,"=="),sa=ia(22),la=/^[0-9a-fA-F]{40}$/,ua=na(27,"="),ca=ia(27),da=/^[0-9a-fA-F]{64}$/,pa=na(43,"="),ma=ia(43),fa=/^[0-9a-fA-F]{96}$/,ha=na(64,""),ga=ia(64),va=/^[0-9a-fA-F]{128}$/,ba=na(86,"=="),ya=ia(86),wa=s("$ZodCheck",(e,t)=>{e._zod??(e._zod={}),e._zod.def=t,(t=e._zod).onattach??(t.onattach=[])}),ka=e=>{e=e.value;return!kr(e)&&void 0!==e.size},_a=e=>{e=e.value;return!kr(e)&&void 0!==e.length},Sa={number:"number",bigint:"bigint",object:"date"},Ia=s("$ZodCheckLessThan",(t,r)=>{wa.init(t,r);const n=Sa[typeof r.value];t._zod.onattach.push(e=>{var e=e._zod.bag,t=(r.inclusive?e.maximum:e.exclusiveMaximum)??Number.POSITIVE_INFINITY;r.value<t&&(r.inclusive?e.maximum=r.value:e.exclusiveMaximum=r.value)}),t._zod.check=e=>{(r.inclusive?e.value<=r.value:e.value<r.value)||e.issues.push({origin:Sa[typeof e.value]??n,code:"too_big",maximum:"object"==typeof r.value?r.value.getTime():r.value,input:e.value,inclusive:r.inclusive,inst:t,continue:!r.abort})}}),xa=s("$ZodCheckGreaterThan",(t,r)=>{wa.init(t,r);const n=Sa[typeof r.value];t._zod.onattach.push(e=>{var e=e._zod.bag,t=(r.inclusive?e.minimum:e.exclusiveMinimum)??Number.NEGATIVE_INFINITY;r.value>t&&(r.inclusive?e.minimum=r.value:e.exclusiveMinimum=r.value)}),t._zod.check=e=>{(r.inclusive?e.value>=r.value:e.value>r.value)||e.issues.push({origin:Sa[typeof e.value]??n,code:"too_small",minimum:"object"==typeof r.value?r.value.getTime():r.value,input:e.value,inclusive:r.inclusive,inst:t,continue:!r.abort})}}),$a=s("$ZodCheckMultipleOf",(t,r)=>{wa.init(t,r),t._zod.onattach.push(e=>{(e=e._zod.bag).multipleOf??(e.multipleOf=r.value)}),t._zod.check=e=>{if(typeof e.value!=typeof r.value)throw new Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof e.value?r.value===BigInt(0)||e.value%r.value!==BigInt(0):0!==Sr(e.value,r.value))&&e.issues.push({origin:typeof e.value,code:"not_multiple_of",divisor:r.value,input:e.value,inst:t,continue:!r.abort})}}),Ea=s("$ZodCheckNumberFormat",(r,n)=>{wa.init(r,n),n.format=n.format||"float64";const i=n.format?.includes("int"),a=i?"int":"number",[o,s]=Br[n.format];r._zod.onattach.push(e=>{e=e._zod.bag;e.format=n.format,e.minimum=o,e.maximum=s,i&&(e.pattern=Ji)}),r._zod.check=e=>{var t=e.value;if(i){if(!Number.isInteger(t))return void e.issues.push({expected:a,format:n.format,code:"invalid_type",continue:!1,input:t,inst:r});if(!Number.isSafeInteger(t))return void(0<t?e.issues.push({input:t,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:r,origin:a,inclusive:!0,continue:!n.abort}):e.issues.push({input:t,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:r,origin:a,inclusive:!0,continue:!n.abort}))}t<o&&e.issues.push({origin:"number",input:t,code:"too_small",minimum:o,inclusive:!0,inst:r,continue:!n.abort}),t>s&&e.issues.push({origin:"number",input:t,code:"too_big",maximum:s,inclusive:!0,inst:r,continue:!n.abort})}}),Ca=s("$ZodCheckBigIntFormat",(r,n)=>{wa.init(r,n);const[i,a]=Fr[n.format];r._zod.onattach.push(e=>{e=e._zod.bag;e.format=n.format,e.minimum=i,e.maximum=a}),r._zod.check=e=>{var t=e.value;t<i&&e.issues.push({origin:"bigint",input:t,code:"too_small",minimum:i,inclusive:!0,inst:r,continue:!n.abort}),t>a&&e.issues.push({origin:"bigint",input:t,code:"too_big",maximum:a,inclusive:!0,inst:r,continue:!n.abort})}}),Oa=s("$ZodCheckMaxSize",(r,n)=>{var e;wa.init(r,n),(e=r._zod.def).when??(e.when=ka),r._zod.onattach.push(e=>{var t=e._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<t&&(e._zod.bag.maximum=n.maximum)}),r._zod.check=e=>{var t=e.value;t.size<=n.maximum||e.issues.push({origin:Jr(t),code:"too_big",maximum:n.maximum,inclusive:!0,input:t,inst:r,continue:!n.abort})}}),Na=s("$ZodCheckMinSize",(r,n)=>{var e;wa.init(r,n),(e=r._zod.def).when??(e.when=ka),r._zod.onattach.push(e=>{var t=e._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>t&&(e._zod.bag.minimum=n.minimum)}),r._zod.check=e=>{var t=e.value;t.size>=n.minimum||e.issues.push({origin:Jr(t),code:"too_small",minimum:n.minimum,inclusive:!0,input:t,inst:r,continue:!n.abort})}}),Aa=s("$ZodCheckSizeEquals",(n,i)=>{var e;wa.init(n,i),(e=n._zod.def).when??(e.when=ka),n._zod.onattach.push(e=>{e=e._zod.bag;e.minimum=i.size,e.maximum=i.size,e.size=i.size}),n._zod.check=e=>{var t=e.value,r=t.size;r!==i.size&&(r=r>i.size,e.issues.push({origin:Jr(t),...r?{code:"too_big",maximum:i.size}:{code:"too_small",minimum:i.size},inclusive:!0,exact:!0,input:e.value,inst:n,continue:!i.abort}))}}),Da=s("$ZodCheckMaxLength",(n,i)=>{var e;wa.init(n,i),(e=n._zod.def).when??(e.when=_a),n._zod.onattach.push(e=>{var t=e._zod.bag.maximum??Number.POSITIVE_INFINITY;i.maximum<t&&(e._zod.bag.maximum=i.maximum)}),n._zod.check=e=>{var t=e.value,r=t.length;("string"==typeof t&&r>i.maximum?Xr(t):r)<=i.maximum||(r=Yr(t),e.issues.push({origin:r,code:"too_big",maximum:i.maximum,inclusive:!0,input:t,inst:n,continue:!i.abort}))}}),Pa=s("$ZodCheckMinLength",(n,i)=>{var e;wa.init(n,i),(e=n._zod.def).when??(e.when=_a),n._zod.onattach.push(e=>{var t=e._zod.bag.minimum??Number.NEGATIVE_INFINITY;i.minimum>t&&(e._zod.bag.minimum=i.minimum)}),n._zod.check=e=>{var t=e.value,r=t.length;("string"==typeof t&&r>=i.minimum&&r<2*i.minimum?Xr(t):r)>=i.minimum||(r=Yr(t),e.issues.push({origin:r,code:"too_small",minimum:i.minimum,inclusive:!0,input:t,inst:n,continue:!i.abort}))}}),Ta=s("$ZodCheckLengthEquals",(n,i)=>{var e;wa.init(n,i),(e=n._zod.def).when??(e.when=_a),n._zod.onattach.push(e=>{e=e._zod.bag;e.minimum=i.length,e.maximum=i.length,e.length=i.length}),n._zod.check=e=>{var t=e.value,r=t.length,r="string"==typeof t&&r>=i.length&&r<=2*i.length?Xr(t):r;r!==i.length&&(t=Yr(t),r=r>i.length,e.issues.push({origin:t,...r?{code:"too_big",maximum:i.length}:{code:"too_small",minimum:i.length},inclusive:!0,exact:!0,input:e.value,inst:n,continue:!i.abort}))}}),za=s("$ZodCheckStringFormat",(t,r)=>{var e;wa.init(t,r),t._zod.onattach.push(e=>{e=e._zod.bag;e.format=r.format,r.pattern&&(e.patterns??(e.patterns=new Set),e.patterns.add(r.pattern))}),r.pattern?(e=t._zod).check??(e.check=e=>{r.pattern.lastIndex=0,r.pattern.test(e.value)||e.issues.push({origin:"string",code:"invalid_format",format:r.format,input:e.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:t,continue:!r.abort})}):(e=t._zod).check??(e.check=()=>{})}),ja=s("$ZodCheckRegex",(t,r)=>{za.init(t,r),t._zod.check=e=>{r.pattern.lastIndex=0,r.pattern.test(e.value)||e.issues.push({origin:"string",code:"invalid_format",format:"regex",input:e.value,pattern:r.pattern.toString(),inst:t,continue:!r.abort})}}),La=s("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=ea),za.init(e,t)}),Ua=s("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=ta),za.init(e,t)}),Ra=s("$ZodCheckIncludes",(t,r)=>{wa.init(t,r);var e=Ur(r.includes);const n=new RegExp("number"==typeof r.position?`^.{${r.position},}`+e:e);r.pattern=n,t._zod.onattach.push(e=>{e=e._zod.bag;e.patterns??(e.patterns=new Set),e.patterns.add(n)}),t._zod.check=e=>{e.value.includes(r.includes,r.position)||e.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:e.value,inst:t,continue:!r.abort})}}),Ma=s("$ZodCheckStartsWith",(t,r)=>{wa.init(t,r);const n=new RegExp(`^${Ur(r.prefix)}.*`);r.pattern??(r.pattern=n),t._zod.onattach.push(e=>{e=e._zod.bag;e.patterns??(e.patterns=new Set),e.patterns.add(n)}),t._zod.check=e=>{e.value.startsWith(r.prefix)||e.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:e.value,inst:t,continue:!r.abort})}}),Ba=s("$ZodCheckEndsWith",(t,r)=>{wa.init(t,r);const n=new RegExp(`.*${Ur(r.suffix)}$`);r.pattern??(r.pattern=n),t._zod.onattach.push(e=>{e=e._zod.bag;e.patterns??(e.patterns=new Set),e.patterns.add(n)}),t._zod.check=e=>{e.value.endsWith(r.suffix)||e.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:e.value,inst:t,continue:!r.abort})}});function Fa(e,t,r){e.issues.length&&t.issues.push(...Gr(r,e.issues))}var Za=s("$ZodCheckProperty",(e,r)=>{wa.init(e,r),e._zod.check=t=>{var e=r.schema._zod.run({value:t.value[r.property],issues:[]},{});if(e instanceof Promise)return e.then(e=>Fa(e,t,r.property));Fa(e,t,r.property)}}),Va=s("$ZodCheckMimeType",(t,r)=>{wa.init(t,r);const n=new Set(r.mime);t._zod.onattach.push(e=>{e._zod.bag.mime=r.mime}),t._zod.check=e=>{n.has(e.value.type)||e.issues.push({code:"invalid_value",values:r.mime,input:e.value.type,inst:t,continue:!r.abort})}}),Ga=s("$ZodCheckOverwrite",(e,t)=>{wa.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),Ka=class{constructor(e=[],t={}){this.content=[],this.indent=0,this.args=e,this.closed=t}indented(e){this.indent+=1,e(this),--this.indent}write(e){if("function"==typeof e)e(this,{execution:"sync"}),e(this,{execution:"async"});else{e=e.split("\n").filter(e=>e);const t=Math.min(...e.map(e=>e.length-e.trimStart().length));for(const r of e.map(e=>e.slice(t)).map(e=>" ".repeat(2*this.indent)+e))this.content.push(r)}}compile(){var e=Function,t=this?.content??[""];return new e(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {
${t.join("\n")}
};`)(...Object.values(this.closed))}},qa={major:4,minor:5,patch:1},v=s("$ZodType",(l,e)=>{(l=l??{})._zod.def=e,l._zod.bag=l._zod.bag||{},l._zod.version=qa;var e=l._zod.def.checks;const n=l._zod.traits.has("$ZodCheck")?[l,...e??[]]:e?.length?[...e]:[];for(const t of n)for(const r of t._zod.onattach)r(l);if(0===n.length)(e=l._zod).deferred??(e.deferred=[]),l._zod.deferred?.push(()=>{l._zod.run=l._zod.parse});else{const i=(e,t,r)=>{if(e.memo)return e;let n=Zr(e),i;for(const a of t){if(a._zod.def.when){if(Vr(e))continue;if(!a._zod.def.when(e))continue}else if(n)continue;const o=e.issues.length,s=a._zod.check(e);if(s instanceof Promise&&!1===r?.async)throw new gn;i||s instanceof Promise?i=(i??Promise.resolve()).then(async()=>{await s,e.issues.length!==o&&(qr(e.issues,o,l),n=n||Zr(e,o))}):e.issues.length!==o&&(qr(e.issues,o,l),n=n||Zr(e,o))}return i?i.then(()=>e):e},a=(e,t,r)=>{if(Zr(e))return e.aborted=!0,e;e=i(t,n,r);if(e instanceof Promise){if(!1===r.async)throw new gn;return e.then(e=>l._zod.parse(e,r))}return l._zod.parse(e,r)};l._zod.run=(t,r)=>{if(r.skipChecks)return l._zod.parse(t,r);if("backward"===r.direction)return(e=l._zod.parse({value:t.value,issues:[]},{...r,skipChecks:!0}))instanceof Promise?e.then(e=>a(e,t,r)):a(e,t,r);var e=l._zod.parse(t,r);if(e instanceof Promise){if(!1===r.async)throw new gn;return e.then(e=>i(e,n,r))}return i(e,n,r)}}},{get"~standard"(){return sn(this,"~standard",Ja(this))},set"~standard"(e){on(this,"~standard",e)}}),Ha=e=>e.success?{value:e.data}:{issues:e.error?.issues};function Ja(r){return{validate:t=>{try{return Ha(Ln(r,t))}catch(e){return Rn(r,t).then(Ha)}},vendor:"zod",version:1}}var Wa=s("$ZodString",(r,n)=>{v.init(r,n),r._zod.pattern=[...r?._zod.bag?.patterns??[]].pop()??qi(r._zod.bag),r._zod.parse=(e,t)=>{if(n.coerce)try{e.value=String(e.value)}catch(e){}return"string"!=typeof e.value&&e.issues.push({expected:"string",code:"invalid_type",input:e.value,inst:r}),e}}),Xa=s("$ZodStringFormat",(e,t)=>{za.init(e,t),Wa.init(e,t)}),Ya=s("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=gi),Xa.init(e,t)}),Qa=s("$ZodUUID",(e,t)=>{if(t.version){var r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===r)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=vi(r))}else t.pattern??(t.pattern=vi());Xa.init(e,t)}),eo=s("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=ki),Xa.init(e,t)}),to=1,ro=2;function no(e,t){if(!t.normalize&&t.protocol?.source===Ui.source&&!/^https?:\/\//i.test(e))return to;try{return new URL(e)}catch{return ro}}var io=/[\t\n\r]/g;function ao(e){return e.replace(io,"")}function oo(e,t){return t.lastIndex=0,t.test(e.hostname)}function so(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}var lo=s("$ZodURL",(n,i)=>{Xa.init(n,i),n._zod.check=t=>{try{var e=t.value.trim(),r=no(e,i);r===to?t.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:t.value,inst:n,continue:!i.abort}):r===ro?t.issues.push({code:"invalid_format",format:"url",input:t.value,inst:n,continue:!i.abort}):(i.hostname&&!oo(r,i.hostname)&&t.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:i.hostname.source,input:t.value,inst:n,continue:!i.abort}),i.protocol&&!so(r,i.protocol)&&t.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:i.protocol.source,input:t.value,inst:n,continue:!i.abort}),t.value=i.normalize?r.href:ao(e))}catch(e){t.issues.push({code:"invalid_format",format:"url",input:t.value,inst:n,continue:!i.abort})}}}),uo=s("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Ci()),Xa.init(e,t)}),co=s("$ZodNanoID",(e,t)=>{if(void 0!==t.length&&(!Number.isInteger(t.length)||t.length<1))throw new Error("Invalid nanoid length: "+t.length);t.pattern??(t.pattern=void 0===t.length?pi:mi(t.length)),Xa.init(e,t)}),po=s("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=si),Xa.init(e,t)}),mo=s("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=li),Xa.init(e,t)}),fo=s("$ZodULID",(e,t)=>{t.pattern??(t.pattern=ui),Xa.init(e,t)}),ho=s("$ZodXID",(e,t)=>{t.pattern??(t.pattern=ci),Xa.init(e,t)}),go=s("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=di),Xa.init(e,t)}),vo=s("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Ki(t)),Xa.init(e,t),!t.local&&-1!==t.precision||(e._zod.bag.laxFormat=!0,e._zod.onattach.push(e=>{e._zod.bag.laxFormat=!0}))}),bo=s("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Zi),Xa.init(e,t)}),yo=s("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Gi(t)),Xa.init(e,t)}),wo=s("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=fi),Xa.init(e,t)}),ko=s("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Oi),Xa.init(e,t),e._zod.bag.format="ipv4"}),_o=/^[0-9a-fA-F:.]+$/;function So(e){if(!_o.test(e))return!1;try{return new URL(`http://[${e}]`),!0}catch{return!1}}var Io=s("$ZodIPv6",(t,r)=>{r.pattern??(r.pattern=Ni),Xa.init(t,r),t._zod.bag.format="ipv6",t._zod.check=e=>{So(e.value)||e.issues.push({code:"invalid_format",format:"ipv6",input:e.value,inst:t,continue:!r.abort})}}),xo=s("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Ai(t.delimiter)),Xa.init(e,t),e._zod.bag.format="mac"}),$o=s("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Di),Xa.init(e,t)});function Eo(e){var t,r,e=e.split("/");return 2===e.length&&([e,t]=e,!!t)&&""+(r=Number(t))===t&&!(r<0||128<r)&&So(e)}var Co=s("$ZodCIDRv6",(t,r)=>{r.pattern??(r.pattern=Pi),Xa.init(t,r),t._zod.check=e=>{Eo(e.value)||e.issues.push({code:"invalid_format",format:"cidrv6",input:e.value,inst:t,continue:!r.abort})}});function Oo(e){if(""===e)return!0;if(/\s/.test(e))return!1;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var No=s("$ZodBase64",(t,r)=>{r.pattern??(r.pattern=Ti),Xa.init(t,r),t._zod.bag.contentEncoding="base64",t._zod.check=e=>{Oo(e.value)||e.issues.push({code:"invalid_format",format:"base64",input:e.value,inst:t,continue:!r.abort})}});function Ao(e){return!!zi.test(e)&&Oo((e=e.replace(/[-_]/g,e=>"-"===e?"+":"/")).padEnd(4*Math.ceil(e.length/4),"="))}var Do=s("$ZodBase64URL",(t,r)=>{r.pattern??(r.pattern=zi),Xa.init(t,r),t._zod.bag.contentEncoding="base64url",t._zod.check=e=>{Ao(e.value)||e.issues.push({code:"invalid_format",format:"base64url",input:e.value,inst:t,continue:!r.abort})}}),Po=s("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Ri),Xa.init(e,t)}),To=/[- ]/g;function zo(n){if(Mi.test(n)){var i=n.replace(To,"");let e=i.length,t=1,r=0;for(;e;){var a=+i[--e];t^=1,r+=t?[0,2,4,6,8,1,3,5,7,9][a]:a}return r%10==0}return!1}var jo=s("$ZodCreditCard",(t,r)=>{r.pattern??(r.pattern=Mi),Xa.init(t,r),t._zod.check=e=>{zo(e.value)||e.issues.push({code:"invalid_format",format:"credit_card",input:e.value,inst:t,continue:!r.abort})}});function Lo(e,t=null){try{var r,n,i=e.split(".");return 3!==i.length?!1:([r]=i,!!r&&!("typ"in(n=JSON.parse(atob(r)))&&"JWT"!==n?.typ||!n.alg||t&&!("alg"in n&&n.alg===t)))}catch{return!1}}var Uo=s("$ZodJWT",(t,r)=>{Xa.init(t,r),t._zod.check=e=>{Lo(e.value,r.alg)||e.issues.push({code:"invalid_format",format:"jwt",input:e.value,inst:t,continue:!r.abort})}}),Ro=s("$ZodCustomStringFormat",(t,r)=>{Xa.init(t,r),t._zod.check=e=>{r.fn(e.value)||e.issues.push({code:"invalid_format",format:r.format,input:e.value,inst:t,continue:!r.abort})}}),Mo=s("$ZodNumber",(i,a)=>{v.init(i,a),i._zod.pattern=i._zod.bag.pattern??Wi,i._zod.parse=(e,t)=>{if(a.coerce)try{e.value=Number(e.value)}catch(e){}var r,n=e.value;return"number"==typeof n&&!Number.isNaN(n)&&Number.isFinite(n)||(r="number"==typeof n?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:String(n):void 0,e.issues.push({expected:"number",code:"invalid_type",input:n,inst:i,...r?{received:r}:{}})),e}}),Bo=s("$ZodNumberFormat",(e,t)=>{Ea.init(e,t),Mo.init(e,t)}),Fo=s("$ZodBoolean",(n,i)=>{v.init(n,i),n._zod.pattern=Xi,n._zod.parse=(e,t)=>{if(i.coerce)try{e.value=Boolean(e.value)}catch(e){}var r=e.value;return"boolean"!=typeof r&&e.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:n}),e}}),Zo=s("$ZodBigInt",(r,n)=>{v.init(r,n),r._zod.pattern=Hi,r._zod.parse=(e,t)=>{if(n.coerce)try{e.value=BigInt(e.value)}catch(e){}return"bigint"!=typeof e.value&&e.issues.push({expected:"bigint",code:"invalid_type",input:e.value,inst:r}),e}}),Vo=s("$ZodBigIntFormat",(e,t)=>{Ca.init(e,t),Zo.init(e,t)}),Go=s("$ZodSymbol",(n,e)=>{v.init(n,e),n._zod.parse=(e,t)=>{var r=e.value;return"symbol"!=typeof r&&e.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:n}),e}}),Ko=s("$ZodUndefined",(n,e)=>{v.init(n,e),n._zod.pattern=Qi,n._zod.values=new Set([void 0]),n._zod.parse=(e,t)=>{var r=e.value;return void 0!==r&&e.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:n}),e}}),qo=s("$ZodNull",(n,e)=>{v.init(n,e),n._zod.pattern=Yi,n._zod.values=new Set([null]),n._zod.parse=(e,t)=>{var r=e.value;return null!==r&&e.issues.push({expected:"null",code:"invalid_type",input:r,inst:n}),e}}),Ho=s("$ZodAny",(e,t)=>{v.init(e,t),e._zod.parse=e=>e}),Jo=s("$ZodUnknown",(e,t)=>{v.init(e,t),e._zod.parse=e=>e}),Wo=s("$ZodNever",(r,e)=>{v.init(r,e),r._zod.parse=(e,t)=>(e.issues.push({expected:"never",code:"invalid_type",input:e.value,inst:r}),e)}),Xo=s("$ZodVoid",(n,e)=>{v.init(n,e),n._zod.parse=(e,t)=>{var r=e.value;return void 0!==r&&e.issues.push({expected:"void",code:"invalid_type",input:r,inst:n}),e}}),Yo=s("$ZodDate",(i,a)=>{v.init(i,a),i._zod.parse=(e,t)=>{if(a.coerce)try{e.value=new Date(e.value)}catch(e){}var r=e.value,n=r instanceof Date;return n&&!Number.isNaN(r.getTime())||e.issues.push({expected:"date",code:"invalid_type",input:r,...n?{received:"Invalid Date"}:{},inst:i}),e}});function Qo(e,t,r){e.issues.length&&t.issues.push(...Gr(r,e.issues)),t.value[r]=e.value}var es=s("$ZodArray",(t,o)=>{v.init(t,o);const s=bn.memoizer;s?.attach(t),t._zod.parse=(r,e)=>{var n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:t}),r;r.value=s?s.alloc(t,r,Array(n.length),e):Array(n.length);var i=[];for(let t=0;t<n.length;t++){var a=n[t],a=o.element._zod.run({value:a,issues:[]},e);a instanceof Promise?i.push(a.then(e=>Qo(e,r,t))):Qo(a,r,t)}return i.length?Promise.all(i).then(()=>r):r}});function ts(e,t,r,n,i,a){n=r in n,a="optional"===a;if(n||!a||"optional"!==i){if(e.issues.length){if(void 0!==i&&a&&!n)return;t.issues.push(...Gr(r,e.issues))}n||void 0!==i?void 0===e.value?n&&(t.value[r]=void 0):t.value[r]=e.value:e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]})}}var rs=[];function ns(e){var t=Object.keys(e.shape),r=Object.getOwnPropertySymbols(e.shape),r=r.length?r:rs,n=r.length?[...t,...r]:t;for(const a of n)if(!e.shape?.[a]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${String(a)}": expected a Zod schema`);var i=Mr(e.shape);return{...e,allKeys:n,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(i)}}function is(e,t,r,n,i,a){var o,s=[],l=i.keySet,u=i.catchall._zod,c=u.def.type;const d=u.optin,p=u.optout;for(const m in t)l.has(m)||("__proto__"===m?"never"===c&&s.push(m):"never"===c?s.push(m):(o=u.run({value:t[m],issues:[]},n))instanceof Promise?e.push(o.then(e=>ts(e,r,m,t,d,p))):ts(o,r,m,t,d,p));return s.length&&r.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:a,continue:!0}),e.length?Promise.all(e).then(()=>r):r}var as=new WeakMap,os=s("$ZodObject",(u,t)=>{if(v.init(u,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const r=t.shape;as.set(t,r),Object.defineProperty(t,"shape",{get:()=>{var e={...r};return Object.defineProperty(t,"shape",{value:e}),as.set(t,e),e}})}const c=wr(()=>ns(t)),d=(g(u,"propValues",e=>{var t=e.def.shape,r={};for(const i in t){var n=t[i]._zod;if(n.values){Object.prototype.hasOwnProperty.call(r,i)||$r(r,i,new Set);for(const a of n.values)r[i].add(a);void 0!==n.optin&&r[i].add(void 0)}}return r}),Ar),p=t.catchall;let m;const f=bn.memoizer;f?.attach(u),u._zod.parse=(t,e)=>{m=m??c.value;const r=t.value;if(!d(r))return t.issues.push({expected:"object",code:"invalid_type",input:r,inst:u}),t;t.value=f?f.alloc(u,t,{},e):{};var n=[],i=m.shape;for(const o of m.allKeys)if("__proto__"!==o){var a=i[o];const s=a._zod.optin,l=a._zod.optout;a=a._zod.run({value:r[o],issues:[]},e);a instanceof Promise?n.push(a.then(e=>ts(e,t,o,r,s,l))):ts(a,t,o,r,s,l)}return p?is(n,r,t,e,c.value,u):n.length?Promise.all(n).then(()=>t):t}}),ss=s("$ZodObjectJIT",(g,n)=>{os.init(g,n);const i=g._zod.parse,v=wr(()=>ns(n)),b=bn.memoizer;let a;const o=Ar,s=!bn.jitless;const l=s&&Dr.value,u=n.catchall;let c;g._zod.parse=(e,t)=>{c=c??v.value;var r=e.value;return o(r)?s&&l&&!1===t?.async&&!0!==t.jitless?(e=(a=a||(e=>{var t,r,n,i,a,o,s,l=v.value,u=l.symbolKeys,c=new Ka(["payload","ctx"],{shape:e,inst:g,memo:b,syms:u}),d=(e,t)=>`
          for (let i = 0; i < ${e}.issues.length; i++) {
            const iss = ${e}.issues[i];
            iss.path = iss.path ? [${t}, ...iss.path] : [${t}];
            payload.issues.push(iss);
          }`,p=(c.write("const input = payload.value;"),Object.create(null));let m=0;for(const f of l.allKeys)p[f]="key_"+m++;c.write(b?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(const h of l.allKeys)"__proto__"!==h&&(t=p[h],n=(r="symbol"==typeof h?`syms[${u.indexOf(h)}]`:Cr(h))+" in input",a=void 0!==(i=(o=e[h])?._zod?.optin),o="optional"===o?._zod?.optout,c.write(`const ${t} = ${s=r,`shape[${s}]._zod.run({ value: input[${s}], issues: [] }, ctx)`};`),a&&o?c.write(`
        const ${t}_present = ${n};
        if (!${t}.issues.length || ${t}_present) {
          if (${t}.issues.length) {${d(t,r)}
          }

          if (${"optional"===i?t+"_present":t+`.value !== undefined || ${t}_present`}) {
            newResult[${r}] = ${t}.value;
          }
        }

      `):a?c.write(`
        if (${t}.issues.length) {${d(t,r)}
        }
        
        if (${t}.value === undefined) {
          if (${n}) {
            newResult[${r}] = undefined;
          }
        } else {
          newResult[${r}] = ${t}.value;
        }

      `):c.write(`
        const ${t}_present = ${n};
        if (${t}.issues.length) {${d(t,r)}
        }
        if (!${t}_present && !${t}.issues.length) {
          payload.issues.push({
            code: "invalid_type",
            expected: "nonoptional",
            input: undefined,
            path: [${r}]
          });
        }

        if (${t}_present) {
          newResult[${r}] = ${t}.value;
        }

      `));return c.write("payload.value = newResult;"),c.write("return payload;"),c.compile()})(n.shape))(e,t),u?is([],r,e,t,c,g):e):i(e,t):(e.issues.push({expected:"object",code:"invalid_type",input:r,inst:g}),e)}});function ls(e,t,r,n){for(const a of e)if(0===a.issues.length)return t.value=a.value,t;var i=e.filter(e=>!Zr(e));return 1===i.length?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(e=>e.issues.map(e=>Hr(e,n,yn())))}),t)}var us=s("$ZodUnion",(o,s)=>{v.init(o,s),g(o,"optin",e=>e.def.options.some(e=>"defaulted"===e._zod.optin)?"defaulted":e.def.options.some(e=>void 0!==e._zod.optin)?"optional":void 0),g(o,"optout",e=>e.def.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),g(o,"values",e=>{if(e.def.options.every(e=>e._zod.values))return new Set(e.def.options.flatMap(e=>Array.from(e._zod.values)))}),g(o,"pattern",e=>{if(e.def.options.every(e=>e._zod.pattern))return e=e.def.options.map(e=>e._zod.pattern),new RegExp(`^(${e.map(e=>_r(e.source)).join("|")})$`)});const l=1===s.options.length?s.options[0]._zod.run:null;o._zod.parse=(t,r)=>{if(l)return l(t,r);let e=!1;var n=[];for(const a of s.options){var i=a._zod.run({value:t.value,issues:[]},r);if(i instanceof Promise)n.push(i),e=!0;else{if(0===i.issues.length)return i;n.push(i)}}return e?Promise.all(n).then(e=>ls(e,t,o,r)):ls(n,t,o,r)}});function cs(t,e,r,n){var i=[];for(let e=0;e<t.length;e++)0===t[e].issues.length&&i.push(e);return 1===i.length?e.value=t[i[0]].value:0===i.length?e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:t.map(e=>e.issues.map(e=>Hr(e,n,yn())))}):e.issues.push({code:"invalid_union",input:e.value,inst:r,errors:[],inclusive:!1,matches:i}),e}var ds=s("$ZodXor",(o,s)=>{us.init(o,s),s.inclusive=!1;const l=1===s.options.length?s.options[0]._zod.run:null;o._zod.parse=(t,r)=>{if(l)return l(t,r);let e=!1;var n=[];for(const a of s.options){var i=a._zod.run({value:t.value,issues:[]},r);i instanceof Promise?(n.push(i),e=!0):n.push(i)}return e?Promise.all(n).then(e=>cs(e,t,o,r)):cs(n,t,o,r)}});function ps(e,t){e=e._zod;let r=e.bag.optionsMap;if(!r){r=new Map;var{options:n,discriminator:i}=e.def;for(const a of n)for(const o of a._zod.propValues?.[i]??[])r.has(o)||r.set(o,a);e.bag.optionsMap=r}return r.get(t)}var ms=s("$ZodDiscriminatedUnion",(i,a)=>{a.inclusive=!1,us.init(i,a);const o=i._zod.parse,s=(g(i,"propValues",e=>{var t={};for(const a of e.def.options){var r,n,i=a._zod.propValues;if(!i||0===Object.keys(i).length)throw new Error(`Invalid discriminated union option at index "${e.def.options.indexOf(a)}"`);for([r,n]of Object.entries(i)){Object.prototype.hasOwnProperty.call(t,r)||$r(t,r,new Set);for(const o of n)t[r].add(o)}}return t}),a.options.forEach((e,t)=>{e=as.get(e._zod.def);if(e&&!Object.prototype.hasOwnProperty.call(e,a.discriminator))throw new Error(`Invalid discriminated union option at index "${t}"`)}),wr(()=>{var e=a.options,t=new Map;for(const n of e){var r=n._zod.propValues?.[a.discriminator];if(!r||0===r.size)throw new Error(`Invalid discriminated union option at index "${a.options.indexOf(n)}"`);for(const i of r){if(t.has(i))throw new Error(`Duplicate discriminator value "${String(i)}"`);t.set(i,n)}}return t}));i._zod.parse=(e,t)=>{var r=e.value;if(Ar(r)){var n=s.value.get(r?.[a.discriminator]);if(n)return n._zod.run(e,t);if(a.unionFallback||"backward"===t.direction)return o(e,t);e.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:a.discriminator,options:Array.from(s.value.keys()),input:r,path:[a.discriminator],inst:i})}else e.issues.push({code:"invalid_type",expected:"object",input:r,inst:i});return e}}),fs=s("$ZodIntersection",(e,i)=>{v.init(e,i),e._zod.parse=(r,e)=>{var t=r.value,n=i.left._zod.run({value:t,issues:[]},e),t=i.right._zod.run({value:t,issues:[]},e);return n instanceof Promise||t instanceof Promise?Promise.all([n,t]).then(([e,t])=>gs(r,e,t)):gs(r,n,t)}});function hs(t,r){if(t===r)return{valid:!0,data:t};if(t instanceof Date&&r instanceof Date&&+t==+r)return{valid:!0,data:t};if(Pr(t)&&Pr(r)){const s=Object.keys(r);var e=Object.keys(t).filter(e=>-1!==s.indexOf(e)),n={...t,...r};Object.prototype.hasOwnProperty.call(n,"__proto__")&&delete n.__proto__;for(const l of e)if("__proto__"!==l){var i=hs(t[l],r[l]);if(!i.valid)return{valid:!1,mergeErrorPath:[l,...i.mergeErrorPath]};n[l]=i.data}return{valid:!0,data:n}}if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return{valid:!1,mergeErrorPath:[]};var a=[];for(let e=0;e<t.length;e++){var o=hs(t[e],r[e]);if(!o.valid)return{valid:!1,mergeErrorPath:[e,...o.mergeErrorPath]};a.push(o.data)}return{valid:!0,data:a}}return{valid:!1,mergeErrorPath:[]}}function gs(e,t,r){const a=new Map;let o;const s=new Map;var n=(e,t)=>{let r;if("unrecognized_keys"!==e.code||e.path?.length){if("invalid_key"!==e.code||"record"!==e.origin||1!==e.path?.length)return!1;var n=String(e.path[0]);s.has(n)||s.set(n,e),r=[n]}else o=o??e,r=e.keys;for(const i of r)a.has(i)||a.set(i,{}),a.get(i)[t]=!0;return!0};for(const u of t.issues)n(u,"l")||e.issues.push(u);for(const c of r.issues)n(c,"r")||e.issues.push(c);var i=[...a].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(i.length){var l=o?i.filter(e=>o.keys.includes(e)):[];l.length&&e.issues.push({...o,keys:l});for(const d of i)!l.includes(d)&&s.has(d)&&e.issues.push(s.get(d))}i=hs(t.value,r.value);if(i.valid)return e.value=i.data,e;if(Zr(e))return e;throw new Error("Unmergable intersection. Error path: "+JSON.stringify(i.mergeErrorPath))}var vs=s("$ZodTuple",(c,d)=>{v.init(c,d);const p=d.items,m=bn.memoizer;m?.attach(c),c._zod.parse=(r,e)=>{const n=r.value;if(!Array.isArray(n))return r.issues.push({input:n,inst:c,expected:"tuple",code:"invalid_type"}),r;r.value=m?m.alloc(c,r,[],e):[];var i=[],t=bs(p,"optin");const a=bs(p,"optout");if(!d.rest){if(n.length<t)return r.issues.push({code:"too_small",minimum:t,inclusive:!0,input:n,inst:c,origin:"array"}),r;n.length>p.length&&r.issues.push({code:"too_big",maximum:p.length,inclusive:!0,input:n,inst:c,origin:"array"})}const o=new Array(p.length);for(let t=0;t<p.length;t++){var s=p[t]._zod.run({value:n[t],issues:[]},e);s instanceof Promise?i.push(s.then(e=>{o[t]=e})):o[t]=s}if(d.rest){let t=p.length-1;for(const u of n.slice(p.length)){t++;var l=d.rest._zod.run({value:u,issues:[]},e);l instanceof Promise?i.push(l.then(e=>ys(e,r,t))):ys(l,r,t)}}return i.length?Promise.all(i).then(()=>ws(o,r,p,n,a)):ws(o,r,p,n,a)}});function bs(t,r){for(let e=t.length-1;0<=e;e--)if(!("optin"===r?void 0!==t[e]._zod.optin:"optional"===t[e]._zod.optout))return e+1;return 0}function ys(e,t,r){e.issues.length&&t.issues.push(...Gr(r,e.issues)),t.value[r]=e.value}function ws(t,r,n,i,a){for(let e=0;e<n.length;e++){var o=t[e],s=e<i.length;if(!s&&e>=a&&"optional"===n[e]._zod.optin){r.value.length=e;break}if(o.issues.length){if(!s&&e>=a){r.value.length=e;break}r.issues.push(...Gr(e,o.issues))}r.value[e]=o.value}for(let e=r.value.length-1;e>=i.length&&("optional"===n[e]._zod.optout&&void 0===r.value[e]);e--)r.value.length=e;return r}var ks=s("$ZodRecord",(f,h)=>{v.init(f,h);const g=bn.memoizer;g?.attach(f),f._zod.parse=(r,n)=>{var i=r.value;if(!Pr(i))return r.issues.push({expected:"record",code:"invalid_type",input:i,inst:f}),r;var a=[],o=h.keyType._zod.values;if(o&&!h.partial){r.value=g?g.alloc(f,r,{},n):{};var t=new Set;for(const u of o)if(("string"==typeof u||"number"==typeof u||"symbol"==typeof u)&&(t.add("number"==typeof u?u.toString():u),"__proto__"!==u)){var s=h.keyType._zod.run({value:u,issues:[]},n);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(s.issues.length)r.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(e=>Hr(e,n,yn())),input:u,path:[u],inst:f});else{const c=s.value;"__proto__"!==c&&((s=h.valueType._zod.run({value:i[u],issues:[]},n))instanceof Promise?a.push(s.then(e=>{e.issues.length&&r.issues.push(...Gr(u,e.issues)),r.value[c]=e.value})):(s.issues.length&&r.issues.push(...Gr(u,s.issues)),r.value[c]=s.value))}}let e;for(const d in i)t.has(d)||("loose"===h.mode?"__proto__"!==d&&(r.value[d]=i[d]):(e=e??[]).push(d));e&&0<e.length&&r.issues.push({code:"unrecognized_keys",input:i,inst:f,keys:e,continue:!0})}else{r.value=g?g.alloc(f,r,{},n):{};let t;for(const p of Reflect.ownKeys(i))if("__proto__"!==p&&Object.prototype.propertyIsEnumerable.call(i,p)){let e=h.keyType._zod.run({value:p,issues:[]},n);if(e instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if("string"==typeof p&&Wi.test(p)&&e.issues.length){var l=h.keyType._zod.run({value:Number(p),issues:[]},n);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");0===l.issues.length&&(e=l)}if(e.issues.length)"loose"===h.mode?r.value[p]=i[p]:o?(t=t??[]).push(p):r.issues.push({code:"invalid_key",origin:"record",issues:e.issues.map(e=>Hr(e,n,yn())),input:p,path:[p],inst:f});else{const m=e.value;"__proto__"!==m&&((l=h.valueType._zod.run({value:i[p],issues:[]},n))instanceof Promise?a.push(l.then(e=>{e.issues.length&&r.issues.push(...Gr(p,e.issues)),r.value[m]=e.value})):(l.issues.length&&r.issues.push(...Gr(p,l.issues)),r.value[m]=l.value))}}t&&0<t.length&&r.issues.push({code:"unrecognized_keys",input:i,inst:f,keys:t,continue:!0})}return a.length?Promise.all(a).then(()=>r):r}}),_s=s("$ZodMap",(l,u)=>{v.init(l,u);const c=bn.memoizer;c?.attach(l),l._zod.parse=(r,n)=>{const i=r.value;if(!(i instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:i,inst:l}),r;var e=[];r.value=c?c.alloc(l,r,new Map,n):new Map;for(const[o,s]of i){var t=u.keyType._zod.run({value:o,issues:[]},n),a=u.valueType._zod.run({value:s,issues:[]},n);t instanceof Promise||a instanceof Promise?e.push(Promise.all([t,a]).then(([e,t])=>{Ss(e,t,r,o,i,l,n)})):Ss(t,a,r,o,i,l,n)}return e.length?Promise.all(e).then(()=>r):r}});function Ss(e,t,r,n,i,a,o){e.issues.length&&(jr.has(typeof n)?r.issues.push(...Gr(n,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:i,inst:a,issues:e.issues.map(e=>Hr(e,o,yn()))})),t.issues.length&&(jr.has(typeof n)?r.issues.push(...Gr(n,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:i,inst:a,key:n,issues:t.issues.map(e=>Hr(e,o,yn()))})),r.value.set(e.value,t.value)}var Is=s("$ZodSet",(o,s)=>{v.init(o,s);const l=bn.memoizer;l?.attach(o),o._zod.parse=(t,e)=>{var r=t.value;if(!(r instanceof Set))return t.issues.push({input:r,inst:o,expected:"set",code:"invalid_type"}),t;var n=[];t.value=l?l.alloc(o,t,new Set,e):new Set;for(const a of r){var i=s.valueType._zod.run({value:a,issues:[]},e);i instanceof Promise?n.push(i.then(e=>xs(e,t))):xs(i,t)}return n.length?Promise.all(n).then(()=>t):t}});function xs(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var $s=s("$ZodEnum",(n,e)=>{v.init(n,e);const i=br(e.entries),a=new Set(i);n._zod.values=a;e=i.filter(e=>jr.has(typeof e));n._zod.pattern=new RegExp(e.length?`^(${e.map(e=>Ur(e.toString())).join("|")})$`:"^[^\\s\\S]$"),n._zod.parse=(e,t)=>{var r=e.value;return a.has(r)||e.issues.push({code:"invalid_value",values:i,input:r,inst:n}),e}}),Es=s("$ZodLiteral",(n,i)=>{v.init(n,i);const a=new Set(i.values);n._zod.values=a,n._zod.pattern=new RegExp(i.values.length?`^(${i.values.map(e=>"string"==typeof e?Ur(e):e?Ur(e.toString()):String(e)).join("|")})$`:"^[^\\s\\S]$"),n._zod.parse=(e,t)=>{var r=e.value;return a.has(r)||e.issues.push({code:"invalid_value",values:i.values,input:r,inst:n}),e}}),Cs=s("$ZodFile",(n,e)=>{v.init(n,e),n._zod.parse=(e,t)=>{var r=e.value;return r instanceof File||e.issues.push({expected:"file",code:"invalid_type",input:r,inst:n}),e}}),Os=s("$ZodTransform",(n,i)=>{v.init(n,i),n._zod.optin="optional",bn.memoizer?.guard(n),n._zod.parse=(t,e)=>{if("backward"===e.direction)throw new vn(n.constructor.name);var r=i.transform(t.value,t);if(e.async)return(r instanceof Promise?r:Promise.resolve(r)).then(e=>(t.value=e,t));if(r instanceof Promise)throw new gn;return t.value=r,t}});function Ns(e,t){return e.value=t.issues.length?void 0:t.value,e}var As=s("$ZodOptional",(e,n)=>{v.init(e,n),g(e,"optin",e=>"defaulted"===e.def.innerType._zod.optin?"defaulted":"optional"),e._zod.optout="optional",g(e,"values",e=>{e=e.def.innerType._zod.values;return e?new Set([...e,void 0]):void 0}),g(e,"pattern",e=>{e=e.def.innerType._zod.pattern;return e?new RegExp(`^(${_r(e.source)})?$`):void 0}),e._zod.parse=(t,e)=>{var r;return void 0===t.value?"defaulted"!==n.innerType._zod.optin?t:(r=n.innerType._zod.run({value:t.value,issues:[]},e))instanceof Promise?r.then(e=>Ns(t,e)):Ns(t,r):n.innerType._zod.run(t,e)}}),Ds=s("$ZodExactOptional",(e,r)=>{As.init(e,r),g(e,"values",e=>e.def.innerType._zod.values),g(e,"pattern",e=>e.def.innerType._zod.pattern),e._zod.parse=(e,t)=>r.innerType._zod.run(e,t)}),Ps=s("$ZodNullable",(e,r)=>{v.init(e,r),g(e,"optin",e=>e.def.innerType._zod.optin),g(e,"optout",e=>e.def.innerType._zod.optout),g(e,"pattern",e=>{e=e.def.innerType._zod.pattern;return e?new RegExp(`^(${_r(e.source)}|null)$`):void 0}),g(e,"values",e=>e.def.innerType._zod.values?new Set([...e.def.innerType._zod.values,null]):void 0),e._zod.parse=(e,t)=>null===e.value?e:r.innerType._zod.run(e,t)}),Ts=s("$ZodDefault",(e,r)=>{v.init(e,r),e._zod.optin="defaulted",g(e,"values",e=>e.def.innerType._zod.values),e._zod.parse=(e,t)=>{return"backward"===t.direction?r.innerType._zod.run(e,t):void 0===e.value?(e.value=r.defaultValue,e):(e=r.innerType._zod.run(e,t))instanceof Promise?e.then(e=>zs(e,r)):zs(e,r)}});function zs(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}var js=s("$ZodPrefault",(e,r)=>{v.init(e,r),e._zod.optin="defaulted",g(e,"values",e=>e.def.innerType._zod.values),e._zod.parse=(e,t)=>("backward"!==t.direction&&void 0===e.value&&(e.value=r.defaultValue),r.innerType._zod.run(e,t))}),Ls=s("$ZodNonOptional",(r,n)=>{v.init(r,n),g(r,"values",e=>{e=e.def.innerType._zod.values;return e?new Set([...e].filter(e=>void 0!==e)):void 0}),r._zod.parse=(e,t)=>{e=n.innerType._zod.run(e,t);return e instanceof Promise?e.then(e=>Us(e,r)):Us(e,r)}});function Us(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var Rs=s("$ZodSuccess",(e,r)=>{v.init(e,r),e._zod.parse=(t,e)=>{if("backward"===e.direction)throw new vn("ZodSuccess");e=r.innerType._zod.run(t,e);return e instanceof Promise?e.then(e=>(t.value=0===e.issues.length,t)):(t.value=0===e.issues.length,t)}});function Ms(e,t,r,n){return t.issues.length?e.value=r.catchValue({...t,value:e.value,error:{issues:t.issues.map(e=>Hr(e,n,yn()))},input:e.value}):(e.value=t.value,t.memo&&(e.memo=!0)),e}var Bs=s("$ZodCatch",(e,n)=>{v.init(e,n),g(e,"optin",e=>"defaulted"===e.def.innerType._zod.optin?"defaulted":"optional"),g(e,"optout",e=>e.def.innerType._zod.optout),g(e,"values",e=>e.def.innerType._zod.values),e._zod.parse=(t,r)=>{var e;return"backward"===r.direction?n.innerType._zod.run(t,r):(e=n.innerType._zod.run({value:t.value,issues:[]},r))instanceof Promise?e.then(e=>Ms(t,e,n,r)):Ms(t,e,n,r)}}),Fs=s("$ZodNaN",(r,e)=>{v.init(r,e),r._zod.parse=(e,t)=>("number"==typeof e.value&&Number.isNaN(e.value)||e.issues.push({input:e.value,inst:r,expected:"nan",code:"invalid_type"}),e)}),Zs=s("$ZodPipe",(e,n)=>{v.init(e,n),g(e,"values",e=>e.def.in._zod.values),g(e,"optin",e=>e.def.in._zod.optin),g(e,"optout",e=>e.def.out._zod.optout),g(e,"propValues",e=>e.def.in._zod.propValues),e._zod.parse=(e,t)=>{var r;return"backward"===t.direction?(r=n.out._zod.run(e,t))instanceof Promise?r.then(e=>Vs(e,n.in,t)):Vs(r,n.in,t):(r=n.in._zod.run(e,t))instanceof Promise?r.then(e=>Vs(e,n.out,t)):Vs(r,n.out,t)}});function Vs(e,t,r){return e.issues.some(e=>"unrecognized_keys"!==e.code)?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}var Gs=s("$ZodCodec",(e,n)=>{v.init(e,n),g(e,"values",e=>e.def.in._zod.values),g(e,"optin",e=>e.def.in._zod.optin),g(e,"optout",e=>e.def.out._zod.optout),g(e,"propValues",e=>e.def.in._zod.propValues),e._zod.parse=(e,t)=>{var r;return"forward"===(t.direction||"forward")?(r=n.in._zod.run(e,t))instanceof Promise?r.then(e=>Ks(e,n,t)):Ks(r,n,t):(r=n.out._zod.run(e,t))instanceof Promise?r.then(e=>Ks(e,n,t)):Ks(r,n,t)}});function Ks(t,r,n){var e;return t.issues.length?(t.aborted=!0,t):"forward"===(n.direction||"forward")?(e=r.transform(t.value,t))instanceof Promise?e.then(e=>qs(t,e,r.out,n)):qs(t,e,r.out,n):(e=r.reverseTransform(t.value,t))instanceof Promise?e.then(e=>qs(t,e,r.in,n)):qs(t,e,r.in,n)}function qs(e,t,r,n){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},n)}var Hs=s("$ZodPreprocess",(e,t)=>{Zs.init(e,t)}),Js=s("$ZodReadonly",(e,r)=>{v.init(e,r),g(e,"propValues",e=>e.def.innerType._zod.propValues),g(e,"values",e=>e.def.innerType._zod.values),g(e,"optin",e=>e.def.innerType?._zod?.optin),g(e,"optout",e=>e.def.innerType?._zod?.optout),e._zod.parse=(e,t)=>{return"backward"===t.direction?r.innerType._zod.run(e,t):(e=r.innerType._zod.run(e,t))instanceof Promise?e.then(Ws):Ws(e)}});function Ws(e){return e.memo||(e.value=Object.freeze(e.value)),e}var Xs=s("$ZodTemplateLiteral",(r,n)=>{v.init(r,n);var e=[];for(const o of n.parts)if("object"==typeof o&&null!==o){if(!o._zod.pattern)throw new Error("Invalid template literal part, no pattern found: "+[...o._zod.traits].shift());var t=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!t)throw new Error("Invalid template literal part: "+o._zod.traits);var i=t.startsWith("^")?1:0,a=t.endsWith("$")?t.length-1:t.length;e.push(t.slice(i,a))}else{if(null!==o&&!Lr.has(typeof o))throw new Error("Invalid template literal part: "+o);e.push(Ur(""+o))}r._zod.pattern=new RegExp(`^${e.join("")}$`),r._zod.parse=(e,t)=>("string"!=typeof e.value?e.issues.push({input:e.value,inst:r,expected:"string",code:"invalid_type"}):(r._zod.pattern.lastIndex=0,r._zod.pattern.test(e.value)||e.issues.push({input:e.value,inst:r,code:"invalid_format",format:n.format??"template_literal",pattern:r._zod.pattern.source})),e)}),Ys=s("$ZodFunction",(n,e)=>(v.init(n,e),Object.defineProperty(n,"_def",{value:e}),n._zod.def=e,n.implement=t=>{if("function"!=typeof t)throw new Error("implement() must be called with a function");return Object.defineProperty(function(...e){e=n._def.input?Pn(n._def.input,e):e,e=Reflect.apply(t,this,e);return n._def.output?Pn(n._def.output,e):e},"_zod",{value:n._zod,enumerable:!1})},n.implementAsync=t=>{if("function"!=typeof t)throw new Error("implementAsync() must be called with a function");return Object.defineProperty(async function(...e){e=n._def.input?await zn(n._def.input,e):e,e=await Reflect.apply(t,this,e);return n._def.output?zn(n._def.output,e):e},"_zod",{value:n._zod,enumerable:!1})},n._zod.parse=(e,t)=>{var r;return"function"!=typeof e.value?e.issues.push({code:"invalid_type",expected:"function",input:e.value,inst:n}):(r=n._def.output&&"promise"===n._def.output._zod.def.type,e.value=r?n.implementAsync(e.value):n.implement(e.value)),e},n.input=(...e)=>{var t=n.constructor;return Array.isArray(e[0])?new t({type:"function",input:new vs({type:"tuple",items:e[0],rest:e[1]}),output:n._def.output}):new t({type:"function",input:e[0],output:n._def.output})},n.output=e=>{return new n.constructor({type:"function",input:n._def.input,output:e})},n)),Qs=s("$ZodPromise",(e,r)=>{v.init(e,r),e._zod.parse=(e,t)=>Promise.resolve(e.value).then(e=>r.innerType._zod.run({value:e,issues:[]},t))}),el=s("$ZodLazy",(r,t)=>{v.init(r,t),xr(r._zod,"innerType",()=>{var e=t;return e._cachedInner||(e._cachedInner=t.getter()),e._cachedInner}),g(r,"pattern",e=>e.innerType?._zod?.pattern),g(r,"propValues",e=>e.innerType?._zod?.propValues),g(r,"optin",e=>e.innerType?._zod?.optin??void 0),g(r,"optout",e=>e.innerType?._zod?.optout??void 0),r._zod.parse=(e,t)=>{return r._zod.innerType._zod.run(e,t)}}),tl=s("$ZodCustom",(n,i)=>{wa.init(n,i),v.init(n,i),n._zod.parse=(e,t)=>e,n._zod.check=t=>{const r=t.value;var e=i.fn(r);if(e instanceof Promise)return e.then(e=>rl(e,t,r,n));rl(e,t,r,n)}});function rl(e,t,r,n){e||(e={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort},n._zod.def.params&&(e.params=n._zod.def.params),t.issues.push(Qr(e)))}var nl=class extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}},il="~memo",al=[];function ol(e){return e.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}var sl,ll=new WeakMap;function ul(e,t){var r=ll.get(e);if(void 0!==r)return r;if(t.has(e))return!0;t.add(e);let n=!1;var i=e=>{!n&&e?._zod&&ul(e,t)&&(n=!0)},a=e._zod.def;if("lazy"===a.type)i(e._zod.innerType);else{var o=a.shape;if(o)for(const l of Reflect.ownKeys(o))i(o[l]);for(const u in a){var s=a[u];if(s&&"object"==typeof s)if(s._zod)i(s);else if(Array.isArray(s))for(const c of s)i(c)}}return t.delete(e),ll.set(e,n),n}function cl(e){return ul(e,new Set)}var dl=[],pl={alloc(e,t,r){var n=sl;return n&&(sl=void 0,n.set(t.value,n={value:r,issues:null}),dl.push(n)),r},guard(t){var e;(e=t._zod).deferred??(e.deferred=[]),t._zod.deferred.push(()=>{const r=t._zod.parse;var e=(e,t)=>{if("backward"!==t.direction&&fl(t,e.value))throw new nl;return r(e,t)};t._zod.parse=e,t._zod.run===r&&(t._zod.run=e)})},attach(l){var e;let u,c,d;(e=l._zod).deferred??(e.deferred=[]),l._zod.deferred.push(()=>{const o=l._zod.parse,s=(e,t)=>{if(void 0===u&&!(u=ul(l,new Set)))return l._zod.parse=o,l._zod.run===s&&(l._zod.run=o),o(e,t);var r=e.value;if(null===r||"object"!=typeof r)return o(e,t);let n=t[il];n||(n={buckets:new Map,backEdges:void 0},t[il]=n);let i;c===t?i=d:(i=function(e,t){let r=e.buckets.get(t);return r||(r=new Map,e.buckets.set(t,r)),r}(n,l),c=t,d=i);r=i.get(r);if(r)return e.value=r.value,r.issues?r.issues.length&&e.issues.push(...ol(r.issues)):(e.memo=!0,n.backEdges??(n.backEdges=new Set),n.backEdges.add(r.value)),e;sl=i;r=dl.length,e=o(e,t);sl=void 0;const a=r<dl.length?dl.pop():void 0;return e instanceof Promise?e.then(e=>(a&&(a.issues=e.issues.length?ol(e.issues):al),e)):(a&&(a.issues=e.issues.length?ol(e.issues):al),e)};l._zod.parse=s,l._zod.run===o&&(l._zod.run=s)})}};function ml(){return pl}function fl(e,t){e=e[il]?.backEdges;return void 0!==e&&null!==t&&"object"==typeof t&&e.has(t)}var hl={},gl=(t(hl,{ar:()=>function(){return{localeError:gl()}},az:()=>function(){return{localeError:vl()}},be:()=>function(){return{localeError:yl()}},bg:()=>function(){return{localeError:wl()}},bn:()=>function(){return{localeError:kl()}},ca:()=>function(){return{localeError:_l()}},ckb:()=>function(){return{localeError:Sl()}},cs:()=>function(){return{localeError:Il()}},da:()=>function(){return{localeError:xl()}},de:()=>function(){return{localeError:$l()}},el:()=>function(){return{localeError:El()}},en:()=>Ol,eo:()=>function(){return{localeError:Nl()}},es:()=>function(){return{localeError:Al()}},fa:()=>function(){return{localeError:Dl()}},fi:()=>function(){return{localeError:Pl()}},fr:()=>function(){return{localeError:Tl()}},frCA:()=>function(){return{localeError:zl()}},gu:()=>function(){return{localeError:jl()}},he:()=>function(){return{localeError:Ll()}},hi:()=>function(){return{localeError:Ul()}},hr:()=>function(){return{localeError:Rl()}},hu:()=>function(){return{localeError:Ml()}},hy:()=>function(){return{localeError:Zl()}},id:()=>function(){return{localeError:Vl()}},is:()=>function(){return{localeError:Gl()}},it:()=>function(){return{localeError:Kl()}},ja:()=>function(){return{localeError:ql()}},ka:()=>function(){return{localeError:Hl()}},kh:()=>Wl,km:()=>Wl,kn:()=>function(){return{localeError:Xl()}},ko:()=>function(){return{localeError:Yl()}},lt:()=>function(){return{localeError:tu()}},mk:()=>function(){return{localeError:ru()}},ms:()=>function(){return{localeError:nu()}},ne:()=>function(){return{localeError:iu()}},nl:()=>function(){return{localeError:au()}},nn:()=>function(){return{localeError:ou()}},no:()=>function(){return{localeError:su()}},ota:()=>function(){return{localeError:lu()}},pl:()=>function(){return{localeError:cu()}},ps:()=>function(){return{localeError:uu()}},pt:()=>function(){return{localeError:du()}},ptBR:()=>function(){return{localeError:pu()}},ro:()=>function(){return{localeError:mu()}},ru:()=>function(){return{localeError:hu()}},sk:()=>function(){return{localeError:gu()}},sl:()=>function(){return{localeError:vu()}},sv:()=>function(){return{localeError:bu()}},ta:()=>function(){return{localeError:yu()}},th:()=>function(){return{localeError:wu()}},tk:()=>function(){return{localeError:ku()}},tr:()=>function(){return{localeError:_u()}},ua:()=>Iu,uk:()=>Iu,ur:()=>function(){return{localeError:xu()}},uz:()=>function(){return{localeError:$u()}},vi:()=>function(){return{localeError:Eu()}},yo:()=>function(){return{localeError:Nu()}},zhCN:()=>function(){return{localeError:Cu()}},zhTW:()=>function(){return{localeError:Ou()}}}),()=>{const t={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"},map:{unit:"عنصر",verb:"أن يحوي"}};function n(e){return t[e]??null}const i={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",mac:"عنوان MAC",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",credit_card:"رقم بطاقة الائتمان",jwt:"JWT",template_literal:"مدخل"},a={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input),r=a[r]??r;return/^[A-Z]/.test(e.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${e.expected}، ولكن تم إدخال `+r:`مدخلات غير مقبولة: يفترض إدخال ${t}، ولكن تم إدخال `+r;case"invalid_value":return 1===e.values.length?"مدخلات غير مقبولة: يفترض إدخال "+m(e.values[0]):"اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: "+p(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",r=n(e.origin);return r?` أكبر من اللازم: يفترض أن تكون ${e.origin??"القيمة"} ${t} ${e.maximum.toString()} `+(r.unit??"عنصر"):`أكبر من اللازم: يفترض أن تكون ${e.origin??"القيمة"} ${t} `+e.maximum.toString();case"too_small":r=e.inclusive?">=":">",t=n(e.origin);return t?`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${r} ${e.minimum.toString()} `+t.unit:`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${r} `+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`نَص غير مقبول: يجب أن يبدأ بـ "${e.prefix}"`:"ends_with"===t.format?`نَص غير مقبول: يجب أن ينتهي بـ "${t.suffix}"`:"includes"===t.format?`نَص غير مقبول: يجب أن يتضمَّن "${t.includes}"`:"regex"===t.format?"نَص غير مقبول: يجب أن يطابق النمط "+t.pattern:(i[t.format]??e.format)+" غير مقبول";case"not_multiple_of":return"رقم غير مقبول: يجب أن يكون من مضاعفات "+e.divisor;case"unrecognized_keys":return`معرف${1<e.keys.length?"ات":""} غريب${1<e.keys.length?"ة":""}: `+p(e.keys,"، ");case"invalid_key":return"معرف غير مقبول في "+e.origin;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return"مدخل غير مقبول في "+e.origin;default:return"مدخل غير مقبول"}}});var vl=()=>{const t={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"},map:{unit:"element",verb:"olmalıdır"}};function n(e){return t[e]??null}const i={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",credit_card:"kredit kartı nömrəsi",jwt:"JWT",template_literal:"input"},a={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input),r=a[r]??r;return/^[A-Z]/.test(e.expected)?`Yanlış dəyər: gözlənilən instanceof ${e.expected}, daxil olan `+r:`Yanlış dəyər: gözlənilən ${t}, daxil olan `+r;case"invalid_value":return 1===e.values.length?"Yanlış dəyər: gözlənilən "+m(e.values[0]):"Yanlış seçim: aşağıdakılardan biri olmalıdır: "+p(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",r=n(e.origin);return r?`Çox böyük: gözlənilən ${e.origin??"dəyər"} ${t}${e.maximum.toString()} `+(r.unit??"element"):`Çox böyük: gözlənilən ${e.origin??"dəyər"} `+t+e.maximum.toString();case"too_small":r=e.inclusive?">=":">",t=n(e.origin);return t?`Çox kiçik: gözlənilən ${e.origin} ${r}${e.minimum.toString()} `+t.unit:`Çox kiçik: gözlənilən ${e.origin} `+r+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Yanlış mətn: "${t.prefix}" ilə başlamalıdır`:"ends_with"===t.format?`Yanlış mətn: "${t.suffix}" ilə bitməlidir`:"includes"===t.format?`Yanlış mətn: "${t.includes}" daxil olmalıdır`:"regex"===t.format?`Yanlış mətn: ${t.pattern} şablonuna uyğun olmalıdır`:"Yanlış "+(i[t.format]??e.format);case"not_multiple_of":return`Yanlış ədəd: ${e.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${1<e.keys.length?"lar":""}: `+p(e.keys,", ");case"invalid_key":return e.origin+" daxilində yanlış açar";case"invalid_union":return"Yanlış dəyər";case"invalid_element":return e.origin+" daxilində yanlış dəyər";default:return"Yanlış dəyər"}}};function bl(e,t,r,n){var e=Math.abs(e),i=e%10,e=e%100;return 11<=e&&e<=19?n:1==i?t:2<=i&&i<=4?r:n}var yl=()=>{const t={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},map:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function i(e){return t[e]??null}const a={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",mac:"MAC адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",credit_card:"нумар крэдытнай карты",jwt:"JWT",template_literal:"увод"},o={nan:"NaN",number:"лік",array:"масіў"};return e=>{switch(e.code){case"invalid_type":var t=o[e.expected]??e.expected,r=f(e.input),r=o[r]??r;return/^[A-Z]/.test(e.expected)?`Няправільны ўвод: чакаўся instanceof ${e.expected}, атрымана `+r:`Няправільны ўвод: чакаўся ${t}, атрымана `+r;case"invalid_value":return 1===e.values.length?"Няправільны ўвод: чакалася "+m(e.values[0]):"Няправільны варыянт: чакаўся адзін з "+p(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",r=i(e.origin);return r?(n=bl(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many),`Занадта вялікі: чакалася, што ${e.origin??"значэнне"} павінна ${r.verb} ${t}${e.maximum.toString()} `+n):`Занадта вялікі: чакалася, што ${e.origin??"значэнне"} павінна быць `+t+e.maximum.toString();case"too_small":var r=e.inclusive?">=":">",n=i(e.origin);return n?(t=bl(Number(e.minimum),n.unit.one,n.unit.few,n.unit.many),`Занадта малы: чакалася, што ${e.origin} павінна ${n.verb} ${r}${e.minimum.toString()} `+t):`Занадта малы: чакалася, што ${e.origin} павінна быць `+r+e.minimum.toString();case"invalid_format":n=e;return"starts_with"===n.format?`Няправільны радок: павінен пачынацца з "${n.prefix}"`:"ends_with"===n.format?`Няправільны радок: павінен заканчвацца на "${n.suffix}"`:"includes"===n.format?`Няправільны радок: павінен змяшчаць "${n.includes}"`:"regex"===n.format?"Няправільны радок: павінен адпавядаць шаблону "+n.pattern:"Няправільны "+(a[n.format]??e.format);case"not_multiple_of":return"Няправільны лік: павінен быць кратным "+e.divisor;case"unrecognized_keys":return`Нераспазнаны ${1<e.keys.length?"ключы":"ключ"}: `+p(e.keys,", ");case"invalid_key":return"Няправільны ключ у "+e.origin;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return"Няправільнае значэнне ў "+e.origin;default:return"Няправільны ўвод"}}};var wl=()=>{const t={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"},map:{unit:"елемента",verb:"да съдържа"}};function n(e){return t[e]??null}const i={regex:"вход",email:"имейл адрес",url:"URL",emoji:"емоджи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO време",date:"ISO дата",time:"ISO време",duration:"ISO продължителност",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",mac:"MAC адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"base64-кодиран низ",base64url:"base64url-кодиран низ",json_string:"JSON низ",e164:"E.164 номер",credit_card:"номер на кредитна карта",jwt:"JWT",template_literal:"вход"},a={nan:"NaN",number:"число",array:"масив"};return t=>{switch(t.code){case"invalid_type":var r=a[t.expected]??t.expected,e=f(t.input),e=a[e]??e;return/^[A-Z]/.test(t.expected)?`Невалиден вход: очакван instanceof ${t.expected}, получен `+e:`Невалиден вход: очакван ${r}, получен `+e;case"invalid_value":return 1===t.values.length?"Невалиден вход: очакван "+m(t.values[0]):"Невалидна опция: очаквано едно от "+p(t.values,"|");case"too_big":r=t.inclusive?"<=":"<",e=n(t.origin);return e?`Твърде голямо: очаква се ${t.origin??"стойност"} да съдържа ${r}${t.maximum.toString()} `+(e.unit??"елемента"):`Твърде голямо: очаква се ${t.origin??"стойност"} да бъде `+r+t.maximum.toString();case"too_small":e=t.inclusive?">=":">",r=n(t.origin);return r?`Твърде малко: очаква се ${t.origin} да съдържа ${e}${t.minimum.toString()} `+r.unit:`Твърде малко: очаква се ${t.origin} да бъде `+e+t.minimum.toString();case"invalid_format":{r=t;if("starts_with"===r.format)return`Невалиден низ: трябва да започва с "${r.prefix}"`;if("ends_with"===r.format)return`Невалиден низ: трябва да завършва с "${r.suffix}"`;if("includes"===r.format)return`Невалиден низ: трябва да включва "${r.includes}"`;if("regex"===r.format)return"Невалиден низ: трябва да съвпада с "+r.pattern;let e="Невалиден";return"emoji"===r.format&&(e="Невалидно"),"datetime"===r.format&&(e="Невалидно"),"date"===r.format&&(e="Невалидна"),"time"===r.format&&(e="Невалидно"),(e="duration"===r.format?"Невалидна":e)+" "+(i[r.format]??t.format)}case"not_multiple_of":return"Невалидно число: трябва да бъде кратно на "+t.divisor;case"unrecognized_keys":return`Неразпознат${1<t.keys.length?"и":""} ключ${1<t.keys.length?"ове":""}: `+p(t.keys,", ");case"invalid_key":return"Невалиден ключ в "+t.origin;case"invalid_union":return"Невалиден вход";case"invalid_element":return"Невалидна стойност в "+t.origin;default:return"Невалиден вход"}}};var kl=()=>{const t={string:{unit:"অক্ষর",verb:"থাকতে হবে"},file:{unit:"বাইট",verb:"থাকতে হবে"},array:{unit:"আইটেম",verb:"থাকতে হবে"},set:{unit:"আইটেম",verb:"থাকতে হবে"},map:{unit:"এন্ট্রি",verb:"থাকতে হবে"}};function n(e){return t[e]??null}const i={regex:"ইনপুট",email:"ইমেইল ঠিকানা",url:"URL",emoji:"ইমোজি",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO তারিখ ও সময়",date:"ISO তারিখ",time:"ISO সময়",duration:"ISO সময়কাল",ipv4:"IPv4 ঠিকানা",ipv6:"IPv6 ঠিকানা",mac:"MAC ঠিকানা",cidrv4:"IPv4 রেঞ্জ",cidrv6:"IPv6 রেঞ্জ",base64:"base64-এনকোডেড স্ট্রিং",base64url:"base64url-এনকোডেড স্ট্রিং",json_string:"JSON স্ট্রিং",e164:"E.164 নম্বর",credit_card:"ক্রেডিট কার্ড নম্বর",jwt:"JWT",template_literal:"ইনপুট"},a={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input);return`অবৈধ ইনপুট: প্রত্যাশিত ${t}, প্রাপ্ত `+(a[r]??r);case"invalid_value":return 1===e.values.length?"অবৈধ ইনপুট: প্রত্যাশিত "+m(e.values[0]):`অবৈধ অপশন: ${p(e.values," | ")} এর মধ্যে একটি প্রত্যাশিত`;case"too_big":t=e.inclusive?"<=":"<",r=n(e.origin);return r?`অনেক বড়: ${e.origin??"মান"} ${t}${e.maximum.toString()} ${r.unit??"এলিমেন্ট"} হতে হবে`:`অনেক বড়: ${e.origin??"মান"} ${t}${e.maximum.toString()} হতে হবে`;case"too_small":r=e.inclusive?">=":">",t=n(e.origin);return t?`অনেক ছোট: ${e.origin} ${r}${e.minimum.toString()} ${t.unit} হতে হবে`:`অনেক ছোট: ${e.origin} ${r}${e.minimum.toString()} হতে হবে`;case"invalid_format":t=e;return"starts_with"===t.format?`অবৈধ স্ট্রিং: "${t.prefix}" দিয়ে শুরু হতে হবে`:"ends_with"===t.format?`অবৈধ স্ট্রিং: "${t.suffix}" দিয়ে শেষ হতে হবে`:"includes"===t.format?`অবৈধ স্ট্রিং: "${t.includes}" অন্তর্ভুক্ত থাকতে হবে`:"regex"===t.format?`অবৈধ স্ট্রিং: ${t.pattern} প্যাটার্ন মিলতে হবে`:"অবৈধ "+(i[t.format]??e.format);case"not_multiple_of":return`অবৈধ নম্বর: ${e.divisor} এর গুণিতক হতে হবে`;case"unrecognized_keys":return`অচেনা কী${1<e.keys.length?"গুলো":""}: `+p(e.keys,", ");case"invalid_key":return e.origin+" এ অবৈধ কী";case"invalid_union":return e.options&&Array.isArray(e.options)&&0<e.options.length?"অবৈধ ডিসক্রিমিনেটর মান। প্রত্যাশিত "+e.options.map(e=>`'${e}'`).join(" | "):"অবৈধ ইনপুট";case"invalid_element":return e.origin+" এ অবৈধ মান";default:return"অবৈধ ইনপুট"}}};var _l=()=>{const t={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"},map:{unit:"elements",verb:"contenir"}};function n(e){return t[e]??null}const i={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",mac:"adreça MAC",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",credit_card:"número de targeta de crèdit",jwt:"JWT",template_literal:"entrada"},a={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input),r=a[r]??r;return/^[A-Z]/.test(e.expected)?`Tipus invàlid: s'esperava instanceof ${e.expected}, s'ha rebut `+r:`Tipus invàlid: s'esperava ${t}, s'ha rebut `+r;case"invalid_value":return 1===e.values.length?"Valor invàlid: s'esperava "+m(e.values[0]):"Opció invàlida: s'esperava una de "+p(e.values," o ");case"too_big":t=e.inclusive?"com a màxim":"menys de",r=n(e.origin);return r?`Massa gran: s'esperava que ${e.origin??"el valor"} contingués ${t} ${e.maximum.toString()} `+(r.unit??"elements"):`Massa gran: s'esperava que ${e.origin??"el valor"} fos ${t} `+e.maximum.toString();case"too_small":r=e.inclusive?"com a mínim":"més de",t=n(e.origin);return t?`Massa petit: s'esperava que ${e.origin} contingués ${r} ${e.minimum.toString()} `+t.unit:`Massa petit: s'esperava que ${e.origin} fos ${r} `+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Format invàlid: ha de començar amb "${t.prefix}"`:"ends_with"===t.format?`Format invàlid: ha d'acabar amb "${t.suffix}"`:"includes"===t.format?`Format invàlid: ha d'incloure "${t.includes}"`:"regex"===t.format?"Format invàlid: ha de coincidir amb el patró "+t.pattern:"Format invàlid per a "+(i[t.format]??e.format);case"not_multiple_of":return"Número invàlid: ha de ser múltiple de "+e.divisor;case"unrecognized_keys":return`Clau${1<e.keys.length?"s":""} no reconeguda${1<e.keys.length?"s":""}: `+p(e.keys,", ");case"invalid_key":return"Clau invàlida a "+e.origin;case"invalid_union":return"Entrada invàlida";case"invalid_element":return"Element invàlid a "+e.origin;default:return"Entrada invàlida"}}};var Sl=()=>{const t={string:{unit:"پیت",verb:"بێت"},file:{unit:"بایت",verb:"بێت"},array:{unit:"دانە",verb:"بێت"},set:{unit:"دانە",verb:"بێت"},map:{unit:"دانە",verb:"بێت"}};function o(e){return t[e]??null}const s={regex:"regex",email:"ئیمەیڵ",url:"بەستەر (URL)",emoji:"ئیمۆجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ڕێکەوت و کات",date:"ڕێکەوت",time:"کات",duration:"ماوە",ipv4:"ناونیشانی IPv4",ipv6:"ناونیشانی IPv6",mac:"ناونیشانی MAC",cidrv4:"مەودای IPv4",cidrv6:"مەودای IPv6",base64:"دەقی base64",base64url:"دەقی base64url",json_string:"دەقی JSON",e164:"ژمارەی E.164",credit_card:"ژمارەی کارتی کرێدیت",jwt:"JWT",template_literal:"تێکردە"},l={nan:"NaN",string:"نووسین",number:"ژمارە",boolean:"boolean",array:"array",object:"object",date:"ڕێکەوت",integer:"ژمارە",float:"ژمارە",null:"null",undefined:"undefined",function:"function",symbol:"symbol",unknown:"unknown",promise:"promise",void:"void",never:"never",map:"map",set:"set"};return e=>{switch(e.code){case"invalid_type":{var t=l[e.expected]??e.expected,r=f(e.input);const a=l[r]??r;var n=["ا","و","ۆ","وو","ە","ی","ێ"].some(e=>a.endsWith(e))?"یە":"ە",i=/^[a-zA-Z]+$/.test(a);return"null"===r||"undefined"===r?"داواکراوە":`چاوەڕوانکراوە ${t} بێت، بەڵام `+a+(i?"":n)}case"invalid_value":return 1===e.values.length?`بەهاکە نادرووستە: چاوەڕوانکراوە ${m(e.values[0])} بێت`:"هەڵبژاردەی نادروست: چاوەڕوانکراوە یەکێک بێت لە "+p(e.values,"|");case"too_big":r=o(e.origin);return r?`پێویستە بە لایەنی زۆرەوە ${e.maximum.toString()} ${r.unit} `+r.verb:`پێویستە بە لایەنی زۆرەوە ${e.maximum.toString()} بێت`;case"too_small":t=o(e.origin);return t?`پێویستە بە لایەنی کەمەوە ${e.minimum.toString()} ${t.unit} `+t.verb:`پێویستە بە لایەنی کەمەوە ${e.minimum.toString()} بێت`;case"invalid_format":i=e;return"starts_with"===i.format?`دەقی نادروست: پێویستە دەستپێبکات بە "${i.prefix}"`:"ends_with"===i.format?`دەقی نادروست: پێویستە کۆتاییبێت بە "${i.suffix}"`:"includes"===i.format?`دەقی نادروست: پێویستە "${i.includes}" لەخۆبگرێت`:"regex"===i.format?`دەقی نادروست: پێویستە لەگەڵ پاتێرنی ${i.pattern} بگونجێت`:`بەهای ${s[i.format]??e.format} نادروستە`;case"not_multiple_of":return"ژمارەی نادروست: دەبێت چەند هێندە بێت بۆ "+e.divisor;case"unrecognized_keys":return"کلیلی نەناسراو: "+p(e.keys,", ");case"invalid_key":return"کلیلی نادروست لە "+e.origin;case"invalid_union":return e.options&&Array.isArray(e.options)&&0<e.options.length?"بەهای نەناسراو هەیە. بەهای چاوەڕوانکراو: "+e.options.map(e=>`'${e}'`).join(" | "):"یەکگرتنی نادروست";case"invalid_element":return e.origin+" بەهاکە نادروستە";default:return"تێکردەی نادروست"}}};var Il=()=>{const t={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"},map:{unit:"prvků",verb:"mít"}};function n(e){return t[e]??null}const i={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",credit_card:"číslo kreditní karty",jwt:"JWT",template_literal:"vstup"},a={nan:"NaN",number:"číslo",string:"řetězec",function:"funkce",array:"pole"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input),r=a[r]??r;return/^[A-Z]/.test(e.expected)?`Neplatný vstup: očekáváno instanceof ${e.expected}, obdrženo `+r:`Neplatný vstup: očekáváno ${t}, obdrženo `+r;case"invalid_value":return 1===e.values.length?"Neplatný vstup: očekáváno "+m(e.values[0]):"Neplatná možnost: očekávána jedna z hodnot "+p(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",r=n(e.origin);return r?`Hodnota je příliš velká: ${e.origin??"hodnota"} musí mít ${t}${e.maximum.toString()} `+(r.unit??"prvků"):`Hodnota je příliš velká: ${e.origin??"hodnota"} musí být `+t+e.maximum.toString();case"too_small":r=e.inclusive?">=":">",t=n(e.origin);return t?`Hodnota je příliš malá: ${e.origin??"hodnota"} musí mít ${r}${e.minimum.toString()} `+(t.unit??"prvků"):`Hodnota je příliš malá: ${e.origin??"hodnota"} musí být `+r+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Neplatný řetězec: musí začínat na "${t.prefix}"`:"ends_with"===t.format?`Neplatný řetězec: musí končit na "${t.suffix}"`:"includes"===t.format?`Neplatný řetězec: musí obsahovat "${t.includes}"`:"regex"===t.format?"Neplatný řetězec: musí odpovídat vzoru "+t.pattern:"Neplatný formát "+(i[t.format]??e.format);case"not_multiple_of":return"Neplatné číslo: musí být násobkem "+e.divisor;case"unrecognized_keys":return"Neznámé klíče: "+p(e.keys,", ");case"invalid_key":return"Neplatný klíč v "+e.origin;case"invalid_union":return"Neplatný vstup";case"invalid_element":return"Neplatná hodnota v "+e.origin;default:return"Neplatný vstup"}}};var xl=()=>{const t={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"},map:{unit:"elementer",verb:"indeholdt"}};function i(e){return t[e]??null}const a={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslæt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kreditkortnummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};return e=>{switch(e.code){case"invalid_type":var t=o[e.expected]??e.expected,r=f(e.input),r=o[r]??r;return/^[A-Z]/.test(e.expected)?`Ugyldigt input: forventede instanceof ${e.expected}, fik `+r:`Ugyldigt input: forventede ${t}, fik `+r;case"invalid_value":return 1===e.values.length?"Ugyldig værdi: forventede "+m(e.values[0]):"Ugyldigt valg: forventede en af følgende "+p(e.values,"|");case"too_big":var t=e.inclusive?"<=":"<",r=i(e.origin),n=o[e.origin]??e.origin;return r?`For stor: forventede ${n??"value"} ${r.verb} ${t} ${e.maximum.toString()} `+(r.unit??"elementer"):`For stor: forventede ${n??"value"} havde ${t} `+e.maximum.toString();case"too_small":r=e.inclusive?">=":">",n=i(e.origin),t=o[e.origin]??e.origin;return n?`For lille: forventede ${t} ${n.verb} ${r} ${e.minimum.toString()} `+n.unit:`For lille: forventede ${t} havde ${r} `+e.minimum.toString();case"invalid_format":n=e;return"starts_with"===n.format?`Ugyldig streng: skal starte med "${n.prefix}"`:"ends_with"===n.format?`Ugyldig streng: skal ende med "${n.suffix}"`:"includes"===n.format?`Ugyldig streng: skal indeholde "${n.includes}"`:"regex"===n.format?"Ugyldig streng: skal matche mønsteret "+n.pattern:"Ugyldig "+(a[n.format]??e.format);case"not_multiple_of":return"Ugyldigt tal: skal være deleligt med "+e.divisor;case"unrecognized_keys":return`${1<e.keys.length?"Ukendte nøgler":"Ukendt nøgle"}: `+p(e.keys,", ");case"invalid_key":return"Ugyldig nøgle i "+e.origin;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return"Ugyldig værdi i "+e.origin;default:return"Ugyldigt input"}}};var $l=()=>{const t={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"},map:{unit:"Elemente",verb:"zu haben"}};function n(e){return t[e]??null}const i={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",mac:"MAC-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",credit_card:"Kreditkartennummer",jwt:"JWT",template_literal:"Eingabe"},a={nan:"NaN",number:"Zahl",array:"Array"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input),r=a[r]??r;return/^[A-Z]/.test(e.expected)?`Ungültige Eingabe: erwartet instanceof ${e.expected}, erhalten `+r:`Ungültige Eingabe: erwartet ${t}, erhalten `+r;case"invalid_value":return 1===e.values.length?"Ungültige Eingabe: erwartet "+m(e.values[0]):"Ungültige Option: erwartet eine von "+p(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",r=n(e.origin);return r?`Zu groß: erwartet, dass ${e.origin??"Wert"} ${t}${e.maximum.toString()} ${r.unit??"Elemente"} hat`:`Zu groß: erwartet, dass ${e.origin??"Wert"} ${t}${e.maximum.toString()} ist`;case"too_small":r=e.inclusive?">=":">",t=n(e.origin);return t?`Zu klein: erwartet, dass ${e.origin} ${r}${e.minimum.toString()} ${t.unit} hat`:`Zu klein: erwartet, dass ${e.origin} ${r}${e.minimum.toString()} ist`;case"invalid_format":t=e;return"starts_with"===t.format?`Ungültiger String: muss mit "${t.prefix}" beginnen`:"ends_with"===t.format?`Ungültiger String: muss mit "${t.suffix}" enden`:"includes"===t.format?`Ungültiger String: muss "${t.includes}" enthalten`:"regex"===t.format?`Ungültiger String: muss dem Muster ${t.pattern} entsprechen`:"Ungültig: "+(i[t.format]??e.format);case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${e.divisor} sein`;case"unrecognized_keys":return`${1<e.keys.length?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: `+p(e.keys,", ");case"invalid_key":return"Ungültiger Schlüssel in "+e.origin;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return"Ungültiger Wert in "+e.origin;default:return"Ungültige Eingabe"}}};var El=()=>{const t={string:{unit:"χαρακτήρες",verb:"να έχει"},file:{unit:"bytes",verb:"να έχει"},array:{unit:"στοιχεία",verb:"να έχει"},set:{unit:"στοιχεία",verb:"να έχει"},map:{unit:"καταχωρήσεις",verb:"να έχει"}};function n(e){return t[e]??null}const i={regex:"είσοδος",email:"διεύθυνση email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ημερομηνία και ώρα",date:"ISO ημερομηνία",time:"ISO ώρα",duration:"ISO διάρκεια",ipv4:"διεύθυνση IPv4",ipv6:"διεύθυνση IPv6",mac:"διεύθυνση MAC",cidrv4:"εύρος IPv4",cidrv6:"εύρος IPv6",base64:"συμβολοσειρά κωδικοποιημένη σε base64",base64url:"συμβολοσειρά κωδικοποιημένη σε base64url",json_string:"συμβολοσειρά JSON",e164:"αριθμός E.164",credit_card:"αριθμός πιστωτικής κάρτας",jwt:"JWT",template_literal:"είσοδος"},a={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input),r=a[r]??r;return"string"==typeof e.expected&&/^[A-Z]/.test(e.expected)?`Μη έγκυρη είσοδος: αναμενόταν instanceof ${e.expected}, λήφθηκε `+r:`Μη έγκυρη είσοδος: αναμενόταν ${t}, λήφθηκε `+r;case"invalid_value":return 1===e.values.length?"Μη έγκυρη είσοδος: αναμενόταν "+m(e.values[0]):"Μη έγκυρη επιλογή: αναμενόταν ένα από "+p(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",r=n(e.origin);return r?`Πολύ μεγάλο: αναμενόταν ${e.origin??"τιμή"} να έχει ${t}${e.maximum.toString()} `+(r.unit??"στοιχεία"):`Πολύ μεγάλο: αναμενόταν ${e.origin??"τιμή"} να είναι `+t+e.maximum.toString();case"too_small":r=e.inclusive?">=":">",t=n(e.origin);return t?`Πολύ μικρό: αναμενόταν ${e.origin} να έχει ${r}${e.minimum.toString()} `+t.unit:`Πολύ μικρό: αναμενόταν ${e.origin} να είναι `+r+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${t.prefix}"`:"ends_with"===t.format?`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${t.suffix}"`:"includes"===t.format?`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${t.includes}"`:"regex"===t.format?"Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο "+t.pattern:"Μη έγκυρο: "+(i[t.format]??e.format);case"not_multiple_of":return"Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του "+e.divisor;case"unrecognized_keys":return`Άγνωστ${1<e.keys.length?"α":"ο"} κλειδ${1<e.keys.length?"ιά":"ί"}: `+p(e.keys,", ");case"invalid_key":return"Μη έγκυρο κλειδί στο "+e.origin;case"invalid_union":return"Μη έγκυρη είσοδος";case"invalid_element":return"Μη έγκυρη τιμή στο "+e.origin;default:return"Μη έγκυρη είσοδος"}}};var Cl=()=>{const t={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function n(e){return t[e]??null}const i={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",credit_card:"credit card number",jwt:"JWT",template_literal:"input"},r={nan:"NaN"};function a(e,t){return"number"!==e||"number"!=typeof t||Number.isFinite(t)?r[e]??e:String(t)}return e=>{switch(e.code){case"invalid_type":return`Invalid input: expected ${a(e.expected)}, received `+a(f(e.input),e.input);case"invalid_value":return 1===e.values.length?"Invalid input: expected "+m(e.values[0]):"Invalid option: expected one of "+p(e.values,"|");case"too_big":var t=e.exact?"exactly ":e.inclusive?"<=":"<",r=n(e.origin);return r?`Too big: expected ${e.origin??"value"} to have ${t}${e.maximum.toString()} `+(r.unit??"elements"):`Too big: expected ${e.origin??"value"} to be `+t+e.maximum.toString();case"too_small":r=e.exact?"exactly ":e.inclusive?">=":">",t=n(e.origin);return t?`Too small: expected ${e.origin} to have ${r}${e.minimum.toString()} `+t.unit:`Too small: expected ${e.origin} to be `+r+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Invalid string: must start with "${t.prefix}"`:"ends_with"===t.format?`Invalid string: must end with "${t.suffix}"`:"includes"===t.format?`Invalid string: must include "${t.includes}"`:"regex"===t.format?"Invalid string: must match pattern "+t.pattern:"Invalid "+(i[t.format]??e.format);case"not_multiple_of":return"Invalid number: must be a multiple of "+e.divisor;case"unrecognized_keys":return`Unrecognized key${1<e.keys.length?"s":""}: `+p(e.keys,", ");case"invalid_key":return"Invalid key in "+e.origin;case"invalid_union":return e.options&&Array.isArray(e.options)&&0<e.options.length?"Invalid discriminator value. Expected "+e.options.map(e=>`'${e}'`).join(" | "):!1===e.inclusive?"Invalid input: more than one option matched":"Invalid input";case"invalid_element":return"Invalid value in "+e.origin;default:return"Invalid input"}}};function Ol(){return{localeError:Cl()}}var Nl=()=>{const t={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"},map:{unit:"elementojn",verb:"havi"}};function n(e){return t[e]??null}const i={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",mac:"MAC-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",credit_card:"kreditkarta numero",jwt:"JWT",template_literal:"enigo"},a={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input),r=a[r]??r;return/^[A-Z]/.test(e.expected)?`Nevalida enigo: atendiĝis instanceof ${e.expected}, riceviĝis `+r:`Nevalida enigo: atendiĝis ${t}, riceviĝis `+r;case"invalid_value":return 1===e.values.length?"Nevalida enigo: atendiĝis "+m(e.values[0]):"Nevalida opcio: atendiĝis unu el "+p(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",r=n(e.origin);return r?`Tro granda: atendiĝis ke ${e.origin??"valoro"} havu ${t}${e.maximum.toString()} `+(r.unit??"elementojn"):`Tro granda: atendiĝis ke ${e.origin??"valoro"} havu `+t+e.maximum.toString();case"too_small":r=e.inclusive?">=":">",t=n(e.origin);return t?`Tro malgranda: atendiĝis ke ${e.origin} havu ${r}${e.minimum.toString()} `+t.unit:`Tro malgranda: atendiĝis ke ${e.origin} estu `+r+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Nevalida karaktraro: devas komenciĝi per "${t.prefix}"`:"ends_with"===t.format?`Nevalida karaktraro: devas finiĝi per "${t.suffix}"`:"includes"===t.format?`Nevalida karaktraro: devas inkluzivi "${t.includes}"`:"regex"===t.format?"Nevalida karaktraro: devas kongrui kun la modelo "+t.pattern:"Nevalida "+(i[t.format]??e.format);case"not_multiple_of":return"Nevalida nombro: devas esti oblo de "+e.divisor;case"unrecognized_keys":return`Nekonata${1<e.keys.length?"j":""} ŝlosilo${1<e.keys.length?"j":""}: `+p(e.keys,", ");case"invalid_key":return"Nevalida ŝlosilo en "+e.origin;case"invalid_union":return"Nevalida enigo";case"invalid_element":return"Nevalida valoro en "+e.origin;default:return"Nevalida enigo"}}};var Al=()=>{const t={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function i(e){return t[e]??null}const a={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",mac:"dirección MAC",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",credit_card:"número de tarjeta de crédito",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol:"símbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacío",never:"nunca",unknown:"desconocido",any:"cualquiera"};return e=>{switch(e.code){case"invalid_type":var t=o[e.expected]??e.expected,r=f(e.input),r=o[r]??r;return/^[A-Z]/.test(e.expected)?`Entrada inválida: se esperaba instanceof ${e.expected}, recibido `+r:`Entrada inválida: se esperaba ${t}, recibido `+r;case"invalid_value":return 1===e.values.length?"Entrada inválida: se esperaba "+m(e.values[0]):"Opción inválida: se esperaba una de "+p(e.values,"|");case"too_big":var t=e.inclusive?"<=":"<",r=i(e.origin),n=o[e.origin]??e.origin;return r?`Demasiado grande: se esperaba que ${n??"valor"} tuviera ${t}${e.maximum.toString()} `+(r.unit??"elementos"):`Demasiado grande: se esperaba que ${n??"valor"} fuera `+t+e.maximum.toString();case"too_small":r=e.inclusive?">=":">",n=i(e.origin),t=o[e.origin]??e.origin;return n?`Demasiado pequeño: se esperaba que ${t} tuviera ${r}${e.minimum.toString()} `+n.unit:`Demasiado pequeño: se esperaba que ${t} fuera `+r+e.minimum.toString();case"invalid_format":n=e;return"starts_with"===n.format?`Cadena inválida: debe comenzar con "${n.prefix}"`:"ends_with"===n.format?`Cadena inválida: debe terminar en "${n.suffix}"`:"includes"===n.format?`Cadena inválida: debe incluir "${n.includes}"`:"regex"===n.format?"Cadena inválida: debe coincidir con el patrón "+n.pattern:"Inválido "+(a[n.format]??e.format);case"not_multiple_of":return"Número inválido: debe ser múltiplo de "+e.divisor;case"unrecognized_keys":return`Llave${1<e.keys.length?"s":""} desconocida${1<e.keys.length?"s":""}: `+p(e.keys,", ");case"invalid_key":return"Llave inválida en "+(o[e.origin]??e.origin);case"invalid_union":return"Entrada inválida";case"invalid_element":return"Valor inválido en "+(o[e.origin]??e.origin);default:return"Entrada inválida"}}};var Dl=()=>{const t={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"},map:{unit:"آیتم",verb:"داشته باشد"}};function n(e){return t[e]??null}const i={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",mac:"MAC آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",credit_card:"شماره کارت اعتباری",jwt:"JWT",template_literal:"ورودی"},a={nan:"NaN",number:"عدد",array:"آرایه"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input),r=a[r]??r;return/^[A-Z]/.test(e.expected)?`ورودی نامعتبر: می‌بایست instanceof ${e.expected} می‌بود، ${r} دریافت شد`:`ورودی نامعتبر: می‌بایست ${t} می‌بود، ${r} دریافت شد`;case"invalid_value":return 1===e.values.length?`ورودی نامعتبر: می‌بایست ${m(e.values[0])} می‌بود`:`گزینه نامعتبر: می‌بایست یکی از ${p(e.values,"|")} می‌بود`;case"too_big":t=e.inclusive?"<=":"<",r=n(e.origin);return r?`خیلی بزرگ: ${e.origin??"مقدار"} باید ${t}${e.maximum.toString()} ${r.unit??"عنصر"} باشد`:`خیلی بزرگ: ${e.origin??"مقدار"} باید ${t}${e.maximum.toString()} باشد`;case"too_small":r=e.inclusive?">=":">",t=n(e.origin);return t?`خیلی کوچک: ${e.origin} باید ${r}${e.minimum.toString()} ${t.unit} باشد`:`خیلی کوچک: ${e.origin} باید ${r}${e.minimum.toString()} باشد`;case"invalid_format":t=e;return"starts_with"===t.format?`رشته نامعتبر: باید با "${t.prefix}" شروع شود`:"ends_with"===t.format?`رشته نامعتبر: باید با "${t.suffix}" تمام شود`:"includes"===t.format?`رشته نامعتبر: باید شامل "${t.includes}" باشد`:"regex"===t.format?`رشته نامعتبر: باید با الگوی ${t.pattern} مطابقت داشته باشد`:(i[t.format]??e.format)+" نامعتبر";case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${e.divisor} باشد`;case"unrecognized_keys":return`کلید${1<e.keys.length?"های":""} ناشناس: `+p(e.keys,", ");case"invalid_key":return"کلید ناشناس در "+e.origin;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return"مقدار نامعتبر در "+e.origin;default:return"ورودی نامعتبر"}}};var Pl=()=>{const t={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},map:{unit:"alkiota",subject:"kuvauksen"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function n(e){return t[e]??null}const i={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",mac:"MAC-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",credit_card:"luottokortin numero",jwt:"JWT",template_literal:"templaattimerkkijono"},a={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input),r=a[r]??r;return/^[A-Z]/.test(e.expected)?`Virheellinen tyyppi: odotettiin instanceof ${e.expected}, oli `+r:`Virheellinen tyyppi: odotettiin ${t}, oli `+r;case"invalid_value":return 1===e.values.length?"Virheellinen syöte: täytyy olla "+m(e.values[0]):"Virheellinen valinta: täytyy olla yksi seuraavista: "+p(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",r=n(e.origin);return r?(`Liian suuri: ${r.subject} täytyy olla ${t}${e.maximum.toString()} `+r.unit).trim():"Liian suuri: arvon täytyy olla "+t+e.maximum.toString();case"too_small":r=e.inclusive?">=":">",t=n(e.origin);return t?(`Liian pieni: ${t.subject} täytyy olla ${r}${e.minimum.toString()} `+t.unit).trim():"Liian pieni: arvon täytyy olla "+r+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Virheellinen syöte: täytyy alkaa "${t.prefix}"`:"ends_with"===t.format?`Virheellinen syöte: täytyy loppua "${t.suffix}"`:"includes"===t.format?`Virheellinen syöte: täytyy sisältää "${t.includes}"`:"regex"===t.format?"Virheellinen syöte: täytyy vastata säännöllistä lauseketta "+t.pattern:"Virheellinen "+(i[t.format]??e.format);case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${e.divisor} monikerta`;case"unrecognized_keys":return`${1<e.keys.length?"Tuntemattomat avaimet":"Tuntematon avain"}: `+p(e.keys,", ");case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen syöte"}}};var Tl=()=>{const t={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function n(e){return t[e]??null}const i={regex:"expression régulière",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",mac:"adresse MAC",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne de caractères encodée en base64",base64url:"chaîne de caractères encodée en base64url",json_string:"chaîne de caractères JSON",e164:"numéro au format E.164",credit_card:"numéro de carte de crédit",jwt:"JWT",template_literal:"entrée"},a={string:"chaîne de caractères",number:"nombre",int:"entier",boolean:"booléen",bigint:"grand entier",symbol:"symbole",undefined:"indéfini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"record",map:"map",set:"ensemble",file:"fichier",nonoptional:"non optionnel",nan:"NaN",function:"fonction"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input),r=a[r]??r;return/^[A-Z]/.test(e.expected)?`Entrée invalide : instance de ${e.expected} attendu, ${r} reçu`:`Entrée invalide : ${t} attendu, ${r} reçu`;case"invalid_value":return 1===e.values.length?`Entrée invalide : ${m(e.values[0])} attendu`:`Option invalide : une valeur parmi ${p(e.values,"|")} attendue`;case"too_big":t=e.inclusive?"<=":"<",r=n(e.origin);return r?`Trop grand : ${a[e.origin]??"valeur"} doit ${r.verb} ${t}${e.maximum.toString()} `+(r.unit??"élément(s)"):`Trop grand : ${a[e.origin]??"valeur"} doit être `+t+e.maximum.toString();case"too_small":r=e.inclusive?">=":">",t=n(e.origin);return t?`Trop petit : ${a[e.origin]??"valeur"} doit ${t.verb} ${r}${e.minimum.toString()} `+t.unit:`Trop petit : ${a[e.origin]??"valeur"} doit être `+r+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Chaîne de caractères invalide : doit commencer par "${t.prefix}"`:"ends_with"===t.format?`Chaîne de caractères invalide : doit se terminer par "${t.suffix}"`:"includes"===t.format?`Chaîne de caractères invalide : doit inclure "${t.includes}"`:"regex"===t.format?"Chaîne de caractères invalide : doit correspondre au motif "+t.pattern:`${i[t.format]??e.format} invalide`;case"not_multiple_of":return"Nombre invalide : doit être un multiple de "+e.divisor;case"unrecognized_keys":return`Clé${1<e.keys.length?"s":""} non reconnue${1<e.keys.length?"s":""} : `+p(e.keys,", ");case"invalid_key":return"Clé invalide dans "+e.origin;case"invalid_union":return"Entrée invalide";case"invalid_element":return"Valeur invalide dans "+e.origin;default:return"Entrée invalide"}}};var zl=()=>{const t={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"},map:{unit:"éléments",verb:"avoir"}};function n(e){return t[e]??null}const i={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",mac:"adresse MAC",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",credit_card:"numéro de carte de crédit",jwt:"JWT",template_literal:"entrée"},a={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input),r=a[r]??r;return/^[A-Z]/.test(e.expected)?`Entrée invalide : attendu instanceof ${e.expected}, reçu `+r:`Entrée invalide : attendu ${t}, reçu `+r;case"invalid_value":return 1===e.values.length?"Entrée invalide : attendu "+m(e.values[0]):"Option invalide : attendu l'une des valeurs suivantes "+p(e.values,"|");case"too_big":t=e.inclusive?"≤":"<",r=n(e.origin);return r?`Trop grand : attendu que ${e.origin??"la valeur"} ait ${t}${e.maximum.toString()} `+r.unit:`Trop grand : attendu que ${e.origin??"la valeur"} soit `+t+e.maximum.toString();case"too_small":r=e.inclusive?"≥":">",t=n(e.origin);return t?`Trop petit : attendu que ${e.origin} ait ${r}${e.minimum.toString()} `+t.unit:`Trop petit : attendu que ${e.origin} soit `+r+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Chaîne invalide : doit commencer par "${t.prefix}"`:"ends_with"===t.format?`Chaîne invalide : doit se terminer par "${t.suffix}"`:"includes"===t.format?`Chaîne invalide : doit inclure "${t.includes}"`:"regex"===t.format?"Chaîne invalide : doit correspondre au motif "+t.pattern:`${i[t.format]??e.format} invalide`;case"not_multiple_of":return"Nombre invalide : doit être un multiple de "+e.divisor;case"unrecognized_keys":return`Clé${1<e.keys.length?"s":""} non reconnue${1<e.keys.length?"s":""} : `+p(e.keys,", ");case"invalid_key":return"Clé invalide dans "+e.origin;case"invalid_union":return"Entrée invalide";case"invalid_element":return"Valeur invalide dans "+e.origin;default:return"Entrée invalide"}}};var jl=()=>{const t={string:{unit:"અક્ષર",verb:"હોવા જોઈએ"},file:{unit:"બાયટ",verb:"હોવા જોઈએ"},array:{unit:"આઇટમ",verb:"હોવા જોઈએ"},set:{unit:"આઇટમ",verb:"હોવા જોઈએ"},map:{unit:"એન્ટ્રી",verb:"હોવા જોઈએ"}};function n(e){return t[e]??null}const i={regex:"ઇનપુટ",email:"ઈમેઇલ એડ્રેસ",url:"URL",emoji:"ઇમોજી",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO તારીખ અને સમય",date:"ISO તારીખ",time:"ISO સમય",duration:"ISO અવધિ",ipv4:"IPv4 એડ્રેસ",ipv6:"IPv6 એડ્રેસ",mac:"MAC એડ્રેસ",cidrv4:"IPv4 શ્રેણી",cidrv6:"IPv6 શ્રેણી",base64:"base64-એન્કોડેડ સ્ટ્રિંગ",base64url:"base64url-એન્કોડેડ સ્ટ્રિંગ",json_string:"JSON સ્ટ્રિંગ",e164:"E.164 નંબર",credit_card:"ક્રેડિટ કાર્ડ નંબર",jwt:"JWT",template_literal:"ઇનપુટ"},a={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input);return`અમાન્ય ઇનપુટ: અપેક્ષિત ${t}, પ્રાપ્ત `+(a[r]??r);case"invalid_value":return 1===e.values.length?"અમાન્ય ઇનપુટ: અપેક્ષિત "+m(e.values[0]):`અમાન્ય વિકલ્પ: ${p(e.values," | ")} માધ્યમથી એક અપેક્ષિત`;case"too_big":t=e.inclusive?"<=":"<",r=n(e.origin);return r?`ખૂબ મોટું: ${e.origin??"મૂલ્ય"} ${t}${e.maximum.toString()} ${r.unit??"એલિમેન્ટ"} હોવા જોઈએ`:`ખૂબ મોટું: ${e.origin??"મૂલ્ય"} ${t}${e.maximum.toString()} હોવું જોઈએ`;case"too_small":r=e.inclusive?">=":">",t=n(e.origin);return t?`ખૂબ નાનું: ${e.origin} ${r}${e.minimum.toString()} ${t.unit} હોવા જોઈએ`:`ખૂબ નાનું: ${e.origin} ${r}${e.minimum.toString()} હોવું જોઈએ`;case"invalid_format":t=e;return"starts_with"===t.format?`અમાન્ય સ્ટ્રિંગ: "${t.prefix}" થી શરૂ થવું જોઈએ`:"ends_with"===t.format?`અમાન્ય સ્ટ્રિંગ: "${t.suffix}" પર સમાપ્ત થવું જોઈએ`:"includes"===t.format?`અમાન્ય સ્ટ્રિંગ: "${t.includes}" શામેલ હોવું જોઈએ`:"regex"===t.format?`અમાન્ય સ્ટ્રિંગ: પેટર્ન ${t.pattern} સાથે મેળ ખાવું જોઈએ`:"અમાન્ય "+(i[t.format]??e.format);case"not_multiple_of":return`અમાન્ય નંબર: ${e.divisor} નો ગુણાંક હોવો જોઈએ`;case"unrecognized_keys":return`ઓળખી શકાતા નહીં તે કી${1<e.keys.length?"ઓ":""}: `+p(e.keys,", ");case"invalid_key":return e.origin+" માં અમાન્ય કી";case"invalid_union":return e.options&&Array.isArray(e.options)&&0<e.options.length?"અમાન્ય ડિસ્ક્રિમિનેટર મૂલ્ય. અપેક્ષિત "+e.options.map(e=>`'${e}'`).join(" | "):"અમાન્ય ઇનપુટ";case"invalid_element":return e.origin+" માં અમાન્ય મૂલ્ય";default:return"અમાન્ય ઇનપુટ"}}};var Ll=()=>{const a={string:{label:"מחרוזת",gender:"f"},number:{label:"מספר",gender:"m"},boolean:{label:"ערך בוליאני",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"תאריך",gender:"m"},array:{label:"מערך",gender:"m"},object:{label:"אובייקט",gender:"m"},null:{label:"ערך ריק (null)",gender:"m"},undefined:{label:"ערך לא מוגדר (undefined)",gender:"m"},symbol:{label:"סימבול (Symbol)",gender:"m"},function:{label:"פונקציה",gender:"f"},map:{label:"מפה (Map)",gender:"f"},set:{label:"קבוצה (Set)",gender:"f"},file:{label:"קובץ",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"ערך לא ידוע",gender:"m"},value:{label:"ערך",gender:"m"}},t={string:{unit:"תווים",shortLabel:"קצר",longLabel:"ארוך"},file:{unit:"בייטים",shortLabel:"קטן",longLabel:"גדול"},array:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},set:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},number:{unit:"",shortLabel:"קטן",longLabel:"גדול"}},r=e=>e?a[e]:void 0,o=e=>{var t=r(e);return t?t.label:e??a.unknown.label},s=e=>"ה"+o(e),l=e=>{return"f"===(r(e)?.gender??"m")?"צריכה להיות":"צריך להיות"},u=e=>e?t[e]??null:null,c={regex:{label:"קלט",gender:"m"},email:{label:"כתובת אימייל",gender:"f"},url:{label:"כתובת רשת",gender:"f"},emoji:{label:"אימוג'י",gender:"m"},uuid:{label:"UUID",gender:"m"},uuidv4:{label:"UUIDv4",gender:"m"},uuidv6:{label:"UUIDv6",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"תאריך וזמן ISO",gender:"m"},date:{label:"תאריך ISO",gender:"m"},time:{label:"זמן ISO",gender:"m"},duration:{label:"משך זמן ISO",gender:"m"},ipv4:{label:"כתובת IPv4",gender:"f"},ipv6:{label:"כתובת IPv6",gender:"f"},mac:{label:"כתובת MAC",gender:"f"},cidrv4:{label:"טווח IPv4",gender:"m"},cidrv6:{label:"טווח IPv6",gender:"m"},base64:{label:"מחרוזת בבסיס 64",gender:"f"},base64url:{label:"מחרוזת בבסיס 64 לכתובות רשת",gender:"f"},json_string:{label:"מחרוזת JSON",gender:"f"},e164:{label:"מספר E.164",gender:"m"},credit_card:{label:"מספר כרטיס אשראי",gender:"m"},jwt:{label:"JWT",gender:"m"},template_literal:{label:"קלט",gender:"m"},ends_with:{label:"קלט",gender:"m"},includes:{label:"קלט",gender:"m"},lowercase:{label:"קלט",gender:"m"},starts_with:{label:"קלט",gender:"m"},uppercase:{label:"קלט",gender:"m"}},d={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":var t=e.expected,t=d[t??""]??o(t),r=f(e.input),r=d[r]??a[r]?.label??r;return/^[A-Z]/.test(e.expected)?`קלט לא תקין: צריך להיות instanceof ${e.expected}, התקבל `+r:`קלט לא תקין: צריך להיות ${t}, התקבל `+r;case"invalid_value":return 1===e.values.length?"ערך לא תקין: הערך חייב להיות "+m(e.values[0]):(t=e.values.map(e=>m(e)),2===e.values.length?`ערך לא תקין: האפשרויות המתאימות הן ${t[0]} או `+t[1]:(r=t[t.length-1],`ערך לא תקין: האפשרויות המתאימות הן ${t.slice(0,-1).join(", ")} או `+r));case"too_big":t=u(e.origin),r=s(e.origin??"value");return"string"===e.origin?(`${t?.longLabel??"ארוך"} מדי: ${r} צריכה להכיל ${e.maximum.toString()} ${t?.unit??""} `+(e.inclusive?"או פחות":"לכל היותר")).trim():"number"===e.origin?`גדול מדי: ${r} צריך להיות `+(e.inclusive?"קטן או שווה ל-"+e.maximum:"קטן מ-"+e.maximum):"array"===e.origin||"set"===e.origin?(`גדול מדי: ${r} ${"set"===e.origin?"צריכה":"צריך"} להכיל `+(e.inclusive?""+e.maximum+` ${t?.unit??""} או פחות`:`פחות מ-${e.maximum} `+(t?.unit??""))).trim():(n=e.inclusive?"<=":"<",i=l(e.origin??"value"),t?.unit?`${t.longLabel} מדי: ${r} ${i} ${n}${e.maximum.toString()} `+t.unit:`${t?.longLabel??"גדול"} מדי: ${r} ${i} `+n+e.maximum.toString());case"too_small":var n,i,t=u(e.origin),r=s(e.origin??"value");return"string"===e.origin?(`${t?.shortLabel??"קצר"} מדי: ${r} צריכה להכיל ${e.minimum.toString()} ${t?.unit??""} `+(e.inclusive?"או יותר":"לפחות")).trim():"number"===e.origin?`קטן מדי: ${r} צריך להיות `+(e.inclusive?"גדול או שווה ל-"+e.minimum:"גדול מ-"+e.minimum):"array"===e.origin||"set"===e.origin?(i="set"===e.origin?"צריכה":"צריך",1===e.minimum&&e.inclusive?(e.origin,`קטן מדי: ${r} ${i} להכיל לפחות פריט אחד`):(`קטן מדי: ${r} ${i} להכיל `+(e.inclusive?""+e.minimum+` ${t?.unit??""} או יותר`:`יותר מ-${e.minimum} `+(t?.unit??""))).trim()):(n=e.inclusive?">=":">",i=l(e.origin??"value"),t?.unit?`${t.shortLabel} מדי: ${r} ${i} ${n}${e.minimum.toString()} `+t.unit:`${t?.shortLabel??"קטן"} מדי: ${r} ${i} `+n+e.minimum.toString());case"invalid_format":t=e;return"starts_with"===t.format?`המחרוזת חייבת להתחיל ב "${t.prefix}"`:"ends_with"===t.format?`המחרוזת חייבת להסתיים ב "${t.suffix}"`:"includes"===t.format?`המחרוזת חייבת לכלול "${t.includes}"`:"regex"===t.format?"המחרוזת חייבת להתאים לתבנית "+t.pattern:((r=c[t.format])?.label??t.format)+" לא "+("f"===(r?.gender??"m")?"תקינה":"תקין");case"not_multiple_of":return"מספר לא תקין: חייב להיות מכפלה של "+e.divisor;case"unrecognized_keys":return`מפתח${1<e.keys.length?"ות":""} לא מזוה${1<e.keys.length?"ים":"ה"}: `+p(e.keys,", ");case"invalid_key":return"שדה לא תקין באובייקט";case"invalid_union":return"קלט לא תקין";case"invalid_element":return"ערך לא תקין ב"+s(e.origin??"array");default:return"קלט לא תקין"}}};var Ul=()=>{const t={string:{unit:"अक्षर",verb:"रखने के लिए"},file:{unit:"बाइट्स",verb:"रखने के लिए"},array:{unit:"तत्व",verb:"रखने के लिए"},set:{unit:"तत्व",verb:"रखने के लिए"},map:{unit:"प्रविष्टियाँ",verb:"रखने के लिए"}};function n(e){return t[e]??null}const i={regex:"इनपुट",email:"ईमेल पता",url:"URL",emoji:"इमोजी",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO तिथि और समय",date:"ISO तिथि",time:"ISO समय",duration:"ISO अवधि",ipv4:"IPv4 पता",ipv6:"IPv6 पता",mac:"MAC पता",cidrv4:"IPv4 श्रेणी",cidrv6:"IPv6 श्रेणी",base64:"Base64-एन्कोडेड स्ट्रिंग",base64url:"Base64URL-एन्कोडेड स्ट्रिंग",json_string:"JSON स्ट्रिंग",e164:"E.164 संख्या",credit_card:"क्रेडिट कार्ड संख्या",jwt:"JWT",template_literal:"इनपुट"},a={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input);return`अमान्य इनपुट: अपेक्षित ${t}, प्राप्त `+(a[r]??r);case"invalid_value":return 1===e.values.length?"अमान्य इनपुट: अपेक्षित "+m(e.values[0]):"अमान्य विकल्प: अपेक्षित मानों में से एक "+p(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",r=n(e.origin);return r?`बहुत बड़ा: अपेक्षित था कि ${e.origin??"मान"} में ${t}${e.maximum} ${r.unit} हों`:`बहुत बड़ा: अपेक्षित था कि ${e.origin??"मान"} ${t}${e.maximum} हो`;case"too_small":r=e.inclusive?">=":">",t=n(e.origin);return t?`बहुत छोटा: अपेक्षित था कि ${e.origin} में ${r}${e.minimum} ${t.unit} हों`:`बहुत छोटा: अपेक्षित था कि ${e.origin} ${r}${e.minimum} हो`;case"invalid_format":t=e;return"starts_with"===t.format?`अमान्य स्ट्रिंग: "${t.prefix}" से शुरू होना चाहिए`:"ends_with"===t.format?`अमान्य स्ट्रिंग: "${t.suffix}" पर समाप्त होना चाहिए`:"includes"===t.format?`अमान्य स्ट्रिंग: इसमें "${t.includes}" शामिल होना चाहिए`:"regex"===t.format?`अमान्य स्ट्रिंग: पैटर्न ${t.pattern} से मेल खाना चाहिए`:"अमान्य "+(i[t.format]??e.format);case"not_multiple_of":return`अमान्य संख्या: यह ${e.divisor} का गुणज होना चाहिए`;case"unrecognized_keys":return`अपरिचित कुंजी${1<e.keys.length?"याँ":""}: `+p(e.keys,", ");case"invalid_key":return`अमान्य कुंजी: ${e.origin} में`;case"invalid_union":return e.options&&Array.isArray(e.options)&&0<e.options.length?"अमान्य डिस्क्रिमिनेटर मान: अपेक्षित "+e.options.map(e=>`'${e}'`).join(" | "):"अमान्य इनपुट";case"invalid_element":return`अमान्य मान: ${e.origin} में`;default:return"अमान्य इनपुट"}}};var Rl=()=>{const t={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function i(e){return t[e]??null}const a={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",credit_card:"broj kreditne kartice",jwt:"JWT",template_literal:"unos"},o={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return e=>{switch(e.code){case"invalid_type":var t=o[e.expected]??e.expected,r=f(e.input),r=o[r]??r;return/^[A-Z]/.test(e.expected)?`Neispravan unos: očekuje se instanceof ${e.expected}, a primljeno je `+r:`Neispravan unos: očekuje se ${t}, a primljeno je `+r;case"invalid_value":return 1===e.values.length?"Neispravna vrijednost: očekivano "+m(e.values[0]):"Neispravna opcija: očekivano jedno od "+p(e.values,"|");case"too_big":var t=e.inclusive?"<=":"<",r=i(e.origin),n=o[e.origin]??e.origin;return r?`Preveliko: očekivano da ${n??"vrijednost"} ima ${t}${e.maximum.toString()} `+(r.unit??"elemenata"):`Preveliko: očekivano da ${n??"vrijednost"} bude `+t+e.maximum.toString();case"too_small":r=e.inclusive?">=":">",n=i(e.origin),t=o[e.origin]??e.origin;return n?`Premalo: očekivano da ${t} ima ${r}${e.minimum.toString()} `+n.unit:`Premalo: očekivano da ${t} bude `+r+e.minimum.toString();case"invalid_format":n=e;return"starts_with"===n.format?`Neispravan tekst: mora započinjati s "${n.prefix}"`:"ends_with"===n.format?`Neispravan tekst: mora završavati s "${n.suffix}"`:"includes"===n.format?`Neispravan tekst: mora sadržavati "${n.includes}"`:"regex"===n.format?"Neispravan tekst: mora odgovarati uzorku "+n.pattern:"Neispravna "+(a[n.format]??e.format);case"not_multiple_of":return"Neispravan broj: mora biti višekratnik od "+e.divisor;case"unrecognized_keys":return`Neprepoznat${1<e.keys.length?"i ključevi":" ključ"}: `+p(e.keys,", ");case"invalid_key":return"Neispravan ključ u "+(o[e.origin]??e.origin);case"invalid_union":return"Neispravan unos";case"invalid_element":return"Neispravna vrijednost u "+(o[e.origin]??e.origin);default:return"Neispravan unos"}}};var Ml=()=>{const t={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"},map:{unit:"elem",verb:"legyen"}};function n(e){return t[e]??null}const i={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",mac:"MAC cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",credit_card:"hitelkártyaszám",jwt:"JWT",template_literal:"bemenet"},a={nan:"NaN",number:"szám",array:"tömb"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input),r=a[r]??r;return/^[A-Z]/.test(e.expected)?`Érvénytelen bemenet: a várt érték instanceof ${e.expected}, a kapott érték `+r:`Érvénytelen bemenet: a várt érték ${t}, a kapott érték `+r;case"invalid_value":return 1===e.values.length?"Érvénytelen bemenet: a várt érték "+m(e.values[0]):"Érvénytelen opció: valamelyik érték várt "+p(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",r=n(e.origin);return r?`Túl nagy: ${e.origin??"érték"} mérete túl nagy ${t}${e.maximum.toString()} `+(r.unit??"elem"):`Túl nagy: a bemeneti érték ${e.origin??"érték"} túl nagy: `+t+e.maximum.toString();case"too_small":r=e.inclusive?">=":">",t=n(e.origin);return t?`Túl kicsi: a bemeneti érték ${e.origin} mérete túl kicsi ${r}${e.minimum.toString()} `+t.unit:`Túl kicsi: a bemeneti érték ${e.origin} túl kicsi `+r+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Érvénytelen string: "${t.prefix}" értékkel kell kezdődnie`:"ends_with"===t.format?`Érvénytelen string: "${t.suffix}" értékkel kell végződnie`:"includes"===t.format?`Érvénytelen string: "${t.includes}" értéket kell tartalmaznia`:"regex"===t.format?`Érvénytelen string: ${t.pattern} mintának kell megfelelnie`:"Érvénytelen "+(i[t.format]??e.format);case"not_multiple_of":return`Érvénytelen szám: ${e.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${1<e.keys.length?"s":""}: `+p(e.keys,", ");case"invalid_key":return"Érvénytelen kulcs "+e.origin;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return"Érvénytelen érték: "+e.origin;default:return"Érvénytelen bemenet"}}};function Bl(e,t,r){return 1===Math.abs(e)?t:r}function Fl(e){var t;return e?(t=e[e.length-1],e+(["ա","ե","ը","ի","ո","ու","օ"].includes(t)?"ն":"ը")):""}var Zl=()=>{const t={string:{unit:{one:"նշան",many:"նշաններ"},verb:"ունենալ"},file:{unit:{one:"բայթ",many:"բայթեր"},verb:"ունենալ"},array:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"},set:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"},map:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"}};function n(e){return t[e]??null}const i={regex:"մուտք",email:"էլ. հասցե",url:"URL",emoji:"էմոջի",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ամսաթիվ և ժամ",date:"ISO ամսաթիվ",time:"ISO ժամ",duration:"ISO տևողություն",ipv4:"IPv4 հասցե",ipv6:"IPv6 հասցե",mac:"MAC հասցե",cidrv4:"IPv4 միջակայք",cidrv6:"IPv6 միջակայք",base64:"base64 ձևաչափով տող",base64url:"base64url ձևաչափով տող",json_string:"JSON տող",e164:"E.164 համար",credit_card:"կրեդիտ քարտի համար",jwt:"JWT",template_literal:"մուտք"},a={nan:"NaN",number:"թիվ",array:"զանգված"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input),r=a[r]??r;return/^[A-Z]/.test(e.expected)?`Սխալ մուտքագրում․ սպասվում էր instanceof ${e.expected}, ստացվել է `+r:`Սխալ մուտքագրում․ սպասվում էր ${t}, ստացվել է `+r;case"invalid_value":return 1===e.values.length?"Սխալ մուտքագրում․ սպասվում էր "+m(e.values[1]):"Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ "+p(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",r=n(e.origin);return r?(r=Bl(Number(e.maximum),r.unit.one,r.unit.many),`Չափազանց մեծ արժեք․ սպասվում է, որ ${Fl(e.origin??"արժեք")} կունենա ${t}${e.maximum.toString()} `+r):`Չափազանց մեծ արժեք․ սպասվում է, որ ${Fl(e.origin??"արժեք")} լինի `+t+e.maximum.toString();case"too_small":var r=e.inclusive?">=":">",t=n(e.origin);return t?(t=Bl(Number(e.minimum),t.unit.one,t.unit.many),`Չափազանց փոքր արժեք․ սպասվում է, որ ${Fl(e.origin)} կունենա ${r}${e.minimum.toString()} `+t):`Չափազանց փոքր արժեք․ սպասվում է, որ ${Fl(e.origin)} լինի `+r+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Սխալ տող․ պետք է սկսվի "${t.prefix}"-ով`:"ends_with"===t.format?`Սխալ տող․ պետք է ավարտվի "${t.suffix}"-ով`:"includes"===t.format?`Սխալ տող․ պետք է պարունակի "${t.includes}"`:"regex"===t.format?`Սխալ տող․ պետք է համապատասխանի ${t.pattern} ձևաչափին`:"Սխալ "+(i[t.format]??e.format);case"not_multiple_of":return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${e.divisor}-ի`;case"unrecognized_keys":return`Չճանաչված բանալի${1<e.keys.length?"ներ":""}. `+p(e.keys,", ");case"invalid_key":return`Սխալ բանալի ${Fl(e.origin)}-ում`;case"invalid_union":return"Սխալ մուտքագրում";case"invalid_element":return`Սխալ արժեք ${Fl(e.origin)}-ում`;default:return"Սխալ մուտքագրում"}}};var Vl=()=>{const t={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"},map:{unit:"item",verb:"memiliki"}};function n(e){return t[e]??null}const i={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",mac:"alamat MAC",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",credit_card:"nomor kartu kredit",jwt:"JWT",template_literal:"input"},a={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input),r=a[r]??r;return/^[A-Z]/.test(e.expected)?`Input tidak valid: diharapkan instanceof ${e.expected}, diterima `+r:`Input tidak valid: diharapkan ${t}, diterima `+r;case"invalid_value":return 1===e.values.length?"Input tidak valid: diharapkan "+m(e.values[0]):"Pilihan tidak valid: diharapkan salah satu dari "+p(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",r=n(e.origin);return r?`Terlalu besar: diharapkan ${e.origin??"value"} memiliki ${t}${e.maximum.toString()} `+(r.unit??"elemen"):`Terlalu besar: diharapkan ${e.origin??"value"} menjadi `+t+e.maximum.toString();case"too_small":r=e.inclusive?">=":">",t=n(e.origin);return t?`Terlalu kecil: diharapkan ${e.origin} memiliki ${r}${e.minimum.toString()} `+t.unit:`Terlalu kecil: diharapkan ${e.origin} menjadi `+r+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`String tidak valid: harus dimulai dengan "${t.prefix}"`:"ends_with"===t.format?`String tidak valid: harus berakhir dengan "${t.suffix}"`:"includes"===t.format?`String tidak valid: harus menyertakan "${t.includes}"`:"regex"===t.format?"String tidak valid: harus sesuai pola "+t.pattern:`${i[t.format]??e.format} tidak valid`;case"not_multiple_of":return"Angka tidak valid: harus kelipatan dari "+e.divisor;case"unrecognized_keys":return`Kunci tidak dikenali ${1<e.keys.length?"s":""}: `+p(e.keys,", ");case"invalid_key":return"Kunci tidak valid di "+e.origin;case"invalid_union":return"Input tidak valid";case"invalid_element":return"Nilai tidak valid di "+e.origin;default:return"Input tidak valid"}}};var Gl=()=>{const t={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"},map:{unit:"hluti",verb:"að hafa"}};function n(e){return t[e]??null}const i={regex:"gildi",email:"netfang",url:"vefslóð",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og tími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 tölugildi",credit_card:"kreditkortanúmer",jwt:"JWT",template_literal:"gildi"},a={nan:"NaN",number:"númer",array:"fylki"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input),r=a[r]??r;return/^[A-Z]/.test(e.expected)?`Rangt gildi: Þú slóst inn ${r} þar sem á að vera instanceof `+e.expected:`Rangt gildi: Þú slóst inn ${r} þar sem á að vera `+t;case"invalid_value":return 1===e.values.length?"Rangt gildi: gert ráð fyrir "+m(e.values[0]):"Ógilt val: má vera eitt af eftirfarandi "+p(e.values,"|");case"too_big":r=e.inclusive?"<=":"<",t=n(e.origin);return t?`Of stórt: gert er ráð fyrir að ${e.origin??"gildi"} hafi ${r}${e.maximum.toString()} `+(t.unit??"hluti"):`Of stórt: gert er ráð fyrir að ${e.origin??"gildi"} sé `+r+e.maximum.toString();case"too_small":t=e.inclusive?">=":">",r=n(e.origin);return r?`Of lítið: gert er ráð fyrir að ${e.origin} hafi ${t}${e.minimum.toString()} `+r.unit:`Of lítið: gert er ráð fyrir að ${e.origin} sé `+t+e.minimum.toString();case"invalid_format":r=e;return"starts_with"===r.format?`Ógildur strengur: verður að byrja á "${r.prefix}"`:"ends_with"===r.format?`Ógildur strengur: verður að enda á "${r.suffix}"`:"includes"===r.format?`Ógildur strengur: verður að innihalda "${r.includes}"`:"regex"===r.format?"Ógildur strengur: verður að fylgja mynstri "+r.pattern:"Rangt "+(i[r.format]??e.format);case"not_multiple_of":return"Röng tala: verður að vera margfeldi af "+e.divisor;case"unrecognized_keys":return`Óþekkt ${1<e.keys.length?"ir lyklar":"ur lykill"}: `+p(e.keys,", ");case"invalid_key":return"Rangur lykill í "+e.origin;case"invalid_union":return"Rangt gildi";case"invalid_element":return"Rangt gildi í "+e.origin;default:return"Rangt gildi"}}};var Kl=()=>{const t={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"},map:{unit:"elementi",verb:"avere"}};function n(e){return t[e]??null}const i={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",mac:"indirizzo MAC",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",credit_card:"numero di carta di credito",jwt:"JWT",template_literal:"input"},a={nan:"NaN",number:"numero",array:"vettore"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input),r=a[r]??r;return/^[A-Z]/.test(e.expected)?`Input non valido: atteso instanceof ${e.expected}, ricevuto `+r:`Input non valido: atteso ${t}, ricevuto `+r;case"invalid_value":return 1===e.values.length?"Input non valido: atteso "+m(e.values[0]):"Opzione non valida: atteso uno tra "+p(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",r=n(e.origin);return r?`Troppo grande: ${e.origin??"valore"} deve avere ${t}${e.maximum.toString()} `+(r.unit??"elementi"):`Troppo grande: ${e.origin??"valore"} deve essere `+t+e.maximum.toString();case"too_small":r=e.inclusive?">=":">",t=n(e.origin);return t?`Troppo piccolo: ${e.origin} deve avere ${r}${e.minimum.toString()} `+t.unit:`Troppo piccolo: ${e.origin} deve essere `+r+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Stringa non valida: deve iniziare con "${t.prefix}"`:"ends_with"===t.format?`Stringa non valida: deve terminare con "${t.suffix}"`:"includes"===t.format?`Stringa non valida: deve includere "${t.includes}"`:"regex"===t.format?"Stringa non valida: deve corrispondere al pattern "+t.pattern:"Input non valido: "+(i[t.format]??e.format);case"not_multiple_of":return"Numero non valido: deve essere un multiplo di "+e.divisor;case"unrecognized_keys":return`Chiav${1<e.keys.length?"i":"e"} non riconosciut${1<e.keys.length?"e":"a"}: `+p(e.keys,", ");case"invalid_key":return"Chiave non valida in "+e.origin;case"invalid_union":return"Input non valido";case"invalid_element":return"Valore non valido in "+e.origin;default:return"Input non valido"}}};var ql=()=>{const t={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"},map:{unit:"要素",verb:"である"}};function n(e){return t[e]??null}const i={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",mac:"MACアドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",credit_card:"クレジットカード番号",jwt:"JWT",template_literal:"入力値"},a={nan:"NaN",number:"数値",array:"配列"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input),r=a[r]??r;return/^[A-Z]/.test(e.expected)?`無効な入力: instanceof ${e.expected}が期待されましたが、${r}が入力されました`:`無効な入力: ${t}が期待されましたが、${r}が入力されました`;case"invalid_value":return 1===e.values.length?`無効な入力: ${m(e.values[0])}が期待されました`:`無効な選択: ${p(e.values,"、")}のいずれかである必要があります`;case"too_big":t=e.inclusive?"以下である":"より小さい",r=n(e.origin);return r?`大きすぎる値: ${e.origin??"値"}は${e.maximum.toString()}${r.unit??"要素"}${t}必要があります`:`大きすぎる値: ${e.origin??"値"}は${e.maximum.toString()}${t}必要があります`;case"too_small":r=e.inclusive?"以上である":"より大きい",t=n(e.origin);return t?`小さすぎる値: ${e.origin}は${e.minimum.toString()}${t.unit}${r}必要があります`:`小さすぎる値: ${e.origin}は${e.minimum.toString()}${r}必要があります`;case"invalid_format":t=e;return"starts_with"===t.format?`無効な文字列: "${t.prefix}"で始まる必要があります`:"ends_with"===t.format?`無効な文字列: "${t.suffix}"で終わる必要があります`:"includes"===t.format?`無効な文字列: "${t.includes}"を含む必要があります`:"regex"===t.format?`無効な文字列: パターン${t.pattern}に一致する必要があります`:"無効な"+(i[t.format]??e.format);case"not_multiple_of":return`無効な数値: ${e.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${1<e.keys.length?"群":""}: `+p(e.keys,"、");case"invalid_key":return e.origin+"内の無効なキー";case"invalid_union":return"無効な入力";case"invalid_element":return e.origin+"内の無効な値";default:return"無効な入力"}}};var Hl=()=>{const t={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},map:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function n(e){return t[e]??null}const i={regex:"შეყვანა",email:"ელ-ფოსტის მისამართი",url:"URL",emoji:"ემოჯი",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"თარიღი-დრო",date:"თარიღი",time:"დრო",duration:"ხანგრძლივობა",ipv4:"IPv4 მისამართი",ipv6:"IPv6 მისამართი",mac:"MAC მისამართი",cidrv4:"IPv4 დიაპაზონი",cidrv6:"IPv6 დიაპაზონი",base64:"base64-კოდირებული ველი",base64url:"base64url-კოდირებული ველი",json_string:"JSON ველი",e164:"E.164 ნომერი",credit_card:"საკრედიტო ბარათის ნომერი",jwt:"JWT",template_literal:"შეყვანა"},a={nan:"NaN",number:"რიცხვი",string:"ველი",boolean:"ბულეანი",function:"ფუნქცია",array:"მასივი"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input),r=a[r]??r;return/^[A-Z]/.test(e.expected)?`არასწორი შეყვანა: მოსალოდნელი instanceof ${e.expected}, მიღებული `+r:`არასწორი შეყვანა: მოსალოდნელი ${t}, მიღებული `+r;case"invalid_value":return 1===e.values.length?"არასწორი შეყვანა: მოსალოდნელი "+m(e.values[0]):`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${p(e.values,"|")}-დან`;case"too_big":t=e.inclusive?"<=":"<",r=n(e.origin);return r?`ზედმეტად დიდი: მოსალოდნელი ${e.origin??"მნიშვნელობა"} ${r.verb} ${t}${e.maximum.toString()} `+r.unit:`ზედმეტად დიდი: მოსალოდნელი ${e.origin??"მნიშვნელობა"} იყოს `+t+e.maximum.toString();case"too_small":r=e.inclusive?">=":">",t=n(e.origin);return t?`ზედმეტად პატარა: მოსალოდნელი ${e.origin} ${t.verb} ${r}${e.minimum.toString()} `+t.unit:`ზედმეტად პატარა: მოსალოდნელი ${e.origin} იყოს `+r+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`არასწორი ველი: უნდა იწყებოდეს "${t.prefix}"-ით`:"ends_with"===t.format?`არასწორი ველი: უნდა მთავრდებოდეს "${t.suffix}"-ით`:"includes"===t.format?`არასწორი ველი: უნდა შეიცავდეს "${t.includes}"-ს`:"regex"===t.format?"არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს "+t.pattern:"არასწორი "+(i[t.format]??e.format);case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${e.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${1<e.keys.length?"ები":"ი"}: `+p(e.keys,", ");case"invalid_key":return`არასწორი გასაღები ${e.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${e.origin}-ში`;default:return"არასწორი შეყვანა"}}};var Jl=()=>{const t={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"},map:{unit:"ធាតុ",verb:"គួរមាន"}};function n(e){return t[e]??null}const i={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",mac:"អាសយដ្ឋាន MAC",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",credit_card:"លេខប័ណ្ណឥណទាន",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"},a={nan:"NaN",number:"លេខ",array:"អារេ (Array)",null:"គ្មានតម្លៃ (null)"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input),r=a[r]??r;return/^[A-Z]/.test(e.expected)?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${e.expected} ប៉ុន្តែទទួលបាន `+r:`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${t} ប៉ុន្តែទទួលបាន `+r;case"invalid_value":return 1===e.values.length?"ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ "+m(e.values[0]):"ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម "+p(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",r=n(e.origin);return r?`ធំពេក៖ ត្រូវការ ${e.origin??"តម្លៃ"} ${t} ${e.maximum.toString()} `+(r.unit??"ធាតុ"):`ធំពេក៖ ត្រូវការ ${e.origin??"តម្លៃ"} ${t} `+e.maximum.toString();case"too_small":r=e.inclusive?">=":">",t=n(e.origin);return t?`តូចពេក៖ ត្រូវការ ${e.origin} ${r} ${e.minimum.toString()} `+t.unit:`តូចពេក៖ ត្រូវការ ${e.origin} ${r} `+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${t.prefix}"`:"ends_with"===t.format?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${t.suffix}"`:"includes"===t.format?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${t.includes}"`:"regex"===t.format?"ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ "+t.pattern:"មិនត្រឹមត្រូវ៖ "+(i[t.format]??e.format);case"not_multiple_of":return"លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ "+e.divisor;case"unrecognized_keys":return"រកឃើញសោមិនស្គាល់៖ "+p(e.keys,", ");case"invalid_key":return"សោមិនត្រឹមត្រូវនៅក្នុង "+e.origin;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return"ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង "+e.origin;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function Wl(){return{localeError:Jl()}}var Xl=()=>{const t={string:{unit:"ಅಕ್ಷರಗಳು",verb:"ಹೊಂದಲು"},file:{unit:"ಬೈಟ್‌ಗಳು",verb:"ಹೊಂದಲು"},array:{unit:"ವಸ್ತುಗಳು",verb:"ಹೊಂದಲು"},set:{unit:"ವಸ್ತುಗಳು",verb:"ಹೊಂದಲು"},map:{unit:"entries",verb:"ಹೊಂದಲು"}};function n(e){return t[e]??null}const i={regex:"ಇನ್ಪುಟ್",email:"email ವಿಳಾಸ",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ದಿನಾಂಕದ ಸಮಯ",date:"ISO ದಿನಾಂಕ",time:"ISO ಸಮಯ",duration:"ISO ಅವಧಿ",ipv4:"IPv4 ವಿಳಾಸ",ipv6:"IPv6 ವಿಳಾಸ",mac:"MAC ವಿಳಾಸ",cidrv4:"IPv4 ವ್ಯಾಪ್ತಿಯ",cidrv6:"IPv6 ವ್ಯಾಪ್ತಿಯ",base64:"base64-encodedಸ್ಟ್ರಿಂಗ್",base64url:"base64url-encodedಸ್ಟ್ರಿಂಗ್",json_string:"JSONಸ್ಟ್ರಿಂಗ್",e164:"E.164 ಸಂಖ್ಯೆ",credit_card:"ಕ್ರೆಡಿಟ್ ಕಾರ್ಡ್ ಸಂಖ್ಯೆ",jwt:"JWT",template_literal:"ಇನ್ಪುಟ್"},a={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input);return`ಅಮಾನ್ಯ ಇನ್‌ಪುಟ್: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${t}, ಸ್ವೀಕರಿಸಿದನು `+(a[r]??r);case"invalid_value":return 1===e.values.length?"ಅಮಾನ್ಯ ಇನ್‌ಪುಟ್: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ "+m(e.values[0]):"ಅಮಾನ್ಯ ಆಯ್ಕೆ: ಇವುಗಳಲ್ಲಿ ಒಂದನ್ನು ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ "+p(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",r=n(e.origin);return r?`ತುಂಬಾ ದೊಡ್ಡದು: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${e.origin??"value"} ಹೊಂದಲು ${t}${e.maximum.toString()} `+(r.unit??"ಅಂಶಗಳು"):`ತುಂಬಾ ದೊಡ್ಡದು: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${e.origin??"value"} ಎಂದು `+t+e.maximum.toString();case"too_small":r=e.inclusive?">=":">",t=n(e.origin);return t?`ತುಂಬಾ ಚಿಕ್ಕದು: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${e.origin} ಹೊಂದಲು ${r}${e.minimum.toString()} `+t.unit:`ತುಂಬಾ ಚಿಕ್ಕದು: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${e.origin} ಎಂದು `+r+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`ಅಮಾನ್ಯವಾದ ಸ್ಟ್ರಿಂಗ್: ಇದರೊಂದಿಗೆ ಪ್ರಾರಂಭಿಸಬೇಕು "${t.prefix}"`:"ends_with"===t.format?`ಅಮಾನ್ಯವಾದ ಸ್ಟ್ರಿಂಗ್: ಇದರೊಂದಿಗೆ ಕೊನೆಗೊಳ್ಳಬೇಕು "${t.suffix}"`:"includes"===t.format?`ಅಮಾನ್ಯ ಸ್ಟ್ರಿಂಗ್: ಒಳಗೊಂಡಿರಬೇಕು "${t.includes}"`:"regex"===t.format?"ಅಮಾನ್ಯವಾದ ಸ್ಟ್ರಿಂಗ್: ಮಾದರಿಗೆ ಹೊಂದಿಕೆಯಾಗಬೇಕು "+t.pattern:"ಅಮಾನ್ಯ "+(i[t.format]??e.format);case"not_multiple_of":return"ಅಮಾನ್ಯ ಸಂಖ್ಯೆ: ಬಹುಸಂಖ್ಯೆಯಾಗಿರಬೇಕು "+e.divisor;case"unrecognized_keys":return`ಗುರುತಿಸಲಾಗದ ಕೀ ${1<e.keys.length?"s":""}: `+p(e.keys,", ");case"invalid_key":return"ಅಮಾನ್ಯವಾದ ಕೀ ಇನ್ "+e.origin;case"invalid_union":return e.options&&Array.isArray(e.options)&&0<e.options.length?"ಅಮಾನ್ಯ ತಾರತಮ್ಯ ಮೌಲ್ಯ. ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ "+e.options.map(e=>`'${e}'`).join(" | "):"ಅಮಾನ್ಯ ಇನ್‌ಪುಟ್";case"invalid_element":return"ರಲ್ಲಿ ಅಮಾನ್ಯ ಮೌಲ್ಯ "+e.origin;default:return"ಅಮಾನ್ಯ ಇನ್‌ಪುಟ್"}}};var Yl=()=>{const t={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"},map:{unit:"개",verb:"to have"}};function a(e){return t[e]??null}const o={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",mac:"MAC 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",credit_card:"신용카드 번호",jwt:"JWT",template_literal:"입력"},s={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":var t=s[e.expected]??e.expected,r=f(e.input),r=s[r]??r;return/^[A-Z]/.test(e.expected)?`잘못된 입력: 예상 타입은 instanceof ${e.expected}, 받은 타입은 ${r}입니다`:`잘못된 입력: 예상 타입은 ${t}, 받은 타입은 ${r}입니다`;case"invalid_value":return 1===e.values.length?`잘못된 입력: 값은 ${m(e.values[0])} 이어야 합니다`:`잘못된 옵션: ${p(e.values,"또는 ")} 중 하나여야 합니다`;case"too_big":var t=e.inclusive?"이하":"미만",r="미만"==t?"이어야 합니다":"여야 합니다",n=a(e.origin),i=n?.unit??"요소";return n?`${e.origin??"값"}이 너무 큽니다: ${e.maximum.toString()}${i} `+t+r:`${e.origin??"값"}이 너무 큽니다: ${e.maximum.toString()} `+t+r;case"too_small":n=e.inclusive?"이상":"초과",i="이상"==n?"이어야 합니다":"여야 합니다",t=a(e.origin),r=t?.unit??"요소";return t?`${e.origin??"값"}이 너무 작습니다: ${e.minimum.toString()}${r} `+n+i:`${e.origin??"값"}이 너무 작습니다: ${e.minimum.toString()} `+n+i;case"invalid_format":t=e;return"starts_with"===t.format?`잘못된 문자열: "${t.prefix}"(으)로 시작해야 합니다`:"ends_with"===t.format?`잘못된 문자열: "${t.suffix}"(으)로 끝나야 합니다`:"includes"===t.format?`잘못된 문자열: "${t.includes}"을(를) 포함해야 합니다`:"regex"===t.format?`잘못된 문자열: 정규식 ${t.pattern} 패턴과 일치해야 합니다`:"잘못된 "+(o[t.format]??e.format);case"not_multiple_of":return`잘못된 숫자: ${e.divisor}의 배수여야 합니다`;case"unrecognized_keys":return"인식할 수 없는 키: "+p(e.keys,", ");case"invalid_key":return"잘못된 키: "+e.origin;case"invalid_union":return"잘못된 입력";case"invalid_element":return"잘못된 값: "+e.origin;default:return"잘못된 입력"}}};var Ql=e=>e.charAt(0).toUpperCase()+e.slice(1);function eu(e){var e=Math.abs(e),t=e%10,e=e%100;return 11<=e&&e<=19||0==t?"many":1==t?"one":"few"}var tu=()=>{const i={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi būti ne ilgesnė kaip",notInclusive:"turi būti trumpesnė kaip"},bigger:{inclusive:"turi būti ne trumpesnė kaip",notInclusive:"turi būti ilgesnė kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi būti ne didesnis kaip",notInclusive:"turi būti mažesnis kaip"},bigger:{inclusive:"turi būti ne mažesnis kaip",notInclusive:"turi būti didesnis kaip"}}},array:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}},set:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}}};function a(e,t,r,n){e=i[e]??null;return null===e?e:{unit:e.unit[t],verb:e.verb[n][r?"inclusive":"notInclusive"]}}const o={regex:"įvestis",email:"el. pašto adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukmė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",mac:"MAC adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",credit_card:"kredito kortelės numeris",jwt:"JWT",template_literal:"įvestis"},s={nan:"NaN",number:"skaičius",bigint:"sveikasis skaičius",string:"eilutė",boolean:"loginė reikšmė",undefined:"neapibrėžta reikšmė",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulinė reikšmė"};return e=>{switch(e.code){case"invalid_type":var t=s[e.expected]??e.expected,r=f(e.input),r=s[r]??r;return/^[A-Z]/.test(e.expected)?`Gautas tipas ${r}, o tikėtasi - instanceof `+e.expected:`Gautas tipas ${r}, o tikėtasi - `+t;case"invalid_value":return 1===e.values.length?"Privalo būti "+m(e.values[0]):`Privalo būti vienas iš ${p(e.values,"|")} pasirinkimų`;case"too_big":r=s[e.origin]??e.origin,t=a(e.origin,eu(Number(e.maximum)),e.inclusive??!1,"smaller");return t?.verb?`${Ql(r??e.origin??"reikšmė")} ${t.verb} ${e.maximum.toString()} `+(t.unit??"elementų"):(n=e.inclusive?"ne didesnis kaip":"mažesnis kaip",`${Ql(r??e.origin??"reikšmė")} turi būti ${n} ${e.maximum.toString()} `+t?.unit);case"too_small":var r=s[e.origin]??e.origin,n=a(e.origin,eu(Number(e.minimum)),e.inclusive??!1,"bigger");return n?.verb?`${Ql(r??e.origin??"reikšmė")} ${n.verb} ${e.minimum.toString()} `+(n.unit??"elementų"):(t=e.inclusive?"ne mažesnis kaip":"didesnis kaip",`${Ql(r??e.origin??"reikšmė")} turi būti ${t} ${e.minimum.toString()} `+n?.unit);case"invalid_format":r=e;return"starts_with"===r.format?`Eilutė privalo prasidėti "${r.prefix}"`:"ends_with"===r.format?`Eilutė privalo pasibaigti "${r.suffix}"`:"includes"===r.format?`Eilutė privalo įtraukti "${r.includes}"`:"regex"===r.format?"Eilutė privalo atitikti "+r.pattern:"Neteisingas "+(o[r.format]??e.format);case"not_multiple_of":return`Skaičius privalo būti ${e.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${1<e.keys.length?"i":"as"} rakt${1<e.keys.length?"ai":"as"}: `+p(e.keys,", ");case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":t=s[e.origin]??e.origin;return Ql(t??e.origin??"reikšmė")+" turi klaidingą įvestį";default:return"Klaidinga įvestis"}}};var ru=()=>{const t={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"},map:{unit:"ставки",verb:"да имаат"}};function n(e){return t[e]??null}const i={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",mac:"MAC адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",credit_card:"број на кредитна картичка",jwt:"JWT",template_literal:"внес"},a={nan:"NaN",number:"број",array:"низа"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input),r=a[r]??r;return/^[A-Z]/.test(e.expected)?`Грешен внес: се очекува instanceof ${e.expected}, примено `+r:`Грешен внес: се очекува ${t}, примено `+r;case"invalid_value":return 1===e.values.length?"Invalid input: expected "+m(e.values[0]):"Грешана опција: се очекува една "+p(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",r=n(e.origin);return r?`Премногу голем: се очекува ${e.origin??"вредноста"} да има ${t}${e.maximum.toString()} `+(r.unit??"елементи"):`Премногу голем: се очекува ${e.origin??"вредноста"} да биде `+t+e.maximum.toString();case"too_small":r=e.inclusive?">=":">",t=n(e.origin);return t?`Премногу мал: се очекува ${e.origin} да има ${r}${e.minimum.toString()} `+t.unit:`Премногу мал: се очекува ${e.origin} да биде `+r+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Неважечка низа: мора да започнува со "${t.prefix}"`:"ends_with"===t.format?`Неважечка низа: мора да завршува со "${t.suffix}"`:"includes"===t.format?`Неважечка низа: мора да вклучува "${t.includes}"`:"regex"===t.format?"Неважечка низа: мора да одгоара на патернот "+t.pattern:"Invalid "+(i[t.format]??e.format);case"not_multiple_of":return"Грешен број: мора да биде делив со "+e.divisor;case"unrecognized_keys":return`${1<e.keys.length?"Непрепознаени клучеви":"Непрепознаен клуч"}: `+p(e.keys,", ");case"invalid_key":return"Грешен клуч во "+e.origin;case"invalid_union":return"Грешен внес";case"invalid_element":return"Грешна вредност во "+e.origin;default:return"Грешен внес"}}};var nu=()=>{const t={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"},map:{unit:"elemen",verb:"mempunyai"}};function n(e){return t[e]??null}const i={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",mac:"alamat MAC",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",credit_card:"nombor kad kredit",jwt:"JWT",template_literal:"input"},a={nan:"NaN",number:"nombor"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input),r=a[r]??r;return/^[A-Z]/.test(e.expected)?`Input tidak sah: dijangka instanceof ${e.expected}, diterima `+r:`Input tidak sah: dijangka ${t}, diterima `+r;case"invalid_value":return 1===e.values.length?"Input tidak sah: dijangka "+m(e.values[0]):"Pilihan tidak sah: dijangka salah satu daripada "+p(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",r=n(e.origin);return r?`Terlalu besar: dijangka ${e.origin??"nilai"} ${r.verb} ${t}${e.maximum.toString()} `+(r.unit??"elemen"):`Terlalu besar: dijangka ${e.origin??"nilai"} adalah `+t+e.maximum.toString();case"too_small":r=e.inclusive?">=":">",t=n(e.origin);return t?`Terlalu kecil: dijangka ${e.origin} ${t.verb} ${r}${e.minimum.toString()} `+t.unit:`Terlalu kecil: dijangka ${e.origin} adalah `+r+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`String tidak sah: mesti bermula dengan "${t.prefix}"`:"ends_with"===t.format?`String tidak sah: mesti berakhir dengan "${t.suffix}"`:"includes"===t.format?`String tidak sah: mesti mengandungi "${t.includes}"`:"regex"===t.format?"String tidak sah: mesti sepadan dengan corak "+t.pattern:`${i[t.format]??e.format} tidak sah`;case"not_multiple_of":return"Nombor tidak sah: perlu gandaan "+e.divisor;case"unrecognized_keys":return"Kunci tidak dikenali: "+p(e.keys,", ");case"invalid_key":return"Kunci tidak sah dalam "+e.origin;case"invalid_union":return"Input tidak sah";case"invalid_element":return"Nilai tidak sah dalam "+e.origin;default:return"Input tidak sah"}}};var iu=()=>{const t={string:{unit:"अक्षर",verb:"हुनुपर्छ"},file:{unit:"बाइट",verb:"हुनुपर्छ"},array:{unit:"तत्व",verb:"हुनुपर्छ"},set:{unit:"तत्व",verb:"हुनुपर्छ"},map:{unit:"प्रविष्टि",verb:"हुनुपर्छ"}};function n(e){return t[e]??null}const i={regex:"इनपुट",email:"इमेल ठेगाना",url:"URL",emoji:"इमोजी",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO मिति र समय",date:"ISO मिति",time:"ISO समय",duration:"ISO अवधि",ipv4:"IPv4 ठेगाना",ipv6:"IPv6 ठेगाना",mac:"MAC ठेगाना",cidrv4:"IPv4 दायरा",cidrv6:"IPv6 दायरा",base64:"base64-इन्कोड गरिएको स्ट्रिङ",base64url:"base64url-इन्कोड गरिएको स्ट्रिङ",json_string:"JSON स्ट्रिङ",e164:"E.164 नम्बर",credit_card:"क्रेडिट कार्ड नम्बर",jwt:"JWT",template_literal:"इनपुट"},a={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input);return`अमान्य इनपुट: अपेक्षित ${t}, प्राप्त `+(a[r]??r);case"invalid_value":return 1===e.values.length?"अमान्य इनपुट: अपेक्षित "+m(e.values[0]):"अमान्य विकल्प: अपेक्षित मानहरू मध्ये एक "+p(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",r=n(e.origin);return r?`धेरै ठूलो: ${e.origin??"मान"} मा ${t}${e.maximum.toString()} ${r.unit} `+r.verb:`धेरै ठूलो: ${e.origin??"मान"} ${t}${e.maximum.toString()} हुनुपर्छ`;case"too_small":r=e.inclusive?">=":">",t=n(e.origin);return t?`धेरै सानो: ${e.origin} मा ${r}${e.minimum.toString()} ${t.unit} `+t.verb:`धेरै सानो: ${e.origin} ${r}${e.minimum.toString()} हुनुपर्छ`;case"invalid_format":t=e;return"starts_with"===t.format?`अमान्य स्ट्रिङ: "${t.prefix}" बाट सुरु हुनुपर्छ`:"ends_with"===t.format?`अमान्य स्ट्रिङ: "${t.suffix}" मा समाप्त हुनुपर्छ`:"includes"===t.format?`अमान्य स्ट्रिङ: "${t.includes}" समावेश हुनुपर्छ`:"regex"===t.format?`अमान्य स्ट्रिङ: ढाँचा ${t.pattern} सँग मेल खानुपर्छ`:"अमान्य "+(i[t.format]??e.format);case"not_multiple_of":return`अमान्य संख्या: ${e.divisor} को गुणज हुनुपर्छ`;case"unrecognized_keys":return`अपरिचित कुञ्जी${1<e.keys.length?"हरू":""}: `+p(e.keys,", ");case"invalid_key":return`अमान्य कुञ्जी: ${e.origin} मा`;case"invalid_union":return e.options&&Array.isArray(e.options)&&0<e.options.length?"अमान्य डिस्क्रिमिनेटर मान: अपेक्षित "+e.options.map(e=>`'${e}'`).join(" | "):"अमान्य इनपुट";case"invalid_element":return`अमान्य मान: ${e.origin} मा`;default:return"अमान्य इनपुट"}}};var au=()=>{const t={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"},map:{unit:"elementen",verb:"heeft"}};function i(e){return t[e]??null}const a={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",mac:"MAC-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",credit_card:"creditcardnummer",jwt:"JWT",template_literal:"invoer"},o={nan:"NaN",number:"getal"};return e=>{switch(e.code){case"invalid_type":var t=o[e.expected]??e.expected,r=f(e.input),r=o[r]??r;return/^[A-Z]/.test(e.expected)?`Ongeldige invoer: verwacht instanceof ${e.expected}, ontving `+r:`Ongeldige invoer: verwacht ${t}, ontving `+r;case"invalid_value":return 1===e.values.length?"Ongeldige invoer: verwacht "+m(e.values[0]):"Ongeldige optie: verwacht één van "+p(e.values,"|");case"too_big":var t=e.inclusive?"<=":"<",r=i(e.origin),n="date"===e.origin?"laat":"string"===e.origin?"lang":"groot";return r?`Te ${n}: verwacht dat ${e.origin??"waarde"} ${t}${e.maximum.toString()} ${r.unit??"elementen"} `+r.verb:`Te ${n}: verwacht dat ${e.origin??"waarde"} ${t}${e.maximum.toString()} is`;case"too_small":r=e.inclusive?">=":">",n=i(e.origin),t="date"===e.origin?"vroeg":"string"===e.origin?"kort":"klein";return n?`Te ${t}: verwacht dat ${e.origin} ${r}${e.minimum.toString()} ${n.unit} `+n.verb:`Te ${t}: verwacht dat ${e.origin} ${r}${e.minimum.toString()} is`;case"invalid_format":n=e;return"starts_with"===n.format?`Ongeldige tekst: moet met "${n.prefix}" beginnen`:"ends_with"===n.format?`Ongeldige tekst: moet op "${n.suffix}" eindigen`:"includes"===n.format?`Ongeldige tekst: moet "${n.includes}" bevatten`:"regex"===n.format?"Ongeldige tekst: moet overeenkomen met patroon "+n.pattern:"Ongeldig: "+(a[n.format]??e.format);case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${e.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${1<e.keys.length?"s":""}: `+p(e.keys,", ");case"invalid_key":return"Ongeldige key in "+e.origin;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return"Ongeldige waarde in "+e.origin;default:return"Ongeldige invoer"}}};var ou=()=>{const t={string:{unit:"teikn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"element",verb:"å innehalde"},set:{unit:"element",verb:"å innehalde"},map:{unit:"element",verb:"å innehalde"}};function n(e){return t[e]??null}const i={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varigheit",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkoda streng",base64url:"base64url-enkoda streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kredittkortnummer",jwt:"JWT",template_literal:"input"},a={nan:"NaN",number:"tal",array:"liste"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input),r=a[r]??r;return/^[A-Z]/.test(e.expected)?`Ugyldig input: forventa instanceof ${e.expected}, fekk `+r:`Ugyldig input: forventa ${t}, fekk `+r;case"invalid_value":return 1===e.values.length?"Ugyldig verdi: forventa "+m(e.values[0]):"Ugyldig val: forventa eitt av "+p(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",r=n(e.origin);return r?`For stor(t): forventa ${e.origin??"value"} til å ha ${t}${e.maximum.toString()} `+(r.unit??"element"):`For stor(t): forventa ${e.origin??"value"} til å ha `+t+e.maximum.toString();case"too_small":r=e.inclusive?">=":">",t=n(e.origin);return t?`For lite(n): forventa ${e.origin} til å ha ${r}${e.minimum.toString()} `+t.unit:`For lite(n): forventa ${e.origin} til å ha `+r+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Ugyldig streng: må starte med "${t.prefix}"`:"ends_with"===t.format?`Ugyldig streng: må slutte med "${t.suffix}"`:"includes"===t.format?`Ugyldig streng: må innehalde "${t.includes}"`:"regex"===t.format?"Ugyldig streng: må matche mønsteret "+t.pattern:"Ugyldig "+(i[t.format]??e.format);case"not_multiple_of":return"Ugyldig tal: må vere eit multiplum av "+e.divisor;case"unrecognized_keys":return`${1<e.keys.length?"Ukjende nøklar":"Ukjend nøkkel"}: `+p(e.keys,", ");case"invalid_key":return"Ugyldig nøkkel i "+e.origin;case"invalid_union":return"Ugyldig input";case"invalid_element":return"Ugyldig verdi i "+e.origin;default:return"Ugyldig input"}}};var su=()=>{const t={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"},map:{unit:"elementer",verb:"å inneholde"}};function n(e){return t[e]??null}const i={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kredittkortnummer",jwt:"JWT",template_literal:"input"},a={nan:"NaN",number:"tall",array:"liste"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input),r=a[r]??r;return/^[A-Z]/.test(e.expected)?`Ugyldig input: forventet instanceof ${e.expected}, fikk `+r:`Ugyldig input: forventet ${t}, fikk `+r;case"invalid_value":return 1===e.values.length?"Ugyldig verdi: forventet "+m(e.values[0]):"Ugyldig valg: forventet en av "+p(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",r=n(e.origin);return r?`For stor(t): forventet ${e.origin??"value"} til å ha ${t}${e.maximum.toString()} `+(r.unit??"elementer"):`For stor(t): forventet ${e.origin??"value"} til å ha `+t+e.maximum.toString();case"too_small":r=e.inclusive?">=":">",t=n(e.origin);return t?`For lite(n): forventet ${e.origin} til å ha ${r}${e.minimum.toString()} `+t.unit:`For lite(n): forventet ${e.origin} til å ha `+r+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Ugyldig streng: må starte med "${t.prefix}"`:"ends_with"===t.format?`Ugyldig streng: må ende med "${t.suffix}"`:"includes"===t.format?`Ugyldig streng: må inneholde "${t.includes}"`:"regex"===t.format?"Ugyldig streng: må matche mønsteret "+t.pattern:"Ugyldig "+(i[t.format]??e.format);case"not_multiple_of":return"Ugyldig tall: må være et multiplum av "+e.divisor;case"unrecognized_keys":return`${1<e.keys.length?"Ukjente nøkler":"Ukjent nøkkel"}: `+p(e.keys,", ");case"invalid_key":return"Ugyldig nøkkel i "+e.origin;case"invalid_union":return"Ugyldig input";case"invalid_element":return"Ugyldig verdi i "+e.origin;default:return"Ugyldig input"}}};var lu=()=>{const t={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"},map:{unit:"unsur",verb:"olmalıdır"}};function n(e){return t[e]??null}const i={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",mac:"MAC nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",credit_card:"i'tibâr kartı numarası",jwt:"JWT",template_literal:"giren"},a={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input),r=a[r]??r;return/^[A-Z]/.test(e.expected)?`Fâsit giren: umulan instanceof ${e.expected}, alınan `+r:`Fâsit giren: umulan ${t}, alınan `+r;case"invalid_value":return 1===e.values.length?"Fâsit giren: umulan "+m(e.values[0]):"Fâsit tercih: mûteberler "+p(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",r=n(e.origin);return r?`Fazla büyük: ${e.origin??"value"}, ${t}${e.maximum.toString()} ${r.unit??"elements"} sahip olmalıydı.`:`Fazla büyük: ${e.origin??"value"}, ${t}${e.maximum.toString()} olmalıydı.`;case"too_small":r=e.inclusive?">=":">",t=n(e.origin);return t?`Fazla küçük: ${e.origin}, ${r}${e.minimum.toString()} ${t.unit} sahip olmalıydı.`:`Fazla küçük: ${e.origin}, ${r}${e.minimum.toString()} olmalıydı.`;case"invalid_format":t=e;return"starts_with"===t.format?`Fâsit metin: "${t.prefix}" ile başlamalı.`:"ends_with"===t.format?`Fâsit metin: "${t.suffix}" ile bitmeli.`:"includes"===t.format?`Fâsit metin: "${t.includes}" ihtivâ etmeli.`:"regex"===t.format?`Fâsit metin: ${t.pattern} nakşına uymalı.`:"Fâsit "+(i[t.format]??e.format);case"not_multiple_of":return`Fâsit sayı: ${e.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${1<e.keys.length?"s":""}: `+p(e.keys,", ");case"invalid_key":return e.origin+" için tanınmayan anahtar var.";case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return e.origin+" için tanınmayan kıymet var.";default:return"Kıymet tanınamadı."}}};var uu=()=>{const t={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"},map:{unit:"توکي",verb:"ولري"}};function n(e){return t[e]??null}const i={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",mac:"د MAC پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",credit_card:"د کریډیټ کارت شمیره",jwt:"JWT",template_literal:"ورودي"},a={nan:"NaN",number:"عدد",array:"ارې"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input),r=a[r]??r;return/^[A-Z]/.test(e.expected)?`ناسم ورودي: باید instanceof ${e.expected} وای, مګر ${r} ترلاسه شو`:`ناسم ورودي: باید ${t} وای, مګر ${r} ترلاسه شو`;case"invalid_value":return 1===e.values.length?`ناسم ورودي: باید ${m(e.values[0])} وای`:`ناسم انتخاب: باید یو له ${p(e.values,"|")} څخه وای`;case"too_big":t=e.inclusive?"<=":"<",r=n(e.origin);return r?`ډیر لوی: ${e.origin??"ارزښت"} باید ${t}${e.maximum.toString()} ${r.unit??"عنصرونه"} ولري`:`ډیر لوی: ${e.origin??"ارزښت"} باید ${t}${e.maximum.toString()} وي`;case"too_small":r=e.inclusive?">=":">",t=n(e.origin);return t?`ډیر کوچنی: ${e.origin} باید ${r}${e.minimum.toString()} ${t.unit} ولري`:`ډیر کوچنی: ${e.origin} باید ${r}${e.minimum.toString()} وي`;case"invalid_format":t=e;return"starts_with"===t.format?`ناسم متن: باید د "${t.prefix}" سره پیل شي`:"ends_with"===t.format?`ناسم متن: باید د "${t.suffix}" سره پای ته ورسيږي`:"includes"===t.format?`ناسم متن: باید "${t.includes}" ولري`:"regex"===t.format?`ناسم متن: باید د ${t.pattern} سره مطابقت ولري`:(i[t.format]??e.format)+" ناسم دی";case"not_multiple_of":return`ناسم عدد: باید د ${e.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${1<e.keys.length?"کلیډونه":"کلیډ"}: `+p(e.keys,", ");case"invalid_key":return`ناسم کلیډ په ${e.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${e.origin} کې`;default:return"ناسمه ورودي"}}};var cu=()=>{const t={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"},map:{unit:"elementów",verb:"mieć"}};function n(e){return t[e]??null}const i={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",mac:"adres MAC",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",credit_card:"numer karty kredytowej",jwt:"JWT",template_literal:"wejście"},a={nan:"NaN",number:"liczba",array:"tablica"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input),r=a[r]??r;return/^[A-Z]/.test(e.expected)?`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${e.expected}, otrzymano `+r:`Nieprawidłowe dane wejściowe: oczekiwano ${t}, otrzymano `+r;case"invalid_value":return 1===e.values.length?"Nieprawidłowe dane wejściowe: oczekiwano "+m(e.values[0]):"Nieprawidłowa opcja: oczekiwano jednej z wartości "+p(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",r=n(e.origin);return r?`Za duża wartość: oczekiwano, że ${e.origin??"wartość"} będzie mieć ${t}${e.maximum.toString()} `+(r.unit??"elementów"):`Zbyt duż(y/a/e): oczekiwano, że ${e.origin??"wartość"} będzie wynosić `+t+e.maximum.toString();case"too_small":r=e.inclusive?">=":">",t=n(e.origin);return t?`Za mała wartość: oczekiwano, że ${e.origin??"wartość"} będzie mieć ${r}${e.minimum.toString()} `+(t.unit??"elementów"):`Zbyt mał(y/a/e): oczekiwano, że ${e.origin??"wartość"} będzie wynosić `+r+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${t.prefix}"`:"ends_with"===t.format?`Nieprawidłowy ciąg znaków: musi kończyć się na "${t.suffix}"`:"includes"===t.format?`Nieprawidłowy ciąg znaków: musi zawierać "${t.includes}"`:"regex"===t.format?"Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi "+t.pattern:"Nieprawidłow(y/a/e) "+(i[t.format]??e.format);case"not_multiple_of":return"Nieprawidłowa liczba: musi być wielokrotnością "+e.divisor;case"unrecognized_keys":return`Nierozpoznane klucze${1<e.keys.length?"s":""}: `+p(e.keys,", ");case"invalid_key":return"Nieprawidłowy klucz w "+e.origin;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return"Nieprawidłowa wartość w "+e.origin;default:return"Nieprawidłowe dane wejściowe"}}};var du=()=>{const t={string:{unit:"caracteres"},file:{unit:"bytes"},array:{unit:"elementos"},set:{unit:"elementos"},map:{unit:"entradas"}};function n(e){return t[e]??null}const i={regex:"a entrada",email:"o endereço de e-mail",url:"o URL",emoji:"o emoji",uuid:"o UUID",uuidv4:"o UUIDv4",uuidv6:"o UUIDv6",nanoid:"o nanoid",guid:"o GUID",cuid:"o cuid",cuid2:"o cuid2",ulid:"o ULID",xid:"o XID",ksuid:"o KSUID",datetime:"a data e hora ISO",date:"a data ISO",time:"a hora ISO",duration:"a duração ISO",ipv4:"o endereço IPv4",ipv6:"o endereço IPv6",mac:"o endereço MAC",cidrv4:"o intervalo de endereços IPv4",cidrv6:"o intervalo de endereços IPv6",base64:"o texto codificado em base64",base64url:"o texto codificado em base64url",json_string:"o texto JSON",e164:"o número E.164",credit_card:"o número de cartão de crédito",jwt:"o JWT",template_literal:"a entrada"},r={masculine:{definite:"o",indefinite:"um"},feminine:{definite:"a",indefinite:"uma"}},a={string:{name:"texto",articles:r.masculine},number:{name:"número",articles:r.masculine},int:{name:"número inteiro",articles:r.masculine},boolean:{name:"valor booleano",articles:r.masculine},bigint:{name:"número bigint",articles:r.masculine},symbol:{name:"símbolo",articles:r.masculine},undefined:{name:'valor "undefined"',articles:r.masculine},null:{name:'valor "nulo"',articles:r.masculine},never:{name:'valor "never"',articles:r.masculine},void:{name:'valor "void"',articles:r.masculine},date:{name:"data",articles:r.feminine},array:{name:"vetor",articles:r.masculine},object:{name:"objeto",articles:r.masculine},tuple:{name:"tuplo",articles:r.masculine},record:{name:"registo",articles:r.masculine},map:{name:"mapa",articles:r.masculine},set:{name:"conjunto",articles:r.masculine},file:{name:"ficheiro",articles:r.masculine},nonoptional:{name:"valor não opcional",articles:r.masculine},nan:{name:'valor "NaN"',articles:r.masculine},function:{name:"função",articles:r.feminine}};function o(e,t){e=a[e]??{name:`valor "${e}"`,articles:r.masculine};return e.articles[t]+" "+e.name}return e=>{switch(e.code){case"invalid_type":return`Entrada inválida: esperava ${o(e.expected,"indefinite")}, recebeu `+o(f(e.input),"indefinite");case"invalid_value":return 1===e.values.length?"Entrada inválida: esperava "+m(e.values[0]):"Opção inválida: esperava uma das seguintes opções: "+p(e.values,"|");case"too_big":var t=e.inclusive?"<=":"<",r=n(e.origin);return r?`Demasiado grande: esperava que ${o(e.origin,"definite")} tivesse ${t} ${e.maximum.toString()} `+(r.unit??"elementos"):`Demasiado grande: esperava que ${o(e.origin,"definite")} fosse ${t} `+e.maximum.toString();case"too_small":r=e.inclusive?">=":">",t=n(e.origin);return t?`Demasiado pequeno: esperava que ${o(e.origin,"definite")} tivesse ${r} ${e.minimum.toString()} `+(t.unit??"elementos"):`Demasiado pequeno: esperava que ${o(e.origin,"definite")} fosse ${r} `+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Texto inválido: deve começar por "${t.prefix}"`:"ends_with"===t.format?`Texto inválido: deve terminar em "${t.suffix}"`:"includes"===t.format?`Texto inválido: deve incluir "${t.includes}"`:"regex"===t.format?"Texto inválido: deve corresponder ao padrão "+t.pattern:`Formato d${i[t.format]??e.format} inválido`;case"not_multiple_of":return"Número inválido: deve ser múltiplo de "+e.divisor;case"unrecognized_keys":r=1<e.keys.length?"s":"";return`Chave${r} inválida${r}: `+p(e.keys,", ");case"invalid_key":return"Entrada inválida n"+o(e.origin,"definite");case"invalid_union":return e.options&&Array.isArray(e.options)&&0<e.options.length?"Valor de discriminação inválido. Esperava "+e.options.map(e=>`'${e}'`).join(" | "):"Entrada inválida";case"invalid_element":return"Entrada inválida n"+o(e.origin,"definite");default:return"Entrada inválida"}}};var pu=()=>{const t={string:{unit:"caracteres"},file:{unit:"bytes"},array:{unit:"elementos"},set:{unit:"elementos"},map:{unit:"entradas"}};function n(e){return t[e]??null}const i={regex:"a entrada",email:"o endereço de e-mail",url:"o URL",emoji:"o emoji",uuid:"o UUID",uuidv4:"o UUIDv4",uuidv6:"o UUIDv6",nanoid:"o nanoid",guid:"o GUID",cuid:"o cuid",cuid2:"o cuid2",ulid:"o ULID",xid:"o XID",ksuid:"o KSUID",datetime:"a data e hora ISO",date:"a data ISO",time:"a hora ISO",duration:"a duração ISO",ipv4:"o endereço IPv4",ipv6:"o endereço IPv6",mac:"o endereço MAC",cidrv4:"a faixa de endereços IPv4",cidrv6:"a faixa de endereços IPv6",base64:"o texto codificado em base64",base64url:"o texto codificado em base64url",json_string:"o texto JSON",e164:"o número E.164",credit_card:"o número de cartão de crédito",jwt:"o JWT",template_literal:"a entrada"},r={masculine:{definite:"o",indefinite:"um"},feminine:{definite:"a",indefinite:"uma"}},a={string:{name:"texto",articles:r.masculine},number:{name:"número",articles:r.masculine},int:{name:"número inteiro",articles:r.masculine},boolean:{name:"valor booleano",articles:r.masculine},bigint:{name:"número bigint",articles:r.masculine},symbol:{name:"símbolo",articles:r.masculine},undefined:{name:'valor "undefined"',articles:r.masculine},null:{name:'valor "nulo"',articles:r.masculine},never:{name:'valor "never"',articles:r.masculine},void:{name:'valor "void"',articles:r.masculine},date:{name:"data",articles:r.feminine},array:{name:"vetor",articles:r.masculine},object:{name:"objeto",articles:r.masculine},tuple:{name:"tupla",articles:r.feminine},record:{name:"registro",articles:r.masculine},map:{name:"mapa",articles:r.masculine},set:{name:"conjunto",articles:r.masculine},file:{name:"arquivo",articles:r.masculine},nonoptional:{name:"valor não opcional",articles:r.masculine},nan:{name:'valor "NaN"',articles:r.masculine},function:{name:"função",articles:r.feminine}};function o(e,t){e=a[e]??{name:`valor "${e}"`,articles:r.masculine};return e.articles[t]+" "+e.name}return e=>{switch(e.code){case"invalid_type":return`Entrada inválida: esperava ${o(e.expected,"indefinite")}, recebeu `+o(f(e.input),"indefinite");case"invalid_value":return 1===e.values.length?"Entrada inválida: esperava "+m(e.values[0]):"Opção inválida: esperava uma das seguintes opções: "+p(e.values,"|");case"too_big":var t=e.inclusive?"<=":"<",r=n(e.origin);return r?`Grande demais: esperava que ${o(e.origin,"definite")} tivesse ${t} ${e.maximum.toString()} `+(r.unit??"elementos"):`Grande demais: esperava que ${o(e.origin,"definite")} fosse ${t} `+e.maximum.toString();case"too_small":r=e.inclusive?">=":">",t=n(e.origin);return t?`Pequeno demais: esperava que ${o(e.origin,"definite")} tivesse ${r} ${e.minimum.toString()} `+(t.unit??"elementos"):`Pequeno demais: esperava que ${o(e.origin,"definite")} fosse ${r} `+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Texto inválido: deve começar com "${t.prefix}"`:"ends_with"===t.format?`Texto inválido: deve terminar com "${t.suffix}"`:"includes"===t.format?`Texto inválido: deve incluir "${t.includes}"`:"regex"===t.format?"Texto inválido: deve corresponder ao padrão "+t.pattern:`Formato d${i[t.format]??e.format} inválido`;case"not_multiple_of":return"Número inválido: deve ser múltiplo de "+e.divisor;case"unrecognized_keys":r=1<e.keys.length?"s":"";return`Chave${r} inválida${r}: `+p(e.keys,", ");case"invalid_key":return"Entrada inválida n"+o(e.origin,"definite");case"invalid_union":return e.options&&Array.isArray(e.options)&&0<e.options.length?"Valor de discriminação inválido. Esperava "+e.options.map(e=>`'${e}'`).join(" | "):"Entrada inválida";case"invalid_element":return"Entrada inválida n"+o(e.origin,"definite");default:return"Entrada inválida"}}};var mu=()=>{const t={string:{unit:"caractere",verb:"să aibă"},file:{unit:"octeți",verb:"să aibă"},array:{unit:"elemente",verb:"să aibă"},set:{unit:"elemente",verb:"să aibă"},map:{unit:"intrări",verb:"să aibă"}};function n(e){return t[e]??null}const i={regex:"intrare",email:"adresă de email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dată și oră ISO",date:"dată ISO",time:"oră ISO",duration:"durată ISO",ipv4:"adresă IPv4",ipv6:"adresă IPv6",mac:"adresă MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"șir codat base64",base64url:"șir codat base64url",json_string:"șir JSON",e164:"număr E.164",credit_card:"număr de card de credit",jwt:"JWT",template_literal:"intrare"},a={nan:"NaN",string:"șir",number:"număr",boolean:"boolean",function:"funcție",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"număr mare",void:"void",never:"never",map:"hartă",set:"set"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input);return`Intrare invalidă: așteptat ${t}, primit `+(a[r]??r);case"invalid_value":return 1===e.values.length?"Intrare invalidă: așteptat "+m(e.values[0]):"Opțiune invalidă: așteptat una dintre "+p(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",r=n(e.origin);return r?`Prea mare: așteptat ca ${e.origin??"valoarea"} ${r.verb} ${t}${e.maximum.toString()} `+(r.unit??"elemente"):`Prea mare: așteptat ca ${e.origin??"valoarea"} să fie `+t+e.maximum.toString();case"too_small":r=e.inclusive?">=":">",t=n(e.origin);return t?`Prea mic: așteptat ca ${e.origin} ${t.verb} ${r}${e.minimum.toString()} `+t.unit:`Prea mic: așteptat ca ${e.origin} să fie `+r+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Șir invalid: trebuie să înceapă cu "${t.prefix}"`:"ends_with"===t.format?`Șir invalid: trebuie să se termine cu "${t.suffix}"`:"includes"===t.format?`Șir invalid: trebuie să includă "${t.includes}"`:"regex"===t.format?"Șir invalid: trebuie să se potrivească cu modelul "+t.pattern:"Format invalid: "+(i[t.format]??e.format);case"not_multiple_of":return"Număr invalid: trebuie să fie multiplu de "+e.divisor;case"unrecognized_keys":return"Chei nerecunoscute: "+p(e.keys,", ");case"invalid_key":return"Cheie invalidă în "+e.origin;case"invalid_union":return"Intrare invalidă";case"invalid_element":return"Valoare invalidă în "+e.origin;default:return"Intrare invalidă"}}};function fu(e,t,r,n){var e=Math.abs(e),i=e%10,e=e%100;return 11<=e&&e<=19?n:1==i?t:2<=i&&i<=4?r:n}var hu=()=>{const t={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},map:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function n(e){return t[e]??null}const i={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",mac:"MAC адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",credit_card:"номер кредитной карты",jwt:"JWT",template_literal:"ввод"},a={nan:"NaN",number:"число",array:"массив"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input),r=a[r]??r;return/^[A-Z]/.test(e.expected)?`Неверный ввод: ожидалось instanceof ${e.expected}, получено `+r:`Неверный ввод: ожидалось ${t}, получено `+r;case"invalid_value":return 1===e.values.length?"Неверный ввод: ожидалось "+m(e.values[0]):"Неверный вариант: ожидалось одно из "+p(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",r=n(e.origin);return r?(r=fu(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many),`Слишком большое значение: ожидалось, что ${e.origin??"значение"} будет иметь ${t}${e.maximum.toString()} `+r):`Слишком большое значение: ожидалось, что ${e.origin??"значение"} будет `+t+e.maximum.toString();case"too_small":var r=e.inclusive?">=":">",t=n(e.origin);return t?(t=fu(Number(e.minimum),t.unit.one,t.unit.few,t.unit.many),`Слишком маленькое значение: ожидалось, что ${e.origin} будет иметь ${r}${e.minimum.toString()} `+t):`Слишком маленькое значение: ожидалось, что ${e.origin} будет `+r+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Неверная строка: должна начинаться с "${t.prefix}"`:"ends_with"===t.format?`Неверная строка: должна заканчиваться на "${t.suffix}"`:"includes"===t.format?`Неверная строка: должна содержать "${t.includes}"`:"regex"===t.format?"Неверная строка: должна соответствовать шаблону "+t.pattern:"Неверный "+(i[t.format]??e.format);case"not_multiple_of":return"Неверное число: должно быть кратным "+e.divisor;case"unrecognized_keys":return`Нераспознанн${1<e.keys.length?"ые":"ый"} ключ${1<e.keys.length?"и":""}: `+p(e.keys,", ");case"invalid_key":return"Неверный ключ в "+e.origin;case"invalid_union":return"Неверные входные данные";case"invalid_element":return"Неверное значение в "+e.origin;default:return"Неверные входные данные"}}};var gu=()=>{const t={string:{unit:"znakov",verb:"mať"},file:{unit:"bajtov",verb:"mať"},array:{unit:"prvkov",verb:"mať"},set:{unit:"prvkov",verb:"mať"},map:{unit:"položiek",verb:"mať"}};function n(e){return t[e]??null}const i={regex:"regulárny výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dátum a čas vo formáte ISO",date:"dátum vo formáte ISO",time:"čas vo formáte ISO",duration:"doba trvania ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"reťazec zakódovaný vo formáte base64",base64url:"reťazec zakódovaný vo formáte base64url",json_string:"reťazec vo formáte JSON",e164:"číslo E.164",credit_card:"číslo kreditnej karty",jwt:"JWT",template_literal:"vstup"},a={nan:"NaN",number:"číslo",string:"reťazec",function:"funkcia",array:"pole"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input),r=a[r]??r;return/^[A-Z]/.test(e.expected)?`Neplatný vstup: očakávané instanceof ${e.expected}, obdržané `+r:`Neplatný vstup: očakávané ${t}, obdržané `+r;case"invalid_value":return 1===e.values.length?"Neplatný vstup: očakávané "+m(e.values[0]):"Neplatný vstup: očakávaná jedna z hodnôt "+p(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",r=n(e.origin);return r?`Hodnota je príliš veľká: ${e.origin??"hodnota"} musí mať ${t}${e.maximum.toString()} `+(r.unit??"prvkov"):`Hodnota je príliš veľká: ${e.origin??"hodnota"} musí byť `+t+e.maximum.toString();case"too_small":r=e.inclusive?">=":">",t=n(e.origin);return t?`Hodnota je príliš malá: ${e.origin??"hodnota"} musí mať ${r}${e.minimum.toString()} `+(t.unit??"prvkov"):`Hodnota je príliš malá: ${e.origin??"hodnota"} musí byť `+r+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Neplatný reťazec: musí začínať na "${t.prefix}"`:"ends_with"===t.format?`Neplatný reťazec: musí končiť na "${t.suffix}"`:"includes"===t.format?`Neplatný reťazec: musí obsahovať "${t.includes}"`:"regex"===t.format?"Neplatný reťazec: musí zodpovedať vzoru "+t.pattern:"Neplatný formát "+(i[t.format]??e.format);case"not_multiple_of":return"Neplatné číslo: musí byť násobkom "+e.divisor;case"unrecognized_keys":return"Neznáme klúče: "+p(e.keys,", ");case"invalid_key":return"Neplatný klúč v "+e.origin;case"invalid_union":return"Neplatný vstup";case"invalid_element":return"Neplatná hodnota v "+e.origin;default:return"Neplatný vstup"}}};var vu=()=>{const t={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"},map:{unit:"elementov",verb:"imeti"}};function n(e){return t[e]??null}const i={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",mac:"MAC naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",credit_card:"številka kreditne kartice",jwt:"JWT",template_literal:"vnos"},a={nan:"NaN",number:"število",array:"tabela"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input),r=a[r]??r;return/^[A-Z]/.test(e.expected)?`Neveljaven vnos: pričakovano instanceof ${e.expected}, prejeto `+r:`Neveljaven vnos: pričakovano ${t}, prejeto `+r;case"invalid_value":return 1===e.values.length?"Neveljaven vnos: pričakovano "+m(e.values[0]):"Neveljavna možnost: pričakovano eno izmed "+p(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",r=n(e.origin);return r?`Preveliko: pričakovano, da bo ${e.origin??"vrednost"} imelo ${t}${e.maximum.toString()} `+(r.unit??"elementov"):`Preveliko: pričakovano, da bo ${e.origin??"vrednost"} `+t+e.maximum.toString();case"too_small":r=e.inclusive?">=":">",t=n(e.origin);return t?`Premajhno: pričakovano, da bo ${e.origin} imelo ${r}${e.minimum.toString()} `+t.unit:`Premajhno: pričakovano, da bo ${e.origin} `+r+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Neveljaven niz: mora se začeti z "${t.prefix}"`:"ends_with"===t.format?`Neveljaven niz: mora se končati z "${t.suffix}"`:"includes"===t.format?`Neveljaven niz: mora vsebovati "${t.includes}"`:"regex"===t.format?"Neveljaven niz: mora ustrezati vzorcu "+t.pattern:"Neveljaven "+(i[t.format]??e.format);case"not_multiple_of":return"Neveljavno število: mora biti večkratnik "+e.divisor;case"unrecognized_keys":return`Neprepoznan${1<e.keys.length?"i ključi":" ključ"}: `+p(e.keys,", ");case"invalid_key":return"Neveljaven ključ v "+e.origin;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return"Neveljavna vrednost v "+e.origin;default:return"Neveljaven vnos"}}};var bu=()=>{const t={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"},map:{unit:"objekt",verb:"att innehålla"}};function n(e){return t[e]??null}const i={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-adress",ipv6:"IPv6-adress",mac:"MAC-adress",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",credit_card:"kreditkortsnummer",jwt:"JWT",template_literal:"mall-literal"},a={nan:"NaN",number:"antal",array:"lista"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input),r=a[r]??r;return/^[A-Z]/.test(e.expected)?`Ogiltig inmatning: förväntat instanceof ${e.expected}, fick `+r:`Ogiltig inmatning: förväntat ${t}, fick `+r;case"invalid_value":return 1===e.values.length?"Ogiltig inmatning: förväntat "+m(e.values[0]):"Ogiltigt val: förväntade en av "+p(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",r=n(e.origin);return r?`För stor(t): förväntade ${e.origin??"värdet"} att ha ${t}${e.maximum.toString()} `+(r.unit??"element"):`För stor(t): förväntat ${e.origin??"värdet"} att ha `+t+e.maximum.toString();case"too_small":r=e.inclusive?">=":">",t=n(e.origin);return t?`För lite(t): förväntade ${e.origin??"värdet"} att ha ${r}${e.minimum.toString()} `+t.unit:`För lite(t): förväntade ${e.origin??"värdet"} att ha `+r+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Ogiltig sträng: måste börja med "${t.prefix}"`:"ends_with"===t.format?`Ogiltig sträng: måste sluta med "${t.suffix}"`:"includes"===t.format?`Ogiltig sträng: måste innehålla "${t.includes}"`:"regex"===t.format?`Ogiltig sträng: måste matcha mönstret "${t.pattern}"`:"Ogiltig(t) "+(i[t.format]??e.format);case"not_multiple_of":return"Ogiltigt tal: måste vara en multipel av "+e.divisor;case"unrecognized_keys":return`${1<e.keys.length?"Okända nycklar":"Okänd nyckel"}: `+p(e.keys,", ");case"invalid_key":return"Ogiltig nyckel i "+(e.origin??"värdet");case"invalid_union":return"Ogiltig input";case"invalid_element":return"Ogiltigt värde i "+(e.origin??"värdet");default:return"Ogiltig input"}}};var yu=()=>{const t={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},map:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function n(e){return t[e]??null}const i={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",mac:"MAC முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",credit_card:"கடன் அட்டை எண்",jwt:"JWT",template_literal:"input"},a={nan:"NaN",number:"எண்",array:"அணி",null:"வெறுமை"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input),r=a[r]??r;return/^[A-Z]/.test(e.expected)?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${e.expected}, பெறப்பட்டது `+r:`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${t}, பெறப்பட்டது `+r;case"invalid_value":return 1===e.values.length?"தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது "+m(e.values[0]):`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${p(e.values,"|")} இல் ஒன்று`;case"too_big":t=e.inclusive?"<=":"<",r=n(e.origin);return r?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??"மதிப்பு"} ${t}${e.maximum.toString()} ${r.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??"மதிப்பு"} ${t}${e.maximum.toString()} ஆக இருக்க வேண்டும்`;case"too_small":r=e.inclusive?">=":">",t=n(e.origin);return t?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${r}${e.minimum.toString()} ${t.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${r}${e.minimum.toString()} ஆக இருக்க வேண்டும்`;case"invalid_format":t=e;return"starts_with"===t.format?`தவறான சரம்: "${t.prefix}" இல் தொடங்க வேண்டும்`:"ends_with"===t.format?`தவறான சரம்: "${t.suffix}" இல் முடிவடைய வேண்டும்`:"includes"===t.format?`தவறான சரம்: "${t.includes}" ஐ உள்ளடக்க வேண்டும்`:"regex"===t.format?`தவறான சரம்: ${t.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:"தவறான "+(i[t.format]??e.format);case"not_multiple_of":return`தவறான எண்: ${e.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${1<e.keys.length?"கள்":""}: `+p(e.keys,", ");case"invalid_key":return e.origin+" இல் தவறான விசை";case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return e.origin+" இல் தவறான மதிப்பு";default:return"தவறான உள்ளீடு"}}};var wu=()=>{const t={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"},map:{unit:"รายการ",verb:"ควรมี"}};function n(e){return t[e]??null}const i={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",mac:"ที่อยู่ MAC",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",credit_card:"หมายเลขบัตรเครดิต",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"},a={nan:"NaN",number:"ตัวเลข",array:"อาร์เรย์ (Array)",null:"ไม่มีค่า (null)"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input),r=a[r]??r;return/^[A-Z]/.test(e.expected)?`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${e.expected} แต่ได้รับ `+r:`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${t} แต่ได้รับ `+r;case"invalid_value":return 1===e.values.length?"ค่าไม่ถูกต้อง: ควรเป็น "+m(e.values[0]):"ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน "+p(e.values,"|");case"too_big":t=e.inclusive?"ไม่เกิน":"น้อยกว่า",r=n(e.origin);return r?`เกินกำหนด: ${e.origin??"ค่า"} ควรมี${t} ${e.maximum.toString()} `+(r.unit??"รายการ"):`เกินกำหนด: ${e.origin??"ค่า"} ควรมี${t} `+e.maximum.toString();case"too_small":r=e.inclusive?"อย่างน้อย":"มากกว่า",t=n(e.origin);return t?`น้อยกว่ากำหนด: ${e.origin} ควรมี${r} ${e.minimum.toString()} `+t.unit:`น้อยกว่ากำหนด: ${e.origin} ควรมี${r} `+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${t.prefix}"`:"ends_with"===t.format?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${t.suffix}"`:"includes"===t.format?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${t.includes}" อยู่ในข้อความ`:"regex"===t.format?"รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด "+t.pattern:"รูปแบบไม่ถูกต้อง: "+(i[t.format]??e.format);case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${e.divisor} ได้ลงตัว`;case"unrecognized_keys":return"พบคีย์ที่ไม่รู้จัก: "+p(e.keys,", ");case"invalid_key":return"คีย์ไม่ถูกต้องใน "+e.origin;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return"ข้อมูลไม่ถูกต้องใน "+e.origin;default:return"ข้อมูลไม่ถูกต้อง"}}};var ku=()=>{const t={string:{unit:"simwol",verb:"bolmaly"},file:{unit:"baýt",verb:"bolmaly"},array:{unit:"elementler",verb:"bolmaly"},set:{unit:"elementler",verb:"bolmaly"},map:{unit:"elementler",verb:"bolmaly"}};function n(e){return t[e]??null}const i={regex:"giriş",email:"e-poçta salgysy",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sene we wagt",date:"ISO sene",time:"ISO wagt",duration:"ISO wagt aralygy",ipv4:"IPv4 salgysy",ipv6:"IPv6 salgysy",mac:"MAC salgysy",cidrv4:"IPv4 aralygy",cidrv6:"IPv6 aralygy",base64:"base64 bilen şifrlenen setir",base64url:"base64url bilen şifrlenen setir",json_string:"JSON setiri",e164:"E.164 nomeri",credit_card:"kredit kartynyň nomeri",jwt:"JWT",template_literal:"şablon"},a={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input);return`Nädogry baha: garaşylan ${t} ýerine ${a[r]??r} alyndy`;case"invalid_value":return 1===e.values.length?`Nädogry baha: ${m(e.values[0])} bolmaly`:"Nädogry saýlaw: aşakdakylardan biri bolmaly: "+p(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",r=n(e.origin);return r?`Has uly: garaşylýan ${e.origin??"baha"} ${t} ${e.maximum.toString()} `+(r.unit??"element"):`Has uly: garaşylýan ${e.origin??"baha"} ${t} `+e.maximum.toString();case"too_small":r=e.inclusive?">=":">",t=n(e.origin);return t?`Has kiçi: garaşylýan ${e.origin} ${r} ${e.minimum.toString()} `+t.unit:`Has kiçi: garaşylýan ${e.origin} ${r} `+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Nädogry setir: "${t.prefix}" bilen başlamaly`:"ends_with"===t.format?`Nädogry setir: "${t.suffix}" bilen gutarmaly`:"includes"===t.format?`Nädogry setir: "${t.includes}" saklamaly`:"regex"===t.format?`Nädogry setir: ${t.pattern} nusga laýyk bolmaly`:"Nädogry "+(i[t.format]??e.format);case"not_multiple_of":return`Nädogry san: ${e.divisor} bilen galyndysyz bölünmeli`;case"unrecognized_keys":return`Tanalmaýan açar${1<e.keys.length?"lar":""}: `+p(e.keys,", ");case"invalid_key":return e.origin+" içinde nädogry açar";case"invalid_union":return"Nädogry baha";case"invalid_element":return e.origin+" içinde nädogry baha";default:return"Nädogry baha"}}};var _u=()=>{const t={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"},map:{unit:"öğe",verb:"olmalı"}};function n(e){return t[e]??null}const i={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO süre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",mac:"MAC adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",credit_card:"kredi kartı numarası",jwt:"JWT",template_literal:"Şablon dizesi"},a={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input),r=a[r]??r;return/^[A-Z]/.test(e.expected)?`Geçersiz değer: beklenen instanceof ${e.expected}, alınan `+r:`Geçersiz değer: beklenen ${t}, alınan `+r;case"invalid_value":return 1===e.values.length?"Geçersiz değer: beklenen "+m(e.values[0]):"Geçersiz seçenek: aşağıdakilerden biri olmalı: "+p(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",r=n(e.origin);return r?`Çok büyük: beklenen ${e.origin??"değer"} ${t}${e.maximum.toString()} `+(r.unit??"öğe"):`Çok büyük: beklenen ${e.origin??"değer"} `+t+e.maximum.toString();case"too_small":r=e.inclusive?">=":">",t=n(e.origin);return t?`Çok küçük: beklenen ${e.origin} ${r}${e.minimum.toString()} `+t.unit:`Çok küçük: beklenen ${e.origin} `+r+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Geçersiz metin: "${t.prefix}" ile başlamalı`:"ends_with"===t.format?`Geçersiz metin: "${t.suffix}" ile bitmeli`:"includes"===t.format?`Geçersiz metin: "${t.includes}" içermeli`:"regex"===t.format?`Geçersiz metin: ${t.pattern} desenine uymalı`:"Geçersiz "+(i[t.format]??e.format);case"not_multiple_of":return`Geçersiz sayı: ${e.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${1<e.keys.length?"lar":""}: `+p(e.keys,", ");case"invalid_key":return e.origin+" içinde geçersiz anahtar";case"invalid_union":return"Geçersiz değer";case"invalid_element":return e.origin+" içinde geçersiz değer";default:return"Geçersiz değer"}}};var Su=()=>{const t={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"},map:{unit:"елементів",verb:"матиме"}};function n(e){return t[e]??null}const i={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",mac:"адреса MAC",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",credit_card:"номер кредитної картки",jwt:"JWT",template_literal:"вхідні дані"},a={nan:"NaN",number:"число",array:"масив"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input),r=a[r]??r;return/^[A-Z]/.test(e.expected)?`Неправильні вхідні дані: очікується instanceof ${e.expected}, отримано `+r:`Неправильні вхідні дані: очікується ${t}, отримано `+r;case"invalid_value":return 1===e.values.length?"Неправильні вхідні дані: очікується "+m(e.values[0]):"Неправильна опція: очікується одне з "+p(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",r=n(e.origin);return r?`Занадто велике: очікується, що ${e.origin??"значення"} ${r.verb} ${t}${e.maximum.toString()} `+(r.unit??"елементів"):`Занадто велике: очікується, що ${e.origin??"значення"} буде `+t+e.maximum.toString();case"too_small":r=e.inclusive?">=":">",t=n(e.origin);return t?`Занадто мале: очікується, що ${e.origin} ${t.verb} ${r}${e.minimum.toString()} `+t.unit:`Занадто мале: очікується, що ${e.origin} буде `+r+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Неправильний рядок: повинен починатися з "${t.prefix}"`:"ends_with"===t.format?`Неправильний рядок: повинен закінчуватися на "${t.suffix}"`:"includes"===t.format?`Неправильний рядок: повинен містити "${t.includes}"`:"regex"===t.format?"Неправильний рядок: повинен відповідати шаблону "+t.pattern:"Неправильний "+(i[t.format]??e.format);case"not_multiple_of":return"Неправильне число: повинно бути кратним "+e.divisor;case"unrecognized_keys":return`Нерозпізнаний ключ${1<e.keys.length?"і":""}: `+p(e.keys,", ");case"invalid_key":return"Неправильний ключ у "+e.origin;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return"Неправильне значення у "+e.origin;default:return"Неправильні вхідні дані"}}};function Iu(){return{localeError:Su()}}var xu=()=>{const t={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"},map:{unit:"آئٹمز",verb:"ہونا"}};function n(e){return t[e]??null}const i={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",mac:"ایم اے سی ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",credit_card:"کریڈٹ کارڈ نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"},a={nan:"NaN",number:"نمبر",array:"آرے",null:"نل"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input),r=a[r]??r;return/^[A-Z]/.test(e.expected)?`غلط ان پٹ: instanceof ${e.expected} متوقع تھا، ${r} موصول ہوا`:`غلط ان پٹ: ${t} متوقع تھا، ${r} موصول ہوا`;case"invalid_value":return 1===e.values.length?`غلط ان پٹ: ${m(e.values[0])} متوقع تھا`:`غلط آپشن: ${p(e.values,"|")} میں سے ایک متوقع تھا`;case"too_big":t=e.inclusive?"<=":"<",r=n(e.origin);return r?`بہت بڑا: ${e.origin??"ویلیو"} کے ${t}${e.maximum.toString()} ${r.unit??"عناصر"} ہونے متوقع تھے`:`بہت بڑا: ${e.origin??"ویلیو"} کا ${t}${e.maximum.toString()} ہونا متوقع تھا`;case"too_small":r=e.inclusive?">=":">",t=n(e.origin);return t?`بہت چھوٹا: ${e.origin} کے ${r}${e.minimum.toString()} ${t.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${e.origin} کا ${r}${e.minimum.toString()} ہونا متوقع تھا`;case"invalid_format":t=e;return"starts_with"===t.format?`غلط سٹرنگ: "${t.prefix}" سے شروع ہونا چاہیے`:"ends_with"===t.format?`غلط سٹرنگ: "${t.suffix}" پر ختم ہونا چاہیے`:"includes"===t.format?`غلط سٹرنگ: "${t.includes}" شامل ہونا چاہیے`:"regex"===t.format?`غلط سٹرنگ: پیٹرن ${t.pattern} سے میچ ہونا چاہیے`:"غلط "+(i[t.format]??e.format);case"not_multiple_of":return`غلط نمبر: ${e.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${1<e.keys.length?"ز":""}: `+p(e.keys,"، ");case"invalid_key":return e.origin+" میں غلط کی";case"invalid_union":return"غلط ان پٹ";case"invalid_element":return e.origin+" میں غلط ویلیو";default:return"غلط ان پٹ"}}};var $u=()=>{const t={string:{unit:"belgi",verb:"bo‘lishi kerak"},file:{unit:"bayt",verb:"bo‘lishi kerak"},array:{unit:"element",verb:"bo‘lishi kerak"},set:{unit:"element",verb:"bo‘lishi kerak"},map:{unit:"yozuv",verb:"bo‘lishi kerak"}};function n(e){return t[e]??null}const i={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",credit_card:"kredit karta raqami",jwt:"JWT",template_literal:"kirish"},a={nan:"NaN",number:"raqam",array:"massiv"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input),r=a[r]??r;return/^[A-Z]/.test(e.expected)?`Noto‘g‘ri kirish: kutilgan instanceof ${e.expected}, qabul qilingan `+r:`Noto‘g‘ri kirish: kutilgan ${t}, qabul qilingan `+r;case"invalid_value":return 1===e.values.length?"Noto‘g‘ri kirish: kutilgan "+m(e.values[0]):"Noto‘g‘ri variant: quyidagilardan biri kutilgan "+p(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",r=n(e.origin);return r?`Juda katta: kutilgan ${e.origin??"qiymat"} ${t}${e.maximum.toString()} ${r.unit} `+r.verb:`Juda katta: kutilgan ${e.origin??"qiymat"} `+t+e.maximum.toString();case"too_small":r=e.inclusive?">=":">",t=n(e.origin);return t?`Juda kichik: kutilgan ${e.origin} ${r}${e.minimum.toString()} ${t.unit} `+t.verb:`Juda kichik: kutilgan ${e.origin} `+r+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Noto‘g‘ri satr: "${t.prefix}" bilan boshlanishi kerak`:"ends_with"===t.format?`Noto‘g‘ri satr: "${t.suffix}" bilan tugashi kerak`:"includes"===t.format?`Noto‘g‘ri satr: "${t.includes}" ni o‘z ichiga olishi kerak`:"regex"===t.format?`Noto‘g‘ri satr: ${t.pattern} shabloniga mos kelishi kerak`:"Noto‘g‘ri "+(i[t.format]??e.format);case"not_multiple_of":return`Noto‘g‘ri raqam: ${e.divisor} ning karralisi bo‘lishi kerak`;case"unrecognized_keys":return`Noma’lum kalit${1<e.keys.length?"lar":""}: `+p(e.keys,", ");case"invalid_key":return e.origin+" dagi kalit noto‘g‘ri";case"invalid_union":return"Noto‘g‘ri kirish";case"invalid_element":return e.origin+" da noto‘g‘ri qiymat";default:return"Noto‘g‘ri kirish"}}};var Eu=()=>{const t={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"},map:{unit:"phần tử",verb:"có"}};function n(e){return t[e]??null}const i={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",mac:"địa chỉ MAC",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",credit_card:"số thẻ tín dụng",jwt:"JWT",template_literal:"đầu vào"},a={nan:"NaN",number:"số",array:"mảng"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input),r=a[r]??r;return/^[A-Z]/.test(e.expected)?`Đầu vào không hợp lệ: mong đợi instanceof ${e.expected}, nhận được `+r:`Đầu vào không hợp lệ: mong đợi ${t}, nhận được `+r;case"invalid_value":return 1===e.values.length?"Đầu vào không hợp lệ: mong đợi "+m(e.values[0]):"Tùy chọn không hợp lệ: mong đợi một trong các giá trị "+p(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",r=n(e.origin);return r?`Quá lớn: mong đợi ${e.origin??"giá trị"} ${r.verb} ${t}${e.maximum.toString()} `+(r.unit??"phần tử"):`Quá lớn: mong đợi ${e.origin??"giá trị"} `+t+e.maximum.toString();case"too_small":r=e.inclusive?">=":">",t=n(e.origin);return t?`Quá nhỏ: mong đợi ${e.origin} ${t.verb} ${r}${e.minimum.toString()} `+t.unit:`Quá nhỏ: mong đợi ${e.origin} `+r+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Chuỗi không hợp lệ: phải bắt đầu bằng "${t.prefix}"`:"ends_with"===t.format?`Chuỗi không hợp lệ: phải kết thúc bằng "${t.suffix}"`:"includes"===t.format?`Chuỗi không hợp lệ: phải bao gồm "${t.includes}"`:"regex"===t.format?"Chuỗi không hợp lệ: phải khớp với mẫu "+t.pattern:(i[t.format]??e.format)+" không hợp lệ";case"not_multiple_of":return"Số không hợp lệ: phải là bội số của "+e.divisor;case"unrecognized_keys":return"Khóa không được nhận dạng: "+p(e.keys,", ");case"invalid_key":return"Khóa không hợp lệ trong "+e.origin;case"invalid_union":return"Đầu vào không hợp lệ";case"invalid_element":return"Giá trị không hợp lệ trong "+e.origin;default:return"Đầu vào không hợp lệ"}}};var Cu=()=>{const t={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"},map:{unit:"项",verb:"包含"}};function n(e){return t[e]??null}const i={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",mac:"MAC地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",credit_card:"信用卡号",jwt:"JWT",template_literal:"输入"},a={nan:"NaN",number:"数字",array:"数组",null:"空值(null)"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input),r=a[r]??r;return/^[A-Z]/.test(e.expected)?`无效输入:期望 instanceof ${e.expected},实际接收 `+r:`无效输入:期望 ${t},实际接收 `+r;case"invalid_value":return 1===e.values.length?"无效输入:期望 "+m(e.values[0]):"无效选项:期望以下之一 "+p(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",r=n(e.origin);return r?`数值过大:期望 ${e.origin??"值"} ${t}${e.maximum.toString()} `+(r.unit??"个元素"):`数值过大:期望 ${e.origin??"值"} `+t+e.maximum.toString();case"too_small":r=e.inclusive?">=":">",t=n(e.origin);return t?`数值过小:期望 ${e.origin} ${r}${e.minimum.toString()} `+t.unit:`数值过小:期望 ${e.origin} `+r+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`无效字符串:必须以 "${t.prefix}" 开头`:"ends_with"===t.format?`无效字符串:必须以 "${t.suffix}" 结尾`:"includes"===t.format?`无效字符串:必须包含 "${t.includes}"`:"regex"===t.format?"无效字符串:必须满足正则表达式 "+t.pattern:"无效"+(i[t.format]??e.format);case"not_multiple_of":return`无效数字:必须是 ${e.divisor} 的倍数`;case"unrecognized_keys":return"出现未知的键(key): "+p(e.keys,", ");case"invalid_key":return e.origin+" 中的键(key)无效";case"invalid_union":return"无效输入";case"invalid_element":return e.origin+" 中包含无效值(value)";default:return"无效输入"}}};var Ou=()=>{const t={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"},map:{unit:"項目",verb:"擁有"}};function n(e){return t[e]??null}const i={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",mac:"MAC 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",credit_card:"信用卡號",jwt:"JWT",template_literal:"輸入"},a={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input),r=a[r]??r;return/^[A-Z]/.test(e.expected)?`無效的輸入值:預期為 instanceof ${e.expected},但收到 `+r:`無效的輸入值:預期為 ${t},但收到 `+r;case"invalid_value":return 1===e.values.length?"無效的輸入值:預期為 "+m(e.values[0]):"無效的選項:預期為以下其中之一 "+p(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",r=n(e.origin);return r?`數值過大:預期 ${e.origin??"值"} 應為 ${t}${e.maximum.toString()} `+(r.unit??"個元素"):`數值過大:預期 ${e.origin??"值"} 應為 `+t+e.maximum.toString();case"too_small":r=e.inclusive?">=":">",t=n(e.origin);return t?`數值過小:預期 ${e.origin} 應為 ${r}${e.minimum.toString()} `+t.unit:`數值過小:預期 ${e.origin} 應為 `+r+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`無效的字串:必須以 "${t.prefix}" 開頭`:"ends_with"===t.format?`無效的字串:必須以 "${t.suffix}" 結尾`:"includes"===t.format?`無效的字串:必須包含 "${t.includes}"`:"regex"===t.format?"無效的字串:必須符合格式 "+t.pattern:"無效的 "+(i[t.format]??e.format);case"not_multiple_of":return`無效的數字:必須為 ${e.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${1<e.keys.length?"們":""}:`+p(e.keys,"、");case"invalid_key":return e.origin+" 中有無效的鍵值";case"invalid_union":return"無效的輸入值";case"invalid_element":return e.origin+" 中有無效的值";default:return"無效的輸入值"}}};var Nu=()=>{const t={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"},map:{unit:"nkan",verb:"ní"}};function n(e){return t[e]??null}const i={regex:"ẹ̀rọ ìbáwọlé",email:"àdírẹ́sì ìmẹ́lì",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"àkókò ISO",date:"ọjọ́ ISO",time:"àkókò ISO",duration:"àkókò tó pé ISO",ipv4:"àdírẹ́sì IPv4",ipv6:"àdírẹ́sì IPv6",mac:"àdírẹ́sì MAC",cidrv4:"àgbègbè IPv4",cidrv6:"àgbègbè IPv6",base64:"ọ̀rọ̀ tí a kọ́ ní base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mbà E.164",credit_card:"nọmba kaadi gbese",jwt:"JWT",template_literal:"ẹ̀rọ ìbáwọlé"},a={nan:"NaN",number:"nọ́mbà",array:"akopọ"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,r=f(e.input),r=a[r]??r;return/^[A-Z]/.test(e.expected)?`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${e.expected}, àmọ̀ a rí `+r:`Ìbáwọlé aṣìṣe: a ní láti fi ${t}, àmọ̀ a rí `+r;case"invalid_value":return 1===e.values.length?"Ìbáwọlé aṣìṣe: a ní láti fi "+m(e.values[0]):"Àṣàyàn aṣìṣe: yan ọ̀kan lára "+p(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",r=n(e.origin);return r?`Tó pọ̀ jù: a ní láti jẹ́ pé ${e.origin??"iye"} ${r.verb} ${t}${e.maximum} `+r.unit:"Tó pọ̀ jù: a ní láti jẹ́ "+t+e.maximum;case"too_small":r=e.inclusive?">=":">",t=n(e.origin);return t?`Kéré ju: a ní láti jẹ́ pé ${e.origin} ${t.verb} ${r}${e.minimum} `+t.unit:"Kéré ju: a ní láti jẹ́ "+r+e.minimum;case"invalid_format":t=e;return"starts_with"===t.format?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${t.prefix}"`:"ends_with"===t.format?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${t.suffix}"`:"includes"===t.format?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${t.includes}"`:"regex"===t.format?"Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu "+t.pattern:"Aṣìṣe: "+(i[t.format]??e.format);case"not_multiple_of":return"Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti "+e.divisor;case"unrecognized_keys":return"Bọtìnì àìmọ̀: "+p(e.keys,", ");case"invalid_key":return"Bọtìnì aṣìṣe nínú "+e.origin;case"invalid_union":return"Ìbáwọlé aṣìṣe";case"invalid_element":return"Iye aṣìṣe nínú "+e.origin;default:return"Ìbáwọlé aṣìṣe"}}};var Au=Symbol("ZodOutput"),Du=Symbol("ZodInput"),Pu=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){t=t[0];return this._map.set(e,t),t&&"object"==typeof t&&"id"in t&&this._idmap.set(t.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){var t=this._map.get(e);return t&&"object"==typeof t&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){var t=e._zod.parent;return t?(delete(t={...this.get(t)??{}}).id,t={...t,...this._map.get(e)},Object.keys(t).length?t:void 0):this._map.get(e)}has(e){return this._map.has(e)}};function Tu(){return new Pu}(n=globalThis).__zod_globalRegistry??(n.__zod_globalRegistry=Tu());var zu=globalThis.__zod_globalRegistry,ju=Symbol.for("zod.compile.invalid"),Lu=Symbol.for("zod.compile.fallback"),Uu=class extends Error{constructor(e="z.compile does not support async refinements, transforms, or checks"){super(e),this.name="ZodCompileAsyncError"}},O=class extends Error{constructor(e,t=!0){super(`z.compile does not support ${e}; this schema must use the runtime parser`),this.name="ZodCompileUnsupportedError",this.islandable=t}};function Ru(t,r){try{const l=Mu(t);var e=Rr(t),n=t._zod.run;const u=n.__originalRun??n;var i=(e,t)=>{if(!(t?.async||"backward"===t?.direction||t?.skipChecks||t?.[Lu]||t&&fl(t,e.value))){var r=l(e.value);if(r!==ju)return e.value=r,e;t&&(t[Lu]=!0)}return u(e,t)};if(i.__originalRun=u,e._zod.bag.fallbackRun=u,e._zod.bag.validator=function(e,t){try{return Mu(e,{assertOnly:!0})}catch{return t}}(t,l),e._zod.run=i,!n.__originalRun){var a=e,o=t,s=l;if("function"==typeof o.safeParse){const c=o.safeParse;a.safeParse=(e,t)=>{var r=s(e);return r!==ju?{success:!0,data:r}:c(e,t)}}if("function"==typeof o.parse){const d=o.parse;a.parse=(e,t)=>{var r=s(e);return r!==ju?r:d(e,t)}}}return e}catch(e){if(r?.strict)throw e;return t}}function Mu(e,t){let r=!0;try{r=cl(e)}catch{}if(r)throw new O("a schema whose subtree contains a reference cycle");var n={constants:new Map,constantCounter:0,varCounter:0},i=new Ka(["input"]),e=Qu(i,n,e,"input",!t?.assertOnly),e=(i.write(null===e?"return true;":`return ${e};`),["INVALID",...n.constants.keys()]),n=[ju,...n.constants.values()],i=i.content.join("\n"),a=t?.debug?0<e.length?`// Constants: ${e.join(", ")}
`+i:i:"",o=Function,i=`return (input) => {
${i}
}`;let s;try{var l=new o(...e,i);s=l(...n)}catch(e){throw new O(`this schema (generated code failed to evaluate: ${e.message})`)}return t?.debug&&(s.code=a),s}function N(e,t){for(var[r,n]of e.constants)if(n===t)return r;var i="c"+e.constantCounter++;return e.constants.set(i,t),i}function D(e){return"v"+e.varCounter++}function Bu(e,t){e=e._zod.run({value:t,issues:[]},{});return(!e||"function"!=typeof e.then)&&0===e.issues.length?e.value:ju}function Fu(t,r,n,i,a=!0){var o=t.content.length,s=r.constants.size,l=r.constantCounter,u=r.varCounter;try{return Qu(t,r,n,i,a)}catch(e){if(!(e instanceof O&&e.islandable))throw e;if(t.content.length=o,r.constants.size>s)for(const c of Array.from(r.constants.keys()).slice(s))r.constants.delete(c);return r.constantCounter=l,r.varCounter=u,a=t,o=i,l=N(s=r,l=n),u=N(s,Bu),s=D(s),a.write(`const ${s} = ${u}(${l}, ${o});`),a.write(`if (${s} === INVALID) return INVALID;`),s}}var Zu=new Set(["max_size","min_size","size_equals","max_length","min_length","length_equals"]);function Vu(e,t,r,n){var i,a,r=r._zod.def.checks;if(!r||0===r.length)return n;let o=n;for(const $ of r){var s=$._zod.def;if(s.when&&!Zu.has(s.check))throw new O('check with a custom "when" condition');switch(s.check){case"greater_than":i=o,a=void 0,a=s.inclusive?"<":"<=",e.write(`if (${i} ${a} ${qu(t,s.value)}) return INVALID;`);break;case"less_than":i=o,a=void 0,a=s.inclusive?">":">=",e.write(`if (${i} ${a} ${qu(t,s.value)}) return INVALID;`);break;case"multiple_of":d=c=u=l=void 0;var l=e,u=t,c=s,d=o;if("bigint"==typeof c.value){if(c.value===BigInt(0))throw new O("multiple_of check with a zero divisor");l.write(`if (${d} % ${c.value}n !== 0n) return INVALID;`)}else{u=N(u,Sr);l.write(`if (${u}(${d}, ${Ku(c.value,"multiple_of")}) !== 0) return INVALID;`)}break;case"number_format":Hu(e,s,o);break;case"min_length":l=Ku(s.minimum,"min_length"),u=Gu(e,t,o,`${o}.length >= ${l} && ${o}.length < `+2*s.minimum);e.write(`if (${u} < ${l}) return INVALID;`);break;case"max_length":d=Ku(s.maximum,"max_length"),c=Gu(e,t,o,o+".length > "+d);e.write(`if (${c} > ${d}) return INVALID;`);break;case"length_equals":var p=Ku(s.length,"length_equals"),m=Gu(e,t,o,`${o}.length >= ${p} && ${o}.length <= `+2*s.length);e.write(`if (${m} !== ${p}) return INVALID;`);break;case"min_size":e.write(`if (${o}.size < ${Ku(s.minimum,"min_size")}) return INVALID;`);break;case"max_size":e.write(`if (${o}.size > ${Ku(s.maximum,"max_size")}) return INVALID;`);break;case"size_equals":e.write(`if (${o}.size !== ${Ku(s.size,"size_equals")}) return INVALID;`);break;case"string_format":o=Yu(e,t,s,o);break;case"custom":o=function(e,t,r,n){var i=r._zod.def;if(i.fn){if(ac(i.fn))throw new Uu("z.compile: async .refine() predicates are not supported");var i=N(t,i.fn),a=N(t,Ju),o=D(t);return e.write(`const ${o} = ${i}(${n});`),e.write(`if (${o} instanceof Promise) ${a}();`),e.write(`if (!${o}) return INVALID;`),n}if(r._zod.check){if(ac(r._zod.check))throw new Uu("z.compile: async .superRefine() / check functions are not supported");const s=r._zod.check;i=N(t,e=>{e={value:e,issues:[],addIssue:Wu};return s(e)instanceof Promise&&Ju(),0===e.issues.length?e.value:ju}),a=D(t);return e.write(`const ${a} = ${i}(${n});`),e.write(`if (${a} === INVALID) return INVALID;`),a}throw new O("custom check without a predicate or check function")}(e,t,$,o);break;case"bigint_format":g=h=m=f=void 0;var f=e,m=s,h=o,g=m.format;if(g)switch(g){case"int64":f.write(`if (${h} < -9223372036854775808n || ${h} > 9223372036854775807n) return INVALID;`);break;case"uint64":f.write(`if (${h} < 0n || ${h} > 18446744073709551615n) return INVALID;`);break;default:throw new O("bigint format "+g)}break;case"mime_type":y=b=v=p=void 0;var p=e,v=t,b=s,y=o;(b=b.mime)&&0<b.length&&(v=N(v,new Set(b)),p.write(`if (!${v}.has(${y}.type)) return INVALID;`));break;case"property":w=y=v=b=void 0;var b=e,v=t,y=s,w=o;w=`${w}[${JSON.stringify(y.property)}]`,Qu(b,v,y.schema,w);break;case"overwrite":var w=D(t),k=(x=I=S=_=k=void 0,e),_=t,S=$,I=o,x=w;if(!(S=S._zod.def.tx))throw new O("overwrite check without a transform function");if(ac(S))throw new Uu("z.compile: async overwrite transforms are not supported");_=N(_,S),k.write(`const ${x} = ${_}(${I});`),o=w;break;default:throw new O("check type "+s.check)}}return o}function Gu(e,t,r,n){var i=N(t,Xr),t=D(t);return e.write(`const ${t} = typeof ${r} === "string" && ${n} ? ${i}(${r}) : ${r}.length;`),t}function Ku(e,t){if("number"==typeof e&&Number.isFinite(e))return""+e;throw new O(t+" bound of type "+typeof e)}function qu(e,t){if("bigint"==typeof t)return t+"n";if("number"==typeof t){if(Number.isNaN(t))throw new O("comparison check with NaN bound");return""+t}if(t instanceof Date){if(Number.isNaN(t.getTime()))throw new O("comparison check with Invalid Date bound");return N(e,t)}throw new O("comparison check bound of type "+typeof t)}function Hu(e,t,r){var n=t.format;switch(n){case"safeint":e.write(`if (!Number.isSafeInteger(${r})) return INVALID;`);break;case"int32":e.write(`if (!Number.isInteger(${r}) || ${r} < -2147483648 || ${r} > 2147483647) return INVALID;`);break;case"uint32":e.write(`if (!Number.isInteger(${r}) || ${r} < 0 || ${r} > 4294967295) return INVALID;`);break;case"float32":e.write(`if (!Number.isFinite(${r}) || ${r} < -3.4028234663852886e38 || ${r} > 3.4028234663852886e38) return INVALID;`);break;case"float64":e.write(`if (!Number.isFinite(${r})) return INVALID;`);break;default:throw new O("number format "+n)}}function Ju(){throw new gn}function Wu(e){this.issues.push(e)}var Xu=new Set(["cidrv4","cuid","cuid2","date","datetime","duration","e164","email","emoji","ends_with","guid","includes","ipv4","ksuid","lowercase","mac","nanoid","regex","starts_with","time","ulid","uppercase","uuid","xid"]);function Yu(e,t,r,n){var i=r.format;if("base64"===i)a=N(t,Oo),e.write(`if (!${a}(${n})) return INVALID;`);else if("base64url"===i)a=N(t,Ao),e.write(`if (!${a}(${n})) return INVALID;`);else if("jwt"===i)a=N(t,Lo),s=N(t,r.alg??null),e.write(`if (!${a}(${n}, ${s})) return INVALID;`);else if("ipv6"===i)a=N(t,So),e.write(`if (!${a}(${n})) return INVALID;`);else if("cidrv6"===i)s=N(t,Eo),e.write(`if (!${s}(${n})) return INVALID;`);else if("credit_card"===i)a=N(t,zo),e.write(`if (!${a}(${n})) return INVALID;`);else{var a,o,s=r;if("url"===i||"httpurl"===i||s.normalize||void 0!==s.hostname||void 0!==s.protocol)return a=N(t,no),o=N(t,r),l=D(t),u=D(t),e.write(`const ${l} = ${n}.trim();`),e.write(`const ${u} = ${a}(${l}, ${o});`),e.write(`if (typeof ${u} === "number") return INVALID;`),void 0!==s.hostname&&(a=N(t,oo),e.write(`if (!${a}(${u}, ${o}.hostname)) return INVALID;`)),void 0!==s.protocol&&(a=N(t,so),e.write(`if (!${a}(${u}, ${o}.protocol)) return INVALID;`)),a=D(t),o=s.normalize?u+".href":N(t,ao)+`(${l})`,e.write(`const ${a} = ${o};`),a;var l,s=r.fn;if(s){if(ac(s))throw new O("async string format "+i);var u=N(t,s);e.write(`if (!${u}(${n})) return INVALID;`)}else if(Xu.has(i)&&r.pattern)l=N(t,r.pattern),e.write(l+".lastIndex = 0;"),e.write(`if (!${l}.test(${n})) return INVALID;`);else{var c=r.format;switch(c){case"regex":throw new O("regex format without a pattern");case"lowercase":e.write(`if (${n} !== ${n}.toLowerCase()) return INVALID;`);break;case"uppercase":e.write(`if (${n} !== ${n}.toUpperCase()) return INVALID;`);break;case"includes":e.write(`if (!${n}.includes(${Cr(r.includes)})) return INVALID;`);break;case"starts_with":var d=r.prefix;e.write(`if (${n}.slice(0, ${d.length}) !== ${Cr(d)}) return INVALID;`);break;case"ends_with":d=r.suffix;e.write(`if (${n}.slice(-${d.length}) !== ${Cr(d)}) return INVALID;`);break;default:throw new O("string format "+c)}}}return n}function Qu(e,t,r,n,i=!0){var a=r._zod.def,o=a.type;if(a.coerce)throw new O(`coercion (z.coerce.${o}())`);var s,l,u,c,d,p,m,f=i||!!a.checks?.length;let h;switch(o){case"string":h=function(e,t,r,n){e.write(`if (typeof ${n} !== "string") return INVALID;`);r=r._zod.def;return void 0===r.format?n:Yu(e,t,r,n)}(e,t,r,n);break;case"number":h=function(e,t,r){e.write(`if (typeof ${r} !== "number" || !Number.isFinite(${r})) return INVALID;`);t=t._zod.def;"number_format"===t.check&&t.format&&Hu(e,{format:t.format},r);return r}(e,r,n);break;case"boolean":h=(m=n,e.write(`if (typeof ${m} !== "boolean") return INVALID;`),m);break;case"bigint":h=function(e,t,r){e.write(`if (typeof ${r} !== "bigint") return INVALID;`);t=t._zod.def;if(t.format)switch(t.format){case"int64":e.write(`if (${r} < -9223372036854775808n || ${r} > 9223372036854775807n) return INVALID;`);break;case"uint64":e.write(`if (${r} < 0n || ${r} > 18446744073709551615n) return INVALID;`)}return r}(e,r,n);break;case"symbol":h=(m=n,e.write(`if (typeof ${m} !== "symbol") return INVALID;`),m);break;case"undefined":h=(p=n,e.write(`if (${p} !== undefined) return INVALID;`),p);break;case"null":h=(p=n,e.write(`if (${p} !== null) return INVALID;`),p);break;case"any":case"unknown":h=n;break;case"never":e.write("return INVALID;"),h=n;break;case"void":h=(d=n,e.write(`if (${d} !== undefined) return INVALID;`),d);break;case"nan":h=(d=n,e.write(`if (typeof ${d} !== "number" || !Number.isNaN(${d})) return INVALID;`),d);break;case"date":h=(g=n,e.write(`if (!(${g} instanceof Date) || Number.isNaN(${g}.getTime())) return INVALID;`),g);break;case"object":h=function(e,r,t,n,i){const a=t._zod.def,o=(e.write(`if (typeof ${n} !== "object" || ${n} === null || Array.isArray(${n})) return INVALID;`),a.shape),s=Object.keys(o),l=Object.getOwnPropertySymbols(o),u=l.length?[...s,...l]:s,c=e=>"symbol"==typeof e?N(r,e):Cr(e),d=o;if(s.includes("__proto__"))throw new O('object shape key "__proto__"');const p=new Map;for(const w of u){const k=d[w],_=c(w),S=D(r);if(e.write(`const ${S} = ${n}[${_}];`),void 0!==k._zod.optin){const I=D(r);e.write(`let ${I} = (() => {`),e.indented(e=>{var t=Fu(e,r,k,S);e.write(`return ${t};`)}),e.write("})();"),"optional"===k._zod.optout?(e.write(`if (${I} === INVALID) {`),e.indented(e=>{e.write(`if (${_} in ${n}) return INVALID;`),e.write(I+" = undefined;")}),e.write("}")):e.write(`if (${I} === INVALID) return INVALID;`),p.set(w,I)}else{!function(e){return void 0===e._zod.optin&&ec(e)}(k)||e.write(`if (!(${_} in ${n})) return INVALID;`);var m=Fu(e,r,k,S,i);null!==m&&p.set(w,m)}}const f=a.catchall;let h="none";if(f){t=f._zod.def.type;if("never"===t){const x=s.map(e=>"k !== "+Cr(e)).join(" && ")||"true";e.write(`for (const k in ${n}) {`),e.indented(e=>{e.write(`if (${x}) return INVALID;`)}),e.write("}")}else h="unknown"!==t&&"any"!==t||f._zod.def.checks?.length?"schema":"passthrough"}const g=D(r),v=u.some(e=>rc(d[e])||tc(d[e]));if(!i){if("schema"===h){const $=0<s.length?N(r,new Set(s)):null;e.write(`for (const k in ${n}) {`),e.indented(e=>{e.write('if (k === "__proto__") continue;'),$&&e.write(`if (${$}.has(k)) continue;`);var t=D(r);e.write(`const ${t} = ${n}[k];`),Fu(e,r,f,t,!1)}),e.write("}")}return null}if(v){e.write(`const ${g} = {};`);for(const E of u){var b=c(E),y=p.get(E);tc(d[E])?e.write(`if (${b} in ${n}) ${g}[${b}] = ${y};`):rc(d[E])?e.write(`if (${y} !== undefined || ${b} in ${n}) ${g}[${b}] = ${y};`):e.write(g+`[${b}] = ${y};`)}}else{t=u.map(e=>{return`${t=e,"symbol"==typeof t?`[${c(t)}]`:Cr(t)}: `+p.get(e);var t}).join(", ");e.write(`const ${g} = { ${t} };`)}if("none"!==h){const C=0<s.length?N(r,new Set(s)):null;e.write(`for (const k in ${n}) {`),e.indented(e=>{var t;e.write('if (k === "__proto__") continue;'),C&&e.write(`if (${C}.has(k)) continue;`),"passthrough"===h?e.write(g+`[k] = ${n}[k];`):(t=D(r),e.write(`const ${t} = ${n}[k];`),t=Fu(e,r,f,t),e.write(g+`[k] = ${t};`))}),e.write("}")}return g}(e,t,r,n,f);break;case"optional":h=function(e,r,t,n,i){const a=t._zod.def;if(!0===t._zod.traits?.has("$ZodExactOptional"))return Qu(e,r,a.innerType,n,i);if("defaulted"===a.innerType._zod.optin){const s=D(r),l=D(r);return e.write(`let ${s};`),e.write(`if (${n} === undefined) {`),e.indented(e=>{e.write(`const ${l} = (() => {`),e.indented(e=>{var t=Qu(e,r,a.innerType,n);e.write(`return ${t};`)}),e.write("})();"),e.write(`if (${l} !== INVALID) ${s} = ${l};`)}),e.write("} else {"),e.indented(e=>{var t=Qu(e,r,a.innerType,n);e.write(s+` = ${t};`)}),e.write("}"),s}const o=i?D(r):null;o&&e.write(`let ${o};`);return e.write(`if (${n} !== undefined) {`),e.indented(e=>{var t=Qu(e,r,a.innerType,n,i);o&&null!==t&&e.write(o+` = ${t};`)}),e.write("}"),o}(e,t,r,n,f);break;case"nullable":h=function(e,r,t,n,i){const a=t._zod.def,o=i?D(r):null;o&&e.write(`let ${o} = null;`);return e.write(`if (${n} !== null) {`),e.indented(e=>{var t=Qu(e,r,a.innerType,n,i);o&&null!==t&&e.write(o+` = ${t};`)}),e.write("}"),o}(e,t,r,n,f);break;case"array":h=function(e,r,t,n,i){const a=t._zod.def,o=(e.write(`if (!Array.isArray(${n})) return INVALID;`),i?D(r):null),s=D(r),l=D(r);o&&e.write(`const ${o} = new Array(${n}.length);`);return e.write(`for (let ${s} = 0; ${s} < ${n}.length; ${s}++) {`),e.indented(e=>{e.write(`const ${l} = ${n}[${s}];`);var t=Fu(e,r,a.element,l,i);o&&null!==t&&e.write(`${o}[${s}] = ${t};`)}),e.write("}"),o}(e,t,r,n,f);break;case"literal":h=function(e,t,r,n){r=r._zod.def,r=r.values;if(1!==r.length){var i=N(t,new Set(r));e.write(`if (!${i}.has(${n})) return INVALID;`)}else{i=r[0];if("number"==typeof i&&Number.isNaN(i)){t=N(t,new Set(r));e.write(`if (!${t}.has(${n})) return INVALID;`)}else if("string"==typeof i)e.write(`if (${n} !== ${Cr(i)}) return INVALID;`);else if("number"==typeof i||"boolean"==typeof i)e.write(`if (${n} !== ${i}) return INVALID;`);else if(null===i)e.write(`if (${n} !== null) return INVALID;`);else if(void 0===i)e.write(`if (${n} !== undefined) return INVALID;`);else{if("bigint"!=typeof i)throw new O("literal type "+typeof i);e.write(`if (${n} !== ${i}n) return INVALID;`)}}return n}(e,t,r,n);break;case"enum":h=function(e,t,r,n){r=r._zod.values;if(!r)throw new O("enum schema without enumerated values");t=N(t,r);return e.write(`if (!${t}.has(${n})) return INVALID;`),n}(e,t,r,n);break;case"readonly":var g=nc(e,t,r,n),v=D(t);e.write(`const ${v} = Object.freeze(${g});`),h=v;break;case"success":nc(e,t,r,n),h="true";break;case"default":case"prefault":h=function(e,r,t,n){const i=t._zod.def,a=Object.getOwnPropertyDescriptor(t._zod.def,"defaultValue"),o=a?()=>t._zod.def.defaultValue:void 0;{var s,l;if("prefault"===t._zod.def.type)return o?(s=N(r,o),l=D(r),e.write(`let ${l} = ${n};`),e.write(`if (${n} === undefined) ${l} = ${s}();`),Qu(e,r,i.innerType,l)):Qu(e,r,i.innerType,n)}const u=D(r);{if(o){const c=N(r,o),d=N(r,Tr);e.write(`let ${u};`),e.write(`if (${n} === undefined) {`),e.indented(e=>{e.write(`${u} = ${d}(${c}());`)}),e.write("} else {"),e.indented(e=>{var t=Qu(e,r,i.innerType,n);e.write(`${u} = ${t} === undefined ? ${d}(${c}()) : ${t};`)})}else e.write(`let ${u};`),e.write(`if (${n} !== undefined) {`),e.indented(e=>{var t=Qu(e,r,i.innerType,n);e.write(u+` = ${t};`)});e.write("}")}return u}(e,t,r,n);break;case"nonoptional":h=function(e,t,r,n){r=r._zod.def,r=Qu(e,t,r.innerType,n),n=D(t);return e.write(`const ${n} = ${r};`),e.write(`if (${n} === undefined) return INVALID;`),n}(e,t,r,n);break;case"tuple":h=function(e,i,t,r){const n=t._zod.def,a=n.items,o=n.rest,s=(e.write(`if (!Array.isArray(${r})) return INVALID;`),ic(a,"optin")),l=ic(a,"optout");o?e.write(`if (${r}.length < ${s}) return INVALID;`):e.write(`if (${r}.length < ${s} || ${r}.length > ${a.length}) return INVALID;`);const u=D(i);e.write(`const ${u} = [];`);for(let n=0;n<a.length;n++){const d=a[n];var c;n>=l?(e.write(`if (${u}.length === ${n}) {`),e.indented(e=>{e.write(`if (${n} < ${r}.length) {`),e.indented(e=>{var t=D(i),t=(e.write(`const ${t} = ${r}[${n}];`),Fu(e,i,d,t));e.write(`${u}[${n}] = ${t};`)}),e.write("} else {"),e.indented(e=>{if(tc(d))e.write(`${u}.length = ${n};`);else{const r=D(i);var t=D(i);e.write(`const ${r} = undefined;`),e.write(`const ${t} = (() => {`),e.indented(e=>{var t=Fu(e,i,d,r);e.write(`return ${t};`)}),e.write("})();"),e.write(`if (${t} === INVALID || ${t} === undefined) ${u}.length = ${n};`),e.write(`else ${u}[${n}] = ${t};`)}}),e.write("}")}),e.write("}")):(c=D(i),e.write(`const ${c} = ${r}[${n}];`),c=Fu(e,i,d,c),e.write(`${u}[${n}] = ${c};`))}if(o){const p=D(i),m=D(i);e.write(`for (let ${p} = ${a.length}; ${p} < ${r}.length; ${p}++) {`),e.indented(e=>{e.write(`const ${m} = ${r}[${p}];`);var t=Fu(e,i,o,m);e.write(`${u}[${p}] = ${t};`)}),e.write("}")}return u}(e,t,r,n);break;case"union":h=function(t,r,e,n){var e=e._zod.def,i=e.options;if(e.discriminator)return function(e,n,t,r){if(t.unionFallback)throw new O("discriminated union with unionFallback");if(0===t.options.length)return e.write("return INVALID;"),r;const i=D(n),a=D(n);e.write(`const ${i} = ${r}?.[${Cr(t.discriminator)}];`),e.write(`let ${a};`);let o=!0;var s=new Set;for(const c of t.options){var l=c._zod.propValues?.[t.discriminator];if(!l||0===l.size)throw new O("discriminated union option without static discriminator values");for(const d of l){if(s.has(d))throw new O("duplicate discriminator value "+String(d));s.add(d)}var l=Array.from(l,e=>{var t=n,r=i;if("string"==typeof e)return r+" === "+Cr(e);if("number"==typeof e)return Number.isNaN(e)?`Number.isNaN(${r})`:r+" === "+e;if("boolean"==typeof e)return r+" === "+e;if(null===e)return r+" === null";if(void 0===e)return r+" === undefined";if("bigint"==typeof e)return r+` === ${e}n`;if("symbol"!=typeof e)throw new O("literal discriminator value "+String(e));return t=N(t,e),r+" === "+t}),u=o?"if":"else if";e.write(u+` (${l.join(" || ")}) {`),e.indented(e=>{var t=Qu(e,n,c,r);e.write(a+` = ${t};`)}),e.write("}"),o=!1}return e.write("else { return INVALID; }"),a}(t,r,e,n);if(!1===e.inclusive)throw new O("exclusive unions (z.xor)");if(0===i.length)return t.write("return INVALID;"),n;if(1===i.length)return Qu(t,r,i[0],n);e=i.every(e=>"literal"===e._zod.def.type&&!e._zod.def.checks?.length);if(e)return e=new Set(i.flatMap(e=>e._zod.def.values)),e=N(r,e),t.write(`if (!${e}.has(${n})) return INVALID;`),n;var a=D(r);t.write(`let ${a};`);for(let e=0;e<i.length;e++){const o=i[e];0===e?t.write(a+" = (() => {"):t.write(`if (${a} === INVALID) ${a} = (() => {`),t.indented(e=>{var t=Qu(e,r,o,n);e.write(`return ${t};`)}),t.write("})();")}return t.write(`if (${a} === INVALID) return INVALID;`),a}(e,t,r,n);break;case"intersection":h=(v=e,s=t,u=n,l=(l=r)._zod.def,c=Fu(v,s,l.left,u),l=Fu(v,s,l.right,u),u=N(s,hs),s=D(s),v.write(`const ${s} = ${u}(${c}, ${l});`),v.write(`if (!${s}.valid) return INVALID;`),s+".data");break;case"record":h=function(e,r,t,n){const i=t._zod.def,a=N(r,Pr),o=(e.write(`if (!${a}(${n})) return INVALID;`),D(r)),s=D(r),l=D(r),u=(e.write(`const ${o} = {};`),i),c=u.partial?void 0:i.keyType._zod.values;if(c){var d=[];for(const g of c){if("string"!=typeof g&&"number"!=typeof g&&"symbol"!=typeof g)throw new O("record key value "+String(g));var p="number"==typeof g?g.toString():g;if("__proto__"===p)throw new O('record key "__proto__"');d.push(p);var m=N(r,g),m=Qu(e,r,i.keyType,m),f=D(r),p=(e.write(`const ${f} = ${n}[${function(e,t){return"string"==typeof t?Cr(t):N(e,t)}(r,p)}];`),Fu(e,r,i.valueType,f));e.write(o+`[${m}] = ${p};`)}const h=N(r,new Set(d));e.write(`for (const ${s} in ${n}) {`),e.indented(e=>{e.write(`if (${h}.has(${s})) continue;`),"loose"===u.mode?e.write(`if (${s} !== "__proto__") ${o}[${s}] = ${n}[${s}];`):e.write("return INVALID;")})}else{t=i.keyType._zod.def;if("string"===t.type&&void 0===t.format&&!t.coerce&&0===(t.checks?.length??0)){const v=N(r,Object.prototype.propertyIsEnumerable);e.write(`for (const ${s} of Reflect.ownKeys(${n})) {`),e.indented(e=>{e.write(`if (${s} === "__proto__") continue;`),e.write(`if (!${v}.call(${n}, ${s})) continue;`),e.write(`if (typeof ${s} !== "string") return INVALID;`),e.write(`const ${l} = ${n}[${s}];`);var t=Fu(e,r,i.valueType,l);e.write(`${o}[${s}] = ${t};`)})}else{const b="loose"===i.mode,y=N(r,Mu(i.keyType)),w=N(r,Wi),k=N(r,Object.prototype.propertyIsEnumerable),_=D(r);e.write(`for (const ${s} of Reflect.ownKeys(${n})) {`),e.indented(e=>{e.write(`if (${s} === "__proto__") continue;`),e.write(`if (!${k}.call(${n}, ${s})) continue;`),e.write(`let ${_} = ${y}(${s});`),e.write(`if (${_} === INVALID && typeof ${s} === "string" && ${w}.test(${s})) ${_} = ${y}(Number(${s}));`),b?e.write(`if (${_} === INVALID) { ${o}[${s}] = ${n}[${s}]; continue; }`):e.write(`if (${_} === INVALID) return INVALID;`),e.write(`if (${_} === "__proto__") continue;`);var t=D(r),t=(e.write(`const ${t} = ${n}[${s}];`),Fu(e,r,i.valueType,t));e.write(`${o}[${_}] = ${t};`)})}}return e.write("}"),o}(e,t,r,n);break;case"map":h=function(e,n,t,r){const i=t._zod.def,a=(e.write(`if (!(${r} instanceof Map)) return INVALID;`),D(n)),o=D(n),s=D(n);return e.write(`const ${a} = new Map();`),e.write(`for (const [${o}, ${s}] of ${r}) {`),e.indented(e=>{var t=Qu(e,n,i.keyType,o),r=Qu(e,n,i.valueType,s);e.write(a+`.set(${t}, ${r});`)}),e.write("}"),a}(e,t,r,n);break;case"set":h=function(e,r,t,n){const i=t._zod.def,a=(e.write(`if (!(${n} instanceof Set)) return INVALID;`),D(r)),o=D(r);return e.write(`const ${a} = new Set();`),e.write(`for (const ${o} of ${n}) {`),e.indented(e=>{var t=Qu(e,r,i.valueType,o);e.write(a+`.add(${t});`)}),e.write("}"),a}(e,t,r,n);break;case"file":h=(u=n,e.write(`if (!(${u} instanceof File)) return INVALID;`),u);break;case"template_literal":h=function(e,t,r,n){e.write(`if (typeof ${n} !== "string") return INVALID;`);r=r._zod.pattern;r&&(t=N(t,r),e.write(t+".lastIndex = 0;"),e.write(`if (!${t}.test(${n})) return INVALID;`));return n}(e,t,r,n);break;case"lazy":h=function(e,t,r,n){const i=r._zod.def,a=N(t,i.getter),o=N(t,{parser:null}),s=(e.write(`if (!${o}.parser) {`),e.indented(e=>{e.write(`const inner = ${a}();`),e.write(o+".parser = function(input) {"),e.indented(e=>{e.write("const result = inner._zod.run({ value: input, issues: [] }, {});"),e.write("return result.issues.length === 0 ? result.value : INVALID;")}),e.write("};")}),e.write("}"),D(t));return e.write(`const ${s} = ${o}.parser(${n});`),e.write(`if (${s} === INVALID) return INVALID;`),s}(e,t,r,n);break;case"pipe":h=function(e,t,r,n){r=r._zod.def,n=Qu(e,t,r.in,n);{if(r.transform){if(ac(r.transform))throw new Uu("z.compile: async transforms in pipes are not supported");const o=r.transform;var i=N(t,e=>{var t={value:e,issues:[],addIssue:Wu},e=o(e,t);return!(e instanceof Promise)&&0===t.issues.length?e:ju}),a=D(t);return e.write(`const ${a} = ${i}(${n});`),e.write(`if (${a} === INVALID) return INVALID;`),Qu(e,t,r.out,a)}return Qu(e,t,r.out,n)}}(e,t,r,n);break;case"custom":h=function(e,t,r,n){r=r._zod.def;{if(!r.fn)throw new O("custom schema without a predicate function");if(ac(r.fn))throw new Uu("z.compile: async custom predicates are not supported");var r=N(t,r.fn),i=N(t,Ju),t=D(t);e.write(`const ${t} = ${r}(${n});`),e.write(`if (${t} instanceof Promise) ${i}();`),e.write(`if (!${t}) return INVALID;`)}return n}(e,t,r,n);break;case"transform":h=function(e,t,r,n){r=r._zod.def;if(r.transform){if(ac(r.transform))throw new Uu("z.compile: async transforms are not supported");const i=r.transform;r=N(t,e=>{var t={value:e,issues:[],addIssue:Wu},e=i(e,t);return!(e instanceof Promise)&&0===t.issues.length?e:ju}),t=D(t);return e.write(`const ${t} = ${r}(${n});`),e.write(`if (${t} === INVALID) return INVALID;`),t}return n}(e,t,r,n);break;case"catch":h=function(e,r,t,n){const i=t._zod.def;if(!i.catchValue[cn])throw new O("catch with a callback (only a constant catch value compiles)",!1);const a=D(r),o=(e.write(`let ${a} = (() => {`),e.indented(e=>{var t=Fu(e,r,i.innerType,n);e.write(`return ${t};`)}),e.write("})();"),N(r,i.innerType)),s=N(r,i.catchValue),l=N(r,oc);return e.write(`if (${a} === INVALID) {`),e.indented(e=>{e.write(`${a} = ${l}(${o}, ${s}, ${n});`),e.write(`if (${a} === INVALID) return INVALID;`)}),e.write("}"),a}(e,t,r,n);break;default:throw new O("schema type "+o)}return null===h?null:Vu(e,t,r,h)}function ec(e){if(e._zod.def.coerce)return!0;var t=e._zod.def;switch(t.type){case"any":case"unknown":case"undefined":case"void":case"default":case"prefault":case"transform":case"custom":case"lazy":return!0;case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"never":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":return!1;case"nonoptional":return!!t.innerType&&ec(t.innerType);case"literal":return!!t.values?.includes(void 0);case"enum":return!!e._zod.values?.has(void 0);case"optional":case"nullable":case"readonly":case"success":return!t.innerType||ec(t.innerType);case"catch":return!0;case"union":return!t.options||t.options.some(ec);case"intersection":return t.left&&t.right?ec(t.left)&&ec(t.right):!0;case"pipe":return!t.in||ec(t.in);default:return!0}}function tc(e){return"optional"===e._zod.optin&&"optional"===e._zod.optout}function rc(e){var t=e._zod.def;switch(t.type){case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":case"never":case"success":return!1;case"literal":return!!t.values?.includes(void 0);case"enum":return!!e._zod.values?.has(void 0);case"optional":return!0;case"nullable":case"readonly":case"nonoptional":return!t.innerType||rc(t.innerType);case"union":return!t.options||t.options.some(rc);case"intersection":return!t.left||!t.right||rc(t.left)||rc(t.right);case"pipe":return!t.out||rc(t.out);default:return!0}}function nc(e,t,r,n){return Qu(e,t,r._zod.def.innerType,n)}function ic(t,r){for(let e=t.length-1;0<=e;e--)if(!("optin"===r?void 0!==t[e]._zod.optin:"optional"===t[e]._zod.optout))return e+1;return 0}function ac(e){return"function"==typeof e&&("AsyncFunction"===e.constructor.name||"AsyncFunction"===e[Symbol.toStringTag])}function oc(e,t,r){e=e._zod.run({value:r,issues:[]},{});return e&&"function"==typeof e.then?ju:0===e.issues.length?e.value:t()}function sc(e,t){return new e({type:"string",...u(t)})}function lc(e,t){return new e({type:"string",coerce:!0,...u(t)})}function uc(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...u(t)})}function cc(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...u(t)})}function dc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...u(t)})}function pc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...u(t)})}function mc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...u(t)})}function fc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...u(t)})}function hc(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...u(t)})}function gc(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...u(t)})}function vc(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...u(t)})}function bc(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...u(t)})}function yc(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...u(t)})}function wc(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...u(t)})}function kc(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...u(t)})}function _c(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...u(t)})}function Sc(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...u(t)})}function Ic(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...u(t)})}function xc(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...u(t)})}function $c(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...u(t)})}function Ec(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...u(t)})}function Cc(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...u(t)})}function Oc(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...u(t)})}function Nc(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...u(t)})}function Ac(e,t){return new e({type:"string",format:"credit_card",check:"string_format",abort:!1,...u(t)})}function Dc(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...u(t)})}var Pc={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Tc(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...u(t)})}function zc(e,t){return new e({type:"string",format:"date",check:"string_format",...u(t)})}function jc(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...u(t)})}function Lc(e,t){return new e({type:"string",format:"duration",check:"string_format",...u(t)})}function Uc(e,t){return new e({type:"number",checks:[],...u(t)})}function Rc(e,t){return new e({type:"number",coerce:!0,checks:[],...u(t)})}function Mc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...u(t)})}function Bc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...u(t)})}function Fc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...u(t)})}function Zc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...u(t)})}function Vc(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...u(t)})}function Gc(e,t){return new e({type:"boolean",...u(t)})}function Kc(e,t){return new e({type:"boolean",coerce:!0,...u(t)})}function qc(e,t){return new e({type:"bigint",...u(t)})}function Hc(e,t){return new e({type:"bigint",coerce:!0,...u(t)})}function Jc(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...u(t)})}function Wc(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...u(t)})}function Xc(e,t){return new e({type:"symbol",...u(t)})}function Yc(e,t){return new e({type:"undefined",...u(t)})}function Qc(e,t){return new e({type:"null",...u(t)})}function ed(e){return new e({type:"any"})}function td(e){return new e({type:"unknown"})}function rd(e,t){return new e({type:"never",...u(t)})}function nd(e,t){return new e({type:"void",...u(t)})}function id(e,t){return new e({type:"date",...u(t)})}function ad(e,t){return new e({type:"date",coerce:!0,...u(t)})}function od(e,t){return new e({type:"nan",...u(t)})}function sd(e,t){return new Ia({check:"less_than",...u(t),value:e,inclusive:!1})}function ld(e,t){return new Ia({check:"less_than",...u(t),value:e,inclusive:!0})}function ud(e,t){return new xa({check:"greater_than",...u(t),value:e,inclusive:!1})}function cd(e,t){return new xa({check:"greater_than",...u(t),value:e,inclusive:!0})}function dd(e){return ud(0,e)}function pd(e){return sd(0,e)}function md(e){return ld(0,e)}function fd(e){return cd(0,e)}function hd(e,t){return new $a({check:"multiple_of",...u(t),value:e})}function gd(e,t){return new Oa({check:"max_size",...u(t),maximum:e})}function vd(e,t){return new Na({check:"min_size",...u(t),minimum:e})}function bd(e,t){return new Aa({check:"size_equals",...u(t),size:e})}function yd(e,t){return new Da({check:"max_length",...u(t),maximum:e})}function wd(e,t){return new Pa({check:"min_length",...u(t),minimum:e})}function kd(e,t){return new Ta({check:"length_equals",...u(t),length:e})}function _d(e,t){return new ja({check:"string_format",format:"regex",...u(t),pattern:e})}function Sd(e){return new La({check:"string_format",format:"lowercase",...u(e)})}function Id(e){return new Ua({check:"string_format",format:"uppercase",...u(e)})}function xd(e,t){return new Ra({check:"string_format",format:"includes",...u(t),includes:e})}function $d(e,t){return new Ma({check:"string_format",format:"starts_with",...u(t),prefix:e})}function Ed(e,t){return new Ba({check:"string_format",format:"ends_with",...u(t),suffix:e})}function Cd(e,t,r){return new Za({check:"property",property:e,schema:t,...u(r)})}function Od(e){return Object.entries(e).map(([e,t])=>new Za({check:"property",property:e,schema:t}))}function Nd(e,t){return new Va({check:"mime_type",mime:e,...u(t)})}function Ad(e){return new Ga({check:"overwrite",tx:e})}function Dd(t){return Ad(e=>e.normalize(t))}function Pd(){return Ad(e=>e.trim())}function Td(){return Ad(e=>e.toLowerCase())}function zd(){return Ad(e=>e.toUpperCase())}function jd(){return Ad(e=>Or(e))}function Ld(e,t,r){return new e({type:"array",element:t,...u(r)})}function Ud(e,t){return new e({type:"file",...u(t)})}function Rd(e,t,r){r=u(r),r.abort??(r.abort=!0),e=new e({type:"custom",check:"custom",fn:t,...r});return e}function Md(e,t,r){return new e({type:"custom",check:"custom",fn:t,...u(r)})}function Bd(e,t){const r=Fd(t=>(t.addIssue=e=>{"string"==typeof e?t.issues.push(Qr(e,t.value,r._zod.def)):((e=e).fatal&&(e.continue=!1),e.code??(e.code="custom"),"input"in e||(e.input=t.value),e.inst??(e.inst=r),e.continue??(e.continue=!r._zod.def.abort),t.issues.push(Qr(e)))},e(t.value,t)),t);return r}function Fd(e,t){t=new wa({check:"custom",...u(t)});return t._zod.check=e,t}function Zd(r){var e=new wa({check:"describe"});return e._zod.onattach=[e=>{var t=zu.get(e)??{};zu.add(e,{...t,description:r})}],e._zod.check=()=>{},e}function Vd(r){var e=new wa({check:"meta"});return e._zod.onattach=[e=>{var t=zu.get(e)??{};zu.add(e,{...t,...r})}],e._zod.check=()=>{},e}function Gd(e,t){const n=u(t);let r=n.truthy??["true","1","yes","on","y","enabled"],i=n.falsy??["false","0","no","off","n","disabled"];"sensitive"!==n.case&&(r=r.map(e=>"string"==typeof e?e.toLowerCase():e),i=i.map(e=>"string"==typeof e?e.toLowerCase():e));const a=new Set(r),o=new Set(i);var t=e.Codec??Gs,s=e.Boolean??Fo;const l=new t({type:"pipe",in:new(e.String??Wa)({type:"string",error:n.error}),out:new s({type:"boolean",error:n.error}),transform:(e,t)=>{let r=e;return"sensitive"!==n.case&&(r=r.toLowerCase()),!!a.has(r)||!o.has(r)&&(t.issues.push({code:"invalid_value",expected:"stringbool",values:[...a,...o],input:t.value,inst:l,continue:!1}),{})},reverseTransform:(e,t)=>!0===e?r[0]||"true":i[0]||"false",error:n.error});return l._zod.bag.truthy=r,l._zod.bag.falsy=i,l._zod.bag.case=n.case??"insensitive",l}function Kd(e,t,r,n={}){n=u(n),t={check:"string_format",type:"string",format:t,fn:"function"==typeof r?r:e=>r.test(e),...n},r instanceof RegExp&&(t.pattern=r),n=new e(t);return n}function qd(e,...t){for(const r of t)for(const n of Reflect.ownKeys(r))Object.prototype.propertyIsEnumerable.call(r,n)&&$r(e,n,r[n])}function Hd(e){let t=e?.target??"draft-2020-12";return"draft-7"===(t="draft-4"===t?"draft-04":t)&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??zu,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??"ref",reused:e?.reused??"inline",intersections:[],external:e?.external??void 0}}function Jd(e,t,r,n,i){e="function"==typeof t.unrepresentable?t.unrepresentable({zodSchema:e,path:n.path,message:i}):t.unrepresentable;if("any"===e)return!1;if(void 0===e||"throw"===e)throw new Error(i);return Object.assign(r,e),!0}function Wd(e,t,r={path:[],schemaPath:[]}){var n=e._zod.def,i=t.seen.get(e);if(i)return i.count++,r.schemaPath.includes(e)&&(i.cycle=r.path),i.schema;var i={schema:{},count:1,cycle:void 0,path:r.path},a=(t.seen.set(e,i),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0,e._zod.toJSONSchema?.());if(a)i.schema=a;else{a={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,i.schema,a);else{var r=i.schema,o=t.processors[n.type];if(!o)throw new Error("[toJSONSchema]: Non-representable type encountered: "+n.type);o(e,t,r,a)}n=e._zod.parent;n&&(i.ref||(i.ref=n),Wd(n,t,a),t.seen.get(n).isParent=!0)}o=t.metadataRegistry.get(e),o&&qd(i.schema,o),"input"===t.io&&function e(t,r){const n=r??{seen:new Set};if(n.seen.has(t))return!1;n.seen.add(t);const i=t._zod.def;if("transform"===i.type)return!0;if("array"===i.type)return e(i.element,n);if("set"===i.type)return e(i.valueType,n);if("lazy"===i.type)return e(i.getter(),n);if("promise"===i.type||"optional"===i.type||"nonoptional"===i.type||"nullable"===i.type||"readonly"===i.type||"default"===i.type||"prefault"===i.type||"catch"===i.type)return e(i.innerType,n);if("intersection"===i.type)return e(i.left,n)||e(i.right,n);if("record"===i.type||"map"===i.type)return e(i.keyType,n)||e(i.valueType,n);if("pipe"===i.type)return!!t._zod.traits.has("$ZodCodec")||e(i.in,n)||e(i.out,n);if("object"===i.type){for(const a in i.shape)if(e(i.shape[a],n))return!0;return!1}if("union"===i.type){for(const o of i.options)if(e(o,n))return!0;return!1}if("tuple"===i.type){for(const s of i.items)if(e(s,n))return!0;return i.rest&&e(i.rest,n)?!0:!1}return!1}(e)&&(delete i.schema.examples,delete i.schema.default),"input"===t.io&&"_prefault"in i.schema&&((r=i.schema).default??(r.default=i.schema._prefault)),delete i.schema._prefault,a=t.seen.get(e);return a.schema}function Xd(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function Yd(s,e){const l=s.seen.get(e);if(!l)throw new Error("Unprocessed schema. This is a bug in Zod.");if(!s.external||s.sharedDefsExtractedFor!==s.external){var t=new Map;for(const c of s.seen.entries()){var r=s.metadataRegistry.get(c[0])?.id;if(r){var n=t.get(r);if(n&&n!==c[0])throw new Error(`Duplicate schema id "${r}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);t.set(r,c[0])}}var i=e=>{if(!e[1].schema.$ref){var t,r,n=e[1],{ref:i,defId:e}=(e=e,i="draft-2020-12"===s.target?"$defs":"definitions",s.external?(r=s.external.registry.get(e[0])?.id,t=s.external.uri??(e=>e),r?{ref:t(r)}:(r=e[1].defId??e[1].schema.id??"schema"+s.counter++,{defId:e[1].defId=r,ref:t("__shared")+`#/${i}/`+Xd(r)})):(t=`#/${i}/`,e[1]!==l||e[1].schema.id?{defId:r=e[1].schema.id??"__schema"+s.counter++,ref:t+Xd(r)}:{ref:"#"})),a=(n.def={...n.schema},e&&(n.defId=e),n.schema);for(const o in a)delete a[o];a.$ref=i}};if("throw"===s.cycles)for(const d of s.seen.entries()){var a=d[1];if(a.cycle)throw new Error(`Cycle detected: #/${a.cycle?.join("/")}/<root>

Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const p of s.seen.entries()){var o=p[1];if(e===p[0])i(p);else{if(s.external){var u=s.external.registry.get(p[0])?.id;if(e!==p[0]&&u){i(p);continue}}(s.metadataRegistry.get(p[0])?.id||o.cycle||1<o.count&&"ref"===s.reused)&&i(p)}}s.external&&(s.sharedDefsExtractedFor=s.external)}}var Qd=new Set(["type","properties","required","additionalProperties"]),ep=["oneOf","anyOf"];function tp(e){e=e.additionalProperties;return void 0!==e&&!1!==e&&"object"==typeof e&&null!==e&&Object.keys(e).length?e:null}function rp(e){var t=[];for(const s of e){if("object"!=typeof s||"object"!==s.type)return null;for(const l in s)if(!Qd.has(l))return null;t.push(s)}var r={},n=new Set;for(const u of t){for(const c in u.properties)if(!Object.prototype.hasOwnProperty.call(r,c)){var i=[];for(const d of t){const p=d.properties?.[c]??tp(d);null===p||void 0===p||i.some(e=>JSON.stringify(e)===JSON.stringify(p))||i.push(p)}var a=1===i.length?i[0]:rp(i)??{allOf:i};$r(r,c,a)}for(const m of u.required??[])n.add(m)}e={type:"object",properties:r};if(n.size&&(e.required=[...n]),t.every(e=>!1===e.additionalProperties))e.additionalProperties=!1;else{var o=[];for(const f of t){const h=tp(f);h&&!o.some(e=>JSON.stringify(e)===JSON.stringify(h))&&o.push(h)}1===o.length?e.additionalProperties=o[0]:1<o.length&&(e.additionalProperties={allOf:o})}return e}function np(p,e){var t=p.seen.get(e);if(!t)throw new Error("Unprocessed schema. This is a bug in Zod.");const m=e=>{var t=p.seen.get(e);if(null!==t.ref){var r=t.def??t.schema,n={...r},i=t.ref;if(t.ref=null,i){m(i);var a=p.seen.get(i),o=a.schema,s=(!o.$ref||"draft-07"!==p.target&&"draft-04"!==p.target&&"openapi-3.0"!==p.target?qd(r,o):(r.allOf=r.allOf??[],r.allOf.push(o)),qd(r,n),e._zod.parent===i);if(s)for(const u in r)"$ref"===u||"allOf"===u||u in n||delete r[u];if(o.$ref&&a.def)for(const c in r)"$ref"!==c&&"allOf"!==c&&c in a.def&&JSON.stringify(r[c])===JSON.stringify(a.def[c])&&delete r[c]}s=e._zod.parent;if(s&&s!==i){m(s);var l=p.seen.get(s);if(l?.schema.$ref&&(r.$ref=l.schema.$ref,l.def))for(const d in r)"$ref"!==d&&"allOf"!==d&&d in l.def&&JSON.stringify(r[d])===JSON.stringify(l.def[d])&&delete r[d]}p.override({zodSchema:e,jsonSchema:r,path:t.path??[]})}};if(!p.external||p.sharedEmitDoneFor!==p.external){for(const c of[...p.seen.entries()].reverse())m(c[0]);if("openapi-3.0"!==p.target)for(const d of p.seen.entries())!function e(t){var r=t.anyOf;if(Array.isArray(r)&&0!==r.length&&void 0===t.type){var n=[];for(const a of r){if(!a||"object"!=typeof a)return;e(a);var i=Object.keys(a);if(1!==i.length||"type"!==i[0])return;i=a.type;for(const o of Array.isArray(i)?i:[i]){if("string"!=typeof o)return;n.includes(o)||n.push(o)}}delete t.anyOf,t.type=1===n.length?n[0]:n}}(d[1].def??d[1].schema);if(p.intersections.length){var r=new Map;for(const f of p.seen.values())for(const h of[f.schema,f.def]){var n,i=h?.allOf;Array.isArray(i)&&((n=r.get(i))?n.push(h):r.set(i,[h]))}for(const g of p.intersections)for(const v of r.get(g)??[])!function(t){var r=t.allOf;if(Array.isArray(r)&&!(r.length<2)){for(const a of Qd)if(a in t)return;var n=r.filter(t=>ep.some(e=>Array.isArray(t[e])));let e=null;if(n.length){const o=n[0];n=ep.find(e=>Array.isArray(o[e]));if(1!==Object.keys(o).length)return;const s=r.filter(e=>e!==o);var i=o[n].map(e=>rp([...s,e]));if(i.some(e=>!e))return;e={[n]:i}}else e=rp(r);e&&(delete t.allOf,qd(t,e))}}(v)}}var a={};if("draft-2020-12"===p.target?a.$schema="https://json-schema.org/draft/2020-12/schema":"draft-07"===p.target?a.$schema="http://json-schema.org/draft-07/schema#":"draft-04"===p.target?a.$schema="http://json-schema.org/draft-04/schema#":p.target,p.external?.uri){var o=p.external.registry.get(e)?.id;if(!o)throw new Error("Schema is missing an `id` property");a.$id=p.external.uri(o)}qd(a,t.defId?t.schema:t.def??t.schema);var o=p.metadataRegistry.get(e)?.id,s=(void 0!==o&&a.id===o&&delete a.id,p.external?.defs??{});if(!p.external||p.sharedEmitDoneFor!==p.external)for(const b of p.seen.entries()){var l=b[1];l.def&&l.defId&&(l.def.id===l.defId&&delete l.def.id,$r(s,l.defId,l.def))}p.external&&(p.sharedEmitDoneFor=p.external),p.external||0<Object.keys(s).length&&("draft-2020-12"===p.target?a.$defs=s:a.definitions=s);try{var u=JSON.parse(JSON.stringify(a));return Object.defineProperty(u,"~standard",{value:{...e["~standard"],jsonSchema:{input:ap(e,"input",p.processors),output:ap(e,"output",p.processors)}},enumerable:!1,writable:!1}),u}catch(e){throw new Error("Error converting schema to JSON.")}}var ip=(t,r={})=>e=>{e=Hd({...e,processors:r});return Wd(t,e),Yd(e,t),np(e,t)},ap=(r,n,i={})=>e=>{var{libraryOptions:e,target:t}=e??{},e=Hd({...e??{},target:t,io:n,processors:i});return Wd(r,e),Yd(e,r),np(e,r)},op={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},sp=(e,t,r,n)=>{r.type="string";var{minimum:e,maximum:i,format:a,patterns:o,contentEncoding:s,laxFormat:l}=e._zod.bag;"number"==typeof e&&(r.minLength=e),"number"==typeof i&&(r.maxLength=i),a&&(r.format=op[a]??a,""===r.format&&delete r.format,"time"!==a&&!l||delete r.format),s&&(r.contentEncoding=s),o&&0<o.size&&(1===(e=[...o]).length?r.pattern=e[0].source:1<e.length&&(r.allOf=[...e.map(e=>({..."draft-07"===t.target||"draft-04"===t.target||"openapi-3.0"===t.target?{type:"string"}:{},pattern:e.source}))]))},lp=(e,t,r,n)=>{var{minimum:i,maximum:a,format:o,multipleOf:s,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag,o=("string"==typeof o&&o.includes("int")?r.type="integer":r.type="number","number"==typeof u&&u>=(i??Number.NEGATIVE_INFINITY)),c="number"==typeof l&&l<=(a??Number.POSITIVE_INFINITY),d="draft-04"===t.target||"openapi-3.0"===t.target;o?d?(r.minimum=u,r.exclusiveMinimum=!0):r.exclusiveMinimum=u:"number"==typeof i&&(r.minimum=i),c?d?(r.maximum=l,r.exclusiveMaximum=!0):r.exclusiveMaximum=l:"number"==typeof a&&(r.maximum=a),"number"==typeof s&&(Number.isFinite(s)&&0!==s?r.multipleOf=Math.abs(s):Jd(e,t,r,n,`A multipleOf divisor of ${s} cannot be represented in JSON Schema`))},up=(e,t,r,n)=>{r.type="boolean"},cp=(e,t,r,n)=>{Jd(e,t,r,n,"BigInt cannot be represented in JSON Schema")},dp=(e,t,r,n)=>{Jd(e,t,r,n,"Symbols cannot be represented in JSON Schema")},pp=(e,t,r,n)=>{"openapi-3.0"===t.target?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},mp=(e,t,r,n)=>{Jd(e,t,r,n,"Undefined cannot be represented in JSON Schema")},fp=(e,t,r,n)=>{Jd(e,t,r,n,"Void cannot be represented in JSON Schema")},hp=(e,t,r,n)=>{r.not={}},n=(e,t,r,n)=>{},gp=(e,t,r,n)=>{},vp=(e,t,r,n)=>{Jd(e,t,r,n,"Date cannot be represented in JSON Schema")},bp=(e,t,r,n)=>{e=br(e._zod.def.entries);0===e.length?r.not={}:(e.every(e=>"number"==typeof e)&&(r.type="number"),e.every(e=>"string"==typeof e)&&(r.type="string"),r.enum=e)},yp=(e,t,r,n)=>{var i=e._zod.def;if(0===i.values.length)r.not={};else{var a=[];for(const o of i.values)if(void 0===o){if(Jd(e,t,r,n,"Literal `undefined` cannot be represented in JSON Schema"))return}else if("bigint"==typeof o){if(Jd(e,t,r,n,"BigInt literals cannot be represented in JSON Schema"))return;a.push(Number(o))}else a.push(o);0!==a.length&&(1===a.length?(r.type=null===(i=a[0])?"null":typeof i,"draft-04"===t.target||"openapi-3.0"===t.target?r.enum=[i]:r.const=i):(a.every(e=>"number"==typeof e)&&(r.type="number"),a.every(e=>"string"==typeof e)&&(r.type="string"),a.every(e=>"boolean"==typeof e)&&(r.type="boolean"),a.every(e=>null===e)&&(r.type="null"),r.enum=a))}},wp=(e,t,r,n)=>{Jd(e,t,r,n,"NaN cannot be represented in JSON Schema")},kp=(e,t,r,n)=>{e=e._zod.pattern;if(!e)throw new Error("Pattern not found in template literal");r.type="string",r.pattern=e.source},_p=(e,t,r,n)=>{var i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:e,maximum:a,mime:o}=e._zod.bag;void 0!==e&&(i.minLength=e),void 0!==a&&(i.maxLength=a),o?1===o.length?(i.contentMediaType=o[0],Object.assign(r,i)):(Object.assign(r,i),r.anyOf=o.map(e=>({contentMediaType:e}))):Object.assign(r,i)},Sp=(e,t,r,n)=>{r.type="boolean"},Ip=(e,t,r,n)=>{Jd(e,t,r,n,"Custom types cannot be represented in JSON Schema")},xp=(e,t,r,n)=>{Jd(e,t,r,n,"Function types cannot be represented in JSON Schema")},$p=(e,t,r,n)=>{Jd(e,t,r,n,"Transforms cannot be represented in JSON Schema")},Ep=(e,t,r,n)=>{Jd(e,t,r,n,"Map cannot be represented in JSON Schema")},Cp=(e,t,r,n)=>{Jd(e,t,r,n,"Set cannot be represented in JSON Schema")},Op=(e,t,r,n)=>{var i=e._zod.def,{minimum:e,maximum:a}=e._zod.bag;"number"==typeof e&&(r.minItems=e),"number"==typeof a&&(r.maxItems=a),r.type="array",r.items=Wd(i.element,t,{...n,path:[...n.path,"items"]})};function Np(e){var t=e._zod.def;return"pipe"===t.type&&t.in._zod.traits.has("$ZodTransform")?Np(t.out):"catch"===t.type?Np(t.innerType):e._zod.optin}var Ap=(e,t,r,n)=>{var i=r;const a=e._zod.def;var o=a.shape,r=Object.getOwnPropertySymbols(o);if(!r.length||!Jd(e,t,i,n,"Symbol keys cannot be represented in JSON Schema")){i.type="object",i.properties={};for(const s in o)$r(i.properties,s,Wd(o[s],t,{...n,path:[...n.path,"properties",s]}));r=new Set(Object.keys(o)),e=new Set([...r].filter(e=>{e=a.shape[e];return"input"===t.io?void 0===Np(e):void 0===e._zod.optout}));0<e.size&&(i.required=Array.from(e)),"never"===a.catchall?._zod.def.type?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=Wd(a.catchall,t,{...n,path:[...n.path,"additionalProperties"]})):"output"===t.io&&(i.additionalProperties=!1)}},Dp=(e,r,t,n)=>{e=e._zod.def;const i=!1===e.inclusive;e=e.options.map((e,t)=>Wd(e,r,{...n,path:[...n.path,i?"oneOf":"anyOf",t]}));i?t.oneOf=e:t.anyOf=e},Pp=(e,t,r,n)=>{var e=e._zod.def,i=Wd(e.left,t,{...n,path:[...n.path,"allOf",0]}),e=Wd(e.right,t,{...n,path:[...n.path,"allOf",1]}),n=e=>"allOf"in e&&1===Object.keys(e).length,i=[...n(i)?i.allOf:[i],...n(e)?e.allOf:[e]];r.allOf=i,t.intersections.push(i)},Tp=(e,r,t,n)=>{var i=e._zod.def;t.type="array";const a="draft-2020-12"===r.target?"prefixItems":"items";var o="draft-2020-12"===r.target||"openapi-3.0"===r.target?"items":"additionalItems",s=i.items.map((e,t)=>Wd(e,r,{...n,path:[...n.path,a,t]})),o=i.rest?Wd(i.rest,r,{...n,path:[...n.path,o,..."openapi-3.0"===r.target?[i.items.length]:[]]}):null;let l=i.items.length;for(;0<l;){var u=i.items[l-1];if(!("input"===r.io?void 0!==Np(u):"optional"===u._zod.optout))break;l--}var c=i.items.length,d=!i.rest,{minimum:s,maximum:o}=("draft-2020-12"===r.target?(t.prefixItems=s,d?t.items=!1:o&&(t.items=o)):"openapi-3.0"===r.target?(t.items={anyOf:s},o&&t.items.anyOf.push(o)):(t.items=s,d?t.additionalItems=!1:o&&(t.additionalItems=o)),0<l&&(t.minItems=l),d&&(t.maxItems=c),e._zod.bag);"number"==typeof s&&(t.minItems=s),"number"==typeof o&&(t.maxItems=o)},zp=(e,t,r,n)=>{var i=r,r=e._zod.def,e=(i.type="object",r.keyType),a=e._zod.bag?.patterns;if("loose"===r.mode&&a&&0<a.size){var o=Wd(r.valueType,t,{...n,path:[...n.path,"patternProperties","*"]});i.patternProperties={};for(const s of a)$r(i.patternProperties,s.source,o)}else"draft-07"!==t.target&&"draft-2020-12"!==t.target||(i.propertyNames=Wd(r.keyType,t,{...n,path:[...n.path,"propertyNames"]})),i.additionalProperties=Wd(r.valueType,t,{...n,path:[...n.path,"additionalProperties"]});a=e._zod.values,n="input"===t.io&&void 0!==Np(r.valueType);!a||r.partial||n||0<(e=[...a].filter(e=>"string"==typeof e||"number"==typeof e)).length&&(i.required=e)},jp=(e,t,r,n)=>{var i=e._zod.def,n=Wd(i.innerType,t,n),e=t.seen.get(e);"openapi-3.0"===t.target?(e.ref=i.innerType,r.nullable=!0):r.anyOf=[n,{type:"null"}]},Lp=(e,t,r,n)=>{var i=e._zod.def;Wd(i.innerType,t,n),t.seen.get(e).ref=i.innerType},Up=Symbol();function Rp(e,t,r,n,i){let a=!1;e=JSON.stringify(e,(e,t)=>"bigint"!=typeof t?t:(a=!0,null));return a?(Jd(t,r,n,i,"BigInt defaults cannot be represented in JSON Schema"),Up):JSON.parse(e)}var Mp=(e,t,r,n)=>{var i=e._zod.def;Wd(i.innerType,t,n);t.seen.get(e).ref=i.innerType;i=Rp(i.defaultValue,e,t,r,n);i!==Up&&(r.default=i)},Bp=(e,t,r,n)=>{var i=e._zod.def;Wd(i.innerType,t,n),t.seen.get(e).ref=i.innerType,"input"===t.io&&(i=Rp(i.defaultValue,e,t,r,n))!==Up&&(r._prefault=i)},Fp=(e,t,r,n)=>{var i=e._zod.def;Wd(i.innerType,t,n),t.seen.get(e).ref=i.innerType;let a;try{a=i.catchValue(void 0)}catch{return void Jd(e,t,r,n,"Dynamic catch values are not supported in JSON Schema")}r.default=a},Zp=(e,t,r,n)=>{var i=e._zod.def,a=i.in._zod.traits.has("$ZodTransform"),a="input"!==t.io||a?i.out:i.in;Wd(a,t,n),t.seen.get(e).ref=a},Vp=(e,t,r,n)=>{var i=e._zod.def;Wd(i.innerType,t,n),t.seen.get(e).ref=i.innerType,r.readOnly=!0},Gp=(e,t,r,n)=>{var i=e._zod.def;Wd(i.innerType,t,n),t.seen.get(e).ref=i.innerType},Kp=(e,t,r,n)=>{var i=e._zod.def;Wd(i.innerType,t,n),t.seen.get(e).ref=i.innerType},qp=(e,t,r,n)=>{var i=e._zod.innerType;Wd(i,t,n),t.seen.get(e).ref=i},Hp={string:sp,number:lp,boolean:up,bigint:cp,symbol:dp,null:pp,undefined:mp,void:fp,never:hp,any:n,unknown:gp,date:vp,enum:bp,literal:yp,nan:wp,template_literal:kp,file:_p,success:Sp,custom:Ip,function:xp,transform:$p,map:Ep,set:Cp,array:Op,object:Ap,union:Dp,intersection:Pp,tuple:Tp,record:zp,nullable:jp,nonoptional:Lp,default:Mp,prefault:Bp,catch:Fp,pipe:Zp,readonly:Vp,promise:Gp,optional:Kp,lazy:qp};function Jp(e,t){if("_idmap"in e){var r=e,n=Hd({...t,processors:Hp}),i={};for(const c of r._idmap.entries()){var[,a]=c;Wd(a,n)}var o={},s={registry:r,uri:t?.uri,defs:i};n.external=s;for(const d of r._idmap.entries()){var[l,u]=d;Yd(n,u),$r(o,l,np(n,u))}return 0<Object.keys(i).length&&(s="draft-2020-12"===n.target?"$defs":"definitions",o.__shared={[s]:i}),{schemas:o}}r=Hd({...t,processors:Hp});return Wd(e,r),Yd(r,e),np(r,e)}var Wp=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let t=e?.target??"draft-2020-12";"draft-7"===(t="draft-4"===t?"draft-04":t)&&(t="draft-07"),this.ctx=Hd({processors:Hp,target:t,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return Wd(e,this.ctx,t)}emit(e,t){t&&(t.cycles&&(this.ctx.cycles=t.cycles),t.reused&&(this.ctx.reused=t.reused),t.external)&&(this.ctx.external=t.external),this.ctx.sharedDefsExtractedFor=void 0,this.ctx.sharedEmitDoneFor=void 0,Yd(this.ctx,e);const{"~standard":r,...n}=np(this.ctx,e);return n}},Xp={},n={},gp=(t(n,{ZodAny:()=>Zf,ZodArray:()=>Qf,ZodBase64:()=>sf,ZodBase64URL:()=>uf,ZodBigInt:()=>Df,ZodBigIntFormat:()=>Tf,ZodBoolean:()=>Nf,ZodCIDRv4:()=>rf,ZodCIDRv6:()=>af,ZodCUID:()=>Mm,ZodCUID2:()=>Fm,ZodCatch:()=>Hh,ZodCodec:()=>eg,ZodCreditCard:()=>mf,ZodCustom:()=>fg,ZodCustomStringFormat:()=>vf,ZodDate:()=>Xf,ZodDefault:()=>Mh,ZodDiscriminatedUnion:()=>ch,ZodE164:()=>df,ZodEmail:()=>Im,ZodEmoji:()=>jm,ZodEnum:()=>Ih,ZodExactOptional:()=>zh,ZodFile:()=>Oh,ZodFunction:()=>pg,ZodGUID:()=>$m,ZodIPv4:()=>Wm,ZodIPv6:()=>ef,ZodISODate:()=>km,ZodISODateTime:()=>wm,ZodISODuration:()=>Sm,ZodISOTime:()=>_m,ZodIntersection:()=>ph,ZodJWT:()=>hf,ZodKSUID:()=>Hm,ZodLazy:()=>lg,ZodLiteral:()=>Eh,ZodMAC:()=>Ym,ZodMap:()=>wh,ZodNaN:()=>Wh,ZodNanoID:()=>Um,ZodNever:()=>qf,ZodNonOptional:()=>Vh,ZodNull:()=>Bf,ZodNullable:()=>Lh,ZodNumber:()=>_f,ZodNumberFormat:()=>If,ZodObject:()=>rh,ZodOptional:()=>Ph,ZodPipe:()=>Yh,ZodPrefault:()=>Fh,ZodPreprocess:()=>ng,ZodPromise:()=>cg,ZodReadonly:()=>ig,ZodRecord:()=>gh,ZodSet:()=>_h,ZodString:()=>vm,ZodStringFormat:()=>ym,ZodSuccess:()=>Kh,ZodSymbol:()=>Lf,ZodTemplateLiteral:()=>og,ZodTransform:()=>Ah,ZodTuple:()=>fh,ZodType:()=>l,ZodULID:()=>Vm,ZodURL:()=>Pm,ZodUUID:()=>Cm,ZodUndefined:()=>Rf,ZodUnion:()=>oh,ZodUnknown:()=>Gf,ZodVoid:()=>Jf,ZodXID:()=>Km,ZodXor:()=>lh,_ZodString:()=>gm,_default:()=>Bh,_function:()=>mg,any:()=>Vf,array:()=>eh,base64:()=>lf,base64url:()=>cf,bigint:()=>Pf,boolean:()=>Af,catch:()=>Jh,check:()=>hg,cidrv4:()=>nf,cidrv6:()=>of,codec:()=>tg,creditCard:()=>ff,cuid:()=>Bm,cuid2:()=>Zm,custom:()=>gg,date:()=>Yf,describe:()=>yg,discriminatedUnion:()=>dh,e164:()=>pf,email:()=>xm,emoji:()=>Lm,enum:()=>xh,exactOptional:()=>jh,file:()=>Nh,float32:()=>$f,float64:()=>Ef,function:()=>mg,guid:()=>Em,hash:()=>kf,hex:()=>wf,hostname:()=>yf,httpUrl:()=>zm,instanceof:()=>kg,int:()=>xf,int32:()=>Cf,int64:()=>zf,intersection:()=>mh,invertCodec:()=>rg,ipv4:()=>Xm,ipv6:()=>tf,json:()=>Sg,jwt:()=>gf,keyof:()=>th,ksuid:()=>Jm,lazy:()=>ug,literal:()=>Ch,looseObject:()=>ah,looseRecord:()=>yh,mac:()=>Qm,map:()=>kh,meta:()=>wg,nan:()=>Xh,nanoid:()=>Rm,nativeEnum:()=>$h,never:()=>Hf,nonoptional:()=>Gh,null:()=>Ff,nullable:()=>Uh,nullish:()=>Rh,number:()=>Sf,object:()=>nh,optional:()=>Th,partialRecord:()=>bh,pipe:()=>Qh,prefault:()=>Zh,preprocess:()=>Ig,promise:()=>dg,readonly:()=>ag,record:()=>vh,refine:()=>vg,set:()=>Sh,strictObject:()=>ih,string:()=>bm,stringFormat:()=>bf,stringbool:()=>_g,success:()=>qh,superRefine:()=>bg,symbol:()=>Uf,templateLiteral:()=>sg,transform:()=>Dh,tuple:()=>hh,uint32:()=>Of,uint64:()=>jf,ulid:()=>Gm,undefined:()=>Mf,union:()=>sh,unknown:()=>Kf,url:()=>Tm,uuid:()=>Om,uuidv4:()=>Nm,uuidv6:()=>Am,uuidv7:()=>Dm,void:()=>Wf,xid:()=>qm,xor:()=>uh}),{}),Yp=(t(gp,{endsWith:()=>Ed,gt:()=>ud,gte:()=>cd,includes:()=>xd,length:()=>kd,lowercase:()=>Sd,lt:()=>sd,lte:()=>ld,maxLength:()=>yd,maxSize:()=>gd,mime:()=>Nd,minLength:()=>wd,minSize:()=>vd,multipleOf:()=>hd,negative:()=>pd,nonnegative:()=>fd,nonpositive:()=>md,normalize:()=>Dd,overwrite:()=>Ad,positive:()=>dd,properties:()=>Od,property:()=>Cd,regex:()=>_d,size:()=>bd,slugify:()=>jd,startsWith:()=>$d,toLowerCase:()=>Td,toUpperCase:()=>zd,trim:()=>Pd,uppercase:()=>Id}),new WeakSet([Object.prototype,Error.prototype]));function Qp(e,t,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){var e=r(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0})}})}var em=(e,t)=>{In.init(e,t),e.name="ZodError";t=Object.getPrototypeOf(e);Yp.has(t)||(Yp.add(t),Qp(t,"format",t=>e=>En(t,e)),Qp(t,"flatten",t=>e=>$n(t,e)),Qp(t,"addIssue",t=>e=>{t.issues.push(e),t.message=JSON.stringify(t.issues,yr,2)}),Qp(t,"addIssues",t=>e=>{t.issues.push(...e),t.message=JSON.stringify(t.issues,yr,2)}),Object.defineProperty(t,"isEmpty",{configurable:!0,enumerable:!1,get(){return 0===this.issues.length}}))},tm=s("ZodError",em),rm=s("ZodError",em,void 0,{Parent:Error}),nm=Dn(rm),im=Tn(rm),am=jn(rm),om=Un(rm),sm=Vn(rm),lm=Kn(rm),um=Hn(rm),cm=Wn(rm),dm=Yn(rm),pm=ei(rm),mm=ri(rm),fm=ii(rm);function hm(){bn.memoizer||yn({memoizer:pl})}var l=s("ZodType",(e,t)=>(bn.localeError||yn(Ol()),v.init(e,t),e.def=t,e.type=t.type,e),{check(...e){var t=this.def;return this.clone(o.mergeDefs(t,{checks:[...t.checks??[],...e.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Rr(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(vg(e,t))},superRefine(e,t){return this.check(bg(e,t))},overwrite(e){return this.check(Ad(e))},optional(){return Th(this)},exactOptional(){return jh(this)},nullable(){return Uh(this)},nullish(){return Th(Uh(this))},nonoptional(e){return Gh(this,e)},array(){return eh(this)},or(e){return sh([this,e])},and(e){return mh(this,e)},transform(e){return Qh(this,Dh(e))},default(e){return Bh(this,e)},prefault(e){return Zh(this,e)},catch(e){return Jh(this,e)},pipe(e){return Qh(this,e)},readonly(){return ag(this)},describe(e){var t=this.clone();return zu.add(t,{description:e}),t},meta(...e){var t;return 0===e.length?zu.get(this):(t=this.clone(),zu.add(t,e[0]),t)},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return 0===t.length?e(this):e(this,...t)},get"~standard"(){return o.hide(this,"~standard",{...Ja(this),jsonSchema:{input:ap(this,"input"),output:ap(this,"output")}})},set"~standard"(e){o.own(this,"~standard",e)},parse:function e(t,r){return nm(this,t,r,{callee:e})},parseAsync:async function e(t,r){return im(this,t,r,{callee:e})},safeParse(e,t){return am(this,e,t)},async safeParseAsync(e,t){return om(this,e,t)},get spa(){return this.safeParseAsync},set spa(e){o.own(this,"spa",e)},encode:function e(t,r){return sm(this,t,r,{callee:e})},decode:function e(t,r){return lm(this,t,r,{callee:e})},encodeAsync:async function e(t,r){return um(this,t,r,{callee:e})},decodeAsync:async function e(t,r){return cm(this,t,r,{callee:e})},safeEncode(e,t){return dm(this,e,t)},safeDecode(e,t){return pm(this,e,t)},async safeEncodeAsync(e,t){return mm(this,e,t)},async safeDecodeAsync(e,t){return fm(this,e,t)},get toJSONSchema(){return o.own(this,"toJSONSchema",ip(this,{}))},set toJSONSchema(e){o.own(this,"toJSONSchema",e)},get description(){return zu.get(this)?.description},get _def(){return this._zod.def}}),gm=s("_ZodString",(n,e)=>{Wa.init(n,e),l.init(n,e),n._zod.processJSONSchema=(e,t,r)=>sp(n,e,t);e=n._zod.bag;n.format=e.format??null,n.minLength=e.minimum??null,n.maxLength=e.maximum??null},{regex(...e){return this.check(_d(...e))},includes(...e){return this.check(xd(...e))},startsWith(...e){return this.check($d(...e))},endsWith(...e){return this.check(Ed(...e))},min(...e){return this.check(wd(...e))},max(...e){return this.check(yd(...e))},length(...e){return this.check(kd(...e))},nonempty(...e){return this.check(wd(1,...e))},lowercase(e){return this.check(Sd(e))},uppercase(e){return this.check(Id(e))},trim(){return this.check(Pd())},normalize(...e){return this.check(Dd(...e))},toLowerCase(){return this.check(Td())},toUpperCase(){return this.check(zd())},slugify(){return this.check(jd())}}),vm=s("ZodString",(e,t)=>{Wa.init(e,t),gm.init(e,t)},{email(e){return this.check(uc(Im,e))},url(e){return this.check(hc(Pm,e))},jwt(e){return this.check(Dc(hf,e))},emoji(e){return this.check(gc(jm,e))},guid(e){return this.check(cc($m,e))},uuid(e){return this.check(dc(Cm,e))},uuidv4(e){return this.check(pc(Cm,e))},uuidv6(e){return this.check(mc(Cm,e))},uuidv7(e){return this.check(fc(Cm,e))},nanoid(e){return this.check(vc(Um,e))},cuid(e){return this.check(bc(Mm,e))},cuid2(e){return this.check(yc(Fm,e))},ulid(e){return this.check(wc(Vm,e))},base64(e){return this.check(Cc(sf,e))},base64url(e){return this.check(Oc(uf,e))},xid(e){return this.check(kc(Km,e))},ksuid(e){return this.check(_c(Hm,e))},ipv4(e){return this.check(Sc(Wm,e))},ipv6(e){return this.check(Ic(ef,e))},cidrv4(e){return this.check($c(rf,e))},cidrv6(e){return this.check(Ec(af,e))},e164(e){return this.check(Nc(df,e))},datetime(e){return this.check(Tc(wm,e))},date(e){return this.check(zc(km,e))},time(e){return this.check(jc(_m,e))},duration(e){return this.check(Lc(Sm,e))}});function bm(e){return sc(vm,e)}var ym=s("ZodStringFormat",(e,t)=>{Xa.init(e,t),gm.init(e,t)}),wm=s("ZodISODateTime",(e,t)=>{vo.init(e,t),ym.init(e,t)}),km=s("ZodISODate",(e,t)=>{bo.init(e,t),ym.init(e,t)}),_m=s("ZodISOTime",(e,t)=>{yo.init(e,t),ym.init(e,t)}),Sm=s("ZodISODuration",(e,t)=>{wo.init(e,t),ym.init(e,t)}),Im=s("ZodEmail",(e,t)=>{eo.init(e,t),ym.init(e,t)});function xm(e){return uc(Im,e)}var $m=s("ZodGUID",(e,t)=>{Ya.init(e,t),ym.init(e,t)});function Em(e){return cc($m,e)}var Cm=s("ZodUUID",(e,t)=>{Qa.init(e,t),ym.init(e,t)});function Om(e){return dc(Cm,e)}function Nm(e){return pc(Cm,e)}function Am(e){return mc(Cm,e)}function Dm(e){return fc(Cm,e)}var Pm=s("ZodURL",(e,t)=>{lo.init(e,t),ym.init(e,t)});function Tm(e){return hc(Pm,e)}function zm(e){return hc(Pm,{protocol:oi.httpProtocol,hostname:oi.domain,...o.normalizeParams(e)})}var jm=s("ZodEmoji",(e,t)=>{uo.init(e,t),ym.init(e,t)});function Lm(e){return gc(jm,e)}var Um=s("ZodNanoID",(e,t)=>{co.init(e,t),ym.init(e,t)});function Rm(e){return vc(Um,e)}var Mm=s("ZodCUID",(e,t)=>{po.init(e,t),ym.init(e,t)});function Bm(e){return bc(Mm,e)}var Fm=s("ZodCUID2",(e,t)=>{mo.init(e,t),ym.init(e,t)});function Zm(e){return yc(Fm,e)}var Vm=s("ZodULID",(e,t)=>{fo.init(e,t),ym.init(e,t)});function Gm(e){return wc(Vm,e)}var Km=s("ZodXID",(e,t)=>{ho.init(e,t),ym.init(e,t)});function qm(e){return kc(Km,e)}var Hm=s("ZodKSUID",(e,t)=>{go.init(e,t),ym.init(e,t)});function Jm(e){return _c(Hm,e)}var Wm=s("ZodIPv4",(e,t)=>{ko.init(e,t),ym.init(e,t)});function Xm(e){return Sc(Wm,e)}var Ym=s("ZodMAC",(e,t)=>{xo.init(e,t),ym.init(e,t)});function Qm(e){return xc(Ym,e)}var ef=s("ZodIPv6",(e,t)=>{Io.init(e,t),ym.init(e,t)});function tf(e){return Ic(ef,e)}var rf=s("ZodCIDRv4",(e,t)=>{$o.init(e,t),ym.init(e,t)});function nf(e){return $c(rf,e)}var af=s("ZodCIDRv6",(e,t)=>{Co.init(e,t),ym.init(e,t)});function of(e){return Ec(af,e)}var sf=s("ZodBase64",(e,t)=>{No.init(e,t),ym.init(e,t)});function lf(e){return Cc(sf,e)}var uf=s("ZodBase64URL",(e,t)=>{Do.init(e,t),ym.init(e,t)});function cf(e){return Oc(uf,e)}var df=s("ZodE164",(e,t)=>{Po.init(e,t),ym.init(e,t)});function pf(e){return Nc(df,e)}var mf=s("ZodCreditCard",(e,t)=>{jo.init(e,t),ym.init(e,t)});function ff(e){return Ac(mf,e)}var hf=s("ZodJWT",(e,t)=>{Uo.init(e,t),ym.init(e,t)});function gf(e){return Dc(hf,e)}var vf=s("ZodCustomStringFormat",(e,t)=>{Ro.init(e,t),ym.init(e,t)});function bf(e,t,r={}){return Kd(vf,e,t,r)}function yf(e){return Kd(vf,"hostname",oi.hostname,e)}function wf(e){return Kd(vf,"hex",oi.hex,e)}function kf(e,t){var e=e+"_"+(t?.enc??"hex"),r=oi[e];if(r)return Kd(vf,e,r,t);throw new Error("Unrecognized hash format: "+e)}var _f=s("ZodNumber",(n,e)=>{Mo.init(n,e),l.init(n,e),n._zod.processJSONSchema=(e,t,r)=>lp(n,e,t,r);e=n._zod.bag;n.minValue=Math.max(e.minimum??Number.NEGATIVE_INFINITY,e.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,n.maxValue=Math.min(e.maximum??Number.POSITIVE_INFINITY,e.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,n.isInt=(e.format??"").includes("int")||Number.isSafeInteger(e.multipleOf??.5),n.isFinite=!0,n.format=e.format??null},{gt(e,t){return this.check(ud(e,t))},gte(e,t){return this.check(cd(e,t))},min(e,t){return this.check(cd(e,t))},lt(e,t){return this.check(sd(e,t))},lte(e,t){return this.check(ld(e,t))},max(e,t){return this.check(ld(e,t))},int(e){return this.check(xf(e))},safe(e){return this.check(xf(e))},positive(e){return this.check(ud(0,e))},nonnegative(e){return this.check(cd(0,e))},negative(e){return this.check(sd(0,e))},nonpositive(e){return this.check(ld(0,e))},multipleOf(e,t){return this.check(hd(e,t))},step(e,t){return this.check(hd(e,t))},finite(){return this}});function Sf(e){return Uc(_f,e)}var If=s("ZodNumberFormat",(e,t)=>{Bo.init(e,t),_f.init(e,t)});function xf(e){return Mc(If,e)}function $f(e){return Bc(If,e)}function Ef(e){return Fc(If,e)}function Cf(e){return Zc(If,e)}function Of(e){return Vc(If,e)}var Nf=s("ZodBoolean",(e,t)=>{Fo.init(e,t),l.init(e,t),e._zod.processJSONSchema=(e,t,r)=>up(0,0,t)});function Af(e){return Gc(Nf,e)}var Df=s("ZodBigInt",(n,e)=>{Zo.init(n,e),l.init(n,e),n._zod.processJSONSchema=(e,t,r)=>cp(n,e,t,r);e=n._zod.bag;n.minValue=e.minimum??null,n.maxValue=e.maximum??null,n.format=e.format??null},{gte(e,t){return this.check(cd(e,t))},min(e,t){return this.check(cd(e,t))},gt(e,t){return this.check(ud(e,t))},lt(e,t){return this.check(sd(e,t))},lte(e,t){return this.check(ld(e,t))},max(e,t){return this.check(ld(e,t))},positive(e){return this.check(ud(BigInt(0),e))},negative(e){return this.check(sd(BigInt(0),e))},nonpositive(e){return this.check(ld(BigInt(0),e))},nonnegative(e){return this.check(cd(BigInt(0),e))},multipleOf(e,t){return this.check(hd(e,t))}});function Pf(e){return qc(Df,e)}var Tf=s("ZodBigIntFormat",(e,t)=>{Vo.init(e,t),Df.init(e,t)});function zf(e){return Jc(Tf,e)}function jf(e){return Wc(Tf,e)}var Lf=s("ZodSymbol",(n,e)=>{Go.init(n,e),l.init(n,e),n._zod.processJSONSchema=(e,t,r)=>dp(n,e,t,r)});function Uf(e){return Xc(Lf,e)}var Rf=s("ZodUndefined",(n,e)=>{Ko.init(n,e),l.init(n,e),n._zod.processJSONSchema=(e,t,r)=>mp(n,e,t,r)});function Mf(e){return Yc(Rf,e)}var Bf=s("ZodNull",(e,t)=>{qo.init(e,t),l.init(e,t),e._zod.processJSONSchema=(e,t,r)=>pp(0,e,t)});function Ff(e){return Qc(Bf,e)}var Zf=s("ZodAny",(e,t)=>{Ho.init(e,t),l.init(e,t),e._zod.processJSONSchema=(e,t,r)=>{}});function Vf(){return ed(Zf)}var Gf=s("ZodUnknown",(e,t)=>{Jo.init(e,t),l.init(e,t),e._zod.processJSONSchema=(e,t,r)=>{}});function Kf(){return td(Gf)}var qf=s("ZodNever",(e,t)=>{Wo.init(e,t),l.init(e,t),e._zod.processJSONSchema=(e,t,r)=>hp(0,0,t)});function Hf(e){return rd(qf,e)}var Jf=s("ZodVoid",(n,e)=>{Xo.init(n,e),l.init(n,e),n._zod.processJSONSchema=(e,t,r)=>fp(n,e,t,r)});function Wf(e){return nd(Jf,e)}var Xf=s("ZodDate",(n,e)=>{Yo.init(n,e),l.init(n,e),n._zod.processJSONSchema=(e,t,r)=>vp(n,e,t,r),n.min=(e,t)=>n.check(cd(e,t)),n.max=(e,t)=>n.check(ld(e,t));e=n._zod.bag;n.minDate=e.minimum?new Date(e.minimum):null,n.maxDate=e.maximum?new Date(e.maximum):null});function Yf(e){return id(Xf,e)}var Qf=s("ZodArray",(n,e)=>{hm(),es.init(n,e),l.init(n,e),n._zod.processJSONSchema=(e,t,r)=>Op(n,e,t,r),n.element=e.element},{min(e,t){return this.check(wd(e,t))},nonempty(e){return this.check(wd(1,e))},max(e,t){return this.check(yd(e,t))},length(e,t){return this.check(kd(e,t))},unwrap(){return this.element}});function eh(e,t){return Ld(Qf,e,t)}function th(e){e=e._zod.def.shape;return xh(Object.keys(e))}var rh=s("ZodObject",(n,e)=>{hm(),ss.init(n,e),l.init(n,e),n._zod.processJSONSchema=(e,t,r)=>Ap(n,e,t,r),o.installLazyProp(n,"shape",e=>e._zod.def.shape,!1)},{keyof(){return xh(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:Kf()})},loose(){return this.clone({...this._zod.def,catchall:Kf()})},strict(){return this.clone({...this._zod.def,catchall:Hf()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return o.extend(this,e)},safeExtend(e){return o.safeExtend(this,e)},merge(e){return o.merge(this,e)},pick(e){return o.pick(this,e)},omit(e){return o.omit(this,e)},partial(...e){return o.partial(Ph,this,e[0])},exactPartial(...e){return o.partial(zh,this,e[0],"exactPartial")},required(...e){return o.required(Vh,this,e[0])}});function nh(e,t){e={type:"object",shape:e??{},...o.normalizeParams(t)};return new rh(e)}function ih(e,t){return new rh({type:"object",shape:e,catchall:Hf(),...o.normalizeParams(t)})}function ah(e,t){return new rh({type:"object",shape:e,catchall:Kf(),...o.normalizeParams(t)})}var oh=s("ZodUnion",(n,e)=>{us.init(n,e),l.init(n,e),n._zod.processJSONSchema=(e,t,r)=>Dp(n,e,t,r),n.options=e.options});function sh(e,t){return new oh({type:"union",options:e,...o.normalizeParams(t)})}var lh=s("ZodXor",(n,e)=>{oh.init(n,e),ds.init(n,e),n._zod.processJSONSchema=(e,t,r)=>Dp(n,e,t,r),n.options=e.options});function uh(e,t){return new lh({type:"union",options:e,inclusive:!1,...o.normalizeParams(t)})}var ch=s("ZodDiscriminatedUnion",(e,t)=>{oh.init(e,t),ms.init(e,t)});function dh(e,t,r){return new ch({type:"union",options:t,discriminator:e,...o.normalizeParams(r)})}var ph=s("ZodIntersection",(n,e)=>{fs.init(n,e),l.init(n,e),n._zod.processJSONSchema=(e,t,r)=>Pp(n,e,t,r)});function mh(e,t){return new ph({type:"intersection",left:e,right:t})}var fh=s("ZodTuple",(n,e)=>{hm(),vs.init(n,e),l.init(n,e),n._zod.processJSONSchema=(e,t,r)=>Tp(n,e,t,r)},{rest(e){return this.clone({...this._zod.def,rest:e})},partial(){var e=this._zod.def;if(e.checks?.length)throw new Error(".partial() cannot be used on tuple schemas containing refinements");return this.clone({...e,items:e.items.map(e=>new Ph({type:"optional",innerType:e}))})}});function hh(e,t,r){var n=t instanceof v;return new fh({type:"tuple",items:e,rest:n?t:null,...o.normalizeParams(n?r:t)})}var gh=s("ZodRecord",(n,e)=>{hm(),ks.init(n,e),l.init(n,e),n._zod.processJSONSchema=(e,t,r)=>zp(n,e,t,r),n.keyType=e.keyType,n.valueType=e.valueType});function vh(e,t,r){return t&&t._zod?new gh({type:"record",keyType:e,valueType:t,...o.normalizeParams(r)}):new gh({type:"record",keyType:bm(),valueType:e,...o.normalizeParams(t)})}function bh(e,t,r){return new gh({type:"record",keyType:e,valueType:t,...o.normalizeParams(r),partial:!0})}function yh(e,t,r){return new gh({type:"record",keyType:e,valueType:t,mode:"loose",...o.normalizeParams(r)})}var wh=s("ZodMap",(n,e)=>{hm(),_s.init(n,e),l.init(n,e),n._zod.processJSONSchema=(e,t,r)=>Ep(n,e,t,r),n.keyType=e.keyType,n.valueType=e.valueType,n.min=(...e)=>n.check(vd(...e)),n.nonempty=e=>n.check(vd(1,e)),n.max=(...e)=>n.check(gd(...e)),n.size=(...e)=>n.check(bd(...e))});function kh(e,t,r){return new wh({type:"map",keyType:e,valueType:t,...o.normalizeParams(r)})}var _h=s("ZodSet",(n,e)=>{hm(),Is.init(n,e),l.init(n,e),n._zod.processJSONSchema=(e,t,r)=>Cp(n,e,t,r),n.min=(...e)=>n.check(vd(...e)),n.nonempty=e=>n.check(vd(1,e)),n.max=(...e)=>n.check(gd(...e)),n.size=(...e)=>n.check(bd(...e))});function Sh(e,t){return new _h({type:"set",valueType:e,...o.normalizeParams(t)})}var Ih=s("ZodEnum",(n,i)=>{$s.init(n,i),l.init(n,i),n._zod.processJSONSchema=(e,t,r)=>bp(n,0,t),n.enum=i.entries,n.options=Object.values(i.entries);const a=new Set(Object.keys(i.entries));n.extract=(e,t)=>{var r={};for(const n of e){if(!a.has(n))throw new Error(`Key ${n} not found in enum`);r[n]=i.entries[n]}return new Ih({...i,checks:[],...o.normalizeParams(t),entries:r})},n.exclude=(e,t)=>{var r={...i.entries};for(const n of e){if(!a.has(n))throw new Error(`Key ${n} not found in enum`);delete r[n]}return new Ih({...i,checks:[],...o.normalizeParams(t),entries:r})}});function xh(e,t){e=Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e;return new Ih({type:"enum",entries:e,...o.normalizeParams(t)})}function $h(e,t){return new Ih({type:"enum",entries:e,...o.normalizeParams(t)})}var Eh=s("ZodLiteral",(n,e)=>{Es.init(n,e),l.init(n,e),n._zod.processJSONSchema=(e,t,r)=>yp(n,e,t,r),n.values=new Set(e.values),Object.defineProperty(n,"value",{get(){if(1<e.values.length)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return e.values[0]}})});function Ch(e,t){return new Eh({type:"literal",values:Array.isArray(e)?e:[e],...o.normalizeParams(t)})}var Oh=s("ZodFile",(n,e)=>{Cs.init(n,e),l.init(n,e),n._zod.processJSONSchema=(e,t,r)=>_p(n,0,t),n.min=(e,t)=>n.check(vd(e,t)),n.max=(e,t)=>n.check(gd(e,t)),n.mime=(e,t)=>n.check(Nd(Array.isArray(e)?e:[e],t))});function Nh(e){return Ud(Oh,e)}var Ah=s("ZodTransform",(n,r)=>{hm(),Os.init(n,r),l.init(n,r),n._zod.processJSONSchema=(e,t,r)=>$p(n,e,t,r),n._zod.parse=(t,e)=>{if("backward"===e.direction)throw new vn(n.constructor.name);t.addIssue=e=>{"string"==typeof e?t.issues.push(o.issue(e,t.value,r)):((e=e).fatal&&(e.continue=!1),e.code??(e.code="custom"),"input"in e||(e.input=t.value),e.inst??(e.inst=n),t.issues.push(o.issue(e)))};e=r.transform(t.value,t);return e instanceof Promise?e.then(e=>(t.value=e,t)):(t.value=e,t)}});function Dh(e){return new Ah({type:"transform",transform:e})}var Ph=s("ZodOptional",(n,e)=>{As.init(n,e),l.init(n,e),n._zod.processJSONSchema=(e,t,r)=>Kp(n,e,0,r),n.unwrap=()=>n._zod.def.innerType});function Th(e){return new Ph({type:"optional",innerType:e})}var zh=s("ZodExactOptional",(n,e)=>{Ds.init(n,e),l.init(n,e),n._zod.processJSONSchema=(e,t,r)=>Kp(n,e,0,r),n.unwrap=()=>n._zod.def.innerType});function jh(e){return new zh({type:"optional",innerType:e})}var Lh=s("ZodNullable",(n,e)=>{Ps.init(n,e),l.init(n,e),n._zod.processJSONSchema=(e,t,r)=>jp(n,e,t,r),n.unwrap=()=>n._zod.def.innerType});function Uh(e){return new Lh({type:"nullable",innerType:e})}function Rh(e){return Th(Uh(e))}var Mh=s("ZodDefault",(n,e)=>{Ts.init(n,e),l.init(n,e),n._zod.processJSONSchema=(e,t,r)=>Mp(n,e,t,r),n.unwrap=()=>n._zod.def.innerType,n.removeDefault=n.unwrap});function Bh(e,t){return new Mh({type:"default",innerType:e,get defaultValue(){return"function"==typeof t?t():o.shallowClone(t)}})}var Fh=s("ZodPrefault",(n,e)=>{js.init(n,e),l.init(n,e),n._zod.processJSONSchema=(e,t,r)=>Bp(n,e,t,r),n.unwrap=()=>n._zod.def.innerType});function Zh(e,t){return new Fh({type:"prefault",innerType:e,get defaultValue(){return"function"==typeof t?t():o.shallowClone(t)}})}var Vh=s("ZodNonOptional",(n,e)=>{Ls.init(n,e),l.init(n,e),n._zod.processJSONSchema=(e,t,r)=>Lp(n,e,0,r),n.unwrap=()=>n._zod.def.innerType});function Gh(e,t){return new Vh({type:"nonoptional",innerType:e,...o.normalizeParams(t)})}var Kh=s("ZodSuccess",(e,t)=>{Rs.init(e,t),l.init(e,t),e._zod.processJSONSchema=(e,t,r)=>Sp(0,0,t),e.unwrap=()=>e._zod.def.innerType});function qh(e){return new Kh({type:"success",innerType:e})}var Hh=s("ZodCatch",(n,e)=>{Bs.init(n,e),l.init(n,e),n._zod.processJSONSchema=(e,t,r)=>Fp(n,e,t,r),n.unwrap=()=>n._zod.def.innerType,n.removeCatch=n.unwrap});function Jh(e,t){return new Hh({type:"catch",innerType:e,catchValue:"function"==typeof t?t:o.constantCatch(t)})}var Wh=s("ZodNaN",(n,e)=>{Fs.init(n,e),l.init(n,e),n._zod.processJSONSchema=(e,t,r)=>wp(n,e,t,r)});function Xh(e){return od(Wh,e)}var Yh=s("ZodPipe",(n,e)=>{Zs.init(n,e),l.init(n,e),n._zod.processJSONSchema=(e,t,r)=>Zp(n,e,0,r),n.in=e.in,n.out=e.out});function Qh(e,t){return new Yh({type:"pipe",in:e,out:t})}var eg=s("ZodCodec",(e,t)=>{Yh.init(e,t),Gs.init(e,t)});function tg(e,t,r){return new eg({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}function rg(e){e=e._zod.def;return new eg({type:"pipe",in:e.out,out:e.in,transform:e.reverseTransform,reverseTransform:e.transform})}var ng=s("ZodPreprocess",(e,t)=>{Yh.init(e,t),Hs.init(e,t)}),ig=s("ZodReadonly",(n,e)=>{Js.init(n,e),l.init(n,e),n._zod.processJSONSchema=(e,t,r)=>Vp(n,e,t,r),n.unwrap=()=>n._zod.def.innerType});function ag(e){return new ig({type:"readonly",innerType:e})}var og=s("ZodTemplateLiteral",(n,e)=>{Xs.init(n,e),l.init(n,e),n._zod.processJSONSchema=(e,t,r)=>kp(n,0,t)});function sg(e,t){return new og({type:"template_literal",parts:e,...o.normalizeParams(t)})}var lg=s("ZodLazy",(n,e)=>{el.init(n,e),l.init(n,e),n._zod.processJSONSchema=(e,t,r)=>qp(n,e,0,r),n.unwrap=()=>n._zod.def.getter()});function ug(e){return new lg({type:"lazy",getter:e})}var cg=s("ZodPromise",(n,e)=>{Qs.init(n,e),l.init(n,e),n._zod.processJSONSchema=(e,t,r)=>Gp(n,e,0,r),n.unwrap=()=>n._zod.def.innerType});function dg(e){return new cg({type:"promise",innerType:e})}var pg=s("ZodFunction",(n,e)=>{Ys.init(n,e),l.init(n,e),n._zod.processJSONSchema=(e,t,r)=>xp(n,e,t,r)});function mg(e){return new pg({type:"function",input:Array.isArray(e?.input)?hh(e?.input):e?.input??eh(Kf()),output:e?.output??Kf()})}var fg=s("ZodCustom",(n,e)=>{tl.init(n,e),l.init(n,e),n._zod.processJSONSchema=(e,t,r)=>Ip(n,e,t,r)});function hg(e){var t=new wa({check:"custom"});return t._zod.check=e,t}function gg(e,t){return Rd(fg,e??(()=>!0),t)}function vg(e,t={}){return Md(fg,e,t)}function bg(e,t){return Bd(e,t)}var yg=Zd,wg=Vd;function kg(t,e={}){const r=new fg({type:"custom",check:"custom",fn:e=>e instanceof t,abort:!0,...o.normalizeParams(e)});return r._zod.bag.Class=t,r._zod.check=e=>{e.value instanceof t||e.issues.push({code:"invalid_type",expected:t.name,input:e.value,inst:r,path:[...r._zod.def.path??[]]})},r}var _g=(...e)=>Gd({Codec:eg,Boolean:Nf,String:vm},...e);function Sg(e){const t=ug(()=>sh([bm(e),Sf(),Af(),Ff(),eh(t),vh(bm(),t)]));return t}function Ig(e,t){return new ng({type:"pipe",in:Dh(e),out:t})}var xg={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};var $g=$g||{},Eg={};t(Eg,{ZodISODate:()=>km,ZodISODateTime:()=>wm,ZodISODuration:()=>Sm,ZodISOTime:()=>_m,date:()=>function(e){return zc(km,e)},datetime:()=>function(e){return Tc(wm,e)},duration:()=>function(e){return Lc(Sm,e)},time:()=>function(e){return jc(_m,e)}});var $={...n,...gp,iso:Eg},Cg=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function Og(e,r){return e.map((e,t)=>t<r?e:e.optional())}function Ng(e,t){if(!1!==e)return void 0===e||!0===e?$.any():Pg(e,t)}var Ag=/^(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$/;function Dg(t,r){if(void 0!==t.not){if("object"==typeof t.not&&0===Object.keys(t.not).length)return $.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(void 0!==t.unevaluatedItems)throw new Error("unevaluatedItems is not supported");if(void 0!==t.unevaluatedProperties)throw new Error("unevaluatedProperties is not supported");if(void 0!==t.if||void 0!==t.then||void 0!==t.else)throw new Error("Conditional schemas (if/then/else) are not supported");if(void 0!==t.dependentSchemas||void 0!==t.dependentRequired)throw new Error("dependentSchemas and dependentRequired are not supported");if(t.$ref){const w=t.$ref;if(r.refs.has(w))return r.refs.get(w);if(r.processing.has(w))return $.lazy(()=>{if(r.refs.has(w))return r.refs.get(w);throw new Error("Circular reference not resolved: "+w)});r.processing.add(w);var e=Pg(function(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");var r=e.slice(1).split("/").filter(Boolean);if(0===r.length)return t.rootSchema;var n="draft-2020-12"===t.version?"$defs":"definitions";if(r[0]===n){n=void 0===r[1]?void 0:r[1].replace(/~1/g,"/").replace(/~0/g,"~");if(n&&t.defs[n])return t.defs[n]}throw new Error("Reference not found: "+e)}(w,r),r);return r.refs.set(w,e),r.processing.delete(w),e}if(void 0!==t.enum)return e=t.enum,"openapi-3.0"===r.version&&!0===t.nullable&&1===e.length&&null===e[0]?$.null():0===e.length?$.never():1===e.length?$.literal(e[0]):e.every(e=>"string"==typeof e)?$.enum(e):(e=e.map(e=>$.literal(e))).length<2?e[0]:$.union([e[0],e[1],...e.slice(2)]);if(void 0!==t.const)return $.literal(t.const);var i,n=t.type;if(Array.isArray(n))return 0===(e=n.map(e=>{return Dg({...t,type:e},r)})).length?$.never():1===e.length?e[0]:$.union(e);if(!n)return $.any();let a;switch(n){case"string":{let e=$.string();t.format&&("email"===(u=t.format)?e=e.check($.email()):"uri"===u||"uri-reference"===u?e=e.check($.url()):"uuid"===u||"guid"===u?e=e.check($.uuid()):"date-time"===u?e=e.check($.iso.datetime({offset:!0})):"date"===u?e=e.check($.iso.date()):"time"===u?e=e.check($.regex(Ag)):"duration"===u?e=e.check($.iso.duration()):"hostname"===u?e=e.check($.hostname()):"ipv4"===u?e=e.check($.ipv4()):"ipv6"===u?e=e.check($.ipv6()):"mac"===u?e=e.check($.mac()):"cidr"===u?e=e.check($.cidrv4()):"cidr-v6"===u?e=e.check($.cidrv6()):"base64"===u?e=e.check($.base64()):"base64url"===u?e=e.check($.base64url()):"e164"===u?e=e.check($.e164()):"credit_card"===u?e=e.check($.creditCard()):"jwt"===u?e=e.check($.jwt()):"emoji"===u?e=e.check($.emoji()):"nanoid"===u?e=e.check($.nanoid()):"cuid"===u?e=e.check($.cuid()):"cuid2"===u?e=e.check($.cuid2()):"ulid"===u?e=e.check($.ulid()):"xid"===u?e=e.check($.xid()):"ksuid"===u&&(e=e.check($.ksuid()))),"number"==typeof t.minLength&&(e=e.min(t.minLength)),"number"==typeof t.maxLength&&(e=e.max(t.maxLength)),t.pattern&&(e=e.regex(new RegExp(t.pattern))),a=e;break}case"number":case"integer":{let e="integer"===n?$.number().int():$.number();"number"==typeof t.minimum&&!0!==t.exclusiveMinimum&&(e=e.min(t.minimum)),"number"==typeof t.maximum&&!0!==t.exclusiveMaximum&&(e=e.max(t.maximum)),"number"==typeof t.exclusiveMinimum?e=e.gt(t.exclusiveMinimum):!0===t.exclusiveMinimum&&"number"==typeof t.minimum&&(e=e.gt(t.minimum)),"number"==typeof t.exclusiveMaximum?e=e.lt(t.exclusiveMaximum):!0===t.exclusiveMaximum&&"number"==typeof t.maximum&&(e=e.lt(t.maximum)),"number"==typeof t.multipleOf&&(e=e.multipleOf(t.multipleOf)),a=e;break}case"boolean":a=$.boolean();break;case"null":a=$.null();break;case"object":var o,s,l={},u=t.properties||{},c=new Set(t.required||[]),d="object"==typeof t.additionalProperties?Pg(t.additionalProperties,r):void 0;for([o,s]of Object.entries(u)){var p=Pg(s,r);$r(l,o,c.has(o)?p:p.optional())}if(t.patternProperties){var m=t.patternProperties,u=Object.keys(m),f=[];for(const k of u){var h=Pg(m[k],r),g=$.string().regex(new RegExp(k));f.push($.looseRecord(g,h))}var v=[];if(0<Object.keys(l).length&&v.push($.object(l).passthrough()),v.push(...f),0===v.length)a=$.object({}).passthrough();else if(1===v.length)a=v[0];else{let t=$.intersection(v[0],v[1]);for(let e=2;e<v.length;e++)t=$.intersection(t,v[e]);a=t}if(!1===t.additionalProperties){const _=Object.keys(l),S=u.map(e=>new RegExp(e)),I=a;a=a.check(e=>{if(Pr(e.value)){var t=[];for(const r of Object.keys(e.value))_.includes(r)||S.some(e=>e.test(r))||t.push(r);t.length&&e.issues.push({code:"unrecognized_keys",keys:t,input:e.value,inst:I})}})}}else{u=$.object(l);a=!1===t.additionalProperties?u.strict():d?u.catchall(d):u.passthrough()}void 0!==t.propertyNames&&!0!==t.propertyNames&&(d="object"==typeof t.propertyNames&&void 0===t.propertyNames.type?{type:"string",...t.propertyNames}:t.propertyNames,a=(u=a,i=Pg(d,r),$.transform(e=>e).check(e=>{var t=e.value;if("object"==typeof t&&null!==t&&!Array.isArray(t))for(const n of Object.getOwnPropertyNames(t)){var r=i.safeParse(n);r.success||e.issues.push({code:"invalid_key",origin:"record",issues:r.error.issues,input:n,path:[n],continue:!0})}}).pipe(u)));break;case"array":var d=t.prefixItems,b=t.items;if(d&&Array.isArray(d)){var y="number"==typeof t.minItems?t.minItems:0,d=Og(d.map(e=>Pg(e,r)),y),y=Array.isArray(b)?void 0:Ng(b,r),d=$.tuple(d);a=y?d.rest(y):d,"number"==typeof t.minItems&&(a=a.check($.minLength(t.minItems))),"number"==typeof t.maxItems&&(a=a.check($.maxLength(t.maxItems)))}else if(Array.isArray(b)){y="number"==typeof t.minItems?t.minItems:0,d=Og(b.map(e=>Pg(e,r)),y),y=Ng(t.additionalItems,r),d=$.tuple(d);a=y?d.rest(y):d,"number"==typeof t.minItems&&(a=a.check($.minLength(t.minItems))),"number"==typeof t.maxItems&&(a=a.check($.maxLength(t.maxItems)))}else if(void 0!==b){y=Pg(b,r);let e=$.array(y);"number"==typeof t.minItems&&(e=e.min(t.minItems)),"number"==typeof t.maxItems&&(e=e.max(t.maxItems)),a=e}else a=$.array($.any());break;default:throw new Error("Unsupported type: "+n)}return a}function Pg(r,n){if("boolean"==typeof r)return r?$.any():$.never();let e=Dg(r,n);var t,i=r.type||void 0!==r.enum||void 0!==r.const;if(r.anyOf&&Array.isArray(r.anyOf)&&(t=r.anyOf.map(e=>Pg(e,n)),t=$.union(t),e=i?$.intersection(e,t):t),r.oneOf&&Array.isArray(r.oneOf)&&(t=r.oneOf.map(e=>Pg(e,n)),t=$.xor(t),e=i?$.intersection(e,t):t),r.allOf&&Array.isArray(r.allOf))if(0===r.allOf.length)e=i?e:$.any();else{let t=i?e:Pg(r.allOf[0],n);for(let e=i?0:1;e<r.allOf.length;e++)t=$.intersection(t,Pg(r.allOf[e],n));e=t}!0===r.nullable&&"openapi-3.0"===n.version&&(e=$.nullable(e)),!0===r.readOnly&&(e=$.readonly(e)),void 0!==r.default&&(e=e.default(r.default));var a={};for(const o of["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"])o in r&&(a[o]=r[o]);for(const s of["contentEncoding","contentMediaType","contentSchema"])s in r&&(a[s]=r[s]);void 0!==r.propertyNames&&"object"===r.type&&void 0===r.$ref&&(a.propertyNames=r.propertyNames);for(const l of Object.keys(r))Cg.has(l)||$r(a,l,r[l]);return 0<Object.keys(a).length&&n.registry.add(e,a),e=r.description?e.describe(r.description):e}var Tg=Symbol("z.visit/resolving");function zg(e,n){const r="function"==typeof n?n:(e,t)=>{var r=n[e._zod.def.type];return r?r(e,t):e},i=new Map;function S(e){var t=i.get(e);if(t===Tg)return new el({type:"lazy",getter:()=>i.get(e)});if(void 0!==t)return t;i.set(e,Tg);t=function(r){var n=r._zod.def,e=n.type;switch(e){case"object":{var i=n.shape,a=Object.keys(i);let e=!1;var o={};for(const v of a){var s=S(i[v]);s!==i[v]&&(e=!0),o[v]=s}let t=n.catchall;return(e=n.catchall&&(t=S(n.catchall))!==n.catchall?!0:e)?Rr(r,{...n,shape:o,catchall:t}):r}case"array":a=S(n.element);return a===n.element?r:Rr(r,{...n,element:a});case"tuple":{var l=n.items;let e=!1;var u=[];for(const b of l){var c=S(b);c!==b&&(e=!0),u.push(c)}let t=n.rest;return(e=n.rest&&(t=S(n.rest))!==n.rest?!0:e)?Rr(r,{...n,items:u,rest:t}):r}case"record":case"map":var l=S(n.keyType),t=S(n.valueType);return l===n.keyType&&t===n.valueType?r:Rr(r,{...n,keyType:l,valueType:t});case"set":t=S(n.valueType);return t===n.valueType?r:Rr(r,{...n,valueType:t});case"union":{var d=n.options;let e=!1;var p=[];for(const y of d){var m=S(y);m!==y&&(e=!0),p.push(m)}return e?Rr(r,{...n,options:p}):r}case"intersection":var d=S(n.left),f=S(n.right);return d===n.left&&f===n.right?r:Rr(r,{...n,left:d,right:f});case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":f=S(n.innerType);return f===n.innerType?r:Rr(r,{...n,innerType:f});case"pipe":var h=S(n.in),g=S(n.out);return h===n.in&&g===n.out?r:Rr(r,{...n,in:h,out:g});case"function":h=S(n.input),g=S(n.output);return h===n.input&&g===n.output?r:Rr(r,{...n,input:h,output:g});case"lazy":{const w=n.getter,{_cachedInner:k,..._}=n;return Rr(r,{..._,getter:()=>S(w())})}default:return r}}(e),t=r(t,t!==e);return i.set(e,t),t}return S(e)}function jg(e){return t=e.out,(e=e.checks)?.length?Rr(t,Er(r=t._zod.def,{checks:[...r.checks??[],...e]}),{parent:!0}):t;var t,r}var Lg={};t(Lg,{bigint:()=>function(e){return Hc(Df,e)},boolean:()=>function(e){return Kc(Nf,e)},date:()=>function(e){return ad(Xf,e)},number:()=>function(e){return Rc(_f,e)},string:()=>function(e){return lc(vm,e)}});var em=i.array(i.object({name:i.string().trim().min(1),url:i.url().optional().catch(void 0)}).transform(({name:e,url:t})=>({name:e,url:t||"https://github.com/"+e})).nullable().catch(null)).transform(e=>e.filter(e=>null!==e)),n=i.union([i.array(i.string()),i.string().transform(e=>[e])]),Ug=i.looseObject({name:i.string().trim().min(1),description:i.string().trim().min(1),main:i.string().trim().min(1).optional(),usercss:i.string().trim().min(1).optional(),authors:em.catch([]),preview:i.string().nullish().transform(e=>e||""),readme:i.string().nullish().transform(e=>e||""),tags:n.catch([]),branch:i.string().trim().min(1).optional(),schemes:i.string().optional(),include:i.array(i.string()).optional().catch(void 0)}),Rg=i.looseObject({title:i.string(),user:i.string().optional().catch(void 0),authors:em.optional().catch(void 0),tags:n.optional().catch(void 0)}),gp=r(Z(),1),t=Symbol.for("Dexie"),i=globalThis[t]||(globalThis[t]=gp.default);if(gp.default.semVer!==i.semVer)throw new Error(`Two different versions of Dexie loaded in the same app: ${gp.default.semVer} and `+i.semVer);var{}=i,Mg=i,Bg="spicetify-marketplace",Fg="marketplace:",Zg=[150,400,1e3],Vg=new Map,Gg=new Map,Kg=new Map,qg=null,Hg=null,Jg=!1,Wg=null,Xg=Promise.resolve(),Yg=0,Qg=!1;function ev(){return Jg||!window.indexedDB?null:(Hg||((qg=new Mg(Bg)).version(1).stores({settings:"key"}),Hg=qg.table("settings")),Hg)}function tv(){qg?.close(),Hg=qg=null}function rv(e,t,r){for(const a of(n=e,i=t,new Set([...Array.from(n.keys()).filter(e=>!i.has(e)),...Array.from(i.entries()).filter(([e,t])=>n.get(e)!==t).map(([e])=>e)])))(Kg.get(a)??0)>r||(t.has(a)?Vg.set(a,t.get(a)):Vg.delete(a),Kg.set(a,r));var n,i}function nv(d,e=!1){const p=++Yg;let t=null,r=null;e&&(t=new Map(Vg),r=new Map(t),d(r),rv(t,r,p));n=async()=>{await av();var e=new Map(Gg),t=new Map(e);d(t);{var r=e,n=t;const l=ev();if(l&&qg){const u=Array.from(n.entries()).filter(([e,t])=>r.get(e)!==t).map(([e,t])=>({key:e,value:t})),c=Array.from(r.keys()).filter(e=>!n.has(e));0===u.length&&0===c.length||await qg.transaction("rw",l,async()=>{0<u.length&&await l.bulkPut(u),0<c.length&&await l.bulkDelete(c)})}}await 0;var i,a,o=Gg,s=t;o.clear();for([i,a]of s)o.set(i,a);rv(e,t,p)},Xg=(n=Xg.then(n)).catch(()=>{});var n;return e&&t&&r?n.catch(e=>{throw rv(r,Gg,p),e}):n}async function iv(){var t=[];for(let e=0;e<window.localStorage.length;e++){var r,n=window.localStorage.key(e);n?.startsWith(Fg)&&!Vg.has(n)&&null!==(r=window.localStorage.getItem(n))&&t.push({key:n,value:r})}if(0!==t.length){var e,i,a=ev();if(a)try{await a.bulkPut(t)}catch(e){console.warn("Marketplace localStorage migration could not be persisted",e),tv(),Jg=!0}for({key:e,value:i}of t)Vg.set(e,i),Gg.set(e,i)}}async function av(){if(!Qg){if(Wg)return Wg;Wg=(async()=>{for(let t=0;;t++)try{r=e=n=void 0;var e,r,n=ev();if(n)for({key:e,value:r}of await n.toArray())Vg.set(e,r),Gg.set(e,r);await 0;break}catch(e){if(t>=Zg.length)throw e;console.warn(`Marketplace IndexedDB cache could not be read, retrying (${t+1}/${Zg.length})`,e),tv(),await new Promise(e=>setTimeout(e,Zg[t]))}await iv(),Qg=!0})();try{await Wg}catch(e){throw Wg=null,e}}}var ov,E={getItem(e){return Vg.get(e)??null},setItem(t,r){nv(e=>e.set(t,r),!0).catch(e=>console.warn("Marketplace item persistence failed",e))},async setItemAsync(t,r){await nv(e=>e.set(t,r))},removeItem(t){nv(e=>e.delete(t),!0).catch(e=>console.warn("Marketplace item removal failed",e))},async removeItemAsync(t){await nv(e=>e.delete(t))},async mutateAsync(e){await nv(e)},keys(){return Array.from(Vg.keys())},entries(){return Object.fromEntries(Vg.entries())}},{min:sv,max:lv}=Math,uv=(e,t=0,r=1)=>sv(lv(t,e),r),cv=t=>{t._clipped=!1,t._unclipped=t.slice(0);for(let e=0;e<=3;e++)e<3?((t[e]<0||255<t[e])&&(t._clipped=!0),t[e]=uv(t[e],0,255)):3===e&&(t[e]=uv(t[e],0,1));return t},dv={};for(ov of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])dv[`[object ${ov}]`]=ov.toLowerCase();function C(e){return dv[Object.prototype.toString.call(e)]||"object"}var b=(t,e=null)=>3<=t.length?Array.prototype.slice.call(t):"object"==C(t[0])&&e?e.split("").filter(e=>void 0!==t[0][e]).map(e=>t[0][e]):t[0].slice(0),pv=e=>{var t;return!(e.length<2)&&"string"==C(e[t=e.length-1])?e[t].toLowerCase():null},{PI:em,min:mv,max:fv}=Math,hv=e=>Math.round(100*e)/100,gv=e=>Math.round(100*e)/100,vv=2*em,bv=em/3,yv=em/180,wv=180/em;function kv(e){return[...e.slice(0,3).reverse(),...e.slice(3)]}var c={format:{},autodetect:[]},y=class{constructor(...e){if("object"===C(e[0])&&e[0].constructor&&e[0].constructor===this.constructor)return e[0];let t=pv(e),r=!1;if(!t){r=!0,c.sorted||(c.autodetect=c.autodetect.sort((e,t)=>t.p-e.p),c.sorted=!0);for(var n of c.autodetect)if(t=n.test(...e))break}if(!c.format[t])throw new Error("unknown format: "+e);var i=c.format[t].apply(null,r?e:e.slice(0,-1));this._rgb=cv(i),3===this._rgb.length&&this._rgb.push(1)}toString(){return"function"==C(this.hex)?this.hex():`[${this._rgb.join(",")}]`}},n=(...e)=>new y(...e),P=(n.version="3.2.0",n),_v={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},Sv=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,Iv=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,xv=e=>{var t;if(e.match(Sv))return 3===(e=4!==e.length&&7!==e.length?e:e.substr(1)).length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]),[(t=parseInt(e,16))>>16,t>>8&255,255&t,1];if(e.match(Iv))return 4===(e=5!==e.length&&9!==e.length?e:e.substr(1)).length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]),[(t=parseInt(e,16))>>24&255,t>>16&255,t>>8&255,Math.round((255&t)/255*100)/100];throw new Error("unknown hex color: "+e)},$v=Math["round"],Ev=(...e)=>{let[t,r,n,i]=b(e,"rgba"),a=pv(e)||"auto";void 0===i&&(i=1),"auto"===a&&(a=i<1?"rgba":"rgb");let o="000000"+($v(t)<<16|$v(r)<<8|$v(n)).toString(16),s=(o=o.substr(o.length-6),"0"+$v(255*i).toString(16));switch(s=s.substr(s.length-2),a.toLowerCase()){case"rgba":return"#"+o+s;case"argb":return"#"+s+o;default:return"#"+o}},Cv=(y.prototype.name=function(){var e,t=Ev(this._rgb,"rgb");for(e of Object.keys(_v))if(_v[e]===t)return e.toLowerCase();return t},c.format.named=e=>{if(e=e.toLowerCase(),_v[e])return xv(_v[e]);throw new Error("unknown color name: "+e)},c.autodetect.push({p:5,test:(e,...t)=>{if(!t.length&&"string"===C(e)&&_v[e.toLowerCase()])return"named"}}),y.prototype.alpha=function(e,t=!1){return void 0!==e&&"number"===C(e)?t?(this._rgb[3]=e,this):new y([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb"):this._rgb[3]},y.prototype.clipped=function(){return this._rgb._clipped||!1},{Kn:18,labWhitePoint:"d65",Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452,kE:216/24389,kKE:8,kK:24389/27,RefWhiteRGB:{X:.95047,Y:1,Z:1.08883},MtxRGB2XYZ:{m00:.4124564390896922,m01:.21267285140562253,m02:.0193338955823293,m10:.357576077643909,m11:.715152155287818,m12:.11919202588130297,m20:.18043748326639894,m21:.07217499330655958,m22:.9503040785363679},MtxXYZ2RGB:{m00:3.2404541621141045,m01:-.9692660305051868,m02:.055643430959114726,m10:-1.5371385127977166,m11:1.8760108454466942,m12:-.2040259135167538,m20:-.498531409556016,m21:.041556017530349834,m22:1.0572251882231791},As:.9414285350000001,Bs:1.040417467,Cs:1.089532651,MtxAdaptMa:{m00:.8951,m01:-.7502,m02:.0389,m10:.2664,m11:1.7135,m12:-.0685,m20:-.1614,m21:.0367,m22:1.0296},MtxAdaptMaI:{m00:.9869929054667123,m01:.43230526972339456,m02:-.008528664575177328,m10:-.14705425642099013,m11:.5183602715367776,m12:.04004282165408487,m20:.15996265166373125,m21:.0492912282128556,m22:.9684866957875502}}),Ov=Cv,Nv=new Map([["a",[1.0985,.35585]],["b",[1.0985,.35585]],["c",[.98074,1.18232]],["d50",[.96422,.82521]],["d55",[.95682,.92149]],["d65",[.95047,1.08883]],["e",[1,1,1]],["f2",[.99186,.67393]],["f7",[.95041,1.08747]],["f11",[1.00962,.6435]],["icc",[.96422,.82521]]]);function Av(e){var t=Nv.get(String(e).toLowerCase());if(!t)throw new Error("unknown Lab illuminant "+e);Cv.labWhitePoint=e,Cv.Xn=t[0],Cv.Zn=t[1]}function Dv(){return Cv.labWhitePoint}var Pv=e=>{var t=Math.sign(e);return((e=Math.abs(e))<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)*t},Tv=(e,t,r)=>{var{MtxAdaptMa:n,MtxAdaptMaI:i,MtxXYZ2RGB:a,RefWhiteRGB:o,Xn:s,Yn:l,Zn:u}=Ov,c=s*n.m00+l*n.m10+u*n.m20,d=s*n.m01+l*n.m11+u*n.m21,s=s*n.m02+l*n.m12+u*n.m22,l=o.X*n.m00+o.Y*n.m10+o.Z*n.m20,u=o.X*n.m01+o.Y*n.m11+o.Z*n.m21,o=o.X*n.m02+o.Y*n.m12+o.Z*n.m22,l=(e*n.m00+t*n.m10+r*n.m20)*(l/c),c=(e*n.m01+t*n.m11+r*n.m21)*(u/d),u=(e*n.m02+t*n.m12+r*n.m22)*(o/s),d=l*i.m00+c*i.m10+u*i.m20,e=l*i.m01+c*i.m11+u*i.m21,t=l*i.m02+c*i.m12+u*i.m22;return[255*Pv(d*a.m00+e*a.m10+t*a.m20),255*Pv(d*a.m01+e*a.m11+t*a.m21),255*Pv(d*a.m02+e*a.m12+t*a.m22)]},zv=(...e)=>{var[t,r,n]=e=b(e,"lab"),[t,r,n]=((e,t,r)=>{const{kE:n,kK:i,kKE:a,Xn:o,Yn:s,Zn:l}=Ov,u=(e+16)/116,c=.002*t+u,d=u-.005*r,p=c*c*c,m=d*d*d,f=p>n?p:(116*c-16)/i,h=e>a?Math.pow((e+16)/116,3):e/i,g=m>n?m:(116*d-16)/i,v=f*o,b=h*s,y=g*l;return[v,b,y]})(t,r,n),[t,r,n]=Tv(t,r,n);return[t,r,n,3<e.length?e[3]:1]};function jv(e){var t=Math.sign(e);return((e=Math.abs(e))<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4))*t}var Lv=(e,t,r)=>{e=jv(e/255),t=jv(t/255),r=jv(r/255);var{MtxRGB2XYZ:n,MtxAdaptMa:i,MtxAdaptMaI:a,Xn:o,Yn:s,Zn:l,As:u,Bs:c,Cs:d}=Ov,p=e*n.m00+t*n.m10+r*n.m20,m=e*n.m01+t*n.m11+r*n.m21,e=e*n.m02+t*n.m12+r*n.m22,t=o*i.m00+s*i.m10+l*i.m20,r=o*i.m01+s*i.m11+l*i.m21,n=o*i.m02+s*i.m12+l*i.m22,o=p*i.m00+m*i.m10+e*i.m20,s=p*i.m01+m*i.m11+e*i.m21,l=p*i.m02+m*i.m12+e*i.m22;return[(o*=t/u)*a.m00+(s*=r/c)*a.m10+(l*=n/d)*a.m20,o*a.m01+s*a.m11+l*a.m21,o*a.m02+s*a.m12+l*a.m22]},Uv=(...e)=>{var[e,t,r,...n]=b(e,"rgb"),[e,t,r]=Lv(e,t,r),[e,t,r]=function(e,t,r){var{Xn:n,Yn:i,Zn:a,kE:o,kK:s}=Ov,e=e/n,n=t/i,t=r/a,i=o<e?Math.pow(e,1/3):(s*e+16)/116,r=o<n?Math.pow(n,1/3):(s*n+16)/116,a=o<t?Math.pow(t,1/3):(s*t+16)/116;return[116*r-16,500*(i-r),200*(r-a)]}(e,t,r);return[e,t,r,...0<n.length&&n[0]<1?[n[0]]:[]]},Rv=(y.prototype.lab=function(){return Uv(this._rgb)},(Object.assign(P,{lab:(...e)=>new y(...e,"lab"),getLabWhitePoint:Dv,setLabWhitePoint:Av}),c.format.lab=zv,c.autodetect.push({p:2,test:(...e)=>{if("array"===C(e=b(e,"lab"))&&3===e.length)return"lab"}}),y.prototype.darken=function(e=1){var t=this.lab();return t[0]-=Ov.Kn*e,new y(t,"lab").alpha(this.alpha(),!0)},y.prototype.brighten=function(e=1){return this.darken(-e)},y.prototype.darker=y.prototype.darken,y.prototype.brighter=y.prototype.brighten,y.prototype.get=function(e){var[e,t]=e.split("."),r=this[e]();if(t){var n=e.indexOf(t)-("ok"===e.substr(0,2)?2:0);if(-1<n)return r[n];throw new Error(`unknown channel ${t} in mode `+e)}return r},Math)["pow"]),Mv=(y.prototype.luminance=function(a,o="rgb"){if(void 0===a||"number"!==C(a))return Mv(...this._rgb.slice(0,3));{if(0===a)return new y([0,0,0,this._rgb[3]],"rgb");if(1===a)return new y([255,255,255,this._rgb[3]],"rgb");var e=this.luminance();let i=20;const s=(e,t)=>{var r=e.interpolate(t,.5,o),n=r.luminance();return Math.abs(a-n)<1e-7||!i--?r:a<n?s(e,r):s(r,t)};e=(a<e?s(new y([0,0,0]),this):s(this,new y([255,255,255]))).rgb();return new y([...e,this._rgb[3]])}},(e,t,r)=>.2126*(e=Bv(e))+.7152*(t=Bv(t))+.0722*(r=Bv(r))),Bv=e=>(e/=255)<=.03928?e/12.92:Rv((e+.055)/1.055,2.4),Fv={},Zv=(e,t,r=.5,...n)=>{let i=n[0]||"lrgb";if(Fv[i]||n.length||(i=Object.keys(Fv)[0]),Fv[i])return"object"!==C(e)&&(e=new y(e)),"object"!==C(t)&&(t=new y(t)),Fv[i](e,t,r).alpha(e.alpha()+r*(t.alpha()-e.alpha()));throw new Error(`interpolation mode ${i} is not defined`)},{sin:Vv,cos:Gv}=(y.prototype.mix=y.prototype.interpolate=function(e,t=.5,...r){return Zv(this,e,t,...r)},y.prototype.premultiply=function(e=!1){var t=this._rgb,r=t[3];return e?(this._rgb=[t[0]*r,t[1]*r,t[2]*r,r],this):new y([t[0]*r,t[1]*r,t[2]*r,r],"rgb")},Math),Kv=(...e)=>{let[t,r,n]=b(e,"lch");return isNaN(n)&&(n=0),n*=yv,[t,Gv(n)*r,Vv(n)*r]},qv=(...e)=>{var[t,r,n]=e=b(e,"lch"),[t,r,n]=Kv(t,r,n),[t,r,n]=zv(t,r,n);return[t,r,n,3<e.length?e[3]:1]},Z=(...e)=>{e=kv(b(e,"hcl"));return qv(...e)},{sqrt:Hv,atan2:Jv,round:Wv}=Math,Xv=(...e)=>{var[e,t,r]=b(e,"lab"),n=Hv(t*t+r*r);let i=(Jv(r,t)*wv+360)%360;return[e,n,i=0===Wv(1e4*n)?Number.NaN:i]},Yv=(...e)=>{var[e,t,r,...n]=b(e,"rgb"),[e,t,r]=Uv(e,t,r),[e,t,r]=Xv(e,t,r);return[e,t,r,...0<n.length&&n[0]<1?[n[0]]:[]]},{sqrt:Qv,pow:eb}=(y.prototype.lch=function(){return Yv(this._rgb)},y.prototype.hcl=function(){return kv(Yv(this._rgb))},Object.assign(P,{lch:(...e)=>new y(...e,"lch"),hcl:(...e)=>new y(...e,"hcl")}),c.format.lch=qv,c.format.hcl=Z,["lch","hcl"].forEach(t=>c.autodetect.push({p:2,test:(...e)=>{if("array"===C(e=b(e,t))&&3===e.length)return t}})),y.prototype.saturate=function(e=1){var t=this.lch();return t[1]+=Ov.Kn*e,t[1]<0&&(t[1]=0),new y(t,"lch").alpha(this.alpha(),!0)},y.prototype.desaturate=function(e=1){return this.saturate(-e)},y.prototype.set=function(e,t,r=!1){var[e,n]=e.split("."),i=this[e]();if(n){var a=e.indexOf(n)-("ok"===e.substr(0,2)?2:0);if(-1<a){if("string"==C(t))switch(t.charAt(0)){case"+":case"-":i[a]+=+t;break;case"*":i[a]*=+t.substr(1);break;case"/":i[a]/=+t.substr(1);break;default:i[a]=+t}else{if("number"!==C(t))throw new Error("unsupported value for Color.set");i[a]=t}var o=new y(i,e);return r?(this._rgb=o._rgb,this):o}throw new Error(`unknown channel ${n} in mode `+e)}return i},y.prototype.tint=function(e=.5,...t){return Zv(this,"white",e,...t)},y.prototype.shade=function(e=.5,...t){return Zv(this,"black",e,...t)},Fv.rgb=(e,t,r)=>{e=e._rgb,t=t._rgb;return new y(e[0]+r*(t[0]-e[0]),e[1]+r*(t[1]-e[1]),e[2]+r*(t[2]-e[2]),"rgb")},Math),tb=(Fv.lrgb=(e,t,r)=>{var[e,n,i]=e._rgb,[t,a,o]=t._rgb;return new y(Qv(eb(e,2)*(1-r)+eb(t,2)*r),Qv(eb(n,2)*(1-r)+eb(a,2)*r),Qv(eb(i,2)*(1-r)+eb(o,2)*r),"rgb")},Fv.lab=(e,t,r)=>{e=e.lab(),t=t.lab();return new y(e[0]+r*(t[0]-e[0]),e[1]+r*(t[1]-e[1]),e[2]+r*(t[2]-e[2]),"lab")},(e,t,r,n)=>{let i,a;"hsl"===n?(i=e.hsl(),a=t.hsl()):"hsv"===n?(i=e.hsv(),a=t.hsv()):"hcg"===n?(i=e.hcg(),a=t.hcg()):"hsi"===n?(i=e.hsi(),a=t.hsi()):"lch"===n||"hcl"===n?(n="hcl",i=e.hcl(),a=t.hcl()):"oklch"===n&&(i=e.oklch().reverse(),a=t.oklch().reverse());let o,s,l,u,c,d;"h"!==n.substr(0,1)&&"oklch"!==n||([o,l,c]=i,[s,u,d]=a);let p,m,f,h;return isNaN(o)||isNaN(s)?isNaN(o)?isNaN(s)?m=Number.NaN:(m=s,1!=c&&0!=c||"hsv"==n||(p=u)):(m=o,1!=d&&0!=d||"hsv"==n||(p=l)):(h=s>o&&180<s-o?s-(o+360):s<o&&180<o-s?s+360-o:s-o,m=o+r*h),void 0===p&&(p=l+r*(u-l)),f=c+r*(d-c),new y("oklch"===n?[f,p,m]:[m,p,f],n)}),t=(e,t,r)=>tb(e,t,r,"lch"),gp=(Fv.lch=t,Fv.hcl=t,e=>{if("number"==C(e)&&0<=e&&e<=16777215)return[e>>16,e>>8&255,255&e,1];throw new Error("unknown num color: "+e)}),rb=(...e)=>{var[e,t,r]=b(e,"rgb");return(e<<16)+(t<<8)+r},nb=(y.prototype.num=function(){return rb(this._rgb)},Object.assign(P,{num:(...e)=>new y(...e,"num")}),c.format.num=gp,c.autodetect.push({p:5,test:(...e)=>{if(1===e.length&&"number"===C(e[0])&&0<=e[0]&&e[0]<=16777215)return"num"}}),(Fv.num=(e,t,r)=>{e=e.num(),t=t.num();return new y(e+r*(t-e),"num")},Math)["floor"]),i=(...e)=>{let[t,r,n]=e=b(e,"hcg"),i,a,o;n*=255;var s=255*r;if(0===r)i=a=o=n;else{360<(t=360===t?0:t)&&(t-=360),t<0&&(t+=360),t/=60;var l=nb(t),u=t-l,c=n*(1-r),d=c+s*(1-u),p=c+s*u,m=c+s;switch(l){case 0:[i,a,o]=[m,p,c];break;case 1:[i,a,o]=[d,m,c];break;case 2:[i,a,o]=[c,m,p];break;case 3:[i,a,o]=[c,d,m];break;case 4:[i,a,o]=[p,c,m];break;case 5:[i,a,o]=[m,c,d]}}return[i,a,o,3<e.length?e[3]:1]},ib=(...e)=>{var[e,t,r]=b(e,"rgb"),n=mv(e,t,r),i=fv(e,t,r),a=i-n;let o;return 0==a?o=Number.NaN:(e===i&&(o=(t-r)/a),t===i&&(o=2+(r-e)/a),r===i&&(o=4+(e-t)/a),(o*=60)<0&&(o+=360)),[o,100*a/255,n/(255-a)*100]},ab=(y.prototype.hcg=function(){return ib(this._rgb)},P.hcg=(...e)=>new y(...e,"hcg"),c.format.hcg=i,c.autodetect.push({p:1,test:(...e)=>{if("array"===C(e=b(e,"hcg"))&&3===e.length)return"hcg"}}),(Fv.hcg=(e,t,r)=>tb(e,t,r,"hcg"),Math)["cos"]),em=(...e)=>{let[t,r,n]=e=b(e,"hsi"),i,a,o;return isNaN(t)&&(t=0),isNaN(r)&&(r=0),360<t&&(t-=360),t<0&&(t+=360),(t/=360)<1/3?(o=(1-r)/3,i=(1+r*ab(vv*t)/ab(bv-vv*t))/3,a=1-(o+i)):t<2/3?(t-=1/3,i=(1-r)/3,a=(1+r*ab(vv*t)/ab(bv-vv*t))/3,o=1-(i+a)):(t-=2/3,a=(1-r)/3,o=(1+r*ab(vv*t)/ab(bv-vv*t))/3,i=1-(a+o)),i=uv(n*i*3),a=uv(n*a*3),o=uv(n*o*3),[255*i,255*a,255*o,3<e.length?e[3]:1]},{min:ob,sqrt:sb,acos:lb}=Math,ub=(...e)=>{var[e,t,r]=b(e,"rgb");let n;var i=ob(e/=255,t/=255,r/=255),a=(e+t+r)/3,i=0<a?1-i/a:0;return 0==i?n=NaN:(n=(e-t+(e-r))/2,n/=sb((e-t)*(e-t)+(e-r)*(t-r)),n=lb(n),t<r&&(n=vv-n),n/=vv),[360*n,i,a]},cb=(y.prototype.hsi=function(){return ub(this._rgb)},P.hsi=(...e)=>new y(...e,"hsi"),c.format.hsi=em,c.autodetect.push({p:2,test:(...e)=>{if("array"===C(e=b(e,"hsi"))&&3===e.length)return"hsi"}}),Fv.hsi=(e,t,r)=>tb(e,t,r,"hsi"),(...e)=>{var[t,r,n]=e=b(e,"hsl");let i,a,o;if(0===r)i=a=o=255*n;else{var s=[0,0,0],l=[0,0,0],u=n<.5?n*(1+r):n+r-n*r,c=2*n-u,r=t/360;s[0]=r+1/3,s[1]=r,s[2]=r-1/3;for(let e=0;e<3;e++)s[e]<0&&(s[e]+=1),1<s[e]&&--s[e],6*s[e]<1?l[e]=c+6*(u-c)*s[e]:2*s[e]<1?l[e]=u:3*s[e]<2?l[e]=c+(u-c)*(2/3-s[e])*6:l[e]=c;[i,a,o]=[255*l[0],255*l[1],255*l[2]]}return 3<e.length?[i,a,o,e[3]]:[i,a,o,1]}),db=(...e)=>{var[t,r,n]=e=b(e,"rgba"),i=mv(t/=255,r/=255,n/=255),a=fv(t,r,n),o=(a+i)/2;let s,l;return a===i?(s=0,l=Number.NaN):s=o<.5?(a-i)/(a+i):(a-i)/(2-a-i),t==a?l=(r-n)/(a-i):r==a?l=2+(n-t)/(a-i):n==a&&(l=4+(t-r)/(a-i)),(l*=60)<0&&(l+=360),3<e.length&&void 0!==e[3]?[l,s,o,e[3]]:[l,s,o]},pb=(y.prototype.hsl=function(){return db(this._rgb)},P.hsl=(...e)=>new y(...e,"hsl"),c.format.hsl=cb,c.autodetect.push({p:2,test:(...e)=>{if("array"===C(e=b(e,"hsl"))&&3===e.length)return"hsl"}}),(Fv.hsl=(e,t,r)=>tb(e,t,r,"hsl"),Math)["floor"]),n=(...e)=>{let[t,r,n]=e=b(e,"hsv"),i,a,o;if(n*=255,0===r)i=a=o=n;else{360<(t=360===t?0:t)&&(t-=360),t<0&&(t+=360),t/=60;var s=pb(t),l=t-s,u=n*(1-r),c=n*(1-r*l),d=n*(1-r*(1-l));switch(s){case 0:[i,a,o]=[n,d,u];break;case 1:[i,a,o]=[c,n,u];break;case 2:[i,a,o]=[u,n,d];break;case 3:[i,a,o]=[u,c,n];break;case 4:[i,a,o]=[d,u,n];break;case 5:[i,a,o]=[n,u,c]}}return[i,a,o,3<e.length?e[3]:1]},{min:mb,max:fb}=Math,hb=(...e)=>{var[e,t,r]=e=b(e,"rgb"),n=mb(e,t,r),i=fb(e,t,r),n=i-n;let a,o;return 0===i?(a=Number.NaN,o=0):(o=n/i,e===i&&(a=(t-r)/n),t===i&&(a=2+(r-e)/n),r===i&&(a=4+(e-t)/n),(a*=60)<0&&(a+=360)),[a,o,i/255]};y.prototype.hsv=function(){return hb(this._rgb)},P.hsv=(...e)=>new y(...e,"hsv"),c.format.hsv=n,c.autodetect.push({p:2,test:(...e)=>{if("array"===C(e=b(e,"hsv"))&&3===e.length)return"hsv"}});function gb(e,r){var t=e.length,n=(Array.isArray(e[0])||(e=[e]),(r=Array.isArray(r[0])?r:r.map(e=>[e]))[0].length);let i=r[0].map((e,t)=>r.map(e=>e[t])),a=e.map(r=>i.map(n=>Array.isArray(r)?r.reduce((e,t,r)=>e+t*(n[r]||0),0):n.reduce((e,t)=>e+t*r,0)));return 1===t&&(a=a[0]),1===n?a.map(e=>e[0]):a}Fv.hsv=(e,t,r)=>tb(e,t,r,"hsv");var vb=(...e)=>{var[e,t,r,...n]=e=b(e,"lab"),[e,t,r]=function(e){e=gb([[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]],e);return gb([[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],e.map(e=>e**3))}([e,t,r]),[e,t,r]=Tv(e,t,r);return[e,t,r,...0<n.length&&n[0]<1?[n[0]]:[]]};var bb=(...e)=>{var[e,t,r,...n]=b(e,"rgb");return[...function(e){e=gb([[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],e);return gb([[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],e.map(e=>Math.cbrt(e)))}(Lv(e,t,r)),...0<n.length&&n[0]<1?[n[0]]:[]]},{pow:yb,sqrt:wb,PI:kb,cos:_b,sin:Sb,atan2:Ib}=(y.prototype.oklab=function(){return bb(this._rgb)},Object.assign(P,{oklab:(...e)=>new y(...e,"oklab")}),c.format.oklab=vb,c.autodetect.push({p:2,test:(...e)=>{if("array"===C(e=b(e,"oklab"))&&3===e.length)return"oklab"}}),Fv.oklab=(e,t,r)=>{e=e.oklab(),t=t.oklab();return new y(e[0]+r*(t[0]-e[0]),e[1]+r*(t[1]-e[1]),e[2]+r*(t[2]-e[2]),"oklab")},Fv.oklch=(e,t,r)=>tb(e,t,r,"oklch"),Math),xb=Math["pow"];function $b(a){let o="rgb",s=P("#ccc"),t=0,l=[0,1],u=[0,1],c=[],d=[0,0],p=!1,m=[],r=!1,f=0,h=1,n,g={},v=!0,b=1;function i(t){if((t=t||["#fff","#000"])&&"string"===C(t)&&P.brewer&&P.brewer[t.toLowerCase()]&&(t=P.brewer[t.toLowerCase()]),"array"===C(t)){t=(t=1===t.length?[t[0],t[0]]:t).slice(0);for(let e=0;e<t.length;e++)t[e]=P(t[e]);for(let e=c.length=0;e<t.length;e++)c.push(e/(t.length-1))}S(),m=t}const y=function(t){if(null==p)return 0;{var r=p.length-1;let e=0;for(;e<r&&t>=p[e];)e++;return e-1}};let w=e=>e,k=e=>e;function _(e,t){let r,n;if(null==t&&(t=!1),isNaN(e)||null===e)return s;if(n=t?e:p&&2<p.length?y(e)/(p.length-2):h!==f?(e-f)/(h-f):1,n=k(n),t||(n=w(n)),1!==b&&(n=xb(n,b)),n=d[0]+n*(1-d[0]-d[1]),n=uv(n,0,1),e=Math.floor(1e4*n),v&&g[e])r=g[e];else{if("array"===C(m))for(let e=0;e<c.length;e++){var i=c[e];if(n<=i){r=m[e];break}if(n>=i&&e===c.length-1){r=m[e];break}if(n>i&&n<c[e+1]){n=(n-i)/(c[e+1]-i),r=P.interpolate(m[e],m[e+1],n,o);break}}else"function"===C(m)&&(r=m(n));v&&(g[e]=r)}return r}var S=()=>g={};i(a);function I(e){return e=P(_(e)),r&&e[r]?e[r]():e}return I.classes=function(e){var t;return null!=e?("array"===C(e)?(p=e,l=[e[0],e[e.length-1]]):(t=P.analyze(l),p=0===e?[t.min,t.max]:P.limits(t,"e",e)),I):p},I.domain=function(r){if(!arguments.length)return u;u=r.slice(0),f=r[0],h=r[r.length-1],c=[];var t=m.length;if(r.length===t&&f!==h)for(var e of Array.from(r))c.push((e-f)/(h-f));else{for(let e=0;e<t;e++)c.push(e/(t-1));if(2<r.length){const n=r.map((e,t)=>t/(r.length-1)),i=r.map(e=>(e-f)/(h-f));i.every((e,t)=>n[t]===e)||(k=e=>{if(e<=0||1<=e)return e;let t=0;for(;e>=i[t+1];)t++;var r=(e-i[t])/(i[t+1]-i[t]);return n[t]+r*(n[t+1]-n[t])})}}return l=[f,h],I},I.mode=function(e){return arguments.length?(o=e,S(),I):o},I.range=function(e,t){return i(e),I},I.out=function(e){return r=e,I},I.spread=function(e){return arguments.length?(t=e,I):t},I.correctLightness=function(e){return null==e&&(e=!0),n=e,S(),w=n?function(e){var t=_(0,!0).lab()[0],r=_(1,!0).lab()[0];const n=r<t;let i=_(e,!0).lab()[0];const a=t+(r-t)*e;let o=i-a,s=0,l=1,u=20;for(;.01<Math.abs(o)&&0<u--;)n&&(o*=-1),o<0?(s=e,e+=.5*(l-e)):(l=e,e+=.5*(s-e)),i=_(e,!0).lab()[0],o=i-a;return e}:e=>e,I},I.padding=function(e){return null!=e?("number"===C(e)&&(e=[e,e]),d=e,I):d},I.colors=function(t,r){arguments.length<2&&(r="hex");let e=[];if(0===arguments.length)e=m.slice(0);else if(1===t)e=[I(.5)];else if(1<t){const n=l[0],i=l[1]-n;e=function(t,e,r){var n=[],i=t<e,a=r?i?e+1:e-1:e;for(let e=t;i?e<a:e>a;i?e++:e--)n.push(e);return n}(0,t,!1).map(e=>I(n+e/(t-1)*i))}else{a=[];let n=[];if(p&&2<p.length)for(let e=1,t=p.length,r=1<=t;r?e<t:e>t;r?e++:e--)n.push(.5*(p[e-1]+p[e]));else n=l;e=n.map(e=>I(e))}return e=P[r]?e.map(e=>e[r]()):e},I.cache=function(e){return null!=e?(v=e,I):v},I.gamma=function(e){return null!=e?(b=e,I):b},I.nodata=function(e){return null!=e?(s=P(e),I):s},I}var Eb=function(t){let r=[1,1];for(let e=1;e<t;e++){var n=[1];for(let e=1;e<=r.length;e++)n[e]=(r[e]||0)+r[e-1];r=n}return r},Cb=Math["round"],Ob=(y.prototype.rgb=function(e=!0){return!1===e?this._rgb.slice(0,3):this._rgb.slice(0,3).map(Cb)},y.prototype.rgba=function(r=!0){return this._rgb.slice(0,4).map((e,t)=>!(t<3)||!1===r?e:Cb(e))},Object.assign(P,{rgb:(...e)=>new y(...e,"rgb")}),c.format.rgb=(...e)=>{e=b(e,"rgba");return void 0===e[3]&&(e[3]=1),e},c.autodetect.push({p:3,test:(...e)=>{if("array"===C(e=b(e,"rgba"))&&(3===e.length||4===e.length&&"number"==C(e[3])&&0<=e[3]&&e[3]<=1))return"rgb"}}),(e,t,r)=>{if(Ob[r])return Ob[r](e,t);throw new Error("unknown blend mode "+r)}),Z=r=>(e,t)=>{t=P(t).rgb(),e=P(e).rgb();return P.rgb(r(t,e))},t=n=>(e,t)=>{var r=[];return r[0]=n(e[0],t[0]),r[1]=n(e[1],t[1]),r[2]=n(e[2],t[2]),r},gp=(Ob.normal=Z(t(e=>e)),Ob.multiply=Z(t((e,t)=>e*t/255)),Ob.screen=Z(t((e,t)=>255*(1-(1-e/255)*(1-t/255)))),Ob.overlay=Z(t((e,t)=>t<128?2*e*t/255:255*(1-2*(1-e/255)*(1-t/255)))),Ob.darken=Z(t((e,t)=>t<e?t:e)),Ob.lighten=Z(t((e,t)=>t<e?e:t)),Ob.dodge=Z(t((e,t)=>255===e||255<(e=t/255*255/(1-e/255))?255:e)),Ob.burn=Z(t((e,t)=>255*(1-(1-t/255)/(e/255)))),Ob),{pow:Nb,sin:Ab,cos:Db}=Math;var{floor:Pb,random:Tb}=Math,{log:zb,pow:jb,floor:Lb,abs:Ub}=Math;function Rb(e,t=null){const r={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0};return(e="object"===C(e)?Object.values(e):e).forEach(e=>{null==(e=t&&"object"===C(e)?e[t]:e)||isNaN(e)||(r.values.push(e),r.sum+=e,e<r.min&&(r.min=e),e>r.max&&(r.max=e),r.count+=1)}),r.domain=[r.min,r.max],r.limits=(e,t)=>Mb(r,e,t),r}function Mb(e,t="equal",a=7){var{min:o,max:s}=e="array"==C(e)?Rb(e):e,l=e.values.sort((e,t)=>e-t);if(1===a)return[o,s];var u=[];if("c"===t.substr(0,1)&&(u.push(o),u.push(s)),"e"===t.substr(0,1)){u.push(o);for(let e=1;e<a;e++)u.push(o+e/a*(s-o));u.push(s)}else if("l"===t.substr(0,1)){if(o<=0)throw new Error("Logarithmic scales are only possible for values > 0");var r=Math.LOG10E*zb(o),n=Math.LOG10E*zb(s);u.push(o);for(let e=1;e<a;e++)u.push(jb(10,r+e/a*(n-r)));u.push(s)}else if("q"===t.substr(0,1)){u.push(o);for(let e=1;e<a;e++){var i=(l.length-1)*e/a,c=Lb(i);u.push(c===i?l[c]:l[c]*(1-(i=i-c))+l[c+1]*i)}u.push(s)}else if("k"===t.substr(0,1)){let t;var d=l.length,p=new Array(d),m=new Array(a);let r=!0,e=0,i=null;(i=[]).push(o);for(let e=1;e<a;e++)i.push(o+e/a*(s-o));for(i.push(s);r;){for(let e=0;e<a;e++)m[e]=0;for(let n=0;n<d;n++){var f=l[n];let t=Number.MAX_VALUE,r;for(let e=0;e<a;e++){var h=Ub(i[e]-f);h<t&&(t=h,r=e),m[r]++,p[n]=r}}var g=new Array(a);for(let e=0;e<a;e++)g[e]=null;for(let e=0;e<d;e++)null===g[t=p[e]]?g[t]=l[e]:g[t]+=l[e];for(let e=0;e<a;e++)g[e]*=1/m[e];r=!1;for(let e=0;e<a;e++)if(g[e]!==i[e]){r=!0;break}i=g,200<++e&&(r=!1)}var v={};for(let e=0;e<a;e++)v[e]=[];for(let e=0;e<d;e++)v[t=p[e]].push(l[e]);let n=[];for(let e=0;e<a;e++)n.push(v[e][0]),n.push(v[e][v[e].length-1]);n=n.sort((e,t)=>e-t),u.push(n[0]);for(let e=1;e<n.length;e+=2){var b=n[e];isNaN(b)||-1!==u.indexOf(b)||u.push(b)}}return u}function Bb(e,t,r){return.2126729*Math.pow(e/255,2.4)+.7151522*Math.pow(t/255,2.4)+.072175*Math.pow(r/255,2.4)}var{sqrt:Fb,pow:Zb,min:Vb,max:Gb,atan2:Kb,abs:qb,cos:Hb,sin:Jb,exp:Wb,PI:Xb}=Math;var i={cool(){return $b([P.hsl(180,1,.9),P.hsl(250,.7,.4)])},hot(){return $b(["#000","#f00","#ff0","#fff"]).mode("rgb")}},em={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},Yb=Object.keys(em),Qb=new Map(Yb.map(e=>[e.toLowerCase(),e])),n="function"==typeof Proxy?new Proxy(em,{get(e,t){t=t.toLowerCase();if(Qb.has(t))return e[Qb.get(t)]},getOwnPropertyNames(){return Object.getOwnPropertyNames(Yb)}}):em,Z=(...e)=>{var[t,r,n,i]=e=b(e,"cmyk"),e=4<e.length?e[4]:1;return 1===i?[0,0,0,e]:[1<=t?0:255*(1-t)*(1-i),1<=r?0:255*(1-r)*(1-i),1<=n?0:255*(1-n)*(1-i),e]},ey=Math["max"],ty=(...e)=>{var[e,t,r]=b(e,"rgb"),n=1-ey(e/=255,ey(t/=255,r/=255)),i=n<1?1/(1-n):0;return[(1-e-n)*i,(1-t-n)*i,(1-r-n)*i,n]},ry=(y.prototype.cmyk=function(){return ty(this._rgb)},Object.assign(P,{cmyk:(...e)=>new y(...e,"cmyk")}),c.format.cmyk=Z,c.autodetect.push({p:2,test:(...e)=>{if("array"===C(e=b(e,"cmyk"))&&4===e.length)return"cmyk"}}),(...e)=>{var t=b(e,"hsla");let r=pv(e)||"lsa";return t[0]=hv(t[0]||0)+"deg",t[1]=hv(100*t[1])+"%",t[2]=hv(100*t[2])+"%","hsla"===r||3<t.length&&t[3]<1?(t[3]="/ "+(3<t.length?t[3]:1),r="hsla"):t.length=3,`${r.substr(0,3)}(${t.join(" ")})`}),ny=(...e)=>{var t=b(e,"lab"),e=pv(e)||"lab";return t[0]=hv(t[0])+"%",t[1]=hv(t[1]),t[2]=hv(t[2]),"laba"===e||3<t.length&&t[3]<1?t[3]="/ "+(3<t.length?t[3]:1):t.length=3,`lab(${t.join(" ")})`},iy=(...e)=>{var t=b(e,"lch"),e=pv(e)||"lab";return t[0]=hv(t[0])+"%",t[1]=hv(t[1]),t[2]=isNaN(t[2])?"none":hv(t[2])+"deg","lcha"===e||3<t.length&&t[3]<1?t[3]="/ "+(3<t.length?t[3]:1):t.length=3,`lch(${t.join(" ")})`},ay=(...e)=>{e=b(e,"lab");return e[0]=hv(100*e[0])+"%",e[1]=gv(e[1]),e[2]=gv(e[2]),3<e.length&&e[3]<1?e[3]="/ "+(3<e.length?e[3]:1):e.length=3,`oklab(${e.join(" ")})`},oy=(...e)=>{var[e,t,r,...n]=b(e,"rgb"),[e,t,r]=bb(e,t,r),[e,t,r]=Xv(e,t,r);return[e,t,r,...0<n.length&&n[0]<1?[n[0]]:[]]},sy=(...e)=>{e=b(e,"lch");return e[0]=hv(100*e[0])+"%",e[1]=gv(e[1]),e[2]=isNaN(e[2])?"none":hv(e[2])+"deg",3<e.length&&e[3]<1?e[3]="/ "+(3<e.length?e[3]:1):e.length=3,`oklch(${e.join(" ")})`},ly=Math["round"],uy=(...e)=>{var t,r=b(e,"rgba");let n=pv(e)||"rgb";return"hsl"===n.substr(0,3)?ry(db(r),n):"lab"===n.substr(0,3)?(e=Dv(),Av("d50"),t=ny(Uv(r),n),Av(e),t):"lch"===n.substr(0,3)?(e=Dv(),Av("d50"),t=iy(Yv(r),n),Av(e),t):"oklab"===n.substr(0,5)?ay(bb(r)):"oklch"===n.substr(0,5)?sy(oy(r)):(r[0]=ly(r[0]),r[1]=ly(r[1]),r[2]=ly(r[2]),("rgba"===n||3<r.length&&r[3]<1)&&(r[3]="/ "+(3<r.length?r[3]:1),n="rgba"),`${n.substr(0,3)}(${r.slice(0,"rgb"===n?3:4).join(" ")})`)},cy=(...e)=>{var[e,t,r,...n]=e=b(e,"lch"),[e,t,r]=Kv(e,t,r),[e,t,r]=vb(e,t,r);return[e,t,r,...0<n.length&&n[0]<1?[n[0]]:[]]},t=/((?:-?\d+)|(?:-?\d+(?:\.\d+)?)%|none)/.source,em=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%?)|none)/.source,Z=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%)|none)/.source,dy=/\s*/.source,py=/\s+/.source,my=/\s*,\s*/.source,fy=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)(?:deg)?)|none)/.source,hy=/\s*(?:\/\s*((?:[01]|[01]?\.\d+)|\d+(?:\.\d+)?%))?/.source,gy=new RegExp("^rgba?\\("+dy+[t,t,t].join(py)+hy+"\\)$"),vy=new RegExp("^rgb\\("+dy+[t,t,t].join(my)+dy+"\\)$"),by=new RegExp("^rgba\\("+dy+[t,t,t,em].join(my)+dy+"\\)$"),yy=new RegExp("^hsla?\\("+dy+[fy,Z,Z].join(py)+hy+"\\)$"),wy=new RegExp("^hsl?\\("+dy+[fy,Z,Z].join(my)+dy+"\\)$"),ky=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,_y=new RegExp("^lab\\("+dy+[em,em,em].join(py)+hy+"\\)$"),Sy=new RegExp("^lch\\("+dy+[em,em,fy].join(py)+hy+"\\)$"),Iy=new RegExp("^oklab\\("+dy+[em,em,em].join(py)+hy+"\\)$"),xy=new RegExp("^oklch\\("+dy+[em,em,fy].join(py)+hy+"\\)$"),$y=Math["round"],Ey=e=>e.map((e,t)=>t<=2?uv($y(e),0,255):e),Cy=(e,t=0,r=100,n=!1)=>("string"==typeof e&&e.endsWith("%")&&(e=parseFloat(e.substring(0,e.length-1))/100,e=n?t+.5*(e+1)*(r-t):t+e*(r-t)),+e),Oy=(e,t)=>"none"===e?t:e,t=e=>{if("transparent"===(e=e.toLowerCase().trim()))return[0,0,0,0];let r;if(c.format.named)try{return c.format.named(e)}catch(e){}if(r=(r=e.match(gy))||e.match(vy)){let t=r.slice(1,4);for(let e=0;e<3;e++)t[e]=+Cy(Oy(t[e],0),0,255);t=Ey(t);var n=void 0!==r[4]?+Cy(r[4],0,1):1;return t[3]=n,t}if(r=e.match(by)){var t=r.slice(1,5);for(let e=0;e<4;e++)t[e]=+Cy(t[e],0,255);return t}if(r=(r=e.match(yy))||e.match(wy))return(n=r.slice(1,4))[0]=+Oy(n[0].replace("deg",""),0),n[1]=.01*+Cy(Oy(n[1],0),0,100),n[2]=.01*+Cy(Oy(n[2],0),0,100),n=Ey(cb(n)),i=void 0!==r[4]?+Cy(r[4],0,1):1,n[3]=i,n;if(r=e.match(ky)){var i=r.slice(1,4),a=(i[1]*=.01,i[2]*=.01,cb(i));for(let e=0;e<3;e++)a[e]=$y(a[e]);return a[3]=+r[4],a}return(r=e.match(_y))?((n=r.slice(1,4))[0]=Cy(Oy(n[0],0),0,100),n[1]=Cy(Oy(n[1],0),-125,125,!0),n[2]=Cy(Oy(n[2],0),-125,125,!0),i=Dv(),Av("d50"),n=Ey(zv(n)),Av(i),i=void 0!==r[4]?+Cy(r[4],0,1):1,n[3]=i,n):(r=e.match(Sy))?((i=r.slice(1,4))[0]=Cy(i[0],0,100),i[1]=Cy(Oy(i[1],0),0,150,!1),i[2]=+Oy(i[2].replace("deg",""),0),n=Dv(),Av("d50"),i=Ey(qv(i)),Av(n),n=void 0!==r[4]?+Cy(r[4],0,1):1,i[3]=n,i):(r=e.match(Iy))?((n=r.slice(1,4))[0]=Cy(Oy(n[0],0),0,1),n[1]=Cy(Oy(n[1],0),-.4,.4,!0),n[2]=Cy(Oy(n[2],0),-.4,.4,!0),i=Ey(vb(n)),n=void 0!==r[4]?+Cy(r[4],0,1):1,i[3]=n,i):(r=e.match(xy))?((n=r.slice(1,4))[0]=Cy(Oy(n[0],0),0,1),n[1]=Cy(Oy(n[1],0),0,.4,!1),n[2]=+Oy(n[2].replace("deg",""),0),i=Ey(cy(n)),e=void 0!==r[4]?+Cy(r[4],0,1):1,i[3]=e,i):void 0},Ny=(t.test=e=>gy.test(e)||yy.test(e)||_y.test(e)||Sy.test(e)||Iy.test(e)||xy.test(e)||vy.test(e)||by.test(e)||wy.test(e)||ky.test(e)||"transparent"===e,t),Ay=(y.prototype.css=function(e){return uy(this._rgb,e)},P.css=(...e)=>new y(...e,"css"),c.format.css=Ny,c.autodetect.push({p:5,test:(e,...t)=>{if(!t.length&&"string"===C(e)&&Ny.test(e))return"css"}}),c.format.gl=(...e)=>{e=b(e,"rgba");return e[0]*=255,e[1]*=255,e[2]*=255,e},P.gl=(...e)=>new y(...e,"gl"),y.prototype.gl=function(){var e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]},y.prototype.hex=function(e){return Ev(this._rgb,e)},(P.hex=(...e)=>new y(...e,"hex"),c.format.hex=xv,c.autodetect.push({p:4,test:(e,...t)=>{if(!t.length&&"string"===C(e)&&0<=[3,4,5,6,7,8,9].indexOf(e.length))return"hex"}}),Math)["log"]),Dy=e=>{e/=100;let t,r,n;return n=e<66?(t=255,r=e<6?0:-155.25485562709179-.44596950469579133*(r=e-2)+104.49216199393888*Ay(r),e<20?0:.8274096064007395*(n=e-10)-254.76935184120902+115.67994401066147*Ay(n)):(t=351.97690566805693+.114206453784165*(t=e-55)-40.25366309332127*Ay(t),r=325.4494125711974+.07943456536662342*(r=e-50)-28.0852963507957*Ay(r),255),[t,r,n,1]},Py=Math["round"],Ty=(...e)=>{var e=b(e,"rgb"),t=e[0],r=e[2];let n=1e3,i=4e4;let a;for(;.4<i-n;){a=.5*(i+n);var o=Dy(a);o[2]/o[0]>=r/t?i=a:n=a}return Py(a)},Z=(y.prototype.temp=y.prototype.kelvin=y.prototype.temperature=function(){return Ty(this._rgb)},(...e)=>new y(...e,"temp")),T=(Object.assign(P,{temp:Z,kelvin:Z,temperature:Z}),c.format.temp=c.format.kelvin=c.format.temperature=Dy,y.prototype.oklch=function(){return oy(this._rgb)},Object.assign(P,{oklch:(...e)=>new y(...e,"oklch")}),c.format.oklch=cy,c.autodetect.push({p:2,test:(...e)=>{if("array"===C(e=b(e,"oklch"))&&3===e.length)return"oklch"}}),Object.assign(P,{analyze:Rb,average:(e,s="lrgb",l=null)=>{var t=e.length;const r=t/(l=l||Array.from(new Array(t)).map(()=>1)).reduce(function(e,t){return e+t});if(l.forEach((e,t)=>{l[t]*=r}),e=e.map(e=>new y(e)),"lrgb"===s){var n=e,i=l,a=n.length,o=[0,0,0,0];for(let e=0;e<n.length;e++){var u=n[e],c=i[e]/a,u=u._rgb;o[0]+=yb(u[0],2)*c,o[1]+=yb(u[1],2)*c,o[2]+=yb(u[2],2)*c,o[3]+=u[3]*c}return o[0]=wb(o[0]),o[1]=wb(o[1]),o[2]=wb(o[2]),.9999999<o[3]&&(o[3]=1),new y(cv(o))}{var d,p=e.shift();const m=p.get(s),f=[];let i=0,a=0;for(let e=0;e<m.length;e++)m[e]=(m[e]||0)*l[0],f.push(isNaN(m[e])?0:l[0]),"h"!==s.charAt(e)||isNaN(m[e])||(d=m[e]/180*kb,i+=_b(d)*l[0],a+=Sb(d)*l[0]);let o=p.alpha()*l[0];e.forEach((e,t)=>{var r,n=e.get(s);o+=e.alpha()*l[t+1];for(let e=0;e<m.length;e++)isNaN(n[e])||(f[e]+=l[t+1],"h"===s.charAt(e)?(r=n[e]/180*kb,i+=_b(r)*l[t+1],a+=Sb(r)*l[t+1]):m[e]+=n[e]*l[t+1])});for(let t=0;t<m.length;t++)if("h"===s.charAt(t)){let e=Ib(a/f[t],i/f[t])/kb*180;for(;e<0;)e+=360;for(;360<=e;)e-=360;m[t]=e}else m[t]=m[t]/f[t];return o/=t,new y(m,s).alpha(.99999<o?1:o,!0)}},bezier:e=>{const t=function(e){let n,i,a,o;if(2===(e=e.map(e=>new y(e))).length)[i,a]=e.map(e=>e.lab()),n=function(t){var e=[0,1,2].map(e=>i[e]+t*(a[e]-i[e]));return new y(e,"lab")};else if(3===e.length)[i,a,o]=e.map(e=>e.lab()),n=function(t){var e=[0,1,2].map(e=>(1-t)*(1-t)*i[e]+2*(1-t)*t*a[e]+t*t*o[e]);return new y(e,"lab")};else if(4===e.length){let r;[i,a,o,r]=e.map(e=>e.lab()),n=function(t){var e=[0,1,2].map(e=>(1-t)*(1-t)*(1-t)*i[e]+3*(1-t)*(1-t)*t*a[e]+3*(1-t)*t*t*o[e]+t*t*t*r[e]);return new y(e,"lab")}}else{if(!(5<=e.length))throw new RangeError("No point in running bezier with only one color.");{let t,o,s;t=e.map(e=>e.lab()),s=e.length-1,o=Eb(s),n=function(i){const a=1-i;var e=[0,1,2].map(n=>t.reduce((e,t,r)=>e+o[r]*a**(s-r)*i**r*t[n],0));return new y(e,"lab")}}}return n}(e);return t.scale=()=>$b(t),t},blend:gp,brewer:n,Color:y,colors:_v,contrast:(e,t)=>{e=new y(e),t=new y(t);e=e.luminance(),t=t.luminance();return t<e?(e+.05)/(t+.05):(t+.05)/(e+.05)},contrastAPCA:(e,t)=>{e=new y(e),t=new y(t);var e=Bb(...(e=e.alpha()<1?Zv(t,e,e.alpha(),"rgb"):e).rgb()),t=Bb(...t.rgb()),e=.022<=e?e:e+Math.pow(.022-e,1.414),t=.022<=t?t:t+Math.pow(.022-t,1.414),r=Math.pow(t,.56)-Math.pow(e,.57),n=Math.pow(t,.65)-Math.pow(e,.62),e=Math.abs(t-e)<5e-4?0:e<t?1.14*r:1.14*n;return 100*(Math.abs(e)<.1?0:0<e?e-.027:.027+e)},cubehelix:function(i=300,a=-1.5,o=1,s=1,l=[0,1]){let u=0,c;function t(e){var t=vv*((i+120)/360+a*e),r=Nb(l[0]+c*e,s),e=(0!==u?o[0]+e*u:o)*r*(1-r)/2,n=Db(t),t=Ab(t);return P(cv([255*(r+e*(-.14861*n+1.78277*t)),255*(r+e*(-.29227*n-.90649*t)),255*(r+1.97294*n*e),1]))}return"array"===C(l)?c=l[1]-l[0]:(c=0,l=[l,l]),t.start=function(e){return null==e?i:(i=e,t)},t.rotations=function(e){return null==e?a:(a=e,t)},t.gamma=function(e){return null==e?s:(s=e,t)},t.hue=function(e){return null==e?o:("array"===C(o=e)?0===(u=o[1]-o[0])&&(o=o[1]):u=0,t)},t.lightness=function(e){return null==e?l:(c="array"===C(e)?(l=e)[1]-e[0]:(l=[e,e],0),t)},t.scale=()=>P.scale(t),t.hue(o),t},deltaE:function(e,t,r=1,n=1,i=1){function a(e){return 360*e/(2*Xb)}function o(e){return 2*Xb*e/360}e=new y(e),t=new y(t);var[e,s,l]=Array.from(e.lab()),[t,u,c]=Array.from(t.lab()),d=(e+t)/2,p=(Fb(Zb(s,2)+Zb(l,2))+Fb(Zb(u,2)+Zb(c,2)))/2,p=.5*(1-Fb(Zb(p,7)/(Zb(p,7)+Zb(25,7)))),u=u*(1+p),p=Fb(Zb(s=s*(1+p),2)+Zb(l,2)),m=Fb(Zb(u,2)+Zb(c,2)),f=(p+m)/2,l=a(Kb(l,s)),s=a(Kb(c,u)),l=180<qb((c=0<=l?l:l+360)-(u=0<=s?s:s+360))?(c+u+360)/2:(c+u)/2,s=1-.17*Hb(o(l-30))+.24*Hb(o(2*l))+.32*Hb(o(3*l+6))-.2*Hb(o(4*l-63)),h=qb(h=u-c)<=180?h:u<=c?360+h:h-360,u=(h=2*Fb(p*m)*Jb(o(h)/2),t-e),c=m-p,t=1+.015*Zb(d-50,2)/Fb(20+Zb(d-50,2)),e=1+.045*f,m=1+.015*f*s,p=30*Wb(-Zb((l-275)/25,2)),d=-(2*Fb(Zb(f,7)/(Zb(f,7)+Zb(25,7))))*Jb(2*o(p)),s=Fb(Zb(u/(r*t),2)+Zb(c/(n*e),2)+Zb(h/(i*m),2)+c/(n*e)*d*(h/(i*m)));return Gb(0,Vb(100,s))},distance:function(e,t,r="lab"){e=new y(e),t=new y(t);var n,i=e.get(r),a=t.get(r);let o=0;for(n in i){var s=(i[n]||0)-(a[n]||0);o+=s*s}return Math.sqrt(o)},input:c,interpolate:Zv,limits:Mb,mix:Zv,random:(t=Tb)=>{let r="#";for(let e=0;e<6;e++)r+="0123456789abcdef".charAt(Pb(16*t()));return new y(r,"hex")},scale:$b,scales:i,valid:(...e)=>{try{return new y(...e),!0}catch(e){return!1}}}),(e,t)=>{e=E.getItem(e);if(!e)return t;try{return JSON.parse(e)}catch{return e}}),zy=(e,t)=>{var r,e=e.toLowerCase(),t=t.toLowerCase();return t.includes("*")?(r=t.replace(/[.+?^${}()|[\]\\]/g,"\\$&").replace(/\*/g,"[^/]+"),new RegExp(`^${r}$`).test(e)):e===t},jy=e=>{var t,r,n={section:/^\s*\[\s*([^\]]*)\s*\]\s*$/,param:/^\s*([^=]+?)\s*=\s*(.*?)\s*$/,comment:/^\s*;.*$/},i={};let a=null;for(const o of e.split(/[\r\n]+/))n.comment.test(o)||(n.param.test(o)?o.includes("xrdb")||(t=o.match(n.param),a&&t&&3===t.length&&(r=t[1].trim(),t=t[2].split(";")[0].trim(),i[a]||(i[a]={}),i[a][r]=t)):n.section.test(o)&&(r=o.match(n.section))&&(i[a=r[1]]={}));return i},Ly=e=>{var t=document.querySelector("style.marketplaceSnippets"),t=(t&&t.remove(),document.createElement("style")),e=e.reduce((e,t)=>`${e}/* ${t.title} - ${t.description} */
${t.code}
`,"");t.innerHTML=e,t.classList.add("marketplaceSnippets"),document.body.appendChild(t)},Uy=(e,t)=>{let r=[];return e&&0<e.length?r=e.map(e=>({name:e.name,url:Jy(e.url)})):r.push({name:t,url:"https://github.com/"+t}),r},Ry=e=>e?Object.keys(e).map(e=>({key:e,value:e})):[],My=e=>[{key:"stars",value:e("grid.sort.stars")},{key:"newest",value:e("grid.sort.newest")},{key:"oldest",value:e("grid.sort.oldest")},{key:"lastUpdated",value:e("grid.sort.lastUpdated")},{key:"mostStale",value:e("grid.sort.mostStale")},{key:"a-z",value:e("grid.sort.aToZ")},{key:"z-a",value:e("grid.sort.zToA")}];async function By(e){console.debug("Resetting Marketplace");var t=[];if(0===e.length)for(const r of E.keys())r.startsWith("marketplace:")&&t.push(r);for(const n of e)switch(n){case"extensions":t.push(...T(x.installedExtensions,[])),t.push(x.installedExtensions);break;case"snippets":t.push(...T(x.installedSnippets,[])),t.push(x.installedSnippets);break;case"theme":t.push(...T(x.installedThemes,[])),t.push(x.installedThemes),t.push(x.themeInstalled);break;default:console.error("Unknown category: "+n)}for(const i of new Set(t))await E.removeItemAsync(i),console.debug("Removed "+i);console.debug("Marketplace has been reset")}var Fy=async(...e)=>{await By(e),location.reload()};var Zy=async e=>{if(!("object"==typeof(t=e)&&null!==t&&!Array.isArray(t)&&Object.getPrototypeOf(t)===Object.prototype&&0!==(t=Object.entries(t)).length?t.every(([e,t])=>e.startsWith("marketplace:")&&"string"==typeof t):void 0))throw new Error("Invalid Marketplace backup data");var t;console.debug("Importing Marketplace"),await By([]);for(const r in e)await E.setItemAsync(r,e[r]),console.debug("Imported "+r)},Vy=t=>{var r=document.querySelector("style.marketplaceCSS.marketplaceScheme");if(r&&r.remove(),t){r=document.createElement("style");r.classList.add("marketplaceCSS"),r.classList.add("marketplaceScheme");let e=":root {";for(const n of Object.keys(t))e=(e+=`--spice-${n}: #${t[n]};`)+`--spice-rgb-${n}: ${(e=>{e=3===e.length?e.split("").map(e=>e+e).join(""):e;if(6!==e.length)throw"Only 3- or 6-digit hex colours are allowed.";if(e.match(/[^0-9a-f]/i))throw"Only hex colours are allowed.";e=e.match(/.{1,2}/g);if(3!==e?.length)throw"Could not parse hex colour.";return[Number.parseInt(e[0],16),Number.parseInt(e[1],16),Number.parseInt(e[2],16)]})(t[n])};`;e+="}",r.innerHTML=e,document.body.appendChild(r)}},Gy=e=>{try{var t,r,n=document.querySelector("link[href='user.css']"),i=(n&&n.remove(),document.querySelector("style.marketplaceCSS.marketplaceUserCSS"));i&&i.remove(),e?((t=document.createElement("style")).classList.add("marketplaceCSS"),t.classList.add("marketplaceUserCSS"),t.innerHTML=e,document.body.appendChild(t)):((r=document.createElement("link")).setAttribute("rel","stylesheet"),r.setAttribute("href","user.css"),r.classList.add("userCSS"),document.body.appendChild(r))}catch(e){console.warn(e)}},Ky=async(e,t)=>{if(!e.cssURL)throw new Error("No CSS URL provided");var t=t||await async function(){for(const e of["net","xyz"])try{if("opaqueredirect"===(await fetch("https://cdn.jsdelivr."+e,{redirect:"manual",cache:"no-cache"})).type)return e}catch(e){console.error(e)}}(),t=(e=>{const t=new URL(e);return t.host==="raw.githubusercontent.com"})(e.cssURL)?`https://cdn.jsdelivr.${t}/gh/${e.user}/${e.repo}@${e.branch}/`+e.manifest.usercss:e.cssURL,r=t.replace("/user.css","/assets/"),e=(console.debug("Parsing CSS: ",t),await fetch(t+"?time="+Date.now()));if(!e.ok)throw new Error(`Failed to fetch theme CSS (HTTP ${e.status})`);let n=await e.text();for(const o of n.matchAll(/url\(['|"](?<path>.+?)['|"]\)/gm)||[]){var i,a=o?.groups?.path;!a||a.startsWith("http")||a.startsWith("data")||(i=r+a.replace(/\.\//g,""),n=n.replace(a,i))}return n};async function qy(e,t,r){try{var n={text:e,context:t+"/"+r,mode:"gfm"},i=await fetch("https://api.github.com/markdown",{method:"POST",body:JSON.stringify(n)});if(i.ok)return await i.text();throw Spicetify.showNotification(w("notifications.markdownParsingError",{status:i.status}),!0)}catch{return null}}function Hy(e){var t="snippet"===e.type?"snippet:":`${e.item.user}/${e.item.repo}/`;let r;switch(e.type){case"snippet":r=e.item.title.replaceAll(" ","-");break;case"theme":r=e.item.manifest?.usercss||"";break;case"extension":r=e.item.manifest?.main||"";break;case"app":r=e.item.manifest?.name?.replaceAll(" ","-")||""}return"marketplace:installed:"+t+r}var Jy=e=>{var t=decodeURI(e).trim().toLowerCase();return t.startsWith("javascript:")||t.startsWith("data:")||t.startsWith("vbscript:")?"about:blank":e},Wy=(e,t)=>{e=e.title||e?.manifest?.name||"",t=t.title||t?.manifest?.name||"";return e.localeCompare(t)},Xy=(e,t)=>{return void 0===e.created||void 0===t.created?0:(e=new Date(e.created),new Date(t.created).getTime()-e.getTime())},Yy=(e,t)=>{return void 0===e.lastUpdated||void 0===t.lastUpdated?0:(e=new Date(e.lastUpdated),new Date(t.lastUpdated).getTime()-e.getTime())},Qy=(e,t)=>{switch(t){case"a-z":e.sort((e,t)=>Wy(e,t));break;case"z-a":e.sort((e,t)=>Wy(t,e));break;case"newest":e.sort((e,t)=>Xy(e,t));break;case"oldest":e.sort((e,t)=>Xy(t,e));break;case"lastUpdated":e.sort((e,t)=>Yy(e,t));break;case"mostStale":e.sort((e,t)=>Yy(t,e));break;default:e.sort((e,t)=>t.stars-e.stars)}};async function e0(e,t=1,r=[],n=!1){let i=`https://api.github.com/search/repositories?q=${encodeURIComponent("topic:"+e)}&per_page=100`;t&&(i+="&page="+t);var a=JSON.parse(window.sessionStorage.getItem(e+"-page-"+t)||"null")||await fetch(i).then(e=>e.json()).catch(()=>null);return a?.items?(window.sessionStorage.setItem(e+"-page-"+t,JSON.stringify(a)),{...a,page_count:a.items.length,items:a.items.filter(e=>{return t=e.html_url,!r.some(e=>zy(t,e))&&(n||!e.archived);var t})}):(Spicetify.showNotification(w("notifications.tooManyRequests"),!0,5e3),{items:[]})}var my=new Blob([`
  self.addEventListener('message', async (event) => {
    const url = event.data;
    const response = await fetch(url);
    const data = await response.json().catch(() => null);
    self.postMessage(data);
  });
`],{type:"application/javascript"}),t0=URL.createObjectURL(my);async function r0(e){const n=new Worker(t0);return new Promise(t=>{const r=e=>{n.terminate(),t(e)};n.postMessage(e),n.addEventListener("message",e=>r(e.data),{once:!0}),n.addEventListener("error",()=>r(null),{once:!0})})}async function n0(r,n,i){var a=r+"-"+n,o=window.sessionStorage.getItem(a),s=JSON.parse(window.sessionStorage.getItem("noManifests")||"[]"),i=`https://raw.githubusercontent.com/${r}/${n}/${i}/manifest.json`;if(o||!s.includes(i)){let t,e=!1;if(o)try{t=JSON.parse(o),e=!0}catch(e){console.warn(`Invalid cached Marketplace manifest from ${r}/`+n,e),window.sessionStorage.removeItem(a),t=await r0(i)}else t=await r0(i);if(t)return s=(t=Array.isArray(t)?t:[t]).flatMap(e=>{e=Ug.safeParse(e);return e.success?[e.data]:(console.warn(`Invalid Marketplace manifest from ${r}/`+n,e.error),[])}),e||window.sessionStorage.setItem(a,JSON.stringify(s)),s;var o=[i],l="noManifests";if(o)for(const d of o){var u=l||d.user+"-"+d.repo,c=window.sessionStorage.getItem(u),c=c?JSON.parse(c):[];c.push(d),window.sessionStorage.setItem(u,JSON.stringify(c))}}return[]}async function i0(e,n,i,a=!1){try{var t=e.match(/https:\/\/api\.github\.com\/repos\/(?<user>.+)\/(?<repo>.+)\/contents/);if(!t?.groups)return null;const{user:o,repo:s}=t.groups;return(await n0(o,s,n)).reduce((e,t)=>{var r;return t?.name&&t.description&&t.main&&(r=t.branch||n,r={manifest:t,title:t.name,subtitle:t.description,authors:Uy(t.authors,o),user:o,repo:s,branch:r,imageURL:t.preview?.startsWith("http")?t.preview:`https://raw.githubusercontent.com/${o}/${s}/${r}/`+t.preview,extensionURL:t.main.startsWith("http")?t.main:`https://raw.githubusercontent.com/${o}/${s}/${r}/`+t.main,readmeURL:t.readme?.startsWith("http")?t.readme:`https://raw.githubusercontent.com/${o}/${s}/${r}/`+t.readme,stars:i,tags:t.tags},a&&E.getItem(`marketplace:installed:${o}/${s}/`+t.main)||e.push(r)),e},[])}catch{return null}}async function a0(e,n,i){try{var t=e.match(/https:\/\/api\.github\.com\/repos\/(?<user>.+)\/(?<repo>.+)\/contents/);if(!t?.groups)return null;const{user:a,repo:o}=t.groups;return(await n0(a,o,n)).reduce((e,t)=>{var r;return t?.name&&t?.usercss&&t?.description&&(r=t.branch||n,r={manifest:t,title:t.name,subtitle:t.description,authors:Uy(t.authors,a),user:a,repo:o,branch:r,imageURL:t.preview?.startsWith("http")?t.preview:`https://raw.githubusercontent.com/${a}/${o}/${r}/`+t.preview,readmeURL:t.readme?.startsWith("http")?t.readme:`https://raw.githubusercontent.com/${a}/${o}/${r}/`+t.readme,stars:i,tags:t.tags,cssURL:t.usercss.startsWith("http")?t.usercss:`https://raw.githubusercontent.com/${a}/${o}/${r}/`+t.usercss,schemesURL:t.schemes?t.schemes.startsWith("http")?t.schemes:`https://raw.githubusercontent.com/${a}/${o}/${r}/`+t.schemes:null,include:t.include},e.push(r)),e},[])}catch{return null}}async function o0(e,n,i){try{var t=e.match(/https:\/\/api\.github\.com\/repos\/(?<user>.+)\/(?<repo>.+)\/contents/);if(!t?.groups)return null;const{user:a,repo:o}=t.groups;return(await n0(a,o,n)).reduce((e,t)=>{var r;return t?.name&&t.description&&!t.main&&!t.usercss&&(r=t.branch||n,r={manifest:t,title:t.name,subtitle:t.description,authors:Uy(t.authors,a),user:a,repo:o,branch:r,imageURL:t.preview?.startsWith("http")?t.preview:`https://raw.githubusercontent.com/${a}/${o}/${r}/`+t.preview,readmeURL:t.readme?.startsWith("http")?t.readme:`https://raw.githubusercontent.com/${a}/${o}/${r}/`+t.readme,stars:i,tags:t.tags},e.push(r)),e},[])}catch{return null}}var s0=async()=>{return(await fetch("https://raw.githubusercontent.com/spicetify/marketplace/main/resources/blacklist.json").then(e=>e.json()).catch(()=>({}))).repos},l0=async(r=!1)=>{var e=await fetch("https://raw.githubusercontent.com/spicetify/marketplace/main/resources/snippets.json").then(e=>e.json()).catch(()=>[]);return e.length?e.reduce((e,t)=>{t={...t};return t.preview&&(t.imageURL=t.preview.startsWith("http")?t.preview:"https://raw.githubusercontent.com/spicetify/spicetify-marketplace/main/"+t.preview,t.preview=void 0),r&&E.getItem("marketplace:installed:snippet:"+t.title.replaceAll(" ","-"))||e.push(t),e},[]):[]},u0=r(h()),c0=r(je()),d0=r(h()),p0=r(Le()),m0=(Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json,r(h())),f0="button-module__button___hf2qg_marketplace",h0="button-module__circle___EZ88P_marketplace",g0=e=>{var t=e.type||"round",r=[f0];return"circle"===t&&r.push(h0),e.classes&&r.push(...e.classes),m0.default.createElement("button",{className:r.join(" "),onClick:e.onClick,"aria-label":e.label||"",disabled:e.disabled},e.children)};var v0=()=>{const[e,t]=d0.default.useState("");const r=async t=>{if(t){let e;try{e=JSON.parse(t)}catch{return void Spicetify.showNotification(w("backupModal.invalidJSON"))}try{await Zy(e),location.reload()}catch(e){console.error("Failed to import Marketplace backup",e),Spicetify.showNotification(e instanceof Error?e.message:w("backupModal.invalidJSON"),!0)}}else Spicetify.showNotification(w("backupModal.noDataPasted"))};return d0.default.createElement("div",{id:"marketplace-backup-container"},d0.default.createElement("div",{className:"marketplace-backup-input-container"},d0.default.createElement("label",{htmlFor:"marketplace-backup"},w("backupModal.inputLabel")),d0.default.createElement("div",{className:"marketplace-code-editor-wrapper marketplace-code-editor"},d0.default.createElement(p0.default,{value:e,onValueChange:e=>t(e),highlight:e=>(0,c0.highlight)(e,c0.languages.css),textareaId:"marketplace-import-text",textareaClassName:"import-textarea",readOnly:!1,className:"marketplace-code-editor-textarea",placeholder:w("backupModal.inputPlaceholder"),style:{}}))),d0.default.createElement(g0,{classes:["marketplace-backup-button"],onClick:async()=>{var t,e,r=(()=>{var e,t,r={};for([e,t]of Object.entries(E.entries()))e.startsWith("marketplace:")&&(r[e]=t);return r})();try{t=JSON.stringify(r,null,2),e=new Date,await(e=await(await window.showSaveFilePicker({id:"marketplace-settings-backup",suggestedName:`marketplace-settings-${e.toISOString()}.json`,excludeAcceptAllOption:!0,types:[{description:"JSON files",accept:{"application/json":[".json"]}}]})).createWritable()).write(t),await e.close(),Spicetify.showNotification(w("backupModal.settingsSaved"))}catch(e){(t=e)instanceof DOMException&&"AbortError"===t.name||(console.error("Failed to save file, copying to clipboard instead:",e),Spicetify.Platform.ClipboardAPI.copy(JSON.stringify(r)),Spicetify.showNotification(w("backupModal.settingsCopied")))}Spicetify.PopupModal.hide()}},w("backupModal.exportBtn")),d0.default.createElement(g0,{classes:["marketplace-backup-button"],onClick:async()=>{await r(e)}},w("backupModal.importBtn")),d0.default.createElement(g0,{classes:["marketplace-backup-button"],onClick:async()=>{var e=await(await(await window.showOpenFilePicker())[0].getFile()).text();await r(e)}},w("backupModal.fileImportBtn")))},b0=r(h()),y0=()=>b0.default.createElement("div",{id:"marketplace-reload-container"},b0.default.createElement("p",null,w("reloadModal.description")),b0.default.createElement("div",{className:"marketplace-reload-modal__button-container"},b0.default.createElement(g0,{onClick:()=>{Spicetify.PopupModal.hide(),location.reload()}},w("reloadModal.reloadNow")),b0.default.createElement(g0,{onClick:()=>{Spicetify.PopupModal.hide()}},w("reloadModal.reloadLater")))),d=r(h()),w0=r(h()),k0=r(h()),_0=()=>k0.default.createElement("svg",{height:"16",width:"16",className:"Svg-sc-ytk21e-0 uPxdw nW1RKQOkzcJcX6aDCZB4",viewBox:"0 0 16 16",role:"img","aria-label":"Tooltip Icon"},k0.default.createElement("path",{d:"M8 1.5a6.5 6.5 0 100 13 6.5 6.5 0 000-13zM0 8a8 8 0 1116 0A8 8 0 010 8z"}),k0.default.createElement("path",{d:"M7.25 12.026v-1.5h1.5v1.5h-1.5zm.884-7.096A1.125 1.125 0 007.06 6.39l-1.431.448a2.625 2.625 0 115.13-.784c0 .54-.156 1.015-.503 1.488-.3.408-.7.652-.973.818l-.112.068c-.185.116-.26.203-.302.283-.046.087-.097.245-.097.57h-1.5c0-.47.072-.898.274-1.277.206-.385.507-.645.827-.846l.147-.092c.285-.177.413-.257.526-.41.169-.23.213-.397.213-.602 0-.622-.503-1.125-1.125-1.125z"})),S0=r(h()),I0=r(Re()),x0=t=>{var e=t.sortBoxOptions.map(e=>({value:e.key,label:e.value})),r=t.sortBoxOptions.find(t.sortBySelectedFn);return S0.default.createElement("div",{className:"marketplace-sortBox"},S0.default.createElement("div",{className:"marketplace-sortBox-header"},S0.default.createElement("div",{className:"marketplace-sortBox-header-title"}),S0.default.createElement(I0.default,{placeholder:"Select an option",options:e,value:r?.key,onChange:e=>{t.onChange(e.value)}})))},$0=r(h()),E0="toggle-module__toggle-wrapper___ocE5z_marketplace",C0="toggle-module__disabled___OYAYf_marketplace",O0="toggle-module__toggle-input___ceLM4_marketplace",N0="toggle-module__toggle-indicator-wrapper___6Lcp0_marketplace",A0="toggle-module__toggle-indicator___nCxwE_marketplace",D0=e=>{var t="toggle:"+e.storageKey,r=[E0];return!1===e.clickable&&r.push(C0),$0.default.createElement("label",{className:r.join(" ")},$0.default.createElement("input",{className:O0,type:"checkbox",checked:e.enabled,"data-storage-key":e.storageKey,id:t,title:"Toggle for "+e.storageKey,onChange:e.onChange}),$0.default.createElement("span",{className:N0},$0.default.createElement("span",{className:A0})))},P0=r(h());function T0({children:e,...t}){return Spicetify.ReactComponent.TooltipWrapper?P0.default.createElement(Spicetify.ReactComponent.TooltipWrapper,{...t},e):e}var z0=r=>{var e=r.type,t="dropdown"===e?"dropdown:"+r.storageKey:"toggle:"+r.storageKey,n=!!r.modalConfig.visual[r.storageKey];return void 0!==r.description&&null!==r.description||(r.description=""),"dropdown"===e&&r.options?w0.default.createElement("div",{className:"settings-row"},w0.default.createElement("label",{htmlFor:t,className:"col description"},r.name),w0.default.createElement("div",{className:"col action"},w0.default.createElement(x0,{sortBoxOptions:r.options.map(e=>({key:e,value:e})),onChange:e=>{return e=e,t=r.storageKey,r.modalConfig.visual[t]=e,E.setItem("marketplace:"+t,String(e)),void r.updateConfig(r.modalConfig);var t},sortBySelectedFn:e=>e.key===r.modalConfig.visual[r.storageKey]}),w0.default.createElement(T0,{label:r.description.split("\n").map(e=>w0.default.createElement("span",{key:e},e,w0.default.createElement("br",null))),renderInline:!0,showDelay:10,placement:"top",labelClassName:"marketplace-settings-tooltip",disabled:!1},w0.default.createElement("div",{className:"marketplace-tooltip-icon"},w0.default.createElement(_0,null))))):w0.default.createElement("div",{className:"settings-row"},w0.default.createElement("label",{htmlFor:t,className:"col description"},r.name),w0.default.createElement("div",{className:"col action"},w0.default.createElement(D0,{name:r.name,storageKey:r.storageKey,enabled:n,onChange:e=>{var t=e.target.checked,e=e.target.dataset.storageKey;r.modalConfig.visual[e]=t,console.debug(`toggling ${e} to `+t),E.setItem("marketplace:"+e,String(t)),r.updateConfig(r.modalConfig)}})))},G=r(h()),j0=r(Me()),L0=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),U0=()=>Math.random().toString(36).substring(7).split("").join("."),R0={INIT:"@@redux/INIT"+U0(),REPLACE:"@@redux/REPLACE"+U0(),PROBE_UNKNOWN_ACTION:()=>"@@redux/PROBE_UNKNOWN_ACTION"+U0()};function M0(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if((r=e)instanceof Date||"function"==typeof r.toDateString&&"function"==typeof r.getDate&&"function"==typeof r.setDate)return"date";if((r=e)instanceof Error||"string"==typeof r.message&&r.constructor&&"number"==typeof r.constructor.stackTraceLimit)return"error";var r,n="function"==typeof(r=e).constructor?r.constructor.name:null;switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function B0(e){let t=typeof e;return t=M0(e)}function F0(e,t,r){if("function"!=typeof e)throw new Error(`Expected the root reducer to be a function. Instead, received: '${B0(e)}'`);if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(`Expected the enhancer to be a function. Instead, received: '${B0(r)}'`);return r(F0)(e,t)}let n=e,i=t,a=new Map,o=a,s=0,l=!1;function u(){o===a&&(o=new Map,a.forEach((e,t)=>{o.set(t,e)}))}function c(){if(l)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function d(e){if("function"!=typeof e)throw new Error(`Expected the listener to be a function. Instead, received: '${B0(e)}'`);if(l)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let t=!0;u();const r=s++;return o.set(r,e),function(){if(t){if(l)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");t=!1,u(),o.delete(r),a=null}}}function p(e){if(!function(t){if("object"==typeof t&&null!==t){let e=t;for(;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||null===Object.getPrototypeOf(t)}}(e))throw new Error(`Actions must be plain objects. Instead, the actual type was: '${B0(e)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if("string"!=typeof e.type)throw new Error(`Action "type" property must be a string. Instead, the actual type was: '${B0(e.type)}'. Value was: '${e.type}' (stringified)`);if(l)throw new Error("Reducers may not dispatch actions.");try{l=!0,i=n(i,e)}finally{l=!1}a=o;return a.forEach(e=>{e()}),e}return p({type:R0.INIT}),{dispatch:p,subscribe:d,getState:c,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function. Instead, received: '"+B0(e));n=e,p({type:R0.REPLACE})},[L0]:function(){const r=d;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(`Expected the observer to be an object. Instead, received: '${B0(t)}'`);function e(){var e=t;e.next&&e.next(c())}return e(),{unsubscribe:r(e)}},[L0](){return this}}}}}function Z0(t,r){return function(...e){return r(t.apply(this,e))}}function V0(e,t){if("function"==typeof e)return Z0(e,t);if("object"!=typeof e||null===e)throw new Error(`bindActionCreators expected an object or a function, but instead received: '${B0(e)}'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?`);var r={};for(const i in e){var n=e[i];"function"==typeof n&&(r[i]=Z0(n,t))}return r}function G0(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((t,r)=>(...e)=>t(r(...e)))}var z=r(h(),1),K0=(r(e(),1),z.version.startsWith("19")),q0=Symbol.for(K0?"react.transitional.element":"react.element"),H0=Symbol.for("react.portal"),J0=Symbol.for("react.fragment"),W0=Symbol.for("react.strict_mode"),X0=Symbol.for("react.profiler"),Y0=Symbol.for("react.consumer"),Q0=Symbol.for("react.context"),ew=Symbol.for("react.forward_ref"),tw=Symbol.for("react.suspense"),rw=Symbol.for("react.suspense_list"),nw=Symbol.for("react.memo"),iw=Symbol.for("react.lazy"),aw=Symbol.for("react.offscreen"),ow=Symbol.for("react.client.reference");function sw(e){return"string"==typeof e||"function"==typeof e||e===J0||e===X0||e===W0||e===tw||e===rw||e===aw||"object"==typeof e&&null!==e&&(e.$$typeof===iw||e.$$typeof===nw||e.$$typeof===Q0||e.$$typeof===Y0||e.$$typeof===ew||e.$$typeof===ow||void 0!==e.getModuleId)}function lw(e){if("object"==typeof e&&null!==e){var t=e["$$typeof"];switch(t){case q0:switch(e=e.type){case J0:case X0:case W0:case tw:case rw:return e;default:switch(e=e&&e.$$typeof){case Q0:case ew:case iw:case nw:case Y0:return e;default:return t}}case H0:return t}}}function uw(e){return K0?lw(e)===Y0:lw(e)===Q0}function cw(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}function dw(e,t){if(!e)throw new Error(`Unexpected value for ${t} in connect.`);"mapStateToProps"!==t&&"mapDispatchToProps"!==t||Object.prototype.hasOwnProperty.call(e,"dependsOnOwnProps")||cw(`The selector for ${t} of connect did not specify a value for dependsOnOwnProps.`)}function pw(i,a,o,s,{areStatesEqual:l,areOwnPropsEqual:u,areStatePropsEqual:c}){let r=!1,d,p,m,f,h;function n(e,t){var r=!u(t,p),n=!l(e,d,t,p);return d=e,p=t,r&&n?(m=i(d,p),a.dependsOnOwnProps&&(f=a(s,p)),h=o(m,f,p)):r?(i.dependsOnOwnProps&&(m=i(d,p)),a.dependsOnOwnProps&&(f=a(s,p)),h=o(m,f,p)):n?(e=i(d,p),t=!c(e,m),m=e,h=t?o(m,f,p):h):h}return function(e,t){return r?n(e,t):(e=e,t=t,d=e,p=t,m=i(d,p),f=a(s,p),h=o(m,f,p),r=!0,h)}}function mw(e,{initMapStateToProps:t,initMapDispatchToProps:r,initMergeProps:n,...i}){var a,o,t=t(e,i),r=r(e,i),n=n(e,i);return a=r,o=n,dw(t,"mapStateToProps"),dw(a,"mapDispatchToProps"),dw(o,"mergeProps"),pw(t,r,n,e,i)}function fw(e,t,r){!function(t){if("object"==typeof t&&null!==t){t=Object.getPrototypeOf(t);if(null===t)return 1;let e=t;for(;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return t===e}}(e)&&cw(r+`() in ${t} must return a plain object. Instead received ${e}.`)}function hw(n){return function(e){const t=n(e);function r(){return t}return r.dependsOnOwnProps=!1,r}}function gw(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function vw(a,o){return function(e,{displayName:n}){const i=function(e,t){return i.dependsOnOwnProps?i.mapToProps(e,t):i.mapToProps(e,void 0)};return i.dependsOnOwnProps=!0,i.mapToProps=function(e,t){i.mapToProps=a,i.dependsOnOwnProps=gw(a);let r=i(e,t);return"function"==typeof r&&(i.mapToProps=r,i.dependsOnOwnProps=gw(r),r=i(e,t)),fw(r,n,o),r},i}}function bw(r,n){return(e,t)=>{throw new Error(`Invalid value of type ${typeof r} for ${n} argument when connecting component ${t.wrappedComponentName}.`)}}function yw(o){return o&&"object"==typeof o?hw(e=>{var t=o,r=e,n={};for(const i in t){const a=t[i];"function"==typeof a&&(n[i]=(...e)=>r(a(...e)))}return n}):o?("function"==typeof o?vw:bw)(o,"mapDispatchToProps"):hw(e=>({dispatch:e}))}function ww(e){return e?"function"==typeof e?(s=e,function(e,{displayName:n,areMergedPropsEqual:i}){let a=!1,o;return function(e,t,r){e=s(e,t,r);return a?i(e,o)||(o=e):(a=!0,fw(o=e,n,"mergeProps")),o}}):bw(e,"mergeProps"):()=>function(e,t,r){return{...r,...e,...t}};var s}function kw(){let n=null,i=null;return{clear(){n=null,i=null},notify(){{let e=n;for(;e;)e.callback(),e=e.next}},get(){var e=[];let t=n;for(;t;)e.push(t),t=t.next;return e},subscribe(e){let t=!0;const r=i={callback:e,next:null,prev:i};return r.prev?r.prev.next=r:n=r,function(){t&&null!==n&&(t=!1,r.next?r.next.prev=r.prev:i=r.prev,r.prev?r.prev.next=r.next:n=r.next)}}}}var _w={notify(){},get:()=>[]};function Sw(e,t){let r,n=_w,i=0,a=!1;function o(){u.onStateChange&&u.onStateChange()}function s(){i++,r||(r=t?t.addNestedSub(o):e.subscribe(o),n=kw())}function l(){i--,r&&0===i&&(r(),r=void 0,n.clear(),n=_w)}const u={addNestedSub:function(e){s();const t=n.subscribe(e);let r=!1;return()=>{r||(r=!0,t(),l())}},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:o,isSubscribed:function(){return a},trySubscribe:function(){a||(a=!0,s())},tryUnsubscribe:function(){a&&(a=!1,l())},getListeners:()=>n};return u}var Iw=(()=>!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement))(),xw=(()=>"undefined"!=typeof navigator&&"ReactNative"===navigator.product)(),$w=(()=>Iw||xw?z.useLayoutEffect:z.useEffect)();function Ew(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Cw(t,r){if(!Ew(t,r)){if("object"!=typeof t||null===t||"object"!=typeof r||null===r)return!1;var n=Object.keys(t),e=Object.keys(r);if(n.length!==e.length)return!1;for(let e=0;e<n.length;e++)if(!Object.prototype.hasOwnProperty.call(r,n[e])||!Ew(t[n[e]],r[n[e]]))return!1}return!0}var Ow={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Nw={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Aw={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Dw={[ew]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[nw]:Aw};function Pw(e){return lw(e)===nw?Aw:Dw[e.$$typeof]||Ow}var Tw=Object.defineProperty,zw=Object.getOwnPropertyNames,jw=Object.getOwnPropertySymbols,Lw=Object.getOwnPropertyDescriptor,Uw=Object.getPrototypeOf,Rw=Object.prototype;function Mw(r,n){if("string"!=typeof n){var e;Rw&&(e=Uw(n))&&e!==Rw&&Mw(r,e);let t=zw(n);jw&&(t=t.concat(jw(n)));var i=Pw(r),a=Pw(n);for(let e=0;e<t.length;++e){var o=t[e];if(!(Nw[o]||a&&a[o]||i&&i[o])){var s=Lw(n,o);try{Tw(r,o,s)}catch(e){}}}}return r}var Bw=Symbol.for("react-redux-context"),Fw="undefined"!=typeof globalThis?globalThis:{};function Zw(){if(!z.createContext)return{};var e=Fw[Bw]??=new Map;let t=e.get(z.createContext);return t||((t=z.createContext(null)).displayName="ReactRedux",e.set(z.createContext,t)),t}var Vw=Zw(),Gw=[null,null];function Kw(e,t,r,n,i,a){e.current=n,r.current=!1,i.current&&(i.current=null,a())}var qw=!1;dy=function(e,t,r,{pure:n,areStatesEqual:i=function(e,t){return e===t},areOwnPropsEqual:a=Cw,areStatePropsEqual:o=Cw,areMergedPropsEqual:s=Cw,forwardRef:l=!1,context:u=Vw}={}){void 0===n||qw||(qw=!0,cw('The `pure` option has been removed. `connect` is now always a "pure/memoized" component'));const O=u,c=(n=e)?("function"==typeof n?vw:bw)(n,"mapStateToProps"):hw(()=>({})),d=yw(t),p=ww(r),N=Boolean(e);return $=>{if(!sw($))throw new Error("You must pass a component to the function returned by connect. Instead received "+(t=>{try{return JSON.stringify(t)}catch(e){return String(t)}})($));var e=$.displayName||$.name||"Component";const E=`Connect(${e})`,C={shouldHandleStateChanges:N,displayName:E,wrappedComponentName:e,WrappedComponent:$,initMapStateToProps:c,initMapDispatchToProps:d,initMergeProps:p,areStatesEqual:i,areStatePropsEqual:o,areOwnPropsEqual:a,areMergedPropsEqual:s};function t(r){const[t,e,n]=z.useMemo(()=>{const{reactReduxForwardedRef:e,...t}=r;return[r.context,e,t]},[r]),i=z.useMemo(()=>{let e=O;if(t?.Consumer){if(!uw(z.createElement(t.Consumer,null)))throw new Error("You must pass a valid React context consumer as `props.context`");e=t}return e},[t,O]),a=z.useContext(i),o=Boolean(r.store)&&Boolean(r.store.getState)&&Boolean(r.store.dispatch);var s=Boolean(a)&&Boolean(a.store);if(!o&&!s)throw new Error(`Could not find "store" in the context of "${E}". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to ${E} in connect options.`);const f=(o?r:a).store,l=s?a.getServerState:f.getState,h=z.useMemo(()=>mw(f.dispatch,C),[f]),[g,v]=z.useMemo(()=>{var e,t;return N?(t=(e=Sw(f,o?void 0:a.subscription)).notifyNestedSubs.bind(e),[e,t]):Gw},[f,o,a]),u=z.useMemo(()=>o?a:{...a,subscription:g},[o,a,g]),b=z.useRef(void 0),y=z.useRef(n),w=z.useRef(void 0),k=z.useRef(!1),_=z.useRef(!1),c=z.useRef(void 0);$w(()=>(_.current=!0,()=>{_.current=!1}),[]);var d,p,m,s=z.useMemo(()=>{return()=>w.current&&n===y.current?w.current:h(f.getState(),n)},[f,n]),S=z.useMemo(()=>{return t=>{if(g){var r=N;var i=f;var a=g;var o=h;var s=y;var l=b;var u=k;var c=_;var d=w;var p=v;var m=t;if(!r)return()=>{};let e=!1,n=null;return r=()=>{if(!e&&c.current){var r=i.getState();let e,t;try{e=o(r,s.current)}catch(e){t=e,n=e}t||(n=null),e===l.current?u.current||p():(l.current=e,d.current=e,u.current=!0,m())}},a.onStateChange=r,a.trySubscribe(),r(),()=>{if(e=!0,a.tryUnsubscribe(),a.onStateChange=null,n)throw n}}return()=>{}}},[g]);d=Kw,p=[y,b,k,n,w,v],$w(()=>d(...p),m);let I;try{I=z.useSyncExternalStore(S,s,l?()=>h(l(),n):s)}catch(e){throw c.current&&(e.message+=`
The error may be correlated with this previous error:
${c.current.stack}

`),e}$w(()=>{c.current=void 0,w.current=void 0,b.current=I});const x=z.useMemo(()=>z.createElement($,{...I,ref:e}),[e,$,I]);return z.useMemo(()=>N?z.createElement(i.Provider,{value:u},x):x,[i,x,u])}const r=z.memo(t);return r.WrappedComponent=$,r.displayName=t.displayName=E,l?((e=z.forwardRef(function(e,t){return z.createElement(r,{...e,reactReduxForwardedRef:t})})).displayName=E,e.WrappedComponent=$,Mw(e,$)):Mw(r,$)}};var Hw=function(n){const{children:e,context:t,serverState:i,store:a}=n,r=z.useMemo(()=>{var e=Sw(a),e={store:a,subscription:e,getServerState:i?()=>i:void 0},{identityFunctionCheck:t="once",stabilityCheck:r="once"}=n;return Object.assign(e,{stabilityCheck:r,identityFunctionCheck:t})},[a,i]),o=z.useMemo(()=>a.getState(),[a]);return $w(()=>{const e=r["subscription"];return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),o!==a.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[r,o]),z.createElement((t||Vw).Provider,{value:r},e)},Jw="Invariant failed";function Ww(e,t){if(!e)throw t=(e="function"==typeof t?t():t)?"".concat(Jw,": ").concat(e):Jw,new Error(t)}function Xw(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}}function Yw(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}}function Qw(e,t){return void 0===t&&(t=ok()),sk(e,t)}function ek(e,t){var r={top:ak(t.marginTop),right:ak(t.marginRight),bottom:ak(t.marginBottom),left:ak(t.marginLeft)},n={top:ak(t.paddingTop),right:ak(t.paddingRight),bottom:ak(t.paddingBottom),left:ak(t.paddingLeft)},t={top:ak(t.borderTopWidth),right:ak(t.borderRightWidth),bottom:ak(t.borderBottomWidth),left:ak(t.borderLeftWidth)};return ik({borderBox:e,margin:r,padding:n,border:t})}function tk(e){var t=e.getBoundingClientRect(),e=window.getComputedStyle(e);return ek(t,e)}var rk=function(e){var t=e.top,r=e.right,n=e.bottom,e=e.left;return{top:t,right:r,bottom:n,left:e,width:r-e,height:n-t,x:e,y:t,center:{x:(r+e)/2,y:(n+t)/2}}},nk={top:0,right:0,bottom:0,left:0},ik=function(e){var t=e.borderBox,r=e.margin,r=void 0===r?nk:r,n=e.border,n=void 0===n?nk:n,e=e.padding,e=void 0===e?nk:e,i=rk(Xw(t,r)),a=rk(Yw(t,n)),o=rk(Yw(a,e));return{marginBox:i,borderBox:rk(t),paddingBox:a,contentBox:o,margin:r,border:n,padding:e}},ak=function(e){var t,r=e.slice(0,-2);return"px"!==e.slice(-2)?0:(t=Number(r),isNaN(t)&&Ww(!1,"Could not parse value [raw: "+e+", without suffix: "+r+"]"),t)},ok=function(){return{x:window.pageXOffset,y:window.pageYOffset}},sk=function(e,t){var r=e.borderBox,n=e.border,i=e.margin,e=e.padding,r={top:r.top+t.y,left:r.left+t.x,bottom:r.bottom+t.y,right:r.right+t.x};return ik({borderBox:r,border:n,margin:i,padding:e})},lk=function(n){function e(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];i=t,a=a||requestAnimationFrame(function(){a=null,n.apply(void 0,i)})}var i,a=null;return e.cancel=function(){a&&(cancelAnimationFrame(a),a=null)},e};function uk(){return(uk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)!{}.hasOwnProperty.call(n,r)||(e[r]=n[r])}return e}).apply(null,arguments)}var ck=/[ \t]{2,}/g,dk=/^[ \t]*/gm,pk=e=>e.replace(ck," ").replace(dk,"").trim(),mk=e=>pk(`
  %c@hello-pangea/dnd

  %c${pk(e)}

  %c👷‍ This is a development only message. It will be removed in production builds.
`);function fk(e,t){"undefined"!=typeof window&&window["__@hello-pangea/dnd-disable-dev-warnings"]||console[e](...[mk(t),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"])}var hk=fk.bind(null,"warn"),gk=fk.bind(null,"error");function vk(){}function bk(n,e,i){const t=e.map(e=>{r=e.options;const t={...i,...r};var r;return n.addEventListener(e.eventName,e.fn,t),function(){n.removeEventListener(e.eventName,e.fn,t)}});return function(){t.forEach(e=>{e()})}}var yk=!1,wk="Invariant failed",kk=class extends Error{};function K(e,t){throw new kk(yk?wk:wk+": "+(t||""))}kk.prototype.toString=function(){return this.message};var _k=class extends G.default.Component{constructor(...e){super(...e),this.callbacks=null,this.unbind=vk,this.onWindowError=e=>{var t=this.getCallbacks(),t=(t.isDragging()&&(t.tryAbort(),hk(`
        An error was caught by our window 'error' event listener while a drag was occurring.
        The active drag has been aborted.
      `)),e.error);t instanceof kk&&(e.preventDefault(),gk(t.message))},this.getCallbacks=()=>{if(this.callbacks)return this.callbacks;throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>")},this.setCallbacks=e=>{this.callbacks=e}}componentDidMount(){this.unbind=bk(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(e){if(!(e instanceof kk))throw e;gk(e.message),this.setState({})}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}},Sk=e=>e+1,Ik=(e,t)=>{var r=e.droppableId===t.droppableId,n=Sk(e.index),i=Sk(t.index);return r?`
      You have moved the item from position ${n}
      to position ${i}
    `:`
    You have moved the item from position ${n}
    in list ${e.droppableId}
    to list ${t.droppableId}
    in position ${i}
  `},xk=(e,t,r)=>{return t.droppableId===r.droppableId?`
      The item ${e}
      has been combined with `+r.draggableId:`
      The item ${e}
      in list ${t.droppableId}
      has been combined with ${r.draggableId}
      in list ${r.droppableId}
    `},$k=e=>`
  The item has returned to its starting position
  of ${Sk(e.index)}
`,Ek={dragHandleUsageInstructions:`
  Press space bar to start a drag.
  When dragging you can use the arrow keys to move the item around and escape to cancel.
  Some screen readers may require you to be in focus mode or to use your pass through key
`,onDragStart:e=>`
  You have lifted an item in position ${Sk(e.source.index)}
`,onDragUpdate:e=>{var t=e.destination;return t?Ik(e.source,t):(t=e.combine)?xk(e.draggableId,e.source,t):"You are over an area that cannot be dropped on"},onDragEnd:e=>{var t,r;return"CANCEL"===e.reason?`
      Movement cancelled.
      ${$k(e.source)}
    `:(t=e.destination,r=e.combine,t?`
      You have dropped the item.
      ${Ik(e.source,t)}
    `:r?`
      You have dropped the item.
      ${xk(e.draggableId,e.source,r)}
    `:`
    The item has been dropped while not over a drop area.
    ${$k(e.source)}
  `)}};function Ck(t,r){if(t.length!==r.length)return!1;for(let e=0;e<t.length;e++)if(n=t[e],i=r[e],n!==i&&(!Number.isNaN(n)||!Number.isNaN(i)))return!1;var n,i;return!0}function q(e,t){var r=(0,G.useState)(()=>({inputs:t,result:e()}))[0];const n=(0,G.useRef)(!0),i=(0,G.useRef)(r),a=n.current||Boolean(t&&i.current.inputs&&Ck(t,i.current.inputs))?i.current:{inputs:t,result:e()};return(0,G.useEffect)(()=>{n.current=!1,i.current=a},[a]),a.result}function H(e,t){return q(()=>e,t)}var Ok={x:0,y:0},Nk=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),Ak=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),Dk=(e,t)=>e.x===t.x&&e.y===t.y,Pk=e=>({x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}),Tk=(e,t,r=0)=>"x"===e?{x:t,y:r}:{x:r,y:t},zk=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),jk=(t,e)=>Math.min(...e.map(e=>zk(t,e))),em=t=>e=>({x:t(e.x),y:t(e.y)}),Lk=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),Uk=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}],Rk=(e,t)=>{var r;return t&&t.shouldClipSubject?(t=t.pageMarginBox,r=e,(r=rk({top:Math.max(r.top,t.top),right:Math.min(r.right,t.right),bottom:Math.min(r.bottom,t.bottom),left:Math.max(r.left,t.left)})).width<=0||r.height<=0?null:r):rk(e)},Mk=({page:e,withPlaceholder:t,axis:r,frame:n})=>{i=e.marginBox;var i,a=(a=n)?Lk(i,a.scroll.diff.displacement):i,r=(i=a,a=r,(r=t)&&r.increasedBy?{...i,[a.end]:i[a.end]+r.increasedBy[a.line]}:i);return{page:e,withPlaceholder:t,active:Rk(r,n)}},Bk=(e,t)=>{e.frame||K();var r=e.frame,n=Ak(t,r.scroll.initial),i=Pk(n),t={...r,scroll:{initial:r.scroll.initial,current:t,diff:{value:n,displacement:i},max:r.scroll.max}},n=Mk({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:t});return{...e,frame:t,subject:n}};function Fk(r,n=Ck){let i=null;function e(...e){var t;return i&&i.lastThis===this&&n(e,i.lastArgs)?i.lastResult:(t=r.apply(this,e),i={lastResult:t,lastArgs:e,lastThis:this},t)}return e.clear=function(){i=null},e}var Zk=Fk(e=>e.reduce((e,t)=>(e[t.descriptor.id]=t,e),{})),Vk=Fk(e=>e.reduce((e,t)=>(e[t.descriptor.id]=t,e),{})),Gk=Fk(e=>Object.values(e)),Kk=Fk(e=>Object.values(e)),qk=Fk((t,e)=>{return Kk(e).filter(e=>t===e.descriptor.droppableId).sort((e,t)=>e.descriptor.index-t.descriptor.index)});function Hk(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function Jk(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var Wk=Fk((t,e)=>e.filter(e=>e.descriptor.id!==t.descriptor.id)),Xk=(e,t)=>e.descriptor.droppableId===t.descriptor.id,Yk={point:Ok,value:0},Qk={invisible:{},visible:{},all:[]},e_={displaced:Qk,displacedBy:Yk,at:null},t_=(t,r)=>e=>t<=e&&e<=r,r_=i=>{const a=t_(i.top,i.bottom),o=t_(i.left,i.right);return e=>{var t,r,n;return!!(a(e.top)&&a(e.bottom)&&o(e.left)&&o(e.right))||(t=a(e.top)||a(e.bottom),r=o(e.left)||o(e.right),!(!t||!r))||(n=e.top<i.top&&e.bottom>i.bottom,e=e.left<i.left&&e.right>i.right,n&&e)||n&&r||e&&t}},n_=e=>{const t=t_(e.top,e.bottom),r=t_(e.left,e.right);return e=>{return t(e.top)&&t(e.bottom)&&r(e.left)&&r(e.right)}},i_={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},a_={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},o_=({target:e,destination:t,viewport:r,withDroppableDisplacement:n,isVisibleThroughFrameFn:i})=>{var a,n=n?((e,t)=>{t=t.frame?t.frame.scroll.diff.displacement:Ok;return Lk(e,t)})(e,t):e;return e=n,a=i,!!(t=t).subject.active&&a(t.subject.active)(e)&&(a=n,i(r)(a))},s_=e=>o_({...e,isVisibleThroughFrameFn:n_}),l_=e=>{return o_({...e,isVisibleThroughFrameFn:(n=e.destination.axis,e=>{const t=t_(e.top,e.bottom),r=t_(e.left,e.right);return e=>n===i_?t(e.top)&&t(e.bottom):r(e.left)&&r(e.right)})});var n};function u_({afterDragging:e,destination:o,displacedBy:s,viewport:l,forceShouldAnimate:u,last:c}){return e.reduce(function(e,t){a=s,i=(i=t).page.marginBox,a={top:s.point.y,right:0,bottom:0,left:s.point.x};var r,n,i=rk(Xw(i,a)),a=t.descriptor.id,i=(e.all.push(a),o_({...{target:i,destination:o,viewport:l,withDroppableDisplacement:!0},isVisibleThroughFrameFn:r_}));return i?(r=(i=a,r=c,"boolean"==typeof(n=u)?n:!r||({invisible:n,visible:r}=r,!n[i]&&(!(n=r[i])||n.shouldAnimate))),e.visible[a]={draggableId:a,shouldAnimate:r}):e.invisible[t.descriptor.id]=!0,e},{all:[],visible:{},invisible:{}})}function c_({insideDestination:e,inHomeList:t,displacedBy:r,destination:n}){t={inHomeList:t};t=(e=e).length?(e=e[e.length-1].descriptor.index,t.inHomeList?e:e+1):0;return{displaced:Qk,displacedBy:r,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:t}}}}function d_({draggable:e,insideDestination:t,destination:r,viewport:n,displacedBy:i,last:a,index:o,forceShouldAnimate:s}){var l,u=Xk(e,r);return null!=o&&(l=t.find(e=>e.descriptor.index===o))?(e=Wk(e,t),l=t.indexOf(l),{displaced:u_({afterDragging:e.slice(l),destination:r,displacedBy:i,last:a,viewport:n.frame,forceShouldAnimate:s}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:o}}}):c_({insideDestination:t,inHomeList:u,displacedBy:i,destination:r})}function p_(e,t){return Boolean(t.effected[e])}var m_=({isMovingForward:e,isInHomeList:t,draggable:r,draggables:n,destination:i,insideDestination:a,previousImpact:o,viewport:s,afterCritical:l})=>{var u,c,d,p,m=o.at;return m||K(0,"Cannot move in direction without previous impact location"),"REORDER"===m.type?({isMovingForward:t,isInHomeList:c,insideDestination:d,location:p}=[{isMovingForward:e,isInHomeList:t,location:m.destination,insideDestination:a}][0],null==(p=!d.length||(p=p.index,u=d[0].descriptor.index,d=d[d.length-1].descriptor.index,(t=t?p+1:p-1)<u)||(c?d:d+1)<t?null:t)?null:d_({draggable:r,insideDestination:a,destination:i,viewport:s,last:o.displaced,displacedBy:o.displacedBy,index:p})):({isMovingForward:u,destination:c,draggables:d,combine:t,afterCritical:p}=[{isMovingForward:e,destination:i,displaced:o.displaced,draggables:n,combine:m.combine,afterCritical:l}][0],null==(e=c.isCombineEnabled?(d=d[c=t.draggableId].descriptor.index,p_(c,p)?u?d:d-1:u?d+1:d):null)?null:d_({draggable:r,insideDestination:a,destination:i,viewport:s,last:o.displaced,displacedBy:o.displacedBy,index:e}))},f_=({afterCritical:e,impact:t,draggables:r})=>{var n=Jk(t),n=(n||K(),n.draggableId),r=r[n].page.borderBox.center,e=(({displaced:e,afterCritical:t,combineWith:r,displacedBy:n})=>{e=Boolean(e.visible[r]||e.invisible[r]);return p_(r,t)?e?Ok:Pk(n.point):e?n.point:Ok})({displaced:t.displaced,afterCritical:e,combineWith:n,displacedBy:t.displacedBy});return Nk(r,e)},h_=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,g_=(e,t,r)=>t[e.crossAxisStart]+r.margin[e.crossAxisStart]+r.borderBox[e.crossAxisSize]/2,v_=({axis:e,moveRelativeTo:t,isMoving:r})=>Tk(e.line,t.marginBox[e.end]+h_(e,r),g_(e,t.marginBox,r)),b_=({axis:e,moveRelativeTo:t,isMoving:r})=>{return Tk(e.line,t.marginBox[e.start]-(r.margin[e.end]+r.borderBox[e.size]/2),g_(e,t.marginBox,r))},y_=({impact:e,draggable:t,draggables:r,droppable:n,afterCritical:i})=>{var a,o=qk(n.descriptor.id,r),s=t.page,l=n.axis;return o.length?({displaced:e,displacedBy:a}=e,(e=e.all[0])?(r=r[e],p_(e,i)?b_({axis:l,moveRelativeTo:r.page,isMoving:s}):(e=sk(r.page,a.point),b_({axis:l,moveRelativeTo:e,isMoving:s}))):(r=o[o.length-1]).descriptor.id===t.descriptor.id?s.borderBox.center:p_(r.descriptor.id,i)?(a=sk(r.page,Pk(i.displacedBy.point)),v_({axis:l,moveRelativeTo:a,isMoving:s})):v_({axis:l,moveRelativeTo:r.page,isMoving:s})):({axis:e,moveInto:o,isMoving:t}=[{axis:l,moveInto:n.page,isMoving:s}][0],Tk(e.line,o.contentBox[e.start]+h_(e,t),g_(e,o.contentBox,t)))},w_=(e,t)=>{e=e.frame;return e?Nk(t,e.scroll.diff.displacement):t},k_=e=>{({impact:t,draggable:s,droppable:r,draggables:n,afterCritical:i}=e),a=s.page.borderBox.center,o=t.at;var t,r,n,i,a,o=r&&o?"REORDER"===o.type?y_({impact:t,draggable:s,draggables:n,droppable:r,afterCritical:i}):f_({impact:t,draggables:n,afterCritical:i}):a,s=e.droppable;return s?w_(s,o):o},__=(e,t)=>{var r=Ak(t,e.scroll.initial),n=Pk(r);return{frame:rk({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:r,displacement:n}}}};function S_(e,t){return e.map(e=>t[e])}var I_=({impact:e,viewport:t,destination:r,draggables:n,maxScrollChange:i})=>{var a=__(t,Nk(t.scroll.current,i)),i=r.frame?Bk(r,Nk(r.frame.scroll.current,i)):r,o=e.displaced,r=u_({afterDragging:S_(o.all,n),destination:r,displacedBy:e.displacedBy,viewport:a.frame,last:o,forceShouldAnimate:!1}),a=u_({afterDragging:S_(o.all,n),destination:i,displacedBy:e.displacedBy,viewport:t.frame,last:o,forceShouldAnimate:!1});const s={},l={},u=[o,r,a];return o.all.forEach(e=>{var t=function(t,r){for(let e=0;e<r.length;e++){var n=r[e].visible[t];if(n)return n}return null}(e,u);t?l[e]=t:s[e]=!0}),{...e,displaced:{all:o.all,invisible:s,visible:l}}},x_=({pageBorderBoxCenter:e,draggable:t,viewport:r})=>{r=Nk(r.scroll.diff.displacement,e),e=Ak(r,t.page.borderBox.center);return Nk(t.client.borderBox.center,e)},$_=({draggable:e,destination:t,newPageBorderBoxCenter:r,viewport:n,withDroppableDisplacement:i,onlyOnMainAxis:a=!1})=>{r=Ak(r,e.page.borderBox.center),e={target:Lk(e.page.borderBox,r),destination:t,withDroppableDisplacement:i,viewport:n};return(a?l_:s_)(e)},E_=({isMovingForward:e,draggable:t,destination:r,draggables:n,previousImpact:i,viewport:a,previousPageBorderBoxCenter:o,previousClientSelection:s,afterCritical:l})=>{var u,c;return r.isEnabled&&(c=qk(r.descriptor.id,n),u=Xk(t,r),e=(({isMovingForward:e,draggable:t,destination:r,insideDestination:n,previousImpact:i})=>{if(!r.isCombineEnabled)return null;if(!Hk(i))return null;function a(e){e={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return{...i,at:e}}var o=i.displaced.all;const s=o.length?o[0]:null;return e?s?a(s):null:(o=Wk(t,n),s?(-1===(e=o.findIndex(e=>e.descriptor.id===s))&&K(0,"Could not find displaced item in set"),(t=e-1)<0?null:a(o[t].descriptor.id)):o.length?a(o[o.length-1].descriptor.id):null)})({isMovingForward:e,draggable:t,destination:r,insideDestination:c,previousImpact:i})||m_({isMovingForward:e,isInHomeList:u,draggable:t,draggables:n,destination:r,insideDestination:c,previousImpact:i,viewport:a,afterCritical:l}))?(u=k_({impact:e,draggable:t,droppable:r,draggables:n,afterCritical:l}),$_({draggable:t,destination:r,newPageBorderBoxCenter:u,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?{clientSelection:x_({pageBorderBoxCenter:u,draggable:t,viewport:a}),impact:e,scrollJumpRequest:null}:(c=Ak(u,o),{clientSelection:s,impact:I_({impact:e,viewport:a,destination:r,draggables:n,maxScrollChange:c}),scrollJumpRequest:c})):null},C_=e=>{e=e.subject.active;return e||K(0,"Cannot get clipped area from droppable"),e},O_=(e,t)=>{var r=e.page.borderBox.center;return p_(e.descriptor.id,t)?Ak(r,t.displacedBy.point):r},N_=({pageBorderBoxCenter:i,viewport:n,destination:a,insideDestination:e,afterCritical:o})=>{return e.filter(e=>{return s_({target:(t=o,r=e.page.borderBox,p_(e.descriptor.id,t)?Lk(r,Pk(t.displacedBy.point)):r),destination:a,viewport:n.frame,withDroppableDisplacement:!0});var t,r}).sort((e,t)=>{var r=zk(i,w_(a,O_(e,o))),n=zk(i,w_(a,O_(t,o)));return r<n?-1:n<r?1:e.descriptor.index-t.descriptor.index})[0]||null},A_=Fk(function(e,t){t=t[e.line];return{value:t,point:Tk(e.line,t)}}),D_=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),P_=(e,t,r)=>{var n=e.frame,t=(Xk(t,e)&&K(0,"Should not add placeholder space to home list"),e.subject.withPlaceholder&&K(0,"Cannot add placeholder size to a subject when it already has one"),A_(e.axis,t.displaceBy).point),r=((e,t,r)=>{const n=e.axis;var i;return"virtual"===e.descriptor.mode?Tk(n.line,t[n.line]):(i=e.subject.page.contentBox[n.size],(e=qk(e.descriptor.id,r).reduce((e,t)=>e+t.client.marginBox[n.size],0)+t[n.line]-i)<=0?null:Tk(n.line,e))})(e,t,r),t={placeholderSize:t,increasedBy:r,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};return n?(r=r?Nk(n.scroll.max,r):n.scroll.max,n=D_(n,r),r=Mk({page:e.subject.page,withPlaceholder:t,axis:e.axis,frame:n}),{...e,subject:r,frame:n}):(r=Mk({page:e.subject.page,withPlaceholder:t,axis:e.axis,frame:e.frame}),{...e,subject:r})},T_=({isMovingForward:e,previousPageBorderBoxCenter:t,draggable:r,isOver:n,draggables:i,droppables:a,viewport:o,afterCritical:s})=>{e=(({isMovingForward:r,pageBorderBoxCenter:i,source:t,droppables:e,viewport:n})=>{const a=t.subject.active;if(!a)return null;const o=t.axis,s=t_(a[o.start],a[o.end]);var l,e=Gk(e).filter(e=>e!==t).filter(e=>e.isEnabled).filter(e=>Boolean(e.subject.active)).filter(e=>r_(n.frame)(C_(e))).filter(e=>{e=C_(e);return r?a[o.crossAxisEnd]<e[o.crossAxisEnd]:e[o.crossAxisStart]<a[o.crossAxisStart]}).filter(e=>{var e=C_(e),t=t_(e[o.start],e[o.end]);return s(e[o.start])||s(e[o.end])||t(a[o.start])||t(a[o.end])}).sort((e,t)=>{e=C_(e)[o.crossAxisStart],t=C_(t)[o.crossAxisStart];return r?e-t:t-e}).filter((e,t,r)=>C_(e)[o.crossAxisStart]===C_(r[0])[o.crossAxisStart]);return e.length?(1===e.length?e:1===(l=e.filter(e=>{return t_(C_(e)[o.start],C_(e)[o.end])(i[o.line])})).length?l:1<l.length?l.sort((e,t)=>C_(e)[o.start]-C_(t)[o.start]):e.sort((e,t)=>{var r=jk(i,Uk(C_(e))),n=jk(i,Uk(C_(t)));return r!==n?r-n:C_(e)[o.start]-C_(t)[o.start]}))[0]:null})({isMovingForward:e,pageBorderBoxCenter:t,source:n,droppables:a,viewport:o});return e&&(n=qk(e.descriptor.id,i),a=(({previousPageBorderBoxCenter:e,moveRelativeTo:t,insideDestination:r,draggable:n,draggables:i,destination:a,viewport:o,afterCritical:s})=>{if(!t)return!r.length&&(u={displaced:Qk,displacedBy:Yk,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},s=k_({impact:u,draggable:n,droppable:a,draggables:i,afterCritical:s}),i=Xk(n,a)?a:P_(a,n,i),$_({draggable:n,destination:i,newPageBorderBoxCenter:s,viewport:o.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))?u:null;const l=Boolean(e[a.axis.line]<=t.page.borderBox.center[a.axis.line]);i=t.descriptor.index;var s=t.descriptor.id===n.descriptor.id||l?i:i+1,u=A_(a.axis,n.displaceBy);return d_({draggable:n,insideDestination:r,destination:a,viewport:o,displacedBy:u,last:Qk,index:s})})({previousPageBorderBoxCenter:t,destination:e,draggable:r,draggables:i,moveRelativeTo:N_({pageBorderBoxCenter:t,viewport:o,destination:e,insideDestination:n,afterCritical:s}),insideDestination:n,viewport:o,afterCritical:s}))?(t=k_({impact:a,draggable:r,droppable:e,draggables:i,afterCritical:s}),{clientSelection:x_({pageBorderBoxCenter:t,draggable:r,viewport:o}),impact:a,scrollJumpRequest:null}):null},z_=e=>{e=e.at;return e?("REORDER"===e.type?e.destination:e.combine).droppableId:null},j_=({state:e,type:t})=>{var r,n,i,a=((e,t)=>{e=z_(e);return e?t[e]:null})(e.impact,e.dimensions.droppables),o=Boolean(a),s=e.dimensions.droppables[e.critical.droppable.id],a=a||s,s=a.axis.direction,s="vertical"===s&&("MOVE_UP"===t||"MOVE_DOWN"===t)||"horizontal"===s&&("MOVE_LEFT"===t||"MOVE_RIGHT"===t);return s&&!o?null:(o="MOVE_DOWN"===t||"MOVE_RIGHT"===t,t=e.dimensions.draggables[e.critical.draggable.id],r=e.current.page.borderBoxCenter,{draggables:n,droppables:i}=e.dimensions,s?E_({isMovingForward:o,previousPageBorderBoxCenter:r,draggable:t,destination:a,draggables:n,viewport:e.viewport,previousClientSelection:e.current.client.selection,previousImpact:e.impact,afterCritical:e.afterCritical}):T_({isMovingForward:o,previousPageBorderBoxCenter:r,draggable:t,isOver:a,draggables:n,droppables:i,viewport:e.viewport,afterCritical:e.afterCritical}))};function L_(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function U_(e){const t=t_(e.top,e.bottom),r=t_(e.left,e.right);return function(e){return t(e.y)&&r(e.x)}}function R_({pageBorderBox:a,draggable:e,droppables:t}){t=Gk(t).filter(e=>{var t,r,n,i;return!!e.isEnabled&&!!(i=e.subject.active)&&(t=i,(n=a).left<t.right)&&n.right>t.left&&n.top<t.bottom&&n.bottom>t.top&&(!!U_(i)(a.center)||(n=e.axis,t=i.center[n.crossAxisLine],e=a[n.crossAxisStart],r=a[n.crossAxisEnd],n=(i=t_(i[n.crossAxisStart],i[n.crossAxisEnd]))(e),i=i(r),!n&&!i)||(n?e<t:t<r))});if(!t.length)return null;if(1===t.length)return t[0].descriptor.id;{var{pageBorderBox:r,draggable:e,candidates:t}=[{pageBorderBox:a,draggable:e,candidates:t}][0];const n=e.page.borderBox.center;return(e=t.map(e=>{var t=e.axis,t=Tk(e.axis.line,r.center[t.line],e.page.borderBox.center[t.crossAxisLine]);return{id:e.descriptor.id,distance:zk(n,t)}}).sort((e,t)=>t.distance-e.distance))[0]?e[0].id:null;return}}var M_=(e,t)=>rk(Lk(e,t));function B_({displaced:e,id:t}){return Boolean(e.visible[t]||e.invisible[t])}var F_=({pageOffset:e,draggable:t,draggables:r,droppables:n,previousImpact:i,viewport:a,afterCritical:o})=>{var e=M_(t.page.borderBox,e),s=R_({pageBorderBox:e,draggable:t,droppables:n});return s?(n=n[s],s=qk(n.descriptor.id,r),(({draggable:e,pageBorderBoxWithDroppableScroll:t,previousImpact:i,destination:r,insideDestination:n,afterCritical:a})=>{if(!r.isCombineEnabled)return null;const o=r.axis;var s=A_(r.axis,e.displaceBy);const l=s.value,u=t[o.start],c=t[o.end];t=Wk(e,n).find(e=>{var t=e.descriptor.id,e=e.page.borderBox,r=e[o.size]/4,n=p_(t,a),t=B_({displaced:i.displaced,id:t});return n?t?c>e[o.start]+r&&c<e[o.end]-r:u>e[o.start]-l+r&&u<e[o.end]-l-r:t?c>e[o.start]+l+r&&c<e[o.end]+l-r:u>e[o.start]+r&&u<e[o.end]-r});return t?{displacedBy:s,displaced:i.displaced,at:{type:"COMBINE",combine:{draggableId:t.descriptor.id,droppableId:r.descriptor.id}}}:null})({pageBorderBoxWithDroppableScroll:r=((e,t)=>{e=e.frame;return e?M_(t,e.scroll.diff.value):t})(n,e),draggable:t,previousImpact:i,destination:n,insideDestination:s,afterCritical:o})||(({pageBorderBoxWithDroppableScroll:e,draggable:t,destination:r,insideDestination:n,last:i,viewport:a,afterCritical:o})=>{const s=r.axis;var l=A_(r.axis,t.displaceBy);const u=l.value,c=e[s.start],d=e[s.end];var p,e=Wk(t,n).find(e=>{var t=e.descriptor.id,e=e.page.borderBox.center[s.line],r=p_(t,o),t=B_({displaced:i,id:t});return r?t?d<=e:c<e-u:t?d<=e+u:c<e})||null,m=({draggable:e,closest:p,inHomeList:m}=[{draggable:t,closest:e,inHomeList:Xk(t,r)}][0],p?m&&p.descriptor.index>e.descriptor.index?p.descriptor.index-1:p.descriptor.index:null);return d_({draggable:t,insideDestination:n,destination:r,viewport:a,last:i,displacedBy:l,index:m})})({pageBorderBoxWithDroppableScroll:r,draggable:t,destination:n,insideDestination:s,last:i.displaced,viewport:a,afterCritical:o})):e_},Z_=(e,t)=>({...e,[t.descriptor.id]:t}),V_=({previousImpact:e,impact:t,droppables:r})=>{var n,e=z_(e),t=z_(t);return e&&e!==t&&(t=r[e]).subject.withPlaceholder?((t=(e=t).subject.withPlaceholder)||K(0,"Cannot remove placeholder form subject when there was none"),n=(n=e.frame)?((t=t.oldFrameMaxScroll)||K(0,"Expected droppable with frame to have old max frame scroll when removing placeholder"),n=D_(n,t),t=Mk({page:e.subject.page,axis:e.axis,frame:n,withPlaceholder:null}),{...e,subject:t,frame:n}):(t=Mk({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null}),{...e,subject:t}),Z_(r,n)):r},G_=({state:e,clientSelection:t,dimensions:r,viewport:n,impact:i,scrollJumpRequest:a})=>{var o,s,l,u,n=n||e.viewport,r=r||e.dimensions,t=t||e.current.client.selection,c=Ak(t,e.initial.client.selection),t={offset:c,selection:t,borderBoxCenter:Nk(e.initial.client.borderBoxCenter,c)},c={selection:Nk(t.selection,n.scroll.current),borderBoxCenter:Nk(t.borderBoxCenter,n.scroll.current),offset:Nk(t.offset,n.scroll.diff.value)},t={client:t,page:c};return"COLLECTING"===e.phase?{...e,dimensions:r,viewport:n,current:t}:(o=r.draggables[e.critical.draggable.id],i=i||F_({pageOffset:c.offset,draggable:o,draggables:r.draggables,droppables:r.droppables,previousImpact:e.impact,viewport:n,afterCritical:e.afterCritical}),{draggable:c,draggables:o,droppables:s,previousImpact:l,impact:u}=[{draggable:o,impact:i,previousImpact:e.impact,draggables:r.draggables,droppables:r.droppables}][0],l=V_({previousImpact:l,impact:u,droppables:s}),s=!(u=z_(u))||(s=s[u],Xk(c,s))||s.subject.withPlaceholder?l:(u=P_(s,c,o),Z_(l,u)),{...e,current:t,dimensions:{draggables:r.draggables,droppables:s},impact:i,viewport:n,scrollJumpRequest:a||null,forceShouldAnimate:!a&&null})};var K_=({impact:e,viewport:t,draggables:r,destination:n,forceShouldAnimate:i})=>{var a=e.displaced;o=a.all,s=r;var o,s,r=u_({afterDragging:o.map(e=>s[e]),destination:n,displacedBy:e.displacedBy,viewport:t.frame,forceShouldAnimate:i,last:a});return{...e,displaced:r}},q_=({impact:e,draggable:t,droppable:r,draggables:n,viewport:i,afterCritical:a})=>{e=k_({impact:e,draggable:t,draggables:n,droppable:r,afterCritical:a});return x_({pageBorderBoxCenter:e,draggable:t,viewport:i})},H_=({state:e,dimensions:t,viewport:r})=>{"SNAP"!==e.movementMode&&K();var n=e.impact,r=r||e.viewport,t=t||e.dimensions,{draggables:i,droppables:a}=t,o=i[e.critical.draggable.id],s=z_(n),a=(s||K(0,"Must be over a destination in SNAP movement mode"),a[s]),s=K_({impact:n,viewport:r,destination:a,draggables:i}),n=q_({impact:s,draggable:o,droppable:a,draggables:i,viewport:r,afterCritical:e.afterCritical});return G_({impact:s,clientSelection:n,state:e,dimensions:t,viewport:r})},J_=({draggable:e,home:t,draggables:r,viewport:n})=>{var i=A_(t.axis,e.displaceBy),r=qk(t.descriptor.id,r),a=r.indexOf(e),r=(-1===a&&K(0,"Expected draggable to be inside home list"),r.slice(a+1)),a=r.reduce((e,t)=>(e[t.descriptor.id]=!0,e),{}),a={inVirtualList:"virtual"===t.descriptor.mode,displacedBy:i,effected:a};return{impact:{displaced:u_({afterDragging:r,destination:t,displacedBy:i,last:null,viewport:n.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:{index:(r=e.descriptor).index,droppableId:r.droppableId}}},afterCritical:a}},W_=({additions:e,updatedDroppables:n,viewport:i})=>{const a=i.scroll.diff.value;return e.map(e=>{var t=e.descriptor.droppableId,t=(e=>{e=e.frame;return e||K(0,"Expected Droppable to have a frame"),e})(n[t]).scroll.diff.value,{draggable:e,offset:t,initialWindowScroll:r}=[{draggable:e,offset:Nk(a,t),initialWindowScroll:i.scroll.initial}][0];return t=sk(e.client,t),r=Qw(t,r),{...e,placeholder:{...e.placeholder,client:t},client:t,page:r}})},X_=e=>"SNAP"===e.movementMode,Y_=(e,t,r)=>{var n={draggables:(n=e.dimensions).draggables,droppables:Z_(n.droppables,t)};return(!X_(e)||r?G_:H_)({state:e,dimensions:n})};function Q_(e){return e.isDragging&&"SNAP"===e.movementMode?{...e,scrollJumpRequest:null}:e}var eS={phase:"IDLE",completed:null,shouldFlush:!1},tS=(e=eS,t)=>{if("FLUSH"===t.type)return{...eS,shouldFlush:!0};if("INITIAL_PUBLISH"===t.type)return"IDLE"!==e.phase&&K(0,"INITIAL_PUBLISH must come after a IDLE phase"),{critical:n,clientSelection:o,viewport:c,dimensions:a,movementMode:i}=t.payload,u=a.draggables[n.draggable.id],l=a.droppables[n.droppable.id],o={client:o={selection:o,borderBoxCenter:u.client.borderBox.center,offset:Ok},page:{selection:Nk(o.selection,c.scroll.initial),borderBoxCenter:Nk(o.selection,c.scroll.initial),offset:Nk(o.selection,c.scroll.diff.value)}},s=Gk(a.droppables).every(e=>!e.isFixedOnPage),{impact:u,afterCritical:l}=J_({draggable:u,home:l,draggables:a.draggables,viewport:c}),{phase:"DRAGGING",isDragging:!0,critical:n,movementMode:i,dimensions:a,initial:o,current:o,isWindowScrollAllowed:s,impact:u,afterCritical:l,onLiftImpact:u,viewport:c,scrollJumpRequest:null,forceShouldAnimate:null};if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&K(0,"Collection cannot start from phase "+e.phase),{...e,phase:"COLLECTING"});if("PUBLISH_WHILE_DRAGGING"===t.type){"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&K(0,`Unexpected ${t.type} received in phase `+e.phase);{var{state:r,published:n}=[{state:e,published:t.payload}][0],i=n.modified.map(e=>{var t=r.dimensions.droppables[e.droppableId];return Bk(t,e.scroll)}),i={...r.dimensions.droppables,...Zk(i)},a=Vk(W_({additions:n.additions,updatedDroppables:i,viewport:r.viewport}));const d={...r.dimensions.draggables,...a};n.removals.forEach(e=>{delete d[e]});var a={droppables:i,draggables:d},i=(n=z_(r.impact))?a.droppables[n]:null,n=a.draggables[r.critical.draggable.id],o=a.droppables[r.critical.droppable.id],{impact:n,afterCritical:o}=J_({draggable:n,home:o,draggables:d,viewport:r.viewport}),i=i&&i.isCombineEnabled?r.impact:n,i=F_({pageOffset:r.current.page.offset,draggable:a.draggables[r.critical.draggable.id],draggables:a.draggables,droppables:a.droppables,previousImpact:i,viewport:r.viewport,afterCritical:o}),i={...r,phase:"DRAGGING",impact:i,onLiftImpact:n,dimensions:a,afterCritical:o,forceShouldAnimate:!1};return"COLLECTING"===r.phase?i:{...i,phase:"DROP_PENDING",reason:r.reason,isWaiting:!1}}}if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;L_(e)||K(0,t.type+" not permitted in phase "+e.phase);var s=t.payload["client"];return Dk(s,e.current.client.selection)?e:G_({state:e,clientSelection:s,impact:X_(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return Q_(e);if("COLLECTING"===e.phase)return Q_(e);L_(e)||K(0,t.type+" not permitted in phase "+e.phase);var{id:l,newScroll:u}=t.payload,c=e.dimensions.droppables[l];return c?(s=Bk(c,u),Y_(e,s,!1)):e}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;L_(e)||K(0,"Attempting to move in an unsupported phase "+e.phase);var{id:l,isEnabled:c}=t.payload,u=e.dimensions.droppables[l],s=(u||K(0,`Cannot find Droppable[id: ${l}] to toggle its enabled state`),u.isEnabled===c&&K(0,`Trying to set droppable isEnabled to ${String(c)}
      but it is already `+String(u.isEnabled)),{...u,isEnabled:c});return Y_(e,s,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;L_(e)||K(0,"Attempting to move in an unsupported phase "+e.phase);var{id:l,isCombineEnabled:u}=t.payload,c=e.dimensions.droppables[l],s=(c||K(0,`Cannot find Droppable[id: ${l}] to toggle its isCombineEnabled state`),c.isCombineEnabled===u&&K(0,`Trying to set droppable isCombineEnabled to ${String(u)}
      but it is already `+String(c.isCombineEnabled)),{...c,isCombineEnabled:u});return Y_(e,s,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;L_(e)||K(0,"Cannot move by window in phase "+e.phase),e.isWindowScrollAllowed||K(0,"Window scrolling is currently not supported for fixed lists");l=t.payload.newScroll;return Dk(e.viewport.scroll.current,l)?Q_(e):(c=__(e.viewport,l),(X_(e)?H_:G_)({state:e,viewport:c}))}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type)return!L_(e)||(u=t.payload.maxScroll,Dk(u,e.viewport.scroll.max))?e:(s={...e.viewport,scroll:{...e.viewport.scroll,max:u}},{...e,viewport:s});if("MOVE_UP"!==t.type&&"MOVE_DOWN"!==t.type&&"MOVE_LEFT"!==t.type&&"MOVE_RIGHT"!==t.type)return"DROP_PENDING"===t.type?(l=t.payload.reason,"COLLECTING"!==e.phase&&K(0,"Can only move into the DROP_PENDING phase from the COLLECTING phase"),{...e,phase:"DROP_PENDING",isWaiting:!0,reason:l}):"DROP_ANIMATE"===t.type?({completed:c,dropDuration:u,newHomeClientOffset:s}=t.payload,"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&K(0,"Cannot animate drop from phase "+e.phase),{phase:"DROP_ANIMATING",completed:c,dropDuration:u,newHomeClientOffset:s,dimensions:e.dimensions}):"DROP_COMPLETE"===t.type?(l=t.payload["completed"],{phase:"IDLE",completed:l,shouldFlush:!1}):e;if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&K(0,t.type+" received while not in DRAGGING phase");c=j_({state:e,type:t.type});return c?G_({state:e,impact:c.impact,clientSelection:c.clientSelection,scrollJumpRequest:c.scrollJumpRequest}):e};function rS(e,t){return e instanceof Object&&"type"in e&&e.type===t}var nS=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),iS=()=>({type:"COLLECTION_STARTING",payload:null}),aS=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),oS=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),sS=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),lS=e=>({type:"MOVE",payload:e}),uS=()=>({type:"MOVE_UP",payload:null}),cS=()=>({type:"MOVE_DOWN",payload:null}),dS=()=>({type:"MOVE_RIGHT",payload:null}),pS=()=>({type:"MOVE_LEFT",payload:null}),mS=()=>({type:"FLUSH",payload:null}),fS=e=>({type:"DROP_COMPLETE",payload:e}),hS=e=>({type:"DROP",payload:e}),gS=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});function vS(e,t){e=qk(e.droppable.id,t.draggables);if(!(e.length<=1)){var r=e.map(e=>e.descriptor.index);const i={};for(let e=1;e<r.length;e++){var n=r[e];n!==r[e-1]+1&&(i[n]=!0)}Object.keys(i).length&&(e=r.map(e=>{return Boolean(i[e])?`[🔥${e}]`:""+e}).join(", "),hk(`
    Detected non-consecutive <Draggable /> indexes.

    (This can cause unexpected bugs)

    ${e}
  `))}}var bS=u=>({getState:s,dispatch:l})=>o=>e=>{var t,r,n,i,a;rS(e,"LIFT")?({id:i,clientSelection:t,movementMode:r}=e.payload,"DROP_ANIMATING"===(n=s()).phase&&l(fS({completed:n.completed})),"IDLE"!==s().phase&&K(0,"Unexpected phase to start a drag"),l(mS()),l({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:i,movementMode:r}}),{critical:n,dimensions:i,viewport:a}=u.startPublishing({draggableId:i,scrollOptions:{shouldPublishImmediately:"SNAP"===r}}),vS(n,i),l({type:"INITIAL_PUBLISH",payload:{critical:n,dimensions:i,clientSelection:t,movementMode:r,viewport:a}})):o(e)},yS=r=>()=>t=>e=>{rS(e,"INITIAL_PUBLISH")&&r.dragging(),rS(e,"DROP_ANIMATE")&&r.dropping(e.payload.completed.result.reason),(rS(e,"FLUSH")||rS(e,"DROP_COMPLETE"))&&r.resting(),t(e)},wS={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},kS={opacity:{drop:0,combining:.7},scale:{drop:.75}},fy={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},py=fy.outOfTheWay+"s "+wS.outOfTheWay,_S={fluid:"opacity "+py,snap:`transform ${py}, opacity `+py,drop:e=>{e=e+"s "+wS.drop;return`transform ${e}, opacity `+e},outOfTheWay:"transform "+py,placeholder:`height ${py}, width ${py}, margin `+py},SS=e=>Dk(e,Ok)?void 0:`translate(${e.x}px, ${e.y}px)`,IS={moveTo:SS,drop:(e,t)=>{e=SS(e);if(e)return t?`${e} scale(${kS.scale.drop})`:e}},{minDropTime:xS,maxDropTime:$S}=fy,ES=$S-xS,CS=({getState:m,dispatch:f})=>p=>e=>{var t,r,n,i,a,o,s,l,u,c,d;rS(e,"DROP")?(t=m(),r=e.payload.reason,"COLLECTING"===t.phase?f({type:"DROP_PENDING",payload:{reason:r}}):"IDLE"!==t.phase&&("DROP_PENDING"===t.phase&&t.isWaiting&&K(0,"A DROP action occurred while DROP_PENDING and still waiting"),"DRAGGING"!==t.phase&&"DROP_PENDING"!==t.phase&&K(0,"Cannot drop in phase: "+t.phase),c=t.critical,i=(n=t.dimensions).draggables[t.critical.draggable.id],{impact:a,didDropInsideDroppable:u}=({draggables:o,reason:a,lastImpact:u,home:d,viewport:l,onLiftImpact:s}=[{reason:r,lastImpact:t.impact,afterCritical:t.afterCritical,onLiftImpact:t.onLiftImpact,home:t.dimensions.droppables[t.critical.droppable.id],viewport:t.viewport,draggables:t.dimensions.draggables}][0],u.at&&"DROP"===a?"REORDER"===u.at.type?{impact:u,didDropInsideDroppable:!0}:{impact:{...u,displaced:Qk},didDropInsideDroppable:!0}:{impact:K_({draggables:o,impact:s,destination:d,viewport:l,forceShouldAnimate:!0}),didDropInsideDroppable:!1}),o=u?Hk(a):null,s=u?Jk(a):null,d={index:c.draggable.index,droppableId:c.droppable.id},l={draggableId:i.descriptor.id,type:i.descriptor.type,source:d,reason:r,mode:t.movementMode,destination:o,combine:s},u=(({impact:e,draggable:t,dimensions:r,viewport:n,afterCritical:i})=>{var{draggables:r,droppables:a}=r,o=z_(e),o=o?a[o]:null,a=a[t.descriptor.droppableId],e=q_({impact:e,draggable:t,draggables:r,afterCritical:i,droppable:o||a,viewport:n});return Ak(e,t.client.borderBox.center)})({impact:a,draggable:i,dimensions:n,viewport:t.viewport,afterCritical:t.afterCritical}),c={critical:t.critical,afterCritical:t.afterCritical,result:l,impact:a},!Dk(t.current.client.offset,u)||Boolean(l.combine)?(d=(({current:e,destination:t,reason:r})=>{e=zk(e,t);return e<=0?xS:1500<=e?$S:(t=xS+ES*(e/1500),Number(("CANCEL"===r?.6*t:t).toFixed(2)))})({current:t.current.client.offset,destination:u,reason:r}),f({type:"DROP_ANIMATE",payload:{newHomeClientOffset:u,dropDuration:d,completed:c}})):f(fS({completed:c})))):p(e)},OS=()=>({x:window.pageXOffset,y:window.pageYOffset});function NS({onWindowScroll:e}){const t=lk(function(){e(OS())}),r=(n=t,{eventName:"scroll",options:{passive:!0,capture:!1},fn:e=>{e.target!==window&&e.target!==window.document||n()}});var n;let i=vk;function a(){return i!==vk}return{start:function(){a()&&K(0,"Cannot start scroll listener when already active"),i=bk(window,[r])},stop:function(){a()||K(0,"Cannot stop scroll listener when not active"),t.cancel(),i(),i=vk},isActive:a}}var AS=t=>{const n=NS({onWindowScroll:e=>{t.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:e}})}});return r=>e=>{var t;!n.isActive()&&rS(e,"INITIAL_PUBLISH")&&n.start(),n.isActive()&&(rS(t=e,"DROP_COMPLETE")||rS(t,"DROP_ANIMATE")||rS(t,"FLUSH"))&&n.stop(),r(e)}},DS=()=>{const n=[];return{add:e=>{const r=setTimeout(()=>{var t=r,[e]=(-1===(e=n.findIndex(e=>e.timerId===t))&&K(0,"Could not find timer"),n.splice(e,1));e.callback()});e={timerId:r,callback:e};n.push(e)},flush:()=>{var e;n.length&&(e=[...n],n.length=0,e.forEach(e=>{clearTimeout(e.timerId),e.callback()}))}}},PS=(e,t)=>{t()},TS=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function zS(e,t,r,n){e&&(e(t,{announce:e=(t=>{let r=!1,n=!1;const i=setTimeout(()=>{n=!0});var e=e=>{r?hk("Announcement already made. Not making a second announcement"):n?hk(`
        Announcements cannot be made asynchronously.
        Default message has already been announced.
      `):(r=!0,t(e),clearTimeout(i))};return e.wasCalled=()=>r,e})(r)}),e.wasCalled())||r(n(t))}var jS=(u,c)=>{const d=DS();let p=null;const t=e=>{p||K(0,"Cannot fire onDragEnd when there is no matching onDragStart"),p=null,PS(0,()=>zS(u().onDragEnd,e,c,Ek.onDragEnd))};return{beforeCapture:(t,r)=>{p&&K(0,"Cannot fire onBeforeCapture as a drag start has already been published"),PS(0,()=>{var e=u().onBeforeCapture;e&&e({draggableId:t,mode:r})})},beforeStart:(t,r)=>{p&&K(0,"Cannot fire onBeforeDragStart as a drag start has already been published"),PS(0,()=>{var e=u().onBeforeDragStart;e&&e(TS(t,r))})},start:(e,t)=>{p&&K(0,"Cannot fire onBeforeDragStart as a drag start has already been published");const r=TS(e,t);p={mode:t,lastCritical:e,lastLocation:r.source,lastCombine:null},d.add(()=>{PS(0,()=>zS(u().onDragStart,r,c,Ek.onDragStart))})},update:(e,t)=>{var r,n,i=Hk(t),t=Jk(t),a=(p||K(0,"Cannot fire onDragMove when onDragStart has not been called"),o=e,a=p.lastCritical,!(o===a||(r=o.draggable.id===a.draggable.id&&o.draggable.droppableId===a.draggable.droppableId&&o.draggable.type===a.draggable.type&&o.draggable.index===a.draggable.index,o=o.droppable.id===a.droppable.id&&o.droppable.type===a.droppable.type,r&&o))),o=(a&&(p.lastCritical=e),r=p.lastLocation,o=i,!(null==r&&null==o||null!=r&&null!=o&&r.droppableId===o.droppableId&&r.index===o.index)),s=(o&&(p.lastLocation=i),s=p.lastCombine,n=t,!(null==s&&null==n||null!=s&&null!=n&&s.draggableId===n.draggableId&&s.droppableId===n.droppableId));if(s&&(p.lastCombine=t),a||o||s){const l={...TS(e,p.mode),combine:t,destination:i};d.add(()=>{PS(0,()=>zS(u().onDragUpdate,l,c,Ek.onDragUpdate))})}},flush:()=>{p||K(0,"Can only flush responders while dragging"),d.flush()},drop:t,abort:()=>{var e;p&&(e={...TS(p.lastCritical,p.mode),combine:null,destination:null,reason:"CANCEL"},t(e))}}},LS=(e,t)=>{const i=jS(e,t);return n=>r=>e=>{var t;rS(e,"BEFORE_INITIAL_CAPTURE")?i.beforeCapture(e.payload.draggableId,e.payload.movementMode):rS(e,"INITIAL_PUBLISH")?(t=e.payload.critical,i.beforeStart(t,e.payload.movementMode),r(e),i.start(t,e.payload.movementMode)):rS(e,"DROP_COMPLETE")?(t=e.payload.completed.result,i.flush(),r(e),i.drop(t)):(r(e),rS(e,"FLUSH")?i.abort():"DRAGGING"===(t=n.getState()).phase&&i.update(t.critical,t.impact))}},US=n=>r=>e=>{var t;rS(e,"DROP_ANIMATION_FINISHED")?("DROP_ANIMATING"!==(t=n.getState()).phase&&K(0,"Cannot finish a drop animating when no drop is occurring"),n.dispatch(fS({completed:t.completed}))):r(e)},RS=n=>{let i=null,a=null;return r=>e=>{if((rS(e,"FLUSH")||rS(e,"DROP_COMPLETE")||rS(e,"DROP_ANIMATION_FINISHED"))&&(a&&(cancelAnimationFrame(a),a=null),i)&&(i(),i=null),r(e),rS(e,"DROP_ANIMATE")){const t={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===n.getState().phase&&n.dispatch(gS())}};a=requestAnimationFrame(()=>{a=null,i=bk(window,[t])})}}},MS=r=>()=>t=>e=>{(rS(e,"DROP_COMPLETE")||rS(e,"FLUSH")||rS(e,"DROP_ANIMATE"))&&r.stopPublishing(),t(e)},BS=r=>{let n=!1;return()=>t=>e=>{rS(e,"INITIAL_PUBLISH")?(n=!0,r.tryRecordFocus(e.payload.critical.draggable.id),t(e),r.tryRestoreFocusRecorded()):(t(e),n&&(rS(e,"FLUSH")?(n=!1,r.tryRestoreFocusRecorded()):rS(e,"DROP_COMPLETE")&&(n=!1,(e=e.payload.completed.result).combine&&r.tryShiftRecord(e.draggableId,e.combine.draggableId),r.tryRestoreFocusRecorded())))}},FS=i=>n=>r=>e=>{var t;rS(t=e,"DROP_COMPLETE")||rS(t,"DROP_ANIMATE")||rS(t,"FLUSH")?(i.stop(),r(e)):rS(e,"INITIAL_PUBLISH")?(r(e),"DRAGGING"!==(t=n.getState()).phase&&K(0,"Expected phase to be DRAGGING after INITIAL_PUBLISH"),i.start(t)):(r(e),i.scroll(n.getState()))},ZS=r=>t=>e=>{t(e),!rS(e,"PUBLISH_WHILE_DRAGGING")||"DROP_PENDING"!==(e=r.getState()).phase||e.isWaiting||r.dispatch(hS({reason:e.reason}))},VS="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({name:"@hello-pangea/dnd"}):G0,GS=({dimensionMarshal:e,focusMarshal:t,styleMarshal:r,getResponders:n,announce:i,autoScroller:a})=>{return F0(tS,VS((o=[yS(r),MS(e),bS(e),CS,US,RS,ZS,FS(a),AS,BS(t),LS(n,i)],i=>(e,t)=>{e=i(e,t);let r=()=>{throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const n={getState:e.getState,dispatch:(e,...t)=>r(e,...t)};t=o.map(e=>e(n));return r=G0(...t)(e.dispatch),{...e,dispatch:r}})));var o},KS=()=>({additions:{},removals:{},modified:{}});var qS=({scrollHeight:e,scrollWidth:t,height:r,width:n})=>{t=Ak({x:t,y:e},{x:n,y:r});return{x:Math.max(0,t.x),y:Math.max(0,t.y)}},HS=()=>{var e=document.documentElement;return e||K(0,"Cannot find document.documentElement"),e},JS=()=>{var e=HS();return qS({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},WS=({critical:e,scrollOptions:t,registry:r})=>{n=OS(),i=JS(),l=n.y,a=n.x,u=HS(),s=u.clientWidth,u=u.clientHeight;var n,i,a={frame:rk({top:l,left:a,right:a+s,bottom:l+u}),scroll:{initial:n,current:n,max:i,diff:{value:Ok,displacement:Ok}}};const o=a.scroll.current;var s=e.droppable,l=r.droppable.getAllByType(s.type).map(e=>e.callbacks.getDimensionAndWatchScroll(o,t)),u=r.draggable.getAllByType(e.draggable.type).map(e=>e.getDimension(o));return{dimensions:{draggables:Vk(u),droppables:Zk(l)},critical:e,viewport:a}};function XS(e,t,r){if(r.descriptor.id!==t.id&&r.descriptor.type===t.type){if("virtual"===e.droppable.getById(r.descriptor.droppableId).descriptor.mode)return 1;hk(`
      You are attempting to add or remove a Draggable [id: ${r.descriptor.id}]
      while a drag is occurring. This is only supported for virtual lists.

      See https://github.com/hello-pangea/dnd/blob/main/docs/patterns/virtual-lists.md
    `)}}var YS=(n,r)=>{let i=null;const a=function({registry:n,callbacks:i}){let a=KS(),o=null;const r=()=>{o||(i.collectionStarting(),o=requestAnimationFrame(()=>{o=null;var{additions:e,removals:t,modified:r}=a,e=Object.keys(e).map(e=>n.draggable.getById(e).getDimension(Ok)).sort((e,t)=>e.descriptor.index-t.descriptor.index),r=Object.keys(r).map(e=>{return{droppableId:e,scroll:n.droppable.getById(e).callbacks.getScrollWhileDragging()}}),e={additions:e,removals:Object.keys(t),modified:r};a=KS(),i.publish(e)}))};return{add:e=>{var t=e.descriptor.id;a.additions[t]=e,a.modified[e.descriptor.droppableId]=!0,a.removals[t]&&delete a.removals[t],r()},remove:e=>{e=e.descriptor;a.removals[e.id]=!0,a.modified[e.droppableId]=!0,a.additions[e.id]&&delete a.additions[e.id],r()},stop:()=>{o&&(cancelAnimationFrame(o),o=null,a=KS())}}}({callbacks:{publish:r.publishWhileDragging,collectionStarting:r.collectionStarting},registry:n});const o=e=>{i||K(0,"Should only be subscribed when a collection is occurring");var t=i.critical.draggable;"ADDITION"===e.type&&XS(n,t,e.value)&&a.add(e.value),"REMOVAL"===e.type&&XS(n,t,e.value)&&a.remove(e.value)};return{updateDroppableIsEnabled:(e,t)=>{n.droppable.exists(e)||K(0,`Cannot update is enabled flag of Droppable ${e} as it is not registered`),i&&r.updateDroppableIsEnabled({id:e,isEnabled:t})},updateDroppableIsCombineEnabled:(e,t)=>{i&&(n.droppable.exists(e)||K(0,`Cannot update isCombineEnabled flag of Droppable ${e} as it is not registered`),r.updateDroppableIsCombineEnabled({id:e,isCombineEnabled:t}))},scrollDroppable:(e,t)=>{i&&n.droppable.getById(e).callbacks.scroll(t)},updateDroppableScroll:(e,t)=>{i&&(n.droppable.exists(e)||K(0,`Cannot update the scroll on Droppable ${e} as it is not registered`),r.updateDroppableScroll({id:e,newScroll:t}))},startPublishing:e=>{i&&K(0,"Cannot start capturing critical dimensions as there is already a collection");var t=n.draggable.getById(e.draggableId),r=n.droppable.getById(t.descriptor.droppableId),t={draggable:t.descriptor,droppable:r.descriptor},r=n.subscribe(o);return i={critical:t,unsubscribe:r},WS({critical:t,registry:n,scrollOptions:e.scrollOptions})},stopPublishing:()=>{var e;i&&(a.stop(),e=i.critical.droppable,n.droppable.getAllByType(e.type).forEach(e=>e.callbacks.dragStopped()),i.unsubscribe(),i=null)}}},QS=(e,t)=>"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason,e1=e=>{window.scrollBy(e.x,e.y)},t1=Fk(e=>Gk(e).filter(e=>!!e.isEnabled&&!!e.frame)),r1=({center:e,destination:t,droppables:r})=>{var n;return t?(t=r[t]).frame?t:null:(n=e,t1(r).find(e=>(e.frame||K(0,"Invalid result"),U_(e.frame.pageMarginBox)(n)))||null)},n1={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1},i1=({startOfRange:e,endOfRange:t,current:r})=>{t-=e;return 0==t?(hk(`
      Detected distance range of 0 in the fluid auto scroller
      This is unexpected and would cause a divide by 0 issue.
      Not allowing an auto scroll
    `),0):(r-e)/t},a1=({distanceToEdge:e,thresholds:t,dragStartTime:r,shouldUseTimeDampening:n,getAutoScrollerOptions:i})=>{var a,o,e=((e,t,r=()=>n1)=>{r=r();return e>t.startScrollingFrom?0:e<=t.maxScrollValueAt?r.maxPixelScroll:e===t.startScrollingFrom?1:(t=i1({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),e=r.maxPixelScroll*r.ease(1-t),Math.ceil(e))})(e,t,i);return 0===e?0:n?Math.max((t=e,n=r,r=(r=i)(),i=r.durationDampening.accelerateAt,a=r.durationDampening.stopDampeningAt,o=a,n=Date.now()-n,a<=n?t:n<i?1:(a=i1({startOfRange:i,endOfRange:o,current:n}),i=t*r.ease(a),Math.ceil(i))),1):e},o1=({container:e,distanceToEdges:t,dragStartTime:r,axis:n,shouldUseTimeDampening:i,getAutoScrollerOptions:a})=>{e=((e,t,r=()=>n1)=>{r=r();return{startScrollingFrom:e[t.size]*r.startFromPercentage,maxScrollValueAt:e[t.size]*r.maxScrollAtPercentage}})(e,n,a);return t[n.end]<t[n.start]?a1({distanceToEdge:t[n.end],thresholds:e,dragStartTime:r,shouldUseTimeDampening:i,getAutoScrollerOptions:a}):-1*a1({distanceToEdge:t[n.start],thresholds:e,dragStartTime:r,shouldUseTimeDampening:i,getAutoScrollerOptions:a})},s1=em(e=>0===e?0:e),l1=({dragStartTime:e,container:t,subject:r,center:n,shouldUseTimeDampening:i,getAutoScrollerOptions:a})=>{var n={top:n.y-t.top,right:t.right-n.x,bottom:t.bottom-n.y,left:n.x-t.left},o=o1({container:t,distanceToEdges:n,dragStartTime:e,axis:i_,shouldUseTimeDampening:i,getAutoScrollerOptions:a}),n=o1({container:t,distanceToEdges:n,dragStartTime:e,axis:a_,shouldUseTimeDampening:i,getAutoScrollerOptions:a}),e=s1({x:n,y:o});return Dk(e,Ok)||({container:i,subject:a,proposedScroll:n}={container:t,subject:r,proposedScroll:e},o=a.height>i.height,!(t=(a=a.width>i.width)||o?a&&o?null:{x:a?0:n.x,y:o?0:n.y}:n))||Dk(t,Ok)?null:t},u1=em(e=>0===e?0:0<e?1:-1),c1=(()=>{const n=(e,t)=>e<0?e:t<e?e-t:0;return({current:e,max:t,change:r})=>{e=Nk(e,r),r={x:n(e.x,t.x),y:n(e.y,t.y)};return Dk(r,Ok)?null:r}})(),d1=({max:e,current:t,change:r})=>{e={x:Math.max(t.x,e.x),y:Math.max(t.y,e.y)},r=u1(r),e=c1({max:e,current:t,change:r});return!e||0!==r.x&&0===e.x||0!==r.y&&0===e.y},p1=(e,t)=>d1({current:e.scroll.current,max:e.scroll.max,change:t}),m1=(e,t)=>{e=e.frame;return!!e&&d1({current:e.scroll.current,max:e.scroll.max,change:t})},f1=({state:e,dragStartTime:t,shouldUseTimeDampening:r,scrollWindow:n,scrollDroppable:i,getAutoScrollerOptions:a})=>{var o=e.current.page.borderBoxCenter,s=e.dimensions.draggables[e.critical.draggable.id].page.marginBox;if(e.isWindowScrollAllowed){var l=(({viewport:e,subject:t,center:r,dragStartTime:n,shouldUseTimeDampening:i,getAutoScrollerOptions:a})=>{n=l1({dragStartTime:n,container:e.frame,subject:t,center:r,shouldUseTimeDampening:i,getAutoScrollerOptions:a});return n&&p1(e,n)?n:null})({dragStartTime:t,viewport:e.viewport,subject:s,center:o,shouldUseTimeDampening:r,getAutoScrollerOptions:a});if(l)return void n(l)}n=r1({center:o,destination:z_(e.impact),droppables:e.dimensions.droppables});n&&({droppable:l,subject:e,center:t,dragStartTime:s,shouldUseTimeDampening:o,getAutoScrollerOptions:r}=[{dragStartTime:t,droppable:n,subject:s,center:o,shouldUseTimeDampening:r,getAutoScrollerOptions:a}][0],a=(a=l.frame)&&(s=l1({dragStartTime:s,container:a.pageMarginBox,subject:e,center:t,shouldUseTimeDampening:o,getAutoScrollerOptions:r}))&&m1(l,s)?s:null)&&i(n.descriptor.id,a)},h1=({scrollWindow:e,scrollDroppable:t,getAutoScrollerOptions:i=()=>n1})=>{const n=lk(e),a=lk(t);let o=null;const s=e=>{o||K(0,"Cannot fluid scroll if not dragging");var{shouldUseTimeDampening:t,dragStartTime:r}=o;f1({state:e,scrollWindow:n,scrollDroppable:a,dragStartTime:r,shouldUseTimeDampening:t,getAutoScrollerOptions:i})};return{start:e=>{o&&K(0,"Cannot start auto scrolling when already started");var t=Date.now();let r=!1;var n=()=>{r=!0};f1({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:n,scrollDroppable:n,getAutoScrollerOptions:i}),o={dragStartTime:t,shouldUseTimeDampening:r},r&&s(e)},stop:()=>{o&&(n.cancel(),a.cancel(),o=null)},scroll:s}},g1=({move:n,scrollDroppable:a,scrollWindow:i})=>{const o=(e,t)=>{var r,n,i;return m1(e,t)?(n=t,(r=(i=(r=e).frame)&&m1(r,n)?c1({current:i.scroll.current,max:i.scroll.max,change:n}):null)?(i=Ak(t,r),a(e.descriptor.id,i),Ak(t,i)):(a(e.descriptor.id,t),null)):t},s=(e,t,r)=>{var n;return e&&p1(t,r)?(e=p1(e=t,t=r)?(n=e.scroll.max,e=e.scroll.current,c1({current:e,max:n,change:t})):null)?(n=Ak(r,e),i(n),Ak(r,n)):(i(r),null):r};return e=>{var t,r=e.scrollJumpRequest;r&&((t=z_(e.impact))||K(0,"Cannot perform a jump scroll when there is no destination"),t=o(e.dimensions.droppables[t],r))&&(r=e.viewport,r=s(e.isWindowScrollAllowed,r,t))&&(t=Nk((t=e).current.client.selection,r),n({client:t}))}},v1=({scrollDroppable:e,scrollWindow:t,move:r,getAutoScrollerOptions:n})=>{const i=h1({scrollWindow:t,scrollDroppable:e,getAutoScrollerOptions:n}),a=g1({move:r,scrollWindow:t,scrollDroppable:e});return{scroll:e=>{n().disabled||"DRAGGING"!==e.phase||("FLUID"===e.movementMode?i.scroll(e):e.scrollJumpRequest&&a(e))},start:i.start,stop:i.stop}},b1="data-rfd",y1={base:hy=b1+"-drag-handle",draggableId:hy+"-draggable-id",contextId:hy+"-context-id"},w1={base:t=b1+"-draggable",contextId:t+"-context-id",id:t+"-id"},k1={base:Z=b1+"-droppable",contextId:Z+"-context-id",id:Z+"-id"},_1={contextId:b1+"-scroll-container-context-id"},S1=t=>e=>`[${e}="${t}"]`,I1=(e,r)=>e.map(e=>{var t=e.styles[r];return t?e.selector+` { ${t} }`:""}).join(" "),x1="pointer-events: none;",$1="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?G.useLayoutEffect:G.useEffect,E1=()=>{var e=document.querySelector("head");return e||K(0,"Cannot find the head to append a style to"),e},C1=e=>{var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function O1(n,r){const i=q(()=>{{var e=n;const r=S1(e);e=`
      cursor: -webkit-grab;
      cursor: grab;
    `,e={selector:r(y1.contextId),styles:{always:`
          -webkit-touch-callout: none;
          -webkit-tap-highlight-color: rgba(0,0,0,0);
          touch-action: manipulation;
        `,resting:e,dragging:x1,dropAnimating:e}},t=`
      transition: ${_S.outOfTheWay};
    `;var t=[{selector:r(w1.contextId),styles:{dragging:t,dropAnimating:t,userCancel:t}},e,{selector:r(k1.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:`
        cursor: grabbing;
        cursor: -webkit-grabbing;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        overflow-anchor: none;
      `}}];return{always:I1(t,"always"),resting:I1(t,"resting"),dragging:I1(t,"dragging"),dropAnimating:I1(t,"dropAnimating"),userCancel:I1(t,"userCancel")}}},[n]),a=(0,G.useRef)(null),o=(0,G.useRef)(null),s=H(Fk(e=>{var t=o.current;t||K(0,"Cannot set dynamic style element if it is not set"),t.textContent=e}),[]),l=H(e=>{var t=a.current;t||K(0,"Cannot set dynamic style element if it is not set"),t.textContent=e},[]),e=($1(()=>{(a.current||o.current)&&K(0,"style elements already mounted");var e=C1(r),t=C1(r);return a.current=e,o.current=t,e.setAttribute(b1+"-always",n),t.setAttribute(b1+"-dynamic",n),E1().appendChild(e),E1().appendChild(t),l(i.always),s(i.resting),()=>{var e=e=>{var t=e.current;t||K(0,"Cannot unmount ref as it is not set"),E1().removeChild(t),e.current=null};e(a),e(o)}},[r,l,s,i.always,i.resting,n]),H(()=>s(i.dragging),[s,i.dragging])),t=H(e=>{"DROP"===e?s(i.dropAnimating):s(i.userCancel)},[s,i.dropAnimating,i.userCancel]),u=H(()=>{o.current&&s(i.resting)},[s,i.resting]);return q(()=>({dragging:e,dropping:t,resting:u}),[e,t,u])}function N1(e,t){return Array.from(e.querySelectorAll(t))}var A1=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;function D1(e){return e instanceof A1(e).HTMLElement}function P1(e,t){var r=`[${y1.contextId}="${e}"]`,r=N1(document,r);return r.length?(r=r.find(e=>e.getAttribute(y1.draggableId)===t))?D1(r)?r:(hk("drag handle needs to be a HTMLElement"),null):(hk(`Unable to find drag handle with id "${t}" as no handle with a matching id was found`),null):(hk(`Unable to find any drag handles in the context "${e}"`),null)}function T1(){const n={draggables:{},droppables:{}},r=[];function i(t){r.length&&r.forEach(e=>e(t))}function a(e){return n.draggables[e]||null}function o(e){return n.droppables[e]||null}return{draggable:{register:e=>{i({type:"ADDITION",value:n.draggables[e.descriptor.id]=e})},update:(e,t)=>{var r=n.draggables[t.descriptor.id];r&&r.uniqueId===e.uniqueId&&(delete n.draggables[t.descriptor.id],n.draggables[e.descriptor.id]=e)},unregister:e=>{var t=e.descriptor.id,r=a(t);r&&e.uniqueId===r.uniqueId&&(delete n.draggables[t],n.droppables[e.descriptor.droppableId])&&i({type:"REMOVAL",value:e})},getById:function(e){var t=a(e);return t||K(0,`Cannot find draggable entry with id [${e}]`),t},findById:a,exists:e=>Boolean(a(e)),getAllByType:t=>Object.values(n.draggables).filter(e=>e.descriptor.type===t)},droppable:{register:e=>{n.droppables[e.descriptor.id]=e},unregister:e=>{var t=o(e.descriptor.id);t&&e.uniqueId===t.uniqueId&&delete n.droppables[e.descriptor.id]},getById:function(e){var t=o(e);return t||K(0,`Cannot find droppable entry with id [${e}]`),t},findById:o,exists:e=>Boolean(o(e)),getAllByType:t=>Object.values(n.droppables).filter(e=>e.descriptor.type===t)},subscribe:function(t){return r.push(t),function(){var e=r.indexOf(t);-1!==e&&r.splice(e,1)}},clean:function(){n.draggables={},n.droppables={},r.length=0}}}var z1=G.default.createContext(null),j1=()=>{var e=document.body;return e||K(0,"Cannot find document.body"),e},L1={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};var U1={separator:"::"};function R1(e,t=U1){const r=G.default.useId();return q(()=>""+e+t.separator+r,[t.separator,e,r])}function M1({contextId:r,text:e}){const n=R1("hidden-text",{separator:"-"}),i=q(()=>{return{contextId:e,uniqueId:t}=[{contextId:r,uniqueId:n}][0],`rfd-hidden-text-${e}-`+t;var e,t},[n,r]);return(0,G.useEffect)(function(){const t=document.createElement("div");return t.id=i,t.textContent=e,t.style.display="none",j1().appendChild(t),function(){var e=j1();e.contains(t)&&e.removeChild(t)}},[i,e]),i}var B1=G.default.createContext(null),F1="^18.0.0 || ^19.0.0",Z1=/(\d+)\.(\d+)\.(\d+)/,V1=e=>{var t=Z1.exec(e),r=(null==t&&K(0,"Unable to parse React version "+e),Number(t[1]));return{major:r,minor:Number(t[2]),patch:Number(t[3]),raw:e}},G1=(e,t)=>t.major>e.major||!(t.major<e.major)&&(t.minor>e.minor||!(t.minor<e.minor)&&t.patch>=e.patch),K1=`
  We expect a html5 doctype: <!doctype html>
  This is to ensure consistent browser layout and measurement

  More information: https://github.com/hello-pangea/dnd/blob/main/docs/guides/doctype.md
`;function q1(e){e()}function H1(e,t){q1(()=>{(0,G.useEffect)(()=>{try{e()}catch(e){gk(`
          A setup problem was encountered.

          > ${e.message}
        `)}},t)})}function J1(){H1(()=>{var e=F1,t=G.default.version,t=(e=V1(e),t=V1(t),G1(e,t)||hk(`
    React version: [${t.raw}]
    does not satisfy expected peer dependency version: [${e.raw}]

    This can result in run time bugs, and even fatal crashes
  `),document);(t=t.doctype)?("html"!==t.name.toLowerCase()&&hk(`
      Unexpected <!doctype> found: (${t.name})

      ${K1}
    `),""!==t.publicId&&hk(`
      Unexpected <!doctype> publicId found: (${t.publicId})
      A html5 doctype does not have a publicId

      ${K1}
    `)):hk(`
      No <!doctype html> found.

      ${K1}
    `)},[])}function W1(e){const t=(0,G.useRef)(e);return(0,G.useEffect)(()=>{t.current=e}),t}function X1(){let t=null;function e(){t||K(0,"Cannot release lock when there is no lock"),t=null}return{isClaimed:function(){return Boolean(t)},isActive:function(e){return e===t},claim:function(e){return t&&K(0,"Cannot claim lock as it is already claimed"),e={abandon:e},t=e},release:e,tryAbandon:function(){t&&(t.abandon(),e())}}}function Y1(e){return"IDLE"!==e.phase&&"DROP_ANIMATING"!==e.phase&&e.isDragging}var Q1=27,eI=32,tI=37,rI=38,nI=39,iI=40,aI={[13]:!0,9:!0},oI=e=>{aI[e.keyCode]&&e.preventDefault()},sI=(gp="visibilitychange","undefined"!=typeof document&&[gp,"ms"+gp,"webkit"+gp,"moz"+gp,"o"+gp].find(e=>"on"+e in document)||gp),lI=0,uI=5;var cI={type:"IDLE"};function dI({cancel:r,completed:n,getPhase:a,setPhase:o}){return[{eventName:"mousemove",fn:e=>{var t,{button:r,clientX:n,clientY:i}=e;r===lI&&(r={x:n,y:i},"DRAGGING"===(n=a()).type?(e.preventDefault(),n.actions.move(r)):("PENDING"!==n.type&&K(0,"Cannot be IDLE"),i=n.point,i=i,t=r,(Math.abs(t.x-i.x)>=uI||Math.abs(t.y-i.y)>=uI)&&(e.preventDefault(),t=n.actions.fluidLift(r),o({type:"DRAGGING",actions:t}))))}},{eventName:"mouseup",fn:e=>{var t=a();("DRAGGING"!==t.type?r:(e.preventDefault(),t.actions.drop({shouldBlockNextClick:!0}),n))()}},{eventName:"mousedown",fn:e=>{"DRAGGING"===a().type&&e.preventDefault(),r()}},{eventName:"keydown",fn:e=>{"PENDING"===a().type?r():e.keyCode===Q1?(e.preventDefault(),r()):oI(e)}},{eventName:"resize",fn:r},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{"PENDING"===a().type&&r()}},{eventName:"webkitmouseforcedown",fn:e=>{var t=a();"IDLE"===t.type&&K(0,"Unexpected phase"),t.actions.shouldRespectForcePress()?r():e.preventDefault()}},{eventName:sI,fn:r}]}function pI(){}var mI={[34]:!0,33:!0,36:!0,35:!0};function fI(t,r){function n(){r(),t.cancel()}return[{eventName:"keydown",fn:e=>{e.keyCode===Q1?(e.preventDefault(),n()):e.keyCode===eI?(e.preventDefault(),r(),t.drop()):e.keyCode===iI?(e.preventDefault(),t.moveDown()):e.keyCode===rI?(e.preventDefault(),t.moveUp()):e.keyCode===nI?(e.preventDefault(),t.moveRight()):e.keyCode===tI?(e.preventDefault(),t.moveLeft()):mI[e.keyCode]?e.preventDefault():oI(e)}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:sI,fn:n}]}var hI={type:"IDLE"},gI=.15;var vI=["input","button","textarea","select","option","optgroup","video","audio"];function bI(e,t){t=t.target;return D1(t)&&function e(t,r){var n;return null!=r&&(!!vI.includes(r.tagName.toLowerCase())||"true"===(n=r.getAttribute("contenteditable"))||""===n||r!==t&&e(t,r.parentElement))}(e,t)}n="matches";var yI="undefined"!=typeof document&&[n,"msMatchesSelector","webkitMatchesSelector"].find(e=>e in Element.prototype)||n;function wI(e,t){return e.closest?e.closest(t):function e(t,r){return null==t?null:t[yI](r)?t:e(t.parentElement,r)}(e,t)}function kI(e,t){var t=t.target;return t instanceof A1(t).Element?(e=`[${y1.contextId}="${e}"]`,(t=wI(t,e))?D1(t)?t:(hk("drag handle must be a HTMLElement"),null):null):(hk("event.target must be a Element"),null)}function _I(e){e.preventDefault()}function SI({expected:e,phase:t,isLockActive:r,shouldWarn:n}){return r()?e===t||(n&&hk(`
        Cannot perform action.
        The actions you used belong to an outdated phase

        Current phase: ${e}
        You called an action from outdated phase: ${t}

        Tips:

        - Do not use preDragActions actions after calling preDragActions.lift()
      `),!1):(n&&hk(`
        Cannot perform action.
        The sensor no longer has an action lock.

        Tips:

        - Throw away your action handlers when forceStop() is called
        - Check actions.isActive() if you really need to
      `),!1)}function II({lockAPI:e,store:t,registry:r,draggableId:n}){return!(e.isClaimed()||((e=r.draggable.findById(n))?!e.options.isEnabled||!QS(t.getState(),n):(hk("Unable to find draggable with id: "+n),1)))}function xI({lockAPI:e,contextId:t,store:i,registry:r,draggableId:n,forceSensorStop:a,sourceEvent:o}){var s;if(!II({lockAPI:e,store:i,registry:r,draggableId:n}))return null;const l=r.draggable.getById(n),u=(r=t,s=l.descriptor.id,r=`[${w1.contextId}="${r}"]`,(r=N1(document,r).find(e=>e.getAttribute(w1.id)===s))?D1(r)?r:(hk("Draggable element is not a HTMLElement"),null):null);if(!u)return hk("Unable to find draggable element with id: "+n),null;if(o&&!l.options.canDragInteractiveElements&&bI(u,o))return null;const c=e.claim(a||vk);let d="PRE_DRAG";function p(){return l.options.shouldRespectForcePress}function m(){return e.isActive(c)}const f=function(e,t){SI({expected:e,phase:d,isLockActive:m,shouldWarn:!0})&&i.dispatch(t())}.bind(null,"DRAGGING");function h(r){function n(){e.release(),d="COMPLETED"}function t(e,t={shouldBlockNextClick:!1}){r.cleanup(),t.shouldBlockNextClick&&(t=bk(window,[{eventName:"click",fn:_I,options:{once:!0,passive:!1,capture:!0}}]),setTimeout(t)),n(),i.dispatch(hS({reason:e}))}return"PRE_DRAG"!==d&&(n(),K(0,"Cannot lift in phase "+d)),i.dispatch({type:"LIFT",payload:r.liftActionArgs}),d="DRAGGING",{isActive:()=>SI({expected:"DRAGGING",phase:d,isLockActive:m,shouldWarn:!1}),shouldRespectForcePress:p,drop:e=>t("DROP",e),cancel:e=>t("CANCEL",e),...r.actions}}return{isActive:()=>SI({expected:"PRE_DRAG",phase:d,isLockActive:m,shouldWarn:!1}),shouldRespectForcePress:p,fluidLift:function(e){const t=lk(e=>{f(()=>lS({client:e}))});return{...h({liftActionArgs:{id:n,clientSelection:e,movementMode:"FLUID"},cleanup:()=>t.cancel(),actions:{move:t}}),move:t}},snapLift:function(){var e,t={moveUp:()=>f(uS),moveRight:()=>f(dS),moveDown:()=>f(cS),moveLeft:()=>f(pS)};return h({liftActionArgs:{id:n,clientSelection:(e=u,rk(e.getBoundingClientRect()).center),movementMode:"SNAP"},cleanup:vk,actions:t})},abort:function(){SI({expected:"PRE_DRAG",phase:d,isLockActive:m,shouldWarn:!0})&&e.release()}}}var $I=[function(n){const r=(0,G.useRef)(cI),i=(0,G.useRef)(vk),e=q(()=>({eventName:"mousedown",fn:function(e){var t;e.defaultPrevented||e.button!==lI||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey||(t=n.findClosestDraggableId(e))&&(t=n.tryGetLock(t,o,{sourceEvent:e}))&&(e.preventDefault(),e={x:e.clientX,y:e.clientY},i.current(),u(t,e))}}),[n]),t=q(()=>({eventName:"webkitmouseforcewillbegin",fn:e=>{var t,r;e.defaultPrevented||(t=n.findClosestDraggableId(e))&&(r=n.findOptionsForDraggable(t))&&!r.shouldRespectForcePress&&n.canGetLock(t)&&e.preventDefault()}}),[n]),a=H(function(){i.current=bk(window,[t,e],{passive:!1,capture:!0})},[t,e]),o=H(()=>{"IDLE"!==r.current.type&&(r.current=cI,i.current(),a())},[a]),s=H(()=>{var e=r.current;o(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()},[o]),l=H(function(){var e=dI({cancel:s,completed:o,getPhase:()=>r.current,setPhase:e=>{r.current=e}});i.current=bk(window,e,{capture:!0,passive:!1})},[s,o]),u=H(function(e,t){"IDLE"!==r.current.type&&K(0,"Expected to move from IDLE to PENDING drag"),r.current={type:"PENDING",point:t,actions:e},l()},[l]);$1(function(){return a(),function(){i.current()}},[a])},function(e){const i=(0,G.useRef)(pI),t=q(()=>({eventName:"keydown",fn:function(t){if(!t.defaultPrevented&&t.keyCode===eI){var r=e.findClosestDraggableId(t);if(r){r=e.tryGetLock(r,n,{sourceEvent:t});if(r){t.preventDefault();let e=!0;t=r.snapLift();function n(){e||K(0,"Cannot stop capturing a keyboard drag when not capturing"),e=!1,i.current(),a()}i.current(),i.current=bk(window,fI(t,n),{capture:!0,passive:!1})}}}}}),[e]),a=H(function(){i.current=bk(window,[t],{passive:!1,capture:!0})},[t]);$1(function(){return a(),function(){i.current()}},[a])},function(n){const t=(0,G.useRef)(hI),u=(0,G.useRef)(vk),c=H(function(){return t.current},[]),i=H(function(e){t.current=e},[]),e=q(()=>({eventName:"touchstart",fn:function(e){var t,r;e.defaultPrevented||(t=n.findClosestDraggableId(e))&&(t=n.tryGetLock(t,d,{sourceEvent:e}))&&({clientX:e,clientY:r}=e.touches[0],e={x:e,y:r},u.current(),s(t,e))}}),[n]),r=H(function(){u.current=bk(window,[e],{capture:!0,passive:!1})},[e]),d=H(()=>{var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),i(hI),u.current(),r())},[r,i]),p=H(()=>{var e=t.current;d(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()},[d]),a=H(function(){var i,r,a,t,n,e={capture:!0,passive:!1},o={cancel:p,completed:d,getPhase:c};const s=bk(window,({cancel:i,completed:r,getPhase:a}=[o][0],[{eventName:"touchmove",options:{capture:!1},fn:e=>{var t,r,n=a();"DRAGGING"!==n.type?i():(n.hasMoved=!0,{clientX:r,clientY:t}=e.touches[0],r={x:r,y:t},e.preventDefault(),n.actions.move(r))}},{eventName:"touchend",fn:e=>{var t=a();("DRAGGING"!==t.type?i:(e.preventDefault(),t.actions.drop({shouldBlockNextClick:!0}),r))()}},{eventName:"touchcancel",fn:e=>{"DRAGGING"!==a().type||e.preventDefault(),i()}},{eventName:"touchforcechange",fn:e=>{var t=a(),r=("IDLE"===t.type&&K(),e.touches[0]);if(r&&r.force>=gI){r=t.actions.shouldRespectForcePress();if("PENDING"!==t.type)return!r||t.hasMoved?void e.preventDefault():void i();r&&i()}}},{eventName:sI,fn:i}]),e),l=bk(window,({cancel:t,getPhase:n}=[o][0],[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:e=>{e.preventDefault()}},{eventName:"keydown",fn:e=>{"DRAGGING"!==n().type||e.keyCode===Q1&&e.preventDefault(),t()}},{eventName:sI,fn:t}]),e);u.current=function(){s(),l()}},[p,c,d]),o=H(function(){var e=c(),e=("PENDING"!==e.type&&K(0,"Cannot start dragging from phase "+e.type),e.actions.fluidLift(e.point));i({type:"DRAGGING",actions:e,hasMoved:!1})},[c,i]),s=H(function(e,t){"IDLE"!==c().type&&K(0,"Expected to move from IDLE to PENDING drag");var r=setTimeout(o,120);i({type:"PENDING",point:t,actions:e,longPressTimerId:r}),a()},[a,c,i,o]);$1(function(){return r(),function(){u.current();var e=c();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),i(hI))}},[c,r,i]),$1(function(){return bk(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}];function EI({contextId:n,store:i,registry:a,customSensors:e,enableDefaultSensors:t}){var r=[...t?$I:[],...e||[]];const o=(0,G.useState)(()=>X1())[0],s=H(function(e,t){Y1(e)&&!Y1(t)&&o.tryAbandon()},[o]),l=($1(function(){let t=i.getState();return i.subscribe(()=>{var e=i.getState();s(t,e),t=e})},[o,i,s]),$1(()=>o.tryAbandon,[o.tryAbandon]),H(e=>II({lockAPI:o,registry:a,store:i,draggableId:e}),[o,a,i])),u=H((e,t,r)=>xI({lockAPI:o,registry:a,contextId:n,store:i,draggableId:e,forceSensorStop:t||null,sourceEvent:r&&r.sourceEvent?r.sourceEvent:null}),[n,o,a,i]),c=H(e=>{return(t=kI(t=n,e))?t.getAttribute(y1.draggableId):null;var t},[n]),d=H(e=>{e=a.draggable.findById(e);return e?e.options:null},[a.draggable]),p=H(function(){o.isClaimed()&&(o.tryAbandon(),"IDLE"!==i.getState().phase)&&i.dispatch(mS())},[o,i]),m=H(()=>o.isClaimed(),[o]);var f,h=q(()=>({canGetLock:l,tryGetLock:u,findClosestDraggableId:c,findOptionsForDraggable:d,tryReleaseLock:p,isLockClaimed:m}),[l,u,c,d,p,m]);f=r,q1(()=>{const e=W1(f);H1(()=>{e.current.length!==f.length&&K(0,"Cannot change the amount of sensor hooks after mounting")})});for(let e=0;e<r.length;e++)r[e](h)}var CI=t=>({onBeforeCapture:e=>{(0,j0.flushSync)(()=>{t.onBeforeCapture&&t.onBeforeCapture(e)})},onBeforeDragStart:t.onBeforeDragStart,onDragStart:t.onDragStart,onDragEnd:t.onDragEnd,onDragUpdate:t.onDragUpdate}),OI=e=>({...n1,...e.autoScrollerOptions,durationDampening:{...n1.durationDampening,...e.autoScrollerOptions}});function NI(e){return e.current||K(0,"Could not find store from lazy ref"),e.current}function AI(e){const{contextId:t,setCallbacks:r,sensors:n,nonce:i,dragHandleUsageInstructions:a}=e,o=(0,G.useRef)(null),s=(J1(),W1(e)),l=H(()=>CI(s.current),[s]),u=H(()=>OI(s.current),[s]),c=function(e){const r=q(()=>"rfd-announcement-"+e,[e]),n=(0,G.useRef)(null);return(0,G.useEffect)(function(){const t=document.createElement("div");return(n.current=t).id=r,t.setAttribute("aria-live","assertive"),t.setAttribute("aria-atomic","true"),uk(t.style,L1),j1().appendChild(t),function(){setTimeout(function(){var e=j1();e.contains(t)&&e.removeChild(t),t===n.current&&(n.current=null)})}},[r]),H(e=>{var t=n.current;t?t.textContent=e:hk(`
      A screen reader message was trying to be announced but it was unable to do so.
      This can occur if you unmount your <DragDropContext /> in your onDragEnd.
      Consider calling provided.announce() before the unmount so that the instruction will
      not be lost for users relying on a screen reader.

      Message not passed to screen reader:

      "${e}"
    `)},[])}(t),d=M1({contextId:t,text:a}),p=O1(t,i),m=H(e=>{NI(o).dispatch(e)},[]),f=q(()=>V0({publishWhileDragging:nS,updateDroppableScroll:aS,updateDroppableIsEnabled:oS,updateDroppableIsCombineEnabled:sS,collectionStarting:iS},m),[m]),h=function(){const e=q(T1,[]);return(0,G.useEffect)(()=>function(){e.clean()},[e]),e}(),g=q(()=>YS(h,f),[h,f]),v=q(()=>v1({scrollWindow:e1,scrollDroppable:g.scrollDroppable,getAutoScrollerOptions:u,...V0({move:lS},m)}),[g.scrollDroppable,m,u]),b=function(t){const n=(0,G.useRef)({}),r=(0,G.useRef)(null),i=(0,G.useRef)(null),a=(0,G.useRef)(!1),e=H(function(t,e){const r={id:t,focus:e};return n.current[t]=r,function(){var e=n.current;e[t]!==r&&delete e[t]}},[]),o=H(function(e){e=P1(t,e);e&&e!==document.activeElement&&e.focus()},[t]),s=H(function(e,t){r.current===e&&(r.current=t)},[]),l=H(function(){i.current||a.current&&(i.current=requestAnimationFrame(()=>{i.current=null;var e=r.current;e&&o(e)}))},[o]),u=H(function(e){r.current=null;var t=document.activeElement;t&&t.getAttribute(y1.draggableId)===e&&(r.current=e)},[]);return $1(()=>(a.current=!0,function(){a.current=!1;var e=i.current;e&&cancelAnimationFrame(e)}),[]),q(()=>({register:e,tryRecordFocus:u,tryRestoreFocusRecorded:l,tryShiftRecord:s}),[e,u,l,s])}(t);var y=q(()=>GS({announce:c,autoScroller:v,dimensionMarshal:g,focusMarshal:b,getResponders:l,styleMarshal:p}),[c,v,g,b,l,p]);o.current&&o.current!==y&&hk("unexpected store change"),o.current=y;const w=H(()=>{var e=NI(o);"IDLE"!==e.getState().phase&&e.dispatch(mS())},[]),k=H(()=>{var e=NI(o).getState();return"DROP_ANIMATING"===e.phase||"IDLE"!==e.phase&&e.isDragging},[]);var _=q(()=>({isDragging:k,tryAbort:w}),[k,w]);r(_);const S=H(e=>QS(NI(o).getState(),e),[]),I=H(()=>L_(NI(o).getState()),[]);_=q(()=>({marshal:g,focus:b,contextId:t,canLift:S,isMovementAllowed:I,dragHandleUsageInstructionsId:d,registry:h}),[t,g,d,b,S,I,h]);return EI({contextId:t,store:y,registry:h,customSensors:n||null,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,G.useEffect)(()=>w,[w]),G.default.createElement(B1.Provider,{value:_},G.default.createElement(Hw,{context:z1,store:y},e.children))}function DI(t){const r=G.default.useId(),n=t.dragHandleUsageInstructions||Ek.dragHandleUsageInstructions;return G.default.createElement(_k,null,e=>G.default.createElement(AI,{nonce:t.nonce,contextId:r,setCallbacks:e,dragHandleUsageInstructions:n,enableDefaultSensors:t.enableDefaultSensors,sensors:t.sensors,onBeforeCapture:t.onBeforeCapture,onBeforeDragStart:t.onBeforeDragStart,onDragStart:t.onDragStart,onDragUpdate:t.onDragUpdate,onDragEnd:t.onDragEnd,autoScrollerOptions:t.autoScrollerOptions},t.children))}var PI={dragging:5e3,dropAnimating:4500},TI=(e,t)=>t?_S.drop(t.duration):e?_S.snap:_S.fluid,zI=(e,t)=>{if(e)return t?kS.opacity.drop:kS.opacity.combining},jI=e=>null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode;function LI(e){var t,r,n,i,a,o;return"DRAGGING"===e.type?(o=(n=e).dimension.client,{offset:a,combineWith:r,dropping:t}=n,r=Boolean(r),n=jI(n),i=Boolean(t),a=i?IS.drop(a,r):IS.moveTo(a),{position:"fixed",top:o.marginBox.top,left:o.marginBox.left,boxSizing:"border-box",width:o.borderBox.width,height:o.borderBox.height,transition:TI(n,t),transform:a,opacity:zI(r,i),zIndex:i?PI.dropAnimating:PI.dragging,pointerEvents:"none"}):(o=e,{transform:IS.moveTo(o.offset),transition:o.shouldAnimateDisplacement?void 0:"none"})}function UI(e){const t=R1("draggable"),{descriptor:a,registry:r,getDraggableRef:o,canDragInteractiveElements:n,shouldRespectForcePress:i,isEnabled:s}=e,l=q(()=>({canDragInteractiveElements:n,shouldRespectForcePress:i,isEnabled:s}),[n,s,i]),u=H(e=>{var t,r,n,i=o();return i||K(0,"Cannot get dimension when no ref is set"),[i,e,t=Ok]=[a,i,e],r=window.getComputedStyle(e),n=e.getBoundingClientRect(),n=ek(n,r),t=Qw(n,t),{descriptor:i,placeholder:{client:n,tagName:e.tagName.toLowerCase(),display:r.display},displaceBy:{x:n.marginBox.width,y:n.marginBox.height},client:n,page:t}},[a,o]),c=q(()=>({uniqueId:t,descriptor:a,options:l,getDimension:u}),[a,u,l,t]),d=(0,G.useRef)(c),p=(0,G.useRef)(!0);$1(()=>(r.draggable.register(d.current),()=>r.draggable.unregister(d.current)),[r.draggable]),$1(()=>{var e;p.current?p.current=!1:(e=d.current,d.current=c,r.draggable.update(c,e))},[c,r.draggable])}var RI=G.default.createContext(null);function MI(e){e&&D1(e)||K(0,`
    provided.innerRef has not been provided with a HTMLElement.

    You can find a guide on using the innerRef callback functions at:
    https://github.com/hello-pangea/dnd/blob/main/docs/guides/using-inner-ref.md
  `)}function BI(e){e=(0,G.useContext)(e);return e||K(0,"Could not find required context"),e}var i=(e,t)=>e===t,FI=e=>{var{combine:e,destination:t}=e;return t?t.droppableId:e?e.droppableId:null},ZI=e=>e.combine?e.combine.draggableId:null,VI=e=>e.at&&"COMBINE"===e.at.type?e.at.combine.draggableId:null;function GI(e=null){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var KI={mapped:{type:"SECONDARY",offset:Ok,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:GI(null)}};var qI=dy(()=>{const r=function(){const s=Fk((e,t)=>({x:e,y:t})),l=Fk((e,t,r=null,n=null,i=null)=>({isDragging:!0,isClone:t,isDropAnimating:Boolean(i),dropAnimation:i,mode:e,draggingOver:r,combineWith:n,combineTargetFor:null})),u=Fk((e,t,r,n,i=null,a=null,o=null)=>({mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:a,mode:t,offset:e,dimension:r,forceShouldAnimate:o,snapshot:l(t,n,i,a,null)}}));return(e,t)=>{var r,n,i,a,o;return Y1(e)?e.critical.draggable.id!==t.draggableId?null:(a=e.current.client.offset,r=e.dimensions.draggables[t.draggableId],n=z_(e.impact),o=VI(e.impact),i=e.forceShouldAnimate,u(s(a.x,a.y),e.movementMode,r,t.isClone,n,o,i)):"DROP_ANIMATING"!==e.phase||(a=e.completed).result.draggableId!==t.draggableId?null:(r=t.isClone,n=e.dimensions.draggables[t.draggableId],i=(o=a.result).mode,t=FI(o),a=ZI(o),o={duration:e.dropDuration,curve:wS.drop,moveTo:e.newHomeClientOffset,opacity:a?kS.opacity.drop:null,scale:a?kS.scale.drop:null},{mapped:{type:"DRAGGING",offset:e.newHomeClientOffset,dimension:n,dropping:o,draggingOver:t,combineWith:a,mode:i,forceShouldAnimate:null,snapshot:l(i,r,t,a,o)}})}}(),n=function(){const s=Fk((e,t)=>({x:e,y:t})),n=Fk(GI),l=Fk((e,t=null,r)=>({mapped:{type:"SECONDARY",offset:e,combineTargetFor:t,shouldAnimateDisplacement:r,snapshot:n(t)}})),u=e=>e?l(Ok,e,!0):null,r=(e,t,r,n)=>{var i=r.displaced.visible[e],a=Boolean(n.inVirtualList&&n.effected[e]),o=Jk(r),o=o&&o.draggableId===e?t:null;return i?a?u(o):(t=r.displacedBy.point,t=s(t.x,t.y),l(t,o,i.shouldAnimate)):a?r.displaced.invisible[e]?null:(t=Pk(n.displacedBy.point),i=s(t.x,t.y),l(i,o,!0)):u(o)};return(e,t)=>{return Y1(e)?e.critical.draggable.id===t.draggableId?null:r(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical):"DROP_ANIMATING"!==e.phase||(e=e.completed).result.draggableId===t.draggableId?null:r(t.draggableId,e.result.draggableId,e.impact,e.afterCritical)}}();return(e,t)=>r(e,t)||n(e,t)||KI},{dropAnimationFinished:gS},null,{context:z1,areStatePropsEqual:i})(e=>{const t=(0,G.useRef)(null),r=H((e=null)=>{t.current=e},[]),n=H(()=>t.current,[]),{contextId:i,dragHandleUsageInstructionsId:a,registry:o}=BI(B1),{type:s,droppableId:l}=BI(RI),u=q(()=>({id:e.draggableId,index:e.index,type:s,droppableId:l}),[e.draggableId,e.index,s,l]),{children:c,draggableId:d,isEnabled:p,shouldRespectForcePress:m,canDragInteractiveElements:f,isClone:h,mapped:g,dropAnimationFinished:v}=e;var b,y,w,k;b=e,y=i,w=n,H1(()=>{function e(e){return`Draggable[id: ${e}]: `}var t=b.draggableId;t||K(0,"Draggable requires a draggableId"),"string"!=typeof t&&K(0,`Draggable requires a [string] draggableId.
      Provided: [type: ${typeof t}] (value: ${t})`),Number.isInteger(b.index)||K(0,e(t)+" requires an integer index prop"),"DRAGGING"!==b.mapped.type&&(MI(w()),b.isEnabled)&&!P1(y,t)&&K(0,e(t)+" Unable to find drag handle")}),k=h,q1(()=>{const e=(0,G.useRef)(k);H1(()=>{k!==e.current&&K(0,"Draggable isClone prop value changed during component life")},[k])}),h||UI(q(()=>({descriptor:u,registry:o,getDraggableRef:n,canDragInteractiveElements:f,shouldRespectForcePress:m,isEnabled:p}),[u,o,n,f,m,p]));const _=q(()=>p?{tabIndex:0,role:"button","aria-describedby":a,"data-rfd-drag-handle-draggable-id":d,"data-rfd-drag-handle-context-id":i,draggable:!1,onDragStart:function(e){e.preventDefault()}}:null,[i,a,d,p]),S=H(e=>{"DRAGGING"===g.type&&g.dropping&&"transform"===e.propertyName&&(0,j0.flushSync)(v)},[v,g]);var I=q(()=>{var e=LI(g),t="DRAGGING"===g.type&&g.dropping?S:void 0;return{innerRef:r,draggableProps:{"data-rfd-draggable-context-id":i,"data-rfd-draggable-id":d,style:e,onTransitionEnd:t},dragHandleProps:_}},[i,_,d,g,S,r]),x=q(()=>({draggableId:u.id,type:u.type,source:{index:u.index,droppableId:u.droppableId}}),[u.droppableId,u.id,u.index,u.type]);return G.default.createElement(G.default.Fragment,null,c(I,g.snapshot,x))});function HI(e){return BI(RI).isUsingCloneFor!==e.draggableId||e.isClone?G.default.createElement(qI,e):null}function JI(e){var t="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,r=Boolean(e.disableInteractiveElementBlocking),n=Boolean(e.shouldRespectForcePress);return G.default.createElement(HI,uk({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:n}))}var my=t=>e=>t===e,WI=my("scroll"),XI=my("auto"),YI=my("visible"),QI=(e,t)=>t(e.overflowX)||t(e.overflowY),ex=e=>{e=window.getComputedStyle(e),e={overflowX:e.overflowX,overflowY:e.overflowY};return QI(e,WI)||QI(e,XI)},tx=e=>{var t,r;return null==e?null:e===document.body?(t=j1(),(r=document.documentElement)||K(),ex(t)&&(t=window.getComputedStyle(r),r={overflowX:t.overflowX,overflowY:t.overflowY},(t=YI)((r=r).overflowX)&&t(r.overflowY)||hk(`
    We have detected that your <body> element might be a scroll container.
    We have found no reliable way of detecting whether the <body> element is a scroll container.
    Under most circumstances a <body> scroll bar will be on the <html> element (document.documentElement)

    Because we cannot determine if the <body> is a scroll container, and generally it is not one,
    we will be treating the <body> as *not* a scroll container

    More information: https://github.com/hello-pangea/dnd/blob/main/docs/guides/how-we-detect-scroll-containers.md
  `)),null):e===document.documentElement?null:ex(e)?e:tx(e.parentElement)},rx=e=>{e&&tx(e.parentElement)&&hk(`
    Droppable: unsupported nested scroll container detected.
    A Droppable can only have one scroll parent (which can be itself)
    Nested scroll containers are currently not supported.

    We hope to support nested scroll containers soon: https://github.com/atlassian/react-beautiful-dnd/issues/131
  `)},nx=e=>({x:e.scrollLeft,y:e.scrollTop}),ix=e=>{return!!e&&("fixed"===window.getComputedStyle(e).position||ix(e.parentElement))},ax=e=>{return{closestScrollable:tx(e),isFixedOnPage:ix(e)}},ox=({ref:e,descriptor:t,env:r,windowScroll:n,direction:i,isDropDisabled:a,isCombineEnabled:o,shouldClipSubject:s})=>{const l=r.closestScrollable;p=l,f=tk(e=e);var u,c,d,p=!p||e!==p?f:(e=f.paddingBox.top-p.scrollTop,u=f.paddingBox.left-p.scrollLeft,m=e+p.scrollHeight,p=u+p.scrollWidth,e=Xw({top:e,right:p,bottom:m,left:u},f.border),ik({borderBox:e,margin:f.margin,border:f.border,padding:f.padding})),m=Qw(p,n),f=l?(u=tk(l),e={scrollHeight:l.scrollHeight,scrollWidth:l.scrollWidth},{client:u,page:Qw(u,n),scroll:nx(l),scrollSize:e,shouldClipSubject:s}):null;return{descriptor:n,isEnabled:e,isCombineEnabled:s,isFixedOnPage:t,direction:a,client:o,page:r,closest:i}=[{descriptor:t,isEnabled:!a,isCombineEnabled:o,isFixedOnPage:r.isFixedOnPage,direction:i,client:p,page:m,closest:f}][0],c=i?({scrollSize:d,client:c}=i,p=qS({scrollHeight:d.scrollHeight,scrollWidth:d.scrollWidth,height:c.paddingBox.height,width:c.paddingBox.width}),{pageMarginBox:i.page.marginBox,frameClient:c,scrollSize:d,shouldClipSubject:i.shouldClipSubject,scroll:{initial:i.scroll,current:i.scroll,max:p,diff:{value:Ok,displacement:Ok}}}):null,{descriptor:n,isCombineEnabled:s,isFixedOnPage:t,axis:d="vertical"===a?i_:a_,isEnabled:e,client:o,page:r,frame:c,subject:Mk({page:r,withPlaceholder:null,axis:d,frame:c})}},sx={passive:!1},lx={passive:!0},ux=e=>e.shouldPublishImmediately?sx:lx,cx=e=>e&&e.env.closestScrollable||null;function dx(){}var px={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},mx=({isAnimatingOpenOnMount:e,placeholder:t,animate:r})=>e||"close"===r?px:{height:t.client.borderBox.height,width:t.client.borderBox.width,margin:t.client.margin},fx=G.default.memo(e=>{const t=(0,G.useRef)(null),r=H(()=>{t.current&&(clearTimeout(t.current),t.current=null)},[]),{animate:n,onTransitionEnd:i,onClose:a,contextId:o}=e,[s,l]=(0,G.useState)("open"===e.animate);(0,G.useEffect)(()=>s?"open"!==n?(r(),l(!1),dx):t.current?dx:(t.current=setTimeout(()=>{t.current=null,l(!1)}),r):dx,[n,s,r]);var u=H(e=>{"height"===e.propertyName&&(i(),"close"===n)&&a()},[n,a,i]),c=(({isAnimatingOpenOnMount:e,placeholder:t,animate:r})=>{e=mx({isAnimatingOpenOnMount:e,placeholder:t,animate:r});return{display:t.display,boxSizing:"border-box",width:e.width,height:e.height,marginTop:e.margin.top,marginRight:e.margin.right,marginBottom:e.margin.bottom,marginLeft:e.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?_S.placeholder:null}})({isAnimatingOpenOnMount:s,animate:e.animate,placeholder:e.placeholder});return G.default.createElement(e.placeholder.tagName,{style:c,"data-rfd-placeholder-context-id":o,onTransitionEnd:u,ref:e.innerRef})});function hx(e){return"boolean"==typeof e}function gx(t,e){e.forEach(e=>e(t))}var vx=[function({props:e}){e.droppableId||K(0,"A Droppable requires a droppableId prop"),"string"!=typeof e.droppableId&&K(0,`A Droppable requires a [string] droppableId. Provided: [${typeof e.droppableId}]`)},function({props:e}){hx(e.isDropDisabled)||K(0,"isDropDisabled must be a boolean"),hx(e.isCombineEnabled)||K(0,"isCombineEnabled must be a boolean"),hx(e.ignoreContainerClipping)||K(0,"ignoreContainerClipping must be a boolean")},function({getDroppableRef:e}){MI(e())}],bx=[function({props:e,getPlaceholderRef:t}){e.placeholder&&!t()&&hk(`
      Droppable setup issue [droppableId: "${e.droppableId}"]:
      DroppableProvided > placeholder could not be found.

      Please be sure to add the {provided.placeholder} React Node as a child of your Droppable.
      More information: https://github.com/hello-pangea/dnd/blob/main/docs/api/droppable.md
    `)}],yx=[function({props:e}){e.renderClone||K(0,"Must provide a clone render function (renderClone) for virtual lists")},function({getPlaceholderRef:e}){e()&&K(0,"Expected virtual list to not have a placeholder")}];var wx=class extends G.default.PureComponent{constructor(...e){super(...e),this.state={isVisible:Boolean(this.props.on),data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{"close"===this.state.animate&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}}render(){var e;return this.state.isVisible?(e={onClose:this.onClose,data:this.state.data,animate:this.state.animate},this.props.children(e)):null}};var kx={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||K(0,"document.body is not ready"),document.body}},_x=e=>{let t={...e},r;for(r in kx)void 0===e[r]&&(t={...t,[r]:kx[r]});return t},Sx=(e,t)=>e===t.droppable.type,Ix=(e,t)=>t.draggables[e.draggable.id],xx=dy(()=>{const s={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},l={...s,shouldAnimatePlaceholder:!1},u=Fk(e=>({draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}})),c=Fk((e,t,r,n,i,a)=>{var o=i.descriptor.id;return i.descriptor.droppableId===e?(e=a?{render:a,dragging:u(i.descriptor)}:null,{placeholder:i.placeholder,shouldAnimatePlaceholder:!1,snapshot:{isDraggingOver:r,draggingOverWith:r?o:null,draggingFromThisWith:o,isUsingPlaceholder:!0},useClone:e}):t?n?{placeholder:i.placeholder,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:r,draggingOverWith:o,draggingFromThisWith:null,isUsingPlaceholder:!0},useClone:null}:s:l});return(e,t)=>{var r,n,t=_x(t),i=t.droppableId,a=t.type,o=!t.isDropDisabled,t=t.renderClone;return Y1(e)?(n=e.critical,Sx(a,n)?(n=Ix(n,e.dimensions),r=z_(e.impact)===i,c(i,o,r,r,n,t)):l):"DROP_ANIMATING"===e.phase?(r=e.completed,Sx(a,r.critical)?(n=Ix(r.critical,e.dimensions),c(i,o,FI(r.result)===i,z_(r.impact)===i,n,t)):l):"IDLE"===e.phase&&e.completed&&!e.shouldFlush&&(o=e.completed,Sx(a,o.critical))?(r=z_(o.impact)===i,n=Boolean(o.impact.at&&"COMBINE"===o.impact.at.type),t=o.critical.droppable.id===i,r?n?s:l:t?s:l):l}},{updateViewportMaxScroll:e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e})},(e,t,r)=>({..._x(r),...e,...t}),{context:z1,areStatePropsEqual:i})(e=>{var t=(0,G.useContext)(B1);t||K(0,"Could not find app context");const{contextId:n,isMovementAllowed:r}=t,i=(0,G.useRef)(null),a=(0,G.useRef)(null),{children:j,droppableId:o,type:s,mode:L,direction:U,ignoreContainerClipping:R,isDropDisabled:M,isCombineEnabled:B,snapshot:F,useClone:l,updateViewportMaxScroll:u,getContainerForClone:Z}=e;t=H(()=>i.current,[]);const c=H((e=null)=>{i.current=e},[]);var d,p=H(()=>a.current,[]);const m=H((e=null)=>{a.current=e},[]),f=(d={props:e,getDroppableRef:t,getPlaceholderRef:p},H1(()=>{gx(d,vx),"standard"===d.props.mode&&gx(d,bx),"virtual"===d.props.mode&&gx(d,yx)}),H(()=>{r()&&u({maxScroll:JS()})},[r,u]));{var h={droppableId:o,type:s,mode:L,direction:U,isDropDisabled:M,isCombineEnabled:B,ignoreContainerClipping:R,getDroppableRef:t};const v=(0,G.useRef)(null),b=BI(B1),y=R1("droppable"),{registry:w,marshal:k}=b,_=W1(h),S=q(()=>({id:h.droppableId,type:h.type,mode:h.mode}),[h.droppableId,h.mode,h.type]),I=(0,G.useRef)(S),x=q(()=>Fk((e,t)=>{v.current||K(0,"Can only update scroll when dragging");e={x:e,y:t};k.updateDroppableScroll(S.id,e)}),[S.id,k]),$=H(()=>{var e=v.current;return e&&e.env.closestScrollable?nx(e.env.closestScrollable):Ok},[]),E=H(()=>{var e=$();x(e.x,e.y)},[$,x]),C=q(()=>lk(E),[E]),O=H(()=>{var e=v.current,t=cx(e),t=(e&&t||K(0,"Could not find scroll options while scrolling"),e.scrollOptions);(t.shouldPublishImmediately?E:C)()},[C,E]),N=H((e,t)=>{v.current&&K(0,"Cannot collect a droppable while a drag is occurring");var r=_.current,n=r.getDroppableRef(),i=(n||K(0,"Cannot collect without a droppable ref"),ax(n)),t={ref:n,descriptor:S,env:i,scrollOptions:t},n=(v.current=t,ox({ref:n,descriptor:S,env:i,windowScroll:e,direction:r.direction,isDropDisabled:r.isDropDisabled,isCombineEnabled:r.isCombineEnabled,shouldClipSubject:!r.ignoreContainerClipping})),e=i.closestScrollable;return e&&(e.setAttribute(_1.contextId,b.contextId),e.addEventListener("scroll",O,ux(t.scrollOptions)),rx(e)),n},[b.contextId,S,O,_]),A=H(()=>{var e=v.current,t=cx(e);return e&&t||K(0,"Can only recollect Droppable client for Droppables that have a scroll container"),nx(t)},[]),D=H(()=>{var e=v.current,t=(e||K(0,"Cannot stop drag when no active drag"),cx(e));v.current=null,t&&(C.cancel(),t.removeAttribute(_1.contextId),t.removeEventListener("scroll",O,ux(e.scrollOptions)))},[O,C]),P=H(e=>{var t=v.current,t=(t||K(0,"Cannot scroll when there is no drag"),cx(t));t||K(0,"Cannot scroll a droppable with no closest scrollable"),t.scrollTop+=e.y,t.scrollLeft+=e.x},[]),T=q(()=>({getDimensionAndWatchScroll:N,getScrollWhileDragging:A,dragStopped:D,scroll:P}),[D,N,A,P]),z=q(()=>({uniqueId:y,descriptor:S,callbacks:T}),[T,S,y]);$1(()=>(I.current=z.descriptor,w.droppable.register(z),()=>{v.current&&(hk("Unsupported: changing the droppableId or type of a Droppable during a drag"),D()),w.droppable.unregister(z)}),[T,S,D,z,k,w.droppable]),$1(()=>{v.current&&k.updateDroppableIsEnabled(I.current.id,!h.isDropDisabled)},[h.isDropDisabled,k]),$1(()=>{v.current&&k.updateDroppableIsCombineEnabled(I.current.id,h.isCombineEnabled)},[h.isCombineEnabled,k])}const g=q(()=>G.default.createElement(wx,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},({onClose:e,data:t,animate:r})=>G.default.createElement(fx,{placeholder:t,onClose:e,innerRef:m,animate:r,contextId:n,onTransitionEnd:f})),[n,f,e.placeholder,e.shouldAnimatePlaceholder,m]);p=q(()=>({innerRef:c,placeholder:g,droppableProps:{"data-rfd-droppable-id":o,"data-rfd-droppable-context-id":n}}),[n,o,g,c]);const V=l?l.dragging.draggableId:null;t=q(()=>({droppableId:o,type:s,isUsingCloneFor:V}),[o,V,s]);return G.default.createElement(RI.Provider,{value:t},j(p,F),function(){if(!l)return null;const{dragging:r,render:n}=l;var e=G.default.createElement(HI,{draggableId:r.draggableId,index:r.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(e,t)=>n(e,t,r));return j0.default.createPortal(e,Z())}())}),$x=r(h()),Ex=i=>{const a=getComputedStyle(document.body).getPropertyValue("--spice-button-disabled");return $x.default.createElement(DI,{onDragEnd:e=>{var t,{source:e,destination:r}=e;r&&(t=i.modalConfig.tabs,e=e.index,r=r.index,[e]=(t=Array.from(t)).splice(e,1),t.splice(r,0,e),i.modalConfig.tabs=t,E.setItem(x.tabs,JSON.stringify(i.modalConfig.tabs)),i.updateConfig(i.modalConfig))}},$x.default.createElement(xx,{droppableId:"droppable",direction:"horizontal"},e=>$x.default.createElement("div",{ref:e.innerRef,style:{display:"flex",paddingTop:8,paddingBottom:8,gap:8},...e.droppableProps},i.modalConfig.tabs.map((n,e)=>$x.default.createElement(JI,{key:n.name,draggableId:n.name,index:e},(e,t)=>{return $x.default.createElement("div",{ref:e.innerRef,...e.draggableProps,style:(t.isDragging,t=e.draggableProps.style,{borderRadius:"5px",border:(r=n.enabled)?"2px solid "+a:"2px solid red",userSelect:"none",paddingTop:12,paddingBottom:12,width:"110px",display:"flex",alignItems:"center",justifyContent:"center",textDecoration:r?"none":"line-through",cursor:"pointer",...t})},$x.default.createElement("div",{className:"dnd-box",...e.dragHandleProps,onClick:()=>{return t=n.name,e=i.modalConfig.tabs.map(e=>e.name===t?{...e,enabled:!e.enabled}:e),i.modalConfig.tabs=e,E.setItem(x.tabs,JSON.stringify(i.modalConfig.tabs)),void i.updateConfig(i.modalConfig);var t,e}},$x.default.createElement("svg",{className:"dnd-icon",fill:"currentColor",width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg","aria-label":"Drag icon",role:"img"},$x.default.createElement("path",{"fill-rule":"evenodd",d:"M7.375 3.67c0-.645-.56-1.17-1.25-1.17s-1.25.525-1.25 1.17c0 .646.56 1.17 1.25 1.17s1.25-.524 1.25-1.17zm0 8.66c0-.646-.56-1.17-1.25-1.17s-1.25.524-1.25 1.17c0 .645.56 1.17 1.25 1.17s1.25-.525 1.25-1.17zm-1.25-5.5c.69 0 1.25.525 1.25 1.17 0 .645-.56 1.17-1.25 1.17S4.875 8.645 4.875 8c0-.645.56-1.17 1.25-1.17zm5-3.16c0-.645-.56-1.17-1.25-1.17s-1.25.525-1.25 1.17c0 .646.56 1.17 1.25 1.17s1.25-.524 1.25-1.17zm-1.25 7.49c.69 0 1.25.524 1.25 1.17 0 .645-.56 1.17-1.25 1.17s-1.25-.525-1.25-1.17c0-.646.56-1.17 1.25-1.17zM11.125 8c0-.645-.56-1.17-1.25-1.17s-1.25.525-1.25 1.17c0 .645.56 1.17 1.25 1.17s1.25-.525 1.25-1.17z"})),"Extensions"===n.name?"Extens.":n.name));var r})),e.placeholder)))},Cx=async()=>{const e=new MutationObserver(async()=>{var t;document.querySelector(".GenericModal[aria-label='Settings']")||(t=100,await new Promise(e=>setTimeout(e,t)),Fx("BACKUP"),e.disconnect())});e.observe(document.body,{childList:!0,subtree:!0}),Spicetify.PopupModal.hide()},Ox=({CONFIG:e,updateAppConfig:t})=>{const[r,n]=d.default.useState({...e}),[i,a]=d.default.useState(w("settings.versionBtn"));var e=e=>{t({...e}),n({...e})},o=document.querySelector("body > generic-modal button.main-trackCreditsModal-closeBtn");const s=document.querySelector("body > generic-modal > div");o&&s&&(o.onclick=()=>location.reload(),o.setAttribute("style","cursor: pointer;"),s.onclick=e=>{e.target===s&&location.reload()});o=T(x.albumArtBasedColor)?d.default.createElement(d.default.Fragment,null,d.default.createElement(z0,{name:w("settings.albumArtBasedColorsMode"),storageKey:"albumArtBasedColorsMode",modalConfig:r,updateConfig:e,type:"dropdown",options:["monochromeDark","monochromeLight","analogicComplement","analogic","triad","quad"],description:w("settings.albumArtColorsModeToolTip")}),d.default.createElement(z0,{name:w("settings.albumArtBasedColorsVibrancy"),storageKey:"albumArtBasedColorsVibrancy",modalConfig:r,updateConfig:e,type:"dropdown",options:["desaturated","lightVibrant","prominent","vibrant"],description:w("settings.albumArtBasedColorsVibrancyToolTip")})):null;return d.default.createElement("div",{id:"marketplace-config-container"},d.default.createElement("div",{className:"settings-block-top"},d.default.createElement("h2",{className:"settings-heading"},w("settings.optionsHeading")),d.default.createElement(z0,{name:w("settings.starCountLabel"),storageKey:"stars",modalConfig:r,updateConfig:e}),d.default.createElement(z0,{name:w("settings.tagsLabel"),storageKey:"tags",modalConfig:r,updateConfig:e}),d.default.createElement(z0,{name:w("settings.showArchived"),storageKey:"showArchived",modalConfig:r,updateConfig:e}),d.default.createElement(z0,{name:w("settings.devToolsLabel"),storageKey:"themeDevTools",modalConfig:r,updateConfig:e}),d.default.createElement(z0,{name:w("settings.hideInstalledLabel"),storageKey:"hideInstalled",modalConfig:r,updateConfig:e}),d.default.createElement(z0,{name:w("settings.colourShiftLabel"),storageKey:"colorShift",modalConfig:r,updateConfig:e}),d.default.createElement(z0,{name:w("settings.albumArtBasedColors"),storageKey:"albumArtBasedColors",modalConfig:r,updateConfig:e}),o),d.default.createElement("div",{className:"settings-block"},d.default.createElement("h2",{className:"settings-heading"},w("settings.tabsHeading")),d.default.createElement(Ex,{modalConfig:r,updateConfig:e}),d.default.createElement("p",{className:"settings-tabs-description"},"(",w("settings.tabsDescription"),")")),d.default.createElement("div",{className:"settings-block"},d.default.createElement("h2",{className:"settings-heading"},w("settings.resetHeading")),d.default.createElement("div",{className:"settings-row"},d.default.createElement("span",{className:"col description"},w("settings.resetDescription")),d.default.createElement("div",{className:"col action"},d.default.createElement(g0,{onClick:()=>{Fy()}},w("settings.resetBtn"))))),d.default.createElement("div",{className:"settings-block"},d.default.createElement("h2",{className:"settings-heading"},w("settings.backupHeading")),d.default.createElement("div",{className:"settings-row"},d.default.createElement("span",{className:"col description"},w("settings.backupLabel")),d.default.createElement("div",{className:"col action"},d.default.createElement(g0,{onClick:Cx},w("settings.backupBtn"))))),d.default.createElement("div",{className:"settings-block-bottom"},d.default.createElement("div",{className:"settings-row"},d.default.createElement("span",{className:"col description"},w("grid.spicetifyMarketplace")," ",w("settings.versionHeading")," ",cr),d.default.createElement("div",{className:"col action"},d.default.createElement(g0,{onClick:()=>{Spicetify.Platform.ClipboardAPI.copy(cr),a(w("settings.versionCopied")),setTimeout(()=>a(w("settings.versionBtn")),3e3)},classes:["small"]},i)))))},Nx=r(je()),Ax=r(h()),Dx=r(Le()),Px=(Me=Prism,e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,Me.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+e.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},Me.languages.css.atrule.inside.rest=Me.languages.css,(e=Me.languages.markup)&&(e.tag.addInlined("style","css"),e.tag.addAttribute("style","css")),n=>{var e="marketplace-customCSS-preview";const[i,t]=Ax.default.useState("ADD_SNIPPET"!==n.type&&n.content?.item.code||""),[r,a]=Ax.default.useState("ADD_SNIPPET"!==n.type&&n.content?.item.title||""),[o,s]=Ax.default.useState("ADD_SNIPPET"!==n.type&&n.content?.item.description||""),[l,u]=Ax.default.useState("ADD_SNIPPET"!==n.type&&n.content?.item.imageURL||""),c=()=>r.replace(/\n/g,"").replaceAll(" ","-");const d="marketplace:installed:snippet:"+c(),[p,m]=Ax.default.useState(!!T(d));const f=Ax.default.useRef(null);return Ax.default.createElement("div",{id:"marketplace-add-snippet-container"},Ax.default.createElement("div",{className:"marketplace-customCSS-input-container"},Ax.default.createElement("label",{htmlFor:"marketplace-custom-css"},w("snippets.customCSS")),Ax.default.createElement("div",{className:"marketplace-code-editor-wrapper marketplace-code-editor"},Ax.default.createElement(Dx.default,{value:i,onValueChange:e=>t(e),highlight:e=>(0,Nx.highlight)(e,Nx.languages.css),textareaId:"marketplace-custom-css",textareaClassName:"snippet-code-editor",readOnly:"VIEW_SNIPPET"===n.type,placeholder:w("snippets.customCSSPlaceholder"),style:{}}))),Ax.default.createElement("div",{className:"marketplace-customCSS-input-container"},Ax.default.createElement("label",{htmlFor:"marketplace-customCSS-name-submit"},w("snippets.snippetName")),Ax.default.createElement("input",{id:"marketplace-customCSS-name-submit",className:"marketplace-code-editor",value:r,onChange:e=>{"VIEW_SNIPPET"!==n.type&&a(e.target.value)},placeholder:w("snippets.snippetNamePlaceholder")})),Ax.default.createElement("div",{className:"marketplace-customCSS-input-container"},Ax.default.createElement("label",{htmlFor:"marketplace-customCSS-description-submit"},w("snippets.snippetDesc")),Ax.default.createElement("input",{id:"marketplace-customCSS-description-submit",className:"marketplace-code-editor",value:o,onChange:e=>{"VIEW_SNIPPET"!==n.type&&s(e.target.value)},placeholder:w("snippets.snippetDescPlaceholder")})),Ax.default.createElement("div",{className:"marketplace-customCSS-input-container"},Ax.default.createElement("label",{htmlFor:e},w("snippets.snippetPreview")," ","VIEW_SNIPPET"!==n.type&&`(${w("snippets.optional")})`),l&&Ax.default.createElement("label",{htmlFor:e,style:{textAlign:"center"}},Ax.default.createElement("img",{className:"marketplace-customCSS-image-preview",src:l,alt:"Preview"}))),"VIEW_SNIPPET"!==n.type&&Ax.default.createElement(Ax.default.Fragment,null,Ax.default.createElement(g0,{onClick:()=>{f.current?.click()}},l.length?w("snippets.changeImage"):w("snippets.addImage"),Ax.default.createElement("input",{id:e,type:"file",style:{display:"none"},ref:f,onChange:async e=>{if(e.target.files?.[0])try{n=e.target.files?.[0];var t=await new Promise((e,t)=>{const r=new FileReader;r.readAsDataURL(n),r.onload=()=>{e(r.result)},r.onerror=e=>{t(e)}});t&&u(t)}catch(e){console.error(e)}var n}})),Ax.default.createElement(g0,{onClick:async()=>{var e,t=c(),r=o.trim();p&&"EDIT_SNIPPET"!==n.type?Spicetify.showNotification(w("snippets.duplicateName"),!0):(console.debug("Installing snippet: "+t),n.content&&n.content.item.title!==t&&(console.debug("Deleting outdated snippet: "+n.content.item.title),await E.removeItemAsync("marketplace:installed:snippet:"+n.content.item.title),e=T(x.installedSnippets,[]).filter(e=>e!=="marketplace:installed:snippet:"+n.content?.item.title),await E.setItemAsync(x.installedSnippets,JSON.stringify(e))),await E.setItemAsync(d,JSON.stringify({title:t,code:i,description:r,imageURL:l,custom:!0})),-1===(e=T(x.installedSnippets,[])).indexOf(d)&&(e.push(d),await E.setItemAsync(x.installedSnippets,JSON.stringify(e))),t=e.map(e=>T(e)),Ly(t),Spicetify.PopupModal.hide(),"EDIT_SNIPPET"===n.type&&location.reload())},disabled:!c()||!i.replace(/\n/g,"\\n")},w("snippets.saveCSS"))),"VIEW_SNIPPET"===n.type&&Ax.default.createElement(g0,{onClick:()=>{n.callback?.(),m(!p)}},p?w("remove"):w("install")))}),Tx=r(je()),zx=r(h()),jx=r(Le());function Lx(e){return"object"==typeof e&&null!==e&&"schemes"in e&&"object"==typeof e.schemes&&null!==e.schemes}function Ux(){var e=E.getItem(x.themeInstalled),t=e?T(e):null;return{themeKey:Lx(t)?e:null,themeManifest:Lx(t)?t:null}}Prism.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/};var Rx=()=>{const[e,r]=zx.default.useState(null),[t,n]=zx.default.useState(w("devTools.noThemeInstalled"));return zx.default.useEffect(()=>{let t=!0;return av().then(()=>{var e;t&&(e=Ux(),r(e.themeManifest),n(e.themeManifest?(e=>{let t="";for(const r in e)if(Object.hasOwn(e,r))if("object"==typeof e[r]){t+=`[${r}]
`;for(const n in e[r])Object.hasOwn(e[r],n)&&(t+=`${n}=${e[r][n]}
`)}else t+=`${r}=${e[r]}
`;return t})(e.themeManifest.schemes):w("devTools.noThemeInstalled")))}),()=>{t=!1}},[]),zx.default.createElement("div",{id:"marketplace-theme-dev-tools-container",className:"marketplace-theme-dev-tools-container"},zx.default.createElement("div",{className:"devtools-column"},zx.default.createElement("label",{htmlFor:"color-ini-editor"},zx.default.createElement("h2",{className:"devtools-heading"},w("devTools.colorIniEditor"))),zx.default.createElement("div",{className:"marketplace-code-editor-wrapper marketplace-code-editor"},zx.default.createElement(jx.default,{value:t,onValueChange:e=>n(e),highlight:e=>(0,Tx.highlight)(e,Tx.languages.ini),textareaId:"color-ini-editor",textareaClassName:"color-ini-editor",readOnly:!e,placeholder:w("devTools.colorIniEditorPlaceholder"),style:{fontFamily:"monospace",resize:"none"}})),zx.default.createElement(g0,{onClick:()=>{(async e=>{await av();const{themeKey:t,themeManifest:r}=Ux();if(t&&r){r.schemes=jy(e);E.setItem(t,JSON.stringify(r))}else Spicetify.showNotification(w("devTools.noThemeManifest"),true)})(t)}},w("save"))),zx.default.createElement("div",{className:"devtools-column"},zx.default.createElement("h2",{className:"devtools-heading"},w("devTools.invalidCSS")),zx.default.createElement("div",{className:"marketplace-code-editor-wrapper marketplace-code-editor"},function(){var e=document.querySelector("body > style.marketplaceCSS.marketplaceUserCSS")?.innerHTML;if(!e)return["Error: Class name list not found; please create an issue"];var r=[];for(const a of e.matchAll(/.-?[_a-zA-Z]+[_a-zA-Z0-9-]*\s*{/g)){var n=a[0].replace(/{/g,"").trim(),i=n.split(" ");let t;for(let e=0;e<i.length;e++){try{t=document.querySelector(""+i[e])}catch{t=document.getElementsByClassName(""+n)}t||r.push(n)}}return r}().map((e,t)=>zx.default.createElement("div",{key:t,className:"invalid-css-text"},e)))))},Mx=r(h());var Bx=function(){const[e,t]=Mx.default.useState(null);return Mx.default.useEffect(()=>{!async function(){try{var{body:e,tag_name:t,message:r}=await(await fetch(hr)).json();return e&&t&&!r?{version:t.replace("v",""),changelog:await qy(e.match(/## What's Changed([\s\S]*?)(\r\n\r|\n\n##)/)[1],"spicetify","marketplace")}:null}catch(e){return console.error(e),null}}().then(e=>t(e))},[]),Mx.default.createElement("div",{id:"marketplace-update-container"},Mx.default.createElement("div",{id:"marketplace-update-description"},Mx.default.createElement("h4",null,w("updateModal.description")),Mx.default.createElement("a",{href:fr+"/tag/v"+cr},w("updateModal.currentVersion",{version:cr})),Mx.default.createElement("a",{href:fr+"/tag/v"+e?.version},w("updateModal.latestVersion",{version:e?.version}))),Mx.default.createElement("hr",null),Mx.default.createElement("div",{id:"marketplace-update-whats-changed"},Mx.default.createElement("h3",{className:"marketplace-update-header"},w("updateModal.whatsChanged")),Mx.default.createElement("details",null,Mx.default.createElement("summary",null,w("updateModal.seeChangelog")),Mx.default.createElement("ul",{dangerouslySetInnerHTML:{__html:e?.changelog??""}}))),Mx.default.createElement("hr",null),Mx.default.createElement("div",{id:"marketplace-update-guide"},Mx.default.createElement("h3",{className:"marketplace-update-header"},w("updateModal.howToUpgrade")),Mx.default.createElement("a",{href:"https://github.com/spicetify/marketplace/wiki/Installation"},w("updateModal.viewGuide"))))},Fx=(e,t,r,n,i)=>{e=((e,t,r,n,i)=>{switch(e){case"ADD_SNIPPET":return{title:w("snippets.addTitle"),content:u0.default.createElement(Px,{type:e}),isLarge:!0};case"EDIT_SNIPPET":return{title:w("snippets.editTitle"),content:u0.default.createElement(Px,{type:e,content:n}),isLarge:!0};case"VIEW_SNIPPET":return{title:w("snippets.viewTitle"),content:u0.default.createElement(Px,{type:e,content:n,callback:i}),isLarge:!0};case"RELOAD":return{title:w("reloadModal.title"),content:u0.default.createElement(y0,null),isLarge:!1};case"SETTINGS":return{title:w("settings.title"),content:u0.default.createElement(Ox,{CONFIG:t,updateAppConfig:r}),isLarge:!0};case"THEME_DEV_TOOLS":return{title:w("devTools.title"),content:u0.default.createElement(Rx,null),isLarge:!0};case"BACKUP":return{title:w("backupModal.title"),content:u0.default.createElement(v0,null),isLarge:!0};case"UPDATE":return{title:w("updateModal.title"),content:u0.default.createElement(Bx,null),isLarge:!0};default:return{title:"",content:u0.default.createElement("div",null),isLarge:!1}}})(e,t,r,n,i),Spicetify.PopupModal.display(e)},Zx=r(h()),Vx=r(h()),Gx=()=>Vx.default.createElement("svg",{role:"img",width:"16",height:"16",viewBox:"0 0 512 512","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg"},Vx.default.createElement("path",{d:"M480 352h-133.5l-45.25 45.25C289.2 409.3 273.1 416 256 416s-33.16-6.656-45.25-18.75L165.5 352H32c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h448c17.67 0 32-14.33 32-32v-96C512 366.3 497.7 352 480 352zM432 456c-13.2 0-24-10.8-24-24c0-13.2 10.8-24 24-24s24 10.8 24 24C456 445.2 445.2 456 432 456zM233.4 374.6C239.6 380.9 247.8 384 256 384s16.38-3.125 22.62-9.375l128-128c12.49-12.5 12.49-32.75 0-45.25c-12.5-12.5-32.76-12.5-45.25 0L288 274.8V32c0-17.67-14.33-32-32-32C238.3 0 224 14.33 224 32v242.8L150.6 201.4c-12.49-12.5-32.75-12.5-45.25 0c-12.49 12.5-12.49 32.75 0 45.25L233.4 374.6z",fill:"currentColor"})),Kx=r(h()),qx=()=>Kx.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",role:"img","aria-label":"GitHub Icon"},Kx.default.createElement("path",{d:"M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z",fill:"currentColor"})),Hx=r(h()),Jx=()=>Hx.default.createElement("svg",{role:"img",width:"16",height:"16",viewBox:"0 0 448 512","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg"},Hx.default.createElement("path",{d:"M53.21 467c1.562 24.84 23.02 45 47.9 45h245.8c24.88 0 46.33-20.16 47.9-45L416 128H32L53.21 467zM432 32H320l-11.58-23.16c-2.709-5.42-8.25-8.844-14.31-8.844H153.9c-6.061 0-11.6 3.424-14.31 8.844L128 32H16c-8.836 0-16 7.162-16 16V80c0 8.836 7.164 16 16 16h416c8.838 0 16-7.164 16-16V48C448 39.16 440.8 32 432 32z",fill:"currentColor"})),Wx=r(h()),Xx=e=>{return Wx.default.createElement("div",{className:"marketplace-card__authors"},e.authors.map(e=>Wx.default.createElement("a",{title:e.name,className:"marketplace-card__author",href:e.url,draggable:"false",dir:"auto",target:"_blank",rel:"noopener noreferrer",onClick:e=>e.stopPropagation(),key:e.name+e.url},e.name)))},Yx=r(h()),Qx=n=>{const[e,t]=Yx.default.useState(!1),i={[w("grid.externalJS")]:"external JS",[w("grid.archived")]:"archived",[w("grid.dark")]:"dark",[w("grid.light")]:"light"};var r=e=>{return e.filter((e,t,r)=>r.indexOf(e)===t).reduce((e,t)=>{var r=i[t]||t;return!n.showTags&&t!==w("grid.externalJS")&&t!==w("grid.archived")||e.push(Yx.default.createElement("li",{className:"marketplace-card__tag",draggable:!1,"data-tag":r},t)),e},[])};let a=[...n.tags??[]].sort(e=>e===w("grid.externalJS")||e===w("grid.archived")?-1:1),o=[];return 1<a.length-4&&(o=n.tags.slice(4),a=a.slice(0,4)),Yx.default.createElement("div",{className:"marketplace-card__tags-container"},Yx.default.createElement("ul",{className:"marketplace-card__tags"},r(a),o.length&&e?r(o):null),o.length&&!e?Yx.default.createElement("button",{className:"marketplace-card__tags-more-btn",onClick:e=>{e.stopPropagation(),t(!0)}},"..."):null)},e$=window.Spicetify;function t$(e){if(!e)return[];try{var t=JSON.parse(e);return Array.isArray(t)?t.filter(e=>"string"==typeof e):[]}catch{return[]}}var r$=Promise.resolve();function n$(e){e=r$.then(e);return r$=e.then(()=>{},()=>{}),e}var i$=class extends Zx.default.Component{tags;menuType;localStorageKey;key=null;type=i$;constructor(e){super(e),this.menuType=e$.ReactComponent.Menu,this.localStorageKey=Hy(e),Object.assign(this,e),this.tags=e.item.tags||[],e.item.include&&this.tags.push(w("grid.externalJS")),e.item.archived&&this.tags.push(w("grid.archived")),this.state={installed:null!==E.getItem(this.localStorageKey),stars:this.props.item.stars||0,tagsExpanded:!1,externalUrl:this.props.item.user&&this.props.item.repo?`https://github.com/${this.props.item.user}/`+this.props.item.repo:"",lastUpdated:this.props.item.user&&this.props.item.repo?this.props.item.lastUpdated:void 0,created:this.props.item.user&&this.props.item.repo?this.props.item.created:void 0}}isInstalled(){return null!==E.getItem(this.localStorageKey)}handleOperationError(e){console.error(`Failed to update ${this.props.type} "${this.props.item.title}"`,e),e$.showNotification(w("notifications.marketplaceOperationError"),!0)}async componentDidMount(){try{await this.refreshInstalledItem()}catch(e){this.handleOperationError(e)}}async refreshInstalledItem(){if("Installed"===this.props.CONFIG.activeTab&&"snippet"!==this.props.type){var e=`https://api.github.com/repos/${this.props.item.user}/`+this.props.item.repo,{stargazers_count:e,pushed_at:t}=await fetch(e).then(e=>e.json());if(this.state.stars!==e&&this.props.CONFIG.visual.stars&&console.debug("Stars updated to: "+e),this.state.lastUpdated!==t)switch(console.debug("New update pushed at: "+t),this.props.type){case"extension":await this.installExtension();break;case"theme":await this.installTheme(!0)}}}async buttonClicked(){try{await this.performButtonAction()}catch(e){this.handleOperationError(e)}}async performButtonAction(){"extension"===this.props.type?(this.isInstalled()?(console.debug("Extension already installed, removing"),await this.removeExtension()):await this.installExtension(),Fx("RELOAD")):"theme"===this.props.type?await this.toggleTheme()&&Fx("RELOAD"):"app"===this.props.type?window.open(this.state.externalUrl,"_blank"):"snippet"===this.props.type?this.isInstalled()?(console.debug("Snippet already installed, removing"),await this.removeSnippet()):await this.installSnippet():console.error("Unknown card type")}async installExtension(){if(console.debug("Installing extension "+this.localStorageKey),this.props.item){var{manifest:e,title:t,subtitle:r,authors:n,user:i,repo:a,branch:o,imageURL:s,extensionURL:l,readmeURL:u,lastUpdated:c,created:d}=this.props.item;const p=JSON.stringify({manifest:e,type:this.props.type,title:t,subtitle:r,authors:n,user:i,repo:a,branch:o,imageURL:s,extensionURL:l,readmeURL:u,stars:this.state.stars,lastUpdated:c,created:d});await E.mutateAsync(e=>{e.set(this.localStorageKey,p);var t=t$(e.get(x.installedExtensions));t.includes(this.localStorageKey)||e.set(x.installedExtensions,JSON.stringify([...t,this.localStorageKey]))}),console.debug("Installed"),this.setState({installed:!0})}else e$.showNotification(w("notifications.extensionInstallationError"),!0)}async removeExtension(){E.getItem(this.localStorageKey)&&(console.debug("Removing extension "+this.localStorageKey),await E.mutateAsync(e=>{e.delete(this.localStorageKey);var t=t$(e.get(x.installedExtensions));e.set(x.installedExtensions,JSON.stringify(t.filter(e=>e!==this.localStorageKey)))}),console.debug("Removed"),this.setState({installed:!1}))}async prepareTheme(e=!1){var t=this.props.item;if(!t)return e$.showNotification(w("notifications.themeInstallationError"),!0),null;let r={},n=null;if(e){var{schemes:e,activeScheme:i}=T(this.localStorageKey,{});r=e,n=i}else if(t.schemesURL){e=await fetch(t.schemesURL);if(!e.ok)throw new Error("Failed to fetch theme schemes: "+e.status);i=await e.text();r=jy(i)}var e=n||Object.keys(r)[0]||null,{manifest:i,title:a,subtitle:o,authors:s,user:l,repo:u,branch:c,imageURL:d,extensionURL:p,readmeURL:m,cssURL:f,schemesURL:h,include:g,lastUpdated:v,created:b}=(console.debug(r,e),t),i=JSON.stringify({manifest:i,type:this.props.type,title:a,subtitle:o,authors:s,user:l,repo:u,branch:c,imageURL:d,extensionURL:p,readmeURL:m,stars:this.state.stars,tags:this.tags,cssURL:f,schemesURL:h,include:g,schemes:r,activeScheme:e,lastUpdated:v,created:b});let y;return t.include||(a=window.sessionStorage.getItem("marketplace-request-tld")||void 0,y=await Ky(t,a)),{activeScheme:e,item:t,parsedSchemes:r,record:i,userCSS:y}}async installPreparedTheme({activeScheme:e,item:t,parsedSchemes:r,record:n,userCSS:i},a){console.debug("Installing theme "+this.localStorageKey),await E.mutateAsync(e=>{var t=t$(e.get(x.installedThemes)).filter(e=>e!==a&&e!==this.localStorageKey);a&&a!==this.localStorageKey&&e.delete(a),e.set(this.localStorageKey,n),e.set(x.installedThemes,JSON.stringify([...t,this.localStorageKey])),e.set(x.themeInstalled,this.localStorageKey)}),console.debug("Installed"),t.include?a&&a!==this.localStorageKey&&(Gy(),this.props.updateActiveTheme(null),this.props.updateColourSchemes(null,null),e$.Config.current_theme="marketplace",e$.Config.color_scheme="marketplace"):(Gy(i),this.props.updateActiveTheme(this.localStorageKey),this.props.updateColourSchemes(r,e),(t=this.props.item.manifest?.name)&&(e$.Config.current_theme=t),e&&(e$.Config.color_scheme=e)),this.setState({installed:!0})}async installTheme(r=!1){await n$(async()=>{var e=await this.prepareTheme(r),t=E.getItem(x.themeInstalled);e&&await this.installPreparedTheme(e,t)})}async toggleTheme(){return n$(async()=>{var e=E.getItem(x.themeInstalled),t=e?T(e,{}):{};if(this.isInstalled())console.debug("Theme already installed, removing"),await this.removeThemeNow(this.localStorageKey);else{var r=E.getItem(x.localTheme);if(null!==r&&"marketplace"!==r.toLowerCase())return e$.showNotification(w("notifications.wrongLocalTheme"),!0,5e3),!1;r=await this.prepareTheme();if(!r)return!1;await this.installPreparedTheme(r,e)}return Boolean(this.props.item.manifest?.include||t.include)})}async removeThemeNow(e){const r=e||E.getItem(x.themeInstalled);e=r&&E.getItem(r);r&&e&&(console.debug("Removing theme "+r),await E.mutateAsync(e=>{e.delete(r),e.delete(x.themeInstalled);var t=t$(e.get(x.installedThemes));e.set(x.installedThemes,JSON.stringify(t.filter(e=>e!==r)))}),console.debug("Removed"),Gy(),this.props.updateActiveTheme(null),this.props.updateColourSchemes(null,null),e$.Config.current_theme="marketplace",e$.Config.color_scheme="marketplace",this.setState({installed:!1}))}async installSnippet(){console.debug("Installing snippet "+this.localStorageKey),await E.mutateAsync(e=>{e.set(this.localStorageKey,JSON.stringify({code:this.props.item.code,title:this.props.item.title,description:this.props.item.description,imageURL:this.props.item.imageURL}));var t=t$(e.get(x.installedSnippets));t.includes(this.localStorageKey)||e.set(x.installedSnippets,JSON.stringify([...t,this.localStorageKey]))});var e=T(x.installedSnippets,[]);Ly(e.map(e=>T(e))),this.setState({installed:!0})}async removeSnippet(){await E.mutateAsync(e=>{e.delete(this.localStorageKey);var t=t$(e.get(x.installedSnippets));e.set(x.installedSnippets,JSON.stringify(t.filter(e=>e!==this.localStorageKey)))});var e=T(x.installedSnippets,[]);Ly(e.map(e=>T(e))),this.setState({installed:!1})}openReadme(){this.props.item?.manifest?.readme?e$.Platform.History.push({pathname:mr+"/readme",state:{data:{title:this.props.item.title,user:this.props.item.user,repo:this.props.item.repo,branch:this.props.item.branch,readmeURL:this.props.item.readmeURL,type:this.props.type,install:this.buttonClicked.bind(this),isInstalled:this.isInstalled.bind(this)}}}):e$.showNotification(w("notifications.noReadmeFile"),!0)}render(){var e,t,r=this.isInstalled();return"Installed"!==this.props.CONFIG.activeTab||r?(e=["main-card-card","marketplace-card--"+this.props.type],r&&e.push("marketplace-card--installed"),t=[],"snippet"!==this.props.type&&this.props.visual.stars&&t.push("★ "+this.state.stars),Zx.default.createElement("div",{className:e.join(" "),onClick:()=>{if("snippet"===this.props.type){var e=this.props.item.title.replace(/\n/g,"");if(T("marketplace:installed:snippet:"+e)?.custom)return Fx("EDIT_SNIPPET",void 0,void 0,this.props);Fx("VIEW_SNIPPET",void 0,void 0,this.props,this.buttonClicked.bind(this))}else this.openReadme()}},Zx.default.createElement("div",{className:"main-card-draggable",draggable:"true"},Zx.default.createElement("div",{className:"main-card-imageContainer"},Zx.default.createElement("div",{className:"main-cardImage-imageWrapper"},Zx.default.createElement("div",null,Zx.default.createElement("img",{alt:"","aria-hidden":"false",draggable:"false",loading:"lazy",src:this.props.item.imageURL,className:"main-image-image main-cardImage-image",onError:e=>{e.currentTarget.setAttribute("src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII"),e.currentTarget.closest(".main-cardImage-imageWrapper")?.classList.add("main-cardImage-imageWrapper--error")}})))),Zx.default.createElement("div",{className:"main-card-cardMetadata"},Zx.default.createElement("a",{draggable:"false",title:"snippet"===this.props.type?this.props.item.title:this.props.item.manifest?.name,className:"main-cardHeader-link",dir:"auto",href:"snippet"!==this.props.type?this.state.externalUrl:"https://github.com/spicetify/marketplace/blob/main/resources/snippets.json",target:"_blank",rel:"noopener noreferrer",onClick:e=>e.stopPropagation()},Zx.default.createElement("div",{className:"main-cardHeader-text main-type-balladBold"},this.props.item.title)),Zx.default.createElement("div",{className:"main-cardSubHeader-root main-type-mestoBold marketplace-cardSubHeader"},this.props.item.authors&&Zx.default.createElement(Xx,{authors:this.props.item.authors}),Zx.default.createElement("span",null,t.join(" ‒ "))),Zx.default.createElement("p",{className:"marketplace-card-desc"},"snippet"===this.props.type?this.props.item.description:this.props.item.manifest?.description),this.props.item.lastUpdated&&Zx.default.createElement("p",{className:"marketplace-card-desc"},w("grid.lastUpdated",{val:new Date(this.props.item.lastUpdated),formatParams:{val:{year:"numeric",month:"long",day:"numeric"}}})),this.tags.length?Zx.default.createElement("div",{className:"marketplace-card__bottom-meta main-type-mestoBold"},Zx.default.createElement(Qx,{tags:this.tags,showTags:this.props.CONFIG.visual.tags})):null,r&&Zx.default.createElement("div",{className:"marketplace-card__bottom-meta main-type-mestoBold"},"✓ ",w("grid.installed")),Zx.default.createElement(T0,{label:"app"===this.props.type?w("github"):w(r?"remove":"install"),renderInline:!0},Zx.default.createElement("div",{className:"main-card-PlayButtonContainer"},Zx.default.createElement(g0,{classes:["marketplace-installButton"],type:"circle",label:"app"===this.props.type?w("github"):w(r?"remove":"install"),onClick:e=>{e.stopPropagation(),this.buttonClicked()}},"app"===this.props.type?Zx.default.createElement(qx,null):r?Zx.default.createElement(Jx,null):Zx.default.createElement(Gx,null)))))))):(console.debug("Card item not installed"),null)}},a$=nr()(i$),o$=r(h()),s$=()=>o$.default.createElement("svg",{style:{marginTop:"60px"},width:"100px",height:"100px",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",role:"img","aria-label":"Loading Icon"},o$.default.createElement("circle",{cx:"50",cy:"50",r:"0",fill:"none",stroke:"currentColor",strokeWidth:"2"},o$.default.createElement("animate",{attributeName:"r",repeatCount:"indefinite",dur:"1s",values:"0;40",keyTimes:"0;1",keySplines:"0 0.2 0.8 1",calcMode:"spline",begin:"0s"}),o$.default.createElement("animate",{attributeName:"opacity",repeatCount:"indefinite",dur:"1s",values:"1;0",keyTimes:"0;1",keySplines:"0.2 0 0.8 1",calcMode:"spline",begin:"0s"})),o$.default.createElement("circle",{cx:"50",cy:"50",r:"0",fill:"none",stroke:"currentColor",strokeWidth:"2"},o$.default.createElement("animate",{attributeName:"r",repeatCount:"indefinite",dur:"1s",values:"0;40",keyTimes:"0;1",keySplines:"0 0.2 0.8 1",calcMode:"spline",begin:"-0.5s"}),o$.default.createElement("animate",{attributeName:"opacity",repeatCount:"indefinite",dur:"1s",values:"1;0",keyTimes:"0;1",keySplines:"0.2 0 0.8 1",calcMode:"spline",begin:"-0.5s"}))),l$=r(h()),u$=class extends l$.default.Component{render(){return l$.default.createElement("button",{style:{marginTop:"60px",border:"none",backgroundColor:"transparent",cursor:"pointer"},onClick:this.props.onClick},l$.default.createElement("p",{style:{fontSize:100,lineHeight:"65px"}},"»"),l$.default.createElement("span",{style:{fontSize:20}},"Load more"))}},c$=r(h()),d$=()=>c$.default.createElement("svg",{role:"img",width:"16",height:"16",viewBox:"0 0 24 24","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg"},c$.default.createElement("path",{d:"M24 13.616v-3.232c-1.651-.587-2.694-.752-3.219-2.019v-.001c-.527-1.271.1-2.134.847-3.707l-2.285-2.285c-1.561.742-2.433 1.375-3.707.847h-.001c-1.269-.526-1.435-1.576-2.019-3.219h-3.232c-.582 1.635-.749 2.692-2.019 3.219h-.001c-1.271.528-2.132-.098-3.707-.847l-2.285 2.285c.745 1.568 1.375 2.434.847 3.707-.527 1.271-1.584 1.438-3.219 2.02v3.232c1.632.58 2.692.749 3.219 2.019.53 1.282-.114 2.166-.847 3.707l2.285 2.286c1.562-.743 2.434-1.375 3.707-.847h.001c1.27.526 1.436 1.579 2.019 3.219h3.232c.582-1.636.75-2.69 2.027-3.222h.001c1.262-.524 2.12.101 3.698.851l2.285-2.286c-.744-1.563-1.375-2.433-.848-3.706.527-1.271 1.588-1.44 3.221-2.021zm-12 2.384c-2.209 0-4-1.791-4-4s1.791-4 4-4 4 1.791 4 4-1.791 4-4 4z",fill:"currentColor"})),p$=r(h()),m$=()=>p$.default.createElement("svg",{className:"devtools-icon",version:"1.1",viewBox:"1 1 22 22",xmlSpace:"preserve",xmlns:"http://www.w3.org/2000/svg",role:"img","aria-label":"Developer Tools Icon"},p$.default.createElement("g",{className:"devtools-icon-internal",id:"grid_system"}),p$.default.createElement("g",{id:"_icons"},p$.default.createElement("path",{d:"M18,12v-0.9l0.7-5.7C18.8,4.5,18.6,3.7,18,3c-0.6-0.6-1.4-1-2.2-1H8.3C7.4,2,6.6,2.4,6,3C5.4,3.7,5.2,4.5,5.3,5.4L6,11.1   V12c0,1.6,1.3,2.9,2.8,3l-0.4,2.9c-0.1,1,0.2,2.1,0.8,2.9S11,22,12,22s2-0.5,2.7-1.2s1-1.8,0.8-2.9L15.2,15   C16.7,14.9,18,13.6,18,12z M7.5,4.3C7.7,4.1,8,4,8.3,4H13v2c0,0.6,0.4,1,1,1s1-0.4,1-1V4h0.7c0.3,0,0.6,0.1,0.8,0.3   c0.2,0.2,0.3,0.5,0.2,0.8L16.1,10H7.9L7.3,5.1C7.2,4.8,7.3,4.6,7.5,4.3z M13.2,19.4c-0.6,0.7-1.8,0.7-2.4,0   c-0.3-0.4-0.4-0.8-0.4-1.3l0.5-3.2h2.3l0.5,3.2C13.7,18.6,13.5,19.1,13.2,19.4z M15,13h-1h-4H9c-0.6,0-1-0.4-1-1h8   C16,12.6,15.6,13,15,13z"}))),f$=r(h()),h$=r(Re()),g$=nr()(class extends f$.default.Component{render(){var e=this.props["t"];return this.props.item.enabled?f$.default.createElement("li",{className:"marketplace-tabBar-headerItem","data-tab":this.props.item.value,onClick:e=>{e.preventDefault(),this.props.switchTo(this.props.item)}},f$.default.createElement("a",{"aria-current":"page",className:"marketplace-tabBar-headerItemLink "+(this.props.item.active?"marketplace-tabBar-active":""),draggable:"false",href:"##"},f$.default.createElement("span",{className:"main-type-mestoBold"},e("tabs."+this.props.item.value)))):null}}),v$=f$.default.memo(function({items:e,switchTo:t}){return f$.default.createElement("li",{className:"marketplace-tabBar-headerItem"},f$.default.createElement(h$.default,{className:"main-type-mestoBold",options:e,value:"More",placeholder:"More",onChange:t}))}),b$=e=>{const t=(0,f$.useRef)(null),r=(0,f$.useCallback)(()=>{var e=document.querySelector(".main-topBar-topbarContentWrapper");t?.current&&e?e.appendChild(t.current):setTimeout(r,100)},[t.current]);return(0,f$.useEffect)(()=>(r(),()=>(t.current||document.querySelector(".marketplace-tabBar"))?.remove())),f$.default.createElement(y$,{ref:t,links:e.links,activeLink:e.activeLink,switchCallback:e.switchCallback})},y$=f$.default.forwardRef(({links:e,activeLink:r,switchCallback:t},n)=>{const i=(0,f$.useRef)(null),[a,o]=(0,f$.useState)([0]),[s,l]=(0,f$.useState)(0),[u,c]=(0,f$.useState)([0]),d=e.map(({name:e,enabled:t})=>{return{label:e,value:e,active:e===r,enabled:t}});return(0,f$.useEffect)(()=>{if(i.current){const e=new ResizeObserver(e=>l(e[0].contentRect.width));return e.observe(i.current),()=>{e.disconnect()}}},[i.current]),(0,f$.useEffect)(()=>{var e;i.current&&(e=Array.from(i.current.children).map(e=>e.clientWidth),o(e))},[e]),(0,f$.useEffect)(()=>{if(i.current)if(a.reduce((e,t)=>e+t,0)<=s)c([]);else{var e=Math.max(...a);const n=[];let r=e;a.forEach((e,t)=>{s>=r+e?r+=e:n.push(t)}),c(n)}},[s,a]),f$.default.createElement("nav",{className:"marketplace-tabBar marketplace-tabBar-nav",ref:n},f$.default.createElement("ul",{className:"marketplace-tabBar-header",ref:i},d.filter((e,t)=>!u.includes(t)).map(e=>f$.default.createElement(g$,{key:e.value,item:e,switchTo:t})),u.length||0===a.length?f$.default.createElement(v$,{items:u.map(e=>d[e]).filter(e=>e),switchTo:t}):null))}),w$=window.Spicetify,k$=nr()(class extends a.default.Component{constructor(e){super(e),Object.assign(this,e),this.updateAppConfig=e.updateAppConfig.bind(this),this.sortConfig={by:T(x.sort,"top")},this.state={version:cr,newUpdate:!1,searchValue:"",cards:[],tabs:e.CONFIG.tabs,rest:!0,endOfList:!1,schemes:e.CONFIG.theme.schemes,activeScheme:e.CONFIG.theme.activeScheme,activeThemeKey:e.CONFIG.theme.activeThemeKey}}searchRequested;endOfList=!1;lastScroll=0;requestQueue=[];requestPage=0;cardList=[];sortConfig;gridUpdateTabs;gridUpdatePostsVisual;checkScroll;CONFIG;updateAppConfig;BLACKLIST;SNIPPETS;getInstalledTheme(){var e=E.getItem(x.themeInstalled);return(e=e&&E.getItem(e))?JSON.parse(e):null}newRequest(e){this.cardList=[];var t=[];this.requestQueue.unshift(t),this.loadAmount(t,e)}appendCard(e,t,r){r===this.props.CONFIG.activeTab&&(r=a.default.createElement(a$,{item:e,key:`${this.props.CONFIG.activeTab}:${e.user}:`+e.title,CONFIG:this.CONFIG,visual:this.props.CONFIG.visual,type:t,activeThemeKey:this.state.activeThemeKey,updateColourSchemes:this.updateColourSchemes.bind(this),updateActiveTheme:this.setActiveTheme.bind(this)}),this.cardList.push(r))}updateSort(e){e&&(this.sortConfig.by=e,E.setItem(x.sort,e)),this.requestPage=0,this.cardList=[],this.setState({cards:[],rest:!1,endOfList:!1}),this.endOfList=!1,this.newRequest(pr)}updateTabs(){this.setState({tabs:[...this.props.CONFIG.tabs]})}updatePostsVisual(){this.cardList=this.cardList.map((e,t)=>a.default.createElement(a$,{...e.props,key:t.toString(),CONFIG:this.CONFIG})),this.setState({cards:[...this.cardList]})}switchTo(e){this.CONFIG.activeTab=e.value,E.setItem(x.activeTab,e.value),this.cardList=[],this.requestPage=0,this.setState({cards:[],rest:!1,endOfList:!1}),this.endOfList=!1,this.newRequest(pr)}async loadPage(e){var t=this.CONFIG.activeTab;switch(t){case"Extensions":var r=await e0("spicetify-extensions",this.requestPage,this.BLACKLIST,this.CONFIG.visual.showArchived),n=[];for(const h of r.items){var i=await i0(h.contents_url,h.default_branch,h.stargazers_count,this.CONFIG.visual.hideInstalled);if(1<this.requestQueue.length&&e!==this.requestQueue[0])return-1;i?.length&&n.push(...i.map(e=>({...e,archived:h.archived,lastUpdated:h.pushed_at,created:h.created_at})))}Qy(n,E.getItem("marketplace:sort")||"stars");for(const g of n)this.appendCard(g,"extension",t);this.setState({cards:this.cardList});var a=-1<this.requestPage&&this.requestPage?this.requestPage:1,o=pr*(a-1)+r.page_count,s=r.total_count-o;if(console.debug(`Parsed ${o}/${r.total_count} extensions`),0<s)return a+1;console.debug("No more extension results");break;case"Installed":var l={theme:T(x.installedThemes,[]),extension:T(x.installedExtensions,[]),snippet:T(x.installedSnippets,[])};for(const v in l)if(l[v].length){var u=[];for(const b of l[v]){var c=Rg.safeParse(T(b));if(1<this.requestQueue.length&&e!==this.requestQueue[0])return-1;c.success?u.push(c.data):console.warn("Skipping invalid installed item "+b,c.error)}Qy(u,E.getItem("marketplace:sort")||"stars");for(const y of u)this.appendCard(y,v,t)}this.setState({cards:this.cardList});break;case"Themes":var o=await e0("spicetify-themes",this.requestPage,this.BLACKLIST,this.CONFIG.visual.showArchived),d=[];for(const w of o.items){var p=await a0(w.contents_url,w.default_branch,w.stargazers_count);if(1<this.requestQueue.length&&e!==this.requestQueue[0])return-1;p?.length&&d.push(...p.map(e=>({...e,archived:w.archived,lastUpdated:w.pushed_at,created:w.created_at})))}this.setState({cards:this.cardList}),Qy(d,E.getItem("marketplace:sort")||"stars");for(const k of d)this.appendCard(k,"theme",t);r=-1<this.requestPage&&this.requestPage?this.requestPage:1,s=pr*(r-1)+o.page_count,a=o.total_count-s;if(console.debug(`Parsed ${s}/${o.total_count} themes`),0<a)return r+1;console.debug("No more theme results");break;case"Apps":var s=await e0("spicetify-apps",this.requestPage,this.BLACKLIST,this.CONFIG.visual.showArchived),m=[];for(const _ of s.items){var f=await o0(_.contents_url,_.default_branch,_.stargazers_count);if(1<this.requestQueue.length&&e!==this.requestQueue[0])return-1;f?.length&&m.push(...f.map(e=>({...e,archived:_.archived,lastUpdated:_.pushed_at,created:_.created_at})))}this.setState({cards:this.cardList}),Qy(m,E.getItem("marketplace:sort")||"stars");for(const S of m)this.appendCard(S,"app",t);o=-1<this.requestPage&&this.requestPage?this.requestPage:1,a=pr*(o-1)+s.page_count,r=s.total_count-a;if(console.debug(`Parsed ${a}/${s.total_count} apps`),0<r)return o+1;console.debug("No more app results");break;case"Snippets":a=this.SNIPPETS;if(1<this.requestQueue.length&&e!==this.requestQueue[0])return-1;if(a?.length){Qy(a,E.getItem("marketplace:sort")||"stars");for(const I of a)this.appendCard(I,"snippet",t);this.setState({cards:this.cardList})}}return this.setState({rest:!0,endOfList:!0}),this.endOfList=!0,0}async loadAmount(t,e=pr){this.setState({rest:!1});var r=this.cardList.length+e;for(this.requestPage=await this.loadPage(t);this.requestPage&&-1!==this.requestPage&&this.cardList.length<r&&!this.state.endOfList;)this.requestPage=await this.loadPage(t);-1===this.requestPage?this.requestQueue=this.requestQueue.filter(e=>e!==t):(this.requestQueue.shift(),this.setState({rest:!0}))}loadMore(){this.state.rest&&!this.endOfList&&this.loadAmount(this.requestQueue[0],pr)}updateColourSchemes(e,t){console.debug("updateColourSchemes",e,t),this.CONFIG.theme.schemes=e,(this.CONFIG.theme.activeScheme=t)&&(w$.Config.color_scheme=t),e&&t&&e[t]?Vy(this.CONFIG.theme.schemes[t]):Vy(null);var r=T(x.themeInstalled),n=T(r);n?(n.activeScheme=t,console.debug(n),E.setItem(r,JSON.stringify(n))):console.debug("No installed theme data"),this.setState({schemes:e,activeScheme:t})}async componentDidMount(){fetch(hr).then(e=>e.json()).then(e=>{if(e.message)throw e;this.setState({version:e.name});try{this.setState({newUpdate:ur.default.gt(e.name,cr)})}catch(e){console.error(e)}},e=>{console.error("Failed to check for updates",e)}),this.gridUpdateTabs=this.updateTabs.bind(this),this.gridUpdatePostsVisual=this.updatePostsVisual.bind(this);var e=document.querySelector(".os-viewport")??document.querySelector("#main .main-view-container__scroll-node");this.checkScroll=this.isScrolledBottom.bind(this),e&&(e.addEventListener("scroll",this.checkScroll),this.cardList.length)?0<this.lastScroll&&e.scrollTo(0,this.lastScroll):(this.BLACKLIST=await s0(),this.SNIPPETS=await l0(this.CONFIG.visual.hideInstalled),this.newRequest(pr))}componentWillUnmount(){this.gridUpdateTabs=this.gridUpdatePostsVisual=null;var e=document.querySelector(".os-viewport")??document.querySelector("#main .main-view-container__scroll-node");e&&(this.lastScroll=e.scrollTop,e.removeEventListener("scroll",this.checkScroll))}isScrolledBottom(e){e=e.target;e.scrollTop+e.clientHeight>=e.scrollHeight&&this.loadMore()}setActiveTheme(e){this.CONFIG.theme.activeThemeKey=e,this.setState({activeThemeKey:e})}getActiveScheme(){return this.state.activeScheme}render(){const r=this.props["t"];var e=[{handle:"extension",name:"Extensions"},{handle:"theme",name:"Themes"},{handle:"snippet",name:"Snippets"},{handle:"app",name:"Apps"}].map(t=>{var e=this.cardList.filter(e=>e.props.type===t.handle).filter(e=>{const t=this.state.searchValue.trim().toLowerCase();var{title:e,user:r,authors:n,tags:i}=e.props.item;return!t||e.toLowerCase().includes(t)||r?.toLowerCase().includes(t)||n?.some(e=>e.name.toLowerCase().includes(t))||[...i??[]].some(e=>e.toLowerCase().includes(t))}).map(e=>a.default.cloneElement(e,{activeThemeKey:this.state.activeThemeKey,key:e.key})).filter((t,e,r)=>r.findIndex(e=>e.key===t.key)===e);return e.length?a.default.createElement("div",{className:"marketplace-content"},a.default.createElement("h2",{className:"marketplace-card-type-heading"},r("tabs."+t.name)),a.default.createElement("div",{className:"marketplace-grid main-gridContainer-gridContainer main-gridContainer-fixedWidth","data-tab":this.CONFIG.activeTab},e)):null}),t="Installed"===this.CONFIG.activeTab&&this.state.endOfList&&e.every(e=>null===e);return a.default.createElement("section",{className:"contentSpacing"},a.default.createElement("div",{className:"marketplace-header"},a.default.createElement("div",{className:"marketplace-header__left"},this.state.newUpdate?a.default.createElement("button",{type:"button",title:r("grid.newUpdate"),className:"marketplace-header-icon-button",id:"marketplace-update",onClick:()=>Fx("UPDATE")},a.default.createElement(Gx,null)," ",this.state.version):null,a.default.createElement("h2",{className:"marketplace-header__label"},r("grid.sort.label")),a.default.createElement(x0,{onChange:e=>this.updateSort(e),sortBoxOptions:My(r),sortBySelectedFn:e=>e.key===this.CONFIG.sort})),a.default.createElement("div",{className:"marketplace-header__right"},this.CONFIG.visual.themeDevTools?a.default.createElement(T0,{label:r("devTools.title"),renderInline:!0,placement:"bottom"},a.default.createElement("button",{type:"button","aria-label":r("devTools.title"),className:"marketplace-header-icon-button",onClick:()=>Fx("THEME_DEV_TOOLS")},a.default.createElement(m$,null))):null,this.state.activeScheme?a.default.createElement(x0,{onChange:e=>this.updateColourSchemes(this.state.schemes,e),sortBoxOptions:Ry(this.state.schemes),sortBySelectedFn:e=>e.key===this.getActiveScheme()}):null,a.default.createElement("div",{className:"searchbar--bar__wrapper"},a.default.createElement("input",{className:"searchbar-bar",type:"text",placeholder:`${r("grid.search")} ${r("tabs."+this.CONFIG.activeTab)}...`,value:this.state.searchValue,onChange:e=>{this.setState({searchValue:e.target.value})}})),a.default.createElement(T0,{label:r("settings.title"),renderInline:!0,placement:"bottom"},a.default.createElement("button",{type:"button","aria-label":r("settings.title"),className:"marketplace-header-icon-button",id:"marketplace-settings-button",onClick:()=>Fx("SETTINGS",this.CONFIG,this.updateAppConfig)},a.default.createElement(d$,null))))),e,t?a.default.createElement("div",{className:"marketplace-empty-installed"},this.state.searchValue.trim()?r("grid.noInstalledMatches"):r("grid.nothingInstalled")):null,"Snippets"===this.CONFIG.activeTab?a.default.createElement(g0,{classes:["marketplace-add-snippet-btn"],onClick:()=>Fx("ADD_SNIPPET")},"+ ",r("grid.addCSS")):null,a.default.createElement("footer",{className:"marketplace-footer"},this.state.endOfList?a.default.createElement("div",{style:{height:"64px"}}):this.state.rest&&0<this.state.cards.length?a.default.createElement(u$,{onClick:this.loadMore.bind(this)}):a.default.createElement(s$,null)),a.default.createElement(b$,{switchCallback:this.switchTo.bind(this),links:this.CONFIG.tabs,activeLink:this.CONFIG.activeTab}))}}),_$=r(h()),S$=nr()(class extends _$.default.Component{state={isInstalled:this.props.data.isInstalled(),html:`<p>${this.props.t("readmePage.loading")}</p>`};getReadmeHTML=async()=>fetch(this.props.data.readmeURL).then(e=>{if(e.ok)return e.text();throw Spicetify.showNotification(`${this.props.t("readmePage.errorLoading")} (HTTP ${e.status})`,!0)}).then(e=>qy(e,this.props.data.user,this.props.data.repo)).then(e=>(e||Spicetify.Platform.History.goBack(),e)).catch(e=>(console.error(e),Spicetify.Platform.History.goBack(),null));componentDidMount(){this.getReadmeHTML().then(e=>{null!=e&&this.setState({html:e})})}componentDidUpdate(){const e=document.querySelector("#marketplace-readme")?.closest("main");if(e){const t=setInterval(()=>{document.querySelector("#marketplace-readme")?(e.style.overflowY="visible",e.style.overflowY="auto"):(clearInterval(t),e.style.removeProperty("overflow-y"))},1e3)}for(const r of Array.from(document.querySelectorAll("#marketplace-readme img")))r.addEventListener("error",e=>{var e=e.target,t=e.getAttribute("src"),t="/"===t?.charAt(0)?`https://raw.githubusercontent.com/${this.props.data.user}/${this.props.data.repo}/${this.props.data.branch}/`+t?.slice(1):this.props.data.readmeURL.substring(0,this.props.data.readmeURL.lastIndexOf("/"))+"/"+t;e.setAttribute("src",t)},{once:!0})}buttonContent(){return"app"===this.props.data.type?{icon:_$.default.createElement(qx,null),text:this.props.t("github")}:this.state.isInstalled?{icon:_$.default.createElement(Jx,null),text:this.props.t("remove")}:{icon:_$.default.createElement(Gx,null),text:this.props.t("install")}}render(){var e="control"!==JSON.parse(localStorage.getItem("spicetify-exp-features")||"{}").enableGlobalNavBar?.value&&!0;return _$.default.createElement("section",{className:"contentSpacing"},_$.default.createElement("div",{className:"marketplace-header",style:{marginTop:e?"60px":"0px"}},_$.default.createElement("div",{className:"marketplace-header__left"},_$.default.createElement("h1",null,this.props.title)),_$.default.createElement("div",{className:"marketplace-header__right"},_$.default.createElement(g0,{classes:["marketplace-header__button"],onClick:e=>{e.preventDefault(),this.props.data.install(),this.setState({isInstalled:!this.state.isInstalled})},label:this.buttonContent().text},this.buttonContent().icon," ",this.buttonContent().text))),"<p>Loading...</p>"===this.state.html?_$.default.createElement("footer",{className:"marketplace-footer"},_$.default.createElement(s$,null)):_$.default.createElement("div",{id:"marketplace-readme",className:"marketplace-readme__container",dangerouslySetInnerHTML:{__html:this.state.html}}))}}),py={ar:{translation:{settings:{title:"إعدادات المتجر",optionsHeading:"خيارات",starCountLabel:"عدد النجوم",tagsLabel:"العلامات",showArchived:"إظهار المستودعات المؤرشفة",devToolsLabel:"أدوات مطوري السمات",hideInstalledLabel:"إخفاء المثبتة عند التصفح",colourShiftLabel:"تغيير الألوان كل دقيقة",albumArtBasedColors:"تغيير الألوان بناءً على غلاف الألبوم",albumArtBasedColorsMode:"وضع نظام الألوان (واجهة برمجة التطبيقات الملونة (API))",albumArtBasedColorsVibrancy:"اللون المأخوذ من غلاف الألبوم",albumArtBasedColorsVibrancyToolTip:"مشبع قليلًا: اللون الأكثر بروزًا ولكن مع سطوع أقل بكثير \n ساطع خفيف: اللون الأكثر حيوية ولكن مع زيادة السطوع قليلًا \n بارز: اللون الأكثر بروزًا في غلاف الألبوم \n حيوي: اللون الأكثر حيوية في غلاف الألبوم",albumArtColorsModeToolTip:"أحادي اللون الداكن: نظام ألوان يعتمد بشكل مباشر على اللون الرئيسي المحدد، باستخدام ظلال مختلفة من اللون الرئيسي ودمج درجات الرمادي لإنشاء نظام ألوان، وهذا هو عكس نظام أحادي اللون الفاتح. \n أحادي اللون الفاتح: نظام ألوان يعتمد بشكل مباشر على اللون الرئيسي المحدد، باستخدام ظلال مختلفة من اللون الرئيسي ودمج درجات الرمادي لإنشاء نظام ألوان. ستكون خلفية أحادي اللون الفاتح هي لون المقدمة أو النص في نظام أحادي اللون الداكن والعكس صحيح. \n تناظري: نظام ألوان يعتمد على اللون الرئيسي المحدد، باستخدام الألوان المجاورة للون الرئيسي على عجلة الألوان. \n تناظري تكميلي: نظام ألوان يعتمد على اللون الرئيسي المحدد، باستخدام الألوان المجاورة للون الرئيسي على عجلة الألوان واللون التكميلي. \n ثلاثي: نظام ألوان يعتمد على اللون الرئيسي المحدد، باستخدام الألوان الموجودة على عجلة الألوان والتي تكون متساوية البعد عن اللون الرئيسي. \n رباعي: نظام ألوان يعتمد على اللون الرئيسي المحدد، باستخدام الألوان الموجودة على عجلة الألوان والتي تبعد 90 درجة عن اللون الرئيسي.",tabsHeading:"علامات التبويب",tabsDescription:"اسحب وأفلت لإعادة الترتيب، انقر للتمكين/التعطيل",resetHeading:"إعادة الضبط",resetBtn:"$t(settings.resetHeading)",resetDescription:"إلغاء تثبيت جميع الإضافات والسمات، وإعادة ضبط التفضيلات",backupHeading:"نسخ احتياطي/استعادة",backupLabel:"نسخ احتياطي أو استعادة جميع بيانات المتجر. لا يتضمن ذلك إعدادات أي شيء تم تثبيته عبر المتجر.",backupBtn:"فتح",versionHeading:"الإصدار",versionBtn:"نسخ",versionCopied:"تم النسخ"},tabs:{Extensions:"الإضافات",Themes:"السمات",Snippets:"المقتطفات",Apps:"التطبيقات",Installed:"المثبتة"},snippets:{addTitle:"إضافة مقتطف",duplicateName:"هذا الاسم مستخدم بالفعل!",editTitle:"تعديل مقتطف",viewTitle:"عرض مقتطف",customCSS:"CSS مخصص",customCSSPlaceholder:"أدخل CSS المخصص الخاص بك هنا! يمكنك العثور عليها في علامة التبويب المثبتة للإدارة.",snippetName:"اسم المقتطف",snippetNamePlaceholder:"أدخل اسمًا للمقتطف المخصص الخاص بك",snippetDesc:"وصف المقتطف",snippetDescPlaceholder:"أدخل وصفًا للمقتطف المخصص الخاص بك",snippetPreview:"معاينة المقتطف",optional:"اختياري",addImage:"إضافة صورة",changeImage:"تغيير الصورة",saveCSS:"حفظ CSS"},reloadModal:{title:"إعادة التحميل",description:"يجب إعادة تحميل الصفحة لإكمال هذه العملية.",reloadNow:"إعادة التحميل الآن",reloadLater:"إعادة التحميل لاحقًا"},backupModal:{title:"$t(settings.backupHeading)",settingsCopied:"تم نسخ الإعدادات إلى الحافظة",noDataPasted:"لم يتم لصق أي بيانات",invalidJSON:"JSON غير صالح",inputLabel:"إعدادات المتجر",inputPlaceholder:"انسخ/ألصق إعداداتك هنا",exportBtn:"تصدير",importBtn:"استيراد",fileImportBtn:"استيراد من ملف"},devTools:{title:"أدوات تطوير السمات",noThemeInstalled:"خطأ: لم يتم تثبيت أي سمة من المتجر",noThemeManifest:"خطأ: لم يتم العثور على بيان السمة",colorIniEditor:"محرر Color.ini",colorIniEditorPlaceholder:"[اسم-نظام-الألوان-الخاص-بك]",invalidCSS:"CSS غير صالح"},updateModal:{title:"تحديث المتجر",description:"قم بتحديث متجر سبياسيتيفي لتلقي ميزات جديدة وإصلاح الأخطاء.",currentVersion:"الإصدار الحالي: {{إصدار}}",latestVersion:"أحدث إصدار: {{إصدار}}",whatsChanged:"ما الذي تغير",seeChangelog:"عرض سجل التغييرات",howToUpgrade:"كيفية الترقية",viewGuide:"عرض الدليل"},grid:{spicetifyMarketplace:"متجر سبياسيتيفي",newUpdate:"تحديث جديد",addCSS:"إضافة CSS",search:"بحث",installed:"مثبتة",lastUpdated:"آخر تحديث {{val, datetime}}",externalJS:"JS خارجي",archived:"مؤرشفة",dark:"داكن",light:"فاتح",sort:{label:"فرز حسب:",stars:"النجوم",newest:"الأحدث",oldest:"الأقدم",lastUpdated:"آخر تحديث",mostStale:"الأكثر تقادمًا",aToZ:"أ-ي",zToA:"ي-أ"}},readmePage:{title:"$t(grid.spicetifyMarketplace) - اقرأني",loading:"جارٍ التحميل...",errorLoading:"README خطأ في تحميل ملف اقرأني"},github:"غيثب",install:"تثبيت",remove:"إزالة",save:"حفظ",colour_one:"لون",colour_other:"ألوان",favourite:"مفضل",notifications:{wrongLocalTheme:"يُرجى ضبط السمة الحالية في config-xpui.ini على ” المتجر“ لتثبيت السمات باستخدام المتجر",tooManyRequests:"عدد كبير جدًا من الطلبات، يرجى الانتظار",noCdnConnection:"المتجر غير قادر على الاتصال بشبكة CDN. يرجى التحقق من إعدادات الإنترنت الخاصة بك",markdownParsingError:"خطأ في تحليل Markdown (HTTP {{status}})",noReadmeFile:"لم يتم العثور على ملف اقرأني README",themeInstallationError:"حدث خطأ أثناء تثبيت السمة",extensionInstallationError:"حدث خطأ أثناء تثبيت الإضافة"}}},be:{translation:{settings:{title:"Настройкі Marketplace",optionsHeading:"Параметры",starCountLabel:"Колькасць зорак",tagsLabel:"Тэгі",showArchived:"Паказаць архіўныя репозіторыі",devToolsLabel:"Інструменты для разработкі гамы",hideInstalledLabel:"Хаваць устаноўленное пры праглядзе",colourShiftLabel:"Змяняць колеры кожную хвіліну",albumArtBasedColors:"Змяняць колеры па аснове вокладкі альбома",albumArtBasedColorsMode:"Рэжым колеравы схемы (ColorApi)",albumArtBasedColorsVibrancy:"Каляровая гама на аснове вокладкі альбома",albumArtBasedColorsVibrancyToolTip:"Нядэсатураваны: Колер, які вылучаецца найбольш, але мае значна меншую яркасць \n Светла-насычаны: Найбольш насычаны колер, але з крыху павышанай яркасцю \n Выразна-насычаны: Колер, які найбольш вылучаецца на вокладцы альбома \n Насычаны: Найбольш насычаны колер на вокладцы альбома",albumArtColorsModeToolTip:"Манахромны цёмны: каляровая схема, заснаваная непасрэдна на выбраным асноўным колеры, з выкарыстаннем розных адценняў асноўнага колеру і змешваннем шэрых адценняў для стварэння каляровай схемы, гэта зваротны варыянт Манахромнага светлага. \n Манахромны светлы: каляровая схема, заснаваная непасрэдна на выбраным асноўным колеры, з выкарыстаннем розных адценняў асноўнага колеру і змешваннем шэрых адценняў для стварэння каляровай схемы. Фонавы колер у манахромным светлым рэжыме будзе адпавядаць колеру першаплана або тэксту ў манахромным цёмным рэжыме і наадварот. \n Аналагавы: каляровая схема, заснаваная на асноўным выбраным колеры, з выкарыстаннем колераў, якія знаходзяцца побач з ім на колеры колераў. \n Аналагавая дапаўняльная: каляровая схема, заснаваная на асноўным выбраным колеры, з выкарыстаннем колераў, суседніх з асноўным на каляровым коле, і яго дапаўняльнага колеру. \n Трыада: каляровая схема, заснаваная на асноўным выбраным колеры, з выкарыстаннем колераў на каляровым коле, якія знаходзяцца на роўнай адлегласці ад асноўнага колеру. \n Чвэркавая: каляровая схема, заснаваная на асноўным выбраным колеры, з выкарыстаннем колераў на каляровым коле, якія знаходзяцца пад вуглом 90 градусаў да асноўнага колеру.",tabsHeading:"Укладкі",tabsDescription:"Перацягніце і адпусціце, каб змяніць парадак, націсніце, каб уключыць/выключыць",resetHeading:"Скід",resetBtn:"$t(settings.resetHeading)",resetDescription:"Выдаліць усё і скінуць настройкі.",backupHeading:"Рэзервовае капіраванне/Варочанне",backupLabel:"Рэзервовае або варочаннне ўсіх даных Marketplace. Гэта не ўключае настройкі для ўсяго, што было ўсталявана праз Marketplace.",backupBtn:"Адчыніць",versionHeading:"Версія",versionBtn:"Скапіраваць",versionCopied:"Скапіравана"},tabs:{Extensions:"Расшырэнні",Themes:"Гамы",Snippets:"Сніппеты",Apps:"Прыкладанні",Installed:"Усталявана"},snippets:{addTitle:"Дабавіць сніппет",duplicateName:"Гэта імя занята!",editTitle:"Рэдагаваць Сніппет",viewTitle:"Паглядзець сніппет",customCSS:"Кастомны CSS",customCSSPlaceholder:"Увядзіце тут свой кастомны CSS! Вы можаце знайсці іх на ўкладцы «Усталяваныя» для кіравання.",snippetName:"Сніппет імя",snippetNamePlaceholder:"Увесці імя для вашага кастомнага сніппета",snippetDesc:"Апісанне сніппета",snippetDescPlaceholder:"Увесці апісанне для вашага кастомнага сніппета",snippetPreview:"Папярэдні выгляд сніппета",optional:"Неабавязкова",addImage:"Дадаць выдарыс",changeImage:"Змяніць выдарыс",saveCSS:"Захаваць CSS"},reloadModal:{title:"Перазагрузіць",description:"Для завяршэння гэтай змены неабходна перазагрузіць старонку.",reloadNow:"Перазагрузіць зарас",reloadLater:"Перазагрузіць потым"},backupModal:{title:"$t(settings.backupHeading)",settingsCopied:"Налады скапіраваны ў буфер абмену",settingsSaved:"Налады захоўваны ў файл",noDataPasted:"Ніякіх даных не встаўлена",invalidJSON:"Памылковы JSON",inputLabel:"Marketplace Налады",inputPlaceholder:"Скапіраваць/Вставіць вашы налады сюды",exportBtn:"Экспорт",importBtn:"Імпарт",fileImportBtn:"Імпарціроваць з файла"},devTools:{title:"Інструменты разработчыка гам",noThemeInstalled:"Памылка: Няма ўсталяваннаі гамы marketplace",noThemeManifest:"Памылка: Няма маніфесту гамы",colorIniEditor:"Color.ini Рэдактор",colorIniEditorPlaceholder:"[назва-вашай-каляровай-схемы]",invalidCSS:"Памылковы CSS"},updateModal:{title:"Абнаўленне Marketplace",description:"Абнавіце Spicetify Marketplace для атрыманія новых функцыі і выпраўленні памылак.",currentVersion:"Сучасная версія: {{version}}",latestVersion:"Апошняя версія: {{version}}",whatsChanged:"Што зменено",seeChangelog:"Прасматрець спіс змен",howToUpgrade:"Як абнавіцца",viewGuide:"Прасматрець гайд"},grid:{spicetifyMarketplace:"Spicetify Marketplace",newUpdate:"Новае абнаўленне",addCSS:"Дабавіць CSS",search:"Пошук",installed:"Усталяванное",lastUpdated:"Апошнее абнаўленне {{val, datetime}}",externalJS:"утрымлівае JS",archived:"архіўны",dark:"чорны",light:"белы",sort:{label:"Cарціроўка па:",stars:"Зоркам",newest:"Спачатак найноўшыя",oldest:"Спачатак найстарэйшыя",lastUpdated:"Спачатак абноўленныя",mostStale:"Спачатак неабноўленныя",aToZ:"Па назве A-Z",zToA:"Па назве Z-A"}},readmePage:{title:"$t(grid.spicetifyMarketplace) - Readme",loading:"Загрузка...",errorLoading:"Памылка загрузкі README"},github:"GitHub",install:"Установіць",remove:"Выдаліць",save:"Захаваць",colour_one:"колер",colour_other:"колеры",favourite:"выбраны",notifications:{wrongLocalTheme:"Калі ласка, усталюйце current_theme ў файле config-xpui.ini на 'marketplace', каб усталяваць тэмы з Marketplace.",tooManyRequests:"Зашмат запытаў. Калі ласка, паспрабуйце зноў пазней.",noCdnConnection:"Marketplace не ўдаецца падключыцца да CDN. Калі ласка, праверце налады інтэрнэту.",markdownParsingError:"Памылка ў парсінге Markdown (HTTP {{status}})",noReadmeFile:"README не зноідзено",themeInstallationError:"Падчас усталёўкі тэмы адбылася памылка",extensionInstallationError:"Падчас усталёўкі пашырэння адбылася памылка"}}},ca:{translation:{settings:{title:"Configuració",optionsHeading:"Opcions",starCountLabel:"Número d'estrelles",tagsLabel:"Etiquetes",devToolsLabel:"Eines per a desenvolupadors de temes",hideInstalledLabel:"Amagar instal·lats",colourShiftLabel:"Canviar colors cada minut",albumArtBasedColors:"Canviar colors a partir de la portada de l'àlbum",albumArtBasedColorsMode:"Mode esquema de colors (ColorApi)",albumArtBasedColorsVibrancy:"Colors agafats de la portada de l'àlbum",albumArtBasedColorsVibrancyToolTip:"Desaturat:El color més destacat però amb molta menys bror \n Vibrant Clar: El color més villantibrant amb la brillantor augmentada una mica \n Prominent: El color més destacat a la portada de l'Àlbum \n Vibrant: El color més vibrant a la portada de l'Àlbum",albumArtColorsModeToolTip:"Monochrome Dark: Un esquema de colors basat en el color principal seleccionat, emprant diferentes tonalitats i barrejant tons grisos per crear l'esquema de colors, aquest és l'invers de Monochrome Light. \n Monochrome Light: Un esquema de colors basat en el color principal seleccionat, emprant diferentes tonalitats i barrejant tons grisos per crear l'esquema de colors. El colors del fins de Monochrome light seria el color de primer pla en Monochrome Dark i viceversa. \n Analògic: Un esquema de colors basat en el color principal seleccionat, emprant els colors adjacents en la roda de colors. \n Analògic Complementari: Un esquema de colors basat en el color principal seleccionat, emprant els colors adjacents en la roda de colors i el color complementari. \n Tríada: Un esquema de colors basat en el color principal seleccionat, emprant els colors de la roda de colors que estan separats de manera equidistant del color principal. \n Quad: Un esquema de colors basat en el color principal seleccionat, emprant els colors que es troben separats 90 graus entre si en la roda de colors.",tabsHeading:"Pestanyes",tabsDescription:"Arrossegueu i deixeu anar per canviar l'ordre, feu clic per activar/desactivar",resetHeading:"Restablir",resetBtn:"$t(settings.resetHeading)",resetDescription:"Borrar totes les extensions, temes i preferències",backupHeading:"Fer una còpia/Reestablir des d'una còpia",backupLabel:"Fer una còpia o restablir totes les dades de Marketplace des d'una còpia. Això no inclou la configuració per els elements instal·lats amb Marketplace.",backupBtn:"Obrir",versionHeading:"Versió",versionBtn:"Copiar",versionCopied:"Copiat"},tabs:{Extensions:"Extensions",Themes:"Temes",Snippets:"Fragments",Apps:"Aplicacions",Installed:"Instal·lats"},snippets:{addTitle:"Afegir fragment",editTitle:"Editar fragment",viewTitle:"Veure fragment",customCSS:"CSS personalitzat",customCSSPlaceholder:"Crea el teu propi CSS aqui! Pots trobar-los a la pestanya d'instal·lats per administrar-los.",snippetName:"Nom del fragment de codi",snippetNamePlaceholder:"Afegeix un nom al teu codi personalitzat",snippetDesc:"Descripció del codi",snippetDescPlaceholder:"Crea una descripció per al teu codi personalitzat",snippetPreview:"Vista prèvia del fragment",optional:"Opcional",addImage:"Afegir imatge",changeImage:"Canviar imatge",saveCSS:"Guardar CSS"},reloadModal:{title:"Recarregar",description:"És necessari recarregar la finestra per completar aquesta operació.",reloadNow:"Fes-ho ara",reloadLater:"Després"},backupModal:{title:"$t(settings.backupHeading)",settingsCopied:"Configuració copiada al portapapers",noDataPasted:"No s'han enganxat dades",invalidJSON:"JSON invàlid",inputLabel:"Configuració de Marketplace",inputPlaceholder:"Còpia/enganxa la teva configuració aquí",exportBtn:"Exportar",importBtn:"Importar",fileImportBtn:"Importar des d'un arxiu"},devTools:{title:"Eines de desenvolupador de temes",noThemeInstalled:"Error: No hi ha cap tema de Marketplace instal·lat",noThemeManifest:"Error: No s'ha trobat el manifest",colorIniEditor:"Editor de Color.ini",colorIniEditorPlaceholder:"[nom-de-esquema-de-color]",invalidCSS:"CSS invàlid"},grid:{spicetifyMarketplace:"Marketplace de Spicetify",newUpdate:"Nova Actualització",addCSS:"Afegir CSS",search:"Buscar",installed:"Instal·lat",lastUpdated:"Última actualizació {{val, datetime}}",externalJS:"JS extern",dark:"fosc",light:"clar"},readmePage:{title:"$t(grid.spicetifyMarketplace) - Readme",loading:"Carregant...",errorLoading:"Error carregant el README"},github:"GitHub",install:"Instal·lar",remove:"Borrar",save:"Guardar",colour_one:"color",colour_other:"colors",favourite:"preferit"}},"de-DE":{translation:{settings:{title:"Marketplace Einstellungen",optionsHeading:"Optionen",starCountLabel:"Sterne Anzahl",tagsLabel:"Schlagwörter",showArchived:"Archivierte repos anzeigen",devToolsLabel:"Design Entwicklerwerkzeuge",hideInstalledLabel:"Versteckt installierte beim durchsuchen",colourShiftLabel:"Jede Minute Farbe wechseln",albumArtBasedColors:"Farbe basierend auf Album Cover wechseln",albumArtBasedColorsMode:"Farbschema (ColorApi) Modus",albumArtBasedColorsVibrancy:"Farbe vom Album Cover übernommen",albumArtBasedColorsVibrancyToolTip:"Entsättigt: Die am stärksten ausgeprägte Farbe, aber mit viel weniger Helligkeit \n Leicht lebhaft: Die am stärksten leuchtende Farbe, aber mit etwas mehr Helligkeit \n Prominent: Die Farbe, die im Albumcover am stärksten hervortritt \n Lebendig: Die lebendigste Farbe im Albumcover",albumArtColorsModeToolTip:"Monochrom Dunkel: Ein Farbschema, das direkt auf der ausgewählten Hauptfarbe basiert, wobei verschiedene Schattierungen der Hauptfarbe verwendet und Grautöne beigemischt werden, um ein Farbschema zu erstellen; dies ist das Gegenteil von Monochrom Hell. \n Monochrom Hell: Ein Farbschema, das direkt auf der ausgewählten Hauptfarbe basiert, wobei verschiedene Schattierungen der Hauptfarbe verwendet und Grautöne beigemischt werden, um ein Farbschema zu erstellen. Der Hintergrund von Monochrom hell wäre die Vordergrund- oder Textfarbe bei Monochrom dunkel und umgekehrt. \n Analogisch: Ein Farbschema, das auf der ausgewählten Hauptfarbe basiert und die Farben verwendet, die auf dem Farbkreis neben der Hauptfarbe liegen. \n Analogisch Komplementär: Ein Farbschema, das auf der ausgewählten Hauptfarbe basiert, wobei die Farben neben der Hauptfarbe auf dem Farbkreis und die Komplementärfarbe verwendet werden. \n Dreiklang: Ein Farbschema auf der Grundlage der ausgewählten Hauptfarbe, bei dem die Farben auf dem Farbkreis verwendet werden, die gleich weit von der Hauptfarbe entfernt sind. \n Vierer: Ein Farbschema auf der Grundlage der ausgewählten Hauptfarbe, bei dem die Farben auf dem Farbkreis verwendet werden, die 90 Grad von der Hauptfarbe entfernt sind.",tabsHeading:"Register",tabsDescription:"Ziehen und Ablegen zum Ändern der Reihenfolge, Klicken zum Aktivieren/Deaktivieren",resetHeading:"Zurücksetzen",resetBtn:"$t(settings.resetHeading)",resetDescription:"Deinstalliere alle Erweiterungen und Themes und setze Präferenzen zurück",backupHeading:"Sicherung erstellen / Wiederherstellen",backupLabel:"Sichern Sie alle Marketplace-Daten oder stellen Sie sie wieder her. Dies umfasst nicht die Einstellungen für alles, was über den Marketplace installiert wurde.",backupBtn:"Öffnen",versionHeading:"Version",versionBtn:"Kopieren",versionCopied:"Kopiert"},tabs:{Extensions:"Erweiterungen",Themes:"Designs",Snippets:"Snippets",Apps:"Apps",Installed:"Installiert"},snippets:{addTitle:"Snippet hinzufügen",duplicateName:"Dieser Name ist bereits vergeben!",editTitle:"Snippet bearbeiten",viewTitle:"Snippet ansehen",customCSS:"Benutzerdefiniertes CSS",customCSSPlaceholder:"Geben Sie hier Ihre eigenen benutzerdefinierten CSS ein! Sie finden sie auf der Registerkarte „Installiert“ für die Verwaltung.",snippetName:"Snippet Name",snippetNamePlaceholder:"Geben Sie einen Namen für ihr benutzerdefiniertes Snippet ein",snippetDesc:"Snippet Beschreibung",snippetDescPlaceholder:"Geben sie eine Beschreibung für ihr benutzerdefiniertes Snippet ein",snippetPreview:"Snippet Vorschau",optional:"Optional",addImage:"Foto hinzufügen",changeImage:"Foto ändern",saveCSS:"CSS speichern"},reloadModal:{title:"Neu laden",description:"Um diesen Vorgang abzuschließen, muss die Seite neu geladen werden.",reloadNow:"Jetzt neu laden",reloadLater:"Später neu laden"},backupModal:{title:"$t(settings.backupHeading)",settingsCopied:"Einstellungen in die Zwischenablage kopiert",noDataPasted:"Keine Daten eingefügt",invalidJSON:"Ungültiges JSON",inputLabel:"Marketplace Einstellungen",inputPlaceholder:"Kopieren Sie Ihre Einstellungen und fügen Sie sie hier ein",exportBtn:"Export",importBtn:"Import",fileImportBtn:"Von Datei importieren"},devTools:{title:"Design Entwicklerwerkzeug",noThemeInstalled:"Fehler: Kein Marketplace Design installed",noThemeManifest:"Fehler: Kein Design-Manifest gefunden",colorIniEditor:"Color.ini Bearbeitung",colorIniEditorPlaceholder:"[your-colour-scheme-name]",invalidCSS:"Ungültiges CSS"},updateModal:{title:"Aktualisieren Sie den Marketplace",description:"Aktualisieren Sie den Spicetify Marketplace um neue Funktionen und Fehlerbehebungen zu erhalten.",currentVersion:"Derzeitige Version: {{version}}",latestVersion:"Neueste Version: {{version}}",whatsChanged:"Was hat sich geändert?",seeChangelog:"Änderungsverlauf ansehen",howToUpgrade:"Wie man aktualisiert",viewGuide:"Anleitung ansehen"},grid:{spicetifyMarketplace:"Spicetify Marketplace",newUpdate:"Neues Update",addCSS:"CSS hinzufügen",search:"Suchen",installed:"Installiert",lastUpdated:"Zuletzt aktualisiert {{val, datetime}}",externalJS:"Externes JS",archived:"archiviert",dark:"dunkel",light:"hell",sort:{label:"Sortieren nach:",stars:"Sterne",newest:"Neueste",oldest:"Älteste",lastUpdated:"Zuletzt aktualisiert",mostStale:"Am abgestandensten",aToZ:"A-Z",zToA:"Z-A"}},readmePage:{title:"$t(grid.spicetifyMarketplace) - Les mich",loading:"Laden...",errorLoading:"Fehler beim laden von README"},github:"GitHub",install:"Installieren",remove:"Entfernen",save:"Speichern",colour_one:"Farbe",colour_other:"Farben",favourite:"Favorit",notifications:{wrongLocalTheme:"Bitte setzen Sie current_theme in config-xpui.ini auf 'marketplace', um Themen über den Marketplace zu installieren",tooManyRequests:"Zu viele Anfragen, beruhigen Sie sich",noCdnConnection:"Marketplace kann sich nicht mit dem CDN verbinden. Bitte überprüfen Sie Ihre Internetkonfiguration",markdownParsingError:"Fehler beim Parsen von Markdown (HTTP {{status}})",noReadmeFile:"README wurde nicht gefunden",themeInstallationError:"Beim Installieren von einem Design ist ein Fehler aufgetreten",extensionInstallationError:"Beim Installieren einer Erweiterung ist ein Fehler aufgetreten"}}},"en-US":{translation:{settings:{colourShiftLabel:"Shift colors every minute",albumArtBasedColors:"Change colors based on album art",albumArtBasedColorsMode:"Color scheme (ColorApi) mode",albumArtBasedColorsVibrancy:"Color grabbed from album art",albumArtBasedColorsVibrancyToolTip:"Desaturated: The color that is the most prominent but with much less brightness \n Light Vibrant: The most Vibrant color but with the brightness amped up a tad \n Prominent: The color that pops the most in the album art \n Vibrant: The most vibrant color in the album art",albumArtColorsModeToolTip:"Monochrome Dark: A color scheme based directly on the main color selected, using different shades of the main color and mixing in greys to create a color scheme, this is the inverse of Monochrome Light. \n Monochrome Light: A color scheme based directly on the main color selected, using different shades of the main color and mixing in greys to create a color scheme. The background of monochrome light would be the foreground or text color on Monochrome Dark and vice versa. \n Analogic: A color scheme based on the main color selected, using the colors adjacent to the main color on the color wheel. \n Analogic Complementary: A color scheme based on the main color selected, using the colors adjacent to the main color on the color wheel and the complementary color. \n Triad: A color scheme based on the main color selected, using the colors on the color wheel that are equidistant from the main color. \n Quad: A color scheme based on the main color selected, using the colors on the color wheel that are 90 degrees from the main color."},devTools:{colorIniEditorPlaceholder:"[your-color-scheme-name]"},colour_one:"color",colour_other:"colors",favourite:"favorite"}},en:{translation:{settings:{title:"Marketplace Settings",optionsHeading:"Options",starCountLabel:"Stars count",tagsLabel:"Tags",showArchived:"Show archived repos",devToolsLabel:"Theme developer tools",hideInstalledLabel:"Hide installed when browsing",colourShiftLabel:"Shift colours every minute",albumArtBasedColors:"Change colours based on album art",albumArtBasedColorsMode:"Colour scheme (ColorApi) mode",albumArtBasedColorsVibrancy:"Colour grabbed from album art",albumArtBasedColorsVibrancyToolTip:"Desaturated: The colour that is the most prominent but with much less brightness \n Light Vibrant: The most Vibrant colour but with the brightness amped up a tad \n Prominent: The colour that pops the most in the album art \n Vibrant: The most vibrant colour in the album art",albumArtColorsModeToolTip:"Monochrome Dark: A colour scheme based directly on the main colour selected, using different shades of the main colour and mixing in greys to create a colour scheme, this is the inverse of Monochrome Light. \n Monochrome Light: A colour scheme based directly on the main colour selected, using different shades of the main colour and mixing in greys to create a colour scheme. The background of monochrome light would be the foreground or text colour on Monochrome Dark and vice versa. \n Analogic: A colour scheme based on the main colour selected, using the colours adjacent to the main colour on the colour wheel. \n Analogic Complementary: A colour scheme based on the main colour selected, using the colours adjacent to the main colour on the colour wheel and the complementary colour. \n Triad: A colour scheme based on the main colour selected, using the colours on the colour wheel that are equidistant from the main colour. \n Quad: A colour scheme based on the main colour selected, using the colours on the colour wheel that are 90 degrees from the main colour.",tabsHeading:"Tabs",tabsDescription:"Drag and drop to reorder, click to enable/disable",resetHeading:"Reset",resetBtn:"$t(settings.resetHeading)",resetDescription:"Uninstall all extensions and themes, and reset preferences",backupHeading:"Back up/Restore",backupLabel:"Back up or restore all Marketplace data. This does not include settings for anything installed via Marketplace.",backupBtn:"Open",versionHeading:"Version",versionBtn:"Copy",versionCopied:"Copied"},tabs:{Extensions:"Extensions",Themes:"Themes",Snippets:"Snippets",Apps:"Apps",Installed:"Installed"},snippets:{addTitle:"Add Snippet",duplicateName:"That name is already taken!",editTitle:"Edit Snippet",viewTitle:"View Snippet",customCSS:"Custom CSS",customCSSPlaceholder:"Input your own custom CSS here! You can find them in the installed tab for management.",snippetName:"Snippet Name",snippetNamePlaceholder:"Enter a name for your custom snippet",snippetDesc:"Snippet Description",snippetDescPlaceholder:"Enter a description for your custom snippet",snippetPreview:"Snippet Preview",optional:"Optional",addImage:"Add image",changeImage:"Change image",saveCSS:"Save CSS"},reloadModal:{title:"Reload",description:"A page reload is required to complete this operation.",reloadNow:"Reload now",reloadLater:"Reload later"},backupModal:{title:"$t(settings.backupHeading)",settingsCopied:"Settings copied to clipboard",settingsSaved:"Settings saved to file",noDataPasted:"No data pasted",invalidJSON:"Invalid JSON",inputLabel:"Marketplace Settings",inputPlaceholder:"Copy/paste your settings here",exportBtn:"Export",importBtn:"Import",fileImportBtn:"Import from file"},devTools:{title:"Theme Dev Tools",noThemeInstalled:"Error: No marketplace theme installed",noThemeManifest:"Error: No theme manifest found",colorIniEditor:"Color.ini Editor",colorIniEditorPlaceholder:"[your-colour-scheme-name]",invalidCSS:"Invalid CSS"},updateModal:{title:"Update the Marketplace",description:"Update Spicetify Marketplace to receive new features and bug fixes.",currentVersion:"Current version: {{version}}",latestVersion:"Latest version: {{version}}",whatsChanged:"What's Changed",seeChangelog:"See changelog",howToUpgrade:"How to upgrade",viewGuide:"View guide"},grid:{spicetifyMarketplace:"Spicetify Marketplace",newUpdate:"New update",addCSS:"Add CSS",search:"Search",installed:"Installed",nothingInstalled:"You have not installed anything yet. Browse the Extensions, Themes, Snippets, and Apps tabs to get started.",noInstalledMatches:"None of your installed items match that search.",storageUnreadable:"Marketplace could not read its saved data. Reload Spotify to try again.",lastUpdated:"Last updated {{val, datetime}}",externalJS:"external JS",archived:"archived",dark:"dark",light:"light",sort:{label:"Sort by:",stars:"Stars",newest:"Newest",oldest:"Oldest",lastUpdated:"Last Updated",mostStale:"Most Stale",aToZ:"A-Z",zToA:"Z-A"}},readmePage:{title:"$t(grid.spicetifyMarketplace) - Readme",loading:"Loading...",errorLoading:"Error loading README"},github:"GitHub",install:"Install",remove:"Remove",save:"Save",colour_one:"colour",colour_other:"colours",favourite:"favourite",notifications:{wrongLocalTheme:"Please set current_theme in config-xpui.ini to 'marketplace' to install themes using the Marketplace",tooManyRequests:"Too many requests, cool down",noCdnConnection:"Marketplace is unable to connect to the CDN. Please check your Internet configuration",markdownParsingError:"Error parsing markdown (HTTP {{status}})",noReadmeFile:"No README was found",themeInstallationError:"There was an error installing theme",extensionInstallationError:"There was an error installing extension",marketplaceOperationError:"Marketplace could not complete this operation",storageUnreadable:"Marketplace could not read its saved data, so your extensions and themes were not loaded"}}},es:{translation:{settings:{title:"Ajustes de Marketplace",optionsHeading:"Opciones",starCountLabel:"Número de estrellas",tagsLabel:"Etiquetas",showArchived:"Mostrar repositorios archivados",devToolsLabel:"Herramientas para desarrolladores de temas",hideInstalledLabel:"Ocultar lo instalado al navegar",colourShiftLabel:"Cambiar colores cada minuto",albumArtBasedColors:"Cambiar los colores según la portada del álbum",albumArtBasedColorsMode:"Modo de esquema de colores (ColorApi)",albumArtBasedColorsVibrancy:"Color obtenido de la portada del álbum",albumArtBasedColorsVibrancyToolTip:"Desaturado: El color más prominente pero con mucha menos brillo \n Vibrante claro: El color más vibrante pero con el brillo aumentado un poco \n Prominente: El color que más destaca en la portada del álbum \n Vibrante: El color más vibrante en la portada del álbum",albumArtColorsModeToolTip:"Monocromo oscuro: Un esquema de color basado directamente en el color principal seleccionado, usando diferentes tonos del color principal y mezclando con grises para crear un esquema de color, esto es lo inverso de Monocromo claro. \n Monocromo claro: Un esquema de color basado directamente en el color principal seleccionado, usando diferentes tonos del color principal y mezclando con grises para crear un esquema de color. El fondo del monocromo claro sería el primer plano o color de texto en Monocromo oscuro y viceversa. \n Analógico: Un esquema de color basado en el color principal seleccionado, usando los colores adyacentes al color principal en la rueda de colores. \n Complementario analógico: Un esquema de color basado en el color principal seleccionado, usando los colores adyacentes al color principal en la rueda de colores y el color complementario. \n Tríada: Un esquema de color basado en el color principal seleccionado, usando los colores en la rueda de colores que están equidistantes del color principal. \n Cuádruple: Un esquema de color basado en el color principal seleccionado, usando los colores en la rueda de colores que están a 90 grados del color principal.",tabsHeading:"Pestañas",tabsDescription:"Arrastre y suelte para cambiar el orden, haga clic para activar/desactivar",resetHeading:"Restablecer",resetBtn:"$t(settings.resetHeading)",resetDescription:"Borrar todas extensiones y temas, y borrar preferencias",backupHeading:"Copia de seguridad/Restauración",backupLabel:"Haz una copia de seguridad o restaura todos los datos de Marketplace. Esto no incluye la configuración de nada instalado a través de Marketplace.",backupBtn:"Abrir",versionHeading:"Versión",versionBtn:"Copiar",versionCopied:"Copiado"},tabs:{Extensions:"Extensiones",Themes:"Temas",Snippets:"Códigos",Apps:"Aplicaciones",Installed:"Instalados"},snippets:{addTitle:"Añadir Código",duplicateName:"¡Ese nombre ya está en uso!",editTitle:"Editar Código",viewTitle:"Ver Código",customCSS:"Custom CSS",customCSSPlaceholder:"¡Crea tu propio CSS aquí! Puedes encontrarlos en la pestaña de instalados para administrarlos.",snippetName:"Nombre del código",snippetNamePlaceholder:"Asígnale un nombre para tu código personalizado",snippetDesc:"Descripción del código",snippetDescPlaceholder:"Crea una descripción para tu código personalizado",snippetPreview:"Código",optional:"Opcional",addImage:"Añadir imagen",changeImage:"Cambiar imagen",saveCSS:"Guardar CSS"},reloadModal:{title:"Recargar",description:"Es necesario recargar la página para completar esta operación.",reloadNow:"Recargar ahora",reloadLater:"Recargar después"},backupModal:{title:"$t(settings.backupHeading)",settingsCopied:"Ajustes copiados al portapapeles",noDataPasted:"No hay datos pegados",invalidJSON:"JSON inválido",inputLabel:"Ajustes de Marketplace",inputPlaceholder:"Copia/pega tus ajustes aquí",exportBtn:"Exportar",importBtn:"Importar",fileImportBtn:"Importar desde un archivo"},devTools:{title:"Herramientas de desarrollador de temas",noThemeInstalled:"Error: No se ha instalado el tema del marketplace",noThemeManifest:"Error: No se ha encontrado el manifiesto del tema",colorIniEditor:"Editor de Color.ini",colorIniEditorPlaceholder:"[nombre-de-esquema-de-color]",invalidCSS:"CSS inválido"},updateModal:{title:"Actualizar el Marketplace",description:"Actualiza Spicetify Marketplace para recibir nuevas funciones y correcciones de errores.",currentVersion:"Versión actual: {{version}}",latestVersion:"Última versión: {{version}}",whatsChanged:"Qué ha cambiado",seeChangelog:"Ver registro de cambios",howToUpgrade:"Cómo actualizar",viewGuide:"Ver guía"},grid:{spicetifyMarketplace:"Marketplace de Spicetify",newUpdate:"Nueva actualización",addCSS:"Añadir CSS",search:"Buscar",installed:"Instalado",lastUpdated:"Última actualización {{val, datetime}}",externalJS:"JS externo",archived:"archivado",dark:"oscuro",light:"claro",sort:{label:"Ordenar por:",stars:"Estrellas",newest:"Más nuevo",oldest:"Más antiguo",lastUpdated:"Última actualización",mostStale:"Más desactualizado",aToZ:"A-Z",zToA:"Z-A"}},readmePage:{title:"$t(grid.spicetifyMarketplace) - Readme",loading:"Cargando...",errorLoading:"Error al cargar el README"},github:"GitHub",install:"Instalar",remove:"Borrar",save:"Guardar",colour_one:"color",colour_other:"colores",favourite:"favorito",notifications:{wrongLocalTheme:"Por favor, establece current_theme en config-xpui.ini como 'marketplace' para instalar temas usando el Marketplace",tooManyRequests:"Demasiadas solicitudes, espera un momento",noCdnConnection:"Marketplace no puede conectarse al CDN. Por favor, revisa tu configuración de Internet",markdownParsingError:"Error al analizar markdown (HTTP {{status}})",noReadmeFile:"No se encontró el archivo README",themeInstallationError:"Hubo un error al instalar el tema",extensionInstallationError:"Hubo un error al instalar la extensión"}}},et:{translation:{settings:{title:"Turu seaded",optionsHeading:"Seaded",starCountLabel:"Tähtede arv",tagsLabel:"Sildid",devToolsLabel:"Teema arendaja tööriistad",hideInstalledLabel:"Peida sirvimisel paigaldatud",colourShiftLabel:"Muutke värve iga minut",albumArtBasedColors:"Muutke värve albumipildi põhjal",albumArtBasedColorsMode:"Värviskeemi (ColorApi) režiim",albumArtBasedColorsVibrancy:"Albumipildilt haaratud värv",albumArtBasedColorsVibrancyToolTip:"Desaturated: Värv, mis on kõige silmatorkavam, kuid palju väiksema heledusega \n Light vibrant: Kõige erksam värv, kuid veidi suurendatud heledusega \n Prominent: Värv, mis ilmub albumi kujunduses kõige rohkem \n Vibrant: Albumipildi kõige elavam värv",albumArtColorsModeToolTip:"Monochrome dark: Värvilahendus, mis põhineb otse valitud põhivärvil, kasutades põhivärvi erinevaid toone ja segades värviskeemi loomiseks halle, see on ühevärvlise heleda pöördväärtus. \n Monochrome light: Värvilahendus, mis põhineb otse valitud põhivärvil, kasutades põhivärvi erinevaid toone ja segades värviskeemi loomiseks halle. Ühevärvilise valguse taust oleks ühevärvilise tumeda esiplaani või teksti värv ja vastupidi. \n Analogic: Valitud põhivärvil põhinev värviskeem, kasutades värviratta põhivärviga külgnevaid värve. \n Analogic complement: Valitud põhivärvil põhinev värviskeem, kasutades värviratta põhivärviga külgnevaid värve ja lisavärvi. \n Triad: Valitud põhivärvil põhinev värviskeem, kasutades põhivärvist võrdsel kaugusel asuvaid värviratta värve. \n Quad: Valitud põhivärvil põhinev värviskeem, kasutades värvirattal olevaid värve, mis on põhivärvist 90 kraadi.",tabsHeading:"Vahekaardid",tabsDescription:"Järjekorra muutmiseks lohista ja eemalda, lubamiseks/välja lülitamiseks klõpsa",resetHeading:"Reset",resetBtn:"$t(settings.resetHeading)",resetDescription:"Uninstall all extensions and themes, and reset preferences",backupHeading:"Varunda/Taasta",backupLabel:"Varunda või taasta kõik turu andmed. See ei hõlma turu kaudu paigaldatud elementide seadeid.",backupBtn:"Ava",versionHeading:"Versioon",versionBtn:"Kopeeri",versionCopied:"Kopeeritud"},tabs:{Extensions:"Lisad",Themes:"Teemad",Snippets:"Katked",Apps:"Rakendused",Installed:"Paigaldatud"},snippets:{addTitle:"Lisa katkend",editTitle:"Muuda katkendit",viewTitle:"Vaata katkendit",customCSS:"Kohandatud CSS",customCSSPlaceholder:"Paigalda Kohandatud CSS siia! Haldamiseks leiate need paigaldatud vahekaardilt.",snippetName:"Katkendi nimi",snippetNamePlaceholder:"Lisa kohandatud katkendi nimi",snippetDesc:"Katkendi kirjeldus",snippetDescPlaceholder:"Lisa kohandatud katkendi kirjeldus",snippetPreview:"Katkendi eelvaade",optional:"valikuline",addImage:"Lisa pilt",changeImage:"Muuda pilti",saveCSS:"Salvesta CSS"},reloadModal:{title:"Laadi uuesti",description:"Selle toimingu lõpuleviimiseks on vaja leht uuesti laadida.",reloadNow:"Laadige kohe uuesti",reloadLater:"Laadige hiljem uuesti"},backupModal:{title:"$t(settings.backupHeading)",settingsCopied:"Seaded kopeeriti lõikelauale",noDataPasted:"Andmeid pole kleebitud",invalidJSON:"Vale JSON",inputLabel:"Turu Seaded",inputPlaceholder:"Kopeeri/kleebi enda seaded siia",exportBtn:"Ekspordi",importBtn:"Impordi",fileImportBtn:"Impordi failist"},devTools:{title:"Teema arendustööriistad",noThemeInstalled:"Viga: Turu teemat pole installitud",noThemeManifest:"Viga: Teema manifesti ei leitud",colorIniEditor:"Color.ini redaktor",colorIniEditorPlaceholder:"[teie-värviskeemi-nimi]",invalidCSS:"Vigane CSS"},grid:{spicetifyMarketplace:"Spicetify Turg",newUpdate:"Uus värskendus",addCSS:"Lisa CSS",search:"Otsi",installed:"Paigaldatud",lastUpdated:"Viimati uuendatud {{val, datetime}}",externalJS:"väline JS",dark:"tume",light:"hele"},readmePage:{title:"$t(grid.spicetifyMarketplace) - Readme",loading:"Laadimine...",errorLoading:"Viga README laadimisel"},github:"GitHub",install:"Paigalda",remove:"Eemalda",save:"Salvesta",colour_one:"värv",colour_other:"värvid",favourite:"lemmik"}},fi:{translation:{settings:{title:"Marketplacen asetukset",optionsHeading:"Valinnat",starCountLabel:"Tähdet",tagsLabel:"Tagit",showArchived:"Näytä arkistoituja lähdekoodivarastoja",devToolsLabel:"Teeman kehittäjätyökalut",hideInstalledLabel:"Piilota asennetut",colourShiftLabel:"Väriä muutetaan joka minuutti",albumArtBasedColors:"Muuta väriä albumin perusteella",albumArtBasedColorsMode:"Värityyli (ColorApi) tila",albumArtBasedColorsVibrancy:"Väri otettu albumista",albumArtBasedColorsVibrancyToolTip:"Kyllästelemätön: Väri, joka on näkyvin, mutta jonka kirkkaus on paljon pienempi \n Valoisa eloisa: Eloisin väri, jonka kirkkautta on hieman lisätty \n Merkittävä: Väri, joka erottuu eniten albumin kuvituksessa \n Eloisa: Albumin kuvituksen eloisin väri",albumArtColorsModeToolTip:"Tumma yksiväri: Suoraan valittuun pääväriin perustuva värimaailma, jossa käytetään päävärin eri sävyjä ja harmaita sekoittamalla värimaailman luomiseksi. Tämä on vaalean yksivärisen käänteinen värimaailma. \n Vaalea yksiväri: Suoraan valittuun pääväriin perustuva värimaailma, jossa käytetään päävärin eri sävyjä ja harmaita sekoittamalla värimaailman luomiseksi. Vaalean yksivärisen värimaailman tausta olisi tumman yksivärisen värimaailman etualan tai tekstin väri ja päinvastoin. \n Analoginen: Valittuun pääväriin perustuva värimaailma, jossa käytetään väriympyrässä päävärin viereisiä värejä. \n Analoginen komplementtiväri: Valittuun pääväriin perustuva värimaailma, jossa käytetään väriympyrässä päävärin viereisiä värejä ja komplementtiväriä. \n Kolmio: Valittuun pääväriin perustuva värimaailma, jossa käytetään väriympyrän värejä, jotka ovat yhtä kaukana pääväristä. \n Neliväri: Valittuun pääväriin perustuva värimaailma, jossa käytetään väriympyrän värejä, jotka ovat 90 asteen etäisyydellä pääväristä.",tabsHeading:"Sivut",tabsDescription:"Vedä ja pudota uudelleen järjestykseen, napsauta käyttöön/pois käytöstä",resetHeading:"Palauta",resetBtn:"$t(settings.resetHeading)",resetDescription:"Poista kaikki laajennukset ja teemat ja palauta asetukset",backupHeading:"Varmuuskopioi/Palauta",backupLabel:"Varmuuskopioi tai palauta kaikki Marketplacen data. Tämä ei sisällä asetuksia mitään, joka on asennettu Marketplacein kautta.",backupBtn:"Avaa",versionHeading:"Versio",versionBtn:"Kopioi",versionCopied:"Kopioitu"},tabs:{Extensions:"Laajennukset",Themes:"Teemat",Snippets:"Koodin pätkät",Apps:"Sovellukset",Installed:"Asennetut"},snippets:{addTitle:"Lisää koodin pätkä",duplicateName:"Nimi on jo käytössä!",editTitle:"Muokkaa koodin pätkää",viewTitle:"Näytä koodin pätkä",customCSS:"Oma CSS",customCSSPlaceholder:"Syötä oma mukautettu CSS-koodisi tähän! Löydät ne hallintaa varten asennetut-välilehdeltä.",snippetName:"Koodin pätkän nimi",snippetNamePlaceholder:"Anna nimi koodin pätkälle",snippetDesc:"Koodin pätkän kuvaus",snippetDescPlaceholder:"Anna kuvaus koodin pätkälle",snippetPreview:"Koodin pätkän esikatselu",optional:"Valinnainen",addImage:"Lisää kuva",changeImage:"Vaihda kuva",saveCSS:"Tallenna CSS"},reloadModal:{title:"Lataa uudelleen",description:"Sivun lataaminen uudelleen on vaadittava tämän toiminnon suorittamiseksi.",reloadNow:"Lataa uudelleen nyt",reloadLater:"Lataa uudelleen myöhemmin"},backupModal:{title:"$t(settings.backupHeading)",settingsCopied:"Asetukset kopioitu leikepöydälle",noDataPasted:"Ei dataa liitetty",invalidJSON:"Virheellinen JSON",inputLabel:"Marketplacen asetukset",inputPlaceholder:"Kopioi/liitä asetuksesi tähän",exportBtn:"Vie",importBtn:"Tuo",fileImportBtn:"Tuo tiedostosta"},devTools:{title:"Teeman kehittäjätyökalut",noThemeInstalled:"Virhe: Ei Marketplace-teemaa asennettu",noThemeManifest:"Virhe: Ei teeman manifestia",colorIniEditor:"Color.ini-editori",colorIniEditorPlaceholder:"[sinun-värityylisi-nimi]",invalidCSS:"Virheellinen CSS"},updateModal:{title:"Päivitä Marketplace",description:"Päivitä Spicetify Marketplace saadaksesi uusia ominaisuuksia ja bugikorjauksia.",currentVersion:"Nykyinen versio: {{version}}",latestVersion:"Uusin versio: {{version}}",whatsChanged:"Mitä on muuttunut",seeChangelog:"Katso muutosloki",howToUpgrade:"Kuinka päivittää",viewGuide:"Näytä opas"},grid:{spicetifyMarketplace:"Spicetify Marketplace",newUpdate:"Uusi päivitys",addCSS:"Lisää CSS",search:"Haku",installed:"Asennettu",lastUpdated:"Viimeisin päivitys {{val, datetime}}",externalJS:"ulkoiset JS-skriptit",archived:"arkistoitu",dark:"tumma",light:"vaalea",sort:{label:"Järjestä:",stars:"Tähdet",newest:"Uusin",oldest:"Vanhin",lastUpdated:"Viimeisin päivitys",mostStale:"Eniten vanhentunut",aToZ:"A-Z",zToA:"Z-A"}},readmePage:{title:"$t(grid.spicetifyMarketplace) - Readme",loading:"Ladataan...",errorLoading:"Virhe ladattaessa README"},github:"GitHub",install:"Asenna",remove:"Poista",save:"Tallenna",colour_one:"väri",colour_other:"värit",favourite:"suosikki",notifications:{wrongLocalTheme:"Aseta current_theme config-xpui.ini-tiedostossa 'marketplace'-arvoon käyttääksesi Marketplace-teemoja",tooManyRequests:"Liian monta pyyntöä, odota hetki",noCdnConnection:"Marketplace ei pysty yhdistämään CDN:ään. Tarkista internetyhteys",markdownParsingError:"Virhe jäsentämässä markdownia (HTTP {{status}})",noReadmeFile:"Ei README-tiedostoa löytynyt",themeInstallationError:"Teeman asentamisessa tapahtui virhe",extensionInstallationError:"Laajennuksen asentamisessa tapahtui virhe"}}},fr:{translation:{settings:{title:"Réglages Marché Spicetify",optionsHeading:"Options",starCountLabel:"Nombres d’étoiles",tagsLabel:"Tags",devToolsLabel:"Outils pour les développeurs de thèmes",hideInstalledLabel:"Masquer ceux étant installés lors de la navigation",colourShiftLabel:"Changer de couleur chaque minutes",albumArtBasedColors:"Changement des couleurs basé sur les pochettes d'albums",albumArtBasedColorsMode:"Mode de schéma de couleur (ColorApi)",albumArtBasedColorsVibrancy:"Couleur saisie depuis les pochettes d'albums",albumArtBasedColorsVibrancyToolTip:"Désaturé: La couleur qui est la plus proéminente mais avec beaucoup moins de luminosité\nVibrations Claires: La couleur la plus vibrante, mais avec une luminosité un peu plus forte\nPrometteur: La couleur qui ressort le plus dans la pochette de l'album\nVibrations: La couleur la plus vibrante dans la pochette de l'album",albumArtColorsModeToolTip:"Monochrome foncé: une palette de couleurs basée directement sur la couleur principale sélectionnée, en utilisant différentes nuances de la couleur principale et en mélangeant des gris pour créer une palette de couleurs, c'est l'inverse du monochrome clair.\nMonochrome clair: Une palette de couleurs basée directement sur la couleur principale sélectionnée, en utilisant différentes nuances de la couleur principale et en mélangeant les gris pour créer une palette de couleurs. L'arrière-plan d'un monochrome clair sera le premier plan ou la couleur du texte d'un monochrome foncé et vice versa.\nAnalogique: Schéma de couleurs basé sur la couleur principale sélectionnée, utilisant les couleurs adjacentes à la couleur principale sur le cercle chromatique.\nAnalogique complémentaire: Un schéma de couleurs basé sur la couleur principale sélectionnée, utilisant les couleurs adjacentes à la couleur principale sur le cercle chromatique et la couleur complémentaire.\nTriade: Un schéma de couleurs basé sur la couleur principale sélectionnée, utilisant les couleurs équidistantes de la couleur principale sur le cercle chromatique.\nQuad: Un schéma de couleurs basé sur la couleur principale sélectionnée, utilisant les couleurs du cercle chromatique qui sont à 90 degrés de la couleur principale.",tabsHeading:"Onglets",tabsDescription:"Glisser-déposer pour modifier l'ordre, cliquer pour activer/désactiver",resetHeading:"Réinitialiser",resetBtn:"$t(settings.resetHeading)",resetDescription:"Désinstaller toutes les extensions et tous les thèmes, ainsi que l’ensemble des réglages",backupHeading:"Sauvegarde/Restauration",backupLabel:"Sauvegarder ou restaurer toutes les données du Marché. Celà n'inclue pas les réglages pour quoi que ce soit installé depuis le Marché.",backupBtn:"Ouvrir",versionHeading:"Version",versionBtn:"Copier",versionCopied:"Copié"},tabs:{Extensions:"Extensions",Themes:"Thèmes",Snippets:"Bribes",Apps:"Applications",Installed:"Installé(s)"},snippets:{addTitle:"Ajouter Bribe",editTitle:"Éditer Bribe",viewTitle:"Voir Bribe",customCSS:"CSS personnalisé",customCSSPlaceholder:"Insérez votre propre CSS personnalisé ici! Vous pouvez les retrouver dans l’onglet Installé pour les gérer.",snippetName:"Nom de la bribe",snippetNamePlaceholder:"Entrer un nom pour votre bribe personnalisée",snippetDesc:"Description de la bribe",snippetDescPlaceholder:"Entrez une description pour votre bribe personnalisée",snippetPreview:"Prévisualiser la bribe",optional:"Optionnel",addImage:"Ajouter une image",changeImage:"Changer l’image",saveCSS:"Enregistrer le CSS"},reloadModal:{title:"Recharger",description:"Un rechargement de la page est requis pour finaliser cette opération.",reloadNow:"Recharger maintenant",reloadLater:"Recharger plus tard"},backupModal:{title:"Sauvegarder/Restaurer",settingsCopied:"Réglages copiés dans le presse-papier",noDataPasted:"Aucune donnée collée",invalidJSON:"JSON invalide",inputLabel:"Réglages du Marché",inputPlaceholder:"Copier/coller vos réglages ici",exportBtn:"Exporter",importBtn:"Importer",fileImportBtn:"Importer depuis un fichier"},devTools:{title:"Outils de développeurs de thèmes",noThemeInstalled:"Erreur: Aucun thème du marché n’est installé",noThemeManifest:"Erreur: Aucun manifeste de thème trouvé",colorIniEditor:"Éditeur Color.ini",colorIniEditorPlaceholder:"[nom-de-votre-schéma-de-couleur]",invalidCSS:"CSS invalide"},grid:{spicetifyMarketplace:"Marché Spicetify",newUpdate:"Nouvelle mise à jour",addCSS:"Ajouter CSS",search:"Rechercher",installed:"Installé",lastUpdated:"Dernière mise à jour {{val, datetime}}",externalJS:"JS externe",dark:"sombre",light:"clair",sort:{label:"Trier par:",stars:"Étoiles",newest:"Nouveauté",oldest:"Ancienneté",lastUpdated:"Dernière mise à jour",mostStale:"Le plus périmé",aToZ:"A-Z",zToA:"Z-A"}},readmePage:{title:"$t(grid.spicetifyMarketplace) - Readme",loading:"Chargement…",errorLoading:"Erreur lors du chargement du README"},github:"GitHub",install:"Installer",remove:"Supprimer",save:"Enregistrer",colour_one:"couleur",colour_other:"couleurs",favourite:"favoris"}},it:{translation:{settings:{title:"Impostazioni Marketplace",optionsHeading:"Opzioni",starCountLabel:"Contatore stelle",tagsLabel:"Tag",showArchived:"Mostra repository archiviati",devToolsLabel:"Strumenti di sviluppo del tema",hideInstalledLabel:"Nascondi i pacchetti già installati durante la navigazione",colourShiftLabel:"Cambia colori ogni minuto",albumArtBasedColors:"Cambia i colori in base alla copertina dell'album",albumArtBasedColorsMode:"Schema colori modalità (ColorApi)",albumArtBasedColorsVibrancy:"Colore preso dalla copertina dell'album",albumArtBasedColorsVibrancyToolTip:"Desaturato: Il colore predominante ma con molta meno luminosità \n Vibrante Chiaro: Il colore più intenso ma con la luminosità aumentata leggermente \n Predominante: Il colore che spicca di più nella copertina dell'album \n Vibrante: Il colore più intenso nella copertina dell'album",albumArtColorsModeToolTip:"Monocromo Scuro: Uno schema di colori basato direttamente sul colore principale selezionato, utilizzando diverse sfumature del colore principale e mescolando i grigi per creare uno schema di colori; questo è l'inverso di Monocromo Chiaro. \n Monocromo Chiaro: Uno schema di colori basato direttamente sul colore principale selezionato, utilizzando diverse sfumature del colore principale e mescolando i grigi per creare uno schema di colori. Lo sfondo di Monocromo Chiaro sarebbe il colore del testo o di quello in primo piano su Monocromo Scuro e viceversa. \n Armonico: Uno schema di colori basato sul colore principale selezionato, utilizzando i colori adiacenti al colore principale sulla ruota dei colori.\n Armonico Complementare: Uno schema di colori basato sul colore principale selezionato, utilizzando i colori adiacenti al colore principale sulla ruota dei colori e il colore complementare. \n Ternario: Uno schema di colori basato sul colore principale selezionato, utilizzando i colori sulla ruota dei colori che sono equidistanti dal colore principale. \n Quaternario: Uno schema di colori basato sul colore principale selezionato, utilizzando i colori sulla ruota dei colori che sono a 90 gradi dal colore principale.",tabsHeading:"Schede",tabsDescription:"Trascinare e rilasciare per cambiare l'ordine, cliccare per attivare/disattivare",resetHeading:"Reimposta",resetBtn:"$t(settings.resetHeading)",resetDescription:"Disinstalla tutte le estensioni e i temi, e ripristina le preferenze",backupHeading:"Backup/Ripristino",backupLabel:"Effettua il backup o ripristina tutti i dati del Marketplace. Questo non include le impostazioni per qualsiasi elemento installato tramite Marketplace.",backupBtn:"Apri",versionHeading:"Versione",versionBtn:"Copia",versionCopied:"Copiato"},tabs:{Extensions:"Estensioni",Themes:"Temi",Snippets:"Moduli",Apps:"Applicazioni",Installed:"Installato"},snippets:{addTitle:"Aggiungi Modulo",duplicateName:"Questo nome è già stato utilizzato!",editTitle:"Modifica Modulo",viewTitle:"Visualizza Modulo",customCSS:"CSS personalizzato",customCSSPlaceholder:"Scrivi qui il tuo CSS personalizzato! Puoi trovarli nella scheda degli installati per la gestione.",snippetName:"Nome Modulo",snippetNamePlaceholder:"Inserisci un nome per il tuo modulo personalizzato",snippetDesc:"Descrizione Modulo",snippetDescPlaceholder:"Inserisci una descrizione per il tuo modulo personalizzato",snippetPreview:"Anteprima Modulo",optional:"Opzionale",addImage:"Aggiungi immagine",changeImage:"Cambia immagine",saveCSS:"Salva CSS"},reloadModal:{title:"Ricarica",description:"È necessario ricaricare la pagina per completare questa operazione.",reloadNow:"Ricarica",reloadLater:"Più tardi"},backupModal:{title:"$t(settings.backupHeading)",settingsCopied:"Impostazioni copiate negli appunti",noDataPasted:"Nessun dato incollato",invalidJSON:"JSON non valido",inputLabel:"Impostazioni Marketplace",inputPlaceholder:"Copia/incolla qui le tue impostazioni",exportBtn:"Esporta",importBtn:"Importa",fileImportBtn:"Importa da file"},devTools:{title:"Strumenti di sviluppo del tema",noThemeInstalled:"Errore: Nessun tema del Marketplace installato",noThemeManifest:"Errore: Nessun manifest del tema trovato",colorIniEditor:"Editor Color.ini",colorIniEditorPlaceholder:"[nome-del-tuo-schema-colori]",invalidCSS:"Classi CSS non valide"},updateModal:{title:"Aggiorna il Marketplace",description:"Aggiorna Spicetify Marketplace per ricevere nuove funzionalità e correzioni dei bug.",currentVersion:"Versione attuale: {{version}}",latestVersion:"Ultima versione: {{version}}",whatsChanged:"Cos'è Cambiato",seeChangelog:"Guarda il changelog",howToUpgrade:"Come effettuare l'aggiornamento",viewGuide:"Visualizza guida"},grid:{spicetifyMarketplace:"Spicetify Marketplace",newUpdate:"Nuovo aggiornamento",addCSS:"Aggiungi CSS",search:"Cerca",installed:"Installato",lastUpdated:"Ultimo aggiornamento {{val, datetime}}",externalJS:"jS esterno",archived:"archiviato",dark:"scuro",light:"chiaro",sort:{label:"Ordina per:",stars:"Valutazione",newest:"Più recente",oldest:"Meno recenti",lastUpdated:"Ultimo aggiornamento",mostStale:"Meno Aggiornato",aToZ:"A-Z",zToA:"Z-A"}},readmePage:{title:"$t(grid.spicetifyMarketplace) - Readme",loading:"Caricamento...",errorLoading:"Errore nel caricamento del README"},github:"GitHub",install:"Installa",remove:"Rimuovi",save:"Salva",colour_one:"colore",colour_other:"colori",favourite:"preferito",notifications:{wrongLocalTheme:"Si prega d'impostare current_theme in config-xpui.ini su 'marketplace' per installare temi utilizzando il Marketplace",tooManyRequests:"Troppe richieste, attendi un momento",noCdnConnection:"Il Marketplace non riesce a connettersi al CDN. Si prega di controllare la configurazione Internet",markdownParsingError:"Errore durante l'analisi del Markdown (HTTP {{status}})",noReadmeFile:"Nessun README trovato",themeInstallationError:"Si è verificato un errore durante l'installazione del tema",extensionInstallationError:"Si è verificato un errore durante l'installazione dell'estensione"}}},ja:{translation:{settings:{title:"マーケットプレイスの設定",optionsHeading:"オプション",starCountLabel:"スターの数",tagsLabel:"タグ",showArchived:"アーカイブされたリポジトリを表示",devToolsLabel:"テーマ開発者ツール",hideInstalledLabel:"ブラウジング時にインストール済みを非表示にする",colourShiftLabel:"1分ごとに色を変更",albumArtBasedColors:"アルバムアートに基づいて色を変更",albumArtBasedColorsMode:"カラースキーム(ColorApi)モード",albumArtBasedColorsVibrancy:"アルバムアートから取得した色",albumArtBasedColorsVibrancyToolTip:"Desaturated: 最も目立つ色だが、明るさがはるかに抑えられています \n Light Vibrant: 最も活気ある色ですが、明るさが少し増しています \n Prominent: アルバムアートで最も目立つ色です \n Vibrant: アルバムアートで最も鮮やかな色です",albumArtColorsModeToolTip:"Monochrome Dark: 選択したメインカラーを基にした色の配色スキームで、メインカラーの異なる濃淡やグレーを混ぜて配色することで、これはMonochrome Lightの反対です。 \n Monochrome Light: 選択したメインカラーを直接基にした色の配色スキームで、メインカラーの異なる濃淡やグレーを混ぜて配色します。Monochrome Lightの背景色は、Monochrome Darkの前景色やテキスト色となり、その逆も同様です。 \n Analogic: 選択されたメインカラーを基に、カラーホイール上でメインカラーに隣接する色を使用した配色スキームです。 \n Analogic Complementary: 選択したメインカラーを基に、カラーホイール上でメインカラーに隣接する色と補色を使用した配色スキームです。 \n Triad: 選択したメインカラーを基に、カラーホイール上でメインカラーから等距離にある色を使用した配色スキームです。 \n Quad: 選択されたメインカラーを基に、カラーホイール上でメインカラーから90度離れた色を使用した配色スキームです。",tabsHeading:"タブ",tabsDescription:"ドラッグ&ドロップで順序を変更し、クリックで有効/無効を切り替える",resetHeading:"リセット",resetBtn:"$t(settings.resetHeading)",resetDescription:"すべての拡張機能とテーマをアンインストールし、設定をリセットします",backupHeading:"バックアップ/リストア",backupLabel:"すべてのマーケットプレイスデータのバックアップまたはリストアを行います。これには、マーケットプレイスを介してインストールされた設定は含まれません。",backupBtn:"開く",versionHeading:"バージョン",versionBtn:"コピー",versionCopied:"コピーされました"},tabs:{Extensions:"拡張機能",Themes:"テーマ",Snippets:"スニペット",Apps:"アプリ",Installed:"インストール済み"},snippets:{addTitle:"スニペットを追加",duplicateName:"その名前は既に使われています!",editTitle:"スニペットを編集",viewTitle:"スニペットを表示",customCSS:"カスタムCSS",customCSSPlaceholder:"ここにカスタムCSSを入力してください! 管理用のインストール済みタブで見つけることができます。",snippetName:"スニペット名",snippetNamePlaceholder:"カスタムスニペットの名前を入力してください",snippetDesc:"スニペットの説明",snippetDescPlaceholder:"カスタムスニペットの説明を入力してください",snippetPreview:"スニペットプレビュー",optional:"オプション",addImage:"画像を追加",changeImage:"画像を変更",saveCSS:"CSSを保存"},reloadModal:{title:"リロード",description:"この操作を完了するにはページのリロードが必要です。",reloadNow:"今すぐ読み込む",reloadLater:"後で読み込む"},backupModal:{title:"$t(settings.backupHeading)",settingsCopied:"設定がクリップボードにコピーされました",noDataPasted:"データが貼り付けられていません",invalidJSON:"無効なJSON",inputLabel:"マーケットプレイスの設定",inputPlaceholder:"ここに設定をコピー&ペーストしてください",exportBtn:"エクスポート",importBtn:"インポート",fileImportBtn:"ファイルからインポート"},devTools:{title:"テーマ開発ツール",noThemeInstalled:"エラー:マーケットプレイスのテーマがインストールされていません",noThemeManifest:"エラー:テーママニフェストが見つかりませんでした",colorIniEditor:"Color.ini Editor",colorIniEditorPlaceholder:"[your-colour-scheme-name]",invalidCSS:"無効なCSS"},updateModal:{title:"マーケットプレイスの更新",description:"新機能やバグ修正を受け取るために、Spicetify Marketplaceを更新してください。",currentVersion:"現在のバージョン: {{version}}",latestVersion:"最新のバージョン: {{version}}",whatsChanged:"変更内容",seeChangelog:"変更履歴を見る",howToUpgrade:"アップグレード方法",viewGuide:"ガイドを見る"},grid:{spicetifyMarketplace:"Spicetify Marketplace",newUpdate:"新しいアップデート",addCSS:"CSSを追加",search:"検索",installed:"インストール済み",lastUpdated:"{{val, datetime}}に最終更新",externalJS:"外部JS",archived:"アーカイブ済み",dark:"ダーク",light:"ライト",sort:{label:"並べ替え:",stars:"スター",newest:"最新",oldest:"最古",lastUpdated:"最終更新",mostStale:"最も古い",aToZ:"A-Z",zToA:"Z-A"}},readmePage:{title:"$t(grid.spicetifyMarketplace) - README",loading:"読み込み中...",errorLoading:"READMEの読み込み中にエラーが発生しました"},github:"GitHub",install:"インストール",remove:"削除",save:"保存",colour_one:"色",colour_other:"色",favourite:"お気に入り",notifications:{wrongLocalTheme:"config-xpui.iniのcurrent_themeを 'marketplace' に設定して、マーケットプレイスを使用してテーマをインストールしてください",tooManyRequests:"リクエストが多すぎます。時間をおいて再試行してください",noCdnConnection:"マーケットプレイスがCDNに接続できません。インターネットの設定を確認してください",markdownParsingError:"Markdownの解析エラー(HTTP {{status}})",noReadmeFile:"READMEが見つかりませんでした",themeInstallationError:"テーマのインストール中にエラーが発生しました",extensionInstallationError:"拡張機能のインストール中にエラーが発生しました"}}},ko:{translation:{settings:{title:"마켓플레이스 설정",optionsHeading:"설정",starCountLabel:"별점 개수",tagsLabel:"태그",showArchived:"보관된 리포지스토리 보기",devToolsLabel:"테마 개발자 도구",hideInstalledLabel:"설치된 기능은 탐색 결과에서 숨기기",colourShiftLabel:"매 분마다 색상 변경",albumArtBasedColors:"앨범 표지에 따라 색상 변경",albumArtBasedColorsMode:"색상 구성표 (색상Api) 모드",albumArtBasedColorsVibrancy:"앨범 표지에서 색상 추출",albumArtBasedColorsVibrancyToolTip:"탁색 (Desaturated): 가장 두드러지지만 밝기가 낮은 색상입니다.\n쨍한 백색 (Light Vibrant): 가장 생생하게 느껴지면서도 밝기가 조금 더 높아진 색상입니다.\n강조색 (Prominent): 앨범 아트에서 가장 눈에 띄는 색상입니다, 앨범 아트에서 가장 돋보이는 색이라고 할 수 있죠.\n높은 채도색 (Vibrant): 앨범 아트에서 가장 생생한 색상입니다.",albumArtColorsModeToolTip:"모노크롬 다크 (Monochrome Dark): 선택한 메인 색상을 기준으로 다양한 명암들과 회색을 섞어 만든 색상입니다. 이는 Monochrome Light의 반대 개념이죠.\n모노크롬 라이트 (Monochrome Light): 선택한 메인 색상을 기준으로 다양한 명암과 회색을 섞어 만든 색상입니다. Monochrome Light의 배경색은 Monochrome Dark의 전경색(배경색) 또는 텍스트의 색상이 되며, 그 반대도 마찬가지입니다.\n유사색 (Analogic): 선택한 메인 색상을 기준으로 색 팔레트에서 메인 색상에 인접한 색상들을 이용하여 만든 색상입니다.\n유사 보색 (Analogic Complementary): 선택한 메인 색상을 기준으로 색 팔레트에서 메인 색상에 인접한 색상들과 보색들을 함께 사용하여 만든 색입니다.\n트라이드 (Triad): 선택한 메인 색상을 기준으로 색팔레트에서 메인 색상으로부터 동일한 간격으로 떨어져 있는 세 가지 색상을 사용하여 만든 색상 구성표입니다.\n쿼드 (Quad): 선택한 메인 색상을 기준으로 색팔레트에서 메인 색상으로부터 90도 간격으로 떨어져 있는 네 가지 색상을 사용하여 만든 색상 구성표입니다.",tabsHeading:"탭",tabsDescription:"끌어 놓아 순서를 변경하고, 클릭하여 활성화 및 비활성화 합니다.",resetHeading:"\n초기화",resetBtn:"$t(settings.resetHeading)",resetDescription:"모든 확장 프로그램들과 테마들을 제거하고, 기본 설정으로 되돌립니다.",backupHeading:"백업/복구",backupLabel:"모든 마켓플레이스 데이터를 백업하거나 복원합니다.여기에는 마켓플레이스를 통해 설치된 항목들의 설정은 포함되지 않습니다.",backupBtn:"열기",versionHeading:"버전",versionBtn:"복사",versionCopied:"복사됨"},tabs:{Extensions:"확장 프로그램",Themes:"테마 목록",Snippets:"추가 기능",Apps:"앱 목록",Installed:"설치 목록"},snippets:{addTitle:"추가 기능 등록",duplicateName:"이 이름은 이미 사용되고 있습니다!",editTitle:"추가 기능 수정",viewTitle:"추가 기능",customCSS:"Custom CSS",customCSSPlaceholder:"자신의 CSS 파일을 이곳에 첨부하세요! 설치 목록 탭에서 찾을 수 있습니다.",snippetName:"추가 기능 이름",snippetNamePlaceholder:"추가 기능 이름을 이곳에 입력하세요!",snippetDesc:"추가 기능 설명",snippetDescPlaceholder:"추가 기능 설명을 이곳에 입력하세요!",snippetPreview:"추가 기능 미리보기 이미지",optional:"선택사항",addImage:"이미지 추가",changeImage:"이미지 바꾸기",saveCSS:"CSS 저장"},reloadModal:{title:"번경 사항 적용",description:"이 작업을 완료하려면 페이지를 재시작해야 합니다.",reloadNow:"지금 재시작",reloadLater:"나중에 재시작"},backupModal:{title:"$t(settings.backupHeading)",settingsCopied:"설정이 클립보드에 저장되었습니다.",noDataPasted:"붙여넣어진 데이터가 없습니다",invalidJSON:"유효하지 않은 JSON",inputLabel:"마켓 플레이스 설정",inputPlaceholder:"이곳에 설정을 복사/붙여넣기 하세요",exportBtn:"내보내기",importBtn:"가져오기",fileImportBtn:"파일에서 가져오기"},devTools:{title:"테마 개발자 도구",noThemeInstalled:"오류: 어떤 마켓플레이스 테마도 설치되지 않았습니다",noThemeManifest:"오류: 테마 매니페스트 찾을 수 없음",colorIniEditor:"Colour.ini 편집기",colorIniEditorPlaceholder:"[당신의-색상-구성표-이름]",invalidCSS:"유효치 않은 CSS"},updateModal:{title:"마켓플레이스 업데이트",description:"spicetify 마켓 플레이스를 업데이트 하여 새로운 기능들과 버그 픽스들을 제공받습니다.",currentVersion:"현재 버전: {{version}}",latestVersion:"지난 버전: {{version}}",whatsChanged:"새로운 기능",seeChangelog:"패치노트 보기",howToUpgrade:"업데이트 방법",viewGuide:"가이드 보기"},grid:{spicetifyMarketplace:"Spicetify 마켓플레이스",newUpdate:"새로운 업데이트",addCSS:"CSS 등록",search:"검색",installed:"설치됨",lastUpdated:"마지막 업데이트일 {{val, datetime}}",externalJS:"external JS",archived:"만료됨",dark:"다크 모드",light:"라이트 모드",sort:{label:"나열 기준:",stars:"별점",newest:"신규",oldest:"오래된 순",lastUpdated:"가장 최신 순",mostStale:"가장 오래된 순",aToZ:"A-Z 까지",zToA:"Z-A 까지"}},readmePage:{title:"$t(grid.spicetifyMarketplace) - Readme",loading:"로딩중...",errorLoading:"README를 불러오는 중 오류 발생"},github:"GitHub",install:"설치",remove:"제거",save:"저장",colour_one:"색상",colour_other:"색상들",favourite:"즐겨찾기",notifications:{wrongLocalTheme:"마켓플레이스를 사용하여 테마를 설치하려면 config-xpui.ini에서 current_theme를 'marketplace'로 설정하세요.",tooManyRequests:"요청이 너무 빈번합니다, 잠시 뒤 시도하세요",noCdnConnection:"마켓플레이스가 CDN에 접속할 수 없습니다. 현재 인터넷 구성을 확인해주세요.",markdownParsingError:"Markdown 구문 분석 오류 (HTTP {{status}})",noReadmeFile:"README 파일이 존재하지 않습니다",themeInstallationError:"테마를 설치하는데 오류가 있었습니다",extensionInstallationError:"확장 프로그램을 설치하는 데 오류가 발생했습니다"}}},pl:{translation:{settings:{title:"Ustawienia Marketplace",optionsHeading:"Opcje",starCountLabel:"Ilość gwiazdek",tagsLabel:"Tagi",showArchived:"Pokaż archiwalne repozytoria",devToolsLabel:"Narzędzia do tworzenia motywów",hideInstalledLabel:"Ukryj zainstalowane podczas przeglądania",colourShiftLabel:"Zmieniaj kolory co minutę",albumArtBasedColors:"Zmień kolory bazując na okładce albumu",albumArtBasedColorsMode:"Tryb schematu kolorów (ColorApi)",albumArtBasedColorsVibrancy:"Kolor pobrany z okładki albumu",albumArtBasedColorsVibrancyToolTip:"Nasycony: Kolor, który jest najbardziej widoczny, ale o znacznie mniejszej jasności. \nJasny wibrujący: Najbardziej żywy kolor, ale z nieco zwiększoną jasnością. \nWyraźny: Kolor, który najbardziej rzuca się w oczy na okładce albumu. \nWibrujący: Najbardziej żywy kolor na okładce albumu",albumArtColorsModeToolTip:"Monochromatyczny ciemny: Schemat kolorów oparty bezpośrednio na wybranym głównym kolorze, wykorzystujący różne odcienie głównego koloru i mieszający szarości w celu stworzenia schematu kolorów, jest to odwrotność Monochromatycznego jasnego. \nMonochromatyczny jasny: Schemat kolorów oparty bezpośrednio na wybranym głównym kolorze, wykorzystujący różne odcienie głównego koloru i mieszanie szarości w celu utworzenia schematu kolorów. Tło monochromatycznego światła będzie na pierwszym planie lub kolorem tekstu w monochromatycznym ciemnym i odwrotnie. \nAnalogowy: Schemat kolorów oparty na wybranym głównym kolorze, wykorzystujący kolory sąsiadujące z głównym kolorem na kole kolorów. \nUzupełnienie analogowe: Schemat kolorów oparty na wybranym głównym kolorze, wykorzystujący kolory sąsiadujące z głównym kolorem na kole kolorów i kolorem uzupełniającym. \nTriada: Schemat kolorów oparty na wybranym głównym kolorze, wykorzystujący kolory na kole kolorów, które są w równej odległości od głównego koloru. \nQuad: Schemat kolorów oparty na wybranym głównym kolorze, wykorzystujący kolory na kole kolorów, które są oddalone o 90 stopni od głównego koloru.",tabsHeading:"Karty",tabsDescription:"Przeciągnij i upuść, aby zmienić kolejność, kliknij, aby włączyć/wyłączyć",resetHeading:"Reset",resetBtn:"Zresetuj",resetDescription:"Odinstaluj wszystkie rozszerzenia, motywy i zresetuj preferencje",backupHeading:"Kopia zapasowa/Przywracanie kopii",backupLabel:"Utwórz kopię zapasową lub przywróć wszystkie dane Marketplace. Kopia nie zawiera ustawień dla rzeczy zainstalowanych poprzez Marketplace.",backupBtn:"Otwórz",versionHeading:"Wersja",versionBtn:"Skopiuj",versionCopied:"Skopiowano"},tabs:{Extensions:"Rozszerzenia",Themes:"Motywy",Snippets:"Snippety",Apps:"Aplikacje",Installed:"Zainstalowane"},snippets:{addTitle:"Dodaj Snippet",duplicateName:"Ta nazwa jest już zajęta!",editTitle:"Edytuj Snippet",viewTitle:"Pokaż Snippet",customCSS:"Niestandardowy CSS",customCSSPlaceholder:"Wprowadź tutaj swój własny CSS! Możesz go znaleźć w zakładce 'Zainstalowane' aby nim zarządzać.",snippetName:"Nazwa snippetu",snippetNamePlaceholder:"Wprowadź nazwę swojego niestandardowego snippetu",snippetDesc:"Opis snippetu",snippetDescPlaceholder:"Wpisz opis swojego snippetu",snippetPreview:"Podgląd snippetu",optional:"Opcjonalne",addImage:"Dodaj obraz",changeImage:"Zmień obraz",saveCSS:"Zapisz CSS"},reloadModal:{title:"Przeładuj",description:"Do ukończenia tej operacji wymagane jest przeładowanie strony.",reloadNow:"Przeładuj teraz",reloadLater:"Przeładuj póżniej"},backupModal:{title:"$t(settings.backupHeading)",settingsCopied:"Skopiowano do schowka",noDataPasted:"Dane nie zostały wklejone",invalidJSON:"Nieprawidłowy JSON",inputLabel:"Ustawienia Marketplace",inputPlaceholder:"Skopiuj/wklej tu swoje ustawienia",exportBtn:"Eksportuj",importBtn:"Importuj",fileImportBtn:"Importuj z pliku"},devTools:{title:"Narzędzia developerskie do motywów",noThemeInstalled:"Błąd: Nie zainstalowano motywu",noThemeManifest:"Błąd: Nie znaleziono pliku manifestu motywu",colorIniEditor:"Edytor color.ini",colorIniEditorPlaceholder:"[nazwa-twojego-koloru]",invalidCSS:"Nieprawidłowy CSS"},updateModal:{title:"Zaktualizuj Marketplace",description:"Zaktualizuj Spicetify Marketplace, aby otrzymywać nowe funkcje i poprawki błędów.",currentVersion:"Obecna wersja: {{version}}",latestVersion:"Najnowsza wersja: {{version}}",whatsChanged:"Co się zmieniło",seeChangelog:"Zobacz zmiany",howToUpgrade:"Jak zaktualizować",viewGuide:"Zobacz przewodnik"},grid:{spicetifyMarketplace:"Spicetify Marketplace",newUpdate:"Nowa aktualizacja",addCSS:"Dodaj CSS",search:"Wyszukaj",installed:"Zainstalowane",lastUpdated:"Ostatnio zaktualizowane {{val, datetime}}",externalJS:"zewnętrzny JS",archived:"archiwalny",dark:"ciemny",light:"jasny",sort:{label:"Sortuj po:",stars:"Ilość gwiazdek",newest:"Najnowsze",oldest:"Najstarsze",lastUpdated:"Ostatnio zaktualizowane",mostStale:"Najrzadziej aktualizowane",aToZ:"A-Z",zToA:"Z-A"}},readmePage:{title:"$t(grid.spicetifyMarketplace) - Readme",loading:"Ładowanie...",errorLoading:"Błąd podczas ładowania README"},github:"GitHub",install:"Zainstaluj",remove:"Odinstaluj",save:"Zapisz",colour_one:"kolor",colour_other:"kolory",favourite:"ulubione",notifications:{wrongLocalTheme:'Ustaw current_theme w config-xpui.ini na "marketplace", aby instalować motywy za pomocą Marketplace.',tooManyRequests:"Za dużo żądań, spokojnie",noCdnConnection:"Marketplace nie może połączyć się z CDN. Sprawdź swoją konfigurację internetową",markdownParsingError:"Błąd podczas parsowania markdownu (HTTP {{status}})",noReadmeFile:"Nie znaleziono README",themeInstallationError:"Wystąpił błąd podczas instalacji motywu",extensionInstallationError:"Wystąpił błąd podczas instalacji rozszerzenia"}}},"pt-BR":{translation:{settings:{title:"Configurações do Marketplace",optionsHeading:"Opções",starCountLabel:"Número de estrelas",tagsLabel:"Etiquetas",showArchived:"Exibir repositórios arquivados",devToolsLabel:"Ferramentas de desenvolvimento de temas",hideInstalledLabel:"Ocultar instalados ao navegar",colourShiftLabel:"Alterar cores a cada minuto",albumArtBasedColors:"Alterar as cores com base na capa do álbum",albumArtBasedColorsMode:"Modo de esquema de cores (ColorApi)",albumArtBasedColorsVibrancy:"Cor extraída da capa do álbum",albumArtBasedColorsVibrancyToolTip:"Desaturada: A cor mais proeminente, mas com muito menos brilho \n Vibrante clara: A cor mais vibrante, com o brilho levemente aumentado \n Proeminente: A cor mais destacada na capa do álbum \n Vibrante: A cor mais vibrante na capa do álbum",albumArtColorsModeToolTip:"Monocromático Escuro: um esquema de cores baseado diretamente na cor principal selecionada, usando diferentes tons da cor principal e misturando cinzas para criar um esquema de cores; este é o inverso do Monocromático Claro. \n Monocromático Claro: Um esquema de cores baseado diretamente na cor principal selecionada, usando diferentes tons da cor principal e misturando cinzas para criar um esquema de cores. O plano de fundo do Monocromático Claro seria o primeiro plano ou a cor do texto no Monocromático Escuro e vice-versa. \n Analógico: Um esquema de cores baseado na cor principal selecionada, usando as cores adjacentes à principal no círculo cromático. \n Analógico Complementar: Um esquema de cores baseado na cor principal selecionada, usando as cores adjacentes à cor principal no círculo cromático e a cor complementar. \n Tríade: Um esquema de cores baseado na cor principal selecionada, usando as cores no círculo cromático que são equidistantes da cor principal. \n Quadrado: Um esquema de cores baseado na cor principal selecionada, usando as cores no círculo cromático que estão a 90 graus da cor principal.",tabsHeading:"Abas",tabsDescription:"Arraste e solte para reordenar, clique para ativar/desativar",resetHeading:"Redefinir",resetBtn:"$t(settings.resetHeading)",resetDescription:"Desinstale todas as extensões e temas e redefina as preferências",backupHeading:"Cópia de segurança/Restaurar",backupLabel:"Faça uma cópia de segurança ou restaure todos os dados do Marketplace. Isto não inclui as configurações dos itens instalados via Marketplace.",backupBtn:"Abrir",versionHeading:"Versão",versionBtn:"Copiar",versionCopied:"Copiado"},tabs:{Extensions:"Extensões",Themes:"Temas",Snippets:"Snippets",Apps:"Aplicativos",Installed:"Instalados"},snippets:{addTitle:"Adicionar Snippet",duplicateName:"Esse nome já está em uso!",editTitle:"Editar Snippet",viewTitle:"Visualizar Snippet",customCSS:"CSS personalizado",customCSSPlaceholder:"Insira seu CSS personalizado aqui! Você pode gerenciá-lo na aba Instalados.",snippetName:"Nome do Snippet",snippetNamePlaceholder:"Digite um nome para seu snippet personalizado",snippetDesc:"Descrição do Snippet",snippetDescPlaceholder:"Digite uma descrição para seu snippet personalizado",snippetPreview:"Pré-visualização do Snippet",optional:"Opcional",addImage:"Adicionar imagem",changeImage:"Alterar imagem",saveCSS:"Salvar CSS"},reloadModal:{title:"Recarregar",description:"É necessário recarregar a página para concluir essa operação.",reloadNow:"Recarregar agora",reloadLater:"Recarregar depois"},backupModal:{title:"$t(settings.backupHeading)",settingsCopied:"Configurações copiadas para a área de transferência",settingsSaved:"Configurações salvas no arquivo",noDataPasted:"Nenhum dado colado",invalidJSON:"JSON inválido",inputLabel:"Configurações do Marketplace",inputPlaceholder:"Copie/cole suas configurações aqui",exportBtn:"Exportar",importBtn:"Importar",fileImportBtn:"Importar de arquivo"},devTools:{title:"Ferramentas de Desenvolvimento de Temas",noThemeInstalled:"Erro: Nenhum tema do Marketplace instalado",noThemeManifest:"Erro: Nenhum manifesto de tema encontrado",colorIniEditor:"Editor do Color.ini",colorIniEditorPlaceholder:"[nome-do-seu-esquema-de-cores]",invalidCSS:"CSS inválido"},updateModal:{title:"Atualizar o Marketplace",description:"Atualize o Spicetify Marketplace para receber novos recursos e correções de bugs.",currentVersion:"Versão atual: {{version}}",latestVersion:"Versão mais recente: {{version}}",whatsChanged:"O que mudou",seeChangelog:"Ver registro de alterações",howToUpgrade:"Como atualizar",viewGuide:"Ver guia"},grid:{spicetifyMarketplace:"Spicetify Marketplace",newUpdate:"Nova atualização",addCSS:"Adicionar CSS",search:"Buscar",installed:"Instalado",lastUpdated:"Última atualização {{val, datetime}}",externalJS:"JS externo",archived:"arquivado",dark:"escuro",light:"claro",sort:{label:"Ordenar por:",stars:"Estrelas",newest:"Mais recentes",oldest:"Mais antigos",lastUpdated:"Última atualização",mostStale:"Menos atualizados",aToZ:"A-Z",zToA:"Z-A"}},readmePage:{title:"$t(grid.spicetifyMarketplace) - Readme",loading:"Carregando...",errorLoading:"Erro ao carregar o README"},github:"GitHub",install:"Instalar",remove:"Remover",save:"Salvar",colour_one:"cor",colour_other:"cores",favourite:"favorito",notifications:{wrongLocalTheme:"Por favor, defina current_theme em config-xpui.ini para 'marketplace' para instalar temas usando o Marketplace",tooManyRequests:"Muitas solicitações, acalme-se",noCdnConnection:"Marketplace não consegue se conectar à CDN. Verifique sua configuração de Internet",markdownParsingError:"Erro ao processar markdown (HTTP {{status}})",noReadmeFile:"Nenhum README foi encontrado",themeInstallationError:"Ocorreu um erro ao instalar o tema",extensionInstallationError:"Ocorreu um erro ao instalar a extensão"}}},ru:{translation:{settings:{title:"Настройки",optionsHeading:"Основные",starCountLabel:"Отображать количество звезд",tagsLabel:"Отображать теги",showArchived:"Отображать архивные репозитории",devToolsLabel:"Включить инструменты разработчика тем",hideInstalledLabel:"Скрывать установленное в других вкладках",colourShiftLabel:"Менять цвета каждую минуту",albumArtBasedColors:"Использовать цвета на основе обложки альбома",albumArtBasedColorsMode:"Тип цвета",albumArtBasedColorsVibrancy:"Тип цветовой схемы на основе обложки альбома",albumArtBasedColorsVibrancyToolTip:"Desaturated: наиболее часто встречаемый в обложке цвет с малой яркостью \n Light Vibrant: самый насыщенный цвет с повышенной яркостью \n Prominent: наиболее часто встречаемый цвет в обложке альбома \n Vibrant: самый насыщенный цвет в обложке альбома",albumArtColorsModeToolTip:"Monochrome Dark, Monochrome Light: основаны иcключительно на выбранном цвете, дополнительные цвета создаются путем изменения яркости основого. Противоположны друг другу: цвет, являющийся фоновым в Monochrome Light, в Monochrome Dark будет цветом переднего плана и наоборот. \n Analogic: палитра определяется выбранным и цветами, смежными с ним на цветовом круге. \n Analogic Complementary: схожа c Analogic, но сожержит также дополнительный цвет. \n Triad: палитра определяется основным цветом и цветами, равноудаленными от него. \n Quad: палитра определяется выбранным цветом и цветами, расположенных под углом 90 градусов к нему.",tabsHeading:"Вкладки",tabsDescription:"Перетаскивание для изменения порядка, щелчок для включения/выключения",resetHeading:"Сброс",resetBtn:"Сбросить",resetDescription:"Удалить все и сбросить настройки",backupHeading:"Резервное копирование и восстановление",backupLabel:"Сохранить или восстановить все данные Маркетплейса, за исключением настроек установленных тем и расширений.",backupBtn:"Открыть",versionHeading:"Версия",versionBtn:"Копировать",versionCopied:"Скопировано"},tabs:{Extensions:"Расширения",Themes:"Темы",Snippets:"Сниппеты",Apps:"Приложения",Installed:"Установленное"},snippets:{addTitle:"Добавление сниппета",duplicateName:"Сниппет с таким названием уже существует",editTitle:"Редактирование сниппета",viewTitle:"Просмотр сниппета",customCSS:"CSS",customCSSPlaceholder:"Вставьте сюда CSS вашего сниппета",snippetName:"Название",snippetNamePlaceholder:"Введите название для вашего сниппета",snippetDesc:"Описание",snippetDescPlaceholder:"Введите описание для вашего сниппета",snippetPreview:"Превью",optional:"необязательно",addImage:"Добавить изображение",changeImage:"Изменить изображение",saveCSS:"Сохранить"},reloadModal:{title:"Перезагрузка",description:"Необходима перезагрузка страницы для применения изменений",reloadNow:"Перезагрузить сейчас",reloadLater:"Перезагрузить позже"},backupModal:{title:"$t(settings.backupHeading)",settingsCopied:"Настройки скопированы в буфер обмена",noDataPasted:"Ничего не вставлено",invalidJSON:"Неверный JSON",inputLabel:"Настройки Маркетплейса",inputPlaceholder:"Вставьте ваши настройки сюда",exportBtn:"Экспортировать",importBtn:"Импортировать",fileImportBtn:"Импортировать из файла"},devTools:{title:"Инструменты разработчика тем",noThemeInstalled:"Ошибка: Не установлена тема из Маркетплейса",noThemeManifest:"Ошибка: Не найден манифест темы",colorIniEditor:"Редактор color.ini",colorIniEditorPlaceholder:"[название-вашей-цветовой-схемы]",invalidCSS:"Неверный CSS"},updateModal:{title:"Обновление Маркетплейса",description:"Обновите Маркетплейс для получения новых функций и исправлений.",currentVersion:"Текущая версия: {{version}}",latestVersion:"Последняя версия: {{version}}",whatsChanged:"Что нового",seeChangelog:"Посмотреть изменения",howToUpgrade:"Инструкция по обновлению",viewGuide:"Посмотреть инструкцию"},grid:{spicetifyMarketplace:"Маркетплейс Spicetify",newUpdate:"Доступно обновление",addCSS:"Добавить CSS",search:"Искать",installed:"Установлено",lastUpdated:"Обновлено: {{val, datetime}}",externalJS:"содержит JS",archived:"архивировано",dark:"темный",light:"светлый",sort:{label:"Сортировать:",stars:"по количеству звезд",newest:"сначала новые",oldest:"сначала старые",lastUpdated:"сначала недавно обновленные",mostStale:"сначала давно не обновлявшиеся",aToZ:"по названию (A-Z)",zToA:"по названию (Z-A)"}},readmePage:{title:"$t(grid.spicetifyMarketplace) - Readme",loading:"Загрузка...",errorLoading:"Ошибка загрузки README"},github:"GitHub",install:"Установить",remove:"Удалить",save:"Сохранить",colour_one:"цвет",colour_other:"цвета",favourite:"избранное",notifications:{wrongLocalTheme:"Пожалуйста, измените значение current_theme в config-xpui.ini на 'marketplace', чтобы использовать темы из Маркетплейса",tooManyRequests:"Слишком много запросов. Пожалуйста, попробуйте позже",noCdnConnection:"Маркетплейс не может подключиться к CDN. Пожалуйста, попробуйте позже",markdownParsingError:"Ошибка при парсинге Markdown (HTTP {{status}})",noReadmeFile:"README не найден",themeInstallationError:"Ошибка при установке темы",extensionInstallationError:"Ошибка при установке расширения"}}},tr:{translation:{settings:{title:"Marketplace Ayarları",optionsHeading:"Seçenekler",starCountLabel:"Yıldız sayısı",tagsLabel:"Etiketler",showArchived:"Arşivlenmiş repoları göster",devToolsLabel:"Tema geliştirici araçları",hideInstalledLabel:"Göz atarken yüklü olanları gizle",colourShiftLabel:"Renkleri her dakika değiştir",albumArtBasedColors:"Albüm kapağına göre renkleri değiştir",albumArtBasedColorsMode:"Renk şeması (ColorApi) modu",albumArtBasedColorsVibrancy:"Albüm kapağından alınan renk",albumArtBasedColorsVibrancyToolTip:"Doygunluğu Azaltılmış: En belirgin olan ancak çok daha az parlaklığa sahip renk \n Açık Canlı: En canlı renk, ancak parlaklığı bir miktar artırılmış \n Öne Çıkan: Albüm kapağında en çok göze çarpan renk \n Canlı: Albüm kapağındaki en canlı renk",albumArtColorsModeToolTip:"Monokrom Koyu: Seçilen ana renge dayalı, ana rengin farklı tonlarını kullanan ve gri tonlarıyla karıştırarak bir renk şeması oluşturan bir düzen. Monokrom Açık'ın tersidir. \n Monokrom Açık: Seçilen ana renge dayalı, ana rengin farklı tonlarını kullanan ve gri tonlarıyla karıştırarak bir renk şeması oluşturan bir düzen. Monokrom Açık'ın arka planı, Monokrom Koyu'daki ön plan veya metin rengi olacaktır ve tam tersi. \n Analog: Seçilen ana renge dayalı, renk çarkında ana rengin bitişiğindeki renkleri kullanan bir renk şeması. \n Analog Tamamlayıcı: Seçilen ana renge dayalı, renk çarkında ana rengin bitişiğindeki renkleri ve tamamlayıcı rengi kullanan bir renk şeması. \n Üçlü: Seçilen ana renge dayalı, renk çarkında ana renge eşit uzaklıktaki renkleri kullanan bir renk şeması. \n Dörtlü: Seçilen ana renge dayalı, renk çarkında ana renge 90 derece uzaklıktaki renkleri kullanan bir renk şeması.",tabsHeading:"Sekmeler",tabsDescription:"Yeniden sıralamak için sürükleyip bırakın, etkinleştirmek/devre dışı bırakmak için tıklayın",resetHeading:"Sıfırla",resetBtn:"$t(settings.resetHeading)",resetDescription:"Tüm eklentileri ve temaları kaldırıp tercihleri sıfırla",backupHeading:"Yedekle/Geri Yükle",backupLabel:"Tüm Marketplace verilerini yedekleyin veya geri yükleyin. Bu, Marketplace ile yüklenen öğelerin ayarlarını kapsamaz.",backupBtn:"Aç",versionHeading:"Sürüm",versionBtn:"Kopyala",versionCopied:"Kopyalandı"},tabs:{Extensions:"Eklentiler",Themes:"Temalar",Snippets:"Snippet'ler",Apps:"Uygulamalar",Installed:"Yüklenenler"},snippets:{addTitle:"Snippet Ekle",duplicateName:"Bu isim zaten alınmış!",editTitle:"Snippet'i Düzenle",viewTitle:"Snippet'i Görüntüle",customCSS:"Özel CSS",customCSSPlaceholder:"Kendi özel CSS'inizi buraya girin. Yönetim için snippet'leri Yüklenenler sekmesinde bulabilirsiniz.",snippetName:"Snippet Adı",snippetNamePlaceholder:"Özel snippet'iniz için bir ad girin",snippetDesc:"Snippet Açıklaması",snippetDescPlaceholder:"Özel snippet'iniz için bir açıklama girin",snippetPreview:"Snippet Önizlemesi",optional:"İsteğe Bağlı",addImage:"Resim ekle",changeImage:"Resmi değiştir",saveCSS:"CSS'i Kaydet"},reloadModal:{title:"Yeniden Yükle",description:"Bu işlemi tamamlamak için sayfanın yeniden yüklenmesi gerekiyor.",reloadNow:"Şimdi yeniden yükle",reloadLater:"Daha sonra yeniden yükle"},backupModal:{title:"$t(settings.backupHeading)",settingsCopied:"Ayarlar panoya kopyalandı",noDataPasted:"Yapıştırılan veri yok",invalidJSON:"Geçersiz JSON",inputLabel:"Marketplace Ayarları",inputPlaceholder:"Ayarlarınızı buraya kopyalayıp yapıştırın",exportBtn:"Dışa Aktar",importBtn:"İçe Aktar",fileImportBtn:"Dosyadan içe aktar"},devTools:{title:"Tema Geliştirici Araçları",noThemeInstalled:"Hata: Yüklü bir marketplace teması yok",noThemeManifest:"Hata: Tema manifestosu bulunamadı",colorIniEditor:"Color.ini Düzenleyici",colorIniEditorPlaceholder:"[renk-semanızın-adı]",invalidCSS:"Geçersiz CSS"},updateModal:{title:"Marketplace'i Güncelle",description:"Yeni özellikleri ve hata düzeltmelerini almak için Spicetify Marketplace'i güncelleyin.",currentVersion:"Mevcut sürüm: {{version}}",latestVersion:"En son sürüm: {{version}}",whatsChanged:"Neler Değişti",seeChangelog:"Değişiklik günlüğünü gör",howToUpgrade:"Nasıl yükseltilir",viewGuide:"Rehberi görüntüle"},grid:{spicetifyMarketplace:"Spicetify Marketplace",newUpdate:"Yeni güncelleme",addCSS:"CSS Ekle",search:"Ara",installed:"Yüklü",lastUpdated:"Son güncelleme: {{val, datetime}}",externalJS:"harici JS",archived:"arşivlenmiş",dark:"koyu",light:"açık",sort:{label:"Sırala:",stars:"Yıldız",newest:"En Yeni",oldest:"En Eski",lastUpdated:"Son Güncellenen",mostStale:"En Eski Güncelleme",aToZ:"A-Z",zToA:"Z-A"}},readmePage:{title:"$t(grid.spicetifyMarketplace) - Benioku",loading:"Yükleniyor...",errorLoading:"README yüklenirken hata oluştu"},github:"GitHub",install:"Yükle",remove:"Kaldır",save:"Kaydet",colour_one:"renk",colour_other:"renkler",favourite:"favori",notifications:{wrongLocalTheme:"Marketplace kullanarak tema yüklemek için lütfen config-xpui.ini dosyasındaki current_theme ayarını 'marketplace' olarak değiştir",tooManyRequests:"Çok fazla istek gönderildi, lütfen bekleyin",noCdnConnection:"Marketplace, CDN'e bağlanamıyor. Lütfen internet bağlantınızı kontrol edin",markdownParsingError:"Markdown ayrıştırılırken hata oluştu (HTTP {{status}})",noReadmeFile:"README dosyası bulunamadı",themeInstallationError:"Tema yüklenirken bir hata oluştu",extensionInstallationError:"Eklenti yüklenirken bir hata oluştu"}}},uk:{translation:{settings:{title:"Налаштування Маркетплейсу",optionsHeading:"Налаштування",starCountLabel:"Кількість зірок",tagsLabel:"Теги",showArchived:"Показати заархівовані репозиторії",devToolsLabel:"Інструменти розробника тем",hideInstalledLabel:"Сховати встановлені",colourShiftLabel:"Змінювати колір кожну хвилину",albumArtBasedColors:"Змінювати колір в залежності від обкладинки альбому",albumArtBasedColorsMode:"Кольорова схема (ColorApi)",albumArtBasedColorsVibrancy:"Колір взято з обкладинки альбому",albumArtBasedColorsVibrancyToolTip:"Насичений: Колір, який є найбільш помітним, але з набагато меншою яскравістю \n Light Vibrant (Яскравий): Найяскравіший колір, але з дещо підвищеною яскравістю \n Виразний: Колір, який найбільше виділяється на обкладинці альбому \n Яскравий: Найяскравіший колір на обкладинці альбому",albumArtColorsModeToolTip:"Монохромний темний: кольорова схема, що базується безпосередньо на вибраному основному кольорі, з використанням різних відтінків основного кольору та змішуванням сірих кольорів для створення кольорової схеми, це протилежність монохромного світлого. \n Монохромний світлий: Кольорова схема, що базується безпосередньо на вибраному основному кольорі, з використанням різних відтінків основного кольору та змішуванням сірих кольорів для створення кольорової схеми. Тло монохромного світлого буде переднім планом або кольором тексту на монохромному темному, і навпаки. \n Аналоговий: Кольорова схема, заснована на вибраному основному кольорі з використанням кольорів, суміжних з основним кольором на колірному колі. \n Аналогово-доповнювальна: Кольорова схема на основі вибраного основного кольору з використанням сусідніх з ним кольорів на колірному колі та додаткового кольору. \n Тріада: Кольорова схема на основі вибраного основного кольору з використанням кольорів на колі кольорів, рівновіддалених від основного кольору. \n Квадрат: Кольорова схема на основі вибраного основного кольору з використанням кольорів на колі кольорів, розташованих під кутом 90 градусів до основного кольору.",tabsHeading:"Вкладки",tabsDescription:"Перетягніть, щоб змінити порядок, натисніть, щоб увімкнути/вимкнути",resetHeading:"Скинути",resetBtn:"$t(settings.resetHeading)",resetDescription:"Видалити усі розширення і теми, та скинути налаштування",backupHeading:"Резервне копіювання/Відновлення",backupLabel:"Копіювати або відновити всі дані Маркетплейсу. Це не включає в себе налаштування всього, що встановлено через Маркетплейс",backupBtn:"Відкрити",versionHeading:"Версія",versionBtn:"Копіювати",versionCopied:"Скопійовано"},tabs:{Extensions:"Розширення",Themes:"Теми",Snippets:"Фрагменти",Apps:"Застосунки",Installed:"Встановлено"},snippets:{addTitle:"Додати фрагмент",duplicateName:"Ця назва вже зайнята!",editTitle:"Редагувати фрагмент",viewTitle:"Переглянути фрагмент",customCSS:"Користувацький CSS",customCSSPlaceholder:"Введіть свій власний CSS тут! Ви можете знайти їх у вкладці управління встановленими файлами.",snippetName:"Назва фрагменту",snippetNamePlaceholder:"Введіть ім'я для вашого користувацького фрагменту",snippetDesc:"Опис фрагменту",snippetDescPlaceholder:"Введіть опис для вашого користувацького фрагменту",snippetPreview:"Перегляд фрагменту",optional:"Необов'язковий",addImage:"Додати світлину",changeImage:"Змінити світлину",saveCSS:"Зберегти CSS"},reloadModal:{title:"Перезавантажити",description:"Для завершення цієї операції потрібно перезавантажити сторінку",reloadNow:"Перезавантажити зараз",reloadLater:"Перезавантажити пізніше"},backupModal:{title:"$t(settings.backupHeading)",settingsCopied:"Налаштування скопійовано у буфер обміну",noDataPasted:"Дані не вставлено",invalidJSON:"Недійсний JSON",inputLabel:"Налаштування Маркетплейсу",inputPlaceholder:"Скопіювати/вставити свої налаштування сюди",exportBtn:"Експорт",importBtn:"Імпорт",fileImportBtn:"Імпортувати з файлу"},devTools:{title:"Інструменти розробника тем",noThemeInstalled:"Помилка: Тему Маркетплейсу не встановлено",noThemeManifest:"Помилка: маніфест теми не знайдено",colorIniEditor:"Редактор Color.ini",colorIniEditorPlaceholder:"[your-colour-scheme-name]",invalidCSS:"Недійсний CSS"},updateModal:{title:"Оновити Маркетплейс",description:"Оновіть Spicetify Marketplace щоб отримувати нові функції і багфікси.",currentVersion:"Поточна версія: {{version}}",latestVersion:"Остання версія: {{version}}",whatsChanged:"Що змінилося",seeChangelog:"Переглянути список змін",howToUpgrade:"Як оновлюватися",viewGuide:"Переглянути посібник"},grid:{spicetifyMarketplace:"Маркетплейс Spicetify",newUpdate:"Нове оновлення",addCSS:"Додати CSS",search:"Пошук",installed:"Встановлено",lastUpdated:"Востаннє оновлено {{val, datetime}}",externalJS:"зовнішній JS",archived:"заархівоване",dark:"темний",light:"світлий",sort:{label:"Сортувати за:",stars:"Зірки",newest:"Новіші",oldest:"Старіші",lastUpdated:"Останнє оновлене",mostStale:"Найнесвіжіший",aToZ:"A-Z",zToA:"Z-A"}},readmePage:{title:"$t(grid.spicetifyMarketplace) - Readme",loading:"Завантаження...",errorLoading:"Помилка завантаження README"},github:"GitHub",install:"Встановити",remove:"Видалити",save:"Зберегти",colour_one:"колір",colour_other:"кольори",favourite:"улюблене",notifications:{wrongLocalTheme:"Будь ласка, поставте 'marketplace' у змінну current_theme у файлі config-xpui.ini щоб встановлювати теми за допомогою Маркетплейсу",tooManyRequests:"Забагато запитів, зачекайте",noCdnConnection:"Маркетплейс не може зв'язатися з CDN. Будь ласка, перевірте вашу конфігурацію Інтернету",markdownParsingError:"Помилка розбору markdown (HTTP {{status}})",noReadmeFile:"README не знайдено",themeInstallationError:"Сталася помилка при встановленні теми",extensionInstallationError:"Сталася помилка при встановленні розширення"}}},"zh-CN":{translation:{settings:{title:"Marketplace 设置",optionsHeading:"选项",starCountLabel:"星标数",tagsLabel:"标签",showArchived:"显示已存档仓库",devToolsLabel:"主题开发者工具",hideInstalledLabel:"浏览时隐藏已安装项目",colourShiftLabel:"每分钟切换配色",albumArtBasedColors:"根据专辑封面更改配色",albumArtBasedColorsMode:"配色方案 (ColorApi) 模式",albumArtBasedColorsVibrancy:"专辑封面取色方法",albumArtBasedColorsVibrancyToolTip:"Desaturated:最突出但较暗的颜色 \n Light Vibrant:最鲜艳的颜色,但略微调亮 \n Prominent:出现最多的颜色 \n Vibrant:最鲜艳的颜色",albumArtColorsModeToolTip:"Monochrome Dark:直接以所选主色为基础,使用不同色调的主色混合灰色形成配色,与 Monochrome Light 相反。 \n Monochrome Light:直接以所选主色为基础,使用不同色调的主色混合灰色形成配色,Monochrome Light 的背景色将会是 Monochrome Dark 的前景色或文本颜色,反之亦然。 \n Analogic:以所选主色为基础,使用色轮上主色的邻近色形成配色。 \n Analogic Complementary:以所选主色为基础,使用色轮上主色的邻近色和互补色形成配色。 \n Triad:以所选主色为基础,使用色轮上主色的等距色形成配色。 \n Quad:以所选主色为基础,使用色轮上与主色成90度角的颜色形成配色。",tabsHeading:"标签页",tabsDescription:"拖放以排序,点击以启用/禁用",resetHeading:"重置",resetBtn:"$t(settings.resetHeading)",resetDescription:"卸载所有扩展和主题,并重置设置",backupHeading:"备份/还原",backupLabel:"备份或还原所有 Marketplace 数据,这不会影响其安装的内容。",backupBtn:"打开",versionHeading:"版本",versionBtn:"复制",versionCopied:"已复制"},tabs:{Extensions:"扩展",Themes:"主题",Snippets:"片段",Apps:"应用",Installed:"已安装"},snippets:{addTitle:"添加片段",duplicateName:"该名称已被使用!",editTitle:"编辑片段",viewTitle:"查看片段",customCSS:"自定义 CSS",customCSSPlaceholder:"在此处输入你的自定义 CSS!你可以在「已安装」标签页管理它们。",snippetName:"片段名称",snippetNamePlaceholder:"输入自定义片段的名称",snippetDesc:"片段描述",snippetDescPlaceholder:"输入自定义片段的描述",snippetPreview:"片段预览",optional:"选填",addImage:"添加图像",changeImage:"更改图像",saveCSS:"保存 CSS"},reloadModal:{title:"重新加载",description:"需要重新加载页面,才能完成此操作。",reloadNow:"立即重新加载",reloadLater:"稍后重新加载"},backupModal:{title:"$t(settings.backupHeading)",settingsCopied:"设置已复制到剪切板",settingsSaved:"设置已保存到文件",noDataPasted:"未粘贴数据",invalidJSON:"无效的 JSON",inputLabel:"Marketplace 设置",inputPlaceholder:"在此处复制/粘贴设置",exportBtn:"导出",importBtn:"导入",fileImportBtn:"从文件导入"},devTools:{title:"主题开发者工具",noThemeInstalled:"错误:未安装 Marketplace 主题",noThemeManifest:"错误:未找到主题清单文件",colorIniEditor:"Color.ini 编辑器",colorIniEditorPlaceholder:"[your-colour-scheme-name]",invalidCSS:"无效的 CSS"},updateModal:{title:"更新 Marketplace",description:"更新 Spicetify Marketplace 以获取新功能和错误修复。",currentVersion:"当前版本:{{version}}",latestVersion:"最新版本:{{version}}",whatsChanged:"新版变化",seeChangelog:"查看更新日志",howToUpgrade:"升级指引",viewGuide:"查看指南"},grid:{spicetifyMarketplace:"Spicetify Marketplace",newUpdate:"有更新",addCSS:"添加 CSS",search:"搜索",installed:"已安装",lastUpdated:"上次更新于 {{val, datetime}}",externalJS:"外部 JS",archived:"已存档",dark:"深色",light:"浅色",sort:{label:"排序:",stars:"星标",newest:"最新",oldest:"最旧",lastUpdated:"最近更新",mostStale:"最久未更新",aToZ:"A-Z",zToA:"Z-A"}},readmePage:{title:"$t(grid.spicetifyMarketplace) - README",loading:"加载中...",errorLoading:"加载 README 时出错"},github:"GitHub",install:"安装",remove:"移除",save:"保存",colour_one:"颜色",colour_other:"颜色",favourite:"收藏",notifications:{wrongLocalTheme:"请将 config-xpui.ini 中的 current_theme 设置为 'marketplace' 以使用 Marketplace 安装主题",tooManyRequests:"请求过于频繁,请稍后再试",noCdnConnection:"Marketplace 无法连接至 CDN,请检查你的网络配置",markdownParsingError:"解析 markdown 时出错 (HTTP {{status}})",noReadmeFile:"未找到 README 文件",themeInstallationError:"安装主题时出错",extensionInstallationError:"安装扩展时出错"}}},"zh-TW":{translation:{settings:{title:"設定",optionsHeading:"選項",starCountLabel:"收藏數",tagsLabel:"標籤",devToolsLabel:"主題開發者工具",hideInstalledLabel:"瀏覽時隱藏已安裝項目",colourShiftLabel:"每分鐘進行色調偏移",tabsHeading:"分頁",tabsDescription:"拖放更改顺序,点击启用/禁用",resetHeading:"重設",resetBtn:"$t(settings.resetHeading)",resetDescription:"解除安裝所有擴充套件和主題, 並重設偏好設定",backupHeading:"備份與還原",backupLabel:"備份或還原所有 Marketplace 中的資料(不包含從 Marketplace 安裝的擴充元件的設定)。",backupBtn:"開啟",albumArtBasedColors:"根據專輯封面選色",albumArtBasedColorsMode:"色彩方案 (ColorApi) 模式",albumArtBasedColorsVibrancy:"已從專輯封面抽取顏色",albumArtBasedColorsVibrancyToolTip:"Desaturated:最突出但亮度較低的顏色 \n Light Vibrant:最接近 Vibrant 的色彩,但亮度稍微提升一些 \n Prominent:專輯封面裡面出現最多的色彩 \n Vibrant:專輯中最明亮的色彩",albumArtColorsModeToolTip:"Monochrome Dark:這個色彩方案直接以選擇的主色彩為基礎,但使用比較不一樣的色調並且融入灰色。這和 Monochrome Light 正好相反。 \n Monochrome Light:這個色彩方案直接以選擇的主色彩為基礎,但使用比較不一樣的色調並且融入灰色。這和 Monochrome Light 正好相反。Monochrome Light 的背景色會是 Monochrome Dark 的前景或文字顏色,反之亦然。 \n Analogic:這個色彩方案以選擇的主色彩為基礎,使用色環上主色彩鄰近的色彩。 \n Analogic Complementary:這個色彩方案以選擇的主色彩為基礎,使用色環上主色彩鄰近的色彩以及互補色。 \n Triad:這個色彩方案以選擇的主色彩為基礎,使用色環上和主色彩距離相等的顏色。 \n Quad:這個色彩方案以選擇的主色彩為基礎,使用色環上和主色彩差 90 度的顏色。",versionHeading:"版本",versionBtn:"複製",versionCopied:"已複製"},tabs:{Extensions:"擴充套件",Themes:"主題",Snippets:"微調片段",Apps:"功能模組",Installed:"已安裝項目"},snippets:{addTitle:"加入微調片段",editTitle:"編輯微調片段",viewTitle:"檢視微調片段",customCSS:"自訂 CSS",customCSSPlaceholder:"這裡可以輸入您的自訂 CSS!您可以在「已安裝項目」分頁中看到這些片段,進而進行管理。",snippetName:"微調片段名稱",snippetNamePlaceholder:"輸入自訂微調片段的名稱",snippetDesc:"微調片段描述",snippetDescPlaceholder:"輸入自訂微調片段的描述",snippetPreview:"微調片段預覽圖",optional:"非必須",addImage:"加入影像",changeImage:"更改影像",saveCSS:"儲存 CSS"},reloadModal:{title:"重新載入",description:"需要重新載入頁面,才能完成這個操作。",reloadNow:"立即重新載入",reloadLater:"稍後重新載入"},backupModal:{title:"$t(settings.backupHeading)",settingsCopied:"已將設定複製至剪貼簿",noDataPasted:"沒有貼上資料",invalidJSON:"JSON 無效",inputLabel:"Marketplace 設定",inputPlaceholder:"在此複製或貼上設定",exportBtn:"匯出",importBtn:"匯入",fileImportBtn:"從檔案匯入"},devTools:{title:"主題開發者工具",noThemeInstalled:"錯誤:沒有安裝 Marketplace 主題",noThemeManifest:"錯誤:找不到主題資訊清單",colorIniEditor:"Color.ini 編輯器",colorIniEditorPlaceholder:"[您的色彩配置名稱]",invalidCSS:"CSS 無效"},grid:{spicetifyMarketplace:"Spicetify Marketplace",newUpdate:"有更新",addCSS:"加入 CSS",search:"搜尋",installed:"已經安裝",lastUpdated:"上次更新於 {{val, datetime}}",externalJS:"有外部 JS",dark:"暗色",light:"亮色"},readmePage:{title:"$t(grid.spicetifyMarketplace) – 說明",loading:"正在載入……",errorLoading:"載入 README 時發生錯誤"},github:"GitHub",install:"安裝",remove:"移除",save:"儲存",colour_one:"色彩",colour_other:"色彩",favourite:"收藏"}}};pt.use(Qt).init({resources:py,lng:Spicetify.Locale?.getLocale?.()??navigator.language,fallbackLng:"en",interpolation:{escapeValue:!1}});var I$=nr()(class extends Ut.default.Component{state={count:0,CONFIG:{},storageReady:!1,storageUnreadable:!1};CONFIG;constructor(e){super(e),this.CONFIG={}}createConfig(){var e=T(x.tabs,null);let t=[];try{if(t=e,!Array.isArray(t))throw new Error("Could not parse marketplace tabs key");if(0===t.length)throw new Error("Empty marketplace tabs key");if(0<t.filter(e=>!e).length)throw new Error("Falsey marketplace tabs key")}catch{t=dr,E.setItem(x.tabs,JSON.stringify(t))}let r={},n=null;try{var i=T(x.themeInstalled,null);if(i){var a=T(i,null);if(!a)throw new Error("No installed theme data");r=a.schemes,n=a.activeScheme}else console.debug("No theme set as installed")}catch(e){console.error(e)}const o={visual:{stars:JSON.parse(T("marketplace:stars",!0)),tags:JSON.parse(T("marketplace:tags",!0)),showArchived:JSON.parse(T("marketplace:showArchived",!1)),hideInstalled:JSON.parse(T("marketplace:hideInstalled",!1)),colorShift:JSON.parse(T("marketplace:colorShift",!1)),themeDevTools:JSON.parse(T("marketplace:themeDevTools",!1)),albumArtBasedColors:JSON.parse(T("marketplace:albumArtBasedColors",!1)),albumArtBasedColorsMode:T("marketplace:albumArtBasedColorsMode")||"monochrome-light",albumArtBasedColorsVibrancy:T("marketplace:albumArtBasedColorsVibrancy")||"PROMINENT",type:JSON.parse(T("marketplace:type",!1)),followers:JSON.parse(T("marketplace:followers",!1))},tabs:t,activeTab:T(x.activeTab,t[0]),theme:{activeThemeKey:T(x.themeInstalled,null),schemes:r,activeScheme:n},sort:T(x.sort,"stars")};return o.activeTab&&o.tabs.filter(e=>e.name===o.activeTab).length||(o.activeTab=o.tabs[0].name),o}async componentDidMount(){try{await av()}catch(e){return console.error("Marketplace storage could not be read",e),void this.setState({storageUnreadable:!0})}this.CONFIG=this.createConfig(),this.setState({CONFIG:this.CONFIG,storageReady:!0})}updateConfig=e=>{this.CONFIG={...e},console.debug("updated config",this.CONFIG),this.setState({CONFIG:{...e}})};render(){var e,t;return this.state.storageUnreadable?Ut.default.createElement("div",{className:"marketplace-storage-error"},w("grid.storageUnreadable")):this.state.storageReady?({location:e,replace:t}=Spicetify.Platform.History,e.pathname===mr+"/readme"?e.state?.data?Ut.default.createElement(S$,{title:w("readmePage.title"),data:e.state.data}):(t(mr),null):Ut.default.createElement(k$,{title:w("grid.spicetifyMarketplace"),CONFIG:this.CONFIG,updateAppConfig:this.updateConfig})):null}}),x$=r(h());return fy=Fe,U(_({},"__esModule",{value:!0}),fy)})();const render=()=>marketplace.default();