@redocly/openapi-docs 3.24.0-next.10 → 3.24.0-next.11

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.
Files changed (18) hide show
  1. package/dist/{redocly-openapi-docs.min.AiChatProvider-DhmZRjCy.js → redocly-openapi-docs.min.AiChatProvider-B6qZxoKI.js} +1 -1
  2. package/dist/{redocly-openapi-docs.min.AiChatSqliteDBStorage-D1axMGbc.js → redocly-openapi-docs.min.AiChatSqliteDBStorage-Cy4k7pUw.js} +1 -1
  3. package/dist/{redocly-openapi-docs.min.AiPanel-DsHL8Tj5.js → redocly-openapi-docs.min.AiPanel-Bwuv-ZH_.js} +75 -75
  4. package/dist/{redocly-openapi-docs.min.SqliteDBStorage-DbMKa2rS.js → redocly-openapi-docs.min.SqliteDBStorage-DlCxvBqX.js} +1 -1
  5. package/dist/{redocly-openapi-docs.min.ai-chat-mappers-CYTtl-vb.js → redocly-openapi-docs.min.ai-chat-mappers-C8DaS6ge.js} +1 -1
  6. package/dist/{redocly-openapi-docs.min.external-resolver-l2gG6VEi.js → redocly-openapi-docs.min.external-resolver-CKkEKWzQ.js} +1 -1
  7. package/dist/{redocly-openapi-docs.min.index-DAzSuxAj.js → redocly-openapi-docs.min.index-BsXv-Pjz.js} +1 -1
  8. package/dist/{redocly-openapi-docs.min.index-DdeY52iV.js → redocly-openapi-docs.min.index-DWajc5Ac.js} +1153 -1139
  9. package/dist/{redocly-openapi-docs.min.index-Cof5qhpm.js → redocly-openapi-docs.min.index-We3Hmt3m.js} +1 -1
  10. package/dist/{redocly-openapi-docs.min.index-DafBC2xj.js → redocly-openapi-docs.min.index-bTUZhh-q.js} +1 -1
  11. package/dist/redocly-openapi-docs.min.js +1 -1
  12. package/dist/{redocly-openapi-docs.min.lint-DzAaVAOn.js → redocly-openapi-docs.min.lint-DMpx1vvZ.js} +2 -2
  13. package/dist/{redocly-openapi-docs.min.lint-graphql-GMwEJAKm.js → redocly-openapi-docs.min.lint-graphql-DH0N_7pS.js} +1 -1
  14. package/dist/{redocly-openapi-docs.min.respect-run-DeLDyD3E.js → redocly-openapi-docs.min.respect-run-JH1Xd21R.js} +1 -1
  15. package/dist/{redocly-openapi-docs.min.standalone-DrxWsrqx.js → redocly-openapi-docs.min.standalone-DMeytWE9.js} +3 -3
  16. package/dist/{redocly-openapi-docs.min.tauri-path-Q8cku-q2.js → redocly-openapi-docs.min.tauri-path-TzmCcPBx.js} +1 -1
  17. package/dist/{redocly-openapi-docs.min.useAiChatQueries-Bjb0Ax3R.js → redocly-openapi-docs.min.useAiChatQueries-RJxlmgfo.js} +79 -79
  18. package/package.json +3 -3
@@ -6667,7 +6667,7 @@ Error generating stack: `+b.message+`
6667
6667
  pointer-events: none;
6668
6668
  animation: ${rre()} 1.2s infinite;
6669
6669
  `}
6670
- `,ire=e=>{const{languageInsensitive:t,fullWidth:r,blinking:n,iconPosition:o,icon:a,children:i,variant:s,tone:c,size:u,extraClass:d,to:f,external:g,className:y,...v}=e,x="tabIndex"in e?e.tabIndex:e.to?-1:void 0,S=m.jsxs(are,{"data-component-name":"Button/Button",...v,className:ore({variant:s,tone:c,size:u,extraClass:d,className:y}),$fullWidth:r,$blinking:n,$iconPosition:o,$icon:a,$iconOnly:!i&&a!=null,$variant:s,$size:u,tabIndex:x,children:[a&&o!=="right"&&a,i,a&&o==="right"&&a]});return f?m.jsx(nre,{to:f,external:g,languageInsensitive:t,onClick:e.onClick,children:S}):S},bt=ve(ire)``;function Da(){const e=M.useId().replace(/:/g,"_");return t=>`${t}-${e}`}var sp={},lp={},qA={},HA;function sre(){return HA||(HA=1,Object.defineProperty(qA,"__esModule",{value:!0})),qA}var jd={},cp={},Nd={};const Ll="1.9.1",VA=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function lre(e){const t=new Set([e]),r=new Set,n=e.match(VA);if(!n)return()=>!1;const o={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(o.prerelease!=null)return function(s){return s===e};function a(s){return r.add(s),!1}function i(s){return t.add(s),!0}return function(s){if(t.has(s))return!0;if(r.has(s))return!1;const c=s.match(VA);if(!c)return a(s);const u={major:+c[1],minor:+c[2],patch:+c[3],prerelease:c[4]};return u.prerelease!=null||o.major!==u.major?a(s):o.major===0?o.minor===u.minor&&o.patch<=u.patch?i(s):a(s):o.minor<=u.minor?i(s):a(s)}}const cre=lre(Ll),pre=Ll.split(".")[0],Rd=Symbol.for(`opentelemetry.js.api.${pre}`),Pd=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof globalThis=="object"?globalThis:{};function Id(e,t,r,n=!1){var o;const a=Pd[Rd]=(o=Pd[Rd])!==null&&o!==void 0?o:{version:Ll};if(!n&&a[e]){const i=new Error(`@opentelemetry/api: Attempted duplicate registration of API: ${e}`);return r.error(i.stack||i.message),!1}if(a.version!==Ll){const i=new Error(`@opentelemetry/api: Registration of version v${a.version} for ${e} does not match previously registered API v${Ll}`);return r.error(i.stack||i.message),!1}return a[e]=t,r.debug(`@opentelemetry/api: Registered a global for ${e} v${Ll}.`),!0}function jl(e){var t,r;const n=(t=Pd[Rd])===null||t===void 0?void 0:t.version;if(!(!n||!cre(n)))return(r=Pd[Rd])===null||r===void 0?void 0:r[e]}function $d(e,t){t.debug(`@opentelemetry/api: Unregistering a global for ${e} v${Ll}.`);const r=Pd[Rd];r&&delete r[e]}class ure{constructor(t){this._namespace=t.namespace||"DiagComponentLogger"}debug(...t){return Md("debug",this._namespace,t)}error(...t){return Md("error",this._namespace,t)}info(...t){return Md("info",this._namespace,t)}warn(...t){return Md("warn",this._namespace,t)}verbose(...t){return Md("verbose",this._namespace,t)}}function Md(e,t,r){const n=jl("diag");if(n)return n[e](t,...r)}var Zn;(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"})(Zn||(Zn={}));function dre(e,t){e<Zn.NONE?e=Zn.NONE:e>Zn.ALL&&(e=Zn.ALL),t=t||{};function r(n,o){const a=t[n];return typeof a=="function"&&e>=o?a.bind(t):function(){}}return{error:r("error",Zn.ERROR),warn:r("warn",Zn.WARN),info:r("info",Zn.INFO),debug:r("debug",Zn.DEBUG),verbose:r("verbose",Zn.VERBOSE)}}const hre="diag";class Ko{static instance(){return this._instance||(this._instance=new Ko),this._instance}constructor(){function t(o){return function(...a){const i=jl("diag");if(i)return i[o](...a)}}const r=this,n=(o,a={logLevel:Zn.INFO})=>{var i,s,c;if(o===r){const f=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return r.error((i=f.stack)!==null&&i!==void 0?i:f.message),!1}typeof a=="number"&&(a={logLevel:a});const u=jl("diag"),d=dre((s=a.logLevel)!==null&&s!==void 0?s:Zn.INFO,o);if(u&&!a.suppressOverrideMessage){const f=(c=new Error().stack)!==null&&c!==void 0?c:"<failed to generate stacktrace>";u.warn(`Current logger will be overwritten from ${f}`),d.warn(`Current logger will overwrite one already registered from ${f}`)}return Id("diag",d,r,!0)};r.setLogger=n,r.disable=()=>{$d(hre,r)},r.createComponentLogger=o=>new ure(o),r.verbose=t("verbose"),r.debug=t("debug"),r.info=t("info"),r.warn=t("warn"),r.error=t("error")}}class hu{constructor(t){this._entries=t?new Map(t):new Map}getEntry(t){const r=this._entries.get(t);if(r)return Object.assign({},r)}getAllEntries(){return Array.from(this._entries.entries())}setEntry(t,r){const n=new hu(this._entries);return n._entries.set(t,r),n}removeEntry(t){const r=new hu(this._entries);return r._entries.delete(t),r}removeEntries(...t){const r=new hu(this._entries);for(const n of t)r._entries.delete(n);return r}clear(){return new hu}}const fre=Symbol("BaggageEntryMetadata"),mre=Ko.instance();function gre(e={}){return new hu(new Map(Object.entries(e)))}function WA(e){return typeof e!="string"&&(mre.error(`Cannot create baggage metadata from unknown type: ${typeof e}`),e=""),{__TYPE__:fre,toString(){return e}}}function cg(e){return Symbol.for(e)}class ly{constructor(t){const r=this;r._currentContext=t?new Map(t):new Map,r.getValue=n=>r._currentContext.get(n),r.setValue=(n,o)=>{const a=new ly(r._currentContext);return a._currentContext.set(n,o),a},r.deleteValue=n=>{const o=new ly(r._currentContext);return o._currentContext.delete(n),o}}}const Nl=new ly,wx=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],Sx={};if(typeof console<"u"){const e=["error","warn","info","debug","trace","log"];for(const t of e)typeof console[t]=="function"&&(Sx[t]=console[t])}class bre{constructor(){function t(r){return function(...n){let o=Sx[r];if(typeof o!="function"&&(o=Sx.log),typeof o!="function"&&console&&(o=console[r],typeof o!="function"&&(o=console.log)),typeof o=="function")return o.apply(console,n)}}for(let r=0;r<wx.length;r++)this[wx[r].n]=t(wx[r].c)}}class yre{constructor(){}createGauge(t,r){return Tre}createHistogram(t,r){return _re}createCounter(t,r){return Are}createUpDownCounter(t,r){return Ore}createObservableGauge(t,r){return jre}createObservableCounter(t,r){return Lre}createObservableUpDownCounter(t,r){return Nre}addBatchObservableCallback(t,r){}removeBatchObservableCallback(t){}}class pg{}class vre extends pg{add(t,r){}}class xre extends pg{add(t,r){}}class wre extends pg{record(t,r){}}class Sre extends pg{record(t,r){}}class Cx{addCallback(t){}removeCallback(t){}}class Cre extends Cx{}class kre extends Cx{}class Ere extends Cx{}const YA=new yre,Are=new vre,Tre=new wre,_re=new Sre,Ore=new xre,Lre=new Cre,jre=new kre,Nre=new Ere;function GA(){return YA}var kx;(function(e){e[e.INT=0]="INT",e[e.DOUBLE=1]="DOUBLE"})(kx||(kx={}));const JA={get(e,t){if(e!=null)return e[t]},keys(e){return e==null?[]:Object.keys(e)}},KA={set(e,t,r){e!=null&&(e[t]=r)}};class Rre{active(){return Nl}with(t,r,n,...o){return r.call(n,...o)}bind(t,r){return r}enable(){return this}disable(){return this}}const Ex="context",Pre=new Rre;class fu{constructor(){}static getInstance(){return this._instance||(this._instance=new fu),this._instance}setGlobalContextManager(t){return Id(Ex,t,Ko.instance())}active(){return this._getContextManager().active()}with(t,r,n,...o){return this._getContextManager().with(t,r,n,...o)}bind(t,r){return this._getContextManager().bind(t,r)}_getContextManager(){return jl(Ex)||Pre}disable(){this._getContextManager().disable(),$d(Ex,Ko.instance())}}var da;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(da||(da={}));const Ax="0000000000000000",Tx="00000000000000000000000000000000",_x={traceId:Tx,spanId:Ax,traceFlags:da.NONE};class Dd{constructor(t=_x){this._spanContext=t}spanContext(){return this._spanContext}setAttribute(t,r){return this}setAttributes(t){return this}addEvent(t,r){return this}addLink(t){return this}addLinks(t){return this}setStatus(t){return this}updateName(t){return this}end(t){}isRecording(){return!1}recordException(t,r){}}const Ox=cg("OpenTelemetry Context Key SPAN");function Lx(e){return e.getValue(Ox)||void 0}function Ire(){return Lx(fu.getInstance().active())}function jx(e,t){return e.setValue(Ox,t)}function $re(e){return e.deleteValue(Ox)}function Mre(e,t){return jx(e,new Dd(t))}function QA(e){var t;return(t=Lx(e))===null||t===void 0?void 0:t.spanContext()}const ug=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1]);function ZA(e,t){if(typeof e!="string"||e.length!==t)return!1;let r=0;for(let n=0;n<e.length;n+=4)r+=(ug[e.charCodeAt(n)]|0)+(ug[e.charCodeAt(n+1)]|0)+(ug[e.charCodeAt(n+2)]|0)+(ug[e.charCodeAt(n+3)]|0);return r===t}function Nx(e){return ZA(e,32)&&e!==Tx}function XA(e){return ZA(e,16)&&e!==Ax}function zd(e){return Nx(e.traceId)&&XA(e.spanId)}function Dre(e){return new Dd(e)}const Rx=fu.getInstance();class eT{startSpan(t,r,n=Rx.active()){if(r?.root)return new Dd;const o=n&&QA(n);return zre(o)&&zd(o)?new Dd(o):new Dd}startActiveSpan(t,r,n,o){let a,i,s;if(arguments.length<2)return;arguments.length===2?s=r:arguments.length===3?(a=r,s=n):(a=r,i=n,s=o);const c=i??Rx.active(),u=this.startSpan(t,a,c),d=jx(c,u);return Rx.with(d,s,void 0,u)}}function zre(e){return e!==null&&typeof e=="object"&&"spanId"in e&&typeof e.spanId=="string"&&"traceId"in e&&typeof e.traceId=="string"&&"traceFlags"in e&&typeof e.traceFlags=="number"}const Bre=new eT;class tT{constructor(t,r,n,o){this._provider=t,this.name=r,this.version=n,this.options=o}startSpan(t,r,n){return this._getTracer().startSpan(t,r,n)}startActiveSpan(t,r,n,o){const a=this._getTracer();return Reflect.apply(a.startActiveSpan,a,arguments)}_getTracer(){if(this._delegate)return this._delegate;const t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):Bre}}class Ure{getTracer(t,r,n){return new eT}}const Fre=new Ure;class Px{getTracer(t,r,n){var o;return(o=this.getDelegateTracer(t,r,n))!==null&&o!==void 0?o:new tT(this,t,r,n)}getDelegate(){var t;return(t=this._delegate)!==null&&t!==void 0?t:Fre}setDelegate(t){this._delegate=t}getDelegateTracer(t,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getTracer(t,r,n)}}var Bd;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Bd||(Bd={}));var Ud;(function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER"})(Ud||(Ud={}));var Ss;(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"})(Ss||(Ss={}));const Ix="[_0-9a-z-*/]",qre=`[a-z]${Ix}{0,255}`,Hre=`[a-z0-9]${Ix}{0,240}@[a-z]${Ix}{0,13}`,Vre=new RegExp(`^(?:${qre}|${Hre})$`),Wre=/^[ -~]{0,255}[!-~]$/,Yre=/,|=/;function Gre(e){return Vre.test(e)}function Jre(e){return Wre.test(e)&&!Yre.test(e)}const rT=32,Kre=512,nT=",",oT="=";class Pk{constructor(t){this._internalState=new Map,t&&this._parse(t)}set(t,r){const n=this._clone();return n._internalState.has(t)&&n._internalState.delete(t),n._internalState.set(t,r),n}unset(t){const r=this._clone();return r._internalState.delete(t),r}get(t){return this._internalState.get(t)}serialize(){return Array.from(this._internalState.keys()).reduceRight((t,r)=>(t.push(r+oT+this.get(r)),t),[]).join(nT)}_parse(t){t.length>Kre||(this._internalState=t.split(nT).reduceRight((r,n)=>{const o=n.trim(),a=o.indexOf(oT);if(a!==-1){const i=o.slice(0,a),s=o.slice(a+1,n.length);Gre(i)&&Jre(s)&&r.set(i,s)}return r},new Map),this._internalState.size>rT&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,rT))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const t=new Pk;return t._internalState=new Map(this._internalState),t}}function Qre(e){return new Pk(e)}const qo=fu.getInstance(),ht=Ko.instance();class Zre{getMeter(t,r,n){return YA}}const Xre=new Zre,$x="metrics";class Ik{constructor(){}static getInstance(){return this._instance||(this._instance=new Ik),this._instance}setGlobalMeterProvider(t){return Id($x,t,Ko.instance())}getMeterProvider(){return jl($x)||Xre}getMeter(t,r,n){return this.getMeterProvider().getMeter(t,r,n)}disable(){$d($x,Ko.instance())}}const dg=Ik.getInstance();class ene{inject(t,r){}extract(t,r){return t}fields(){return[]}}const Mx=cg("OpenTelemetry Baggage Key");function aT(e){return e.getValue(Mx)||void 0}function tne(){return aT(fu.getInstance().active())}function rne(e,t){return e.setValue(Mx,t)}function nne(e){return e.deleteValue(Mx)}const Dx="propagation",one=new ene;class $k{constructor(){this.createBaggage=gre,this.getBaggage=aT,this.getActiveBaggage=tne,this.setBaggage=rne,this.deleteBaggage=nne}static getInstance(){return this._instance||(this._instance=new $k),this._instance}setGlobalPropagator(t){return Id(Dx,t,Ko.instance())}inject(t,r,n=KA){return this._getGlobalPropagator().inject(t,r,n)}extract(t,r,n=JA){return this._getGlobalPropagator().extract(t,r,n)}fields(){return this._getGlobalPropagator().fields()}disable(){$d(Dx,Ko.instance())}_getGlobalPropagator(){return jl(Dx)||one}}const Rl=$k.getInstance(),zx="trace";class Mk{constructor(){this._proxyTracerProvider=new Px,this.wrapSpanContext=Dre,this.isSpanContextValid=zd,this.deleteSpan=$re,this.getSpan=Lx,this.getActiveSpan=Ire,this.getSpanContext=QA,this.setSpan=jx,this.setSpanContext=Mre}static getInstance(){return this._instance||(this._instance=new Mk),this._instance}setGlobalTracerProvider(t){const r=Id(zx,this._proxyTracerProvider,Ko.instance());return r&&this._proxyTracerProvider.setDelegate(t),r}getTracerProvider(){return jl(zx)||this._proxyTracerProvider}getTracer(t,r){return this.getTracerProvider().getTracer(t,r)}disable(){$d(zx,Ko.instance()),this._proxyTracerProvider=new Px}}const Nn=Mk.getInstance(),ane={context:qo,diag:ht,metrics:dg,propagation:Rl,trace:Nn},ine=Object.freeze(Object.defineProperty({__proto__:null,DiagConsoleLogger:bre,get DiagLogLevel(){return Zn},INVALID_SPANID:Ax,INVALID_SPAN_CONTEXT:_x,INVALID_TRACEID:Tx,ProxyTracer:tT,ProxyTracerProvider:Px,ROOT_CONTEXT:Nl,get SamplingDecision(){return Bd},get SpanKind(){return Ud},get SpanStatusCode(){return Ss},get TraceFlags(){return da},get ValueType(){return kx},baggageEntryMetadataFromString:WA,context:qo,createContextKey:cg,createNoopMeter:GA,createTraceState:Qre,default:ane,defaultTextMapGetter:JA,defaultTextMapSetter:KA,diag:ht,isSpanContextValid:zd,isValidSpanId:XA,isValidTraceId:Nx,metrics:dg,propagation:Rl,trace:Nn},Symbol.toStringTag,{value:"Module"})),iT=cg("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function sT(e){return e.setValue(iT,!0)}function Bx(e){return e.getValue(iT)===!0}const sne="=",lT=";",cT=",",Ux="baggage",pT=180,uT=4096,dT=8192;function lne(e){return e.reduce((t,r)=>{const n=`${t}${t!==""?cT:""}${r}`;return n.length>dT?t:n},"")}function cne(e){return e.getAllEntries().map(([t,r])=>{let n=`${encodeURIComponent(t)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(n+=lT+r.metadata.toString()),n})}function pne(e){if(!e)return;const t=e.indexOf(lT),r=t===-1?e:e.substring(0,t),n=r.indexOf(sne);if(n<=0)return;const o=r.substring(0,n).trim(),a=r.substring(n+1).trim();if(!o||!a)return;let i,s;try{i=decodeURIComponent(o),s=decodeURIComponent(a)}catch{return}let c;if(t!==-1&&t<e.length-1){const u=e.substring(t+1);c=WA(u)}return{key:i,value:s,metadata:c}}function hT(e,t,r,n){let o=0;for(;o<e.length&&r<pT;){const a=e.indexOf(cT,o),i=a===-1?e.length:a,s=i-o;if(s<=uT){const c=pne(e.substring(o,i));if(c){const u=(r===0?0:1)+s;if(n+u>dT)break;t[c.key]=c.metadata?{value:c.value,metadata:c.metadata}:{value:c.value},r++,n+=u}}if(a===-1)break;o=a+1}return[r,n]}class une{inject(t,r,n){const o=Rl.getBaggage(t);if(!o||Bx(t))return;const a=cne(o).filter(s=>s.length<=uT).slice(0,pT),i=lne(a);i.length>0&&n.set(r,Ux,i)}extract(t,r,n){const o=n.get(r,Ux);if(!o)return t;const a={};let i=0,s=0;if(Array.isArray(o))for(let c=0;c<o.length;c++)[i,s]=hT(o[c],a,i,s);else[i]=hT(o,a,i,s);return i===0?t:Rl.setBaggage(t,Rl.createBaggage(a))}fields(){return[Ux]}}function Fd(e){const t={};if(typeof e!="object"||e==null)return t;for(const r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;if(!dne(r)){ht.warn(`Invalid attribute key: ${r}`);continue}const n=e[r];if(!fT(n)){ht.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(n)?t[r]=n.slice():t[r]=n}return t}function dne(e){return typeof e=="string"&&e!==""}function fT(e){return e==null?!0:Array.isArray(e)?hne(e):mT(typeof e)}function hne(e){let t;for(const r of e){if(r==null)continue;const n=typeof r;if(n!==t){if(!t){if(mT(n)){t=n;continue}return!1}return!1}}return!0}function mT(e){switch(e){case"number":case"boolean":case"string":return!0}return!1}function fne(){return e=>{ht.error(mne(e))}}function mne(e){return typeof e=="string"?e:JSON.stringify(gne(e))}function gne(e){const t={};let r=e;for(;r!==null;)Object.getOwnPropertyNames(r).forEach(n=>{if(t[n])return;const o=r[n];o&&(t[n]=String(o))}),r=Object.getPrototypeOf(r);return t}let bne=fne();function Pl(e){try{bne(e)}catch{}}const yne="2.8.0";function Gr(e){let t={};const r=e.length;for(let n=0;n<r;n++){const o=e[n];o&&(t[String(o).toUpperCase().replace(/[-.]/g,"_")]=o)}return t}const gT="aws.lambda.invoked_arn",bT="db.system",yT="db.connection_string",vT="db.user",xT="db.jdbc.driver_classname",wT="db.name",ST="db.statement",CT="db.operation",kT="db.mssql.instance_name",ET="db.cassandra.keyspace",AT="db.cassandra.page_size",TT="db.cassandra.consistency_level",_T="db.cassandra.table",OT="db.cassandra.idempotence",LT="db.cassandra.speculative_execution_count",jT="db.cassandra.coordinator.id",NT="db.cassandra.coordinator.dc",RT="db.hbase.namespace",PT="db.redis.database_index",IT="db.mongodb.collection",$T="db.sql.table",MT="exception.type",DT="exception.message",zT="exception.stacktrace",BT="exception.escaped",UT="faas.trigger",FT="faas.execution",qT="faas.document.collection",HT="faas.document.operation",VT="faas.document.time",WT="faas.document.name",YT="faas.time",GT="faas.cron",JT="faas.coldstart",KT="faas.invoked_name",QT="faas.invoked_provider",ZT="faas.invoked_region",XT="net.transport",e8="net.peer.ip",t8="net.peer.port",r8="net.peer.name",n8="net.host.ip",o8="net.host.port",a8="net.host.name",i8="net.host.connection.type",s8="net.host.connection.subtype",l8="net.host.carrier.name",c8="net.host.carrier.mcc",p8="net.host.carrier.mnc",u8="net.host.carrier.icc",d8="peer.service",h8="enduser.id",f8="enduser.role",m8="enduser.scope",g8="thread.id",b8="thread.name",y8="code.function",v8="code.namespace",x8="code.filepath",w8="code.lineno",S8="http.method",C8="http.url",k8="http.target",E8="http.host",A8="http.scheme",T8="http.status_code",_8="http.flavor",O8="http.user_agent",L8="http.request_content_length",j8="http.request_content_length_uncompressed",N8="http.response_content_length",R8="http.response_content_length_uncompressed",P8="http.server_name",I8="http.route",$8="http.client_ip",M8="aws.dynamodb.table_names",D8="aws.dynamodb.consumed_capacity",z8="aws.dynamodb.item_collection_metrics",B8="aws.dynamodb.provisioned_read_capacity",U8="aws.dynamodb.provisioned_write_capacity",F8="aws.dynamodb.consistent_read",q8="aws.dynamodb.projection",H8="aws.dynamodb.limit",V8="aws.dynamodb.attributes_to_get",W8="aws.dynamodb.index_name",Y8="aws.dynamodb.select",G8="aws.dynamodb.global_secondary_indexes",J8="aws.dynamodb.local_secondary_indexes",K8="aws.dynamodb.exclusive_start_table",Q8="aws.dynamodb.table_count",Z8="aws.dynamodb.scan_forward",X8="aws.dynamodb.segment",e7="aws.dynamodb.total_segments",t7="aws.dynamodb.count",r7="aws.dynamodb.scanned_count",n7="aws.dynamodb.attribute_definitions",o7="aws.dynamodb.global_secondary_index_updates",a7="messaging.system",i7="messaging.destination",s7="messaging.destination_kind",l7="messaging.temp_destination",c7="messaging.protocol",p7="messaging.protocol_version",u7="messaging.url",d7="messaging.message_id",h7="messaging.conversation_id",f7="messaging.message_payload_size_bytes",m7="messaging.message_payload_compressed_size_bytes",g7="messaging.operation",b7="messaging.consumer_id",y7="messaging.rabbitmq.routing_key",v7="messaging.kafka.message_key",x7="messaging.kafka.consumer_group",w7="messaging.kafka.client_id",S7="messaging.kafka.partition",C7="messaging.kafka.tombstone",k7="rpc.system",E7="rpc.service",A7="rpc.method",T7="rpc.grpc.status_code",_7="rpc.jsonrpc.version",O7="rpc.jsonrpc.request_id",L7="rpc.jsonrpc.error_code",j7="rpc.jsonrpc.error_message",N7="message.type",R7="message.id",P7="message.compressed_size",I7="message.uncompressed_size",vne=gT,xne=bT,wne=yT,Sne=vT,Cne=xT,kne=wT,Ene=ST,Ane=CT,Tne=kT,_ne=ET,One=AT,Lne=TT,jne=_T,Nne=OT,Rne=LT,Pne=jT,Ine=NT,$ne=RT,Mne=PT,Dne=IT,zne=$T,Bne=MT,Une=DT,Fne=zT,qne=BT,Hne=UT,Vne=FT,Wne=qT,Yne=HT,Gne=VT,Jne=WT,Kne=YT,Qne=GT,Zne=JT,Xne=KT,eoe=QT,toe=ZT,roe=XT,noe=e8,ooe=t8,aoe=r8,ioe=n8,soe=o8,loe=a8,coe=i8,poe=s8,uoe=l8,doe=c8,hoe=p8,foe=u8,moe=d8,goe=h8,boe=f8,yoe=m8,voe=g8,xoe=b8,woe=y8,Soe=v8,Coe=x8,koe=w8,Eoe=S8,Aoe=C8,Toe=k8,_oe=E8,Ooe=A8,Loe=T8,joe=_8,Noe=O8,Roe=L8,Poe=j8,Ioe=N8,$oe=R8,Moe=P8,Doe=I8,zoe=$8,Boe=M8,Uoe=D8,Foe=z8,qoe=B8,Hoe=U8,Voe=F8,Woe=q8,Yoe=H8,Goe=V8,Joe=W8,Koe=Y8,Qoe=G8,Zoe=J8,Xoe=K8,eae=Q8,tae=Z8,rae=X8,nae=e7,oae=t7,aae=r7,iae=n7,sae=o7,lae=a7,cae=i7,pae=s7,uae=l7,dae=c7,hae=p7,fae=u7,mae=d7,gae=h7,bae=f7,yae=m7,vae=g7,xae=b7,wae=y7,Sae=v7,Cae=x7,kae=w7,Eae=S7,Aae=C7,Tae=k7,_ae=E7,Oae=A7,Lae=T7,jae=_7,Nae=O7,Rae=L7,Pae=j7,Iae=N7,$ae=R7,Mae=P7,Dae=I7,zae=Gr([gT,bT,yT,vT,xT,wT,ST,CT,kT,ET,AT,TT,_T,OT,LT,jT,NT,RT,PT,IT,$T,MT,DT,zT,BT,UT,FT,qT,HT,VT,WT,YT,GT,JT,KT,QT,ZT,XT,e8,t8,r8,n8,o8,a8,i8,s8,l8,c8,p8,u8,d8,h8,f8,m8,g8,b8,y8,v8,x8,w8,S8,C8,k8,E8,A8,T8,_8,O8,L8,j8,N8,R8,P8,I8,$8,M8,D8,z8,B8,U8,F8,q8,H8,V8,W8,Y8,G8,J8,K8,Q8,Z8,X8,e7,t7,r7,n7,o7,a7,i7,s7,l7,c7,p7,u7,d7,h7,f7,m7,g7,b7,y7,v7,x7,w7,S7,C7,k7,E7,A7,T7,_7,O7,L7,j7,N7,R7,P7,I7]),$7="other_sql",M7="mssql",D7="mysql",z7="oracle",B7="db2",U7="postgresql",F7="redshift",q7="hive",H7="cloudscape",V7="hsqldb",W7="progress",Y7="maxdb",G7="hanadb",J7="ingres",K7="firstsql",Q7="edb",Z7="cache",X7="adabas",e_="firebird",t_="derby",r_="filemaker",n_="informix",o_="instantdb",a_="interbase",i_="mariadb",s_="netezza",l_="pervasive",c_="pointbase",p_="sqlite",u_="sybase",d_="teradata",h_="vertica",f_="h2",m_="coldfusion",g_="cassandra",b_="hbase",y_="mongodb",v_="redis",x_="couchbase",w_="couchdb",S_="cosmosdb",C_="dynamodb",k_="neo4j",E_="geode",A_="elasticsearch",T_="memcached",__="cockroachdb",Bae=$7,Uae=M7,Fae=D7,qae=z7,Hae=B7,Vae=U7,Wae=F7,Yae=q7,Gae=H7,Jae=V7,Kae=W7,Qae=Y7,Zae=G7,Xae=J7,eie=K7,tie=Q7,rie=Z7,nie=X7,oie=e_,aie=t_,iie=r_,sie=n_,lie=o_,cie=a_,pie=i_,uie=s_,die=l_,hie=c_,fie=p_,mie=u_,gie=d_,bie=h_,yie=f_,vie=m_,xie=g_,wie=b_,Sie=y_,Cie=v_,kie=x_,Eie=w_,Aie=S_,Tie=C_,_ie=k_,Oie=E_,Lie=A_,jie=T_,Nie=__,Rie=Gr([$7,M7,D7,z7,B7,U7,F7,q7,H7,V7,W7,Y7,G7,J7,K7,Q7,Z7,X7,e_,t_,r_,n_,o_,a_,i_,s_,l_,c_,p_,u_,d_,h_,f_,m_,g_,b_,y_,v_,x_,w_,S_,C_,k_,E_,A_,T_,__]),O_="all",L_="each_quorum",j_="quorum",N_="local_quorum",R_="one",P_="two",I_="three",$_="local_one",M_="any",D_="serial",z_="local_serial",Pie=O_,Iie=L_,$ie=j_,Mie=N_,Die=R_,zie=P_,Bie=I_,Uie=$_,Fie=M_,qie=D_,Hie=z_,Vie=Gr([O_,L_,j_,N_,R_,P_,I_,$_,M_,D_,z_]),B_="datasource",U_="http",F_="pubsub",q_="timer",H_="other",Wie=B_,Yie=U_,Gie=F_,Jie=q_,Kie=H_,Qie=Gr([B_,U_,F_,q_,H_]),V_="insert",W_="edit",Y_="delete",Zie=V_,Xie=W_,ese=Y_,tse=Gr([V_,W_,Y_]),G_="alibaba_cloud",J_="aws",K_="azure",Q_="gcp",rse=G_,nse=J_,ose=K_,ase=Q_,ise=Gr([G_,J_,K_,Q_]),Z_="ip_tcp",X_="ip_udp",eO="ip",tO="unix",rO="pipe",nO="inproc",oO="other",sse=Z_,lse=X_,cse=eO,pse=tO,use=rO,dse=nO,hse=oO,fse=Gr([Z_,X_,eO,tO,rO,nO,oO]),aO="wifi",iO="wired",sO="cell",lO="unavailable",cO="unknown",mse=aO,gse=iO,bse=sO,yse=lO,vse=cO,xse=Gr([aO,iO,sO,lO,cO]),pO="gprs",uO="edge",dO="umts",hO="cdma",fO="evdo_0",mO="evdo_a",gO="cdma2000_1xrtt",bO="hsdpa",yO="hsupa",vO="hspa",xO="iden",wO="evdo_b",SO="lte",CO="ehrpd",kO="hspap",EO="gsm",AO="td_scdma",TO="iwlan",_O="nr",OO="nrnsa",LO="lte_ca",wse=pO,Sse=uO,Cse=dO,kse=hO,Ese=fO,Ase=mO,Tse=gO,_se=bO,Ose=yO,Lse=vO,jse=xO,Nse=wO,Rse=SO,Pse=CO,Ise=kO,$se=EO,Mse=AO,Dse=TO,zse=_O,Bse=OO,Use=LO,Fse=Gr([pO,uO,dO,hO,fO,mO,gO,bO,yO,vO,xO,wO,SO,CO,kO,EO,AO,TO,_O,OO,LO]),jO="1.0",NO="1.1",RO="2.0",PO="SPDY",IO="QUIC",qse=jO,Hse=NO,Vse=RO,Wse=PO,Yse=IO,Gse={HTTP_1_0:jO,HTTP_1_1:NO,HTTP_2_0:RO,SPDY:PO,QUIC:IO},$O="queue",MO="topic",Jse=$O,Kse=MO,Qse=Gr([$O,MO]),DO="receive",zO="process",Zse=DO,Xse=zO,ele=Gr([DO,zO]),BO=0,UO=1,FO=2,qO=3,HO=4,VO=5,WO=6,YO=7,GO=8,JO=9,KO=10,QO=11,ZO=12,XO=13,eL=14,tL=15,rL=16,tle=BO,rle=UO,nle=FO,ole=qO,ale=HO,ile=VO,sle=WO,lle=YO,cle=GO,ple=JO,ule=KO,dle=QO,hle=ZO,fle=XO,mle=eL,gle=tL,ble=rL,yle={OK:BO,CANCELLED:UO,UNKNOWN:FO,INVALID_ARGUMENT:qO,DEADLINE_EXCEEDED:HO,NOT_FOUND:VO,ALREADY_EXISTS:WO,PERMISSION_DENIED:YO,RESOURCE_EXHAUSTED:GO,FAILED_PRECONDITION:JO,ABORTED:KO,OUT_OF_RANGE:QO,UNIMPLEMENTED:ZO,INTERNAL:XO,UNAVAILABLE:eL,DATA_LOSS:tL,UNAUTHENTICATED:rL},nL="SENT",oL="RECEIVED",vle=nL,xle=oL,wle=Gr([nL,oL]),aL="cloud.provider",iL="cloud.account.id",sL="cloud.region",lL="cloud.availability_zone",cL="cloud.platform",pL="aws.ecs.container.arn",uL="aws.ecs.cluster.arn",dL="aws.ecs.launchtype",hL="aws.ecs.task.arn",fL="aws.ecs.task.family",mL="aws.ecs.task.revision",gL="aws.eks.cluster.arn",bL="aws.log.group.names",yL="aws.log.group.arns",vL="aws.log.stream.names",xL="aws.log.stream.arns",wL="container.name",SL="container.id",CL="container.runtime",kL="container.image.name",EL="container.image.tag",AL="deployment.environment",TL="device.id",_L="device.model.identifier",OL="device.model.name",LL="faas.name",jL="faas.id",NL="faas.version",RL="faas.instance",PL="faas.max_memory",IL="host.id",$L="host.name",ML="host.type",DL="host.arch",zL="host.image.name",BL="host.image.id",UL="host.image.version",FL="k8s.cluster.name",qL="k8s.node.name",HL="k8s.node.uid",VL="k8s.namespace.name",WL="k8s.pod.uid",YL="k8s.pod.name",GL="k8s.container.name",JL="k8s.replicaset.uid",KL="k8s.replicaset.name",QL="k8s.deployment.uid",ZL="k8s.deployment.name",XL="k8s.statefulset.uid",ej="k8s.statefulset.name",tj="k8s.daemonset.uid",rj="k8s.daemonset.name",nj="k8s.job.uid",oj="k8s.job.name",aj="k8s.cronjob.uid",ij="k8s.cronjob.name",sj="os.type",lj="os.description",cj="os.name",pj="os.version",uj="process.pid",dj="process.executable.name",hj="process.executable.path",fj="process.command",mj="process.command_line",gj="process.command_args",bj="process.owner",yj="process.runtime.name",vj="process.runtime.version",xj="process.runtime.description",wj="service.name",Sj="service.namespace",Cj="service.instance.id",kj="service.version",Ej="telemetry.sdk.name",Aj="telemetry.sdk.language",Tj="telemetry.sdk.version",_j="telemetry.auto.version",Oj="webengine.name",Lj="webengine.version",jj="webengine.description",Sle=aL,Cle=iL,kle=sL,Ele=lL,Ale=cL,Tle=pL,_le=uL,Ole=dL,Lle=hL,jle=fL,Nle=mL,Rle=gL,Ple=bL,Ile=yL,$le=vL,Mle=xL,Dle=wL,zle=SL,Ble=CL,Ule=kL,Fle=EL,qle=AL,Hle=TL,Vle=_L,Wle=OL,Yle=LL,Gle=jL,Jle=NL,Kle=RL,Qle=PL,Zle=IL,Xle=$L,ece=ML,tce=DL,rce=zL,nce=BL,oce=UL,ace=FL,ice=qL,sce=HL,lce=VL,cce=WL,pce=YL,uce=GL,dce=JL,hce=KL,fce=QL,mce=ZL,gce=XL,bce=ej,yce=tj,vce=rj,xce=nj,wce=oj,Sce=aj,Cce=ij,kce=sj,Ece=lj,Ace=cj,Tce=pj,_ce=uj,Oce=dj,Lce=hj,jce=fj,Nce=mj,Rce=gj,Pce=bj,Ice=yj,$ce=vj,Mce=xj,Dce=wj,zce=Sj,Bce=Cj,Uce=kj,Fce=Ej,qce=Aj,Hce=Tj,Vce=_j,Wce=Oj,Yce=Lj,Gce=jj,Jce=Gr([aL,iL,sL,lL,cL,pL,uL,dL,hL,fL,mL,gL,bL,yL,vL,xL,wL,SL,CL,kL,EL,AL,TL,_L,OL,LL,jL,NL,RL,PL,IL,$L,ML,DL,zL,BL,UL,FL,qL,HL,VL,WL,YL,GL,JL,KL,QL,ZL,XL,ej,tj,rj,nj,oj,aj,ij,sj,lj,cj,pj,uj,dj,hj,fj,mj,gj,bj,yj,vj,xj,wj,Sj,Cj,kj,Ej,Aj,Tj,_j,Oj,Lj,jj]),Nj="alibaba_cloud",Rj="aws",Pj="azure",Ij="gcp",Kce=Nj,Qce=Rj,Zce=Pj,Xce=Ij,epe=Gr([Nj,Rj,Pj,Ij]),$j="alibaba_cloud_ecs",Mj="alibaba_cloud_fc",Dj="aws_ec2",zj="aws_ecs",Bj="aws_eks",Uj="aws_lambda",Fj="aws_elastic_beanstalk",qj="azure_vm",Hj="azure_container_instances",Vj="azure_aks",Wj="azure_functions",Yj="azure_app_service",Gj="gcp_compute_engine",Jj="gcp_cloud_run",Kj="gcp_kubernetes_engine",Qj="gcp_cloud_functions",Zj="gcp_app_engine",tpe=$j,rpe=Mj,npe=Dj,ope=zj,ape=Bj,ipe=Uj,spe=Fj,lpe=qj,cpe=Hj,ppe=Vj,upe=Wj,dpe=Yj,hpe=Gj,fpe=Jj,mpe=Kj,gpe=Qj,bpe=Zj,ype=Gr([$j,Mj,Dj,zj,Bj,Uj,Fj,qj,Hj,Vj,Wj,Yj,Gj,Jj,Kj,Qj,Zj]),Xj="ec2",eN="fargate",vpe=Xj,xpe=eN,wpe=Gr([Xj,eN]),tN="amd64",rN="arm32",nN="arm64",oN="ia64",aN="ppc32",iN="ppc64",sN="x86",Spe=tN,Cpe=rN,kpe=nN,Epe=oN,Ape=aN,Tpe=iN,_pe=sN,Ope=Gr([tN,rN,nN,oN,aN,iN,sN]),lN="windows",cN="linux",pN="darwin",uN="freebsd",dN="netbsd",hN="openbsd",fN="dragonflybsd",mN="hpux",gN="aix",bN="solaris",yN="z_os",Lpe=lN,jpe=cN,Npe=pN,Rpe=uN,Ppe=dN,Ipe=hN,$pe=fN,Mpe=mN,Dpe=gN,zpe=bN,Bpe=yN,Upe=Gr([lN,cN,pN,uN,dN,hN,fN,mN,gN,bN,yN]),vN="cpp",xN="dotnet",wN="erlang",SN="go",CN="java",kN="nodejs",EN="php",AN="python",TN="ruby",_N="webjs",Fpe=vN,qpe=xN,Hpe=wN,Vpe=SN,Wpe=CN,Ype=kN,Gpe=EN,Jpe=AN,Kpe=TN,Qpe=_N,Zpe=Gr([vN,xN,wN,SN,CN,kN,EN,AN,TN,_N]),Xpe="aspnetcore.diagnostics.exception.result",eue="aborted",tue="handled",rue="skipped",nue="unhandled",oue="aspnetcore.diagnostics.handler.type",aue="aspnetcore.rate_limiting.policy",iue="aspnetcore.rate_limiting.result",sue="acquired",lue="endpoint_limiter",cue="global_limiter",pue="request_canceled",uue="aspnetcore.request.is_unhandled",due="aspnetcore.routing.is_fallback",hue="aspnetcore.routing.match_status",fue="failure",mue="success",gue="aspnetcore.user.is_authenticated",bue="client.address",yue="client.port",vue="code.column.number",xue="code.file.path",wue="code.function.name",Sue="code.line.number",Cue="code.stacktrace",kue="db.collection.name",Eue="db.namespace",Aue="db.operation.batch.size",Tue="db.operation.name",_ue="db.query.summary",Oue="db.query.text",Lue="db.response.status_code",jue="db.stored_procedure.name",Nue="db.system.name",Rue="mariadb",Pue="microsoft.sql_server",Iue="mysql",$ue="postgresql",Mue="dotnet.gc.heap.generation",Due="gen0",zue="gen1",Bue="gen2",Uue="loh",Fue="poh",que="error.type",Hue="_OTHER",Vue="exception.escaped",hg="exception.message",ON="exception.stacktrace",fg="exception.type",Wue=e=>`http.request.header.${e}`,Yue="http.request.method",Gue="_OTHER",Jue="CONNECT",Kue="DELETE",Que="GET",Zue="HEAD",Xue="OPTIONS",ede="PATCH",tde="POST",rde="PUT",nde="TRACE",ode="http.request.method_original",ade="http.request.resend_count",ide=e=>`http.response.header.${e}`,sde="http.response.status_code",lde="http.route",cde="jvm.gc.action",pde="jvm.gc.name",ude="jvm.memory.pool.name",dde="jvm.memory.type",hde="heap",fde="non_heap",mde="jvm.thread.daemon",gde="jvm.thread.state",bde="blocked",yde="new",vde="runnable",xde="terminated",wde="timed_waiting",Sde="waiting",Cde="network.local.address",kde="network.local.port",Ede="network.peer.address",Ade="network.peer.port",Tde="network.protocol.name",_de="network.protocol.version",Ode="network.transport",Lde="pipe",jde="quic",Nde="tcp",Rde="udp",Pde="unix",Ide="network.type",$de="ipv4",Mde="ipv6",Dde="otel.scope.name",zde="otel.scope.version",Bde="otel.status_code",Ude="ERROR",Fde="OK",qde="otel.status_description",Hde="server.address",Vde="server.port",Wde="service.instance.id",Fx="service.name",Yde="service.namespace",LN="service.version",Gde="signalr.connection.status",Jde="app_shutdown",Kde="normal_closure",Qde="timeout",Zde="signalr.transport",Xde="long_polling",ehe="server_sent_events",the="web_sockets",mg="telemetry.sdk.language",rhe="cpp",nhe="dotnet",ohe="erlang",ahe="go",ihe="java",she="nodejs",lhe="php",che="python",phe="ruby",uhe="rust",dhe="swift",jN="webjs",gg="telemetry.sdk.name",bg="telemetry.sdk.version",hhe="url.fragment",fhe="url.full",mhe="url.path",ghe="url.query",bhe="url.scheme",yhe="user_agent.original",vhe="aspnetcore.diagnostics.exceptions",xhe="aspnetcore.rate_limiting.active_request_leases",whe="aspnetcore.rate_limiting.queued_requests",She="aspnetcore.rate_limiting.request.time_in_queue",Che="aspnetcore.rate_limiting.request_lease.duration",khe="aspnetcore.rate_limiting.requests",Ehe="aspnetcore.routing.match_attempts",Ahe="db.client.operation.duration",The="dotnet.assembly.count",_he="dotnet.exceptions",Ohe="dotnet.gc.collections",Lhe="dotnet.gc.heap.total_allocated",jhe="dotnet.gc.last_collection.heap.fragmentation.size",Nhe="dotnet.gc.last_collection.heap.size",Rhe="dotnet.gc.last_collection.memory.committed_size",Phe="dotnet.gc.pause.time",Ihe="dotnet.jit.compilation.time",$he="dotnet.jit.compiled_il.size",Mhe="dotnet.jit.compiled_methods",Dhe="dotnet.monitor.lock_contentions",zhe="dotnet.process.cpu.count",Bhe="dotnet.process.cpu.time",Uhe="dotnet.process.memory.working_set",Fhe="dotnet.thread_pool.queue.length",qhe="dotnet.thread_pool.thread.count",Hhe="dotnet.thread_pool.work_item.count",Vhe="dotnet.timer.count",Whe="http.client.request.duration",Yhe="http.server.request.duration",Ghe="jvm.class.count",Jhe="jvm.class.loaded",Khe="jvm.class.unloaded",Qhe="jvm.cpu.count",Zhe="jvm.cpu.recent_utilization",Xhe="jvm.cpu.time",efe="jvm.gc.duration",tfe="jvm.memory.committed",rfe="jvm.memory.limit",nfe="jvm.memory.used",ofe="jvm.memory.used_after_last_gc",afe="jvm.thread.count",ife="kestrel.active_connections",sfe="kestrel.active_tls_handshakes",lfe="kestrel.connection.duration",cfe="kestrel.queued_connections",pfe="kestrel.queued_requests",ufe="kestrel.rejected_connections",dfe="kestrel.tls_handshake.duration",hfe="kestrel.upgraded_connections",ffe="signalr.server.active_connections",mfe="signalr.server.connection.duration",gfe="exception",bfe=Object.freeze(Object.defineProperty({__proto__:null,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED:eue,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED:tue,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED:rue,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED:nue,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED:sue,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER:lue,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER:cue,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED:pue,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE:fue,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS:mue,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT:Xpe,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE:oue,ATTR_ASPNETCORE_RATE_LIMITING_POLICY:aue,ATTR_ASPNETCORE_RATE_LIMITING_RESULT:iue,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED:uue,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK:due,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS:hue,ATTR_ASPNETCORE_USER_IS_AUTHENTICATED:gue,ATTR_CLIENT_ADDRESS:bue,ATTR_CLIENT_PORT:yue,ATTR_CODE_COLUMN_NUMBER:vue,ATTR_CODE_FILE_PATH:xue,ATTR_CODE_FUNCTION_NAME:wue,ATTR_CODE_LINE_NUMBER:Sue,ATTR_CODE_STACKTRACE:Cue,ATTR_DB_COLLECTION_NAME:kue,ATTR_DB_NAMESPACE:Eue,ATTR_DB_OPERATION_BATCH_SIZE:Aue,ATTR_DB_OPERATION_NAME:Tue,ATTR_DB_QUERY_SUMMARY:_ue,ATTR_DB_QUERY_TEXT:Oue,ATTR_DB_RESPONSE_STATUS_CODE:Lue,ATTR_DB_STORED_PROCEDURE_NAME:jue,ATTR_DB_SYSTEM_NAME:Nue,ATTR_DOTNET_GC_HEAP_GENERATION:Mue,ATTR_ERROR_TYPE:que,ATTR_EXCEPTION_ESCAPED:Vue,ATTR_EXCEPTION_MESSAGE:hg,ATTR_EXCEPTION_STACKTRACE:ON,ATTR_EXCEPTION_TYPE:fg,ATTR_HTTP_REQUEST_HEADER:Wue,ATTR_HTTP_REQUEST_METHOD:Yue,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:ode,ATTR_HTTP_REQUEST_RESEND_COUNT:ade,ATTR_HTTP_RESPONSE_HEADER:ide,ATTR_HTTP_RESPONSE_STATUS_CODE:sde,ATTR_HTTP_ROUTE:lde,ATTR_JVM_GC_ACTION:cde,ATTR_JVM_GC_NAME:pde,ATTR_JVM_MEMORY_POOL_NAME:ude,ATTR_JVM_MEMORY_TYPE:dde,ATTR_JVM_THREAD_DAEMON:mde,ATTR_JVM_THREAD_STATE:gde,ATTR_NETWORK_LOCAL_ADDRESS:Cde,ATTR_NETWORK_LOCAL_PORT:kde,ATTR_NETWORK_PEER_ADDRESS:Ede,ATTR_NETWORK_PEER_PORT:Ade,ATTR_NETWORK_PROTOCOL_NAME:Tde,ATTR_NETWORK_PROTOCOL_VERSION:_de,ATTR_NETWORK_TRANSPORT:Ode,ATTR_NETWORK_TYPE:Ide,ATTR_OTEL_SCOPE_NAME:Dde,ATTR_OTEL_SCOPE_VERSION:zde,ATTR_OTEL_STATUS_CODE:Bde,ATTR_OTEL_STATUS_DESCRIPTION:qde,ATTR_SERVER_ADDRESS:Hde,ATTR_SERVER_PORT:Vde,ATTR_SERVICE_INSTANCE_ID:Wde,ATTR_SERVICE_NAME:Fx,ATTR_SERVICE_NAMESPACE:Yde,ATTR_SERVICE_VERSION:LN,ATTR_SIGNALR_CONNECTION_STATUS:Gde,ATTR_SIGNALR_TRANSPORT:Zde,ATTR_TELEMETRY_SDK_LANGUAGE:mg,ATTR_TELEMETRY_SDK_NAME:gg,ATTR_TELEMETRY_SDK_VERSION:bg,ATTR_URL_FRAGMENT:hhe,ATTR_URL_FULL:fhe,ATTR_URL_PATH:mhe,ATTR_URL_QUERY:ghe,ATTR_URL_SCHEME:bhe,ATTR_USER_AGENT_ORIGINAL:yhe,AWSECSLAUNCHTYPEVALUES_EC2:vpe,AWSECSLAUNCHTYPEVALUES_FARGATE:xpe,AwsEcsLaunchtypeValues:wpe,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:tpe,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:rpe,CLOUDPLATFORMVALUES_AWS_EC2:npe,CLOUDPLATFORMVALUES_AWS_ECS:ope,CLOUDPLATFORMVALUES_AWS_EKS:ape,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:spe,CLOUDPLATFORMVALUES_AWS_LAMBDA:ipe,CLOUDPLATFORMVALUES_AZURE_AKS:ppe,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:dpe,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:cpe,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:upe,CLOUDPLATFORMVALUES_AZURE_VM:lpe,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:bpe,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:gpe,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:fpe,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:hpe,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:mpe,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:Kce,CLOUDPROVIDERVALUES_AWS:Qce,CLOUDPROVIDERVALUES_AZURE:Zce,CLOUDPROVIDERVALUES_GCP:Xce,CloudPlatformValues:ype,CloudProviderValues:epe,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:Pie,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:Fie,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:Iie,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:Uie,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:Mie,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:Hie,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:Die,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:$ie,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:qie,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:Bie,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:zie,DBSYSTEMVALUES_ADABAS:nie,DBSYSTEMVALUES_CACHE:rie,DBSYSTEMVALUES_CASSANDRA:xie,DBSYSTEMVALUES_CLOUDSCAPE:Gae,DBSYSTEMVALUES_COCKROACHDB:Nie,DBSYSTEMVALUES_COLDFUSION:vie,DBSYSTEMVALUES_COSMOSDB:Aie,DBSYSTEMVALUES_COUCHBASE:kie,DBSYSTEMVALUES_COUCHDB:Eie,DBSYSTEMVALUES_DB2:Hae,DBSYSTEMVALUES_DERBY:aie,DBSYSTEMVALUES_DYNAMODB:Tie,DBSYSTEMVALUES_EDB:tie,DBSYSTEMVALUES_ELASTICSEARCH:Lie,DBSYSTEMVALUES_FILEMAKER:iie,DBSYSTEMVALUES_FIREBIRD:oie,DBSYSTEMVALUES_FIRSTSQL:eie,DBSYSTEMVALUES_GEODE:Oie,DBSYSTEMVALUES_H2:yie,DBSYSTEMVALUES_HANADB:Zae,DBSYSTEMVALUES_HBASE:wie,DBSYSTEMVALUES_HIVE:Yae,DBSYSTEMVALUES_HSQLDB:Jae,DBSYSTEMVALUES_INFORMIX:sie,DBSYSTEMVALUES_INGRES:Xae,DBSYSTEMVALUES_INSTANTDB:lie,DBSYSTEMVALUES_INTERBASE:cie,DBSYSTEMVALUES_MARIADB:pie,DBSYSTEMVALUES_MAXDB:Qae,DBSYSTEMVALUES_MEMCACHED:jie,DBSYSTEMVALUES_MONGODB:Sie,DBSYSTEMVALUES_MSSQL:Uae,DBSYSTEMVALUES_MYSQL:Fae,DBSYSTEMVALUES_NEO4J:_ie,DBSYSTEMVALUES_NETEZZA:uie,DBSYSTEMVALUES_ORACLE:qae,DBSYSTEMVALUES_OTHER_SQL:Bae,DBSYSTEMVALUES_PERVASIVE:die,DBSYSTEMVALUES_POINTBASE:hie,DBSYSTEMVALUES_POSTGRESQL:Vae,DBSYSTEMVALUES_PROGRESS:Kae,DBSYSTEMVALUES_REDIS:Cie,DBSYSTEMVALUES_REDSHIFT:Wae,DBSYSTEMVALUES_SQLITE:fie,DBSYSTEMVALUES_SYBASE:mie,DBSYSTEMVALUES_TERADATA:gie,DBSYSTEMVALUES_VERTICA:bie,DB_SYSTEM_NAME_VALUE_MARIADB:Rue,DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER:Pue,DB_SYSTEM_NAME_VALUE_MYSQL:Iue,DB_SYSTEM_NAME_VALUE_POSTGRESQL:$ue,DOTNET_GC_HEAP_GENERATION_VALUE_GEN0:Due,DOTNET_GC_HEAP_GENERATION_VALUE_GEN1:zue,DOTNET_GC_HEAP_GENERATION_VALUE_GEN2:Bue,DOTNET_GC_HEAP_GENERATION_VALUE_LOH:Uue,DOTNET_GC_HEAP_GENERATION_VALUE_POH:Fue,DbCassandraConsistencyLevelValues:Vie,DbSystemValues:Rie,ERROR_TYPE_VALUE_OTHER:Hue,EVENT_EXCEPTION:gfe,FAASDOCUMENTOPERATIONVALUES_DELETE:ese,FAASDOCUMENTOPERATIONVALUES_EDIT:Xie,FAASDOCUMENTOPERATIONVALUES_INSERT:Zie,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:rse,FAASINVOKEDPROVIDERVALUES_AWS:nse,FAASINVOKEDPROVIDERVALUES_AZURE:ose,FAASINVOKEDPROVIDERVALUES_GCP:ase,FAASTRIGGERVALUES_DATASOURCE:Wie,FAASTRIGGERVALUES_HTTP:Yie,FAASTRIGGERVALUES_OTHER:Kie,FAASTRIGGERVALUES_PUBSUB:Gie,FAASTRIGGERVALUES_TIMER:Jie,FaasDocumentOperationValues:tse,FaasInvokedProviderValues:ise,FaasTriggerValues:Qie,HOSTARCHVALUES_AMD64:Spe,HOSTARCHVALUES_ARM32:Cpe,HOSTARCHVALUES_ARM64:kpe,HOSTARCHVALUES_IA64:Epe,HOSTARCHVALUES_PPC32:Ape,HOSTARCHVALUES_PPC64:Tpe,HOSTARCHVALUES_X86:_pe,HTTPFLAVORVALUES_HTTP_1_0:qse,HTTPFLAVORVALUES_HTTP_1_1:Hse,HTTPFLAVORVALUES_HTTP_2_0:Vse,HTTPFLAVORVALUES_QUIC:Yse,HTTPFLAVORVALUES_SPDY:Wse,HTTP_REQUEST_METHOD_VALUE_CONNECT:Jue,HTTP_REQUEST_METHOD_VALUE_DELETE:Kue,HTTP_REQUEST_METHOD_VALUE_GET:Que,HTTP_REQUEST_METHOD_VALUE_HEAD:Zue,HTTP_REQUEST_METHOD_VALUE_OPTIONS:Xue,HTTP_REQUEST_METHOD_VALUE_OTHER:Gue,HTTP_REQUEST_METHOD_VALUE_PATCH:ede,HTTP_REQUEST_METHOD_VALUE_POST:tde,HTTP_REQUEST_METHOD_VALUE_PUT:rde,HTTP_REQUEST_METHOD_VALUE_TRACE:nde,HostArchValues:Ope,HttpFlavorValues:Gse,JVM_MEMORY_TYPE_VALUE_HEAP:hde,JVM_MEMORY_TYPE_VALUE_NON_HEAP:fde,JVM_THREAD_STATE_VALUE_BLOCKED:bde,JVM_THREAD_STATE_VALUE_NEW:yde,JVM_THREAD_STATE_VALUE_RUNNABLE:vde,JVM_THREAD_STATE_VALUE_TERMINATED:xde,JVM_THREAD_STATE_VALUE_TIMED_WAITING:wde,JVM_THREAD_STATE_VALUE_WAITING:Sde,MESSAGETYPEVALUES_RECEIVED:xle,MESSAGETYPEVALUES_SENT:vle,MESSAGINGDESTINATIONKINDVALUES_QUEUE:Jse,MESSAGINGDESTINATIONKINDVALUES_TOPIC:Kse,MESSAGINGOPERATIONVALUES_PROCESS:Xse,MESSAGINGOPERATIONVALUES_RECEIVE:Zse,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS:vhe,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES:xhe,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS:whe,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS:khe,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION:Che,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE:She,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS:Ehe,METRIC_DB_CLIENT_OPERATION_DURATION:Ahe,METRIC_DOTNET_ASSEMBLY_COUNT:The,METRIC_DOTNET_EXCEPTIONS:_he,METRIC_DOTNET_GC_COLLECTIONS:Ohe,METRIC_DOTNET_GC_HEAP_TOTAL_ALLOCATED:Lhe,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_FRAGMENTATION_SIZE:jhe,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_SIZE:Nhe,METRIC_DOTNET_GC_LAST_COLLECTION_MEMORY_COMMITTED_SIZE:Rhe,METRIC_DOTNET_GC_PAUSE_TIME:Phe,METRIC_DOTNET_JIT_COMPILATION_TIME:Ihe,METRIC_DOTNET_JIT_COMPILED_IL_SIZE:$he,METRIC_DOTNET_JIT_COMPILED_METHODS:Mhe,METRIC_DOTNET_MONITOR_LOCK_CONTENTIONS:Dhe,METRIC_DOTNET_PROCESS_CPU_COUNT:zhe,METRIC_DOTNET_PROCESS_CPU_TIME:Bhe,METRIC_DOTNET_PROCESS_MEMORY_WORKING_SET:Uhe,METRIC_DOTNET_THREAD_POOL_QUEUE_LENGTH:Fhe,METRIC_DOTNET_THREAD_POOL_THREAD_COUNT:qhe,METRIC_DOTNET_THREAD_POOL_WORK_ITEM_COUNT:Hhe,METRIC_DOTNET_TIMER_COUNT:Vhe,METRIC_HTTP_CLIENT_REQUEST_DURATION:Whe,METRIC_HTTP_SERVER_REQUEST_DURATION:Yhe,METRIC_JVM_CLASS_COUNT:Ghe,METRIC_JVM_CLASS_LOADED:Jhe,METRIC_JVM_CLASS_UNLOADED:Khe,METRIC_JVM_CPU_COUNT:Qhe,METRIC_JVM_CPU_RECENT_UTILIZATION:Zhe,METRIC_JVM_CPU_TIME:Xhe,METRIC_JVM_GC_DURATION:efe,METRIC_JVM_MEMORY_COMMITTED:tfe,METRIC_JVM_MEMORY_LIMIT:rfe,METRIC_JVM_MEMORY_USED:nfe,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC:ofe,METRIC_JVM_THREAD_COUNT:afe,METRIC_KESTREL_ACTIVE_CONNECTIONS:ife,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES:sfe,METRIC_KESTREL_CONNECTION_DURATION:lfe,METRIC_KESTREL_QUEUED_CONNECTIONS:cfe,METRIC_KESTREL_QUEUED_REQUESTS:pfe,METRIC_KESTREL_REJECTED_CONNECTIONS:ufe,METRIC_KESTREL_TLS_HANDSHAKE_DURATION:dfe,METRIC_KESTREL_UPGRADED_CONNECTIONS:hfe,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS:ffe,METRIC_SIGNALR_SERVER_CONNECTION_DURATION:mfe,MessageTypeValues:wle,MessagingDestinationKindValues:Qse,MessagingOperationValues:ele,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:kse,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:Tse,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:Sse,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:Pse,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:Ese,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:Ase,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:Nse,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:wse,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:$se,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:_se,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:Lse,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:Ise,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:Ose,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:jse,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:Dse,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:Rse,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:Use,NETHOSTCONNECTIONSUBTYPEVALUES_NR:zse,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:Bse,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:Mse,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:Cse,NETHOSTCONNECTIONTYPEVALUES_CELL:bse,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:yse,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:vse,NETHOSTCONNECTIONTYPEVALUES_WIFI:mse,NETHOSTCONNECTIONTYPEVALUES_WIRED:gse,NETTRANSPORTVALUES_INPROC:dse,NETTRANSPORTVALUES_IP:cse,NETTRANSPORTVALUES_IP_TCP:sse,NETTRANSPORTVALUES_IP_UDP:lse,NETTRANSPORTVALUES_OTHER:hse,NETTRANSPORTVALUES_PIPE:use,NETTRANSPORTVALUES_UNIX:pse,NETWORK_TRANSPORT_VALUE_PIPE:Lde,NETWORK_TRANSPORT_VALUE_QUIC:jde,NETWORK_TRANSPORT_VALUE_TCP:Nde,NETWORK_TRANSPORT_VALUE_UDP:Rde,NETWORK_TRANSPORT_VALUE_UNIX:Pde,NETWORK_TYPE_VALUE_IPV4:$de,NETWORK_TYPE_VALUE_IPV6:Mde,NetHostConnectionSubtypeValues:Fse,NetHostConnectionTypeValues:xse,NetTransportValues:fse,OSTYPEVALUES_AIX:Dpe,OSTYPEVALUES_DARWIN:Npe,OSTYPEVALUES_DRAGONFLYBSD:$pe,OSTYPEVALUES_FREEBSD:Rpe,OSTYPEVALUES_HPUX:Mpe,OSTYPEVALUES_LINUX:jpe,OSTYPEVALUES_NETBSD:Ppe,OSTYPEVALUES_OPENBSD:Ipe,OSTYPEVALUES_SOLARIS:zpe,OSTYPEVALUES_WINDOWS:Lpe,OSTYPEVALUES_Z_OS:Bpe,OTEL_STATUS_CODE_VALUE_ERROR:Ude,OTEL_STATUS_CODE_VALUE_OK:Fde,OsTypeValues:Upe,RPCGRPCSTATUSCODEVALUES_ABORTED:ule,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:sle,RPCGRPCSTATUSCODEVALUES_CANCELLED:rle,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:gle,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:ale,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:ple,RPCGRPCSTATUSCODEVALUES_INTERNAL:fle,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:ole,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:ile,RPCGRPCSTATUSCODEVALUES_OK:tle,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:dle,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:lle,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:cle,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:ble,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:mle,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:hle,RPCGRPCSTATUSCODEVALUES_UNKNOWN:nle,RpcGrpcStatusCodeValues:yle,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:Goe,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:iae,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:Voe,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:Uoe,SEMATTRS_AWS_DYNAMODB_COUNT:oae,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:Xoe,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:Qoe,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:sae,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:Joe,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:Foe,SEMATTRS_AWS_DYNAMODB_LIMIT:Yoe,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:Zoe,SEMATTRS_AWS_DYNAMODB_PROJECTION:Woe,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:qoe,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:Hoe,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:aae,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:tae,SEMATTRS_AWS_DYNAMODB_SEGMENT:rae,SEMATTRS_AWS_DYNAMODB_SELECT:Koe,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:eae,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:Boe,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:nae,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:vne,SEMATTRS_CODE_FILEPATH:Coe,SEMATTRS_CODE_FUNCTION:woe,SEMATTRS_CODE_LINENO:koe,SEMATTRS_CODE_NAMESPACE:Soe,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:Lne,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:Ine,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:Pne,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:Nne,SEMATTRS_DB_CASSANDRA_KEYSPACE:_ne,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:One,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:Rne,SEMATTRS_DB_CASSANDRA_TABLE:jne,SEMATTRS_DB_CONNECTION_STRING:wne,SEMATTRS_DB_HBASE_NAMESPACE:$ne,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:Cne,SEMATTRS_DB_MONGODB_COLLECTION:Dne,SEMATTRS_DB_MSSQL_INSTANCE_NAME:Tne,SEMATTRS_DB_NAME:kne,SEMATTRS_DB_OPERATION:Ane,SEMATTRS_DB_REDIS_DATABASE_INDEX:Mne,SEMATTRS_DB_SQL_TABLE:zne,SEMATTRS_DB_STATEMENT:Ene,SEMATTRS_DB_SYSTEM:xne,SEMATTRS_DB_USER:Sne,SEMATTRS_ENDUSER_ID:goe,SEMATTRS_ENDUSER_ROLE:boe,SEMATTRS_ENDUSER_SCOPE:yoe,SEMATTRS_EXCEPTION_ESCAPED:qne,SEMATTRS_EXCEPTION_MESSAGE:Une,SEMATTRS_EXCEPTION_STACKTRACE:Fne,SEMATTRS_EXCEPTION_TYPE:Bne,SEMATTRS_FAAS_COLDSTART:Zne,SEMATTRS_FAAS_CRON:Qne,SEMATTRS_FAAS_DOCUMENT_COLLECTION:Wne,SEMATTRS_FAAS_DOCUMENT_NAME:Jne,SEMATTRS_FAAS_DOCUMENT_OPERATION:Yne,SEMATTRS_FAAS_DOCUMENT_TIME:Gne,SEMATTRS_FAAS_EXECUTION:Vne,SEMATTRS_FAAS_INVOKED_NAME:Xne,SEMATTRS_FAAS_INVOKED_PROVIDER:eoe,SEMATTRS_FAAS_INVOKED_REGION:toe,SEMATTRS_FAAS_TIME:Kne,SEMATTRS_FAAS_TRIGGER:Hne,SEMATTRS_HTTP_CLIENT_IP:zoe,SEMATTRS_HTTP_FLAVOR:joe,SEMATTRS_HTTP_HOST:_oe,SEMATTRS_HTTP_METHOD:Eoe,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:Roe,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:Poe,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:Ioe,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:$oe,SEMATTRS_HTTP_ROUTE:Doe,SEMATTRS_HTTP_SCHEME:Ooe,SEMATTRS_HTTP_SERVER_NAME:Moe,SEMATTRS_HTTP_STATUS_CODE:Loe,SEMATTRS_HTTP_TARGET:Toe,SEMATTRS_HTTP_URL:Aoe,SEMATTRS_HTTP_USER_AGENT:Noe,SEMATTRS_MESSAGE_COMPRESSED_SIZE:Mae,SEMATTRS_MESSAGE_ID:$ae,SEMATTRS_MESSAGE_TYPE:Iae,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:Dae,SEMATTRS_MESSAGING_CONSUMER_ID:xae,SEMATTRS_MESSAGING_CONVERSATION_ID:gae,SEMATTRS_MESSAGING_DESTINATION:cae,SEMATTRS_MESSAGING_DESTINATION_KIND:pae,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:kae,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:Cae,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:Sae,SEMATTRS_MESSAGING_KAFKA_PARTITION:Eae,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:Aae,SEMATTRS_MESSAGING_MESSAGE_ID:mae,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:yae,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:bae,SEMATTRS_MESSAGING_OPERATION:vae,SEMATTRS_MESSAGING_PROTOCOL:dae,SEMATTRS_MESSAGING_PROTOCOL_VERSION:hae,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:wae,SEMATTRS_MESSAGING_SYSTEM:lae,SEMATTRS_MESSAGING_TEMP_DESTINATION:uae,SEMATTRS_MESSAGING_URL:fae,SEMATTRS_NET_HOST_CARRIER_ICC:foe,SEMATTRS_NET_HOST_CARRIER_MCC:doe,SEMATTRS_NET_HOST_CARRIER_MNC:hoe,SEMATTRS_NET_HOST_CARRIER_NAME:uoe,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:poe,SEMATTRS_NET_HOST_CONNECTION_TYPE:coe,SEMATTRS_NET_HOST_IP:ioe,SEMATTRS_NET_HOST_NAME:loe,SEMATTRS_NET_HOST_PORT:soe,SEMATTRS_NET_PEER_IP:noe,SEMATTRS_NET_PEER_NAME:aoe,SEMATTRS_NET_PEER_PORT:ooe,SEMATTRS_NET_TRANSPORT:roe,SEMATTRS_PEER_SERVICE:moe,SEMATTRS_RPC_GRPC_STATUS_CODE:Lae,SEMATTRS_RPC_JSONRPC_ERROR_CODE:Rae,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:Pae,SEMATTRS_RPC_JSONRPC_REQUEST_ID:Nae,SEMATTRS_RPC_JSONRPC_VERSION:jae,SEMATTRS_RPC_METHOD:Oae,SEMATTRS_RPC_SERVICE:_ae,SEMATTRS_RPC_SYSTEM:Tae,SEMATTRS_THREAD_ID:voe,SEMATTRS_THREAD_NAME:xoe,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:_le,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:Tle,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:Ole,SEMRESATTRS_AWS_ECS_TASK_ARN:Lle,SEMRESATTRS_AWS_ECS_TASK_FAMILY:jle,SEMRESATTRS_AWS_ECS_TASK_REVISION:Nle,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:Rle,SEMRESATTRS_AWS_LOG_GROUP_ARNS:Ile,SEMRESATTRS_AWS_LOG_GROUP_NAMES:Ple,SEMRESATTRS_AWS_LOG_STREAM_ARNS:Mle,SEMRESATTRS_AWS_LOG_STREAM_NAMES:$le,SEMRESATTRS_CLOUD_ACCOUNT_ID:Cle,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:Ele,SEMRESATTRS_CLOUD_PLATFORM:Ale,SEMRESATTRS_CLOUD_PROVIDER:Sle,SEMRESATTRS_CLOUD_REGION:kle,SEMRESATTRS_CONTAINER_ID:zle,SEMRESATTRS_CONTAINER_IMAGE_NAME:Ule,SEMRESATTRS_CONTAINER_IMAGE_TAG:Fle,SEMRESATTRS_CONTAINER_NAME:Dle,SEMRESATTRS_CONTAINER_RUNTIME:Ble,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:qle,SEMRESATTRS_DEVICE_ID:Hle,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:Vle,SEMRESATTRS_DEVICE_MODEL_NAME:Wle,SEMRESATTRS_FAAS_ID:Gle,SEMRESATTRS_FAAS_INSTANCE:Kle,SEMRESATTRS_FAAS_MAX_MEMORY:Qle,SEMRESATTRS_FAAS_NAME:Yle,SEMRESATTRS_FAAS_VERSION:Jle,SEMRESATTRS_HOST_ARCH:tce,SEMRESATTRS_HOST_ID:Zle,SEMRESATTRS_HOST_IMAGE_ID:nce,SEMRESATTRS_HOST_IMAGE_NAME:rce,SEMRESATTRS_HOST_IMAGE_VERSION:oce,SEMRESATTRS_HOST_NAME:Xle,SEMRESATTRS_HOST_TYPE:ece,SEMRESATTRS_K8S_CLUSTER_NAME:ace,SEMRESATTRS_K8S_CONTAINER_NAME:uce,SEMRESATTRS_K8S_CRONJOB_NAME:Cce,SEMRESATTRS_K8S_CRONJOB_UID:Sce,SEMRESATTRS_K8S_DAEMONSET_NAME:vce,SEMRESATTRS_K8S_DAEMONSET_UID:yce,SEMRESATTRS_K8S_DEPLOYMENT_NAME:mce,SEMRESATTRS_K8S_DEPLOYMENT_UID:fce,SEMRESATTRS_K8S_JOB_NAME:wce,SEMRESATTRS_K8S_JOB_UID:xce,SEMRESATTRS_K8S_NAMESPACE_NAME:lce,SEMRESATTRS_K8S_NODE_NAME:ice,SEMRESATTRS_K8S_NODE_UID:sce,SEMRESATTRS_K8S_POD_NAME:pce,SEMRESATTRS_K8S_POD_UID:cce,SEMRESATTRS_K8S_REPLICASET_NAME:hce,SEMRESATTRS_K8S_REPLICASET_UID:dce,SEMRESATTRS_K8S_STATEFULSET_NAME:bce,SEMRESATTRS_K8S_STATEFULSET_UID:gce,SEMRESATTRS_OS_DESCRIPTION:Ece,SEMRESATTRS_OS_NAME:Ace,SEMRESATTRS_OS_TYPE:kce,SEMRESATTRS_OS_VERSION:Tce,SEMRESATTRS_PROCESS_COMMAND:jce,SEMRESATTRS_PROCESS_COMMAND_ARGS:Rce,SEMRESATTRS_PROCESS_COMMAND_LINE:Nce,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:Oce,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:Lce,SEMRESATTRS_PROCESS_OWNER:Pce,SEMRESATTRS_PROCESS_PID:_ce,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:Mce,SEMRESATTRS_PROCESS_RUNTIME_NAME:Ice,SEMRESATTRS_PROCESS_RUNTIME_VERSION:$ce,SEMRESATTRS_SERVICE_INSTANCE_ID:Bce,SEMRESATTRS_SERVICE_NAME:Dce,SEMRESATTRS_SERVICE_NAMESPACE:zce,SEMRESATTRS_SERVICE_VERSION:Uce,SEMRESATTRS_TELEMETRY_AUTO_VERSION:Vce,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:qce,SEMRESATTRS_TELEMETRY_SDK_NAME:Fce,SEMRESATTRS_TELEMETRY_SDK_VERSION:Hce,SEMRESATTRS_WEBENGINE_DESCRIPTION:Gce,SEMRESATTRS_WEBENGINE_NAME:Wce,SEMRESATTRS_WEBENGINE_VERSION:Yce,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN:Jde,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE:Kde,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT:Qde,SIGNALR_TRANSPORT_VALUE_LONG_POLLING:Xde,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS:ehe,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS:the,SemanticAttributes:zae,SemanticResourceAttributes:Jce,TELEMETRYSDKLANGUAGEVALUES_CPP:Fpe,TELEMETRYSDKLANGUAGEVALUES_DOTNET:qpe,TELEMETRYSDKLANGUAGEVALUES_ERLANG:Hpe,TELEMETRYSDKLANGUAGEVALUES_GO:Vpe,TELEMETRYSDKLANGUAGEVALUES_JAVA:Wpe,TELEMETRYSDKLANGUAGEVALUES_NODEJS:Ype,TELEMETRYSDKLANGUAGEVALUES_PHP:Gpe,TELEMETRYSDKLANGUAGEVALUES_PYTHON:Jpe,TELEMETRYSDKLANGUAGEVALUES_RUBY:Kpe,TELEMETRYSDKLANGUAGEVALUES_WEBJS:Qpe,TELEMETRY_SDK_LANGUAGE_VALUE_CPP:rhe,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET:nhe,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG:ohe,TELEMETRY_SDK_LANGUAGE_VALUE_GO:ahe,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA:ihe,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:she,TELEMETRY_SDK_LANGUAGE_VALUE_PHP:lhe,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON:che,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY:phe,TELEMETRY_SDK_LANGUAGE_VALUE_RUST:uhe,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT:dhe,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:jN,TelemetrySdkLanguageValues:Zpe},Symbol.toStringTag,{value:"Module"})),yfe="process.runtime.name",qx={[gg]:"opentelemetry",[yfe]:"browser",[mg]:jN,[bg]:yne},Il=performance,vfe=9,xfe=6,wfe=Math.pow(10,xfe),yg=Math.pow(10,vfe);function Cs(e){const t=e/1e3,r=Math.trunc(t),n=Math.round(e%1e3*wfe);return[r,n]}function NN(e){const t=Cs(Il.timeOrigin),r=Cs(typeof e=="number"?e:Il.now());return IN(t,r)}function qd(e){if(Hx(e))return e;if(typeof e=="number")return e<Il.timeOrigin?NN(e):Cs(e);if(e instanceof Date)return Cs(e.getTime());throw TypeError("Invalid input type")}function Sfe(e,t){let r=t[0]-e[0],n=t[1]-e[1];return n<0&&(r-=1,n+=yg),[r,n]}function Li(e){return e[0]*yg+e[1]}function RN(e){return e[0]*1e6+e[1]/1e3}function Hx(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function PN(e){return Hx(e)||typeof e=="number"||e instanceof Date}function IN(e,t){const r=[e[0]+t[0],e[1]+t[1]];return r[1]>=yg&&(r[1]-=yg,r[0]+=1),r}var Xn;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(Xn||(Xn={}));class Cfe{_propagators;_fields;constructor(t={}){this._propagators=t.propagators??[];const r=new Set;for(const n of this._propagators){const o=typeof n.fields=="function"?n.fields():[];for(const a of o)r.add(a)}this._fields=Array.from(r)}inject(t,r,n){for(const o of this._propagators)try{o.inject(t,r,n)}catch(a){ht.warn(`Failed to inject with ${o.constructor.name}. Err: ${a.message}`)}}extract(t,r,n){return this._propagators.reduce((o,a)=>{try{return a.extract(o,r,n)}catch(i){ht.warn(`Failed to extract with ${a.constructor.name}. Err: ${i.message}`)}return o},t)}fields(){return this._fields.slice()}}const Vx="[_0-9a-z-*/]",kfe=`[a-z]${Vx}{0,255}`,Efe=`[a-z0-9]${Vx}{0,240}@[a-z]${Vx}{0,13}`,Afe=new RegExp(`^(?:${kfe}|${Efe})$`),Tfe=/^[ -~]{0,255}[!-~]$/,_fe=/,|=/;function $N(e){return Afe.test(e)}function MN(e){return Tfe.test(e)&&!_fe.test(e)}const Ofe=32,DN=512,zN=",",BN="=";class Dk{_length;_rawTraceState;_internalState;constructor(t){this._rawTraceState=typeof t=="string"?t:"",this._length=this._rawTraceState.length}set(t,r){if(!$N(t)||!MN(r))return this;const n=this._getState(),o=n.get(t);let a=this._length;if(typeof o=="string"?a+=r.length-o.length:a+=t.length+r.length+(n.size>0?2:1),a>DN)return this;const i=new Map(n);return i.delete(t),i.set(t,r),this._fromState(i,a)}unset(t){const r=this._getState(),n=r.get(t);if(typeof n!="string")return this;let o=this._length-(t.length+n.length+1);r.size>1&&(o=o-1);const a=new Map(r);return a.delete(t),this._fromState(a,o)}get(t){return this._getState().get(t)}serialize(){let t="",r=0;for(const n of this._getState())r>0&&(t=zN+t),t=`${n[0]}${BN}${n[1]}`+t,r++;return t}_getState(){if(this._internalState)return this._internalState;const t=this._rawTraceState.split(zN),r=new Map;let n=0;for(const o of t){const a=o.trim(),i=a.indexOf(BN);if(i===-1)continue;const s=a.slice(0,i),c=a.slice(i+1);if(!$N(s)||!MN(c))continue;const u=n+a.length+(r.size>0?1:0);if(!(u>DN)&&(r.set(s,c),n=u,r.size>=Ofe))break}return this._length=n,this._internalState=new Map(Array.from(r.entries()).reverse()),this._internalState}_fromState(t,r){const n=Object.create(Dk.prototype);return n._internalState=t,n._length=r,n}}const Wx="traceparent",Yx="tracestate",Lfe="00",jfe="(?!ff)[\\da-f]{2}",Nfe="(?![0]{32})[\\da-f]{32}",Rfe="(?![0]{16})[\\da-f]{16}",Pfe="[\\da-f]{2}",Ife=new RegExp(`^\\s?(${jfe})-(${Nfe})-(${Rfe})-(${Pfe})(-.*)?\\s?$`);function $fe(e){const t=Ife.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}class Mfe{inject(t,r,n){const o=Nn.getSpanContext(t);if(!o||Bx(t)||!zd(o))return;const a=`${Lfe}-${o.traceId}-${o.spanId}-0${Number(o.traceFlags||da.NONE).toString(16)}`;n.set(r,Wx,a),o.traceState&&n.set(r,Yx,o.traceState.serialize())}extract(t,r,n){const o=n.get(r,Wx);if(!o)return t;const a=Array.isArray(o)?o[0]:o;if(typeof a!="string")return t;const i=$fe(a);if(!i)return t;i.isRemote=!0;const s=n.get(r,Yx);if(s){const c=Array.isArray(s)?s.join(","):s;i.traceState=new Dk(typeof c=="string"?c:void 0)}return Nn.setSpanContext(t,i)}fields(){return[Wx,Yx]}}const Dfe="[object Object]",zfe="[object Null]",Bfe="[object Undefined]",Ufe=Function.prototype,UN=Ufe.toString,Ffe=UN.call(Object),qfe=Object.getPrototypeOf,FN=Object.prototype,qN=FN.hasOwnProperty,$l=Symbol?Symbol.toStringTag:void 0,HN=FN.toString;function VN(e){if(!Hfe(e)||Vfe(e)!==Dfe)return!1;const t=qfe(e);if(t===null)return!0;const r=qN.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&UN.call(r)===Ffe}function Hfe(e){return e!=null&&typeof e=="object"}function Vfe(e){return e==null?e===void 0?Bfe:zfe:$l&&$l in Object(e)?Wfe(e):Yfe(e)}function Wfe(e){const t=qN.call(e,$l),r=e[$l];let n=!1;try{e[$l]=void 0,n=!0}catch{}const o=HN.call(e);return n&&(t?e[$l]=r:delete e[$l]),o}function Yfe(e){return HN.call(e)}const Gfe=20;function Jfe(...e){let t=e.shift();const r=new WeakMap;for(;e.length>0;)t=WN(t,e.shift(),0,r);return t}function Gx(e){return vg(e)?e.slice():e}function WN(e,t,r=0,n){let o;if(!(r>Gfe)){if(r++,xg(e)||xg(t)||GN(t))o=Gx(t);else if(vg(e)){if(o=e.slice(),vg(t))for(let a=0,i=t.length;a<i;a++)o.push(Gx(t[a]));else if(Hd(t)){const a=Object.keys(t);for(let i=0,s=a.length;i<s;i++){const c=a[i];c==="__proto__"||c==="constructor"||c==="prototype"||(o[c]=Gx(t[c]))}}}else if(Hd(e))if(Hd(t)){if(!Kfe(e,t))return t;o=Object.assign({},e);const a=Object.keys(t);for(let i=0,s=a.length;i<s;i++){const c=a[i];if(c==="__proto__"||c==="constructor"||c==="prototype")continue;const u=t[c];if(xg(u))typeof u>"u"?delete o[c]:o[c]=u;else{const d=o[c],f=u;if(YN(e,c,n)||YN(t,c,n))delete o[c];else{if(Hd(d)&&Hd(f)){const g=n.get(d)||[],y=n.get(f)||[];g.push({obj:e,key:c}),y.push({obj:t,key:c}),n.set(d,g),n.set(f,y)}o[c]=WN(o[c],u,r,n)}}}}else o=t;return o}}function YN(e,t,r){const n=r.get(e[t])||[];for(let o=0,a=n.length;o<a;o++){const i=n[o];if(i.key===t&&i.obj===e)return!0}return!1}function vg(e){return Array.isArray(e)}function GN(e){return typeof e=="function"}function Hd(e){return!xg(e)&&!vg(e)&&!GN(e)&&typeof e=="object"}function xg(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function Kfe(e,t){return!(!VN(e)||!VN(t))}function Qfe(e,t){return typeof t=="string"?e===t:!!e.match(t)}class Zfe{_promise;_resolve;_reject;constructor(){this._promise=new Promise((t,r)=>{this._resolve=t,this._reject=r})}get promise(){return this._promise}resolve(t){this._resolve(t)}reject(t){this._reject(t)}}class JN{_isCalled=!1;_deferred=new Zfe;_callback;_that;constructor(t,r){this._callback=t,this._that=r}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...t){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...t)).then(r=>this._deferred.resolve(r),r=>this._deferred.reject(r))}catch(r){this._deferred.reject(r)}}return this._deferred.promise}}function Xfe(e,t){return new Promise(r=>{qo.with(sT(qo.active()),()=>{e.export(t,r)})})}const eme={_export:Xfe};let wg;function KN(){if(wg===void 0)try{const e=globalThis.process.argv0;wg=e?`unknown_service:${e}`:"unknown_service"}catch{wg="unknown_service"}return wg}const Vd=e=>e!==null&&typeof e=="object"&&typeof e.then=="function";class hf{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(t,r){const n=new hf({},r);return n._rawAttributes=ZN(t),n._asyncAttributesPending=t.filter(([o,a])=>Vd(a)).length>0,n}constructor(t,r){const n=t.attributes??{};this._rawAttributes=Object.entries(n).map(([o,a])=>(Vd(a)&&(this._asyncAttributesPending=!0),[o,a])),this._rawAttributes=ZN(this._rawAttributes),this._schemaUrl=rme(r?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let t=0;t<this._rawAttributes.length;t++){const[r,n]=this._rawAttributes[t];this._rawAttributes[t]=[r,Vd(n)?await n:n]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&ht.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const t={};for(const[r,n]of this._rawAttributes){if(Vd(n)){ht.debug(`Unsettled resource attribute ${r} skipped`);continue}n!=null&&(t[r]??=n)}return this._asyncAttributesPending||(this._memoizedAttributes=t),t}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(t){if(t==null)return this;const r=nme(this,t),n=r?{schemaUrl:r}:void 0;return hf.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()],n)}}function Sg(e,t){return hf.FromAttributeList(Object.entries(e),t)}function tme(e,t){return new hf(e,t)}function Jx(){return Sg({})}function QN(){return Sg({[Fx]:KN(),[mg]:qx[mg],[gg]:qx[gg],[bg]:qx[bg]})}function ZN(e){return e.map(([t,r])=>Vd(r)?[t,r.catch(n=>{ht.debug("promise rejection for resource attribute: %s - %s",t,n)})]:[t,r])}function rme(e){if(typeof e=="string"||e===void 0)return e;ht.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",e)}function nme(e,t){const r=e?.schemaUrl,n=t?.schemaUrl,o=r===void 0||r==="",a=n===void 0||n==="";if(o)return n;if(a||r===n)return r;ht.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',r,n)}const ome=(e={})=>(e.detectors||[]).map(t=>{try{const r=tme(t.detect(e));return ht.debug(`${t.constructor.name} found resource.`,r),r}catch(r){return ht.debug(`${t.constructor.name} failed: ${r.message}`),Jx()}}).reduce((t,r)=>t.merge(r),Jx());class ame{_MAX_LENGTH=255;_COMMA_SEPARATOR=",";_LABEL_KEY_VALUE_SPLITTER="=";detect(t){return{attributes:{}}}_parseResourceAttributes(t){if(!t)return{};const r={},n=t.split(this._COMMA_SEPARATOR).filter(o=>o.trim()!=="");for(const o of n){const a=o.split(this._LABEL_KEY_VALUE_SPLITTER);if(a.length!==2)throw new Error(`Invalid format for OTEL_RESOURCE_ATTRIBUTES: "${o}". Expected format: key=value. The ',' and '=' characters must be percent-encoded in keys and values.`);const[i,s]=a,c=i.trim(),u=s.trim();if(c.length===0)throw new Error(`Invalid OTEL_RESOURCE_ATTRIBUTES: empty attribute key in "${o}".`);let d,f;try{d=decodeURIComponent(c),f=decodeURIComponent(u)}catch(g){throw new Error(`Failed to percent-decode OTEL_RESOURCE_ATTRIBUTES entry "${o}": ${g instanceof Error?g.message:g}`,{cause:g})}if(d.length>this._MAX_LENGTH)throw new Error(`Attribute key exceeds the maximum length of ${this._MAX_LENGTH} characters: "${d}".`);if(f.length>this._MAX_LENGTH)throw new Error(`Attribute value exceeds the maximum length of ${this._MAX_LENGTH} characters for key "${d}".`);r[d]=f}return r}}const ime=new ame;class sme{detect(){return{attributes:{}}}}const Cg=new sme,lme=Cg,cme=Cg,pme=Cg,ume=Cg,dme=Object.freeze(Object.defineProperty({__proto__:null,defaultResource:QN,defaultServiceName:KN,detectResources:ome,emptyResource:Jx,envDetector:ime,hostDetector:lme,osDetector:cme,processDetector:pme,resourceFromAttributes:Sg,serviceInstanceIdDetector:ume},Symbol.toStringTag,{value:"Module"})),hme="exception",Kx=Symbol.for("nodejs.util.inspect.custom");function Qx(e){const t={};for(const[r,n]of e.getRawAttributes())typeof n?.then!="function"&&n!=null&&(t[r]??=n);return t}function Zx(e,t,r,n,o){if(typeof r=="number"&&r<0){const i=`[${e}]`;return n?.stylize?n.stylize(i,"special"):i}if(typeof o!="function"||!n)return t;const a={...n,depth:n.depth==null?n.depth:n.depth-1};return`${e} ${o(t,a)}`}class fme{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;_attributesCount=0;name;status={code:Ss.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_recordEndMetrics;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(t){const r=Date.now();if(this._spanContext=t.spanContext,this._performanceStartTime=Il.now(),this._performanceOffset=r-(this._performanceStartTime+Il.timeOrigin),this._startTimeProvided=t.startTime!=null,this._spanLimits=t.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit??0,this._spanProcessor=t.spanProcessor,this.name=t.name,this.parentSpanContext=t.parentSpanContext,this.kind=t.kind,t.links)for(const n of t.links)this.addLink(n);this.startTime=this._getTime(t.startTime??r),this.resource=t.resource,this.instrumentationScope=t.scope,this._recordEndMetrics=t.recordEndMetrics,t.attributes!=null&&this.setAttributes(t.attributes),this._spanProcessor.onStart(this,t.context)}spanContext(){return this._spanContext}setAttribute(t,r){if(r==null||this._isSpanEnded())return this;if(t.length===0)return ht.warn(`Invalid attribute key: ${t}`),this;if(!fT(r))return ht.warn(`Invalid attribute value set for key: ${t}`),this;const{attributeCountLimit:n}=this._spanLimits,o=!Object.prototype.hasOwnProperty.call(this.attributes,t);return n!==void 0&&this._attributesCount>=n&&o?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(r),o&&this._attributesCount++,this)}setAttributes(t){for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.setAttribute(r,t[r]);return this}addEvent(t,r,n){if(this._isSpanEnded())return this;const{eventCountLimit:o}=this._spanLimits;if(o===0)return ht.warn("No events allowed."),this._droppedEventsCount++,this;o!==void 0&&this.events.length>=o&&(this._droppedEventsCount===0&&ht.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),PN(r)&&(PN(n)||(n=r),r=void 0);const a=Fd(r),{attributePerEventCountLimit:i}=this._spanLimits,s={};let c=0,u=0;for(const d in a){if(!Object.prototype.hasOwnProperty.call(a,d))continue;const f=a[d];if(i!==void 0&&u>=i){c++;continue}s[d]=this._truncateToSize(f),u++}return this.events.push({name:t,attributes:s,time:this._getTime(n),droppedAttributesCount:c}),this}addLink(t){if(this._isSpanEnded())return this;const{linkCountLimit:r}=this._spanLimits;if(r===0)return this._droppedLinksCount++,this;r!==void 0&&this.links.length>=r&&(this._droppedLinksCount===0&&ht.debug("Dropping extra links."),this.links.shift(),this._droppedLinksCount++);const{attributePerLinkCountLimit:n}=this._spanLimits,o=Fd(t.attributes),a={};let i=0,s=0;for(const u in o){if(!Object.prototype.hasOwnProperty.call(o,u))continue;const d=o[u];if(n!==void 0&&s>=n){i++;continue}a[u]=this._truncateToSize(d),s++}const c={context:t.context};return s>0&&(c.attributes=a),i>0&&(c.droppedAttributesCount=i),this.links.push(c),this}addLinks(t){for(const r of t)this.addLink(r);return this}setStatus(t){if(this._isSpanEnded())return this;if(t.code===Ss.UNSET)return this;if(this.status.code===Ss.OK)return this;const r={code:t.code};return t.code===Ss.ERROR&&(typeof t.message=="string"?r.message=t.message:t.message!=null&&ht.warn(`Dropping invalid status.message of type '${typeof t.message}', expected 'string'`)),this.status=r,this}updateName(t){return this._isSpanEnded()?this:(this.name=t,this)}end(t){if(this._isSpanEnded()){ht.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this.endTime=this._getTime(t),this._duration=Sfe(this.startTime,this.endTime),this._duration[0]<0&&(ht.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&ht.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._droppedLinksCount>0&&ht.warn(`Dropped ${this._droppedLinksCount} links because linkCountLimit reached`),this._spanProcessor.onEnding&&this._spanProcessor.onEnding(this),this._recordEndMetrics?.(),this._ended=!0,this._spanProcessor.onEnd(this)}_getTime(t){if(typeof t=="number"&&t<=Il.now())return NN(t+this._performanceOffset);if(typeof t=="number")return Cs(t);if(t instanceof Date)return Cs(t.getTime());if(Hx(t))return t;if(this._startTimeProvided)return Cs(Date.now());const r=Il.now()-this._performanceStartTime;return IN(this.startTime,Cs(r))}isRecording(){return this._ended===!1}recordException(t,r){const n={};typeof t=="string"?n[hg]=t:t&&(t.code?n[fg]=t.code.toString():t.name&&(n[fg]=t.name),t.message&&(n[hg]=t.message),t.stack&&(n[ON]=t.stack)),n[fg]||n[hg]?this.addEvent(hme,n,r):ht.warn(`Failed to record an exception ${t}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){const t=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);ht.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,t)}return this._ended}_truncateToLimitUtil(t,r){return t.length<=r?t:t.substring(0,r)}_truncateToSize(t){const r=this._attributeValueLengthLimit;return r<=0?(ht.warn(`Attribute value limit must be positive, got ${r}`),t):typeof t=="string"?this._truncateToLimitUtil(t,r):Array.isArray(t)?t.map(n=>typeof n=="string"?this._truncateToLimitUtil(n,r):n):t}[Kx](t,r,n){const o={name:this.name,kind:this.kind,spanContext:this._spanContext,parentSpanContext:this.parentSpanContext,status:this.status,startTime:this.startTime,endTime:this.endTime,duration:this._duration,ended:this._ended,attributes:this.attributes,events:this.events,links:this.links,droppedAttributesCount:this._droppedAttributesCount,droppedEventsCount:this._droppedEventsCount,droppedLinksCount:this._droppedLinksCount,instrumentationScope:this.instrumentationScope,resource:{attributes:Qx(this.resource)}};return Zx("SpanImpl",o,t,r,n)}}var ha;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(ha||(ha={}));class Wd{shouldSample(){return{decision:ha.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class Ml{shouldSample(){return{decision:ha.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class Yd{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(t){this._root=t.root,this._root||(Pl(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Ml),this._remoteParentSampled=t.remoteParentSampled??new Ml,this._remoteParentNotSampled=t.remoteParentNotSampled??new Wd,this._localParentSampled=t.localParentSampled??new Ml,this._localParentNotSampled=t.localParentNotSampled??new Wd}shouldSample(t,r,n,o,a,i){const s=Nn.getSpanContext(t);return!s||!zd(s)?this._root.shouldSample(t,r,n,o,a,i):s.isRemote?s.traceFlags&da.SAMPLED?this._remoteParentSampled.shouldSample(t,r,n,o,a,i):this._remoteParentNotSampled.shouldSample(t,r,n,o,a,i):s.traceFlags&da.SAMPLED?this._localParentSampled.shouldSample(t,r,n,o,a,i):this._localParentNotSampled.shouldSample(t,r,n,o,a,i)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}class Xx{_ratio;_upperBound;constructor(t=0){this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(t,r){return{decision:Nx(r)&&this._accumulate(r)<this._upperBound?ha.RECORD_AND_SAMPLED:ha.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t}_accumulate(t){let r=0;for(let n=0;n<32;n+=8){let o=0;for(let a=0;a<8;a++){const i=t.charCodeAt(n+a),s=i<58?i-48:i<71?i-55:i-87;o=o<<4|s}r=(r^o)>>>0}return r}}var za;(function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"})(za||(za={}));const XN=1;function eR(){return{sampler:tR(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function tR(){const e=za.ParentBasedAlwaysOn;switch(e){case za.AlwaysOn:return new Ml;case za.AlwaysOff:return new Wd;case za.ParentBasedAlwaysOn:return new Yd({root:new Ml});case za.ParentBasedAlwaysOff:return new Yd({root:new Wd});case za.TraceIdRatio:return new Xx(rR());case za.ParentBasedTraceIdRatio:return new Yd({root:new Xx(rR())});default:return ht.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "${za.ParentBasedAlwaysOn}".`),new Yd({root:new Ml})}}function rR(){return ht.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${XN}.`),XN}const mme=128,gme=1/0;function bme(e){const t={sampler:tR()},r=eR(),n=Object.assign({},r,t,e);return n.generalLimits=Object.assign({},r.generalLimits,e.generalLimits||{}),n.spanLimits=Object.assign({},r.spanLimits,e.spanLimits||{}),n}function yme(e){const t=Object.assign({},e.spanLimits);return t.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??void 0??void 0??mme,t.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??void 0??void 0??gme,Object.assign({},e,{spanLimits:t})}class vme{_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_exporter;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(t,r){this._exporter=t,this._maxExportBatchSize=typeof r?.maxExportBatchSize=="number"?r.maxExportBatchSize:512,this._maxQueueSize=typeof r?.maxQueueSize=="number"?r.maxQueueSize:2048,this._scheduledDelayMillis=typeof r?.scheduledDelayMillis=="number"?r.scheduledDelayMillis:5e3,this._exportTimeoutMillis=typeof r?.exportTimeoutMillis=="number"?r.exportTimeoutMillis:3e4,this._shutdownOnce=new JN(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(ht.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(t,r){}onEnd(t){this._shutdownOnce.isCalled||(t.spanContext().traceFlags&da.SAMPLED)!==0&&this._addToBuffer(t)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(t){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&ht.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(ht.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(t),this._maybeStartTimer()}_flushAll(){return new Promise((t,r)=>{const n=[],o=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let a=0,i=o;a<i;a++)n.push(this._flushOneBatch());Promise.all(n).then(()=>{t()}).catch(r)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((t,r)=>{const n=setTimeout(()=>{r(new Error("Timeout"))},this._exportTimeoutMillis);qo.with(sT(qo.active()),()=>{let o;this._finishedSpans.length<=this._maxExportBatchSize?(o=this._finishedSpans,this._finishedSpans=[]):o=this._finishedSpans.splice(0,this._maxExportBatchSize);const a=()=>this._exporter.export(o,s=>{clearTimeout(n),s.code===Xn.SUCCESS?t():r(s.error??new Error("BatchSpanProcessor: span export failed"))});let i=null;for(let s=0,c=o.length;s<c;s++){const u=o[s];u.resource.asyncAttributesPending&&u.resource.waitForAsyncAttributes&&(i??=[],i.push(u.resource.waitForAsyncAttributes()))}i===null?a():Promise.all(i).then(a,s=>{Pl(s),r(s)})})})}_maybeStartTimer(){if(this._isExporting)return;const t=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(r=>{this._isExporting=!1,Pl(r)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return t();this._timer===void 0&&(this._timer=setTimeout(()=>t(),this._scheduledDelayMillis),typeof this._timer!="number"&&this._timer.unref())}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}}class nR extends vme{_visibilityChangeListener;_pageHideListener;constructor(t,r){super(t,r),this.onInit(r)}onInit(t){t?.disableAutoFlushOnDocumentHide!==!0&&typeof document<"u"&&(this._visibilityChangeListener=()=>{document.visibilityState==="hidden"&&this.forceFlush().catch(r=>{Pl(r)})},this._pageHideListener=()=>{this.forceFlush().catch(r=>{Pl(r)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))}onShutdown(){typeof document<"u"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))}}const xme=16,wme=8,oR=new Uint8Array(xme),aR=new Uint8Array(wme),Sme=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function iR(e){for(let t=0;t<e.length;t++)e[t]=Math.random()*256>>>0;for(let t=0;t<e.length;t++)if(e[t]>0)return;e[e.length-1]=1}function sR(e){let t="";for(let r=0;r<e.length;r++)t+=Sme[e[r]];return t}class lR{generateTraceId(){return iR(oR),sR(oR)}generateSpanId(){return iR(aR),sR(aR)}}const Cme="otel.span.parent.origin",cR="otel.span.sampling_result",kme="otel.sdk.span.live",Eme="otel.sdk.span.started";class Ame{startedSpans;liveSpans;constructor(t){this.startedSpans=t.createCounter(Eme,{unit:"{span}",description:"The number of created spans."}),this.liveSpans=t.createUpDownCounter(kme,{unit:"{span}",description:"The number of currently live spans."})}startSpan(t,r){const n=_me(r);if(this.startedSpans.add(1,{[Cme]:Tme(t),[cR]:n}),r===ha.NOT_RECORD)return()=>{};const o={[cR]:n};return this.liveSpans.add(1,o),()=>{this.liveSpans.add(-1,o)}}}function Tme(e){return e?e.isRemote?"remote":"local":"none"}function _me(e){switch(e){case ha.RECORD_AND_SAMPLED:return"RECORD_AND_SAMPLE";case ha.RECORD:return"RECORD_ONLY";case ha.NOT_RECORD:return"DROP"}}const Ome="2.8.0";class Lme{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;_tracerMetrics;constructor(t,r,n,o){const a=bme(r);this._sampler=a.sampler,this._generalLimits=a.generalLimits,this._spanLimits=a.spanLimits,this._idGenerator=r.idGenerator||new lR,this._resource=n,this._spanProcessor=o,this.instrumentationScope=t;const i=a.meterProvider?a.meterProvider.getMeter("@opentelemetry/sdk-trace",Ome):GA();this._tracerMetrics=new Ame(i)}startSpan(t,r={},n=qo.active()){r.root&&(n=Nn.deleteSpan(n));const o=Nn.getSpan(n);if(Bx(n))return ht.debug("Instrumentation suppressed, returning Noop Span"),Nn.wrapSpanContext(_x);const a=o?.spanContext(),i=this._idGenerator.generateSpanId();let s,c,u;!a||!Nn.isSpanContextValid(a)?c=this._idGenerator.generateTraceId():(c=a.traceId,u=a.traceState,s=a);const d=r.kind??Ud.INTERNAL,f=(r.links??[]).map(C=>({context:C.context,attributes:Fd(C.attributes)})),g=Fd(r.attributes),y=this._sampler.shouldSample(n,c,t,d,g,f),v=this._tracerMetrics.startSpan(a,y.decision);u=y.traceState??u;const x=y.decision===Bd.RECORD_AND_SAMPLED?da.SAMPLED:da.NONE,S={traceId:c,spanId:i,traceFlags:x,traceState:u};if(y.decision===Bd.NOT_RECORD)return ht.debug("Recording is off, propagating context in a non-recording span"),Nn.wrapSpanContext(S);const w=Fd(Object.assign(g,y.attributes));return new fme({resource:this._resource,scope:this.instrumentationScope,context:n,spanContext:S,name:t,kind:d,links:f,parentSpanContext:s,attributes:w,startTime:r.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits,recordEndMetrics:v})}startActiveSpan(t,r,n,o){let a,i,s;if(arguments.length<2)return;arguments.length===2?s=r:arguments.length===3?(a=r,s=n):(a=r,i=n,s=o);const c=i??qo.active(),u=this.startSpan(t,a,c),d=Nn.setSpan(c,u);return qo.with(d,s,void 0,u)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}[Kx](t,r,n){const o={instrumentationScope:this.instrumentationScope,resource:{attributes:Qx(this._resource)},spanLimits:this._spanLimits,generalLimits:this._generalLimits};return Zx("Tracer",o,t,r,n)}}class jme{_spanProcessors;constructor(t){this._spanProcessors=t}forceFlush(){const t=[];for(const r of this._spanProcessors)t.push(r.forceFlush());return new Promise(r=>{Promise.all(t).then(()=>{r()}).catch(n=>{Pl(n||new Error("MultiSpanProcessor: forceFlush failed")),r()})})}onStart(t,r){for(const n of this._spanProcessors)n.onStart(t,r)}onEnding(t){for(const r of this._spanProcessors)r.onEnding&&r.onEnding(t)}onEnd(t){for(const r of this._spanProcessors)r.onEnd(t)}shutdown(){const t=[];for(const r of this._spanProcessors)t.push(r.shutdown());return new Promise((r,n)=>{Promise.all(t).then(()=>{r()},n)})}}var Dl;(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"})(Dl||(Dl={}));class pR{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(t={}){const r=Jfe({},eR(),yme(t));this._resource=r.resource??QN(),this._config=Object.assign({},r,{resource:this._resource});const n=[];t.spanProcessors?.length&&n.push(...t.spanProcessors),this._activeSpanProcessor=new jme(n)}getTracer(t,r,n){const o=`${t}@${r||""}:${n?.schemaUrl||""}`;return this._tracers.has(o)||this._tracers.set(o,new Lme({name:t,version:r,schemaUrl:n?.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(o)}forceFlush(){const t=this._config.forceFlushTimeoutMillis,r=this._activeSpanProcessor._spanProcessors.map(n=>new Promise(o=>{let a;const i=setTimeout(()=>{o(new Error(`Span processor did not completed within timeout period of ${t} ms`)),a=Dl.timeout},t);n.forceFlush().then(()=>{clearTimeout(i),a!==Dl.timeout&&(a=Dl.resolved,o(a))}).catch(s=>{clearTimeout(i),a=Dl.error,o(s)})}));return new Promise((n,o)=>{Promise.all(r).then(a=>{const i=a.filter(s=>s!==Dl.resolved);i.length>0?o(i):n()}).catch(a=>o([a]))})}shutdown(){return this._activeSpanProcessor.shutdown()}[Kx](t,r,n){const o=this._activeSpanProcessor._spanProcessors,a={resource:{attributes:Qx(this._resource)},tracers:Array.from(this._tracers.keys()),spanProcessors:o.map(i=>i.constructor?.name??"SpanProcessor")};return Zx("BasicTracerProvider",a,t,r,n)}}class Nme{export(t,r){return this._sendSpans(t,r)}shutdown(){return this._sendSpans([]),this.forceFlush()}forceFlush(){return Promise.resolve()}_exportInfo(t){return{resource:{attributes:t.resource.attributes},instrumentationScope:t.instrumentationScope,traceId:t.spanContext().traceId,parentSpanContext:t.parentSpanContext,traceState:t.spanContext().traceState?.serialize(),name:t.name,id:t.spanContext().spanId,kind:t.kind,timestamp:RN(t.startTime),duration:RN(t.duration),attributes:t.attributes,status:t.status,events:t.events,links:t.links}}_sendSpans(t,r){for(const n of t)console.dir(this._exportInfo(n),{depth:3});if(r)return r({code:Xn.SUCCESS})}}class Rme{_finishedSpans=[];_stopped=!1;export(t,r){if(this._stopped)return r({code:Xn.FAILED,error:new Error("Exporter has been stopped")});this._finishedSpans.push(...t),setTimeout(()=>r({code:Xn.SUCCESS}),0)}shutdown(){return this._stopped=!0,this._finishedSpans=[],this.forceFlush()}forceFlush(){return Promise.resolve()}reset(){this._finishedSpans=[]}getFinishedSpans(){return this._finishedSpans}}class Pme{_exporter;_shutdownOnce;_pendingExports;constructor(t){this._exporter=t,this._shutdownOnce=new JN(this._shutdown,this),this._pendingExports=new Set}async forceFlush(){await Promise.all(Array.from(this._pendingExports)),this._exporter.forceFlush&&await this._exporter.forceFlush()}onStart(t,r){}onEnd(t){if(this._shutdownOnce.isCalled||(t.spanContext().traceFlags&da.SAMPLED)===0)return;const r=this._doExport(t).catch(n=>Pl(n));this._pendingExports.add(r),r.finally(()=>this._pendingExports.delete(r))}async _doExport(t){t.resource.asyncAttributesPending&&await t.resource.waitForAsyncAttributes?.();const r=await eme._export(this._exporter,[t]);if(r.code!==Xn.SUCCESS)throw r.error??new Error(`SimpleSpanProcessor: span export failed (status ${r})`)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return this._exporter.shutdown()}}class Ime{onStart(t,r){}onEnd(t){}shutdown(){return Promise.resolve()}forceFlush(){return Promise.resolve()}}class uR{_enabled=!1;_currentContext=Nl;_bindFunction(t=Nl,r){const n=this,o=function(...a){return n.with(t,()=>r.apply(this,a))};return Object.defineProperty(o,"length",{enumerable:!1,configurable:!0,writable:!1,value:r.length}),o}active(){return this._currentContext}bind(t,r){return t===void 0&&(t=this.active()),typeof r=="function"?this._bindFunction(t,r):r}disable(){return this._currentContext=Nl,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=Nl,this)}with(t,r,n,...o){const a=this._currentContext;this._currentContext=t||Nl;try{return r.call(n,...o)}finally{this._currentContext=a}}}function $me(e){if(e!==null){if(e===void 0){const t=new uR;t.enable(),qo.setGlobalContextManager(t);return}e.enable(),qo.setGlobalContextManager(e)}}function Mme(e){if(e!==null){if(e===void 0){Rl.setGlobalPropagator(new Cfe({propagators:[new Mfe,new une]}));return}Rl.setGlobalPropagator(e)}}class dR extends pR{constructor(t={}){super(t)}register(t={}){Nn.setGlobalTracerProvider(this),Mme(t.propagator),$me(t.contextManager)}}var wr;(function(e){e.CONNECT_END="connectEnd",e.CONNECT_START="connectStart",e.DECODED_BODY_SIZE="decodedBodySize",e.DOM_COMPLETE="domComplete",e.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",e.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",e.DOM_INTERACTIVE="domInteractive",e.DOMAIN_LOOKUP_END="domainLookupEnd",e.DOMAIN_LOOKUP_START="domainLookupStart",e.ENCODED_BODY_SIZE="encodedBodySize",e.FETCH_START="fetchStart",e.LOAD_EVENT_END="loadEventEnd",e.LOAD_EVENT_START="loadEventStart",e.NAVIGATION_START="navigationStart",e.REDIRECT_END="redirectEnd",e.REDIRECT_START="redirectStart",e.REQUEST_START="requestStart",e.RESPONSE_END="responseEnd",e.RESPONSE_START="responseStart",e.SECURE_CONNECTION_START="secureConnectionStart",e.START_TIME="startTime",e.UNLOAD_EVENT_END="unloadEventEnd",e.UNLOAD_EVENT_START="unloadEventStart"})(wr||(wr={}));const Dme="http.response_content_length",zme="http.response_content_length_uncompressed";let e2;function Bme(){return e2||(e2=document.createElement("a")),e2}function hR(e,t){return t in e}function Ba(e,t,r,n=!0){if(hR(r,t)&&typeof r[t]=="number"&&!(n&&r[t]===0))return e.addEvent(t,r[t])}function Ume(e,t,r=!1,n,o){if(n===void 0&&(n=t[wr.START_TIME]!==0),r||(Ba(e,wr.FETCH_START,t,n),Ba(e,wr.DOMAIN_LOOKUP_START,t,n),Ba(e,wr.DOMAIN_LOOKUP_END,t,n),Ba(e,wr.CONNECT_START,t,n),Ba(e,wr.SECURE_CONNECTION_START,t,n),Ba(e,wr.CONNECT_END,t,n),Ba(e,wr.REQUEST_START,t,n),Ba(e,wr.RESPONSE_START,t,n),Ba(e,wr.RESPONSE_END,t,n)),!o){const a=t[wr.ENCODED_BODY_SIZE];a!==void 0&&e.setAttribute(Dme,a);const i=t[wr.DECODED_BODY_SIZE];i!==void 0&&a!==i&&e.setAttribute(zme,i)}}function fR(e){return e.slice().sort((t,r)=>{const n=t[wr.FETCH_START],o=r[wr.FETCH_START];return n>o?1:n<o?-1:0})}function mR(){return typeof location<"u"?location.origin:void 0}function Fme(e,t,r,n,o=new WeakSet,a){const i=kg(e);e=i.toString();const s=Hme(e,t,r,n,o,a);if(s.length===0)return{mainRequest:void 0};if(s.length===1)return{mainRequest:s[0]};const c=fR(s);if(i.origin!==mR()&&c.length>1){let u=c[0],d=qme(c,u[wr.RESPONSE_END],r);const f=u[wr.RESPONSE_END];return d[wr.FETCH_START]<f&&(d=u,u=void 0),{corsPreFlightRequest:u,mainRequest:d}}else return{mainRequest:s[0]}}function qme(e,t,r){const n=Li(r),o=Li(qd(t));let a=e[1],i;const s=e.length;for(let c=1;c<s;c++){const u=e[c],d=Li(qd(u[wr.FETCH_START])),f=Li(qd(u[wr.RESPONSE_END])),g=n-f;d>=o&&(!i||g<i)&&(i=g,a=u)}return a}function Hme(e,t,r,n,o,a){const i=Li(t),s=Li(r);let c=n.filter(u=>{const d=Li(qd(u[wr.FETCH_START])),f=Li(qd(u[wr.RESPONSE_END]));return u.initiatorType.toLowerCase()===(a||"xmlhttprequest")&&u.name===e&&d>=i&&f<=s});return c.length>0&&(c=c.filter(u=>!o.has(u))),c}function kg(e){if(typeof URL=="function")return new URL(e,typeof document<"u"?document.baseURI:typeof location<"u"?location.href:void 0);const t=Bme();return t.href=e,t}function Vme(e){return kg(e).href}function gR(e,t){if(e.nodeType===Node.DOCUMENT_NODE)return"/";const r=Yme(e,t);if(t&&r.indexOf("@id")>0)return r;let n="";return e.parentNode&&(n+=gR(e.parentNode,t)),n+=r,n}function Wme(e){if(!e.parentNode)return 0;const t=[e.nodeType];e.nodeType===Node.CDATA_SECTION_NODE&&t.push(Node.TEXT_NODE);let r=Array.from(e.parentNode.childNodes);return r=r.filter(n=>{const o=n.localName;return t.indexOf(n.nodeType)>=0&&o===e.localName}),r.length>=1?r.indexOf(e)+1:0}function Yme(e,t){const r=e.nodeType,n=Wme(e);let o;if(r===Node.ELEMENT_NODE){const a=e.getAttribute("id");if(t&&a)return`//*[@id="${a}"]`;o=e.localName}else if(r===Node.TEXT_NODE||r===Node.CDATA_SECTION_NODE)o="text()";else if(r===Node.COMMENT_NODE)o="comment()";else return"";return o&&n>1?`/${o}[${n}]`:`/${o}`}function Gme(e,t){let r=t||[];return(typeof r=="string"||r instanceof RegExp)&&(r=[r]),kg(e).origin===mR()?!0:r.some(n=>Qfe(e,n))}const Jme=Object.freeze(Object.defineProperty({__proto__:null,AlwaysOffSampler:Wd,AlwaysOnSampler:Ml,BasicTracerProvider:pR,BatchSpanProcessor:nR,ConsoleSpanExporter:Nme,InMemorySpanExporter:Rme,NoopSpanProcessor:Ime,ParentBasedSampler:Yd,get PerformanceTimingNames(){return wr},RandomIdGenerator:lR,get SamplingDecision(){return ha},SimpleSpanProcessor:Pme,StackContextManager:uR,TraceIdRatioBasedSampler:Xx,WebTracerProvider:dR,addSpanNetworkEvent:Ba,addSpanNetworkEvents:Ume,getElementXPath:gR,getResource:Fme,hasKey:hR,normalizeUrl:Vme,parseUrl:kg,shouldPropagateTraceHeaders:Gme,sortResources:fR},Symbol.toStringTag,{value:"Module"})),Kme=ia(Jme),Qme=ia(dme);class Zme{_delegate;constructor(t){this._delegate=t}export(t,r){this._delegate.export(t,r)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}class bR extends Error{code;name="OTLPExporterError";data;constructor(t,r,n){super(t),this.data=n,this.code=r}}function Xme(e){if(Number.isFinite(e)&&e>0)return e;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${e}')`)}function ege(e){if(e!=null)return async()=>e}function tge(e,t,r){return{timeoutMillis:Xme(e.timeoutMillis??t.timeoutMillis??r.timeoutMillis),concurrencyLimit:e.concurrencyLimit??t.concurrencyLimit??r.concurrencyLimit,compression:e.compression??t.compression??r.compression}}function rge(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class nge{_concurrencyLimit;_sendingPromises=[];constructor(t){this._concurrencyLimit=t}pushPromise(t){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(t);const r=()=>{const n=this._sendingPromises.indexOf(t);this._sendingPromises.splice(n,1)};t.then(r,r)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}function oge(e){return new nge(e.concurrencyLimit)}function age(e){return Object.prototype.hasOwnProperty.call(e,"partialSuccess")}function ige(){return{handleResponse(e){e==null||!age(e)||e.partialSuccess==null||Object.keys(e.partialSuccess).length===0||ht.warn("Received Partial Success response:",JSON.stringify(e.partialSuccess))}}}class sge{_diagLogger;_transport;_serializer;_responseHandler;_promiseQueue;_timeout;constructor(t,r,n,o,a){this._transport=t,this._serializer=r,this._responseHandler=n,this._promiseQueue=o,this._timeout=a,this._diagLogger=ht.createComponentLogger({namespace:"OTLPExportDelegate"})}export(t,r){if(this._diagLogger.debug("items to be sent",t),this._promiseQueue.hasReachedLimit()){r({code:Xn.FAILED,error:new Error("Concurrent export limit reached")});return}const n=this._serializer.serializeRequest(t);if(n==null){r({code:Xn.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(n,this._timeout).then(o=>{if(o.status==="success"){if(o.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(o.data))}catch(a){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",a,o.data)}r({code:Xn.SUCCESS});return}else if(o.status==="failure"&&o.error){r({code:Xn.FAILED,error:o.error});return}else o.status==="retryable"?r({code:Xn.FAILED,error:o.error??new bR("Export failed with retryable status")}):r({code:Xn.FAILED,error:new bR("Export failed with unknown error")})},o=>r({code:Xn.FAILED,error:o})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function lge(e,t){return new sge(e.transport,e.serializer,ige(),e.promiseHandler,t.timeout)}function cge(e,t,r){return lge({transport:r,serializer:t,promiseHandler:oge(e)},{timeout:e.timeoutMillis})}class yR{emit(t){}enabled(){return!1}}const pge=new yR,Eg=Symbol.for("io.opentelemetry.js.api.logs"),Gd=globalThis;function uge(e,t,r){return n=>n===e?t:r}const vR=1;class dge{getLogger(t,r,n){return new yR}}const xR=new dge;class hge{constructor(t,r,n,o){this._provider=t,this.name=r,this.version=n,this.options=o}emit(t){this._getLogger().emit(t)}enabled(t){return this._getLogger().enabled(t)}_getLogger(){if(this._delegate)return this._delegate;const t=this._provider._getDelegateLogger(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):pge}}class wR{getLogger(t,r,n){var o;return(o=this._getDelegateLogger(t,r,n))!==null&&o!==void 0?o:new hge(this,t,r,n)}_getDelegate(){var t;return(t=this._delegate)!==null&&t!==void 0?t:xR}_setDelegate(t){this._delegate=t}_getDelegateLogger(t,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getLogger(t,r,n)}}class zk{constructor(){this._proxyLoggerProvider=new wR}static getInstance(){return this._instance||(this._instance=new zk),this._instance}setGlobalLoggerProvider(t){return Gd[Eg]?this.getLoggerProvider():(Gd[Eg]=uge(vR,t,xR),this._proxyLoggerProvider._setDelegate(t),t)}getLoggerProvider(){var t,r;return(r=(t=Gd[Eg])===null||t===void 0?void 0:t.call(Gd,vR))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(t,r,n){return this.getLoggerProvider().getLogger(t,r,n)}disable(){delete Gd[Eg],this._proxyLoggerProvider=new wR}}const SR=zk.getInstance();function fge(e,t){const r={attributes:Jd(e.attributes,t),droppedAttributesCount:0},n=e.schemaUrl;return n&&n!==""&&(r.schemaUrl=n),r}function mge(e,t){const r={name:e.name,version:e.version};return e.attributes&&Object.keys(e.attributes).length>0&&(r.attributes=Jd(e.attributes,t),r.droppedAttributesCount=e.droppedAttributesCount??0),r}function Jd(e,t){return Object.keys(e).map(r=>gge(r,e[r],t))}function gge(e,t,r){return{key:e,value:t2(t,r)}}function t2(e,t){const r=typeof e;if(r==="string")return{stringValue:e};if(r==="number")return Number.isInteger(e)?{intValue:e}:{doubleValue:e};if(r==="boolean")return{boolValue:e};if(e instanceof Uint8Array)return{bytesValue:t.encodeUint8Array(e)};if(Array.isArray(e)){const n=new Array(e.length);for(let o=0;o<e.length;o++)n[o]=t2(e[o],t);return{arrayValue:{values:n}}}if(r==="object"&&e!=null){const n=Object.keys(e),o=new Array(n.length);for(let a=0;a<n.length;a++)o[a]={key:n[a],value:t2(e[n[a]],t)};return{kvlistValue:{values:o}}}return{}}function bge(e){const t=BigInt(1e9);return BigInt(Math.trunc(e[0]))*t+BigInt(Math.trunc(e[1]))}function yge(e){return bge(e).toString()}const vge=typeof BigInt<"u"?yge:Li;function CR(e){return e}const xge={encodeHrTime:vge,encodeSpanContext:CR,encodeOptionalSpanContext:CR,encodeUint8Array:e=>{if(typeof Buffer<"u")return Buffer.from(e).toString("base64");const t=new Array(e.length);for(let r=0;r<e.length;r++)t[r]=String.fromCharCode(e[r]);return btoa(t.join(""))}},wge=256,Sge=512;function kR(e,t){let r=e&255|wge;return t&&(r|=Sge),r}function Cge(e,t){const r=e.spanContext(),n=e.status,o=e.parentSpanContext?.spanId?t.encodeSpanContext(e.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(r.traceId),spanId:t.encodeSpanContext(r.spanId),parentSpanId:o,traceState:r.traceState?.serialize(),name:e.name,kind:e.kind==null?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:Jd(e.attributes,t),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(a=>Ege(a,t)),droppedEventsCount:e.droppedEventsCount,status:{code:n.code,message:n.message},links:e.links.map(a=>kge(a,t)),droppedLinksCount:e.droppedLinksCount,flags:kR(r.traceFlags,e.parentSpanContext?.isRemote)}}function kge(e,t){return{attributes:e.attributes?Jd(e.attributes,t):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:e.context.traceState?.serialize(),droppedAttributesCount:e.droppedAttributesCount||0,flags:kR(e.context.traceFlags,e.context.isRemote)}}function Ege(e,t){return{attributes:e.attributes?Jd(e.attributes,t):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}function Age(e,t){return{resourceSpans:_ge(e,t)}}function Tge(e){const t=new Map;for(const r of e){let n=t.get(r.resource);n||(n=new Map,t.set(r.resource,n));const o=`${r.instrumentationScope.name}@${r.instrumentationScope.version||""}:${r.instrumentationScope.schemaUrl||""}`;let a=n.get(o);a||(a=[],n.set(o,a)),a.push(r)}return t}function _ge(e,t){const r=Tge(e),n=[],o=r.entries();let a=o.next();for(;!a.done;){const[i,s]=a.value,c=[],u=s.values();let d=u.next();for(;!d.done;){const y=d.value;if(y.length>0){const v=y.map(x=>Cge(x,t));c.push({scope:mge(y[0].instrumentationScope,t),spans:v,schemaUrl:y[0].instrumentationScope.schemaUrl})}d=u.next()}const f=fge(i,t),g={resource:f,scopeSpans:c,schemaUrl:f.schemaUrl};n.push(g),a=o.next()}return n}const Oge={serializeRequest:e=>{const t=Age(e,xge);return new TextEncoder().encode(JSON.stringify(t))},deserializeResponse:e=>{if(e.length===0)return{};const t=new TextDecoder;try{return JSON.parse(t.decode(e))}catch(r){return ht.warn(`Failed to parse trace export response: ${r.message}. Returning empty response`),{}}}},r2=5,Lge=1e3,jge=5e3,Nge=1.5,ER=.2;function Rge(){return Math.random()*(2*ER)-ER}class Pge{_transport;constructor(t){this._transport=t}retry(t,r,n){return new Promise((o,a)=>{setTimeout(()=>{this._transport.send(t,r).then(o,a)},n)})}async send(t,r){let n=r2,o=Lge;const a=Date.now()+r;let i=await this._transport.send(t,r);for(;i.status==="retryable"&&n>0;){n--;const s=Math.max(Math.min(o*(1+Rge()),jge),0);o=o*Nge;const c=i.retryInMillis??s,u=a-Date.now();if(c>u)return ht.info(`Export retry time ${Math.round(c)}ms exceeds remaining timeout ${Math.round(u)}ms, not retrying further.`),i;ht.verbose(`Scheduling export retry in ${Math.round(c)}ms`),i=await this.retry(t,u,c)}return i.status==="success"?ht.verbose(`Export succeeded after ${r2-n} retry attempts.`):i.status==="retryable"?ht.info(`Export failed after maximum retry attempts (${r2}).`):ht.info(`Export failed with non-retryable error: ${i.error}`),i}shutdown(){return this._transport.shutdown()}}function Ige(e){return new Pge(e.transport)}function $ge(e){return e===429||e===502||e===503||e===504}function Mge(e){if(e==null)return;const t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?t*1e3:-1;const r=new Date(e).getTime()-Date.now();return r>=0?r:0}const Dge=60*1024,zge=9;let n2=0,Ag=0;class Bge{_parameters;constructor(t){this._parameters=t}async send(t,r){const n=new AbortController,o=setTimeout(()=>n.abort(),r);let a=globalThis.fetch;typeof a.__original=="function"&&(a=a.__original);const i=t.byteLength,s=n2+i>Dge,c=Ag>=zge,u=!s&&!c;if(u)n2+=i,Ag++;else{const d=s?"size limit":"count limit";ht.debug(`keepalive disabled: ${(i/1024).toFixed(1)}KB payload, ${Ag} pending (${d})`)}try{const d=new URL(this._parameters.url),f=await a(d.href,{method:"POST",headers:await this._parameters.headers(),body:t,signal:n.signal,keepalive:u,mode:globalThis.location?globalThis.location.origin===d.origin?"same-origin":"cors":"no-cors"});if(f.status>=200&&f.status<=299)return ht.debug(`export response success (status: ${f.status})`),{status:"success"};if($ge(f.status)){ht.warn(`export response retryable (status: ${f.status})`);const g=f.headers.get("Retry-After");return{status:"retryable",retryInMillis:Mge(g)}}return ht.error(`export response failure (status: ${f.status})`),{status:"failure",error:new Error(`Fetch request failed with non-retryable status ${f.status}`)}}catch(d){return Fge(d)?(ht.warn(`export request retryable (network error: ${d})`),{status:"retryable",error:new Error("Fetch request encountered a network error",{cause:d})}):(ht.error(`export request failure (error: ${d})`),{status:"failure",error:new Error("Fetch request errored",{cause:d})})}finally{clearTimeout(o),u&&(n2-=i,Ag--)}}shutdown(){}}function Uge(e){return new Bge(e)}function Fge(e){return e instanceof TypeError&&!e.cause}function qge(e,t){return cge(e,t,Ige({transport:Uge(e)}))}function Hge(e){const t={};return Object.entries(e??{}).forEach(([r,n])=>{typeof n<"u"?t[r]=String(n):ht.warn(`Header "${r}" has invalid value (${n}) and will be ignored`)}),t}function Vge(e,t,r){return async()=>{const n={...await r()},o={};return t!=null&&Object.assign(o,await t()),e!=null&&Object.assign(o,Hge(await e())),Object.assign(o,n)}}function Wge(e){if(e!=null)try{const t=globalThis.location?.href;return new URL(e,t).href}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${e}'`)}}function Yge(e,t,r){return{...tge(e,t,r),headers:Vge(e.headers,t.headers,r.headers),url:Wge(e.url)??t.url??r.url}}function Gge(e,t){return{...rge(),headers:async()=>e,url:"http://localhost:4318/"+t}}function Jge(e){return typeof e.headers=="function"?e.headers:ege(e.headers)}function Kge(e,t,r){return Yge({url:e.url,timeoutMillis:e.timeoutMillis,headers:Jge(e),concurrencyLimit:e.concurrencyLimit},{},Gge(r,t))}function Qge(e,t,r,n){const o=Kge(e,r,n);return qge(o,t)}class AR extends Zme{constructor(t={}){super(Qge(t,Oge,"v1/traces",{"Content-Type":"application/json"}))}}const Zge=Object.freeze(Object.defineProperty({__proto__:null,OTLPTraceExporter:AR},Symbol.toStringTag,{value:"Module"})),Xge=ia(Zge),e1e=ia(bfe);function t1e(e,t,r,n){for(let o=0,a=e.length;o<a;o++){const i=e[o];t&&i.setTracerProvider(t),r&&i.setMeterProvider(r),n&&i.setLoggerProvider&&i.setLoggerProvider(n),i.getConfig().enabled||i.enable()}}function r1e(e){e.forEach(t=>t.disable())}function TR(e){const t=e.tracerProvider||Nn.getTracerProvider(),r=e.meterProvider||dg.getMeterProvider(),n=e.loggerProvider||SR.getLoggerProvider(),o=e.instrumentations?.flat()??[];return t1e(o,t,r,n),()=>{r1e(o)}}let ko=console.error.bind(console);function Kd(e,t,r){const n=!!e[t]&&Object.prototype.propertyIsEnumerable.call(e,t);Object.defineProperty(e,t,{configurable:!0,enumerable:n,writable:!0,value:r})}const _R=(e,t,r)=>{if(!e||!e[t]){ko("no original function "+String(t)+" to wrap");return}if(!r){ko("no wrapper function"),ko(new Error().stack);return}const n=e[t];if(typeof n!="function"||typeof r!="function"){ko("original object and wrapper must be functions");return}const o=r(n,t);return Kd(o,"__original",n),Kd(o,"__unwrap",()=>{e[t]===o&&Kd(e,t,n)}),Kd(o,"__wrapped",!0),Kd(e,t,o),o},n1e=(e,t,r)=>{if(e)Array.isArray(e)||(e=[e]);else{ko("must provide one or more modules to patch"),ko(new Error().stack);return}if(!(t&&Array.isArray(t))){ko("must provide one or more functions to wrap on modules");return}e.forEach(n=>{t.forEach(o=>{_R(n,o,r)})})},OR=(e,t)=>{if(!e||!e[t]){ko("no function to unwrap."),ko(new Error().stack);return}const r=e[t];if(!r.__unwrap)ko("no original to unwrap to -- has "+String(t)+" already been unwrapped?");else{r.__unwrap();return}},o1e=(e,t)=>{if(e)Array.isArray(e)||(e=[e]);else{ko("must provide one or more modules to patch"),ko(new Error().stack);return}if(!(t&&Array.isArray(t))){ko("must provide one or more functions to unwrap on modules");return}e.forEach(r=>{t.forEach(n=>{OR(r,n)})})};class a1e{_config={};_tracer;_meter;_logger;_diag;instrumentationName;instrumentationVersion;constructor(t,r,n){this.instrumentationName=t,this.instrumentationVersion=r,this.setConfig(n),this._diag=ht.createComponentLogger({namespace:t}),this._tracer=Nn.getTracer(t,r),this._meter=dg.getMeter(t,r),this._logger=SR.getLogger(t,r),this._updateMetricInstruments()}_wrap=_R;_unwrap=OR;_massWrap=n1e;_massUnwrap=o1e;get meter(){return this._meter}setMeterProvider(t){this._meter=t.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(t){this._logger=t.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){const t=this.init()??[];return Array.isArray(t)?t:[t]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(t){this._config={enabled:!0,...t}}setTracerProvider(t){this._tracer=t.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(t,r,n,o){if(t)try{t(n,o)}catch(a){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},a)}}}class LR extends a1e{constructor(t,r,n){super(t,r,n),this._config.enabled&&this.enable()}}function i1e(e){return ht.warn("Path normalization is not implemented for this platform. To silence this warning, ensure no node-specific instrumentations are loaded, and node-specific types (e.g. InstrumentationNodeModuleFile), are not used in a browser context)"),e}class s1e{files;name;supportedVersions;patch;unpatch;constructor(t,r,n,o,a){this.files=a||[],this.name=t,this.supportedVersions=r,this.patch=n,this.unpatch=o}}class l1e{name;supportedVersions;patch;unpatch;constructor(t,r,n,o){this.name=i1e(t),this.supportedVersions=r,this.patch=n,this.unpatch=o}}function c1e(e,t,r){let n,o;try{o=e()}catch(a){n=a}finally{if(t(n,o),n&&!r)throw n;return o}}async function p1e(e,t,r){let n,o;try{o=await e()}catch(a){n=a}finally{if(await t(n,o),n&&!r)throw n;return o}}function u1e(e){return typeof e=="function"&&typeof e.__original=="function"&&typeof e.__unwrap=="function"&&e.__wrapped===!0}var pp;(function(e){e[e.STABLE=1]="STABLE",e[e.OLD=2]="OLD",e[e.DUPLICATE=3]="DUPLICATE"})(pp||(pp={}));function d1e(e,t){let r=pp.OLD;const n=t?.split(",").map(o=>o.trim()).filter(o=>o!=="");for(const o of n??[])if(o.toLowerCase()===e+"/dup"){r=pp.DUPLICATE;break}else o.toLowerCase()===e&&(r=pp.STABLE);return r}const h1e=Object.freeze(Object.defineProperty({__proto__:null,InstrumentationBase:LR,InstrumentationNodeModuleDefinition:s1e,InstrumentationNodeModuleFile:l1e,get SemconvStability(){return pp},isWrapped:u1e,registerInstrumentations:TR,safeExecuteInTheMiddle:c1e,safeExecuteInTheMiddleAsync:p1e,semconvStabilityFromStr:d1e},Symbol.toStringTag,{value:"Module"})),f1e=ia(h1e);function ji(e){const t=new Error(e);return t.source="ulid",t}const zl="0123456789ABCDEFGHJKMNPQRSTVWXYZ",Bl=zl.length,o2=Math.pow(2,48)-1,Qd=10,a2=16;function i2(e,t,r){return t>e.length-1?e:e.substr(0,t)+r+e.substr(t+1)}function jR(e){let t,r=e.length,n,o;const a=Bl-1;for(;!t&&r-->=0;){if(n=e[r],o=zl.indexOf(n),o===-1)throw ji("incorrectly encoded string");if(o===a){e=i2(e,r,zl[0]);continue}t=i2(e,r,zl[o+1])}if(typeof t=="string")return t;throw ji("cannot increment this string")}function NR(e){let t=Math.floor(e()*Bl);return t===Bl&&(t=Bl-1),zl.charAt(t)}function Tg(e,t){if(isNaN(e))throw new Error(e+" must be a number");if(e>o2)throw ji("cannot encode time greater than "+o2);if(e<0)throw ji("time must be positive");if(Number.isInteger(Number(e))===!1)throw ji("time must be an integer");let r,n="";for(;t>0;t--)r=e%Bl,n=zl.charAt(r)+n,e=(e-r)/Bl;return n}function s2(e,t){let r="";for(;e>0;e--)r=NR(t)+r;return r}function m1e(e){if(e.length!==Qd+a2)throw ji("malformed ulid");var t=e.substr(0,Qd).split("").reverse().reduce((r,n,o)=>{const a=zl.indexOf(n);if(a===-1)throw ji("invalid character found: "+n);return r+=a*Math.pow(Bl,o)},0);if(t>o2)throw ji("malformed ulid, timestamp too large");return t}function l2(e=!1,t){t||(t=typeof window<"u"?window:null);const r=t&&(t.crypto||t.msCrypto);if(r)return()=>{const n=new Uint8Array(1);return r.getRandomValues(n),n[0]/255};try{const n=require("crypto");return()=>n.randomBytes(1).readUInt8()/255}catch{}if(e){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch{}return()=>Math.random()}throw ji("secure crypto unusable, insecure Math.random not allowed")}function RR(e){return e||(e=l2()),function(t){return isNaN(t)&&(t=Date.now()),Tg(t,Qd)+s2(a2,e)}}function g1e(e){e||(e=l2());let t=0,r;return function(n){if(isNaN(n)&&(n=Date.now()),n<=t){const a=r=jR(r);return Tg(t,Qd)+a}t=n;const o=r=s2(a2,e);return Tg(n,Qd)+o}}const PR=RR(),b1e=Object.freeze(Object.defineProperty({__proto__:null,decodeTime:m1e,detectPrng:l2,encodeRandom:s2,encodeTime:Tg,factory:RR,incrementBase32:jR,monotonicFactory:g1e,randomChar:NR,replaceCharAt:i2,ulid:PR},Symbol.toStringTag,{value:"Module"})),IR=ia(b1e);var up={};const $R=ia(ine);var Zd={},MR;function y1e(){if(MR)return Zd;MR=1,Object.defineProperty(Zd,"__esModule",{value:!0}),Zd.TraceStep=void 0;const e=$R;class t{constructor(n){Object.defineProperty(this,"span",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.span=n}get context(){var n;return(n=this.span)===null||n===void 0?void 0:n.context}error(n){this.span&&(this.span.setStatus(e.SpanStatusCode.ERROR,n.message),this.span.recordException(n),this.span.end())}setAttribute(n,o){this.span&&this.span.setAttribute(n,o)}setStatus(n,o){this.span&&this.span.setStatus(n,o)}end(){this.span&&(this.span.setStatus(e.SpanStatusCode.OK),this.span.end())}}return Zd.TraceStep=t,Zd}var dp={},DR;function zR(){if(DR)return dp;DR=1,Object.defineProperty(dp,"__esModule",{value:!0}),dp.CLOUD_EVENT_STANDARD_KEYS=void 0,dp.mapToCloudEvent=t;const e=IR;dp.CLOUD_EVENT_STANDARD_KEYS=["id","specversion","object","datacontenttype","type","time","origin","env","category","signal","source","subject","subjects","data","actor","requestId","clientIp","organizationId","organizationSlug","projectId","projectSlug","osPlatform","userAgent","sessionId"];function t(r){var n,o,a,i,s,c,u,d;const{type:f,data:g,actor:y,requestId:v,clientIp:x,origin:S,env:w,source:C,organizationId:A,organizationSlug:T,projectId:L,projectSlug:j,category:P="product",signal:_="log",osPlatform:I,userAgent:z,sessionId:q}=r,B=!!(g&&Array.isArray(g)),G=y?{id:(a=y.id)!==null&&a!==void 0?a:`ann_${(0,e.ulid)()}`,object:(i=y.object)!==null&&i!==void 0?i:"user",uri:(s=y.uri)!==null&&s!==void 0?s:""}:null,te=`evt_${(0,e.ulid)()}`.toLowerCase(),le=new Date,Y=(c=C??G?.uri)!==null&&c!==void 0?c:null,ie=Object.assign(Object.assign(Object.assign(Object.assign({},A!==void 0&&{organizationId:A}),T!==void 0&&{organizationSlug:T}),L!==void 0&&{projectId:L}),j!==void 0&&{projectSlug:j}),re={specversion:"1.0",object:"event",datacontenttype:"application/json; charset=utf-8",origin:S,env:w,category:P,signal:_,osPlatform:I,userAgent:z,clientIp:x,sessionId:q};if(B){const de=g,X=de.map(ae=>{var K,V,se;return{id:(K=ae.id)!==null&&K!==void 0?K:"",object:(V=ae.object)!==null&&V!==void 0?V:"",uri:(se=ae.uri)!==null&&se!==void 0?se:""}}),H=(u=(n=de[0])===null||n===void 0?void 0:n.id)!==null&&u!==void 0?u:null;Object.assign(re,Object.assign(Object.assign({},ie),{id:te,type:f,time:le,source:Y,actor:G,subject:H,subjects:X,data:de,requestId:v??""}))}else{const de=(d=(o=Array.isArray(g)?g[0]:g)===null||o===void 0?void 0:o.id)!==null&&d!==void 0?d:null;Object.assign(re,Object.assign(Object.assign(Object.assign({},ie),{id:te,type:f,time:le,source:Y,actor:G,subject:de,requestId:v??"",data:g}),C!=null&&{request:{source:C}}))}return re}return dp}var Ni={},BR;function v1e(){if(BR)return Ni;BR=1,Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.toSnakeCase=t,Ni.isNonNullish=r,Ni.isOtelAttributeValue=n,Ni.flattenToAttributes=o,Ni.flattenNestedObject=a,Ni.flattenWithMaxDepth=i;const e=3;function t(s){return s.replace(/([A-Z])/g,"_$1").toLowerCase()}function r(s){return s!=null}function n(s){return typeof s=="string"||typeof s=="number"||typeof s=="boolean"}function o(s,c,u,d=!0,f){const g=f?.length?new Set(f):null;for(const[y,v]of Object.entries(s))if(!g?.has(y)&&v!==void 0){const x=d?t(y):y;u[`${c}${x}`]=v}}function a(s,c,u){for(const[d,f]of Object.entries(s))f==null||typeof f=="object"||(u[`${c}.${t(d)}`]=f)}function i(s,c,u,d){var f,g,y;const v=(f=d?.currentDepth)!==null&&f!==void 0?f:0,x=(g=d?.useSnakeCase)!==null&&g!==void 0?g:!0,S=(y=d?.maxNestingLevels)!==null&&y!==void 0?y:e,w=c.endsWith(".")?c.slice(0,-1):c;for(const[C,A]of Object.entries(s)){if(!r(A))continue;const T=x?t(C):C,L=`${w}.${T}`;typeof A=="object"&&!Array.isArray(A)?v<S&&i(A,L,u,{currentDepth:v+1,useSnakeCase:x,maxNestingLevels:S}):n(A)&&(u[L]=A)}}return Ni}var UR;function x1e(){return UR||(UR=1,(function(e){var t=up&&up.__awaiter||function(_,I,z,q){function B(G){return G instanceof z?G:new z(function(te){te(G)})}return new(z||(z=Promise))(function(G,te){function le(re){try{ie(q.next(re))}catch(de){te(de)}}function Y(re){try{ie(q.throw(re))}catch(de){te(de)}}function ie(re){re.done?G(re.value):B(re.value).then(le,Y)}ie((q=q.apply(_,I||[])).next())})},r=up&&up.__rest||function(_,I){var z={};for(var q in _)Object.prototype.hasOwnProperty.call(_,q)&&I.indexOf(q)<0&&(z[q]=_[q]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B=0,q=Object.getOwnPropertySymbols(_);B<q.length;B++)I.indexOf(q[B])<0&&Object.prototype.propertyIsEnumerable.call(_,q[B])&&(z[q[B]]=_[q[B]]);return z};Object.defineProperty(e,"__esModule",{value:!0}),e.BaseOtelClient=e.BUS_STYLE_SNAPSHOT_CONTEXT_KEY=void 0,e.groupByObjectProperty=c,e.processCloudEventAttributes=v,e.processObjectData=A,e.processAttributes=j;const n=$R,o=y1e(),a=zR(),i=v1e();e.BUS_STYLE_SNAPSHOT_CONTEXT_KEY="context";const s=[e.BUS_STYLE_SNAPSHOT_CONTEXT_KEY];function c(_){const I={updated:[],notUpdated:[]};for(const z of _){if(!z||typeof z!="object")continue;const q=z.object;if(typeof q!="string")continue;const B=z,G=I.notUpdated.find(te=>te.object===q);G?(I.updated=[G,B],I.notUpdated=I.notUpdated.filter(te=>te.object!==q)):I.updated.some(te=>te.object===q)||I.notUpdated.push(B)}return I}function u(_,I,z){const q=z?`${z}.`:"",B=I===""?"":`${(0,i.toSnakeCase)(I)}.`;return`${_}.${q}${B}`}function d(_,I){const z=_[e.BUS_STYLE_SNAPSHOT_CONTEXT_KEY];return z==="before"||z==="after"?z:I===0?"after":"before"}function f(_){const I=_,z=e.BUS_STYLE_SNAPSHOT_CONTEXT_KEY;return r(I,[typeof z=="symbol"?z:z+""])}function g(_){return _.endsWith(".")?_:`${_}.`}function y(_,I,z){var q,B,G,te,le,Y,ie,re,de,X;const H=I instanceof Date?I.toISOString():new Date(I).toISOString();return{"cloudevents.event_id":_.id,"cloudevents.event_type":_.type,"cloudevents.event_source":(te=_.source)!==null&&te!==void 0?te:void 0,"cloudevents.event_spec_version":_.specversion,"cloudevents.event_data_content_type":(le=_.datacontenttype)!==null&&le!==void 0?le:"application/json; charset=utf-8","cloudevents.event_time":H,"cloudevents.event_subject":(Y=_.subject)!==null&&Y!==void 0?Y:"","cloudevents.event_version":z?.version,"cloudevents.event_origin":(ie=_.origin)!==null&&ie!==void 0?ie:z?.serviceName,"cloudevents.event_env":_.env,"cloudevents.event_client_ip":_.clientIp,"cloudevents.event_object":_.object||"event","cloudevents.event_category":_.category,"cloudevents.event_signal":_.signal,"cloudevents.event_actor.id":(re=(q=_.actor)===null||q===void 0?void 0:q.id)!==null&&re!==void 0?re:void 0,"cloudevents.event_actor.object":(de=(B=_.actor)===null||B===void 0?void 0:B.object)!==null&&de!==void 0?de:void 0,"cloudevents.event_actor.uri":(X=(G=_.actor)===null||G===void 0?void 0:G.uri)!==null&&X!==void 0?X:void 0,"cloudevents.event_organization_id":_.organizationId,"cloudevents.event_organization_slug":_.organizationSlug,"cloudevents.event_project_id":_.projectId,"cloudevents.event_project_slug":_.projectSlug,"cloudevents.event_request_id":_.requestId,"cloudevents.event_os_platform":_.osPlatform,"cloudevents.event_user_agent":_.userAgent,"cloudevents.event_session_id":_.sessionId}}function v(_,I,z){const q=_.data,B=Object.assign({},y(_,I,z));return x(q,B),T(_,B),L(_,B),B}function x(_,I){!_||typeof _!="object"||(Array.isArray(_)?S(_,I):A(_,I))}function S(_,I){_.some(z=>z&&typeof z=="object"&&typeof z.object=="string")?w(_,I):C(_,I)}function w(_,I){const z=c(_);z.updated.forEach((q,B)=>{const G=u("cloudevents.event_data",q.object,d(q,B));(0,i.flattenWithMaxDepth)(f(q),g(G),I)}),z.notUpdated.forEach(q=>{const B=u("cloudevents.event_data",q.object,void 0);(0,i.flattenWithMaxDepth)(f(q),g(B),I)})}function C(_,I){for(const z of _)!z||typeof z!="object"||(0,i.flattenWithMaxDepth)(z,"cloudevents.event_data.",I)}function A(_,I){for(const[z,q]of Object.entries(_)){if(!(0,i.isNonNullish)(q))continue;const B=(0,i.toSnakeCase)(z);if(typeof q=="object"&&!Array.isArray(q))for(const[G,te]of Object.entries(q))(0,i.isNonNullish)(te)&&(0,i.isOtelAttributeValue)(te)&&(I[`cloudevents.event_data.${B}.${G}`]=te);else(0,i.isOtelAttributeValue)(q)&&(I[`cloudevents.event_data.${B}`]=q)}}function T(_,I){if(!_.subjects||!Array.isArray(_.subjects))return;const z=c(_.subjects);z.updated.forEach((q,B)=>{const G=u("cloudevents.event_subjects",q.object,d(q,B));(0,i.flattenToAttributes)(q,G,I,!1,s)}),z.notUpdated.forEach(q=>{const B=u("cloudevents.event_subjects",q.object,void 0);(0,i.flattenToAttributes)(q,B,I,!1,s)})}function L(_,I){for(const[z,q]of Object.entries(_))if(!(a.CLOUD_EVENT_STANDARD_KEYS.includes(z)||q===void 0))if(q instanceof Object)for(const[B,G]of Object.entries(q))G!==void 0&&(I[`cloudevents.${z}.${B}`]=G);else I[`cloudevents.${z}`]=q}function j(_,I,z){return v(_,I,z)}class P{constructor(){Object.defineProperty(this,"config",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"tracer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"tracerProvider",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"initialized",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"sessionId",{enumerable:!0,configurable:!0,writable:!0,value:null})}initTracer(I){throw new Error("initTracer must be implemented by the environment-specific client")}init(I){this.config=I,this.initTracer(I)}send(I){var z;try{if(!this.tracer||!this.config)return;const q=I,B="time"in q&&q.time?new Date(q.time):new Date;this.tracer.startSpan(`event.${q.type}`,{attributes:this.processAttributes(q,B),startTime:B}).end(B)}catch(q){!((z=this.config)===null||z===void 0)&&z.isProd||console.error("Event reporting failed:",q)}}processAttributes(I,z){return j(I,z,this.config)}startSpan(I,z){var q;try{if(!this.tracer)return;let B;const G=I.time?new Date(I.time):new Date,te=this.tracer.startSpan(`event.${I.type}`,{attributes:this.processAttributes(I,G),root:!z},z);return z||(B=n.trace.setSpan(n.context.active(),te)),{end:()=>te.end(),setAttribute:(le,Y)=>{te.setAttribute(`cloudevents.event_data.${(0,i.toSnakeCase)(le)}`,Y)},setStatus:(le,Y)=>te.setStatus({code:le,message:Y}),parentCtx:B}}catch(B){!((q=this.config)===null||q===void 0)&&q.isProd||console.error("Event reporting failed:",B);return}}startStepSpan(I,z){var q;try{if(!this.tracer)return;const B=z||n.context.active(),G=I,te=G.time?new Date(G.time):new Date,le=this.tracer.startSpan(`event.${G.type}`,{attributes:this.processAttributes(G,te)},B),Y=n.trace.setSpan(B,le);return{end:()=>le.end(),setAttribute:(ie,re)=>{le.setAttribute(`cloudevents.event_data.${(0,i.toSnakeCase)(ie)}`,re)},setStatus:(ie,re)=>le.setStatus({code:ie,message:re}),recordException:ie=>le.recordException(ie),context:Y}}catch(B){!((q=this.config)===null||q===void 0)&&q.isProd||console.error("Event reporting failed:",B);return}}traceStep(I){const z=this.startStepSpan(I);if(z)return new o.TraceStep(z)}forceFlush(){return t(this,void 0,void 0,function*(){var I;return(I=this.tracerProvider)===null||I===void 0?void 0:I.forceFlush()})}shutdown(){return t(this,void 0,void 0,function*(){var I;return(I=this.tracerProvider)===null||I===void 0?void 0:I.shutdown()})}}e.BaseOtelClient=P})(up)),up}var FR;function w1e(){if(FR)return Nd;FR=1,Object.defineProperty(Nd,"__esModule",{value:!0}),Nd.OtelClient=void 0;const e=Kme,t=Qme,r=Xge,n=e1e,o=f1e,a=IR,i=x1e();class s extends i.BaseOtelClient{constructor(){super(),Object.defineProperty(this,"tracer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"initialized",{enumerable:!0,configurable:!0,writable:!0,value:!1})}initTracer(u){var d,f;if(!u.collectorUrl&&!u.collectorTraceUrl)return;const g=`ses_${(0,a.ulid)()}`;this.sessionId=g;const y=(0,t.resourceFromAttributes)({[n.ATTR_SERVICE_NAME]:u.serviceName,[n.ATTR_SERVICE_VERSION]:u.serviceVersion,session_id:g}),v=u.collectorTraceUrl||`${u.collectorUrl}/v1/traces`;this.tracerProvider=new e.WebTracerProvider({resource:y,spanProcessors:[...(d=u.spanProcessors)!==null&&d!==void 0?d:[],new e.BatchSpanProcessor(new r.OTLPTraceExporter({url:v,headers:{}}))]}),this.tracer=this.tracerProvider.getTracer(u.tracerName),this.tracerProvider.register(),(0,o.registerInstrumentations)({instrumentations:(f=u.instrumentations)!==null&&f!==void 0?f:[]}),this.initialized=!0}}return Nd.OtelClient=s,Nd}var qR={},HR;function S1e(){return HR||(HR=1,Object.defineProperty(qR,"__esModule",{value:!0})),qR}var VR;function WR(){return VR||(VR=1,(function(e){var t=cp&&cp.__createBinding||(Object.create?(function(n,o,a,i){i===void 0&&(i=a);var s=Object.getOwnPropertyDescriptor(o,a);(!s||("get"in s?!o.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return o[a]}}),Object.defineProperty(n,i,s)}):(function(n,o,a,i){i===void 0&&(i=a),n[i]=o[a]})),r=cp&&cp.__exportStar||function(n,o){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&t(o,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(w1e(),e),r(S1e(),e)})(cp)),cp}var hp={},YR;function C1e(){if(YR)return hp;YR=1,Object.defineProperty(hp,"__esModule",{value:!0}),hp.buildPageResourceItem=t,hp.appendPageResourceIfNeeded=r,hp.enrichMessageWithPageResource=n;const e=()=>({location:typeof location<"u"?location:void 0,document:typeof document<"u"?document:void 0});function t(a=e()){var i;if(!a.location)return;const s=((i=a.document)===null||i===void 0?void 0:i.referrer)||void 0;return Object.assign({id:a.location.href,object:"page",uri:a.location.href},s?{referrer:s}:{})}function r(a,i,s){if(!s.has(a)||!Array.isArray(i)||i.some(o))return i;const c=t();return c?[...i,c]:i}function n(a,i){const s=r(a.type,a.data,i);return s===a.data?a:Object.assign(Object.assign({},a),{data:s})}function o(a){return a!=null&&typeof a=="object"&&a.object==="page"}return hp}var GR;function k1e(){if(GR)return jd;GR=1,Object.defineProperty(jd,"__esModule",{value:!0}),jd.Telemetry=void 0;const e=WR(),t=zR(),r=C1e(),n=new Set(["com.redocly.downloadDefinition.clicked","com.redocly.copyCodeSnippet.clicked","com.redocly.referencedIn.clicked","com.redocly.selectLanguage.clicked","com.redocly.expandCollapseAll.clicked","com.redocly.examplesSwitcher.clicked","com.redocly.switchServers.clicked","com.redocly.tryIt.opened","com.redocly.changeLayout.clicked","com.redocly.viewSecurityDetails.clicked","com.redocly.viewSecurityDetails.closed","com.redocly.search.opened","com.redocly.searchResult.clicked","com.redocly.searchInputReset.clicked","com.redocly.switchMessage.clicked","com.redocly.switchExample.clicked","com.redocly.message.clicked","com.redocly.serverModal.opened","com.redocly.requiredScopesModal.opened"]);class o{constructor(){Object.defineProperty(this,"config",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"initialized",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"useCloudEventData",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"otelClient",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tracer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"updateCloudEventData",{enumerable:!0,configurable:!0,writable:!0,value:i=>{var s;!((s=this.config)===null||s===void 0)&&s.disabled||(this.useCloudEventData=i)}}),this.useCloudEventData=()=>({origin:"redocUi",signal:"log"}),this.otelClient=new e.OtelClient,this.tracer={traceStep:(i,s)=>{const c=this.constructCloudEvent(i,s,{signal:"trace"});return this.otelClient.traceStep(c)}}}send(i,s,c){var u,d;try{if(!(!((u=this.config)===null||u===void 0)&&u.otel.isProd))return;const f=i&&typeof i=="object"&&"type"in i&&"data"in i?(0,r.enrichMessageWithPageResource)(i,n):this.constructCloudEvent(i,s,Object.assign(Object.assign({},c),{signal:"log"}));this.sendToOtelService(f)}catch(f){!((d=this.config)===null||d===void 0)&&d.otel.isProd||console.error("Event reporting failed:",f)}}init(i){i.disabled||this.initialized||(this.config=i,this.initialized=!0,this.otelClient.init({serviceVersion:i.otel.serviceVersion,version:i.otel.version,isProd:i.otel.isProd,collectorUrl:i.otel.collectorUrl,collectorTraceUrl:i.otel.collectorTraceUrl,serviceName:i.otel.serviceName,tracerName:i.otel.tracerName,spanProcessors:i.otel.spanProcessors,instrumentations:[...i.otel.instrumentations||[]]}))}startSpan(i,s,c){var u;if(!((u=this.config)===null||u===void 0)&&u.disabled)return;const d=this.constructCloudEvent(i,s,{signal:"trace"});return this.otelClient.startSpan(d,c)}constructCloudEvent(i,s,c){const u=Object.assign(Object.assign({},this.useCloudEventData()),c);return(0,t.mapToCloudEvent)(Object.assign(Object.assign({type:i,data:(0,r.appendPageResourceIfNeeded)(i,s,n)},u),this.otelClient.sessionId&&{sessionId:this.otelClient.sessionId}))}sendToOtelService(i){var s;!((s=this.config)===null||s===void 0)&&s.otel.isProd||console.log("CloudEvent to be sent to OTEL service:",i),this.otelClient.send(Object.assign(Object.assign({},i),{signal:"log"}))}forceFlush(){var i;return!((i=this.config)===null||i===void 0)&&i.disabled?Promise.resolve():this.otelClient.forceFlush()}shutdown(){var i;return!((i=this.config)===null||i===void 0)&&i.disabled?Promise.resolve():this.otelClient.shutdown()}sendViewedMessage(i,s){this.send("com.redocly.page.viewed",i,s)}sendPerformanceMetricsMessage(i,s){this.send("com.redocly.performanceMetrics.collected",i,s)}sendDownloadDefinitionClickedMessage(i,s){this.send("com.redocly.downloadDefinition.clicked",i,s)}sendCopyCodeSnippetClickedMessage(i,s){this.send("com.redocly.copyCodeSnippet.clicked",i,s)}sendReferencedInClickedMessage(i,s){this.send("com.redocly.referencedIn.clicked",i,s)}sendSelectLanguageClickedMessage(i,s){this.send("com.redocly.selectLanguage.clicked",i,s)}sendExpandCollapseAllClickedMessage(i,s){this.send("com.redocly.expandCollapseAll.clicked",i,s)}sendExamplesSwitcherClickedMessage(i,s){this.send("com.redocly.examplesSwitcher.clicked",i,s)}sendSwitchServersClickedMessage(i,s){this.send("com.redocly.switchServers.clicked",i,s)}sendTryItOpenedMessage(i,s){this.send("com.redocly.tryIt.opened",i,s)}sendChangeLayoutClickedMessage(i,s){this.send("com.redocly.changeLayout.clicked",i,s)}sendViewSecurityDetailsClickedMessage(i,s){this.send("com.redocly.viewSecurityDetails.clicked",i,s)}sendViewSecurityDetailsClosedMessage(i,s){this.send("com.redocly.viewSecurityDetails.closed",i,s)}sendSearchOpenedMessage(i,s){this.send("com.redocly.search.opened",i,s)}sendSearchResultClickedMessage(i,s){this.send("com.redocly.searchResult.clicked",i,s)}sendSearchInputResetClickedMessage(i,s){this.send("com.redocly.searchInputReset.clicked",i,s)}sendSwitchMessageClickedMessage(i,s){this.send("com.redocly.switchMessage.clicked",i,s)}sendSwitchExampleClickedMessage(i,s){this.send("com.redocly.switchExample.clicked",i,s)}sendMessageClickedMessage(i,s){this.send("com.redocly.message.clicked",i,s)}sendServerModalOpenedMessage(i,s){this.send("com.redocly.serverModal.opened",i,s)}sendRequiredScopesModalOpenedMessage(i,s){this.send("com.redocly.requiredScopesModal.opened",i,s)}sendInitialMessage(i,s){this.send("com.redocly.redoc.initialized",i,s)}sendErrorMessage(i,s){this.send("com.redocly.error.occurred",i,s)}}return jd.Telemetry=o,jd}var JR;function E1e(){return JR||(JR=1,(function(e){var t=lp&&lp.__createBinding||(Object.create?(function(n,o,a,i){i===void 0&&(i=a);var s=Object.getOwnPropertyDescriptor(o,a);(!s||("get"in s?!o.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return o[a]}}),Object.defineProperty(n,i,s)}):(function(n,o,a,i){i===void 0&&(i=a),n[i]=o[a]})),r=lp&&lp.__exportStar||function(n,o){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&t(o,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(sre(),e),r(k1e(),e),r(WR(),e)})(lp)),lp}var KR={},QR;function A1e(){return QR||(QR=1,Object.defineProperty(KR,"__esModule",{value:!0})),KR}var ZR;function T1e(){return ZR||(ZR=1,(function(e){var t=sp&&sp.__createBinding||(Object.create?(function(o,a,i,s){s===void 0&&(s=i);var c=Object.getOwnPropertyDescriptor(a,i);(!c||("get"in c?!a.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return a[i]}}),Object.defineProperty(o,s,c)}):(function(o,a,i,s){s===void 0&&(s=i),o[s]=a[i]})),r=sp&&sp.__exportStar||function(o,a){for(var i in o)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&t(a,o,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.Telemetry=void 0;var n=E1e();Object.defineProperty(e,"Telemetry",{enumerable:!0,get:function(){return n.Telemetry}}),r(A1e(),e)})(sp)),sp}var _1e=T1e();const O1e="@redocly/openapi-docs",L1e="3.24.0-next.10",XR={name:O1e,version:L1e},j1e="https://otel.cloud.redocly.com/v1/traces";class eP extends _1e.Telemetry{specType;constructor(t){super(),this.specType=t.specType,this.init({otel:{isProd:!0,serviceVersion:t.serviceVersion||`${XR.name}@${XR.version}`,version:"1.0.0",collectorTraceUrl:t.collectorUrl||j1e,serviceName:t.serviceName||"redoc-ce",tracerName:"client-telemetry"},disabled:t.disabled||!1})}send(t,r){r&&Array.isArray(r)&&r.length>0&&(r=r.map(n=>n&&typeof n=="object"?{...n,specType:this.specType}:n)),super.send(t,r,{env:"production"})}}var N1e=Object.create,_g=Object.defineProperty,R1e=Object.getOwnPropertyDescriptor,P1e=Object.getOwnPropertyNames,I1e=Object.getPrototypeOf,$1e=Object.prototype.hasOwnProperty,tP=e=>_g(e,"__esModule",{value:!0}),Qe=(e,t)=>function(){return t||(0,e[Object.keys(e)[0]])((t={exports:{}}).exports,t),t.exports},rP=(e,t)=>{tP(e);for(var r in t)_g(e,r,{get:t[r],enumerable:!0})},M1e=(e,t,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of P1e(t))!$1e.call(e,n)&&n!=="default"&&_g(e,n,{get:()=>t[n],enumerable:!(r=R1e(t,n))||r.enumerable});return e},Og=e=>M1e(tP(_g(e!=null?N1e(I1e(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),nP=Qe({"src/grammar/tag.js"(e,t){function r(a,i){function s(){this.constructor=a}s.prototype=i.prototype,a.prototype=new s}function n(a,i,s,c){this.message=a,this.expected=i,this.found=s,this.location=c,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,n)}r(n,Error),n.buildMessage=function(a,i,s){var c={literal:function(x){return'"'+d(x.text)+'"'},class:function(x){var S=x.parts.map(function(w){return Array.isArray(w)?f(w[0])+"-"+f(w[1]):f(w)});return"["+(x.inverted?"^":"")+S+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(x){return x.description},not:function(x){return"not "+g(x.expected)}};function u(x){return x.charCodeAt(0).toString(16).toUpperCase()}function d(x){return x.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(S){return"\\x0"+u(S)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(S){return"\\x"+u(S)})}function f(x){return x.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(S){return"\\x0"+u(S)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(S){return"\\x"+u(S)})}function g(x){return c[x.type](x)}function y(x){var S=x.map(g),w,C;if(S.sort(),S.length>0){for(w=1,C=1;w<S.length;w++)S[w-1]!==S[w]&&(S[C]=S[w],C++);S.length=C}switch(S.length){case 1:return S[0];case 2:return S[0]+" or "+S[1];default:return S.slice(0,-1).join(", ")+", or "+S[S.length-1]}}function v(x){return x?'"'+d(x)+'"':"end of input"}return"Expected "+y(a)+" but "+v(i)+" found."};function o(a,i){i=i!==void 0?i:{};var s={},c={Top:ea},u=ea,d="/",f=".",g="#",y="=",v="(",x=")",S=",",w="[",C="]",A="null",T="true",L="false",j="{",P="}",_=":",I='"',z="\\",q="n",B="r",G="t",te=/^[$@]/,le=/^[0-9]/,Y=/^[^\0-\x1F"\\]/,ie=/^[a-zA-Z0-9_\-]/,re=/^[ \n\t]/,de=pt("/",!1),X=Vr("tag name"),H=Vr("class"),ae=Vr("id"),K=pt("=",!1),V=pt("(",!1),se=pt(")",!1),Q=pt(",",!1),ne=Vr("variable"),F=Vr("null"),be=Vr("boolean"),ke=pt("[",!1),E=pt("]",!1),R=pt("{",!1),W=pt("}",!1),ge=pt(":",!1),xe=Vr("number"),ce=Vr("string"),ue=Vr("identifier"),Ne=Vr("whitespace"),he=function(J){return{type:"variable",meta:{variable:J}}},Ke=function(J){return{type:"annotation",meta:{attributes:J}}},Je=function(J,fe){return fe},Ve=function(J,fe,we,Te){fe&&(we=we||[],we.unshift({type:"attribute",name:"primary",value:fe}));const[qe,Ze]=Te?["tag",0]:["tag_open",1];return{type:qe,nesting:Ze,meta:{tag:J,attributes:we}}},He=function(J){return{type:"tag_close",nesting:-1,meta:{tag:J}}},Xe=function(J,fe){return J?[J,...fe]:[]},ut=function(J){return J},Fe=function(J){return J},N=function(J){return J},$=function(J){return J},U=function(J){return{type:"class",name:J,value:!0}},pe=function(J){return{type:"attribute",name:"id",value:J}},Ee=function(J,fe){return{type:"attribute",name:J,value:fe}},Le=function(J,fe,we){return fe?[fe,...we]:[]},Ue=function(J,fe){let we={};for(let[Te,{name:qe,value:Ze}]of fe.entries())we[qe||Te]=Ze;return new qn(J,we)},it=function(J){return J},Ft=function(J,fe){return{name:J,value:fe}},gt=function(J){return J},Ot=function(J,fe,we){return J==="@"?[fe,...we]:new $t([fe,...we])},It=function(){return null},Ks=function(){return!0},oi=function(){return!1},ai=function(J,fe){return[J,...fe]},Ta=function(J){return J||[]},_o=function(J,fe){return Object.assign(J,...fe)},Qo=function(J){return J||{}},Oo=function(J,fe){return J==="$$mdtype"?{}:{[J]:fe}},Un=function(){return parseFloat(jo())},Zo=function(J){return J.join("")},ii=function(){return`
6670
+ `,ire=e=>{const{languageInsensitive:t,fullWidth:r,blinking:n,iconPosition:o,icon:a,children:i,variant:s,tone:c,size:u,extraClass:d,to:f,external:g,className:y,...v}=e,x="tabIndex"in e?e.tabIndex:e.to?-1:void 0,S=m.jsxs(are,{"data-component-name":"Button/Button",...v,className:ore({variant:s,tone:c,size:u,extraClass:d,className:y}),$fullWidth:r,$blinking:n,$iconPosition:o,$icon:a,$iconOnly:!i&&a!=null,$variant:s,$size:u,tabIndex:x,children:[a&&o!=="right"&&a,i,a&&o==="right"&&a]});return f?m.jsx(nre,{to:f,external:g,languageInsensitive:t,onClick:e.onClick,children:S}):S},bt=ve(ire)``;function Da(){const e=M.useId().replace(/:/g,"_");return t=>`${t}-${e}`}var sp={},lp={},qA={},HA;function sre(){return HA||(HA=1,Object.defineProperty(qA,"__esModule",{value:!0})),qA}var jd={},cp={},Nd={};const Ll="1.9.1",VA=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function lre(e){const t=new Set([e]),r=new Set,n=e.match(VA);if(!n)return()=>!1;const o={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(o.prerelease!=null)return function(s){return s===e};function a(s){return r.add(s),!1}function i(s){return t.add(s),!0}return function(s){if(t.has(s))return!0;if(r.has(s))return!1;const c=s.match(VA);if(!c)return a(s);const u={major:+c[1],minor:+c[2],patch:+c[3],prerelease:c[4]};return u.prerelease!=null||o.major!==u.major?a(s):o.major===0?o.minor===u.minor&&o.patch<=u.patch?i(s):a(s):o.minor<=u.minor?i(s):a(s)}}const cre=lre(Ll),pre=Ll.split(".")[0],Rd=Symbol.for(`opentelemetry.js.api.${pre}`),Pd=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof globalThis=="object"?globalThis:{};function Id(e,t,r,n=!1){var o;const a=Pd[Rd]=(o=Pd[Rd])!==null&&o!==void 0?o:{version:Ll};if(!n&&a[e]){const i=new Error(`@opentelemetry/api: Attempted duplicate registration of API: ${e}`);return r.error(i.stack||i.message),!1}if(a.version!==Ll){const i=new Error(`@opentelemetry/api: Registration of version v${a.version} for ${e} does not match previously registered API v${Ll}`);return r.error(i.stack||i.message),!1}return a[e]=t,r.debug(`@opentelemetry/api: Registered a global for ${e} v${Ll}.`),!0}function jl(e){var t,r;const n=(t=Pd[Rd])===null||t===void 0?void 0:t.version;if(!(!n||!cre(n)))return(r=Pd[Rd])===null||r===void 0?void 0:r[e]}function $d(e,t){t.debug(`@opentelemetry/api: Unregistering a global for ${e} v${Ll}.`);const r=Pd[Rd];r&&delete r[e]}class ure{constructor(t){this._namespace=t.namespace||"DiagComponentLogger"}debug(...t){return Md("debug",this._namespace,t)}error(...t){return Md("error",this._namespace,t)}info(...t){return Md("info",this._namespace,t)}warn(...t){return Md("warn",this._namespace,t)}verbose(...t){return Md("verbose",this._namespace,t)}}function Md(e,t,r){const n=jl("diag");if(n)return n[e](t,...r)}var Zn;(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"})(Zn||(Zn={}));function dre(e,t){e<Zn.NONE?e=Zn.NONE:e>Zn.ALL&&(e=Zn.ALL),t=t||{};function r(n,o){const a=t[n];return typeof a=="function"&&e>=o?a.bind(t):function(){}}return{error:r("error",Zn.ERROR),warn:r("warn",Zn.WARN),info:r("info",Zn.INFO),debug:r("debug",Zn.DEBUG),verbose:r("verbose",Zn.VERBOSE)}}const hre="diag";class Ko{static instance(){return this._instance||(this._instance=new Ko),this._instance}constructor(){function t(o){return function(...a){const i=jl("diag");if(i)return i[o](...a)}}const r=this,n=(o,a={logLevel:Zn.INFO})=>{var i,s,c;if(o===r){const f=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return r.error((i=f.stack)!==null&&i!==void 0?i:f.message),!1}typeof a=="number"&&(a={logLevel:a});const u=jl("diag"),d=dre((s=a.logLevel)!==null&&s!==void 0?s:Zn.INFO,o);if(u&&!a.suppressOverrideMessage){const f=(c=new Error().stack)!==null&&c!==void 0?c:"<failed to generate stacktrace>";u.warn(`Current logger will be overwritten from ${f}`),d.warn(`Current logger will overwrite one already registered from ${f}`)}return Id("diag",d,r,!0)};r.setLogger=n,r.disable=()=>{$d(hre,r)},r.createComponentLogger=o=>new ure(o),r.verbose=t("verbose"),r.debug=t("debug"),r.info=t("info"),r.warn=t("warn"),r.error=t("error")}}class hu{constructor(t){this._entries=t?new Map(t):new Map}getEntry(t){const r=this._entries.get(t);if(r)return Object.assign({},r)}getAllEntries(){return Array.from(this._entries.entries())}setEntry(t,r){const n=new hu(this._entries);return n._entries.set(t,r),n}removeEntry(t){const r=new hu(this._entries);return r._entries.delete(t),r}removeEntries(...t){const r=new hu(this._entries);for(const n of t)r._entries.delete(n);return r}clear(){return new hu}}const fre=Symbol("BaggageEntryMetadata"),mre=Ko.instance();function gre(e={}){return new hu(new Map(Object.entries(e)))}function WA(e){return typeof e!="string"&&(mre.error(`Cannot create baggage metadata from unknown type: ${typeof e}`),e=""),{__TYPE__:fre,toString(){return e}}}function cg(e){return Symbol.for(e)}class ly{constructor(t){const r=this;r._currentContext=t?new Map(t):new Map,r.getValue=n=>r._currentContext.get(n),r.setValue=(n,o)=>{const a=new ly(r._currentContext);return a._currentContext.set(n,o),a},r.deleteValue=n=>{const o=new ly(r._currentContext);return o._currentContext.delete(n),o}}}const Nl=new ly,wx=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],Sx={};if(typeof console<"u"){const e=["error","warn","info","debug","trace","log"];for(const t of e)typeof console[t]=="function"&&(Sx[t]=console[t])}class bre{constructor(){function t(r){return function(...n){let o=Sx[r];if(typeof o!="function"&&(o=Sx.log),typeof o!="function"&&console&&(o=console[r],typeof o!="function"&&(o=console.log)),typeof o=="function")return o.apply(console,n)}}for(let r=0;r<wx.length;r++)this[wx[r].n]=t(wx[r].c)}}class yre{constructor(){}createGauge(t,r){return Tre}createHistogram(t,r){return _re}createCounter(t,r){return Are}createUpDownCounter(t,r){return Ore}createObservableGauge(t,r){return jre}createObservableCounter(t,r){return Lre}createObservableUpDownCounter(t,r){return Nre}addBatchObservableCallback(t,r){}removeBatchObservableCallback(t){}}class pg{}class vre extends pg{add(t,r){}}class xre extends pg{add(t,r){}}class wre extends pg{record(t,r){}}class Sre extends pg{record(t,r){}}class Cx{addCallback(t){}removeCallback(t){}}class Cre extends Cx{}class kre extends Cx{}class Ere extends Cx{}const YA=new yre,Are=new vre,Tre=new wre,_re=new Sre,Ore=new xre,Lre=new Cre,jre=new kre,Nre=new Ere;function GA(){return YA}var kx;(function(e){e[e.INT=0]="INT",e[e.DOUBLE=1]="DOUBLE"})(kx||(kx={}));const JA={get(e,t){if(e!=null)return e[t]},keys(e){return e==null?[]:Object.keys(e)}},KA={set(e,t,r){e!=null&&(e[t]=r)}};class Rre{active(){return Nl}with(t,r,n,...o){return r.call(n,...o)}bind(t,r){return r}enable(){return this}disable(){return this}}const Ex="context",Pre=new Rre;class fu{constructor(){}static getInstance(){return this._instance||(this._instance=new fu),this._instance}setGlobalContextManager(t){return Id(Ex,t,Ko.instance())}active(){return this._getContextManager().active()}with(t,r,n,...o){return this._getContextManager().with(t,r,n,...o)}bind(t,r){return this._getContextManager().bind(t,r)}_getContextManager(){return jl(Ex)||Pre}disable(){this._getContextManager().disable(),$d(Ex,Ko.instance())}}var da;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(da||(da={}));const Ax="0000000000000000",Tx="00000000000000000000000000000000",_x={traceId:Tx,spanId:Ax,traceFlags:da.NONE};class Dd{constructor(t=_x){this._spanContext=t}spanContext(){return this._spanContext}setAttribute(t,r){return this}setAttributes(t){return this}addEvent(t,r){return this}addLink(t){return this}addLinks(t){return this}setStatus(t){return this}updateName(t){return this}end(t){}isRecording(){return!1}recordException(t,r){}}const Ox=cg("OpenTelemetry Context Key SPAN");function Lx(e){return e.getValue(Ox)||void 0}function Ire(){return Lx(fu.getInstance().active())}function jx(e,t){return e.setValue(Ox,t)}function $re(e){return e.deleteValue(Ox)}function Mre(e,t){return jx(e,new Dd(t))}function QA(e){var t;return(t=Lx(e))===null||t===void 0?void 0:t.spanContext()}const ug=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1]);function ZA(e,t){if(typeof e!="string"||e.length!==t)return!1;let r=0;for(let n=0;n<e.length;n+=4)r+=(ug[e.charCodeAt(n)]|0)+(ug[e.charCodeAt(n+1)]|0)+(ug[e.charCodeAt(n+2)]|0)+(ug[e.charCodeAt(n+3)]|0);return r===t}function Nx(e){return ZA(e,32)&&e!==Tx}function XA(e){return ZA(e,16)&&e!==Ax}function zd(e){return Nx(e.traceId)&&XA(e.spanId)}function Dre(e){return new Dd(e)}const Rx=fu.getInstance();class eT{startSpan(t,r,n=Rx.active()){if(r?.root)return new Dd;const o=n&&QA(n);return zre(o)&&zd(o)?new Dd(o):new Dd}startActiveSpan(t,r,n,o){let a,i,s;if(arguments.length<2)return;arguments.length===2?s=r:arguments.length===3?(a=r,s=n):(a=r,i=n,s=o);const c=i??Rx.active(),u=this.startSpan(t,a,c),d=jx(c,u);return Rx.with(d,s,void 0,u)}}function zre(e){return e!==null&&typeof e=="object"&&"spanId"in e&&typeof e.spanId=="string"&&"traceId"in e&&typeof e.traceId=="string"&&"traceFlags"in e&&typeof e.traceFlags=="number"}const Bre=new eT;class tT{constructor(t,r,n,o){this._provider=t,this.name=r,this.version=n,this.options=o}startSpan(t,r,n){return this._getTracer().startSpan(t,r,n)}startActiveSpan(t,r,n,o){const a=this._getTracer();return Reflect.apply(a.startActiveSpan,a,arguments)}_getTracer(){if(this._delegate)return this._delegate;const t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):Bre}}class Ure{getTracer(t,r,n){return new eT}}const Fre=new Ure;class Px{getTracer(t,r,n){var o;return(o=this.getDelegateTracer(t,r,n))!==null&&o!==void 0?o:new tT(this,t,r,n)}getDelegate(){var t;return(t=this._delegate)!==null&&t!==void 0?t:Fre}setDelegate(t){this._delegate=t}getDelegateTracer(t,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getTracer(t,r,n)}}var Bd;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Bd||(Bd={}));var Ud;(function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER"})(Ud||(Ud={}));var Ss;(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"})(Ss||(Ss={}));const Ix="[_0-9a-z-*/]",qre=`[a-z]${Ix}{0,255}`,Hre=`[a-z0-9]${Ix}{0,240}@[a-z]${Ix}{0,13}`,Vre=new RegExp(`^(?:${qre}|${Hre})$`),Wre=/^[ -~]{0,255}[!-~]$/,Yre=/,|=/;function Gre(e){return Vre.test(e)}function Jre(e){return Wre.test(e)&&!Yre.test(e)}const rT=32,Kre=512,nT=",",oT="=";class Pk{constructor(t){this._internalState=new Map,t&&this._parse(t)}set(t,r){const n=this._clone();return n._internalState.has(t)&&n._internalState.delete(t),n._internalState.set(t,r),n}unset(t){const r=this._clone();return r._internalState.delete(t),r}get(t){return this._internalState.get(t)}serialize(){return Array.from(this._internalState.keys()).reduceRight((t,r)=>(t.push(r+oT+this.get(r)),t),[]).join(nT)}_parse(t){t.length>Kre||(this._internalState=t.split(nT).reduceRight((r,n)=>{const o=n.trim(),a=o.indexOf(oT);if(a!==-1){const i=o.slice(0,a),s=o.slice(a+1,n.length);Gre(i)&&Jre(s)&&r.set(i,s)}return r},new Map),this._internalState.size>rT&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,rT))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const t=new Pk;return t._internalState=new Map(this._internalState),t}}function Qre(e){return new Pk(e)}const qo=fu.getInstance(),ht=Ko.instance();class Zre{getMeter(t,r,n){return YA}}const Xre=new Zre,$x="metrics";class Ik{constructor(){}static getInstance(){return this._instance||(this._instance=new Ik),this._instance}setGlobalMeterProvider(t){return Id($x,t,Ko.instance())}getMeterProvider(){return jl($x)||Xre}getMeter(t,r,n){return this.getMeterProvider().getMeter(t,r,n)}disable(){$d($x,Ko.instance())}}const dg=Ik.getInstance();class ene{inject(t,r){}extract(t,r){return t}fields(){return[]}}const Mx=cg("OpenTelemetry Baggage Key");function aT(e){return e.getValue(Mx)||void 0}function tne(){return aT(fu.getInstance().active())}function rne(e,t){return e.setValue(Mx,t)}function nne(e){return e.deleteValue(Mx)}const Dx="propagation",one=new ene;class $k{constructor(){this.createBaggage=gre,this.getBaggage=aT,this.getActiveBaggage=tne,this.setBaggage=rne,this.deleteBaggage=nne}static getInstance(){return this._instance||(this._instance=new $k),this._instance}setGlobalPropagator(t){return Id(Dx,t,Ko.instance())}inject(t,r,n=KA){return this._getGlobalPropagator().inject(t,r,n)}extract(t,r,n=JA){return this._getGlobalPropagator().extract(t,r,n)}fields(){return this._getGlobalPropagator().fields()}disable(){$d(Dx,Ko.instance())}_getGlobalPropagator(){return jl(Dx)||one}}const Rl=$k.getInstance(),zx="trace";class Mk{constructor(){this._proxyTracerProvider=new Px,this.wrapSpanContext=Dre,this.isSpanContextValid=zd,this.deleteSpan=$re,this.getSpan=Lx,this.getActiveSpan=Ire,this.getSpanContext=QA,this.setSpan=jx,this.setSpanContext=Mre}static getInstance(){return this._instance||(this._instance=new Mk),this._instance}setGlobalTracerProvider(t){const r=Id(zx,this._proxyTracerProvider,Ko.instance());return r&&this._proxyTracerProvider.setDelegate(t),r}getTracerProvider(){return jl(zx)||this._proxyTracerProvider}getTracer(t,r){return this.getTracerProvider().getTracer(t,r)}disable(){$d(zx,Ko.instance()),this._proxyTracerProvider=new Px}}const Nn=Mk.getInstance(),ane={context:qo,diag:ht,metrics:dg,propagation:Rl,trace:Nn},ine=Object.freeze(Object.defineProperty({__proto__:null,DiagConsoleLogger:bre,get DiagLogLevel(){return Zn},INVALID_SPANID:Ax,INVALID_SPAN_CONTEXT:_x,INVALID_TRACEID:Tx,ProxyTracer:tT,ProxyTracerProvider:Px,ROOT_CONTEXT:Nl,get SamplingDecision(){return Bd},get SpanKind(){return Ud},get SpanStatusCode(){return Ss},get TraceFlags(){return da},get ValueType(){return kx},baggageEntryMetadataFromString:WA,context:qo,createContextKey:cg,createNoopMeter:GA,createTraceState:Qre,default:ane,defaultTextMapGetter:JA,defaultTextMapSetter:KA,diag:ht,isSpanContextValid:zd,isValidSpanId:XA,isValidTraceId:Nx,metrics:dg,propagation:Rl,trace:Nn},Symbol.toStringTag,{value:"Module"})),iT=cg("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function sT(e){return e.setValue(iT,!0)}function Bx(e){return e.getValue(iT)===!0}const sne="=",lT=";",cT=",",Ux="baggage",pT=180,uT=4096,dT=8192;function lne(e){return e.reduce((t,r)=>{const n=`${t}${t!==""?cT:""}${r}`;return n.length>dT?t:n},"")}function cne(e){return e.getAllEntries().map(([t,r])=>{let n=`${encodeURIComponent(t)}=${encodeURIComponent(r.value)}`;return r.metadata!==void 0&&(n+=lT+r.metadata.toString()),n})}function pne(e){if(!e)return;const t=e.indexOf(lT),r=t===-1?e:e.substring(0,t),n=r.indexOf(sne);if(n<=0)return;const o=r.substring(0,n).trim(),a=r.substring(n+1).trim();if(!o||!a)return;let i,s;try{i=decodeURIComponent(o),s=decodeURIComponent(a)}catch{return}let c;if(t!==-1&&t<e.length-1){const u=e.substring(t+1);c=WA(u)}return{key:i,value:s,metadata:c}}function hT(e,t,r,n){let o=0;for(;o<e.length&&r<pT;){const a=e.indexOf(cT,o),i=a===-1?e.length:a,s=i-o;if(s<=uT){const c=pne(e.substring(o,i));if(c){const u=(r===0?0:1)+s;if(n+u>dT)break;t[c.key]=c.metadata?{value:c.value,metadata:c.metadata}:{value:c.value},r++,n+=u}}if(a===-1)break;o=a+1}return[r,n]}class une{inject(t,r,n){const o=Rl.getBaggage(t);if(!o||Bx(t))return;const a=cne(o).filter(s=>s.length<=uT).slice(0,pT),i=lne(a);i.length>0&&n.set(r,Ux,i)}extract(t,r,n){const o=n.get(r,Ux);if(!o)return t;const a={};let i=0,s=0;if(Array.isArray(o))for(let c=0;c<o.length;c++)[i,s]=hT(o[c],a,i,s);else[i]=hT(o,a,i,s);return i===0?t:Rl.setBaggage(t,Rl.createBaggage(a))}fields(){return[Ux]}}function Fd(e){const t={};if(typeof e!="object"||e==null)return t;for(const r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;if(!dne(r)){ht.warn(`Invalid attribute key: ${r}`);continue}const n=e[r];if(!fT(n)){ht.warn(`Invalid attribute value set for key: ${r}`);continue}Array.isArray(n)?t[r]=n.slice():t[r]=n}return t}function dne(e){return typeof e=="string"&&e!==""}function fT(e){return e==null?!0:Array.isArray(e)?hne(e):mT(typeof e)}function hne(e){let t;for(const r of e){if(r==null)continue;const n=typeof r;if(n!==t){if(!t){if(mT(n)){t=n;continue}return!1}return!1}}return!0}function mT(e){switch(e){case"number":case"boolean":case"string":return!0}return!1}function fne(){return e=>{ht.error(mne(e))}}function mne(e){return typeof e=="string"?e:JSON.stringify(gne(e))}function gne(e){const t={};let r=e;for(;r!==null;)Object.getOwnPropertyNames(r).forEach(n=>{if(t[n])return;const o=r[n];o&&(t[n]=String(o))}),r=Object.getPrototypeOf(r);return t}let bne=fne();function Pl(e){try{bne(e)}catch{}}const yne="2.8.0";function Gr(e){let t={};const r=e.length;for(let n=0;n<r;n++){const o=e[n];o&&(t[String(o).toUpperCase().replace(/[-.]/g,"_")]=o)}return t}const gT="aws.lambda.invoked_arn",bT="db.system",yT="db.connection_string",vT="db.user",xT="db.jdbc.driver_classname",wT="db.name",ST="db.statement",CT="db.operation",kT="db.mssql.instance_name",ET="db.cassandra.keyspace",AT="db.cassandra.page_size",TT="db.cassandra.consistency_level",_T="db.cassandra.table",OT="db.cassandra.idempotence",LT="db.cassandra.speculative_execution_count",jT="db.cassandra.coordinator.id",NT="db.cassandra.coordinator.dc",RT="db.hbase.namespace",PT="db.redis.database_index",IT="db.mongodb.collection",$T="db.sql.table",MT="exception.type",DT="exception.message",zT="exception.stacktrace",BT="exception.escaped",UT="faas.trigger",FT="faas.execution",qT="faas.document.collection",HT="faas.document.operation",VT="faas.document.time",WT="faas.document.name",YT="faas.time",GT="faas.cron",JT="faas.coldstart",KT="faas.invoked_name",QT="faas.invoked_provider",ZT="faas.invoked_region",XT="net.transport",e8="net.peer.ip",t8="net.peer.port",r8="net.peer.name",n8="net.host.ip",o8="net.host.port",a8="net.host.name",i8="net.host.connection.type",s8="net.host.connection.subtype",l8="net.host.carrier.name",c8="net.host.carrier.mcc",p8="net.host.carrier.mnc",u8="net.host.carrier.icc",d8="peer.service",h8="enduser.id",f8="enduser.role",m8="enduser.scope",g8="thread.id",b8="thread.name",y8="code.function",v8="code.namespace",x8="code.filepath",w8="code.lineno",S8="http.method",C8="http.url",k8="http.target",E8="http.host",A8="http.scheme",T8="http.status_code",_8="http.flavor",O8="http.user_agent",L8="http.request_content_length",j8="http.request_content_length_uncompressed",N8="http.response_content_length",R8="http.response_content_length_uncompressed",P8="http.server_name",I8="http.route",$8="http.client_ip",M8="aws.dynamodb.table_names",D8="aws.dynamodb.consumed_capacity",z8="aws.dynamodb.item_collection_metrics",B8="aws.dynamodb.provisioned_read_capacity",U8="aws.dynamodb.provisioned_write_capacity",F8="aws.dynamodb.consistent_read",q8="aws.dynamodb.projection",H8="aws.dynamodb.limit",V8="aws.dynamodb.attributes_to_get",W8="aws.dynamodb.index_name",Y8="aws.dynamodb.select",G8="aws.dynamodb.global_secondary_indexes",J8="aws.dynamodb.local_secondary_indexes",K8="aws.dynamodb.exclusive_start_table",Q8="aws.dynamodb.table_count",Z8="aws.dynamodb.scan_forward",X8="aws.dynamodb.segment",e7="aws.dynamodb.total_segments",t7="aws.dynamodb.count",r7="aws.dynamodb.scanned_count",n7="aws.dynamodb.attribute_definitions",o7="aws.dynamodb.global_secondary_index_updates",a7="messaging.system",i7="messaging.destination",s7="messaging.destination_kind",l7="messaging.temp_destination",c7="messaging.protocol",p7="messaging.protocol_version",u7="messaging.url",d7="messaging.message_id",h7="messaging.conversation_id",f7="messaging.message_payload_size_bytes",m7="messaging.message_payload_compressed_size_bytes",g7="messaging.operation",b7="messaging.consumer_id",y7="messaging.rabbitmq.routing_key",v7="messaging.kafka.message_key",x7="messaging.kafka.consumer_group",w7="messaging.kafka.client_id",S7="messaging.kafka.partition",C7="messaging.kafka.tombstone",k7="rpc.system",E7="rpc.service",A7="rpc.method",T7="rpc.grpc.status_code",_7="rpc.jsonrpc.version",O7="rpc.jsonrpc.request_id",L7="rpc.jsonrpc.error_code",j7="rpc.jsonrpc.error_message",N7="message.type",R7="message.id",P7="message.compressed_size",I7="message.uncompressed_size",vne=gT,xne=bT,wne=yT,Sne=vT,Cne=xT,kne=wT,Ene=ST,Ane=CT,Tne=kT,_ne=ET,One=AT,Lne=TT,jne=_T,Nne=OT,Rne=LT,Pne=jT,Ine=NT,$ne=RT,Mne=PT,Dne=IT,zne=$T,Bne=MT,Une=DT,Fne=zT,qne=BT,Hne=UT,Vne=FT,Wne=qT,Yne=HT,Gne=VT,Jne=WT,Kne=YT,Qne=GT,Zne=JT,Xne=KT,eoe=QT,toe=ZT,roe=XT,noe=e8,ooe=t8,aoe=r8,ioe=n8,soe=o8,loe=a8,coe=i8,poe=s8,uoe=l8,doe=c8,hoe=p8,foe=u8,moe=d8,goe=h8,boe=f8,yoe=m8,voe=g8,xoe=b8,woe=y8,Soe=v8,Coe=x8,koe=w8,Eoe=S8,Aoe=C8,Toe=k8,_oe=E8,Ooe=A8,Loe=T8,joe=_8,Noe=O8,Roe=L8,Poe=j8,Ioe=N8,$oe=R8,Moe=P8,Doe=I8,zoe=$8,Boe=M8,Uoe=D8,Foe=z8,qoe=B8,Hoe=U8,Voe=F8,Woe=q8,Yoe=H8,Goe=V8,Joe=W8,Koe=Y8,Qoe=G8,Zoe=J8,Xoe=K8,eae=Q8,tae=Z8,rae=X8,nae=e7,oae=t7,aae=r7,iae=n7,sae=o7,lae=a7,cae=i7,pae=s7,uae=l7,dae=c7,hae=p7,fae=u7,mae=d7,gae=h7,bae=f7,yae=m7,vae=g7,xae=b7,wae=y7,Sae=v7,Cae=x7,kae=w7,Eae=S7,Aae=C7,Tae=k7,_ae=E7,Oae=A7,Lae=T7,jae=_7,Nae=O7,Rae=L7,Pae=j7,Iae=N7,$ae=R7,Mae=P7,Dae=I7,zae=Gr([gT,bT,yT,vT,xT,wT,ST,CT,kT,ET,AT,TT,_T,OT,LT,jT,NT,RT,PT,IT,$T,MT,DT,zT,BT,UT,FT,qT,HT,VT,WT,YT,GT,JT,KT,QT,ZT,XT,e8,t8,r8,n8,o8,a8,i8,s8,l8,c8,p8,u8,d8,h8,f8,m8,g8,b8,y8,v8,x8,w8,S8,C8,k8,E8,A8,T8,_8,O8,L8,j8,N8,R8,P8,I8,$8,M8,D8,z8,B8,U8,F8,q8,H8,V8,W8,Y8,G8,J8,K8,Q8,Z8,X8,e7,t7,r7,n7,o7,a7,i7,s7,l7,c7,p7,u7,d7,h7,f7,m7,g7,b7,y7,v7,x7,w7,S7,C7,k7,E7,A7,T7,_7,O7,L7,j7,N7,R7,P7,I7]),$7="other_sql",M7="mssql",D7="mysql",z7="oracle",B7="db2",U7="postgresql",F7="redshift",q7="hive",H7="cloudscape",V7="hsqldb",W7="progress",Y7="maxdb",G7="hanadb",J7="ingres",K7="firstsql",Q7="edb",Z7="cache",X7="adabas",e_="firebird",t_="derby",r_="filemaker",n_="informix",o_="instantdb",a_="interbase",i_="mariadb",s_="netezza",l_="pervasive",c_="pointbase",p_="sqlite",u_="sybase",d_="teradata",h_="vertica",f_="h2",m_="coldfusion",g_="cassandra",b_="hbase",y_="mongodb",v_="redis",x_="couchbase",w_="couchdb",S_="cosmosdb",C_="dynamodb",k_="neo4j",E_="geode",A_="elasticsearch",T_="memcached",__="cockroachdb",Bae=$7,Uae=M7,Fae=D7,qae=z7,Hae=B7,Vae=U7,Wae=F7,Yae=q7,Gae=H7,Jae=V7,Kae=W7,Qae=Y7,Zae=G7,Xae=J7,eie=K7,tie=Q7,rie=Z7,nie=X7,oie=e_,aie=t_,iie=r_,sie=n_,lie=o_,cie=a_,pie=i_,uie=s_,die=l_,hie=c_,fie=p_,mie=u_,gie=d_,bie=h_,yie=f_,vie=m_,xie=g_,wie=b_,Sie=y_,Cie=v_,kie=x_,Eie=w_,Aie=S_,Tie=C_,_ie=k_,Oie=E_,Lie=A_,jie=T_,Nie=__,Rie=Gr([$7,M7,D7,z7,B7,U7,F7,q7,H7,V7,W7,Y7,G7,J7,K7,Q7,Z7,X7,e_,t_,r_,n_,o_,a_,i_,s_,l_,c_,p_,u_,d_,h_,f_,m_,g_,b_,y_,v_,x_,w_,S_,C_,k_,E_,A_,T_,__]),O_="all",L_="each_quorum",j_="quorum",N_="local_quorum",R_="one",P_="two",I_="three",$_="local_one",M_="any",D_="serial",z_="local_serial",Pie=O_,Iie=L_,$ie=j_,Mie=N_,Die=R_,zie=P_,Bie=I_,Uie=$_,Fie=M_,qie=D_,Hie=z_,Vie=Gr([O_,L_,j_,N_,R_,P_,I_,$_,M_,D_,z_]),B_="datasource",U_="http",F_="pubsub",q_="timer",H_="other",Wie=B_,Yie=U_,Gie=F_,Jie=q_,Kie=H_,Qie=Gr([B_,U_,F_,q_,H_]),V_="insert",W_="edit",Y_="delete",Zie=V_,Xie=W_,ese=Y_,tse=Gr([V_,W_,Y_]),G_="alibaba_cloud",J_="aws",K_="azure",Q_="gcp",rse=G_,nse=J_,ose=K_,ase=Q_,ise=Gr([G_,J_,K_,Q_]),Z_="ip_tcp",X_="ip_udp",eO="ip",tO="unix",rO="pipe",nO="inproc",oO="other",sse=Z_,lse=X_,cse=eO,pse=tO,use=rO,dse=nO,hse=oO,fse=Gr([Z_,X_,eO,tO,rO,nO,oO]),aO="wifi",iO="wired",sO="cell",lO="unavailable",cO="unknown",mse=aO,gse=iO,bse=sO,yse=lO,vse=cO,xse=Gr([aO,iO,sO,lO,cO]),pO="gprs",uO="edge",dO="umts",hO="cdma",fO="evdo_0",mO="evdo_a",gO="cdma2000_1xrtt",bO="hsdpa",yO="hsupa",vO="hspa",xO="iden",wO="evdo_b",SO="lte",CO="ehrpd",kO="hspap",EO="gsm",AO="td_scdma",TO="iwlan",_O="nr",OO="nrnsa",LO="lte_ca",wse=pO,Sse=uO,Cse=dO,kse=hO,Ese=fO,Ase=mO,Tse=gO,_se=bO,Ose=yO,Lse=vO,jse=xO,Nse=wO,Rse=SO,Pse=CO,Ise=kO,$se=EO,Mse=AO,Dse=TO,zse=_O,Bse=OO,Use=LO,Fse=Gr([pO,uO,dO,hO,fO,mO,gO,bO,yO,vO,xO,wO,SO,CO,kO,EO,AO,TO,_O,OO,LO]),jO="1.0",NO="1.1",RO="2.0",PO="SPDY",IO="QUIC",qse=jO,Hse=NO,Vse=RO,Wse=PO,Yse=IO,Gse={HTTP_1_0:jO,HTTP_1_1:NO,HTTP_2_0:RO,SPDY:PO,QUIC:IO},$O="queue",MO="topic",Jse=$O,Kse=MO,Qse=Gr([$O,MO]),DO="receive",zO="process",Zse=DO,Xse=zO,ele=Gr([DO,zO]),BO=0,UO=1,FO=2,qO=3,HO=4,VO=5,WO=6,YO=7,GO=8,JO=9,KO=10,QO=11,ZO=12,XO=13,eL=14,tL=15,rL=16,tle=BO,rle=UO,nle=FO,ole=qO,ale=HO,ile=VO,sle=WO,lle=YO,cle=GO,ple=JO,ule=KO,dle=QO,hle=ZO,fle=XO,mle=eL,gle=tL,ble=rL,yle={OK:BO,CANCELLED:UO,UNKNOWN:FO,INVALID_ARGUMENT:qO,DEADLINE_EXCEEDED:HO,NOT_FOUND:VO,ALREADY_EXISTS:WO,PERMISSION_DENIED:YO,RESOURCE_EXHAUSTED:GO,FAILED_PRECONDITION:JO,ABORTED:KO,OUT_OF_RANGE:QO,UNIMPLEMENTED:ZO,INTERNAL:XO,UNAVAILABLE:eL,DATA_LOSS:tL,UNAUTHENTICATED:rL},nL="SENT",oL="RECEIVED",vle=nL,xle=oL,wle=Gr([nL,oL]),aL="cloud.provider",iL="cloud.account.id",sL="cloud.region",lL="cloud.availability_zone",cL="cloud.platform",pL="aws.ecs.container.arn",uL="aws.ecs.cluster.arn",dL="aws.ecs.launchtype",hL="aws.ecs.task.arn",fL="aws.ecs.task.family",mL="aws.ecs.task.revision",gL="aws.eks.cluster.arn",bL="aws.log.group.names",yL="aws.log.group.arns",vL="aws.log.stream.names",xL="aws.log.stream.arns",wL="container.name",SL="container.id",CL="container.runtime",kL="container.image.name",EL="container.image.tag",AL="deployment.environment",TL="device.id",_L="device.model.identifier",OL="device.model.name",LL="faas.name",jL="faas.id",NL="faas.version",RL="faas.instance",PL="faas.max_memory",IL="host.id",$L="host.name",ML="host.type",DL="host.arch",zL="host.image.name",BL="host.image.id",UL="host.image.version",FL="k8s.cluster.name",qL="k8s.node.name",HL="k8s.node.uid",VL="k8s.namespace.name",WL="k8s.pod.uid",YL="k8s.pod.name",GL="k8s.container.name",JL="k8s.replicaset.uid",KL="k8s.replicaset.name",QL="k8s.deployment.uid",ZL="k8s.deployment.name",XL="k8s.statefulset.uid",ej="k8s.statefulset.name",tj="k8s.daemonset.uid",rj="k8s.daemonset.name",nj="k8s.job.uid",oj="k8s.job.name",aj="k8s.cronjob.uid",ij="k8s.cronjob.name",sj="os.type",lj="os.description",cj="os.name",pj="os.version",uj="process.pid",dj="process.executable.name",hj="process.executable.path",fj="process.command",mj="process.command_line",gj="process.command_args",bj="process.owner",yj="process.runtime.name",vj="process.runtime.version",xj="process.runtime.description",wj="service.name",Sj="service.namespace",Cj="service.instance.id",kj="service.version",Ej="telemetry.sdk.name",Aj="telemetry.sdk.language",Tj="telemetry.sdk.version",_j="telemetry.auto.version",Oj="webengine.name",Lj="webengine.version",jj="webengine.description",Sle=aL,Cle=iL,kle=sL,Ele=lL,Ale=cL,Tle=pL,_le=uL,Ole=dL,Lle=hL,jle=fL,Nle=mL,Rle=gL,Ple=bL,Ile=yL,$le=vL,Mle=xL,Dle=wL,zle=SL,Ble=CL,Ule=kL,Fle=EL,qle=AL,Hle=TL,Vle=_L,Wle=OL,Yle=LL,Gle=jL,Jle=NL,Kle=RL,Qle=PL,Zle=IL,Xle=$L,ece=ML,tce=DL,rce=zL,nce=BL,oce=UL,ace=FL,ice=qL,sce=HL,lce=VL,cce=WL,pce=YL,uce=GL,dce=JL,hce=KL,fce=QL,mce=ZL,gce=XL,bce=ej,yce=tj,vce=rj,xce=nj,wce=oj,Sce=aj,Cce=ij,kce=sj,Ece=lj,Ace=cj,Tce=pj,_ce=uj,Oce=dj,Lce=hj,jce=fj,Nce=mj,Rce=gj,Pce=bj,Ice=yj,$ce=vj,Mce=xj,Dce=wj,zce=Sj,Bce=Cj,Uce=kj,Fce=Ej,qce=Aj,Hce=Tj,Vce=_j,Wce=Oj,Yce=Lj,Gce=jj,Jce=Gr([aL,iL,sL,lL,cL,pL,uL,dL,hL,fL,mL,gL,bL,yL,vL,xL,wL,SL,CL,kL,EL,AL,TL,_L,OL,LL,jL,NL,RL,PL,IL,$L,ML,DL,zL,BL,UL,FL,qL,HL,VL,WL,YL,GL,JL,KL,QL,ZL,XL,ej,tj,rj,nj,oj,aj,ij,sj,lj,cj,pj,uj,dj,hj,fj,mj,gj,bj,yj,vj,xj,wj,Sj,Cj,kj,Ej,Aj,Tj,_j,Oj,Lj,jj]),Nj="alibaba_cloud",Rj="aws",Pj="azure",Ij="gcp",Kce=Nj,Qce=Rj,Zce=Pj,Xce=Ij,epe=Gr([Nj,Rj,Pj,Ij]),$j="alibaba_cloud_ecs",Mj="alibaba_cloud_fc",Dj="aws_ec2",zj="aws_ecs",Bj="aws_eks",Uj="aws_lambda",Fj="aws_elastic_beanstalk",qj="azure_vm",Hj="azure_container_instances",Vj="azure_aks",Wj="azure_functions",Yj="azure_app_service",Gj="gcp_compute_engine",Jj="gcp_cloud_run",Kj="gcp_kubernetes_engine",Qj="gcp_cloud_functions",Zj="gcp_app_engine",tpe=$j,rpe=Mj,npe=Dj,ope=zj,ape=Bj,ipe=Uj,spe=Fj,lpe=qj,cpe=Hj,ppe=Vj,upe=Wj,dpe=Yj,hpe=Gj,fpe=Jj,mpe=Kj,gpe=Qj,bpe=Zj,ype=Gr([$j,Mj,Dj,zj,Bj,Uj,Fj,qj,Hj,Vj,Wj,Yj,Gj,Jj,Kj,Qj,Zj]),Xj="ec2",eN="fargate",vpe=Xj,xpe=eN,wpe=Gr([Xj,eN]),tN="amd64",rN="arm32",nN="arm64",oN="ia64",aN="ppc32",iN="ppc64",sN="x86",Spe=tN,Cpe=rN,kpe=nN,Epe=oN,Ape=aN,Tpe=iN,_pe=sN,Ope=Gr([tN,rN,nN,oN,aN,iN,sN]),lN="windows",cN="linux",pN="darwin",uN="freebsd",dN="netbsd",hN="openbsd",fN="dragonflybsd",mN="hpux",gN="aix",bN="solaris",yN="z_os",Lpe=lN,jpe=cN,Npe=pN,Rpe=uN,Ppe=dN,Ipe=hN,$pe=fN,Mpe=mN,Dpe=gN,zpe=bN,Bpe=yN,Upe=Gr([lN,cN,pN,uN,dN,hN,fN,mN,gN,bN,yN]),vN="cpp",xN="dotnet",wN="erlang",SN="go",CN="java",kN="nodejs",EN="php",AN="python",TN="ruby",_N="webjs",Fpe=vN,qpe=xN,Hpe=wN,Vpe=SN,Wpe=CN,Ype=kN,Gpe=EN,Jpe=AN,Kpe=TN,Qpe=_N,Zpe=Gr([vN,xN,wN,SN,CN,kN,EN,AN,TN,_N]),Xpe="aspnetcore.diagnostics.exception.result",eue="aborted",tue="handled",rue="skipped",nue="unhandled",oue="aspnetcore.diagnostics.handler.type",aue="aspnetcore.rate_limiting.policy",iue="aspnetcore.rate_limiting.result",sue="acquired",lue="endpoint_limiter",cue="global_limiter",pue="request_canceled",uue="aspnetcore.request.is_unhandled",due="aspnetcore.routing.is_fallback",hue="aspnetcore.routing.match_status",fue="failure",mue="success",gue="aspnetcore.user.is_authenticated",bue="client.address",yue="client.port",vue="code.column.number",xue="code.file.path",wue="code.function.name",Sue="code.line.number",Cue="code.stacktrace",kue="db.collection.name",Eue="db.namespace",Aue="db.operation.batch.size",Tue="db.operation.name",_ue="db.query.summary",Oue="db.query.text",Lue="db.response.status_code",jue="db.stored_procedure.name",Nue="db.system.name",Rue="mariadb",Pue="microsoft.sql_server",Iue="mysql",$ue="postgresql",Mue="dotnet.gc.heap.generation",Due="gen0",zue="gen1",Bue="gen2",Uue="loh",Fue="poh",que="error.type",Hue="_OTHER",Vue="exception.escaped",hg="exception.message",ON="exception.stacktrace",fg="exception.type",Wue=e=>`http.request.header.${e}`,Yue="http.request.method",Gue="_OTHER",Jue="CONNECT",Kue="DELETE",Que="GET",Zue="HEAD",Xue="OPTIONS",ede="PATCH",tde="POST",rde="PUT",nde="TRACE",ode="http.request.method_original",ade="http.request.resend_count",ide=e=>`http.response.header.${e}`,sde="http.response.status_code",lde="http.route",cde="jvm.gc.action",pde="jvm.gc.name",ude="jvm.memory.pool.name",dde="jvm.memory.type",hde="heap",fde="non_heap",mde="jvm.thread.daemon",gde="jvm.thread.state",bde="blocked",yde="new",vde="runnable",xde="terminated",wde="timed_waiting",Sde="waiting",Cde="network.local.address",kde="network.local.port",Ede="network.peer.address",Ade="network.peer.port",Tde="network.protocol.name",_de="network.protocol.version",Ode="network.transport",Lde="pipe",jde="quic",Nde="tcp",Rde="udp",Pde="unix",Ide="network.type",$de="ipv4",Mde="ipv6",Dde="otel.scope.name",zde="otel.scope.version",Bde="otel.status_code",Ude="ERROR",Fde="OK",qde="otel.status_description",Hde="server.address",Vde="server.port",Wde="service.instance.id",Fx="service.name",Yde="service.namespace",LN="service.version",Gde="signalr.connection.status",Jde="app_shutdown",Kde="normal_closure",Qde="timeout",Zde="signalr.transport",Xde="long_polling",ehe="server_sent_events",the="web_sockets",mg="telemetry.sdk.language",rhe="cpp",nhe="dotnet",ohe="erlang",ahe="go",ihe="java",she="nodejs",lhe="php",che="python",phe="ruby",uhe="rust",dhe="swift",jN="webjs",gg="telemetry.sdk.name",bg="telemetry.sdk.version",hhe="url.fragment",fhe="url.full",mhe="url.path",ghe="url.query",bhe="url.scheme",yhe="user_agent.original",vhe="aspnetcore.diagnostics.exceptions",xhe="aspnetcore.rate_limiting.active_request_leases",whe="aspnetcore.rate_limiting.queued_requests",She="aspnetcore.rate_limiting.request.time_in_queue",Che="aspnetcore.rate_limiting.request_lease.duration",khe="aspnetcore.rate_limiting.requests",Ehe="aspnetcore.routing.match_attempts",Ahe="db.client.operation.duration",The="dotnet.assembly.count",_he="dotnet.exceptions",Ohe="dotnet.gc.collections",Lhe="dotnet.gc.heap.total_allocated",jhe="dotnet.gc.last_collection.heap.fragmentation.size",Nhe="dotnet.gc.last_collection.heap.size",Rhe="dotnet.gc.last_collection.memory.committed_size",Phe="dotnet.gc.pause.time",Ihe="dotnet.jit.compilation.time",$he="dotnet.jit.compiled_il.size",Mhe="dotnet.jit.compiled_methods",Dhe="dotnet.monitor.lock_contentions",zhe="dotnet.process.cpu.count",Bhe="dotnet.process.cpu.time",Uhe="dotnet.process.memory.working_set",Fhe="dotnet.thread_pool.queue.length",qhe="dotnet.thread_pool.thread.count",Hhe="dotnet.thread_pool.work_item.count",Vhe="dotnet.timer.count",Whe="http.client.request.duration",Yhe="http.server.request.duration",Ghe="jvm.class.count",Jhe="jvm.class.loaded",Khe="jvm.class.unloaded",Qhe="jvm.cpu.count",Zhe="jvm.cpu.recent_utilization",Xhe="jvm.cpu.time",efe="jvm.gc.duration",tfe="jvm.memory.committed",rfe="jvm.memory.limit",nfe="jvm.memory.used",ofe="jvm.memory.used_after_last_gc",afe="jvm.thread.count",ife="kestrel.active_connections",sfe="kestrel.active_tls_handshakes",lfe="kestrel.connection.duration",cfe="kestrel.queued_connections",pfe="kestrel.queued_requests",ufe="kestrel.rejected_connections",dfe="kestrel.tls_handshake.duration",hfe="kestrel.upgraded_connections",ffe="signalr.server.active_connections",mfe="signalr.server.connection.duration",gfe="exception",bfe=Object.freeze(Object.defineProperty({__proto__:null,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED:eue,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED:tue,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED:rue,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED:nue,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED:sue,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER:lue,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER:cue,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED:pue,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE:fue,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS:mue,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT:Xpe,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE:oue,ATTR_ASPNETCORE_RATE_LIMITING_POLICY:aue,ATTR_ASPNETCORE_RATE_LIMITING_RESULT:iue,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED:uue,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK:due,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS:hue,ATTR_ASPNETCORE_USER_IS_AUTHENTICATED:gue,ATTR_CLIENT_ADDRESS:bue,ATTR_CLIENT_PORT:yue,ATTR_CODE_COLUMN_NUMBER:vue,ATTR_CODE_FILE_PATH:xue,ATTR_CODE_FUNCTION_NAME:wue,ATTR_CODE_LINE_NUMBER:Sue,ATTR_CODE_STACKTRACE:Cue,ATTR_DB_COLLECTION_NAME:kue,ATTR_DB_NAMESPACE:Eue,ATTR_DB_OPERATION_BATCH_SIZE:Aue,ATTR_DB_OPERATION_NAME:Tue,ATTR_DB_QUERY_SUMMARY:_ue,ATTR_DB_QUERY_TEXT:Oue,ATTR_DB_RESPONSE_STATUS_CODE:Lue,ATTR_DB_STORED_PROCEDURE_NAME:jue,ATTR_DB_SYSTEM_NAME:Nue,ATTR_DOTNET_GC_HEAP_GENERATION:Mue,ATTR_ERROR_TYPE:que,ATTR_EXCEPTION_ESCAPED:Vue,ATTR_EXCEPTION_MESSAGE:hg,ATTR_EXCEPTION_STACKTRACE:ON,ATTR_EXCEPTION_TYPE:fg,ATTR_HTTP_REQUEST_HEADER:Wue,ATTR_HTTP_REQUEST_METHOD:Yue,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:ode,ATTR_HTTP_REQUEST_RESEND_COUNT:ade,ATTR_HTTP_RESPONSE_HEADER:ide,ATTR_HTTP_RESPONSE_STATUS_CODE:sde,ATTR_HTTP_ROUTE:lde,ATTR_JVM_GC_ACTION:cde,ATTR_JVM_GC_NAME:pde,ATTR_JVM_MEMORY_POOL_NAME:ude,ATTR_JVM_MEMORY_TYPE:dde,ATTR_JVM_THREAD_DAEMON:mde,ATTR_JVM_THREAD_STATE:gde,ATTR_NETWORK_LOCAL_ADDRESS:Cde,ATTR_NETWORK_LOCAL_PORT:kde,ATTR_NETWORK_PEER_ADDRESS:Ede,ATTR_NETWORK_PEER_PORT:Ade,ATTR_NETWORK_PROTOCOL_NAME:Tde,ATTR_NETWORK_PROTOCOL_VERSION:_de,ATTR_NETWORK_TRANSPORT:Ode,ATTR_NETWORK_TYPE:Ide,ATTR_OTEL_SCOPE_NAME:Dde,ATTR_OTEL_SCOPE_VERSION:zde,ATTR_OTEL_STATUS_CODE:Bde,ATTR_OTEL_STATUS_DESCRIPTION:qde,ATTR_SERVER_ADDRESS:Hde,ATTR_SERVER_PORT:Vde,ATTR_SERVICE_INSTANCE_ID:Wde,ATTR_SERVICE_NAME:Fx,ATTR_SERVICE_NAMESPACE:Yde,ATTR_SERVICE_VERSION:LN,ATTR_SIGNALR_CONNECTION_STATUS:Gde,ATTR_SIGNALR_TRANSPORT:Zde,ATTR_TELEMETRY_SDK_LANGUAGE:mg,ATTR_TELEMETRY_SDK_NAME:gg,ATTR_TELEMETRY_SDK_VERSION:bg,ATTR_URL_FRAGMENT:hhe,ATTR_URL_FULL:fhe,ATTR_URL_PATH:mhe,ATTR_URL_QUERY:ghe,ATTR_URL_SCHEME:bhe,ATTR_USER_AGENT_ORIGINAL:yhe,AWSECSLAUNCHTYPEVALUES_EC2:vpe,AWSECSLAUNCHTYPEVALUES_FARGATE:xpe,AwsEcsLaunchtypeValues:wpe,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:tpe,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:rpe,CLOUDPLATFORMVALUES_AWS_EC2:npe,CLOUDPLATFORMVALUES_AWS_ECS:ope,CLOUDPLATFORMVALUES_AWS_EKS:ape,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:spe,CLOUDPLATFORMVALUES_AWS_LAMBDA:ipe,CLOUDPLATFORMVALUES_AZURE_AKS:ppe,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:dpe,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:cpe,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:upe,CLOUDPLATFORMVALUES_AZURE_VM:lpe,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:bpe,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:gpe,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:fpe,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:hpe,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:mpe,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:Kce,CLOUDPROVIDERVALUES_AWS:Qce,CLOUDPROVIDERVALUES_AZURE:Zce,CLOUDPROVIDERVALUES_GCP:Xce,CloudPlatformValues:ype,CloudProviderValues:epe,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:Pie,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:Fie,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:Iie,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:Uie,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:Mie,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:Hie,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:Die,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:$ie,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:qie,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:Bie,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:zie,DBSYSTEMVALUES_ADABAS:nie,DBSYSTEMVALUES_CACHE:rie,DBSYSTEMVALUES_CASSANDRA:xie,DBSYSTEMVALUES_CLOUDSCAPE:Gae,DBSYSTEMVALUES_COCKROACHDB:Nie,DBSYSTEMVALUES_COLDFUSION:vie,DBSYSTEMVALUES_COSMOSDB:Aie,DBSYSTEMVALUES_COUCHBASE:kie,DBSYSTEMVALUES_COUCHDB:Eie,DBSYSTEMVALUES_DB2:Hae,DBSYSTEMVALUES_DERBY:aie,DBSYSTEMVALUES_DYNAMODB:Tie,DBSYSTEMVALUES_EDB:tie,DBSYSTEMVALUES_ELASTICSEARCH:Lie,DBSYSTEMVALUES_FILEMAKER:iie,DBSYSTEMVALUES_FIREBIRD:oie,DBSYSTEMVALUES_FIRSTSQL:eie,DBSYSTEMVALUES_GEODE:Oie,DBSYSTEMVALUES_H2:yie,DBSYSTEMVALUES_HANADB:Zae,DBSYSTEMVALUES_HBASE:wie,DBSYSTEMVALUES_HIVE:Yae,DBSYSTEMVALUES_HSQLDB:Jae,DBSYSTEMVALUES_INFORMIX:sie,DBSYSTEMVALUES_INGRES:Xae,DBSYSTEMVALUES_INSTANTDB:lie,DBSYSTEMVALUES_INTERBASE:cie,DBSYSTEMVALUES_MARIADB:pie,DBSYSTEMVALUES_MAXDB:Qae,DBSYSTEMVALUES_MEMCACHED:jie,DBSYSTEMVALUES_MONGODB:Sie,DBSYSTEMVALUES_MSSQL:Uae,DBSYSTEMVALUES_MYSQL:Fae,DBSYSTEMVALUES_NEO4J:_ie,DBSYSTEMVALUES_NETEZZA:uie,DBSYSTEMVALUES_ORACLE:qae,DBSYSTEMVALUES_OTHER_SQL:Bae,DBSYSTEMVALUES_PERVASIVE:die,DBSYSTEMVALUES_POINTBASE:hie,DBSYSTEMVALUES_POSTGRESQL:Vae,DBSYSTEMVALUES_PROGRESS:Kae,DBSYSTEMVALUES_REDIS:Cie,DBSYSTEMVALUES_REDSHIFT:Wae,DBSYSTEMVALUES_SQLITE:fie,DBSYSTEMVALUES_SYBASE:mie,DBSYSTEMVALUES_TERADATA:gie,DBSYSTEMVALUES_VERTICA:bie,DB_SYSTEM_NAME_VALUE_MARIADB:Rue,DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER:Pue,DB_SYSTEM_NAME_VALUE_MYSQL:Iue,DB_SYSTEM_NAME_VALUE_POSTGRESQL:$ue,DOTNET_GC_HEAP_GENERATION_VALUE_GEN0:Due,DOTNET_GC_HEAP_GENERATION_VALUE_GEN1:zue,DOTNET_GC_HEAP_GENERATION_VALUE_GEN2:Bue,DOTNET_GC_HEAP_GENERATION_VALUE_LOH:Uue,DOTNET_GC_HEAP_GENERATION_VALUE_POH:Fue,DbCassandraConsistencyLevelValues:Vie,DbSystemValues:Rie,ERROR_TYPE_VALUE_OTHER:Hue,EVENT_EXCEPTION:gfe,FAASDOCUMENTOPERATIONVALUES_DELETE:ese,FAASDOCUMENTOPERATIONVALUES_EDIT:Xie,FAASDOCUMENTOPERATIONVALUES_INSERT:Zie,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:rse,FAASINVOKEDPROVIDERVALUES_AWS:nse,FAASINVOKEDPROVIDERVALUES_AZURE:ose,FAASINVOKEDPROVIDERVALUES_GCP:ase,FAASTRIGGERVALUES_DATASOURCE:Wie,FAASTRIGGERVALUES_HTTP:Yie,FAASTRIGGERVALUES_OTHER:Kie,FAASTRIGGERVALUES_PUBSUB:Gie,FAASTRIGGERVALUES_TIMER:Jie,FaasDocumentOperationValues:tse,FaasInvokedProviderValues:ise,FaasTriggerValues:Qie,HOSTARCHVALUES_AMD64:Spe,HOSTARCHVALUES_ARM32:Cpe,HOSTARCHVALUES_ARM64:kpe,HOSTARCHVALUES_IA64:Epe,HOSTARCHVALUES_PPC32:Ape,HOSTARCHVALUES_PPC64:Tpe,HOSTARCHVALUES_X86:_pe,HTTPFLAVORVALUES_HTTP_1_0:qse,HTTPFLAVORVALUES_HTTP_1_1:Hse,HTTPFLAVORVALUES_HTTP_2_0:Vse,HTTPFLAVORVALUES_QUIC:Yse,HTTPFLAVORVALUES_SPDY:Wse,HTTP_REQUEST_METHOD_VALUE_CONNECT:Jue,HTTP_REQUEST_METHOD_VALUE_DELETE:Kue,HTTP_REQUEST_METHOD_VALUE_GET:Que,HTTP_REQUEST_METHOD_VALUE_HEAD:Zue,HTTP_REQUEST_METHOD_VALUE_OPTIONS:Xue,HTTP_REQUEST_METHOD_VALUE_OTHER:Gue,HTTP_REQUEST_METHOD_VALUE_PATCH:ede,HTTP_REQUEST_METHOD_VALUE_POST:tde,HTTP_REQUEST_METHOD_VALUE_PUT:rde,HTTP_REQUEST_METHOD_VALUE_TRACE:nde,HostArchValues:Ope,HttpFlavorValues:Gse,JVM_MEMORY_TYPE_VALUE_HEAP:hde,JVM_MEMORY_TYPE_VALUE_NON_HEAP:fde,JVM_THREAD_STATE_VALUE_BLOCKED:bde,JVM_THREAD_STATE_VALUE_NEW:yde,JVM_THREAD_STATE_VALUE_RUNNABLE:vde,JVM_THREAD_STATE_VALUE_TERMINATED:xde,JVM_THREAD_STATE_VALUE_TIMED_WAITING:wde,JVM_THREAD_STATE_VALUE_WAITING:Sde,MESSAGETYPEVALUES_RECEIVED:xle,MESSAGETYPEVALUES_SENT:vle,MESSAGINGDESTINATIONKINDVALUES_QUEUE:Jse,MESSAGINGDESTINATIONKINDVALUES_TOPIC:Kse,MESSAGINGOPERATIONVALUES_PROCESS:Xse,MESSAGINGOPERATIONVALUES_RECEIVE:Zse,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS:vhe,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES:xhe,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS:whe,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS:khe,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION:Che,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE:She,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS:Ehe,METRIC_DB_CLIENT_OPERATION_DURATION:Ahe,METRIC_DOTNET_ASSEMBLY_COUNT:The,METRIC_DOTNET_EXCEPTIONS:_he,METRIC_DOTNET_GC_COLLECTIONS:Ohe,METRIC_DOTNET_GC_HEAP_TOTAL_ALLOCATED:Lhe,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_FRAGMENTATION_SIZE:jhe,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_SIZE:Nhe,METRIC_DOTNET_GC_LAST_COLLECTION_MEMORY_COMMITTED_SIZE:Rhe,METRIC_DOTNET_GC_PAUSE_TIME:Phe,METRIC_DOTNET_JIT_COMPILATION_TIME:Ihe,METRIC_DOTNET_JIT_COMPILED_IL_SIZE:$he,METRIC_DOTNET_JIT_COMPILED_METHODS:Mhe,METRIC_DOTNET_MONITOR_LOCK_CONTENTIONS:Dhe,METRIC_DOTNET_PROCESS_CPU_COUNT:zhe,METRIC_DOTNET_PROCESS_CPU_TIME:Bhe,METRIC_DOTNET_PROCESS_MEMORY_WORKING_SET:Uhe,METRIC_DOTNET_THREAD_POOL_QUEUE_LENGTH:Fhe,METRIC_DOTNET_THREAD_POOL_THREAD_COUNT:qhe,METRIC_DOTNET_THREAD_POOL_WORK_ITEM_COUNT:Hhe,METRIC_DOTNET_TIMER_COUNT:Vhe,METRIC_HTTP_CLIENT_REQUEST_DURATION:Whe,METRIC_HTTP_SERVER_REQUEST_DURATION:Yhe,METRIC_JVM_CLASS_COUNT:Ghe,METRIC_JVM_CLASS_LOADED:Jhe,METRIC_JVM_CLASS_UNLOADED:Khe,METRIC_JVM_CPU_COUNT:Qhe,METRIC_JVM_CPU_RECENT_UTILIZATION:Zhe,METRIC_JVM_CPU_TIME:Xhe,METRIC_JVM_GC_DURATION:efe,METRIC_JVM_MEMORY_COMMITTED:tfe,METRIC_JVM_MEMORY_LIMIT:rfe,METRIC_JVM_MEMORY_USED:nfe,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC:ofe,METRIC_JVM_THREAD_COUNT:afe,METRIC_KESTREL_ACTIVE_CONNECTIONS:ife,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES:sfe,METRIC_KESTREL_CONNECTION_DURATION:lfe,METRIC_KESTREL_QUEUED_CONNECTIONS:cfe,METRIC_KESTREL_QUEUED_REQUESTS:pfe,METRIC_KESTREL_REJECTED_CONNECTIONS:ufe,METRIC_KESTREL_TLS_HANDSHAKE_DURATION:dfe,METRIC_KESTREL_UPGRADED_CONNECTIONS:hfe,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS:ffe,METRIC_SIGNALR_SERVER_CONNECTION_DURATION:mfe,MessageTypeValues:wle,MessagingDestinationKindValues:Qse,MessagingOperationValues:ele,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:kse,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:Tse,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:Sse,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:Pse,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:Ese,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:Ase,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:Nse,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:wse,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:$se,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:_se,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:Lse,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:Ise,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:Ose,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:jse,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:Dse,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:Rse,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:Use,NETHOSTCONNECTIONSUBTYPEVALUES_NR:zse,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:Bse,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:Mse,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:Cse,NETHOSTCONNECTIONTYPEVALUES_CELL:bse,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:yse,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:vse,NETHOSTCONNECTIONTYPEVALUES_WIFI:mse,NETHOSTCONNECTIONTYPEVALUES_WIRED:gse,NETTRANSPORTVALUES_INPROC:dse,NETTRANSPORTVALUES_IP:cse,NETTRANSPORTVALUES_IP_TCP:sse,NETTRANSPORTVALUES_IP_UDP:lse,NETTRANSPORTVALUES_OTHER:hse,NETTRANSPORTVALUES_PIPE:use,NETTRANSPORTVALUES_UNIX:pse,NETWORK_TRANSPORT_VALUE_PIPE:Lde,NETWORK_TRANSPORT_VALUE_QUIC:jde,NETWORK_TRANSPORT_VALUE_TCP:Nde,NETWORK_TRANSPORT_VALUE_UDP:Rde,NETWORK_TRANSPORT_VALUE_UNIX:Pde,NETWORK_TYPE_VALUE_IPV4:$de,NETWORK_TYPE_VALUE_IPV6:Mde,NetHostConnectionSubtypeValues:Fse,NetHostConnectionTypeValues:xse,NetTransportValues:fse,OSTYPEVALUES_AIX:Dpe,OSTYPEVALUES_DARWIN:Npe,OSTYPEVALUES_DRAGONFLYBSD:$pe,OSTYPEVALUES_FREEBSD:Rpe,OSTYPEVALUES_HPUX:Mpe,OSTYPEVALUES_LINUX:jpe,OSTYPEVALUES_NETBSD:Ppe,OSTYPEVALUES_OPENBSD:Ipe,OSTYPEVALUES_SOLARIS:zpe,OSTYPEVALUES_WINDOWS:Lpe,OSTYPEVALUES_Z_OS:Bpe,OTEL_STATUS_CODE_VALUE_ERROR:Ude,OTEL_STATUS_CODE_VALUE_OK:Fde,OsTypeValues:Upe,RPCGRPCSTATUSCODEVALUES_ABORTED:ule,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:sle,RPCGRPCSTATUSCODEVALUES_CANCELLED:rle,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:gle,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:ale,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:ple,RPCGRPCSTATUSCODEVALUES_INTERNAL:fle,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:ole,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:ile,RPCGRPCSTATUSCODEVALUES_OK:tle,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:dle,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:lle,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:cle,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:ble,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:mle,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:hle,RPCGRPCSTATUSCODEVALUES_UNKNOWN:nle,RpcGrpcStatusCodeValues:yle,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:Goe,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:iae,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:Voe,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:Uoe,SEMATTRS_AWS_DYNAMODB_COUNT:oae,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:Xoe,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:Qoe,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:sae,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:Joe,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:Foe,SEMATTRS_AWS_DYNAMODB_LIMIT:Yoe,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:Zoe,SEMATTRS_AWS_DYNAMODB_PROJECTION:Woe,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:qoe,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:Hoe,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:aae,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:tae,SEMATTRS_AWS_DYNAMODB_SEGMENT:rae,SEMATTRS_AWS_DYNAMODB_SELECT:Koe,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:eae,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:Boe,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:nae,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:vne,SEMATTRS_CODE_FILEPATH:Coe,SEMATTRS_CODE_FUNCTION:woe,SEMATTRS_CODE_LINENO:koe,SEMATTRS_CODE_NAMESPACE:Soe,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:Lne,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:Ine,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:Pne,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:Nne,SEMATTRS_DB_CASSANDRA_KEYSPACE:_ne,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:One,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:Rne,SEMATTRS_DB_CASSANDRA_TABLE:jne,SEMATTRS_DB_CONNECTION_STRING:wne,SEMATTRS_DB_HBASE_NAMESPACE:$ne,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:Cne,SEMATTRS_DB_MONGODB_COLLECTION:Dne,SEMATTRS_DB_MSSQL_INSTANCE_NAME:Tne,SEMATTRS_DB_NAME:kne,SEMATTRS_DB_OPERATION:Ane,SEMATTRS_DB_REDIS_DATABASE_INDEX:Mne,SEMATTRS_DB_SQL_TABLE:zne,SEMATTRS_DB_STATEMENT:Ene,SEMATTRS_DB_SYSTEM:xne,SEMATTRS_DB_USER:Sne,SEMATTRS_ENDUSER_ID:goe,SEMATTRS_ENDUSER_ROLE:boe,SEMATTRS_ENDUSER_SCOPE:yoe,SEMATTRS_EXCEPTION_ESCAPED:qne,SEMATTRS_EXCEPTION_MESSAGE:Une,SEMATTRS_EXCEPTION_STACKTRACE:Fne,SEMATTRS_EXCEPTION_TYPE:Bne,SEMATTRS_FAAS_COLDSTART:Zne,SEMATTRS_FAAS_CRON:Qne,SEMATTRS_FAAS_DOCUMENT_COLLECTION:Wne,SEMATTRS_FAAS_DOCUMENT_NAME:Jne,SEMATTRS_FAAS_DOCUMENT_OPERATION:Yne,SEMATTRS_FAAS_DOCUMENT_TIME:Gne,SEMATTRS_FAAS_EXECUTION:Vne,SEMATTRS_FAAS_INVOKED_NAME:Xne,SEMATTRS_FAAS_INVOKED_PROVIDER:eoe,SEMATTRS_FAAS_INVOKED_REGION:toe,SEMATTRS_FAAS_TIME:Kne,SEMATTRS_FAAS_TRIGGER:Hne,SEMATTRS_HTTP_CLIENT_IP:zoe,SEMATTRS_HTTP_FLAVOR:joe,SEMATTRS_HTTP_HOST:_oe,SEMATTRS_HTTP_METHOD:Eoe,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:Roe,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:Poe,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:Ioe,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:$oe,SEMATTRS_HTTP_ROUTE:Doe,SEMATTRS_HTTP_SCHEME:Ooe,SEMATTRS_HTTP_SERVER_NAME:Moe,SEMATTRS_HTTP_STATUS_CODE:Loe,SEMATTRS_HTTP_TARGET:Toe,SEMATTRS_HTTP_URL:Aoe,SEMATTRS_HTTP_USER_AGENT:Noe,SEMATTRS_MESSAGE_COMPRESSED_SIZE:Mae,SEMATTRS_MESSAGE_ID:$ae,SEMATTRS_MESSAGE_TYPE:Iae,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:Dae,SEMATTRS_MESSAGING_CONSUMER_ID:xae,SEMATTRS_MESSAGING_CONVERSATION_ID:gae,SEMATTRS_MESSAGING_DESTINATION:cae,SEMATTRS_MESSAGING_DESTINATION_KIND:pae,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:kae,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:Cae,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:Sae,SEMATTRS_MESSAGING_KAFKA_PARTITION:Eae,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:Aae,SEMATTRS_MESSAGING_MESSAGE_ID:mae,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:yae,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:bae,SEMATTRS_MESSAGING_OPERATION:vae,SEMATTRS_MESSAGING_PROTOCOL:dae,SEMATTRS_MESSAGING_PROTOCOL_VERSION:hae,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:wae,SEMATTRS_MESSAGING_SYSTEM:lae,SEMATTRS_MESSAGING_TEMP_DESTINATION:uae,SEMATTRS_MESSAGING_URL:fae,SEMATTRS_NET_HOST_CARRIER_ICC:foe,SEMATTRS_NET_HOST_CARRIER_MCC:doe,SEMATTRS_NET_HOST_CARRIER_MNC:hoe,SEMATTRS_NET_HOST_CARRIER_NAME:uoe,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:poe,SEMATTRS_NET_HOST_CONNECTION_TYPE:coe,SEMATTRS_NET_HOST_IP:ioe,SEMATTRS_NET_HOST_NAME:loe,SEMATTRS_NET_HOST_PORT:soe,SEMATTRS_NET_PEER_IP:noe,SEMATTRS_NET_PEER_NAME:aoe,SEMATTRS_NET_PEER_PORT:ooe,SEMATTRS_NET_TRANSPORT:roe,SEMATTRS_PEER_SERVICE:moe,SEMATTRS_RPC_GRPC_STATUS_CODE:Lae,SEMATTRS_RPC_JSONRPC_ERROR_CODE:Rae,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:Pae,SEMATTRS_RPC_JSONRPC_REQUEST_ID:Nae,SEMATTRS_RPC_JSONRPC_VERSION:jae,SEMATTRS_RPC_METHOD:Oae,SEMATTRS_RPC_SERVICE:_ae,SEMATTRS_RPC_SYSTEM:Tae,SEMATTRS_THREAD_ID:voe,SEMATTRS_THREAD_NAME:xoe,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:_le,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:Tle,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:Ole,SEMRESATTRS_AWS_ECS_TASK_ARN:Lle,SEMRESATTRS_AWS_ECS_TASK_FAMILY:jle,SEMRESATTRS_AWS_ECS_TASK_REVISION:Nle,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:Rle,SEMRESATTRS_AWS_LOG_GROUP_ARNS:Ile,SEMRESATTRS_AWS_LOG_GROUP_NAMES:Ple,SEMRESATTRS_AWS_LOG_STREAM_ARNS:Mle,SEMRESATTRS_AWS_LOG_STREAM_NAMES:$le,SEMRESATTRS_CLOUD_ACCOUNT_ID:Cle,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:Ele,SEMRESATTRS_CLOUD_PLATFORM:Ale,SEMRESATTRS_CLOUD_PROVIDER:Sle,SEMRESATTRS_CLOUD_REGION:kle,SEMRESATTRS_CONTAINER_ID:zle,SEMRESATTRS_CONTAINER_IMAGE_NAME:Ule,SEMRESATTRS_CONTAINER_IMAGE_TAG:Fle,SEMRESATTRS_CONTAINER_NAME:Dle,SEMRESATTRS_CONTAINER_RUNTIME:Ble,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:qle,SEMRESATTRS_DEVICE_ID:Hle,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:Vle,SEMRESATTRS_DEVICE_MODEL_NAME:Wle,SEMRESATTRS_FAAS_ID:Gle,SEMRESATTRS_FAAS_INSTANCE:Kle,SEMRESATTRS_FAAS_MAX_MEMORY:Qle,SEMRESATTRS_FAAS_NAME:Yle,SEMRESATTRS_FAAS_VERSION:Jle,SEMRESATTRS_HOST_ARCH:tce,SEMRESATTRS_HOST_ID:Zle,SEMRESATTRS_HOST_IMAGE_ID:nce,SEMRESATTRS_HOST_IMAGE_NAME:rce,SEMRESATTRS_HOST_IMAGE_VERSION:oce,SEMRESATTRS_HOST_NAME:Xle,SEMRESATTRS_HOST_TYPE:ece,SEMRESATTRS_K8S_CLUSTER_NAME:ace,SEMRESATTRS_K8S_CONTAINER_NAME:uce,SEMRESATTRS_K8S_CRONJOB_NAME:Cce,SEMRESATTRS_K8S_CRONJOB_UID:Sce,SEMRESATTRS_K8S_DAEMONSET_NAME:vce,SEMRESATTRS_K8S_DAEMONSET_UID:yce,SEMRESATTRS_K8S_DEPLOYMENT_NAME:mce,SEMRESATTRS_K8S_DEPLOYMENT_UID:fce,SEMRESATTRS_K8S_JOB_NAME:wce,SEMRESATTRS_K8S_JOB_UID:xce,SEMRESATTRS_K8S_NAMESPACE_NAME:lce,SEMRESATTRS_K8S_NODE_NAME:ice,SEMRESATTRS_K8S_NODE_UID:sce,SEMRESATTRS_K8S_POD_NAME:pce,SEMRESATTRS_K8S_POD_UID:cce,SEMRESATTRS_K8S_REPLICASET_NAME:hce,SEMRESATTRS_K8S_REPLICASET_UID:dce,SEMRESATTRS_K8S_STATEFULSET_NAME:bce,SEMRESATTRS_K8S_STATEFULSET_UID:gce,SEMRESATTRS_OS_DESCRIPTION:Ece,SEMRESATTRS_OS_NAME:Ace,SEMRESATTRS_OS_TYPE:kce,SEMRESATTRS_OS_VERSION:Tce,SEMRESATTRS_PROCESS_COMMAND:jce,SEMRESATTRS_PROCESS_COMMAND_ARGS:Rce,SEMRESATTRS_PROCESS_COMMAND_LINE:Nce,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:Oce,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:Lce,SEMRESATTRS_PROCESS_OWNER:Pce,SEMRESATTRS_PROCESS_PID:_ce,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:Mce,SEMRESATTRS_PROCESS_RUNTIME_NAME:Ice,SEMRESATTRS_PROCESS_RUNTIME_VERSION:$ce,SEMRESATTRS_SERVICE_INSTANCE_ID:Bce,SEMRESATTRS_SERVICE_NAME:Dce,SEMRESATTRS_SERVICE_NAMESPACE:zce,SEMRESATTRS_SERVICE_VERSION:Uce,SEMRESATTRS_TELEMETRY_AUTO_VERSION:Vce,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:qce,SEMRESATTRS_TELEMETRY_SDK_NAME:Fce,SEMRESATTRS_TELEMETRY_SDK_VERSION:Hce,SEMRESATTRS_WEBENGINE_DESCRIPTION:Gce,SEMRESATTRS_WEBENGINE_NAME:Wce,SEMRESATTRS_WEBENGINE_VERSION:Yce,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN:Jde,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE:Kde,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT:Qde,SIGNALR_TRANSPORT_VALUE_LONG_POLLING:Xde,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS:ehe,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS:the,SemanticAttributes:zae,SemanticResourceAttributes:Jce,TELEMETRYSDKLANGUAGEVALUES_CPP:Fpe,TELEMETRYSDKLANGUAGEVALUES_DOTNET:qpe,TELEMETRYSDKLANGUAGEVALUES_ERLANG:Hpe,TELEMETRYSDKLANGUAGEVALUES_GO:Vpe,TELEMETRYSDKLANGUAGEVALUES_JAVA:Wpe,TELEMETRYSDKLANGUAGEVALUES_NODEJS:Ype,TELEMETRYSDKLANGUAGEVALUES_PHP:Gpe,TELEMETRYSDKLANGUAGEVALUES_PYTHON:Jpe,TELEMETRYSDKLANGUAGEVALUES_RUBY:Kpe,TELEMETRYSDKLANGUAGEVALUES_WEBJS:Qpe,TELEMETRY_SDK_LANGUAGE_VALUE_CPP:rhe,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET:nhe,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG:ohe,TELEMETRY_SDK_LANGUAGE_VALUE_GO:ahe,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA:ihe,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:she,TELEMETRY_SDK_LANGUAGE_VALUE_PHP:lhe,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON:che,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY:phe,TELEMETRY_SDK_LANGUAGE_VALUE_RUST:uhe,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT:dhe,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:jN,TelemetrySdkLanguageValues:Zpe},Symbol.toStringTag,{value:"Module"})),yfe="process.runtime.name",qx={[gg]:"opentelemetry",[yfe]:"browser",[mg]:jN,[bg]:yne},Il=performance,vfe=9,xfe=6,wfe=Math.pow(10,xfe),yg=Math.pow(10,vfe);function Cs(e){const t=e/1e3,r=Math.trunc(t),n=Math.round(e%1e3*wfe);return[r,n]}function NN(e){const t=Cs(Il.timeOrigin),r=Cs(typeof e=="number"?e:Il.now());return IN(t,r)}function qd(e){if(Hx(e))return e;if(typeof e=="number")return e<Il.timeOrigin?NN(e):Cs(e);if(e instanceof Date)return Cs(e.getTime());throw TypeError("Invalid input type")}function Sfe(e,t){let r=t[0]-e[0],n=t[1]-e[1];return n<0&&(r-=1,n+=yg),[r,n]}function Li(e){return e[0]*yg+e[1]}function RN(e){return e[0]*1e6+e[1]/1e3}function Hx(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function PN(e){return Hx(e)||typeof e=="number"||e instanceof Date}function IN(e,t){const r=[e[0]+t[0],e[1]+t[1]];return r[1]>=yg&&(r[1]-=yg,r[0]+=1),r}var Xn;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(Xn||(Xn={}));class Cfe{_propagators;_fields;constructor(t={}){this._propagators=t.propagators??[];const r=new Set;for(const n of this._propagators){const o=typeof n.fields=="function"?n.fields():[];for(const a of o)r.add(a)}this._fields=Array.from(r)}inject(t,r,n){for(const o of this._propagators)try{o.inject(t,r,n)}catch(a){ht.warn(`Failed to inject with ${o.constructor.name}. Err: ${a.message}`)}}extract(t,r,n){return this._propagators.reduce((o,a)=>{try{return a.extract(o,r,n)}catch(i){ht.warn(`Failed to extract with ${a.constructor.name}. Err: ${i.message}`)}return o},t)}fields(){return this._fields.slice()}}const Vx="[_0-9a-z-*/]",kfe=`[a-z]${Vx}{0,255}`,Efe=`[a-z0-9]${Vx}{0,240}@[a-z]${Vx}{0,13}`,Afe=new RegExp(`^(?:${kfe}|${Efe})$`),Tfe=/^[ -~]{0,255}[!-~]$/,_fe=/,|=/;function $N(e){return Afe.test(e)}function MN(e){return Tfe.test(e)&&!_fe.test(e)}const Ofe=32,DN=512,zN=",",BN="=";class Dk{_length;_rawTraceState;_internalState;constructor(t){this._rawTraceState=typeof t=="string"?t:"",this._length=this._rawTraceState.length}set(t,r){if(!$N(t)||!MN(r))return this;const n=this._getState(),o=n.get(t);let a=this._length;if(typeof o=="string"?a+=r.length-o.length:a+=t.length+r.length+(n.size>0?2:1),a>DN)return this;const i=new Map(n);return i.delete(t),i.set(t,r),this._fromState(i,a)}unset(t){const r=this._getState(),n=r.get(t);if(typeof n!="string")return this;let o=this._length-(t.length+n.length+1);r.size>1&&(o=o-1);const a=new Map(r);return a.delete(t),this._fromState(a,o)}get(t){return this._getState().get(t)}serialize(){let t="",r=0;for(const n of this._getState())r>0&&(t=zN+t),t=`${n[0]}${BN}${n[1]}`+t,r++;return t}_getState(){if(this._internalState)return this._internalState;const t=this._rawTraceState.split(zN),r=new Map;let n=0;for(const o of t){const a=o.trim(),i=a.indexOf(BN);if(i===-1)continue;const s=a.slice(0,i),c=a.slice(i+1);if(!$N(s)||!MN(c))continue;const u=n+a.length+(r.size>0?1:0);if(!(u>DN)&&(r.set(s,c),n=u,r.size>=Ofe))break}return this._length=n,this._internalState=new Map(Array.from(r.entries()).reverse()),this._internalState}_fromState(t,r){const n=Object.create(Dk.prototype);return n._internalState=t,n._length=r,n}}const Wx="traceparent",Yx="tracestate",Lfe="00",jfe="(?!ff)[\\da-f]{2}",Nfe="(?![0]{32})[\\da-f]{32}",Rfe="(?![0]{16})[\\da-f]{16}",Pfe="[\\da-f]{2}",Ife=new RegExp(`^\\s?(${jfe})-(${Nfe})-(${Rfe})-(${Pfe})(-.*)?\\s?$`);function $fe(e){const t=Ife.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}class Mfe{inject(t,r,n){const o=Nn.getSpanContext(t);if(!o||Bx(t)||!zd(o))return;const a=`${Lfe}-${o.traceId}-${o.spanId}-0${Number(o.traceFlags||da.NONE).toString(16)}`;n.set(r,Wx,a),o.traceState&&n.set(r,Yx,o.traceState.serialize())}extract(t,r,n){const o=n.get(r,Wx);if(!o)return t;const a=Array.isArray(o)?o[0]:o;if(typeof a!="string")return t;const i=$fe(a);if(!i)return t;i.isRemote=!0;const s=n.get(r,Yx);if(s){const c=Array.isArray(s)?s.join(","):s;i.traceState=new Dk(typeof c=="string"?c:void 0)}return Nn.setSpanContext(t,i)}fields(){return[Wx,Yx]}}const Dfe="[object Object]",zfe="[object Null]",Bfe="[object Undefined]",Ufe=Function.prototype,UN=Ufe.toString,Ffe=UN.call(Object),qfe=Object.getPrototypeOf,FN=Object.prototype,qN=FN.hasOwnProperty,$l=Symbol?Symbol.toStringTag:void 0,HN=FN.toString;function VN(e){if(!Hfe(e)||Vfe(e)!==Dfe)return!1;const t=qfe(e);if(t===null)return!0;const r=qN.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&UN.call(r)===Ffe}function Hfe(e){return e!=null&&typeof e=="object"}function Vfe(e){return e==null?e===void 0?Bfe:zfe:$l&&$l in Object(e)?Wfe(e):Yfe(e)}function Wfe(e){const t=qN.call(e,$l),r=e[$l];let n=!1;try{e[$l]=void 0,n=!0}catch{}const o=HN.call(e);return n&&(t?e[$l]=r:delete e[$l]),o}function Yfe(e){return HN.call(e)}const Gfe=20;function Jfe(...e){let t=e.shift();const r=new WeakMap;for(;e.length>0;)t=WN(t,e.shift(),0,r);return t}function Gx(e){return vg(e)?e.slice():e}function WN(e,t,r=0,n){let o;if(!(r>Gfe)){if(r++,xg(e)||xg(t)||GN(t))o=Gx(t);else if(vg(e)){if(o=e.slice(),vg(t))for(let a=0,i=t.length;a<i;a++)o.push(Gx(t[a]));else if(Hd(t)){const a=Object.keys(t);for(let i=0,s=a.length;i<s;i++){const c=a[i];c==="__proto__"||c==="constructor"||c==="prototype"||(o[c]=Gx(t[c]))}}}else if(Hd(e))if(Hd(t)){if(!Kfe(e,t))return t;o=Object.assign({},e);const a=Object.keys(t);for(let i=0,s=a.length;i<s;i++){const c=a[i];if(c==="__proto__"||c==="constructor"||c==="prototype")continue;const u=t[c];if(xg(u))typeof u>"u"?delete o[c]:o[c]=u;else{const d=o[c],f=u;if(YN(e,c,n)||YN(t,c,n))delete o[c];else{if(Hd(d)&&Hd(f)){const g=n.get(d)||[],y=n.get(f)||[];g.push({obj:e,key:c}),y.push({obj:t,key:c}),n.set(d,g),n.set(f,y)}o[c]=WN(o[c],u,r,n)}}}}else o=t;return o}}function YN(e,t,r){const n=r.get(e[t])||[];for(let o=0,a=n.length;o<a;o++){const i=n[o];if(i.key===t&&i.obj===e)return!0}return!1}function vg(e){return Array.isArray(e)}function GN(e){return typeof e=="function"}function Hd(e){return!xg(e)&&!vg(e)&&!GN(e)&&typeof e=="object"}function xg(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function Kfe(e,t){return!(!VN(e)||!VN(t))}function Qfe(e,t){return typeof t=="string"?e===t:!!e.match(t)}class Zfe{_promise;_resolve;_reject;constructor(){this._promise=new Promise((t,r)=>{this._resolve=t,this._reject=r})}get promise(){return this._promise}resolve(t){this._resolve(t)}reject(t){this._reject(t)}}class JN{_isCalled=!1;_deferred=new Zfe;_callback;_that;constructor(t,r){this._callback=t,this._that=r}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...t){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...t)).then(r=>this._deferred.resolve(r),r=>this._deferred.reject(r))}catch(r){this._deferred.reject(r)}}return this._deferred.promise}}function Xfe(e,t){return new Promise(r=>{qo.with(sT(qo.active()),()=>{e.export(t,r)})})}const eme={_export:Xfe};let wg;function KN(){if(wg===void 0)try{const e=globalThis.process.argv0;wg=e?`unknown_service:${e}`:"unknown_service"}catch{wg="unknown_service"}return wg}const Vd=e=>e!==null&&typeof e=="object"&&typeof e.then=="function";class hf{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(t,r){const n=new hf({},r);return n._rawAttributes=ZN(t),n._asyncAttributesPending=t.filter(([o,a])=>Vd(a)).length>0,n}constructor(t,r){const n=t.attributes??{};this._rawAttributes=Object.entries(n).map(([o,a])=>(Vd(a)&&(this._asyncAttributesPending=!0),[o,a])),this._rawAttributes=ZN(this._rawAttributes),this._schemaUrl=rme(r?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let t=0;t<this._rawAttributes.length;t++){const[r,n]=this._rawAttributes[t];this._rawAttributes[t]=[r,Vd(n)?await n:n]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&ht.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const t={};for(const[r,n]of this._rawAttributes){if(Vd(n)){ht.debug(`Unsettled resource attribute ${r} skipped`);continue}n!=null&&(t[r]??=n)}return this._asyncAttributesPending||(this._memoizedAttributes=t),t}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(t){if(t==null)return this;const r=nme(this,t),n=r?{schemaUrl:r}:void 0;return hf.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()],n)}}function Sg(e,t){return hf.FromAttributeList(Object.entries(e),t)}function tme(e,t){return new hf(e,t)}function Jx(){return Sg({})}function QN(){return Sg({[Fx]:KN(),[mg]:qx[mg],[gg]:qx[gg],[bg]:qx[bg]})}function ZN(e){return e.map(([t,r])=>Vd(r)?[t,r.catch(n=>{ht.debug("promise rejection for resource attribute: %s - %s",t,n)})]:[t,r])}function rme(e){if(typeof e=="string"||e===void 0)return e;ht.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",e)}function nme(e,t){const r=e?.schemaUrl,n=t?.schemaUrl,o=r===void 0||r==="",a=n===void 0||n==="";if(o)return n;if(a||r===n)return r;ht.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',r,n)}const ome=(e={})=>(e.detectors||[]).map(t=>{try{const r=tme(t.detect(e));return ht.debug(`${t.constructor.name} found resource.`,r),r}catch(r){return ht.debug(`${t.constructor.name} failed: ${r.message}`),Jx()}}).reduce((t,r)=>t.merge(r),Jx());class ame{_MAX_LENGTH=255;_COMMA_SEPARATOR=",";_LABEL_KEY_VALUE_SPLITTER="=";detect(t){return{attributes:{}}}_parseResourceAttributes(t){if(!t)return{};const r={},n=t.split(this._COMMA_SEPARATOR).filter(o=>o.trim()!=="");for(const o of n){const a=o.split(this._LABEL_KEY_VALUE_SPLITTER);if(a.length!==2)throw new Error(`Invalid format for OTEL_RESOURCE_ATTRIBUTES: "${o}". Expected format: key=value. The ',' and '=' characters must be percent-encoded in keys and values.`);const[i,s]=a,c=i.trim(),u=s.trim();if(c.length===0)throw new Error(`Invalid OTEL_RESOURCE_ATTRIBUTES: empty attribute key in "${o}".`);let d,f;try{d=decodeURIComponent(c),f=decodeURIComponent(u)}catch(g){throw new Error(`Failed to percent-decode OTEL_RESOURCE_ATTRIBUTES entry "${o}": ${g instanceof Error?g.message:g}`,{cause:g})}if(d.length>this._MAX_LENGTH)throw new Error(`Attribute key exceeds the maximum length of ${this._MAX_LENGTH} characters: "${d}".`);if(f.length>this._MAX_LENGTH)throw new Error(`Attribute value exceeds the maximum length of ${this._MAX_LENGTH} characters for key "${d}".`);r[d]=f}return r}}const ime=new ame;class sme{detect(){return{attributes:{}}}}const Cg=new sme,lme=Cg,cme=Cg,pme=Cg,ume=Cg,dme=Object.freeze(Object.defineProperty({__proto__:null,defaultResource:QN,defaultServiceName:KN,detectResources:ome,emptyResource:Jx,envDetector:ime,hostDetector:lme,osDetector:cme,processDetector:pme,resourceFromAttributes:Sg,serviceInstanceIdDetector:ume},Symbol.toStringTag,{value:"Module"})),hme="exception",Kx=Symbol.for("nodejs.util.inspect.custom");function Qx(e){const t={};for(const[r,n]of e.getRawAttributes())typeof n?.then!="function"&&n!=null&&(t[r]??=n);return t}function Zx(e,t,r,n,o){if(typeof r=="number"&&r<0){const i=`[${e}]`;return n?.stylize?n.stylize(i,"special"):i}if(typeof o!="function"||!n)return t;const a={...n,depth:n.depth==null?n.depth:n.depth-1};return`${e} ${o(t,a)}`}class fme{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;_attributesCount=0;name;status={code:Ss.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_recordEndMetrics;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(t){const r=Date.now();if(this._spanContext=t.spanContext,this._performanceStartTime=Il.now(),this._performanceOffset=r-(this._performanceStartTime+Il.timeOrigin),this._startTimeProvided=t.startTime!=null,this._spanLimits=t.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit??0,this._spanProcessor=t.spanProcessor,this.name=t.name,this.parentSpanContext=t.parentSpanContext,this.kind=t.kind,t.links)for(const n of t.links)this.addLink(n);this.startTime=this._getTime(t.startTime??r),this.resource=t.resource,this.instrumentationScope=t.scope,this._recordEndMetrics=t.recordEndMetrics,t.attributes!=null&&this.setAttributes(t.attributes),this._spanProcessor.onStart(this,t.context)}spanContext(){return this._spanContext}setAttribute(t,r){if(r==null||this._isSpanEnded())return this;if(t.length===0)return ht.warn(`Invalid attribute key: ${t}`),this;if(!fT(r))return ht.warn(`Invalid attribute value set for key: ${t}`),this;const{attributeCountLimit:n}=this._spanLimits,o=!Object.prototype.hasOwnProperty.call(this.attributes,t);return n!==void 0&&this._attributesCount>=n&&o?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(r),o&&this._attributesCount++,this)}setAttributes(t){for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.setAttribute(r,t[r]);return this}addEvent(t,r,n){if(this._isSpanEnded())return this;const{eventCountLimit:o}=this._spanLimits;if(o===0)return ht.warn("No events allowed."),this._droppedEventsCount++,this;o!==void 0&&this.events.length>=o&&(this._droppedEventsCount===0&&ht.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),PN(r)&&(PN(n)||(n=r),r=void 0);const a=Fd(r),{attributePerEventCountLimit:i}=this._spanLimits,s={};let c=0,u=0;for(const d in a){if(!Object.prototype.hasOwnProperty.call(a,d))continue;const f=a[d];if(i!==void 0&&u>=i){c++;continue}s[d]=this._truncateToSize(f),u++}return this.events.push({name:t,attributes:s,time:this._getTime(n),droppedAttributesCount:c}),this}addLink(t){if(this._isSpanEnded())return this;const{linkCountLimit:r}=this._spanLimits;if(r===0)return this._droppedLinksCount++,this;r!==void 0&&this.links.length>=r&&(this._droppedLinksCount===0&&ht.debug("Dropping extra links."),this.links.shift(),this._droppedLinksCount++);const{attributePerLinkCountLimit:n}=this._spanLimits,o=Fd(t.attributes),a={};let i=0,s=0;for(const u in o){if(!Object.prototype.hasOwnProperty.call(o,u))continue;const d=o[u];if(n!==void 0&&s>=n){i++;continue}a[u]=this._truncateToSize(d),s++}const c={context:t.context};return s>0&&(c.attributes=a),i>0&&(c.droppedAttributesCount=i),this.links.push(c),this}addLinks(t){for(const r of t)this.addLink(r);return this}setStatus(t){if(this._isSpanEnded())return this;if(t.code===Ss.UNSET)return this;if(this.status.code===Ss.OK)return this;const r={code:t.code};return t.code===Ss.ERROR&&(typeof t.message=="string"?r.message=t.message:t.message!=null&&ht.warn(`Dropping invalid status.message of type '${typeof t.message}', expected 'string'`)),this.status=r,this}updateName(t){return this._isSpanEnded()?this:(this.name=t,this)}end(t){if(this._isSpanEnded()){ht.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this.endTime=this._getTime(t),this._duration=Sfe(this.startTime,this.endTime),this._duration[0]<0&&(ht.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&ht.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._droppedLinksCount>0&&ht.warn(`Dropped ${this._droppedLinksCount} links because linkCountLimit reached`),this._spanProcessor.onEnding&&this._spanProcessor.onEnding(this),this._recordEndMetrics?.(),this._ended=!0,this._spanProcessor.onEnd(this)}_getTime(t){if(typeof t=="number"&&t<=Il.now())return NN(t+this._performanceOffset);if(typeof t=="number")return Cs(t);if(t instanceof Date)return Cs(t.getTime());if(Hx(t))return t;if(this._startTimeProvided)return Cs(Date.now());const r=Il.now()-this._performanceStartTime;return IN(this.startTime,Cs(r))}isRecording(){return this._ended===!1}recordException(t,r){const n={};typeof t=="string"?n[hg]=t:t&&(t.code?n[fg]=t.code.toString():t.name&&(n[fg]=t.name),t.message&&(n[hg]=t.message),t.stack&&(n[ON]=t.stack)),n[fg]||n[hg]?this.addEvent(hme,n,r):ht.warn(`Failed to record an exception ${t}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){const t=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);ht.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,t)}return this._ended}_truncateToLimitUtil(t,r){return t.length<=r?t:t.substring(0,r)}_truncateToSize(t){const r=this._attributeValueLengthLimit;return r<=0?(ht.warn(`Attribute value limit must be positive, got ${r}`),t):typeof t=="string"?this._truncateToLimitUtil(t,r):Array.isArray(t)?t.map(n=>typeof n=="string"?this._truncateToLimitUtil(n,r):n):t}[Kx](t,r,n){const o={name:this.name,kind:this.kind,spanContext:this._spanContext,parentSpanContext:this.parentSpanContext,status:this.status,startTime:this.startTime,endTime:this.endTime,duration:this._duration,ended:this._ended,attributes:this.attributes,events:this.events,links:this.links,droppedAttributesCount:this._droppedAttributesCount,droppedEventsCount:this._droppedEventsCount,droppedLinksCount:this._droppedLinksCount,instrumentationScope:this.instrumentationScope,resource:{attributes:Qx(this.resource)}};return Zx("SpanImpl",o,t,r,n)}}var ha;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(ha||(ha={}));class Wd{shouldSample(){return{decision:ha.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class Ml{shouldSample(){return{decision:ha.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class Yd{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(t){this._root=t.root,this._root||(Pl(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Ml),this._remoteParentSampled=t.remoteParentSampled??new Ml,this._remoteParentNotSampled=t.remoteParentNotSampled??new Wd,this._localParentSampled=t.localParentSampled??new Ml,this._localParentNotSampled=t.localParentNotSampled??new Wd}shouldSample(t,r,n,o,a,i){const s=Nn.getSpanContext(t);return!s||!zd(s)?this._root.shouldSample(t,r,n,o,a,i):s.isRemote?s.traceFlags&da.SAMPLED?this._remoteParentSampled.shouldSample(t,r,n,o,a,i):this._remoteParentNotSampled.shouldSample(t,r,n,o,a,i):s.traceFlags&da.SAMPLED?this._localParentSampled.shouldSample(t,r,n,o,a,i):this._localParentNotSampled.shouldSample(t,r,n,o,a,i)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}class Xx{_ratio;_upperBound;constructor(t=0){this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(t,r){return{decision:Nx(r)&&this._accumulate(r)<this._upperBound?ha.RECORD_AND_SAMPLED:ha.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t}_accumulate(t){let r=0;for(let n=0;n<32;n+=8){let o=0;for(let a=0;a<8;a++){const i=t.charCodeAt(n+a),s=i<58?i-48:i<71?i-55:i-87;o=o<<4|s}r=(r^o)>>>0}return r}}var za;(function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"})(za||(za={}));const XN=1;function eR(){return{sampler:tR(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function tR(){const e=za.ParentBasedAlwaysOn;switch(e){case za.AlwaysOn:return new Ml;case za.AlwaysOff:return new Wd;case za.ParentBasedAlwaysOn:return new Yd({root:new Ml});case za.ParentBasedAlwaysOff:return new Yd({root:new Wd});case za.TraceIdRatio:return new Xx(rR());case za.ParentBasedTraceIdRatio:return new Yd({root:new Xx(rR())});default:return ht.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "${za.ParentBasedAlwaysOn}".`),new Yd({root:new Ml})}}function rR(){return ht.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${XN}.`),XN}const mme=128,gme=1/0;function bme(e){const t={sampler:tR()},r=eR(),n=Object.assign({},r,t,e);return n.generalLimits=Object.assign({},r.generalLimits,e.generalLimits||{}),n.spanLimits=Object.assign({},r.spanLimits,e.spanLimits||{}),n}function yme(e){const t=Object.assign({},e.spanLimits);return t.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??void 0??void 0??mme,t.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??void 0??void 0??gme,Object.assign({},e,{spanLimits:t})}class vme{_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_exporter;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(t,r){this._exporter=t,this._maxExportBatchSize=typeof r?.maxExportBatchSize=="number"?r.maxExportBatchSize:512,this._maxQueueSize=typeof r?.maxQueueSize=="number"?r.maxQueueSize:2048,this._scheduledDelayMillis=typeof r?.scheduledDelayMillis=="number"?r.scheduledDelayMillis:5e3,this._exportTimeoutMillis=typeof r?.exportTimeoutMillis=="number"?r.exportTimeoutMillis:3e4,this._shutdownOnce=new JN(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(ht.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(t,r){}onEnd(t){this._shutdownOnce.isCalled||(t.spanContext().traceFlags&da.SAMPLED)!==0&&this._addToBuffer(t)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(t){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&ht.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(ht.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(t),this._maybeStartTimer()}_flushAll(){return new Promise((t,r)=>{const n=[],o=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let a=0,i=o;a<i;a++)n.push(this._flushOneBatch());Promise.all(n).then(()=>{t()}).catch(r)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((t,r)=>{const n=setTimeout(()=>{r(new Error("Timeout"))},this._exportTimeoutMillis);qo.with(sT(qo.active()),()=>{let o;this._finishedSpans.length<=this._maxExportBatchSize?(o=this._finishedSpans,this._finishedSpans=[]):o=this._finishedSpans.splice(0,this._maxExportBatchSize);const a=()=>this._exporter.export(o,s=>{clearTimeout(n),s.code===Xn.SUCCESS?t():r(s.error??new Error("BatchSpanProcessor: span export failed"))});let i=null;for(let s=0,c=o.length;s<c;s++){const u=o[s];u.resource.asyncAttributesPending&&u.resource.waitForAsyncAttributes&&(i??=[],i.push(u.resource.waitForAsyncAttributes()))}i===null?a():Promise.all(i).then(a,s=>{Pl(s),r(s)})})})}_maybeStartTimer(){if(this._isExporting)return;const t=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(r=>{this._isExporting=!1,Pl(r)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return t();this._timer===void 0&&(this._timer=setTimeout(()=>t(),this._scheduledDelayMillis),typeof this._timer!="number"&&this._timer.unref())}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}}class nR extends vme{_visibilityChangeListener;_pageHideListener;constructor(t,r){super(t,r),this.onInit(r)}onInit(t){t?.disableAutoFlushOnDocumentHide!==!0&&typeof document<"u"&&(this._visibilityChangeListener=()=>{document.visibilityState==="hidden"&&this.forceFlush().catch(r=>{Pl(r)})},this._pageHideListener=()=>{this.forceFlush().catch(r=>{Pl(r)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))}onShutdown(){typeof document<"u"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))}}const xme=16,wme=8,oR=new Uint8Array(xme),aR=new Uint8Array(wme),Sme=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function iR(e){for(let t=0;t<e.length;t++)e[t]=Math.random()*256>>>0;for(let t=0;t<e.length;t++)if(e[t]>0)return;e[e.length-1]=1}function sR(e){let t="";for(let r=0;r<e.length;r++)t+=Sme[e[r]];return t}class lR{generateTraceId(){return iR(oR),sR(oR)}generateSpanId(){return iR(aR),sR(aR)}}const Cme="otel.span.parent.origin",cR="otel.span.sampling_result",kme="otel.sdk.span.live",Eme="otel.sdk.span.started";class Ame{startedSpans;liveSpans;constructor(t){this.startedSpans=t.createCounter(Eme,{unit:"{span}",description:"The number of created spans."}),this.liveSpans=t.createUpDownCounter(kme,{unit:"{span}",description:"The number of currently live spans."})}startSpan(t,r){const n=_me(r);if(this.startedSpans.add(1,{[Cme]:Tme(t),[cR]:n}),r===ha.NOT_RECORD)return()=>{};const o={[cR]:n};return this.liveSpans.add(1,o),()=>{this.liveSpans.add(-1,o)}}}function Tme(e){return e?e.isRemote?"remote":"local":"none"}function _me(e){switch(e){case ha.RECORD_AND_SAMPLED:return"RECORD_AND_SAMPLE";case ha.RECORD:return"RECORD_ONLY";case ha.NOT_RECORD:return"DROP"}}const Ome="2.8.0";class Lme{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;_tracerMetrics;constructor(t,r,n,o){const a=bme(r);this._sampler=a.sampler,this._generalLimits=a.generalLimits,this._spanLimits=a.spanLimits,this._idGenerator=r.idGenerator||new lR,this._resource=n,this._spanProcessor=o,this.instrumentationScope=t;const i=a.meterProvider?a.meterProvider.getMeter("@opentelemetry/sdk-trace",Ome):GA();this._tracerMetrics=new Ame(i)}startSpan(t,r={},n=qo.active()){r.root&&(n=Nn.deleteSpan(n));const o=Nn.getSpan(n);if(Bx(n))return ht.debug("Instrumentation suppressed, returning Noop Span"),Nn.wrapSpanContext(_x);const a=o?.spanContext(),i=this._idGenerator.generateSpanId();let s,c,u;!a||!Nn.isSpanContextValid(a)?c=this._idGenerator.generateTraceId():(c=a.traceId,u=a.traceState,s=a);const d=r.kind??Ud.INTERNAL,f=(r.links??[]).map(C=>({context:C.context,attributes:Fd(C.attributes)})),g=Fd(r.attributes),y=this._sampler.shouldSample(n,c,t,d,g,f),v=this._tracerMetrics.startSpan(a,y.decision);u=y.traceState??u;const x=y.decision===Bd.RECORD_AND_SAMPLED?da.SAMPLED:da.NONE,S={traceId:c,spanId:i,traceFlags:x,traceState:u};if(y.decision===Bd.NOT_RECORD)return ht.debug("Recording is off, propagating context in a non-recording span"),Nn.wrapSpanContext(S);const w=Fd(Object.assign(g,y.attributes));return new fme({resource:this._resource,scope:this.instrumentationScope,context:n,spanContext:S,name:t,kind:d,links:f,parentSpanContext:s,attributes:w,startTime:r.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits,recordEndMetrics:v})}startActiveSpan(t,r,n,o){let a,i,s;if(arguments.length<2)return;arguments.length===2?s=r:arguments.length===3?(a=r,s=n):(a=r,i=n,s=o);const c=i??qo.active(),u=this.startSpan(t,a,c),d=Nn.setSpan(c,u);return qo.with(d,s,void 0,u)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}[Kx](t,r,n){const o={instrumentationScope:this.instrumentationScope,resource:{attributes:Qx(this._resource)},spanLimits:this._spanLimits,generalLimits:this._generalLimits};return Zx("Tracer",o,t,r,n)}}class jme{_spanProcessors;constructor(t){this._spanProcessors=t}forceFlush(){const t=[];for(const r of this._spanProcessors)t.push(r.forceFlush());return new Promise(r=>{Promise.all(t).then(()=>{r()}).catch(n=>{Pl(n||new Error("MultiSpanProcessor: forceFlush failed")),r()})})}onStart(t,r){for(const n of this._spanProcessors)n.onStart(t,r)}onEnding(t){for(const r of this._spanProcessors)r.onEnding&&r.onEnding(t)}onEnd(t){for(const r of this._spanProcessors)r.onEnd(t)}shutdown(){const t=[];for(const r of this._spanProcessors)t.push(r.shutdown());return new Promise((r,n)=>{Promise.all(t).then(()=>{r()},n)})}}var Dl;(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"})(Dl||(Dl={}));class pR{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(t={}){const r=Jfe({},eR(),yme(t));this._resource=r.resource??QN(),this._config=Object.assign({},r,{resource:this._resource});const n=[];t.spanProcessors?.length&&n.push(...t.spanProcessors),this._activeSpanProcessor=new jme(n)}getTracer(t,r,n){const o=`${t}@${r||""}:${n?.schemaUrl||""}`;return this._tracers.has(o)||this._tracers.set(o,new Lme({name:t,version:r,schemaUrl:n?.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(o)}forceFlush(){const t=this._config.forceFlushTimeoutMillis,r=this._activeSpanProcessor._spanProcessors.map(n=>new Promise(o=>{let a;const i=setTimeout(()=>{o(new Error(`Span processor did not completed within timeout period of ${t} ms`)),a=Dl.timeout},t);n.forceFlush().then(()=>{clearTimeout(i),a!==Dl.timeout&&(a=Dl.resolved,o(a))}).catch(s=>{clearTimeout(i),a=Dl.error,o(s)})}));return new Promise((n,o)=>{Promise.all(r).then(a=>{const i=a.filter(s=>s!==Dl.resolved);i.length>0?o(i):n()}).catch(a=>o([a]))})}shutdown(){return this._activeSpanProcessor.shutdown()}[Kx](t,r,n){const o=this._activeSpanProcessor._spanProcessors,a={resource:{attributes:Qx(this._resource)},tracers:Array.from(this._tracers.keys()),spanProcessors:o.map(i=>i.constructor?.name??"SpanProcessor")};return Zx("BasicTracerProvider",a,t,r,n)}}class Nme{export(t,r){return this._sendSpans(t,r)}shutdown(){return this._sendSpans([]),this.forceFlush()}forceFlush(){return Promise.resolve()}_exportInfo(t){return{resource:{attributes:t.resource.attributes},instrumentationScope:t.instrumentationScope,traceId:t.spanContext().traceId,parentSpanContext:t.parentSpanContext,traceState:t.spanContext().traceState?.serialize(),name:t.name,id:t.spanContext().spanId,kind:t.kind,timestamp:RN(t.startTime),duration:RN(t.duration),attributes:t.attributes,status:t.status,events:t.events,links:t.links}}_sendSpans(t,r){for(const n of t)console.dir(this._exportInfo(n),{depth:3});if(r)return r({code:Xn.SUCCESS})}}class Rme{_finishedSpans=[];_stopped=!1;export(t,r){if(this._stopped)return r({code:Xn.FAILED,error:new Error("Exporter has been stopped")});this._finishedSpans.push(...t),setTimeout(()=>r({code:Xn.SUCCESS}),0)}shutdown(){return this._stopped=!0,this._finishedSpans=[],this.forceFlush()}forceFlush(){return Promise.resolve()}reset(){this._finishedSpans=[]}getFinishedSpans(){return this._finishedSpans}}class Pme{_exporter;_shutdownOnce;_pendingExports;constructor(t){this._exporter=t,this._shutdownOnce=new JN(this._shutdown,this),this._pendingExports=new Set}async forceFlush(){await Promise.all(Array.from(this._pendingExports)),this._exporter.forceFlush&&await this._exporter.forceFlush()}onStart(t,r){}onEnd(t){if(this._shutdownOnce.isCalled||(t.spanContext().traceFlags&da.SAMPLED)===0)return;const r=this._doExport(t).catch(n=>Pl(n));this._pendingExports.add(r),r.finally(()=>this._pendingExports.delete(r))}async _doExport(t){t.resource.asyncAttributesPending&&await t.resource.waitForAsyncAttributes?.();const r=await eme._export(this._exporter,[t]);if(r.code!==Xn.SUCCESS)throw r.error??new Error(`SimpleSpanProcessor: span export failed (status ${r})`)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return this._exporter.shutdown()}}class Ime{onStart(t,r){}onEnd(t){}shutdown(){return Promise.resolve()}forceFlush(){return Promise.resolve()}}class uR{_enabled=!1;_currentContext=Nl;_bindFunction(t=Nl,r){const n=this,o=function(...a){return n.with(t,()=>r.apply(this,a))};return Object.defineProperty(o,"length",{enumerable:!1,configurable:!0,writable:!1,value:r.length}),o}active(){return this._currentContext}bind(t,r){return t===void 0&&(t=this.active()),typeof r=="function"?this._bindFunction(t,r):r}disable(){return this._currentContext=Nl,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=Nl,this)}with(t,r,n,...o){const a=this._currentContext;this._currentContext=t||Nl;try{return r.call(n,...o)}finally{this._currentContext=a}}}function $me(e){if(e!==null){if(e===void 0){const t=new uR;t.enable(),qo.setGlobalContextManager(t);return}e.enable(),qo.setGlobalContextManager(e)}}function Mme(e){if(e!==null){if(e===void 0){Rl.setGlobalPropagator(new Cfe({propagators:[new Mfe,new une]}));return}Rl.setGlobalPropagator(e)}}class dR extends pR{constructor(t={}){super(t)}register(t={}){Nn.setGlobalTracerProvider(this),Mme(t.propagator),$me(t.contextManager)}}var wr;(function(e){e.CONNECT_END="connectEnd",e.CONNECT_START="connectStart",e.DECODED_BODY_SIZE="decodedBodySize",e.DOM_COMPLETE="domComplete",e.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",e.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",e.DOM_INTERACTIVE="domInteractive",e.DOMAIN_LOOKUP_END="domainLookupEnd",e.DOMAIN_LOOKUP_START="domainLookupStart",e.ENCODED_BODY_SIZE="encodedBodySize",e.FETCH_START="fetchStart",e.LOAD_EVENT_END="loadEventEnd",e.LOAD_EVENT_START="loadEventStart",e.NAVIGATION_START="navigationStart",e.REDIRECT_END="redirectEnd",e.REDIRECT_START="redirectStart",e.REQUEST_START="requestStart",e.RESPONSE_END="responseEnd",e.RESPONSE_START="responseStart",e.SECURE_CONNECTION_START="secureConnectionStart",e.START_TIME="startTime",e.UNLOAD_EVENT_END="unloadEventEnd",e.UNLOAD_EVENT_START="unloadEventStart"})(wr||(wr={}));const Dme="http.response_content_length",zme="http.response_content_length_uncompressed";let e2;function Bme(){return e2||(e2=document.createElement("a")),e2}function hR(e,t){return t in e}function Ba(e,t,r,n=!0){if(hR(r,t)&&typeof r[t]=="number"&&!(n&&r[t]===0))return e.addEvent(t,r[t])}function Ume(e,t,r=!1,n,o){if(n===void 0&&(n=t[wr.START_TIME]!==0),r||(Ba(e,wr.FETCH_START,t,n),Ba(e,wr.DOMAIN_LOOKUP_START,t,n),Ba(e,wr.DOMAIN_LOOKUP_END,t,n),Ba(e,wr.CONNECT_START,t,n),Ba(e,wr.SECURE_CONNECTION_START,t,n),Ba(e,wr.CONNECT_END,t,n),Ba(e,wr.REQUEST_START,t,n),Ba(e,wr.RESPONSE_START,t,n),Ba(e,wr.RESPONSE_END,t,n)),!o){const a=t[wr.ENCODED_BODY_SIZE];a!==void 0&&e.setAttribute(Dme,a);const i=t[wr.DECODED_BODY_SIZE];i!==void 0&&a!==i&&e.setAttribute(zme,i)}}function fR(e){return e.slice().sort((t,r)=>{const n=t[wr.FETCH_START],o=r[wr.FETCH_START];return n>o?1:n<o?-1:0})}function mR(){return typeof location<"u"?location.origin:void 0}function Fme(e,t,r,n,o=new WeakSet,a){const i=kg(e);e=i.toString();const s=Hme(e,t,r,n,o,a);if(s.length===0)return{mainRequest:void 0};if(s.length===1)return{mainRequest:s[0]};const c=fR(s);if(i.origin!==mR()&&c.length>1){let u=c[0],d=qme(c,u[wr.RESPONSE_END],r);const f=u[wr.RESPONSE_END];return d[wr.FETCH_START]<f&&(d=u,u=void 0),{corsPreFlightRequest:u,mainRequest:d}}else return{mainRequest:s[0]}}function qme(e,t,r){const n=Li(r),o=Li(qd(t));let a=e[1],i;const s=e.length;for(let c=1;c<s;c++){const u=e[c],d=Li(qd(u[wr.FETCH_START])),f=Li(qd(u[wr.RESPONSE_END])),g=n-f;d>=o&&(!i||g<i)&&(i=g,a=u)}return a}function Hme(e,t,r,n,o,a){const i=Li(t),s=Li(r);let c=n.filter(u=>{const d=Li(qd(u[wr.FETCH_START])),f=Li(qd(u[wr.RESPONSE_END]));return u.initiatorType.toLowerCase()===(a||"xmlhttprequest")&&u.name===e&&d>=i&&f<=s});return c.length>0&&(c=c.filter(u=>!o.has(u))),c}function kg(e){if(typeof URL=="function")return new URL(e,typeof document<"u"?document.baseURI:typeof location<"u"?location.href:void 0);const t=Bme();return t.href=e,t}function Vme(e){return kg(e).href}function gR(e,t){if(e.nodeType===Node.DOCUMENT_NODE)return"/";const r=Yme(e,t);if(t&&r.indexOf("@id")>0)return r;let n="";return e.parentNode&&(n+=gR(e.parentNode,t)),n+=r,n}function Wme(e){if(!e.parentNode)return 0;const t=[e.nodeType];e.nodeType===Node.CDATA_SECTION_NODE&&t.push(Node.TEXT_NODE);let r=Array.from(e.parentNode.childNodes);return r=r.filter(n=>{const o=n.localName;return t.indexOf(n.nodeType)>=0&&o===e.localName}),r.length>=1?r.indexOf(e)+1:0}function Yme(e,t){const r=e.nodeType,n=Wme(e);let o;if(r===Node.ELEMENT_NODE){const a=e.getAttribute("id");if(t&&a)return`//*[@id="${a}"]`;o=e.localName}else if(r===Node.TEXT_NODE||r===Node.CDATA_SECTION_NODE)o="text()";else if(r===Node.COMMENT_NODE)o="comment()";else return"";return o&&n>1?`/${o}[${n}]`:`/${o}`}function Gme(e,t){let r=t||[];return(typeof r=="string"||r instanceof RegExp)&&(r=[r]),kg(e).origin===mR()?!0:r.some(n=>Qfe(e,n))}const Jme=Object.freeze(Object.defineProperty({__proto__:null,AlwaysOffSampler:Wd,AlwaysOnSampler:Ml,BasicTracerProvider:pR,BatchSpanProcessor:nR,ConsoleSpanExporter:Nme,InMemorySpanExporter:Rme,NoopSpanProcessor:Ime,ParentBasedSampler:Yd,get PerformanceTimingNames(){return wr},RandomIdGenerator:lR,get SamplingDecision(){return ha},SimpleSpanProcessor:Pme,StackContextManager:uR,TraceIdRatioBasedSampler:Xx,WebTracerProvider:dR,addSpanNetworkEvent:Ba,addSpanNetworkEvents:Ume,getElementXPath:gR,getResource:Fme,hasKey:hR,normalizeUrl:Vme,parseUrl:kg,shouldPropagateTraceHeaders:Gme,sortResources:fR},Symbol.toStringTag,{value:"Module"})),Kme=ia(Jme),Qme=ia(dme);class Zme{_delegate;constructor(t){this._delegate=t}export(t,r){this._delegate.export(t,r)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}class bR extends Error{code;name="OTLPExporterError";data;constructor(t,r,n){super(t),this.data=n,this.code=r}}function Xme(e){if(Number.isFinite(e)&&e>0)return e;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${e}')`)}function ege(e){if(e!=null)return async()=>e}function tge(e,t,r){return{timeoutMillis:Xme(e.timeoutMillis??t.timeoutMillis??r.timeoutMillis),concurrencyLimit:e.concurrencyLimit??t.concurrencyLimit??r.concurrencyLimit,compression:e.compression??t.compression??r.compression}}function rge(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class nge{_concurrencyLimit;_sendingPromises=[];constructor(t){this._concurrencyLimit=t}pushPromise(t){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(t);const r=()=>{const n=this._sendingPromises.indexOf(t);this._sendingPromises.splice(n,1)};t.then(r,r)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}function oge(e){return new nge(e.concurrencyLimit)}function age(e){return Object.prototype.hasOwnProperty.call(e,"partialSuccess")}function ige(){return{handleResponse(e){e==null||!age(e)||e.partialSuccess==null||Object.keys(e.partialSuccess).length===0||ht.warn("Received Partial Success response:",JSON.stringify(e.partialSuccess))}}}class sge{_diagLogger;_transport;_serializer;_responseHandler;_promiseQueue;_timeout;constructor(t,r,n,o,a){this._transport=t,this._serializer=r,this._responseHandler=n,this._promiseQueue=o,this._timeout=a,this._diagLogger=ht.createComponentLogger({namespace:"OTLPExportDelegate"})}export(t,r){if(this._diagLogger.debug("items to be sent",t),this._promiseQueue.hasReachedLimit()){r({code:Xn.FAILED,error:new Error("Concurrent export limit reached")});return}const n=this._serializer.serializeRequest(t);if(n==null){r({code:Xn.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(n,this._timeout).then(o=>{if(o.status==="success"){if(o.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(o.data))}catch(a){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",a,o.data)}r({code:Xn.SUCCESS});return}else if(o.status==="failure"&&o.error){r({code:Xn.FAILED,error:o.error});return}else o.status==="retryable"?r({code:Xn.FAILED,error:o.error??new bR("Export failed with retryable status")}):r({code:Xn.FAILED,error:new bR("Export failed with unknown error")})},o=>r({code:Xn.FAILED,error:o})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function lge(e,t){return new sge(e.transport,e.serializer,ige(),e.promiseHandler,t.timeout)}function cge(e,t,r){return lge({transport:r,serializer:t,promiseHandler:oge(e)},{timeout:e.timeoutMillis})}class yR{emit(t){}enabled(){return!1}}const pge=new yR,Eg=Symbol.for("io.opentelemetry.js.api.logs"),Gd=globalThis;function uge(e,t,r){return n=>n===e?t:r}const vR=1;class dge{getLogger(t,r,n){return new yR}}const xR=new dge;class hge{constructor(t,r,n,o){this._provider=t,this.name=r,this.version=n,this.options=o}emit(t){this._getLogger().emit(t)}enabled(t){return this._getLogger().enabled(t)}_getLogger(){if(this._delegate)return this._delegate;const t=this._provider._getDelegateLogger(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):pge}}class wR{getLogger(t,r,n){var o;return(o=this._getDelegateLogger(t,r,n))!==null&&o!==void 0?o:new hge(this,t,r,n)}_getDelegate(){var t;return(t=this._delegate)!==null&&t!==void 0?t:xR}_setDelegate(t){this._delegate=t}_getDelegateLogger(t,r,n){var o;return(o=this._delegate)===null||o===void 0?void 0:o.getLogger(t,r,n)}}class zk{constructor(){this._proxyLoggerProvider=new wR}static getInstance(){return this._instance||(this._instance=new zk),this._instance}setGlobalLoggerProvider(t){return Gd[Eg]?this.getLoggerProvider():(Gd[Eg]=uge(vR,t,xR),this._proxyLoggerProvider._setDelegate(t),t)}getLoggerProvider(){var t,r;return(r=(t=Gd[Eg])===null||t===void 0?void 0:t.call(Gd,vR))!==null&&r!==void 0?r:this._proxyLoggerProvider}getLogger(t,r,n){return this.getLoggerProvider().getLogger(t,r,n)}disable(){delete Gd[Eg],this._proxyLoggerProvider=new wR}}const SR=zk.getInstance();function fge(e,t){const r={attributes:Jd(e.attributes,t),droppedAttributesCount:0},n=e.schemaUrl;return n&&n!==""&&(r.schemaUrl=n),r}function mge(e,t){const r={name:e.name,version:e.version};return e.attributes&&Object.keys(e.attributes).length>0&&(r.attributes=Jd(e.attributes,t),r.droppedAttributesCount=e.droppedAttributesCount??0),r}function Jd(e,t){return Object.keys(e).map(r=>gge(r,e[r],t))}function gge(e,t,r){return{key:e,value:t2(t,r)}}function t2(e,t){const r=typeof e;if(r==="string")return{stringValue:e};if(r==="number")return Number.isInteger(e)?{intValue:e}:{doubleValue:e};if(r==="boolean")return{boolValue:e};if(e instanceof Uint8Array)return{bytesValue:t.encodeUint8Array(e)};if(Array.isArray(e)){const n=new Array(e.length);for(let o=0;o<e.length;o++)n[o]=t2(e[o],t);return{arrayValue:{values:n}}}if(r==="object"&&e!=null){const n=Object.keys(e),o=new Array(n.length);for(let a=0;a<n.length;a++)o[a]={key:n[a],value:t2(e[n[a]],t)};return{kvlistValue:{values:o}}}return{}}function bge(e){const t=BigInt(1e9);return BigInt(Math.trunc(e[0]))*t+BigInt(Math.trunc(e[1]))}function yge(e){return bge(e).toString()}const vge=typeof BigInt<"u"?yge:Li;function CR(e){return e}const xge={encodeHrTime:vge,encodeSpanContext:CR,encodeOptionalSpanContext:CR,encodeUint8Array:e=>{if(typeof Buffer<"u")return Buffer.from(e).toString("base64");const t=new Array(e.length);for(let r=0;r<e.length;r++)t[r]=String.fromCharCode(e[r]);return btoa(t.join(""))}},wge=256,Sge=512;function kR(e,t){let r=e&255|wge;return t&&(r|=Sge),r}function Cge(e,t){const r=e.spanContext(),n=e.status,o=e.parentSpanContext?.spanId?t.encodeSpanContext(e.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(r.traceId),spanId:t.encodeSpanContext(r.spanId),parentSpanId:o,traceState:r.traceState?.serialize(),name:e.name,kind:e.kind==null?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:Jd(e.attributes,t),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(a=>Ege(a,t)),droppedEventsCount:e.droppedEventsCount,status:{code:n.code,message:n.message},links:e.links.map(a=>kge(a,t)),droppedLinksCount:e.droppedLinksCount,flags:kR(r.traceFlags,e.parentSpanContext?.isRemote)}}function kge(e,t){return{attributes:e.attributes?Jd(e.attributes,t):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:e.context.traceState?.serialize(),droppedAttributesCount:e.droppedAttributesCount||0,flags:kR(e.context.traceFlags,e.context.isRemote)}}function Ege(e,t){return{attributes:e.attributes?Jd(e.attributes,t):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}function Age(e,t){return{resourceSpans:_ge(e,t)}}function Tge(e){const t=new Map;for(const r of e){let n=t.get(r.resource);n||(n=new Map,t.set(r.resource,n));const o=`${r.instrumentationScope.name}@${r.instrumentationScope.version||""}:${r.instrumentationScope.schemaUrl||""}`;let a=n.get(o);a||(a=[],n.set(o,a)),a.push(r)}return t}function _ge(e,t){const r=Tge(e),n=[],o=r.entries();let a=o.next();for(;!a.done;){const[i,s]=a.value,c=[],u=s.values();let d=u.next();for(;!d.done;){const y=d.value;if(y.length>0){const v=y.map(x=>Cge(x,t));c.push({scope:mge(y[0].instrumentationScope,t),spans:v,schemaUrl:y[0].instrumentationScope.schemaUrl})}d=u.next()}const f=fge(i,t),g={resource:f,scopeSpans:c,schemaUrl:f.schemaUrl};n.push(g),a=o.next()}return n}const Oge={serializeRequest:e=>{const t=Age(e,xge);return new TextEncoder().encode(JSON.stringify(t))},deserializeResponse:e=>{if(e.length===0)return{};const t=new TextDecoder;try{return JSON.parse(t.decode(e))}catch(r){return ht.warn(`Failed to parse trace export response: ${r.message}. Returning empty response`),{}}}},r2=5,Lge=1e3,jge=5e3,Nge=1.5,ER=.2;function Rge(){return Math.random()*(2*ER)-ER}class Pge{_transport;constructor(t){this._transport=t}retry(t,r,n){return new Promise((o,a)=>{setTimeout(()=>{this._transport.send(t,r).then(o,a)},n)})}async send(t,r){let n=r2,o=Lge;const a=Date.now()+r;let i=await this._transport.send(t,r);for(;i.status==="retryable"&&n>0;){n--;const s=Math.max(Math.min(o*(1+Rge()),jge),0);o=o*Nge;const c=i.retryInMillis??s,u=a-Date.now();if(c>u)return ht.info(`Export retry time ${Math.round(c)}ms exceeds remaining timeout ${Math.round(u)}ms, not retrying further.`),i;ht.verbose(`Scheduling export retry in ${Math.round(c)}ms`),i=await this.retry(t,u,c)}return i.status==="success"?ht.verbose(`Export succeeded after ${r2-n} retry attempts.`):i.status==="retryable"?ht.info(`Export failed after maximum retry attempts (${r2}).`):ht.info(`Export failed with non-retryable error: ${i.error}`),i}shutdown(){return this._transport.shutdown()}}function Ige(e){return new Pge(e.transport)}function $ge(e){return e===429||e===502||e===503||e===504}function Mge(e){if(e==null)return;const t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?t*1e3:-1;const r=new Date(e).getTime()-Date.now();return r>=0?r:0}const Dge=60*1024,zge=9;let n2=0,Ag=0;class Bge{_parameters;constructor(t){this._parameters=t}async send(t,r){const n=new AbortController,o=setTimeout(()=>n.abort(),r);let a=globalThis.fetch;typeof a.__original=="function"&&(a=a.__original);const i=t.byteLength,s=n2+i>Dge,c=Ag>=zge,u=!s&&!c;if(u)n2+=i,Ag++;else{const d=s?"size limit":"count limit";ht.debug(`keepalive disabled: ${(i/1024).toFixed(1)}KB payload, ${Ag} pending (${d})`)}try{const d=new URL(this._parameters.url),f=await a(d.href,{method:"POST",headers:await this._parameters.headers(),body:t,signal:n.signal,keepalive:u,mode:globalThis.location?globalThis.location.origin===d.origin?"same-origin":"cors":"no-cors"});if(f.status>=200&&f.status<=299)return ht.debug(`export response success (status: ${f.status})`),{status:"success"};if($ge(f.status)){ht.warn(`export response retryable (status: ${f.status})`);const g=f.headers.get("Retry-After");return{status:"retryable",retryInMillis:Mge(g)}}return ht.error(`export response failure (status: ${f.status})`),{status:"failure",error:new Error(`Fetch request failed with non-retryable status ${f.status}`)}}catch(d){return Fge(d)?(ht.warn(`export request retryable (network error: ${d})`),{status:"retryable",error:new Error("Fetch request encountered a network error",{cause:d})}):(ht.error(`export request failure (error: ${d})`),{status:"failure",error:new Error("Fetch request errored",{cause:d})})}finally{clearTimeout(o),u&&(n2-=i,Ag--)}}shutdown(){}}function Uge(e){return new Bge(e)}function Fge(e){return e instanceof TypeError&&!e.cause}function qge(e,t){return cge(e,t,Ige({transport:Uge(e)}))}function Hge(e){const t={};return Object.entries(e??{}).forEach(([r,n])=>{typeof n<"u"?t[r]=String(n):ht.warn(`Header "${r}" has invalid value (${n}) and will be ignored`)}),t}function Vge(e,t,r){return async()=>{const n={...await r()},o={};return t!=null&&Object.assign(o,await t()),e!=null&&Object.assign(o,Hge(await e())),Object.assign(o,n)}}function Wge(e){if(e!=null)try{const t=globalThis.location?.href;return new URL(e,t).href}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${e}'`)}}function Yge(e,t,r){return{...tge(e,t,r),headers:Vge(e.headers,t.headers,r.headers),url:Wge(e.url)??t.url??r.url}}function Gge(e,t){return{...rge(),headers:async()=>e,url:"http://localhost:4318/"+t}}function Jge(e){return typeof e.headers=="function"?e.headers:ege(e.headers)}function Kge(e,t,r){return Yge({url:e.url,timeoutMillis:e.timeoutMillis,headers:Jge(e),concurrencyLimit:e.concurrencyLimit},{},Gge(r,t))}function Qge(e,t,r,n){const o=Kge(e,r,n);return qge(o,t)}class AR extends Zme{constructor(t={}){super(Qge(t,Oge,"v1/traces",{"Content-Type":"application/json"}))}}const Zge=Object.freeze(Object.defineProperty({__proto__:null,OTLPTraceExporter:AR},Symbol.toStringTag,{value:"Module"})),Xge=ia(Zge),e1e=ia(bfe);function t1e(e,t,r,n){for(let o=0,a=e.length;o<a;o++){const i=e[o];t&&i.setTracerProvider(t),r&&i.setMeterProvider(r),n&&i.setLoggerProvider&&i.setLoggerProvider(n),i.getConfig().enabled||i.enable()}}function r1e(e){e.forEach(t=>t.disable())}function TR(e){const t=e.tracerProvider||Nn.getTracerProvider(),r=e.meterProvider||dg.getMeterProvider(),n=e.loggerProvider||SR.getLoggerProvider(),o=e.instrumentations?.flat()??[];return t1e(o,t,r,n),()=>{r1e(o)}}let ko=console.error.bind(console);function Kd(e,t,r){const n=!!e[t]&&Object.prototype.propertyIsEnumerable.call(e,t);Object.defineProperty(e,t,{configurable:!0,enumerable:n,writable:!0,value:r})}const _R=(e,t,r)=>{if(!e||!e[t]){ko("no original function "+String(t)+" to wrap");return}if(!r){ko("no wrapper function"),ko(new Error().stack);return}const n=e[t];if(typeof n!="function"||typeof r!="function"){ko("original object and wrapper must be functions");return}const o=r(n,t);return Kd(o,"__original",n),Kd(o,"__unwrap",()=>{e[t]===o&&Kd(e,t,n)}),Kd(o,"__wrapped",!0),Kd(e,t,o),o},n1e=(e,t,r)=>{if(e)Array.isArray(e)||(e=[e]);else{ko("must provide one or more modules to patch"),ko(new Error().stack);return}if(!(t&&Array.isArray(t))){ko("must provide one or more functions to wrap on modules");return}e.forEach(n=>{t.forEach(o=>{_R(n,o,r)})})},OR=(e,t)=>{if(!e||!e[t]){ko("no function to unwrap."),ko(new Error().stack);return}const r=e[t];if(!r.__unwrap)ko("no original to unwrap to -- has "+String(t)+" already been unwrapped?");else{r.__unwrap();return}},o1e=(e,t)=>{if(e)Array.isArray(e)||(e=[e]);else{ko("must provide one or more modules to patch"),ko(new Error().stack);return}if(!(t&&Array.isArray(t))){ko("must provide one or more functions to unwrap on modules");return}e.forEach(r=>{t.forEach(n=>{OR(r,n)})})};class a1e{_config={};_tracer;_meter;_logger;_diag;instrumentationName;instrumentationVersion;constructor(t,r,n){this.instrumentationName=t,this.instrumentationVersion=r,this.setConfig(n),this._diag=ht.createComponentLogger({namespace:t}),this._tracer=Nn.getTracer(t,r),this._meter=dg.getMeter(t,r),this._logger=SR.getLogger(t,r),this._updateMetricInstruments()}_wrap=_R;_unwrap=OR;_massWrap=n1e;_massUnwrap=o1e;get meter(){return this._meter}setMeterProvider(t){this._meter=t.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(t){this._logger=t.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){const t=this.init()??[];return Array.isArray(t)?t:[t]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(t){this._config={enabled:!0,...t}}setTracerProvider(t){this._tracer=t.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(t,r,n,o){if(t)try{t(n,o)}catch(a){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:r},a)}}}class LR extends a1e{constructor(t,r,n){super(t,r,n),this._config.enabled&&this.enable()}}function i1e(e){return ht.warn("Path normalization is not implemented for this platform. To silence this warning, ensure no node-specific instrumentations are loaded, and node-specific types (e.g. InstrumentationNodeModuleFile), are not used in a browser context)"),e}class s1e{files;name;supportedVersions;patch;unpatch;constructor(t,r,n,o,a){this.files=a||[],this.name=t,this.supportedVersions=r,this.patch=n,this.unpatch=o}}class l1e{name;supportedVersions;patch;unpatch;constructor(t,r,n,o){this.name=i1e(t),this.supportedVersions=r,this.patch=n,this.unpatch=o}}function c1e(e,t,r){let n,o;try{o=e()}catch(a){n=a}finally{if(t(n,o),n&&!r)throw n;return o}}async function p1e(e,t,r){let n,o;try{o=await e()}catch(a){n=a}finally{if(await t(n,o),n&&!r)throw n;return o}}function u1e(e){return typeof e=="function"&&typeof e.__original=="function"&&typeof e.__unwrap=="function"&&e.__wrapped===!0}var pp;(function(e){e[e.STABLE=1]="STABLE",e[e.OLD=2]="OLD",e[e.DUPLICATE=3]="DUPLICATE"})(pp||(pp={}));function d1e(e,t){let r=pp.OLD;const n=t?.split(",").map(o=>o.trim()).filter(o=>o!=="");for(const o of n??[])if(o.toLowerCase()===e+"/dup"){r=pp.DUPLICATE;break}else o.toLowerCase()===e&&(r=pp.STABLE);return r}const h1e=Object.freeze(Object.defineProperty({__proto__:null,InstrumentationBase:LR,InstrumentationNodeModuleDefinition:s1e,InstrumentationNodeModuleFile:l1e,get SemconvStability(){return pp},isWrapped:u1e,registerInstrumentations:TR,safeExecuteInTheMiddle:c1e,safeExecuteInTheMiddleAsync:p1e,semconvStabilityFromStr:d1e},Symbol.toStringTag,{value:"Module"})),f1e=ia(h1e);function ji(e){const t=new Error(e);return t.source="ulid",t}const zl="0123456789ABCDEFGHJKMNPQRSTVWXYZ",Bl=zl.length,o2=Math.pow(2,48)-1,Qd=10,a2=16;function i2(e,t,r){return t>e.length-1?e:e.substr(0,t)+r+e.substr(t+1)}function jR(e){let t,r=e.length,n,o;const a=Bl-1;for(;!t&&r-->=0;){if(n=e[r],o=zl.indexOf(n),o===-1)throw ji("incorrectly encoded string");if(o===a){e=i2(e,r,zl[0]);continue}t=i2(e,r,zl[o+1])}if(typeof t=="string")return t;throw ji("cannot increment this string")}function NR(e){let t=Math.floor(e()*Bl);return t===Bl&&(t=Bl-1),zl.charAt(t)}function Tg(e,t){if(isNaN(e))throw new Error(e+" must be a number");if(e>o2)throw ji("cannot encode time greater than "+o2);if(e<0)throw ji("time must be positive");if(Number.isInteger(Number(e))===!1)throw ji("time must be an integer");let r,n="";for(;t>0;t--)r=e%Bl,n=zl.charAt(r)+n,e=(e-r)/Bl;return n}function s2(e,t){let r="";for(;e>0;e--)r=NR(t)+r;return r}function m1e(e){if(e.length!==Qd+a2)throw ji("malformed ulid");var t=e.substr(0,Qd).split("").reverse().reduce((r,n,o)=>{const a=zl.indexOf(n);if(a===-1)throw ji("invalid character found: "+n);return r+=a*Math.pow(Bl,o)},0);if(t>o2)throw ji("malformed ulid, timestamp too large");return t}function l2(e=!1,t){t||(t=typeof window<"u"?window:null);const r=t&&(t.crypto||t.msCrypto);if(r)return()=>{const n=new Uint8Array(1);return r.getRandomValues(n),n[0]/255};try{const n=require("crypto");return()=>n.randomBytes(1).readUInt8()/255}catch{}if(e){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch{}return()=>Math.random()}throw ji("secure crypto unusable, insecure Math.random not allowed")}function RR(e){return e||(e=l2()),function(t){return isNaN(t)&&(t=Date.now()),Tg(t,Qd)+s2(a2,e)}}function g1e(e){e||(e=l2());let t=0,r;return function(n){if(isNaN(n)&&(n=Date.now()),n<=t){const a=r=jR(r);return Tg(t,Qd)+a}t=n;const o=r=s2(a2,e);return Tg(n,Qd)+o}}const PR=RR(),b1e=Object.freeze(Object.defineProperty({__proto__:null,decodeTime:m1e,detectPrng:l2,encodeRandom:s2,encodeTime:Tg,factory:RR,incrementBase32:jR,monotonicFactory:g1e,randomChar:NR,replaceCharAt:i2,ulid:PR},Symbol.toStringTag,{value:"Module"})),IR=ia(b1e);var up={};const $R=ia(ine);var Zd={},MR;function y1e(){if(MR)return Zd;MR=1,Object.defineProperty(Zd,"__esModule",{value:!0}),Zd.TraceStep=void 0;const e=$R;class t{constructor(n){Object.defineProperty(this,"span",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.span=n}get context(){var n;return(n=this.span)===null||n===void 0?void 0:n.context}error(n){this.span&&(this.span.setStatus(e.SpanStatusCode.ERROR,n.message),this.span.recordException(n),this.span.end())}setAttribute(n,o){this.span&&this.span.setAttribute(n,o)}setStatus(n,o){this.span&&this.span.setStatus(n,o)}end(){this.span&&(this.span.setStatus(e.SpanStatusCode.OK),this.span.end())}}return Zd.TraceStep=t,Zd}var dp={},DR;function zR(){if(DR)return dp;DR=1,Object.defineProperty(dp,"__esModule",{value:!0}),dp.CLOUD_EVENT_STANDARD_KEYS=void 0,dp.mapToCloudEvent=t;const e=IR;dp.CLOUD_EVENT_STANDARD_KEYS=["id","specversion","object","datacontenttype","type","time","origin","env","category","signal","source","subject","subjects","data","actor","requestId","clientIp","organizationId","organizationSlug","projectId","projectSlug","osPlatform","userAgent","sessionId"];function t(r){var n,o,a,i,s,c,u,d;const{type:f,data:g,actor:y,requestId:v,clientIp:x,origin:S,env:w,source:C,organizationId:A,organizationSlug:T,projectId:L,projectSlug:j,category:P="product",signal:_="log",osPlatform:I,userAgent:z,sessionId:q}=r,B=!!(g&&Array.isArray(g)),G=y?{id:(a=y.id)!==null&&a!==void 0?a:`ann_${(0,e.ulid)()}`,object:(i=y.object)!==null&&i!==void 0?i:"user",uri:(s=y.uri)!==null&&s!==void 0?s:""}:null,te=`evt_${(0,e.ulid)()}`.toLowerCase(),le=new Date,Y=(c=C??G?.uri)!==null&&c!==void 0?c:null,ie=Object.assign(Object.assign(Object.assign(Object.assign({},A!==void 0&&{organizationId:A}),T!==void 0&&{organizationSlug:T}),L!==void 0&&{projectId:L}),j!==void 0&&{projectSlug:j}),re={specversion:"1.0",object:"event",datacontenttype:"application/json; charset=utf-8",origin:S,env:w,category:P,signal:_,osPlatform:I,userAgent:z,clientIp:x,sessionId:q};if(B){const de=g,X=de.map(ae=>{var K,V,se;return{id:(K=ae.id)!==null&&K!==void 0?K:"",object:(V=ae.object)!==null&&V!==void 0?V:"",uri:(se=ae.uri)!==null&&se!==void 0?se:""}}),H=(u=(n=de[0])===null||n===void 0?void 0:n.id)!==null&&u!==void 0?u:null;Object.assign(re,Object.assign(Object.assign({},ie),{id:te,type:f,time:le,source:Y,actor:G,subject:H,subjects:X,data:de,requestId:v??""}))}else{const de=(d=(o=Array.isArray(g)?g[0]:g)===null||o===void 0?void 0:o.id)!==null&&d!==void 0?d:null;Object.assign(re,Object.assign(Object.assign(Object.assign({},ie),{id:te,type:f,time:le,source:Y,actor:G,subject:de,requestId:v??"",data:g}),C!=null&&{request:{source:C}}))}return re}return dp}var Ni={},BR;function v1e(){if(BR)return Ni;BR=1,Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.toSnakeCase=t,Ni.isNonNullish=r,Ni.isOtelAttributeValue=n,Ni.flattenToAttributes=o,Ni.flattenNestedObject=a,Ni.flattenWithMaxDepth=i;const e=3;function t(s){return s.replace(/([A-Z])/g,"_$1").toLowerCase()}function r(s){return s!=null}function n(s){return typeof s=="string"||typeof s=="number"||typeof s=="boolean"}function o(s,c,u,d=!0,f){const g=f?.length?new Set(f):null;for(const[y,v]of Object.entries(s))if(!g?.has(y)&&v!==void 0){const x=d?t(y):y;u[`${c}${x}`]=v}}function a(s,c,u){for(const[d,f]of Object.entries(s))f==null||typeof f=="object"||(u[`${c}.${t(d)}`]=f)}function i(s,c,u,d){var f,g,y;const v=(f=d?.currentDepth)!==null&&f!==void 0?f:0,x=(g=d?.useSnakeCase)!==null&&g!==void 0?g:!0,S=(y=d?.maxNestingLevels)!==null&&y!==void 0?y:e,w=c.endsWith(".")?c.slice(0,-1):c;for(const[C,A]of Object.entries(s)){if(!r(A))continue;const T=x?t(C):C,L=`${w}.${T}`;typeof A=="object"&&!Array.isArray(A)?v<S&&i(A,L,u,{currentDepth:v+1,useSnakeCase:x,maxNestingLevels:S}):n(A)&&(u[L]=A)}}return Ni}var UR;function x1e(){return UR||(UR=1,(function(e){var t=up&&up.__awaiter||function(_,I,z,q){function B(G){return G instanceof z?G:new z(function(te){te(G)})}return new(z||(z=Promise))(function(G,te){function le(re){try{ie(q.next(re))}catch(de){te(de)}}function Y(re){try{ie(q.throw(re))}catch(de){te(de)}}function ie(re){re.done?G(re.value):B(re.value).then(le,Y)}ie((q=q.apply(_,I||[])).next())})},r=up&&up.__rest||function(_,I){var z={};for(var q in _)Object.prototype.hasOwnProperty.call(_,q)&&I.indexOf(q)<0&&(z[q]=_[q]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B=0,q=Object.getOwnPropertySymbols(_);B<q.length;B++)I.indexOf(q[B])<0&&Object.prototype.propertyIsEnumerable.call(_,q[B])&&(z[q[B]]=_[q[B]]);return z};Object.defineProperty(e,"__esModule",{value:!0}),e.BaseOtelClient=e.BUS_STYLE_SNAPSHOT_CONTEXT_KEY=void 0,e.groupByObjectProperty=c,e.processCloudEventAttributes=v,e.processObjectData=A,e.processAttributes=j;const n=$R,o=y1e(),a=zR(),i=v1e();e.BUS_STYLE_SNAPSHOT_CONTEXT_KEY="context";const s=[e.BUS_STYLE_SNAPSHOT_CONTEXT_KEY];function c(_){const I={updated:[],notUpdated:[]};for(const z of _){if(!z||typeof z!="object")continue;const q=z.object;if(typeof q!="string")continue;const B=z,G=I.notUpdated.find(te=>te.object===q);G?(I.updated=[G,B],I.notUpdated=I.notUpdated.filter(te=>te.object!==q)):I.updated.some(te=>te.object===q)||I.notUpdated.push(B)}return I}function u(_,I,z){const q=z?`${z}.`:"",B=I===""?"":`${(0,i.toSnakeCase)(I)}.`;return`${_}.${q}${B}`}function d(_,I){const z=_[e.BUS_STYLE_SNAPSHOT_CONTEXT_KEY];return z==="before"||z==="after"?z:I===0?"after":"before"}function f(_){const I=_,z=e.BUS_STYLE_SNAPSHOT_CONTEXT_KEY;return r(I,[typeof z=="symbol"?z:z+""])}function g(_){return _.endsWith(".")?_:`${_}.`}function y(_,I,z){var q,B,G,te,le,Y,ie,re,de,X;const H=I instanceof Date?I.toISOString():new Date(I).toISOString();return{"cloudevents.event_id":_.id,"cloudevents.event_type":_.type,"cloudevents.event_source":(te=_.source)!==null&&te!==void 0?te:void 0,"cloudevents.event_spec_version":_.specversion,"cloudevents.event_data_content_type":(le=_.datacontenttype)!==null&&le!==void 0?le:"application/json; charset=utf-8","cloudevents.event_time":H,"cloudevents.event_subject":(Y=_.subject)!==null&&Y!==void 0?Y:"","cloudevents.event_version":z?.version,"cloudevents.event_origin":(ie=_.origin)!==null&&ie!==void 0?ie:z?.serviceName,"cloudevents.event_env":_.env,"cloudevents.event_client_ip":_.clientIp,"cloudevents.event_object":_.object||"event","cloudevents.event_category":_.category,"cloudevents.event_signal":_.signal,"cloudevents.event_actor.id":(re=(q=_.actor)===null||q===void 0?void 0:q.id)!==null&&re!==void 0?re:void 0,"cloudevents.event_actor.object":(de=(B=_.actor)===null||B===void 0?void 0:B.object)!==null&&de!==void 0?de:void 0,"cloudevents.event_actor.uri":(X=(G=_.actor)===null||G===void 0?void 0:G.uri)!==null&&X!==void 0?X:void 0,"cloudevents.event_organization_id":_.organizationId,"cloudevents.event_organization_slug":_.organizationSlug,"cloudevents.event_project_id":_.projectId,"cloudevents.event_project_slug":_.projectSlug,"cloudevents.event_request_id":_.requestId,"cloudevents.event_os_platform":_.osPlatform,"cloudevents.event_user_agent":_.userAgent,"cloudevents.event_session_id":_.sessionId}}function v(_,I,z){const q=_.data,B=Object.assign({},y(_,I,z));return x(q,B),T(_,B),L(_,B),B}function x(_,I){!_||typeof _!="object"||(Array.isArray(_)?S(_,I):A(_,I))}function S(_,I){_.some(z=>z&&typeof z=="object"&&typeof z.object=="string")?w(_,I):C(_,I)}function w(_,I){const z=c(_);z.updated.forEach((q,B)=>{const G=u("cloudevents.event_data",q.object,d(q,B));(0,i.flattenWithMaxDepth)(f(q),g(G),I)}),z.notUpdated.forEach(q=>{const B=u("cloudevents.event_data",q.object,void 0);(0,i.flattenWithMaxDepth)(f(q),g(B),I)})}function C(_,I){for(const z of _)!z||typeof z!="object"||(0,i.flattenWithMaxDepth)(z,"cloudevents.event_data.",I)}function A(_,I){for(const[z,q]of Object.entries(_)){if(!(0,i.isNonNullish)(q))continue;const B=(0,i.toSnakeCase)(z);if(typeof q=="object"&&!Array.isArray(q))for(const[G,te]of Object.entries(q))(0,i.isNonNullish)(te)&&(0,i.isOtelAttributeValue)(te)&&(I[`cloudevents.event_data.${B}.${G}`]=te);else(0,i.isOtelAttributeValue)(q)&&(I[`cloudevents.event_data.${B}`]=q)}}function T(_,I){if(!_.subjects||!Array.isArray(_.subjects))return;const z=c(_.subjects);z.updated.forEach((q,B)=>{const G=u("cloudevents.event_subjects",q.object,d(q,B));(0,i.flattenToAttributes)(q,G,I,!1,s)}),z.notUpdated.forEach(q=>{const B=u("cloudevents.event_subjects",q.object,void 0);(0,i.flattenToAttributes)(q,B,I,!1,s)})}function L(_,I){for(const[z,q]of Object.entries(_))if(!(a.CLOUD_EVENT_STANDARD_KEYS.includes(z)||q===void 0))if(q instanceof Object)for(const[B,G]of Object.entries(q))G!==void 0&&(I[`cloudevents.${z}.${B}`]=G);else I[`cloudevents.${z}`]=q}function j(_,I,z){return v(_,I,z)}class P{constructor(){Object.defineProperty(this,"config",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"tracer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"tracerProvider",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"initialized",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"sessionId",{enumerable:!0,configurable:!0,writable:!0,value:null})}initTracer(I){throw new Error("initTracer must be implemented by the environment-specific client")}init(I){this.config=I,this.initTracer(I)}send(I){var z;try{if(!this.tracer||!this.config)return;const q=I,B="time"in q&&q.time?new Date(q.time):new Date;this.tracer.startSpan(`event.${q.type}`,{attributes:this.processAttributes(q,B),startTime:B}).end(B)}catch(q){!((z=this.config)===null||z===void 0)&&z.isProd||console.error("Event reporting failed:",q)}}processAttributes(I,z){return j(I,z,this.config)}startSpan(I,z){var q;try{if(!this.tracer)return;let B;const G=I.time?new Date(I.time):new Date,te=this.tracer.startSpan(`event.${I.type}`,{attributes:this.processAttributes(I,G),root:!z},z);return z||(B=n.trace.setSpan(n.context.active(),te)),{end:()=>te.end(),setAttribute:(le,Y)=>{te.setAttribute(`cloudevents.event_data.${(0,i.toSnakeCase)(le)}`,Y)},setStatus:(le,Y)=>te.setStatus({code:le,message:Y}),parentCtx:B}}catch(B){!((q=this.config)===null||q===void 0)&&q.isProd||console.error("Event reporting failed:",B);return}}startStepSpan(I,z){var q;try{if(!this.tracer)return;const B=z||n.context.active(),G=I,te=G.time?new Date(G.time):new Date,le=this.tracer.startSpan(`event.${G.type}`,{attributes:this.processAttributes(G,te)},B),Y=n.trace.setSpan(B,le);return{end:()=>le.end(),setAttribute:(ie,re)=>{le.setAttribute(`cloudevents.event_data.${(0,i.toSnakeCase)(ie)}`,re)},setStatus:(ie,re)=>le.setStatus({code:ie,message:re}),recordException:ie=>le.recordException(ie),context:Y}}catch(B){!((q=this.config)===null||q===void 0)&&q.isProd||console.error("Event reporting failed:",B);return}}traceStep(I){const z=this.startStepSpan(I);if(z)return new o.TraceStep(z)}forceFlush(){return t(this,void 0,void 0,function*(){var I;return(I=this.tracerProvider)===null||I===void 0?void 0:I.forceFlush()})}shutdown(){return t(this,void 0,void 0,function*(){var I;return(I=this.tracerProvider)===null||I===void 0?void 0:I.shutdown()})}}e.BaseOtelClient=P})(up)),up}var FR;function w1e(){if(FR)return Nd;FR=1,Object.defineProperty(Nd,"__esModule",{value:!0}),Nd.OtelClient=void 0;const e=Kme,t=Qme,r=Xge,n=e1e,o=f1e,a=IR,i=x1e();class s extends i.BaseOtelClient{constructor(){super(),Object.defineProperty(this,"tracer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"initialized",{enumerable:!0,configurable:!0,writable:!0,value:!1})}initTracer(u){var d,f;if(!u.collectorUrl&&!u.collectorTraceUrl)return;const g=`ses_${(0,a.ulid)()}`;this.sessionId=g;const y=(0,t.resourceFromAttributes)({[n.ATTR_SERVICE_NAME]:u.serviceName,[n.ATTR_SERVICE_VERSION]:u.serviceVersion,session_id:g}),v=u.collectorTraceUrl||`${u.collectorUrl}/v1/traces`;this.tracerProvider=new e.WebTracerProvider({resource:y,spanProcessors:[...(d=u.spanProcessors)!==null&&d!==void 0?d:[],new e.BatchSpanProcessor(new r.OTLPTraceExporter({url:v,headers:{}}))]}),this.tracer=this.tracerProvider.getTracer(u.tracerName),this.tracerProvider.register(),(0,o.registerInstrumentations)({instrumentations:(f=u.instrumentations)!==null&&f!==void 0?f:[]}),this.initialized=!0}}return Nd.OtelClient=s,Nd}var qR={},HR;function S1e(){return HR||(HR=1,Object.defineProperty(qR,"__esModule",{value:!0})),qR}var VR;function WR(){return VR||(VR=1,(function(e){var t=cp&&cp.__createBinding||(Object.create?(function(n,o,a,i){i===void 0&&(i=a);var s=Object.getOwnPropertyDescriptor(o,a);(!s||("get"in s?!o.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return o[a]}}),Object.defineProperty(n,i,s)}):(function(n,o,a,i){i===void 0&&(i=a),n[i]=o[a]})),r=cp&&cp.__exportStar||function(n,o){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&t(o,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(w1e(),e),r(S1e(),e)})(cp)),cp}var hp={},YR;function C1e(){if(YR)return hp;YR=1,Object.defineProperty(hp,"__esModule",{value:!0}),hp.buildPageResourceItem=t,hp.appendPageResourceIfNeeded=r,hp.enrichMessageWithPageResource=n;const e=()=>({location:typeof location<"u"?location:void 0,document:typeof document<"u"?document:void 0});function t(a=e()){var i;if(!a.location)return;const s=((i=a.document)===null||i===void 0?void 0:i.referrer)||void 0;return Object.assign({id:a.location.href,object:"page",uri:a.location.href},s?{referrer:s}:{})}function r(a,i,s){if(!s.has(a)||!Array.isArray(i)||i.some(o))return i;const c=t();return c?[...i,c]:i}function n(a,i){const s=r(a.type,a.data,i);return s===a.data?a:Object.assign(Object.assign({},a),{data:s})}function o(a){return a!=null&&typeof a=="object"&&a.object==="page"}return hp}var GR;function k1e(){if(GR)return jd;GR=1,Object.defineProperty(jd,"__esModule",{value:!0}),jd.Telemetry=void 0;const e=WR(),t=zR(),r=C1e(),n=new Set(["com.redocly.downloadDefinition.clicked","com.redocly.copyCodeSnippet.clicked","com.redocly.referencedIn.clicked","com.redocly.selectLanguage.clicked","com.redocly.expandCollapseAll.clicked","com.redocly.examplesSwitcher.clicked","com.redocly.switchServers.clicked","com.redocly.tryIt.opened","com.redocly.changeLayout.clicked","com.redocly.viewSecurityDetails.clicked","com.redocly.viewSecurityDetails.closed","com.redocly.search.opened","com.redocly.searchResult.clicked","com.redocly.searchInputReset.clicked","com.redocly.switchMessage.clicked","com.redocly.switchExample.clicked","com.redocly.message.clicked","com.redocly.serverModal.opened","com.redocly.requiredScopesModal.opened"]);class o{constructor(){Object.defineProperty(this,"config",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"initialized",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"useCloudEventData",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"otelClient",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tracer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"updateCloudEventData",{enumerable:!0,configurable:!0,writable:!0,value:i=>{var s;!((s=this.config)===null||s===void 0)&&s.disabled||(this.useCloudEventData=i)}}),this.useCloudEventData=()=>({origin:"redocUi",signal:"log"}),this.otelClient=new e.OtelClient,this.tracer={traceStep:(i,s)=>{const c=this.constructCloudEvent(i,s,{signal:"trace"});return this.otelClient.traceStep(c)}}}send(i,s,c){var u,d;try{if(!(!((u=this.config)===null||u===void 0)&&u.otel.isProd))return;const f=i&&typeof i=="object"&&"type"in i&&"data"in i?(0,r.enrichMessageWithPageResource)(i,n):this.constructCloudEvent(i,s,Object.assign(Object.assign({},c),{signal:"log"}));this.sendToOtelService(f)}catch(f){!((d=this.config)===null||d===void 0)&&d.otel.isProd||console.error("Event reporting failed:",f)}}init(i){i.disabled||this.initialized||(this.config=i,this.initialized=!0,this.otelClient.init({serviceVersion:i.otel.serviceVersion,version:i.otel.version,isProd:i.otel.isProd,collectorUrl:i.otel.collectorUrl,collectorTraceUrl:i.otel.collectorTraceUrl,serviceName:i.otel.serviceName,tracerName:i.otel.tracerName,spanProcessors:i.otel.spanProcessors,instrumentations:[...i.otel.instrumentations||[]]}))}startSpan(i,s,c){var u;if(!((u=this.config)===null||u===void 0)&&u.disabled)return;const d=this.constructCloudEvent(i,s,{signal:"trace"});return this.otelClient.startSpan(d,c)}constructCloudEvent(i,s,c){const u=Object.assign(Object.assign({},this.useCloudEventData()),c);return(0,t.mapToCloudEvent)(Object.assign(Object.assign({type:i,data:(0,r.appendPageResourceIfNeeded)(i,s,n)},u),this.otelClient.sessionId&&{sessionId:this.otelClient.sessionId}))}sendToOtelService(i){var s;!((s=this.config)===null||s===void 0)&&s.otel.isProd||console.log("CloudEvent to be sent to OTEL service:",i),this.otelClient.send(Object.assign(Object.assign({},i),{signal:"log"}))}forceFlush(){var i;return!((i=this.config)===null||i===void 0)&&i.disabled?Promise.resolve():this.otelClient.forceFlush()}shutdown(){var i;return!((i=this.config)===null||i===void 0)&&i.disabled?Promise.resolve():this.otelClient.shutdown()}sendViewedMessage(i,s){this.send("com.redocly.page.viewed",i,s)}sendPerformanceMetricsMessage(i,s){this.send("com.redocly.performanceMetrics.collected",i,s)}sendDownloadDefinitionClickedMessage(i,s){this.send("com.redocly.downloadDefinition.clicked",i,s)}sendCopyCodeSnippetClickedMessage(i,s){this.send("com.redocly.copyCodeSnippet.clicked",i,s)}sendReferencedInClickedMessage(i,s){this.send("com.redocly.referencedIn.clicked",i,s)}sendSelectLanguageClickedMessage(i,s){this.send("com.redocly.selectLanguage.clicked",i,s)}sendExpandCollapseAllClickedMessage(i,s){this.send("com.redocly.expandCollapseAll.clicked",i,s)}sendExamplesSwitcherClickedMessage(i,s){this.send("com.redocly.examplesSwitcher.clicked",i,s)}sendSwitchServersClickedMessage(i,s){this.send("com.redocly.switchServers.clicked",i,s)}sendTryItOpenedMessage(i,s){this.send("com.redocly.tryIt.opened",i,s)}sendChangeLayoutClickedMessage(i,s){this.send("com.redocly.changeLayout.clicked",i,s)}sendViewSecurityDetailsClickedMessage(i,s){this.send("com.redocly.viewSecurityDetails.clicked",i,s)}sendViewSecurityDetailsClosedMessage(i,s){this.send("com.redocly.viewSecurityDetails.closed",i,s)}sendSearchOpenedMessage(i,s){this.send("com.redocly.search.opened",i,s)}sendSearchResultClickedMessage(i,s){this.send("com.redocly.searchResult.clicked",i,s)}sendSearchInputResetClickedMessage(i,s){this.send("com.redocly.searchInputReset.clicked",i,s)}sendSwitchMessageClickedMessage(i,s){this.send("com.redocly.switchMessage.clicked",i,s)}sendSwitchExampleClickedMessage(i,s){this.send("com.redocly.switchExample.clicked",i,s)}sendMessageClickedMessage(i,s){this.send("com.redocly.message.clicked",i,s)}sendServerModalOpenedMessage(i,s){this.send("com.redocly.serverModal.opened",i,s)}sendRequiredScopesModalOpenedMessage(i,s){this.send("com.redocly.requiredScopesModal.opened",i,s)}sendInitialMessage(i,s){this.send("com.redocly.redoc.initialized",i,s)}sendErrorMessage(i,s){this.send("com.redocly.error.occurred",i,s)}}return jd.Telemetry=o,jd}var JR;function E1e(){return JR||(JR=1,(function(e){var t=lp&&lp.__createBinding||(Object.create?(function(n,o,a,i){i===void 0&&(i=a);var s=Object.getOwnPropertyDescriptor(o,a);(!s||("get"in s?!o.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return o[a]}}),Object.defineProperty(n,i,s)}):(function(n,o,a,i){i===void 0&&(i=a),n[i]=o[a]})),r=lp&&lp.__exportStar||function(n,o){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(o,a)&&t(o,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(sre(),e),r(k1e(),e),r(WR(),e)})(lp)),lp}var KR={},QR;function A1e(){return QR||(QR=1,Object.defineProperty(KR,"__esModule",{value:!0})),KR}var ZR;function T1e(){return ZR||(ZR=1,(function(e){var t=sp&&sp.__createBinding||(Object.create?(function(o,a,i,s){s===void 0&&(s=i);var c=Object.getOwnPropertyDescriptor(a,i);(!c||("get"in c?!a.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:function(){return a[i]}}),Object.defineProperty(o,s,c)}):(function(o,a,i,s){s===void 0&&(s=i),o[s]=a[i]})),r=sp&&sp.__exportStar||function(o,a){for(var i in o)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&t(a,o,i)};Object.defineProperty(e,"__esModule",{value:!0}),e.Telemetry=void 0;var n=E1e();Object.defineProperty(e,"Telemetry",{enumerable:!0,get:function(){return n.Telemetry}}),r(A1e(),e)})(sp)),sp}var _1e=T1e();const O1e="@redocly/openapi-docs",L1e="3.24.0-next.11",XR={name:O1e,version:L1e},j1e="https://otel.cloud.redocly.com/v1/traces";class eP extends _1e.Telemetry{specType;constructor(t){super(),this.specType=t.specType,this.init({otel:{isProd:!0,serviceVersion:t.serviceVersion||`${XR.name}@${XR.version}`,version:"1.0.0",collectorTraceUrl:t.collectorUrl||j1e,serviceName:t.serviceName||"redoc-ce",tracerName:"client-telemetry"},disabled:t.disabled||!1})}send(t,r){r&&Array.isArray(r)&&r.length>0&&(r=r.map(n=>n&&typeof n=="object"?{...n,specType:this.specType}:n)),super.send(t,r,{env:"production"})}}var N1e=Object.create,_g=Object.defineProperty,R1e=Object.getOwnPropertyDescriptor,P1e=Object.getOwnPropertyNames,I1e=Object.getPrototypeOf,$1e=Object.prototype.hasOwnProperty,tP=e=>_g(e,"__esModule",{value:!0}),Qe=(e,t)=>function(){return t||(0,e[Object.keys(e)[0]])((t={exports:{}}).exports,t),t.exports},rP=(e,t)=>{tP(e);for(var r in t)_g(e,r,{get:t[r],enumerable:!0})},M1e=(e,t,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of P1e(t))!$1e.call(e,n)&&n!=="default"&&_g(e,n,{get:()=>t[n],enumerable:!(r=R1e(t,n))||r.enumerable});return e},Og=e=>M1e(tP(_g(e!=null?N1e(I1e(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),nP=Qe({"src/grammar/tag.js"(e,t){function r(a,i){function s(){this.constructor=a}s.prototype=i.prototype,a.prototype=new s}function n(a,i,s,c){this.message=a,this.expected=i,this.found=s,this.location=c,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,n)}r(n,Error),n.buildMessage=function(a,i,s){var c={literal:function(x){return'"'+d(x.text)+'"'},class:function(x){var S=x.parts.map(function(w){return Array.isArray(w)?f(w[0])+"-"+f(w[1]):f(w)});return"["+(x.inverted?"^":"")+S+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(x){return x.description},not:function(x){return"not "+g(x.expected)}};function u(x){return x.charCodeAt(0).toString(16).toUpperCase()}function d(x){return x.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(S){return"\\x0"+u(S)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(S){return"\\x"+u(S)})}function f(x){return x.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(S){return"\\x0"+u(S)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(S){return"\\x"+u(S)})}function g(x){return c[x.type](x)}function y(x){var S=x.map(g),w,C;if(S.sort(),S.length>0){for(w=1,C=1;w<S.length;w++)S[w-1]!==S[w]&&(S[C]=S[w],C++);S.length=C}switch(S.length){case 1:return S[0];case 2:return S[0]+" or "+S[1];default:return S.slice(0,-1).join(", ")+", or "+S[S.length-1]}}function v(x){return x?'"'+d(x)+'"':"end of input"}return"Expected "+y(a)+" but "+v(i)+" found."};function o(a,i){i=i!==void 0?i:{};var s={},c={Top:ea},u=ea,d="/",f=".",g="#",y="=",v="(",x=")",S=",",w="[",C="]",A="null",T="true",L="false",j="{",P="}",_=":",I='"',z="\\",q="n",B="r",G="t",te=/^[$@]/,le=/^[0-9]/,Y=/^[^\0-\x1F"\\]/,ie=/^[a-zA-Z0-9_\-]/,re=/^[ \n\t]/,de=pt("/",!1),X=Vr("tag name"),H=Vr("class"),ae=Vr("id"),K=pt("=",!1),V=pt("(",!1),se=pt(")",!1),Q=pt(",",!1),ne=Vr("variable"),F=Vr("null"),be=Vr("boolean"),ke=pt("[",!1),E=pt("]",!1),R=pt("{",!1),W=pt("}",!1),ge=pt(":",!1),xe=Vr("number"),ce=Vr("string"),ue=Vr("identifier"),Ne=Vr("whitespace"),he=function(J){return{type:"variable",meta:{variable:J}}},Ke=function(J){return{type:"annotation",meta:{attributes:J}}},Je=function(J,fe){return fe},Ve=function(J,fe,we,Te){fe&&(we=we||[],we.unshift({type:"attribute",name:"primary",value:fe}));const[qe,Ze]=Te?["tag",0]:["tag_open",1];return{type:qe,nesting:Ze,meta:{tag:J,attributes:we}}},He=function(J){return{type:"tag_close",nesting:-1,meta:{tag:J}}},Xe=function(J,fe){return J?[J,...fe]:[]},ut=function(J){return J},Fe=function(J){return J},N=function(J){return J},$=function(J){return J},U=function(J){return{type:"class",name:J,value:!0}},pe=function(J){return{type:"attribute",name:"id",value:J}},Ee=function(J,fe){return{type:"attribute",name:J,value:fe}},Le=function(J,fe,we){return fe?[fe,...we]:[]},Ue=function(J,fe){let we={};for(let[Te,{name:qe,value:Ze}]of fe.entries())we[qe||Te]=Ze;return new qn(J,we)},it=function(J){return J},Ft=function(J,fe){return{name:J,value:fe}},gt=function(J){return J},Ot=function(J,fe,we){return J==="@"?[fe,...we]:new $t([fe,...we])},It=function(){return null},Ks=function(){return!0},oi=function(){return!1},ai=function(J,fe){return[J,...fe]},Ta=function(J){return J||[]},_o=function(J,fe){return Object.assign(J,...fe)},Qo=function(J){return J||{}},Oo=function(J,fe){return J==="$$mdtype"?{}:{[J]:fe}},Un=function(){return parseFloat(jo())},Zo=function(J){return J.join("")},ii=function(){return`
6671
6671
  `},Xo=function(){return"\r"},yu=function(){return" "},Qs=function(J){return J},Ce=0,vt=0,Lo=[{line:1,column:1}],_a=[],dt=0,si;if("startRule"in i){if(!(i.startRule in c))throw new Error(`Can't start parsing from rule "`+i.startRule+'".');u=c[i.startRule]}function jo(){return a.substring(vt,Ce)}function pt(J,fe){return{type:"literal",text:J,ignoreCase:fe}}function Ar(){return{type:"end"}}function Vr(J){return{type:"other",description:J}}function li(J){var fe=Lo[J],we;if(fe)return fe;for(we=J-1;!Lo[we];)we--;for(fe=Lo[we],fe={line:fe.line,column:fe.column};we<J;)a.charCodeAt(we)===10?(fe.line++,fe.column=1):fe.column++,we++;return Lo[J]=fe,fe}var Zs=typeof i.filename=="string"&&i.filename.length>0;function Xs(J,fe){var we={};Zs&&(we.filename=i.filename);var Te=li(J);we.start={offset:J,line:Te.line,column:Te.column};var qe=li(fe);return we.end={offset:fe,line:qe.line,column:qe.column},we}function el(){_a.push({pos:Ce,variants:[]})}function Yt(J){var fe=_a[_a.length-1];Ce<fe.pos||(Ce>fe.pos&&(fe.pos=Ce,fe.variants=[]),fe.variants.push(J))}function tl(J,fe,we){return new n(n.buildMessage(J,fe,we),J,fe,we)}function Oa(){var J=_a[0],fe=J.pos;return tl(J.variants,fe<a.length?a.charAt(fe):null,fe<a.length?Xs(fe,fe+1):Xs(fe,fe))}function ea(){var J;return J=On(),J===s&&(J=fo(),J===s&&(J=rr(),J===s&&(J=vc()))),J}function On(){var J,fe;return J=Ce,fe=nl(),fe===s&&(fe=Fn()),fe!==s&&(vt=J,fe=he(fe)),J=fe,J}function fo(){var J,fe,we,Te;if(J=Ce,fe=No(),fe!==s){for(we=[],Te=Ye();Te!==s;)we.push(Te),Te=Ye();vt=J,J=Ke(fe)}else Ce=J,J=s;return J}function rr(){var J,fe,we,Te,qe,Ze,xt,Nr=function(ta){dt===0&&Yt(ta)};if(J=Ce,fe=ci(),fe!==s){for(we=[],Te=Ye();Te!==s;)we.push(Te),Te=Ye();for(Te=Ce,qe=go(),qe!==s?(Ze=Ye(),Ze===s&&(Ze=null),vt=Te,Te=Je(fe,qe)):(Ce=Te,Te=s),Te===s&&(Te=null),qe=No(),qe===s&&(qe=null),Ze=[],xt=Ye();xt!==s;)Ze.push(xt),xt=Ye();Nr(de),a.charCodeAt(Ce)===47?(xt=d,Ce++):xt=s,xt===s&&(xt=null),vt=J,J=Ve(fe,Te,qe,xt)}else Ce=J,J=s;return J}function vc(){var J,fe,we,Te=function(qe){dt===0&&Yt(qe)};return J=Ce,Te(de),a.charCodeAt(Ce)===47?(fe=d,Ce++):fe=s,fe!==s?(we=ci(),we!==s?(vt=J,J=He(we)):(Ce=J,J=s)):(Ce=J,J=s),J}function ci(){var J,fe=function(we){dt===0&&Yt(we)};return fe(X),dt++,J=ct(),dt--,J}function No(){var J,fe,we,Te;if(J=Ce,fe=rl(),fe!==s){for(we=[],Te=Ro();Te!==s;)we.push(Te),Te=Ro();vt=J,J=Xe(fe,we)}else Ce=J,J=s;return J}function Ro(){var J,fe,we;if(J=Ce,fe=[],we=Ye(),we!==s)for(;we!==s;)fe.push(we),we=Ye();else fe=s;return fe!==s?(we=rl(),we!==s?(vt=J,J=ut(we)):(Ce=J,J=s)):(Ce=J,J=s),J}function rl(){var J,fe;return J=Ce,fe=Hi(),fe!==s&&(vt=J,fe=Fe(fe)),J=fe,J===s&&(J=Ce,fe=pi(),fe!==s&&(vt=J,fe=N(fe)),J=fe,J===s&&(J=Ce,fe=Vi(),fe!==s&&(vt=J,fe=$(fe)),J=fe)),J}function pi(){var J,fe,we,Te=function(qe){dt===0&&Yt(qe)};return Te(H),dt++,J=Ce,a.charCodeAt(Ce)===46?(fe=f,Ce++):fe=s,fe!==s?(we=ct(),we!==s?(vt=J,J=U(we)):(Ce=J,J=s)):(Ce=J,J=s),dt--,J}function Hi(){var J,fe,we,Te=function(qe){dt===0&&Yt(qe)};return Te(ae),dt++,J=Ce,a.charCodeAt(Ce)===35?(fe=g,Ce++):fe=s,fe!==s?(we=ct(),we!==s?(vt=J,J=pe(we)):(Ce=J,J=s)):(Ce=J,J=s),dt--,J}function Vi(){var J,fe,we,Te,qe=function(Ze){dt===0&&Yt(Ze)};return J=Ce,fe=ct(),fe!==s?(qe(K),a.charCodeAt(Ce)===61?(we=y,Ce++):we=s,we!==s?(Te=go(),Te!==s?(vt=J,J=Ee(fe,Te)):(Ce=J,J=s)):(Ce=J,J=s)):(Ce=J,J=s),J}function Fn(){var J,fe,we,Te,qe,Ze,xt,Nr,ta=function(xu){dt===0&&Yt(xu)};if(J=Ce,fe=ct(),fe!==s)if(ta(V),a.charCodeAt(Ce)===40?(we=v,Ce++):we=s,we!==s){for(Te=[],qe=Ye();qe!==s;)Te.push(qe),qe=Ye();for(qe=Ce,Ze=mo(),Ze===s&&(Ze=null),xt=[],Nr=Tr();Nr!==s;)xt.push(Nr),Nr=Tr();vt=qe,qe=Le(fe,Ze,xt),ta(se),a.charCodeAt(Ce)===41?(Ze=x,Ce++):Ze=s,Ze!==s?(vt=J,J=Ue(fe,qe)):(Ce=J,J=s)}else Ce=J,J=s;else Ce=J,J=s;return J}function mo(){var J,fe,we,Te,qe=function(Ze){dt===0&&Yt(Ze)};return J=Ce,fe=Ce,we=ct(),we!==s?(qe(K),a.charCodeAt(Ce)===61?(Te=y,Ce++):Te=s,Te!==s?(vt=fe,fe=it(we)):(Ce=fe,fe=s)):(Ce=fe,fe=s),fe===s&&(fe=null),we=go(),we!==s?(vt=J,J=Ft(fe,we)):(Ce=J,J=s),J}function Tr(){var J,fe,we,Te,qe,Ze=function(xt){dt===0&&Yt(xt)};for(J=Ce,fe=[],we=Ye();we!==s;)fe.push(we),we=Ye();if(Ze(Q),a.charCodeAt(Ce)===44?(we=S,Ce++):we=s,we!==s){for(Te=[],qe=Ye();qe!==s;)Te.push(qe),qe=Ye();qe=mo(),qe!==s?(vt=J,J=gt(qe)):(Ce=J,J=s)}else Ce=J,J=s;return J}function an(){var J,fe,we,Te=function(qe){dt===0&&Yt(qe)};for(J=Ce,fe=[],we=Ye();we!==s;)fe.push(we),we=Ye();return Te(Q),a.charCodeAt(Ce)===44?(we=S,Ce++):we=s,we!==s?(fe=[fe,we],J=fe):(Ce=J,J=s),J===s&&(J=null),J}function nl(){var J,fe,we,Te,qe,Ze=function(xt){dt===0&&Yt(xt)};if(Ze(ne),dt++,J=Ce,te.test(a.charAt(Ce))?(fe=a.charAt(Ce),Ce++):fe=s,fe!==s)if(we=ct(),we!==s){for(Te=[],qe=ol();qe!==s;)Te.push(qe),qe=ol();vt=J,J=Ot(fe,we,Te)}else Ce=J,J=s;else Ce=J,J=s;return dt--,J}function ol(){var J,fe,we,Te;return J=Ce,a.charCodeAt(Ce)===46?(fe=f,Ce++):fe=s,fe!==s?(we=ct(),we!==s?(vt=J,J=it(we)):(Ce=J,J=s)):(Ce=J,J=s),J===s&&(J=Ce,a.charCodeAt(Ce)===91?(fe=w,Ce++):fe=s,fe!==s?(we=ee(),we===s&&(we=Pe()),we!==s?(a.charCodeAt(Ce)===93?(Te=C,Ce++):Te=s,Te!==s?(vt=J,J=gt(we)):(Ce=J,J=s)):(Ce=J,J=s)):(Ce=J,J=s)),J}function go(){var J;return J=xc(),J===s&&(J=ui(),J===s&&(J=Pe(),J===s&&(J=ee(),J===s&&(J=vu(),J===s&&(J=Wi(),J===s&&(J=Fn(),J===s&&(J=nl()))))))),J}function xc(){var J,fe,we=function(Te){dt===0&&Yt(Te)};return we(F),dt++,J=Ce,a.substr(Ce,4)===A?(fe=A,Ce+=4):fe=s,fe!==s&&(vt=J,fe=It()),J=fe,dt--,J}function ui(){var J,fe,we=function(Te){dt===0&&Yt(Te)};return we(be),dt++,J=Ce,a.substr(Ce,4)===T?(fe=T,Ce+=4):fe=s,fe!==s&&(vt=J,fe=Ks()),J=fe,J===s&&(J=Ce,a.substr(Ce,5)===L?(fe=L,Ce+=5):fe=s,fe!==s&&(vt=J,fe=oi()),J=fe),dt--,J}function vu(){var J,fe,we,Te,qe,Ze,xt,Nr=function(ta){dt===0&&Yt(ta)};if(J=Ce,Nr(ke),a.charCodeAt(Ce)===91?(fe=w,Ce++):fe=s,fe!==s){for(we=[],Te=Ye();Te!==s;)we.push(Te),Te=Ye();if(Te=Ce,qe=go(),qe!==s){for(Ze=[],xt=bn();xt!==s;)Ze.push(xt),xt=bn();xt=an(),vt=Te,Te=ai(qe,Ze)}else Ce=Te,Te=s;for(Te===s&&(Te=null),qe=[],Ze=Ye();Ze!==s;)qe.push(Ze),Ze=Ye();Nr(E),a.charCodeAt(Ce)===93?(Ze=C,Ce++):Ze=s,Ze!==s?(vt=J,J=Ta(Te)):(Ce=J,J=s)}else Ce=J,J=s;return J}function bn(){var J,fe,we,Te,qe,Ze=function(xt){dt===0&&Yt(xt)};for(J=Ce,fe=[],we=Ye();we!==s;)fe.push(we),we=Ye();if(Ze(Q),a.charCodeAt(Ce)===44?(we=S,Ce++):we=s,we!==s){for(Te=[],qe=Ye();qe!==s;)Te.push(qe),qe=Ye();qe=go(),qe!==s?(vt=J,J=gt(qe)):(Ce=J,J=s)}else Ce=J,J=s;return J}function Wi(){var J,fe,we,Te,qe,Ze,xt,Nr=function(ta){dt===0&&Yt(ta)};if(J=Ce,Nr(R),a.charCodeAt(Ce)===123?(fe=j,Ce++):fe=s,fe!==s){for(we=[],Te=Ye();Te!==s;)we.push(Te),Te=Ye();if(Te=Ce,qe=ja(),qe!==s){for(Ze=[],xt=La();xt!==s;)Ze.push(xt),xt=La();xt=an(),vt=Te,Te=_o(qe,Ze)}else Ce=Te,Te=s;for(Te===s&&(Te=null),qe=[],Ze=Ye();Ze!==s;)qe.push(Ze),Ze=Ye();Nr(W),a.charCodeAt(Ce)===125?(Ze=P,Ce++):Ze=s,Ze!==s?(vt=J,J=Qo(Te)):(Ce=J,J=s)}else Ce=J,J=s;return J}function La(){var J,fe,we,Te,qe,Ze=function(xt){dt===0&&Yt(xt)};for(J=Ce,fe=[],we=Ye();we!==s;)fe.push(we),we=Ye();if(Ze(Q),a.charCodeAt(Ce)===44?(we=S,Ce++):we=s,we!==s){for(Te=[],qe=Ye();qe!==s;)Te.push(qe),qe=Ye();qe=ja(),qe!==s?(vt=J,J=ut(qe)):(Ce=J,J=s)}else Ce=J,J=s;return J}function ja(){var J,fe,we,Te,qe,Ze=function(xt){dt===0&&Yt(xt)};if(J=Ce,fe=ct(),fe===s&&(fe=Pe()),fe!==s)if(Ze(ge),a.charCodeAt(Ce)===58?(we=_,Ce++):we=s,we!==s){for(Te=[],qe=Ye();qe!==s;)Te.push(qe),qe=Ye();qe=go(),qe!==s?(vt=J,J=Oo(fe,qe)):(Ce=J,J=s)}else Ce=J,J=s;else Ce=J,J=s;return J}function ee(){var J,fe,we,Te,qe,Ze,xt=function(Nr){dt===0&&Yt(Nr)};if(xt(xe),dt++,J=Ce,a.charCodeAt(Ce)===45&&Ce++,fe=[],le.test(a.charAt(Ce))?(we=a.charAt(Ce),Ce++):we=s,we!==s)for(;we!==s;)fe.push(we),le.test(a.charAt(Ce))?(we=a.charAt(Ce),Ce++):we=s;else fe=s;if(fe!==s){if(we=Ce,a.charCodeAt(Ce)===46?(Te=f,Ce++):Te=s,Te!==s){if(qe=[],le.test(a.charAt(Ce))?(Ze=a.charAt(Ce),Ce++):Ze=s,Ze!==s)for(;Ze!==s;)qe.push(Ze),le.test(a.charAt(Ce))?(Ze=a.charAt(Ce),Ce++):Ze=s;else qe=s;qe!==s?(Te=[Te,qe],we=Te):(Ce=we,we=s)}else Ce=we,we=s;we===s&&(we=null),vt=J,J=Un()}else Ce=J,J=s;return dt--,J}function Pe(){var J,fe,we,Te,qe=function(Ze){dt===0&&Yt(Ze)};if(qe(ce),dt++,J=Ce,a.charCodeAt(Ce)===34?(fe=I,Ce++):fe=s,fe!==s){for(we=[],Te=$e();Te!==s;)we.push(Te),Te=$e();a.charCodeAt(Ce)===34?(Te=I,Ce++):Te=s,Te!==s?(vt=J,J=Zo(we)):(Ce=J,J=s)}else Ce=J,J=s;return dt--,J}function $e(){var J;return Y.test(a.charAt(Ce))?(J=a.charAt(Ce),Ce++):J=s,J===s&&(J=We()),J}function We(){var J,fe,we,Te;return J=Ce,a.charCodeAt(Ce)===92?(fe=z,Ce++):fe=s,fe!==s?(a.charCodeAt(Ce)===34?(we=I,Ce++):we=s,we===s&&(a.charCodeAt(Ce)===92?(we=z,Ce++):we=s,we===s&&(we=Ce,a.charCodeAt(Ce)===110?(Te=q,Ce++):Te=s,Te!==s&&(vt=we,Te=ii()),we=Te,we===s&&(we=Ce,a.charCodeAt(Ce)===114?(Te=B,Ce++):Te=s,Te!==s&&(vt=we,Te=Xo()),we=Te,we===s&&(we=Ce,a.charCodeAt(Ce)===116?(Te=G,Ce++):Te=s,Te!==s&&(vt=we,Te=yu()),we=Te)))),we!==s?(vt=J,J=Qs(we)):(Ce=J,J=s)):(Ce=J,J=s),J}function ct(){var J,fe,we,Te=function(qe){dt===0&&Yt(qe)};if(Te(ue),dt++,J=Ce,fe=[],ie.test(a.charAt(Ce))?(we=a.charAt(Ce),Ce++):we=s,we!==s)for(;we!==s;)fe.push(we),ie.test(a.charAt(Ce))?(we=a.charAt(Ce),Ce++):we=s;else fe=s;return fe!==s?J=a.substring(J,Ce):J=fe,dt--,J}function Ye(){var J,fe=function(we){dt===0&&Yt(we)};return fe(Ne),dt++,re.test(a.charAt(Ce))?(J=a.charAt(Ce),Ce++):J=s,dt--,J}const{Variable:$t,Function:qn}=i;if(el(),si=u(),si!==s&&Ce===a.length)return si;throw si!==s&&Ce<a.length&&Yt(Ar()),Oa()}t.exports={SyntaxError:n,parse:o}}}),D1e=Qe({"node_modules/entities/lib/maps/entities.json"(e,t){t.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
6672
6672
  `,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}}}),oP=Qe({"node_modules/markdown-it/lib/common/entities.js"(e,t){t.exports=D1e()}}),c2=Qe({"node_modules/uc.micro/categories/P/regex.js"(e,t){t.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/}}),z1e=Qe({"node_modules/mdurl/encode.js"(e,t){var r={};function n(a){var i,s,c=r[a];if(c)return c;for(c=r[a]=[],i=0;i<128;i++)s=String.fromCharCode(i),/^[0-9a-z]$/i.test(s)?c.push(s):c.push("%"+("0"+i.toString(16).toUpperCase()).slice(-2));for(i=0;i<a.length;i++)c[a.charCodeAt(i)]=a[i];return c}function o(a,i,s){var c,u,d,f,g,y="";for(typeof i!="string"&&(s=i,i=o.defaultChars),typeof s>"u"&&(s=!0),g=n(i),c=0,u=a.length;c<u;c++){if(d=a.charCodeAt(c),s&&d===37&&c+2<u&&/^[0-9a-f]{2}$/i.test(a.slice(c+1,c+3))){y+=a.slice(c,c+3),c+=2;continue}if(d<128){y+=g[d];continue}if(d>=55296&&d<=57343){if(d>=55296&&d<=56319&&c+1<u&&(f=a.charCodeAt(c+1),f>=56320&&f<=57343)){y+=encodeURIComponent(a[c]+a[c+1]),c++;continue}y+="%EF%BF%BD";continue}y+=encodeURIComponent(a[c])}return y}o.defaultChars=";/?:@&=+$,-_.!~*'()#",o.componentChars="-_.!~*'()",t.exports=o}}),B1e=Qe({"node_modules/mdurl/decode.js"(e,t){var r={};function n(a){var i,s,c=r[a];if(c)return c;for(c=r[a]=[],i=0;i<128;i++)s=String.fromCharCode(i),c.push(s);for(i=0;i<a.length;i++)s=a.charCodeAt(i),c[s]="%"+("0"+s.toString(16).toUpperCase()).slice(-2);return c}function o(a,i){var s;return typeof i!="string"&&(i=o.defaultChars),s=n(i),a.replace(/(%[a-f0-9]{2})+/gi,function(c){var u,d,f,g,y,v,x,S="";for(u=0,d=c.length;u<d;u+=3){if(f=parseInt(c.slice(u+1,u+3),16),f<128){S+=s[f];continue}if((f&224)===192&&u+3<d&&(g=parseInt(c.slice(u+4,u+6),16),(g&192)===128)){x=f<<6&1984|g&63,x<128?S+="\uFFFD\uFFFD":S+=String.fromCharCode(x),u+=3;continue}if((f&240)===224&&u+6<d&&(g=parseInt(c.slice(u+4,u+6),16),y=parseInt(c.slice(u+7,u+9),16),(g&192)===128&&(y&192)===128)){x=f<<12&61440|g<<6&4032|y&63,x<2048||x>=55296&&x<=57343?S+="\uFFFD\uFFFD\uFFFD":S+=String.fromCharCode(x),u+=6;continue}if((f&248)===240&&u+9<d&&(g=parseInt(c.slice(u+4,u+6),16),y=parseInt(c.slice(u+7,u+9),16),v=parseInt(c.slice(u+10,u+12),16),(g&192)===128&&(y&192)===128&&(v&192)===128)){x=f<<18&1835008|g<<12&258048|y<<6&4032|v&63,x<65536||x>1114111?S+="\uFFFD\uFFFD\uFFFD\uFFFD":(x-=65536,S+=String.fromCharCode(55296+(x>>10),56320+(x&1023))),u+=9;continue}S+="\uFFFD"}return S})}o.defaultChars=";/?:@&=+$,#",o.componentChars="",t.exports=o}}),U1e=Qe({"node_modules/mdurl/format.js"(e,t){t.exports=function(r){var n="";return n+=r.protocol||"",n+=r.slashes?"//":"",n+=r.auth?r.auth+"@":"",r.hostname&&r.hostname.indexOf(":")!==-1?n+="["+r.hostname+"]":n+=r.hostname||"",n+=r.port?":"+r.port:"",n+=r.pathname||"",n+=r.search||"",n+=r.hash||"",n}}}),F1e=Qe({"node_modules/mdurl/parse.js"(e,t){function r(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var n=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,a=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,i=["<",">",'"',"`"," ","\r",`
6673
6673
  `," "],s=["{","}","|","\\","^","`"].concat(i),c=["'"].concat(s),u=["%","/","?",";","#"].concat(c),d=["/","?","#"],f=255,g=/^[+a-z0-9A-Z_-]{0,63}$/,y=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},x={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function S(w,C){if(w&&w instanceof r)return w;var A=new r;return A.parse(w,C),A}r.prototype.parse=function(w,C){var A,T,L,j,P,_=w;if(_=_.trim(),!C&&w.split("#").length===1){var I=a.exec(_);if(I)return this.pathname=I[1],I[2]&&(this.search=I[2]),this}var z=n.exec(_);if(z&&(z=z[0],L=z.toLowerCase(),this.protocol=z,_=_.substr(z.length)),(C||z||_.match(/^\/\/[^@\/]+@[^@\/]+/))&&(P=_.substr(0,2)==="//",P&&!(z&&v[z])&&(_=_.substr(2),this.slashes=!0)),!v[z]&&(P||z&&!x[z])){var q=-1;for(A=0;A<d.length;A++)j=_.indexOf(d[A]),j!==-1&&(q===-1||j<q)&&(q=j);var B,G;for(q===-1?G=_.lastIndexOf("@"):G=_.lastIndexOf("@",q),G!==-1&&(B=_.slice(0,G),_=_.slice(G+1),this.auth=B),q=-1,A=0;A<u.length;A++)j=_.indexOf(u[A]),j!==-1&&(q===-1||j<q)&&(q=j);q===-1&&(q=_.length),_[q-1]===":"&&q--;var te=_.slice(0,q);_=_.slice(q),this.parseHost(te),this.hostname=this.hostname||"";var le=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!le){var Y=this.hostname.split(/\./);for(A=0,T=Y.length;A<T;A++){var ie=Y[A];if(ie&&!ie.match(g)){for(var re="",de=0,X=ie.length;de<X;de++)ie.charCodeAt(de)>127?re+="x":re+=ie[de];if(!re.match(g)){var H=Y.slice(0,A),ae=Y.slice(A+1),K=ie.match(y);K&&(H.push(K[1]),ae.unshift(K[2])),ae.length&&(_=ae.join(".")+_),this.hostname=H.join(".");break}}}}this.hostname.length>f&&(this.hostname=""),le&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var V=_.indexOf("#");V!==-1&&(this.hash=_.substr(V),_=_.slice(0,V));var se=_.indexOf("?");return se!==-1&&(this.search=_.substr(se),_=_.slice(0,se)),_&&(this.pathname=_),x[L]&&this.hostname&&!this.pathname&&(this.pathname=""),this},r.prototype.parseHost=function(w){var C=o.exec(w);C&&(C=C[0],C!==":"&&(this.port=C.substr(1)),w=w.substr(0,w.length-C.length)),w&&(this.hostname=w)},t.exports=S}}),aP=Qe({"node_modules/mdurl/index.js"(e,t){t.exports.encode=z1e(),t.exports.decode=B1e(),t.exports.format=U1e(),t.exports.parse=F1e()}}),iP=Qe({"node_modules/uc.micro/properties/Any/regex.js"(e,t){t.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/}}),sP=Qe({"node_modules/uc.micro/categories/Cc/regex.js"(e,t){t.exports=/[\0-\x1F\x7F-\x9F]/}}),q1e=Qe({"node_modules/uc.micro/categories/Cf/regex.js"(e,t){t.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/}}),lP=Qe({"node_modules/uc.micro/categories/Z/regex.js"(e,t){t.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/}}),H1e=Qe({"node_modules/uc.micro/index.js"(e){e.Any=iP(),e.Cc=sP(),e.Cf=q1e(),e.P=c2(),e.Z=lP()}}),Kt=Qe({"node_modules/markdown-it/lib/common/utils.js"(e){function t(te){return Object.prototype.toString.call(te)}function r(te){return t(te)==="[object String]"}var n=Object.prototype.hasOwnProperty;function o(te,le){return n.call(te,le)}function a(te){var le=Array.prototype.slice.call(arguments,1);return le.forEach(function(Y){if(Y){if(typeof Y!="object")throw new TypeError(Y+"must be object");Object.keys(Y).forEach(function(ie){te[ie]=Y[ie]})}}),te}function i(te,le,Y){return[].concat(te.slice(0,le),Y,te.slice(le+1))}function s(te){return!(te>=55296&&te<=57343||te>=64976&&te<=65007||(te&65535)===65535||(te&65535)===65534||te>=0&&te<=8||te===11||te>=14&&te<=31||te>=127&&te<=159||te>1114111)}function c(te){if(te>65535){te-=65536;var le=55296+(te>>10),Y=56320+(te&1023);return String.fromCharCode(le,Y)}return String.fromCharCode(te)}var u=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,d=/&([a-z#][a-z0-9]{1,31});/gi,f=new RegExp(u.source+"|"+d.source,"gi"),g=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,y=oP();function v(te,le){var Y=0;return o(y,le)?y[le]:le.charCodeAt(0)===35&&g.test(le)&&(Y=le[1].toLowerCase()==="x"?parseInt(le.slice(2),16):parseInt(le.slice(1),10),s(Y))?c(Y):te}function x(te){return te.indexOf("\\")<0?te:te.replace(u,"$1")}function S(te){return te.indexOf("\\")<0&&te.indexOf("&")<0?te:te.replace(f,function(le,Y,ie){return Y||v(le,ie)})}var w=/[&<>"]/,C=/[&<>"]/g,A={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function T(te){return A[te]}function L(te){return w.test(te)?te.replace(C,T):te}var j=/[.?*+^$[\]\\(){}|-]/g;function P(te){return te.replace(j,"\\$&")}function _(te){switch(te){case 9:case 32:return!0}return!1}function I(te){if(te>=8192&&te<=8202)return!0;switch(te){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var z=c2();function q(te){return z.test(te)}function B(te){switch(te){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function G(te){return te=te.trim().replace(/\s+/g," "),"\u1E9E".toLowerCase()==="\u1E7E"&&(te=te.replace(/ẞ/g,"\xDF")),te.toLowerCase().toUpperCase()}e.lib={},e.lib.mdurl=aP(),e.lib.ucmicro=H1e(),e.assign=a,e.isString=r,e.has=o,e.unescapeMd=x,e.unescapeAll=S,e.isValidEntityCode=s,e.fromCodePoint=c,e.escapeHtml=L,e.arrayReplaceAt=i,e.isSpace=_,e.isWhiteSpace=I,e.isMdAsciiPunct=B,e.isPunctChar=q,e.escapeRE=P,e.normalizeReference=G}}),V1e=Qe({"node_modules/markdown-it/lib/helpers/parse_link_label.js"(e,t){t.exports=function(r,n,o){var a,i,s,c,u=-1,d=r.posMax,f=r.pos;for(r.pos=n+1,a=1;r.pos<d;){if(s=r.src.charCodeAt(r.pos),s===93&&(a--,a===0)){i=!0;break}if(c=r.pos,r.md.inline.skipToken(r),s===91){if(c===r.pos-1)a++;else if(o)return r.pos=f,-1}}return i&&(u=r.pos),r.pos=f,u}}}),W1e=Qe({"node_modules/markdown-it/lib/helpers/parse_link_destination.js"(e,t){var r=Kt().unescapeAll;t.exports=function(n,o,a){var i,s,c=0,u=o,d={ok:!1,pos:0,lines:0,str:""};if(n.charCodeAt(o)===60){for(o++;o<a;){if(i=n.charCodeAt(o),i===10||i===60)return d;if(i===62)return d.pos=o+1,d.str=r(n.slice(u+1,o)),d.ok=!0,d;if(i===92&&o+1<a){o+=2;continue}o++}return d}for(s=0;o<a&&(i=n.charCodeAt(o),!(i===32||i<32||i===127));){if(i===92&&o+1<a){if(n.charCodeAt(o+1)===32)break;o+=2;continue}if(i===40&&(s++,s>32))return d;if(i===41){if(s===0)break;s--}o++}return u===o||s!==0||(d.str=r(n.slice(u,o)),d.lines=c,d.pos=o,d.ok=!0),d}}}),Y1e=Qe({"node_modules/markdown-it/lib/helpers/parse_link_title.js"(e,t){var r=Kt().unescapeAll;t.exports=function(n,o,a){var i,s,c=0,u=o,d={ok:!1,pos:0,lines:0,str:""};if(o>=a||(s=n.charCodeAt(o),s!==34&&s!==39&&s!==40))return d;for(o++,s===40&&(s=41);o<a;){if(i=n.charCodeAt(o),i===s)return d.pos=o+1,d.lines=c,d.str=r(n.slice(u+1,o)),d.ok=!0,d;if(i===40&&s===41)return d;i===10?c++:i===92&&o+1<a&&(o++,n.charCodeAt(o)===10&&c++),o++}return d}}}),G1e=Qe({"node_modules/markdown-it/lib/helpers/index.js"(e){e.parseLinkLabel=V1e(),e.parseLinkDestination=W1e(),e.parseLinkTitle=Y1e()}}),J1e=Qe({"node_modules/markdown-it/lib/renderer.js"(e,t){var r=Kt().assign,n=Kt().unescapeAll,o=Kt().escapeHtml,a={};a.code_inline=function(s,c,u,d,f){var g=s[c];return"<code"+f.renderAttrs(g)+">"+o(s[c].content)+"</code>"},a.code_block=function(s,c,u,d,f){var g=s[c];return"<pre"+f.renderAttrs(g)+"><code>"+o(s[c].content)+`</code></pre>
@@ -11678,7 +11678,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
11678
11678
 
11679
11679
  height: ${({size:e})=>e||"16px"};
11680
11680
  width: ${({size:e})=>e||"16px"};
11681
- `;async function Q7e(e){return null}function Z7e(e,t){const[r,n]=M.useState(),o=M.useCallback(async()=>{try{const a=await Q7e();n(a)}catch(a){console.warn("Failed to configure replay for operation:",e.operation.operationId,a)}},[]);return M.useEffect(()=>{t&&o()},[t,o]),{config:r,refresh:o}}const X7e=Br(Wl.NOT_LOADED),JU=Br([]);function e_e(e,t,r,n,o,a,i,s){if(!r)return;const c=new BI(r),u=c.definition.paths?.[e];let d=u?.[t];!d&&u?.additionalOperations&&(d=u.additionalOperations[t]);const f=oS(c,{...d,pathName:e,httpVerb:t,pathParameters:u.parameters||[],pathServers:u.servers||[]},void 0,s??Y2({}),"",{isCallback:!1},n,i);if(!f)return;const g=f.requestBody?.content?.mediaTypes[0]?.name||"application/json";return{id:f.id,name:f.name,method:f.httpVerb,operationId:f.operationId,parameters:r_e(f.parameters,o?.requestValues),body:i_e(f.requestBody,r,o?.requestValues?.body?{activeExampleName:o?.activeExampleName,[g]:o?.requestValues?.body}:o?.activeExampleName?{activeExampleName:o?.activeExampleName}:void 0),path:f.path,href:f.href,servers:f.servers,security:s_e(f.security),responses:Object.fromEntries(f.responses.map(y=>[y.code,{code:y.code,description:y.description,mediaTypes:y.content?.mediaTypes.reduce((v,x)=>(v[x.name]={name:x.name,schema:KU(x.schema?.rawSchema,r)},v),{})}]))}}function t_e(e,t,r,n){return function(o,a,i){const s=Wt.compile(["paths",o,a]),c=n?.[s],u=e_e(o,a,i,e,c,void 0,t,r);if(u)return{...u,operationId:u.operationId||Wt.compile(["paths",u.path,u.method])}}}function r_e(e,t){const r=new Set,n=e.map(o=>(r.add(o.in+":"+o.name),{name:o.name,in:o.in,required:o.required,description:o.description,example:t?.[String(o.in)]?.[o.name]||o.example,schema:o.schema,...o.allowReserved&&{allowReserved:o.allowReserved}}));for(const[o,a]of Object.entries(t||{}))for(const[i,s]of Object.entries(a||{}))r.has(o+":"+i)||n.push({name:i,in:o,required:!1,description:"",example:String(s),schema:void 0});return n}function n_e({type:e,format:t,enum:r}){return e==="string"&&(t==="binary"||t==="base64")?"file":e==="object"?"multiline":r.length>0?"select":"text"}function o_e(e,t){const r=e[0]?.example||e[0]?.examples;if(r)return r;if(e.schema?.example)return e.schema.example;const n=t?.default?.value||t?.default?.rawValue;return n?.[e.name]?uQ(n?.[e.name])?String(n?.[e.name]):JSON.stringify(n?.[e.name]):""}function a_e(e){if(e?.fields)return e.fields;if(e?.oneOf){for(const t of e.oneOf)if(t?.fields)return t.fields}}function i_e(e,t,r){if(!e||!e.content?.mediaTypes){if(!r)return;const{activeExampleName:n,...o}=r;return{activeExampleName:n,mediaTypes:Object.fromEntries(Object.entries(o).map(([a,i])=>[a,{name:a,examples:{default:{value:i}},schema:{},parameters:[]}]))}}return{required:e.required,activeExampleName:r?.activeExampleName,mediaTypes:e.content.mediaTypes.reduce((n,o)=>{const a=o.schema,i=r?.[o.name]?{default:{value:r?.[o.name],rawValue:r?.[o.name],mime:o.name}}:o.examples||o.formExamples,s=a_e(a);return n[o.name]={name:o.name,examples:i,schema:KU(o.schema?.rawSchema,t),parameters:s?.map(c=>({inputType:n_e(c.schema),name:c.name,example:o_e(c,i)}))},n},{})}}function KU(e,t){if(!(!e||!t))return{...e,components:t?.components||{}}}function s_e(e){if(e)return e.map(({schemes:t})=>t.map(r=>{const n={id:r.id,type:r.type,in:r.in,openIdConnectUrl:r.openIdConnectUrl,scopes:r.scopes,scheme:r.scheme,name:r.name,flows:r.flows,serverValues:r.serverValues,"x-defaultAccessToken":r["x-defaultAccessToken"],"x-defaultTokenType":r["x-defaultTokenType"],"x-defaultClientId":r["x-defaultClientId"],"x-defaultClientSecret":r["x-defaultClientSecret"],"x-defaultUsername":r["x-defaultUsername"],"x-defaultPassword":r["x-defaultPassword"]};return Object.keys(n).forEach(o=>n[o]===void 0&&delete n[o]),n}))}const l_e=M.lazy(async()=>import("./redocly-openapi-docs.min.index-DdeY52iV.js").then(e=>e.bd).then(e=>({default:e.ReplayOverlay})));function c_e({operation:e,corsProxyUrl:t,fullOpenApi:r}){const n=kt(),o=Ya(),a=M.useRef(null),i=et(dn),{oAuth2RedirectURI:s,routingBasePath:c}=i,u=et(JU),{parser:d,options:{events:f}}=et(Qr),g=et(uS),[y,v]=M.useState(!1),[x,S]=un(X7e),[w,C]=un(f1),[[,A],T]=un(m1),L=M.useMemo(()=>({userClaims:g,info:d?.definition.info,operation:{name:e.name,path:e.path,operationId:e.operationId||"",href:e.href,method:e.httpVerb},servers:e.servers}),[g,d?.definition.info,e.name,e.path,e.operationId,e.href,e.httpVerb,e.servers]),{config:j,refresh:P}=Z7e(L,y),_=M.useCallback(()=>P(),[P]),I=M.useCallback(le=>{if(!le)return;const Y=u.find(ie=>ie.operationId===le);return Fr(c,Y?.href)},[u,c]),z=M.useMemo(()=>t_e(g,j,i,w),[g,j,i,w]),q=M.useMemo(()=>({corsProxyUrl:t,selectedEnvironment:A,apiId:d?.definition.info?.["x-metadata"]?.apiId,oAuth2RedirectURI:s,disableCollectionsTab:!0,storageKey:c,telemetry:{tracerName:"try-it",collectorUrl:axe()},HTTPSnippet:oo,convertOperationToReplayValue:z,dynamicReplayValues:j,getOperationUrl:I,onRequestReset:_}),[t,A,d?.definition.info,s,c,z,j,I,_]);Xv(a),Ed(y);const B=M.useCallback(({operations:le,environment:Y,environments:ie})=>{const re=le.reduce((de,X)=>{X.requestValues.body=X.requestValues.body instanceof URLSearchParams?Object.fromEntries(X.requestValues.body.entries()):X.requestValues.body;const{path:H,method:ae}=X.apiPath,K=Wt.compile(["paths",H,ae]);return de[K]=yp(h1(K),X),de},{});C({...w,...re}),T({environment:Y,environments:ie})},[w,C,T]),G=()=>{if(x!==Wl.LOADING){if(!y&&(o.sendTryItOpenedMessage([{id:"tryItButton",object:"button",uri:"urn:redocly:redoc:ui:button:tryItButton"}]),f?.tryItOpen&&e)){const le=$7e({operation:e});f.tryItOpen(le)}v(!y)}x===Wl.NOT_LOADED&&S(Wl.LOADING)},te=M.useCallback(le=>{if(f?.tryItSent&&e){const Y=D7e({operation:e,isSuccess:le});f.tryItSent(Y)}},[f,e]);return r?m.jsxs(m.Fragment,{children:[m.jsx(bt,{onClick:G,variant:"primary",iconPosition:"left",icon:x===Wl.LOADING?m.jsx(gx,{}):m.jsx(GU,{}),children:x===Wl.LOADING?n("openapi.loading","Loading..."):n("openapi.tryIt","Try it")}),y&&m.jsx(M.Suspense,{children:m.jsx(ip,{mountId:"api-content",children:m.jsx("div",{ref:a,children:m.jsx(l_e,{ReplayGate:WU,ReplayTopBarActions:YU,activeOperationId:e.operationId||e.pointer,api:r,onRequestChange:B,onClose:G,onLoad:()=>S(Wl.LOADED),settings:q,onRequestSent:te})})})})]}):null}const QU=M.memo(c_e);function p_e({operation:e,disableFooter:t,onPanelToggle:r,...n}){const o=Ya(),[{activeLanguage:a,languages:i},s]=un(g1),{samples:c}=G7e(e),{parser:u,options:{events:d,corsProxyUrl:f,hideReplay:g}}=et(Qr),y=!t&&!e.isWebhook&&!g&&!e.hideReplay,v=!!i?.length,x=iz(c,a),S=_=>{s(_),o.sendSelectLanguageClickedMessage([{id:"selectLanguageButton",object:"button",uri:"urn:redocly:redoc:ui:button:selectLanguageButton",language:_}]);const I=i?.find(z=>z.key===_);if(d?.codeSamplesLanguageSwitch&&I){const z=O7e({operation:e,sample:{lang:I.lang,label:I.title}});d.codeSamplesLanguageSwitch(z)}},w=et(Wa),{activeExampleName:C}=et(ao(e.pointer)),A=M.useCallback(({lang:_,title:I})=>()=>{const z=qU({operation:e,label:I,lang:_,type:"request",activeMimeName:w,activeExampleName:C});o.sendCopyCodeSnippetClickedMessage([{id:"copyCodeSnippetButton",object:"button",uri:"urn:redocly:redoc:ui:button:copyCodeSnippetButton",snippetType:"request",language:_}]),d?.codeSamplesCopy?.(z)},[e,o,d,w,C]),T=M.useCallback(_=>{r?.(_,"request-samples")},[r]),L=()=>m.jsxs(d_e,{isExpandable:!1,$withReplay:!v&&y,children:[m.jsx(h_e,{operation:e}),v&&m.jsx(hU,{activeTab:x,samples:c,onChange:S}),!v&&y&&m.jsx(QU,{operation:e,corsProxyUrl:f,fullOpenApi:u.definition})]}),j=M.useMemo(()=>{if(y&&v)return m.jsx(f_e,{children:m.jsx(QU,{operation:e,corsProxyUrl:f,fullOpenApi:u.definition})})},[y,v,e,f,u.definition]),P=M.useMemo(()=>c.map(_=>_.key===x?m.jsx("div",{children:hCe(_)?m.jsx(FS,{content:_.requestBodyContent,onCopyClick:A(_),onPanelToggle:T,...n}):m.jsx(Y7e,{lang:_.lang,source:_.source,externalSample:_,operation:e,onCopyClick:A(_),...n})},_.key+e.id):null),[x,A,T,e,n,c]);return i&&!c.length?m.jsx(Ns,{className:"panel-request-samples",header:L,isExpandable:!1,expanded:!1}):c.length?m.jsx(Ns,{className:"panel-request-samples",header:L,footer:j,isExpandable:!1,children:P}):null}const u_e=M.memo(p_e),d_e=oe(Op)`
11681
+ `;async function Q7e(e){return null}function Z7e(e,t){const[r,n]=M.useState(),o=M.useCallback(async()=>{try{const a=await Q7e();n(a)}catch(a){console.warn("Failed to configure replay for operation:",e.operation.operationId,a)}},[]);return M.useEffect(()=>{t&&o()},[t,o]),{config:r,refresh:o}}const X7e=Br(Wl.NOT_LOADED),JU=Br([]);function e_e(e,t,r,n,o,a,i,s){if(!r)return;const c=new BI(r),u=c.definition.paths?.[e];let d=u?.[t];!d&&u?.additionalOperations&&(d=u.additionalOperations[t]);const f=oS(c,{...d,pathName:e,httpVerb:t,pathParameters:u.parameters||[],pathServers:u.servers||[]},void 0,s??Y2({}),"",{isCallback:!1},n,i);if(!f)return;const g=f.requestBody?.content?.mediaTypes[0]?.name||"application/json";return{id:f.id,name:f.name,method:f.httpVerb,operationId:f.operationId,parameters:r_e(f.parameters,o?.requestValues),body:i_e(f.requestBody,r,o?.requestValues?.body?{activeExampleName:o?.activeExampleName,[g]:o?.requestValues?.body}:o?.activeExampleName?{activeExampleName:o?.activeExampleName}:void 0),path:f.path,href:f.href,servers:f.servers,security:s_e(f.security),responses:Object.fromEntries(f.responses.map(y=>[y.code,{code:y.code,description:y.description,mediaTypes:y.content?.mediaTypes.reduce((v,x)=>(v[x.name]={name:x.name,schema:KU(x.schema?.rawSchema,r)},v),{})}]))}}function t_e(e,t,r,n){return function(o,a,i){const s=Wt.compile(["paths",o,a]),c=n?.[s],u=e_e(o,a,i,e,c,void 0,t,r);if(u)return{...u,operationId:u.operationId||Wt.compile(["paths",u.path,u.method])}}}function r_e(e,t){const r=new Set,n=e.map(o=>(r.add(o.in+":"+o.name),{name:o.name,in:o.in,required:o.required,description:o.description,example:t?.[String(o.in)]?.[o.name]||o.example,schema:o.schema,...o.allowReserved&&{allowReserved:o.allowReserved}}));for(const[o,a]of Object.entries(t||{}))for(const[i,s]of Object.entries(a||{}))r.has(o+":"+i)||n.push({name:i,in:o,required:!1,description:"",example:String(s),schema:void 0});return n}function n_e({type:e,format:t,enum:r}){return e==="string"&&(t==="binary"||t==="base64")?"file":e==="object"?"multiline":r.length>0?"select":"text"}function o_e(e,t){const r=e[0]?.example||e[0]?.examples;if(r)return r;if(e.schema?.example)return e.schema.example;const n=t?.default?.value||t?.default?.rawValue;return n?.[e.name]?uQ(n?.[e.name])?String(n?.[e.name]):JSON.stringify(n?.[e.name]):""}function a_e(e){if(e?.fields)return e.fields;if(e?.oneOf){for(const t of e.oneOf)if(t?.fields)return t.fields}}function i_e(e,t,r){if(!e||!e.content?.mediaTypes){if(!r)return;const{activeExampleName:n,...o}=r;return{activeExampleName:n,mediaTypes:Object.fromEntries(Object.entries(o).map(([a,i])=>[a,{name:a,examples:{default:{value:i}},schema:{},parameters:[]}]))}}return{required:e.required,activeExampleName:r?.activeExampleName,mediaTypes:e.content.mediaTypes.reduce((n,o)=>{const a=o.schema,i=r?.[o.name]?{default:{value:r?.[o.name],rawValue:r?.[o.name],mime:o.name}}:o.examples||o.formExamples,s=a_e(a);return n[o.name]={name:o.name,examples:i,schema:KU(o.schema?.rawSchema,t),parameters:s?.map(c=>({inputType:n_e(c.schema),name:c.name,example:o_e(c,i)}))},n},{})}}function KU(e,t){if(!(!e||!t))return{...e,components:t?.components||{}}}function s_e(e){if(e)return e.map(({schemes:t})=>t.map(r=>{const n={id:r.id,type:r.type,in:r.in,openIdConnectUrl:r.openIdConnectUrl,scopes:r.scopes,scheme:r.scheme,name:r.name,flows:r.flows,serverValues:r.serverValues,"x-defaultAccessToken":r["x-defaultAccessToken"],"x-defaultTokenType":r["x-defaultTokenType"],"x-defaultClientId":r["x-defaultClientId"],"x-defaultClientSecret":r["x-defaultClientSecret"],"x-defaultUsername":r["x-defaultUsername"],"x-defaultPassword":r["x-defaultPassword"]};return Object.keys(n).forEach(o=>n[o]===void 0&&delete n[o]),n}))}const l_e=M.lazy(async()=>import("./redocly-openapi-docs.min.index-DWajc5Ac.js").then(e=>e.bd).then(e=>({default:e.ReplayOverlay})));function c_e({operation:e,corsProxyUrl:t,fullOpenApi:r}){const n=kt(),o=Ya(),a=M.useRef(null),i=et(dn),{oAuth2RedirectURI:s,routingBasePath:c}=i,u=et(JU),{parser:d,options:{events:f}}=et(Qr),g=et(uS),[y,v]=M.useState(!1),[x,S]=un(X7e),[w,C]=un(f1),[[,A],T]=un(m1),L=M.useMemo(()=>({userClaims:g,info:d?.definition.info,operation:{name:e.name,path:e.path,operationId:e.operationId||"",href:e.href,method:e.httpVerb},servers:e.servers}),[g,d?.definition.info,e.name,e.path,e.operationId,e.href,e.httpVerb,e.servers]),{config:j,refresh:P}=Z7e(L,y),_=M.useCallback(()=>P(),[P]),I=M.useCallback(le=>{if(!le)return;const Y=u.find(ie=>ie.operationId===le);return Fr(c,Y?.href)},[u,c]),z=M.useMemo(()=>t_e(g,j,i,w),[g,j,i,w]),q=M.useMemo(()=>({corsProxyUrl:t,selectedEnvironment:A,apiId:d?.definition.info?.["x-metadata"]?.apiId,oAuth2RedirectURI:s,disableCollectionsTab:!0,storageKey:c,telemetry:{tracerName:"try-it",collectorUrl:axe()},HTTPSnippet:oo,convertOperationToReplayValue:z,dynamicReplayValues:j,getOperationUrl:I,onRequestReset:_}),[t,A,d?.definition.info,s,c,z,j,I,_]);Xv(a),Ed(y);const B=M.useCallback(({operations:le,environment:Y,environments:ie})=>{const re=le.reduce((de,X)=>{X.requestValues.body=X.requestValues.body instanceof URLSearchParams?Object.fromEntries(X.requestValues.body.entries()):X.requestValues.body;const{path:H,method:ae}=X.apiPath,K=Wt.compile(["paths",H,ae]);return de[K]=yp(h1(K),X),de},{});C({...w,...re}),T({environment:Y,environments:ie})},[w,C,T]),G=()=>{if(x!==Wl.LOADING){if(!y&&(o.sendTryItOpenedMessage([{id:"tryItButton",object:"button",uri:"urn:redocly:redoc:ui:button:tryItButton"}]),f?.tryItOpen&&e)){const le=$7e({operation:e});f.tryItOpen(le)}v(!y)}x===Wl.NOT_LOADED&&S(Wl.LOADING)},te=M.useCallback(le=>{if(f?.tryItSent&&e){const Y=D7e({operation:e,isSuccess:le});f.tryItSent(Y)}},[f,e]);return r?m.jsxs(m.Fragment,{children:[m.jsx(bt,{onClick:G,variant:"primary",iconPosition:"left",icon:x===Wl.LOADING?m.jsx(gx,{}):m.jsx(GU,{}),children:x===Wl.LOADING?n("openapi.loading","Loading..."):n("openapi.tryIt","Try it")}),y&&m.jsx(M.Suspense,{children:m.jsx(ip,{mountId:"api-content",children:m.jsx("div",{ref:a,children:m.jsx(l_e,{ReplayGate:WU,ReplayTopBarActions:YU,activeOperationId:e.operationId||e.pointer,api:r,onRequestChange:B,onClose:G,onLoad:()=>S(Wl.LOADED),settings:q,onRequestSent:te})})})})]}):null}const QU=M.memo(c_e);function p_e({operation:e,disableFooter:t,onPanelToggle:r,...n}){const o=Ya(),[{activeLanguage:a,languages:i},s]=un(g1),{samples:c}=G7e(e),{parser:u,options:{events:d,corsProxyUrl:f,hideReplay:g}}=et(Qr),y=!t&&!e.isWebhook&&!g&&!e.hideReplay,v=!!i?.length,x=iz(c,a),S=_=>{s(_),o.sendSelectLanguageClickedMessage([{id:"selectLanguageButton",object:"button",uri:"urn:redocly:redoc:ui:button:selectLanguageButton",language:_}]);const I=i?.find(z=>z.key===_);if(d?.codeSamplesLanguageSwitch&&I){const z=O7e({operation:e,sample:{lang:I.lang,label:I.title}});d.codeSamplesLanguageSwitch(z)}},w=et(Wa),{activeExampleName:C}=et(ao(e.pointer)),A=M.useCallback(({lang:_,title:I})=>()=>{const z=qU({operation:e,label:I,lang:_,type:"request",activeMimeName:w,activeExampleName:C});o.sendCopyCodeSnippetClickedMessage([{id:"copyCodeSnippetButton",object:"button",uri:"urn:redocly:redoc:ui:button:copyCodeSnippetButton",snippetType:"request",language:_}]),d?.codeSamplesCopy?.(z)},[e,o,d,w,C]),T=M.useCallback(_=>{r?.(_,"request-samples")},[r]),L=()=>m.jsxs(d_e,{isExpandable:!1,$withReplay:!v&&y,children:[m.jsx(h_e,{operation:e}),v&&m.jsx(hU,{activeTab:x,samples:c,onChange:S}),!v&&y&&m.jsx(QU,{operation:e,corsProxyUrl:f,fullOpenApi:u.definition})]}),j=M.useMemo(()=>{if(y&&v)return m.jsx(f_e,{children:m.jsx(QU,{operation:e,corsProxyUrl:f,fullOpenApi:u.definition})})},[y,v,e,f,u.definition]),P=M.useMemo(()=>c.map(_=>_.key===x?m.jsx("div",{children:hCe(_)?m.jsx(FS,{content:_.requestBodyContent,onCopyClick:A(_),onPanelToggle:T,...n}):m.jsx(Y7e,{lang:_.lang,source:_.source,externalSample:_,operation:e,onCopyClick:A(_),...n})},_.key+e.id):null),[x,A,T,e,n,c]);return i&&!c.length?m.jsx(Ns,{className:"panel-request-samples",header:L,isExpandable:!1,expanded:!1}):c.length?m.jsx(Ns,{className:"panel-request-samples",header:L,footer:j,isExpandable:!1,children:P}):null}const u_e=M.memo(p_e),d_e=oe(Op)`
11682
11682
  flex-wrap: nowrap;
11683
11683
  ${({$withReplay:e})=>e&&"padding: var(--spacing-xs) var(--spacing-sm);"}
11684
11684
  `,h_e=oe(HU)`
@@ -12109,4 +12109,4 @@ ${i.commentBefore}`:a}e.comment=r.after.join(`
12109
12109
  `)||null}}function nBe({tagPrefixes:e},t){const[r,n]=t.parameters;if(!r||!n){const o="Insufficient parameters given for %TAG directive";throw new St(t,o)}if(e.some(o=>o.handle===r)){const o="The %TAG directive must only be given at most once per handle in the same document.";throw new St(t,o)}return{handle:r,prefix:n}}function oBe(e,t){let[r]=t.parameters;if(t.name==="YAML:1.0"&&(r="1.0"),!r){const n="Insufficient parameters given for %YAML directive";throw new St(t,n)}if(!oW[r]){const n=`Document will be parsed as YAML ${e.version||e.options.version} rather than YAML ${r}`;e.warnings.push(new su(t,n))}return r}function aBe(e,t,r){const n=[];let o=!1;for(const a of t){const{comment:i,name:s}=a;switch(s){case"TAG":try{e.tagPrefixes.push(nBe(e,a))}catch(c){e.errors.push(c)}o=!0;break;case"YAML":case"YAML:1.0":if(e.version){const c="The %YAML directive must only be given at most once per document.";e.errors.push(new St(a,c))}try{e.version=oBe(e,a)}catch(c){e.errors.push(c)}o=!0;break;default:if(s){const c=`YAML only supports %TAG and %YAML directives, and not %${s}`;e.warnings.push(new su(a,c))}}i&&n.push(i)}if(r&&!o&&(e.version||r.version||e.options.version)==="1.1"){const a=({handle:i,prefix:s})=>({handle:i,prefix:s});e.tagPrefixes=r.tagPrefixes.map(a),e.version=r.version}e.commentBefore=n.join(`
12110
12110
  `)||null}function pu(e){if(e instanceof Er)return!0;throw new Error("Expected a YAML collection as document contents")}class bu{constructor(t){this.anchors=new Fk(t.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=t,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}add(t){return pu(this.contents),this.contents.add(t)}addIn(t,r){pu(this.contents),this.contents.addIn(t,r)}delete(t){return pu(this.contents),this.contents.delete(t)}deleteIn(t){return nf(t)?this.contents==null?!1:(this.contents=null,!0):(pu(this.contents),this.contents.deleteIn(t))}getDefaults(){return bu.defaults[this.version]||bu.defaults[this.options.version]||{}}get(t,r){return this.contents instanceof Er?this.contents.get(t,r):void 0}getIn(t,r){return nf(t)?!r&&this.contents instanceof tr?this.contents.value:this.contents:this.contents instanceof Er?this.contents.getIn(t,r):void 0}has(t){return this.contents instanceof Er?this.contents.has(t):!1}hasIn(t){return nf(t)?this.contents!==void 0:this.contents instanceof Er?this.contents.hasIn(t):!1}set(t,r){pu(this.contents),this.contents.set(t,r)}setIn(t,r){nf(t)?this.contents=r:(pu(this.contents),this.contents.setIn(t,r))}setSchema(t,r){if(!t&&!r&&this.schema)return;typeof t=="number"&&(t=t.toFixed(1)),t==="1.0"||t==="1.1"||t==="1.2"?(this.version?this.version=t:this.options.version=t,delete this.options.schema):t&&typeof t=="string"&&(this.options.schema=t),Array.isArray(r)&&(this.options.customTags=r);const n=Object.assign({},this.getDefaults(),this.options);this.schema=new yc(n)}parse(t,r){this.options.keepCstNodes&&(this.cstNode=t),this.options.keepNodeTypes&&(this.type="DOCUMENT");const{directives:n=[],contents:o=[],directivesEndMarker:a,error:i,valueRange:s}=t;if(i&&(i.source||(i.source=this),this.errors.push(i)),aBe(this,n,r),a&&(this.directivesEndMarker=!0),this.range=s?[s.start,s.end]:null,this.setSchema(),this.anchors._cstAliases=[],rBe(this,o),this.anchors.resolveNodes(),this.options.prettyErrors){for(const c of this.errors)c instanceof hc&&c.makePretty();for(const c of this.warnings)c instanceof hc&&c.makePretty()}return this}listNonDefaultTags(){return tBe(this.contents).filter(t=>t.indexOf(yc.defaultPrefix)!==0)}setTagPrefix(t,r){if(t[0]!=="!"||t[t.length-1]!=="!")throw new Error("Handle must start and end with !");if(r){const n=this.tagPrefixes.find(o=>o.handle===t);n?n.prefix=r:this.tagPrefixes.push({handle:t,prefix:r})}else this.tagPrefixes=this.tagPrefixes.filter(n=>n.handle!==t)}toJSON(t,r){const{keepBlobsInJSON:n,mapAsMap:o,maxAliasCount:a}=this.options,i=n&&(typeof t!="string"||!(this.contents instanceof tr)),s={doc:this,indentStep:" ",keep:i,mapAsMap:i&&!!o,maxAliasCount:a,stringify:ny},c=Object.keys(this.anchors.map);c.length>0&&(s.anchors=new Map(c.map(d=>[this.anchors.map[d],{alias:[],aliasCount:0,count:1}])));const u=Ea(this.contents,t,s);if(typeof r=="function"&&s.anchors)for(const{count:d,res:f}of s.anchors.values())r(f,d);return u}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");const t=this.options.indent;if(!Number.isInteger(t)||t<=0){const c=JSON.stringify(t);throw new Error(`"indent" option must be a positive integer, not ${c}`)}this.setSchema();const r=[];let n=!1;if(this.version){let c="%YAML 1.2";this.schema.name==="yaml-1.1"&&(this.version==="1.0"?c="%YAML:1.0":this.version==="1.1"&&(c="%YAML 1.1")),r.push(c),n=!0}const o=this.listNonDefaultTags();this.tagPrefixes.forEach(({handle:c,prefix:u})=>{o.some(d=>d.indexOf(u)===0)&&(r.push(`%TAG ${c} ${u}`),n=!0)}),(n||this.directivesEndMarker)&&r.push("---"),this.commentBefore&&((n||!this.directivesEndMarker)&&r.unshift(""),r.unshift(this.commentBefore.replace(/^/gm,"#")));const a={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(t),stringify:ny};let i=!1,s=null;if(this.contents){this.contents instanceof uo&&(this.contents.spaceBefore&&(n||this.directivesEndMarker)&&r.push(""),this.contents.commentBefore&&r.push(this.contents.commentBefore.replace(/^/gm,"#")),a.forceBlockIndent=!!this.comment,s=this.contents.comment);const c=s?null:()=>i=!0,u=ny(this.contents,a,()=>s=null,c);r.push(lu(u,"",s))}else this.contents!==void 0&&r.push(ny(this.contents,a));return this.comment&&((!i||s)&&r[r.length-1]!==""&&r.push(""),r.push(this.comment.replace(/^/gm,"#"))),r.join(`
12111
12111
  `)+`
12112
- `}}_n(bu,"defaults",oW);function iBe(e,t=!0,r){r===void 0&&typeof t=="string"&&(r=t,t=!0);const n=Object.assign({},bu.defaults[ry.version],ry);return new yc(n).createNode(e,t,r)}class ay extends bu{constructor(t){super(Object.assign({},ry,t))}}function sBe(e,t){const r=[];let n;for(const o of Q3(e)){const a=new ay(t);a.parse(o,n),r.push(a),n=a}return r}function iW(e,t){const r=Q3(e),n=new ay(t).parse(r[0]);if(r.length>1){const o="Source contains multiple documents; please use YAML.parseAllDocuments()";n.errors.unshift(new St(r[1],o))}return n}function lBe(e,t){const r=iW(e,t);if(r.warnings.forEach(n=>HV(n)),r.errors.length>0)throw r.errors[0];return r.toJSON()}function cBe(e,t){const r=new ay(t);return r.contents=e,String(r)}const pBe={createNode:iBe,defaultOptions:ry,Document:ay,parse:lBe,parseAllDocuments:sBe,parseCST:Q3,parseDocument:iW,scalarOptions:Zze,stringify:cBe},uBe=Object.freeze(Object.defineProperty({__proto__:null,YAML:pBe},Symbol.toStringTag,{value:"Module"})),dBe=ia(uBe);var sW,lW;function hBe(){return lW||(lW=1,sW=dBe.YAML),sW}var ik,cW;function fBe(){if(cW)return ik;cW=1;const e=Y3().recurse,t=Hb().shallowClone,r=qb().jptr,n=H3().isRef;var o=function(i){return i&&i.verbose?{warn:function(){var s=Array.prototype.slice.call(arguments);console.warn.apply(console,s)}}:{warn:function(){}}};function a(i,s,c){c||(c={}),c.cache||(c.cache={}),c.state||(c.state={}),c.state.identityDetection=!0,c.depth=c.depth?c.depth+1:1;let u=c.depth>1?i:t(i),d={data:u},f=c.depth>1?s:t(s);c.master||(c.master=u);let g=o(c),y=1;for(;y>0;)y=0,e(d,c.state,function(v,x,S){if(n(v,x)){let w=v[x];if(y++,c.cache[w]){let C=c.cache[w];if(C.resolved)g.warn("Patching %s for %s",w,C.path),S.parent[S.pkey]=C.data,c.$ref&&typeof S.parent[S.pkey]=="object"&&S.parent[S.pkey]!==null&&(S.parent[S.pkey][c.$ref]=w);else{if(w===C.path)throw new Error(`Tight circle at ${C.path}`);g.warn("Unresolved ref"),S.parent[S.pkey]=r(C.source,C.path),S.parent[S.pkey]===!1&&(S.parent[S.pkey]=r(C.source,C.key)),c.$ref&&typeof S.parent[S.pkey]=="object"&&S.parent[S.pkey]!==null&&(S.parent[c.$ref]=w)}}else{let C={};C.path=S.path.split("/$ref")[0],C.key=w,g.warn("Dereffing %s at %s",w,C.path),C.source=f,C.data=r(C.source,C.key),C.data===!1&&(C.data=r(c.master,C.key),C.source=c.master),C.data===!1&&g.warn("Missing $ref target",C.key),c.cache[w]=C,C.data=S.parent[S.pkey]=a(r(C.source,C.key),C.source,c),c.$ref&&typeof S.parent[S.pkey]=="object"&&S.parent[S.pkey]!==null&&(S.parent[S.pkey][c.$ref]=w),C.resolved=!0}}});return d.data}return ik={dereference:a},ik}var sk,pW;function mBe(){if(pW)return sk;pW=1,sk=a,a.default=a,a.stable=u,a.stableStringify=u;var e="[...]",t="[Circular]",r=[],n=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(g,y,v,x){typeof x>"u"&&(x=o()),s(g,"",0,[],void 0,0,x);var S;try{n.length===0?S=JSON.stringify(g,y,v):S=JSON.stringify(g,f(y),v)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var w=r.pop();w.length===4?Object.defineProperty(w[0],w[1],w[3]):w[0][w[1]]=w[2]}}return S}function i(g,y,v,x){var S=Object.getOwnPropertyDescriptor(x,v);S.get!==void 0?S.configurable?(Object.defineProperty(x,v,{value:g}),r.push([x,v,y,S])):n.push([y,v,g]):(x[v]=g,r.push([x,v,y]))}function s(g,y,v,x,S,w,C){w+=1;var A;if(typeof g=="object"&&g!==null){for(A=0;A<x.length;A++)if(x[A]===g){i(t,g,y,S);return}if(typeof C.depthLimit<"u"&&w>C.depthLimit){i(e,g,y,S);return}if(typeof C.edgesLimit<"u"&&v+1>C.edgesLimit){i(e,g,y,S);return}if(x.push(g),Array.isArray(g))for(A=0;A<g.length;A++)s(g[A],A,A,x,g,w,C);else{var T=Object.keys(g);for(A=0;A<T.length;A++){var L=T[A];s(g[L],L,A,x,g,w,C)}}x.pop()}}function c(g,y){return g<y?-1:g>y?1:0}function u(g,y,v,x){typeof x>"u"&&(x=o());var S=d(g,"",0,[],void 0,0,x)||g,w;try{n.length===0?w=JSON.stringify(S,y,v):w=JSON.stringify(S,f(y),v)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var C=r.pop();C.length===4?Object.defineProperty(C[0],C[1],C[3]):C[0][C[1]]=C[2]}}return w}function d(g,y,v,x,S,w,C){w+=1;var A;if(typeof g=="object"&&g!==null){for(A=0;A<x.length;A++)if(x[A]===g){i(t,g,y,S);return}try{if(typeof g.toJSON=="function")return}catch{return}if(typeof C.depthLimit<"u"&&w>C.depthLimit){i(e,g,y,S);return}if(typeof C.edgesLimit<"u"&&v+1>C.edgesLimit){i(e,g,y,S);return}if(x.push(g),Array.isArray(g))for(A=0;A<g.length;A++)d(g[A],A,A,x,g,w,C);else{var T={},L=Object.keys(g).sort(c);for(A=0;A<L.length;A++){var j=L[A];d(g[j],j,A,x,g,w,C),T[j]=g[j]}if(typeof S<"u")r.push([S,y,g]),S[y]=T;else return T}x.pop()}}function f(g){return g=typeof g<"u"?g:function(y,v){return v},function(y,v){if(n.length>0)for(var x=0;x<n.length;x++){var S=n[x];if(S[1]===y&&S[0]===v){v=S[2],n.splice(x,1);break}}return g.call(this,y,v)}}return sk}var lk,uW;function dW(){if(uW)return lk;uW=1;var e={};const t=mBe(),r=e.NODE_DISABLE_COLORS?{red:"",yellow:"",green:"",normal:""}:{red:"\x1B[31m",yellow:"\x1B[33;1m",green:"\x1B[32m",normal:"\x1B[0m"};function n(S,w,C){return C.indexOf(S)===w}function o(S){return new Set(S).size!==S.length}function a(S){return new Set(S).size<=1}function i(S,w){function C(A,T){return t.stringify(A)===t.stringify(Object.assign({},A,T))}return C(S,w)&&C(w,S)}function s(S){let w=[];for(let C of S)w.find(function(A,T,L){return i(A,C)})||w.push(C);return w}function c(S){return S.length===s(S).length}function u(S){return S.find(function(w,C,A){return S.indexOf(w)<C})}function d(S){let w=0,C;if(S.length===0)return w;for(let A=0;A<S.length;A++)C=S.charCodeAt(A),w=(w<<5)-w+C,w|=0;return w}String.prototype.toCamelCase=function(){return this.toLowerCase().replace(/[-_ \/\.](.)/g,function(S,w){return w.toUpperCase()})};const f=["format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","minLength","maxLength","multipleOf","minItems","maxItems","uniqueItems","minProperties","maxProperties","additionalProperties","pattern","enum","default"],g=["items","minItems","maxItems","uniqueItems"],y=["get","post","put","delete","patch","head","options","trace"];function v(S){S=S.replace("[]","Array");let w=S.split("/");return w[0]=w[0].replace(/[^A-Za-z0-9_\-\.]+|\s+/gm,"_"),w.join("/")}function x(S){return v(S.split("/").join("_"))}return lk={colour:r,uniqueOnly:n,hasDuplicates:o,allSame:a,distinctArray:c,firstDupe:u,hash:d,parameterTypeProperties:f,arrayProperties:g,httpMethods:y,sanitise:v,sanitiseAll:x},lk}var ck,hW;function gBe(){if(hW)return ck;hW=1;const e=ub,t=JP(),r=c3(),n=ub,o=hBe(),a=qb().jptr,i=Y3().recurse,s=Hb().clone,c=fBe().dereference,u=H3().isRef,d=dW();function f(_){return[...new Set(_)]}function g(_,I,z,q,B){return new Promise(function(G,te){e.readFile(_,I,function(le,Y){le?z.ignoreIOErrors&&B?(z.verbose&&console.warn("FAILED",q),z.externalRefs[q].failed=!0,G(B)):te(le):G(Y)})})}function y(_,I,z,q,B,G){let te=G.externalRefs[z+q].paths[0],le=r.parse(B),Y={},ie=1;for(;ie;)ie=0,i(_,{identityDetection:!0},function(re,de,X){if(u(re,de)){if(re[de].startsWith("#")){if(!Y[re[de]]&&!re.$fixed){let H=s(a(I,re[de]));if(G.verbose>1&&console.warn((H===!1?d.colour.red:d.colour.green)+"Fragment resolution",re[de],d.colour.normal),H===!1){if(X.parent[X.pkey]={},G.fatal){let ae=new Error("Fragment $ref resolution failed "+re[de]);if(G.promise)G.promise.reject(ae);else throw ae}}else ie++,X.parent[X.pkey]=H,Y[re[de]]=X.path.replace("/%24ref","")}else if(!re.$fixed){let H=(te+"/"+Y[re[de]]).split("/#/").join("/");X.parent[X.pkey]={$ref:H,"x-miro":re[de],$fixed:!0},G.verbose>1&&console.warn("Replacing with",H),ie++}}else if(le.protocol){let H=r.resolve(B,re[de]).toString();G.verbose>1&&console.warn(d.colour.yellow+"Rewriting external url ref",re[de],"as",H,d.colour.normal),re["x-miro"]=re[de],G.externalRefs[re[de]]&&(G.externalRefs[H]||(G.externalRefs[H]=G.externalRefs[re[de]]),G.externalRefs[H].failed=G.externalRefs[re[de]].failed),re[de]=H}else if(!re["x-miro"]){let H=r.resolve(B,re[de]).toString(),ae=!1;G.externalRefs[re[de]]&&(ae=G.externalRefs[re[de]].failed),ae||(G.verbose>1&&console.warn(d.colour.yellow+"Rewriting external ref",re[de],"as",H,d.colour.normal),re["x-miro"]=re[de],re[de]=H)}}});return i(_,{},function(re,de,X){u(re,de)&&typeof re.$fixed<"u"&&delete re.$fixed}),G.verbose>1&&console.warn("Finished fragment resolution"),_}function v(_,I){if(!I.filters||!I.filters.length)return _;for(let z of I.filters)_=z(_,I);return _}function x(_,I){return _&&_.length>2?_:I&&I.length>2?I:"file:"}function S(_,I,z,q){var B=r.parse(z.source),G=z.source.split("\\").join("/").split("/");G.pop()||G.pop();let te="",le=I.split("#");le.length>1&&(te="#"+le[1],I=le[0]),G=G.join("/");let Y=r.parse(I),ie=x(Y.protocol,B.protocol),re;if(ie==="file:"?re=t.resolve(G?G+"/":"",I):re=r.resolve(G?G+"/":"",I),z.cache[re]){z.verbose&&console.warn("CACHED",re,te);let de=s(z.cache[re]),X=z.externalRef=de;if(te&&(X=a(X,te),X===!1&&(X={},z.fatal))){let H=new Error("Cached $ref resolution failed "+re+te);if(z.promise)z.promise.reject(H);else throw H}return X=y(X,de,I,te,re,z),X=v(X,z),q(s(X),re,z),Promise.resolve(X)}if(z.verbose&&console.warn("GET",re,te),z.handlers&&z.handlers[ie])return z.handlers[ie](G,I,te,z).then(function(de){return z.externalRef=de,de=v(de,z),z.cache[re]=de,q(de,re,z),de}).catch(function(de){throw z.verbose&&console.warn(de),de});if(ie&&ie.startsWith("http")){const de=Object.assign({},z.fetchOptions,{agent:z.agent});return z.fetch(re,de).then(function(X){if(X.status!==200){if(z.ignoreIOErrors)return z.verbose&&console.warn("FAILED",I),z.externalRefs[I].failed=!0,'{"$ref":"'+I+'"}';throw new Error(`Received status code ${X.status}: ${re}`)}return X.text()}).then(function(X){try{let H=o.parse(X,{schema:"core",prettyErrors:!0});if(X=z.externalRef=H,z.cache[re]=s(X),te&&(X=a(X,te),X===!1&&(X={},z.fatal))){let ae=new Error("Remote $ref resolution failed "+re+te);if(z.promise)z.promise.reject(ae);else throw ae}X=y(X,H,I,te,re,z),X=v(X,z)}catch(H){if(z.verbose&&console.warn(H),z.promise&&z.fatal)z.promise.reject(H);else throw H}return q(X,re,z),X}).catch(function(X){if(z.verbose&&console.warn(X),z.cache[re]={},z.promise&&z.fatal)z.promise.reject(X);else throw X})}else{const de='{"$ref":"'+I+'"}';return g(re,z.encoding||"utf8",z,I,de).then(function(X){try{let H=o.parse(X,{schema:"core",prettyErrors:!0});if(X=z.externalRef=H,z.cache[re]=s(X),te&&(X=a(X,te),X===!1&&(X={},z.fatal))){let ae=new Error("File $ref resolution failed "+re+te);if(z.promise)z.promise.reject(ae);else throw ae}X=y(X,H,I,te,re,z),X=v(X,z)}catch(H){if(z.verbose&&console.warn(H),z.promise&&z.fatal)z.promise.reject(H);else throw H}return q(X,re,z),X}).catch(function(X){if(z.verbose&&console.warn(X),z.promise&&z.fatal)z.promise.reject(X);else throw X})}}function w(_){return new Promise(function(I,z){function q(G,te,le){if(G[te]&&u(G[te],"$ref")){let Y=G[te].$ref;if(!Y.startsWith("#")){let ie="";if(!B[Y]){let re=Object.keys(B).find(function(de,X,H){return Y.startsWith(de+"/")});re&&(_.verbose&&console.warn("Found potential subschema at",re),ie="/"+(Y.split("#")[1]||"").replace(re.split("#")[1]||""),ie=ie.split("/undefined").join(""),Y=re)}if(B[Y]||(B[Y]={resolved:!1,paths:[],extras:{},description:G[te].description}),B[Y].resolved){if(!B[Y].failed)if(_.rewriteRefs){let re=B[Y].resolvedAt;_.verbose>1&&console.warn("Rewriting ref",Y,re),G[te]["x-miro"]=Y,G[te].$ref=re+ie}else G[te]=s(B[Y].data)}else B[Y].paths.push(le.path),B[Y].extras[le.path]=ie}}}let B=_.externalRefs;if(_.resolver.depth>0&&_.source===_.resolver.base)return I(B);i(_.openapi.definitions,{identityDetection:!0,path:"#/definitions"},q),i(_.openapi.components,{identityDetection:!0,path:"#/components"},q),i(_.openapi,{identityDetection:!0},q),I(B)})}function C(_){return new Promise(function(I,z){w(_).then(function(B){for(let G in B)if(!B[G].resolved){let te=_.resolver.depth;te>0&&te++,_.resolver.actions[te].push(function(){return S(_.openapi,G,_,function(le,Y,ie){if(!B[G].resolved){let X={};X.context=B[G],X.$ref=G,X.original=s(le),X.updated=le,X.source=Y,ie.externals.push(X),B[G].resolved=!0}let re=Object.assign({},ie,{source:"",resolver:{actions:ie.resolver.actions,depth:ie.resolver.actions.length-1,base:ie.resolver.base}});ie.patch&&B[G].description&&!le.description&&typeof le=="object"&&(le.description=B[G].description),B[G].data=le;let de=f(B[G].paths);de=de.sort(function(X,H){const ae=X.startsWith("#/components/")||X.startsWith("#/definitions/"),K=H.startsWith("#/components/")||H.startsWith("#/definitions/");return ae&&!K?-1:K&&!ae?1:0});for(let X of de)if(B[G].resolvedAt&&X!==B[G].resolvedAt&&X.indexOf("x-ms-examples/")<0)ie.verbose>1&&console.warn("Creating pointer to data at",X),a(ie.openapi,X,{$ref:B[G].resolvedAt+B[G].extras[X],"x-miro":G+B[G].extras[X]});else{B[G].resolvedAt?ie.verbose>1&&console.warn("Avoiding circular reference"):(B[G].resolvedAt=X,ie.verbose>1&&console.warn("Creating initial clone of data at",X));let H=s(le);a(ie.openapi,X,H)}ie.resolver.actions[re.resolver.depth].length===0&&ie.resolver.actions[re.resolver.depth].push(function(){return C(re)})})})}}).catch(function(B){_.verbose&&console.warn(B),z(B)});let q={options:_};q.actions=_.resolver.actions[_.resolver.depth],I(q)})}const A=_=>_.reduce((I,z)=>I.then(q=>z().then(Array.prototype.concat.bind(q))),Promise.resolve([]));function T(_,I,z){_.resolver.actions.push([]),C(_).then(function(q){A(q.actions).then(function(){if(_.resolver.depth>=_.resolver.actions.length)return console.warn("Ran off the end of resolver actions"),I(!0);_.resolver.depth++,_.resolver.actions[_.resolver.depth].length?setTimeout(function(){T(q.options,I,z)},0):(_.verbose>1&&console.warn(d.colour.yellow+"Finished external resolution!",d.colour.normal),_.resolveInternal&&(_.verbose>1&&console.warn(d.colour.yellow+"Starting internal resolution!",d.colour.normal),_.openapi=c(_.openapi,_.original,{verbose:_.verbose-1}),_.verbose>1&&console.warn(d.colour.yellow+"Finished internal resolution!",d.colour.normal)),i(_.openapi,{},function(B,G,te){u(B,G)&&(_.preserveMiro||delete B["x-miro"])}),I(_))}).catch(function(B){_.verbose&&console.warn(B),z(B)})}).catch(function(q){_.verbose&&console.warn(q),z(q)})}function L(_){if(_.cache||(_.cache={}),_.fetch||(_.fetch=n),_.source){let I=r.parse(_.source);(!I.protocol||I.protocol.length<=2)&&(_.source=t.resolve(_.source))}_.externals=[],_.externalRefs={},_.rewriteRefs=!0,_.resolver={},_.resolver.depth=0,_.resolver.base=_.source,_.resolver.actions=[[]]}function j(_){return L(_),new Promise(function(I,z){_.resolve?T(_,I,z):I(_)})}function P(_,I,z){return z||(z={}),z.openapi=_,z.source=I,z.resolve=!0,L(z),new Promise(function(q,B){T(z,q,B)})}return ck={optionalResolve:j,resolve:P},ck}var pk,fW;function bBe(){if(fW)return pk;fW=1;function e(){return{depth:0,seen:new WeakMap,top:!0,combine:!1,allowRefSiblings:!1}}function t(r,n,o,a){if(typeof o.depth>"u"&&(o=e()),r===null||typeof r>"u")return r;if(typeof r.$ref<"u"){let i={$ref:r.$ref};return o.allowRefSiblings&&r.description&&(i.description=r.description),a(i,n,o),i}if(o.combine&&(r.allOf&&Array.isArray(r.allOf)&&r.allOf.length===1&&(r=Object.assign({},r.allOf[0],r),delete r.allOf),r.anyOf&&Array.isArray(r.anyOf)&&r.anyOf.length===1&&(r=Object.assign({},r.anyOf[0],r),delete r.anyOf),r.oneOf&&Array.isArray(r.oneOf)&&r.oneOf.length===1&&(r=Object.assign({},r.oneOf[0],r),delete r.oneOf)),a(r,n,o),o.seen.has(r))return r;if(typeof r=="object"&&r!==null&&o.seen.set(r,!0),o.top=!1,o.depth++,typeof r.items<"u"&&(o.property="items",t(r.items,r,o,a)),r.additionalItems&&typeof r.additionalItems=="object"&&(o.property="additionalItems",t(r.additionalItems,r,o,a)),r.additionalProperties&&typeof r.additionalProperties=="object"&&(o.property="additionalProperties",t(r.additionalProperties,r,o,a)),r.properties)for(let i in r.properties){let s=r.properties[i];o.property="properties/"+i,t(s,r,o,a)}if(r.patternProperties)for(let i in r.patternProperties){let s=r.patternProperties[i];o.property="patternProperties/"+i,t(s,r,o,a)}if(r.allOf)for(let i in r.allOf){let s=r.allOf[i];o.property="allOf/"+i,t(s,r,o,a)}if(r.anyOf)for(let i in r.anyOf){let s=r.anyOf[i];o.property="anyOf/"+i,t(s,r,o,a)}if(r.oneOf)for(let i in r.oneOf){let s=r.oneOf[i];o.property="oneOf/"+i,t(s,r,o,a)}return r.not&&(o.property="not",t(r.not,r,o,a)),o.depth--,r}return pk={getDefaultState:e,walkSchema:t},pk}var mW={},uk={exports:{}},gW={},bW;function yW(){return bW||(bW=1,(function(e){e.fetch=o(globalThis.fetch)&&o(globalThis.ReadableStream),e.writableStream=o(globalThis.WritableStream),e.abortController=o(globalThis.AbortController);var t;function r(){if(t!==void 0)return t;if(globalThis.XMLHttpRequest){t=new globalThis.XMLHttpRequest;try{t.open("GET",globalThis.XDomainRequest?"/":"https://example.com")}catch{t=null}}else t=null;return t}function n(a){var i=r();if(!i)return!1;try{return i.responseType=a,i.responseType===a}catch{}return!1}e.arraybuffer=e.fetch||n("arraybuffer"),e.msstream=!e.fetch&&n("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&n("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||(r()?o(r().overrideMimeType):!1);function o(a){return typeof a=="function"}t=null})(gW)),gW}var iy={},dk={exports:{}},sy={exports:{}},vW;function yBe(){if(vW)return sy.exports;vW=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(T,L,j){return Function.prototype.apply.call(T,L,j)},r;e&&typeof e.ownKeys=="function"?r=e.ownKeys:Object.getOwnPropertySymbols?r=function(T){return Object.getOwnPropertyNames(T).concat(Object.getOwnPropertySymbols(T))}:r=function(T){return Object.getOwnPropertyNames(T)};function n(T){console&&console.warn&&console.warn(T)}var o=Number.isNaN||function(T){return T!==T};function a(){a.init.call(this)}sy.exports=a,sy.exports.once=w,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var i=10;function s(T){if(typeof T!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof T)}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return i},set:function(T){if(typeof T!="number"||T<0||o(T))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+T+".");i=T}}),a.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(T){if(typeof T!="number"||T<0||o(T))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+T+".");return this._maxListeners=T,this};function c(T){return T._maxListeners===void 0?a.defaultMaxListeners:T._maxListeners}a.prototype.getMaxListeners=function(){return c(this)},a.prototype.emit=function(T){for(var L=[],j=1;j<arguments.length;j++)L.push(arguments[j]);var P=T==="error",_=this._events;if(_!==void 0)P=P&&_.error===void 0;else if(!P)return!1;if(P){var I;if(L.length>0&&(I=L[0]),I instanceof Error)throw I;var z=new Error("Unhandled error."+(I?" ("+I.message+")":""));throw z.context=I,z}var q=_[T];if(q===void 0)return!1;if(typeof q=="function")t(q,this,L);else for(var B=q.length,G=v(q,B),j=0;j<B;++j)t(G[j],this,L);return!0};function u(T,L,j,P){var _,I,z;if(s(j),I=T._events,I===void 0?(I=T._events=Object.create(null),T._eventsCount=0):(I.newListener!==void 0&&(T.emit("newListener",L,j.listener?j.listener:j),I=T._events),z=I[L]),z===void 0)z=I[L]=j,++T._eventsCount;else if(typeof z=="function"?z=I[L]=P?[j,z]:[z,j]:P?z.unshift(j):z.push(j),_=c(T),_>0&&z.length>_&&!z.warned){z.warned=!0;var q=new Error("Possible EventEmitter memory leak detected. "+z.length+" "+String(L)+" listeners added. Use emitter.setMaxListeners() to increase limit");q.name="MaxListenersExceededWarning",q.emitter=T,q.type=L,q.count=z.length,n(q)}return T}a.prototype.addListener=function(T,L){return u(this,T,L,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(T,L){return u(this,T,L,!0)};function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(T,L,j){var P={fired:!1,wrapFn:void 0,target:T,type:L,listener:j},_=d.bind(P);return _.listener=j,P.wrapFn=_,_}a.prototype.once=function(T,L){return s(L),this.on(T,f(this,T,L)),this},a.prototype.prependOnceListener=function(T,L){return s(L),this.prependListener(T,f(this,T,L)),this},a.prototype.removeListener=function(T,L){var j,P,_,I,z;if(s(L),P=this._events,P===void 0)return this;if(j=P[T],j===void 0)return this;if(j===L||j.listener===L)--this._eventsCount===0?this._events=Object.create(null):(delete P[T],P.removeListener&&this.emit("removeListener",T,j.listener||L));else if(typeof j!="function"){for(_=-1,I=j.length-1;I>=0;I--)if(j[I]===L||j[I].listener===L){z=j[I].listener,_=I;break}if(_<0)return this;_===0?j.shift():x(j,_),j.length===1&&(P[T]=j[0]),P.removeListener!==void 0&&this.emit("removeListener",T,z||L)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(T){var L,j,P;if(j=this._events,j===void 0)return this;if(j.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):j[T]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete j[T]),this;if(arguments.length===0){var _=Object.keys(j),I;for(P=0;P<_.length;++P)I=_[P],I!=="removeListener"&&this.removeAllListeners(I);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(L=j[T],typeof L=="function")this.removeListener(T,L);else if(L!==void 0)for(P=L.length-1;P>=0;P--)this.removeListener(T,L[P]);return this};function g(T,L,j){var P=T._events;if(P===void 0)return[];var _=P[L];return _===void 0?[]:typeof _=="function"?j?[_.listener||_]:[_]:j?S(_):v(_,_.length)}a.prototype.listeners=function(T){return g(this,T,!0)},a.prototype.rawListeners=function(T){return g(this,T,!1)},a.listenerCount=function(T,L){return typeof T.listenerCount=="function"?T.listenerCount(L):y.call(T,L)},a.prototype.listenerCount=y;function y(T){var L=this._events;if(L!==void 0){var j=L[T];if(typeof j=="function")return 1;if(j!==void 0)return j.length}return 0}a.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]};function v(T,L){for(var j=new Array(L),P=0;P<L;++P)j[P]=T[P];return j}function x(T,L){for(;L+1<T.length;L++)T[L]=T[L+1];T.pop()}function S(T){for(var L=new Array(T.length),j=0;j<L.length;++j)L[j]=T[j].listener||T[j];return L}function w(T,L){return new Promise(function(j,P){function _(z){T.removeListener(L,I),P(z)}function I(){typeof T.removeListener=="function"&&T.removeListener("error",_),j([].slice.call(arguments))}A(T,L,I,{once:!0}),L!=="error"&&C(T,_,{once:!0})})}function C(T,L,j){typeof T.on=="function"&&A(T,"error",L,j)}function A(T,L,j,P){if(typeof T.on=="function")P.once?T.once(L,j):T.on(L,j);else if(typeof T.addEventListener=="function")T.addEventListener(L,function _(I){P.once&&T.removeEventListener(L,_),j(I)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof T)}return sy.exports}var xW,wW;function SW(){return wW||(wW=1,xW=yBe().EventEmitter),xW}var CW={},cf={},kW;function vBe(){if(kW)return cf;kW=1,cf.byteLength=s,cf.toByteArray=u,cf.fromByteArray=g;for(var e=[],t=[],r=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=n.length;o<a;++o)e[o]=n[o],t[n.charCodeAt(o)]=o;t[45]=62,t[95]=63;function i(y){var v=y.length;if(v%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var x=y.indexOf("=");x===-1&&(x=v);var S=x===v?0:4-x%4;return[x,S]}function s(y){var v=i(y),x=v[0],S=v[1];return(x+S)*3/4-S}function c(y,v,x){return(v+x)*3/4-x}function u(y){var v,x=i(y),S=x[0],w=x[1],C=new r(c(y,S,w)),A=0,T=w>0?S-4:S,L;for(L=0;L<T;L+=4)v=t[y.charCodeAt(L)]<<18|t[y.charCodeAt(L+1)]<<12|t[y.charCodeAt(L+2)]<<6|t[y.charCodeAt(L+3)],C[A++]=v>>16&255,C[A++]=v>>8&255,C[A++]=v&255;return w===2&&(v=t[y.charCodeAt(L)]<<2|t[y.charCodeAt(L+1)]>>4,C[A++]=v&255),w===1&&(v=t[y.charCodeAt(L)]<<10|t[y.charCodeAt(L+1)]<<4|t[y.charCodeAt(L+2)]>>2,C[A++]=v>>8&255,C[A++]=v&255),C}function d(y){return e[y>>18&63]+e[y>>12&63]+e[y>>6&63]+e[y&63]}function f(y,v,x){for(var S,w=[],C=v;C<x;C+=3)S=(y[C]<<16&16711680)+(y[C+1]<<8&65280)+(y[C+2]&255),w.push(d(S));return w.join("")}function g(y){for(var v,x=y.length,S=x%3,w=[],C=16383,A=0,T=x-S;A<T;A+=C)w.push(f(y,A,A+C>T?T:A+C));return S===1?(v=y[x-1],w.push(e[v>>2]+e[v<<4&63]+"==")):S===2&&(v=(y[x-2]<<8)+y[x-1],w.push(e[v>>10]+e[v>>4&63]+e[v<<2&63]+"=")),w.join("")}return cf}var hk={},EW;function xBe(){return EW||(EW=1,hk.read=function(e,t,r,n,o){var a,i,s=o*8-n-1,c=(1<<s)-1,u=c>>1,d=-7,f=r?o-1:0,g=r?-1:1,y=e[t+f];for(f+=g,a=y&(1<<-d)-1,y>>=-d,d+=s;d>0;a=a*256+e[t+f],f+=g,d-=8);for(i=a&(1<<-d)-1,a>>=-d,d+=n;d>0;i=i*256+e[t+f],f+=g,d-=8);if(a===0)a=1-u;else{if(a===c)return i?NaN:(y?-1:1)*(1/0);i=i+Math.pow(2,n),a=a-u}return(y?-1:1)*i*Math.pow(2,a-n)},hk.write=function(e,t,r,n,o,a){var i,s,c,u=a*8-o-1,d=(1<<u)-1,f=d>>1,g=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=n?0:a-1,v=n?1:-1,x=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,i=d):(i=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-i))<1&&(i--,c*=2),i+f>=1?t+=g/c:t+=g*Math.pow(2,1-f),t*c>=2&&(i++,c/=2),i+f>=d?(s=0,i=d):i+f>=1?(s=(t*c-1)*Math.pow(2,o),i=i+f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),i=0));o>=8;e[r+y]=s&255,y+=v,s/=256,o-=8);for(i=i<<o|s,u+=o;u>0;e[r+y]=i&255,y+=v,i/=256,u-=8);e[r+y-v]|=x*128}),hk}var AW;function pf(){return AW||(AW=1,(function(e){const t=vBe(),r=xBe(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=C,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o,s.TYPED_ARRAY_SUPPORT=a(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{const N=new Uint8Array(1),$={foo:function(){return 42}};return Object.setPrototypeOf($,Uint8Array.prototype),Object.setPrototypeOf(N,$),N.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function i(N){if(N>o)throw new RangeError('The value "'+N+'" is invalid for option "size"');const $=new Uint8Array(N);return Object.setPrototypeOf($,s.prototype),$}function s(N,$,U){if(typeof N=="number"){if(typeof $=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return f(N)}return c(N,$,U)}s.poolSize=8192;function c(N,$,U){if(typeof N=="string")return g(N,$);if(ArrayBuffer.isView(N))return v(N);if(N==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof N);if(Ve(N,ArrayBuffer)||N&&Ve(N.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ve(N,SharedArrayBuffer)||N&&Ve(N.buffer,SharedArrayBuffer)))return x(N,$,U);if(typeof N=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const pe=N.valueOf&&N.valueOf();if(pe!=null&&pe!==N)return s.from(pe,$,U);const Ee=S(N);if(Ee)return Ee;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof N[Symbol.toPrimitive]=="function")return s.from(N[Symbol.toPrimitive]("string"),$,U);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof N)}s.from=function(N,$,U){return c(N,$,U)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function u(N){if(typeof N!="number")throw new TypeError('"size" argument must be of type number');if(N<0)throw new RangeError('The value "'+N+'" is invalid for option "size"')}function d(N,$,U){return u(N),N<=0?i(N):$!==void 0?typeof U=="string"?i(N).fill($,U):i(N).fill($):i(N)}s.alloc=function(N,$,U){return d(N,$,U)};function f(N){return u(N),i(N<0?0:w(N)|0)}s.allocUnsafe=function(N){return f(N)},s.allocUnsafeSlow=function(N){return f(N)};function g(N,$){if((typeof $!="string"||$==="")&&($="utf8"),!s.isEncoding($))throw new TypeError("Unknown encoding: "+$);const U=A(N,$)|0;let pe=i(U);const Ee=pe.write(N,$);return Ee!==U&&(pe=pe.slice(0,Ee)),pe}function y(N){const $=N.length<0?0:w(N.length)|0,U=i($);for(let pe=0;pe<$;pe+=1)U[pe]=N[pe]&255;return U}function v(N){if(Ve(N,Uint8Array)){const $=new Uint8Array(N);return x($.buffer,$.byteOffset,$.byteLength)}return y(N)}function x(N,$,U){if($<0||N.byteLength<$)throw new RangeError('"offset" is outside of buffer bounds');if(N.byteLength<$+(U||0))throw new RangeError('"length" is outside of buffer bounds');let pe;return $===void 0&&U===void 0?pe=new Uint8Array(N):U===void 0?pe=new Uint8Array(N,$):pe=new Uint8Array(N,$,U),Object.setPrototypeOf(pe,s.prototype),pe}function S(N){if(s.isBuffer(N)){const $=w(N.length)|0,U=i($);return U.length===0||N.copy(U,0,0,$),U}if(N.length!==void 0)return typeof N.length!="number"||He(N.length)?i(0):y(N);if(N.type==="Buffer"&&Array.isArray(N.data))return y(N.data)}function w(N){if(N>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return N|0}function C(N){return+N!=N&&(N=0),s.alloc(+N)}s.isBuffer=function(N){return N!=null&&N._isBuffer===!0&&N!==s.prototype},s.compare=function(N,$){if(Ve(N,Uint8Array)&&(N=s.from(N,N.offset,N.byteLength)),Ve($,Uint8Array)&&($=s.from($,$.offset,$.byteLength)),!s.isBuffer(N)||!s.isBuffer($))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(N===$)return 0;let U=N.length,pe=$.length;for(let Ee=0,Le=Math.min(U,pe);Ee<Le;++Ee)if(N[Ee]!==$[Ee]){U=N[Ee],pe=$[Ee];break}return U<pe?-1:pe<U?1:0},s.isEncoding=function(N){switch(String(N).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(N,$){if(!Array.isArray(N))throw new TypeError('"list" argument must be an Array of Buffers');if(N.length===0)return s.alloc(0);let U;if($===void 0)for($=0,U=0;U<N.length;++U)$+=N[U].length;const pe=s.allocUnsafe($);let Ee=0;for(U=0;U<N.length;++U){let Le=N[U];if(Ve(Le,Uint8Array))Ee+Le.length>pe.length?(s.isBuffer(Le)||(Le=s.from(Le)),Le.copy(pe,Ee)):Uint8Array.prototype.set.call(pe,Le,Ee);else if(s.isBuffer(Le))Le.copy(pe,Ee);else throw new TypeError('"list" argument must be an Array of Buffers');Ee+=Le.length}return pe};function A(N,$){if(s.isBuffer(N))return N.length;if(ArrayBuffer.isView(N)||Ve(N,ArrayBuffer))return N.byteLength;if(typeof N!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof N);const U=N.length,pe=arguments.length>2&&arguments[2]===!0;if(!pe&&U===0)return 0;let Ee=!1;for(;;)switch($){case"ascii":case"latin1":case"binary":return U;case"utf8":case"utf-8":return ue(N).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U*2;case"hex":return U>>>1;case"base64":return Ke(N).length;default:if(Ee)return pe?-1:ue(N).length;$=(""+$).toLowerCase(),Ee=!0}}s.byteLength=A;function T(N,$,U){let pe=!1;if(($===void 0||$<0)&&($=0),$>this.length||((U===void 0||U>this.length)&&(U=this.length),U<=0)||(U>>>=0,$>>>=0,U<=$))return"";for(N||(N="utf8");;)switch(N){case"hex":return de(this,$,U);case"utf8":case"utf-8":return te(this,$,U);case"ascii":return ie(this,$,U);case"latin1":case"binary":return re(this,$,U);case"base64":return G(this,$,U);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return X(this,$,U);default:if(pe)throw new TypeError("Unknown encoding: "+N);N=(N+"").toLowerCase(),pe=!0}}s.prototype._isBuffer=!0;function L(N,$,U){const pe=N[$];N[$]=N[U],N[U]=pe}s.prototype.swap16=function(){const N=this.length;if(N%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let $=0;$<N;$+=2)L(this,$,$+1);return this},s.prototype.swap32=function(){const N=this.length;if(N%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let $=0;$<N;$+=4)L(this,$,$+3),L(this,$+1,$+2);return this},s.prototype.swap64=function(){const N=this.length;if(N%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let $=0;$<N;$+=8)L(this,$,$+7),L(this,$+1,$+6),L(this,$+2,$+5),L(this,$+3,$+4);return this},s.prototype.toString=function(){const N=this.length;return N===0?"":arguments.length===0?te(this,0,N):T.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(N){if(!s.isBuffer(N))throw new TypeError("Argument must be a Buffer");return this===N?!0:s.compare(this,N)===0},s.prototype.inspect=function(){let N="";const $=e.INSPECT_MAX_BYTES;return N=this.toString("hex",0,$).replace(/(.{2})/g,"$1 ").trim(),this.length>$&&(N+=" ... "),"<Buffer "+N+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(N,$,U,pe,Ee){if(Ve(N,Uint8Array)&&(N=s.from(N,N.offset,N.byteLength)),!s.isBuffer(N))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof N);if($===void 0&&($=0),U===void 0&&(U=N?N.length:0),pe===void 0&&(pe=0),Ee===void 0&&(Ee=this.length),$<0||U>N.length||pe<0||Ee>this.length)throw new RangeError("out of range index");if(pe>=Ee&&$>=U)return 0;if(pe>=Ee)return-1;if($>=U)return 1;if($>>>=0,U>>>=0,pe>>>=0,Ee>>>=0,this===N)return 0;let Le=Ee-pe,Ue=U-$;const it=Math.min(Le,Ue),Ft=this.slice(pe,Ee),gt=N.slice($,U);for(let Ot=0;Ot<it;++Ot)if(Ft[Ot]!==gt[Ot]){Le=Ft[Ot],Ue=gt[Ot];break}return Le<Ue?-1:Ue<Le?1:0};function j(N,$,U,pe,Ee){if(N.length===0)return-1;if(typeof U=="string"?(pe=U,U=0):U>2147483647?U=2147483647:U<-2147483648&&(U=-2147483648),U=+U,He(U)&&(U=Ee?0:N.length-1),U<0&&(U=N.length+U),U>=N.length){if(Ee)return-1;U=N.length-1}else if(U<0)if(Ee)U=0;else return-1;if(typeof $=="string"&&($=s.from($,pe)),s.isBuffer($))return $.length===0?-1:P(N,$,U,pe,Ee);if(typeof $=="number")return $=$&255,typeof Uint8Array.prototype.indexOf=="function"?Ee?Uint8Array.prototype.indexOf.call(N,$,U):Uint8Array.prototype.lastIndexOf.call(N,$,U):P(N,[$],U,pe,Ee);throw new TypeError("val must be string, number or Buffer")}function P(N,$,U,pe,Ee){let Le=1,Ue=N.length,it=$.length;if(pe!==void 0&&(pe=String(pe).toLowerCase(),pe==="ucs2"||pe==="ucs-2"||pe==="utf16le"||pe==="utf-16le")){if(N.length<2||$.length<2)return-1;Le=2,Ue/=2,it/=2,U/=2}function Ft(Ot,It){return Le===1?Ot[It]:Ot.readUInt16BE(It*Le)}let gt;if(Ee){let Ot=-1;for(gt=U;gt<Ue;gt++)if(Ft(N,gt)===Ft($,Ot===-1?0:gt-Ot)){if(Ot===-1&&(Ot=gt),gt-Ot+1===it)return Ot*Le}else Ot!==-1&&(gt-=gt-Ot),Ot=-1}else for(U+it>Ue&&(U=Ue-it),gt=U;gt>=0;gt--){let Ot=!0;for(let It=0;It<it;It++)if(Ft(N,gt+It)!==Ft($,It)){Ot=!1;break}if(Ot)return gt}return-1}s.prototype.includes=function(N,$,U){return this.indexOf(N,$,U)!==-1},s.prototype.indexOf=function(N,$,U){return j(this,N,$,U,!0)},s.prototype.lastIndexOf=function(N,$,U){return j(this,N,$,U,!1)};function _(N,$,U,pe){U=Number(U)||0;const Ee=N.length-U;pe?(pe=Number(pe),pe>Ee&&(pe=Ee)):pe=Ee;const Le=$.length;pe>Le/2&&(pe=Le/2);let Ue;for(Ue=0;Ue<pe;++Ue){const it=parseInt($.substr(Ue*2,2),16);if(He(it))return Ue;N[U+Ue]=it}return Ue}function I(N,$,U,pe){return Je(ue($,N.length-U),N,U,pe)}function z(N,$,U,pe){return Je(Ne($),N,U,pe)}function q(N,$,U,pe){return Je(Ke($),N,U,pe)}function B(N,$,U,pe){return Je(he($,N.length-U),N,U,pe)}s.prototype.write=function(N,$,U,pe){if($===void 0)pe="utf8",U=this.length,$=0;else if(U===void 0&&typeof $=="string")pe=$,U=this.length,$=0;else if(isFinite($))$=$>>>0,isFinite(U)?(U=U>>>0,pe===void 0&&(pe="utf8")):(pe=U,U=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Ee=this.length-$;if((U===void 0||U>Ee)&&(U=Ee),N.length>0&&(U<0||$<0)||$>this.length)throw new RangeError("Attempt to write outside buffer bounds");pe||(pe="utf8");let Le=!1;for(;;)switch(pe){case"hex":return _(this,N,$,U);case"utf8":case"utf-8":return I(this,N,$,U);case"ascii":case"latin1":case"binary":return z(this,N,$,U);case"base64":return q(this,N,$,U);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,N,$,U);default:if(Le)throw new TypeError("Unknown encoding: "+pe);pe=(""+pe).toLowerCase(),Le=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function G(N,$,U){return $===0&&U===N.length?t.fromByteArray(N):t.fromByteArray(N.slice($,U))}function te(N,$,U){U=Math.min(N.length,U);const pe=[];let Ee=$;for(;Ee<U;){const Le=N[Ee];let Ue=null,it=Le>239?4:Le>223?3:Le>191?2:1;if(Ee+it<=U){let Ft,gt,Ot,It;switch(it){case 1:Le<128&&(Ue=Le);break;case 2:Ft=N[Ee+1],(Ft&192)===128&&(It=(Le&31)<<6|Ft&63,It>127&&(Ue=It));break;case 3:Ft=N[Ee+1],gt=N[Ee+2],(Ft&192)===128&&(gt&192)===128&&(It=(Le&15)<<12|(Ft&63)<<6|gt&63,It>2047&&(It<55296||It>57343)&&(Ue=It));break;case 4:Ft=N[Ee+1],gt=N[Ee+2],Ot=N[Ee+3],(Ft&192)===128&&(gt&192)===128&&(Ot&192)===128&&(It=(Le&15)<<18|(Ft&63)<<12|(gt&63)<<6|Ot&63,It>65535&&It<1114112&&(Ue=It))}}Ue===null?(Ue=65533,it=1):Ue>65535&&(Ue-=65536,pe.push(Ue>>>10&1023|55296),Ue=56320|Ue&1023),pe.push(Ue),Ee+=it}return Y(pe)}const le=4096;function Y(N){const $=N.length;if($<=le)return String.fromCharCode.apply(String,N);let U="",pe=0;for(;pe<$;)U+=String.fromCharCode.apply(String,N.slice(pe,pe+=le));return U}function ie(N,$,U){let pe="";U=Math.min(N.length,U);for(let Ee=$;Ee<U;++Ee)pe+=String.fromCharCode(N[Ee]&127);return pe}function re(N,$,U){let pe="";U=Math.min(N.length,U);for(let Ee=$;Ee<U;++Ee)pe+=String.fromCharCode(N[Ee]);return pe}function de(N,$,U){const pe=N.length;(!$||$<0)&&($=0),(!U||U<0||U>pe)&&(U=pe);let Ee="";for(let Le=$;Le<U;++Le)Ee+=Xe[N[Le]];return Ee}function X(N,$,U){const pe=N.slice($,U);let Ee="";for(let Le=0;Le<pe.length-1;Le+=2)Ee+=String.fromCharCode(pe[Le]+pe[Le+1]*256);return Ee}s.prototype.slice=function(N,$){const U=this.length;N=~~N,$=$===void 0?U:~~$,N<0?(N+=U,N<0&&(N=0)):N>U&&(N=U),$<0?($+=U,$<0&&($=0)):$>U&&($=U),$<N&&($=N);const pe=this.subarray(N,$);return Object.setPrototypeOf(pe,s.prototype),pe};function H(N,$,U){if(N%1!==0||N<0)throw new RangeError("offset is not uint");if(N+$>U)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(N,$,U){N=N>>>0,$=$>>>0,U||H(N,$,this.length);let pe=this[N],Ee=1,Le=0;for(;++Le<$&&(Ee*=256);)pe+=this[N+Le]*Ee;return pe},s.prototype.readUintBE=s.prototype.readUIntBE=function(N,$,U){N=N>>>0,$=$>>>0,U||H(N,$,this.length);let pe=this[N+--$],Ee=1;for(;$>0&&(Ee*=256);)pe+=this[N+--$]*Ee;return pe},s.prototype.readUint8=s.prototype.readUInt8=function(N,$){return N=N>>>0,$||H(N,1,this.length),this[N]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(N,$){return N=N>>>0,$||H(N,2,this.length),this[N]|this[N+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(N,$){return N=N>>>0,$||H(N,2,this.length),this[N]<<8|this[N+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(N,$){return N=N>>>0,$||H(N,4,this.length),(this[N]|this[N+1]<<8|this[N+2]<<16)+this[N+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(N,$){return N=N>>>0,$||H(N,4,this.length),this[N]*16777216+(this[N+1]<<16|this[N+2]<<8|this[N+3])},s.prototype.readBigUInt64LE=ut(function(N){N=N>>>0,W(N,"offset");const $=this[N],U=this[N+7];($===void 0||U===void 0)&&ge(N,this.length-8);const pe=$+this[++N]*2**8+this[++N]*2**16+this[++N]*2**24,Ee=this[++N]+this[++N]*2**8+this[++N]*2**16+U*2**24;return BigInt(pe)+(BigInt(Ee)<<BigInt(32))}),s.prototype.readBigUInt64BE=ut(function(N){N=N>>>0,W(N,"offset");const $=this[N],U=this[N+7];($===void 0||U===void 0)&&ge(N,this.length-8);const pe=$*2**24+this[++N]*2**16+this[++N]*2**8+this[++N],Ee=this[++N]*2**24+this[++N]*2**16+this[++N]*2**8+U;return(BigInt(pe)<<BigInt(32))+BigInt(Ee)}),s.prototype.readIntLE=function(N,$,U){N=N>>>0,$=$>>>0,U||H(N,$,this.length);let pe=this[N],Ee=1,Le=0;for(;++Le<$&&(Ee*=256);)pe+=this[N+Le]*Ee;return Ee*=128,pe>=Ee&&(pe-=Math.pow(2,8*$)),pe},s.prototype.readIntBE=function(N,$,U){N=N>>>0,$=$>>>0,U||H(N,$,this.length);let pe=$,Ee=1,Le=this[N+--pe];for(;pe>0&&(Ee*=256);)Le+=this[N+--pe]*Ee;return Ee*=128,Le>=Ee&&(Le-=Math.pow(2,8*$)),Le},s.prototype.readInt8=function(N,$){return N=N>>>0,$||H(N,1,this.length),this[N]&128?(255-this[N]+1)*-1:this[N]},s.prototype.readInt16LE=function(N,$){N=N>>>0,$||H(N,2,this.length);const U=this[N]|this[N+1]<<8;return U&32768?U|4294901760:U},s.prototype.readInt16BE=function(N,$){N=N>>>0,$||H(N,2,this.length);const U=this[N+1]|this[N]<<8;return U&32768?U|4294901760:U},s.prototype.readInt32LE=function(N,$){return N=N>>>0,$||H(N,4,this.length),this[N]|this[N+1]<<8|this[N+2]<<16|this[N+3]<<24},s.prototype.readInt32BE=function(N,$){return N=N>>>0,$||H(N,4,this.length),this[N]<<24|this[N+1]<<16|this[N+2]<<8|this[N+3]},s.prototype.readBigInt64LE=ut(function(N){N=N>>>0,W(N,"offset");const $=this[N],U=this[N+7];($===void 0||U===void 0)&&ge(N,this.length-8);const pe=this[N+4]+this[N+5]*2**8+this[N+6]*2**16+(U<<24);return(BigInt(pe)<<BigInt(32))+BigInt($+this[++N]*2**8+this[++N]*2**16+this[++N]*2**24)}),s.prototype.readBigInt64BE=ut(function(N){N=N>>>0,W(N,"offset");const $=this[N],U=this[N+7];($===void 0||U===void 0)&&ge(N,this.length-8);const pe=($<<24)+this[++N]*2**16+this[++N]*2**8+this[++N];return(BigInt(pe)<<BigInt(32))+BigInt(this[++N]*2**24+this[++N]*2**16+this[++N]*2**8+U)}),s.prototype.readFloatLE=function(N,$){return N=N>>>0,$||H(N,4,this.length),r.read(this,N,!0,23,4)},s.prototype.readFloatBE=function(N,$){return N=N>>>0,$||H(N,4,this.length),r.read(this,N,!1,23,4)},s.prototype.readDoubleLE=function(N,$){return N=N>>>0,$||H(N,8,this.length),r.read(this,N,!0,52,8)},s.prototype.readDoubleBE=function(N,$){return N=N>>>0,$||H(N,8,this.length),r.read(this,N,!1,52,8)};function ae(N,$,U,pe,Ee,Le){if(!s.isBuffer(N))throw new TypeError('"buffer" argument must be a Buffer instance');if($>Ee||$<Le)throw new RangeError('"value" argument is out of bounds');if(U+pe>N.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(N,$,U,pe){if(N=+N,$=$>>>0,U=U>>>0,!pe){const Ue=Math.pow(2,8*U)-1;ae(this,N,$,U,Ue,0)}let Ee=1,Le=0;for(this[$]=N&255;++Le<U&&(Ee*=256);)this[$+Le]=N/Ee&255;return $+U},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(N,$,U,pe){if(N=+N,$=$>>>0,U=U>>>0,!pe){const Ue=Math.pow(2,8*U)-1;ae(this,N,$,U,Ue,0)}let Ee=U-1,Le=1;for(this[$+Ee]=N&255;--Ee>=0&&(Le*=256);)this[$+Ee]=N/Le&255;return $+U},s.prototype.writeUint8=s.prototype.writeUInt8=function(N,$,U){return N=+N,$=$>>>0,U||ae(this,N,$,1,255,0),this[$]=N&255,$+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(N,$,U){return N=+N,$=$>>>0,U||ae(this,N,$,2,65535,0),this[$]=N&255,this[$+1]=N>>>8,$+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(N,$,U){return N=+N,$=$>>>0,U||ae(this,N,$,2,65535,0),this[$]=N>>>8,this[$+1]=N&255,$+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(N,$,U){return N=+N,$=$>>>0,U||ae(this,N,$,4,4294967295,0),this[$+3]=N>>>24,this[$+2]=N>>>16,this[$+1]=N>>>8,this[$]=N&255,$+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(N,$,U){return N=+N,$=$>>>0,U||ae(this,N,$,4,4294967295,0),this[$]=N>>>24,this[$+1]=N>>>16,this[$+2]=N>>>8,this[$+3]=N&255,$+4};function K(N,$,U,pe,Ee){R($,pe,Ee,N,U,7);let Le=Number($&BigInt(4294967295));N[U++]=Le,Le=Le>>8,N[U++]=Le,Le=Le>>8,N[U++]=Le,Le=Le>>8,N[U++]=Le;let Ue=Number($>>BigInt(32)&BigInt(4294967295));return N[U++]=Ue,Ue=Ue>>8,N[U++]=Ue,Ue=Ue>>8,N[U++]=Ue,Ue=Ue>>8,N[U++]=Ue,U}function V(N,$,U,pe,Ee){R($,pe,Ee,N,U,7);let Le=Number($&BigInt(4294967295));N[U+7]=Le,Le=Le>>8,N[U+6]=Le,Le=Le>>8,N[U+5]=Le,Le=Le>>8,N[U+4]=Le;let Ue=Number($>>BigInt(32)&BigInt(4294967295));return N[U+3]=Ue,Ue=Ue>>8,N[U+2]=Ue,Ue=Ue>>8,N[U+1]=Ue,Ue=Ue>>8,N[U]=Ue,U+8}s.prototype.writeBigUInt64LE=ut(function(N,$=0){return K(this,N,$,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=ut(function(N,$=0){return V(this,N,$,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(N,$,U,pe){if(N=+N,$=$>>>0,!pe){const it=Math.pow(2,8*U-1);ae(this,N,$,U,it-1,-it)}let Ee=0,Le=1,Ue=0;for(this[$]=N&255;++Ee<U&&(Le*=256);)N<0&&Ue===0&&this[$+Ee-1]!==0&&(Ue=1),this[$+Ee]=(N/Le>>0)-Ue&255;return $+U},s.prototype.writeIntBE=function(N,$,U,pe){if(N=+N,$=$>>>0,!pe){const it=Math.pow(2,8*U-1);ae(this,N,$,U,it-1,-it)}let Ee=U-1,Le=1,Ue=0;for(this[$+Ee]=N&255;--Ee>=0&&(Le*=256);)N<0&&Ue===0&&this[$+Ee+1]!==0&&(Ue=1),this[$+Ee]=(N/Le>>0)-Ue&255;return $+U},s.prototype.writeInt8=function(N,$,U){return N=+N,$=$>>>0,U||ae(this,N,$,1,127,-128),N<0&&(N=255+N+1),this[$]=N&255,$+1},s.prototype.writeInt16LE=function(N,$,U){return N=+N,$=$>>>0,U||ae(this,N,$,2,32767,-32768),this[$]=N&255,this[$+1]=N>>>8,$+2},s.prototype.writeInt16BE=function(N,$,U){return N=+N,$=$>>>0,U||ae(this,N,$,2,32767,-32768),this[$]=N>>>8,this[$+1]=N&255,$+2},s.prototype.writeInt32LE=function(N,$,U){return N=+N,$=$>>>0,U||ae(this,N,$,4,2147483647,-2147483648),this[$]=N&255,this[$+1]=N>>>8,this[$+2]=N>>>16,this[$+3]=N>>>24,$+4},s.prototype.writeInt32BE=function(N,$,U){return N=+N,$=$>>>0,U||ae(this,N,$,4,2147483647,-2147483648),N<0&&(N=4294967295+N+1),this[$]=N>>>24,this[$+1]=N>>>16,this[$+2]=N>>>8,this[$+3]=N&255,$+4},s.prototype.writeBigInt64LE=ut(function(N,$=0){return K(this,N,$,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=ut(function(N,$=0){return V(this,N,$,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function se(N,$,U,pe,Ee,Le){if(U+pe>N.length)throw new RangeError("Index out of range");if(U<0)throw new RangeError("Index out of range")}function Q(N,$,U,pe,Ee){return $=+$,U=U>>>0,Ee||se(N,$,U,4),r.write(N,$,U,pe,23,4),U+4}s.prototype.writeFloatLE=function(N,$,U){return Q(this,N,$,!0,U)},s.prototype.writeFloatBE=function(N,$,U){return Q(this,N,$,!1,U)};function ne(N,$,U,pe,Ee){return $=+$,U=U>>>0,Ee||se(N,$,U,8),r.write(N,$,U,pe,52,8),U+8}s.prototype.writeDoubleLE=function(N,$,U){return ne(this,N,$,!0,U)},s.prototype.writeDoubleBE=function(N,$,U){return ne(this,N,$,!1,U)},s.prototype.copy=function(N,$,U,pe){if(!s.isBuffer(N))throw new TypeError("argument should be a Buffer");if(U||(U=0),!pe&&pe!==0&&(pe=this.length),$>=N.length&&($=N.length),$||($=0),pe>0&&pe<U&&(pe=U),pe===U||N.length===0||this.length===0)return 0;if($<0)throw new RangeError("targetStart out of bounds");if(U<0||U>=this.length)throw new RangeError("Index out of range");if(pe<0)throw new RangeError("sourceEnd out of bounds");pe>this.length&&(pe=this.length),N.length-$<pe-U&&(pe=N.length-$+U);const Ee=pe-U;return this===N&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin($,U,pe):Uint8Array.prototype.set.call(N,this.subarray(U,pe),$),Ee},s.prototype.fill=function(N,$,U,pe){if(typeof N=="string"){if(typeof $=="string"?(pe=$,$=0,U=this.length):typeof U=="string"&&(pe=U,U=this.length),pe!==void 0&&typeof pe!="string")throw new TypeError("encoding must be a string");if(typeof pe=="string"&&!s.isEncoding(pe))throw new TypeError("Unknown encoding: "+pe);if(N.length===1){const Le=N.charCodeAt(0);(pe==="utf8"&&Le<128||pe==="latin1")&&(N=Le)}}else typeof N=="number"?N=N&255:typeof N=="boolean"&&(N=Number(N));if($<0||this.length<$||this.length<U)throw new RangeError("Out of range index");if(U<=$)return this;$=$>>>0,U=U===void 0?this.length:U>>>0,N||(N=0);let Ee;if(typeof N=="number")for(Ee=$;Ee<U;++Ee)this[Ee]=N;else{const Le=s.isBuffer(N)?N:s.from(N,pe),Ue=Le.length;if(Ue===0)throw new TypeError('The value "'+N+'" is invalid for argument "value"');for(Ee=0;Ee<U-$;++Ee)this[Ee+$]=Le[Ee%Ue]}return this};const F={};function be(N,$,U){F[N]=class extends U{constructor(){super(),Object.defineProperty(this,"message",{value:$.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${N}]`,delete this.name}get code(){return N}set code(pe){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:pe,writable:!0})}toString(){return`${this.name} [${N}]: ${this.message}`}}}be("ERR_BUFFER_OUT_OF_BOUNDS",function(N){return N?`${N} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),be("ERR_INVALID_ARG_TYPE",function(N,$){return`The "${N}" argument must be of type number. Received type ${typeof $}`},TypeError),be("ERR_OUT_OF_RANGE",function(N,$,U){let pe=`The value of "${N}" is out of range.`,Ee=U;return Number.isInteger(U)&&Math.abs(U)>2**32?Ee=ke(String(U)):typeof U=="bigint"&&(Ee=String(U),(U>BigInt(2)**BigInt(32)||U<-(BigInt(2)**BigInt(32)))&&(Ee=ke(Ee)),Ee+="n"),pe+=` It must be ${$}. Received ${Ee}`,pe},RangeError);function ke(N){let $="",U=N.length;const pe=N[0]==="-"?1:0;for(;U>=pe+4;U-=3)$=`_${N.slice(U-3,U)}${$}`;return`${N.slice(0,U)}${$}`}function E(N,$,U){W($,"offset"),(N[$]===void 0||N[$+U]===void 0)&&ge($,N.length-(U+1))}function R(N,$,U,pe,Ee,Le){if(N>U||N<$){const Ue=typeof $=="bigint"?"n":"";let it;throw $===0||$===BigInt(0)?it=`>= 0${Ue} and < 2${Ue} ** ${(Le+1)*8}${Ue}`:it=`>= -(2${Ue} ** ${(Le+1)*8-1}${Ue}) and < 2 ** ${(Le+1)*8-1}${Ue}`,new F.ERR_OUT_OF_RANGE("value",it,N)}E(pe,Ee,Le)}function W(N,$){if(typeof N!="number")throw new F.ERR_INVALID_ARG_TYPE($,"number",N)}function ge(N,$,U){throw Math.floor(N)!==N?(W(N,U),new F.ERR_OUT_OF_RANGE("offset","an integer",N)):$<0?new F.ERR_BUFFER_OUT_OF_BOUNDS:new F.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${$}`,N)}const xe=/[^+/0-9A-Za-z-_]/g;function ce(N){if(N=N.split("=")[0],N=N.trim().replace(xe,""),N.length<2)return"";for(;N.length%4!==0;)N=N+"=";return N}function ue(N,$){$=$||1/0;let U;const pe=N.length;let Ee=null;const Le=[];for(let Ue=0;Ue<pe;++Ue){if(U=N.charCodeAt(Ue),U>55295&&U<57344){if(!Ee){if(U>56319){($-=3)>-1&&Le.push(239,191,189);continue}else if(Ue+1===pe){($-=3)>-1&&Le.push(239,191,189);continue}Ee=U;continue}if(U<56320){($-=3)>-1&&Le.push(239,191,189),Ee=U;continue}U=(Ee-55296<<10|U-56320)+65536}else Ee&&($-=3)>-1&&Le.push(239,191,189);if(Ee=null,U<128){if(($-=1)<0)break;Le.push(U)}else if(U<2048){if(($-=2)<0)break;Le.push(U>>6|192,U&63|128)}else if(U<65536){if(($-=3)<0)break;Le.push(U>>12|224,U>>6&63|128,U&63|128)}else if(U<1114112){if(($-=4)<0)break;Le.push(U>>18|240,U>>12&63|128,U>>6&63|128,U&63|128)}else throw new Error("Invalid code point")}return Le}function Ne(N){const $=[];for(let U=0;U<N.length;++U)$.push(N.charCodeAt(U)&255);return $}function he(N,$){let U,pe,Ee;const Le=[];for(let Ue=0;Ue<N.length&&!(($-=2)<0);++Ue)U=N.charCodeAt(Ue),pe=U>>8,Ee=U%256,Le.push(Ee),Le.push(pe);return Le}function Ke(N){return t.toByteArray(ce(N))}function Je(N,$,U,pe){let Ee;for(Ee=0;Ee<pe&&!(Ee+U>=$.length||Ee>=N.length);++Ee)$[Ee+U]=N[Ee];return Ee}function Ve(N,$){return N instanceof $||N!=null&&N.constructor!=null&&N.constructor.name!=null&&N.constructor.name===$.name}function He(N){return N!==N}const Xe=(function(){const N="0123456789abcdef",$=new Array(256);for(let U=0;U<16;++U){const pe=U*16;for(let Ee=0;Ee<16;++Ee)$[pe+Ee]=N[U]+N[Ee]}return $})();function ut(N){return typeof BigInt>"u"?Fe:N}function Fe(){throw new Error("BigInt not supported")}})(CW)),CW}const TW=ia(lF);var fk,_W;function wBe(){if(_W)return fk;_W=1;function e(v,x){var S=Object.keys(v);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(v);x&&(w=w.filter(function(C){return Object.getOwnPropertyDescriptor(v,C).enumerable})),S.push.apply(S,w)}return S}function t(v){for(var x=1;x<arguments.length;x++){var S=arguments[x]!=null?arguments[x]:{};x%2?e(Object(S),!0).forEach(function(w){r(v,w,S[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(S)):e(Object(S)).forEach(function(w){Object.defineProperty(v,w,Object.getOwnPropertyDescriptor(S,w))})}return v}function r(v,x,S){return x=i(x),x in v?Object.defineProperty(v,x,{value:S,enumerable:!0,configurable:!0,writable:!0}):v[x]=S,v}function n(v,x){if(!(v instanceof x))throw new TypeError("Cannot call a class as a function")}function o(v,x){for(var S=0;S<x.length;S++){var w=x[S];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(v,i(w.key),w)}}function a(v,x,S){return x&&o(v.prototype,x),Object.defineProperty(v,"prototype",{writable:!1}),v}function i(v){var x=s(v,"string");return typeof x=="symbol"?x:String(x)}function s(v,x){if(typeof v!="object"||v===null)return v;var S=v[Symbol.toPrimitive];if(S!==void 0){var w=S.call(v,x);if(typeof w!="object")return w;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(v)}var c=pf(),u=c.Buffer,d=TW,f=d.inspect,g=f&&f.custom||"inspect";function y(v,x,S){u.prototype.copy.call(v,x,S)}return fk=(function(){function v(){n(this,v),this.head=null,this.tail=null,this.length=0}return a(v,[{key:"push",value:function(x){var S={data:x,next:null};this.length>0?this.tail.next=S:this.head=S,this.tail=S,++this.length}},{key:"unshift",value:function(x){var S={data:x,next:this.head};this.length===0&&(this.tail=S),this.head=S,++this.length}},{key:"shift",value:function(){if(this.length!==0){var x=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,x}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(x){if(this.length===0)return"";for(var S=this.head,w=""+S.data;S=S.next;)w+=x+S.data;return w}},{key:"concat",value:function(x){if(this.length===0)return u.alloc(0);for(var S=u.allocUnsafe(x>>>0),w=this.head,C=0;w;)y(w.data,S,C),C+=w.data.length,w=w.next;return S}},{key:"consume",value:function(x,S){var w;return x<this.head.data.length?(w=this.head.data.slice(0,x),this.head.data=this.head.data.slice(x)):x===this.head.data.length?w=this.shift():w=S?this._getString(x):this._getBuffer(x),w}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(x){var S=this.head,w=1,C=S.data;for(x-=C.length;S=S.next;){var A=S.data,T=x>A.length?A.length:x;if(T===A.length?C+=A:C+=A.slice(0,x),x-=T,x===0){T===A.length?(++w,S.next?this.head=S.next:this.head=this.tail=null):(this.head=S,S.data=A.slice(T));break}++w}return this.length-=w,C}},{key:"_getBuffer",value:function(x){var S=u.allocUnsafe(x),w=this.head,C=1;for(w.data.copy(S),x-=w.data.length;w=w.next;){var A=w.data,T=x>A.length?A.length:x;if(A.copy(S,S.length-x,0,T),x-=T,x===0){T===A.length?(++C,w.next?this.head=w.next:this.head=this.tail=null):(this.head=w,w.data=A.slice(T));break}++C}return this.length-=C,S}},{key:g,value:function(x,S){return f(this,t(t({},S),{},{depth:0,customInspect:!1}))}}]),v})(),fk}var mk,OW;function LW(){if(OW)return mk;OW=1;function e(i,s){var c=this,u=this._readableState&&this._readableState.destroyed,d=this._writableState&&this._writableState.destroyed;return u||d?(s?s(i):i&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(o,this,i)):process.nextTick(o,this,i)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(i||null,function(f){!s&&f?c._writableState?c._writableState.errorEmitted?process.nextTick(r,c):(c._writableState.errorEmitted=!0,process.nextTick(t,c,f)):process.nextTick(t,c,f):s?(process.nextTick(r,c),s(f)):process.nextTick(r,c)}),this)}function t(i,s){o(i,s),r(i)}function r(i){i._writableState&&!i._writableState.emitClose||i._readableState&&!i._readableState.emitClose||i.emit("close")}function n(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(i,s){i.emit("error",s)}function a(i,s){var c=i._readableState,u=i._writableState;c&&c.autoDestroy||u&&u.autoDestroy?i.destroy(s):i.emit("error",s)}return mk={destroy:e,undestroy:n,errorOrDestroy:a},mk}var gk={},jW;function uu(){if(jW)return gk;jW=1;function e(s,c){s.prototype=Object.create(c.prototype),s.prototype.constructor=s,s.__proto__=c}var t={};function r(s,c,u){u||(u=Error);function d(g,y,v){return typeof c=="string"?c:c(g,y,v)}var f=(function(g){e(y,g);function y(v,x,S){return g.call(this,d(v,x,S))||this}return y})(u);f.prototype.name=u.name,f.prototype.code=s,t[s]=f}function n(s,c){if(Array.isArray(s)){var u=s.length;return s=s.map(function(d){return String(d)}),u>2?"one of ".concat(c," ").concat(s.slice(0,u-1).join(", "),", or ")+s[u-1]:u===2?"one of ".concat(c," ").concat(s[0]," or ").concat(s[1]):"of ".concat(c," ").concat(s[0])}else return"of ".concat(c," ").concat(String(s))}function o(s,c,u){return s.substr(0,c.length)===c}function a(s,c,u){return(u===void 0||u>s.length)&&(u=s.length),s.substring(u-c.length,u)===c}function i(s,c,u){return typeof u!="number"&&(u=0),u+c.length>s.length?!1:s.indexOf(c,u)!==-1}return r("ERR_INVALID_OPT_VALUE",function(s,c){return'The value "'+c+'" is invalid for option "'+s+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(s,c,u){var d;typeof c=="string"&&o(c,"not ")?(d="must not be",c=c.replace(/^not /,"")):d="must be";var f;if(a(s," argument"))f="The ".concat(s," ").concat(d," ").concat(n(c,"type"));else{var g=i(s,".")?"property":"argument";f='The "'.concat(s,'" ').concat(g," ").concat(d," ").concat(n(c,"type"))}return f+=". Received type ".concat(typeof u),f},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(s){return"The "+s+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(s){return"Cannot call "+s+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(s){return"Unknown encoding: "+s},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),gk.codes=t,gk}var bk,NW;function RW(){if(NW)return bk;NW=1;var e=uu().codes.ERR_INVALID_OPT_VALUE;function t(n,o,a){return n.highWaterMark!=null?n.highWaterMark:o?n[a]:null}function r(n,o,a,i){var s=t(o,i,a);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var c=i?a:"highWaterMark";throw new e(c,s)}return Math.floor(s)}return n.objectMode?16:16*1024}return bk={getHighWaterMark:r},bk}var yk,PW;function SBe(){if(PW)return yk;PW=1,yk=e;function e(r,n){if(t("noDeprecation"))return r;var o=!1;function a(){if(!o){if(t("throwDeprecation"))throw new Error(n);t("traceDeprecation")?console.trace(n):console.warn(n),o=!0}return r.apply(this,arguments)}return a}function t(r){try{if(!globalThis.localStorage)return!1}catch{return!1}var n=globalThis.localStorage[r];return n==null?!1:String(n).toLowerCase()==="true"}return yk}var vk,IW;function $W(){if(IW)return vk;IW=1,vk=_;function e(Q){var ne=this;this.next=null,this.entry=null,this.finish=function(){se(ne,Q)}}var t;_.WritableState=j;var r={deprecate:SBe()},n=SW(),o=pf().Buffer,a=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function i(Q){return o.from(Q)}function s(Q){return o.isBuffer(Q)||Q instanceof a}var c=LW(),u=RW(),d=u.getHighWaterMark,f=uu().codes,g=f.ERR_INVALID_ARG_TYPE,y=f.ERR_METHOD_NOT_IMPLEMENTED,v=f.ERR_MULTIPLE_CALLBACK,x=f.ERR_STREAM_CANNOT_PIPE,S=f.ERR_STREAM_DESTROYED,w=f.ERR_STREAM_NULL_VALUES,C=f.ERR_STREAM_WRITE_AFTER_END,A=f.ERR_UNKNOWN_ENCODING,T=c.errorOrDestroy;function L(){}function j(Q,ne,F){t=t||du(),Q=Q||{},typeof F!="boolean"&&(F=ne instanceof t),this.objectMode=!!Q.objectMode,F&&(this.objectMode=this.objectMode||!!Q.writableObjectMode),this.highWaterMark=d(this,Q,"writableHighWaterMark",F),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var be=Q.decodeStrings===!1;this.decodeStrings=!be,this.defaultEncoding=Q.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ke){Y(ne,ke)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Q.emitClose!==!1,this.autoDestroy=!!Q.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}j.prototype.getBuffer=function(){for(var Q=this.bufferedRequest,ne=[];Q;)ne.push(Q),Q=Q.next;return ne},(function(){try{Object.defineProperty(j.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var P;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(P=Function.prototype[Symbol.hasInstance],Object.defineProperty(_,Symbol.hasInstance,{value:function(Q){return P.call(this,Q)?!0:this!==_?!1:Q&&Q._writableState instanceof j}})):P=function(Q){return Q instanceof this};function _(Q){t=t||du();var ne=this instanceof t;if(!ne&&!P.call(_,this))return new _(Q);this._writableState=new j(Q,this,ne),this.writable=!0,Q&&(typeof Q.write=="function"&&(this._write=Q.write),typeof Q.writev=="function"&&(this._writev=Q.writev),typeof Q.destroy=="function"&&(this._destroy=Q.destroy),typeof Q.final=="function"&&(this._final=Q.final)),n.call(this)}_.prototype.pipe=function(){T(this,new x)};function I(Q,ne){var F=new C;T(Q,F),process.nextTick(ne,F)}function z(Q,ne,F,be){var ke;return F===null?ke=new w:typeof F!="string"&&!ne.objectMode&&(ke=new g("chunk",["string","Buffer"],F)),ke?(T(Q,ke),process.nextTick(be,ke),!1):!0}_.prototype.write=function(Q,ne,F){var be=this._writableState,ke=!1,E=!be.objectMode&&s(Q);return E&&!o.isBuffer(Q)&&(Q=i(Q)),typeof ne=="function"&&(F=ne,ne=null),E?ne="buffer":ne||(ne=be.defaultEncoding),typeof F!="function"&&(F=L),be.ending?I(this,F):(E||z(this,be,Q,F))&&(be.pendingcb++,ke=B(this,be,E,Q,ne,F)),ke},_.prototype.cork=function(){this._writableState.corked++},_.prototype.uncork=function(){var Q=this._writableState;Q.corked&&(Q.corked--,!Q.writing&&!Q.corked&&!Q.bufferProcessing&&Q.bufferedRequest&&de(this,Q))},_.prototype.setDefaultEncoding=function(Q){if(typeof Q=="string"&&(Q=Q.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Q+"").toLowerCase())>-1))throw new A(Q);return this._writableState.defaultEncoding=Q,this},Object.defineProperty(_.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function q(Q,ne,F){return!Q.objectMode&&Q.decodeStrings!==!1&&typeof ne=="string"&&(ne=o.from(ne,F)),ne}Object.defineProperty(_.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function B(Q,ne,F,be,ke,E){if(!F){var R=q(ne,be,ke);be!==R&&(F=!0,ke="buffer",be=R)}var W=ne.objectMode?1:be.length;ne.length+=W;var ge=ne.length<ne.highWaterMark;if(ge||(ne.needDrain=!0),ne.writing||ne.corked){var xe=ne.lastBufferedRequest;ne.lastBufferedRequest={chunk:be,encoding:ke,isBuf:F,callback:E,next:null},xe?xe.next=ne.lastBufferedRequest:ne.bufferedRequest=ne.lastBufferedRequest,ne.bufferedRequestCount+=1}else G(Q,ne,!1,W,be,ke,E);return ge}function G(Q,ne,F,be,ke,E,R){ne.writelen=be,ne.writecb=R,ne.writing=!0,ne.sync=!0,ne.destroyed?ne.onwrite(new S("write")):F?Q._writev(ke,ne.onwrite):Q._write(ke,E,ne.onwrite),ne.sync=!1}function te(Q,ne,F,be,ke){--ne.pendingcb,F?(process.nextTick(ke,be),process.nextTick(K,Q,ne),Q._writableState.errorEmitted=!0,T(Q,be)):(ke(be),Q._writableState.errorEmitted=!0,T(Q,be),K(Q,ne))}function le(Q){Q.writing=!1,Q.writecb=null,Q.length-=Q.writelen,Q.writelen=0}function Y(Q,ne){var F=Q._writableState,be=F.sync,ke=F.writecb;if(typeof ke!="function")throw new v;if(le(F),ne)te(Q,F,be,ne,ke);else{var E=X(F)||Q.destroyed;!E&&!F.corked&&!F.bufferProcessing&&F.bufferedRequest&&de(Q,F),be?process.nextTick(ie,Q,F,E,ke):ie(Q,F,E,ke)}}function ie(Q,ne,F,be){F||re(Q,ne),ne.pendingcb--,be(),K(Q,ne)}function re(Q,ne){ne.length===0&&ne.needDrain&&(ne.needDrain=!1,Q.emit("drain"))}function de(Q,ne){ne.bufferProcessing=!0;var F=ne.bufferedRequest;if(Q._writev&&F&&F.next){var be=ne.bufferedRequestCount,ke=new Array(be),E=ne.corkedRequestsFree;E.entry=F;for(var R=0,W=!0;F;)ke[R]=F,F.isBuf||(W=!1),F=F.next,R+=1;ke.allBuffers=W,G(Q,ne,!0,ne.length,ke,"",E.finish),ne.pendingcb++,ne.lastBufferedRequest=null,E.next?(ne.corkedRequestsFree=E.next,E.next=null):ne.corkedRequestsFree=new e(ne),ne.bufferedRequestCount=0}else{for(;F;){var ge=F.chunk,xe=F.encoding,ce=F.callback,ue=ne.objectMode?1:ge.length;if(G(Q,ne,!1,ue,ge,xe,ce),F=F.next,ne.bufferedRequestCount--,ne.writing)break}F===null&&(ne.lastBufferedRequest=null)}ne.bufferedRequest=F,ne.bufferProcessing=!1}_.prototype._write=function(Q,ne,F){F(new y("_write()"))},_.prototype._writev=null,_.prototype.end=function(Q,ne,F){var be=this._writableState;return typeof Q=="function"?(F=Q,Q=null,ne=null):typeof ne=="function"&&(F=ne,ne=null),Q!=null&&this.write(Q,ne),be.corked&&(be.corked=1,this.uncork()),be.ending||V(this,be,F),this},Object.defineProperty(_.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function X(Q){return Q.ending&&Q.length===0&&Q.bufferedRequest===null&&!Q.finished&&!Q.writing}function H(Q,ne){Q._final(function(F){ne.pendingcb--,F&&T(Q,F),ne.prefinished=!0,Q.emit("prefinish"),K(Q,ne)})}function ae(Q,ne){!ne.prefinished&&!ne.finalCalled&&(typeof Q._final=="function"&&!ne.destroyed?(ne.pendingcb++,ne.finalCalled=!0,process.nextTick(H,Q,ne)):(ne.prefinished=!0,Q.emit("prefinish")))}function K(Q,ne){var F=X(ne);if(F&&(ae(Q,ne),ne.pendingcb===0&&(ne.finished=!0,Q.emit("finish"),ne.autoDestroy))){var be=Q._readableState;(!be||be.autoDestroy&&be.endEmitted)&&Q.destroy()}return F}function V(Q,ne,F){ne.ending=!0,K(Q,ne),F&&(ne.finished?process.nextTick(F):Q.once("finish",F)),ne.ended=!0,Q.writable=!1}function se(Q,ne,F){var be=Q.entry;for(Q.entry=null;be;){var ke=be.callback;ne.pendingcb--,ke(F),be=be.next}ne.corkedRequestsFree.next=Q}return Object.defineProperty(_.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Q){this._writableState&&(this._writableState.destroyed=Q)}}),_.prototype.destroy=c.destroy,_.prototype._undestroy=c.undestroy,_.prototype._destroy=function(Q,ne){ne(Q)},vk}var xk,MW;function du(){if(MW)return xk;MW=1;var e=Object.keys||function(u){var d=[];for(var f in u)d.push(f);return d};xk=i;for(var t=WW(),r=$W(),n=e(r.prototype),o=0;o<n.length;o++){var a=n[o];i.prototype[a]||(i.prototype[a]=r.prototype[a])}function i(u){if(!(this instanceof i))return new i(u);t.call(this,u),r.call(this,u),this.allowHalfOpen=!0,u&&(u.readable===!1&&(this.readable=!1),u.writable===!1&&(this.writable=!1),u.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",s)))}Object.defineProperty(i.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(i.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(i.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function s(){this._writableState.ended||process.nextTick(c,this)}function c(u){u.end()}return Object.defineProperty(i.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(u){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=u,this._writableState.destroyed=u)}}),xk}var wk={},Sk={exports:{}},DW;function CBe(){return DW||(DW=1,(function(e,t){var r=pf(),n=r.Buffer;function o(i,s){for(var c in i)s[c]=i[c]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a);function a(i,s,c){return n(i,s,c)}a.prototype=Object.create(n.prototype),o(n,a),a.from=function(i,s,c){if(typeof i=="number")throw new TypeError("Argument must not be a number");return n(i,s,c)},a.alloc=function(i,s,c){if(typeof i!="number")throw new TypeError("Argument must be a number");var u=n(i);return s!==void 0?typeof c=="string"?u.fill(s,c):u.fill(s):u.fill(0),u},a.allocUnsafe=function(i){if(typeof i!="number")throw new TypeError("Argument must be a number");return n(i)},a.allocUnsafeSlow=function(i){if(typeof i!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(i)}})(Sk,Sk.exports)),Sk.exports}var zW;function BW(){if(zW)return wk;zW=1;var e=CBe().Buffer,t=e.isEncoding||function(w){switch(w=""+w,w&&w.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(w){if(!w)return"utf8";for(var C;;)switch(w){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return w;default:if(C)return;w=(""+w).toLowerCase(),C=!0}}function n(w){var C=r(w);if(typeof C!="string"&&(e.isEncoding===t||!t(w)))throw new Error("Unknown encoding: "+w);return C||w}wk.StringDecoder=o;function o(w){this.encoding=n(w);var C;switch(this.encoding){case"utf16le":this.text=f,this.end=g,C=4;break;case"utf8":this.fillLast=c,C=4;break;case"base64":this.text=y,this.end=v,C=3;break;default:this.write=x,this.end=S;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(C)}o.prototype.write=function(w){if(w.length===0)return"";var C,A;if(this.lastNeed){if(C=this.fillLast(w),C===void 0)return"";A=this.lastNeed,this.lastNeed=0}else A=0;return A<w.length?C?C+this.text(w,A):this.text(w,A):C||""},o.prototype.end=d,o.prototype.text=u,o.prototype.fillLast=function(w){if(this.lastNeed<=w.length)return w.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);w.copy(this.lastChar,this.lastTotal-this.lastNeed,0,w.length),this.lastNeed-=w.length};function a(w){return w<=127?0:w>>5===6?2:w>>4===14?3:w>>3===30?4:w>>6===2?-1:-2}function i(w,C,A){var T=C.length-1;if(T<A)return 0;var L=a(C[T]);return L>=0?(L>0&&(w.lastNeed=L-1),L):--T<A||L===-2?0:(L=a(C[T]),L>=0?(L>0&&(w.lastNeed=L-2),L):--T<A||L===-2?0:(L=a(C[T]),L>=0?(L>0&&(L===2?L=0:w.lastNeed=L-3),L):0))}function s(w,C,A){if((C[0]&192)!==128)return w.lastNeed=0,"\uFFFD";if(w.lastNeed>1&&C.length>1){if((C[1]&192)!==128)return w.lastNeed=1,"\uFFFD";if(w.lastNeed>2&&C.length>2&&(C[2]&192)!==128)return w.lastNeed=2,"\uFFFD"}}function c(w){var C=this.lastTotal-this.lastNeed,A=s(this,w);if(A!==void 0)return A;if(this.lastNeed<=w.length)return w.copy(this.lastChar,C,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);w.copy(this.lastChar,C,0,w.length),this.lastNeed-=w.length}function u(w,C){var A=i(this,w,C);if(!this.lastNeed)return w.toString("utf8",C);this.lastTotal=A;var T=w.length-(A-this.lastNeed);return w.copy(this.lastChar,0,T),w.toString("utf8",C,T)}function d(w){var C=w&&w.length?this.write(w):"";return this.lastNeed?C+"\uFFFD":C}function f(w,C){if((w.length-C)%2===0){var A=w.toString("utf16le",C);if(A){var T=A.charCodeAt(A.length-1);if(T>=55296&&T<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=w[w.length-2],this.lastChar[1]=w[w.length-1],A.slice(0,-1)}return A}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=w[w.length-1],w.toString("utf16le",C,w.length-1)}function g(w){var C=w&&w.length?this.write(w):"";if(this.lastNeed){var A=this.lastTotal-this.lastNeed;return C+this.lastChar.toString("utf16le",0,A)}return C}function y(w,C){var A=(w.length-C)%3;return A===0?w.toString("base64",C):(this.lastNeed=3-A,this.lastTotal=3,A===1?this.lastChar[0]=w[w.length-1]:(this.lastChar[0]=w[w.length-2],this.lastChar[1]=w[w.length-1]),w.toString("base64",C,w.length-A))}function v(w){var C=w&&w.length?this.write(w):"";return this.lastNeed?C+this.lastChar.toString("base64",0,3-this.lastNeed):C}function x(w){return w.toString(this.encoding)}function S(w){return w&&w.length?this.write(w):""}return wk}var Ck,UW;function kk(){if(UW)return Ck;UW=1;var e=uu().codes.ERR_STREAM_PREMATURE_CLOSE;function t(a){var i=!1;return function(){if(!i){i=!0;for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];a.apply(this,c)}}}function r(){}function n(a){return a.setHeader&&typeof a.abort=="function"}function o(a,i,s){if(typeof i=="function")return o(a,null,i);i||(i={}),s=t(s||r);var c=i.readable||i.readable!==!1&&a.readable,u=i.writable||i.writable!==!1&&a.writable,d=function(){a.writable||g()},f=a._writableState&&a._writableState.finished,g=function(){u=!1,f=!0,c||s.call(a)},y=a._readableState&&a._readableState.endEmitted,v=function(){c=!1,y=!0,u||s.call(a)},x=function(C){s.call(a,C)},S=function(){var C;if(c&&!y)return(!a._readableState||!a._readableState.ended)&&(C=new e),s.call(a,C);if(u&&!f)return(!a._writableState||!a._writableState.ended)&&(C=new e),s.call(a,C)},w=function(){a.req.on("finish",g)};return n(a)?(a.on("complete",g),a.on("abort",S),a.req?w():a.on("request",w)):u&&!a._writableState&&(a.on("end",d),a.on("close",d)),a.on("end",v),a.on("finish",g),i.error!==!1&&a.on("error",x),a.on("close",S),function(){a.removeListener("complete",g),a.removeListener("abort",S),a.removeListener("request",w),a.req&&a.req.removeListener("finish",g),a.removeListener("end",d),a.removeListener("close",d),a.removeListener("finish",g),a.removeListener("end",v),a.removeListener("error",x),a.removeListener("close",S)}}return Ck=o,Ck}var Ek,FW;function kBe(){if(FW)return Ek;FW=1;var e;function t(A,T,L){return T=r(T),T in A?Object.defineProperty(A,T,{value:L,enumerable:!0,configurable:!0,writable:!0}):A[T]=L,A}function r(A){var T=n(A,"string");return typeof T=="symbol"?T:String(T)}function n(A,T){if(typeof A!="object"||A===null)return A;var L=A[Symbol.toPrimitive];if(L!==void 0){var j=L.call(A,T);if(typeof j!="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return(T==="string"?String:Number)(A)}var o=kk(),a=Symbol("lastResolve"),i=Symbol("lastReject"),s=Symbol("error"),c=Symbol("ended"),u=Symbol("lastPromise"),d=Symbol("handlePromise"),f=Symbol("stream");function g(A,T){return{value:A,done:T}}function y(A){var T=A[a];if(T!==null){var L=A[f].read();L!==null&&(A[u]=null,A[a]=null,A[i]=null,T(g(L,!1)))}}function v(A){process.nextTick(y,A)}function x(A,T){return function(L,j){A.then(function(){if(T[c]){L(g(void 0,!0));return}T[d](L,j)},j)}}var S=Object.getPrototypeOf(function(){}),w=Object.setPrototypeOf((e={get stream(){return this[f]},next:function(){var A=this,T=this[s];if(T!==null)return Promise.reject(T);if(this[c])return Promise.resolve(g(void 0,!0));if(this[f].destroyed)return new Promise(function(_,I){process.nextTick(function(){A[s]?I(A[s]):_(g(void 0,!0))})});var L=this[u],j;if(L)j=new Promise(x(L,this));else{var P=this[f].read();if(P!==null)return Promise.resolve(g(P,!1));j=new Promise(this[d])}return this[u]=j,j}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var A=this;return new Promise(function(T,L){A[f].destroy(null,function(j){if(j){L(j);return}T(g(void 0,!0))})})}),e),S),C=function(A){var T,L=Object.create(w,(T={},t(T,f,{value:A,writable:!0}),t(T,a,{value:null,writable:!0}),t(T,i,{value:null,writable:!0}),t(T,s,{value:null,writable:!0}),t(T,c,{value:A._readableState.endEmitted,writable:!0}),t(T,d,{value:function(j,P){var _=L[f].read();_?(L[u]=null,L[a]=null,L[i]=null,j(g(_,!1))):(L[a]=j,L[i]=P)},writable:!0}),T));return L[u]=null,o(A,function(j){if(j&&j.code!=="ERR_STREAM_PREMATURE_CLOSE"){var P=L[i];P!==null&&(L[u]=null,L[a]=null,L[i]=null,P(j)),L[s]=j;return}var _=L[a];_!==null&&(L[u]=null,L[a]=null,L[i]=null,_(g(void 0,!0))),L[c]=!0}),A.on("readable",v.bind(null,L)),L};return Ek=C,Ek}var qW,HW;function EBe(){return HW||(HW=1,qW=function(){throw new Error("Readable.from is not available in the browser")}),qW}var Ak,VW;function WW(){if(VW)return Ak;VW=1,Ak=I;var e;I.ReadableState=_;var t=function(E,R){return E.listeners(R).length},r=SW(),n=pf().Buffer,o=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function a(E){return n.from(E)}function i(E){return n.isBuffer(E)||E instanceof o}var s=TW,c;s&&s.debuglog?c=s.debuglog("stream"):c=function(){};var u=wBe(),d=LW(),f=RW(),g=f.getHighWaterMark,y=uu().codes,v=y.ERR_INVALID_ARG_TYPE,x=y.ERR_STREAM_PUSH_AFTER_EOF,S=y.ERR_METHOD_NOT_IMPLEMENTED,w=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,C,A,T,L=d.errorOrDestroy,j=["error","close","destroy","pause","resume"];function P(E,R,W){if(typeof E.prependListener=="function")return E.prependListener(R,W);!E._events||!E._events[R]?E.on(R,W):Array.isArray(E._events[R])?E._events[R].unshift(W):E._events[R]=[W,E._events[R]]}function _(E,R,W){e=e||du(),E=E||{},typeof W!="boolean"&&(W=R instanceof e),this.objectMode=!!E.objectMode,W&&(this.objectMode=this.objectMode||!!E.readableObjectMode),this.highWaterMark=g(this,E,"readableHighWaterMark",W),this.buffer=new u,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=E.emitClose!==!1,this.autoDestroy=!!E.autoDestroy,this.destroyed=!1,this.defaultEncoding=E.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,E.encoding&&(C||(C=BW().StringDecoder),this.decoder=new C(E.encoding),this.encoding=E.encoding)}function I(E){if(e=e||du(),!(this instanceof I))return new I(E);var R=this instanceof e;this._readableState=new _(E,this,R),this.readable=!0,E&&(typeof E.read=="function"&&(this._read=E.read),typeof E.destroy=="function"&&(this._destroy=E.destroy)),r.call(this)}Object.defineProperty(I.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(E){this._readableState&&(this._readableState.destroyed=E)}}),I.prototype.destroy=d.destroy,I.prototype._undestroy=d.undestroy,I.prototype._destroy=function(E,R){R(E)},I.prototype.push=function(E,R){var W=this._readableState,ge;return W.objectMode?ge=!0:typeof E=="string"&&(R=R||W.defaultEncoding,R!==W.encoding&&(E=n.from(E,R),R=""),ge=!0),z(this,E,R,!1,ge)},I.prototype.unshift=function(E){return z(this,E,null,!0,!1)};function z(E,R,W,ge,xe){c("readableAddChunk",R);var ce=E._readableState;if(R===null)ce.reading=!1,Y(E,ce);else{var ue;if(xe||(ue=B(ce,R)),ue)L(E,ue);else if(ce.objectMode||R&&R.length>0)if(typeof R!="string"&&!ce.objectMode&&Object.getPrototypeOf(R)!==n.prototype&&(R=a(R)),ge)ce.endEmitted?L(E,new w):q(E,ce,R,!0);else if(ce.ended)L(E,new x);else{if(ce.destroyed)return!1;ce.reading=!1,ce.decoder&&!W?(R=ce.decoder.write(R),ce.objectMode||R.length!==0?q(E,ce,R,!1):de(E,ce)):q(E,ce,R,!1)}else ge||(ce.reading=!1,de(E,ce))}return!ce.ended&&(ce.length<ce.highWaterMark||ce.length===0)}function q(E,R,W,ge){R.flowing&&R.length===0&&!R.sync?(R.awaitDrain=0,E.emit("data",W)):(R.length+=R.objectMode?1:W.length,ge?R.buffer.unshift(W):R.buffer.push(W),R.needReadable&&ie(E)),de(E,R)}function B(E,R){var W;return!i(R)&&typeof R!="string"&&R!==void 0&&!E.objectMode&&(W=new v("chunk",["string","Buffer","Uint8Array"],R)),W}I.prototype.isPaused=function(){return this._readableState.flowing===!1},I.prototype.setEncoding=function(E){C||(C=BW().StringDecoder);var R=new C(E);this._readableState.decoder=R,this._readableState.encoding=this._readableState.decoder.encoding;for(var W=this._readableState.buffer.head,ge="";W!==null;)ge+=R.write(W.data),W=W.next;return this._readableState.buffer.clear(),ge!==""&&this._readableState.buffer.push(ge),this._readableState.length=ge.length,this};var G=1073741824;function te(E){return E>=G?E=G:(E--,E|=E>>>1,E|=E>>>2,E|=E>>>4,E|=E>>>8,E|=E>>>16,E++),E}function le(E,R){return E<=0||R.length===0&&R.ended?0:R.objectMode?1:E!==E?R.flowing&&R.length?R.buffer.head.data.length:R.length:(E>R.highWaterMark&&(R.highWaterMark=te(E)),E<=R.length?E:R.ended?R.length:(R.needReadable=!0,0))}I.prototype.read=function(E){c("read",E),E=parseInt(E,10);var R=this._readableState,W=E;if(E!==0&&(R.emittedReadable=!1),E===0&&R.needReadable&&((R.highWaterMark!==0?R.length>=R.highWaterMark:R.length>0)||R.ended))return c("read: emitReadable",R.length,R.ended),R.length===0&&R.ended?F(this):ie(this),null;if(E=le(E,R),E===0&&R.ended)return R.length===0&&F(this),null;var ge=R.needReadable;c("need readable",ge),(R.length===0||R.length-E<R.highWaterMark)&&(ge=!0,c("length less than watermark",ge)),R.ended||R.reading?(ge=!1,c("reading or ended",ge)):ge&&(c("do read"),R.reading=!0,R.sync=!0,R.length===0&&(R.needReadable=!0),this._read(R.highWaterMark),R.sync=!1,R.reading||(E=le(W,R)));var xe;return E>0?xe=ne(E,R):xe=null,xe===null?(R.needReadable=R.length<=R.highWaterMark,E=0):(R.length-=E,R.awaitDrain=0),R.length===0&&(R.ended||(R.needReadable=!0),W!==E&&R.ended&&F(this)),xe!==null&&this.emit("data",xe),xe};function Y(E,R){if(c("onEofChunk"),!R.ended){if(R.decoder){var W=R.decoder.end();W&&W.length&&(R.buffer.push(W),R.length+=R.objectMode?1:W.length)}R.ended=!0,R.sync?ie(E):(R.needReadable=!1,R.emittedReadable||(R.emittedReadable=!0,re(E)))}}function ie(E){var R=E._readableState;c("emitReadable",R.needReadable,R.emittedReadable),R.needReadable=!1,R.emittedReadable||(c("emitReadable",R.flowing),R.emittedReadable=!0,process.nextTick(re,E))}function re(E){var R=E._readableState;c("emitReadable_",R.destroyed,R.length,R.ended),!R.destroyed&&(R.length||R.ended)&&(E.emit("readable"),R.emittedReadable=!1),R.needReadable=!R.flowing&&!R.ended&&R.length<=R.highWaterMark,Q(E)}function de(E,R){R.readingMore||(R.readingMore=!0,process.nextTick(X,E,R))}function X(E,R){for(;!R.reading&&!R.ended&&(R.length<R.highWaterMark||R.flowing&&R.length===0);){var W=R.length;if(c("maybeReadMore read 0"),E.read(0),W===R.length)break}R.readingMore=!1}I.prototype._read=function(E){L(this,new S("_read()"))},I.prototype.pipe=function(E,R){var W=this,ge=this._readableState;switch(ge.pipesCount){case 0:ge.pipes=E;break;case 1:ge.pipes=[ge.pipes,E];break;default:ge.pipes.push(E);break}ge.pipesCount+=1,c("pipe count=%d opts=%j",ge.pipesCount,R);var xe=(!R||R.end!==!1)&&E!==null&&E!==process.stderr,ce=xe?Ne:Fe;ge.endEmitted?process.nextTick(ce):W.once("end",ce),E.on("unpipe",ue);function ue(N,$){c("onunpipe"),N===W&&$&&$.hasUnpiped===!1&&($.hasUnpiped=!0,Je())}function Ne(){c("onend"),E.end()}var he=H(W);E.on("drain",he);var Ke=!1;function Je(){c("cleanup"),E.removeListener("close",Xe),E.removeListener("finish",ut),E.removeListener("drain",he),E.removeListener("error",He),E.removeListener("unpipe",ue),W.removeListener("end",Ne),W.removeListener("end",Fe),W.removeListener("data",Ve),Ke=!0,ge.awaitDrain&&(!E._writableState||E._writableState.needDrain)&&he()}W.on("data",Ve);function Ve(N){c("ondata");var $=E.write(N);c("dest.write",$),$===!1&&((ge.pipesCount===1&&ge.pipes===E||ge.pipesCount>1&&ke(ge.pipes,E)!==-1)&&!Ke&&(c("false write response, pause",ge.awaitDrain),ge.awaitDrain++),W.pause())}function He(N){c("onerror",N),Fe(),E.removeListener("error",He),t(E,"error")===0&&L(E,N)}P(E,"error",He);function Xe(){E.removeListener("finish",ut),Fe()}E.once("close",Xe);function ut(){c("onfinish"),E.removeListener("close",Xe),Fe()}E.once("finish",ut);function Fe(){c("unpipe"),W.unpipe(E)}return E.emit("pipe",W),ge.flowing||(c("pipe resume"),W.resume()),E};function H(E){return function(){var R=E._readableState;c("pipeOnDrain",R.awaitDrain),R.awaitDrain&&R.awaitDrain--,R.awaitDrain===0&&t(E,"data")&&(R.flowing=!0,Q(E))}}I.prototype.unpipe=function(E){var R=this._readableState,W={hasUnpiped:!1};if(R.pipesCount===0)return this;if(R.pipesCount===1)return E&&E!==R.pipes?this:(E||(E=R.pipes),R.pipes=null,R.pipesCount=0,R.flowing=!1,E&&E.emit("unpipe",this,W),this);if(!E){var ge=R.pipes,xe=R.pipesCount;R.pipes=null,R.pipesCount=0,R.flowing=!1;for(var ce=0;ce<xe;ce++)ge[ce].emit("unpipe",this,{hasUnpiped:!1});return this}var ue=ke(R.pipes,E);return ue===-1?this:(R.pipes.splice(ue,1),R.pipesCount-=1,R.pipesCount===1&&(R.pipes=R.pipes[0]),E.emit("unpipe",this,W),this)},I.prototype.on=function(E,R){var W=r.prototype.on.call(this,E,R),ge=this._readableState;return E==="data"?(ge.readableListening=this.listenerCount("readable")>0,ge.flowing!==!1&&this.resume()):E==="readable"&&!ge.endEmitted&&!ge.readableListening&&(ge.readableListening=ge.needReadable=!0,ge.flowing=!1,ge.emittedReadable=!1,c("on readable",ge.length,ge.reading),ge.length?ie(this):ge.reading||process.nextTick(K,this)),W},I.prototype.addListener=I.prototype.on,I.prototype.removeListener=function(E,R){var W=r.prototype.removeListener.call(this,E,R);return E==="readable"&&process.nextTick(ae,this),W},I.prototype.removeAllListeners=function(E){var R=r.prototype.removeAllListeners.apply(this,arguments);return(E==="readable"||E===void 0)&&process.nextTick(ae,this),R};function ae(E){var R=E._readableState;R.readableListening=E.listenerCount("readable")>0,R.resumeScheduled&&!R.paused?R.flowing=!0:E.listenerCount("data")>0&&E.resume()}function K(E){c("readable nexttick read 0"),E.read(0)}I.prototype.resume=function(){var E=this._readableState;return E.flowing||(c("resume"),E.flowing=!E.readableListening,V(this,E)),E.paused=!1,this};function V(E,R){R.resumeScheduled||(R.resumeScheduled=!0,process.nextTick(se,E,R))}function se(E,R){c("resume",R.reading),R.reading||E.read(0),R.resumeScheduled=!1,E.emit("resume"),Q(E),R.flowing&&!R.reading&&E.read(0)}I.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Q(E){var R=E._readableState;for(c("flow",R.flowing);R.flowing&&E.read()!==null;);}I.prototype.wrap=function(E){var R=this,W=this._readableState,ge=!1;E.on("end",function(){if(c("wrapped end"),W.decoder&&!W.ended){var ue=W.decoder.end();ue&&ue.length&&R.push(ue)}R.push(null)}),E.on("data",function(ue){if(c("wrapped data"),W.decoder&&(ue=W.decoder.write(ue)),!(W.objectMode&&ue==null)&&!(!W.objectMode&&(!ue||!ue.length))){var Ne=R.push(ue);Ne||(ge=!0,E.pause())}});for(var xe in E)this[xe]===void 0&&typeof E[xe]=="function"&&(this[xe]=(function(ue){return function(){return E[ue].apply(E,arguments)}})(xe));for(var ce=0;ce<j.length;ce++)E.on(j[ce],this.emit.bind(this,j[ce]));return this._read=function(ue){c("wrapped _read",ue),ge&&(ge=!1,E.resume())},this},typeof Symbol=="function"&&(I.prototype[Symbol.asyncIterator]=function(){return A===void 0&&(A=kBe()),A(this)}),Object.defineProperty(I.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(I.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(I.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(E){this._readableState&&(this._readableState.flowing=E)}}),I._fromList=ne,Object.defineProperty(I.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function ne(E,R){if(R.length===0)return null;var W;return R.objectMode?W=R.buffer.shift():!E||E>=R.length?(R.decoder?W=R.buffer.join(""):R.buffer.length===1?W=R.buffer.first():W=R.buffer.concat(R.length),R.buffer.clear()):W=R.buffer.consume(E,R.decoder),W}function F(E){var R=E._readableState;c("endReadable",R.endEmitted),R.endEmitted||(R.ended=!0,process.nextTick(be,R,E))}function be(E,R){if(c("endReadableNT",E.endEmitted,E.length),!E.endEmitted&&E.length===0&&(E.endEmitted=!0,R.readable=!1,R.emit("end"),E.autoDestroy)){var W=R._writableState;(!W||W.autoDestroy&&W.finished)&&R.destroy()}}typeof Symbol=="function"&&(I.from=function(E,R){return T===void 0&&(T=EBe()),T(I,E,R)});function ke(E,R){for(var W=0,ge=E.length;W<ge;W++)if(E[W]===R)return W;return-1}return Ak}var Tk,YW;function GW(){if(YW)return Tk;YW=1,Tk=s;var e=uu().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,r=e.ERR_MULTIPLE_CALLBACK,n=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=e.ERR_TRANSFORM_WITH_LENGTH_0,a=du();function i(d,f){var g=this._transformState;g.transforming=!1;var y=g.writecb;if(y===null)return this.emit("error",new r);g.writechunk=null,g.writecb=null,f!=null&&this.push(f),y(d);var v=this._readableState;v.reading=!1,(v.needReadable||v.length<v.highWaterMark)&&this._read(v.highWaterMark)}function s(d){if(!(this instanceof s))return new s(d);a.call(this,d),this._transformState={afterTransform:i.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,d&&(typeof d.transform=="function"&&(this._transform=d.transform),typeof d.flush=="function"&&(this._flush=d.flush)),this.on("prefinish",c)}function c(){var d=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(f,g){u(d,f,g)}):u(this,null,null)}s.prototype.push=function(d,f){return this._transformState.needTransform=!1,a.prototype.push.call(this,d,f)},s.prototype._transform=function(d,f,g){g(new t("_transform()"))},s.prototype._write=function(d,f,g){var y=this._transformState;if(y.writecb=g,y.writechunk=d,y.writeencoding=f,!y.transforming){var v=this._readableState;(y.needTransform||v.needReadable||v.length<v.highWaterMark)&&this._read(v.highWaterMark)}},s.prototype._read=function(d){var f=this._transformState;f.writechunk!==null&&!f.transforming?(f.transforming=!0,this._transform(f.writechunk,f.writeencoding,f.afterTransform)):f.needTransform=!0},s.prototype._destroy=function(d,f){a.prototype._destroy.call(this,d,function(g){f(g)})};function u(d,f,g){if(f)return d.emit("error",f);if(g!=null&&d.push(g),d._writableState.length)throw new o;if(d._transformState.transforming)throw new n;return d.push(null)}return Tk}var _k,JW;function ABe(){if(JW)return _k;JW=1,_k=t;var e=GW();function t(r){if(!(this instanceof t))return new t(r);e.call(this,r)}return t.prototype._transform=function(r,n,o){o(null,r)},_k}var Ok,KW;function TBe(){if(KW)return Ok;KW=1;var e;function t(g){var y=!1;return function(){y||(y=!0,g.apply(void 0,arguments))}}var r=uu().codes,n=r.ERR_MISSING_ARGS,o=r.ERR_STREAM_DESTROYED;function a(g){if(g)throw g}function i(g){return g.setHeader&&typeof g.abort=="function"}function s(g,y,v,x){x=t(x);var S=!1;g.on("close",function(){S=!0}),e===void 0&&(e=kk()),e(g,{readable:y,writable:v},function(C){if(C)return x(C);S=!0,x()});var w=!1;return function(C){if(!S&&!w){if(w=!0,i(g))return g.abort();if(typeof g.destroy=="function")return g.destroy();x(C||new o("pipe"))}}}function c(g){g()}function u(g,y){return g.pipe(y)}function d(g){return!g.length||typeof g[g.length-1]!="function"?a:g.pop()}function f(){for(var g=arguments.length,y=new Array(g),v=0;v<g;v++)y[v]=arguments[v];var x=d(y);if(Array.isArray(y[0])&&(y=y[0]),y.length<2)throw new n("streams");var S,w=y.map(function(C,A){var T=A<y.length-1,L=A>0;return s(C,T,L,function(j){S||(S=j),j&&w.forEach(c),!T&&(w.forEach(c),x(S))})});return y.reduce(u)}return Ok=f,Ok}var QW;function ZW(){return QW||(QW=1,(function(e,t){t=e.exports=WW(),t.Stream=t,t.Readable=t,t.Writable=$W(),t.Duplex=du(),t.Transform=GW(),t.PassThrough=ABe(),t.finished=kk(),t.pipeline=TBe()})(dk,dk.exports)),dk.exports}var XW;function eY(){if(XW)return iy;XW=1;var e=yW(),t=Fw(),r=ZW(),n=iy.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},o=iy.IncomingMessage=function(a,i,s,c){var u=this;if(r.Readable.call(u),u._mode=s,u.headers={},u.rawHeaders=[],u.trailers={},u.rawTrailers=[],u.on("end",function(){process.nextTick(function(){u.emit("close")})}),s==="fetch"){let x=function(){f.read().then(function(S){if(!u._destroyed){if(c(S.done),S.done){u.push(null);return}u.push(Buffer.from(S.value)),x()}}).catch(function(S){c(!0),u._destroyed||u.emit("error",S)})};if(u._fetchResponse=i,u.url=i.url,u.statusCode=i.status,u.statusMessage=i.statusText,i.headers.forEach(function(S,w){u.headers[w.toLowerCase()]=S,u.rawHeaders.push(w,S)}),e.writableStream){var d=new WritableStream({write:function(S){return c(!1),new Promise(function(w,C){u._destroyed?C():u.push(Buffer.from(S))?w():u._resumeFetch=w})},close:function(){c(!0),u._destroyed||u.push(null)},abort:function(S){c(!0),u._destroyed||u.emit("error",S)}});try{i.body.pipeTo(d).catch(function(S){c(!0),u._destroyed||u.emit("error",S)});return}catch{}}var f=i.body.getReader();x()}else{u._xhr=a,u._pos=0,u.url=a.responseURL,u.statusCode=a.status,u.statusMessage=a.statusText;var g=a.getAllResponseHeaders().split(/\r?\n/);if(g.forEach(function(x){var S=x.match(/^([^:]+):\s*(.*)/);if(S){var w=S[1].toLowerCase();w==="set-cookie"?(u.headers[w]===void 0&&(u.headers[w]=[]),u.headers[w].push(S[2])):u.headers[w]!==void 0?u.headers[w]+=", "+S[2]:u.headers[w]=S[2],u.rawHeaders.push(S[1],S[2])}}),u._charset="x-user-defined",!e.overrideMimeType){var y=u.rawHeaders["mime-type"];if(y){var v=y.match(/;\s*charset=([^;])(;|$)/);v&&(u._charset=v[1].toLowerCase())}u._charset||(u._charset="utf-8")}}};return t(o,r.Readable),o.prototype._read=function(){var a=this,i=a._resumeFetch;i&&(a._resumeFetch=null,i())},o.prototype._onXHRProgress=function(a){var i=this,s=i._xhr,c=null;switch(i._mode){case"text":if(c=s.responseText,c.length>i._pos){var u=c.substr(i._pos);if(i._charset==="x-user-defined"){for(var d=Buffer.alloc(u.length),f=0;f<u.length;f++)d[f]=u.charCodeAt(f)&255;i.push(d)}else i.push(u,i._charset);i._pos=c.length}break;case"arraybuffer":if(s.readyState!==n.DONE||!s.response)break;c=s.response,i.push(Buffer.from(new Uint8Array(c)));break;case"moz-chunked-arraybuffer":if(c=s.response,s.readyState!==n.LOADING||!c)break;i.push(Buffer.from(new Uint8Array(c)));break;case"ms-stream":if(c=s.response,s.readyState!==n.LOADING)break;var g=new globalThis.MSStreamReader;g.onprogress=function(){g.result.byteLength>i._pos&&(i.push(Buffer.from(new Uint8Array(g.result.slice(i._pos)))),i._pos=g.result.byteLength)},g.onload=function(){a(!0),i.push(null)},g.readAsArrayBuffer(c);break}i._xhr.readyState===n.DONE&&i._mode!=="ms-stream"&&(a(!0),i.push(null))},iy}var tY;function _Be(){if(tY)return uk.exports;tY=1;var e=yW(),t=Fw(),r=eY(),n=ZW(),o=r.IncomingMessage,a=r.readyStates;function i(d,f){return e.fetch&&f?"fetch":e.mozchunkedarraybuffer?"moz-chunked-arraybuffer":e.msstream?"ms-stream":e.arraybuffer&&d?"arraybuffer":"text"}var s=uk.exports=function(d){var f=this;n.Writable.call(f),f._opts=d,f._body=[],f._headers={},d.auth&&f.setHeader("Authorization","Basic "+Buffer.from(d.auth).toString("base64")),Object.keys(d.headers).forEach(function(v){f.setHeader(v,d.headers[v])});var g,y=!0;if(d.mode==="disable-fetch"||"requestTimeout"in d&&!e.abortController)y=!1,g=!0;else if(d.mode==="prefer-streaming")g=!1;else if(d.mode==="allow-wrong-content-type")g=!e.overrideMimeType;else if(!d.mode||d.mode==="default"||d.mode==="prefer-fast")g=!0;else throw new Error("Invalid value for opts.mode");f._mode=i(g,y),f._fetchTimer=null,f._socketTimeout=null,f._socketTimer=null,f.on("finish",function(){f._onFinish()})};t(s,n.Writable),s.prototype.setHeader=function(d,f){var g=this,y=d.toLowerCase();u.indexOf(y)===-1&&(g._headers[y]={name:d,value:f})},s.prototype.getHeader=function(d){var f=this._headers[d.toLowerCase()];return f?f.value:null},s.prototype.removeHeader=function(d){var f=this;delete f._headers[d.toLowerCase()]},s.prototype._onFinish=function(){var d=this;if(!d._destroyed){var f=d._opts;"timeout"in f&&f.timeout!==0&&d.setTimeout(f.timeout);var g=d._headers,y=null;f.method!=="GET"&&f.method!=="HEAD"&&(y=new Blob(d._body,{type:(g["content-type"]||{}).value||""}));var v=[];if(Object.keys(g).forEach(function(C){var A=g[C].name,T=g[C].value;Array.isArray(T)?T.forEach(function(L){v.push([A,L])}):v.push([A,T])}),d._mode==="fetch"){var x=null;if(e.abortController){var S=new AbortController;x=S.signal,d._fetchAbortController=S,"requestTimeout"in f&&f.requestTimeout!==0&&(d._fetchTimer=globalThis.setTimeout(function(){d.emit("requestTimeout"),d._fetchAbortController&&d._fetchAbortController.abort()},f.requestTimeout))}globalThis.fetch(d._opts.url,{method:d._opts.method,headers:v,body:y||void 0,mode:"cors",credentials:f.withCredentials?"include":"same-origin",signal:x}).then(function(C){d._fetchResponse=C,d._resetTimers(!1),d._connect()},function(C){d._resetTimers(!0),d._destroyed||d.emit("error",C)})}else{var w=d._xhr=new globalThis.XMLHttpRequest;try{w.open(d._opts.method,d._opts.url,!0)}catch(C){process.nextTick(function(){d.emit("error",C)});return}"responseType"in w&&(w.responseType=d._mode),"withCredentials"in w&&(w.withCredentials=!!f.withCredentials),d._mode==="text"&&"overrideMimeType"in w&&w.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in f&&(w.timeout=f.requestTimeout,w.ontimeout=function(){d.emit("requestTimeout")}),v.forEach(function(C){w.setRequestHeader(C[0],C[1])}),d._response=null,w.onreadystatechange=function(){switch(w.readyState){case a.LOADING:case a.DONE:d._onXHRProgress();break}},d._mode==="moz-chunked-arraybuffer"&&(w.onprogress=function(){d._onXHRProgress()}),w.onerror=function(){d._destroyed||(d._resetTimers(!0),d.emit("error",new Error("XHR error")))};try{w.send(y)}catch(C){process.nextTick(function(){d.emit("error",C)});return}}}};function c(d){try{var f=d.status;return f!==null&&f!==0}catch{return!1}}s.prototype._onXHRProgress=function(){var d=this;d._resetTimers(!1),!(!c(d._xhr)||d._destroyed)&&(d._response||d._connect(),d._response._onXHRProgress(d._resetTimers.bind(d)))},s.prototype._connect=function(){var d=this;d._destroyed||(d._response=new o(d._xhr,d._fetchResponse,d._mode,d._resetTimers.bind(d)),d._response.on("error",function(f){d.emit("error",f)}),d.emit("response",d._response))},s.prototype._write=function(d,f,g){var y=this;y._body.push(d),g()},s.prototype._resetTimers=function(d){var f=this;globalThis.clearTimeout(f._socketTimer),f._socketTimer=null,d?(globalThis.clearTimeout(f._fetchTimer),f._fetchTimer=null):f._socketTimeout&&(f._socketTimer=globalThis.setTimeout(function(){f.emit("timeout")},f._socketTimeout))},s.prototype.abort=s.prototype.destroy=function(d){var f=this;f._destroyed=!0,f._resetTimers(!0),f._response&&(f._response._destroyed=!0),f._xhr?f._xhr.abort():f._fetchAbortController&&f._fetchAbortController.abort(),d&&f.emit("error",d)},s.prototype.end=function(d,f,g){var y=this;typeof d=="function"&&(g=d,d=void 0),n.Writable.prototype.end.call(y,d,f,g)},s.prototype.setTimeout=function(d,f){var g=this;f&&g.once("timeout",f),g._socketTimeout=d,g._resetTimers(!1)},s.prototype.flushHeaders=function(){},s.prototype.setNoDelay=function(){},s.prototype.setSocketKeepAlive=function(){};var u=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"];return uk.exports}var Lk,rY;function OBe(){if(rY)return Lk;rY=1,Lk=t;var e=Object.prototype.hasOwnProperty;function t(){for(var r={},n=0;n<arguments.length;n++){var o=arguments[n];for(var a in o)e.call(o,a)&&(r[a]=o[a])}return r}return Lk}var nY,oY;function LBe(){return oY||(oY=1,nY={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}),nY}var aY;function jBe(){return aY||(aY=1,(function(e){var t=_Be(),r=eY(),n=OBe(),o=LBe(),a=c3(),i=e;i.request=function(s,c){typeof s=="string"?s=a.parse(s):s=n(s);var u=globalThis.location.protocol.search(/^https?:$/)===-1?"http:":"",d=s.protocol||u,f=s.hostname||s.host,g=s.port,y=s.path||"/";f&&f.indexOf(":")!==-1&&(f="["+f+"]"),s.url=(f?d+"//"+f:"")+(g?":"+g:"")+y,s.method=(s.method||"GET").toUpperCase(),s.headers=s.headers||{};var v=new t(s);return c&&v.on("response",c),v},i.get=function(s,c){var u=i.request(s,c);return u.end(),u},i.ClientRequest=t,i.IncomingMessage=r.IncomingMessage,i.Agent=function(){},i.Agent.defaultMaxSockets=4,i.globalAgent=new i.Agent,i.STATUS_CODES=o,i.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]})(mW)),mW}var iY,sY;function NBe(){return sY||(sY=1,iY={statusCodes:Object.assign({},{default:"Default response","1XX":"Informational",103:"Early hints","2XX":"Successful","3XX":"Redirection","4XX":"Client Error","5XX":"Server Error","7XX":"Developer Error"},jBe().STATUS_CODES)}),iY}const RBe="7.0.8",PBe={version:RBe};var jk,lY;function IBe(){if(lY)return jk;lY=1;const e=ub,t=c3(),r=eDe(),n=ub,o=sze,a=qb(),i=a.jptr,s=H3().isRef,c=Hb().clone,u=Hb().circularClone,d=Y3().recurse,f=gBe(),g=bBe(),y=dW(),v=NBe().statusCodes,x=PBe.version,S="3.0.0";let w;class C extends Error{constructor(R){super(R),this.name="S2OError"}}function A(E,R){let W=new C(E);if(W.options=R,R.promise)R.promise.reject(W);else throw W}function T(E,R,W){W.warnOnly?R[W.warnProperty||"x-s2o-warning"]=E:A(E,W)}function L(E,R,W){if(E.nullable&&W.patches++,E.discriminator&&typeof E.discriminator=="string"&&(E.discriminator={propertyName:E.discriminator}),E.items&&Array.isArray(E.items)&&(E.items.length===0?E.items={}:E.items.length===1?E.items=E.items[0]:E.items={anyOf:E.items}),E.type&&Array.isArray(E.type))if(W.patch){if(W.patches++,E.type.length===0)delete E.type;else{E.oneOf||(E.oneOf=[]);for(let ge of E.type){let xe={};if(ge==="null")E.nullable=!0;else{xe.type=ge;for(let ce of y.arrayProperties)typeof E.prop<"u"&&(xe[ce]=E[ce],delete E[ce])}xe.type&&E.oneOf.push(xe)}delete E.type,E.oneOf.length===0?delete E.oneOf:E.oneOf.length<2&&(E.type=E.oneOf[0].type,Object.keys(E.oneOf[0]).length>1&&T("Lost properties from oneOf",E,W),delete E.oneOf)}E.type&&Array.isArray(E.type)&&E.type.length===1&&(E.type=E.type[0])}else A("(Patchable) schema type must not be an array",W);E.type&&E.type==="null"&&(delete E.type,E.nullable=!0),E.type==="array"&&!E.items&&(E.items={}),E.type==="file"&&(E.type="string",E.format="binary"),typeof E.required=="boolean"&&(E.required&&E.name&&(typeof R.required>"u"&&(R.required=[]),Array.isArray(R.required)&&R.required.push(E.name)),delete E.required),E.xml&&typeof E.xml.namespace=="string"&&(E.xml.namespace||delete E.xml.namespace),typeof E.allowEmptyValue<"u"&&(W.patches++,delete E.allowEmptyValue)}function j(E,R){if(E["x-required"]&&Array.isArray(E["x-required"])&&(E.required||(E.required=[]),E.required=E.required.concat(E["x-required"]),delete E["x-required"]),E["x-anyOf"]&&(E.anyOf=E["x-anyOf"],delete E["x-anyOf"]),E["x-oneOf"]&&(E.oneOf=E["x-oneOf"],delete E["x-oneOf"]),E["x-not"]&&(E.not=E["x-not"],delete E["x-not"]),typeof E["x-nullable"]=="boolean"&&(E.nullable=E["x-nullable"],delete E["x-nullable"]),typeof E["x-discriminator"]=="object"&&typeof E["x-discriminator"].propertyName=="string"){E.discriminator=E["x-discriminator"],delete E["x-discriminator"];for(let W in E.discriminator.mapping){let ge=E.discriminator.mapping[W];ge.startsWith("#/definitions/")&&(E.discriminator.mapping[W]=ge.replace("#/definitions/","#/components/schemas/"))}}}function P(E,R){g.walkSchema(E,{},{},function(W,ge,xe){j(W),L(W,ge,R)})}function _(E){return E.indexOf("#")>=0?E=E.split("#")[1].split("/").pop():E=E.split("/").pop().split(".")[0],encodeURIComponent(y.sanitise(E))}function I(E,R,W){let ge=W.payload.options;if(s(E,R)){if(!E[R].startsWith("#/components/")){if(E[R]==="#/consumes")delete E[R],W.parent[W.pkey]=c(ge.openapi.consumes);else if(E[R]==="#/produces")delete E[R],W.parent[W.pkey]=c(ge.openapi.produces);else if(E[R].startsWith("#/definitions/")){let xe=E[R].replace("#/definitions/","").split("/");const ce=a.jpunescape(xe[0]);let ue=w.schemas[decodeURIComponent(ce)];ue?xe[0]=ue:T("Could not resolve reference "+E[R],E,ge),E[R]="#/components/schemas/"+xe.join("/")}else if(E[R].startsWith("#/parameters/"))E[R]="#/components/parameters/"+y.sanitise(E[R].replace("#/parameters/",""));else if(E[R].startsWith("#/responses/"))E[R]="#/components/responses/"+y.sanitise(E[R].replace("#/responses/",""));else if(E[R].startsWith("#")){let xe=c(a.jptr(ge.openapi,E[R]));if(xe===!1)T("direct $ref not found "+E[R],E,ge);else if(ge.refmap[E[R]])E[R]=ge.refmap[E[R]];else{let ce=E[R];ce=ce.replace("/properties/headers/",""),ce=ce.replace("/properties/responses/",""),ce=ce.replace("/properties/parameters/",""),ce=ce.replace("/properties/schemas/","");let ue="schemas",Ne=ce.lastIndexOf("/schema");if(ue=ce.indexOf("/headers/")>Ne?"headers":ce.indexOf("/responses/")>Ne?"responses":ce.indexOf("/example")>Ne?"examples":ce.indexOf("/x-")>Ne?"extensions":ce.indexOf("/parameters/")>Ne?"parameters":"schemas",ue==="schemas"&&P(xe,ge),ue!=="responses"&&ue!=="extensions"){let he=ue.substr(0,ue.length-1);he==="parameter"&&xe.name&&xe.name===y.sanitise(xe.name)&&(he=encodeURIComponent(xe.name));let Ke=1;for(E["x-miro"]&&(he=_(E["x-miro"]),Ke="");a.jptr(ge.openapi,"#/components/"+ue+"/"+he+Ke);)Ke=Ke===""?2:++Ke;let Je="#/components/"+ue+"/"+he+Ke,Ve="";ue==="examples"&&(xe={value:xe},Ve="/value"),a.jptr(ge.openapi,Je,xe),ge.refmap[E[R]]=Je+Ve,E[R]=Je+Ve}}}}if(delete E["x-miro"],Object.keys(E).length>1){const xe=E[R],ce=W.path.indexOf("/schema")>=0;ge.refSiblings==="preserve"||(ce&&ge.refSiblings==="allOf"?(delete E.$ref,W.parent[W.pkey]={allOf:[{$ref:xe},E]}):W.parent[W.pkey]={$ref:xe})}}if(R==="x-ms-odata"&&typeof E[R]=="string"&&E[R].startsWith("#/")){let xe=E[R].replace("#/definitions/","").replace("#/components/schemas/","").split("/"),ce=w.schemas[decodeURIComponent(xe[0])];ce?xe[0]=ce:T("Could not resolve reference "+E[R],E,ge),E[R]="#/components/schemas/"+xe.join("/")}}function z(E,R){for(let W in R.refmap)a.jptr(E,W,{$ref:R.refmap[W]})}function q(E){for(let R in E)for(let W in E[R]){let ge=y.sanitise(W);W!==ge&&(E[R][ge]=E[R][W],delete E[R][W])}}function B(E,R){if(E.type==="basic"&&(E.type="http",E.scheme="basic"),E.type==="oauth2"){let W={},ge=E.flow;E.flow==="application"&&(ge="clientCredentials"),E.flow==="accessCode"&&(ge="authorizationCode"),typeof E.authorizationUrl<"u"&&(W.authorizationUrl=E.authorizationUrl.split("?")[0].trim()||"/"),typeof E.tokenUrl=="string"&&(W.tokenUrl=E.tokenUrl.split("?")[0].trim()||"/"),W.scopes=E.scopes||{},E.flows={},E.flows[ge]=W,delete E.flow,delete E.authorizationUrl,delete E.tokenUrl,delete E.scopes,typeof E.name<"u"&&(R.patch?(R.patches++,delete E.name):A("(Patchable) oauth2 securitySchemes should not have name property",R))}}function G(E){return E&&!E["x-s2o-delete"]}function te(E,R){if(E.$ref)E.$ref=E.$ref.replace("#/responses/","#/components/responses/");else{E.type&&!E.schema&&(E.schema={}),E.type&&(E.schema.type=E.type),E.items&&E.items.type!=="array"&&(E.items.collectionFormat!==E.collectionFormat&&T("Nested collectionFormats are not supported",E,R),delete E.items.collectionFormat),E.type==="array"?(E.collectionFormat==="ssv"?T("collectionFormat:ssv is no longer supported for headers",E,R):E.collectionFormat==="pipes"?T("collectionFormat:pipes is no longer supported for headers",E,R):E.collectionFormat==="multi"?E.explode=!0:E.collectionFormat==="tsv"?(T("collectionFormat:tsv is no longer supported",E,R),E["x-collectionFormat"]="tsv"):E.style="simple",delete E.collectionFormat):E.collectionFormat&&(R.patch?(R.patches++,delete E.collectionFormat):A("(Patchable) collectionFormat is only applicable to header.type array",R)),delete E.type;for(let W of y.parameterTypeProperties)typeof E[W]<"u"&&(E.schema[W]=E[W],delete E[W]);for(let W of y.arrayProperties)typeof E[W]<"u"&&(E.schema[W]=E[W],delete E[W])}}function le(E,R){if(E.$ref.indexOf("#/parameters/")>=0){let W=E.$ref.split("#/parameters/");E.$ref=W[0]+"#/components/parameters/"+y.sanitise(W[1])}E.$ref.indexOf("#/definitions/")>=0&&T("Definition used as parameter",E,R)}function Y(E,R){let W={};for(let ge of Object.keys(E))W[ge]=E[ge],ge==="parameters"&&(W.requestBody={},R.rbname&&(W[R.rbname]=""));return W.requestBody={},W}function ie(E,R,W,ge,xe,ce,ue){let Ne={},he=!0,Ke;if(R&&R.consumes&&typeof R.consumes=="string")if(ue.patch)ue.patches++,R.consumes=[R.consumes];else return A("(Patchable) operation.consumes must be an array",ue);Array.isArray(ce.consumes)||delete ce.consumes;let Je=((R?R.consumes:null)||ce.consumes||[]).filter(y.uniqueOnly);if(E&&E.$ref&&typeof E.$ref=="string"){le(E,ue);let Ve=decodeURIComponent(E.$ref.replace("#/components/parameters/","")),He=!1,Xe=ce.components.parameters[Ve];if((!Xe||Xe["x-s2o-delete"])&&E.$ref.startsWith("#/")&&(E["x-s2o-delete"]=!0,He=!0),He){let ut=E.$ref,Fe=i(ce,E.$ref);!Fe&&ut.startsWith("#/")?T("Could not resolve reference "+ut,E,ue):Fe&&(E=Fe)}}if(E&&(E.name||E.in)){typeof E["x-deprecated"]=="boolean"&&(E.deprecated=E["x-deprecated"],delete E["x-deprecated"]),typeof E["x-example"]<"u"&&(E.example=E["x-example"],delete E["x-example"]),E.in!=="body"&&!E.type&&(ue.patch?(ue.patches++,E.type="string"):A("(Patchable) parameter.type is mandatory for non-body parameters",ue)),E.type&&typeof E.type=="object"&&E.type.$ref&&(E.type=i(ce,E.type.$ref)),E.type==="file"&&(E["x-s2o-originalType"]=E.type,Ke=E.type),E.description&&typeof E.description=="object"&&E.description.$ref&&(E.description=i(ce,E.description.$ref)),E.description===null&&delete E.description;let Ve=E.collectionFormat;if(E.type==="array"&&!Ve&&(Ve="csv"),Ve&&(E.type!=="array"&&(ue.patch?(ue.patches++,delete E.collectionFormat):A("(Patchable) collectionFormat is only applicable to param.type array",ue)),Ve==="csv"&&(E.in==="query"||E.in==="cookie")&&(E.style="form",E.explode=!1),Ve==="csv"&&(E.in==="path"||E.in==="header")&&(E.style="simple"),Ve==="ssv"&&(E.in==="query"?E.style="spaceDelimited":T("collectionFormat:ssv is no longer supported except for in:query parameters",E,ue)),Ve==="pipes"&&(E.in==="query"?E.style="pipeDelimited":T("collectionFormat:pipes is no longer supported except for in:query parameters",E,ue)),Ve==="multi"&&(E.explode=!0),Ve==="tsv"&&(T("collectionFormat:tsv is no longer supported",E,ue),E["x-collectionFormat"]="tsv"),delete E.collectionFormat),E.type&&E.type!=="body"&&E.in!=="formData")if(E.items&&E.schema)T("parameter has array,items and schema",E,ue);else{E.schema&&ue.patches++,(!E.schema||typeof E.schema!="object")&&(E.schema={}),E.schema.type=E.type,E.items&&(E.schema.items=E.items,delete E.items,d(E.schema.items,null,function(He,Xe,ut){Xe==="collectionFormat"&&typeof He[Xe]=="string"&&(Ve&&He[Xe]!==Ve&&T("Nested collectionFormats are not supported",E,ue),delete He[Xe])}));for(let He of y.parameterTypeProperties)typeof E[He]<"u"&&(E.schema[He]=E[He]),delete E[He]}E.schema&&P(E.schema,ue),E["x-ms-skip-url-encoding"]&&E.in==="query"&&(E.allowReserved=!0,delete E["x-ms-skip-url-encoding"])}if(E&&E.in==="formData"){he=!1,Ne.content={};let Ve="application/x-www-form-urlencoded";if(Je.length&&Je.indexOf("multipart/form-data")>=0&&(Ve="multipart/form-data"),Ne.content[Ve]={},E.schema)Ne.content[Ve].schema=E.schema,E.schema.$ref&&(Ne["x-s2o-name"]=decodeURIComponent(E.schema.$ref.replace("#/components/schemas/","")));else{Ne.content[Ve].schema={},Ne.content[Ve].schema.type="object",Ne.content[Ve].schema.properties={},Ne.content[Ve].schema.properties[E.name]={};let He=Ne.content[Ve].schema,Xe=Ne.content[Ve].schema.properties[E.name];E.description&&(Xe.description=E.description),E.example&&(Xe.example=E.example),E.type&&(Xe.type=E.type);for(let ut of y.parameterTypeProperties)typeof E[ut]<"u"&&(Xe[ut]=E[ut]);E.required===!0&&(He.required||(He.required=[]),He.required.push(E.name),Ne.required=!0),typeof E.default<"u"&&(Xe.default=E.default),Xe.properties&&(Xe.properties=E.properties),E.allOf&&(Xe.allOf=E.allOf),E.type==="array"&&E.items&&(Xe.items=E.items,Xe.items.collectionFormat&&delete Xe.items.collectionFormat),(Ke==="file"||E["x-s2o-originalType"]==="file")&&(Xe.type="string",Xe.format="binary"),re(E,Xe)}}else E&&E.type==="file"&&(E.required&&(Ne.required=E.required),Ne.content={},Ne.content["application/octet-stream"]={},Ne.content["application/octet-stream"].schema={},Ne.content["application/octet-stream"].schema.type="string",Ne.content["application/octet-stream"].schema.format="binary",re(E,Ne));if(E&&E.in==="body"){Ne.content={},E.name&&(Ne["x-s2o-name"]=(R&&R.operationId?y.sanitiseAll(R.operationId):"")+("_"+E.name).toCamelCase()),E.description&&(Ne.description=E.description),E.required&&(Ne.required=E.required),R&&ue.rbname&&E.name&&(R[ue.rbname]=E.name),E.schema&&E.schema.$ref?Ne["x-s2o-name"]=decodeURIComponent(E.schema.$ref.replace("#/components/schemas/","")):E.schema&&E.schema.type==="array"&&E.schema.items&&E.schema.items.$ref&&(Ne["x-s2o-name"]=decodeURIComponent(E.schema.items.$ref.replace("#/components/schemas/",""))+"Array"),Je.length||Je.push("application/json");for(let Ve of Je)Ne.content[Ve]={},Ne.content[Ve].schema=c(E.schema||{}),P(Ne.content[Ve].schema,ue);re(E,Ne)}if(Object.keys(Ne).length>0&&(E["x-s2o-delete"]=!0,R))if(R.requestBody&&he){R.requestBody["x-s2o-overloaded"]=!0;let Ve=R.operationId||xe;T("Operation "+Ve+" has multiple requestBodies",R,ue)}else R.requestBody||(R=W[ge]=Y(R,ue)),R.requestBody.content&&R.requestBody.content["multipart/form-data"]&&R.requestBody.content["multipart/form-data"].schema&&R.requestBody.content["multipart/form-data"].schema.properties&&Ne.content["multipart/form-data"]&&Ne.content["multipart/form-data"].schema&&Ne.content["multipart/form-data"].schema.properties?(R.requestBody.content["multipart/form-data"].schema.properties=Object.assign(R.requestBody.content["multipart/form-data"].schema.properties,Ne.content["multipart/form-data"].schema.properties),R.requestBody.content["multipart/form-data"].schema.required=(R.requestBody.content["multipart/form-data"].schema.required||[]).concat(Ne.content["multipart/form-data"].schema.required||[]),R.requestBody.content["multipart/form-data"].schema.required.length||delete R.requestBody.content["multipart/form-data"].schema.required):R.requestBody.content&&R.requestBody.content["application/x-www-form-urlencoded"]&&R.requestBody.content["application/x-www-form-urlencoded"].schema&&R.requestBody.content["application/x-www-form-urlencoded"].schema.properties&&Ne.content["application/x-www-form-urlencoded"]&&Ne.content["application/x-www-form-urlencoded"].schema&&Ne.content["application/x-www-form-urlencoded"].schema.properties?(R.requestBody.content["application/x-www-form-urlencoded"].schema.properties=Object.assign(R.requestBody.content["application/x-www-form-urlencoded"].schema.properties,Ne.content["application/x-www-form-urlencoded"].schema.properties),R.requestBody.content["application/x-www-form-urlencoded"].schema.required=(R.requestBody.content["application/x-www-form-urlencoded"].schema.required||[]).concat(Ne.content["application/x-www-form-urlencoded"].schema.required||[]),R.requestBody.content["application/x-www-form-urlencoded"].schema.required.length||delete R.requestBody.content["application/x-www-form-urlencoded"].schema.required):(R.requestBody=Object.assign(R.requestBody,Ne),R.requestBody["x-s2o-name"]||(R.requestBody.schema&&R.requestBody.schema.$ref?R.requestBody["x-s2o-name"]=decodeURIComponent(R.requestBody.schema.$ref.replace("#/components/schemas/","")).split("/").join(""):R.operationId&&(R.requestBody["x-s2o-name"]=y.sanitiseAll(R.operationId))));if(E&&!E["x-s2o-delete"]){delete E.type;for(let Ve of y.parameterTypeProperties)delete E[Ve];E.in==="path"&&(typeof E.required>"u"||E.required!==!0)&&(ue.patch?(ue.patches++,E.required=!0):A("(Patchable) path parameters must be required:true ["+E.name+" in "+xe+"]",ue))}return R}function re(E,R){for(let W in E)W.startsWith("x-")&&!W.startsWith("x-s2o")&&(R[W]=E[W])}function de(E,R,W,ge,xe){if(!E)return!1;if(E.$ref&&typeof E.$ref=="string")E.$ref.indexOf("#/definitions/")>=0?T("definition used as response: "+E.$ref,E,xe):E.$ref.startsWith("#/responses/")&&(E.$ref="#/components/responses/"+y.sanitise(decodeURIComponent(E.$ref.replace("#/responses/",""))));else{if((typeof E.description>"u"||E.description===null||E.description===""&&xe.patch)&&(xe.patch?typeof E=="object"&&!Array.isArray(E)&&(xe.patches++,E.description=v[E]||""):A("(Patchable) response.description is mandatory",xe)),typeof E.schema<"u"){if(P(E.schema,xe),E.schema.$ref&&typeof E.schema.$ref=="string"&&E.schema.$ref.startsWith("#/responses/")&&(E.schema.$ref="#/components/responses/"+y.sanitise(decodeURIComponent(E.schema.$ref.replace("#/responses/","")))),W&&W.produces&&typeof W.produces=="string")if(xe.patch)xe.patches++,W.produces=[W.produces];else return A("(Patchable) operation.produces must be an array",xe);ge.produces&&!Array.isArray(ge.produces)&&delete ge.produces;let ce=((W?W.produces:null)||ge.produces||[]).filter(y.uniqueOnly);ce.length||ce.push("*/*"),E.content={};for(let ue of ce){if(E.content[ue]={},E.content[ue].schema=c(E.schema),E.examples&&E.examples[ue]){let Ne={};Ne.value=E.examples[ue],E.content[ue].examples={},E.content[ue].examples.response=Ne,delete E.examples[ue]}E.content[ue].schema.type==="file"&&(E.content[ue].schema={type:"string",format:"binary"})}delete E.schema}for(let ce in E.examples)E.content||(E.content={}),E.content[ce]||(E.content[ce]={}),E.content[ce].examples={},E.content[ce].examples.response={},E.content[ce].examples.response.value=E.examples[ce];if(delete E.examples,E.headers)for(let ce in E.headers)ce.toLowerCase()==="status code"?xe.patch?(xe.patches++,delete E.headers[ce]):A('(Patchable) "Status Code" is not a valid header',xe):te(E.headers[ce],xe)}}function X(E,R,W,ge,xe){for(let ce in E){let ue=E[ce];ue&&ue["x-trace"]&&typeof ue["x-trace"]=="object"&&(ue.trace=ue["x-trace"],delete ue["x-trace"]),ue&&ue["x-summary"]&&typeof ue["x-summary"]=="string"&&(ue.summary=ue["x-summary"],delete ue["x-summary"]),ue&&ue["x-description"]&&typeof ue["x-description"]=="string"&&(ue.description=ue["x-description"],delete ue["x-description"]),ue&&ue["x-servers"]&&Array.isArray(ue["x-servers"])&&(ue.servers=ue["x-servers"],delete ue["x-servers"]);for(let Ne in ue)if(y.httpMethods.indexOf(Ne)>=0||Ne==="x-amazon-apigateway-any-method"){let he=ue[Ne];if(he&&he.parameters&&Array.isArray(he.parameters)){if(ue.parameters)for(let Ke of ue.parameters)typeof Ke.$ref=="string"&&(le(Ke,W),Ke=i(xe,Ke.$ref)),!he.parameters.find(function(Je,Ve,He){return Je.name===Ke.name&&Je.in===Ke.in})&&(Ke.in==="formData"||Ke.in==="body"||Ke.type==="file")&&(he=ie(Ke,he,ue,Ne,ce,xe,W),W.rbname&&he[W.rbname]===""&&delete he[W.rbname]);for(let Ke of he.parameters)he=ie(Ke,he,ue,Ne,Ne+":"+ce,xe,W);W.rbname&&he[W.rbname]===""&&delete he[W.rbname],W.debug||he.parameters&&(he.parameters=he.parameters.filter(G))}if(he&&he.security&&q(he.security),typeof he=="object"){if(!he.responses){let Ke={};Ke.description="Default response",he.responses={default:Ke}}for(let Ke in he.responses){let Je=he.responses[Ke];de(Je,Ke,he,xe,W)}}if(he&&he["x-servers"]&&Array.isArray(he["x-servers"]))he.servers=he["x-servers"],delete he["x-servers"];else if(he&&he.schemes&&he.schemes.length){for(let Ke of he.schemes)if((!xe.schemes||xe.schemes.indexOf(Ke)<0)&&(he.servers||(he.servers=[]),Array.isArray(xe.servers)))for(let Je of xe.servers){let Ve=c(Je),He=t.parse(Ve.url);He.protocol=Ke,Ve.url=He.format(),he.servers.push(Ve)}}if(W.debug&&(he["x-s2o-consumes"]=he.consumes||[],he["x-s2o-produces"]=he.produces||[]),he){if(delete he.consumes,delete he.produces,delete he.schemes,he["x-ms-examples"]){for(let Ke in he["x-ms-examples"]){let Je=he["x-ms-examples"][Ke],Ve=y.sanitiseAll(Ke);if(Je.parameters)for(let He in Je.parameters){let Xe=Je.parameters[He];for(let ut of(he.parameters||[]).concat(ue.parameters||[]))ut.$ref&&(ut=a.jptr(xe,ut.$ref)),ut.name===He&&!ut.example&&(ut.examples||(ut.examples={}),ut.examples[Ke]={value:Xe})}if(Je.responses)for(let He in Je.responses){if(Je.responses[He].headers)for(let Xe in Je.responses[He].headers){let ut=Je.responses[He].headers[Xe];for(let Fe in he.responses[He].headers)if(Fe===Xe){let N=he.responses[He].headers[Fe];N.example=ut}}if(Je.responses[He].body&&(xe.components.examples[Ve]={value:c(Je.responses[He].body)},he.responses[He]&&he.responses[He].content))for(let Xe in he.responses[He].content){let ut=he.responses[He].content[Xe];ut.examples||(ut.examples={}),ut.examples[Ke]={$ref:"#/components/examples/"+Ve}}}}delete he["x-ms-examples"]}if(he.parameters&&he.parameters.length===0&&delete he.parameters,he.requestBody){let Ke=he.operationId?y.sanitiseAll(he.operationId):y.sanitiseAll(Ne+ce).toCamelCase(),Je=y.sanitise(he.requestBody["x-s2o-name"]||Ke||"");delete he.requestBody["x-s2o-name"];let Ve=JSON.stringify(he.requestBody),He=y.hash(Ve);if(!ge[He]){let ut={};ut.name=Je,ut.body=he.requestBody,ut.refs=[],ge[He]=ut}let Xe="#/"+R+"/"+encodeURIComponent(a.jpescape(ce))+"/"+Ne+"/requestBody";ge[He].refs.push(Xe)}}}if(ue&&ue.parameters){for(let Ne in ue.parameters){let he=ue.parameters[Ne];ie(he,null,ue,null,ce,xe,W)}!W.debug&&Array.isArray(ue.parameters)&&(ue.parameters=ue.parameters.filter(G))}}}function H(E,R){let W={};w={schemas:{}},E.security&&q(E.security);for(let xe in E.components.securitySchemes){let ce=y.sanitise(xe);xe!==ce&&(E.components.securitySchemes[ce]&&A("Duplicate sanitised securityScheme name "+ce,R),E.components.securitySchemes[ce]=E.components.securitySchemes[xe],delete E.components.securitySchemes[xe]),B(E.components.securitySchemes[ce],R)}for(let xe in E.components.schemas){let ce=y.sanitiseAll(xe),ue="";if(xe!==ce){for(;E.components.schemas[ce+ue];)ue=ue?++ue:2;E.components.schemas[ce+ue]=E.components.schemas[xe],delete E.components.schemas[xe]}w.schemas[xe]=ce+ue,P(E.components.schemas[ce+ue],R)}R.refmap={},d(E,{payload:{options:R}},I),z(E,R);for(let xe in E.components.parameters){let ce=y.sanitise(xe);xe!==ce&&(E.components.parameters[ce]&&A("Duplicate sanitised parameter name "+ce,R),E.components.parameters[ce]=E.components.parameters[xe],delete E.components.parameters[xe]);let ue=E.components.parameters[ce];ie(ue,null,null,null,ce,E,R)}for(let xe in E.components.responses){let ce=y.sanitise(xe);xe!==ce&&(E.components.responses[ce]&&A("Duplicate sanitised response name "+ce,R),E.components.responses[ce]=E.components.responses[xe],delete E.components.responses[xe]);let ue=E.components.responses[ce];if(de(ue,ce,null,E,R),ue.headers)for(let Ne in ue.headers)Ne.toLowerCase()==="status code"?R.patch?(R.patches++,delete ue.headers[Ne]):A('(Patchable) "Status Code" is not a valid header',R):te(ue.headers[Ne],R)}for(let xe in E.components.requestBodies){let ce=E.components.requestBodies[xe],ue=JSON.stringify(ce),Ne=y.hash(ue),he={};he.name=xe,he.body=ce,he.refs=[],W[Ne]=he}if(X(E.paths,"paths",R,W,E),E["x-ms-paths"]&&X(E["x-ms-paths"],"x-ms-paths",R,W,E),!R.debug)for(let xe in E.components.parameters)E.components.parameters[xe]["x-s2o-delete"]&&delete E.components.parameters[xe];R.debug&&(E["x-s2o-consumes"]=E.consumes||[],E["x-s2o-produces"]=E.produces||[]),delete E.consumes,delete E.produces,delete E.schemes;let ge=[];if(E.components.requestBodies={},!R.resolveInternal){let xe=1;for(let ce in W){let ue=W[ce];if(ue.refs.length>1){let Ne="";for(ue.name||(ue.name="requestBody",Ne=xe++);ge.indexOf(ue.name+Ne)>=0;)Ne=Ne?++Ne:2;ue.name=ue.name+Ne,ge.push(ue.name),E.components.requestBodies[ue.name]=c(ue.body);for(let he in ue.refs){let Ke={};Ke.$ref="#/components/requestBodies/"+ue.name,a.jptr(E,ue.refs[he],Ke)}}}}return E.components.responses&&Object.keys(E.components.responses).length===0&&delete E.components.responses,E.components.parameters&&Object.keys(E.components.parameters).length===0&&delete E.components.parameters,E.components.examples&&Object.keys(E.components.examples).length===0&&delete E.components.examples,E.components.requestBodies&&Object.keys(E.components.requestBodies).length===0&&delete E.components.requestBodies,E.components.securitySchemes&&Object.keys(E.components.securitySchemes).length===0&&delete E.components.securitySchemes,E.components.headers&&Object.keys(E.components.headers).length===0&&delete E.components.headers,E.components.schemas&&Object.keys(E.components.schemas).length===0&&delete E.components.schemas,E.components&&Object.keys(E.components).length===0&&delete E.components,E}function ae(E){return!E||!E.url||typeof E.url!="string"||(E.url=E.url.split("{{").join("{"),E.url=E.url.split("}}").join("}"),E.url.replace(/\{(.+?)\}/g,function(R,W){E.variables||(E.variables={}),E.variables[W]={default:"unknown"}})),E}function K(E,R,W){if(typeof E.info>"u"||E.info===null)if(R.patch)R.patches++,E.info={version:"",title:""};else return W(new C("(Patchable) info object is mandatory"));if(typeof E.info!="object"||Array.isArray(E.info))return W(new C("info must be an object"));if(typeof E.info.title>"u"||E.info.title===null)if(R.patch)R.patches++,E.info.title="";else return W(new C("(Patchable) info.title cannot be null"));if(typeof E.info.version>"u"||E.info.version===null)if(R.patch)R.patches++,E.info.version="";else return W(new C("(Patchable) info.version cannot be null"));if(typeof E.info.version!="string")if(R.patch)R.patches++,E.info.version=E.info.version.toString();else return W(new C("(Patchable) info.version must be a string"));if(typeof E.info.logo<"u")if(R.patch)R.patches++,E.info["x-logo"]=E.info.logo,delete E.info.logo;else return W(new C("(Patchable) info should not have logo property"));if(typeof E.info.termsOfService<"u"){if(E.info.termsOfService===null)if(R.patch)R.patches++,E.info.termsOfService="";else return W(new C("(Patchable) info.termsOfService cannot be null"));try{new URL(E.info.termsOfService)}catch{if(R.patch)R.patches++,delete E.info.termsOfService;else return W(new C("(Patchable) info.termsOfService must be a URL"))}}}function V(E,R,W){if(typeof E.paths>"u")if(R.patch)R.patches++,E.paths={};else return W(new C("(Patchable) paths object is mandatory"))}function se(E,R){const W=new WeakSet;d(E,{identityDetection:!0},function(ge,xe,ce){typeof ge[xe]=="object"&&ge[xe]!==null&&(W.has(ge[xe])?R.anchors?ge[xe]=c(ge[xe]):A("YAML anchor or merge key at "+ce.path,R):W.add(ge[xe]))})}function Q(E,R,W){return r(W,new Promise(function(ge,xe){if(E||(E={}),R.original=E,R.text||(R.text=o.stringify(E)),R.externals=[],R.externalRefs={},R.rewriteRefs=!0,R.preserveMiro=!0,R.promise={},R.promise.resolve=ge,R.promise.reject=xe,R.patches=0,R.cache||(R.cache={}),R.source&&(R.cache[R.source]=R.original),se(E,R),E.openapi&&typeof E.openapi=="string"&&E.openapi.startsWith("3.")){R.openapi=u(E),K(R.openapi,R,xe),V(R.openapi,R,xe),f.optionalResolve(R).then(function(){return R.direct?ge(R.openapi):ge(R)}).catch(function(ue){console.warn(ue),xe(ue)});return}if(!E.swagger||E.swagger!="2.0")return xe(new C("Unsupported swagger/OpenAPI version: "+(E.openapi?E.openapi:E.swagger)));let ce=R.openapi={};if(ce.openapi=typeof R.targetVersion=="string"&&R.targetVersion.startsWith("3.")?R.targetVersion:S,R.origin){ce["x-origin"]||(ce["x-origin"]=[]);let ue={};ue.url=R.source||R.origin,ue.format="swagger",ue.version=E.swagger,ue.converter={},ue.converter.url="https://github.com/mermade/oas-kit",ue.converter.version=x,ce["x-origin"].push(ue)}if(ce=Object.assign(ce,u(E)),delete ce.swagger,d(ce,{},function(ue,Ne,he){ue[Ne]===null&&!Ne.startsWith("x-")&&Ne!=="default"&&he.path.indexOf("/example")<0&&delete ue[Ne]}),E.host)for(let ue of Array.isArray(E.schemes)?E.schemes:[""]){let Ne={},he=(E.basePath||"").replace(/\/$/,"");Ne.url=(ue?ue+":":"")+"//"+E.host+he,ae(Ne),ce.servers||(ce.servers=[]),ce.servers.push(Ne)}else if(E.basePath){let ue={};ue.url=E.basePath,ae(ue),ce.servers||(ce.servers=[]),ce.servers.push(ue)}if(delete ce.host,delete ce.basePath,ce["x-servers"]&&Array.isArray(ce["x-servers"])&&(ce.servers=ce["x-servers"],delete ce["x-servers"]),E["x-ms-parameterized-host"]){let ue=E["x-ms-parameterized-host"],Ne={};Ne.url=ue.hostTemplate+(E.basePath?E.basePath:""),Ne.variables={};const he=Ne.url.match(/\{\w+\}/g);for(let Ke in ue.parameters){let Je=ue.parameters[Ke];Je.$ref&&(Je=c(i(ce,Je.$ref))),Ke.startsWith("x-")||(delete Je.required,delete Je.type,delete Je.in,typeof Je.default>"u"&&(Je.enum?Je.default=Je.enum[0]:Je.default="none"),Je.name||(Je.name=he[Ke].replace("{","").replace("}","")),Ne.variables[Je.name]=Je,delete Je.name)}ce.servers||(ce.servers=[]),ue.useSchemePrefix===!1?ce.servers.push(Ne):E.schemes.forEach(Ke=>{ce.servers.push(Object.assign({},Ne,{url:Ke+"://"+Ne.url}))}),delete ce["x-ms-parameterized-host"]}K(ce,R,xe),V(ce,R,xe),typeof ce.consumes=="string"&&(ce.consumes=[ce.consumes]),typeof ce.produces=="string"&&(ce.produces=[ce.produces]),ce.components={},ce["x-callbacks"]&&(ce.components.callbacks=ce["x-callbacks"],delete ce["x-callbacks"]),ce.components.examples={},ce.components.headers={},ce["x-links"]&&(ce.components.links=ce["x-links"],delete ce["x-links"]),ce.components.parameters=ce.parameters||{},ce.components.responses=ce.responses||{},ce.components.requestBodies={},ce.components.securitySchemes=ce.securityDefinitions||{},ce.components.schemas=ce.definitions||{},delete ce.definitions,delete ce.responses,delete ce.parameters,delete ce.securityDefinitions,f.optionalResolve(R).then(function(){H(R.openapi,R),R.direct?ge(R.openapi):ge(R)}).catch(function(ue){console.warn(ue),xe(ue)})}))}function ne(E,R,W){return r(W,new Promise(function(ge,xe){let ce=null,ue=null;try{ce=JSON.parse(E),R.text=JSON.stringify(ce,null,2)}catch(Ne){ue=Ne;try{ce=o.parse(E,{schema:"core",prettyErrors:!0}),R.sourceYaml=!0,R.text=E}catch(he){ue=he}}ce?Q(ce,R).then(Ne=>ge(Ne)).catch(Ne=>xe(Ne)):xe(new C(ue?ue.message:"Could not parse string"))}))}function F(E,R,W){return r(W,new Promise(function(ge,xe){R.origin=!0,R.source||(R.source=E),R.verbose&&console.warn("GET "+E),R.fetch||(R.fetch=n);const ce=Object.assign({},R.fetchOptions,{agent:R.agent});R.fetch(E,ce).then(function(ue){if(ue.status!==200)throw new C(`Received status code ${ue.status}: ${E}`);return ue.text()}).then(function(ue){ne(ue,R).then(Ne=>ge(Ne)).catch(Ne=>xe(Ne))}).catch(function(ue){xe(ue)})}))}function be(E,R,W){return r(W,new Promise(function(ge,xe){e.readFile(E,R.encoding||"utf8",function(ce,ue){ce?xe(ce):(R.sourceFile=E,ne(ue,R).then(Ne=>ge(Ne)).catch(Ne=>xe(Ne)))})}))}function ke(E,R,W){return r(W,new Promise(function(ge,xe){let ce="";E.on("data",function(ue){ce+=ue}).on("end",function(){ne(ce,R).then(ue=>ge(ue)).catch(ue=>xe(ue))})}))}return jk={S2OError:C,targetVersion:S,convert:Q,convertObj:Q,convertUrl:F,convertStr:ne,convertFile:be,convertStream:ke},jk}var $Be=IBe();const MBe=jn($Be);function DBe(e){return e.paths||(e.paths={}),new Promise((t,r)=>MBe.convertObj(e,{patch:!0,warnOnly:!0,text:"{}",anchors:!0},(n,o)=>{if(n)return r(n);t(o?.openapi)}))}async function zBe(){try{return(await Qq())?.resolvedConfig.openapi||{}}catch{return{}}}async function BBe(e){const t=await Qq(),r={config:t,base:$a?window.location.origin:typeof globalThis.process<"u"?globalThis.process.cwd():""};$a&&(t.resolve.http.customFetch=globalThis.fetch),typeof e=="object"&&e!==null?r.doc=UBe(e):r.ref=e;const{bundle:{parsed:n}}=await VMe(r);return n.swagger!==void 0?DBe(n):n}function UBe(e){return{source:{absoluteRef:""},parsed:e}}async function FBe(e,t,r){let n;if(r?.skipBundle){if(!e)throw new Error('spec must be specified when using "skipBundleAndConvert"');n=e}else n=await BBe(e||t);try{M4e(n)}catch{}return n}const qBe=({options:e,definitionUrl:t,definition:r,activeSampleLanguage:n,children:o})=>{const[a,i]=M.useState(),[s,c]=M.useState(!0),[u,d]=M.useState(null),[f,g]=M.useState(e||{});M.useEffect(()=>{async function v(){c(!0);try{const x=await zBe();g({...e,...x}),d(await FBe(r,t,e))}catch(x){i(x.message)}}v()},[r,t,e]);const y=M.useMemo(()=>{if(u)return{definition:u,options:f,definitionUrl:t,activeSampleLanguage:n}},D4e([u,t,f]));return M.useEffect(()=>{y&&c(!1)},[y]),a||!y?null:s?Eo(e?.hideLoading,!1)?null:m.jsx(iOe,{color:"--loading-spinner-color"}):M.isValidElement(o)?M.cloneElement(o,{store:y}):null};function HBe({definition:e,definitionUrl:t,options:r={},activeItemId:n,activeSampleLanguage:o,activeDeepLink:a,router:i}){return m.jsx(qBe,{definition:e,definitionUrl:t,options:r,activeItemId:n,activeSampleLanguage:o,activeDeepLink:a,children:m.jsx(iF,{withCommonStyles:!0,router:i||"hash"})})}function VBe(e){const t={},r=e.attributes;for(let n=0;n<r.length;n++){const o=r[n];t[o.name]=o.value}return t}function WBe(e){const t=VBe(e),r={};for(const n in t){const o=n.replace(/-(.)/g,(a,i)=>i.toUpperCase());r[o]=t[n]}return r}function YBe(e,t=document.querySelector("redoc")){hv.hydrateRoot(t,m.jsx(iF,{store:e}),{onRecoverableError:(r,n)=>{r.message.includes("Minified React error #418")||console.error(r.message,n)}})}function cY(e,t={},r=fv("redoc")){if(r===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');const{router:n,...o}={...t,...WBe(r)};let a,i;typeof e=="string"?a=e:typeof e=="object"&&(i=e),hv.createRoot(r).render(M.createElement(HBe,{definition:i,definitionUrl:a,options:o,router:n??"hash"},["Loading..."]))}const GBe="3.24.0-next.10",JBe="06cf8d449d";function KBe(){const e=fv("redoc");if(!e)return;const t=e.getAttribute("spec-url");t&&cY(t,{},e)}KBe();export{nR as $,wJ as A,bt as B,gx as C,ql as D,Um as E,W2 as F,Lp as G,HP as H,lU as I,Fa as J,ro as K,np as L,Ss as M,qP as N,Fl as O,ip as P,PR as Q,Tt as R,Oi as S,Ls as T,Nn as U,qo as V,MA as W,Sg as X,LN as Y,Fx as Z,dR as _,ve as a,wq as a$,AR as a0,TR as a1,LR as a2,A2 as a3,Eh as a4,kd as a5,KS as a6,Ym as a7,ez as a8,WB as a9,UA as aA,BA as aB,Pn as aC,lb as aD,sb as aE,nq as aF,cb as aG,ib as aH,Fq as aI,pb as aJ,PMe as aK,MMe as aL,mn as aM,lq as aN,vq as aO,xq as aP,fMe as aQ,dMe as aR,cy as aS,hMe as aT,gMe as aU,Tq as aV,Aq as aW,KC as aX,Yo as aY,ur as aZ,on as a_,rU as aa,AB as ab,qS as ac,SS as ad,Sr as ae,Jl as af,Cm as ag,DB as ah,io as ai,hv as aj,nU as ak,IU as al,oU as am,aU as an,fU as ao,KP as ap,El as aq,Xv as ar,xx as as,GU as at,VB as au,HB as av,YU as aw,WU as ax,sA as ay,Ud as az,Ol as b,Sq as b0,mMe as b1,py as b2,ab as b3,bc as b4,Kq as b5,QC as b6,ic as b7,Mje as b8,jq as b9,Oq as bA,vMe as bB,yMe as bC,gc as bD,XC as bE,Hq as bF,ac as bG,Ms as bH,Cq as bI,qC as bJ,sF as bK,_q as bL,pf as bM,iq as bN,Bq as bO,i3 as bP,YBe as bQ,cY as bR,JBe as bS,Wve as bT,Vve as bU,qve as bV,GBe as bW,uMe as ba,Sa as bb,NMe as bc,ZC as bd,Yp as be,Xa as bf,zs as bg,Nq as bh,Za as bi,a3 as bj,FC as bk,Uq as bl,rb as bm,Dje as bn,Eq as bo,rq as bp,aq as bq,u$ as br,MB as bs,eb as bt,ot as bu,nt as bv,kq as bw,Vq as bx,Yq as by,lF as bz,jn as c,sg as d,mx as e,ye as f,mt as g,Hl as h,X0e as i,m as j,dr as k,op as l,ks as m,yh as n,_l as o,br as p,zP as q,M as r,kz as s,vn as t,pr as u,Ed as v,Zq as w,Dt as x,ig as y,Cte as z};
12112
+ `}}_n(bu,"defaults",oW);function iBe(e,t=!0,r){r===void 0&&typeof t=="string"&&(r=t,t=!0);const n=Object.assign({},bu.defaults[ry.version],ry);return new yc(n).createNode(e,t,r)}class ay extends bu{constructor(t){super(Object.assign({},ry,t))}}function sBe(e,t){const r=[];let n;for(const o of Q3(e)){const a=new ay(t);a.parse(o,n),r.push(a),n=a}return r}function iW(e,t){const r=Q3(e),n=new ay(t).parse(r[0]);if(r.length>1){const o="Source contains multiple documents; please use YAML.parseAllDocuments()";n.errors.unshift(new St(r[1],o))}return n}function lBe(e,t){const r=iW(e,t);if(r.warnings.forEach(n=>HV(n)),r.errors.length>0)throw r.errors[0];return r.toJSON()}function cBe(e,t){const r=new ay(t);return r.contents=e,String(r)}const pBe={createNode:iBe,defaultOptions:ry,Document:ay,parse:lBe,parseAllDocuments:sBe,parseCST:Q3,parseDocument:iW,scalarOptions:Zze,stringify:cBe},uBe=Object.freeze(Object.defineProperty({__proto__:null,YAML:pBe},Symbol.toStringTag,{value:"Module"})),dBe=ia(uBe);var sW,lW;function hBe(){return lW||(lW=1,sW=dBe.YAML),sW}var ik,cW;function fBe(){if(cW)return ik;cW=1;const e=Y3().recurse,t=Hb().shallowClone,r=qb().jptr,n=H3().isRef;var o=function(i){return i&&i.verbose?{warn:function(){var s=Array.prototype.slice.call(arguments);console.warn.apply(console,s)}}:{warn:function(){}}};function a(i,s,c){c||(c={}),c.cache||(c.cache={}),c.state||(c.state={}),c.state.identityDetection=!0,c.depth=c.depth?c.depth+1:1;let u=c.depth>1?i:t(i),d={data:u},f=c.depth>1?s:t(s);c.master||(c.master=u);let g=o(c),y=1;for(;y>0;)y=0,e(d,c.state,function(v,x,S){if(n(v,x)){let w=v[x];if(y++,c.cache[w]){let C=c.cache[w];if(C.resolved)g.warn("Patching %s for %s",w,C.path),S.parent[S.pkey]=C.data,c.$ref&&typeof S.parent[S.pkey]=="object"&&S.parent[S.pkey]!==null&&(S.parent[S.pkey][c.$ref]=w);else{if(w===C.path)throw new Error(`Tight circle at ${C.path}`);g.warn("Unresolved ref"),S.parent[S.pkey]=r(C.source,C.path),S.parent[S.pkey]===!1&&(S.parent[S.pkey]=r(C.source,C.key)),c.$ref&&typeof S.parent[S.pkey]=="object"&&S.parent[S.pkey]!==null&&(S.parent[c.$ref]=w)}}else{let C={};C.path=S.path.split("/$ref")[0],C.key=w,g.warn("Dereffing %s at %s",w,C.path),C.source=f,C.data=r(C.source,C.key),C.data===!1&&(C.data=r(c.master,C.key),C.source=c.master),C.data===!1&&g.warn("Missing $ref target",C.key),c.cache[w]=C,C.data=S.parent[S.pkey]=a(r(C.source,C.key),C.source,c),c.$ref&&typeof S.parent[S.pkey]=="object"&&S.parent[S.pkey]!==null&&(S.parent[S.pkey][c.$ref]=w),C.resolved=!0}}});return d.data}return ik={dereference:a},ik}var sk,pW;function mBe(){if(pW)return sk;pW=1,sk=a,a.default=a,a.stable=u,a.stableStringify=u;var e="[...]",t="[Circular]",r=[],n=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(g,y,v,x){typeof x>"u"&&(x=o()),s(g,"",0,[],void 0,0,x);var S;try{n.length===0?S=JSON.stringify(g,y,v):S=JSON.stringify(g,f(y),v)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var w=r.pop();w.length===4?Object.defineProperty(w[0],w[1],w[3]):w[0][w[1]]=w[2]}}return S}function i(g,y,v,x){var S=Object.getOwnPropertyDescriptor(x,v);S.get!==void 0?S.configurable?(Object.defineProperty(x,v,{value:g}),r.push([x,v,y,S])):n.push([y,v,g]):(x[v]=g,r.push([x,v,y]))}function s(g,y,v,x,S,w,C){w+=1;var A;if(typeof g=="object"&&g!==null){for(A=0;A<x.length;A++)if(x[A]===g){i(t,g,y,S);return}if(typeof C.depthLimit<"u"&&w>C.depthLimit){i(e,g,y,S);return}if(typeof C.edgesLimit<"u"&&v+1>C.edgesLimit){i(e,g,y,S);return}if(x.push(g),Array.isArray(g))for(A=0;A<g.length;A++)s(g[A],A,A,x,g,w,C);else{var T=Object.keys(g);for(A=0;A<T.length;A++){var L=T[A];s(g[L],L,A,x,g,w,C)}}x.pop()}}function c(g,y){return g<y?-1:g>y?1:0}function u(g,y,v,x){typeof x>"u"&&(x=o());var S=d(g,"",0,[],void 0,0,x)||g,w;try{n.length===0?w=JSON.stringify(S,y,v):w=JSON.stringify(S,f(y),v)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;r.length!==0;){var C=r.pop();C.length===4?Object.defineProperty(C[0],C[1],C[3]):C[0][C[1]]=C[2]}}return w}function d(g,y,v,x,S,w,C){w+=1;var A;if(typeof g=="object"&&g!==null){for(A=0;A<x.length;A++)if(x[A]===g){i(t,g,y,S);return}try{if(typeof g.toJSON=="function")return}catch{return}if(typeof C.depthLimit<"u"&&w>C.depthLimit){i(e,g,y,S);return}if(typeof C.edgesLimit<"u"&&v+1>C.edgesLimit){i(e,g,y,S);return}if(x.push(g),Array.isArray(g))for(A=0;A<g.length;A++)d(g[A],A,A,x,g,w,C);else{var T={},L=Object.keys(g).sort(c);for(A=0;A<L.length;A++){var j=L[A];d(g[j],j,A,x,g,w,C),T[j]=g[j]}if(typeof S<"u")r.push([S,y,g]),S[y]=T;else return T}x.pop()}}function f(g){return g=typeof g<"u"?g:function(y,v){return v},function(y,v){if(n.length>0)for(var x=0;x<n.length;x++){var S=n[x];if(S[1]===y&&S[0]===v){v=S[2],n.splice(x,1);break}}return g.call(this,y,v)}}return sk}var lk,uW;function dW(){if(uW)return lk;uW=1;var e={};const t=mBe(),r=e.NODE_DISABLE_COLORS?{red:"",yellow:"",green:"",normal:""}:{red:"\x1B[31m",yellow:"\x1B[33;1m",green:"\x1B[32m",normal:"\x1B[0m"};function n(S,w,C){return C.indexOf(S)===w}function o(S){return new Set(S).size!==S.length}function a(S){return new Set(S).size<=1}function i(S,w){function C(A,T){return t.stringify(A)===t.stringify(Object.assign({},A,T))}return C(S,w)&&C(w,S)}function s(S){let w=[];for(let C of S)w.find(function(A,T,L){return i(A,C)})||w.push(C);return w}function c(S){return S.length===s(S).length}function u(S){return S.find(function(w,C,A){return S.indexOf(w)<C})}function d(S){let w=0,C;if(S.length===0)return w;for(let A=0;A<S.length;A++)C=S.charCodeAt(A),w=(w<<5)-w+C,w|=0;return w}String.prototype.toCamelCase=function(){return this.toLowerCase().replace(/[-_ \/\.](.)/g,function(S,w){return w.toUpperCase()})};const f=["format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","minLength","maxLength","multipleOf","minItems","maxItems","uniqueItems","minProperties","maxProperties","additionalProperties","pattern","enum","default"],g=["items","minItems","maxItems","uniqueItems"],y=["get","post","put","delete","patch","head","options","trace"];function v(S){S=S.replace("[]","Array");let w=S.split("/");return w[0]=w[0].replace(/[^A-Za-z0-9_\-\.]+|\s+/gm,"_"),w.join("/")}function x(S){return v(S.split("/").join("_"))}return lk={colour:r,uniqueOnly:n,hasDuplicates:o,allSame:a,distinctArray:c,firstDupe:u,hash:d,parameterTypeProperties:f,arrayProperties:g,httpMethods:y,sanitise:v,sanitiseAll:x},lk}var ck,hW;function gBe(){if(hW)return ck;hW=1;const e=ub,t=JP(),r=c3(),n=ub,o=hBe(),a=qb().jptr,i=Y3().recurse,s=Hb().clone,c=fBe().dereference,u=H3().isRef,d=dW();function f(_){return[...new Set(_)]}function g(_,I,z,q,B){return new Promise(function(G,te){e.readFile(_,I,function(le,Y){le?z.ignoreIOErrors&&B?(z.verbose&&console.warn("FAILED",q),z.externalRefs[q].failed=!0,G(B)):te(le):G(Y)})})}function y(_,I,z,q,B,G){let te=G.externalRefs[z+q].paths[0],le=r.parse(B),Y={},ie=1;for(;ie;)ie=0,i(_,{identityDetection:!0},function(re,de,X){if(u(re,de)){if(re[de].startsWith("#")){if(!Y[re[de]]&&!re.$fixed){let H=s(a(I,re[de]));if(G.verbose>1&&console.warn((H===!1?d.colour.red:d.colour.green)+"Fragment resolution",re[de],d.colour.normal),H===!1){if(X.parent[X.pkey]={},G.fatal){let ae=new Error("Fragment $ref resolution failed "+re[de]);if(G.promise)G.promise.reject(ae);else throw ae}}else ie++,X.parent[X.pkey]=H,Y[re[de]]=X.path.replace("/%24ref","")}else if(!re.$fixed){let H=(te+"/"+Y[re[de]]).split("/#/").join("/");X.parent[X.pkey]={$ref:H,"x-miro":re[de],$fixed:!0},G.verbose>1&&console.warn("Replacing with",H),ie++}}else if(le.protocol){let H=r.resolve(B,re[de]).toString();G.verbose>1&&console.warn(d.colour.yellow+"Rewriting external url ref",re[de],"as",H,d.colour.normal),re["x-miro"]=re[de],G.externalRefs[re[de]]&&(G.externalRefs[H]||(G.externalRefs[H]=G.externalRefs[re[de]]),G.externalRefs[H].failed=G.externalRefs[re[de]].failed),re[de]=H}else if(!re["x-miro"]){let H=r.resolve(B,re[de]).toString(),ae=!1;G.externalRefs[re[de]]&&(ae=G.externalRefs[re[de]].failed),ae||(G.verbose>1&&console.warn(d.colour.yellow+"Rewriting external ref",re[de],"as",H,d.colour.normal),re["x-miro"]=re[de],re[de]=H)}}});return i(_,{},function(re,de,X){u(re,de)&&typeof re.$fixed<"u"&&delete re.$fixed}),G.verbose>1&&console.warn("Finished fragment resolution"),_}function v(_,I){if(!I.filters||!I.filters.length)return _;for(let z of I.filters)_=z(_,I);return _}function x(_,I){return _&&_.length>2?_:I&&I.length>2?I:"file:"}function S(_,I,z,q){var B=r.parse(z.source),G=z.source.split("\\").join("/").split("/");G.pop()||G.pop();let te="",le=I.split("#");le.length>1&&(te="#"+le[1],I=le[0]),G=G.join("/");let Y=r.parse(I),ie=x(Y.protocol,B.protocol),re;if(ie==="file:"?re=t.resolve(G?G+"/":"",I):re=r.resolve(G?G+"/":"",I),z.cache[re]){z.verbose&&console.warn("CACHED",re,te);let de=s(z.cache[re]),X=z.externalRef=de;if(te&&(X=a(X,te),X===!1&&(X={},z.fatal))){let H=new Error("Cached $ref resolution failed "+re+te);if(z.promise)z.promise.reject(H);else throw H}return X=y(X,de,I,te,re,z),X=v(X,z),q(s(X),re,z),Promise.resolve(X)}if(z.verbose&&console.warn("GET",re,te),z.handlers&&z.handlers[ie])return z.handlers[ie](G,I,te,z).then(function(de){return z.externalRef=de,de=v(de,z),z.cache[re]=de,q(de,re,z),de}).catch(function(de){throw z.verbose&&console.warn(de),de});if(ie&&ie.startsWith("http")){const de=Object.assign({},z.fetchOptions,{agent:z.agent});return z.fetch(re,de).then(function(X){if(X.status!==200){if(z.ignoreIOErrors)return z.verbose&&console.warn("FAILED",I),z.externalRefs[I].failed=!0,'{"$ref":"'+I+'"}';throw new Error(`Received status code ${X.status}: ${re}`)}return X.text()}).then(function(X){try{let H=o.parse(X,{schema:"core",prettyErrors:!0});if(X=z.externalRef=H,z.cache[re]=s(X),te&&(X=a(X,te),X===!1&&(X={},z.fatal))){let ae=new Error("Remote $ref resolution failed "+re+te);if(z.promise)z.promise.reject(ae);else throw ae}X=y(X,H,I,te,re,z),X=v(X,z)}catch(H){if(z.verbose&&console.warn(H),z.promise&&z.fatal)z.promise.reject(H);else throw H}return q(X,re,z),X}).catch(function(X){if(z.verbose&&console.warn(X),z.cache[re]={},z.promise&&z.fatal)z.promise.reject(X);else throw X})}else{const de='{"$ref":"'+I+'"}';return g(re,z.encoding||"utf8",z,I,de).then(function(X){try{let H=o.parse(X,{schema:"core",prettyErrors:!0});if(X=z.externalRef=H,z.cache[re]=s(X),te&&(X=a(X,te),X===!1&&(X={},z.fatal))){let ae=new Error("File $ref resolution failed "+re+te);if(z.promise)z.promise.reject(ae);else throw ae}X=y(X,H,I,te,re,z),X=v(X,z)}catch(H){if(z.verbose&&console.warn(H),z.promise&&z.fatal)z.promise.reject(H);else throw H}return q(X,re,z),X}).catch(function(X){if(z.verbose&&console.warn(X),z.promise&&z.fatal)z.promise.reject(X);else throw X})}}function w(_){return new Promise(function(I,z){function q(G,te,le){if(G[te]&&u(G[te],"$ref")){let Y=G[te].$ref;if(!Y.startsWith("#")){let ie="";if(!B[Y]){let re=Object.keys(B).find(function(de,X,H){return Y.startsWith(de+"/")});re&&(_.verbose&&console.warn("Found potential subschema at",re),ie="/"+(Y.split("#")[1]||"").replace(re.split("#")[1]||""),ie=ie.split("/undefined").join(""),Y=re)}if(B[Y]||(B[Y]={resolved:!1,paths:[],extras:{},description:G[te].description}),B[Y].resolved){if(!B[Y].failed)if(_.rewriteRefs){let re=B[Y].resolvedAt;_.verbose>1&&console.warn("Rewriting ref",Y,re),G[te]["x-miro"]=Y,G[te].$ref=re+ie}else G[te]=s(B[Y].data)}else B[Y].paths.push(le.path),B[Y].extras[le.path]=ie}}}let B=_.externalRefs;if(_.resolver.depth>0&&_.source===_.resolver.base)return I(B);i(_.openapi.definitions,{identityDetection:!0,path:"#/definitions"},q),i(_.openapi.components,{identityDetection:!0,path:"#/components"},q),i(_.openapi,{identityDetection:!0},q),I(B)})}function C(_){return new Promise(function(I,z){w(_).then(function(B){for(let G in B)if(!B[G].resolved){let te=_.resolver.depth;te>0&&te++,_.resolver.actions[te].push(function(){return S(_.openapi,G,_,function(le,Y,ie){if(!B[G].resolved){let X={};X.context=B[G],X.$ref=G,X.original=s(le),X.updated=le,X.source=Y,ie.externals.push(X),B[G].resolved=!0}let re=Object.assign({},ie,{source:"",resolver:{actions:ie.resolver.actions,depth:ie.resolver.actions.length-1,base:ie.resolver.base}});ie.patch&&B[G].description&&!le.description&&typeof le=="object"&&(le.description=B[G].description),B[G].data=le;let de=f(B[G].paths);de=de.sort(function(X,H){const ae=X.startsWith("#/components/")||X.startsWith("#/definitions/"),K=H.startsWith("#/components/")||H.startsWith("#/definitions/");return ae&&!K?-1:K&&!ae?1:0});for(let X of de)if(B[G].resolvedAt&&X!==B[G].resolvedAt&&X.indexOf("x-ms-examples/")<0)ie.verbose>1&&console.warn("Creating pointer to data at",X),a(ie.openapi,X,{$ref:B[G].resolvedAt+B[G].extras[X],"x-miro":G+B[G].extras[X]});else{B[G].resolvedAt?ie.verbose>1&&console.warn("Avoiding circular reference"):(B[G].resolvedAt=X,ie.verbose>1&&console.warn("Creating initial clone of data at",X));let H=s(le);a(ie.openapi,X,H)}ie.resolver.actions[re.resolver.depth].length===0&&ie.resolver.actions[re.resolver.depth].push(function(){return C(re)})})})}}).catch(function(B){_.verbose&&console.warn(B),z(B)});let q={options:_};q.actions=_.resolver.actions[_.resolver.depth],I(q)})}const A=_=>_.reduce((I,z)=>I.then(q=>z().then(Array.prototype.concat.bind(q))),Promise.resolve([]));function T(_,I,z){_.resolver.actions.push([]),C(_).then(function(q){A(q.actions).then(function(){if(_.resolver.depth>=_.resolver.actions.length)return console.warn("Ran off the end of resolver actions"),I(!0);_.resolver.depth++,_.resolver.actions[_.resolver.depth].length?setTimeout(function(){T(q.options,I,z)},0):(_.verbose>1&&console.warn(d.colour.yellow+"Finished external resolution!",d.colour.normal),_.resolveInternal&&(_.verbose>1&&console.warn(d.colour.yellow+"Starting internal resolution!",d.colour.normal),_.openapi=c(_.openapi,_.original,{verbose:_.verbose-1}),_.verbose>1&&console.warn(d.colour.yellow+"Finished internal resolution!",d.colour.normal)),i(_.openapi,{},function(B,G,te){u(B,G)&&(_.preserveMiro||delete B["x-miro"])}),I(_))}).catch(function(B){_.verbose&&console.warn(B),z(B)})}).catch(function(q){_.verbose&&console.warn(q),z(q)})}function L(_){if(_.cache||(_.cache={}),_.fetch||(_.fetch=n),_.source){let I=r.parse(_.source);(!I.protocol||I.protocol.length<=2)&&(_.source=t.resolve(_.source))}_.externals=[],_.externalRefs={},_.rewriteRefs=!0,_.resolver={},_.resolver.depth=0,_.resolver.base=_.source,_.resolver.actions=[[]]}function j(_){return L(_),new Promise(function(I,z){_.resolve?T(_,I,z):I(_)})}function P(_,I,z){return z||(z={}),z.openapi=_,z.source=I,z.resolve=!0,L(z),new Promise(function(q,B){T(z,q,B)})}return ck={optionalResolve:j,resolve:P},ck}var pk,fW;function bBe(){if(fW)return pk;fW=1;function e(){return{depth:0,seen:new WeakMap,top:!0,combine:!1,allowRefSiblings:!1}}function t(r,n,o,a){if(typeof o.depth>"u"&&(o=e()),r===null||typeof r>"u")return r;if(typeof r.$ref<"u"){let i={$ref:r.$ref};return o.allowRefSiblings&&r.description&&(i.description=r.description),a(i,n,o),i}if(o.combine&&(r.allOf&&Array.isArray(r.allOf)&&r.allOf.length===1&&(r=Object.assign({},r.allOf[0],r),delete r.allOf),r.anyOf&&Array.isArray(r.anyOf)&&r.anyOf.length===1&&(r=Object.assign({},r.anyOf[0],r),delete r.anyOf),r.oneOf&&Array.isArray(r.oneOf)&&r.oneOf.length===1&&(r=Object.assign({},r.oneOf[0],r),delete r.oneOf)),a(r,n,o),o.seen.has(r))return r;if(typeof r=="object"&&r!==null&&o.seen.set(r,!0),o.top=!1,o.depth++,typeof r.items<"u"&&(o.property="items",t(r.items,r,o,a)),r.additionalItems&&typeof r.additionalItems=="object"&&(o.property="additionalItems",t(r.additionalItems,r,o,a)),r.additionalProperties&&typeof r.additionalProperties=="object"&&(o.property="additionalProperties",t(r.additionalProperties,r,o,a)),r.properties)for(let i in r.properties){let s=r.properties[i];o.property="properties/"+i,t(s,r,o,a)}if(r.patternProperties)for(let i in r.patternProperties){let s=r.patternProperties[i];o.property="patternProperties/"+i,t(s,r,o,a)}if(r.allOf)for(let i in r.allOf){let s=r.allOf[i];o.property="allOf/"+i,t(s,r,o,a)}if(r.anyOf)for(let i in r.anyOf){let s=r.anyOf[i];o.property="anyOf/"+i,t(s,r,o,a)}if(r.oneOf)for(let i in r.oneOf){let s=r.oneOf[i];o.property="oneOf/"+i,t(s,r,o,a)}return r.not&&(o.property="not",t(r.not,r,o,a)),o.depth--,r}return pk={getDefaultState:e,walkSchema:t},pk}var mW={},uk={exports:{}},gW={},bW;function yW(){return bW||(bW=1,(function(e){e.fetch=o(globalThis.fetch)&&o(globalThis.ReadableStream),e.writableStream=o(globalThis.WritableStream),e.abortController=o(globalThis.AbortController);var t;function r(){if(t!==void 0)return t;if(globalThis.XMLHttpRequest){t=new globalThis.XMLHttpRequest;try{t.open("GET",globalThis.XDomainRequest?"/":"https://example.com")}catch{t=null}}else t=null;return t}function n(a){var i=r();if(!i)return!1;try{return i.responseType=a,i.responseType===a}catch{}return!1}e.arraybuffer=e.fetch||n("arraybuffer"),e.msstream=!e.fetch&&n("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&n("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||(r()?o(r().overrideMimeType):!1);function o(a){return typeof a=="function"}t=null})(gW)),gW}var iy={},dk={exports:{}},sy={exports:{}},vW;function yBe(){if(vW)return sy.exports;vW=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(T,L,j){return Function.prototype.apply.call(T,L,j)},r;e&&typeof e.ownKeys=="function"?r=e.ownKeys:Object.getOwnPropertySymbols?r=function(T){return Object.getOwnPropertyNames(T).concat(Object.getOwnPropertySymbols(T))}:r=function(T){return Object.getOwnPropertyNames(T)};function n(T){console&&console.warn&&console.warn(T)}var o=Number.isNaN||function(T){return T!==T};function a(){a.init.call(this)}sy.exports=a,sy.exports.once=w,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var i=10;function s(T){if(typeof T!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof T)}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return i},set:function(T){if(typeof T!="number"||T<0||o(T))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+T+".");i=T}}),a.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(T){if(typeof T!="number"||T<0||o(T))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+T+".");return this._maxListeners=T,this};function c(T){return T._maxListeners===void 0?a.defaultMaxListeners:T._maxListeners}a.prototype.getMaxListeners=function(){return c(this)},a.prototype.emit=function(T){for(var L=[],j=1;j<arguments.length;j++)L.push(arguments[j]);var P=T==="error",_=this._events;if(_!==void 0)P=P&&_.error===void 0;else if(!P)return!1;if(P){var I;if(L.length>0&&(I=L[0]),I instanceof Error)throw I;var z=new Error("Unhandled error."+(I?" ("+I.message+")":""));throw z.context=I,z}var q=_[T];if(q===void 0)return!1;if(typeof q=="function")t(q,this,L);else for(var B=q.length,G=v(q,B),j=0;j<B;++j)t(G[j],this,L);return!0};function u(T,L,j,P){var _,I,z;if(s(j),I=T._events,I===void 0?(I=T._events=Object.create(null),T._eventsCount=0):(I.newListener!==void 0&&(T.emit("newListener",L,j.listener?j.listener:j),I=T._events),z=I[L]),z===void 0)z=I[L]=j,++T._eventsCount;else if(typeof z=="function"?z=I[L]=P?[j,z]:[z,j]:P?z.unshift(j):z.push(j),_=c(T),_>0&&z.length>_&&!z.warned){z.warned=!0;var q=new Error("Possible EventEmitter memory leak detected. "+z.length+" "+String(L)+" listeners added. Use emitter.setMaxListeners() to increase limit");q.name="MaxListenersExceededWarning",q.emitter=T,q.type=L,q.count=z.length,n(q)}return T}a.prototype.addListener=function(T,L){return u(this,T,L,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(T,L){return u(this,T,L,!0)};function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(T,L,j){var P={fired:!1,wrapFn:void 0,target:T,type:L,listener:j},_=d.bind(P);return _.listener=j,P.wrapFn=_,_}a.prototype.once=function(T,L){return s(L),this.on(T,f(this,T,L)),this},a.prototype.prependOnceListener=function(T,L){return s(L),this.prependListener(T,f(this,T,L)),this},a.prototype.removeListener=function(T,L){var j,P,_,I,z;if(s(L),P=this._events,P===void 0)return this;if(j=P[T],j===void 0)return this;if(j===L||j.listener===L)--this._eventsCount===0?this._events=Object.create(null):(delete P[T],P.removeListener&&this.emit("removeListener",T,j.listener||L));else if(typeof j!="function"){for(_=-1,I=j.length-1;I>=0;I--)if(j[I]===L||j[I].listener===L){z=j[I].listener,_=I;break}if(_<0)return this;_===0?j.shift():x(j,_),j.length===1&&(P[T]=j[0]),P.removeListener!==void 0&&this.emit("removeListener",T,z||L)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(T){var L,j,P;if(j=this._events,j===void 0)return this;if(j.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):j[T]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete j[T]),this;if(arguments.length===0){var _=Object.keys(j),I;for(P=0;P<_.length;++P)I=_[P],I!=="removeListener"&&this.removeAllListeners(I);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(L=j[T],typeof L=="function")this.removeListener(T,L);else if(L!==void 0)for(P=L.length-1;P>=0;P--)this.removeListener(T,L[P]);return this};function g(T,L,j){var P=T._events;if(P===void 0)return[];var _=P[L];return _===void 0?[]:typeof _=="function"?j?[_.listener||_]:[_]:j?S(_):v(_,_.length)}a.prototype.listeners=function(T){return g(this,T,!0)},a.prototype.rawListeners=function(T){return g(this,T,!1)},a.listenerCount=function(T,L){return typeof T.listenerCount=="function"?T.listenerCount(L):y.call(T,L)},a.prototype.listenerCount=y;function y(T){var L=this._events;if(L!==void 0){var j=L[T];if(typeof j=="function")return 1;if(j!==void 0)return j.length}return 0}a.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]};function v(T,L){for(var j=new Array(L),P=0;P<L;++P)j[P]=T[P];return j}function x(T,L){for(;L+1<T.length;L++)T[L]=T[L+1];T.pop()}function S(T){for(var L=new Array(T.length),j=0;j<L.length;++j)L[j]=T[j].listener||T[j];return L}function w(T,L){return new Promise(function(j,P){function _(z){T.removeListener(L,I),P(z)}function I(){typeof T.removeListener=="function"&&T.removeListener("error",_),j([].slice.call(arguments))}A(T,L,I,{once:!0}),L!=="error"&&C(T,_,{once:!0})})}function C(T,L,j){typeof T.on=="function"&&A(T,"error",L,j)}function A(T,L,j,P){if(typeof T.on=="function")P.once?T.once(L,j):T.on(L,j);else if(typeof T.addEventListener=="function")T.addEventListener(L,function _(I){P.once&&T.removeEventListener(L,_),j(I)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof T)}return sy.exports}var xW,wW;function SW(){return wW||(wW=1,xW=yBe().EventEmitter),xW}var CW={},cf={},kW;function vBe(){if(kW)return cf;kW=1,cf.byteLength=s,cf.toByteArray=u,cf.fromByteArray=g;for(var e=[],t=[],r=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=n.length;o<a;++o)e[o]=n[o],t[n.charCodeAt(o)]=o;t[45]=62,t[95]=63;function i(y){var v=y.length;if(v%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var x=y.indexOf("=");x===-1&&(x=v);var S=x===v?0:4-x%4;return[x,S]}function s(y){var v=i(y),x=v[0],S=v[1];return(x+S)*3/4-S}function c(y,v,x){return(v+x)*3/4-x}function u(y){var v,x=i(y),S=x[0],w=x[1],C=new r(c(y,S,w)),A=0,T=w>0?S-4:S,L;for(L=0;L<T;L+=4)v=t[y.charCodeAt(L)]<<18|t[y.charCodeAt(L+1)]<<12|t[y.charCodeAt(L+2)]<<6|t[y.charCodeAt(L+3)],C[A++]=v>>16&255,C[A++]=v>>8&255,C[A++]=v&255;return w===2&&(v=t[y.charCodeAt(L)]<<2|t[y.charCodeAt(L+1)]>>4,C[A++]=v&255),w===1&&(v=t[y.charCodeAt(L)]<<10|t[y.charCodeAt(L+1)]<<4|t[y.charCodeAt(L+2)]>>2,C[A++]=v>>8&255,C[A++]=v&255),C}function d(y){return e[y>>18&63]+e[y>>12&63]+e[y>>6&63]+e[y&63]}function f(y,v,x){for(var S,w=[],C=v;C<x;C+=3)S=(y[C]<<16&16711680)+(y[C+1]<<8&65280)+(y[C+2]&255),w.push(d(S));return w.join("")}function g(y){for(var v,x=y.length,S=x%3,w=[],C=16383,A=0,T=x-S;A<T;A+=C)w.push(f(y,A,A+C>T?T:A+C));return S===1?(v=y[x-1],w.push(e[v>>2]+e[v<<4&63]+"==")):S===2&&(v=(y[x-2]<<8)+y[x-1],w.push(e[v>>10]+e[v>>4&63]+e[v<<2&63]+"=")),w.join("")}return cf}var hk={},EW;function xBe(){return EW||(EW=1,hk.read=function(e,t,r,n,o){var a,i,s=o*8-n-1,c=(1<<s)-1,u=c>>1,d=-7,f=r?o-1:0,g=r?-1:1,y=e[t+f];for(f+=g,a=y&(1<<-d)-1,y>>=-d,d+=s;d>0;a=a*256+e[t+f],f+=g,d-=8);for(i=a&(1<<-d)-1,a>>=-d,d+=n;d>0;i=i*256+e[t+f],f+=g,d-=8);if(a===0)a=1-u;else{if(a===c)return i?NaN:(y?-1:1)*(1/0);i=i+Math.pow(2,n),a=a-u}return(y?-1:1)*i*Math.pow(2,a-n)},hk.write=function(e,t,r,n,o,a){var i,s,c,u=a*8-o-1,d=(1<<u)-1,f=d>>1,g=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=n?0:a-1,v=n?1:-1,x=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,i=d):(i=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-i))<1&&(i--,c*=2),i+f>=1?t+=g/c:t+=g*Math.pow(2,1-f),t*c>=2&&(i++,c/=2),i+f>=d?(s=0,i=d):i+f>=1?(s=(t*c-1)*Math.pow(2,o),i=i+f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),i=0));o>=8;e[r+y]=s&255,y+=v,s/=256,o-=8);for(i=i<<o|s,u+=o;u>0;e[r+y]=i&255,y+=v,i/=256,u-=8);e[r+y-v]|=x*128}),hk}var AW;function pf(){return AW||(AW=1,(function(e){const t=vBe(),r=xBe(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=C,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o,s.TYPED_ARRAY_SUPPORT=a(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{const N=new Uint8Array(1),$={foo:function(){return 42}};return Object.setPrototypeOf($,Uint8Array.prototype),Object.setPrototypeOf(N,$),N.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function i(N){if(N>o)throw new RangeError('The value "'+N+'" is invalid for option "size"');const $=new Uint8Array(N);return Object.setPrototypeOf($,s.prototype),$}function s(N,$,U){if(typeof N=="number"){if(typeof $=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return f(N)}return c(N,$,U)}s.poolSize=8192;function c(N,$,U){if(typeof N=="string")return g(N,$);if(ArrayBuffer.isView(N))return v(N);if(N==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof N);if(Ve(N,ArrayBuffer)||N&&Ve(N.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ve(N,SharedArrayBuffer)||N&&Ve(N.buffer,SharedArrayBuffer)))return x(N,$,U);if(typeof N=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const pe=N.valueOf&&N.valueOf();if(pe!=null&&pe!==N)return s.from(pe,$,U);const Ee=S(N);if(Ee)return Ee;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof N[Symbol.toPrimitive]=="function")return s.from(N[Symbol.toPrimitive]("string"),$,U);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof N)}s.from=function(N,$,U){return c(N,$,U)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function u(N){if(typeof N!="number")throw new TypeError('"size" argument must be of type number');if(N<0)throw new RangeError('The value "'+N+'" is invalid for option "size"')}function d(N,$,U){return u(N),N<=0?i(N):$!==void 0?typeof U=="string"?i(N).fill($,U):i(N).fill($):i(N)}s.alloc=function(N,$,U){return d(N,$,U)};function f(N){return u(N),i(N<0?0:w(N)|0)}s.allocUnsafe=function(N){return f(N)},s.allocUnsafeSlow=function(N){return f(N)};function g(N,$){if((typeof $!="string"||$==="")&&($="utf8"),!s.isEncoding($))throw new TypeError("Unknown encoding: "+$);const U=A(N,$)|0;let pe=i(U);const Ee=pe.write(N,$);return Ee!==U&&(pe=pe.slice(0,Ee)),pe}function y(N){const $=N.length<0?0:w(N.length)|0,U=i($);for(let pe=0;pe<$;pe+=1)U[pe]=N[pe]&255;return U}function v(N){if(Ve(N,Uint8Array)){const $=new Uint8Array(N);return x($.buffer,$.byteOffset,$.byteLength)}return y(N)}function x(N,$,U){if($<0||N.byteLength<$)throw new RangeError('"offset" is outside of buffer bounds');if(N.byteLength<$+(U||0))throw new RangeError('"length" is outside of buffer bounds');let pe;return $===void 0&&U===void 0?pe=new Uint8Array(N):U===void 0?pe=new Uint8Array(N,$):pe=new Uint8Array(N,$,U),Object.setPrototypeOf(pe,s.prototype),pe}function S(N){if(s.isBuffer(N)){const $=w(N.length)|0,U=i($);return U.length===0||N.copy(U,0,0,$),U}if(N.length!==void 0)return typeof N.length!="number"||He(N.length)?i(0):y(N);if(N.type==="Buffer"&&Array.isArray(N.data))return y(N.data)}function w(N){if(N>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return N|0}function C(N){return+N!=N&&(N=0),s.alloc(+N)}s.isBuffer=function(N){return N!=null&&N._isBuffer===!0&&N!==s.prototype},s.compare=function(N,$){if(Ve(N,Uint8Array)&&(N=s.from(N,N.offset,N.byteLength)),Ve($,Uint8Array)&&($=s.from($,$.offset,$.byteLength)),!s.isBuffer(N)||!s.isBuffer($))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(N===$)return 0;let U=N.length,pe=$.length;for(let Ee=0,Le=Math.min(U,pe);Ee<Le;++Ee)if(N[Ee]!==$[Ee]){U=N[Ee],pe=$[Ee];break}return U<pe?-1:pe<U?1:0},s.isEncoding=function(N){switch(String(N).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(N,$){if(!Array.isArray(N))throw new TypeError('"list" argument must be an Array of Buffers');if(N.length===0)return s.alloc(0);let U;if($===void 0)for($=0,U=0;U<N.length;++U)$+=N[U].length;const pe=s.allocUnsafe($);let Ee=0;for(U=0;U<N.length;++U){let Le=N[U];if(Ve(Le,Uint8Array))Ee+Le.length>pe.length?(s.isBuffer(Le)||(Le=s.from(Le)),Le.copy(pe,Ee)):Uint8Array.prototype.set.call(pe,Le,Ee);else if(s.isBuffer(Le))Le.copy(pe,Ee);else throw new TypeError('"list" argument must be an Array of Buffers');Ee+=Le.length}return pe};function A(N,$){if(s.isBuffer(N))return N.length;if(ArrayBuffer.isView(N)||Ve(N,ArrayBuffer))return N.byteLength;if(typeof N!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof N);const U=N.length,pe=arguments.length>2&&arguments[2]===!0;if(!pe&&U===0)return 0;let Ee=!1;for(;;)switch($){case"ascii":case"latin1":case"binary":return U;case"utf8":case"utf-8":return ue(N).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U*2;case"hex":return U>>>1;case"base64":return Ke(N).length;default:if(Ee)return pe?-1:ue(N).length;$=(""+$).toLowerCase(),Ee=!0}}s.byteLength=A;function T(N,$,U){let pe=!1;if(($===void 0||$<0)&&($=0),$>this.length||((U===void 0||U>this.length)&&(U=this.length),U<=0)||(U>>>=0,$>>>=0,U<=$))return"";for(N||(N="utf8");;)switch(N){case"hex":return de(this,$,U);case"utf8":case"utf-8":return te(this,$,U);case"ascii":return ie(this,$,U);case"latin1":case"binary":return re(this,$,U);case"base64":return G(this,$,U);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return X(this,$,U);default:if(pe)throw new TypeError("Unknown encoding: "+N);N=(N+"").toLowerCase(),pe=!0}}s.prototype._isBuffer=!0;function L(N,$,U){const pe=N[$];N[$]=N[U],N[U]=pe}s.prototype.swap16=function(){const N=this.length;if(N%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let $=0;$<N;$+=2)L(this,$,$+1);return this},s.prototype.swap32=function(){const N=this.length;if(N%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let $=0;$<N;$+=4)L(this,$,$+3),L(this,$+1,$+2);return this},s.prototype.swap64=function(){const N=this.length;if(N%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let $=0;$<N;$+=8)L(this,$,$+7),L(this,$+1,$+6),L(this,$+2,$+5),L(this,$+3,$+4);return this},s.prototype.toString=function(){const N=this.length;return N===0?"":arguments.length===0?te(this,0,N):T.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(N){if(!s.isBuffer(N))throw new TypeError("Argument must be a Buffer");return this===N?!0:s.compare(this,N)===0},s.prototype.inspect=function(){let N="";const $=e.INSPECT_MAX_BYTES;return N=this.toString("hex",0,$).replace(/(.{2})/g,"$1 ").trim(),this.length>$&&(N+=" ... "),"<Buffer "+N+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(N,$,U,pe,Ee){if(Ve(N,Uint8Array)&&(N=s.from(N,N.offset,N.byteLength)),!s.isBuffer(N))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof N);if($===void 0&&($=0),U===void 0&&(U=N?N.length:0),pe===void 0&&(pe=0),Ee===void 0&&(Ee=this.length),$<0||U>N.length||pe<0||Ee>this.length)throw new RangeError("out of range index");if(pe>=Ee&&$>=U)return 0;if(pe>=Ee)return-1;if($>=U)return 1;if($>>>=0,U>>>=0,pe>>>=0,Ee>>>=0,this===N)return 0;let Le=Ee-pe,Ue=U-$;const it=Math.min(Le,Ue),Ft=this.slice(pe,Ee),gt=N.slice($,U);for(let Ot=0;Ot<it;++Ot)if(Ft[Ot]!==gt[Ot]){Le=Ft[Ot],Ue=gt[Ot];break}return Le<Ue?-1:Ue<Le?1:0};function j(N,$,U,pe,Ee){if(N.length===0)return-1;if(typeof U=="string"?(pe=U,U=0):U>2147483647?U=2147483647:U<-2147483648&&(U=-2147483648),U=+U,He(U)&&(U=Ee?0:N.length-1),U<0&&(U=N.length+U),U>=N.length){if(Ee)return-1;U=N.length-1}else if(U<0)if(Ee)U=0;else return-1;if(typeof $=="string"&&($=s.from($,pe)),s.isBuffer($))return $.length===0?-1:P(N,$,U,pe,Ee);if(typeof $=="number")return $=$&255,typeof Uint8Array.prototype.indexOf=="function"?Ee?Uint8Array.prototype.indexOf.call(N,$,U):Uint8Array.prototype.lastIndexOf.call(N,$,U):P(N,[$],U,pe,Ee);throw new TypeError("val must be string, number or Buffer")}function P(N,$,U,pe,Ee){let Le=1,Ue=N.length,it=$.length;if(pe!==void 0&&(pe=String(pe).toLowerCase(),pe==="ucs2"||pe==="ucs-2"||pe==="utf16le"||pe==="utf-16le")){if(N.length<2||$.length<2)return-1;Le=2,Ue/=2,it/=2,U/=2}function Ft(Ot,It){return Le===1?Ot[It]:Ot.readUInt16BE(It*Le)}let gt;if(Ee){let Ot=-1;for(gt=U;gt<Ue;gt++)if(Ft(N,gt)===Ft($,Ot===-1?0:gt-Ot)){if(Ot===-1&&(Ot=gt),gt-Ot+1===it)return Ot*Le}else Ot!==-1&&(gt-=gt-Ot),Ot=-1}else for(U+it>Ue&&(U=Ue-it),gt=U;gt>=0;gt--){let Ot=!0;for(let It=0;It<it;It++)if(Ft(N,gt+It)!==Ft($,It)){Ot=!1;break}if(Ot)return gt}return-1}s.prototype.includes=function(N,$,U){return this.indexOf(N,$,U)!==-1},s.prototype.indexOf=function(N,$,U){return j(this,N,$,U,!0)},s.prototype.lastIndexOf=function(N,$,U){return j(this,N,$,U,!1)};function _(N,$,U,pe){U=Number(U)||0;const Ee=N.length-U;pe?(pe=Number(pe),pe>Ee&&(pe=Ee)):pe=Ee;const Le=$.length;pe>Le/2&&(pe=Le/2);let Ue;for(Ue=0;Ue<pe;++Ue){const it=parseInt($.substr(Ue*2,2),16);if(He(it))return Ue;N[U+Ue]=it}return Ue}function I(N,$,U,pe){return Je(ue($,N.length-U),N,U,pe)}function z(N,$,U,pe){return Je(Ne($),N,U,pe)}function q(N,$,U,pe){return Je(Ke($),N,U,pe)}function B(N,$,U,pe){return Je(he($,N.length-U),N,U,pe)}s.prototype.write=function(N,$,U,pe){if($===void 0)pe="utf8",U=this.length,$=0;else if(U===void 0&&typeof $=="string")pe=$,U=this.length,$=0;else if(isFinite($))$=$>>>0,isFinite(U)?(U=U>>>0,pe===void 0&&(pe="utf8")):(pe=U,U=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Ee=this.length-$;if((U===void 0||U>Ee)&&(U=Ee),N.length>0&&(U<0||$<0)||$>this.length)throw new RangeError("Attempt to write outside buffer bounds");pe||(pe="utf8");let Le=!1;for(;;)switch(pe){case"hex":return _(this,N,$,U);case"utf8":case"utf-8":return I(this,N,$,U);case"ascii":case"latin1":case"binary":return z(this,N,$,U);case"base64":return q(this,N,$,U);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,N,$,U);default:if(Le)throw new TypeError("Unknown encoding: "+pe);pe=(""+pe).toLowerCase(),Le=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function G(N,$,U){return $===0&&U===N.length?t.fromByteArray(N):t.fromByteArray(N.slice($,U))}function te(N,$,U){U=Math.min(N.length,U);const pe=[];let Ee=$;for(;Ee<U;){const Le=N[Ee];let Ue=null,it=Le>239?4:Le>223?3:Le>191?2:1;if(Ee+it<=U){let Ft,gt,Ot,It;switch(it){case 1:Le<128&&(Ue=Le);break;case 2:Ft=N[Ee+1],(Ft&192)===128&&(It=(Le&31)<<6|Ft&63,It>127&&(Ue=It));break;case 3:Ft=N[Ee+1],gt=N[Ee+2],(Ft&192)===128&&(gt&192)===128&&(It=(Le&15)<<12|(Ft&63)<<6|gt&63,It>2047&&(It<55296||It>57343)&&(Ue=It));break;case 4:Ft=N[Ee+1],gt=N[Ee+2],Ot=N[Ee+3],(Ft&192)===128&&(gt&192)===128&&(Ot&192)===128&&(It=(Le&15)<<18|(Ft&63)<<12|(gt&63)<<6|Ot&63,It>65535&&It<1114112&&(Ue=It))}}Ue===null?(Ue=65533,it=1):Ue>65535&&(Ue-=65536,pe.push(Ue>>>10&1023|55296),Ue=56320|Ue&1023),pe.push(Ue),Ee+=it}return Y(pe)}const le=4096;function Y(N){const $=N.length;if($<=le)return String.fromCharCode.apply(String,N);let U="",pe=0;for(;pe<$;)U+=String.fromCharCode.apply(String,N.slice(pe,pe+=le));return U}function ie(N,$,U){let pe="";U=Math.min(N.length,U);for(let Ee=$;Ee<U;++Ee)pe+=String.fromCharCode(N[Ee]&127);return pe}function re(N,$,U){let pe="";U=Math.min(N.length,U);for(let Ee=$;Ee<U;++Ee)pe+=String.fromCharCode(N[Ee]);return pe}function de(N,$,U){const pe=N.length;(!$||$<0)&&($=0),(!U||U<0||U>pe)&&(U=pe);let Ee="";for(let Le=$;Le<U;++Le)Ee+=Xe[N[Le]];return Ee}function X(N,$,U){const pe=N.slice($,U);let Ee="";for(let Le=0;Le<pe.length-1;Le+=2)Ee+=String.fromCharCode(pe[Le]+pe[Le+1]*256);return Ee}s.prototype.slice=function(N,$){const U=this.length;N=~~N,$=$===void 0?U:~~$,N<0?(N+=U,N<0&&(N=0)):N>U&&(N=U),$<0?($+=U,$<0&&($=0)):$>U&&($=U),$<N&&($=N);const pe=this.subarray(N,$);return Object.setPrototypeOf(pe,s.prototype),pe};function H(N,$,U){if(N%1!==0||N<0)throw new RangeError("offset is not uint");if(N+$>U)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(N,$,U){N=N>>>0,$=$>>>0,U||H(N,$,this.length);let pe=this[N],Ee=1,Le=0;for(;++Le<$&&(Ee*=256);)pe+=this[N+Le]*Ee;return pe},s.prototype.readUintBE=s.prototype.readUIntBE=function(N,$,U){N=N>>>0,$=$>>>0,U||H(N,$,this.length);let pe=this[N+--$],Ee=1;for(;$>0&&(Ee*=256);)pe+=this[N+--$]*Ee;return pe},s.prototype.readUint8=s.prototype.readUInt8=function(N,$){return N=N>>>0,$||H(N,1,this.length),this[N]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(N,$){return N=N>>>0,$||H(N,2,this.length),this[N]|this[N+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(N,$){return N=N>>>0,$||H(N,2,this.length),this[N]<<8|this[N+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(N,$){return N=N>>>0,$||H(N,4,this.length),(this[N]|this[N+1]<<8|this[N+2]<<16)+this[N+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(N,$){return N=N>>>0,$||H(N,4,this.length),this[N]*16777216+(this[N+1]<<16|this[N+2]<<8|this[N+3])},s.prototype.readBigUInt64LE=ut(function(N){N=N>>>0,W(N,"offset");const $=this[N],U=this[N+7];($===void 0||U===void 0)&&ge(N,this.length-8);const pe=$+this[++N]*2**8+this[++N]*2**16+this[++N]*2**24,Ee=this[++N]+this[++N]*2**8+this[++N]*2**16+U*2**24;return BigInt(pe)+(BigInt(Ee)<<BigInt(32))}),s.prototype.readBigUInt64BE=ut(function(N){N=N>>>0,W(N,"offset");const $=this[N],U=this[N+7];($===void 0||U===void 0)&&ge(N,this.length-8);const pe=$*2**24+this[++N]*2**16+this[++N]*2**8+this[++N],Ee=this[++N]*2**24+this[++N]*2**16+this[++N]*2**8+U;return(BigInt(pe)<<BigInt(32))+BigInt(Ee)}),s.prototype.readIntLE=function(N,$,U){N=N>>>0,$=$>>>0,U||H(N,$,this.length);let pe=this[N],Ee=1,Le=0;for(;++Le<$&&(Ee*=256);)pe+=this[N+Le]*Ee;return Ee*=128,pe>=Ee&&(pe-=Math.pow(2,8*$)),pe},s.prototype.readIntBE=function(N,$,U){N=N>>>0,$=$>>>0,U||H(N,$,this.length);let pe=$,Ee=1,Le=this[N+--pe];for(;pe>0&&(Ee*=256);)Le+=this[N+--pe]*Ee;return Ee*=128,Le>=Ee&&(Le-=Math.pow(2,8*$)),Le},s.prototype.readInt8=function(N,$){return N=N>>>0,$||H(N,1,this.length),this[N]&128?(255-this[N]+1)*-1:this[N]},s.prototype.readInt16LE=function(N,$){N=N>>>0,$||H(N,2,this.length);const U=this[N]|this[N+1]<<8;return U&32768?U|4294901760:U},s.prototype.readInt16BE=function(N,$){N=N>>>0,$||H(N,2,this.length);const U=this[N+1]|this[N]<<8;return U&32768?U|4294901760:U},s.prototype.readInt32LE=function(N,$){return N=N>>>0,$||H(N,4,this.length),this[N]|this[N+1]<<8|this[N+2]<<16|this[N+3]<<24},s.prototype.readInt32BE=function(N,$){return N=N>>>0,$||H(N,4,this.length),this[N]<<24|this[N+1]<<16|this[N+2]<<8|this[N+3]},s.prototype.readBigInt64LE=ut(function(N){N=N>>>0,W(N,"offset");const $=this[N],U=this[N+7];($===void 0||U===void 0)&&ge(N,this.length-8);const pe=this[N+4]+this[N+5]*2**8+this[N+6]*2**16+(U<<24);return(BigInt(pe)<<BigInt(32))+BigInt($+this[++N]*2**8+this[++N]*2**16+this[++N]*2**24)}),s.prototype.readBigInt64BE=ut(function(N){N=N>>>0,W(N,"offset");const $=this[N],U=this[N+7];($===void 0||U===void 0)&&ge(N,this.length-8);const pe=($<<24)+this[++N]*2**16+this[++N]*2**8+this[++N];return(BigInt(pe)<<BigInt(32))+BigInt(this[++N]*2**24+this[++N]*2**16+this[++N]*2**8+U)}),s.prototype.readFloatLE=function(N,$){return N=N>>>0,$||H(N,4,this.length),r.read(this,N,!0,23,4)},s.prototype.readFloatBE=function(N,$){return N=N>>>0,$||H(N,4,this.length),r.read(this,N,!1,23,4)},s.prototype.readDoubleLE=function(N,$){return N=N>>>0,$||H(N,8,this.length),r.read(this,N,!0,52,8)},s.prototype.readDoubleBE=function(N,$){return N=N>>>0,$||H(N,8,this.length),r.read(this,N,!1,52,8)};function ae(N,$,U,pe,Ee,Le){if(!s.isBuffer(N))throw new TypeError('"buffer" argument must be a Buffer instance');if($>Ee||$<Le)throw new RangeError('"value" argument is out of bounds');if(U+pe>N.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(N,$,U,pe){if(N=+N,$=$>>>0,U=U>>>0,!pe){const Ue=Math.pow(2,8*U)-1;ae(this,N,$,U,Ue,0)}let Ee=1,Le=0;for(this[$]=N&255;++Le<U&&(Ee*=256);)this[$+Le]=N/Ee&255;return $+U},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(N,$,U,pe){if(N=+N,$=$>>>0,U=U>>>0,!pe){const Ue=Math.pow(2,8*U)-1;ae(this,N,$,U,Ue,0)}let Ee=U-1,Le=1;for(this[$+Ee]=N&255;--Ee>=0&&(Le*=256);)this[$+Ee]=N/Le&255;return $+U},s.prototype.writeUint8=s.prototype.writeUInt8=function(N,$,U){return N=+N,$=$>>>0,U||ae(this,N,$,1,255,0),this[$]=N&255,$+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(N,$,U){return N=+N,$=$>>>0,U||ae(this,N,$,2,65535,0),this[$]=N&255,this[$+1]=N>>>8,$+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(N,$,U){return N=+N,$=$>>>0,U||ae(this,N,$,2,65535,0),this[$]=N>>>8,this[$+1]=N&255,$+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(N,$,U){return N=+N,$=$>>>0,U||ae(this,N,$,4,4294967295,0),this[$+3]=N>>>24,this[$+2]=N>>>16,this[$+1]=N>>>8,this[$]=N&255,$+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(N,$,U){return N=+N,$=$>>>0,U||ae(this,N,$,4,4294967295,0),this[$]=N>>>24,this[$+1]=N>>>16,this[$+2]=N>>>8,this[$+3]=N&255,$+4};function K(N,$,U,pe,Ee){R($,pe,Ee,N,U,7);let Le=Number($&BigInt(4294967295));N[U++]=Le,Le=Le>>8,N[U++]=Le,Le=Le>>8,N[U++]=Le,Le=Le>>8,N[U++]=Le;let Ue=Number($>>BigInt(32)&BigInt(4294967295));return N[U++]=Ue,Ue=Ue>>8,N[U++]=Ue,Ue=Ue>>8,N[U++]=Ue,Ue=Ue>>8,N[U++]=Ue,U}function V(N,$,U,pe,Ee){R($,pe,Ee,N,U,7);let Le=Number($&BigInt(4294967295));N[U+7]=Le,Le=Le>>8,N[U+6]=Le,Le=Le>>8,N[U+5]=Le,Le=Le>>8,N[U+4]=Le;let Ue=Number($>>BigInt(32)&BigInt(4294967295));return N[U+3]=Ue,Ue=Ue>>8,N[U+2]=Ue,Ue=Ue>>8,N[U+1]=Ue,Ue=Ue>>8,N[U]=Ue,U+8}s.prototype.writeBigUInt64LE=ut(function(N,$=0){return K(this,N,$,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=ut(function(N,$=0){return V(this,N,$,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(N,$,U,pe){if(N=+N,$=$>>>0,!pe){const it=Math.pow(2,8*U-1);ae(this,N,$,U,it-1,-it)}let Ee=0,Le=1,Ue=0;for(this[$]=N&255;++Ee<U&&(Le*=256);)N<0&&Ue===0&&this[$+Ee-1]!==0&&(Ue=1),this[$+Ee]=(N/Le>>0)-Ue&255;return $+U},s.prototype.writeIntBE=function(N,$,U,pe){if(N=+N,$=$>>>0,!pe){const it=Math.pow(2,8*U-1);ae(this,N,$,U,it-1,-it)}let Ee=U-1,Le=1,Ue=0;for(this[$+Ee]=N&255;--Ee>=0&&(Le*=256);)N<0&&Ue===0&&this[$+Ee+1]!==0&&(Ue=1),this[$+Ee]=(N/Le>>0)-Ue&255;return $+U},s.prototype.writeInt8=function(N,$,U){return N=+N,$=$>>>0,U||ae(this,N,$,1,127,-128),N<0&&(N=255+N+1),this[$]=N&255,$+1},s.prototype.writeInt16LE=function(N,$,U){return N=+N,$=$>>>0,U||ae(this,N,$,2,32767,-32768),this[$]=N&255,this[$+1]=N>>>8,$+2},s.prototype.writeInt16BE=function(N,$,U){return N=+N,$=$>>>0,U||ae(this,N,$,2,32767,-32768),this[$]=N>>>8,this[$+1]=N&255,$+2},s.prototype.writeInt32LE=function(N,$,U){return N=+N,$=$>>>0,U||ae(this,N,$,4,2147483647,-2147483648),this[$]=N&255,this[$+1]=N>>>8,this[$+2]=N>>>16,this[$+3]=N>>>24,$+4},s.prototype.writeInt32BE=function(N,$,U){return N=+N,$=$>>>0,U||ae(this,N,$,4,2147483647,-2147483648),N<0&&(N=4294967295+N+1),this[$]=N>>>24,this[$+1]=N>>>16,this[$+2]=N>>>8,this[$+3]=N&255,$+4},s.prototype.writeBigInt64LE=ut(function(N,$=0){return K(this,N,$,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=ut(function(N,$=0){return V(this,N,$,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function se(N,$,U,pe,Ee,Le){if(U+pe>N.length)throw new RangeError("Index out of range");if(U<0)throw new RangeError("Index out of range")}function Q(N,$,U,pe,Ee){return $=+$,U=U>>>0,Ee||se(N,$,U,4),r.write(N,$,U,pe,23,4),U+4}s.prototype.writeFloatLE=function(N,$,U){return Q(this,N,$,!0,U)},s.prototype.writeFloatBE=function(N,$,U){return Q(this,N,$,!1,U)};function ne(N,$,U,pe,Ee){return $=+$,U=U>>>0,Ee||se(N,$,U,8),r.write(N,$,U,pe,52,8),U+8}s.prototype.writeDoubleLE=function(N,$,U){return ne(this,N,$,!0,U)},s.prototype.writeDoubleBE=function(N,$,U){return ne(this,N,$,!1,U)},s.prototype.copy=function(N,$,U,pe){if(!s.isBuffer(N))throw new TypeError("argument should be a Buffer");if(U||(U=0),!pe&&pe!==0&&(pe=this.length),$>=N.length&&($=N.length),$||($=0),pe>0&&pe<U&&(pe=U),pe===U||N.length===0||this.length===0)return 0;if($<0)throw new RangeError("targetStart out of bounds");if(U<0||U>=this.length)throw new RangeError("Index out of range");if(pe<0)throw new RangeError("sourceEnd out of bounds");pe>this.length&&(pe=this.length),N.length-$<pe-U&&(pe=N.length-$+U);const Ee=pe-U;return this===N&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin($,U,pe):Uint8Array.prototype.set.call(N,this.subarray(U,pe),$),Ee},s.prototype.fill=function(N,$,U,pe){if(typeof N=="string"){if(typeof $=="string"?(pe=$,$=0,U=this.length):typeof U=="string"&&(pe=U,U=this.length),pe!==void 0&&typeof pe!="string")throw new TypeError("encoding must be a string");if(typeof pe=="string"&&!s.isEncoding(pe))throw new TypeError("Unknown encoding: "+pe);if(N.length===1){const Le=N.charCodeAt(0);(pe==="utf8"&&Le<128||pe==="latin1")&&(N=Le)}}else typeof N=="number"?N=N&255:typeof N=="boolean"&&(N=Number(N));if($<0||this.length<$||this.length<U)throw new RangeError("Out of range index");if(U<=$)return this;$=$>>>0,U=U===void 0?this.length:U>>>0,N||(N=0);let Ee;if(typeof N=="number")for(Ee=$;Ee<U;++Ee)this[Ee]=N;else{const Le=s.isBuffer(N)?N:s.from(N,pe),Ue=Le.length;if(Ue===0)throw new TypeError('The value "'+N+'" is invalid for argument "value"');for(Ee=0;Ee<U-$;++Ee)this[Ee+$]=Le[Ee%Ue]}return this};const F={};function be(N,$,U){F[N]=class extends U{constructor(){super(),Object.defineProperty(this,"message",{value:$.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${N}]`,delete this.name}get code(){return N}set code(pe){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:pe,writable:!0})}toString(){return`${this.name} [${N}]: ${this.message}`}}}be("ERR_BUFFER_OUT_OF_BOUNDS",function(N){return N?`${N} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),be("ERR_INVALID_ARG_TYPE",function(N,$){return`The "${N}" argument must be of type number. Received type ${typeof $}`},TypeError),be("ERR_OUT_OF_RANGE",function(N,$,U){let pe=`The value of "${N}" is out of range.`,Ee=U;return Number.isInteger(U)&&Math.abs(U)>2**32?Ee=ke(String(U)):typeof U=="bigint"&&(Ee=String(U),(U>BigInt(2)**BigInt(32)||U<-(BigInt(2)**BigInt(32)))&&(Ee=ke(Ee)),Ee+="n"),pe+=` It must be ${$}. Received ${Ee}`,pe},RangeError);function ke(N){let $="",U=N.length;const pe=N[0]==="-"?1:0;for(;U>=pe+4;U-=3)$=`_${N.slice(U-3,U)}${$}`;return`${N.slice(0,U)}${$}`}function E(N,$,U){W($,"offset"),(N[$]===void 0||N[$+U]===void 0)&&ge($,N.length-(U+1))}function R(N,$,U,pe,Ee,Le){if(N>U||N<$){const Ue=typeof $=="bigint"?"n":"";let it;throw $===0||$===BigInt(0)?it=`>= 0${Ue} and < 2${Ue} ** ${(Le+1)*8}${Ue}`:it=`>= -(2${Ue} ** ${(Le+1)*8-1}${Ue}) and < 2 ** ${(Le+1)*8-1}${Ue}`,new F.ERR_OUT_OF_RANGE("value",it,N)}E(pe,Ee,Le)}function W(N,$){if(typeof N!="number")throw new F.ERR_INVALID_ARG_TYPE($,"number",N)}function ge(N,$,U){throw Math.floor(N)!==N?(W(N,U),new F.ERR_OUT_OF_RANGE("offset","an integer",N)):$<0?new F.ERR_BUFFER_OUT_OF_BOUNDS:new F.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${$}`,N)}const xe=/[^+/0-9A-Za-z-_]/g;function ce(N){if(N=N.split("=")[0],N=N.trim().replace(xe,""),N.length<2)return"";for(;N.length%4!==0;)N=N+"=";return N}function ue(N,$){$=$||1/0;let U;const pe=N.length;let Ee=null;const Le=[];for(let Ue=0;Ue<pe;++Ue){if(U=N.charCodeAt(Ue),U>55295&&U<57344){if(!Ee){if(U>56319){($-=3)>-1&&Le.push(239,191,189);continue}else if(Ue+1===pe){($-=3)>-1&&Le.push(239,191,189);continue}Ee=U;continue}if(U<56320){($-=3)>-1&&Le.push(239,191,189),Ee=U;continue}U=(Ee-55296<<10|U-56320)+65536}else Ee&&($-=3)>-1&&Le.push(239,191,189);if(Ee=null,U<128){if(($-=1)<0)break;Le.push(U)}else if(U<2048){if(($-=2)<0)break;Le.push(U>>6|192,U&63|128)}else if(U<65536){if(($-=3)<0)break;Le.push(U>>12|224,U>>6&63|128,U&63|128)}else if(U<1114112){if(($-=4)<0)break;Le.push(U>>18|240,U>>12&63|128,U>>6&63|128,U&63|128)}else throw new Error("Invalid code point")}return Le}function Ne(N){const $=[];for(let U=0;U<N.length;++U)$.push(N.charCodeAt(U)&255);return $}function he(N,$){let U,pe,Ee;const Le=[];for(let Ue=0;Ue<N.length&&!(($-=2)<0);++Ue)U=N.charCodeAt(Ue),pe=U>>8,Ee=U%256,Le.push(Ee),Le.push(pe);return Le}function Ke(N){return t.toByteArray(ce(N))}function Je(N,$,U,pe){let Ee;for(Ee=0;Ee<pe&&!(Ee+U>=$.length||Ee>=N.length);++Ee)$[Ee+U]=N[Ee];return Ee}function Ve(N,$){return N instanceof $||N!=null&&N.constructor!=null&&N.constructor.name!=null&&N.constructor.name===$.name}function He(N){return N!==N}const Xe=(function(){const N="0123456789abcdef",$=new Array(256);for(let U=0;U<16;++U){const pe=U*16;for(let Ee=0;Ee<16;++Ee)$[pe+Ee]=N[U]+N[Ee]}return $})();function ut(N){return typeof BigInt>"u"?Fe:N}function Fe(){throw new Error("BigInt not supported")}})(CW)),CW}const TW=ia(lF);var fk,_W;function wBe(){if(_W)return fk;_W=1;function e(v,x){var S=Object.keys(v);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(v);x&&(w=w.filter(function(C){return Object.getOwnPropertyDescriptor(v,C).enumerable})),S.push.apply(S,w)}return S}function t(v){for(var x=1;x<arguments.length;x++){var S=arguments[x]!=null?arguments[x]:{};x%2?e(Object(S),!0).forEach(function(w){r(v,w,S[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties(v,Object.getOwnPropertyDescriptors(S)):e(Object(S)).forEach(function(w){Object.defineProperty(v,w,Object.getOwnPropertyDescriptor(S,w))})}return v}function r(v,x,S){return x=i(x),x in v?Object.defineProperty(v,x,{value:S,enumerable:!0,configurable:!0,writable:!0}):v[x]=S,v}function n(v,x){if(!(v instanceof x))throw new TypeError("Cannot call a class as a function")}function o(v,x){for(var S=0;S<x.length;S++){var w=x[S];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(v,i(w.key),w)}}function a(v,x,S){return x&&o(v.prototype,x),Object.defineProperty(v,"prototype",{writable:!1}),v}function i(v){var x=s(v,"string");return typeof x=="symbol"?x:String(x)}function s(v,x){if(typeof v!="object"||v===null)return v;var S=v[Symbol.toPrimitive];if(S!==void 0){var w=S.call(v,x);if(typeof w!="object")return w;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(v)}var c=pf(),u=c.Buffer,d=TW,f=d.inspect,g=f&&f.custom||"inspect";function y(v,x,S){u.prototype.copy.call(v,x,S)}return fk=(function(){function v(){n(this,v),this.head=null,this.tail=null,this.length=0}return a(v,[{key:"push",value:function(x){var S={data:x,next:null};this.length>0?this.tail.next=S:this.head=S,this.tail=S,++this.length}},{key:"unshift",value:function(x){var S={data:x,next:this.head};this.length===0&&(this.tail=S),this.head=S,++this.length}},{key:"shift",value:function(){if(this.length!==0){var x=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,x}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(x){if(this.length===0)return"";for(var S=this.head,w=""+S.data;S=S.next;)w+=x+S.data;return w}},{key:"concat",value:function(x){if(this.length===0)return u.alloc(0);for(var S=u.allocUnsafe(x>>>0),w=this.head,C=0;w;)y(w.data,S,C),C+=w.data.length,w=w.next;return S}},{key:"consume",value:function(x,S){var w;return x<this.head.data.length?(w=this.head.data.slice(0,x),this.head.data=this.head.data.slice(x)):x===this.head.data.length?w=this.shift():w=S?this._getString(x):this._getBuffer(x),w}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(x){var S=this.head,w=1,C=S.data;for(x-=C.length;S=S.next;){var A=S.data,T=x>A.length?A.length:x;if(T===A.length?C+=A:C+=A.slice(0,x),x-=T,x===0){T===A.length?(++w,S.next?this.head=S.next:this.head=this.tail=null):(this.head=S,S.data=A.slice(T));break}++w}return this.length-=w,C}},{key:"_getBuffer",value:function(x){var S=u.allocUnsafe(x),w=this.head,C=1;for(w.data.copy(S),x-=w.data.length;w=w.next;){var A=w.data,T=x>A.length?A.length:x;if(A.copy(S,S.length-x,0,T),x-=T,x===0){T===A.length?(++C,w.next?this.head=w.next:this.head=this.tail=null):(this.head=w,w.data=A.slice(T));break}++C}return this.length-=C,S}},{key:g,value:function(x,S){return f(this,t(t({},S),{},{depth:0,customInspect:!1}))}}]),v})(),fk}var mk,OW;function LW(){if(OW)return mk;OW=1;function e(i,s){var c=this,u=this._readableState&&this._readableState.destroyed,d=this._writableState&&this._writableState.destroyed;return u||d?(s?s(i):i&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(o,this,i)):process.nextTick(o,this,i)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(i||null,function(f){!s&&f?c._writableState?c._writableState.errorEmitted?process.nextTick(r,c):(c._writableState.errorEmitted=!0,process.nextTick(t,c,f)):process.nextTick(t,c,f):s?(process.nextTick(r,c),s(f)):process.nextTick(r,c)}),this)}function t(i,s){o(i,s),r(i)}function r(i){i._writableState&&!i._writableState.emitClose||i._readableState&&!i._readableState.emitClose||i.emit("close")}function n(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(i,s){i.emit("error",s)}function a(i,s){var c=i._readableState,u=i._writableState;c&&c.autoDestroy||u&&u.autoDestroy?i.destroy(s):i.emit("error",s)}return mk={destroy:e,undestroy:n,errorOrDestroy:a},mk}var gk={},jW;function uu(){if(jW)return gk;jW=1;function e(s,c){s.prototype=Object.create(c.prototype),s.prototype.constructor=s,s.__proto__=c}var t={};function r(s,c,u){u||(u=Error);function d(g,y,v){return typeof c=="string"?c:c(g,y,v)}var f=(function(g){e(y,g);function y(v,x,S){return g.call(this,d(v,x,S))||this}return y})(u);f.prototype.name=u.name,f.prototype.code=s,t[s]=f}function n(s,c){if(Array.isArray(s)){var u=s.length;return s=s.map(function(d){return String(d)}),u>2?"one of ".concat(c," ").concat(s.slice(0,u-1).join(", "),", or ")+s[u-1]:u===2?"one of ".concat(c," ").concat(s[0]," or ").concat(s[1]):"of ".concat(c," ").concat(s[0])}else return"of ".concat(c," ").concat(String(s))}function o(s,c,u){return s.substr(0,c.length)===c}function a(s,c,u){return(u===void 0||u>s.length)&&(u=s.length),s.substring(u-c.length,u)===c}function i(s,c,u){return typeof u!="number"&&(u=0),u+c.length>s.length?!1:s.indexOf(c,u)!==-1}return r("ERR_INVALID_OPT_VALUE",function(s,c){return'The value "'+c+'" is invalid for option "'+s+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(s,c,u){var d;typeof c=="string"&&o(c,"not ")?(d="must not be",c=c.replace(/^not /,"")):d="must be";var f;if(a(s," argument"))f="The ".concat(s," ").concat(d," ").concat(n(c,"type"));else{var g=i(s,".")?"property":"argument";f='The "'.concat(s,'" ').concat(g," ").concat(d," ").concat(n(c,"type"))}return f+=". Received type ".concat(typeof u),f},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(s){return"The "+s+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(s){return"Cannot call "+s+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(s){return"Unknown encoding: "+s},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),gk.codes=t,gk}var bk,NW;function RW(){if(NW)return bk;NW=1;var e=uu().codes.ERR_INVALID_OPT_VALUE;function t(n,o,a){return n.highWaterMark!=null?n.highWaterMark:o?n[a]:null}function r(n,o,a,i){var s=t(o,i,a);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var c=i?a:"highWaterMark";throw new e(c,s)}return Math.floor(s)}return n.objectMode?16:16*1024}return bk={getHighWaterMark:r},bk}var yk,PW;function SBe(){if(PW)return yk;PW=1,yk=e;function e(r,n){if(t("noDeprecation"))return r;var o=!1;function a(){if(!o){if(t("throwDeprecation"))throw new Error(n);t("traceDeprecation")?console.trace(n):console.warn(n),o=!0}return r.apply(this,arguments)}return a}function t(r){try{if(!globalThis.localStorage)return!1}catch{return!1}var n=globalThis.localStorage[r];return n==null?!1:String(n).toLowerCase()==="true"}return yk}var vk,IW;function $W(){if(IW)return vk;IW=1,vk=_;function e(Q){var ne=this;this.next=null,this.entry=null,this.finish=function(){se(ne,Q)}}var t;_.WritableState=j;var r={deprecate:SBe()},n=SW(),o=pf().Buffer,a=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function i(Q){return o.from(Q)}function s(Q){return o.isBuffer(Q)||Q instanceof a}var c=LW(),u=RW(),d=u.getHighWaterMark,f=uu().codes,g=f.ERR_INVALID_ARG_TYPE,y=f.ERR_METHOD_NOT_IMPLEMENTED,v=f.ERR_MULTIPLE_CALLBACK,x=f.ERR_STREAM_CANNOT_PIPE,S=f.ERR_STREAM_DESTROYED,w=f.ERR_STREAM_NULL_VALUES,C=f.ERR_STREAM_WRITE_AFTER_END,A=f.ERR_UNKNOWN_ENCODING,T=c.errorOrDestroy;function L(){}function j(Q,ne,F){t=t||du(),Q=Q||{},typeof F!="boolean"&&(F=ne instanceof t),this.objectMode=!!Q.objectMode,F&&(this.objectMode=this.objectMode||!!Q.writableObjectMode),this.highWaterMark=d(this,Q,"writableHighWaterMark",F),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var be=Q.decodeStrings===!1;this.decodeStrings=!be,this.defaultEncoding=Q.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ke){Y(ne,ke)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Q.emitClose!==!1,this.autoDestroy=!!Q.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}j.prototype.getBuffer=function(){for(var Q=this.bufferedRequest,ne=[];Q;)ne.push(Q),Q=Q.next;return ne},(function(){try{Object.defineProperty(j.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var P;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(P=Function.prototype[Symbol.hasInstance],Object.defineProperty(_,Symbol.hasInstance,{value:function(Q){return P.call(this,Q)?!0:this!==_?!1:Q&&Q._writableState instanceof j}})):P=function(Q){return Q instanceof this};function _(Q){t=t||du();var ne=this instanceof t;if(!ne&&!P.call(_,this))return new _(Q);this._writableState=new j(Q,this,ne),this.writable=!0,Q&&(typeof Q.write=="function"&&(this._write=Q.write),typeof Q.writev=="function"&&(this._writev=Q.writev),typeof Q.destroy=="function"&&(this._destroy=Q.destroy),typeof Q.final=="function"&&(this._final=Q.final)),n.call(this)}_.prototype.pipe=function(){T(this,new x)};function I(Q,ne){var F=new C;T(Q,F),process.nextTick(ne,F)}function z(Q,ne,F,be){var ke;return F===null?ke=new w:typeof F!="string"&&!ne.objectMode&&(ke=new g("chunk",["string","Buffer"],F)),ke?(T(Q,ke),process.nextTick(be,ke),!1):!0}_.prototype.write=function(Q,ne,F){var be=this._writableState,ke=!1,E=!be.objectMode&&s(Q);return E&&!o.isBuffer(Q)&&(Q=i(Q)),typeof ne=="function"&&(F=ne,ne=null),E?ne="buffer":ne||(ne=be.defaultEncoding),typeof F!="function"&&(F=L),be.ending?I(this,F):(E||z(this,be,Q,F))&&(be.pendingcb++,ke=B(this,be,E,Q,ne,F)),ke},_.prototype.cork=function(){this._writableState.corked++},_.prototype.uncork=function(){var Q=this._writableState;Q.corked&&(Q.corked--,!Q.writing&&!Q.corked&&!Q.bufferProcessing&&Q.bufferedRequest&&de(this,Q))},_.prototype.setDefaultEncoding=function(Q){if(typeof Q=="string"&&(Q=Q.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Q+"").toLowerCase())>-1))throw new A(Q);return this._writableState.defaultEncoding=Q,this},Object.defineProperty(_.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function q(Q,ne,F){return!Q.objectMode&&Q.decodeStrings!==!1&&typeof ne=="string"&&(ne=o.from(ne,F)),ne}Object.defineProperty(_.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function B(Q,ne,F,be,ke,E){if(!F){var R=q(ne,be,ke);be!==R&&(F=!0,ke="buffer",be=R)}var W=ne.objectMode?1:be.length;ne.length+=W;var ge=ne.length<ne.highWaterMark;if(ge||(ne.needDrain=!0),ne.writing||ne.corked){var xe=ne.lastBufferedRequest;ne.lastBufferedRequest={chunk:be,encoding:ke,isBuf:F,callback:E,next:null},xe?xe.next=ne.lastBufferedRequest:ne.bufferedRequest=ne.lastBufferedRequest,ne.bufferedRequestCount+=1}else G(Q,ne,!1,W,be,ke,E);return ge}function G(Q,ne,F,be,ke,E,R){ne.writelen=be,ne.writecb=R,ne.writing=!0,ne.sync=!0,ne.destroyed?ne.onwrite(new S("write")):F?Q._writev(ke,ne.onwrite):Q._write(ke,E,ne.onwrite),ne.sync=!1}function te(Q,ne,F,be,ke){--ne.pendingcb,F?(process.nextTick(ke,be),process.nextTick(K,Q,ne),Q._writableState.errorEmitted=!0,T(Q,be)):(ke(be),Q._writableState.errorEmitted=!0,T(Q,be),K(Q,ne))}function le(Q){Q.writing=!1,Q.writecb=null,Q.length-=Q.writelen,Q.writelen=0}function Y(Q,ne){var F=Q._writableState,be=F.sync,ke=F.writecb;if(typeof ke!="function")throw new v;if(le(F),ne)te(Q,F,be,ne,ke);else{var E=X(F)||Q.destroyed;!E&&!F.corked&&!F.bufferProcessing&&F.bufferedRequest&&de(Q,F),be?process.nextTick(ie,Q,F,E,ke):ie(Q,F,E,ke)}}function ie(Q,ne,F,be){F||re(Q,ne),ne.pendingcb--,be(),K(Q,ne)}function re(Q,ne){ne.length===0&&ne.needDrain&&(ne.needDrain=!1,Q.emit("drain"))}function de(Q,ne){ne.bufferProcessing=!0;var F=ne.bufferedRequest;if(Q._writev&&F&&F.next){var be=ne.bufferedRequestCount,ke=new Array(be),E=ne.corkedRequestsFree;E.entry=F;for(var R=0,W=!0;F;)ke[R]=F,F.isBuf||(W=!1),F=F.next,R+=1;ke.allBuffers=W,G(Q,ne,!0,ne.length,ke,"",E.finish),ne.pendingcb++,ne.lastBufferedRequest=null,E.next?(ne.corkedRequestsFree=E.next,E.next=null):ne.corkedRequestsFree=new e(ne),ne.bufferedRequestCount=0}else{for(;F;){var ge=F.chunk,xe=F.encoding,ce=F.callback,ue=ne.objectMode?1:ge.length;if(G(Q,ne,!1,ue,ge,xe,ce),F=F.next,ne.bufferedRequestCount--,ne.writing)break}F===null&&(ne.lastBufferedRequest=null)}ne.bufferedRequest=F,ne.bufferProcessing=!1}_.prototype._write=function(Q,ne,F){F(new y("_write()"))},_.prototype._writev=null,_.prototype.end=function(Q,ne,F){var be=this._writableState;return typeof Q=="function"?(F=Q,Q=null,ne=null):typeof ne=="function"&&(F=ne,ne=null),Q!=null&&this.write(Q,ne),be.corked&&(be.corked=1,this.uncork()),be.ending||V(this,be,F),this},Object.defineProperty(_.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function X(Q){return Q.ending&&Q.length===0&&Q.bufferedRequest===null&&!Q.finished&&!Q.writing}function H(Q,ne){Q._final(function(F){ne.pendingcb--,F&&T(Q,F),ne.prefinished=!0,Q.emit("prefinish"),K(Q,ne)})}function ae(Q,ne){!ne.prefinished&&!ne.finalCalled&&(typeof Q._final=="function"&&!ne.destroyed?(ne.pendingcb++,ne.finalCalled=!0,process.nextTick(H,Q,ne)):(ne.prefinished=!0,Q.emit("prefinish")))}function K(Q,ne){var F=X(ne);if(F&&(ae(Q,ne),ne.pendingcb===0&&(ne.finished=!0,Q.emit("finish"),ne.autoDestroy))){var be=Q._readableState;(!be||be.autoDestroy&&be.endEmitted)&&Q.destroy()}return F}function V(Q,ne,F){ne.ending=!0,K(Q,ne),F&&(ne.finished?process.nextTick(F):Q.once("finish",F)),ne.ended=!0,Q.writable=!1}function se(Q,ne,F){var be=Q.entry;for(Q.entry=null;be;){var ke=be.callback;ne.pendingcb--,ke(F),be=be.next}ne.corkedRequestsFree.next=Q}return Object.defineProperty(_.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Q){this._writableState&&(this._writableState.destroyed=Q)}}),_.prototype.destroy=c.destroy,_.prototype._undestroy=c.undestroy,_.prototype._destroy=function(Q,ne){ne(Q)},vk}var xk,MW;function du(){if(MW)return xk;MW=1;var e=Object.keys||function(u){var d=[];for(var f in u)d.push(f);return d};xk=i;for(var t=WW(),r=$W(),n=e(r.prototype),o=0;o<n.length;o++){var a=n[o];i.prototype[a]||(i.prototype[a]=r.prototype[a])}function i(u){if(!(this instanceof i))return new i(u);t.call(this,u),r.call(this,u),this.allowHalfOpen=!0,u&&(u.readable===!1&&(this.readable=!1),u.writable===!1&&(this.writable=!1),u.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",s)))}Object.defineProperty(i.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(i.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(i.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function s(){this._writableState.ended||process.nextTick(c,this)}function c(u){u.end()}return Object.defineProperty(i.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(u){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=u,this._writableState.destroyed=u)}}),xk}var wk={},Sk={exports:{}},DW;function CBe(){return DW||(DW=1,(function(e,t){var r=pf(),n=r.Buffer;function o(i,s){for(var c in i)s[c]=i[c]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a);function a(i,s,c){return n(i,s,c)}a.prototype=Object.create(n.prototype),o(n,a),a.from=function(i,s,c){if(typeof i=="number")throw new TypeError("Argument must not be a number");return n(i,s,c)},a.alloc=function(i,s,c){if(typeof i!="number")throw new TypeError("Argument must be a number");var u=n(i);return s!==void 0?typeof c=="string"?u.fill(s,c):u.fill(s):u.fill(0),u},a.allocUnsafe=function(i){if(typeof i!="number")throw new TypeError("Argument must be a number");return n(i)},a.allocUnsafeSlow=function(i){if(typeof i!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(i)}})(Sk,Sk.exports)),Sk.exports}var zW;function BW(){if(zW)return wk;zW=1;var e=CBe().Buffer,t=e.isEncoding||function(w){switch(w=""+w,w&&w.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(w){if(!w)return"utf8";for(var C;;)switch(w){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return w;default:if(C)return;w=(""+w).toLowerCase(),C=!0}}function n(w){var C=r(w);if(typeof C!="string"&&(e.isEncoding===t||!t(w)))throw new Error("Unknown encoding: "+w);return C||w}wk.StringDecoder=o;function o(w){this.encoding=n(w);var C;switch(this.encoding){case"utf16le":this.text=f,this.end=g,C=4;break;case"utf8":this.fillLast=c,C=4;break;case"base64":this.text=y,this.end=v,C=3;break;default:this.write=x,this.end=S;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(C)}o.prototype.write=function(w){if(w.length===0)return"";var C,A;if(this.lastNeed){if(C=this.fillLast(w),C===void 0)return"";A=this.lastNeed,this.lastNeed=0}else A=0;return A<w.length?C?C+this.text(w,A):this.text(w,A):C||""},o.prototype.end=d,o.prototype.text=u,o.prototype.fillLast=function(w){if(this.lastNeed<=w.length)return w.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);w.copy(this.lastChar,this.lastTotal-this.lastNeed,0,w.length),this.lastNeed-=w.length};function a(w){return w<=127?0:w>>5===6?2:w>>4===14?3:w>>3===30?4:w>>6===2?-1:-2}function i(w,C,A){var T=C.length-1;if(T<A)return 0;var L=a(C[T]);return L>=0?(L>0&&(w.lastNeed=L-1),L):--T<A||L===-2?0:(L=a(C[T]),L>=0?(L>0&&(w.lastNeed=L-2),L):--T<A||L===-2?0:(L=a(C[T]),L>=0?(L>0&&(L===2?L=0:w.lastNeed=L-3),L):0))}function s(w,C,A){if((C[0]&192)!==128)return w.lastNeed=0,"\uFFFD";if(w.lastNeed>1&&C.length>1){if((C[1]&192)!==128)return w.lastNeed=1,"\uFFFD";if(w.lastNeed>2&&C.length>2&&(C[2]&192)!==128)return w.lastNeed=2,"\uFFFD"}}function c(w){var C=this.lastTotal-this.lastNeed,A=s(this,w);if(A!==void 0)return A;if(this.lastNeed<=w.length)return w.copy(this.lastChar,C,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);w.copy(this.lastChar,C,0,w.length),this.lastNeed-=w.length}function u(w,C){var A=i(this,w,C);if(!this.lastNeed)return w.toString("utf8",C);this.lastTotal=A;var T=w.length-(A-this.lastNeed);return w.copy(this.lastChar,0,T),w.toString("utf8",C,T)}function d(w){var C=w&&w.length?this.write(w):"";return this.lastNeed?C+"\uFFFD":C}function f(w,C){if((w.length-C)%2===0){var A=w.toString("utf16le",C);if(A){var T=A.charCodeAt(A.length-1);if(T>=55296&&T<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=w[w.length-2],this.lastChar[1]=w[w.length-1],A.slice(0,-1)}return A}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=w[w.length-1],w.toString("utf16le",C,w.length-1)}function g(w){var C=w&&w.length?this.write(w):"";if(this.lastNeed){var A=this.lastTotal-this.lastNeed;return C+this.lastChar.toString("utf16le",0,A)}return C}function y(w,C){var A=(w.length-C)%3;return A===0?w.toString("base64",C):(this.lastNeed=3-A,this.lastTotal=3,A===1?this.lastChar[0]=w[w.length-1]:(this.lastChar[0]=w[w.length-2],this.lastChar[1]=w[w.length-1]),w.toString("base64",C,w.length-A))}function v(w){var C=w&&w.length?this.write(w):"";return this.lastNeed?C+this.lastChar.toString("base64",0,3-this.lastNeed):C}function x(w){return w.toString(this.encoding)}function S(w){return w&&w.length?this.write(w):""}return wk}var Ck,UW;function kk(){if(UW)return Ck;UW=1;var e=uu().codes.ERR_STREAM_PREMATURE_CLOSE;function t(a){var i=!1;return function(){if(!i){i=!0;for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];a.apply(this,c)}}}function r(){}function n(a){return a.setHeader&&typeof a.abort=="function"}function o(a,i,s){if(typeof i=="function")return o(a,null,i);i||(i={}),s=t(s||r);var c=i.readable||i.readable!==!1&&a.readable,u=i.writable||i.writable!==!1&&a.writable,d=function(){a.writable||g()},f=a._writableState&&a._writableState.finished,g=function(){u=!1,f=!0,c||s.call(a)},y=a._readableState&&a._readableState.endEmitted,v=function(){c=!1,y=!0,u||s.call(a)},x=function(C){s.call(a,C)},S=function(){var C;if(c&&!y)return(!a._readableState||!a._readableState.ended)&&(C=new e),s.call(a,C);if(u&&!f)return(!a._writableState||!a._writableState.ended)&&(C=new e),s.call(a,C)},w=function(){a.req.on("finish",g)};return n(a)?(a.on("complete",g),a.on("abort",S),a.req?w():a.on("request",w)):u&&!a._writableState&&(a.on("end",d),a.on("close",d)),a.on("end",v),a.on("finish",g),i.error!==!1&&a.on("error",x),a.on("close",S),function(){a.removeListener("complete",g),a.removeListener("abort",S),a.removeListener("request",w),a.req&&a.req.removeListener("finish",g),a.removeListener("end",d),a.removeListener("close",d),a.removeListener("finish",g),a.removeListener("end",v),a.removeListener("error",x),a.removeListener("close",S)}}return Ck=o,Ck}var Ek,FW;function kBe(){if(FW)return Ek;FW=1;var e;function t(A,T,L){return T=r(T),T in A?Object.defineProperty(A,T,{value:L,enumerable:!0,configurable:!0,writable:!0}):A[T]=L,A}function r(A){var T=n(A,"string");return typeof T=="symbol"?T:String(T)}function n(A,T){if(typeof A!="object"||A===null)return A;var L=A[Symbol.toPrimitive];if(L!==void 0){var j=L.call(A,T);if(typeof j!="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return(T==="string"?String:Number)(A)}var o=kk(),a=Symbol("lastResolve"),i=Symbol("lastReject"),s=Symbol("error"),c=Symbol("ended"),u=Symbol("lastPromise"),d=Symbol("handlePromise"),f=Symbol("stream");function g(A,T){return{value:A,done:T}}function y(A){var T=A[a];if(T!==null){var L=A[f].read();L!==null&&(A[u]=null,A[a]=null,A[i]=null,T(g(L,!1)))}}function v(A){process.nextTick(y,A)}function x(A,T){return function(L,j){A.then(function(){if(T[c]){L(g(void 0,!0));return}T[d](L,j)},j)}}var S=Object.getPrototypeOf(function(){}),w=Object.setPrototypeOf((e={get stream(){return this[f]},next:function(){var A=this,T=this[s];if(T!==null)return Promise.reject(T);if(this[c])return Promise.resolve(g(void 0,!0));if(this[f].destroyed)return new Promise(function(_,I){process.nextTick(function(){A[s]?I(A[s]):_(g(void 0,!0))})});var L=this[u],j;if(L)j=new Promise(x(L,this));else{var P=this[f].read();if(P!==null)return Promise.resolve(g(P,!1));j=new Promise(this[d])}return this[u]=j,j}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var A=this;return new Promise(function(T,L){A[f].destroy(null,function(j){if(j){L(j);return}T(g(void 0,!0))})})}),e),S),C=function(A){var T,L=Object.create(w,(T={},t(T,f,{value:A,writable:!0}),t(T,a,{value:null,writable:!0}),t(T,i,{value:null,writable:!0}),t(T,s,{value:null,writable:!0}),t(T,c,{value:A._readableState.endEmitted,writable:!0}),t(T,d,{value:function(j,P){var _=L[f].read();_?(L[u]=null,L[a]=null,L[i]=null,j(g(_,!1))):(L[a]=j,L[i]=P)},writable:!0}),T));return L[u]=null,o(A,function(j){if(j&&j.code!=="ERR_STREAM_PREMATURE_CLOSE"){var P=L[i];P!==null&&(L[u]=null,L[a]=null,L[i]=null,P(j)),L[s]=j;return}var _=L[a];_!==null&&(L[u]=null,L[a]=null,L[i]=null,_(g(void 0,!0))),L[c]=!0}),A.on("readable",v.bind(null,L)),L};return Ek=C,Ek}var qW,HW;function EBe(){return HW||(HW=1,qW=function(){throw new Error("Readable.from is not available in the browser")}),qW}var Ak,VW;function WW(){if(VW)return Ak;VW=1,Ak=I;var e;I.ReadableState=_;var t=function(E,R){return E.listeners(R).length},r=SW(),n=pf().Buffer,o=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function a(E){return n.from(E)}function i(E){return n.isBuffer(E)||E instanceof o}var s=TW,c;s&&s.debuglog?c=s.debuglog("stream"):c=function(){};var u=wBe(),d=LW(),f=RW(),g=f.getHighWaterMark,y=uu().codes,v=y.ERR_INVALID_ARG_TYPE,x=y.ERR_STREAM_PUSH_AFTER_EOF,S=y.ERR_METHOD_NOT_IMPLEMENTED,w=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,C,A,T,L=d.errorOrDestroy,j=["error","close","destroy","pause","resume"];function P(E,R,W){if(typeof E.prependListener=="function")return E.prependListener(R,W);!E._events||!E._events[R]?E.on(R,W):Array.isArray(E._events[R])?E._events[R].unshift(W):E._events[R]=[W,E._events[R]]}function _(E,R,W){e=e||du(),E=E||{},typeof W!="boolean"&&(W=R instanceof e),this.objectMode=!!E.objectMode,W&&(this.objectMode=this.objectMode||!!E.readableObjectMode),this.highWaterMark=g(this,E,"readableHighWaterMark",W),this.buffer=new u,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=E.emitClose!==!1,this.autoDestroy=!!E.autoDestroy,this.destroyed=!1,this.defaultEncoding=E.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,E.encoding&&(C||(C=BW().StringDecoder),this.decoder=new C(E.encoding),this.encoding=E.encoding)}function I(E){if(e=e||du(),!(this instanceof I))return new I(E);var R=this instanceof e;this._readableState=new _(E,this,R),this.readable=!0,E&&(typeof E.read=="function"&&(this._read=E.read),typeof E.destroy=="function"&&(this._destroy=E.destroy)),r.call(this)}Object.defineProperty(I.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(E){this._readableState&&(this._readableState.destroyed=E)}}),I.prototype.destroy=d.destroy,I.prototype._undestroy=d.undestroy,I.prototype._destroy=function(E,R){R(E)},I.prototype.push=function(E,R){var W=this._readableState,ge;return W.objectMode?ge=!0:typeof E=="string"&&(R=R||W.defaultEncoding,R!==W.encoding&&(E=n.from(E,R),R=""),ge=!0),z(this,E,R,!1,ge)},I.prototype.unshift=function(E){return z(this,E,null,!0,!1)};function z(E,R,W,ge,xe){c("readableAddChunk",R);var ce=E._readableState;if(R===null)ce.reading=!1,Y(E,ce);else{var ue;if(xe||(ue=B(ce,R)),ue)L(E,ue);else if(ce.objectMode||R&&R.length>0)if(typeof R!="string"&&!ce.objectMode&&Object.getPrototypeOf(R)!==n.prototype&&(R=a(R)),ge)ce.endEmitted?L(E,new w):q(E,ce,R,!0);else if(ce.ended)L(E,new x);else{if(ce.destroyed)return!1;ce.reading=!1,ce.decoder&&!W?(R=ce.decoder.write(R),ce.objectMode||R.length!==0?q(E,ce,R,!1):de(E,ce)):q(E,ce,R,!1)}else ge||(ce.reading=!1,de(E,ce))}return!ce.ended&&(ce.length<ce.highWaterMark||ce.length===0)}function q(E,R,W,ge){R.flowing&&R.length===0&&!R.sync?(R.awaitDrain=0,E.emit("data",W)):(R.length+=R.objectMode?1:W.length,ge?R.buffer.unshift(W):R.buffer.push(W),R.needReadable&&ie(E)),de(E,R)}function B(E,R){var W;return!i(R)&&typeof R!="string"&&R!==void 0&&!E.objectMode&&(W=new v("chunk",["string","Buffer","Uint8Array"],R)),W}I.prototype.isPaused=function(){return this._readableState.flowing===!1},I.prototype.setEncoding=function(E){C||(C=BW().StringDecoder);var R=new C(E);this._readableState.decoder=R,this._readableState.encoding=this._readableState.decoder.encoding;for(var W=this._readableState.buffer.head,ge="";W!==null;)ge+=R.write(W.data),W=W.next;return this._readableState.buffer.clear(),ge!==""&&this._readableState.buffer.push(ge),this._readableState.length=ge.length,this};var G=1073741824;function te(E){return E>=G?E=G:(E--,E|=E>>>1,E|=E>>>2,E|=E>>>4,E|=E>>>8,E|=E>>>16,E++),E}function le(E,R){return E<=0||R.length===0&&R.ended?0:R.objectMode?1:E!==E?R.flowing&&R.length?R.buffer.head.data.length:R.length:(E>R.highWaterMark&&(R.highWaterMark=te(E)),E<=R.length?E:R.ended?R.length:(R.needReadable=!0,0))}I.prototype.read=function(E){c("read",E),E=parseInt(E,10);var R=this._readableState,W=E;if(E!==0&&(R.emittedReadable=!1),E===0&&R.needReadable&&((R.highWaterMark!==0?R.length>=R.highWaterMark:R.length>0)||R.ended))return c("read: emitReadable",R.length,R.ended),R.length===0&&R.ended?F(this):ie(this),null;if(E=le(E,R),E===0&&R.ended)return R.length===0&&F(this),null;var ge=R.needReadable;c("need readable",ge),(R.length===0||R.length-E<R.highWaterMark)&&(ge=!0,c("length less than watermark",ge)),R.ended||R.reading?(ge=!1,c("reading or ended",ge)):ge&&(c("do read"),R.reading=!0,R.sync=!0,R.length===0&&(R.needReadable=!0),this._read(R.highWaterMark),R.sync=!1,R.reading||(E=le(W,R)));var xe;return E>0?xe=ne(E,R):xe=null,xe===null?(R.needReadable=R.length<=R.highWaterMark,E=0):(R.length-=E,R.awaitDrain=0),R.length===0&&(R.ended||(R.needReadable=!0),W!==E&&R.ended&&F(this)),xe!==null&&this.emit("data",xe),xe};function Y(E,R){if(c("onEofChunk"),!R.ended){if(R.decoder){var W=R.decoder.end();W&&W.length&&(R.buffer.push(W),R.length+=R.objectMode?1:W.length)}R.ended=!0,R.sync?ie(E):(R.needReadable=!1,R.emittedReadable||(R.emittedReadable=!0,re(E)))}}function ie(E){var R=E._readableState;c("emitReadable",R.needReadable,R.emittedReadable),R.needReadable=!1,R.emittedReadable||(c("emitReadable",R.flowing),R.emittedReadable=!0,process.nextTick(re,E))}function re(E){var R=E._readableState;c("emitReadable_",R.destroyed,R.length,R.ended),!R.destroyed&&(R.length||R.ended)&&(E.emit("readable"),R.emittedReadable=!1),R.needReadable=!R.flowing&&!R.ended&&R.length<=R.highWaterMark,Q(E)}function de(E,R){R.readingMore||(R.readingMore=!0,process.nextTick(X,E,R))}function X(E,R){for(;!R.reading&&!R.ended&&(R.length<R.highWaterMark||R.flowing&&R.length===0);){var W=R.length;if(c("maybeReadMore read 0"),E.read(0),W===R.length)break}R.readingMore=!1}I.prototype._read=function(E){L(this,new S("_read()"))},I.prototype.pipe=function(E,R){var W=this,ge=this._readableState;switch(ge.pipesCount){case 0:ge.pipes=E;break;case 1:ge.pipes=[ge.pipes,E];break;default:ge.pipes.push(E);break}ge.pipesCount+=1,c("pipe count=%d opts=%j",ge.pipesCount,R);var xe=(!R||R.end!==!1)&&E!==null&&E!==process.stderr,ce=xe?Ne:Fe;ge.endEmitted?process.nextTick(ce):W.once("end",ce),E.on("unpipe",ue);function ue(N,$){c("onunpipe"),N===W&&$&&$.hasUnpiped===!1&&($.hasUnpiped=!0,Je())}function Ne(){c("onend"),E.end()}var he=H(W);E.on("drain",he);var Ke=!1;function Je(){c("cleanup"),E.removeListener("close",Xe),E.removeListener("finish",ut),E.removeListener("drain",he),E.removeListener("error",He),E.removeListener("unpipe",ue),W.removeListener("end",Ne),W.removeListener("end",Fe),W.removeListener("data",Ve),Ke=!0,ge.awaitDrain&&(!E._writableState||E._writableState.needDrain)&&he()}W.on("data",Ve);function Ve(N){c("ondata");var $=E.write(N);c("dest.write",$),$===!1&&((ge.pipesCount===1&&ge.pipes===E||ge.pipesCount>1&&ke(ge.pipes,E)!==-1)&&!Ke&&(c("false write response, pause",ge.awaitDrain),ge.awaitDrain++),W.pause())}function He(N){c("onerror",N),Fe(),E.removeListener("error",He),t(E,"error")===0&&L(E,N)}P(E,"error",He);function Xe(){E.removeListener("finish",ut),Fe()}E.once("close",Xe);function ut(){c("onfinish"),E.removeListener("close",Xe),Fe()}E.once("finish",ut);function Fe(){c("unpipe"),W.unpipe(E)}return E.emit("pipe",W),ge.flowing||(c("pipe resume"),W.resume()),E};function H(E){return function(){var R=E._readableState;c("pipeOnDrain",R.awaitDrain),R.awaitDrain&&R.awaitDrain--,R.awaitDrain===0&&t(E,"data")&&(R.flowing=!0,Q(E))}}I.prototype.unpipe=function(E){var R=this._readableState,W={hasUnpiped:!1};if(R.pipesCount===0)return this;if(R.pipesCount===1)return E&&E!==R.pipes?this:(E||(E=R.pipes),R.pipes=null,R.pipesCount=0,R.flowing=!1,E&&E.emit("unpipe",this,W),this);if(!E){var ge=R.pipes,xe=R.pipesCount;R.pipes=null,R.pipesCount=0,R.flowing=!1;for(var ce=0;ce<xe;ce++)ge[ce].emit("unpipe",this,{hasUnpiped:!1});return this}var ue=ke(R.pipes,E);return ue===-1?this:(R.pipes.splice(ue,1),R.pipesCount-=1,R.pipesCount===1&&(R.pipes=R.pipes[0]),E.emit("unpipe",this,W),this)},I.prototype.on=function(E,R){var W=r.prototype.on.call(this,E,R),ge=this._readableState;return E==="data"?(ge.readableListening=this.listenerCount("readable")>0,ge.flowing!==!1&&this.resume()):E==="readable"&&!ge.endEmitted&&!ge.readableListening&&(ge.readableListening=ge.needReadable=!0,ge.flowing=!1,ge.emittedReadable=!1,c("on readable",ge.length,ge.reading),ge.length?ie(this):ge.reading||process.nextTick(K,this)),W},I.prototype.addListener=I.prototype.on,I.prototype.removeListener=function(E,R){var W=r.prototype.removeListener.call(this,E,R);return E==="readable"&&process.nextTick(ae,this),W},I.prototype.removeAllListeners=function(E){var R=r.prototype.removeAllListeners.apply(this,arguments);return(E==="readable"||E===void 0)&&process.nextTick(ae,this),R};function ae(E){var R=E._readableState;R.readableListening=E.listenerCount("readable")>0,R.resumeScheduled&&!R.paused?R.flowing=!0:E.listenerCount("data")>0&&E.resume()}function K(E){c("readable nexttick read 0"),E.read(0)}I.prototype.resume=function(){var E=this._readableState;return E.flowing||(c("resume"),E.flowing=!E.readableListening,V(this,E)),E.paused=!1,this};function V(E,R){R.resumeScheduled||(R.resumeScheduled=!0,process.nextTick(se,E,R))}function se(E,R){c("resume",R.reading),R.reading||E.read(0),R.resumeScheduled=!1,E.emit("resume"),Q(E),R.flowing&&!R.reading&&E.read(0)}I.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Q(E){var R=E._readableState;for(c("flow",R.flowing);R.flowing&&E.read()!==null;);}I.prototype.wrap=function(E){var R=this,W=this._readableState,ge=!1;E.on("end",function(){if(c("wrapped end"),W.decoder&&!W.ended){var ue=W.decoder.end();ue&&ue.length&&R.push(ue)}R.push(null)}),E.on("data",function(ue){if(c("wrapped data"),W.decoder&&(ue=W.decoder.write(ue)),!(W.objectMode&&ue==null)&&!(!W.objectMode&&(!ue||!ue.length))){var Ne=R.push(ue);Ne||(ge=!0,E.pause())}});for(var xe in E)this[xe]===void 0&&typeof E[xe]=="function"&&(this[xe]=(function(ue){return function(){return E[ue].apply(E,arguments)}})(xe));for(var ce=0;ce<j.length;ce++)E.on(j[ce],this.emit.bind(this,j[ce]));return this._read=function(ue){c("wrapped _read",ue),ge&&(ge=!1,E.resume())},this},typeof Symbol=="function"&&(I.prototype[Symbol.asyncIterator]=function(){return A===void 0&&(A=kBe()),A(this)}),Object.defineProperty(I.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(I.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(I.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(E){this._readableState&&(this._readableState.flowing=E)}}),I._fromList=ne,Object.defineProperty(I.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function ne(E,R){if(R.length===0)return null;var W;return R.objectMode?W=R.buffer.shift():!E||E>=R.length?(R.decoder?W=R.buffer.join(""):R.buffer.length===1?W=R.buffer.first():W=R.buffer.concat(R.length),R.buffer.clear()):W=R.buffer.consume(E,R.decoder),W}function F(E){var R=E._readableState;c("endReadable",R.endEmitted),R.endEmitted||(R.ended=!0,process.nextTick(be,R,E))}function be(E,R){if(c("endReadableNT",E.endEmitted,E.length),!E.endEmitted&&E.length===0&&(E.endEmitted=!0,R.readable=!1,R.emit("end"),E.autoDestroy)){var W=R._writableState;(!W||W.autoDestroy&&W.finished)&&R.destroy()}}typeof Symbol=="function"&&(I.from=function(E,R){return T===void 0&&(T=EBe()),T(I,E,R)});function ke(E,R){for(var W=0,ge=E.length;W<ge;W++)if(E[W]===R)return W;return-1}return Ak}var Tk,YW;function GW(){if(YW)return Tk;YW=1,Tk=s;var e=uu().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,r=e.ERR_MULTIPLE_CALLBACK,n=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=e.ERR_TRANSFORM_WITH_LENGTH_0,a=du();function i(d,f){var g=this._transformState;g.transforming=!1;var y=g.writecb;if(y===null)return this.emit("error",new r);g.writechunk=null,g.writecb=null,f!=null&&this.push(f),y(d);var v=this._readableState;v.reading=!1,(v.needReadable||v.length<v.highWaterMark)&&this._read(v.highWaterMark)}function s(d){if(!(this instanceof s))return new s(d);a.call(this,d),this._transformState={afterTransform:i.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,d&&(typeof d.transform=="function"&&(this._transform=d.transform),typeof d.flush=="function"&&(this._flush=d.flush)),this.on("prefinish",c)}function c(){var d=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(f,g){u(d,f,g)}):u(this,null,null)}s.prototype.push=function(d,f){return this._transformState.needTransform=!1,a.prototype.push.call(this,d,f)},s.prototype._transform=function(d,f,g){g(new t("_transform()"))},s.prototype._write=function(d,f,g){var y=this._transformState;if(y.writecb=g,y.writechunk=d,y.writeencoding=f,!y.transforming){var v=this._readableState;(y.needTransform||v.needReadable||v.length<v.highWaterMark)&&this._read(v.highWaterMark)}},s.prototype._read=function(d){var f=this._transformState;f.writechunk!==null&&!f.transforming?(f.transforming=!0,this._transform(f.writechunk,f.writeencoding,f.afterTransform)):f.needTransform=!0},s.prototype._destroy=function(d,f){a.prototype._destroy.call(this,d,function(g){f(g)})};function u(d,f,g){if(f)return d.emit("error",f);if(g!=null&&d.push(g),d._writableState.length)throw new o;if(d._transformState.transforming)throw new n;return d.push(null)}return Tk}var _k,JW;function ABe(){if(JW)return _k;JW=1,_k=t;var e=GW();function t(r){if(!(this instanceof t))return new t(r);e.call(this,r)}return t.prototype._transform=function(r,n,o){o(null,r)},_k}var Ok,KW;function TBe(){if(KW)return Ok;KW=1;var e;function t(g){var y=!1;return function(){y||(y=!0,g.apply(void 0,arguments))}}var r=uu().codes,n=r.ERR_MISSING_ARGS,o=r.ERR_STREAM_DESTROYED;function a(g){if(g)throw g}function i(g){return g.setHeader&&typeof g.abort=="function"}function s(g,y,v,x){x=t(x);var S=!1;g.on("close",function(){S=!0}),e===void 0&&(e=kk()),e(g,{readable:y,writable:v},function(C){if(C)return x(C);S=!0,x()});var w=!1;return function(C){if(!S&&!w){if(w=!0,i(g))return g.abort();if(typeof g.destroy=="function")return g.destroy();x(C||new o("pipe"))}}}function c(g){g()}function u(g,y){return g.pipe(y)}function d(g){return!g.length||typeof g[g.length-1]!="function"?a:g.pop()}function f(){for(var g=arguments.length,y=new Array(g),v=0;v<g;v++)y[v]=arguments[v];var x=d(y);if(Array.isArray(y[0])&&(y=y[0]),y.length<2)throw new n("streams");var S,w=y.map(function(C,A){var T=A<y.length-1,L=A>0;return s(C,T,L,function(j){S||(S=j),j&&w.forEach(c),!T&&(w.forEach(c),x(S))})});return y.reduce(u)}return Ok=f,Ok}var QW;function ZW(){return QW||(QW=1,(function(e,t){t=e.exports=WW(),t.Stream=t,t.Readable=t,t.Writable=$W(),t.Duplex=du(),t.Transform=GW(),t.PassThrough=ABe(),t.finished=kk(),t.pipeline=TBe()})(dk,dk.exports)),dk.exports}var XW;function eY(){if(XW)return iy;XW=1;var e=yW(),t=Fw(),r=ZW(),n=iy.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},o=iy.IncomingMessage=function(a,i,s,c){var u=this;if(r.Readable.call(u),u._mode=s,u.headers={},u.rawHeaders=[],u.trailers={},u.rawTrailers=[],u.on("end",function(){process.nextTick(function(){u.emit("close")})}),s==="fetch"){let x=function(){f.read().then(function(S){if(!u._destroyed){if(c(S.done),S.done){u.push(null);return}u.push(Buffer.from(S.value)),x()}}).catch(function(S){c(!0),u._destroyed||u.emit("error",S)})};if(u._fetchResponse=i,u.url=i.url,u.statusCode=i.status,u.statusMessage=i.statusText,i.headers.forEach(function(S,w){u.headers[w.toLowerCase()]=S,u.rawHeaders.push(w,S)}),e.writableStream){var d=new WritableStream({write:function(S){return c(!1),new Promise(function(w,C){u._destroyed?C():u.push(Buffer.from(S))?w():u._resumeFetch=w})},close:function(){c(!0),u._destroyed||u.push(null)},abort:function(S){c(!0),u._destroyed||u.emit("error",S)}});try{i.body.pipeTo(d).catch(function(S){c(!0),u._destroyed||u.emit("error",S)});return}catch{}}var f=i.body.getReader();x()}else{u._xhr=a,u._pos=0,u.url=a.responseURL,u.statusCode=a.status,u.statusMessage=a.statusText;var g=a.getAllResponseHeaders().split(/\r?\n/);if(g.forEach(function(x){var S=x.match(/^([^:]+):\s*(.*)/);if(S){var w=S[1].toLowerCase();w==="set-cookie"?(u.headers[w]===void 0&&(u.headers[w]=[]),u.headers[w].push(S[2])):u.headers[w]!==void 0?u.headers[w]+=", "+S[2]:u.headers[w]=S[2],u.rawHeaders.push(S[1],S[2])}}),u._charset="x-user-defined",!e.overrideMimeType){var y=u.rawHeaders["mime-type"];if(y){var v=y.match(/;\s*charset=([^;])(;|$)/);v&&(u._charset=v[1].toLowerCase())}u._charset||(u._charset="utf-8")}}};return t(o,r.Readable),o.prototype._read=function(){var a=this,i=a._resumeFetch;i&&(a._resumeFetch=null,i())},o.prototype._onXHRProgress=function(a){var i=this,s=i._xhr,c=null;switch(i._mode){case"text":if(c=s.responseText,c.length>i._pos){var u=c.substr(i._pos);if(i._charset==="x-user-defined"){for(var d=Buffer.alloc(u.length),f=0;f<u.length;f++)d[f]=u.charCodeAt(f)&255;i.push(d)}else i.push(u,i._charset);i._pos=c.length}break;case"arraybuffer":if(s.readyState!==n.DONE||!s.response)break;c=s.response,i.push(Buffer.from(new Uint8Array(c)));break;case"moz-chunked-arraybuffer":if(c=s.response,s.readyState!==n.LOADING||!c)break;i.push(Buffer.from(new Uint8Array(c)));break;case"ms-stream":if(c=s.response,s.readyState!==n.LOADING)break;var g=new globalThis.MSStreamReader;g.onprogress=function(){g.result.byteLength>i._pos&&(i.push(Buffer.from(new Uint8Array(g.result.slice(i._pos)))),i._pos=g.result.byteLength)},g.onload=function(){a(!0),i.push(null)},g.readAsArrayBuffer(c);break}i._xhr.readyState===n.DONE&&i._mode!=="ms-stream"&&(a(!0),i.push(null))},iy}var tY;function _Be(){if(tY)return uk.exports;tY=1;var e=yW(),t=Fw(),r=eY(),n=ZW(),o=r.IncomingMessage,a=r.readyStates;function i(d,f){return e.fetch&&f?"fetch":e.mozchunkedarraybuffer?"moz-chunked-arraybuffer":e.msstream?"ms-stream":e.arraybuffer&&d?"arraybuffer":"text"}var s=uk.exports=function(d){var f=this;n.Writable.call(f),f._opts=d,f._body=[],f._headers={},d.auth&&f.setHeader("Authorization","Basic "+Buffer.from(d.auth).toString("base64")),Object.keys(d.headers).forEach(function(v){f.setHeader(v,d.headers[v])});var g,y=!0;if(d.mode==="disable-fetch"||"requestTimeout"in d&&!e.abortController)y=!1,g=!0;else if(d.mode==="prefer-streaming")g=!1;else if(d.mode==="allow-wrong-content-type")g=!e.overrideMimeType;else if(!d.mode||d.mode==="default"||d.mode==="prefer-fast")g=!0;else throw new Error("Invalid value for opts.mode");f._mode=i(g,y),f._fetchTimer=null,f._socketTimeout=null,f._socketTimer=null,f.on("finish",function(){f._onFinish()})};t(s,n.Writable),s.prototype.setHeader=function(d,f){var g=this,y=d.toLowerCase();u.indexOf(y)===-1&&(g._headers[y]={name:d,value:f})},s.prototype.getHeader=function(d){var f=this._headers[d.toLowerCase()];return f?f.value:null},s.prototype.removeHeader=function(d){var f=this;delete f._headers[d.toLowerCase()]},s.prototype._onFinish=function(){var d=this;if(!d._destroyed){var f=d._opts;"timeout"in f&&f.timeout!==0&&d.setTimeout(f.timeout);var g=d._headers,y=null;f.method!=="GET"&&f.method!=="HEAD"&&(y=new Blob(d._body,{type:(g["content-type"]||{}).value||""}));var v=[];if(Object.keys(g).forEach(function(C){var A=g[C].name,T=g[C].value;Array.isArray(T)?T.forEach(function(L){v.push([A,L])}):v.push([A,T])}),d._mode==="fetch"){var x=null;if(e.abortController){var S=new AbortController;x=S.signal,d._fetchAbortController=S,"requestTimeout"in f&&f.requestTimeout!==0&&(d._fetchTimer=globalThis.setTimeout(function(){d.emit("requestTimeout"),d._fetchAbortController&&d._fetchAbortController.abort()},f.requestTimeout))}globalThis.fetch(d._opts.url,{method:d._opts.method,headers:v,body:y||void 0,mode:"cors",credentials:f.withCredentials?"include":"same-origin",signal:x}).then(function(C){d._fetchResponse=C,d._resetTimers(!1),d._connect()},function(C){d._resetTimers(!0),d._destroyed||d.emit("error",C)})}else{var w=d._xhr=new globalThis.XMLHttpRequest;try{w.open(d._opts.method,d._opts.url,!0)}catch(C){process.nextTick(function(){d.emit("error",C)});return}"responseType"in w&&(w.responseType=d._mode),"withCredentials"in w&&(w.withCredentials=!!f.withCredentials),d._mode==="text"&&"overrideMimeType"in w&&w.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in f&&(w.timeout=f.requestTimeout,w.ontimeout=function(){d.emit("requestTimeout")}),v.forEach(function(C){w.setRequestHeader(C[0],C[1])}),d._response=null,w.onreadystatechange=function(){switch(w.readyState){case a.LOADING:case a.DONE:d._onXHRProgress();break}},d._mode==="moz-chunked-arraybuffer"&&(w.onprogress=function(){d._onXHRProgress()}),w.onerror=function(){d._destroyed||(d._resetTimers(!0),d.emit("error",new Error("XHR error")))};try{w.send(y)}catch(C){process.nextTick(function(){d.emit("error",C)});return}}}};function c(d){try{var f=d.status;return f!==null&&f!==0}catch{return!1}}s.prototype._onXHRProgress=function(){var d=this;d._resetTimers(!1),!(!c(d._xhr)||d._destroyed)&&(d._response||d._connect(),d._response._onXHRProgress(d._resetTimers.bind(d)))},s.prototype._connect=function(){var d=this;d._destroyed||(d._response=new o(d._xhr,d._fetchResponse,d._mode,d._resetTimers.bind(d)),d._response.on("error",function(f){d.emit("error",f)}),d.emit("response",d._response))},s.prototype._write=function(d,f,g){var y=this;y._body.push(d),g()},s.prototype._resetTimers=function(d){var f=this;globalThis.clearTimeout(f._socketTimer),f._socketTimer=null,d?(globalThis.clearTimeout(f._fetchTimer),f._fetchTimer=null):f._socketTimeout&&(f._socketTimer=globalThis.setTimeout(function(){f.emit("timeout")},f._socketTimeout))},s.prototype.abort=s.prototype.destroy=function(d){var f=this;f._destroyed=!0,f._resetTimers(!0),f._response&&(f._response._destroyed=!0),f._xhr?f._xhr.abort():f._fetchAbortController&&f._fetchAbortController.abort(),d&&f.emit("error",d)},s.prototype.end=function(d,f,g){var y=this;typeof d=="function"&&(g=d,d=void 0),n.Writable.prototype.end.call(y,d,f,g)},s.prototype.setTimeout=function(d,f){var g=this;f&&g.once("timeout",f),g._socketTimeout=d,g._resetTimers(!1)},s.prototype.flushHeaders=function(){},s.prototype.setNoDelay=function(){},s.prototype.setSocketKeepAlive=function(){};var u=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"];return uk.exports}var Lk,rY;function OBe(){if(rY)return Lk;rY=1,Lk=t;var e=Object.prototype.hasOwnProperty;function t(){for(var r={},n=0;n<arguments.length;n++){var o=arguments[n];for(var a in o)e.call(o,a)&&(r[a]=o[a])}return r}return Lk}var nY,oY;function LBe(){return oY||(oY=1,nY={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}),nY}var aY;function jBe(){return aY||(aY=1,(function(e){var t=_Be(),r=eY(),n=OBe(),o=LBe(),a=c3(),i=e;i.request=function(s,c){typeof s=="string"?s=a.parse(s):s=n(s);var u=globalThis.location.protocol.search(/^https?:$/)===-1?"http:":"",d=s.protocol||u,f=s.hostname||s.host,g=s.port,y=s.path||"/";f&&f.indexOf(":")!==-1&&(f="["+f+"]"),s.url=(f?d+"//"+f:"")+(g?":"+g:"")+y,s.method=(s.method||"GET").toUpperCase(),s.headers=s.headers||{};var v=new t(s);return c&&v.on("response",c),v},i.get=function(s,c){var u=i.request(s,c);return u.end(),u},i.ClientRequest=t,i.IncomingMessage=r.IncomingMessage,i.Agent=function(){},i.Agent.defaultMaxSockets=4,i.globalAgent=new i.Agent,i.STATUS_CODES=o,i.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]})(mW)),mW}var iY,sY;function NBe(){return sY||(sY=1,iY={statusCodes:Object.assign({},{default:"Default response","1XX":"Informational",103:"Early hints","2XX":"Successful","3XX":"Redirection","4XX":"Client Error","5XX":"Server Error","7XX":"Developer Error"},jBe().STATUS_CODES)}),iY}const RBe="7.0.8",PBe={version:RBe};var jk,lY;function IBe(){if(lY)return jk;lY=1;const e=ub,t=c3(),r=eDe(),n=ub,o=sze,a=qb(),i=a.jptr,s=H3().isRef,c=Hb().clone,u=Hb().circularClone,d=Y3().recurse,f=gBe(),g=bBe(),y=dW(),v=NBe().statusCodes,x=PBe.version,S="3.0.0";let w;class C extends Error{constructor(R){super(R),this.name="S2OError"}}function A(E,R){let W=new C(E);if(W.options=R,R.promise)R.promise.reject(W);else throw W}function T(E,R,W){W.warnOnly?R[W.warnProperty||"x-s2o-warning"]=E:A(E,W)}function L(E,R,W){if(E.nullable&&W.patches++,E.discriminator&&typeof E.discriminator=="string"&&(E.discriminator={propertyName:E.discriminator}),E.items&&Array.isArray(E.items)&&(E.items.length===0?E.items={}:E.items.length===1?E.items=E.items[0]:E.items={anyOf:E.items}),E.type&&Array.isArray(E.type))if(W.patch){if(W.patches++,E.type.length===0)delete E.type;else{E.oneOf||(E.oneOf=[]);for(let ge of E.type){let xe={};if(ge==="null")E.nullable=!0;else{xe.type=ge;for(let ce of y.arrayProperties)typeof E.prop<"u"&&(xe[ce]=E[ce],delete E[ce])}xe.type&&E.oneOf.push(xe)}delete E.type,E.oneOf.length===0?delete E.oneOf:E.oneOf.length<2&&(E.type=E.oneOf[0].type,Object.keys(E.oneOf[0]).length>1&&T("Lost properties from oneOf",E,W),delete E.oneOf)}E.type&&Array.isArray(E.type)&&E.type.length===1&&(E.type=E.type[0])}else A("(Patchable) schema type must not be an array",W);E.type&&E.type==="null"&&(delete E.type,E.nullable=!0),E.type==="array"&&!E.items&&(E.items={}),E.type==="file"&&(E.type="string",E.format="binary"),typeof E.required=="boolean"&&(E.required&&E.name&&(typeof R.required>"u"&&(R.required=[]),Array.isArray(R.required)&&R.required.push(E.name)),delete E.required),E.xml&&typeof E.xml.namespace=="string"&&(E.xml.namespace||delete E.xml.namespace),typeof E.allowEmptyValue<"u"&&(W.patches++,delete E.allowEmptyValue)}function j(E,R){if(E["x-required"]&&Array.isArray(E["x-required"])&&(E.required||(E.required=[]),E.required=E.required.concat(E["x-required"]),delete E["x-required"]),E["x-anyOf"]&&(E.anyOf=E["x-anyOf"],delete E["x-anyOf"]),E["x-oneOf"]&&(E.oneOf=E["x-oneOf"],delete E["x-oneOf"]),E["x-not"]&&(E.not=E["x-not"],delete E["x-not"]),typeof E["x-nullable"]=="boolean"&&(E.nullable=E["x-nullable"],delete E["x-nullable"]),typeof E["x-discriminator"]=="object"&&typeof E["x-discriminator"].propertyName=="string"){E.discriminator=E["x-discriminator"],delete E["x-discriminator"];for(let W in E.discriminator.mapping){let ge=E.discriminator.mapping[W];ge.startsWith("#/definitions/")&&(E.discriminator.mapping[W]=ge.replace("#/definitions/","#/components/schemas/"))}}}function P(E,R){g.walkSchema(E,{},{},function(W,ge,xe){j(W),L(W,ge,R)})}function _(E){return E.indexOf("#")>=0?E=E.split("#")[1].split("/").pop():E=E.split("/").pop().split(".")[0],encodeURIComponent(y.sanitise(E))}function I(E,R,W){let ge=W.payload.options;if(s(E,R)){if(!E[R].startsWith("#/components/")){if(E[R]==="#/consumes")delete E[R],W.parent[W.pkey]=c(ge.openapi.consumes);else if(E[R]==="#/produces")delete E[R],W.parent[W.pkey]=c(ge.openapi.produces);else if(E[R].startsWith("#/definitions/")){let xe=E[R].replace("#/definitions/","").split("/");const ce=a.jpunescape(xe[0]);let ue=w.schemas[decodeURIComponent(ce)];ue?xe[0]=ue:T("Could not resolve reference "+E[R],E,ge),E[R]="#/components/schemas/"+xe.join("/")}else if(E[R].startsWith("#/parameters/"))E[R]="#/components/parameters/"+y.sanitise(E[R].replace("#/parameters/",""));else if(E[R].startsWith("#/responses/"))E[R]="#/components/responses/"+y.sanitise(E[R].replace("#/responses/",""));else if(E[R].startsWith("#")){let xe=c(a.jptr(ge.openapi,E[R]));if(xe===!1)T("direct $ref not found "+E[R],E,ge);else if(ge.refmap[E[R]])E[R]=ge.refmap[E[R]];else{let ce=E[R];ce=ce.replace("/properties/headers/",""),ce=ce.replace("/properties/responses/",""),ce=ce.replace("/properties/parameters/",""),ce=ce.replace("/properties/schemas/","");let ue="schemas",Ne=ce.lastIndexOf("/schema");if(ue=ce.indexOf("/headers/")>Ne?"headers":ce.indexOf("/responses/")>Ne?"responses":ce.indexOf("/example")>Ne?"examples":ce.indexOf("/x-")>Ne?"extensions":ce.indexOf("/parameters/")>Ne?"parameters":"schemas",ue==="schemas"&&P(xe,ge),ue!=="responses"&&ue!=="extensions"){let he=ue.substr(0,ue.length-1);he==="parameter"&&xe.name&&xe.name===y.sanitise(xe.name)&&(he=encodeURIComponent(xe.name));let Ke=1;for(E["x-miro"]&&(he=_(E["x-miro"]),Ke="");a.jptr(ge.openapi,"#/components/"+ue+"/"+he+Ke);)Ke=Ke===""?2:++Ke;let Je="#/components/"+ue+"/"+he+Ke,Ve="";ue==="examples"&&(xe={value:xe},Ve="/value"),a.jptr(ge.openapi,Je,xe),ge.refmap[E[R]]=Je+Ve,E[R]=Je+Ve}}}}if(delete E["x-miro"],Object.keys(E).length>1){const xe=E[R],ce=W.path.indexOf("/schema")>=0;ge.refSiblings==="preserve"||(ce&&ge.refSiblings==="allOf"?(delete E.$ref,W.parent[W.pkey]={allOf:[{$ref:xe},E]}):W.parent[W.pkey]={$ref:xe})}}if(R==="x-ms-odata"&&typeof E[R]=="string"&&E[R].startsWith("#/")){let xe=E[R].replace("#/definitions/","").replace("#/components/schemas/","").split("/"),ce=w.schemas[decodeURIComponent(xe[0])];ce?xe[0]=ce:T("Could not resolve reference "+E[R],E,ge),E[R]="#/components/schemas/"+xe.join("/")}}function z(E,R){for(let W in R.refmap)a.jptr(E,W,{$ref:R.refmap[W]})}function q(E){for(let R in E)for(let W in E[R]){let ge=y.sanitise(W);W!==ge&&(E[R][ge]=E[R][W],delete E[R][W])}}function B(E,R){if(E.type==="basic"&&(E.type="http",E.scheme="basic"),E.type==="oauth2"){let W={},ge=E.flow;E.flow==="application"&&(ge="clientCredentials"),E.flow==="accessCode"&&(ge="authorizationCode"),typeof E.authorizationUrl<"u"&&(W.authorizationUrl=E.authorizationUrl.split("?")[0].trim()||"/"),typeof E.tokenUrl=="string"&&(W.tokenUrl=E.tokenUrl.split("?")[0].trim()||"/"),W.scopes=E.scopes||{},E.flows={},E.flows[ge]=W,delete E.flow,delete E.authorizationUrl,delete E.tokenUrl,delete E.scopes,typeof E.name<"u"&&(R.patch?(R.patches++,delete E.name):A("(Patchable) oauth2 securitySchemes should not have name property",R))}}function G(E){return E&&!E["x-s2o-delete"]}function te(E,R){if(E.$ref)E.$ref=E.$ref.replace("#/responses/","#/components/responses/");else{E.type&&!E.schema&&(E.schema={}),E.type&&(E.schema.type=E.type),E.items&&E.items.type!=="array"&&(E.items.collectionFormat!==E.collectionFormat&&T("Nested collectionFormats are not supported",E,R),delete E.items.collectionFormat),E.type==="array"?(E.collectionFormat==="ssv"?T("collectionFormat:ssv is no longer supported for headers",E,R):E.collectionFormat==="pipes"?T("collectionFormat:pipes is no longer supported for headers",E,R):E.collectionFormat==="multi"?E.explode=!0:E.collectionFormat==="tsv"?(T("collectionFormat:tsv is no longer supported",E,R),E["x-collectionFormat"]="tsv"):E.style="simple",delete E.collectionFormat):E.collectionFormat&&(R.patch?(R.patches++,delete E.collectionFormat):A("(Patchable) collectionFormat is only applicable to header.type array",R)),delete E.type;for(let W of y.parameterTypeProperties)typeof E[W]<"u"&&(E.schema[W]=E[W],delete E[W]);for(let W of y.arrayProperties)typeof E[W]<"u"&&(E.schema[W]=E[W],delete E[W])}}function le(E,R){if(E.$ref.indexOf("#/parameters/")>=0){let W=E.$ref.split("#/parameters/");E.$ref=W[0]+"#/components/parameters/"+y.sanitise(W[1])}E.$ref.indexOf("#/definitions/")>=0&&T("Definition used as parameter",E,R)}function Y(E,R){let W={};for(let ge of Object.keys(E))W[ge]=E[ge],ge==="parameters"&&(W.requestBody={},R.rbname&&(W[R.rbname]=""));return W.requestBody={},W}function ie(E,R,W,ge,xe,ce,ue){let Ne={},he=!0,Ke;if(R&&R.consumes&&typeof R.consumes=="string")if(ue.patch)ue.patches++,R.consumes=[R.consumes];else return A("(Patchable) operation.consumes must be an array",ue);Array.isArray(ce.consumes)||delete ce.consumes;let Je=((R?R.consumes:null)||ce.consumes||[]).filter(y.uniqueOnly);if(E&&E.$ref&&typeof E.$ref=="string"){le(E,ue);let Ve=decodeURIComponent(E.$ref.replace("#/components/parameters/","")),He=!1,Xe=ce.components.parameters[Ve];if((!Xe||Xe["x-s2o-delete"])&&E.$ref.startsWith("#/")&&(E["x-s2o-delete"]=!0,He=!0),He){let ut=E.$ref,Fe=i(ce,E.$ref);!Fe&&ut.startsWith("#/")?T("Could not resolve reference "+ut,E,ue):Fe&&(E=Fe)}}if(E&&(E.name||E.in)){typeof E["x-deprecated"]=="boolean"&&(E.deprecated=E["x-deprecated"],delete E["x-deprecated"]),typeof E["x-example"]<"u"&&(E.example=E["x-example"],delete E["x-example"]),E.in!=="body"&&!E.type&&(ue.patch?(ue.patches++,E.type="string"):A("(Patchable) parameter.type is mandatory for non-body parameters",ue)),E.type&&typeof E.type=="object"&&E.type.$ref&&(E.type=i(ce,E.type.$ref)),E.type==="file"&&(E["x-s2o-originalType"]=E.type,Ke=E.type),E.description&&typeof E.description=="object"&&E.description.$ref&&(E.description=i(ce,E.description.$ref)),E.description===null&&delete E.description;let Ve=E.collectionFormat;if(E.type==="array"&&!Ve&&(Ve="csv"),Ve&&(E.type!=="array"&&(ue.patch?(ue.patches++,delete E.collectionFormat):A("(Patchable) collectionFormat is only applicable to param.type array",ue)),Ve==="csv"&&(E.in==="query"||E.in==="cookie")&&(E.style="form",E.explode=!1),Ve==="csv"&&(E.in==="path"||E.in==="header")&&(E.style="simple"),Ve==="ssv"&&(E.in==="query"?E.style="spaceDelimited":T("collectionFormat:ssv is no longer supported except for in:query parameters",E,ue)),Ve==="pipes"&&(E.in==="query"?E.style="pipeDelimited":T("collectionFormat:pipes is no longer supported except for in:query parameters",E,ue)),Ve==="multi"&&(E.explode=!0),Ve==="tsv"&&(T("collectionFormat:tsv is no longer supported",E,ue),E["x-collectionFormat"]="tsv"),delete E.collectionFormat),E.type&&E.type!=="body"&&E.in!=="formData")if(E.items&&E.schema)T("parameter has array,items and schema",E,ue);else{E.schema&&ue.patches++,(!E.schema||typeof E.schema!="object")&&(E.schema={}),E.schema.type=E.type,E.items&&(E.schema.items=E.items,delete E.items,d(E.schema.items,null,function(He,Xe,ut){Xe==="collectionFormat"&&typeof He[Xe]=="string"&&(Ve&&He[Xe]!==Ve&&T("Nested collectionFormats are not supported",E,ue),delete He[Xe])}));for(let He of y.parameterTypeProperties)typeof E[He]<"u"&&(E.schema[He]=E[He]),delete E[He]}E.schema&&P(E.schema,ue),E["x-ms-skip-url-encoding"]&&E.in==="query"&&(E.allowReserved=!0,delete E["x-ms-skip-url-encoding"])}if(E&&E.in==="formData"){he=!1,Ne.content={};let Ve="application/x-www-form-urlencoded";if(Je.length&&Je.indexOf("multipart/form-data")>=0&&(Ve="multipart/form-data"),Ne.content[Ve]={},E.schema)Ne.content[Ve].schema=E.schema,E.schema.$ref&&(Ne["x-s2o-name"]=decodeURIComponent(E.schema.$ref.replace("#/components/schemas/","")));else{Ne.content[Ve].schema={},Ne.content[Ve].schema.type="object",Ne.content[Ve].schema.properties={},Ne.content[Ve].schema.properties[E.name]={};let He=Ne.content[Ve].schema,Xe=Ne.content[Ve].schema.properties[E.name];E.description&&(Xe.description=E.description),E.example&&(Xe.example=E.example),E.type&&(Xe.type=E.type);for(let ut of y.parameterTypeProperties)typeof E[ut]<"u"&&(Xe[ut]=E[ut]);E.required===!0&&(He.required||(He.required=[]),He.required.push(E.name),Ne.required=!0),typeof E.default<"u"&&(Xe.default=E.default),Xe.properties&&(Xe.properties=E.properties),E.allOf&&(Xe.allOf=E.allOf),E.type==="array"&&E.items&&(Xe.items=E.items,Xe.items.collectionFormat&&delete Xe.items.collectionFormat),(Ke==="file"||E["x-s2o-originalType"]==="file")&&(Xe.type="string",Xe.format="binary"),re(E,Xe)}}else E&&E.type==="file"&&(E.required&&(Ne.required=E.required),Ne.content={},Ne.content["application/octet-stream"]={},Ne.content["application/octet-stream"].schema={},Ne.content["application/octet-stream"].schema.type="string",Ne.content["application/octet-stream"].schema.format="binary",re(E,Ne));if(E&&E.in==="body"){Ne.content={},E.name&&(Ne["x-s2o-name"]=(R&&R.operationId?y.sanitiseAll(R.operationId):"")+("_"+E.name).toCamelCase()),E.description&&(Ne.description=E.description),E.required&&(Ne.required=E.required),R&&ue.rbname&&E.name&&(R[ue.rbname]=E.name),E.schema&&E.schema.$ref?Ne["x-s2o-name"]=decodeURIComponent(E.schema.$ref.replace("#/components/schemas/","")):E.schema&&E.schema.type==="array"&&E.schema.items&&E.schema.items.$ref&&(Ne["x-s2o-name"]=decodeURIComponent(E.schema.items.$ref.replace("#/components/schemas/",""))+"Array"),Je.length||Je.push("application/json");for(let Ve of Je)Ne.content[Ve]={},Ne.content[Ve].schema=c(E.schema||{}),P(Ne.content[Ve].schema,ue);re(E,Ne)}if(Object.keys(Ne).length>0&&(E["x-s2o-delete"]=!0,R))if(R.requestBody&&he){R.requestBody["x-s2o-overloaded"]=!0;let Ve=R.operationId||xe;T("Operation "+Ve+" has multiple requestBodies",R,ue)}else R.requestBody||(R=W[ge]=Y(R,ue)),R.requestBody.content&&R.requestBody.content["multipart/form-data"]&&R.requestBody.content["multipart/form-data"].schema&&R.requestBody.content["multipart/form-data"].schema.properties&&Ne.content["multipart/form-data"]&&Ne.content["multipart/form-data"].schema&&Ne.content["multipart/form-data"].schema.properties?(R.requestBody.content["multipart/form-data"].schema.properties=Object.assign(R.requestBody.content["multipart/form-data"].schema.properties,Ne.content["multipart/form-data"].schema.properties),R.requestBody.content["multipart/form-data"].schema.required=(R.requestBody.content["multipart/form-data"].schema.required||[]).concat(Ne.content["multipart/form-data"].schema.required||[]),R.requestBody.content["multipart/form-data"].schema.required.length||delete R.requestBody.content["multipart/form-data"].schema.required):R.requestBody.content&&R.requestBody.content["application/x-www-form-urlencoded"]&&R.requestBody.content["application/x-www-form-urlencoded"].schema&&R.requestBody.content["application/x-www-form-urlencoded"].schema.properties&&Ne.content["application/x-www-form-urlencoded"]&&Ne.content["application/x-www-form-urlencoded"].schema&&Ne.content["application/x-www-form-urlencoded"].schema.properties?(R.requestBody.content["application/x-www-form-urlencoded"].schema.properties=Object.assign(R.requestBody.content["application/x-www-form-urlencoded"].schema.properties,Ne.content["application/x-www-form-urlencoded"].schema.properties),R.requestBody.content["application/x-www-form-urlencoded"].schema.required=(R.requestBody.content["application/x-www-form-urlencoded"].schema.required||[]).concat(Ne.content["application/x-www-form-urlencoded"].schema.required||[]),R.requestBody.content["application/x-www-form-urlencoded"].schema.required.length||delete R.requestBody.content["application/x-www-form-urlencoded"].schema.required):(R.requestBody=Object.assign(R.requestBody,Ne),R.requestBody["x-s2o-name"]||(R.requestBody.schema&&R.requestBody.schema.$ref?R.requestBody["x-s2o-name"]=decodeURIComponent(R.requestBody.schema.$ref.replace("#/components/schemas/","")).split("/").join(""):R.operationId&&(R.requestBody["x-s2o-name"]=y.sanitiseAll(R.operationId))));if(E&&!E["x-s2o-delete"]){delete E.type;for(let Ve of y.parameterTypeProperties)delete E[Ve];E.in==="path"&&(typeof E.required>"u"||E.required!==!0)&&(ue.patch?(ue.patches++,E.required=!0):A("(Patchable) path parameters must be required:true ["+E.name+" in "+xe+"]",ue))}return R}function re(E,R){for(let W in E)W.startsWith("x-")&&!W.startsWith("x-s2o")&&(R[W]=E[W])}function de(E,R,W,ge,xe){if(!E)return!1;if(E.$ref&&typeof E.$ref=="string")E.$ref.indexOf("#/definitions/")>=0?T("definition used as response: "+E.$ref,E,xe):E.$ref.startsWith("#/responses/")&&(E.$ref="#/components/responses/"+y.sanitise(decodeURIComponent(E.$ref.replace("#/responses/",""))));else{if((typeof E.description>"u"||E.description===null||E.description===""&&xe.patch)&&(xe.patch?typeof E=="object"&&!Array.isArray(E)&&(xe.patches++,E.description=v[E]||""):A("(Patchable) response.description is mandatory",xe)),typeof E.schema<"u"){if(P(E.schema,xe),E.schema.$ref&&typeof E.schema.$ref=="string"&&E.schema.$ref.startsWith("#/responses/")&&(E.schema.$ref="#/components/responses/"+y.sanitise(decodeURIComponent(E.schema.$ref.replace("#/responses/","")))),W&&W.produces&&typeof W.produces=="string")if(xe.patch)xe.patches++,W.produces=[W.produces];else return A("(Patchable) operation.produces must be an array",xe);ge.produces&&!Array.isArray(ge.produces)&&delete ge.produces;let ce=((W?W.produces:null)||ge.produces||[]).filter(y.uniqueOnly);ce.length||ce.push("*/*"),E.content={};for(let ue of ce){if(E.content[ue]={},E.content[ue].schema=c(E.schema),E.examples&&E.examples[ue]){let Ne={};Ne.value=E.examples[ue],E.content[ue].examples={},E.content[ue].examples.response=Ne,delete E.examples[ue]}E.content[ue].schema.type==="file"&&(E.content[ue].schema={type:"string",format:"binary"})}delete E.schema}for(let ce in E.examples)E.content||(E.content={}),E.content[ce]||(E.content[ce]={}),E.content[ce].examples={},E.content[ce].examples.response={},E.content[ce].examples.response.value=E.examples[ce];if(delete E.examples,E.headers)for(let ce in E.headers)ce.toLowerCase()==="status code"?xe.patch?(xe.patches++,delete E.headers[ce]):A('(Patchable) "Status Code" is not a valid header',xe):te(E.headers[ce],xe)}}function X(E,R,W,ge,xe){for(let ce in E){let ue=E[ce];ue&&ue["x-trace"]&&typeof ue["x-trace"]=="object"&&(ue.trace=ue["x-trace"],delete ue["x-trace"]),ue&&ue["x-summary"]&&typeof ue["x-summary"]=="string"&&(ue.summary=ue["x-summary"],delete ue["x-summary"]),ue&&ue["x-description"]&&typeof ue["x-description"]=="string"&&(ue.description=ue["x-description"],delete ue["x-description"]),ue&&ue["x-servers"]&&Array.isArray(ue["x-servers"])&&(ue.servers=ue["x-servers"],delete ue["x-servers"]);for(let Ne in ue)if(y.httpMethods.indexOf(Ne)>=0||Ne==="x-amazon-apigateway-any-method"){let he=ue[Ne];if(he&&he.parameters&&Array.isArray(he.parameters)){if(ue.parameters)for(let Ke of ue.parameters)typeof Ke.$ref=="string"&&(le(Ke,W),Ke=i(xe,Ke.$ref)),!he.parameters.find(function(Je,Ve,He){return Je.name===Ke.name&&Je.in===Ke.in})&&(Ke.in==="formData"||Ke.in==="body"||Ke.type==="file")&&(he=ie(Ke,he,ue,Ne,ce,xe,W),W.rbname&&he[W.rbname]===""&&delete he[W.rbname]);for(let Ke of he.parameters)he=ie(Ke,he,ue,Ne,Ne+":"+ce,xe,W);W.rbname&&he[W.rbname]===""&&delete he[W.rbname],W.debug||he.parameters&&(he.parameters=he.parameters.filter(G))}if(he&&he.security&&q(he.security),typeof he=="object"){if(!he.responses){let Ke={};Ke.description="Default response",he.responses={default:Ke}}for(let Ke in he.responses){let Je=he.responses[Ke];de(Je,Ke,he,xe,W)}}if(he&&he["x-servers"]&&Array.isArray(he["x-servers"]))he.servers=he["x-servers"],delete he["x-servers"];else if(he&&he.schemes&&he.schemes.length){for(let Ke of he.schemes)if((!xe.schemes||xe.schemes.indexOf(Ke)<0)&&(he.servers||(he.servers=[]),Array.isArray(xe.servers)))for(let Je of xe.servers){let Ve=c(Je),He=t.parse(Ve.url);He.protocol=Ke,Ve.url=He.format(),he.servers.push(Ve)}}if(W.debug&&(he["x-s2o-consumes"]=he.consumes||[],he["x-s2o-produces"]=he.produces||[]),he){if(delete he.consumes,delete he.produces,delete he.schemes,he["x-ms-examples"]){for(let Ke in he["x-ms-examples"]){let Je=he["x-ms-examples"][Ke],Ve=y.sanitiseAll(Ke);if(Je.parameters)for(let He in Je.parameters){let Xe=Je.parameters[He];for(let ut of(he.parameters||[]).concat(ue.parameters||[]))ut.$ref&&(ut=a.jptr(xe,ut.$ref)),ut.name===He&&!ut.example&&(ut.examples||(ut.examples={}),ut.examples[Ke]={value:Xe})}if(Je.responses)for(let He in Je.responses){if(Je.responses[He].headers)for(let Xe in Je.responses[He].headers){let ut=Je.responses[He].headers[Xe];for(let Fe in he.responses[He].headers)if(Fe===Xe){let N=he.responses[He].headers[Fe];N.example=ut}}if(Je.responses[He].body&&(xe.components.examples[Ve]={value:c(Je.responses[He].body)},he.responses[He]&&he.responses[He].content))for(let Xe in he.responses[He].content){let ut=he.responses[He].content[Xe];ut.examples||(ut.examples={}),ut.examples[Ke]={$ref:"#/components/examples/"+Ve}}}}delete he["x-ms-examples"]}if(he.parameters&&he.parameters.length===0&&delete he.parameters,he.requestBody){let Ke=he.operationId?y.sanitiseAll(he.operationId):y.sanitiseAll(Ne+ce).toCamelCase(),Je=y.sanitise(he.requestBody["x-s2o-name"]||Ke||"");delete he.requestBody["x-s2o-name"];let Ve=JSON.stringify(he.requestBody),He=y.hash(Ve);if(!ge[He]){let ut={};ut.name=Je,ut.body=he.requestBody,ut.refs=[],ge[He]=ut}let Xe="#/"+R+"/"+encodeURIComponent(a.jpescape(ce))+"/"+Ne+"/requestBody";ge[He].refs.push(Xe)}}}if(ue&&ue.parameters){for(let Ne in ue.parameters){let he=ue.parameters[Ne];ie(he,null,ue,null,ce,xe,W)}!W.debug&&Array.isArray(ue.parameters)&&(ue.parameters=ue.parameters.filter(G))}}}function H(E,R){let W={};w={schemas:{}},E.security&&q(E.security);for(let xe in E.components.securitySchemes){let ce=y.sanitise(xe);xe!==ce&&(E.components.securitySchemes[ce]&&A("Duplicate sanitised securityScheme name "+ce,R),E.components.securitySchemes[ce]=E.components.securitySchemes[xe],delete E.components.securitySchemes[xe]),B(E.components.securitySchemes[ce],R)}for(let xe in E.components.schemas){let ce=y.sanitiseAll(xe),ue="";if(xe!==ce){for(;E.components.schemas[ce+ue];)ue=ue?++ue:2;E.components.schemas[ce+ue]=E.components.schemas[xe],delete E.components.schemas[xe]}w.schemas[xe]=ce+ue,P(E.components.schemas[ce+ue],R)}R.refmap={},d(E,{payload:{options:R}},I),z(E,R);for(let xe in E.components.parameters){let ce=y.sanitise(xe);xe!==ce&&(E.components.parameters[ce]&&A("Duplicate sanitised parameter name "+ce,R),E.components.parameters[ce]=E.components.parameters[xe],delete E.components.parameters[xe]);let ue=E.components.parameters[ce];ie(ue,null,null,null,ce,E,R)}for(let xe in E.components.responses){let ce=y.sanitise(xe);xe!==ce&&(E.components.responses[ce]&&A("Duplicate sanitised response name "+ce,R),E.components.responses[ce]=E.components.responses[xe],delete E.components.responses[xe]);let ue=E.components.responses[ce];if(de(ue,ce,null,E,R),ue.headers)for(let Ne in ue.headers)Ne.toLowerCase()==="status code"?R.patch?(R.patches++,delete ue.headers[Ne]):A('(Patchable) "Status Code" is not a valid header',R):te(ue.headers[Ne],R)}for(let xe in E.components.requestBodies){let ce=E.components.requestBodies[xe],ue=JSON.stringify(ce),Ne=y.hash(ue),he={};he.name=xe,he.body=ce,he.refs=[],W[Ne]=he}if(X(E.paths,"paths",R,W,E),E["x-ms-paths"]&&X(E["x-ms-paths"],"x-ms-paths",R,W,E),!R.debug)for(let xe in E.components.parameters)E.components.parameters[xe]["x-s2o-delete"]&&delete E.components.parameters[xe];R.debug&&(E["x-s2o-consumes"]=E.consumes||[],E["x-s2o-produces"]=E.produces||[]),delete E.consumes,delete E.produces,delete E.schemes;let ge=[];if(E.components.requestBodies={},!R.resolveInternal){let xe=1;for(let ce in W){let ue=W[ce];if(ue.refs.length>1){let Ne="";for(ue.name||(ue.name="requestBody",Ne=xe++);ge.indexOf(ue.name+Ne)>=0;)Ne=Ne?++Ne:2;ue.name=ue.name+Ne,ge.push(ue.name),E.components.requestBodies[ue.name]=c(ue.body);for(let he in ue.refs){let Ke={};Ke.$ref="#/components/requestBodies/"+ue.name,a.jptr(E,ue.refs[he],Ke)}}}}return E.components.responses&&Object.keys(E.components.responses).length===0&&delete E.components.responses,E.components.parameters&&Object.keys(E.components.parameters).length===0&&delete E.components.parameters,E.components.examples&&Object.keys(E.components.examples).length===0&&delete E.components.examples,E.components.requestBodies&&Object.keys(E.components.requestBodies).length===0&&delete E.components.requestBodies,E.components.securitySchemes&&Object.keys(E.components.securitySchemes).length===0&&delete E.components.securitySchemes,E.components.headers&&Object.keys(E.components.headers).length===0&&delete E.components.headers,E.components.schemas&&Object.keys(E.components.schemas).length===0&&delete E.components.schemas,E.components&&Object.keys(E.components).length===0&&delete E.components,E}function ae(E){return!E||!E.url||typeof E.url!="string"||(E.url=E.url.split("{{").join("{"),E.url=E.url.split("}}").join("}"),E.url.replace(/\{(.+?)\}/g,function(R,W){E.variables||(E.variables={}),E.variables[W]={default:"unknown"}})),E}function K(E,R,W){if(typeof E.info>"u"||E.info===null)if(R.patch)R.patches++,E.info={version:"",title:""};else return W(new C("(Patchable) info object is mandatory"));if(typeof E.info!="object"||Array.isArray(E.info))return W(new C("info must be an object"));if(typeof E.info.title>"u"||E.info.title===null)if(R.patch)R.patches++,E.info.title="";else return W(new C("(Patchable) info.title cannot be null"));if(typeof E.info.version>"u"||E.info.version===null)if(R.patch)R.patches++,E.info.version="";else return W(new C("(Patchable) info.version cannot be null"));if(typeof E.info.version!="string")if(R.patch)R.patches++,E.info.version=E.info.version.toString();else return W(new C("(Patchable) info.version must be a string"));if(typeof E.info.logo<"u")if(R.patch)R.patches++,E.info["x-logo"]=E.info.logo,delete E.info.logo;else return W(new C("(Patchable) info should not have logo property"));if(typeof E.info.termsOfService<"u"){if(E.info.termsOfService===null)if(R.patch)R.patches++,E.info.termsOfService="";else return W(new C("(Patchable) info.termsOfService cannot be null"));try{new URL(E.info.termsOfService)}catch{if(R.patch)R.patches++,delete E.info.termsOfService;else return W(new C("(Patchable) info.termsOfService must be a URL"))}}}function V(E,R,W){if(typeof E.paths>"u")if(R.patch)R.patches++,E.paths={};else return W(new C("(Patchable) paths object is mandatory"))}function se(E,R){const W=new WeakSet;d(E,{identityDetection:!0},function(ge,xe,ce){typeof ge[xe]=="object"&&ge[xe]!==null&&(W.has(ge[xe])?R.anchors?ge[xe]=c(ge[xe]):A("YAML anchor or merge key at "+ce.path,R):W.add(ge[xe]))})}function Q(E,R,W){return r(W,new Promise(function(ge,xe){if(E||(E={}),R.original=E,R.text||(R.text=o.stringify(E)),R.externals=[],R.externalRefs={},R.rewriteRefs=!0,R.preserveMiro=!0,R.promise={},R.promise.resolve=ge,R.promise.reject=xe,R.patches=0,R.cache||(R.cache={}),R.source&&(R.cache[R.source]=R.original),se(E,R),E.openapi&&typeof E.openapi=="string"&&E.openapi.startsWith("3.")){R.openapi=u(E),K(R.openapi,R,xe),V(R.openapi,R,xe),f.optionalResolve(R).then(function(){return R.direct?ge(R.openapi):ge(R)}).catch(function(ue){console.warn(ue),xe(ue)});return}if(!E.swagger||E.swagger!="2.0")return xe(new C("Unsupported swagger/OpenAPI version: "+(E.openapi?E.openapi:E.swagger)));let ce=R.openapi={};if(ce.openapi=typeof R.targetVersion=="string"&&R.targetVersion.startsWith("3.")?R.targetVersion:S,R.origin){ce["x-origin"]||(ce["x-origin"]=[]);let ue={};ue.url=R.source||R.origin,ue.format="swagger",ue.version=E.swagger,ue.converter={},ue.converter.url="https://github.com/mermade/oas-kit",ue.converter.version=x,ce["x-origin"].push(ue)}if(ce=Object.assign(ce,u(E)),delete ce.swagger,d(ce,{},function(ue,Ne,he){ue[Ne]===null&&!Ne.startsWith("x-")&&Ne!=="default"&&he.path.indexOf("/example")<0&&delete ue[Ne]}),E.host)for(let ue of Array.isArray(E.schemes)?E.schemes:[""]){let Ne={},he=(E.basePath||"").replace(/\/$/,"");Ne.url=(ue?ue+":":"")+"//"+E.host+he,ae(Ne),ce.servers||(ce.servers=[]),ce.servers.push(Ne)}else if(E.basePath){let ue={};ue.url=E.basePath,ae(ue),ce.servers||(ce.servers=[]),ce.servers.push(ue)}if(delete ce.host,delete ce.basePath,ce["x-servers"]&&Array.isArray(ce["x-servers"])&&(ce.servers=ce["x-servers"],delete ce["x-servers"]),E["x-ms-parameterized-host"]){let ue=E["x-ms-parameterized-host"],Ne={};Ne.url=ue.hostTemplate+(E.basePath?E.basePath:""),Ne.variables={};const he=Ne.url.match(/\{\w+\}/g);for(let Ke in ue.parameters){let Je=ue.parameters[Ke];Je.$ref&&(Je=c(i(ce,Je.$ref))),Ke.startsWith("x-")||(delete Je.required,delete Je.type,delete Je.in,typeof Je.default>"u"&&(Je.enum?Je.default=Je.enum[0]:Je.default="none"),Je.name||(Je.name=he[Ke].replace("{","").replace("}","")),Ne.variables[Je.name]=Je,delete Je.name)}ce.servers||(ce.servers=[]),ue.useSchemePrefix===!1?ce.servers.push(Ne):E.schemes.forEach(Ke=>{ce.servers.push(Object.assign({},Ne,{url:Ke+"://"+Ne.url}))}),delete ce["x-ms-parameterized-host"]}K(ce,R,xe),V(ce,R,xe),typeof ce.consumes=="string"&&(ce.consumes=[ce.consumes]),typeof ce.produces=="string"&&(ce.produces=[ce.produces]),ce.components={},ce["x-callbacks"]&&(ce.components.callbacks=ce["x-callbacks"],delete ce["x-callbacks"]),ce.components.examples={},ce.components.headers={},ce["x-links"]&&(ce.components.links=ce["x-links"],delete ce["x-links"]),ce.components.parameters=ce.parameters||{},ce.components.responses=ce.responses||{},ce.components.requestBodies={},ce.components.securitySchemes=ce.securityDefinitions||{},ce.components.schemas=ce.definitions||{},delete ce.definitions,delete ce.responses,delete ce.parameters,delete ce.securityDefinitions,f.optionalResolve(R).then(function(){H(R.openapi,R),R.direct?ge(R.openapi):ge(R)}).catch(function(ue){console.warn(ue),xe(ue)})}))}function ne(E,R,W){return r(W,new Promise(function(ge,xe){let ce=null,ue=null;try{ce=JSON.parse(E),R.text=JSON.stringify(ce,null,2)}catch(Ne){ue=Ne;try{ce=o.parse(E,{schema:"core",prettyErrors:!0}),R.sourceYaml=!0,R.text=E}catch(he){ue=he}}ce?Q(ce,R).then(Ne=>ge(Ne)).catch(Ne=>xe(Ne)):xe(new C(ue?ue.message:"Could not parse string"))}))}function F(E,R,W){return r(W,new Promise(function(ge,xe){R.origin=!0,R.source||(R.source=E),R.verbose&&console.warn("GET "+E),R.fetch||(R.fetch=n);const ce=Object.assign({},R.fetchOptions,{agent:R.agent});R.fetch(E,ce).then(function(ue){if(ue.status!==200)throw new C(`Received status code ${ue.status}: ${E}`);return ue.text()}).then(function(ue){ne(ue,R).then(Ne=>ge(Ne)).catch(Ne=>xe(Ne))}).catch(function(ue){xe(ue)})}))}function be(E,R,W){return r(W,new Promise(function(ge,xe){e.readFile(E,R.encoding||"utf8",function(ce,ue){ce?xe(ce):(R.sourceFile=E,ne(ue,R).then(Ne=>ge(Ne)).catch(Ne=>xe(Ne)))})}))}function ke(E,R,W){return r(W,new Promise(function(ge,xe){let ce="";E.on("data",function(ue){ce+=ue}).on("end",function(){ne(ce,R).then(ue=>ge(ue)).catch(ue=>xe(ue))})}))}return jk={S2OError:C,targetVersion:S,convert:Q,convertObj:Q,convertUrl:F,convertStr:ne,convertFile:be,convertStream:ke},jk}var $Be=IBe();const MBe=jn($Be);function DBe(e){return e.paths||(e.paths={}),new Promise((t,r)=>MBe.convertObj(e,{patch:!0,warnOnly:!0,text:"{}",anchors:!0},(n,o)=>{if(n)return r(n);t(o?.openapi)}))}async function zBe(){try{return(await Qq())?.resolvedConfig.openapi||{}}catch{return{}}}async function BBe(e){const t=await Qq(),r={config:t,base:$a?window.location.origin:typeof globalThis.process<"u"?globalThis.process.cwd():""};$a&&(t.resolve.http.customFetch=globalThis.fetch),typeof e=="object"&&e!==null?r.doc=UBe(e):r.ref=e;const{bundle:{parsed:n}}=await VMe(r);return n.swagger!==void 0?DBe(n):n}function UBe(e){return{source:{absoluteRef:""},parsed:e}}async function FBe(e,t,r){let n;if(r?.skipBundle){if(!e)throw new Error('spec must be specified when using "skipBundleAndConvert"');n=e}else n=await BBe(e||t);try{M4e(n)}catch{}return n}const qBe=({options:e,definitionUrl:t,definition:r,activeSampleLanguage:n,children:o})=>{const[a,i]=M.useState(),[s,c]=M.useState(!0),[u,d]=M.useState(null),[f,g]=M.useState(e||{});M.useEffect(()=>{async function v(){c(!0);try{const x=await zBe();g({...e,...x}),d(await FBe(r,t,e))}catch(x){i(x.message)}}v()},[r,t,e]);const y=M.useMemo(()=>{if(u)return{definition:u,options:f,definitionUrl:t,activeSampleLanguage:n}},D4e([u,t,f]));return M.useEffect(()=>{y&&c(!1)},[y]),a||!y?null:s?Eo(e?.hideLoading,!1)?null:m.jsx(iOe,{color:"--loading-spinner-color"}):M.isValidElement(o)?M.cloneElement(o,{store:y}):null};function HBe({definition:e,definitionUrl:t,options:r={},activeItemId:n,activeSampleLanguage:o,activeDeepLink:a,router:i}){return m.jsx(qBe,{definition:e,definitionUrl:t,options:r,activeItemId:n,activeSampleLanguage:o,activeDeepLink:a,children:m.jsx(iF,{withCommonStyles:!0,router:i||"hash"})})}function VBe(e){const t={},r=e.attributes;for(let n=0;n<r.length;n++){const o=r[n];t[o.name]=o.value}return t}function WBe(e){const t=VBe(e),r={};for(const n in t){const o=n.replace(/-(.)/g,(a,i)=>i.toUpperCase());r[o]=t[n]}return r}function YBe(e,t=document.querySelector("redoc")){hv.hydrateRoot(t,m.jsx(iF,{store:e}),{onRecoverableError:(r,n)=>{r.message.includes("Minified React error #418")||console.error(r.message,n)}})}function cY(e,t={},r=fv("redoc")){if(r===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');const{router:n,...o}={...t,...WBe(r)};let a,i;typeof e=="string"?a=e:typeof e=="object"&&(i=e),hv.createRoot(r).render(M.createElement(HBe,{definition:i,definitionUrl:a,options:o,router:n??"hash"},["Loading..."]))}const GBe="3.24.0-next.11",JBe="0019598d";function KBe(){const e=fv("redoc");if(!e)return;const t=e.getAttribute("spec-url");t&&cY(t,{},e)}KBe();export{nR as $,wJ as A,bt as B,gx as C,ql as D,Um as E,W2 as F,Lp as G,HP as H,lU as I,Fa as J,ro as K,np as L,Ss as M,qP as N,Fl as O,ip as P,PR as Q,Tt as R,Oi as S,Ls as T,Nn as U,qo as V,MA as W,Sg as X,LN as Y,Fx as Z,dR as _,ve as a,wq as a$,AR as a0,TR as a1,LR as a2,A2 as a3,Eh as a4,kd as a5,KS as a6,Ym as a7,ez as a8,WB as a9,UA as aA,BA as aB,Pn as aC,lb as aD,sb as aE,nq as aF,cb as aG,ib as aH,Fq as aI,pb as aJ,PMe as aK,MMe as aL,mn as aM,lq as aN,vq as aO,xq as aP,fMe as aQ,dMe as aR,cy as aS,hMe as aT,gMe as aU,Tq as aV,Aq as aW,KC as aX,Yo as aY,ur as aZ,on as a_,rU as aa,AB as ab,qS as ac,SS as ad,Sr as ae,Jl as af,Cm as ag,DB as ah,io as ai,hv as aj,nU as ak,IU as al,oU as am,aU as an,fU as ao,KP as ap,El as aq,Xv as ar,xx as as,GU as at,VB as au,HB as av,YU as aw,WU as ax,sA as ay,Ud as az,Ol as b,Sq as b0,mMe as b1,py as b2,ab as b3,bc as b4,Kq as b5,QC as b6,ic as b7,Mje as b8,jq as b9,Oq as bA,vMe as bB,yMe as bC,gc as bD,XC as bE,Hq as bF,ac as bG,Ms as bH,Cq as bI,qC as bJ,sF as bK,_q as bL,pf as bM,iq as bN,Bq as bO,i3 as bP,YBe as bQ,cY as bR,JBe as bS,Wve as bT,Vve as bU,qve as bV,GBe as bW,uMe as ba,Sa as bb,NMe as bc,ZC as bd,Yp as be,Xa as bf,zs as bg,Nq as bh,Za as bi,a3 as bj,FC as bk,Uq as bl,rb as bm,Dje as bn,Eq as bo,rq as bp,aq as bq,u$ as br,MB as bs,eb as bt,ot as bu,nt as bv,kq as bw,Vq as bx,Yq as by,lF as bz,jn as c,sg as d,mx as e,ye as f,mt as g,Hl as h,X0e as i,m as j,dr as k,op as l,ks as m,yh as n,_l as o,br as p,zP as q,M as r,kz as s,vn as t,pr as u,Ed as v,Zq as w,Dt as x,ig as y,Cte as z};