@grackle-ai/web 0.127.0 → 0.128.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
- var S;(function(e){e[e.Canceled=1]="Canceled",e[e.Unknown=2]="Unknown",e[e.InvalidArgument=3]="InvalidArgument",e[e.DeadlineExceeded=4]="DeadlineExceeded",e[e.NotFound=5]="NotFound",e[e.AlreadyExists=6]="AlreadyExists",e[e.PermissionDenied=7]="PermissionDenied",e[e.ResourceExhausted=8]="ResourceExhausted",e[e.FailedPrecondition=9]="FailedPrecondition",e[e.Aborted=10]="Aborted",e[e.OutOfRange=11]="OutOfRange",e[e.Unimplemented=12]="Unimplemented",e[e.Internal=13]="Internal",e[e.Unavailable=14]="Unavailable",e[e.DataLoss=15]="DataLoss",e[e.Unauthenticated=16]="Unauthenticated"})(S||(S={}));function sn(e,t){return e!==null&&typeof e=="object"&&"$typeName"in e&&typeof e.$typeName=="string"?t===void 0?!0:t.typeName===e.$typeName:!1}var m;(function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"})(m||(m={}));function Ci(){let e=0,t=0;for(let r=0;r<28;r+=7){let o=this.buf[this.pos++];if(e|=(o&127)<<r,(o&128)==0)return this.assertBounds(),[e,t]}let n=this.buf[this.pos++];if(e|=(n&15)<<28,t=(n&112)>>4,(n&128)==0)return this.assertBounds(),[e,t];for(let r=3;r<=31;r+=7){let o=this.buf[this.pos++];if(t|=(o&127)<<r,(o&128)==0)return this.assertBounds(),[e,t]}throw new Error("invalid varint")}function kt(e,t,n){for(let s=0;s<28;s=s+7){const i=e>>>s,a=!(!(i>>>7)&&t==0),c=(a?i|128:i)&255;if(n.push(c),!a)return}const r=e>>>28&15|(t&7)<<4,o=t>>3!=0;if(n.push((o?r|128:r)&255),!!o){for(let s=3;s<31;s=s+7){const i=t>>>s,a=!!(i>>>7),c=(a?i|128:i)&255;if(n.push(c),!a)return}n.push(t>>>31&1)}}const nt=4294967296;function Xn(e){const t=e[0]==="-";t&&(e=e.slice(1));const n=1e6;let r=0,o=0;function s(i,a){const c=Number(e.slice(i,a));o*=n,r=r*n+c,r>=nt&&(o=o+(r/nt|0),r=r%nt)}return s(-24,-18),s(-18,-12),s(-12,-6),s(-6),t?go(r,o):an(r,o)}function Fi(e,t){let n=an(e,t);const r=n.hi&2147483648;r&&(n=go(n.lo,n.hi));const o=ho(n.lo,n.hi);return r?"-"+o:o}function ho(e,t){if({lo:e,hi:t}=Gi(e,t),t<=2097151)return String(nt*t+e);const n=e&16777215,r=(e>>>24|t<<8)&16777215,o=t>>16&65535;let s=n+r*6777216+o*6710656,i=r+o*8147497,a=o*2;const c=1e7;return s>=c&&(i+=Math.floor(s/c),s%=c),i>=c&&(a+=Math.floor(i/c),i%=c),a.toString()+On(i)+On(s)}function Gi(e,t){return{lo:e>>>0,hi:t>>>0}}function an(e,t){return{lo:e|0,hi:t|0}}function go(e,t){return t=~t,e?e=~e+1:t+=1,an(e,t)}const On=e=>{const t=String(e);return"0000000".slice(t.length)+t};function Ot(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e=e>>>7;t.push(e)}else{for(let n=0;n<9;n++)t.push(e&127|128),e=e>>7;t.push(1)}}function Ti(){let e=this.buf[this.pos++],t=e&127;if((e&128)==0)return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<7,(e&128)==0)return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<14,(e&128)==0)return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<21,(e&128)==0)return this.assertBounds(),t;e=this.buf[this.pos++],t|=(e&15)<<28;for(let n=5;(e&128)!==0&&n<10;n++)e=this.buf[this.pos++];if((e&128)!=0)throw new Error("invalid varint");return this.assertBounds(),t>>>0}var zn={};const k=Yi();function Yi(){const e=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof e.getBigInt64=="function"&&typeof e.getBigUint64=="function"&&typeof e.setBigInt64=="function"&&typeof e.setBigUint64=="function"&&(!!globalThis.Deno||typeof process!="object"||typeof zn!="object"||zn.BUF_BIGINT_DISABLE!=="1")){const n=BigInt("-9223372036854775808"),r=BigInt("9223372036854775807"),o=BigInt("0"),s=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(i){const a=typeof i=="bigint"?i:BigInt(i);if(a>r||a<n)throw new Error(`invalid int64: ${i}`);return a},uParse(i){const a=typeof i=="bigint"?i:BigInt(i);if(a>s||a<o)throw new Error(`invalid uint64: ${i}`);return a},enc(i){return e.setBigInt64(0,this.parse(i),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},uEnc(i){return e.setBigInt64(0,this.uParse(i),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},dec(i,a){return e.setInt32(0,i,!0),e.setInt32(4,a,!0),e.getBigInt64(0,!0)},uDec(i,a){return e.setInt32(0,i,!0),e.setInt32(4,a,!0),e.getBigUint64(0,!0)}}}return{zero:"0",supported:!1,parse(n){return typeof n!="string"&&(n=n.toString()),Jn(n),n},uParse(n){return typeof n!="string"&&(n=n.toString()),Dn(n),n},enc(n){return typeof n!="string"&&(n=n.toString()),Jn(n),Xn(n)},uEnc(n){return typeof n!="string"&&(n=n.toString()),Dn(n),Xn(n)},dec(n,r){return Fi(n,r)},uDec(n,r){return ho(n,r)}}}function Jn(e){if(!/^-?[0-9]+$/.test(e))throw new Error("invalid int64: "+e)}function Dn(e){if(!/^[0-9]+$/.test(e))throw new Error("invalid uint64: "+e)}function Se(e,t){switch(e){case m.STRING:return"";case m.BOOL:return!1;case m.DOUBLE:case m.FLOAT:return 0;case m.INT64:case m.UINT64:case m.SFIXED64:case m.FIXED64:case m.SINT64:return t?"0":k.zero;case m.BYTES:return new Uint8Array(0);default:return 0}}function Ui(e,t){switch(e){case m.BOOL:return t===!1;case m.STRING:return t==="";case m.BYTES:return t instanceof Uint8Array&&!t.byteLength;default:return t==0}}const po=2,re=Symbol.for("reflect unsafe local");function bo(e,t){const n=e[t.localName].case;return n===void 0?n:t.fields.find(r=>r.localName===n)}function Wi(e,t){const n=t.localName;if(t.oneof)return e[t.oneof.localName].case===n;if(t.presence!=po)return e[n]!==void 0&&Object.prototype.hasOwnProperty.call(e,n);switch(t.fieldKind){case"list":return e[n].length>0;case"map":return Object.keys(e[n]).length>0;case"scalar":return!Ui(t.scalar,e[n]);case"enum":return e[n]!==t.enum.values[0].number}throw new Error("message field with implicit presence")}function Te(e,t){return Object.prototype.hasOwnProperty.call(e,t)&&e[t]!==void 0}function Eo(e,t){if(t.oneof){const n=e[t.oneof.localName];return n.case===t.localName?n.value:void 0}return e[t.localName]}function Ao(e,t,n){t.oneof?e[t.oneof.localName]={case:t.localName,value:n}:e[t.localName]=n}function Xi(e,t){const n=t.localName;if(t.oneof){const r=t.oneof.localName;e[r].case===n&&(e[r]={case:void 0})}else if(t.presence!=po)delete e[n];else switch(t.fieldKind){case"map":e[n]={};break;case"list":e[n]=[];break;case"enum":e[n]=t.enum.values[0].number;break;case"scalar":e[n]=Se(t.scalar,t.longAsString);break}}function ae(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function cn(e,t){var n,r,o,s;if(ae(e)&&re in e&&"add"in e&&"field"in e&&typeof e.field=="function"){if(t!==void 0){const i=t,a=e.field();return i.listKind==a.listKind&&i.scalar===a.scalar&&((n=i.message)===null||n===void 0?void 0:n.typeName)===((r=a.message)===null||r===void 0?void 0:r.typeName)&&((o=i.enum)===null||o===void 0?void 0:o.typeName)===((s=a.enum)===null||s===void 0?void 0:s.typeName)}return!0}return!1}function un(e,t){var n,r,o,s;if(ae(e)&&re in e&&"has"in e&&"field"in e&&typeof e.field=="function"){if(t!==void 0){const i=t,a=e.field();return i.mapKey===a.mapKey&&i.mapKind==a.mapKind&&i.scalar===a.scalar&&((n=i.message)===null||n===void 0?void 0:n.typeName)===((r=a.message)===null||r===void 0?void 0:r.typeName)&&((o=i.enum)===null||o===void 0?void 0:o.typeName)===((s=a.enum)===null||s===void 0?void 0:s.typeName)}return!0}return!1}function ln(e,t){return ae(e)&&re in e&&"desc"in e&&ae(e.desc)&&e.desc.kind==="message"&&(t===void 0||e.desc.typeName==t.typeName)}function Oi(e){return yo(e.$typeName)}function xe(e){const t=e.fields[0];return yo(e.typeName)&&t!==void 0&&t.fieldKind=="scalar"&&t.name=="value"&&t.number==1}function yo(e){return e.startsWith("google.protobuf.")&&["DoubleValue","FloatValue","Int64Value","UInt64Value","Int32Value","UInt32Value","BoolValue","StringValue","BytesValue"].includes(e.substring(16))}const zi=999,Ji=998,rt=2;function j(e,t){if(sn(t,e))return t;const n=$i(e);return t!==void 0&&Di(e,n,t),n}function Di(e,t,n){for(const r of e.members){let o=n[r.localName];if(o==null)continue;let s;if(r.kind=="oneof"){const i=bo(n,r);if(!i)continue;s=i,o=Eo(n,i)}else s=r;switch(s.fieldKind){case"message":o=dn(s,o);break;case"scalar":o=No(s,o);break;case"list":o=Ki(s,o);break;case"map":o=xi(s,o);break}Ao(t,s,o)}return t}function No(e,t){return e.scalar==m.BYTES?fn(t):t}function xi(e,t){if(ae(t)){if(e.scalar==m.BYTES)return xn(t,fn);if(e.mapKind=="message")return xn(t,n=>dn(e,n))}return t}function Ki(e,t){if(Array.isArray(t)){if(e.scalar==m.BYTES)return t.map(fn);if(e.listKind=="message")return t.map(n=>dn(e,n))}return t}function dn(e,t){if(e.fieldKind=="message"&&!e.oneof&&xe(e.message))return No(e.message.fields[0],t);if(ae(t)){if(e.message.typeName=="google.protobuf.Struct"&&e.parent.typeName!=="google.protobuf.Value")return t;if(!sn(t,e.message))return j(e.message,t)}return t}function fn(e){return Array.isArray(e)?new Uint8Array(e):e}function xn(e,t){const n={};for(const r of Object.entries(e))n[r[0]]=t(r[1]);return n}const Li=Symbol(),Kn=new WeakMap;function $i(e){let t;if(Mi(e)){const n=Kn.get(e);let r,o;if(n)({prototype:r,members:o}=n);else{r={},o=new Set;for(const s of e.members)s.kind!="oneof"&&(s.fieldKind!="scalar"&&s.fieldKind!="enum"||s.presence!=rt&&(o.add(s),r[s.localName]=Vt(s)));Kn.set(e,{prototype:r,members:o})}t=Object.create(r),t.$typeName=e.typeName;for(const s of e.members)o.has(s)||s.kind=="field"&&(s.fieldKind=="message"||(s.fieldKind=="scalar"||s.fieldKind=="enum")&&s.presence!=rt)||(t[s.localName]=Vt(s))}else{t={$typeName:e.typeName};for(const n of e.members)(n.kind=="oneof"||n.presence==rt)&&(t[n.localName]=Vt(n))}return t}function Mi(e){switch(e.file.edition){case zi:return!1;case Ji:return!0;default:return e.fields.some(t=>t.presence!=rt&&t.fieldKind!="message"&&!t.oneof)}}function Vt(e){if(e.kind=="oneof")return{case:void 0};if(e.fieldKind=="list")return[];if(e.fieldKind=="map")return{};if(e.fieldKind=="message")return Li;const t=e.getDefaultValue();return t!==void 0?e.fieldKind=="scalar"&&e.longAsString?t.toString():t:e.fieldKind=="scalar"?Se(e.scalar,e.longAsString):e.enum.values[0].number}const Pi=["FieldValueInvalidError","FieldListRangeError","ForeignFieldError"];class K extends Error{constructor(t,n,r="FieldValueInvalidError"){super(n),this.name=r,this.field=()=>t}}function Qi(e){return e instanceof Error&&Pi.includes(e.name)&&"field"in e&&typeof e.field=="function"}const Bt=Symbol.for("@bufbuild/protobuf/text-encoding");function mn(){if(globalThis[Bt]==null){const e=new globalThis.TextEncoder,t=new globalThis.TextDecoder;globalThis[Bt]={encodeUtf8(n){return e.encode(n)},decodeUtf8(n){return t.decode(n)},checkUtf8(n){try{return encodeURIComponent(n),!0}catch{return!1}}}}return globalThis[Bt]}var F;(function(e){e[e.Varint=0]="Varint",e[e.Bit64=1]="Bit64",e[e.LengthDelimited=2]="LengthDelimited",e[e.StartGroup=3]="StartGroup",e[e.EndGroup=4]="EndGroup",e[e.Bit32=5]="Bit32"})(F||(F={}));const Io=34028234663852886e22,So=-34028234663852886e22,_o=4294967295,Zo=2147483647,Ro=-2147483648;class wo{constructor(t=mn().encodeUtf8){this.encodeUtf8=t,this.stack=[],this.chunks=[],this.buf=[]}finish(){this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]);let t=0;for(let o=0;o<this.chunks.length;o++)t+=this.chunks[o].length;let n=new Uint8Array(t),r=0;for(let o=0;o<this.chunks.length;o++)n.set(this.chunks[o],r),r+=this.chunks[o].length;return this.chunks=[],n}fork(){return this.stack.push({chunks:this.chunks,buf:this.buf}),this.chunks=[],this.buf=[],this}join(){let t=this.finish(),n=this.stack.pop();if(!n)throw new Error("invalid state, fork stack empty");return this.chunks=n.chunks,this.buf=n.buf,this.uint32(t.byteLength),this.raw(t)}tag(t,n){return this.uint32((t<<3|n)>>>0)}raw(t){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(t),this}uint32(t){for(Ln(t);t>127;)this.buf.push(t&127|128),t=t>>>7;return this.buf.push(t),this}int32(t){return Ct(t),Ot(t,this.buf),this}bool(t){return this.buf.push(t?1:0),this}bytes(t){return this.uint32(t.byteLength),this.raw(t)}string(t){let n=this.encodeUtf8(t);return this.uint32(n.byteLength),this.raw(n)}float(t){ji(t);let n=new Uint8Array(4);return new DataView(n.buffer).setFloat32(0,t,!0),this.raw(n)}double(t){let n=new Uint8Array(8);return new DataView(n.buffer).setFloat64(0,t,!0),this.raw(n)}fixed32(t){Ln(t);let n=new Uint8Array(4);return new DataView(n.buffer).setUint32(0,t,!0),this.raw(n)}sfixed32(t){Ct(t);let n=new Uint8Array(4);return new DataView(n.buffer).setInt32(0,t,!0),this.raw(n)}sint32(t){return Ct(t),t=(t<<1^t>>31)>>>0,Ot(t,this.buf),this}sfixed64(t){let n=new Uint8Array(8),r=new DataView(n.buffer),o=k.enc(t);return r.setInt32(0,o.lo,!0),r.setInt32(4,o.hi,!0),this.raw(n)}fixed64(t){let n=new Uint8Array(8),r=new DataView(n.buffer),o=k.uEnc(t);return r.setInt32(0,o.lo,!0),r.setInt32(4,o.hi,!0),this.raw(n)}int64(t){let n=k.enc(t);return kt(n.lo,n.hi,this.buf),this}sint64(t){const n=k.enc(t),r=n.hi>>31,o=n.lo<<1^r,s=(n.hi<<1|n.lo>>>31)^r;return kt(o,s,this.buf),this}uint64(t){const n=k.uEnc(t);return kt(n.lo,n.hi,this.buf),this}}class hn{constructor(t,n=mn().decodeUtf8){this.decodeUtf8=n,this.varint64=Ci,this.uint32=Ti,this.buf=t,this.len=t.length,this.pos=0,this.view=new DataView(t.buffer,t.byteOffset,t.byteLength)}tag(){let t=this.uint32(),n=t>>>3,r=t&7;if(n<=0||r<0||r>5)throw new Error("illegal tag: field no "+n+" wire type "+r);return[n,r]}skip(t,n){let r=this.pos;switch(t){case F.Varint:for(;this.buf[this.pos++]&128;);break;case F.Bit64:this.pos+=4;case F.Bit32:this.pos+=4;break;case F.LengthDelimited:let o=this.uint32();this.pos+=o;break;case F.StartGroup:for(;;){const[s,i]=this.tag();if(i===F.EndGroup){if(n!==void 0&&s!==n)throw new Error("invalid end group tag");break}this.skip(i,s)}break;default:throw new Error("cant skip wire type "+t)}return this.assertBounds(),this.buf.subarray(r,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let t=this.uint32();return t>>>1^-(t&1)}int64(){return k.dec(...this.varint64())}uint64(){return k.uDec(...this.varint64())}sint64(){let[t,n]=this.varint64(),r=-(t&1);return t=(t>>>1|(n&1)<<31)^r,n=n>>>1^r,k.dec(t,n)}bool(){let[t,n]=this.varint64();return t!==0||n!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return k.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return k.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let t=this.uint32(),n=this.pos;return this.pos+=t,this.assertBounds(),this.buf.subarray(n,n+t)}string(){return this.decodeUtf8(this.bytes())}}function Ct(e){if(typeof e=="string")e=Number(e);else if(typeof e!="number")throw new Error("invalid int32: "+typeof e);if(!Number.isInteger(e)||e>Zo||e<Ro)throw new Error("invalid int32: "+e)}function Ln(e){if(typeof e=="string")e=Number(e);else if(typeof e!="number")throw new Error("invalid uint32: "+typeof e);if(!Number.isInteger(e)||e>_o||e<0)throw new Error("invalid uint32: "+e)}function ji(e){if(typeof e=="string"){const t=e;if(e=Number(e),Number.isNaN(e)&&t!=="NaN")throw new Error("invalid float32: "+t)}else if(typeof e!="number")throw new Error("invalid float32: "+typeof e);if(Number.isFinite(e)&&(e>Io||e<So))throw new Error("invalid float32: "+e)}function me(e,t){const n=e.fieldKind=="list"?cn(t,e):e.fieldKind=="map"?un(t,e):gn(e,t);if(n===!0)return;let r;switch(e.fieldKind){case"list":r=`expected ${Vo(e)}, got ${X(t)}`;break;case"map":r=`expected ${Bo(e)}, got ${X(t)}`;break;default:r=ot(e,t,n)}return new K(e,r)}function $n(e,t,n){const r=gn(e,n);if(r!==!0)return new K(e,`list item #${t+1}: ${ot(e,n,r)}`)}function Hi(e,t,n){const r=vo(t,e.mapKey);if(r!==!0)return new K(e,`invalid map key: ${ot({scalar:e.mapKey},t,r)}`);const o=gn(e,n);if(o!==!0)return new K(e,`map entry ${X(t)}: ${ot(e,n,o)}`)}function gn(e,t){return e.scalar!==void 0?vo(t,e.scalar):e.enum!==void 0?e.enum.open?Number.isInteger(t):e.enum.values.some(n=>n.number===t):ln(t,e.message)}function vo(e,t){switch(t){case m.DOUBLE:return typeof e=="number";case m.FLOAT:return typeof e!="number"?!1:Number.isNaN(e)||!Number.isFinite(e)?!0:e>Io||e<So?`${e.toFixed()} out of range`:!0;case m.INT32:case m.SFIXED32:case m.SINT32:return typeof e!="number"||!Number.isInteger(e)?!1:e>Zo||e<Ro?`${e.toFixed()} out of range`:!0;case m.FIXED32:case m.UINT32:return typeof e!="number"||!Number.isInteger(e)?!1:e>_o||e<0?`${e.toFixed()} out of range`:!0;case m.BOOL:return typeof e=="boolean";case m.STRING:return typeof e!="string"?!1:mn().checkUtf8(e)||"invalid UTF8";case m.BYTES:return e instanceof Uint8Array;case m.INT64:case m.SFIXED64:case m.SINT64:if(typeof e=="bigint"||typeof e=="number"||typeof e=="string"&&e.length>0)try{return k.parse(e),!0}catch{return`${e} out of range`}return!1;case m.FIXED64:case m.UINT64:if(typeof e=="bigint"||typeof e=="number"||typeof e=="string"&&e.length>0)try{return k.uParse(e),!0}catch{return`${e} out of range`}return!1}}function ot(e,t,n){return n=typeof n=="string"?`: ${n}`:`, got ${X(t)}`,e.scalar!==void 0?`expected ${qi(e.scalar)}`+n:e.enum!==void 0?`expected ${e.enum.toString()}`+n:`expected ${ko(e.message)}`+n}function X(e){switch(typeof e){case"object":return e===null?"null":e instanceof Uint8Array?`Uint8Array(${e.length})`:Array.isArray(e)?`Array(${e.length})`:cn(e)?Vo(e.field()):un(e)?Bo(e.field()):ln(e)?ko(e.desc):sn(e)?`message ${e.$typeName}`:"object";case"string":return e.length>30?"string":`"${e.split('"').join('\\"')}"`;case"boolean":return String(e);case"number":return String(e);case"bigint":return String(e)+"n";default:return typeof e}}function ko(e){return`ReflectMessage (${e.typeName})`}function Vo(e){switch(e.listKind){case"message":return`ReflectList (${e.message.toString()})`;case"enum":return`ReflectList (${e.enum.toString()})`;case"scalar":return`ReflectList (${m[e.scalar]})`}}function Bo(e){switch(e.mapKind){case"message":return`ReflectMap (${m[e.mapKey]}, ${e.message.toString()})`;case"enum":return`ReflectMap (${m[e.mapKey]}, ${e.enum.toString()})`;case"scalar":return`ReflectMap (${m[e.mapKey]}, ${m[e.scalar]})`}}function qi(e){switch(e){case m.STRING:return"string";case m.BOOL:return"boolean";case m.INT64:case m.SINT64:case m.SFIXED64:return"bigint (int64)";case m.UINT64:case m.FIXED64:return"bigint (uint64)";case m.BYTES:return"Uint8Array";case m.DOUBLE:return"number (float64)";case m.FLOAT:return"number (float32)";case m.FIXED32:case m.UINT32:return"number (uint32)";case m.INT32:case m.SFIXED32:case m.SINT32:return"number (int32)"}}function H(e,t,n=!0){return new Co(e,t,n)}const Mn=new WeakMap;class Co{get sortedFields(){const t=Mn.get(this.desc);if(t)return t;const n=this.desc.fields.concat().sort((r,o)=>r.number-o.number);return Mn.set(this.desc,n),n}constructor(t,n,r=!0){this.lists=new Map,this.maps=new Map,this.check=r,this.desc=t,this.message=this[re]=n??j(t),this.fields=t.fields,this.oneofs=t.oneofs,this.members=t.members}findNumber(t){return this._fieldsByNumber||(this._fieldsByNumber=new Map(this.desc.fields.map(n=>[n.number,n]))),this._fieldsByNumber.get(t)}oneofCase(t){return Ce(this.message,t),bo(this.message,t)}isSet(t){return Ce(this.message,t),Wi(this.message,t)}clear(t){Ce(this.message,t),Xi(this.message,t)}get(t){Ce(this.message,t);const n=Eo(this.message,t);switch(t.fieldKind){case"list":let r=this.lists.get(t);return(!r||r[re]!==n)&&this.lists.set(t,r=new ea(t,n,this.check)),r;case"map":let o=this.maps.get(t);return(!o||o[re]!==n)&&this.maps.set(t,o=new ta(t,n,this.check)),o;case"message":return bn(t,n,this.check);case"scalar":return n===void 0?Se(t.scalar,!1):En(t,n);case"enum":return n??t.enum.values[0].number}}set(t,n){if(Ce(this.message,t),this.check){const o=me(t,n);if(o)throw o}let r;t.fieldKind=="message"?r=pn(t,n):un(n)||cn(n)?r=n[re]:r=An(t,n),Ao(this.message,t,r)}getUnknown(){return this.message.$unknown}setUnknown(t){this.message.$unknown=t}}function Ce(e,t){if(t.parent.typeName!==e.$typeName)throw new K(t,`cannot use ${t.toString()} with message ${e.$typeName}`,"ForeignFieldError")}class ea{field(){return this._field}get size(){return this._arr.length}constructor(t,n,r){this._field=t,this._arr=this[re]=n,this.check=r}get(t){const n=this._arr[t];return n===void 0?void 0:Ft(this._field,n,this.check)}set(t,n){if(t<0||t>=this._arr.length)throw new K(this._field,`list item #${t+1}: out of range`);if(this.check){const r=$n(this._field,t,n);if(r)throw r}this._arr[t]=Pn(this._field,n)}add(t){if(this.check){const n=$n(this._field,this._arr.length,t);if(n)throw n}this._arr.push(Pn(this._field,t))}clear(){this._arr.splice(0,this._arr.length)}[Symbol.iterator](){return this.values()}keys(){return this._arr.keys()}*values(){for(const t of this._arr)yield Ft(this._field,t,this.check)}*entries(){for(let t=0;t<this._arr.length;t++)yield[t,Ft(this._field,this._arr[t],this.check)]}}class ta{constructor(t,n,r=!0){this.obj=this[re]=n??{},this.check=r,this._field=t}field(){return this._field}set(t,n){if(this.check){const r=Hi(this._field,t,n);if(r)throw r}return this.obj[Pe(t)]=na(this._field,n),this}delete(t){const n=Pe(t),r=Object.prototype.hasOwnProperty.call(this.obj,n);return r&&delete this.obj[n],r}clear(){for(const t of Object.keys(this.obj))delete this.obj[t]}get(t){let n=this.obj[Pe(t)];return n!==void 0&&(n=Gt(this._field,n,this.check)),n}has(t){return Object.prototype.hasOwnProperty.call(this.obj,Pe(t))}*keys(){for(const t of Object.keys(this.obj))yield Qn(t,this._field.mapKey)}*entries(){for(const t of Object.entries(this.obj))yield[Qn(t[0],this._field.mapKey),Gt(this._field,t[1],this.check)]}[Symbol.iterator](){return this.entries()}get size(){return Object.keys(this.obj).length}*values(){for(const t of Object.values(this.obj))yield Gt(this._field,t,this.check)}forEach(t,n){for(const r of this.entries())t.call(n,r[1],r[0],this)}}function pn(e,t){return ln(t)?Oi(t.message)&&!e.oneof&&e.fieldKind=="message"?t.message.value:t.desc.typeName=="google.protobuf.Struct"&&e.parent.typeName!="google.protobuf.Value"?Go(t.message):t.message:t}function bn(e,t,n){return t!==void 0&&(xe(e.message)&&!e.oneof&&e.fieldKind=="message"?t={$typeName:e.message.typeName,value:En(e.message.fields[0],t)}:e.message.typeName=="google.protobuf.Struct"&&e.parent.typeName!="google.protobuf.Value"&&ae(t)&&(t=Fo(t))),new Co(e.message,t,n)}function Pn(e,t){return e.listKind=="message"?pn(e,t):An(e,t)}function Ft(e,t,n){return e.listKind=="message"?bn(e,t,n):En(e,t)}function na(e,t){return e.mapKind=="message"?pn(e,t):An(e,t)}function Gt(e,t,n){return e.mapKind=="message"?bn(e,t,n):t}function Pe(e){return typeof e=="string"||typeof e=="number"?e:String(e)}function Qn(e,t){switch(t){case m.STRING:return e;case m.INT32:case m.FIXED32:case m.UINT32:case m.SFIXED32:case m.SINT32:{const n=Number.parseInt(e);if(Number.isFinite(n))return n;break}case m.BOOL:switch(e){case"true":return!0;case"false":return!1}break;case m.UINT64:case m.FIXED64:try{return k.uParse(e)}catch{}break;default:try{return k.parse(e)}catch{}break}return e}function En(e,t){switch(e.scalar){case m.INT64:case m.SFIXED64:case m.SINT64:"longAsString"in e&&e.longAsString&&typeof t=="string"&&(t=k.parse(t));break;case m.FIXED64:case m.UINT64:"longAsString"in e&&e.longAsString&&typeof t=="string"&&(t=k.uParse(t));break}return t}function An(e,t){switch(e.scalar){case m.INT64:case m.SFIXED64:case m.SINT64:"longAsString"in e&&e.longAsString?t=String(t):(typeof t=="string"||typeof t=="number")&&(t=k.parse(t));break;case m.FIXED64:case m.UINT64:"longAsString"in e&&e.longAsString?t=String(t):(typeof t=="string"||typeof t=="number")&&(t=k.uParse(t));break}return t}function Fo(e){const t={$typeName:"google.protobuf.Struct",fields:{}};if(ae(e))for(const[n,r]of Object.entries(e))t.fields[n]=Yo(r);return t}function Go(e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=To(r);return t}function To(e){switch(e.kind.case){case"structValue":return Go(e.kind.value);case"listValue":return e.kind.value.values.map(To);case"nullValue":case void 0:return null;default:return e.kind.value}}function Yo(e){const t={$typeName:"google.protobuf.Value",kind:{case:void 0}};switch(typeof e){case"number":t.kind={case:"numberValue",value:e};break;case"string":t.kind={case:"stringValue",value:e};break;case"boolean":t.kind={case:"boolValue",value:e};break;case"object":if(e===null)t.kind={case:"nullValue",value:0};else if(Array.isArray(e)){const n={$typeName:"google.protobuf.ListValue",values:[]};if(Array.isArray(e))for(const r of e)n.values.push(Yo(r));t.kind={case:"listValue",value:n}}else t.kind={case:"structValue",value:Fo(e)};break}return t}function yn(e){const t=ra();let n=e.length*3/4;e[e.length-2]=="="?n-=2:e[e.length-1]=="="&&(n-=1);let r=new Uint8Array(n),o=0,s=0,i,a=0;for(let c=0;c<e.length;c++){if(i=t[e.charCodeAt(c)],i===void 0)switch(e[c]){case"=":s=0;case`
2
- `:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string")}switch(s){case 0:a=i,s=1;break;case 1:r[o++]=a<<2|(i&48)>>4,a=i,s=2;break;case 2:r[o++]=(a&15)<<4|(i&60)>>2,a=i,s=3;break;case 3:r[o++]=(a&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string");return r.subarray(0,o)}function Uo(e,t="std"){const n=Wo(t),r=t=="std";let o="",s=0,i,a=0;for(let c=0;c<e.length;c++)switch(i=e[c],s){case 0:o+=n[i>>2],a=(i&3)<<4,s=1;break;case 1:o+=n[a|i>>4],a=(i&15)<<2,s=2;break;case 2:o+=n[a|i>>6],o+=n[i&63],s=0;break}return s&&(o+=n[a],r&&(o+="=",s==1&&(o+="="))),o}let Qe,jn,Ae;function Wo(e){return Qe||(Qe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),jn=Qe.slice(0,-2).concat("-","_")),e=="url"?jn:Qe}function ra(){if(!Ae){Ae=[];const e=Wo("std");for(let t=0;t<e.length;t++)Ae[e[t].charCodeAt(0)]=t;Ae[45]=e.indexOf("+"),Ae[95]=e.indexOf("/")}return Ae}function _e(e){let t=!1;const n=[];for(let r=0;r<e.length;r++){let o=e.charAt(r);switch(o){case"_":t=!0;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":n.push(o),t=!1;break;default:t&&(t=!1,o=o.toUpperCase()),n.push(o);break}}return n.join("")}function Xo(e){return e.replace(/[A-Z]/g,t=>"_"+t.toLowerCase())}const oa=new Set(["constructor","toString","toJSON","valueOf"]);function Ye(e){return oa.has(e)?e+"$":e}function Nn(e){for(const t of e.field)Te(t,"jsonName")||(t.jsonName=_e(t.name));e.nestedType.forEach(Nn)}function sa(e,t){const n=e.values.find(r=>r.name===t);if(!n)throw new Error(`cannot parse ${e} default value: ${t}`);return n.number}function ia(e,t){switch(e){case m.STRING:return t;case m.BYTES:{const n=aa(t);if(n===!1)throw new Error(`cannot parse ${m[e]} default value: ${t}`);return n}case m.INT64:case m.SFIXED64:case m.SINT64:return k.parse(t);case m.UINT64:case m.FIXED64:return k.uParse(t);case m.DOUBLE:case m.FLOAT:switch(t){case"inf":return Number.POSITIVE_INFINITY;case"-inf":return Number.NEGATIVE_INFINITY;case"nan":return Number.NaN;default:return parseFloat(t)}case m.BOOL:return t==="true";case m.INT32:case m.UINT32:case m.SINT32:case m.FIXED32:case m.SFIXED32:return parseInt(t,10)}}function aa(e){const t=[],n={tail:e,c:"",next(){return this.tail.length==0?!1:(this.c=this.tail[0],this.tail=this.tail.substring(1),!0)},take(r){if(this.tail.length>=r){const o=this.tail.substring(0,r);return this.tail=this.tail.substring(r),o}return!1}};for(;n.next();)switch(n.c){case"\\":if(n.next())switch(n.c){case"\\":t.push(n.c.charCodeAt(0));break;case"b":t.push(8);break;case"f":t.push(12);break;case"n":t.push(10);break;case"r":t.push(13);break;case"t":t.push(9);break;case"v":t.push(11);break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":{const r=n.c,o=n.take(2);if(o===!1)return!1;const s=parseInt(r+o,8);if(Number.isNaN(s))return!1;t.push(s);break}case"x":{const r=n.c,o=n.take(2);if(o===!1)return!1;const s=parseInt(r+o,16);if(Number.isNaN(s))return!1;t.push(s);break}case"u":{const r=n.c,o=n.take(4);if(o===!1)return!1;const s=parseInt(r+o,16);if(Number.isNaN(s))return!1;const i=new Uint8Array(4);new DataView(i.buffer).setInt32(0,s,!0),t.push(i[0],i[1],i[2],i[3]);break}case"U":{const r=n.c,o=n.take(8);if(o===!1)return!1;const s=k.uEnc(r+o),i=new Uint8Array(8),a=new DataView(i.buffer);a.setInt32(0,s.lo,!0),a.setInt32(4,s.hi,!0),t.push(i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7]);break}}break;default:t.push(n.c.charCodeAt(0))}return new Uint8Array(t)}function*zt(e){switch(e.kind){case"file":for(const t of e.messages)yield t,yield*zt(t);yield*e.enums,yield*e.services,yield*e.extensions;break;case"message":for(const t of e.nestedMessages)yield t,yield*zt(t);yield*e.nestedEnums,yield*e.nestedExtensions;break}}function Oo(...e){const t=ca();if(!e.length)return t;if("$typeName"in e[0]&&e[0].$typeName=="google.protobuf.FileDescriptorSet"){for(const n of e[0].file)tr(n,t);return t}if("$typeName"in e[0]){let s=function(i){const a=[];for(const c of i.dependency){if(t.getFile(c)!=null||o.has(c))continue;const u=r(c);if(!u)throw new Error(`Unable to resolve ${c}, imported by ${i.name}`);"kind"in u?t.addFile(u,!1,!0):(o.add(u.name),a.push(u))}return a.concat(...a.map(s))};const n=e[0],r=e[1],o=new Set;for(const i of[n,...s(n)].reverse())tr(i,t)}else for(const n of e)for(const r of n.files)t.addFile(r);return t}function ca(){const e=new Map,t=new Map,n=new Map;return{kind:"registry",types:e,extendees:t,[Symbol.iterator](){return e.values()},get files(){return n.values()},addFile(r,o,s){if(n.set(r.proto.name,r),!o)for(const i of zt(r))this.add(i);if(s)for(const i of r.dependencies)this.addFile(i,o,s)},add(r){if(r.kind=="extension"){let o=t.get(r.extendee.typeName);o||t.set(r.extendee.typeName,o=new Map),o.set(r.number,r)}e.set(r.typeName,r)},get(r){return e.get(r)},getFile(r){return n.get(r)},getMessage(r){const o=e.get(r);return(o==null?void 0:o.kind)=="message"?o:void 0},getEnum(r){const o=e.get(r);return(o==null?void 0:o.kind)=="enum"?o:void 0},getExtension(r){const o=e.get(r);return(o==null?void 0:o.kind)=="extension"?o:void 0},getExtensionFor(r,o){var s;return(s=t.get(r.typeName))===null||s===void 0?void 0:s.get(o)},getService(r){const o=e.get(r);return(o==null?void 0:o.kind)=="service"?o:void 0}}}const ua=998,la=999,da=9,Ue=10,Ge=11,fa=12,Hn=14,In=3,ma=2,qn=1,ha=0,Tt=1,er=2,ga=3,pa=1,ba=2,Ea=1,zo={998:{fieldPresence:1,enumType:2,repeatedFieldEncoding:2,utf8Validation:3,messageEncoding:1,jsonFormat:2,enforceNamingStyle:2,defaultSymbolVisibility:1},999:{fieldPresence:2,enumType:1,repeatedFieldEncoding:1,utf8Validation:2,messageEncoding:1,jsonFormat:1,enforceNamingStyle:2,defaultSymbolVisibility:1},1e3:{fieldPresence:1,enumType:1,repeatedFieldEncoding:1,utf8Validation:2,messageEncoding:1,jsonFormat:1,enforceNamingStyle:2,defaultSymbolVisibility:1},1001:{fieldPresence:1,enumType:1,repeatedFieldEncoding:1,utf8Validation:2,messageEncoding:1,jsonFormat:1,enforceNamingStyle:1,defaultSymbolVisibility:2}};function tr(e,t){var n,r;const o={kind:"file",proto:e,deprecated:(r=(n=e.options)===null||n===void 0?void 0:n.deprecated)!==null&&r!==void 0?r:!1,edition:Ia(e),name:e.name.replace(/\.proto$/,""),dependencies:Sa(e,t),enums:[],messages:[],extensions:[],services:[],toString(){return`file ${e.name}`}},s=new Map,i={get(a){return s.get(a)},add(a){var c;Q(((c=a.proto.options)===null||c===void 0?void 0:c.mapEntry)===!0),s.set(a.typeName,a)}};for(const a of e.enumType)Jo(a,o,void 0,t);for(const a of e.messageType)Do(a,o,void 0,t,i);for(const a of e.service)Aa(a,o,t);Jt(o,t);for(const a of s.values())Dt(a,t,i);for(const a of o.messages)Dt(a,t,i),Jt(a,t);t.addFile(o,!0)}function Jt(e,t){switch(e.kind){case"file":for(const n of e.proto.extension){const r=xt(n,e,t);e.extensions.push(r),t.add(r)}break;case"message":for(const n of e.proto.extension){const r=xt(n,e,t);e.nestedExtensions.push(r),t.add(r)}for(const n of e.nestedMessages)Jt(n,t);break}}function Dt(e,t,n){const r=e.proto.oneofDecl.map(s=>Na(s,e)),o=new Set;for(const s of e.proto.field){const i=Ra(s,r),a=xt(s,e,t,i,n);e.fields.push(a),e.field[a.localName]=a,i===void 0?e.members.push(a):(i.fields.push(a),o.has(i)||(o.add(i),e.members.push(i)))}for(const s of r.filter(i=>o.has(i)))e.oneofs.push(s);for(const s of e.nestedMessages)Dt(s,t,n)}function Jo(e,t,n,r){var o,s,i,a,c;const u=_a(e.name,e.value),l={kind:"enum",proto:e,deprecated:(s=(o=e.options)===null||o===void 0?void 0:o.deprecated)!==null&&s!==void 0?s:!1,file:t,parent:n,open:!0,name:e.name,typeName:bt(e,n,t),value:{},values:[],sharedPrefix:u,toString(){return`enum ${this.typeName}`}};l.open=Va(l),r.add(l);for(const d of e.value){const g=d.name;l.values.push(l.value[d.number]={kind:"enum_value",proto:d,deprecated:(a=(i=d.options)===null||i===void 0?void 0:i.deprecated)!==null&&a!==void 0?a:!1,parent:l,name:g,localName:Ye(u==null?g:g.substring(u.length)),number:d.number,toString(){return`enum value ${l.typeName}.${g}`}})}((c=n==null?void 0:n.nestedEnums)!==null&&c!==void 0?c:t.enums).push(l)}function Do(e,t,n,r,o){var s,i,a,c;const u={kind:"message",proto:e,deprecated:(i=(s=e.options)===null||s===void 0?void 0:s.deprecated)!==null&&i!==void 0?i:!1,file:t,parent:n,name:e.name,typeName:bt(e,n,t),fields:[],field:{},oneofs:[],members:[],nestedEnums:[],nestedMessages:[],nestedExtensions:[],toString(){return`message ${this.typeName}`}};((a=e.options)===null||a===void 0?void 0:a.mapEntry)===!0?o.add(u):(((c=n==null?void 0:n.nestedMessages)!==null&&c!==void 0?c:t.messages).push(u),r.add(u));for(const l of e.enumType)Jo(l,t,u,r);for(const l of e.nestedType)Do(l,t,u,r,o)}function Aa(e,t,n){var r,o;const s={kind:"service",proto:e,deprecated:(o=(r=e.options)===null||r===void 0?void 0:r.deprecated)!==null&&o!==void 0?o:!1,file:t,name:e.name,typeName:bt(e,void 0,t),methods:[],method:{},toString(){return`service ${this.typeName}`}};t.services.push(s),n.add(s);for(const i of e.method){const a=ya(i,s,n);s.methods.push(a),s.method[a.localName]=a}}function ya(e,t,n){var r,o,s,i;let a;e.clientStreaming&&e.serverStreaming?a="bidi_streaming":e.clientStreaming?a="client_streaming":e.serverStreaming?a="server_streaming":a="unary";const c=n.getMessage(ne(e.inputType)),u=n.getMessage(ne(e.outputType));Q(c,`invalid MethodDescriptorProto: input_type ${e.inputType} not found`),Q(u,`invalid MethodDescriptorProto: output_type ${e.inputType} not found`);const l=e.name;return{kind:"rpc",proto:e,deprecated:(o=(r=e.options)===null||r===void 0?void 0:r.deprecated)!==null&&o!==void 0?o:!1,parent:t,name:l,localName:Ye(l.length?Ye(l[0].toLowerCase()+l.substring(1)):l),methodKind:a,input:c,output:u,idempotency:(i=(s=e.options)===null||s===void 0?void 0:s.idempotencyLevel)!==null&&i!==void 0?i:ha,toString(){return`rpc ${t.typeName}.${l}`}}}function Na(e,t){return{kind:"oneof",proto:e,deprecated:!1,parent:t,fields:[],name:e.name,localName:Ye(_e(e.name)),toString(){return`oneof ${t.typeName}.${this.name}`}}}function xt(e,t,n,r,o){var s,i,a;const c=o===void 0,u={kind:"field",proto:e,deprecated:(i=(s=e.options)===null||s===void 0?void 0:s.deprecated)!==null&&i!==void 0?i:!1,name:e.name,number:e.number,scalar:void 0,message:void 0,enum:void 0,presence:wa(e,r,c,t),listKind:void 0,mapKind:void 0,mapKey:void 0,delimitedEncoding:void 0,packed:void 0,longAsString:!1,getDefaultValue:void 0};if(c){const f=t.kind=="file"?t:t.file,p=t.kind=="file"?void 0:t,b=bt(e,p,f);u.kind="extension",u.file=f,u.parent=p,u.oneof=void 0,u.typeName=b,u.jsonName=`[${b}]`,u.toString=()=>`extension ${b}`;const E=n.getMessage(ne(e.extendee));Q(E,`invalid FieldDescriptorProto: extendee ${e.extendee} not found`),u.extendee=E}else{const f=t;Q(f.kind=="message"),u.parent=f,u.oneof=r,u.localName=r?_e(e.name):Ye(_e(e.name)),u.jsonName=e.jsonName,u.toString=()=>`field ${f.typeName}.${e.name}`}const l=e.label,d=e.type,g=(a=e.options)===null||a===void 0?void 0:a.jstype;if(l===In){const f=d==Ge?o==null?void 0:o.get(ne(e.typeName)):void 0;if(f){u.fieldKind="map";const{key:p,value:b}=ka(f);return u.mapKey=p.scalar,u.mapKind=b.fieldKind,u.message=b.message,u.delimitedEncoding=!1,u.enum=b.enum,u.scalar=b.scalar,u}switch(u.fieldKind="list",d){case Ge:case Ue:u.listKind="message",u.message=n.getMessage(ne(e.typeName)),Q(u.message),u.delimitedEncoding=nr(e,t);break;case Hn:u.listKind="enum",u.enum=n.getEnum(ne(e.typeName)),Q(u.enum);break;default:u.listKind="scalar",u.scalar=d,u.longAsString=g==qn;break}return u.packed=va(e,t),u}switch(d){case Ge:case Ue:u.fieldKind="message",u.message=n.getMessage(ne(e.typeName)),Q(u.message,`invalid FieldDescriptorProto: type_name ${e.typeName} not found`),u.delimitedEncoding=nr(e,t),u.getDefaultValue=()=>{};break;case Hn:{const f=n.getEnum(ne(e.typeName));Q(f!==void 0,`invalid FieldDescriptorProto: type_name ${e.typeName} not found`),u.fieldKind="enum",u.enum=n.getEnum(ne(e.typeName)),u.getDefaultValue=()=>Te(e,"defaultValue")?sa(f,e.defaultValue):void 0;break}default:{u.fieldKind="scalar",u.scalar=d,u.longAsString=g==qn,u.getDefaultValue=()=>Te(e,"defaultValue")?ia(d,e.defaultValue):void 0;break}}return u}function Ia(e){switch(e.syntax){case"":case"proto2":return ua;case"proto3":return la;case"editions":if(e.edition in zo)return e.edition;throw new Error(`${e.name}: unsupported edition`);default:throw new Error(`${e.name}: unsupported syntax "${e.syntax}"`)}}function Sa(e,t){return e.dependency.map(n=>{const r=t.getFile(n);if(!r)throw new Error(`Cannot find ${n}, imported by ${e.name}`);return r})}function _a(e,t){const n=Za(e)+"_";for(const r of t){if(!r.name.toLowerCase().startsWith(n))return;const o=r.name.substring(n.length);if(o.length==0||/^\d/.test(o))return}return n}function Za(e){return(e.substring(0,1)+e.substring(1).replace(/[A-Z]/g,t=>"_"+t)).toLowerCase()}function bt(e,t,n){let r;return t?r=`${t.typeName}.${e.name}`:n.proto.package.length>0?r=`${n.proto.package}.${e.name}`:r=`${e.name}`,r}function ne(e){return e.startsWith(".")?e.substring(1):e}function Ra(e,t){if(!Te(e,"oneofIndex")||e.proto3Optional)return;const n=t[e.oneofIndex];return Q(n,`invalid FieldDescriptorProto: oneof #${e.oneofIndex} for field #${e.number} not found`),n}function wa(e,t,n,r){if(e.label==ma)return ga;if(e.label==In)return er;if(t||e.proto3Optional||n)return Tt;const o=Ze("fieldPresence",{proto:e,parent:r});return o==er&&(e.type==Ge||e.type==Ue)?Tt:o}function va(e,t){if(e.label!=In)return!1;switch(e.type){case da:case fa:case Ue:case Ge:return!1}const n=e.options;return n&&Te(n,"packed")?n.packed:pa==Ze("repeatedFieldEncoding",{proto:e,parent:t})}function ka(e){const t=e.fields.find(r=>r.number===1),n=e.fields.find(r=>r.number===2);return Q(t&&t.fieldKind=="scalar"&&t.scalar!=m.BYTES&&t.scalar!=m.FLOAT&&t.scalar!=m.DOUBLE&&n&&n.fieldKind!="list"&&n.fieldKind!="map"),{key:t,value:n}}function Va(e){var t;return Ea==Ze("enumType",{proto:e.proto,parent:(t=e.parent)!==null&&t!==void 0?t:e.file})}function nr(e,t){return e.type==Ue?!0:ba==Ze("messageEncoding",{proto:e,parent:t})}function Ze(e,t){var n,r;const o=(n=t.proto.options)===null||n===void 0?void 0:n.features;if(o){const s=o[e];if(s!=0)return s}if("kind"in t){if(t.kind=="message")return Ze(e,(r=t.parent)!==null&&r!==void 0?r:t.file);const s=zo[t.edition];if(!s)throw new Error(`feature default for edition ${t.edition} not found`);return s[e]}return Ze(e,t.parent)}function Q(e,t){if(!e)throw new Error(t)}function Ba(e){const t=Ca(e);return t.messageType.forEach(Nn),Oo(t,()=>{}).getFile(t.name)}function Ca(e){return Object.assign(Object.create({syntax:"",edition:0}),Object.assign(Object.assign({$typeName:"google.protobuf.FileDescriptorProto",dependency:[],publicDependency:[],weakDependency:[],optionDependency:[],service:[],extension:[]},e),{messageType:e.messageType.map(xo),enumType:e.enumType.map(Ko)}))}function xo(e){var t,n,r,o,s,i,a,c;return Object.assign(Object.create({visibility:0}),{$typeName:"google.protobuf.DescriptorProto",name:e.name,field:(n=(t=e.field)===null||t===void 0?void 0:t.map(Fa))!==null&&n!==void 0?n:[],extension:[],nestedType:(o=(r=e.nestedType)===null||r===void 0?void 0:r.map(xo))!==null&&o!==void 0?o:[],enumType:(i=(s=e.enumType)===null||s===void 0?void 0:s.map(Ko))!==null&&i!==void 0?i:[],extensionRange:(c=(a=e.extensionRange)===null||a===void 0?void 0:a.map(l=>Object.assign({$typeName:"google.protobuf.DescriptorProto.ExtensionRange"},l)))!==null&&c!==void 0?c:[],oneofDecl:[],reservedRange:[],reservedName:[]})}function Fa(e){return Object.assign(Object.create({label:1,typeName:"",extendee:"",defaultValue:"",oneofIndex:0,jsonName:"",proto3Optional:!1}),Object.assign(Object.assign({$typeName:"google.protobuf.FieldDescriptorProto"},e),{options:e.options?Ga(e.options):void 0}))}function Ga(e){var t,n,r;return Object.assign(Object.create({ctype:0,packed:!1,jstype:0,lazy:!1,unverifiedLazy:!1,deprecated:!1,weak:!1,debugRedact:!1,retention:0}),Object.assign(Object.assign({$typeName:"google.protobuf.FieldOptions"},e),{targets:(t=e.targets)!==null&&t!==void 0?t:[],editionDefaults:(r=(n=e.editionDefaults)===null||n===void 0?void 0:n.map(s=>Object.assign({$typeName:"google.protobuf.FieldOptions.EditionDefault"},s)))!==null&&r!==void 0?r:[],uninterpretedOption:[]}))}function Ko(e){return Object.assign(Object.create({visibility:0}),{$typeName:"google.protobuf.EnumDescriptorProto",name:e.name,reservedName:[],reservedRange:[],value:e.value.map(n=>Object.assign({$typeName:"google.protobuf.EnumValueDescriptorProto"},n))})}function Ke(e,t,...n){return n.reduce((r,o)=>r.nestedMessages[o],e.messages[t])}const Ta=Ba({name:"google/protobuf/descriptor.proto",package:"google.protobuf",messageType:[{name:"FileDescriptorSet",field:[{name:"file",number:1,type:11,label:3,typeName:".google.protobuf.FileDescriptorProto"}],extensionRange:[{start:536e6,end:536000001}]},{name:"FileDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"package",number:2,type:9,label:1},{name:"dependency",number:3,type:9,label:3},{name:"public_dependency",number:10,type:5,label:3},{name:"weak_dependency",number:11,type:5,label:3},{name:"option_dependency",number:15,type:9,label:3},{name:"message_type",number:4,type:11,label:3,typeName:".google.protobuf.DescriptorProto"},{name:"enum_type",number:5,type:11,label:3,typeName:".google.protobuf.EnumDescriptorProto"},{name:"service",number:6,type:11,label:3,typeName:".google.protobuf.ServiceDescriptorProto"},{name:"extension",number:7,type:11,label:3,typeName:".google.protobuf.FieldDescriptorProto"},{name:"options",number:8,type:11,label:1,typeName:".google.protobuf.FileOptions"},{name:"source_code_info",number:9,type:11,label:1,typeName:".google.protobuf.SourceCodeInfo"},{name:"syntax",number:12,type:9,label:1},{name:"edition",number:14,type:14,label:1,typeName:".google.protobuf.Edition"}]},{name:"DescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"field",number:2,type:11,label:3,typeName:".google.protobuf.FieldDescriptorProto"},{name:"extension",number:6,type:11,label:3,typeName:".google.protobuf.FieldDescriptorProto"},{name:"nested_type",number:3,type:11,label:3,typeName:".google.protobuf.DescriptorProto"},{name:"enum_type",number:4,type:11,label:3,typeName:".google.protobuf.EnumDescriptorProto"},{name:"extension_range",number:5,type:11,label:3,typeName:".google.protobuf.DescriptorProto.ExtensionRange"},{name:"oneof_decl",number:8,type:11,label:3,typeName:".google.protobuf.OneofDescriptorProto"},{name:"options",number:7,type:11,label:1,typeName:".google.protobuf.MessageOptions"},{name:"reserved_range",number:9,type:11,label:3,typeName:".google.protobuf.DescriptorProto.ReservedRange"},{name:"reserved_name",number:10,type:9,label:3},{name:"visibility",number:11,type:14,label:1,typeName:".google.protobuf.SymbolVisibility"}],nestedType:[{name:"ExtensionRange",field:[{name:"start",number:1,type:5,label:1},{name:"end",number:2,type:5,label:1},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.ExtensionRangeOptions"}]},{name:"ReservedRange",field:[{name:"start",number:1,type:5,label:1},{name:"end",number:2,type:5,label:1}]}]},{name:"ExtensionRangeOptions",field:[{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"},{name:"declaration",number:2,type:11,label:3,typeName:".google.protobuf.ExtensionRangeOptions.Declaration",options:{retention:2}},{name:"features",number:50,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"verification",number:3,type:14,label:1,typeName:".google.protobuf.ExtensionRangeOptions.VerificationState",defaultValue:"UNVERIFIED",options:{retention:2}}],nestedType:[{name:"Declaration",field:[{name:"number",number:1,type:5,label:1},{name:"full_name",number:2,type:9,label:1},{name:"type",number:3,type:9,label:1},{name:"reserved",number:5,type:8,label:1},{name:"repeated",number:6,type:8,label:1}]}],enumType:[{name:"VerificationState",value:[{name:"DECLARATION",number:0},{name:"UNVERIFIED",number:1}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"FieldDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"number",number:3,type:5,label:1},{name:"label",number:4,type:14,label:1,typeName:".google.protobuf.FieldDescriptorProto.Label"},{name:"type",number:5,type:14,label:1,typeName:".google.protobuf.FieldDescriptorProto.Type"},{name:"type_name",number:6,type:9,label:1},{name:"extendee",number:2,type:9,label:1},{name:"default_value",number:7,type:9,label:1},{name:"oneof_index",number:9,type:5,label:1},{name:"json_name",number:10,type:9,label:1},{name:"options",number:8,type:11,label:1,typeName:".google.protobuf.FieldOptions"},{name:"proto3_optional",number:17,type:8,label:1}],enumType:[{name:"Type",value:[{name:"TYPE_DOUBLE",number:1},{name:"TYPE_FLOAT",number:2},{name:"TYPE_INT64",number:3},{name:"TYPE_UINT64",number:4},{name:"TYPE_INT32",number:5},{name:"TYPE_FIXED64",number:6},{name:"TYPE_FIXED32",number:7},{name:"TYPE_BOOL",number:8},{name:"TYPE_STRING",number:9},{name:"TYPE_GROUP",number:10},{name:"TYPE_MESSAGE",number:11},{name:"TYPE_BYTES",number:12},{name:"TYPE_UINT32",number:13},{name:"TYPE_ENUM",number:14},{name:"TYPE_SFIXED32",number:15},{name:"TYPE_SFIXED64",number:16},{name:"TYPE_SINT32",number:17},{name:"TYPE_SINT64",number:18}]},{name:"Label",value:[{name:"LABEL_OPTIONAL",number:1},{name:"LABEL_REPEATED",number:3},{name:"LABEL_REQUIRED",number:2}]}]},{name:"OneofDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"options",number:2,type:11,label:1,typeName:".google.protobuf.OneofOptions"}]},{name:"EnumDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"value",number:2,type:11,label:3,typeName:".google.protobuf.EnumValueDescriptorProto"},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.EnumOptions"},{name:"reserved_range",number:4,type:11,label:3,typeName:".google.protobuf.EnumDescriptorProto.EnumReservedRange"},{name:"reserved_name",number:5,type:9,label:3},{name:"visibility",number:6,type:14,label:1,typeName:".google.protobuf.SymbolVisibility"}],nestedType:[{name:"EnumReservedRange",field:[{name:"start",number:1,type:5,label:1},{name:"end",number:2,type:5,label:1}]}]},{name:"EnumValueDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"number",number:2,type:5,label:1},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.EnumValueOptions"}]},{name:"ServiceDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"method",number:2,type:11,label:3,typeName:".google.protobuf.MethodDescriptorProto"},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.ServiceOptions"}]},{name:"MethodDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"input_type",number:2,type:9,label:1},{name:"output_type",number:3,type:9,label:1},{name:"options",number:4,type:11,label:1,typeName:".google.protobuf.MethodOptions"},{name:"client_streaming",number:5,type:8,label:1,defaultValue:"false"},{name:"server_streaming",number:6,type:8,label:1,defaultValue:"false"}]},{name:"FileOptions",field:[{name:"java_package",number:1,type:9,label:1},{name:"java_outer_classname",number:8,type:9,label:1},{name:"java_multiple_files",number:10,type:8,label:1,defaultValue:"false"},{name:"java_generate_equals_and_hash",number:20,type:8,label:1,options:{deprecated:!0}},{name:"java_string_check_utf8",number:27,type:8,label:1,defaultValue:"false"},{name:"optimize_for",number:9,type:14,label:1,typeName:".google.protobuf.FileOptions.OptimizeMode",defaultValue:"SPEED"},{name:"go_package",number:11,type:9,label:1},{name:"cc_generic_services",number:16,type:8,label:1,defaultValue:"false"},{name:"java_generic_services",number:17,type:8,label:1,defaultValue:"false"},{name:"py_generic_services",number:18,type:8,label:1,defaultValue:"false"},{name:"deprecated",number:23,type:8,label:1,defaultValue:"false"},{name:"cc_enable_arenas",number:31,type:8,label:1,defaultValue:"true"},{name:"objc_class_prefix",number:36,type:9,label:1},{name:"csharp_namespace",number:37,type:9,label:1},{name:"swift_prefix",number:39,type:9,label:1},{name:"php_class_prefix",number:40,type:9,label:1},{name:"php_namespace",number:41,type:9,label:1},{name:"php_metadata_namespace",number:44,type:9,label:1},{name:"ruby_package",number:45,type:9,label:1},{name:"features",number:50,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],enumType:[{name:"OptimizeMode",value:[{name:"SPEED",number:1},{name:"CODE_SIZE",number:2},{name:"LITE_RUNTIME",number:3}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"MessageOptions",field:[{name:"message_set_wire_format",number:1,type:8,label:1,defaultValue:"false"},{name:"no_standard_descriptor_accessor",number:2,type:8,label:1,defaultValue:"false"},{name:"deprecated",number:3,type:8,label:1,defaultValue:"false"},{name:"map_entry",number:7,type:8,label:1},{name:"deprecated_legacy_json_field_conflicts",number:11,type:8,label:1,options:{deprecated:!0}},{name:"features",number:12,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"FieldOptions",field:[{name:"ctype",number:1,type:14,label:1,typeName:".google.protobuf.FieldOptions.CType",defaultValue:"STRING"},{name:"packed",number:2,type:8,label:1},{name:"jstype",number:6,type:14,label:1,typeName:".google.protobuf.FieldOptions.JSType",defaultValue:"JS_NORMAL"},{name:"lazy",number:5,type:8,label:1,defaultValue:"false"},{name:"unverified_lazy",number:15,type:8,label:1,defaultValue:"false"},{name:"deprecated",number:3,type:8,label:1,defaultValue:"false"},{name:"weak",number:10,type:8,label:1,defaultValue:"false",options:{deprecated:!0}},{name:"debug_redact",number:16,type:8,label:1,defaultValue:"false"},{name:"retention",number:17,type:14,label:1,typeName:".google.protobuf.FieldOptions.OptionRetention"},{name:"targets",number:19,type:14,label:3,typeName:".google.protobuf.FieldOptions.OptionTargetType"},{name:"edition_defaults",number:20,type:11,label:3,typeName:".google.protobuf.FieldOptions.EditionDefault"},{name:"features",number:21,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"feature_support",number:22,type:11,label:1,typeName:".google.protobuf.FieldOptions.FeatureSupport"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],nestedType:[{name:"EditionDefault",field:[{name:"edition",number:3,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"value",number:2,type:9,label:1}]},{name:"FeatureSupport",field:[{name:"edition_introduced",number:1,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"edition_deprecated",number:2,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"deprecation_warning",number:3,type:9,label:1},{name:"edition_removed",number:4,type:14,label:1,typeName:".google.protobuf.Edition"}]}],enumType:[{name:"CType",value:[{name:"STRING",number:0},{name:"CORD",number:1},{name:"STRING_PIECE",number:2}]},{name:"JSType",value:[{name:"JS_NORMAL",number:0},{name:"JS_STRING",number:1},{name:"JS_NUMBER",number:2}]},{name:"OptionRetention",value:[{name:"RETENTION_UNKNOWN",number:0},{name:"RETENTION_RUNTIME",number:1},{name:"RETENTION_SOURCE",number:2}]},{name:"OptionTargetType",value:[{name:"TARGET_TYPE_UNKNOWN",number:0},{name:"TARGET_TYPE_FILE",number:1},{name:"TARGET_TYPE_EXTENSION_RANGE",number:2},{name:"TARGET_TYPE_MESSAGE",number:3},{name:"TARGET_TYPE_FIELD",number:4},{name:"TARGET_TYPE_ONEOF",number:5},{name:"TARGET_TYPE_ENUM",number:6},{name:"TARGET_TYPE_ENUM_ENTRY",number:7},{name:"TARGET_TYPE_SERVICE",number:8},{name:"TARGET_TYPE_METHOD",number:9}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"OneofOptions",field:[{name:"features",number:1,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"EnumOptions",field:[{name:"allow_alias",number:2,type:8,label:1},{name:"deprecated",number:3,type:8,label:1,defaultValue:"false"},{name:"deprecated_legacy_json_field_conflicts",number:6,type:8,label:1,options:{deprecated:!0}},{name:"features",number:7,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"EnumValueOptions",field:[{name:"deprecated",number:1,type:8,label:1,defaultValue:"false"},{name:"features",number:2,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"debug_redact",number:3,type:8,label:1,defaultValue:"false"},{name:"feature_support",number:4,type:11,label:1,typeName:".google.protobuf.FieldOptions.FeatureSupport"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"ServiceOptions",field:[{name:"features",number:34,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"deprecated",number:33,type:8,label:1,defaultValue:"false"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"MethodOptions",field:[{name:"deprecated",number:33,type:8,label:1,defaultValue:"false"},{name:"idempotency_level",number:34,type:14,label:1,typeName:".google.protobuf.MethodOptions.IdempotencyLevel",defaultValue:"IDEMPOTENCY_UNKNOWN"},{name:"features",number:35,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],enumType:[{name:"IdempotencyLevel",value:[{name:"IDEMPOTENCY_UNKNOWN",number:0},{name:"NO_SIDE_EFFECTS",number:1},{name:"IDEMPOTENT",number:2}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"UninterpretedOption",field:[{name:"name",number:2,type:11,label:3,typeName:".google.protobuf.UninterpretedOption.NamePart"},{name:"identifier_value",number:3,type:9,label:1},{name:"positive_int_value",number:4,type:4,label:1},{name:"negative_int_value",number:5,type:3,label:1},{name:"double_value",number:6,type:1,label:1},{name:"string_value",number:7,type:12,label:1},{name:"aggregate_value",number:8,type:9,label:1}],nestedType:[{name:"NamePart",field:[{name:"name_part",number:1,type:9,label:2},{name:"is_extension",number:2,type:8,label:2}]}]},{name:"FeatureSet",field:[{name:"field_presence",number:1,type:14,label:1,typeName:".google.protobuf.FeatureSet.FieldPresence",options:{retention:1,targets:[4,1],editionDefaults:[{value:"EXPLICIT",edition:900},{value:"IMPLICIT",edition:999},{value:"EXPLICIT",edition:1e3}]}},{name:"enum_type",number:2,type:14,label:1,typeName:".google.protobuf.FeatureSet.EnumType",options:{retention:1,targets:[6,1],editionDefaults:[{value:"CLOSED",edition:900},{value:"OPEN",edition:999}]}},{name:"repeated_field_encoding",number:3,type:14,label:1,typeName:".google.protobuf.FeatureSet.RepeatedFieldEncoding",options:{retention:1,targets:[4,1],editionDefaults:[{value:"EXPANDED",edition:900},{value:"PACKED",edition:999}]}},{name:"utf8_validation",number:4,type:14,label:1,typeName:".google.protobuf.FeatureSet.Utf8Validation",options:{retention:1,targets:[4,1],editionDefaults:[{value:"NONE",edition:900},{value:"VERIFY",edition:999}]}},{name:"message_encoding",number:5,type:14,label:1,typeName:".google.protobuf.FeatureSet.MessageEncoding",options:{retention:1,targets:[4,1],editionDefaults:[{value:"LENGTH_PREFIXED",edition:900}]}},{name:"json_format",number:6,type:14,label:1,typeName:".google.protobuf.FeatureSet.JsonFormat",options:{retention:1,targets:[3,6,1],editionDefaults:[{value:"LEGACY_BEST_EFFORT",edition:900},{value:"ALLOW",edition:999}]}},{name:"enforce_naming_style",number:7,type:14,label:1,typeName:".google.protobuf.FeatureSet.EnforceNamingStyle",options:{retention:2,targets:[1,2,3,4,5,6,7,8,9],editionDefaults:[{value:"STYLE_LEGACY",edition:900},{value:"STYLE2024",edition:1001}]}},{name:"default_symbol_visibility",number:8,type:14,label:1,typeName:".google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility",options:{retention:2,targets:[1],editionDefaults:[{value:"EXPORT_ALL",edition:900},{value:"EXPORT_TOP_LEVEL",edition:1001}]}}],nestedType:[{name:"VisibilityFeature",enumType:[{name:"DefaultSymbolVisibility",value:[{name:"DEFAULT_SYMBOL_VISIBILITY_UNKNOWN",number:0},{name:"EXPORT_ALL",number:1},{name:"EXPORT_TOP_LEVEL",number:2},{name:"LOCAL_ALL",number:3},{name:"STRICT",number:4}]}]}],enumType:[{name:"FieldPresence",value:[{name:"FIELD_PRESENCE_UNKNOWN",number:0},{name:"EXPLICIT",number:1},{name:"IMPLICIT",number:2},{name:"LEGACY_REQUIRED",number:3}]},{name:"EnumType",value:[{name:"ENUM_TYPE_UNKNOWN",number:0},{name:"OPEN",number:1},{name:"CLOSED",number:2}]},{name:"RepeatedFieldEncoding",value:[{name:"REPEATED_FIELD_ENCODING_UNKNOWN",number:0},{name:"PACKED",number:1},{name:"EXPANDED",number:2}]},{name:"Utf8Validation",value:[{name:"UTF8_VALIDATION_UNKNOWN",number:0},{name:"VERIFY",number:2},{name:"NONE",number:3}]},{name:"MessageEncoding",value:[{name:"MESSAGE_ENCODING_UNKNOWN",number:0},{name:"LENGTH_PREFIXED",number:1},{name:"DELIMITED",number:2}]},{name:"JsonFormat",value:[{name:"JSON_FORMAT_UNKNOWN",number:0},{name:"ALLOW",number:1},{name:"LEGACY_BEST_EFFORT",number:2}]},{name:"EnforceNamingStyle",value:[{name:"ENFORCE_NAMING_STYLE_UNKNOWN",number:0},{name:"STYLE2024",number:1},{name:"STYLE_LEGACY",number:2}]}],extensionRange:[{start:1e3,end:9995},{start:9995,end:1e4},{start:1e4,end:10001}]},{name:"FeatureSetDefaults",field:[{name:"defaults",number:1,type:11,label:3,typeName:".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault"},{name:"minimum_edition",number:4,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"maximum_edition",number:5,type:14,label:1,typeName:".google.protobuf.Edition"}],nestedType:[{name:"FeatureSetEditionDefault",field:[{name:"edition",number:3,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"overridable_features",number:4,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"fixed_features",number:5,type:11,label:1,typeName:".google.protobuf.FeatureSet"}]}]},{name:"SourceCodeInfo",field:[{name:"location",number:1,type:11,label:3,typeName:".google.protobuf.SourceCodeInfo.Location"}],nestedType:[{name:"Location",field:[{name:"path",number:1,type:5,label:3,options:{packed:!0}},{name:"span",number:2,type:5,label:3,options:{packed:!0}},{name:"leading_comments",number:3,type:9,label:1},{name:"trailing_comments",number:4,type:9,label:1},{name:"leading_detached_comments",number:6,type:9,label:3}]}],extensionRange:[{start:536e6,end:536000001}]},{name:"GeneratedCodeInfo",field:[{name:"annotation",number:1,type:11,label:3,typeName:".google.protobuf.GeneratedCodeInfo.Annotation"}],nestedType:[{name:"Annotation",field:[{name:"path",number:1,type:5,label:3,options:{packed:!0}},{name:"source_file",number:2,type:9,label:1},{name:"begin",number:3,type:5,label:1},{name:"end",number:4,type:5,label:1},{name:"semantic",number:5,type:14,label:1,typeName:".google.protobuf.GeneratedCodeInfo.Annotation.Semantic"}],enumType:[{name:"Semantic",value:[{name:"NONE",number:0},{name:"SET",number:1},{name:"ALIAS",number:2}]}]}]}],enumType:[{name:"Edition",value:[{name:"EDITION_UNKNOWN",number:0},{name:"EDITION_LEGACY",number:900},{name:"EDITION_PROTO2",number:998},{name:"EDITION_PROTO3",number:999},{name:"EDITION_2023",number:1e3},{name:"EDITION_2024",number:1001},{name:"EDITION_UNSTABLE",number:9999},{name:"EDITION_1_TEST_ONLY",number:1},{name:"EDITION_2_TEST_ONLY",number:2},{name:"EDITION_99997_TEST_ONLY",number:99997},{name:"EDITION_99998_TEST_ONLY",number:99998},{name:"EDITION_99999_TEST_ONLY",number:99999},{name:"EDITION_MAX",number:2147483647}]},{name:"SymbolVisibility",value:[{name:"VISIBILITY_UNSET",number:0},{name:"VISIBILITY_LOCAL",number:1},{name:"VISIBILITY_EXPORT",number:2}]}]}),Ya=Ke(Ta,1);var rr;(function(e){e[e.DECLARATION=0]="DECLARATION",e[e.UNVERIFIED=1]="UNVERIFIED"})(rr||(rr={}));var or;(function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.GROUP=10]="GROUP",e[e.MESSAGE=11]="MESSAGE",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.ENUM=14]="ENUM",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"})(or||(or={}));var sr;(function(e){e[e.OPTIONAL=1]="OPTIONAL",e[e.REPEATED=3]="REPEATED",e[e.REQUIRED=2]="REQUIRED"})(sr||(sr={}));var ir;(function(e){e[e.SPEED=1]="SPEED",e[e.CODE_SIZE=2]="CODE_SIZE",e[e.LITE_RUNTIME=3]="LITE_RUNTIME"})(ir||(ir={}));var ar;(function(e){e[e.STRING=0]="STRING",e[e.CORD=1]="CORD",e[e.STRING_PIECE=2]="STRING_PIECE"})(ar||(ar={}));var cr;(function(e){e[e.JS_NORMAL=0]="JS_NORMAL",e[e.JS_STRING=1]="JS_STRING",e[e.JS_NUMBER=2]="JS_NUMBER"})(cr||(cr={}));var ur;(function(e){e[e.RETENTION_UNKNOWN=0]="RETENTION_UNKNOWN",e[e.RETENTION_RUNTIME=1]="RETENTION_RUNTIME",e[e.RETENTION_SOURCE=2]="RETENTION_SOURCE"})(ur||(ur={}));var lr;(function(e){e[e.TARGET_TYPE_UNKNOWN=0]="TARGET_TYPE_UNKNOWN",e[e.TARGET_TYPE_FILE=1]="TARGET_TYPE_FILE",e[e.TARGET_TYPE_EXTENSION_RANGE=2]="TARGET_TYPE_EXTENSION_RANGE",e[e.TARGET_TYPE_MESSAGE=3]="TARGET_TYPE_MESSAGE",e[e.TARGET_TYPE_FIELD=4]="TARGET_TYPE_FIELD",e[e.TARGET_TYPE_ONEOF=5]="TARGET_TYPE_ONEOF",e[e.TARGET_TYPE_ENUM=6]="TARGET_TYPE_ENUM",e[e.TARGET_TYPE_ENUM_ENTRY=7]="TARGET_TYPE_ENUM_ENTRY",e[e.TARGET_TYPE_SERVICE=8]="TARGET_TYPE_SERVICE",e[e.TARGET_TYPE_METHOD=9]="TARGET_TYPE_METHOD"})(lr||(lr={}));var Kt;(function(e){e[e.IDEMPOTENCY_UNKNOWN=0]="IDEMPOTENCY_UNKNOWN",e[e.NO_SIDE_EFFECTS=1]="NO_SIDE_EFFECTS",e[e.IDEMPOTENT=2]="IDEMPOTENT"})(Kt||(Kt={}));var dr;(function(e){e[e.DEFAULT_SYMBOL_VISIBILITY_UNKNOWN=0]="DEFAULT_SYMBOL_VISIBILITY_UNKNOWN",e[e.EXPORT_ALL=1]="EXPORT_ALL",e[e.EXPORT_TOP_LEVEL=2]="EXPORT_TOP_LEVEL",e[e.LOCAL_ALL=3]="LOCAL_ALL",e[e.STRICT=4]="STRICT"})(dr||(dr={}));var fr;(function(e){e[e.FIELD_PRESENCE_UNKNOWN=0]="FIELD_PRESENCE_UNKNOWN",e[e.EXPLICIT=1]="EXPLICIT",e[e.IMPLICIT=2]="IMPLICIT",e[e.LEGACY_REQUIRED=3]="LEGACY_REQUIRED"})(fr||(fr={}));var mr;(function(e){e[e.ENUM_TYPE_UNKNOWN=0]="ENUM_TYPE_UNKNOWN",e[e.OPEN=1]="OPEN",e[e.CLOSED=2]="CLOSED"})(mr||(mr={}));var hr;(function(e){e[e.REPEATED_FIELD_ENCODING_UNKNOWN=0]="REPEATED_FIELD_ENCODING_UNKNOWN",e[e.PACKED=1]="PACKED",e[e.EXPANDED=2]="EXPANDED"})(hr||(hr={}));var gr;(function(e){e[e.UTF8_VALIDATION_UNKNOWN=0]="UTF8_VALIDATION_UNKNOWN",e[e.VERIFY=2]="VERIFY",e[e.NONE=3]="NONE"})(gr||(gr={}));var pr;(function(e){e[e.MESSAGE_ENCODING_UNKNOWN=0]="MESSAGE_ENCODING_UNKNOWN",e[e.LENGTH_PREFIXED=1]="LENGTH_PREFIXED",e[e.DELIMITED=2]="DELIMITED"})(pr||(pr={}));var br;(function(e){e[e.JSON_FORMAT_UNKNOWN=0]="JSON_FORMAT_UNKNOWN",e[e.ALLOW=1]="ALLOW",e[e.LEGACY_BEST_EFFORT=2]="LEGACY_BEST_EFFORT"})(br||(br={}));var Er;(function(e){e[e.ENFORCE_NAMING_STYLE_UNKNOWN=0]="ENFORCE_NAMING_STYLE_UNKNOWN",e[e.STYLE2024=1]="STYLE2024",e[e.STYLE_LEGACY=2]="STYLE_LEGACY"})(Er||(Er={}));var Ar;(function(e){e[e.NONE=0]="NONE",e[e.SET=1]="SET",e[e.ALIAS=2]="ALIAS"})(Ar||(Ar={}));var yr;(function(e){e[e.EDITION_UNKNOWN=0]="EDITION_UNKNOWN",e[e.EDITION_LEGACY=900]="EDITION_LEGACY",e[e.EDITION_PROTO2=998]="EDITION_PROTO2",e[e.EDITION_PROTO3=999]="EDITION_PROTO3",e[e.EDITION_2023=1e3]="EDITION_2023",e[e.EDITION_2024=1001]="EDITION_2024",e[e.EDITION_UNSTABLE=9999]="EDITION_UNSTABLE",e[e.EDITION_1_TEST_ONLY=1]="EDITION_1_TEST_ONLY",e[e.EDITION_2_TEST_ONLY=2]="EDITION_2_TEST_ONLY",e[e.EDITION_99997_TEST_ONLY=99997]="EDITION_99997_TEST_ONLY",e[e.EDITION_99998_TEST_ONLY=99998]="EDITION_99998_TEST_ONLY",e[e.EDITION_99999_TEST_ONLY=99999]="EDITION_99999_TEST_ONLY",e[e.EDITION_MAX=2147483647]="EDITION_MAX"})(yr||(yr={}));var Nr;(function(e){e[e.VISIBILITY_UNSET=0]="VISIBILITY_UNSET",e[e.VISIBILITY_LOCAL=1]="VISIBILITY_LOCAL",e[e.VISIBILITY_EXPORT=2]="VISIBILITY_EXPORT"})(Nr||(Nr={}));const Ir={readUnknownFields:!0};function Ua(e){return e?Object.assign(Object.assign({},Ir),e):Ir}function Et(e,t,n){const r=H(e,void 0,!1);return Lo(r,new hn(t),Ua(n),!1,t.byteLength),r.message}function Lo(e,t,n,r,o){var s;const i=r?t.len:t.pos+o;let a,c;const u=(s=e.getUnknown())!==null&&s!==void 0?s:[];for(;t.pos<i&&([a,c]=t.tag(),!(r&&c==F.EndGroup));){const l=e.findNumber(a);if(!l){const d=t.skip(c,a);n.readUnknownFields&&u.push({no:a,wireType:c,data:d});continue}$o(e,t,l,c,n)}if(r&&(c!=F.EndGroup||a!==o))throw new Error("invalid end group tag");u.length>0&&e.setUnknown(u)}function $o(e,t,n,r,o){var s;switch(n.fieldKind){case"scalar":e.set(n,Re(t,n.scalar));break;case"enum":const i=Re(t,m.INT32);if(n.enum.open)e.set(n,i);else if(n.enum.values.some(c=>c.number===i))e.set(n,i);else if(o.readUnknownFields){const c=[];Ot(i,c);const u=(s=e.getUnknown())!==null&&s!==void 0?s:[];u.push({no:n.number,wireType:r,data:new Uint8Array(c)}),e.setUnknown(u)}break;case"message":e.set(n,Sn(t,o,n,e.get(n)));break;case"list":Xa(t,r,e.get(n),o);break;case"map":Wa(t,e.get(n),o);break}}function Wa(e,t,n){const r=t.field();let o,s;const i=e.uint32(),a=e.pos+i;for(;e.pos<a;){const[c]=e.tag();switch(c){case 1:o=Re(e,r.mapKey);break;case 2:switch(r.mapKind){case"scalar":s=Re(e,r.scalar);break;case"enum":s=e.int32();break;case"message":s=Sn(e,n,r);break}break}}if(o===void 0&&(o=Se(r.mapKey,!1)),s===void 0)switch(r.mapKind){case"scalar":s=Se(r.scalar,!1);break;case"enum":s=r.enum.values[0].number;break;case"message":s=H(r.message,void 0,!1);break}t.set(o,s)}function Xa(e,t,n,r){var o;const s=n.field();if(s.listKind==="message"){n.add(Sn(e,r,s));return}const i=(o=s.scalar)!==null&&o!==void 0?o:m.INT32;if(!(t==F.LengthDelimited&&i!=m.STRING&&i!=m.BYTES)){n.add(Re(e,i));return}const c=e.uint32()+e.pos;for(;e.pos<c;)n.add(Re(e,i))}function Sn(e,t,n,r){const o=n.delimitedEncoding,s=r??H(n.message,void 0,!1);return Lo(s,e,t,o,o?n.number:e.uint32()),s}function Re(e,t){switch(t){case m.STRING:return e.string();case m.BOOL:return e.bool();case m.DOUBLE:return e.double();case m.FLOAT:return e.float();case m.INT32:return e.int32();case m.INT64:return e.int64();case m.UINT64:return e.uint64();case m.FIXED64:return e.fixed64();case m.BYTES:return e.bytes();case m.FIXED32:return e.fixed32();case m.SFIXED32:return e.sfixed32();case m.SFIXED64:return e.sfixed64();case m.SINT64:return e.sint64();case m.UINT32:return e.uint32();case m.SINT32:return e.sint32()}}function ge(e,t){var n;const r=Et(Ya,yn(e));return r.messageType.forEach(Nn),r.dependency=(n=t==null?void 0:t.map(s=>s.proto.name))!==null&&n!==void 0?n:[],Oo(r,s=>t==null?void 0:t.find(i=>i.proto.name===s)).getFile(r.name)}const Oa=ge("Chlnb29nbGUvcHJvdG9idWYvYW55LnByb3RvEg9nb29nbGUucHJvdG9idWYiJgoDQW55EhAKCHR5cGVfdXJsGAEgASgJEg0KBXZhbHVlGAIgASgMQnYKE2NvbS5nb29nbGUucHJvdG9idWZCCEFueVByb3RvUAFaLGdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL2FueXBiogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM"),za=Ke(Oa,0),Ja=3,Sr={writeUnknownFields:!0};function Da(e){return e?Object.assign(Object.assign({},Sr),e):Sr}function Mo(e,t,n){return st(new wo,Da(n),H(e,t)).finish()}function st(e,t,n){var r;for(const o of n.sortedFields){if(!n.isSet(o)){if(o.presence==Ja)throw new Error(`cannot encode ${o} to binary: required field not set`);continue}Po(e,t,n,o)}if(t.writeUnknownFields)for(const{no:o,wireType:s,data:i}of(r=n.getUnknown())!==null&&r!==void 0?r:[])e.tag(o,s).raw(i);return e}function Po(e,t,n,r){var o;switch(r.fieldKind){case"scalar":case"enum":it(e,n.desc.typeName,r.name,(o=r.scalar)!==null&&o!==void 0?o:m.INT32,r.number,n.get(r));break;case"list":xa(e,t,r,n.get(r));break;case"message":Qo(e,t,r,n.get(r));break;case"map":for(const[s,i]of n.get(r))Ka(e,t,r,s,i);break}}function it(e,t,n,r,o,s){jo(e.tag(o,La(r)),t,n,r,s)}function Qo(e,t,n,r){n.delimitedEncoding?st(e.tag(n.number,F.StartGroup),t,r).tag(n.number,F.EndGroup):st(e.tag(n.number,F.LengthDelimited).fork(),t,r).join()}function xa(e,t,n,r){var o;if(n.listKind=="message"){for(const i of r)Qo(e,t,n,i);return}const s=(o=n.scalar)!==null&&o!==void 0?o:m.INT32;if(n.packed){if(!r.size)return;e.tag(n.number,F.LengthDelimited).fork();for(const i of r)jo(e,n.parent.typeName,n.name,s,i);e.join();return}for(const i of r)it(e,n.parent.typeName,n.name,s,n.number,i)}function Ka(e,t,n,r,o){var s;switch(e.tag(n.number,F.LengthDelimited).fork(),it(e,n.parent.typeName,n.name,n.mapKey,1,r),n.mapKind){case"scalar":case"enum":it(e,n.parent.typeName,n.name,(s=n.scalar)!==null&&s!==void 0?s:m.INT32,2,o);break;case"message":st(e.tag(2,F.LengthDelimited).fork(),t,o).join();break}e.join()}function jo(e,t,n,r,o){try{switch(r){case m.STRING:e.string(o);break;case m.BOOL:e.bool(o);break;case m.DOUBLE:e.double(o);break;case m.FLOAT:e.float(o);break;case m.INT32:e.int32(o);break;case m.INT64:e.int64(o);break;case m.UINT64:e.uint64(o);break;case m.FIXED64:e.fixed64(o);break;case m.BYTES:e.bytes(o);break;case m.FIXED32:e.fixed32(o);break;case m.SFIXED32:e.sfixed32(o);break;case m.SFIXED64:e.sfixed64(o);break;case m.SINT64:e.sint64(o);break;case m.UINT32:e.uint32(o);break;case m.SINT32:e.sint32(o);break}}catch(s){throw s instanceof Error?new Error(`cannot encode field ${t}.${n} to binary: ${s.message}`):s}}function La(e){switch(e){case m.BYTES:case m.STRING:return F.LengthDelimited;case m.DOUBLE:case m.FIXED64:case m.SFIXED64:return F.Bit64;case m.FIXED32:case m.SFIXED32:case m.FLOAT:return F.Bit32;default:return F.Varint}}function $a(e,t,n){let r=!1;return n||(n=j(za),r=!0),n.value=Mo(e,t),n.typeUrl=Qa(t.$typeName),r?n:void 0}function Ma(e,t){if(e.typeUrl==="")return!1;const n=typeof t=="string"?t:t.typeName,r=Ho(e.typeUrl);return n===r}function Pa(e,t){if(e.typeUrl==="")return;const n=t.kind=="message"?t:t.getMessage(Ho(e.typeUrl));if(!(!n||!Ma(e,n)))return Et(n,e.value)}function Qa(e){return`type.googleapis.com/${e}`}function Ho(e){const t=e.lastIndexOf("/"),n=t>=0?e.substring(t+1):e;if(!n.length)throw new Error(`invalid type url: ${e}`);return n}const _n=ge("Chxnb29nbGUvcHJvdG9idWYvc3RydWN0LnByb3RvEg9nb29nbGUucHJvdG9idWYihAEKBlN0cnVjdBIzCgZmaWVsZHMYASADKAsyIy5nb29nbGUucHJvdG9idWYuU3RydWN0LkZpZWxkc0VudHJ5GkUKC0ZpZWxkc0VudHJ5EgsKA2tleRgBIAEoCRIlCgV2YWx1ZRgCIAEoCzIWLmdvb2dsZS5wcm90b2J1Zi5WYWx1ZToCOAEi6gEKBVZhbHVlEjAKCm51bGxfdmFsdWUYASABKA4yGi5nb29nbGUucHJvdG9idWYuTnVsbFZhbHVlSAASFgoMbnVtYmVyX3ZhbHVlGAIgASgBSAASFgoMc3RyaW5nX3ZhbHVlGAMgASgJSAASFAoKYm9vbF92YWx1ZRgEIAEoCEgAEi8KDHN0cnVjdF92YWx1ZRgFIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3RIABIwCgpsaXN0X3ZhbHVlGAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLkxpc3RWYWx1ZUgAQgYKBGtpbmQiMwoJTGlzdFZhbHVlEiYKBnZhbHVlcxgBIAMoCzIWLmdvb2dsZS5wcm90b2J1Zi5WYWx1ZSobCglOdWxsVmFsdWUSDgoKTlVMTF9WQUxVRRAAQn8KE2NvbS5nb29nbGUucHJvdG9idWZCC1N0cnVjdFByb3RvUAFaL2dvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL3N0cnVjdHBi+AEBogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM"),ja=Ke(_n,0),qo=Ke(_n,1),Ha=Ke(_n,2);var Lt;(function(e){e[e.NULL_VALUE=0]="NULL_VALUE"})(Lt||(Lt={}));function qa(e,t){es(t,e);const n=tc(e.$unknown,t),[r,o,s]=At(t);for(const i of n)$o(r,new hn(i.data),o,i.wireType,{readUnknownFields:!0});return s()}function ec(e,t,n){var r;es(t,e);const o=((r=e.$unknown)!==null&&r!==void 0?r:[]).filter(u=>u.no!==t.number),[s,i]=At(t,n),a=new wo;Po(a,{writeUnknownFields:!0},s,i);const c=new hn(a.finish());for(;c.pos<c.len;){const[u,l]=c.tag(),d=c.skip(l,u);o.push({no:u,wireType:l,data:d})}e.$unknown=o}function tc(e,t){if(e===void 0)return[];if(t.fieldKind==="enum"||t.fieldKind==="scalar"){for(let n=e.length-1;n>=0;--n)if(e[n].no==t.number)return[e[n]];return[]}return e.filter(n=>n.no===t.number)}function At(e,t){const n=e.typeName,r=Object.assign(Object.assign({},e),{kind:"field",parent:e.extendee,localName:n}),o=Object.assign(Object.assign({},e.extendee),{fields:[r],members:[r],oneofs:[]}),s=j(o,t!==void 0?{[n]:t}:void 0);return[H(o,s),r,()=>{const i=s[n];if(i===void 0){const a=e.message;return xe(a)?Se(a.fields[0].scalar,a.fields[0].longAsString):j(a)}return i}]}function es(e,t){if(e.extendee.typeName!=t.$typeName)throw new Error(`extension ${e.typeName} can only be applied to message ${e.extendee.typeName}`)}const nc=3,rc=2,_r={alwaysEmitImplicit:!1,enumAsInteger:!1,useProtoFieldName:!1};function oc(e){return e?Object.assign(Object.assign({},_r),e):_r}function sc(e,t,n){return Le(H(e,t),oc(n))}function ic(e,t,n){var r;const o=sc(e,t,n);return JSON.stringify(o,null,(r=n==null?void 0:n.prettySpaces)!==null&&r!==void 0?r:0)}function Le(e,t){var n;const r=lc(e,t);if(r!==void 0)return r;const o={};for(const s of e.sortedFields){if(!e.isSet(s)){if(s.presence==nc)throw new Error(`cannot encode ${s} to JSON: required field not set`);if(!t.alwaysEmitImplicit||s.presence!==rc)continue}const i=Zr(s,e.get(s),t);i!==void 0&&(o[uc(s,t)]=i)}if(t.registry){const s=new Set;for(const{no:i}of(n=e.getUnknown())!==null&&n!==void 0?n:[])if(!s.has(i)){s.add(i);const a=t.registry.getExtensionFor(e.desc,i);if(!a)continue;const c=qa(e.message,a),[u,l]=At(a,c),d=Zr(l,u.get(l),t);d!==void 0&&(o[a.jsonName]=d)}}return o}function Zr(e,t,n){switch(e.fieldKind){case"scalar":return yt(e,t);case"message":return Le(t,n);case"enum":return Zn(e.enum,t,n.enumAsInteger);case"list":return cc(t,n);case"map":return ac(t,n)}}function ac(e,t){const n=e.field(),r={};switch(n.mapKind){case"scalar":for(const[o,s]of e)r[o]=yt(n,s);break;case"message":for(const[o,s]of e)r[o]=Le(s,t);break;case"enum":for(const[o,s]of e)r[o]=Zn(n.enum,s,t.enumAsInteger);break}return t.alwaysEmitImplicit||e.size>0?r:void 0}function cc(e,t){const n=e.field(),r=[];switch(n.listKind){case"scalar":for(const o of e)r.push(yt(n,o));break;case"enum":for(const o of e)r.push(Zn(n.enum,o,t.enumAsInteger));break;case"message":for(const o of e)r.push(Le(o,t));break}return t.alwaysEmitImplicit||r.length>0?r:void 0}function Zn(e,t,n){var r;if(typeof t!="number")throw new Error(`cannot encode ${e} to JSON: expected number, got ${X(t)}`);if(e.typeName=="google.protobuf.NullValue")return null;if(n)return t;const o=e.value[t];return(r=o==null?void 0:o.name)!==null&&r!==void 0?r:t}function yt(e,t){var n,r,o,s,i,a;switch(e.scalar){case m.INT32:case m.SFIXED32:case m.SINT32:case m.FIXED32:case m.UINT32:if(typeof t!="number")throw new Error(`cannot encode ${e} to JSON: ${(n=me(e,t))===null||n===void 0?void 0:n.message}`);return t;case m.FLOAT:case m.DOUBLE:if(typeof t!="number")throw new Error(`cannot encode ${e} to JSON: ${(r=me(e,t))===null||r===void 0?void 0:r.message}`);return Number.isNaN(t)?"NaN":t===Number.POSITIVE_INFINITY?"Infinity":t===Number.NEGATIVE_INFINITY?"-Infinity":t;case m.STRING:if(typeof t!="string")throw new Error(`cannot encode ${e} to JSON: ${(o=me(e,t))===null||o===void 0?void 0:o.message}`);return t;case m.BOOL:if(typeof t!="boolean")throw new Error(`cannot encode ${e} to JSON: ${(s=me(e,t))===null||s===void 0?void 0:s.message}`);return t;case m.UINT64:case m.FIXED64:case m.INT64:case m.SFIXED64:case m.SINT64:if(typeof t!="bigint"&&typeof t!="string")throw new Error(`cannot encode ${e} to JSON: ${(i=me(e,t))===null||i===void 0?void 0:i.message}`);return t.toString();case m.BYTES:if(t instanceof Uint8Array)return Uo(t);throw new Error(`cannot encode ${e} to JSON: ${(a=me(e,t))===null||a===void 0?void 0:a.message}`)}}function uc(e,t){return t.useProtoFieldName?e.name:e.jsonName}function lc(e,t){if(e.desc.typeName.startsWith("google.protobuf."))switch(e.desc.typeName){case"google.protobuf.Any":return dc(e.message,t);case"google.protobuf.Timestamp":return hc(e.message);case"google.protobuf.Duration":return fc(e.message);case"google.protobuf.FieldMask":return mc(e.message);case"google.protobuf.Struct":return ts(e.message);case"google.protobuf.Value":return Rn(e.message);case"google.protobuf.ListValue":return ns(e.message);default:if(xe(e.desc)){const n=e.desc.fields[0];return yt(n,e.get(n))}return}}function dc(e,t){if(e.typeUrl==="")return{};const{registry:n}=t;let r,o;if(n&&(r=Pa(e,n),r&&(o=n.getMessage(r.$typeName))),!o||!r)throw new Error(`cannot encode message ${e.$typeName} to JSON: "${e.typeUrl}" is not in the type registry`);let s=Le(H(o,r),t);return(o.typeName.startsWith("google.protobuf.")||s===null||Array.isArray(s)||typeof s!="object")&&(s={value:s}),s["@type"]=e.typeUrl,s}function fc(e){const t=Number(e.seconds),n=e.nanos;if(t>315576e6||t<-315576e6)throw new Error(`cannot encode message ${e.$typeName} to JSON: value out of range`);if(t>0&&n<0||t<0&&n>0)throw new Error(`cannot encode message ${e.$typeName} to JSON: nanos sign must match seconds sign`);let r=e.seconds.toString();if(n!==0){let o=Math.abs(n).toString();o="0".repeat(9-o.length)+o,o.substring(3)==="000000"?o=o.substring(0,3):o.substring(6)==="000"&&(o=o.substring(0,6)),r+="."+o,n<0&&t==0&&(r="-"+r)}return r+"s"}function mc(e){return e.paths.map(t=>{if(Xo(_e(t))!==t)throw new Error(`cannot encode message ${e.$typeName} to JSON: lowerCamelCase of path name "${t}" is irreversible`);return _e(t)}).join(",")}function ts(e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=Rn(r);return t}function Rn(e){switch(e.kind.case){case"nullValue":return null;case"numberValue":if(!Number.isFinite(e.kind.value))throw new Error(`${e.$typeName} cannot be NaN or Infinity`);return e.kind.value;case"boolValue":return e.kind.value;case"stringValue":return e.kind.value;case"structValue":return ts(e.kind.value);case"listValue":return ns(e.kind.value);default:throw new Error(`${e.$typeName} must have a value`)}}function ns(e){return e.values.map(Rn)}function hc(e){const t=Number(e.seconds)*1e3;if(t<Date.parse("0001-01-01T00:00:00Z")||t>Date.parse("9999-12-31T23:59:59Z"))throw new Error(`cannot encode message ${e.$typeName} to JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive`);if(e.nanos<0)throw new Error(`cannot encode message ${e.$typeName} to JSON: nanos must not be negative`);if(e.nanos>999999999)throw new Error(`cannot encode message ${e.$typeName} to JSON: nanos must not be greater than 99999999`);let n="Z";if(e.nanos>0){const r=(e.nanos+1e9).toString().substring(1);r.substring(3)==="000000"?n="."+r.substring(0,3)+"Z":r.substring(6)==="000"?n="."+r.substring(0,6)+"Z":n="."+r+"Z"}return new Date(t).toISOString().replace(".000Z",n)}const Rr={ignoreUnknownFields:!1};function gc(e){return e?Object.assign(Object.assign({},Rr),e):Rr}function pc(e,t,n){return rs(e,_c(t,e.typeName),n)}function rs(e,t,n){const r=H(e);try{We(r,t,gc(n))}catch(o){throw Qi(o)?new Error(`cannot decode ${o.field()} from JSON: ${o.message}`,{cause:o}):o}return r.message}const Yt=new WeakMap;function bc(e,t){var n;if(!Yt.has(e)){const r=new Map;for(const o of e.fields)r.set(o.name,o).set(o.jsonName,o);Yt.set(e,r)}return(n=Yt.get(e))===null||n===void 0?void 0:n.get(t)}function We(e,t,n){var r;if(Zc(e,t,n))return;if(t==null||Array.isArray(t)||typeof t!="object")throw new Error(`cannot decode ${e.desc} from JSON: ${X(t)}`);const o=new Map;for(const[s,i]of Object.entries(t)){const a=bc(e.desc,s);if(a){if(a.oneof){if(i===null&&a.fieldKind=="scalar")continue;const c=o.get(a.oneof);if(c!==void 0)throw new K(a.oneof,`oneof set multiple times by ${c.name} and ${a.name}`);o.set(a.oneof,a)}wr(e,a,i,n)}else{let c;if(s.startsWith("[")&&s.endsWith("]")&&(c=(r=n.registry)===null||r===void 0?void 0:r.getExtension(s.substring(1,s.length-1)))&&c.extendee.typeName===e.desc.typeName){const[u,l,d]=At(c);wr(u,l,i,n),ec(e.message,c,d())}if(!c&&!n.ignoreUnknownFields)throw new Error(`cannot decode ${e.desc} from JSON: key "${s}" is unknown`)}}}function wr(e,t,n,r){switch(t.fieldKind){case"scalar":Ic(e,t,n);break;case"enum":Nc(e,t,n,r);break;case"message":yc(e,t,n,r);break;case"list":Ac(e.get(t),n,r);break;case"map":Ec(e.get(t),n,r);break}}function os(e,t,n){if(e.scalar&&t!==null)return wn(e,t);if(e.message&&!at(e,t)){const r=H(e.message);return We(r,t,n),r}if(e.enum&&!at(e,t))return ss(e.enum,t,n.ignoreUnknownFields);throw new K(e,`${e.fieldKind==="list"?"list item":"map value"} must not be null`)}function Ec(e,t,n){if(t===null)return;const r=e.field();if(typeof t!="object"||Array.isArray(t))throw new K(r,"expected object, got "+X(t));for(const[o,s]of Object.entries(t)){const i=Sc(r.mapKey,o),a=os(r,s,n);a!==Nt&&e.set(i,a)}}function Ac(e,t,n){if(t===null)return;const r=e.field();if(!Array.isArray(t))throw new K(r,"expected Array, got "+X(t));for(const o of t){const s=os(r,o,n);s!==Nt&&e.add(s)}}function yc(e,t,n,r){if(at(t,n)){e.clear(t);return}const o=e.isSet(t)?e.get(t):H(t.message);We(o,n,r),e.set(t,o)}function Nc(e,t,n,r){if(at(t,n)){e.clear(t);return}const o=ss(t.enum,n,r.ignoreUnknownFields);o!==Nt&&e.set(t,o)}function Ic(e,t,n){n===null?e.clear(t):e.set(t,wn(t,n))}function at(e,t){var n,r;return t===null&&((n=e.message)===null||n===void 0?void 0:n.typeName)!="google.protobuf.Value"&&((r=e.enum)===null||r===void 0?void 0:r.typeName)!="google.protobuf.NullValue"}const Nt=Symbol();function ss(e,t,n){if(t===null)return e.values[0].number;switch(typeof t){case"number":if(Number.isInteger(t))return t;break;case"string":const r=e.values.find(o=>o.name===t);if(r!==void 0)return r.number;if(n)return Nt;break}throw new Error(`cannot decode ${e} from JSON: ${X(t)}`)}function wn(e,t){switch(e.scalar){case m.DOUBLE:case m.FLOAT:if(t==="NaN")return NaN;if(t==="Infinity")return Number.POSITIVE_INFINITY;if(t==="-Infinity")return Number.NEGATIVE_INFINITY;if(typeof t=="number"){if(Number.isNaN(t))throw new K(e,"unexpected NaN number");if(!Number.isFinite(t))throw new K(e,"unexpected infinite number");break}if(typeof t=="string"){if(t===""||t.trim().length!==t.length)break;const n=Number(t);if(!Number.isFinite(n))break;return n}break;case m.INT32:case m.FIXED32:case m.SFIXED32:case m.SINT32:case m.UINT32:return is(t);case m.BYTES:if(typeof t=="string"){if(t==="")return new Uint8Array(0);try{return yn(t)}catch(n){const r=n instanceof Error?n.message:String(n);throw new K(e,r)}}break}return t}function Sc(e,t){switch(e){case m.BOOL:switch(t){case"true":return!0;case"false":return!1}return t;case m.INT32:case m.FIXED32:case m.UINT32:case m.SFIXED32:case m.SINT32:return is(t);default:return t}}function is(e){if(typeof e=="string"){if(e===""||e.trim().length!==e.length)return e;const t=Number(e);return Number.isNaN(t)?e:t}return e}function _c(e,t){try{return JSON.parse(e)}catch(n){const r=n instanceof Error?n.message:String(n);throw new Error(`cannot decode message ${t} from JSON: ${r}`,{cause:n})}}function Zc(e,t,n){if(!e.desc.typeName.startsWith("google.protobuf."))return!1;switch(e.desc.typeName){case"google.protobuf.Any":return Rc(e.message,t,n),!0;case"google.protobuf.Timestamp":return wc(e.message,t),!0;case"google.protobuf.Duration":return vc(e.message,t),!0;case"google.protobuf.FieldMask":return kc(e.message,t),!0;case"google.protobuf.Struct":return as(e.message,t),!0;case"google.protobuf.Value":return vn(e.message,t),!0;case"google.protobuf.ListValue":return cs(e.message,t),!0;default:if(xe(e.desc)){const r=e.desc.fields[0];return t===null?e.clear(r):e.set(r,wn(r,t)),!0}return!1}}function Rc(e,t,n){var r;if(t===null||Array.isArray(t)||typeof t!="object")throw new Error(`cannot decode message ${e.$typeName} from JSON: expected object but got ${X(t)}`);if(Object.keys(t).length==0)return;const o=t["@type"];if(typeof o!="string"||o=="")throw new Error(`cannot decode message ${e.$typeName} from JSON: "@type" is empty`);const s=o.includes("/")?o.substring(o.lastIndexOf("/")+1):o;if(!s.length)throw new Error(`cannot decode message ${e.$typeName} from JSON: "@type" is invalid`);const i=(r=n.registry)===null||r===void 0?void 0:r.getMessage(s);if(!i)throw new Error(`cannot decode message ${e.$typeName} from JSON: ${o} is not in the type registry`);const a=H(i);if(s.startsWith("google.protobuf.")&&Object.prototype.hasOwnProperty.call(t,"value")){const c=t.value;We(a,c,n)}else{const c=Object.assign({},t);delete c["@type"],We(a,c,n)}$a(a.desc,a.message,e)}function wc(e,t){if(typeof t!="string")throw new Error(`cannot decode message ${e.$typeName} from JSON: ${X(t)}`);const n=t.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:\.([0-9]{1,9}))?(?:Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!n)throw new Error(`cannot decode message ${e.$typeName} from JSON: invalid RFC 3339 string`);const r=Date.parse(n[1]+"-"+n[2]+"-"+n[3]+"T"+n[4]+":"+n[5]+":"+n[6]+(n[8]?n[8]:"Z"));if(Number.isNaN(r))throw new Error(`cannot decode message ${e.$typeName} from JSON: invalid RFC 3339 string`);if(r<Date.parse("0001-01-01T00:00:00Z")||r>Date.parse("9999-12-31T23:59:59Z"))throw new Error(`cannot decode message ${e.$typeName} from JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive`);e.seconds=k.parse(r/1e3),e.nanos=0,n[7]&&(e.nanos=parseInt("1"+n[7]+"0".repeat(9-n[7].length))-1e9)}function vc(e,t){if(typeof t!="string")throw new Error(`cannot decode message ${e.$typeName} from JSON: ${X(t)}`);const n=t.match(/^(-?[0-9]+)(?:\.([0-9]+))?s/);if(n===null)throw new Error(`cannot decode message ${e.$typeName} from JSON: ${X(t)}`);const r=Number(n[1]);if(r>315576e6||r<-315576e6)throw new Error(`cannot decode message ${e.$typeName} from JSON: ${X(t)}`);if(e.seconds=k.parse(r),typeof n[2]!="string")return;const o=n[2]+"0".repeat(9-n[2].length);e.nanos=parseInt(o),(r<0||Object.is(r,-0))&&(e.nanos=-e.nanos)}function kc(e,t){if(typeof t!="string")throw new Error(`cannot decode message ${e.$typeName} from JSON: ${X(t)}`);t!==""&&(e.paths=t.split(",").map(n=>{if(n.includes("_"))throw new Error(`cannot decode message ${e.$typeName} from JSON: path names must be lowerCamelCase`);return Xo(n)}))}function as(e,t){if(typeof t!="object"||t==null||Array.isArray(t))throw new Error(`cannot decode message ${e.$typeName} from JSON ${X(t)}`);for(const[n,r]of Object.entries(t)){const o=j(qo);vn(o,r),e.fields[n]=o}}function vn(e,t){switch(typeof t){case"number":e.kind={case:"numberValue",value:t};break;case"string":e.kind={case:"stringValue",value:t};break;case"boolean":e.kind={case:"boolValue",value:t};break;case"object":if(t===null)e.kind={case:"nullValue",value:Lt.NULL_VALUE};else if(Array.isArray(t)){const n=j(Ha);cs(n,t),e.kind={case:"listValue",value:n}}else{const n=j(ja);as(n,t),e.kind={case:"structValue",value:n}}break;default:throw new Error(`cannot decode message ${e.$typeName} from JSON ${X(t)}`)}return e}function cs(e,t){if(!Array.isArray(t))throw new Error(`cannot decode message ${e.$typeName} from JSON ${X(t)}`);for(const n of t){const r=j(qo);vn(r,n),e.values.push(r)}}function $t(e){const t=S[e];return typeof t!="string"?e.toString():t[0].toLowerCase()+t.substring(1).replace(/[A-Z]/g,n=>"_"+n.toLowerCase())}let je;function Vc(e){if(!je){je={};for(const t of Object.values(S))typeof t!="string"&&(je[$t(t)]=t)}return je[e]}class G extends Error{constructor(t,n=S.Unknown,r,o,s){super(Bc(t,n)),this.name="ConnectError",Object.setPrototypeOf(this,new.target.prototype),this.rawMessage=t,this.code=n,this.metadata=new Headers(r??{}),this.details=o??[],this.cause=s}static from(t,n=S.Unknown){return t instanceof G?t:t instanceof Error?t.name=="AbortError"||t.name=="TimeoutError"?new G(t.message,S.Canceled):new G(t.message,n,void 0,void 0,t):new G(String(t),n,void 0,void 0,t)}static[Symbol.hasInstance](t){return t instanceof Error?Object.getPrototypeOf(t)===G.prototype?!0:t.name==="ConnectError"&&"code"in t&&typeof t.code=="number"&&"metadata"in t&&"details"in t&&Array.isArray(t.details)&&"rawMessage"in t&&typeof t.rawMessage=="string"&&"cause"in t:!1}findDetails(t){const n=t.kind==="message"?{getMessage:o=>o===t.typeName?t:void 0}:t,r=[];for(const o of this.details){if("desc"in o){n.getMessage(o.desc.typeName)&&r.push(j(o.desc,o.value));continue}const s=n.getMessage(o.type);if(s)try{r.push(Et(s,o.value))}catch{}}return r}}function Bc(e,t){return e.length?`[${$t(t)}] ${e}`:`[${$t(t)}]`}function Cc(...e){const t=new Headers;for(const n of e)n.forEach((r,o)=>{t.append(o,r)});return t}function Fc(e,t){const n={};for(const r of e.methods){const o=t(r);o!=null&&(n[r.localName]=o)}return n}const vr=1;function Gc(e,t,n=!1){if(t>e){let r=`message size is larger than configured readMaxBytes ${e}`;throw n&&(r=`message size ${t} is larger than configured readMaxBytes ${e}`),new G(r,S.ResourceExhausted)}}function Tc(e){return new Yc(e)}class Yc{constructor(t){this.readMaxBytes=t,this.header=new Uint8Array(5),this.headerView=new DataView(this.header.buffer),this.buf=[]}get byteLength(){return this.buf.reduce((t,n)=>t+n.byteLength,0)}decode(t){this.buf.push(t);const n=[];for(;;){let r=this.pop();if(!r)break;n.push(r)}return n}pop(){if(!(!this.env&&(this.env=this.head(),!this.env))&&this.cons(this.env.data)){const t=this.env;return this.env=void 0,t}}head(){if(!this.cons(this.header))return;const t=this.headerView.getUint8(0),n=this.headerView.getUint32(1);return Gc(this.readMaxBytes,n,!0),{flags:t,data:new Uint8Array(n)}}cons(t){const n=t.byteLength;if(this.byteLength<n)return!1;let r=0;for(;r<n;){const o=this.buf.shift();o.byteLength>n-r?(t.set(o.subarray(0,n-r),r),this.buf.unshift(o.subarray(n-r)),r+=n-r):(t.set(o,r),r+=o.byteLength)}return!0}}function Uc(e){let t;const n=Tc(4294967295);return new ReadableStream({start(){t=e.getReader()},async pull(r){let o=!1;for(;!o;){const s=await t.read();if(s.done)n.byteLength>0&&r.error(new G("protocol error: incomplete envelope",S.InvalidArgument)),r.close();else for(const i of n.decode(s.value))r.enqueue(i),o=!0}}})}function Wc(e,t){const n=new Uint8Array(t.length+5);n.set(t,5);const r=new DataView(n.buffer,n.byteOffset,n.byteLength);return r.setUint8(0,e),r.setUint32(1,t.length),n}var Xc=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=e[s]&&function(i){return new Promise(function(a,c){i=e[s](i),o(a,c,i.done,i.value)})}}function o(s,i,a,c){Promise.resolve(c).then(function(u){s({value:u,done:a})},i)}},Xe=function(e){return this instanceof Xe?(this.v=e,this):new Xe(e)},Oc=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,s=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",i),o[Symbol.asyncIterator]=function(){return this},o;function i(f){return function(p){return Promise.resolve(p).then(f,d)}}function a(f,p){r[f]&&(o[f]=function(b){return new Promise(function(E,_){s.push([f,b,E,_])>1||c(f,b)})},p&&(o[f]=p(o[f])))}function c(f,p){try{u(r[f](p))}catch(b){g(s[0][3],b)}}function u(f){f.value instanceof Xe?Promise.resolve(f.value.v).then(l,d):g(s[0][2],f)}function l(f){c("next",f)}function d(f){c("throw",f)}function g(f,p){f(p),s.shift(),s.length&&c(s[0][0],s[0][1])}},zc=function(e){var t,n;return t={},r("next"),r("throw",function(o){throw o}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(o,s){t[o]=e[o]?function(i){return(n=!n)?{value:Xe(e[o](i)),done:!1}:s?s(i):i}:s}};function Jc(e){return Oc(this,arguments,function*(){yield Xe(yield*zc(Xc(e)))})}var us=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=e[s]&&function(i){return new Promise(function(a,c){i=e[s](i),o(a,c,i.done,i.value)})}}function o(s,i,a,c){Promise.resolve(c).then(function(u){s({value:u,done:a})},i)}},we=function(e){return this instanceof we?(this.v=e,this):new we(e)},Dc=function(e){var t,n;return t={},r("next"),r("throw",function(o){throw o}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(o,s){t[o]=e[o]?function(i){return(n=!n)?{value:we(e[o](i)),done:!1}:s?s(i):i}:s}},xc=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,s=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",i),o[Symbol.asyncIterator]=function(){return this},o;function i(f){return function(p){return Promise.resolve(p).then(f,d)}}function a(f,p){r[f]&&(o[f]=function(b){return new Promise(function(E,_){s.push([f,b,E,_])>1||c(f,b)})},p&&(o[f]=p(o[f])))}function c(f,p){try{u(r[f](p))}catch(b){g(s[0][3],b)}}function u(f){f.value instanceof we?Promise.resolve(f.value.v).then(l,d):g(s[0][2],f)}function l(f){c("next",f)}function d(f){c("throw",f)}function g(f,p){f(p),s.shift(),s.length&&c(s[0][0],s[0][1])}};function dg(e,t){return Fc(e,n=>{switch(n.methodKind){case"unary":return Kc(t,n);case"server_streaming":return Lc(t,n);case"client_streaming":return $c(t,n);case"bidi_streaming":return Mc(t,n);default:return null}})}function Kc(e,t){return async(n,r)=>{var o,s;const i=await e.unary(t,r==null?void 0:r.signal,r==null?void 0:r.timeoutMs,r==null?void 0:r.headers,n,r==null?void 0:r.contextValues);return(o=r==null?void 0:r.onHeader)===null||o===void 0||o.call(r,i.header),(s=r==null?void 0:r.onTrailer)===null||s===void 0||s.call(r,i.trailer),i.message}}function Lc(e,t){return(n,r)=>ls(e.stream(t,r==null?void 0:r.signal,r==null?void 0:r.timeoutMs,r==null?void 0:r.headers,Jc([n]),r==null?void 0:r.contextValues),r)}function $c(e,t){return async(n,r)=>{var o,s,i,a,c,u;const l=await e.stream(t,r==null?void 0:r.signal,r==null?void 0:r.timeoutMs,r==null?void 0:r.headers,n,r==null?void 0:r.contextValues);(c=r==null?void 0:r.onHeader)===null||c===void 0||c.call(r,l.header);let d,g=0;try{for(var f=!0,p=us(l.message),b;b=await p.next(),o=b.done,!o;f=!0)a=b.value,f=!1,d=a,g++}catch(E){s={error:E}}finally{try{!f&&!o&&(i=p.return)&&await i.call(p)}finally{if(s)throw s.error}}if(!d)throw new G("protocol error: missing response message",S.Unimplemented);if(g>1)throw new G("protocol error: received extra messages for client streaming method",S.Unimplemented);return(u=r==null?void 0:r.onTrailer)===null||u===void 0||u.call(r,l.trailer),d}}function Mc(e,t){return(n,r)=>ls(e.stream(t,r==null?void 0:r.signal,r==null?void 0:r.timeoutMs,r==null?void 0:r.headers,n,r==null?void 0:r.contextValues),r)}function ls(e,t){const n=(function(){return xc(this,arguments,function*(){var r,o;const s=yield we(e);(r=t==null?void 0:t.onHeader)===null||r===void 0||r.call(t,s.header),yield we(yield*Dc(us(s.message))),(o=t==null?void 0:t.onTrailer)===null||o===void 0||o.call(t,s.trailer)})})()[Symbol.asyncIterator]();return{[Symbol.asyncIterator]:()=>({next:()=>n.next()})}}function Pc(...e){const t=new AbortController,n=e.filter(o=>o!==void 0).concat(t.signal);for(const o of n){if(o.aborted){r.apply(o);break}o.addEventListener("abort",r)}function r(){t.signal.aborted||t.abort(ds(this));for(const o of n)o.removeEventListener("abort",r)}return t}function Qc(e){const t=new AbortController,n=()=>{t.abort(new G("the operation timed out",S.DeadlineExceeded))};let r;return e!==void 0&&(e<=0?n():r=setTimeout(n,e)),{signal:t.signal,cleanup:()=>clearTimeout(r)}}function ds(e){if(!e.aborted)return;if(e.reason!==void 0)return e.reason;const t=new Error("This operation was aborted");return t.name="AbortError",t}function kr(){return{get(e){return e.id in this?this[e.id]:e.defaultValue},set(e,t){return this[e.id]=t,this},delete(e){return delete this[e.id],this}}}function It(e,t,...n){if(n.length>0)throw new Error;return e.services[t]}function Vr(e,t){return e.toString().replace(/\/?$/,`/${t.parent.typeName}/${t.name}`)}function fs(e,t){return j(e,t)}function jc(e,t){function n(r){return r.done===!0?r:{done:r.done,value:fs(e,r.value)}}return{[Symbol.asyncIterator](){const r=t[Symbol.asyncIterator](),o={next:()=>r.next().then(n)};return r.throw!==void 0&&(o.throw=s=>r.throw(s).then(n)),r.return!==void 0&&(o.return=s=>r.return(s).then(n)),o}}}function ms(e,t){if(!t)return e;for(const n of t.concat().reverse())e=n(e);return e}function hs(e){var t;const n=Object.assign({},e);return(t=n.ignoreUnknownFields)!==null&&t!==void 0||(n.ignoreUnknownFields=!0),n}function Br(e,t,n,r){const o=t?Cr(e.input,r):Fr(e.input,n);return{parse:(t?Cr(e.output,r):Fr(e.output,n)).parse,serialize:o.serialize}}function Cr(e,t){return{parse(n){try{return Et(e,n,t)}catch(r){const o=r instanceof Error?r.message:String(r);throw new G(`parse binary: ${o}`,S.Internal)}},serialize(n){try{return Mo(e,n,t)}catch(r){const o=r instanceof Error?r.message:String(r);throw new G(`serialize binary: ${o}`,S.Internal)}}}}function Fr(e,t){var n,r;const o=(n=t==null?void 0:t.textEncoder)!==null&&n!==void 0?n:new TextEncoder,s=(r=t==null?void 0:t.textDecoder)!==null&&r!==void 0?r:new TextDecoder,i=hs(t);return{parse(a){try{const c=s.decode(a);return pc(e,c,i)}catch(c){throw G.from(c,S.InvalidArgument)}},serialize(a){try{const c=ic(e,a,i);return o.encode(c)}catch(c){throw G.from(c,S.Internal)}}}}const Hc=/^application\/(connect\+)?(?:(json)(?:; ?charset=utf-?8)?|(proto))$/i,qc="application/proto",eu="application/json",tu="application/connect+proto",nu="application/connect+json";function ru(e){const t=e==null?void 0:e.match(Hc);if(!t)return;const n=!!t[1],r=!!t[3];return{stream:n,binary:r}}function gs(e,t,n){var r;if(t&&new Headers(t).forEach((a,c)=>n.metadata.append(c,a)),typeof e!="object"||e==null||Array.isArray(e))throw n;let o=n.code;"code"in e&&typeof e.code=="string"&&(o=(r=Vc(e.code))!==null&&r!==void 0?r:o);const s=e.message;if(s!=null&&typeof s!="string")throw n;const i=new G(s??"",o,t);if("details"in e&&Array.isArray(e.details))for(const a of e.details){if(a===null||typeof a!="object"||Array.isArray(a)||typeof a.type!="string"||typeof a.value!="string")throw n;try{i.details.push({type:a.type,value:yn(a.value),debug:a.debug})}catch{throw n}}return i}const Gr=2;function ou(e){const t=new G("invalid end stream",S.Unknown);let n;try{n=JSON.parse(typeof e=="string"?e:new TextDecoder().decode(e))}catch{throw t}if(typeof n!="object"||n==null||Array.isArray(n))throw t;const r=new Headers;if("metadata"in n){if(typeof n.metadata!="object"||n.metadata==null||Array.isArray(n.metadata))throw t;for(const[s,i]of Object.entries(n.metadata)){if(!Array.isArray(i)||i.some(a=>typeof a!="string"))throw t;for(const a of i)r.append(s,a)}}const o="error"in n&&n.error!=null?gs(n.error,r,t):void 0;return{metadata:r,error:o}}const ct="Content-Type",su="Content-Length",Tr="Content-Encoding",iu="Accept-Encoding",au="Connect-Timeout-Ms",ps="Connect-Protocol-Version",cu="User-Agent";function uu(e){switch(e){case 400:return S.Internal;case 401:return S.Unauthenticated;case 403:return S.PermissionDenied;case 404:return S.Unimplemented;case 429:return S.Unavailable;case 502:return S.Unavailable;case 503:return S.Unavailable;case 504:return S.Unavailable;default:return S.Unknown}}function Yr(e){const t=new Headers,n=new Headers;return e.forEach((r,o)=>{o.toLowerCase().startsWith("trailer-")?n.append(o.substring(8),r):t.append(o,r)}),[t,n]}const bs="1";function Ur(e,t,n,r,o){const s=new Headers(r??{});return n!==void 0&&s.set(au,`${n}`),s.set(ct,e=="unary"?t?qc:eu:t?tu:nu),s.set(ps,bs),s.has(cu),s}function Wr(e,t,n,r){const o=r.get(ct),s=ru(o);if(n!==200){const a=new G(`HTTP ${n}`,uu(n),r);if(e=="unary"&&s&&!s.binary)return{isUnaryError:!0,unaryError:a};throw a}const i={binary:t,stream:e!=="unary"};if((s==null?void 0:s.binary)!==i.binary||s.stream!==i.stream)throw new G(`unsupported content type ${o}`,s===void 0?S.Unknown:S.Internal,r);return{isUnaryError:!1}}const Xr="application/";function lu(e,t){return t?Uo(e,"url"):encodeURIComponent(new TextDecoder().decode(e))}function du(e,t,n){let r=`?connect=v${bs}`;const o=e.header.get(ct);(o==null?void 0:o.indexOf(Xr))===0&&(r+="&encoding="+encodeURIComponent(o.slice(Xr.length)));const s=e.header.get(Tr);s!==null&&s!=="identity"&&(r+="&compression="+encodeURIComponent(s),n=!0),n&&(r+="&base64=1"),r+="&message="+lu(t,n);const i=e.url+r,a=new Headers(e.header);for(const c of[ps,ct,su,Tr,iu])a.delete(c);return Object.assign(Object.assign({},e),{requestMethod:"GET",url:i,header:a})}function fu(e){const t=ms(e.next,e.interceptors),[n,r,o]=Es(e),s=Object.assign(Object.assign({},e.req),{message:fs(e.req.method.input,e.req.message),signal:n});return t(s).then(i=>(o(),i),r)}function mu(e){const t=ms(e.next,e.interceptors),[n,r,o]=Es(e),s=Object.assign(Object.assign({},e.req),{message:jc(e.req.method.input,e.req.message),signal:n});let i=!1;return n.addEventListener("abort",function(){var a,c;const u=e.req.message[Symbol.asyncIterator]();i||(a=u.throw)===null||a===void 0||a.call(u,this.reason).catch(()=>{}),(c=u.return)===null||c===void 0||c.call(u).catch(()=>{})}),t(s).then(a=>Object.assign(Object.assign({},a),{message:{[Symbol.asyncIterator](){const c=a.message[Symbol.asyncIterator]();return{next(){return c.next().then(u=>(u.done==!0&&(i=!0,o()),u),r)}}}}}),r)}function Es(e){const{signal:t,cleanup:n}=Qc(e.timeoutMs),r=Pc(e.signal,t);return[r.signal,function(s){const i=G.from(t.aborted?ds(t):s);return r.abort(i),n(),Promise.reject(i)},function(){n(),r.abort()}]}function hu(){try{new Headers}catch{throw new Error("connect-web requires the fetch API. Are you running on an old version of Node.js? Node.js is not supported in Connect for Web - please stay tuned for Connect for Node.")}}var Oe=function(e){return this instanceof Oe?(this.v=e,this):new Oe(e)},gu=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,s=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",i),o[Symbol.asyncIterator]=function(){return this},o;function i(f){return function(p){return Promise.resolve(p).then(f,d)}}function a(f,p){r[f]&&(o[f]=function(b){return new Promise(function(E,_){s.push([f,b,E,_])>1||c(f,b)})},p&&(o[f]=p(o[f])))}function c(f,p){try{u(r[f](p))}catch(b){g(s[0][3],b)}}function u(f){f.value instanceof Oe?Promise.resolve(f.value.v).then(l,d):g(s[0][2],f)}function l(f){c("next",f)}function d(f){c("throw",f)}function g(f,p){f(p),s.shift(),s.length&&c(s[0][0],s[0][1])}};const Or={redirect:"error"};function fg(e){var t;hu();const n=(t=e.useBinaryFormat)!==null&&t!==void 0?t:!1;return{async unary(r,o,s,i,a,c){const{serialize:u,parse:l}=Br(r,n,e.jsonOptions,e.binaryOptions);return s=s===void 0?e.defaultTimeoutMs:s<=0?void 0:s,await fu({interceptors:e.interceptors,signal:o,timeoutMs:s,req:{stream:!1,service:r.parent,method:r,requestMethod:"POST",url:Vr(e.baseUrl,r),header:Ur(r.methodKind,n,s,i,!1),contextValues:c??kr(),message:a},next:async d=>{var g;const f=e.useHttpGet===!0&&r.idempotency===Kt.NO_SIDE_EFFECTS;let p=null;f?d=du(d,u(d.message),n):p=u(d.message);const E=await((g=e.fetch)!==null&&g!==void 0?g:globalThis.fetch)(d.url,Object.assign(Object.assign({},Or),{method:d.requestMethod,headers:d.header,signal:d.signal,body:p})),{isUnaryError:_,unaryError:N}=Wr(r.methodKind,n,E.status,E.headers);if(_)throw gs(await E.json(),Cc(...Yr(E.headers)),N);const[O,B]=Yr(E.headers);return{stream:!1,service:r.parent,method:r,header:O,message:n?l(new Uint8Array(await E.arrayBuffer())):rs(r.output,await E.json(),hs(e.jsonOptions)),trailer:B}}})},async stream(r,o,s,i,a,c){const{serialize:u,parse:l}=Br(r,n,e.jsonOptions,e.binaryOptions);function d(f,p,b,E){return gu(this,arguments,function*(){const N=Uc(f).getReader();let O=!1;for(;;){const B=yield Oe(N.read());if(B.done)break;const{flags:U,data:W}=B.value;if((U&vr)===vr)throw new G("protocol error: received unsupported compressed output",S.Internal);if((U&Gr)===Gr){O=!0;const T=ou(W);if(T.error){const z=T.error;throw b.forEach((L,$e)=>{z.metadata.append($e,L)}),z}T.metadata.forEach((z,L)=>p.set(L,z));continue}yield yield Oe(l(W))}if("throwIfAborted"in E&&E.throwIfAborted(),!O)throw"missing EndStreamResponse"})}async function g(f){if(r.methodKind!="server_streaming")throw"The fetch API does not support streaming request bodies";const p=await f[Symbol.asyncIterator]().next();if(p.done==!0)throw"missing request message";return Wc(0,u(p.value))}return s=s===void 0?e.defaultTimeoutMs:s<=0?void 0:s,await mu({interceptors:e.interceptors,timeoutMs:s,signal:o,req:{stream:!0,service:r.parent,method:r,requestMethod:"POST",url:Vr(e.baseUrl,r),header:Ur(r.methodKind,n,s,i,!1),contextValues:c??kr(),message:a},next:async f=>{var p;const E=await((p=e.fetch)!==null&&p!==void 0?p:globalThis.fetch)(f.url,Object.assign(Object.assign({},Or),{method:f.requestMethod,headers:f.header,signal:f.signal,body:await g(f.message)}));if(Wr(r.methodKind,n,E.status,E.headers),E.body===null)throw"missing response body";const _=new Headers;return Object.assign(Object.assign({},f),{header:E.headers,trailer:_,message:d(E.body,_,E.headers,f.signal)})}})}}}const St=ge("ChtncmFja2xlL2dyYWNrbGVfdHlwZXMucHJvdG8SB2dyYWNrbGUiBwoFRW1wdHkiGwoNRW52aXJvbm1lbnRJZBIKCgJpZBgBIAEoCSIXCglTZXNzaW9uSWQSCgoCaWQYASABKAkiMAoQS2lsbEFnZW50UmVxdWVzdBIKCgJpZBgBIAEoCRIQCghncmFjZWZ1bBgCIAEoCCLXAQoLRW52aXJvbm1lbnQSCgoCaWQYASABKAkSFAoMZGlzcGxheV9uYW1lGAIgASgJEhQKDGFkYXB0ZXJfdHlwZRgDIAEoCRIWCg5hZGFwdGVyX2NvbmZpZxgEIAEoCRIUCgxib290c3RyYXBwZWQYBiABKAgSDgoGc3RhdHVzGAcgASgJEhEKCWxhc3Rfc2VlbhgIIAEoCRIQCghlbnZfaW5mbxgJIAEoCRISCgpjcmVhdGVkX2F0GAogASgJEhkKEWdpdGh1Yl9hY2NvdW50X2lkGAsgASgJIj0KD0Vudmlyb25tZW50TGlzdBIqCgxlbnZpcm9ubWVudHMYASADKAsyFC5ncmFja2xlLkVudmlyb25tZW50InYKFUFkZEVudmlyb25tZW50UmVxdWVzdBIUCgxkaXNwbGF5X25hbWUYASABKAkSFAoMYWRhcHRlcl90eXBlGAIgASgJEhYKDmFkYXB0ZXJfY29uZmlnGAMgASgJEhkKEWdpdGh1Yl9hY2NvdW50X2lkGAUgASgJIkIKDlByb3Zpc2lvbkV2ZW50Eg0KBXN0YWdlGAEgASgJEg8KB21lc3NhZ2UYAiABKAkSEAoIcHJvZ3Jlc3MYAyABKAEiOAobUHJvdmlzaW9uRW52aXJvbm1lbnRSZXF1ZXN0EgoKAmlkGAEgASgJEg0K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IWChJQUk9WSURFUl9UT0dHTEVfT04QAmIGcHJvdG8z");var v;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.TEXT=1]="TEXT",e[e.TOOL_USE=2]="TOOL_USE",e[e.TOOL_RESULT=3]="TOOL_RESULT",e[e.ERROR=4]="ERROR",e[e.STATUS=5]="STATUS",e[e.SYSTEM=6]="SYSTEM",e[e.USER_INPUT=9]="USER_INPUT",e[e.SIGNAL=10]="SIGNAL",e[e.USAGE=11]="USAGE",e[e.WIDGET=13]="WIDGET"})(v||(v={}));var Y;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.NOT_STARTED=1]="NOT_STARTED",e[e.WORKING=3]="WORKING",e[e.PAUSED=4]="PAUSED",e[e.COMPLETE=5]="COMPLETE",e[e.FAILED=6]="FAILED"})(Y||(Y={}));var se;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.ACTIVE=1]="ACTIVE",e[e.ARCHIVED=2]="ARCHIVED"})(se||(se={}));var q;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.OFF=1]="OFF",e[e.SUBSCRIPTION=2]="SUBSCRIPTION",e[e.API_KEY=3]="API_KEY"})(q||(q={}));var ie;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.OFF=1]="OFF",e[e.ON=2]="ON"})(ie||(ie={}));const pu=ge("ChpncmFja2xlL2dyYWNrbGVfY29yZS5wcm90bxIHZ3JhY2tsZTKVHwoLR3JhY2tsZUNvcmUSPAoQTGlzdEVudmlyb25tZW50cxIOLmdyYWNrbGUuRW1wdHkaGC5ncmFja2xlLkVudmlyb25tZW50TGlzdBJGCg5BZGRFbnZpcm9ubWVudBIeLmdyYWNrbGUuQWRkRW52aXJvbm1lbnRSZXF1ZXN0GhQuZ3JhY2tsZS5FbnZpcm9ubWVudBI7ChFSZW1vdmVFbnZpcm9ubWVudBIWLmdyYWNrbGUuRW52aXJvbm1lbnRJZBoOLmdyYWNrbGUuRW1w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VOb2RlUmVxdWVzdBokLmdyYWNrbGUuRXhwYW5kS25vd2xlZGdlTm9kZVJlc3BvbnNlEm8KGExpc3RSZWNlbnRLbm93bGVkZ2VOb2RlcxIoLmdyYWNrbGUuTGlzdFJlY2VudEtub3dsZWRnZU5vZGVzUmVxdWVzdBopLmdyYWNrbGUuTGlzdFJlY2VudEtub3dsZWRnZU5vZGVzUmVzcG9uc2ViBnByb3RvMw",[St]),pg=It(Au,0),bg=8,Eg="system",Ag="system",yu=new Set(["config_get_default_persona","config_set_default_persona","credential_provider_list","credential_provider_set","env_list","env_add","env_provision","env_stop","env_destroy","env_remove","env_wake","ipc_spawn","ipc_write","ipc_close","ipc_list_fds","ipc_list_streams","ipc_terminate","ipc_create_stream","ipc_attach","ipc_share_stream","knowledge_search","knowledge_get_node","logs_get","persona_list","persona_create","persona_show","persona_edit","persona_delete","session_spawn","session_resume","session_status","session_kill","session_attach","session_send_input","task_list","task_search","task_create","task_show","task_update","task_start","task_delete","task_complete","task_resume","token_list","token_set","token_delete","usage_get","get_version_status","schedule_list","schedule_create","schedule_show","schedule_update","schedule_delete","workpad_write","workpad_read","workspace_list","workspace_create","workspace_get","workspace_update","workspace_archive","escalate_to_human","escalation_list","escalation_acknowledge","show_hello_widget","component_register","component_update","component_list","component_render","component_search","component_promote","widget_show","component_show"]),yg=["task_create","task_list","task_search","task_show","task_start","task_complete","session_attach","session_send_input","persona_list","persona_show","ipc_spawn","ipc_write","ipc_close","ipc_terminate","ipc_list_fds","ipc_create_stream","ipc_attach","ipc_share_stream","knowledge_search","knowledge_get_node","logs_get","workpad_write","workpad_read","schedule_list","schedule_show","show_hello_widget","component_register","component_update","component_list","component_render","component_search","component_promote","widget_show","component_show"],Ng=["task_show","session_attach","session_send_input","persona_list","persona_show","ipc_spawn","ipc_write","ipc_close","ipc_terminate","ipc_list_fds","ipc_create_stream","ipc_attach","ipc_share_stream","knowledge_search","knowledge_get_node","logs_get","workpad_write","workpad_read"],Ig=["task_create","task_list","task_search","task_show","task_start","task_complete","session_attach","session_send_input","persona_list","persona_show","ipc_spawn","ipc_write","ipc_close","ipc_terminate","ipc_list_fds","ipc_create_stream","ipc_attach","ipc_share_stream","knowledge_search","knowledge_get_node","logs_get","workpad_write","workpad_read","schedule_list","schedule_show","show_hello_widget","component_register","component_update","component_list","component_render","component_search","component_promote","widget_show","component_show","task_update","task_delete","task_resume","session_spawn","session_kill","session_status","persona_create","schedule_create","schedule_update","schedule_delete","escalate_to_human"],Sg=[...yu];Object.assign(Object.create(null),{"":v.UNSPECIFIED,text:v.TEXT,tool_use:v.TOOL_USE,tool_result:v.TOOL_RESULT,error:v.ERROR,status:v.STATUS,system:v.SYSTEM,user_input:v.USER_INPUT,signal:v.SIGNAL,usage:v.USAGE,widget:v.WIDGET});const Nu={[v.UNSPECIFIED]:"",[v.TEXT]:"text",[v.TOOL_USE]:"tool_use",[v.TOOL_RESULT]:"tool_result",[v.ERROR]:"error",[v.STATUS]:"status",[v.SYSTEM]:"system",[v.USER_INPUT]:"user_input",[v.SIGNAL]:"signal",[v.USAGE]:"usage",[v.WIDGET]:"widget"};function _g(e){return Nu[e]??""}Object.assign(Object.create(null),{"":Y.UNSPECIFIED,not_started:Y.NOT_STARTED,working:Y.WORKING,paused:Y.PAUSED,complete:Y.COMPLETE,failed:Y.FAILED,pending:Y.NOT_STARTED,assigned:Y.NOT_STARTED,in_progress:Y.WORKING,waiting_input:Y.PAUSED,review:Y.PAUSED,done:Y.COMPLETE});const Iu={[Y.UNSPECIFIED]:"",[Y.NOT_STARTED]:"not_started",[Y.WORKING]:"working",[Y.PAUSED]:"paused",[Y.COMPLETE]:"complete",[Y.FAILED]:"failed"};function Zg(e){return Iu[e]??""}Object.assign(Object.create(null),{"":se.UNSPECIFIED,active:se.ACTIVE,archived:se.ARCHIVED});const Su={[se.UNSPECIFIED]:"",[se.ACTIVE]:"active",[se.ARCHIVED]:"archived"};function Rg(e){return Su[e]??""}Object.assign(Object.create(null),{"":q.UNSPECIFIED,off:q.OFF,subscription:q.SUBSCRIPTION,api_key:q.API_KEY});const _u={[q.UNSPECIFIED]:"",[q.OFF]:"off",[q.SUBSCRIPTION]:"subscription",[q.API_KEY]:"api_key"};function wg(e){return _u[e]??""}Object.assign(Object.create(null),{"":ie.UNSPECIFIED,off:ie.OFF,on:ie.ON});const Zu={[ie.UNSPECIFIED]:"",[ie.OFF]:"off",[ie.ON]:"on"};function vg(e){return Zu[e]??""}function oe(e){return Array.isArray?Array.isArray(e):Ns(e)==="[object Array]"}function Ru(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function wu(e){return e==null?"":Ru(e)}function ee(e){return typeof e=="string"}function As(e){return typeof e=="number"}function vu(e){return e===!0||e===!1||ku(e)&&Ns(e)=="[object Boolean]"}function ys(e){return typeof e=="object"}function ku(e){return ys(e)&&e!==null}function x(e){return e!=null}function Ut(e){return!e.trim().length}function Ns(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const Vu="Incorrect 'index' type",Bu=e=>`Invalid value for key ${e}`,Cu=e=>`Pattern length exceeds max of ${e}.`,Fu=e=>`Missing ${e} property in key`,Gu=e=>`Property 'weight' in key '${e}' must be a positive integer`,zr=Object.prototype.hasOwnProperty;class Tu{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(r=>{let o=Is(r);this._keys.push(o),this._keyMap[o.id]=o,n+=o.weight}),this._keys.forEach(r=>{r.weight/=n})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Is(e){let t=null,n=null,r=null,o=1,s=null;if(ee(e)||oe(e))r=e,t=Jr(e),n=Mt(e);else{if(!zr.call(e,"name"))throw new Error(Fu("name"));const i=e.name;if(r=i,zr.call(e,"weight")&&(o=e.weight,o<=0))throw new Error(Gu(i));t=Jr(i),n=Mt(i),s=e.getFn}return{path:t,id:n,weight:o,src:r,getFn:s}}function Jr(e){return oe(e)?e:e.split(".")}function Mt(e){return oe(e)?e.join("."):e}function Yu(e,t){let n=[],r=!1;const o=(s,i,a)=>{if(x(s))if(!i[a])n.push(s);else{let c=i[a];const u=s[c];if(!x(u))return;if(a===i.length-1&&(ee(u)||As(u)||vu(u)))n.push(wu(u));else if(oe(u)){r=!0;for(let l=0,d=u.length;l<d;l+=1)o(u[l],i,a+1)}else i.length&&o(u,i,a+1)}};return o(e,ee(t)?t.split("."):t,0),r?n:n[0]}const Uu={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Wu={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},Xu={location:0,threshold:.6,distance:100},Ou={useExtendedSearch:!1,getFn:Yu,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var y={...Wu,...Uu,...Xu,...Ou};const zu=/[^ ]+/g;function Ju(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(o){const s=o.match(zu).length;if(n.has(s))return n.get(s);const i=1/Math.pow(s,.5*e),a=parseFloat(Math.round(i*r)/r);return n.set(s,a),a},clear(){n.clear()}}}class kn{constructor({getFn:t=y.getFn,fieldNormWeight:n=y.fieldNormWeight}={}){this.norm=Ju(n,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((n,r)=>{this._keysMap[n.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,ee(this.docs[0])?this.docs.forEach((t,n)=>{this._addString(t,n)}):this.docs.forEach((t,n)=>{this._addObject(t,n)}),this.norm.clear())}add(t){const n=this.size();ee(t)?this._addString(t,n):this._addObject(t,n)}removeAt(t){this.records.splice(t,1);for(let n=t,r=this.size();n<r;n+=1)this.records[n].i-=1}getValueForItemAtKeyId(t,n){return t[this._keysMap[n]]}size(){return this.records.length}_addString(t,n){if(!x(t)||Ut(t))return;let r={v:t,i:n,n:this.norm.get(t)};this.records.push(r)}_addObject(t,n){let r={i:n,$:{}};this.keys.forEach((o,s)=>{let i=o.getFn?o.getFn(t):this.getFn(t,o.path);if(x(i)){if(oe(i)){let a=[];const c=[{nestedArrIndex:-1,value:i}];for(;c.length;){const{nestedArrIndex:u,value:l}=c.pop();if(x(l))if(ee(l)&&!Ut(l)){let d={v:l,i:u,n:this.norm.get(l)};a.push(d)}else oe(l)&&l.forEach((d,g)=>{c.push({nestedArrIndex:g,value:d})})}r.$[s]=a}else if(ee(i)&&!Ut(i)){let a={v:i,n:this.norm.get(i)};r.$[s]=a}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function Ss(e,t,{getFn:n=y.getFn,fieldNormWeight:r=y.fieldNormWeight}={}){const o=new kn({getFn:n,fieldNormWeight:r});return o.setKeys(e.map(Is)),o.setSources(t),o.create(),o}function Du(e,{getFn:t=y.getFn,fieldNormWeight:n=y.fieldNormWeight}={}){const{keys:r,records:o}=e,s=new kn({getFn:t,fieldNormWeight:n});return s.setKeys(r),s.setIndexRecords(o),s}function He(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:o=y.distance,ignoreLocation:s=y.ignoreLocation}={}){const i=t/e.length;if(s)return i;const a=Math.abs(r-n);return o?i+a/o:a?1:i}function xu(e=[],t=y.minMatchCharLength){let n=[],r=-1,o=-1,s=0;for(let i=e.length;s<i;s+=1){let a=e[s];a&&r===-1?r=s:!a&&r!==-1&&(o=s-1,o-r+1>=t&&n.push([r,o]),r=-1)}return e[s-1]&&s-r>=t&&n.push([r,s-1]),n}const he=32;function Ku(e,t,n,{location:r=y.location,distance:o=y.distance,threshold:s=y.threshold,findAllMatches:i=y.findAllMatches,minMatchCharLength:a=y.minMatchCharLength,includeMatches:c=y.includeMatches,ignoreLocation:u=y.ignoreLocation}={}){if(t.length>he)throw new Error(Cu(he));const l=t.length,d=e.length,g=Math.max(0,Math.min(r,d));let f=s,p=g;const b=a>1||c,E=b?Array(d):[];let _;for(;(_=e.indexOf(t,p))>-1;){let T=He(t,{currentLocation:_,expectedLocation:g,distance:o,ignoreLocation:u});if(f=Math.min(T,f),p=_+l,b){let z=0;for(;z<l;)E[_+z]=1,z+=1}}p=-1;let N=[],O=1,B=l+d;const U=1<<l-1;for(let T=0;T<l;T+=1){let z=0,L=B;for(;z<L;)He(t,{errors:T,currentLocation:g+L,expectedLocation:g,distance:o,ignoreLocation:u})<=f?z=L:B=L,L=Math.floor((B-z)/2+z);B=L;let $e=Math.max(1,g-L+1),vt=i?d:Math.min(g+L,d)+l,Ee=Array(vt+2);Ee[vt+1]=(1<<T)-1;for(let P=vt;P>=$e;P-=1){let Me=P-1,Wn=n[e.charAt(Me)];if(b&&(E[Me]=+!!Wn),Ee[P]=(Ee[P+1]<<1|1)&Wn,T&&(Ee[P]|=(N[P+1]|N[P])<<1|1|N[P+1]),Ee[P]&U&&(O=He(t,{errors:T,currentLocation:Me,expectedLocation:g,distance:o,ignoreLocation:u}),O<=f)){if(f=O,p=Me,p<=g)break;$e=Math.max(1,2*g-p)}}if(He(t,{errors:T+1,currentLocation:g,expectedLocation:g,distance:o,ignoreLocation:u})>f)break;N=Ee}const W={isMatch:p>=0,score:Math.max(.001,O)};if(b){const T=xu(E,a);T.length?c&&(W.indices=T):W.isMatch=!1}return W}function Lu(e){let t={};for(let n=0,r=e.length;n<r;n+=1){const o=e.charAt(n);t[o]=(t[o]||0)|1<<r-n-1}return t}const ut=String.prototype.normalize?(e=>e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,"")):(e=>e);class _s{constructor(t,{location:n=y.location,threshold:r=y.threshold,distance:o=y.distance,includeMatches:s=y.includeMatches,findAllMatches:i=y.findAllMatches,minMatchCharLength:a=y.minMatchCharLength,isCaseSensitive:c=y.isCaseSensitive,ignoreDiacritics:u=y.ignoreDiacritics,ignoreLocation:l=y.ignoreLocation}={}){if(this.options={location:n,threshold:r,distance:o,includeMatches:s,findAllMatches:i,minMatchCharLength:a,isCaseSensitive:c,ignoreDiacritics:u,ignoreLocation:l},t=c?t:t.toLowerCase(),t=u?ut(t):t,this.pattern=t,this.chunks=[],!this.pattern.length)return;const d=(f,p)=>{this.chunks.push({pattern:f,alphabet:Lu(f),startIndex:p})},g=this.pattern.length;if(g>he){let f=0;const p=g%he,b=g-p;for(;f<b;)d(this.pattern.substr(f,he),f),f+=he;if(p){const E=g-he;d(this.pattern.substr(E),E)}}else d(this.pattern,0)}searchIn(t){const{isCaseSensitive:n,ignoreDiacritics:r,includeMatches:o}=this.options;if(t=n?t:t.toLowerCase(),t=r?ut(t):t,this.pattern===t){let b={isMatch:!0,score:0};return o&&(b.indices=[[0,t.length-1]]),b}const{location:s,distance:i,threshold:a,findAllMatches:c,minMatchCharLength:u,ignoreLocation:l}=this.options;let d=[],g=0,f=!1;this.chunks.forEach(({pattern:b,alphabet:E,startIndex:_})=>{const{isMatch:N,score:O,indices:B}=Ku(t,b,E,{location:s+_,distance:i,threshold:a,findAllMatches:c,minMatchCharLength:u,includeMatches:o,ignoreLocation:l});N&&(f=!0),g+=O,N&&B&&(d=[...d,...B])});let p={isMatch:f,score:f?g/this.chunks.length:1};return f&&o&&(p.indices=d),p}}class le{constructor(t){this.pattern=t}static isMultiMatch(t){return Dr(t,this.multiRegex)}static isSingleMatch(t){return Dr(t,this.singleRegex)}search(){}}function Dr(e,t){const n=e.match(t);return n?n[1]:null}class $u extends le{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const n=t===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class Mu extends le{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const r=t.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}}class Pu extends le{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const n=t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class Qu extends le{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const n=!t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class ju extends le{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const n=t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class Hu extends le{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const n=!t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class Zs extends le{constructor(t,{location:n=y.location,threshold:r=y.threshold,distance:o=y.distance,includeMatches:s=y.includeMatches,findAllMatches:i=y.findAllMatches,minMatchCharLength:a=y.minMatchCharLength,isCaseSensitive:c=y.isCaseSensitive,ignoreDiacritics:u=y.ignoreDiacritics,ignoreLocation:l=y.ignoreLocation}={}){super(t),this._bitapSearch=new _s(t,{location:n,threshold:r,distance:o,includeMatches:s,findAllMatches:i,minMatchCharLength:a,isCaseSensitive:c,ignoreDiacritics:u,ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class Rs extends le{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let n=0,r;const o=[],s=this.pattern.length;for(;(r=t.indexOf(this.pattern,n))>-1;)n=r+s,o.push([r,n-1]);const i=!!o.length;return{isMatch:i,score:i?0:1,indices:o}}}const Pt=[$u,Rs,Pu,Qu,Hu,ju,Mu,Zs],xr=Pt.length,qu=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,el="|";function tl(e,t={}){return e.split(el).map(n=>{let r=n.trim().split(qu).filter(s=>s&&!!s.trim()),o=[];for(let s=0,i=r.length;s<i;s+=1){const a=r[s];let c=!1,u=-1;for(;!c&&++u<xr;){const l=Pt[u];let d=l.isMultiMatch(a);d&&(o.push(new l(d,t)),c=!0)}if(!c)for(u=-1;++u<xr;){const l=Pt[u];let d=l.isSingleMatch(a);if(d){o.push(new l(d,t));break}}}return o})}const nl=new Set([Zs.type,Rs.type]);class rl{constructor(t,{isCaseSensitive:n=y.isCaseSensitive,ignoreDiacritics:r=y.ignoreDiacritics,includeMatches:o=y.includeMatches,minMatchCharLength:s=y.minMatchCharLength,ignoreLocation:i=y.ignoreLocation,findAllMatches:a=y.findAllMatches,location:c=y.location,threshold:u=y.threshold,distance:l=y.distance}={}){this.query=null,this.options={isCaseSensitive:n,ignoreDiacritics:r,includeMatches:o,minMatchCharLength:s,findAllMatches:a,ignoreLocation:i,location:c,threshold:u,distance:l},t=n?t:t.toLowerCase(),t=r?ut(t):t,this.pattern=t,this.query=tl(this.pattern,this.options)}static condition(t,n){return n.useExtendedSearch}searchIn(t){const n=this.query;if(!n)return{isMatch:!1,score:1};const{includeMatches:r,isCaseSensitive:o,ignoreDiacritics:s}=this.options;t=o?t:t.toLowerCase(),t=s?ut(t):t;let i=0,a=[],c=0;for(let u=0,l=n.length;u<l;u+=1){const d=n[u];a.length=0,i=0;for(let g=0,f=d.length;g<f;g+=1){const p=d[g],{isMatch:b,indices:E,score:_}=p.search(t);if(b){if(i+=1,c+=_,r){const N=p.constructor.type;nl.has(N)?a=[...a,...E]:a.push(E)}}else{c=0,i=0,a.length=0;break}}if(i){let g={isMatch:!0,score:c/i};return r&&(g.indices=a),g}}return{isMatch:!1,score:1}}}const Qt=[];function ol(...e){Qt.push(...e)}function jt(e,t){for(let n=0,r=Qt.length;n<r;n+=1){let o=Qt[n];if(o.condition(e,t))return new o(e,t)}return new _s(e,t)}const lt={AND:"$and",OR:"$or"},Ht={PATH:"$path",PATTERN:"$val"},qt=e=>!!(e[lt.AND]||e[lt.OR]),sl=e=>!!e[Ht.PATH],il=e=>!oe(e)&&ys(e)&&!qt(e),Kr=e=>({[lt.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function ws(e,t,{auto:n=!0}={}){const r=o=>{let s=Object.keys(o);const i=sl(o);if(!i&&s.length>1&&!qt(o))return r(Kr(o));if(il(o)){const c=i?o[Ht.PATH]:s[0],u=i?o[Ht.PATTERN]:o[c];if(!ee(u))throw new Error(Bu(c));const l={keyId:Mt(c),pattern:u};return n&&(l.searcher=jt(u,t)),l}let a={children:[],operator:s[0]};return s.forEach(c=>{const u=o[c];oe(u)&&u.forEach(l=>{a.children.push(r(l))})}),a};return qt(e)||(e=Kr(e)),r(e)}function al(e,{ignoreFieldNorm:t=y.ignoreFieldNorm}){e.forEach(n=>{let r=1;n.matches.forEach(({key:o,norm:s,score:i})=>{const a=o?o.weight:null;r*=Math.pow(i===0&&a?Number.EPSILON:i,(a||1)*(t?1:s))}),n.score=r})}function cl(e,t){const n=e.matches;t.matches=[],x(n)&&n.forEach(r=>{if(!x(r.indices)||!r.indices.length)return;const{indices:o,value:s}=r;let i={indices:o,value:s};r.key&&(i.key=r.key.src),r.idx>-1&&(i.refIndex=r.idx),t.matches.push(i)})}function ul(e,t){t.score=e.score}function ll(e,t,{includeMatches:n=y.includeMatches,includeScore:r=y.includeScore}={}){const o=[];return n&&o.push(cl),r&&o.push(ul),e.map(s=>{const{idx:i}=s,a={item:t[i],refIndex:i};return o.length&&o.forEach(c=>{c(s,a)}),a})}class Ve{constructor(t,n={},r){this.options={...y,...n},this.options.useExtendedSearch,this._keyStore=new Tu(this.options.keys),this.setCollection(t,r)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof kn))throw new Error(Vu);this._myIndex=n||Ss(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){x(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let r=0,o=this._docs.length;r<o;r+=1){const s=this._docs[r];t(s,r)&&(this.removeAt(r),r-=1,o-=1,n.push(s))}return n}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:n=-1}={}){const{includeMatches:r,includeScore:o,shouldSort:s,sortFn:i,ignoreFieldNorm:a}=this.options;let c=ee(t)?ee(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return al(c,{ignoreFieldNorm:a}),s&&c.sort(i),As(n)&&n>-1&&(c=c.slice(0,n)),ll(c,this._docs,{includeMatches:r,includeScore:o})}_searchStringList(t){const n=jt(t,this.options),{records:r}=this._myIndex,o=[];return r.forEach(({v:s,i,n:a})=>{if(!x(s))return;const{isMatch:c,score:u,indices:l}=n.searchIn(s);c&&o.push({item:s,idx:i,matches:[{score:u,value:s,norm:a,indices:l}]})}),o}_searchLogical(t){const n=ws(t,this.options),r=(a,c,u)=>{if(!a.children){const{keyId:d,searcher:g}=a,f=this._findMatches({key:this._keyStore.get(d),value:this._myIndex.getValueForItemAtKeyId(c,d),searcher:g});return f&&f.length?[{idx:u,item:c,matches:f}]:[]}const l=[];for(let d=0,g=a.children.length;d<g;d+=1){const f=a.children[d],p=r(f,c,u);if(p.length)l.push(...p);else if(a.operator===lt.AND)return[]}return l},o=this._myIndex.records,s={},i=[];return o.forEach(({$:a,i:c})=>{if(x(a)){let u=r(n,a,c);u.length&&(s[c]||(s[c]={idx:c,item:a,matches:[]},i.push(s[c])),u.forEach(({matches:l})=>{s[c].matches.push(...l)}))}}),i}_searchObjectList(t){const n=jt(t,this.options),{keys:r,records:o}=this._myIndex,s=[];return o.forEach(({$:i,i:a})=>{if(!x(i))return;let c=[];r.forEach((u,l)=>{c.push(...this._findMatches({key:u,value:i[l],searcher:n}))}),c.length&&s.push({idx:a,item:i,matches:c})}),s}_findMatches({key:t,value:n,searcher:r}){if(!x(n))return[];let o=[];if(oe(n))n.forEach(({v:s,i,n:a})=>{if(!x(s))return;const{isMatch:c,score:u,indices:l}=r.searchIn(s);c&&o.push({score:u,key:t,value:s,idx:i,norm:a,indices:l})});else{const{v:s,n:i}=n,{isMatch:a,score:c,indices:u}=r.searchIn(s);a&&o.push({score:c,key:t,value:s,norm:i,indices:u})}return o}}Ve.version="7.1.0";Ve.createIndex=Ss;Ve.parseIndex=Du;Ve.config=y;Ve.parseQuery=ws;ol(rl);function kg(e,t,n,r){if(!t.trim())return[];const o=.3;return new Ve(e,{keys:n,threshold:o,ignoreLocation:!0,includeScore:!0,includeMatches:!0,minMatchCharLength:2}).search(t).map(c=>({item:c.item,score:c.score??1,matches:(c.matches??[]).map(u=>({key:u.key??"",indices:u.indices}))}))}function h(e,t,n){function r(a,c){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:c,constr:i,traits:new Set},enumerable:!1}),a._zod.traits.has(e))return;a._zod.traits.add(e),t(a,c);const u=i.prototype,l=Object.keys(u);for(let d=0;d<l.length;d++){const g=l[d];g in a||(a[g]=u[g].bind(a))}}const o=(n==null?void 0:n.Parent)??Object;class s extends o{}Object.defineProperty(s,"name",{value:e});function i(a){var c;const u=n!=null&&n.Parent?new s:this;r(u,a),(c=u._zod).deferred??(c.deferred=[]);for(const l of u._zod.deferred)l();return u}return Object.defineProperty(i,"init",{value:r}),Object.defineProperty(i,Symbol.hasInstance,{value:a=>{var c,u;return n!=null&&n.Parent&&a instanceof n.Parent?!0:(u=(c=a==null?void 0:a._zod)==null?void 0:c.traits)==null?void 0:u.has(e)}}),Object.defineProperty(i,"name",{value:e}),i}class Ie extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class vs extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const ks={};function ce(e){return ks}function Vs(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,o])=>t.indexOf(+r)===-1).map(([r,o])=>o)}function en(e,t){return typeof t=="bigint"?t.toString():t}function _t(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Vn(e){return e==null}function Bn(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function dl(e,t){const n=(e.toString().split(".")[1]||"").length,r=t.toString();let o=(r.split(".")[1]||"").length;if(o===0&&/\d?e-\d?/.test(r)){const c=r.match(/\d?e-(\d?)/);c!=null&&c[1]&&(o=Number.parseInt(c[1]))}const s=n>o?n:o,i=Number.parseInt(e.toFixed(s).replace(".","")),a=Number.parseInt(t.toFixed(s).replace(".",""));return i%a/10**s}const Lr=Symbol("evaluating");function I(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Lr)return r===void 0&&(r=Lr,r=n()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function pe(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function de(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function $r(e){return JSON.stringify(e)}function fl(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Bs="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function ze(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const ml=_t(()=>{var e;if(typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function ve(e){if(ze(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(ze(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Cs(e){return ve(e)?{...e}:Array.isArray(e)?[...e]:e}const hl=new Set(["string","number","symbol"]);function ke(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function fe(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(r._zod.parent=e),r}function A(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function gl(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const pl={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function bl(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const s=de(e._zod.def,{get shape(){const i={};for(const a in t){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(i[a]=n.shape[a])}return pe(this,"shape",i),i},checks:[]});return fe(e,s)}function El(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const s=de(e._zod.def,{get shape(){const i={...e._zod.def.shape};for(const a in t){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&delete i[a]}return pe(this,"shape",i),i},checks:[]});return fe(e,s)}function Al(e,t){if(!ve(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const s=e._zod.def.shape;for(const i in t)if(Object.getOwnPropertyDescriptor(s,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const o=de(e._zod.def,{get shape(){const s={...e._zod.def.shape,...t};return pe(this,"shape",s),s}});return fe(e,o)}function yl(e,t){if(!ve(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=de(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return pe(this,"shape",r),r}});return fe(e,n)}function Nl(e,t){const n=de(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return pe(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return fe(e,n)}function Il(e,t,n){const o=t._zod.def.checks;if(o&&o.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const i=de(t._zod.def,{get shape(){const a=t._zod.def.shape,c={...a};if(n)for(const u in n){if(!(u in a))throw new Error(`Unrecognized key: "${u}"`);n[u]&&(c[u]=e?new e({type:"optional",innerType:a[u]}):a[u])}else for(const u in a)c[u]=e?new e({type:"optional",innerType:a[u]}):a[u];return pe(this,"shape",c),c},checks:[]});return fe(t,i)}function Sl(e,t,n){const r=de(t._zod.def,{get shape(){const o=t._zod.def.shape,s={...o};if(n)for(const i in n){if(!(i in s))throw new Error(`Unrecognized key: "${i}"`);n[i]&&(s[i]=new e({type:"nonoptional",innerType:o[i]}))}else for(const i in o)s[i]=new e({type:"nonoptional",innerType:o[i]});return pe(this,"shape",s),s}});return fe(t,r)}function ye(e,t=0){var n;if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)!==!0)return!0;return!1}function Ne(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function qe(e){return typeof e=="string"?e:e==null?void 0:e.message}function ue(e,t,n){var o,s,i,a,c,u;const r={...e,path:e.path??[]};if(!e.message){const l=qe((i=(s=(o=e.inst)==null?void 0:o._zod.def)==null?void 0:s.error)==null?void 0:i.call(s,e))??qe((a=t==null?void 0:t.error)==null?void 0:a.call(t,e))??qe((c=n.customError)==null?void 0:c.call(n,e))??qe((u=n.localeError)==null?void 0:u.call(n,e))??"Invalid input";r.message=l}return delete r.inst,delete r.continue,t!=null&&t.reportInput||delete r.input,r}function Cn(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Je(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const Fs=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,en,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Gs=h("$ZodError",Fs),Ts=h("$ZodError",Fs,{Parent:Error});function _l(e,t=n=>n.message){const n={},r=[];for(const o of e.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}function Zl(e,t=n=>n.message){const n={_errors:[]},r=o=>{for(const s of o.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(i=>r({issues:i}));else if(s.code==="invalid_key")r({issues:s.issues});else if(s.code==="invalid_element")r({issues:s.issues});else if(s.path.length===0)n._errors.push(t(s));else{let i=n,a=0;for(;a<s.path.length;){const c=s.path[a];a===s.path.length-1?(i[c]=i[c]||{_errors:[]},i[c]._errors.push(t(s))):i[c]=i[c]||{_errors:[]},i=i[c],a++}}};return r(e),n}const Fn=e=>(t,n,r,o)=>{const s=r?Object.assign(r,{async:!1}):{async:!1},i=t._zod.run({value:n,issues:[]},s);if(i instanceof Promise)throw new Ie;if(i.issues.length){const a=new((o==null?void 0:o.Err)??e)(i.issues.map(c=>ue(c,s,ce())));throw Bs(a,o==null?void 0:o.callee),a}return i.value},Gn=e=>async(t,n,r,o)=>{const s=r?Object.assign(r,{async:!0}):{async:!0};let i=t._zod.run({value:n,issues:[]},s);if(i instanceof Promise&&(i=await i),i.issues.length){const a=new((o==null?void 0:o.Err)??e)(i.issues.map(c=>ue(c,s,ce())));throw Bs(a,o==null?void 0:o.callee),a}return i.value},Zt=e=>(t,n,r)=>{const o=r?{...r,async:!1}:{async:!1},s=t._zod.run({value:n,issues:[]},o);if(s instanceof Promise)throw new Ie;return s.issues.length?{success:!1,error:new(e??Gs)(s.issues.map(i=>ue(i,o,ce())))}:{success:!0,data:s.value}},Rl=Zt(Ts),Rt=e=>async(t,n,r)=>{const o=r?Object.assign(r,{async:!0}):{async:!0};let s=t._zod.run({value:n,issues:[]},o);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(i=>ue(i,o,ce())))}:{success:!0,data:s.value}},wl=Rt(Ts),vl=e=>(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Fn(e)(t,n,o)},kl=e=>(t,n,r)=>Fn(e)(t,n,r),Vl=e=>async(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Gn(e)(t,n,o)},Bl=e=>async(t,n,r)=>Gn(e)(t,n,r),Cl=e=>(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Zt(e)(t,n,o)},Fl=e=>(t,n,r)=>Zt(e)(t,n,r),Gl=e=>async(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Rt(e)(t,n,o)},Tl=e=>async(t,n,r)=>Rt(e)(t,n,r),Yl=/^[cC][^\s-]{8,}$/,Ul=/^[0-9a-z]+$/,Wl=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Xl=/^[0-9a-vA-V]{20}$/,Ol=/^[A-Za-z0-9]{27}$/,zl=/^[a-zA-Z0-9_-]{21}$/,Jl=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Dl=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Mr=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,xl=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Kl="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Ll(){return new RegExp(Kl,"u")}const $l=/^(?:(?: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])$/,Ml=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Pl=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Ql=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,jl=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Ys=/^[A-Za-z0-9_-]*$/,Hl=/^\+[1-9]\d{6,14}$/,Us="(?:(?:\\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])))",ql=new RegExp(`^${Us}$`);function Ws(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function ed(e){return new RegExp(`^${Ws(e)}$`)}function td(e){const t=Ws({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${Us}T(?:${r})$`)}const nd=e=>{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},rd=/^-?\d+$/,Xs=/^-?\d+(?:\.\d+)?$/,od=/^(?:true|false)$/i,sd=/^null$/i,id=/^undefined$/i,ad=/^[^A-Z]*$/,cd=/^[^a-z]*$/,D=h("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Os={number:"number",bigint:"bigint",object:"date"},zs=h("$ZodCheckLessThan",(e,t)=>{D.init(e,t);const n=Os[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,s=(t.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<s&&(t.inclusive?o.maximum=t.value:o.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Js=h("$ZodCheckGreaterThan",(e,t)=>{D.init(e,t);const n=Os[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,s=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>s&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ud=h("$ZodCheckMultipleOf",(e,t)=>{D.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):dl(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),ld=h("$ZodCheckNumberFormat",(e,t)=>{var i;D.init(e,t),t.format=t.format||"float64";const n=(i=t.format)==null?void 0:i.includes("int"),r=n?"int":"number",[o,s]=pl[t.format];e._zod.onattach.push(a=>{const c=a._zod.bag;c.format=t.format,c.minimum=o,c.maximum=s,n&&(c.pattern=rd)}),e._zod.check=a=>{const c=a.value;if(n){if(!Number.isInteger(c)){a.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:c,inst:e});return}if(!Number.isSafeInteger(c)){c>0?a.issues.push({input:c,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):a.issues.push({input:c,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}c<o&&a.issues.push({origin:"number",input:c,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),c>s&&a.issues.push({origin:"number",input:c,code:"too_big",maximum:s,inclusive:!0,inst:e,continue:!t.abort})}}),dd=h("$ZodCheckMaxLength",(e,t)=>{var n;D.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!Vn(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const o=r.value;if(o.length<=t.maximum)return;const i=Cn(o);r.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),fd=h("$ZodCheckMinLength",(e,t)=>{var n;D.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!Vn(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const o=r.value;if(o.length>=t.minimum)return;const i=Cn(o);r.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),md=h("$ZodCheckLengthEquals",(e,t)=>{var n;D.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!Vn(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=r=>{const o=r.value,s=o.length;if(s===t.length)return;const i=Cn(o),a=s>t.length;r.issues.push({origin:i,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),wt=h("$ZodCheckStringFormat",(e,t)=>{var n,r;D.init(e,t),e._zod.onattach.push(o=>{const s=o._zod.bag;s.format=t.format,t.pattern&&(s.patterns??(s.patterns=new Set),s.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),hd=h("$ZodCheckRegex",(e,t)=>{wt.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),gd=h("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=ad),wt.init(e,t)}),pd=h("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=cd),wt.init(e,t)}),bd=h("$ZodCheckIncludes",(e,t)=>{D.init(e,t);const n=ke(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(o=>{const s=o._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(r)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),Ed=h("$ZodCheckStartsWith",(e,t)=>{D.init(e,t);const n=new RegExp(`^${ke(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),Ad=h("$ZodCheckEndsWith",(e,t)=>{D.init(e,t);const n=new RegExp(`.*${ke(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),yd=h("$ZodCheckOverwrite",(e,t)=>{D.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Nd{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
1
+ var S;(function(e){e[e.Canceled=1]="Canceled",e[e.Unknown=2]="Unknown",e[e.InvalidArgument=3]="InvalidArgument",e[e.DeadlineExceeded=4]="DeadlineExceeded",e[e.NotFound=5]="NotFound",e[e.AlreadyExists=6]="AlreadyExists",e[e.PermissionDenied=7]="PermissionDenied",e[e.ResourceExhausted=8]="ResourceExhausted",e[e.FailedPrecondition=9]="FailedPrecondition",e[e.Aborted=10]="Aborted",e[e.OutOfRange=11]="OutOfRange",e[e.Unimplemented=12]="Unimplemented",e[e.Internal=13]="Internal",e[e.Unavailable=14]="Unavailable",e[e.DataLoss=15]="DataLoss",e[e.Unauthenticated=16]="Unauthenticated"})(S||(S={}));function sn(e,t){return e!==null&&typeof e=="object"&&"$typeName"in e&&typeof e.$typeName=="string"?t===void 0?!0:t.typeName===e.$typeName:!1}var m;(function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"})(m||(m={}));function Ci(){let e=0,t=0;for(let r=0;r<28;r+=7){let o=this.buf[this.pos++];if(e|=(o&127)<<r,(o&128)==0)return this.assertBounds(),[e,t]}let n=this.buf[this.pos++];if(e|=(n&15)<<28,t=(n&112)>>4,(n&128)==0)return this.assertBounds(),[e,t];for(let r=3;r<=31;r+=7){let o=this.buf[this.pos++];if(t|=(o&127)<<r,(o&128)==0)return this.assertBounds(),[e,t]}throw new Error("invalid varint")}function Vt(e,t,n){for(let s=0;s<28;s=s+7){const i=e>>>s,a=!(!(i>>>7)&&t==0),c=(a?i|128:i)&255;if(n.push(c),!a)return}const r=e>>>28&15|(t&7)<<4,o=t>>3!=0;if(n.push((o?r|128:r)&255),!!o){for(let s=3;s<31;s=s+7){const i=t>>>s,a=!!(i>>>7),c=(a?i|128:i)&255;if(n.push(c),!a)return}n.push(t>>>31&1)}}const nt=4294967296;function On(e){const t=e[0]==="-";t&&(e=e.slice(1));const n=1e6;let r=0,o=0;function s(i,a){const c=Number(e.slice(i,a));o*=n,r=r*n+c,r>=nt&&(o=o+(r/nt|0),r=r%nt)}return s(-24,-18),s(-18,-12),s(-12,-6),s(-6),t?go(r,o):an(r,o)}function Fi(e,t){let n=an(e,t);const r=n.hi&2147483648;r&&(n=go(n.lo,n.hi));const o=ho(n.lo,n.hi);return r?"-"+o:o}function ho(e,t){if({lo:e,hi:t}=Gi(e,t),t<=2097151)return String(nt*t+e);const n=e&16777215,r=(e>>>24|t<<8)&16777215,o=t>>16&65535;let s=n+r*6777216+o*6710656,i=r+o*8147497,a=o*2;const c=1e7;return s>=c&&(i+=Math.floor(s/c),s%=c),i>=c&&(a+=Math.floor(i/c),i%=c),a.toString()+Xn(i)+Xn(s)}function Gi(e,t){return{lo:e>>>0,hi:t>>>0}}function an(e,t){return{lo:e|0,hi:t|0}}function go(e,t){return t=~t,e?e=~e+1:t+=1,an(e,t)}const Xn=e=>{const t=String(e);return"0000000".slice(t.length)+t};function Xt(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e=e>>>7;t.push(e)}else{for(let n=0;n<9;n++)t.push(e&127|128),e=e>>7;t.push(1)}}function Ti(){let e=this.buf[this.pos++],t=e&127;if((e&128)==0)return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<7,(e&128)==0)return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<14,(e&128)==0)return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<21,(e&128)==0)return this.assertBounds(),t;e=this.buf[this.pos++],t|=(e&15)<<28;for(let n=5;(e&128)!==0&&n<10;n++)e=this.buf[this.pos++];if((e&128)!=0)throw new Error("invalid varint");return this.assertBounds(),t>>>0}var zn={};const V=Yi();function Yi(){const e=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof e.getBigInt64=="function"&&typeof e.getBigUint64=="function"&&typeof e.setBigInt64=="function"&&typeof e.setBigUint64=="function"&&(!!globalThis.Deno||typeof process!="object"||typeof zn!="object"||zn.BUF_BIGINT_DISABLE!=="1")){const n=BigInt("-9223372036854775808"),r=BigInt("9223372036854775807"),o=BigInt("0"),s=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(i){const a=typeof i=="bigint"?i:BigInt(i);if(a>r||a<n)throw new Error(`invalid int64: ${i}`);return a},uParse(i){const a=typeof i=="bigint"?i:BigInt(i);if(a>s||a<o)throw new Error(`invalid uint64: ${i}`);return a},enc(i){return e.setBigInt64(0,this.parse(i),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},uEnc(i){return e.setBigInt64(0,this.uParse(i),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},dec(i,a){return e.setInt32(0,i,!0),e.setInt32(4,a,!0),e.getBigInt64(0,!0)},uDec(i,a){return e.setInt32(0,i,!0),e.setInt32(4,a,!0),e.getBigUint64(0,!0)}}}return{zero:"0",supported:!1,parse(n){return typeof n!="string"&&(n=n.toString()),Jn(n),n},uParse(n){return typeof n!="string"&&(n=n.toString()),Dn(n),n},enc(n){return typeof n!="string"&&(n=n.toString()),Jn(n),On(n)},uEnc(n){return typeof n!="string"&&(n=n.toString()),Dn(n),On(n)},dec(n,r){return Fi(n,r)},uDec(n,r){return ho(n,r)}}}function Jn(e){if(!/^-?[0-9]+$/.test(e))throw new Error("invalid int64: "+e)}function Dn(e){if(!/^[0-9]+$/.test(e))throw new Error("invalid uint64: "+e)}function Se(e,t){switch(e){case m.STRING:return"";case m.BOOL:return!1;case m.DOUBLE:case m.FLOAT:return 0;case m.INT64:case m.UINT64:case m.SFIXED64:case m.FIXED64:case m.SINT64:return t?"0":V.zero;case m.BYTES:return new Uint8Array(0);default:return 0}}function Ui(e,t){switch(e){case m.BOOL:return t===!1;case m.STRING:return t==="";case m.BYTES:return t instanceof Uint8Array&&!t.byteLength;default:return t==0}}const po=2,re=Symbol.for("reflect unsafe local");function bo(e,t){const n=e[t.localName].case;return n===void 0?n:t.fields.find(r=>r.localName===n)}function Wi(e,t){const n=t.localName;if(t.oneof)return e[t.oneof.localName].case===n;if(t.presence!=po)return e[n]!==void 0&&Object.prototype.hasOwnProperty.call(e,n);switch(t.fieldKind){case"list":return e[n].length>0;case"map":return Object.keys(e[n]).length>0;case"scalar":return!Ui(t.scalar,e[n]);case"enum":return e[n]!==t.enum.values[0].number}throw new Error("message field with implicit presence")}function Te(e,t){return Object.prototype.hasOwnProperty.call(e,t)&&e[t]!==void 0}function Eo(e,t){if(t.oneof){const n=e[t.oneof.localName];return n.case===t.localName?n.value:void 0}return e[t.localName]}function Ao(e,t,n){t.oneof?e[t.oneof.localName]={case:t.localName,value:n}:e[t.localName]=n}function Oi(e,t){const n=t.localName;if(t.oneof){const r=t.oneof.localName;e[r].case===n&&(e[r]={case:void 0})}else if(t.presence!=po)delete e[n];else switch(t.fieldKind){case"map":e[n]={};break;case"list":e[n]=[];break;case"enum":e[n]=t.enum.values[0].number;break;case"scalar":e[n]=Se(t.scalar,t.longAsString);break}}function ae(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function cn(e,t){var n,r,o,s;if(ae(e)&&re in e&&"add"in e&&"field"in e&&typeof e.field=="function"){if(t!==void 0){const i=t,a=e.field();return i.listKind==a.listKind&&i.scalar===a.scalar&&((n=i.message)===null||n===void 0?void 0:n.typeName)===((r=a.message)===null||r===void 0?void 0:r.typeName)&&((o=i.enum)===null||o===void 0?void 0:o.typeName)===((s=a.enum)===null||s===void 0?void 0:s.typeName)}return!0}return!1}function un(e,t){var n,r,o,s;if(ae(e)&&re in e&&"has"in e&&"field"in e&&typeof e.field=="function"){if(t!==void 0){const i=t,a=e.field();return i.mapKey===a.mapKey&&i.mapKind==a.mapKind&&i.scalar===a.scalar&&((n=i.message)===null||n===void 0?void 0:n.typeName)===((r=a.message)===null||r===void 0?void 0:r.typeName)&&((o=i.enum)===null||o===void 0?void 0:o.typeName)===((s=a.enum)===null||s===void 0?void 0:s.typeName)}return!0}return!1}function ln(e,t){return ae(e)&&re in e&&"desc"in e&&ae(e.desc)&&e.desc.kind==="message"&&(t===void 0||e.desc.typeName==t.typeName)}function Xi(e){return yo(e.$typeName)}function xe(e){const t=e.fields[0];return yo(e.typeName)&&t!==void 0&&t.fieldKind=="scalar"&&t.name=="value"&&t.number==1}function yo(e){return e.startsWith("google.protobuf.")&&["DoubleValue","FloatValue","Int64Value","UInt64Value","Int32Value","UInt32Value","BoolValue","StringValue","BytesValue"].includes(e.substring(16))}const zi=999,Ji=998,rt=2;function Q(e,t){if(sn(t,e))return t;const n=$i(e);return t!==void 0&&Di(e,n,t),n}function Di(e,t,n){for(const r of e.members){let o=n[r.localName];if(o==null)continue;let s;if(r.kind=="oneof"){const i=bo(n,r);if(!i)continue;s=i,o=Eo(n,i)}else s=r;switch(s.fieldKind){case"message":o=dn(s,o);break;case"scalar":o=No(s,o);break;case"list":o=Ki(s,o);break;case"map":o=xi(s,o);break}Ao(t,s,o)}return t}function No(e,t){return e.scalar==m.BYTES?fn(t):t}function xi(e,t){if(ae(t)){if(e.scalar==m.BYTES)return xn(t,fn);if(e.mapKind=="message")return xn(t,n=>dn(e,n))}return t}function Ki(e,t){if(Array.isArray(t)){if(e.scalar==m.BYTES)return t.map(fn);if(e.listKind=="message")return t.map(n=>dn(e,n))}return t}function dn(e,t){if(e.fieldKind=="message"&&!e.oneof&&xe(e.message))return No(e.message.fields[0],t);if(ae(t)){if(e.message.typeName=="google.protobuf.Struct"&&e.parent.typeName!=="google.protobuf.Value")return t;if(!sn(t,e.message))return Q(e.message,t)}return t}function fn(e){return Array.isArray(e)?new Uint8Array(e):e}function xn(e,t){const n={};for(const r of Object.entries(e))n[r[0]]=t(r[1]);return n}const Li=Symbol(),Kn=new WeakMap;function $i(e){let t;if(Mi(e)){const n=Kn.get(e);let r,o;if(n)({prototype:r,members:o}=n);else{r={},o=new Set;for(const s of e.members)s.kind!="oneof"&&(s.fieldKind!="scalar"&&s.fieldKind!="enum"||s.presence!=rt&&(o.add(s),r[s.localName]=kt(s)));Kn.set(e,{prototype:r,members:o})}t=Object.create(r),t.$typeName=e.typeName;for(const s of e.members)o.has(s)||s.kind=="field"&&(s.fieldKind=="message"||(s.fieldKind=="scalar"||s.fieldKind=="enum")&&s.presence!=rt)||(t[s.localName]=kt(s))}else{t={$typeName:e.typeName};for(const n of e.members)(n.kind=="oneof"||n.presence==rt)&&(t[n.localName]=kt(n))}return t}function Mi(e){switch(e.file.edition){case zi:return!1;case Ji:return!0;default:return e.fields.some(t=>t.presence!=rt&&t.fieldKind!="message"&&!t.oneof)}}function kt(e){if(e.kind=="oneof")return{case:void 0};if(e.fieldKind=="list")return[];if(e.fieldKind=="map")return{};if(e.fieldKind=="message")return Li;const t=e.getDefaultValue();return t!==void 0?e.fieldKind=="scalar"&&e.longAsString?t.toString():t:e.fieldKind=="scalar"?Se(e.scalar,e.longAsString):e.enum.values[0].number}const Pi=["FieldValueInvalidError","FieldListRangeError","ForeignFieldError"];class K extends Error{constructor(t,n,r="FieldValueInvalidError"){super(n),this.name=r,this.field=()=>t}}function ji(e){return e instanceof Error&&Pi.includes(e.name)&&"field"in e&&typeof e.field=="function"}const Bt=Symbol.for("@bufbuild/protobuf/text-encoding");function mn(){if(globalThis[Bt]==null){const e=new globalThis.TextEncoder,t=new globalThis.TextDecoder;globalThis[Bt]={encodeUtf8(n){return e.encode(n)},decodeUtf8(n){return t.decode(n)},checkUtf8(n){try{return encodeURIComponent(n),!0}catch{return!1}}}}return globalThis[Bt]}var F;(function(e){e[e.Varint=0]="Varint",e[e.Bit64=1]="Bit64",e[e.LengthDelimited=2]="LengthDelimited",e[e.StartGroup=3]="StartGroup",e[e.EndGroup=4]="EndGroup",e[e.Bit32=5]="Bit32"})(F||(F={}));const Io=34028234663852886e22,So=-34028234663852886e22,_o=4294967295,Zo=2147483647,Ro=-2147483648;class wo{constructor(t=mn().encodeUtf8){this.encodeUtf8=t,this.stack=[],this.chunks=[],this.buf=[]}finish(){this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]);let t=0;for(let o=0;o<this.chunks.length;o++)t+=this.chunks[o].length;let n=new Uint8Array(t),r=0;for(let o=0;o<this.chunks.length;o++)n.set(this.chunks[o],r),r+=this.chunks[o].length;return this.chunks=[],n}fork(){return this.stack.push({chunks:this.chunks,buf:this.buf}),this.chunks=[],this.buf=[],this}join(){let t=this.finish(),n=this.stack.pop();if(!n)throw new Error("invalid state, fork stack empty");return this.chunks=n.chunks,this.buf=n.buf,this.uint32(t.byteLength),this.raw(t)}tag(t,n){return this.uint32((t<<3|n)>>>0)}raw(t){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(t),this}uint32(t){for(Ln(t);t>127;)this.buf.push(t&127|128),t=t>>>7;return this.buf.push(t),this}int32(t){return Ct(t),Xt(t,this.buf),this}bool(t){return this.buf.push(t?1:0),this}bytes(t){return this.uint32(t.byteLength),this.raw(t)}string(t){let n=this.encodeUtf8(t);return this.uint32(n.byteLength),this.raw(n)}float(t){Qi(t);let n=new Uint8Array(4);return new DataView(n.buffer).setFloat32(0,t,!0),this.raw(n)}double(t){let n=new Uint8Array(8);return new DataView(n.buffer).setFloat64(0,t,!0),this.raw(n)}fixed32(t){Ln(t);let n=new Uint8Array(4);return new DataView(n.buffer).setUint32(0,t,!0),this.raw(n)}sfixed32(t){Ct(t);let n=new Uint8Array(4);return new DataView(n.buffer).setInt32(0,t,!0),this.raw(n)}sint32(t){return Ct(t),t=(t<<1^t>>31)>>>0,Xt(t,this.buf),this}sfixed64(t){let n=new Uint8Array(8),r=new DataView(n.buffer),o=V.enc(t);return r.setInt32(0,o.lo,!0),r.setInt32(4,o.hi,!0),this.raw(n)}fixed64(t){let n=new Uint8Array(8),r=new DataView(n.buffer),o=V.uEnc(t);return r.setInt32(0,o.lo,!0),r.setInt32(4,o.hi,!0),this.raw(n)}int64(t){let n=V.enc(t);return Vt(n.lo,n.hi,this.buf),this}sint64(t){const n=V.enc(t),r=n.hi>>31,o=n.lo<<1^r,s=(n.hi<<1|n.lo>>>31)^r;return Vt(o,s,this.buf),this}uint64(t){const n=V.uEnc(t);return Vt(n.lo,n.hi,this.buf),this}}class hn{constructor(t,n=mn().decodeUtf8){this.decodeUtf8=n,this.varint64=Ci,this.uint32=Ti,this.buf=t,this.len=t.length,this.pos=0,this.view=new DataView(t.buffer,t.byteOffset,t.byteLength)}tag(){let t=this.uint32(),n=t>>>3,r=t&7;if(n<=0||r<0||r>5)throw new Error("illegal tag: field no "+n+" wire type "+r);return[n,r]}skip(t,n){let r=this.pos;switch(t){case F.Varint:for(;this.buf[this.pos++]&128;);break;case F.Bit64:this.pos+=4;case F.Bit32:this.pos+=4;break;case F.LengthDelimited:let o=this.uint32();this.pos+=o;break;case F.StartGroup:for(;;){const[s,i]=this.tag();if(i===F.EndGroup){if(n!==void 0&&s!==n)throw new Error("invalid end group tag");break}this.skip(i,s)}break;default:throw new Error("cant skip wire type "+t)}return this.assertBounds(),this.buf.subarray(r,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let t=this.uint32();return t>>>1^-(t&1)}int64(){return V.dec(...this.varint64())}uint64(){return V.uDec(...this.varint64())}sint64(){let[t,n]=this.varint64(),r=-(t&1);return t=(t>>>1|(n&1)<<31)^r,n=n>>>1^r,V.dec(t,n)}bool(){let[t,n]=this.varint64();return t!==0||n!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return V.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return V.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let t=this.uint32(),n=this.pos;return this.pos+=t,this.assertBounds(),this.buf.subarray(n,n+t)}string(){return this.decodeUtf8(this.bytes())}}function Ct(e){if(typeof e=="string")e=Number(e);else if(typeof e!="number")throw new Error("invalid int32: "+typeof e);if(!Number.isInteger(e)||e>Zo||e<Ro)throw new Error("invalid int32: "+e)}function Ln(e){if(typeof e=="string")e=Number(e);else if(typeof e!="number")throw new Error("invalid uint32: "+typeof e);if(!Number.isInteger(e)||e>_o||e<0)throw new Error("invalid uint32: "+e)}function Qi(e){if(typeof e=="string"){const t=e;if(e=Number(e),Number.isNaN(e)&&t!=="NaN")throw new Error("invalid float32: "+t)}else if(typeof e!="number")throw new Error("invalid float32: "+typeof e);if(Number.isFinite(e)&&(e>Io||e<So))throw new Error("invalid float32: "+e)}function me(e,t){const n=e.fieldKind=="list"?cn(t,e):e.fieldKind=="map"?un(t,e):gn(e,t);if(n===!0)return;let r;switch(e.fieldKind){case"list":r=`expected ${ko(e)}, got ${O(t)}`;break;case"map":r=`expected ${Bo(e)}, got ${O(t)}`;break;default:r=ot(e,t,n)}return new K(e,r)}function $n(e,t,n){const r=gn(e,n);if(r!==!0)return new K(e,`list item #${t+1}: ${ot(e,n,r)}`)}function Hi(e,t,n){const r=vo(t,e.mapKey);if(r!==!0)return new K(e,`invalid map key: ${ot({scalar:e.mapKey},t,r)}`);const o=gn(e,n);if(o!==!0)return new K(e,`map entry ${O(t)}: ${ot(e,n,o)}`)}function gn(e,t){return e.scalar!==void 0?vo(t,e.scalar):e.enum!==void 0?e.enum.open?Number.isInteger(t):e.enum.values.some(n=>n.number===t):ln(t,e.message)}function vo(e,t){switch(t){case m.DOUBLE:return typeof e=="number";case m.FLOAT:return typeof e!="number"?!1:Number.isNaN(e)||!Number.isFinite(e)?!0:e>Io||e<So?`${e.toFixed()} out of range`:!0;case m.INT32:case m.SFIXED32:case m.SINT32:return typeof e!="number"||!Number.isInteger(e)?!1:e>Zo||e<Ro?`${e.toFixed()} out of range`:!0;case m.FIXED32:case m.UINT32:return typeof e!="number"||!Number.isInteger(e)?!1:e>_o||e<0?`${e.toFixed()} out of range`:!0;case m.BOOL:return typeof e=="boolean";case m.STRING:return typeof e!="string"?!1:mn().checkUtf8(e)||"invalid UTF8";case m.BYTES:return e instanceof Uint8Array;case m.INT64:case m.SFIXED64:case m.SINT64:if(typeof e=="bigint"||typeof e=="number"||typeof e=="string"&&e.length>0)try{return V.parse(e),!0}catch{return`${e} out of range`}return!1;case m.FIXED64:case m.UINT64:if(typeof e=="bigint"||typeof e=="number"||typeof e=="string"&&e.length>0)try{return V.uParse(e),!0}catch{return`${e} out of range`}return!1}}function ot(e,t,n){return n=typeof n=="string"?`: ${n}`:`, got ${O(t)}`,e.scalar!==void 0?`expected ${qi(e.scalar)}`+n:e.enum!==void 0?`expected ${e.enum.toString()}`+n:`expected ${Vo(e.message)}`+n}function O(e){switch(typeof e){case"object":return e===null?"null":e instanceof Uint8Array?`Uint8Array(${e.length})`:Array.isArray(e)?`Array(${e.length})`:cn(e)?ko(e.field()):un(e)?Bo(e.field()):ln(e)?Vo(e.desc):sn(e)?`message ${e.$typeName}`:"object";case"string":return e.length>30?"string":`"${e.split('"').join('\\"')}"`;case"boolean":return String(e);case"number":return String(e);case"bigint":return String(e)+"n";default:return typeof e}}function Vo(e){return`ReflectMessage (${e.typeName})`}function ko(e){switch(e.listKind){case"message":return`ReflectList (${e.message.toString()})`;case"enum":return`ReflectList (${e.enum.toString()})`;case"scalar":return`ReflectList (${m[e.scalar]})`}}function Bo(e){switch(e.mapKind){case"message":return`ReflectMap (${m[e.mapKey]}, ${e.message.toString()})`;case"enum":return`ReflectMap (${m[e.mapKey]}, ${e.enum.toString()})`;case"scalar":return`ReflectMap (${m[e.mapKey]}, ${m[e.scalar]})`}}function qi(e){switch(e){case m.STRING:return"string";case m.BOOL:return"boolean";case m.INT64:case m.SINT64:case m.SFIXED64:return"bigint (int64)";case m.UINT64:case m.FIXED64:return"bigint (uint64)";case m.BYTES:return"Uint8Array";case m.DOUBLE:return"number (float64)";case m.FLOAT:return"number (float32)";case m.FIXED32:case m.UINT32:return"number (uint32)";case m.INT32:case m.SFIXED32:case m.SINT32:return"number (int32)"}}function H(e,t,n=!0){return new Co(e,t,n)}const Mn=new WeakMap;class Co{get sortedFields(){const t=Mn.get(this.desc);if(t)return t;const n=this.desc.fields.concat().sort((r,o)=>r.number-o.number);return Mn.set(this.desc,n),n}constructor(t,n,r=!0){this.lists=new Map,this.maps=new Map,this.check=r,this.desc=t,this.message=this[re]=n??Q(t),this.fields=t.fields,this.oneofs=t.oneofs,this.members=t.members}findNumber(t){return this._fieldsByNumber||(this._fieldsByNumber=new Map(this.desc.fields.map(n=>[n.number,n]))),this._fieldsByNumber.get(t)}oneofCase(t){return Ce(this.message,t),bo(this.message,t)}isSet(t){return Ce(this.message,t),Wi(this.message,t)}clear(t){Ce(this.message,t),Oi(this.message,t)}get(t){Ce(this.message,t);const n=Eo(this.message,t);switch(t.fieldKind){case"list":let r=this.lists.get(t);return(!r||r[re]!==n)&&this.lists.set(t,r=new ea(t,n,this.check)),r;case"map":let o=this.maps.get(t);return(!o||o[re]!==n)&&this.maps.set(t,o=new ta(t,n,this.check)),o;case"message":return bn(t,n,this.check);case"scalar":return n===void 0?Se(t.scalar,!1):En(t,n);case"enum":return n??t.enum.values[0].number}}set(t,n){if(Ce(this.message,t),this.check){const o=me(t,n);if(o)throw o}let r;t.fieldKind=="message"?r=pn(t,n):un(n)||cn(n)?r=n[re]:r=An(t,n),Ao(this.message,t,r)}getUnknown(){return this.message.$unknown}setUnknown(t){this.message.$unknown=t}}function Ce(e,t){if(t.parent.typeName!==e.$typeName)throw new K(t,`cannot use ${t.toString()} with message ${e.$typeName}`,"ForeignFieldError")}class ea{field(){return this._field}get size(){return this._arr.length}constructor(t,n,r){this._field=t,this._arr=this[re]=n,this.check=r}get(t){const n=this._arr[t];return n===void 0?void 0:Ft(this._field,n,this.check)}set(t,n){if(t<0||t>=this._arr.length)throw new K(this._field,`list item #${t+1}: out of range`);if(this.check){const r=$n(this._field,t,n);if(r)throw r}this._arr[t]=Pn(this._field,n)}add(t){if(this.check){const n=$n(this._field,this._arr.length,t);if(n)throw n}this._arr.push(Pn(this._field,t))}clear(){this._arr.splice(0,this._arr.length)}[Symbol.iterator](){return this.values()}keys(){return this._arr.keys()}*values(){for(const t of this._arr)yield Ft(this._field,t,this.check)}*entries(){for(let t=0;t<this._arr.length;t++)yield[t,Ft(this._field,this._arr[t],this.check)]}}class ta{constructor(t,n,r=!0){this.obj=this[re]=n??{},this.check=r,this._field=t}field(){return this._field}set(t,n){if(this.check){const r=Hi(this._field,t,n);if(r)throw r}return this.obj[Pe(t)]=na(this._field,n),this}delete(t){const n=Pe(t),r=Object.prototype.hasOwnProperty.call(this.obj,n);return r&&delete this.obj[n],r}clear(){for(const t of Object.keys(this.obj))delete this.obj[t]}get(t){let n=this.obj[Pe(t)];return n!==void 0&&(n=Gt(this._field,n,this.check)),n}has(t){return Object.prototype.hasOwnProperty.call(this.obj,Pe(t))}*keys(){for(const t of Object.keys(this.obj))yield jn(t,this._field.mapKey)}*entries(){for(const t of Object.entries(this.obj))yield[jn(t[0],this._field.mapKey),Gt(this._field,t[1],this.check)]}[Symbol.iterator](){return this.entries()}get size(){return Object.keys(this.obj).length}*values(){for(const t of Object.values(this.obj))yield Gt(this._field,t,this.check)}forEach(t,n){for(const r of this.entries())t.call(n,r[1],r[0],this)}}function pn(e,t){return ln(t)?Xi(t.message)&&!e.oneof&&e.fieldKind=="message"?t.message.value:t.desc.typeName=="google.protobuf.Struct"&&e.parent.typeName!="google.protobuf.Value"?Go(t.message):t.message:t}function bn(e,t,n){return t!==void 0&&(xe(e.message)&&!e.oneof&&e.fieldKind=="message"?t={$typeName:e.message.typeName,value:En(e.message.fields[0],t)}:e.message.typeName=="google.protobuf.Struct"&&e.parent.typeName!="google.protobuf.Value"&&ae(t)&&(t=Fo(t))),new Co(e.message,t,n)}function Pn(e,t){return e.listKind=="message"?pn(e,t):An(e,t)}function Ft(e,t,n){return e.listKind=="message"?bn(e,t,n):En(e,t)}function na(e,t){return e.mapKind=="message"?pn(e,t):An(e,t)}function Gt(e,t,n){return e.mapKind=="message"?bn(e,t,n):t}function Pe(e){return typeof e=="string"||typeof e=="number"?e:String(e)}function jn(e,t){switch(t){case m.STRING:return e;case m.INT32:case m.FIXED32:case m.UINT32:case m.SFIXED32:case m.SINT32:{const n=Number.parseInt(e);if(Number.isFinite(n))return n;break}case m.BOOL:switch(e){case"true":return!0;case"false":return!1}break;case m.UINT64:case m.FIXED64:try{return V.uParse(e)}catch{}break;default:try{return V.parse(e)}catch{}break}return e}function En(e,t){switch(e.scalar){case m.INT64:case m.SFIXED64:case m.SINT64:"longAsString"in e&&e.longAsString&&typeof t=="string"&&(t=V.parse(t));break;case m.FIXED64:case m.UINT64:"longAsString"in e&&e.longAsString&&typeof t=="string"&&(t=V.uParse(t));break}return t}function An(e,t){switch(e.scalar){case m.INT64:case m.SFIXED64:case m.SINT64:"longAsString"in e&&e.longAsString?t=String(t):(typeof t=="string"||typeof t=="number")&&(t=V.parse(t));break;case m.FIXED64:case m.UINT64:"longAsString"in e&&e.longAsString?t=String(t):(typeof t=="string"||typeof t=="number")&&(t=V.uParse(t));break}return t}function Fo(e){const t={$typeName:"google.protobuf.Struct",fields:{}};if(ae(e))for(const[n,r]of Object.entries(e))t.fields[n]=Yo(r);return t}function Go(e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=To(r);return t}function To(e){switch(e.kind.case){case"structValue":return Go(e.kind.value);case"listValue":return e.kind.value.values.map(To);case"nullValue":case void 0:return null;default:return e.kind.value}}function Yo(e){const t={$typeName:"google.protobuf.Value",kind:{case:void 0}};switch(typeof e){case"number":t.kind={case:"numberValue",value:e};break;case"string":t.kind={case:"stringValue",value:e};break;case"boolean":t.kind={case:"boolValue",value:e};break;case"object":if(e===null)t.kind={case:"nullValue",value:0};else if(Array.isArray(e)){const n={$typeName:"google.protobuf.ListValue",values:[]};if(Array.isArray(e))for(const r of e)n.values.push(Yo(r));t.kind={case:"listValue",value:n}}else t.kind={case:"structValue",value:Fo(e)};break}return t}function yn(e){const t=ra();let n=e.length*3/4;e[e.length-2]=="="?n-=2:e[e.length-1]=="="&&(n-=1);let r=new Uint8Array(n),o=0,s=0,i,a=0;for(let c=0;c<e.length;c++){if(i=t[e.charCodeAt(c)],i===void 0)switch(e[c]){case"=":s=0;case`
2
+ `:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string")}switch(s){case 0:a=i,s=1;break;case 1:r[o++]=a<<2|(i&48)>>4,a=i,s=2;break;case 2:r[o++]=(a&15)<<4|(i&60)>>2,a=i,s=3;break;case 3:r[o++]=(a&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string");return r.subarray(0,o)}function Uo(e,t="std"){const n=Wo(t),r=t=="std";let o="",s=0,i,a=0;for(let c=0;c<e.length;c++)switch(i=e[c],s){case 0:o+=n[i>>2],a=(i&3)<<4,s=1;break;case 1:o+=n[a|i>>4],a=(i&15)<<2,s=2;break;case 2:o+=n[a|i>>6],o+=n[i&63],s=0;break}return s&&(o+=n[a],r&&(o+="=",s==1&&(o+="="))),o}let je,Qn,Ae;function Wo(e){return je||(je="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),Qn=je.slice(0,-2).concat("-","_")),e=="url"?Qn:je}function ra(){if(!Ae){Ae=[];const e=Wo("std");for(let t=0;t<e.length;t++)Ae[e[t].charCodeAt(0)]=t;Ae[45]=e.indexOf("+"),Ae[95]=e.indexOf("/")}return Ae}function _e(e){let t=!1;const n=[];for(let r=0;r<e.length;r++){let o=e.charAt(r);switch(o){case"_":t=!0;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":n.push(o),t=!1;break;default:t&&(t=!1,o=o.toUpperCase()),n.push(o);break}}return n.join("")}function Oo(e){return e.replace(/[A-Z]/g,t=>"_"+t.toLowerCase())}const oa=new Set(["constructor","toString","toJSON","valueOf"]);function Ye(e){return oa.has(e)?e+"$":e}function Nn(e){for(const t of e.field)Te(t,"jsonName")||(t.jsonName=_e(t.name));e.nestedType.forEach(Nn)}function sa(e,t){const n=e.values.find(r=>r.name===t);if(!n)throw new Error(`cannot parse ${e} default value: ${t}`);return n.number}function ia(e,t){switch(e){case m.STRING:return t;case m.BYTES:{const n=aa(t);if(n===!1)throw new Error(`cannot parse ${m[e]} default value: ${t}`);return n}case m.INT64:case m.SFIXED64:case m.SINT64:return V.parse(t);case m.UINT64:case m.FIXED64:return V.uParse(t);case m.DOUBLE:case m.FLOAT:switch(t){case"inf":return Number.POSITIVE_INFINITY;case"-inf":return Number.NEGATIVE_INFINITY;case"nan":return Number.NaN;default:return parseFloat(t)}case m.BOOL:return t==="true";case m.INT32:case m.UINT32:case m.SINT32:case m.FIXED32:case m.SFIXED32:return parseInt(t,10)}}function aa(e){const t=[],n={tail:e,c:"",next(){return this.tail.length==0?!1:(this.c=this.tail[0],this.tail=this.tail.substring(1),!0)},take(r){if(this.tail.length>=r){const o=this.tail.substring(0,r);return this.tail=this.tail.substring(r),o}return!1}};for(;n.next();)switch(n.c){case"\\":if(n.next())switch(n.c){case"\\":t.push(n.c.charCodeAt(0));break;case"b":t.push(8);break;case"f":t.push(12);break;case"n":t.push(10);break;case"r":t.push(13);break;case"t":t.push(9);break;case"v":t.push(11);break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":{const r=n.c,o=n.take(2);if(o===!1)return!1;const s=parseInt(r+o,8);if(Number.isNaN(s))return!1;t.push(s);break}case"x":{const r=n.c,o=n.take(2);if(o===!1)return!1;const s=parseInt(r+o,16);if(Number.isNaN(s))return!1;t.push(s);break}case"u":{const r=n.c,o=n.take(4);if(o===!1)return!1;const s=parseInt(r+o,16);if(Number.isNaN(s))return!1;const i=new Uint8Array(4);new DataView(i.buffer).setInt32(0,s,!0),t.push(i[0],i[1],i[2],i[3]);break}case"U":{const r=n.c,o=n.take(8);if(o===!1)return!1;const s=V.uEnc(r+o),i=new Uint8Array(8),a=new DataView(i.buffer);a.setInt32(0,s.lo,!0),a.setInt32(4,s.hi,!0),t.push(i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7]);break}}break;default:t.push(n.c.charCodeAt(0))}return new Uint8Array(t)}function*zt(e){switch(e.kind){case"file":for(const t of e.messages)yield t,yield*zt(t);yield*e.enums,yield*e.services,yield*e.extensions;break;case"message":for(const t of e.nestedMessages)yield t,yield*zt(t);yield*e.nestedEnums,yield*e.nestedExtensions;break}}function Xo(...e){const t=ca();if(!e.length)return t;if("$typeName"in e[0]&&e[0].$typeName=="google.protobuf.FileDescriptorSet"){for(const n of e[0].file)tr(n,t);return t}if("$typeName"in e[0]){let s=function(i){const a=[];for(const c of i.dependency){if(t.getFile(c)!=null||o.has(c))continue;const u=r(c);if(!u)throw new Error(`Unable to resolve ${c}, imported by ${i.name}`);"kind"in u?t.addFile(u,!1,!0):(o.add(u.name),a.push(u))}return a.concat(...a.map(s))};const n=e[0],r=e[1],o=new Set;for(const i of[n,...s(n)].reverse())tr(i,t)}else for(const n of e)for(const r of n.files)t.addFile(r);return t}function ca(){const e=new Map,t=new Map,n=new Map;return{kind:"registry",types:e,extendees:t,[Symbol.iterator](){return e.values()},get files(){return n.values()},addFile(r,o,s){if(n.set(r.proto.name,r),!o)for(const i of zt(r))this.add(i);if(s)for(const i of r.dependencies)this.addFile(i,o,s)},add(r){if(r.kind=="extension"){let o=t.get(r.extendee.typeName);o||t.set(r.extendee.typeName,o=new Map),o.set(r.number,r)}e.set(r.typeName,r)},get(r){return e.get(r)},getFile(r){return n.get(r)},getMessage(r){const o=e.get(r);return(o==null?void 0:o.kind)=="message"?o:void 0},getEnum(r){const o=e.get(r);return(o==null?void 0:o.kind)=="enum"?o:void 0},getExtension(r){const o=e.get(r);return(o==null?void 0:o.kind)=="extension"?o:void 0},getExtensionFor(r,o){var s;return(s=t.get(r.typeName))===null||s===void 0?void 0:s.get(o)},getService(r){const o=e.get(r);return(o==null?void 0:o.kind)=="service"?o:void 0}}}const ua=998,la=999,da=9,Ue=10,Ge=11,fa=12,Hn=14,In=3,ma=2,qn=1,ha=0,Tt=1,er=2,ga=3,pa=1,ba=2,Ea=1,zo={998:{fieldPresence:1,enumType:2,repeatedFieldEncoding:2,utf8Validation:3,messageEncoding:1,jsonFormat:2,enforceNamingStyle:2,defaultSymbolVisibility:1},999:{fieldPresence:2,enumType:1,repeatedFieldEncoding:1,utf8Validation:2,messageEncoding:1,jsonFormat:1,enforceNamingStyle:2,defaultSymbolVisibility:1},1e3:{fieldPresence:1,enumType:1,repeatedFieldEncoding:1,utf8Validation:2,messageEncoding:1,jsonFormat:1,enforceNamingStyle:2,defaultSymbolVisibility:1},1001:{fieldPresence:1,enumType:1,repeatedFieldEncoding:1,utf8Validation:2,messageEncoding:1,jsonFormat:1,enforceNamingStyle:1,defaultSymbolVisibility:2}};function tr(e,t){var n,r;const o={kind:"file",proto:e,deprecated:(r=(n=e.options)===null||n===void 0?void 0:n.deprecated)!==null&&r!==void 0?r:!1,edition:Ia(e),name:e.name.replace(/\.proto$/,""),dependencies:Sa(e,t),enums:[],messages:[],extensions:[],services:[],toString(){return`file ${e.name}`}},s=new Map,i={get(a){return s.get(a)},add(a){var c;j(((c=a.proto.options)===null||c===void 0?void 0:c.mapEntry)===!0),s.set(a.typeName,a)}};for(const a of e.enumType)Jo(a,o,void 0,t);for(const a of e.messageType)Do(a,o,void 0,t,i);for(const a of e.service)Aa(a,o,t);Jt(o,t);for(const a of s.values())Dt(a,t,i);for(const a of o.messages)Dt(a,t,i),Jt(a,t);t.addFile(o,!0)}function Jt(e,t){switch(e.kind){case"file":for(const n of e.proto.extension){const r=xt(n,e,t);e.extensions.push(r),t.add(r)}break;case"message":for(const n of e.proto.extension){const r=xt(n,e,t);e.nestedExtensions.push(r),t.add(r)}for(const n of e.nestedMessages)Jt(n,t);break}}function Dt(e,t,n){const r=e.proto.oneofDecl.map(s=>Na(s,e)),o=new Set;for(const s of e.proto.field){const i=Ra(s,r),a=xt(s,e,t,i,n);e.fields.push(a),e.field[a.localName]=a,i===void 0?e.members.push(a):(i.fields.push(a),o.has(i)||(o.add(i),e.members.push(i)))}for(const s of r.filter(i=>o.has(i)))e.oneofs.push(s);for(const s of e.nestedMessages)Dt(s,t,n)}function Jo(e,t,n,r){var o,s,i,a,c;const u=_a(e.name,e.value),l={kind:"enum",proto:e,deprecated:(s=(o=e.options)===null||o===void 0?void 0:o.deprecated)!==null&&s!==void 0?s:!1,file:t,parent:n,open:!0,name:e.name,typeName:bt(e,n,t),value:{},values:[],sharedPrefix:u,toString(){return`enum ${this.typeName}`}};l.open=ka(l),r.add(l);for(const d of e.value){const g=d.name;l.values.push(l.value[d.number]={kind:"enum_value",proto:d,deprecated:(a=(i=d.options)===null||i===void 0?void 0:i.deprecated)!==null&&a!==void 0?a:!1,parent:l,name:g,localName:Ye(u==null?g:g.substring(u.length)),number:d.number,toString(){return`enum value ${l.typeName}.${g}`}})}((c=n==null?void 0:n.nestedEnums)!==null&&c!==void 0?c:t.enums).push(l)}function Do(e,t,n,r,o){var s,i,a,c;const u={kind:"message",proto:e,deprecated:(i=(s=e.options)===null||s===void 0?void 0:s.deprecated)!==null&&i!==void 0?i:!1,file:t,parent:n,name:e.name,typeName:bt(e,n,t),fields:[],field:{},oneofs:[],members:[],nestedEnums:[],nestedMessages:[],nestedExtensions:[],toString(){return`message ${this.typeName}`}};((a=e.options)===null||a===void 0?void 0:a.mapEntry)===!0?o.add(u):(((c=n==null?void 0:n.nestedMessages)!==null&&c!==void 0?c:t.messages).push(u),r.add(u));for(const l of e.enumType)Jo(l,t,u,r);for(const l of e.nestedType)Do(l,t,u,r,o)}function Aa(e,t,n){var r,o;const s={kind:"service",proto:e,deprecated:(o=(r=e.options)===null||r===void 0?void 0:r.deprecated)!==null&&o!==void 0?o:!1,file:t,name:e.name,typeName:bt(e,void 0,t),methods:[],method:{},toString(){return`service ${this.typeName}`}};t.services.push(s),n.add(s);for(const i of e.method){const a=ya(i,s,n);s.methods.push(a),s.method[a.localName]=a}}function ya(e,t,n){var r,o,s,i;let a;e.clientStreaming&&e.serverStreaming?a="bidi_streaming":e.clientStreaming?a="client_streaming":e.serverStreaming?a="server_streaming":a="unary";const c=n.getMessage(ne(e.inputType)),u=n.getMessage(ne(e.outputType));j(c,`invalid MethodDescriptorProto: input_type ${e.inputType} not found`),j(u,`invalid MethodDescriptorProto: output_type ${e.inputType} not found`);const l=e.name;return{kind:"rpc",proto:e,deprecated:(o=(r=e.options)===null||r===void 0?void 0:r.deprecated)!==null&&o!==void 0?o:!1,parent:t,name:l,localName:Ye(l.length?Ye(l[0].toLowerCase()+l.substring(1)):l),methodKind:a,input:c,output:u,idempotency:(i=(s=e.options)===null||s===void 0?void 0:s.idempotencyLevel)!==null&&i!==void 0?i:ha,toString(){return`rpc ${t.typeName}.${l}`}}}function Na(e,t){return{kind:"oneof",proto:e,deprecated:!1,parent:t,fields:[],name:e.name,localName:Ye(_e(e.name)),toString(){return`oneof ${t.typeName}.${this.name}`}}}function xt(e,t,n,r,o){var s,i,a;const c=o===void 0,u={kind:"field",proto:e,deprecated:(i=(s=e.options)===null||s===void 0?void 0:s.deprecated)!==null&&i!==void 0?i:!1,name:e.name,number:e.number,scalar:void 0,message:void 0,enum:void 0,presence:wa(e,r,c,t),listKind:void 0,mapKind:void 0,mapKey:void 0,delimitedEncoding:void 0,packed:void 0,longAsString:!1,getDefaultValue:void 0};if(c){const f=t.kind=="file"?t:t.file,p=t.kind=="file"?void 0:t,b=bt(e,p,f);u.kind="extension",u.file=f,u.parent=p,u.oneof=void 0,u.typeName=b,u.jsonName=`[${b}]`,u.toString=()=>`extension ${b}`;const E=n.getMessage(ne(e.extendee));j(E,`invalid FieldDescriptorProto: extendee ${e.extendee} not found`),u.extendee=E}else{const f=t;j(f.kind=="message"),u.parent=f,u.oneof=r,u.localName=r?_e(e.name):Ye(_e(e.name)),u.jsonName=e.jsonName,u.toString=()=>`field ${f.typeName}.${e.name}`}const l=e.label,d=e.type,g=(a=e.options)===null||a===void 0?void 0:a.jstype;if(l===In){const f=d==Ge?o==null?void 0:o.get(ne(e.typeName)):void 0;if(f){u.fieldKind="map";const{key:p,value:b}=Va(f);return u.mapKey=p.scalar,u.mapKind=b.fieldKind,u.message=b.message,u.delimitedEncoding=!1,u.enum=b.enum,u.scalar=b.scalar,u}switch(u.fieldKind="list",d){case Ge:case Ue:u.listKind="message",u.message=n.getMessage(ne(e.typeName)),j(u.message),u.delimitedEncoding=nr(e,t);break;case Hn:u.listKind="enum",u.enum=n.getEnum(ne(e.typeName)),j(u.enum);break;default:u.listKind="scalar",u.scalar=d,u.longAsString=g==qn;break}return u.packed=va(e,t),u}switch(d){case Ge:case Ue:u.fieldKind="message",u.message=n.getMessage(ne(e.typeName)),j(u.message,`invalid FieldDescriptorProto: type_name ${e.typeName} not found`),u.delimitedEncoding=nr(e,t),u.getDefaultValue=()=>{};break;case Hn:{const f=n.getEnum(ne(e.typeName));j(f!==void 0,`invalid FieldDescriptorProto: type_name ${e.typeName} not found`),u.fieldKind="enum",u.enum=n.getEnum(ne(e.typeName)),u.getDefaultValue=()=>Te(e,"defaultValue")?sa(f,e.defaultValue):void 0;break}default:{u.fieldKind="scalar",u.scalar=d,u.longAsString=g==qn,u.getDefaultValue=()=>Te(e,"defaultValue")?ia(d,e.defaultValue):void 0;break}}return u}function Ia(e){switch(e.syntax){case"":case"proto2":return ua;case"proto3":return la;case"editions":if(e.edition in zo)return e.edition;throw new Error(`${e.name}: unsupported edition`);default:throw new Error(`${e.name}: unsupported syntax "${e.syntax}"`)}}function Sa(e,t){return e.dependency.map(n=>{const r=t.getFile(n);if(!r)throw new Error(`Cannot find ${n}, imported by ${e.name}`);return r})}function _a(e,t){const n=Za(e)+"_";for(const r of t){if(!r.name.toLowerCase().startsWith(n))return;const o=r.name.substring(n.length);if(o.length==0||/^\d/.test(o))return}return n}function Za(e){return(e.substring(0,1)+e.substring(1).replace(/[A-Z]/g,t=>"_"+t)).toLowerCase()}function bt(e,t,n){let r;return t?r=`${t.typeName}.${e.name}`:n.proto.package.length>0?r=`${n.proto.package}.${e.name}`:r=`${e.name}`,r}function ne(e){return e.startsWith(".")?e.substring(1):e}function Ra(e,t){if(!Te(e,"oneofIndex")||e.proto3Optional)return;const n=t[e.oneofIndex];return j(n,`invalid FieldDescriptorProto: oneof #${e.oneofIndex} for field #${e.number} not found`),n}function wa(e,t,n,r){if(e.label==ma)return ga;if(e.label==In)return er;if(t||e.proto3Optional||n)return Tt;const o=Ze("fieldPresence",{proto:e,parent:r});return o==er&&(e.type==Ge||e.type==Ue)?Tt:o}function va(e,t){if(e.label!=In)return!1;switch(e.type){case da:case fa:case Ue:case Ge:return!1}const n=e.options;return n&&Te(n,"packed")?n.packed:pa==Ze("repeatedFieldEncoding",{proto:e,parent:t})}function Va(e){const t=e.fields.find(r=>r.number===1),n=e.fields.find(r=>r.number===2);return j(t&&t.fieldKind=="scalar"&&t.scalar!=m.BYTES&&t.scalar!=m.FLOAT&&t.scalar!=m.DOUBLE&&n&&n.fieldKind!="list"&&n.fieldKind!="map"),{key:t,value:n}}function ka(e){var t;return Ea==Ze("enumType",{proto:e.proto,parent:(t=e.parent)!==null&&t!==void 0?t:e.file})}function nr(e,t){return e.type==Ue?!0:ba==Ze("messageEncoding",{proto:e,parent:t})}function Ze(e,t){var n,r;const o=(n=t.proto.options)===null||n===void 0?void 0:n.features;if(o){const s=o[e];if(s!=0)return s}if("kind"in t){if(t.kind=="message")return Ze(e,(r=t.parent)!==null&&r!==void 0?r:t.file);const s=zo[t.edition];if(!s)throw new Error(`feature default for edition ${t.edition} not found`);return s[e]}return Ze(e,t.parent)}function j(e,t){if(!e)throw new Error(t)}function Ba(e){const t=Ca(e);return t.messageType.forEach(Nn),Xo(t,()=>{}).getFile(t.name)}function Ca(e){return Object.assign(Object.create({syntax:"",edition:0}),Object.assign(Object.assign({$typeName:"google.protobuf.FileDescriptorProto",dependency:[],publicDependency:[],weakDependency:[],optionDependency:[],service:[],extension:[]},e),{messageType:e.messageType.map(xo),enumType:e.enumType.map(Ko)}))}function xo(e){var t,n,r,o,s,i,a,c;return Object.assign(Object.create({visibility:0}),{$typeName:"google.protobuf.DescriptorProto",name:e.name,field:(n=(t=e.field)===null||t===void 0?void 0:t.map(Fa))!==null&&n!==void 0?n:[],extension:[],nestedType:(o=(r=e.nestedType)===null||r===void 0?void 0:r.map(xo))!==null&&o!==void 0?o:[],enumType:(i=(s=e.enumType)===null||s===void 0?void 0:s.map(Ko))!==null&&i!==void 0?i:[],extensionRange:(c=(a=e.extensionRange)===null||a===void 0?void 0:a.map(l=>Object.assign({$typeName:"google.protobuf.DescriptorProto.ExtensionRange"},l)))!==null&&c!==void 0?c:[],oneofDecl:[],reservedRange:[],reservedName:[]})}function Fa(e){return Object.assign(Object.create({label:1,typeName:"",extendee:"",defaultValue:"",oneofIndex:0,jsonName:"",proto3Optional:!1}),Object.assign(Object.assign({$typeName:"google.protobuf.FieldDescriptorProto"},e),{options:e.options?Ga(e.options):void 0}))}function Ga(e){var t,n,r;return Object.assign(Object.create({ctype:0,packed:!1,jstype:0,lazy:!1,unverifiedLazy:!1,deprecated:!1,weak:!1,debugRedact:!1,retention:0}),Object.assign(Object.assign({$typeName:"google.protobuf.FieldOptions"},e),{targets:(t=e.targets)!==null&&t!==void 0?t:[],editionDefaults:(r=(n=e.editionDefaults)===null||n===void 0?void 0:n.map(s=>Object.assign({$typeName:"google.protobuf.FieldOptions.EditionDefault"},s)))!==null&&r!==void 0?r:[],uninterpretedOption:[]}))}function Ko(e){return Object.assign(Object.create({visibility:0}),{$typeName:"google.protobuf.EnumDescriptorProto",name:e.name,reservedName:[],reservedRange:[],value:e.value.map(n=>Object.assign({$typeName:"google.protobuf.EnumValueDescriptorProto"},n))})}function Ke(e,t,...n){return n.reduce((r,o)=>r.nestedMessages[o],e.messages[t])}const Ta=Ba({name:"google/protobuf/descriptor.proto",package:"google.protobuf",messageType:[{name:"FileDescriptorSet",field:[{name:"file",number:1,type:11,label:3,typeName:".google.protobuf.FileDescriptorProto"}],extensionRange:[{start:536e6,end:536000001}]},{name:"FileDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"package",number:2,type:9,label:1},{name:"dependency",number:3,type:9,label:3},{name:"public_dependency",number:10,type:5,label:3},{name:"weak_dependency",number:11,type:5,label:3},{name:"option_dependency",number:15,type:9,label:3},{name:"message_type",number:4,type:11,label:3,typeName:".google.protobuf.DescriptorProto"},{name:"enum_type",number:5,type:11,label:3,typeName:".google.protobuf.EnumDescriptorProto"},{name:"service",number:6,type:11,label:3,typeName:".google.protobuf.ServiceDescriptorProto"},{name:"extension",number:7,type:11,label:3,typeName:".google.protobuf.FieldDescriptorProto"},{name:"options",number:8,type:11,label:1,typeName:".google.protobuf.FileOptions"},{name:"source_code_info",number:9,type:11,label:1,typeName:".google.protobuf.SourceCodeInfo"},{name:"syntax",number:12,type:9,label:1},{name:"edition",number:14,type:14,label:1,typeName:".google.protobuf.Edition"}]},{name:"DescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"field",number:2,type:11,label:3,typeName:".google.protobuf.FieldDescriptorProto"},{name:"extension",number:6,type:11,label:3,typeName:".google.protobuf.FieldDescriptorProto"},{name:"nested_type",number:3,type:11,label:3,typeName:".google.protobuf.DescriptorProto"},{name:"enum_type",number:4,type:11,label:3,typeName:".google.protobuf.EnumDescriptorProto"},{name:"extension_range",number:5,type:11,label:3,typeName:".google.protobuf.DescriptorProto.ExtensionRange"},{name:"oneof_decl",number:8,type:11,label:3,typeName:".google.protobuf.OneofDescriptorProto"},{name:"options",number:7,type:11,label:1,typeName:".google.protobuf.MessageOptions"},{name:"reserved_range",number:9,type:11,label:3,typeName:".google.protobuf.DescriptorProto.ReservedRange"},{name:"reserved_name",number:10,type:9,label:3},{name:"visibility",number:11,type:14,label:1,typeName:".google.protobuf.SymbolVisibility"}],nestedType:[{name:"ExtensionRange",field:[{name:"start",number:1,type:5,label:1},{name:"end",number:2,type:5,label:1},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.ExtensionRangeOptions"}]},{name:"ReservedRange",field:[{name:"start",number:1,type:5,label:1},{name:"end",number:2,type:5,label:1}]}]},{name:"ExtensionRangeOptions",field:[{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"},{name:"declaration",number:2,type:11,label:3,typeName:".google.protobuf.ExtensionRangeOptions.Declaration",options:{retention:2}},{name:"features",number:50,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"verification",number:3,type:14,label:1,typeName:".google.protobuf.ExtensionRangeOptions.VerificationState",defaultValue:"UNVERIFIED",options:{retention:2}}],nestedType:[{name:"Declaration",field:[{name:"number",number:1,type:5,label:1},{name:"full_name",number:2,type:9,label:1},{name:"type",number:3,type:9,label:1},{name:"reserved",number:5,type:8,label:1},{name:"repeated",number:6,type:8,label:1}]}],enumType:[{name:"VerificationState",value:[{name:"DECLARATION",number:0},{name:"UNVERIFIED",number:1}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"FieldDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"number",number:3,type:5,label:1},{name:"label",number:4,type:14,label:1,typeName:".google.protobuf.FieldDescriptorProto.Label"},{name:"type",number:5,type:14,label:1,typeName:".google.protobuf.FieldDescriptorProto.Type"},{name:"type_name",number:6,type:9,label:1},{name:"extendee",number:2,type:9,label:1},{name:"default_value",number:7,type:9,label:1},{name:"oneof_index",number:9,type:5,label:1},{name:"json_name",number:10,type:9,label:1},{name:"options",number:8,type:11,label:1,typeName:".google.protobuf.FieldOptions"},{name:"proto3_optional",number:17,type:8,label:1}],enumType:[{name:"Type",value:[{name:"TYPE_DOUBLE",number:1},{name:"TYPE_FLOAT",number:2},{name:"TYPE_INT64",number:3},{name:"TYPE_UINT64",number:4},{name:"TYPE_INT32",number:5},{name:"TYPE_FIXED64",number:6},{name:"TYPE_FIXED32",number:7},{name:"TYPE_BOOL",number:8},{name:"TYPE_STRING",number:9},{name:"TYPE_GROUP",number:10},{name:"TYPE_MESSAGE",number:11},{name:"TYPE_BYTES",number:12},{name:"TYPE_UINT32",number:13},{name:"TYPE_ENUM",number:14},{name:"TYPE_SFIXED32",number:15},{name:"TYPE_SFIXED64",number:16},{name:"TYPE_SINT32",number:17},{name:"TYPE_SINT64",number:18}]},{name:"Label",value:[{name:"LABEL_OPTIONAL",number:1},{name:"LABEL_REPEATED",number:3},{name:"LABEL_REQUIRED",number:2}]}]},{name:"OneofDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"options",number:2,type:11,label:1,typeName:".google.protobuf.OneofOptions"}]},{name:"EnumDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"value",number:2,type:11,label:3,typeName:".google.protobuf.EnumValueDescriptorProto"},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.EnumOptions"},{name:"reserved_range",number:4,type:11,label:3,typeName:".google.protobuf.EnumDescriptorProto.EnumReservedRange"},{name:"reserved_name",number:5,type:9,label:3},{name:"visibility",number:6,type:14,label:1,typeName:".google.protobuf.SymbolVisibility"}],nestedType:[{name:"EnumReservedRange",field:[{name:"start",number:1,type:5,label:1},{name:"end",number:2,type:5,label:1}]}]},{name:"EnumValueDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"number",number:2,type:5,label:1},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.EnumValueOptions"}]},{name:"ServiceDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"method",number:2,type:11,label:3,typeName:".google.protobuf.MethodDescriptorProto"},{name:"options",number:3,type:11,label:1,typeName:".google.protobuf.ServiceOptions"}]},{name:"MethodDescriptorProto",field:[{name:"name",number:1,type:9,label:1},{name:"input_type",number:2,type:9,label:1},{name:"output_type",number:3,type:9,label:1},{name:"options",number:4,type:11,label:1,typeName:".google.protobuf.MethodOptions"},{name:"client_streaming",number:5,type:8,label:1,defaultValue:"false"},{name:"server_streaming",number:6,type:8,label:1,defaultValue:"false"}]},{name:"FileOptions",field:[{name:"java_package",number:1,type:9,label:1},{name:"java_outer_classname",number:8,type:9,label:1},{name:"java_multiple_files",number:10,type:8,label:1,defaultValue:"false"},{name:"java_generate_equals_and_hash",number:20,type:8,label:1,options:{deprecated:!0}},{name:"java_string_check_utf8",number:27,type:8,label:1,defaultValue:"false"},{name:"optimize_for",number:9,type:14,label:1,typeName:".google.protobuf.FileOptions.OptimizeMode",defaultValue:"SPEED"},{name:"go_package",number:11,type:9,label:1},{name:"cc_generic_services",number:16,type:8,label:1,defaultValue:"false"},{name:"java_generic_services",number:17,type:8,label:1,defaultValue:"false"},{name:"py_generic_services",number:18,type:8,label:1,defaultValue:"false"},{name:"deprecated",number:23,type:8,label:1,defaultValue:"false"},{name:"cc_enable_arenas",number:31,type:8,label:1,defaultValue:"true"},{name:"objc_class_prefix",number:36,type:9,label:1},{name:"csharp_namespace",number:37,type:9,label:1},{name:"swift_prefix",number:39,type:9,label:1},{name:"php_class_prefix",number:40,type:9,label:1},{name:"php_namespace",number:41,type:9,label:1},{name:"php_metadata_namespace",number:44,type:9,label:1},{name:"ruby_package",number:45,type:9,label:1},{name:"features",number:50,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],enumType:[{name:"OptimizeMode",value:[{name:"SPEED",number:1},{name:"CODE_SIZE",number:2},{name:"LITE_RUNTIME",number:3}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"MessageOptions",field:[{name:"message_set_wire_format",number:1,type:8,label:1,defaultValue:"false"},{name:"no_standard_descriptor_accessor",number:2,type:8,label:1,defaultValue:"false"},{name:"deprecated",number:3,type:8,label:1,defaultValue:"false"},{name:"map_entry",number:7,type:8,label:1},{name:"deprecated_legacy_json_field_conflicts",number:11,type:8,label:1,options:{deprecated:!0}},{name:"features",number:12,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"FieldOptions",field:[{name:"ctype",number:1,type:14,label:1,typeName:".google.protobuf.FieldOptions.CType",defaultValue:"STRING"},{name:"packed",number:2,type:8,label:1},{name:"jstype",number:6,type:14,label:1,typeName:".google.protobuf.FieldOptions.JSType",defaultValue:"JS_NORMAL"},{name:"lazy",number:5,type:8,label:1,defaultValue:"false"},{name:"unverified_lazy",number:15,type:8,label:1,defaultValue:"false"},{name:"deprecated",number:3,type:8,label:1,defaultValue:"false"},{name:"weak",number:10,type:8,label:1,defaultValue:"false",options:{deprecated:!0}},{name:"debug_redact",number:16,type:8,label:1,defaultValue:"false"},{name:"retention",number:17,type:14,label:1,typeName:".google.protobuf.FieldOptions.OptionRetention"},{name:"targets",number:19,type:14,label:3,typeName:".google.protobuf.FieldOptions.OptionTargetType"},{name:"edition_defaults",number:20,type:11,label:3,typeName:".google.protobuf.FieldOptions.EditionDefault"},{name:"features",number:21,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"feature_support",number:22,type:11,label:1,typeName:".google.protobuf.FieldOptions.FeatureSupport"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],nestedType:[{name:"EditionDefault",field:[{name:"edition",number:3,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"value",number:2,type:9,label:1}]},{name:"FeatureSupport",field:[{name:"edition_introduced",number:1,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"edition_deprecated",number:2,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"deprecation_warning",number:3,type:9,label:1},{name:"edition_removed",number:4,type:14,label:1,typeName:".google.protobuf.Edition"}]}],enumType:[{name:"CType",value:[{name:"STRING",number:0},{name:"CORD",number:1},{name:"STRING_PIECE",number:2}]},{name:"JSType",value:[{name:"JS_NORMAL",number:0},{name:"JS_STRING",number:1},{name:"JS_NUMBER",number:2}]},{name:"OptionRetention",value:[{name:"RETENTION_UNKNOWN",number:0},{name:"RETENTION_RUNTIME",number:1},{name:"RETENTION_SOURCE",number:2}]},{name:"OptionTargetType",value:[{name:"TARGET_TYPE_UNKNOWN",number:0},{name:"TARGET_TYPE_FILE",number:1},{name:"TARGET_TYPE_EXTENSION_RANGE",number:2},{name:"TARGET_TYPE_MESSAGE",number:3},{name:"TARGET_TYPE_FIELD",number:4},{name:"TARGET_TYPE_ONEOF",number:5},{name:"TARGET_TYPE_ENUM",number:6},{name:"TARGET_TYPE_ENUM_ENTRY",number:7},{name:"TARGET_TYPE_SERVICE",number:8},{name:"TARGET_TYPE_METHOD",number:9}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"OneofOptions",field:[{name:"features",number:1,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"EnumOptions",field:[{name:"allow_alias",number:2,type:8,label:1},{name:"deprecated",number:3,type:8,label:1,defaultValue:"false"},{name:"deprecated_legacy_json_field_conflicts",number:6,type:8,label:1,options:{deprecated:!0}},{name:"features",number:7,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"EnumValueOptions",field:[{name:"deprecated",number:1,type:8,label:1,defaultValue:"false"},{name:"features",number:2,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"debug_redact",number:3,type:8,label:1,defaultValue:"false"},{name:"feature_support",number:4,type:11,label:1,typeName:".google.protobuf.FieldOptions.FeatureSupport"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"ServiceOptions",field:[{name:"features",number:34,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"deprecated",number:33,type:8,label:1,defaultValue:"false"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],extensionRange:[{start:1e3,end:536870912}]},{name:"MethodOptions",field:[{name:"deprecated",number:33,type:8,label:1,defaultValue:"false"},{name:"idempotency_level",number:34,type:14,label:1,typeName:".google.protobuf.MethodOptions.IdempotencyLevel",defaultValue:"IDEMPOTENCY_UNKNOWN"},{name:"features",number:35,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"uninterpreted_option",number:999,type:11,label:3,typeName:".google.protobuf.UninterpretedOption"}],enumType:[{name:"IdempotencyLevel",value:[{name:"IDEMPOTENCY_UNKNOWN",number:0},{name:"NO_SIDE_EFFECTS",number:1},{name:"IDEMPOTENT",number:2}]}],extensionRange:[{start:1e3,end:536870912}]},{name:"UninterpretedOption",field:[{name:"name",number:2,type:11,label:3,typeName:".google.protobuf.UninterpretedOption.NamePart"},{name:"identifier_value",number:3,type:9,label:1},{name:"positive_int_value",number:4,type:4,label:1},{name:"negative_int_value",number:5,type:3,label:1},{name:"double_value",number:6,type:1,label:1},{name:"string_value",number:7,type:12,label:1},{name:"aggregate_value",number:8,type:9,label:1}],nestedType:[{name:"NamePart",field:[{name:"name_part",number:1,type:9,label:2},{name:"is_extension",number:2,type:8,label:2}]}]},{name:"FeatureSet",field:[{name:"field_presence",number:1,type:14,label:1,typeName:".google.protobuf.FeatureSet.FieldPresence",options:{retention:1,targets:[4,1],editionDefaults:[{value:"EXPLICIT",edition:900},{value:"IMPLICIT",edition:999},{value:"EXPLICIT",edition:1e3}]}},{name:"enum_type",number:2,type:14,label:1,typeName:".google.protobuf.FeatureSet.EnumType",options:{retention:1,targets:[6,1],editionDefaults:[{value:"CLOSED",edition:900},{value:"OPEN",edition:999}]}},{name:"repeated_field_encoding",number:3,type:14,label:1,typeName:".google.protobuf.FeatureSet.RepeatedFieldEncoding",options:{retention:1,targets:[4,1],editionDefaults:[{value:"EXPANDED",edition:900},{value:"PACKED",edition:999}]}},{name:"utf8_validation",number:4,type:14,label:1,typeName:".google.protobuf.FeatureSet.Utf8Validation",options:{retention:1,targets:[4,1],editionDefaults:[{value:"NONE",edition:900},{value:"VERIFY",edition:999}]}},{name:"message_encoding",number:5,type:14,label:1,typeName:".google.protobuf.FeatureSet.MessageEncoding",options:{retention:1,targets:[4,1],editionDefaults:[{value:"LENGTH_PREFIXED",edition:900}]}},{name:"json_format",number:6,type:14,label:1,typeName:".google.protobuf.FeatureSet.JsonFormat",options:{retention:1,targets:[3,6,1],editionDefaults:[{value:"LEGACY_BEST_EFFORT",edition:900},{value:"ALLOW",edition:999}]}},{name:"enforce_naming_style",number:7,type:14,label:1,typeName:".google.protobuf.FeatureSet.EnforceNamingStyle",options:{retention:2,targets:[1,2,3,4,5,6,7,8,9],editionDefaults:[{value:"STYLE_LEGACY",edition:900},{value:"STYLE2024",edition:1001}]}},{name:"default_symbol_visibility",number:8,type:14,label:1,typeName:".google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility",options:{retention:2,targets:[1],editionDefaults:[{value:"EXPORT_ALL",edition:900},{value:"EXPORT_TOP_LEVEL",edition:1001}]}}],nestedType:[{name:"VisibilityFeature",enumType:[{name:"DefaultSymbolVisibility",value:[{name:"DEFAULT_SYMBOL_VISIBILITY_UNKNOWN",number:0},{name:"EXPORT_ALL",number:1},{name:"EXPORT_TOP_LEVEL",number:2},{name:"LOCAL_ALL",number:3},{name:"STRICT",number:4}]}]}],enumType:[{name:"FieldPresence",value:[{name:"FIELD_PRESENCE_UNKNOWN",number:0},{name:"EXPLICIT",number:1},{name:"IMPLICIT",number:2},{name:"LEGACY_REQUIRED",number:3}]},{name:"EnumType",value:[{name:"ENUM_TYPE_UNKNOWN",number:0},{name:"OPEN",number:1},{name:"CLOSED",number:2}]},{name:"RepeatedFieldEncoding",value:[{name:"REPEATED_FIELD_ENCODING_UNKNOWN",number:0},{name:"PACKED",number:1},{name:"EXPANDED",number:2}]},{name:"Utf8Validation",value:[{name:"UTF8_VALIDATION_UNKNOWN",number:0},{name:"VERIFY",number:2},{name:"NONE",number:3}]},{name:"MessageEncoding",value:[{name:"MESSAGE_ENCODING_UNKNOWN",number:0},{name:"LENGTH_PREFIXED",number:1},{name:"DELIMITED",number:2}]},{name:"JsonFormat",value:[{name:"JSON_FORMAT_UNKNOWN",number:0},{name:"ALLOW",number:1},{name:"LEGACY_BEST_EFFORT",number:2}]},{name:"EnforceNamingStyle",value:[{name:"ENFORCE_NAMING_STYLE_UNKNOWN",number:0},{name:"STYLE2024",number:1},{name:"STYLE_LEGACY",number:2}]}],extensionRange:[{start:1e3,end:9995},{start:9995,end:1e4},{start:1e4,end:10001}]},{name:"FeatureSetDefaults",field:[{name:"defaults",number:1,type:11,label:3,typeName:".google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault"},{name:"minimum_edition",number:4,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"maximum_edition",number:5,type:14,label:1,typeName:".google.protobuf.Edition"}],nestedType:[{name:"FeatureSetEditionDefault",field:[{name:"edition",number:3,type:14,label:1,typeName:".google.protobuf.Edition"},{name:"overridable_features",number:4,type:11,label:1,typeName:".google.protobuf.FeatureSet"},{name:"fixed_features",number:5,type:11,label:1,typeName:".google.protobuf.FeatureSet"}]}]},{name:"SourceCodeInfo",field:[{name:"location",number:1,type:11,label:3,typeName:".google.protobuf.SourceCodeInfo.Location"}],nestedType:[{name:"Location",field:[{name:"path",number:1,type:5,label:3,options:{packed:!0}},{name:"span",number:2,type:5,label:3,options:{packed:!0}},{name:"leading_comments",number:3,type:9,label:1},{name:"trailing_comments",number:4,type:9,label:1},{name:"leading_detached_comments",number:6,type:9,label:3}]}],extensionRange:[{start:536e6,end:536000001}]},{name:"GeneratedCodeInfo",field:[{name:"annotation",number:1,type:11,label:3,typeName:".google.protobuf.GeneratedCodeInfo.Annotation"}],nestedType:[{name:"Annotation",field:[{name:"path",number:1,type:5,label:3,options:{packed:!0}},{name:"source_file",number:2,type:9,label:1},{name:"begin",number:3,type:5,label:1},{name:"end",number:4,type:5,label:1},{name:"semantic",number:5,type:14,label:1,typeName:".google.protobuf.GeneratedCodeInfo.Annotation.Semantic"}],enumType:[{name:"Semantic",value:[{name:"NONE",number:0},{name:"SET",number:1},{name:"ALIAS",number:2}]}]}]}],enumType:[{name:"Edition",value:[{name:"EDITION_UNKNOWN",number:0},{name:"EDITION_LEGACY",number:900},{name:"EDITION_PROTO2",number:998},{name:"EDITION_PROTO3",number:999},{name:"EDITION_2023",number:1e3},{name:"EDITION_2024",number:1001},{name:"EDITION_UNSTABLE",number:9999},{name:"EDITION_1_TEST_ONLY",number:1},{name:"EDITION_2_TEST_ONLY",number:2},{name:"EDITION_99997_TEST_ONLY",number:99997},{name:"EDITION_99998_TEST_ONLY",number:99998},{name:"EDITION_99999_TEST_ONLY",number:99999},{name:"EDITION_MAX",number:2147483647}]},{name:"SymbolVisibility",value:[{name:"VISIBILITY_UNSET",number:0},{name:"VISIBILITY_LOCAL",number:1},{name:"VISIBILITY_EXPORT",number:2}]}]}),Ya=Ke(Ta,1);var rr;(function(e){e[e.DECLARATION=0]="DECLARATION",e[e.UNVERIFIED=1]="UNVERIFIED"})(rr||(rr={}));var or;(function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.GROUP=10]="GROUP",e[e.MESSAGE=11]="MESSAGE",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.ENUM=14]="ENUM",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"})(or||(or={}));var sr;(function(e){e[e.OPTIONAL=1]="OPTIONAL",e[e.REPEATED=3]="REPEATED",e[e.REQUIRED=2]="REQUIRED"})(sr||(sr={}));var ir;(function(e){e[e.SPEED=1]="SPEED",e[e.CODE_SIZE=2]="CODE_SIZE",e[e.LITE_RUNTIME=3]="LITE_RUNTIME"})(ir||(ir={}));var ar;(function(e){e[e.STRING=0]="STRING",e[e.CORD=1]="CORD",e[e.STRING_PIECE=2]="STRING_PIECE"})(ar||(ar={}));var cr;(function(e){e[e.JS_NORMAL=0]="JS_NORMAL",e[e.JS_STRING=1]="JS_STRING",e[e.JS_NUMBER=2]="JS_NUMBER"})(cr||(cr={}));var ur;(function(e){e[e.RETENTION_UNKNOWN=0]="RETENTION_UNKNOWN",e[e.RETENTION_RUNTIME=1]="RETENTION_RUNTIME",e[e.RETENTION_SOURCE=2]="RETENTION_SOURCE"})(ur||(ur={}));var lr;(function(e){e[e.TARGET_TYPE_UNKNOWN=0]="TARGET_TYPE_UNKNOWN",e[e.TARGET_TYPE_FILE=1]="TARGET_TYPE_FILE",e[e.TARGET_TYPE_EXTENSION_RANGE=2]="TARGET_TYPE_EXTENSION_RANGE",e[e.TARGET_TYPE_MESSAGE=3]="TARGET_TYPE_MESSAGE",e[e.TARGET_TYPE_FIELD=4]="TARGET_TYPE_FIELD",e[e.TARGET_TYPE_ONEOF=5]="TARGET_TYPE_ONEOF",e[e.TARGET_TYPE_ENUM=6]="TARGET_TYPE_ENUM",e[e.TARGET_TYPE_ENUM_ENTRY=7]="TARGET_TYPE_ENUM_ENTRY",e[e.TARGET_TYPE_SERVICE=8]="TARGET_TYPE_SERVICE",e[e.TARGET_TYPE_METHOD=9]="TARGET_TYPE_METHOD"})(lr||(lr={}));var Kt;(function(e){e[e.IDEMPOTENCY_UNKNOWN=0]="IDEMPOTENCY_UNKNOWN",e[e.NO_SIDE_EFFECTS=1]="NO_SIDE_EFFECTS",e[e.IDEMPOTENT=2]="IDEMPOTENT"})(Kt||(Kt={}));var dr;(function(e){e[e.DEFAULT_SYMBOL_VISIBILITY_UNKNOWN=0]="DEFAULT_SYMBOL_VISIBILITY_UNKNOWN",e[e.EXPORT_ALL=1]="EXPORT_ALL",e[e.EXPORT_TOP_LEVEL=2]="EXPORT_TOP_LEVEL",e[e.LOCAL_ALL=3]="LOCAL_ALL",e[e.STRICT=4]="STRICT"})(dr||(dr={}));var fr;(function(e){e[e.FIELD_PRESENCE_UNKNOWN=0]="FIELD_PRESENCE_UNKNOWN",e[e.EXPLICIT=1]="EXPLICIT",e[e.IMPLICIT=2]="IMPLICIT",e[e.LEGACY_REQUIRED=3]="LEGACY_REQUIRED"})(fr||(fr={}));var mr;(function(e){e[e.ENUM_TYPE_UNKNOWN=0]="ENUM_TYPE_UNKNOWN",e[e.OPEN=1]="OPEN",e[e.CLOSED=2]="CLOSED"})(mr||(mr={}));var hr;(function(e){e[e.REPEATED_FIELD_ENCODING_UNKNOWN=0]="REPEATED_FIELD_ENCODING_UNKNOWN",e[e.PACKED=1]="PACKED",e[e.EXPANDED=2]="EXPANDED"})(hr||(hr={}));var gr;(function(e){e[e.UTF8_VALIDATION_UNKNOWN=0]="UTF8_VALIDATION_UNKNOWN",e[e.VERIFY=2]="VERIFY",e[e.NONE=3]="NONE"})(gr||(gr={}));var pr;(function(e){e[e.MESSAGE_ENCODING_UNKNOWN=0]="MESSAGE_ENCODING_UNKNOWN",e[e.LENGTH_PREFIXED=1]="LENGTH_PREFIXED",e[e.DELIMITED=2]="DELIMITED"})(pr||(pr={}));var br;(function(e){e[e.JSON_FORMAT_UNKNOWN=0]="JSON_FORMAT_UNKNOWN",e[e.ALLOW=1]="ALLOW",e[e.LEGACY_BEST_EFFORT=2]="LEGACY_BEST_EFFORT"})(br||(br={}));var Er;(function(e){e[e.ENFORCE_NAMING_STYLE_UNKNOWN=0]="ENFORCE_NAMING_STYLE_UNKNOWN",e[e.STYLE2024=1]="STYLE2024",e[e.STYLE_LEGACY=2]="STYLE_LEGACY"})(Er||(Er={}));var Ar;(function(e){e[e.NONE=0]="NONE",e[e.SET=1]="SET",e[e.ALIAS=2]="ALIAS"})(Ar||(Ar={}));var yr;(function(e){e[e.EDITION_UNKNOWN=0]="EDITION_UNKNOWN",e[e.EDITION_LEGACY=900]="EDITION_LEGACY",e[e.EDITION_PROTO2=998]="EDITION_PROTO2",e[e.EDITION_PROTO3=999]="EDITION_PROTO3",e[e.EDITION_2023=1e3]="EDITION_2023",e[e.EDITION_2024=1001]="EDITION_2024",e[e.EDITION_UNSTABLE=9999]="EDITION_UNSTABLE",e[e.EDITION_1_TEST_ONLY=1]="EDITION_1_TEST_ONLY",e[e.EDITION_2_TEST_ONLY=2]="EDITION_2_TEST_ONLY",e[e.EDITION_99997_TEST_ONLY=99997]="EDITION_99997_TEST_ONLY",e[e.EDITION_99998_TEST_ONLY=99998]="EDITION_99998_TEST_ONLY",e[e.EDITION_99999_TEST_ONLY=99999]="EDITION_99999_TEST_ONLY",e[e.EDITION_MAX=2147483647]="EDITION_MAX"})(yr||(yr={}));var Nr;(function(e){e[e.VISIBILITY_UNSET=0]="VISIBILITY_UNSET",e[e.VISIBILITY_LOCAL=1]="VISIBILITY_LOCAL",e[e.VISIBILITY_EXPORT=2]="VISIBILITY_EXPORT"})(Nr||(Nr={}));const Ir={readUnknownFields:!0};function Ua(e){return e?Object.assign(Object.assign({},Ir),e):Ir}function Et(e,t,n){const r=H(e,void 0,!1);return Lo(r,new hn(t),Ua(n),!1,t.byteLength),r.message}function Lo(e,t,n,r,o){var s;const i=r?t.len:t.pos+o;let a,c;const u=(s=e.getUnknown())!==null&&s!==void 0?s:[];for(;t.pos<i&&([a,c]=t.tag(),!(r&&c==F.EndGroup));){const l=e.findNumber(a);if(!l){const d=t.skip(c,a);n.readUnknownFields&&u.push({no:a,wireType:c,data:d});continue}$o(e,t,l,c,n)}if(r&&(c!=F.EndGroup||a!==o))throw new Error("invalid end group tag");u.length>0&&e.setUnknown(u)}function $o(e,t,n,r,o){var s;switch(n.fieldKind){case"scalar":e.set(n,Re(t,n.scalar));break;case"enum":const i=Re(t,m.INT32);if(n.enum.open)e.set(n,i);else if(n.enum.values.some(c=>c.number===i))e.set(n,i);else if(o.readUnknownFields){const c=[];Xt(i,c);const u=(s=e.getUnknown())!==null&&s!==void 0?s:[];u.push({no:n.number,wireType:r,data:new Uint8Array(c)}),e.setUnknown(u)}break;case"message":e.set(n,Sn(t,o,n,e.get(n)));break;case"list":Oa(t,r,e.get(n),o);break;case"map":Wa(t,e.get(n),o);break}}function Wa(e,t,n){const r=t.field();let o,s;const i=e.uint32(),a=e.pos+i;for(;e.pos<a;){const[c]=e.tag();switch(c){case 1:o=Re(e,r.mapKey);break;case 2:switch(r.mapKind){case"scalar":s=Re(e,r.scalar);break;case"enum":s=e.int32();break;case"message":s=Sn(e,n,r);break}break}}if(o===void 0&&(o=Se(r.mapKey,!1)),s===void 0)switch(r.mapKind){case"scalar":s=Se(r.scalar,!1);break;case"enum":s=r.enum.values[0].number;break;case"message":s=H(r.message,void 0,!1);break}t.set(o,s)}function Oa(e,t,n,r){var o;const s=n.field();if(s.listKind==="message"){n.add(Sn(e,r,s));return}const i=(o=s.scalar)!==null&&o!==void 0?o:m.INT32;if(!(t==F.LengthDelimited&&i!=m.STRING&&i!=m.BYTES)){n.add(Re(e,i));return}const c=e.uint32()+e.pos;for(;e.pos<c;)n.add(Re(e,i))}function Sn(e,t,n,r){const o=n.delimitedEncoding,s=r??H(n.message,void 0,!1);return Lo(s,e,t,o,o?n.number:e.uint32()),s}function Re(e,t){switch(t){case m.STRING:return e.string();case m.BOOL:return e.bool();case m.DOUBLE:return e.double();case m.FLOAT:return e.float();case m.INT32:return e.int32();case m.INT64:return e.int64();case m.UINT64:return e.uint64();case m.FIXED64:return e.fixed64();case m.BYTES:return e.bytes();case m.FIXED32:return e.fixed32();case m.SFIXED32:return e.sfixed32();case m.SFIXED64:return e.sfixed64();case m.SINT64:return e.sint64();case m.UINT32:return e.uint32();case m.SINT32:return e.sint32()}}function ge(e,t){var n;const r=Et(Ya,yn(e));return r.messageType.forEach(Nn),r.dependency=(n=t==null?void 0:t.map(s=>s.proto.name))!==null&&n!==void 0?n:[],Xo(r,s=>t==null?void 0:t.find(i=>i.proto.name===s)).getFile(r.name)}const Xa=ge("Chlnb29nbGUvcHJvdG9idWYvYW55LnByb3RvEg9nb29nbGUucHJvdG9idWYiJgoDQW55EhAKCHR5cGVfdXJsGAEgASgJEg0KBXZhbHVlGAIgASgMQnYKE2NvbS5nb29nbGUucHJvdG9idWZCCEFueVByb3RvUAFaLGdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL2FueXBiogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM"),za=Ke(Xa,0),Ja=3,Sr={writeUnknownFields:!0};function Da(e){return e?Object.assign(Object.assign({},Sr),e):Sr}function Mo(e,t,n){return st(new wo,Da(n),H(e,t)).finish()}function st(e,t,n){var r;for(const o of n.sortedFields){if(!n.isSet(o)){if(o.presence==Ja)throw new Error(`cannot encode ${o} to binary: required field not set`);continue}Po(e,t,n,o)}if(t.writeUnknownFields)for(const{no:o,wireType:s,data:i}of(r=n.getUnknown())!==null&&r!==void 0?r:[])e.tag(o,s).raw(i);return e}function Po(e,t,n,r){var o;switch(r.fieldKind){case"scalar":case"enum":it(e,n.desc.typeName,r.name,(o=r.scalar)!==null&&o!==void 0?o:m.INT32,r.number,n.get(r));break;case"list":xa(e,t,r,n.get(r));break;case"message":jo(e,t,r,n.get(r));break;case"map":for(const[s,i]of n.get(r))Ka(e,t,r,s,i);break}}function it(e,t,n,r,o,s){Qo(e.tag(o,La(r)),t,n,r,s)}function jo(e,t,n,r){n.delimitedEncoding?st(e.tag(n.number,F.StartGroup),t,r).tag(n.number,F.EndGroup):st(e.tag(n.number,F.LengthDelimited).fork(),t,r).join()}function xa(e,t,n,r){var o;if(n.listKind=="message"){for(const i of r)jo(e,t,n,i);return}const s=(o=n.scalar)!==null&&o!==void 0?o:m.INT32;if(n.packed){if(!r.size)return;e.tag(n.number,F.LengthDelimited).fork();for(const i of r)Qo(e,n.parent.typeName,n.name,s,i);e.join();return}for(const i of r)it(e,n.parent.typeName,n.name,s,n.number,i)}function Ka(e,t,n,r,o){var s;switch(e.tag(n.number,F.LengthDelimited).fork(),it(e,n.parent.typeName,n.name,n.mapKey,1,r),n.mapKind){case"scalar":case"enum":it(e,n.parent.typeName,n.name,(s=n.scalar)!==null&&s!==void 0?s:m.INT32,2,o);break;case"message":st(e.tag(2,F.LengthDelimited).fork(),t,o).join();break}e.join()}function Qo(e,t,n,r,o){try{switch(r){case m.STRING:e.string(o);break;case m.BOOL:e.bool(o);break;case m.DOUBLE:e.double(o);break;case m.FLOAT:e.float(o);break;case m.INT32:e.int32(o);break;case m.INT64:e.int64(o);break;case m.UINT64:e.uint64(o);break;case m.FIXED64:e.fixed64(o);break;case m.BYTES:e.bytes(o);break;case m.FIXED32:e.fixed32(o);break;case m.SFIXED32:e.sfixed32(o);break;case m.SFIXED64:e.sfixed64(o);break;case m.SINT64:e.sint64(o);break;case m.UINT32:e.uint32(o);break;case m.SINT32:e.sint32(o);break}}catch(s){throw s instanceof Error?new Error(`cannot encode field ${t}.${n} to binary: ${s.message}`):s}}function La(e){switch(e){case m.BYTES:case m.STRING:return F.LengthDelimited;case m.DOUBLE:case m.FIXED64:case m.SFIXED64:return F.Bit64;case m.FIXED32:case m.SFIXED32:case m.FLOAT:return F.Bit32;default:return F.Varint}}function $a(e,t,n){let r=!1;return n||(n=Q(za),r=!0),n.value=Mo(e,t),n.typeUrl=ja(t.$typeName),r?n:void 0}function Ma(e,t){if(e.typeUrl==="")return!1;const n=typeof t=="string"?t:t.typeName,r=Ho(e.typeUrl);return n===r}function Pa(e,t){if(e.typeUrl==="")return;const n=t.kind=="message"?t:t.getMessage(Ho(e.typeUrl));if(!(!n||!Ma(e,n)))return Et(n,e.value)}function ja(e){return`type.googleapis.com/${e}`}function Ho(e){const t=e.lastIndexOf("/"),n=t>=0?e.substring(t+1):e;if(!n.length)throw new Error(`invalid type url: ${e}`);return n}const _n=ge("Chxnb29nbGUvcHJvdG9idWYvc3RydWN0LnByb3RvEg9nb29nbGUucHJvdG9idWYihAEKBlN0cnVjdBIzCgZmaWVsZHMYASADKAsyIy5nb29nbGUucHJvdG9idWYuU3RydWN0LkZpZWxkc0VudHJ5GkUKC0ZpZWxkc0VudHJ5EgsKA2tleRgBIAEoCRIlCgV2YWx1ZRgCIAEoCzIWLmdvb2dsZS5wcm90b2J1Zi5WYWx1ZToCOAEi6gEKBVZhbHVlEjAKCm51bGxfdmFsdWUYASABKA4yGi5nb29nbGUucHJvdG9idWYuTnVsbFZhbHVlSAASFgoMbnVtYmVyX3ZhbHVlGAIgASgBSAASFgoMc3RyaW5nX3ZhbHVlGAMgASgJSAASFAoKYm9vbF92YWx1ZRgEIAEoCEgAEi8KDHN0cnVjdF92YWx1ZRgFIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3RIABIwCgpsaXN0X3ZhbHVlGAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLkxpc3RWYWx1ZUgAQgYKBGtpbmQiMwoJTGlzdFZhbHVlEiYKBnZhbHVlcxgBIAMoCzIWLmdvb2dsZS5wcm90b2J1Zi5WYWx1ZSobCglOdWxsVmFsdWUSDgoKTlVMTF9WQUxVRRAAQn8KE2NvbS5nb29nbGUucHJvdG9idWZCC1N0cnVjdFByb3RvUAFaL2dvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL3N0cnVjdHBi+AEBogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM"),Qa=Ke(_n,0),qo=Ke(_n,1),Ha=Ke(_n,2);var Lt;(function(e){e[e.NULL_VALUE=0]="NULL_VALUE"})(Lt||(Lt={}));function qa(e,t){es(t,e);const n=tc(e.$unknown,t),[r,o,s]=At(t);for(const i of n)$o(r,new hn(i.data),o,i.wireType,{readUnknownFields:!0});return s()}function ec(e,t,n){var r;es(t,e);const o=((r=e.$unknown)!==null&&r!==void 0?r:[]).filter(u=>u.no!==t.number),[s,i]=At(t,n),a=new wo;Po(a,{writeUnknownFields:!0},s,i);const c=new hn(a.finish());for(;c.pos<c.len;){const[u,l]=c.tag(),d=c.skip(l,u);o.push({no:u,wireType:l,data:d})}e.$unknown=o}function tc(e,t){if(e===void 0)return[];if(t.fieldKind==="enum"||t.fieldKind==="scalar"){for(let n=e.length-1;n>=0;--n)if(e[n].no==t.number)return[e[n]];return[]}return e.filter(n=>n.no===t.number)}function At(e,t){const n=e.typeName,r=Object.assign(Object.assign({},e),{kind:"field",parent:e.extendee,localName:n}),o=Object.assign(Object.assign({},e.extendee),{fields:[r],members:[r],oneofs:[]}),s=Q(o,t!==void 0?{[n]:t}:void 0);return[H(o,s),r,()=>{const i=s[n];if(i===void 0){const a=e.message;return xe(a)?Se(a.fields[0].scalar,a.fields[0].longAsString):Q(a)}return i}]}function es(e,t){if(e.extendee.typeName!=t.$typeName)throw new Error(`extension ${e.typeName} can only be applied to message ${e.extendee.typeName}`)}const nc=3,rc=2,_r={alwaysEmitImplicit:!1,enumAsInteger:!1,useProtoFieldName:!1};function oc(e){return e?Object.assign(Object.assign({},_r),e):_r}function sc(e,t,n){return Le(H(e,t),oc(n))}function ic(e,t,n){var r;const o=sc(e,t,n);return JSON.stringify(o,null,(r=n==null?void 0:n.prettySpaces)!==null&&r!==void 0?r:0)}function Le(e,t){var n;const r=lc(e,t);if(r!==void 0)return r;const o={};for(const s of e.sortedFields){if(!e.isSet(s)){if(s.presence==nc)throw new Error(`cannot encode ${s} to JSON: required field not set`);if(!t.alwaysEmitImplicit||s.presence!==rc)continue}const i=Zr(s,e.get(s),t);i!==void 0&&(o[uc(s,t)]=i)}if(t.registry){const s=new Set;for(const{no:i}of(n=e.getUnknown())!==null&&n!==void 0?n:[])if(!s.has(i)){s.add(i);const a=t.registry.getExtensionFor(e.desc,i);if(!a)continue;const c=qa(e.message,a),[u,l]=At(a,c),d=Zr(l,u.get(l),t);d!==void 0&&(o[a.jsonName]=d)}}return o}function Zr(e,t,n){switch(e.fieldKind){case"scalar":return yt(e,t);case"message":return Le(t,n);case"enum":return Zn(e.enum,t,n.enumAsInteger);case"list":return cc(t,n);case"map":return ac(t,n)}}function ac(e,t){const n=e.field(),r={};switch(n.mapKind){case"scalar":for(const[o,s]of e)r[o]=yt(n,s);break;case"message":for(const[o,s]of e)r[o]=Le(s,t);break;case"enum":for(const[o,s]of e)r[o]=Zn(n.enum,s,t.enumAsInteger);break}return t.alwaysEmitImplicit||e.size>0?r:void 0}function cc(e,t){const n=e.field(),r=[];switch(n.listKind){case"scalar":for(const o of e)r.push(yt(n,o));break;case"enum":for(const o of e)r.push(Zn(n.enum,o,t.enumAsInteger));break;case"message":for(const o of e)r.push(Le(o,t));break}return t.alwaysEmitImplicit||r.length>0?r:void 0}function Zn(e,t,n){var r;if(typeof t!="number")throw new Error(`cannot encode ${e} to JSON: expected number, got ${O(t)}`);if(e.typeName=="google.protobuf.NullValue")return null;if(n)return t;const o=e.value[t];return(r=o==null?void 0:o.name)!==null&&r!==void 0?r:t}function yt(e,t){var n,r,o,s,i,a;switch(e.scalar){case m.INT32:case m.SFIXED32:case m.SINT32:case m.FIXED32:case m.UINT32:if(typeof t!="number")throw new Error(`cannot encode ${e} to JSON: ${(n=me(e,t))===null||n===void 0?void 0:n.message}`);return t;case m.FLOAT:case m.DOUBLE:if(typeof t!="number")throw new Error(`cannot encode ${e} to JSON: ${(r=me(e,t))===null||r===void 0?void 0:r.message}`);return Number.isNaN(t)?"NaN":t===Number.POSITIVE_INFINITY?"Infinity":t===Number.NEGATIVE_INFINITY?"-Infinity":t;case m.STRING:if(typeof t!="string")throw new Error(`cannot encode ${e} to JSON: ${(o=me(e,t))===null||o===void 0?void 0:o.message}`);return t;case m.BOOL:if(typeof t!="boolean")throw new Error(`cannot encode ${e} to JSON: ${(s=me(e,t))===null||s===void 0?void 0:s.message}`);return t;case m.UINT64:case m.FIXED64:case m.INT64:case m.SFIXED64:case m.SINT64:if(typeof t!="bigint"&&typeof t!="string")throw new Error(`cannot encode ${e} to JSON: ${(i=me(e,t))===null||i===void 0?void 0:i.message}`);return t.toString();case m.BYTES:if(t instanceof Uint8Array)return Uo(t);throw new Error(`cannot encode ${e} to JSON: ${(a=me(e,t))===null||a===void 0?void 0:a.message}`)}}function uc(e,t){return t.useProtoFieldName?e.name:e.jsonName}function lc(e,t){if(e.desc.typeName.startsWith("google.protobuf."))switch(e.desc.typeName){case"google.protobuf.Any":return dc(e.message,t);case"google.protobuf.Timestamp":return hc(e.message);case"google.protobuf.Duration":return fc(e.message);case"google.protobuf.FieldMask":return mc(e.message);case"google.protobuf.Struct":return ts(e.message);case"google.protobuf.Value":return Rn(e.message);case"google.protobuf.ListValue":return ns(e.message);default:if(xe(e.desc)){const n=e.desc.fields[0];return yt(n,e.get(n))}return}}function dc(e,t){if(e.typeUrl==="")return{};const{registry:n}=t;let r,o;if(n&&(r=Pa(e,n),r&&(o=n.getMessage(r.$typeName))),!o||!r)throw new Error(`cannot encode message ${e.$typeName} to JSON: "${e.typeUrl}" is not in the type registry`);let s=Le(H(o,r),t);return(o.typeName.startsWith("google.protobuf.")||s===null||Array.isArray(s)||typeof s!="object")&&(s={value:s}),s["@type"]=e.typeUrl,s}function fc(e){const t=Number(e.seconds),n=e.nanos;if(t>315576e6||t<-315576e6)throw new Error(`cannot encode message ${e.$typeName} to JSON: value out of range`);if(t>0&&n<0||t<0&&n>0)throw new Error(`cannot encode message ${e.$typeName} to JSON: nanos sign must match seconds sign`);let r=e.seconds.toString();if(n!==0){let o=Math.abs(n).toString();o="0".repeat(9-o.length)+o,o.substring(3)==="000000"?o=o.substring(0,3):o.substring(6)==="000"&&(o=o.substring(0,6)),r+="."+o,n<0&&t==0&&(r="-"+r)}return r+"s"}function mc(e){return e.paths.map(t=>{if(Oo(_e(t))!==t)throw new Error(`cannot encode message ${e.$typeName} to JSON: lowerCamelCase of path name "${t}" is irreversible`);return _e(t)}).join(",")}function ts(e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=Rn(r);return t}function Rn(e){switch(e.kind.case){case"nullValue":return null;case"numberValue":if(!Number.isFinite(e.kind.value))throw new Error(`${e.$typeName} cannot be NaN or Infinity`);return e.kind.value;case"boolValue":return e.kind.value;case"stringValue":return e.kind.value;case"structValue":return ts(e.kind.value);case"listValue":return ns(e.kind.value);default:throw new Error(`${e.$typeName} must have a value`)}}function ns(e){return e.values.map(Rn)}function hc(e){const t=Number(e.seconds)*1e3;if(t<Date.parse("0001-01-01T00:00:00Z")||t>Date.parse("9999-12-31T23:59:59Z"))throw new Error(`cannot encode message ${e.$typeName} to JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive`);if(e.nanos<0)throw new Error(`cannot encode message ${e.$typeName} to JSON: nanos must not be negative`);if(e.nanos>999999999)throw new Error(`cannot encode message ${e.$typeName} to JSON: nanos must not be greater than 99999999`);let n="Z";if(e.nanos>0){const r=(e.nanos+1e9).toString().substring(1);r.substring(3)==="000000"?n="."+r.substring(0,3)+"Z":r.substring(6)==="000"?n="."+r.substring(0,6)+"Z":n="."+r+"Z"}return new Date(t).toISOString().replace(".000Z",n)}const Rr={ignoreUnknownFields:!1};function gc(e){return e?Object.assign(Object.assign({},Rr),e):Rr}function pc(e,t,n){return rs(e,_c(t,e.typeName),n)}function rs(e,t,n){const r=H(e);try{We(r,t,gc(n))}catch(o){throw ji(o)?new Error(`cannot decode ${o.field()} from JSON: ${o.message}`,{cause:o}):o}return r.message}const Yt=new WeakMap;function bc(e,t){var n;if(!Yt.has(e)){const r=new Map;for(const o of e.fields)r.set(o.name,o).set(o.jsonName,o);Yt.set(e,r)}return(n=Yt.get(e))===null||n===void 0?void 0:n.get(t)}function We(e,t,n){var r;if(Zc(e,t,n))return;if(t==null||Array.isArray(t)||typeof t!="object")throw new Error(`cannot decode ${e.desc} from JSON: ${O(t)}`);const o=new Map;for(const[s,i]of Object.entries(t)){const a=bc(e.desc,s);if(a){if(a.oneof){if(i===null&&a.fieldKind=="scalar")continue;const c=o.get(a.oneof);if(c!==void 0)throw new K(a.oneof,`oneof set multiple times by ${c.name} and ${a.name}`);o.set(a.oneof,a)}wr(e,a,i,n)}else{let c;if(s.startsWith("[")&&s.endsWith("]")&&(c=(r=n.registry)===null||r===void 0?void 0:r.getExtension(s.substring(1,s.length-1)))&&c.extendee.typeName===e.desc.typeName){const[u,l,d]=At(c);wr(u,l,i,n),ec(e.message,c,d())}if(!c&&!n.ignoreUnknownFields)throw new Error(`cannot decode ${e.desc} from JSON: key "${s}" is unknown`)}}}function wr(e,t,n,r){switch(t.fieldKind){case"scalar":Ic(e,t,n);break;case"enum":Nc(e,t,n,r);break;case"message":yc(e,t,n,r);break;case"list":Ac(e.get(t),n,r);break;case"map":Ec(e.get(t),n,r);break}}function os(e,t,n){if(e.scalar&&t!==null)return wn(e,t);if(e.message&&!at(e,t)){const r=H(e.message);return We(r,t,n),r}if(e.enum&&!at(e,t))return ss(e.enum,t,n.ignoreUnknownFields);throw new K(e,`${e.fieldKind==="list"?"list item":"map value"} must not be null`)}function Ec(e,t,n){if(t===null)return;const r=e.field();if(typeof t!="object"||Array.isArray(t))throw new K(r,"expected object, got "+O(t));for(const[o,s]of Object.entries(t)){const i=Sc(r.mapKey,o),a=os(r,s,n);a!==Nt&&e.set(i,a)}}function Ac(e,t,n){if(t===null)return;const r=e.field();if(!Array.isArray(t))throw new K(r,"expected Array, got "+O(t));for(const o of t){const s=os(r,o,n);s!==Nt&&e.add(s)}}function yc(e,t,n,r){if(at(t,n)){e.clear(t);return}const o=e.isSet(t)?e.get(t):H(t.message);We(o,n,r),e.set(t,o)}function Nc(e,t,n,r){if(at(t,n)){e.clear(t);return}const o=ss(t.enum,n,r.ignoreUnknownFields);o!==Nt&&e.set(t,o)}function Ic(e,t,n){n===null?e.clear(t):e.set(t,wn(t,n))}function at(e,t){var n,r;return t===null&&((n=e.message)===null||n===void 0?void 0:n.typeName)!="google.protobuf.Value"&&((r=e.enum)===null||r===void 0?void 0:r.typeName)!="google.protobuf.NullValue"}const Nt=Symbol();function ss(e,t,n){if(t===null)return e.values[0].number;switch(typeof t){case"number":if(Number.isInteger(t))return t;break;case"string":const r=e.values.find(o=>o.name===t);if(r!==void 0)return r.number;if(n)return Nt;break}throw new Error(`cannot decode ${e} from JSON: ${O(t)}`)}function wn(e,t){switch(e.scalar){case m.DOUBLE:case m.FLOAT:if(t==="NaN")return NaN;if(t==="Infinity")return Number.POSITIVE_INFINITY;if(t==="-Infinity")return Number.NEGATIVE_INFINITY;if(typeof t=="number"){if(Number.isNaN(t))throw new K(e,"unexpected NaN number");if(!Number.isFinite(t))throw new K(e,"unexpected infinite number");break}if(typeof t=="string"){if(t===""||t.trim().length!==t.length)break;const n=Number(t);if(!Number.isFinite(n))break;return n}break;case m.INT32:case m.FIXED32:case m.SFIXED32:case m.SINT32:case m.UINT32:return is(t);case m.BYTES:if(typeof t=="string"){if(t==="")return new Uint8Array(0);try{return yn(t)}catch(n){const r=n instanceof Error?n.message:String(n);throw new K(e,r)}}break}return t}function Sc(e,t){switch(e){case m.BOOL:switch(t){case"true":return!0;case"false":return!1}return t;case m.INT32:case m.FIXED32:case m.UINT32:case m.SFIXED32:case m.SINT32:return is(t);default:return t}}function is(e){if(typeof e=="string"){if(e===""||e.trim().length!==e.length)return e;const t=Number(e);return Number.isNaN(t)?e:t}return e}function _c(e,t){try{return JSON.parse(e)}catch(n){const r=n instanceof Error?n.message:String(n);throw new Error(`cannot decode message ${t} from JSON: ${r}`,{cause:n})}}function Zc(e,t,n){if(!e.desc.typeName.startsWith("google.protobuf."))return!1;switch(e.desc.typeName){case"google.protobuf.Any":return Rc(e.message,t,n),!0;case"google.protobuf.Timestamp":return wc(e.message,t),!0;case"google.protobuf.Duration":return vc(e.message,t),!0;case"google.protobuf.FieldMask":return Vc(e.message,t),!0;case"google.protobuf.Struct":return as(e.message,t),!0;case"google.protobuf.Value":return vn(e.message,t),!0;case"google.protobuf.ListValue":return cs(e.message,t),!0;default:if(xe(e.desc)){const r=e.desc.fields[0];return t===null?e.clear(r):e.set(r,wn(r,t)),!0}return!1}}function Rc(e,t,n){var r;if(t===null||Array.isArray(t)||typeof t!="object")throw new Error(`cannot decode message ${e.$typeName} from JSON: expected object but got ${O(t)}`);if(Object.keys(t).length==0)return;const o=t["@type"];if(typeof o!="string"||o=="")throw new Error(`cannot decode message ${e.$typeName} from JSON: "@type" is empty`);const s=o.includes("/")?o.substring(o.lastIndexOf("/")+1):o;if(!s.length)throw new Error(`cannot decode message ${e.$typeName} from JSON: "@type" is invalid`);const i=(r=n.registry)===null||r===void 0?void 0:r.getMessage(s);if(!i)throw new Error(`cannot decode message ${e.$typeName} from JSON: ${o} is not in the type registry`);const a=H(i);if(s.startsWith("google.protobuf.")&&Object.prototype.hasOwnProperty.call(t,"value")){const c=t.value;We(a,c,n)}else{const c=Object.assign({},t);delete c["@type"],We(a,c,n)}$a(a.desc,a.message,e)}function wc(e,t){if(typeof t!="string")throw new Error(`cannot decode message ${e.$typeName} from JSON: ${O(t)}`);const n=t.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:\.([0-9]{1,9}))?(?:Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!n)throw new Error(`cannot decode message ${e.$typeName} from JSON: invalid RFC 3339 string`);const r=Date.parse(n[1]+"-"+n[2]+"-"+n[3]+"T"+n[4]+":"+n[5]+":"+n[6]+(n[8]?n[8]:"Z"));if(Number.isNaN(r))throw new Error(`cannot decode message ${e.$typeName} from JSON: invalid RFC 3339 string`);if(r<Date.parse("0001-01-01T00:00:00Z")||r>Date.parse("9999-12-31T23:59:59Z"))throw new Error(`cannot decode message ${e.$typeName} from JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive`);e.seconds=V.parse(r/1e3),e.nanos=0,n[7]&&(e.nanos=parseInt("1"+n[7]+"0".repeat(9-n[7].length))-1e9)}function vc(e,t){if(typeof t!="string")throw new Error(`cannot decode message ${e.$typeName} from JSON: ${O(t)}`);const n=t.match(/^(-?[0-9]+)(?:\.([0-9]+))?s/);if(n===null)throw new Error(`cannot decode message ${e.$typeName} from JSON: ${O(t)}`);const r=Number(n[1]);if(r>315576e6||r<-315576e6)throw new Error(`cannot decode message ${e.$typeName} from JSON: ${O(t)}`);if(e.seconds=V.parse(r),typeof n[2]!="string")return;const o=n[2]+"0".repeat(9-n[2].length);e.nanos=parseInt(o),(r<0||Object.is(r,-0))&&(e.nanos=-e.nanos)}function Vc(e,t){if(typeof t!="string")throw new Error(`cannot decode message ${e.$typeName} from JSON: ${O(t)}`);t!==""&&(e.paths=t.split(",").map(n=>{if(n.includes("_"))throw new Error(`cannot decode message ${e.$typeName} from JSON: path names must be lowerCamelCase`);return Oo(n)}))}function as(e,t){if(typeof t!="object"||t==null||Array.isArray(t))throw new Error(`cannot decode message ${e.$typeName} from JSON ${O(t)}`);for(const[n,r]of Object.entries(t)){const o=Q(qo);vn(o,r),e.fields[n]=o}}function vn(e,t){switch(typeof t){case"number":e.kind={case:"numberValue",value:t};break;case"string":e.kind={case:"stringValue",value:t};break;case"boolean":e.kind={case:"boolValue",value:t};break;case"object":if(t===null)e.kind={case:"nullValue",value:Lt.NULL_VALUE};else if(Array.isArray(t)){const n=Q(Ha);cs(n,t),e.kind={case:"listValue",value:n}}else{const n=Q(Qa);as(n,t),e.kind={case:"structValue",value:n}}break;default:throw new Error(`cannot decode message ${e.$typeName} from JSON ${O(t)}`)}return e}function cs(e,t){if(!Array.isArray(t))throw new Error(`cannot decode message ${e.$typeName} from JSON ${O(t)}`);for(const n of t){const r=Q(qo);vn(r,n),e.values.push(r)}}function $t(e){const t=S[e];return typeof t!="string"?e.toString():t[0].toLowerCase()+t.substring(1).replace(/[A-Z]/g,n=>"_"+n.toLowerCase())}let Qe;function kc(e){if(!Qe){Qe={};for(const t of Object.values(S))typeof t!="string"&&(Qe[$t(t)]=t)}return Qe[e]}class G extends Error{constructor(t,n=S.Unknown,r,o,s){super(Bc(t,n)),this.name="ConnectError",Object.setPrototypeOf(this,new.target.prototype),this.rawMessage=t,this.code=n,this.metadata=new Headers(r??{}),this.details=o??[],this.cause=s}static from(t,n=S.Unknown){return t instanceof G?t:t instanceof Error?t.name=="AbortError"||t.name=="TimeoutError"?new G(t.message,S.Canceled):new G(t.message,n,void 0,void 0,t):new G(String(t),n,void 0,void 0,t)}static[Symbol.hasInstance](t){return t instanceof Error?Object.getPrototypeOf(t)===G.prototype?!0:t.name==="ConnectError"&&"code"in t&&typeof t.code=="number"&&"metadata"in t&&"details"in t&&Array.isArray(t.details)&&"rawMessage"in t&&typeof t.rawMessage=="string"&&"cause"in t:!1}findDetails(t){const n=t.kind==="message"?{getMessage:o=>o===t.typeName?t:void 0}:t,r=[];for(const o of this.details){if("desc"in o){n.getMessage(o.desc.typeName)&&r.push(Q(o.desc,o.value));continue}const s=n.getMessage(o.type);if(s)try{r.push(Et(s,o.value))}catch{}}return r}}function Bc(e,t){return e.length?`[${$t(t)}] ${e}`:`[${$t(t)}]`}function Cc(...e){const t=new Headers;for(const n of e)n.forEach((r,o)=>{t.append(o,r)});return t}function Fc(e,t){const n={};for(const r of e.methods){const o=t(r);o!=null&&(n[r.localName]=o)}return n}const vr=1;function Gc(e,t,n=!1){if(t>e){let r=`message size is larger than configured readMaxBytes ${e}`;throw n&&(r=`message size ${t} is larger than configured readMaxBytes ${e}`),new G(r,S.ResourceExhausted)}}function Tc(e){return new Yc(e)}class Yc{constructor(t){this.readMaxBytes=t,this.header=new Uint8Array(5),this.headerView=new DataView(this.header.buffer),this.buf=[]}get byteLength(){return this.buf.reduce((t,n)=>t+n.byteLength,0)}decode(t){this.buf.push(t);const n=[];for(;;){let r=this.pop();if(!r)break;n.push(r)}return n}pop(){if(!(!this.env&&(this.env=this.head(),!this.env))&&this.cons(this.env.data)){const t=this.env;return this.env=void 0,t}}head(){if(!this.cons(this.header))return;const t=this.headerView.getUint8(0),n=this.headerView.getUint32(1);return Gc(this.readMaxBytes,n,!0),{flags:t,data:new Uint8Array(n)}}cons(t){const n=t.byteLength;if(this.byteLength<n)return!1;let r=0;for(;r<n;){const o=this.buf.shift();o.byteLength>n-r?(t.set(o.subarray(0,n-r),r),this.buf.unshift(o.subarray(n-r)),r+=n-r):(t.set(o,r),r+=o.byteLength)}return!0}}function Uc(e){let t;const n=Tc(4294967295);return new ReadableStream({start(){t=e.getReader()},async pull(r){let o=!1;for(;!o;){const s=await t.read();if(s.done)n.byteLength>0&&r.error(new G("protocol error: incomplete envelope",S.InvalidArgument)),r.close();else for(const i of n.decode(s.value))r.enqueue(i),o=!0}}})}function Wc(e,t){const n=new Uint8Array(t.length+5);n.set(t,5);const r=new DataView(n.buffer,n.byteOffset,n.byteLength);return r.setUint8(0,e),r.setUint32(1,t.length),n}var Oc=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=e[s]&&function(i){return new Promise(function(a,c){i=e[s](i),o(a,c,i.done,i.value)})}}function o(s,i,a,c){Promise.resolve(c).then(function(u){s({value:u,done:a})},i)}},Oe=function(e){return this instanceof Oe?(this.v=e,this):new Oe(e)},Xc=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,s=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",i),o[Symbol.asyncIterator]=function(){return this},o;function i(f){return function(p){return Promise.resolve(p).then(f,d)}}function a(f,p){r[f]&&(o[f]=function(b){return new Promise(function(E,_){s.push([f,b,E,_])>1||c(f,b)})},p&&(o[f]=p(o[f])))}function c(f,p){try{u(r[f](p))}catch(b){g(s[0][3],b)}}function u(f){f.value instanceof Oe?Promise.resolve(f.value.v).then(l,d):g(s[0][2],f)}function l(f){c("next",f)}function d(f){c("throw",f)}function g(f,p){f(p),s.shift(),s.length&&c(s[0][0],s[0][1])}},zc=function(e){var t,n;return t={},r("next"),r("throw",function(o){throw o}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(o,s){t[o]=e[o]?function(i){return(n=!n)?{value:Oe(e[o](i)),done:!1}:s?s(i):i}:s}};function Jc(e){return Xc(this,arguments,function*(){yield Oe(yield*zc(Oc(e)))})}var us=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=e[s]&&function(i){return new Promise(function(a,c){i=e[s](i),o(a,c,i.done,i.value)})}}function o(s,i,a,c){Promise.resolve(c).then(function(u){s({value:u,done:a})},i)}},we=function(e){return this instanceof we?(this.v=e,this):new we(e)},Dc=function(e){var t,n;return t={},r("next"),r("throw",function(o){throw o}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(o,s){t[o]=e[o]?function(i){return(n=!n)?{value:we(e[o](i)),done:!1}:s?s(i):i}:s}},xc=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,s=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",i),o[Symbol.asyncIterator]=function(){return this},o;function i(f){return function(p){return Promise.resolve(p).then(f,d)}}function a(f,p){r[f]&&(o[f]=function(b){return new Promise(function(E,_){s.push([f,b,E,_])>1||c(f,b)})},p&&(o[f]=p(o[f])))}function c(f,p){try{u(r[f](p))}catch(b){g(s[0][3],b)}}function u(f){f.value instanceof we?Promise.resolve(f.value.v).then(l,d):g(s[0][2],f)}function l(f){c("next",f)}function d(f){c("throw",f)}function g(f,p){f(p),s.shift(),s.length&&c(s[0][0],s[0][1])}};function dg(e,t){return Fc(e,n=>{switch(n.methodKind){case"unary":return Kc(t,n);case"server_streaming":return Lc(t,n);case"client_streaming":return $c(t,n);case"bidi_streaming":return Mc(t,n);default:return null}})}function Kc(e,t){return async(n,r)=>{var o,s;const i=await e.unary(t,r==null?void 0:r.signal,r==null?void 0:r.timeoutMs,r==null?void 0:r.headers,n,r==null?void 0:r.contextValues);return(o=r==null?void 0:r.onHeader)===null||o===void 0||o.call(r,i.header),(s=r==null?void 0:r.onTrailer)===null||s===void 0||s.call(r,i.trailer),i.message}}function Lc(e,t){return(n,r)=>ls(e.stream(t,r==null?void 0:r.signal,r==null?void 0:r.timeoutMs,r==null?void 0:r.headers,Jc([n]),r==null?void 0:r.contextValues),r)}function $c(e,t){return async(n,r)=>{var o,s,i,a,c,u;const l=await e.stream(t,r==null?void 0:r.signal,r==null?void 0:r.timeoutMs,r==null?void 0:r.headers,n,r==null?void 0:r.contextValues);(c=r==null?void 0:r.onHeader)===null||c===void 0||c.call(r,l.header);let d,g=0;try{for(var f=!0,p=us(l.message),b;b=await p.next(),o=b.done,!o;f=!0)a=b.value,f=!1,d=a,g++}catch(E){s={error:E}}finally{try{!f&&!o&&(i=p.return)&&await i.call(p)}finally{if(s)throw s.error}}if(!d)throw new G("protocol error: missing response message",S.Unimplemented);if(g>1)throw new G("protocol error: received extra messages for client streaming method",S.Unimplemented);return(u=r==null?void 0:r.onTrailer)===null||u===void 0||u.call(r,l.trailer),d}}function Mc(e,t){return(n,r)=>ls(e.stream(t,r==null?void 0:r.signal,r==null?void 0:r.timeoutMs,r==null?void 0:r.headers,n,r==null?void 0:r.contextValues),r)}function ls(e,t){const n=(function(){return xc(this,arguments,function*(){var r,o;const s=yield we(e);(r=t==null?void 0:t.onHeader)===null||r===void 0||r.call(t,s.header),yield we(yield*Dc(us(s.message))),(o=t==null?void 0:t.onTrailer)===null||o===void 0||o.call(t,s.trailer)})})()[Symbol.asyncIterator]();return{[Symbol.asyncIterator]:()=>({next:()=>n.next()})}}function Pc(...e){const t=new AbortController,n=e.filter(o=>o!==void 0).concat(t.signal);for(const o of n){if(o.aborted){r.apply(o);break}o.addEventListener("abort",r)}function r(){t.signal.aborted||t.abort(ds(this));for(const o of n)o.removeEventListener("abort",r)}return t}function jc(e){const t=new AbortController,n=()=>{t.abort(new G("the operation timed out",S.DeadlineExceeded))};let r;return e!==void 0&&(e<=0?n():r=setTimeout(n,e)),{signal:t.signal,cleanup:()=>clearTimeout(r)}}function ds(e){if(!e.aborted)return;if(e.reason!==void 0)return e.reason;const t=new Error("This operation was aborted");return t.name="AbortError",t}function Vr(){return{get(e){return e.id in this?this[e.id]:e.defaultValue},set(e,t){return this[e.id]=t,this},delete(e){return delete this[e.id],this}}}function It(e,t,...n){if(n.length>0)throw new Error;return e.services[t]}function kr(e,t){return e.toString().replace(/\/?$/,`/${t.parent.typeName}/${t.name}`)}function fs(e,t){return Q(e,t)}function Qc(e,t){function n(r){return r.done===!0?r:{done:r.done,value:fs(e,r.value)}}return{[Symbol.asyncIterator](){const r=t[Symbol.asyncIterator](),o={next:()=>r.next().then(n)};return r.throw!==void 0&&(o.throw=s=>r.throw(s).then(n)),r.return!==void 0&&(o.return=s=>r.return(s).then(n)),o}}}function ms(e,t){if(!t)return e;for(const n of t.concat().reverse())e=n(e);return e}function hs(e){var t;const n=Object.assign({},e);return(t=n.ignoreUnknownFields)!==null&&t!==void 0||(n.ignoreUnknownFields=!0),n}function Br(e,t,n,r){const o=t?Cr(e.input,r):Fr(e.input,n);return{parse:(t?Cr(e.output,r):Fr(e.output,n)).parse,serialize:o.serialize}}function Cr(e,t){return{parse(n){try{return Et(e,n,t)}catch(r){const o=r instanceof Error?r.message:String(r);throw new G(`parse binary: ${o}`,S.Internal)}},serialize(n){try{return Mo(e,n,t)}catch(r){const o=r instanceof Error?r.message:String(r);throw new G(`serialize binary: ${o}`,S.Internal)}}}}function Fr(e,t){var n,r;const o=(n=t==null?void 0:t.textEncoder)!==null&&n!==void 0?n:new TextEncoder,s=(r=t==null?void 0:t.textDecoder)!==null&&r!==void 0?r:new TextDecoder,i=hs(t);return{parse(a){try{const c=s.decode(a);return pc(e,c,i)}catch(c){throw G.from(c,S.InvalidArgument)}},serialize(a){try{const c=ic(e,a,i);return o.encode(c)}catch(c){throw G.from(c,S.Internal)}}}}const Hc=/^application\/(connect\+)?(?:(json)(?:; ?charset=utf-?8)?|(proto))$/i,qc="application/proto",eu="application/json",tu="application/connect+proto",nu="application/connect+json";function ru(e){const t=e==null?void 0:e.match(Hc);if(!t)return;const n=!!t[1],r=!!t[3];return{stream:n,binary:r}}function gs(e,t,n){var r;if(t&&new Headers(t).forEach((a,c)=>n.metadata.append(c,a)),typeof e!="object"||e==null||Array.isArray(e))throw n;let o=n.code;"code"in e&&typeof e.code=="string"&&(o=(r=kc(e.code))!==null&&r!==void 0?r:o);const s=e.message;if(s!=null&&typeof s!="string")throw n;const i=new G(s??"",o,t);if("details"in e&&Array.isArray(e.details))for(const a of e.details){if(a===null||typeof a!="object"||Array.isArray(a)||typeof a.type!="string"||typeof a.value!="string")throw n;try{i.details.push({type:a.type,value:yn(a.value),debug:a.debug})}catch{throw n}}return i}const Gr=2;function ou(e){const t=new G("invalid end stream",S.Unknown);let n;try{n=JSON.parse(typeof e=="string"?e:new TextDecoder().decode(e))}catch{throw t}if(typeof n!="object"||n==null||Array.isArray(n))throw t;const r=new Headers;if("metadata"in n){if(typeof n.metadata!="object"||n.metadata==null||Array.isArray(n.metadata))throw t;for(const[s,i]of Object.entries(n.metadata)){if(!Array.isArray(i)||i.some(a=>typeof a!="string"))throw t;for(const a of i)r.append(s,a)}}const o="error"in n&&n.error!=null?gs(n.error,r,t):void 0;return{metadata:r,error:o}}const ct="Content-Type",su="Content-Length",Tr="Content-Encoding",iu="Accept-Encoding",au="Connect-Timeout-Ms",ps="Connect-Protocol-Version",cu="User-Agent";function uu(e){switch(e){case 400:return S.Internal;case 401:return S.Unauthenticated;case 403:return S.PermissionDenied;case 404:return S.Unimplemented;case 429:return S.Unavailable;case 502:return S.Unavailable;case 503:return S.Unavailable;case 504:return S.Unavailable;default:return S.Unknown}}function Yr(e){const t=new Headers,n=new Headers;return e.forEach((r,o)=>{o.toLowerCase().startsWith("trailer-")?n.append(o.substring(8),r):t.append(o,r)}),[t,n]}const bs="1";function Ur(e,t,n,r,o){const s=new Headers(r??{});return n!==void 0&&s.set(au,`${n}`),s.set(ct,e=="unary"?t?qc:eu:t?tu:nu),s.set(ps,bs),s.has(cu),s}function Wr(e,t,n,r){const o=r.get(ct),s=ru(o);if(n!==200){const a=new G(`HTTP ${n}`,uu(n),r);if(e=="unary"&&s&&!s.binary)return{isUnaryError:!0,unaryError:a};throw a}const i={binary:t,stream:e!=="unary"};if((s==null?void 0:s.binary)!==i.binary||s.stream!==i.stream)throw new G(`unsupported content type ${o}`,s===void 0?S.Unknown:S.Internal,r);return{isUnaryError:!1}}const Or="application/";function lu(e,t){return t?Uo(e,"url"):encodeURIComponent(new TextDecoder().decode(e))}function du(e,t,n){let r=`?connect=v${bs}`;const o=e.header.get(ct);(o==null?void 0:o.indexOf(Or))===0&&(r+="&encoding="+encodeURIComponent(o.slice(Or.length)));const s=e.header.get(Tr);s!==null&&s!=="identity"&&(r+="&compression="+encodeURIComponent(s),n=!0),n&&(r+="&base64=1"),r+="&message="+lu(t,n);const i=e.url+r,a=new Headers(e.header);for(const c of[ps,ct,su,Tr,iu])a.delete(c);return Object.assign(Object.assign({},e),{requestMethod:"GET",url:i,header:a})}function fu(e){const t=ms(e.next,e.interceptors),[n,r,o]=Es(e),s=Object.assign(Object.assign({},e.req),{message:fs(e.req.method.input,e.req.message),signal:n});return t(s).then(i=>(o(),i),r)}function mu(e){const t=ms(e.next,e.interceptors),[n,r,o]=Es(e),s=Object.assign(Object.assign({},e.req),{message:Qc(e.req.method.input,e.req.message),signal:n});let i=!1;return n.addEventListener("abort",function(){var a,c;const u=e.req.message[Symbol.asyncIterator]();i||(a=u.throw)===null||a===void 0||a.call(u,this.reason).catch(()=>{}),(c=u.return)===null||c===void 0||c.call(u).catch(()=>{})}),t(s).then(a=>Object.assign(Object.assign({},a),{message:{[Symbol.asyncIterator](){const c=a.message[Symbol.asyncIterator]();return{next(){return c.next().then(u=>(u.done==!0&&(i=!0,o()),u),r)}}}}}),r)}function Es(e){const{signal:t,cleanup:n}=jc(e.timeoutMs),r=Pc(e.signal,t);return[r.signal,function(s){const i=G.from(t.aborted?ds(t):s);return r.abort(i),n(),Promise.reject(i)},function(){n(),r.abort()}]}function hu(){try{new Headers}catch{throw new Error("connect-web requires the fetch API. Are you running on an old version of Node.js? Node.js is not supported in Connect for Web - please stay tuned for Connect for Node.")}}var Xe=function(e){return this instanceof Xe?(this.v=e,this):new Xe(e)},gu=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,s=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",i),o[Symbol.asyncIterator]=function(){return this},o;function i(f){return function(p){return Promise.resolve(p).then(f,d)}}function a(f,p){r[f]&&(o[f]=function(b){return new Promise(function(E,_){s.push([f,b,E,_])>1||c(f,b)})},p&&(o[f]=p(o[f])))}function c(f,p){try{u(r[f](p))}catch(b){g(s[0][3],b)}}function u(f){f.value instanceof Xe?Promise.resolve(f.value.v).then(l,d):g(s[0][2],f)}function l(f){c("next",f)}function d(f){c("throw",f)}function g(f,p){f(p),s.shift(),s.length&&c(s[0][0],s[0][1])}};const Xr={redirect:"error"};function fg(e){var t;hu();const n=(t=e.useBinaryFormat)!==null&&t!==void 0?t:!1;return{async unary(r,o,s,i,a,c){const{serialize:u,parse:l}=Br(r,n,e.jsonOptions,e.binaryOptions);return s=s===void 0?e.defaultTimeoutMs:s<=0?void 0:s,await fu({interceptors:e.interceptors,signal:o,timeoutMs:s,req:{stream:!1,service:r.parent,method:r,requestMethod:"POST",url:kr(e.baseUrl,r),header:Ur(r.methodKind,n,s,i,!1),contextValues:c??Vr(),message:a},next:async d=>{var g;const f=e.useHttpGet===!0&&r.idempotency===Kt.NO_SIDE_EFFECTS;let p=null;f?d=du(d,u(d.message),n):p=u(d.message);const E=await((g=e.fetch)!==null&&g!==void 0?g:globalThis.fetch)(d.url,Object.assign(Object.assign({},Xr),{method:d.requestMethod,headers:d.header,signal:d.signal,body:p})),{isUnaryError:_,unaryError:N}=Wr(r.methodKind,n,E.status,E.headers);if(_)throw gs(await E.json(),Cc(...Yr(E.headers)),N);const[X,B]=Yr(E.headers);return{stream:!1,service:r.parent,method:r,header:X,message:n?l(new Uint8Array(await E.arrayBuffer())):rs(r.output,await E.json(),hs(e.jsonOptions)),trailer:B}}})},async stream(r,o,s,i,a,c){const{serialize:u,parse:l}=Br(r,n,e.jsonOptions,e.binaryOptions);function d(f,p,b,E){return gu(this,arguments,function*(){const N=Uc(f).getReader();let X=!1;for(;;){const B=yield Xe(N.read());if(B.done)break;const{flags:U,data:W}=B.value;if((U&vr)===vr)throw new G("protocol error: received unsupported compressed output",S.Internal);if((U&Gr)===Gr){X=!0;const T=ou(W);if(T.error){const z=T.error;throw b.forEach((L,$e)=>{z.metadata.append($e,L)}),z}T.metadata.forEach((z,L)=>p.set(L,z));continue}yield yield Xe(l(W))}if("throwIfAborted"in E&&E.throwIfAborted(),!X)throw"missing EndStreamResponse"})}async function g(f){if(r.methodKind!="server_streaming")throw"The fetch API does not support streaming request bodies";const p=await f[Symbol.asyncIterator]().next();if(p.done==!0)throw"missing request message";return Wc(0,u(p.value))}return s=s===void 0?e.defaultTimeoutMs:s<=0?void 0:s,await mu({interceptors:e.interceptors,timeoutMs:s,signal:o,req:{stream:!0,service:r.parent,method:r,requestMethod:"POST",url:kr(e.baseUrl,r),header:Ur(r.methodKind,n,s,i,!1),contextValues:c??Vr(),message:a},next:async f=>{var p;const E=await((p=e.fetch)!==null&&p!==void 0?p:globalThis.fetch)(f.url,Object.assign(Object.assign({},Xr),{method:f.requestMethod,headers:f.header,signal:f.signal,body:await g(f.message)}));if(Wr(r.methodKind,n,E.status,E.headers),E.body===null)throw"missing response body";const _=new Headers;return Object.assign(Object.assign({},f),{header:E.headers,trailer:_,message:d(E.body,_,E.headers,f.signal)})}})}}}const St=ge("ChtncmFja2xlL2dyYWNrbGVfdHlwZXMucHJvdG8SB2dyYWNrbGUiBwoFRW1wdHkiGwoNRW52aXJvbm1lbnRJZBIKCgJpZBgBIAEoCSIXCglTZXNzaW9uSWQSCgoCaWQYASABKAkiMAoQS2lsbEFnZW50UmVxdWVzdBIKCgJpZBgBIAEoCRIQCghncmFjZWZ1bBgCIAEoCCLXAQoLRW52aXJvbm1lbnQSCgoCaWQYASABKAkSFAoMZGlzcGxheV9uYW1lGAIgASgJEhQKDGFkYXB0ZXJfdHlwZRgDIAEoCRIWCg5hZGFwdGVyX2NvbmZpZxgEIAEoCRIUCgxib290c3RyYXBwZWQYBiABKAgSDgoGc3RhdHVzGAcgASgJEhEKCWxhc3Rfc2VlbhgIIAEoCRIQCghlbnZfaW5mbxgJIAEoCRISCgpjcmVhdGVkX2F0GAogASgJEhkKEWdpdGh1Yl9hY2NvdW50X2lkGAsgASgJIj0KD0Vudmlyb25tZW50TGlzdBIqCgxlbnZpcm9ubWVudHMYASADKAsyFC5ncmFja2xlLkVudmlyb25tZW50InYKFUFkZEVudmlyb25tZW50UmVxdWVzdBIUCgxkaXNwbGF5X25hbWUYASABKAkSFAoMYWRhcHRlcl90eXBlGAIgASgJEhYKDmFkYXB0ZXJfY29uZmlnGAMgASgJEhkKEWdpdGh1Yl9hY2NvdW50X2lkGAUgASgJIkIKDlByb3Zpc2lvbkV2ZW50Eg0KBXN0YWdlGAEgASgJEg8KB21lc3NhZ2UYAiABKAkSEAoIcHJvZ3Jlc3MYAyABKAEiOAobUHJvdmlzaW9uRW52aXJvbm1lbnRSZXF1ZXN0EgoKAmlkGAEgASgJEg0KBWZvcmNlGAIgASgIIrgBChhVcGRhdGVFbnZpcm9ubWVudFJlcXVlc3QSCgoCa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EhYKElBST1ZJREVSX1RPR0dMRV9PThACYgZwcm90bzM");var v;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.TEXT=1]="TEXT",e[e.TOOL_USE=2]="TOOL_USE",e[e.TOOL_RESULT=3]="TOOL_RESULT",e[e.ERROR=4]="ERROR",e[e.STATUS=5]="STATUS",e[e.SYSTEM=6]="SYSTEM",e[e.USER_INPUT=9]="USER_INPUT",e[e.SIGNAL=10]="SIGNAL",e[e.USAGE=11]="USAGE",e[e.WIDGET=13]="WIDGET"})(v||(v={}));var Y;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.NOT_STARTED=1]="NOT_STARTED",e[e.WORKING=3]="WORKING",e[e.PAUSED=4]="PAUSED",e[e.COMPLETE=5]="COMPLETE",e[e.FAILED=6]="FAILED"})(Y||(Y={}));var se;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.ACTIVE=1]="ACTIVE",e[e.ARCHIVED=2]="ARCHIVED"})(se||(se={}));var q;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.OFF=1]="OFF",e[e.SUBSCRIPTION=2]="SUBSCRIPTION",e[e.API_KEY=3]="API_KEY"})(q||(q={}));var ie;(function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.OFF=1]="OFF",e[e.ON=2]="ON"})(ie||(ie={}));const pu=ge("ChpncmFja2xlL2dyYWNrbGVfY29yZS5wcm90bxIHZ3JhY2tsZTKVHwoLR3JhY2tsZUNvcmUSPAoQTGlzdEVudmlyb25tZW50cxIOLmdyYWNrbGUuRW1wdHkaGC5ncmFja2xlLkVudmlyb25tZW50TGlzdBJGCg5BZGRFbnZpcm9ubWVudBIeLmdyYWNrbGUuQWRkRW52aXJvbm1lbnRSZXF1ZXN0GhQuZ3JhY2tsZS5FbnZpcm9ubWVudBI7ChFSZW1vdmVFbnZpcm9ubWVudBIWLmdyYWNrbGUuRW52aXJvbm1lbnRJZBoOLmdyYWNrbGUuRW1wd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Ob2RlUmVxdWVzdBokLmdyYWNrbGUuRXhwYW5kS25vd2xlZGdlTm9kZVJlc3BvbnNlEm8KGExpc3RSZWNlbnRLbm93bGVkZ2VOb2RlcxIoLmdyYWNrbGUuTGlzdFJlY2VudEtub3dsZWRnZU5vZGVzUmVxdWVzdBopLmdyYWNrbGUuTGlzdFJlY2VudEtub3dsZWRnZU5vZGVzUmVzcG9uc2ViBnByb3RvMw",[St]),pg=It(Au,0),bg=8,Eg="system",Ag="system",yu=new Set(["config_get_default_persona","config_set_default_persona","credential_provider_list","credential_provider_set","env_list","env_add","env_provision","env_stop","env_destroy","env_remove","env_wake","ipc_spawn","ipc_write","ipc_close","ipc_list_fds","ipc_list_streams","ipc_terminate","ipc_create_stream","ipc_attach","ipc_share_stream","knowledge_search","knowledge_get_node","logs_get","persona_list","persona_create","persona_show","persona_edit","persona_delete","session_spawn","session_resume","session_status","session_kill","session_attach","session_send_input","task_list","task_search","task_create","task_show","task_update","task_start","task_delete","task_complete","task_resume","token_list","token_set","token_delete","usage_get","get_version_status","schedule_list","schedule_create","schedule_show","schedule_update","schedule_delete","workpad_write","workpad_read","workspace_list","workspace_create","workspace_get","workspace_update","workspace_archive","escalate_to_human","escalation_list","escalation_acknowledge","show_hello_widget","component_register","component_update","component_list","component_render","component_search","component_promote","widget_show","component_show"]),yg=["task_create","task_list","task_search","task_show","task_start","task_complete","session_attach","session_send_input","persona_list","persona_show","ipc_spawn","ipc_write","ipc_close","ipc_terminate","ipc_list_fds","ipc_create_stream","ipc_attach","ipc_share_stream","knowledge_search","knowledge_get_node","logs_get","workpad_write","workpad_read","schedule_list","schedule_show","show_hello_widget","component_register","component_update","component_list","component_render","component_search","component_promote","widget_show","component_show"],Ng=["task_show","session_attach","session_send_input","persona_list","persona_show","ipc_spawn","ipc_write","ipc_close","ipc_terminate","ipc_list_fds","ipc_create_stream","ipc_attach","ipc_share_stream","knowledge_search","knowledge_get_node","logs_get","workpad_write","workpad_read"],Ig=["task_create","task_list","task_search","task_show","task_start","task_complete","session_attach","session_send_input","persona_list","persona_show","ipc_spawn","ipc_write","ipc_close","ipc_terminate","ipc_list_fds","ipc_create_stream","ipc_attach","ipc_share_stream","knowledge_search","knowledge_get_node","logs_get","workpad_write","workpad_read","schedule_list","schedule_show","show_hello_widget","component_register","component_update","component_list","component_render","component_search","component_promote","widget_show","component_show","task_update","task_delete","task_resume","session_spawn","session_kill","session_status","persona_create","schedule_create","schedule_update","schedule_delete","escalate_to_human"],Sg=[...yu];Object.assign(Object.create(null),{"":v.UNSPECIFIED,text:v.TEXT,tool_use:v.TOOL_USE,tool_result:v.TOOL_RESULT,error:v.ERROR,status:v.STATUS,system:v.SYSTEM,user_input:v.USER_INPUT,signal:v.SIGNAL,usage:v.USAGE,widget:v.WIDGET});const Nu={[v.UNSPECIFIED]:"",[v.TEXT]:"text",[v.TOOL_USE]:"tool_use",[v.TOOL_RESULT]:"tool_result",[v.ERROR]:"error",[v.STATUS]:"status",[v.SYSTEM]:"system",[v.USER_INPUT]:"user_input",[v.SIGNAL]:"signal",[v.USAGE]:"usage",[v.WIDGET]:"widget"};function _g(e){return Nu[e]??""}Object.assign(Object.create(null),{"":Y.UNSPECIFIED,not_started:Y.NOT_STARTED,working:Y.WORKING,paused:Y.PAUSED,complete:Y.COMPLETE,failed:Y.FAILED,pending:Y.NOT_STARTED,assigned:Y.NOT_STARTED,in_progress:Y.WORKING,waiting_input:Y.PAUSED,review:Y.PAUSED,done:Y.COMPLETE});const Iu={[Y.UNSPECIFIED]:"",[Y.NOT_STARTED]:"not_started",[Y.WORKING]:"working",[Y.PAUSED]:"paused",[Y.COMPLETE]:"complete",[Y.FAILED]:"failed"};function Zg(e){return Iu[e]??""}Object.assign(Object.create(null),{"":se.UNSPECIFIED,active:se.ACTIVE,archived:se.ARCHIVED});const Su={[se.UNSPECIFIED]:"",[se.ACTIVE]:"active",[se.ARCHIVED]:"archived"};function Rg(e){return Su[e]??""}Object.assign(Object.create(null),{"":q.UNSPECIFIED,off:q.OFF,subscription:q.SUBSCRIPTION,api_key:q.API_KEY});const _u={[q.UNSPECIFIED]:"",[q.OFF]:"off",[q.SUBSCRIPTION]:"subscription",[q.API_KEY]:"api_key"};function wg(e){return _u[e]??""}Object.assign(Object.create(null),{"":ie.UNSPECIFIED,off:ie.OFF,on:ie.ON});const Zu={[ie.UNSPECIFIED]:"",[ie.OFF]:"off",[ie.ON]:"on"};function vg(e){return Zu[e]??""}function oe(e){return Array.isArray?Array.isArray(e):Ns(e)==="[object Array]"}function Ru(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function wu(e){return e==null?"":Ru(e)}function ee(e){return typeof e=="string"}function As(e){return typeof e=="number"}function vu(e){return e===!0||e===!1||Vu(e)&&Ns(e)=="[object Boolean]"}function ys(e){return typeof e=="object"}function Vu(e){return ys(e)&&e!==null}function x(e){return e!=null}function Ut(e){return!e.trim().length}function Ns(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const ku="Incorrect 'index' type",Bu=e=>`Invalid value for key ${e}`,Cu=e=>`Pattern length exceeds max of ${e}.`,Fu=e=>`Missing ${e} property in key`,Gu=e=>`Property 'weight' in key '${e}' must be a positive integer`,zr=Object.prototype.hasOwnProperty;class Tu{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(r=>{let o=Is(r);this._keys.push(o),this._keyMap[o.id]=o,n+=o.weight}),this._keys.forEach(r=>{r.weight/=n})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Is(e){let t=null,n=null,r=null,o=1,s=null;if(ee(e)||oe(e))r=e,t=Jr(e),n=Mt(e);else{if(!zr.call(e,"name"))throw new Error(Fu("name"));const i=e.name;if(r=i,zr.call(e,"weight")&&(o=e.weight,o<=0))throw new Error(Gu(i));t=Jr(i),n=Mt(i),s=e.getFn}return{path:t,id:n,weight:o,src:r,getFn:s}}function Jr(e){return oe(e)?e:e.split(".")}function Mt(e){return oe(e)?e.join("."):e}function Yu(e,t){let n=[],r=!1;const o=(s,i,a)=>{if(x(s))if(!i[a])n.push(s);else{let c=i[a];const u=s[c];if(!x(u))return;if(a===i.length-1&&(ee(u)||As(u)||vu(u)))n.push(wu(u));else if(oe(u)){r=!0;for(let l=0,d=u.length;l<d;l+=1)o(u[l],i,a+1)}else i.length&&o(u,i,a+1)}};return o(e,ee(t)?t.split("."):t,0),r?n:n[0]}const Uu={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Wu={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},Ou={location:0,threshold:.6,distance:100},Xu={useExtendedSearch:!1,getFn:Yu,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var y={...Wu,...Uu,...Ou,...Xu};const zu=/[^ ]+/g;function Ju(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(o){const s=o.match(zu).length;if(n.has(s))return n.get(s);const i=1/Math.pow(s,.5*e),a=parseFloat(Math.round(i*r)/r);return n.set(s,a),a},clear(){n.clear()}}}class Vn{constructor({getFn:t=y.getFn,fieldNormWeight:n=y.fieldNormWeight}={}){this.norm=Ju(n,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((n,r)=>{this._keysMap[n.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,ee(this.docs[0])?this.docs.forEach((t,n)=>{this._addString(t,n)}):this.docs.forEach((t,n)=>{this._addObject(t,n)}),this.norm.clear())}add(t){const n=this.size();ee(t)?this._addString(t,n):this._addObject(t,n)}removeAt(t){this.records.splice(t,1);for(let n=t,r=this.size();n<r;n+=1)this.records[n].i-=1}getValueForItemAtKeyId(t,n){return t[this._keysMap[n]]}size(){return this.records.length}_addString(t,n){if(!x(t)||Ut(t))return;let r={v:t,i:n,n:this.norm.get(t)};this.records.push(r)}_addObject(t,n){let r={i:n,$:{}};this.keys.forEach((o,s)=>{let i=o.getFn?o.getFn(t):this.getFn(t,o.path);if(x(i)){if(oe(i)){let a=[];const c=[{nestedArrIndex:-1,value:i}];for(;c.length;){const{nestedArrIndex:u,value:l}=c.pop();if(x(l))if(ee(l)&&!Ut(l)){let d={v:l,i:u,n:this.norm.get(l)};a.push(d)}else oe(l)&&l.forEach((d,g)=>{c.push({nestedArrIndex:g,value:d})})}r.$[s]=a}else if(ee(i)&&!Ut(i)){let a={v:i,n:this.norm.get(i)};r.$[s]=a}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function Ss(e,t,{getFn:n=y.getFn,fieldNormWeight:r=y.fieldNormWeight}={}){const o=new Vn({getFn:n,fieldNormWeight:r});return o.setKeys(e.map(Is)),o.setSources(t),o.create(),o}function Du(e,{getFn:t=y.getFn,fieldNormWeight:n=y.fieldNormWeight}={}){const{keys:r,records:o}=e,s=new Vn({getFn:t,fieldNormWeight:n});return s.setKeys(r),s.setIndexRecords(o),s}function He(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:o=y.distance,ignoreLocation:s=y.ignoreLocation}={}){const i=t/e.length;if(s)return i;const a=Math.abs(r-n);return o?i+a/o:a?1:i}function xu(e=[],t=y.minMatchCharLength){let n=[],r=-1,o=-1,s=0;for(let i=e.length;s<i;s+=1){let a=e[s];a&&r===-1?r=s:!a&&r!==-1&&(o=s-1,o-r+1>=t&&n.push([r,o]),r=-1)}return e[s-1]&&s-r>=t&&n.push([r,s-1]),n}const he=32;function Ku(e,t,n,{location:r=y.location,distance:o=y.distance,threshold:s=y.threshold,findAllMatches:i=y.findAllMatches,minMatchCharLength:a=y.minMatchCharLength,includeMatches:c=y.includeMatches,ignoreLocation:u=y.ignoreLocation}={}){if(t.length>he)throw new Error(Cu(he));const l=t.length,d=e.length,g=Math.max(0,Math.min(r,d));let f=s,p=g;const b=a>1||c,E=b?Array(d):[];let _;for(;(_=e.indexOf(t,p))>-1;){let T=He(t,{currentLocation:_,expectedLocation:g,distance:o,ignoreLocation:u});if(f=Math.min(T,f),p=_+l,b){let z=0;for(;z<l;)E[_+z]=1,z+=1}}p=-1;let N=[],X=1,B=l+d;const U=1<<l-1;for(let T=0;T<l;T+=1){let z=0,L=B;for(;z<L;)He(t,{errors:T,currentLocation:g+L,expectedLocation:g,distance:o,ignoreLocation:u})<=f?z=L:B=L,L=Math.floor((B-z)/2+z);B=L;let $e=Math.max(1,g-L+1),vt=i?d:Math.min(g+L,d)+l,Ee=Array(vt+2);Ee[vt+1]=(1<<T)-1;for(let P=vt;P>=$e;P-=1){let Me=P-1,Wn=n[e.charAt(Me)];if(b&&(E[Me]=+!!Wn),Ee[P]=(Ee[P+1]<<1|1)&Wn,T&&(Ee[P]|=(N[P+1]|N[P])<<1|1|N[P+1]),Ee[P]&U&&(X=He(t,{errors:T,currentLocation:Me,expectedLocation:g,distance:o,ignoreLocation:u}),X<=f)){if(f=X,p=Me,p<=g)break;$e=Math.max(1,2*g-p)}}if(He(t,{errors:T+1,currentLocation:g,expectedLocation:g,distance:o,ignoreLocation:u})>f)break;N=Ee}const W={isMatch:p>=0,score:Math.max(.001,X)};if(b){const T=xu(E,a);T.length?c&&(W.indices=T):W.isMatch=!1}return W}function Lu(e){let t={};for(let n=0,r=e.length;n<r;n+=1){const o=e.charAt(n);t[o]=(t[o]||0)|1<<r-n-1}return t}const ut=String.prototype.normalize?(e=>e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,"")):(e=>e);class _s{constructor(t,{location:n=y.location,threshold:r=y.threshold,distance:o=y.distance,includeMatches:s=y.includeMatches,findAllMatches:i=y.findAllMatches,minMatchCharLength:a=y.minMatchCharLength,isCaseSensitive:c=y.isCaseSensitive,ignoreDiacritics:u=y.ignoreDiacritics,ignoreLocation:l=y.ignoreLocation}={}){if(this.options={location:n,threshold:r,distance:o,includeMatches:s,findAllMatches:i,minMatchCharLength:a,isCaseSensitive:c,ignoreDiacritics:u,ignoreLocation:l},t=c?t:t.toLowerCase(),t=u?ut(t):t,this.pattern=t,this.chunks=[],!this.pattern.length)return;const d=(f,p)=>{this.chunks.push({pattern:f,alphabet:Lu(f),startIndex:p})},g=this.pattern.length;if(g>he){let f=0;const p=g%he,b=g-p;for(;f<b;)d(this.pattern.substr(f,he),f),f+=he;if(p){const E=g-he;d(this.pattern.substr(E),E)}}else d(this.pattern,0)}searchIn(t){const{isCaseSensitive:n,ignoreDiacritics:r,includeMatches:o}=this.options;if(t=n?t:t.toLowerCase(),t=r?ut(t):t,this.pattern===t){let b={isMatch:!0,score:0};return o&&(b.indices=[[0,t.length-1]]),b}const{location:s,distance:i,threshold:a,findAllMatches:c,minMatchCharLength:u,ignoreLocation:l}=this.options;let d=[],g=0,f=!1;this.chunks.forEach(({pattern:b,alphabet:E,startIndex:_})=>{const{isMatch:N,score:X,indices:B}=Ku(t,b,E,{location:s+_,distance:i,threshold:a,findAllMatches:c,minMatchCharLength:u,includeMatches:o,ignoreLocation:l});N&&(f=!0),g+=X,N&&B&&(d=[...d,...B])});let p={isMatch:f,score:f?g/this.chunks.length:1};return f&&o&&(p.indices=d),p}}class le{constructor(t){this.pattern=t}static isMultiMatch(t){return Dr(t,this.multiRegex)}static isSingleMatch(t){return Dr(t,this.singleRegex)}search(){}}function Dr(e,t){const n=e.match(t);return n?n[1]:null}class $u extends le{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const n=t===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class Mu extends le{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const r=t.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}}class Pu extends le{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const n=t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class ju extends le{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const n=!t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class Qu extends le{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const n=t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class Hu extends le{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const n=!t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class Zs extends le{constructor(t,{location:n=y.location,threshold:r=y.threshold,distance:o=y.distance,includeMatches:s=y.includeMatches,findAllMatches:i=y.findAllMatches,minMatchCharLength:a=y.minMatchCharLength,isCaseSensitive:c=y.isCaseSensitive,ignoreDiacritics:u=y.ignoreDiacritics,ignoreLocation:l=y.ignoreLocation}={}){super(t),this._bitapSearch=new _s(t,{location:n,threshold:r,distance:o,includeMatches:s,findAllMatches:i,minMatchCharLength:a,isCaseSensitive:c,ignoreDiacritics:u,ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class Rs extends le{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let n=0,r;const o=[],s=this.pattern.length;for(;(r=t.indexOf(this.pattern,n))>-1;)n=r+s,o.push([r,n-1]);const i=!!o.length;return{isMatch:i,score:i?0:1,indices:o}}}const Pt=[$u,Rs,Pu,ju,Hu,Qu,Mu,Zs],xr=Pt.length,qu=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,el="|";function tl(e,t={}){return e.split(el).map(n=>{let r=n.trim().split(qu).filter(s=>s&&!!s.trim()),o=[];for(let s=0,i=r.length;s<i;s+=1){const a=r[s];let c=!1,u=-1;for(;!c&&++u<xr;){const l=Pt[u];let d=l.isMultiMatch(a);d&&(o.push(new l(d,t)),c=!0)}if(!c)for(u=-1;++u<xr;){const l=Pt[u];let d=l.isSingleMatch(a);if(d){o.push(new l(d,t));break}}}return o})}const nl=new Set([Zs.type,Rs.type]);class rl{constructor(t,{isCaseSensitive:n=y.isCaseSensitive,ignoreDiacritics:r=y.ignoreDiacritics,includeMatches:o=y.includeMatches,minMatchCharLength:s=y.minMatchCharLength,ignoreLocation:i=y.ignoreLocation,findAllMatches:a=y.findAllMatches,location:c=y.location,threshold:u=y.threshold,distance:l=y.distance}={}){this.query=null,this.options={isCaseSensitive:n,ignoreDiacritics:r,includeMatches:o,minMatchCharLength:s,findAllMatches:a,ignoreLocation:i,location:c,threshold:u,distance:l},t=n?t:t.toLowerCase(),t=r?ut(t):t,this.pattern=t,this.query=tl(this.pattern,this.options)}static condition(t,n){return n.useExtendedSearch}searchIn(t){const n=this.query;if(!n)return{isMatch:!1,score:1};const{includeMatches:r,isCaseSensitive:o,ignoreDiacritics:s}=this.options;t=o?t:t.toLowerCase(),t=s?ut(t):t;let i=0,a=[],c=0;for(let u=0,l=n.length;u<l;u+=1){const d=n[u];a.length=0,i=0;for(let g=0,f=d.length;g<f;g+=1){const p=d[g],{isMatch:b,indices:E,score:_}=p.search(t);if(b){if(i+=1,c+=_,r){const N=p.constructor.type;nl.has(N)?a=[...a,...E]:a.push(E)}}else{c=0,i=0,a.length=0;break}}if(i){let g={isMatch:!0,score:c/i};return r&&(g.indices=a),g}}return{isMatch:!1,score:1}}}const jt=[];function ol(...e){jt.push(...e)}function Qt(e,t){for(let n=0,r=jt.length;n<r;n+=1){let o=jt[n];if(o.condition(e,t))return new o(e,t)}return new _s(e,t)}const lt={AND:"$and",OR:"$or"},Ht={PATH:"$path",PATTERN:"$val"},qt=e=>!!(e[lt.AND]||e[lt.OR]),sl=e=>!!e[Ht.PATH],il=e=>!oe(e)&&ys(e)&&!qt(e),Kr=e=>({[lt.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function ws(e,t,{auto:n=!0}={}){const r=o=>{let s=Object.keys(o);const i=sl(o);if(!i&&s.length>1&&!qt(o))return r(Kr(o));if(il(o)){const c=i?o[Ht.PATH]:s[0],u=i?o[Ht.PATTERN]:o[c];if(!ee(u))throw new Error(Bu(c));const l={keyId:Mt(c),pattern:u};return n&&(l.searcher=Qt(u,t)),l}let a={children:[],operator:s[0]};return s.forEach(c=>{const u=o[c];oe(u)&&u.forEach(l=>{a.children.push(r(l))})}),a};return qt(e)||(e=Kr(e)),r(e)}function al(e,{ignoreFieldNorm:t=y.ignoreFieldNorm}){e.forEach(n=>{let r=1;n.matches.forEach(({key:o,norm:s,score:i})=>{const a=o?o.weight:null;r*=Math.pow(i===0&&a?Number.EPSILON:i,(a||1)*(t?1:s))}),n.score=r})}function cl(e,t){const n=e.matches;t.matches=[],x(n)&&n.forEach(r=>{if(!x(r.indices)||!r.indices.length)return;const{indices:o,value:s}=r;let i={indices:o,value:s};r.key&&(i.key=r.key.src),r.idx>-1&&(i.refIndex=r.idx),t.matches.push(i)})}function ul(e,t){t.score=e.score}function ll(e,t,{includeMatches:n=y.includeMatches,includeScore:r=y.includeScore}={}){const o=[];return n&&o.push(cl),r&&o.push(ul),e.map(s=>{const{idx:i}=s,a={item:t[i],refIndex:i};return o.length&&o.forEach(c=>{c(s,a)}),a})}class ke{constructor(t,n={},r){this.options={...y,...n},this.options.useExtendedSearch,this._keyStore=new Tu(this.options.keys),this.setCollection(t,r)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof Vn))throw new Error(ku);this._myIndex=n||Ss(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){x(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let r=0,o=this._docs.length;r<o;r+=1){const s=this._docs[r];t(s,r)&&(this.removeAt(r),r-=1,o-=1,n.push(s))}return n}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:n=-1}={}){const{includeMatches:r,includeScore:o,shouldSort:s,sortFn:i,ignoreFieldNorm:a}=this.options;let c=ee(t)?ee(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return al(c,{ignoreFieldNorm:a}),s&&c.sort(i),As(n)&&n>-1&&(c=c.slice(0,n)),ll(c,this._docs,{includeMatches:r,includeScore:o})}_searchStringList(t){const n=Qt(t,this.options),{records:r}=this._myIndex,o=[];return r.forEach(({v:s,i,n:a})=>{if(!x(s))return;const{isMatch:c,score:u,indices:l}=n.searchIn(s);c&&o.push({item:s,idx:i,matches:[{score:u,value:s,norm:a,indices:l}]})}),o}_searchLogical(t){const n=ws(t,this.options),r=(a,c,u)=>{if(!a.children){const{keyId:d,searcher:g}=a,f=this._findMatches({key:this._keyStore.get(d),value:this._myIndex.getValueForItemAtKeyId(c,d),searcher:g});return f&&f.length?[{idx:u,item:c,matches:f}]:[]}const l=[];for(let d=0,g=a.children.length;d<g;d+=1){const f=a.children[d],p=r(f,c,u);if(p.length)l.push(...p);else if(a.operator===lt.AND)return[]}return l},o=this._myIndex.records,s={},i=[];return o.forEach(({$:a,i:c})=>{if(x(a)){let u=r(n,a,c);u.length&&(s[c]||(s[c]={idx:c,item:a,matches:[]},i.push(s[c])),u.forEach(({matches:l})=>{s[c].matches.push(...l)}))}}),i}_searchObjectList(t){const n=Qt(t,this.options),{keys:r,records:o}=this._myIndex,s=[];return o.forEach(({$:i,i:a})=>{if(!x(i))return;let c=[];r.forEach((u,l)=>{c.push(...this._findMatches({key:u,value:i[l],searcher:n}))}),c.length&&s.push({idx:a,item:i,matches:c})}),s}_findMatches({key:t,value:n,searcher:r}){if(!x(n))return[];let o=[];if(oe(n))n.forEach(({v:s,i,n:a})=>{if(!x(s))return;const{isMatch:c,score:u,indices:l}=r.searchIn(s);c&&o.push({score:u,key:t,value:s,idx:i,norm:a,indices:l})});else{const{v:s,n:i}=n,{isMatch:a,score:c,indices:u}=r.searchIn(s);a&&o.push({score:c,key:t,value:s,norm:i,indices:u})}return o}}ke.version="7.1.0";ke.createIndex=Ss;ke.parseIndex=Du;ke.config=y;ke.parseQuery=ws;ol(rl);function Vg(e,t,n,r){if(!t.trim())return[];const o=.3;return new ke(e,{keys:n,threshold:o,ignoreLocation:!0,includeScore:!0,includeMatches:!0,minMatchCharLength:2}).search(t).map(c=>({item:c.item,score:c.score??1,matches:(c.matches??[]).map(u=>({key:u.key??"",indices:u.indices}))}))}function h(e,t,n){function r(a,c){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:c,constr:i,traits:new Set},enumerable:!1}),a._zod.traits.has(e))return;a._zod.traits.add(e),t(a,c);const u=i.prototype,l=Object.keys(u);for(let d=0;d<l.length;d++){const g=l[d];g in a||(a[g]=u[g].bind(a))}}const o=(n==null?void 0:n.Parent)??Object;class s extends o{}Object.defineProperty(s,"name",{value:e});function i(a){var c;const u=n!=null&&n.Parent?new s:this;r(u,a),(c=u._zod).deferred??(c.deferred=[]);for(const l of u._zod.deferred)l();return u}return Object.defineProperty(i,"init",{value:r}),Object.defineProperty(i,Symbol.hasInstance,{value:a=>{var c,u;return n!=null&&n.Parent&&a instanceof n.Parent?!0:(u=(c=a==null?void 0:a._zod)==null?void 0:c.traits)==null?void 0:u.has(e)}}),Object.defineProperty(i,"name",{value:e}),i}class Ie extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class vs extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const Vs={};function ce(e){return Vs}function ks(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,o])=>t.indexOf(+r)===-1).map(([r,o])=>o)}function en(e,t){return typeof t=="bigint"?t.toString():t}function _t(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function kn(e){return e==null}function Bn(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function dl(e,t){const n=(e.toString().split(".")[1]||"").length,r=t.toString();let o=(r.split(".")[1]||"").length;if(o===0&&/\d?e-\d?/.test(r)){const c=r.match(/\d?e-(\d?)/);c!=null&&c[1]&&(o=Number.parseInt(c[1]))}const s=n>o?n:o,i=Number.parseInt(e.toFixed(s).replace(".","")),a=Number.parseInt(t.toFixed(s).replace(".",""));return i%a/10**s}const Lr=Symbol("evaluating");function I(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Lr)return r===void 0&&(r=Lr,r=n()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function pe(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function de(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function $r(e){return JSON.stringify(e)}function fl(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Bs="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function ze(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const ml=_t(()=>{var e;if(typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function ve(e){if(ze(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(ze(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Cs(e){return ve(e)?{...e}:Array.isArray(e)?[...e]:e}const hl=new Set(["string","number","symbol"]);function Ve(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function fe(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(r._zod.parent=e),r}function A(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function gl(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const pl={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function bl(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const s=de(e._zod.def,{get shape(){const i={};for(const a in t){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(i[a]=n.shape[a])}return pe(this,"shape",i),i},checks:[]});return fe(e,s)}function El(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const s=de(e._zod.def,{get shape(){const i={...e._zod.def.shape};for(const a in t){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&delete i[a]}return pe(this,"shape",i),i},checks:[]});return fe(e,s)}function Al(e,t){if(!ve(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const s=e._zod.def.shape;for(const i in t)if(Object.getOwnPropertyDescriptor(s,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const o=de(e._zod.def,{get shape(){const s={...e._zod.def.shape,...t};return pe(this,"shape",s),s}});return fe(e,o)}function yl(e,t){if(!ve(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=de(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return pe(this,"shape",r),r}});return fe(e,n)}function Nl(e,t){const n=de(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return pe(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return fe(e,n)}function Il(e,t,n){const o=t._zod.def.checks;if(o&&o.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const i=de(t._zod.def,{get shape(){const a=t._zod.def.shape,c={...a};if(n)for(const u in n){if(!(u in a))throw new Error(`Unrecognized key: "${u}"`);n[u]&&(c[u]=e?new e({type:"optional",innerType:a[u]}):a[u])}else for(const u in a)c[u]=e?new e({type:"optional",innerType:a[u]}):a[u];return pe(this,"shape",c),c},checks:[]});return fe(t,i)}function Sl(e,t,n){const r=de(t._zod.def,{get shape(){const o=t._zod.def.shape,s={...o};if(n)for(const i in n){if(!(i in s))throw new Error(`Unrecognized key: "${i}"`);n[i]&&(s[i]=new e({type:"nonoptional",innerType:o[i]}))}else for(const i in o)s[i]=new e({type:"nonoptional",innerType:o[i]});return pe(this,"shape",s),s}});return fe(t,r)}function ye(e,t=0){var n;if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)!==!0)return!0;return!1}function Ne(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function qe(e){return typeof e=="string"?e:e==null?void 0:e.message}function ue(e,t,n){var o,s,i,a,c,u;const r={...e,path:e.path??[]};if(!e.message){const l=qe((i=(s=(o=e.inst)==null?void 0:o._zod.def)==null?void 0:s.error)==null?void 0:i.call(s,e))??qe((a=t==null?void 0:t.error)==null?void 0:a.call(t,e))??qe((c=n.customError)==null?void 0:c.call(n,e))??qe((u=n.localeError)==null?void 0:u.call(n,e))??"Invalid input";r.message=l}return delete r.inst,delete r.continue,t!=null&&t.reportInput||delete r.input,r}function Cn(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Je(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const Fs=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,en,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Gs=h("$ZodError",Fs),Ts=h("$ZodError",Fs,{Parent:Error});function _l(e,t=n=>n.message){const n={},r=[];for(const o of e.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}function Zl(e,t=n=>n.message){const n={_errors:[]},r=o=>{for(const s of o.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(i=>r({issues:i}));else if(s.code==="invalid_key")r({issues:s.issues});else if(s.code==="invalid_element")r({issues:s.issues});else if(s.path.length===0)n._errors.push(t(s));else{let i=n,a=0;for(;a<s.path.length;){const c=s.path[a];a===s.path.length-1?(i[c]=i[c]||{_errors:[]},i[c]._errors.push(t(s))):i[c]=i[c]||{_errors:[]},i=i[c],a++}}};return r(e),n}const Fn=e=>(t,n,r,o)=>{const s=r?Object.assign(r,{async:!1}):{async:!1},i=t._zod.run({value:n,issues:[]},s);if(i instanceof Promise)throw new Ie;if(i.issues.length){const a=new((o==null?void 0:o.Err)??e)(i.issues.map(c=>ue(c,s,ce())));throw Bs(a,o==null?void 0:o.callee),a}return i.value},Gn=e=>async(t,n,r,o)=>{const s=r?Object.assign(r,{async:!0}):{async:!0};let i=t._zod.run({value:n,issues:[]},s);if(i instanceof Promise&&(i=await i),i.issues.length){const a=new((o==null?void 0:o.Err)??e)(i.issues.map(c=>ue(c,s,ce())));throw Bs(a,o==null?void 0:o.callee),a}return i.value},Zt=e=>(t,n,r)=>{const o=r?{...r,async:!1}:{async:!1},s=t._zod.run({value:n,issues:[]},o);if(s instanceof Promise)throw new Ie;return s.issues.length?{success:!1,error:new(e??Gs)(s.issues.map(i=>ue(i,o,ce())))}:{success:!0,data:s.value}},Rl=Zt(Ts),Rt=e=>async(t,n,r)=>{const o=r?Object.assign(r,{async:!0}):{async:!0};let s=t._zod.run({value:n,issues:[]},o);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(i=>ue(i,o,ce())))}:{success:!0,data:s.value}},wl=Rt(Ts),vl=e=>(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Fn(e)(t,n,o)},Vl=e=>(t,n,r)=>Fn(e)(t,n,r),kl=e=>async(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Gn(e)(t,n,o)},Bl=e=>async(t,n,r)=>Gn(e)(t,n,r),Cl=e=>(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Zt(e)(t,n,o)},Fl=e=>(t,n,r)=>Zt(e)(t,n,r),Gl=e=>async(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Rt(e)(t,n,o)},Tl=e=>async(t,n,r)=>Rt(e)(t,n,r),Yl=/^[cC][^\s-]{8,}$/,Ul=/^[0-9a-z]+$/,Wl=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Ol=/^[0-9a-vA-V]{20}$/,Xl=/^[A-Za-z0-9]{27}$/,zl=/^[a-zA-Z0-9_-]{21}$/,Jl=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Dl=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Mr=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,xl=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Kl="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Ll(){return new RegExp(Kl,"u")}const $l=/^(?:(?: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])$/,Ml=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Pl=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,jl=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Ql=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Ys=/^[A-Za-z0-9_-]*$/,Hl=/^\+[1-9]\d{6,14}$/,Us="(?:(?:\\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])))",ql=new RegExp(`^${Us}$`);function Ws(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function ed(e){return new RegExp(`^${Ws(e)}$`)}function td(e){const t=Ws({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${Us}T(?:${r})$`)}const nd=e=>{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},rd=/^-?\d+$/,Os=/^-?\d+(?:\.\d+)?$/,od=/^(?:true|false)$/i,sd=/^null$/i,id=/^undefined$/i,ad=/^[^A-Z]*$/,cd=/^[^a-z]*$/,D=h("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Xs={number:"number",bigint:"bigint",object:"date"},zs=h("$ZodCheckLessThan",(e,t)=>{D.init(e,t);const n=Xs[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,s=(t.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<s&&(t.inclusive?o.maximum=t.value:o.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Js=h("$ZodCheckGreaterThan",(e,t)=>{D.init(e,t);const n=Xs[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,s=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>s&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ud=h("$ZodCheckMultipleOf",(e,t)=>{D.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):dl(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),ld=h("$ZodCheckNumberFormat",(e,t)=>{var i;D.init(e,t),t.format=t.format||"float64";const n=(i=t.format)==null?void 0:i.includes("int"),r=n?"int":"number",[o,s]=pl[t.format];e._zod.onattach.push(a=>{const c=a._zod.bag;c.format=t.format,c.minimum=o,c.maximum=s,n&&(c.pattern=rd)}),e._zod.check=a=>{const c=a.value;if(n){if(!Number.isInteger(c)){a.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:c,inst:e});return}if(!Number.isSafeInteger(c)){c>0?a.issues.push({input:c,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):a.issues.push({input:c,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}c<o&&a.issues.push({origin:"number",input:c,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),c>s&&a.issues.push({origin:"number",input:c,code:"too_big",maximum:s,inclusive:!0,inst:e,continue:!t.abort})}}),dd=h("$ZodCheckMaxLength",(e,t)=>{var n;D.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!kn(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const o=r.value;if(o.length<=t.maximum)return;const i=Cn(o);r.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),fd=h("$ZodCheckMinLength",(e,t)=>{var n;D.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!kn(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const o=r.value;if(o.length>=t.minimum)return;const i=Cn(o);r.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),md=h("$ZodCheckLengthEquals",(e,t)=>{var n;D.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!kn(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=r=>{const o=r.value,s=o.length;if(s===t.length)return;const i=Cn(o),a=s>t.length;r.issues.push({origin:i,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),wt=h("$ZodCheckStringFormat",(e,t)=>{var n,r;D.init(e,t),e._zod.onattach.push(o=>{const s=o._zod.bag;s.format=t.format,t.pattern&&(s.patterns??(s.patterns=new Set),s.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),hd=h("$ZodCheckRegex",(e,t)=>{wt.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),gd=h("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=ad),wt.init(e,t)}),pd=h("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=cd),wt.init(e,t)}),bd=h("$ZodCheckIncludes",(e,t)=>{D.init(e,t);const n=Ve(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(o=>{const s=o._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(r)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),Ed=h("$ZodCheckStartsWith",(e,t)=>{D.init(e,t);const n=new RegExp(`^${Ve(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),Ad=h("$ZodCheckEndsWith",(e,t)=>{D.init(e,t);const n=new RegExp(`.*${Ve(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),yd=h("$ZodCheckOverwrite",(e,t)=>{D.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Nd{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
3
3
  `).filter(i=>i),o=Math.min(...r.map(i=>i.length-i.trimStart().length)),s=r.map(i=>i.slice(o)).map(i=>" ".repeat(this.indent*2)+i);for(const i of s)this.content.push(i)}compile(){const t=Function,n=this==null?void 0:this.args,o=[...((this==null?void 0:this.content)??[""]).map(s=>` ${s}`)];return new t(...n,o.join(`
4
- `))}}const Id={major:4,minor:3,patch:6},R=h("$ZodType",(e,t)=>{var o;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Id;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const s of r)for(const i of s._zod.onattach)i(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),(o=e._zod.deferred)==null||o.push(()=>{e._zod.run=e._zod.parse});else{const s=(a,c,u)=>{let l=ye(a),d;for(const g of c){if(g._zod.def.when){if(!g._zod.def.when(a))continue}else if(l)continue;const f=a.issues.length,p=g._zod.check(a);if(p instanceof Promise&&(u==null?void 0:u.async)===!1)throw new Ie;if(d||p instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await p,a.issues.length!==f&&(l||(l=ye(a,f)))});else{if(a.issues.length===f)continue;l||(l=ye(a,f))}}return d?d.then(()=>a):a},i=(a,c,u)=>{if(ye(a))return a.aborted=!0,a;const l=s(c,r,u);if(l instanceof Promise){if(u.async===!1)throw new Ie;return l.then(d=>e._zod.parse(d,u))}return e._zod.parse(l,u)};e._zod.run=(a,c)=>{if(c.skipChecks)return e._zod.parse(a,c);if(c.direction==="backward"){const l=e._zod.parse({value:a.value,issues:[]},{...c,skipChecks:!0});return l instanceof Promise?l.then(d=>i(d,a,c)):i(l,a,c)}const u=e._zod.parse(a,c);if(u instanceof Promise){if(c.async===!1)throw new Ie;return u.then(l=>s(l,r,c))}return s(u,r,c)}}I(e,"~standard",()=>({validate:s=>{var i;try{const a=Rl(e,s);return a.success?{value:a.data}:{issues:(i=a.error)==null?void 0:i.issues}}catch{return wl(e,s).then(c=>{var u;return c.success?{value:c.data}:{issues:(u=c.error)==null?void 0:u.issues}})}},vendor:"zod",version:1}))}),Tn=h("$ZodString",(e,t)=>{var n;R.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??nd(e._zod.bag),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),V=h("$ZodStringFormat",(e,t)=>{wt.init(e,t),Tn.init(e,t)}),Sd=h("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Dl),V.init(e,t)}),_d=h("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Mr(r))}else t.pattern??(t.pattern=Mr());V.init(e,t)}),Zd=h("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=xl),V.init(e,t)}),Rd=h("$ZodURL",(e,t)=>{V.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),o=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=o.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),wd=h("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Ll()),V.init(e,t)}),vd=h("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=zl),V.init(e,t)}),kd=h("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Yl),V.init(e,t)}),Vd=h("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Ul),V.init(e,t)}),Bd=h("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Wl),V.init(e,t)}),Cd=h("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Xl),V.init(e,t)}),Fd=h("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Ol),V.init(e,t)}),Gd=h("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=td(t)),V.init(e,t)}),Td=h("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=ql),V.init(e,t)}),Yd=h("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=ed(t)),V.init(e,t)}),Ud=h("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Jl),V.init(e,t)}),Wd=h("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=$l),V.init(e,t),e._zod.bag.format="ipv4"}),Xd=h("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Ml),V.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),Od=h("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Pl),V.init(e,t)}),zd=h("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Ql),V.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[o,s]=r;if(!s)throw new Error;const i=Number(s);if(`${i}`!==s)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${o}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function Ds(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Jd=h("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=jl),V.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Ds(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function Dd(e){if(!Ys.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Ds(n)}const xd=h("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Ys),V.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{Dd(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Kd=h("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Hl),V.init(e,t)});function Ld(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const o=JSON.parse(atob(r));return!("typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const $d=h("$ZodJWT",(e,t)=>{V.init(e,t),e._zod.check=n=>{Ld(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),xs=h("$ZodNumber",(e,t)=>{R.init(e,t),e._zod.pattern=e._zod.bag.pattern??Xs,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const o=n.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return n;const s=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...s?{received:s}:{}}),n}}),Md=h("$ZodNumberFormat",(e,t)=>{ld.init(e,t),xs.init(e,t)}),Pd=h("$ZodBoolean",(e,t)=>{R.init(e,t),e._zod.pattern=od,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const o=n.value;return typeof o=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),n}}),Qd=h("$ZodUndefined",(e,t)=>{R.init(e,t),e._zod.pattern=id,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(n,r)=>{const o=n.value;return typeof o>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:o,inst:e}),n}}),jd=h("$ZodNull",(e,t)=>{R.init(e,t),e._zod.pattern=sd,e._zod.values=new Set([null]),e._zod.parse=(n,r)=>{const o=n.value;return o===null||n.issues.push({expected:"null",code:"invalid_type",input:o,inst:e}),n}}),Hd=h("$ZodUnknown",(e,t)=>{R.init(e,t),e._zod.parse=n=>n}),qd=h("$ZodNever",(e,t)=>{R.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function Pr(e,t,n){e.issues.length&&t.issues.push(...Ne(n,e.issues)),t.value[n]=e.value}const ef=h("$ZodArray",(e,t)=>{R.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!Array.isArray(o))return n.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),n;n.value=Array(o.length);const s=[];for(let i=0;i<o.length;i++){const a=o[i],c=t.element._zod.run({value:a,issues:[]},r);c instanceof Promise?s.push(c.then(u=>Pr(u,n,i))):Pr(c,n,i)}return s.length?Promise.all(s).then(()=>n):n}});function dt(e,t,n,r,o){if(e.issues.length){if(o&&!(n in r))return;t.issues.push(...Ne(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function Ks(e){var r,o,s,i;const t=Object.keys(e.shape);for(const a of t)if(!((i=(s=(o=(r=e.shape)==null?void 0:r[a])==null?void 0:o._zod)==null?void 0:s.traits)!=null&&i.has("$ZodType")))throw new Error(`Invalid element at key "${a}": expected a Zod schema`);const n=gl(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Ls(e,t,n,r,o,s){const i=[],a=o.keySet,c=o.catchall._zod,u=c.def.type,l=c.optout==="optional";for(const d in t){if(a.has(d))continue;if(u==="never"){i.push(d);continue}const g=c.run({value:t[d],issues:[]},r);g instanceof Promise?e.push(g.then(f=>dt(f,n,d,t,l))):dt(g,n,d,t,l)}return i.length&&n.issues.push({code:"unrecognized_keys",keys:i,input:t,inst:s}),e.length?Promise.all(e).then(()=>n):n}const tf=h("$ZodObject",(e,t)=>{R.init(e,t);const n=Object.getOwnPropertyDescriptor(t,"shape");if(!(n!=null&&n.get)){const a=t.shape;Object.defineProperty(t,"shape",{get:()=>{const c={...a};return Object.defineProperty(t,"shape",{value:c}),c}})}const r=_t(()=>Ks(t));I(e._zod,"propValues",()=>{const a=t.shape,c={};for(const u in a){const l=a[u]._zod;if(l.values){c[u]??(c[u]=new Set);for(const d of l.values)c[u].add(d)}}return c});const o=ze,s=t.catchall;let i;e._zod.parse=(a,c)=>{i??(i=r.value);const u=a.value;if(!o(u))return a.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),a;a.value={};const l=[],d=i.shape;for(const g of i.keys){const f=d[g],p=f._zod.optout==="optional",b=f._zod.run({value:u[g],issues:[]},c);b instanceof Promise?l.push(b.then(E=>dt(E,a,g,u,p))):dt(b,a,g,u,p)}return s?Ls(l,u,a,c,r.value,e):l.length?Promise.all(l).then(()=>a):a}}),nf=h("$ZodObjectJIT",(e,t)=>{tf.init(e,t);const n=e._zod.parse,r=_t(()=>Ks(t)),o=g=>{var O;const f=new Nd(["shape","payload","ctx"]),p=r.value,b=B=>{const U=$r(B);return`shape[${U}]._zod.run({ value: input[${U}], issues: [] }, ctx)`};f.write("const input = payload.value;");const E=Object.create(null);let _=0;for(const B of p.keys)E[B]=`key_${_++}`;f.write("const newResult = {};");for(const B of p.keys){const U=E[B],W=$r(B),T=g[B],z=((O=T==null?void 0:T._zod)==null?void 0:O.optout)==="optional";f.write(`const ${U} = ${b(B)};`),z?f.write(`
4
+ `))}}const Id={major:4,minor:3,patch:6},R=h("$ZodType",(e,t)=>{var o;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Id;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const s of r)for(const i of s._zod.onattach)i(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),(o=e._zod.deferred)==null||o.push(()=>{e._zod.run=e._zod.parse});else{const s=(a,c,u)=>{let l=ye(a),d;for(const g of c){if(g._zod.def.when){if(!g._zod.def.when(a))continue}else if(l)continue;const f=a.issues.length,p=g._zod.check(a);if(p instanceof Promise&&(u==null?void 0:u.async)===!1)throw new Ie;if(d||p instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await p,a.issues.length!==f&&(l||(l=ye(a,f)))});else{if(a.issues.length===f)continue;l||(l=ye(a,f))}}return d?d.then(()=>a):a},i=(a,c,u)=>{if(ye(a))return a.aborted=!0,a;const l=s(c,r,u);if(l instanceof Promise){if(u.async===!1)throw new Ie;return l.then(d=>e._zod.parse(d,u))}return e._zod.parse(l,u)};e._zod.run=(a,c)=>{if(c.skipChecks)return e._zod.parse(a,c);if(c.direction==="backward"){const l=e._zod.parse({value:a.value,issues:[]},{...c,skipChecks:!0});return l instanceof Promise?l.then(d=>i(d,a,c)):i(l,a,c)}const u=e._zod.parse(a,c);if(u instanceof Promise){if(c.async===!1)throw new Ie;return u.then(l=>s(l,r,c))}return s(u,r,c)}}I(e,"~standard",()=>({validate:s=>{var i;try{const a=Rl(e,s);return a.success?{value:a.data}:{issues:(i=a.error)==null?void 0:i.issues}}catch{return wl(e,s).then(c=>{var u;return c.success?{value:c.data}:{issues:(u=c.error)==null?void 0:u.issues}})}},vendor:"zod",version:1}))}),Tn=h("$ZodString",(e,t)=>{var n;R.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??nd(e._zod.bag),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),k=h("$ZodStringFormat",(e,t)=>{wt.init(e,t),Tn.init(e,t)}),Sd=h("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Dl),k.init(e,t)}),_d=h("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Mr(r))}else t.pattern??(t.pattern=Mr());k.init(e,t)}),Zd=h("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=xl),k.init(e,t)}),Rd=h("$ZodURL",(e,t)=>{k.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),o=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=o.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),wd=h("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Ll()),k.init(e,t)}),vd=h("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=zl),k.init(e,t)}),Vd=h("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Yl),k.init(e,t)}),kd=h("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Ul),k.init(e,t)}),Bd=h("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Wl),k.init(e,t)}),Cd=h("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Ol),k.init(e,t)}),Fd=h("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Xl),k.init(e,t)}),Gd=h("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=td(t)),k.init(e,t)}),Td=h("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=ql),k.init(e,t)}),Yd=h("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=ed(t)),k.init(e,t)}),Ud=h("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Jl),k.init(e,t)}),Wd=h("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=$l),k.init(e,t),e._zod.bag.format="ipv4"}),Od=h("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Ml),k.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),Xd=h("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Pl),k.init(e,t)}),zd=h("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=jl),k.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[o,s]=r;if(!s)throw new Error;const i=Number(s);if(`${i}`!==s)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${o}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function Ds(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Jd=h("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Ql),k.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{Ds(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function Dd(e){if(!Ys.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Ds(n)}const xd=h("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Ys),k.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{Dd(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Kd=h("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Hl),k.init(e,t)});function Ld(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const o=JSON.parse(atob(r));return!("typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const $d=h("$ZodJWT",(e,t)=>{k.init(e,t),e._zod.check=n=>{Ld(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),xs=h("$ZodNumber",(e,t)=>{R.init(e,t),e._zod.pattern=e._zod.bag.pattern??Os,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const o=n.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return n;const s=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...s?{received:s}:{}}),n}}),Md=h("$ZodNumberFormat",(e,t)=>{ld.init(e,t),xs.init(e,t)}),Pd=h("$ZodBoolean",(e,t)=>{R.init(e,t),e._zod.pattern=od,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const o=n.value;return typeof o=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),n}}),jd=h("$ZodUndefined",(e,t)=>{R.init(e,t),e._zod.pattern=id,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(n,r)=>{const o=n.value;return typeof o>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:o,inst:e}),n}}),Qd=h("$ZodNull",(e,t)=>{R.init(e,t),e._zod.pattern=sd,e._zod.values=new Set([null]),e._zod.parse=(n,r)=>{const o=n.value;return o===null||n.issues.push({expected:"null",code:"invalid_type",input:o,inst:e}),n}}),Hd=h("$ZodUnknown",(e,t)=>{R.init(e,t),e._zod.parse=n=>n}),qd=h("$ZodNever",(e,t)=>{R.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function Pr(e,t,n){e.issues.length&&t.issues.push(...Ne(n,e.issues)),t.value[n]=e.value}const ef=h("$ZodArray",(e,t)=>{R.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!Array.isArray(o))return n.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),n;n.value=Array(o.length);const s=[];for(let i=0;i<o.length;i++){const a=o[i],c=t.element._zod.run({value:a,issues:[]},r);c instanceof Promise?s.push(c.then(u=>Pr(u,n,i))):Pr(c,n,i)}return s.length?Promise.all(s).then(()=>n):n}});function dt(e,t,n,r,o){if(e.issues.length){if(o&&!(n in r))return;t.issues.push(...Ne(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function Ks(e){var r,o,s,i;const t=Object.keys(e.shape);for(const a of t)if(!((i=(s=(o=(r=e.shape)==null?void 0:r[a])==null?void 0:o._zod)==null?void 0:s.traits)!=null&&i.has("$ZodType")))throw new Error(`Invalid element at key "${a}": expected a Zod schema`);const n=gl(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Ls(e,t,n,r,o,s){const i=[],a=o.keySet,c=o.catchall._zod,u=c.def.type,l=c.optout==="optional";for(const d in t){if(a.has(d))continue;if(u==="never"){i.push(d);continue}const g=c.run({value:t[d],issues:[]},r);g instanceof Promise?e.push(g.then(f=>dt(f,n,d,t,l))):dt(g,n,d,t,l)}return i.length&&n.issues.push({code:"unrecognized_keys",keys:i,input:t,inst:s}),e.length?Promise.all(e).then(()=>n):n}const tf=h("$ZodObject",(e,t)=>{R.init(e,t);const n=Object.getOwnPropertyDescriptor(t,"shape");if(!(n!=null&&n.get)){const a=t.shape;Object.defineProperty(t,"shape",{get:()=>{const c={...a};return Object.defineProperty(t,"shape",{value:c}),c}})}const r=_t(()=>Ks(t));I(e._zod,"propValues",()=>{const a=t.shape,c={};for(const u in a){const l=a[u]._zod;if(l.values){c[u]??(c[u]=new Set);for(const d of l.values)c[u].add(d)}}return c});const o=ze,s=t.catchall;let i;e._zod.parse=(a,c)=>{i??(i=r.value);const u=a.value;if(!o(u))return a.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),a;a.value={};const l=[],d=i.shape;for(const g of i.keys){const f=d[g],p=f._zod.optout==="optional",b=f._zod.run({value:u[g],issues:[]},c);b instanceof Promise?l.push(b.then(E=>dt(E,a,g,u,p))):dt(b,a,g,u,p)}return s?Ls(l,u,a,c,r.value,e):l.length?Promise.all(l).then(()=>a):a}}),nf=h("$ZodObjectJIT",(e,t)=>{tf.init(e,t);const n=e._zod.parse,r=_t(()=>Ks(t)),o=g=>{var X;const f=new Nd(["shape","payload","ctx"]),p=r.value,b=B=>{const U=$r(B);return`shape[${U}]._zod.run({ value: input[${U}], issues: [] }, ctx)`};f.write("const input = payload.value;");const E=Object.create(null);let _=0;for(const B of p.keys)E[B]=`key_${_++}`;f.write("const newResult = {};");for(const B of p.keys){const U=E[B],W=$r(B),T=g[B],z=((X=T==null?void 0:T._zod)==null?void 0:X.optout)==="optional";f.write(`const ${U} = ${b(B)};`),z?f.write(`
5
5
  if (${U}.issues.length) {
6
6
  if (${W} in input) {
7
7
  payload.issues = payload.issues.concat(${U}.issues.map(iss => ({
@@ -35,6 +35,6 @@ var S;(function(e){e[e.Canceled=1]="Canceled",e[e.Unknown=2]="Unknown",e[e.Inval
35
35
  newResult[${W}] = ${U}.value;
36
36
  }
37
37
 
38
- `)}f.write("payload.value = newResult;"),f.write("return payload;");const N=f.compile();return(B,U)=>N(g,B,U)};let s;const i=ze,a=!ks.jitless,u=a&&ml.value,l=t.catchall;let d;e._zod.parse=(g,f)=>{d??(d=r.value);const p=g.value;return i(p)?a&&u&&(f==null?void 0:f.async)===!1&&f.jitless!==!0?(s||(s=o(t.shape)),g=s(g,f),l?Ls([],p,g,f,d,e):g):n(g,f):(g.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),g)}});function Qr(e,t,n,r){for(const s of e)if(s.issues.length===0)return t.value=s.value,t;const o=e.filter(s=>!ye(s));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(s=>s.issues.map(i=>ue(i,r,ce())))}),t)}const $s=h("$ZodUnion",(e,t)=>{R.init(e,t),I(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),I(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),I(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),I(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(s=>s._zod.pattern);return new RegExp(`^(${o.map(s=>Bn(s.source)).join("|")})$`)}});const n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(o,s)=>{if(n)return r(o,s);let i=!1;const a=[];for(const c of t.options){const u=c._zod.run({value:o.value,issues:[]},s);if(u instanceof Promise)a.push(u),i=!0;else{if(u.issues.length===0)return u;a.push(u)}}return i?Promise.all(a).then(c=>Qr(c,o,e,s)):Qr(a,o,e,s)}}),rf=h("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,$s.init(e,t);const n=e._zod.parse;I(e._zod,"propValues",()=>{const o={};for(const s of t.options){const i=s._zod.propValues;if(!i||Object.keys(i).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(s)}"`);for(const[a,c]of Object.entries(i)){o[a]||(o[a]=new Set);for(const u of c)o[a].add(u)}}return o});const r=_t(()=>{var i;const o=t.options,s=new Map;for(const a of o){const c=(i=a._zod.propValues)==null?void 0:i[t.discriminator];if(!c||c.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(const u of c){if(s.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);s.set(u,a)}}return s});e._zod.parse=(o,s)=>{const i=o.value;if(!ze(i))return o.issues.push({code:"invalid_type",expected:"object",input:i,inst:e}),o;const a=r.value.get(i==null?void 0:i[t.discriminator]);return a?a._zod.run(o,s):t.unionFallback?n(o,s):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:i,path:[t.discriminator],inst:e}),o)}}),of=h("$ZodIntersection",(e,t)=>{R.init(e,t),e._zod.parse=(n,r)=>{const o=n.value,s=t.left._zod.run({value:o,issues:[]},r),i=t.right._zod.run({value:o,issues:[]},r);return s instanceof Promise||i instanceof Promise?Promise.all([s,i]).then(([c,u])=>jr(n,c,u)):jr(n,s,i)}});function tn(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(ve(e)&&ve(t)){const n=Object.keys(t),r=Object.keys(e).filter(s=>n.indexOf(s)!==-1),o={...e,...t};for(const s of r){const i=tn(e[s],t[s]);if(!i.valid)return{valid:!1,mergeErrorPath:[s,...i.mergeErrorPath]};o[s]=i.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const o=e[r],s=t[r],i=tn(o,s);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};n.push(i.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function jr(e,t,n){const r=new Map;let o;for(const a of t.issues)if(a.code==="unrecognized_keys"){o??(o=a);for(const c of a.keys)r.has(c)||r.set(c,{}),r.get(c).l=!0}else e.issues.push(a);for(const a of n.issues)if(a.code==="unrecognized_keys")for(const c of a.keys)r.has(c)||r.set(c,{}),r.get(c).r=!0;else e.issues.push(a);const s=[...r].filter(([,a])=>a.l&&a.r).map(([a])=>a);if(s.length&&o&&e.issues.push({...o,keys:s}),ye(e))return e;const i=tn(t.value,n.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}const sf=h("$ZodRecord",(e,t)=>{R.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!ve(o))return n.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),n;const s=[],i=t.keyType._zod.values;if(i){n.value={};const a=new Set;for(const u of i)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){a.add(typeof u=="number"?u.toString():u);const l=t.valueType._zod.run({value:o[u],issues:[]},r);l instanceof Promise?s.push(l.then(d=>{d.issues.length&&n.issues.push(...Ne(u,d.issues)),n.value[u]=d.value})):(l.issues.length&&n.issues.push(...Ne(u,l.issues)),n.value[u]=l.value)}let c;for(const u in o)a.has(u)||(c=c??[],c.push(u));c&&c.length>0&&n.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:c})}else{n.value={};for(const a of Reflect.ownKeys(o)){if(a==="__proto__")continue;let c=t.keyType._zod.run({value:a,issues:[]},r);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof a=="string"&&Xs.test(a)&&c.issues.length){const d=t.keyType._zod.run({value:Number(a),issues:[]},r);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");d.issues.length===0&&(c=d)}if(c.issues.length){t.mode==="loose"?n.value[a]=o[a]:n.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(d=>ue(d,r,ce())),input:a,path:[a],inst:e});continue}const l=t.valueType._zod.run({value:o[a],issues:[]},r);l instanceof Promise?s.push(l.then(d=>{d.issues.length&&n.issues.push(...Ne(a,d.issues)),n.value[c.value]=d.value})):(l.issues.length&&n.issues.push(...Ne(a,l.issues)),n.value[c.value]=l.value)}}return s.length?Promise.all(s).then(()=>n):n}}),af=h("$ZodEnum",(e,t)=>{R.init(e,t);const n=Vs(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(o=>hl.has(typeof o)).map(o=>typeof o=="string"?ke(o):o.toString()).join("|")})$`),e._zod.parse=(o,s)=>{const i=o.value;return r.has(i)||o.issues.push({code:"invalid_value",values:n,input:i,inst:e}),o}}),cf=h("$ZodLiteral",(e,t)=>{if(R.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(r=>typeof r=="string"?ke(r):r?ke(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,o)=>{const s=r.value;return n.has(s)||r.issues.push({code:"invalid_value",values:t.values,input:s,inst:e}),r}}),uf=h("$ZodTransform",(e,t)=>{R.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new vs(e.constructor.name);const o=t.transform(n.value,n);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(i=>(n.value=i,n));if(o instanceof Promise)throw new Ie;return n.value=o,n}});function Hr(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const Ms=h("$ZodOptional",(e,t)=>{R.init(e,t),e._zod.optin="optional",e._zod.optout="optional",I(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),I(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Bn(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(s=>Hr(s,n.value)):Hr(o,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),lf=h("$ZodExactOptional",(e,t)=>{Ms.init(e,t),I(e._zod,"values",()=>t.innerType._zod.values),I(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),df=h("$ZodNullable",(e,t)=>{R.init(e,t),I(e._zod,"optin",()=>t.innerType._zod.optin),I(e._zod,"optout",()=>t.innerType._zod.optout),I(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Bn(n.source)}|null)$`):void 0}),I(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),ff=h("$ZodDefault",(e,t)=>{R.init(e,t),e._zod.optin="optional",I(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(s=>qr(s,t)):qr(o,t)}});function qr(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const mf=h("$ZodPrefault",(e,t)=>{R.init(e,t),e._zod.optin="optional",I(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),hf=h("$ZodNonOptional",(e,t)=>{R.init(e,t),I(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(s=>eo(s,e)):eo(o,e)}});function eo(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const gf=h("$ZodCatch",(e,t)=>{R.init(e,t),I(e._zod,"optin",()=>t.innerType._zod.optin),I(e._zod,"optout",()=>t.innerType._zod.optout),I(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(s=>(n.value=s.value,s.issues.length&&(n.value=t.catchValue({...n,error:{issues:s.issues.map(i=>ue(i,r,ce()))},input:n.value}),n.issues=[]),n)):(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(s=>ue(s,r,ce()))},input:n.value}),n.issues=[]),n)}}),pf=h("$ZodPipe",(e,t)=>{R.init(e,t),I(e._zod,"values",()=>t.in._zod.values),I(e._zod,"optin",()=>t.in._zod.optin),I(e._zod,"optout",()=>t.out._zod.optout),I(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const s=t.out._zod.run(n,r);return s instanceof Promise?s.then(i=>et(i,t.in,r)):et(s,t.in,r)}const o=t.in._zod.run(n,r);return o instanceof Promise?o.then(s=>et(s,t.out,r)):et(o,t.out,r)}});function et(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const bf=h("$ZodReadonly",(e,t)=>{R.init(e,t),I(e._zod,"propValues",()=>t.innerType._zod.propValues),I(e._zod,"values",()=>t.innerType._zod.values),I(e._zod,"optin",()=>{var n,r;return(r=(n=t.innerType)==null?void 0:n._zod)==null?void 0:r.optin}),I(e._zod,"optout",()=>{var n,r;return(r=(n=t.innerType)==null?void 0:n._zod)==null?void 0:r.optout}),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(to):to(o)}});function to(e){return e.value=Object.freeze(e.value),e}const Ef=h("$ZodCustom",(e,t)=>{D.init(e,t),R.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,o=t.fn(r);if(o instanceof Promise)return o.then(s=>no(s,n,r,e));no(o,n,r,e)}});function no(e,t,n,r){if(!e){const o={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(o.params=r._zod.def.params),t.issues.push(Je(o))}}var ro;class Af{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const o={...r,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function yf(){return new Af}(ro=globalThis).__zod_globalRegistry??(ro.__zod_globalRegistry=yf());const Fe=globalThis.__zod_globalRegistry;function Nf(e,t){return new e({type:"string",...A(t)})}function If(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...A(t)})}function oo(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...A(t)})}function Sf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...A(t)})}function _f(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...A(t)})}function Zf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...A(t)})}function Rf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...A(t)})}function wf(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...A(t)})}function vf(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...A(t)})}function kf(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...A(t)})}function Vf(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...A(t)})}function Bf(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...A(t)})}function Cf(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...A(t)})}function Ff(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...A(t)})}function Gf(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...A(t)})}function Tf(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...A(t)})}function Yf(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...A(t)})}function Uf(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...A(t)})}function Wf(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...A(t)})}function Xf(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...A(t)})}function Of(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...A(t)})}function zf(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...A(t)})}function Jf(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...A(t)})}function Df(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...A(t)})}function xf(e,t){return new e({type:"string",format:"date",check:"string_format",...A(t)})}function Kf(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...A(t)})}function Lf(e,t){return new e({type:"string",format:"duration",check:"string_format",...A(t)})}function $f(e,t){return new e({type:"number",checks:[],...A(t)})}function Mf(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...A(t)})}function Pf(e,t){return new e({type:"boolean",...A(t)})}function Qf(e,t){return new e({type:"undefined",...A(t)})}function jf(e,t){return new e({type:"null",...A(t)})}function Hf(e){return new e({type:"unknown"})}function qf(e,t){return new e({type:"never",...A(t)})}function so(e,t){return new zs({check:"less_than",...A(t),value:e,inclusive:!1})}function Wt(e,t){return new zs({check:"less_than",...A(t),value:e,inclusive:!0})}function io(e,t){return new Js({check:"greater_than",...A(t),value:e,inclusive:!1})}function Xt(e,t){return new Js({check:"greater_than",...A(t),value:e,inclusive:!0})}function ao(e,t){return new ud({check:"multiple_of",...A(t),value:e})}function Ps(e,t){return new dd({check:"max_length",...A(t),maximum:e})}function ft(e,t){return new fd({check:"min_length",...A(t),minimum:e})}function Qs(e,t){return new md({check:"length_equals",...A(t),length:e})}function em(e,t){return new hd({check:"string_format",format:"regex",...A(t),pattern:e})}function tm(e){return new gd({check:"string_format",format:"lowercase",...A(e)})}function nm(e){return new pd({check:"string_format",format:"uppercase",...A(e)})}function rm(e,t){return new bd({check:"string_format",format:"includes",...A(t),includes:e})}function om(e,t){return new Ed({check:"string_format",format:"starts_with",...A(t),prefix:e})}function sm(e,t){return new Ad({check:"string_format",format:"ends_with",...A(t),suffix:e})}function Be(e){return new yd({check:"overwrite",tx:e})}function im(e){return Be(t=>t.normalize(e))}function am(){return Be(e=>e.trim())}function cm(){return Be(e=>e.toLowerCase())}function um(){return Be(e=>e.toUpperCase())}function lm(){return Be(e=>fl(e))}function dm(e,t,n){return new e({type:"array",element:t,...A(n)})}function fm(e,t,n){const r=A(n);return r.abort??(r.abort=!0),new e({type:"custom",check:"custom",fn:t,...r})}function mm(e,t,n){return new e({type:"custom",check:"custom",fn:t,...A(n)})}function hm(e){const t=gm(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(Je(r,n.value,t._zod.def));else{const o=r;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=n.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),n.issues.push(Je(o))}},e(n.value,n)));return t}function gm(e,t){const n=new D({check:"custom",...A(t)});return n._zod.check=e,n}function mt(e){let t=(e==null?void 0:e.target)??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:(e==null?void 0:e.metadata)??Fe,target:t,unrepresentable:(e==null?void 0:e.unrepresentable)??"throw",override:(e==null?void 0:e.override)??(()=>{}),io:(e==null?void 0:e.io)??"output",counter:0,seen:new Map,cycles:(e==null?void 0:e.cycles)??"ref",reused:(e==null?void 0:e.reused)??"inline",external:(e==null?void 0:e.external)??void 0}}function Z(e,t,n={path:[],schemaPath:[]}){var l,d;var r;const o=e._zod.def,s=t.seen.get(e);if(s)return s.count++,n.schemaPath.includes(e)&&(s.cycle=n.path),s.schema;const i={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,i);const a=(d=(l=e._zod).toJSONSchema)==null?void 0:d.call(l);if(a)i.schema=a;else{const g={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,i.schema,g);else{const p=i.schema,b=t.processors[o.type];if(!b)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);b(e,t,p,g)}const f=e._zod.parent;f&&(i.ref||(i.ref=f),Z(f,t,g),t.seen.get(f).isParent=!0)}const c=t.metadataRegistry.get(e);return c&&Object.assign(i.schema,c),t.io==="input"&&J(e)&&(delete i.schema.examples,delete i.schema.default),t.io==="input"&&i.schema._prefault&&((r=i.schema).default??(r.default=i.schema._prefault)),delete i.schema._prefault,t.seen.get(e).schema}function ht(e,t){var i,a,c,u;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const l of e.seen.entries()){const d=(i=e.metadataRegistry.get(l[0]))==null?void 0:i.id;if(d){const g=r.get(d);if(g&&g!==l[0])throw new Error(`Duplicate schema id "${d}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(d,l[0])}}const o=l=>{var b;const d=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const E=(b=e.external.registry.get(l[0]))==null?void 0:b.id,_=e.external.uri??(O=>O);if(E)return{ref:_(E)};const N=l[1].defId??l[1].schema.id??`schema${e.counter++}`;return l[1].defId=N,{defId:N,ref:`${_("__shared")}#/${d}/${N}`}}if(l[1]===n)return{ref:"#"};const f=`#/${d}/`,p=l[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:f+p}},s=l=>{if(l[1].schema.$ref)return;const d=l[1],{ref:g,defId:f}=o(l);d.def={...d.schema},f&&(d.defId=f);const p=d.schema;for(const b in p)delete p[b];p.$ref=g};if(e.cycles==="throw")for(const l of e.seen.entries()){const d=l[1];if(d.cycle)throw new Error(`Cycle detected: #/${(a=d.cycle)==null?void 0:a.join("/")}/<root>
38
+ `)}f.write("payload.value = newResult;"),f.write("return payload;");const N=f.compile();return(B,U)=>N(g,B,U)};let s;const i=ze,a=!Vs.jitless,u=a&&ml.value,l=t.catchall;let d;e._zod.parse=(g,f)=>{d??(d=r.value);const p=g.value;return i(p)?a&&u&&(f==null?void 0:f.async)===!1&&f.jitless!==!0?(s||(s=o(t.shape)),g=s(g,f),l?Ls([],p,g,f,d,e):g):n(g,f):(g.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),g)}});function jr(e,t,n,r){for(const s of e)if(s.issues.length===0)return t.value=s.value,t;const o=e.filter(s=>!ye(s));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(s=>s.issues.map(i=>ue(i,r,ce())))}),t)}const $s=h("$ZodUnion",(e,t)=>{R.init(e,t),I(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),I(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),I(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),I(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(s=>s._zod.pattern);return new RegExp(`^(${o.map(s=>Bn(s.source)).join("|")})$`)}});const n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(o,s)=>{if(n)return r(o,s);let i=!1;const a=[];for(const c of t.options){const u=c._zod.run({value:o.value,issues:[]},s);if(u instanceof Promise)a.push(u),i=!0;else{if(u.issues.length===0)return u;a.push(u)}}return i?Promise.all(a).then(c=>jr(c,o,e,s)):jr(a,o,e,s)}}),rf=h("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,$s.init(e,t);const n=e._zod.parse;I(e._zod,"propValues",()=>{const o={};for(const s of t.options){const i=s._zod.propValues;if(!i||Object.keys(i).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(s)}"`);for(const[a,c]of Object.entries(i)){o[a]||(o[a]=new Set);for(const u of c)o[a].add(u)}}return o});const r=_t(()=>{var i;const o=t.options,s=new Map;for(const a of o){const c=(i=a._zod.propValues)==null?void 0:i[t.discriminator];if(!c||c.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(const u of c){if(s.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);s.set(u,a)}}return s});e._zod.parse=(o,s)=>{const i=o.value;if(!ze(i))return o.issues.push({code:"invalid_type",expected:"object",input:i,inst:e}),o;const a=r.value.get(i==null?void 0:i[t.discriminator]);return a?a._zod.run(o,s):t.unionFallback?n(o,s):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:i,path:[t.discriminator],inst:e}),o)}}),of=h("$ZodIntersection",(e,t)=>{R.init(e,t),e._zod.parse=(n,r)=>{const o=n.value,s=t.left._zod.run({value:o,issues:[]},r),i=t.right._zod.run({value:o,issues:[]},r);return s instanceof Promise||i instanceof Promise?Promise.all([s,i]).then(([c,u])=>Qr(n,c,u)):Qr(n,s,i)}});function tn(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(ve(e)&&ve(t)){const n=Object.keys(t),r=Object.keys(e).filter(s=>n.indexOf(s)!==-1),o={...e,...t};for(const s of r){const i=tn(e[s],t[s]);if(!i.valid)return{valid:!1,mergeErrorPath:[s,...i.mergeErrorPath]};o[s]=i.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const o=e[r],s=t[r],i=tn(o,s);if(!i.valid)return{valid:!1,mergeErrorPath:[r,...i.mergeErrorPath]};n.push(i.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Qr(e,t,n){const r=new Map;let o;for(const a of t.issues)if(a.code==="unrecognized_keys"){o??(o=a);for(const c of a.keys)r.has(c)||r.set(c,{}),r.get(c).l=!0}else e.issues.push(a);for(const a of n.issues)if(a.code==="unrecognized_keys")for(const c of a.keys)r.has(c)||r.set(c,{}),r.get(c).r=!0;else e.issues.push(a);const s=[...r].filter(([,a])=>a.l&&a.r).map(([a])=>a);if(s.length&&o&&e.issues.push({...o,keys:s}),ye(e))return e;const i=tn(t.value,n.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}const sf=h("$ZodRecord",(e,t)=>{R.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!ve(o))return n.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),n;const s=[],i=t.keyType._zod.values;if(i){n.value={};const a=new Set;for(const u of i)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){a.add(typeof u=="number"?u.toString():u);const l=t.valueType._zod.run({value:o[u],issues:[]},r);l instanceof Promise?s.push(l.then(d=>{d.issues.length&&n.issues.push(...Ne(u,d.issues)),n.value[u]=d.value})):(l.issues.length&&n.issues.push(...Ne(u,l.issues)),n.value[u]=l.value)}let c;for(const u in o)a.has(u)||(c=c??[],c.push(u));c&&c.length>0&&n.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:c})}else{n.value={};for(const a of Reflect.ownKeys(o)){if(a==="__proto__")continue;let c=t.keyType._zod.run({value:a,issues:[]},r);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof a=="string"&&Os.test(a)&&c.issues.length){const d=t.keyType._zod.run({value:Number(a),issues:[]},r);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");d.issues.length===0&&(c=d)}if(c.issues.length){t.mode==="loose"?n.value[a]=o[a]:n.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(d=>ue(d,r,ce())),input:a,path:[a],inst:e});continue}const l=t.valueType._zod.run({value:o[a],issues:[]},r);l instanceof Promise?s.push(l.then(d=>{d.issues.length&&n.issues.push(...Ne(a,d.issues)),n.value[c.value]=d.value})):(l.issues.length&&n.issues.push(...Ne(a,l.issues)),n.value[c.value]=l.value)}}return s.length?Promise.all(s).then(()=>n):n}}),af=h("$ZodEnum",(e,t)=>{R.init(e,t);const n=ks(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(o=>hl.has(typeof o)).map(o=>typeof o=="string"?Ve(o):o.toString()).join("|")})$`),e._zod.parse=(o,s)=>{const i=o.value;return r.has(i)||o.issues.push({code:"invalid_value",values:n,input:i,inst:e}),o}}),cf=h("$ZodLiteral",(e,t)=>{if(R.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(r=>typeof r=="string"?Ve(r):r?Ve(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,o)=>{const s=r.value;return n.has(s)||r.issues.push({code:"invalid_value",values:t.values,input:s,inst:e}),r}}),uf=h("$ZodTransform",(e,t)=>{R.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new vs(e.constructor.name);const o=t.transform(n.value,n);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(i=>(n.value=i,n));if(o instanceof Promise)throw new Ie;return n.value=o,n}});function Hr(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const Ms=h("$ZodOptional",(e,t)=>{R.init(e,t),e._zod.optin="optional",e._zod.optout="optional",I(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),I(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Bn(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(s=>Hr(s,n.value)):Hr(o,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),lf=h("$ZodExactOptional",(e,t)=>{Ms.init(e,t),I(e._zod,"values",()=>t.innerType._zod.values),I(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),df=h("$ZodNullable",(e,t)=>{R.init(e,t),I(e._zod,"optin",()=>t.innerType._zod.optin),I(e._zod,"optout",()=>t.innerType._zod.optout),I(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Bn(n.source)}|null)$`):void 0}),I(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),ff=h("$ZodDefault",(e,t)=>{R.init(e,t),e._zod.optin="optional",I(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(s=>qr(s,t)):qr(o,t)}});function qr(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const mf=h("$ZodPrefault",(e,t)=>{R.init(e,t),e._zod.optin="optional",I(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),hf=h("$ZodNonOptional",(e,t)=>{R.init(e,t),I(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(s=>eo(s,e)):eo(o,e)}});function eo(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const gf=h("$ZodCatch",(e,t)=>{R.init(e,t),I(e._zod,"optin",()=>t.innerType._zod.optin),I(e._zod,"optout",()=>t.innerType._zod.optout),I(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(s=>(n.value=s.value,s.issues.length&&(n.value=t.catchValue({...n,error:{issues:s.issues.map(i=>ue(i,r,ce()))},input:n.value}),n.issues=[]),n)):(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(s=>ue(s,r,ce()))},input:n.value}),n.issues=[]),n)}}),pf=h("$ZodPipe",(e,t)=>{R.init(e,t),I(e._zod,"values",()=>t.in._zod.values),I(e._zod,"optin",()=>t.in._zod.optin),I(e._zod,"optout",()=>t.out._zod.optout),I(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const s=t.out._zod.run(n,r);return s instanceof Promise?s.then(i=>et(i,t.in,r)):et(s,t.in,r)}const o=t.in._zod.run(n,r);return o instanceof Promise?o.then(s=>et(s,t.out,r)):et(o,t.out,r)}});function et(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const bf=h("$ZodReadonly",(e,t)=>{R.init(e,t),I(e._zod,"propValues",()=>t.innerType._zod.propValues),I(e._zod,"values",()=>t.innerType._zod.values),I(e._zod,"optin",()=>{var n,r;return(r=(n=t.innerType)==null?void 0:n._zod)==null?void 0:r.optin}),I(e._zod,"optout",()=>{var n,r;return(r=(n=t.innerType)==null?void 0:n._zod)==null?void 0:r.optout}),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(to):to(o)}});function to(e){return e.value=Object.freeze(e.value),e}const Ef=h("$ZodCustom",(e,t)=>{D.init(e,t),R.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,o=t.fn(r);if(o instanceof Promise)return o.then(s=>no(s,n,r,e));no(o,n,r,e)}});function no(e,t,n,r){if(!e){const o={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(o.params=r._zod.def.params),t.issues.push(Je(o))}}var ro;class Af{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const o={...r,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function yf(){return new Af}(ro=globalThis).__zod_globalRegistry??(ro.__zod_globalRegistry=yf());const Fe=globalThis.__zod_globalRegistry;function Nf(e,t){return new e({type:"string",...A(t)})}function If(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...A(t)})}function oo(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...A(t)})}function Sf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...A(t)})}function _f(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...A(t)})}function Zf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...A(t)})}function Rf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...A(t)})}function wf(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...A(t)})}function vf(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...A(t)})}function Vf(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...A(t)})}function kf(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...A(t)})}function Bf(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...A(t)})}function Cf(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...A(t)})}function Ff(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...A(t)})}function Gf(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...A(t)})}function Tf(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...A(t)})}function Yf(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...A(t)})}function Uf(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...A(t)})}function Wf(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...A(t)})}function Of(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...A(t)})}function Xf(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...A(t)})}function zf(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...A(t)})}function Jf(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...A(t)})}function Df(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...A(t)})}function xf(e,t){return new e({type:"string",format:"date",check:"string_format",...A(t)})}function Kf(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...A(t)})}function Lf(e,t){return new e({type:"string",format:"duration",check:"string_format",...A(t)})}function $f(e,t){return new e({type:"number",checks:[],...A(t)})}function Mf(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...A(t)})}function Pf(e,t){return new e({type:"boolean",...A(t)})}function jf(e,t){return new e({type:"undefined",...A(t)})}function Qf(e,t){return new e({type:"null",...A(t)})}function Hf(e){return new e({type:"unknown"})}function qf(e,t){return new e({type:"never",...A(t)})}function so(e,t){return new zs({check:"less_than",...A(t),value:e,inclusive:!1})}function Wt(e,t){return new zs({check:"less_than",...A(t),value:e,inclusive:!0})}function io(e,t){return new Js({check:"greater_than",...A(t),value:e,inclusive:!1})}function Ot(e,t){return new Js({check:"greater_than",...A(t),value:e,inclusive:!0})}function ao(e,t){return new ud({check:"multiple_of",...A(t),value:e})}function Ps(e,t){return new dd({check:"max_length",...A(t),maximum:e})}function ft(e,t){return new fd({check:"min_length",...A(t),minimum:e})}function js(e,t){return new md({check:"length_equals",...A(t),length:e})}function em(e,t){return new hd({check:"string_format",format:"regex",...A(t),pattern:e})}function tm(e){return new gd({check:"string_format",format:"lowercase",...A(e)})}function nm(e){return new pd({check:"string_format",format:"uppercase",...A(e)})}function rm(e,t){return new bd({check:"string_format",format:"includes",...A(t),includes:e})}function om(e,t){return new Ed({check:"string_format",format:"starts_with",...A(t),prefix:e})}function sm(e,t){return new Ad({check:"string_format",format:"ends_with",...A(t),suffix:e})}function Be(e){return new yd({check:"overwrite",tx:e})}function im(e){return Be(t=>t.normalize(e))}function am(){return Be(e=>e.trim())}function cm(){return Be(e=>e.toLowerCase())}function um(){return Be(e=>e.toUpperCase())}function lm(){return Be(e=>fl(e))}function dm(e,t,n){return new e({type:"array",element:t,...A(n)})}function fm(e,t,n){const r=A(n);return r.abort??(r.abort=!0),new e({type:"custom",check:"custom",fn:t,...r})}function mm(e,t,n){return new e({type:"custom",check:"custom",fn:t,...A(n)})}function hm(e){const t=gm(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(Je(r,n.value,t._zod.def));else{const o=r;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=n.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),n.issues.push(Je(o))}},e(n.value,n)));return t}function gm(e,t){const n=new D({check:"custom",...A(t)});return n._zod.check=e,n}function mt(e){let t=(e==null?void 0:e.target)??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:(e==null?void 0:e.metadata)??Fe,target:t,unrepresentable:(e==null?void 0:e.unrepresentable)??"throw",override:(e==null?void 0:e.override)??(()=>{}),io:(e==null?void 0:e.io)??"output",counter:0,seen:new Map,cycles:(e==null?void 0:e.cycles)??"ref",reused:(e==null?void 0:e.reused)??"inline",external:(e==null?void 0:e.external)??void 0}}function Z(e,t,n={path:[],schemaPath:[]}){var l,d;var r;const o=e._zod.def,s=t.seen.get(e);if(s)return s.count++,n.schemaPath.includes(e)&&(s.cycle=n.path),s.schema;const i={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,i);const a=(d=(l=e._zod).toJSONSchema)==null?void 0:d.call(l);if(a)i.schema=a;else{const g={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,i.schema,g);else{const p=i.schema,b=t.processors[o.type];if(!b)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);b(e,t,p,g)}const f=e._zod.parent;f&&(i.ref||(i.ref=f),Z(f,t,g),t.seen.get(f).isParent=!0)}const c=t.metadataRegistry.get(e);return c&&Object.assign(i.schema,c),t.io==="input"&&J(e)&&(delete i.schema.examples,delete i.schema.default),t.io==="input"&&i.schema._prefault&&((r=i.schema).default??(r.default=i.schema._prefault)),delete i.schema._prefault,t.seen.get(e).schema}function ht(e,t){var i,a,c,u;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const l of e.seen.entries()){const d=(i=e.metadataRegistry.get(l[0]))==null?void 0:i.id;if(d){const g=r.get(d);if(g&&g!==l[0])throw new Error(`Duplicate schema id "${d}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(d,l[0])}}const o=l=>{var b;const d=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const E=(b=e.external.registry.get(l[0]))==null?void 0:b.id,_=e.external.uri??(X=>X);if(E)return{ref:_(E)};const N=l[1].defId??l[1].schema.id??`schema${e.counter++}`;return l[1].defId=N,{defId:N,ref:`${_("__shared")}#/${d}/${N}`}}if(l[1]===n)return{ref:"#"};const f=`#/${d}/`,p=l[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:f+p}},s=l=>{if(l[1].schema.$ref)return;const d=l[1],{ref:g,defId:f}=o(l);d.def={...d.schema},f&&(d.defId=f);const p=d.schema;for(const b in p)delete p[b];p.$ref=g};if(e.cycles==="throw")for(const l of e.seen.entries()){const d=l[1];if(d.cycle)throw new Error(`Cycle detected: #/${(a=d.cycle)==null?void 0:a.join("/")}/<root>
39
39
 
40
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const l of e.seen.entries()){const d=l[1];if(t===l[0]){s(l);continue}if(e.external){const f=(c=e.external.registry.get(l[0]))==null?void 0:c.id;if(t!==l[0]&&f){s(l);continue}}if((u=e.metadataRegistry.get(l[0]))==null?void 0:u.id){s(l);continue}if(d.cycle){s(l);continue}if(d.count>1&&e.reused==="ref"){s(l);continue}}}function gt(e,t){var i,a,c;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=u=>{const l=e.seen.get(u);if(l.ref===null)return;const d=l.def??l.schema,g={...d},f=l.ref;if(l.ref=null,f){r(f);const b=e.seen.get(f),E=b.schema;if(E.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(d.allOf=d.allOf??[],d.allOf.push(E)):Object.assign(d,E),Object.assign(d,g),u._zod.parent===f)for(const N in d)N==="$ref"||N==="allOf"||N in g||delete d[N];if(E.$ref&&b.def)for(const N in d)N==="$ref"||N==="allOf"||N in b.def&&JSON.stringify(d[N])===JSON.stringify(b.def[N])&&delete d[N]}const p=u._zod.parent;if(p&&p!==f){r(p);const b=e.seen.get(p);if(b!=null&&b.schema.$ref&&(d.$ref=b.schema.$ref,b.def))for(const E in d)E==="$ref"||E==="allOf"||E in b.def&&JSON.stringify(d[E])===JSON.stringify(b.def[E])&&delete d[E]}e.override({zodSchema:u,jsonSchema:d,path:l.path??[]})};for(const u of[...e.seen.entries()].reverse())r(u[0]);const o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,(i=e.external)!=null&&i.uri){const u=(a=e.external.registry.get(t))==null?void 0:a.id;if(!u)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(u)}Object.assign(o,n.def??n.schema);const s=((c=e.external)==null?void 0:c.defs)??{};for(const u of e.seen.entries()){const l=u[1];l.def&&l.defId&&(s[l.defId]=l.def)}e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?o.$defs=s:o.definitions=s);try{const u=JSON.parse(JSON.stringify(o));return Object.defineProperty(u,"~standard",{value:{...t["~standard"],jsonSchema:{input:pt(t,"input",e.processors),output:pt(t,"output",e.processors)}},enumerable:!1,writable:!1}),u}catch{throw new Error("Error converting schema to JSON.")}}function J(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return J(r.element,n);if(r.type==="set")return J(r.valueType,n);if(r.type==="lazy")return J(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return J(r.innerType,n);if(r.type==="intersection")return J(r.left,n)||J(r.right,n);if(r.type==="record"||r.type==="map")return J(r.keyType,n)||J(r.valueType,n);if(r.type==="pipe")return J(r.in,n)||J(r.out,n);if(r.type==="object"){for(const o in r.shape)if(J(r.shape[o],n))return!0;return!1}if(r.type==="union"){for(const o of r.options)if(J(o,n))return!0;return!1}if(r.type==="tuple"){for(const o of r.items)if(J(o,n))return!0;return!!(r.rest&&J(r.rest,n))}return!1}const pm=(e,t={})=>n=>{const r=mt({...n,processors:t});return Z(e,r),ht(r,e),gt(r,e)},pt=(e,t,n={})=>r=>{const{libraryOptions:o,target:s}=r??{},i=mt({...o??{},target:s,io:t,processors:n});return Z(e,i),ht(i,e),gt(i,e)},bm={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},js=(e,t,n,r)=>{const o=n;o.type="string";const{minimum:s,maximum:i,format:a,patterns:c,contentEncoding:u}=e._zod.bag;if(typeof s=="number"&&(o.minLength=s),typeof i=="number"&&(o.maxLength=i),a&&(o.format=bm[a]??a,o.format===""&&delete o.format,a==="time"&&delete o.format),u&&(o.contentEncoding=u),c&&c.size>0){const l=[...c];l.length===1?o.pattern=l[0].source:l.length>1&&(o.allOf=[...l.map(d=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},Hs=(e,t,n,r)=>{const o=n,{minimum:s,maximum:i,format:a,multipleOf:c,exclusiveMaximum:u,exclusiveMinimum:l}=e._zod.bag;typeof a=="string"&&a.includes("int")?o.type="integer":o.type="number",typeof l=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(o.minimum=l,o.exclusiveMinimum=!0):o.exclusiveMinimum=l),typeof s=="number"&&(o.minimum=s,typeof l=="number"&&t.target!=="draft-04"&&(l>=s?delete o.minimum:delete o.exclusiveMinimum)),typeof u=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(o.maximum=u,o.exclusiveMaximum=!0):o.exclusiveMaximum=u),typeof i=="number"&&(o.maximum=i,typeof u=="number"&&t.target!=="draft-04"&&(u<=i?delete o.maximum:delete o.exclusiveMaximum)),typeof c=="number"&&(o.multipleOf=c)},qs=(e,t,n,r)=>{n.type="boolean"},Em=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},Am=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},ei=(e,t,n,r)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},ti=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},ym=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},ni=(e,t,n,r)=>{n.not={}},Nm=(e,t,n,r)=>{},ri=(e,t,n,r)=>{},Im=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},oi=(e,t,n,r)=>{const o=e._zod.def,s=Vs(o.entries);s.every(i=>typeof i=="number")&&(n.type="number"),s.every(i=>typeof i=="string")&&(n.type="string"),n.enum=s},si=(e,t,n,r)=>{const o=e._zod.def,s=[];for(const i of o.values)if(i===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof i=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");s.push(Number(i))}else s.push(i);if(s.length!==0)if(s.length===1){const i=s[0];n.type=i===null?"null":typeof i,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[i]:n.const=i}else s.every(i=>typeof i=="number")&&(n.type="number"),s.every(i=>typeof i=="string")&&(n.type="string"),s.every(i=>typeof i=="boolean")&&(n.type="boolean"),s.every(i=>i===null)&&(n.type="null"),n.enum=s},Sm=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},_m=(e,t,n,r)=>{const o=n,s=e._zod.pattern;if(!s)throw new Error("Pattern not found in template literal");o.type="string",o.pattern=s.source},Zm=(e,t,n,r)=>{const o=n,s={type:"string",format:"binary",contentEncoding:"binary"},{minimum:i,maximum:a,mime:c}=e._zod.bag;i!==void 0&&(s.minLength=i),a!==void 0&&(s.maxLength=a),c?c.length===1?(s.contentMediaType=c[0],Object.assign(o,s)):(Object.assign(o,s),o.anyOf=c.map(u=>({contentMediaType:u}))):Object.assign(o,s)},Rm=(e,t,n,r)=>{n.type="boolean"},ii=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},wm=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},ai=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},vm=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},km=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},ci=(e,t,n,r)=>{const o=n,s=e._zod.def,{minimum:i,maximum:a}=e._zod.bag;typeof i=="number"&&(o.minItems=i),typeof a=="number"&&(o.maxItems=a),o.type="array",o.items=Z(s.element,t,{...r,path:[...r.path,"items"]})},ui=(e,t,n,r)=>{var u;const o=n,s=e._zod.def;o.type="object",o.properties={};const i=s.shape;for(const l in i)o.properties[l]=Z(i[l],t,{...r,path:[...r.path,"properties",l]});const a=new Set(Object.keys(i)),c=new Set([...a].filter(l=>{const d=s.shape[l]._zod;return t.io==="input"?d.optin===void 0:d.optout===void 0}));c.size>0&&(o.required=Array.from(c)),((u=s.catchall)==null?void 0:u._zod.def.type)==="never"?o.additionalProperties=!1:s.catchall?s.catchall&&(o.additionalProperties=Z(s.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},li=(e,t,n,r)=>{const o=e._zod.def,s=o.inclusive===!1,i=o.options.map((a,c)=>Z(a,t,{...r,path:[...r.path,s?"oneOf":"anyOf",c]}));s?n.oneOf=i:n.anyOf=i},di=(e,t,n,r)=>{const o=e._zod.def,s=Z(o.left,t,{...r,path:[...r.path,"allOf",0]}),i=Z(o.right,t,{...r,path:[...r.path,"allOf",1]}),a=u=>"allOf"in u&&Object.keys(u).length===1,c=[...a(s)?s.allOf:[s],...a(i)?i.allOf:[i]];n.allOf=c},Vm=(e,t,n,r)=>{const o=n,s=e._zod.def;o.type="array";const i=t.target==="draft-2020-12"?"prefixItems":"items",a=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=s.items.map((g,f)=>Z(g,t,{...r,path:[...r.path,i,f]})),u=s.rest?Z(s.rest,t,{...r,path:[...r.path,a,...t.target==="openapi-3.0"?[s.items.length]:[]]}):null;t.target==="draft-2020-12"?(o.prefixItems=c,u&&(o.items=u)):t.target==="openapi-3.0"?(o.items={anyOf:c},u&&o.items.anyOf.push(u),o.minItems=c.length,u||(o.maxItems=c.length)):(o.items=c,u&&(o.additionalItems=u));const{minimum:l,maximum:d}=e._zod.bag;typeof l=="number"&&(o.minItems=l),typeof d=="number"&&(o.maxItems=d)},fi=(e,t,n,r)=>{const o=n,s=e._zod.def;o.type="object";const i=s.keyType,a=i._zod.bag,c=a==null?void 0:a.patterns;if(s.mode==="loose"&&c&&c.size>0){const l=Z(s.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});o.patternProperties={};for(const d of c)o.patternProperties[d.source]=l}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(o.propertyNames=Z(s.keyType,t,{...r,path:[...r.path,"propertyNames"]})),o.additionalProperties=Z(s.valueType,t,{...r,path:[...r.path,"additionalProperties"]});const u=i._zod.values;if(u){const l=[...u].filter(d=>typeof d=="string"||typeof d=="number");l.length>0&&(o.required=l)}},mi=(e,t,n,r)=>{const o=e._zod.def,s=Z(o.innerType,t,r),i=t.seen.get(e);t.target==="openapi-3.0"?(i.ref=o.innerType,n.nullable=!0):n.anyOf=[s,{type:"null"}]},hi=(e,t,n,r)=>{const o=e._zod.def;Z(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType},gi=(e,t,n,r)=>{const o=e._zod.def;Z(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType,n.default=JSON.parse(JSON.stringify(o.defaultValue))},pi=(e,t,n,r)=>{const o=e._zod.def;Z(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(o.defaultValue)))},bi=(e,t,n,r)=>{const o=e._zod.def;Z(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType;let i;try{i=o.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=i},Ei=(e,t,n,r)=>{const o=e._zod.def,s=t.io==="input"?o.in._zod.def.type==="transform"?o.out:o.in:o.out;Z(s,t,r);const i=t.seen.get(e);i.ref=s},Ai=(e,t,n,r)=>{const o=e._zod.def;Z(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType,n.readOnly=!0},Bm=(e,t,n,r)=>{const o=e._zod.def;Z(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType},Yn=(e,t,n,r)=>{const o=e._zod.def;Z(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType},Cm=(e,t,n,r)=>{const o=e._zod.innerType;Z(o,t,r);const s=t.seen.get(e);s.ref=o},co={string:js,number:Hs,boolean:qs,bigint:Em,symbol:Am,null:ei,undefined:ti,void:ym,never:ni,any:Nm,unknown:ri,date:Im,enum:oi,literal:si,nan:Sm,template_literal:_m,file:Zm,success:Rm,custom:ii,function:wm,transform:ai,map:vm,set:km,array:ci,object:ui,union:li,intersection:di,tuple:Vm,record:fi,nullable:mi,nonoptional:hi,default:gi,prefault:pi,catch:bi,pipe:Ei,readonly:Ai,promise:Bm,optional:Yn,lazy:Cm};function Fm(e,t){if("_idmap"in e){const r=e,o=mt({...t,processors:co}),s={};for(const c of r._idmap.entries()){const[u,l]=c;Z(l,o)}const i={},a={registry:r,uri:t==null?void 0:t.uri,defs:s};o.external=a;for(const c of r._idmap.entries()){const[u,l]=c;ht(o,l),i[u]=gt(o,l)}if(Object.keys(s).length>0){const c=o.target==="draft-2020-12"?"$defs":"definitions";i.__shared={[c]:s}}return{schemas:i}}const n=mt({...t,processors:co});return Z(e,n),ht(n,e),gt(n,e)}const Gm=h("ZodISODateTime",(e,t)=>{Gd.init(e,t),C.init(e,t)});function Tm(e){return Df(Gm,e)}const Ym=h("ZodISODate",(e,t)=>{Td.init(e,t),C.init(e,t)});function Um(e){return xf(Ym,e)}const Wm=h("ZodISOTime",(e,t)=>{Yd.init(e,t),C.init(e,t)});function Xm(e){return Kf(Wm,e)}const Om=h("ZodISODuration",(e,t)=>{Ud.init(e,t),C.init(e,t)});function zm(e){return Lf(Om,e)}const Jm=(e,t)=>{Gs.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Zl(e,n)},flatten:{value:n=>_l(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,en,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,en,2)}},isEmpty:{get(){return e.issues.length===0}}})},M=h("ZodError",Jm,{Parent:Error}),Dm=Fn(M),xm=Gn(M),Km=Zt(M),Lm=Rt(M),$m=vl(M),Mm=kl(M),Pm=Vl(M),Qm=Bl(M),jm=Cl(M),Hm=Fl(M),qm=Gl(M),eh=Tl(M),w=h("ZodType",(e,t)=>(R.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:pt(e,"input"),output:pt(e,"output")}}),e.toJSONSchema=pm(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(de(t,{checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0}),e.with=e.check,e.clone=(n,r)=>fe(e,n,r),e.brand=()=>e,e.register=((n,r)=>(n.add(e,r),e)),e.parse=(n,r)=>Dm(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>Km(e,n,r),e.parseAsync=async(n,r)=>xm(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>Lm(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>$m(e,n,r),e.decode=(n,r)=>Mm(e,n,r),e.encodeAsync=async(n,r)=>Pm(e,n,r),e.decodeAsync=async(n,r)=>Qm(e,n,r),e.safeEncode=(n,r)=>jm(e,n,r),e.safeDecode=(n,r)=>Hm(e,n,r),e.safeEncodeAsync=async(n,r)=>qm(e,n,r),e.safeDecodeAsync=async(n,r)=>eh(e,n,r),e.refine=(n,r)=>e.check($h(n,r)),e.superRefine=n=>e.check(Mh(n)),e.overwrite=n=>e.check(Be(n)),e.optional=()=>lo(e),e.exactOptional=()=>Th(e),e.nullable=()=>fo(e),e.nullish=()=>lo(fo(e)),e.nonoptional=n=>zh(e,n),e.array=()=>Ii(e),e.or=n=>wh([e,n]),e.and=n=>Vh(e,n),e.transform=n=>on(e,Zi(n)),e.default=n=>Wh(e,n),e.prefault=n=>Oh(e,n),e.catch=n=>Dh(e,n),e.pipe=n=>on(e,n),e.readonly=()=>Lh(e),e.describe=n=>{const r=e.clone();return Fe.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){var n;return(n=Fe.get(e))==null?void 0:n.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Fe.get(e);const r=e.clone();return Fe.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),yi=h("_ZodString",(e,t)=>{Tn.init(e,t),w.init(e,t),e._zod.processJSONSchema=(r,o,s)=>js(e,r,o);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...r)=>e.check(em(...r)),e.includes=(...r)=>e.check(rm(...r)),e.startsWith=(...r)=>e.check(om(...r)),e.endsWith=(...r)=>e.check(sm(...r)),e.min=(...r)=>e.check(ft(...r)),e.max=(...r)=>e.check(Ps(...r)),e.length=(...r)=>e.check(Qs(...r)),e.nonempty=(...r)=>e.check(ft(1,...r)),e.lowercase=r=>e.check(tm(r)),e.uppercase=r=>e.check(nm(r)),e.trim=()=>e.check(am()),e.normalize=(...r)=>e.check(im(...r)),e.toLowerCase=()=>e.check(cm()),e.toUpperCase=()=>e.check(um()),e.slugify=()=>e.check(lm())}),th=h("ZodString",(e,t)=>{Tn.init(e,t),yi.init(e,t),e.email=n=>e.check(If(nh,n)),e.url=n=>e.check(wf(rh,n)),e.jwt=n=>e.check(Jf(Eh,n)),e.emoji=n=>e.check(vf(oh,n)),e.guid=n=>e.check(oo(uo,n)),e.uuid=n=>e.check(Sf(tt,n)),e.uuidv4=n=>e.check(_f(tt,n)),e.uuidv6=n=>e.check(Zf(tt,n)),e.uuidv7=n=>e.check(Rf(tt,n)),e.nanoid=n=>e.check(kf(sh,n)),e.guid=n=>e.check(oo(uo,n)),e.cuid=n=>e.check(Vf(ih,n)),e.cuid2=n=>e.check(Bf(ah,n)),e.ulid=n=>e.check(Cf(ch,n)),e.base64=n=>e.check(Xf(gh,n)),e.base64url=n=>e.check(Of(ph,n)),e.xid=n=>e.check(Ff(uh,n)),e.ksuid=n=>e.check(Gf(lh,n)),e.ipv4=n=>e.check(Tf(dh,n)),e.ipv6=n=>e.check(Yf(fh,n)),e.cidrv4=n=>e.check(Uf(mh,n)),e.cidrv6=n=>e.check(Wf(hh,n)),e.e164=n=>e.check(zf(bh,n)),e.datetime=n=>e.check(Tm(n)),e.date=n=>e.check(Um(n)),e.time=n=>e.check(Xm(n)),e.duration=n=>e.check(zm(n))});function $(e){return Nf(th,e)}const C=h("ZodStringFormat",(e,t)=>{V.init(e,t),yi.init(e,t)}),nh=h("ZodEmail",(e,t)=>{Zd.init(e,t),C.init(e,t)}),uo=h("ZodGUID",(e,t)=>{Sd.init(e,t),C.init(e,t)}),tt=h("ZodUUID",(e,t)=>{_d.init(e,t),C.init(e,t)}),rh=h("ZodURL",(e,t)=>{Rd.init(e,t),C.init(e,t)}),oh=h("ZodEmoji",(e,t)=>{wd.init(e,t),C.init(e,t)}),sh=h("ZodNanoID",(e,t)=>{vd.init(e,t),C.init(e,t)}),ih=h("ZodCUID",(e,t)=>{kd.init(e,t),C.init(e,t)}),ah=h("ZodCUID2",(e,t)=>{Vd.init(e,t),C.init(e,t)}),ch=h("ZodULID",(e,t)=>{Bd.init(e,t),C.init(e,t)}),uh=h("ZodXID",(e,t)=>{Cd.init(e,t),C.init(e,t)}),lh=h("ZodKSUID",(e,t)=>{Fd.init(e,t),C.init(e,t)}),dh=h("ZodIPv4",(e,t)=>{Wd.init(e,t),C.init(e,t)}),fh=h("ZodIPv6",(e,t)=>{Xd.init(e,t),C.init(e,t)}),mh=h("ZodCIDRv4",(e,t)=>{Od.init(e,t),C.init(e,t)}),hh=h("ZodCIDRv6",(e,t)=>{zd.init(e,t),C.init(e,t)}),gh=h("ZodBase64",(e,t)=>{Jd.init(e,t),C.init(e,t)}),ph=h("ZodBase64URL",(e,t)=>{xd.init(e,t),C.init(e,t)}),bh=h("ZodE164",(e,t)=>{Kd.init(e,t),C.init(e,t)}),Eh=h("ZodJWT",(e,t)=>{$d.init(e,t),C.init(e,t)}),Ni=h("ZodNumber",(e,t)=>{xs.init(e,t),w.init(e,t),e._zod.processJSONSchema=(r,o,s)=>Hs(e,r,o),e.gt=(r,o)=>e.check(io(r,o)),e.gte=(r,o)=>e.check(Xt(r,o)),e.min=(r,o)=>e.check(Xt(r,o)),e.lt=(r,o)=>e.check(so(r,o)),e.lte=(r,o)=>e.check(Wt(r,o)),e.max=(r,o)=>e.check(Wt(r,o)),e.int=r=>e.check(De(r)),e.safe=r=>e.check(De(r)),e.positive=r=>e.check(io(0,r)),e.nonnegative=r=>e.check(Xt(0,r)),e.negative=r=>e.check(so(0,r)),e.nonpositive=r=>e.check(Wt(0,r)),e.multipleOf=(r,o)=>e.check(ao(r,o)),e.step=(r,o)=>e.check(ao(r,o)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function Vg(e){return $f(Ni,e)}const Ah=h("ZodNumberFormat",(e,t)=>{Md.init(e,t),Ni.init(e,t)});function De(e){return Mf(Ah,e)}const yh=h("ZodBoolean",(e,t)=>{Pd.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>qs(e,n,r)});function Un(e){return Pf(yh,e)}const Nh=h("ZodUndefined",(e,t)=>{Qd.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ti(e,n)});function Bg(e){return Qf(Nh,e)}const Ih=h("ZodNull",(e,t)=>{jd.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ei(e,n,r)});function Cg(e){return jf(Ih,e)}const Sh=h("ZodUnknown",(e,t)=>{Hd.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ri()});function nn(){return Hf(Sh)}const _h=h("ZodNever",(e,t)=>{qd.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ni(e,n,r)});function Zh(e){return qf(_h,e)}const Rh=h("ZodArray",(e,t)=>{ef.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ci(e,n,r,o),e.element=t.element,e.min=(n,r)=>e.check(ft(n,r)),e.nonempty=n=>e.check(ft(1,n)),e.max=(n,r)=>e.check(Ps(n,r)),e.length=(n,r)=>e.check(Qs(n,r)),e.unwrap=()=>e.element});function Ii(e,t){return dm(Rh,e,t)}const Si=h("ZodObject",(e,t)=>{nf.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ui(e,n,r,o),I(e,"shape",()=>t.shape),e.keyof=()=>be(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:nn()}),e.loose=()=>e.clone({...e._zod.def,catchall:nn()}),e.strict=()=>e.clone({...e._zod.def,catchall:Zh()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>Al(e,n),e.safeExtend=n=>yl(e,n),e.merge=n=>Nl(e,n),e.pick=n=>bl(e,n),e.omit=n=>El(e,n),e.partial=(...n)=>Il(Ri,e,n[0]),e.required=(...n)=>Sl(wi,e,n[0])});function te(e,t){const n={type:"object",shape:e??{},...A(t)};return new Si(n)}function Fg(e,t){return new Si({type:"object",shape:e,catchall:nn(),...A(t)})}const _i=h("ZodUnion",(e,t)=>{$s.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>li(e,n,r,o),e.options=t.options});function wh(e,t){return new _i({type:"union",options:e,...A(t)})}const vh=h("ZodDiscriminatedUnion",(e,t)=>{_i.init(e,t),rf.init(e,t)});function Gg(e,t,n){return new vh({type:"union",options:t,discriminator:e,...A(n)})}const kh=h("ZodIntersection",(e,t)=>{of.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>di(e,n,r,o)});function Vh(e,t){return new kh({type:"intersection",left:e,right:t})}const Bh=h("ZodRecord",(e,t)=>{sf.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>fi(e,n,r,o),e.keyType=t.keyType,e.valueType=t.valueType});function Tg(e,t,n){return new Bh({type:"record",keyType:e,valueType:t,...A(n)})}const rn=h("ZodEnum",(e,t)=>{af.init(e,t),w.init(e,t),e._zod.processJSONSchema=(r,o,s)=>oi(e,r,o),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,o)=>{const s={};for(const i of r)if(n.has(i))s[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new rn({...t,checks:[],...A(o),entries:s})},e.exclude=(r,o)=>{const s={...t.entries};for(const i of r)if(n.has(i))delete s[i];else throw new Error(`Key ${i} not found in enum`);return new rn({...t,checks:[],...A(o),entries:s})}});function be(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new rn({type:"enum",entries:n,...A(t)})}const Ch=h("ZodLiteral",(e,t)=>{cf.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>si(e,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Yg(e,t){return new Ch({type:"literal",values:Array.isArray(e)?e:[e],...A(t)})}const Fh=h("ZodTransform",(e,t)=>{uf.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ai(e,n),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new vs(e.constructor.name);n.addIssue=s=>{if(typeof s=="string")n.issues.push(Je(s,n.value,t));else{const i=s;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=e),n.issues.push(Je(i))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(s=>(n.value=s,n)):(n.value=o,n)}});function Zi(e){return new Fh({type:"transform",transform:e})}const Ri=h("ZodOptional",(e,t)=>{Ms.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Yn(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function lo(e){return new Ri({type:"optional",innerType:e})}const Gh=h("ZodExactOptional",(e,t)=>{lf.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Yn(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function Th(e){return new Gh({type:"optional",innerType:e})}const Yh=h("ZodNullable",(e,t)=>{df.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>mi(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function fo(e){return new Yh({type:"nullable",innerType:e})}const Uh=h("ZodDefault",(e,t)=>{ff.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>gi(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Wh(e,t){return new Uh({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Cs(t)}})}const Xh=h("ZodPrefault",(e,t)=>{mf.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>pi(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function Oh(e,t){return new Xh({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Cs(t)}})}const wi=h("ZodNonOptional",(e,t)=>{hf.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>hi(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function zh(e,t){return new wi({type:"nonoptional",innerType:e,...A(t)})}const Jh=h("ZodCatch",(e,t)=>{gf.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>bi(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Dh(e,t){return new Jh({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const xh=h("ZodPipe",(e,t)=>{pf.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Ei(e,n,r,o),e.in=t.in,e.out=t.out});function on(e,t){return new xh({type:"pipe",in:e,out:t})}const Kh=h("ZodReadonly",(e,t)=>{bf.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Ai(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function Lh(e){return new Kh({type:"readonly",innerType:e})}const vi=h("ZodCustom",(e,t)=>{Ef.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ii(e,n)});function Ug(e,t){return fm(vi,e??(()=>!0),t)}function $h(e,t={}){return mm(vi,e,t)}function Mh(e){return hm(e)}function Wg(e,t){return on(Zi(e),t)}const ki=be(["primary","danger","outline","ghost"]),Vi=be(["sm","md","lg"]),Ph=be(["sm","md","lg","xl"]),Qh=be(["rectangular","circular"]),jh=be(["success","error","warning","info"]),Hh=be(["top","bottom","left","right"]),qh=te({variant:ki.optional().describe("Visual style (default primary)."),size:Vi.optional().describe("Button size (default md)."),disabled:Un().optional()}),eg=te({label:$(),description:$().optional()}),tg=te({label:$().describe("Main action label."),variant:ki.optional(),size:Vi.optional(),options:Ii(eg).describe("Secondary options shown in the dropdown.")}),ng=te({variant:jh.optional().describe("Severity (default info)."),dismissible:Un().optional()}),rg=te({size:Ph.optional().describe("Spinner size (default md)."),label:$().optional().describe("Accessible label (default 'Loading')."),liveRegion:Un().optional().describe("Announce status to screen readers via aria-live.")}),og=te({width:$().optional().describe("CSS width (default 100%)."),height:$().optional().describe("CSS height (default 1rem)."),borderRadius:$().optional(),variant:Qh.optional()}),sg=te({lines:De().min(1).optional().describe("Number of lines (default 3)."),lastLineWidth:$().optional().describe("Width of the last line (default 60%)."),lineHeight:$().optional(),gap:$().optional()}),ig=te({lines:De().min(1).optional().describe("Body text lines (default 2).")}),ag=te({text:$().describe("Tooltip text."),placement:Hh.optional().describe("Placement relative to the anchor (default top)."),delayMs:De().min(0).optional()}),cg=te({text:$().describe("Text to copy to the clipboard.")}),Bi={Button:qh,SplitButton:tg,Callout:ng,Spinner:rg,Skeleton:og,SkeletonText:sg,SkeletonCard:ig,Tooltip:ag,CopyButton:cg},mo={Button:{description:"Clickable action button with visual variants and sizes.",example:'<Button variant="primary">Deploy</Button>'},SplitButton:{description:"Primary action button with a dropdown of secondary options.",example:'<SplitButton label="Save" onClick={() => {}} options={[{ label: "Save as draft", onClick: () => {} }]} />'},Callout:{description:"Inline message box for info, success, warning, or error notes.",example:'<Callout variant="warning">Low disk space.</Callout>'},Spinner:{description:"Loading/progress spinner.",example:'<Spinner size="lg" label="Building…" />'},Skeleton:{description:"Rectangular or circular loading placeholder block.",example:'<Skeleton width="200px" height="2rem" />'},SkeletonText:{description:"Multi-line text loading placeholder.",example:"<SkeletonText lines={4} />"},SkeletonCard:{description:"Card-shaped loading placeholder (title + body lines).",example:"<SkeletonCard lines={3} />"},Tooltip:{description:"Hover tooltip wrapping its children.",example:'<Tooltip text="Copy to clipboard"><Button>Copy</Button></Tooltip>'},CopyButton:{description:"Button that copies the given text to the clipboard.",example:'<CopyButton text="npm install grackle" />'}},ug=Object.fromEntries(Object.entries(Bi).map(([e,t])=>[e,Fm(t)]));Object.keys(Bi).map(e=>({name:e,description:mo[e].description,propsSchema:JSON.stringify(ug[e]),example:mo[e].example}));export{yu as A,Vh as B,G as C,yg as D,Wg as E,Tm as F,mg as G,Gg as H,Rl as I,Bg as J,Zh as K,bg as M,Ig as O,Ag as R,Eg as S,Ng as W,be as _,dg as a,hg as b,fg as c,gg as d,pg as e,kg as f,Sg as g,S as h,_g as i,wg as j,Un as k,Yg as l,Ii as m,nn as n,te as o,vg as p,Vg as q,Tg as r,$ as s,Zg as t,wh as u,Fg as v,Rg as w,Ug as x,lo as y,Cg as z};
40
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const l of e.seen.entries()){const d=l[1];if(t===l[0]){s(l);continue}if(e.external){const f=(c=e.external.registry.get(l[0]))==null?void 0:c.id;if(t!==l[0]&&f){s(l);continue}}if((u=e.metadataRegistry.get(l[0]))==null?void 0:u.id){s(l);continue}if(d.cycle){s(l);continue}if(d.count>1&&e.reused==="ref"){s(l);continue}}}function gt(e,t){var i,a,c;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=u=>{const l=e.seen.get(u);if(l.ref===null)return;const d=l.def??l.schema,g={...d},f=l.ref;if(l.ref=null,f){r(f);const b=e.seen.get(f),E=b.schema;if(E.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(d.allOf=d.allOf??[],d.allOf.push(E)):Object.assign(d,E),Object.assign(d,g),u._zod.parent===f)for(const N in d)N==="$ref"||N==="allOf"||N in g||delete d[N];if(E.$ref&&b.def)for(const N in d)N==="$ref"||N==="allOf"||N in b.def&&JSON.stringify(d[N])===JSON.stringify(b.def[N])&&delete d[N]}const p=u._zod.parent;if(p&&p!==f){r(p);const b=e.seen.get(p);if(b!=null&&b.schema.$ref&&(d.$ref=b.schema.$ref,b.def))for(const E in d)E==="$ref"||E==="allOf"||E in b.def&&JSON.stringify(d[E])===JSON.stringify(b.def[E])&&delete d[E]}e.override({zodSchema:u,jsonSchema:d,path:l.path??[]})};for(const u of[...e.seen.entries()].reverse())r(u[0]);const o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,(i=e.external)!=null&&i.uri){const u=(a=e.external.registry.get(t))==null?void 0:a.id;if(!u)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(u)}Object.assign(o,n.def??n.schema);const s=((c=e.external)==null?void 0:c.defs)??{};for(const u of e.seen.entries()){const l=u[1];l.def&&l.defId&&(s[l.defId]=l.def)}e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?o.$defs=s:o.definitions=s);try{const u=JSON.parse(JSON.stringify(o));return Object.defineProperty(u,"~standard",{value:{...t["~standard"],jsonSchema:{input:pt(t,"input",e.processors),output:pt(t,"output",e.processors)}},enumerable:!1,writable:!1}),u}catch{throw new Error("Error converting schema to JSON.")}}function J(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return J(r.element,n);if(r.type==="set")return J(r.valueType,n);if(r.type==="lazy")return J(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return J(r.innerType,n);if(r.type==="intersection")return J(r.left,n)||J(r.right,n);if(r.type==="record"||r.type==="map")return J(r.keyType,n)||J(r.valueType,n);if(r.type==="pipe")return J(r.in,n)||J(r.out,n);if(r.type==="object"){for(const o in r.shape)if(J(r.shape[o],n))return!0;return!1}if(r.type==="union"){for(const o of r.options)if(J(o,n))return!0;return!1}if(r.type==="tuple"){for(const o of r.items)if(J(o,n))return!0;return!!(r.rest&&J(r.rest,n))}return!1}const pm=(e,t={})=>n=>{const r=mt({...n,processors:t});return Z(e,r),ht(r,e),gt(r,e)},pt=(e,t,n={})=>r=>{const{libraryOptions:o,target:s}=r??{},i=mt({...o??{},target:s,io:t,processors:n});return Z(e,i),ht(i,e),gt(i,e)},bm={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Qs=(e,t,n,r)=>{const o=n;o.type="string";const{minimum:s,maximum:i,format:a,patterns:c,contentEncoding:u}=e._zod.bag;if(typeof s=="number"&&(o.minLength=s),typeof i=="number"&&(o.maxLength=i),a&&(o.format=bm[a]??a,o.format===""&&delete o.format,a==="time"&&delete o.format),u&&(o.contentEncoding=u),c&&c.size>0){const l=[...c];l.length===1?o.pattern=l[0].source:l.length>1&&(o.allOf=[...l.map(d=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},Hs=(e,t,n,r)=>{const o=n,{minimum:s,maximum:i,format:a,multipleOf:c,exclusiveMaximum:u,exclusiveMinimum:l}=e._zod.bag;typeof a=="string"&&a.includes("int")?o.type="integer":o.type="number",typeof l=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(o.minimum=l,o.exclusiveMinimum=!0):o.exclusiveMinimum=l),typeof s=="number"&&(o.minimum=s,typeof l=="number"&&t.target!=="draft-04"&&(l>=s?delete o.minimum:delete o.exclusiveMinimum)),typeof u=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(o.maximum=u,o.exclusiveMaximum=!0):o.exclusiveMaximum=u),typeof i=="number"&&(o.maximum=i,typeof u=="number"&&t.target!=="draft-04"&&(u<=i?delete o.maximum:delete o.exclusiveMaximum)),typeof c=="number"&&(o.multipleOf=c)},qs=(e,t,n,r)=>{n.type="boolean"},Em=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},Am=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},ei=(e,t,n,r)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},ti=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},ym=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},ni=(e,t,n,r)=>{n.not={}},Nm=(e,t,n,r)=>{},ri=(e,t,n,r)=>{},Im=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},oi=(e,t,n,r)=>{const o=e._zod.def,s=ks(o.entries);s.every(i=>typeof i=="number")&&(n.type="number"),s.every(i=>typeof i=="string")&&(n.type="string"),n.enum=s},si=(e,t,n,r)=>{const o=e._zod.def,s=[];for(const i of o.values)if(i===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof i=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");s.push(Number(i))}else s.push(i);if(s.length!==0)if(s.length===1){const i=s[0];n.type=i===null?"null":typeof i,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[i]:n.const=i}else s.every(i=>typeof i=="number")&&(n.type="number"),s.every(i=>typeof i=="string")&&(n.type="string"),s.every(i=>typeof i=="boolean")&&(n.type="boolean"),s.every(i=>i===null)&&(n.type="null"),n.enum=s},Sm=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},_m=(e,t,n,r)=>{const o=n,s=e._zod.pattern;if(!s)throw new Error("Pattern not found in template literal");o.type="string",o.pattern=s.source},Zm=(e,t,n,r)=>{const o=n,s={type:"string",format:"binary",contentEncoding:"binary"},{minimum:i,maximum:a,mime:c}=e._zod.bag;i!==void 0&&(s.minLength=i),a!==void 0&&(s.maxLength=a),c?c.length===1?(s.contentMediaType=c[0],Object.assign(o,s)):(Object.assign(o,s),o.anyOf=c.map(u=>({contentMediaType:u}))):Object.assign(o,s)},Rm=(e,t,n,r)=>{n.type="boolean"},ii=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},wm=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},ai=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},vm=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},Vm=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},ci=(e,t,n,r)=>{const o=n,s=e._zod.def,{minimum:i,maximum:a}=e._zod.bag;typeof i=="number"&&(o.minItems=i),typeof a=="number"&&(o.maxItems=a),o.type="array",o.items=Z(s.element,t,{...r,path:[...r.path,"items"]})},ui=(e,t,n,r)=>{var u;const o=n,s=e._zod.def;o.type="object",o.properties={};const i=s.shape;for(const l in i)o.properties[l]=Z(i[l],t,{...r,path:[...r.path,"properties",l]});const a=new Set(Object.keys(i)),c=new Set([...a].filter(l=>{const d=s.shape[l]._zod;return t.io==="input"?d.optin===void 0:d.optout===void 0}));c.size>0&&(o.required=Array.from(c)),((u=s.catchall)==null?void 0:u._zod.def.type)==="never"?o.additionalProperties=!1:s.catchall?s.catchall&&(o.additionalProperties=Z(s.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},li=(e,t,n,r)=>{const o=e._zod.def,s=o.inclusive===!1,i=o.options.map((a,c)=>Z(a,t,{...r,path:[...r.path,s?"oneOf":"anyOf",c]}));s?n.oneOf=i:n.anyOf=i},di=(e,t,n,r)=>{const o=e._zod.def,s=Z(o.left,t,{...r,path:[...r.path,"allOf",0]}),i=Z(o.right,t,{...r,path:[...r.path,"allOf",1]}),a=u=>"allOf"in u&&Object.keys(u).length===1,c=[...a(s)?s.allOf:[s],...a(i)?i.allOf:[i]];n.allOf=c},km=(e,t,n,r)=>{const o=n,s=e._zod.def;o.type="array";const i=t.target==="draft-2020-12"?"prefixItems":"items",a=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=s.items.map((g,f)=>Z(g,t,{...r,path:[...r.path,i,f]})),u=s.rest?Z(s.rest,t,{...r,path:[...r.path,a,...t.target==="openapi-3.0"?[s.items.length]:[]]}):null;t.target==="draft-2020-12"?(o.prefixItems=c,u&&(o.items=u)):t.target==="openapi-3.0"?(o.items={anyOf:c},u&&o.items.anyOf.push(u),o.minItems=c.length,u||(o.maxItems=c.length)):(o.items=c,u&&(o.additionalItems=u));const{minimum:l,maximum:d}=e._zod.bag;typeof l=="number"&&(o.minItems=l),typeof d=="number"&&(o.maxItems=d)},fi=(e,t,n,r)=>{const o=n,s=e._zod.def;o.type="object";const i=s.keyType,a=i._zod.bag,c=a==null?void 0:a.patterns;if(s.mode==="loose"&&c&&c.size>0){const l=Z(s.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});o.patternProperties={};for(const d of c)o.patternProperties[d.source]=l}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(o.propertyNames=Z(s.keyType,t,{...r,path:[...r.path,"propertyNames"]})),o.additionalProperties=Z(s.valueType,t,{...r,path:[...r.path,"additionalProperties"]});const u=i._zod.values;if(u){const l=[...u].filter(d=>typeof d=="string"||typeof d=="number");l.length>0&&(o.required=l)}},mi=(e,t,n,r)=>{const o=e._zod.def,s=Z(o.innerType,t,r),i=t.seen.get(e);t.target==="openapi-3.0"?(i.ref=o.innerType,n.nullable=!0):n.anyOf=[s,{type:"null"}]},hi=(e,t,n,r)=>{const o=e._zod.def;Z(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType},gi=(e,t,n,r)=>{const o=e._zod.def;Z(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType,n.default=JSON.parse(JSON.stringify(o.defaultValue))},pi=(e,t,n,r)=>{const o=e._zod.def;Z(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(o.defaultValue)))},bi=(e,t,n,r)=>{const o=e._zod.def;Z(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType;let i;try{i=o.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=i},Ei=(e,t,n,r)=>{const o=e._zod.def,s=t.io==="input"?o.in._zod.def.type==="transform"?o.out:o.in:o.out;Z(s,t,r);const i=t.seen.get(e);i.ref=s},Ai=(e,t,n,r)=>{const o=e._zod.def;Z(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType,n.readOnly=!0},Bm=(e,t,n,r)=>{const o=e._zod.def;Z(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType},Yn=(e,t,n,r)=>{const o=e._zod.def;Z(o.innerType,t,r);const s=t.seen.get(e);s.ref=o.innerType},Cm=(e,t,n,r)=>{const o=e._zod.innerType;Z(o,t,r);const s=t.seen.get(e);s.ref=o},co={string:Qs,number:Hs,boolean:qs,bigint:Em,symbol:Am,null:ei,undefined:ti,void:ym,never:ni,any:Nm,unknown:ri,date:Im,enum:oi,literal:si,nan:Sm,template_literal:_m,file:Zm,success:Rm,custom:ii,function:wm,transform:ai,map:vm,set:Vm,array:ci,object:ui,union:li,intersection:di,tuple:km,record:fi,nullable:mi,nonoptional:hi,default:gi,prefault:pi,catch:bi,pipe:Ei,readonly:Ai,promise:Bm,optional:Yn,lazy:Cm};function Fm(e,t){if("_idmap"in e){const r=e,o=mt({...t,processors:co}),s={};for(const c of r._idmap.entries()){const[u,l]=c;Z(l,o)}const i={},a={registry:r,uri:t==null?void 0:t.uri,defs:s};o.external=a;for(const c of r._idmap.entries()){const[u,l]=c;ht(o,l),i[u]=gt(o,l)}if(Object.keys(s).length>0){const c=o.target==="draft-2020-12"?"$defs":"definitions";i.__shared={[c]:s}}return{schemas:i}}const n=mt({...t,processors:co});return Z(e,n),ht(n,e),gt(n,e)}const Gm=h("ZodISODateTime",(e,t)=>{Gd.init(e,t),C.init(e,t)});function Tm(e){return Df(Gm,e)}const Ym=h("ZodISODate",(e,t)=>{Td.init(e,t),C.init(e,t)});function Um(e){return xf(Ym,e)}const Wm=h("ZodISOTime",(e,t)=>{Yd.init(e,t),C.init(e,t)});function Om(e){return Kf(Wm,e)}const Xm=h("ZodISODuration",(e,t)=>{Ud.init(e,t),C.init(e,t)});function zm(e){return Lf(Xm,e)}const Jm=(e,t)=>{Gs.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Zl(e,n)},flatten:{value:n=>_l(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,en,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,en,2)}},isEmpty:{get(){return e.issues.length===0}}})},M=h("ZodError",Jm,{Parent:Error}),Dm=Fn(M),xm=Gn(M),Km=Zt(M),Lm=Rt(M),$m=vl(M),Mm=Vl(M),Pm=kl(M),jm=Bl(M),Qm=Cl(M),Hm=Fl(M),qm=Gl(M),eh=Tl(M),w=h("ZodType",(e,t)=>(R.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:pt(e,"input"),output:pt(e,"output")}}),e.toJSONSchema=pm(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(de(t,{checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0}),e.with=e.check,e.clone=(n,r)=>fe(e,n,r),e.brand=()=>e,e.register=((n,r)=>(n.add(e,r),e)),e.parse=(n,r)=>Dm(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>Km(e,n,r),e.parseAsync=async(n,r)=>xm(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>Lm(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>$m(e,n,r),e.decode=(n,r)=>Mm(e,n,r),e.encodeAsync=async(n,r)=>Pm(e,n,r),e.decodeAsync=async(n,r)=>jm(e,n,r),e.safeEncode=(n,r)=>Qm(e,n,r),e.safeDecode=(n,r)=>Hm(e,n,r),e.safeEncodeAsync=async(n,r)=>qm(e,n,r),e.safeDecodeAsync=async(n,r)=>eh(e,n,r),e.refine=(n,r)=>e.check($h(n,r)),e.superRefine=n=>e.check(Mh(n)),e.overwrite=n=>e.check(Be(n)),e.optional=()=>lo(e),e.exactOptional=()=>Th(e),e.nullable=()=>fo(e),e.nullish=()=>lo(fo(e)),e.nonoptional=n=>zh(e,n),e.array=()=>Ii(e),e.or=n=>wh([e,n]),e.and=n=>kh(e,n),e.transform=n=>on(e,Zi(n)),e.default=n=>Wh(e,n),e.prefault=n=>Xh(e,n),e.catch=n=>Dh(e,n),e.pipe=n=>on(e,n),e.readonly=()=>Lh(e),e.describe=n=>{const r=e.clone();return Fe.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){var n;return(n=Fe.get(e))==null?void 0:n.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Fe.get(e);const r=e.clone();return Fe.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=n=>n(e),e)),yi=h("_ZodString",(e,t)=>{Tn.init(e,t),w.init(e,t),e._zod.processJSONSchema=(r,o,s)=>Qs(e,r,o);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...r)=>e.check(em(...r)),e.includes=(...r)=>e.check(rm(...r)),e.startsWith=(...r)=>e.check(om(...r)),e.endsWith=(...r)=>e.check(sm(...r)),e.min=(...r)=>e.check(ft(...r)),e.max=(...r)=>e.check(Ps(...r)),e.length=(...r)=>e.check(js(...r)),e.nonempty=(...r)=>e.check(ft(1,...r)),e.lowercase=r=>e.check(tm(r)),e.uppercase=r=>e.check(nm(r)),e.trim=()=>e.check(am()),e.normalize=(...r)=>e.check(im(...r)),e.toLowerCase=()=>e.check(cm()),e.toUpperCase=()=>e.check(um()),e.slugify=()=>e.check(lm())}),th=h("ZodString",(e,t)=>{Tn.init(e,t),yi.init(e,t),e.email=n=>e.check(If(nh,n)),e.url=n=>e.check(wf(rh,n)),e.jwt=n=>e.check(Jf(Eh,n)),e.emoji=n=>e.check(vf(oh,n)),e.guid=n=>e.check(oo(uo,n)),e.uuid=n=>e.check(Sf(tt,n)),e.uuidv4=n=>e.check(_f(tt,n)),e.uuidv6=n=>e.check(Zf(tt,n)),e.uuidv7=n=>e.check(Rf(tt,n)),e.nanoid=n=>e.check(Vf(sh,n)),e.guid=n=>e.check(oo(uo,n)),e.cuid=n=>e.check(kf(ih,n)),e.cuid2=n=>e.check(Bf(ah,n)),e.ulid=n=>e.check(Cf(ch,n)),e.base64=n=>e.check(Of(gh,n)),e.base64url=n=>e.check(Xf(ph,n)),e.xid=n=>e.check(Ff(uh,n)),e.ksuid=n=>e.check(Gf(lh,n)),e.ipv4=n=>e.check(Tf(dh,n)),e.ipv6=n=>e.check(Yf(fh,n)),e.cidrv4=n=>e.check(Uf(mh,n)),e.cidrv6=n=>e.check(Wf(hh,n)),e.e164=n=>e.check(zf(bh,n)),e.datetime=n=>e.check(Tm(n)),e.date=n=>e.check(Um(n)),e.time=n=>e.check(Om(n)),e.duration=n=>e.check(zm(n))});function $(e){return Nf(th,e)}const C=h("ZodStringFormat",(e,t)=>{k.init(e,t),yi.init(e,t)}),nh=h("ZodEmail",(e,t)=>{Zd.init(e,t),C.init(e,t)}),uo=h("ZodGUID",(e,t)=>{Sd.init(e,t),C.init(e,t)}),tt=h("ZodUUID",(e,t)=>{_d.init(e,t),C.init(e,t)}),rh=h("ZodURL",(e,t)=>{Rd.init(e,t),C.init(e,t)}),oh=h("ZodEmoji",(e,t)=>{wd.init(e,t),C.init(e,t)}),sh=h("ZodNanoID",(e,t)=>{vd.init(e,t),C.init(e,t)}),ih=h("ZodCUID",(e,t)=>{Vd.init(e,t),C.init(e,t)}),ah=h("ZodCUID2",(e,t)=>{kd.init(e,t),C.init(e,t)}),ch=h("ZodULID",(e,t)=>{Bd.init(e,t),C.init(e,t)}),uh=h("ZodXID",(e,t)=>{Cd.init(e,t),C.init(e,t)}),lh=h("ZodKSUID",(e,t)=>{Fd.init(e,t),C.init(e,t)}),dh=h("ZodIPv4",(e,t)=>{Wd.init(e,t),C.init(e,t)}),fh=h("ZodIPv6",(e,t)=>{Od.init(e,t),C.init(e,t)}),mh=h("ZodCIDRv4",(e,t)=>{Xd.init(e,t),C.init(e,t)}),hh=h("ZodCIDRv6",(e,t)=>{zd.init(e,t),C.init(e,t)}),gh=h("ZodBase64",(e,t)=>{Jd.init(e,t),C.init(e,t)}),ph=h("ZodBase64URL",(e,t)=>{xd.init(e,t),C.init(e,t)}),bh=h("ZodE164",(e,t)=>{Kd.init(e,t),C.init(e,t)}),Eh=h("ZodJWT",(e,t)=>{$d.init(e,t),C.init(e,t)}),Ni=h("ZodNumber",(e,t)=>{xs.init(e,t),w.init(e,t),e._zod.processJSONSchema=(r,o,s)=>Hs(e,r,o),e.gt=(r,o)=>e.check(io(r,o)),e.gte=(r,o)=>e.check(Ot(r,o)),e.min=(r,o)=>e.check(Ot(r,o)),e.lt=(r,o)=>e.check(so(r,o)),e.lte=(r,o)=>e.check(Wt(r,o)),e.max=(r,o)=>e.check(Wt(r,o)),e.int=r=>e.check(De(r)),e.safe=r=>e.check(De(r)),e.positive=r=>e.check(io(0,r)),e.nonnegative=r=>e.check(Ot(0,r)),e.negative=r=>e.check(so(0,r)),e.nonpositive=r=>e.check(Wt(0,r)),e.multipleOf=(r,o)=>e.check(ao(r,o)),e.step=(r,o)=>e.check(ao(r,o)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function kg(e){return $f(Ni,e)}const Ah=h("ZodNumberFormat",(e,t)=>{Md.init(e,t),Ni.init(e,t)});function De(e){return Mf(Ah,e)}const yh=h("ZodBoolean",(e,t)=>{Pd.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>qs(e,n,r)});function Un(e){return Pf(yh,e)}const Nh=h("ZodUndefined",(e,t)=>{jd.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ti(e,n)});function Bg(e){return jf(Nh,e)}const Ih=h("ZodNull",(e,t)=>{Qd.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ei(e,n,r)});function Cg(e){return Qf(Ih,e)}const Sh=h("ZodUnknown",(e,t)=>{Hd.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ri()});function nn(){return Hf(Sh)}const _h=h("ZodNever",(e,t)=>{qd.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ni(e,n,r)});function Zh(e){return qf(_h,e)}const Rh=h("ZodArray",(e,t)=>{ef.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ci(e,n,r,o),e.element=t.element,e.min=(n,r)=>e.check(ft(n,r)),e.nonempty=n=>e.check(ft(1,n)),e.max=(n,r)=>e.check(Ps(n,r)),e.length=(n,r)=>e.check(js(n,r)),e.unwrap=()=>e.element});function Ii(e,t){return dm(Rh,e,t)}const Si=h("ZodObject",(e,t)=>{nf.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ui(e,n,r,o),I(e,"shape",()=>t.shape),e.keyof=()=>be(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:nn()}),e.loose=()=>e.clone({...e._zod.def,catchall:nn()}),e.strict=()=>e.clone({...e._zod.def,catchall:Zh()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>Al(e,n),e.safeExtend=n=>yl(e,n),e.merge=n=>Nl(e,n),e.pick=n=>bl(e,n),e.omit=n=>El(e,n),e.partial=(...n)=>Il(Ri,e,n[0]),e.required=(...n)=>Sl(wi,e,n[0])});function te(e,t){const n={type:"object",shape:e??{},...A(t)};return new Si(n)}function Fg(e,t){return new Si({type:"object",shape:e,catchall:nn(),...A(t)})}const _i=h("ZodUnion",(e,t)=>{$s.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>li(e,n,r,o),e.options=t.options});function wh(e,t){return new _i({type:"union",options:e,...A(t)})}const vh=h("ZodDiscriminatedUnion",(e,t)=>{_i.init(e,t),rf.init(e,t)});function Gg(e,t,n){return new vh({type:"union",options:t,discriminator:e,...A(n)})}const Vh=h("ZodIntersection",(e,t)=>{of.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>di(e,n,r,o)});function kh(e,t){return new Vh({type:"intersection",left:e,right:t})}const Bh=h("ZodRecord",(e,t)=>{sf.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>fi(e,n,r,o),e.keyType=t.keyType,e.valueType=t.valueType});function Tg(e,t,n){return new Bh({type:"record",keyType:e,valueType:t,...A(n)})}const rn=h("ZodEnum",(e,t)=>{af.init(e,t),w.init(e,t),e._zod.processJSONSchema=(r,o,s)=>oi(e,r,o),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,o)=>{const s={};for(const i of r)if(n.has(i))s[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new rn({...t,checks:[],...A(o),entries:s})},e.exclude=(r,o)=>{const s={...t.entries};for(const i of r)if(n.has(i))delete s[i];else throw new Error(`Key ${i} not found in enum`);return new rn({...t,checks:[],...A(o),entries:s})}});function be(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new rn({type:"enum",entries:n,...A(t)})}const Ch=h("ZodLiteral",(e,t)=>{cf.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>si(e,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Yg(e,t){return new Ch({type:"literal",values:Array.isArray(e)?e:[e],...A(t)})}const Fh=h("ZodTransform",(e,t)=>{uf.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ai(e,n),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new vs(e.constructor.name);n.addIssue=s=>{if(typeof s=="string")n.issues.push(Je(s,n.value,t));else{const i=s;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=e),n.issues.push(Je(i))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(s=>(n.value=s,n)):(n.value=o,n)}});function Zi(e){return new Fh({type:"transform",transform:e})}const Ri=h("ZodOptional",(e,t)=>{Ms.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Yn(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function lo(e){return new Ri({type:"optional",innerType:e})}const Gh=h("ZodExactOptional",(e,t)=>{lf.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Yn(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function Th(e){return new Gh({type:"optional",innerType:e})}const Yh=h("ZodNullable",(e,t)=>{df.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>mi(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function fo(e){return new Yh({type:"nullable",innerType:e})}const Uh=h("ZodDefault",(e,t)=>{ff.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>gi(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Wh(e,t){return new Uh({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Cs(t)}})}const Oh=h("ZodPrefault",(e,t)=>{mf.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>pi(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function Xh(e,t){return new Oh({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Cs(t)}})}const wi=h("ZodNonOptional",(e,t)=>{hf.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>hi(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function zh(e,t){return new wi({type:"nonoptional",innerType:e,...A(t)})}const Jh=h("ZodCatch",(e,t)=>{gf.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>bi(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Dh(e,t){return new Jh({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const xh=h("ZodPipe",(e,t)=>{pf.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Ei(e,n,r,o),e.in=t.in,e.out=t.out});function on(e,t){return new xh({type:"pipe",in:e,out:t})}const Kh=h("ZodReadonly",(e,t)=>{bf.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Ai(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function Lh(e){return new Kh({type:"readonly",innerType:e})}const vi=h("ZodCustom",(e,t)=>{Ef.init(e,t),w.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ii(e,n)});function Ug(e,t){return fm(vi,e??(()=>!0),t)}function $h(e,t={}){return mm(vi,e,t)}function Mh(e){return hm(e)}function Wg(e,t){return on(Zi(e),t)}const Vi=be(["primary","danger","outline","ghost"]),ki=be(["sm","md","lg"]),Ph=be(["sm","md","lg","xl"]),jh=be(["rectangular","circular"]),Qh=be(["success","error","warning","info"]),Hh=be(["top","bottom","left","right"]),qh=te({variant:Vi.optional().describe("Visual style (default primary)."),size:ki.optional().describe("Button size (default md)."),disabled:Un().optional()}),eg=te({label:$(),description:$().optional()}),tg=te({label:$().describe("Main action label."),variant:Vi.optional(),size:ki.optional(),options:Ii(eg).describe("Secondary options shown in the dropdown.")}),ng=te({variant:Qh.optional().describe("Severity (default info)."),dismissible:Un().optional()}),rg=te({size:Ph.optional().describe("Spinner size (default md)."),label:$().optional().describe("Accessible label (default 'Loading')."),liveRegion:Un().optional().describe("Announce status to screen readers via aria-live.")}),og=te({width:$().optional().describe("CSS width (default 100%)."),height:$().optional().describe("CSS height (default 1rem)."),borderRadius:$().optional(),variant:jh.optional()}),sg=te({lines:De().min(1).optional().describe("Number of lines (default 3)."),lastLineWidth:$().optional().describe("Width of the last line (default 60%)."),lineHeight:$().optional(),gap:$().optional()}),ig=te({lines:De().min(1).optional().describe("Body text lines (default 2).")}),ag=te({text:$().describe("Tooltip text."),placement:Hh.optional().describe("Placement relative to the anchor (default top)."),delayMs:De().min(0).optional()}),cg=te({text:$().describe("Text to copy to the clipboard.")}),Bi={Button:qh,SplitButton:tg,Callout:ng,Spinner:rg,Skeleton:og,SkeletonText:sg,SkeletonCard:ig,Tooltip:ag,CopyButton:cg},mo={Button:{description:"Clickable action button with visual variants and sizes.",example:'<Button variant="primary">Deploy</Button>'},SplitButton:{description:"Primary action button with a dropdown of secondary options.",example:'<SplitButton label="Save" onClick={() => {}} options={[{ label: "Save as draft", onClick: () => {} }]} />'},Callout:{description:"Inline message box for info, success, warning, or error notes.",example:'<Callout variant="warning">Low disk space.</Callout>'},Spinner:{description:"Loading/progress spinner.",example:'<Spinner size="lg" label="Building…" />'},Skeleton:{description:"Rectangular or circular loading placeholder block.",example:'<Skeleton width="200px" height="2rem" />'},SkeletonText:{description:"Multi-line text loading placeholder.",example:"<SkeletonText lines={4} />"},SkeletonCard:{description:"Card-shaped loading placeholder (title + body lines).",example:"<SkeletonCard lines={3} />"},Tooltip:{description:"Hover tooltip wrapping its children.",example:'<Tooltip text="Copy to clipboard"><Button>Copy</Button></Tooltip>'},CopyButton:{description:"Button that copies the given text to the clipboard.",example:'<CopyButton text="npm install grackle" />'}},ug=Object.fromEntries(Object.entries(Bi).map(([e,t])=>[e,Fm(t)]));Object.keys(Bi).map(e=>({name:e,description:mo[e].description,propsSchema:JSON.stringify(ug[e]),example:mo[e].example}));export{yu as A,kh as B,G as C,yg as D,Wg as E,Tm as F,mg as G,Gg as H,Rl as I,Bg as J,Zh as K,bg as M,Ig as O,Ag as R,Eg as S,Ng as W,be as _,dg as a,hg as b,fg as c,gg as d,pg as e,Vg as f,Sg as g,S as h,_g as i,wg as j,Un as k,Yg as l,Ii as m,nn as n,te as o,vg as p,kg as q,Tg as r,$ as s,Zg as t,wh as u,Fg as v,Rg as w,Ug as x,lo as y,Cg as z};