HEX
Server: Apache
System: Linux cp4.skywebbox.com 5.14.0-503.15.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Nov 28 07:25:19 EST 2024 x86_64
User: alfouzantranspor (1054)
PHP: 8.3.23
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/alfouzantranspor/www/wp-content/plugins_backup/surerank/build/vendor-536eaa00/index.js
(globalThis.webpackChunksurerank=globalThis.webpackChunksurerank||[]).push([[359],{11456:(e,t,n)=>{"use strict";n.d(t,{AH:()=>C,Y:()=>N,i7:()=>O});var r=n(51609),s=n(51893),i=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},a={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function o(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var c=!1,u=/[A-Z]|^ms/g,d=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},h=function(e){return null!=e&&"boolean"!==typeof e},p=o(function(e){return l(e)?e:e.replace(u,"-$&").toLowerCase()}),f=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(d,function(e,t,n){return y={name:t,styles:n,next:y},t})}return 1===a[e]||l(e)||"number"!==typeof t||0===t?t:t+"px"},m="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function g(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return y={name:n.name,styles:n.styles,next:y},n.name;var r=n;if(void 0!==r.styles){var s=r.next;if(void 0!==s)for(;void 0!==s;)y={name:s.name,styles:s.styles,next:y},s=s.next;return r.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var s=0;s<n.length;s++)r+=g(e,t,n[s])+";";else for(var i in n){var a=n[i];if("object"!==typeof a){var o=a;null!=t&&void 0!==t[o]?r+=i+"{"+t[o]+"}":h(o)&&(r+=p(i)+":"+f(i,o)+";")}else{if("NO_COMPONENT_SELECTOR"===i&&c)throw new Error(m);if(!Array.isArray(a)||"string"!==typeof a[0]||null!=t&&void 0!==t[a[0]]){var u=g(e,t,a);switch(i){case"animation":case"animationName":r+=p(i)+":"+u+";";break;default:r+=i+"{"+u+"}"}}else for(var d=0;d<a.length;d++)h(a[d])&&(r+=p(i)+":"+f(i,a[d])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var i=y,a=n(e);return y=i,g(e,t,a)}}if(null==t)return n;var o=t[n];return void 0!==o?o:n}var y,v=/label:\s*([^\s;{]+)\s*(;|$)/g;function _(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,s="";y=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,s+=g(n,t,i)):s+=i[0];for(var a=1;a<e.length;a++)s+=g(n,t,e[a]),r&&(s+=i[a]);v.lastIndex=0;for(var o,c="";null!==(o=v.exec(s));)c+="-"+o[1];var u=function(e){for(var t,n=0,r=0,s=e.length;s>=4;++r,s-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(s){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(s)+c;return{name:u,styles:s,next:y}}var x=!!r.useInsertionEffect&&r.useInsertionEffect||function(e){return e()},w=r.createContext("undefined"!==typeof HTMLElement?(0,s.A)({key:"css"}):null),b=function(e){return(0,r.forwardRef)(function(t,n){var s=(0,r.useContext)(w);return e(t,s,n)})},k=r.createContext({}),T={}.hasOwnProperty,E="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",S=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return i(t,n,r),x(function(){return function(e,t,n){i(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var s=t;do{e.insert(t===s?"."+r:"",s,e.sheet,!0),s=s.next}while(void 0!==s)}}(t,n,r)}),null},A=b(function(e,t,n){var s=e.css;"string"===typeof s&&void 0!==t.registered[s]&&(s=t.registered[s]);var i=e[E],a=[s],o="";"string"===typeof e.className?o=function(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}(t.registered,a,e.className):null!=e.className&&(o=e.className+" ");var c=_(a,void 0,r.useContext(k));o+=t.key+"-"+c.name;var u={};for(var d in e)T.call(e,d)&&"css"!==d&&d!==E&&(u[d]=e[d]);return u.className=o,n&&(u.ref=n),r.createElement(r.Fragment,null,r.createElement(S,{cache:t,serialized:c,isStringTag:"string"===typeof i}),r.createElement(i,u))}),N=(n(4146),function(e,t){var n=arguments;if(null==t||!T.call(t,"css"))return r.createElement.apply(void 0,n);var s=n.length,i=new Array(s);i[0]=A,i[1]=function(e,t){var n={};for(var r in t)T.call(t,r)&&(n[r]=t[r]);return n[E]=e,n}(e,t);for(var a=2;a<s;a++)i[a]=n[a];return r.createElement.apply(null,i)});function C(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return _(t)}function O(){var e=C.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}!function(e){var t;t||(t=e.JSX||(e.JSX={}))}(N||(N={}))},12542:(e,t,n)=>{"use strict";var r,s,i,a,o,c,u;n.d(t,{BK:()=>Mn}),function(e){e.POST_MESSAGE="postMessage"}(r||(r={})),function(e){e.POST_MESSAGE="postMessage"}(s||(s={})),function(e){e.STREAMABLE_HTTP="streamableHttp",e.SSE="sse"}(i||(i={})),function(e){e.LOCAL="local",e.REMOTE="remote"}(a||(a={})),function(e){e.SDK_ANGIE_READY_PING="sdk-angie-ready-ping",e.SDK_ANGIE_REFRESH_PING="sdk-angie-refresh-ping",e.SDK_REQUEST_CLIENT_CREATION="sdk-request-client-creation",e.SDK_REQUEST_INIT_SERVER="sdk-request-init-server"}(o||(o={}));class d{isAngieReady=!1;readyPromise;readyResolve;constructor(){if(this.readyPromise=new Promise(e=>{this.readyResolve=e}),"undefined"==typeof window)return;let e=0;const t=()=>{if(this.isAngieReady||e>=500)return void(!this.isAngieReady&&e>=500&&this.handleDetectionTimeout());const n=new MessageChannel;n.port1.onmessage=e=>{this.handleAngieReady(e.data),n.port1.close(),n.port2.close()};const r={type:o.SDK_ANGIE_READY_PING,timestamp:Date.now()};window.postMessage(r,window.location.origin,[n.port2]),e++,setTimeout(t,500)};t()}handleAngieReady(e){this.isAngieReady=!0,this.readyResolve&&this.readyResolve({isReady:!0,version:e.version,capabilities:e.capabilities})}handleDetectionTimeout(){this.readyResolve&&this.readyResolve({isReady:!1})}isReady(){return this.isAngieReady}async waitForReady(){return this.readyPromise}}class l{queue=[];isProcessing=!1;add(e){const t={id:this.generateId(e),config:e,timestamp:Date.now(),status:"pending"};return this.queue.push(t),t}getAll(){return[...this.queue]}getPending(){return this.queue.filter(e=>"pending"===e.status)}updateStatus(e,t,n){const r=this.queue.find(t=>t.id===e);r&&(r.status=t,n?r.error=n:"pending"!==t&&"registered"!==t||delete r.error)}async processQueue(e){if(this.isProcessing)return;this.isProcessing=!0;const t=this.getPending();try{for(const n of t)try{await e(n),this.updateStatus(n.id,"registered")}catch(e){const t=e instanceof Error?e.message:String(e);this.updateStatus(n.id,"failed",t)}}finally{this.isProcessing=!1}}clear(){this.queue=[]}resetAllToPending(){return!this.isProcessing&&(this.queue.filter(e=>"registered"===e.status),this.queue.filter(e=>"failed"===e.status),this.queue.forEach(e=>{"pending"!==e.status&&(e.status="pending",delete e.error)}),!0)}remove(e){const t=this.queue.findIndex(t=>t.id===e);return-1!==t&&(this.queue.splice(t,1),!0)}generateId(e){return`reg_${e.name}_${e.version}_${Date.now()}`}}class h{async requestClientCreation(e){const{config:t}=e,n={serverId:e.id,serverName:t.name,serverVersion:t.version,description:t.description,transport:t.transport||s.POST_MESSAGE,capabilities:t.capabilities,instanceId:e.instanceId};return"type"in t&&"remote"===t.type&&(n.remote={url:t.url}),new Promise((e,t)=>{const r=new MessageChannel,s=setTimeout(()=>{t(new Error("Client creation request timed out after 15000ms"))},15e3);r.port1.onmessage=t=>{clearTimeout(s),e(t.data)};const i={type:o.SDK_REQUEST_CLIENT_CREATION,payload:n,timestamp:Date.now()};window.postMessage(i,window.location.origin,[r.port2])})}}!function(e){e.assertEqual=e=>{},e.assertIs=function(e){},e.assertNever=function(e){throw new Error},e.arrayToEnum=e=>{const t={};for(const n of e)t[n]=n;return t},e.getValidEnumValues=t=>{const n=e.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),r={};for(const e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{const t=[];for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(const n of e)if(t(n))return n},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(c||(c={})),function(e){e.mergeShapes=(e,t)=>({...e,...t})}(u||(u={}));const p=c.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),f=e=>{switch(typeof e){case"undefined":return p.undefined;case"string":return p.string;case"number":return Number.isNaN(e)?p.nan:p.number;case"boolean":return p.boolean;case"function":return p.function;case"bigint":return p.bigint;case"symbol":return p.symbol;case"object":return Array.isArray(e)?p.array:null===e?p.null:e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?p.promise:"undefined"!=typeof Map&&e instanceof Map?p.map:"undefined"!=typeof Set&&e instanceof Set?p.set:"undefined"!=typeof Date&&e instanceof Date?p.date:p.object;default:return p.unknown}},m=c.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class g extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){const t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(const s of e.issues)if("invalid_union"===s.code)s.unionErrors.map(r);else if("invalid_return_type"===s.code)r(s.returnTypeError);else if("invalid_arguments"===s.code)r(s.argumentsError);else if(0===s.path.length)n._errors.push(t(s));else{let e=n,r=0;for(;r<s.path.length;){const n=s.path[r];r===s.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(s))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(this),n}static assert(e){if(!(e instanceof g))throw new Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,c.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){const t={},n=[];for(const r of this.issues)if(r.path.length>0){const n=r.path[0];t[n]=t[n]||[],t[n].push(e(r))}else n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}g.create=e=>new g(e);const y=(e,t)=>{let n;switch(e.code){case m.invalid_type:n=e.received===p.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case m.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,c.jsonStringifyReplacer)}`;break;case m.unrecognized_keys:n=`Unrecognized key(s) in object: ${c.joinValues(e.keys,", ")}`;break;case m.invalid_union:n="Invalid input";break;case m.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${c.joinValues(e.options)}`;break;case m.invalid_enum_value:n=`Invalid enum value. Expected ${c.joinValues(e.options)}, received '${e.received}'`;break;case m.invalid_arguments:n="Invalid function arguments";break;case m.invalid_return_type:n="Invalid function return type";break;case m.invalid_date:n="Invalid date";break;case m.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}"`:c.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case m.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||"bigint"===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 m.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 m.custom:n="Invalid input";break;case m.invalid_intersection_types:n="Intersection results could not be merged";break;case m.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case m.not_finite:n="Number must be finite";break;default:n=t.defaultError,c.assertNever(e)}return{message:n}};let v=y;var _;function x(e,t){const n=(e=>{const{data:t,path:n,errorMaps:r,issueData:s}=e,i=[...n,...s.path||[]],a={...s,path:i};if(void 0!==s.message)return{...s,path:i,message:s.message};let o="";const c=r.filter(e=>!!e).slice().reverse();for(const u of c)o=u(a,{data:t,defaultError:o}).message;return{...s,path:i,message:o}})({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,v,v===y?void 0:y].filter(e=>!!e)});e.common.issues.push(n)}!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:e?.message}(_||(_={}));class w{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){const n=[];for(const r of t){if("aborted"===r.status)return b;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){const n=[];for(const r of t){const e=await r.key,t=await r.value;n.push({key:e,value:t})}return w.mergeObjectSync(e,n)}static mergeObjectSync(e,t){const n={};for(const r of t){const{key:t,value:s}=r;if("aborted"===t.status)return b;if("aborted"===s.status)return b;"dirty"===t.status&&e.dirty(),"dirty"===s.status&&e.dirty(),"__proto__"===t.value||void 0===s.value&&!r.alwaysSet||(n[t.value]=s.value)}return{status:e.value,value:n}}}const b=Object.freeze({status:"aborted"}),k=e=>({status:"dirty",value:e}),T=e=>({status:"valid",value:e}),E=e=>"aborted"===e.status,S=e=>"dirty"===e.status,A=e=>"valid"===e.status,N=e=>"undefined"!=typeof Promise&&e instanceof Promise;class C{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||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const O=(e,t)=>{if(A(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new g(e.common.issues);return this._error=t,this._error}}};function R(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:s}=e;if(t&&(n||r))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:s}:{errorMap:(t,s)=>{const{message:i}=e;return"invalid_enum_value"===t.code?{message:i??s.defaultError}:void 0===s.data?{message:i??r??s.defaultError}:"invalid_type"!==t.code?{message:s.defaultError}:{message:i??n??s.defaultError}},description:s}}class I{get description(){return this._def.description}_getType(e){return f(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:f(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new w,ctx:{common:e.parent.common,data:e.data,parsedType:f(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if(N(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){const n={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:f(e)},r=this._parseSync({data:e,path:n.path,parent:n});return O(n,r)}"~validate"(e){const t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:f(e)};if(!this["~standard"].async)try{const n=this._parseSync({data:e,path:[],parent:t});return A(n)?{value:n.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>A(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){const n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){const n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:f(e)},r=this._parse({data:e,path:n.path,parent:n}),s=await(N(r)?r:Promise.resolve(r));return O(n,s)}refine(e,t){const n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,r)=>{const s=e(t),i=()=>r.addIssue({code:m.custom,...n(t)});return"undefined"!=typeof Promise&&s instanceof Promise?s.then(e=>!!e||(i(),!1)):!!s||(i(),!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 Me({schema:this,typeName:Ue.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return Le.create(this,this._def)}nullable(){return Pe.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return me.create(this)}promise(){return Ie.create(this,this._def)}or(e){return ve.create([this,e],this._def)}and(e){return be.create(this,e,this._def)}transform(e){return new Me({...R(this._def),schema:this,typeName:Ue.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t="function"==typeof e?e:()=>e;return new De({...R(this._def),innerType:this,defaultValue:t,typeName:Ue.ZodDefault})}brand(){return new $e({typeName:Ue.ZodBranded,type:this,...R(this._def)})}catch(e){const t="function"==typeof e?e:()=>e;return new je({...R(this._def),innerType:this,catchValue:t,typeName:Ue.ZodCatch})}describe(e){return new(0,this.constructor)({...this._def,description:e})}pipe(e){return Fe.create(this,e)}readonly(){return ze.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const M=/^c[^\s-]{8,}$/i,L=/^[0-9a-z]+$/,P=/^[0-9A-HJKMNP-TV-Z]{26}$/i,D=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,j=/^[a-z0-9_-]{21}$/i,Z=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,$=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,F=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;let z;const U=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,H=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,q=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,W=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,B=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,G=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,V="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",K=new RegExp(`^${V}$`);function Y(e){let t="[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),`([01]\\d|2[0-3]):[0-5]\\d(:${t})${e.precision?"+":"?"}`}function Q(e){return new RegExp(`^${Y(e)}$`)}function X(e){let t=`${V}T${Y(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function J(e,t){return!("v4"!==t&&t||!U.test(e))||!("v6"!==t&&t||!q.test(e))}function ee(e,t){if(!Z.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),s=JSON.parse(atob(r));return!("object"!=typeof s||null===s||"typ"in s&&"JWT"!==s?.typ||!s.alg||t&&s.alg!==t)}catch{return!1}}function te(e,t){return!("v4"!==t&&t||!H.test(e))||!("v6"!==t&&t||!W.test(e))}class ne extends I{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==p.string){const t=this._getOrReturnCtx(e);return x(t,{code:m.invalid_type,expected:p.string,received:t.parsedType}),b}const t=new w;let n;for(const r of this._def.checks)if("min"===r.kind)e.data.length<r.value&&(n=this._getOrReturnCtx(e,n),x(n,{code:m.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),t.dirty());else if("max"===r.kind)e.data.length>r.value&&(n=this._getOrReturnCtx(e,n),x(n,{code:m.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),t.dirty());else if("length"===r.kind){const s=e.data.length>r.value,i=e.data.length<r.value;(s||i)&&(n=this._getOrReturnCtx(e,n),s?x(n,{code:m.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}):i&&x(n,{code:m.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}),t.dirty())}else if("email"===r.kind)F.test(e.data)||(n=this._getOrReturnCtx(e,n),x(n,{validation:"email",code:m.invalid_string,message:r.message}),t.dirty());else if("emoji"===r.kind)z||(z=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),z.test(e.data)||(n=this._getOrReturnCtx(e,n),x(n,{validation:"emoji",code:m.invalid_string,message:r.message}),t.dirty());else if("uuid"===r.kind)D.test(e.data)||(n=this._getOrReturnCtx(e,n),x(n,{validation:"uuid",code:m.invalid_string,message:r.message}),t.dirty());else if("nanoid"===r.kind)j.test(e.data)||(n=this._getOrReturnCtx(e,n),x(n,{validation:"nanoid",code:m.invalid_string,message:r.message}),t.dirty());else if("cuid"===r.kind)M.test(e.data)||(n=this._getOrReturnCtx(e,n),x(n,{validation:"cuid",code:m.invalid_string,message:r.message}),t.dirty());else if("cuid2"===r.kind)L.test(e.data)||(n=this._getOrReturnCtx(e,n),x(n,{validation:"cuid2",code:m.invalid_string,message:r.message}),t.dirty());else if("ulid"===r.kind)P.test(e.data)||(n=this._getOrReturnCtx(e,n),x(n,{validation:"ulid",code:m.invalid_string,message:r.message}),t.dirty());else if("url"===r.kind)try{new URL(e.data)}catch{n=this._getOrReturnCtx(e,n),x(n,{validation:"url",code:m.invalid_string,message:r.message}),t.dirty()}else"regex"===r.kind?(r.regex.lastIndex=0,r.regex.test(e.data)||(n=this._getOrReturnCtx(e,n),x(n,{validation:"regex",code:m.invalid_string,message:r.message}),t.dirty())):"trim"===r.kind?e.data=e.data.trim():"includes"===r.kind?e.data.includes(r.value,r.position)||(n=this._getOrReturnCtx(e,n),x(n,{code:m.invalid_string,validation:{includes:r.value,position:r.position},message:r.message}),t.dirty()):"toLowerCase"===r.kind?e.data=e.data.toLowerCase():"toUpperCase"===r.kind?e.data=e.data.toUpperCase():"startsWith"===r.kind?e.data.startsWith(r.value)||(n=this._getOrReturnCtx(e,n),x(n,{code:m.invalid_string,validation:{startsWith:r.value},message:r.message}),t.dirty()):"endsWith"===r.kind?e.data.endsWith(r.value)||(n=this._getOrReturnCtx(e,n),x(n,{code:m.invalid_string,validation:{endsWith:r.value},message:r.message}),t.dirty()):"datetime"===r.kind?X(r).test(e.data)||(n=this._getOrReturnCtx(e,n),x(n,{code:m.invalid_string,validation:"datetime",message:r.message}),t.dirty()):"date"===r.kind?K.test(e.data)||(n=this._getOrReturnCtx(e,n),x(n,{code:m.invalid_string,validation:"date",message:r.message}),t.dirty()):"time"===r.kind?Q(r).test(e.data)||(n=this._getOrReturnCtx(e,n),x(n,{code:m.invalid_string,validation:"time",message:r.message}),t.dirty()):"duration"===r.kind?$.test(e.data)||(n=this._getOrReturnCtx(e,n),x(n,{validation:"duration",code:m.invalid_string,message:r.message}),t.dirty()):"ip"===r.kind?J(e.data,r.version)||(n=this._getOrReturnCtx(e,n),x(n,{validation:"ip",code:m.invalid_string,message:r.message}),t.dirty()):"jwt"===r.kind?ee(e.data,r.alg)||(n=this._getOrReturnCtx(e,n),x(n,{validation:"jwt",code:m.invalid_string,message:r.message}),t.dirty()):"cidr"===r.kind?te(e.data,r.version)||(n=this._getOrReturnCtx(e,n),x(n,{validation:"cidr",code:m.invalid_string,message:r.message}),t.dirty()):"base64"===r.kind?B.test(e.data)||(n=this._getOrReturnCtx(e,n),x(n,{validation:"base64",code:m.invalid_string,message:r.message}),t.dirty()):"base64url"===r.kind?G.test(e.data)||(n=this._getOrReturnCtx(e,n),x(n,{validation:"base64url",code:m.invalid_string,message:r.message}),t.dirty()):c.assertNever(r);return{status:t.value,value:e.data}}_regex(e,t,n){return this.refinement(t=>e.test(t),{validation:t,code:m.invalid_string,..._.errToObj(n)})}_addCheck(e){return new ne({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",..._.errToObj(e)})}url(e){return this._addCheck({kind:"url",..._.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",..._.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",..._.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",..._.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",..._.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",..._.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",..._.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",..._.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",..._.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",..._.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",..._.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",..._.errToObj(e)})}datetime(e){return this._addCheck("string"==typeof e?{kind:"datetime",precision:null,offset:!1,local:!1,message:e}:{kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,..._.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return this._addCheck("string"==typeof e?{kind:"time",precision:null,message:e}:{kind:"time",precision:void 0===e?.precision?null:e?.precision,..._.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",..._.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,..._.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,..._.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,..._.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,..._.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,..._.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,..._.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,..._.errToObj(t)})}nonempty(e){return this.min(1,_.errToObj(e))}trim(){return new ne({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ne({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ne({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function re(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,s=n>r?n:r;return Number.parseInt(e.toFixed(s).replace(".",""))%Number.parseInt(t.toFixed(s).replace(".",""))/10**s}ne.create=e=>new ne({checks:[],typeName:Ue.ZodString,coerce:e?.coerce??!1,...R(e)});class se extends I{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==p.number){const t=this._getOrReturnCtx(e);return x(t,{code:m.invalid_type,expected:p.number,received:t.parsedType}),b}let t;const n=new w;for(const r of this._def.checks)"int"===r.kind?c.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),x(t,{code:m.invalid_type,expected:"integer",received:"float",message:r.message}),n.dirty()):"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),x(t,{code:m.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),x(t,{code:m.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):"multipleOf"===r.kind?0!==re(e.data,r.value)&&(t=this._getOrReturnCtx(e,t),x(t,{code:m.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):"finite"===r.kind?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),x(t,{code:m.not_finite,message:r.message}),n.dirty()):c.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,_.toString(t))}gt(e,t){return this.setLimit("min",e,!1,_.toString(t))}lte(e,t){return this.setLimit("max",e,!0,_.toString(t))}lt(e,t){return this.setLimit("max",e,!1,_.toString(t))}setLimit(e,t,n,r){return new se({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:_.toString(r)}]})}_addCheck(e){return new se({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:_.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:_.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:_.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:_.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:_.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:_.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:_.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:_.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:_.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const 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&&c.isInteger(e.value))}get isFinite(){let e=null,t=null;for(const 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)}}se.create=e=>new se({checks:[],typeName:Ue.ZodNumber,coerce:e?.coerce||!1,...R(e)});class ie extends I{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==p.bigint)return this._getInvalidInput(e);let t;const n=new w;for(const r of this._def.checks)"min"===r.kind?(r.inclusive?e.data<r.value:e.data<=r.value)&&(t=this._getOrReturnCtx(e,t),x(t,{code:m.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):"max"===r.kind?(r.inclusive?e.data>r.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),x(t,{code:m.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):"multipleOf"===r.kind?e.data%r.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),x(t,{code:m.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):c.assertNever(r);return{status:n.value,value:e.data}}_getInvalidInput(e){const t=this._getOrReturnCtx(e);return x(t,{code:m.invalid_type,expected:p.bigint,received:t.parsedType}),b}gte(e,t){return this.setLimit("min",e,!0,_.toString(t))}gt(e,t){return this.setLimit("min",e,!1,_.toString(t))}lte(e,t){return this.setLimit("max",e,!0,_.toString(t))}lt(e,t){return this.setLimit("max",e,!1,_.toString(t))}setLimit(e,t,n,r){return new ie({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:_.toString(r)}]})}_addCheck(e){return new ie({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:_.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:_.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:_.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:_.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:_.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}ie.create=e=>new ie({checks:[],typeName:Ue.ZodBigInt,coerce:e?.coerce??!1,...R(e)});class ae extends I{_parse(e){if(this._def.coerce&&(e.data=Boolean(e.data)),this._getType(e)!==p.boolean){const t=this._getOrReturnCtx(e);return x(t,{code:m.invalid_type,expected:p.boolean,received:t.parsedType}),b}return T(e.data)}}ae.create=e=>new ae({typeName:Ue.ZodBoolean,coerce:e?.coerce||!1,...R(e)});class oe extends I{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==p.date){const t=this._getOrReturnCtx(e);return x(t,{code:m.invalid_type,expected:p.date,received:t.parsedType}),b}if(Number.isNaN(e.data.getTime()))return x(this._getOrReturnCtx(e),{code:m.invalid_date}),b;const t=new w;let n;for(const r of this._def.checks)"min"===r.kind?e.data.getTime()<r.value&&(n=this._getOrReturnCtx(e,n),x(n,{code:m.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),t.dirty()):"max"===r.kind?e.data.getTime()>r.value&&(n=this._getOrReturnCtx(e,n),x(n,{code:m.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),t.dirty()):c.assertNever(r);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(e){return new oe({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:_.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:_.toString(t)})}get minDate(){let e=null;for(const 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(const t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}oe.create=e=>new oe({checks:[],coerce:e?.coerce||!1,typeName:Ue.ZodDate,...R(e)});class ce extends I{_parse(e){if(this._getType(e)!==p.symbol){const t=this._getOrReturnCtx(e);return x(t,{code:m.invalid_type,expected:p.symbol,received:t.parsedType}),b}return T(e.data)}}ce.create=e=>new ce({typeName:Ue.ZodSymbol,...R(e)});class ue extends I{_parse(e){if(this._getType(e)!==p.undefined){const t=this._getOrReturnCtx(e);return x(t,{code:m.invalid_type,expected:p.undefined,received:t.parsedType}),b}return T(e.data)}}ue.create=e=>new ue({typeName:Ue.ZodUndefined,...R(e)});class de extends I{_parse(e){if(this._getType(e)!==p.null){const t=this._getOrReturnCtx(e);return x(t,{code:m.invalid_type,expected:p.null,received:t.parsedType}),b}return T(e.data)}}de.create=e=>new de({typeName:Ue.ZodNull,...R(e)});class le extends I{constructor(){super(...arguments),this._any=!0}_parse(e){return T(e.data)}}le.create=e=>new le({typeName:Ue.ZodAny,...R(e)});class he extends I{constructor(){super(...arguments),this._unknown=!0}_parse(e){return T(e.data)}}he.create=e=>new he({typeName:Ue.ZodUnknown,...R(e)});class pe extends I{_parse(e){const t=this._getOrReturnCtx(e);return x(t,{code:m.invalid_type,expected:p.never,received:t.parsedType}),b}}pe.create=e=>new pe({typeName:Ue.ZodNever,...R(e)});class fe extends I{_parse(e){if(this._getType(e)!==p.undefined){const t=this._getOrReturnCtx(e);return x(t,{code:m.invalid_type,expected:p.void,received:t.parsedType}),b}return T(e.data)}}fe.create=e=>new fe({typeName:Ue.ZodVoid,...R(e)});class me extends I{_parse(e){const{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==p.array)return x(t,{code:m.invalid_type,expected:p.array,received:t.parsedType}),b;if(null!==r.exactLength){const e=t.data.length>r.exactLength.value,s=t.data.length<r.exactLength.value;(e||s)&&(x(t,{code:e?m.too_big:m.too_small,minimum:s?r.exactLength.value:void 0,maximum:e?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(null!==r.minLength&&t.data.length<r.minLength.value&&(x(t,{code:m.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),null!==r.maxLength&&t.data.length>r.maxLength.value&&(x(t,{code:m.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new C(t,e,t.path,n)))).then(e=>w.mergeArray(n,e));const s=[...t.data].map((e,n)=>r.type._parseSync(new C(t,e,t.path,n)));return w.mergeArray(n,s)}get element(){return this._def.type}min(e,t){return new me({...this._def,minLength:{value:e,message:_.toString(t)}})}max(e,t){return new me({...this._def,maxLength:{value:e,message:_.toString(t)}})}length(e,t){return new me({...this._def,exactLength:{value:e,message:_.toString(t)}})}nonempty(e){return this.min(1,e)}}function ge(e){if(e instanceof ye){const t={};for(const n in e.shape)t[n]=Le.create(ge(e.shape[n]));return new ye({...e._def,shape:()=>t})}return e instanceof me?new me({...e._def,type:ge(e.element)}):e instanceof Le?Le.create(ge(e.unwrap())):e instanceof Pe?Pe.create(ge(e.unwrap())):e instanceof ke?ke.create(e.items.map(e=>ge(e))):e}me.create=(e,t)=>new me({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ue.ZodArray,...R(t)});class ye extends I{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const e=this._def.shape(),t=c.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==p.object){const t=this._getOrReturnCtx(e);return x(t,{code:m.invalid_type,expected:p.object,received:t.parsedType}),b}const{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:s}=this._getCached(),i=[];if(!(this._def.catchall instanceof pe&&"strip"===this._def.unknownKeys))for(const o in n.data)s.includes(o)||i.push(o);const a=[];for(const o of s)a.push({key:{status:"valid",value:o},value:r[o]._parse(new C(n,n.data[o],n.path,o)),alwaysSet:o in n.data});if(this._def.catchall instanceof pe){const e=this._def.unknownKeys;if("passthrough"===e)for(const t of i)a.push({key:{status:"valid",value:t},value:{status:"valid",value:n.data[t]}});else if("strict"===e)i.length>0&&(x(n,{code:m.unrecognized_keys,keys:i}),t.dirty());else if("strip"!==e)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const e=this._def.catchall;for(const t of i)a.push({key:{status:"valid",value:t},value:e._parse(new C(n,n.data[t],n.path,t)),alwaysSet:t in n.data})}return n.common.async?Promise.resolve().then(async()=>{const e=[];for(const t of a){const n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>w.mergeObjectSync(t,e)):w.mergeObjectSync(t,a)}get shape(){return this._def.shape()}strict(e){return new ye({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{const r=this._def.errorMap?.(t,n).message??n.defaultError;return"unrecognized_keys"===t.code?{message:_.errToObj(e).message??r}:{message:r}}}:{}})}strip(){return new ye({...this._def,unknownKeys:"strip"})}passthrough(){return new ye({...this._def,unknownKeys:"passthrough"})}extend(e){return new ye({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ye({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Ue.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ye({...this._def,catchall:e})}pick(e){const t={};for(const n of c.objectKeys(e))e[n]&&this.shape[n]&&(t[n]=this.shape[n]);return new ye({...this._def,shape:()=>t})}omit(e){const t={};for(const n of c.objectKeys(this.shape))e[n]||(t[n]=this.shape[n]);return new ye({...this._def,shape:()=>t})}deepPartial(){return ge(this)}partial(e){const t={};for(const n of c.objectKeys(this.shape)){const r=this.shape[n];t[n]=e&&!e[n]?r:r.optional()}return new ye({...this._def,shape:()=>t})}required(e){const t={};for(const n of c.objectKeys(this.shape))if(e&&!e[n])t[n]=this.shape[n];else{let e=this.shape[n];for(;e instanceof Le;)e=e._def.innerType;t[n]=e}return new ye({...this._def,shape:()=>t})}keyof(){return Ce(c.objectKeys(this.shape))}}ye.create=(e,t)=>new ye({shape:()=>e,unknownKeys:"strip",catchall:pe.create(),typeName:Ue.ZodObject,...R(t)}),ye.strictCreate=(e,t)=>new ye({shape:()=>e,unknownKeys:"strict",catchall:pe.create(),typeName:Ue.ZodObject,...R(t)}),ye.lazycreate=(e,t)=>new ye({shape:e,unknownKeys:"strip",catchall:pe.create(),typeName:Ue.ZodObject,...R(t)});class ve extends I{_parse(e){const{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map(async e=>{const 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(const t of e)if("valid"===t.result.status)return t.result;for(const r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;const n=e.map(e=>new g(e.ctx.common.issues));return x(t,{code:m.invalid_union,unionErrors:n}),b});{let e;const r=[];for(const i of n){const n={...t,common:{...t.common,issues:[]},parent:null},s=i._parseSync({data:t.data,path:t.path,parent:n});if("valid"===s.status)return s;"dirty"!==s.status||e||(e={result:s,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;const s=r.map(e=>new g(e));return x(t,{code:m.invalid_union,unionErrors:s}),b}}get options(){return this._def.options}}ve.create=(e,t)=>new ve({options:e,typeName:Ue.ZodUnion,...R(t)});const _e=e=>e instanceof Ae?_e(e.schema):e instanceof Me?_e(e.innerType()):e instanceof Ne?[e.value]:e instanceof Oe?e.options:e instanceof Re?c.objectValues(e.enum):e instanceof De?_e(e._def.innerType):e instanceof ue?[void 0]:e instanceof de?[null]:e instanceof Le?[void 0,..._e(e.unwrap())]:e instanceof Pe?[null,..._e(e.unwrap())]:e instanceof $e||e instanceof ze?_e(e.unwrap()):e instanceof je?_e(e._def.innerType):[];class xe extends I{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==p.object)return x(t,{code:m.invalid_type,expected:p.object,received:t.parsedType}),b;const n=this.discriminator,r=this.optionsMap.get(t.data[n]);return r?t.common.async?r._parseAsync({data:t.data,path:t.path,parent:t}):r._parseSync({data:t.data,path:t.path,parent:t}):(x(t,{code:m.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),b)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){const r=new Map;for(const s of t){const t=_e(s.shape[e]);if(!t.length)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const n of t){if(r.has(n))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(n)}`);r.set(n,s)}}return new xe({typeName:Ue.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...R(n)})}}function we(e,t){const n=f(e),r=f(t);if(e===t)return{valid:!0,data:e};if(n===p.object&&r===p.object){const n=c.objectKeys(t),r=c.objectKeys(e).filter(e=>-1!==n.indexOf(e)),s={...e,...t};for(const i of r){const n=we(e[i],t[i]);if(!n.valid)return{valid:!1};s[i]=n.data}return{valid:!0,data:s}}if(n===p.array&&r===p.array){if(e.length!==t.length)return{valid:!1};const n=[];for(let r=0;r<e.length;r++){const s=we(e[r],t[r]);if(!s.valid)return{valid:!1};n.push(s.data)}return{valid:!0,data:n}}return n===p.date&&r===p.date&&+e===+t?{valid:!0,data:e}:{valid:!1}}class be extends I{_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=(e,r)=>{if(E(e)||E(r))return b;const s=we(e.value,r.value);return s.valid?((S(e)||S(r))&&t.dirty(),{status:t.value,value:s.data}):(x(n,{code:m.invalid_intersection_types}),b)};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])=>r(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}be.create=(e,t,n)=>new be({left:e,right:t,typeName:Ue.ZodIntersection,...R(n)});class ke extends I{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==p.array)return x(n,{code:m.invalid_type,expected:p.array,received:n.parsedType}),b;if(n.data.length<this._def.items.length)return x(n,{code:m.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),b;!this._def.rest&&n.data.length>this._def.items.length&&(x(n,{code:m.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const r=[...n.data].map((e,t)=>{const r=this._def.items[t]||this._def.rest;return r?r._parse(new C(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>w.mergeArray(t,e)):w.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new ke({...this._def,rest:e})}}ke.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ke({items:e,typeName:Ue.ZodTuple,rest:null,...R(t)})};class Te extends I{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==p.object)return x(n,{code:m.invalid_type,expected:p.object,received:n.parsedType}),b;const r=[],s=this._def.keyType,i=this._def.valueType;for(const a in n.data)r.push({key:s._parse(new C(n,a,n.path,a)),value:i._parse(new C(n,n.data[a],n.path,a)),alwaysSet:a in n.data});return n.common.async?w.mergeObjectAsync(t,r):w.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(e,t,n){return new Te(t instanceof I?{keyType:e,valueType:t,typeName:Ue.ZodRecord,...R(n)}:{keyType:ne.create(),valueType:e,typeName:Ue.ZodRecord,...R(t)})}}class Ee extends I{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==p.map)return x(n,{code:m.invalid_type,expected:p.map,received:n.parsedType}),b;const r=this._def.keyType,s=this._def.valueType,i=[...n.data.entries()].map(([e,t],i)=>({key:r._parse(new C(n,e,n.path,[i,"key"])),value:s._parse(new C(n,t,n.path,[i,"value"]))}));if(n.common.async){const e=new Map;return Promise.resolve().then(async()=>{for(const n of i){const r=await n.key,s=await n.value;if("aborted"===r.status||"aborted"===s.status)return b;"dirty"!==r.status&&"dirty"!==s.status||t.dirty(),e.set(r.value,s.value)}return{status:t.value,value:e}})}{const e=new Map;for(const n of i){const r=n.key,s=n.value;if("aborted"===r.status||"aborted"===s.status)return b;"dirty"!==r.status&&"dirty"!==s.status||t.dirty(),e.set(r.value,s.value)}return{status:t.value,value:e}}}}Ee.create=(e,t,n)=>new Ee({valueType:t,keyType:e,typeName:Ue.ZodMap,...R(n)});class Se extends I{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==p.set)return x(n,{code:m.invalid_type,expected:p.set,received:n.parsedType}),b;const r=this._def;null!==r.minSize&&n.data.size<r.minSize.value&&(x(n,{code:m.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),t.dirty()),null!==r.maxSize&&n.data.size>r.maxSize.value&&(x(n,{code:m.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());const s=this._def.valueType;function i(e){const n=new Set;for(const r of e){if("aborted"===r.status)return b;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}const a=[...n.data.values()].map((e,t)=>s._parse(new C(n,e,n.path,t)));return n.common.async?Promise.all(a).then(e=>i(e)):i(a)}min(e,t){return new Se({...this._def,minSize:{value:e,message:_.toString(t)}})}max(e,t){return new Se({...this._def,maxSize:{value:e,message:_.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}Se.create=(e,t)=>new Se({valueType:e,minSize:null,maxSize:null,typeName:Ue.ZodSet,...R(t)});class Ae extends I{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}Ae.create=(e,t)=>new Ae({getter:e,typeName:Ue.ZodLazy,...R(t)});class Ne extends I{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return x(t,{received:t.data,code:m.invalid_literal,expected:this._def.value}),b}return{status:"valid",value:e.data}}get value(){return this._def.value}}function Ce(e,t){return new Oe({values:e,typeName:Ue.ZodEnum,...R(t)})}Ne.create=(e,t)=>new Ne({value:e,typeName:Ue.ZodLiteral,...R(t)});class Oe extends I{_parse(e){if("string"!=typeof e.data){const t=this._getOrReturnCtx(e);return x(t,{expected:c.joinValues(this._def.values),received:t.parsedType,code:m.invalid_type}),b}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){const t=this._getOrReturnCtx(e);return x(t,{received:t.data,code:m.invalid_enum_value,options:this._def.values}),b}return T(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return Oe.create(e,{...this._def,...t})}exclude(e,t=this._def){return Oe.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}Oe.create=Ce;class Re extends I{_parse(e){const t=c.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==p.string&&n.parsedType!==p.number){const e=c.objectValues(t);return x(n,{expected:c.joinValues(e),received:n.parsedType,code:m.invalid_type}),b}if(this._cache||(this._cache=new Set(c.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){const e=c.objectValues(t);return x(n,{received:n.data,code:m.invalid_enum_value,options:e}),b}return T(e.data)}get enum(){return this._def.values}}Re.create=(e,t)=>new Re({values:e,typeName:Ue.ZodNativeEnum,...R(t)});class Ie extends I{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==p.promise&&!1===t.common.async)return x(t,{code:m.invalid_type,expected:p.promise,received:t.parsedType}),b;const n=t.parsedType===p.promise?t.data:Promise.resolve(t.data);return T(n.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}Ie.create=(e,t)=>new Ie({type:e,typeName:Ue.ZodPromise,...R(t)});class Me extends I{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ue.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,s={addIssue:e=>{x(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(s.addIssue=s.addIssue.bind(s),"preprocess"===r.type){const e=r.transform(n.data,s);if(n.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return b;const r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return"aborted"===r.status?b:"dirty"===r.status||"dirty"===t.value?k(r.value):r});{if("aborted"===t.value)return b;const r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return"aborted"===r.status?b:"dirty"===r.status||"dirty"===t.value?k(r.value):r}}if("refinement"===r.type){const e=e=>{const t=r.refinement(e,s);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1===n.common.async){const r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?b:("dirty"===r.status&&t.dirty(),e(r.value),{status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>"aborted"===n.status?b:("dirty"===n.status&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))))}if("transform"===r.type){if(!1===n.common.async){const e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!A(e))return b;const i=r.transform(e.value,s);if(i instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:i}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>A(e)?Promise.resolve(r.transform(e.value,s)).then(e=>({status:t.value,value:e})):b)}c.assertNever(r)}}Me.create=(e,t,n)=>new Me({schema:e,typeName:Ue.ZodEffects,effect:t,...R(n)}),Me.createWithPreprocess=(e,t,n)=>new Me({schema:t,effect:{type:"preprocess",transform:e},typeName:Ue.ZodEffects,...R(n)});class Le extends I{_parse(e){return this._getType(e)===p.undefined?T(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Le.create=(e,t)=>new Le({innerType:e,typeName:Ue.ZodOptional,...R(t)});class Pe extends I{_parse(e){return this._getType(e)===p.null?T(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Pe.create=(e,t)=>new Pe({innerType:e,typeName:Ue.ZodNullable,...R(t)});class De extends I{_parse(e){const{ctx:t}=this._processInputParams(e);let n=t.data;return t.parsedType===p.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}De.create=(e,t)=>new De({innerType:e,typeName:Ue.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...R(t)});class je extends I{_parse(e){const{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 N(r)?r.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new g(n.common.issues)},input:n.data})})):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new g(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}je.create=(e,t)=>new je({innerType:e,typeName:Ue.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...R(t)});class Ze extends I{_parse(e){if(this._getType(e)!==p.nan){const t=this._getOrReturnCtx(e);return x(t,{code:m.invalid_type,expected:p.nan,received:t.parsedType}),b}return{status:"valid",value:e.data}}}Ze.create=e=>new Ze({typeName:Ue.ZodNaN,...R(e)}),Symbol("zod_brand");class $e extends I{_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.type._parse({data:t.data,path:t.path,parent:t})}unwrap(){return this._def.type}}class Fe extends I{_parse(e){const{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{const e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?b:"dirty"===e.status?(t.dirty(),k(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{const e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?b:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(e,t){return new Fe({in:e,out:t,typeName:Ue.ZodPipeline})}}class ze extends I{_parse(e){const t=this._def.innerType._parse(e),n=e=>(A(e)&&(e.value=Object.freeze(e.value)),e);return N(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}}var Ue;ze.create=(e,t)=>new ze({innerType:e,typeName:Ue.ZodReadonly,...R(t)}),function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(Ue||(Ue={}));const He=ne.create,qe=se.create,We=ae.create,Be=he.create,Ge=me.create,Ve=ye.create,Ke=ve.create,Ye=xe.create,Qe=Te.create,Xe=Ne.create,Je=Oe.create,et=Le.create,tt="2.0",nt=Ke([He(),qe().int()]),rt=He(),st=Ve({progressToken:et(nt)}).passthrough(),it=Ve({_meta:et(st)}).passthrough(),at=Ve({method:He(),params:et(it)}),ot=Ve({_meta:et(Ve({}).passthrough())}).passthrough(),ct=Ve({method:He(),params:et(ot)}),ut=Ve({_meta:et(Ve({}).passthrough())}).passthrough(),dt=Ke([He(),qe().int()]),lt=Ve({jsonrpc:Xe(tt),id:dt}).merge(at).strict(),ht=Ve({jsonrpc:Xe(tt)}).merge(ct).strict(),pt=Ve({jsonrpc:Xe(tt),id:dt,result:ut}).strict();var ft;!function(e){e[e.ConnectionClosed=-32e3]="ConnectionClosed",e[e.RequestTimeout=-32001]="RequestTimeout",e[e.ParseError=-32700]="ParseError",e[e.InvalidRequest=-32600]="InvalidRequest",e[e.MethodNotFound=-32601]="MethodNotFound",e[e.InvalidParams=-32602]="InvalidParams",e[e.InternalError=-32603]="InternalError"}(ft||(ft={}));const mt=Ke([lt,ht,pt,Ve({jsonrpc:Xe(tt),id:dt,error:Ve({code:qe().int(),message:He(),data:et(Be())})}).strict()]),gt=ut.strict(),yt=ct.extend({method:Xe("notifications/cancelled"),params:ot.extend({requestId:dt,reason:He().optional()})}),vt=Ve({name:He(),title:et(He())}).passthrough(),_t=vt.extend({version:He()}),xt=Ve({experimental:et(Ve({}).passthrough()),sampling:et(Ve({}).passthrough()),elicitation:et(Ve({}).passthrough()),roots:et(Ve({listChanged:et(We())}).passthrough())}).passthrough(),wt=at.extend({method:Xe("initialize"),params:it.extend({protocolVersion:He(),capabilities:xt,clientInfo:_t})}),bt=Ve({experimental:et(Ve({}).passthrough()),logging:et(Ve({}).passthrough()),completions:et(Ve({}).passthrough()),prompts:et(Ve({listChanged:et(We())}).passthrough()),resources:et(Ve({subscribe:et(We()),listChanged:et(We())}).passthrough()),tools:et(Ve({listChanged:et(We())}).passthrough())}).passthrough(),kt=ut.extend({protocolVersion:He(),capabilities:bt,serverInfo:_t,instructions:et(He())}),Tt=ct.extend({method:Xe("notifications/initialized")}),Et=at.extend({method:Xe("ping")}),St=Ve({progress:qe(),total:et(qe()),message:et(He())}).passthrough(),At=ct.extend({method:Xe("notifications/progress"),params:ot.merge(St).extend({progressToken:nt})}),Nt=at.extend({params:it.extend({cursor:et(rt)}).optional()}),Ct=ut.extend({nextCursor:et(rt)}),Ot=Ve({uri:He(),mimeType:et(He()),_meta:et(Ve({}).passthrough())}).passthrough(),Rt=Ot.extend({text:He()}),It=He().refine(e=>{try{return atob(e),!0}catch(e){return!1}},{message:"Invalid Base64 string"}),Mt=Ot.extend({blob:It}),Lt=vt.extend({uri:He(),description:et(He()),mimeType:et(He()),_meta:et(Ve({}).passthrough())}),Pt=vt.extend({uriTemplate:He(),description:et(He()),mimeType:et(He()),_meta:et(Ve({}).passthrough())}),Dt=Nt.extend({method:Xe("resources/list")}),jt=Ct.extend({resources:Ge(Lt)}),Zt=Nt.extend({method:Xe("resources/templates/list")}),$t=Ct.extend({resourceTemplates:Ge(Pt)}),Ft=at.extend({method:Xe("resources/read"),params:it.extend({uri:He()})}),zt=ut.extend({contents:Ge(Ke([Rt,Mt]))}),Ut=ct.extend({method:Xe("notifications/resources/list_changed")}),Ht=at.extend({method:Xe("resources/subscribe"),params:it.extend({uri:He()})}),qt=at.extend({method:Xe("resources/unsubscribe"),params:it.extend({uri:He()})}),Wt=ct.extend({method:Xe("notifications/resources/updated"),params:ot.extend({uri:He()})}),Bt=Ve({name:He(),description:et(He()),required:et(We())}).passthrough(),Gt=vt.extend({description:et(He()),arguments:et(Ge(Bt)),_meta:et(Ve({}).passthrough())}),Vt=Nt.extend({method:Xe("prompts/list")}),Kt=Ct.extend({prompts:Ge(Gt)}),Yt=at.extend({method:Xe("prompts/get"),params:it.extend({name:He(),arguments:et(Qe(He()))})}),Qt=Ve({type:Xe("text"),text:He(),_meta:et(Ve({}).passthrough())}).passthrough(),Xt=Ve({type:Xe("image"),data:It,mimeType:He(),_meta:et(Ve({}).passthrough())}).passthrough(),Jt=Ve({type:Xe("audio"),data:It,mimeType:He(),_meta:et(Ve({}).passthrough())}).passthrough(),en=Ve({type:Xe("resource"),resource:Ke([Rt,Mt]),_meta:et(Ve({}).passthrough())}).passthrough(),tn=Ke([Qt,Xt,Jt,Lt.extend({type:Xe("resource_link")}),en]),nn=Ve({role:Je(["user","assistant"]),content:tn}).passthrough(),rn=ut.extend({description:et(He()),messages:Ge(nn)}),sn=ct.extend({method:Xe("notifications/prompts/list_changed")}),an=Ve({title:et(He()),readOnlyHint:et(We()),destructiveHint:et(We()),idempotentHint:et(We()),openWorldHint:et(We())}).passthrough(),on=vt.extend({description:et(He()),inputSchema:Ve({type:Xe("object"),properties:et(Ve({}).passthrough()),required:et(Ge(He()))}).passthrough(),outputSchema:et(Ve({type:Xe("object"),properties:et(Ve({}).passthrough()),required:et(Ge(He()))}).passthrough()),annotations:et(an),_meta:et(Ve({}).passthrough())}),cn=Nt.extend({method:Xe("tools/list")}),un=Ct.extend({tools:Ge(on)}),dn=ut.extend({content:Ge(tn).default([]),structuredContent:Ve({}).passthrough().optional(),isError:et(We())}),ln=(dn.or(ut.extend({toolResult:Be()})),at.extend({method:Xe("tools/call"),params:it.extend({name:He(),arguments:et(Qe(Be()))})})),hn=ct.extend({method:Xe("notifications/tools/list_changed")}),pn=Je(["debug","info","notice","warning","error","critical","alert","emergency"]),fn=at.extend({method:Xe("logging/setLevel"),params:it.extend({level:pn})}),mn=ct.extend({method:Xe("notifications/message"),params:ot.extend({level:pn,logger:et(He()),data:Be()})}),gn=Ve({name:He().optional()}).passthrough(),yn=Ve({hints:et(Ge(gn)),costPriority:et(qe().min(0).max(1)),speedPriority:et(qe().min(0).max(1)),intelligencePriority:et(qe().min(0).max(1))}).passthrough(),vn=Ve({role:Je(["user","assistant"]),content:Ke([Qt,Xt,Jt])}).passthrough(),_n=at.extend({method:Xe("sampling/createMessage"),params:it.extend({messages:Ge(vn),systemPrompt:et(He()),includeContext:et(Je(["none","thisServer","allServers"])),temperature:et(qe()),maxTokens:qe().int(),stopSequences:et(Ge(He())),metadata:et(Ve({}).passthrough()),modelPreferences:et(yn)})}),xn=ut.extend({model:He(),stopReason:et(Je(["endTurn","stopSequence","maxTokens"]).or(He())),role:Je(["user","assistant"]),content:Ye("type",[Qt,Xt,Jt])}),wn=Ke([Ve({type:Xe("boolean"),title:et(He()),description:et(He()),default:et(We())}).passthrough(),Ve({type:Xe("string"),title:et(He()),description:et(He()),minLength:et(qe()),maxLength:et(qe()),format:et(Je(["email","uri","date","date-time"]))}).passthrough(),Ve({type:Je(["number","integer"]),title:et(He()),description:et(He()),minimum:et(qe()),maximum:et(qe())}).passthrough(),Ve({type:Xe("string"),title:et(He()),description:et(He()),enum:Ge(He()),enumNames:et(Ge(He()))}).passthrough()]),bn=at.extend({method:Xe("elicitation/create"),params:it.extend({message:He(),requestedSchema:Ve({type:Xe("object"),properties:Qe(He(),wn),required:et(Ge(He()))}).passthrough()})}),kn=ut.extend({action:Je(["accept","decline","cancel"]),content:et(Qe(He(),Be()))}),Tn=Ve({type:Xe("ref/resource"),uri:He()}).passthrough(),En=Ve({type:Xe("ref/prompt"),name:He()}).passthrough(),Sn=at.extend({method:Xe("completion/complete"),params:it.extend({ref:Ke([En,Tn]),argument:Ve({name:He(),value:He()}).passthrough(),context:et(Ve({arguments:et(Qe(He(),He()))}))})}),An=ut.extend({completion:Ve({values:Ge(He()).max(100),total:et(qe().int()),hasMore:et(We())}).passthrough()}),Nn=Ve({uri:He().startsWith("file://"),name:et(He()),_meta:et(Ve({}).passthrough())}).passthrough(),Cn=at.extend({method:Xe("roots/list")}),On=ut.extend({roots:Ge(Nn)}),Rn=ct.extend({method:Xe("notifications/roots/list_changed")});Ke([Et,wt,Sn,fn,Yt,Vt,Dt,Zt,Ft,Ht,qt,ln,cn]),Ke([yt,At,Tt,Rn]),Ke([gt,xn,kn,On]),Ke([Et,_n,bn,Cn]),Ke([yt,At,mn,Wt,Ut,hn,sn]),Ke([gt,kt,An,rn,Kt,jt,$t,zt,dn,un]),Error;class In{sessionId;onmessage;onerror;onclose;_port;_started=!1;_closed=!1;constructor(e,t){if(!e)throw new Error("MessagePort is required");this._port=e,this.sessionId=t||this.generateId(),this._port.onmessage=e=>{try{const t=mt.parse(e.data);this.onmessage?.(t)}catch(e){const t=new Error(`Failed to parse message: ${e}`);this.onerror?.(t)}},this._port.onmessageerror=e=>{const t=new Error(`MessagePort error: ${JSON.stringify(e)}`);this.onerror?.(t)}}static generateSessionId(){return"undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():`${Date.now().toString(36)}-${Math.random().toString(36).substring(2,10)}`}async start(){if(this._started)throw new Error("BrowserContextTransport already started! If using Client or Server class, note that connect() calls start() automatically.");if(this._closed)throw new Error("Cannot start a closed BrowserContextTransport");this._started=!0,this._port.start()}async send(e){if(this._closed)throw new Error("Cannot send on a closed BrowserContextTransport");return new Promise((t,n)=>{try{this._port.postMessage(e),t()}catch(e){const r=e instanceof Error?e:new Error(String(e));this.onerror?.(r),n(r)}})}async close(){this._closed||(this._closed=!0,this._port.close(),this.onclose?.())}generateId(){return In.generateSessionId()}}class Mn{angieDetector;registrationQueue;clientManager;isInitialized=!1;instanceId;constructor(){this.instanceId=Math.random().toString(36).substring(2,8),this.angieDetector=new d,this.registrationQueue=new l,this.clientManager=new h,this.setupAngieReadyHandler(),this.setupServerInitHandler(),this.setupReRegistrationHandler()}setupReRegistrationHandler(){window.addEventListener("message",e=>{e.data?.type===o.SDK_ANGIE_REFRESH_PING&&this.registrationQueue.resetAllToPending()&&(this.registrationQueue.getPending(),this.handleAngieReady())})}setupAngieReadyHandler(){this.angieDetector.waitForReady().then(e=>{e.isReady&&this.handleAngieReady()}).catch(e=>{})}async handleAngieReady(){try{await this.registrationQueue.processQueue(async e=>{await this.processRegistration(e)}),this.isInitialized=!0}catch(r){}}async processRegistration(e){try{const t={...e,instanceId:this.instanceId};await this.clientManager.requestClientCreation(t)}catch(s){throw s}}registerLocalServer(e){return e.type=a.LOCAL,e.transport=s.POST_MESSAGE,this.registerServer(e)}registerRemoteServer(e){return e.type=a.REMOTE,this.registerServer(e)}async registerServer(e){if(!e.type)return void this.registerLocalServer(e);if(!e.name)throw new Error("Server name is required");if(!e.description)throw new Error("Server description is required");if("type"in e&&"local"===e.type&&!e.server||!("type"in e)&&!e.server)throw new Error("Server instance is required");const t=this.registrationQueue.add(e);if(this.angieDetector.isReady())try{await this.processRegistration(t),this.registrationQueue.updateStatus(t.id,"registered")}catch(e){const n=e instanceof Error?e.message:String(e);throw this.registrationQueue.updateStatus(t.id,"failed",n),e}}getRegistrations(){return this.registrationQueue.getAll()}getPendingRegistrations(){return this.registrationQueue.getPending()}isAngieReady(){return this.angieDetector.isReady()}isReady(){return this.isInitialized}async waitForReady(){if(!(await this.angieDetector.waitForReady()).isReady)throw new Error("Angie is not available");for(;!this.isInitialized;)await new Promise(e=>setTimeout(e,100))}destroy(){this.registrationQueue.clear()}setupServerInitHandler(){window.addEventListener("message",e=>{e.data?.type===o.SDK_REQUEST_INIT_SERVER&&this.handleServerInitRequest(e)})}handleServerInitRequest(e){const{clientId:t,serverId:n,instanceId:r}=e.data.payload||{};if(t&&n)if(r&&r!==this.instanceId);else try{const t=this.registrationQueue.getAll().find(e=>e.id===n);if(!t)return;if("type"in t.config&&"remote"===t.config.type)return;const r=e.ports[0];if(!r)return;const s=t.config.server,i=new In(r);s.connect(i)}catch(e){}}}},30228:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function s(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!==typeof r)throw new TypeError("The listener must be a function");var o=new s(r,i||e,a),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],o]:e._events[c].push(o):(e._events[c]=o,e._eventsCount++),e}function a(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function o(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),o.prototype.eventNames=function(){var e,r,s=[];if(0===this._eventsCount)return s;for(r in e=this._events)t.call(e,r)&&s.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(e)):s},o.prototype.listeners=function(e){var t=this._events[n?n+e:e];if(!t)return[];if(t.fn)return[t.fn];for(var r=0,s=t.length,i=new Array(s);r<s;r++)i[r]=t[r].fn;return i},o.prototype.listenerCount=function(e){var t=this._events[n?n+e:e];return t?t.fn?1:t.length:0},o.prototype.emit=function(e,t,r,s,i,a){var o=n?n+e:e;if(!this._events[o])return!1;var c,u,d=this._events[o],l=arguments.length;if(d.fn){switch(d.once&&this.removeListener(e,d.fn,void 0,!0),l){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,t),!0;case 3:return d.fn.call(d.context,t,r),!0;case 4:return d.fn.call(d.context,t,r,s),!0;case 5:return d.fn.call(d.context,t,r,s,i),!0;case 6:return d.fn.call(d.context,t,r,s,i,a),!0}for(u=1,c=new Array(l-1);u<l;u++)c[u-1]=arguments[u];d.fn.apply(d.context,c)}else{var h,p=d.length;for(u=0;u<p;u++)switch(d[u].once&&this.removeListener(e,d[u].fn,void 0,!0),l){case 1:d[u].fn.call(d[u].context);break;case 2:d[u].fn.call(d[u].context,t);break;case 3:d[u].fn.call(d[u].context,t,r);break;case 4:d[u].fn.call(d[u].context,t,r,s);break;default:if(!c)for(h=1,c=new Array(l-1);h<l;h++)c[h-1]=arguments[h];d[u].fn.apply(d[u].context,c)}}return!0},o.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},o.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},o.prototype.removeListener=function(e,t,r,s){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var o=this._events[i];if(o.fn)o.fn!==t||s&&!o.once||r&&o.context!==r||a(this,i);else{for(var c=0,u=[],d=o.length;c<d;c++)(o[c].fn!==t||s&&!o[c].once||r&&o[c].context!==r)&&u.push(o[c]);u.length?this._events[i]=1===u.length?u[0]:u:a(this,i)}return this},o.prototype.removeAllListeners=function(e){var t;return e?this._events[t=n?n+e:e]&&a(this,t):(this._events=new r,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=n,o.EventEmitter=o,e.exports=o},32017:e=>{"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,s,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(s=r;0!==s--;)if(!e(t[s],n[s]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(s=r;0!==s--;)if(!Object.prototype.hasOwnProperty.call(n,i[s]))return!1;for(s=r;0!==s--;){var a=i[s];if(!e(t[a],n[a]))return!1}return!0}return t!==t&&n!==n}},38351:function(e,t,n){var r;!function(){"use strict";var s,i=1e9,a={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},o=!0,c="[DecimalError] ",u=c+"Invalid argument: ",d=c+"Exponent out of range: ",l=Math.floor,h=Math.pow,p=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,f=1e7,m=l(1286742750677284.5),g={};function y(e,t){var n,r,s,i,a,c,u,d,l=e.constructor,h=l.precision;if(!e.s||!t.s)return t.s||(t=new l(e)),o?A(t,h):t;if(d=t.d,a=e.e,s=t.e,u=(u=e.d).slice(),i=a-s){for(i<0?(r=u,i=-i,c=d.length):(r=d,s=a,c=u.length),i>(c=(a=Math.ceil(h/7))>c?a+1:c+1)&&(i=c,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((c=u.length)-(i=d.length)<0&&(i=c,r=d,d=u,u=r),n=0;i;)n=(u[--i]=u[i]+d[i]+n)/f|0,u[i]%=f;for(n&&(u.unshift(n),++s),c=u.length;0==u[--c];)u.pop();return t.d=u,t.e=s,o?A(t,h):t}function v(e,t,n){if(e!==~~e||e<t||e>n)throw Error(u+e)}function _(e){var t,n,r,s=e.length-1,i="",a=e[0];if(s>0){for(i+=a,t=1;t<s;t++)(n=7-(r=e[t]+"").length)&&(i+=T(n)),i+=r;(n=7-(r=(a=e[t])+"").length)&&(i+=T(n))}else if(0===a)return"0";for(;a%10===0;)a/=10;return i+a}g.absoluteValue=g.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},g.comparedTo=g.cmp=function(e){var t,n,r,s,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(t=0,n=(r=i.d.length)<(s=e.d.length)?r:s;t<n;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return r===s?0:r>s^i.s<0?1:-1},g.decimalPlaces=g.dp=function(){var e=this,t=e.d.length-1,n=7*(t-e.e);if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},g.dividedBy=g.div=function(e){return x(this,new this.constructor(e))},g.dividedToIntegerBy=g.idiv=function(e){var t=this.constructor;return A(x(this,new t(e),0,1),t.precision)},g.equals=g.eq=function(e){return!this.cmp(e)},g.exponent=function(){return b(this)},g.greaterThan=g.gt=function(e){return this.cmp(e)>0},g.greaterThanOrEqualTo=g.gte=function(e){return this.cmp(e)>=0},g.isInteger=g.isint=function(){return this.e>this.d.length-2},g.isNegative=g.isneg=function(){return this.s<0},g.isPositive=g.ispos=function(){return this.s>0},g.isZero=function(){return 0===this.s},g.lessThan=g.lt=function(e){return this.cmp(e)<0},g.lessThanOrEqualTo=g.lte=function(e){return this.cmp(e)<1},g.logarithm=g.log=function(e){var t,n=this,r=n.constructor,i=r.precision,a=i+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(s))throw Error(c+"NaN");if(n.s<1)throw Error(c+(n.s?"NaN":"-Infinity"));return n.eq(s)?new r(0):(o=!1,t=x(E(n,a),E(e,a),a),o=!0,A(t,i))},g.minus=g.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?N(t,e):y(t,(e.s=-e.s,e))},g.modulo=g.mod=function(e){var t,n=this,r=n.constructor,s=r.precision;if(!(e=new r(e)).s)throw Error(c+"NaN");return n.s?(o=!1,t=x(n,e,0,1).times(e),o=!0,n.minus(t)):A(new r(n),s)},g.naturalExponential=g.exp=function(){return w(this)},g.naturalLogarithm=g.ln=function(){return E(this)},g.negated=g.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},g.plus=g.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?y(t,e):N(t,(e.s=-e.s,e))},g.precision=g.sd=function(e){var t,n,r,s=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(u+e);if(t=b(s)+1,n=7*(r=s.d.length-1)+1,r=s.d[r]){for(;r%10==0;r/=10)n--;for(r=s.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},g.squareRoot=g.sqrt=function(){var e,t,n,r,s,i,a,u=this,d=u.constructor;if(u.s<1){if(!u.s)return new d(0);throw Error(c+"NaN")}for(e=b(u),o=!1,0==(s=Math.sqrt(+u))||s==1/0?(((t=_(u.d)).length+e)%2==0&&(t+="0"),s=Math.sqrt(t),e=l((e+1)/2)-(e<0||e%2),r=new d(t=s==1/0?"5e"+e:(t=s.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new d(s.toString()),s=a=(n=d.precision)+3;;)if(r=(i=r).plus(x(u,i,a+2)).times(.5),_(i.d).slice(0,a)===(t=_(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),s==a&&"4999"==t){if(A(i,n+1,0),i.times(i).eq(u)){r=i;break}}else if("9999"!=t)break;a+=4}return o=!0,A(r,n)},g.times=g.mul=function(e){var t,n,r,s,i,a,c,u,d,l=this,h=l.constructor,p=l.d,m=(e=new h(e)).d;if(!l.s||!e.s)return new h(0);for(e.s*=l.s,n=l.e+e.e,(u=p.length)<(d=m.length)&&(i=p,p=m,m=i,a=u,u=d,d=a),i=[],r=a=u+d;r--;)i.push(0);for(r=d;--r>=0;){for(t=0,s=u+r;s>r;)c=i[s]+m[r]*p[s-r-1]+t,i[s--]=c%f|0,t=c/f|0;i[s]=(i[s]+t)%f|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,o?A(e,h.precision):e},g.toDecimalPlaces=g.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(v(e,0,i),void 0===t?t=r.rounding:v(t,0,8),A(n,e+b(n)+1,t))},g.toExponential=function(e,t){var n,r=this,s=r.constructor;return void 0===e?n=C(r,!0):(v(e,0,i),void 0===t?t=s.rounding:v(t,0,8),n=C(r=A(new s(r),e+1,t),!0,e+1)),n},g.toFixed=function(e,t){var n,r,s=this,a=s.constructor;return void 0===e?C(s):(v(e,0,i),void 0===t?t=a.rounding:v(t,0,8),n=C((r=A(new a(s),e+b(s)+1,t)).abs(),!1,e+b(r)+1),s.isneg()&&!s.isZero()?"-"+n:n)},g.toInteger=g.toint=function(){var e=this,t=e.constructor;return A(new t(e),b(e)+1,t.rounding)},g.toNumber=function(){return+this},g.toPower=g.pow=function(e){var t,n,r,i,a,u=this,d=u.constructor,h=+(e=new d(e));if(!e.s)return new d(s);if(!(u=new d(u)).s){if(e.s<1)throw Error(c+"Infinity");return u}if(u.eq(s))return u;if(r=d.precision,e.eq(s))return A(u,r);if(a=u.s,(t=e.e)>=(n=e.d.length-1)){if((n=h<0?-h:h)<=9007199254740991){for(i=new d(s),t=Math.ceil(r/7+4),o=!1;n%2&&O((i=i.times(u)).d,t),0!==(n=l(n/2));)O((u=u.times(u)).d,t);return o=!0,e.s<0?new d(s).div(i):A(i,r)}}else if(a<0)throw Error(c+"NaN");return a=a<0&&1&e.d[Math.max(t,n)]?-1:1,u.s=1,o=!1,i=e.times(E(u,r+12)),o=!0,(i=w(i)).s=a,i},g.toPrecision=function(e,t){var n,r,s=this,a=s.constructor;return void 0===e?r=C(s,(n=b(s))<=a.toExpNeg||n>=a.toExpPos):(v(e,1,i),void 0===t?t=a.rounding:v(t,0,8),r=C(s=A(new a(s),e,t),e<=(n=b(s))||n<=a.toExpNeg,e)),r},g.toSignificantDigits=g.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(v(e,1,i),void 0===t?t=n.rounding:v(t,0,8)),A(new n(this),e,t)},g.toString=g.valueOf=g.val=g.toJSON=function(){var e=this,t=b(e),n=e.constructor;return C(e,t<=n.toExpNeg||t>=n.toExpPos)};var x=function(){function e(e,t){var n,r=0,s=e.length;for(e=e.slice();s--;)e[s]=(n=e[s]*t+r)%f|0,r=n/f|0;return r&&e.unshift(r),e}function t(e,t,n,r){var s,i;if(n!=r)i=n>r?1:-1;else for(s=i=0;s<n;s++)if(e[s]!=t[s]){i=e[s]>t[s]?1:-1;break}return i}function n(e,t,n){for(var r=0;n--;)e[n]-=r,e[n]=(r=e[n]<t[n]?1:0)*f+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,s,i,a){var o,u,d,l,h,p,m,g,y,v,_,x,w,k,T,E,S,N,C=r.constructor,O=r.s==s.s?1:-1,R=r.d,I=s.d;if(!r.s)return new C(r);if(!s.s)throw Error(c+"Division by zero");for(u=r.e-s.e,S=I.length,T=R.length,g=(m=new C(O)).d=[],d=0;I[d]==(R[d]||0);)++d;if(I[d]>(R[d]||0)&&--u,(x=null==i?i=C.precision:a?i+(b(r)-b(s))+1:i)<0)return new C(0);if(x=x/7+2|0,d=0,1==S)for(l=0,I=I[0],x++;(d<T||l)&&x--;d++)g[d]=(w=l*f+(R[d]||0))/I|0,l=w%I|0;else{for((l=f/(I[0]+1)|0)>1&&(I=e(I,l),R=e(R,l),S=I.length,T=R.length),k=S,v=(y=R.slice(0,S)).length;v<S;)y[v++]=0;(N=I.slice()).unshift(0),E=I[0],I[1]>=f/2&&++E;do{l=0,(o=t(I,y,S,v))<0?(_=y[0],S!=v&&(_=_*f+(y[1]||0)),(l=_/E|0)>1?(l>=f&&(l=f-1),1==(o=t(h=e(I,l),y,p=h.length,v=y.length))&&(l--,n(h,S<p?N:I,p))):(0==l&&(o=l=1),h=I.slice()),(p=h.length)<v&&h.unshift(0),n(y,h,v),-1==o&&(o=t(I,y,S,v=y.length))<1&&(l++,n(y,S<v?N:I,v)),v=y.length):0===o&&(l++,y=[0]),g[d++]=l,o&&y[0]?y[v++]=R[k]||0:(y=[R[k]],v=1)}while((k++<T||void 0!==y[0])&&x--)}return g[0]||g.shift(),m.e=u,A(m,a?i+b(m)+1:i)}}();function w(e,t){var n,r,i,a,c,u=0,l=0,p=e.constructor,f=p.precision;if(b(e)>16)throw Error(d+b(e));if(!e.s)return new p(s);for(null==t?(o=!1,c=f):c=t,a=new p(.03125);e.abs().gte(.1);)e=e.times(a),l+=5;for(c+=Math.log(h(2,l))/Math.LN10*2+5|0,n=r=i=new p(s),p.precision=c;;){if(r=A(r.times(e),c),n=n.times(++u),_((a=i.plus(x(r,n,c))).d).slice(0,c)===_(i.d).slice(0,c)){for(;l--;)i=A(i.times(i),c);return p.precision=f,null==t?(o=!0,A(i,f)):i}i=a}}function b(e){for(var t=7*e.e,n=e.d[0];n>=10;n/=10)t++;return t}function k(e,t,n){if(t>e.LN10.sd())throw o=!0,n&&(e.precision=n),Error(c+"LN10 precision limit exceeded");return A(new e(e.LN10),t)}function T(e){for(var t="";e--;)t+="0";return t}function E(e,t){var n,r,i,a,u,d,l,h,p,f=1,m=e,g=m.d,y=m.constructor,v=y.precision;if(m.s<1)throw Error(c+(m.s?"NaN":"-Infinity"));if(m.eq(s))return new y(0);if(null==t?(o=!1,h=v):h=t,m.eq(10))return null==t&&(o=!0),k(y,h);if(y.precision=h+=10,r=(n=_(g)).charAt(0),a=b(m),!(Math.abs(a)<15e14))return l=k(y,h+2,v).times(a+""),m=E(new y(r+"."+n.slice(1)),h-10).plus(l),y.precision=v,null==t?(o=!0,A(m,v)):m;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=_((m=m.times(e)).d)).charAt(0),f++;for(a=b(m),r>1?(m=new y("0."+n),a++):m=new y(r+"."+n.slice(1)),d=u=m=x(m.minus(s),m.plus(s),h),p=A(m.times(m),h),i=3;;){if(u=A(u.times(p),h),_((l=d.plus(x(u,new y(i),h))).d).slice(0,h)===_(d.d).slice(0,h))return d=d.times(2),0!==a&&(d=d.plus(k(y,h+2,v).times(a+""))),d=x(d,new y(f),h),y.precision=v,null==t?(o=!0,A(d,v)):d;d=l,i+=2}}function S(e,t){var n,r,s;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(s=t.length;48===t.charCodeAt(s-1);)--s;if(t=t.slice(r,s)){if(s-=r,e.e=l((n=n-r-1)/7),e.d=[],r=(n+1)%7,n<0&&(r+=7),r<s){for(r&&e.d.push(+t.slice(0,r)),s-=7;r<s;)e.d.push(+t.slice(r,r+=7));r=7-(t=t.slice(r)).length}else r-=s;for(;r--;)t+="0";if(e.d.push(+t),o&&(e.e>m||e.e<-m))throw Error(d+n)}else e.s=0,e.e=0,e.d=[0];return e}function A(e,t,n){var r,s,i,a,c,u,p,g,y=e.d;for(a=1,i=y[0];i>=10;i/=10)a++;if((r=t-a)<0)r+=7,s=t,p=y[g=0];else{if((g=Math.ceil((r+1)/7))>=(i=y.length))return e;for(p=i=y[g],a=1;i>=10;i/=10)a++;s=(r%=7)-7+a}if(void 0!==n&&(c=p/(i=h(10,a-s-1))%10|0,u=t<0||void 0!==y[g+1]||p%i,u=n<4?(c||u)&&(0==n||n==(e.s<0?3:2)):c>5||5==c&&(4==n||u||6==n&&(r>0?s>0?p/h(10,a-s):0:y[g-1])%10&1||n==(e.s<0?8:7))),t<1||!y[0])return u?(i=b(e),y.length=1,y[0]=h(10,(7-(t=t-i-1)%7)%7),e.e=l(-t/7)||0):(y.length=1,y[0]=e.e=e.s=0),e;if(0==r?(y.length=g,i=1,g--):(y.length=g+1,i=h(10,7-r),y[g]=s>0?(p/h(10,a-s)%h(10,s)|0)*i:0),u)for(;;){if(0==g){(y[0]+=i)==f&&(y[0]=1,++e.e);break}if(y[g]+=i,y[g]!=f)break;y[g--]=0,i=1}for(r=y.length;0===y[--r];)y.pop();if(o&&(e.e>m||e.e<-m))throw Error(d+b(e));return e}function N(e,t){var n,r,s,i,a,c,u,d,l,h,p=e.constructor,m=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),o?A(t,m):t;if(h=t.d,r=t.e,d=e.e,u=(u=e.d).slice(),a=d-r){for((l=a<0)?(n=u,a=-a,c=h.length):(n=h,r=d,c=u.length),a>(s=Math.max(Math.ceil(m/7),c)+2)&&(a=s,n.length=1),n.reverse(),s=a;s--;)n.push(0);n.reverse()}else{for((l=(s=u.length)<(c=h.length))&&(c=s),s=0;s<c;s++)if(u[s]!=h[s]){l=u[s]<h[s];break}a=0}for(l&&(n=u,u=h,h=n,t.s=-t.s),s=h.length-(c=u.length);s>0;--s)u[c++]=0;for(s=h.length;s>a;){if(u[--s]<h[s]){for(i=s;i&&0===u[--i];)u[i]=f-1;--u[i],u[s]+=f}u[s]-=h[s]}for(;0===u[--c];)u.pop();for(;0===u[0];u.shift())--r;return u[0]?(t.d=u,t.e=r,o?A(t,m):t):new p(0)}function C(e,t,n){var r,s=b(e),i=_(e.d),a=i.length;return t?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+T(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(s<0?"e":"e+")+s):s<0?(i="0."+T(-s-1)+i,n&&(r=n-a)>0&&(i+=T(r))):s>=a?(i+=T(s+1-a),n&&(r=n-s-1)>0&&(i=i+"."+T(r))):((r=s+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(s+1===a&&(i+="."),i+=T(r))),e.s<0?"-"+i:i}function O(e,t){if(e.length>t)return e.length=t,!0}function R(e){if(!e||"object"!==typeof e)throw Error(c+"Object expected");var t,n,r,s=["precision",1,i,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<s.length;t+=3)if(void 0!==(r=e[n=s[t]])){if(!(l(r)===r&&r>=s[t+1]&&r<=s[t+2]))throw Error(u+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(u+n+": "+r);this[n]=new this(r)}return this}(a=function e(t){var n,r,s;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"===typeof e){if(0*e!==0)throw Error(u+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):S(t,e.toString())}if("string"!==typeof e)throw Error(u+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!p.test(e))throw Error(u+e);S(t,e)}if(i.prototype=g,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=e,i.config=i.set=R,void 0===t&&(t={}),t)for(s=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<s.length;)t.hasOwnProperty(r=s[n++])||(t[r]=this[r]);return i.config(t),i}(a)).default=a.Decimal=a,s=new a(1),void 0===(r=function(){return a}.call(t,n,t,e))||(e.exports=r)}()},51893:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var r=function(){function e(e){var t=this;this._insertTag=function(e){t.container.insertBefore(e,0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),s=n(40390),i=n(19735),a=n(24534),o=n(50483),c=n(49503),u=n(73716),d=function(e,t,n){for(var r=0,i=0;r=i,i=(0,s.se)(),38===r&&12===i&&(t[n]=1),!(0,s.Sh)(i);)(0,s.K2)();return(0,s.di)(e,s.G1)},l=new WeakMap,h=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||l.get(n))&&!r){l.set(e,!0);for(var a=[],o=function(e,t){return(0,s.VF)(function(e,t){var n=-1,r=44;do{switch((0,s.Sh)(r)){case 0:38===r&&12===(0,s.se)()&&(t[n]=1),e[n]+=d(s.G1-1,t,n);break;case 2:e[n]+=(0,s.Tb)(r);break;case 4:if(44===r){e[++n]=58===(0,s.se)()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=(0,i.HT)(r)}}while(r=(0,s.K2)());return e}((0,s.c4)(e),t))}(t,a),c=n.props,u=0,h=0;u<o.length;u++)for(var p=0;p<c.length;p++,h++)e.props[h]=a[u]?o[u].replace(/&\f/g,c[p]):c[p]+" "+o[u]}}},p=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function f(e,t){switch((0,i.tW)(e,t)){case 5103:return a.j+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return a.j+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return a.j+e+a.vd+e+a.MS+e+e;case 6828:case 4268:return a.j+e+a.MS+e+e;case 6165:return a.j+e+a.MS+"flex-"+e+e;case 5187:return a.j+e+(0,i.HC)(e,/(\w+).+(:[^]+)/,a.j+"box-$1$2"+a.MS+"flex-$1$2")+e;case 5443:return a.j+e+a.MS+"flex-item-"+(0,i.HC)(e,/flex-|-self/,"")+e;case 4675:return a.j+e+a.MS+"flex-line-pack"+(0,i.HC)(e,/align-content|flex-|-self/,"")+e;case 5548:return a.j+e+a.MS+(0,i.HC)(e,"shrink","negative")+e;case 5292:return a.j+e+a.MS+(0,i.HC)(e,"basis","preferred-size")+e;case 6060:return a.j+"box-"+(0,i.HC)(e,"-grow","")+a.j+e+a.MS+(0,i.HC)(e,"grow","positive")+e;case 4554:return a.j+(0,i.HC)(e,/([^-])(transform)/g,"$1"+a.j+"$2")+e;case 6187:return(0,i.HC)((0,i.HC)((0,i.HC)(e,/(zoom-|grab)/,a.j+"$1"),/(image-set)/,a.j+"$1"),e,"")+e;case 5495:case 3959:return(0,i.HC)(e,/(image-set\([^]*)/,a.j+"$1$`$1");case 4968:return(0,i.HC)((0,i.HC)(e,/(.+:)(flex-)?(.*)/,a.j+"box-pack:$3"+a.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+a.j+e+e;case 4095:case 3583:case 4068:case 2532:return(0,i.HC)(e,/(.+)-inline(.+)/,a.j+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if((0,i.b2)(e)-1-t>6)switch((0,i.wN)(e,t+1)){case 109:if(45!==(0,i.wN)(e,t+4))break;case 102:return(0,i.HC)(e,/(.+:)(.+)-([^]+)/,"$1"+a.j+"$2-$3$1"+a.vd+(108==(0,i.wN)(e,t+3)?"$3":"$2-$3"))+e;case 115:return~(0,i.K5)(e,"stretch")?f((0,i.HC)(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==(0,i.wN)(e,t+1))break;case 6444:switch((0,i.wN)(e,(0,i.b2)(e)-3-(~(0,i.K5)(e,"!important")&&10))){case 107:return(0,i.HC)(e,":",":"+a.j)+e;case 101:return(0,i.HC)(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+a.j+(45===(0,i.wN)(e,14)?"inline-":"")+"box$3$1"+a.j+"$2$3$1"+a.MS+"$2box$3")+e}break;case 5936:switch((0,i.wN)(e,t+11)){case 114:return a.j+e+a.MS+(0,i.HC)(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return a.j+e+a.MS+(0,i.HC)(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return a.j+e+a.MS+(0,i.HC)(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return a.j+e+a.MS+e+e}return e}var m=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case a.LU:e.return=f(e.value,e.length);break;case a.Sv:return(0,o.l)([(0,s.C)(e,{value:(0,i.HC)(e.value,"@","@"+a.j)})],r);case a.XZ:if(e.length)return(0,i.kg)(e.props,function(t){switch((0,i.YW)(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return(0,o.l)([(0,s.C)(e,{props:[(0,i.HC)(t,/:(read-\w+)/,":"+a.vd+"$1")]})],r);case"::placeholder":return(0,o.l)([(0,s.C)(e,{props:[(0,i.HC)(t,/:(plac\w+)/,":"+a.j+"input-$1")]}),(0,s.C)(e,{props:[(0,i.HC)(t,/:(plac\w+)/,":"+a.vd+"$1")]}),(0,s.C)(e,{props:[(0,i.HC)(t,/:(plac\w+)/,a.MS+"input-$1")]})],r)}return""})}}],g=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var s,i,a=e.stylisPlugins||m,d={},l=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)d[t[n]]=!0;l.push(e)});var f,g=[h,p],y=[o.A,(0,c.MY)(function(e){f.insert(e)})],v=(0,c.r1)(g.concat(a,y));i=function(e,t,n,r){f=n,(0,o.l)((0,u.wE)(e?e+"{"+t.styles+"}":t.styles),v),r&&(_.inserted[t.name]=!0)};var _={key:t,sheet:new r({key:t,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:d,registered:{},insert:i};return _.sheet.hydrate(l),_}},99418:(e,t,n)=>{"use strict";n.d(t,{A:()=>ne});const{entries:r,setPrototypeOf:s,isFrozen:i,getPrototypeOf:a,getOwnPropertyDescriptor:o}=Object;let{freeze:c,seal:u,create:d}=Object,{apply:l,construct:h}="undefined"!==typeof Reflect&&Reflect;c||(c=function(e){return e}),u||(u=function(e){return e}),l||(l=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),s=2;s<n;s++)r[s-2]=arguments[s];return e.apply(t,r)}),h||(h=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const p=N(Array.prototype.forEach),f=N(Array.prototype.lastIndexOf),m=N(Array.prototype.pop),g=N(Array.prototype.push),y=N(Array.prototype.splice),v=N(String.prototype.toLowerCase),_=N(String.prototype.toString),x=N(String.prototype.match),w=N(String.prototype.replace),b=N(String.prototype.indexOf),k=N(String.prototype.trim),T=N(Object.prototype.hasOwnProperty),E=N(RegExp.prototype.test),S=(A=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return h(A,t)});var A;function N(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return l(e,t,r)}}function C(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v;s&&s(e,null);let r=t.length;for(;r--;){let s=t[r];if("string"===typeof s){const e=n(s);e!==s&&(i(t)||(t[r]=e),s=e)}e[s]=!0}return e}function O(e){for(let t=0;t<e.length;t++)T(e,t)||(e[t]=null);return e}function R(e){const t=d(null);for(const[n,s]of r(e))T(e,n)&&(t[n]=Array.isArray(s)?O(s):s&&"object"===typeof s&&s.constructor===Object?R(s):s);return t}function I(e,t){for(;null!==e;){const n=o(e,t);if(n){if(n.get)return N(n.get);if("function"===typeof n.value)return N(n.value)}e=a(e)}return function(){return null}}const M=c(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),L=c(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","slot","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),P=c(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),D=c(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),j=c(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Z=c(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),$=c(["#text"]),F=c(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),z=c(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),U=c(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),H=c(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),q=u(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W=u(/<%[\w\W]*|[\w\W]*%>/gm),B=u(/\$\{[\w\W]*/gm),G=u(/^data-[\-\w.\u00B7-\uFFFF]+$/),V=u(/^aria-[\-\w]+$/),K=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Y=u(/^(?:\w+script|data):/i),Q=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),X=u(/^html$/i),J=u(/^[a-z][.\w]*(-[.\w]+)+$/i);var ee=Object.freeze({__proto__:null,ARIA_ATTR:V,ATTR_WHITESPACE:Q,CUSTOM_ELEMENT:J,DATA_ATTR:G,DOCTYPE_NAME:X,ERB_EXPR:W,IS_ALLOWED_URI:K,IS_SCRIPT_OR_DATA:Y,MUSTACHE_EXPR:q,TMPLIT_EXPR:B});const te=function(){return"undefined"===typeof window?null:window};var ne=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te();const n=t=>e(t);if(n.version="3.2.7",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let{document:s}=t;const i=s,a=i.currentScript,{DocumentFragment:o,HTMLTemplateElement:u,Node:l,Element:h,NodeFilter:A,NamedNodeMap:N=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:O,DOMParser:q,trustedTypes:W}=t,B=h.prototype,G=I(B,"cloneNode"),V=I(B,"remove"),Y=I(B,"nextSibling"),Q=I(B,"childNodes"),J=I(B,"parentNode");if("function"===typeof u){const e=s.createElement("template");e.content&&e.content.ownerDocument&&(s=e.content.ownerDocument)}let ne,re="";const{implementation:se,createNodeIterator:ie,createDocumentFragment:ae,getElementsByTagName:oe}=s,{importNode:ce}=i;let ue={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"===typeof r&&"function"===typeof J&&se&&void 0!==se.createHTMLDocument;const{MUSTACHE_EXPR:de,ERB_EXPR:le,TMPLIT_EXPR:he,DATA_ATTR:pe,ARIA_ATTR:fe,IS_SCRIPT_OR_DATA:me,ATTR_WHITESPACE:ge,CUSTOM_ELEMENT:ye}=ee;let{IS_ALLOWED_URI:ve}=ee,_e=null;const xe=C({},[...M,...L,...P,...j,...$]);let we=null;const be=C({},[...F,...z,...U,...H]);let ke=Object.seal(d(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Te=null,Ee=null,Se=!0,Ae=!0,Ne=!1,Ce=!0,Oe=!1,Re=!0,Ie=!1,Me=!1,Le=!1,Pe=!1,De=!1,je=!1,Ze=!0,$e=!1,Fe=!0,ze=!1,Ue={},He=null;const qe=C({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let We=null;const Be=C({},["audio","video","img","source","image","track"]);let Ge=null;const Ve=C({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ke="http://www.w3.org/1998/Math/MathML",Ye="http://www.w3.org/2000/svg",Qe="http://www.w3.org/1999/xhtml";let Xe=Qe,Je=!1,et=null;const tt=C({},[Ke,Ye,Qe],_);let nt=C({},["mi","mo","mn","ms","mtext"]),rt=C({},["annotation-xml"]);const st=C({},["title","style","font","a","script"]);let it=null;const at=["application/xhtml+xml","text/html"];let ot=null,ct=null;const ut=s.createElement("form"),dt=function(e){return e instanceof RegExp||e instanceof Function},lt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!ct||ct!==e){if(e&&"object"===typeof e||(e={}),e=R(e),it=-1===at.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ot="application/xhtml+xml"===it?_:v,_e=T(e,"ALLOWED_TAGS")?C({},e.ALLOWED_TAGS,ot):xe,we=T(e,"ALLOWED_ATTR")?C({},e.ALLOWED_ATTR,ot):be,et=T(e,"ALLOWED_NAMESPACES")?C({},e.ALLOWED_NAMESPACES,_):tt,Ge=T(e,"ADD_URI_SAFE_ATTR")?C(R(Ve),e.ADD_URI_SAFE_ATTR,ot):Ve,We=T(e,"ADD_DATA_URI_TAGS")?C(R(Be),e.ADD_DATA_URI_TAGS,ot):Be,He=T(e,"FORBID_CONTENTS")?C({},e.FORBID_CONTENTS,ot):qe,Te=T(e,"FORBID_TAGS")?C({},e.FORBID_TAGS,ot):R({}),Ee=T(e,"FORBID_ATTR")?C({},e.FORBID_ATTR,ot):R({}),Ue=!!T(e,"USE_PROFILES")&&e.USE_PROFILES,Se=!1!==e.ALLOW_ARIA_ATTR,Ae=!1!==e.ALLOW_DATA_ATTR,Ne=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ce=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Oe=e.SAFE_FOR_TEMPLATES||!1,Re=!1!==e.SAFE_FOR_XML,Ie=e.WHOLE_DOCUMENT||!1,Pe=e.RETURN_DOM||!1,De=e.RETURN_DOM_FRAGMENT||!1,je=e.RETURN_TRUSTED_TYPE||!1,Le=e.FORCE_BODY||!1,Ze=!1!==e.SANITIZE_DOM,$e=e.SANITIZE_NAMED_PROPS||!1,Fe=!1!==e.KEEP_CONTENT,ze=e.IN_PLACE||!1,ve=e.ALLOWED_URI_REGEXP||K,Xe=e.NAMESPACE||Qe,nt=e.MATHML_TEXT_INTEGRATION_POINTS||nt,rt=e.HTML_INTEGRATION_POINTS||rt,ke=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&dt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ke.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&dt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ke.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"===typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ke.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Oe&&(Ae=!1),De&&(Pe=!0),Ue&&(_e=C({},$),we=[],!0===Ue.html&&(C(_e,M),C(we,F)),!0===Ue.svg&&(C(_e,L),C(we,z),C(we,H)),!0===Ue.svgFilters&&(C(_e,P),C(we,z),C(we,H)),!0===Ue.mathMl&&(C(_e,j),C(we,U),C(we,H))),e.ADD_TAGS&&(_e===xe&&(_e=R(_e)),C(_e,e.ADD_TAGS,ot)),e.ADD_ATTR&&(we===be&&(we=R(we)),C(we,e.ADD_ATTR,ot)),e.ADD_URI_SAFE_ATTR&&C(Ge,e.ADD_URI_SAFE_ATTR,ot),e.FORBID_CONTENTS&&(He===qe&&(He=R(He)),C(He,e.FORBID_CONTENTS,ot)),Fe&&(_e["#text"]=!0),Ie&&C(_e,["html","head","body"]),_e.table&&(C(_e,["tbody"]),delete Te.tbody),e.TRUSTED_TYPES_POLICY){if("function"!==typeof e.TRUSTED_TYPES_POLICY.createHTML)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!==typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ne=e.TRUSTED_TYPES_POLICY,re=ne.createHTML("")}else void 0===ne&&(ne=function(e,t){if("object"!==typeof e||"function"!==typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const s="dompurify"+(n?"#"+n:"");try{return e.createPolicy(s,{createHTML:e=>e,createScriptURL:e=>e})}catch(i){return null}}(W,a)),null!==ne&&"string"===typeof re&&(re=ne.createHTML(""));c&&c(e),ct=e}},ht=C({},[...L,...P,...D]),pt=C({},[...j,...Z]),ft=function(e){g(n.removed,{element:e});try{J(e).removeChild(e)}catch(t){V(e)}},mt=function(e,t){try{g(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(r){g(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Pe||De)try{ft(t)}catch(r){}else try{t.setAttribute(e,"")}catch(r){}},gt=function(e){let t=null,n=null;if(Le)e="<remove></remove>"+e;else{const t=x(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===it&&Xe===Qe&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=ne?ne.createHTML(e):e;if(Xe===Qe)try{t=(new q).parseFromString(r,it)}catch(a){}if(!t||!t.documentElement){t=se.createDocument(Xe,"template",null);try{t.documentElement.innerHTML=Je?re:r}catch(a){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(s.createTextNode(n),i.childNodes[0]||null),Xe===Qe?oe.call(t,Ie?"html":"body")[0]:Ie?t.documentElement:i},yt=function(e){return ie.call(e.ownerDocument||e,e,A.SHOW_ELEMENT|A.SHOW_COMMENT|A.SHOW_TEXT|A.SHOW_PROCESSING_INSTRUCTION|A.SHOW_CDATA_SECTION,null)},vt=function(e){return e instanceof O&&("string"!==typeof e.nodeName||"string"!==typeof e.textContent||"function"!==typeof e.removeChild||!(e.attributes instanceof N)||"function"!==typeof e.removeAttribute||"function"!==typeof e.setAttribute||"string"!==typeof e.namespaceURI||"function"!==typeof e.insertBefore||"function"!==typeof e.hasChildNodes)},_t=function(e){return"function"===typeof l&&e instanceof l};function xt(e,t,r){p(e,e=>{e.call(n,t,r,ct)})}const wt=function(e){let t=null;if(xt(ue.beforeSanitizeElements,e,null),vt(e))return ft(e),!0;const r=ot(e.nodeName);if(xt(ue.uponSanitizeElement,e,{tagName:r,allowedTags:_e}),Re&&e.hasChildNodes()&&!_t(e.firstElementChild)&&E(/<[/\w!]/g,e.innerHTML)&&E(/<[/\w!]/g,e.textContent))return ft(e),!0;if(7===e.nodeType)return ft(e),!0;if(Re&&8===e.nodeType&&E(/<[/\w]/g,e.data))return ft(e),!0;if(!_e[r]||Te[r]){if(!Te[r]&&kt(r)){if(ke.tagNameCheck instanceof RegExp&&E(ke.tagNameCheck,r))return!1;if(ke.tagNameCheck instanceof Function&&ke.tagNameCheck(r))return!1}if(Fe&&!He[r]){const t=J(e)||e.parentNode,n=Q(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const s=G(n[r],!0);s.__removalCount=(e.__removalCount||0)+1,t.insertBefore(s,Y(e))}}return ft(e),!0}return e instanceof h&&!function(e){let t=J(e);t&&t.tagName||(t={namespaceURI:Xe,tagName:"template"});const n=v(e.tagName),r=v(t.tagName);return!!et[e.namespaceURI]&&(e.namespaceURI===Ye?t.namespaceURI===Qe?"svg"===n:t.namespaceURI===Ke?"svg"===n&&("annotation-xml"===r||nt[r]):Boolean(ht[n]):e.namespaceURI===Ke?t.namespaceURI===Qe?"math"===n:t.namespaceURI===Ye?"math"===n&&rt[r]:Boolean(pt[n]):e.namespaceURI===Qe?!(t.namespaceURI===Ye&&!rt[r])&&!(t.namespaceURI===Ke&&!nt[r])&&!pt[n]&&(st[n]||!ht[n]):!("application/xhtml+xml"!==it||!et[e.namespaceURI]))}(e)?(ft(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!E(/<\/no(script|embed|frames)/i,e.innerHTML)?(Oe&&3===e.nodeType&&(t=e.textContent,p([de,le,he],e=>{t=w(t,e," ")}),e.textContent!==t&&(g(n.removed,{element:e.cloneNode()}),e.textContent=t)),xt(ue.afterSanitizeElements,e,null),!1):(ft(e),!0)},bt=function(e,t,n){if(Ze&&("id"===t||"name"===t)&&(n in s||n in ut))return!1;if(Ae&&!Ee[t]&&E(pe,t));else if(Se&&E(fe,t));else if(!we[t]||Ee[t]){if(!(kt(e)&&(ke.tagNameCheck instanceof RegExp&&E(ke.tagNameCheck,e)||ke.tagNameCheck instanceof Function&&ke.tagNameCheck(e))&&(ke.attributeNameCheck instanceof RegExp&&E(ke.attributeNameCheck,t)||ke.attributeNameCheck instanceof Function&&ke.attributeNameCheck(t,e))||"is"===t&&ke.allowCustomizedBuiltInElements&&(ke.tagNameCheck instanceof RegExp&&E(ke.tagNameCheck,n)||ke.tagNameCheck instanceof Function&&ke.tagNameCheck(n))))return!1}else if(Ge[t]);else if(E(ve,w(n,ge,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==b(n,"data:")||!We[e])if(Ne&&!E(me,w(n,ge,"")));else if(n)return!1;return!0},kt=function(e){return"annotation-xml"!==e&&x(e,ye)},Tt=function(e){xt(ue.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||vt(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:we,forceKeepAttr:void 0};let s=t.length;for(;s--;){const a=t[s],{name:o,namespaceURI:c,value:u}=a,d=ot(o),l=u;let h="value"===o?l:k(l);if(r.attrName=d,r.attrValue=h,r.keepAttr=!0,r.forceKeepAttr=void 0,xt(ue.uponSanitizeAttribute,e,r),h=r.attrValue,!$e||"id"!==d&&"name"!==d||(mt(o,e),h="user-content-"+h),Re&&E(/((--!?|])>)|<\/(style|title|textarea)/i,h)){mt(o,e);continue}if("attributename"===d&&x(h,"href")){mt(o,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){mt(o,e);continue}if(!Ce&&E(/\/>/i,h)){mt(o,e);continue}Oe&&p([de,le,he],e=>{h=w(h,e," ")});const f=ot(e.nodeName);if(bt(f,d,h)){if(ne&&"object"===typeof W&&"function"===typeof W.getAttributeType)if(c);else switch(W.getAttributeType(f,d)){case"TrustedHTML":h=ne.createHTML(h);break;case"TrustedScriptURL":h=ne.createScriptURL(h)}if(h!==l)try{c?e.setAttributeNS(c,o,h):e.setAttribute(o,h),vt(e)?ft(e):m(n.removed)}catch(i){mt(o,e)}}else mt(o,e)}xt(ue.afterSanitizeAttributes,e,null)},Et=function e(t){let n=null;const r=yt(t);for(xt(ue.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)xt(ue.uponSanitizeShadowNode,n,null),wt(n),Tt(n),n.content instanceof o&&e(n.content);xt(ue.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,s=null,a=null,c=null;if(Je=!e,Je&&(e="\x3c!--\x3e"),"string"!==typeof e&&!_t(e)){if("function"!==typeof e.toString)throw S("toString is not a function");if("string"!==typeof(e=e.toString()))throw S("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Me||lt(t),n.removed=[],"string"===typeof e&&(ze=!1),ze){if(e.nodeName){const t=ot(e.nodeName);if(!_e[t]||Te[t])throw S("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)r=gt("\x3c!----\x3e"),s=r.ownerDocument.importNode(e,!0),1===s.nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?r=s:r.appendChild(s);else{if(!Pe&&!Oe&&!Ie&&-1===e.indexOf("<"))return ne&&je?ne.createHTML(e):e;if(r=gt(e),!r)return Pe?null:je?re:""}r&&Le&&ft(r.firstChild);const u=yt(ze?e:r);for(;a=u.nextNode();)wt(a),Tt(a),a.content instanceof o&&Et(a.content);if(ze)return e;if(Pe){if(De)for(c=ae.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(we.shadowroot||we.shadowrootmode)&&(c=ce.call(i,c,!0)),c}let d=Ie?r.outerHTML:r.innerHTML;return Ie&&_e["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&E(X,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),Oe&&p([de,le,he],e=>{d=w(d,e," ")}),ne&&je?ne.createHTML(d):d},n.setConfig=function(){lt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Me=!0},n.clearConfig=function(){ct=null,Me=!1},n.isValidAttribute=function(e,t,n){ct||lt({});const r=ot(e),s=ot(t);return bt(r,s,n)},n.addHook=function(e,t){"function"===typeof t&&g(ue[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=f(ue[e],t);return-1===n?void 0:y(ue[e],n,1)[0]}return m(ue[e])},n.removeHooks=function(e){ue[e]=[]},n.removeAllHooks=function(){ue={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}()}}]);