@bielu/scalar-grpc 0.1.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.
package/dist/plugin.js ADDED
@@ -0,0 +1,24 @@
1
+ var BieluScalarGrpc=(function(Nt){"use strict";let io;function ao(e){lo(e)&&(io=e)}function Oc(){return io}function lo(e){return e!=null&&typeof e=="object"&&typeof e.getAuthSecrets=="function"&&typeof e.getAuthSelectedSchemas=="function"&&typeof e.export=="function"}function Ac(e){return!e||!Array.isArray(e.selectedSchemes)?[]:e.selectedSchemes.flatMap(t=>t&&typeof t=="object"?Object.keys(t):[])}function xc(e){return Object.entries(e).some(([t,n])=>t.startsWith("x-scalar-secret-")&&typeof n=="string"&&n.length>0)}function kc(e,t){const n=e.export()??{};if(n[t])return t;const r=i=>i.toLowerCase().replace(/[^a-z0-9]/g,""),o=Object.keys(n).find(i=>r(i)===r(t));return o||t}function Rc(e,t,n){if(!lo(n)||!t)return[];const r=kc(n,e),s=Ac(n.getAuthSelectedSchemas({type:"document",documentName:r})),o=s.length>0?s:Object.keys(t),i=[];for(const a of o){const l=t[a];if(!l)continue;const c=n.getAuthSecrets(r,a);!c||!xc(c)||i.push({schemeName:a,type:c.type||l.type||"",scheme:l,secrets:c})}return i}/**
2
+ * @vue/shared v3.5.39
3
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
+ * @license MIT
5
+ **/function Or(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Q={},$t=[],Ye=()=>{},co=()=>!1,Pn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),$n=e=>e.startsWith("onUpdate:"),ce=Object.assign,Ar=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Lc=Object.prototype.hasOwnProperty,W=(e,t)=>Lc.call(e,t),$=Array.isArray,Ct=e=>rn(e)==="[object Map]",Cn=e=>rn(e)==="[object Set]",uo=e=>rn(e)==="[object Date]",V=e=>typeof e=="function",ie=e=>typeof e=="string",je=e=>typeof e=="symbol",z=e=>e!==null&&typeof e=="object",fo=e=>(z(e)||V(e))&&V(e.then)&&V(e.catch),mo=Object.prototype.toString,rn=e=>mo.call(e),Dc=e=>rn(e).slice(8,-1),Mn=e=>rn(e)==="[object Object]",xr=e=>ie(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,sn=Or(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Fn=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Uc=/-\w/g,Te=Fn(e=>e.replace(Uc,t=>t.slice(1).toUpperCase())),Pc=/\B([A-Z])/g,Re=Fn(e=>e.replace(Pc,"-$1").toLowerCase()),po=Fn(e=>e.charAt(0).toUpperCase()+e.slice(1)),kr=Fn(e=>e?`on${po(e)}`:""),Je=(e,t)=>!Object.is(e,t),Vn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},ho=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Bn=e=>{const t=parseFloat(e);return isNaN(t)?e:t},go=e=>{const t=ie(e)?Number(e):NaN;return isNaN(t)?e:t};let bo;const Gn=()=>bo||(bo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Rr(e){if($(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=ie(r)?Fc(r):Rr(r);if(s)for(const o in s)t[o]=s[o]}return t}else if(ie(e)||z(e))return e}const $c=/;(?![^(]*\))/g,Cc=/:([^]+)/,Mc=/\/\*[^]*?\*\//g;function Fc(e){const t={};return e.replace(Mc,"").split($c).forEach(n=>{if(n){const r=n.split(Cc);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Kn(e){let t="";if(ie(e))t=e;else if($(e))for(let n=0;n<e.length;n++){const r=Kn(e[n]);r&&(t+=r+" ")}else if(z(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Vc=Or("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function yo(e){return!!e||e===""}function Bc(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=on(e[r],t[r]);return n}function on(e,t){if(e===t)return!0;let n=uo(e),r=uo(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=je(e),r=je(t),n||r)return e===t;if(n=$(e),r=$(t),n||r)return n&&r?Bc(e,t):!1;if(n=z(e),r=z(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,o=Object.keys(t).length;if(s!==o)return!1;for(const i in e){const a=e.hasOwnProperty(i),l=t.hasOwnProperty(i);if(a&&!l||!a&&l||!on(e[i],t[i]))return!1}}return String(e)===String(t)}function Gc(e,t){return e.findIndex(n=>on(n,t))}const _o=e=>!!(e&&e.__v_isRef===!0),ue=e=>ie(e)?e:e==null?"":$(e)||z(e)&&(e.toString===mo||!V(e.toString))?_o(e)?ue(e.value):JSON.stringify(e,Eo,2):String(e),Eo=(e,t)=>_o(t)?Eo(e,t.value):Ct(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],o)=>(n[Lr(r,o)+" =>"]=s,n),{})}:Cn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Lr(n))}:je(t)?Lr(t):z(t)&&!$(t)&&!Mn(t)?String(t):t,Lr=(e,t="")=>{var n;return je(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
6
+ * @vue/reactivity v3.5.39
7
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
+ * @license MIT
9
+ **/let ge;class Kc{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&ge&&(ge.active?(this.parent=ge,this.index=(ge.scopes||(ge.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=ge;try{return ge=this,t()}finally{ge=n}}}on(){++this._on===1&&(this.prevScope=ge,ge=this)}off(){if(this._on>0&&--this._on===0){if(ge===this)ge=this.prevScope;else{let t=ge;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function Yc(){return ge}let re;const Dr=new WeakSet;class No{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ge&&(ge.active?ge.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Dr.has(this)&&(Dr.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||wo(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ao(this),Io(this);const t=re,n=Ue;re=this,Ue=!0;try{return this.fn()}finally{So(this),re=t,Ue=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Cr(t);this.deps=this.depsTail=void 0,Ao(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Dr.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){$r(this)&&this.run()}get dirty(){return $r(this)}}let vo=0,an,ln;function wo(e,t=!1){if(e.flags|=8,t){e.next=ln,ln=e;return}e.next=an,an=e}function Ur(){vo++}function Pr(){if(--vo>0)return;if(ln){let t=ln;for(ln=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;an;){let t=an;for(an=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Io(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function So(e){let t,n=e.depsTail,r=n;for(;r;){const s=r.prevDep;r.version===-1?(r===n&&(n=s),Cr(r),jc(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=s}e.deps=t,e.depsTail=n}function $r(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(To(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function To(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===cn)||(e.globalVersion=cn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!$r(e))))return;e.flags|=2;const t=e.dep,n=re,r=Ue;re=e,Ue=!0;try{Io(e);const s=e.fn(e._value);(t.version===0||Je(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{re=n,Ue=r,So(e),e.flags&=-3}}function Cr(e,t=!1){const{dep:n,prevSub:r,nextSub:s}=e;if(r&&(r.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)Cr(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function jc(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ue=!0;const Oo=[];function Pe(){Oo.push(Ue),Ue=!1}function $e(){const e=Oo.pop();Ue=e===void 0?!0:e}function Ao(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=re;re=void 0;try{t()}finally{re=n}}}let cn=0;class Jc{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Mr{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!re||!Ue||re===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==re)n=this.activeLink=new Jc(re,this),re.deps?(n.prevDep=re.depsTail,re.depsTail.nextDep=n,re.depsTail=n):re.deps=re.depsTail=n,xo(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=re.depsTail,n.nextDep=void 0,re.depsTail.nextDep=n,re.depsTail=n,re.deps===n&&(re.deps=r)}return n}trigger(t){this.version++,cn++,this.notify(t)}notify(t){Ur();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Pr()}}}function xo(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)xo(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Fr=new WeakMap,vt=Symbol(""),Vr=Symbol(""),un=Symbol("");function Ee(e,t,n){if(Ue&&re){let r=Fr.get(e);r||Fr.set(e,r=new Map);let s=r.get(n);s||(r.set(n,s=new Mr),s.map=r,s.key=n),s.track()}}function ot(e,t,n,r,s,o){const i=Fr.get(e);if(!i){cn++;return}const a=l=>{l&&l.trigger()};if(Ur(),t==="clear")i.forEach(a);else{const l=$(e),c=l&&xr(n);if(l&&n==="length"){const u=Number(r);i.forEach((m,b)=>{(b==="length"||b===un||!je(b)&&b>=u)&&a(m)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),c&&a(i.get(un)),t){case"add":l?c&&a(i.get("length")):(a(i.get(vt)),Ct(e)&&a(i.get(Vr)));break;case"delete":l||(a(i.get(vt)),Ct(e)&&a(i.get(Vr)));break;case"set":Ct(e)&&a(i.get(vt));break}}Pr()}function Mt(e){const t=j(e);return t===e?t:(Ee(t,"iterate",un),Le(e)?t:t.map(Ce))}function Yn(e){return Ee(e=j(e),"iterate",un),e}function We(e,t){return lt(e)?Ft(wt(e)?Ce(t):t):Ce(t)}const Wc={__proto__:null,[Symbol.iterator](){return Br(this,Symbol.iterator,e=>We(this,e))},concat(...e){return Mt(this).concat(...e.map(t=>$(t)?Mt(t):t))},entries(){return Br(this,"entries",e=>(e[1]=We(this,e[1]),e))},every(e,t){return it(this,"every",e,t,void 0,arguments)},filter(e,t){return it(this,"filter",e,t,n=>n.map(r=>We(this,r)),arguments)},find(e,t){return it(this,"find",e,t,n=>We(this,n),arguments)},findIndex(e,t){return it(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return it(this,"findLast",e,t,n=>We(this,n),arguments)},findLastIndex(e,t){return it(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return it(this,"forEach",e,t,void 0,arguments)},includes(...e){return Gr(this,"includes",e)},indexOf(...e){return Gr(this,"indexOf",e)},join(e){return Mt(this).join(e)},lastIndexOf(...e){return Gr(this,"lastIndexOf",e)},map(e,t){return it(this,"map",e,t,void 0,arguments)},pop(){return fn(this,"pop")},push(...e){return fn(this,"push",e)},reduce(e,...t){return ko(this,"reduce",e,t)},reduceRight(e,...t){return ko(this,"reduceRight",e,t)},shift(){return fn(this,"shift")},some(e,t){return it(this,"some",e,t,void 0,arguments)},splice(...e){return fn(this,"splice",e)},toReversed(){return Mt(this).toReversed()},toSorted(e){return Mt(this).toSorted(e)},toSpliced(...e){return Mt(this).toSpliced(...e)},unshift(...e){return fn(this,"unshift",e)},values(){return Br(this,"values",e=>We(this,e))}};function Br(e,t,n){const r=Yn(e),s=r[t]();return r!==e&&!Le(e)&&(s._next=s.next,s.next=()=>{const o=s._next();return o.done||(o.value=n(o.value)),o}),s}const Hc=Array.prototype;function it(e,t,n,r,s,o){const i=Yn(e),a=i!==e&&!Le(e),l=i[t];if(l!==Hc[t]){const m=l.apply(e,o);return a?Ce(m):m}let c=n;i!==e&&(a?c=function(m,b){return n.call(this,We(e,m),b,e)}:n.length>2&&(c=function(m,b){return n.call(this,m,b,e)}));const u=l.call(i,c,r);return a&&s?s(u):u}function ko(e,t,n,r){const s=Yn(e),o=s!==e&&!Le(e);let i=n,a=!1;s!==e&&(o?(a=r.length===0,i=function(c,u,m){return a&&(a=!1,c=We(e,c)),n.call(this,c,We(e,u),m,e)}):n.length>3&&(i=function(c,u,m){return n.call(this,c,u,m,e)}));const l=s[t](i,...r);return a?We(e,l):l}function Gr(e,t,n){const r=j(e);Ee(r,"iterate",un);const s=r[t](...n);return(s===-1||s===!1)&&jr(n[0])?(n[0]=j(n[0]),r[t](...n)):s}function fn(e,t,n=[]){Pe(),Ur();const r=j(e)[t].apply(e,n);return Pr(),$e(),r}const Xc=Or("__proto__,__v_isRef,__isVue"),Ro=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(je));function Zc(e){je(e)||(e=String(e));const t=j(this);return Ee(t,"has",e),t.hasOwnProperty(e)}class Lo{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(s?o?Mo:Co:o?$o:Po).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=$(t);if(!s){let l;if(i&&(l=Wc[n]))return l;if(n==="hasOwnProperty")return Zc}const a=Reflect.get(t,n,be(t)?t:r);if((je(n)?Ro.has(n):Xc(n))||(s||Ee(t,"get",n),o))return a;if(be(a)){const l=i&&xr(n)?a:a.value;return s&&z(l)?Yr(l):l}return z(a)?s?Yr(a):at(a):a}}class Do extends Lo{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];const i=$(t)&&xr(n);if(!this._isShallow){const c=lt(o);if(!Le(r)&&!lt(r)&&(o=j(o),r=j(r)),!i&&be(o)&&!be(r))return c||(o.value=r),!0}const a=i?Number(n)<t.length:W(t,n),l=Reflect.set(t,n,r,be(t)?t:s);return t===j(s)&&l&&(a?Je(r,o)&&ot(t,"set",n,r):ot(t,"add",n,r)),l}deleteProperty(t,n){const r=W(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&r&&ot(t,"delete",n,void 0),s}has(t,n){const r=Reflect.has(t,n);return(!je(n)||!Ro.has(n))&&Ee(t,"has",n),r}ownKeys(t){return Ee(t,"iterate",$(t)?"length":vt),Reflect.ownKeys(t)}}class Uo extends Lo{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const zc=new Do,qc=new Uo,Qc=new Do(!0),eu=new Uo(!0),Kr=e=>e,jn=e=>Reflect.getPrototypeOf(e);function tu(e,t,n){return function(...r){const s=this.__v_raw,o=j(s),i=Ct(o),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,c=s[e](...r),u=n?Kr:t?Ft:Ce;return!t&&Ee(o,"iterate",l?Vr:vt),ce(Object.create(c),{next(){const{value:m,done:b}=c.next();return b?{value:m,done:b}:{value:a?[u(m[0]),u(m[1])]:u(m),done:b}}})}}function Jn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function nu(e,t){const n={get(s){const o=this.__v_raw,i=j(o),a=j(s);e||(Je(s,a)&&Ee(i,"get",s),Ee(i,"get",a));const{has:l}=jn(i),c=t?Kr:e?Ft:Ce;if(l.call(i,s))return c(o.get(s));if(l.call(i,a))return c(o.get(a));o!==i&&o.get(s)},get size(){const s=this.__v_raw;return!e&&Ee(j(s),"iterate",vt),s.size},has(s){const o=this.__v_raw,i=j(o),a=j(s);return e||(Je(s,a)&&Ee(i,"has",s),Ee(i,"has",a)),s===a?o.has(s):o.has(s)||o.has(a)},forEach(s,o){const i=this,a=i.__v_raw,l=j(a),c=t?Kr:e?Ft:Ce;return!e&&Ee(l,"iterate",vt),a.forEach((u,m)=>s.call(o,c(u),c(m),i))}};return ce(n,e?{add:Jn("add"),set:Jn("set"),delete:Jn("delete"),clear:Jn("clear")}:{add(s){const o=j(this),i=jn(o),a=j(s),l=!t&&!Le(s)&&!lt(s)?a:s;return i.has.call(o,l)||Je(s,l)&&i.has.call(o,s)||Je(a,l)&&i.has.call(o,a)||(o.add(l),ot(o,"add",l,l)),this},set(s,o){!t&&!Le(o)&&!lt(o)&&(o=j(o));const i=j(this),{has:a,get:l}=jn(i);let c=a.call(i,s);c||(s=j(s),c=a.call(i,s));const u=l.call(i,s);return i.set(s,o),c?Je(o,u)&&ot(i,"set",s,o):ot(i,"add",s,o),this},delete(s){const o=j(this),{has:i,get:a}=jn(o);let l=i.call(o,s);l||(s=j(s),l=i.call(o,s)),a&&a.call(o,s);const c=o.delete(s);return l&&ot(o,"delete",s,void 0),c},clear(){const s=j(this),o=s.size!==0,i=s.clear();return o&&ot(s,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=tu(s,e,t)}),n}function Wn(e,t){const n=nu(e,t);return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(W(n,s)&&s in r?n:r,s,o)}const ru={get:Wn(!1,!1)},su={get:Wn(!1,!0)},ou={get:Wn(!0,!1)},iu={get:Wn(!0,!0)},Po=new WeakMap,$o=new WeakMap,Co=new WeakMap,Mo=new WeakMap;function au(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function at(e){return lt(e)?e:Hn(e,!1,zc,ru,Po)}function lu(e){return Hn(e,!1,Qc,su,$o)}function Yr(e){return Hn(e,!0,qc,ou,Co)}function lg(e){return Hn(e,!0,eu,iu,Mo)}function Hn(e,t,n,r,s){if(!z(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const o=s.get(e);if(o)return o;const i=au(Dc(e));if(i===0)return e;const a=new Proxy(e,i===2?r:n);return s.set(e,a),a}function wt(e){return lt(e)?wt(e.__v_raw):!!(e&&e.__v_isReactive)}function lt(e){return!!(e&&e.__v_isReadonly)}function Le(e){return!!(e&&e.__v_isShallow)}function jr(e){return e?!!e.__v_raw:!1}function j(e){const t=e&&e.__v_raw;return t?j(t):e}function cu(e){return!W(e,"__v_skip")&&Object.isExtensible(e)&&ho(e,"__v_skip",!0),e}const Ce=e=>z(e)?at(e):e,Ft=e=>z(e)?Yr(e):e;function be(e){return e?e.__v_isRef===!0:!1}function gt(e){return uu(e,!1)}function uu(e,t){return be(e)?e:new fu(e,t)}class fu{constructor(t,n){this.dep=new Mr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:j(t),this._value=n?t:Ce(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Le(t)||lt(t);t=r?t:j(t),Je(t,n)&&(this._rawValue=t,this._value=r?t:Ce(t),this.dep.trigger())}}function Fo(e){return be(e)?e.value:e}const du={get:(e,t,n)=>t==="__v_raw"?e:Fo(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return be(s)&&!be(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Vo(e){return wt(e)?e:new Proxy(e,du)}class mu{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Mr(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=cn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&re!==this)return wo(this,!0),!0}get value(){const t=this.dep.track();return To(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function pu(e,t,n=!1){let r,s;return V(e)?r=e:(r=e.get,s=e.set),new mu(r,s,n)}const Xn={},Zn=new WeakMap;let It;function hu(e,t=!1,n=It){if(n){let r=Zn.get(n);r||Zn.set(n,r=[]),r.push(e)}}function gu(e,t,n=Q){const{immediate:r,deep:s,once:o,scheduler:i,augmentJob:a,call:l}=n,c=k=>s?k:Le(k)||s===!1||s===0?ct(k,1):ct(k);let u,m,b,h,w=!1,y=!1;if(be(e)?(m=()=>e.value,w=Le(e)):wt(e)?(m=()=>c(e),w=!0):$(e)?(y=!0,w=e.some(k=>wt(k)||Le(k)),m=()=>e.map(k=>{if(be(k))return k.value;if(wt(k))return c(k);if(V(k))return l?l(k,2):k()})):V(e)?t?m=l?()=>l(e,2):e:m=()=>{if(b){Pe();try{b()}finally{$e()}}const k=It;It=u;try{return l?l(e,3,[h]):e(h)}finally{It=k}}:m=Ye,t&&s){const k=m,te=s===!0?1/0:s;m=()=>ct(k(),te)}const D=Yc(),R=()=>{u.stop(),D&&D.active&&Ar(D.effects,u)};if(o&&t){const k=t;t=(...te)=>{const le=k(...te);return R(),le}}let B=y?new Array(e.length).fill(Xn):Xn;const G=k=>{if(!(!(u.flags&1)||!u.dirty&&!k))if(t){const te=u.run();if(k||s||w||(y?te.some((le,pe)=>Je(le,B[pe])):Je(te,B))){b&&b();const le=It;It=u;try{const pe=[te,B===Xn?void 0:y&&B[0]===Xn?[]:B,h];B=te,l?l(t,3,pe):t(...pe)}finally{It=le}}}else u.run()};return a&&a(G),u=new No(m),u.scheduler=i?()=>i(G,!1):G,h=k=>hu(k,!1,u),b=u.onStop=()=>{const k=Zn.get(u);if(k){if(l)l(k,4);else for(const te of k)te();Zn.delete(u)}},t?r?G(!0):B=u.run():i?i(G.bind(null,!0),!0):u.run(),R.pause=u.pause.bind(u),R.resume=u.resume.bind(u),R.stop=R,R}function ct(e,t=1/0,n){if(t<=0||!z(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,be(e))ct(e.value,t,n);else if($(e))for(let r=0;r<e.length;r++)ct(e[r],t,n);else if(Cn(e)||Ct(e))e.forEach(r=>{ct(r,t,n)});else if(Mn(e)){for(const r in e)ct(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&ct(e[r],t,n)}return e}/**
10
+ * @vue/runtime-core v3.5.39
11
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
+ * @license MIT
13
+ **/const dn=[];let Jr=!1;function cg(e,...t){if(Jr)return;Jr=!0,Pe();const n=dn.length?dn[dn.length-1].component:null,r=n&&n.appContext.config.warnHandler,s=bu();if(r)Vt(r,n,11,[e+t.map(o=>{var i,a;return(a=(i=o.toString)==null?void 0:i.call(o))!=null?a:JSON.stringify(o)}).join(""),n&&n.proxy,s.map(({vnode:o})=>`at <${Ci(n,o.type)}>`).join(`
14
+ `),s]);else{const o=[`[Vue warn]: ${e}`,...t];s.length&&o.push(`
15
+ `,...yu(s)),console.warn(...o)}$e(),Jr=!1}function bu(){let e=dn[dn.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function yu(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[`
16
+ `],..._u(n))}),t}function _u({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,s=` at <${Ci(e.component,e.type,r)}`,o=">"+n;return e.props?[s,...Eu(e.props),o]:[s+o]}function Eu(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...Bo(r,e[r]))}),n.length>3&&t.push(" ..."),t}function Bo(e,t,n){return ie(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:be(t)?(t=Bo(e,j(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):V(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=j(t),n?t:[`${e}=`,t])}function Vt(e,t,n,r){try{return r?e(...r):e()}catch(s){zn(s,t,n)}}function Me(e,t,n,r){if(V(e)){const s=Vt(e,t,n,r);return s&&fo(s)&&s.catch(o=>{zn(o,t,n)}),s}if($(e)){const s=[];for(let o=0;o<e.length;o++)s.push(Me(e[o],t,n,r));return s}}function zn(e,t,n,r=!0){const s=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||Q;if(t){let a=t.parent;const l=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const u=a.ec;if(u){for(let m=0;m<u.length;m++)if(u[m](e,l,c)===!1)return}a=a.parent}if(o){Pe(),Vt(o,null,10,[e,l,c]),$e();return}}Nu(e,n,s,r,i)}function Nu(e,t,n,r=!0,s=!1){if(s)throw e;console.error(e)}const ve=[];let He=-1;const Bt=[];let bt=null,Gt=0;const Go=Promise.resolve();let qn=null;function Wr(e){const t=qn||Go;return e?t.then(this?e.bind(this):e):t}function vu(e){let t=He+1,n=ve.length;for(;t<n;){const r=t+n>>>1,s=ve[r],o=mn(s);o<e||o===e&&s.flags&2?t=r+1:n=r}return t}function Hr(e){if(!(e.flags&1)){const t=mn(e),n=ve[ve.length-1];!n||!(e.flags&2)&&t>=mn(n)?ve.push(e):ve.splice(vu(t),0,e),e.flags|=1,Ko()}}function Ko(){qn||(qn=Go.then(Jo))}function wu(e){$(e)?Bt.push(...e):bt&&e.id===-1?bt.splice(Gt+1,0,e):e.flags&1||(Bt.push(e),e.flags|=1),Ko()}function Yo(e,t,n=He+1){for(;n<ve.length;n++){const r=ve[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;ve.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function jo(e){if(Bt.length){const t=[...new Set(Bt)].sort((n,r)=>mn(n)-mn(r));if(Bt.length=0,bt){bt.push(...t);return}for(bt=t,Gt=0;Gt<bt.length;Gt++){const n=bt[Gt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}bt=null,Gt=0}}const mn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Jo(e){try{for(He=0;He<ve.length;He++){const t=ve[He];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Vt(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;He<ve.length;He++){const t=ve[He];t&&(t.flags&=-2)}He=-1,ve.length=0,jo(),qn=null,(ve.length||Bt.length)&&Jo()}}let De=null,Wo=null;function Qn(e){const t=De;return De=e,Wo=e&&e.type.__scopeId||null,t}function Iu(e,t=De,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&xi(-1);const o=Qn(t);let i;try{i=e(...s)}finally{Qn(o),r._d&&xi(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function Kt(e,t){if(De===null)return e;const n=ur(De),r=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[o,i,a,l=Q]=t[s];o&&(V(o)&&(o={mounted:o,updated:o}),o.deep&&ct(i),r.push({dir:o,instance:n,value:i,oldValue:void 0,arg:a,modifiers:l}))}return e}function St(e,t,n,r){const s=e.dirs,o=t&&t.dirs;for(let i=0;i<s.length;i++){const a=s[i];o&&(a.oldValue=o[i].value);let l=a.dir[r];l&&(Pe(),Me(l,n,8,[e.el,a,e,t]),$e())}}function Su(e,t){if(Ie){let n=Ie.provides;const r=Ie.parent&&Ie.parent.provides;r===n&&(n=Ie.provides=Object.create(r)),n[e]=t}}function er(e,t,n=!1){const r=If();if(r||Yt){let s=Yt?Yt._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&V(t)?t.call(r&&r.proxy):t}}const Tu=Symbol.for("v-scx"),Ou=()=>er(Tu);function Tt(e,t,n){return Ho(e,t,n)}function Ho(e,t,n=Q){const{immediate:r,deep:s,flush:o,once:i}=n,a=ce({},n),l=t&&r||!t&&o!=="post";let c;if(wn){if(o==="sync"){const h=Ou();c=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=Ye,h.resume=Ye,h.pause=Ye,h}}const u=Ie;a.call=(h,w,y)=>Me(h,u,w,y);let m=!1;o==="post"?a.scheduler=h=>{Oe(h,u&&u.suspense)}:o!=="sync"&&(m=!0,a.scheduler=(h,w)=>{w?h():Hr(h)}),a.augmentJob=h=>{t&&(h.flags|=4),m&&(h.flags|=2,u&&(h.id=u.uid,h.i=u))};const b=gu(e,t,a);return wn&&(c?c.push(b):l&&b()),b}function Au(e,t,n){const r=this.proxy,s=ie(e)?e.includes(".")?Xo(r,e):()=>r[e]:e.bind(r,r);let o;V(t)?o=t:(o=t.handler,n=t);const i=vn(this),a=Ho(s,o.bind(r),n);return i(),a}function Xo(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}const xu=Symbol("_vte"),ku=e=>e.__isTeleport,Xr=Symbol("_leaveCb");function Zr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Zr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Zo(e,t){return V(e)?ce({name:e.name},t,{setup:e}):e}function zo(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function qo(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const tr=new WeakMap;function pn(e,t,n,r,s=!1){if($(e)){e.forEach((y,D)=>pn(y,t&&($(t)?t[D]:t),n,r,s));return}if(hn(r)&&!s){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&pn(e,t,n,r.component.subTree);return}const o=r.shapeFlag&4?ur(r.component):r.el,i=s?null:o,{i:a,r:l}=e,c=t&&t.r,u=a.refs===Q?a.refs={}:a.refs,m=a.setupState,b=j(m),h=m===Q?co:y=>qo(u,y)?!1:W(b,y),w=(y,D)=>!(D&&qo(u,D));if(c!=null&&c!==l){if(Qo(t),ie(c))u[c]=null,h(c)&&(m[c]=null);else if(be(c)){const y=t;w(c,y.k)&&(c.value=null),y.k&&(u[y.k]=null)}}if(V(l)){Pe();try{Vt(l,a,12,[i,u])}finally{$e()}}else{const y=ie(l),D=be(l);if(y||D){const R=()=>{if(e.f){const B=y?h(l)?m[l]:u[l]:w()||!e.k?l.value:u[e.k];if(s)$(B)&&Ar(B,o);else if($(B))B.includes(o)||B.push(o);else if(y)u[l]=[o],h(l)&&(m[l]=u[l]);else{const G=[o];w(l,e.k)&&(l.value=G),e.k&&(u[e.k]=G)}}else y?(u[l]=i,h(l)&&(m[l]=i)):D&&(w(l,e.k)&&(l.value=i),e.k&&(u[e.k]=i))};if(i){const B=()=>{R(),tr.delete(e)};B.id=-1,tr.set(e,B),Oe(B,n)}else Qo(e),R()}}}function Qo(e){const t=tr.get(e);t&&(t.flags|=8,tr.delete(e))}Gn().requestIdleCallback,Gn().cancelIdleCallback;const hn=e=>!!e.type.__asyncLoader,ei=e=>e.type.__isKeepAlive;function Ru(e,t){ti(e,"a",t)}function Lu(e,t){ti(e,"da",t)}function ti(e,t,n=Ie){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(nr(t,r,n),n){let s=n.parent;for(;s&&s.parent;)ei(s.parent.vnode)&&Du(r,t,n,s),s=s.parent}}function Du(e,t,n,r){const s=nr(t,e,r,!0);ri(()=>{Ar(r[t],s)},n)}function nr(e,t,n=Ie,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{Pe();const a=vn(n),l=Me(t,n,e,i);return a(),$e(),l});return r?s.unshift(o):s.push(o),o}}const ut=e=>(t,n=Ie)=>{(!wn||e==="sp")&&nr(e,(...r)=>t(...r),n)},Uu=ut("bm"),ni=ut("m"),Pu=ut("bu"),$u=ut("u"),Cu=ut("bum"),ri=ut("um"),Mu=ut("sp"),Fu=ut("rtg"),Vu=ut("rtc");function Bu(e,t=Ie){nr("ec",e,t)}const Gu=Symbol.for("v-ndc");function gn(e,t,n,r){let s;const o=n,i=$(e);if(i||ie(e)){const a=i&&wt(e);let l=!1,c=!1;a&&(l=!Le(e),c=lt(e),e=Yn(e)),s=new Array(e.length);for(let u=0,m=e.length;u<m;u++)s[u]=t(l?c?Ft(Ce(e[u])):Ce(e[u]):e[u],u,void 0,o)}else if(typeof e=="number"){s=new Array(e);for(let a=0;a<e;a++)s[a]=t(a+1,a,void 0,o)}else if(z(e))if(e[Symbol.iterator])s=Array.from(e,(a,l)=>t(a,l,void 0,o));else{const a=Object.keys(e);s=new Array(a.length);for(let l=0,c=a.length;l<c;l++){const u=a[l];s[l]=t(e[u],u,l,o)}}else s=[];return s}const zr=e=>e?Ui(e)?ur(e):zr(e.parent):null,bn=ce(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>zr(e.parent),$root:e=>zr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>ai(e),$forceUpdate:e=>e.f||(e.f=()=>{Hr(e.update)}),$nextTick:e=>e.n||(e.n=Wr.bind(e.proxy)),$watch:e=>Au.bind(e)}),qr=(e,t)=>e!==Q&&!e.__isScriptSetup&&W(e,t),Ku={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:s,props:o,accessCache:i,type:a,appContext:l}=e;if(t[0]!=="$"){const b=i[t];if(b!==void 0)switch(b){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(qr(r,t))return i[t]=1,r[t];if(s!==Q&&W(s,t))return i[t]=2,s[t];if(W(o,t))return i[t]=3,o[t];if(n!==Q&&W(n,t))return i[t]=4,n[t];Qr&&(i[t]=0)}}const c=bn[t];let u,m;if(c)return t==="$attrs"&&Ee(e.attrs,"get",""),c(e);if((u=a.__cssModules)&&(u=u[t]))return u;if(n!==Q&&W(n,t))return i[t]=4,n[t];if(m=l.config.globalProperties,W(m,t))return m[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return qr(s,t)?(s[t]=n,!0):r!==Q&&W(r,t)?(r[t]=n,!0):W(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,props:o,type:i}},a){let l;return!!(n[a]||e!==Q&&a[0]!=="$"&&W(e,a)||qr(t,a)||W(o,a)||W(r,a)||W(bn,a)||W(s.config.globalProperties,a)||(l=i.__cssModules)&&l[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:W(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function si(e){return $(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Qr=!0;function Yu(e){const t=ai(e),n=e.proxy,r=e.ctx;Qr=!1,t.beforeCreate&&oi(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:i,watch:a,provide:l,inject:c,created:u,beforeMount:m,mounted:b,beforeUpdate:h,updated:w,activated:y,deactivated:D,beforeDestroy:R,beforeUnmount:B,destroyed:G,unmounted:k,render:te,renderTracked:le,renderTriggered:pe,errorCaptured:C,serverPrefetch:Qe,expose:xe,inheritAttrs:Dt,components:Ke,directives:Ut,filters:Dn}=t;if(c&&ju(c,r,null),i)for(const oe in i){const X=i[oe];V(X)&&(r[oe]=X.bind(n))}if(s){const oe=s.call(n,n);z(oe)&&(e.data=at(oe))}if(Qr=!0,o)for(const oe in o){const X=o[oe],et=V(X)?X.bind(n,n):V(X.get)?X.get.bind(n,n):Ye,nn=!V(X)&&V(X.set)?X.set.bind(n):Ye,ht=qe({get:et,set:nn});Object.defineProperty(r,oe,{enumerable:!0,configurable:!0,get:()=>ht.value,set:I=>ht.value=I})}if(a)for(const oe in a)ii(a[oe],r,n,oe);if(l){const oe=V(l)?l.call(n):l;Reflect.ownKeys(oe).forEach(X=>{Su(X,oe[X])})}u&&oi(u,e,"c");function ye(oe,X){$(X)?X.forEach(et=>oe(et.bind(n))):X&&oe(X.bind(n))}if(ye(Uu,m),ye(ni,b),ye(Pu,h),ye($u,w),ye(Ru,y),ye(Lu,D),ye(Bu,C),ye(Vu,le),ye(Fu,pe),ye(Cu,B),ye(ri,k),ye(Mu,Qe),$(xe))if(xe.length){const oe=e.exposed||(e.exposed={});xe.forEach(X=>{Object.defineProperty(oe,X,{get:()=>n[X],set:et=>n[X]=et,enumerable:!0})})}else e.exposed||(e.exposed={});te&&e.render===Ye&&(e.render=te),Dt!=null&&(e.inheritAttrs=Dt),Ke&&(e.components=Ke),Ut&&(e.directives=Ut),Qe&&zo(e)}function ju(e,t,n=Ye){$(e)&&(e=es(e));for(const r in e){const s=e[r];let o;z(s)?"default"in s?o=er(s.from||r,s.default,!0):o=er(s.from||r):o=er(s),be(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[r]=o}}function oi(e,t,n){Me($(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function ii(e,t,n,r){let s=r.includes(".")?Xo(n,r):()=>n[r];if(ie(e)){const o=t[e];V(o)&&Tt(s,o)}else if(V(e))Tt(s,e.bind(n));else if(z(e))if($(e))e.forEach(o=>ii(o,t,n,r));else{const o=V(e.handler)?e.handler.bind(n):t[e.handler];V(o)&&Tt(s,o,e)}}function ai(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,a=o.get(t);let l;return a?l=a:!s.length&&!n&&!r?l=t:(l={},s.length&&s.forEach(c=>rr(l,c,i,!0)),rr(l,t,i)),z(t)&&o.set(t,l),l}function rr(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&rr(e,o,n,!0),s&&s.forEach(i=>rr(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const a=Ju[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Ju={data:li,props:ci,emits:ci,methods:yn,computed:yn,beforeCreate:we,created:we,beforeMount:we,mounted:we,beforeUpdate:we,updated:we,beforeDestroy:we,beforeUnmount:we,destroyed:we,unmounted:we,activated:we,deactivated:we,errorCaptured:we,serverPrefetch:we,components:yn,directives:yn,watch:Hu,provide:li,inject:Wu};function li(e,t){return t?e?function(){return ce(V(e)?e.call(this,this):e,V(t)?t.call(this,this):t)}:t:e}function Wu(e,t){return yn(es(e),es(t))}function es(e){if($(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function we(e,t){return e?[...new Set([].concat(e,t))]:t}function yn(e,t){return e?ce(Object.create(null),e,t):t}function ci(e,t){return e?$(e)&&$(t)?[...new Set([...e,...t])]:ce(Object.create(null),si(e),si(t??{})):t}function Hu(e,t){if(!e)return t;if(!t)return e;const n=ce(Object.create(null),e);for(const r in t)n[r]=we(e[r],t[r]);return n}function ui(){return{app:null,config:{isNativeTag:co,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Xu=0;function Zu(e,t){return function(r,s=null){V(r)||(r=ce({},r)),s!=null&&!z(s)&&(s=null);const o=ui(),i=new WeakSet,a=[];let l=!1;const c=o.app={_uid:Xu++,_component:r,_props:s,_container:null,_context:o,_instance:null,version:Df,get config(){return o.config},set config(u){},use(u,...m){return i.has(u)||(u&&V(u.install)?(i.add(u),u.install(c,...m)):V(u)&&(i.add(u),u(c,...m))),c},mixin(u){return o.mixins.includes(u)||o.mixins.push(u),c},component(u,m){return m?(o.components[u]=m,c):o.components[u]},directive(u,m){return m?(o.directives[u]=m,c):o.directives[u]},mount(u,m,b){if(!l){const h=c._ceVNode||Xe(r,s);return h.appContext=o,b===!0?b="svg":b===!1&&(b=void 0),e(h,u,b),l=!0,c._container=u,u.__vue_app__=c,ur(h.component)}},onUnmount(u){a.push(u)},unmount(){l&&(Me(a,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,m){return o.provides[u]=m,c},runWithContext(u){const m=Yt;Yt=c;try{return u()}finally{Yt=m}}};return c}}let Yt=null;const zu=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Te(t)}Modifiers`]||e[`${Re(t)}Modifiers`];function qu(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Q;let s=n;const o=t.startsWith("update:"),i=o&&zu(r,t.slice(7));i&&(i.trim&&(s=n.map(u=>ie(u)?u.trim():u)),i.number&&(s=n.map(Bn)));let a,l=r[a=kr(t)]||r[a=kr(Te(t))];!l&&o&&(l=r[a=kr(Re(t))]),l&&Me(l,e,6,s);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Me(c,e,6,s)}}const Qu=new WeakMap;function fi(e,t,n=!1){const r=n?Qu:t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let i={},a=!1;if(!V(e)){const l=c=>{const u=fi(c,t,!0);u&&(a=!0,ce(i,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(z(e)&&r.set(e,null),null):($(o)?o.forEach(l=>i[l]=null):ce(i,o),z(e)&&r.set(e,i),i)}function sr(e,t){return!e||!Pn(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),W(e,t[0].toLowerCase()+t.slice(1))||W(e,Re(t))||W(e,t))}function ug(){}function di(e){const{type:t,vnode:n,proxy:r,withProxy:s,propsOptions:[o],slots:i,attrs:a,emit:l,render:c,renderCache:u,props:m,data:b,setupState:h,ctx:w,inheritAttrs:y}=e,D=Qn(e);let R,B;try{if(n.shapeFlag&4){const k=s||r,te=k;R=Ze(c.call(te,k,u,m,h,b,w)),B=a}else{const k=t;R=Ze(k.length>1?k(m,{attrs:a,slots:i,emit:l}):k(m,null)),B=t.props?a:ef(a)}}catch(k){_n.length=0,zn(k,e,1),R=Xe(yt)}let G=R;if(B&&y!==!1){const k=Object.keys(B),{shapeFlag:te}=G;k.length&&te&7&&(o&&k.some($n)&&(B=tf(B,o)),G=jt(G,B,!1,!0))}return n.dirs&&(G=jt(G,null,!1,!0),G.dirs=G.dirs?G.dirs.concat(n.dirs):n.dirs),n.transition&&Zr(G,n.transition),R=G,Qn(D),R}const ef=e=>{let t;for(const n in e)(n==="class"||n==="style"||Pn(n))&&((t||(t={}))[n]=e[n]);return t},tf=(e,t)=>{const n={};for(const r in e)(!$n(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function nf(e,t,n){const{props:r,children:s,component:o}=e,{props:i,children:a,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?mi(r,i,c):!!i;if(l&8){const u=t.dynamicProps;for(let m=0;m<u.length;m++){const b=u[m];if(pi(i,r,b)&&!sr(c,b))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===i?!1:r?i?mi(r,i,c):!0:!!i;return!1}function mi(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const o=r[s];if(pi(t,e,o)&&!sr(n,o))return!0}return!1}function pi(e,t,n){const r=e[n],s=t[n];return n==="style"&&z(r)&&z(s)?!on(r,s):r!==s}function rf({vnode:e,parent:t,suspense:n},r){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.suspense.vnode.el=s.el=r,e=s),s===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}const hi={},gi=()=>Object.create(hi),bi=e=>Object.getPrototypeOf(e)===hi;function sf(e,t,n,r=!1){const s={},o=gi();e.propsDefaults=Object.create(null),yi(e,t,s,o);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=r?s:lu(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function of(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,a=j(s),[l]=e.propsOptions;let c=!1;if((r||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let m=0;m<u.length;m++){let b=u[m];if(sr(e.emitsOptions,b))continue;const h=t[b];if(l)if(W(o,b))h!==o[b]&&(o[b]=h,c=!0);else{const w=Te(b);s[w]=ts(l,a,w,h,e,!1)}else h!==o[b]&&(o[b]=h,c=!0)}}}else{yi(e,t,s,o)&&(c=!0);let u;for(const m in a)(!t||!W(t,m)&&((u=Re(m))===m||!W(t,u)))&&(l?n&&(n[m]!==void 0||n[u]!==void 0)&&(s[m]=ts(l,a,m,void 0,e,!0)):delete s[m]);if(o!==a)for(const m in o)(!t||!W(t,m))&&(delete o[m],c=!0)}c&&ot(e.attrs,"set","")}function yi(e,t,n,r){const[s,o]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(sn(l))continue;const c=t[l];let u;s&&W(s,u=Te(l))?!o||!o.includes(u)?n[u]=c:(a||(a={}))[u]=c:sr(e.emitsOptions,l)||(!(l in r)||c!==r[l])&&(r[l]=c,i=!0)}if(o){const l=j(n),c=a||Q;for(let u=0;u<o.length;u++){const m=o[u];n[m]=ts(s,l,m,c[m],e,!W(c,m))}}return i}function ts(e,t,n,r,s,o){const i=e[n];if(i!=null){const a=W(i,"default");if(a&&r===void 0){const l=i.default;if(i.type!==Function&&!i.skipFactory&&V(l)){const{propsDefaults:c}=s;if(n in c)r=c[n];else{const u=vn(s);r=c[n]=l.call(null,t),u()}}else r=l;s.ce&&s.ce._setProp(n,r)}i[0]&&(o&&!a?r=!1:i[1]&&(r===""||r===Re(n))&&(r=!0))}return r}const af=new WeakMap;function _i(e,t,n=!1){const r=n?af:t.propsCache,s=r.get(e);if(s)return s;const o=e.props,i={},a=[];let l=!1;if(!V(e)){const u=m=>{l=!0;const[b,h]=_i(m,t,!0);ce(i,b),h&&a.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!l)return z(e)&&r.set(e,$t),$t;if($(o))for(let u=0;u<o.length;u++){const m=Te(o[u]);Ei(m)&&(i[m]=Q)}else if(o)for(const u in o){const m=Te(u);if(Ei(m)){const b=o[u],h=i[m]=$(b)||V(b)?{type:b}:ce({},b),w=h.type;let y=!1,D=!0;if($(w))for(let R=0;R<w.length;++R){const B=w[R],G=V(B)&&B.name;if(G==="Boolean"){y=!0;break}else G==="String"&&(D=!1)}else y=V(w)&&w.name==="Boolean";h[0]=y,h[1]=D,(y||W(h,"default"))&&a.push(m)}}const c=[i,a];return z(e)&&r.set(e,c),c}function Ei(e){return e[0]!=="$"&&!sn(e)}const ns=e=>e==="_"||e==="_ctx"||e==="$stable",rs=e=>$(e)?e.map(Ze):[Ze(e)],lf=(e,t,n)=>{if(t._n)return t;const r=Iu((...s)=>rs(t(...s)),n);return r._c=!1,r},Ni=(e,t,n)=>{const r=e._ctx;for(const s in e){if(ns(s))continue;const o=e[s];if(V(o))t[s]=lf(s,o,r);else if(o!=null){const i=rs(o);t[s]=()=>i}}},vi=(e,t)=>{const n=rs(t);e.slots.default=()=>n},wi=(e,t,n)=>{for(const r in t)(n||!ns(r))&&(e[r]=t[r])},cf=(e,t,n)=>{const r=e.slots=gi();if(e.vnode.shapeFlag&32){const s=t._;s?(wi(r,t,n),n&&ho(r,"_",s,!0)):Ni(t,r)}else t&&vi(e,t)},uf=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,i=Q;if(r.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:wi(s,t,n):(o=!t.$stable,Ni(t,s)),i=t}else t&&(vi(e,t),i={default:1});if(o)for(const a in s)!ns(a)&&i[a]==null&&delete s[a]},Oe=hf;function ff(e){return df(e)}function df(e,t){const n=Gn();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:i,createText:a,createComment:l,setText:c,setElementText:u,parentNode:m,nextSibling:b,setScopeId:h=Ye,insertStaticContent:w}=e,y=(f,d,g,v=null,N=null,_=null,A=void 0,O=null,S=!!d.dynamicChildren)=>{if(f===d)return;f&&!Nn(f,d)&&(v=tt(f),I(f,N,_,!0),f=null),d.patchFlag===-2&&(S=!1,d.dynamicChildren=null);const{type:E,ref:P,shapeFlag:x}=d;switch(E){case or:D(f,d,g,v);break;case yt:R(f,d,g,v);break;case os:f==null&&B(d,g,v,A);break;case me:Ke(f,d,g,v,N,_,A,O,S);break;default:x&1?te(f,d,g,v,N,_,A,O,S):x&6?Ut(f,d,g,v,N,_,A,O,S):(x&64||x&128)&&E.process(f,d,g,v,N,_,A,O,S,Et)}P!=null&&N?pn(P,f&&f.ref,_,d||f,!d):P==null&&f&&f.ref!=null&&pn(f.ref,null,_,f,!0)},D=(f,d,g,v)=>{if(f==null)r(d.el=a(d.children),g,v);else{const N=d.el=f.el;d.children!==f.children&&c(N,d.children)}},R=(f,d,g,v)=>{f==null?r(d.el=l(d.children||""),g,v):d.el=f.el},B=(f,d,g,v)=>{[f.el,f.anchor]=w(f.children,d,g,v,f.el,f.anchor)},G=({el:f,anchor:d},g,v)=>{let N;for(;f&&f!==d;)N=b(f),r(f,g,v),f=N;r(d,g,v)},k=({el:f,anchor:d})=>{let g;for(;f&&f!==d;)g=b(f),s(f),f=g;s(d)},te=(f,d,g,v,N,_,A,O,S)=>{if(d.type==="svg"?A="svg":d.type==="math"&&(A="mathml"),f==null)le(d,g,v,N,_,A,O,S);else{const E=f.el&&f.el._isVueCE?f.el:null;try{E&&E._beginPatch(),Qe(f,d,N,_,A,O,S)}finally{E&&E._endPatch()}}},le=(f,d,g,v,N,_,A,O)=>{let S,E;const{props:P,shapeFlag:x,transition:L,dirs:M}=f;if(S=f.el=i(f.type,_,P&&P.is,P),x&8?u(S,f.children):x&16&&C(f.children,S,null,v,N,ss(f,_),A,O),M&&St(f,null,v,"created"),pe(S,f,f.scopeId,A,v),P){for(const ne in P)ne!=="value"&&!sn(ne)&&o(S,ne,null,P[ne],_,v);"value"in P&&o(S,"value",null,P.value,_),(E=P.onVnodeBeforeMount)&&ze(E,v,f)}M&&St(f,null,v,"beforeMount");const Y=mf(N,L);Y&&L.beforeEnter(S),r(S,d,g),((E=P&&P.onVnodeMounted)||Y||M)&&Oe(()=>{try{E&&ze(E,v,f),Y&&L.enter(S),M&&St(f,null,v,"mounted")}finally{}},N)},pe=(f,d,g,v,N)=>{if(g&&h(f,g),v)for(let _=0;_<v.length;_++)h(f,v[_]);if(N){let _=N.subTree;if(d===_||Ai(_.type)&&(_.ssContent===d||_.ssFallback===d)){const A=N.vnode;pe(f,A,A.scopeId,A.slotScopeIds,N.parent)}}},C=(f,d,g,v,N,_,A,O,S=0)=>{for(let E=S;E<f.length;E++){const P=f[E]=O?ft(f[E]):Ze(f[E]);y(null,P,d,g,v,N,_,A,O)}},Qe=(f,d,g,v,N,_,A)=>{const O=d.el=f.el;let{patchFlag:S,dynamicChildren:E,dirs:P}=d;S|=f.patchFlag&16;const x=f.props||Q,L=d.props||Q;let M;if(g&&Ot(g,!1),(M=L.onVnodeBeforeUpdate)&&ze(M,g,d,f),P&&St(d,f,g,"beforeUpdate"),g&&Ot(g,!0),E&&(!f.dynamicChildren||f.dynamicChildren.length!==E.length)&&(S=0,A=!1,E=null),(x.innerHTML&&L.innerHTML==null||x.textContent&&L.textContent==null)&&u(O,""),E?xe(f.dynamicChildren,E,O,g,v,ss(d,N),_):A||X(f,d,O,null,g,v,ss(d,N),_,!1),S>0){if(S&16)Dt(O,x,L,g,N);else if(S&2&&x.class!==L.class&&o(O,"class",null,L.class,N),S&4&&o(O,"style",x.style,L.style,N),S&8){const Y=d.dynamicProps;for(let ne=0;ne<Y.length;ne++){const q=Y[ne],de=x[q],_e=L[q];(_e!==de||q==="value")&&o(O,q,de,_e,N,g)}}S&1&&f.children!==d.children&&u(O,d.children)}else!A&&E==null&&Dt(O,x,L,g,N);((M=L.onVnodeUpdated)||P)&&Oe(()=>{M&&ze(M,g,d,f),P&&St(d,f,g,"updated")},v)},xe=(f,d,g,v,N,_,A)=>{for(let O=0;O<d.length;O++){const S=f[O],E=d[O],P=S.el&&(S.type===me||!Nn(S,E)||S.shapeFlag&198)?m(S.el):g;y(S,E,P,null,v,N,_,A,!0)}},Dt=(f,d,g,v,N)=>{if(d!==g){if(d!==Q)for(const _ in d)!sn(_)&&!(_ in g)&&o(f,_,d[_],null,N,v);for(const _ in g){if(sn(_))continue;const A=g[_],O=d[_];A!==O&&_!=="value"&&o(f,_,O,A,N,v)}"value"in g&&o(f,"value",d.value,g.value,N)}},Ke=(f,d,g,v,N,_,A,O,S)=>{const E=d.el=f?f.el:a(""),P=d.anchor=f?f.anchor:a("");let{patchFlag:x,dynamicChildren:L,slotScopeIds:M}=d;M&&(O=O?O.concat(M):M),f==null?(r(E,g,v),r(P,g,v),C(d.children||[],g,P,N,_,A,O,S)):x>0&&x&64&&L&&f.dynamicChildren&&f.dynamicChildren.length===L.length?(xe(f.dynamicChildren,L,g,N,_,A,O),(d.key!=null||N&&d===N.subTree)&&Ii(f,d,!0)):X(f,d,g,P,N,_,A,O,S)},Ut=(f,d,g,v,N,_,A,O,S)=>{d.slotScopeIds=O,f==null?d.shapeFlag&512?N.ctx.activate(d,g,v,A,S):Dn(d,g,v,N,_,A,S):Sr(f,d,S)},Dn=(f,d,g,v,N,_,A)=>{const O=f.component=wf(f,v,N);if(ei(f)&&(O.ctx.renderer=Et),Sf(O,!1,A),O.asyncDep){if(N&&N.registerDep(O,ye,A),!f.el){const S=O.subTree=Xe(yt);R(null,S,d,g),f.placeholder=S.el}}else ye(O,f,d,g,N,_,A)},Sr=(f,d,g)=>{const v=d.component=f.component;if(nf(f,d,g))if(v.asyncDep&&!v.asyncResolved){oe(v,d,g);return}else v.next=d,v.update();else d.el=f.el,v.vnode=d},ye=(f,d,g,v,N,_,A)=>{const O=()=>{if(f.isMounted){let{next:x,bu:L,u:M,parent:Y,vnode:ne}=f;{const rt=Si(f);if(rt){x&&(x.el=ne.el,oe(f,x,A)),rt.asyncDep.then(()=>{Oe(()=>{f.isUnmounted||E()},N)});return}}let q=x,de;Ot(f,!1),x?(x.el=ne.el,oe(f,x,A)):x=ne,L&&Vn(L),(de=x.props&&x.props.onVnodeBeforeUpdate)&&ze(de,Y,x,ne),Ot(f,!0);const _e=di(f),nt=f.subTree;f.subTree=_e,y(nt,_e,m(nt.el),tt(nt),f,N,_),x.el=_e.el,q===null&&rf(f,_e.el),M&&Oe(M,N),(de=x.props&&x.props.onVnodeUpdated)&&Oe(()=>ze(de,Y,x,ne),N)}else{let x;const{el:L,props:M}=d,{bm:Y,m:ne,parent:q,root:de,type:_e}=f,nt=hn(d);Ot(f,!1),Y&&Vn(Y),!nt&&(x=M&&M.onVnodeBeforeMount)&&ze(x,q,d),Ot(f,!0);{de.ce&&de.ce._hasShadowRoot()&&de.ce._injectChildStyle(_e,f.parent?f.parent.type:void 0);const rt=f.subTree=di(f);y(null,rt,g,v,f,N,_),d.el=rt.el}if(ne&&Oe(ne,N),!nt&&(x=M&&M.onVnodeMounted)){const rt=d;Oe(()=>ze(x,q,rt),N)}(d.shapeFlag&256||q&&hn(q.vnode)&&q.vnode.shapeFlag&256)&&f.a&&Oe(f.a,N),f.isMounted=!0,d=g=v=null}};f.scope.on();const S=f.effect=new No(O);f.scope.off();const E=f.update=S.run.bind(S),P=f.job=S.runIfDirty.bind(S);P.i=f,P.id=f.uid,S.scheduler=()=>Hr(P),Ot(f,!0),E()},oe=(f,d,g)=>{d.component=f;const v=f.vnode.props;f.vnode=d,f.next=null,of(f,d.props,v,g),uf(f,d.children,g),Pe(),Yo(f),$e()},X=(f,d,g,v,N,_,A,O,S=!1)=>{const E=f&&f.children,P=f?f.shapeFlag:0,x=d.children,{patchFlag:L,shapeFlag:M}=d;if(L>0){if(L&128){nn(E,x,g,v,N,_,A,O,S);return}else if(L&256){et(E,x,g,v,N,_,A,O,S);return}}M&8?(P&16&&Ne(E,N,_),x!==E&&u(g,x)):P&16?M&16?nn(E,x,g,v,N,_,A,O,S):Ne(E,N,_,!0):(P&8&&u(g,""),M&16&&C(x,g,v,N,_,A,O,S))},et=(f,d,g,v,N,_,A,O,S)=>{f=f||$t,d=d||$t;const E=f.length,P=d.length,x=Math.min(E,P);let L;for(L=0;L<x;L++){const M=d[L]=S?ft(d[L]):Ze(d[L]);y(f[L],M,g,null,N,_,A,O,S)}E>P?Ne(f,N,_,!0,!1,x):C(d,g,v,N,_,A,O,S,x)},nn=(f,d,g,v,N,_,A,O,S)=>{let E=0;const P=d.length;let x=f.length-1,L=P-1;for(;E<=x&&E<=L;){const M=f[E],Y=d[E]=S?ft(d[E]):Ze(d[E]);if(Nn(M,Y))y(M,Y,g,null,N,_,A,O,S);else break;E++}for(;E<=x&&E<=L;){const M=f[x],Y=d[L]=S?ft(d[L]):Ze(d[L]);if(Nn(M,Y))y(M,Y,g,null,N,_,A,O,S);else break;x--,L--}if(E>x){if(E<=L){const M=L+1,Y=M<P?d[M].el:v;for(;E<=L;)y(null,d[E]=S?ft(d[E]):Ze(d[E]),g,Y,N,_,A,O,S),E++}}else if(E>L)for(;E<=x;)I(f[E],N,_,!0),E++;else{const M=E,Y=E,ne=new Map;for(E=Y;E<=L;E++){const ke=d[E]=S?ft(d[E]):Ze(d[E]);ke.key!=null&&ne.set(ke.key,E)}let q,de=0;const _e=L-Y+1;let nt=!1,rt=0;const Un=new Array(_e);for(E=0;E<_e;E++)Un[E]=0;for(E=M;E<=x;E++){const ke=f[E];if(de>=_e){I(ke,N,_,!0);continue}let st;if(ke.key!=null)st=ne.get(ke.key);else for(q=Y;q<=L;q++)if(Un[q-Y]===0&&Nn(ke,d[q])){st=q;break}st===void 0?I(ke,N,_,!0):(Un[st-Y]=E+1,st>=rt?rt=st:nt=!0,y(ke,d[st],g,null,N,_,A,O,S),de++)}const Ic=nt?pf(Un):$t;for(q=Ic.length-1,E=_e-1;E>=0;E--){const ke=Y+E,st=d[ke],Sc=d[ke+1],Tc=ke+1<P?Sc.el||Oi(Sc):v;Un[E]===0?y(null,st,g,Tc,N,_,A,O,S):nt&&(q<0||E!==Ic[q]?ht(st,g,Tc,2):q--)}}},ht=(f,d,g,v,N=null)=>{const{el:_,type:A,transition:O,children:S,shapeFlag:E}=f;if(E&6){ht(f.component.subTree,d,g,v);return}if(E&128){f.suspense.move(d,g,v);return}if(E&64){A.move(f,d,g,Et);return}if(A===me){r(_,d,g);for(let x=0;x<S.length;x++)ht(S[x],d,g,v);r(f.anchor,d,g);return}if(A===os){G(f,d,g);return}if(v!==2&&E&1&&O)if(v===0)O.persisted&&!_[Xr]?r(_,d,g):(O.beforeEnter(_),r(_,d,g),Oe(()=>O.enter(_),N));else{const{leave:x,delayLeave:L,afterLeave:M}=O,Y=()=>{f.ctx.isUnmounted?s(_):r(_,d,g)},ne=()=>{const q=_._isLeaving||!!_[Xr];_._isLeaving&&_[Xr](!0),O.persisted&&!q?Y():x(_,()=>{Y(),M&&M()})};L?L(_,Y,ne):ne()}else r(_,d,g)},I=(f,d,g,v=!1,N=!1)=>{const{type:_,props:A,ref:O,children:S,dynamicChildren:E,shapeFlag:P,patchFlag:x,dirs:L,cacheIndex:M,memo:Y}=f;if(x===-2&&(N=!1),O!=null&&(Pe(),pn(O,null,g,f,!0),$e()),M!=null&&(d.renderCache[M]=void 0),P&256){d.ctx.deactivate(f);return}const ne=P&1&&L,q=!hn(f);let de;if(q&&(de=A&&A.onVnodeBeforeUnmount)&&ze(de,d,f),P&6)U(f.component,g,v);else{if(P&128){f.suspense.unmount(g,v);return}ne&&St(f,null,d,"beforeUnmount"),P&64?f.type.remove(f,d,g,Et,v):E&&!E.hasOnce&&(_!==me||x>0&&x&64)?Ne(E,d,g,!1,!0):(_===me&&x&384||!N&&P&16)&&Ne(S,d,g),v&&T(f)}const _e=Y!=null&&M==null;(q&&(de=A&&A.onVnodeUnmounted)||ne||_e)&&Oe(()=>{de&&ze(de,d,f),ne&&St(f,null,d,"unmounted"),_e&&(f.el=null)},g)},T=f=>{const{type:d,el:g,anchor:v,transition:N}=f;if(d===me){J(g,v);return}if(d===os){k(f);return}const _=()=>{s(g),N&&!N.persisted&&N.afterLeave&&N.afterLeave()};if(f.shapeFlag&1&&N&&!N.persisted){const{leave:A,delayLeave:O}=N,S=()=>A(g,_);O?O(f.el,_,S):S()}else _()},J=(f,d)=>{let g;for(;f!==d;)g=b(f),s(f),f=g;s(d)},U=(f,d,g)=>{const{bum:v,scope:N,job:_,subTree:A,um:O,m:S,a:E}=f;Ti(S),Ti(E),v&&Vn(v),N.stop(),_&&(_.flags|=8,I(A,f,d,g)),O&&Oe(O,d),Oe(()=>{f.isUnmounted=!0},d)},Ne=(f,d,g,v=!1,N=!1,_=0)=>{for(let A=_;A<f.length;A++)I(f[A],d,g,v,N)},tt=f=>{if(f.shapeFlag&6)return tt(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const d=b(f.anchor||f.el),g=d&&d[xu];return g?b(g):d};let Tr=!1;const se=(f,d,g)=>{let v;f==null?d._vnode&&(I(d._vnode,null,null,!0),v=d._vnode.component):y(d._vnode||null,f,d,null,null,null,g),d._vnode=f,Tr||(Tr=!0,Yo(v),jo(),Tr=!1)},Et={p:y,um:I,m:ht,r:T,mt:Dn,mc:C,pc:X,pbc:xe,n:tt,o:e};return{render:se,hydrate:void 0,createApp:Zu(se)}}function ss({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Ot({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function mf(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ii(e,t,n=!1){const r=e.children,s=t.children;if($(r)&&$(s))for(let o=0;o<r.length;o++){const i=r[o];let a=s[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[o]=ft(s[o]),a.el=i.el),!n&&a.patchFlag!==-2&&Ii(i,a)),a.type===or&&(a.patchFlag===-1&&(a=s[o]=ft(a)),a.el=i.el),a.type===yt&&!a.el&&(a.el=i.el)}}function pf(e){const t=e.slice(),n=[0];let r,s,o,i,a;const l=e.length;for(r=0;r<l;r++){const c=e[r];if(c!==0){if(s=n[n.length-1],e[s]<c){t[r]=s,n.push(r);continue}for(o=0,i=n.length-1;o<i;)a=o+i>>1,e[n[a]]<c?o=a+1:i=a;c<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function Si(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Si(t)}function Ti(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Oi(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Oi(t.subTree):null}const Ai=e=>e.__isSuspense;function hf(e,t){t&&t.pendingBranch?$(e)?t.effects.push(...e):t.effects.push(e):wu(e)}const me=Symbol.for("v-fgt"),or=Symbol.for("v-txt"),yt=Symbol.for("v-cmt"),os=Symbol.for("v-stc"),_n=[];let Ae=null;function H(e=!1){_n.push(Ae=e?null:[])}function gf(){_n.pop(),Ae=_n[_n.length-1]||null}let En=1;function xi(e,t=!1){En+=e,e<0&&Ae&&t&&(Ae.hasOnce=!0)}function ki(e){return e.dynamicChildren=En>0?Ae||$t:null,gf(),En>0&&Ae&&Ae.push(e),e}function Z(e,t,n,r,s,o){return ki(F(e,t,n,r,s,o,!0))}function bf(e,t,n,r,s){return ki(Xe(e,t,n,r,s,!0))}function Ri(e){return e?e.__v_isVNode===!0:!1}function Nn(e,t){return e.type===t.type&&e.key===t.key}const Li=({key:e})=>e??null,ir=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ie(e)||be(e)||V(e)?{i:De,r:e,k:t,f:!!n}:e:null);function F(e,t=null,n=null,r=0,s=null,o=e===me?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Li(t),ref:t&&ir(t),scopeId:Wo,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:De};return a?(lr(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=ie(n)?8:16),En>0&&!i&&Ae&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Ae.push(l),l}const Xe=yf;function yf(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===Gu)&&(e=yt),Ri(e)){const a=jt(e,t,!0);return n&&lr(a,n),En>0&&!o&&Ae&&(a.shapeFlag&6?Ae[Ae.indexOf(e)]=a:Ae.push(a)),a.patchFlag=-2,a}if(Lf(e)&&(e=e.__vccOpts),t){t=_f(t);let{class:a,style:l}=t;a&&!ie(a)&&(t.class=Kn(a)),z(l)&&(jr(l)&&!$(l)&&(l=ce({},l)),t.style=Rr(l))}const i=ie(e)?1:Ai(e)?128:ku(e)?64:z(e)?4:V(e)?2:0;return F(e,t,n,r,s,i,o,!0)}function _f(e){return e?jr(e)||bi(e)?ce({},e):e:null}function jt(e,t,n=!1,r=!1){const{props:s,ref:o,patchFlag:i,children:a,transition:l}=e,c=t?Ef(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Li(c),ref:t&&t.ref?n&&o?$(o)?o.concat(ir(t)):[o,ir(t)]:ir(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==me?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&jt(e.ssContent),ssFallback:e.ssFallback&&jt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&r&&Zr(u,l.clone(u)),u}function ar(e=" ",t=0){return Xe(or,null,e,t)}function Fe(e="",t=!1){return t?(H(),bf(yt,null,e)):Xe(yt,null,e)}function Ze(e){return e==null||typeof e=="boolean"?Xe(yt):$(e)?Xe(me,null,e.slice()):Ri(e)?ft(e):Xe(or,null,String(e))}function ft(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:jt(e)}function lr(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if($(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),lr(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!bi(t)?t._ctx=De:s===3&&De&&(De.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(V(t)){if(r&65){lr(e,{default:t});return}t={default:t,_ctx:De},n=32}else t=String(t),r&64?(n=16,t=[ar(t)]):n=8;e.children=t,e.shapeFlag|=n}function Ef(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=Kn([t.class,r.class]));else if(s==="style")t.style=Rr([t.style,r.style]);else if(Pn(s)){const o=t[s],i=r[s];i&&o!==i&&!($(o)&&o.includes(i))?t[s]=o?[].concat(o,i):i:i==null&&o==null&&!$n(s)&&(t[s]=i)}else s!==""&&(t[s]=r[s])}return t}function ze(e,t,n,r=null){Me(e,t,7,[n,r])}const Nf=ui();let vf=0;function wf(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||Nf,o={uid:vf++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Kc(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:_i(r,s),emitsOptions:fi(r,s),emit:null,emitted:null,propsDefaults:Q,inheritAttrs:r.inheritAttrs,ctx:Q,data:Q,props:Q,attrs:Q,slots:Q,refs:Q,setupState:Q,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=qu.bind(null,o),e.ce&&e.ce(o),o}let Ie=null;const If=()=>Ie||De;let cr,is;{const e=Gn(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),o=>{s.length>1?s.forEach(i=>i(o)):s[0](o)}};cr=t("__VUE_INSTANCE_SETTERS__",n=>Ie=n),is=t("__VUE_SSR_SETTERS__",n=>wn=n)}const vn=e=>{const t=Ie;return cr(e),e.scope.on(),()=>{e.scope.off(),cr(t)}},Di=()=>{Ie&&Ie.scope.off(),cr(null)};function Ui(e){return e.vnode.shapeFlag&4}let wn=!1;function Sf(e,t=!1,n=!1){t&&is(t);const{props:r,children:s}=e.vnode,o=Ui(e);sf(e,r,o,t),cf(e,s,n||t);const i=o?Tf(e,t):void 0;return t&&is(!1),i}function Tf(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ku);const{setup:r}=n;if(r){Pe();const s=e.setupContext=r.length>1?Af(e):null,o=vn(e),i=Vt(r,e,0,[e.props,s]),a=fo(i);if($e(),o(),(a||e.sp)&&!hn(e)&&zo(e),a){if(i.then(Di,Di),t)return i.then(l=>{Pi(e,l)}).catch(l=>{zn(l,e,0)});e.asyncDep=i}else Pi(e,i)}else $i(e)}function Pi(e,t,n){V(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:z(t)&&(e.setupState=Vo(t)),$i(e)}function $i(e,t,n){const r=e.type;e.render||(e.render=r.render||Ye);{const s=vn(e);Pe();try{Yu(e)}finally{$e(),s()}}}const Of={get(e,t){return Ee(e,"get",""),e[t]}};function Af(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Of),slots:e.slots,emit:e.emit,expose:t}}function ur(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Vo(cu(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in bn)return bn[n](e)},has(t,n){return n in t||n in bn}})):e.proxy}const xf=/(?:^|[-_])\w/g,kf=e=>e.replace(xf,t=>t.toUpperCase()).replace(/[-_]/g,"");function Rf(e,t=!0){return V(e)?e.displayName||e.name:e.name||t&&e.__name}function Ci(e,t,n=!1){let r=Rf(t);if(!r&&t.__file){const s=t.__file.match(/([^/\\]+)\.\w+$/);s&&(r=s[1])}if(!r&&e){const s=o=>{for(const i in o)if(o[i]===t)return i};r=s(e.components)||e.parent&&s(e.parent.type.components)||s(e.appContext.components)}return r?kf(r):n?"App":"Anonymous"}function Lf(e){return V(e)&&"__vccOpts"in e}const qe=(e,t)=>pu(e,t,wn),Df="3.5.39";/**
17
+ * @vue/runtime-dom v3.5.39
18
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
19
+ * @license MIT
20
+ **/let as;const Mi=typeof window<"u"&&window.trustedTypes;if(Mi)try{as=Mi.createPolicy("vue",{createHTML:e=>e})}catch{}const Fi=as?e=>as.createHTML(e):e=>e,Uf="http://www.w3.org/2000/svg",Pf="http://www.w3.org/1998/Math/MathML",dt=typeof document<"u"?document:null,Vi=dt&&dt.createElement("template"),$f={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?dt.createElementNS(Uf,e):t==="mathml"?dt.createElementNS(Pf,e):n?dt.createElement(e,{is:n}):dt.createElement(e);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>dt.createTextNode(e),createComment:e=>dt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>dt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,o){const i=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{Vi.innerHTML=Fi(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const a=Vi.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Cf=Symbol("_vtc");function Mf(e,t,n){const r=e[Cf];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Bi=Symbol("_vod"),Ff=Symbol("_vsh"),Vf=Symbol(""),Bf=/(?:^|;)\s*display\s*:/;function Gf(e,t,n){const r=e.style,s=ie(n);let o=!1;if(n&&!s){if(t)if(ie(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&In(r,a,"")}else for(const i in t)n[i]==null&&In(r,i,"");for(const i in n){i==="display"&&(o=!0);const a=n[i];a!=null?Yf(e,i,!ie(t)&&t?t[i]:void 0,a)||In(r,i,a):In(r,i,"")}}else if(s){if(t!==n){const i=r[Vf];i&&(n+=";"+i),r.cssText=n,o=Bf.test(n)}}else t&&e.removeAttribute("style");Bi in e&&(e[Bi]=o?r.display:"",e[Ff]&&(r.display="none"))}const Gi=/\s*!important$/;function In(e,t,n){if($(n))n.forEach(r=>In(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Kf(e,t);Gi.test(n)?e.setProperty(Re(r),n.replace(Gi,""),"important"):e[r]=n}}const Ki=["Webkit","Moz","ms"],ls={};function Kf(e,t){const n=ls[t];if(n)return n;let r=Te(t);if(r!=="filter"&&r in e)return ls[t]=r;r=po(r);for(let s=0;s<Ki.length;s++){const o=Ki[s]+r;if(o in e)return ls[t]=o}return t}function Yf(e,t,n,r){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&ie(r)&&n===r}const Yi="http://www.w3.org/1999/xlink";function ji(e,t,n,r,s,o=Vc(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Yi,t.slice(6,t.length)):e.setAttributeNS(Yi,t,n):n==null||o&&!yo(n)?e.removeAttribute(t):e.setAttribute(t,o?"":je(n)?String(n):n)}function Ji(e,t,n,r,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Fi(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const a=o==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=yo(n):n==null&&a==="string"?(n="",i=!0):a==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(s||t)}function At(e,t,n,r){e.addEventListener(t,n,r)}function jf(e,t,n,r){e.removeEventListener(t,n,r)}const Wi=Symbol("_vei");function Jf(e,t,n,r,s=null){const o=e[Wi]||(e[Wi]={}),i=o[t];if(r&&i)i.value=r;else{const[a,l]=Xf(t);if(r){const c=o[t]=qf(r,s);At(e,a,c,l)}else i&&(jf(e,a,i,l),o[t]=void 0)}}const Wf=/(Once|Passive|Capture)$/,Hf=/^on:?(?:Once|Passive|Capture)$/;function Xf(e){let t,n;for(;(n=e.match(Wf))&&!Hf.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):Re(e.slice(2)),t]}let cs=0;const Zf=Promise.resolve(),zf=()=>cs||(Zf.then(()=>cs=0),cs=Date.now());function qf(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;const s=n.value;if($(s)){const o=r.stopImmediatePropagation;r.stopImmediatePropagation=()=>{o.call(r),r._stopped=!0};const i=s.slice(),a=[r];for(let l=0;l<i.length&&!r._stopped;l++){const c=i[l];c&&Me(c,t,5,a)}}else Me(s,t,5,[r])};return n.value=e,n.attached=zf(),n}const Hi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Qf=(e,t,n,r,s,o)=>{const i=s==="svg";t==="class"?Mf(e,r,i):t==="style"?Gf(e,n,r):Pn(t)?$n(t)||Jf(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ed(e,t,r,i))?(Ji(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ji(e,t,r,i,o,t!=="value")):e._isVueCE&&(td(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ie(r)))?Ji(e,Te(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),ji(e,t,r,i))};function ed(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Hi(t)&&V(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Hi(t)&&ie(n)?!1:t in e}function td(e,t){const n=e._def.props;if(!n)return!1;const r=Te(t);return Array.isArray(n)?n.some(s=>Te(s)===r):Object.keys(n).some(s=>Te(s)===r)}const Xi={};function nd(e,t,n){let r=Zo(e,t);Mn(r)&&(r=ce({},r,t));class s extends us{constructor(i){super(r,i,n)}}return s.def=r,s}const rd=typeof HTMLElement<"u"?HTMLElement:class{};class us extends rd{constructor(t,n={},r=ta){super(),this._def=t,this._props=n,this._createApp=r,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&r!==ta?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(ce({},t.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.assignedSlot||t.parentNode||t.host);)if(t instanceof us){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,Wr(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(t){for(const n of t)this._setAttr(n.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let r=0;r<this.attributes.length;r++)this._setAttr(this.attributes[r].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const t=(r,s=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:o,styles:i}=r;let a;if(o&&!$(o))for(const l in o){const c=o[l];(c===Number||c&&c.type===Number)&&(l in this._props&&(this._props[l]=go(this._props[l])),(a||(a=Object.create(null)))[Te(l)]=!0)}this._numberProps=a,this._resolveProps(r),this.shadowRoot&&this._applyStyles(i),this._mount(r)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(r=>{r.configureApp=this._def.configureApp,t(this._def=r,!0)}):t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const r in n)W(this,r)||Object.defineProperty(this,r,{get:()=>Fo(n[r])})}_resolveProps(t){const{props:n}=t,r=$(n)?n:Object.keys(n||{});for(const s of Object.keys(this))s[0]!=="_"&&r.includes(s)&&this._setProp(s,this[s]);for(const s of r.map(Te))Object.defineProperty(this,s,{get(){return this._getProp(s)},set(o){this._setProp(s,o,!0,!this._patching)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const n=this.hasAttribute(t);let r=n?this.getAttribute(t):Xi;const s=Te(t);n&&this._numberProps&&this._numberProps[s]&&(r=go(r)),this._setProp(s,r,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,s=!1){if(n!==this._props[t]&&(this._dirty=!0,n===Xi?delete this._props[t]:(this._props[t]=n,t==="key"&&this._app&&(this._app._ceVNode.key=n)),s&&this._instance&&this._update(),r)){const o=this._ob;o&&(this._processMutations(o.takeRecords()),o.disconnect()),n===!0?this.setAttribute(Re(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Re(t),n+""):n||this.removeAttribute(Re(t)),o&&o.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),id(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=Xe(this._def,ce(t,this._props));return this._instance||(n.ce=r=>{this._instance=r,r.ce=this,r.isCE=!0;const s=(o,i)=>{this.dispatchEvent(new CustomEvent(o,Mn(i[0])?ce({detail:i},i[0]):{detail:i}))};r.emit=(o,...i)=>{s(o,i),Re(o)!==o&&s(Re(o),i)},this._setParent()}),n}_applyStyles(t,n,r){if(!t)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const s=this._nonce,o=this.shadowRoot,i=r?this._getStyleAnchor(r)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(o);let a=null;for(let l=t.length-1;l>=0;l--){const c=document.createElement("style");s&&c.setAttribute("nonce",s),c.textContent=t[l],o.insertBefore(c,a||i),a=c,l===0&&(r||this._styleAnchors.set(this._def,c),n&&this._styleAnchors.set(n,c))}}_getStyleAnchor(t){if(!t)return null;const n=this._styleAnchors.get(t);return n&&n.parentNode===this.shadowRoot?n:(n&&this._styleAnchors.delete(t),null)}_getRootStyleInsertionAnchor(t){for(let n=0;n<t.childNodes.length;n++){const r=t.childNodes[n];if(!(r instanceof HTMLStyleElement))return r}return null}_parseSlots(){const t=this._slots={};let n;for(;n=this.firstChild;){const r=n.nodeType===1&&n.getAttribute("slot")||"default";(t[r]||(t[r]=[])).push(n),this.removeChild(n)}}_renderSlots(){const t=this._getSlots(),n=this._instance.type.__scopeId;for(let r=0;r<t.length;r++){const s=t[r],o=s.getAttribute("name")||"default",i=this._slots[o],a=s.parentNode;if(i)for(const l of i){if(n&&l.nodeType===1){const c=n+"-s",u=document.createTreeWalker(l,1);l.setAttribute(c,"");let m;for(;m=u.nextNode();)m.setAttribute(c,"")}a.insertBefore(l,s)}else for(;s.firstChild;)a.insertBefore(s.firstChild,s);a.removeChild(s)}}_getSlots(){const t=[this];this._teleportTargets&&t.push(...this._teleportTargets);const n=new Set;for(const r of t){const s=r.querySelectorAll("slot");for(let o=0;o<s.length;o++)n.add(s[o])}return Array.from(n)}_injectChildStyle(t,n){this._applyStyles(t.styles,t,n)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return this._def.shadowRoot!==!1}_removeChildStyle(t){}}const fr=e=>{const t=e.props["onUpdate:modelValue"]||!1;return $(t)?n=>Vn(t,n):t};function sd(e){e.target.composing=!0}function Zi(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Jt=Symbol("_assign");function zi(e,t,n){return t&&(e=e.trim()),n&&(e=Bn(e)),e}const fs={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e[Jt]=fr(s);const o=r||s.props&&s.props.type==="number";At(e,t?"change":"input",i=>{i.target.composing||e[Jt](zi(e.value,n,o))}),(n||o)&&At(e,"change",()=>{e.value=zi(e.value,n,o)}),t||(At(e,"compositionstart",sd),At(e,"compositionend",Zi),At(e,"change",Zi))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:s,number:o}},i){if(e[Jt]=fr(i),e.composing)return;const a=(o||e.type==="number")&&!/^0\d/.test(e.value)?Bn(e.value):e.value,l=t??"";if(a===l)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(r&&t===n||s&&e.value.trim()===l)||(e.value=l)}},ds={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const s=Cn(t);At(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?Bn(dr(i)):dr(i));e[Jt](e.multiple?s?new Set(o):o:o[0]),e._assigning=!0,Wr(()=>{e._assigning=!1})}),e[Jt]=fr(r)},mounted(e,{value:t}){qi(e,t)},beforeUpdate(e,t,n){e[Jt]=fr(n)},updated(e,{value:t}){e._assigning||qi(e,t)}};function qi(e,t){const n=e.multiple,r=$(t);if(!(n&&!r&&!Cn(t))){for(let s=0,o=e.options.length;s<o;s++){const i=e.options[s],a=dr(i);if(n)if(r){const l=typeof a;l==="string"||l==="number"?i.selected=t.some(c=>String(c)===String(a)):i.selected=Gc(t,a)>-1}else i.selected=t.has(a);else if(on(dr(i),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function dr(e){return"_value"in e?e._value:e.value}const od=ce({patchProp:Qf},$f);let Qi;function ea(){return Qi||(Qi=ff(od))}const id=((...e)=>{ea().render(...e)}),ta=((...e)=>{const t=ea().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=ld(r);if(!s)return;const o=t._component;!V(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const i=n(s,!1,ad(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t});function ad(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function ld(e){return ie(e)?document.querySelector(e):e}function cd(e){return e.slice(0,255).trim().normalize("NFC").toLowerCase().replace(/[^\p{L}\p{M}\p{N}\s_-]/gu,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}function ud(e){var a,l;if(!e)return[];const t=[],n=new Set,r=(c,u)=>{const m=typeof c=="string"&&c?c:null;return m?cd(m):u},s=(c,u)=>{typeof c=="string"&&c&&!n.has(c)&&(n.add(c),t.push({name:r(u,c),url:c}))},o=(c,u)=>{c&&typeof c=="object"&&t.push({name:r(u,"document"),doc:c})},i=Array.isArray(e.sources)?e.sources:[];for(const c of i)s((c==null?void 0:c.url)??((a=c==null?void 0:c.spec)==null?void 0:a.url),(c==null?void 0:c.title)??(c==null?void 0:c.slug)),o((c==null?void 0:c.content)??((l=c==null?void 0:c.spec)==null?void 0:l.content),(c==null?void 0:c.title)??(c==null?void 0:c.slug));return s(e.url),o(e.content),t}function na(e){return Array.isArray(e)&&e.length>0&&e.every(t=>t!=null&&typeof t=="object"&&typeof t.name=="string"&&(typeof t.url=="string"||t.doc!=null))}function ra(e,t,n){var o,i;if(n&&n.length>0)return n;const r=(o=e==null?void 0:e[t.configKey])==null?void 0:o.documents;if(na(r))return r;const s=(i=globalThis[t.globalName])==null?void 0:i.documents;return na(s)?s:ud(e)}const sa=(e,t)=>{const n=()=>({name:e.pluginName,extensions:[],hooks:{onInit:({auth:r})=>ao(r),onConfigChange:({auth:r})=>ao(r)},views:{"content.end":[{component:e.elementTag,props:t&&t.length>0?{documents:t}:{},sidebar:{show:!0,label:e.sidebarLabel}}]}});return n.pluginName=e.pluginName,n};function fd(e,t){if(typeof document>"u"||document.getElementById(e.stylesId))return;const n=t.styles;if(!n||n.length===0)return;const r=document.createElement("style");r.id=e.stylesId,r.textContent=n.join(`
21
+ `),document.head.appendChild(r)}function dd(e,t){typeof customElements>"u"||customElements.get(e.elementTag)||(fd(e,t),customElements.define(e.elementTag,nd(t,{shadowRoot:!1})))}function md(e,t){const n=Array.isArray(t.plugins)?t.plugins.slice():[];if(n.some(s=>(s==null?void 0:s.pluginName)===e.pluginName))return t;const r=ra(t,e.discovery);return n.push(sa(e,r)),{...t,plugins:n}}function ms(e,t){if(t&&typeof t.createApiReference=="function"&&!t[e.wrappedFlag]){const n=t.createApiReference.bind(t);t.createApiReference=(r,s={})=>n(r,md(e,s)),t[e.wrappedFlag]=!0}return t}function pd(e){var r;if(typeof window>"u")return;const t=(r=Object.getOwnPropertyDescriptor(window,"Scalar"))==null?void 0:r.set;let n=window.Scalar;n&&ms(e,n);try{Object.defineProperty(window,"Scalar",{configurable:!0,enumerable:!0,get:()=>n,set:s=>{t==null||t.call(window,s),n=ms(e,s)}})}catch{ms(e,window.Scalar)}}function hd(e,t){dd(e,t),pd(e)}const gd=1e4;function bd(e,t){if(typeof t!="string"||!t.startsWith("#/"))return;let n=e;for(const r of t.slice(2).split("/")){if(n==null)return;n=n[r.replace(/~1/g,"/").replace(/~0/g,"~")]}return n}function oa(e,t,n=new Set){let r=t;for(;r&&typeof r.$ref=="string";){if(n.has(r.$ref))return;n.add(r.$ref),r=bd(e,r.$ref)}return r}function ia(e){if(!e)return;const t=e.split("/");return t[t.length-1]}function aa(){var e;return typeof window<"u"&&((e=window.location)!=null&&e.protocol)?window.location.protocol.replace(":",""):"http"}function yd(e){if(!e)return typeof window<"u"?window.location.origin:"";const t=e.trim(),n=/^[a-z][a-z0-9+.-]*:\/\//i.test(t)?t:`${aa()}://${t}`;try{const r=new URL(n);return`${r.protocol==="wss:"?"https:":r.protocol==="ws:"?"http:":r.protocol}//${r.host}`}catch{return`${aa()}://${t.replace(/\/+$/,"")}`}}function _d(e,t){var r;const n=e.servers??{};for(const s of Object.keys(n)){const o=n[s]??{};if(o.protocol===t||(r=o.bindings)!=null&&r[t])return o.host??o.url}}function Ed(e){var r;const t=((r=e.components)==null?void 0:r.securitySchemes)??{},n={};for(const[s,o]of Object.entries(t))if(o&&typeof o=="object"){const i=o;n[s]={type:typeof i.type=="string"?i.type:"",...typeof i.in=="string"?{in:i.in}:{},...typeof i.name=="string"?{name:i.name}:{},...typeof i.scheme=="string"?{scheme:i.scheme}:{}}}return n}function Nd(e){var t;if(typeof window>"u"||!((t=window.location)!=null&&t.origin))return e;try{return new URL(e,window.location.origin).href}catch{return e}}async function vd(e){const t=[];for(const n of e)try{let r=n.doc;if(!r&&n.url){const s=new AbortController,o=setTimeout(()=>s.abort(),gd);try{const i=await fetch(Nd(n.url),{headers:{accept:"application/json"},signal:s.signal});if(!i.ok)continue;r=await i.json()}finally{clearTimeout(o)}}if(!r||!r.asyncapi)continue;t.push({name:n.name,doc:r})}catch{}return t}const wd=6,Id=new Set(["int32","int64","integer","long","double","float","decimal","number"]);function Sd(e){switch(e.format){case"date-time":return new Date().toISOString();case"date":return new Date().toISOString().slice(0,10);case"time":return new Date().toISOString().slice(11,19);case"uuid":case"guid":return"00000000-0000-0000-0000-000000000000";case"email":return"user@example.com";case"uri":case"url":return"https://example.com";default:return"string"}}function Wt(e,t,n=0,r=new Set){const s=oa(e,t,new Set(r));if(!s||n>wd)return null;if(s.schema&&!s.type&&!s.properties&&!s.enum)return Wt(e,s.schema,n,r);if(Array.isArray(s.examples)&&s.examples.length>0)return s.examples[0];if(s.example!==void 0)return s.example;if(s.default!==void 0)return s.default;if(Array.isArray(s.enum)&&s.enum.length>0)return s.enum[0];if(s.const!==void 0)return s.const;const o=s.allOf??s.oneOf??s.anyOf;if(Array.isArray(o)&&o.length>0){if(s.allOf){const a={};for(const l of o){const c=Wt(e,l,n,r);c&&typeof c=="object"&&!Array.isArray(c)&&Object.assign(a,c)}if(Object.keys(a).length>0)return a}return Wt(e,o[0],n,r)}const i=Array.isArray(s.type)?s.type.find(a=>a!=="null"):s.type;if(typeof s.format=="string"&&Id.has(s.format))return typeof s.minimum=="number"?s.minimum:0;switch(i){case"object":return la(e,s,n,r);case"array":{const a=Wt(e,s.items,n+1,r);return a===null?[]:[a]}case"string":return Sd(s);case"integer":case"number":return typeof s.minimum=="number"?s.minimum:0;case"boolean":return!1;case"null":return null;default:return s.properties?la(e,s,n,r):null}}function la(e,t,n,r){const s={},o=t.properties??{};for(const i of Object.keys(o))s[i]=Wt(e,o[i],n+1,r);return s}function Td(){return Oc()}function Od(e,t,n){var s;const r={headers:{},warnings:[]};for(const{schemeName:o,type:i,scheme:a,secrets:l}of Rc(e,t,n)){const c=l["x-scalar-secret-token"];switch(i){case"apiKey":case"httpApiKey":{const u=(a.in??"header").toLowerCase(),m=a.name??"api_key";if(u==="cookie"){r.warnings.push(`API key scheme "${o}" targets cookie "${m}", which the browser attaches automatically — not adding a header. Ensure the cookie is set for the target origin.`);break}u==="query"&&r.warnings.push(`API key scheme "${o}" targets query parameter "${m}", but gRPC-Web requests carry no query string — sending it as a "${m}" header instead. Ensure the server also accepts "${m}" as a header.`),c&&(r.headers[m]=c);break}case"http":{const u=((s=a==null?void 0:a.scheme)==null?void 0:s.toLowerCase())??"";if(u==="bearer"||u==="")c&&(r.headers.Authorization=`Bearer ${c}`);else if(u==="basic"){const m=l["x-scalar-secret-username"]??"",b=l["x-scalar-secret-password"]??"";(m||b)&&(r.headers.Authorization=`Basic ${btoa(`${m}:${b}`)}`)}break}case"oauth2":case"openIdConnect":c&&(r.headers.Authorization=`Bearer ${c}`);break}}return r}const ca={configKey:"grpc",globalName:"__BIELU_SCALAR_GRPC__"};function Ad(e,t){return ra(e,ca,t)}const ps="grpc",xd=new Set(["unary","serverStreaming","clientStreaming","bidirectionalStreaming"]);function kd(e,t){const n=(Array.isArray(t.messages)?t.messages:[]).map(s=>s==null?void 0:s.$ref).filter(s=>typeof s=="string"),r=[];for(const s of n){const o=oa(e,{$ref:s}),i=(o==null?void 0:o.name)??ia(s)??"message",a=Wt(e,o==null?void 0:o.payload)??{};r.push({name:i,title:o==null?void 0:o.title,example:JSON.stringify(a,null,2)})}return r}function Rd(e){const t=e==null?void 0:e.methodType;return typeof t=="string"&&xd.has(t)?t:void 0}function ua(e,t){var l,c,u;if(!t||typeof t!="object")return[];const n=yd(_d(t,ps)),r=Ed(t),s=Object.keys(r).length>0?r:void 0,o=t.channels??{},i=new Map;for(const m of Object.keys(o)){const h=(l=(o[m]??{}).bindings)==null?void 0:l[ps];h&&i.set(m,{documentName:e,channelName:m,service:h.service??m,package:h.package,protoFile:h.protoFile,baseUrl:n,methods:[],securitySchemes:s})}const a=t.operations??{};for(const m of Object.keys(a)){const b=a[m]??{},h=ia((c=b.channel)==null?void 0:c.$ref),w=h?i.get(h):void 0;if(!w)continue;const y=(u=b.bindings)==null?void 0:u[ps],D={id:m,method:(y==null?void 0:y.method)??m,methodType:Rd(y),requestType:y==null?void 0:y.requestType,responseType:y==null?void 0:y.responseType,idempotencyLevel:y==null?void 0:y.idempotencyLevel,deadlineSeconds:typeof(y==null?void 0:y.deadlineSeconds)=="number"?y.deadlineSeconds:void 0,summary:b.summary??b.description,messages:kd(t,b)};w.methods.push(D)}return[...i.values()]}async function fa(e){return(await vd(e)).flatMap(({name:n,doc:r})=>ua(n,r))}function hs(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 p;(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"})(p||(p={}));function Ld(){let e=0,t=0;for(let r=0;r<28;r+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<r,(s&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 s=this.buf[this.pos++];if(t|=(s&127)<<r,(s&128)==0)return this.assertBounds(),[e,t]}throw new Error("invalid varint")}function gs(e,t,n){for(let o=0;o<28;o=o+7){const i=e>>>o,a=!(!(i>>>7)&&t==0),l=(a?i|128:i)&255;if(n.push(l),!a)return}const r=e>>>28&15|(t&7)<<4,s=t>>3!=0;if(n.push((s?r|128:r)&255),!!s){for(let o=3;o<31;o=o+7){const i=t>>>o,a=!!(i>>>7),l=(a?i|128:i)&255;if(n.push(l),!a)return}n.push(t>>>31&1)}}const mr=4294967296;function da(e){const t=e[0]==="-";t&&(e=e.slice(1));const n=1e6;let r=0,s=0;function o(i,a){const l=Number(e.slice(i,a));s*=n,r=r*n+l,r>=mr&&(s=s+(r/mr|0),r=r%mr)}return o(-24,-18),o(-18,-12),o(-12,-6),o(-6),t?pa(r,s):bs(r,s)}function Dd(e,t){let n=bs(e,t);const r=n.hi&2147483648;r&&(n=pa(n.lo,n.hi));const s=ma(n.lo,n.hi);return r?"-"+s:s}function ma(e,t){if({lo:e,hi:t}=Ud(e,t),t<=2097151)return String(mr*t+e);const n=e&16777215,r=(e>>>24|t<<8)&16777215,s=t>>16&65535;let o=n+r*6777216+s*6710656,i=r+s*8147497,a=s*2;const l=1e7;return o>=l&&(i+=Math.floor(o/l),o%=l),i>=l&&(a+=Math.floor(i/l),i%=l),a.toString()+ha(i)+ha(o)}function Ud(e,t){return{lo:e>>>0,hi:t>>>0}}function bs(e,t){return{lo:e|0,hi:t|0}}function pa(e,t){return t=~t,e?e=~e+1:t+=1,bs(e,t)}const ha=e=>{const t=String(e);return"0000000".slice(t.length)+t};function ys(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 Pd(){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 ga={};const ae=$d();function $d(){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||!!globalThis.Bun||typeof process!="object"||typeof ga!="object"||ga.BUF_BIGINT_DISABLE!=="1")){const n=BigInt("-9223372036854775808"),r=BigInt("9223372036854775807"),s=BigInt("0"),o=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>o||a<s)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()),ba(n),n},uParse(n){return typeof n!="string"&&(n=n.toString()),ya(n),n},enc(n){return typeof n!="string"&&(n=n.toString()),ba(n),da(n)},uEnc(n){return typeof n!="string"&&(n=n.toString()),ya(n),da(n)},dec(n,r){return Dd(n,r)},uDec(n,r){return ma(n,r)}}}function ba(e){if(!/^-?[0-9]+$/.test(e))throw new Error("invalid int64: "+e)}function ya(e){if(!/^[0-9]+$/.test(e))throw new Error("invalid uint64: "+e)}function Ht(e,t){switch(e){case p.STRING:return"";case p.BOOL:return!1;case p.DOUBLE:case p.FLOAT:return 0;case p.INT64:case p.UINT64:case p.SFIXED64:case p.FIXED64:case p.SINT64:return t?"0":ae.zero;case p.BYTES:return new Uint8Array(0);default:return 0}}function Cd(e,t){switch(e){case p.BOOL:return t===!1;case p.STRING:return t==="";case p.BYTES:return t instanceof Uint8Array&&!t.byteLength;case p.DOUBLE:case p.FLOAT:return Object.is(t,0);default:return t==0}}const _a=2,mt=Symbol.for("reflect unsafe local");function Ea(e,t){const n=e[t.localName].case;return n===void 0?n:t.fields.find(r=>r.localName===n)}function Md(e,t){const n=t.localName;if(t.oneof)return e[t.oneof.localName].case===n;if(t.presence!=_a)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!Cd(t.scalar,e[n]);case"enum":return e[n]!==t.enum.values[0].number}throw new Error("message field with implicit presence")}function Sn(e,t){return Object.prototype.hasOwnProperty.call(e,t)&&e[t]!==void 0}function Na(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 va(e,t,n){t.oneof?e[t.oneof.localName]={case:t.localName,value:n}:e[t.localName]=n}function Fd(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!=_a)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]=Ht(t.scalar,t.longAsString);break}}function _t(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function _s(e,t){var n,r,s,o;if(_t(e)&&mt 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)&&((s=i.enum)===null||s===void 0?void 0:s.typeName)===((o=a.enum)===null||o===void 0?void 0:o.typeName)}return!0}return!1}function Es(e,t){var n,r,s,o;if(_t(e)&&mt 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)&&((s=i.enum)===null||s===void 0?void 0:s.typeName)===((o=a.enum)===null||o===void 0?void 0:o.typeName)}return!0}return!1}function Ns(e,t){return _t(e)&&mt in e&&"desc"in e&&_t(e.desc)&&e.desc.kind==="message"&&(t===void 0||e.desc.typeName==t.typeName)}function Vd(e){return Ia(e.$typeName)}function Xt(e){const t=e.fields[0];return Ia(e.typeName)&&t!==void 0&&t.fieldKind=="scalar"&&t.name=="value"&&t.number==1}function wa(e){switch(e.typeName){case"google.protobuf.Any":case"google.protobuf.Timestamp":case"google.protobuf.Duration":case"google.protobuf.FieldMask":case"google.protobuf.Struct":case"google.protobuf.Value":case"google.protobuf.ListValue":return!0;default:return Xt(e)}}function Ia(e){return e.startsWith("google.protobuf.")&&["DoubleValue","FloatValue","Int64Value","UInt64Value","Int32Value","UInt32Value","BoolValue","StringValue","BytesValue"].includes(e.substring(16))}const Bd=999,Gd=998,pr=2;function Ve(e,t){if(hs(t,e))return t;const n=Wd(e);return t!==void 0&&Kd(e,n,t),n}function Kd(e,t,n){for(const r of e.members){let s=n[r.localName];if(s==null)continue;let o;if(r.kind=="oneof"){const i=Ea(n,r);if(!i)continue;o=i,s=Na(n,i)}else o=r;switch(o.fieldKind){case"message":s=vs(o,s);break;case"scalar":s=Sa(o,s);break;case"list":s=jd(o,s);break;case"map":s=Yd(o,s);break}va(t,o,s)}return t}function Sa(e,t){return e.scalar==p.BYTES?ws(t):t}function Yd(e,t){if(_t(t)){if(e.scalar==p.BYTES)return Ta(t,ws);if(e.mapKind=="message")return Ta(t,n=>vs(e,n))}return t}function jd(e,t){if(Array.isArray(t)){if(e.scalar==p.BYTES)return t.map(ws);if(e.listKind=="message")return t.map(n=>vs(e,n))}return t}function vs(e,t){if(e.fieldKind=="message"&&!e.oneof&&Xt(e.message))return Sa(e.message.fields[0],t);if(_t(t)){if(e.message.typeName=="google.protobuf.Struct"&&e.parent.typeName!=="google.protobuf.Value")return t;if(!hs(t,e.message))return Ve(e.message,t)}return t}function ws(e){return Array.isArray(e)?new Uint8Array(e):e}function Ta(e,t){const n={};for(const r of Object.entries(e))n[r[0]]=t(r[1]);return n}const Jd=Symbol(),Oa=new WeakMap;function Wd(e){let t;if(Hd(e)){const n=Oa.get(e);let r,s;if(n)({prototype:r,members:s}=n);else{r={},s=new Set;for(const o of e.members)o.kind!="oneof"&&(o.fieldKind!="scalar"&&o.fieldKind!="enum"||o.presence!=pr&&(s.add(o),r[o.localName]=Is(o)));Oa.set(e,{prototype:r,members:s})}t=Object.create(r),t.$typeName=e.typeName;for(const o of e.members)s.has(o)||o.kind=="field"&&(o.fieldKind=="message"||(o.fieldKind=="scalar"||o.fieldKind=="enum")&&o.presence!=pr)||(t[o.localName]=Is(o))}else{t={$typeName:e.typeName};for(const n of e.members)(n.kind=="oneof"||n.presence==pr)&&(t[n.localName]=Is(n))}return t}function Hd(e){switch(e.file.edition){case Bd:return!1;case Gd:return!0;default:return e.fields.some(t=>t.presence!=pr&&t.fieldKind!="message"&&!t.oneof)}}function Is(e){if(e.kind=="oneof")return{case:void 0};if(e.fieldKind=="list")return[];if(e.fieldKind=="map")return{};if(e.fieldKind=="message")return Jd;const t=e.getDefaultValue();return t!==void 0?e.fieldKind=="scalar"&&e.longAsString?t.toString():t:e.fieldKind=="scalar"?Ht(e.scalar,e.longAsString):e.enum.values[0].number}const Xd=["FieldValueInvalidError","FieldListRangeError","ForeignFieldError"];class Se extends Error{constructor(t,n,r="FieldValueInvalidError"){super(n),this.name=r,this.field=()=>t}}function Zd(e){return e instanceof Error&&Xd.includes(e.name)&&"field"in e&&typeof e.field=="function"}const Ss=Symbol.for("@bufbuild/protobuf/text-encoding");function Ts(){if(globalThis[Ss]==null){const e=new globalThis.TextEncoder,t=new globalThis.TextDecoder;let n;globalThis[Ss]={encodeUtf8(r){return e.encode(r)},decodeUtf8(r,s){return s?(n===void 0&&(n=new globalThis.TextDecoder("utf-8",{fatal:!0})),n.decode(r)):t.decode(r)},checkUtf8(r){try{return encodeURIComponent(r),!0}catch{return!1}}}}return globalThis[Ss]}var fe;(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"})(fe||(fe={}));const Aa=34028234663852886e22,xa=-34028234663852886e22,ka=4294967295,Ra=2147483647,La=-2147483648;class Da{constructor(t=Ts().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 s=0;s<this.chunks.length;s++)t+=this.chunks[s].length;let n=new Uint8Array(t),r=0;for(let s=0;s<this.chunks.length;s++)n.set(this.chunks[s],r),r+=this.chunks[s].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(Ua(t);t>127;)this.buf.push(t&127|128),t=t>>>7;return this.buf.push(t),this}int32(t){return As(t),ys(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){zd(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){Ua(t);let n=new Uint8Array(4);return new DataView(n.buffer).setUint32(0,t,!0),this.raw(n)}sfixed32(t){As(t);let n=new Uint8Array(4);return new DataView(n.buffer).setInt32(0,t,!0),this.raw(n)}sint32(t){return As(t),t=(t<<1^t>>31)>>>0,ys(t,this.buf),this}sfixed64(t){let n=new Uint8Array(8),r=new DataView(n.buffer),s=ae.enc(t);return r.setInt32(0,s.lo,!0),r.setInt32(4,s.hi,!0),this.raw(n)}fixed64(t){let n=new Uint8Array(8),r=new DataView(n.buffer),s=ae.uEnc(t);return r.setInt32(0,s.lo,!0),r.setInt32(4,s.hi,!0),this.raw(n)}int64(t){let n=ae.enc(t);return gs(n.lo,n.hi,this.buf),this}sint64(t){const n=ae.enc(t),r=n.hi>>31,s=n.lo<<1^r,o=(n.hi<<1|n.lo>>>31)^r;return gs(s,o,this.buf),this}uint64(t){const n=ae.uEnc(t);return gs(n.lo,n.hi,this.buf),this}}class Os{constructor(t,n=Ts().decodeUtf8){this.decodeUtf8=n,this.varint64=Ld,this.uint32=Pd,this.buf=t,this.len=t.length,this.pos=0,this.view=new DataView(t.buffer,t.byteOffset,t.byteLength)}tag(){const t=this.pos,n=this.uint32(),r=this.pos-t;if(r>5||r==5&&this.buf[this.pos-1]>15)throw new Error("illegal tag: varint overflows uint32");const s=n>>>3,o=n&7;if(s<=0||o>5)throw new Error("illegal tag: field no "+s+" wire type "+o);return[s,o]}skip(t,n,r=100){let s=this.pos;switch(t){case fe.Varint:for(;this.buf[this.pos++]&128;);break;case fe.Bit64:this.pos+=4;case fe.Bit32:this.pos+=4;break;case fe.LengthDelimited:let o=this.uint32();this.pos+=o;break;case fe.StartGroup:if(r<=0)throw new Error("maximum recursion depth reached");for(;;){const[i,a]=this.tag();if(a===fe.EndGroup){if(n!==void 0&&i!==n)throw new Error("invalid end group tag");break}this.skip(a,i,r-1)}break;default:throw new Error("cant skip wire type "+t)}return this.assertBounds(),this.buf.subarray(s,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 ae.dec(...this.varint64())}uint64(){return ae.uDec(...this.varint64())}sint64(){let[t,n]=this.varint64(),r=-(t&1);return t=(t>>>1|(n&1)<<31)^r,n=n>>>1^r,ae.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 ae.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return ae.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(t){return this.decodeUtf8(this.bytes(),t)}}function As(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>Ra||e<La)throw new Error("invalid int32: "+e)}function Ua(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>ka||e<0)throw new Error("invalid uint32: "+e)}function zd(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>Aa||e<xa))throw new Error("invalid float32: "+e)}function xt(e,t){const n=e.fieldKind=="list"?_s(t,e):e.fieldKind=="map"?Es(t,e):xs(e,t);if(n===!0)return;let r;switch(e.fieldKind){case"list":r=`expected ${Ca(e)}, got ${he(t)}`;break;case"map":r=`expected ${Ma(e)}, got ${he(t)}`;break;default:r=hr(e,t,n)}return new Se(e,r)}function Pa(e,t,n){const r=xs(e,n);if(r!==!0)return new Se(e,`list item #${t+1}: ${hr(e,n,r)}`)}function qd(e,t,n){const r=ks(t,e.mapKey);if(r!==!0)return new Se(e,`invalid map key: ${hr({scalar:e.mapKey},t,r)}`);const s=xs(e,n);if(s!==!0)return new Se(e,`map entry ${he(t)}: ${hr(e,n,s)}`)}function xs(e,t){return e.scalar!==void 0?ks(t,e.scalar):e.enum!==void 0?e.enum.open?ks(t,p.INT32):e.enum.values.some(n=>n.number===t):Ns(t,e.message)}function ks(e,t){switch(t){case p.DOUBLE:return typeof e=="number";case p.FLOAT:return typeof e!="number"?!1:Number.isNaN(e)||!Number.isFinite(e)?!0:e>Aa||e<xa?`${e.toFixed()} out of range`:!0;case p.INT32:case p.SFIXED32:case p.SINT32:return typeof e!="number"||!Number.isInteger(e)?!1:e>Ra||e<La?`${e.toFixed()} out of range`:!0;case p.FIXED32:case p.UINT32:return typeof e!="number"||!Number.isInteger(e)?!1:e>ka||e<0?`${e.toFixed()} out of range`:!0;case p.BOOL:return typeof e=="boolean";case p.STRING:return typeof e!="string"?!1:Ts().checkUtf8(e)||"invalid UTF8";case p.BYTES:return e instanceof Uint8Array;case p.INT64:case p.SFIXED64:case p.SINT64:if(typeof e=="bigint"||typeof e=="number"||typeof e=="string"&&e.length>0)try{return ae.parse(e),!0}catch{return`${e} out of range`}return!1;case p.FIXED64:case p.UINT64:if(typeof e=="bigint"||typeof e=="number"||typeof e=="string"&&e.length>0)try{return ae.uParse(e),!0}catch{return`${e} out of range`}return!1}}function hr(e,t,n){return n=typeof n=="string"?`: ${n}`:`, got ${he(t)}`,e.scalar!==void 0?`expected ${Qd(e.scalar)}`+n:e.enum!==void 0?`expected ${e.enum.toString()}`+n:`expected ${$a(e.message)}`+n}function he(e){switch(typeof e){case"object":return e===null?"null":e instanceof Uint8Array?`Uint8Array(${e.length})`:Array.isArray(e)?`Array(${e.length})`:_s(e)?Ca(e.field()):Es(e)?Ma(e.field()):Ns(e)?$a(e.desc):hs(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 $a(e){return`ReflectMessage (${e.typeName})`}function Ca(e){switch(e.listKind){case"message":return`ReflectList (${e.message.toString()})`;case"enum":return`ReflectList (${e.enum.toString()})`;case"scalar":return`ReflectList (${p[e.scalar]})`}}function Ma(e){switch(e.mapKind){case"message":return`ReflectMap (${p[e.mapKey]}, ${e.message.toString()})`;case"enum":return`ReflectMap (${p[e.mapKey]}, ${e.enum.toString()})`;case"scalar":return`ReflectMap (${p[e.mapKey]}, ${p[e.scalar]})`}}function Qd(e){switch(e){case p.STRING:return"string";case p.BOOL:return"boolean";case p.INT64:case p.SINT64:case p.SFIXED64:return"bigint (int64)";case p.UINT64:case p.FIXED64:return"bigint (uint64)";case p.BYTES:return"Uint8Array";case p.DOUBLE:return"number (float64)";case p.FLOAT:return"number (float32)";case p.FIXED32:case p.UINT32:return"number (uint32)";case p.INT32:case p.SFIXED32:case p.SINT32:return"number (int32)"}}function Be(e,t,n=!0){return new Va(e,t,n)}const Fa=new WeakMap;class Va{get sortedFields(){const t=Fa.get(this.desc);if(t)return t;const n=this.desc.fields.concat().sort((r,s)=>r.number-s.number);return Fa.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[mt]=n??Ve(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 Tn(this.message,t),Ea(this.message,t)}isSet(t){return Tn(this.message,t),Md(this.message,t)}clear(t){Tn(this.message,t),Fd(this.message,t)}get(t){Tn(this.message,t);const n=Na(this.message,t);switch(t.fieldKind){case"list":let r=this.lists.get(t);return(!r||r[mt]!==n)&&this.lists.set(t,r=new em(t,n,this.check)),r;case"map":let s=this.maps.get(t);return(!s||s[mt]!==n)&&this.maps.set(t,s=new tm(t,n,this.check)),s;case"message":return Ls(t,n,this.check);case"scalar":return n===void 0?Ht(t.scalar,!1):Ps(t,n);case"enum":return n??t.enum.values[0].number}}set(t,n){if(Tn(this.message,t),this.check){const s=xt(t,n);if(s)throw s}let r;t.fieldKind=="message"?r=Rs(t,n):Es(n)||_s(n)?r=n[mt]:r=$s(t,n),va(this.message,t,r)}getUnknown(){return this.message.$unknown}setUnknown(t){this.message.$unknown=t}}function Tn(e,t){if(t.parent.typeName!==e.$typeName)throw new Se(t,`cannot use ${t.toString()} with message ${e.$typeName}`,"ForeignFieldError")}class em{field(){return this._field}get size(){return this._arr.length}constructor(t,n,r){this._field=t,this._arr=this[mt]=n,this.check=r}get(t){const n=this._arr[t];return n===void 0?void 0:Ds(this._field,n,this.check)}set(t,n){if(t<0||t>=this._arr.length)throw new Se(this._field,`list item #${t+1}: out of range`);if(this.check){const r=Pa(this._field,t,n);if(r)throw r}this._arr[t]=Ba(this._field,n)}add(t){if(this.check){const n=Pa(this._field,this._arr.length,t);if(n)throw n}this._arr.push(Ba(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 Ds(this._field,t,this.check)}*entries(){for(let t=0;t<this._arr.length;t++)yield[t,Ds(this._field,this._arr[t],this.check)]}}class tm{constructor(t,n,r=!0){this.obj=this[mt]=n??{},this.check=r,this._field=t}field(){return this._field}set(t,n){if(this.check){const r=qd(this._field,t,n);if(r)throw r}return this.obj[gr(t)]=nm(this._field,n),this}delete(t){const n=gr(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[gr(t)];return n!==void 0&&(n=Us(this._field,n,this.check)),n}has(t){return Object.prototype.hasOwnProperty.call(this.obj,gr(t))}*keys(){for(const t of Object.keys(this.obj))yield Ga(t,this._field.mapKey)}*entries(){for(const t of Object.entries(this.obj))yield[Ga(t[0],this._field.mapKey),Us(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 Us(this._field,t,this.check)}forEach(t,n){for(const r of this.entries())t.call(n,r[1],r[0],this)}}function Rs(e,t){return Ns(t)?Vd(t.message)&&!e.oneof&&e.fieldKind=="message"?t.message.value:t.desc.typeName=="google.protobuf.Struct"&&e.parent.typeName!="google.protobuf.Value"?Ya(t.message):t.message:t}function Ls(e,t,n){return t!==void 0&&(Xt(e.message)&&!e.oneof&&e.fieldKind=="message"?t={$typeName:e.message.typeName,value:Ps(e.message.fields[0],t)}:e.message.typeName=="google.protobuf.Struct"&&e.parent.typeName!="google.protobuf.Value"&&_t(t)&&(t=Ka(t))),new Va(e.message,t,n)}function Ba(e,t){return e.listKind=="message"?Rs(e,t):$s(e,t)}function Ds(e,t,n){return e.listKind=="message"?Ls(e,t,n):Ps(e,t)}function nm(e,t){return e.mapKind=="message"?Rs(e,t):$s(e,t)}function Us(e,t,n){return e.mapKind=="message"?Ls(e,t,n):t}function gr(e){return typeof e=="string"||typeof e=="number"?e:String(e)}function Ga(e,t){switch(t){case p.STRING:return e;case p.INT32:case p.FIXED32:case p.UINT32:case p.SFIXED32:case p.SINT32:{const n=Number.parseInt(e);if(Number.isFinite(n))return n;break}case p.BOOL:switch(e){case"true":return!0;case"false":return!1}break;case p.UINT64:case p.FIXED64:try{return ae.uParse(e)}catch{}break;default:try{return ae.parse(e)}catch{}break}return e}function Ps(e,t){switch(e.scalar){case p.INT64:case p.SFIXED64:case p.SINT64:"longAsString"in e&&e.longAsString&&typeof t=="string"&&(t=ae.parse(t));break;case p.FIXED64:case p.UINT64:"longAsString"in e&&e.longAsString&&typeof t=="string"&&(t=ae.uParse(t));break}return t}function $s(e,t){switch(e.scalar){case p.INT64:case p.SFIXED64:case p.SINT64:"longAsString"in e&&e.longAsString?t=String(t):(typeof t=="string"||typeof t=="number")&&(t=ae.parse(t));break;case p.FIXED64:case p.UINT64:"longAsString"in e&&e.longAsString?t=String(t):(typeof t=="string"||typeof t=="number")&&(t=ae.uParse(t));break}return t}function Ka(e){const t={$typeName:"google.protobuf.Struct",fields:{}};if(_t(e))for(const[n,r]of Object.entries(e))t.fields[n]=Ja(r);return t}function Ya(e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=ja(r);return t}function ja(e){switch(e.kind.case){case"structValue":return Ya(e.kind.value);case"listValue":return e.kind.value.values.map(ja);case"nullValue":case void 0:return null;default:return e.kind.value}}function Ja(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(Ja(r));t.kind={case:"listValue",value:n}}else t.kind={case:"structValue",value:Ka(e)};break}return t}function Cs(e){const t=sm();let n=e.length*3/4;e[e.length-2]=="="?n-=2:e[e.length-1]=="="&&(n-=1);let r=new Uint8Array(n),s=0,o=0,i,a=0;for(let l=0;l<e.length;l++){if(i=t[e.charCodeAt(l)],i===void 0)switch(e[l]){case"=":o=0;case`
22
+ `:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string")}switch(o){case 0:a=i,o=1;break;case 1:r[s++]=a<<2|(i&48)>>4,a=i,o=2;break;case 2:r[s++]=(a&15)<<4|(i&60)>>2,a=i,o=3;break;case 3:r[s++]=(a&3)<<6|i,o=0;break}}if(o==1)throw Error("invalid base64 string");return r.subarray(0,s)}function rm(e,t="std"){const n=Ha(t),r=t=="std";let s="",o=0,i,a=0;for(let l=0;l<e.length;l++)switch(i=e[l],o){case 0:s+=n[i>>2],a=(i&3)<<4,o=1;break;case 1:s+=n[a|i>>4],a=(i&15)<<2,o=2;break;case 2:s+=n[a|i>>6],s+=n[i&63],o=0;break}return o&&(s+=n[a],r&&(s+="=",o==1&&(s+="="))),s}let br,Wa,Zt;function Ha(e){return br||(br="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),Wa=br.slice(0,-2).concat("-","_")),e=="url"?Wa:br}function sm(){if(!Zt){Zt=[];const e=Ha("std");for(let t=0;t<e.length;t++)Zt[e[t].charCodeAt(0)]=t;Zt[45]=e.indexOf("+"),Zt[95]=e.indexOf("/")}return Zt}function zt(e){let t=!1;const n=[];for(let r=0;r<e.length;r++){let s=e.charAt(r);switch(s){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(s),t=!1;break;default:t&&(t=!1,s=s.toUpperCase()),n.push(s);break}}return n.join("")}function Xa(e){return e.replace(/[A-Z]/g,t=>"_"+t.toLowerCase())}const om=new Set(["constructor","toString","toJSON","valueOf"]);function On(e){return om.has(e)?e+"$":e}function Ms(e){for(const t of e.field)Sn(t,"jsonName")||(t.jsonName=zt(t.name));e.nestedType.forEach(Ms)}function im(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 am(e,t){switch(e){case p.STRING:return t;case p.BYTES:{const n=lm(t);if(n===!1)throw new Error(`cannot parse ${p[e]} default value: ${t}`);return n}case p.INT64:case p.SFIXED64:case p.SINT64:return ae.parse(t);case p.UINT64:case p.FIXED64:return ae.uParse(t);case p.DOUBLE:case p.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 p.BOOL:return t==="true";case p.INT32:case p.UINT32:case p.SINT32:case p.FIXED32:case p.SFIXED32:return parseInt(t,10)}}function lm(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 s=this.tail.substring(0,r);return this.tail=this.tail.substring(r),s}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,s=n.take(2);if(s===!1)return!1;const o=parseInt(r+s,8);if(Number.isNaN(o))return!1;t.push(o);break}case"x":{const r=n.c,s=n.take(2);if(s===!1)return!1;const o=parseInt(r+s,16);if(Number.isNaN(o))return!1;t.push(o);break}case"u":{const r=n.c,s=n.take(4);if(s===!1)return!1;const o=parseInt(r+s,16);if(Number.isNaN(o))return!1;const i=new Uint8Array(4);new DataView(i.buffer).setInt32(0,o,!0),t.push(i[0],i[1],i[2],i[3]);break}case"U":{const r=n.c,s=n.take(8);if(s===!1)return!1;const o=ae.uEnc(r+s),i=new Uint8Array(8),a=new DataView(i.buffer);a.setInt32(0,o.lo,!0),a.setInt32(4,o.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*Fs(e){switch(e.kind){case"file":for(const t of e.messages)yield t,yield*Fs(t);yield*e.enums,yield*e.services,yield*e.extensions;break;case"message":for(const t of e.nestedMessages)yield t,yield*Fs(t);yield*e.nestedEnums,yield*e.nestedExtensions;break}}function Vs(...e){const t=cm();if(!e.length)return t;if("$typeName"in e[0]&&e[0].$typeName=="google.protobuf.FileDescriptorSet"){for(const n of e[0].file)el(n,t);return t}if("$typeName"in e[0]){let o=function(i){const a=[];for(const l of i.dependency){if(t.getFile(l)!=null||s.has(l))continue;const c=r(l);if(!c)throw new Error(`Unable to resolve ${l}, imported by ${i.name}`);"kind"in c?t.addFile(c,!1,!0):(s.add(c.name),a.push(c))}return a.concat(...a.map(o))};const n=e[0],r=e[1],s=new Set;for(const i of[n,...o(n)].reverse())el(i,t)}else for(const n of e)for(const r of n.files)t.addFile(r);return t}function cm(){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,s,o){if(n.set(r.proto.name,r),!s)for(const i of Fs(r))this.add(i);if(o)for(const i of r.dependencies)this.addFile(i,s,o)},add(r){if(r.kind=="extension"){let s=t.get(r.extendee.typeName);s||t.set(r.extendee.typeName,s=new Map),s.set(r.number,r)}e.set(r.typeName,r)},get(r){return e.get(r)},getFile(r){return n.get(r)},getMessage(r){const s=e.get(r);return(s==null?void 0:s.kind)=="message"?s:void 0},getEnum(r){const s=e.get(r);return(s==null?void 0:s.kind)=="enum"?s:void 0},getExtension(r){const s=e.get(r);return(s==null?void 0:s.kind)=="extension"?s:void 0},getExtensionFor(r,s){var o;return(o=t.get(r.typeName))===null||o===void 0?void 0:o.get(s)},getService(r){const s=e.get(r);return(s==null?void 0:s.kind)=="service"?s:void 0}}}const um=998,fm=999,dm=9999,mm=9,An=10,xn=11,pm=12,Za=14,Bs=3,hm=2,za=1,gm=0,Gs=1,qa=2,bm=3,ym=1,_m=2,Em=1,Nm=2,vm=1001,Qa={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 el(e,t){var n,r;const s={kind:"file",proto:e,deprecated:(r=(n=e.options)===null||n===void 0?void 0:n.deprecated)!==null&&r!==void 0?r:!1,edition:Tm(e),name:e.name.replace(/\.proto$/,""),dependencies:Om(e,t),enums:[],messages:[],extensions:[],services:[],toString(){return`file ${e.name}`}},o=new Map,i={get(a){return o.get(a)},add(a){var l;Ge(((l=a.proto.options)===null||l===void 0?void 0:l.mapEntry)===!0),o.set(a.typeName,a)}};for(const a of e.enumType)tl(a,s,void 0,t);for(const a of e.messageType)nl(a,s,void 0,t,i);for(const a of e.service)wm(a,s,t);Ks(s,t);for(const a of o.values())Ys(a,t,i);for(const a of s.messages)Ys(a,t,i),Ks(a,t);t.addFile(s,!0)}function Ks(e,t){switch(e.kind){case"file":for(const n of e.proto.extension){const r=js(n,e,t);e.extensions.push(r),t.add(r)}break;case"message":for(const n of e.proto.extension){const r=js(n,e,t);e.nestedExtensions.push(r),t.add(r)}for(const n of e.nestedMessages)Ks(n,t);break}}function Ys(e,t,n){const r=e.proto.oneofDecl.map(o=>Sm(o,e)),s=new Set;for(const o of e.proto.field){const i=km(o,r),a=js(o,e,t,i,n);e.fields.push(a),e.field[a.localName]=a,i===void 0?e.members.push(a):(i.fields.push(a),s.has(i)||(s.add(i),e.members.push(i)))}for(const o of r.filter(i=>s.has(i)))e.oneofs.push(o);for(const o of e.nestedMessages)Ys(o,t,n)}function tl(e,t,n,r){var s,o,i,a,l;const c=Am(e.name,e.value),u={kind:"enum",proto:e,deprecated:(o=(s=e.options)===null||s===void 0?void 0:s.deprecated)!==null&&o!==void 0?o:!1,file:t,parent:n,open:!0,name:e.name,typeName:yr(e,n,t),value:{},values:[],sharedPrefix:c,toString(){return`enum ${this.typeName}`}};u.open=Um(u),r.add(u);for(const m of e.value){const b=m.name;u.values.push(u.value[m.number]={kind:"enum_value",proto:m,deprecated:(a=(i=m.options)===null||i===void 0?void 0:i.deprecated)!==null&&a!==void 0?a:!1,parent:u,name:b,localName:On(c==null?b:b.substring(c.length)),number:m.number,toString(){return`enum value ${u.typeName}.${b}`}})}((l=n==null?void 0:n.nestedEnums)!==null&&l!==void 0?l:t.enums).push(u)}function nl(e,t,n,r,s){var o,i,a,l;const c={kind:"message",proto:e,deprecated:(i=(o=e.options)===null||o===void 0?void 0:o.deprecated)!==null&&i!==void 0?i:!1,file:t,parent:n,name:e.name,typeName:yr(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?s.add(c):(((l=n==null?void 0:n.nestedMessages)!==null&&l!==void 0?l:t.messages).push(c),r.add(c));for(const u of e.enumType)tl(u,t,c,r);for(const u of e.nestedType)nl(u,t,c,r,s)}function wm(e,t,n){var r,s;const o={kind:"service",proto:e,deprecated:(s=(r=e.options)===null||r===void 0?void 0:r.deprecated)!==null&&s!==void 0?s:!1,file:t,name:e.name,typeName:yr(e,void 0,t),methods:[],method:{},toString(){return`service ${this.typeName}`}};t.services.push(o),n.add(o);for(const i of e.method){const a=Im(i,o,n);o.methods.push(a),o.method[a.localName]=a}}function Im(e,t,n){var r,s,o,i;let a;e.clientStreaming&&e.serverStreaming?a="bidi_streaming":e.clientStreaming?a="client_streaming":e.serverStreaming?a="server_streaming":a="unary";const l=n.getMessage(pt(e.inputType)),c=n.getMessage(pt(e.outputType));Ge(l,`invalid MethodDescriptorProto: input_type ${e.inputType} not found`),Ge(c,`invalid MethodDescriptorProto: output_type ${e.inputType} not found`);const u=e.name;return{kind:"rpc",proto:e,deprecated:(s=(r=e.options)===null||r===void 0?void 0:r.deprecated)!==null&&s!==void 0?s:!1,parent:t,name:u,localName:On(u.length?On(u[0].toLowerCase()+u.substring(1)):u),methodKind:a,input:l,output:c,idempotency:(i=(o=e.options)===null||o===void 0?void 0:o.idempotencyLevel)!==null&&i!==void 0?i:gm,toString(){return`rpc ${t.typeName}.${u}`}}}function Sm(e,t){return{kind:"oneof",proto:e,deprecated:!1,parent:t,fields:[],name:e.name,localName:On(zt(e.name)),toString(){return`oneof ${t.typeName}.${this.name}`}}}function js(e,t,n,r,s){var o,i,a;const l=s===void 0,c={kind:"field",proto:e,deprecated:(i=(o=e.options)===null||o===void 0?void 0:o.deprecated)!==null&&i!==void 0?i:!1,name:e.name,number:e.number,scalar:void 0,message:void 0,enum:void 0,presence:Rm(e,r,l,t),utf8Validation:Pm(e,t),listKind:void 0,mapKind:void 0,mapKey:void 0,delimitedEncoding:void 0,packed:void 0,longAsString:!1,getDefaultValue:void 0};if(l){const h=t.kind=="file"?t:t.file,w=t.kind=="file"?void 0:t,y=yr(e,w,h);c.kind="extension",c.file=h,c.parent=w,c.oneof=void 0,c.typeName=y,c.jsonName=`[${y}]`,c.toString=()=>`extension ${y}`;const D=n.getMessage(pt(e.extendee));Ge(D,`invalid FieldDescriptorProto: extendee ${e.extendee} not found`),c.extendee=D}else{const h=t;Ge(h.kind=="message"),c.parent=h,c.oneof=r,c.localName=r?zt(e.name):On(zt(e.name)),c.jsonName=e.jsonName,c.toString=()=>`field ${h.typeName}.${e.name}`}const u=e.label,m=e.type,b=(a=e.options)===null||a===void 0?void 0:a.jstype;if(u===Bs){const h=m==xn?s==null?void 0:s.get(pt(e.typeName)):void 0;if(h){c.fieldKind="map";const{key:w,value:y}=Dm(h);return c.mapKey=w.scalar,c.mapKind=y.fieldKind,c.message=y.message,c.delimitedEncoding=!1,c.enum=y.enum,c.scalar=y.scalar,c}switch(c.fieldKind="list",m){case xn:case An:c.listKind="message",c.message=n.getMessage(pt(e.typeName)),Ge(c.message),c.delimitedEncoding=rl(e,t);break;case Za:c.listKind="enum",c.enum=n.getEnum(pt(e.typeName)),Ge(c.enum);break;default:c.listKind="scalar",c.scalar=m,c.longAsString=b==za;break}return c.packed=Lm(e,t),c}switch(m){case xn:case An:c.fieldKind="message",c.message=n.getMessage(pt(e.typeName)),Ge(c.message,`invalid FieldDescriptorProto: type_name ${e.typeName} not found`),c.delimitedEncoding=rl(e,t),c.getDefaultValue=()=>{};break;case Za:{const h=n.getEnum(pt(e.typeName));Ge(h!==void 0,`invalid FieldDescriptorProto: type_name ${e.typeName} not found`),c.fieldKind="enum",c.enum=n.getEnum(pt(e.typeName)),c.getDefaultValue=()=>Sn(e,"defaultValue")?im(h,e.defaultValue):void 0;break}default:{c.fieldKind="scalar",c.scalar=m,c.longAsString=b==za,c.getDefaultValue=()=>Sn(e,"defaultValue")?am(m,e.defaultValue):void 0;break}}return c}function Tm(e){switch(e.syntax){case"":case"proto2":return um;case"proto3":return fm;case"editions":if(e.edition===dm)return vm;if(e.edition in Qa)return e.edition;throw new Error(`${e.name}: unsupported edition`);default:throw new Error(`${e.name}: unsupported syntax "${e.syntax}"`)}}function Om(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 Am(e,t){const n=xm(e)+"_";for(const r of t){if(!r.name.toLowerCase().startsWith(n))return;const s=r.name.substring(n.length);if(s.length==0||/^\d/.test(s))return}return n}function xm(e){return(e.substring(0,1)+e.substring(1).replace(/[A-Z]/g,t=>"_"+t)).toLowerCase()}function yr(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 pt(e){return e.startsWith(".")?e.substring(1):e}function km(e,t){if(!Sn(e,"oneofIndex")||e.proto3Optional)return;const n=t[e.oneofIndex];return Ge(n,`invalid FieldDescriptorProto: oneof #${e.oneofIndex} for field #${e.number} not found`),n}function Rm(e,t,n,r){if(e.label==hm)return bm;if(e.label==Bs)return qa;if(t||e.proto3Optional||n)return Gs;const s=kt("fieldPresence",{proto:e,parent:r});return s==qa&&(e.type==xn||e.type==An)?Gs:s}function Lm(e,t){if(e.label!=Bs)return!1;switch(e.type){case mm:case pm:case An:case xn:return!1}const n=e.options;return n&&Sn(n,"packed")?n.packed:ym==kt("repeatedFieldEncoding",{proto:e,parent:t})}function Dm(e){const t=e.fields.find(r=>r.number===1),n=e.fields.find(r=>r.number===2);return Ge(t&&t.fieldKind=="scalar"&&t.scalar!=p.BYTES&&t.scalar!=p.FLOAT&&t.scalar!=p.DOUBLE&&n&&n.fieldKind!="list"&&n.fieldKind!="map"),{key:t,value:n}}function Um(e){var t;return Em==kt("enumType",{proto:e.proto,parent:(t=e.parent)!==null&&t!==void 0?t:e.file})}function rl(e,t){return e.type==An?!0:_m==kt("messageEncoding",{proto:e,parent:t})}function Pm(e,t){return Nm==kt("utf8Validation",{proto:e,parent:t})}function kt(e,t){var n,r;const s=(n=t.proto.options)===null||n===void 0?void 0:n.features;if(s){const o=s[e];if(o!=0)return o}if("kind"in t){if(t.kind=="message")return kt(e,(r=t.parent)!==null&&r!==void 0?r:t.file);const o=Qa[t.edition];if(!o)throw new Error(`feature default for edition ${t.edition} not found`);return o[e]}return kt(e,t.parent)}function Ge(e,t){if(!e)throw new Error(t)}function $m(e){const t=Cm(e);return t.messageType.forEach(Ms),Vs(t,()=>{}).getFile(t.name)}function Cm(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(sl),enumType:e.enumType.map(ol)}))}function sl(e){var t,n,r,s,o,i,a,l;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(Mm))!==null&&n!==void 0?n:[],extension:[],nestedType:(s=(r=e.nestedType)===null||r===void 0?void 0:r.map(sl))!==null&&s!==void 0?s:[],enumType:(i=(o=e.enumType)===null||o===void 0?void 0:o.map(ol))!==null&&i!==void 0?i:[],extensionRange:(l=(a=e.extensionRange)===null||a===void 0?void 0:a.map(u=>Object.assign({$typeName:"google.protobuf.DescriptorProto.ExtensionRange"},u)))!==null&&l!==void 0?l:[],oneofDecl:[],reservedRange:[],reservedName:[]})}function Mm(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?Fm(e.options):void 0}))}function Fm(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(o=>Object.assign({$typeName:"google.protobuf.FieldOptions.EditionDefault"},o)))!==null&&r!==void 0?r:[],uninterpretedOption:[]}))}function ol(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 Rt(e,t,...n){return n.reduce((r,s)=>r.nestedMessages[s],e.messages[t])}const il=$m({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",options:{}},{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"},{name:"removal_error",number:5,type:9,label:1}]}],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}]}]}),Vm=Rt(il,0),Bm=Rt(il,1);var al;(function(e){e[e.DECLARATION=0]="DECLARATION",e[e.UNVERIFIED=1]="UNVERIFIED"})(al||(al={}));var ll;(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"})(ll||(ll={}));var cl;(function(e){e[e.OPTIONAL=1]="OPTIONAL",e[e.REPEATED=3]="REPEATED",e[e.REQUIRED=2]="REQUIRED"})(cl||(cl={}));var ul;(function(e){e[e.SPEED=1]="SPEED",e[e.CODE_SIZE=2]="CODE_SIZE",e[e.LITE_RUNTIME=3]="LITE_RUNTIME"})(ul||(ul={}));var fl;(function(e){e[e.STRING=0]="STRING",e[e.CORD=1]="CORD",e[e.STRING_PIECE=2]="STRING_PIECE"})(fl||(fl={}));var dl;(function(e){e[e.JS_NORMAL=0]="JS_NORMAL",e[e.JS_STRING=1]="JS_STRING",e[e.JS_NUMBER=2]="JS_NUMBER"})(dl||(dl={}));var ml;(function(e){e[e.RETENTION_UNKNOWN=0]="RETENTION_UNKNOWN",e[e.RETENTION_RUNTIME=1]="RETENTION_RUNTIME",e[e.RETENTION_SOURCE=2]="RETENTION_SOURCE"})(ml||(ml={}));var pl;(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"})(pl||(pl={}));var hl;(function(e){e[e.IDEMPOTENCY_UNKNOWN=0]="IDEMPOTENCY_UNKNOWN",e[e.NO_SIDE_EFFECTS=1]="NO_SIDE_EFFECTS",e[e.IDEMPOTENT=2]="IDEMPOTENT"})(hl||(hl={}));var gl;(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"})(gl||(gl={}));var bl;(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"})(bl||(bl={}));var yl;(function(e){e[e.ENUM_TYPE_UNKNOWN=0]="ENUM_TYPE_UNKNOWN",e[e.OPEN=1]="OPEN",e[e.CLOSED=2]="CLOSED"})(yl||(yl={}));var _l;(function(e){e[e.REPEATED_FIELD_ENCODING_UNKNOWN=0]="REPEATED_FIELD_ENCODING_UNKNOWN",e[e.PACKED=1]="PACKED",e[e.EXPANDED=2]="EXPANDED"})(_l||(_l={}));var El;(function(e){e[e.UTF8_VALIDATION_UNKNOWN=0]="UTF8_VALIDATION_UNKNOWN",e[e.VERIFY=2]="VERIFY",e[e.NONE=3]="NONE"})(El||(El={}));var Nl;(function(e){e[e.MESSAGE_ENCODING_UNKNOWN=0]="MESSAGE_ENCODING_UNKNOWN",e[e.LENGTH_PREFIXED=1]="LENGTH_PREFIXED",e[e.DELIMITED=2]="DELIMITED"})(Nl||(Nl={}));var vl;(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"})(vl||(vl={}));var wl;(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"})(wl||(wl={}));var Il;(function(e){e[e.NONE=0]="NONE",e[e.SET=1]="SET",e[e.ALIAS=2]="ALIAS"})(Il||(Il={}));var Sl;(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"})(Sl||(Sl={}));var Tl;(function(e){e[e.VISIBILITY_UNSET=0]="VISIBILITY_UNSET",e[e.VISIBILITY_LOCAL=1]="VISIBILITY_LOCAL",e[e.VISIBILITY_EXPORT=2]="VISIBILITY_EXPORT"})(Tl||(Tl={}));function Ol(e){return Object.assign(Object.assign({readUnknownFields:!0,recursionLimit:100},e),{depth:0})}function qt(e,t,n){const r=Be(e,void 0,!1);return Al(r,new Os(t),Ol(n),!1,t.byteLength),r.message}function Al(e,t,n,r,s){var o;if(++n.depth>n.recursionLimit)throw new Error(`cannot decode ${e.desc} from binary: maximum recursion depth of ${n.recursionLimit} reached`);const i=r?t.len:t.pos+s;let a,l;const c=(o=e.getUnknown())!==null&&o!==void 0?o:[];for(;t.pos<i&&([a,l]=t.tag(),!(r&&l==fe.EndGroup));){const u=e.findNumber(a);if(!u){const m=n.recursionLimit-n.depth,b=t.skip(l,a,m);n.readUnknownFields&&c.push({no:a,wireType:l,data:b});continue}xl(e,t,u,l,n)}if(r&&(l!=fe.EndGroup||a!==s))throw new Error("invalid end group tag");c.length>0&&e.setUnknown(c),n.depth--}function xl(e,t,n,r,s){var o;switch(n.fieldKind){case"scalar":e.set(n,Qt(t,n.scalar,n.utf8Validation));break;case"enum":const i=Qt(t,p.INT32);if(n.enum.open)e.set(n,i);else if(n.enum.values.some(l=>l.number===i))e.set(n,i);else if(s.readUnknownFields){const l=[];ys(i,l);const c=(o=e.getUnknown())!==null&&o!==void 0?o:[];c.push({no:n.number,wireType:r,data:new Uint8Array(l)}),e.setUnknown(c)}break;case"message":e.set(n,Js(t,s,n,e.get(n)));break;case"list":Km(t,r,e.get(n),s);break;case"map":Gm(t,e.get(n),s);break}}function Gm(e,t,n){const r=t.field();let s,o;const i=e.uint32(),a=e.pos+i;for(;e.pos<a;){const[l]=e.tag();switch(l){case 1:s=Qt(e,r.mapKey,r.utf8Validation);break;case 2:switch(r.mapKind){case"scalar":o=Qt(e,r.scalar,r.utf8Validation);break;case"enum":o=e.int32();break;case"message":o=Js(e,n,r);break}break}}if(s===void 0&&(s=Ht(r.mapKey,!1)),o===void 0)switch(r.mapKind){case"scalar":o=Ht(r.scalar,!1);break;case"enum":o=r.enum.values[0].number;break;case"message":o=Be(r.message,void 0,!1);break}t.set(s,o)}function Km(e,t,n,r){var s;const o=n.field();if(o.listKind==="message"){n.add(Js(e,r,o));return}const i=(s=o.scalar)!==null&&s!==void 0?s:p.INT32;if(!(t==fe.LengthDelimited&&i!=p.STRING&&i!=p.BYTES)){n.add(Qt(e,i,o.utf8Validation));return}const l=e.uint32()+e.pos;for(;e.pos<l;)n.add(Qt(e,i,o.utf8Validation))}function Js(e,t,n,r){const s=n.delimitedEncoding,o=r??Be(n.message,void 0,!1);return Al(o,e,t,s,s?n.number:e.uint32()),o}function Qt(e,t,n=!1){switch(t){case p.STRING:return e.string(n);case p.BOOL:return e.bool();case p.DOUBLE:return e.double();case p.FLOAT:return e.float();case p.INT32:return e.int32();case p.INT64:return e.int64();case p.UINT64:return e.uint64();case p.FIXED64:return e.fixed64();case p.BYTES:return e.bytes();case p.FIXED32:return e.fixed32();case p.SFIXED32:return e.sfixed32();case p.SFIXED64:return e.sfixed64();case p.SINT64:return e.sint64();case p.UINT32:return e.uint32();case p.SINT32:return e.sint32()}}function Ws(e,t){var n;const r=qt(Bm,Cs(e));return r.messageType.forEach(Ms),r.dependency=(n=t==null?void 0:t.map(o=>o.proto.name))!==null&&n!==void 0?n:[],Vs(r,o=>t==null?void 0:t.find(i=>i.proto.name===o)).getFile(r.name)}const kl=Ws("Chlnb29nbGUvcHJvdG9idWYvYW55LnByb3RvEg9nb29nbGUucHJvdG9idWYiJgoDQW55EhAKCHR5cGVfdXJsGAEgASgJEg0KBXZhbHVlGAIgASgMQnYKE2NvbS5nb29nbGUucHJvdG9idWZCCEFueVByb3RvUAFaLGdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL2FueXBiogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM"),Ym=Rt(kl,0),jm=3,Rl={writeUnknownFields:!0};function Jm(e){return e?Object.assign(Object.assign({},Rl),e):Rl}function Ll(e,t,n){return _r(new Da,Jm(n),Be(e,t)).finish()}function _r(e,t,n){var r;for(const s of n.sortedFields){if(!n.isSet(s)){if(s.presence==jm)throw new Error(`cannot encode ${s} to binary: required field not set`);continue}Dl(e,t,n,s)}if(t.writeUnknownFields)for(const{no:s,wireType:o,data:i}of(r=n.getUnknown())!==null&&r!==void 0?r:[])e.tag(s,o).raw(i);return e}function Dl(e,t,n,r){var s;switch(r.fieldKind){case"scalar":case"enum":Er(e,n.desc.typeName,r.name,(s=r.scalar)!==null&&s!==void 0?s:p.INT32,r.number,n.get(r));break;case"list":Wm(e,t,r,n.get(r));break;case"message":Ul(e,t,r,n.get(r));break;case"map":for(const[o,i]of n.get(r))Hm(e,t,r,o,i);break}}function Er(e,t,n,r,s,o){Pl(e.tag(s,Xm(r)),t,n,r,o)}function Ul(e,t,n,r){n.delimitedEncoding?_r(e.tag(n.number,fe.StartGroup),t,r).tag(n.number,fe.EndGroup):_r(e.tag(n.number,fe.LengthDelimited).fork(),t,r).join()}function Wm(e,t,n,r){var s;if(n.listKind=="message"){for(const i of r)Ul(e,t,n,i);return}const o=(s=n.scalar)!==null&&s!==void 0?s:p.INT32;if(n.packed){if(!r.size)return;e.tag(n.number,fe.LengthDelimited).fork();for(const i of r)Pl(e,n.parent.typeName,n.name,o,i);e.join();return}for(const i of r)Er(e,n.parent.typeName,n.name,o,n.number,i)}function Hm(e,t,n,r,s){var o;switch(e.tag(n.number,fe.LengthDelimited).fork(),Er(e,n.parent.typeName,n.name,n.mapKey,1,r),n.mapKind){case"scalar":case"enum":Er(e,n.parent.typeName,n.name,(o=n.scalar)!==null&&o!==void 0?o:p.INT32,2,s);break;case"message":_r(e.tag(2,fe.LengthDelimited).fork(),t,s).join();break}e.join()}function Pl(e,t,n,r,s){try{switch(r){case p.STRING:e.string(s);break;case p.BOOL:e.bool(s);break;case p.DOUBLE:e.double(s);break;case p.FLOAT:e.float(s);break;case p.INT32:e.int32(s);break;case p.INT64:e.int64(s);break;case p.UINT64:e.uint64(s);break;case p.FIXED64:e.fixed64(s);break;case p.BYTES:e.bytes(s);break;case p.FIXED32:e.fixed32(s);break;case p.SFIXED32:e.sfixed32(s);break;case p.SFIXED64:e.sfixed64(s);break;case p.SINT64:e.sint64(s);break;case p.UINT32:e.uint32(s);break;case p.SINT32:e.sint32(s);break}}catch(o){throw o instanceof Error?new Error(`cannot encode field ${t}.${n} to binary: ${o.message}`):o}}function Xm(e){switch(e){case p.BYTES:case p.STRING:return fe.LengthDelimited;case p.DOUBLE:case p.FIXED64:case p.SFIXED64:return fe.Bit64;case p.FIXED32:case p.SFIXED32:case p.FLOAT:return fe.Bit32;default:return fe.Varint}}function Zm(e,t,n){let r=!1;return n||(n=Ve(Ym),r=!0),n.value=Ll(e,t),n.typeUrl=Qm(t.$typeName),r?n:void 0}function zm(e,t){if(e.typeUrl==="")return!1;const n=typeof t=="string"?t:t.typeName,r=$l(e.typeUrl);return n===r}function qm(e,t){if(e.typeUrl==="")return;const n=t.kind=="message"?t:t.getMessage($l(e.typeUrl));if(!(!n||!zm(e,n)))return qt(n,e.value)}function Qm(e){return`type.googleapis.com/${e}`}function $l(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 Hs=Ws("Chxnb29nbGUvcHJvdG9idWYvc3RydWN0LnByb3RvEg9nb29nbGUucHJvdG9idWYihAEKBlN0cnVjdBIzCgZmaWVsZHMYASADKAsyIy5nb29nbGUucHJvdG9idWYuU3RydWN0LkZpZWxkc0VudHJ5GkUKC0ZpZWxkc0VudHJ5EgsKA2tleRgBIAEoCRIlCgV2YWx1ZRgCIAEoCzIWLmdvb2dsZS5wcm90b2J1Zi5WYWx1ZToCOAEi6gEKBVZhbHVlEjAKCm51bGxfdmFsdWUYASABKA4yGi5nb29nbGUucHJvdG9idWYuTnVsbFZhbHVlSAASFgoMbnVtYmVyX3ZhbHVlGAIgASgBSAASFgoMc3RyaW5nX3ZhbHVlGAMgASgJSAASFAoKYm9vbF92YWx1ZRgEIAEoCEgAEi8KDHN0cnVjdF92YWx1ZRgFIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3RIABIwCgpsaXN0X3ZhbHVlGAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLkxpc3RWYWx1ZUgAQgYKBGtpbmQiMwoJTGlzdFZhbHVlEiYKBnZhbHVlcxgBIAMoCzIWLmdvb2dsZS5wcm90b2J1Zi5WYWx1ZSobCglOdWxsVmFsdWUSDgoKTlVMTF9WQUxVRRAAQn8KE2NvbS5nb29nbGUucHJvdG9idWZCC1N0cnVjdFByb3RvUAFaL2dvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL3N0cnVjdHBi+AEBogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM"),ep=Rt(Hs,0),Cl=Rt(Hs,1),tp=Rt(Hs,2);var Xs;(function(e){e[e.NULL_VALUE=0]="NULL_VALUE"})(Xs||(Xs={}));function np(e,t,n){Ml(t,e);const r=sp(e.$unknown,t),[s,o,i]=Nr(t),a=Ol(n);for(const l of r)xl(s,new Os(l.data),o,l.wireType,a);return i()}function rp(e,t,n){var r;Ml(t,e);const s=((r=e.$unknown)!==null&&r!==void 0?r:[]).filter(c=>c.no!==t.number),[o,i]=Nr(t,n),a=new Da;Dl(a,{writeUnknownFields:!0},o,i);const l=new Os(a.finish());for(;l.pos<l.len;){const[c,u]=l.tag(),m=l.skip(u,c);s.push({no:c,wireType:u,data:m})}e.$unknown=s}function sp(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 Nr(e,t){const n=e.typeName,r=Object.assign(Object.assign({},e),{kind:"field",parent:e.extendee,localName:n}),s=Object.assign(Object.assign({},e.extendee),{fields:[r],members:[r],oneofs:[]}),o=Ve(s,t!==void 0?{[n]:t}:void 0);return[Be(s,o),r,()=>{const i=o[n];if(i===void 0){const a=e.message;return Xt(a)?Ht(a.fields[0].scalar,a.fields[0].longAsString):Ve(a)}return i}]}function Ml(e,t){if(e.extendee.typeName!=t.$typeName)throw new Error(`extension ${e.typeName} can only be applied to message ${e.extendee.typeName}`)}const op=3,ip=2,Fl={alwaysEmitImplicit:!1,enumAsInteger:!1,useProtoFieldName:!1};function ap(e){return e?Object.assign(Object.assign({},Fl),e):Fl}function Zs(e,t,n){return kn(Be(e,t),ap(n))}function lp(e,t,n){var r;const s=Zs(e,t,n);return JSON.stringify(s,null,(r=n==null?void 0:n.prettySpaces)!==null&&r!==void 0?r:0)}function kn(e,t){var n;const r=Bl(e,t);if(r!==void 0)return r;const s={};for(const o of e.sortedFields){if(!e.isSet(o)){if(o.presence==op)throw new Error(`cannot encode ${o} to JSON: required field not set`);if(!t.alwaysEmitImplicit||o.presence!==ip)continue}const i=Vl(o,e.get(o),t);i!==void 0&&(s[fp(o,t)]=i)}if(t.registry){const o=new Set;for(const{no:i}of(n=e.getUnknown())!==null&&n!==void 0?n:[])if(!o.has(i)){o.add(i);const a=t.registry.getExtensionFor(e.desc,i);if(!a)continue;const l=np(e.message,a),[c,u]=Nr(a,l),m=Vl(u,c.get(u),t);m!==void 0&&(s[a.jsonName]=m)}}return s}function Vl(e,t,n){switch(e.fieldKind){case"scalar":return vr(e,t);case"message":return kn(t,n);case"enum":return zs(e.enum,t,n.enumAsInteger);case"list":return up(t,n);case"map":return cp(t,n)}}function cp(e,t){const n=e.field(),r={};switch(n.mapKind){case"scalar":for(const[s,o]of e)r[s]=vr(n,o);break;case"message":for(const[s,o]of e)r[s]=kn(o,t);break;case"enum":for(const[s,o]of e)r[s]=zs(n.enum,o,t.enumAsInteger);break}return t.alwaysEmitImplicit||e.size>0?r:void 0}function up(e,t){const n=e.field(),r=[];switch(n.listKind){case"scalar":for(const s of e)r.push(vr(n,s));break;case"enum":for(const s of e)r.push(zs(n.enum,s,t.enumAsInteger));break;case"message":for(const s of e)r.push(kn(s,t));break}return t.alwaysEmitImplicit||r.length>0?r:void 0}function zs(e,t,n){var r;if(typeof t!="number")throw new Error(`cannot encode ${e} to JSON: expected number, got ${he(t)}`);if(e.typeName=="google.protobuf.NullValue")return null;if(n)return t;const s=e.value[t];return(r=s==null?void 0:s.name)!==null&&r!==void 0?r:t}function vr(e,t){var n,r,s,o,i,a;switch(e.scalar){case p.INT32:case p.SFIXED32:case p.SINT32:case p.FIXED32:case p.UINT32:if(typeof t!="number")throw new Error(`cannot encode ${e} to JSON: ${(n=xt(e,t))===null||n===void 0?void 0:n.message}`);return t;case p.FLOAT:case p.DOUBLE:if(typeof t!="number")throw new Error(`cannot encode ${e} to JSON: ${(r=xt(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 p.STRING:if(typeof t!="string")throw new Error(`cannot encode ${e} to JSON: ${(s=xt(e,t))===null||s===void 0?void 0:s.message}`);return t;case p.BOOL:if(typeof t!="boolean")throw new Error(`cannot encode ${e} to JSON: ${(o=xt(e,t))===null||o===void 0?void 0:o.message}`);return t;case p.UINT64:case p.FIXED64:case p.INT64:case p.SFIXED64:case p.SINT64:if(typeof t=="bigint"||typeof t=="string"||typeof t=="number"&&Number.isInteger(t))return t.toString();throw new Error(`cannot encode ${e} to JSON: ${(i=xt(e,t))===null||i===void 0?void 0:i.message}`);case p.BYTES:if(t instanceof Uint8Array)return rm(t);throw new Error(`cannot encode ${e} to JSON: ${(a=xt(e,t))===null||a===void 0?void 0:a.message}`)}}function fp(e,t){return t.useProtoFieldName?e.name:e.jsonName}function Bl(e,t){if(e.desc.typeName.startsWith("google.protobuf."))switch(e.desc.typeName){case"google.protobuf.Any":return dp(e.message,t);case"google.protobuf.Timestamp":return hp(e.message);case"google.protobuf.Duration":return mp(e.message);case"google.protobuf.FieldMask":return pp(e.message);case"google.protobuf.Struct":return Gl(e.message);case"google.protobuf.Value":return qs(e.message);case"google.protobuf.ListValue":return Kl(e.message);default:if(Xt(e.desc)){const n=e.desc.fields[0];return vr(n,e.get(n))}return}}function dp(e,t){if(e.typeUrl==="")return{};const{registry:n}=t;let r,s;if(n&&(r=qm(e,n),r&&(s=n.getMessage(r.$typeName))),!s||!r)throw new Error(`cannot encode message ${e.$typeName} to JSON: "${e.typeUrl}" is not in the type registry`);const o=Be(s,r),i=wa(s)?{value:Bl(o,t)}:kn(o,t);return i["@type"]=e.typeUrl,i}function mp(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 s=Math.abs(n).toString();s="0".repeat(9-s.length)+s,s.substring(3)==="000000"?s=s.substring(0,3):s.substring(6)==="000"&&(s=s.substring(0,6)),r+="."+s,n<0&&t==0&&(r="-"+r)}return r+"s"}function pp(e){return e.paths.map(t=>{if(Xa(zt(t))!==t)throw new Error(`cannot encode message ${e.$typeName} to JSON: lowerCamelCase of path name "${t}" is irreversible`);return zt(t)}).join(",")}function Gl(e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=qs(r);return t}function qs(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 Gl(e.kind.value);case"listValue":return Kl(e.kind.value);default:throw new Error(`${e.$typeName} must have a value`)}}function Kl(e){return e.values.map(qs)}function hp(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)}function gp(e){return Object.assign(Object.assign({ignoreUnknownFields:!1,recursionLimit:100},e),{depth:0})}function bp(e,t,n){return Qs(e,Sp(t,e.typeName),n)}function Qs(e,t,n){const r=Be(e);try{Rn(r,t,gp(n))}catch(s){throw Zd(s)?new Error(`cannot decode ${s.field()} from JSON: ${s.message}`,{cause:s}):s}return r.message}const eo=new WeakMap;function yp(e,t){var n;if(!eo.has(e)){const r=new Map;for(const s of e.fields)r.set(s.name,s).set(s.jsonName,s);eo.set(e,r)}return(n=eo.get(e))===null||n===void 0?void 0:n.get(t)}function Rn(e,t,n){var r;if(++n.depth>n.recursionLimit)throw new Error(`cannot decode ${e.desc} from JSON: maximum recursion depth of ${n.recursionLimit} reached`);if(Op(e,t,n)){n.depth--;return}if(t==null||Array.isArray(t)||typeof t!="object")throw new Error(`cannot decode ${e.desc} from JSON: ${he(t)}`);const s=new Map,o=new Set;for(const[i,a]of Object.entries(t)){const l=yp(e.desc,i);if(l){if(o.has(l))throw new Se(l,"set multiple times");if(o.add(l),l.oneof&&a===null&&l.fieldKind=="scalar")continue;if(l.oneof){const c=s.get(l.oneof);if(c!==void 0)throw new Se(l.oneof,`oneof set multiple times by ${c.name} and ${l.name}`);s.set(l.oneof,l)}Yl(e,l,a,n)}else{let c;if(i.startsWith("[")&&i.endsWith("]")&&(c=(r=n.registry)===null||r===void 0?void 0:r.getExtension(i.substring(1,i.length-1)))&&c.extendee.typeName===e.desc.typeName){const[u,m,b]=Nr(c);Yl(u,m,a,n),rp(e.message,c,b())}if(!c&&!n.ignoreUnknownFields)throw new Error(`cannot decode ${e.desc} from JSON: key "${i}" is unknown`)}}n.depth--}function Yl(e,t,n,r){switch(t.fieldKind){case"scalar":wp(e,t,n);break;case"enum":vp(e,t,n,r);break;case"message":Np(e,t,n,r);break;case"list":Ep(e.get(t),n,r);break;case"map":_p(e.get(t),n,r);break}}function jl(e,t,n){if(e.scalar&&t!==null)return to(e,t);if(e.message&&!wr(e,t)){const r=Be(e.message);return Rn(r,t,n),r}if(e.enum&&!wr(e,t))return Jl(e.enum,t,n.ignoreUnknownFields);throw new Se(e,`${e.fieldKind==="list"?"list item":"map value"} must not be null`)}function _p(e,t,n){if(t===null)return;const r=e.field();if(typeof t!="object"||Array.isArray(t))throw new Se(r,"expected object, got "+he(t));const s=new Set;for(const[o,i]of Object.entries(t)){const a=Ip(r.mapKey,o);if(s.has(a))throw new Se(r,`duplicate map key "${o}"`);s.add(a);const l=jl(r,i,n);l!==Ir&&e.set(a,l)}}function Ep(e,t,n){if(t===null)return;const r=e.field();if(!Array.isArray(t))throw new Se(r,"expected Array, got "+he(t));for(const s of t){const o=jl(r,s,n);o!==Ir&&e.add(o)}}function Np(e,t,n,r){if(wr(t,n)){e.clear(t);return}const s=e.isSet(t)?e.get(t):Be(t.message);Rn(s,n,r),e.set(t,s)}function vp(e,t,n,r){if(wr(t,n)){e.clear(t);return}const s=Jl(t.enum,n,r.ignoreUnknownFields);s!==Ir&&e.set(t,s)}function wp(e,t,n){n===null?e.clear(t):e.set(t,to(t,n))}function wr(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 Ir=Symbol();function Jl(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(s=>s.name===t);if(r!==void 0)return r.number;if(n)return Ir;break}throw new Error(`cannot decode ${e} from JSON: ${he(t)}`)}function to(e,t){switch(e.scalar){case p.DOUBLE:case p.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 Se(e,"unexpected NaN number");if(!Number.isFinite(t))throw new Se(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 p.INT32:case p.FIXED32:case p.SFIXED32:case p.SINT32:case p.UINT32:return Wl(t);case p.BYTES:if(typeof t=="string"){if(t==="")return new Uint8Array(0);try{return Cs(t)}catch(n){const r=n instanceof Error?n.message:String(n);throw new Se(e,r)}}break}return t}function Ip(e,t){switch(e){case p.BOOL:switch(t){case"true":return!0;case"false":return!1}return t;case p.INT32:case p.FIXED32:case p.UINT32:case p.SFIXED32:case p.SINT32:return Wl(t);case p.INT64:case p.SINT64:case p.SFIXED64:case p.UINT64:case p.FIXED64:return/^-?0+$/.test(t)?"0":t.replace(/^(-?)0+(?=\d)/,"$1");default:return t}}function Wl(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 Sp(e,t){let n;try{n=JSON.parse(e)}catch(r){const s=r instanceof Error?r.message:String(r);throw new Error(`cannot decode message ${t} from JSON: ${s}`,{cause:r})}return Tp(e,t),n}function Tp(e,t){const n=[];let r=!1,s=0;for(;s<e.length;)switch(e[s]){case"{":n.push(new Set),r=!0,s++;break;case"[":n.push(null),r=!1,s++;break;case"}":case"]":n.pop(),r=!1,s++;break;case",":r=n[n.length-1]!=null,s++;break;case":":r=!1,s++;break;case'"':{const o=s++;let i=!1;for(;s<e.length;){if(e[s]=="\\"){i=!0,s+=2;continue}if(e[s]=='"')break;s++}const a=s++,l=n[n.length-1];if(r&&l){const c=i?JSON.parse(e.substring(o,a+1)):e.substring(o+1,a);if(l.has(c))throw new Error(`cannot decode message ${t} from JSON: duplicate object key "${c}"`);l.add(c)}r=!1;break}default:s++;break}}function Op(e,t,n){if(!e.desc.typeName.startsWith("google.protobuf."))return!1;switch(e.desc.typeName){case"google.protobuf.Any":return Ap(e.message,t,n),!0;case"google.protobuf.Timestamp":return xp(e.message,t),!0;case"google.protobuf.Duration":return kp(e.message,t),!0;case"google.protobuf.FieldMask":return Rp(e.message,t),!0;case"google.protobuf.Struct":return Hl(e.message,t,n),!0;case"google.protobuf.Value":return no(e.message,t,n),!0;case"google.protobuf.ListValue":return Xl(e.message,t,n),!0;default:if(Xt(e.desc)){const r=e.desc.fields[0];return t===null?e.clear(r):e.set(r,to(r,t)),!0}return!1}}function Ap(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 ${he(t)}`);if(Object.keys(t).length==0)return;const s=t["@type"];if(typeof s!="string"||s=="")throw new Error(`cannot decode message ${e.$typeName} from JSON: "@type" is empty`);const o=s.includes("/")?s.substring(s.lastIndexOf("/")+1):s;if(!o.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(o);if(!i)throw new Error(`cannot decode message ${e.$typeName} from JSON: ${s} is not in the type registry`);const a=Be(i);if(wa(i)&&Object.prototype.hasOwnProperty.call(t,"value")){const l=t.value;Rn(a,l,n)}else{const l=Object.assign({},t);delete l["@type"],Rn(a,l,n)}Zm(a.desc,a.message,e)}function xp(e,t){if(typeof t!="string")throw new Error(`cannot decode message ${e.$typeName} from JSON: ${he(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=ae.parse(r/1e3),e.nanos=0,n[7]&&(e.nanos=parseInt("1"+n[7]+"0".repeat(9-n[7].length))-1e9)}function kp(e,t){if(typeof t!="string")throw new Error(`cannot decode message ${e.$typeName} from JSON: ${he(t)}`);const n=t.match(/^(-?[0-9]+)(?:\.([0-9]+))?s/);if(n===null)throw new Error(`cannot decode message ${e.$typeName} from JSON: ${he(t)}`);const r=Number(n[1]);if(r>315576e6||r<-315576e6)throw new Error(`cannot decode message ${e.$typeName} from JSON: ${he(t)}`);if(e.seconds=ae.parse(r),typeof n[2]!="string")return;const s=n[2]+"0".repeat(9-n[2].length);e.nanos=parseInt(s),(r<0||Object.is(r,-0))&&(e.nanos=-e.nanos)}function Rp(e,t){if(typeof t!="string")throw new Error(`cannot decode message ${e.$typeName} from JSON: ${he(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 Xa(n)}))}function Hl(e,t,n){if(typeof t!="object"||t==null||Array.isArray(t))throw new Error(`cannot decode message ${e.$typeName} from JSON ${he(t)}`);for(const[r,s]of Object.entries(t)){const o=Ve(Cl);no(o,s,n),e.fields[r]=o}}function no(e,t,n){if(++n.depth>n.recursionLimit)throw new Error(`cannot decode ${e.$typeName} from JSON: maximum recursion depth of ${n.recursionLimit} reached`);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:Xs.NULL_VALUE};else if(Array.isArray(t)){const r=Ve(tp);Xl(r,t,n),e.kind={case:"listValue",value:r}}else{const r=Ve(ep);Hl(r,t,n),e.kind={case:"structValue",value:r}}break;default:throw new Error(`cannot decode message ${e.$typeName} from JSON ${he(t)}`)}return n.depth--,e}function Xl(e,t,n){if(!Array.isArray(t))throw new Error(`cannot decode message ${e.$typeName} from JSON ${he(t)}`);for(const r of t){const s=Ve(Cl);no(s,r,n),e.values.push(s)}}var K;(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"})(K||(K={}));function Zl(e){const t=K[e];return typeof t!="string"?e.toString():t[0].toLowerCase()+t.substring(1).replace(/[A-Z]/g,n=>"_"+n.toLowerCase())}class ee extends Error{constructor(t,n=K.Unknown,r,s,o){super(Lp(t,n)),this.name="ConnectError",Object.setPrototypeOf(this,new.target.prototype),this.rawMessage=t,this.code=n,this.metadata=new Headers(r??{}),this.details=s??[],this.cause=o}static from(t,n=K.Unknown){return t instanceof ee?t:t instanceof Error?t.name=="AbortError"||t.name=="TimeoutError"?new ee(t.message,K.Canceled):new ee(t.message,n,void 0,void 0,t):new ee(String(t),n,void 0,void 0,t)}static[Symbol.hasInstance](t){return t instanceof Error?Object.getPrototypeOf(t)===ee.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:s=>s===t.typeName?t:void 0}:t,r=[];for(const s of this.details){if("desc"in s){n.getMessage(s.desc.typeName)&&r.push(Ve(s.desc,s.value));continue}const o=n.getMessage(s.type);if(o)try{r.push(qt(o,s.value))}catch{}}return r}}function Lp(e,t){return e.length?`[${Zl(t)}] ${e}`:`[${Zl(t)}]`}function Dp(e,t,n){try{const r=Cs(e);return t?qt(t,r,n):r}catch(r){throw ee.from(r,K.DataLoss)}}function Up(e,t){const n={};for(const r of e.methods){const s=t(r);s!=null&&(n[r.localName]=s)}return n}const zl=1;function Pp(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 ee(r,K.ResourceExhausted)}}function $p(e){return new Cp(e)}class Cp{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 Pp(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 s=this.buf.shift();s.byteLength>n-r?(t.set(s.subarray(0,n-r),r),this.buf.unshift(s.subarray(n-r)),r+=n-r):(t.set(s,r),r+=s.byteLength)}return!0}}function ql(e){let t;const n=$p(4294967295);return new ReadableStream({start(){t=e.getReader()},async pull(r){let s=!1;for(;!s;){const o=await t.read();if(o.done)n.byteLength>0&&r.error(new ee("protocol error: incomplete envelope",K.InvalidArgument)),r.close();else for(const i of n.decode(o.value))r.enqueue(i),s=!0}}})}function Ql(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 Mp=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(o){n[o]=e[o]&&function(i){return new Promise(function(a,l){i=e[o](i),s(a,l,i.done,i.value)})}}function s(o,i,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},i)}},Ln=function(e){return this instanceof Ln?(this.v=e,this):new Ln(e)},Fp=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),s,o=[];return s=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",i),s[Symbol.asyncIterator]=function(){return this},s;function i(h){return function(w){return Promise.resolve(w).then(h,m)}}function a(h,w){r[h]&&(s[h]=function(y){return new Promise(function(D,R){o.push([h,y,D,R])>1||l(h,y)})},w&&(s[h]=w(s[h])))}function l(h,w){try{c(r[h](w))}catch(y){b(o[0][3],y)}}function c(h){h.value instanceof Ln?Promise.resolve(h.value.v).then(u,m):b(o[0][2],h)}function u(h){l("next",h)}function m(h){l("throw",h)}function b(h,w){h(w),o.shift(),o.length&&l(o[0][0],o[0][1])}},Vp=function(e){var t,n;return t={},r("next"),r("throw",function(s){throw s}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(s,o){t[s]=e[s]?function(i){return(n=!n)?{value:Ln(e[s](i)),done:!1}:o?o(i):i}:o}};function Bp(e){return Fp(this,arguments,function*(){yield Ln(yield*Vp(Mp(e)))})}var ec=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(o){n[o]=e[o]&&function(i){return new Promise(function(a,l){i=e[o](i),s(a,l,i.done,i.value)})}}function s(o,i,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},i)}},en=function(e){return this instanceof en?(this.v=e,this):new en(e)},Gp=function(e){var t,n;return t={},r("next"),r("throw",function(s){throw s}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(s,o){t[s]=e[s]?function(i){return(n=!n)?{value:en(e[s](i)),done:!1}:o?o(i):i}:o}},Kp=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),s,o=[];return s=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",i),s[Symbol.asyncIterator]=function(){return this},s;function i(h){return function(w){return Promise.resolve(w).then(h,m)}}function a(h,w){r[h]&&(s[h]=function(y){return new Promise(function(D,R){o.push([h,y,D,R])>1||l(h,y)})},w&&(s[h]=w(s[h])))}function l(h,w){try{c(r[h](w))}catch(y){b(o[0][3],y)}}function c(h){h.value instanceof en?Promise.resolve(h.value.v).then(u,m):b(o[0][2],h)}function u(h){l("next",h)}function m(h){l("throw",h)}function b(h,w){h(w),o.shift(),o.length&&l(o[0][0],o[0][1])}};function Yp(e,t){return Up(e,n=>{switch(n.methodKind){case"unary":return jp(t,n);case"server_streaming":return Jp(t,n);case"client_streaming":return Wp(t,n);case"bidi_streaming":return Hp(t,n);default:return null}})}function jp(e,t){return async(n,r)=>{var s,o;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(s=r==null?void 0:r.onHeader)===null||s===void 0||s.call(r,i.header),(o=r==null?void 0:r.onTrailer)===null||o===void 0||o.call(r,i.trailer),i.message}}function Jp(e,t){return(n,r)=>tc(e.stream(t,r==null?void 0:r.signal,r==null?void 0:r.timeoutMs,r==null?void 0:r.headers,Bp([n]),r==null?void 0:r.contextValues),r)}function Wp(e,t){return async(n,r)=>{var s,o,i,a,l,c;const u=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);(l=r==null?void 0:r.onHeader)===null||l===void 0||l.call(r,u.header);let m,b=0;try{for(var h=!0,w=ec(u.message),y;y=await w.next(),s=y.done,!s;h=!0)a=y.value,h=!1,m=a,b++}catch(D){o={error:D}}finally{try{!h&&!s&&(i=w.return)&&await i.call(w)}finally{if(o)throw o.error}}if(!m)throw new ee("protocol error: missing response message",K.Unimplemented);if(b>1)throw new ee("protocol error: received extra messages for client streaming method",K.Unimplemented);return(c=r==null?void 0:r.onTrailer)===null||c===void 0||c.call(r,u.trailer),m}}function Hp(e,t){return(n,r)=>tc(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 tc(e,t){const n=(function(){return Kp(this,arguments,function*(){var r,s;const o=yield en(e);(r=t==null?void 0:t.onHeader)===null||r===void 0||r.call(t,o.header),yield en(yield*Gp(ec(o.message))),(s=t==null?void 0:t.onTrailer)===null||s===void 0||s.call(t,o.trailer)})})()[Symbol.asyncIterator]();return{[Symbol.asyncIterator]:()=>({next:()=>n.next()})}}function Xp(...e){const t=new AbortController,n=e.filter(s=>s!==void 0).concat(t.signal);for(const s of n){if(s.aborted){r.apply(s);break}s.addEventListener("abort",r)}function r(){t.signal.aborted||t.abort(nc(this));for(const s of n)s.removeEventListener("abort",r)}return t}function Zp(e){const t=new AbortController,n=()=>{t.abort(new ee("the operation timed out",K.DeadlineExceeded))};let r;return e!==void 0&&(e<=0?n():r=setTimeout(n,e)),{signal:t.signal,cleanup:()=>clearTimeout(r)}}function nc(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 rc(){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}}}const ro=128;function sc(e){const t=new Headers,n=new TextDecoder().decode(e).split(`\r
23
+ `);for(const r of n){if(r==="")continue;const s=r.indexOf(":");if(s>0){const o=r.substring(0,s).trim(),i=r.substring(s+1).trim();t.append(o,i)}}return t}const zp="Content-Type",qp="Grpc-Timeout",tn="Grpc-Status",oc="Grpc-Message",Qp="Grpc-Status-Details-Bin",eh="User-Agent",ic="X-User-Agent",th="X-Grpc-Web",nh="application/grpc-web+proto",rh="application/grpc-web+json",sh=Rt(Ws("CgxzdGF0dXMucHJvdG8SCmdvb2dsZS5ycGMiTgoGU3RhdHVzEgwKBGNvZGUYASABKAUSDwoHbWVzc2FnZRgCIAEoCRIlCgdkZXRhaWxzGAMgAygLMhQuZ29vZ2xlLnByb3RvYnVmLkFueUJeCg5jb20uZ29vZ2xlLnJwY0ILU3RhdHVzUHJvdG9QAVo3Z29vZ2xlLmdvbGFuZy5vcmcvZ2VucHJvdG8vZ29vZ2xlYXBpcy9ycGMvc3RhdHVzO3N0YXR1c6ICA1JQQ2IGcHJvdG8z",[kl]),0),oh="0";function ac(e){var t;const n=e.get(Qp);if(n!=null){const s=Dp(n,sh);if(s.code==0)return;const o=new ee(s.message,s.code,e);return o.details=s.details.map(i=>({type:i.typeUrl.substring(i.typeUrl.lastIndexOf("/")+1),value:i.value})),o}const r=e.get(tn);if(r!=null){if(r===oh)return;const s=parseInt(r,10);return s in K?new ee(decodeURIComponent((t=e.get(oc))!==null&&t!==void 0?t:""),s,e):new ee(`invalid grpc-status: ${r}`,K.Internal,e)}}function lc(e,t){return e.toString().replace(/\/?$/,`/${t.parent.typeName}/${t.name}`)}function cc(e,t){return Ve(e,t)}function ih(e,t){function n(r){return r.done===!0?r:{done:r.done,value:cc(e,r.value)}}return{[Symbol.asyncIterator](){const r=t[Symbol.asyncIterator](),s={next:()=>r.next().then(n)};return r.throw!==void 0&&(s.throw=o=>r.throw(o).then(n)),r.return!==void 0&&(s.return=o=>r.return(o).then(n)),s}}}function uc(e,t){if(!t)return e;for(const n of t.concat().reverse())e=n(e);return e}function ah(e){var t;const n=Object.assign({},e);return(t=n.ignoreUnknownFields)!==null&&t!==void 0||(n.ignoreUnknownFields=!0),n}function fc(e,t,n,r){const s=t?dc(e.input,r):mc(e.input,n);return{parse:(t?dc(e.output,r):mc(e.output,n)).parse,serialize:s.serialize}}function dc(e,t){return{parse(n){try{return qt(e,n,t)}catch(r){const s=r instanceof Error?r.message:String(r);throw new ee(`parse binary: ${s}`,K.Internal)}},serialize(n){try{return Ll(e,n,t)}catch(r){const s=r instanceof Error?r.message:String(r);throw new ee(`serialize binary: ${s}`,K.Internal)}}}}function mc(e,t){var n,r;const s=(n=t==null?void 0:t.textEncoder)!==null&&n!==void 0?n:new TextEncoder,o=(r=t==null?void 0:t.textDecoder)!==null&&r!==void 0?r:new TextDecoder,i=ah(t);return{parse(a){try{const l=o.decode(a);return bp(e,l,i)}catch(l){throw ee.from(l,K.InvalidArgument)}},serialize(a){try{const l=lp(e,a,i);return s.encode(l)}catch(l){throw ee.from(l,K.Internal)}}}}function lh(e){const t=uc(e.next,e.interceptors),[n,r,s]=pc(e),o=Object.assign(Object.assign({},e.req),{message:cc(e.req.method.input,e.req.message),signal:n});return t(o).then(i=>(s(),i),r)}function ch(e){const t=uc(e.next,e.interceptors),[n,r,s]=pc(e),o=Object.assign(Object.assign({},e.req),{message:ih(e.req.method.input,e.req.message),signal:n});let i=!1;return n.addEventListener("abort",function(){var a,l;const c=e.req.message[Symbol.asyncIterator]();i||(a=c.throw)===null||a===void 0||a.call(c,this.reason).catch(()=>{}),(l=c.return)===null||l===void 0||l.call(c).catch(()=>{})}),t(o).then(a=>Object.assign(Object.assign({},a),{message:{[Symbol.asyncIterator](){const l=a.message[Symbol.asyncIterator]();return{next(){return l.next().then(c=>(c.done==!0&&(i=!0,s()),c),r)}}}}}),r)}function pc(e){const{signal:t,cleanup:n}=Zp(e.timeoutMs),r=Xp(e.signal,t);return[r.signal,function(o){const i=r.signal.aborted?ee.from(nc(r.signal),K.Canceled):ee.from(o);return r.abort(i),n(),Promise.reject(i)},function(){n(),r.abort()}]}function uh(){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.")}}function hc(e,t){const n=ac(e);if(n)throw t.forEach((r,s)=>{n.metadata.append(s,r)}),n;if(!t.has(tn)&&!e.has(tn))throw new ee("protocol error: missing status",K.Internal)}function gc(e,t,n,r){var s,o;const i=new Headers(n??{});i.set(zp,e?nh:rh),i.set(th,"1");const a=(o=(s=i.get(eh))!==null&&s!==void 0?s:i.get(ic))!==null&&o!==void 0?o:"connect-es/2.1.2";return i.set(ic,a),t!==void 0&&i.set(qp,`${t}m`),i}function fh(e){switch(e){case 400:return K.Internal;case 401:return K.Unauthenticated;case 403:return K.PermissionDenied;case 404:return K.Unimplemented;case 429:return K.Unavailable;case 502:return K.Unavailable;case 503:return K.Unavailable;case 504:return K.Unavailable;default:return K.Unknown}}function bc(e,t){var n;if(e>=200&&e<300)return{foundStatus:t.has(tn),headerError:ac(t)};throw new ee(decodeURIComponent((n=t.get(oc))!==null&&n!==void 0?n:`HTTP ${e}`),fh(e),t)}var Lt=function(e){return this instanceof Lt?(this.v=e,this):new Lt(e)},dh=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),s,o=[];return s=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",i),s[Symbol.asyncIterator]=function(){return this},s;function i(h){return function(w){return Promise.resolve(w).then(h,m)}}function a(h,w){r[h]&&(s[h]=function(y){return new Promise(function(D,R){o.push([h,y,D,R])>1||l(h,y)})},w&&(s[h]=w(s[h])))}function l(h,w){try{c(r[h](w))}catch(y){b(o[0][3],y)}}function c(h){h.value instanceof Lt?Promise.resolve(h.value.v).then(u,m):b(o[0][2],h)}function u(h){l("next",h)}function m(h){l("throw",h)}function b(h,w){h(w),o.shift(),o.length&&l(o[0][0],o[0][1])}};const yc={redirect:"error"};function mh(e){var t;uh();const n=(t=e.useBinaryFormat)!==null&&t!==void 0?t:!0;return{async unary(r,s,o,i,a,l){const{serialize:c,parse:u}=fc(r,n,e.jsonOptions,e.binaryOptions);return o=o===void 0?e.defaultTimeoutMs:o<=0?void 0:o,await lh({interceptors:e.interceptors,signal:s,timeoutMs:o,req:{stream:!1,service:r.parent,method:r,requestMethod:"POST",url:lc(e.baseUrl,r),header:gc(n,o,i),contextValues:l??rc(),message:a},next:async m=>{var b;const w=await((b=e.fetch)!==null&&b!==void 0?b:globalThis.fetch)(m.url,Object.assign(Object.assign({},yc),{method:m.requestMethod,headers:m.header,signal:m.signal,body:Ql(0,c(m.message))})),{headerError:y}=bc(w.status,w.headers);if(!w.body)throw y!==void 0?y:"missing response body";const D=ql(w.body).getReader();let R,B;for(;;){const G=await D.read();if(G.done)break;const{flags:k,data:te}=G.value;if((k&zl)===zl)throw new ee("protocol error: received unsupported compressed output",K.Internal);if(k===ro){if(R!==void 0)throw"extra trailer";R=sc(te);continue}if(B!==void 0)throw new ee("extra message",K.Unimplemented);B=u(te)}if(R===void 0)throw y!==void 0?y:new ee("missing trailer",w.headers.has(tn)?K.Unimplemented:K.Unknown);if(hc(R,w.headers),B===void 0)throw new ee("missing message",R.has(tn)?K.Unimplemented:K.Unknown);return{stream:!1,service:r.parent,method:r,header:w.headers,message:B,trailer:R}}})},async stream(r,s,o,i,a,l){const{serialize:c,parse:u}=fc(r,n,e.jsonOptions,e.binaryOptions);function m(h,w,y,D,R){return dh(this,arguments,function*(){const G=ql(h).getReader();if(w){if(!(yield Lt(G.read())).done)throw"extra data for trailers-only";return yield Lt(void 0)}let k=!1;for(;;){const te=yield Lt(G.read());if(te.done)break;const{flags:le,data:pe}=te.value;if((le&ro)===ro){if(k)throw"extra trailer";k=!0;const C=sc(pe);hc(C,D),C.forEach((Qe,xe)=>y.set(xe,Qe));continue}if(k)throw"extra message";yield yield Lt(u(pe))}if("throwIfAborted"in R&&R.throwIfAborted(),!k)throw"missing trailer"})}async function b(h){if(r.methodKind!="server_streaming")throw"The fetch API does not support streaming request bodies";const w=await h[Symbol.asyncIterator]().next();if(w.done==!0)throw"missing request message";return Ql(0,c(w.value))}return o=o===void 0?e.defaultTimeoutMs:o<=0?void 0:o,ch({interceptors:e.interceptors,signal:s,timeoutMs:o,req:{stream:!0,service:r.parent,method:r,requestMethod:"POST",url:lc(e.baseUrl,r),header:gc(n,o,i),contextValues:l??rc(),message:a},next:async h=>{var w;const D=await((w=e.fetch)!==null&&w!==void 0?w:globalThis.fetch)(h.url,Object.assign(Object.assign({},yc),{method:h.requestMethod,headers:h.header,signal:h.signal,body:await b(h.message)})),{foundStatus:R,headerError:B}=bc(D.status,D.headers);if(B!=null)throw B;if(!D.body)throw"missing response body";const G=new Headers;return Object.assign(Object.assign({},h),{header:D.headers,trailer:G,message:m(D.body,R,G,D.headers,h.signal)})}})}}}const ph="/bielu/scalar/grpc";let so;function hh(){var e;if(typeof document<"u"){const t=(e=document.currentScript)==null?void 0:e.src;t&&(so=t)}}function _c(e){const t=e.replace(/\/+$/,"");if(so&&typeof window<"u")try{const n=new URL(so,window.location.href),r=new URL(t||window.location.origin,window.location.href);if(n.origin===r.origin)return new URL("descriptors",n.href).href}catch{}return`${t}${ph}/descriptors`}const oo=new Map;async function gh(e){const t=await fetch(e,{headers:{accept:"application/x-protobuf"}});if(!t.ok)throw new Error(`Failed to load protobuf descriptors from ${e} (HTTP ${t.status}). Ensure the target app calls MapScalarGrpcAssets().`);const n=new Uint8Array(await t.arrayBuffer());return Vs(qt(Vm,n))}function Ec(e){let t=oo.get(e);return t||(t=gh(e),t.catch(()=>oo.delete(e)),oo.set(e,t)),t}function Nc(e,t,n){const r=e.getService(t);if(!r)throw new Error(`Service "${t}" was not found in the server's descriptors — is it mapped via MapGrpcService<T>()?`);const s=r.methods.find(o=>o.name===n);if(!s)throw new Error(`Method "${n}" was not found on service "${t}".`);return{service:r,method:s}}function vc(e,t){const n=mh({baseUrl:t.baseUrl});return Yp(e,n)}async function bh(e,t,n,r,s){const{service:o,method:i}=Nc(e,t,n),a=Qs(i.input,r,{registry:e}),c=await vc(o,s)[i.localName](a,{headers:s.headers,timeoutMs:s.timeoutMs});return Zs(i.output,c,{registry:e})}async function yh(e,t,n,r,s,o){const{service:i,method:a}=Nc(e,t,n),l=Qs(a.input,r,{registry:e}),u=vc(i,s)[a.localName](l,{headers:s.headers,timeoutMs:s.timeoutMs});let m=0;for await(const b of u)m+=1,o(Zs(a.output,b,{registry:e}));return m}const _h={key:0,class:"bgr__muted"},Eh={key:1,class:"bgr__muted"},Nh={class:"bgr__card bgr__conn"},vh={class:"bgr__conn-row"},wh={key:0,class:"bgr__field"},Ih=["value"],Sh={class:"bgr__field"},Th=["value"],Oh={class:"bgr__field bgr__field--grow"},Ah={key:0,class:"bgr__conn-row bgr__conn-row--foot"},xh={class:"bgr__hint"},kh={class:"bgr__grid"},Rh={class:"bgr__col"},Lh={key:0,class:"bgr__muted"},Dh={key:1,class:"bgr__card bgr__op"},Uh={class:"bgr__conn-row"},Ph={class:"bgr__field bgr__field--grow"},$h=["value"],Ch={key:0,class:"bgr__field bgr__field--grow"},Mh=["value"],Fh=["value"],Vh={class:"bgr__op-head bgr__op-head--spaced"},Bh=["data-kind"],Gh={class:"bgr__op-target"},Kh={key:0,class:"bgr__badge-warn"},Yh={key:0,class:"bgr__muted bgr__op-summary"},jh={class:"bgr__hint bgr__op-summary"},Jh={class:"bgr__code-head"},Wh=["disabled"],Hh={class:"bgr__op-foot"},Xh={class:"bgr__hint"},Zh=["disabled"],zh=["data-ok"],qh={key:2,class:"bgr__muted bgr__op-summary"},Qh={key:3,class:"bgr__result bgr__result--sample"},eg={class:"bgr__col"},tg={class:"bgr__log"},ng={class:"bgr__time"},rg={class:"bgr__badge"},sg={key:0,class:"bgr__muted"},og=((e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n})(Zo({__name:"GrpcConsole",props:{options:{type:Object},documents:{type:Array}},setup(e){const t=e,n=gt(!0),r=gt([]),s=gt(null),o=gt(null),i=gt(null),a=gt(null),l=gt(""),c=gt(!1),u=at([]),m=at({}),b=at({}),h=at({}),w=at({}),y=at({}),D=I=>`${I.documentName}:${I.channelName}`,R=I=>`${a.value}:${I.id}`,B=qe(()=>{const I=new Set,T=[];for(const J of r.value)I.has(J.documentName)||(I.add(J.documentName),T.push(J.documentName));return T}),G=qe(()=>o.value??i.value),k=qe(()=>G.value?r.value.filter(I=>I.documentName===G.value):r.value),te=qe(()=>!o.value&&B.value.length>1),le=qe(()=>k.value.find(I=>D(I)===a.value)??null),pe=qe({get:()=>a.value?w[a.value]??null:null,set:I=>{a.value&&I&&(w[a.value]=I)}}),C=qe(()=>{var I;return((I=le.value)==null?void 0:I.methods.find(T=>T.id===pe.value))??null}),Qe=I=>I.methodType===void 0||I.methodType==="unary"||I.methodType==="serverStreaming",xe=qe(()=>{var I;return(l.value||((I=le.value)==null?void 0:I.baseUrl)||"").replace(/\/+$/,"")}),Dt=qe(()=>{const I=le.value,T=C.value;return!I||!T?"":`${xe.value}/${I.service}/${T.method}`});function Ke(I,T){u.unshift({time:new Date().toLocaleTimeString(),dir:I,text:T}),u.length>200&&u.pop()}function Ut(I){switch(I.methodType){case"serverStreaming":return"SERVER STREAM";case"clientStreaming":return"CLIENT STREAM";case"bidirectionalStreaming":return"BIDI STREAM";default:return"UNARY"}}function Dn(I){const T=(I??"").trim();return T?JSON.parse(T):{}}function Sr(I){const T=(I??"").trim();if(!T)return{};const J=JSON.parse(T);if(!J||typeof J!="object"||Array.isArray(J))throw new Error("metadata must be a JSON object of header names to string values");const U={};for(const[Ne,tt]of Object.entries(J))U[Ne]=String(tt);return U}async function ye(I){const T=le.value;if(!T||c.value)return;const J=R(I);let U;try{U=Dn(m[J])}catch(se){h[J]={ok:!1,text:`Invalid JSON request: ${(se==null?void 0:se.message)??se}`};return}let Ne;try{Ne=Sr(b[J])}catch(se){h[J]={ok:!1,text:`Invalid metadata: ${(se==null?void 0:se.message)??se}`};return}const tt=Od(T.documentName,T.securitySchemes,Td());for(const se of tt.warnings)Ke("sys",`Auth warning: ${se}`);Ne={...tt.headers,...Ne},T.securitySchemes&&Object.keys(T.securitySchemes).length>0&&Object.keys(tt.headers).length===0&&Ke("sys",`Auth: no credentials resolved for document "${T.documentName}" — select a security scheme in the Authentication panel and enter your credentials.`),c.value=!0,Ke("out",`${T.service}/${I.method} ${JSON.stringify(U)}`);try{const se=await Ec(_c(xe.value)),Et={baseUrl:xe.value,headers:Ne,timeoutMs:I.deadlineSeconds?I.deadlineSeconds*1e3:void 0};if(I.methodType==="serverStreaming"){const Pt=[];await yh(se,T.service,I.method,U,Et,f=>{Pt.push(f),Ke("in",`← ${JSON.stringify(f)}`)}),h[J]={ok:!0,text:`Stream completed: ${Pt.length} message(s).
24
+ ${JSON.stringify(Pt,null,2)}`}}else{const Pt=await bh(se,T.service,I.method,U,Et);h[J]={ok:!0,text:JSON.stringify(Pt,null,2)},Ke("in",`← ${JSON.stringify(Pt)}`)}}catch(se){h[J]={ok:!1,text:`Error: ${(se==null?void 0:se.message)??se}`},Ke("sys",`Invoke failed: ${(se==null?void 0:se.message)??se}`)}finally{c.value=!1}}function oe(I,T){var J,U;return((U=(J=I==null?void 0:I.messages)==null?void 0:J[T])==null?void 0:U.example)??"{}"}function X(I,T){const J=R(I);y[J]=T,m[J]=oe(I,T)}function et(I){const T=R(I);m[T]===void 0&&X(I,y[T]??0)}Tt(k,I=>{I.some(T=>D(T)===a.value)||(a.value=I[0]?D(I[0]):null)},{immediate:!0}),Tt(le,I=>{l.value=(I==null?void 0:I.baseUrl)??""}),Tt(()=>{var I;return((I=le.value)==null?void 0:I.methods)??[]},I=>{var T;I.some(J=>J.id===pe.value)||(pe.value=((T=I[0])==null?void 0:T.id)??null),I.forEach(et)},{immediate:!0}),Tt(C,I=>{I&&et(I)});function nn(){var J;const I=(J=s.value)==null?void 0:J.closest('[id*="/plugin-view/"]');return(I==null?void 0:I.id.split("/plugin-view/")[0])||null}async function ht(){n.value=!0,r.value=await fa(Ad(t.options,t.documents)),r.value.length>0&&!i.value&&(i.value=r.value[0].documentName),n.value=!1}return ht(),ni(()=>{o.value=nn()}),(I,T)=>{var J;return H(),Z("section",{ref_key:"rootEl",ref:s,class:"bgr"},[T[18]||(T[18]=F("header",{class:"bgr__head"},[F("h2",{class:"bgr__title"},"gRPC"),F("span",{class:"bgr__pill"},"gRPC-Web")],-1)),n.value?(H(),Z("p",_h,"Loading gRPC services…")):k.value.length===0?(H(),Z("p",Eh," No gRPC services found in "+ue(o.value?"this document":"the AsyncAPI document(s)")+". ",1)):(H(),Z(me,{key:2},[F("div",Nh,[F("div",vh,[te.value?(H(),Z("label",wh,[T[9]||(T[9]=F("span",null,"Document",-1)),Kt(F("select",{"onUpdate:modelValue":T[0]||(T[0]=U=>i.value=U)},[(H(!0),Z(me,null,gn(B.value,U=>(H(),Z("option",{key:U,value:U},ue(U),9,Ih))),128))],512),[[ds,i.value]])])):Fe("",!0),F("label",Sh,[T[10]||(T[10]=F("span",null,"Service",-1)),Kt(F("select",{"onUpdate:modelValue":T[1]||(T[1]=U=>a.value=U)},[(H(!0),Z(me,null,gn(k.value,U=>(H(),Z("option",{key:D(U),value:D(U)},ue(U.service),9,Th))),128))],512),[[ds,a.value]])]),F("label",Oh,[T[11]||(T[11]=F("span",null,"Base URL",-1)),Kt(F("input",{"onUpdate:modelValue":T[2]||(T[2]=U=>l.value=U),type:"text",spellcheck:"false"},null,512),[[fs,l.value]])])]),(J=le.value)!=null&&J.protoFile?(H(),Z("div",Ah,[F("span",xh,ue(le.value.protoFile),1)])):Fe("",!0)]),F("div",kh,[F("div",Rh,[T[16]||(T[16]=F("h3",{class:"bgr__section"},"Methods",-1)),!le.value||le.value.methods.length===0?(H(),Z("p",Lh," No RPC methods declared for this service. ")):(H(),Z("article",Dh,[F("div",Uh,[F("label",Ph,[T[12]||(T[12]=F("span",null,"Method",-1)),Kt(F("select",{"onUpdate:modelValue":T[3]||(T[3]=U=>pe.value=U)},[(H(!0),Z(me,null,gn(le.value.methods,U=>(H(),Z("option",{key:U.id,value:U.id},ue(U.method)+" · "+ue(Ut(U)),9,$h))),128))],512),[[ds,pe.value]])]),C.value&&C.value.messages.length>1?(H(),Z("label",Ch,[T[13]||(T[13]=F("span",null,"Message",-1)),F("select",{value:y[R(C.value)]??0,onChange:T[4]||(T[4]=U=>X(C.value,Number(U.target.value)))},[(H(!0),Z(me,null,gn(C.value.messages,(U,Ne)=>(H(),Z("option",{key:U.name,value:Ne},ue(U.title||U.name),9,Fh))),128))],40,Mh)])):Fe("",!0)]),C.value?(H(),Z(me,{key:0},[F("div",Vh,[F("span",{class:"bgr__method","data-kind":C.value.methodType??"unary"},ue(Ut(C.value)),9,Bh),F("span",Gh,ue(C.value.method),1),Qe(C.value)?Fe("",!0):(H(),Z("span",Kh,"not invokable from the browser"))]),C.value.summary?(H(),Z("p",Yh,ue(C.value.summary),1)):Fe("",!0),F("p",jh,[ar(ue(C.value.requestType??"?")+" → "+ue(C.value.responseType??"?"),1),C.value.deadlineSeconds?(H(),Z(me,{key:0},[ar(" · deadline "+ue(C.value.deadlineSeconds)+"s",1)],64)):Fe("",!0),C.value.idempotencyLevel?(H(),Z(me,{key:1},[ar(" · "+ue(C.value.idempotencyLevel),1)],64)):Fe("",!0)]),Qe(C.value)?(H(),Z(me,{key:1},[F("div",Jh,[T[14]||(T[14]=F("span",{class:"bgr__hint"},"Request message (JSON)",-1)),F("button",{type:"button",class:"bgr__link",disabled:C.value.messages.length===0,onClick:T[5]||(T[5]=U=>X(C.value,y[R(C.value)]??0))}," ↺ Reset to example ",8,Wh)]),Kt(F("textarea",{"onUpdate:modelValue":T[6]||(T[6]=U=>m[R(C.value)]=U),class:"bgr__code",rows:"6",spellcheck:"false",placeholder:'Request message as JSON, e.g. { "name": "world" }'},null,512),[[fs,m[R(C.value)]]]),T[15]||(T[15]=F("div",{class:"bgr__code-head"},[F("span",{class:"bgr__hint"},"Metadata (JSON object of headers, optional)")],-1)),Kt(F("textarea",{"onUpdate:modelValue":T[7]||(T[7]=U=>b[R(C.value)]=U),class:"bgr__code",rows:"2",spellcheck:"false",placeholder:'{ "x-correlation-id": "1234" }'},null,512),[[fs,b[R(C.value)]]]),F("div",Hh,[F("span",Xh,ue(Dt.value),1),F("button",{type:"button",class:"bgr__btn bgr__btn--primary",disabled:c.value,onClick:T[8]||(T[8]=U=>ye(C.value))}," ▶ Test Request ",8,Zh)]),h[R(C.value)]?(H(),Z("pre",{key:0,class:"bgr__result","data-ok":h[R(C.value)].ok},ue(h[R(C.value)].text),9,zh)):Fe("",!0)],64)):(H(),Z("p",qh," gRPC-Web supports unary and server-streaming calls only; client- and bidirectional-streaming methods are shown for documentation. The example request below is generated from the AsyncAPI payload schema. ")),!Qe(C.value)&&C.value.messages.length>0?(H(),Z("pre",Qh,ue(C.value.messages[0].example),1)):Fe("",!0)],64)):Fe("",!0)]))]),F("div",eg,[T[17]||(T[17]=F("h3",{class:"bgr__section"},"Messages",-1)),F("ul",tg,[(H(!0),Z(me,null,gn(u,(U,Ne)=>(H(),Z("li",{key:Ne,class:Kn(`bgr__log-${U.dir}`)},[F("span",ng,ue(U.time),1),F("span",rg,ue(U.dir),1),F("span",null,ue(U.text),1)],2))),128)),u.length===0?(H(),Z("li",sg,"No messages yet.")):Fe("",!0)])])])],64))],512)}}}),[["styles",[".bgr[data-v-3f10fef0]{font-family:var(--scalar-font, system-ui, sans-serif);color:var(--scalar-color-1, inherit);font-size:var(--scalar-font-size-3, .9rem);padding:2.5rem var(--bgr-content-padding, var(--scalar-content-padding, 24px)) 3rem;margin-top:2rem;border-top:1px solid var(--scalar-border-color, #e3e3e3);max-width:var(--bgr-content-max-width, none)}.bgr__head[data-v-3f10fef0]{display:flex;align-items:center;gap:.75rem;margin-bottom:1.25rem}.bgr__grid[data-v-3f10fef0]{display:grid;grid-template-columns:1fr;gap:0 2rem;align-items:start}.bgr__col[data-v-3f10fef0]{min-width:0}@media(min-width:60rem){.bgr__grid[data-v-3f10fef0]{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}.bgr__title[data-v-3f10fef0]{margin:0;font-size:1.25rem}.bgr__pill[data-v-3f10fef0]{font-size:.7rem;text-transform:uppercase;letter-spacing:.03em;padding:.15rem .5rem;border-radius:999px;background:var(--scalar-background-2, #eee);color:var(--scalar-color-2, #555)}.bgr__card[data-v-3f10fef0]{border:1px solid var(--scalar-border-color, #e3e3e3);border-radius:var(--scalar-radius, 8px);background:var(--scalar-background-1, transparent);padding:.85rem;margin-bottom:.85rem}.bgr__conn-row[data-v-3f10fef0]{display:flex;flex-wrap:wrap;gap:.75rem;align-items:flex-end}.bgr__conn-row--foot[data-v-3f10fef0]{margin-top:.75rem;align-items:center}.bgr__field[data-v-3f10fef0]{display:flex;flex-direction:column;gap:.25rem}.bgr__field>span[data-v-3f10fef0]{font-size:.72rem;text-transform:uppercase;letter-spacing:.03em;color:var(--scalar-color-3, #777)}.bgr__field--grow[data-v-3f10fef0]{flex:1;min-width:12rem}.bgr__field input[data-v-3f10fef0],.bgr__field select[data-v-3f10fef0]{padding:.35rem .5rem;border:1px solid var(--scalar-border-color, #ddd);border-radius:var(--scalar-radius, 6px);background:var(--scalar-background-2, #fff);color:inherit;font:inherit}.bgr__section[data-v-3f10fef0]{margin:1.25rem 0 .5rem;font-size:.95rem}.bgr__op-head[data-v-3f10fef0]{display:flex;align-items:center;gap:.6rem}.bgr__op-head--spaced[data-v-3f10fef0]{margin-top:.85rem}.bgr__code-head[data-v-3f10fef0]{display:flex;align-items:center;justify-content:space-between;margin-top:.6rem}.bgr__link[data-v-3f10fef0]{font:inherit;font-size:.72rem;background:none;border:0;padding:0;cursor:pointer;color:var(--scalar-color-blue, #2563eb)}.bgr__link[data-v-3f10fef0]:disabled{opacity:.5;cursor:not-allowed}.bgr__result--sample[data-v-3f10fef0]{border-left-color:var(--scalar-color-3, #888);margin-top:.6rem}.bgr__method[data-v-3f10fef0]{font-family:var(--scalar-font-code, monospace);font-size:.7rem;font-weight:700;letter-spacing:.03em;padding:.15rem .45rem;border-radius:var(--scalar-radius, 5px);background:color-mix(in srgb,var(--scalar-color-blue, #2563eb) 16%,transparent);color:var(--scalar-color-blue, #2563eb);white-space:nowrap}.bgr__method[data-kind=serverStreaming][data-v-3f10fef0]{background:color-mix(in srgb,var(--scalar-color-green, #16a34a) 16%,transparent);color:var(--scalar-color-green, #16a34a)}.bgr__method[data-kind=clientStreaming][data-v-3f10fef0],.bgr__method[data-kind=bidirectionalStreaming][data-v-3f10fef0]{background:color-mix(in srgb,var(--scalar-color-orange, #d97706) 16%,transparent);color:var(--scalar-color-orange, #d97706)}.bgr__badge-warn[data-v-3f10fef0]{font-size:.68rem;text-transform:uppercase;letter-spacing:.03em;padding:.12rem .4rem;border-radius:999px;background:color-mix(in srgb,var(--scalar-color-orange, #d97706) 16%,transparent);color:var(--scalar-color-orange, #d97706);white-space:nowrap}.bgr__op-target[data-v-3f10fef0]{font-family:var(--scalar-font-code, monospace);font-weight:600}.bgr__op-summary[data-v-3f10fef0]{margin:.4rem 0 0}.bgr__code[data-v-3f10fef0]{width:100%;margin-top:.6rem;padding:.6rem;border:1px solid var(--scalar-border-color, #ddd);border-radius:var(--scalar-radius, 6px);background:var(--scalar-background-2, #1e1e1e);color:inherit;font-family:var(--scalar-font-code, monospace);font-size:.82rem;resize:vertical;box-sizing:border-box}.bgr__op-foot[data-v-3f10fef0]{display:flex;align-items:center;justify-content:space-between;margin-top:.6rem}.bgr__hint[data-v-3f10fef0]{font-size:.72rem;color:var(--scalar-color-3, #888);overflow-wrap:anywhere}.bgr__btn[data-v-3f10fef0]{font:inherit;font-weight:600;padding:.4rem .8rem;border-radius:var(--scalar-radius, 6px);border:1px solid var(--scalar-border-color, #ccc);background:var(--scalar-background-2, #f4f4f4);color:inherit;cursor:pointer}.bgr__btn--primary[data-v-3f10fef0]{background:var(--scalar-button-1, #111);color:var(--scalar-button-1-color, #fff);border-color:transparent}.bgr__btn[data-v-3f10fef0]:disabled{opacity:.5;cursor:not-allowed}.bgr__result[data-v-3f10fef0]{margin:.6rem 0 0;padding:.6rem;border-radius:var(--scalar-radius, 6px);background:var(--scalar-background-2, #f6f6f6);border-left:3px solid var(--scalar-color-green, #16a34a);font-family:var(--scalar-font-code, monospace);font-size:.8rem;white-space:pre-wrap;overflow-wrap:anywhere}.bgr__result[data-ok=false][data-v-3f10fef0]{border-left-color:var(--scalar-color-red, #dc2626)}.bgr__log[data-v-3f10fef0]{list-style:none;margin:0;padding:.5rem;max-height:16rem;overflow:auto;border:1px solid var(--scalar-border-color, #e3e3e3);border-radius:var(--scalar-radius, 8px);background:var(--scalar-background-1, transparent);font-family:var(--scalar-font-code, monospace);font-size:.78rem}.bgr__log li[data-v-3f10fef0]{display:flex;gap:.5rem;padding:.12rem 0}.bgr__time[data-v-3f10fef0]{opacity:.55}.bgr__badge[data-v-3f10fef0]{text-transform:uppercase;font-size:.62rem;align-self:center;border-radius:3px;padding:0 .25rem;background:var(--scalar-background-2, #eee)}.bgr__log-in .bgr__badge[data-v-3f10fef0]{background:color-mix(in srgb,var(--scalar-color-blue, #2563eb) 20%,transparent)}.bgr__log-out .bgr__badge[data-v-3f10fef0]{background:color-mix(in srgb,var(--scalar-color-orange, #d97706) 20%,transparent)}.bgr__muted[data-v-3f10fef0]{color:var(--scalar-color-3, #888)}"]],["__scopeId","data-v-3f10fef0"]]),wc={pluginName:"bielu-grpc",elementTag:"bielu-grpc-console",sidebarLabel:"gRPC"},ig=e=>sa(wc,e);return hh(),hd({...wc,discovery:ca,stylesId:"bielu-grpc-styles",wrappedFlag:"__bieluGrpcWrapped"},og),Nt.createGrpcPlugin=ig,Nt.descriptorsUrlFor=_c,Nt.loadDescriptorRegistry=Ec,Nt.loadGrpcServices=fa,Nt.parseGrpcServices=ua,Object.defineProperty(Nt,Symbol.toStringTag,{value:"Module"}),Nt})({});