PageSourceSearch

https://bitcoinismore.org/_next/static/chunks/88-d776e4c9739b3c41.js?dpl=dpl_HMMDRMYiXLYErEMiAfLkHRCucnEJ

js bitcoinismore.org collected 2026-10-04 18:37:20 UTC 148,347 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[88],{16463:(e,t,i)=>{"use strict";var r=i(71169);i.o(r,"useRouter")&&i.d(t,{useRouter:function(){return r.useRouter}})},31877:(e,t,i)=>{"use strict";i.d(t,{default:()=>a.a});var r=i(84080),a=i.n(r)},7449:(e,t)=>{"use strict";function i(){return null}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},49189:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{cancelIdleCallback:function(){return r},requestIdleCallback:function(){return i}});let i="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},84080:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{default:function(){return v},handleClientScriptLoad:function(){return m},initScriptLoader:function(){return g}});let r=i(99920),a=i(41452),n=i(57437),s=r._(i(54887)),o=a._(i(2265)),l=i(36590),d=i(4071),c=i(49189),u=new Map,h=new Set,p=e=>{if(s.default.preinit){e.forEach(e=>{s.default.preinit(e,{as:"style"})});return}if("undefined"!=typeof window){let t=document.head;e.forEach(e=>{let i=document.createElement("link");i.type="text/css",i.rel="stylesheet",i.href=e,t.appendChild(i)})}},f=e=>{let{src:t,id:i,onLoad:r=()=>{},onReady:a=null,dangerouslySetInnerHTML:n,children:s="",strategy:o="afterInteractive",onError:l,stylesheets:c}=e,f=i||t;if(f&&h.has(f))return;if(u.has(t)){h.add(f),u.get(t).then(r,l);return}let m=()=>{a&&a(),h.add(f)},g=document.createElement("script"),y=new Promise((e,t)=>{g.addEventListener("load",function(t){e(),r&&r.call(this,t),m()}),g.addEventListener("error",function(e){t(e)})}).catch(function(e){l&&l(e)});n?(g.innerHTML=n.__html||"",m()):s?(g.textContent="string"==typeof s?s:Array.isArray(s)?s.join(""):"",m()):t&&(g.src=t,u.set(t,y)),(0,d.setAttributesFromProps)(g,e),"worker"===o&&g.setAttribute("type","text/partytown"),g.setAttribute("data-nscript",o),c&&p(c),document.body.appendChild(g)};function m(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>f(e))}):f(e)}function g(e){e.forEach(m),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");h.add(t)})}function y(e){let{id:t,src:i="",onLoad:r=()=>{},onReady:a=null,strategy:d="afterInteractive",onError:u,stylesheets:p,...m}=e,{updateScripts:g,scripts:y,getIsSsr:v,appDir:_,nonce:b}=(0,o.useContext)(l.HeadManagerContext),w=(0,o.useRef)(!1);(0,o.useEffect)(()=>{let e=t||i;w.current||(a&&e&&h.has(e)&&a(),w.current=!0)},[a,t,i]);let x=(0,o.useRef)(!1);if((0,o.useEffect)(()=>{!x.current&&("afterInteractive"===d?f(e):"lazyOnload"===d&&("complete"===document.readyState?(0,c.requestIdleCallback)(()=>f(e)):window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>f(e))})),x.current=!0)},[e,d]),("beforeInteractive"===d||"worker"===d)&&(g?(y[d]=(y[d]||[]).concat([{id:t,src:i,onLoad:r,onReady:a,onError:u,...m}]),g(y)):v&&v()?h.add(t||i):v&&!v()&&f(e)),_){if(p&&p.forEach(e=>{s.default.preinit(e,{as:"style"})}),"beforeInteractive"===d)return i?(s.default.preload(i,m.integrity?{as:"script",integrity:m.integrity,nonce:b,crossOrigin:m.crossOrigin}:{as:"script",nonce:b,crossOrigin:m.crossOrigin}),(0,n.jsx)("script",{nonce:b,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+J
1SON.stringify([i,{...m,id:t}])+")"}})):(m.dangerouslySetInnerHTML&&(m.children=m.dangerouslySetInnerHTML.__html,delete m.dangerouslySetInnerHTML),(0,n.jsx)("script",{nonce:b,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...m,id:t}])+")"}}));"afterInteractive"===d&&i&&s.default.preload(i,m.integrity?{as:"script",integrity:m.integrity,nonce:b,crossOrigin:m.crossOrigin}:{as:"script",nonce:b,crossOrigin:m.crossOrigin})}return null}Object.defineProperty(y,"__nextScript",{value:!0});let v=y;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4071:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"setAttributesFromProps",{enumerable:!0,get:function(){return n}});let i={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"},r=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"];function a(e){return["async","defer","noModule"].includes(e)}function n(e,t){for(let[n,s]of Object.entries(t)){if(!t.hasOwnProperty(n)||r.includes(n)||void 0===s)continue;let o=i[n]||n.toLowerCase();"SCRIPT"===e.tagName&&a(o)?e[o]=!!s:e.setAttribute(o,String(s)),(!1===s||"SCRIPT"===e.tagName&&a(o)&&(!s||"false"===s))&&(e.setAttribute(o,""),e.removeAttribute(o))}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81269:()=>{},40882:(e,t,i)=>{"use strict";i.d(t,{Fw:()=>x,VY:()=>A,fC:()=>O,p_:()=>m,wy:()=>b,xz:()=>T});var r=i(2265),a=i(78149),n=i(98324),s=i(91715),o=i(1336),l=i(1584),d=i(25171),c=i(31383),u=i(53201),h=i(57437),p="Collapsible",[f,m]=(0,n.b)(p),[g,y]=f(p),v=r.forwardRef((e,t)=>{let{__scopeCollapsible:i,open:a,defaultOpen:n,disabled:o,onOpenChange:l,...c}=e,[f,m]=(0,s.T)({prop:a,defaultProp:null!=n&&n,onChange:l,caller:p});return(0,h.jsx)(g,{scope:i,disabled:o,contentId:(0,u.M)(),open:f,onOpenToggle:r.useCallback(()=>m(e=>!e),[m]),children:(0,h.jsx)(d.WV.div,{"data-state":S(f),"data-disabled":o?"":void 0,...c,ref:t})})});v.displayName=p;var _="CollapsibleTrigger",b=r.forwardRef((e,t)=>{let{__scopeCollapsible:i,...r}=e,n=y(_,i);return(0,h.jsx)(d.WV.button,{type:"button","aria-controls":n.contentId,"aria-expanded":n.open||!1,"data-state":S(n.open),"data-disabled":n.disabled?"":void 0,disabled:n.disabled,...r,ref:t,onClick:(0,a.M)(e.onClick,n.onOpenToggle)})});b.displayName=_;var w="CollapsibleContent",x=r.forwardRef((e,t)=>{let{forceMount:i,...r}=e,a=y(w,e.__scopeCollapsible);return(0,h.jsx)(c.z,{present:i||a.open,children:e=>{let{present:i}=e;return(0,h.jsx)(k,{...r,ref:t,present:i})}})});x.displayName=w;var k=r.forwardRef((e,t)=>{let{__scopeCollapsible:i,present:a,children:n,...s}=e,c=y(w,i),[u,p]=r.useState(a),f=r.useRef(null),m=(0,l.e)(t,f),g=r.useRef(0),v=g.current,_=r.useRef(0),b=_.current,x=c.open||u,k=r.useRef(x),O=r.useRef(void 0);return r.useEffect(()=>{let e=requestAnimationFrame(()=>k.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,o.b)(()=>{let e=f.current;if(e){O.current=O.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();g.current=t.height,_.current=t.width,k.current||(e.style.transitionDuration=O.current.transitionDuration,e.style.animationName=O.current.animationName),p(a)}},[c.open,a]),(0,h.jsx)(d.WV.div,{"data-state":S(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!x,...s,ref:m,style:{"--radix-collapsible-content-height":v?"".concat(v,"px"):void 0,"--radix-collapsible-content-width":b?"".concat(b,"px"):void 0,...e.style},children:x&&n})});function S(e){return e?"open":"closed"}var O=v,T=b,A=x},25670:(e,t,i)=>{"use strict";let r;i.d(t,{bz:()=>iB});var a,n,s,o,l,d,c=i(2265),u=i(66648);async function h(e){try{let t=await fetch(e.src);if(423===t.status)return await new Promise(e=>setTimeout(e,500)),await h(e);if(!t.ok)return{success:!1,status:t.status,error:t.headers.get("x-cld-error")||"Unknown error"};return{success:!0,status:t.status}}catch(e){return{success:!1,status:500,error:e.message||"Network error"}}}i(86300).Buffer;var p=i(86300).Buffer,f=/\/v\d+\//,m=/\.(ai|avif|gif|png|webp|bmp|bw|djvu|dng|ps|ept|eps|eps3|fbx|flif|gif|glb|gltf|heif|heic|ico|indd|jpg|jpe|jpeg|jp2|wdp|jxr|hdp|obj|pdf|ply|png|psd|arw|cr2|svg|tga|tif|tiff|u3ma|usdz|webp|3g2|3gp|avi|flv|m3u8|ts|m2ts|mts|mov|mkv|mp4|mpeg|mpd|mxf|ogv|webm|wmv)$/i,g=/https?:\/\/(?<host>[^/]+)\/(?<cloudName>[^/]+)?\/?(?<assetType>image|images|video|videos|raw|files)\/(?<deliveryType>upload|fetch|private|authenticated|sprite|facebook|twitter|youtube|vimeo)?\/?(?<signature>s--([a-zA-Z0-9_-]{8}|[a-zA-Z0-9_-]{32})--)?\/?(?<transformations>(?:[^_/]+_[^,/]+,?\/?)*\/)*(?<version>v\d+|\w{1,2})\/(?<publicId>[^\s]+)$/,y=["images","videos","files"];function v(e){if("string"!=typeof e)throw Error("Failed to parse URL - Invalid src: Is not a string");if(!f.test(e))throw Error("Failed to parse URL - Invalid src: Does not include version (Ex: /v1234/)");let[t,i]=e.split("?"),r=_(t),a=t;r&&(a=t.replace(RegExp(`${r}$`),""));let n=a.match(g),s=n?.groups?.transformations?.split("/").filter(e=>!!e),o={...n?.groups,format:r,seoSuffix:void 0,transformations:s||[],queryParams:{},version:n?.groups?.version?parseInt(n.groups.version.replace("v","")):void 0};if("res.cloudinary.com"===o.host&&!o.cloudName)throw Error("Failed to parse URL - Invalid src: Cloudinary U
1RL delivered from res.cloudinary.com must include Cloud Name (ex: res.cloudinary.com/<Cloud Name>/image/...)");if(i&&(o.queryParams=i.split("&").reduce((e,t)=>{let[i,r]=t.split("=");return e[i]=r,e},{})),o.assetType&&y.includes(o.assetType)){let e=o.publicId?.split("/")||[];o.seoSuffix=e.pop(),o.publicId=e.join("/")}return o.publicId&&(o.publicId=decodeURIComponent(o.publicId)),o}function _(e){let t=e.match(m);if(null!==t)return t[0]}function b(e,t){return Object.prototype.hasOwnProperty.call(e,t)}!function(e){e.assertEqual=e=>{},e.assertIs=function(e){},e.assertNever=function(e){throw Error()},e.arrayToEnum=e=>{let t={};for(let i of e)t[i]=i;return t},e.getValidEnumValues=t=>{let i=e.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),r={};for(let e of i)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.push(i);return t},e.find=(e,t)=>{for(let i of e)if(t(i))return i},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(a||(a={})),(n||(n={})).mergeShapes=(e,t)=>({...e,...t});let w=a.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),x=e=>{switch(typeof e){case"undefined":return w.undefined;case"string":return w.string;case"number":return Number.isNaN(e)?w.nan:w.number;case"boolean":return w.boolean;case"function":return w.function;case"bigint":return w.bigint;case"symbol":return w.symbol;case"object":if(Array.isArray(e))return w.array;if(null===e)return w.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return w.promise;if("undefined"!=typeof Map&&e instanceof Map)return w.map;if("undefined"!=typeof Set&&e instanceof Set)return w.set;if("undefined"!=typeof Date&&e instanceof Date)return w.date;return w.object;default:return w.unknown}}
vendor: 4,454 bytes, line 1
1,k=a.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class S extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},i={_errors:[]},r=e=>{for(let a of e.issues)if("invalid_union"===a.code)a.unionErrors.map(r);else if("invalid_return_type"===a.code)r(a.returnTypeError);else if("invalid_arguments"===a.code)r(a.argumentsError);else if(0===a.path.length)i._errors.push(t(a));else{let e=i,r=0;for(;r<a.path.length;){let i=a.path[r];r===a.path.length-1?(e[i]=e[i]||{_errors:[]},e[i]._errors.push(t(a))):e[i]=e[i]||{_errors:[]},e=e[i],r++}}};return r(this),i}static assert(e){if(!(e instanceof S))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,a.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},i=[];for(let r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):i.push(e(r));return{formErrors:i,fieldErrors:t}}get formErrors(){return this.flatten()}}S.create=e=>new S(e);let O=(e,t)=>{let i;switch(e.code){case k.invalid_type:i=e.received===w.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case k.invalid_literal:i=`Invalid literal value, expected ${JSON.stringify(e.expected,a.jsonStringifyReplacer)}`;break;case k.unrecognized_keys:i=`Unrecognized key(s) in object: ${a.joinValues(e.keys,", ")}`;break;case k.invalid_union:i="Invalid input";break;case k.invalid_union_discriminator:i=`Invalid discriminator value. Expected ${a.joinValues(e.options)}`;break;case k.invalid_enum_value:i=`Invalid enum value. Expected ${a.joinValues(e.options)}, received '${e.received}'`;break;case k.invalid_arguments:i="Invalid function arguments";break;case k.invalid_return_type:i="Invalid function return type";break;case k.invalid_date:i="Invalid date";break;case k.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(i=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(i=`${i} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?i=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?i=`Invalid input: must end with "${e.validation.endsWith}"`:a.assertNever(e.validation):i="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case k.too_small:i="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case k.too_big:i="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case k.custom:i="Invalid input";break;case k.invalid_intersection_types:i="Intersection results could not be merged";break;case k.not_multiple_of:i=`Number must be a multiple of ${e.multipleOf}`;break;case k.not_finite:i="Number must be finite";break;default:i=t.defaultError,a.assertNever(e)}return{message:i}},T=e=>
1{let{data:t,path:i,errorMaps:r,issueData:a}=e,n=[...i,...a.path||[]],s={...a,path:n};if(void 0!==a.message)return{...a,path:n,message:a.message};let o="";for(let e of r.filter(e=>!!e).slice().reverse())o=e(s,{data:t,defaultError:o}).message;return{...a,path:n,message:o}};function A(e,t){let i=T({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,O,O==O?void 0:O].filter(e=>!!e)});e.common.issues.push(i)}class E{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let i=[];for(let r of t){if("aborted"===r.status)return C;"dirty"===r.status&&e.dirty(),i.push(r.value)}return{status:e.value,value:i}}static async mergeObjectAsync(e,t){let i=[];for(let e of t){let t=await e.key,r=await e.value;i.push({key:t,value:r})}return E.mergeObjectSync(e,i)}static mergeObjectSync(e,t){let i={};for(let r of t){let{key:t,value:a}=r;if("aborted"===t.status||"aborted"===a.status)return C;"dirty"===t.status&&e.dirty(),"dirty"===a.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==a.value||r.alwaysSet)&&(i[t.value]=a.value)}return{status:e.value,value:i}}}let C=Object.freeze({status:"aborted"}),N=e=>({status:"dirty",value:e}),j=e=>({status:"valid",value:e}),I=e=>"aborted"===e.status,$=e=>"dirty"===e.status,L=e=>"valid"===e.status,R=e=>"undefined"!=typeof Promise&&e instanceof Promise;!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:e?.message}(s||(s={}));var z=function(e,t,i,r){if("a"===i&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?r:"a"===i?r.call(e):r?r.value:t.get(e)},Z=function(e,t,i,r,a){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!a)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!a:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?a.call(e,i):a?a.value=i:t.set(e,i),i};class M{constructor(e,t,i,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=i,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let P=(e,t)=>{if(L(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new S(e.common.issues);return this._error=t,this._error}}};function D(e){if(!e)return{};let{errorMap:t,invalid_type_error:i,required_error:r,description:a}=e;if(t&&(i||r))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:a}:{errorMap:(t,a)=>{let{message:n}=e;return"invalid_enum_value"===t.code?{message:n??a.defaultError}:void 0===a.data?{message:n??r??a.defaultError}:"invalid_type"!==t.code?{message:a.defaultError}:{message:n??i??a.defaultError}},description:a}}class q{get description(){return this._def.description}_getType(e){return x(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:x(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new E,ctx:{common:e.parent.common,data:e.data,parsedType:x(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(R(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let i=this.safeParse(e,t);if(i.success)return i.data;throw i.error}safeParse(e,t){let i={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:x(e)},r=this._parseSync({data:e,path:i.path,parent:i});return P(i,r)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:x(e)};if(!this["~standard"].async)try{let i=this._parseSync({data:e,path:[],parent:t});return L(i)?{value:i.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>L(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let i=await this.safeParseAsync(e,t);if(i.success)return i.data;throw i.error}async safeParseAsync(e,t){let i={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:x(e)},r=this._parse({data:e,path:i.path,parent:i});return P(i,await (R(r)?r:Promise.resolve(r)))}refine(e,t){let i=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,r)=>{let a=e(t),n=()=>r.addIssue({code:k.custom,...i(t)});return"undefined"!=typeof Promise&&a instanceof Promise?a.then(e=>!!e||(n(),!1)):!!a||(n(),!1)})}refinement(e,t){return this._refinement((i,r)=>!!e(i)||(r.addIssue("function"==typeof t?t(i,r):t),!1))}_refinement(e){return new eL({schema:this,typeName:d.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return eR.create(this,this._def)}nullable(){return ez.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ey.create(this)}promise(){return e$.create(this,this._def)}or(e){return e_.create([this,e],this._def)}and(e){return ex.create(this,e,this._def)}transform(e){return new eL({...D(this._def),schema:this,typeName:d.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new eZ({...D(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:d.ZodDefault})}brand(){return new eD({typeName:d.ZodBranded,type:this,...D(this._def)})}catch(e){return new eM({...D(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:d.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eq.create(this,e)}readonly(){return eF.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let F=/^c[^\s-]{8,}
vendor: 26,301 bytes, line 1
1$/i,U=/^[0-9a-z]+$/,J=/^[0-9A-HJKMNP-TV-Z]{26}$/i,V=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,W=/^[a-z0-9_-]{21}$/i,B=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,H=/^[-+]?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)?)??$/,K=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Y=/^(?:(?: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])$/,G=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Q=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,X=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,ee=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,et=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,ei="((\\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])))",er=RegExp(`^${ei}$`);function ea(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let i=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${i}`}class en extends q{_parse(e){var t,i,n,s;let o;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==w.string){let t=this._getOrReturnCtx(e);return A(t,{code:k.invalid_type,expected:w.string,received:t.parsedType}),C}let l=new E;for(let d of this._def.checks)if("min"===d.kind)e.data.length<d.value&&(A(o=this._getOrReturnCtx(e,o),{code:k.too_small,minimum:d.value,type:"string",inclusive:!0,exact:!1,message:d.message}),l.dirty());else if("max"===d.kind)e.data.length>d.value&&(A(o=this._getOrReturnCtx(e,o),{code:k.too_big,maximum:d.value,type:"string",inclusive:!0,exact:!1,message:d.message}),l.dirty());else if("length"===d.kind){let t=e.data.length>d.value,i=e.data.length<d.value;(t||i)&&(o=this._getOrReturnCtx(e,o),t?A(o,{code:k.too_big,maximum:d.value,type:"string",inclusive:!0,exact:!0,message:d.message}):i&&A(o,{code:k.too_small,minimum:d.value,type:"string",inclusive:!0,exact:!0,message:d.message}),l.dirty())}else if("email"===d.kind)K.test(e.data)||(A(o=this._getOrReturnCtx(e,o),{validation:"email",code:k.invalid_string,message:d.message}),l.dirty());else if("emoji"===d.kind)r||(r=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),r.test(e.data)||(A(o=this._getOrReturnCtx(e,o),{validation:"emoji",code:k.invalid_string,message:d.message}),l.dirty());else if("uuid"===d.kind)V.test(e.data)||(A(o=this._getOrReturnCtx(e,o),{validation:"uuid",code:k.invalid_string,message:d.message}),l.dirty());else if("nanoid"===d.kind)W.test(e.data)||(A(o=this._getOrReturnCtx(e,o),{validation:"nanoid",code:k.invalid_string,message:d.message}),l.dirty());else if("cuid"===d.kind)F.test(e.data)||(A(o=this._getOrReturnCtx(e,o),{validation:"cuid",code:k.invalid_string,message:d.message}),l.dirty());else if("cuid2"===d.kind)U.test(e.data)||(A(o=this._getOrReturnCtx(e,o),{validation:"cuid2",code:k.invalid_string,message:d.message}),l.dirty());else if("ulid"===d.kind)J.test(e.data)||(A(o=this._getOrReturnCtx(e,o),{validation:"ulid",code:k.invalid_string,message:d.message}),l.dirty());else if("url"===d.kind)try{new URL(e.data)}catch{A(o=this._getOrReturnCtx(e,o),{validation:"url",code:k.invalid_string,message:d.message}),l.dirty()}else"regex"===d.kind?(d.regex.lastIndex=0,d.regex.test(e.data)||(A(o=this._getOrReturnCtx(e,o),{validation:"regex",code:k.invalid_string,message:d.message}),l.dirty())):"trim"===d.kind?e.data=e.data.trim():"includes"===d.kind?e.data.includes(d.value,d.position)||(A(o=this._getOrReturnCtx(e,o),{code:k.invalid_string,validation:{includes:d.value,position:d.position},message:d.message}),l.dirty()):"toLowerCase"===d.kind?e.data=e.data.toLowerCase():"toUpperCase"===d.kind?e.data=e.data.toUpperCase():"startsWith"===d.kind?e.data.startsWith(d.value)||(A(o=this._getOrReturnCtx(e,o),{code:k.invalid_string,validation:{startsWith:d.value},message:d.message}),l.dirty()):"endsWith"===d.kind?e.data.endsWith(d.value)||(A(o=this._getOrReturnCtx(e,o),{code:k.invalid_string,validation:{endsWith:d.value},message:d.message}),l.dirty()):"datetime"===d.kind?(function(e){let t=`${ei}T${ea(e)}`,i=[];return i.push(e.local?"Z?":"Z"),e.offset&&i.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${i.join("|")})`,RegExp(`^${t}$`)})(d).test(e.data)||(A(o=this._getOrReturnCtx(e,o),{code:k.invalid_string,validation:"datetime",message:d.message}),l.dirty()):"date"===d.kind?er.test(e.data)||(A(o=this._getOrReturnCtx(e,o),{code:k.invalid_string,validation:"date",message:d.message}),l.dirty()):"time"===d.kind?RegExp(`^${ea(d)}$`).test(e.data)||(A(o=this._getOrReturnCtx(e,o),{code:k.invalid_string,validation:"time",message:d.message}),l.dirty()):"duration"===d.kind?H.test(e.data)||(A(o=this._getOrReturnCtx(e,o),{validation:"duration",code:k.invalid_string,message:d.message}),l.dirty()):"ip"===d.kind?(t=e.data,("v4"===(i=d.version)||!i)&&Y.test(t)||("v6"===i||!i)&&Q.test(t)||(A(o=this._getOrReturnCtx(e,o),{validation:"ip",code:k.invalid_string,message:d.message}),l.dirty())):"jwt"===d.kind?!function(e,t){if(!B.test(e))return!1;try{let[i]=e.split("."),r=i.replace(/-/g,"+").replace(/_/g,"/").padEnd(i.length+(4-i.length%4)%4,"="),a=JSON.parse(atob(r));if("object"!=typeof a||null===a||"typ"in a&&a?.typ!=="JWT"||!a.alg||t&&a.alg!==t)return!1;return!0}catch{return!1}}(e.data,d.alg)&&(A(o=this._getOrReturnCtx(e,o),{validation:"jwt",code:k.invalid_string,message:d.message}),l.dirty()):"cidr"===d.kind?(n=e.data,("v4"===(s=d.version)||!s)&&G.test(n)||("v6"===s||!s)&&X.test(n)||(A(o=this._getOrReturnCtx(e,o),{validation:"cidr",code:k.invalid_string,message:d.message}),l.dirty())):"base64"===d.kind?ee.test(e.data)||(A(o=this._getOrReturnCtx(e,o),{validation:"base64",code:k.invalid_string,message:d.message}),l.dirty()):"base64url"===d.kind?et.test(e.data)||(A(o=this._getOrReturnCtx(e,o),{validation:"base64url",code:k.invalid_string,message:d.message}),l.dirty()):a.assertNever(d);return{status:l.value,value:e.data}}_regex(e,t,i){return this.refinement(t=>e.test(t),{validation:t,code:k.invalid_string,...s.errToObj(i)})}_addCheck(e){return new en({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...s.errToObj(e)})}url(e){return this._addCheck({kind:"url",...s.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...s.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...s.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...s.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...s.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...s.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...s.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...s.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...s.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...s.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...s.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...s.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...s.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...s.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...s.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...s.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...s.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...s.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...s.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...s.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...s.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...s.errToObj(t)})}nonempty(e){return this.min(1,s.errToObj(e))}trim(){return new en({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new en({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new en({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}en.create=e=>new en({checks:[],typeName:d.ZodString,coerce:e?.coerce??!1,...D(e)});class es extends q{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==w.number){let t=this._getOrReturnCtx(e);return A(t,{code:k.invalid_type,expected:w.number,received:t.parsedType}),C}let i=new E;for(let r of this._def.checks)"int"===r.kind?a.isInteger(e.data)||(A(t=this._getOrReturnCtx(e,t),{code:k.invalid_type,expected:"integer",received:"float",message:r.message}),i.dirty()):"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(A(t=this._getOrReturnCtx(e,t),{code:k.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),i.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(A(t=this._getOrReturnCtx(e,t),{code:k.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),i.dirty()):"multipleOf"===r.kind?0!==function(e,t){let i=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,a=i>r?i:r;return Number.parseInt(e.toFixed(a).replace(".",""))%Number.parseInt(t.toFixed(a).replace(".",""))/10**a}(e.data,r.value)&&(A(t=this._getOrReturnCtx(e,t),{code:k.not_multiple_of,multipleOf:r.value,message:r.message}),i.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(A(t=this._getOrReturnCtx(e,t),{code:k.not_finite,message:r.message}),i.dirty()):a.assertNever(r);return{status:i.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,s.toString(t))}gt(e,t){return this.setLimit("min",e,!1,s.toString(t))}lte(e,t){return this.setLimit("max",e,!0,s.toString(t))}lt(e,t){return this.setLimit("max",e,!1,s.toString(t))}setLimit(e,t,i,r){return new es({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:s.toString(r)}]})}_addCheck(e){return new es({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:s.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:s.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:s.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:s.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:s.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:s.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:s.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:s.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:s.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&a.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let i of this._def.checks){if("finite"===i.kind||"int"===i.kind||"multipleOf"===i.kind)return!0;"min"===i.kind?(null===t||i.value>t)&&(t=i.value):"max"===i.kind&&(null===e||i.value<e)&&(e=i.value)}return Number.isFinite(t)&&Number.isFinite(e)}}es.create=e=>new es({checks:[],typeName:d.ZodNumber,coerce:e?.coerce||!1,...D(e)});class eo extends q{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==w.bigint)return this._getInvalidInput(e);let i=new E;for(let r of this._def.checks)"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(A(t=this._getOrReturnCtx(e,t),{code:k.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),i.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(A(t=this._getOrReturnCtx(e,t),{code:k.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),i.dirty()):"multipleOf"===r.kind?e.data%r.value!==BigInt(0)&&(A(t=this._getOrReturnCtx(e,t),{code:k.not_multiple_of,multipleOf:r.value,message:r.message}),i.dirty()):a.assertNever(r);return{status:i.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return A(t,{code:k.invalid_type,expected:w.bigint,received:t.parsedType}),C}gte(e,t){return this.setLimit("min",e,!0,s.toString(t))}gt(e,t){return this.setLimit("min",e,!1,s.toString(t))}lte(e,t){return this.setLimit("max",e,!0,s.toString(t))}lt(e,t){return this.setLimit("max",e,!1,s.toString(t))}setLimit(e,t,i,r){return new eo({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:i,message:s.toString(r)}]})}_addCheck(e){return new eo({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:s.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:s.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:s.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:s.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:s.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}eo.create=e=>new eo({checks:[],typeName:d.ZodBigInt,coerce:e?.coerce??!1,...D(e)});class el extends q{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==w.boolean){let t=this._getOrReturnCtx(e);return A(t,{code:k.invalid_type,expected:w.boolean,received:t.parsedType}),C}return j(e.data)}}el.create=e=>new el({typeName:d.ZodBoolean,coerce:e?.coerce||!1,...D(e)});class ed extends q{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==w.date){let t=this._getOrReturnCtx(e);return A(t,{code:k.invalid_type,expected:w.date,received:t.parsedType}),C}if(Number.isNaN(e.data.getTime()))return A(this._getOrReturnCtx(e),{code:k.invalid_date}),C;let i=new E;for(let r of this._def.checks)"min"===r.kind?e.data.getTime()<r.value&&(A(t=this._getOrReturnCtx(e,t),{code:k.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),i.dirty()):"max"===r.kind?e.data.getTime()>r.value&&(A(t=this._getOrReturnCtx(e,t),{code:k.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),i.dirty()):a.assertNever(r);return{status:i.value,value:new Date(e.data.getTime())}}_addCheck(e){return new ed({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:s.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:s.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}ed.create=e=>new ed({checks:[],coerce:e?.coerce||!1,typeName:d.ZodDate,...D(e)});class ec extends q{_parse(e){if(this._getType(e)!==w.symbol){let t=this._getOrReturnCtx(e);return A(t,{code:k.invalid_type,expected:w.symbol,received:t.parsedType}),C}return j(e.data)}}ec.create=e=>new ec({typeName:d.ZodSymbol,...D(e)});class eu extends q{_parse(e){if(this._getType(e)!==w.undefined){let t=this._getOrReturnCtx(e);return A(t,{code:k.invalid_type,expected:w.undefined,received:t.parsedType}),C}return j(e.data)}}eu.create=e=>new eu({typeName:d.ZodUndefined,...D(e)});class eh extends q{_parse(e){if(this._getType(e)!==w.null){let t=this._getOrReturnCtx(e);return A(t,{code:k.invalid_type,expected:w.null,received:t.parsedType}),C}return j(e.data)}}eh.create=e=>new eh({typeName:d.ZodNull,...D(e)});class ep extends q{constructor(){super(...arguments),this._any=!0}_parse(e){return j(e.data)}}ep.create=e=>new ep({typeName:d.ZodAny,...D(e)});class ef extends q{constructor(){super(...arguments),this._unknown=!0}_parse(e){return j(e.data)}}ef.create=e=>new ef({typeName:d.ZodUnknown,...D(e)});class em extends q{_parse(e){let t=this._getOrReturnCtx(e);return A(t,{code:k.invalid_type,expected:w.never,received:t.parsedType}),C}}em.create=e=>new em({typeName:d.ZodNever,...D(e)});class eg extends q{_parse(e){if(this._getType(e)!==w.undefined){let t=this._getOrReturnCtx(e);return A(t,{code:k.invalid_type,expected:w.void,received:t.parsedType}),C}return j(e.data)}}eg.create=e=>new eg({typeName:d.ZodVoid,...D(e)});class ey extends q{_parse(e){let{ctx:t,status:i}=this._processInputParams(e),r=this._def;if(t.parsedType!==w.array)return A(t,{code:k.invalid_type,expected:w.array,received:t.parsedType}),C;if(null!==r.exactLength){let e=t.data.length>r.exactLength.value,a=t.data.length<r.exactLength.value;(e||a)&&(A(t,{code:e?k.too_big:k.too_small,minimum:a?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),i.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&(A(t,{code:k.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),i.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(A(t,{code:k.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),i.dirty()),t.common.async)return Promise.all([...t.data].map((e,i)=>r.type._parseAsync(new M(t,e,t.path,i)))).then(e=>E.mergeArray(i,e));let a=[...t.data].map((e,i)=>r.type._parseSync(new M(t,e,t.path,i)));return E.mergeArray(i,a)}get element(){return this._def.type}min(e,t){return new ey({...this._def,minLength:{value:e,message:s.toString(t)}})}max(e,t){return new ey({...this._def,maxLength:{value:e,message:s.toString(t)}})}length(e,t){return new ey({...this._def,exactLength:{value:e,message:s.toString(t)}})}nonempty(e){return this.min(1,e)}}ey.create=(e,t)=>new ey({type:e,minLength:null,maxLength:null,exactLength:null,typeName:d.ZodArray,...D(t)});class ev extends q{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=a.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==w.object){let t=this._getOrReturnCtx(e);return A(t,{code:k.invalid_type,expected:w.object,received:t.parsedType}),C}let{status:t,ctx:i}=this._processInputParams(e),{shape:r,keys:a}=this._getCached(),n=[];if(!(this._def.catchall instanceof em&&"strip"===this._def.unknownKeys))for(let e in i.data)a.includes(e)||n.push(e);let s=[];for(let e of a){let t=r[e],a=i.data[e];s.push({key:{status:"valid",value:e},value:t._parse(new M(i,a,i.path,e)),alwaysSet:e in i.data})}if(this._def.catchall instanceof em){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of n)s.push({key:{status:"valid",value:e},value:{status:"valid",value:i.data[e]}});else if("strict"===e)n.length>0&&(A(i,{code:k.unrecognized_keys,keys:n}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of n){let r=i.data[t];s.push({key:{status:"valid",value:t},value:e._parse(new M(i,r,i.path,t)),alwaysSet:t in i.data})}}return i.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of s){let i=await t.key,r=await t.value;e.push({key:i,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>E.mergeObjectSync(t,e)):E.mergeObjectSync(t,s)}get shape(){return this._def.shape()}strict(e){return s.errToObj,new ev({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,i)=>{let r=this._def.errorMap?.(t,i).message??i.defaultError;return"unrecognized_keys"===t.code?{message:s.errToObj(e).message??r}:{message:r}}}:{}})}strip(){return new ev({...this._def,unknownKeys:"strip"})}passthrough(){return new ev({...this._def,unknownKeys:"passthrough"})}extend(e){return new ev({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ev({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:d.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ev({...this._def,catchall:e})}pick(e){let t={};for(let i of a.objectKeys(e))e[i]&&this.shape[i]&&(t[i]=this.shape[i]);return new ev({...this._def,shape:()=>t})}omit(e){let t={};for(let i of a.objectKeys(this.shape))e[i]||(t[i]=this.shape[i]);return new ev({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof ev){let i={};for(let r in t.shape){let a=t.shape[r];i[r]=eR.create(e(a))}return new ev({...t._def,shape:()=>i})}return t instanceof ey?new ey({...t._def,type:e(t.element)}):t instanceof eR?eR.create(e(t.unwrap())):t instanceof ez?ez.create(e(t.unwrap())):t instanceof ek?ek.create(t.items.map(t=>e(t))):t}(this)}partial(e){let t={};for(let i of a.objectKeys(this.shape)){let r=this.shape[i];e&&!e[i]?t[i]=r:t[i]=r.optional()}return new ev({...this._def,shape:()=>t})}required(e){let t={};for(let i of a.objectKeys(this.shape))if(e&&!e[i])t[i]=this.shape[i];else{let e=this.shape[i];for(;e instanceof eR;)e=e._def.innerType;t[i]=e}return new ev({...this._def,shape:()=>t})}keyof(){return eN(a.objectKeys(this.shape))}}ev.create=(e,t)=>new ev({shape:()=>e,unknownKeys:"strip",catchall:em.create(),typeName:d.ZodObject,...D(t)}),ev.strictCreate=(e,t)=>new ev({shape:()=>e,unknownKeys:"strict",catchall:em.create(),typeName:d.ZodObject,...D(t)}),ev.lazycreate=(e,t)=>new ev({shape:e,unknownKeys:"strip",catchall:em.create(),typeName:d.ZodObject,...D(t)});class e_ extends q{_parse(e){let{ctx:t}=this._processInputParams(e),i=this._def.options;if(t.common.async)return Promise.all(i.map(async e=>{let i={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:i}),ctx:i}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let i of e)if("dirty"===i.result.status)return t.common.issues.push(...i.ctx.common.issues),i.result;let i=e.map(e=>new S(e.ctx.common.issues));return A(t,{code:k.invalid_union,unionErrors:i}),C});{let e;let r=[];for(let a of i){let i={...t,common:{...t.common,issues:[]},parent:null},n=a._parseSync({data:t.data,path:t.path,parent:i});if("valid"===n.status)return n;"dirty"!==n.status||e||(e={result:n,ctx:i}),i.common.issues.length&&r.push(i.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let a=r.map(e=>new S(e));return A(t,{code:k.invalid_union,unionErrors:a}),C}}get options(){return this._def.options}}e_.create=(e,t)=>
1new e_({options:e,typeName:d.ZodUnion,...D(t)});let eb=e=>{if(e instanceof eE)return eb(e.schema);if(e instanceof eL)return eb(e.innerType());if(e instanceof eC)return[e.value];if(e instanceof ej)return e.options;if(e instanceof eI)return a.objectValues(e.enum);if(e instanceof eZ)return eb(e._def.innerType);if(e instanceof eu)return[void 0];else if(e instanceof eh)return[null];else if(e instanceof eR)return[void 0,...eb(e.unwrap())];else if(e instanceof ez)return[null,...eb(e.unwrap())];else if(e instanceof eD)return eb(e.unwrap());else if(e instanceof eF)return eb(e.unwrap());else if(e instanceof eM)return eb(e._def.innerType);else return[]};class ew extends q{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==w.object)return A(t,{code:k.invalid_type,expected:w.object,received:t.parsedType}),C;let i=this.discriminator,r=t.data[i],a=this.optionsMap.get(r);return a?t.common.async?a._parseAsync({data:t.data,path:t.path,parent:t}):a._parseSync({data:t.data,path:t.path,parent:t}):(A(t,{code:k.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),C)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,i){let r=new Map;for(let i of t){let t=eb(i.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let a of t){if(r.has(a))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(a)}`);r.set(a,i)}}return new ew({typeName:d.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...D(i)})}}class ex extends q{_parse(e){let{status:t,ctx:i}=this._processInputParams(e),r=(e,r)=>{if(I(e)||I(r))return C;let n=function e(t,i){let r=x(t),n=x(i);if(t===i)return{valid:!0,data:t};if(r===w.object&&n===w.object){let r=a.objectKeys(i),n=a.objectKeys(t).filter(e=>-1!==r.indexOf(e)),s={...t,...i};for(let r of n){let a=e(t[r],i[r]);if(!a.valid)return{valid:!1};s[r]=a.data}return{valid:!0,data:s}}if(r===w.array&&n===w.array){if(t.length!==i.length)return{valid:!1};let r=[];for(let a=0;a<t.length;a++){let n=e(t[a],i[a]);if(!n.valid)return{valid:!1};r.push(n.data)}return{valid:!0,data:r}}return r===w.date&&n===w.date&&+t==+i?{valid:!0,data:t}:{valid:!1}}(e.value,r.value);return n.valid?(($(e)||$(r))&&t.dirty(),{status:t.value,value:n.data}):(A(i,{code:k.invalid_intersection_types}),C)};return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}}ex.create=(e,t,i)=>new ex({left:e,right:t,typeName:d.ZodIntersection,...D(i)});class ek extends q{_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==w.array)return A(i,{code:k.invalid_type,expected:w.array,received:i.parsedType}),C;if(i.data.length<this._def.items.length)return A(i,{code:k.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),C;!this._def.rest&&i.data.length>this._def.items.length&&(A(i,{code:k.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let r=[...i.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new M(i,e,i.path,t)):null}).filter(e=>!!e);return i.common.async?Promise.all(r).then(e=>E.mergeArray(t,e)):E.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new ek({...this._def,rest:e})}}ek.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new ek({items:e,typeName:d.ZodTuple,rest:null,...D(t)})};class eS extends q{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==w.object)return A(i,{code:k.invalid_type,expected:w.object,received:i.parsedType}),C;let r=[],a=this._def.keyType,n=this._def.valueType;for(let e in i.data)r.push({key:a._parse(new M(i,e,i.path,e)),value:n._parse(new M(i,i.data[e],i.path,e)),alwaysSet:e in i.data});return i.common.async?E.mergeObjectAsync(t,r):E.mergeObjectSync(t,r)}
1get element(){return this._def.valueType}static create(e,t,i){return new eS(t instanceof q?{keyType:e,valueType:t,typeName:d.ZodRecord,...D(i)}:{keyType:en.create(),valueType:e,typeName:d.ZodRecord,...D(t)})}}class eO extends q{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==w.map)return A(i,{code:k.invalid_type,expected:w.map,received:i.parsedType}),C;let r=this._def.keyType,a=this._def.valueType,n=[...i.data.entries()].map(([e,t],n)=>({key:r._parse(new M(i,e,i.path,[n,"key"])),value:a._parse(new M(i,t,i.path,[n,"value"]))}));if(i.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let i of n){let r=await i.key,a=await i.value;if("aborted"===r.status||"aborted"===a.status)return C;("dirty"===r.status||"dirty"===a.status)&&t.dirty(),e.set(r.value,a.value)}return{status:t.value,value:e}})}{let e=new Map;for(let i of n){let r=i.key,a=i.value;if("aborted"===r.status||"aborted"===a.status)return C;("dirty"===r.status||"dirty"===a.status)&&t.dirty(),e.set(r.value,a.value)}return{status:t.value,value:e}}}}eO.create=(e,t,i)=>new eO({valueType:t,keyType:e,typeName:d.ZodMap,...D(i)});class eT extends q{_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.parsedType!==w.set)return A(i,{code:k.invalid_type,expected:w.set,received:i.parsedType}),C;let r=this._def;null!==r.minSize&&i.data.size<r.minSize.value&&(A(i,{code:k.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&i.data.size>r.maxSize.value&&(A(i,{code:k.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let a=this._def.valueType;function n(e){let i=new Set;for(let r of e){if("aborted"===r.status)return C;"dirty"===r.status&&t.dirty(),i.add(r.value)}return{status:t.value,value:i}}let s=[...i.data.values()].map((e,t)=>a._parse(new M(i,e,i.path,t)));return i.common.async?Promise.all(s).then(e=>n(e)):n(s)}min(e,t){return new eT({...this._def,minSize:{value:e,message:s.toString(t)}})}max(e,t){return new eT({...this._def,maxSize:{value:e,message:s.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}eT.create=(e,t)=>new eT({valueType:e,minSize:null,maxSize:null,typeName:d.ZodSet,...D(t)});class eA extends q{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==w.function)return A(t,{code:k.invalid_type,expected:w.function,received:t.parsedType}),C;function i(e,i){return T({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,O,O].filter(e=>!!e),issueData:{code:k.invalid_arguments,argumentsError:i}})}function r(e,i){return T({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,O,O].filter(e=>!!e),issueData:{code:k.invalid_return_type,returnTypeError:i}})}let a={errorMap:t.common.contextualErrorMap},n=t.data;if(this._def.returns instanceof e$){let e=this;return j(async function(...t){let s=new S([]),o=await e._def.args.parseAsync(t,a).catch(e=>{throw s.addIssue(i(t,e)),s}),l=await Reflect.apply(n,this,o);return await e._def.returns._def.type.parseAsync(l,a).catch(e=>{throw s.addIssue(r(l,e)),s})})}{let e=this;return j(function(...t){let s=e._def.args.safeParse(t,a);if(!s.success)throw new S([i(t,s.error)]);let o=Reflect.apply(n,this,s.data),l=e._def.returns.safeParse(o,a);if(!l.success)throw new S([r(o,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new eA({...this._def,args:ek.create(e).rest(ef.create())})}returns(e){return new eA({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,i){return new eA({args:e||ek.create([]).rest(ef.create()),returns:t||ef.create(),typeName:d.ZodFunction,...D(i)})}}class eE extends q{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}eE.create=(e,t)=>
1new eE({getter:e,typeName:d.ZodLazy,...D(t)});class eC extends q{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return A(t,{received:t.data,code:k.invalid_literal,expected:this._def.value}),C}return{status:"valid",value:e.data}}get value(){return this._def.value}}function eN(e,t){return new ej({values:e,typeName:d.ZodEnum,...D(t)})}eC.create=(e,t)=>new eC({value:e,typeName:d.ZodLiteral,...D(t)});class ej extends q{constructor(){super(...arguments),o.set(this,void 0)}_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),i=this._def.values;return A(t,{expected:a.joinValues(i),received:t.parsedType,code:k.invalid_type}),C}if(z(this,o,"f")||Z(this,o,new Set(this._def.values),"f"),!z(this,o,"f").has(e.data)){let t=this._getOrReturnCtx(e),i=this._def.values;return A(t,{received:t.data,code:k.invalid_enum_value,options:i}),C}return j(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return ej.create(e,{...this._def,...t})}exclude(e,t=this._def){return ej.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}o=new WeakMap,ej.create=eN;class eI extends q{constructor(){super(...arguments),l.set(this,void 0)}_parse(e){let t=a.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(e);if(i.parsedType!==w.string&&i.parsedType!==w.number){let e=a.objectValues(t);return A(i,{expected:a.joinValues(e),received:i.parsedType,code:k.invalid_type}),C}if(z(this,l,"f")||Z(this,l,new Set(a.getValidEnumValues(this._def.values)),"f"),!z(this,l,"f").has(e.data)){let e=a.objectValues(t);return A(i,{received:i.data,code:k.invalid_enum_value,options:e}),C}return j(e.data)}get enum(){return this._def.values}}l=new WeakMap,eI.create=(e,t)=>new eI({values:e,typeName:d.ZodNativeEnum,...D(t)});class e$ extends q{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==w.promise&&!1===t.common.async?(A(t,{code:k.invalid_type,expected:w.promise,received:t.parsedType}),C):j((t.parsedType===w.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}e$.create=(e,t)=>new e$({type:e,typeName:d.ZodPromise,...D(t)});class eL extends q{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===d.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:i}=this._processInputParams(e),r=this._def.effect||null,n={addIssue:e=>{A(i,e),e.fatal?t.abort():t.dirty()},get path(){return i.path}};if(n.addIssue=n.addIssue.bind(n),"preprocess"===r.type){let e=r.transform(i.data,n);if(i.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return C;let r=await this._def.schema._parseAsync({data:e,path:i.path,parent:i});return"aborted"===r.status?C:"dirty"===r.status||"dirty"===t.value?N(r.value):r});{if("aborted"===t.value)return C;let r=this._def.schema._parseSync({data:e,path:i.path,parent:i});return"aborted"===r.status?C:"dirty"===r.status||"dirty"===t.value?N(r.value):r}}if("refinement"===r.type){let e=e=>{let t=r.refinement(e,n);if(i.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==i.common.async)return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(i=>"aborted"===i.status?C:("dirty"===i.status&&t.dirty(),e(i.value).then(()=>({status:t.value,value:i.value}))));{let r=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return"aborted"===r.status?C:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}}if("transform"===r.type){if(!1!==i.common.async)return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(e=>L(e)?Promise.resolve(r.transform(e.value,n)).then(e=>({status:t.value,value:e})):e);{let e=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!L(e))return e;let a=r.transform(e.value,n);if(a instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}}a.assertNever(r)}}eL.create=(e,t,i)=>new eL({schema:e,typeName:d.ZodEffects,effect:t,...D(i)}),eL.createWithPreprocess=(e,t,i)=>new eL({schema:t,effect:{type:"preprocess",transform:e},typeName:d.ZodEffects,...D(i)});class eR extends q{_parse(e){return this._getType(e)===w.undefined?j(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eR.create=(e,t)=>
1new eR({innerType:e,typeName:d.ZodOptional,...D(t)});class ez extends q{_parse(e){return this._getType(e)===w.null?j(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ez.create=(e,t)=>new ez({innerType:e,typeName:d.ZodNullable,...D(t)});class eZ extends q{_parse(e){let{ctx:t}=this._processInputParams(e),i=t.data;return t.parsedType===w.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}eZ.create=(e,t)=>new eZ({innerType:e,typeName:d.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...D(t)});class eM extends q{_parse(e){let{ctx:t}=this._processInputParams(e),i={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return R(r)?r.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new S(i.common.issues)},input:i.data})})):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new S(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}}eM.create=(e,t)=>new eM({innerType:e,typeName:d.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...D(t)});class eP extends q{_parse(e){if(this._getType(e)!==w.nan){let t=this._getOrReturnCtx(e);return A(t,{code:k.invalid_type,expected:w.nan,received:t.parsedType}),C}return{status:"valid",value:e.data}}}eP.create=e=>new eP({typeName:d.ZodNaN,...D(e)}),Symbol("zod_brand");class eD extends q{_parse(e){let{ctx:t}=this._processInputParams(e),i=t.data;return this._def.type._parse({data:i,path:t.path,parent:t})}unwrap(){return this._def.type}}class eq extends q{_parse(e){let{status:t,ctx:i}=this._processInputParams(e);if(i.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return"aborted"===e.status?C:"dirty"===e.status?(t.dirty(),N(e.value)):this._def.out._parseAsync({data:e.value,path:i.path,parent:i})})();{let e=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return"aborted"===e.status?C:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:i.path,parent:i})}}static create(e,t){return new eq({in:e,out:t,typeName:d.ZodPipeline})}}class eF extends q{_parse(e){let t=this._def.innerType._parse(e),i=e=>(L(e)&&(e.value=Object.freeze(e.value)),e);return R(t)?t.then(e=>i(e)):i(t)}unwrap(){return this._def.innerType}}eF.create=(e,t)=>new eF({innerType:e,typeName:d.ZodReadonly,...D(t)}),ev.lazycreate,function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(d||(d={}));let eU=en.create,eJ=es.create;eP.create,eo.create;let eV=el.create;ed.create,ec.create,eu.create,eh.create;let eW=ep.create;ef.create,em.create,eg.create;let eB=ey.create,eH=ev.create;ev.strictCreate;let eK=e_.create;ew.create;let eY=ex.create;ek.create,eS.create,eO.create,eT.create,eA.create,eE.create,eC.create;let eG=ej.create;eI.create,e$.create,eL.create,eR.create,ez.create,eL.createWithPreprocess,eq.create;class eQ{constructor(e){this.values=[],this.delimiter=":",this.hasValue(e)&&this.addValue(e)}toString(){return this.values.join(this.delimiter)}hasValue(e){return null!=e&&""!==e}addValue(e){return Array.isArray(e)?this.values=this.values.concat(e):this.values.push(e),this.values=this.values.filter(e=>this.hasValue(e)),this}setDelimiter(e){return this.delimiter=e,this}}
1class eX extends Error{constructor(e="Unsupported"){super(e)}}function e0(){return this._qualifierModel||{error:new eX(`unsupported qualifier ${this.constructor.name}`)}}class e1{constructor(){this._qualifierModel={}}toJson(){return e0.apply(this)}}class e9 extends e1{constructor(e,t){super(),this.delimiter="_",this.key=e,t instanceof eQ?this.qualifierValue=t:(this.qualifierValue=new eQ,this.qualifierValue.addValue(t))}toString(){let{key:e,delimiter:t,qualifierValue:i}=this;return`${e}${t}${i.toString()}`}addValue(e){return this.qualifierValue.addValue(e),this}}class e4 extends e9{constructor(e,t){super("fl",t?new eQ([e,`${t}`]).setDelimiter(":"):e),this.flagValue=t}toString(){return super.toString().replace(/\./g,"%2E")}getFlagValue(){return this.flagValue}}function e2(){var e,t,i;let r=this._actionModel&&Object.keys(this._actionModel).length,a=null===(i=null===(t=null===(e=this._actionModel)||void 0===e?void 0:e.source)||void 0===t?void 0:t.transformation)||void 0===i?void 0:i.error;return a&&a instanceof Error?{error:a}:r?this._actionModel:{error:new eX(`unsupported action ${this.constructor.name}`)}}class e3{constructor(){this._actionModel={}}toJson(){return e2.apply(this)}}class e5 extends e3{constructor(){super(...arguments),this.qualifiers=new Map,this.flags=[],this.delimiter=",",this.actionTag=""}prepareQualifiers(){}getActionTag(){return this.actionTag}setActionTag(e){return this.actionTag=e,this}toString(){return this.prepareQualifiers(),(function(e,t){let i=Array.from(e.entries());return t.forEach(e=>{i.push(["fl",e])}),i.sort().map(e=>e[1])})(this.qualifiers,this.flags).join(this.delimiter)}addQualifier(e){if("string"==typeof e){let[t,i]=e.toLowerCase().split("_");"fl"===t?this.flags.push(new e4(i)):this.qualifiers.set(t,new e9(t,i))}else this.qualifiers.set(e.key,e);return this}addFlag(e){return"string"==typeof e?this.flags.push(new e4(e)):e instanceof e4&&this.flags.push(e),this}addValueToQualifier(e,t){return this.qualifiers.get(e).addValue(t),this}}class e6 extends e5{constructor(e){super(),this._actionModel={},this.addQualifier(new e9("b",new eQ(function(e){return e&&e.match(/^#/)?`rgb:${e.substr(1)}`:e}(e)).setDelimiter("_"))),this._actionModel.color=e,this._actionModel.actionType="backgroundColor"}static fromJson(e){let{color:t}=e;return new this(t)}}class e8{constructor(e){this.raw=e}toString(){return this.raw}toJson(){return{error:new eX(`unsupported action ${this.constructor.name}`)}}}class e7 extends eQ{constructor(e){super(e),this.val=e}getValue(){return this.val}}function te(e){let t={};return Object.keys(e).forEach(i=>{t[e[i]]=i}),t}te({444:"CHROMA_444",420:"CHROMA_420"}),te({noCmyk:"no_cmyk",keepCmyk:"keep_cmyk",tinySrgb:"tinysrgb",srgbTrueColor:"srgb:truecolor"}),te({limitFit:"limit",limitFill:"lfill",minimumFit:"mfit",thumbnail:"thumb",limitPad:"lpad",minimumPad:"mpad",autoPad:"auto_pad"});let tt=te({colorSpace:"cs",dpr:"dpr",density:"dn",defaultImage:"d",format:"f",quality:"q"});te({redEye:"redeye",advancedRedEye:"adv_redeye",oilPaint:"oil_paint",unsharpMask:"unsharp_mask",makeTransparent:"make_transparent",generativeRestore:"gen_restore",upscale:"upscale"}),te({autoBest:"auto:best",autoEco:"auto:eco",autoGood:"auto:good",autoLow:"auto:low",jpegminiHigh:"jpegmini:1",jpegminiMedium:"jpegmini:2",jpegminiBest:"jpegmini:0"}),te({fullHd:"full_hd",fullHdWifi:"full_hd_wifi",fullHdLean:"full_hd_lean",hdLean:"hd_lean"});class ti extends e5{constructor(e,t,i){let r;super(),this._actionModel={},r=t instanceof e7?t.getValue():t,this._actionModel.actionType=tt[e],this._actionModel[i]=r,this.addQualifier(new e9(e,t))}}class tr extends e4{constructor(e){super("progressive",e)}}class ta extends ti{constructor(e,t){super(e,t,"formatType")}lossy(){return this._actionModel.lossy=!0,this.addFlag(new e4("lossy")),this}progressive(e){return e instanceof tr?(this._actionModel.progressive={mode:e.getFlagValue()},this.addFlag(e)):(this._actionModel.progressive={mode:e},this.addFlag(new e4("progressive",e))),this}preserveTransparency(){return this._actionModel.preserveTransparency=!0,this.addFlag(new e4("preserve_transparency")),this}static fromJson(e){let t;let{formatType:i,lossy:r,progressive:a,preserveTransparency:n}=e;return t=i?new this("f",i):new this("f"),a&&(a.mode?t.progressive(a.mode):t.progressive()),r&&t.lossy(),n&&t.preserveTransparency(),t}}class tn{constructor(){this.actions=[]}addAction(e){let t;if("string"==typeof e){if(e.indexOf("/")>=0)throw"addAction cannot accept a string with a forward slash in it - /, use .addTransformation() instead";t=new e8(e)}else t=e;return this.actions.push(t),this}addTransformation(e){return e instanceof tn?this.actions=this.actions.concat(e.actions):this.actions.push(new e8(e)),this}toString(){return this.actions.map(e=>e.toString()).filter(e=>e).join("/")}animated(e){return this.addAction(e)}border(e){return this.addAction(e)}reshape(e){return this.addAction(e)}resize(e){return this.addAction(e)}quality(e){return this.addAction(new ta("q",e)),this}format(e){return this.addAction(new ta("f",e)),this}
1roundCorners(e){return this.addAction(e)}overlay(e){return this.addAction(e)}underlay(e){return e.setLayerType("u"),this.addAction(e)}addVariable(e){return this.addAction(e)}conditional(e){return this.addAction(e)}effect(e){return this.addAction(e)}adjust(e){return this.addAction(e)}rotate(e){return this.addAction(e)}namedTransformation(e){return this.addAction(e)}delivery(e){return this.addAction(e)}backgroundColor(e){return this.addAction(new e6(e))}psdTools(e){return this.addAction(e)}extract(e){return this.addAction(e)}addFlag(e){let t=new e5,i=e;return"string"==typeof e&&(i=new e4(e)),t.addQualifier(i),this.addAction(t)}customFunction(e){return this.addAction(e)}transcode(e){return this.addAction(e)}videoEdit(e){return this.addAction(e)}toJson(){let e=[];for(let t of this.actions){let i=t.toJson();if("error"in i&&i.error)return i;e.push(i)}return{actions:e}}}class ts extends tn{}class to{filterOutNonSupportedKeys(e,t){let i=Object.create({});return"object"!=typeof e||e instanceof Array?Object.create({}):(Object.keys(e).forEach(r=>{t.indexOf(r)>=0?i[r]=e[r]:console.warn("Warning - unsupported key provided to configuration: ",r)}),i)}}let tl=to,td=["cname","secureDistribution","privateCdn","signUrl","longUrlSignature","shorten","useRootPath","secure","forceVersion","analytics","queryParams"];class tc extends tl{constructor(e){super(),Object.assign(this,{secure:!0},this.filterOutNonSupportedKeys(e,td))}extend(e){return new tc(Object.assign({},this,this.filterOutNonSupportedKeys(e,td)))}setCname(e){return this.cname=e,this}setSecureDistribution(e){return this.secureDistribution=e,this}setPrivateCdn(e){return this.privateCdn=e,this}setSignUrl(e){return this.signUrl=e,this}setLongUrlSignature(e){return this.longUrlSignature=e,this}setShorten(e){return this.shorten=e,this}setUseRootPath(e){return this.useRootPath=e,this}setSecure(e){return this.secure=e,this}setForceVersion(e){return this.forceVersion=e,this}setQueryParams(e){return this.queryParams=e,this}}function tu(e,t,i){let r=t>>0,a=String(void 0!==i?i:" ");return e.length>r?String(e):((r-=e.length)>a.length&&(a+=function(e,t){let i=t,r="";for(;i>0;)r+=e,i--;return r}(a,r/a.length)),a.slice(0,r)+String(e))}let th={},tp=0;function tf(e){let t="",i=e.split(".").length,r=parseInt((function(e){if(e.split(".").length<2)throw Error("invalid semVer, must have at least two segments");return e.split(".").reverse().map(e=>{let t=+e;if(isNaN(t)||t<0)throw"Invalid version number provided";return tu(e,2,"0")}).join(".")})(e).split(".").join("")).toString(2);if((r=tu(r,6*i,"0")).length%6!=0)throw"Version must be smaller than 43.21.26)";return r.match(/.{1,6}/g).forEach(e=>{t+=th[e]}),t}"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("").forEach(e=>{let t=tp.toString(2);th[t=tu(t,6,"0")]=e,tp++});var tm=i(20357);function tg(e){let t=function(e){let t={sdkSemver:e.sdkSemver,techVersion:e.techVersion,sdkCode:e.sdkCode,product:e.product,feature:"0"};return e.accessibility&&(t.feature="D"),e.lazyload&&(t.feature="C"),e.responsive&&(t.feature="A"),e.placeholder&&(t.feature="B"),t}(function(e){let t={techVersion:function(){let e="0.0.0";if("undefined"!=typeof window)return e;try{return tm.versions.node||e}catch(t){return e}}(),sdkCode:"T",sdkSemver:"1.15.0".split("-")[0],product:"A",responsive:!1,placeholder:!1,lazyload:!1,accessibility:!1};return e?Object.assign(Object.assign({},t),e):t}(e));try{let e=function(e){let t=e.split(".");return`${t[0]}.${t[1]}`}(t.techVersion),i=tf(t.sdkSemver),r=tf(e),a=t.feature,n=t.sdkCode,s=t.product;return`B${s}${n}${i}${r}${a}`}catch(e){return"E"}}let ty={"image/upload":"images","image/private":"private_images","image/authenticated":"authenticated_images","raw/upload":"files","video/upload":"videos"};class tv{constructor(e,t={},i){this.setPublicID(e),this.setCloudConfig(t),this.setURLConfig(i)}setURLConfig(e){return this.urlConfig=new tc(e),this}setCloudConfig(e){return this.cloudName=e.cloudName,this.apiKey=e.apiKey,this.apiSecret=e.apiSecret,this.authToken=e.authToken,this}setPublicID(e){return this.publicID=e?e.toString():"",this}setDeliveryType(e){return this.deliveryType=e,this}setSuffix(e){return this.suffix=e,this}setSignature(e){return this.signature=e,this}setVersion(e){return e&&(this.version=e),this}setAssetType(e){return e&&(this.assetType=e),this}sign(){return this}toURL(e={}){return this.createCloudinaryURL(null,e.trackedAnalytics)}validateAssetForURLCreation(){if(void 0===this.cloudName)throw"You must supply a cloudName when initializing the asset";let e=this.suffix&&this.suffix.indexOf(".")>=0,t=this.suffix&&this.suffix.indexOf("/")>=0;if(e||t)throw"`suffix`` should not include . or /"}getResourceType(){var e,t;let i=(e=this.assetType)?e:"image",r=(t=this.deliveryType)?t:"upload",a=!!this.suffix,n=`${i}/${r}`,s=ty[`${i}/${r}`],o=this.urlConfig.useRootPath,l=this.urlConfig.shorten;if(o){if("image/upload"===n)return"";throw Error(`useRootPath can only be used with assetType: 'image' and deliveryType: 'upload'. Provided: ${n} instead`)}if(l&&"image/upload"===n)return"iu";if(a){if(s)return s;throw Error(`URL Suffix only supported for ${Object.keys(ty).join(", ")}, Provided: ${n} instead`)}return n}getSignature(){return this.signature?`s--${this.signature}--`:""}createCloudinaryURL(e,t){var i,r,a;
1if(!this.publicID)return"";this.validateAssetForURLCreation();let n=function(e,t){let i=t.secure,r=t.privateCdn,a=t.cname,n=t.secureDistribution;return i||a?i&&!n&&r?`https://${e}-res.cloudinary.com`:i&&!n?`https://res.cloudinary.com/${e}`:i&&n&&r?`https://${n}`:i&&n?`https://${n}/${e}`:!i&&a?`http://${a}/${e}`:"ERROR":`http://res.cloudinary.com/${e}`}(this.cloudName,this.urlConfig),s=e?e.toString():"",o=(i=this.publicID,r=this.version,a=this.urlConfig.forceVersion,r?`v${r}`:i.match(/^v[0-9]+/)||i.match(/^https?:\//)||0>i.indexOf("/")?"":!1!==a?"v1":""),l=this.publicID;if("string"==typeof e)return[n,this.getResourceType(),this.getSignature(),s,o,l.replace(/,/g,"%2C"),this.suffix].filter(e=>e).join("/");{let e=[encodeURI(n),this.getResourceType(),this.getSignature(),encodeURI(s),o,encodeURI(l).replace(/,/g,"%2C"),this.suffix&&encodeURI(this.suffix)].filter(e=>e).join("/").replace(/\?/g,"%3F").replace(/=/g,"%3D"),i=!1!==this.urlConfig.analytics&&!l.includes("?"),r="";if("object"==typeof this.urlConfig.queryParams)try{let e=new URLSearchParams(this.urlConfig.queryParams);i&&e.set("_a",tg(t)),r=e.toString()}catch(e){console.error("Error: URLSearchParams is not available so the queryParams object cannot be parsed, please try passing as an already parsed string")}else r=this.urlConfig.queryParams||"",i&&(r+=`${r.length>0?"&":""}_a=${tg(t)}`);return r?`${e}?${r}`:e}}}class t_ extends tv{constructor(e,t,i,r){super(e,t,i),this.transformation=r}animated(e){return this.transformation.animated(e),this}border(e){return this.transformation.border(e),this}reshape(e){return this.transformation.reshape(e),this}resize(e){return this.transformation.resize(e),this}quality(e){return this.addAction(new ta("q",e)),this}format(e){return this.addAction(new ta("f",e)),this}
1roundCorners(e){return this.transformation.roundCorners(e),this}overlay(e){return this.transformation.overlay(e),this}addVariable(e){return this.transformation.addVariable(e),this}conditional(e){return this.transformation.conditional(e),this}effect(e){return this.transformation.effect(e),this}adjust(e){return this.transformation.adjust(e),this}rotate(e){return this.transformation.rotate(e),this}namedTransformation(e){return this.transformation.namedTransformation(e),this}delivery(e){return this.transformation.delivery(e),this}backgroundColor(e){return this.transformation.backgroundColor(e),this}psdTools(e){return this.transformation.psdTools(e),this}extract(e){return this.transformation.extract(e),this}addFlag(e){return this.transformation.addFlag(e),this}customFunction(e){return this.transformation.customFunction(e),this}addAction(e){return this.transformation.addAction(e),this}addTransformation(e){return this.transformation.addTransformation(e),this}toString(){return this.transformation.toString()}underlay(e){return this.transformation.underlay(e),this}toURL(e={}){return this.createCloudinaryURL(this.transformation,null==e?void 0:e.trackedAnalytics)}}class tb extends t_{constructor(e,t,i){super(e,t,i,new ts)}}class tw extends tn{}class tx extends t_{constructor(e,t,i){super(e,t,i,new tw),this.assetType="video"}transcode(e){return this.transformation.transcode(e),this}videoEdit(e){return this.transformation.videoEdit(e),this}}class tk{constructor(e){e&&(this.cloudinaryConfig=e)}image(e){return new tb(e,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}video(e){return new tx(e,this.cloudinaryConfig.cloud,this.cloudinaryConfig.url)}setConfig(e){return this.cloudinaryConfig=e,this}getConfig(){return this.cloudinaryConfig}extendConfig(){}}var tS=i(20357),tO=Object.defineProperty,tT={};((e,t)=>{for(var i in t)tO(e,i,{get:t[i],enumerable:!0})})(tT,{angle:()=>tN,aspectRatio:()=>tI,aspectRatioModesEnum:()=>tj,crop:()=>t$,cropModesEnum:()=>tA,extractMode:()=>tL,extractModesEnum:()=>tE,flags:()=>tR,flagsEnum:()=>tC,format:()=>tz,gravity:()=>tZ,height:()=>tM,multiple:()=>tP,prompt:()=>tD,width:()=>tq,x:()=>tF,y:()=>tU,zoom:()=>tJ});var tA=eG(["auto","crop","fill","fill_pad","fit","imagga_crop","imagga_scale","lfill","limit","lpad","mfit","mpad","pad","scale","thumb"]),tE=eG(["content","mask"]),tC=eG(["animated","any_format","apng","attachment","awebp","clip","clip_evenodd","cutter","force_icc","force_strip","getinfo","group4","hlsv3","ignore_aspect_ratio","ignore_mask_channels","immutable_cache","keep_attribution","keep_dar","keep_iptc","layer_apply","lossy","mono","no_overflow","no_stream","png8_fl_png24_fl_png32","preserve_transparency","progressive","rasterize","region_relative","relative","replace_image","sanitize","splice","streaming_attachment","strip_profile","text_disallow_overflow","text_no_trim","tiff8_lzw","tiled","truncate_ts","waveform"]),tN={qualifier:"a",schema:eK([eU(),eJ()]).describe(JSON.stringify({text:"Rotates or flips an asset by the specified number of degrees or automatically according to its orientation or available metadata.",url:"https://cloudinary.com/documentation/transformation_reference#a_angle"}))},tj=eG(["vflip","hflip","ignore","auto_right","auto_left"]),tI={qualifier:"ar",schema:eK([eJ(),tj,eY(eU(),eH({}))]).describe(JSON.stringify({text:"Crops or resizes the asset to a new aspect ratio.",url:"https://cloudinary.com/documentation/transformation_reference#ar_aspect_ratio"}))},t$={qualifier:"c",schema:tA.describe(JSON.stringify({text:"Mode to use when cropping an asset.",url:"https://cloudinary.com/documentation/transformation_reference#c_crop_resize"}))},tL={schema:tE.default("content").describe(JSON.stringify({text:"Whether to keep the content of the extracted area, or to replace it with a mask.",url:"https://cloudinary.com/documentation/transformation_reference#e_extract"}))},tR={qualifier:"fl",schema:eK([tC,eB(tC)]).describe(JSON.stringify({text:"Alters the regular behavior of another transformation or the overall delivery behavior.",url:"https://cloudinary.com/documentation/transformation_reference#fl_flag"}))},tz={qualifier:"f",schema:eU().describe(JSON.stringify({text:"Converts (if necessary) and delivers an asset in the specified format regardless of the file extension used in the delivery URL.",url:"https://cloudinary.com/documentation/transformation_reference#f_format"}))},tZ={qualifier:"g",schema:eK([eG(["auto","auto_content_aware","center","custom","east","face","face_center","multi_face","north","north_east","north_
1west","south","south_east","south_west","west"]),eY(eU(),eH({}))]).describe(JSON.stringify({text:"Determines which part of an asset to focus on. Note: Default of auto is applied for supported crop modes only.",url:"https://cloudinary.com/documentation/transformation_reference#g_gravity"}))},tM={qualifier:"h",schema:eK([eJ(),eU()]).describe(JSON.stringify({text:"A qualifier that determines the height of a transformed asset or an overlay.",url:"https://cloudinary.com/documentation/transformation_reference#h_height"}))},tP={schema:eV().describe(JSON.stringify({text:"Should generative AI features detect multiple instances."}))},tD={schema:eU().describe(JSON.stringify({text:"Natural language descriptions used for generative AI capabilities."}))},tq={qualifier:"w",schema:eK([eJ(),eU()]).describe(JSON.stringify({text:"A qualifier that sets the desired width of an asset using a specified value, or automatically based on the available width.",url:"https://cloudinary.com/documentation/transformation_reference#w_width"}))},tF={qualifier:"x",schema:eK([eU(),eJ()]).describe(JSON.stringify({text:"Adjusts the starting location or offset of the x axis.",url:"https://cloudinary.com/documentation/transformation_reference#x_y_coordinates"}))},tU={qualifier:"y",schema:eK([eU(),eJ()]).describe(JSON.stringify({text:"Adjusts the starting location or offset of the y axis.",url:"https://cloudinary.com/documentation/transformation_reference#x_y_coordinates"}))},tJ={schema:eU().describe(JSON.stringify({text:"Controls how close to crop to the detected coordinates when using face-detection, custom-coordinate, or object-specific gravity.",url:"https://cloudinary.com/documentation/transformation_reference#z_zoom"}))},tV=[{test:function(e){return"string"==typeof e&&!!e.startsWith("#")},convert:function(e){return`rgb:${e.replace("#","")}`}}],tW={aspectRatio:tI,crop:t$,gravity:tZ,height:tM,width:tq},tB={angle:tN,gravity:tZ,x:tF,y:tU},tH={alignment:{qualifier:!1,order:6},antialias:{qualifier:"antialias"},border:{qualifier:"bo",location:"primary"},color:{qualifier:"co",location:"primary",converters:tV},fontFamily:{qualifier:!1,order:1},fontSize:{qualifier:!1,order:2},fontStyle:{qualifier:!1,order:4},fontWeight:{qualifier:!1,order:3},hinting:{qualifier:"hinting"},letterSpacing:{qualifier:"letter_spacing"},lineSpacing:{qualifier:"line_spacing"},stroke:{qualifier:"self",order:7},textDecoration:{qualifier:!1,order:5}},tK={angle:tN,art:{prefix:"e",qualifier:"art",schema:eU().describe(JSON.stringify({text:"Applies the selected artistic filter.",url:"https://cloudinary.com/documentation/transformation_reference#e_art"}))},autoBrightness:{prefix:"e",qualifier:"auto_brightness",schema:eK([eU(),eV()]).describe(JSON.stringify({text:"Automatically adjusts the image brightness and blends the result with the original image.",url:"https://cloudinary.com/documentation/transformation_reference#e_auto_brightness"}))},autoColor:{prefix:"e",qualifier:"auto_color",schema:eK([eU(),eV()]).describe(JSON.stringify({text:"Automatically adjusts the image color balance and blends the result with the original image.",url:"https://cloudinary.com/documentation/transformation_reference#e_auto_color"}))},autoContrast:{prefix:"e",qualifier:"auto_contrast",schema:eK([eU(),eV()]).describe(JSON.stringify({text:"Automatically adjusts the image contrast and blends the result with the original image.",url:"https://cloudinary.com/documentation/transformation_reference#e_auto_contrast"}))},assistColorblind:{prefix:"e",qualifier:"assist_colorblind",schema:eK([eU(),eV()]).describe(JSON.stringify({text:"Applies stripes or color adjustment to help people with common color blind conditions to differentiate between colors that are similar for them.",url:"https://cloudinary.com/documentation/transformation_reference#e_assist_colorblind"}))},background:{qualifier:"b",schema:eU().describe(JSON.stringify({text:"Applies a background to empty or transparent areas.",url:"https://cloudinary.com/documentation/transformation_reference#b_background"}))},blackwhite:{prefix:"e",qualifier:"blackwhite",schema:eK([eU(),eV()]).describe(JSON.stringify({text:"Converts an image to black and white.",url:"https://cloudinary.com/documentation/transformation_reference#e_blackwhite"}))},blur:{prefix:"e",qualifier:"blur",schema:eK([eU(),eV()]).describe(JSON.stringify({text:"Applies a blurring filter to an asset.",url:"https://cloudinary.com/documentation/transformation_reference#e_blur"}))},blurFaces:{prefix:"e",qualifier:"blur_faces",schema:eK([eU(),eV()]).describe(JSON.stringify({text:"Blurs all detected faces in an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_blur_faces"}))},blurRegion:{prefix:"e",qualifier:"blur_region",schema:eK([eU(),eV()]).describe(JSON.stringify({text:"Applies a blurring filter to the region of an image specified by x, y, width and height, or an area of text. If no region is specified, the whole image is blurred.",url:"https://cloudinary.com/documentation/transformation_reference#e_blur_region"}))},border:{qualifier:"bo",schema:eU().describe(JSON.stringify({text:"Adds a solid border around an image or video.",url:"https://cloudinary.com/documentation/transformation_reference#bo_border"}))},brightness:{prefix:"e",qualifier:"brightness",schema:eK([eU(),eV()]).describe(JSON.stringify({text:"Adjusts the image or video brightness.",url:"https://cloudinary.com/documentation/transformation_reference#e_brightness"}))},brightnessHSB:{prefix:"e",qualifier:"brightness_hsb",schema:eK([eU(),eV()]).describe(JSON.stringify({text:"Adjusts image brightness modulation in HSB to prevent artifacts in some images.",url:"https://cloudinary.com/documentation/transformation_reference#e_brightness_hsb"}))},cartoonify:{prefix:"e",qualifier:"cartoonify",schema:eK([eU(),eV()]).describe(JSON.stringify({text:"Applies a cartoon effect to an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_cartoonify"}))},color:{qualifier:"co",schema:eU().describe(JSON.stringify({text:"A qualifier that specifies the color to use with the corresponding transformation.",url:"https://cloudinary.com/documentation/transformation_reference#co_color"})),converters:tV}
1,colorize:{prefix:"e",qualifier:"colorize",schema:eU().describe(JSON.stringify({text:"Colorizes an image. By default, gray is used for colorization. You can specify a different color using the color qualifier.",url:"https://cloudinary.com/documentation/transformation_reference#e_colorize"}))},contrast:{prefix:"e",qualifier:"contrast",schema:eK([eU(),eV()]).describe(JSON.stringify({text:"Adjusts an image or video contrast.",url:"https://cloudinary.com/documentation/transformation_reference#e_contrast"}))},displace:{prefix:"e",qualifier:"distort",schema:eU().describe(JSON.stringify({text:"Displaces the pixels in an image according to the color channels of the pixels in another specified image (a gradient map specified with the overlay parameter).",url:"https://cloudinary.com/documentation/transformation_reference#e_displace"}))},distort:{prefix:"e",qualifier:"distort",schema:eU().describe(JSON.stringify({text:"Distorts an image to a new shape by either adjusting its corners or by warping it into an arc.",url:"https://cloudinary.com/documentation/transformation_reference#e_distort"}))},fillLight:{prefix:"e",qualifier:"fill_light",schema:eK([eU(),eV()]).describe(JSON.stringify({text:"Adjusts the fill light and optionally blends the result with the original image.",url:"https://cloudinary.com/documentation/transformation_reference#e_fill_light"}))},gamma:{prefix:"e",qualifier:"gamma",schema:eK([eU(),eV()]).describe(JSON.stringify({text:"Adjusts the image or video gamma level.",url:"https://cloudinary.com/documentation/transformation_reference#e_gamma"}))},gradientFade:{prefix:"e",qualifier:"gradient_fade",schema:eK([eU(),eV()]).describe(JSON.stringify({text:"Applies a gradient fade effect from the edge of an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_gradient_fade"}))},grayscale:{prefix:"e",qualifier:"grayscale",schema:eV().describe(JSON.stringify({text:"Converts an image to grayscale (multiple shades of gray).",url:"https://cloudinary.com/documentation/transformation_reference#e_grayscale"}))},hue:{prefix:"e",qualifier:"hue",schema:eK([eU(),eV()]).describe(JSON.stringify({text:"Adjusts an image's hue.",url:"https://cloudinary.com/documentation/transformation_reference#e_hue"}))},improve:{prefix:"e",qualifier:"improve",schema:eK([eU(),eV()]).describe(JSON.stringify({text:"Adjusts an image's colors, contrast and brightness to improve its appearance.",url:"https://cloudinary.com/documentation/transformation_reference#e_improve"}))},loop:{prefix:"e",qualifier:"loop",schema:eK([eV(),eJ(),eU()]).describe(JSON.stringify({text:"Loops a video or animated image the specified number of times.",url:"https://cloudinary.com/documentation/transformation_reference#e_loop"}))},multiply:{prefix:"e",qualifier:"multiply",schema:eV().describe(JSON.stringify({text:"A qualifier that blends image layers using the multiply blend mode",url:"https://cloudinary.com/documentation/transformation_reference#e_multiply"}))},negate:{prefix:"e",qualifier:"negate",schema:eK([eU(),eV()]).describe(JSON.stringify({text:"https://cloudinary.com/documentation/transformation_reference#e_negate",url:"https://cloudinary.com/documentation/transformation_reference#e_negate"}))},noise:{prefix:"e",qualifier:"noise",schema:eV().describe(JSON.stringify({text:"https://cloudinary.com/documentation/transformation_reference#e_noise",url:"https://cloudinary.com/documentation/transformation_reference#e_noise"}))},oilPaint:{prefix:"e",qualifier:"oil_paint",schema:eK([eU(),eV()]).describe(JSON.stringify({text:"https://cloudinary.com/documentation/transformation_reference#e_oil_paint",url:"https://cloudinary.com/documentation/transformation_reference#e_oil_paint"}))},opacity:{qualifier:"o",schema:eK([eU(),eJ()]).describe(JSON.stringify({text:"Adjusts the opacity of an asset and makes it semi-transparent.",url:"https://cloudinary.com/documentation/transformation_reference#o_opacity"}))},outline:{prefix:"e",qualifier:"outline",schema:eK([eU(),eV()]).describe(JSON.stringify({text:"Adds an outline effect to an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_outline"}))},pixelate:{prefix:"e",qualifier:"pixelate",schema:eK([eU(),eV()]).describe(JSON.stringify({text:"Applies a pixelation effect.",url:"https://cloudinary.com/documentation/transformation_reference#e_pixelate"}))},pixelateFaces:{prefix:"e",qualifier:"pixelate_faces",schema:eK([eU(),eV()]).describe(JSON.stringify({text:"Pixelates all detected faces in an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_pixelate_faces"}))},pixelateRegion:{prefix:"e",qualifier:"pixelate_region",schema:eK([eU(),eV()]).describe(JSON.stringify({text:"Pixelates the region of an image specified by x, y, width and height, or an area of text.",url:"https://cloudinary.com/documentation/transformation_reference#e_pixelate_region"}))},radius:{qualifier:"r",schema:eK([eU(),eJ()]).describe(JSON.stringify({text:"Rounds the corners of an image or video.",url:"https://cloudinary.com/documentation/transformation_reference#r_round_corners"}))},redeye:{prefix:"e",qualifier:"redeye",schema:eK([eU(),eV()]).describe(JSON.stringify({text:"Automatically removes red eyes in an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_redeye"}))},replaceColor:{prefix:"e",qualifier:"replace_color",schema:eU().describe(JSON.stringify({text:"Maps an input color and those similar to the input color to corresponding shades of a specified output color.",url:"https://cloudinary.com/documentation/transformation_reference#e_replace_color"}))},saturation:{prefix:"e",qualifier:"saturation",schema:eK([eU(),eV()]).describe(JSON.stringify({text:"Adjusts an image or video saturation level.",url:"https://cloudinary.com/documentation/transformation_reference#e_saturation"}))},screen:{prefix:"e",qualifier:"screen",schema:eV().describe(JSON.stringify({text:"A qualifier that blends image layers using the screen blend mode.",url:"https://cloudinary.com/documentation/transformation_reference#e_screen"}))},sepia:{prefix:"e",qualifier:"sepia",schema:eK([eU(),eV()]).describe(JSON.stringify({text:"Changes the color scheme of an image to sepia.",url:"https://cloudinary.com/documentation/transformation_reference#e_sepia"}))},shadow:{prefix:"e",qualifier:"shadow",schema:eK([eU(),eV()]).describe(JSON.stringify({text:"Adds a gray shadow to the bottom right of an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_shadow"}))},sharpen:{prefix:"e",qualifier:"sharpen",schema:eK([eU(),eV()]).describe(JSON.stringify({text:"Applies a sharpening filter.",url:"https://cloudinary.com/documentation/transformation_reference#e_sharpen"}))},shear:{prefix:"e",qualifier:"shear",schema:eU().describe(JSON.stringify({text:"Skews an image according to the two specified values in degrees.",url:"https://cloudinary.com/documentation/transformation_reference#e_shear"}))},simulateColorblind:{prefix:"e",qualifier:"simulate_colorblind",schema:eK([eU(),eV()]).describe(JSON.stringify({text:"Simulates the way an image would appear to someone with the specified color blind condition.",url:"https://cloudinary.com/documentation/transformation_reference#e_simulate_colorblind"}))},tint:{prefix:"e",qualifier:"tint",schema:eK([eU(),eV()]).describe(JSON.stringify({text:"Blends an image with one or more tint colors at a specified intensity.",url:"https://cloudinary.com/documentation/transformation_reference#e_tint"}))},trim:{prefix:"e",qualifier:"trim",schema:eK([eU(),eV()]).describe(JSON.stringify({text:"Detects and removes image edges whose color is similar to the corner pixels.",url:"https://cloudinary.com/documentation/transformation_reference#e_trim"}))},unsharpMask:{prefix:"e",qualifier:"unsharp_mask",schema:eK([eU(),eV()]).describe(JSON.stringify({text:"Applies an unsharp mask filter to an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_unsharp_mask"}))}
1,vectorize:{prefix:"e",qualifier:"vectorize",schema:eK([eU(),eV()]).describe(JSON.stringify({text:"Vectorizes an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_vectorize"}))},vibrance:{prefix:"e",qualifier:"vibrance",schema:eK([eU(),eV()]).describe(JSON.stringify({text:"Applies a vibrance filter to an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_vibrance"}))},vignette:{prefix:"e",qualifier:"vignette",schema:eK([eU(),eV()]).describe(JSON.stringify({text:"Applies a vignette effect to an image.",url:"https://cloudinary.com/documentation/transformation_reference#e_vignette"}))}};function tY({prefix:e,qualifier:t,value:i,converters:r}){let a="";e&&(a=`${e}_`);let n=i;return(r?.forEach(({test:e,convert:t})=>{e(n)&&(n=t(n))}),!0===n||"true"===n)?`${a}${t}`:"string"==typeof n||"number"==typeof n?e?`${a}${t}:${n}`:`${t}_${n}`:void 0}function tG(e){return`(${e.join(";")})`}function tQ(e){return"string"!=typeof e?e:parseInt(e)}var tX=["auto","crop","fill","lfill","fill_pad","thumb"],t0=["auto","crop","fill","lfill","fill_pad","thumb"],t1=["crop","thumb"],t9="limit",t4=eH({aspectRatio:tI.schema.optional(),type:t$.schema,gravity:tZ.schema.optional(),height:tM.schema.optional(),width:tq.schema.optional(),x:tF.schema.optional(),y:tU.schema.optional(),zoom:tJ.schema.optional(),source:eV().optional()}),t2={aspectRatio:tI.schema.optional(),crop:eK([t$.schema,t4,eB(t4)]).default(t9).optional(),gravity:tZ.schema.optional(),zoom:tJ.schema.optional()},t3={angle:tK.angle.schema.optional(),art:tK.art.schema.optional(),autoBrightness:tK.autoBrightness.schema.optional(),autoColor:tK.autoColor.schema.optional(),autoContrast:tK.autoContrast.schema.optional(),assistColorblind:tK.assistColorblind.schema.optional(),background:tK.background.schema.optional(),blackwhite:tK.blackwhite.schema.optional(),blur:tK.blur.schema.optional(),blurFaces:tK.blurFaces.schema.optional(),blurRegion:tK.blurRegion.schema.optional(),border:tK.border.schema.optional(),brightness:tK.brightness.schema.optional(),brightnessHSB:tK.brightnessHSB.schema.optional(),cartoonify:tK.cartoonify.schema.optional(),color:tK.color.schema.optional(),colorize:tK.colorize.schema.optional(),contrast:tK.contrast.schema.optional(),distort:tK.distort.schema.optional(),fillLight:tK.fillLight.schema.optional(),gamma:tK.gamma.schema.optional(),gradientFade:tK.gradientFade.schema.optional(),grayscale:tK.grayscale.schema.optional(),improve:tK.improve.schema.optional(),loop:tK.loop.schema.optional(),multiply:tK.multiply.schema.optional(),negate:tK.negate.schema.optional(),oilPaint:tK.oilPaint.schema.optional(),opacity:tK.opacity.schema.optional(),outline:tK.outline.schema.optional(),pixelate:tK.pixelate.schema.optional(),pixelateFaces:tK.pixelateFaces.schema.optional(),pixelateRegion:tK.pixelateRegion.schema.optional(),radius:tK.radius.schema.optional(),redeye:tK.redeye.schema.optional(),replaceColor:tK.replaceColor.schema.optional(),saturation:tK.saturation.schema.optional(),screen:tK.screen.schema.optional(),sepia:tK.sepia.schema.optional(),shadow:tK.shadow.schema.optional(),sharpen:tK.sharpen.schema.optional(),shear:tK.shear.schema.optional(),simulateColorblind:tK.simulateColorblind.schema.optional(),tint:tK.tint.schema.optional(),trim:tK.trim.schema.optional(),unsharpMask:tK.unsharpMask.schema.optional(),vectorize:tK.vectorize.schema.optional(),vibrance:tK.vibrance.schema.optional(),vignette:tK.vignette.schema.optional()},t5={effects:eB(eH(t3)).describe(JSON.stringify({text:"Array of objects specifying transformations to be applied to asset."})).optional(),...t3},{flagsEnum:t6}=tT,t8={flags:tR.schema.optional()},t7=eU(),ie={namedTransformations:eK([t7,eB(t7)]).describe(JSON.stringify({text:"Named transformations to apply to asset.",url:"https://cloudinary.com/documentation/image_transformations#named_transformations"})).optional(),transformations:eK([t7,eB(t7)]).describe(JSON.stringify({text:"Deprecated: use namedTransformations instead",url:"https://cloudinary.com/documentation/image_transformations#named_transformations"})).optional()},it=eH({alignment:eU().optional(),antialias:eU().optional(),border:eU().optional(),color:eU().optional(),fontFamily:eU().optional(),fontSize:eJ().optional(),fontStyle:eK([eU(),eJ()]).optional(),fontWeight:eU().optional(),hinting:eK([eU(),eJ()]).optional(),letterSpacing:eK([eU(),eJ()]).optional(),lineSpacing:eK([eU(),eJ()]).optional(),stroke:eU().optional(),text:eU()}),ii=eH({angle:tN.schema.optional(),gravity:tZ.schema.optional(),x:tF.schema.optional(),y:tU.schema.optional()}),ir=eH({appliedEffects:eB(eH({})).optional(),appliedFlags:tR.schema.optional(),effects:eB(eH({})).optional(),crop:t$.schema.optional(),flags:tR.schema.optional(),height:tM.schema.optional(),position:ii.optional(),publicId:eU().optional(),text:eK([eU(),it]).optional(),url:eU().optional(),width:tq.schema.optional()}),ia={color:"black",fontFamily:"Arial",fontSize:200,fontWeight:"bold"},is={overlay:ir.describe(JSON.stringify({text:"Image or text layer that is applied on top of the base image.",url:"https://cloudinary.com/documentation/transformation_reference#l_layer"})).optional(),overlays:eB(ir).describe(JSON.stringify({text:"Image or text layers that are applied on top of the base image.",url:"https://cloudinary.com/documentation/transformation_reference#l_layer"})).optional(),text:eU().describe(JSON.stringify({text:"Text to be overlaid on asset.",url:"https://cloudinary.com/documentation/image_transformations#transformation_url_structure"})).optional()},io={preserveTransformations:eV().describe(JSON.stringify({text:"Preserves transformations from a Cloudinary U
1RL when using using a Cloudinary URL as the asset source (src)."})).optional()},il=eU(),id={rawTransformations:eK([il,eB(il)]).describe(JSON.stringify({text:"Array of transformation parameters using the Cloudinary URL API to apply to an asset.",url:"https://cloudinary.com/documentation/transformation_reference"})).optional()},ic={removeBackground:eV().describe(JSON.stringify({text:"Removes the background of an image using the Cloudinary AI Background Removal Add-On (Required).",url:"https://cloudinary.com/documentation/cloudinary_ai_background_removal_addon"})).optional()},iu={sanitize:eV().describe(JSON.stringify({text:"Runs a sanitizer on SVG images.",url:"https://cloudinary.com/documentation/transformation_reference#fl_sanitize"})).optional()},ih={seoSuffix:eU().describe(JSON.stringify({text:"Configures the URL to include an SEO-friendly suffix in the URL",url:"https://cloudinary.com/documentation/advanced_url_delivery_options#seo_friendly_media_asset_urls"})).optional()},ip=eH({angle:tN.schema.optional(),gravity:tZ.schema.optional(),x:tF.schema.optional(),y:tU.schema.optional()}),im=eH({appliedEffects:eB(eH({})).optional(),appliedFlags:tR.schema.optional(),effects:eB(eH({})).optional(),crop:t$.schema.optional(),flags:tR.schema.optional(),height:tM.schema.optional(),position:ip.optional(),publicId:eU().optional(),type:eU().optional(),url:eU().optional(),width:tq.schema.optional()}),ig={underlay:eU().describe(JSON.stringify({text:"Public ID of image that is applied under the base image.",url:"https://cloudinary.com/documentation/transformation_reference#l_layer"})).optional(),underlays:eB(im).describe(JSON.stringify({text:"Image layers that are applied under the base image.",url:"https://cloudinary.com/documentation/transformation_reference#l_layer"})).optional()},iy={version:eK([eJ(),eU()]).describe(JSON.stringify({text:"Custom version number to apply to asset URL.",url:"https://cloudinary.com/documentation/advanced_url_delivery_options#asset_versions"})).optional()},iv=eH({assetType:eU().default("image").describe(JSON.stringify({text:"The type of asset to deliver.",url:"https://cloudinary.com/documentation/image_transformations#transformation_url_structure"})).optional(),deliveryType:eU().default("upload").describe(JSON.stringify({text:"Delivery method of the asset.",url:"https://cloudinary.com/documentation/image_transformations#delivery_types"})).optional(),dpr:eK([eU(),eJ()]).describe(JSON.stringify({text:"Delivery method of the asset.",url:"https://cloudinary.com/documentation/image_transformations#delivery_types"})).optional(),format:eU().default("auto").describe(JSON.stringify({text:"Converts (if necessary) and delivers an asset in the specified format.",url:"https://cloudinary.com/documentation/transformation_reference#f_format"})).optional(),height:eK([eU(),eJ()]).describe(JSON.stringify({text:"Height of the given asset."})).optional(),quality:eK([eU(),eJ(),eU()]).default("auto").describe(JSON.stringify({text:"Quality of the delivered asset",url:"https://cloudinary.com/documentation/transformation_reference#q_quality"})).optional(),src:eU().describe(JSON.stringify({text:"Cloudinary Public ID or versioned Cloudinary URL (/v1234/)"})),strictTransformations:eV().describe(JSON.stringify({text:"Gives you the ability to have more control over what transformations are permitted to be used from your Cloudinary account.",url:"https://cloudinary.com/documentation/control_access_to_media#strict_transformations"})).optional(),width:eK([eU(),eJ()]).describe(JSON.stringify({text:"Width of the given asset."})).optional(),...t2,...t5,...t8,...ie,...is,...io,...id,...ic,...iu,...ih,...ig,...iy}),i_={defaultImage:eU().describe(JSON.stringify({text:"Configures the default image to use in case the given public ID is not available. Must include file extension.",url:"https://cloudinary.com/documentation/transformation_reference#d_default_image"})).optional()},ib={enhance:eV().describe(JSON.stringify({text:"Uses AI to analyze an image and make adjustments to enhance the appeal of the image.",url:"https://cloudinary.com/documentation/transformation_reference#e_enhance"})).optional()},iw={extract:eK([tD.schema.optional(),eB(tD.schema).optional(),eH({invert:eV().default(!1).optional(),mode:tL.schema.optional(),multiple:tP.schema.default(!1).optional(),prompt:eK([tD.schema,eB(tD.schema)]).optional()})]).describe(JSON.stringify({text:"Extracts an area or multiple areas of an image, described 
1in natural language.",url:"https://cloudinary.com/documentation/transformation_reference#e_extract"})).optional()};function ix(e){return"string"==typeof e?e:Array.isArray(e)?`(${e.filter(e=>"string"==typeof e).join(";")})`:void 0}var ik={fillBackground:eK([eV(),eH({crop:t$.schema.optional(),gravity:tZ.schema.optional(),prompt:eU().optional()})]).describe(JSON.stringify({text:"Uses Generative Fill to extended padded image with AI",url:"https://cloudinary.com/documentation/transformation_reference#b_gen_fill"})).optional()},iS=eK([eU(),eB(eU())]),iO=eH({prompt:iS.optional(),to:eU().optional(),multiple:eV().optional()}),iT={recolor:eK([iS,iO]).describe(JSON.stringify({text:"Uses generative AI to recolor parts of your image, maintaining the relative shading.",url:"https://cloudinary.com/documentation/transformation_reference#e_gen_recolor"})).optional()},iA=eK([eU(),eB(eU())]),iE=eH({prompt:iA.optional(),region:eK([eB(eJ()),eB(eB(eJ()))]).optional(),multiple:eV().optional(),removeShadow:eV().optional()}),iC={remove:eK([iA,iE]).describe(JSON.stringify({text:"Applies zooming and/or panning to an image, resulting in a video or animated image.",url:"https://cloudinary.com/documentation/transformation_reference#e_zoompan"})).optional()},iN={replaceBackground:eK([eV(),eU(),eH({seed:eJ().optional(),prompt:eU().optional()})]).describe(JSON.stringify({text:"Replaces the background of an image with an AI-generated background.",url:"https://cloudinary.com/documentation/transformation_reference#e_gen_background_replace"})).optional()},ij={replace:eK([eB(eU()),eB(eV()),eH({to:eU(),from:eU(),preserveGeometry:eV().optional()})]).describe(JSON.stringify({text:"Uses generative AI to replace parts of your image with something else.",url:"https://cloudinary.com/documentation/transformation_reference#e_gen_replace"})).optional()},iI={restore:eV().describe(JSON.stringify({text:"Uses generative AI to restore details in poor quality images or images that may have become degraded through repeated processing and compression.",url:"https://cloudinary.com/documentation/transformation_reference#e_gen_restore"})).optional()},i$={zoompan:eK([eU(),eV(),eH({loop:tK.loop.schema.optional(),options:eU()})]).describe(JSON.stringify({text:"Applies zooming and/or panning to an image, resulting in a video or animated image.",url:"https://cloudinary.com/documentation/transformation_reference#e_zoompan"})).optional()},iL=iv.merge(eH({...i_,...ib,...iw,...ik,...iT,...iC,...ij,...iN,...iI,...i$})),iR={streamingProfile:eU().describe(JSON.stringify({text:"The streaming profile to apply when delivering a video using adaptive bitrate streaming.",url:"https://cloudinary.com/documentation/transformation_reference#sp_streaming_profile"})).optional()},iz=iv.merge(eH({...iR})),iZ=eW(),iM=eW(),iP=[{props:ib,assetTypes:["image","images"],plugin:e=>{let{cldAsset:t,options:i}=e,{enhance:r=!1}=i;return r&&t.effect("e_enhance"),{}}},{props:iw,assetTypes:["image","images"],plugin:e=>{let{cldAsset:t,options:i}=e,{extract:r}=i;if(!r||void 0===r)return{};let a=[];if("string"==typeof r)a.push(`prompt_${r}`);else if(Array.isArray(r))a.push(`prompt_${ix(r)}`);else if("object"==typeof r&&!Array.isArray(r)){let e=ix(r.prompt);e&&a.push(`prompt_${e}`),!0===r.invert&&a.push("invert_true"),"string"==typeof r.mode&&a.push(`mode_${r.mode}`),!0===r.multiple&&a.push("multiple_true")}if(a.length>0){let e=`e_extract:${a.join(";")}`;t.addTransformation(e)}return{}}},{props:iT,assetTypes:["image","images"],plugin:e=>{let{cldAsset:t,options:i}=e,{recolor:r}=i,a={prompt:void 0,"to-color":void 0,multiple:void 0};Array.isArray(r)?(Array.isArray(r[0])?a.prompt=tG(r[0]):a.prompt=r[0],"string"==typeof r[1]&&(a["to-color"]=r[1])):"object"==typeof r&&("string"==typeof r.prompt?a.prompt=r.prompt:Array.isArray(r.prompt)&&(a.prompt=tG(r.prompt)),"string"==typeof r.to&&(a["to-color"]=r.to),!0===r.multiple&&(a.multiple="true"));let n=Object.entries(a).filter(([,e])=>!!e).map(([e,t])=>`${e}_${t}`).join(";");return n&&t.addTransformation(`e_gen_recolor:${n}`),{}}},{props:ic,assetTypes:["image","images"],plugin:e=>{let{cldAsset:t,options:i}
1=e,{removeBackground:r=!1}=i;return r&&t.effect("e_background_removal"),{}}},{props:iC,assetTypes:["image","images"],plugin:({cldAsset:e,options:t})=>{let{remove:i}=t,r={prompt:void 0,region:void 0,multiple:void 0,"remove-shadow":void 0};if("string"==typeof i)r.prompt=i;else if(Array.isArray(i))r.prompt=tG(i);else if("object"==typeof i){let e="string"==typeof i.prompt||Array.isArray(i.prompt),t=Array.isArray(i.region);if(e&&t)throw Error("Invalid remove options: you can not have both a prompt and a region. More info: https://cloudinary.com/documentation/transformation_reference#e_gen_remove");"string"==typeof i.prompt?r.prompt=i.prompt:Array.isArray(i.prompt)&&(r.prompt=tG(i.prompt)),Array.isArray(i.region)&&(r.region=function e(t){let i={0:"x",1:"y",2:"w",3:"h"},r=t.map((t,r)=>{if(Array.isArray(t))return e(t);let a=i[r];return`${a}_${t}`}).join(";");return`(${r})`}(i.region)),!0===i.multiple&&(r.multiple="true"),!0===i.removeShadow&&(r["remove-shadow"]="true")}let a=Object.entries(r).filter(([,e])=>!!e).map(([e,t])=>`${e}_${t}`).join(";");return a&&e.addTransformation(`e_gen_remove:${a}`),{}}},{props:ij,assetTypes:["image","images"],plugin:({cldAsset:e,options:t})=>{let{replace:i=null}=t;if(i){let t,r,a=!1;Array.isArray(i)?(t=i[0],r=i[1],a=i[2]||!1):(t=i.from,r=i.to,a=i.preserveGeometry||!1);let n=[`e_gen_replace:from_${t}`,`to_${r}`];a&&n.push(`preserve-geometry_${a}`),e.effect(n.join(";"))}return{}}},{props:iN,assetTypes:["image","images"],plugin:e=>{let{cldAsset:t,options:i}=e,{replaceBackground:r}=i;if(!r||void 0===r)return{};let a=[];"object"==typeof r?(void 0!==r.prompt&&a.push(`prompt_${r.prompt}`),"number"==typeof r.seed&&a.push(`seed_${r.seed}`)):"string"==typeof r&&a.push(`prompt_${r}`);let n="e_gen_background_replace";return a.length>0&&(n=`${n}:${a.join(";")}`),t.addTransformation(n),{}}},{props:iI,assetTypes:["image","images"],plugin:({cldAsset:e,options:t})=>{let{restore:i=!1}=t;return i&&e.effect("e_gen_restore"),{}}},{props:t2,assetTypes:["image","images","video","videos"],plugin:e=>{let{cldAsset:t,options:i}=e,r=[];"string"==typeof i.crop||void 0===i.crop?r.push({aspectRatio:i.aspectRatio,height:i.height,gravity:i.gravity,type:i.crop||t9,width:i.width,zoom:i.zoom}):"object"!=typeof i.crop||Array.isArray(i.crop)?Array.isArray(i.crop)&&(r=i.crop):r.push(i.crop),1===r.length&&!0===r[0].source&&r.push({aspectRatio:i.aspectRatio,width:i.width,height:i.height,gravity:i.gravity,type:t9,zoom:i.zoom});let a=[],n=[];for(let e of r){let t={width:e.width,height:e.height};void 0===t.width&&void 0===e.aspectRatio&&(t.width=i.width,void 0===t.height&&(t.height=i.height));let r=function(e){let{aspectRatio:t,type:i,x:r,y:a,zoom:n}=e,s=e.gravity,o=tQ(e.height),l=tQ(e.width),d=[],c=t&&tX.includes(i),u="number"==typeof r||"string"==typeof r,h="number"==typeof a||"string"==typeof a,p=u||h;return i&&(o||l||c||p)&&d.push(`c_${i}`),c&&d.push(`ar_${t}`),l&&d.push(`w_${l}`),["limit"].includes(i)||"number"!=typeof o||d.push(`h_${o}`),u&&d.push(`x_${r}`),h&&d.push(`y_${a}`),!s&&t0.includes(i)&&!p&&(s="auto"),s&&("auto"!==s||t0.includes(i)?d.push(`g_${s}`):console.warn(`Auto gravity can only be used with crop modes: ${t0.join(", ")}. Not applying gravity.`)),n&&("auto"!==n||t1.includes(i)?d.push(`z_${n}`):console.warn(`Zoom can only be used with crop modes: ${t1.join(", ")}. Not applying zoom.`)),d}({aspectRatio:e.aspectRatio,gravity:e.gravity,type:e.type||t9,x:e.x,y:e.y,zoom:e.zoom,...t});r.length>0&&(!0===e.source?n.push(r):a.push(r))}n.forEach(e=>{e.length>0&&t.addTransformation(e.join(","))});let s={options:{}};return s.options&&a.length>0&&(s.options.resize=a.map(e=>e.join(",")).join("/")),s}},{props:io,assetTypes:["image","images","video","videos"],plugin:({cldAsset:e,options:t})=>{let{preserveTransformations:i=!1}=t;if(i)try{(function(e){let{transformations:t=[]}=v(e)||{};return t.map(e=>e.split(","))})(t.src).map(e=>e.join(",")).flat().forEach(t=>{e.addTransformation(t)})}catch(e){console.warn(`Failed to preserve transformations: ${e.message}`)}return{}}},{props:id,assetTypes:["image","images","video","videos"],plugin:({cldAsset:e,options:t})=>{let{rawTransformations:i=[]}=t;
1return Array.isArray(i)||(i=[i]),i.forEach(t=>{e.addTransformation(t)}),{}}},{props:iR,assetTypes:["video","videos"],plugin:e=>{let{cldAsset:t,options:i}=e,{streamingProfile:r}=i;return"string"==typeof r&&t.addTransformation(`sp_${r}`),{}}},{props:i_,assetTypes:["image","images"],plugin:e=>{let{cldAsset:t,options:i}=e,{defaultImage:r}=i;if("string"==typeof r){_(r)||console.warn("The defaultImage prop may be missing a format and must include it along with the public ID. (Ex: myimage.jpg)");let e=r.replace(/\//g,":");t.addTransformation(`d_${e}`)}return{}}},{props:t5,assetTypes:["image","images","video","videos"],plugin:e=>{let{cldAsset:t,options:i}=e;function r({effects:e,options:t}){return Object.keys(e).map(i=>{let{prefix:r,qualifier:a,converters:n}=e[i];return tY({qualifier:a,prefix:r,value:t?.[i],converters:n})})}return r({effects:tK,options:i}).filter(e=>!!e).forEach(e=>t.effect(e)),Array.isArray(i?.effects)&&i?.effects.forEach(e=>{let i=r({effects:tK,options:e}).filter(e=>!!e).join(",");t.effect(i)}),{}}},{props:ik,assetTypes:["image","images"],plugin:e=>{let{cldAsset:t,options:i}=e,{fillBackground:r}=i;if(void 0===r)return{};let a=tQ(i.width),n=tQ(i.height),s=i.aspectRatio;if(s||"number"!=typeof n||"number"!=typeof a||(s=`${a}:${n}`),!s)return{};if(!0===r){let e=["b_gen_fill",`ar_${s}`,"c_pad"];t.addTransformation(e.join(","))}else if("object"==typeof r){let{crop:e="pad",gravity:i,prompt:a}=r,n=[`ar_${s}`,`c_${e}`];"string"==typeof a?n.unshift(`b_gen_fill:${a}`):n.unshift("b_gen_fill"),"string"==typeof i&&n.push(`g_${i}`),t.addTransformation(n.join(","))}return{}}},{props:t8,assetTypes:["image","images","video","videos"],plugin:e=>{let{cldAsset:t,options:i}=e,{flags:r=[]}=i;return Array.isArray(r)&&r.length>0?r.forEach(e=>{let{success:i}=t6.safeParse(e);i&&t.addFlag(e)}):"object"==typeof r&&Object.entries(r).forEach(([e,i])=>{let{success:r}=t6.safeParse(e);r&&t.addTransformation(`fl_${e}:${i}`)}),{}}},{props:is,assetTypes:["image","images","video","videos"],plugin:({cldAsset:e,options:t})=>{let{text:i,overlays:r=[]}=t;function a({publicId:t,url:i,position:r,text:a,effects:n=[],appliedEffects:s=[],flags:o=[],appliedFlags:l=[],...d}){let c;let u="string"==typeof t,h="string"==typeof i,f="object"==typeof a||"string"==typeof a,m="object"==typeof r;if(!u&&!h&&!f){console.warn("An overlay is missing Public ID, URL, or Text");return}f?c="l_text":u?c=`l_${t.replace(/\//g,":")}`:h&&(c=`l_fetch:${"function"==typeof btoa?btoa(i):void 0!==p?p.from(i).toString("base64"):void 0}`);let g=[],y=[];if(Object.keys(d).forEach(e=>{if(!b(tW,e))return;let{qualifier:t,converters:i}=tW[e],r=tY({qualifier:t,value:d[e],converters:i});r&&g.push(r)}),n.forEach(e=>{Object.keys(e).forEach(t=>{let i=tW[t]||tK[t]||tB[t];if(!i)return;let{qualifier:r,prefix:a,converters:n}=i,s=tY({qualifier:r,prefix:a,value:e[t],converters:n});s&&g.push(s)})}),s.forEach(e=>{Object.keys(e).forEach(t=>{let i=tW[t]||tK[t]||tB[t];if(!i)return;let{qualifier:r,prefix:a,converters:n}=i,s=tY({qualifier:r,prefix:a,value:e[t],converters:n});s&&y.push(s)})}),(Array.isArray(o)?o:[o]).forEach(e=>{let{success:t}=tC.safeParse(e);t&&g.push(`fl_${e}`)}),(Array.isArray(l)?l:[l]).forEach(e=>{let{success:t}=tC.safeParse(e);t&&y.push(`fl_${e}`)}),f){"string"==typeof a&&(a={...ia,text:a});let e=[];
1if("object"==typeof a)for(let t of function(e=[],t,i="asc"){let r=[...e];return"string"!=typeof t?r:(r=r.sort(function(e,i){let r=e[t],a=i[t];return("string"==typeof r&&(r=r.toLowerCase()),"string"==typeof a&&(a=a.toLowerCase()),r<a)?-1:r>a?1:0}),"desc"===i)?r.reverse():r}(Object.keys(a).filter(e=>b(tH,e)).map(e=>{let t=a&&b(a,e)&&a[e];return{...tH[e],key:e,value:t,order:tH[e].order||99}}),"order")){let{key:i,value:r,qualifier:a,location:n,converters:s}=t,o=r;s?.forEach(({test:e,convert:t})=>{e(r)&&(o=t(r))}),"primary"===n?g.push(`${a}_${o}`):"self"===a?e.push(i):a?e.push(`${a}_${o}`):e.push(o)}let t={".":"%2E",",":"%2C","/":"%2F"},i=a?.text||"";"string"==typeof i&&Object.keys(t)?.forEach(e=>{i=i?.replace(e,t[e])}),c=`${c}:${e.join("_")}:${i}`}m&&Object.keys(r).forEach(e=>{if(!b(tB,e)||!b(r,e))return;let{qualifier:t,converters:i}=tB[e],a=tY({qualifier:t,value:r[e],converters:i});a&&y.push(a)}),g.length>0&&(c=`${c},${g.join(",")}`),c=`${c}/fl_layer_apply,fl_no_overflow`,y.length>0&&(c=`${c},${y.join(",")}`),e.addTransformation(c)}return Array.isArray(r)&&r.forEach(a),"string"==typeof i?a({text:Object.assign({},ia,{text:i})}):"object"==typeof i&&a({text:Object.assign({},ia,i)}),{}}},{props:iu,assetTypes:["image","images"],plugin:({cldAsset:e,options:t})=>{let{sanitize:i=!0}=t;return i&&("svg"===t.format||e.publicID.endsWith(".svg"))&&e.effect("fl_sanitize"),{}}},{props:ie,strict:!0,assetTypes:["image","images","video","videos"],plugin:({cldAsset:e,options:t})=>{let{transformations:i,namedTransformations:r}=t;i&&"development"===tS.env.NODE_ENVIRONMENT&&console.warn("The transformations prop is deprecated. Please use namedTransformations instead.");let a=r||i||[];return Array.isArray(a)||(a=[a]),a.forEach(t=>{e.addTransformation(`t_${t}`)}),{}}},{props:ih,assetTypes:["image","images","video","videos"],plugin:({cldAsset:e,options:t})=>{let{seoSuffix:i}=t;return"string"==typeof i&&("fetch"===t.deliveryType?console.warn("SEO suffix is not supported with a delivery type of fetch"):e.setSuffix(i)),{}}},{props:ig,assetTypes:["image","images","video","videos"],plugin:({cldAsset:e,options:t})=>{let{underlay:i,underlays:r=[]}=t;function a({publicId:t,type:i,position:r,effects:a=[],flags:n=[],appliedFlags:s=[],...o}){let l="object"==typeof r;if("string"!=typeof t){console.warn(`An ${i} is missing a Public ID`);return}let d=`u_${t.replace(/\//g,":")}`,c=[],u=[];Object.keys(o).forEach(e=>{if(!b(tW,e))return;let{qualifier:t}=tW[e];c.push(`${t}_${o[e]}`)}),a.forEach(e=>{Object.keys(e).forEach(t=>{if(!b(tW,t))return;let{qualifier:i}=tW[t];c.push(`${i}_${e[t]}`)})}),l&&Object.keys(r).forEach(e=>{if(!b(tB,e))return;let{qualifier:t}=tB[e];u.push(`${t}_${r[e]}`)}),(Array.isArray(n)?n:[n]).forEach(e=>{let{success:t}=tC.safeParse(e);t&&c.push(`fl_${e}`)}),(Array.isArray(s)?s:[s]).forEach(e=>{let{success:t}=tC.safeParse(e);t&&u.push(`fl_${e}`)}),d=`${d},${c.join(",")}`,d=`${d}/fl_layer_apply,fl_no_overflow`,u.length>0&&(d=`${d},${u.join(",")}`),e.addTransformation(d)}return Array.isArray(r)&&r.forEach(a),"string"==typeof i&&a({publicId:i,crop:"fill",width:"1.0",height:"1.0",flags:["relative"]}),{}}},{props:iy,assetTypes:["image","images","video","videos"],plugin:({cldAsset:e,options:t})=>{let{version:i}=t;return("string"==typeof i||"number"==typeof i)&&e.setVersion(`${i}`.replace("v","")),{}}},{props:i$,assetTypes:["image","images"],plugin:({cldAsset:e,options:t})=>{let{zoompan:i=!1}=t,r={format:void 0};if(!0===i)e.effect("e_zoompan");else if("string"==typeof i)"loop"===i?(e.effect("e_zoompan"),e.effect("e_loop")):e.effect(`e_zoompan:${i}`);else if("object"==typeof i){let t,r="e_zoompan";"string"==typeof i.options&&(r=`${r}:${i.options}`),e.effect(r),!0===i.loop?t="e_loop":("string"==typeof i.loop||"number"==typeof i.loop)&&(t=`e_loop:${i.loop}`),t&&e.effect(t)}return!1!==i&&(r.format="auto:animated"),{options:r}}}],iD=eK([iL,iz]).describe(JSON.stringify({text:"Asset options (Image or Video) that define delivery URL including public ID and transformations.",path:"/url-loader/assetoptions"}));function iq(e,t,i){if(void 0===t.transformation)return;let{matchType:r="includes"}=i||{};return t.transformation.actions.flatMap(e=>e.toString().split("/").flatMap(e=>e.split(","))).filter(t=>"startsWith"===r?t.startsWith(e):t.includes(e)).length>0}eH({analytics:eK([iZ,eV()]).describe(JSON.stringify({text:"Tech, dependency, and feature identifiers for tracking SDK usage related to Cloudinary.",path:"/url-loader/analyticsoptions"})).optional(),config:iM.describe(JSON.stringify({text:"Configuration parameters for environment and Cloudinary account.",url:"https://cloudinary.com/documentation/cloudinary_sdks#configuration_parameters",path:"/url-loader/analyticsoptions"})).optional(),options:iD}),i(7449),i(31877);
1var iF=i(20357),iU=iV("15.0.1"),iJ=iV("6.16.0");function iV(e){let t=e;return t.includes("-")&&(t=t.split("-")[0]),t}function iW(e,t,i){return function({options:e,config:t={},analytics:i}){let r,a;!1===i&&(void 0===t?.url&&(t.url={}),t.url.analytics=!1);let n=new tk(t);if("string"!=typeof e?.src)throw Error("Failed to construct Cloudinary URL: Missing source (src) in options.");e?.assetType||(e.assetType="image");let s=[];iP.forEach(({props:e})=>{Object.keys(e).forEach(e=>{if(s.includes(e))throw Error(`Option ${e} already exists!`);s.push(e)})});let o={};if("string"==typeof e.src&&/^https?:\/\//.test(e.src))try{let t=v(e.src);r=t?.publicId,o.seoSuffix=t?.seoSuffix,o.version=t?.version}catch(e){}if(r||(r=e.src),Object.keys(o).forEach(t=>{b(e,t)||(e[t]=o[t])}),e.version??(e.version=1),["image","images"].includes(e.assetType)?a=n.image(r):["video","videos"].includes(e.assetType)&&(a=n.video(r)),void 0===a)throw Error("Invalid asset type.");let l={};if(iP.forEach(({plugin:t,assetTypes:i,props:r,strict:n})=>{let s=e?.assetType!==void 0&&i.includes(e.assetType),o=Object.keys(r),d=Object.keys(e),c=o.map(e=>d.includes(e)).filter(e=>!!e).length>0;if(!s){c&&console.warn(`One of the following props [${o.join(", ")}] was used with an unsupported asset type [${e?.assetType}]`);return}if(e.strictTransformations&&!n){c&&console.warn(`One of the following props [${o.join(", ")}] was used that is not supported with Strict Transformations.`);return}let{options:u}=t({cldAsset:a,options:e})||{options:void 0};Object.assign(l,u)}),"string"==typeof l.resize&&a.addTransformation(l.resize),a.setDeliveryType(e?.deliveryType||"upload"),!e.strictTransformations){if(e?.dpr){let t=e.dpr;"number"==typeof t&&(t=t.toFixed(1)),a.addTransformation(`dpr_${t}`)}let t=e?.format==="default",i=iq("f_",a,{matchType:"startsWith"}),r=i&&void 0!==e?.format;(l?.format||!t&&(!i||r))&&a.format(e?.format||l?.format||"auto");let n=e?.quality==="default",s=iq("q_",a,{matchType:"startsWith"}),o=s&&void 0!==e?.quality;n||s&&!o||a.quality(e?.quality||"auto")}return a.toURL({trackedAnalytics:i})}({options:e,config:function(e){let t=e?.cloud?.cloudName??"dvgwux1az";if(!t)throw Error("A Cloudinary Cloud name is required, please make sure NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME is set and configured in your environment.");let i=e?.cloud?.apiKey??iF.env.NEXT_PUBLIC_CLOUDINARY_API_KEY,r=e?.url?.secureDistribution??iF.env.NEXT_PUBLIC_CLOUDINARY_SECURE_DISTRIBUTION,a=e?.url?.privateCdn??iF.env.NEXT_PUBLIC_CLOUDINARY_PRIVATE_CDN;return Object.assign({cloud:{...e?.cloud,apiKey:i,cloudName:t},url:{...e?.url,secureDistribution:r,privateCdn:a}},e)}(t),analytics:Object.assign({product:"A",sdkCode:"V",sdkSemver:iJ,techVersion:iU,feature:""},i)})}var iB=(0,c.forwardRef)(function(e,t){let i=!1,r=["assetType","config","deliveryType","strictTransformations"];iP.forEach(({props:e})=>{Object.keys(e).forEach(e=>{if(r.includes(e))throw Error(`Option ${e} already exists!`);r.push(e)})});let a={alt:e.alt,src:e.src};Object.keys(e).filter(e=>"string"==typeof e&&!r.includes(e)).forEach(t=>a[t]=e[t]);let n=Object.keys(a).map(e=>`${e}:${a[e]}`).join(";"),[s,o]=(0,c.useState)(n),l={};async function d(t){let r=!0;if(i)return;if(i=!0,"function"==typeof e.onError){let i=e.onError(t);"boolean"==typeof i&&!1===i&&(r=!1)}else"boolean"==typeof e.onError&&!1===e.onError&&(r=!1);if(!1===r)return;let a=t.target,s=await h({src:a.src});s.error,s.success&&o(`${n};${Date.now()}`)}r.forEach(t=>{let i=e[t];i&&(l[t]=i)}),!0===e.unoptimized&&(a.src=iW({...l,width:a.width,height:a.height,src:a.src,format:"default",quality:"default"},e.config));let p=(0,c.useCallback)(d,[h,n]),f=u.default;return"default"in f&&(f=f.default),c.createElement(f,{key:s,...a,loader:t=>(function({loaderOptions:e,imageProps:t,cldOptions:i,cldConfig:r={}}){let a={...t,...i};if(a.width="string"==typeof a.width?parseInt(a.width):a.width,a.height="string"==typeof a.height?parseInt(a.height):a.height,"number"==typeof e?.width&&"number"==typeof a.width&&e.width!==a.width){let t=e.width/a.width;a.width=e.width,"number"==typeof a.height&&(a.height=Math.floor(a.height*t))}else"number"==typeof e?.width&&"number"!=typeof a?.width&&(a.width=e?.width);return iW(a,r)})({loaderOptions:t,imageProps:a,cldOptions:l,cldConfig:e.config}),onError:p,ref:t})})},48872:(e,t,i)=>{"use strict";i.d(t,{Z:()=>E}
1);var r=i(2265),a=i(54887);let n=(e,t)=>{var i,r;return e===(null==t?void 0:null===(r=t.tagName)||void 0===r?void 0:null===(i=r.toUpperCase)||void 0===i?void 0:i.call(r))},s=e=>n("DIV",e)||n("SPAN",e),o=e=>n("IMG",e),l=e=>e.complete&&0!==e.naturalHeight,d=e=>n("SVG",e),c=e=>{let{height:t,offset:i,width:r}=e;return Math.min((window.innerWidth-2*i)/r,(window.innerHeight-2*i)/t)},u=e=>{let{containerHeight:t,containerWidth:i,offset:r,targetHeight:a,targetWidth:n}=e,s=c({height:a,offset:r,width:n}),o=n>a?n/i:a/t;return s>1?o:s*o},h=e=>{let{containerHeight:t,containerWidth:i,hasScalableSrc:r,offset:a,targetHeight:n,targetWidth:s}=e;return t&&i?!r&&n&&s?u({containerHeight:t,containerWidth:i,offset:a,targetHeight:n,targetWidth:s}):c({height:t,offset:a,width:i}):1},p=/url(?:\(['"]?)(.*?)(?:['"]?\))/,f=e=>{if(e){if(o(e))return e.currentSrc;if(s(e)){let i=window.getComputedStyle(e).backgroundImage;if(i){var t;return null===(t=p.exec(i))||void 0===t?void 0:t[1]}}}},m=e=>{if(e){var t,i;return o(e)?null!==(t=e.alt)&&void 0!==t?t:void 0:null!==(i=e.getAttribute("aria-label"))&&void 0!==i?i:void 0}},g=e=>{let{containerHeight:t,containerLeft:i,containerTop:r,containerWidth:a,hasScalableSrc:n,offset:s,targetHeight:o,targetWidth:l}=e,d=h({containerHeight:t,containerWidth:a,hasScalableSrc:n,offset:s,targetHeight:o,targetWidth:l});return{top:r,left:i,width:a*d,height:t*d,transform:"translate(0,0) scale(".concat(1/d,")")}},y=e=>{let{position:t,relativeNum:i}=e,r=parseFloat(t);return t.endsWith("%")?i*r/100:r},v=e=>{let{containerHeight:t,containerLeft:i,containerTop:r,containerWidth:a,hasScalableSrc:n,objectFit:s,objectPosition:o,offset:l,targetHeight:d,targetWidth:c}=e;if("scale-down"===s&&(s=c<=a&&d<=t?"none":"contain"),"cover"===s||"contain"===s){let e=a/c,u=t/d,p="cover"===s?Math.max(e,u):Math.min(e,u),[f="50%",m="50%"]=o.split(" "),g=y({position:f,relativeNum:a-c*p}),v=y({position:m,relativeNum:t-d*p}),_=h({containerHeight:d*p,containerWidth:c*p,hasScalableSrc:n,offset:l,targetHeight:d,targetWidth:c});return{top:r+v,left:i+g,width:c*p*_,height:d*p*_,transform:"translate(0,0) scale(".concat(1/_,")")}}if("none"===s){let[e="50%",s="50%"]=o.split(" "),u=y({position:e,relativeNum:a-c}),p=y({position:s,relativeNum:t-d}),f=h({containerHeight:d,containerWidth:c,hasScalableSrc:n,offset:l,targetHeight:d,targetWidth:c});return{top:r+p,left:i+u,width:c*f,height:d*f,transform:"translate(0,0) scale(".concat(1/f,")")}}if("fill"!==s)return{};{let e=Math.max(a/c,t/d),i=h({containerHeight:d*e,containerWidth:c*e,hasScalableSrc:n,offset:l,targetHeight:d,targetWidth:c});return{width:a*i,height:t*i,transform:"translate(0,0) scale(".concat(1/i,")")}}},_=e=>{let{backgroundPosition:t,backgroundSize:i,containerHeight:r,containerLeft:a,containerTop:n,containerWidth:s,hasScalableSrc:o,offset:l,targetHeight:d,targetWidth:c}=e;if("cover"===i||"contain"===i){let e=s/c,u=r/d,p="cover"===i?Math.max(e,u):Math.min(e,u),[f="50%",m="50%"]=t.split(" "),g=y({position:f,relativeNum:s-c*p}),v=y({position:m,relativeNum:r-d*p}),_=h({containerHeight:d*p,containerWidth:c*p,hasScalableSrc:o,offset:l,targetHeight:d,targetWidth:c});return{top:n+v,left:a+g,width:c*p*_,height:d*p*_,transform:"translate(0,0) scale(".concat(1/_,")")}}if("auto"===i){let[e="50%",i="50%"]=t.split(" "),u=y({position:e,relativeNum:s-c}),p=y({position:i,relativeNum:r-d}),f=h({containerHeight:d,containerWidth:c,hasScalableSrc:o,offset:l,targetHeight:d,targetWidth:c});return{top:n+p,left:a+u,width:c*f,height:d*f,transform:"translate(0,0) scale(".concat(1/f,")")}}{let[e="50%",u="50%"]=i.split(" "),p=Math.min(y({position:e,relativeNum:s})/c,y({position:u,relativeNum:r})/d),[f="50%",m="50%"]=t.split(" "),g=y({position:f,relativeNum:s-c*p}),v=y({position:m,relativeNum:r-d*p}),_=h({containerHeight:d*p,containerWidth:c*p,hasScalableSrc:o,offset:l,targetHeight:d,targetWidth:c});return{top:n+v,left:a+g,width:c*p*_,height:d*p*_,transform:"translate(0,0) scale(".concat(1/_,")")}}},b=/\.svg$/i,w=e=>{var t;let{hasZoomImg:i,imgSrc:r,isSvg:a,isZoomed:n,loadedImgEl:o,offset:l,shouldRefresh:d,targetEl:c}=e,u=a||(null==r?void 0:null===(t=r.slice)||void 0===t?void 0:t.call(r,0,18))==="data:image/svg+xml"||i||!!(r&&b.test(r)),h=c.getBoundingClientRect(),p=window.getComputedStyle(c),f=null!=o&&s(c),m=null!=o&&!f,y=Object.assign({},g({containerHeight:h.height,containerLeft:h.left,containerTop:h.top,containerWidth:h.width,hasScalableSrc:u,offset:l,targetHeight:(null==o?void 0:o.naturalHeight)||h.height,targetWidth:(null==o?void 0:o.naturalWi
1dth)||h.width}),m?v({containerHeight:h.height,containerLeft:h.left,containerTop:h.top,containerWidth:h.width,hasScalableSrc:u,objectFit:p.objectFit,objectPosition:p.objectPosition,offset:l,targetHeight:(null==o?void 0:o.naturalHeight)||h.height,targetWidth:(null==o?void 0:o.naturalWidth)||h.width}):void 0,f?_({backgroundPosition:p.backgroundPosition,backgroundSize:p.backgroundSize,containerHeight:h.height,containerLeft:h.left,containerTop:h.top,containerWidth:h.width,hasScalableSrc:u,offset:l,targetHeight:(null==o?void 0:o.naturalHeight)||h.height,targetWidth:(null==o?void 0:o.naturalWidth)||h.width}):void 0);if(n){let e=window.innerWidth/2,t=window.innerHeight/2,i=parseFloat(String(y.left||0))+parseFloat(String(y.width||0))/2,r=parseFloat(String(y.top||0))+parseFloat(String(y.height||0))/2;d&&(y.transitionDuration="0.01ms"),y.transform="translate(".concat(e-i,"px,").concat(t-r,"px) scale(1)")}return y},x=e=>{if(!e)return{};if(!d(e))return{height:e.offsetHeight,left:e.offsetLeft,width:e.offsetWidth,top:e.offsetTop};{let t=e.parentElement,i=e.getBoundingClientRect();if(!t)return{height:i.height,left:i.left,width:i.width,top:i.top};{let e=t.getBoundingClientRect();return{height:i.height,left:e.left-i.left,top:e.top-i.top,width:i.width}}}},k=e=>{let t="-zoom",i=["clip-path","fill","mask","marker-start","marker-mid","marker-end"],r=new Map;if(e.hasAttribute("id")){let i=e.id,a=i+t;r.set(i,a),e.id=a}e.querySelectorAll("[id]").forEach(e=>{let i=e.id,a=i+t;r.set(i,a),e.id=a}),r.forEach((t,r)=>{let a="url(#".concat(r,")"),n="url(#".concat(t,")"),s=i.map(e=>"[".concat(e,'="').concat(a,'"]')).join(", ");e.querySelectorAll(s).forEach(e=>{i.forEach(t=>{e.getAttribute(t)===a&&e.setAttribute(t,n)})})}),e.querySelectorAll("style").forEach(e=>{r.forEach((t,i)=>{e.textContent&&(e.textContent=e.textContent.replaceAll("#".concat(i),"#".concat(t)))})})},S=["img","svg",'[role="img"]',"[data-zoom]"].map(e=>"".concat(e,':not([aria-hidden="true"])')).join(","),O={overflow:"",width:""};function T(e){return r.createElement(A,{...e})}class A extends r.Component{render(){let{handleBtnUnzoomClick:e,handleDialogCancel:t,handleDialogClick:i,handleDialogClose:n,handleUnzoom:l,handleZoom:c,imgEl:u,props:{a11yNameButtonUnzoom:h,a11yNameButtonZoom:p,children:g,classDialog:y,IconUnzoom:v,IconZoom:_,isZoomed:b,wrapElement:x,ZoomContent:k,zoomImg:S,zoomMargin:O},refContent:T,refDialog:A,refModalContent:E,refModalImg:C,refWrap:N,state:{id:j,isZoomImgLoaded:I,loadedImgEl:$,modalState:L,shouldRefresh:R,styleGhost:z}}=this,Z="rmiz-modal-".concat(j),M="rmiz-modal-img-".concat(j),P=s(u),D=o(u),q=d(u),F=m(u),U=f(u),J=D?u.sizes:void 0,V=D?u.srcset:void 0,W=D?u.crossOrigin:void 0,B=!!(null==S?void 0:S.src),H=this.hasImage(),K=F?"".concat(p,": ").concat(F):p,Y="LOADING"===L||"LOADED"===L,G=H?"found":"not-found",Q="UNLOADED"===L||"UNLOADING"===L?"hidden":"visible";this.styleModalImg=H?w({hasZoomImg:B,imgSrc:U,isSvg:q,isZoomed:b&&Y,loadedImgEl:$,offset:O,shouldRefresh:R,targetEl:u}):{};let X=null;if(H){let t=D||P?r.createElement("img",{alt:F,crossOrigin:W,sizes:J,src:U,srcSet:V,...I&&"LOADED"===L?S:{},"data-rmiz-modal-img":"",height:this.styleModalImg.height||void 0,id:M,ref:C,style:this.styleModalImg,width:this.styleModalImg.width||void 0}):q?r.createElement("div",{"data-rmiz-modal-img":!0,ref:C,style:this.styleModalImg}):null,i=r.createElement("button",{"aria-label":h,"data-rmiz-btn-unzoom":"",onClick:e,type:"button"},r.createElement(v,null));X=k?r.createElement(k,{buttonUnzoom:i,modalState:L,img:t,onUnzoom:l}):r.createElement(r.Fragment,null,t,i)}return r.createElement(x,{"aria-owns":Z,"data-rmiz":"",ref:N},r.createElement(x,{"data-rmiz-content":G,ref:T,style:{visibility:"UNLOADED"===L?"visible":"hidden"}},g),H&&r.createElement(x,{"data-rmiz-ghost":"",style:z},r.createElement("button",{"aria-label":K,"data-rmiz-btn-zoom":"",onClick:c,type:"button"},r.createElement(_,null))),H&&a.createPortal(r.createElement("dialog",{"aria-labelledby":M,"aria-modal":"true",className:y,"data-rmiz-modal":"",id:Z,onClick:i,onClose:n,onCancel:t,ref:A,role:"dialog"},r.createElement("div",{"data-rmiz-modal-overlay":Q}),r.createElement("div",{"data-rmiz-modal-content":"",ref:E},X)),this.getDialogContainer()))}componentDidMount(){this.setId(),this.setAndTrackImg(),this.handleImgLoad(),this.UNSAFE_handleSvg()}componentWillUnmount(){var e,t,i,r,a,n,s,o,l,d,c,u;"UNLOADED"!==this.state.modalState&&this.bodyScrollEnable(),null===(t=this.contentChangeObserver)||void 0===t||null===(e=t.disconnect)||void 0===e||e.call(t),null===(r=this.contentNotFoundChangeObserver)||void 0===r||null===(i=r.disconnect)||void 0===i||i.call(r),null===(n=this.imgElResizeObserver)||void 0===n||null===(a=n.disconnect)||void 0===a||a.call(n),null===(o=this.imgEl)||void 0===o||null===(s=o.removeEventListener)||void 0===s||s.call(o,"load",this.handleImgLoad),null===(d=this.imgEl)||void 0===d||null===(l=d.removeEventListener)||void 0===l||l.call(d,"click",this.handleZoom),null===(u=this.refModalImg.current)||void 0===u||null===(c=u.removeEventListener)||void 0===c||c.call(u,"transitionend",this.handleImgTransitionEnd),window.removeEventListener("wheel",this.handleWheel),window.removeEventListener("touchstart",this.handleTouchStart),window.removeEventListener("touchmove",this.handleTouchMove),window.removeEventListener("touchend",this.handleTouchEnd),window.removeEventListener("touchcancel",this.handleTouchCancel),window.removeEventListener("resize",this.handleResize),document.removeEventListener("keydown",this.handleKeyDown,!0)}componentDidUpdate(e,t){this.handleModalStateChange(t.modalState),this.UNSAFE_handleSvg(),this.handleIfZoomChanged(e.isZoomed)}constructor(){super(...arguments),this.state={id:"",isZoomImgLoaded:!1,loadedImgEl:void 0,modalState:"UNLOADED",shouldRefresh:!1,styleGhost:{}},this.refContent=r.createRef(),this.refDialog=r.createRef(),this.refModalContent=r.createRef(),this.refModalImg=r.createRef(),this.refWrap=r.createRef(),this.img
1El=null,this.isScaling=!1,this.prevBodyAttrs=O,this.styleModalImg={},this.handleModalStateChange=e=>{let{modalState:t}=this.state;if("LOADING"!==e&&"LOADING"===t)this.loadZoomImg(),window.addEventListener("resize",this.handleResize,{passive:!0}),window.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),window.addEventListener("touchmove",this.handleTouchMove,{passive:!0}),window.addEventListener("touchend",this.handleTouchEnd,{passive:!0}),window.addEventListener("touchcancel",this.handleTouchCancel,{passive:!0}),document.addEventListener("keydown",this.handleKeyDown,!0);else if("LOADED"!==e&&"LOADED"===t)window.addEventListener("wheel",this.handleWheel,{passive:!0});else if("UNLOADING"!==e&&"UNLOADING"===t)this.ensureImgTransitionEnd(),window.removeEventListener("wheel",this.handleWheel),window.removeEventListener("touchstart",this.handleTouchStart),window.removeEventListener("touchmove",this.handleTouchMove),window.removeEventListener("touchend",this.handleTouchEnd),window.removeEventListener("touchcancel",this.handleTouchCancel),document.removeEventListener("keydown",this.handleKeyDown,!0);else if("UNLOADED"!==e&&"UNLOADED"===t){var i,r,a,n;this.bodyScrollEnable(),window.removeEventListener("resize",this.handleResize),null===(r=this.refModalImg.current)||void 0===r||null===(i=r.removeEventListener)||void 0===i||i.call(r,"transitionend",this.handleImgTransitionEnd),null===(n=this.refDialog.current)||void 0===n||null===(a=n.close)||void 0===a||a.call(n)}},this.getDialogContainer=()=>{let e=document.querySelector("[data-rmiz-portal]");return null==e&&((e=document.createElement("div")).setAttribute("data-rmiz-portal",""),document.body.appendChild(e)),e},this.setId=()=>{let e=()=>Math.random().toString(16).slice(-4);this.setState({id:e()+e()+e()})},this.setAndTrackImg=()=>{let e=this.refContent.current;if(e){if(this.imgEl=e.querySelector(S),this.imgEl){var t,i;null===(i=this.contentNotFoundChangeObserver)||void 0===i||null===(t=i.disconnect)||void 0===t||t.call(i),this.imgEl.addEventListener("load",this.handleImgLoad),this.imgEl.addEventListener("click",this.handleZoom),this.state.loadedImgEl||this.handleImgLoad(),this.imgElResizeObserver=new ResizeObserver(e=>{let t=e[0];(null==t?void 0:t.target)&&(this.imgEl=t.target,this.setState({styleGhost:x(this.imgEl)}))}),this.imgElResizeObserver.observe(this.imgEl),this.contentChangeObserver||(this.contentChangeObserver=new MutationObserver(()=>{this.setState({styleGhost:x(this.imgEl)})}),this.contentChangeObserver.observe(e,{attributes:!0,childList:!0,subtree:!0}))}else this.contentNotFoundChangeObserver||(this.contentNotFoundChangeObserver=new MutationObserver(this.setAndTrackImg),this.contentNotFoundChangeObserver.observe(e,{childList:!0,subtree:!0}))}},this.handleIfZoomChanged=e=>{let{isZoomed:t}=this.props;!e&&t?this.zoom():e&&!t&&this.unzoom()},this.handleImgLoad=()=>{let e=f(this.imgEl);if(!e)return;let t=new Image;o(this.imgEl)&&(t.sizes=this.imgEl.sizes,t.srcset=this.imgEl.srcset,t.crossOrigin=this.imgEl.crossOrigin),t.src=e;let i=()=>{this.setState({loadedImgEl:t,styleGhost:x(this.imgEl)})};t.decode().then(i).catch(()=>{if(l(t)){i();return}t.onload=i})},this.handleZoom=()=>{if(this.hasImage()){var e,t;null===(e=(t=this.props).onZoomChange)||void 0===e||e.call(t,!0)}},this.handleUnzoom=()=>{var e,t;null===(e=(t=this.props).onZoomChange)||void 0===e||e.call(t,!1)},this.handleBtnUnzoomClick=e=>{e.preventDefault(),e.stopPropagation(),this.handleUnzoom()},this.handleDialogCancel=e=>{e.preventDefault()},this.handleDialogClick=e=>{(e.target===this.refModalContent.current||e.target===this.refModalImg.current)&&(e.stopPropagation(),this.handleUnzoom())},this.handleDialogClose=e=>{e.stopPropagation(),this.handleUnzoom()},this.handleKeyDown=e=>{("Escape"===e.key||27===e.keyCode)&&(e.preventDefault(),e.stopPropagation(),this.handleUnzoom())},this.handleWheel=e=>{e.ctrlKey||(e.stopPropagation(),queueMicrotask(()=>{this.handleUnzoom()}))},this.handleTouchStart=e=>{if(e.touches.length>1){this.isScaling=!0;return}1===e.changedTouches.length&&e.changedTouches[0]&&(this.touchYStart=e.changedTouches[0].screenY)},this.handleTouchMove=e=>{var t,i;
1let r=null!==(i=null===(t=window.visualViewport)||void 0===t?void 0:t.scale)&&void 0!==i?i:1;this.props.canSwipeToUnzoom&&!this.isScaling&&r<=1&&null!=this.touchYStart&&e.changedTouches[0]&&(this.touchYEnd=e.changedTouches[0].screenY,Math.abs(Math.max(this.touchYStart,this.touchYEnd)-Math.min(this.touchYStart,this.touchYEnd))>this.props.swipeToUnzoomThreshold&&(this.touchYStart=void 0,this.touchYEnd=void 0,this.handleUnzoom()))},this.handleTouchEnd=()=>{this.isScaling=!1,this.touchYStart=void 0,this.touchYEnd=void 0},this.handleTouchCancel=()=>{this.isScaling=!1,this.touchYStart=void 0,this.touchYEnd=void 0},this.handleResize=()=>{this.setState({shouldRefresh:!0})},this.hasImage=()=>this.imgEl&&(this.state.loadedImgEl||d(this.imgEl))&&"none"!==window.getComputedStyle(this.imgEl).display,this.zoom=()=>{var e,t,i,r;this.bodyScrollDisable(),null===(t=this.refDialog.current)||void 0===t||null===(e=t.showModal)||void 0===e||e.call(t),null===(r=this.refModalImg.current)||void 0===r||null===(i=r.addEventListener)||void 0===i||i.call(r,"transitionend",this.handleImgTransitionEnd),this.setState({modalState:"LOADING"})},this.unzoom=()=>{this.setState({modalState:"UNLOADING"})},this.handleImgTransitionEnd=()=>{clearTimeout(this.timeoutTransitionEnd),"LOADING"===this.state.modalState?this.setState({modalState:"LOADED"}):"UNLOADING"===this.state.modalState&&this.setState({shouldRefresh:!1,modalState:"UNLOADED"})},this.ensureImgTransitionEnd=()=>
1{if(this.refModalImg.current){let e=window.getComputedStyle(this.refModalImg.current).transitionDuration,t=parseFloat(e);if(t){let i=t*(e.endsWith("ms")?1:1e3)+50;this.timeoutTransitionEnd=setTimeout(this.handleImgTransitionEnd,i)}}},this.bodyScrollDisable=()=>{this.prevBodyAttrs={overflow:document.body.style.overflow,width:document.body.style.width};let e=document.body.clientWidth;document.body.style.overflow="hidden",document.body.style.width="".concat(e,"px")},this.bodyScrollEnable=()=>{document.body.style.width=this.prevBodyAttrs.width,document.body.style.overflow=this.prevBodyAttrs.overflow,this.prevBodyAttrs=O},this.loadZoomImg=()=>{let{props:{zoomImg:e}}=this,t=null==e?void 0:e.src;if(t){var i,r,a;let n=new Image;n.sizes=null!==(i=null==e?void 0:e.sizes)&&void 0!==i?i:"",n.srcset=null!==(r=null==e?void 0:e.srcSet)&&void 0!==r?r:"",n.crossOrigin=null!==(a=null==e?void 0:e.crossOrigin)&&void 0!==a?a:void 0,n.src=t;let s=()=>{this.setState({isZoomImgLoaded:!0})};n.decode().then(s).catch(()=>{if(l(n)){s();return}n.onload=s})}},this.UNSAFE_handleSvg=()=>{let{imgEl:e,refModalImg:t,styleModalImg:i}=this;if(d(e)){var r,a,n,s,o;let l=e.cloneNode(!0);k(l),l.style.width="".concat(i.width||0,"px"),l.style.height="".concat(i.height||0,"px"),l.addEventListener("click",this.handleUnzoom),null===(n=t.current)||void 0===n||null===(a=n.firstChild)||void 0===a||null===(r=a.remove)||void 0===r||r.call(a),null===(o=t.current)||void 0===o||null===(s=o.appendChild)||void 0===s||s.call(o,l)}}}}function E(e){let[t,i]=r.useState(!1);return r.createElement(T,{...e,isZoomed:t,onZoomChange:i})}A.defaultProps={a11yNameButtonUnzoom:"Minimize image",a11yNameButtonZoom:"Expand image",canSwipeToUnzoom:!0,IconUnzoom:function(){return r.createElement("svg",{"aria-hidden":"true","data-rmiz-btn-unzoom-icon":!0,fill:"currentColor",focusable:"false",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M 14.144531 1.148438 L 9 6.292969 L 9 3 L 8 3 L 8 8 L 13 8 L 13 7 L 9.707031 7 L 14.855469 1.851563 Z M 8 8 L 3 8 L 3 9 L 6.292969 9 L 1.148438 14.144531 L 1.851563 14.855469 L 7 9.707031 L 7 13 L 8 13 Z"}))},IconZoom:function(){return r.createElement("svg",{"aria-hidden":"true","data-rmiz-btn-zoom-icon":!0,fill:"currentColor",focusable:"false",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},r.createElement("path",{d:"M 9 1 L 9 2 L 12.292969 2 L 2 12.292969 L 2 9 L 1 9 L 1 14 L 6 14 L 6 13 L 2.707031 13 L 13 2.707031 L 13 6 L 14 6 L 14 1 Z"}))},swipeToUnzoomThreshold:10,wrapElement:"div",zoomMargin:0}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.