slice-machine-ui 1.18.1-dev-next-release.14 → 1.18.1-dev-next-release.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/ScreenshotPreview/index.tsx +13 -19
- package/components/Simulator/components/Header/index.tsx +4 -5
- package/lib/builders/SliceBuilder/FieldZones/index.tsx +3 -5
- package/lib/builders/SliceBuilder/Sidebar/index.tsx +87 -0
- package/lib/builders/SliceBuilder/index.tsx +17 -57
- package/lib/builders/common/Zone/Card/components/ErrorTooltip.tsx +2 -6
- package/lib/builders/common/Zone/Card/components/NewField.tsx +83 -70
- package/lib/builders/common/Zone/Card/index.jsx +1 -3
- package/lib/builders/common/Zone/index.jsx +34 -68
- package/out/404.html +1 -1
- package/out/_next/static/X2WUC5LSmToOvAILmFgvO/_buildManifest.js +1 -0
- package/out/_next/static/chunks/482-e6bbd1fcdcdf79ad.js +1 -0
- package/out/_next/static/chunks/{113-34b6cf41a62f08ce.js → 770-c75d8245a822c5d9.js} +2 -2
- package/out/_next/static/chunks/80-4cd4c6f95d162ef7.js +1 -0
- package/out/_next/static/chunks/904-338e9563e841701e.js +1 -0
- package/out/_next/static/chunks/958-f575eea195026e39.js +1 -0
- package/out/_next/static/chunks/pages/{_app-4f44a310e93b74f9.js → _app-8f2356815e0da495.js} +3 -3
- package/out/_next/static/chunks/pages/changes-768c9cb6fef169d1.js +1 -0
- package/out/_next/static/chunks/pages/custom-types/{[customTypeId]-c9ce77d2fccb503f.js → [customTypeId]-aa37e07c96c8f9b5.js} +1 -1
- package/out/_next/static/chunks/pages/page-types/{[pageTypeId]-c50a43970c50ead1.js → [pageTypeId]-d445f5cabeb460c0.js} +1 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-39efc79412072ae1.js +1 -0
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-3e75d572516b4f16.js +1 -0
- package/out/_next/static/chunks/pages/slices-f77df402117379c6.js +1 -0
- package/out/_next/static/css/{a3838b28ab738f1e.css → e4f4acc81f000d9c.css} +1 -1
- package/out/changelog.html +1 -1
- package/out/changes.html +1 -1
- package/out/custom-types/[customTypeId].html +1 -1
- package/out/custom-types.html +1 -1
- package/out/index.html +1 -1
- package/out/labs.html +1 -1
- package/out/page-types/[pageTypeId].html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation]/screenshot.html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
- package/out/slices.html +1 -1
- package/package.json +4 -4
- package/src/components/List/List.css.ts +1 -0
- package/src/components/List/List.stories.tsx +1 -1
- package/src/components/List/List.tsx +1 -1
- package/src/features/slices/sliceCards/SharedSliceCard.tsx +2 -1
- package/src/hooks/useScreenshotChangesModal.ts +0 -2
- package/lib/builders/SliceBuilder/Header/index.tsx +0 -64
- package/lib/builders/SliceBuilder/SideBar/icons/prismic.svg +0 -12
- package/lib/builders/SliceBuilder/SideBar/icons/sb-logo.png +0 -0
- package/lib/builders/SliceBuilder/SideBar/icons/storybook.svg +0 -13
- package/lib/builders/SliceBuilder/SideBar/icons/storybookGrey.svg +0 -13
- package/lib/builders/SliceBuilder/SideBar/index.tsx +0 -97
- package/lib/builders/common/Zone/components/ZoneHeader/index.tsx +0 -30
- package/out/_next/static/2SUFWetYKOWiRq52mMtdX/_buildManifest.js +0 -1
- package/out/_next/static/chunks/377-404ac40f863464df.js +0 -1
- package/out/_next/static/chunks/573-8678a91b09707f5d.js +0 -1
- package/out/_next/static/chunks/7-b30f3180efb6bb5b.js +0 -1
- package/out/_next/static/chunks/904-ae815442efed055f.js +0 -1
- package/out/_next/static/chunks/909-e4eec905c21ad8ad.js +0 -1
- package/out/_next/static/chunks/pages/changes-b0714ca467c05e08.js +0 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-37ba73cd3c821e04.js +0 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-5b6c6912b66de61f.js +0 -1
- package/out/_next/static/chunks/pages/slices-0cd502231524ba59.js +0 -1
- /package/{lib/builders/SliceBuilder → components/Simulator/components}/Header/VariationsPopover/MenuList.tsx +0 -0
- /package/{lib/builders/SliceBuilder → components/Simulator/components}/Header/VariationsPopover/index.tsx +0 -0
- /package/{lib/builders/SliceBuilder → components/Simulator/components/Header}/links.ts +0 -0
- /package/lib/builders/SliceBuilder/{Header → Sidebar}/VariationModal.tsx +0 -0
- /package/lib/builders/SliceBuilder/{Header/SimulatorButton → SimulatorButton}/index.tsx +0 -0
- /package/out/_next/static/{2SUFWetYKOWiRq52mMtdX → X2WUC5LSmToOvAILmFgvO}/_ssgManifest.js +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[113],{80832:function(e,t,n){"use strict";function r(e,t){return e.filter((e,n)=>n!==t)}function i(e,t,n){if(t===n||a(e,t)||a(e,n))return e;let r=e.slice(),i=r.splice(t,1)[0];return r.splice(n,0,i),r}function a(e,t){return t<0||t>=e.length}function s(e,...t){let n=e.slice();return 0===t.length&&(t=[e=>e]),n.sort((e,n)=>{for(let r of t){let i=r(e),a=r(n);if(null==i)return 1;if(null==a)return -1;if("string"==typeof i){let s=i.localeCompare(a);if(0!==s)return s}else{if(i<a)return -1;if(i>a)return 1}}return 0}),n}n.d(t,{$E:function(){return r},DY:function(){return s},pB:function(){return i}})},19245:function(e,t,n){"use strict";n.d(t,{WY:function(){return i},xb:function(){return o}});var r=n(97867);async function i(e,t){let{okType:n,signal:i,headers:o,body:l,timeout:u=15e3,...c}=t,d=new Headers(o);d.has("Content-Type")||d.set("Content-Type","application/json"),"multipart/form-data"===d.get("Content-Type")&&d.delete("Content-Type");let p=s();p&&d.set("Authorization",`Bearer ${p}`);let h="application/json"===d.get("Content-Type")?JSON.stringify(l):l,f=!1;try{let m=t.method&&"GET"!==t.method?void 0:new AbortController,y=function(e){let t=new AbortController;function n(){for(let r of(t.abort(),e))r.removeEventListener("abort",n)}for(let r of e){if(r.aborted){n();break}r.addEventListener("abort",n)}return t.signal}([null==m?void 0:m.signal,i].filter(r.$));m&&setTimeout(()=>{f=!0,m.abort()},u);let g=await fetch(e,{...c,body:h,headers:d,signal:y}),{status:v}=g,_=g.clone(),b=await g.json().catch(e=>_.text());if(g.ok){let x=n.safeParse(b);if(!x.success)throw new a({type:"validation",status:v,cause:x.error});return x.data}throw new a({type:"http",status:v,body:b})}catch(T){var k,w;throw(k=T,k instanceof a)?T:new a((w=T,w instanceof DOMException&&"AbortError"===w.name)?{type:f?"timeout":"abort"}:{type:"unknown",cause:T})}}class a extends Error{constructor(e){super(JSON.stringify(e,null,2)),this.detail=e,this.name="RequestError"}}let s=()=>"";function o(e){return"dev"===e?"same-origin":"include"}},59131:function(e,t,n){"use strict";n.d(t,{d:function(){return i}});let r=0;function i(){return r++}},34736:function(e,t,n){"use strict";function r(e,t){let n={};for(let r in e)n[r]=t(e[r],r);return n}n.d(t,{Q8:function(){return r}})},32001:function(e,t,n){"use strict";n.d(t,{$P:function(){return o},NW:function(){return a},R9:function(){return i},pQ:function(){return s}});var r=n(2784);function i(e){let t=(0,r.useRef)(e);return(0,r.useLayoutEffect)(()=>{t.current=e}),(0,r.useMemo)(()=>(...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)},[])}function a(){let[e,t]=(0,r.useState)({});return(0,r.useCallback)(()=>t({}),[])}function s(e,t){let[n,i]=(0,r.useState)(e);n!==e&&(i(e),t(e))}function o(e){var t,n,a;let{ms:s=300,initialState:o,startTransition:l=e=>e()}=e,[u,c]=(0,r.useState)(o),[d,p]=(0,r.useState)(o);return a=i(()=>l(()=>p(u))),(0,r.useEffect)(()=>{let e=setTimeout(()=>a(u),s);return()=>clearTimeout(e)},[a,s,u]),{debouncedValue:d,set:c,value:u}}},60848:function(e,t,n){"use strict";n.d(t,{fW:function(){return tp},tf:function(){return tf},Ag:function(){return tg},W7:function(){return td},Vu:function(){return tv}}),(e8=tt||(tt={})).assertEqual=e=>e,e8.assertIs=function(e){},e8.assertNever=function(e){throw Error()},e8.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},e8.getValidEnumValues=e=>{let t=e8.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),n={};for(let r of t)n[r]=e[r];return e8.objectValues(n)},e8.objectValues=e=>e8.objectKeys(e).map(function(t){return e[t]}),e8.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e8.find=(e,t)=>{for(let n of e)if(t(n))return n},e8.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e8.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e8.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(e6=tn||(tn={})).mergeShapes=(e,t)=>({...e,...t});let r=tt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set",]),i=e=>{switch(typeof e){case"undefined":return r.undefined;case"string":return r.string;case"number":return isNaN(e)?r.nan:r.number;case"boolean":return r.boolean;case"function":return r.function;case"bigint":return r.bigint;case"symbol":return r.symbol;case"object":if(Array.isArray(e))return r.array;if(null===e)return r.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return r.promise;if("undefined"!=typeof Map&&e instanceof Map)return r.map;if("undefined"!=typeof Set&&e instanceof Set)return r.set;if("undefined"!=typeof Date&&e instanceof Date)return r.date;return r.object;default:return r.unknown}},a=tt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite",]),s=e=>{let t=JSON.stringify(e,null,2);return t.replace(/"([^"]+)":/g,"$1:")};class o extends Error{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}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(r);else if("invalid_return_type"===i.code)r(i.returnTypeError);else if("invalid_arguments"===i.code)r(i.argumentsError);else if(0===i.path.length)n._errors.push(t(i));else{let a=n,s=0;for(;s<i.path.length;){let o=i.path[s],l=s===i.path.length-1;l?(a[o]=a[o]||{_errors:[]},a[o]._errors.push(t(i))):a[o]=a[o]||{_errors:[]},a=a[o],s++}}};return r(this),n}toString(){return this.message}get message(){return JSON.stringify(this.issues,tt.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},n=[];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))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}o.create=e=>{let t=new o(e);return t};let l=(e,t)=>{let n;switch(e.code){case a.invalid_type:n=e.received===r.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case a.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,tt.jsonStringifyReplacer)}`;break;case a.unrecognized_keys:n=`Unrecognized key(s) in object: ${tt.joinValues(e.keys,", ")}`;break;case a.invalid_union:n="Invalid input";break;case a.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${tt.joinValues(e.options)}`;break;case a.invalid_enum_value:n=`Invalid enum value. Expected ${tt.joinValues(e.options)}, received '${e.received}'`;break;case a.invalid_arguments:n="Invalid function arguments";break;case a.invalid_return_type:n="Invalid function return type";break;case a.invalid_date:n="Invalid date";break;case a.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:tt.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case a.too_small:n="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 a.too_big:n="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 a.custom:n="Invalid input";break;case a.invalid_intersection_types:n="Intersection results could not be merged";break;case a.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case a.not_finite:n="Number must be finite";break;default:n=t.defaultError,tt.assertNever(e)}return{message:n}},u=l;function c(e){u=e}function d(){return u}let p=e=>{let{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],s={...i,path:a},o="",l=r.filter(e=>!!e).slice().reverse();for(let u of l)o=u(s,{data:t,defaultError:o}).message;return{...i,path:a,message:i.message||o}};function h(e,t){let n=p({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,u,l].filter(e=>!!e)});e.common.issues.push(n)}class f{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let n=[];for(let r of t){if("aborted"===r.status)return m;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){let n=[];for(let r of t)n.push({key:await r.key,value:await r.value});return f.mergeObjectSync(e,n)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:i,value:a}=r;if("aborted"===i.status||"aborted"===a.status)return m;"dirty"===i.status&&e.dirty(),"dirty"===a.status&&e.dirty(),(void 0!==a.value||r.alwaysSet)&&(n[i.value]=a.value)}return{status:e.value,value:n}}}let m=Object.freeze({status:"aborted"}),y=e=>({status:"dirty",value:e}),g=e=>({status:"valid",value:e}),v=e=>"aborted"===e.status,_=e=>"dirty"===e.status,b=e=>"valid"===e.status,x=e=>"undefined"!=typeof Promise&&e instanceof Promise;(e7=tr||(tr={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},e7.toString=e=>"string"==typeof e?e:null==e?void 0:e.message;class k{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let w=(e,t)=>{if(b(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 n=new o(e.common.issues);return this._error=n,this._error}}};function T(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(t)return{errorMap:t,description:i};let a=(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:void 0===t.data?{message:null!=r?r:t.defaultError}:{message:null!=n?n:t.defaultError};return{errorMap:a,description:i}}class C{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.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return i(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:i(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new f,ctx:{common:e.parent.common,data:e.data,parsedType:i(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(x(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;let r={common:{issues:[],async:null!==(n=null==t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:i(e)},a=this._parseSync({data:e,path:r.path,parent:r});return w(r,a)}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:i(e)},r=this._parse({data:e,path:n.path,parent:n}),a=await (x(r)?r:Promise.resolve(r));return w(n,a)}refine(e,t){let n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,r)=>{let i=e(t),s=()=>r.addIssue({code:a.custom,...n(t)});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(e=>!!e||(s(),!1)):!!i||(s(),!1)})}refinement(e,t){return this._refinement((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1))}_refinement(e){return new ep({schema:this,typeName:ti.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return eh.create(this,this._def)}nullable(){return ef.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Y.create(this,this._def)}promise(){return ed.create(this,this._def)}or(e){return X.create([this,e],this._def)}and(e){return ee.create(this,e,this._def)}transform(e){return new ep({...T(this._def),schema:this,typeName:ti.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new em({...T(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:ti.ZodDefault})}brand(){return new e_({typeName:ti.ZodBranded,type:this,...T(this._def)})}catch(e){return new ey({...T(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:ti.ZodCatch})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return eb.create(this,e)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let S=/^c[^\s-]{8,}$/i,E=/^[a-z][a-z0-9]*$/,O=/[0-9A-HJKMNP-TV-Z]{26}/,N=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,Z=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\])|(\[IPv6:(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\.[A-Za-z]{2,})+))$/,P=/^(\p{Extended_Pictographic}|\p{Emoji_Component})+$/u,A=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,I=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,j=e=>e.precision?e.offset?RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):0===e.precision?e.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function R(e,t){return!!(("v4"===t||!t)&&A.test(e)||("v6"===t||!t)&&I.test(e))}class M extends C{constructor(){super(...arguments),this._regex=(e,t,n)=>this.refinement(t=>e.test(t),{validation:t,code:a.invalid_string,...tr.errToObj(n)}),this.nonempty=e=>this.min(1,tr.errToObj(e)),this.trim=()=>new M({...this._def,checks:[...this._def.checks,{kind:"trim"}]}),this.toLowerCase=()=>new M({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]}),this.toUpperCase=()=>new M({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}_parse(e){this._def.coerce&&(e.data=String(e.data));let t=this._getType(e);if(t!==r.string){let n=this._getOrReturnCtx(e);return h(n,{code:a.invalid_type,expected:r.string,received:n.parsedType}),m}let i=new f,s;for(let o of this._def.checks)if("min"===o.kind)e.data.length<o.value&&(h(s=this._getOrReturnCtx(e,s),{code:a.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),i.dirty());else if("max"===o.kind)e.data.length>o.value&&(h(s=this._getOrReturnCtx(e,s),{code:a.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),i.dirty());else if("length"===o.kind){let l=e.data.length>o.value,u=e.data.length<o.value;(l||u)&&(s=this._getOrReturnCtx(e,s),l?h(s,{code:a.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):u&&h(s,{code:a.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),i.dirty())}else if("email"===o.kind)Z.test(e.data)||(h(s=this._getOrReturnCtx(e,s),{validation:"email",code:a.invalid_string,message:o.message}),i.dirty());else if("emoji"===o.kind)P.test(e.data)||(h(s=this._getOrReturnCtx(e,s),{validation:"emoji",code:a.invalid_string,message:o.message}),i.dirty());else if("uuid"===o.kind)N.test(e.data)||(h(s=this._getOrReturnCtx(e,s),{validation:"uuid",code:a.invalid_string,message:o.message}),i.dirty());else if("cuid"===o.kind)S.test(e.data)||(h(s=this._getOrReturnCtx(e,s),{validation:"cuid",code:a.invalid_string,message:o.message}),i.dirty());else if("cuid2"===o.kind)E.test(e.data)||(h(s=this._getOrReturnCtx(e,s),{validation:"cuid2",code:a.invalid_string,message:o.message}),i.dirty());else if("ulid"===o.kind)O.test(e.data)||(h(s=this._getOrReturnCtx(e,s),{validation:"ulid",code:a.invalid_string,message:o.message}),i.dirty());else if("url"===o.kind)try{new URL(e.data)}catch(c){h(s=this._getOrReturnCtx(e,s),{validation:"url",code:a.invalid_string,message:o.message}),i.dirty()}else if("regex"===o.kind){o.regex.lastIndex=0;let d=o.regex.test(e.data);d||(h(s=this._getOrReturnCtx(e,s),{validation:"regex",code:a.invalid_string,message:o.message}),i.dirty())}else if("trim"===o.kind)e.data=e.data.trim();else if("includes"===o.kind)e.data.includes(o.value,o.position)||(h(s=this._getOrReturnCtx(e,s),{code:a.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),i.dirty());else if("toLowerCase"===o.kind)e.data=e.data.toLowerCase();else if("toUpperCase"===o.kind)e.data=e.data.toUpperCase();else if("startsWith"===o.kind)e.data.startsWith(o.value)||(h(s=this._getOrReturnCtx(e,s),{code:a.invalid_string,validation:{startsWith:o.value},message:o.message}),i.dirty());else if("endsWith"===o.kind)e.data.endsWith(o.value)||(h(s=this._getOrReturnCtx(e,s),{code:a.invalid_string,validation:{endsWith:o.value},message:o.message}),i.dirty());else if("datetime"===o.kind){let p=j(o);p.test(e.data)||(h(s=this._getOrReturnCtx(e,s),{code:a.invalid_string,validation:"datetime",message:o.message}),i.dirty())}else"ip"===o.kind?R(e.data,o.version)||(h(s=this._getOrReturnCtx(e,s),{validation:"ip",code:a.invalid_string,message:o.message}),i.dirty()):tt.assertNever(o);return{status:i.value,value:e.data}}_addCheck(e){return new M({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...tr.errToObj(e)})}url(e){return this._addCheck({kind:"url",...tr.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...tr.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...tr.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...tr.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...tr.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...tr.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...tr.errToObj(e)})}datetime(e){var t;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,...tr.errToObj(null==e?void 0:e.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...tr.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...tr.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...tr.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...tr.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...tr.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...tr.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...tr.errToObj(t)})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===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 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 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}}function D(e,t){let n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,a=parseInt(e.toFixed(i).replace(".","")),s=parseInt(t.toFixed(i).replace(".",""));return a%s/Math.pow(10,i)}M.create=e=>{var t;return new M({checks:[],typeName:ti.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...T(e)})};class L extends C{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){this._def.coerce&&(e.data=Number(e.data));let t=this._getType(e);if(t!==r.number){let n=this._getOrReturnCtx(e);return h(n,{code:a.invalid_type,expected:r.number,received:n.parsedType}),m}let i,s=new f;for(let o of this._def.checks)if("int"===o.kind)tt.isInteger(e.data)||(h(i=this._getOrReturnCtx(e,i),{code:a.invalid_type,expected:"integer",received:"float",message:o.message}),s.dirty());else if("min"===o.kind){let l=o.inclusive?e.data<o.value:e.data<=o.value;l&&(h(i=this._getOrReturnCtx(e,i),{code:a.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),s.dirty())}else if("max"===o.kind){let u=o.inclusive?e.data>o.value:e.data>=o.value;u&&(h(i=this._getOrReturnCtx(e,i),{code:a.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),s.dirty())}else"multipleOf"===o.kind?0!==D(e.data,o.value)&&(h(i=this._getOrReturnCtx(e,i),{code:a.not_multiple_of,multipleOf:o.value,message:o.message}),s.dirty()):"finite"===o.kind?Number.isFinite(e.data)||(h(i=this._getOrReturnCtx(e,i),{code:a.not_finite,message:o.message}),s.dirty()):tt.assertNever(o);return{status:s.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,tr.toString(t))}gt(e,t){return this.setLimit("min",e,!1,tr.toString(t))}lte(e,t){return this.setLimit("max",e,!0,tr.toString(t))}lt(e,t){return this.setLimit("max",e,!1,tr.toString(t))}setLimit(e,t,n,r){return new L({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:tr.toString(r)},]})}_addCheck(e){return new L({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:tr.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:tr.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:tr.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:tr.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:tr.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:tr.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:tr.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:tr.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:tr.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&&tt.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}L.create=e=>new L({checks:[],typeName:ti.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...T(e)});class z extends C{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){this._def.coerce&&(e.data=BigInt(e.data));let t=this._getType(e);if(t!==r.bigint){let n=this._getOrReturnCtx(e);return h(n,{code:a.invalid_type,expected:r.bigint,received:n.parsedType}),m}let i,s=new f;for(let o of this._def.checks)if("min"===o.kind){let l=o.inclusive?e.data<o.value:e.data<=o.value;l&&(h(i=this._getOrReturnCtx(e,i),{code:a.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),s.dirty())}else if("max"===o.kind){let u=o.inclusive?e.data>o.value:e.data>=o.value;u&&(h(i=this._getOrReturnCtx(e,i),{code:a.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),s.dirty())}else"multipleOf"===o.kind?e.data%o.value!==BigInt(0)&&(h(i=this._getOrReturnCtx(e,i),{code:a.not_multiple_of,multipleOf:o.value,message:o.message}),s.dirty()):tt.assertNever(o);return{status:s.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,tr.toString(t))}gt(e,t){return this.setLimit("min",e,!1,tr.toString(t))}lte(e,t){return this.setLimit("max",e,!0,tr.toString(t))}lt(e,t){return this.setLimit("max",e,!1,tr.toString(t))}setLimit(e,t,n,r){return new z({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:tr.toString(r)},]})}_addCheck(e){return new z({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:tr.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:tr.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:tr.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:tr.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:tr.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}}z.create=e=>{var t;return new z({checks:[],typeName:ti.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...T(e)})};class F extends C{_parse(e){this._def.coerce&&(e.data=Boolean(e.data));let t=this._getType(e);if(t!==r.boolean){let n=this._getOrReturnCtx(e);return h(n,{code:a.invalid_type,expected:r.boolean,received:n.parsedType}),m}return g(e.data)}}F.create=e=>new F({typeName:ti.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...T(e)});class $ extends C{_parse(e){this._def.coerce&&(e.data=new Date(e.data));let t=this._getType(e);if(t!==r.date){let n=this._getOrReturnCtx(e);return h(n,{code:a.invalid_type,expected:r.date,received:n.parsedType}),m}if(isNaN(e.data.getTime())){let i=this._getOrReturnCtx(e);return h(i,{code:a.invalid_date}),m}let s=new f,o;for(let l of this._def.checks)"min"===l.kind?e.data.getTime()<l.value&&(h(o=this._getOrReturnCtx(e,o),{code:a.too_small,message:l.message,inclusive:!0,exact:!1,minimum:l.value,type:"date"}),s.dirty()):"max"===l.kind?e.data.getTime()>l.value&&(h(o=this._getOrReturnCtx(e,o),{code:a.too_big,message:l.message,inclusive:!0,exact:!1,maximum:l.value,type:"date"}),s.dirty()):tt.assertNever(l);return{status:s.value,value:new Date(e.data.getTime())}}_addCheck(e){return new $({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:tr.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:tr.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}}$.create=e=>new $({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:ti.ZodDate,...T(e)});class V extends C{_parse(e){let t=this._getType(e);if(t!==r.symbol){let n=this._getOrReturnCtx(e);return h(n,{code:a.invalid_type,expected:r.symbol,received:n.parsedType}),m}return g(e.data)}}V.create=e=>new V({typeName:ti.ZodSymbol,...T(e)});class U extends C{_parse(e){let t=this._getType(e);if(t!==r.undefined){let n=this._getOrReturnCtx(e);return h(n,{code:a.invalid_type,expected:r.undefined,received:n.parsedType}),m}return g(e.data)}}U.create=e=>new U({typeName:ti.ZodUndefined,...T(e)});class B extends C{_parse(e){let t=this._getType(e);if(t!==r.null){let n=this._getOrReturnCtx(e);return h(n,{code:a.invalid_type,expected:r.null,received:n.parsedType}),m}return g(e.data)}}B.create=e=>new B({typeName:ti.ZodNull,...T(e)});class W extends C{constructor(){super(...arguments),this._any=!0}_parse(e){return g(e.data)}}W.create=e=>new W({typeName:ti.ZodAny,...T(e)});class H extends C{constructor(){super(...arguments),this._unknown=!0}_parse(e){return g(e.data)}}H.create=e=>new H({typeName:ti.ZodUnknown,...T(e)});class q extends C{_parse(e){let t=this._getOrReturnCtx(e);return h(t,{code:a.invalid_type,expected:r.never,received:t.parsedType}),m}}q.create=e=>new q({typeName:ti.ZodNever,...T(e)});class K extends C{_parse(e){let t=this._getType(e);if(t!==r.undefined){let n=this._getOrReturnCtx(e);return h(n,{code:a.invalid_type,expected:r.void,received:n.parsedType}),m}return g(e.data)}}K.create=e=>new K({typeName:ti.ZodVoid,...T(e)});class Y extends C{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),i=this._def;if(t.parsedType!==r.array)return h(t,{code:a.invalid_type,expected:r.array,received:t.parsedType}),m;if(null!==i.exactLength){let s=t.data.length>i.exactLength.value,o=t.data.length<i.exactLength.value;(s||o)&&(h(t,{code:s?a.too_big:a.too_small,minimum:o?i.exactLength.value:void 0,maximum:s?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(null!==i.minLength&&t.data.length<i.minLength.value&&(h(t,{code:a.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),null!==i.maxLength&&t.data.length>i.maxLength.value&&(h(t,{code:a.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>i.type._parseAsync(new k(t,e,t.path,n)))).then(e=>f.mergeArray(n,e));let l=[...t.data].map((e,n)=>i.type._parseSync(new k(t,e,t.path,n)));return f.mergeArray(n,l)}get element(){return this._def.type}min(e,t){return new Y({...this._def,minLength:{value:e,message:tr.toString(t)}})}max(e,t){return new Y({...this._def,maxLength:{value:e,message:tr.toString(t)}})}length(e,t){return new Y({...this._def,exactLength:{value:e,message:tr.toString(t)}})}nonempty(e){return this.min(1,e)}}Y.create=(e,t)=>new Y({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ti.ZodArray,...T(t)});class G extends C{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=tt.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){let t=this._getType(e);if(t!==r.object){let n=this._getOrReturnCtx(e);return h(n,{code:a.invalid_type,expected:r.object,received:n.parsedType}),m}let{status:i,ctx:s}=this._processInputParams(e),{shape:o,keys:l}=this._getCached(),u=[];if(!(this._def.catchall instanceof q&&"strip"===this._def.unknownKeys))for(let c in s.data)l.includes(c)||u.push(c);let d=[];for(let p of l){let y=o[p],g=s.data[p];d.push({key:{status:"valid",value:p},value:y._parse(new k(s,g,s.path,p)),alwaysSet:p in s.data})}if(this._def.catchall instanceof q){let v=this._def.unknownKeys;if("passthrough"===v)for(let _ of u)d.push({key:{status:"valid",value:_},value:{status:"valid",value:s.data[_]}});else if("strict"===v)u.length>0&&(h(s,{code:a.unrecognized_keys,keys:u}),i.dirty());else if("strip"===v);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let b=this._def.catchall;for(let x of u){let w=s.data[x];d.push({key:{status:"valid",value:x},value:b._parse(new k(s,w,s.path,x)),alwaysSet:x in s.data})}}return s.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of d){let n=await t.key;e.push({key:n,value:await t.value,alwaysSet:t.alwaysSet})}return e}).then(e=>f.mergeObjectSync(i,e)):f.mergeObjectSync(i,d)}get shape(){return this._def.shape()}strict(e){return tr.errToObj,new G({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,i,a,s;let o=null!==(a=null===(i=(r=this._def).errorMap)||void 0===i?void 0:i.call(r,t,n).message)&&void 0!==a?a:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(s=tr.errToObj(e).message)&&void 0!==s?s:o}:{message:o}}}:{}})}strip(){return new G({...this._def,unknownKeys:"strip"})}passthrough(){return new G({...this._def,unknownKeys:"passthrough"})}extend(e){return new G({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){let t=new G({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:ti.ZodObject});return t}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new G({...this._def,catchall:e})}pick(e){let t={};return tt.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])}),new G({...this._def,shape:()=>t})}omit(e){let t={};return tt.objectKeys(this.shape).forEach(n=>{e[n]||(t[n]=this.shape[n])}),new G({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof G){let n={};for(let r in t.shape){let i=t.shape[r];n[r]=eh.create(e(i))}return new G({...t._def,shape:()=>n})}if(t instanceof Y)return new Y({...t._def,type:e(t.element)});if(t instanceof eh)return eh.create(e(t.unwrap()));if(t instanceof ef)return ef.create(e(t.unwrap()));if(t instanceof et)return et.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};return tt.objectKeys(this.shape).forEach(n=>{let r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()}),new G({...this._def,shape:()=>t})}required(e){let t={};return tt.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])t[n]=this.shape[n];else{let r=this.shape[n],i=r;for(;i instanceof eh;)i=i._def.innerType;t[n]=i}}),new G({...this._def,shape:()=>t})}keyof(){return el(tt.objectKeys(this.shape))}}G.create=(e,t)=>new G({shape:()=>e,unknownKeys:"strip",catchall:q.create(),typeName:ti.ZodObject,...T(t)}),G.strictCreate=(e,t)=>new G({shape:()=>e,unknownKeys:"strict",catchall:q.create(),typeName:ti.ZodObject,...T(t)}),G.lazycreate=(e,t)=>new G({shape:e,unknownKeys:"strip",catchall:q.create(),typeName:ti.ZodObject,...T(t)});class X extends C{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(function(e){for(let n of e)if("valid"===n.result.status)return n.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let i=e.map(e=>new o(e.ctx.common.issues));return h(t,{code:a.invalid_union,unionErrors:i}),m});{let r,i=[];for(let s of n){let l={...t,common:{...t.common,issues:[]},parent:null},u=s._parseSync({data:t.data,path:t.path,parent:l});if("valid"===u.status)return u;"dirty"!==u.status||r||(r={result:u,ctx:l}),l.common.issues.length&&i.push(l.common.issues)}if(r)return t.common.issues.push(...r.ctx.common.issues),r.result;let c=i.map(e=>new o(e));return h(t,{code:a.invalid_union,unionErrors:c}),m}}get options(){return this._def.options}}X.create=(e,t)=>new X({options:e,typeName:ti.ZodUnion,...T(t)});let J=e=>{if(e instanceof es)return J(e.schema);if(e instanceof ep)return J(e.innerType());if(e instanceof eo)return[e.value];if(e instanceof eu)return e.options;if(e instanceof ec)return Object.keys(e.enum);else if(e instanceof em)return J(e._def.innerType);else if(e instanceof U)return[void 0];else if(e instanceof B)return[null];else return null};class Q extends C{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==r.object)return h(t,{code:a.invalid_type,expected:r.object,received:t.parsedType}),m;let n=this.discriminator,i=t.data[n],s=this.optionsMap.get(i);return s?t.common.async?s._parseAsync({data:t.data,path:t.path,parent:t}):s._parseSync({data:t.data,path:t.path,parent:t}):(h(t,{code:a.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),m)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){let r=new Map;for(let i of t){let a=J(i.shape[e]);if(!a)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let s of a){if(r.has(s))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(s)}`);r.set(s,i)}}return new Q({typeName:ti.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...T(n)})}}class ee extends C{_parse(e){let{status:t,ctx:n}=this._processInputParams(e),s=(e,s)=>{if(v(e)||v(s))return m;let o=function e(t,n){let a=i(t),s=i(n);if(t===n)return{valid:!0,data:t};if(a===r.object&&s===r.object){let o=tt.objectKeys(n),l=tt.objectKeys(t).filter(e=>-1!==o.indexOf(e)),u={...t,...n};for(let c of l){let d=e(t[c],n[c]);if(!d.valid)return{valid:!1};u[c]=d.data}return{valid:!0,data:u}}if(a===r.array&&s===r.array){if(t.length!==n.length)return{valid:!1};let p=[];for(let h=0;h<t.length;h++){let f=t[h],m=n[h],y=e(f,m);if(!y.valid)return{valid:!1};p.push(y.data)}return{valid:!0,data:p}}if(a===r.date&&s===r.date&&+t==+n)return{valid:!0,data:t};return{valid:!1}}(e.value,s.value);return o.valid?((_(e)||_(s))&&t.dirty(),{status:t.value,value:o.data}):(h(n,{code:a.invalid_intersection_types}),m)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n}),]).then(([e,t])=>s(e,t)):s(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}ee.create=(e,t,n)=>new ee({left:e,right:t,typeName:ti.ZodIntersection,...T(n)});class et extends C{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==r.array)return h(n,{code:a.invalid_type,expected:r.array,received:n.parsedType}),m;if(n.data.length<this._def.items.length)return h(n,{code:a.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),m;let i=this._def.rest;!i&&n.data.length>this._def.items.length&&(h(n,{code:a.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let s=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new k(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(s).then(e=>f.mergeArray(t,e)):f.mergeArray(t,s)}get items(){return this._def.items}rest(e){return new et({...this._def,rest:e})}}et.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new et({items:e,typeName:ti.ZodTuple,rest:null,...T(t)})};class en extends C{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==r.object)return h(n,{code:a.invalid_type,expected:r.object,received:n.parsedType}),m;let i=[],s=this._def.keyType,o=this._def.valueType;for(let l in n.data)i.push({key:s._parse(new k(n,l,n.path,l)),value:o._parse(new k(n,n.data[l],n.path,l))});return n.common.async?f.mergeObjectAsync(t,i):f.mergeObjectSync(t,i)}get element(){return this._def.valueType}static create(e,t,n){return new en(t instanceof C?{keyType:e,valueType:t,typeName:ti.ZodRecord,...T(n)}:{keyType:M.create(),valueType:e,typeName:ti.ZodRecord,...T(t)})}}class er extends C{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==r.map)return h(n,{code:a.invalid_type,expected:r.map,received:n.parsedType}),m;let i=this._def.keyType,s=this._def.valueType,o=[...n.data.entries()].map(([e,t],r)=>({key:i._parse(new k(n,e,n.path,[r,"key"])),value:s._parse(new k(n,t,n.path,[r,"value"]))}));if(n.common.async){let l=new Map;return Promise.resolve().then(async()=>{for(let e of o){let n=await e.key,r=await e.value;if("aborted"===n.status||"aborted"===r.status)return m;("dirty"===n.status||"dirty"===r.status)&&t.dirty(),l.set(n.value,r.value)}return{status:t.value,value:l}})}{let u=new Map;for(let c of o){let d=c.key,p=c.value;if("aborted"===d.status||"aborted"===p.status)return m;("dirty"===d.status||"dirty"===p.status)&&t.dirty(),u.set(d.value,p.value)}return{status:t.value,value:u}}}}er.create=(e,t,n)=>new er({valueType:t,keyType:e,typeName:ti.ZodMap,...T(n)});class ei extends C{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==r.set)return h(n,{code:a.invalid_type,expected:r.set,received:n.parsedType}),m;let i=this._def;null!==i.minSize&&n.data.size<i.minSize.value&&(h(n,{code:a.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),t.dirty()),null!==i.maxSize&&n.data.size>i.maxSize.value&&(h(n,{code:a.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),t.dirty());let s=this._def.valueType;function o(e){let n=new Set;for(let r of e){if("aborted"===r.status)return m;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let l=[...n.data.values()].map((e,t)=>s._parse(new k(n,e,n.path,t)));return n.common.async?Promise.all(l).then(e=>o(e)):o(l)}min(e,t){return new ei({...this._def,minSize:{value:e,message:tr.toString(t)}})}max(e,t){return new ei({...this._def,maxSize:{value:e,message:tr.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ei.create=(e,t)=>new ei({valueType:e,minSize:null,maxSize:null,typeName:ti.ZodSet,...T(t)});class ea extends C{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==r.function)return h(t,{code:a.invalid_type,expected:r.function,received:t.parsedType}),m;function n(e,n){return p({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,u,l,].filter(e=>!!e),issueData:{code:a.invalid_arguments,argumentsError:n}})}function i(e,n){return p({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,u,l,].filter(e=>!!e),issueData:{code:a.invalid_return_type,returnTypeError:n}})}let s={errorMap:t.common.contextualErrorMap},c=t.data;return this._def.returns instanceof ed?g(async(...e)=>{let t=new o([]),r=await this._def.args.parseAsync(e,s).catch(r=>{throw t.addIssue(n(e,r)),t}),a=await c(...r),l=await this._def.returns._def.type.parseAsync(a,s).catch(e=>{throw t.addIssue(i(a,e)),t});return l}):g((...e)=>{let t=this._def.args.safeParse(e,s);if(!t.success)throw new o([n(e,t.error)]);let r=c(...t.data),a=this._def.returns.safeParse(r,s);if(!a.success)throw new o([i(r,a.error)]);return a.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new ea({...this._def,args:et.create(e).rest(H.create())})}returns(e){return new ea({...this._def,returns:e})}implement(e){let t=this.parse(e);return t}strictImplement(e){let t=this.parse(e);return t}static create(e,t,n){return new ea({args:e||et.create([]).rest(H.create()),returns:t||H.create(),typeName:ti.ZodFunction,...T(n)})}}class es extends C{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.getter();return n._parse({data:t.data,path:t.path,parent:t})}}es.create=(e,t)=>new es({getter:e,typeName:ti.ZodLazy,...T(t)});class eo extends C{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return h(t,{received:t.data,code:a.invalid_literal,expected:this._def.value}),m}return{status:"valid",value:e.data}}get value(){return this._def.value}}function el(e,t){return new eu({values:e,typeName:ti.ZodEnum,...T(t)})}eo.create=(e,t)=>new eo({value:e,typeName:ti.ZodLiteral,...T(t)});class eu extends C{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),n=this._def.values;return h(t,{expected:tt.joinValues(n),received:t.parsedType,code:a.invalid_type}),m}if(-1===this._def.values.indexOf(e.data)){let r=this._getOrReturnCtx(e),i=this._def.values;return h(r,{received:r.data,code:a.invalid_enum_value,options:i}),m}return g(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){return eu.create(e)}exclude(e){return eu.create(this.options.filter(t=>!e.includes(t)))}}eu.create=el;class ec extends C{_parse(e){let t=tt.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==r.string&&n.parsedType!==r.number){let i=tt.objectValues(t);return h(n,{expected:tt.joinValues(i),received:n.parsedType,code:a.invalid_type}),m}if(-1===t.indexOf(e.data)){let s=tt.objectValues(t);return h(n,{received:n.data,code:a.invalid_enum_value,options:s}),m}return g(e.data)}get enum(){return this._def.values}}ec.create=(e,t)=>new ec({values:e,typeName:ti.ZodNativeEnum,...T(t)});class ed extends C{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==r.promise&&!1===t.common.async)return h(t,{code:a.invalid_type,expected:r.promise,received:t.parsedType}),m;let n=t.parsedType===r.promise?t.data:Promise.resolve(t.data);return g(n.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}ed.create=(e,t)=>new ed({type:e,typeName:ti.ZodPromise,...T(t)});class ep extends C{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ti.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null;if("preprocess"===r.type){let i=r.transform(n.data);return n.common.async?Promise.resolve(i).then(e=>this._def.schema._parseAsync({data:e,path:n.path,parent:n})):this._def.schema._parseSync({data:i,path:n.path,parent:n})}let a={addIssue(e){h(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(a.addIssue=a.addIssue.bind(a),"refinement"===r.type){let s=e=>{let t=r.refinement(e,a);if(n.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!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>"aborted"===e.status?m:("dirty"===e.status&&t.dirty(),s(e.value).then(()=>({status:t.value,value:e.value}))));{let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===o.status?m:("dirty"===o.status&&t.dirty(),s(o.value),{status:t.value,value:o.value})}}if("transform"===r.type){if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>b(e)?Promise.resolve(r.transform(e.value,a)).then(e=>({status:t.value,value:e})):e);{let l=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!b(l))return l;let u=r.transform(l.value,a);if(u instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:u}}}tt.assertNever(r)}}ep.create=(e,t,n)=>new ep({schema:e,typeName:ti.ZodEffects,effect:t,...T(n)}),ep.createWithPreprocess=(e,t,n)=>new ep({schema:t,effect:{type:"preprocess",transform:e},typeName:ti.ZodEffects,...T(n)});class eh extends C{_parse(e){let t=this._getType(e);return t===r.undefined?g(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eh.create=(e,t)=>new eh({innerType:e,typeName:ti.ZodOptional,...T(t)});class ef extends C{_parse(e){let t=this._getType(e);return t===r.null?g(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ef.create=(e,t)=>new ef({innerType:e,typeName:ti.ZodNullable,...T(t)});class em extends C{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===r.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}em.create=(e,t)=>new em({innerType:e,typeName:ti.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...T(t)});class ey extends C{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return x(r)?r.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new o(n.common.issues)},input:n.data})})):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new o(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}ey.create=(e,t)=>new ey({innerType:e,typeName:ti.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...T(t)});class eg extends C{_parse(e){let t=this._getType(e);if(t!==r.nan){let n=this._getOrReturnCtx(e);return h(n,{code:a.invalid_type,expected:r.nan,received:n.parsedType}),m}return{status:"valid",value:e.data}}}eg.create=e=>new eg({typeName:ti.ZodNaN,...T(e)});let ev=Symbol("zod_brand");class e_ extends C{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class eb extends C{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async){let r=async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?m:"dirty"===e.status?(t.dirty(),y(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})};return r()}{let i=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===i.status?m:"dirty"===i.status?(t.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:n.path,parent:n})}}static create(e,t){return new eb({in:e,out:t,typeName:ti.ZodPipeline})}}let ex=(e,t={},n)=>e?W.create().superRefine((r,i)=>{var a,s;if(!e(r)){let o="function"==typeof t?t(r):"string"==typeof t?{message:t}:t,l=null===(s=null!==(a=o.fatal)&&void 0!==a?a:n)||void 0===s||s;i.addIssue({code:"custom",..."string"==typeof o?{message:o}:o,fatal:l})}}):W.create(),ek={object:G.lazycreate};(te=ti||(ti={})).ZodString="ZodString",te.ZodNumber="ZodNumber",te.ZodNaN="ZodNaN",te.ZodBigInt="ZodBigInt",te.ZodBoolean="ZodBoolean",te.ZodDate="ZodDate",te.ZodSymbol="ZodSymbol",te.ZodUndefined="ZodUndefined",te.ZodNull="ZodNull",te.ZodAny="ZodAny",te.ZodUnknown="ZodUnknown",te.ZodNever="ZodNever",te.ZodVoid="ZodVoid",te.ZodArray="ZodArray",te.ZodObject="ZodObject",te.ZodUnion="ZodUnion",te.ZodDiscriminatedUnion="ZodDiscriminatedUnion",te.ZodIntersection="ZodIntersection",te.ZodTuple="ZodTuple",te.ZodRecord="ZodRecord",te.ZodMap="ZodMap",te.ZodSet="ZodSet",te.ZodFunction="ZodFunction",te.ZodLazy="ZodLazy",te.ZodLiteral="ZodLiteral",te.ZodEnum="ZodEnum",te.ZodEffects="ZodEffects",te.ZodNativeEnum="ZodNativeEnum",te.ZodOptional="ZodOptional",te.ZodNullable="ZodNullable",te.ZodDefault="ZodDefault",te.ZodCatch="ZodCatch",te.ZodPromise="ZodPromise",te.ZodBranded="ZodBranded",te.ZodPipeline="ZodPipeline";let ew=(e,t={message:`Input not instance of ${e.name}`})=>ex(t=>t instanceof e,t),eT=M.create,eC=L.create,eS=eg.create,eE=z.create,eO=F.create,eN=$.create,eZ=V.create,eP=U.create,eA=B.create,eI=W.create,ej=H.create,eR=q.create,eM=K.create,eD=Y.create,eL=G.create,ez=G.strictCreate,eF=X.create,e$=Q.create,eV=ee.create,eU=et.create,eB=en.create,eW=er.create,eH=ei.create,eq=ea.create,eK=es.create,eY=eo.create,eG=eu.create,eX=ec.create,eJ=ed.create,eQ=ep.create,e0=eh.create,e1=ef.create,e2=ep.createWithPreprocess,e9=eb.create,e4=()=>eT().optional(),e3=()=>eC().optional(),e5=()=>eO().optional();var e8,e6,e7,te,tt,tn,tr,ti,ta=Object.freeze({__proto__:null,defaultErrorMap:l,setErrorMap:c,getErrorMap:d,makeIssue:p,EMPTY_PATH:[],addIssueToContext:h,ParseStatus:f,INVALID:m,DIRTY:y,OK:g,isAborted:v,isDirty:_,isValid:b,isAsync:x,get util(){return tt},get objectUtil(){return tn},ZodParsedType:r,getParsedType:i,ZodType:C,ZodString:M,ZodNumber:L,ZodBigInt:z,ZodBoolean:F,ZodDate:$,ZodSymbol:V,ZodUndefined:U,ZodNull:B,ZodAny:W,ZodUnknown:H,ZodNever:q,ZodVoid:K,ZodArray:Y,ZodObject:G,ZodUnion:X,ZodDiscriminatedUnion:Q,ZodIntersection:ee,ZodTuple:et,ZodRecord:en,ZodMap:er,ZodSet:ei,ZodFunction:ea,ZodLazy:es,ZodLiteral:eo,ZodEnum:eu,ZodNativeEnum:ec,ZodPromise:ed,ZodEffects:ep,ZodTransformer:ep,ZodOptional:eh,ZodNullable:ef,ZodDefault:em,ZodCatch:ey,ZodNaN:eg,BRAND:ev,ZodBranded:e_,ZodPipeline:eb,custom:ex,Schema:C,ZodSchema:C,late:ek,get ZodFirstPartyTypeKind(){return ti},coerce:{string:e=>M.create({...e,coerce:!0}),number:e=>L.create({...e,coerce:!0}),boolean:e=>F.create({...e,coerce:!0}),bigint:e=>z.create({...e,coerce:!0}),date:e=>$.create({...e,coerce:!0})},any:eI,array:eD,bigint:eE,boolean:eO,date:eN,discriminatedUnion:e$,effect:eQ,enum:eG,function:eq,instanceof:ew,intersection:eV,lazy:eK,literal:eY,map:eW,nan:eS,nativeEnum:eX,never:eR,null:eA,nullable:e1,number:eC,object:eL,oboolean:e5,onumber:e3,optional:e0,ostring:e4,pipeline:e9,preprocess:e2,promise:eJ,record:eB,set:eH,strictObject:ez,string:eT,symbol:eZ,transformer:eQ,tuple:eU,undefined:eP,union:eF,unknown:ej,void:eM,NEVER:m,ZodIssueCode:a,quotelessJson:s,ZodError:o}),ts=n(80832),to=n(19245);let tl=e$("status",[eL({status:eY("unclassified")}),eL({status:eY("published")}),eL({status:eY("release"),release_id:eT()}),eL({status:eY("archived")})]).and(eL({version_id:eT(),tags:eD(eT()),custom_type_label:eT(),preview_summary:eT().optional(),preview_image:eT().optional()})),tu=eL({id:eT(),custom_type_id:eT(),title:eT(),versions:eD(tl),locale:eT(),group_lang_id:eT()}),tc=eL({total:eC(),cursor:eT().optional(),results:eD(tu)});function td(e,t,n,r,i){let a=new URLSearchParams({limit:i.toString(),...t&&{cursor:t}});return(0,to.WY)(`${e}/documents?${a.toString()}&${r}`,{credentials:(0,to.xb)(n),okType:tc})}function tp(e){return e.reduce((e,t)=>{let n=t.values.map(e=>[t.name,e]);return e.concat(n)},[])}let th=eL({id:eT(),title:eT(),versions:ta.array(tl)});function tf(e,t,n){return(0,to.WY)(`${e}/documents/${n}`,{credentials:(0,to.xb)(t),okType:th})}let tm=eL({id:eT(),name:eT(),is_master:eO()}),ty=eL({simulator_url:eT().url().nullish(),languages:eD(tm).transform(e=>(0,ts.DY)(e,e=>e.name))});function tg(e,t){return(0,to.WY)(e,{credentials:(0,to.xb)(t),okType:ty})}let tv={unclassified:["unclassified","published"],archived:["unclassified","published"],release:["published"],published:["published"]}},34234:function(e,t,n){"use strict";function r(e,t){for(let n of e)if(t(n))return!0;return!1}function i(e,t){let n=new Set;for(let r of e.values())n.add(t(r));return n}function a(e){let t=e.values().next();if(!t.done)return t.value}function s(...e){return e.reduce((e,t)=>new Set([...e,...t]),new Set)}function o(e,t){for(let n of e)if(t(n))return n}n.d(t,{G:function(){return r},G0:function(){return s},Ps:function(){return a},UI:function(){return i},sE:function(){return o}})},68865:function(e,t,n){"use strict";n.d(t,{Fs:function(){return u},QT:function(){return a},U9:function(){return p},VA:function(){return s}});var r=n(2784),i=n(32001);function a(e,t){(function(e,t){let n=(0,i.NW)();(0,r.useEffect)(()=>{let r=l.getFetcherConfig(e).revalidationStrategy;if((null==r?void 0:r.type)!=="never"&&null!=r&&r.onFocus)return document.addEventListener("visibilitychange",i),()=>document.removeEventListener("visibilitychange",i);function i(){if("hidden"===document.visibilityState)return;let r=l.get(e,t);if(!r||"fetched"!==r.state)return;let i=e(...t);r.ok?l.set(e,t,{state:"revalidating",promise:i,ok:!0,body:r.body}):l.set(e,t,{state:"revalidating",promise:i,ok:!1,error:r.error}),o(e,t,i).then(n).catch(()=>null)}})})(e,t),function(e,t){let n=(0,i.NW)(),a=c(e,t);(0,r.useEffect)(()=>{function t(t,r){if(e!==t)return;let i=c(e,r);a===i&&n()}return d.push(t),()=>{let e=d.indexOf(t);d.splice(e,1)}},[e,n,a])}(e,t),function(e,t){let n=(0,r.useContext)(p);if(!n){console.warn("It is not recommended to use editor-support->Suspense without a editor-ui->ErrorBoundary above it.");return}n.registerRequest(e,t)}(e,t);let n=l.get(e,t);if(!n)throw function(e,t){let n=e(...t);return l.set(e,t,{state:"fetching",promise:n}),o(e,t,n).catch(()=>null),n}(e,t);if("fetching"===n.state)throw n.promise;if(n.ok)return n.body;throw n.error}function s(e,t,n,r){let{notify:i=!0}=r??{};l.set(e,t,{state:"fetched",ok:!0,body:n}),i&&d.forEach(n=>n(e,t))}function o(e,t,n){return n.then(n=>l.set(e,t,{state:"fetched",ok:!0,body:n})).catch(n=>l.set(e,t,{state:"fetched",ok:!1,error:n}))}let l=function(){let e=new Map,t=new Map,n={cacheCapacity:500,revalidationStrategy:{type:"swr",onFocus:!0}};function r(t){return e.get(t)??n}return{get(e,n){let r=c(e,n),i=t.get(e);if(!i||!i.has(r))return;let a=i.get(r);return i.delete(r),void 0!==a&&i.set(r,a),a},set(e,n,i){let a=t.get(e);a||(a=new Map,t.set(e,a));let s=r(e),o=c(e,n);a.size!==s.cacheCapacity||a.has(o)||a.delete(a.keys().next().value),a.set(o,i)},has(e,n){let r=c(e,n),i=t.get(e),a=null==i?void 0:i.get(r);if(!a)return!1;let s="fetched"===a.state,o="revalidating"===a.state&&a.ok;return s||o},getFetcherConfig:r,registerFetcherConfig(t,n){e.set(t,n)},clear(e,n){let r=t.get(e);if(!r)return;let i=c(e,n);r.delete(i)},clearAll(){t.clear()}}}(),u=l;function c(e,t){let n=e.length-t.length;if(0===n)return t.join(`
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[770],{80832:function(e,t,n){"use strict";function r(e,t){return e.filter((e,n)=>n!==t)}function i(e,t,n){if(t===n||a(e,t)||a(e,n))return e;let r=e.slice(),i=r.splice(t,1)[0];return r.splice(n,0,i),r}function a(e,t){return t<0||t>=e.length}function s(e,...t){let n=e.slice();return 0===t.length&&(t=[e=>e]),n.sort((e,n)=>{for(let r of t){let i=r(e),a=r(n);if(null==i)return 1;if(null==a)return -1;if("string"==typeof i){let s=i.localeCompare(a);if(0!==s)return s}else{if(i<a)return -1;if(i>a)return 1}}return 0}),n}n.d(t,{$E:function(){return r},DY:function(){return s},pB:function(){return i}})},19245:function(e,t,n){"use strict";n.d(t,{WY:function(){return i},xb:function(){return o}});var r=n(97867);async function i(e,t){let{okType:n,signal:i,headers:o,body:l,timeout:u=15e3,...c}=t,d=new Headers(o);d.has("Content-Type")||d.set("Content-Type","application/json"),"multipart/form-data"===d.get("Content-Type")&&d.delete("Content-Type");let p=s();p&&d.set("Authorization",`Bearer ${p}`);let h="application/json"===d.get("Content-Type")?JSON.stringify(l):l,f=!1;try{let m=t.method&&"GET"!==t.method?void 0:new AbortController,g=function(e){let t=new AbortController;function n(){for(let r of(t.abort(),e))r.removeEventListener("abort",n)}for(let r of e){if(r.aborted){n();break}r.addEventListener("abort",n)}return t.signal}([null==m?void 0:m.signal,i].filter(r.$));m&&setTimeout(()=>{f=!0,m.abort()},u);let v=await fetch(e,{...c,body:h,headers:d,signal:g}),{status:y}=v,_=v.clone(),b=await v.json().catch(e=>_.text());if(v.ok){let x=n.safeParse(b);if(!x.success)throw new a({type:"validation",status:y,cause:x.error});return x.data}throw new a({type:"http",status:y,body:b})}catch(T){var k,w;throw(k=T,k instanceof a)?T:new a((w=T,w instanceof DOMException&&"AbortError"===w.name)?{type:f?"timeout":"abort"}:{type:"unknown",cause:T})}}class a extends Error{constructor(e){super(JSON.stringify(e,null,2)),this.detail=e,this.name="RequestError"}}let s=()=>"";function o(e){return"dev"===e?"same-origin":"include"}},59131:function(e,t,n){"use strict";n.d(t,{d:function(){return i}});let r=0;function i(){return r++}},34736:function(e,t,n){"use strict";function r(e,t){let n={};for(let r in e)n[r]=t(e[r],r);return n}n.d(t,{Q8:function(){return r}})},32001:function(e,t,n){"use strict";n.d(t,{$P:function(){return o},NW:function(){return a},R9:function(){return i},pQ:function(){return s}});var r=n(2784);function i(e){let t=(0,r.useRef)(e);return(0,r.useLayoutEffect)(()=>{t.current=e}),(0,r.useMemo)(()=>(...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)},[])}function a(){let[e,t]=(0,r.useState)({});return(0,r.useCallback)(()=>t({}),[])}function s(e,t){let[n,i]=(0,r.useState)(e);n!==e&&(i(e),t(e))}function o(e){var t,n,a;let{ms:s=300,initialState:o,startTransition:l=e=>e()}=e,[u,c]=(0,r.useState)(o),[d,p]=(0,r.useState)(o);return a=i(()=>l(()=>p(u))),(0,r.useEffect)(()=>{let e=setTimeout(()=>a(u),s);return()=>clearTimeout(e)},[a,s,u]),{debouncedValue:d,set:c,value:u}}},60848:function(e,t,n){"use strict";n.d(t,{fW:function(){return tp},tf:function(){return tf},Ag:function(){return tv},W7:function(){return td},Vu:function(){return ty}}),(e8=tt||(tt={})).assertEqual=e=>e,e8.assertIs=function(e){},e8.assertNever=function(e){throw Error()},e8.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},e8.getValidEnumValues=e=>{let t=e8.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),n={};for(let r of t)n[r]=e[r];return e8.objectValues(n)},e8.objectValues=e=>e8.objectKeys(e).map(function(t){return e[t]}),e8.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e8.find=(e,t)=>{for(let n of e)if(t(n))return n},e8.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e8.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e8.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(e7=tn||(tn={})).mergeShapes=(e,t)=>({...e,...t});let r=tt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set",]),i=e=>{switch(typeof e){case"undefined":return r.undefined;case"string":return r.string;case"number":return isNaN(e)?r.nan:r.number;case"boolean":return r.boolean;case"function":return r.function;case"bigint":return r.bigint;case"symbol":return r.symbol;case"object":if(Array.isArray(e))return r.array;if(null===e)return r.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return r.promise;if("undefined"!=typeof Map&&e instanceof Map)return r.map;if("undefined"!=typeof Set&&e instanceof Set)return r.set;if("undefined"!=typeof Date&&e instanceof Date)return r.date;return r.object;default:return r.unknown}},a=tt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite",]),s=e=>{let t=JSON.stringify(e,null,2);return t.replace(/"([^"]+)":/g,"$1:")};class o extends Error{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}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(r);else if("invalid_return_type"===i.code)r(i.returnTypeError);else if("invalid_arguments"===i.code)r(i.argumentsError);else if(0===i.path.length)n._errors.push(t(i));else{let a=n,s=0;for(;s<i.path.length;){let o=i.path[s],l=s===i.path.length-1;l?(a[o]=a[o]||{_errors:[]},a[o]._errors.push(t(i))):a[o]=a[o]||{_errors:[]},a=a[o],s++}}};return r(this),n}toString(){return this.message}get message(){return JSON.stringify(this.issues,tt.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},n=[];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))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}o.create=e=>{let t=new o(e);return t};let l=(e,t)=>{let n;switch(e.code){case a.invalid_type:n=e.received===r.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case a.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,tt.jsonStringifyReplacer)}`;break;case a.unrecognized_keys:n=`Unrecognized key(s) in object: ${tt.joinValues(e.keys,", ")}`;break;case a.invalid_union:n="Invalid input";break;case a.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${tt.joinValues(e.options)}`;break;case a.invalid_enum_value:n=`Invalid enum value. Expected ${tt.joinValues(e.options)}, received '${e.received}'`;break;case a.invalid_arguments:n="Invalid function arguments";break;case a.invalid_return_type:n="Invalid function return type";break;case a.invalid_date:n="Invalid date";break;case a.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:tt.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case a.too_small:n="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 a.too_big:n="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 a.custom:n="Invalid input";break;case a.invalid_intersection_types:n="Intersection results could not be merged";break;case a.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case a.not_finite:n="Number must be finite";break;default:n=t.defaultError,tt.assertNever(e)}return{message:n}},u=l;function c(e){u=e}function d(){return u}let p=e=>{let{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],s={...i,path:a},o="",l=r.filter(e=>!!e).slice().reverse();for(let u of l)o=u(s,{data:t,defaultError:o}).message;return{...i,path:a,message:i.message||o}};function h(e,t){let n=p({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,u,l].filter(e=>!!e)});e.common.issues.push(n)}class f{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let n=[];for(let r of t){if("aborted"===r.status)return m;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){let n=[];for(let r of t)n.push({key:await r.key,value:await r.value});return f.mergeObjectSync(e,n)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:i,value:a}=r;if("aborted"===i.status||"aborted"===a.status)return m;"dirty"===i.status&&e.dirty(),"dirty"===a.status&&e.dirty(),(void 0!==a.value||r.alwaysSet)&&(n[i.value]=a.value)}return{status:e.value,value:n}}}let m=Object.freeze({status:"aborted"}),g=e=>({status:"dirty",value:e}),v=e=>({status:"valid",value:e}),y=e=>"aborted"===e.status,_=e=>"dirty"===e.status,b=e=>"valid"===e.status,x=e=>"undefined"!=typeof Promise&&e instanceof Promise;(e6=tr||(tr={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},e6.toString=e=>"string"==typeof e?e:null==e?void 0:e.message;class k{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let w=(e,t)=>{if(b(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 n=new o(e.common.issues);return this._error=n,this._error}}};function T(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(t)return{errorMap:t,description:i};let a=(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:void 0===t.data?{message:null!=r?r:t.defaultError}:{message:null!=n?n:t.defaultError};return{errorMap:a,description:i}}class C{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.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return i(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:i(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new f,ctx:{common:e.parent.common,data:e.data,parsedType:i(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(x(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;let r={common:{issues:[],async:null!==(n=null==t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:i(e)},a=this._parseSync({data:e,path:r.path,parent:r});return w(r,a)}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:i(e)},r=this._parse({data:e,path:n.path,parent:n}),a=await (x(r)?r:Promise.resolve(r));return w(n,a)}refine(e,t){let n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,r)=>{let i=e(t),s=()=>r.addIssue({code:a.custom,...n(t)});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(e=>!!e||(s(),!1)):!!i||(s(),!1)})}refinement(e,t){return this._refinement((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1))}_refinement(e){return new ep({schema:this,typeName:ti.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return eh.create(this,this._def)}nullable(){return ef.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Y.create(this,this._def)}promise(){return ed.create(this,this._def)}or(e){return X.create([this,e],this._def)}and(e){return ee.create(this,e,this._def)}transform(e){return new ep({...T(this._def),schema:this,typeName:ti.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new em({...T(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:ti.ZodDefault})}brand(){return new e_({typeName:ti.ZodBranded,type:this,...T(this._def)})}catch(e){return new eg({...T(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:ti.ZodCatch})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return eb.create(this,e)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let E=/^c[^\s-]{8,}$/i,S=/^[a-z][a-z0-9]*$/,O=/[0-9A-HJKMNP-TV-Z]{26}/,R=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,N=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\])|(\[IPv6:(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\.[A-Za-z]{2,})+))$/,P=/^(\p{Extended_Pictographic}|\p{Emoji_Component})+$/u,A=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,I=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,j=e=>e.precision?e.offset?RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):0===e.precision?e.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function Z(e,t){return!!(("v4"===t||!t)&&A.test(e)||("v6"===t||!t)&&I.test(e))}class M extends C{constructor(){super(...arguments),this._regex=(e,t,n)=>this.refinement(t=>e.test(t),{validation:t,code:a.invalid_string,...tr.errToObj(n)}),this.nonempty=e=>this.min(1,tr.errToObj(e)),this.trim=()=>new M({...this._def,checks:[...this._def.checks,{kind:"trim"}]}),this.toLowerCase=()=>new M({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]}),this.toUpperCase=()=>new M({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}_parse(e){this._def.coerce&&(e.data=String(e.data));let t=this._getType(e);if(t!==r.string){let n=this._getOrReturnCtx(e);return h(n,{code:a.invalid_type,expected:r.string,received:n.parsedType}),m}let i=new f,s;for(let o of this._def.checks)if("min"===o.kind)e.data.length<o.value&&(h(s=this._getOrReturnCtx(e,s),{code:a.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),i.dirty());else if("max"===o.kind)e.data.length>o.value&&(h(s=this._getOrReturnCtx(e,s),{code:a.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),i.dirty());else if("length"===o.kind){let l=e.data.length>o.value,u=e.data.length<o.value;(l||u)&&(s=this._getOrReturnCtx(e,s),l?h(s,{code:a.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):u&&h(s,{code:a.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),i.dirty())}else if("email"===o.kind)N.test(e.data)||(h(s=this._getOrReturnCtx(e,s),{validation:"email",code:a.invalid_string,message:o.message}),i.dirty());else if("emoji"===o.kind)P.test(e.data)||(h(s=this._getOrReturnCtx(e,s),{validation:"emoji",code:a.invalid_string,message:o.message}),i.dirty());else if("uuid"===o.kind)R.test(e.data)||(h(s=this._getOrReturnCtx(e,s),{validation:"uuid",code:a.invalid_string,message:o.message}),i.dirty());else if("cuid"===o.kind)E.test(e.data)||(h(s=this._getOrReturnCtx(e,s),{validation:"cuid",code:a.invalid_string,message:o.message}),i.dirty());else if("cuid2"===o.kind)S.test(e.data)||(h(s=this._getOrReturnCtx(e,s),{validation:"cuid2",code:a.invalid_string,message:o.message}),i.dirty());else if("ulid"===o.kind)O.test(e.data)||(h(s=this._getOrReturnCtx(e,s),{validation:"ulid",code:a.invalid_string,message:o.message}),i.dirty());else if("url"===o.kind)try{new URL(e.data)}catch(c){h(s=this._getOrReturnCtx(e,s),{validation:"url",code:a.invalid_string,message:o.message}),i.dirty()}else if("regex"===o.kind){o.regex.lastIndex=0;let d=o.regex.test(e.data);d||(h(s=this._getOrReturnCtx(e,s),{validation:"regex",code:a.invalid_string,message:o.message}),i.dirty())}else if("trim"===o.kind)e.data=e.data.trim();else if("includes"===o.kind)e.data.includes(o.value,o.position)||(h(s=this._getOrReturnCtx(e,s),{code:a.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),i.dirty());else if("toLowerCase"===o.kind)e.data=e.data.toLowerCase();else if("toUpperCase"===o.kind)e.data=e.data.toUpperCase();else if("startsWith"===o.kind)e.data.startsWith(o.value)||(h(s=this._getOrReturnCtx(e,s),{code:a.invalid_string,validation:{startsWith:o.value},message:o.message}),i.dirty());else if("endsWith"===o.kind)e.data.endsWith(o.value)||(h(s=this._getOrReturnCtx(e,s),{code:a.invalid_string,validation:{endsWith:o.value},message:o.message}),i.dirty());else if("datetime"===o.kind){let p=j(o);p.test(e.data)||(h(s=this._getOrReturnCtx(e,s),{code:a.invalid_string,validation:"datetime",message:o.message}),i.dirty())}else"ip"===o.kind?Z(e.data,o.version)||(h(s=this._getOrReturnCtx(e,s),{validation:"ip",code:a.invalid_string,message:o.message}),i.dirty()):tt.assertNever(o);return{status:i.value,value:e.data}}_addCheck(e){return new M({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...tr.errToObj(e)})}url(e){return this._addCheck({kind:"url",...tr.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...tr.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...tr.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...tr.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...tr.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...tr.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...tr.errToObj(e)})}datetime(e){var t;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,...tr.errToObj(null==e?void 0:e.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...tr.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...tr.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...tr.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...tr.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...tr.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...tr.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...tr.errToObj(t)})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===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 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 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}}function L(e,t){let n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,a=parseInt(e.toFixed(i).replace(".","")),s=parseInt(t.toFixed(i).replace(".",""));return a%s/Math.pow(10,i)}M.create=e=>{var t;return new M({checks:[],typeName:ti.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...T(e)})};class D extends C{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){this._def.coerce&&(e.data=Number(e.data));let t=this._getType(e);if(t!==r.number){let n=this._getOrReturnCtx(e);return h(n,{code:a.invalid_type,expected:r.number,received:n.parsedType}),m}let i,s=new f;for(let o of this._def.checks)if("int"===o.kind)tt.isInteger(e.data)||(h(i=this._getOrReturnCtx(e,i),{code:a.invalid_type,expected:"integer",received:"float",message:o.message}),s.dirty());else if("min"===o.kind){let l=o.inclusive?e.data<o.value:e.data<=o.value;l&&(h(i=this._getOrReturnCtx(e,i),{code:a.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),s.dirty())}else if("max"===o.kind){let u=o.inclusive?e.data>o.value:e.data>=o.value;u&&(h(i=this._getOrReturnCtx(e,i),{code:a.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),s.dirty())}else"multipleOf"===o.kind?0!==L(e.data,o.value)&&(h(i=this._getOrReturnCtx(e,i),{code:a.not_multiple_of,multipleOf:o.value,message:o.message}),s.dirty()):"finite"===o.kind?Number.isFinite(e.data)||(h(i=this._getOrReturnCtx(e,i),{code:a.not_finite,message:o.message}),s.dirty()):tt.assertNever(o);return{status:s.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,tr.toString(t))}gt(e,t){return this.setLimit("min",e,!1,tr.toString(t))}lte(e,t){return this.setLimit("max",e,!0,tr.toString(t))}lt(e,t){return this.setLimit("max",e,!1,tr.toString(t))}setLimit(e,t,n,r){return new D({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:tr.toString(r)},]})}_addCheck(e){return new D({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:tr.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:tr.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:tr.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:tr.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:tr.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:tr.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:tr.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:tr.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:tr.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&&tt.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}D.create=e=>new D({checks:[],typeName:ti.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...T(e)});class z extends C{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){this._def.coerce&&(e.data=BigInt(e.data));let t=this._getType(e);if(t!==r.bigint){let n=this._getOrReturnCtx(e);return h(n,{code:a.invalid_type,expected:r.bigint,received:n.parsedType}),m}let i,s=new f;for(let o of this._def.checks)if("min"===o.kind){let l=o.inclusive?e.data<o.value:e.data<=o.value;l&&(h(i=this._getOrReturnCtx(e,i),{code:a.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),s.dirty())}else if("max"===o.kind){let u=o.inclusive?e.data>o.value:e.data>=o.value;u&&(h(i=this._getOrReturnCtx(e,i),{code:a.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),s.dirty())}else"multipleOf"===o.kind?e.data%o.value!==BigInt(0)&&(h(i=this._getOrReturnCtx(e,i),{code:a.not_multiple_of,multipleOf:o.value,message:o.message}),s.dirty()):tt.assertNever(o);return{status:s.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,tr.toString(t))}gt(e,t){return this.setLimit("min",e,!1,tr.toString(t))}lte(e,t){return this.setLimit("max",e,!0,tr.toString(t))}lt(e,t){return this.setLimit("max",e,!1,tr.toString(t))}setLimit(e,t,n,r){return new z({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:tr.toString(r)},]})}_addCheck(e){return new z({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:tr.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:tr.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:tr.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:tr.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:tr.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}}z.create=e=>{var t;return new z({checks:[],typeName:ti.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...T(e)})};class F extends C{_parse(e){this._def.coerce&&(e.data=Boolean(e.data));let t=this._getType(e);if(t!==r.boolean){let n=this._getOrReturnCtx(e);return h(n,{code:a.invalid_type,expected:r.boolean,received:n.parsedType}),m}return v(e.data)}}F.create=e=>new F({typeName:ti.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...T(e)});class V extends C{_parse(e){this._def.coerce&&(e.data=new Date(e.data));let t=this._getType(e);if(t!==r.date){let n=this._getOrReturnCtx(e);return h(n,{code:a.invalid_type,expected:r.date,received:n.parsedType}),m}if(isNaN(e.data.getTime())){let i=this._getOrReturnCtx(e);return h(i,{code:a.invalid_date}),m}let s=new f,o;for(let l of this._def.checks)"min"===l.kind?e.data.getTime()<l.value&&(h(o=this._getOrReturnCtx(e,o),{code:a.too_small,message:l.message,inclusive:!0,exact:!1,minimum:l.value,type:"date"}),s.dirty()):"max"===l.kind?e.data.getTime()>l.value&&(h(o=this._getOrReturnCtx(e,o),{code:a.too_big,message:l.message,inclusive:!0,exact:!1,maximum:l.value,type:"date"}),s.dirty()):tt.assertNever(l);return{status:s.value,value:new Date(e.data.getTime())}}_addCheck(e){return new V({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:tr.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:tr.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}}V.create=e=>new V({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:ti.ZodDate,...T(e)});class $ extends C{_parse(e){let t=this._getType(e);if(t!==r.symbol){let n=this._getOrReturnCtx(e);return h(n,{code:a.invalid_type,expected:r.symbol,received:n.parsedType}),m}return v(e.data)}}$.create=e=>new $({typeName:ti.ZodSymbol,...T(e)});class B extends C{_parse(e){let t=this._getType(e);if(t!==r.undefined){let n=this._getOrReturnCtx(e);return h(n,{code:a.invalid_type,expected:r.undefined,received:n.parsedType}),m}return v(e.data)}}B.create=e=>new B({typeName:ti.ZodUndefined,...T(e)});class U extends C{_parse(e){let t=this._getType(e);if(t!==r.null){let n=this._getOrReturnCtx(e);return h(n,{code:a.invalid_type,expected:r.null,received:n.parsedType}),m}return v(e.data)}}U.create=e=>new U({typeName:ti.ZodNull,...T(e)});class q extends C{constructor(){super(...arguments),this._any=!0}_parse(e){return v(e.data)}}q.create=e=>new q({typeName:ti.ZodAny,...T(e)});class W extends C{constructor(){super(...arguments),this._unknown=!0}_parse(e){return v(e.data)}}W.create=e=>new W({typeName:ti.ZodUnknown,...T(e)});class H extends C{_parse(e){let t=this._getOrReturnCtx(e);return h(t,{code:a.invalid_type,expected:r.never,received:t.parsedType}),m}}H.create=e=>new H({typeName:ti.ZodNever,...T(e)});class K extends C{_parse(e){let t=this._getType(e);if(t!==r.undefined){let n=this._getOrReturnCtx(e);return h(n,{code:a.invalid_type,expected:r.void,received:n.parsedType}),m}return v(e.data)}}K.create=e=>new K({typeName:ti.ZodVoid,...T(e)});class Y extends C{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),i=this._def;if(t.parsedType!==r.array)return h(t,{code:a.invalid_type,expected:r.array,received:t.parsedType}),m;if(null!==i.exactLength){let s=t.data.length>i.exactLength.value,o=t.data.length<i.exactLength.value;(s||o)&&(h(t,{code:s?a.too_big:a.too_small,minimum:o?i.exactLength.value:void 0,maximum:s?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(null!==i.minLength&&t.data.length<i.minLength.value&&(h(t,{code:a.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),null!==i.maxLength&&t.data.length>i.maxLength.value&&(h(t,{code:a.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>i.type._parseAsync(new k(t,e,t.path,n)))).then(e=>f.mergeArray(n,e));let l=[...t.data].map((e,n)=>i.type._parseSync(new k(t,e,t.path,n)));return f.mergeArray(n,l)}get element(){return this._def.type}min(e,t){return new Y({...this._def,minLength:{value:e,message:tr.toString(t)}})}max(e,t){return new Y({...this._def,maxLength:{value:e,message:tr.toString(t)}})}length(e,t){return new Y({...this._def,exactLength:{value:e,message:tr.toString(t)}})}nonempty(e){return this.min(1,e)}}Y.create=(e,t)=>new Y({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ti.ZodArray,...T(t)});class G extends C{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=tt.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){let t=this._getType(e);if(t!==r.object){let n=this._getOrReturnCtx(e);return h(n,{code:a.invalid_type,expected:r.object,received:n.parsedType}),m}let{status:i,ctx:s}=this._processInputParams(e),{shape:o,keys:l}=this._getCached(),u=[];if(!(this._def.catchall instanceof H&&"strip"===this._def.unknownKeys))for(let c in s.data)l.includes(c)||u.push(c);let d=[];for(let p of l){let g=o[p],v=s.data[p];d.push({key:{status:"valid",value:p},value:g._parse(new k(s,v,s.path,p)),alwaysSet:p in s.data})}if(this._def.catchall instanceof H){let y=this._def.unknownKeys;if("passthrough"===y)for(let _ of u)d.push({key:{status:"valid",value:_},value:{status:"valid",value:s.data[_]}});else if("strict"===y)u.length>0&&(h(s,{code:a.unrecognized_keys,keys:u}),i.dirty());else if("strip"===y);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let b=this._def.catchall;for(let x of u){let w=s.data[x];d.push({key:{status:"valid",value:x},value:b._parse(new k(s,w,s.path,x)),alwaysSet:x in s.data})}}return s.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of d){let n=await t.key;e.push({key:n,value:await t.value,alwaysSet:t.alwaysSet})}return e}).then(e=>f.mergeObjectSync(i,e)):f.mergeObjectSync(i,d)}get shape(){return this._def.shape()}strict(e){return tr.errToObj,new G({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,i,a,s;let o=null!==(a=null===(i=(r=this._def).errorMap)||void 0===i?void 0:i.call(r,t,n).message)&&void 0!==a?a:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(s=tr.errToObj(e).message)&&void 0!==s?s:o}:{message:o}}}:{}})}strip(){return new G({...this._def,unknownKeys:"strip"})}passthrough(){return new G({...this._def,unknownKeys:"passthrough"})}extend(e){return new G({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){let t=new G({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:ti.ZodObject});return t}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new G({...this._def,catchall:e})}pick(e){let t={};return tt.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])}),new G({...this._def,shape:()=>t})}omit(e){let t={};return tt.objectKeys(this.shape).forEach(n=>{e[n]||(t[n]=this.shape[n])}),new G({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof G){let n={};for(let r in t.shape){let i=t.shape[r];n[r]=eh.create(e(i))}return new G({...t._def,shape:()=>n})}if(t instanceof Y)return new Y({...t._def,type:e(t.element)});if(t instanceof eh)return eh.create(e(t.unwrap()));if(t instanceof ef)return ef.create(e(t.unwrap()));if(t instanceof et)return et.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};return tt.objectKeys(this.shape).forEach(n=>{let r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()}),new G({...this._def,shape:()=>t})}required(e){let t={};return tt.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])t[n]=this.shape[n];else{let r=this.shape[n],i=r;for(;i instanceof eh;)i=i._def.innerType;t[n]=i}}),new G({...this._def,shape:()=>t})}keyof(){return el(tt.objectKeys(this.shape))}}G.create=(e,t)=>new G({shape:()=>e,unknownKeys:"strip",catchall:H.create(),typeName:ti.ZodObject,...T(t)}),G.strictCreate=(e,t)=>new G({shape:()=>e,unknownKeys:"strict",catchall:H.create(),typeName:ti.ZodObject,...T(t)}),G.lazycreate=(e,t)=>new G({shape:e,unknownKeys:"strip",catchall:H.create(),typeName:ti.ZodObject,...T(t)});class X extends C{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(function(e){for(let n of e)if("valid"===n.result.status)return n.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let i=e.map(e=>new o(e.ctx.common.issues));return h(t,{code:a.invalid_union,unionErrors:i}),m});{let r,i=[];for(let s of n){let l={...t,common:{...t.common,issues:[]},parent:null},u=s._parseSync({data:t.data,path:t.path,parent:l});if("valid"===u.status)return u;"dirty"!==u.status||r||(r={result:u,ctx:l}),l.common.issues.length&&i.push(l.common.issues)}if(r)return t.common.issues.push(...r.ctx.common.issues),r.result;let c=i.map(e=>new o(e));return h(t,{code:a.invalid_union,unionErrors:c}),m}}get options(){return this._def.options}}X.create=(e,t)=>new X({options:e,typeName:ti.ZodUnion,...T(t)});let J=e=>{if(e instanceof es)return J(e.schema);if(e instanceof ep)return J(e.innerType());if(e instanceof eo)return[e.value];if(e instanceof eu)return e.options;if(e instanceof ec)return Object.keys(e.enum);else if(e instanceof em)return J(e._def.innerType);else if(e instanceof B)return[void 0];else if(e instanceof U)return[null];else return null};class Q extends C{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==r.object)return h(t,{code:a.invalid_type,expected:r.object,received:t.parsedType}),m;let n=this.discriminator,i=t.data[n],s=this.optionsMap.get(i);return s?t.common.async?s._parseAsync({data:t.data,path:t.path,parent:t}):s._parseSync({data:t.data,path:t.path,parent:t}):(h(t,{code:a.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),m)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){let r=new Map;for(let i of t){let a=J(i.shape[e]);if(!a)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let s of a){if(r.has(s))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(s)}`);r.set(s,i)}}return new Q({typeName:ti.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...T(n)})}}class ee extends C{_parse(e){let{status:t,ctx:n}=this._processInputParams(e),s=(e,s)=>{if(y(e)||y(s))return m;let o=function e(t,n){let a=i(t),s=i(n);if(t===n)return{valid:!0,data:t};if(a===r.object&&s===r.object){let o=tt.objectKeys(n),l=tt.objectKeys(t).filter(e=>-1!==o.indexOf(e)),u={...t,...n};for(let c of l){let d=e(t[c],n[c]);if(!d.valid)return{valid:!1};u[c]=d.data}return{valid:!0,data:u}}if(a===r.array&&s===r.array){if(t.length!==n.length)return{valid:!1};let p=[];for(let h=0;h<t.length;h++){let f=t[h],m=n[h],g=e(f,m);if(!g.valid)return{valid:!1};p.push(g.data)}return{valid:!0,data:p}}if(a===r.date&&s===r.date&&+t==+n)return{valid:!0,data:t};return{valid:!1}}(e.value,s.value);return o.valid?((_(e)||_(s))&&t.dirty(),{status:t.value,value:o.data}):(h(n,{code:a.invalid_intersection_types}),m)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n}),]).then(([e,t])=>s(e,t)):s(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}ee.create=(e,t,n)=>new ee({left:e,right:t,typeName:ti.ZodIntersection,...T(n)});class et extends C{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==r.array)return h(n,{code:a.invalid_type,expected:r.array,received:n.parsedType}),m;if(n.data.length<this._def.items.length)return h(n,{code:a.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),m;let i=this._def.rest;!i&&n.data.length>this._def.items.length&&(h(n,{code:a.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let s=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new k(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(s).then(e=>f.mergeArray(t,e)):f.mergeArray(t,s)}get items(){return this._def.items}rest(e){return new et({...this._def,rest:e})}}et.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new et({items:e,typeName:ti.ZodTuple,rest:null,...T(t)})};class en extends C{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==r.object)return h(n,{code:a.invalid_type,expected:r.object,received:n.parsedType}),m;let i=[],s=this._def.keyType,o=this._def.valueType;for(let l in n.data)i.push({key:s._parse(new k(n,l,n.path,l)),value:o._parse(new k(n,n.data[l],n.path,l))});return n.common.async?f.mergeObjectAsync(t,i):f.mergeObjectSync(t,i)}get element(){return this._def.valueType}static create(e,t,n){return new en(t instanceof C?{keyType:e,valueType:t,typeName:ti.ZodRecord,...T(n)}:{keyType:M.create(),valueType:e,typeName:ti.ZodRecord,...T(t)})}}class er extends C{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==r.map)return h(n,{code:a.invalid_type,expected:r.map,received:n.parsedType}),m;let i=this._def.keyType,s=this._def.valueType,o=[...n.data.entries()].map(([e,t],r)=>({key:i._parse(new k(n,e,n.path,[r,"key"])),value:s._parse(new k(n,t,n.path,[r,"value"]))}));if(n.common.async){let l=new Map;return Promise.resolve().then(async()=>{for(let e of o){let n=await e.key,r=await e.value;if("aborted"===n.status||"aborted"===r.status)return m;("dirty"===n.status||"dirty"===r.status)&&t.dirty(),l.set(n.value,r.value)}return{status:t.value,value:l}})}{let u=new Map;for(let c of o){let d=c.key,p=c.value;if("aborted"===d.status||"aborted"===p.status)return m;("dirty"===d.status||"dirty"===p.status)&&t.dirty(),u.set(d.value,p.value)}return{status:t.value,value:u}}}}er.create=(e,t,n)=>new er({valueType:t,keyType:e,typeName:ti.ZodMap,...T(n)});class ei extends C{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==r.set)return h(n,{code:a.invalid_type,expected:r.set,received:n.parsedType}),m;let i=this._def;null!==i.minSize&&n.data.size<i.minSize.value&&(h(n,{code:a.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),t.dirty()),null!==i.maxSize&&n.data.size>i.maxSize.value&&(h(n,{code:a.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),t.dirty());let s=this._def.valueType;function o(e){let n=new Set;for(let r of e){if("aborted"===r.status)return m;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let l=[...n.data.values()].map((e,t)=>s._parse(new k(n,e,n.path,t)));return n.common.async?Promise.all(l).then(e=>o(e)):o(l)}min(e,t){return new ei({...this._def,minSize:{value:e,message:tr.toString(t)}})}max(e,t){return new ei({...this._def,maxSize:{value:e,message:tr.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ei.create=(e,t)=>new ei({valueType:e,minSize:null,maxSize:null,typeName:ti.ZodSet,...T(t)});class ea extends C{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==r.function)return h(t,{code:a.invalid_type,expected:r.function,received:t.parsedType}),m;function n(e,n){return p({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,u,l,].filter(e=>!!e),issueData:{code:a.invalid_arguments,argumentsError:n}})}function i(e,n){return p({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,u,l,].filter(e=>!!e),issueData:{code:a.invalid_return_type,returnTypeError:n}})}let s={errorMap:t.common.contextualErrorMap},c=t.data;return this._def.returns instanceof ed?v(async(...e)=>{let t=new o([]),r=await this._def.args.parseAsync(e,s).catch(r=>{throw t.addIssue(n(e,r)),t}),a=await c(...r),l=await this._def.returns._def.type.parseAsync(a,s).catch(e=>{throw t.addIssue(i(a,e)),t});return l}):v((...e)=>{let t=this._def.args.safeParse(e,s);if(!t.success)throw new o([n(e,t.error)]);let r=c(...t.data),a=this._def.returns.safeParse(r,s);if(!a.success)throw new o([i(r,a.error)]);return a.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new ea({...this._def,args:et.create(e).rest(W.create())})}returns(e){return new ea({...this._def,returns:e})}implement(e){let t=this.parse(e);return t}strictImplement(e){let t=this.parse(e);return t}static create(e,t,n){return new ea({args:e||et.create([]).rest(W.create()),returns:t||W.create(),typeName:ti.ZodFunction,...T(n)})}}class es extends C{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.getter();return n._parse({data:t.data,path:t.path,parent:t})}}es.create=(e,t)=>new es({getter:e,typeName:ti.ZodLazy,...T(t)});class eo extends C{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return h(t,{received:t.data,code:a.invalid_literal,expected:this._def.value}),m}return{status:"valid",value:e.data}}get value(){return this._def.value}}function el(e,t){return new eu({values:e,typeName:ti.ZodEnum,...T(t)})}eo.create=(e,t)=>new eo({value:e,typeName:ti.ZodLiteral,...T(t)});class eu extends C{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),n=this._def.values;return h(t,{expected:tt.joinValues(n),received:t.parsedType,code:a.invalid_type}),m}if(-1===this._def.values.indexOf(e.data)){let r=this._getOrReturnCtx(e),i=this._def.values;return h(r,{received:r.data,code:a.invalid_enum_value,options:i}),m}return v(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){return eu.create(e)}exclude(e){return eu.create(this.options.filter(t=>!e.includes(t)))}}eu.create=el;class ec extends C{_parse(e){let t=tt.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==r.string&&n.parsedType!==r.number){let i=tt.objectValues(t);return h(n,{expected:tt.joinValues(i),received:n.parsedType,code:a.invalid_type}),m}if(-1===t.indexOf(e.data)){let s=tt.objectValues(t);return h(n,{received:n.data,code:a.invalid_enum_value,options:s}),m}return v(e.data)}get enum(){return this._def.values}}ec.create=(e,t)=>new ec({values:e,typeName:ti.ZodNativeEnum,...T(t)});class ed extends C{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==r.promise&&!1===t.common.async)return h(t,{code:a.invalid_type,expected:r.promise,received:t.parsedType}),m;let n=t.parsedType===r.promise?t.data:Promise.resolve(t.data);return v(n.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}ed.create=(e,t)=>new ed({type:e,typeName:ti.ZodPromise,...T(t)});class ep extends C{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ti.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null;if("preprocess"===r.type){let i=r.transform(n.data);return n.common.async?Promise.resolve(i).then(e=>this._def.schema._parseAsync({data:e,path:n.path,parent:n})):this._def.schema._parseSync({data:i,path:n.path,parent:n})}let a={addIssue(e){h(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(a.addIssue=a.addIssue.bind(a),"refinement"===r.type){let s=e=>{let t=r.refinement(e,a);if(n.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!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>"aborted"===e.status?m:("dirty"===e.status&&t.dirty(),s(e.value).then(()=>({status:t.value,value:e.value}))));{let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===o.status?m:("dirty"===o.status&&t.dirty(),s(o.value),{status:t.value,value:o.value})}}if("transform"===r.type){if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>b(e)?Promise.resolve(r.transform(e.value,a)).then(e=>({status:t.value,value:e})):e);{let l=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!b(l))return l;let u=r.transform(l.value,a);if(u instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:u}}}tt.assertNever(r)}}ep.create=(e,t,n)=>new ep({schema:e,typeName:ti.ZodEffects,effect:t,...T(n)}),ep.createWithPreprocess=(e,t,n)=>new ep({schema:t,effect:{type:"preprocess",transform:e},typeName:ti.ZodEffects,...T(n)});class eh extends C{_parse(e){let t=this._getType(e);return t===r.undefined?v(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eh.create=(e,t)=>new eh({innerType:e,typeName:ti.ZodOptional,...T(t)});class ef extends C{_parse(e){let t=this._getType(e);return t===r.null?v(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ef.create=(e,t)=>new ef({innerType:e,typeName:ti.ZodNullable,...T(t)});class em extends C{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===r.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}em.create=(e,t)=>new em({innerType:e,typeName:ti.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...T(t)});class eg extends C{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return x(r)?r.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new o(n.common.issues)},input:n.data})})):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new o(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}eg.create=(e,t)=>new eg({innerType:e,typeName:ti.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...T(t)});class ev extends C{_parse(e){let t=this._getType(e);if(t!==r.nan){let n=this._getOrReturnCtx(e);return h(n,{code:a.invalid_type,expected:r.nan,received:n.parsedType}),m}return{status:"valid",value:e.data}}}ev.create=e=>new ev({typeName:ti.ZodNaN,...T(e)});let ey=Symbol("zod_brand");class e_ extends C{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class eb extends C{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async){let r=async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?m:"dirty"===e.status?(t.dirty(),g(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})};return r()}{let i=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===i.status?m:"dirty"===i.status?(t.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:n.path,parent:n})}}static create(e,t){return new eb({in:e,out:t,typeName:ti.ZodPipeline})}}let ex=(e,t={},n)=>e?q.create().superRefine((r,i)=>{var a,s;if(!e(r)){let o="function"==typeof t?t(r):"string"==typeof t?{message:t}:t,l=null===(s=null!==(a=o.fatal)&&void 0!==a?a:n)||void 0===s||s;i.addIssue({code:"custom",..."string"==typeof o?{message:o}:o,fatal:l})}}):q.create(),ek={object:G.lazycreate};(te=ti||(ti={})).ZodString="ZodString",te.ZodNumber="ZodNumber",te.ZodNaN="ZodNaN",te.ZodBigInt="ZodBigInt",te.ZodBoolean="ZodBoolean",te.ZodDate="ZodDate",te.ZodSymbol="ZodSymbol",te.ZodUndefined="ZodUndefined",te.ZodNull="ZodNull",te.ZodAny="ZodAny",te.ZodUnknown="ZodUnknown",te.ZodNever="ZodNever",te.ZodVoid="ZodVoid",te.ZodArray="ZodArray",te.ZodObject="ZodObject",te.ZodUnion="ZodUnion",te.ZodDiscriminatedUnion="ZodDiscriminatedUnion",te.ZodIntersection="ZodIntersection",te.ZodTuple="ZodTuple",te.ZodRecord="ZodRecord",te.ZodMap="ZodMap",te.ZodSet="ZodSet",te.ZodFunction="ZodFunction",te.ZodLazy="ZodLazy",te.ZodLiteral="ZodLiteral",te.ZodEnum="ZodEnum",te.ZodEffects="ZodEffects",te.ZodNativeEnum="ZodNativeEnum",te.ZodOptional="ZodOptional",te.ZodNullable="ZodNullable",te.ZodDefault="ZodDefault",te.ZodCatch="ZodCatch",te.ZodPromise="ZodPromise",te.ZodBranded="ZodBranded",te.ZodPipeline="ZodPipeline";let ew=(e,t={message:`Input not instance of ${e.name}`})=>ex(t=>t instanceof e,t),eT=M.create,eC=D.create,eE=ev.create,eS=z.create,eO=F.create,eR=V.create,eN=$.create,eP=B.create,eA=U.create,eI=q.create,ej=W.create,eZ=H.create,eM=K.create,eL=Y.create,eD=G.create,ez=G.strictCreate,eF=X.create,eV=Q.create,e$=ee.create,eB=et.create,eU=en.create,eq=er.create,eW=ei.create,eH=ea.create,eK=es.create,eY=eo.create,eG=eu.create,eX=ec.create,eJ=ed.create,eQ=ep.create,e0=eh.create,e1=ef.create,e2=ep.createWithPreprocess,e9=eb.create,e4=()=>eT().optional(),e3=()=>eC().optional(),e5=()=>eO().optional();var e8,e7,e6,te,tt,tn,tr,ti,ta=Object.freeze({__proto__:null,defaultErrorMap:l,setErrorMap:c,getErrorMap:d,makeIssue:p,EMPTY_PATH:[],addIssueToContext:h,ParseStatus:f,INVALID:m,DIRTY:g,OK:v,isAborted:y,isDirty:_,isValid:b,isAsync:x,get util(){return tt},get objectUtil(){return tn},ZodParsedType:r,getParsedType:i,ZodType:C,ZodString:M,ZodNumber:D,ZodBigInt:z,ZodBoolean:F,ZodDate:V,ZodSymbol:$,ZodUndefined:B,ZodNull:U,ZodAny:q,ZodUnknown:W,ZodNever:H,ZodVoid:K,ZodArray:Y,ZodObject:G,ZodUnion:X,ZodDiscriminatedUnion:Q,ZodIntersection:ee,ZodTuple:et,ZodRecord:en,ZodMap:er,ZodSet:ei,ZodFunction:ea,ZodLazy:es,ZodLiteral:eo,ZodEnum:eu,ZodNativeEnum:ec,ZodPromise:ed,ZodEffects:ep,ZodTransformer:ep,ZodOptional:eh,ZodNullable:ef,ZodDefault:em,ZodCatch:eg,ZodNaN:ev,BRAND:ey,ZodBranded:e_,ZodPipeline:eb,custom:ex,Schema:C,ZodSchema:C,late:ek,get ZodFirstPartyTypeKind(){return ti},coerce:{string:e=>M.create({...e,coerce:!0}),number:e=>D.create({...e,coerce:!0}),boolean:e=>F.create({...e,coerce:!0}),bigint:e=>z.create({...e,coerce:!0}),date:e=>V.create({...e,coerce:!0})},any:eI,array:eL,bigint:eS,boolean:eO,date:eR,discriminatedUnion:eV,effect:eQ,enum:eG,function:eH,instanceof:ew,intersection:e$,lazy:eK,literal:eY,map:eq,nan:eE,nativeEnum:eX,never:eZ,null:eA,nullable:e1,number:eC,object:eD,oboolean:e5,onumber:e3,optional:e0,ostring:e4,pipeline:e9,preprocess:e2,promise:eJ,record:eU,set:eW,strictObject:ez,string:eT,symbol:eN,transformer:eQ,tuple:eB,undefined:eP,union:eF,unknown:ej,void:eM,NEVER:m,ZodIssueCode:a,quotelessJson:s,ZodError:o}),ts=n(80832),to=n(19245);let tl=eV("status",[eD({status:eY("unclassified")}),eD({status:eY("published")}),eD({status:eY("release"),release_id:eT()}),eD({status:eY("archived")})]).and(eD({version_id:eT(),tags:eL(eT()),custom_type_label:eT(),preview_summary:eT().optional(),preview_image:eT().optional()})),tu=eD({id:eT(),custom_type_id:eT(),title:eT(),versions:eL(tl),locale:eT(),group_lang_id:eT()}),tc=eD({total:eC(),cursor:eT().optional(),results:eL(tu)});function td(e,t,n,r,i){let a=new URLSearchParams({limit:i.toString(),...t&&{cursor:t}});return(0,to.WY)(`${e}/documents?${a.toString()}&${r}`,{credentials:(0,to.xb)(n),okType:tc})}function tp(e){return e.reduce((e,t)=>{let n=t.values.map(e=>[t.name,e]);return e.concat(n)},[])}let th=eD({id:eT(),title:eT(),versions:ta.array(tl)});function tf(e,t,n){return(0,to.WY)(`${e}/documents/${n}`,{credentials:(0,to.xb)(t),okType:th})}let tm=eD({id:eT(),name:eT(),is_master:eO()}),tg=eD({simulator_url:eT().url().nullish(),languages:eL(tm).transform(e=>(0,ts.DY)(e,e=>e.name))});function tv(e,t){return(0,to.WY)(e,{credentials:(0,to.xb)(t),okType:tg})}let ty={unclassified:["unclassified","published"],archived:["unclassified","published"],release:["published"],published:["published"]}},34234:function(e,t,n){"use strict";function r(e,t){for(let n of e)if(t(n))return!0;return!1}function i(e,t){let n=new Set;for(let r of e.values())n.add(t(r));return n}function a(e){let t=e.values().next();if(!t.done)return t.value}function s(...e){return e.reduce((e,t)=>new Set([...e,...t]),new Set)}function o(e,t){for(let n of e)if(t(n))return n}n.d(t,{G:function(){return r},G0:function(){return s},Ps:function(){return a},UI:function(){return i},sE:function(){return o}})},68865:function(e,t,n){"use strict";n.d(t,{Fs:function(){return u},QT:function(){return a},U9:function(){return p},VA:function(){return s}});var r=n(2784),i=n(32001);function a(e,t){(function(e,t){let n=(0,i.NW)();(0,r.useEffect)(()=>{let r=l.getFetcherConfig(e).revalidationStrategy;if((null==r?void 0:r.type)!=="never"&&null!=r&&r.onFocus)return document.addEventListener("visibilitychange",i),()=>document.removeEventListener("visibilitychange",i);function i(){if("hidden"===document.visibilityState)return;let r=l.get(e,t);if(!r||"fetched"!==r.state)return;let i=e(...t);r.ok?l.set(e,t,{state:"revalidating",promise:i,ok:!0,body:r.body}):l.set(e,t,{state:"revalidating",promise:i,ok:!1,error:r.error}),o(e,t,i).then(n).catch(()=>null)}})})(e,t),function(e,t){let n=(0,i.NW)(),a=c(e,t);(0,r.useEffect)(()=>{function t(t,r){if(e!==t)return;let i=c(e,r);a===i&&n()}return d.push(t),()=>{let e=d.indexOf(t);d.splice(e,1)}},[e,n,a])}(e,t),function(e,t){let n=(0,r.useContext)(p);if(!n){console.warn("It is not recommended to use editor-support->Suspense without a editor-ui->ErrorBoundary above it.");return}n.registerRequest(e,t)}(e,t);let n=l.get(e,t);if(!n)throw function(e,t){let n=e(...t);return l.set(e,t,{state:"fetching",promise:n}),o(e,t,n).catch(()=>null),n}(e,t);if("fetching"===n.state)throw n.promise;if(n.ok)return n.body;throw n.error}function s(e,t,n,r){let{notify:i=!0}=r??{};l.set(e,t,{state:"fetched",ok:!0,body:n}),i&&d.forEach(n=>n(e,t))}function o(e,t,n){return n.then(n=>l.set(e,t,{state:"fetched",ok:!0,body:n})).catch(n=>l.set(e,t,{state:"fetched",ok:!1,error:n}))}let l=function(){let e=new Map,t=new Map,n={cacheCapacity:500,revalidationStrategy:{type:"swr",onFocus:!0}};function r(t){return e.get(t)??n}return{get(e,n){let r=c(e,n),i=t.get(e);if(!i||!i.has(r))return;let a=i.get(r);return i.delete(r),void 0!==a&&i.set(r,a),a},set(e,n,i){let a=t.get(e);a||(a=new Map,t.set(e,a));let s=r(e),o=c(e,n);a.size!==s.cacheCapacity||a.has(o)||a.delete(a.keys().next().value),a.set(o,i)},has(e,n){let r=c(e,n),i=t.get(e),a=null==i?void 0:i.get(r);if(!a)return!1;let s="fetched"===a.state,o="revalidating"===a.state&&a.ok;return s||o},getFetcherConfig:r,registerFetcherConfig(t,n){e.set(t,n)},clear(e,n){let r=t.get(e);if(!r)return;let i=c(e,n);r.delete(i)},clearAll(){t.clear()}}}(),u=l;function c(e,t){let n=e.length-t.length;if(0===n)return t.join(`
|
|
2
2
|
`);let r=[...t];for(let i=0;i<n;i++)r.push(void 0);return r.join(`
|
|
3
|
-
`)}let d=[],p=(0,r.createContext)(void 0)},97867:function(e,t,n){"use strict";function r(e){return null!=e}n.d(t,{$:function(){return r}})},55798:function(e,t,n){"use strict";function r(e){return e.charAt(0).toUpperCase()+e.slice(1)}function i(e){try{return new URL(e)}catch{return}}function a(e){try{return e.host.split(".").slice(0,-1).filter(e=>"www"!==e).map(r).at(0)??""}catch{return""}}n.d(t,{S:function(){return a},j:function(){return i}})},34821:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,(r=n=t.ElementType||(t.ElementType={})).Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype",t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},79959:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var a=n(34821),s=n(75538);i(n(75538),t);var o={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,n){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=o),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:o,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?a.ElementType.Tag:void 0,r=new s.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===a.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new s.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===a.ElementType.Comment){this.lastNode.data+=e;return}var t=new s.Comment(e);this.addNode(t),this.lastNode=t},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new s.Text(""),t=new s.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new s.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},75538:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var s=n(34821),o=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),k(this,e)},e}();t.Node=o;var l=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return i(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(o);t.DataNode=l;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.Text,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(l);t.Text=u;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.Comment,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(l);t.Comment=c;var d=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=s.ElementType.Directive,r}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(l);t.ProcessingInstruction=d;var p=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return i(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(o);t.NodeWithChildren=p;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.CDATA,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=h;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.Root,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=f;var m=function(e){function t(t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===t?s.ElementType.Script:"style"===t?s.ElementType.Style:s.ElementType.Tag);var a=e.call(this,r)||this;return a.name=t,a.attribs=n,a.type=i,a}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map(function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}})},enumerable:!1,configurable:!0}),t}(p);function y(e){return(0,s.isTag)(e)}function g(e){return e.type===s.ElementType.CDATA}function v(e){return e.type===s.ElementType.Text}function _(e){return e.type===s.ElementType.Comment}function b(e){return e.type===s.ElementType.Directive}function x(e){return e.type===s.ElementType.Root}function k(e,t){if(void 0===t&&(t=!1),v(e))n=new u(e.data);else if(_(e))n=new c(e.data);else if(y(e)){var n,r=t?w(e.children):[],i=new m(e.name,a({},e.attribs),r);r.forEach(function(e){return e.parent=i}),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=a({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=a({},e["x-attribsPrefix"])),n=i}else if(g(e)){var r=t?w(e.children):[],s=new h(r);r.forEach(function(e){return e.parent=s}),n=s}else if(x(e)){var r=t?w(e.children):[],o=new f(r);r.forEach(function(e){return e.parent=o}),e["x-mode"]&&(o["x-mode"]=e["x-mode"]),n=o}else if(b(e)){var l=new d(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),n=l}else throw Error("Not implemented yet: ".concat(e.type));return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function w(e){for(var t=e.map(function(e){return k(e,!0)}),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=m,t.isTag=y,t.isCDATA=g,t.isText=v,t.isComment=_,t.isDirective=b,t.isDocument=x,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=k},8401:function(e,t){t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussainBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]},58166:function(e){var t,n="html",r="head",i="body",a=/<([a-zA-Z]+[0-9]?)/,s=/<head[^]*>/i,o=/<body[^]*>/i,l=function(){throw Error("This browser does not support `document.implementation.createHTMLDocument`")},u=function(){throw Error("This browser does not support `DOMParser.prototype.parseFromString`")},c="object"==typeof window&&window.DOMParser;if("function"==typeof c){var d=new c;l=u=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),d.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var p=document.implementation.createHTMLDocument();l=function(e,t){return t?(p.documentElement.querySelector(t).innerHTML=e,p):(p.documentElement.innerHTML=e,p)}}var h="object"==typeof document?document.createElement("template"):{};h.content&&(t=function(e){return h.innerHTML=e,h.content.childNodes}),e.exports=function(e){var c,d,p,h,f=e.match(a);switch(f&&f[1]&&(c=f[1].toLowerCase()),c){case n:return d=u(e),!s.test(e)&&(p=d.querySelector(r))&&p.parentNode.removeChild(p),!o.test(e)&&(p=d.querySelector(i))&&p.parentNode.removeChild(p),d.querySelectorAll(n);case r:case i:if(h=(d=l(e)).querySelectorAll(c),o.test(e)&&s.test(e))return h[0].parentNode.childNodes;return h;default:if(t)return t(e);return(p=l(e,i).querySelector(i)).childNodes}}},50307:function(e,t,n){var r=n(58166),i=n(41594).formatDOM,a=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw TypeError("First argument must be a string");if(""===e)return[];var t,n=e.match(a);return n&&n[1]&&(t=n[1]),i(r(e),null,t)}},41594:function(e,t,n){for(var r,i=n(79959),a=n(8401).CASE_SENSITIVE_TAG_NAMES,s=i.Comment,o=i.Element,l=i.ProcessingInstruction,u=i.Text,c={},d=0,p=a.length;d<p;d++)c[(r=a[d]).toLowerCase()]=r;function h(e){for(var t,n={},r=0,i=e.length;r<i;r++)n[(t=e[r]).name]=t.value;return n}function f(e){var t,n=c[t=e=e.toLowerCase()];return n||e}t.formatAttributes=h,t.formatDOM=function e(t,n,r){n=n||null;for(var i=[],a=0,c=t.length;a<c;a++){var d,p,m=t[a];switch(m.nodeType){case 1:d=f(m.nodeName),(p=new o(d,h(m.attributes))).children=e("template"===d?m.content.childNodes:m.childNodes,p);break;case 3:p=new u(m.nodeValue);break;case 8:p=new s(m.nodeValue);break;default:continue}var y=i[a-1]||null;y&&(y.next=p),p.parent=n,p.prev=y,p.next=null,i.push(p)}return r&&((p=new l(r.substring(0,r.indexOf(" ")).toLowerCase(),r)).next=i[0]||null,p.parent=n,i.unshift(p),i[1]&&(i[1].prev=i[0])),i}},72670:function(e,t,n){var r=n(79959),i=n(50307),a=n(13683),s=n(69239);i="function"==typeof i.default?i.default:i;var o={lowerCaseAttributeNames:!1};function l(e,t){if("string"!=typeof e)throw TypeError("First argument must be a string");return""===e?[]:s(i(e,(t=t||{}).htmlparser2||o),t)}l.domToReact=s,l.htmlToDOM=i,l.attributesToProps=a,l.Comment=r.Comment,l.Element=r.Element,l.ProcessingInstruction=r.ProcessingInstruction,l.Text=r.Text,e.exports=l,l.default=l},13683:function(e,t,n){var r=n(18701),i=n(54848),a=["checked","value"],s=["input","select","textarea"],o={reset:!0,submit:!0};function l(e){return r.possibleStandardNames[e]}e.exports=function(e,t){var n,u,c,d,p,h={},f=(e=e||{}).type&&o[e.type];for(n in e){if(c=e[n],r.isCustomAttribute(n)){h[n]=c;continue}if(d=l(u=n.toLowerCase())){switch(p=r.getPropertyInfo(d),-1===a.indexOf(d)||-1===s.indexOf(t)||f||(d=l("default"+u)),h[d]=c,p&&p.type){case r.BOOLEAN:h[d]=!0;break;case r.OVERLOADED_BOOLEAN:""===c&&(h[d]=!0)}continue}i.PRESERVE_CUSTOM_ATTRIBUTES&&(h[n]=c)}return i.setStyleProp(e.style,h),h}},69239:function(e,t,n){var r=n(2784),i=n(13683),a=n(54848),s=a.setStyleProp,o=a.canTextBeChildOfNode;function l(e){return a.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&a.isCustomComponent(e.name,e.attribs)}e.exports=function e(t,n){for(var a,u,c,d,p,h=(n=n||{}).library||r,f=h.cloneElement,m=h.createElement,y=h.isValidElement,g=[],v="function"==typeof n.replace,_=n.trim,b=0,x=t.length;b<x;b++){if(a=t[b],v&&y(c=n.replace(a))){x>1&&(c=f(c,{key:c.key||b})),g.push(c);continue}if("text"===a.type){if((u=!a.data.trim().length)&&a.parent&&!o(a.parent)||_&&u)continue;g.push(a.data);continue}switch(d=a.attribs,l(a)?s(d.style,d):d&&(d=i(d,a.name)),p=null,a.type){case"script":case"style":a.children[0]&&(d.dangerouslySetInnerHTML={__html:a.children[0].data});break;case"tag":"textarea"===a.name&&a.children[0]?d.defaultValue=a.children[0].data:a.children&&a.children.length&&(p=e(a.children,n));break;default:continue}x>1&&(d.key=b),g.push(m(a.name,d,p))}return 1===g.length?g[0]:g}},54848:function(e,t,n){var r=n(2784),i=n(91618).default,a={reactCompat:!0},s=r.version.split(".")[0]>=16,o=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:s,invertObject:function(e,t){if(!e||"object"!=typeof e)throw TypeError("First argument must be an object");var n,r,i="function"==typeof t,a={},s={};for(n in e){if(r=e[n],i&&(a=t(n,r))&&2===a.length){s[a[0]]=a[1];continue}"string"==typeof r&&(s[r]=n)}return s},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!=e)try{t.style=i(e,a)}catch(n){t.style={}}},canTextBeChildOfNode:function(e){return!o.has(e.name)},elementsWithNoTextChildren:o}},6299:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e){return e?e.replace(l,""):""}e.exports=function(e,l){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];l=l||{};var c=1,d=1;function p(e){var t=e.match(n);t&&(c+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function h(){var e={line:c,column:d};return function(t){return t.position=new f(e),v(),t}}function f(e){this.start=e,this.end={line:c,column:d},this.source=l.source}f.prototype.content=e;var m=[];function y(t){var n=Error(l.source+":"+c+":"+d+": "+t);if(n.reason=t,n.filename=l.source,n.line=c,n.column=d,n.source=e,l.silent)m.push(n);else throw n}function g(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function v(){g(r)}function _(e){var t;for(e=e||[];t=b();)!1!==t&&e.push(t);return e}function b(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return y("End of comment missing");var r=e.slice(2,n-2);return d+=2,p(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}function x(){var e=h(),n=g(i);if(n){if(b(),!g(a))return y("property missing ':'");var r=g(s),l=e({type:"declaration",property:u(n[0].replace(t,"")),value:r?u(r[0].replace(t,"")):""});return g(o),l}}return v(),function(){var e,t=[];for(_(t);e=x();)!1!==e&&(t.push(e),_(t));return t}()}},18701:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t,n,r,i,a,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=s}Object.defineProperty(t,"__esModule",{value:!0});var a={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(function(e){a[e]=new i(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t,n,s=function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],s=!0,o=!1;try{for(i=i.call(e);!(s=(n=i.next()).done)&&(a.push(n.value),!t||a.length!==t);s=!0);}catch(l){o=!0,r=l}finally{try{s||null==i.return||i.return()}finally{if(o)throw r}}return a}}(e,2)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=s[0],l=s[1];a[o]=new i(o,1,!1,l,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){a[e]=new i(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){a[e]=new i(e,2,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(e){a[e]=new i(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){a[e]=new i(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){a[e]=new i(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){a[e]=new i(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){a[e]=new i(e,5,!1,e.toLowerCase(),null,!1,!1)});var s=/[\-\:]([a-z])/g,o=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(e){var t=e.replace(s,o);a[t]=new i(t,1,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(s,o);a[t]=new i(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(s,o);a[t]=new i(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){a[e]=new i(e,1,!1,e.toLowerCase(),null,!1,!1)}),a.xlinkHref=new i("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){a[e]=new i(e,1,!1,e.toLowerCase(),null,!0,!0)});var l=n(52558),u=l.CAMELCASE,c=l.SAME,d=l.possibleStandardNames,p=RegExp.prototype.test.bind(RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),h=Object.keys(d).reduce(function(e,t){var n=d[t];return n===c?e[t]=t:n===u?e[t.toLowerCase()]=t:e[t]=n,e},{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return a.hasOwnProperty(e)?a[e]:null},t.isCustomAttribute=p,t.possibleStandardNames=h},52558:function(e,t){t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},91618:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var i=r(n(85653)),a=n(31380);t.default=function(e,t){var n={};return e&&"string"==typeof e&&(0,i.default)(e,function(e,r){e&&r&&(n[(0,a.camelCase)(e,t)]=r)}),n}},31380:function(e,t){"use strict";t.__esModule=!0,t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,o=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")},u=function(e,t){var u;return(void 0===t&&(t={}),!(u=e)||i.test(u)||n.test(u))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(s,l):e.replace(a,l)).replace(r,o))};t.camelCase=u},85653:function(e,t,n){var r=n(6299);function i(e,t){var n,i,a,s=null;if(!e||"string"!=typeof e)return s;for(var o=r(e),l="function"==typeof t,u=0,c=o.length;u<c;u++)i=(n=o[u]).property,a=n.value,l?t(i,a,n):a&&(s||(s={}),s[i]=a);return s}e.exports=i,e.exports.default=i},86741:function(e,t,n){"use strict";n.d(t,{W_:function(){return a},du:function(){return i}});var r=n(72670),i=r.domToReact;r.htmlToDOM,r.attributesToProps,r.Comment;var a=r.Element;r.ProcessingInstruction,r.Text,t.ZP=r},33402:function(e,t,n){"use strict";function r(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}n.d(t,{Z:function(){return r}})}}]);
|
|
3
|
+
`)}let d=[],p=(0,r.createContext)(void 0)},97867:function(e,t,n){"use strict";function r(e){return null!=e}n.d(t,{$:function(){return r}})},55798:function(e,t,n){"use strict";function r(e){return e.charAt(0).toUpperCase()+e.slice(1)}function i(e){try{return new URL(e)}catch{return}}function a(e){try{return e.host.split(".").slice(0,-1).filter(e=>"www"!==e).map(r).at(0)??""}catch{return""}}n.d(t,{S:function(){return a},j:function(){return i}})},34821:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,(r=n=t.ElementType||(t.ElementType={})).Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype",t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},79959:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var a=n(34821),s=n(75538);i(n(75538),t);var o={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,n){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=o),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:o,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?a.ElementType.Tag:void 0,r=new s.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===a.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new s.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===a.ElementType.Comment){this.lastNode.data+=e;return}var t=new s.Comment(e);this.addNode(t),this.lastNode=t},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new s.Text(""),t=new s.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new s.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},75538:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var s=n(34821),o=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),k(this,e)},e}();t.Node=o;var l=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return i(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(o);t.DataNode=l;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.Text,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(l);t.Text=u;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.Comment,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(l);t.Comment=c;var d=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=s.ElementType.Directive,r}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(l);t.ProcessingInstruction=d;var p=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return i(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(o);t.NodeWithChildren=p;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.CDATA,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=h;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.Root,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=f;var m=function(e){function t(t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===t?s.ElementType.Script:"style"===t?s.ElementType.Style:s.ElementType.Tag);var a=e.call(this,r)||this;return a.name=t,a.attribs=n,a.type=i,a}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map(function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}})},enumerable:!1,configurable:!0}),t}(p);function g(e){return(0,s.isTag)(e)}function v(e){return e.type===s.ElementType.CDATA}function y(e){return e.type===s.ElementType.Text}function _(e){return e.type===s.ElementType.Comment}function b(e){return e.type===s.ElementType.Directive}function x(e){return e.type===s.ElementType.Root}function k(e,t){if(void 0===t&&(t=!1),y(e))n=new u(e.data);else if(_(e))n=new c(e.data);else if(g(e)){var n,r=t?w(e.children):[],i=new m(e.name,a({},e.attribs),r);r.forEach(function(e){return e.parent=i}),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=a({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=a({},e["x-attribsPrefix"])),n=i}else if(v(e)){var r=t?w(e.children):[],s=new h(r);r.forEach(function(e){return e.parent=s}),n=s}else if(x(e)){var r=t?w(e.children):[],o=new f(r);r.forEach(function(e){return e.parent=o}),e["x-mode"]&&(o["x-mode"]=e["x-mode"]),n=o}else if(b(e)){var l=new d(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),n=l}else throw Error("Not implemented yet: ".concat(e.type));return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function w(e){for(var t=e.map(function(e){return k(e,!0)}),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=m,t.isTag=g,t.isCDATA=v,t.isText=y,t.isComment=_,t.isDirective=b,t.isDocument=x,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=k},8401:function(e,t){t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussainBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]},58166:function(e){var t,n="html",r="head",i="body",a=/<([a-zA-Z]+[0-9]?)/,s=/<head[^]*>/i,o=/<body[^]*>/i,l=function(){throw Error("This browser does not support `document.implementation.createHTMLDocument`")},u=function(){throw Error("This browser does not support `DOMParser.prototype.parseFromString`")},c="object"==typeof window&&window.DOMParser;if("function"==typeof c){var d=new c;l=u=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),d.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var p=document.implementation.createHTMLDocument();l=function(e,t){return t?(p.documentElement.querySelector(t).innerHTML=e,p):(p.documentElement.innerHTML=e,p)}}var h="object"==typeof document?document.createElement("template"):{};h.content&&(t=function(e){return h.innerHTML=e,h.content.childNodes}),e.exports=function(e){var c,d,p,h,f=e.match(a);switch(f&&f[1]&&(c=f[1].toLowerCase()),c){case n:return d=u(e),!s.test(e)&&(p=d.querySelector(r))&&p.parentNode.removeChild(p),!o.test(e)&&(p=d.querySelector(i))&&p.parentNode.removeChild(p),d.querySelectorAll(n);case r:case i:if(h=(d=l(e)).querySelectorAll(c),o.test(e)&&s.test(e))return h[0].parentNode.childNodes;return h;default:if(t)return t(e);return(p=l(e,i).querySelector(i)).childNodes}}},50307:function(e,t,n){var r=n(58166),i=n(41594).formatDOM,a=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw TypeError("First argument must be a string");if(""===e)return[];var t,n=e.match(a);return n&&n[1]&&(t=n[1]),i(r(e),null,t)}},41594:function(e,t,n){for(var r,i=n(79959),a=n(8401).CASE_SENSITIVE_TAG_NAMES,s=i.Comment,o=i.Element,l=i.ProcessingInstruction,u=i.Text,c={},d=0,p=a.length;d<p;d++)c[(r=a[d]).toLowerCase()]=r;function h(e){for(var t,n={},r=0,i=e.length;r<i;r++)n[(t=e[r]).name]=t.value;return n}function f(e){var t,n=c[t=e=e.toLowerCase()];return n||e}t.formatAttributes=h,t.formatDOM=function e(t,n,r){n=n||null;for(var i=[],a=0,c=t.length;a<c;a++){var d,p,m=t[a];switch(m.nodeType){case 1:d=f(m.nodeName),(p=new o(d,h(m.attributes))).children=e("template"===d?m.content.childNodes:m.childNodes,p);break;case 3:p=new u(m.nodeValue);break;case 8:p=new s(m.nodeValue);break;default:continue}var g=i[a-1]||null;g&&(g.next=p),p.parent=n,p.prev=g,p.next=null,i.push(p)}return r&&((p=new l(r.substring(0,r.indexOf(" ")).toLowerCase(),r)).next=i[0]||null,p.parent=n,i.unshift(p),i[1]&&(i[1].prev=i[0])),i}},72670:function(e,t,n){var r=n(79959),i=n(50307),a=n(13683),s=n(69239);i="function"==typeof i.default?i.default:i;var o={lowerCaseAttributeNames:!1};function l(e,t){if("string"!=typeof e)throw TypeError("First argument must be a string");return""===e?[]:s(i(e,(t=t||{}).htmlparser2||o),t)}l.domToReact=s,l.htmlToDOM=i,l.attributesToProps=a,l.Comment=r.Comment,l.Element=r.Element,l.ProcessingInstruction=r.ProcessingInstruction,l.Text=r.Text,e.exports=l,l.default=l},13683:function(e,t,n){var r=n(18701),i=n(54848),a=["checked","value"],s=["input","select","textarea"],o={reset:!0,submit:!0};function l(e){return r.possibleStandardNames[e]}e.exports=function(e,t){var n,u,c,d,p,h={},f=(e=e||{}).type&&o[e.type];for(n in e){if(c=e[n],r.isCustomAttribute(n)){h[n]=c;continue}if(d=l(u=n.toLowerCase())){switch(p=r.getPropertyInfo(d),-1===a.indexOf(d)||-1===s.indexOf(t)||f||(d=l("default"+u)),h[d]=c,p&&p.type){case r.BOOLEAN:h[d]=!0;break;case r.OVERLOADED_BOOLEAN:""===c&&(h[d]=!0)}continue}i.PRESERVE_CUSTOM_ATTRIBUTES&&(h[n]=c)}return i.setStyleProp(e.style,h),h}},69239:function(e,t,n){var r=n(2784),i=n(13683),a=n(54848),s=a.setStyleProp,o=a.canTextBeChildOfNode;function l(e){return a.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&a.isCustomComponent(e.name,e.attribs)}e.exports=function e(t,n){for(var a,u,c,d,p,h=(n=n||{}).library||r,f=h.cloneElement,m=h.createElement,g=h.isValidElement,v=[],y="function"==typeof n.replace,_=n.trim,b=0,x=t.length;b<x;b++){if(a=t[b],y&&g(c=n.replace(a))){x>1&&(c=f(c,{key:c.key||b})),v.push(c);continue}if("text"===a.type){if((u=!a.data.trim().length)&&a.parent&&!o(a.parent)||_&&u)continue;v.push(a.data);continue}switch(d=a.attribs,l(a)?s(d.style,d):d&&(d=i(d,a.name)),p=null,a.type){case"script":case"style":a.children[0]&&(d.dangerouslySetInnerHTML={__html:a.children[0].data});break;case"tag":"textarea"===a.name&&a.children[0]?d.defaultValue=a.children[0].data:a.children&&a.children.length&&(p=e(a.children,n));break;default:continue}x>1&&(d.key=b),v.push(m(a.name,d,p))}return 1===v.length?v[0]:v}},54848:function(e,t,n){var r=n(2784),i=n(91618).default,a={reactCompat:!0},s=r.version.split(".")[0]>=16,o=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:s,invertObject:function(e,t){if(!e||"object"!=typeof e)throw TypeError("First argument must be an object");var n,r,i="function"==typeof t,a={},s={};for(n in e){if(r=e[n],i&&(a=t(n,r))&&2===a.length){s[a[0]]=a[1];continue}"string"==typeof r&&(s[r]=n)}return s},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}},setStyleProp:function(e,t){if(null!=e)try{t.style=i(e,a)}catch(n){t.style={}}},canTextBeChildOfNode:function(e){return!o.has(e.name)},elementsWithNoTextChildren:o}},6299:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e){return e?e.replace(l,""):""}e.exports=function(e,l){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];l=l||{};var c=1,d=1;function p(e){var t=e.match(n);t&&(c+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function h(){var e={line:c,column:d};return function(t){return t.position=new f(e),y(),t}}function f(e){this.start=e,this.end={line:c,column:d},this.source=l.source}f.prototype.content=e;var m=[];function g(t){var n=Error(l.source+":"+c+":"+d+": "+t);if(n.reason=t,n.filename=l.source,n.line=c,n.column=d,n.source=e,l.silent)m.push(n);else throw n}function v(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function y(){v(r)}function _(e){var t;for(e=e||[];t=b();)!1!==t&&e.push(t);return e}function b(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return g("End of comment missing");var r=e.slice(2,n-2);return d+=2,p(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}function x(){var e=h(),n=v(i);if(n){if(b(),!v(a))return g("property missing ':'");var r=v(s),l=e({type:"declaration",property:u(n[0].replace(t,"")),value:r?u(r[0].replace(t,"")):""});return v(o),l}}return y(),function(){var e,t=[];for(_(t);e=x();)!1!==e&&(t.push(e),_(t));return t}()}},18701:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t,n,r,i,a,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=s}Object.defineProperty(t,"__esModule",{value:!0});var a={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(function(e){a[e]=new i(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t,n,s=function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],s=!0,o=!1;try{for(i=i.call(e);!(s=(n=i.next()).done)&&(a.push(n.value),!t||a.length!==t);s=!0);}catch(l){o=!0,r=l}finally{try{s||null==i.return||i.return()}finally{if(o)throw r}}return a}}(e,2)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=s[0],l=s[1];a[o]=new i(o,1,!1,l,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){a[e]=new i(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){a[e]=new i(e,2,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(e){a[e]=new i(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){a[e]=new i(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){a[e]=new i(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){a[e]=new i(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){a[e]=new i(e,5,!1,e.toLowerCase(),null,!1,!1)});var s=/[\-\:]([a-z])/g,o=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(e){var t=e.replace(s,o);a[t]=new i(t,1,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(s,o);a[t]=new i(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(s,o);a[t]=new i(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){a[e]=new i(e,1,!1,e.toLowerCase(),null,!1,!1)}),a.xlinkHref=new i("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){a[e]=new i(e,1,!1,e.toLowerCase(),null,!0,!0)});var l=n(52558),u=l.CAMELCASE,c=l.SAME,d=l.possibleStandardNames,p=RegExp.prototype.test.bind(RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),h=Object.keys(d).reduce(function(e,t){var n=d[t];return n===c?e[t]=t:n===u?e[t.toLowerCase()]=t:e[t]=n,e},{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return a.hasOwnProperty(e)?a[e]:null},t.isCustomAttribute=p,t.possibleStandardNames=h},52558:function(e,t){t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},58831:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowContainer=void 0;var i=n(52322),a=n(2784),s=n(64379),o=function(e){var t=e.childRect,n=e.popoverRect,o=e.position,l=e.arrowColor,u=e.arrowSize,c=e.arrowClassName,d=e.arrowStyle,p=e.className,h=e.children,f=e.style,m=s.useArrowContainer({childRect:t,popoverRect:n,position:o,arrowColor:l,arrowSize:u}),g=m.arrowContainerStyle,v=m.arrowStyle,y=a.useMemo(function(){return r(r({},g),f)},[g,f]),_=a.useMemo(function(){return r(r({},v),d)},[v,d]);return i.jsxs("div",r({className:p,style:y},{children:[i.jsx("div",{style:_,className:c},void 0),h]}),void 0)};t.ArrowContainer=o},19909:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Popover=t.usePopover=t.ArrowContainer=t.useArrowContainer=void 0;var i=n(52322),a=n(2784),s=n(44635),o=n(27574),l=n(61462);Object.defineProperty(t,"usePopover",{enumerable:!0,get:function(){return l.usePopover}});var u=n(70414),c=n(64379);Object.defineProperty(t,"useArrowContainer",{enumerable:!0,get:function(){return c.useArrowContainer}});var d=n(58831);Object.defineProperty(t,"ArrowContainer",{enumerable:!0,get:function(){return d.ArrowContainer}});var p=["top","left","right","bottom"],h=a.forwardRef(function(e,t){var n=e.isOpen,c=e.children,d=e.content,h=e.positions,f=e.align,m=void 0===f?"center":f,g=e.padding,v=void 0===g?0:g,y=e.reposition,_=void 0===y||y,b=e.parentElement,x=void 0===b?window.document.body:b,k=e.boundaryElement,w=e.containerClassName,T=e.containerStyle,C=e.contentLocation,E=e.boundaryInset,S=void 0===E?0:E,O=e.onClickOutside,R=e.clickOutsideCapture,N=void 0!==R&&R,P=u.useMemoizedArray(void 0===h?p:h),A=a.useRef(!1),I=a.useRef(),j=a.useRef(),Z=a.useRef(_),M=a.useRef(),L=a.useState({align:m,nudgedLeft:0,nudgedTop:0,position:P[0],padding:v,childRect:o.EMPTY_CLIENT_RECT,popoverRect:o.EMPTY_CLIENT_RECT,parentRect:o.EMPTY_CLIENT_RECT,boundaryRect:o.EMPTY_CLIENT_RECT,boundaryInset:S,violations:o.EMPTY_CLIENT_RECT,hasViolations:!1}),D=L[0],z=L[1],F=a.useCallback(function(e){return z(e)},[]),V=l.usePopover({isOpen:n,childRef:M,containerClassName:void 0===w?"react-tiny-popover-container":w,parentElement:x,boundaryElement:void 0===k?x:k,contentLocation:C,positions:P,align:m,padding:v,boundaryInset:S,reposition:_,onPositionPopover:F}),$=V.positionPopover,B=V.popoverRef,U=V.scoutRef;a.useLayoutEffect(function(){var e=!0,t=function(){var r,i;if(n&&e){var a=null===(r=null==M?void 0:M.current)||void 0===r?void 0:r.getBoundingClientRect(),s=null===(i=null==B?void 0:B.current)||void 0===i?void 0:i.getBoundingClientRect();null==a||null==s||o.rectsAreEqual(a,{top:D.childRect.top,left:D.childRect.left,width:D.childRect.width,height:D.childRect.height,bottom:D.childRect.top+D.childRect.height,right:D.childRect.left+D.childRect.width})&&s.width===D.popoverRect.width&&s.height===D.popoverRect.height&&D.padding===v&&D.align===m&&P===I.current&&C===j.current&&_===Z.current||$(),P!==I.current&&(I.current=P),C!==j.current&&(j.current=C),_!==Z.current&&(Z.current=_),e&&window.requestAnimationFrame(t)}A.current=n};return window.requestAnimationFrame(t),function(){e=!1}},[m,C,n,v,B,D.align,D.childRect.height,D.childRect.left,D.childRect.top,D.childRect.width,D.padding,D.popoverRect.height,D.popoverRect.width,$,P,_,]),a.useEffect(function(){var e=B.current;return Object.assign(e.style,T),function(){Object.keys(null!=T?T:{}).forEach(function(t){return delete e.style[t]})}},[T,n,B]);var q=a.useCallback(function(e){var t,r;!n||(null===(t=B.current)||void 0===t?void 0:t.contains(e.target))||(null===(r=M.current)||void 0===r?void 0:r.contains(e.target))||null==O||O(e)},[n,O,B]),W=a.useCallback(function(){M.current&&window.requestAnimationFrame(function(){return $()})},[$]);a.useEffect(function(){var e=x.ownerDocument.body;return e.addEventListener("click",q,N),e.addEventListener("contextmenu",q,N),e.addEventListener("resize",W),function(){e.removeEventListener("click",q,N),e.removeEventListener("contextmenu",q,N),e.removeEventListener("resize",W)}},[N,q,W,x]);var H=a.useCallback(function(e){M.current=e,null!=t&&("object"==typeof t?t.current=e:"function"==typeof t&&t(e))},[t]);return i.jsxs(i.Fragment,{children:[a.cloneElement(c,{ref:H}),n?i.jsx(s.PopoverPortal,r({element:B.current,scoutElement:U.current,container:x},{children:"function"==typeof d?d(D):d}),void 0):null]},void 0)});t.Popover=a.forwardRef(function(e,t){return"undefined"==typeof window?e.children:i.jsx(h,r({},e,{ref:t}),void 0)})},44635:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PopoverPortal=void 0;var r=n(2784),i=n(28316),a=function(e){var t=e.container,n=e.element,a=e.scoutElement,s=e.children;return r.useLayoutEffect(function(){return t.appendChild(n),t.appendChild(a),function(){t.removeChild(n),t.removeChild(a)}},[t,n,a]),i.createPortal(s,n)};t.PopoverPortal=a},64379:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.useArrowContainer=void 0;var i=n(2784),a=function(e){var t=e.childRect,n=e.popoverRect,a=e.position,s=e.arrowSize,o=e.arrowColor,l=i.useMemo(function(){return{padding:s}},[s]),u=i.useMemo(function(){return r({position:"absolute"},function(){var e=2*s,r=t.top-n.top+t.height/2-e/2,i=t.left-n.left+t.width/2-e/2,l=n.width-s,u=n.height-s;switch(i=(i=i<s?s:i)+e>l?l-e:i,r=Number.isNaN(r=(r=r<s?s:r)+e>u?u-e:r)?0:r,i=Number.isNaN(i)?0:i,a){case"right":return{borderTop:s+"px solid transparent",borderBottom:s+"px solid transparent",borderRight:s+"px solid "+o,left:0,top:r};case"left":return{borderTop:s+"px solid transparent",borderBottom:s+"px solid transparent",borderLeft:s+"px solid "+o,right:0,top:r};case"bottom":return{borderLeft:s+"px solid transparent",borderRight:s+"px solid transparent",borderBottom:s+"px solid "+o,top:0,left:i};case"top":return{borderLeft:s+"px solid transparent",borderRight:s+"px solid transparent",borderTop:s+"px solid "+o,bottom:0,left:i};default:return{display:"hidden"}}}())},[o,s,t.height,t.left,t.top,t.width,n.height,n.left,n.top,n.width,a,]);return{arrowContainerStyle:l,arrowStyle:u}};t.useArrowContainer=a},79601:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useElementRef=void 0;var r=n(2784),i=n(27574),a=function(e,t){var n=r.useRef(),a=r.useMemo(function(){return i.createContainer(t,e)},[e,t]);return n.current=a,n};t.useElementRef=a},70414:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useMemoizedArray=void 0;var r=n(2784),i=function(e){var t=r.useRef(e);return r.useMemo(function(){if(t.current===e)return t.current;if(t.current.length!==e.length)return t.current=e,e;for(var n=0;n<e.length;n+=1)if(e[n]!==t.current[n])return t.current=e,e;return t.current},[e])};t.useMemoizedArray=i},61462:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.usePopover=void 0;var r=n(2784),i=n(27574),a=n(79601),s={position:"fixed",overflow:"visible",top:"0px",left:"0px"},o={position:"fixed",top:"0px",left:"0px",width:"0px",height:"0px",visibility:"hidden"},l=function(e){var t=e.isOpen,n=e.childRef,l=e.positions,u=e.containerClassName,c=e.parentElement,d=e.contentLocation,p=e.align,h=e.padding,f=e.reposition,m=e.boundaryInset,g=e.boundaryElement,v=e.onPositionPopover,y=a.useElementRef(u,s),_=a.useElementRef("react-tiny-popover-scout",o),b=r.useCallback(function(e){var r,a,s=void 0===e?{}:e,o=s.positionIndex,u=void 0===o?0:o,x=s.parentRect,k=void 0===x?c.getBoundingClientRect():x,w=s.childRect,T=void 0===w?null===(r=null==n?void 0:n.current)||void 0===r?void 0:r.getBoundingClientRect():w,C=s.scoutRect,E=void 0===C?null===(a=null==_?void 0:_.current)||void 0===a?void 0:a.getBoundingClientRect():C,S=s.popoverRect,O=void 0===S?y.current.getBoundingClientRect():S,R=s.boundaryRect,N=void 0===R?g===c?k:g.getBoundingClientRect():R;if(T&&k&&t){if(d){var P="function"==typeof d?d({childRect:T,popoverRect:O,parentRect:k,boundaryRect:N,padding:h,nudgedTop:0,nudgedLeft:0,boundaryInset:m,violations:i.EMPTY_CLIENT_RECT,hasViolations:!1}):d,A=P.top,I=P.left,j=Math.round(k.left+I-E.left),Z=Math.round(k.top+A-E.top);y.current.style.transform="translate("+j+"px, "+Z+"px)",v({childRect:T,popoverRect:O,parentRect:k,boundaryRect:N,padding:h,nudgedTop:0,nudgedLeft:0,boundaryInset:m,violations:i.EMPTY_CLIENT_RECT,hasViolations:!1});return}var M=u===l.length,L=M?l[0]:l[u],D=i.getNewPopoverRect({childRect:T,popoverRect:O,boundaryRect:N,position:L,align:p,padding:h,reposition:f},m),z=D.rect;if(D.boundaryViolation&&f&&!M){b({positionIndex:u+1,childRect:T,popoverRect:O,parentRect:k,boundaryRect:N});return}var F=z.top,V=z.left,$=z.width,B=z.height,U=i.getNudgedPopoverRect(z,N,m),q=U.left,W=U.top,H=F,K=V;f&&!M&&(H=W,K=q),H=Math.round(H-E.top),K=Math.round(K-E.left),y.current.style.transform="translate("+K+"px, "+H+"px)";var Y={top:N.top+m-H,left:N.left+m-K,right:K+$-N.right+m,bottom:H+B-N.bottom+m};v({childRect:T,popoverRect:{top:H,left:K,width:$,height:B,right:K+$,bottom:H+B},parentRect:k,boundaryRect:N,position:L,align:p,padding:h,nudgedTop:W-F,nudgedLeft:q-V,boundaryInset:m,violations:{top:Y.top<=0?0:Y.top,left:Y.left<=0?0:Y.left,right:Y.right<=0?0:Y.right,bottom:Y.bottom<=0?0:Y.bottom},hasViolations:Y.top>0||Y.left>0||Y.right>0||Y.bottom>0})}},[c,n,_,y,g,t,d,l,p,h,f,m,v,]);return{positionPopover:b,popoverRef:y,scoutRef:_}};t.usePopover=l},27574:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNudgedPopoverRect=t.getNewPopoverRect=t.popoverRectForPosition=t.createContainer=t.rectsAreEqual=t.EMPTY_CLIENT_RECT=void 0,t.EMPTY_CLIENT_RECT={top:0,left:0,bottom:0,height:0,right:0,width:0};var n=function(e,t){return e===t||(null==e?void 0:e.bottom)===(null==t?void 0:t.bottom)&&(null==e?void 0:e.height)===(null==t?void 0:t.height)&&(null==e?void 0:e.left)===(null==t?void 0:t.left)&&(null==e?void 0:e.right)===(null==t?void 0:t.right)&&(null==e?void 0:e.top)===(null==t?void 0:t.top)&&(null==e?void 0:e.width)===(null==t?void 0:t.width)};t.rectsAreEqual=n;var r=function(e,t){var n=window.document.createElement("div");return t&&(n.className=t),Object.assign(n.style,e),n};t.createContainer=r;var i=function(e,t,n,r,i){var a,s,o=t.left+t.width/2,l=t.top+t.height/2,u=n.width,c=n.height;switch(e){case"left":a=l-c/2,s=t.left-r-u,"start"===i&&(a=t.top),"end"===i&&(a=t.bottom-c);break;case"bottom":a=t.bottom+r,s=o-u/2,"start"===i&&(s=t.left),"end"===i&&(s=t.right-u);break;case"right":a=l-c/2,s=t.right+r,"start"===i&&(a=t.top),"end"===i&&(a=t.bottom-c);break;default:a=t.top-c-r,s=o-u/2,"start"===i&&(s=t.left),"end"===i&&(s=t.right-u)}return{top:a,left:s,width:u,height:c,right:s+u,bottom:a+c}};t.popoverRectForPosition=i;var a=function(e,n){var r=e.position,i=e.align,a=e.childRect,s=e.popoverRect,o=e.boundaryRect,l=e.padding,u=e.reposition,c=t.popoverRectForPosition(r,a,s,l,i),d=u&&("top"===r&&c.top<o.top+n||"left"===r&&c.left<o.left+n||"right"===r&&c.right>o.right-n||"bottom"===r&&c.bottom>o.bottom-n);return{rect:c,boundaryViolation:d}};t.getNewPopoverRect=a;var s=function(e,t,n){var r=t.top+n,i=t.left+n,a=t.right-n,s=t.bottom-n,o=e.top<r?r:e.top;o=o+e.height>s?s-e.height:o;var l=e.left<i?i:e.left;return{top:o,left:l=l+e.width>a?a-e.width:l,width:e.width,height:e.height,right:l+e.width,bottom:o+e.height}};t.getNudgedPopoverRect=s},91618:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0;var i=r(n(85653)),a=n(31380);t.default=function(e,t){var n={};return e&&"string"==typeof e&&(0,i.default)(e,function(e,r){e&&r&&(n[(0,a.camelCase)(e,t)]=r)}),n}},31380:function(e,t){"use strict";t.__esModule=!0,t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,o=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")},u=function(e,t){var u;return(void 0===t&&(t={}),!(u=e)||i.test(u)||n.test(u))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(s,l):e.replace(a,l)).replace(r,o))};t.camelCase=u},85653:function(e,t,n){var r=n(6299);function i(e,t){var n,i,a,s=null;if(!e||"string"!=typeof e)return s;for(var o=r(e),l="function"==typeof t,u=0,c=o.length;u<c;u++)i=(n=o[u]).property,a=n.value,l?t(i,a,n):a&&(s||(s={}),s[i]=a);return s}e.exports=i,e.exports.default=i},86741:function(e,t,n){"use strict";n.d(t,{W_:function(){return a},du:function(){return i}});var r=n(72670),i=r.domToReact;r.htmlToDOM,r.attributesToProps,r.Comment;var a=r.Element;r.ProcessingInstruction,r.Text,t.ZP=r},33402:function(e,t,n){"use strict";function r(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}n.d(t,{Z:function(){return r}})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[80],{84449:function(e,n,i){"use strict";i.d(n,{Z:function(){return A}});var r,t,s=i(62230),o=i(85244),l=i(52322),a=i(2784),c=i(56580),d=i(75289),u=i(54132),x=i(951),p=i(75100),f=i(25812),h=i(77174),v=i(24340),g=i(90374),j=i(22710),m=i(99267),b=i(76473),C=i(75329),E=i(57282),F=function(e){var n=e.inputFile,i=e.handleFile,r=e.children,t=e.isDragActive;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.__,{htmlFor:"input-file",variant:"buttons.white",sx:{p:2,px:0,display:"flex",justifyContent:"center",width:200,alignItems:"center",flex:1},children:r||"Select file"}),(0,l.jsx)("input",{id:"input-file",type:"file",ref:n,style:{display:"none"},accept:C.nG.map(function(e){return"image/".concat(e)}).join(","),onChange:function(e){var n;i(null===(n=e.target.files)||void 0===n?void 0:n[0],t)}})]})},y=i(32665),w=i(3098),S=i(61931),D=function(){return(0,l.jsx)(d.kC,{variant:"boxes.centered",sx:{p:2,position:"absolute",height:"100%",width:"100%",background:"rgba(249, 248, 249, 0.7)",backdropFilter:"blur(5px)",zIndex:"1",pointerEvents:"none"},children:(0,l.jsxs)(d.kC,{variant:"boxes.centered",sx:{border:"1px dashed #6E56CF",height:"100%",width:"100%",borderRadius:"4px"},children:[(0,l.jsx)(k,{isActive:!0}),(0,l.jsx)(d.xv,{sx:{my:2},children:"Drop file here"}),(0,l.jsx)(d.xv,{variant:"secondary",children:"Maximum upload size file: 128Mb"})]})})},k=function(e){var n=e.isActive;return(0,l.jsx)(d.kC,{sx:{p:1,borderRadius:"50%",bg:n?"#F1EEFE":"#EDECEE",alignItems:"center",justifyContent:"center",width:"48px",height:"48px"},children:(0,l.jsx)(x.IEK,{style:{color:n?"#6E56CF":"#6F6E77",fontSize:"34px"}})})},I=function(e){var n=e.variationID,i=e.slice,r=e.imageTypes,t=void 0===r?C.nG:r,u=i.screenshots[n],x=(0,g.Z)().openToaster,p=(0,a.useState)(!1),f=p[0],h=p[1],v=(0,a.useState)(!1),I=v[0],R=v[1];(0,b.y1)(["meta+v","ctrl+v"],function(){N()},[n,i,]);var _,Z,M,H,O,z=(0,g.Z)().generateSliceCustomScreenshot,A=(0,c.v9)(function(e){return{isLoadingScreenshot:(0,y.hg)(e,w.z.GENERATE_SLICE_CUSTOM_SCREENSHOT)}}).isLoadingScreenshot,L=(Z=(_={onHandleFile:function(e,r){z(n,i,e,r?"dragAndDrop":"upload"),R(!1)}}).onHandleFile,M=(0,a.useRef)(null),{handleFile:H=function(e,n){e&&(Z(e,n),(null==M?void 0:M.current)&&(M.current.value=""))},inputFile:M,FileInputRenderer:F,fileInputProps:{inputFile:M,handleFile:H}}),T=L.FileInputRenderer,V=L.fileInputProps,P=function(e){if(e.size>128e6)return x("File is too big. Max file size: 128Mb.",E.Jf.ERROR);z(n,i,e,"dragAndDrop")},B="function"==typeof navigator.clipboard.read,N=(O=(0,j.Z)(function(){var e,n,i,r,s;return(0,m.__generator)(this,function(o){switch(o.label){case 0:if(!B)return[2];o.label=1;case 1:return o.trys.push([1,5,,6]),[4,navigator.clipboard.read()];case 2:if(!(void 0!==(e=o.sent())[0])||!(void 0!==(n=e[0].types.find(function(e){return t.map(function(e){return"image/".concat(e)}).includes(e)}))))return[3,4];return[4,e[0].getType(n)];case 3:return i=o.sent(),r=new File([i],"file"),[2,P(r)];case 4:return[3,6];case 5:return s=o.sent(),console.error("Could not paste file",s),[3,6];case 6:return[2]}})}),function(){return O.apply(this,arguments)}),W=function(e){e.preventDefault(),h(!1);var n,i=null===(n=e.dataTransfer.files)||void 0===n?void 0:n[0];if(void 0!==i)return t.some(function(e){return"image/".concat(e)===i.type})?P(i):x("Only files of type ".concat(t.join(", ")," are accepted."),E.Jf.ERROR)},G=function(e){return function(n){n.preventDefault(),h(e)}},q=function(e){return function(n){n.preventDefault(),R(e)}};return(0,l.jsxs)(d.kC,{as:"form",variant:"boxes.centered",sx:{bg:"#F9F8F9",position:"relative",borderRadius:"6px",height:"320px"},onDragEnter:G(!0),onDragLeave:G(!1),onDragOver:G(!0),onMouseEnter:q(!0),onMouseLeave:q(!1),onSubmit:function(e){return e.preventDefault()},onDrop:W,children:[A?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.$j,{}),(0,l.jsx)(d.xv,{sx:{my:2},children:"Uploading file ..."})]}):null,A||void 0===u?null:(0,l.jsx)(S.q,{src:u.url,sx:{width:"100%",height:"100%",maxHeight:"100%",backdropFilter:"blur(5px)"}}),A?null:(0,l.jsx)(d.kC,{sx:{p:2,position:"absolute",width:"100%",height:"100%",borderRadius:"6px",background:"#F9F8F9B2",justifyContent:"center",alignItems:"center",visibility:I||void 0===u?"visible":"hidden"},children:(0,l.jsx)(d.kC,{variant:"boxes.centered",sx:{border:"1px dashed #6E56CF",height:"100%",width:"100%",borderRadius:"4px"},children:(0,l.jsxs)(d.kC,{sx:{width:"100%",justifyContent:"center",alignItems:"center",flexDirection:"column"},children:[(0,l.jsx)(k,{isActive:f}),(0,l.jsx)(d.xv,{sx:{my:2},children:B?"Paste, drop or ...":"Drop or ..."}),(0,l.jsx)(T,(0,o.Z)((0,s.Z)({},V),{isDragActive:f})),(0,l.jsx)(d.xv,{sx:{color:"greyIcon",mt:1},children:"Maximum file size: 128Mb"})]})})}),f?(0,l.jsx)(D,{}):null]})},R=function(e){return(0,l.jsxs)("svg",(0,o.Z)((0,s.Z)({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),{children:[(0,l.jsxs)("g",{clipPath:"url(#clip0_5065_192538)",children:[(0,l.jsx)("path",{d:"M9.66862 19.9993C11.1406 19.9993 12.3353 18.8047 12.3353 17.3327V14.666H9.66862C8.19662 14.666 7.00195 15.8607 7.00195 17.3327C7.00195 18.8047 8.19662 19.9993 9.66862 19.9993Z",fill:"#0ACF83"}),(0,l.jsx)("path",{d:"M7.00195 12.0007C7.00195 10.5287 8.19662 9.33398 9.66862 9.33398H12.3353V14.6673H9.66862C8.19662 14.6673 7.00195 13.4727 7.00195 12.0007Z",fill:"#A259FF"}),(0,l.jsx)("path",{d:"M7.00195 6.66667C7.00195 5.19467 8.19662 4 9.66862 4H12.3353V9.33333H9.66862C8.19662 9.33333 7.00195 8.13867 7.00195 6.66667Z",fill:"#F24E1E"}),(0,l.jsx)("path",{d:"M12.334 4H15.0007C16.4727 4 17.6673 5.19467 17.6673 6.66667C17.6673 8.13867 16.4727 9.33333 15.0007 9.33333H12.334V4Z",fill:"#FF7262"}),(0,l.jsx)("path",{d:"M17.6673 12.0007C17.6673 13.4727 16.4727 14.6673 15.0007 14.6673C13.5287 14.6673 12.334 13.4727 12.334 12.0007C12.334 10.5287 13.5287 9.33398 15.0007 9.33398C16.4727 9.33398 17.6673 10.5287 17.6673 12.0007Z",fill:"#1ABCFE"})]}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip0_5065_192538",children:(0,l.jsx)("rect",{width:"10.6688",height:"16",fill:"white",transform:"translate(7 4)"})})})]}))};(t=r||(r={})).Mac="Mac",t.Linux="Linux",t.Windows="Windows";var _=function(){var e=navigator.userAgent,n=r.Linux;return Object.values(r).forEach(function(i){e.includes(i)&&(n=i)}),n};i(61213);var Z=function(e){var n=e.children;return(0,l.jsx)("kbd",{className:"_1nkpwww0 _1ecs97d9t8 _1ecs97d6ee _1ecs97d6lr _1ecs97d18 _1ecs97d8l _1ecs97d268 _1ecs97d2dl _1ecs97d9ej _1ecs97d9ex",children:n})},M=function(){var e,n=[r.Windows,r.Linux].includes(_())?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(Z,{children:"ctrl"})," + ",(0,l.jsx)(Z,{children:"shift"})," + ",(0,l.jsx)(Z,{children:"c"})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(Z,{children:"cmd"})," + ",(0,l.jsx)(Z,{children:"shift"})," + ",(0,l.jsx)(Z,{children:"c"})]});return(0,l.jsxs)(d.kC,{sx:{pl:"4px",alignItems:"center",color:"#000",borderRadius:"6px",fontSize:"12px",lineHeight:"24px",border:"1px solid #E4E2E4",boxShadow:"0px 1px 0px 0px rgba(0, 0, 0, 0.04)",width:"100%",minHeight:"40px"},children:[(0,l.jsx)(R,{}),(0,l.jsxs)("div",{children:["Use\xa0",n," to copy any frame as .png, then just paste it here"]})]})},H=function(e){var n=e.isValid;return(0,l.jsx)(d.kC,{sx:{p:2,border:"1px solid #E4E2E4",borderRadius:"6px",bg:"#FFF"},children:n?(0,l.jsx)(x.Ypm,{style:{fontSize:"16px"}}):(0,l.jsx)(p.j6O,{style:{fontSize:"16px",color:"#ED811C"}})})},O=function(e){var n=e.slice,i=e.onSelectVariation,r=e.variationSelector;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(d.X6,{as:"h4",sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:n.model.name}),(0,l.jsx)(d.xu,{children:(0,l.jsx)(d.xu,{as:"ul",sx:{pl:0,my:3},children:n.model.variations.map(function(e){var t=r.sliceID,a=r.variationID,c=t===n.model.id&&a===e.id;return(0,l.jsx)(d.xu,{as:"li",sx:(0,o.Z)((0,s.Z)({listStyle:"none",my:2,p:2,cursor:"pointer",borderRadius:"4px"},c&&{bg:"#EDECEE",fontWeight:"500"}),{":hover":{bg:"#EDECEE"}}),onClick:function(){return i({sliceID:n.model.id,variationID:e.id})},children:(0,l.jsxs)(d.kC,{sx:{alignItems:"center"},children:[(0,l.jsx)(H,{isValid:!!n.screenshots[e.id]}),(0,l.jsx)(d.xv,{sx:{ml:2},children:e.name})]})},"".concat(n.model.id,"-").concat(e.id))})})})]})},z=function(e,n){return e||(n.length?{sliceID:n[0].model.id,variationID:n[0].model.variations[0].id}:void 0)},A=function(e){var n=e.slices,i=e.defaultVariationSelector,r=(0,g.Z)().closeModals,t=(0,c.v9)(function(e){return{isOpen:(0,h.gP)(e,v.q.SCREENSHOTS)}}).isOpen,s=(0,a.useState)(z(i,n)),o=s[0],x=s[1];if((0,a.useEffect)(function(){x(z(i,n))},[null==i?void 0:i.sliceID,null==i?void 0:i.variationID,t,]),0===n.length||!o)return null;var p,j="function"==typeof navigator.clipboard.read;return(0,l.jsx)(f.Z,{isOpen:t,shouldCloseOnOverlayClick:!0,onRequestClose:function(){return r()},children:(0,l.jsx)(u.Z,{radius:"0px",bodySx:{p:0,bg:"#FFF",position:"relative"},sx:{border:"none"},Header:function(e){var n=e.radius;return(0,l.jsxs)(d.kC,{sx:{position:"sticky",top:0,zIndex:1,background:"gray",p:"16px",alignItems:"center",justifyContent:"space-between",borderTopLeftRadius:n,borderTopRightRadius:n,borderBottom:function(e){var n;return"1px solid ".concat(String(null===(n=e.colors)||void 0===n?void 0:n.borders))}},children:[(0,l.jsx)(d.X6,{sx:{fontSize:"20px"},children:"Slice screenshots"}),(0,l.jsx)(d.x8,{type:"button",onClick:function(){return r()}})]})},Footer:null,children:(0,l.jsxs)(d.xu,{sx:{display:"flex",flexWrap:"wrap",height:"100%"},children:[(0,l.jsx)(d.xu,{sx:{p:3,bg:"grey07",flexGrow:1,overflow:"auto",maxHeight:"100%",flexBasis:"sidebar"},children:n.map(function(e,n){return(0,l.jsx)(O,{slice:e,variationSelector:o,onSelectVariation:x},"".concat(e.model.id,"-").concat(n))})}),(0,l.jsxs)(d.kC,{as:"main",sx:{p:3,flexGrow:99999,flexBasis:0,flexDirection:"column",minWidth:320,gap:"8px"},children:[j?(0,l.jsx)(M,{}):void 0,(p=n.find(function(e){return e.model.id===o.sliceID}))?(0,l.jsx)(I,{variationID:o.variationID,slice:p}):null]})]})})})}},61931:function(e,n,i){"use strict";i.d(n,{q:function(){return c}});var r=i(62230),t=i(52322),s=i(2784),o=i(75289),l=i(65186),a=(0,s.memo)(function(e){var n=e.src;return(0,t.jsx)(o.Ee,{src:n,alt:"Preview image",sx:{maxHeight:"100%"}})}),c=function(e){var n=e.src,i=e.sx;return(0,t.jsx)(o.kC,{sx:(0,r.Z)({position:"relative",alignItems:"center",justifyContent:"center",overflow:"hidden",backgroundImage:"url(/pattern.png)",backgroundColor:"headSection",backgroundRepeat:"repeat",backgroundSize:"20px",borderRadius:"4px"},i),children:void 0!==n?(0,t.jsx)(a,{src:n}):(0,t.jsxs)(o.xv,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[(0,t.jsx)(l.eJU,{}),"You have no screenshot yet."]})})}},47731:function(e,n,i){"use strict";i.d(n,{H:function(){return s}});var r=i(2784),t=i(90374),s=function(){var e=(0,t.Z)().openScreenshotsModal,n=(0,r.useState)({sliceFilterFn:function(e){return e}}),i=n[0],s=n[1];return{modalPayload:i,onOpenModal:function(n){s(n),e()}}}},61213:function(){}}]);
|