apiuikit 0.5.0 → 1.0.1
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/README.md +47 -6
- package/dist/apiuikit.cjs.js +1 -1
- package/dist/apiuikit.css +1 -1
- package/dist/apiuikit.es.js +24 -17
- package/dist/c-Bz1-FJiA.js +277 -0
- package/dist/c-C_Sx7N-F.cjs +1 -0
- package/dist/clojure-DWYEZwCD.cjs +1 -0
- package/dist/clojure-aY2138WD.js +135 -0
- package/dist/components/Authorization.d.ts +28 -17
- package/dist/components/ChannelAddress.d.ts +17 -3
- package/dist/components/CodeBlock.d.ts +4 -1
- package/dist/components/CodeSamples.d.ts +12 -0
- package/dist/components/CollapsiblePanel.d.ts +24 -0
- package/dist/components/CopyMarkdownButton.d.ts +15 -0
- package/dist/components/Examples.d.ts +4 -2
- package/dist/components/InfoMetadata.d.ts +15 -2
- package/dist/components/Markdown.d.ts +2 -0
- package/dist/components/MarkdownExportMenu.d.ts +13 -0
- package/dist/components/MethodBadge.d.ts +14 -0
- package/dist/components/Navigation/AsyncAPINavigation.d.ts +28 -0
- package/dist/components/Navigation/Navigation.d.ts +58 -0
- package/dist/components/Navigation/OpenAPINavigation.d.ts +22 -0
- package/dist/components/Navigation/SpecNavigation.d.ts +25 -0
- package/dist/components/Navigation/index.d.ts +4 -0
- package/dist/components/Navigation/sharedSections.d.ts +10 -0
- package/dist/components/Navigation/spineTicks.d.ts +28 -0
- package/dist/components/Navigation/tests/spineTicks.test.d.ts +1 -0
- package/dist/components/RenderExtensions.d.ts +14 -1
- package/dist/components/Section.d.ts +3 -1
- package/dist/components/ServerAddressBanner.d.ts +16 -0
- package/dist/components/SidePanel.d.ts +2 -0
- package/dist/components/Tabs.d.ts +3 -1
- package/dist/components/schema/SchemaTab.d.ts +19 -3
- package/dist/components/tests/Bindings.test.d.ts +1 -0
- package/dist/components/tests/ChannelAddress.test.d.ts +1 -0
- package/dist/components/tests/CodeBlock.test.d.ts +1 -0
- package/dist/components/tests/CodeSamples.test.d.ts +1 -0
- package/dist/components/tests/CopyMarkdownButton.test.d.ts +1 -0
- package/dist/components/tests/MarkdownExportMenu.test.d.ts +1 -0
- package/dist/config/config.d.ts +8 -0
- package/dist/containers/AsyncAPI/AsyncAPI.d.ts +1 -1
- package/dist/containers/Information/InformationSection.d.ts +22 -0
- package/dist/containers/Information/OpenAPIInformation.d.ts +9 -0
- package/dist/containers/OpenAPI/Layout.d.ts +7 -0
- package/dist/containers/OpenAPI/OpenAPI.d.ts +18 -0
- package/dist/containers/OpenAPI/OpenAPIDocumentProvider.d.ts +13 -0
- package/dist/containers/OpenAPI/OpenAPIRenderer.d.ts +17 -0
- package/dist/containers/OpenAPI/tests/OpenAPI.test.d.ts +1 -0
- package/dist/containers/OpenAPI/tests/OpenAPIRenderer.test.d.ts +1 -0
- package/dist/containers/Operation/Operations.d.ts +2 -1
- package/dist/containers/Path/OperationCallbacks.d.ts +37 -0
- package/dist/containers/Path/PathOperation.d.ts +21 -0
- package/dist/containers/Path/Paths.d.ts +16 -0
- package/dist/containers/Path/ResponseLinks.d.ts +21 -0
- package/dist/containers/Path/tests/PathOperation.test.d.ts +1 -0
- package/dist/containers/Path/tests/Paths.test.d.ts +1 -0
- package/dist/containers/Server/OpenAPIServer.d.ts +4 -0
- package/dist/containers/Server/OpenAPIServers.d.ts +13 -0
- package/dist/contants.d.ts +7 -0
- package/dist/contexts/useSpec.d.ts +28 -6
- package/dist/crystal-BcGgviMR.cjs +1 -0
- package/dist/crystal-BtD5fR4q.js +283 -0
- package/dist/csharp-AnFv7wyC.js +382 -0
- package/dist/csharp-yuAGIuP4.cjs +1 -0
- package/dist/go-BpetKc7b.cjs +1 -0
- package/dist/go-CkZ9_bn0.js +151 -0
- package/dist/helpers/codeSamples.d.ts +92 -0
- package/dist/helpers/exampleSchema.d.ts +19 -0
- package/dist/helpers/hljsLanguages.d.ts +6 -0
- package/dist/helpers/openapiParser.d.ts +10 -0
- package/dist/helpers/openapiSearchIndex.d.ts +3 -0
- package/dist/helpers/resolveDocument.d.ts +8 -0
- package/dist/helpers/runtimeExpression.d.ts +15 -0
- package/dist/helpers/schemaExample.d.ts +9 -0
- package/dist/helpers/searchIndex.d.ts +5 -2
- package/dist/helpers/tests/codeSamples.test.d.ts +1 -0
- package/dist/helpers/tests/exampleSchema.test.d.ts +1 -0
- package/dist/helpers/tests/openapiSearchIndex.test.d.ts +1 -0
- package/dist/helpers/tests/toMarkdown.test.d.ts +1 -0
- package/dist/helpers/toMarkdown.d.ts +20 -0
- package/dist/hooks/useDocumentProviderValue.d.ts +27 -0
- package/dist/hooks/useFuseSearch.d.ts +14 -0
- package/dist/hooks/useOpenAPISearch.d.ts +9 -0
- package/dist/hooks/useSearchResultFocus.d.ts +18 -0
- package/dist/hooks/useSpecLayoutController.d.ts +51 -0
- package/dist/hooks/useSpecSearch.d.ts +2 -6
- package/dist/http--XH4hLDt.cjs +1 -0
- package/dist/http-DKeNlJKS.js +85 -0
- package/dist/icons/Copy.d.ts +6 -0
- package/dist/icons/Info.d.ts +5 -0
- package/dist/index-C9Pyi0cN.cjs +177 -0
- package/dist/index-CFqT-0u9.js +17544 -0
- package/dist/index-CkQBQKmb.cjs +139 -0
- package/dist/index-DSOufiFF.js +18957 -0
- package/dist/{index-BcNlIoEF.cjs → index-QHokKPe8.cjs} +6 -6
- package/dist/index-xz-kuNHf.js +25412 -0
- package/dist/index.d.ts +7 -0
- package/dist/java-BIk0G-rH.cjs +1 -0
- package/dist/java-BicX26Pg.js +240 -0
- package/dist/kotlin-BwB8b-YX.js +242 -0
- package/dist/kotlin-kGuORR5a.cjs +2 -0
- package/dist/objectivec-CnyrJ13Z.js +237 -0
- package/dist/objectivec-CoeV81Tz.cjs +1 -0
- package/dist/ocaml-0j7KDjso.cjs +1 -0
- package/dist/ocaml-T8IqWCjo.js +67 -0
- package/dist/php-BL35ZHWM.js +566 -0
- package/dist/php-DF4zG2hq.cjs +2 -0
- package/dist/powershell-CvydS3ek.cjs +1 -0
- package/dist/powershell-DuhUKWoO.js +236 -0
- package/dist/protoToJsonSchema-ScIUJOSl.cjs +83 -0
- package/dist/protoToJsonSchema-dSLrBGlF.js +6131 -0
- package/dist/{protobufSchemaParser-sEw46uRx.cjs → protobufSchemaParser-Bd0cGKWk.cjs} +1 -1
- package/dist/{protobufSchemaParser-BQVXzHsQ.js → protobufSchemaParser-DE3p5F51.js} +2 -2
- package/dist/public/createSectionRoot.d.ts +30 -0
- package/dist/public/openapiSections.d.ts +26 -0
- package/dist/r-B8fCBydS.js +207 -0
- package/dist/r-CYaZnHkA.cjs +1 -0
- package/dist/ruby-CvOid-1s.js +388 -0
- package/dist/ruby-nPcbuC2a.cjs +1 -0
- package/dist/rust-BocnJ3Ns.js +305 -0
- package/dist/rust-DKnYCg2f.cjs +1 -0
- package/dist/swift-C35Eof-I.js +799 -0
- package/dist/swift-CAnH__EC.cjs +1 -0
- package/dist/types/openapi.d.ts +85 -0
- package/package.json +17 -2
- package/dist/components/Navigation.d.ts +0 -28
- package/dist/icons/SideBar.d.ts +0 -6
- package/dist/index-BG6colCU.js +0 -11473
- package/dist/index-Bmw7IyyF.cjs +0 -73
- package/dist/index-CEf0X0H_.js +0 -25414
- package/dist/protoToJsonSchema-BcqPKXqK.js +0 -6174
- package/dist/protoToJsonSchema-C43lKcgx.cjs +0 -83
- package/dist/vite.svg +0 -1
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";var Gr=Object.defineProperty;var Yr=(a,e,i)=>e in a?Gr(a,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):a[e]=i;var ve=(a,e,i)=>Yr(a,typeof e!="symbol"?e+"":e,i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const be=require("./index-C9Pyi0cN.cjs");var Er={exports:{}},Ar={exports:{}},Tr={},Ue={},Rr=Xr;function Xr(a,e){for(var i=new Array(arguments.length-1),f=0,s=2,u=!0;s<arguments.length;)i[f++]=arguments[s++];return new Promise(function(o,r){i[f]=function(c){if(u)if(u=!1,c)r(c);else{for(var l=new Array(arguments.length-1),d=0;d<l.length;)l[d++]=arguments[d];o.apply(null,l)}};try{a.apply(e||null,i)}catch(n){u&&(u=!1,r(n))}})}var Nr={};(function(a){var e=a;e.length=function(o){var r=o.length;if(!r)return 0;for(var n=0;--r%4>1&&o.charAt(r)==="=";)++n;return Math.ceil(o.length*3)/4-n};for(var i=new Array(64),f=new Array(123),s=0;s<64;)f[i[s]=s<26?s+65:s<52?s+71:s<62?s-4:s-59|43]=s++;e.encode=function(o,r,n){for(var c=null,l=[],d=0,p=0,m;r<n;){var g=o[r++];switch(p){case 0:l[d++]=i[g>>2],m=(g&3)<<4,p=1;break;case 1:l[d++]=i[m|g>>4],m=(g&15)<<2,p=2;break;case 2:l[d++]=i[m|g>>6],l[d++]=i[g&63],p=0;break}d>8191&&((c||(c=[])).push(String.fromCharCode.apply(String,l)),d=0)}return p&&(l[d++]=i[m],l[d++]=61,p===1&&(l[d++]=61)),c?(d&&c.push(String.fromCharCode.apply(String,l.slice(0,d))),c.join("")):String.fromCharCode.apply(String,l.slice(0,d))};var u="invalid encoding";e.decode=function(o,r,n){for(var c=n,l=0,d,p=0;p<o.length;){var m=o.charCodeAt(p++);if(m===61&&l>1)break;if((m=f[m])===void 0)throw Error(u);switch(l){case 0:d=m,l=1;break;case 1:r[n++]=d<<2|(m&48)>>4,d=m,l=2;break;case 2:r[n++]=(d&15)<<4|(m&60)>>2,d=m,l=3;break;case 3:r[n++]=(d&3)<<6|m,l=0;break}}if(l===1)throw Error(u);return n-c},e.test=function(o){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(o)}})(Nr);var Kr=ze;function ze(){this._listeners=Object.create(null)}ze.prototype.on=function(e,i,f){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:i,ctx:f||this}),this};ze.prototype.off=function(e,i){if(e===void 0)this._listeners=Object.create(null);else if(i===void 0)this._listeners[e]=[];else{var f=this._listeners[e];if(!f)return this;for(var s=0;s<f.length;)f[s].fn===i?f.splice(s,1):++s}return this};ze.prototype.emit=function(e){var i=this._listeners[e];if(i){for(var f=[],s=1;s<arguments.length;)f.push(arguments[s++]);for(s=0;s<i.length;)i[s].fn.apply(i[s++].ctx,f)}return this};var Qr=Ct(Ct);function Ct(a){return typeof Float32Array<"u"?(function(){var e=new Float32Array([-0]),i=new Uint8Array(e.buffer),f=i[3]===128;function s(r,n,c){e[0]=r,n[c]=i[0],n[c+1]=i[1],n[c+2]=i[2],n[c+3]=i[3]}function u(r,n,c){e[0]=r,n[c]=i[3],n[c+1]=i[2],n[c+2]=i[1],n[c+3]=i[0]}a.writeFloatLE=f?s:u,a.writeFloatBE=f?u:s;function t(r,n){return i[0]=r[n],i[1]=r[n+1],i[2]=r[n+2],i[3]=r[n+3],e[0]}function o(r,n){return i[3]=r[n],i[2]=r[n+1],i[1]=r[n+2],i[0]=r[n+3],e[0]}a.readFloatLE=f?t:o,a.readFloatBE=f?o:t})():(function(){function e(f,s,u,t){var o=s<0?1:0;if(o&&(s=-s),s===0)f(1/s>0?0:2147483648,u,t);else if(isNaN(s))f(2143289344,u,t);else if(s>34028234663852886e22)f((o<<31|2139095040)>>>0,u,t);else if(s<11754943508222875e-54)f((o<<31|Math.round(s/1401298464324817e-60))>>>0,u,t);else{var r=Math.floor(Math.log(s)/Math.LN2),n=Math.round(s*Math.pow(2,-r)*8388608)&8388607;f((o<<31|r+127<<23|n)>>>0,u,t)}}a.writeFloatLE=e.bind(null,Bt),a.writeFloatBE=e.bind(null,Pt);function i(f,s,u){var t=f(s,u),o=(t>>31)*2+1,r=t>>>23&255,n=t&8388607;return r===255?n?NaN:o*(1/0):r===0?o*1401298464324817e-60*n:o*Math.pow(2,r-150)*(n+8388608)}a.readFloatLE=i.bind(null,qt),a.readFloatBE=i.bind(null,jt)})(),typeof Float64Array<"u"?(function(){var e=new Float64Array([-0]),i=new Uint8Array(e.buffer),f=i[7]===128;function s(r,n,c){e[0]=r,n[c]=i[0],n[c+1]=i[1],n[c+2]=i[2],n[c+3]=i[3],n[c+4]=i[4],n[c+5]=i[5],n[c+6]=i[6],n[c+7]=i[7]}function u(r,n,c){e[0]=r,n[c]=i[7],n[c+1]=i[6],n[c+2]=i[5],n[c+3]=i[4],n[c+4]=i[3],n[c+5]=i[2],n[c+6]=i[1],n[c+7]=i[0]}a.writeDoubleLE=f?s:u,a.writeDoubleBE=f?u:s;function t(r,n){return i[0]=r[n],i[1]=r[n+1],i[2]=r[n+2],i[3]=r[n+3],i[4]=r[n+4],i[5]=r[n+5],i[6]=r[n+6],i[7]=r[n+7],e[0]}function o(r,n){return i[7]=r[n],i[6]=r[n+1],i[5]=r[n+2],i[4]=r[n+3],i[3]=r[n+4],i[2]=r[n+5],i[1]=r[n+6],i[0]=r[n+7],e[0]}a.readDoubleLE=f?t:o,a.readDoubleBE=f?o:t})():(function(){function e(f,s,u,t,o,r){var n=t<0?1:0;if(n&&(t=-t),t===0)f(0,o,r+s),f(1/t>0?0:2147483648,o,r+u);else if(isNaN(t))f(0,o,r+s),f(2146959360,o,r+u);else if(t>17976931348623157e292)f(0,o,r+s),f((n<<31|2146435072)>>>0,o,r+u);else{var c;if(t<22250738585072014e-324)c=t/5e-324,f(c>>>0,o,r+s),f((n<<31|c/4294967296)>>>0,o,r+u);else{var l=Math.floor(Math.log(t)/Math.LN2);l===1024&&(l=1023),c=t*Math.pow(2,-l),f(c*4503599627370496>>>0,o,r+s),f((n<<31|l+1023<<20|c*1048576&1048575)>>>0,o,r+u)}}}a.writeDoubleLE=e.bind(null,Bt,0,4),a.writeDoubleBE=e.bind(null,Pt,4,0);function i(f,s,u,t,o){var r=f(t,o+s),n=f(t,o+u),c=(n>>31)*2+1,l=n>>>20&2047,d=4294967296*(n&1048575)+r;return l===2047?d?NaN:c*(1/0):l===0?c*5e-324*d:c*Math.pow(2,l-1075)*(d+4503599627370496)}a.readDoubleLE=i.bind(null,qt,0,4),a.readDoubleBE=i.bind(null,jt,4,0)})(),a}function Bt(a,e,i){e[i]=a&255,e[i+1]=a>>>8&255,e[i+2]=a>>>16&255,e[i+3]=a>>>24}function Pt(a,e,i){e[i]=a>>>24,e[i+1]=a>>>16&255,e[i+2]=a>>>8&255,e[i+3]=a&255}function qt(a,e){return(a[e]|a[e+1]<<8|a[e+2]<<16|a[e+3]<<24)>>>0}function jt(a,e){return(a[e]<<24|a[e+1]<<16|a[e+2]<<8|a[e+3])>>>0}var kr={};(function(a){var e=a,i=65533;e.length=function(s){for(var u=0,t=0,o=0;o<s.length;++o)t=s.charCodeAt(o),t<128?u+=1:t<2048?u+=2:(t&64512)===55296&&(s.charCodeAt(o+1)&64512)===56320?(++o,u+=4):u+=3;return u},e.read=function(s,u,t){if(t-u<1)return"";for(var o=null,r=[],n=0,c,l,d,p;u<t;)c=s[u++],c<=127?r[n++]=c:c>=192&&c<224?(d=(c&31)<<6|s[u++]&63,r[n++]=d>=128?d:i):c>=224&&c<240?(p=(c&15)<<12|(s[u++]&63)<<6|s[u++]&63,r[n++]=p>=2048?p:i):c>=240&&(l=(c&7)<<18|(s[u++]&63)<<12|(s[u++]&63)<<6|s[u++]&63,l<65536||l>1114111?r[n++]=i:(l-=65536,r[n++]=55296+(l>>10),r[n++]=56320+(l&1023))),n>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,r.slice(0,n))),n=0);return o?(n&&o.push(String.fromCharCode.apply(String,r.slice(0,n))),o.join("")):String.fromCharCode.apply(String,r.slice(0,n))},e.write=function(s,u,t){for(var o=t,r,n,c=0;c<s.length;++c)r=s.charCodeAt(c),r<128?u[t++]=r:r<2048?(u[t++]=r>>6|192,u[t++]=r&63|128):(r&64512)===55296&&((n=s.charCodeAt(c+1))&64512)===56320?(r=65536+((r&1023)<<10)+(n&1023),++c,u[t++]=r>>18|240,u[t++]=r>>12&63|128,u[t++]=r>>6&63|128,u[t++]=r&63|128):(u[t++]=r>>12|224,u[t++]=r>>6&63|128,u[t++]=r&63|128);return t-o}})(kr);var ei=ti;function ti(a,e,i){var f=i||8192,s=f>>>1,u=null,t=f;return function(r){if(r<1||r>s)return a(r);t+r>f&&(u=a(f),t=0);var n=e.call(u,t,t+=r);return t&7&&(t=(t|7)+1),n}}var Ze,$t;function ri(){if($t)return Ze;$t=1,Ze=e;var a=me();function e(u,t){this.lo=u>>>0,this.hi=t>>>0}var i=e.zero=new e(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var f=e.zeroHash="\0\0\0\0\0\0\0\0";e.fromNumber=function(t){if(t===0)return i;var o=t<0;o&&(t=-t);var r=t>>>0,n=(t-r)/4294967296>>>0;return o&&(n=~n>>>0,r=~r>>>0,++r>4294967295&&(r=0,++n>4294967295&&(n=0))),new e(r,n)},e.from=function(t){if(typeof t=="number")return e.fromNumber(t);if(a.isString(t))if(a.Long)t=a.Long.fromString(t);else return e.fromNumber(parseInt(t,10));return t.low||t.high?new e(t.low>>>0,t.high>>>0):i},e.prototype.toNumber=function(t){if(!t&&this.hi>>>31){var o=~this.lo+1>>>0,r=~this.hi>>>0;return o||(r=r+1>>>0),-(o+r*4294967296)}return this.lo+this.hi*4294967296},e.prototype.toLong=function(t){return a.Long?new a.Long(this.lo|0,this.hi|0,!!t):{low:this.lo|0,high:this.hi|0,unsigned:!!t}};var s=String.prototype.charCodeAt;return e.fromHash=function(t){return t===f?i:new e((s.call(t,0)|s.call(t,1)<<8|s.call(t,2)<<16|s.call(t,3)<<24)>>>0,(s.call(t,4)|s.call(t,5)<<8|s.call(t,6)<<16|s.call(t,7)<<24)>>>0)},e.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},e.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this},e.prototype.zzDecode=function(){var t=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this},e.prototype.length=function(){var t=this.lo,o=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return r===0?o===0?t<16384?t<128?1:2:t<2097152?3:4:o<16384?o<128?5:6:o<2097152?7:8:r<128?9:10},Ze}var De={exports:{}},ii=De.exports,Ut;function ni(){return Ut||(Ut=1,(function(a,e){(function(i,f){function s(u){return u.default||u}f(e),a.exports=s(e)})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:ii,function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2009 The Closure Library Authors
|
|
4
|
+
* Copyright 2020 Daniel Wirtz / The long.js Authors.
|
|
5
|
+
*
|
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
* you may not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
* See the License for the specific language governing permissions and
|
|
16
|
+
* limitations under the License.
|
|
17
|
+
*
|
|
18
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
19
|
+
*/var f=null;try{f=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}function s(_,h,T){this.low=_|0,this.high=h|0,this.unsigned=!!T}s.prototype.__isLong__,Object.defineProperty(s.prototype,"__isLong__",{value:!0});function u(_){return(_&&_.__isLong__)===!0}function t(_){var h=Math.clz32(_&-_);return _?31-h:h}s.isLong=u;var o={},r={};function n(_,h){var T,D,J;return h?(_>>>=0,(J=0<=_&&_<256)&&(D=r[_],D)?D:(T=l(_,0,!0),J&&(r[_]=T),T)):(_|=0,(J=-128<=_&&_<128)&&(D=o[_],D)?D:(T=l(_,_<0?-1:0,!1),J&&(o[_]=T),T))}s.fromInt=n;function c(_,h){if(isNaN(_))return h?k:N;if(h){if(_<0)return k;if(_>=y)return $}else{if(_<=-E)return B;if(_+1>=E)return q}return _<0?c(-_,h).neg():l(_%R|0,_/R|0,h)}s.fromNumber=c;function l(_,h,T){return new s(_,h,T)}s.fromBits=l;var d=Math.pow;function p(_,h,T){if(_.length===0)throw Error("empty string");if(typeof h=="number"?(T=h,h=!1):h=!!h,_==="NaN"||_==="Infinity"||_==="+Infinity"||_==="-Infinity")return h?k:N;if(T=T||10,T<2||36<T)throw RangeError("radix");var D;if((D=_.indexOf("-"))>0)throw Error("interior hyphen");if(D===0)return p(_.substring(1),h,T).neg();for(var J=c(d(T,8)),V=N,G=0;G<_.length;G+=8){var Q=Math.min(8,_.length-G),se=parseInt(_.substring(G,G+Q),T);if(Q<8){var U=c(d(T,Q));V=V.mul(U).add(c(se))}else V=V.mul(J),V=V.add(c(se))}return V.unsigned=h,V}s.fromString=p;function m(_,h){return typeof _=="number"?c(_,h):typeof _=="string"?p(_,h):l(_.low,_.high,typeof h=="boolean"?h:_.unsigned)}s.fromValue=m;var g=65536,I=1<<24,R=g*g,y=R*R,E=y/2,v=n(I),N=n(0);s.ZERO=N;var k=n(0,!0);s.UZERO=k;var L=n(1);s.ONE=L;var z=n(1,!0);s.UONE=z;var M=n(-1);s.NEG_ONE=M;var q=l(-1,2147483647,!1);s.MAX_VALUE=q;var $=l(-1,-1,!0);s.MAX_UNSIGNED_VALUE=$;var B=l(0,-2147483648,!1);s.MIN_VALUE=B;var O=s.prototype;O.toInt=function(){return this.unsigned?this.low>>>0:this.low},O.toNumber=function(){return this.unsigned?(this.high>>>0)*R+(this.low>>>0):this.high*R+(this.low>>>0)},O.toString=function(h){if(h=h||10,h<2||36<h)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative())if(this.eq(B)){var T=c(h),D=this.div(T),J=D.mul(T).sub(this);return D.toString(h)+J.toInt().toString(h)}else return"-"+this.neg().toString(h);for(var V=c(d(h,6),this.unsigned),G=this,Q="";;){var se=G.div(V),U=G.sub(se.mul(V)).toInt()>>>0,W=U.toString(h);if(G=se,G.isZero())return W+Q;for(;W.length<6;)W="0"+W;Q=""+W+Q}},O.getHighBits=function(){return this.high},O.getHighBitsUnsigned=function(){return this.high>>>0},O.getLowBits=function(){return this.low},O.getLowBitsUnsigned=function(){return this.low>>>0},O.getNumBitsAbs=function(){if(this.isNegative())return this.eq(B)?64:this.neg().getNumBitsAbs();for(var h=this.high!=0?this.high:this.low,T=31;T>0&&(h&1<<T)==0;T--);return this.high!=0?T+33:T+1},O.isSafeInteger=function(){var h=this.high>>21;return h?this.unsigned?!1:h===-1&&!(this.low===0&&this.high===-2097152):!0},O.isZero=function(){return this.high===0&&this.low===0},O.eqz=O.isZero,O.isNegative=function(){return!this.unsigned&&this.high<0},O.isPositive=function(){return this.unsigned||this.high>=0},O.isOdd=function(){return(this.low&1)===1},O.isEven=function(){return(this.low&1)===0},O.equals=function(h){return u(h)||(h=m(h)),this.unsigned!==h.unsigned&&this.high>>>31===1&&h.high>>>31===1?!1:this.high===h.high&&this.low===h.low},O.eq=O.equals,O.notEquals=function(h){return!this.eq(h)},O.neq=O.notEquals,O.ne=O.notEquals,O.lessThan=function(h){return this.comp(h)<0},O.lt=O.lessThan,O.lessThanOrEqual=function(h){return this.comp(h)<=0},O.lte=O.lessThanOrEqual,O.le=O.lessThanOrEqual,O.greaterThan=function(h){return this.comp(h)>0},O.gt=O.greaterThan,O.greaterThanOrEqual=function(h){return this.comp(h)>=0},O.gte=O.greaterThanOrEqual,O.ge=O.greaterThanOrEqual,O.compare=function(h){if(u(h)||(h=m(h)),this.eq(h))return 0;var T=this.isNegative(),D=h.isNegative();return T&&!D?-1:!T&&D?1:this.unsigned?h.high>>>0>this.high>>>0||h.high===this.high&&h.low>>>0>this.low>>>0?-1:1:this.sub(h).isNegative()?-1:1},O.comp=O.compare,O.negate=function(){return!this.unsigned&&this.eq(B)?B:this.not().add(L)},O.neg=O.negate,O.add=function(h){u(h)||(h=m(h));var T=this.high>>>16,D=this.high&65535,J=this.low>>>16,V=this.low&65535,G=h.high>>>16,Q=h.high&65535,se=h.low>>>16,U=h.low&65535,W=0,ie=0,Y=0,K=0;return K+=V+U,Y+=K>>>16,K&=65535,Y+=J+se,ie+=Y>>>16,Y&=65535,ie+=D+Q,W+=ie>>>16,ie&=65535,W+=T+G,W&=65535,l(Y<<16|K,W<<16|ie,this.unsigned)},O.subtract=function(h){return u(h)||(h=m(h)),this.add(h.neg())},O.sub=O.subtract,O.multiply=function(h){if(this.isZero())return this;if(u(h)||(h=m(h)),f){var T=f.mul(this.low,this.high,h.low,h.high);return l(T,f.get_high(),this.unsigned)}if(h.isZero())return this.unsigned?k:N;if(this.eq(B))return h.isOdd()?B:N;if(h.eq(B))return this.isOdd()?B:N;if(this.isNegative())return h.isNegative()?this.neg().mul(h.neg()):this.neg().mul(h).neg();if(h.isNegative())return this.mul(h.neg()).neg();if(this.lt(v)&&h.lt(v))return c(this.toNumber()*h.toNumber(),this.unsigned);var D=this.high>>>16,J=this.high&65535,V=this.low>>>16,G=this.low&65535,Q=h.high>>>16,se=h.high&65535,U=h.low>>>16,W=h.low&65535,ie=0,Y=0,K=0,Ne=0;return Ne+=G*W,K+=Ne>>>16,Ne&=65535,K+=V*W,Y+=K>>>16,K&=65535,K+=G*U,Y+=K>>>16,K&=65535,Y+=J*W,ie+=Y>>>16,Y&=65535,Y+=V*U,ie+=Y>>>16,Y&=65535,Y+=G*se,ie+=Y>>>16,Y&=65535,ie+=D*W+J*U+V*se+G*Q,ie&=65535,l(K<<16|Ne,ie<<16|Y,this.unsigned)},O.mul=O.multiply,O.divide=function(h){if(u(h)||(h=m(h)),h.isZero())throw Error("division by zero");if(f){if(!this.unsigned&&this.high===-2147483648&&h.low===-1&&h.high===-1)return this;var T=(this.unsigned?f.div_u:f.div_s)(this.low,this.high,h.low,h.high);return l(T,f.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?k:N;var D,J,V;if(this.unsigned){if(h.unsigned||(h=h.toUnsigned()),h.gt(this))return k;if(h.gt(this.shru(1)))return z;V=k}else{if(this.eq(B)){if(h.eq(L)||h.eq(M))return B;if(h.eq(B))return L;var G=this.shr(1);return D=G.div(h).shl(1),D.eq(N)?h.isNegative()?L:M:(J=this.sub(h.mul(D)),V=D.add(J.div(h)),V)}else if(h.eq(B))return this.unsigned?k:N;if(this.isNegative())return h.isNegative()?this.neg().div(h.neg()):this.neg().div(h).neg();if(h.isNegative())return this.div(h.neg()).neg();V=N}for(J=this;J.gte(h);){D=Math.max(1,Math.floor(J.toNumber()/h.toNumber()));for(var Q=Math.ceil(Math.log(D)/Math.LN2),se=Q<=48?1:d(2,Q-48),U=c(D),W=U.mul(h);W.isNegative()||W.gt(J);)D-=se,U=c(D,this.unsigned),W=U.mul(h);U.isZero()&&(U=L),V=V.add(U),J=J.sub(W)}return V},O.div=O.divide,O.modulo=function(h){if(u(h)||(h=m(h)),f){var T=(this.unsigned?f.rem_u:f.rem_s)(this.low,this.high,h.low,h.high);return l(T,f.get_high(),this.unsigned)}return this.sub(this.div(h).mul(h))},O.mod=O.modulo,O.rem=O.modulo,O.not=function(){return l(~this.low,~this.high,this.unsigned)},O.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},O.clz=O.countLeadingZeros,O.countTrailingZeros=function(){return this.low?t(this.low):t(this.high)+32},O.ctz=O.countTrailingZeros,O.and=function(h){return u(h)||(h=m(h)),l(this.low&h.low,this.high&h.high,this.unsigned)},O.or=function(h){return u(h)||(h=m(h)),l(this.low|h.low,this.high|h.high,this.unsigned)},O.xor=function(h){return u(h)||(h=m(h)),l(this.low^h.low,this.high^h.high,this.unsigned)},O.shiftLeft=function(h){return u(h)&&(h=h.toInt()),(h&=63)===0?this:h<32?l(this.low<<h,this.high<<h|this.low>>>32-h,this.unsigned):l(0,this.low<<h-32,this.unsigned)},O.shl=O.shiftLeft,O.shiftRight=function(h){return u(h)&&(h=h.toInt()),(h&=63)===0?this:h<32?l(this.low>>>h|this.high<<32-h,this.high>>h,this.unsigned):l(this.high>>h-32,this.high>=0?0:-1,this.unsigned)},O.shr=O.shiftRight,O.shiftRightUnsigned=function(h){return u(h)&&(h=h.toInt()),(h&=63)===0?this:h<32?l(this.low>>>h|this.high<<32-h,this.high>>>h,this.unsigned):h===32?l(this.high,0,this.unsigned):l(this.high>>>h-32,0,this.unsigned)},O.shru=O.shiftRightUnsigned,O.shr_u=O.shiftRightUnsigned,O.rotateLeft=function(h){var T;return u(h)&&(h=h.toInt()),(h&=63)===0?this:h===32?l(this.high,this.low,this.unsigned):h<32?(T=32-h,l(this.low<<h|this.high>>>T,this.high<<h|this.low>>>T,this.unsigned)):(h-=32,T=32-h,l(this.high<<h|this.low>>>T,this.low<<h|this.high>>>T,this.unsigned))},O.rotl=O.rotateLeft,O.rotateRight=function(h){var T;return u(h)&&(h=h.toInt()),(h&=63)===0?this:h===32?l(this.high,this.low,this.unsigned):h<32?(T=32-h,l(this.high<<T|this.low>>>h,this.low<<T|this.high>>>h,this.unsigned)):(h-=32,T=32-h,l(this.low<<T|this.high>>>h,this.high<<T|this.low>>>h,this.unsigned))},O.rotr=O.rotateRight,O.toSigned=function(){return this.unsigned?l(this.low,this.high,!1):this},O.toUnsigned=function(){return this.unsigned?this:l(this.low,this.high,!0)},O.toBytes=function(h){return h?this.toBytesLE():this.toBytesBE()},O.toBytesLE=function(){var h=this.high,T=this.low;return[T&255,T>>>8&255,T>>>16&255,T>>>24,h&255,h>>>8&255,h>>>16&255,h>>>24]},O.toBytesBE=function(){var h=this.high,T=this.low;return[h>>>24,h>>>16&255,h>>>8&255,h&255,T>>>24,T>>>16&255,T>>>8&255,T&255]},s.fromBytes=function(h,T,D){return D?s.fromBytesLE(h,T):s.fromBytesBE(h,T)},s.fromBytesLE=function(h,T){return new s(h[0]|h[1]<<8|h[2]<<16|h[3]<<24,h[4]|h[5]<<8|h[6]<<16|h[7]<<24,T)},s.fromBytesBE=function(h,T){return new s(h[4]<<24|h[5]<<16|h[6]<<8|h[7],h[0]<<24|h[1]<<16|h[2]<<8|h[3],T)},typeof BigInt=="function"&&(s.fromBigInt=function(h,T){var D=Number(BigInt.asIntN(32,h)),J=Number(BigInt.asIntN(32,h>>BigInt(32)));return l(D,J,T)},s.fromValue=function(h,T){return typeof h=="bigint"?s.fromBigInt(h,T):m(h,T)},O.toBigInt=function(){var h=BigInt(this.low>>>0),T=BigInt(this.unsigned?this.high>>>0:this.high);return T<<BigInt(32)|h}),i.default=s})})(De,De.exports)),De.exports}var Vt;function me(){return Vt||(Vt=1,(function(a){var e=a;e.asPromise=Rr,e.base64=Nr,e.EventEmitter=Kr,e.float=Qr,e.utf8=kr,e.pool=ei,e.LongBits=ri();function i(u){return u==="__proto__"||u==="prototype"||u==="constructor"}e.isUnsafeProperty=i,e.isNode=!!(typeof be.commonjsGlobal<"u"&&be.commonjsGlobal&&be.commonjsGlobal.process&&be.commonjsGlobal.process.versions&&be.commonjsGlobal.process.versions.node),e.global=e.isNode&&be.commonjsGlobal||typeof window<"u"&&window||typeof self<"u"&&self||Ue,e.emptyArray=Object.freeze?Object.freeze([]):[],e.emptyObject=Object.freeze?Object.freeze({}):{},e.isInteger=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t},e.isString=function(t){return typeof t=="string"||t instanceof String},e.isObject=function(t){return t&&typeof t=="object"},e.isset=e.isSet=function(t,o){var r=t[o];return r!=null&&Object.hasOwnProperty.call(t,o)?typeof r!="object"||(Array.isArray(r)?r.length:Object.keys(r).length)>0:!1},e.Buffer=(function(){try{var u=e.global.Buffer;return u.prototype.utf8Write?u:null}catch{return null}})(),e._Buffer_from=null,e._Buffer_allocUnsafe=null,e.newBuffer=function(t){return typeof t=="number"?e.Buffer?e._Buffer_allocUnsafe(t):new e.Array(t):e.Buffer?e._Buffer_from(t):typeof Uint8Array>"u"?t:new Uint8Array(t)},e.Array=typeof Uint8Array<"u"?Uint8Array:Array,e.Long=e.global.dcodeIO&&e.global.dcodeIO.Long||e.global.Long||(function(){try{var u=ni();return u&&u.isLong?u:null}catch{return null}})(),e.key2Re=/^true|false|0|1$/,e.key32Re=/^-?(?:0|[1-9][0-9]*)$/,e.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,e.longToHash=function(t){return t?e.LongBits.from(t).toHash():e.LongBits.zeroHash},e.longFromHash=function(t,o){var r=e.LongBits.fromHash(t);return e.Long?e.Long.fromBits(r.lo,r.hi,o):r.toNumber(!!o)};function f(u){var t=typeof arguments[arguments.length-1]=="boolean",o=t?arguments.length-1:arguments.length;t=t&&arguments[arguments.length-1];for(var r=1;r<o;++r){var n=arguments[r];if(n)for(var c=Object.keys(n),l=0;l<c.length;++l)!i(c[l])&&(u[c[l]]===void 0||!t)&&(u[c[l]]=n[c[l]])}return u}e.merge=f,e.nestingLimit=32,e.recursionLimit=100,e.makeProp=function(t,o){Object.defineProperty(t,o,{enumerable:!0,configurable:!0,writable:!0})},e.lcFirst=function(t){return t.charAt(0).toLowerCase()+t.substring(1)};function s(u){function t(o,r){if(!(this instanceof t))return new t(o,r);Object.defineProperty(this,"message",{get:function(){return o}}),Error.captureStackTrace?Error.captureStackTrace(this,t):Object.defineProperty(this,"stack",{value:new Error().stack||""}),r&&f(this,r)}return t.prototype=Object.create(Error.prototype,{constructor:{value:t,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return u},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),t}e.newError=s,e.ProtocolError=s("ProtocolError"),e.oneOfGetter=function(t){for(var o={},r=0;r<t.length;++r)o[t[r]]=1;return function(){for(var n=Object.keys(this),c=n.length-1;c>-1;--c)if(o[n[c]]===1&&this[n[c]]!==void 0&&this[n[c]]!==null)return n[c]}},e.oneOfSetter=function(t){return function(o){for(var r=0;r<t.length;++r)t[r]!==o&&delete this[t[r]]}},e.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},e._configure=function(){var u=e.Buffer;if(!u){e._Buffer_from=e._Buffer_allocUnsafe=null;return}e._Buffer_from=u.from!==Uint8Array.from&&u.from||function(o,r){return new u(o,r)},e._Buffer_allocUnsafe=u.allocUnsafe||function(o){return new u(o)}}})(Ue)),Ue}var vt=j,ae=me(),mt,We=ae.LongBits,Jt=ae.base64,zt=ae.utf8;function je(a,e,i){this.fn=a,this.len=e,this.next=void 0,this.val=i}function _t(){}function si(a){this.head=a.head,this.tail=a.tail,this.len=a.len,this.next=a.states}function j(){this.len=0,this.head=new je(_t,0,0),this.tail=this.head,this.states=null}var Ir=function(){return ae.Buffer?function(){return(j.create=function(){return new mt})()}:function(){return new j}};j.create=Ir();j.alloc=function(e){return new ae.Array(e)};ae.Array!==Array&&(j.alloc=ae.pool(j.alloc,ae.Array.prototype.subarray));j.prototype._push=function(e,i,f){return this.tail=this.tail.next=new je(e,i,f),this.len+=i,this};function wt(a,e,i){e[i]=a&255}function oi(a,e,i){for(;a>127;)e[i++]=a&127|128,a>>>=7;e[i]=a}function bt(a,e){this.len=a,this.next=void 0,this.val=e}bt.prototype=Object.create(je.prototype);bt.prototype.fn=oi;j.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new bt((e=e>>>0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this};j.prototype.int32=function(e){return(e|=0)<0?this._push(Ot,10,We.fromNumber(e)):this.uint32(e)};j.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)};function Ot(a,e,i){for(var f=a.lo,s=a.hi;s;)e[i++]=f&127|128,f=(f>>>7|s<<25)>>>0,s>>>=7;for(;f>127;)e[i++]=f&127|128,f=f>>>7;e[i++]=f}j.prototype.uint64=function(e){var i=We.from(e);return this._push(Ot,i.length(),i)};j.prototype.int64=j.prototype.uint64;j.prototype.sint64=function(e){var i=We.from(e).zzEncode();return this._push(Ot,i.length(),i)};j.prototype.bool=function(e){return this._push(wt,1,e?1:0)};function gt(a,e,i){e[i]=a&255,e[i+1]=a>>>8&255,e[i+2]=a>>>16&255,e[i+3]=a>>>24}j.prototype.fixed32=function(e){return this._push(gt,4,e>>>0)};j.prototype.sfixed32=j.prototype.fixed32;j.prototype.fixed64=function(e){var i=We.from(e);return this._push(gt,4,i.lo)._push(gt,4,i.hi)};j.prototype.sfixed64=j.prototype.fixed64;j.prototype.float=function(e){return this._push(ae.float.writeFloatLE,4,e)};j.prototype.double=function(e){return this._push(ae.float.writeDoubleLE,8,e)};var ai=ae.Array.prototype.set?function(e,i,f){i.set(e,f)}:function(e,i,f){for(var s=0;s<e.length;++s)i[f+s]=e[s]};j.prototype.bytes=function(e){var i=e.length>>>0;if(!i)return this._push(wt,1,0);if(ae.isString(e)){var f=j.alloc(i=Jt.length(e));Jt.decode(e,f,0),e=f}return this.uint32(i)._push(ai,i,e)};j.prototype.string=function(e){var i=zt.length(e);return i?this.uint32(i)._push(zt.write,i,e):this._push(wt,1,0)};j.prototype.fork=function(){return this.states=new si(this),this.head=this.tail=new je(_t,0,0),this.len=0,this};j.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new je(_t,0,0),this.len=0),this};j.prototype.ldelim=function(){var e=this.head,i=this.tail,f=this.len;return this.reset().uint32(f),f&&(this.tail.next=e.next,this.tail=i,this.len+=f),this};j.prototype.finish=function(){for(var e=this.head.next,i=this.constructor.alloc(this.len),f=0;e;)e.fn(e.val,i,f),f+=e.len,e=e.next;return i};j._configure=function(a){mt=a,j.create=Ir(),mt._configure()};var ui=pe,Sr=vt;(pe.prototype=Object.create(Sr.prototype)).constructor=pe;var Oe=me();function pe(){Sr.call(this)}pe._configure=function(){pe.alloc=Oe._Buffer_allocUnsafe,pe.writeBytesBuffer=Oe.Buffer&&Oe.Buffer.prototype instanceof Uint8Array&&Oe.Buffer.prototype.set.name==="set"?function(e,i,f){i.set(e,f)}:function(e,i,f){if(e.copy)e.copy(i,f,0,e.length);else for(var s=0;s<e.length;)i[f++]=e[s++]}};pe.prototype.bytes=function(e){Oe.isString(e)&&(e=Oe._Buffer_from(e,"base64"));var i=e.length>>>0;return this.uint32(i),i&&this._push(pe.writeBytesBuffer,i,e),this};function fi(a,e,i){a.length<40?Oe.utf8.write(a,e,i):e.utf8Write?e.utf8Write(a,i):e.write(a,i)}pe.prototype.string=function(e){var i=Oe.Buffer.byteLength(e);return this.uint32(i),i&&this._push(fi,i,e),this};pe._configure();var xt=Z,ue=me(),yt,Fr=ue.LongBits,li=ue.utf8;function fe(a,e){return RangeError("index out of range: "+a.pos+" + "+(e||1)+" > "+a.len)}function Z(a){this.buf=a,this.pos=0,this.len=a.length}var Wt=typeof Uint8Array<"u"?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new Z(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new Z(e);throw Error("illegal buffer")},Lr=function(){return ue.Buffer?function(i){return(Z.create=function(s){return ue.Buffer.isBuffer(s)?new yt(s):Wt(s)})(i)}:Wt};Z.create=Lr();Z.prototype._slice=ue.Array.prototype.subarray||ue.Array.prototype.slice;Z.prototype.uint32=(function(){var e=4294967295;return function(){if(e=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(e=(e|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return e;if((this.pos+=5)>this.len)throw this.pos=this.len,fe(this,10);return e}})();Z.prototype.int32=function(){return this.uint32()|0};Z.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(e&1)|0};function Ge(){var a=new Fr(0,0),e=0;if(this.len-this.pos>4){for(;e<4;++e)if(a.lo=(a.lo|(this.buf[this.pos]&127)<<e*7)>>>0,this.buf[this.pos++]<128)return a;if(a.lo=(a.lo|(this.buf[this.pos]&127)<<28)>>>0,a.hi=(a.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return a;e=0}else{for(;e<3;++e){if(this.pos>=this.len)throw fe(this);if(a.lo=(a.lo|(this.buf[this.pos]&127)<<e*7)>>>0,this.buf[this.pos++]<128)return a}return a.lo=(a.lo|(this.buf[this.pos++]&127)<<e*7)>>>0,a}if(this.len-this.pos>4){for(;e<5;++e)if(a.hi=(a.hi|(this.buf[this.pos]&127)<<e*7+3)>>>0,this.buf[this.pos++]<128)return a}else for(;e<5;++e){if(this.pos>=this.len)throw fe(this);if(a.hi=(a.hi|(this.buf[this.pos]&127)<<e*7+3)>>>0,this.buf[this.pos++]<128)return a}throw Error("invalid varint encoding")}Z.prototype.bool=function(){return this.uint32()!==0};function Je(a,e){return(a[e-4]|a[e-3]<<8|a[e-2]<<16|a[e-1]<<24)>>>0}Z.prototype.fixed32=function(){if(this.pos+4>this.len)throw fe(this,4);return Je(this.buf,this.pos+=4)};Z.prototype.sfixed32=function(){if(this.pos+4>this.len)throw fe(this,4);return Je(this.buf,this.pos+=4)|0};function Ht(){if(this.pos+8>this.len)throw fe(this,8);return new Fr(Je(this.buf,this.pos+=4),Je(this.buf,this.pos+=4))}Z.prototype.float=function(){if(this.pos+4>this.len)throw fe(this,4);var e=ue.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e};Z.prototype.double=function(){if(this.pos+8>this.len)throw fe(this,4);var e=ue.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e};Z.prototype.bytes=function(){var e=this.uint32(),i=this.pos,f=this.pos+e;if(f>this.len)throw fe(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(i,f);if(i===f){var s=ue.Buffer;return s?s.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,i,f)};Z.prototype.string=function(){var e=this.bytes();return li.read(e,0,e.length)};Z.prototype.skip=function(e){if(typeof e=="number"){if(this.pos+e>this.len)throw fe(this,e);this.pos+=e}else do if(this.pos>=this.len)throw fe(this);while(this.buf[this.pos++]&128);return this};Z.recursionLimit=ue.recursionLimit;Z.prototype.skipType=function(a,e){if(e===void 0&&(e=0),e>Z.recursionLimit)throw Error("maximum nesting depth exceeded");switch(a){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(a=this.uint32()&7)!==4;)this.skipType(a,e+1);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+a+" at offset "+this.pos)}return this};Z._configure=function(a){yt=a,Z.create=Lr(),yt._configure();var e=ue.Long?"toLong":"toNumber";ue.merge(Z.prototype,{int64:function(){return Ge.call(this)[e](!1)},uint64:function(){return Ge.call(this)[e](!0)},sint64:function(){return Ge.call(this).zzDecode()[e](!1)},fixed64:function(){return Ht.call(this)[e](!0)},sfixed64:function(){return Ht.call(this)[e](!1)}})};var ci=Ae,Mr=xt;(Ae.prototype=Object.create(Mr.prototype)).constructor=Ae;var Zt=me();function Ae(a){Mr.call(this,a)}Ae._configure=function(){Zt.Buffer&&(Ae.prototype._slice=Zt.Buffer.prototype.slice)};Ae.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))};Ae._configure();var Et={},hi=qe,At=me();(qe.prototype=Object.create(At.EventEmitter.prototype)).constructor=qe;function qe(a,e,i){if(typeof a!="function")throw TypeError("rpcImpl must be a function");At.EventEmitter.call(this),this.rpcImpl=a,this.requestDelimited=!!e,this.responseDelimited=!!i}qe.prototype.rpcCall=function a(e,i,f,s,u){if(!s)throw TypeError("request must be specified");var t=this;if(!u)return At.asPromise(a,t,e,i,f,s);if(!t.rpcImpl){setTimeout(function(){u(Error("already ended"))},0);return}try{return t.rpcImpl(e,i[t.requestDelimited?"encodeDelimited":"encode"](s).finish(),function(r,n){if(r)return t.emit("error",r,e),u(r);if(n===null){t.end(!0);return}if(!(n instanceof f))try{n=f[t.responseDelimited?"decodeDelimited":"decode"](n)}catch(c){return t.emit("error",c,e),u(c)}return t.emit("data",n,e),u(null,n)})}catch(o){t.emit("error",o,e),setTimeout(function(){u(o)},0);return}};qe.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this};(function(a){var e=a;e.Service=hi})(Et);var Dr=Object.create(null);(function(a){var e=a;e.build="minimal",e.Writer=vt,e.BufferWriter=ui,e.Reader=xt,e.BufferReader=ci,e.util=me(),e.rpc=Et,e.roots=Dr,e.configure=i;function i(){e.util._configure(),e.Writer._configure(e.BufferWriter),e.Reader._configure(e.BufferReader)}i()})(Tr);var Ye={},Xe={exports:{}},di=Tt,pi=/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/;function Tt(a,e){typeof a=="string"&&(e=a,a=void 0);var i=[];function f(u){if(typeof u!="string"){var t=s();if(Tt.verbose&&console.log("codegen: "+t),t="return "+t,u){for(var o=Object.keys(u),r=new Array(o.length+1),n=new Array(o.length),c=0;c<o.length;)r[c]=o[c],n[c]=u[o[c++]];return r[c]=t,Function.apply(null,r).apply(null,n)}return Function(t)()}for(var l=new Array(arguments.length-1),d=0;d<l.length;)l[d]=arguments[++d];if(d=0,u=u.replace(/%([%dfijs])/g,function(m,g){var I=l[d++];switch(g){case"d":case"f":return String(Number(I));case"i":return String(Math.floor(I));case"j":return JSON.stringify(I);case"s":return String(I)}return"%"}),d!==l.length)throw Error("parameter count mismatch");return i.push(u),f}function s(u){return"function "+mi(u||e)+"("+(a&&a.join(",")||"")+`){
|
|
20
|
+
`+i.join(`
|
|
21
|
+
`)+`
|
|
22
|
+
}`}return f.toString=s,f}Tt.verbose=!1;function mi(a){return!a||(a=String(a).replace(/[^\w$]/g,""),!a)?"":(/^\d/.test(a)&&(a="_"+a),pi.test(a)?a+"_":a)}var ke=null;try{ke=be.require$$0,(!ke||!ke.readFile||!ke.readFileSync)&&(ke=null)}catch{}var gi=ke,yi=Ce,vi=Rr,Ke=gi;function Ce(a,e,i){return typeof e=="function"?(i=e,e={}):e||(e={}),i?!e.xhr&&Ke&&Ke.readFile?Ke.readFile(a,function(s,u){return s&&typeof XMLHttpRequest<"u"?Ce.xhr(a,e,i):s?i(s):i(null,e.binary?u:u.toString("utf8"))}):Ce.xhr(a,e,i):vi(Ce,this,a,e)}Ce.xhr=function(e,i,f){var s=new XMLHttpRequest;s.onreadystatechange=function(){if(s.readyState===4){if(s.status!==0&&s.status!==200)return f(Error("status "+s.status));if(i.binary){var t=s.response;if(!t){t=[];for(var o=0;o<s.responseText.length;++o)t.push(s.responseText.charCodeAt(o)&255)}return f(null,typeof Uint8Array<"u"?new Uint8Array(t):t)}return f(null,s.responseText)}},i.binary&&("overrideMimeType"in s&&s.overrideMimeType("text/plain; charset=x-user-defined"),s.responseType="arraybuffer"),s.open("GET",e),s.send()};var Cr={};(function(a){var e=a,i=e.isAbsolute=function(u){return/^(?:\/|\w+:)/.test(u)},f=e.normalize=function(u){u=u.replace(/\\/g,"/").replace(/\/{2,}/g,"/");var t=u.split("/"),o=i(u),r="";o&&(r=t.shift()+"/");for(var n=0;n<t.length;)t[n]===".."?n>0&&t[n-1]!==".."?t.splice(--n,2):o?t.splice(n,1):++n:t[n]==="."?t.splice(n,1):++n;return r+t.join("/")};e.resolve=function(u,t,o){return o||(t=f(t)),i(t)?t:(o||(u=f(u)),(u=u.replace(/(?:\/|^)[^/]+$/,"")).length?f(u+"/"+t):t)}})(Cr);var Br={};(function(a){var e=a;e.numberRe=/^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/,e.typeRefRe=/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/,e.reservedRe=/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/})(Br);var Ie=null;try{Ie=be.require$$0,(!Ie||!Ie.readFile||!Ie.readFileSync)&&(Ie=null)}catch{}var _i=Ie,Qe,Gt;function $e(){if(Gt)return Qe;Gt=1,Qe=r;var a=Re();((r.prototype=Object.create(a.prototype)).constructor=r).className="Namespace";var e=Te(),i=re(),f=Me(),s,u,t;r.fromJSON=function(l,d,p){return p=i.checkDepth(p),new r(l,d.options).addJSON(d.nested,p)};function o(c,l){if(c&&c.length){for(var d={},p=0;p<c.length;++p)d[c[p].name]=c[p].toJSON(l);return d}}r.arrayToJSON=o,r.isReservedId=function(l,d){if(l){for(var p=0;p<l.length;++p)if(typeof l[p]!="string"&&l[p][0]<=d&&l[p][1]>d)return!0}return!1},r.isReservedName=function(l,d){if(l){for(var p=0;p<l.length;++p)if(l[p]===d)return!0}return!1};function r(c,l){a.call(this,c,l),this.nested=void 0,this._nestedArray=null,this._lookupCache=Object.create(null),this._needsRecursiveFeatureResolution=!0,this._needsRecursiveResolve=!0}function n(c){c._nestedArray=null,c._lookupCache=Object.create(null);for(var l=c;l=l.parent;)l._lookupCache=Object.create(null);return c}return Object.defineProperty(r.prototype,"nestedArray",{get:function(){return this._nestedArray||(this._nestedArray=i.toArray(this.nested))}}),r.prototype.toJSON=function(l){return i.toObject(["options",this.options,"nested",o(this.nestedArray,l)])},r.prototype.addJSON=function(l,d){d=i.checkDepth(d);var p=this;if(l)for(var m=Object.keys(l),g=0,I;g<m.length;++g)I=l[m[g]],p.add((I.fields!==void 0?s.fromJSON:I.values!==void 0?t.fromJSON:I.methods!==void 0?u.fromJSON:I.id!==void 0?e.fromJSON:r.fromJSON)(m[g],I,d+1));return this},r.prototype.get=function(l){return this.nested&&Object.prototype.hasOwnProperty.call(this.nested,l)?this.nested[l]:null},r.prototype.getEnum=function(l){if(this.nested&&Object.prototype.hasOwnProperty.call(this.nested,l)&&this.nested[l]instanceof t)return this.nested[l].values;throw Error("no such enum: "+l)},r.prototype.add=function(l){if(!(l instanceof e&&l.extend!==void 0||l instanceof s||l instanceof f||l instanceof t||l instanceof u||l instanceof r))throw TypeError("object must be a valid nested object");if(l.name==="__proto__")return this;if(!this.nested)this.nested={};else{var d=this.get(l.name);if(d)if(d instanceof r&&l instanceof r&&!(d instanceof s||d instanceof u)){for(var p=d.nestedArray,m=0;m<p.length;++m)l.add(p[m]);this.remove(d),this.nested||(this.nested={}),l.setOptions(d.options,!0)}else throw Error("duplicate name '"+l.name+"' in "+this)}this.nested[l.name]=l,this instanceof s||this instanceof u||this instanceof t||this instanceof e||l._edition||(l._edition=l._defaultEdition),this._needsRecursiveFeatureResolution=!0,this._needsRecursiveResolve=!0;for(var g=this;g=g.parent;)g._needsRecursiveFeatureResolution=!0,g._needsRecursiveResolve=!0;return l.onAdd(this),n(this)},r.prototype.remove=function(l){if(!(l instanceof a))throw TypeError("object must be a ReflectionObject");if(l.parent!==this)throw Error(l+" is not a member of "+this);return delete this.nested[l.name],Object.keys(this.nested).length||(this.nested=void 0),l.onRemove(this),n(this)},r.prototype.define=function(l,d){if(i.isString(l))l=l.split(".");else if(!Array.isArray(l))throw TypeError("illegal path");if(l&&l.length&&l[0]==="")throw Error("path must be relative");if(l.length>i.recursionLimit)throw Error("max depth exceeded");for(var p=this;l.length>0;){var m=l.shift();if(p.nested&&p.nested[m]){if(p=p.nested[m],!(p instanceof r))throw Error("path conflicts with non-namespace objects")}else p.add(p=new r(m))}return d&&p.addJSON(d),p},r.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;this._resolveFeaturesRecursive(this._edition);var l=this.nestedArray,d=0;for(this.resolve();d<l.length;)l[d]instanceof r?l[d++].resolveAll():l[d++].resolve();return this._needsRecursiveResolve=!1,this},r.prototype._resolveFeaturesRecursive=function(l){return this._needsRecursiveFeatureResolution?(this._needsRecursiveFeatureResolution=!1,l=this._edition||l,a.prototype._resolveFeaturesRecursive.call(this,l),this.nestedArray.forEach(d=>{d._resolveFeaturesRecursive(l)}),this):this},r.prototype.lookup=function(l,d,p){if(typeof d=="boolean"?(p=d,d=void 0):d&&!Array.isArray(d)&&(d=[d]),i.isString(l)&&l.length){if(l===".")return this.root;l=l.split(".")}else if(!l.length)return this;var m=l.join(".");if(l[0]==="")return this.root.lookup(l.slice(1),d);var g=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+m];if(g&&(!d||d.indexOf(g.constructor)>-1)||(g=this._lookupImpl(l,m),g&&(!d||d.indexOf(g.constructor)>-1)))return g;if(p)return null;for(var I=this;I.parent;){if(g=I.parent._lookupImpl(l,m),g&&(!d||d.indexOf(g.constructor)>-1))return g;I=I.parent}return null},r.prototype._lookupImpl=function(l,d){if(Object.prototype.hasOwnProperty.call(this._lookupCache,d))return this._lookupCache[d];var p=this.get(l[0]),m=null;if(p)l.length===1?m=p:p instanceof r&&(l=l.slice(1),m=p._lookupImpl(l,l.join(".")));else for(var g=0;g<this.nestedArray.length;++g)if(this._nestedArray[g]instanceof r&&(p=this._nestedArray[g]._lookupImpl(l,d))){m=p;break}return this._lookupCache[d]=m,m},r.prototype.lookupType=function(l){var d=this.lookup(l,[s]);if(!d)throw Error("no such type: "+l);return d},r.prototype.lookupEnum=function(l){var d=this.lookup(l,[t]);if(!d)throw Error("no such Enum '"+l+"' in "+this);return d},r.prototype.lookupTypeOrEnum=function(l){var d=this.lookup(l,[s,t]);if(!d)throw Error("no such Type or Enum '"+l+"' in "+this);return d},r.prototype.lookupService=function(l){var d=this.lookup(l,[u]);if(!d)throw Error("no such Service '"+l+"' in "+this);return d},r._configure=function(c,l,d){s=c,u=l,t=d},Qe}var et,Yt;function Rt(){if(Yt)return et;Yt=1,et=f;var a=Te();((f.prototype=Object.create(a.prototype)).constructor=f).className="MapField";var e=Le(),i=re();function f(s,u,t,o,r,n){if(a.call(this,s,u,o,void 0,void 0,r,n),!i.isString(t))throw TypeError("keyType must be a string");this.keyType=t,this.resolvedKeyType=null,this.map=!0}return f.fromJSON=function(u,t){return new f(u,t.id,t.keyType,t.type,t.options,t.comment)},f.prototype.toJSON=function(u){var t=u?!!u.keepComments:!1;return i.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},f.prototype.resolve=function(){if(this.resolved)return this;if(e.mapKey[this.keyType]===void 0)throw Error("invalid key type: "+this.keyType);return a.prototype.resolve.call(this)},f.d=function(u,t,o){return typeof o=="function"?o=i.decorateType(o).name:o&&typeof o=="object"&&(o=i.decorateEnum(o).name),function(n,c){i.decorateType(n.constructor).add(new f(c,u,t,o))}},et}var tt,Xt;function Nt(){if(Xt)return tt;Xt=1,tt=i;var a=Re();((i.prototype=Object.create(a.prototype)).constructor=i).className="Method";var e=re();function i(f,s,u,t,o,r,n,c,l){if(e.isObject(o)?(n=o,o=r=void 0):e.isObject(r)&&(n=r,r=void 0),!(s===void 0||e.isString(s)))throw TypeError("type must be a string");if(!e.isString(u))throw TypeError("requestType must be a string");if(!e.isString(t))throw TypeError("responseType must be a string");a.call(this,f,n),this.type=s||"rpc",this.requestType=u,this.requestStream=o?!0:void 0,this.responseType=t,this.responseStream=r?!0:void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=c,this.parsedOptions=l}return i.fromJSON=function(s,u){return new i(s,u.type,u.requestType,u.responseType,u.requestStream,u.responseStream,u.options,u.comment,u.parsedOptions)},i.prototype.toJSON=function(s){var u=s?!!s.keepComments:!1;return e.toObject(["type",this.type!=="rpc"&&this.type||void 0,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options,"comment",u?this.comment:void 0,"parsedOptions",this.parsedOptions])},i.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),a.prototype.resolve.call(this))},tt}var rt,Kt;function kt(){if(Kt)return rt;Kt=1,rt=s;var a=$e();((s.prototype=Object.create(a.prototype)).constructor=s).className="Service";var e=Nt(),i=re(),f=Et;function s(t,o){a.call(this,t,o),this.methods={},this._methodsArray=null}s.fromJSON=function(o,r,n){n=i.checkDepth(n);var c=new s(o,r.options);if(r.methods)for(var l=Object.keys(r.methods),d=0;d<l.length;++d)c.add(e.fromJSON(l[d],r.methods[l[d]]));return r.nested&&c.addJSON(r.nested,n),r.edition&&(c._edition=r.edition),c.comment=r.comment,c._defaultEdition="proto3",c},s.prototype.toJSON=function(o){var r=a.prototype.toJSON.call(this,o),n=o?!!o.keepComments:!1;return i.toObject(["edition",this._editionToJSON(),"options",r&&r.options||void 0,"methods",a.arrayToJSON(this.methodsArray,o)||{},"nested",r&&r.nested||void 0,"comment",n?this.comment:void 0])},Object.defineProperty(s.prototype,"methodsArray",{get:function(){return this._methodsArray||(this._methodsArray=i.toArray(this.methods))}});function u(t){return t._methodsArray=null,t}return s.prototype.get=function(o){return Object.prototype.hasOwnProperty.call(this.methods,o)?this.methods[o]:a.prototype.get.call(this,o)},s.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;a.prototype.resolve.call(this);for(var o=this.methodsArray,r=0;r<o.length;++r)o[r].resolve();return this},s.prototype._resolveFeaturesRecursive=function(o){return this._needsRecursiveFeatureResolution?(o=this._edition||o,a.prototype._resolveFeaturesRecursive.call(this,o),this.methodsArray.forEach(r=>{r._resolveFeaturesRecursive(o)}),this):this},s.prototype.add=function(o){if(this.get(o.name))throw Error("duplicate name '"+o.name+"' in "+this);return o instanceof e?o.name==="__proto__"?this:(this.methods[o.name]=o,o.parent=this,u(this)):a.prototype.add.call(this,o)},s.prototype.remove=function(o){if(o instanceof e){if(this.methods[o.name]!==o)throw Error(o+" is not a member of "+this);return delete this.methods[o.name],o.parent=null,u(this)}return a.prototype.remove.call(this,o)},s.prototype.create=function(o,r,n){for(var c=new f.Service(o,r,n),l=0,d;l<this.methodsArray.length;++l){var p=i.lcFirst((d=this._methodsArray[l]).resolve().name).replace(/[^$\w_]/g,"");c[p]=(function(m,g,I){return function(y,E){return f.Service.prototype.rpcCall.call(this,m,g,I,y,E)}})(d,d.resolvedRequestType.ctor,d.resolvedResponseType.ctor)}return c},rt}var It=ge,wi=me();function ge(a){if(a)for(var e=Object.keys(a),i=0;i<e.length;++i){var f=e[i];f!=="__proto__"&&(this[f]=a[f])}}ge.create=function(e){return this.$type.create(e)};ge.encode=function(e,i){return this.$type.encode(e,i)};ge.encodeDelimited=function(e,i){return this.$type.encodeDelimited(e,i)};ge.decode=function(e){return this.$type.decode(e)};ge.decodeDelimited=function(e){return this.$type.decodeDelimited(e)};ge.verify=function(e){return this.$type.verify(e)};ge.fromObject=function(e){return this.$type.fromObject(e)};ge.toObject=function(e,i){return this.$type.toObject(e,i)};ge.prototype.toJSON=function(){return this.$type.toObject(this,wi.toJSONOptions)};var it,Qt;function Pr(){if(Qt)return it;Qt=1,it=s;var a=ye(),e=Le(),i=re();function f(u){return"missing required '"+u.name+"'"}function s(u){for(var t=i.codegen(["r","l","e","n"],u.name+"$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("if(n===undefined)n=0")("if(n>Reader.recursionLimit)")('throw Error("maximum nesting depth exceeded")')("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(u.fieldsArray.filter(function(d){return d.map}).length?",k,value":""))("while(r.pos<c){")("var t=r.uint32()")("if(t===e)")("break")("switch(t>>>3){"),o=0;o<u.fieldsArray.length;++o){var r=u._fieldsArray[o].resolve(),n=r.resolvedType instanceof a?"int32":r.type,c="m"+i.safeProp(r.name);t("case %i: {",r.id),r.map?(t("if(%s===util.emptyObject)",c)("%s={}",c)("var c2 = r.uint32()+r.pos"),e.defaults[r.keyType]!==void 0?t("k=%j",e.defaults[r.keyType]):t("k=null"),e.defaults[n]!==void 0?t("value=%j",e.defaults[n]):t("value=null"),t("while(r.pos<c2){")("var tag2=r.uint32()")("switch(tag2>>>3){")("case 1: k=r.%s(); break",r.keyType)("case 2:"),e.basic[n]===void 0?t("value=types[%i].decode(r,r.uint32(),undefined,n+1)",o):t("value=r.%s()",n),t("break")("default:")("r.skipType(tag2&7,n)")("break")("}")("}"),e.long[r.keyType]!==void 0?t('%s[typeof k==="object"?util.longToHash(k):k]=value',c):(r.keyType==="string"&&t('if(k==="__proto__")')("util.makeProp(%s,k)",c),t("%s[k]=value",c))):r.repeated?(t("if(!(%s&&%s.length))",c,c)("%s=[]",c),e.packed[n]!==void 0&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())",c,n)("}else"),e.basic[n]===void 0?t(r.delimited?"%s.push(types[%i].decode(r,undefined,((t&~7)|4),n+1))":"%s.push(types[%i].decode(r,r.uint32(),undefined,n+1))",c,o):t("%s.push(r.%s())",c,n)):e.basic[n]===void 0?t(r.delimited?"%s=types[%i].decode(r,undefined,((t&~7)|4),n+1)":"%s=types[%i].decode(r,r.uint32(),undefined,n+1)",c,o):t("%s=r.%s()",c,n),t("break")("}")}for(t("default:")("r.skipType(t&7,n)")("break")("}")("}"),o=0;o<u._fieldsArray.length;++o){var l=u._fieldsArray[o];l.required&&t("if(!Object.hasOwnProperty.call(m,%j))",l.name)("throw util.ProtocolError(%j,{instance:m})",f(l))}return t("return m")}return it}var nt,er;function qr(){if(er)return nt;er=1,nt=u;var a=ye(),e=re();function i(t,o){return t.name+": "+o+(t.repeated&&o!=="array"?"[]":t.map&&o!=="object"?"{k:"+t.keyType+"}":"")+" expected"}function f(t,o,r,n){if(o.resolvedType)if(o.resolvedType instanceof a){t("switch(%s){",n)("default:")("return%j",i(o,"enum value"));for(var c=Object.keys(o.resolvedType.values),l=0;l<c.length;++l)t("case %i:",o.resolvedType.values[c[l]]);t("break")("}")}else t("{")("var e=types[%i].verify(%s,n+1);",r,n)("if(e)")("return%j+e",o.name+".")("}");else switch(o.type){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":t("if(!util.isInteger(%s))",n)("return%j",i(o,"integer"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":t("if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))",n,n,n,n)("return%j",i(o,"integer|Long"));break;case"float":case"double":t('if(typeof %s!=="number")',n)("return%j",i(o,"number"));break;case"bool":t('if(typeof %s!=="boolean")',n)("return%j",i(o,"boolean"));break;case"string":t("if(!util.isString(%s))",n)("return%j",i(o,"string"));break;case"bytes":t('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))',n,n,n)("return%j",i(o,"buffer"));break}return t}function s(t,o,r){switch(o.keyType){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":t("if(!util.key32Re.test(%s))",r)("return%j",i(o,"integer key"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":t("if(!util.key64Re.test(%s))",r)("return%j",i(o,"integer|Long key"));break;case"bool":t("if(!util.key2Re.test(%s))",r)("return%j",i(o,"boolean key"));break}return t}function u(t){var o=e.codegen(["m","n"],t.name+"$verify")('if(typeof m!=="object"||m===null)')("return%j","object expected")("if(n===undefined)n=0")("if(n>util.recursionLimit)")("return%j","maximum nesting depth exceeded"),r=t.oneofsArray,n={};r.length&&o("var p={}");for(var c=0;c<t.fieldsArray.length;++c){var l=t._fieldsArray[c].resolve(),d="m"+e.safeProp(l.name);if(l.optional&&o("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",d,l.name),l.map)o("if(!util.isObject(%s))",d)("return%j",i(l,"object"))("var k=Object.keys(%s)",d)("for(var i=0;i<k.length;++i){"),s(o,l,"k[i]"),f(o,l,c,d+"[k[i]]")("}");else if(l.repeated)o("if(!Array.isArray(%s))",d)("return%j",i(l,"array"))("for(var i=0;i<%s.length;++i){",d),f(o,l,c,d+"[i]")("}");else{if(l.partOf){var p=e.safeProp(l.partOf.name);n[l.partOf.name]===1&&o("if(p%s===1)",p)("return%j",l.partOf.name+": multiple values"),n[l.partOf.name]=1,o("p%s=1",p)}f(o,l,c,d)}l.optional&&o("}")}return o("return null")}return nt}var st={},tr;function jr(){return tr||(tr=1,(function(a){var e=a,i=ye(),f=re();function s(t,o,r,n){var c=!1;if(o.resolvedType)if(o.resolvedType instanceof i){t("switch(d%s){",n);for(var l=o.resolvedType.values,d=Object.keys(l),p=0;p<d.length;++p)l[d[p]]===o.typeDefault&&!c&&(t("default:")('if(typeof(d%s)==="number"){m%s=d%s;break}',n,n,n),o.repeated||t("break"),c=!0),t("case%j:",d[p])("case %i:",l[d[p]])("m%s=%j",n,l[d[p]])("break");t("}")}else t("if(!util.isObject(d%s))",n)("throw TypeError(%j)",o.fullName+": object expected")("m%s=types[%i].fromObject(d%s,n+1)",n,r,n);else{var m=!1;switch(o.type){case"double":case"float":t("m%s=Number(d%s)",n,n);break;case"uint32":case"fixed32":t("m%s=d%s>>>0",n,n);break;case"int32":case"sint32":case"sfixed32":t("m%s=d%s|0",n,n);break;case"uint64":case"fixed64":m=!0;case"int64":case"sint64":case"sfixed64":t("if(util.Long)")("m%s=util.Long.fromValue(d%s,%j)",n,n,m)('else if(typeof d%s==="string")',n)("m%s=parseInt(d%s,10)",n,n)('else if(typeof d%s==="number")',n)("m%s=d%s",n,n)('else if(typeof d%s==="object")',n)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",n,n,n,m?"true":"");break;case"bytes":t('if(typeof d%s==="string")',n)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",n,n,n)("else if(d%s.length >= 0)",n)("m%s=d%s",n,n);break;case"string":t("m%s=String(d%s)",n,n);break;case"bool":t("m%s=Boolean(d%s)",n,n);break}}return t}e.fromObject=function(o){var r=o.fieldsArray,n=f.codegen(["d","n"],o.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!r.length)return n("return new this.ctor");n("if(!util.isObject(d))")("throw TypeError(%j)",o.fullName+": object expected")("if(n===undefined)n=0")("if(n>util.recursionLimit)")('throw Error("maximum nesting depth exceeded")'),n("var m=new this.ctor");for(var c=0;c<r.length;++c){var l=r[c].resolve(),d=f.safeProp(l.name);l.map?(n("if(d%s){",d)("if(!util.isObject(d%s))",d)("throw TypeError(%j)",l.fullName+": object expected")("m%s={}",d)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",d),n('if(ks[i]==="__proto__")')("util.makeProp(m%s,ks[i])",d),s(n,l,c,d+"[ks[i]]")("}")("}")):l.repeated?(n("if(d%s){",d)("if(!Array.isArray(d%s))",d)("throw TypeError(%j)",l.fullName+": array expected")("m%s=[]",d)("for(var i=0;i<d%s.length;++i){",d),s(n,l,c,d+"[i]")("}")("}")):(l.resolvedType instanceof i||n("if(d%s!=null){",d),s(n,l,c,d),l.resolvedType instanceof i||n("}"))}return n("return m")};function u(t,o,r,n){if(o.resolvedType)o.resolvedType instanceof i?t("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",n,r,n,n,r,n,n):t("d%s=types[%i].toObject(m%s,o,q+1)",n,r,n);else{var c=!1;switch(o.type){case"double":case"float":t("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",n,n,n,n);break;case"uint64":case"fixed64":c=!0;case"int64":case"sint64":case"sfixed64":t('if(typeof BigInt!=="undefined"&&o.longs===BigInt)')('d%s=typeof m%s==="number"?BigInt(m%s):util.Long.fromBits(m%s.low>>>0,m%s.high>>>0,%j).toBigInt()',n,n,n,n,n,c)('else if(typeof m%s==="number")',n)("d%s=o.longs===String?String(m%s):m%s",n,n,n)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",n,n,n,n,c?"true":"",n);break;case"bytes":t("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",n,n,n,n,n);break;default:t("d%s=m%s",n,n);break}}return t}e.toObject=function(o){var r=o.fieldsArray.slice().sort(f.compareFieldsById);if(!r.length)return f.codegen()("return {}");for(var n=f.codegen(["m","o","q"],o.name+"$toObject")("if(!o)")("o={}")("if(q===undefined)q=0")("if(q>util.recursionLimit)")('throw Error("max depth exceeded")')("var d={}"),c=[],l=[],d=[],p=0;p<r.length;++p)r[p].partOf||(r[p].resolve().repeated?c:r[p].map?l:d).push(r[p]);if(c.length){for(n("if(o.arrays||o.defaults){"),p=0;p<c.length;++p)n("d%s=[]",f.safeProp(c[p].name));n("}")}if(l.length){for(n("if(o.objects||o.defaults){"),p=0;p<l.length;++p)n("d%s={}",f.safeProp(l[p].name));n("}")}if(d.length){for(n("if(o.defaults){"),p=0;p<d.length;++p){var m=d[p],g=f.safeProp(m.name);if(m.resolvedType instanceof i)n("d%s=o.enums===String?%j:%j",g,m.resolvedType.valuesById[m.typeDefault],m.typeDefault);else if(m.long)n("if(util.Long){")("var n=new util.Long(%i,%i,%j)",m.typeDefault.low,m.typeDefault.high,m.typeDefault.unsigned)('d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():typeof BigInt!=="undefined"&&o.longs===BigInt?n.toBigInt():n',g)("}else")('d%s=o.longs===String?%j:typeof BigInt!=="undefined"&&o.longs===BigInt?BigInt(%j):%i',g,m.typeDefault.toString(),m.typeDefault.toString(),m.typeDefault.toNumber());else if(m.bytes){var I=Array.prototype.slice.call(m.typeDefault);n("if(o.bytes===String)d%s=%j",g,String.fromCharCode.apply(String,m.typeDefault))("else{")("d%s=%j",g,I)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)",g,g)("}")}else n("d%s=%j",g,m.typeDefault)}n("}")}var R=!1;for(p=0;p<r.length;++p){var m=r[p],y=o._fieldsArray.indexOf(m),g=f.safeProp(m.name);m.map?(R||(R=!0,n("var ks2")),n("if(m%s&&(ks2=Object.keys(m%s)).length){",g,g)("d%s={}",g)("for(var j=0;j<ks2.length;++j){"),n('if(ks2[j]==="__proto__")')("util.makeProp(d%s,ks2[j])",g),u(n,m,y,g+"[ks2[j]]")("}")):m.repeated?(n("if(m%s&&m%s.length){",g,g)("d%s=[]",g)("for(var j=0;j<m%s.length;++j){",g),u(n,m,y,g+"[j]")("}")):(n("if(m%s!=null&&Object.hasOwnProperty.call(m,%j)){",g,m.name),u(n,m,y,g),m.partOf&&n("if(o.oneofs)")("d%s=%j",f.safeProp(m.partOf.name),m.name)),n("}")}return n("return d")}})(st)),st}var St={};(function(a){var e=a,i=It,f=me();e[".google.protobuf.Any"]={fromObject:function(s,u){if(s&&s["@type"]){var t=s["@type"].substring(s["@type"].lastIndexOf("/")+1),o=this.lookup(t);if(o){var r=s["@type"].charAt(0)==="."?s["@type"].slice(1):s["@type"];return r.indexOf("/")===-1&&(r="/"+r),this.create({type_url:r,value:o.encode(o.fromObject(s,u===void 0?1:u+1)).finish()})}}return this.fromObject(s,u)},toObject:function(s,u,t){if(t===void 0&&(t=0),t>f.recursionLimit)throw Error("max depth exceeded");var o="type.googleapis.com/",r="",n="";if(u&&u.json&&s.type_url&&s.value){n=s.type_url.substring(s.type_url.lastIndexOf("/")+1),r=s.type_url.substring(0,s.type_url.lastIndexOf("/")+1);var c=this.lookup(n);c&&(s=c.decode(s.value,void 0,void 0,t+1))}if(!(s instanceof this.ctor)&&s instanceof i){var l=s.$type.toObject(s,u,t+1),d=s.$type.fullName[0]==="."?s.$type.fullName.slice(1):s.$type.fullName;return r===""&&(r=o),n=r+d,l["@type"]=n,l}return this.toObject(s,u,t)}}})(St);var ot,rr;function Ft(){if(rr)return ot;rr=1,ot=g;var a=$e();((g.prototype=Object.create(a.prototype)).constructor=g).className="Type";var e=ye(),i=Me(),f=Te(),s=Rt(),u=kt(),t=It,o=xt,r=vt,n=re(),c=$r(),l=Pr(),d=qr(),p=jr(),m=St;function g(R,y){R=R.replace(/\W/g,""),a.call(this,R,y),this.fields={},this.oneofs=void 0,this.extensions=void 0,this.reserved=void 0,this.group=void 0,this._fieldsById=null,this._fieldsArray=null,this._oneofsArray=null,this._ctor=null}Object.defineProperties(g.prototype,{fieldsById:{get:function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var R=Object.keys(this.fields),y=0;y<R.length;++y){var E=this.fields[R[y]],v=E.id;if(this._fieldsById[v])throw Error("duplicate id "+v+" in "+this);this._fieldsById[v]=E}return this._fieldsById}},fieldsArray:{get:function(){return this._fieldsArray||(this._fieldsArray=n.toArray(this.fields))}},oneofsArray:{get:function(){return this._oneofsArray||(this._oneofsArray=n.toArray(this.oneofs))}},ctor:{get:function(){return this._ctor||(this.ctor=g.generateConstructor(this)())},set:function(R){var y=R.prototype;y instanceof t||((R.prototype=new t).constructor=R,n.merge(R.prototype,y)),R.$type=R.prototype.$type=this,n.merge(R,t,!0),this._ctor=R;for(var E=0;E<this.fieldsArray.length;++E)this._fieldsArray[E].resolve();var v={};for(E=0;E<this.oneofsArray.length;++E)v[this._oneofsArray[E].resolve().name]={get:n.oneOfGetter(this._oneofsArray[E].oneof),set:n.oneOfSetter(this._oneofsArray[E].oneof)};E&&Object.defineProperties(R.prototype,v)}}}),g.generateConstructor=function(y){for(var E=n.codegen(["p"],y.name),v=0,N;v<y.fieldsArray.length;++v)(N=y._fieldsArray[v]).map?E("this%s={}",n.safeProp(N.name)):N.repeated&&E("this%s=[]",n.safeProp(N.name));return E('if(p)for(var ks=Object.keys(p),i=0;i<ks.length;++i)if(p[ks[i]]!=null&&ks[i]!=="__proto__")')("this[ks[i]]=p[ks[i]]")};function I(R){return R._fieldsById=R._fieldsArray=R._oneofsArray=null,delete R.encode,delete R.decode,delete R.verify,R}return g.fromJSON=function(y,E,v){if(v===void 0&&(v=0),v>n.nestingLimit)throw Error("max depth exceeded");var N=new g(y,E.options);N.extensions=E.extensions,N.reserved=E.reserved;for(var k=Object.keys(E.fields),L=0;L<k.length;++L)N.add((typeof E.fields[k[L]].keyType<"u"?s.fromJSON:f.fromJSON)(k[L],E.fields[k[L]]));if(E.oneofs)for(k=Object.keys(E.oneofs),L=0;L<k.length;++L)N.add(i.fromJSON(k[L],E.oneofs[k[L]]));if(E.nested)for(k=Object.keys(E.nested),L=0;L<k.length;++L){var z=E.nested[k[L]];N.add((z.id!==void 0?f.fromJSON:z.fields!==void 0?g.fromJSON:z.values!==void 0?e.fromJSON:z.methods!==void 0?u.fromJSON:a.fromJSON)(k[L],z,v+1))}return E.extensions&&E.extensions.length&&(N.extensions=E.extensions),E.reserved&&E.reserved.length&&(N.reserved=E.reserved),E.group&&(N.group=!0),E.comment&&(N.comment=E.comment),E.edition&&(N._edition=E.edition),N._defaultEdition="proto3",N},g.prototype.toJSON=function(y){var E=a.prototype.toJSON.call(this,y),v=y?!!y.keepComments:!1;return n.toObject(["edition",this._editionToJSON(),"options",E&&E.options||void 0,"oneofs",a.arrayToJSON(this.oneofsArray,y),"fields",a.arrayToJSON(this.fieldsArray.filter(function(N){return!N.declaringField}),y)||{},"extensions",this.extensions&&this.extensions.length?this.extensions:void 0,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"group",this.group||void 0,"nested",E&&E.nested||void 0,"comment",v?this.comment:void 0])},g.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;a.prototype.resolveAll.call(this);var y=this.oneofsArray;for(v=0;v<y.length;)y[v++].resolve();for(var E=this.fieldsArray,v=0;v<E.length;)E[v++].resolve();return this},g.prototype._resolveFeaturesRecursive=function(y){return this._needsRecursiveFeatureResolution?(y=this._edition||y,a.prototype._resolveFeaturesRecursive.call(this,y),this.oneofsArray.forEach(E=>{E._resolveFeatures(y)}),this.fieldsArray.forEach(E=>{E._resolveFeatures(y)}),this):this},g.prototype.get=function(y){return Object.prototype.hasOwnProperty.call(this.fields,y)?this.fields[y]:this.oneofs&&Object.prototype.hasOwnProperty.call(this.oneofs,y)?this.oneofs[y]:this.nested&&Object.prototype.hasOwnProperty.call(this.nested,y)?this.nested[y]:null},g.prototype.add=function(y){if(this.get(y.name))throw Error("duplicate name '"+y.name+"' in "+this);if(y instanceof f&&y.extend===void 0){if(this._fieldsById?this._fieldsById[y.id]:this.fieldsById[y.id])throw Error("duplicate id "+y.id+" in "+this);if(this.isReservedId(y.id))throw Error("id "+y.id+" is reserved in "+this);if(this.isReservedName(y.name)||y.name.charAt(0)==="$")throw Error("name '"+y.name+"' is reserved in "+this);return y.name==="__proto__"?this:(y.parent&&y.parent.remove(y),this.fields[y.name]=y,y.message=this,y.onAdd(this),I(this))}if(y instanceof i){if(y.name.charAt(0)==="$")throw Error("name '"+y.name+"' is reserved in "+this);return y.name==="__proto__"?this:(this.oneofs||(this.oneofs={}),this.oneofs[y.name]=y,y.onAdd(this),I(this))}return a.prototype.add.call(this,y)},g.prototype.remove=function(y){if(y instanceof f&&y.extend===void 0){if(!this.fields||this.fields[y.name]!==y)throw Error(y+" is not a member of "+this);return delete this.fields[y.name],y.parent=null,y.onRemove(this),I(this)}if(y instanceof i){if(!this.oneofs||this.oneofs[y.name]!==y)throw Error(y+" is not a member of "+this);return delete this.oneofs[y.name],y.parent=null,y.onRemove(this),I(this)}return a.prototype.remove.call(this,y)},g.prototype.isReservedId=function(y){return a.isReservedId(this.reserved,y)},g.prototype.isReservedName=function(y){return a.isReservedName(this.reserved,y)},g.prototype.create=function(y){return new this.ctor(y)},g.prototype.setup=function(){for(var y=this.fullName,E=[],v=0;v<this.fieldsArray.length;++v)E.push(this._fieldsArray[v].resolve().resolvedType);this.encode=c(this)({Writer:r,types:E,util:n}),this.decode=l(this)({Reader:o,types:E,util:n}),this.verify=d(this)({types:E,util:n}),this.fromObject=p.fromObject(this)({types:E,util:n}),this.toObject=p.toObject(this)({types:E,util:n});var N=m[y];if(N){var k=Object.create(this);k.fromObject=this.fromObject,this.fromObject=N.fromObject.bind(k),k.toObject=this.toObject,this.toObject=N.toObject.bind(k)}return this},g.prototype.encode=function(y,E){return this.setup().encode.apply(this,arguments)},g.prototype.encodeDelimited=function(y,E){return this.encode(y,E&&E.len?E.fork():E).ldelim()},g.prototype.decode=function(y,E,v,N){return this.setup().decode(y,E,v,N)},g.prototype.decodeDelimited=function(y){return y instanceof o||(y=o.create(y)),this.decode(y,y.uint32())},g.prototype.verify=function(y,E){return this.setup().verify(y,E)},g.prototype.fromObject=function(y,E){return this.setup().fromObject(y,E)},g.prototype.toObject=function(y,E){return this.setup().toObject.apply(this,arguments)},g.d=function(y){return function(v){n.decorateType(v,y)}},ot}var at,ir;function Lt(){if(ir)return at;ir=1,at=r;var a=$e();((r.prototype=Object.create(a.prototype)).constructor=r).className="Root";var e=Te(),i=ye(),f=Me(),s=re(),u,t,o;function r(d){a.call(this,"",d),this.deferred=[],this.files=[],this._edition="proto2",this._fullyQualifiedObjects={}}r.fromJSON=function(p,m,g){return g=s.checkDepth(g),m||(m=new r),p.options&&m.setOptions(p.options),m.addJSON(p.nested,g).resolveAll()},r.prototype.resolvePath=s.path.resolve,r.prototype.fetch=s.fetch;function n(){}r.prototype.load=function d(p,m,g){typeof m=="function"&&(g=m,m=void 0);var I=this;if(!g)return s.asPromise(d,I,p,m);var R=g===n;function y(M,q){if(g){if(R)throw M;q&&q.resolveAll();var $=g;g=null,$(M,q)}}function E(M){var q=M.lastIndexOf("google/protobuf/");if(q>-1){var $=M.substring(q);if($ in o)return $}return null}function v(M,q,$){$===void 0&&($=0);try{if($>s.recursionLimit)throw Error("max depth exceeded");if(s.isString(q)&&q.charAt(0)==="{"&&(q=JSON.parse(q)),!s.isString(q))I.setOptions(q.options).addJSON(q.nested);else{t.filename=M;var B=t(q,I,m),O,_=0;if(B.imports)for(;_<B.imports.length;++_)(O=E(B.imports[_])||I.resolvePath(M,B.imports[_]))&&N(O,!1,$+1);if(B.weakImports)for(_=0;_<B.weakImports.length;++_)(O=E(B.weakImports[_])||I.resolvePath(M,B.weakImports[_]))&&N(O,!0,$+1)}}catch(h){y(h)}!R&&!k&&y(null,I)}function N(M,q,$){if($===void 0&&($=0),M=E(M)||M,!(I.files.indexOf(M)>-1)){if(I.files.push(M),M in o){R?v(M,o[M],$):(++k,setTimeout(function(){--k,v(M,o[M],$)}));return}if(R){var B;try{B=s.fs.readFileSync(M).toString("utf8")}catch(O){q||y(O);return}v(M,B,$)}else++k,I.fetch(M,function(O,_){if(--k,!!g){if(O){q?k||y(null,I):y(O);return}v(M,_,$)}})}}var k=0;s.isString(p)&&(p=[p]);for(var L=0,z;L<p.length;++L)(z=I.resolvePath("",p[L]))&&N(z);return R?(I.resolveAll(),I):(k||y(null,I),I)},r.prototype.loadSync=function(p,m){if(!s.isNode)throw Error("not supported");return this.load(p,m,n)},r.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;if(this.deferred.length)throw Error("unresolvable extensions: "+this.deferred.map(function(p){return"'extend "+p.extend+"' in "+p.parent.fullName}).join(", "));return a.prototype.resolveAll.call(this)};var c=/^[A-Z]/;function l(d,p){var m=p.parent.lookup(p.extend);if(m){var g=new e(p.fullName,p.id,p.type,p.rule,void 0,p.options);return m.get(g.name)||(g.declaringField=p,p.extensionField=g,m.add(g)),!0}return!1}return r.prototype._handleAdd=function(p){if(p instanceof e)p.extend!==void 0&&!p.extensionField&&(l(this,p)||this.deferred.push(p));else if(p instanceof i)c.test(p.name)&&(p.parent[p.name]=p.values);else if(!(p instanceof f)){if(p instanceof u)for(var m=0;m<this.deferred.length;)l(this,this.deferred[m])?this.deferred.splice(m,1):++m;for(var g=0;g<p.nestedArray.length;++g)this._handleAdd(p._nestedArray[g]);c.test(p.name)&&(p.parent[p.name]=p)}(p instanceof u||p instanceof i||p instanceof e)&&(this._fullyQualifiedObjects[p.fullName]=p)},r.prototype._handleRemove=function(p){if(p instanceof e){if(p.extend!==void 0)if(p.extensionField)p.extensionField.parent.remove(p.extensionField),p.extensionField=null;else{var m=this.deferred.indexOf(p);m>-1&&this.deferred.splice(m,1)}}else if(p instanceof i)c.test(p.name)&&delete p.parent[p.name];else if(p instanceof a){for(var g=0;g<p.nestedArray.length;++g)this._handleRemove(p._nestedArray[g]);c.test(p.name)&&delete p.parent[p.name]}delete this._fullyQualifiedObjects[p.fullName]},r._configure=function(d,p,m){u=d,t=p,o=m},at}var nr;function re(){if(nr)return Xe.exports;nr=1;var a=Xe.exports=me(),e=Dr,i,f;a.codegen=di,a.fetch=yi,a.path=Cr,a.patterns=Br;var s=a.patterns.reservedRe;a.fs=_i,a.checkDepth=function(r){if(r===void 0&&(r=0),r>a.recursionLimit)throw Error("max depth exceeded");return r},a.toArray=function(r){if(r){for(var n=Object.keys(r),c=new Array(n.length),l=0;l<n.length;)c[l]=r[n[l++]];return c}return[]},a.toObject=function(r){for(var n={},c=0;c<r.length;){var l=r[c++],d=r[c++];d!==void 0&&(n[l]=d)}return n},a.isReserved=function(r){return s.test(r)},a.safeProp=function(r){return!/^[$\w_]+$/.test(r)||s.test(r)?"["+JSON.stringify(r)+"]":"."+r},a.ucFirst=function(r){return r.charAt(0).toUpperCase()+r.substring(1)};var u=/_([a-z])/g;a.camelCase=function(r){return r.substring(0,1)+r.substring(1).replace(u,function(n,c){return c.toUpperCase()})},a.compareFieldsById=function(r,n){return r.id-n.id},a.decorateType=function(r,n){if(r.$type)return n&&r.$type.name!==n&&(a.decorateRoot.remove(r.$type),r.$type.name=n,a.decorateRoot.add(r.$type)),r.$type;i||(i=Ft());var c=new i(n||r.name);return a.decorateRoot.add(c),c.ctor=r,Object.defineProperty(r,"$type",{value:c,enumerable:!1}),Object.defineProperty(r.prototype,"$type",{value:c,enumerable:!1}),c};var t=0;return a.decorateEnum=function(r){if(r.$type)return r.$type;f||(f=ye());var n=new f("Enum"+t++,r);return a.decorateRoot.add(n),Object.defineProperty(r,"$type",{value:n,enumerable:!1}),n},a.setProperty=function(r,n,c,l){function d(p,m,g){var I=m.shift();if(a.isUnsafeProperty(I))return p;if(m.length>0)p[I]=d(p[I]||{},m,g);else{var R=p[I];if(R&&l)return p;R&&(g=[].concat(R).concat(g)),p[I]=g}return p}if(typeof r!="object")throw TypeError("dst must be an object");if(!n)throw TypeError("path must be specified");if(n=n.split("."),n.length>a.recursionLimit)throw Error("max depth exceeded");return d(r,n,c)},Object.defineProperty(a,"decorateRoot",{get:function(){return e.decorated||(e.decorated=new(Lt()))}}),Xe.exports}var sr;function Le(){return sr||(sr=1,(function(a){var e=a,i=re(),f=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];function s(u,t){var o=0,r=Object.create(null);for(t|=0;o<u.length;)r[f[o+t]]=u[o++];return r}e.basic=s([1,5,0,0,0,5,5,0,0,0,1,1,0,2,2]),e.defaults=s([0,0,0,0,0,0,0,0,0,0,0,0,!1,"",i.emptyArray,null]),e.long=s([0,0,0,1,1],7),e.mapKey=s([0,0,0,5,5,0,0,0,1,1,0,2],2),e.packed=s([1,5,0,0,0,5,5,0,0,0,1,1,0])})(Ye)),Ye}var ut,or;function Te(){if(or)return ut;or=1,ut=t;var a=Re();((t.prototype=Object.create(a.prototype)).constructor=t).className="Field";var e=ye(),i=Le(),f=re(),s,u=/^required|optional|repeated$/;t.fromJSON=function(r,n){var c=new t(r,n.id,n.type,n.rule,n.extend,n.options,n.comment);return n.edition&&(c._edition=n.edition),c._defaultEdition="proto3",c};function t(o,r,n,c,l,d,p){if(f.isObject(c)?(p=l,d=c,c=l=void 0):f.isObject(l)&&(p=d,d=l,l=void 0),a.call(this,o,d),!f.isInteger(r)||r<0)throw TypeError("id must be a non-negative integer");if(!f.isString(n))throw TypeError("type must be a string");if(c!==void 0&&!u.test(c=c.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(l!==void 0&&!f.isString(l))throw TypeError("extend must be a string");c==="proto3_optional"&&(c="optional"),this.rule=c&&c!=="optional"?c:void 0,this.type=n,this.id=r,this.extend=l||void 0,this.repeated=c==="repeated",this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=f.Long?i.long[n]!==void 0:!1,this.bytes=n==="bytes",this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=p}return Object.defineProperty(t.prototype,"required",{get:function(){return this._features.field_presence==="LEGACY_REQUIRED"}}),Object.defineProperty(t.prototype,"optional",{get:function(){return!this.required}}),Object.defineProperty(t.prototype,"delimited",{get:function(){return this.resolvedType instanceof s&&this._features.message_encoding==="DELIMITED"}}),Object.defineProperty(t.prototype,"packed",{get:function(){return this._features.repeated_field_encoding==="PACKED"}}),Object.defineProperty(t.prototype,"hasPresence",{get:function(){return this.repeated||this.map?!1:this.partOf||this.declaringField||this.extensionField||this._features.field_presence!=="IMPLICIT"}}),t.prototype.setOption=function(r,n,c){return a.prototype.setOption.call(this,r,n,c)},t.prototype.toJSON=function(r){var n=r?!!r.keepComments:!1;return f.toObject(["edition",this._editionToJSON(),"rule",this.rule!=="optional"&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",n?this.comment:void 0])},t.prototype.resolve=function(){if(this.resolved)return this;if((this.typeDefault=i.defaults[this.type])===void 0?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof s?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&this.options.default!=null&&(this.typeDefault=this.options.default,this.resolvedType instanceof e&&typeof this.typeDefault=="string"&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(this.options.packed!==void 0&&this.resolvedType&&!(this.resolvedType instanceof e)&&delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=f.Long.fromNumber(this.typeDefault,this.type==="uint64"||this.type==="fixed64"),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&typeof this.typeDefault=="string"){var r;f.base64.test(this.typeDefault)?f.base64.decode(this.typeDefault,r=f.newBuffer(f.base64.length(this.typeDefault)),0):f.utf8.write(this.typeDefault,r=f.newBuffer(f.utf8.length(this.typeDefault)),0),this.typeDefault=r}return this.map?this.defaultValue=f.emptyObject:this.repeated?this.defaultValue=f.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof s&&(this.parent.ctor.prototype[this.name]=this.defaultValue),a.prototype.resolve.call(this)},t.prototype._inferLegacyProtoFeatures=function(r){if(r!=="proto2"&&r!=="proto3")return{};var n={};if(this.rule==="required"&&(n.field_presence="LEGACY_REQUIRED"),this.parent&&i.defaults[this.type]===void 0){var c=this.parent.get(this.type.split(".").pop());c&&c instanceof s&&c.group&&(n.message_encoding="DELIMITED")}return this.getOption("packed")===!0?n.repeated_field_encoding="PACKED":this.getOption("packed")===!1&&(n.repeated_field_encoding="EXPANDED"),n},t.prototype._resolveFeatures=function(r){return a.prototype._resolveFeatures.call(this,this._edition||r)},t.d=function(r,n,c,l){return typeof n=="function"?n=f.decorateType(n).name:n&&typeof n=="object"&&(n=f.decorateEnum(n).name),function(p,m){f.decorateType(p.constructor).add(new t(m,r,n,c,{default:l}))}},t._configure=function(r){s=r},ut}var ft,ar;function Me(){if(ar)return ft;ar=1,ft=f;var a=Re();((f.prototype=Object.create(a.prototype)).constructor=f).className="OneOf";var e=Te(),i=re();function f(u,t,o,r){if(Array.isArray(t)||(o=t,t=void 0),a.call(this,u,o),!(t===void 0||Array.isArray(t)))throw TypeError("fieldNames must be an Array");this.oneof=t||[],this.fieldsArray=[],this.comment=r}f.fromJSON=function(t,o){return new f(t,o.oneof,o.options,o.comment)},f.prototype.toJSON=function(t){var o=t?!!t.keepComments:!1;return i.toObject(["options",this.options,"oneof",this.oneof,"comment",o?this.comment:void 0])};function s(u){if(u.parent)for(var t=0;t<u.fieldsArray.length;++t)u.fieldsArray[t].parent||u.parent.add(u.fieldsArray[t])}return f.prototype.add=function(t){if(!(t instanceof e))throw TypeError("field must be a Field");return t.parent&&t.parent!==this.parent&&t.parent.remove(t),this.oneof.push(t.name),this.fieldsArray.push(t),t.partOf=this,s(this),this},f.prototype.remove=function(t){if(!(t instanceof e))throw TypeError("field must be a Field");var o=this.fieldsArray.indexOf(t);if(o<0)throw Error(t+" is not a member of "+this);return this.fieldsArray.splice(o,1),o=this.oneof.indexOf(t.name),o>-1&&this.oneof.splice(o,1),t.partOf=null,this},f.prototype.onAdd=function(t){a.prototype.onAdd.call(this,t);for(var o=this,r=0;r<this.oneof.length;++r){var n=t.get(this.oneof[r]);n&&!n.partOf&&(n.partOf=o,o.fieldsArray.push(n))}s(this)},f.prototype.onRemove=function(t){for(var o=0,r;o<this.fieldsArray.length;++o)(r=this.fieldsArray[o]).parent&&r.parent.remove(r);a.prototype.onRemove.call(this,t)},Object.defineProperty(f.prototype,"isProto3Optional",{get:function(){if(this.fieldsArray==null||this.fieldsArray.length!==1)return!1;var u=this.fieldsArray[0];return u.options!=null&&u.options.proto3_optional===!0}}),f.d=function(){for(var t=new Array(arguments.length),o=0;o<arguments.length;)t[o]=arguments[o++];return function(n,c){i.decorateType(n.constructor).add(new f(c,t)),Object.defineProperty(n,c,{get:i.oneOfGetter(t),set:i.oneOfSetter(t)})}},ft}var lt,ur;function Re(){if(ur)return lt;ur=1,lt=t,t.className="ReflectionObject";const a=Me();var e=re(),i,f={enum_type:"OPEN",field_presence:"EXPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY"},s={enum_type:"CLOSED",field_presence:"EXPLICIT",json_format:"LEGACY_BEST_EFFORT",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"EXPANDED",utf8_validation:"NONE"},u={enum_type:"OPEN",field_presence:"IMPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY"};function t(o,r){if(!e.isString(o))throw TypeError("name must be a string");if(r&&!e.isObject(r))throw TypeError("options must be an object");this.options=r,this.parsedOptions=null,this.name=o,this._edition=null,this._defaultEdition="proto2",this._features={},this._featuresResolved=!1,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}return Object.defineProperties(t.prototype,{root:{get:function(){for(var o=this;o.parent!==null;)o=o.parent;return o}},fullName:{get:function(){for(var o=[this.name],r=this.parent;r;)o.unshift(r.name),r=r.parent;return o.join(".")}}}),t.prototype.toJSON=function(){throw Error()},t.prototype.onAdd=function(r){this.parent&&this.parent!==r&&this.parent.remove(this),this.parent=r,this.resolved=!1;var n=r.root;n instanceof i&&n._handleAdd(this)},t.prototype.onRemove=function(r){var n=r.root;n instanceof i&&n._handleRemove(this),this.parent=null,this.resolved=!1},t.prototype.resolve=function(){return this.resolved?this:(this.root instanceof i&&(this.resolved=!0),this)},t.prototype._resolveFeaturesRecursive=function(r){return this._resolveFeatures(this._edition||r)},t.prototype._resolveFeatures=function(r){if(!this._featuresResolved){var n={};if(!r)throw new Error("Unknown edition for "+this.fullName);var c=e.merge({},this.options&&this.options.features,this._inferLegacyProtoFeatures(r));if(this._edition){if(r==="proto2")n=Object.assign({},s);else if(r==="proto3")n=Object.assign({},u);else if(r==="2023")n=Object.assign({},f);else throw new Error("Unknown edition: "+r);this._features=e.merge(n,c),this._featuresResolved=!0;return}if(this.partOf instanceof a){var l=e.merge({},this.partOf._features);this._features=e.merge(l,c)}else if(!this.declaringField)if(this.parent){var d=e.merge({},this.parent._features);this._features=e.merge(d,c)}else throw new Error("Unable to find a parent for "+this.fullName);this.extensionField&&(this.extensionField._features=this._features),this._featuresResolved=!0}},t.prototype._inferLegacyProtoFeatures=function(){return{}},t.prototype.getOption=function(r){if(this.options)return this.options[r]},t.prototype.setOption=function(r,n,c){return r==="__proto__"?this:(this.options||(this.options={}),/^features\./.test(r)?e.setProperty(this.options,r,n,c):(!c||this.options[r]===void 0)&&(this.getOption(r)!==n&&(this.resolved=!1),this.options[r]=n),this)},t.prototype.setParsedOption=function(r,n,c){if(r==="__proto__")return this;this.parsedOptions||(this.parsedOptions=[]);var l=this.parsedOptions;if(c){var d=l.find(function(g){return Object.prototype.hasOwnProperty.call(g,r)});if(d){var p=d[r];e.setProperty(p,c,n)}else d={},d[r]=e.setProperty({},c,n),l.push(d)}else{var m={};m[r]=n,l.push(m)}return this},t.prototype.setOptions=function(r,n){if(r)for(var c=Object.keys(r),l=0;l<c.length;++l)this.setOption(c[l],r[c[l]],n);return this},t.prototype.toString=function(){var r=this.constructor.className,n=this.fullName;return n.length?r+" "+n:r},t.prototype._editionToJSON=function(){if(!(!this._edition||this._edition==="proto3"))return this._edition},t._configure=function(o){i=o},lt}var ct,fr;function ye(){if(fr)return ct;fr=1,ct=f;var a=Re();((f.prototype=Object.create(a.prototype)).constructor=f).className="Enum";var e=$e(),i=re();function f(s,u,t,o,r,n){if(a.call(this,s,t),u&&typeof u!="object")throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=o,this.comments=r||{},this.valuesOptions=n,this._valuesFeatures={},this.reserved=void 0,u)for(var c=Object.keys(u),l=0;l<c.length;++l)c[l]!=="__proto__"&&typeof u[c[l]]=="number"&&(this.valuesById[this.values[c[l]]=u[c[l]]]=c[l])}return f.prototype._resolveFeatures=function(u){return u=this._edition||u,a.prototype._resolveFeatures.call(this,u),Object.keys(this.values).forEach(t=>{var o=i.merge({},this._features);this._valuesFeatures[t]=i.merge(o,this.valuesOptions&&this.valuesOptions[t]&&this.valuesOptions[t].features||{})}),this},f.fromJSON=function(u,t){var o=new f(u,t.values,t.options,t.comment,t.comments);return o.reserved=t.reserved,t.edition&&(o._edition=t.edition),o._defaultEdition="proto3",o},f.prototype.toJSON=function(u){var t=u?!!u.keepComments:!1;return i.toObject(["edition",this._editionToJSON(),"options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",t?this.comment:void 0,"comments",t?this.comments:void 0])},f.prototype.add=function(u,t,o,r){if(!i.isString(u))throw TypeError("name must be a string");if(!i.isInteger(t))throw TypeError("id must be an integer");if(u==="__proto__")return this;if(this.values[u]!==void 0)throw Error("duplicate name '"+u+"' in "+this);if(this.isReservedId(t))throw Error("id "+t+" is reserved in "+this);if(this.isReservedName(u))throw Error("name '"+u+"' is reserved in "+this);if(this.valuesById[t]!==void 0){if(!(this.options&&this.options.allow_alias))throw Error("duplicate id "+t+" in "+this);this.values[u]=t}else this.valuesById[this.values[u]=t]=u;return r&&(this.valuesOptions===void 0&&(this.valuesOptions={}),this.valuesOptions[u]=r||null),this.comments[u]=o||null,this},f.prototype.remove=function(u){if(!i.isString(u))throw TypeError("name must be a string");var t=this.values[u];if(t==null)throw Error("name '"+u+"' does not exist in "+this);return delete this.valuesById[t],delete this.values[u],delete this.comments[u],this.valuesOptions&&delete this.valuesOptions[u],this},f.prototype.isReservedId=function(u){return e.isReservedId(this.reserved,u)},f.prototype.isReservedName=function(u){return e.isReservedName(this.reserved,u)},ct}var ht,lr;function $r(){if(lr)return ht;lr=1,ht=s;var a=ye(),e=Le(),i=re();function f(u,t,o,r){return t.delimited?u("types[%i].encode(%s,w.uint32(%i),q+1).uint32(%i)",o,r,(t.id<<3|3)>>>0,(t.id<<3|4)>>>0):u("types[%i].encode(%s,w.uint32(%i).fork(),q+1).ldelim()",o,r,(t.id<<3|2)>>>0)}function s(u){for(var t=i.codegen(["m","w","q"],u.name+"$encode")("if(!w)")("w=Writer.create()")("if(q===undefined)q=0")("if(q>util.recursionLimit)")('throw Error("max depth exceeded")'),o,r,n=u.fieldsArray.slice().sort(i.compareFieldsById),o=0;o<n.length;++o){var c=n[o].resolve(),l=u._fieldsArray.indexOf(c),d=c.resolvedType instanceof a?"int32":c.type,p=e.basic[d];r="m"+i.safeProp(c.name),c.map?(t("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",r,c.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){",r)("w.uint32(%i).fork().uint32(%i).%s(ks[i])",(c.id<<3|2)>>>0,8|e.mapKey[c.keyType],c.keyType),p===void 0?t("types[%i].encode(%s[ks[i]],w.uint32(18).fork(),q+1).ldelim().ldelim()",l,r):t(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|p,d,r),t("}")("}")):c.repeated?(t("if(%s!=null&&%s.length){",r,r),c.packed&&e.packed[d]!==void 0?t("w.uint32(%i).fork()",(c.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",r)("w.%s(%s[i])",d,r)("w.ldelim()"):(t("for(var i=0;i<%s.length;++i)",r),p===void 0?f(t,c,l,r+"[i]"):t("w.uint32(%i).%s(%s[i])",(c.id<<3|p)>>>0,d,r)),t("}")):(c.optional&&t("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",r,c.name),p===void 0?f(t,c,l,r):t("w.uint32(%i).%s(%s)",(c.id<<3|p)>>>0,d,r))}return t("return w")}return ht}var P=Ar.exports=Tr;P.build="light";function bi(a,e,i){return typeof e=="function"?(i=e,e=new P.Root):e||(e=new P.Root),e.load(a,i)}P.load=bi;function Oi(a,e){return e||(e=new P.Root),e.loadSync(a)}P.loadSync=Oi;P.encoder=$r();P.decoder=Pr();P.verifier=qr();P.converter=jr();P.ReflectionObject=Re();P.Namespace=$e();P.Root=Lt();P.Enum=ye();P.Type=Ft();P.Field=Te();P.OneOf=Me();P.MapField=Rt();P.Service=kt();P.Method=Nt();P.Message=It;P.wrappers=St;P.types=Le();P.util=re();P.ReflectionObject._configure(P.Root);P.Namespace._configure(P.Type,P.Service,P.Enum);P.Root._configure(P.Type);P.Field._configure(P.Type);var xi=Ar.exports,Ur=Jr,dt=/[\s{}=;:[\],'"()<>]/g,Ei=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,Ai=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,Ti=/^ *[*/]+ */,Ri=/^\s*\*?\/*/,Ni=/\n/g,ki=/\s/,Ii=/\\(.?)/g,Si={0:"\0",r:"\r",n:`
|
|
23
|
+
`,t:" "};function Vr(a){return a.replace(Ii,function(e,i){switch(i){case"\\":case"":return i;default:return Si[i]||""}})}Jr.unescape=Vr;function Jr(a,e){a=a.toString();var i=0,f=a.length,s=1,u=0,t={},o=[],r=null;function n(v){return Error("illegal "+v+" (line "+s+")")}function c(){var v=r==="'"?Ai:Ei;v.lastIndex=i-1;var N=v.exec(a);if(!N)throw n("string");return i=v.lastIndex,I(r),r=null,Vr(N[1])}function l(v){return a.charAt(v)}function d(v,N,k){var L={type:a.charAt(v++),lineEmpty:!1,leading:k},z;e?z=2:z=3;var M=v-z,q;do if(--M<0||(q=a.charAt(M))===`
|
|
24
|
+
`){L.lineEmpty=!0;break}while(q===" "||q===" ");for(var $=a.substring(v,N).split(Ni),B=0;B<$.length;++B)$[B]=$[B].replace(e?Ri:Ti,"").trim();L.text=$.join(`
|
|
25
|
+
`).trim(),t[s]=L,u=s}function p(v){var N=m(v),k=a.substring(v,N),L=/^\s*\/\//.test(k);return L}function m(v){for(var N=v;N<f&&l(N)!==`
|
|
26
|
+
`;)N++;return N}function g(){if(o.length>0)return o.shift();if(r)return c();var v,N,k,L,z,M=i===0;do{if(i===f)return null;for(v=!1;ki.test(k=l(i));)if(k===`
|
|
27
|
+
`&&(M=!0,++s),++i===f)return null;if(l(i)==="/"){if(++i===f)throw n("comment");if(l(i)==="/")if(e){if(L=i,z=!1,p(i-1)){z=!0;do if(i=m(i),i===f||(i++,!M))break;while(p(i))}else i=Math.min(f,m(i)+1);z&&(d(L,i,M),M=!0),s++,v=!0}else{for(z=l(L=i+1)==="/";l(++i)!==`
|
|
28
|
+
`;)if(i===f)return null;++i,z&&(d(L,i-1,M),M=!0),++s,v=!0}else if((k=l(i))==="*"){L=i+1,z=e||l(L)==="*";do{if(k===`
|
|
29
|
+
`&&++s,++i===f)throw n("comment");N=k,k=l(i)}while(N!=="*"||k!=="/");++i,z&&(d(L,i-2,M),M=!0),v=!0}else return"/"}}while(v);var q=i;dt.lastIndex=0;var $=dt.test(l(q++));if(!$)for(;q<f&&!dt.test(l(q));)++q;var B=a.substring(i,i=q);return(B==='"'||B==="'")&&(r=B),B}function I(v){o.push(v)}function R(){if(!o.length){var v=g();if(v===null)return null;I(v)}return o[0]}function y(v,N){var k=R(),L=k===v;if(L)return g(),!0;if(!N)throw n("token '"+k+"', '"+v+"' expected");return!1}function E(v){var N=null,k;return v===void 0?(k=t[s-1],delete t[s-1],k&&(e||k.type==="*"||k.lineEmpty)&&(N=k.leading?k.text:null)):(u<v&&R(),k=t[v],delete t[v],k&&!k.lineEmpty&&(e||k.type==="/")&&(N=k.leading?null:k.text)),N}return Object.defineProperty({next:g,peek:R,push:I,skip:y,cmnt:E},"line",{get:function(){return s}})}var Fi=we;we.filename=null;we.defaults={keepCase:!1};var Li=Ur,cr=Lt(),hr=Ft(),dr=Te(),Mi=Rt(),pr=Me(),Di=ye(),Ci=kt(),Bi=Nt(),Pi=Re(),qi=Le(),_e=re(),ji=/^[1-9][0-9]*$/,$i=/^-?[1-9][0-9]*$/,Ui=/^0[x][0-9a-fA-F]+$/,Vi=/^-?0[x][0-9a-fA-F]+$/,Ji=/^0[0-7]+$/,zi=/^-?0[0-7]+$/,Wi=_e.patterns.numberRe,he=/^[a-zA-Z_][a-zA-Z_0-9]*$/,de=_e.patterns.typeRefRe;function we(a,e,i){e instanceof cr||(i=e,e=new cr),i||(i=we.defaults);var f=i.preferTrailingComment||!1,s=Li(a,i.alternateCommentMode||!1),u=s.next,t=s.push,o=s.peek,r=s.skip,n=s.cmnt,c=!0,l,d,p,m="proto2",g=e,I=[],R={},y=i.keepCase?function(b){return b}:_e.camelCase;function E(){I.forEach(b=>{b._edition=m,Object.keys(R).forEach(w=>{b.getOption(w)===void 0&&b.setOption(w,R[w],!0)})})}function v(b,w,x){var A=we.filename;return x||(we.filename=null),Error("illegal "+(w||"token")+" '"+b+"' ("+(A?A+", ":"")+"line "+s.line+")")}function N(){var b=[],w;do{if((w=u())!=='"'&&w!=="'")throw v(w);b.push(u()),r(w),w=o()}while(w==='"'||w==="'");return b.join("")}function k(b){var w=u();switch(w){case"'":case'"':return t(w),N();case"true":case"TRUE":return!0;case"false":case"FALSE":return!1}try{return z(w,!0)}catch{if(de.test(w))return w;throw v(w,"value")}}function L(b,w){var x,A;do if(w&&((x=o())==='"'||x==="'")){var F=N();if(b.push(F),m>=2023)throw v(F,"id")}else try{b.push([A=M(u()),r("to",!0)?M(u()):A])}catch(C){if(w&&de.test(x)&&m>=2023)b.push(x);else throw C}while(r(",",!0));var S={options:void 0};S.setOption=function(C,X){this.options===void 0&&(this.options={}),this.options[C]=X},h(S,function(X){if(X==="option")U(S,X),r(";");else throw v(X)},function(){K(S)})}function z(b,w){var x=1;switch(b.charAt(0)==="-"&&(x=-1,b=b.substring(1)),b){case"inf":case"INF":case"Inf":return x*(1/0);case"nan":case"NAN":case"Nan":case"NaN":return NaN;case"0":return 0}if(ji.test(b))return x*parseInt(b,10);if(Ui.test(b))return x*parseInt(b,16);if(Ji.test(b))return x*parseInt(b,8);if(Wi.test(b))return x*parseFloat(b);throw v(b,"number",w)}function M(b,w){switch(b){case"max":case"MAX":case"Max":return 536870911;case"0":return 0}if(!w&&b.charAt(0)==="-")throw v(b,"id");if($i.test(b))return parseInt(b,10);if(Vi.test(b))return parseInt(b,16);if(zi.test(b))return parseInt(b,8);throw v(b,"id")}function q(){if(l!==void 0)throw v("package");if(l=u(),!de.test(l))throw v(l,"name");g=g.define(l),r(";")}function $(){var b=o(),w;switch(b){case"weak":w=p||(p=[]),u();break;case"public":u();default:w=d||(d=[]);break}b=N(),r(";"),w.push(b)}function B(){if(r("="),m=N(),m<2023)throw v(m,"syntax");r(";")}function O(){if(r("="),m=N(),!["2023"].includes(m))throw v(m,"edition");r(";")}function _(b,w,x){switch(x===void 0&&(x=0),w){case"option":return U(b,w),r(";"),!0;case"message":return T(b,w,x+1),!0;case"enum":return Q(b,w),!0;case"service":return Ne(b,w,x+1),!0;case"extend":return Zr(b,w,x),!0}return!1}function h(b,w,x){var A=s.line;if(b&&(typeof b.comment!="string"&&(b.comment=n()),b.filename=we.filename),r("{",!0)){for(var F;(F=u())!=="}";)w(F);r(";",!0)}else x&&x(),r(";"),b&&(typeof b.comment!="string"||f)&&(b.comment=n(A)||b.comment)}function T(b,w,x){if(x===void 0&&(x=0),x>_e.nestingLimit)throw Error("max depth exceeded");if(!he.test(w=u()))throw v(w,"type name");var A=new hr(w);h(A,function(S){if(!_(A,S,x))switch(S){case"map":V(A);break;case"required":if(m!=="proto2")throw v(S);case"repeated":D(A,S,void 0,x+1);break;case"optional":if(m==="proto3")D(A,"proto3_optional",void 0,x+1);else{if(m!=="proto2")throw v(S);D(A,"optional",void 0,x+1)}break;case"oneof":G(A,S,x+1);break;case"extensions":L(A.extensions||(A.extensions=[]));break;case"reserved":L(A.reserved||(A.reserved=[]),!0);break;default:if(m==="proto2"||!de.test(S))throw v(S);t(S),D(A,"optional",void 0,x+1);break}}),b.add(A),b===g&&I.push(A)}function D(b,w,x,A){var F=u();if(F==="group"){J(b,w,A);return}for(;F.endsWith(".")||o().startsWith(".");)F+=u();if(!de.test(F))throw v(F,"type");var S=u();if(!he.test(S))throw v(S,"name");S=y(S),r("=");var C=new dr(S,M(u()),F,w,x);if(h(C,function(ne){if(ne==="option")U(C,ne),r(";");else throw v(ne)},function(){K(C)}),w==="proto3_optional"){var X=new pr("_"+S);C.setOption("proto3_optional",!0),X.add(C),b.add(X)}else b.add(C);b===g&&I.push(C)}function J(b,w,x){if(x===void 0&&(x=0),x>_e.nestingLimit)throw Error("max depth exceeded");if(m>=2023)throw v("group");var A=u();if(!he.test(A))throw v(A,"name");var F=_e.lcFirst(A);A===F&&(A=_e.ucFirst(A)),r("=");var S=M(u()),C=new hr(A);C.group=!0;var X=new dr(F,S,A,w);X.filename=we.filename,h(C,function(ne){switch(ne){case"option":U(C,ne),r(";");break;case"required":case"repeated":D(C,ne,void 0,x+1);break;case"optional":m==="proto3"?D(C,"proto3_optional",void 0,x+1):D(C,"optional",void 0,x+1);break;case"message":T(C,ne,x+1);break;case"enum":Q(C,ne);break;case"reserved":L(C.reserved||(C.reserved=[]),!0);break;default:throw v(ne)}}),b.add(C).add(X)}function V(b){r("<");var w=u();if(qi.mapKey[w]===void 0)throw v(w,"type");r(",");var x=u();if(!de.test(x))throw v(x,"type");r(">");var A=u();if(!he.test(A))throw v(A,"name");r("=");var F=new Mi(y(A),M(u()),w,x);h(F,function(C){if(C==="option")U(F,C),r(";");else throw v(C)},function(){K(F)}),b.add(F)}function G(b,w,x){if(!he.test(w=u()))throw v(w,"name");var A=new pr(y(w));h(A,function(S){S==="option"?(U(A,S),r(";")):(t(S),D(A,"optional",void 0,x))}),b.add(A)}function Q(b,w){if(!he.test(w=u()))throw v(w,"name");var x=new Di(w);h(x,function(F){switch(F){case"option":U(x,F),r(";");break;case"reserved":L(x.reserved||(x.reserved=[]),!0),x.reserved===void 0&&(x.reserved=[]);break;default:se(x,F)}}),b.add(x),b===g&&I.push(x)}function se(b,w){if(!he.test(w))throw v(w,"name");r("=");var x=M(u(),!0),A={options:void 0};A.getOption=function(F){return this.options[F]},A.setOption=function(F,S){Pi.prototype.setOption.call(A,F,S)},A.setParsedOption=function(){},h(A,function(S){if(S==="option")U(A,S),r(";");else throw v(S)},function(){K(A)}),b.add(w,x,A.comment,A.parsedOptions||A.options)}function U(b,w){var x,A,F=!0;for(w==="option"&&(w=u());w!=="=";){if(w===null)throw v(w,"end of input");if(w==="("){var S=u();r(")"),w="("+S+")"}if(F){if(F=!1,w.includes(".")&&!w.includes("(")){var C=w.split(".");x=C[0]+".",w=C[1];continue}x=w}else A=A?A+=w:w;w=u()}var X=A?x.concat(A):x,ce=W(b,X);A=A&&A[0]==="."?A.slice(1):A,x=x&&x[x.length-1]==="."?x.slice(0,-1):x,Y(b,x,ce,A)}function W(b,w,x){if(x===void 0&&(x=0),x>_e.recursionLimit)throw Error("max depth exceeded");if(r("{",!0)){for(var A={};!r("}",!0);){if(!he.test(ee=u()))throw v(ee,"name");if(ee===null)throw v(ee,"end of input");var F,S=ee;if(r(":",!0),o()==="{")F=W(b,w+"."+ee,x+1);else if(o()==="["){F=[];var C;if(r("[",!0)){do C=k(),F.push(C);while(r(",",!0));r("]"),typeof C<"u"&&ie(b,w+"."+ee,C)}}else F=k(),ie(b,w+"."+ee,F);var X=A[S];X&&(F=[].concat(X).concat(F)),S!=="__proto__"&&(A[S]=F),r(",",!0),r(";",!0)}return A}var ce=k();return ie(b,w,ce),ce}function ie(b,w,x){if(g===b&&/^features\./.test(w)){R[w]=x;return}b.setOption&&b.setOption(w,x)}function Y(b,w,x,A){b.setParsedOption&&b.setParsedOption(w,x,A)}function K(b){if(r("[",!0)){do U(b,"option");while(r(",",!0));r("]")}return b}function Ne(b,w,x){if(x===void 0&&(x=0),x>_e.recursionLimit)throw Error("max depth exceeded");if(!he.test(w=u()))throw v(w,"service name");var A=new Ci(w);h(A,function(S){if(!_(A,S,x))if(S==="rpc")Hr(A,S);else throw v(S)}),b.add(A),b===g&&I.push(A)}function Hr(b,w){var x=n(),A=w;if(!he.test(w=u()))throw v(w,"name");var F=w,S,C,X,ce;if(r("("),r("stream",!0)&&(C=!0),!de.test(w=u())||(S=w,r(")"),r("returns"),r("("),r("stream",!0)&&(ce=!0),!de.test(w=u())))throw v(w);X=w,r(")");var ne=new Bi(F,A,S,X,C,ce);ne.comment=x,h(ne,function(He){if(He==="option")U(ne,He),r(";");else throw v(He)}),b.add(ne)}function Zr(b,w,x){if(!de.test(w=u()))throw v(w,"reference");var A=w;h(null,function(S){switch(S){case"required":case"repeated":D(b,S,A,x+1);break;case"optional":m==="proto3"?D(b,"proto3_optional",A,x+1):D(b,"optional",A,x+1);break;default:if(m==="proto2"||!de.test(S))throw v(S);t(S),D(b,"optional",A,x+1);break}})}for(var ee;(ee=u())!==null;)switch(ee){case"package":if(!c)throw v(ee);q();break;case"import":if(!c)throw v(ee);$();break;case"syntax":if(!c)throw v(ee);B();break;case"edition":if(!c)throw v(ee);O();break;case"option":U(g,ee),r(";",!0);break;default:if(_(g,ee,0)){c=!1;continue}throw v(ee)}return E(),we.filename=null,{package:l,imports:d,weakImports:p,root:e}}var Hi=le,Zi=/\/|\./;function le(a,e){Zi.test(a)||(a="google/protobuf/"+a+".proto",e={nested:{google:{nested:{protobuf:{nested:e}}}}}),le[a]=e}le("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}});var zr;le("duration",{Duration:zr={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}});le("timestamp",{Timestamp:zr});le("empty",{Empty:{fields:{}}});le("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}});le("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}});le("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}});le.get=function(e){return le[e]||null};var xe=Er.exports=xi;xe.build="full";xe.tokenize=Ur;xe.parse=Fi;xe.common=Hi;xe.Root._configure(xe.Type,xe.parse,xe.common);var Gi=Er.exports,Se=Gi;const te="com.google.type",pt={"google/type/calendar_period.proto":{nested:{google:{nested:{type:{options:{go_package:"google.golang.org/genproto/googleapis/type/calendarperiod;calendarperiod",java_multiple_files:!0,java_outer_classname:"CalendarPeriodProto",java_package:te,objc_class_prefix:"GTP"},nested:{CalendarPeriod:{values:{CALENDAR_PERIOD_UNSPECIFIED:0,DAY:1,WEEK:2,FORTNIGHT:3,MONTH:4,QUARTER:5,HALF:6,YEAR:7}}},comment:'A `CalendarPeriod` represents the abstract concept of a time period that has a canonical start. Grammatically, "the start of the current `CalendarPeriod`." All calendar times begin at midnight UTC.'}}}}},"google/type/color.proto":{nested:{google:{nested:{protobufNested:{nested:{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}},type:{options:{cc_enable_arenas:!0,go_package:"google.golang.org/genproto/googleapis/type/color;color",java_multiple_files:!0,java_outer_classname:"ColorProto",java_package:te,objc_class_prefix:"GTP"},nested:{Color:{fields:{red:{type:"float",comment:`The amount of red in the color as a value in the interval.
|
|
30
|
+
@Min 0
|
|
31
|
+
@Max 1`,id:1},green:{type:"float",comment:`The amount of green in the color as a value in the interval.
|
|
32
|
+
@Min 0
|
|
33
|
+
@Max 1`,id:2},blue:{type:"float",comment:`The amount of blue in the color as a value in the interval.
|
|
34
|
+
@Min 0
|
|
35
|
+
@Max 1`,id:3},alpha:{type:"google.protobufNested.FloatValue",comment:`This means that a value of 1.0 corresponds to a solid color, whereas a value of 0.0 corresponds to a completely transparent color.
|
|
36
|
+
@Min 0
|
|
37
|
+
@Max 1`,id:4}}}}}}}}},"google/type/date.proto":{nested:{google:{nested:{type:{options:{cc_enable_arenas:!0,go_package:"google.golang.org/genproto/googleapis/type/date;date",java_multiple_files:!0,java_outer_classname:"DateProto",java_package:te,objc_class_prefix:"GTP"},nested:{Date:{fields:{year:{type:"int32",comment:`Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year
|
|
38
|
+
@Min 0
|
|
39
|
+
@Max 9999`,id:1},month:{type:"int32",comment:`Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
|
|
40
|
+
@Min 0
|
|
41
|
+
@Max 12`,id:2},day:{type:"int32",comment:`Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
|
|
42
|
+
@Min 0
|
|
43
|
+
@Max 31`,id:3}}}}}}}}},"google/type/datetime.proto":{nested:{google:{nested:{protobufNested:{nested:{Duration:{fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}},type:{options:{cc_enable_arenas:!0,go_package:"google.golang.org/genproto/googleapis/type/datetime;datetime",java_multiple_files:!0,java_outer_classname:"DateTimeProto",java_package:te,objc_class_prefix:"GTP"},nested:{DateTime:{oneofs:{timeOffset:{oneof:["utcOffset","timeZone"]}},fields:{year:{type:"int32",comment:`Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year
|
|
44
|
+
@Min 0
|
|
45
|
+
@Max 9999`,id:1},month:{type:"int32",comment:`Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
|
|
46
|
+
@Min 0
|
|
47
|
+
@Max 12`,id:2},day:{type:"int32",comment:`Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
|
|
48
|
+
@Min 0
|
|
49
|
+
@Max 31`,id:3},hours:{type:"int32",comment:`Hours of day in 24 hour format.
|
|
50
|
+
@Min 0
|
|
51
|
+
@Max 23`,id:4},minutes:{type:"int32",comment:`Minutes of hour of day.
|
|
52
|
+
@Min 0
|
|
53
|
+
@Max 59`,id:5},seconds:{type:"int32",comment:`Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
|
|
54
|
+
@Min 0
|
|
55
|
+
@Max 60`,id:6},nanos:{type:"int32",comment:`Fractions of seconds in nanoseconds.
|
|
56
|
+
@Min 0
|
|
57
|
+
@Max 999999999`,id:7},utcOffset:{type:"google.protobufNested.Duration",id:8},timeZone:{type:"TimeZone",id:9}}},TimeZone:{fields:{id:{type:"string",comment:"IANA Time Zone Database time zone. @Example: America/New_York",id:1},version:{type:"string",comment:"IANA Time Zone Database version number. @Example: 2019a",id:2}}}}}}}}},"google/type/dayofweek.proto":{nested:{google:{nested:{type:{options:{go_package:"google.golang.org/genproto/googleapis/type/dayofweek;dayofweek",java_multiple_files:!0,java_outer_classname:"DayOfWeekProto",java_package:te,objc_class_prefix:"GTP"},nested:{DayOfWeek:{values:{DAY_OF_WEEK_UNSPECIFIED:0,MONDAY:1,TUESDAY:2,WEDNESDAY:3,THURSDAY:4,FRIDAY:5,SATURDAY:6,SUNDAY:7}}}}}}}},"google/type/decimal.proto":{nested:{google:{nested:{type:{options:{cc_enable_arenas:!0,go_package:"google.golang.org/genproto/googleapis/type/decimal;decimal",java_multiple_files:!0,java_outer_classname:"DecimalProto",java_package:te,objc_class_prefix:"GTP"},nested:{Decimal:{fields:{value:{type:"string",comment:"A representation of a decimal value, such as 2.5. Clients may convert values into language-native decimal formats, such as Java's [BigDecimal][] or Python's [decimal.Decimal][].\n\nThe string representation consists of an optional sign, `+` (`U+002B`) or `-` (`U+002D`), followed by a sequence of zero or more decimal digits (\"the integer\"), optionally followed by a fraction, optionally followed by an exponent.\n\nThe fraction consists of a decimal point followed by zero or more decimal digits. The string must contain at least one digit in either the integer or the fraction. The number formed by the sign, the integer and the fraction is referred to as the significand.\n\nServices **should** normalize decimal values before storing them by:\n- Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`).\n- Replacing a zero-length integer value with `0` (`.5` -> `0.5`).\n- Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`).\n- Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`).\n@Example 2.5e8\n@Example -2.5e8\n@Example 2.5",id:1}}}}}}}}},"google/type/expr.proto":{nested:{google:{nested:{type:{options:{go_package:"google.golang.org/genproto/googleapis/type/expr;expr",java_multiple_files:!0,java_outer_classname:"ExprProto",java_package:te,objc_class_prefix:"GTP"},nested:{Expr:{fields:{expression:{type:"string",comment:`Textual representation of an expression in Common Expression Language syntax
|
|
58
|
+
@Example 'New message received at ' + string(document.create_time)
|
|
59
|
+
@Example document.type != 'private' && document.type != 'internal'`,id:1},title:{type:"string",comment:`Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression
|
|
60
|
+
@Example Notification string
|
|
61
|
+
@Example Public documents`,id:2},description:{type:"string",comment:`Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
|
|
62
|
+
@Example Determine whether the document should be publicly visible
|
|
63
|
+
@Example Create a notification string with a timestamp.`,id:3},location:{type:"string",comment:"String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.",id:4}},comment:"Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec."}}}}}}},"google/type/fraction.proto":{nested:{google:{nested:{type:{options:{go_package:"google.golang.org/genproto/googleapis/type/fraction;fraction",java_multiple_files:!0,java_outer_classname:"FractionProto",java_package:te,objc_class_prefix:"GTP"},nested:{Fraction:{fields:{numerator:{type:"int64",comment:"The numerator in the fraction, e.g. 2 in 2/3.",id:1},denominator:{type:"int64",comment:"The value by which the numerator is divided, e.g. 3 in 2/3.",id:2}}}}}}}}},"google/type/interval.proto":{nested:{google:{nested:{protobufNested:{nested:{Timestamp:{fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}},type:{options:{cc_enable_arenas:!0,go_package:"google.golang.org/genproto/googleapis/type/interval;interval",java_multiple_files:!0,java_outer_classname:"IntervalProto",java_package:te,objc_class_prefix:"GTP"},nested:{Interval:{fields:{startTime:{type:"google.protobufNested.Timestamp",comment:"If specified, a Timestamp matching this interval will have to be the same or after the start.",id:1},endTime:{type:"google.protobufNested.Timestamp",comment:"If specified, a Timestamp matching this interval will have to be before the end.",id:2}}}}}}}}},"google/type/latlng.proto":{nested:{google:{nested:{type:{options:{cc_enable_arenas:!0,go_package:"google.golang.org/genproto/googleapis/type/latlng;latlng",java_multiple_files:!0,java_outer_classname:"LatLngProto",java_package:te,objc_class_prefix:"GTP"},nested:{LatLng:{fields:{latitude:{type:"double",comment:`The latitude in degrees.
|
|
64
|
+
@Min -90
|
|
65
|
+
@Max +90`,id:1},longitude:{type:"double",comment:`The longitude in degrees.
|
|
66
|
+
@Min -180
|
|
67
|
+
@Max +180`,id:2}},comment:'An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this must conform to the <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84 standard</a>. Values must be within normalized ranges.'}}}}}}},"google/type/localized_text.proto":{nested:{google:{nested:{type:{options:{cc_enable_arenas:!0,go_package:"google.golang.org/genproto/googleapis/type/localized_text;localized_text",java_multiple_files:!0,java_outer_classname:"LocalizedTextProto",java_package:te,objc_class_prefix:"GTP"},nested:{LocalizedText:{fields:{text:{type:"string",comment:"Localized string in the language corresponding to 'language_code'",id:1},languageCode:{type:"string",comment:`The text's BCP-47 language code, such as "en-US" or "sr-Latn".
|
|
68
|
+
@Example en-US
|
|
69
|
+
@Example sr-Latn`,id:2}},comment:"Localized variant of a text in a particular language."}}}}}}},"google/type/money.proto":{nested:{google:{nested:{type:{options:{cc_enable_arenas:!0,go_package:"google.golang.org/genproto/googleapis/type/money;money",java_multiple_files:!0,java_outer_classname:"MoneyProto",java_package:te,objc_class_prefix:"GTP"},nested:{Money:{fields:{currencyCode:{type:"string",comment:`The three-letter currency code defined in ISO 4217.
|
|
70
|
+
@Example USD
|
|
71
|
+
@Example EUR`,id:1},units:{type:"int64",comment:"The whole units of the amount.",id:2},nanos:{type:"int32",comment:"Number of nano (10^-9) units of the amount",id:3}},comment:"Represents an amount of money with its currency type."}}}}}}},"google/type/month.proto":{nested:{google:{nested:{type:{options:{go_package:"google.golang.org/genproto/googleapis/type/month;month",java_multiple_files:!0,java_outer_classname:"MonthProto",java_package:te,objc_class_prefix:"GTP"},nested:{Month:{values:{MONTH_UNSPECIFIED:0,JANUARY:1,FEBRUARY:2,MARCH:3,APRIL:4,MAY:5,JUNE:6,JULY:7,AUGUST:8,SEPTEMBER:9,OCTOBER:10,NOVEMBER:11,DECEMBER:12}}}}}}}},"google/type/phone_number.proto":{nested:{google:{nested:{type:{options:{cc_enable_arenas:!0,go_package:"google.golang.org/genproto/googleapis/type/phone_number;phone_number",java_multiple_files:!0,java_outer_classname:"PhoneNumberProto",java_package:te,objc_class_prefix:"GTP"},nested:{PhoneNumber:{oneofs:{kind:{oneof:["e164Number","shortCode"]}},fields:{e164Number:{type:"string",id:1},shortCode:{type:"ShortCode",id:2},extension:{type:"string",id:3}},nested:{ShortCode:{fields:{regionCode:{type:"string",id:1},number:{type:"string",id:2}}}}}}}}}}},"google/type/postal_address.proto":{nested:{google:{nested:{type:{options:{cc_enable_arenas:!0,go_package:"google.golang.org/genproto/googleapis/type/postaladdress;postaladdress",java_multiple_files:!0,java_outer_classname:"PostalAddressProto",java_package:te,objc_class_prefix:"GTP"},nested:{PostalAddress:{fields:{revision:{type:"int32",comment:`The schema revision of the \`PostalAddress\`. This must be set to 0, which is the latest revision.
|
|
72
|
+
@Min 0
|
|
73
|
+
@Max 0
|
|
74
|
+
@Default 0`,id:1},regionCode:{type:"string",comment:`CLDR region code of the country/region of the address. This is never inferred and it is up to the user to ensure the value is correct. See http://cldr.unicode.org/ and http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html for details.
|
|
75
|
+
@Example CH`,id:2},languageCode:{type:"string",comment:`BCP-47 language code of the contents of this address (if known). This is often the UI language of the input form or is expected to match one of the languages used in the address country/region, or their transliterated equivalents. This can affect formatting in certain countries, but is not critical to the correctness of the data and will never affect any validation or other non-formatting related operations.
|
|
76
|
+
@Example zh-Hant
|
|
77
|
+
@Example ja
|
|
78
|
+
@Example ja-Latn
|
|
79
|
+
@Example en`,id:3},postalCode:{type:"string",comment:`Postal code of the address. Not all countries use or require postal codes to be present, but where they are used, they may trigger additional validation with other parts of the address (e.g. state/zip validation in the U.S.A.).
|
|
80
|
+
@Example 3600`,id:4},sortingCode:{type:"string",comment:`Additional, country-specific, sorting code. This is not used in most regions. Where it is used, the value is either a string like "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number alone, representing the "sector code" (Jamaica), "delivery area indicator" (Malawi) or "post office indicator" (e.g. Côte d'Ivoire).
|
|
81
|
+
@Example CEDEX 7`,id:5},administrativeArea:{type:"string",comment:`Highest administrative subdivision which is used for postal addresses of a country or region. For example, this can be a state, a province, an oblast, or a prefecture. Specifically, for Spain this is the province and not the autonomous community (e.g. "Barcelona" and not "Catalonia"). Many countries don't use an administrative area in postal addresses. E.g. in Switzerland this should be left unpopulated.`,id:6},locality:{type:"string",comment:"Generally refers to the city/town portion of the address. Examples: US city, IT comune, UK post town. In regions of the world where localities are not well defined or do not fit into this structure well, leave locality empty and use address_lines.",id:7},sublocality:{type:"string",comment:"Sublocality of the address. For example, this can be neighborhoods, boroughs, districts.",id:8},addressLines:{rule:"repeated",type:"string",comment:'Unstructured address lines describing the lower levels of an address. Because values in address_lines do not have type information and may sometimes contain multiple values in a single field (e.g. "Austin, TX")',id:9},recipients:{rule:"repeated",type:"string",comment:'The recipient at the address. This field may, under certain circumstances, contain multiline information. For example, it might contain "care of" information.',id:10},organization:{type:"string",comment:"The name of the organization at the address.",id:11}},comment:"Represents a postal address, e.g. for postal delivery or payments addresses. Given a postal address, a postal service can deliver items to a premise, P.O. Box or similar. It is not intended to model geographical locations (roads, towns, mountains)."}}}}}}},"google/type/quaternion.proto":{nested:{google:{nested:{type:{options:{cc_enable_arenas:!0,go_package:"google.golang.org/genproto/googleapis/type/quaternion;quaternion",java_multiple_files:!0,java_outer_classname:"QuaternionProto",java_package:te,objc_class_prefix:"GTP"},nested:{Quaternion:{fields:{x:{type:"double",id:1},y:{type:"double",id:2},z:{type:"double",id:3},w:{type:"double",id:4}}}},comment:"A quaternion is defined as the quotient of two directed lines in a three-dimensional space or equivalently as the quotient of two Euclidean vectors (https://en.wikipedia.org/wiki/Quaternion)."}}}}},"google/type/timeofday.proto":{nested:{google:{nested:{type:{options:{cc_enable_arenas:!0,go_package:"google.golang.org/genproto/googleapis/type/timeofday;timeofday",java_multiple_files:!0,java_outer_classname:"TimeOfDayProto",java_package:te,objc_class_prefix:"GTP"},nested:{TimeOfDay:{fields:{hours:{type:"int32",id:1},minutes:{type:"int32",id:2},seconds:{type:"int32",id:3},nanos:{type:"int32",id:4}}}}}}}}},"validate/validate.proto":{},"buf/validate/validate.proto":{}};class Yi{static isAbsolute(e){return/^(?:\/|\w+:|\\\\\w+)/.test(e)}static normalize(e){const i=e.substring(0,2);let f="";i==="\\\\"&&(f=i,e=e.substring(2)),e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/");const s=e.split("/"),u=this.isAbsolute(e);let t="";u&&(t=`${s.shift()}/`);for(let o=0;o<s.length;)s[o]===".."?o>0&&s[o-1]!==".."?s.splice(--o,2):u?s.splice(o,1):++o:s[o]==="."?s.splice(o,1):++o;return f+t+s.join("/")}static resolve(e,i,f=!1){return f||(i=this.normalize(i)),this.isAbsolute(i)?i:(f||(e=this.normalize(e)),(e=e.replace(/(?:\/|^)[^/]+$/,"")).length?this.normalize(`${e}/${i}`):i)}}const oe=class oe{static withoutRangeLimits(e){const i={};for(const f of Object.keys(e)){const s={...e[f]};delete s.minimum,delete s.maximum,i[f]=s}return i}};ve(oe,"MAX_SAFE_INTEGER",Math.pow(2,53)-1),ve(oe,"MIN_SAFE_INTEGER",-oe.MAX_SAFE_INTEGER),ve(oe,"PRIMITIVE_TYPES_WITH_LIMITS",{bytes:{type:"string",format:"bytes","x-primitive":"bytes"},string:{type:"string","x-primitive":"string"},bool:{type:"boolean","x-primitive":"bool"},int32:{type:"integer",format:"int32",minimum:-2147483648,maximum:2147483647,"x-primitive":"int32"},sint32:{type:"integer",format:"sint32",minimum:-2147483648,maximum:2147483647,"x-primitive":"sint32"},uint32:{type:"integer",format:"uint32",minimum:0,maximum:4294967295,"x-primitive":"uint32"},int64:{type:"integer",format:"int64",minimum:oe.MIN_SAFE_INTEGER,maximum:oe.MAX_SAFE_INTEGER,"x-primitive":"int64"},sint64:{type:"integer",format:"sint64",minimum:oe.MIN_SAFE_INTEGER,maximum:oe.MAX_SAFE_INTEGER,"x-primitive":"sint64"},uint64:{type:"integer",format:"uint64",minimum:0,maximum:oe.MAX_SAFE_INTEGER,"x-primitive":"uint64"},fixed32:{type:"number",format:"fixed32","x-primitive":"fixed32"},fixed64:{type:"number",format:"fixed64","x-primitive":"fixed64"},sfixed32:{type:"number",format:"sfixed32","x-primitive":"sfixed32"},sfixed64:{type:"number",format:"sfixed64","x-primitive":"sfixed64"},float:{type:"number",format:"float","x-primitive":"float"},double:{type:"number",format:"double","x-primitive":"double"}}),ve(oe,"PRIMITIVE_TYPES_MINIMAL",oe.withoutRangeLimits(oe.PRIMITIVE_TYPES_WITH_LIMITS));let Be=oe;const Wr="(buf.validate.field)",mr=a=>typeof a=="object"&&a!==null&&!Array.isArray(a);function gr(a,e){const i=Mt(e,Wr);i!==null&&Dt(i,a)}function Mt(a,e){const i=a.parsedOptions;if(i&&!Array.isArray(i)&&i[e])return i[e];if(i&&Array.isArray(i)){for(const f of i)if(f[e])return f[e]}return null}function Dt(a,e){for(const[i,f]of Object.entries(a))switch(i){case"float":case"double":case"int32":case"int64":case"uint32":case"uint64":case"sint32":case"sint64":case"fixed32":case"fixed64":case"sfixed32":case"sfixed64":Fe.handle(e,f);break;case"bool":Xi.handle(e,f);break;case"string":case"bytes":H.handle(e,f);break;case"repeated":Pe.handle(e,f);break}}class Fe{static handle(e,i){for(const[f,s]of Object.entries(i))switch(f){case"const":Ee.constValue(e,s);break;case"lt":Fe.lessThan(e,s);break;case"lte":Fe.lessEqualThan(e,s);break;case"gt":Fe.greaterThan(e,s);break;case"gte":Fe.greaterEqualThan(e,s);break;case"ignore_empty":break;case"in":Ee.inArray(e,s);break;case"not_in":Ee.notInArray(e,s);break}}static lessThan(e,i){delete e.maximum,e.exclusiveMaximum=i}static lessEqualThan(e,i){e.maximum=i}static greaterThan(e,i){delete e.minimum,e.exclusiveMinimum=i}static greaterEqualThan(e,i){e.minimum=i}}class Xi{static handle(e,i){for(const[f,s]of Object.entries(i))switch(f){case"const":Ee.constValue(e,s);break}}}class H{static handle(e,i){for(const[f,s]of Object.entries(i))switch(f){case"const":Ee.constValue(e,s);break;case"in":Ee.inArray(e,s);break;case"not_in":Ee.notInArray(e,s);break;case"len":H.len(e,s);break;case"min_len":H.minLen(e,s);break;case"max_len":H.maxLen(e,s);break;case"len_bytes":H.len(e,s);break;case"min_bytes":H.minLen(e,s);break;case"max_bytes":H.maxLen(e,s);break;case"pattern":H.pattern(e,s);break;case"prefix":H.prefix(e,s);break;case"contains":H.contains(e,s);break;case"not_contains":H.notContains(e,s);break;case"suffix":H.suffix(e,s);break;case"email":s&&H.email(e);break;case"address":s&&H.address(e);break;case"hostname":s&&H.hostname(e);break;case"ip":s&&H.ip(e);break;case"ipv4":s&&H.ipv4(e);break;case"ipv6":s&&H.ipv6(e);break;case"uri":s&&H.uri(e);break;case"uri_ref":s&&H.uriRef(e);break;case"uuid":s&&H.uuid(e);break;case"well_known_regex":H.wellKnownRegex(e,s);break}}static len(e,i){e.minLength=i,e.maxLength=i}static minLen(e,i){e.minLength=i}static maxLen(e,i){e.maxLength=i}static pattern(e,i){e.pattern=i}static prefix(e,i){e.pattern=`^${Ve(i)}.*`}static contains(e,i){e.pattern=`.*${Ve(i)}.*`}static notContains(e,i){e.pattern=`^((?!${Ve(i)}).)*$`}static suffix(e,i){e.pattern=`.*${Ve(i)}$`}static email(e){e.format="email"}static hostname(e){e.format="hostname"}static address(e){e.anyOf=[{format:"hostname"},{format:"ipv4"},{format:"ipv6"}]}static ip(e){e.anyOf=[{format:"ipv4"},{format:"ipv6"}]}static ipv4(e){e.format="ipv4"}static ipv6(e){e.format="ipv6"}static uri(e){e.format="uri"}static uriRef(e){e.format="uri-reference"}static uuid(e){e.format="uuid"}static wellKnownRegex(e,i){switch(i){case"HTTP_HEADER_NAME":e.pattern="^:?[0-9a-zA-Z!#$%&'*+-.^_|~`]+$";break;case"HTTP_HEADER_VALUE":e.pattern="^[^\\u0000-\\u0008\\u000A-\\u001F\\u007F]*$";break}}}class Pe{static handle(e,i){for(const[f,s]of Object.entries(i))switch(f){case"min_items":Pe.minLen(e,s);break;case"max_items":Pe.maxLen(e,s);break;case"unique":s&&Pe.unique(e);break;case"items":e.items&&Dt(s,e.items);break}}static minLen(e,i){e.minItems=i}static maxLen(e,i){e.maxItems=i}static unique(e){e.uniqueItems=!0}}class Ee{static constValue(e,i){e.const=i,delete e.maximum,delete e.minimum}static inArray(e,i){if(!Array.isArray(i))throw new Error(`Expect value to be an array: ${i}`);e.oneOf=i.map(f=>({const:f}))}static notInArray(e,i){if(!Array.isArray(i))throw new Error(`Expect value to be an array: ${i}`);e.not={oneOf:i.map(f=>({const:f}))}}}function Ki(a){const e=Mt(a,Wr);if(e!==null){for(const[i,f]of Object.entries(e))if(mr(f)){if(i==="repeated"){if(mr(f.items)){for(const[s,u]of Object.entries(f.items))if(s==="ignore_empty"&&u)return!0}}else for(const[s,u]of Object.entries(f))if(s==="ignore_empty"&&u)return!0}}return!1}function Ve(a){return a.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}const Qi="(validate.rules)";function yr(a,e){const i=Mt(e,Qi);i!==null&&Dt(i,a)}const vr="root",_r="@RootNode",en="@Option",wr="@Example",br="@Default",Or=Se.common;class tn{constructor(e){ve(this,"root",new Se.Root);ve(this,"proto3");ve(this,"protoParseOptions",{keepCase:!0,alternateCommentMode:!0});ve(this,"mapperOptions",{primitiveTypesWithLimits:!0});this.proto3=/syntax\s*=\s*['"]proto3['"]/.test(e),this.parseOptionsAnnotation(e),this.process(vr,e)}parseOptionsAnnotation(e){const i=/(\/\/|\*)\s*@Option\s+(?<key>\w{1,50})\s+(?<value>\S[^\r\n]{0,199})/g;let f;for(;(f=i.exec(e))!==null&&(f.index===i.lastIndex&&i.lastIndex++,f.groups!==void 0);)f.groups.value==="true"?this.mapperOptions[f.groups.key]=!0:f.groups.value==="false"?this.mapperOptions[f.groups.key]=!1:this.mapperOptions[f.groups.key]=f.groups.value}process(e,i){if(typeof i!="string")this.root.setOptions(i.options),this.root.addJSON(i.nested);else{Se.parse.filename=e;const f=Se.parse(i,this.root,this.protoParseOptions);let s=0;if(f.imports)for(;s<f.imports.length;++s)this.fetch(f.imports[s],e,!1);if(f.weakImports)for(s=0;s<f.weakImports.length;++s)this.fetch(f.weakImports[s],e,!0)}}getBundledFileName(e){if(e==="validate/validate.proto"||e==="/validate/validate.proto")return"validate/validate.proto";if(e==="buf/validate/validate.proto"||e==="/buf/validate/validate.proto")return"buf/validate/validate.proto";let i=e.lastIndexOf("google/protobuf/");if(i>-1){const f=e.substring(i);if(f in Or)return f}if(i=e.lastIndexOf("google/type/"),i>-1){const f=e.substring(i);if(f in pt)return f}return null}fetch(e,i,f){const s=this.getBundledFileName(e)||e;if(this.root.files.indexOf(s)>-1)return;this.root.files.push(s);const u=Or[s];if(u!==void 0){this.process(s,u);return}if(s in pt){this.process(s,pt[s]);return}const t=Yi.resolve(i,s);if(!f)throw new Error(`Imports are currently not implemented. Can not load: ${t} defined in as ${e} in ${i}`)}compile(){this.root.resolveAll();const e=this.resolveByFilename(vr,this.root.nested),i=this.findRootItem(e);return this.compileMessage(i,[])}resolveByFilename(e,i){const f=[];for(const s in i){const u=i[s];u.filename===e&&u instanceof Se.Type&&f.push(u);const t=u.nested;t&&f.push(...this.resolveByFilename(e,t))}return f}findRootItem(e){var u;const i=new Map;for(const t of e)for(const o in t.fields)i.has(t.fields[o].type)?(u=i.get(t.fields[o].type))==null||u.add(t.name):i.set(t.fields[o].type,new Set([t.name]));const f=[];for(const t of e){const o=i.get(t.name);o&&((o==null?void 0:o.size)>1||!o.has(t.name))||f.push(t)}if(f.length<1)throw new Error("Not found a root proto messages");if(f.length===1)return f[0];for(const t of f)if(t.comment&&t.comment.indexOf(_r)!==-1)return t;const s=f.map(t=>t.name).join(", ");throw new Error(`Found more than one root proto messages: ${s}`)}isProto3(){return this.proto3}isProto3Required(e){var i;return Ki(e)?!1:((i=e.options)==null?void 0:i.proto3_optional)!==!0&&this.isProto3()}hasRequiredAnnotation(e){return e!==null&&/@Required\b/i.test(e)}compileMessage(e,i){var o,r;const f={},s={title:e.name,type:"object",required:[],properties:f},u=this.extractDescription(e.comment);if(u!==null&&u.length>0&&(s.description=u),i.filter(n=>n===e.name).length>=2)return s;i.push(e.name);for(const n in e.fields){const c=e.fields[n];if(!(c.partOf&&c.partOf.oneof.length>1))if((c.required||this.isProto3Required(c)||this.hasRequiredAnnotation(c.comment))&&((o=s.required)==null||o.push(n)),c.repeated){f[c.name]={type:"array",items:this.compileField(c,e,i.slice())};const l=this.extractDescription(c.comment);if(l!==null&&l.length>0&&(f[c.name].description=l),c.comment){const d=/@MinItems\s(\d+)/i,p=/@MaxItems\s(\d+)/i;let m;(m=d.exec(c.comment))!==null&&(f[c.name].minItems=Number.parseInt(m[1],10)),(m=p.exec(c.comment))!==null&&(f[c.name].maxItems=Number.parseInt(m[1],10))}yr(f[c.name],c),gr(f[c.name],c)}else f[c.name]=this.compileField(c,e,i.slice())}for(const n of e.oneofsArray){if(n.fieldsArray.length<2)continue;f[n.name]||(f[n.name]={oneOf:[]});const c=f[n.name].oneOf;for(const l of n.oneof){const d=this.compileField(e.fields[l],e,i.slice());d["x-oneof-item"]=l,c.push(d)}}return(((r=s.required)==null?void 0:r.length)??0)<1&&delete s.required,s}compileEnum(e){const i={};for(const s of Object.keys(e.values))i[s]=e.values[s];const f={title:e.name,type:"string",enum:Object.keys(e.values),"x-enum-mapping":i};return this.addDefaultFromCommentAnnotations(f,e.comment),f}compileField(e,i,f){let s={};if(Be.PRIMITIVE_TYPES_WITH_LIMITS[e.type.toLowerCase()])s=this.mapperOptions.primitiveTypesWithLimits?Object.assign(s,Be.PRIMITIVE_TYPES_WITH_LIMITS[e.type.toLowerCase()]):Object.assign(s,Be.PRIMITIVE_TYPES_MINIMAL[e.type.toLowerCase()]),s["x-primitive"]=e.type;else{const o=i.lookupTypeOrEnum(e.type);if(!o)throw new Error(`Unable to resolve type "${e.type}" @ ${i.fullName}`);o instanceof Se.Enum?s=Object.assign(s,this.compileEnum(o)):s=Object.assign(s,this.compileMessage(o,f)),e.type&&(s["x-type"]=e.type)}this.addValidatorFromCommentAnnotations(s,e.comment),this.addDefaultFromCommentAnnotations(s,e.comment),e.repeated||(yr(s,e),gr(s,e));const u=this.extractDescription(e.comment);u!==null&&u.length>0&&(s.description?s.description=`${u}
|
|
82
|
+
${s.description}`.trim():s.description=u);const t=this.extractExamples(e.comment);return t!==null&&(s.examples=t),s}extractDescription(e){return!e||(e==null?void 0:e.length)<1||(e=e.replace(new RegExp(`\\s{0,15}${wr}\\s{0,15}(.+)`,"ig"),"").replace(new RegExp(`\\s{0,15}${br}\\s{0,15}(.+)`,"ig"),"").replace(new RegExp(`\\s{0,15}${en}\\s{0,15}(.+)`,"ig"),"").replace(new RegExp(`\\s{0,15}${_r}`,"ig"),"").replace(/\s{0,15}@Required/gi,"").replace(/\s{0,15}@Pattern\s{0,15}[^\r\n]{1,200}/gi,"").replace(/\s{0,15}@(Min|Max|Minimum|Maximum|ExclusiveMinimum|ExclusiveMaximum|MultipleOf|MaxLength|MinLength|MaxItems|MinItems)\s{0,15}[\d.]{1,20}/gi,"").trim(),e.length<1)?null:e}extractExamples(e){if(!e)return null;const i=[];let f;const s=new RegExp(`\\s*${wr}\\s(.+)$`,"i");for(const u of e.split(`
|
|
83
|
+
`))(f=s.exec(u))!==null&&i.push(xr(f[1].trim()));return i.length<1?null:i}addValidatorFromCommentAnnotations(e,i){if(i===null||(i==null?void 0:i.length)<1)return;const f=/@Min\s([+-]?\d+(\.\d+)?)/i,s=/@Max\s([+-]?\d+(\.\d+)?)/i,u=/@Pattern\s([^\n]+)/i,t=new Map([["minimum",/@Minimum\s([+-]?\d+(\.\d+)?)/i],["maximum",/@Maximum\s([+-]?\d+(\.\d+)?)/i],["exclusiveMinimum",/@ExclusiveMinimum\s([+-]?\d+(\.\d+)?)/i],["exclusiveMaximum",/@ExclusiveMaximum\s([+-]?\d+(\.\d+)?)/i],["multipleOf",/@MultipleOf\s(\d+(\.\d+)?)/i],["maxLength",/@MaxLength\s(\d+)/i],["minLength",/@MinLength\s(\d+)/i]]);let o;(o=f.exec(i))!==null&&(e.minimum=parseFloat(o[1])),(o=s.exec(i))!==null&&(e.maximum=parseFloat(o[1])),(o=u.exec(i))!==null&&(e.pattern=o[1].trim());for(const r of t.entries())(o=r[1].exec(i))!==null&&(e[r[0]]=parseFloat(o[1]))}addDefaultFromCommentAnnotations(e,i){if(i===null||(i==null?void 0:i.length)<1)return;const f=new RegExp(`\\s*${br}\\s(.+)$`,"i");let s;(s=f.exec(i))!==null&&(e.default=xr(s[1]))}}function rn(a){return new tn(a).compile()}function xr(a){if(a.charAt(0)==="{")try{const e=JSON.parse(a);if(e)return e}catch{}return a}exports.protoToJsonSchema=rn;
|