@redocly/openapi-docs 3.14.0-next.8 → 3.14.0-next.9
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.
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @license Redocly OpenAPI Docs
|
|
3
3
|
* (c) Copyright 2025 Redocly LLC, all rights reserved.
|
|
4
4
|
* -------------------------------------------------------------
|
|
5
|
-
* Version: 3.14.0-next.
|
|
5
|
+
* Version: 3.14.0-next.9
|
|
6
6
|
**/function nJ(e,t){for(var a=0;a<t.length;a++){const r=t[a];if(typeof r!="string"&&!Array.isArray(r)){for(const n in r)if(n!=="default"&&!(n in e)){const i=Object.getOwnPropertyDescriptor(r,n);i&&Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>r[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Rr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function iJ(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var a=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};a.prototype=t.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(a,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}),a}var oJ={exports:{}},Ny={};/**
|
|
7
7
|
* @license React
|
|
8
8
|
* react-jsx-runtime.production.js
|
|
@@ -9765,7 +9765,7 @@ ${i.message}`,location:r.child("description")})}}}}),Kde=e=>({Info:{leave(t){if(
|
|
|
9765
9765
|
`:"")+Q.dump)):(pe(Q,se,Q.dump),Ae&&(Q.dump="&ref_"+ze+" "+Q.dump));else if(me==="[object Array]")ke&&Q.dump.length!==0?(U(Q,se,Q.dump,ge),Ae&&(Q.dump="&ref_"+ze+(se===0?`
|
|
9766
9766
|
`:"")+Q.dump)):(ae(Q,se,Q.dump),Ae&&(Q.dump="&ref_"+ze+" "+Q.dump));else if(me==="[object String]")Q.tag!=="?"&&W(Q,Q.dump,se);else{if(Q.skipInvalid)return!1;throw new t("unacceptable kind of an object to dump "+me)}Q.tag!==null&&Q.tag!=="?"&&(Q.dump="!<"+Q.tag+"> "+Q.dump)}return!0}function te(Q,se){var de=[],ke=[],ge,me;for(F(Q,de,ke),ge=0,me=ke.length;ge<me;ge+=1)se.duplicates.push(de[ke[ge]]);se.usedDuplicates=new Array(me)}function F(Q,se,de){n.call(Q);var ke,ge,me;if(Q!==null&&typeof Q=="object")if(ge=se.indexOf(Q),ge!==-1)de.indexOf(ge)===-1&&de.push(ge);else if(se.push(Q),Array.isArray(Q))for(ge=0,me=Q.length;ge<me;ge+=1)F(Q[ge],se,de);else for(ke=Object.keys(Q),ge=0,me=ke.length;ge<me;ge+=1)F(Q[ke[ge]],se,de)}function oe(Q,se){se=se||{};var de=new le(se);return te(Q,de),L(de,0,Q,!0,!0)?de.dump+`
|
|
9767
9767
|
`:""}x1.dump=oe;function ue(Q,se){return oe(Q,e.extend({schema:r},se))}return x1.safeDump=ue,x1}var Lpe={},Npe;function Qyt(){return Npe||(Npe=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(s){if(["true","True","TRUE"].lastIndexOf(s)>=0)return!0;if(["false","False","FALSE"].lastIndexOf(s)>=0)return!1;throw'Invalid boolean "'+s+'"'}e.parseYamlBoolean=t;function a(s){return s.lastIndexOf("0o",0)===0?parseInt(s.substring(2),8):parseInt(s)}function r(s){var l=a(s);if(isNaN(l))throw'Invalid integer "'+s+'"';return l}e.parseYamlInteger=r;function n(s){if([".nan",".NaN",".NAN"].lastIndexOf(s)>=0)return NaN;var l=/^([-+])?(?:\.inf|\.Inf|\.INF)$/,c=l.exec(s);if(c)return c[1]==="-"?-1/0:1/0;var u=parseFloat(s);if(!isNaN(u))return u;throw'Invalid float "'+s+'"'}e.parseYamlFloat=n;var i;(function(s){s[s.null=0]="null",s[s.bool=1]="bool",s[s.int=2]="int",s[s.float=3]="float",s[s.string=4]="string"})(i=e.ScalarType||(e.ScalarType={}));function o(s){if(s===void 0)return i.null;if(s.doubleQuoted||!s.plainScalar||s.singleQuoted)return i.string;var l=s.value;if(["null","Null","NULL","~",""].indexOf(l)>=0||l==null)return i.null;if(["true","True","TRUE","false","False","FALSE"].indexOf(l)>=0)return i.bool;var c=/^[-+]?[0-9]+$/,u=/^0o[0-7]+$/,d=/^0x[0-9a-fA-F]+$/;if(c.test(l)||u.test(l)||d.test(l))return i.int;var p=/^[-+]?(\.[0-9]+|[0-9]+(\.[0-9]*)?)([eE][-+]?[0-9]+)?$/,h=/^[-+]?(\.inf|\.Inf|\.INF)$/;return p.test(l)||h.test(l)||[".nan",".NaN",".NAN"].indexOf(l)>=0?i.float:i.string}e.determineScalarType=o})(Lpe)),Lpe}var Dpe;function Yyt(){return Dpe||(Dpe=1,(function(e){function t(n){for(var i in n)e.hasOwnProperty(i)||(e[i]=n[i])}Object.defineProperty(e,"__esModule",{value:!0});var a=Uyt();e.load=a.load,e.loadAll=a.loadAll,e.safeLoad=a.safeLoad,e.safeLoadAll=a.safeLoadAll;var r=Zyt();e.dump=r.dump,e.safeDump=r.safeDump,e.YAMLException=v1(),t(TC()),t(Qyt())})(tpe)),tpe}var w1=Yyt();const Xyt={isatty:()=>{},createRequire:()=>{}},$pe=Object.freeze(Object.defineProperty({__proto__:null,default:Xyt},Symbol.toStringTag,{value:"Module"})),Rv=iJ($pe);var tf={},RC={exports:{}};/*! https://mths.be/punycode v1.3.2 by @mathias */var e0t=RC.exports,Ipe;function t0t(){return Ipe||(Ipe=1,(function(e,t){(function(a){var r=t&&!t.nodeType&&t,n=e&&!e.nodeType&&e,i=typeof globalThis=="object"&&globalThis;(i.global===i||i.window===i||i.self===i)&&(a=i);var o,s=2147483647,l=36,c=1,u=26,d=38,p=700,h=72,m=128,v="-",g=/^xn--/,f=/[^\x20-\x7E]/,k=/[\x2E\u3002\uFF0E\uFF61]/g,x={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},z=l-c,w=Math.floor,j=String.fromCharCode,O;function M(G){throw RangeError(x[G])}function T(G,D){for(var W=G.length,$=[];W--;)$[W]=D(G[W]);return $}function B(G,D){var W=G.split("@"),$="";W.length>1&&($=W[0]+"@",G=W[1]),G=G.replace(k,".");var P=G.split("."),R=T(P,D).join(".");return $+R}function H(G){for(var D=[],W=0,$=G.length,P,R;W<$;)P=G.charCodeAt(W++),P>=55296&&P<=56319&&W<$?(R=G.charCodeAt(W++),(R&64512)==56320?D.push(((P&1023)<<10)+(R&1023)+65536):(D.push(P),W--)):D.push(P);return D}function N(G){return T(G,function(D){var W="";return D>65535&&(D-=65536,W+=j(D>>>10&1023|55296),D=56320|D&1023),W+=j(D),W}).join("")}function J(G){return G-48<10?G-22:G-65<26?G-65:G-97<26?G-97:l}function I(G,D){return G+22+75*(G<26)-((D!=0)<<5)}function X(G,D,W){var $=0;for(G=W?w(G/p):G>>1,G+=w(G/D);G>z*u>>1;$+=l)G=w(G/z);return w($+(z+1)*G/(G+d))}function re(G){var D=[],W=G.length,$,P=0,R=m,V=h,ae,U,pe,Z,A,L,te,F,oe;for(ae=G.lastIndexOf(v),ae<0&&(ae=0),U=0;U<ae;++U)G.charCodeAt(U)>=128&&M("not-basic"),D.push(G.charCodeAt(U));for(pe=ae>0?ae+1:0;pe<W;){for(Z=P,A=1,L=l;pe>=W&&M("invalid-input"),te=J(G.charCodeAt(pe++)),(te>=l||te>w((s-P)/A))&&M("overflow"),P+=te*A,F=L<=V?c:L>=V+u?u:L-V,!(te<F);L+=l)oe=l-F,A>w(s/oe)&&M("overflow"),A*=oe;$=D.length+1,V=X(P-Z,$,Z==0),w(P/$)>s-R&&M("overflow"),R+=w(P/$),P%=$,D.splice(P++,0,R)}return N(D)}function le(G){var D,W,$,P,R,V,ae,U,pe,Z,A,L=[],te,F,oe,ue;for(G=H(G),te=G.length,D=m,W=0,R=h,V=0;V<te;++V)A=G[V],A<128&&L.push(j(A));for($=P=L.length,P&&L.push(v);$<te;){for(ae=s,V=0;V<te;++V)A=G[V],A>=D&&A<ae&&(ae=A);for(F=$+1,ae-D>w((s-W)/F)&&M("overflow"),W+=(ae-D)*F,D=ae,V=0;V<te;++V)if(A=G[V],A<D&&++W>s&&M("overflow"),A==D){for(U=W,pe=l;Z=pe<=R?c:pe>=R+u?u:pe-R,!(U<Z);pe+=l)ue=U-Z,oe=l-Z,L.push(j(I(Z+ue%oe,0))),U=w(ue/oe);L.push(j(I(U,0))),R=X(W,F,$==P),W=0,++$}++W,++D}return L.join("")}function ie(G){return B(G,function(D){return g.test(D)?re(D.slice(4).toLowerCase()):D})}function he(G){return B(G,function(D){return f.test(D)?"xn--"+le(D):D})}if(o={version:"1.3.2",ucs2:{decode:H,encode:N},decode:re,encode:le,toASCII:he,toUnicode:ie},r&&n)if(e.exports==r)n.exports=o;else for(O in o)o.hasOwnProperty(O)&&(r[O]=o[O]);else a.punycode=o})(e0t)})(RC,RC.exports)),RC.exports}var Kpe,Vpe;function a0t(){return Vpe||(Vpe=1,Kpe={isString:function(e){return typeof e=="string"},isObject:function(e){return typeof e=="object"&&e!==null},isNull:function(e){return e===null},isNullOrUndefined:function(e){return e==null}}),Kpe}var S1={},r9,Hpe;function r0t(){if(Hpe)return r9;Hpe=1;function e(t,a){return Object.prototype.hasOwnProperty.call(t,a)}return r9=function(t,a,r,n){a=a||"&",r=r||"=";var i={};if(typeof t!="string"||t.length===0)return i;var o=/\+/g;t=t.split(a);var s=1e3;n&&typeof n.maxKeys=="number"&&(s=n.maxKeys);var l=t.length;s>0&&l>s&&(l=s);for(var c=0;c<l;++c){var u=t[c].replace(o,"%20"),d=u.indexOf(r),p,h,m,v;d>=0?(p=u.substr(0,d),h=u.substr(d+1)):(p=u,h=""),m=decodeURIComponent(p),v=decodeURIComponent(h),e(i,m)?Array.isArray(i[m])?i[m].push(v):i[m]=[i[m],v]:i[m]=v}return i},r9}var n9,Fpe;function n0t(){if(Fpe)return n9;Fpe=1;var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};return n9=function(t,a,r,n){return a=a||"&",r=r||"=",t===null&&(t=void 0),typeof t=="object"?Object.keys(t).map(function(i){var o=encodeURIComponent(e(i))+r;return Array.isArray(t[i])?t[i].map(function(s){return o+encodeURIComponent(e(s))}).join(a):o+encodeURIComponent(e(t[i]))}).join(a):n?encodeURIComponent(e(n))+r+encodeURIComponent(e(t)):""},n9}var Gpe;function i0t(){return Gpe||(Gpe=1,S1.decode=S1.parse=r0t(),S1.encode=S1.stringify=n0t()),S1}var qpe;function i9(){if(qpe)return tf;qpe=1;var e=t0t(),t=a0t();tf.parse=k,tf.resolve=z,tf.resolveObject=w,tf.format=x,tf.Url=a;function a(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var r=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,i=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,o=["<",">",'"',"`"," ","\r",`
|
|
9768
|
-
`," "],s=["{","}","|","\\","^","`"].concat(o),l=["'"].concat(s),c=["%","/","?",";","#"].concat(l),u=["/","?","#"],d=255,p=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},f=i0t();function k(j,O,M){if(j&&t.isObject(j)&&j instanceof a)return j;var T=new a;return T.parse(j,O,M),T}a.prototype.parse=function(j,O,M){if(!t.isString(j))throw new TypeError("Parameter 'url' must be a string, not "+typeof j);var T=j.indexOf("?"),B=T!==-1&&T<j.indexOf("#")?"?":"#",H=j.split(B),N=/\\/g;H[0]=H[0].replace(N,"/"),j=H.join(B);var J=j;if(J=J.trim(),!M&&j.split("#").length===1){var I=i.exec(J);if(I)return this.path=J,this.href=J,this.pathname=I[1],I[2]?(this.search=I[2],O?this.query=f.parse(this.search.substr(1)):this.query=this.search.substr(1)):O&&(this.search="",this.query={}),this}var X=r.exec(J);if(X){X=X[0];var re=X.toLowerCase();this.protocol=re,J=J.substr(X.length)}if(M||X||J.match(/^\/\/[^@\/]+@[^@\/]+/)){var le=J.substr(0,2)==="//";le&&!(X&&v[X])&&(J=J.substr(2),this.slashes=!0)}if(!v[X]&&(le||X&&!g[X])){for(var ie=-1,he=0;he<u.length;he++){var G=J.indexOf(u[he]);G!==-1&&(ie===-1||G<ie)&&(ie=G)}var D,W;ie===-1?W=J.lastIndexOf("@"):W=J.lastIndexOf("@",ie),W!==-1&&(D=J.slice(0,W),J=J.slice(W+1),this.auth=decodeURIComponent(D)),ie=-1;for(var he=0;he<c.length;he++){var G=J.indexOf(c[he]);G!==-1&&(ie===-1||G<ie)&&(ie=G)}ie===-1&&(ie=J.length),this.host=J.slice(0,ie),J=J.slice(ie),this.parseHost(),this.hostname=this.hostname||"";var $=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!$)for(var P=this.hostname.split(/\./),he=0,R=P.length;he<R;he++){var V=P[he];if(V&&!V.match(p)){for(var ae="",U=0,pe=V.length;U<pe;U++)V.charCodeAt(U)>127?ae+="x":ae+=V[U];if(!ae.match(p)){var Z=P.slice(0,he),A=P.slice(he+1),L=V.match(h);L&&(Z.push(L[1]),A.unshift(L[2])),A.length&&(J="/"+A.join(".")+J),this.hostname=Z.join(".");break}}}this.hostname.length>d?this.hostname="":this.hostname=this.hostname.toLowerCase(),$||(this.hostname=e.toASCII(this.hostname));var te=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+te,this.href+=this.host,$&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),J[0]!=="/"&&(J="/"+J))}if(!m[re])for(var he=0,R=l.length;he<R;he++){var oe=l[he];if(J.indexOf(oe)!==-1){var ue=encodeURIComponent(oe);ue===oe&&(ue=escape(oe)),J=J.split(oe).join(ue)}}var Q=J.indexOf("#");Q!==-1&&(this.hash=J.substr(Q),J=J.slice(0,Q));var se=J.indexOf("?");if(se!==-1?(this.search=J.substr(se),this.query=J.substr(se+1),O&&(this.query=f.parse(this.query)),J=J.slice(0,se)):O&&(this.search="",this.query={}),J&&(this.pathname=J),g[re]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var te=this.pathname||"",de=this.search||"";this.path=te+de}return this.href=this.format(),this};function x(j){return t.isString(j)&&(j=k(j)),j instanceof a?j.format():a.prototype.format.call(j)}a.prototype.format=function(){var j=this.auth||"";j&&(j=encodeURIComponent(j),j=j.replace(/%3A/i,":"),j+="@");var O=this.protocol||"",M=this.pathname||"",T=this.hash||"",B=!1,H="";this.host?B=j+this.host:this.hostname&&(B=j+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(B+=":"+this.port)),this.query&&t.isObject(this.query)&&Object.keys(this.query).length&&(H=f.stringify(this.query));var N=this.search||H&&"?"+H||"";return O&&O.substr(-1)!==":"&&(O+=":"),this.slashes||(!O||g[O])&&B!==!1?(B="//"+(B||""),M&&M.charAt(0)!=="/"&&(M="/"+M)):B||(B=""),T&&T.charAt(0)!=="#"&&(T="#"+T),N&&N.charAt(0)!=="?"&&(N="?"+N),M=M.replace(/[?#]/g,function(J){return encodeURIComponent(J)}),N=N.replace("#","%23"),O+B+M+N+T};function z(j,O){return k(j,!1,!0).resolve(O)}a.prototype.resolve=function(j){return this.resolveObject(k(j,!1,!0)).format()};function w(j,O){return j?k(j,!1,!0).resolveObject(O):O}return a.prototype.resolveObject=function(j){if(t.isString(j)){var O=new a;O.parse(j,!1,!0),j=O}for(var M=new a,T=Object.keys(this),B=0;B<T.length;B++){var H=T[B];M[H]=this[H]}if(M.hash=j.hash,j.href==="")return M.href=M.format(),M;if(j.slashes&&!j.protocol){for(var N=Object.keys(j),J=0;J<N.length;J++){var I=N[J];I!=="protocol"&&(M[I]=j[I])}return g[M.protocol]&&M.hostname&&!M.pathname&&(M.path=M.pathname="/"),M.href=M.format(),M}if(j.protocol&&j.protocol!==M.protocol){if(!g[j.protocol]){for(var X=Object.keys(j),re=0;re<X.length;re++){var le=X[re];M[le]=j[le]}return M.href=M.format(),M}if(M.protocol=j.protocol,!j.host&&!v[j.protocol]){for(var R=(j.pathname||"").split("/");R.length&&!(j.host=R.shift()););j.host||(j.host=""),j.hostname||(j.hostname=""),R[0]!==""&&R.unshift(""),R.length<2&&R.unshift(""),M.pathname=R.join("/")}else M.pathname=j.pathname;if(M.search=j.search,M.query=j.query,M.host=j.host||"",M.auth=j.auth,M.hostname=j.hostname||j.host,M.port=j.port,M.pathname||M.search){var ie=M.pathname||"",he=M.search||"";M.path=ie+he}return M.slashes=M.slashes||j.slashes,M.href=M.format(),M}var G=M.pathname&&M.pathname.charAt(0)==="/",D=j.host||j.pathname&&j.pathname.charAt(0)==="/",W=D||G||M.host&&j.pathname,$=W,P=M.pathname&&M.pathname.split("/")||[],R=j.pathname&&j.pathname.split("/")||[],V=M.protocol&&!g[M.protocol];if(V&&(M.hostname="",M.port=null,M.host&&(P[0]===""?P[0]=M.host:P.unshift(M.host)),M.host="",j.protocol&&(j.hostname=null,j.port=null,j.host&&(R[0]===""?R[0]=j.host:R.unshift(j.host)),j.host=null),W=W&&(R[0]===""||P[0]==="")),D)M.host=j.host||j.host===""?j.host:M.host,M.hostname=j.hostname||j.hostname===""?j.hostname:M.hostname,M.search=j.search,M.query=j.query,P=R;else if(R.length)P||(P=[]),P.pop(),P=P.concat(R),M.search=j.search,M.query=j.query;else if(!t.isNullOrUndefined(j.search)){if(V){M.hostname=M.host=P.shift();var ae=M.host&&M.host.indexOf("@")>0?M.host.split("@"):!1;ae&&(M.auth=ae.shift(),M.host=M.hostname=ae.shift())}return M.search=j.search,M.query=j.query,(!t.isNull(M.pathname)||!t.isNull(M.search))&&(M.path=(M.pathname?M.pathname:"")+(M.search?M.search:"")),M.href=M.format(),M}if(!P.length)return M.pathname=null,M.search?M.path="/"+M.search:M.path=null,M.href=M.format(),M;for(var U=P.slice(-1)[0],pe=(M.host||j.host||P.length>1)&&(U==="."||U==="..")||U==="",Z=0,A=P.length;A>=0;A--)U=P[A],U==="."?P.splice(A,1):U===".."?(P.splice(A,1),Z++):Z&&(P.splice(A,1),Z--);if(!W&&!$)for(;Z--;Z)P.unshift("..");W&&P[0]!==""&&(!P[0]||P[0].charAt(0)!=="/")&&P.unshift(""),pe&&P.join("/").substr(-1)!=="/"&&P.push("");var L=P[0]===""||P[0]&&P[0].charAt(0)==="/";if(V){M.hostname=M.host=L?"":P.length?P.shift():"";var ae=M.host&&M.host.indexOf("@")>0?M.host.split("@"):!1;ae&&(M.auth=ae.shift(),M.host=M.hostname=ae.shift())}return W=W||M.host&&P.length,W&&!L&&P.unshift(""),P.length?M.pathname=P.join("/"):(M.pathname=null,M.path=null),(!t.isNull(M.pathname)||!t.isNull(M.search))&&(M.path=(M.pathname?M.pathname:"")+(M.search?M.search:"")),M.auth=j.auth||M.auth,M.slashes=M.slashes||j.slashes,M.href=M.format(),M},a.prototype.parseHost=function(){var j=this.host,O=n.exec(j);O&&(O=O[0],O!==":"&&(this.port=O.substr(1)),j=j.substr(0,j.length-O.length)),j&&(this.hostname=j)},tf}var o9,Wpe;function o0t(){if(Wpe)return o9;Wpe=1;function e(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:function(t){setTimeout(t,0)}}return o9=e(),o9}var s9,Jpe;function s0t(){if(Jpe)return s9;Jpe=1;var e=o0t();return s9=function(t,a){if(t){a.then(function(r){e(function(){t(null,r)})},function(r){e(function(){t(r)})});return}else return a},s9}var l9,Upe;function BC(){if(Upe)return l9;Upe=1;function e(r){return r.replace(/\~/g,"~0").replace(/\//g,"~1")}function t(r){return r.replace(/\~1/g,"/").replace(/~0/g,"~")}function a(r,n,i){if(typeof r>"u")return!1;if(!n||typeof n!="string"||n==="#")return typeof i<"u"?i:r;if(n.indexOf("#")>=0){let s=n.split("#");if(s[0])return!1;n=s[1],n=decodeURIComponent(n.slice(1).split("+").join(" "))}n.startsWith("/")&&(n=n.slice(1));let o=n.split("/");for(let s=0;s<o.length;s++){o[s]=t(o[s]);let l=typeof i<"u"&&s==o.length-1,c=parseInt(o[s],10);if(!Array.isArray(r)||isNaN(c)||c.toString()!==o[s]?c=Array.isArray(r)&&o[s]==="-"?-2:-1:o[s]=s>0?o[s-1]:"",c!=-1||r&&r.hasOwnProperty(o[s]))if(c>=0)l&&(r[c]=i),r=r[c];else{if(c===-2)return l?(Array.isArray(r)&&r.push(i),i):void 0;l&&(r[o[s]]=i),r=r[o[s]]}else if(typeof i<"u"&&typeof r=="object"&&!Array.isArray(r))r[o[s]]=l?i:o[s+1]==="0"||o[s+1]==="-"?[]:{},r=r[o[s]];else return!1}return r}return l9={jptr:a,jpescape:e,jpunescape:t},l9}var c9,Zpe;function u9(){if(Zpe)return c9;Zpe=1;function e(t,a){return a==="$ref"&&!!t&&typeof t[a]=="string"}return c9={isRef:e},c9}var d9,Qpe;function LC(){if(Qpe)return d9;Qpe=1;function e(o){return o}function t(o){return JSON.parse(JSON.stringify(o))}function a(o){let s={};for(let l in o)o.hasOwnProperty(l)&&(s[l]=o[l]);return s}function r(o){let s=Array.isArray(o)?[]:{};for(let l in o)(o.hasOwnProperty(l)||Array.isArray(o))&&(s[l]=typeof o[l]=="object"?r(o[l]):o[l]);return s}function n(o){return Object.assign({},o)}function i(o,s){if(s||(s=new WeakMap),Object(o)!==o||o instanceof Function)return o;if(s.has(o))return s.get(o);try{var l=new o.constructor}catch{l=Object.create(Object.getPrototypeOf(o))}return s.set(o,l),Object.assign(l,...Object.keys(o).map(c=>({[c]:i(o[c],s)})))}return d9={nop:e,clone:t,shallowClone:a,deepClone:r,fastClone:n,circularClone:i},d9}var p9,Ype;function h9(){if(Ype)return p9;Ype=1;const e=BC().jpescape;function t(){return{path:"#",depth:0,pkey:"",parent:{},payload:{},seen:new WeakMap,identity:!1,identityDetection:!1}}function a(r,n,i){if(n||(n={depth:0}),n.depth||(n=Object.assign({},t(),n)),typeof r!="object")return;let o=n.path;for(let s in r){if(n.key=s,n.path=n.path+"/"+encodeURIComponent(e(s)),n.identityPath=n.seen.get(r[s]),n.identity=typeof n.identityPath<"u",r.hasOwnProperty(s)&&i(r,s,n),typeof r[s]=="object"&&!n.identity){n.identityDetection&&!Array.isArray(r[s])&&r[s]!==null&&n.seen.set(r[s],n.path);let l={};l.parent=r,l.path=n.path,l.depth=n.depth?n.depth+1:1,l.pkey=s,l.payload=n.payload,l.seen=n.seen,l.identity=!1,l.identityDetection=n.identityDetection,a(r[s],l,i)}n.path=o}}return p9={recurse:a},p9}var m9,Xpe;function l0t(){if(Xpe)return m9;Xpe=1;const e=h9().recurse,t=LC().shallowClone,a=BC().jptr,r=u9().isRef;var n=function(o){return o&&o.verbose?{warn:function(){var s=Array.prototype.slice.call(arguments);console.warn.apply(console,s)}}:{warn:function(){}}};function i(o,s,l){l||(l={}),l.cache||(l.cache={}),l.state||(l.state={}),l.state.identityDetection=!0,l.depth=l.depth?l.depth+1:1;let c=l.depth>1?o:t(o),u={data:c},d=l.depth>1?s:t(s);l.master||(l.master=c);let p=n(l),h=1;for(;h>0;)h=0,e(u,l.state,function(m,v,g){if(r(m,v)){let f=m[v];if(h++,l.cache[f]){let k=l.cache[f];if(k.resolved)p.warn("Patching %s for %s",f,k.path),g.parent[g.pkey]=k.data,l.$ref&&typeof g.parent[g.pkey]=="object"&&g.parent[g.pkey]!==null&&(g.parent[g.pkey][l.$ref]=f);else{if(f===k.path)throw new Error(`Tight circle at ${k.path}`);p.warn("Unresolved ref"),g.parent[g.pkey]=a(k.source,k.path),g.parent[g.pkey]===!1&&(g.parent[g.pkey]=a(k.source,k.key)),l.$ref&&typeof g.parent[g.pkey]=="object"&&g.parent[g.pkey]!==null&&(g.parent[l.$ref]=f)}}else{let k={};k.path=g.path.split("/$ref")[0],k.key=f,p.warn("Dereffing %s at %s",f,k.path),k.source=d,k.data=a(k.source,k.key),k.data===!1&&(k.data=a(l.master,k.key),k.source=l.master),k.data===!1&&p.warn("Missing $ref target",k.key),l.cache[f]=k,k.data=g.parent[g.pkey]=i(a(k.source,k.key),k.source,l),l.$ref&&typeof g.parent[g.pkey]=="object"&&g.parent[g.pkey]!==null&&(g.parent[g.pkey][l.$ref]=f),k.resolved=!0}}});return u.data}return m9={dereference:i},m9}var f9,ehe;function c0t(){if(ehe)return f9;ehe=1,f9=i,i.default=i,i.stable=c,i.stableStringify=c;var e="[...]",t="[Circular]",a=[],r=[];function n(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function i(p,h,m,v){typeof v>"u"&&(v=n()),s(p,"",0,[],void 0,0,v);var g;try{r.length===0?g=JSON.stringify(p,h,m):g=JSON.stringify(p,d(h),m)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;a.length!==0;){var f=a.pop();f.length===4?Object.defineProperty(f[0],f[1],f[3]):f[0][f[1]]=f[2]}}return g}function o(p,h,m,v){var g=Object.getOwnPropertyDescriptor(v,m);g.get!==void 0?g.configurable?(Object.defineProperty(v,m,{value:p}),a.push([v,m,h,g])):r.push([h,m,p]):(v[m]=p,a.push([v,m,h]))}function s(p,h,m,v,g,f,k){f+=1;var x;if(typeof p=="object"&&p!==null){for(x=0;x<v.length;x++)if(v[x]===p){o(t,p,h,g);return}if(typeof k.depthLimit<"u"&&f>k.depthLimit){o(e,p,h,g);return}if(typeof k.edgesLimit<"u"&&m+1>k.edgesLimit){o(e,p,h,g);return}if(v.push(p),Array.isArray(p))for(x=0;x<p.length;x++)s(p[x],x,x,v,p,f,k);else{var z=Object.keys(p);for(x=0;x<z.length;x++){var w=z[x];s(p[w],w,x,v,p,f,k)}}v.pop()}}function l(p,h){return p<h?-1:p>h?1:0}function c(p,h,m,v){typeof v>"u"&&(v=n());var g=u(p,"",0,[],void 0,0,v)||p,f;try{r.length===0?f=JSON.stringify(g,h,m):f=JSON.stringify(g,d(h),m)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;a.length!==0;){var k=a.pop();k.length===4?Object.defineProperty(k[0],k[1],k[3]):k[0][k[1]]=k[2]}}return f}function u(p,h,m,v,g,f,k){f+=1;var x;if(typeof p=="object"&&p!==null){for(x=0;x<v.length;x++)if(v[x]===p){o(t,p,h,g);return}try{if(typeof p.toJSON=="function")return}catch{return}if(typeof k.depthLimit<"u"&&f>k.depthLimit){o(e,p,h,g);return}if(typeof k.edgesLimit<"u"&&m+1>k.edgesLimit){o(e,p,h,g);return}if(v.push(p),Array.isArray(p))for(x=0;x<p.length;x++)u(p[x],x,x,v,p,f,k);else{var z={},w=Object.keys(p).sort(l);for(x=0;x<w.length;x++){var j=w[x];u(p[j],j,x,v,p,f,k),z[j]=p[j]}if(typeof g<"u")a.push([g,h,p]),g[h]=z;else return z}v.pop()}}function d(p){return p=typeof p<"u"?p:function(h,m){return m},function(h,m){if(r.length>0)for(var v=0;v<r.length;v++){var g=r[v];if(g[1]===h&&g[0]===m){m=g[2],r.splice(v,1);break}}return p.call(this,h,m)}}return f9}var g9,the;function ahe(){if(the)return g9;the=1;var e={};const t=c0t(),a=e.NODE_DISABLE_COLORS?{red:"",yellow:"",green:"",normal:""}:{red:"\x1B[31m",yellow:"\x1B[33;1m",green:"\x1B[32m",normal:"\x1B[0m"};function r(g,f,k){return k.indexOf(g)===f}function n(g){return new Set(g).size!==g.length}function i(g){return new Set(g).size<=1}function o(g,f){function k(x,z){return t.stringify(x)===t.stringify(Object.assign({},x,z))}return k(g,f)&&k(f,g)}function s(g){let f=[];for(let k of g)f.find(function(x,z,w){return o(x,k)})||f.push(k);return f}function l(g){return g.length===s(g).length}function c(g){return g.find(function(f,k,x){return g.indexOf(f)<k})}function u(g){let f=0,k;if(g.length===0)return f;for(let x=0;x<g.length;x++)k=g.charCodeAt(x),f=(f<<5)-f+k,f|=0;return f}String.prototype.toCamelCase=function(){return this.toLowerCase().replace(/[-_ \/\.](.)/g,function(g,f){return f.toUpperCase()})};const d=["format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","minLength","maxLength","multipleOf","minItems","maxItems","uniqueItems","minProperties","maxProperties","additionalProperties","pattern","enum","default"],p=["items","minItems","maxItems","uniqueItems"],h=["get","post","put","delete","patch","head","options","trace"];function m(g){g=g.replace("[]","Array");let f=g.split("/");return f[0]=f[0].replace(/[^A-Za-z0-9_\-\.]+|\s+/gm,"_"),f.join("/")}function v(g){return m(g.split("/").join("_"))}return g9={colour:a,uniqueOnly:r,hasDuplicates:n,allSame:i,distinctArray:l,firstDupe:c,hash:u,parameterTypeProperties:d,arrayProperties:p,httpMethods:h,sanitise:m,sanitiseAll:v},g9}var v9,rhe;function u0t(){if(rhe)return v9;rhe=1;const e=Rv,t=aQ(),a=i9(),r=Rv,n=Rv,i=BC().jptr,o=h9().recurse,s=LC().clone,l=l0t().dereference,c=u9().isRef,u=ahe();function d(M){return[...new Set(M)]}function p(M,T,B,H,N){return new Promise(function(J,I){e.readFile(M,T,function(X,re){X?B.ignoreIOErrors&&N?(B.verbose&&console.warn("FAILED",H),B.externalRefs[H].failed=!0,J(N)):I(X):J(re)})})}function h(M,T,B,H,N,J){let I=J.externalRefs[B+H].paths[0],X=a.parse(N),re={},le=1;for(;le;)le=0,o(M,{identityDetection:!0},function(ie,he,G){if(c(ie,he)){if(ie[he].startsWith("#")){if(!re[ie[he]]&&!ie.$fixed){let D=s(i(T,ie[he]));if(J.verbose>1&&console.warn((D===!1?u.colour.red:u.colour.green)+"Fragment resolution",ie[he],u.colour.normal),D===!1){if(G.parent[G.pkey]={},J.fatal){let W=new Error("Fragment $ref resolution failed "+ie[he]);if(J.promise)J.promise.reject(W);else throw W}}else le++,G.parent[G.pkey]=D,re[ie[he]]=G.path.replace("/%24ref","")}else if(!ie.$fixed){let D=(I+"/"+re[ie[he]]).split("/#/").join("/");G.parent[G.pkey]={$ref:D,"x-miro":ie[he],$fixed:!0},J.verbose>1&&console.warn("Replacing with",D),le++}}else if(X.protocol){let D=a.resolve(N,ie[he]).toString();J.verbose>1&&console.warn(u.colour.yellow+"Rewriting external url ref",ie[he],"as",D,u.colour.normal),ie["x-miro"]=ie[he],J.externalRefs[ie[he]]&&(J.externalRefs[D]||(J.externalRefs[D]=J.externalRefs[ie[he]]),J.externalRefs[D].failed=J.externalRefs[ie[he]].failed),ie[he]=D}else if(!ie["x-miro"]){let D=a.resolve(N,ie[he]).toString(),W=!1;J.externalRefs[ie[he]]&&(W=J.externalRefs[ie[he]].failed),W||(J.verbose>1&&console.warn(u.colour.yellow+"Rewriting external ref",ie[he],"as",D,u.colour.normal),ie["x-miro"]=ie[he],ie[he]=D)}}});return o(M,{},function(ie,he,G){c(ie,he)&&typeof ie.$fixed<"u"&&delete ie.$fixed}),J.verbose>1&&console.warn("Finished fragment resolution"),M}function m(M,T){if(!T.filters||!T.filters.length)return M;for(let B of T.filters)M=B(M,T);return M}function v(M,T){return M&&M.length>2?M:T&&T.length>2?T:"file:"}function g(M,T,B,H){var N=a.parse(B.source),J=B.source.split("\\").join("/").split("/");J.pop()||J.pop();let I="",X=T.split("#");X.length>1&&(I="#"+X[1],T=X[0]),J=J.join("/");let re=a.parse(T),le=v(re.protocol,N.protocol),ie;if(le==="file:"?ie=t.resolve(J?J+"/":"",T):ie=a.resolve(J?J+"/":"",T),B.cache[ie]){B.verbose&&console.warn("CACHED",ie,I);let he=s(B.cache[ie]),G=B.externalRef=he;if(I&&(G=i(G,I),G===!1&&(G={},B.fatal))){let D=new Error("Cached $ref resolution failed "+ie+I);if(B.promise)B.promise.reject(D);else throw D}return G=h(G,he,T,I,ie,B),G=m(G,B),H(s(G),ie,B),Promise.resolve(G)}if(B.verbose&&console.warn("GET",ie,I),B.handlers&&B.handlers[le])return B.handlers[le](J,T,I,B).then(function(he){return B.externalRef=he,he=m(he,B),B.cache[ie]=he,H(he,ie,B),he}).catch(function(he){throw B.verbose&&console.warn(he),he});if(le&&le.startsWith("http")){const he=Object.assign({},B.fetchOptions,{agent:B.agent});return B.fetch(ie,he).then(function(G){if(G.status!==200){if(B.ignoreIOErrors)return B.verbose&&console.warn("FAILED",T),B.externalRefs[T].failed=!0,'{"$ref":"'+T+'"}';throw new Error(`Received status code ${G.status}: ${ie}`)}return G.text()}).then(function(G){try{let D=n.parse(G,{schema:"core",prettyErrors:!0});if(G=B.externalRef=D,B.cache[ie]=s(G),I&&(G=i(G,I),G===!1&&(G={},B.fatal))){let W=new Error("Remote $ref resolution failed "+ie+I);if(B.promise)B.promise.reject(W);else throw W}G=h(G,D,T,I,ie,B),G=m(G,B)}catch(D){if(B.verbose&&console.warn(D),B.promise&&B.fatal)B.promise.reject(D);else throw D}return H(G,ie,B),G}).catch(function(G){if(B.verbose&&console.warn(G),B.cache[ie]={},B.promise&&B.fatal)B.promise.reject(G);else throw G})}else{const he='{"$ref":"'+T+'"}';return p(ie,B.encoding||"utf8",B,T,he).then(function(G){try{let D=n.parse(G,{schema:"core",prettyErrors:!0});if(G=B.externalRef=D,B.cache[ie]=s(G),I&&(G=i(G,I),G===!1&&(G={},B.fatal))){let W=new Error("File $ref resolution failed "+ie+I);if(B.promise)B.promise.reject(W);else throw W}G=h(G,D,T,I,ie,B),G=m(G,B)}catch(D){if(B.verbose&&console.warn(D),B.promise&&B.fatal)B.promise.reject(D);else throw D}return H(G,ie,B),G}).catch(function(G){if(B.verbose&&console.warn(G),B.promise&&B.fatal)B.promise.reject(G);else throw G})}}function f(M){return new Promise(function(T,B){function H(J,I,X){if(J[I]&&c(J[I],"$ref")){let re=J[I].$ref;if(!re.startsWith("#")){let le="";if(!N[re]){let ie=Object.keys(N).find(function(he,G,D){return re.startsWith(he+"/")});ie&&(M.verbose&&console.warn("Found potential subschema at",ie),le="/"+(re.split("#")[1]||"").replace(ie.split("#")[1]||""),le=le.split("/undefined").join(""),re=ie)}if(N[re]||(N[re]={resolved:!1,paths:[],extras:{},description:J[I].description}),N[re].resolved){if(!N[re].failed)if(M.rewriteRefs){let ie=N[re].resolvedAt;M.verbose>1&&console.warn("Rewriting ref",re,ie),J[I]["x-miro"]=re,J[I].$ref=ie+le}else J[I]=s(N[re].data)}else N[re].paths.push(X.path),N[re].extras[X.path]=le}}}let N=M.externalRefs;if(M.resolver.depth>0&&M.source===M.resolver.base)return T(N);o(M.openapi.definitions,{identityDetection:!0,path:"#/definitions"},H),o(M.openapi.components,{identityDetection:!0,path:"#/components"},H),o(M.openapi,{identityDetection:!0},H),T(N)})}function k(M){return new Promise(function(T,B){f(M).then(function(N){for(let J in N)if(!N[J].resolved){let I=M.resolver.depth;I>0&&I++,M.resolver.actions[I].push(function(){return g(M.openapi,J,M,function(X,re,le){if(!N[J].resolved){let G={};G.context=N[J],G.$ref=J,G.original=s(X),G.updated=X,G.source=re,le.externals.push(G),N[J].resolved=!0}let ie=Object.assign({},le,{source:"",resolver:{actions:le.resolver.actions,depth:le.resolver.actions.length-1,base:le.resolver.base}});le.patch&&N[J].description&&!X.description&&typeof X=="object"&&(X.description=N[J].description),N[J].data=X;let he=d(N[J].paths);he=he.sort(function(G,D){const W=G.startsWith("#/components/")||G.startsWith("#/definitions/"),$=D.startsWith("#/components/")||D.startsWith("#/definitions/");return W&&!$?-1:$&&!W?1:0});for(let G of he)if(N[J].resolvedAt&&G!==N[J].resolvedAt&&G.indexOf("x-ms-examples/")<0)le.verbose>1&&console.warn("Creating pointer to data at",G),i(le.openapi,G,{$ref:N[J].resolvedAt+N[J].extras[G],"x-miro":J+N[J].extras[G]});else{N[J].resolvedAt?le.verbose>1&&console.warn("Avoiding circular reference"):(N[J].resolvedAt=G,le.verbose>1&&console.warn("Creating initial clone of data at",G));let D=s(X);i(le.openapi,G,D)}le.resolver.actions[ie.resolver.depth].length===0&&le.resolver.actions[ie.resolver.depth].push(function(){return k(ie)})})})}}).catch(function(N){M.verbose&&console.warn(N),B(N)});let H={options:M};H.actions=M.resolver.actions[M.resolver.depth],T(H)})}const x=M=>M.reduce((T,B)=>T.then(H=>B().then(Array.prototype.concat.bind(H))),Promise.resolve([]));function z(M,T,B){M.resolver.actions.push([]),k(M).then(function(H){x(H.actions).then(function(){if(M.resolver.depth>=M.resolver.actions.length)return console.warn("Ran off the end of resolver actions"),T(!0);M.resolver.depth++,M.resolver.actions[M.resolver.depth].length?setTimeout(function(){z(H.options,T,B)},0):(M.verbose>1&&console.warn(u.colour.yellow+"Finished external resolution!",u.colour.normal),M.resolveInternal&&(M.verbose>1&&console.warn(u.colour.yellow+"Starting internal resolution!",u.colour.normal),M.openapi=l(M.openapi,M.original,{verbose:M.verbose-1}),M.verbose>1&&console.warn(u.colour.yellow+"Finished internal resolution!",u.colour.normal)),o(M.openapi,{},function(N,J,I){c(N,J)&&(M.preserveMiro||delete N["x-miro"])}),T(M))}).catch(function(N){M.verbose&&console.warn(N),B(N)})}).catch(function(H){M.verbose&&console.warn(H),B(H)})}function w(M){if(M.cache||(M.cache={}),M.fetch||(M.fetch=r),M.source){let T=a.parse(M.source);(!T.protocol||T.protocol.length<=2)&&(M.source=t.resolve(M.source))}M.externals=[],M.externalRefs={},M.rewriteRefs=!0,M.resolver={},M.resolver.depth=0,M.resolver.base=M.source,M.resolver.actions=[[]]}function j(M){return w(M),new Promise(function(T,B){M.resolve?z(M,T,B):T(M)})}function O(M,T,B){return B||(B={}),B.openapi=M,B.source=T,B.resolve=!0,w(B),new Promise(function(H,N){z(B,H,N)})}return v9={optionalResolve:j,resolve:O},v9}var b9,nhe;function d0t(){if(nhe)return b9;nhe=1;function e(){return{depth:0,seen:new WeakMap,top:!0,combine:!1,allowRefSiblings:!1}}function t(a,r,n,i){if(typeof n.depth>"u"&&(n=e()),a===null||typeof a>"u")return a;if(typeof a.$ref<"u"){let o={$ref:a.$ref};return n.allowRefSiblings&&a.description&&(o.description=a.description),i(o,r,n),o}if(n.combine&&(a.allOf&&Array.isArray(a.allOf)&&a.allOf.length===1&&(a=Object.assign({},a.allOf[0],a),delete a.allOf),a.anyOf&&Array.isArray(a.anyOf)&&a.anyOf.length===1&&(a=Object.assign({},a.anyOf[0],a),delete a.anyOf),a.oneOf&&Array.isArray(a.oneOf)&&a.oneOf.length===1&&(a=Object.assign({},a.oneOf[0],a),delete a.oneOf)),i(a,r,n),n.seen.has(a))return a;if(typeof a=="object"&&a!==null&&n.seen.set(a,!0),n.top=!1,n.depth++,typeof a.items<"u"&&(n.property="items",t(a.items,a,n,i)),a.additionalItems&&typeof a.additionalItems=="object"&&(n.property="additionalItems",t(a.additionalItems,a,n,i)),a.additionalProperties&&typeof a.additionalProperties=="object"&&(n.property="additionalProperties",t(a.additionalProperties,a,n,i)),a.properties)for(let o in a.properties){let s=a.properties[o];n.property="properties/"+o,t(s,a,n,i)}if(a.patternProperties)for(let o in a.patternProperties){let s=a.patternProperties[o];n.property="patternProperties/"+o,t(s,a,n,i)}if(a.allOf)for(let o in a.allOf){let s=a.allOf[o];n.property="allOf/"+o,t(s,a,n,i)}if(a.anyOf)for(let o in a.anyOf){let s=a.anyOf[o];n.property="anyOf/"+o,t(s,a,n,i)}if(a.oneOf)for(let o in a.oneOf){let s=a.oneOf[o];n.property="oneOf/"+o,t(s,a,n,i)}return a.not&&(n.property="not",t(a.not,a,n,i)),n.depth--,a}return b9={getDefaultState:e,walkSchema:t},b9}var ihe={},k9={exports:{}},ohe={},she;function lhe(){return she||(she=1,(function(e){e.fetch=n(globalThis.fetch)&&n(globalThis.ReadableStream),e.writableStream=n(globalThis.WritableStream),e.abortController=n(globalThis.AbortController);var t;function a(){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 r(i){var o=a();if(!o)return!1;try{return o.responseType=i,o.responseType===i}catch{}return!1}e.arraybuffer=e.fetch||r("arraybuffer"),e.msstream=!e.fetch&&r("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&r("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||(a()?n(a().overrideMimeType):!1);function n(i){return typeof i=="function"}t=null})(ohe)),ohe}var NC={},y9={exports:{}},DC={exports:{}},che;function p0t(){if(che)return DC.exports;che=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(z,w,j){return Function.prototype.apply.call(z,w,j)},a;e&&typeof e.ownKeys=="function"?a=e.ownKeys:Object.getOwnPropertySymbols?a=function(z){return Object.getOwnPropertyNames(z).concat(Object.getOwnPropertySymbols(z))}:a=function(z){return Object.getOwnPropertyNames(z)};function r(z){console&&console.warn&&console.warn(z)}var n=Number.isNaN||function(z){return z!==z};function i(){i.init.call(this)}DC.exports=i,DC.exports.once=f,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var o=10;function s(z){if(typeof z!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof z)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(z){if(typeof z!="number"||z<0||n(z))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+z+".");o=z}}),i.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},i.prototype.setMaxListeners=function(z){if(typeof z!="number"||z<0||n(z))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+z+".");return this._maxListeners=z,this};function l(z){return z._maxListeners===void 0?i.defaultMaxListeners:z._maxListeners}i.prototype.getMaxListeners=function(){return l(this)},i.prototype.emit=function(z){for(var w=[],j=1;j<arguments.length;j++)w.push(arguments[j]);var O=z==="error",M=this._events;if(M!==void 0)O=O&&M.error===void 0;else if(!O)return!1;if(O){var T;if(w.length>0&&(T=w[0]),T instanceof Error)throw T;var B=new Error("Unhandled error."+(T?" ("+T.message+")":""));throw B.context=T,B}var H=M[z];if(H===void 0)return!1;if(typeof H=="function")t(H,this,w);else for(var N=H.length,J=m(H,N),j=0;j<N;++j)t(J[j],this,w);return!0};function c(z,w,j,O){var M,T,B;if(s(j),T=z._events,T===void 0?(T=z._events=Object.create(null),z._eventsCount=0):(T.newListener!==void 0&&(z.emit("newListener",w,j.listener?j.listener:j),T=z._events),B=T[w]),B===void 0)B=T[w]=j,++z._eventsCount;else if(typeof B=="function"?B=T[w]=O?[j,B]:[B,j]:O?B.unshift(j):B.push(j),M=l(z),M>0&&B.length>M&&!B.warned){B.warned=!0;var H=new Error("Possible EventEmitter memory leak detected. "+B.length+" "+String(w)+" listeners added. Use emitter.setMaxListeners() to increase limit");H.name="MaxListenersExceededWarning",H.emitter=z,H.type=w,H.count=B.length,r(H)}return z}i.prototype.addListener=function(z,w){return c(this,z,w,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(z,w){return c(this,z,w,!0)};function u(){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 d(z,w,j){var O={fired:!1,wrapFn:void 0,target:z,type:w,listener:j},M=u.bind(O);return M.listener=j,O.wrapFn=M,M}i.prototype.once=function(z,w){return s(w),this.on(z,d(this,z,w)),this},i.prototype.prependOnceListener=function(z,w){return s(w),this.prependListener(z,d(this,z,w)),this},i.prototype.removeListener=function(z,w){var j,O,M,T,B;if(s(w),O=this._events,O===void 0)return this;if(j=O[z],j===void 0)return this;if(j===w||j.listener===w)--this._eventsCount===0?this._events=Object.create(null):(delete O[z],O.removeListener&&this.emit("removeListener",z,j.listener||w));else if(typeof j!="function"){for(M=-1,T=j.length-1;T>=0;T--)if(j[T]===w||j[T].listener===w){B=j[T].listener,M=T;break}if(M<0)return this;M===0?j.shift():v(j,M),j.length===1&&(O[z]=j[0]),O.removeListener!==void 0&&this.emit("removeListener",z,B||w)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(z){var w,j,O;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[z]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete j[z]),this;if(arguments.length===0){var M=Object.keys(j),T;for(O=0;O<M.length;++O)T=M[O],T!=="removeListener"&&this.removeAllListeners(T);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(w=j[z],typeof w=="function")this.removeListener(z,w);else if(w!==void 0)for(O=w.length-1;O>=0;O--)this.removeListener(z,w[O]);return this};function p(z,w,j){var O=z._events;if(O===void 0)return[];var M=O[w];return M===void 0?[]:typeof M=="function"?j?[M.listener||M]:[M]:j?g(M):m(M,M.length)}i.prototype.listeners=function(z){return p(this,z,!0)},i.prototype.rawListeners=function(z){return p(this,z,!1)},i.listenerCount=function(z,w){return typeof z.listenerCount=="function"?z.listenerCount(w):h.call(z,w)},i.prototype.listenerCount=h;function h(z){var w=this._events;if(w!==void 0){var j=w[z];if(typeof j=="function")return 1;if(j!==void 0)return j.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]};function m(z,w){for(var j=new Array(w),O=0;O<w;++O)j[O]=z[O];return j}function v(z,w){for(;w+1<z.length;w++)z[w]=z[w+1];z.pop()}function g(z){for(var w=new Array(z.length),j=0;j<w.length;++j)w[j]=z[j].listener||z[j];return w}function f(z,w){return new Promise(function(j,O){function M(B){z.removeListener(w,T),O(B)}function T(){typeof z.removeListener=="function"&&z.removeListener("error",M),j([].slice.call(arguments))}x(z,w,T,{once:!0}),w!=="error"&&k(z,M,{once:!0})})}function k(z,w,j){typeof z.on=="function"&&x(z,"error",w,j)}function x(z,w,j,O){if(typeof z.on=="function")O.once?z.once(w,j):z.on(w,j);else if(typeof z.addEventListener=="function")z.addEventListener(w,function M(T){O.once&&z.removeEventListener(w,M),j(T)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof z)}return DC.exports}var uhe,dhe;function phe(){return dhe||(dhe=1,uhe=p0t().EventEmitter),uhe}const hhe=iJ(j6);var x9,mhe;function h0t(){if(mhe)return x9;mhe=1;function e(m,v){var g=Object.keys(m);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(m);v&&(f=f.filter(function(k){return Object.getOwnPropertyDescriptor(m,k).enumerable})),g.push.apply(g,f)}return g}function t(m){for(var v=1;v<arguments.length;v++){var g=arguments[v]!=null?arguments[v]:{};v%2?e(Object(g),!0).forEach(function(f){a(m,f,g[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(g)):e(Object(g)).forEach(function(f){Object.defineProperty(m,f,Object.getOwnPropertyDescriptor(g,f))})}return m}function a(m,v,g){return v=o(v),v in m?Object.defineProperty(m,v,{value:g,enumerable:!0,configurable:!0,writable:!0}):m[v]=g,m}function r(m,v){if(!(m instanceof v))throw new TypeError("Cannot call a class as a function")}function n(m,v){for(var g=0;g<v.length;g++){var f=v[g];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(m,o(f.key),f)}}function i(m,v,g){return v&&n(m.prototype,v),Object.defineProperty(m,"prototype",{writable:!1}),m}function o(m){var v=s(m,"string");return typeof v=="symbol"?v:String(v)}function s(m,v){if(typeof m!="object"||m===null)return m;var g=m[Symbol.toPrimitive];if(g!==void 0){var f=g.call(m,v);if(typeof f!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(m)}var l=y1(),c=l.Buffer,u=hhe,d=u.inspect,p=d&&d.custom||"inspect";function h(m,v,g){c.prototype.copy.call(m,v,g)}return x9=(function(){function m(){r(this,m),this.head=null,this.tail=null,this.length=0}return i(m,[{key:"push",value:function(v){var g={data:v,next:null};this.length>0?this.tail.next=g:this.head=g,this.tail=g,++this.length}},{key:"unshift",value:function(v){var g={data:v,next:this.head};this.length===0&&(this.tail=g),this.head=g,++this.length}},{key:"shift",value:function(){if(this.length!==0){var v=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,v}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(v){if(this.length===0)return"";for(var g=this.head,f=""+g.data;g=g.next;)f+=v+g.data;return f}},{key:"concat",value:function(v){if(this.length===0)return c.alloc(0);for(var g=c.allocUnsafe(v>>>0),f=this.head,k=0;f;)h(f.data,g,k),k+=f.data.length,f=f.next;return g}},{key:"consume",value:function(v,g){var f;return v<this.head.data.length?(f=this.head.data.slice(0,v),this.head.data=this.head.data.slice(v)):v===this.head.data.length?f=this.shift():f=g?this._getString(v):this._getBuffer(v),f}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(v){var g=this.head,f=1,k=g.data;for(v-=k.length;g=g.next;){var x=g.data,z=v>x.length?x.length:v;if(z===x.length?k+=x:k+=x.slice(0,v),v-=z,v===0){z===x.length?(++f,g.next?this.head=g.next:this.head=this.tail=null):(this.head=g,g.data=x.slice(z));break}++f}return this.length-=f,k}},{key:"_getBuffer",value:function(v){var g=c.allocUnsafe(v),f=this.head,k=1;for(f.data.copy(g),v-=f.data.length;f=f.next;){var x=f.data,z=v>x.length?x.length:v;if(x.copy(g,g.length-v,0,z),v-=z,v===0){z===x.length?(++k,f.next?this.head=f.next:this.head=this.tail=null):(this.head=f,f.data=x.slice(z));break}++k}return this.length-=k,g}},{key:p,value:function(v,g){return d(this,t(t({},g),{},{depth:0,customInspect:!1}))}}]),m})(),x9}var w9,fhe;function ghe(){if(fhe)return w9;fhe=1;function e(o,s){var l=this,c=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return c||u?(s?s(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(n,this,o)):process.nextTick(n,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(d){!s&&d?l._writableState?l._writableState.errorEmitted?process.nextTick(a,l):(l._writableState.errorEmitted=!0,process.nextTick(t,l,d)):process.nextTick(t,l,d):s?(process.nextTick(a,l),s(d)):process.nextTick(a,l)}),this)}function t(o,s){n(o,s),a(o)}function a(o){o._writableState&&!o._writableState.emitClose||o._readableState&&!o._readableState.emitClose||o.emit("close")}function r(){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 n(o,s){o.emit("error",s)}function i(o,s){var l=o._readableState,c=o._writableState;l&&l.autoDestroy||c&&c.autoDestroy?o.destroy(s):o.emit("error",s)}return w9={destroy:e,undestroy:r,errorOrDestroy:i},w9}var S9={},vhe;function Bv(){if(vhe)return S9;vhe=1;function e(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,s.__proto__=l}var t={};function a(s,l,c){c||(c=Error);function u(p,h,m){return typeof l=="string"?l:l(p,h,m)}var d=(function(p){e(h,p);function h(m,v,g){return p.call(this,u(m,v,g))||this}return h})(c);d.prototype.name=c.name,d.prototype.code=s,t[s]=d}function r(s,l){if(Array.isArray(s)){var c=s.length;return s=s.map(function(u){return String(u)}),c>2?"one of ".concat(l," ").concat(s.slice(0,c-1).join(", "),", or ")+s[c-1]:c===2?"one of ".concat(l," ").concat(s[0]," or ").concat(s[1]):"of ".concat(l," ").concat(s[0])}else return"of ".concat(l," ").concat(String(s))}function n(s,l,c){return s.substr(0,l.length)===l}function i(s,l,c){return(c===void 0||c>s.length)&&(c=s.length),s.substring(c-l.length,c)===l}function o(s,l,c){return typeof c!="number"&&(c=0),c+l.length>s.length?!1:s.indexOf(l,c)!==-1}return a("ERR_INVALID_OPT_VALUE",function(s,l){return'The value "'+l+'" is invalid for option "'+s+'"'},TypeError),a("ERR_INVALID_ARG_TYPE",function(s,l,c){var u;typeof l=="string"&&n(l,"not ")?(u="must not be",l=l.replace(/^not /,"")):u="must be";var d;if(i(s," argument"))d="The ".concat(s," ").concat(u," ").concat(r(l,"type"));else{var p=o(s,".")?"property":"argument";d='The "'.concat(s,'" ').concat(p," ").concat(u," ").concat(r(l,"type"))}return d+=". Received type ".concat(typeof c),d},TypeError),a("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),a("ERR_METHOD_NOT_IMPLEMENTED",function(s){return"The "+s+" method is not implemented"}),a("ERR_STREAM_PREMATURE_CLOSE","Premature close"),a("ERR_STREAM_DESTROYED",function(s){return"Cannot call "+s+" after a stream was destroyed"}),a("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),a("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),a("ERR_STREAM_WRITE_AFTER_END","write after end"),a("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),a("ERR_UNKNOWN_ENCODING",function(s){return"Unknown encoding: "+s},TypeError),a("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),S9.codes=t,S9}var z9,bhe;function khe(){if(bhe)return z9;bhe=1;var e=Bv().codes.ERR_INVALID_OPT_VALUE;function t(r,n,i){return r.highWaterMark!=null?r.highWaterMark:n?r[i]:null}function a(r,n,i,o){var s=t(n,o,i);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var l=o?i:"highWaterMark";throw new e(l,s)}return Math.floor(s)}return r.objectMode?16:16*1024}return z9={getHighWaterMark:a},z9}var j9,yhe;function m0t(){if(yhe)return j9;yhe=1,j9=e;function e(a,r){if(t("noDeprecation"))return a;var n=!1;function i(){if(!n){if(t("throwDeprecation"))throw new Error(r);t("traceDeprecation")?console.trace(r):console.warn(r),n=!0}return a.apply(this,arguments)}return i}function t(a){try{if(!globalThis.localStorage)return!1}catch{return!1}var r=globalThis.localStorage[a];return r==null?!1:String(r).toLowerCase()==="true"}return j9}var O9,xhe;function whe(){if(xhe)return O9;xhe=1,O9=M;function e(V){var ae=this;this.next=null,this.entry=null,this.finish=function(){R(ae,V)}}var t;M.WritableState=j;var a={deprecate:m0t()},r=phe(),n=y1().Buffer,i=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function o(V){return n.from(V)}function s(V){return n.isBuffer(V)||V instanceof i}var l=ghe(),c=khe(),u=c.getHighWaterMark,d=Bv().codes,p=d.ERR_INVALID_ARG_TYPE,h=d.ERR_METHOD_NOT_IMPLEMENTED,m=d.ERR_MULTIPLE_CALLBACK,v=d.ERR_STREAM_CANNOT_PIPE,g=d.ERR_STREAM_DESTROYED,f=d.ERR_STREAM_NULL_VALUES,k=d.ERR_STREAM_WRITE_AFTER_END,x=d.ERR_UNKNOWN_ENCODING,z=l.errorOrDestroy;function w(){}function j(V,ae,U){t=t||Lv(),V=V||{},typeof U!="boolean"&&(U=ae instanceof t),this.objectMode=!!V.objectMode,U&&(this.objectMode=this.objectMode||!!V.writableObjectMode),this.highWaterMark=u(this,V,"writableHighWaterMark",U),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var pe=V.decodeStrings===!1;this.decodeStrings=!pe,this.defaultEncoding=V.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Z){re(ae,Z)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=V.emitClose!==!1,this.autoDestroy=!!V.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}j.prototype.getBuffer=function(){for(var V=this.bufferedRequest,ae=[];V;)ae.push(V),V=V.next;return ae},(function(){try{Object.defineProperty(j.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var O;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(O=Function.prototype[Symbol.hasInstance],Object.defineProperty(M,Symbol.hasInstance,{value:function(V){return O.call(this,V)?!0:this!==M?!1:V&&V._writableState instanceof j}})):O=function(V){return V instanceof this};function M(V){t=t||Lv();var ae=this instanceof t;if(!ae&&!O.call(M,this))return new M(V);this._writableState=new j(V,this,ae),this.writable=!0,V&&(typeof V.write=="function"&&(this._write=V.write),typeof V.writev=="function"&&(this._writev=V.writev),typeof V.destroy=="function"&&(this._destroy=V.destroy),typeof V.final=="function"&&(this._final=V.final)),r.call(this)}M.prototype.pipe=function(){z(this,new v)};function T(V,ae){var U=new k;z(V,U),process.nextTick(ae,U)}function B(V,ae,U,pe){var Z;return U===null?Z=new f:typeof U!="string"&&!ae.objectMode&&(Z=new p("chunk",["string","Buffer"],U)),Z?(z(V,Z),process.nextTick(pe,Z),!1):!0}M.prototype.write=function(V,ae,U){var pe=this._writableState,Z=!1,A=!pe.objectMode&&s(V);return A&&!n.isBuffer(V)&&(V=o(V)),typeof ae=="function"&&(U=ae,ae=null),A?ae="buffer":ae||(ae=pe.defaultEncoding),typeof U!="function"&&(U=w),pe.ending?T(this,U):(A||B(this,pe,V,U))&&(pe.pendingcb++,Z=N(this,pe,A,V,ae,U)),Z},M.prototype.cork=function(){this._writableState.corked++},M.prototype.uncork=function(){var V=this._writableState;V.corked&&(V.corked--,!V.writing&&!V.corked&&!V.bufferProcessing&&V.bufferedRequest&&he(this,V))},M.prototype.setDefaultEncoding=function(V){if(typeof V=="string"&&(V=V.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((V+"").toLowerCase())>-1))throw new x(V);return this._writableState.defaultEncoding=V,this},Object.defineProperty(M.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function H(V,ae,U){return!V.objectMode&&V.decodeStrings!==!1&&typeof ae=="string"&&(ae=n.from(ae,U)),ae}Object.defineProperty(M.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function N(V,ae,U,pe,Z,A){if(!U){var L=H(ae,pe,Z);pe!==L&&(U=!0,Z="buffer",pe=L)}var te=ae.objectMode?1:pe.length;ae.length+=te;var F=ae.length<ae.highWaterMark;if(F||(ae.needDrain=!0),ae.writing||ae.corked){var oe=ae.lastBufferedRequest;ae.lastBufferedRequest={chunk:pe,encoding:Z,isBuf:U,callback:A,next:null},oe?oe.next=ae.lastBufferedRequest:ae.bufferedRequest=ae.lastBufferedRequest,ae.bufferedRequestCount+=1}else J(V,ae,!1,te,pe,Z,A);return F}function J(V,ae,U,pe,Z,A,L){ae.writelen=pe,ae.writecb=L,ae.writing=!0,ae.sync=!0,ae.destroyed?ae.onwrite(new g("write")):U?V._writev(Z,ae.onwrite):V._write(Z,A,ae.onwrite),ae.sync=!1}function I(V,ae,U,pe,Z){--ae.pendingcb,U?(process.nextTick(Z,pe),process.nextTick($,V,ae),V._writableState.errorEmitted=!0,z(V,pe)):(Z(pe),V._writableState.errorEmitted=!0,z(V,pe),$(V,ae))}function X(V){V.writing=!1,V.writecb=null,V.length-=V.writelen,V.writelen=0}function re(V,ae){var U=V._writableState,pe=U.sync,Z=U.writecb;if(typeof Z!="function")throw new m;if(X(U),ae)I(V,U,pe,ae,Z);else{var A=G(U)||V.destroyed;!A&&!U.corked&&!U.bufferProcessing&&U.bufferedRequest&&he(V,U),pe?process.nextTick(le,V,U,A,Z):le(V,U,A,Z)}}function le(V,ae,U,pe){U||ie(V,ae),ae.pendingcb--,pe(),$(V,ae)}function ie(V,ae){ae.length===0&&ae.needDrain&&(ae.needDrain=!1,V.emit("drain"))}function he(V,ae){ae.bufferProcessing=!0;var U=ae.bufferedRequest;if(V._writev&&U&&U.next){var pe=ae.bufferedRequestCount,Z=new Array(pe),A=ae.corkedRequestsFree;A.entry=U;for(var L=0,te=!0;U;)Z[L]=U,U.isBuf||(te=!1),U=U.next,L+=1;Z.allBuffers=te,J(V,ae,!0,ae.length,Z,"",A.finish),ae.pendingcb++,ae.lastBufferedRequest=null,A.next?(ae.corkedRequestsFree=A.next,A.next=null):ae.corkedRequestsFree=new e(ae),ae.bufferedRequestCount=0}else{for(;U;){var F=U.chunk,oe=U.encoding,ue=U.callback,Q=ae.objectMode?1:F.length;if(J(V,ae,!1,Q,F,oe,ue),U=U.next,ae.bufferedRequestCount--,ae.writing)break}U===null&&(ae.lastBufferedRequest=null)}ae.bufferedRequest=U,ae.bufferProcessing=!1}M.prototype._write=function(V,ae,U){U(new h("_write()"))},M.prototype._writev=null,M.prototype.end=function(V,ae,U){var pe=this._writableState;return typeof V=="function"?(U=V,V=null,ae=null):typeof ae=="function"&&(U=ae,ae=null),V!=null&&this.write(V,ae),pe.corked&&(pe.corked=1,this.uncork()),pe.ending||P(this,pe,U),this},Object.defineProperty(M.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function G(V){return V.ending&&V.length===0&&V.bufferedRequest===null&&!V.finished&&!V.writing}function D(V,ae){V._final(function(U){ae.pendingcb--,U&&z(V,U),ae.prefinished=!0,V.emit("prefinish"),$(V,ae)})}function W(V,ae){!ae.prefinished&&!ae.finalCalled&&(typeof V._final=="function"&&!ae.destroyed?(ae.pendingcb++,ae.finalCalled=!0,process.nextTick(D,V,ae)):(ae.prefinished=!0,V.emit("prefinish")))}function $(V,ae){var U=G(ae);if(U&&(W(V,ae),ae.pendingcb===0&&(ae.finished=!0,V.emit("finish"),ae.autoDestroy))){var pe=V._readableState;(!pe||pe.autoDestroy&&pe.endEmitted)&&V.destroy()}return U}function P(V,ae,U){ae.ending=!0,$(V,ae),U&&(ae.finished?process.nextTick(U):V.once("finish",U)),ae.ended=!0,V.writable=!1}function R(V,ae,U){var pe=V.entry;for(V.entry=null;pe;){var Z=pe.callback;ae.pendingcb--,Z(U),pe=pe.next}ae.corkedRequestsFree.next=V}return Object.defineProperty(M.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(V){this._writableState&&(this._writableState.destroyed=V)}}),M.prototype.destroy=l.destroy,M.prototype._undestroy=l.undestroy,M.prototype._destroy=function(V,ae){ae(V)},O9}var C9,She;function Lv(){if(She)return C9;She=1;var e=Object.keys||function(c){var u=[];for(var d in c)u.push(d);return u};C9=o;for(var t=Ehe(),a=whe(),r=e(a.prototype),n=0;n<r.length;n++){var i=r[n];o.prototype[i]||(o.prototype[i]=a.prototype[i])}function o(c){if(!(this instanceof o))return new o(c);t.call(this,c),a.call(this,c),this.allowHalfOpen=!0,c&&(c.readable===!1&&(this.readable=!1),c.writable===!1&&(this.writable=!1),c.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",s)))}Object.defineProperty(o.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(o.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(o.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function s(){this._writableState.ended||process.nextTick(l,this)}function l(c){c.end()}return Object.defineProperty(o.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(c){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=c,this._writableState.destroyed=c)}}),C9}var A9={},P9={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var zhe;function f0t(){return zhe||(zhe=1,(function(e,t){var a=y1(),r=a.Buffer;function n(o,s){for(var l in o)s[l]=o[l]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=a:(n(a,t),t.Buffer=i);function i(o,s,l){return r(o,s,l)}i.prototype=Object.create(r.prototype),n(r,i),i.from=function(o,s,l){if(typeof o=="number")throw new TypeError("Argument must not be a number");return r(o,s,l)},i.alloc=function(o,s,l){if(typeof o!="number")throw new TypeError("Argument must be a number");var c=r(o);return s!==void 0?typeof l=="string"?c.fill(s,l):c.fill(s):c.fill(0),c},i.allocUnsafe=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return r(o)},i.allocUnsafeSlow=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return a.SlowBuffer(o)}})(P9,P9.exports)),P9.exports}var jhe;function Ohe(){if(jhe)return A9;jhe=1;var e=f0t().Buffer,t=e.isEncoding||function(f){switch(f=""+f,f&&f.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 a(f){if(!f)return"utf8";for(var k;;)switch(f){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 f;default:if(k)return;f=(""+f).toLowerCase(),k=!0}}function r(f){var k=a(f);if(typeof k!="string"&&(e.isEncoding===t||!t(f)))throw new Error("Unknown encoding: "+f);return k||f}A9.StringDecoder=n;function n(f){this.encoding=r(f);var k;switch(this.encoding){case"utf16le":this.text=d,this.end=p,k=4;break;case"utf8":this.fillLast=l,k=4;break;case"base64":this.text=h,this.end=m,k=3;break;default:this.write=v,this.end=g;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(k)}n.prototype.write=function(f){if(f.length===0)return"";var k,x;if(this.lastNeed){if(k=this.fillLast(f),k===void 0)return"";x=this.lastNeed,this.lastNeed=0}else x=0;return x<f.length?k?k+this.text(f,x):this.text(f,x):k||""},n.prototype.end=u,n.prototype.text=c,n.prototype.fillLast=function(f){if(this.lastNeed<=f.length)return f.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);f.copy(this.lastChar,this.lastTotal-this.lastNeed,0,f.length),this.lastNeed-=f.length};function i(f){return f<=127?0:f>>5===6?2:f>>4===14?3:f>>3===30?4:f>>6===2?-1:-2}function o(f,k,x){var z=k.length-1;if(z<x)return 0;var w=i(k[z]);return w>=0?(w>0&&(f.lastNeed=w-1),w):--z<x||w===-2?0:(w=i(k[z]),w>=0?(w>0&&(f.lastNeed=w-2),w):--z<x||w===-2?0:(w=i(k[z]),w>=0?(w>0&&(w===2?w=0:f.lastNeed=w-3),w):0))}function s(f,k,x){if((k[0]&192)!==128)return f.lastNeed=0,"\uFFFD";if(f.lastNeed>1&&k.length>1){if((k[1]&192)!==128)return f.lastNeed=1,"\uFFFD";if(f.lastNeed>2&&k.length>2&&(k[2]&192)!==128)return f.lastNeed=2,"\uFFFD"}}function l(f){var k=this.lastTotal-this.lastNeed,x=s(this,f);if(x!==void 0)return x;if(this.lastNeed<=f.length)return f.copy(this.lastChar,k,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);f.copy(this.lastChar,k,0,f.length),this.lastNeed-=f.length}function c(f,k){var x=o(this,f,k);if(!this.lastNeed)return f.toString("utf8",k);this.lastTotal=x;var z=f.length-(x-this.lastNeed);return f.copy(this.lastChar,0,z),f.toString("utf8",k,z)}function u(f){var k=f&&f.length?this.write(f):"";return this.lastNeed?k+"\uFFFD":k}function d(f,k){if((f.length-k)%2===0){var x=f.toString("utf16le",k);if(x){var z=x.charCodeAt(x.length-1);if(z>=55296&&z<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=f[f.length-2],this.lastChar[1]=f[f.length-1],x.slice(0,-1)}return x}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=f[f.length-1],f.toString("utf16le",k,f.length-1)}function p(f){var k=f&&f.length?this.write(f):"";if(this.lastNeed){var x=this.lastTotal-this.lastNeed;return k+this.lastChar.toString("utf16le",0,x)}return k}function h(f,k){var x=(f.length-k)%3;return x===0?f.toString("base64",k):(this.lastNeed=3-x,this.lastTotal=3,x===1?this.lastChar[0]=f[f.length-1]:(this.lastChar[0]=f[f.length-2],this.lastChar[1]=f[f.length-1]),f.toString("base64",k,f.length-x))}function m(f){var k=f&&f.length?this.write(f):"";return this.lastNeed?k+this.lastChar.toString("base64",0,3-this.lastNeed):k}function v(f){return f.toString(this.encoding)}function g(f){return f&&f.length?this.write(f):""}return A9}var M9,Che;function T9(){if(Che)return M9;Che=1;var e=Bv().codes.ERR_STREAM_PREMATURE_CLOSE;function t(i){var o=!1;return function(){if(!o){o=!0;for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];i.apply(this,l)}}}function a(){}function r(i){return i.setHeader&&typeof i.abort=="function"}function n(i,o,s){if(typeof o=="function")return n(i,null,o);o||(o={}),s=t(s||a);var l=o.readable||o.readable!==!1&&i.readable,c=o.writable||o.writable!==!1&&i.writable,u=function(){i.writable||p()},d=i._writableState&&i._writableState.finished,p=function(){c=!1,d=!0,l||s.call(i)},h=i._readableState&&i._readableState.endEmitted,m=function(){l=!1,h=!0,c||s.call(i)},v=function(k){s.call(i,k)},g=function(){var k;if(l&&!h)return(!i._readableState||!i._readableState.ended)&&(k=new e),s.call(i,k);if(c&&!d)return(!i._writableState||!i._writableState.ended)&&(k=new e),s.call(i,k)},f=function(){i.req.on("finish",p)};return r(i)?(i.on("complete",p),i.on("abort",g),i.req?f():i.on("request",f)):c&&!i._writableState&&(i.on("end",u),i.on("close",u)),i.on("end",m),i.on("finish",p),o.error!==!1&&i.on("error",v),i.on("close",g),function(){i.removeListener("complete",p),i.removeListener("abort",g),i.removeListener("request",f),i.req&&i.req.removeListener("finish",p),i.removeListener("end",u),i.removeListener("close",u),i.removeListener("finish",p),i.removeListener("end",m),i.removeListener("error",v),i.removeListener("close",g)}}return M9=n,M9}var E9,Ahe;function g0t(){if(Ahe)return E9;Ahe=1;var e;function t(x,z,w){return z=a(z),z in x?Object.defineProperty(x,z,{value:w,enumerable:!0,configurable:!0,writable:!0}):x[z]=w,x}function a(x){var z=r(x,"string");return typeof z=="symbol"?z:String(z)}function r(x,z){if(typeof x!="object"||x===null)return x;var w=x[Symbol.toPrimitive];if(w!==void 0){var j=w.call(x,z);if(typeof j!="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return(z==="string"?String:Number)(x)}var n=T9(),i=Symbol("lastResolve"),o=Symbol("lastReject"),s=Symbol("error"),l=Symbol("ended"),c=Symbol("lastPromise"),u=Symbol("handlePromise"),d=Symbol("stream");function p(x,z){return{value:x,done:z}}function h(x){var z=x[i];if(z!==null){var w=x[d].read();w!==null&&(x[c]=null,x[i]=null,x[o]=null,z(p(w,!1)))}}function m(x){process.nextTick(h,x)}function v(x,z){return function(w,j){x.then(function(){if(z[l]){w(p(void 0,!0));return}z[u](w,j)},j)}}var g=Object.getPrototypeOf(function(){}),f=Object.setPrototypeOf((e={get stream(){return this[d]},next:function(){var x=this,z=this[s];if(z!==null)return Promise.reject(z);if(this[l])return Promise.resolve(p(void 0,!0));if(this[d].destroyed)return new Promise(function(M,T){process.nextTick(function(){x[s]?T(x[s]):M(p(void 0,!0))})});var w=this[c],j;if(w)j=new Promise(v(w,this));else{var O=this[d].read();if(O!==null)return Promise.resolve(p(O,!1));j=new Promise(this[u])}return this[c]=j,j}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var x=this;return new Promise(function(z,w){x[d].destroy(null,function(j){if(j){w(j);return}z(p(void 0,!0))})})}),e),g),k=function(x){var z,w=Object.create(f,(z={},t(z,d,{value:x,writable:!0}),t(z,i,{value:null,writable:!0}),t(z,o,{value:null,writable:!0}),t(z,s,{value:null,writable:!0}),t(z,l,{value:x._readableState.endEmitted,writable:!0}),t(z,u,{value:function(j,O){var M=w[d].read();M?(w[c]=null,w[i]=null,w[o]=null,j(p(M,!1))):(w[i]=j,w[o]=O)},writable:!0}),z));return w[c]=null,n(x,function(j){if(j&&j.code!=="ERR_STREAM_PREMATURE_CLOSE"){var O=w[o];O!==null&&(w[c]=null,w[i]=null,w[o]=null,O(j)),w[s]=j;return}var M=w[i];M!==null&&(w[c]=null,w[i]=null,w[o]=null,M(p(void 0,!0))),w[l]=!0}),x.on("readable",m.bind(null,w)),w};return E9=k,E9}var Phe,Mhe;function v0t(){return Mhe||(Mhe=1,Phe=function(){throw new Error("Readable.from is not available in the browser")}),Phe}var _9,The;function Ehe(){if(The)return _9;The=1,_9=T;var e;T.ReadableState=M;var t=function(A,L){return A.listeners(L).length},a=phe(),r=y1().Buffer,n=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function i(A){return r.from(A)}function o(A){return r.isBuffer(A)||A instanceof n}var s=hhe,l;s&&s.debuglog?l=s.debuglog("stream"):l=function(){};var c=h0t(),u=ghe(),d=khe(),p=d.getHighWaterMark,h=Bv().codes,m=h.ERR_INVALID_ARG_TYPE,v=h.ERR_STREAM_PUSH_AFTER_EOF,g=h.ERR_METHOD_NOT_IMPLEMENTED,f=h.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,k,x,z,w=u.errorOrDestroy,j=["error","close","destroy","pause","resume"];function O(A,L,te){if(typeof A.prependListener=="function")return A.prependListener(L,te);!A._events||!A._events[L]?A.on(L,te):Array.isArray(A._events[L])?A._events[L].unshift(te):A._events[L]=[te,A._events[L]]}function M(A,L,te){e=e||Lv(),A=A||{},typeof te!="boolean"&&(te=L instanceof e),this.objectMode=!!A.objectMode,te&&(this.objectMode=this.objectMode||!!A.readableObjectMode),this.highWaterMark=p(this,A,"readableHighWaterMark",te),this.buffer=new c,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=A.emitClose!==!1,this.autoDestroy=!!A.autoDestroy,this.destroyed=!1,this.defaultEncoding=A.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,A.encoding&&(k||(k=Ohe().StringDecoder),this.decoder=new k(A.encoding),this.encoding=A.encoding)}function T(A){if(e=e||Lv(),!(this instanceof T))return new T(A);var L=this instanceof e;this._readableState=new M(A,this,L),this.readable=!0,A&&(typeof A.read=="function"&&(this._read=A.read),typeof A.destroy=="function"&&(this._destroy=A.destroy)),a.call(this)}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(A){this._readableState&&(this._readableState.destroyed=A)}}),T.prototype.destroy=u.destroy,T.prototype._undestroy=u.undestroy,T.prototype._destroy=function(A,L){L(A)},T.prototype.push=function(A,L){var te=this._readableState,F;return te.objectMode?F=!0:typeof A=="string"&&(L=L||te.defaultEncoding,L!==te.encoding&&(A=r.from(A,L),L=""),F=!0),B(this,A,L,!1,F)},T.prototype.unshift=function(A){return B(this,A,null,!0,!1)};function B(A,L,te,F,oe){l("readableAddChunk",L);var ue=A._readableState;if(L===null)ue.reading=!1,re(A,ue);else{var Q;if(oe||(Q=N(ue,L)),Q)w(A,Q);else if(ue.objectMode||L&&L.length>0)if(typeof L!="string"&&!ue.objectMode&&Object.getPrototypeOf(L)!==r.prototype&&(L=i(L)),F)ue.endEmitted?w(A,new f):H(A,ue,L,!0);else if(ue.ended)w(A,new v);else{if(ue.destroyed)return!1;ue.reading=!1,ue.decoder&&!te?(L=ue.decoder.write(L),ue.objectMode||L.length!==0?H(A,ue,L,!1):he(A,ue)):H(A,ue,L,!1)}else F||(ue.reading=!1,he(A,ue))}return!ue.ended&&(ue.length<ue.highWaterMark||ue.length===0)}function H(A,L,te,F){L.flowing&&L.length===0&&!L.sync?(L.awaitDrain=0,A.emit("data",te)):(L.length+=L.objectMode?1:te.length,F?L.buffer.unshift(te):L.buffer.push(te),L.needReadable&&le(A)),he(A,L)}function N(A,L){var te;return!o(L)&&typeof L!="string"&&L!==void 0&&!A.objectMode&&(te=new m("chunk",["string","Buffer","Uint8Array"],L)),te}T.prototype.isPaused=function(){return this._readableState.flowing===!1},T.prototype.setEncoding=function(A){k||(k=Ohe().StringDecoder);var L=new k(A);this._readableState.decoder=L,this._readableState.encoding=this._readableState.decoder.encoding;for(var te=this._readableState.buffer.head,F="";te!==null;)F+=L.write(te.data),te=te.next;return this._readableState.buffer.clear(),F!==""&&this._readableState.buffer.push(F),this._readableState.length=F.length,this};var J=1073741824;function I(A){return A>=J?A=J:(A--,A|=A>>>1,A|=A>>>2,A|=A>>>4,A|=A>>>8,A|=A>>>16,A++),A}function X(A,L){return A<=0||L.length===0&&L.ended?0:L.objectMode?1:A!==A?L.flowing&&L.length?L.buffer.head.data.length:L.length:(A>L.highWaterMark&&(L.highWaterMark=I(A)),A<=L.length?A:L.ended?L.length:(L.needReadable=!0,0))}T.prototype.read=function(A){l("read",A),A=parseInt(A,10);var L=this._readableState,te=A;if(A!==0&&(L.emittedReadable=!1),A===0&&L.needReadable&&((L.highWaterMark!==0?L.length>=L.highWaterMark:L.length>0)||L.ended))return l("read: emitReadable",L.length,L.ended),L.length===0&&L.ended?U(this):le(this),null;if(A=X(A,L),A===0&&L.ended)return L.length===0&&U(this),null;var F=L.needReadable;l("need readable",F),(L.length===0||L.length-A<L.highWaterMark)&&(F=!0,l("length less than watermark",F)),L.ended||L.reading?(F=!1,l("reading or ended",F)):F&&(l("do read"),L.reading=!0,L.sync=!0,L.length===0&&(L.needReadable=!0),this._read(L.highWaterMark),L.sync=!1,L.reading||(A=X(te,L)));var oe;return A>0?oe=ae(A,L):oe=null,oe===null?(L.needReadable=L.length<=L.highWaterMark,A=0):(L.length-=A,L.awaitDrain=0),L.length===0&&(L.ended||(L.needReadable=!0),te!==A&&L.ended&&U(this)),oe!==null&&this.emit("data",oe),oe};function re(A,L){if(l("onEofChunk"),!L.ended){if(L.decoder){var te=L.decoder.end();te&&te.length&&(L.buffer.push(te),L.length+=L.objectMode?1:te.length)}L.ended=!0,L.sync?le(A):(L.needReadable=!1,L.emittedReadable||(L.emittedReadable=!0,ie(A)))}}function le(A){var L=A._readableState;l("emitReadable",L.needReadable,L.emittedReadable),L.needReadable=!1,L.emittedReadable||(l("emitReadable",L.flowing),L.emittedReadable=!0,process.nextTick(ie,A))}function ie(A){var L=A._readableState;l("emitReadable_",L.destroyed,L.length,L.ended),!L.destroyed&&(L.length||L.ended)&&(A.emit("readable"),L.emittedReadable=!1),L.needReadable=!L.flowing&&!L.ended&&L.length<=L.highWaterMark,V(A)}function he(A,L){L.readingMore||(L.readingMore=!0,process.nextTick(G,A,L))}function G(A,L){for(;!L.reading&&!L.ended&&(L.length<L.highWaterMark||L.flowing&&L.length===0);){var te=L.length;if(l("maybeReadMore read 0"),A.read(0),te===L.length)break}L.readingMore=!1}T.prototype._read=function(A){w(this,new g("_read()"))},T.prototype.pipe=function(A,L){var te=this,F=this._readableState;switch(F.pipesCount){case 0:F.pipes=A;break;case 1:F.pipes=[F.pipes,A];break;default:F.pipes.push(A);break}F.pipesCount+=1,l("pipe count=%d opts=%j",F.pipesCount,L);var oe=(!L||L.end!==!1)&&A!==null&&A!==process.stderr,ue=oe?se:Ue;F.endEmitted?process.nextTick(ue):te.once("end",ue),A.on("unpipe",Q);function Q(_,ne){l("onunpipe"),_===te&&ne&&ne.hasUnpiped===!1&&(ne.hasUnpiped=!0,ge())}function se(){l("onend"),A.end()}var de=D(te);A.on("drain",de);var ke=!1;function ge(){l("cleanup"),A.removeListener("close",ze),A.removeListener("finish",Ae),A.removeListener("drain",de),A.removeListener("error",ve),A.removeListener("unpipe",Q),te.removeListener("end",se),te.removeListener("end",Ue),te.removeListener("data",me),ke=!0,F.awaitDrain&&(!A._writableState||A._writableState.needDrain)&&de()}te.on("data",me);function me(_){l("ondata");var ne=A.write(_);l("dest.write",ne),ne===!1&&((F.pipesCount===1&&F.pipes===A||F.pipesCount>1&&Z(F.pipes,A)!==-1)&&!ke&&(l("false write response, pause",F.awaitDrain),F.awaitDrain++),te.pause())}function ve(_){l("onerror",_),Ue(),A.removeListener("error",ve),t(A,"error")===0&&w(A,_)}O(A,"error",ve);function ze(){A.removeListener("finish",Ae),Ue()}A.once("close",ze);function Ae(){l("onfinish"),A.removeListener("close",ze),Ue()}A.once("finish",Ae);function Ue(){l("unpipe"),te.unpipe(A)}return A.emit("pipe",te),F.flowing||(l("pipe resume"),te.resume()),A};function D(A){return function(){var L=A._readableState;l("pipeOnDrain",L.awaitDrain),L.awaitDrain&&L.awaitDrain--,L.awaitDrain===0&&t(A,"data")&&(L.flowing=!0,V(A))}}T.prototype.unpipe=function(A){var L=this._readableState,te={hasUnpiped:!1};if(L.pipesCount===0)return this;if(L.pipesCount===1)return A&&A!==L.pipes?this:(A||(A=L.pipes),L.pipes=null,L.pipesCount=0,L.flowing=!1,A&&A.emit("unpipe",this,te),this);if(!A){var F=L.pipes,oe=L.pipesCount;L.pipes=null,L.pipesCount=0,L.flowing=!1;for(var ue=0;ue<oe;ue++)F[ue].emit("unpipe",this,{hasUnpiped:!1});return this}var Q=Z(L.pipes,A);return Q===-1?this:(L.pipes.splice(Q,1),L.pipesCount-=1,L.pipesCount===1&&(L.pipes=L.pipes[0]),A.emit("unpipe",this,te),this)},T.prototype.on=function(A,L){var te=a.prototype.on.call(this,A,L),F=this._readableState;return A==="data"?(F.readableListening=this.listenerCount("readable")>0,F.flowing!==!1&&this.resume()):A==="readable"&&!F.endEmitted&&!F.readableListening&&(F.readableListening=F.needReadable=!0,F.flowing=!1,F.emittedReadable=!1,l("on readable",F.length,F.reading),F.length?le(this):F.reading||process.nextTick($,this)),te},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(A,L){var te=a.prototype.removeListener.call(this,A,L);return A==="readable"&&process.nextTick(W,this),te},T.prototype.removeAllListeners=function(A){var L=a.prototype.removeAllListeners.apply(this,arguments);return(A==="readable"||A===void 0)&&process.nextTick(W,this),L};function W(A){var L=A._readableState;L.readableListening=A.listenerCount("readable")>0,L.resumeScheduled&&!L.paused?L.flowing=!0:A.listenerCount("data")>0&&A.resume()}function $(A){l("readable nexttick read 0"),A.read(0)}T.prototype.resume=function(){var A=this._readableState;return A.flowing||(l("resume"),A.flowing=!A.readableListening,P(this,A)),A.paused=!1,this};function P(A,L){L.resumeScheduled||(L.resumeScheduled=!0,process.nextTick(R,A,L))}function R(A,L){l("resume",L.reading),L.reading||A.read(0),L.resumeScheduled=!1,A.emit("resume"),V(A),L.flowing&&!L.reading&&A.read(0)}T.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function V(A){var L=A._readableState;for(l("flow",L.flowing);L.flowing&&A.read()!==null;);}T.prototype.wrap=function(A){var L=this,te=this._readableState,F=!1;A.on("end",function(){if(l("wrapped end"),te.decoder&&!te.ended){var Q=te.decoder.end();Q&&Q.length&&L.push(Q)}L.push(null)}),A.on("data",function(Q){if(l("wrapped data"),te.decoder&&(Q=te.decoder.write(Q)),!(te.objectMode&&Q==null)&&!(!te.objectMode&&(!Q||!Q.length))){var se=L.push(Q);se||(F=!0,A.pause())}});for(var oe in A)this[oe]===void 0&&typeof A[oe]=="function"&&(this[oe]=(function(Q){return function(){return A[Q].apply(A,arguments)}})(oe));for(var ue=0;ue<j.length;ue++)A.on(j[ue],this.emit.bind(this,j[ue]));return this._read=function(Q){l("wrapped _read",Q),F&&(F=!1,A.resume())},this},typeof Symbol=="function"&&(T.prototype[Symbol.asyncIterator]=function(){return x===void 0&&(x=g0t()),x(this)}),Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(A){this._readableState&&(this._readableState.flowing=A)}}),T._fromList=ae,Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function ae(A,L){if(L.length===0)return null;var te;return L.objectMode?te=L.buffer.shift():!A||A>=L.length?(L.decoder?te=L.buffer.join(""):L.buffer.length===1?te=L.buffer.first():te=L.buffer.concat(L.length),L.buffer.clear()):te=L.buffer.consume(A,L.decoder),te}function U(A){var L=A._readableState;l("endReadable",L.endEmitted),L.endEmitted||(L.ended=!0,process.nextTick(pe,L,A))}function pe(A,L){if(l("endReadableNT",A.endEmitted,A.length),!A.endEmitted&&A.length===0&&(A.endEmitted=!0,L.readable=!1,L.emit("end"),A.autoDestroy)){var te=L._writableState;(!te||te.autoDestroy&&te.finished)&&L.destroy()}}typeof Symbol=="function"&&(T.from=function(A,L){return z===void 0&&(z=v0t()),z(T,A,L)});function Z(A,L){for(var te=0,F=A.length;te<F;te++)if(A[te]===L)return te;return-1}return _9}var R9,_he;function Rhe(){if(_he)return R9;_he=1,R9=s;var e=Bv().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,a=e.ERR_MULTIPLE_CALLBACK,r=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,n=e.ERR_TRANSFORM_WITH_LENGTH_0,i=Lv();function o(u,d){var p=this._transformState;p.transforming=!1;var h=p.writecb;if(h===null)return this.emit("error",new a);p.writechunk=null,p.writecb=null,d!=null&&this.push(d),h(u);var m=this._readableState;m.reading=!1,(m.needReadable||m.length<m.highWaterMark)&&this._read(m.highWaterMark)}function s(u){if(!(this instanceof s))return new s(u);i.call(this,u),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,u&&(typeof u.transform=="function"&&(this._transform=u.transform),typeof u.flush=="function"&&(this._flush=u.flush)),this.on("prefinish",l)}function l(){var u=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(d,p){c(u,d,p)}):c(this,null,null)}s.prototype.push=function(u,d){return this._transformState.needTransform=!1,i.prototype.push.call(this,u,d)},s.prototype._transform=function(u,d,p){p(new t("_transform()"))},s.prototype._write=function(u,d,p){var h=this._transformState;if(h.writecb=p,h.writechunk=u,h.writeencoding=d,!h.transforming){var m=this._readableState;(h.needTransform||m.needReadable||m.length<m.highWaterMark)&&this._read(m.highWaterMark)}},s.prototype._read=function(u){var d=this._transformState;d.writechunk!==null&&!d.transforming?(d.transforming=!0,this._transform(d.writechunk,d.writeencoding,d.afterTransform)):d.needTransform=!0},s.prototype._destroy=function(u,d){i.prototype._destroy.call(this,u,function(p){d(p)})};function c(u,d,p){if(d)return u.emit("error",d);if(p!=null&&u.push(p),u._writableState.length)throw new n;if(u._transformState.transforming)throw new r;return u.push(null)}return R9}var B9,Bhe;function b0t(){if(Bhe)return B9;Bhe=1,B9=t;var e=Rhe();function t(a){if(!(this instanceof t))return new t(a);e.call(this,a)}return t.prototype._transform=function(a,r,n){n(null,a)},B9}var L9,Lhe;function k0t(){if(Lhe)return L9;Lhe=1;var e;function t(p){var h=!1;return function(){h||(h=!0,p.apply(void 0,arguments))}}var a=Bv().codes,r=a.ERR_MISSING_ARGS,n=a.ERR_STREAM_DESTROYED;function i(p){if(p)throw p}function o(p){return p.setHeader&&typeof p.abort=="function"}function s(p,h,m,v){v=t(v);var g=!1;p.on("close",function(){g=!0}),e===void 0&&(e=T9()),e(p,{readable:h,writable:m},function(k){if(k)return v(k);g=!0,v()});var f=!1;return function(k){if(!g&&!f){if(f=!0,o(p))return p.abort();if(typeof p.destroy=="function")return p.destroy();v(k||new n("pipe"))}}}function l(p){p()}function c(p,h){return p.pipe(h)}function u(p){return!p.length||typeof p[p.length-1]!="function"?i:p.pop()}function d(){for(var p=arguments.length,h=new Array(p),m=0;m<p;m++)h[m]=arguments[m];var v=u(h);if(Array.isArray(h[0])&&(h=h[0]),h.length<2)throw new r("streams");var g,f=h.map(function(k,x){var z=x<h.length-1,w=x>0;return s(k,z,w,function(j){g||(g=j),j&&f.forEach(l),!z&&(f.forEach(l),v(g))})});return h.reduce(c)}return L9=d,L9}var Nhe;function Dhe(){return Nhe||(Nhe=1,(function(e,t){t=e.exports=Ehe(),t.Stream=t,t.Readable=t,t.Writable=whe(),t.Duplex=Lv(),t.Transform=Rhe(),t.PassThrough=b0t(),t.finished=T9(),t.pipeline=k0t()})(y9,y9.exports)),y9.exports}var $he;function Ihe(){if($he)return NC;$he=1;var e=lhe(),t=uL(),a=Dhe(),r=NC.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},n=NC.IncomingMessage=function(i,o,s,l){var c=this;if(a.Readable.call(c),c._mode=s,c.headers={},c.rawHeaders=[],c.trailers={},c.rawTrailers=[],c.on("end",function(){process.nextTick(function(){c.emit("close")})}),s==="fetch"){let v=function(){d.read().then(function(g){if(!c._destroyed){if(l(g.done),g.done){c.push(null);return}c.push(Buffer.from(g.value)),v()}}).catch(function(g){l(!0),c._destroyed||c.emit("error",g)})};if(c._fetchResponse=o,c.url=o.url,c.statusCode=o.status,c.statusMessage=o.statusText,o.headers.forEach(function(g,f){c.headers[f.toLowerCase()]=g,c.rawHeaders.push(f,g)}),e.writableStream){var u=new WritableStream({write:function(g){return l(!1),new Promise(function(f,k){c._destroyed?k():c.push(Buffer.from(g))?f():c._resumeFetch=f})},close:function(){l(!0),c._destroyed||c.push(null)},abort:function(g){l(!0),c._destroyed||c.emit("error",g)}});try{o.body.pipeTo(u).catch(function(g){l(!0),c._destroyed||c.emit("error",g)});return}catch{}}var d=o.body.getReader();v()}else{c._xhr=i,c._pos=0,c.url=i.responseURL,c.statusCode=i.status,c.statusMessage=i.statusText;var p=i.getAllResponseHeaders().split(/\r?\n/);if(p.forEach(function(v){var g=v.match(/^([^:]+):\s*(.*)/);if(g){var f=g[1].toLowerCase();f==="set-cookie"?(c.headers[f]===void 0&&(c.headers[f]=[]),c.headers[f].push(g[2])):c.headers[f]!==void 0?c.headers[f]+=", "+g[2]:c.headers[f]=g[2],c.rawHeaders.push(g[1],g[2])}}),c._charset="x-user-defined",!e.overrideMimeType){var h=c.rawHeaders["mime-type"];if(h){var m=h.match(/;\s*charset=([^;])(;|$)/);m&&(c._charset=m[1].toLowerCase())}c._charset||(c._charset="utf-8")}}};return t(n,a.Readable),n.prototype._read=function(){var i=this,o=i._resumeFetch;o&&(i._resumeFetch=null,o())},n.prototype._onXHRProgress=function(i){var o=this,s=o._xhr,l=null;switch(o._mode){case"text":if(l=s.responseText,l.length>o._pos){var c=l.substr(o._pos);if(o._charset==="x-user-defined"){for(var u=Buffer.alloc(c.length),d=0;d<c.length;d++)u[d]=c.charCodeAt(d)&255;o.push(u)}else o.push(c,o._charset);o._pos=l.length}break;case"arraybuffer":if(s.readyState!==r.DONE||!s.response)break;l=s.response,o.push(Buffer.from(new Uint8Array(l)));break;case"moz-chunked-arraybuffer":if(l=s.response,s.readyState!==r.LOADING||!l)break;o.push(Buffer.from(new Uint8Array(l)));break;case"ms-stream":if(l=s.response,s.readyState!==r.LOADING)break;var p=new globalThis.MSStreamReader;p.onprogress=function(){p.result.byteLength>o._pos&&(o.push(Buffer.from(new Uint8Array(p.result.slice(o._pos)))),o._pos=p.result.byteLength)},p.onload=function(){i(!0),o.push(null)},p.readAsArrayBuffer(l);break}o._xhr.readyState===r.DONE&&o._mode!=="ms-stream"&&(i(!0),o.push(null))},NC}var Khe;function y0t(){if(Khe)return k9.exports;Khe=1;var e=lhe(),t=uL(),a=Ihe(),r=Dhe(),n=a.IncomingMessage,i=a.readyStates;function o(u,d){return e.fetch&&d?"fetch":e.mozchunkedarraybuffer?"moz-chunked-arraybuffer":e.msstream?"ms-stream":e.arraybuffer&&u?"arraybuffer":"text"}var s=k9.exports=function(u){var d=this;r.Writable.call(d),d._opts=u,d._body=[],d._headers={},u.auth&&d.setHeader("Authorization","Basic "+Buffer.from(u.auth).toString("base64")),Object.keys(u.headers).forEach(function(m){d.setHeader(m,u.headers[m])});var p,h=!0;if(u.mode==="disable-fetch"||"requestTimeout"in u&&!e.abortController)h=!1,p=!0;else if(u.mode==="prefer-streaming")p=!1;else if(u.mode==="allow-wrong-content-type")p=!e.overrideMimeType;else if(!u.mode||u.mode==="default"||u.mode==="prefer-fast")p=!0;else throw new Error("Invalid value for opts.mode");d._mode=o(p,h),d._fetchTimer=null,d._socketTimeout=null,d._socketTimer=null,d.on("finish",function(){d._onFinish()})};t(s,r.Writable),s.prototype.setHeader=function(u,d){var p=this,h=u.toLowerCase();c.indexOf(h)===-1&&(p._headers[h]={name:u,value:d})},s.prototype.getHeader=function(u){var d=this._headers[u.toLowerCase()];return d?d.value:null},s.prototype.removeHeader=function(u){var d=this;delete d._headers[u.toLowerCase()]},s.prototype._onFinish=function(){var u=this;if(!u._destroyed){var d=u._opts;"timeout"in d&&d.timeout!==0&&u.setTimeout(d.timeout);var p=u._headers,h=null;d.method!=="GET"&&d.method!=="HEAD"&&(h=new Blob(u._body,{type:(p["content-type"]||{}).value||""}));var m=[];if(Object.keys(p).forEach(function(k){var x=p[k].name,z=p[k].value;Array.isArray(z)?z.forEach(function(w){m.push([x,w])}):m.push([x,z])}),u._mode==="fetch"){var v=null;if(e.abortController){var g=new AbortController;v=g.signal,u._fetchAbortController=g,"requestTimeout"in d&&d.requestTimeout!==0&&(u._fetchTimer=globalThis.setTimeout(function(){u.emit("requestTimeout"),u._fetchAbortController&&u._fetchAbortController.abort()},d.requestTimeout))}globalThis.fetch(u._opts.url,{method:u._opts.method,headers:m,body:h||void 0,mode:"cors",credentials:d.withCredentials?"include":"same-origin",signal:v}).then(function(k){u._fetchResponse=k,u._resetTimers(!1),u._connect()},function(k){u._resetTimers(!0),u._destroyed||u.emit("error",k)})}else{var f=u._xhr=new globalThis.XMLHttpRequest;try{f.open(u._opts.method,u._opts.url,!0)}catch(k){process.nextTick(function(){u.emit("error",k)});return}"responseType"in f&&(f.responseType=u._mode),"withCredentials"in f&&(f.withCredentials=!!d.withCredentials),u._mode==="text"&&"overrideMimeType"in f&&f.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in d&&(f.timeout=d.requestTimeout,f.ontimeout=function(){u.emit("requestTimeout")}),m.forEach(function(k){f.setRequestHeader(k[0],k[1])}),u._response=null,f.onreadystatechange=function(){switch(f.readyState){case i.LOADING:case i.DONE:u._onXHRProgress();break}},u._mode==="moz-chunked-arraybuffer"&&(f.onprogress=function(){u._onXHRProgress()}),f.onerror=function(){u._destroyed||(u._resetTimers(!0),u.emit("error",new Error("XHR error")))};try{f.send(h)}catch(k){process.nextTick(function(){u.emit("error",k)});return}}}};function l(u){try{var d=u.status;return d!==null&&d!==0}catch{return!1}}s.prototype._onXHRProgress=function(){var u=this;u._resetTimers(!1),!(!l(u._xhr)||u._destroyed)&&(u._response||u._connect(),u._response._onXHRProgress(u._resetTimers.bind(u)))},s.prototype._connect=function(){var u=this;u._destroyed||(u._response=new n(u._xhr,u._fetchResponse,u._mode,u._resetTimers.bind(u)),u._response.on("error",function(d){u.emit("error",d)}),u.emit("response",u._response))},s.prototype._write=function(u,d,p){var h=this;h._body.push(u),p()},s.prototype._resetTimers=function(u){var d=this;globalThis.clearTimeout(d._socketTimer),d._socketTimer=null,u?(globalThis.clearTimeout(d._fetchTimer),d._fetchTimer=null):d._socketTimeout&&(d._socketTimer=globalThis.setTimeout(function(){d.emit("timeout")},d._socketTimeout))},s.prototype.abort=s.prototype.destroy=function(u){var d=this;d._destroyed=!0,d._resetTimers(!0),d._response&&(d._response._destroyed=!0),d._xhr?d._xhr.abort():d._fetchAbortController&&d._fetchAbortController.abort(),u&&d.emit("error",u)},s.prototype.end=function(u,d,p){var h=this;typeof u=="function"&&(p=u,u=void 0),r.Writable.prototype.end.call(h,u,d,p)},s.prototype.setTimeout=function(u,d){var p=this;d&&p.once("timeout",d),p._socketTimeout=u,p._resetTimers(!1)},s.prototype.flushHeaders=function(){},s.prototype.setNoDelay=function(){},s.prototype.setSocketKeepAlive=function(){};var c=["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 k9.exports}var N9,Vhe;function x0t(){if(Vhe)return N9;Vhe=1,N9=t;var e=Object.prototype.hasOwnProperty;function t(){for(var a={},r=0;r<arguments.length;r++){var n=arguments[r];for(var i in n)e.call(n,i)&&(a[i]=n[i])}return a}return N9}var Hhe,Fhe;function w0t(){return Fhe||(Fhe=1,Hhe={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"}),Hhe}var Ghe;function S0t(){return Ghe||(Ghe=1,(function(e){var t=y0t(),a=Ihe(),r=x0t(),n=w0t(),i=i9(),o=e;o.request=function(s,l){typeof s=="string"?s=i.parse(s):s=r(s);var c=globalThis.location.protocol.search(/^https?:$/)===-1?"http:":"",u=s.protocol||c,d=s.hostname||s.host,p=s.port,h=s.path||"/";d&&d.indexOf(":")!==-1&&(d="["+d+"]"),s.url=(d?u+"//"+d:"")+(p?":"+p:"")+h,s.method=(s.method||"GET").toUpperCase(),s.headers=s.headers||{};var m=new t(s);return l&&m.on("response",l),m},o.get=function(s,l){var c=o.request(s,l);return c.end(),c},o.ClientRequest=t,o.IncomingMessage=a.IncomingMessage,o.Agent=function(){},o.Agent.defaultMaxSockets=4,o.globalAgent=new o.Agent,o.STATUS_CODES=n,o.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"]})(ihe)),ihe}var qhe,Whe;function z0t(){return Whe||(Whe=1,qhe={statusCodes:Object.assign({},{default:"Default response","1XX":"Informational",103:"Early hints","2XX":"Successful","3XX":"Redirection","4XX":"Client Error","5XX":"Server Error","7XX":"Developer Error"},S0t().STATUS_CODES)}),qhe}const j0t="7.0.8",O0t={version:j0t};var D9,Jhe;function C0t(){if(Jhe)return D9;Jhe=1;const e=Rv,t=i9(),a=s0t(),r=Rv,n=Rv,i=BC(),o=i.jptr,s=u9().isRef,l=LC().clone,c=LC().circularClone,u=h9().recurse,d=u0t(),p=d0t(),h=ahe(),m=z0t().statusCodes,v=O0t.version,g="3.0.0";let f;class k extends Error{constructor(L){super(L),this.name="S2OError"}}function x(A,L){let te=new k(A);if(te.options=L,L.promise)L.promise.reject(te);else throw te}function z(A,L,te){te.warnOnly?L[te.warnProperty||"x-s2o-warning"]=A:x(A,te)}function w(A,L,te){if(A.nullable&&te.patches++,A.discriminator&&typeof A.discriminator=="string"&&(A.discriminator={propertyName:A.discriminator}),A.items&&Array.isArray(A.items)&&(A.items.length===0?A.items={}:A.items.length===1?A.items=A.items[0]:A.items={anyOf:A.items}),A.type&&Array.isArray(A.type))if(te.patch){if(te.patches++,A.type.length===0)delete A.type;else{A.oneOf||(A.oneOf=[]);for(let F of A.type){let oe={};if(F==="null")A.nullable=!0;else{oe.type=F;for(let ue of h.arrayProperties)typeof A.prop<"u"&&(oe[ue]=A[ue],delete A[ue])}oe.type&&A.oneOf.push(oe)}delete A.type,A.oneOf.length===0?delete A.oneOf:A.oneOf.length<2&&(A.type=A.oneOf[0].type,Object.keys(A.oneOf[0]).length>1&&z("Lost properties from oneOf",A,te),delete A.oneOf)}A.type&&Array.isArray(A.type)&&A.type.length===1&&(A.type=A.type[0])}else x("(Patchable) schema type must not be an array",te);A.type&&A.type==="null"&&(delete A.type,A.nullable=!0),A.type==="array"&&!A.items&&(A.items={}),A.type==="file"&&(A.type="string",A.format="binary"),typeof A.required=="boolean"&&(A.required&&A.name&&(typeof L.required>"u"&&(L.required=[]),Array.isArray(L.required)&&L.required.push(A.name)),delete A.required),A.xml&&typeof A.xml.namespace=="string"&&(A.xml.namespace||delete A.xml.namespace),typeof A.allowEmptyValue<"u"&&(te.patches++,delete A.allowEmptyValue)}function j(A,L){if(A["x-required"]&&Array.isArray(A["x-required"])&&(A.required||(A.required=[]),A.required=A.required.concat(A["x-required"]),delete A["x-required"]),A["x-anyOf"]&&(A.anyOf=A["x-anyOf"],delete A["x-anyOf"]),A["x-oneOf"]&&(A.oneOf=A["x-oneOf"],delete A["x-oneOf"]),A["x-not"]&&(A.not=A["x-not"],delete A["x-not"]),typeof A["x-nullable"]=="boolean"&&(A.nullable=A["x-nullable"],delete A["x-nullable"]),typeof A["x-discriminator"]=="object"&&typeof A["x-discriminator"].propertyName=="string"){A.discriminator=A["x-discriminator"],delete A["x-discriminator"];for(let te in A.discriminator.mapping){let F=A.discriminator.mapping[te];F.startsWith("#/definitions/")&&(A.discriminator.mapping[te]=F.replace("#/definitions/","#/components/schemas/"))}}}function O(A,L){p.walkSchema(A,{},{},function(te,F,oe){j(te),w(te,F,L)})}function M(A){return A.indexOf("#")>=0?A=A.split("#")[1].split("/").pop():A=A.split("/").pop().split(".")[0],encodeURIComponent(h.sanitise(A))}function T(A,L,te){let F=te.payload.options;if(s(A,L)){if(!A[L].startsWith("#/components/")){if(A[L]==="#/consumes")delete A[L],te.parent[te.pkey]=l(F.openapi.consumes);else if(A[L]==="#/produces")delete A[L],te.parent[te.pkey]=l(F.openapi.produces);else if(A[L].startsWith("#/definitions/")){let oe=A[L].replace("#/definitions/","").split("/");const ue=i.jpunescape(oe[0]);let Q=f.schemas[decodeURIComponent(ue)];Q?oe[0]=Q:z("Could not resolve reference "+A[L],A,F),A[L]="#/components/schemas/"+oe.join("/")}else if(A[L].startsWith("#/parameters/"))A[L]="#/components/parameters/"+h.sanitise(A[L].replace("#/parameters/",""));else if(A[L].startsWith("#/responses/"))A[L]="#/components/responses/"+h.sanitise(A[L].replace("#/responses/",""));else if(A[L].startsWith("#")){let oe=l(i.jptr(F.openapi,A[L]));if(oe===!1)z("direct $ref not found "+A[L],A,F);else if(F.refmap[A[L]])A[L]=F.refmap[A[L]];else{let ue=A[L];ue=ue.replace("/properties/headers/",""),ue=ue.replace("/properties/responses/",""),ue=ue.replace("/properties/parameters/",""),ue=ue.replace("/properties/schemas/","");let Q="schemas",se=ue.lastIndexOf("/schema");if(Q=ue.indexOf("/headers/")>se?"headers":ue.indexOf("/responses/")>se?"responses":ue.indexOf("/example")>se?"examples":ue.indexOf("/x-")>se?"extensions":ue.indexOf("/parameters/")>se?"parameters":"schemas",Q==="schemas"&&O(oe,F),Q!=="responses"&&Q!=="extensions"){let de=Q.substr(0,Q.length-1);de==="parameter"&&oe.name&&oe.name===h.sanitise(oe.name)&&(de=encodeURIComponent(oe.name));let ke=1;for(A["x-miro"]&&(de=M(A["x-miro"]),ke="");i.jptr(F.openapi,"#/components/"+Q+"/"+de+ke);)ke=ke===""?2:++ke;let ge="#/components/"+Q+"/"+de+ke,me="";Q==="examples"&&(oe={value:oe},me="/value"),i.jptr(F.openapi,ge,oe),F.refmap[A[L]]=ge+me,A[L]=ge+me}}}}if(delete A["x-miro"],Object.keys(A).length>1){const oe=A[L],ue=te.path.indexOf("/schema")>=0;F.refSiblings==="preserve"||(ue&&F.refSiblings==="allOf"?(delete A.$ref,te.parent[te.pkey]={allOf:[{$ref:oe},A]}):te.parent[te.pkey]={$ref:oe})}}if(L==="x-ms-odata"&&typeof A[L]=="string"&&A[L].startsWith("#/")){let oe=A[L].replace("#/definitions/","").replace("#/components/schemas/","").split("/"),ue=f.schemas[decodeURIComponent(oe[0])];ue?oe[0]=ue:z("Could not resolve reference "+A[L],A,F),A[L]="#/components/schemas/"+oe.join("/")}}function B(A,L){for(let te in L.refmap)i.jptr(A,te,{$ref:L.refmap[te]})}function H(A){for(let L in A)for(let te in A[L]){let F=h.sanitise(te);te!==F&&(A[L][F]=A[L][te],delete A[L][te])}}function N(A,L){if(A.type==="basic"&&(A.type="http",A.scheme="basic"),A.type==="oauth2"){let te={},F=A.flow;A.flow==="application"&&(F="clientCredentials"),A.flow==="accessCode"&&(F="authorizationCode"),typeof A.authorizationUrl<"u"&&(te.authorizationUrl=A.authorizationUrl.split("?")[0].trim()||"/"),typeof A.tokenUrl=="string"&&(te.tokenUrl=A.tokenUrl.split("?")[0].trim()||"/"),te.scopes=A.scopes||{},A.flows={},A.flows[F]=te,delete A.flow,delete A.authorizationUrl,delete A.tokenUrl,delete A.scopes,typeof A.name<"u"&&(L.patch?(L.patches++,delete A.name):x("(Patchable) oauth2 securitySchemes should not have name property",L))}}function J(A){return A&&!A["x-s2o-delete"]}function I(A,L){if(A.$ref)A.$ref=A.$ref.replace("#/responses/","#/components/responses/");else{A.type&&!A.schema&&(A.schema={}),A.type&&(A.schema.type=A.type),A.items&&A.items.type!=="array"&&(A.items.collectionFormat!==A.collectionFormat&&z("Nested collectionFormats are not supported",A,L),delete A.items.collectionFormat),A.type==="array"?(A.collectionFormat==="ssv"?z("collectionFormat:ssv is no longer supported for headers",A,L):A.collectionFormat==="pipes"?z("collectionFormat:pipes is no longer supported for headers",A,L):A.collectionFormat==="multi"?A.explode=!0:A.collectionFormat==="tsv"?(z("collectionFormat:tsv is no longer supported",A,L),A["x-collectionFormat"]="tsv"):A.style="simple",delete A.collectionFormat):A.collectionFormat&&(L.patch?(L.patches++,delete A.collectionFormat):x("(Patchable) collectionFormat is only applicable to header.type array",L)),delete A.type;for(let te of h.parameterTypeProperties)typeof A[te]<"u"&&(A.schema[te]=A[te],delete A[te]);for(let te of h.arrayProperties)typeof A[te]<"u"&&(A.schema[te]=A[te],delete A[te])}}function X(A,L){if(A.$ref.indexOf("#/parameters/")>=0){let te=A.$ref.split("#/parameters/");A.$ref=te[0]+"#/components/parameters/"+h.sanitise(te[1])}A.$ref.indexOf("#/definitions/")>=0&&z("Definition used as parameter",A,L)}function re(A,L){let te={};for(let F of Object.keys(A))te[F]=A[F],F==="parameters"&&(te.requestBody={},L.rbname&&(te[L.rbname]=""));return te.requestBody={},te}function le(A,L,te,F,oe,ue,Q){let se={},de=!0,ke;if(L&&L.consumes&&typeof L.consumes=="string")if(Q.patch)Q.patches++,L.consumes=[L.consumes];else return x("(Patchable) operation.consumes must be an array",Q);Array.isArray(ue.consumes)||delete ue.consumes;let ge=((L?L.consumes:null)||ue.consumes||[]).filter(h.uniqueOnly);if(A&&A.$ref&&typeof A.$ref=="string"){X(A,Q);let me=decodeURIComponent(A.$ref.replace("#/components/parameters/","")),ve=!1,ze=ue.components.parameters[me];if((!ze||ze["x-s2o-delete"])&&A.$ref.startsWith("#/")&&(A["x-s2o-delete"]=!0,ve=!0),ve){let Ae=A.$ref,Ue=o(ue,A.$ref);!Ue&&Ae.startsWith("#/")?z("Could not resolve reference "+Ae,A,Q):Ue&&(A=Ue)}}if(A&&(A.name||A.in)){typeof A["x-deprecated"]=="boolean"&&(A.deprecated=A["x-deprecated"],delete A["x-deprecated"]),typeof A["x-example"]<"u"&&(A.example=A["x-example"],delete A["x-example"]),A.in!=="body"&&!A.type&&(Q.patch?(Q.patches++,A.type="string"):x("(Patchable) parameter.type is mandatory for non-body parameters",Q)),A.type&&typeof A.type=="object"&&A.type.$ref&&(A.type=o(ue,A.type.$ref)),A.type==="file"&&(A["x-s2o-originalType"]=A.type,ke=A.type),A.description&&typeof A.description=="object"&&A.description.$ref&&(A.description=o(ue,A.description.$ref)),A.description===null&&delete A.description;let me=A.collectionFormat;if(A.type==="array"&&!me&&(me="csv"),me&&(A.type!=="array"&&(Q.patch?(Q.patches++,delete A.collectionFormat):x("(Patchable) collectionFormat is only applicable to param.type array",Q)),me==="csv"&&(A.in==="query"||A.in==="cookie")&&(A.style="form",A.explode=!1),me==="csv"&&(A.in==="path"||A.in==="header")&&(A.style="simple"),me==="ssv"&&(A.in==="query"?A.style="spaceDelimited":z("collectionFormat:ssv is no longer supported except for in:query parameters",A,Q)),me==="pipes"&&(A.in==="query"?A.style="pipeDelimited":z("collectionFormat:pipes is no longer supported except for in:query parameters",A,Q)),me==="multi"&&(A.explode=!0),me==="tsv"&&(z("collectionFormat:tsv is no longer supported",A,Q),A["x-collectionFormat"]="tsv"),delete A.collectionFormat),A.type&&A.type!=="body"&&A.in!=="formData")if(A.items&&A.schema)z("parameter has array,items and schema",A,Q);else{A.schema&&Q.patches++,(!A.schema||typeof A.schema!="object")&&(A.schema={}),A.schema.type=A.type,A.items&&(A.schema.items=A.items,delete A.items,u(A.schema.items,null,function(ve,ze,Ae){ze==="collectionFormat"&&typeof ve[ze]=="string"&&(me&&ve[ze]!==me&&z("Nested collectionFormats are not supported",A,Q),delete ve[ze])}));for(let ve of h.parameterTypeProperties)typeof A[ve]<"u"&&(A.schema[ve]=A[ve]),delete A[ve]}A.schema&&O(A.schema,Q),A["x-ms-skip-url-encoding"]&&A.in==="query"&&(A.allowReserved=!0,delete A["x-ms-skip-url-encoding"])}if(A&&A.in==="formData"){de=!1,se.content={};let me="application/x-www-form-urlencoded";if(ge.length&&ge.indexOf("multipart/form-data")>=0&&(me="multipart/form-data"),se.content[me]={},A.schema)se.content[me].schema=A.schema,A.schema.$ref&&(se["x-s2o-name"]=decodeURIComponent(A.schema.$ref.replace("#/components/schemas/","")));else{se.content[me].schema={},se.content[me].schema.type="object",se.content[me].schema.properties={},se.content[me].schema.properties[A.name]={};let ve=se.content[me].schema,ze=se.content[me].schema.properties[A.name];A.description&&(ze.description=A.description),A.example&&(ze.example=A.example),A.type&&(ze.type=A.type);for(let Ae of h.parameterTypeProperties)typeof A[Ae]<"u"&&(ze[Ae]=A[Ae]);A.required===!0&&(ve.required||(ve.required=[]),ve.required.push(A.name),se.required=!0),typeof A.default<"u"&&(ze.default=A.default),ze.properties&&(ze.properties=A.properties),A.allOf&&(ze.allOf=A.allOf),A.type==="array"&&A.items&&(ze.items=A.items,ze.items.collectionFormat&&delete ze.items.collectionFormat),(ke==="file"||A["x-s2o-originalType"]==="file")&&(ze.type="string",ze.format="binary"),ie(A,ze)}}else A&&A.type==="file"&&(A.required&&(se.required=A.required),se.content={},se.content["application/octet-stream"]={},se.content["application/octet-stream"].schema={},se.content["application/octet-stream"].schema.type="string",se.content["application/octet-stream"].schema.format="binary",ie(A,se));if(A&&A.in==="body"){se.content={},A.name&&(se["x-s2o-name"]=(L&&L.operationId?h.sanitiseAll(L.operationId):"")+("_"+A.name).toCamelCase()),A.description&&(se.description=A.description),A.required&&(se.required=A.required),L&&Q.rbname&&A.name&&(L[Q.rbname]=A.name),A.schema&&A.schema.$ref?se["x-s2o-name"]=decodeURIComponent(A.schema.$ref.replace("#/components/schemas/","")):A.schema&&A.schema.type==="array"&&A.schema.items&&A.schema.items.$ref&&(se["x-s2o-name"]=decodeURIComponent(A.schema.items.$ref.replace("#/components/schemas/",""))+"Array"),ge.length||ge.push("application/json");for(let me of ge)se.content[me]={},se.content[me].schema=l(A.schema||{}),O(se.content[me].schema,Q);ie(A,se)}if(Object.keys(se).length>0&&(A["x-s2o-delete"]=!0,L))if(L.requestBody&&de){L.requestBody["x-s2o-overloaded"]=!0;let me=L.operationId||oe;z("Operation "+me+" has multiple requestBodies",L,Q)}else L.requestBody||(L=te[F]=re(L,Q)),L.requestBody.content&&L.requestBody.content["multipart/form-data"]&&L.requestBody.content["multipart/form-data"].schema&&L.requestBody.content["multipart/form-data"].schema.properties&&se.content["multipart/form-data"]&&se.content["multipart/form-data"].schema&&se.content["multipart/form-data"].schema.properties?(L.requestBody.content["multipart/form-data"].schema.properties=Object.assign(L.requestBody.content["multipart/form-data"].schema.properties,se.content["multipart/form-data"].schema.properties),L.requestBody.content["multipart/form-data"].schema.required=(L.requestBody.content["multipart/form-data"].schema.required||[]).concat(se.content["multipart/form-data"].schema.required||[]),L.requestBody.content["multipart/form-data"].schema.required.length||delete L.requestBody.content["multipart/form-data"].schema.required):L.requestBody.content&&L.requestBody.content["application/x-www-form-urlencoded"]&&L.requestBody.content["application/x-www-form-urlencoded"].schema&&L.requestBody.content["application/x-www-form-urlencoded"].schema.properties&&se.content["application/x-www-form-urlencoded"]&&se.content["application/x-www-form-urlencoded"].schema&&se.content["application/x-www-form-urlencoded"].schema.properties?(L.requestBody.content["application/x-www-form-urlencoded"].schema.properties=Object.assign(L.requestBody.content["application/x-www-form-urlencoded"].schema.properties,se.content["application/x-www-form-urlencoded"].schema.properties),L.requestBody.content["application/x-www-form-urlencoded"].schema.required=(L.requestBody.content["application/x-www-form-urlencoded"].schema.required||[]).concat(se.content["application/x-www-form-urlencoded"].schema.required||[]),L.requestBody.content["application/x-www-form-urlencoded"].schema.required.length||delete L.requestBody.content["application/x-www-form-urlencoded"].schema.required):(L.requestBody=Object.assign(L.requestBody,se),L.requestBody["x-s2o-name"]||(L.requestBody.schema&&L.requestBody.schema.$ref?L.requestBody["x-s2o-name"]=decodeURIComponent(L.requestBody.schema.$ref.replace("#/components/schemas/","")).split("/").join(""):L.operationId&&(L.requestBody["x-s2o-name"]=h.sanitiseAll(L.operationId))));if(A&&!A["x-s2o-delete"]){delete A.type;for(let me of h.parameterTypeProperties)delete A[me];A.in==="path"&&(typeof A.required>"u"||A.required!==!0)&&(Q.patch?(Q.patches++,A.required=!0):x("(Patchable) path parameters must be required:true ["+A.name+" in "+oe+"]",Q))}return L}function ie(A,L){for(let te in A)te.startsWith("x-")&&!te.startsWith("x-s2o")&&(L[te]=A[te])}function he(A,L,te,F,oe){if(!A)return!1;if(A.$ref&&typeof A.$ref=="string")A.$ref.indexOf("#/definitions/")>=0?z("definition used as response: "+A.$ref,A,oe):A.$ref.startsWith("#/responses/")&&(A.$ref="#/components/responses/"+h.sanitise(decodeURIComponent(A.$ref.replace("#/responses/",""))));else{if((typeof A.description>"u"||A.description===null||A.description===""&&oe.patch)&&(oe.patch?typeof A=="object"&&!Array.isArray(A)&&(oe.patches++,A.description=m[A]||""):x("(Patchable) response.description is mandatory",oe)),typeof A.schema<"u"){if(O(A.schema,oe),A.schema.$ref&&typeof A.schema.$ref=="string"&&A.schema.$ref.startsWith("#/responses/")&&(A.schema.$ref="#/components/responses/"+h.sanitise(decodeURIComponent(A.schema.$ref.replace("#/responses/","")))),te&&te.produces&&typeof te.produces=="string")if(oe.patch)oe.patches++,te.produces=[te.produces];else return x("(Patchable) operation.produces must be an array",oe);F.produces&&!Array.isArray(F.produces)&&delete F.produces;let ue=((te?te.produces:null)||F.produces||[]).filter(h.uniqueOnly);ue.length||ue.push("*/*"),A.content={};for(let Q of ue){if(A.content[Q]={},A.content[Q].schema=l(A.schema),A.examples&&A.examples[Q]){let se={};se.value=A.examples[Q],A.content[Q].examples={},A.content[Q].examples.response=se,delete A.examples[Q]}A.content[Q].schema.type==="file"&&(A.content[Q].schema={type:"string",format:"binary"})}delete A.schema}for(let ue in A.examples)A.content||(A.content={}),A.content[ue]||(A.content[ue]={}),A.content[ue].examples={},A.content[ue].examples.response={},A.content[ue].examples.response.value=A.examples[ue];if(delete A.examples,A.headers)for(let ue in A.headers)ue.toLowerCase()==="status code"?oe.patch?(oe.patches++,delete A.headers[ue]):x('(Patchable) "Status Code" is not a valid header',oe):I(A.headers[ue],oe)}}function G(A,L,te,F,oe){for(let ue in A){let Q=A[ue];Q&&Q["x-trace"]&&typeof Q["x-trace"]=="object"&&(Q.trace=Q["x-trace"],delete Q["x-trace"]),Q&&Q["x-summary"]&&typeof Q["x-summary"]=="string"&&(Q.summary=Q["x-summary"],delete Q["x-summary"]),Q&&Q["x-description"]&&typeof Q["x-description"]=="string"&&(Q.description=Q["x-description"],delete Q["x-description"]),Q&&Q["x-servers"]&&Array.isArray(Q["x-servers"])&&(Q.servers=Q["x-servers"],delete Q["x-servers"]);for(let se in Q)if(h.httpMethods.indexOf(se)>=0||se==="x-amazon-apigateway-any-method"){let de=Q[se];if(de&&de.parameters&&Array.isArray(de.parameters)){if(Q.parameters)for(let ke of Q.parameters)typeof ke.$ref=="string"&&(X(ke,te),ke=o(oe,ke.$ref)),!de.parameters.find(function(ge,me,ve){return ge.name===ke.name&&ge.in===ke.in})&&(ke.in==="formData"||ke.in==="body"||ke.type==="file")&&(de=le(ke,de,Q,se,ue,oe,te),te.rbname&&de[te.rbname]===""&&delete de[te.rbname]);for(let ke of de.parameters)de=le(ke,de,Q,se,se+":"+ue,oe,te);te.rbname&&de[te.rbname]===""&&delete de[te.rbname],te.debug||de.parameters&&(de.parameters=de.parameters.filter(J))}if(de&&de.security&&H(de.security),typeof de=="object"){if(!de.responses){let ke={};ke.description="Default response",de.responses={default:ke}}for(let ke in de.responses){let ge=de.responses[ke];he(ge,ke,de,oe,te)}}if(de&&de["x-servers"]&&Array.isArray(de["x-servers"]))de.servers=de["x-servers"],delete de["x-servers"];else if(de&&de.schemes&&de.schemes.length){for(let ke of de.schemes)if((!oe.schemes||oe.schemes.indexOf(ke)<0)&&(de.servers||(de.servers=[]),Array.isArray(oe.servers)))for(let ge of oe.servers){let me=l(ge),ve=t.parse(me.url);ve.protocol=ke,me.url=ve.format(),de.servers.push(me)}}if(te.debug&&(de["x-s2o-consumes"]=de.consumes||[],de["x-s2o-produces"]=de.produces||[]),de){if(delete de.consumes,delete de.produces,delete de.schemes,de["x-ms-examples"]){for(let ke in de["x-ms-examples"]){let ge=de["x-ms-examples"][ke],me=h.sanitiseAll(ke);if(ge.parameters)for(let ve in ge.parameters){let ze=ge.parameters[ve];for(let Ae of(de.parameters||[]).concat(Q.parameters||[]))Ae.$ref&&(Ae=i.jptr(oe,Ae.$ref)),Ae.name===ve&&!Ae.example&&(Ae.examples||(Ae.examples={}),Ae.examples[ke]={value:ze})}if(ge.responses)for(let ve in ge.responses){if(ge.responses[ve].headers)for(let ze in ge.responses[ve].headers){let Ae=ge.responses[ve].headers[ze];for(let Ue in de.responses[ve].headers)if(Ue===ze){let _=de.responses[ve].headers[Ue];_.example=Ae}}if(ge.responses[ve].body&&(oe.components.examples[me]={value:l(ge.responses[ve].body)},de.responses[ve]&&de.responses[ve].content))for(let ze in de.responses[ve].content){let Ae=de.responses[ve].content[ze];Ae.examples||(Ae.examples={}),Ae.examples[ke]={$ref:"#/components/examples/"+me}}}}delete de["x-ms-examples"]}if(de.parameters&&de.parameters.length===0&&delete de.parameters,de.requestBody){let ke=de.operationId?h.sanitiseAll(de.operationId):h.sanitiseAll(se+ue).toCamelCase(),ge=h.sanitise(de.requestBody["x-s2o-name"]||ke||"");delete de.requestBody["x-s2o-name"];let me=JSON.stringify(de.requestBody),ve=h.hash(me);if(!F[ve]){let Ae={};Ae.name=ge,Ae.body=de.requestBody,Ae.refs=[],F[ve]=Ae}let ze="#/"+L+"/"+encodeURIComponent(i.jpescape(ue))+"/"+se+"/requestBody";F[ve].refs.push(ze)}}}if(Q&&Q.parameters){for(let se in Q.parameters){let de=Q.parameters[se];le(de,null,Q,null,ue,oe,te)}!te.debug&&Array.isArray(Q.parameters)&&(Q.parameters=Q.parameters.filter(J))}}}function D(A,L){let te={};f={schemas:{}},A.security&&H(A.security);for(let oe in A.components.securitySchemes){let ue=h.sanitise(oe);oe!==ue&&(A.components.securitySchemes[ue]&&x("Duplicate sanitised securityScheme name "+ue,L),A.components.securitySchemes[ue]=A.components.securitySchemes[oe],delete A.components.securitySchemes[oe]),N(A.components.securitySchemes[ue],L)}for(let oe in A.components.schemas){let ue=h.sanitiseAll(oe),Q="";if(oe!==ue){for(;A.components.schemas[ue+Q];)Q=Q?++Q:2;A.components.schemas[ue+Q]=A.components.schemas[oe],delete A.components.schemas[oe]}f.schemas[oe]=ue+Q,O(A.components.schemas[ue+Q],L)}L.refmap={},u(A,{payload:{options:L}},T),B(A,L);for(let oe in A.components.parameters){let ue=h.sanitise(oe);oe!==ue&&(A.components.parameters[ue]&&x("Duplicate sanitised parameter name "+ue,L),A.components.parameters[ue]=A.components.parameters[oe],delete A.components.parameters[oe]);let Q=A.components.parameters[ue];le(Q,null,null,null,ue,A,L)}for(let oe in A.components.responses){let ue=h.sanitise(oe);oe!==ue&&(A.components.responses[ue]&&x("Duplicate sanitised response name "+ue,L),A.components.responses[ue]=A.components.responses[oe],delete A.components.responses[oe]);let Q=A.components.responses[ue];if(he(Q,ue,null,A,L),Q.headers)for(let se in Q.headers)se.toLowerCase()==="status code"?L.patch?(L.patches++,delete Q.headers[se]):x('(Patchable) "Status Code" is not a valid header',L):I(Q.headers[se],L)}for(let oe in A.components.requestBodies){let ue=A.components.requestBodies[oe],Q=JSON.stringify(ue),se=h.hash(Q),de={};de.name=oe,de.body=ue,de.refs=[],te[se]=de}if(G(A.paths,"paths",L,te,A),A["x-ms-paths"]&&G(A["x-ms-paths"],"x-ms-paths",L,te,A),!L.debug)for(let oe in A.components.parameters)A.components.parameters[oe]["x-s2o-delete"]&&delete A.components.parameters[oe];L.debug&&(A["x-s2o-consumes"]=A.consumes||[],A["x-s2o-produces"]=A.produces||[]),delete A.consumes,delete A.produces,delete A.schemes;let F=[];if(A.components.requestBodies={},!L.resolveInternal){let oe=1;for(let ue in te){let Q=te[ue];if(Q.refs.length>1){let se="";for(Q.name||(Q.name="requestBody",se=oe++);F.indexOf(Q.name+se)>=0;)se=se?++se:2;Q.name=Q.name+se,F.push(Q.name),A.components.requestBodies[Q.name]=l(Q.body);for(let de in Q.refs){let ke={};ke.$ref="#/components/requestBodies/"+Q.name,i.jptr(A,Q.refs[de],ke)}}}}return A.components.responses&&Object.keys(A.components.responses).length===0&&delete A.components.responses,A.components.parameters&&Object.keys(A.components.parameters).length===0&&delete A.components.parameters,A.components.examples&&Object.keys(A.components.examples).length===0&&delete A.components.examples,A.components.requestBodies&&Object.keys(A.components.requestBodies).length===0&&delete A.components.requestBodies,A.components.securitySchemes&&Object.keys(A.components.securitySchemes).length===0&&delete A.components.securitySchemes,A.components.headers&&Object.keys(A.components.headers).length===0&&delete A.components.headers,A.components.schemas&&Object.keys(A.components.schemas).length===0&&delete A.components.schemas,A.components&&Object.keys(A.components).length===0&&delete A.components,A}function W(A){return!A||!A.url||typeof A.url!="string"||(A.url=A.url.split("{{").join("{"),A.url=A.url.split("}}").join("}"),A.url.replace(/\{(.+?)\}/g,function(L,te){A.variables||(A.variables={}),A.variables[te]={default:"unknown"}})),A}function $(A,L,te){if(typeof A.info>"u"||A.info===null)if(L.patch)L.patches++,A.info={version:"",title:""};else return te(new k("(Patchable) info object is mandatory"));if(typeof A.info!="object"||Array.isArray(A.info))return te(new k("info must be an object"));if(typeof A.info.title>"u"||A.info.title===null)if(L.patch)L.patches++,A.info.title="";else return te(new k("(Patchable) info.title cannot be null"));if(typeof A.info.version>"u"||A.info.version===null)if(L.patch)L.patches++,A.info.version="";else return te(new k("(Patchable) info.version cannot be null"));if(typeof A.info.version!="string")if(L.patch)L.patches++,A.info.version=A.info.version.toString();else return te(new k("(Patchable) info.version must be a string"));if(typeof A.info.logo<"u")if(L.patch)L.patches++,A.info["x-logo"]=A.info.logo,delete A.info.logo;else return te(new k("(Patchable) info should not have logo property"));if(typeof A.info.termsOfService<"u"){if(A.info.termsOfService===null)if(L.patch)L.patches++,A.info.termsOfService="";else return te(new k("(Patchable) info.termsOfService cannot be null"));try{new URL(A.info.termsOfService)}catch{if(L.patch)L.patches++,delete A.info.termsOfService;else return te(new k("(Patchable) info.termsOfService must be a URL"))}}}function P(A,L,te){if(typeof A.paths>"u")if(L.patch)L.patches++,A.paths={};else return te(new k("(Patchable) paths object is mandatory"))}function R(A,L){const te=new WeakSet;u(A,{identityDetection:!0},function(F,oe,ue){typeof F[oe]=="object"&&F[oe]!==null&&(te.has(F[oe])?L.anchors?F[oe]=l(F[oe]):x("YAML anchor or merge key at "+ue.path,L):te.add(F[oe]))})}function V(A,L,te){return a(te,new Promise(function(F,oe){if(A||(A={}),L.original=A,L.text||(L.text=n.stringify(A)),L.externals=[],L.externalRefs={},L.rewriteRefs=!0,L.preserveMiro=!0,L.promise={},L.promise.resolve=F,L.promise.reject=oe,L.patches=0,L.cache||(L.cache={}),L.source&&(L.cache[L.source]=L.original),R(A,L),A.openapi&&typeof A.openapi=="string"&&A.openapi.startsWith("3.")){L.openapi=c(A),$(L.openapi,L,oe),P(L.openapi,L,oe),d.optionalResolve(L).then(function(){return L.direct?F(L.openapi):F(L)}).catch(function(Q){console.warn(Q),oe(Q)});return}if(!A.swagger||A.swagger!="2.0")return oe(new k("Unsupported swagger/OpenAPI version: "+(A.openapi?A.openapi:A.swagger)));let ue=L.openapi={};if(ue.openapi=typeof L.targetVersion=="string"&&L.targetVersion.startsWith("3.")?L.targetVersion:g,L.origin){ue["x-origin"]||(ue["x-origin"]=[]);let Q={};Q.url=L.source||L.origin,Q.format="swagger",Q.version=A.swagger,Q.converter={},Q.converter.url="https://github.com/mermade/oas-kit",Q.converter.version=v,ue["x-origin"].push(Q)}if(ue=Object.assign(ue,c(A)),delete ue.swagger,u(ue,{},function(Q,se,de){Q[se]===null&&!se.startsWith("x-")&&se!=="default"&&de.path.indexOf("/example")<0&&delete Q[se]}),A.host)for(let Q of Array.isArray(A.schemes)?A.schemes:[""]){let se={},de=(A.basePath||"").replace(/\/$/,"");se.url=(Q?Q+":":"")+"//"+A.host+de,W(se),ue.servers||(ue.servers=[]),ue.servers.push(se)}else if(A.basePath){let Q={};Q.url=A.basePath,W(Q),ue.servers||(ue.servers=[]),ue.servers.push(Q)}if(delete ue.host,delete ue.basePath,ue["x-servers"]&&Array.isArray(ue["x-servers"])&&(ue.servers=ue["x-servers"],delete ue["x-servers"]),A["x-ms-parameterized-host"]){let Q=A["x-ms-parameterized-host"],se={};se.url=Q.hostTemplate+(A.basePath?A.basePath:""),se.variables={};const de=se.url.match(/\{\w+\}/g);for(let ke in Q.parameters){let ge=Q.parameters[ke];ge.$ref&&(ge=l(o(ue,ge.$ref))),ke.startsWith("x-")||(delete ge.required,delete ge.type,delete ge.in,typeof ge.default>"u"&&(ge.enum?ge.default=ge.enum[0]:ge.default="none"),ge.name||(ge.name=de[ke].replace("{","").replace("}","")),se.variables[ge.name]=ge,delete ge.name)}ue.servers||(ue.servers=[]),Q.useSchemePrefix===!1?ue.servers.push(se):A.schemes.forEach(ke=>{ue.servers.push(Object.assign({},se,{url:ke+"://"+se.url}))}),delete ue["x-ms-parameterized-host"]}$(ue,L,oe),P(ue,L,oe),typeof ue.consumes=="string"&&(ue.consumes=[ue.consumes]),typeof ue.produces=="string"&&(ue.produces=[ue.produces]),ue.components={},ue["x-callbacks"]&&(ue.components.callbacks=ue["x-callbacks"],delete ue["x-callbacks"]),ue.components.examples={},ue.components.headers={},ue["x-links"]&&(ue.components.links=ue["x-links"],delete ue["x-links"]),ue.components.parameters=ue.parameters||{},ue.components.responses=ue.responses||{},ue.components.requestBodies={},ue.components.securitySchemes=ue.securityDefinitions||{},ue.components.schemas=ue.definitions||{},delete ue.definitions,delete ue.responses,delete ue.parameters,delete ue.securityDefinitions,d.optionalResolve(L).then(function(){D(L.openapi,L),L.direct?F(L.openapi):F(L)}).catch(function(Q){console.warn(Q),oe(Q)})}))}function ae(A,L,te){return a(te,new Promise(function(F,oe){let ue=null,Q=null;try{ue=JSON.parse(A),L.text=JSON.stringify(ue,null,2)}catch(se){Q=se;try{ue=n.parse(A,{schema:"core",prettyErrors:!0}),L.sourceYaml=!0,L.text=A}catch(de){Q=de}}ue?V(ue,L).then(se=>F(se)).catch(se=>oe(se)):oe(new k(Q?Q.message:"Could not parse string"))}))}function U(A,L,te){return a(te,new Promise(function(F,oe){L.origin=!0,L.source||(L.source=A),L.verbose&&console.warn("GET "+A),L.fetch||(L.fetch=r);const ue=Object.assign({},L.fetchOptions,{agent:L.agent});L.fetch(A,ue).then(function(Q){if(Q.status!==200)throw new k(`Received status code ${Q.status}: ${A}`);return Q.text()}).then(function(Q){ae(Q,L).then(se=>F(se)).catch(se=>oe(se))}).catch(function(Q){oe(Q)})}))}function pe(A,L,te){return a(te,new Promise(function(F,oe){e.readFile(A,L.encoding||"utf8",function(ue,Q){ue?oe(ue):(L.sourceFile=A,ae(Q,L).then(se=>F(se)).catch(se=>oe(se)))})}))}function Z(A,L,te){return a(te,new Promise(function(F,oe){let ue="";A.on("data",function(Q){ue+=Q}).on("end",function(){ae(ue,L).then(Q=>F(Q)).catch(Q=>oe(Q))})}))}return D9={S2OError:k,targetVersion:g,convert:V,convertObj:V,convertUrl:U,convertStr:ae,convertFile:pe,convertStream:Z},D9}var A0t=C0t();const P0t=Rr(A0t);function M0t(e){return e.paths||(e.paths={}),new Promise((t,a)=>P0t.convertObj(e,{patch:!0,warnOnly:!0,text:"{}",anchors:!0},(r,n)=>{if(r)return a(r);t(n?.openapi)}))}async function T0t(){const e=hc?window.location.origin:typeof globalThis.process<"u"?globalThis.process.cwd():"";try{return(await epe({configPath:oB(e,RFe)}))?.resolvedConfig.openapi||{}}catch(t){return console.warn("Error loading redocly.yaml",t),{}}}async function E0t(e){const t=await epe(),a={config:t,base:hc?window.location.origin:typeof globalThis.process<"u"?globalThis.process.cwd():""};hc&&(t.resolve.http.customFetch=globalThis.fetch),typeof e=="object"&&e!==null?a.doc=_0t(e):a.ref=e;const{bundle:{parsed:r}}=await vyt(a);return r.swagger!==void 0?M0t(r):r}function _0t(e){return{source:{absoluteRef:""},parsed:e}}async function R0t(e,t,a){let r;if(a?.skipBundle){if(!e)throw new Error('spec must be specified when using "skipBundleAndConvert"');r=e}else r=await E0t(e||t);try{bXe(r)}catch{}return r}const B0t=({options:e,definitionUrl:t,definition:a,activeSampleLanguage:r,children:n})=>{const[,i]=K.useState(),[o,s]=K.useState(!0),[l,c]=K.useState(null),[u,d]=K.useState(e||{});K.useEffect(()=>{async function h(){s(!0);try{const m=await T0t();d({...e,...m}),c(await R0t(a,t,e))}catch(m){i(()=>{throw m})}}h()},[a,t,e]);const p=K.useMemo(()=>{if(l)return{definition:l,options:u,definitionUrl:t,activeSampleLanguage:r}},kXe([l,t,u]));return K.useEffect(()=>{p&&s(!1)},[p]),p?o?Qs(e?.hideLoading,!1)?null:b.jsx(eot,{color:"--loading-spinner-color"}):K.isValidElement(n)?K.cloneElement(n,{store:p}):null:null};function L0t({definition:e,definitionUrl:t,options:a={},activeItemId:r,activeSampleLanguage:n,activeDeepLink:i,router:o}){return b.jsx(B0t,{definition:e,definitionUrl:t,options:a,activeItemId:r,activeSampleLanguage:n,activeDeepLink:i,children:b.jsx($re,{withCommonStyles:!0,router:o})})}function N0t(e){const t={},a=e.attributes;for(let r=0;r<a.length;r++){const n=a[r];t[n.name]=n.value}return t}function D0t(e){const t=N0t(e),a={};for(const r in t){const n=r.replace(/-(.)/g,(i,o)=>o.toUpperCase());a[n]=t[r]}return a}function $0t(e,t=document.querySelector("redoc")){xJ.hydrateRoot(t,b.jsx($re,{store:e}))}function Uhe(e,t={},a=KR("redoc")){if(a===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');const{router:r,...n}=t;let i,o;typeof e=="string"?i=e:typeof e=="object"&&(o=e),xJ.createRoot(a).render(K.createElement(L0t,{definition:o,definitionUrl:i,options:{...n,...D0t(a)},router:r??"history"},["Loading..."]))}const I0t="3.14.0-next.8",K0t="5b51d55b";function V0t(){const e=KR("redoc");if(!e)return;const t=e.getAttribute("spec-url");t&&Uhe(t,{},e)}V0t();var Zhe={exports:{}};/*!
|
|
9768
|
+
`," "],s=["{","}","|","\\","^","`"].concat(o),l=["'"].concat(s),c=["%","/","?",";","#"].concat(l),u=["/","?","#"],d=255,p=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},f=i0t();function k(j,O,M){if(j&&t.isObject(j)&&j instanceof a)return j;var T=new a;return T.parse(j,O,M),T}a.prototype.parse=function(j,O,M){if(!t.isString(j))throw new TypeError("Parameter 'url' must be a string, not "+typeof j);var T=j.indexOf("?"),B=T!==-1&&T<j.indexOf("#")?"?":"#",H=j.split(B),N=/\\/g;H[0]=H[0].replace(N,"/"),j=H.join(B);var J=j;if(J=J.trim(),!M&&j.split("#").length===1){var I=i.exec(J);if(I)return this.path=J,this.href=J,this.pathname=I[1],I[2]?(this.search=I[2],O?this.query=f.parse(this.search.substr(1)):this.query=this.search.substr(1)):O&&(this.search="",this.query={}),this}var X=r.exec(J);if(X){X=X[0];var re=X.toLowerCase();this.protocol=re,J=J.substr(X.length)}if(M||X||J.match(/^\/\/[^@\/]+@[^@\/]+/)){var le=J.substr(0,2)==="//";le&&!(X&&v[X])&&(J=J.substr(2),this.slashes=!0)}if(!v[X]&&(le||X&&!g[X])){for(var ie=-1,he=0;he<u.length;he++){var G=J.indexOf(u[he]);G!==-1&&(ie===-1||G<ie)&&(ie=G)}var D,W;ie===-1?W=J.lastIndexOf("@"):W=J.lastIndexOf("@",ie),W!==-1&&(D=J.slice(0,W),J=J.slice(W+1),this.auth=decodeURIComponent(D)),ie=-1;for(var he=0;he<c.length;he++){var G=J.indexOf(c[he]);G!==-1&&(ie===-1||G<ie)&&(ie=G)}ie===-1&&(ie=J.length),this.host=J.slice(0,ie),J=J.slice(ie),this.parseHost(),this.hostname=this.hostname||"";var $=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!$)for(var P=this.hostname.split(/\./),he=0,R=P.length;he<R;he++){var V=P[he];if(V&&!V.match(p)){for(var ae="",U=0,pe=V.length;U<pe;U++)V.charCodeAt(U)>127?ae+="x":ae+=V[U];if(!ae.match(p)){var Z=P.slice(0,he),A=P.slice(he+1),L=V.match(h);L&&(Z.push(L[1]),A.unshift(L[2])),A.length&&(J="/"+A.join(".")+J),this.hostname=Z.join(".");break}}}this.hostname.length>d?this.hostname="":this.hostname=this.hostname.toLowerCase(),$||(this.hostname=e.toASCII(this.hostname));var te=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+te,this.href+=this.host,$&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),J[0]!=="/"&&(J="/"+J))}if(!m[re])for(var he=0,R=l.length;he<R;he++){var oe=l[he];if(J.indexOf(oe)!==-1){var ue=encodeURIComponent(oe);ue===oe&&(ue=escape(oe)),J=J.split(oe).join(ue)}}var Q=J.indexOf("#");Q!==-1&&(this.hash=J.substr(Q),J=J.slice(0,Q));var se=J.indexOf("?");if(se!==-1?(this.search=J.substr(se),this.query=J.substr(se+1),O&&(this.query=f.parse(this.query)),J=J.slice(0,se)):O&&(this.search="",this.query={}),J&&(this.pathname=J),g[re]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var te=this.pathname||"",de=this.search||"";this.path=te+de}return this.href=this.format(),this};function x(j){return t.isString(j)&&(j=k(j)),j instanceof a?j.format():a.prototype.format.call(j)}a.prototype.format=function(){var j=this.auth||"";j&&(j=encodeURIComponent(j),j=j.replace(/%3A/i,":"),j+="@");var O=this.protocol||"",M=this.pathname||"",T=this.hash||"",B=!1,H="";this.host?B=j+this.host:this.hostname&&(B=j+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(B+=":"+this.port)),this.query&&t.isObject(this.query)&&Object.keys(this.query).length&&(H=f.stringify(this.query));var N=this.search||H&&"?"+H||"";return O&&O.substr(-1)!==":"&&(O+=":"),this.slashes||(!O||g[O])&&B!==!1?(B="//"+(B||""),M&&M.charAt(0)!=="/"&&(M="/"+M)):B||(B=""),T&&T.charAt(0)!=="#"&&(T="#"+T),N&&N.charAt(0)!=="?"&&(N="?"+N),M=M.replace(/[?#]/g,function(J){return encodeURIComponent(J)}),N=N.replace("#","%23"),O+B+M+N+T};function z(j,O){return k(j,!1,!0).resolve(O)}a.prototype.resolve=function(j){return this.resolveObject(k(j,!1,!0)).format()};function w(j,O){return j?k(j,!1,!0).resolveObject(O):O}return a.prototype.resolveObject=function(j){if(t.isString(j)){var O=new a;O.parse(j,!1,!0),j=O}for(var M=new a,T=Object.keys(this),B=0;B<T.length;B++){var H=T[B];M[H]=this[H]}if(M.hash=j.hash,j.href==="")return M.href=M.format(),M;if(j.slashes&&!j.protocol){for(var N=Object.keys(j),J=0;J<N.length;J++){var I=N[J];I!=="protocol"&&(M[I]=j[I])}return g[M.protocol]&&M.hostname&&!M.pathname&&(M.path=M.pathname="/"),M.href=M.format(),M}if(j.protocol&&j.protocol!==M.protocol){if(!g[j.protocol]){for(var X=Object.keys(j),re=0;re<X.length;re++){var le=X[re];M[le]=j[le]}return M.href=M.format(),M}if(M.protocol=j.protocol,!j.host&&!v[j.protocol]){for(var R=(j.pathname||"").split("/");R.length&&!(j.host=R.shift()););j.host||(j.host=""),j.hostname||(j.hostname=""),R[0]!==""&&R.unshift(""),R.length<2&&R.unshift(""),M.pathname=R.join("/")}else M.pathname=j.pathname;if(M.search=j.search,M.query=j.query,M.host=j.host||"",M.auth=j.auth,M.hostname=j.hostname||j.host,M.port=j.port,M.pathname||M.search){var ie=M.pathname||"",he=M.search||"";M.path=ie+he}return M.slashes=M.slashes||j.slashes,M.href=M.format(),M}var G=M.pathname&&M.pathname.charAt(0)==="/",D=j.host||j.pathname&&j.pathname.charAt(0)==="/",W=D||G||M.host&&j.pathname,$=W,P=M.pathname&&M.pathname.split("/")||[],R=j.pathname&&j.pathname.split("/")||[],V=M.protocol&&!g[M.protocol];if(V&&(M.hostname="",M.port=null,M.host&&(P[0]===""?P[0]=M.host:P.unshift(M.host)),M.host="",j.protocol&&(j.hostname=null,j.port=null,j.host&&(R[0]===""?R[0]=j.host:R.unshift(j.host)),j.host=null),W=W&&(R[0]===""||P[0]==="")),D)M.host=j.host||j.host===""?j.host:M.host,M.hostname=j.hostname||j.hostname===""?j.hostname:M.hostname,M.search=j.search,M.query=j.query,P=R;else if(R.length)P||(P=[]),P.pop(),P=P.concat(R),M.search=j.search,M.query=j.query;else if(!t.isNullOrUndefined(j.search)){if(V){M.hostname=M.host=P.shift();var ae=M.host&&M.host.indexOf("@")>0?M.host.split("@"):!1;ae&&(M.auth=ae.shift(),M.host=M.hostname=ae.shift())}return M.search=j.search,M.query=j.query,(!t.isNull(M.pathname)||!t.isNull(M.search))&&(M.path=(M.pathname?M.pathname:"")+(M.search?M.search:"")),M.href=M.format(),M}if(!P.length)return M.pathname=null,M.search?M.path="/"+M.search:M.path=null,M.href=M.format(),M;for(var U=P.slice(-1)[0],pe=(M.host||j.host||P.length>1)&&(U==="."||U==="..")||U==="",Z=0,A=P.length;A>=0;A--)U=P[A],U==="."?P.splice(A,1):U===".."?(P.splice(A,1),Z++):Z&&(P.splice(A,1),Z--);if(!W&&!$)for(;Z--;Z)P.unshift("..");W&&P[0]!==""&&(!P[0]||P[0].charAt(0)!=="/")&&P.unshift(""),pe&&P.join("/").substr(-1)!=="/"&&P.push("");var L=P[0]===""||P[0]&&P[0].charAt(0)==="/";if(V){M.hostname=M.host=L?"":P.length?P.shift():"";var ae=M.host&&M.host.indexOf("@")>0?M.host.split("@"):!1;ae&&(M.auth=ae.shift(),M.host=M.hostname=ae.shift())}return W=W||M.host&&P.length,W&&!L&&P.unshift(""),P.length?M.pathname=P.join("/"):(M.pathname=null,M.path=null),(!t.isNull(M.pathname)||!t.isNull(M.search))&&(M.path=(M.pathname?M.pathname:"")+(M.search?M.search:"")),M.auth=j.auth||M.auth,M.slashes=M.slashes||j.slashes,M.href=M.format(),M},a.prototype.parseHost=function(){var j=this.host,O=n.exec(j);O&&(O=O[0],O!==":"&&(this.port=O.substr(1)),j=j.substr(0,j.length-O.length)),j&&(this.hostname=j)},tf}var o9,Wpe;function o0t(){if(Wpe)return o9;Wpe=1;function e(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:function(t){setTimeout(t,0)}}return o9=e(),o9}var s9,Jpe;function s0t(){if(Jpe)return s9;Jpe=1;var e=o0t();return s9=function(t,a){if(t){a.then(function(r){e(function(){t(null,r)})},function(r){e(function(){t(r)})});return}else return a},s9}var l9,Upe;function BC(){if(Upe)return l9;Upe=1;function e(r){return r.replace(/\~/g,"~0").replace(/\//g,"~1")}function t(r){return r.replace(/\~1/g,"/").replace(/~0/g,"~")}function a(r,n,i){if(typeof r>"u")return!1;if(!n||typeof n!="string"||n==="#")return typeof i<"u"?i:r;if(n.indexOf("#")>=0){let s=n.split("#");if(s[0])return!1;n=s[1],n=decodeURIComponent(n.slice(1).split("+").join(" "))}n.startsWith("/")&&(n=n.slice(1));let o=n.split("/");for(let s=0;s<o.length;s++){o[s]=t(o[s]);let l=typeof i<"u"&&s==o.length-1,c=parseInt(o[s],10);if(!Array.isArray(r)||isNaN(c)||c.toString()!==o[s]?c=Array.isArray(r)&&o[s]==="-"?-2:-1:o[s]=s>0?o[s-1]:"",c!=-1||r&&r.hasOwnProperty(o[s]))if(c>=0)l&&(r[c]=i),r=r[c];else{if(c===-2)return l?(Array.isArray(r)&&r.push(i),i):void 0;l&&(r[o[s]]=i),r=r[o[s]]}else if(typeof i<"u"&&typeof r=="object"&&!Array.isArray(r))r[o[s]]=l?i:o[s+1]==="0"||o[s+1]==="-"?[]:{},r=r[o[s]];else return!1}return r}return l9={jptr:a,jpescape:e,jpunescape:t},l9}var c9,Zpe;function u9(){if(Zpe)return c9;Zpe=1;function e(t,a){return a==="$ref"&&!!t&&typeof t[a]=="string"}return c9={isRef:e},c9}var d9,Qpe;function LC(){if(Qpe)return d9;Qpe=1;function e(o){return o}function t(o){return JSON.parse(JSON.stringify(o))}function a(o){let s={};for(let l in o)o.hasOwnProperty(l)&&(s[l]=o[l]);return s}function r(o){let s=Array.isArray(o)?[]:{};for(let l in o)(o.hasOwnProperty(l)||Array.isArray(o))&&(s[l]=typeof o[l]=="object"?r(o[l]):o[l]);return s}function n(o){return Object.assign({},o)}function i(o,s){if(s||(s=new WeakMap),Object(o)!==o||o instanceof Function)return o;if(s.has(o))return s.get(o);try{var l=new o.constructor}catch{l=Object.create(Object.getPrototypeOf(o))}return s.set(o,l),Object.assign(l,...Object.keys(o).map(c=>({[c]:i(o[c],s)})))}return d9={nop:e,clone:t,shallowClone:a,deepClone:r,fastClone:n,circularClone:i},d9}var p9,Ype;function h9(){if(Ype)return p9;Ype=1;const e=BC().jpescape;function t(){return{path:"#",depth:0,pkey:"",parent:{},payload:{},seen:new WeakMap,identity:!1,identityDetection:!1}}function a(r,n,i){if(n||(n={depth:0}),n.depth||(n=Object.assign({},t(),n)),typeof r!="object")return;let o=n.path;for(let s in r){if(n.key=s,n.path=n.path+"/"+encodeURIComponent(e(s)),n.identityPath=n.seen.get(r[s]),n.identity=typeof n.identityPath<"u",r.hasOwnProperty(s)&&i(r,s,n),typeof r[s]=="object"&&!n.identity){n.identityDetection&&!Array.isArray(r[s])&&r[s]!==null&&n.seen.set(r[s],n.path);let l={};l.parent=r,l.path=n.path,l.depth=n.depth?n.depth+1:1,l.pkey=s,l.payload=n.payload,l.seen=n.seen,l.identity=!1,l.identityDetection=n.identityDetection,a(r[s],l,i)}n.path=o}}return p9={recurse:a},p9}var m9,Xpe;function l0t(){if(Xpe)return m9;Xpe=1;const e=h9().recurse,t=LC().shallowClone,a=BC().jptr,r=u9().isRef;var n=function(o){return o&&o.verbose?{warn:function(){var s=Array.prototype.slice.call(arguments);console.warn.apply(console,s)}}:{warn:function(){}}};function i(o,s,l){l||(l={}),l.cache||(l.cache={}),l.state||(l.state={}),l.state.identityDetection=!0,l.depth=l.depth?l.depth+1:1;let c=l.depth>1?o:t(o),u={data:c},d=l.depth>1?s:t(s);l.master||(l.master=c);let p=n(l),h=1;for(;h>0;)h=0,e(u,l.state,function(m,v,g){if(r(m,v)){let f=m[v];if(h++,l.cache[f]){let k=l.cache[f];if(k.resolved)p.warn("Patching %s for %s",f,k.path),g.parent[g.pkey]=k.data,l.$ref&&typeof g.parent[g.pkey]=="object"&&g.parent[g.pkey]!==null&&(g.parent[g.pkey][l.$ref]=f);else{if(f===k.path)throw new Error(`Tight circle at ${k.path}`);p.warn("Unresolved ref"),g.parent[g.pkey]=a(k.source,k.path),g.parent[g.pkey]===!1&&(g.parent[g.pkey]=a(k.source,k.key)),l.$ref&&typeof g.parent[g.pkey]=="object"&&g.parent[g.pkey]!==null&&(g.parent[l.$ref]=f)}}else{let k={};k.path=g.path.split("/$ref")[0],k.key=f,p.warn("Dereffing %s at %s",f,k.path),k.source=d,k.data=a(k.source,k.key),k.data===!1&&(k.data=a(l.master,k.key),k.source=l.master),k.data===!1&&p.warn("Missing $ref target",k.key),l.cache[f]=k,k.data=g.parent[g.pkey]=i(a(k.source,k.key),k.source,l),l.$ref&&typeof g.parent[g.pkey]=="object"&&g.parent[g.pkey]!==null&&(g.parent[g.pkey][l.$ref]=f),k.resolved=!0}}});return u.data}return m9={dereference:i},m9}var f9,ehe;function c0t(){if(ehe)return f9;ehe=1,f9=i,i.default=i,i.stable=c,i.stableStringify=c;var e="[...]",t="[Circular]",a=[],r=[];function n(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function i(p,h,m,v){typeof v>"u"&&(v=n()),s(p,"",0,[],void 0,0,v);var g;try{r.length===0?g=JSON.stringify(p,h,m):g=JSON.stringify(p,d(h),m)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;a.length!==0;){var f=a.pop();f.length===4?Object.defineProperty(f[0],f[1],f[3]):f[0][f[1]]=f[2]}}return g}function o(p,h,m,v){var g=Object.getOwnPropertyDescriptor(v,m);g.get!==void 0?g.configurable?(Object.defineProperty(v,m,{value:p}),a.push([v,m,h,g])):r.push([h,m,p]):(v[m]=p,a.push([v,m,h]))}function s(p,h,m,v,g,f,k){f+=1;var x;if(typeof p=="object"&&p!==null){for(x=0;x<v.length;x++)if(v[x]===p){o(t,p,h,g);return}if(typeof k.depthLimit<"u"&&f>k.depthLimit){o(e,p,h,g);return}if(typeof k.edgesLimit<"u"&&m+1>k.edgesLimit){o(e,p,h,g);return}if(v.push(p),Array.isArray(p))for(x=0;x<p.length;x++)s(p[x],x,x,v,p,f,k);else{var z=Object.keys(p);for(x=0;x<z.length;x++){var w=z[x];s(p[w],w,x,v,p,f,k)}}v.pop()}}function l(p,h){return p<h?-1:p>h?1:0}function c(p,h,m,v){typeof v>"u"&&(v=n());var g=u(p,"",0,[],void 0,0,v)||p,f;try{r.length===0?f=JSON.stringify(g,h,m):f=JSON.stringify(g,d(h),m)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;a.length!==0;){var k=a.pop();k.length===4?Object.defineProperty(k[0],k[1],k[3]):k[0][k[1]]=k[2]}}return f}function u(p,h,m,v,g,f,k){f+=1;var x;if(typeof p=="object"&&p!==null){for(x=0;x<v.length;x++)if(v[x]===p){o(t,p,h,g);return}try{if(typeof p.toJSON=="function")return}catch{return}if(typeof k.depthLimit<"u"&&f>k.depthLimit){o(e,p,h,g);return}if(typeof k.edgesLimit<"u"&&m+1>k.edgesLimit){o(e,p,h,g);return}if(v.push(p),Array.isArray(p))for(x=0;x<p.length;x++)u(p[x],x,x,v,p,f,k);else{var z={},w=Object.keys(p).sort(l);for(x=0;x<w.length;x++){var j=w[x];u(p[j],j,x,v,p,f,k),z[j]=p[j]}if(typeof g<"u")a.push([g,h,p]),g[h]=z;else return z}v.pop()}}function d(p){return p=typeof p<"u"?p:function(h,m){return m},function(h,m){if(r.length>0)for(var v=0;v<r.length;v++){var g=r[v];if(g[1]===h&&g[0]===m){m=g[2],r.splice(v,1);break}}return p.call(this,h,m)}}return f9}var g9,the;function ahe(){if(the)return g9;the=1;var e={};const t=c0t(),a=e.NODE_DISABLE_COLORS?{red:"",yellow:"",green:"",normal:""}:{red:"\x1B[31m",yellow:"\x1B[33;1m",green:"\x1B[32m",normal:"\x1B[0m"};function r(g,f,k){return k.indexOf(g)===f}function n(g){return new Set(g).size!==g.length}function i(g){return new Set(g).size<=1}function o(g,f){function k(x,z){return t.stringify(x)===t.stringify(Object.assign({},x,z))}return k(g,f)&&k(f,g)}function s(g){let f=[];for(let k of g)f.find(function(x,z,w){return o(x,k)})||f.push(k);return f}function l(g){return g.length===s(g).length}function c(g){return g.find(function(f,k,x){return g.indexOf(f)<k})}function u(g){let f=0,k;if(g.length===0)return f;for(let x=0;x<g.length;x++)k=g.charCodeAt(x),f=(f<<5)-f+k,f|=0;return f}String.prototype.toCamelCase=function(){return this.toLowerCase().replace(/[-_ \/\.](.)/g,function(g,f){return f.toUpperCase()})};const d=["format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","minLength","maxLength","multipleOf","minItems","maxItems","uniqueItems","minProperties","maxProperties","additionalProperties","pattern","enum","default"],p=["items","minItems","maxItems","uniqueItems"],h=["get","post","put","delete","patch","head","options","trace"];function m(g){g=g.replace("[]","Array");let f=g.split("/");return f[0]=f[0].replace(/[^A-Za-z0-9_\-\.]+|\s+/gm,"_"),f.join("/")}function v(g){return m(g.split("/").join("_"))}return g9={colour:a,uniqueOnly:r,hasDuplicates:n,allSame:i,distinctArray:l,firstDupe:c,hash:u,parameterTypeProperties:d,arrayProperties:p,httpMethods:h,sanitise:m,sanitiseAll:v},g9}var v9,rhe;function u0t(){if(rhe)return v9;rhe=1;const e=Rv,t=aQ(),a=i9(),r=Rv,n=Rv,i=BC().jptr,o=h9().recurse,s=LC().clone,l=l0t().dereference,c=u9().isRef,u=ahe();function d(M){return[...new Set(M)]}function p(M,T,B,H,N){return new Promise(function(J,I){e.readFile(M,T,function(X,re){X?B.ignoreIOErrors&&N?(B.verbose&&console.warn("FAILED",H),B.externalRefs[H].failed=!0,J(N)):I(X):J(re)})})}function h(M,T,B,H,N,J){let I=J.externalRefs[B+H].paths[0],X=a.parse(N),re={},le=1;for(;le;)le=0,o(M,{identityDetection:!0},function(ie,he,G){if(c(ie,he)){if(ie[he].startsWith("#")){if(!re[ie[he]]&&!ie.$fixed){let D=s(i(T,ie[he]));if(J.verbose>1&&console.warn((D===!1?u.colour.red:u.colour.green)+"Fragment resolution",ie[he],u.colour.normal),D===!1){if(G.parent[G.pkey]={},J.fatal){let W=new Error("Fragment $ref resolution failed "+ie[he]);if(J.promise)J.promise.reject(W);else throw W}}else le++,G.parent[G.pkey]=D,re[ie[he]]=G.path.replace("/%24ref","")}else if(!ie.$fixed){let D=(I+"/"+re[ie[he]]).split("/#/").join("/");G.parent[G.pkey]={$ref:D,"x-miro":ie[he],$fixed:!0},J.verbose>1&&console.warn("Replacing with",D),le++}}else if(X.protocol){let D=a.resolve(N,ie[he]).toString();J.verbose>1&&console.warn(u.colour.yellow+"Rewriting external url ref",ie[he],"as",D,u.colour.normal),ie["x-miro"]=ie[he],J.externalRefs[ie[he]]&&(J.externalRefs[D]||(J.externalRefs[D]=J.externalRefs[ie[he]]),J.externalRefs[D].failed=J.externalRefs[ie[he]].failed),ie[he]=D}else if(!ie["x-miro"]){let D=a.resolve(N,ie[he]).toString(),W=!1;J.externalRefs[ie[he]]&&(W=J.externalRefs[ie[he]].failed),W||(J.verbose>1&&console.warn(u.colour.yellow+"Rewriting external ref",ie[he],"as",D,u.colour.normal),ie["x-miro"]=ie[he],ie[he]=D)}}});return o(M,{},function(ie,he,G){c(ie,he)&&typeof ie.$fixed<"u"&&delete ie.$fixed}),J.verbose>1&&console.warn("Finished fragment resolution"),M}function m(M,T){if(!T.filters||!T.filters.length)return M;for(let B of T.filters)M=B(M,T);return M}function v(M,T){return M&&M.length>2?M:T&&T.length>2?T:"file:"}function g(M,T,B,H){var N=a.parse(B.source),J=B.source.split("\\").join("/").split("/");J.pop()||J.pop();let I="",X=T.split("#");X.length>1&&(I="#"+X[1],T=X[0]),J=J.join("/");let re=a.parse(T),le=v(re.protocol,N.protocol),ie;if(le==="file:"?ie=t.resolve(J?J+"/":"",T):ie=a.resolve(J?J+"/":"",T),B.cache[ie]){B.verbose&&console.warn("CACHED",ie,I);let he=s(B.cache[ie]),G=B.externalRef=he;if(I&&(G=i(G,I),G===!1&&(G={},B.fatal))){let D=new Error("Cached $ref resolution failed "+ie+I);if(B.promise)B.promise.reject(D);else throw D}return G=h(G,he,T,I,ie,B),G=m(G,B),H(s(G),ie,B),Promise.resolve(G)}if(B.verbose&&console.warn("GET",ie,I),B.handlers&&B.handlers[le])return B.handlers[le](J,T,I,B).then(function(he){return B.externalRef=he,he=m(he,B),B.cache[ie]=he,H(he,ie,B),he}).catch(function(he){throw B.verbose&&console.warn(he),he});if(le&&le.startsWith("http")){const he=Object.assign({},B.fetchOptions,{agent:B.agent});return B.fetch(ie,he).then(function(G){if(G.status!==200){if(B.ignoreIOErrors)return B.verbose&&console.warn("FAILED",T),B.externalRefs[T].failed=!0,'{"$ref":"'+T+'"}';throw new Error(`Received status code ${G.status}: ${ie}`)}return G.text()}).then(function(G){try{let D=n.parse(G,{schema:"core",prettyErrors:!0});if(G=B.externalRef=D,B.cache[ie]=s(G),I&&(G=i(G,I),G===!1&&(G={},B.fatal))){let W=new Error("Remote $ref resolution failed "+ie+I);if(B.promise)B.promise.reject(W);else throw W}G=h(G,D,T,I,ie,B),G=m(G,B)}catch(D){if(B.verbose&&console.warn(D),B.promise&&B.fatal)B.promise.reject(D);else throw D}return H(G,ie,B),G}).catch(function(G){if(B.verbose&&console.warn(G),B.cache[ie]={},B.promise&&B.fatal)B.promise.reject(G);else throw G})}else{const he='{"$ref":"'+T+'"}';return p(ie,B.encoding||"utf8",B,T,he).then(function(G){try{let D=n.parse(G,{schema:"core",prettyErrors:!0});if(G=B.externalRef=D,B.cache[ie]=s(G),I&&(G=i(G,I),G===!1&&(G={},B.fatal))){let W=new Error("File $ref resolution failed "+ie+I);if(B.promise)B.promise.reject(W);else throw W}G=h(G,D,T,I,ie,B),G=m(G,B)}catch(D){if(B.verbose&&console.warn(D),B.promise&&B.fatal)B.promise.reject(D);else throw D}return H(G,ie,B),G}).catch(function(G){if(B.verbose&&console.warn(G),B.promise&&B.fatal)B.promise.reject(G);else throw G})}}function f(M){return new Promise(function(T,B){function H(J,I,X){if(J[I]&&c(J[I],"$ref")){let re=J[I].$ref;if(!re.startsWith("#")){let le="";if(!N[re]){let ie=Object.keys(N).find(function(he,G,D){return re.startsWith(he+"/")});ie&&(M.verbose&&console.warn("Found potential subschema at",ie),le="/"+(re.split("#")[1]||"").replace(ie.split("#")[1]||""),le=le.split("/undefined").join(""),re=ie)}if(N[re]||(N[re]={resolved:!1,paths:[],extras:{},description:J[I].description}),N[re].resolved){if(!N[re].failed)if(M.rewriteRefs){let ie=N[re].resolvedAt;M.verbose>1&&console.warn("Rewriting ref",re,ie),J[I]["x-miro"]=re,J[I].$ref=ie+le}else J[I]=s(N[re].data)}else N[re].paths.push(X.path),N[re].extras[X.path]=le}}}let N=M.externalRefs;if(M.resolver.depth>0&&M.source===M.resolver.base)return T(N);o(M.openapi.definitions,{identityDetection:!0,path:"#/definitions"},H),o(M.openapi.components,{identityDetection:!0,path:"#/components"},H),o(M.openapi,{identityDetection:!0},H),T(N)})}function k(M){return new Promise(function(T,B){f(M).then(function(N){for(let J in N)if(!N[J].resolved){let I=M.resolver.depth;I>0&&I++,M.resolver.actions[I].push(function(){return g(M.openapi,J,M,function(X,re,le){if(!N[J].resolved){let G={};G.context=N[J],G.$ref=J,G.original=s(X),G.updated=X,G.source=re,le.externals.push(G),N[J].resolved=!0}let ie=Object.assign({},le,{source:"",resolver:{actions:le.resolver.actions,depth:le.resolver.actions.length-1,base:le.resolver.base}});le.patch&&N[J].description&&!X.description&&typeof X=="object"&&(X.description=N[J].description),N[J].data=X;let he=d(N[J].paths);he=he.sort(function(G,D){const W=G.startsWith("#/components/")||G.startsWith("#/definitions/"),$=D.startsWith("#/components/")||D.startsWith("#/definitions/");return W&&!$?-1:$&&!W?1:0});for(let G of he)if(N[J].resolvedAt&&G!==N[J].resolvedAt&&G.indexOf("x-ms-examples/")<0)le.verbose>1&&console.warn("Creating pointer to data at",G),i(le.openapi,G,{$ref:N[J].resolvedAt+N[J].extras[G],"x-miro":J+N[J].extras[G]});else{N[J].resolvedAt?le.verbose>1&&console.warn("Avoiding circular reference"):(N[J].resolvedAt=G,le.verbose>1&&console.warn("Creating initial clone of data at",G));let D=s(X);i(le.openapi,G,D)}le.resolver.actions[ie.resolver.depth].length===0&&le.resolver.actions[ie.resolver.depth].push(function(){return k(ie)})})})}}).catch(function(N){M.verbose&&console.warn(N),B(N)});let H={options:M};H.actions=M.resolver.actions[M.resolver.depth],T(H)})}const x=M=>M.reduce((T,B)=>T.then(H=>B().then(Array.prototype.concat.bind(H))),Promise.resolve([]));function z(M,T,B){M.resolver.actions.push([]),k(M).then(function(H){x(H.actions).then(function(){if(M.resolver.depth>=M.resolver.actions.length)return console.warn("Ran off the end of resolver actions"),T(!0);M.resolver.depth++,M.resolver.actions[M.resolver.depth].length?setTimeout(function(){z(H.options,T,B)},0):(M.verbose>1&&console.warn(u.colour.yellow+"Finished external resolution!",u.colour.normal),M.resolveInternal&&(M.verbose>1&&console.warn(u.colour.yellow+"Starting internal resolution!",u.colour.normal),M.openapi=l(M.openapi,M.original,{verbose:M.verbose-1}),M.verbose>1&&console.warn(u.colour.yellow+"Finished internal resolution!",u.colour.normal)),o(M.openapi,{},function(N,J,I){c(N,J)&&(M.preserveMiro||delete N["x-miro"])}),T(M))}).catch(function(N){M.verbose&&console.warn(N),B(N)})}).catch(function(H){M.verbose&&console.warn(H),B(H)})}function w(M){if(M.cache||(M.cache={}),M.fetch||(M.fetch=r),M.source){let T=a.parse(M.source);(!T.protocol||T.protocol.length<=2)&&(M.source=t.resolve(M.source))}M.externals=[],M.externalRefs={},M.rewriteRefs=!0,M.resolver={},M.resolver.depth=0,M.resolver.base=M.source,M.resolver.actions=[[]]}function j(M){return w(M),new Promise(function(T,B){M.resolve?z(M,T,B):T(M)})}function O(M,T,B){return B||(B={}),B.openapi=M,B.source=T,B.resolve=!0,w(B),new Promise(function(H,N){z(B,H,N)})}return v9={optionalResolve:j,resolve:O},v9}var b9,nhe;function d0t(){if(nhe)return b9;nhe=1;function e(){return{depth:0,seen:new WeakMap,top:!0,combine:!1,allowRefSiblings:!1}}function t(a,r,n,i){if(typeof n.depth>"u"&&(n=e()),a===null||typeof a>"u")return a;if(typeof a.$ref<"u"){let o={$ref:a.$ref};return n.allowRefSiblings&&a.description&&(o.description=a.description),i(o,r,n),o}if(n.combine&&(a.allOf&&Array.isArray(a.allOf)&&a.allOf.length===1&&(a=Object.assign({},a.allOf[0],a),delete a.allOf),a.anyOf&&Array.isArray(a.anyOf)&&a.anyOf.length===1&&(a=Object.assign({},a.anyOf[0],a),delete a.anyOf),a.oneOf&&Array.isArray(a.oneOf)&&a.oneOf.length===1&&(a=Object.assign({},a.oneOf[0],a),delete a.oneOf)),i(a,r,n),n.seen.has(a))return a;if(typeof a=="object"&&a!==null&&n.seen.set(a,!0),n.top=!1,n.depth++,typeof a.items<"u"&&(n.property="items",t(a.items,a,n,i)),a.additionalItems&&typeof a.additionalItems=="object"&&(n.property="additionalItems",t(a.additionalItems,a,n,i)),a.additionalProperties&&typeof a.additionalProperties=="object"&&(n.property="additionalProperties",t(a.additionalProperties,a,n,i)),a.properties)for(let o in a.properties){let s=a.properties[o];n.property="properties/"+o,t(s,a,n,i)}if(a.patternProperties)for(let o in a.patternProperties){let s=a.patternProperties[o];n.property="patternProperties/"+o,t(s,a,n,i)}if(a.allOf)for(let o in a.allOf){let s=a.allOf[o];n.property="allOf/"+o,t(s,a,n,i)}if(a.anyOf)for(let o in a.anyOf){let s=a.anyOf[o];n.property="anyOf/"+o,t(s,a,n,i)}if(a.oneOf)for(let o in a.oneOf){let s=a.oneOf[o];n.property="oneOf/"+o,t(s,a,n,i)}return a.not&&(n.property="not",t(a.not,a,n,i)),n.depth--,a}return b9={getDefaultState:e,walkSchema:t},b9}var ihe={},k9={exports:{}},ohe={},she;function lhe(){return she||(she=1,(function(e){e.fetch=n(globalThis.fetch)&&n(globalThis.ReadableStream),e.writableStream=n(globalThis.WritableStream),e.abortController=n(globalThis.AbortController);var t;function a(){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 r(i){var o=a();if(!o)return!1;try{return o.responseType=i,o.responseType===i}catch{}return!1}e.arraybuffer=e.fetch||r("arraybuffer"),e.msstream=!e.fetch&&r("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&r("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||(a()?n(a().overrideMimeType):!1);function n(i){return typeof i=="function"}t=null})(ohe)),ohe}var NC={},y9={exports:{}},DC={exports:{}},che;function p0t(){if(che)return DC.exports;che=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(z,w,j){return Function.prototype.apply.call(z,w,j)},a;e&&typeof e.ownKeys=="function"?a=e.ownKeys:Object.getOwnPropertySymbols?a=function(z){return Object.getOwnPropertyNames(z).concat(Object.getOwnPropertySymbols(z))}:a=function(z){return Object.getOwnPropertyNames(z)};function r(z){console&&console.warn&&console.warn(z)}var n=Number.isNaN||function(z){return z!==z};function i(){i.init.call(this)}DC.exports=i,DC.exports.once=f,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var o=10;function s(z){if(typeof z!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof z)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(z){if(typeof z!="number"||z<0||n(z))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+z+".");o=z}}),i.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},i.prototype.setMaxListeners=function(z){if(typeof z!="number"||z<0||n(z))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+z+".");return this._maxListeners=z,this};function l(z){return z._maxListeners===void 0?i.defaultMaxListeners:z._maxListeners}i.prototype.getMaxListeners=function(){return l(this)},i.prototype.emit=function(z){for(var w=[],j=1;j<arguments.length;j++)w.push(arguments[j]);var O=z==="error",M=this._events;if(M!==void 0)O=O&&M.error===void 0;else if(!O)return!1;if(O){var T;if(w.length>0&&(T=w[0]),T instanceof Error)throw T;var B=new Error("Unhandled error."+(T?" ("+T.message+")":""));throw B.context=T,B}var H=M[z];if(H===void 0)return!1;if(typeof H=="function")t(H,this,w);else for(var N=H.length,J=m(H,N),j=0;j<N;++j)t(J[j],this,w);return!0};function c(z,w,j,O){var M,T,B;if(s(j),T=z._events,T===void 0?(T=z._events=Object.create(null),z._eventsCount=0):(T.newListener!==void 0&&(z.emit("newListener",w,j.listener?j.listener:j),T=z._events),B=T[w]),B===void 0)B=T[w]=j,++z._eventsCount;else if(typeof B=="function"?B=T[w]=O?[j,B]:[B,j]:O?B.unshift(j):B.push(j),M=l(z),M>0&&B.length>M&&!B.warned){B.warned=!0;var H=new Error("Possible EventEmitter memory leak detected. "+B.length+" "+String(w)+" listeners added. Use emitter.setMaxListeners() to increase limit");H.name="MaxListenersExceededWarning",H.emitter=z,H.type=w,H.count=B.length,r(H)}return z}i.prototype.addListener=function(z,w){return c(this,z,w,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(z,w){return c(this,z,w,!0)};function u(){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 d(z,w,j){var O={fired:!1,wrapFn:void 0,target:z,type:w,listener:j},M=u.bind(O);return M.listener=j,O.wrapFn=M,M}i.prototype.once=function(z,w){return s(w),this.on(z,d(this,z,w)),this},i.prototype.prependOnceListener=function(z,w){return s(w),this.prependListener(z,d(this,z,w)),this},i.prototype.removeListener=function(z,w){var j,O,M,T,B;if(s(w),O=this._events,O===void 0)return this;if(j=O[z],j===void 0)return this;if(j===w||j.listener===w)--this._eventsCount===0?this._events=Object.create(null):(delete O[z],O.removeListener&&this.emit("removeListener",z,j.listener||w));else if(typeof j!="function"){for(M=-1,T=j.length-1;T>=0;T--)if(j[T]===w||j[T].listener===w){B=j[T].listener,M=T;break}if(M<0)return this;M===0?j.shift():v(j,M),j.length===1&&(O[z]=j[0]),O.removeListener!==void 0&&this.emit("removeListener",z,B||w)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(z){var w,j,O;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[z]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete j[z]),this;if(arguments.length===0){var M=Object.keys(j),T;for(O=0;O<M.length;++O)T=M[O],T!=="removeListener"&&this.removeAllListeners(T);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(w=j[z],typeof w=="function")this.removeListener(z,w);else if(w!==void 0)for(O=w.length-1;O>=0;O--)this.removeListener(z,w[O]);return this};function p(z,w,j){var O=z._events;if(O===void 0)return[];var M=O[w];return M===void 0?[]:typeof M=="function"?j?[M.listener||M]:[M]:j?g(M):m(M,M.length)}i.prototype.listeners=function(z){return p(this,z,!0)},i.prototype.rawListeners=function(z){return p(this,z,!1)},i.listenerCount=function(z,w){return typeof z.listenerCount=="function"?z.listenerCount(w):h.call(z,w)},i.prototype.listenerCount=h;function h(z){var w=this._events;if(w!==void 0){var j=w[z];if(typeof j=="function")return 1;if(j!==void 0)return j.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]};function m(z,w){for(var j=new Array(w),O=0;O<w;++O)j[O]=z[O];return j}function v(z,w){for(;w+1<z.length;w++)z[w]=z[w+1];z.pop()}function g(z){for(var w=new Array(z.length),j=0;j<w.length;++j)w[j]=z[j].listener||z[j];return w}function f(z,w){return new Promise(function(j,O){function M(B){z.removeListener(w,T),O(B)}function T(){typeof z.removeListener=="function"&&z.removeListener("error",M),j([].slice.call(arguments))}x(z,w,T,{once:!0}),w!=="error"&&k(z,M,{once:!0})})}function k(z,w,j){typeof z.on=="function"&&x(z,"error",w,j)}function x(z,w,j,O){if(typeof z.on=="function")O.once?z.once(w,j):z.on(w,j);else if(typeof z.addEventListener=="function")z.addEventListener(w,function M(T){O.once&&z.removeEventListener(w,M),j(T)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof z)}return DC.exports}var uhe,dhe;function phe(){return dhe||(dhe=1,uhe=p0t().EventEmitter),uhe}const hhe=iJ(j6);var x9,mhe;function h0t(){if(mhe)return x9;mhe=1;function e(m,v){var g=Object.keys(m);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(m);v&&(f=f.filter(function(k){return Object.getOwnPropertyDescriptor(m,k).enumerable})),g.push.apply(g,f)}return g}function t(m){for(var v=1;v<arguments.length;v++){var g=arguments[v]!=null?arguments[v]:{};v%2?e(Object(g),!0).forEach(function(f){a(m,f,g[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(g)):e(Object(g)).forEach(function(f){Object.defineProperty(m,f,Object.getOwnPropertyDescriptor(g,f))})}return m}function a(m,v,g){return v=o(v),v in m?Object.defineProperty(m,v,{value:g,enumerable:!0,configurable:!0,writable:!0}):m[v]=g,m}function r(m,v){if(!(m instanceof v))throw new TypeError("Cannot call a class as a function")}function n(m,v){for(var g=0;g<v.length;g++){var f=v[g];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(m,o(f.key),f)}}function i(m,v,g){return v&&n(m.prototype,v),Object.defineProperty(m,"prototype",{writable:!1}),m}function o(m){var v=s(m,"string");return typeof v=="symbol"?v:String(v)}function s(m,v){if(typeof m!="object"||m===null)return m;var g=m[Symbol.toPrimitive];if(g!==void 0){var f=g.call(m,v);if(typeof f!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(m)}var l=y1(),c=l.Buffer,u=hhe,d=u.inspect,p=d&&d.custom||"inspect";function h(m,v,g){c.prototype.copy.call(m,v,g)}return x9=(function(){function m(){r(this,m),this.head=null,this.tail=null,this.length=0}return i(m,[{key:"push",value:function(v){var g={data:v,next:null};this.length>0?this.tail.next=g:this.head=g,this.tail=g,++this.length}},{key:"unshift",value:function(v){var g={data:v,next:this.head};this.length===0&&(this.tail=g),this.head=g,++this.length}},{key:"shift",value:function(){if(this.length!==0){var v=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,v}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(v){if(this.length===0)return"";for(var g=this.head,f=""+g.data;g=g.next;)f+=v+g.data;return f}},{key:"concat",value:function(v){if(this.length===0)return c.alloc(0);for(var g=c.allocUnsafe(v>>>0),f=this.head,k=0;f;)h(f.data,g,k),k+=f.data.length,f=f.next;return g}},{key:"consume",value:function(v,g){var f;return v<this.head.data.length?(f=this.head.data.slice(0,v),this.head.data=this.head.data.slice(v)):v===this.head.data.length?f=this.shift():f=g?this._getString(v):this._getBuffer(v),f}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(v){var g=this.head,f=1,k=g.data;for(v-=k.length;g=g.next;){var x=g.data,z=v>x.length?x.length:v;if(z===x.length?k+=x:k+=x.slice(0,v),v-=z,v===0){z===x.length?(++f,g.next?this.head=g.next:this.head=this.tail=null):(this.head=g,g.data=x.slice(z));break}++f}return this.length-=f,k}},{key:"_getBuffer",value:function(v){var g=c.allocUnsafe(v),f=this.head,k=1;for(f.data.copy(g),v-=f.data.length;f=f.next;){var x=f.data,z=v>x.length?x.length:v;if(x.copy(g,g.length-v,0,z),v-=z,v===0){z===x.length?(++k,f.next?this.head=f.next:this.head=this.tail=null):(this.head=f,f.data=x.slice(z));break}++k}return this.length-=k,g}},{key:p,value:function(v,g){return d(this,t(t({},g),{},{depth:0,customInspect:!1}))}}]),m})(),x9}var w9,fhe;function ghe(){if(fhe)return w9;fhe=1;function e(o,s){var l=this,c=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return c||u?(s?s(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(n,this,o)):process.nextTick(n,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(d){!s&&d?l._writableState?l._writableState.errorEmitted?process.nextTick(a,l):(l._writableState.errorEmitted=!0,process.nextTick(t,l,d)):process.nextTick(t,l,d):s?(process.nextTick(a,l),s(d)):process.nextTick(a,l)}),this)}function t(o,s){n(o,s),a(o)}function a(o){o._writableState&&!o._writableState.emitClose||o._readableState&&!o._readableState.emitClose||o.emit("close")}function r(){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 n(o,s){o.emit("error",s)}function i(o,s){var l=o._readableState,c=o._writableState;l&&l.autoDestroy||c&&c.autoDestroy?o.destroy(s):o.emit("error",s)}return w9={destroy:e,undestroy:r,errorOrDestroy:i},w9}var S9={},vhe;function Bv(){if(vhe)return S9;vhe=1;function e(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,s.__proto__=l}var t={};function a(s,l,c){c||(c=Error);function u(p,h,m){return typeof l=="string"?l:l(p,h,m)}var d=(function(p){e(h,p);function h(m,v,g){return p.call(this,u(m,v,g))||this}return h})(c);d.prototype.name=c.name,d.prototype.code=s,t[s]=d}function r(s,l){if(Array.isArray(s)){var c=s.length;return s=s.map(function(u){return String(u)}),c>2?"one of ".concat(l," ").concat(s.slice(0,c-1).join(", "),", or ")+s[c-1]:c===2?"one of ".concat(l," ").concat(s[0]," or ").concat(s[1]):"of ".concat(l," ").concat(s[0])}else return"of ".concat(l," ").concat(String(s))}function n(s,l,c){return s.substr(0,l.length)===l}function i(s,l,c){return(c===void 0||c>s.length)&&(c=s.length),s.substring(c-l.length,c)===l}function o(s,l,c){return typeof c!="number"&&(c=0),c+l.length>s.length?!1:s.indexOf(l,c)!==-1}return a("ERR_INVALID_OPT_VALUE",function(s,l){return'The value "'+l+'" is invalid for option "'+s+'"'},TypeError),a("ERR_INVALID_ARG_TYPE",function(s,l,c){var u;typeof l=="string"&&n(l,"not ")?(u="must not be",l=l.replace(/^not /,"")):u="must be";var d;if(i(s," argument"))d="The ".concat(s," ").concat(u," ").concat(r(l,"type"));else{var p=o(s,".")?"property":"argument";d='The "'.concat(s,'" ').concat(p," ").concat(u," ").concat(r(l,"type"))}return d+=". Received type ".concat(typeof c),d},TypeError),a("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),a("ERR_METHOD_NOT_IMPLEMENTED",function(s){return"The "+s+" method is not implemented"}),a("ERR_STREAM_PREMATURE_CLOSE","Premature close"),a("ERR_STREAM_DESTROYED",function(s){return"Cannot call "+s+" after a stream was destroyed"}),a("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),a("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),a("ERR_STREAM_WRITE_AFTER_END","write after end"),a("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),a("ERR_UNKNOWN_ENCODING",function(s){return"Unknown encoding: "+s},TypeError),a("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),S9.codes=t,S9}var z9,bhe;function khe(){if(bhe)return z9;bhe=1;var e=Bv().codes.ERR_INVALID_OPT_VALUE;function t(r,n,i){return r.highWaterMark!=null?r.highWaterMark:n?r[i]:null}function a(r,n,i,o){var s=t(n,o,i);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var l=o?i:"highWaterMark";throw new e(l,s)}return Math.floor(s)}return r.objectMode?16:16*1024}return z9={getHighWaterMark:a},z9}var j9,yhe;function m0t(){if(yhe)return j9;yhe=1,j9=e;function e(a,r){if(t("noDeprecation"))return a;var n=!1;function i(){if(!n){if(t("throwDeprecation"))throw new Error(r);t("traceDeprecation")?console.trace(r):console.warn(r),n=!0}return a.apply(this,arguments)}return i}function t(a){try{if(!globalThis.localStorage)return!1}catch{return!1}var r=globalThis.localStorage[a];return r==null?!1:String(r).toLowerCase()==="true"}return j9}var O9,xhe;function whe(){if(xhe)return O9;xhe=1,O9=M;function e(V){var ae=this;this.next=null,this.entry=null,this.finish=function(){R(ae,V)}}var t;M.WritableState=j;var a={deprecate:m0t()},r=phe(),n=y1().Buffer,i=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function o(V){return n.from(V)}function s(V){return n.isBuffer(V)||V instanceof i}var l=ghe(),c=khe(),u=c.getHighWaterMark,d=Bv().codes,p=d.ERR_INVALID_ARG_TYPE,h=d.ERR_METHOD_NOT_IMPLEMENTED,m=d.ERR_MULTIPLE_CALLBACK,v=d.ERR_STREAM_CANNOT_PIPE,g=d.ERR_STREAM_DESTROYED,f=d.ERR_STREAM_NULL_VALUES,k=d.ERR_STREAM_WRITE_AFTER_END,x=d.ERR_UNKNOWN_ENCODING,z=l.errorOrDestroy;function w(){}function j(V,ae,U){t=t||Lv(),V=V||{},typeof U!="boolean"&&(U=ae instanceof t),this.objectMode=!!V.objectMode,U&&(this.objectMode=this.objectMode||!!V.writableObjectMode),this.highWaterMark=u(this,V,"writableHighWaterMark",U),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var pe=V.decodeStrings===!1;this.decodeStrings=!pe,this.defaultEncoding=V.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Z){re(ae,Z)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=V.emitClose!==!1,this.autoDestroy=!!V.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}j.prototype.getBuffer=function(){for(var V=this.bufferedRequest,ae=[];V;)ae.push(V),V=V.next;return ae},(function(){try{Object.defineProperty(j.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var O;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(O=Function.prototype[Symbol.hasInstance],Object.defineProperty(M,Symbol.hasInstance,{value:function(V){return O.call(this,V)?!0:this!==M?!1:V&&V._writableState instanceof j}})):O=function(V){return V instanceof this};function M(V){t=t||Lv();var ae=this instanceof t;if(!ae&&!O.call(M,this))return new M(V);this._writableState=new j(V,this,ae),this.writable=!0,V&&(typeof V.write=="function"&&(this._write=V.write),typeof V.writev=="function"&&(this._writev=V.writev),typeof V.destroy=="function"&&(this._destroy=V.destroy),typeof V.final=="function"&&(this._final=V.final)),r.call(this)}M.prototype.pipe=function(){z(this,new v)};function T(V,ae){var U=new k;z(V,U),process.nextTick(ae,U)}function B(V,ae,U,pe){var Z;return U===null?Z=new f:typeof U!="string"&&!ae.objectMode&&(Z=new p("chunk",["string","Buffer"],U)),Z?(z(V,Z),process.nextTick(pe,Z),!1):!0}M.prototype.write=function(V,ae,U){var pe=this._writableState,Z=!1,A=!pe.objectMode&&s(V);return A&&!n.isBuffer(V)&&(V=o(V)),typeof ae=="function"&&(U=ae,ae=null),A?ae="buffer":ae||(ae=pe.defaultEncoding),typeof U!="function"&&(U=w),pe.ending?T(this,U):(A||B(this,pe,V,U))&&(pe.pendingcb++,Z=N(this,pe,A,V,ae,U)),Z},M.prototype.cork=function(){this._writableState.corked++},M.prototype.uncork=function(){var V=this._writableState;V.corked&&(V.corked--,!V.writing&&!V.corked&&!V.bufferProcessing&&V.bufferedRequest&&he(this,V))},M.prototype.setDefaultEncoding=function(V){if(typeof V=="string"&&(V=V.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((V+"").toLowerCase())>-1))throw new x(V);return this._writableState.defaultEncoding=V,this},Object.defineProperty(M.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function H(V,ae,U){return!V.objectMode&&V.decodeStrings!==!1&&typeof ae=="string"&&(ae=n.from(ae,U)),ae}Object.defineProperty(M.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function N(V,ae,U,pe,Z,A){if(!U){var L=H(ae,pe,Z);pe!==L&&(U=!0,Z="buffer",pe=L)}var te=ae.objectMode?1:pe.length;ae.length+=te;var F=ae.length<ae.highWaterMark;if(F||(ae.needDrain=!0),ae.writing||ae.corked){var oe=ae.lastBufferedRequest;ae.lastBufferedRequest={chunk:pe,encoding:Z,isBuf:U,callback:A,next:null},oe?oe.next=ae.lastBufferedRequest:ae.bufferedRequest=ae.lastBufferedRequest,ae.bufferedRequestCount+=1}else J(V,ae,!1,te,pe,Z,A);return F}function J(V,ae,U,pe,Z,A,L){ae.writelen=pe,ae.writecb=L,ae.writing=!0,ae.sync=!0,ae.destroyed?ae.onwrite(new g("write")):U?V._writev(Z,ae.onwrite):V._write(Z,A,ae.onwrite),ae.sync=!1}function I(V,ae,U,pe,Z){--ae.pendingcb,U?(process.nextTick(Z,pe),process.nextTick($,V,ae),V._writableState.errorEmitted=!0,z(V,pe)):(Z(pe),V._writableState.errorEmitted=!0,z(V,pe),$(V,ae))}function X(V){V.writing=!1,V.writecb=null,V.length-=V.writelen,V.writelen=0}function re(V,ae){var U=V._writableState,pe=U.sync,Z=U.writecb;if(typeof Z!="function")throw new m;if(X(U),ae)I(V,U,pe,ae,Z);else{var A=G(U)||V.destroyed;!A&&!U.corked&&!U.bufferProcessing&&U.bufferedRequest&&he(V,U),pe?process.nextTick(le,V,U,A,Z):le(V,U,A,Z)}}function le(V,ae,U,pe){U||ie(V,ae),ae.pendingcb--,pe(),$(V,ae)}function ie(V,ae){ae.length===0&&ae.needDrain&&(ae.needDrain=!1,V.emit("drain"))}function he(V,ae){ae.bufferProcessing=!0;var U=ae.bufferedRequest;if(V._writev&&U&&U.next){var pe=ae.bufferedRequestCount,Z=new Array(pe),A=ae.corkedRequestsFree;A.entry=U;for(var L=0,te=!0;U;)Z[L]=U,U.isBuf||(te=!1),U=U.next,L+=1;Z.allBuffers=te,J(V,ae,!0,ae.length,Z,"",A.finish),ae.pendingcb++,ae.lastBufferedRequest=null,A.next?(ae.corkedRequestsFree=A.next,A.next=null):ae.corkedRequestsFree=new e(ae),ae.bufferedRequestCount=0}else{for(;U;){var F=U.chunk,oe=U.encoding,ue=U.callback,Q=ae.objectMode?1:F.length;if(J(V,ae,!1,Q,F,oe,ue),U=U.next,ae.bufferedRequestCount--,ae.writing)break}U===null&&(ae.lastBufferedRequest=null)}ae.bufferedRequest=U,ae.bufferProcessing=!1}M.prototype._write=function(V,ae,U){U(new h("_write()"))},M.prototype._writev=null,M.prototype.end=function(V,ae,U){var pe=this._writableState;return typeof V=="function"?(U=V,V=null,ae=null):typeof ae=="function"&&(U=ae,ae=null),V!=null&&this.write(V,ae),pe.corked&&(pe.corked=1,this.uncork()),pe.ending||P(this,pe,U),this},Object.defineProperty(M.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function G(V){return V.ending&&V.length===0&&V.bufferedRequest===null&&!V.finished&&!V.writing}function D(V,ae){V._final(function(U){ae.pendingcb--,U&&z(V,U),ae.prefinished=!0,V.emit("prefinish"),$(V,ae)})}function W(V,ae){!ae.prefinished&&!ae.finalCalled&&(typeof V._final=="function"&&!ae.destroyed?(ae.pendingcb++,ae.finalCalled=!0,process.nextTick(D,V,ae)):(ae.prefinished=!0,V.emit("prefinish")))}function $(V,ae){var U=G(ae);if(U&&(W(V,ae),ae.pendingcb===0&&(ae.finished=!0,V.emit("finish"),ae.autoDestroy))){var pe=V._readableState;(!pe||pe.autoDestroy&&pe.endEmitted)&&V.destroy()}return U}function P(V,ae,U){ae.ending=!0,$(V,ae),U&&(ae.finished?process.nextTick(U):V.once("finish",U)),ae.ended=!0,V.writable=!1}function R(V,ae,U){var pe=V.entry;for(V.entry=null;pe;){var Z=pe.callback;ae.pendingcb--,Z(U),pe=pe.next}ae.corkedRequestsFree.next=V}return Object.defineProperty(M.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(V){this._writableState&&(this._writableState.destroyed=V)}}),M.prototype.destroy=l.destroy,M.prototype._undestroy=l.undestroy,M.prototype._destroy=function(V,ae){ae(V)},O9}var C9,She;function Lv(){if(She)return C9;She=1;var e=Object.keys||function(c){var u=[];for(var d in c)u.push(d);return u};C9=o;for(var t=Ehe(),a=whe(),r=e(a.prototype),n=0;n<r.length;n++){var i=r[n];o.prototype[i]||(o.prototype[i]=a.prototype[i])}function o(c){if(!(this instanceof o))return new o(c);t.call(this,c),a.call(this,c),this.allowHalfOpen=!0,c&&(c.readable===!1&&(this.readable=!1),c.writable===!1&&(this.writable=!1),c.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",s)))}Object.defineProperty(o.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(o.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(o.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function s(){this._writableState.ended||process.nextTick(l,this)}function l(c){c.end()}return Object.defineProperty(o.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(c){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=c,this._writableState.destroyed=c)}}),C9}var A9={},P9={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var zhe;function f0t(){return zhe||(zhe=1,(function(e,t){var a=y1(),r=a.Buffer;function n(o,s){for(var l in o)s[l]=o[l]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=a:(n(a,t),t.Buffer=i);function i(o,s,l){return r(o,s,l)}i.prototype=Object.create(r.prototype),n(r,i),i.from=function(o,s,l){if(typeof o=="number")throw new TypeError("Argument must not be a number");return r(o,s,l)},i.alloc=function(o,s,l){if(typeof o!="number")throw new TypeError("Argument must be a number");var c=r(o);return s!==void 0?typeof l=="string"?c.fill(s,l):c.fill(s):c.fill(0),c},i.allocUnsafe=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return r(o)},i.allocUnsafeSlow=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return a.SlowBuffer(o)}})(P9,P9.exports)),P9.exports}var jhe;function Ohe(){if(jhe)return A9;jhe=1;var e=f0t().Buffer,t=e.isEncoding||function(f){switch(f=""+f,f&&f.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 a(f){if(!f)return"utf8";for(var k;;)switch(f){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 f;default:if(k)return;f=(""+f).toLowerCase(),k=!0}}function r(f){var k=a(f);if(typeof k!="string"&&(e.isEncoding===t||!t(f)))throw new Error("Unknown encoding: "+f);return k||f}A9.StringDecoder=n;function n(f){this.encoding=r(f);var k;switch(this.encoding){case"utf16le":this.text=d,this.end=p,k=4;break;case"utf8":this.fillLast=l,k=4;break;case"base64":this.text=h,this.end=m,k=3;break;default:this.write=v,this.end=g;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(k)}n.prototype.write=function(f){if(f.length===0)return"";var k,x;if(this.lastNeed){if(k=this.fillLast(f),k===void 0)return"";x=this.lastNeed,this.lastNeed=0}else x=0;return x<f.length?k?k+this.text(f,x):this.text(f,x):k||""},n.prototype.end=u,n.prototype.text=c,n.prototype.fillLast=function(f){if(this.lastNeed<=f.length)return f.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);f.copy(this.lastChar,this.lastTotal-this.lastNeed,0,f.length),this.lastNeed-=f.length};function i(f){return f<=127?0:f>>5===6?2:f>>4===14?3:f>>3===30?4:f>>6===2?-1:-2}function o(f,k,x){var z=k.length-1;if(z<x)return 0;var w=i(k[z]);return w>=0?(w>0&&(f.lastNeed=w-1),w):--z<x||w===-2?0:(w=i(k[z]),w>=0?(w>0&&(f.lastNeed=w-2),w):--z<x||w===-2?0:(w=i(k[z]),w>=0?(w>0&&(w===2?w=0:f.lastNeed=w-3),w):0))}function s(f,k,x){if((k[0]&192)!==128)return f.lastNeed=0,"\uFFFD";if(f.lastNeed>1&&k.length>1){if((k[1]&192)!==128)return f.lastNeed=1,"\uFFFD";if(f.lastNeed>2&&k.length>2&&(k[2]&192)!==128)return f.lastNeed=2,"\uFFFD"}}function l(f){var k=this.lastTotal-this.lastNeed,x=s(this,f);if(x!==void 0)return x;if(this.lastNeed<=f.length)return f.copy(this.lastChar,k,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);f.copy(this.lastChar,k,0,f.length),this.lastNeed-=f.length}function c(f,k){var x=o(this,f,k);if(!this.lastNeed)return f.toString("utf8",k);this.lastTotal=x;var z=f.length-(x-this.lastNeed);return f.copy(this.lastChar,0,z),f.toString("utf8",k,z)}function u(f){var k=f&&f.length?this.write(f):"";return this.lastNeed?k+"\uFFFD":k}function d(f,k){if((f.length-k)%2===0){var x=f.toString("utf16le",k);if(x){var z=x.charCodeAt(x.length-1);if(z>=55296&&z<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=f[f.length-2],this.lastChar[1]=f[f.length-1],x.slice(0,-1)}return x}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=f[f.length-1],f.toString("utf16le",k,f.length-1)}function p(f){var k=f&&f.length?this.write(f):"";if(this.lastNeed){var x=this.lastTotal-this.lastNeed;return k+this.lastChar.toString("utf16le",0,x)}return k}function h(f,k){var x=(f.length-k)%3;return x===0?f.toString("base64",k):(this.lastNeed=3-x,this.lastTotal=3,x===1?this.lastChar[0]=f[f.length-1]:(this.lastChar[0]=f[f.length-2],this.lastChar[1]=f[f.length-1]),f.toString("base64",k,f.length-x))}function m(f){var k=f&&f.length?this.write(f):"";return this.lastNeed?k+this.lastChar.toString("base64",0,3-this.lastNeed):k}function v(f){return f.toString(this.encoding)}function g(f){return f&&f.length?this.write(f):""}return A9}var M9,Che;function T9(){if(Che)return M9;Che=1;var e=Bv().codes.ERR_STREAM_PREMATURE_CLOSE;function t(i){var o=!1;return function(){if(!o){o=!0;for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];i.apply(this,l)}}}function a(){}function r(i){return i.setHeader&&typeof i.abort=="function"}function n(i,o,s){if(typeof o=="function")return n(i,null,o);o||(o={}),s=t(s||a);var l=o.readable||o.readable!==!1&&i.readable,c=o.writable||o.writable!==!1&&i.writable,u=function(){i.writable||p()},d=i._writableState&&i._writableState.finished,p=function(){c=!1,d=!0,l||s.call(i)},h=i._readableState&&i._readableState.endEmitted,m=function(){l=!1,h=!0,c||s.call(i)},v=function(k){s.call(i,k)},g=function(){var k;if(l&&!h)return(!i._readableState||!i._readableState.ended)&&(k=new e),s.call(i,k);if(c&&!d)return(!i._writableState||!i._writableState.ended)&&(k=new e),s.call(i,k)},f=function(){i.req.on("finish",p)};return r(i)?(i.on("complete",p),i.on("abort",g),i.req?f():i.on("request",f)):c&&!i._writableState&&(i.on("end",u),i.on("close",u)),i.on("end",m),i.on("finish",p),o.error!==!1&&i.on("error",v),i.on("close",g),function(){i.removeListener("complete",p),i.removeListener("abort",g),i.removeListener("request",f),i.req&&i.req.removeListener("finish",p),i.removeListener("end",u),i.removeListener("close",u),i.removeListener("finish",p),i.removeListener("end",m),i.removeListener("error",v),i.removeListener("close",g)}}return M9=n,M9}var E9,Ahe;function g0t(){if(Ahe)return E9;Ahe=1;var e;function t(x,z,w){return z=a(z),z in x?Object.defineProperty(x,z,{value:w,enumerable:!0,configurable:!0,writable:!0}):x[z]=w,x}function a(x){var z=r(x,"string");return typeof z=="symbol"?z:String(z)}function r(x,z){if(typeof x!="object"||x===null)return x;var w=x[Symbol.toPrimitive];if(w!==void 0){var j=w.call(x,z);if(typeof j!="object")return j;throw new TypeError("@@toPrimitive must return a primitive value.")}return(z==="string"?String:Number)(x)}var n=T9(),i=Symbol("lastResolve"),o=Symbol("lastReject"),s=Symbol("error"),l=Symbol("ended"),c=Symbol("lastPromise"),u=Symbol("handlePromise"),d=Symbol("stream");function p(x,z){return{value:x,done:z}}function h(x){var z=x[i];if(z!==null){var w=x[d].read();w!==null&&(x[c]=null,x[i]=null,x[o]=null,z(p(w,!1)))}}function m(x){process.nextTick(h,x)}function v(x,z){return function(w,j){x.then(function(){if(z[l]){w(p(void 0,!0));return}z[u](w,j)},j)}}var g=Object.getPrototypeOf(function(){}),f=Object.setPrototypeOf((e={get stream(){return this[d]},next:function(){var x=this,z=this[s];if(z!==null)return Promise.reject(z);if(this[l])return Promise.resolve(p(void 0,!0));if(this[d].destroyed)return new Promise(function(M,T){process.nextTick(function(){x[s]?T(x[s]):M(p(void 0,!0))})});var w=this[c],j;if(w)j=new Promise(v(w,this));else{var O=this[d].read();if(O!==null)return Promise.resolve(p(O,!1));j=new Promise(this[u])}return this[c]=j,j}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var x=this;return new Promise(function(z,w){x[d].destroy(null,function(j){if(j){w(j);return}z(p(void 0,!0))})})}),e),g),k=function(x){var z,w=Object.create(f,(z={},t(z,d,{value:x,writable:!0}),t(z,i,{value:null,writable:!0}),t(z,o,{value:null,writable:!0}),t(z,s,{value:null,writable:!0}),t(z,l,{value:x._readableState.endEmitted,writable:!0}),t(z,u,{value:function(j,O){var M=w[d].read();M?(w[c]=null,w[i]=null,w[o]=null,j(p(M,!1))):(w[i]=j,w[o]=O)},writable:!0}),z));return w[c]=null,n(x,function(j){if(j&&j.code!=="ERR_STREAM_PREMATURE_CLOSE"){var O=w[o];O!==null&&(w[c]=null,w[i]=null,w[o]=null,O(j)),w[s]=j;return}var M=w[i];M!==null&&(w[c]=null,w[i]=null,w[o]=null,M(p(void 0,!0))),w[l]=!0}),x.on("readable",m.bind(null,w)),w};return E9=k,E9}var Phe,Mhe;function v0t(){return Mhe||(Mhe=1,Phe=function(){throw new Error("Readable.from is not available in the browser")}),Phe}var _9,The;function Ehe(){if(The)return _9;The=1,_9=T;var e;T.ReadableState=M;var t=function(A,L){return A.listeners(L).length},a=phe(),r=y1().Buffer,n=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function i(A){return r.from(A)}function o(A){return r.isBuffer(A)||A instanceof n}var s=hhe,l;s&&s.debuglog?l=s.debuglog("stream"):l=function(){};var c=h0t(),u=ghe(),d=khe(),p=d.getHighWaterMark,h=Bv().codes,m=h.ERR_INVALID_ARG_TYPE,v=h.ERR_STREAM_PUSH_AFTER_EOF,g=h.ERR_METHOD_NOT_IMPLEMENTED,f=h.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,k,x,z,w=u.errorOrDestroy,j=["error","close","destroy","pause","resume"];function O(A,L,te){if(typeof A.prependListener=="function")return A.prependListener(L,te);!A._events||!A._events[L]?A.on(L,te):Array.isArray(A._events[L])?A._events[L].unshift(te):A._events[L]=[te,A._events[L]]}function M(A,L,te){e=e||Lv(),A=A||{},typeof te!="boolean"&&(te=L instanceof e),this.objectMode=!!A.objectMode,te&&(this.objectMode=this.objectMode||!!A.readableObjectMode),this.highWaterMark=p(this,A,"readableHighWaterMark",te),this.buffer=new c,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=A.emitClose!==!1,this.autoDestroy=!!A.autoDestroy,this.destroyed=!1,this.defaultEncoding=A.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,A.encoding&&(k||(k=Ohe().StringDecoder),this.decoder=new k(A.encoding),this.encoding=A.encoding)}function T(A){if(e=e||Lv(),!(this instanceof T))return new T(A);var L=this instanceof e;this._readableState=new M(A,this,L),this.readable=!0,A&&(typeof A.read=="function"&&(this._read=A.read),typeof A.destroy=="function"&&(this._destroy=A.destroy)),a.call(this)}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(A){this._readableState&&(this._readableState.destroyed=A)}}),T.prototype.destroy=u.destroy,T.prototype._undestroy=u.undestroy,T.prototype._destroy=function(A,L){L(A)},T.prototype.push=function(A,L){var te=this._readableState,F;return te.objectMode?F=!0:typeof A=="string"&&(L=L||te.defaultEncoding,L!==te.encoding&&(A=r.from(A,L),L=""),F=!0),B(this,A,L,!1,F)},T.prototype.unshift=function(A){return B(this,A,null,!0,!1)};function B(A,L,te,F,oe){l("readableAddChunk",L);var ue=A._readableState;if(L===null)ue.reading=!1,re(A,ue);else{var Q;if(oe||(Q=N(ue,L)),Q)w(A,Q);else if(ue.objectMode||L&&L.length>0)if(typeof L!="string"&&!ue.objectMode&&Object.getPrototypeOf(L)!==r.prototype&&(L=i(L)),F)ue.endEmitted?w(A,new f):H(A,ue,L,!0);else if(ue.ended)w(A,new v);else{if(ue.destroyed)return!1;ue.reading=!1,ue.decoder&&!te?(L=ue.decoder.write(L),ue.objectMode||L.length!==0?H(A,ue,L,!1):he(A,ue)):H(A,ue,L,!1)}else F||(ue.reading=!1,he(A,ue))}return!ue.ended&&(ue.length<ue.highWaterMark||ue.length===0)}function H(A,L,te,F){L.flowing&&L.length===0&&!L.sync?(L.awaitDrain=0,A.emit("data",te)):(L.length+=L.objectMode?1:te.length,F?L.buffer.unshift(te):L.buffer.push(te),L.needReadable&&le(A)),he(A,L)}function N(A,L){var te;return!o(L)&&typeof L!="string"&&L!==void 0&&!A.objectMode&&(te=new m("chunk",["string","Buffer","Uint8Array"],L)),te}T.prototype.isPaused=function(){return this._readableState.flowing===!1},T.prototype.setEncoding=function(A){k||(k=Ohe().StringDecoder);var L=new k(A);this._readableState.decoder=L,this._readableState.encoding=this._readableState.decoder.encoding;for(var te=this._readableState.buffer.head,F="";te!==null;)F+=L.write(te.data),te=te.next;return this._readableState.buffer.clear(),F!==""&&this._readableState.buffer.push(F),this._readableState.length=F.length,this};var J=1073741824;function I(A){return A>=J?A=J:(A--,A|=A>>>1,A|=A>>>2,A|=A>>>4,A|=A>>>8,A|=A>>>16,A++),A}function X(A,L){return A<=0||L.length===0&&L.ended?0:L.objectMode?1:A!==A?L.flowing&&L.length?L.buffer.head.data.length:L.length:(A>L.highWaterMark&&(L.highWaterMark=I(A)),A<=L.length?A:L.ended?L.length:(L.needReadable=!0,0))}T.prototype.read=function(A){l("read",A),A=parseInt(A,10);var L=this._readableState,te=A;if(A!==0&&(L.emittedReadable=!1),A===0&&L.needReadable&&((L.highWaterMark!==0?L.length>=L.highWaterMark:L.length>0)||L.ended))return l("read: emitReadable",L.length,L.ended),L.length===0&&L.ended?U(this):le(this),null;if(A=X(A,L),A===0&&L.ended)return L.length===0&&U(this),null;var F=L.needReadable;l("need readable",F),(L.length===0||L.length-A<L.highWaterMark)&&(F=!0,l("length less than watermark",F)),L.ended||L.reading?(F=!1,l("reading or ended",F)):F&&(l("do read"),L.reading=!0,L.sync=!0,L.length===0&&(L.needReadable=!0),this._read(L.highWaterMark),L.sync=!1,L.reading||(A=X(te,L)));var oe;return A>0?oe=ae(A,L):oe=null,oe===null?(L.needReadable=L.length<=L.highWaterMark,A=0):(L.length-=A,L.awaitDrain=0),L.length===0&&(L.ended||(L.needReadable=!0),te!==A&&L.ended&&U(this)),oe!==null&&this.emit("data",oe),oe};function re(A,L){if(l("onEofChunk"),!L.ended){if(L.decoder){var te=L.decoder.end();te&&te.length&&(L.buffer.push(te),L.length+=L.objectMode?1:te.length)}L.ended=!0,L.sync?le(A):(L.needReadable=!1,L.emittedReadable||(L.emittedReadable=!0,ie(A)))}}function le(A){var L=A._readableState;l("emitReadable",L.needReadable,L.emittedReadable),L.needReadable=!1,L.emittedReadable||(l("emitReadable",L.flowing),L.emittedReadable=!0,process.nextTick(ie,A))}function ie(A){var L=A._readableState;l("emitReadable_",L.destroyed,L.length,L.ended),!L.destroyed&&(L.length||L.ended)&&(A.emit("readable"),L.emittedReadable=!1),L.needReadable=!L.flowing&&!L.ended&&L.length<=L.highWaterMark,V(A)}function he(A,L){L.readingMore||(L.readingMore=!0,process.nextTick(G,A,L))}function G(A,L){for(;!L.reading&&!L.ended&&(L.length<L.highWaterMark||L.flowing&&L.length===0);){var te=L.length;if(l("maybeReadMore read 0"),A.read(0),te===L.length)break}L.readingMore=!1}T.prototype._read=function(A){w(this,new g("_read()"))},T.prototype.pipe=function(A,L){var te=this,F=this._readableState;switch(F.pipesCount){case 0:F.pipes=A;break;case 1:F.pipes=[F.pipes,A];break;default:F.pipes.push(A);break}F.pipesCount+=1,l("pipe count=%d opts=%j",F.pipesCount,L);var oe=(!L||L.end!==!1)&&A!==null&&A!==process.stderr,ue=oe?se:Ue;F.endEmitted?process.nextTick(ue):te.once("end",ue),A.on("unpipe",Q);function Q(_,ne){l("onunpipe"),_===te&&ne&&ne.hasUnpiped===!1&&(ne.hasUnpiped=!0,ge())}function se(){l("onend"),A.end()}var de=D(te);A.on("drain",de);var ke=!1;function ge(){l("cleanup"),A.removeListener("close",ze),A.removeListener("finish",Ae),A.removeListener("drain",de),A.removeListener("error",ve),A.removeListener("unpipe",Q),te.removeListener("end",se),te.removeListener("end",Ue),te.removeListener("data",me),ke=!0,F.awaitDrain&&(!A._writableState||A._writableState.needDrain)&&de()}te.on("data",me);function me(_){l("ondata");var ne=A.write(_);l("dest.write",ne),ne===!1&&((F.pipesCount===1&&F.pipes===A||F.pipesCount>1&&Z(F.pipes,A)!==-1)&&!ke&&(l("false write response, pause",F.awaitDrain),F.awaitDrain++),te.pause())}function ve(_){l("onerror",_),Ue(),A.removeListener("error",ve),t(A,"error")===0&&w(A,_)}O(A,"error",ve);function ze(){A.removeListener("finish",Ae),Ue()}A.once("close",ze);function Ae(){l("onfinish"),A.removeListener("close",ze),Ue()}A.once("finish",Ae);function Ue(){l("unpipe"),te.unpipe(A)}return A.emit("pipe",te),F.flowing||(l("pipe resume"),te.resume()),A};function D(A){return function(){var L=A._readableState;l("pipeOnDrain",L.awaitDrain),L.awaitDrain&&L.awaitDrain--,L.awaitDrain===0&&t(A,"data")&&(L.flowing=!0,V(A))}}T.prototype.unpipe=function(A){var L=this._readableState,te={hasUnpiped:!1};if(L.pipesCount===0)return this;if(L.pipesCount===1)return A&&A!==L.pipes?this:(A||(A=L.pipes),L.pipes=null,L.pipesCount=0,L.flowing=!1,A&&A.emit("unpipe",this,te),this);if(!A){var F=L.pipes,oe=L.pipesCount;L.pipes=null,L.pipesCount=0,L.flowing=!1;for(var ue=0;ue<oe;ue++)F[ue].emit("unpipe",this,{hasUnpiped:!1});return this}var Q=Z(L.pipes,A);return Q===-1?this:(L.pipes.splice(Q,1),L.pipesCount-=1,L.pipesCount===1&&(L.pipes=L.pipes[0]),A.emit("unpipe",this,te),this)},T.prototype.on=function(A,L){var te=a.prototype.on.call(this,A,L),F=this._readableState;return A==="data"?(F.readableListening=this.listenerCount("readable")>0,F.flowing!==!1&&this.resume()):A==="readable"&&!F.endEmitted&&!F.readableListening&&(F.readableListening=F.needReadable=!0,F.flowing=!1,F.emittedReadable=!1,l("on readable",F.length,F.reading),F.length?le(this):F.reading||process.nextTick($,this)),te},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(A,L){var te=a.prototype.removeListener.call(this,A,L);return A==="readable"&&process.nextTick(W,this),te},T.prototype.removeAllListeners=function(A){var L=a.prototype.removeAllListeners.apply(this,arguments);return(A==="readable"||A===void 0)&&process.nextTick(W,this),L};function W(A){var L=A._readableState;L.readableListening=A.listenerCount("readable")>0,L.resumeScheduled&&!L.paused?L.flowing=!0:A.listenerCount("data")>0&&A.resume()}function $(A){l("readable nexttick read 0"),A.read(0)}T.prototype.resume=function(){var A=this._readableState;return A.flowing||(l("resume"),A.flowing=!A.readableListening,P(this,A)),A.paused=!1,this};function P(A,L){L.resumeScheduled||(L.resumeScheduled=!0,process.nextTick(R,A,L))}function R(A,L){l("resume",L.reading),L.reading||A.read(0),L.resumeScheduled=!1,A.emit("resume"),V(A),L.flowing&&!L.reading&&A.read(0)}T.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function V(A){var L=A._readableState;for(l("flow",L.flowing);L.flowing&&A.read()!==null;);}T.prototype.wrap=function(A){var L=this,te=this._readableState,F=!1;A.on("end",function(){if(l("wrapped end"),te.decoder&&!te.ended){var Q=te.decoder.end();Q&&Q.length&&L.push(Q)}L.push(null)}),A.on("data",function(Q){if(l("wrapped data"),te.decoder&&(Q=te.decoder.write(Q)),!(te.objectMode&&Q==null)&&!(!te.objectMode&&(!Q||!Q.length))){var se=L.push(Q);se||(F=!0,A.pause())}});for(var oe in A)this[oe]===void 0&&typeof A[oe]=="function"&&(this[oe]=(function(Q){return function(){return A[Q].apply(A,arguments)}})(oe));for(var ue=0;ue<j.length;ue++)A.on(j[ue],this.emit.bind(this,j[ue]));return this._read=function(Q){l("wrapped _read",Q),F&&(F=!1,A.resume())},this},typeof Symbol=="function"&&(T.prototype[Symbol.asyncIterator]=function(){return x===void 0&&(x=g0t()),x(this)}),Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(A){this._readableState&&(this._readableState.flowing=A)}}),T._fromList=ae,Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function ae(A,L){if(L.length===0)return null;var te;return L.objectMode?te=L.buffer.shift():!A||A>=L.length?(L.decoder?te=L.buffer.join(""):L.buffer.length===1?te=L.buffer.first():te=L.buffer.concat(L.length),L.buffer.clear()):te=L.buffer.consume(A,L.decoder),te}function U(A){var L=A._readableState;l("endReadable",L.endEmitted),L.endEmitted||(L.ended=!0,process.nextTick(pe,L,A))}function pe(A,L){if(l("endReadableNT",A.endEmitted,A.length),!A.endEmitted&&A.length===0&&(A.endEmitted=!0,L.readable=!1,L.emit("end"),A.autoDestroy)){var te=L._writableState;(!te||te.autoDestroy&&te.finished)&&L.destroy()}}typeof Symbol=="function"&&(T.from=function(A,L){return z===void 0&&(z=v0t()),z(T,A,L)});function Z(A,L){for(var te=0,F=A.length;te<F;te++)if(A[te]===L)return te;return-1}return _9}var R9,_he;function Rhe(){if(_he)return R9;_he=1,R9=s;var e=Bv().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,a=e.ERR_MULTIPLE_CALLBACK,r=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,n=e.ERR_TRANSFORM_WITH_LENGTH_0,i=Lv();function o(u,d){var p=this._transformState;p.transforming=!1;var h=p.writecb;if(h===null)return this.emit("error",new a);p.writechunk=null,p.writecb=null,d!=null&&this.push(d),h(u);var m=this._readableState;m.reading=!1,(m.needReadable||m.length<m.highWaterMark)&&this._read(m.highWaterMark)}function s(u){if(!(this instanceof s))return new s(u);i.call(this,u),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,u&&(typeof u.transform=="function"&&(this._transform=u.transform),typeof u.flush=="function"&&(this._flush=u.flush)),this.on("prefinish",l)}function l(){var u=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(d,p){c(u,d,p)}):c(this,null,null)}s.prototype.push=function(u,d){return this._transformState.needTransform=!1,i.prototype.push.call(this,u,d)},s.prototype._transform=function(u,d,p){p(new t("_transform()"))},s.prototype._write=function(u,d,p){var h=this._transformState;if(h.writecb=p,h.writechunk=u,h.writeencoding=d,!h.transforming){var m=this._readableState;(h.needTransform||m.needReadable||m.length<m.highWaterMark)&&this._read(m.highWaterMark)}},s.prototype._read=function(u){var d=this._transformState;d.writechunk!==null&&!d.transforming?(d.transforming=!0,this._transform(d.writechunk,d.writeencoding,d.afterTransform)):d.needTransform=!0},s.prototype._destroy=function(u,d){i.prototype._destroy.call(this,u,function(p){d(p)})};function c(u,d,p){if(d)return u.emit("error",d);if(p!=null&&u.push(p),u._writableState.length)throw new n;if(u._transformState.transforming)throw new r;return u.push(null)}return R9}var B9,Bhe;function b0t(){if(Bhe)return B9;Bhe=1,B9=t;var e=Rhe();function t(a){if(!(this instanceof t))return new t(a);e.call(this,a)}return t.prototype._transform=function(a,r,n){n(null,a)},B9}var L9,Lhe;function k0t(){if(Lhe)return L9;Lhe=1;var e;function t(p){var h=!1;return function(){h||(h=!0,p.apply(void 0,arguments))}}var a=Bv().codes,r=a.ERR_MISSING_ARGS,n=a.ERR_STREAM_DESTROYED;function i(p){if(p)throw p}function o(p){return p.setHeader&&typeof p.abort=="function"}function s(p,h,m,v){v=t(v);var g=!1;p.on("close",function(){g=!0}),e===void 0&&(e=T9()),e(p,{readable:h,writable:m},function(k){if(k)return v(k);g=!0,v()});var f=!1;return function(k){if(!g&&!f){if(f=!0,o(p))return p.abort();if(typeof p.destroy=="function")return p.destroy();v(k||new n("pipe"))}}}function l(p){p()}function c(p,h){return p.pipe(h)}function u(p){return!p.length||typeof p[p.length-1]!="function"?i:p.pop()}function d(){for(var p=arguments.length,h=new Array(p),m=0;m<p;m++)h[m]=arguments[m];var v=u(h);if(Array.isArray(h[0])&&(h=h[0]),h.length<2)throw new r("streams");var g,f=h.map(function(k,x){var z=x<h.length-1,w=x>0;return s(k,z,w,function(j){g||(g=j),j&&f.forEach(l),!z&&(f.forEach(l),v(g))})});return h.reduce(c)}return L9=d,L9}var Nhe;function Dhe(){return Nhe||(Nhe=1,(function(e,t){t=e.exports=Ehe(),t.Stream=t,t.Readable=t,t.Writable=whe(),t.Duplex=Lv(),t.Transform=Rhe(),t.PassThrough=b0t(),t.finished=T9(),t.pipeline=k0t()})(y9,y9.exports)),y9.exports}var $he;function Ihe(){if($he)return NC;$he=1;var e=lhe(),t=uL(),a=Dhe(),r=NC.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},n=NC.IncomingMessage=function(i,o,s,l){var c=this;if(a.Readable.call(c),c._mode=s,c.headers={},c.rawHeaders=[],c.trailers={},c.rawTrailers=[],c.on("end",function(){process.nextTick(function(){c.emit("close")})}),s==="fetch"){let v=function(){d.read().then(function(g){if(!c._destroyed){if(l(g.done),g.done){c.push(null);return}c.push(Buffer.from(g.value)),v()}}).catch(function(g){l(!0),c._destroyed||c.emit("error",g)})};if(c._fetchResponse=o,c.url=o.url,c.statusCode=o.status,c.statusMessage=o.statusText,o.headers.forEach(function(g,f){c.headers[f.toLowerCase()]=g,c.rawHeaders.push(f,g)}),e.writableStream){var u=new WritableStream({write:function(g){return l(!1),new Promise(function(f,k){c._destroyed?k():c.push(Buffer.from(g))?f():c._resumeFetch=f})},close:function(){l(!0),c._destroyed||c.push(null)},abort:function(g){l(!0),c._destroyed||c.emit("error",g)}});try{o.body.pipeTo(u).catch(function(g){l(!0),c._destroyed||c.emit("error",g)});return}catch{}}var d=o.body.getReader();v()}else{c._xhr=i,c._pos=0,c.url=i.responseURL,c.statusCode=i.status,c.statusMessage=i.statusText;var p=i.getAllResponseHeaders().split(/\r?\n/);if(p.forEach(function(v){var g=v.match(/^([^:]+):\s*(.*)/);if(g){var f=g[1].toLowerCase();f==="set-cookie"?(c.headers[f]===void 0&&(c.headers[f]=[]),c.headers[f].push(g[2])):c.headers[f]!==void 0?c.headers[f]+=", "+g[2]:c.headers[f]=g[2],c.rawHeaders.push(g[1],g[2])}}),c._charset="x-user-defined",!e.overrideMimeType){var h=c.rawHeaders["mime-type"];if(h){var m=h.match(/;\s*charset=([^;])(;|$)/);m&&(c._charset=m[1].toLowerCase())}c._charset||(c._charset="utf-8")}}};return t(n,a.Readable),n.prototype._read=function(){var i=this,o=i._resumeFetch;o&&(i._resumeFetch=null,o())},n.prototype._onXHRProgress=function(i){var o=this,s=o._xhr,l=null;switch(o._mode){case"text":if(l=s.responseText,l.length>o._pos){var c=l.substr(o._pos);if(o._charset==="x-user-defined"){for(var u=Buffer.alloc(c.length),d=0;d<c.length;d++)u[d]=c.charCodeAt(d)&255;o.push(u)}else o.push(c,o._charset);o._pos=l.length}break;case"arraybuffer":if(s.readyState!==r.DONE||!s.response)break;l=s.response,o.push(Buffer.from(new Uint8Array(l)));break;case"moz-chunked-arraybuffer":if(l=s.response,s.readyState!==r.LOADING||!l)break;o.push(Buffer.from(new Uint8Array(l)));break;case"ms-stream":if(l=s.response,s.readyState!==r.LOADING)break;var p=new globalThis.MSStreamReader;p.onprogress=function(){p.result.byteLength>o._pos&&(o.push(Buffer.from(new Uint8Array(p.result.slice(o._pos)))),o._pos=p.result.byteLength)},p.onload=function(){i(!0),o.push(null)},p.readAsArrayBuffer(l);break}o._xhr.readyState===r.DONE&&o._mode!=="ms-stream"&&(i(!0),o.push(null))},NC}var Khe;function y0t(){if(Khe)return k9.exports;Khe=1;var e=lhe(),t=uL(),a=Ihe(),r=Dhe(),n=a.IncomingMessage,i=a.readyStates;function o(u,d){return e.fetch&&d?"fetch":e.mozchunkedarraybuffer?"moz-chunked-arraybuffer":e.msstream?"ms-stream":e.arraybuffer&&u?"arraybuffer":"text"}var s=k9.exports=function(u){var d=this;r.Writable.call(d),d._opts=u,d._body=[],d._headers={},u.auth&&d.setHeader("Authorization","Basic "+Buffer.from(u.auth).toString("base64")),Object.keys(u.headers).forEach(function(m){d.setHeader(m,u.headers[m])});var p,h=!0;if(u.mode==="disable-fetch"||"requestTimeout"in u&&!e.abortController)h=!1,p=!0;else if(u.mode==="prefer-streaming")p=!1;else if(u.mode==="allow-wrong-content-type")p=!e.overrideMimeType;else if(!u.mode||u.mode==="default"||u.mode==="prefer-fast")p=!0;else throw new Error("Invalid value for opts.mode");d._mode=o(p,h),d._fetchTimer=null,d._socketTimeout=null,d._socketTimer=null,d.on("finish",function(){d._onFinish()})};t(s,r.Writable),s.prototype.setHeader=function(u,d){var p=this,h=u.toLowerCase();c.indexOf(h)===-1&&(p._headers[h]={name:u,value:d})},s.prototype.getHeader=function(u){var d=this._headers[u.toLowerCase()];return d?d.value:null},s.prototype.removeHeader=function(u){var d=this;delete d._headers[u.toLowerCase()]},s.prototype._onFinish=function(){var u=this;if(!u._destroyed){var d=u._opts;"timeout"in d&&d.timeout!==0&&u.setTimeout(d.timeout);var p=u._headers,h=null;d.method!=="GET"&&d.method!=="HEAD"&&(h=new Blob(u._body,{type:(p["content-type"]||{}).value||""}));var m=[];if(Object.keys(p).forEach(function(k){var x=p[k].name,z=p[k].value;Array.isArray(z)?z.forEach(function(w){m.push([x,w])}):m.push([x,z])}),u._mode==="fetch"){var v=null;if(e.abortController){var g=new AbortController;v=g.signal,u._fetchAbortController=g,"requestTimeout"in d&&d.requestTimeout!==0&&(u._fetchTimer=globalThis.setTimeout(function(){u.emit("requestTimeout"),u._fetchAbortController&&u._fetchAbortController.abort()},d.requestTimeout))}globalThis.fetch(u._opts.url,{method:u._opts.method,headers:m,body:h||void 0,mode:"cors",credentials:d.withCredentials?"include":"same-origin",signal:v}).then(function(k){u._fetchResponse=k,u._resetTimers(!1),u._connect()},function(k){u._resetTimers(!0),u._destroyed||u.emit("error",k)})}else{var f=u._xhr=new globalThis.XMLHttpRequest;try{f.open(u._opts.method,u._opts.url,!0)}catch(k){process.nextTick(function(){u.emit("error",k)});return}"responseType"in f&&(f.responseType=u._mode),"withCredentials"in f&&(f.withCredentials=!!d.withCredentials),u._mode==="text"&&"overrideMimeType"in f&&f.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in d&&(f.timeout=d.requestTimeout,f.ontimeout=function(){u.emit("requestTimeout")}),m.forEach(function(k){f.setRequestHeader(k[0],k[1])}),u._response=null,f.onreadystatechange=function(){switch(f.readyState){case i.LOADING:case i.DONE:u._onXHRProgress();break}},u._mode==="moz-chunked-arraybuffer"&&(f.onprogress=function(){u._onXHRProgress()}),f.onerror=function(){u._destroyed||(u._resetTimers(!0),u.emit("error",new Error("XHR error")))};try{f.send(h)}catch(k){process.nextTick(function(){u.emit("error",k)});return}}}};function l(u){try{var d=u.status;return d!==null&&d!==0}catch{return!1}}s.prototype._onXHRProgress=function(){var u=this;u._resetTimers(!1),!(!l(u._xhr)||u._destroyed)&&(u._response||u._connect(),u._response._onXHRProgress(u._resetTimers.bind(u)))},s.prototype._connect=function(){var u=this;u._destroyed||(u._response=new n(u._xhr,u._fetchResponse,u._mode,u._resetTimers.bind(u)),u._response.on("error",function(d){u.emit("error",d)}),u.emit("response",u._response))},s.prototype._write=function(u,d,p){var h=this;h._body.push(u),p()},s.prototype._resetTimers=function(u){var d=this;globalThis.clearTimeout(d._socketTimer),d._socketTimer=null,u?(globalThis.clearTimeout(d._fetchTimer),d._fetchTimer=null):d._socketTimeout&&(d._socketTimer=globalThis.setTimeout(function(){d.emit("timeout")},d._socketTimeout))},s.prototype.abort=s.prototype.destroy=function(u){var d=this;d._destroyed=!0,d._resetTimers(!0),d._response&&(d._response._destroyed=!0),d._xhr?d._xhr.abort():d._fetchAbortController&&d._fetchAbortController.abort(),u&&d.emit("error",u)},s.prototype.end=function(u,d,p){var h=this;typeof u=="function"&&(p=u,u=void 0),r.Writable.prototype.end.call(h,u,d,p)},s.prototype.setTimeout=function(u,d){var p=this;d&&p.once("timeout",d),p._socketTimeout=u,p._resetTimers(!1)},s.prototype.flushHeaders=function(){},s.prototype.setNoDelay=function(){},s.prototype.setSocketKeepAlive=function(){};var c=["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 k9.exports}var N9,Vhe;function x0t(){if(Vhe)return N9;Vhe=1,N9=t;var e=Object.prototype.hasOwnProperty;function t(){for(var a={},r=0;r<arguments.length;r++){var n=arguments[r];for(var i in n)e.call(n,i)&&(a[i]=n[i])}return a}return N9}var Hhe,Fhe;function w0t(){return Fhe||(Fhe=1,Hhe={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"}),Hhe}var Ghe;function S0t(){return Ghe||(Ghe=1,(function(e){var t=y0t(),a=Ihe(),r=x0t(),n=w0t(),i=i9(),o=e;o.request=function(s,l){typeof s=="string"?s=i.parse(s):s=r(s);var c=globalThis.location.protocol.search(/^https?:$/)===-1?"http:":"",u=s.protocol||c,d=s.hostname||s.host,p=s.port,h=s.path||"/";d&&d.indexOf(":")!==-1&&(d="["+d+"]"),s.url=(d?u+"//"+d:"")+(p?":"+p:"")+h,s.method=(s.method||"GET").toUpperCase(),s.headers=s.headers||{};var m=new t(s);return l&&m.on("response",l),m},o.get=function(s,l){var c=o.request(s,l);return c.end(),c},o.ClientRequest=t,o.IncomingMessage=a.IncomingMessage,o.Agent=function(){},o.Agent.defaultMaxSockets=4,o.globalAgent=new o.Agent,o.STATUS_CODES=n,o.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"]})(ihe)),ihe}var qhe,Whe;function z0t(){return Whe||(Whe=1,qhe={statusCodes:Object.assign({},{default:"Default response","1XX":"Informational",103:"Early hints","2XX":"Successful","3XX":"Redirection","4XX":"Client Error","5XX":"Server Error","7XX":"Developer Error"},S0t().STATUS_CODES)}),qhe}const j0t="7.0.8",O0t={version:j0t};var D9,Jhe;function C0t(){if(Jhe)return D9;Jhe=1;const e=Rv,t=i9(),a=s0t(),r=Rv,n=Rv,i=BC(),o=i.jptr,s=u9().isRef,l=LC().clone,c=LC().circularClone,u=h9().recurse,d=u0t(),p=d0t(),h=ahe(),m=z0t().statusCodes,v=O0t.version,g="3.0.0";let f;class k extends Error{constructor(L){super(L),this.name="S2OError"}}function x(A,L){let te=new k(A);if(te.options=L,L.promise)L.promise.reject(te);else throw te}function z(A,L,te){te.warnOnly?L[te.warnProperty||"x-s2o-warning"]=A:x(A,te)}function w(A,L,te){if(A.nullable&&te.patches++,A.discriminator&&typeof A.discriminator=="string"&&(A.discriminator={propertyName:A.discriminator}),A.items&&Array.isArray(A.items)&&(A.items.length===0?A.items={}:A.items.length===1?A.items=A.items[0]:A.items={anyOf:A.items}),A.type&&Array.isArray(A.type))if(te.patch){if(te.patches++,A.type.length===0)delete A.type;else{A.oneOf||(A.oneOf=[]);for(let F of A.type){let oe={};if(F==="null")A.nullable=!0;else{oe.type=F;for(let ue of h.arrayProperties)typeof A.prop<"u"&&(oe[ue]=A[ue],delete A[ue])}oe.type&&A.oneOf.push(oe)}delete A.type,A.oneOf.length===0?delete A.oneOf:A.oneOf.length<2&&(A.type=A.oneOf[0].type,Object.keys(A.oneOf[0]).length>1&&z("Lost properties from oneOf",A,te),delete A.oneOf)}A.type&&Array.isArray(A.type)&&A.type.length===1&&(A.type=A.type[0])}else x("(Patchable) schema type must not be an array",te);A.type&&A.type==="null"&&(delete A.type,A.nullable=!0),A.type==="array"&&!A.items&&(A.items={}),A.type==="file"&&(A.type="string",A.format="binary"),typeof A.required=="boolean"&&(A.required&&A.name&&(typeof L.required>"u"&&(L.required=[]),Array.isArray(L.required)&&L.required.push(A.name)),delete A.required),A.xml&&typeof A.xml.namespace=="string"&&(A.xml.namespace||delete A.xml.namespace),typeof A.allowEmptyValue<"u"&&(te.patches++,delete A.allowEmptyValue)}function j(A,L){if(A["x-required"]&&Array.isArray(A["x-required"])&&(A.required||(A.required=[]),A.required=A.required.concat(A["x-required"]),delete A["x-required"]),A["x-anyOf"]&&(A.anyOf=A["x-anyOf"],delete A["x-anyOf"]),A["x-oneOf"]&&(A.oneOf=A["x-oneOf"],delete A["x-oneOf"]),A["x-not"]&&(A.not=A["x-not"],delete A["x-not"]),typeof A["x-nullable"]=="boolean"&&(A.nullable=A["x-nullable"],delete A["x-nullable"]),typeof A["x-discriminator"]=="object"&&typeof A["x-discriminator"].propertyName=="string"){A.discriminator=A["x-discriminator"],delete A["x-discriminator"];for(let te in A.discriminator.mapping){let F=A.discriminator.mapping[te];F.startsWith("#/definitions/")&&(A.discriminator.mapping[te]=F.replace("#/definitions/","#/components/schemas/"))}}}function O(A,L){p.walkSchema(A,{},{},function(te,F,oe){j(te),w(te,F,L)})}function M(A){return A.indexOf("#")>=0?A=A.split("#")[1].split("/").pop():A=A.split("/").pop().split(".")[0],encodeURIComponent(h.sanitise(A))}function T(A,L,te){let F=te.payload.options;if(s(A,L)){if(!A[L].startsWith("#/components/")){if(A[L]==="#/consumes")delete A[L],te.parent[te.pkey]=l(F.openapi.consumes);else if(A[L]==="#/produces")delete A[L],te.parent[te.pkey]=l(F.openapi.produces);else if(A[L].startsWith("#/definitions/")){let oe=A[L].replace("#/definitions/","").split("/");const ue=i.jpunescape(oe[0]);let Q=f.schemas[decodeURIComponent(ue)];Q?oe[0]=Q:z("Could not resolve reference "+A[L],A,F),A[L]="#/components/schemas/"+oe.join("/")}else if(A[L].startsWith("#/parameters/"))A[L]="#/components/parameters/"+h.sanitise(A[L].replace("#/parameters/",""));else if(A[L].startsWith("#/responses/"))A[L]="#/components/responses/"+h.sanitise(A[L].replace("#/responses/",""));else if(A[L].startsWith("#")){let oe=l(i.jptr(F.openapi,A[L]));if(oe===!1)z("direct $ref not found "+A[L],A,F);else if(F.refmap[A[L]])A[L]=F.refmap[A[L]];else{let ue=A[L];ue=ue.replace("/properties/headers/",""),ue=ue.replace("/properties/responses/",""),ue=ue.replace("/properties/parameters/",""),ue=ue.replace("/properties/schemas/","");let Q="schemas",se=ue.lastIndexOf("/schema");if(Q=ue.indexOf("/headers/")>se?"headers":ue.indexOf("/responses/")>se?"responses":ue.indexOf("/example")>se?"examples":ue.indexOf("/x-")>se?"extensions":ue.indexOf("/parameters/")>se?"parameters":"schemas",Q==="schemas"&&O(oe,F),Q!=="responses"&&Q!=="extensions"){let de=Q.substr(0,Q.length-1);de==="parameter"&&oe.name&&oe.name===h.sanitise(oe.name)&&(de=encodeURIComponent(oe.name));let ke=1;for(A["x-miro"]&&(de=M(A["x-miro"]),ke="");i.jptr(F.openapi,"#/components/"+Q+"/"+de+ke);)ke=ke===""?2:++ke;let ge="#/components/"+Q+"/"+de+ke,me="";Q==="examples"&&(oe={value:oe},me="/value"),i.jptr(F.openapi,ge,oe),F.refmap[A[L]]=ge+me,A[L]=ge+me}}}}if(delete A["x-miro"],Object.keys(A).length>1){const oe=A[L],ue=te.path.indexOf("/schema")>=0;F.refSiblings==="preserve"||(ue&&F.refSiblings==="allOf"?(delete A.$ref,te.parent[te.pkey]={allOf:[{$ref:oe},A]}):te.parent[te.pkey]={$ref:oe})}}if(L==="x-ms-odata"&&typeof A[L]=="string"&&A[L].startsWith("#/")){let oe=A[L].replace("#/definitions/","").replace("#/components/schemas/","").split("/"),ue=f.schemas[decodeURIComponent(oe[0])];ue?oe[0]=ue:z("Could not resolve reference "+A[L],A,F),A[L]="#/components/schemas/"+oe.join("/")}}function B(A,L){for(let te in L.refmap)i.jptr(A,te,{$ref:L.refmap[te]})}function H(A){for(let L in A)for(let te in A[L]){let F=h.sanitise(te);te!==F&&(A[L][F]=A[L][te],delete A[L][te])}}function N(A,L){if(A.type==="basic"&&(A.type="http",A.scheme="basic"),A.type==="oauth2"){let te={},F=A.flow;A.flow==="application"&&(F="clientCredentials"),A.flow==="accessCode"&&(F="authorizationCode"),typeof A.authorizationUrl<"u"&&(te.authorizationUrl=A.authorizationUrl.split("?")[0].trim()||"/"),typeof A.tokenUrl=="string"&&(te.tokenUrl=A.tokenUrl.split("?")[0].trim()||"/"),te.scopes=A.scopes||{},A.flows={},A.flows[F]=te,delete A.flow,delete A.authorizationUrl,delete A.tokenUrl,delete A.scopes,typeof A.name<"u"&&(L.patch?(L.patches++,delete A.name):x("(Patchable) oauth2 securitySchemes should not have name property",L))}}function J(A){return A&&!A["x-s2o-delete"]}function I(A,L){if(A.$ref)A.$ref=A.$ref.replace("#/responses/","#/components/responses/");else{A.type&&!A.schema&&(A.schema={}),A.type&&(A.schema.type=A.type),A.items&&A.items.type!=="array"&&(A.items.collectionFormat!==A.collectionFormat&&z("Nested collectionFormats are not supported",A,L),delete A.items.collectionFormat),A.type==="array"?(A.collectionFormat==="ssv"?z("collectionFormat:ssv is no longer supported for headers",A,L):A.collectionFormat==="pipes"?z("collectionFormat:pipes is no longer supported for headers",A,L):A.collectionFormat==="multi"?A.explode=!0:A.collectionFormat==="tsv"?(z("collectionFormat:tsv is no longer supported",A,L),A["x-collectionFormat"]="tsv"):A.style="simple",delete A.collectionFormat):A.collectionFormat&&(L.patch?(L.patches++,delete A.collectionFormat):x("(Patchable) collectionFormat is only applicable to header.type array",L)),delete A.type;for(let te of h.parameterTypeProperties)typeof A[te]<"u"&&(A.schema[te]=A[te],delete A[te]);for(let te of h.arrayProperties)typeof A[te]<"u"&&(A.schema[te]=A[te],delete A[te])}}function X(A,L){if(A.$ref.indexOf("#/parameters/")>=0){let te=A.$ref.split("#/parameters/");A.$ref=te[0]+"#/components/parameters/"+h.sanitise(te[1])}A.$ref.indexOf("#/definitions/")>=0&&z("Definition used as parameter",A,L)}function re(A,L){let te={};for(let F of Object.keys(A))te[F]=A[F],F==="parameters"&&(te.requestBody={},L.rbname&&(te[L.rbname]=""));return te.requestBody={},te}function le(A,L,te,F,oe,ue,Q){let se={},de=!0,ke;if(L&&L.consumes&&typeof L.consumes=="string")if(Q.patch)Q.patches++,L.consumes=[L.consumes];else return x("(Patchable) operation.consumes must be an array",Q);Array.isArray(ue.consumes)||delete ue.consumes;let ge=((L?L.consumes:null)||ue.consumes||[]).filter(h.uniqueOnly);if(A&&A.$ref&&typeof A.$ref=="string"){X(A,Q);let me=decodeURIComponent(A.$ref.replace("#/components/parameters/","")),ve=!1,ze=ue.components.parameters[me];if((!ze||ze["x-s2o-delete"])&&A.$ref.startsWith("#/")&&(A["x-s2o-delete"]=!0,ve=!0),ve){let Ae=A.$ref,Ue=o(ue,A.$ref);!Ue&&Ae.startsWith("#/")?z("Could not resolve reference "+Ae,A,Q):Ue&&(A=Ue)}}if(A&&(A.name||A.in)){typeof A["x-deprecated"]=="boolean"&&(A.deprecated=A["x-deprecated"],delete A["x-deprecated"]),typeof A["x-example"]<"u"&&(A.example=A["x-example"],delete A["x-example"]),A.in!=="body"&&!A.type&&(Q.patch?(Q.patches++,A.type="string"):x("(Patchable) parameter.type is mandatory for non-body parameters",Q)),A.type&&typeof A.type=="object"&&A.type.$ref&&(A.type=o(ue,A.type.$ref)),A.type==="file"&&(A["x-s2o-originalType"]=A.type,ke=A.type),A.description&&typeof A.description=="object"&&A.description.$ref&&(A.description=o(ue,A.description.$ref)),A.description===null&&delete A.description;let me=A.collectionFormat;if(A.type==="array"&&!me&&(me="csv"),me&&(A.type!=="array"&&(Q.patch?(Q.patches++,delete A.collectionFormat):x("(Patchable) collectionFormat is only applicable to param.type array",Q)),me==="csv"&&(A.in==="query"||A.in==="cookie")&&(A.style="form",A.explode=!1),me==="csv"&&(A.in==="path"||A.in==="header")&&(A.style="simple"),me==="ssv"&&(A.in==="query"?A.style="spaceDelimited":z("collectionFormat:ssv is no longer supported except for in:query parameters",A,Q)),me==="pipes"&&(A.in==="query"?A.style="pipeDelimited":z("collectionFormat:pipes is no longer supported except for in:query parameters",A,Q)),me==="multi"&&(A.explode=!0),me==="tsv"&&(z("collectionFormat:tsv is no longer supported",A,Q),A["x-collectionFormat"]="tsv"),delete A.collectionFormat),A.type&&A.type!=="body"&&A.in!=="formData")if(A.items&&A.schema)z("parameter has array,items and schema",A,Q);else{A.schema&&Q.patches++,(!A.schema||typeof A.schema!="object")&&(A.schema={}),A.schema.type=A.type,A.items&&(A.schema.items=A.items,delete A.items,u(A.schema.items,null,function(ve,ze,Ae){ze==="collectionFormat"&&typeof ve[ze]=="string"&&(me&&ve[ze]!==me&&z("Nested collectionFormats are not supported",A,Q),delete ve[ze])}));for(let ve of h.parameterTypeProperties)typeof A[ve]<"u"&&(A.schema[ve]=A[ve]),delete A[ve]}A.schema&&O(A.schema,Q),A["x-ms-skip-url-encoding"]&&A.in==="query"&&(A.allowReserved=!0,delete A["x-ms-skip-url-encoding"])}if(A&&A.in==="formData"){de=!1,se.content={};let me="application/x-www-form-urlencoded";if(ge.length&&ge.indexOf("multipart/form-data")>=0&&(me="multipart/form-data"),se.content[me]={},A.schema)se.content[me].schema=A.schema,A.schema.$ref&&(se["x-s2o-name"]=decodeURIComponent(A.schema.$ref.replace("#/components/schemas/","")));else{se.content[me].schema={},se.content[me].schema.type="object",se.content[me].schema.properties={},se.content[me].schema.properties[A.name]={};let ve=se.content[me].schema,ze=se.content[me].schema.properties[A.name];A.description&&(ze.description=A.description),A.example&&(ze.example=A.example),A.type&&(ze.type=A.type);for(let Ae of h.parameterTypeProperties)typeof A[Ae]<"u"&&(ze[Ae]=A[Ae]);A.required===!0&&(ve.required||(ve.required=[]),ve.required.push(A.name),se.required=!0),typeof A.default<"u"&&(ze.default=A.default),ze.properties&&(ze.properties=A.properties),A.allOf&&(ze.allOf=A.allOf),A.type==="array"&&A.items&&(ze.items=A.items,ze.items.collectionFormat&&delete ze.items.collectionFormat),(ke==="file"||A["x-s2o-originalType"]==="file")&&(ze.type="string",ze.format="binary"),ie(A,ze)}}else A&&A.type==="file"&&(A.required&&(se.required=A.required),se.content={},se.content["application/octet-stream"]={},se.content["application/octet-stream"].schema={},se.content["application/octet-stream"].schema.type="string",se.content["application/octet-stream"].schema.format="binary",ie(A,se));if(A&&A.in==="body"){se.content={},A.name&&(se["x-s2o-name"]=(L&&L.operationId?h.sanitiseAll(L.operationId):"")+("_"+A.name).toCamelCase()),A.description&&(se.description=A.description),A.required&&(se.required=A.required),L&&Q.rbname&&A.name&&(L[Q.rbname]=A.name),A.schema&&A.schema.$ref?se["x-s2o-name"]=decodeURIComponent(A.schema.$ref.replace("#/components/schemas/","")):A.schema&&A.schema.type==="array"&&A.schema.items&&A.schema.items.$ref&&(se["x-s2o-name"]=decodeURIComponent(A.schema.items.$ref.replace("#/components/schemas/",""))+"Array"),ge.length||ge.push("application/json");for(let me of ge)se.content[me]={},se.content[me].schema=l(A.schema||{}),O(se.content[me].schema,Q);ie(A,se)}if(Object.keys(se).length>0&&(A["x-s2o-delete"]=!0,L))if(L.requestBody&&de){L.requestBody["x-s2o-overloaded"]=!0;let me=L.operationId||oe;z("Operation "+me+" has multiple requestBodies",L,Q)}else L.requestBody||(L=te[F]=re(L,Q)),L.requestBody.content&&L.requestBody.content["multipart/form-data"]&&L.requestBody.content["multipart/form-data"].schema&&L.requestBody.content["multipart/form-data"].schema.properties&&se.content["multipart/form-data"]&&se.content["multipart/form-data"].schema&&se.content["multipart/form-data"].schema.properties?(L.requestBody.content["multipart/form-data"].schema.properties=Object.assign(L.requestBody.content["multipart/form-data"].schema.properties,se.content["multipart/form-data"].schema.properties),L.requestBody.content["multipart/form-data"].schema.required=(L.requestBody.content["multipart/form-data"].schema.required||[]).concat(se.content["multipart/form-data"].schema.required||[]),L.requestBody.content["multipart/form-data"].schema.required.length||delete L.requestBody.content["multipart/form-data"].schema.required):L.requestBody.content&&L.requestBody.content["application/x-www-form-urlencoded"]&&L.requestBody.content["application/x-www-form-urlencoded"].schema&&L.requestBody.content["application/x-www-form-urlencoded"].schema.properties&&se.content["application/x-www-form-urlencoded"]&&se.content["application/x-www-form-urlencoded"].schema&&se.content["application/x-www-form-urlencoded"].schema.properties?(L.requestBody.content["application/x-www-form-urlencoded"].schema.properties=Object.assign(L.requestBody.content["application/x-www-form-urlencoded"].schema.properties,se.content["application/x-www-form-urlencoded"].schema.properties),L.requestBody.content["application/x-www-form-urlencoded"].schema.required=(L.requestBody.content["application/x-www-form-urlencoded"].schema.required||[]).concat(se.content["application/x-www-form-urlencoded"].schema.required||[]),L.requestBody.content["application/x-www-form-urlencoded"].schema.required.length||delete L.requestBody.content["application/x-www-form-urlencoded"].schema.required):(L.requestBody=Object.assign(L.requestBody,se),L.requestBody["x-s2o-name"]||(L.requestBody.schema&&L.requestBody.schema.$ref?L.requestBody["x-s2o-name"]=decodeURIComponent(L.requestBody.schema.$ref.replace("#/components/schemas/","")).split("/").join(""):L.operationId&&(L.requestBody["x-s2o-name"]=h.sanitiseAll(L.operationId))));if(A&&!A["x-s2o-delete"]){delete A.type;for(let me of h.parameterTypeProperties)delete A[me];A.in==="path"&&(typeof A.required>"u"||A.required!==!0)&&(Q.patch?(Q.patches++,A.required=!0):x("(Patchable) path parameters must be required:true ["+A.name+" in "+oe+"]",Q))}return L}function ie(A,L){for(let te in A)te.startsWith("x-")&&!te.startsWith("x-s2o")&&(L[te]=A[te])}function he(A,L,te,F,oe){if(!A)return!1;if(A.$ref&&typeof A.$ref=="string")A.$ref.indexOf("#/definitions/")>=0?z("definition used as response: "+A.$ref,A,oe):A.$ref.startsWith("#/responses/")&&(A.$ref="#/components/responses/"+h.sanitise(decodeURIComponent(A.$ref.replace("#/responses/",""))));else{if((typeof A.description>"u"||A.description===null||A.description===""&&oe.patch)&&(oe.patch?typeof A=="object"&&!Array.isArray(A)&&(oe.patches++,A.description=m[A]||""):x("(Patchable) response.description is mandatory",oe)),typeof A.schema<"u"){if(O(A.schema,oe),A.schema.$ref&&typeof A.schema.$ref=="string"&&A.schema.$ref.startsWith("#/responses/")&&(A.schema.$ref="#/components/responses/"+h.sanitise(decodeURIComponent(A.schema.$ref.replace("#/responses/","")))),te&&te.produces&&typeof te.produces=="string")if(oe.patch)oe.patches++,te.produces=[te.produces];else return x("(Patchable) operation.produces must be an array",oe);F.produces&&!Array.isArray(F.produces)&&delete F.produces;let ue=((te?te.produces:null)||F.produces||[]).filter(h.uniqueOnly);ue.length||ue.push("*/*"),A.content={};for(let Q of ue){if(A.content[Q]={},A.content[Q].schema=l(A.schema),A.examples&&A.examples[Q]){let se={};se.value=A.examples[Q],A.content[Q].examples={},A.content[Q].examples.response=se,delete A.examples[Q]}A.content[Q].schema.type==="file"&&(A.content[Q].schema={type:"string",format:"binary"})}delete A.schema}for(let ue in A.examples)A.content||(A.content={}),A.content[ue]||(A.content[ue]={}),A.content[ue].examples={},A.content[ue].examples.response={},A.content[ue].examples.response.value=A.examples[ue];if(delete A.examples,A.headers)for(let ue in A.headers)ue.toLowerCase()==="status code"?oe.patch?(oe.patches++,delete A.headers[ue]):x('(Patchable) "Status Code" is not a valid header',oe):I(A.headers[ue],oe)}}function G(A,L,te,F,oe){for(let ue in A){let Q=A[ue];Q&&Q["x-trace"]&&typeof Q["x-trace"]=="object"&&(Q.trace=Q["x-trace"],delete Q["x-trace"]),Q&&Q["x-summary"]&&typeof Q["x-summary"]=="string"&&(Q.summary=Q["x-summary"],delete Q["x-summary"]),Q&&Q["x-description"]&&typeof Q["x-description"]=="string"&&(Q.description=Q["x-description"],delete Q["x-description"]),Q&&Q["x-servers"]&&Array.isArray(Q["x-servers"])&&(Q.servers=Q["x-servers"],delete Q["x-servers"]);for(let se in Q)if(h.httpMethods.indexOf(se)>=0||se==="x-amazon-apigateway-any-method"){let de=Q[se];if(de&&de.parameters&&Array.isArray(de.parameters)){if(Q.parameters)for(let ke of Q.parameters)typeof ke.$ref=="string"&&(X(ke,te),ke=o(oe,ke.$ref)),!de.parameters.find(function(ge,me,ve){return ge.name===ke.name&&ge.in===ke.in})&&(ke.in==="formData"||ke.in==="body"||ke.type==="file")&&(de=le(ke,de,Q,se,ue,oe,te),te.rbname&&de[te.rbname]===""&&delete de[te.rbname]);for(let ke of de.parameters)de=le(ke,de,Q,se,se+":"+ue,oe,te);te.rbname&&de[te.rbname]===""&&delete de[te.rbname],te.debug||de.parameters&&(de.parameters=de.parameters.filter(J))}if(de&&de.security&&H(de.security),typeof de=="object"){if(!de.responses){let ke={};ke.description="Default response",de.responses={default:ke}}for(let ke in de.responses){let ge=de.responses[ke];he(ge,ke,de,oe,te)}}if(de&&de["x-servers"]&&Array.isArray(de["x-servers"]))de.servers=de["x-servers"],delete de["x-servers"];else if(de&&de.schemes&&de.schemes.length){for(let ke of de.schemes)if((!oe.schemes||oe.schemes.indexOf(ke)<0)&&(de.servers||(de.servers=[]),Array.isArray(oe.servers)))for(let ge of oe.servers){let me=l(ge),ve=t.parse(me.url);ve.protocol=ke,me.url=ve.format(),de.servers.push(me)}}if(te.debug&&(de["x-s2o-consumes"]=de.consumes||[],de["x-s2o-produces"]=de.produces||[]),de){if(delete de.consumes,delete de.produces,delete de.schemes,de["x-ms-examples"]){for(let ke in de["x-ms-examples"]){let ge=de["x-ms-examples"][ke],me=h.sanitiseAll(ke);if(ge.parameters)for(let ve in ge.parameters){let ze=ge.parameters[ve];for(let Ae of(de.parameters||[]).concat(Q.parameters||[]))Ae.$ref&&(Ae=i.jptr(oe,Ae.$ref)),Ae.name===ve&&!Ae.example&&(Ae.examples||(Ae.examples={}),Ae.examples[ke]={value:ze})}if(ge.responses)for(let ve in ge.responses){if(ge.responses[ve].headers)for(let ze in ge.responses[ve].headers){let Ae=ge.responses[ve].headers[ze];for(let Ue in de.responses[ve].headers)if(Ue===ze){let _=de.responses[ve].headers[Ue];_.example=Ae}}if(ge.responses[ve].body&&(oe.components.examples[me]={value:l(ge.responses[ve].body)},de.responses[ve]&&de.responses[ve].content))for(let ze in de.responses[ve].content){let Ae=de.responses[ve].content[ze];Ae.examples||(Ae.examples={}),Ae.examples[ke]={$ref:"#/components/examples/"+me}}}}delete de["x-ms-examples"]}if(de.parameters&&de.parameters.length===0&&delete de.parameters,de.requestBody){let ke=de.operationId?h.sanitiseAll(de.operationId):h.sanitiseAll(se+ue).toCamelCase(),ge=h.sanitise(de.requestBody["x-s2o-name"]||ke||"");delete de.requestBody["x-s2o-name"];let me=JSON.stringify(de.requestBody),ve=h.hash(me);if(!F[ve]){let Ae={};Ae.name=ge,Ae.body=de.requestBody,Ae.refs=[],F[ve]=Ae}let ze="#/"+L+"/"+encodeURIComponent(i.jpescape(ue))+"/"+se+"/requestBody";F[ve].refs.push(ze)}}}if(Q&&Q.parameters){for(let se in Q.parameters){let de=Q.parameters[se];le(de,null,Q,null,ue,oe,te)}!te.debug&&Array.isArray(Q.parameters)&&(Q.parameters=Q.parameters.filter(J))}}}function D(A,L){let te={};f={schemas:{}},A.security&&H(A.security);for(let oe in A.components.securitySchemes){let ue=h.sanitise(oe);oe!==ue&&(A.components.securitySchemes[ue]&&x("Duplicate sanitised securityScheme name "+ue,L),A.components.securitySchemes[ue]=A.components.securitySchemes[oe],delete A.components.securitySchemes[oe]),N(A.components.securitySchemes[ue],L)}for(let oe in A.components.schemas){let ue=h.sanitiseAll(oe),Q="";if(oe!==ue){for(;A.components.schemas[ue+Q];)Q=Q?++Q:2;A.components.schemas[ue+Q]=A.components.schemas[oe],delete A.components.schemas[oe]}f.schemas[oe]=ue+Q,O(A.components.schemas[ue+Q],L)}L.refmap={},u(A,{payload:{options:L}},T),B(A,L);for(let oe in A.components.parameters){let ue=h.sanitise(oe);oe!==ue&&(A.components.parameters[ue]&&x("Duplicate sanitised parameter name "+ue,L),A.components.parameters[ue]=A.components.parameters[oe],delete A.components.parameters[oe]);let Q=A.components.parameters[ue];le(Q,null,null,null,ue,A,L)}for(let oe in A.components.responses){let ue=h.sanitise(oe);oe!==ue&&(A.components.responses[ue]&&x("Duplicate sanitised response name "+ue,L),A.components.responses[ue]=A.components.responses[oe],delete A.components.responses[oe]);let Q=A.components.responses[ue];if(he(Q,ue,null,A,L),Q.headers)for(let se in Q.headers)se.toLowerCase()==="status code"?L.patch?(L.patches++,delete Q.headers[se]):x('(Patchable) "Status Code" is not a valid header',L):I(Q.headers[se],L)}for(let oe in A.components.requestBodies){let ue=A.components.requestBodies[oe],Q=JSON.stringify(ue),se=h.hash(Q),de={};de.name=oe,de.body=ue,de.refs=[],te[se]=de}if(G(A.paths,"paths",L,te,A),A["x-ms-paths"]&&G(A["x-ms-paths"],"x-ms-paths",L,te,A),!L.debug)for(let oe in A.components.parameters)A.components.parameters[oe]["x-s2o-delete"]&&delete A.components.parameters[oe];L.debug&&(A["x-s2o-consumes"]=A.consumes||[],A["x-s2o-produces"]=A.produces||[]),delete A.consumes,delete A.produces,delete A.schemes;let F=[];if(A.components.requestBodies={},!L.resolveInternal){let oe=1;for(let ue in te){let Q=te[ue];if(Q.refs.length>1){let se="";for(Q.name||(Q.name="requestBody",se=oe++);F.indexOf(Q.name+se)>=0;)se=se?++se:2;Q.name=Q.name+se,F.push(Q.name),A.components.requestBodies[Q.name]=l(Q.body);for(let de in Q.refs){let ke={};ke.$ref="#/components/requestBodies/"+Q.name,i.jptr(A,Q.refs[de],ke)}}}}return A.components.responses&&Object.keys(A.components.responses).length===0&&delete A.components.responses,A.components.parameters&&Object.keys(A.components.parameters).length===0&&delete A.components.parameters,A.components.examples&&Object.keys(A.components.examples).length===0&&delete A.components.examples,A.components.requestBodies&&Object.keys(A.components.requestBodies).length===0&&delete A.components.requestBodies,A.components.securitySchemes&&Object.keys(A.components.securitySchemes).length===0&&delete A.components.securitySchemes,A.components.headers&&Object.keys(A.components.headers).length===0&&delete A.components.headers,A.components.schemas&&Object.keys(A.components.schemas).length===0&&delete A.components.schemas,A.components&&Object.keys(A.components).length===0&&delete A.components,A}function W(A){return!A||!A.url||typeof A.url!="string"||(A.url=A.url.split("{{").join("{"),A.url=A.url.split("}}").join("}"),A.url.replace(/\{(.+?)\}/g,function(L,te){A.variables||(A.variables={}),A.variables[te]={default:"unknown"}})),A}function $(A,L,te){if(typeof A.info>"u"||A.info===null)if(L.patch)L.patches++,A.info={version:"",title:""};else return te(new k("(Patchable) info object is mandatory"));if(typeof A.info!="object"||Array.isArray(A.info))return te(new k("info must be an object"));if(typeof A.info.title>"u"||A.info.title===null)if(L.patch)L.patches++,A.info.title="";else return te(new k("(Patchable) info.title cannot be null"));if(typeof A.info.version>"u"||A.info.version===null)if(L.patch)L.patches++,A.info.version="";else return te(new k("(Patchable) info.version cannot be null"));if(typeof A.info.version!="string")if(L.patch)L.patches++,A.info.version=A.info.version.toString();else return te(new k("(Patchable) info.version must be a string"));if(typeof A.info.logo<"u")if(L.patch)L.patches++,A.info["x-logo"]=A.info.logo,delete A.info.logo;else return te(new k("(Patchable) info should not have logo property"));if(typeof A.info.termsOfService<"u"){if(A.info.termsOfService===null)if(L.patch)L.patches++,A.info.termsOfService="";else return te(new k("(Patchable) info.termsOfService cannot be null"));try{new URL(A.info.termsOfService)}catch{if(L.patch)L.patches++,delete A.info.termsOfService;else return te(new k("(Patchable) info.termsOfService must be a URL"))}}}function P(A,L,te){if(typeof A.paths>"u")if(L.patch)L.patches++,A.paths={};else return te(new k("(Patchable) paths object is mandatory"))}function R(A,L){const te=new WeakSet;u(A,{identityDetection:!0},function(F,oe,ue){typeof F[oe]=="object"&&F[oe]!==null&&(te.has(F[oe])?L.anchors?F[oe]=l(F[oe]):x("YAML anchor or merge key at "+ue.path,L):te.add(F[oe]))})}function V(A,L,te){return a(te,new Promise(function(F,oe){if(A||(A={}),L.original=A,L.text||(L.text=n.stringify(A)),L.externals=[],L.externalRefs={},L.rewriteRefs=!0,L.preserveMiro=!0,L.promise={},L.promise.resolve=F,L.promise.reject=oe,L.patches=0,L.cache||(L.cache={}),L.source&&(L.cache[L.source]=L.original),R(A,L),A.openapi&&typeof A.openapi=="string"&&A.openapi.startsWith("3.")){L.openapi=c(A),$(L.openapi,L,oe),P(L.openapi,L,oe),d.optionalResolve(L).then(function(){return L.direct?F(L.openapi):F(L)}).catch(function(Q){console.warn(Q),oe(Q)});return}if(!A.swagger||A.swagger!="2.0")return oe(new k("Unsupported swagger/OpenAPI version: "+(A.openapi?A.openapi:A.swagger)));let ue=L.openapi={};if(ue.openapi=typeof L.targetVersion=="string"&&L.targetVersion.startsWith("3.")?L.targetVersion:g,L.origin){ue["x-origin"]||(ue["x-origin"]=[]);let Q={};Q.url=L.source||L.origin,Q.format="swagger",Q.version=A.swagger,Q.converter={},Q.converter.url="https://github.com/mermade/oas-kit",Q.converter.version=v,ue["x-origin"].push(Q)}if(ue=Object.assign(ue,c(A)),delete ue.swagger,u(ue,{},function(Q,se,de){Q[se]===null&&!se.startsWith("x-")&&se!=="default"&&de.path.indexOf("/example")<0&&delete Q[se]}),A.host)for(let Q of Array.isArray(A.schemes)?A.schemes:[""]){let se={},de=(A.basePath||"").replace(/\/$/,"");se.url=(Q?Q+":":"")+"//"+A.host+de,W(se),ue.servers||(ue.servers=[]),ue.servers.push(se)}else if(A.basePath){let Q={};Q.url=A.basePath,W(Q),ue.servers||(ue.servers=[]),ue.servers.push(Q)}if(delete ue.host,delete ue.basePath,ue["x-servers"]&&Array.isArray(ue["x-servers"])&&(ue.servers=ue["x-servers"],delete ue["x-servers"]),A["x-ms-parameterized-host"]){let Q=A["x-ms-parameterized-host"],se={};se.url=Q.hostTemplate+(A.basePath?A.basePath:""),se.variables={};const de=se.url.match(/\{\w+\}/g);for(let ke in Q.parameters){let ge=Q.parameters[ke];ge.$ref&&(ge=l(o(ue,ge.$ref))),ke.startsWith("x-")||(delete ge.required,delete ge.type,delete ge.in,typeof ge.default>"u"&&(ge.enum?ge.default=ge.enum[0]:ge.default="none"),ge.name||(ge.name=de[ke].replace("{","").replace("}","")),se.variables[ge.name]=ge,delete ge.name)}ue.servers||(ue.servers=[]),Q.useSchemePrefix===!1?ue.servers.push(se):A.schemes.forEach(ke=>{ue.servers.push(Object.assign({},se,{url:ke+"://"+se.url}))}),delete ue["x-ms-parameterized-host"]}$(ue,L,oe),P(ue,L,oe),typeof ue.consumes=="string"&&(ue.consumes=[ue.consumes]),typeof ue.produces=="string"&&(ue.produces=[ue.produces]),ue.components={},ue["x-callbacks"]&&(ue.components.callbacks=ue["x-callbacks"],delete ue["x-callbacks"]),ue.components.examples={},ue.components.headers={},ue["x-links"]&&(ue.components.links=ue["x-links"],delete ue["x-links"]),ue.components.parameters=ue.parameters||{},ue.components.responses=ue.responses||{},ue.components.requestBodies={},ue.components.securitySchemes=ue.securityDefinitions||{},ue.components.schemas=ue.definitions||{},delete ue.definitions,delete ue.responses,delete ue.parameters,delete ue.securityDefinitions,d.optionalResolve(L).then(function(){D(L.openapi,L),L.direct?F(L.openapi):F(L)}).catch(function(Q){console.warn(Q),oe(Q)})}))}function ae(A,L,te){return a(te,new Promise(function(F,oe){let ue=null,Q=null;try{ue=JSON.parse(A),L.text=JSON.stringify(ue,null,2)}catch(se){Q=se;try{ue=n.parse(A,{schema:"core",prettyErrors:!0}),L.sourceYaml=!0,L.text=A}catch(de){Q=de}}ue?V(ue,L).then(se=>F(se)).catch(se=>oe(se)):oe(new k(Q?Q.message:"Could not parse string"))}))}function U(A,L,te){return a(te,new Promise(function(F,oe){L.origin=!0,L.source||(L.source=A),L.verbose&&console.warn("GET "+A),L.fetch||(L.fetch=r);const ue=Object.assign({},L.fetchOptions,{agent:L.agent});L.fetch(A,ue).then(function(Q){if(Q.status!==200)throw new k(`Received status code ${Q.status}: ${A}`);return Q.text()}).then(function(Q){ae(Q,L).then(se=>F(se)).catch(se=>oe(se))}).catch(function(Q){oe(Q)})}))}function pe(A,L,te){return a(te,new Promise(function(F,oe){e.readFile(A,L.encoding||"utf8",function(ue,Q){ue?oe(ue):(L.sourceFile=A,ae(Q,L).then(se=>F(se)).catch(se=>oe(se)))})}))}function Z(A,L,te){return a(te,new Promise(function(F,oe){let ue="";A.on("data",function(Q){ue+=Q}).on("end",function(){ae(ue,L).then(Q=>F(Q)).catch(Q=>oe(Q))})}))}return D9={S2OError:k,targetVersion:g,convert:V,convertObj:V,convertUrl:U,convertStr:ae,convertFile:pe,convertStream:Z},D9}var A0t=C0t();const P0t=Rr(A0t);function M0t(e){return e.paths||(e.paths={}),new Promise((t,a)=>P0t.convertObj(e,{patch:!0,warnOnly:!0,text:"{}",anchors:!0},(r,n)=>{if(r)return a(r);t(n?.openapi)}))}async function T0t(){const e=hc?window.location.origin:typeof globalThis.process<"u"?globalThis.process.cwd():"";try{return(await epe({configPath:oB(e,RFe)}))?.resolvedConfig.openapi||{}}catch(t){return console.warn("Error loading redocly.yaml",t),{}}}async function E0t(e){const t=await epe(),a={config:t,base:hc?window.location.origin:typeof globalThis.process<"u"?globalThis.process.cwd():""};hc&&(t.resolve.http.customFetch=globalThis.fetch),typeof e=="object"&&e!==null?a.doc=_0t(e):a.ref=e;const{bundle:{parsed:r}}=await vyt(a);return r.swagger!==void 0?M0t(r):r}function _0t(e){return{source:{absoluteRef:""},parsed:e}}async function R0t(e,t,a){let r;if(a?.skipBundle){if(!e)throw new Error('spec must be specified when using "skipBundleAndConvert"');r=e}else r=await E0t(e||t);try{bXe(r)}catch{}return r}const B0t=({options:e,definitionUrl:t,definition:a,activeSampleLanguage:r,children:n})=>{const[,i]=K.useState(),[o,s]=K.useState(!0),[l,c]=K.useState(null),[u,d]=K.useState(e||{});K.useEffect(()=>{async function h(){s(!0);try{const m=await T0t();d({...e,...m}),c(await R0t(a,t,e))}catch(m){i(()=>{throw m})}}h()},[a,t,e]);const p=K.useMemo(()=>{if(l)return{definition:l,options:u,definitionUrl:t,activeSampleLanguage:r}},kXe([l,t,u]));return K.useEffect(()=>{p&&s(!1)},[p]),p?o?Qs(e?.hideLoading,!1)?null:b.jsx(eot,{color:"--loading-spinner-color"}):K.isValidElement(n)?K.cloneElement(n,{store:p}):null:null};function L0t({definition:e,definitionUrl:t,options:a={},activeItemId:r,activeSampleLanguage:n,activeDeepLink:i,router:o}){return b.jsx(B0t,{definition:e,definitionUrl:t,options:a,activeItemId:r,activeSampleLanguage:n,activeDeepLink:i,children:b.jsx($re,{withCommonStyles:!0,router:o})})}function N0t(e){const t={},a=e.attributes;for(let r=0;r<a.length;r++){const n=a[r];t[n.name]=n.value}return t}function D0t(e){const t=N0t(e),a={};for(const r in t){const n=r.replace(/-(.)/g,(i,o)=>o.toUpperCase());a[n]=t[r]}return a}function $0t(e,t=document.querySelector("redoc")){xJ.hydrateRoot(t,b.jsx($re,{store:e}))}function Uhe(e,t={},a=KR("redoc")){if(a===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');const{router:r,...n}=t;let i,o;typeof e=="string"?i=e:typeof e=="object"&&(o=e),xJ.createRoot(a).render(K.createElement(L0t,{definition:o,definitionUrl:i,options:{...n,...D0t(a)},router:r??"history"},["Loading..."]))}const I0t="3.14.0-next.9",K0t="244be765";function V0t(){const e=KR("redoc");if(!e)return;const t=e.getAttribute("spec-url");t&&Uhe(t,{},e)}V0t();var Zhe={exports:{}};/*!
|
|
9769
9769
|
|
|
9770
9770
|
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
|
|
9771
9771
|
<http://stuartk.com/jszip>
|
|
@@ -11127,7 +11127,7 @@ html body {
|
|
|
11127
11127
|
align-self: flex-end;
|
|
11128
11128
|
padding-top: var(--spacing-xxs);
|
|
11129
11129
|
gap: var(--spacing-xs);
|
|
11130
|
-
`;function Tx({input:e,onSave:t,onCancel:a,...r}){const[n,i]=K.useState(!!e.isSecret),o=({name:s,value:l})=>{t({...e,name:s,value:l,isSecret:n})};return b.jsx(MSe,{variable:e,onSave:o,onCancel:a,...r,children:b.jsx(Mx,{children:b.jsx(sBt,{value:n,onChange:s=>i(s),title:"Make it secret"})})})}function cM(e){var t=new Error(e);return t.source="ulid",t}var xI="0123456789ABCDEFGHJKMNPQRSTVWXYZ",Ex=xI.length,TSe=Math.pow(2,48)-1,mBt=10,fBt=16;function gBt(e){var t=Math.floor(e()*Ex);return t===Ex&&(t=Ex-1),xI.charAt(t)}function vBt(e,t){if(isNaN(e))throw new Error(e+" must be a number");if(e>TSe)throw cM("cannot encode time greater than "+TSe);if(e<0)throw cM("time must be positive");if(Number.isInteger(e)===!1)throw cM("time must be an integer");for(var a=void 0,r="";t>0;t--)a=e%Ex,r=xI.charAt(a)+r,e=(e-a)/Ex;return r}function bBt(e,t){for(var a="";e>0;e--)a=gBt(t)+a;return a}function kBt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=arguments[1];t||(t=typeof window<"u"?window:null);var a=t&&(t.crypto||t.msCrypto);if(a)return function(){var n=new Uint8Array(1);return a.getRandomValues(n),n[0]/255};try{var r=require("crypto");return function(){return r.randomBytes(1).readUInt8()/255}}catch{}if(e){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch{}return function(){return Math.random()}}throw cM("secure crypto unusable, insecure Math.random not allowed")}function yBt(e){return e||(e=kBt()),function(t){return isNaN(t)&&(t=Date.now()),vBt(t,mBt)+bBt(fBt,e)}}var uM=yBt(),xBt=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof globalThis=="object"?globalThis:{},Of="1.9.0",ESe=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function wBt(e){var t=new Set([e]),a=new Set,r=e.match(ESe);if(!r)return function(){return!1};var n={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(n.prerelease!=null)return function(s){return s===e};function i(s){return a.add(s),!1}function o(s){return t.add(s),!0}return function(s){if(t.has(s))return!0;if(a.has(s))return!1;var l=s.match(ESe);if(!l)return i(s);var c={major:+l[1],minor:+l[2],patch:+l[3],prerelease:l[4]};return c.prerelease!=null||n.major!==c.major?i(s):n.major===0?n.minor===c.minor&&n.patch<=c.patch?o(s):i(s):n.minor<=c.minor?o(s):i(s)}}var SBt=wBt(Of),zBt=Of.split(".")[0],_x=Symbol.for("opentelemetry.js.api."+zBt),Rx=xBt;function Bx(e,t,a,r){var n;r===void 0&&(r=!1);var i=Rx[_x]=(n=Rx[_x])!==null&&n!==void 0?n:{version:Of};if(!r&&i[e]){var o=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return a.error(o.stack||o.message),!1}if(i.version!==Of){var o=new Error("@opentelemetry/api: Registration of version v"+i.version+" for "+e+" does not match previously registered API v"+Of);return a.error(o.stack||o.message),!1}return i[e]=t,a.debug("@opentelemetry/api: Registered a global for "+e+" v"+Of+"."),!0}function Cf(e){var t,a,r=(t=Rx[_x])===null||t===void 0?void 0:t.version;if(!(!r||!SBt(r)))return(a=Rx[_x])===null||a===void 0?void 0:a[e]}function Lx(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+Of+".");var a=Rx[_x];a&&delete a[e]}var jBt=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},OBt=function(e,t,a){if(arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},CBt=(function(){function e(t){this._namespace=t.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return Nx("debug",this._namespace,t)},e.prototype.error=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return Nx("error",this._namespace,t)},e.prototype.info=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return Nx("info",this._namespace,t)},e.prototype.warn=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return Nx("warn",this._namespace,t)},e.prototype.verbose=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return Nx("verbose",this._namespace,t)},e})();function Nx(e,t,a){var r=Cf("diag");if(r)return a.unshift(t),r[e].apply(r,OBt([],jBt(a),!1))}var bl;(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"})(bl||(bl={}));function ABt(e,t){e<bl.NONE?e=bl.NONE:e>bl.ALL&&(e=bl.ALL),t=t||{};function a(r,n){var i=t[r];return typeof i=="function"&&e>=n?i.bind(t):function(){}}return{error:a("error",bl.ERROR),warn:a("warn",bl.WARN),info:a("info",bl.INFO),debug:a("debug",bl.DEBUG),verbose:a("verbose",bl.VERBOSE)}}var PBt=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},MBt=function(e,t,a){if(arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},TBt="diag",Ju=(function(){function e(){function t(n){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var s=Cf("diag");if(s)return s[n].apply(s,MBt([],PBt(i),!1))}}var a=this,r=function(n,i){var o,s,l;if(i===void 0&&(i={logLevel:bl.INFO}),n===a){var c=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return a.error((o=c.stack)!==null&&o!==void 0?o:c.message),!1}typeof i=="number"&&(i={logLevel:i});var u=Cf("diag"),d=ABt((s=i.logLevel)!==null&&s!==void 0?s:bl.INFO,n);if(u&&!i.suppressOverrideMessage){var p=(l=new Error().stack)!==null&&l!==void 0?l:"<failed to generate stacktrace>";u.warn("Current logger will be overwritten from "+p),d.warn("Current logger will overwrite one already registered from "+p)}return Bx("diag",d,a,!0)};a.setLogger=r,a.disable=function(){Lx(TBt,a)},a.createComponentLogger=function(n){return new CBt(n)},a.verbose=t("verbose"),a.debug=t("debug"),a.info=t("info"),a.warn=t("warn"),a.error=t("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e})(),EBt=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;(t===void 0||t-- >0)&&!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},_Bt=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,a=t&&e[t],r=0;if(a)return a.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},RBt=(function(){function e(t){this._entries=t?new Map(t):new Map}return e.prototype.getEntry=function(t){var a=this._entries.get(t);if(a)return Object.assign({},a)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var a=EBt(t,2),r=a[0],n=a[1];return[r,n]})},e.prototype.setEntry=function(t,a){var r=new e(this._entries);return r._entries.set(t,a),r},e.prototype.removeEntry=function(t){var a=new e(this._entries);return a._entries.delete(t),a},e.prototype.removeEntries=function(){for(var t,a,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=new e(this._entries);try{for(var o=_Bt(r),s=o.next();!s.done;s=o.next()){var l=s.value;i._entries.delete(l)}}catch(c){t={error:c}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(t)throw t.error}}return i},e.prototype.clear=function(){return new e},e})(),BBt=Symbol("BaggageEntryMetadata"),LBt=Ju.instance();function NBt(e){return e===void 0&&(e={}),new RBt(new Map(Object.entries(e)))}function DBt(e){return typeof e!="string"&&(LBt.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:BBt,toString:function(){return e}}}function wI(e){return Symbol.for(e)}var $Bt=(function(){function e(t){var a=this;a._currentContext=t?new Map(t):new Map,a.getValue=function(r){return a._currentContext.get(r)},a.setValue=function(r,n){var i=new e(a._currentContext);return i._currentContext.set(r,n),i},a.deleteValue=function(r){var n=new e(a._currentContext);return n._currentContext.delete(r),n}}return e})(),_b=new $Bt,Af=(function(){var e=function(t,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},e(t,a)};return function(t,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");e(t,a);function r(){this.constructor=t}t.prototype=a===null?Object.create(a):(r.prototype=a.prototype,new r)}})(),IBt=(function(){function e(){}return e.prototype.createGauge=function(t,a){return ZBt},e.prototype.createHistogram=function(t,a){return QBt},e.prototype.createCounter=function(t,a){return UBt},e.prototype.createUpDownCounter=function(t,a){return YBt},e.prototype.createObservableGauge=function(t,a){return e4t},e.prototype.createObservableCounter=function(t,a){return XBt},e.prototype.createObservableUpDownCounter=function(t,a){return t4t},e.prototype.addBatchObservableCallback=function(t,a){},e.prototype.removeBatchObservableCallback=function(t){},e})(),dM=(function(){function e(){}return e})(),KBt=(function(e){Af(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(a,r){},t})(dM),VBt=(function(e){Af(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(a,r){},t})(dM),HBt=(function(e){Af(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(a,r){},t})(dM),FBt=(function(e){Af(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(a,r){},t})(dM),SI=(function(){function e(){}return e.prototype.addCallback=function(t){},e.prototype.removeCallback=function(t){},e})(),GBt=(function(e){Af(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(SI),qBt=(function(e){Af(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(SI),WBt=(function(e){Af(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(SI),JBt=new IBt,UBt=new KBt,ZBt=new HBt,QBt=new FBt,YBt=new VBt,XBt=new GBt,e4t=new qBt,t4t=new WBt,a4t={get:function(e,t){if(e!=null)return e[t]},keys:function(e){return e==null?[]:Object.keys(e)}},r4t={set:function(e,t,a){e!=null&&(e[t]=a)}},n4t=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;(t===void 0||t-- >0)&&!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},i4t=function(e,t,a){if(a||arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},o4t=(function(){function e(){}return e.prototype.active=function(){return _b},e.prototype.with=function(t,a,r){for(var n=[],i=3;i<arguments.length;i++)n[i-3]=arguments[i];return a.call.apply(a,i4t([r],n4t(n),!1))},e.prototype.bind=function(t,a){return a},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e})(),s4t=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},l4t=function(e,t,a){if(arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},zI="context",c4t=new o4t,pM=(function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(t){return Bx(zI,t,Ju.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(t,a,r){for(var n,i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];return(n=this._getContextManager()).with.apply(n,l4t([t,a,r],s4t(i),!1))},e.prototype.bind=function(t,a){return this._getContextManager().bind(t,a)},e.prototype._getContextManager=function(){return Cf(zI)||c4t},e.prototype.disable=function(){this._getContextManager().disable(),Lx(zI,Ju.instance())},e})(),tp;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(tp||(tp={}));var _Se="0000000000000000",RSe="00000000000000000000000000000000",BSe={traceId:RSe,spanId:_Se,traceFlags:tp.NONE},Dx=(function(){function e(t){t===void 0&&(t=BSe),this._spanContext=t}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,a){return this},e.prototype.setAttributes=function(t){return this},e.prototype.addEvent=function(t,a){return this},e.prototype.addLink=function(t){return this},e.prototype.addLinks=function(t){return this},e.prototype.setStatus=function(t){return this},e.prototype.updateName=function(t){return this},e.prototype.end=function(t){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(t,a){},e})(),jI=wI("OpenTelemetry Context Key SPAN");function OI(e){return e.getValue(jI)||void 0}function u4t(){return OI(pM.getInstance().active())}function CI(e,t){return e.setValue(jI,t)}function d4t(e){return e.deleteValue(jI)}function p4t(e,t){return CI(e,new Dx(t))}function LSe(e){var t;return(t=OI(e))===null||t===void 0?void 0:t.spanContext()}var h4t=/^([0-9a-f]{32})$/i,m4t=/^[0-9a-f]{16}$/i;function NSe(e){return h4t.test(e)&&e!==RSe}function f4t(e){return m4t.test(e)&&e!==_Se}function hM(e){return NSe(e.traceId)&&f4t(e.spanId)}function g4t(e){return new Dx(e)}var AI=pM.getInstance(),DSe=(function(){function e(){}return e.prototype.startSpan=function(t,a,r){r===void 0&&(r=AI.active());var n=!!a?.root;if(n)return new Dx;var i=r&&LSe(r);return v4t(i)&&hM(i)?new Dx(i):new Dx},e.prototype.startActiveSpan=function(t,a,r,n){var i,o,s;if(!(arguments.length<2)){arguments.length===2?s=a:arguments.length===3?(i=a,s=r):(i=a,o=r,s=n);var l=o??AI.active(),c=this.startSpan(t,i,l),u=CI(l,c);return AI.with(u,s,void 0,c)}},e})();function v4t(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var b4t=new DSe,k4t=(function(){function e(t,a,r,n){this._provider=t,this.name=a,this.version=r,this.options=n}return e.prototype.startSpan=function(t,a,r){return this._getTracer().startSpan(t,a,r)},e.prototype.startActiveSpan=function(t,a,r,n){var i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):b4t},e})(),y4t=(function(){function e(){}return e.prototype.getTracer=function(t,a,r){return new DSe},e})(),x4t=new y4t,$Se=(function(){function e(){}return e.prototype.getTracer=function(t,a,r){var n;return(n=this.getDelegateTracer(t,a,r))!==null&&n!==void 0?n:new k4t(this,t,a,r)},e.prototype.getDelegate=function(){var t;return(t=this._delegate)!==null&&t!==void 0?t:x4t},e.prototype.setDelegate=function(t){this._delegate=t},e.prototype.getDelegateTracer=function(t,a,r){var n;return(n=this._delegate)===null||n===void 0?void 0:n.getTracer(t,a,r)},e})(),mM;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(mM||(mM={}));var PI;(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"})(PI||(PI={}));var $x;(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"})($x||($x={}));var Vc=pM.getInstance(),mr=Ju.instance(),w4t=(function(){function e(){}return e.prototype.getMeter=function(t,a,r){return JBt},e})(),S4t=new w4t,MI="metrics",z4t=(function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(t){return Bx(MI,t,Ju.instance())},e.prototype.getMeterProvider=function(){return Cf(MI)||S4t},e.prototype.getMeter=function(t,a,r){return this.getMeterProvider().getMeter(t,a,r)},e.prototype.disable=function(){Lx(MI,Ju.instance())},e})(),j4t=z4t.getInstance(),O4t=(function(){function e(){}return e.prototype.inject=function(t,a){},e.prototype.extract=function(t,a){return t},e.prototype.fields=function(){return[]},e})(),TI=wI("OpenTelemetry Baggage Key");function ISe(e){return e.getValue(TI)||void 0}function C4t(){return ISe(pM.getInstance().active())}function A4t(e,t){return e.setValue(TI,t)}function P4t(e){return e.deleteValue(TI)}var EI="propagation",M4t=new O4t,T4t=(function(){function e(){this.createBaggage=NBt,this.getBaggage=ISe,this.getActiveBaggage=C4t,this.setBaggage=A4t,this.deleteBaggage=P4t}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(t){return Bx(EI,t,Ju.instance())},e.prototype.inject=function(t,a,r){return r===void 0&&(r=r4t),this._getGlobalPropagator().inject(t,a,r)},e.prototype.extract=function(t,a,r){return r===void 0&&(r=a4t),this._getGlobalPropagator().extract(t,a,r)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){Lx(EI,Ju.instance())},e.prototype._getGlobalPropagator=function(){return Cf(EI)||M4t},e})(),Ix=T4t.getInstance(),_I="trace",E4t=(function(){function e(){this._proxyTracerProvider=new $Se,this.wrapSpanContext=g4t,this.isSpanContextValid=hM,this.deleteSpan=d4t,this.getSpan=OI,this.getActiveSpan=u4t,this.getSpanContext=LSe,this.setSpan=CI,this.setSpanContext=p4t}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(t){var a=Bx(_I,this._proxyTracerProvider,Ju.instance());return a&&this._proxyTracerProvider.setDelegate(t),a},e.prototype.getTracerProvider=function(){return Cf(_I)||this._proxyTracerProvider},e.prototype.getTracer=function(t,a){return this.getTracerProvider().getTracer(t,a)},e.prototype.disable=function(){Lx(_I,Ju.instance()),this._proxyTracerProvider=new $Se},e})(),kl=E4t.getInstance();const KSe=wI("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function _4t(e){return e.setValue(KSe,!0)}function RI(e){return e.getValue(KSe)===!0}const R4t="=",BI=";",LI=",",NI="baggage",B4t=180,L4t=4096,N4t=8192;function D4t(e){return e.reduce((t,a)=>{const r=`${t}${t!==""?LI:""}${a}`;return r.length>N4t?t:r},"")}function $4t(e){return e.getAllEntries().map(([t,a])=>{let r=`${encodeURIComponent(t)}=${encodeURIComponent(a.value)}`;return a.metadata!==void 0&&(r+=BI+a.metadata.toString()),r})}function I4t(e){const t=e.split(BI);if(t.length<=0)return;const a=t.shift();if(!a)return;const r=a.indexOf(R4t);if(r<=0)return;const n=decodeURIComponent(a.substring(0,r).trim()),i=decodeURIComponent(a.substring(r+1).trim());let o;return t.length>0&&(o=DBt(t.join(BI))),{key:n,value:i,metadata:o}}class K4t{inject(t,a,r){const n=Ix.getBaggage(t);if(!n||RI(t))return;const i=$4t(n).filter(s=>s.length<=L4t).slice(0,B4t),o=D4t(i);o.length>0&&r.set(a,NI,o)}extract(t,a,r){const n=r.get(a,NI),i=Array.isArray(n)?n.join(LI):n;if(!i)return t;const o={};return i.length===0||(i.split(LI).forEach(s=>{const l=I4t(s);if(l){const c={value:l.value};l.metadata&&(c.metadata=l.metadata),o[l.key]=c}}),Object.entries(o).length===0)?t:Ix.setBaggage(t,Ix.createBaggage(o))}fields(){return[NI]}}function fM(e){const t={};if(typeof e!="object"||e==null)return t;for(const[a,r]of Object.entries(e)){if(!V4t(a)){mr.warn(`Invalid attribute key: ${a}`);continue}if(!VSe(r)){mr.warn(`Invalid attribute value set for key: ${a}`);continue}Array.isArray(r)?t[a]=r.slice():t[a]=r}return t}function V4t(e){return typeof e=="string"&&e.length>0}function VSe(e){return e==null?!0:Array.isArray(e)?H4t(e):HSe(e)}function H4t(e){let t;for(const a of e)if(a!=null){if(!t){if(HSe(a)){t=typeof a;continue}return!1}if(typeof a!==t)return!1}return!0}function HSe(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}function F4t(){return e=>{mr.error(G4t(e))}}function G4t(e){return typeof e=="string"?e:JSON.stringify(q4t(e))}function q4t(e){const t={};let a=e;for(;a!==null;)Object.getOwnPropertyNames(a).forEach(r=>{if(t[r])return;const n=a[r];n&&(t[r]=String(n))}),a=Object.getPrototypeOf(a);return t}let W4t=F4t();function Rb(e){try{W4t(e)}catch{}}const Bb=performance,J4t="2.0.1",DI="exception.message",U4t="exception.stacktrace",$I="exception.type",FSe="service.name",Z4t="service.version",II="telemetry.sdk.language",Q4t="webjs",KI="telemetry.sdk.name",VI="telemetry.sdk.version",Y4t="process.runtime.name",HI={[KI]:"opentelemetry",[Y4t]:"browser",[II]:Q4t,[VI]:J4t},X4t=9,eLt=6,tLt=Math.pow(10,eLt),gM=Math.pow(10,X4t);function Lb(e){const t=e/1e3,a=Math.trunc(t),r=Math.round(e%1e3*tLt);return[a,r]}function GSe(){let e=Bb.timeOrigin;if(typeof e!="number"){const t=Bb;e=t.timing&&t.timing.fetchStart}return e}function aLt(e){const t=Lb(GSe()),a=Lb(typeof e=="number"?e:Bb.now());return JSe(t,a)}function rLt(e,t){let a=t[0]-e[0],r=t[1]-e[1];return r<0&&(a-=1,r+=gM),[a,r]}function nLt(e){return e[0]*gM+e[1]}function qSe(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function WSe(e){return qSe(e)||typeof e=="number"||e instanceof Date}function JSe(e,t){const a=[e[0]+t[0],e[1]+t[1]];return a[1]>=gM&&(a[1]-=gM,a[0]+=1),a}var Uu;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(Uu||(Uu={}));class iLt{_propagators;_fields;constructor(t={}){this._propagators=t.propagators??[],this._fields=Array.from(new Set(this._propagators.map(a=>typeof a.fields=="function"?a.fields():[]).reduce((a,r)=>a.concat(r),[])))}inject(t,a,r){for(const n of this._propagators)try{n.inject(t,a,r)}catch(i){mr.warn(`Failed to inject with ${n.constructor.name}. Err: ${i.message}`)}}extract(t,a,r){return this._propagators.reduce((n,i)=>{try{return i.extract(n,a,r)}catch(o){mr.warn(`Failed to extract with ${i.constructor.name}. Err: ${o.message}`)}return n},t)}fields(){return this._fields.slice()}}const FI="[_0-9a-z-*/]",oLt=`[a-z]${FI}{0,255}`,sLt=`[a-z0-9]${FI}{0,240}@[a-z]${FI}{0,13}`,lLt=new RegExp(`^(?:${oLt}|${sLt})$`),cLt=/^[ -~]{0,255}[!-~]$/,uLt=/,|=/;function dLt(e){return lLt.test(e)}function pLt(e){return cLt.test(e)&&!uLt.test(e)}const USe=32,hLt=512,ZSe=",",QSe="=";class RF{_internalState=new Map;constructor(t){t&&this._parse(t)}set(t,a){const r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,a),r}unset(t){const a=this._clone();return a._internalState.delete(t),a}get(t){return this._internalState.get(t)}serialize(){return this._keys().reduce((t,a)=>(t.push(a+QSe+this.get(a)),t),[]).join(ZSe)}_parse(t){t.length>hLt||(this._internalState=t.split(ZSe).reverse().reduce((a,r)=>{const n=r.trim(),i=n.indexOf(QSe);if(i!==-1){const o=n.slice(0,i),s=n.slice(i+1,r.length);dLt(o)&&pLt(s)&&a.set(o,s)}return a},new Map),this._internalState.size>USe&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,USe))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const t=new RF;return t._internalState=new Map(this._internalState),t}}const GI="traceparent",qI="tracestate",mLt="00",fLt="(?!ff)[\\da-f]{2}",gLt="(?![0]{32})[\\da-f]{32}",vLt="(?![0]{16})[\\da-f]{16}",bLt="[\\da-f]{2}",kLt=new RegExp(`^\\s?(${fLt})-(${gLt})-(${vLt})-(${bLt})(-.*)?\\s?$`);function yLt(e){const t=kLt.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}class xLt{inject(t,a,r){const n=kl.getSpanContext(t);if(!n||RI(t)||!hM(n))return;const i=`${mLt}-${n.traceId}-${n.spanId}-0${Number(n.traceFlags||tp.NONE).toString(16)}`;r.set(a,GI,i),n.traceState&&r.set(a,qI,n.traceState.serialize())}extract(t,a,r){const n=r.get(a,GI);if(!n)return t;const i=Array.isArray(n)?n[0]:n;if(typeof i!="string")return t;const o=yLt(i);if(!o)return t;o.isRemote=!0;const s=r.get(a,qI);if(s){const l=Array.isArray(s)?s.join(","):s;o.traceState=new RF(typeof l=="string"?l:void 0)}return kl.setSpanContext(t,o)}fields(){return[GI,qI]}}const wLt="[object Object]",SLt="[object Null]",zLt="[object Undefined]",jLt=Function.prototype,YSe=jLt.toString,OLt=YSe.call(Object),CLt=Object.getPrototypeOf,XSe=Object.prototype,eze=XSe.hasOwnProperty,Pf=Symbol?Symbol.toStringTag:void 0,tze=XSe.toString;function aze(e){if(!ALt(e)||PLt(e)!==wLt)return!1;const t=CLt(e);if(t===null)return!0;const a=eze.call(t,"constructor")&&t.constructor;return typeof a=="function"&&a instanceof a&&YSe.call(a)===OLt}function ALt(e){return e!=null&&typeof e=="object"}function PLt(e){return e==null?e===void 0?zLt:SLt:Pf&&Pf in Object(e)?MLt(e):TLt(e)}function MLt(e){const t=eze.call(e,Pf),a=e[Pf];let r=!1;try{e[Pf]=void 0,r=!0}catch{}const n=tze.call(e);return r&&(t?e[Pf]=a:delete e[Pf]),n}function TLt(e){return tze.call(e)}const ELt=20;function _Lt(...e){let t=e.shift();const a=new WeakMap;for(;e.length>0;)t=rze(t,e.shift(),0,a);return t}function WI(e){return vM(e)?e.slice():e}function rze(e,t,a=0,r){let n;if(!(a>ELt)){if(a++,bM(e)||bM(t)||ize(t))n=WI(t);else if(vM(e)){if(n=e.slice(),vM(t))for(let i=0,o=t.length;i<o;i++)n.push(WI(t[i]));else if(Kx(t)){const i=Object.keys(t);for(let o=0,s=i.length;o<s;o++){const l=i[o];n[l]=WI(t[l])}}}else if(Kx(e))if(Kx(t)){if(!RLt(e,t))return t;n=Object.assign({},e);const i=Object.keys(t);for(let o=0,s=i.length;o<s;o++){const l=i[o],c=t[l];if(bM(c))typeof c>"u"?delete n[l]:n[l]=c;else{const u=n[l],d=c;if(nze(e,l,r)||nze(t,l,r))delete n[l];else{if(Kx(u)&&Kx(d)){const p=r.get(u)||[],h=r.get(d)||[];p.push({obj:e,key:l}),h.push({obj:t,key:l}),r.set(u,p),r.set(d,h)}n[l]=rze(n[l],c,a,r)}}}}else n=t;return n}}function nze(e,t,a){const r=a.get(e[t])||[];for(let n=0,i=r.length;n<i;n++){const o=r[n];if(o.key===t&&o.obj===e)return!0}return!1}function vM(e){return Array.isArray(e)}function ize(e){return typeof e=="function"}function Kx(e){return!bM(e)&&!vM(e)&&!ize(e)&&typeof e=="object"}function bM(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function RLt(e,t){return!(!aze(e)||!aze(t))}class BLt{_promise;_resolve;_reject;constructor(){this._promise=new Promise((t,a)=>{this._resolve=t,this._reject=a})}get promise(){return this._promise}resolve(t){this._resolve(t)}reject(t){this._reject(t)}}class LLt{_callback;_that;_isCalled=!1;_deferred=new BLt;constructor(t,a){this._callback=t,this._that=a}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(a=>this._deferred.resolve(a),a=>this._deferred.reject(a))}catch(a){this._deferred.reject(a)}}return this._deferred.promise}}function NLt(){return"unknown_service"}const Vx=e=>e!==null&&typeof e=="object"&&typeof e.then=="function";class FE{_rawAttributes;_asyncAttributesPending=!1;_memoizedAttributes;static FromAttributeList(t){const a=new FE({});return a._rawAttributes=sze(t),a._asyncAttributesPending=t.filter(([r,n])=>Vx(n)).length>0,a}constructor(t){const a=t.attributes??{};this._rawAttributes=Object.entries(a).map(([r,n])=>(Vx(n)&&(this._asyncAttributesPending=!0),[r,n])),this._rawAttributes=sze(this._rawAttributes)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let t=0;t<this._rawAttributes.length;t++){const[a,r]=this._rawAttributes[t];this._rawAttributes[t]=[a,Vx(r)?await r:r]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&mr.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const t={};for(const[a,r]of this._rawAttributes){if(Vx(r)){mr.debug(`Unsettled resource attribute ${a} skipped`);continue}r!=null&&(t[a]??=r)}return this._asyncAttributesPending||(this._memoizedAttributes=t),t}getRawAttributes(){return this._rawAttributes}merge(t){return t==null?this:FE.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()])}}function oze(e){return FE.FromAttributeList(Object.entries(e))}function DLt(){return oze({[FSe]:NLt(),[II]:HI[II],[KI]:HI[KI],[VI]:HI[VI]})}function sze(e){return e.map(([t,a])=>Vx(a)?[t,a.catch(r=>{mr.debug("promise rejection for resource attribute: %s - %s",t,r)})]:[t,a])}const $Lt="exception";class ILt{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;name;status={code:$x.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(t){const a=Date.now();this._spanContext=t.spanContext,this._performanceStartTime=Bb.now(),this._performanceOffset=a-(this._performanceStartTime+GSe()),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,this.links=t.links||[],this.startTime=this._getTime(t.startTime??a),this.resource=t.resource,this.instrumentationScope=t.scope,t.attributes!=null&&this.setAttributes(t.attributes),this._spanProcessor.onStart(this,t.context)}spanContext(){return this._spanContext}setAttribute(t,a){if(a==null||this._isSpanEnded())return this;if(t.length===0)return mr.warn(`Invalid attribute key: ${t}`),this;if(!VSe(a))return mr.warn(`Invalid attribute value set for key: ${t}`),this;const{attributeCountLimit:r}=this._spanLimits;return r!==void 0&&Object.keys(this.attributes).length>=r&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(a),this)}setAttributes(t){for(const[a,r]of Object.entries(t))this.setAttribute(a,r);return this}addEvent(t,a,r){if(this._isSpanEnded())return this;const{eventCountLimit:n}=this._spanLimits;if(n===0)return mr.warn("No events allowed."),this._droppedEventsCount++,this;n!==void 0&&this.events.length>=n&&(this._droppedEventsCount===0&&mr.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),WSe(a)&&(WSe(r)||(r=a),a=void 0);const i=fM(a);return this.events.push({name:t,attributes:i,time:this._getTime(r),droppedAttributesCount:0}),this}addLink(t){return this.links.push(t),this}addLinks(t){return this.links.push(...t),this}setStatus(t){return this._isSpanEnded()?this:(this.status={...t},this.status.message!=null&&typeof t.message!="string"&&(mr.warn(`Dropping invalid status.message of type '${typeof t.message}', expected 'string'`),delete this.status.message),this)}updateName(t){return this._isSpanEnded()?this:(this.name=t,this)}end(t){if(this._isSpanEnded()){mr.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this._ended=!0,this.endTime=this._getTime(t),this._duration=rLt(this.startTime,this.endTime),this._duration[0]<0&&(mr.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&&mr.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(t){if(typeof t=="number"&&t<=Bb.now())return aLt(t+this._performanceOffset);if(typeof t=="number")return Lb(t);if(t instanceof Date)return Lb(t.getTime());if(qSe(t))return t;if(this._startTimeProvided)return Lb(Date.now());const a=Bb.now()-this._performanceStartTime;return JSe(this.startTime,Lb(a))}isRecording(){return this._ended===!1}recordException(t,a){const r={};typeof t=="string"?r[DI]=t:t&&(t.code?r[$I]=t.code.toString():t.name&&(r[$I]=t.name),t.message&&(r[DI]=t.message),t.stack&&(r[U4t]=t.stack)),r[$I]||r[DI]?this.addEvent($Lt,r,a):mr.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}}`);mr.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,t)}return this._ended}_truncateToLimitUtil(t,a){return t.length<=a?t:t.substring(0,a)}_truncateToSize(t){const a=this._attributeValueLengthLimit;return a<=0?(mr.warn(`Attribute value limit must be positive, got ${a}`),t):typeof t=="string"?this._truncateToLimitUtil(t,a):Array.isArray(t)?t.map(r=>typeof r=="string"?this._truncateToLimitUtil(r,a):r):t}}var Nb;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Nb||(Nb={}));class kM{shouldSample(){return{decision:Nb.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class Db{shouldSample(){return{decision:Nb.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class yM{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(t){this._root=t.root,this._root||(Rb(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Db),this._remoteParentSampled=t.remoteParentSampled??new Db,this._remoteParentNotSampled=t.remoteParentNotSampled??new kM,this._localParentSampled=t.localParentSampled??new Db,this._localParentNotSampled=t.localParentNotSampled??new kM}shouldSample(t,a,r,n,i,o){const s=kl.getSpanContext(t);return!s||!hM(s)?this._root.shouldSample(t,a,r,n,i,o):s.isRemote?s.traceFlags&tp.SAMPLED?this._remoteParentSampled.shouldSample(t,a,r,n,i,o):this._remoteParentNotSampled.shouldSample(t,a,r,n,i,o):s.traceFlags&tp.SAMPLED?this._localParentSampled.shouldSample(t,a,r,n,i,o):this._localParentNotSampled.shouldSample(t,a,r,n,i,o)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}class lze{_ratio;_upperBound;constructor(t=0){this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(t,a){return{decision:NSe(a)&&this._accumulate(a)<this._upperBound?Nb.RECORD_AND_SAMPLED:Nb.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 a=0;for(let r=0;r<t.length/8;r++){const n=r*8,i=parseInt(t.slice(n,n+8),16);a=(a^i)>>>0}return a}}const cze=1;function uze(){return{sampler:dze(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function dze(){const e="parentbased_always_on";switch(e){case"always_on":return new Db;case"always_off":return new kM;case"parentbased_always_on":return new yM({root:new Db});case"parentbased_always_off":return new yM({root:new kM});case"traceidratio":return new lze(pze());case"parentbased_traceidratio":return new yM({root:new lze(pze())});default:return mr.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "parentbased_always_on".`),new yM({root:new Db})}}function pze(){return mr.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${cze}.`),cze}const KLt=128,VLt=1/0;function HLt(e){const t={sampler:dze()},a=uze(),r=Object.assign({},a,t,e);return r.generalLimits=Object.assign({},a.generalLimits,e.generalLimits||{}),r.spanLimits=Object.assign({},a.spanLimits,e.spanLimits||{}),r}function FLt(e){const t=Object.assign({},e.spanLimits);return t.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??void 0??void 0??KLt,t.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??void 0??void 0??VLt,Object.assign({},e,{spanLimits:t})}class GLt{_exporter;_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(t,a){this._exporter=t,this._maxExportBatchSize=typeof a?.maxExportBatchSize=="number"?a.maxExportBatchSize:512,this._maxQueueSize=typeof a?.maxQueueSize=="number"?a.maxQueueSize:2048,this._scheduledDelayMillis=typeof a?.scheduledDelayMillis=="number"?a.scheduledDelayMillis:5e3,this._exportTimeoutMillis=typeof a?.exportTimeoutMillis=="number"?a.exportTimeoutMillis:3e4,this._shutdownOnce=new LLt(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(mr.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,a){}onEnd(t){this._shutdownOnce.isCalled||(t.spanContext().traceFlags&tp.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&&mr.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(mr.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(t),this._maybeStartTimer()}_flushAll(){return new Promise((t,a)=>{const r=[],n=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let i=0,o=n;i<o;i++)r.push(this._flushOneBatch());Promise.all(r).then(()=>{t()}).catch(a)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((t,a)=>{const r=setTimeout(()=>{a(new Error("Timeout"))},this._exportTimeoutMillis);Vc.with(_4t(Vc.active()),()=>{let n;this._finishedSpans.length<=this._maxExportBatchSize?(n=this._finishedSpans,this._finishedSpans=[]):n=this._finishedSpans.splice(0,this._maxExportBatchSize);const i=()=>this._exporter.export(n,s=>{clearTimeout(r),s.code===Uu.SUCCESS?t():a(s.error??new Error("BatchSpanProcessor: span export failed"))});let o=null;for(let s=0,l=n.length;s<l;s++){const c=n[s];c.resource.asyncAttributesPending&&c.resource.waitForAsyncAttributes&&(o??=[],o.push(c.resource.waitForAsyncAttributes()))}o===null?i():Promise.all(o).then(i,s=>{Rb(s),a(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(a=>{this._isExporting=!1,Rb(a)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return t();this._timer===void 0&&(this._timer=setTimeout(()=>t(),this._scheduledDelayMillis))}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}}class qLt extends GLt{_visibilityChangeListener;_pageHideListener;constructor(t,a){super(t,a),this.onInit(a)}onInit(t){t?.disableAutoFlushOnDocumentHide!==!0&&typeof document<"u"&&(this._visibilityChangeListener=()=>{document.visibilityState==="hidden"&&this.forceFlush().catch(a=>{Rb(a)})},this._pageHideListener=()=>{this.forceFlush().catch(a=>{Rb(a)})},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 WLt=8,JLt=16;class ULt{generateTraceId=hze(JLt);generateSpanId=hze(WLt)}const xM=Array(32);function hze(e){return function(){for(let t=0;t<e*2;t++)xM[t]=Math.floor(Math.random()*16)+48,xM[t]>=58&&(xM[t]+=39);return String.fromCharCode.apply(null,xM.slice(0,e*2))}}class ZLt{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;constructor(t,a,r,n){const i=HLt(a);this._sampler=i.sampler,this._generalLimits=i.generalLimits,this._spanLimits=i.spanLimits,this._idGenerator=a.idGenerator||new ULt,this._resource=r,this._spanProcessor=n,this.instrumentationScope=t}startSpan(t,a={},r=Vc.active()){a.root&&(r=kl.deleteSpan(r));const n=kl.getSpan(r);if(RI(r))return mr.debug("Instrumentation suppressed, returning Noop Span"),kl.wrapSpanContext(BSe);const i=n?.spanContext(),o=this._idGenerator.generateSpanId();let s,l,c;!i||!kl.isSpanContextValid(i)?l=this._idGenerator.generateTraceId():(l=i.traceId,c=i.traceState,s=i);const u=a.kind??PI.INTERNAL,d=(a.links??[]).map(f=>({context:f.context,attributes:fM(f.attributes)})),p=fM(a.attributes),h=this._sampler.shouldSample(r,l,t,u,p,d);c=h.traceState??c;const m=h.decision===mM.RECORD_AND_SAMPLED?tp.SAMPLED:tp.NONE,v={traceId:l,spanId:o,traceFlags:m,traceState:c};if(h.decision===mM.NOT_RECORD)return mr.debug("Recording is off, propagating context in a non-recording span"),kl.wrapSpanContext(v);const g=fM(Object.assign(p,h.attributes));return new ILt({resource:this._resource,scope:this.instrumentationScope,context:r,spanContext:v,name:t,kind:u,links:d,parentSpanContext:s,attributes:g,startTime:a.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits})}startActiveSpan(t,a,r,n){let i,o,s;if(arguments.length<2)return;arguments.length===2?s=a:arguments.length===3?(i=a,s=r):(i=a,o=r,s=n);const l=o??Vc.active(),c=this.startSpan(t,i,l),u=kl.setSpan(l,c);return Vc.with(u,s,void 0,c)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}class QLt{_spanProcessors;constructor(t){this._spanProcessors=t}forceFlush(){const t=[];for(const a of this._spanProcessors)t.push(a.forceFlush());return new Promise(a=>{Promise.all(t).then(()=>{a()}).catch(r=>{Rb(r||new Error("MultiSpanProcessor: forceFlush failed")),a()})})}onStart(t,a){for(const r of this._spanProcessors)r.onStart(t,a)}onEnd(t){for(const a of this._spanProcessors)a.onEnd(t)}shutdown(){const t=[];for(const a of this._spanProcessors)t.push(a.shutdown());return new Promise((a,r)=>{Promise.all(t).then(()=>{a()},r)})}}var Mf;(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"})(Mf||(Mf={}));class YLt{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(t={}){const a=_Lt({},uze(),FLt(t));this._resource=a.resource??DLt(),this._config=Object.assign({},a,{resource:this._resource});const r=[];t.spanProcessors?.length&&r.push(...t.spanProcessors),this._activeSpanProcessor=new QLt(r)}getTracer(t,a,r){const n=`${t}@${a||""}:${r?.schemaUrl||""}`;return this._tracers.has(n)||this._tracers.set(n,new ZLt({name:t,version:a,schemaUrl:r?.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(n)}forceFlush(){const t=this._config.forceFlushTimeoutMillis,a=this._activeSpanProcessor._spanProcessors.map(r=>new Promise(n=>{let i;const o=setTimeout(()=>{n(new Error(`Span processor did not completed within timeout period of ${t} ms`)),i=Mf.timeout},t);r.forceFlush().then(()=>{clearTimeout(o),i!==Mf.timeout&&(i=Mf.resolved,n(i))}).catch(s=>{clearTimeout(o),i=Mf.error,n(s)})}));return new Promise((r,n)=>{Promise.all(a).then(i=>{const o=i.filter(s=>s!==Mf.resolved);o.length>0?n(o):r()}).catch(i=>n([i]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}class XLt{_enabled=!1;_currentContext=_b;_bindFunction(t=_b,a){const r=this,n=function(...i){return r.with(t,()=>a.apply(this,i))};return Object.defineProperty(n,"length",{enumerable:!1,configurable:!0,writable:!1,value:a.length}),n}active(){return this._currentContext}bind(t,a){return t===void 0&&(t=this.active()),typeof a=="function"?this._bindFunction(t,a):a}disable(){return this._currentContext=_b,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=_b,this)}with(t,a,r,...n){const i=this._currentContext;this._currentContext=t||_b;try{return a.call(r,...n)}finally{this._currentContext=i}}}function e6t(e){if(e!==null){if(e===void 0){const t=new XLt;t.enable(),Vc.setGlobalContextManager(t);return}e.enable(),Vc.setGlobalContextManager(e)}}function t6t(e){if(e!==null){if(e===void 0){Ix.setGlobalPropagator(new iLt({propagators:[new xLt,new K4t]}));return}Ix.setGlobalPropagator(e)}}class a6t extends YLt{constructor(t={}){super(t)}register(t={}){kl.setGlobalTracerProvider(this),t6t(t.propagator),e6t(t.contextManager)}}class r6t{_delegate;constructor(t){this._delegate=t}export(t,a){this._delegate.export(t,a)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}class mze extends Error{code;name="OTLPExporterError";data;constructor(t,a,r){super(t),this.data=r,this.code=a}}function n6t(e){if(Number.isFinite(e)&&e>0)return e;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${e}')`)}function i6t(e){if(e!=null)return()=>e}function o6t(e,t,a){return{timeoutMillis:n6t(e.timeoutMillis??t.timeoutMillis??a.timeoutMillis),concurrencyLimit:e.concurrencyLimit??t.concurrencyLimit??a.concurrencyLimit,compression:e.compression??t.compression??a.compression}}function s6t(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class l6t{_concurrencyLimit;_sendingPromises=[];constructor(t){this._concurrencyLimit=t}pushPromise(t){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(t);const a=()=>{const r=this._sendingPromises.indexOf(t);this._sendingPromises.splice(r,1)};t.then(a,a)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}function c6t(e){return new l6t(e.concurrencyLimit)}function u6t(e){return Object.prototype.hasOwnProperty.call(e,"partialSuccess")}function d6t(){return{handleResponse(e){e==null||!u6t(e)||e.partialSuccess==null||Object.keys(e.partialSuccess).length===0||mr.warn("Received Partial Success response:",JSON.stringify(e.partialSuccess))}}}class p6t{_transport;_serializer;_responseHandler;_promiseQueue;_timeout;_diagLogger;constructor(t,a,r,n,i){this._transport=t,this._serializer=a,this._responseHandler=r,this._promiseQueue=n,this._timeout=i,this._diagLogger=mr.createComponentLogger({namespace:"OTLPExportDelegate"})}export(t,a){if(this._diagLogger.debug("items to be sent",t),this._promiseQueue.hasReachedLimit()){a({code:Uu.FAILED,error:new Error("Concurrent export limit reached")});return}const r=this._serializer.serializeRequest(t);if(r==null){a({code:Uu.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(r,this._timeout).then(n=>{if(n.status==="success"){if(n.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(n.data))}catch(i){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",i,n.data)}a({code:Uu.SUCCESS});return}else if(n.status==="failure"&&n.error){a({code:Uu.FAILED,error:n.error});return}else n.status==="retryable"?a({code:Uu.FAILED,error:new mze("Export failed with retryable status")}):a({code:Uu.FAILED,error:new mze("Export failed with unknown error")})},n=>a({code:Uu.FAILED,error:n})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function h6t(e,t){return new p6t(e.transport,e.serializer,d6t(),e.promiseHandler,t.timeout)}function fze(e,t,a){return h6t({transport:a,serializer:t,promiseHandler:c6t(e)},{timeout:e.timeoutMillis})}function gze(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function vze(e){const t=new Uint8Array(e.length/2);let a=0;for(let r=0;r<e.length;r+=2){const n=gze(e.charCodeAt(r)),i=gze(e.charCodeAt(r+1));t[a++]=n<<4|i}return t}function bze(e){const t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}function m6t(e){const t=Number(BigInt.asUintN(32,e)),a=Number(BigInt.asUintN(32,e>>BigInt(32)));return{low:t,high:a}}function f6t(e){const t=bze(e);return m6t(t)}function g6t(e){return bze(e).toString()}const v6t=typeof BigInt<"u"?g6t:nLt;function kze(e){return e}function b6t(e){if(e!==void 0)return vze(e)}const k6t={encodeHrTime:f6t,encodeSpanContext:vze,encodeOptionalSpanContext:b6t};function y6t(e){return e===void 0?k6t:{encodeHrTime:v6t,encodeSpanContext:kze,encodeOptionalSpanContext:kze}}function x6t(e){return{attributes:wM(e.attributes),droppedAttributesCount:0}}function w6t(e){return{name:e.name,version:e.version}}function wM(e){return Object.keys(e).map(t=>yze(t,e[t]))}function yze(e,t){return{key:e,value:xze(t)}}function xze(e){const t=typeof e;return t==="string"?{stringValue:e}:t==="number"?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:t==="boolean"?{boolValue:e}:e instanceof Uint8Array?{bytesValue:e}:Array.isArray(e)?{arrayValue:{values:e.map(xze)}}:t==="object"&&e!=null?{kvlistValue:{values:Object.entries(e).map(([a,r])=>yze(a,r))}}:{}}function S6t(e,t){const a=e.spanContext(),r=e.status,n=e.parentSpanContext?.spanId?t.encodeSpanContext(e.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(a.traceId),spanId:t.encodeSpanContext(a.spanId),parentSpanId:n,traceState:a.traceState?.serialize(),name:e.name,kind:e.kind==null?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:wM(e.attributes),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(i=>j6t(i,t)),droppedEventsCount:e.droppedEventsCount,status:{code:r.code,message:r.message},links:e.links.map(i=>z6t(i,t)),droppedLinksCount:e.droppedLinksCount}}function z6t(e,t){return{attributes:e.attributes?wM(e.attributes):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:e.context.traceState?.serialize(),droppedAttributesCount:e.droppedAttributesCount||0}}function j6t(e,t){return{attributes:e.attributes?wM(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}function O6t(e,t){const a=y6t(t);return{resourceSpans:A6t(e,a)}}function C6t(e){const t=new Map;for(const a of e){let r=t.get(a.resource);r||(r=new Map,t.set(a.resource,r));const n=`${a.instrumentationScope.name}@${a.instrumentationScope.version||""}:${a.instrumentationScope.schemaUrl||""}`;let i=r.get(n);i||(i=[],r.set(n,i)),i.push(a)}return t}function A6t(e,t){const a=C6t(e),r=[],n=a.entries();let i=n.next();for(;!i.done;){const[o,s]=i.value,l=[],c=s.values();let u=c.next();for(;!u.done;){const p=u.value;if(p.length>0){const h=p.map(m=>S6t(m,t));l.push({scope:w6t(p[0].instrumentationScope),spans:h,schemaUrl:p[0].instrumentationScope.schemaUrl})}u=c.next()}const d={resource:x6t(o),scopeSpans:l,schemaUrl:void 0};r.push(d),i=n.next()}return r}const P6t={serializeRequest:e=>{const t=O6t(e,{});return new TextEncoder().encode(JSON.stringify(t))},deserializeResponse:e=>{if(e.length===0)return{};const t=new TextDecoder;return JSON.parse(t.decode(e))}},M6t=5,T6t=1e3,E6t=5e3,_6t=1.5,wze=.2;function R6t(){return Math.random()*(2*wze)-wze}class B6t{_transport;constructor(t){this._transport=t}retry(t,a,r){return new Promise((n,i)=>{setTimeout(()=>{this._transport.send(t,a).then(n,i)},r)})}async send(t,a){const r=Date.now()+a;let n=await this._transport.send(t,a),i=M6t,o=T6t;for(;n.status==="retryable"&&i>0;){i--;const s=Math.max(Math.min(o,E6t)+R6t(),0);o=o*_6t;const l=n.retryInMillis??s,c=r-Date.now();if(l>c)return n;n=await this.retry(t,c,l)}return n}shutdown(){return this._transport.shutdown()}}function Sze(e){return new B6t(e.transport)}function L6t(e){return[429,502,503,504].includes(e)}function N6t(e){if(e==null)return;const t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?t*1e3:-1;const a=new Date(e).getTime()-Date.now();return a>=0?a:0}class D6t{_parameters;constructor(t){this._parameters=t}send(t,a){return new Promise(r=>{const n=new XMLHttpRequest;n.timeout=a,n.open("POST",this._parameters.url);const i=this._parameters.headers();Object.entries(i).forEach(([o,s])=>{n.setRequestHeader(o,s)}),n.ontimeout=o=>{r({status:"failure",error:new Error("XHR request timed out")})},n.onreadystatechange=()=>{n.status>=200&&n.status<=299?(mr.debug("XHR success"),r({status:"success"})):n.status&&L6t(n.status)?r({status:"retryable",retryInMillis:N6t(n.getResponseHeader("Retry-After"))}):n.status!==0&&r({status:"failure",error:new Error("XHR request failed with non-retryable status")})},n.onabort=()=>{r({status:"failure",error:new Error("XHR request aborted")})},n.onerror=()=>{r({status:"failure",error:new Error("XHR request errored")})},n.send(t)})}shutdown(){}}function $6t(e){return new D6t(e)}class I6t{_params;constructor(t){this._params=t}send(t){return new Promise(a=>{navigator.sendBeacon(this._params.url,new Blob([t],{type:this._params.blobType}))?(mr.debug("SendBeacon success"),a({status:"success"})):a({status:"failure",error:new Error("SendBeacon failed")})})}shutdown(){}}function K6t(e){return new I6t(e)}function V6t(e,t){return fze(e,t,Sze({transport:$6t(e)}))}function H6t(e,t){return fze(e,t,Sze({transport:K6t({url:e.url,blobType:e.headers()["Content-Type"]})}))}function F6t(e){return()=>{const t={};return Object.entries(e?.()??{}).forEach(([a,r])=>{typeof r<"u"?t[a]=String(r):mr.warn(`Header "${a}" has invalid value (${r}) and will be ignored`)}),t}}function G6t(e,t,a){const r={...a()},n={};return()=>(t!=null&&Object.assign(n,t()),e!=null&&Object.assign(n,e()),Object.assign(n,r))}function q6t(e){if(e!=null)try{return new URL(e),e}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${e}'`)}}function W6t(e,t,a){return{...o6t(e,t,a),headers:G6t(F6t(e.headers),t.headers,a.headers),url:q6t(e.url)??t.url??a.url,agentOptions:e.agentOptions??t.agentOptions??a.agentOptions}}function J6t(e,t){return{...s6t(),headers:()=>e,url:"http://localhost:4318/"+t,agentOptions:{keepAlive:!0}}}function U6t(e,t,a){return W6t({url:e.url,timeoutMillis:e.timeoutMillis,headers:i6t(e.headers),concurrencyLimit:e.concurrencyLimit},{},J6t(a,t))}function Z6t(e,t,a,r){const n=!!e.headers||typeof navigator.sendBeacon!="function",i=U6t(e,a,r);return n?V6t(i,t):H6t(i,t)}class Q6t extends r6t{constructor(t={}){super(Z6t(t,P6t,"v1/traces",{"Content-Type":"application/json"}))}}class zze{emit(t){}}const Y6t=new zze;class X6t{getLogger(t,a,r){return new zze}}const jze=new X6t;class e8t{constructor(t,a,r,n){this._provider=t,this.name=a,this.version=r,this.options=n}emit(t){this._getLogger().emit(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):Y6t}}class Oze{getLogger(t,a,r){var n;return(n=this.getDelegateLogger(t,a,r))!==null&&n!==void 0?n:new e8t(this,t,a,r)}getDelegate(){var t;return(t=this._delegate)!==null&&t!==void 0?t:jze}setDelegate(t){this._delegate=t}getDelegateLogger(t,a,r){var n;return(n=this._delegate)===null||n===void 0?void 0:n.getLogger(t,a,r)}}const t8t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof globalThis=="object"?globalThis:{},SM=Symbol.for("io.opentelemetry.js.api.logs"),Hx=t8t;function a8t(e,t,a){return r=>r===e?t:a}const Cze=1;class BF{constructor(){this._proxyLoggerProvider=new Oze}static getInstance(){return this._instance||(this._instance=new BF),this._instance}setGlobalLoggerProvider(t){return Hx[SM]?this.getLoggerProvider():(Hx[SM]=a8t(Cze,t,jze),this._proxyLoggerProvider.setDelegate(t),t)}getLoggerProvider(){var t,a;return(a=(t=Hx[SM])===null||t===void 0?void 0:t.call(Hx,Cze))!==null&&a!==void 0?a:this._proxyLoggerProvider}getLogger(t,a,r){return this.getLoggerProvider().getLogger(t,a,r)}disable(){delete Hx[SM],this._proxyLoggerProvider=new Oze}}const r8t=BF.getInstance();function n8t(e,t,a,r){for(let n=0,i=e.length;n<i;n++){const o=e[n];t&&o.setTracerProvider(t),a&&o.setMeterProvider(a),r&&o.setLoggerProvider&&o.setLoggerProvider(r),o.getConfig().enabled||o.enable()}}function i8t(e){e.forEach(t=>t.disable())}function o8t(e){const t=e.tracerProvider||kl.getTracerProvider(),a=e.meterProvider||j4t.getMeterProvider(),r=e.loggerProvider||r8t.getLoggerProvider(),n=e.instrumentations?.flat()??[];return n8t(n,t,a,r),()=>{i8t(n)}}class Aze{span=void 0;constructor(t){this.span=t}error(t){this.span&&(this.span.setStatus($x.ERROR,t.message),this.span.recordException(t),this.span.end())}setAttribute(t,a){this.span&&this.span.setAttribute(t,a)}end(){this.span&&(this.span.setStatus($x.OK),this.span.end())}}class s8t{config=null;tracer=null;tracerProvider=null;initialized=!1;initTracer(t){throw new Error("initTracer must be implemented by the environment-specific client")}init(t){this.config=t,this.initTracer(t)}send(t){try{if(!this.tracer||!this.config)return;const a=t.time?new Date(t.time):new Date;this.tracer.startSpan(`event.${t.type}`,{attributes:this.processAttributes(t,a),startTime:a}).end(a)}catch(a){this.config?.isProd||console.error("Event reporting failed:",a)}}processAttributes(t,a){const r={"cloudevents.event_id":uM(),"cloudevents.event_type":t.type,"cloudevents.event_source":t.source,"cloudevents.event_spec_version":t.specversion,"cloudevents.event_data_content_type":t.datacontenttype||"application/json; charset=utf-8","cloudevents.event_time":a.toISOString(),"cloudevents.event_subject":t.subject??"","cloudevents.page.uri":location.href,"cloudevents.event_version":this.config?.version,"cloudevents.event_origin":this.config?.serviceName,"cloudevents.event_source_details.id":t.sourceDetails?.id??"anonymous","cloudevents.event_source_details.object":t.sourceDetails?.object??"anonymous","cloudevents.event_source_details.uri":t.sourceDetails?.uri};if(t.data&&typeof t.data=="object"&&Object.entries(t.data).forEach(([n,i])=>{const o=n.replace(/([A-Z])/g,"_$1").toLowerCase();i!==void 0&&(r[`cloudevents.event_data.${o}`]=i)}),"subjects"in t&&Array.isArray(t.subjects)){const n=t.subjects.reduce((i,o)=>{if(!o||typeof o!="object")return i;const s=o.object;if(!s||typeof s!="string")return i;const l=i.notUpdated.find(({object:c})=>c===s);return l?(i.updated=[l,o],i.notUpdated=i.notUpdated.filter(({object:c})=>c!==s)):i.updated.some(({object:c})=>c===s)||i.notUpdated.push(o),i},{updated:[],notUpdated:[]});n.updated.forEach((i,o)=>{const s=o===0?"after.":"before.",l=`${i.object}.`;Object.entries(i).forEach(([c,u])=>{u!==void 0&&(r[`cloudevents.subjects.${s}${l}${c}`]=u)})}),n.notUpdated.forEach(i=>{const o=`${i.object}.`;Object.entries(i).forEach(([s,l])=>{l!==void 0&&(r[`cloudevents.subjects.${o}${s}`]=l)})})}return Object.entries(t).forEach(([n,i])=>{["id","source","type","specversion","time","datacontenttype","data","subject","sourceDetails","analyticsMetadata","context"].includes(n)||i!==void 0&&(i instanceof Object?Object.entries(i).forEach(([o,s])=>{s!==void 0&&(r[`cloudevents.${n}.${o}`]=s)}):r[`cloudevents.${n}`]=i)}),r}startSpan(t,a){try{if(!this.tracer)return;let r;const n=t.time?new Date(t.time):new Date,i=this.tracer.startSpan(`event.${t.type}`,{attributes:this.processAttributes(t,n),root:!a},a);return a||(r=kl.setSpan(Vc.active(),i)),{end:()=>i.end(),setAttribute:(o,s)=>{i.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(o)}`,s)},setStatus:(o,s)=>i.setStatus({code:o,message:s}),parentCtx:r}}catch(r){this.config?.isProd||console.error("Event reporting failed:",r)}}startStepSpan(t){try{if(!this.tracer)return;const a=t.time?new Date(t.time):new Date,r=this.tracer.startSpan(`event.${t.type}`,{attributes:this.processAttributes(t,a),root:!1},Vc.active());return{end:()=>r.end(),setAttribute:(n,i)=>{r.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(n)}`,i)},setStatus:(n,i)=>r.setStatus({code:n,message:i}),recordException:n=>r.recordException(n)}}catch(a){this.config?.isProd||console.error("Event reporting failed:",a)}}startRootSpan(t){try{if(!this.tracer)return;const a=t.time?new Date(t.time):new Date,r=this.tracer.startSpan(`event.${t.type}`,{attributes:this.processAttributes(t,a)},Vc.active()),n=kl.setSpan(Vc.active(),r);return{end:()=>r.end(),setAttribute:(i,o)=>{r.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(i)}`,o)},setStatus:(i,o)=>r.setStatus({code:i,message:o}),recordException:i=>r.recordException(i),context:n}}catch(a){this.config?.isProd||console.error("Event reporting failed:",a)}}startTrace(t){const a=this.startStepSpan(t);if(a)return new Aze(a)}startRootTrace(t){const a=this.startRootSpan(t);if(a)return{traceApi:new Aze(a),context:a.context}}forceFlush(){this.tracerProvider?.forceFlush()}getKeySnakeValue=t=>t.replace(/([A-Z])/g,"_$1").toLowerCase()}class l8t extends s8t{tracerProvider=null;tracer=null;initialized=!1;constructor(){super()}initTracer(t){if(!t.collectorUrl&&!t.collectorTraceUrl)return;const a=`ses_${uM()}`,r=oze({[FSe]:t.serviceName,[Z4t]:t.serviceVersion,session_id:a}),n=t.collectorTraceUrl||`${t.collectorUrl}/v1/traces`;this.tracerProvider=new a6t({resource:r,spanProcessors:[new qLt(new Q6t({url:n,headers:{}}))]}),this.tracer=this.tracerProvider.getTracer(t.tracerName),this.tracerProvider.register(),o8t({instrumentations:t.instrumentations??[]}),this.initialized=!0}}class c8t{config=null;initialized=!1;useCloudEventData;otelClient;traceApi;constructor(){this.useCloudEventData=()=>({organization:{id:"",slug:""},project:{id:"",slug:""},productType:"",sourceDetails:{user:"Anonymous",object:"user",uri:""},request:{source:""}}),this.otelClient=new l8t,this.traceApi={startStep:(t,a)=>{const r=this.constructCloudEvent(t,a);return this.otelClient.startTrace(r)},startRoot:(t,a)=>{const r=this.constructCloudEvent(t,a);return this.otelClient.startRootTrace(r)}}}updateCloudEventData=t=>{this.config?.disabled||(this.useCloudEventData=t)};send(t,a){try{if(!this.config?.otel.isProd)return;const r=this.constructCloudEvent(t,a);this.sendToOtelService(r)}catch(r){this.config?.otel.isProd||console.error("Event reporting failed:",r)}}init(t){t.disabled||this.initialized||(this.config=t,this.initialized=!0,this.otelClient.init({serviceVersion:t.otel.serviceVersion,version:t.otel.version,isProd:t.otel.isProd,collectorUrl:t.otel.collectorUrl,collectorTraceUrl:t.otel.collectorTraceUrl,serviceName:t.otel.serviceName,tracerName:t.otel.tracerName,instrumentations:[...t.otel.instrumentations||[]]}))}startSpan(t,a,r){if(this.config?.disabled)return;const n=this.constructCloudEvent(t,a);return this.otelClient.startSpan(n,r)}startStepSpan(t,a){const r=this.constructCloudEvent(t,a);return this.otelClient.startStepSpan(r)}constructCloudEvent(t,a){const r=this.useCloudEventData();return{id:`evt_${uM()}`,type:t,source:r.request.source||"",specversion:"1.0",datacontenttype:"application/json",time:new Date().toISOString(),data:a,origin:"ui",sourceDetails:{id:r.sourceDetails.user||`usr_${uM()}`,object:r.sourceDetails.object||"user",uri:r.sourceDetails.uri||""},organization:r.organization,project:r.project,productType:r.productType}}sendToOtelService(t){this.config?.otel.isProd||console.log("CloudEvent to be sent to OTEL service:",t),this.otelClient.send(t)}forceFlush(){this.config?.disabled||this.otelClient.forceFlush()}sendTabChangeMessage(t){this.send("tab.change",t)}sendButtonClickMessage(t){this.send("button.click",t)}sendChangeMessage(t){this.send("change",t)}sendContentCopyMessage(t){this.send("content.copy",t)}sendUrlClickMessage(t){this.send("url.click",t)}sendRequestSendMessage(t){this.send("request.send",t)}sendTokenGenerateMessage(t){this.send("token.generate",t)}sendAppLifecycleMessage(t){this.send("app.lifecycle",t)}sendEnvironmentManagementMessage(t){this.send("environment.management",t)}sendServerManagementMessage(t){this.send("server.management",t)}sendInputManagementMessage(t){this.send("input.management",t)}sendNodeManagementMessage(t){this.send("node.management",t)}sendHistoryManagementMessage(t){this.send("history.management",t)}sendCredentialManagementMessage(t){this.send("credential.management",t)}sendPanelToggleMessage(t){this.send("panel.toggle",t)}sendWorkflowRunClickMessage(t){this.send("workflow.run.click",t)}sendWorkflowRunResultMessage(t){this.send("workflow.run.result",t)}}function u8t(){return{theme:"light",disableCollectionsTab:!1,oAuth2RedirectURI:null,corsProxyUrl:void 0,mockServer:void 0,certificates:[],isApiBased:!1,generatedEnvironments:[],generatedInputs:[]}}const d8t=u8t(),p8t=K.createContext(d8t);function Zu(){const e=K.useContext(p8t);return Tme(e)}function h8t(e,t){const{apps:{apiId:a}}=Ya(),{corsProxyUrl:r,disableCollectionsTab:n,mockServer:i,oAuth2RedirectURI:o,certificates:s,storageKey:l,isApiBased:c}=Zu();r.set(e?.corsProxyUrl??fSt),i.set(e?.mockServer),a.set(e?.apiId),o.set(e?.oAuth2RedirectURI),n.set(!!e?.disableCollectionsTab),l.set(e?.storageKey),c.set(!!t),K.useEffect(()=>{s.set(e?.certificates||[])},[e?.certificates])}const Pze=K.createContext({});function JI(){return K.useContext(Pze)||{}}const m8t="0.17.0-next.8",f8t={version:m8t};class g8t{client;_isInitialized=!1;constructor(){this.client=new c8t}get isInitialized(){return this._isInitialized}init(t){if(this.isInitialized)return;const a={serviceName:"replay",serviceVersion:f8t.version,version:"1.0.0",tracerName:t?.tracerName||"desktop",collectorUrl:t?.collectorUrl||"",isProd:!0};this.client.init({otel:{...a,...t}}),this._isInitialized=!0}sendEvent(t,a){if(!this.isInitialized){console.warn("Telemetry client not initialized. Call init() first.");return}try{this.client.send(t,a)}catch(r){console.error("Failed to send telemetry event:",r)}}}const UI=new g8t;function Pa(){const{telemetry:e}=JI();return UI.isInitialized||UI.init({tracerName:e?.tracerName,collectorUrl:e?.collectorUrl}),{sendEvent:(t,a)=>{UI.sendEvent(t,a)}}}const is=800;var v8t=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function b8t(e){var t=e.defaultInputValue,a=t===void 0?"":t,r=e.defaultMenuIsOpen,n=r===void 0?!1:r,i=e.defaultValue,o=i===void 0?null:i,s=e.inputValue,l=e.menuIsOpen,c=e.onChange,u=e.onInputChange,d=e.onMenuClose,p=e.onMenuOpen,h=e.value,m=Ic(e,v8t),v=K.useState(s!==void 0?s:a),g=da(v,2),f=g[0],k=g[1],x=K.useState(l!==void 0?l:n),z=da(x,2),w=z[0],j=z[1],O=K.useState(h!==void 0?h:o),M=da(O,2),T=M[0],B=M[1],H=K.useCallback(function(ie,he){typeof c=="function"&&c(ie,he),B(ie)},[c]),N=K.useCallback(function(ie,he){var G;typeof u=="function"&&(G=u(ie,he)),k(G!==void 0?G:ie)},[u]),J=K.useCallback(function(){typeof p=="function"&&p(),j(!0)},[p]),I=K.useCallback(function(){typeof d=="function"&&d(),j(!1)},[d]),X=s!==void 0?s:f,re=l!==void 0?l:w,le=h!==void 0?h:T;return pt(pt({},m),{},{inputValue:X,menuIsOpen:re,onChange:H,onInputChange:N,onMenuClose:I,onMenuOpen:J,value:le})}function k8t(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function y8t(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var x8t=(function(){function e(a){var r=this;this._insertTag=function(n){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(n,i),r.tags.push(n)},this.isSpeedy=a.speedy===void 0?!0:a.speedy,this.tags=[],this.ctr=0,this.nonce=a.nonce,this.key=a.key,this.container=a.container,this.prepend=a.prepend,this.insertionPoint=a.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(a){a.forEach(this._insertTag)},t.insert=function(a){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(y8t(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var n=k8t(r);try{n.insertRule(a,n.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(a));this.ctr++},t.flush=function(){this.tags.forEach(function(a){return a.parentNode&&a.parentNode.removeChild(a)}),this.tags=[],this.ctr=0},e})(),Mo="-ms-",zM="-moz-",fr="-webkit-",Mze="comm",ZI="rule",QI="decl",w8t="@import",Tze="@keyframes",S8t=Math.abs,jM=String.fromCharCode,z8t=Object.assign;function j8t(e,t){return Xi(e,0)^45?(((t<<2^Xi(e,0))<<2^Xi(e,1))<<2^Xi(e,2))<<2^Xi(e,3):0}function Eze(e){return e.trim()}function O8t(e,t){return(e=t.exec(e))?e[0]:e}function xr(e,t,a){return e.replace(t,a)}function YI(e,t){return e.indexOf(t)}function Xi(e,t){return e.charCodeAt(t)|0}function Fx(e,t,a){return e.slice(t,a)}function Qu(e){return e.length}function XI(e){return e.length}function OM(e,t){return t.push(e),e}function C8t(e,t){return e.map(t).join("")}var CM=1,$b=1,_ze=0,Bs=0,ci=0,Ib="";function AM(e,t,a,r,n,i,o){return{value:e,root:t,parent:a,type:r,props:n,children:i,line:CM,column:$b,length:o,return:""}}function Gx(e,t){return z8t(AM("",null,null,"",null,null,0),e,{length:-e.length},t)}function A8t(){return ci}function P8t(){return ci=Bs>0?Xi(Ib,--Bs):0,$b--,ci===10&&($b=1,CM--),ci}function yl(){return ci=Bs<_ze?Xi(Ib,Bs++):0,$b++,ci===10&&($b=1,CM++),ci}function Yu(){return Xi(Ib,Bs)}function PM(){return Bs}function qx(e,t){return Fx(Ib,e,t)}function Wx(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Rze(e){return CM=$b=1,_ze=Qu(Ib=e),Bs=0,[]}function Bze(e){return Ib="",e}function MM(e){return Eze(qx(Bs-1,eK(e===91?e+2:e===40?e+1:e)))}function M8t(e){for(;(ci=Yu())&&ci<33;)yl();return Wx(e)>2||Wx(ci)>3?"":" "}function T8t(e,t){for(;--t&&yl()&&!(ci<48||ci>102||ci>57&&ci<65||ci>70&&ci<97););return qx(e,PM()+(t<6&&Yu()==32&&yl()==32))}function eK(e){for(;yl();)switch(ci){case e:return Bs;case 34:case 39:e!==34&&e!==39&&eK(ci);break;case 40:e===41&&eK(e);break;case 92:yl();break}return Bs}function E8t(e,t){for(;yl()&&e+ci!==57&&!(e+ci===84&&Yu()===47););return"/*"+qx(t,Bs-1)+"*"+jM(e===47?e:yl())}function _8t(e){for(;!Wx(Yu());)yl();return qx(e,Bs)}function R8t(e){return Bze(TM("",null,null,null,[""],e=Rze(e),0,[0],e))}function TM(e,t,a,r,n,i,o,s,l){for(var c=0,u=0,d=o,p=0,h=0,m=0,v=1,g=1,f=1,k=0,x="",z=n,w=i,j=r,O=x;g;)switch(m=k,k=yl()){case 40:if(m!=108&&Xi(O,d-1)==58){YI(O+=xr(MM(k),"&","&\f"),"&\f")!=-1&&(f=-1);break}case 34:case 39:case 91:O+=MM(k);break;case 9:case 10:case 13:case 32:O+=M8t(m);break;case 92:O+=T8t(PM()-1,7);continue;case 47:switch(Yu()){case 42:case 47:OM(B8t(E8t(yl(),PM()),t,a),l);break;default:O+="/"}break;case 123*v:s[c++]=Qu(O)*f;case 125*v:case 59:case 0:switch(k){case 0:case 125:g=0;case 59+u:h>0&&Qu(O)-d&&OM(h>32?Nze(O+";",r,a,d-1):Nze(xr(O," ","")+";",r,a,d-2),l);break;case 59:O+=";";default:if(OM(j=Lze(O,t,a,c,u,n,s,x,z=[],w=[],d),i),k===123)if(u===0)TM(O,t,j,j,z,i,d,s,w);else switch(p===99&&Xi(O,3)===110?100:p){case 100:case 109:case 115:TM(e,j,j,r&&OM(Lze(e,j,j,0,0,n,s,x,n,z=[],d),w),n,w,d,s,r?z:w);break;default:TM(O,j,j,j,[""],w,0,s,w)}}c=u=h=0,v=f=1,x=O="",d=o;break;case 58:d=1+Qu(O),h=m;default:if(v<1){if(k==123)--v;else if(k==125&&v++==0&&P8t()==125)continue}switch(O+=jM(k),k*v){case 38:f=u>0?1:(O+="\f",-1);break;case 44:s[c++]=(Qu(O)-1)*f,f=1;break;case 64:Yu()===45&&(O+=MM(yl())),p=Yu(),u=d=Qu(x=O+=_8t(PM())),k++;break;case 45:m===45&&Qu(O)==2&&(v=0)}}return i}function Lze(e,t,a,r,n,i,o,s,l,c,u){for(var d=n-1,p=n===0?i:[""],h=XI(p),m=0,v=0,g=0;m<r;++m)for(var f=0,k=Fx(e,d+1,d=S8t(v=o[m])),x=e;f<h;++f)(x=Eze(v>0?p[f]+" "+k:xr(k,/&\f/g,p[f])))&&(l[g++]=x);return AM(e,t,a,n===0?ZI:s,l,c,u)}function B8t(e,t,a){return AM(e,t,a,Mze,jM(A8t()),Fx(e,2,-2),0)}function Nze(e,t,a,r){return AM(e,t,a,QI,Fx(e,0,r),Fx(e,r+1,-1),r)}function Kb(e,t){for(var a="",r=XI(e),n=0;n<r;n++)a+=t(e[n],n,e,t)||"";return a}function L8t(e,t,a,r){switch(e.type){case w8t:case QI:return e.return=e.return||e.value;case Mze:return"";case Tze:return e.return=e.value+"{"+Kb(e.children,r)+"}";case ZI:e.value=e.props.join(",")}return Qu(a=Kb(e.children,r))?e.return=e.value+"{"+a+"}":""}function N8t(e){var t=XI(e);return function(a,r,n,i){for(var o="",s=0;s<t;s++)o+=e[s](a,r,n,i)||"";return o}}function D8t(e){return function(t){t.root||(t=t.return)&&e(t)}}function $8t(e){var t=Object.create(null);return function(a){return t[a]===void 0&&(t[a]=e(a)),t[a]}}var I8t=function(e,t,a){for(var r=0,n=0;r=n,n=Yu(),r===38&&n===12&&(t[a]=1),!Wx(n);)yl();return qx(e,Bs)},K8t=function(e,t){var a=-1,r=44;do switch(Wx(r)){case 0:r===38&&Yu()===12&&(t[a]=1),e[a]+=I8t(Bs-1,t,a);break;case 2:e[a]+=MM(r);break;case 4:if(r===44){e[++a]=Yu()===58?"&\f":"",t[a]=e[a].length;break}default:e[a]+=jM(r)}while(r=yl());return e},V8t=function(e,t){return Bze(K8t(Rze(e),t))},Dze=new WeakMap,H8t=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,a=e.parent,r=e.column===a.column&&e.line===a.line;a.type!=="rule";)if(a=a.parent,!a)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!Dze.get(a))&&!r){Dze.set(e,!0);for(var n=[],i=V8t(t,n),o=a.props,s=0,l=0;s<i.length;s++)for(var c=0;c<o.length;c++,l++)e.props[l]=n[s]?i[s].replace(/&\f/g,o[c]):o[c]+" "+i[s]}}},F8t=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};function $ze(e,t){switch(j8t(e,t)){case 5103:return fr+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return fr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return fr+e+zM+e+Mo+e+e;case 6828:case 4268:return fr+e+Mo+e+e;case 6165:return fr+e+Mo+"flex-"+e+e;case 5187:return fr+e+xr(e,/(\w+).+(:[^]+)/,fr+"box-$1$2"+Mo+"flex-$1$2")+e;case 5443:return fr+e+Mo+"flex-item-"+xr(e,/flex-|-self/,"")+e;case 4675:return fr+e+Mo+"flex-line-pack"+xr(e,/align-content|flex-|-self/,"")+e;case 5548:return fr+e+Mo+xr(e,"shrink","negative")+e;case 5292:return fr+e+Mo+xr(e,"basis","preferred-size")+e;case 6060:return fr+"box-"+xr(e,"-grow","")+fr+e+Mo+xr(e,"grow","positive")+e;case 4554:return fr+xr(e,/([^-])(transform)/g,"$1"+fr+"$2")+e;case 6187:return xr(xr(xr(e,/(zoom-|grab)/,fr+"$1"),/(image-set)/,fr+"$1"),e,"")+e;case 5495:case 3959:return xr(e,/(image-set\([^]*)/,fr+"$1$`$1");case 4968:return xr(xr(e,/(.+:)(flex-)?(.*)/,fr+"box-pack:$3"+Mo+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+fr+e+e;case 4095:case 3583:case 4068:case 2532:return xr(e,/(.+)-inline(.+)/,fr+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Qu(e)-1-t>6)switch(Xi(e,t+1)){case 109:if(Xi(e,t+4)!==45)break;case 102:return xr(e,/(.+:)(.+)-([^]+)/,"$1"+fr+"$2-$3$1"+zM+(Xi(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~YI(e,"stretch")?$ze(xr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Xi(e,t+1)!==115)break;case 6444:switch(Xi(e,Qu(e)-3-(~YI(e,"!important")&&10))){case 107:return xr(e,":",":"+fr)+e;case 101:return xr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+fr+(Xi(e,14)===45?"inline-":"")+"box$3$1"+fr+"$2$3$1"+Mo+"$2box$3")+e}break;case 5936:switch(Xi(e,t+11)){case 114:return fr+e+Mo+xr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return fr+e+Mo+xr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return fr+e+Mo+xr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return fr+e+Mo+e+e}return e}var G8t=function(e,t,a,r){if(e.length>-1&&!e.return)switch(e.type){case QI:e.return=$ze(e.value,e.length);break;case Tze:return Kb([Gx(e,{value:xr(e.value,"@","@"+fr)})],r);case ZI:if(e.length)return C8t(e.props,function(n){switch(O8t(n,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Kb([Gx(e,{props:[xr(n,/:(read-\w+)/,":"+zM+"$1")]})],r);case"::placeholder":return Kb([Gx(e,{props:[xr(n,/:(plac\w+)/,":"+fr+"input-$1")]}),Gx(e,{props:[xr(n,/:(plac\w+)/,":"+zM+"$1")]}),Gx(e,{props:[xr(n,/:(plac\w+)/,Mo+"input-$1")]})],r)}return""})}},q8t=[G8t],W8t=function(e){var t=e.key;if(t==="css"){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,function(m){var v=m.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var r=e.stylisPlugins||q8t,n={},i,o=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var v=m.getAttribute("data-emotion").split(" "),g=1;g<v.length;g++)n[v[g]]=!0;o.push(m)});var s,l=[H8t,F8t];{var c,u=[L8t,D8t(function(m){c.insert(m)})],d=N8t(l.concat(r,u)),p=function(m){return Kb(R8t(m),d)};s=function(m,v,g,f){c=g,p(m?m+"{"+v.styles+"}":v.styles),f&&(h.inserted[v.name]=!0)}}var h={key:t,sheet:new x8t({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:n,registered:{},insert:s};return h.sheet.hydrate(o),h},J8t=!0;function U8t(e,t,a){var r="";return a.split(" ").forEach(function(n){e[n]!==void 0?t.push(e[n]+";"):r+=n+" "}),r}var Ize=function(e,t,a){var r=e.key+"-"+t.name;(a===!1||J8t===!1)&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},Z8t=function(e,t,a){Ize(e,t,a);var r=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var n=t;do e.insert(t===n?"."+r:"",n,e.sheet,!0),n=n.next;while(n!==void 0)}};function Q8t(e){for(var t=0,a,r=0,n=e.length;n>=4;++r,n-=4)a=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,a=(a&65535)*1540483477+((a>>>16)*59797<<16),a^=a>>>24,t=(a&65535)*1540483477+((a>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Y8t={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},X8t=/[A-Z]|^ms/g,e9t=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Kze=function(e){return e.charCodeAt(1)===45},Vze=function(e){return e!=null&&typeof e!="boolean"},tK=$8t(function(e){return Kze(e)?e:e.replace(X8t,"-$&").toLowerCase()}),Hze=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(e9t,function(a,r,n){return Xu={name:r,styles:n,next:Xu},r})}return Y8t[e]!==1&&!Kze(e)&&typeof t=="number"&&t!==0?t+"px":t};function Jx(e,t,a){if(a==null)return"";if(a.__emotion_styles!==void 0)return a;switch(typeof a){case"boolean":return"";case"object":{if(a.anim===1)return Xu={name:a.name,styles:a.styles,next:Xu},a.name;if(a.styles!==void 0){var r=a.next;if(r!==void 0)for(;r!==void 0;)Xu={name:r.name,styles:r.styles,next:Xu},r=r.next;var n=a.styles+";";return n}return t9t(e,t,a)}case"function":{if(e!==void 0){var i=Xu,o=a(e);return Xu=i,Jx(e,t,o)}break}}return a}function t9t(e,t,a){var r="";if(Array.isArray(a))for(var n=0;n<a.length;n++)r+=Jx(e,t,a[n])+";";else for(var i in a){var o=a[i];if(typeof o!="object")Vze(o)&&(r+=tK(i)+":"+Hze(i,o)+";");else if(Array.isArray(o)&&typeof o[0]=="string"&&t==null)for(var s=0;s<o.length;s++)Vze(o[s])&&(r+=tK(i)+":"+Hze(i,o[s])+";");else{var l=Jx(e,t,o);switch(i){case"animation":case"animationName":{r+=tK(i)+":"+l+";";break}default:r+=i+"{"+l+"}"}}}return r}var Fze=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Xu,Gze=function(e,t,a){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,n="";Xu=void 0;var i=e[0];i==null||i.raw===void 0?(r=!1,n+=Jx(a,t,i)):n+=i[0];for(var o=1;o<e.length;o++)n+=Jx(a,t,e[o]),r&&(n+=i[o]);Fze.lastIndex=0;for(var s="",l;(l=Fze.exec(n))!==null;)s+="-"+l[1];var c=Q8t(n)+s;return{name:c,styles:n,next:Xu}},a9t=function(e){return e()},r9t=Tm.useInsertionEffect?Tm.useInsertionEffect:!1,n9t=r9t||a9t,aK={}.hasOwnProperty,i9t=K.createContext(typeof HTMLElement<"u"?W8t({key:"css"}):null),o9t=function(e){return K.forwardRef(function(t,a){var r=K.useContext(i9t);return e(t,r,a)})},s9t=K.createContext({}),rK="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",l9t=function(e,t){var a={};for(var r in t)aK.call(t,r)&&(a[r]=t[r]);return a[rK]=e,a},c9t=function(e){var t=e.cache,a=e.serialized,r=e.isStringTag;return Ize(t,a,r),n9t(function(){return Z8t(t,a,r)}),null},u9t=o9t(function(e,t,a){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var n=e[rK],i=[r],o="";typeof e.className=="string"?o=U8t(t.registered,i,e.className):e.className!=null&&(o=e.className+" ");var s=Gze(i,void 0,K.useContext(s9t));o+=t.key+"-"+s.name;var l={};for(var c in e)aK.call(e,c)&&c!=="css"&&c!==rK&&(l[c]=e[c]);return l.ref=a,l.className=o,K.createElement(K.Fragment,null,K.createElement(c9t,{cache:t,serialized:s,isStringTag:typeof n=="string"}),K.createElement(n,l))}),Kt=function(e,t){var a=arguments;if(t==null||!aK.call(t,"css"))return K.createElement.apply(void 0,a);var r=a.length,n=new Array(r);n[0]=u9t,n[1]=l9t(e,t);for(var i=2;i<r;i++)n[i]=a[i];return K.createElement.apply(null,n)};function nK(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return Gze(t)}var d9t=function(){var e=nK.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};function p9t(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const h9t=Math.min,m9t=Math.max,EM=Math.round,_M=Math.floor,RM=e=>({x:e,y:e});function f9t(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function qze(e){return Jze(e)?(e.nodeName||"").toLowerCase():"#document"}function ap(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Wze(e){var t;return(t=(Jze(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Jze(e){return e instanceof Node||e instanceof ap(e).Node}function g9t(e){return e instanceof Element||e instanceof ap(e).Element}function iK(e){return e instanceof HTMLElement||e instanceof ap(e).HTMLElement}function Uze(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ap(e).ShadowRoot}function Zze(e){const{overflow:t,overflowX:a,overflowY:r,display:n}=oK(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+a)&&!["inline","contents"].includes(n)}function v9t(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function b9t(e){return["html","body","#document"].includes(qze(e))}function oK(e){return ap(e).getComputedStyle(e)}function k9t(e){if(qze(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Uze(e)&&e.host||Wze(e);return Uze(t)?t.host:t}function Qze(e){const t=k9t(e);return b9t(t)?e.ownerDocument?e.ownerDocument.body:e.body:iK(t)&&Zze(t)?t:Qze(t)}function BM(e,t,a){var r;t===void 0&&(t=[]),a===void 0&&(a=!0);const n=Qze(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),o=ap(n);return i?t.concat(o,o.visualViewport||[],Zze(n)?n:[],o.frameElement&&a?BM(o.frameElement):[]):t.concat(n,BM(n,[],a))}function y9t(e){const t=oK(e);let a=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const n=iK(e),i=n?e.offsetWidth:a,o=n?e.offsetHeight:r,s=EM(a)!==i||EM(r)!==o;return s&&(a=i,r=o),{width:a,height:r,$:s}}function sK(e){return g9t(e)?e:e.contextElement}function Yze(e){const t=sK(e);if(!iK(t))return RM(1);const a=t.getBoundingClientRect(),{width:r,height:n,$:i}=y9t(t);let o=(i?EM(a.width):a.width)/r,s=(i?EM(a.height):a.height)/n;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const x9t=RM(0);function w9t(e){const t=ap(e);return!v9t()||!t.visualViewport?x9t:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function S9t(e,t,a){return!1}function Xze(e,t,a,r){t===void 0&&(t=!1);const n=e.getBoundingClientRect(),i=sK(e);let o=RM(1);t&&(o=Yze(e));const s=S9t()?w9t(i):RM(0);let l=(n.left+s.x)/o.x,c=(n.top+s.y)/o.y,u=n.width/o.x,d=n.height/o.y;if(i){const p=ap(i),h=r;let m=p.frameElement;for(;m&&r&&h!==p;){const v=Yze(m),g=m.getBoundingClientRect(),f=oK(m),k=g.left+(m.clientLeft+parseFloat(f.paddingLeft))*v.x,x=g.top+(m.clientTop+parseFloat(f.paddingTop))*v.y;l*=v.x,c*=v.y,u*=v.x,d*=v.y,l+=k,c+=x,m=ap(m).frameElement}}return f9t({width:u,height:d,x:l,y:c})}function z9t(e,t){let a=null,r;const n=Wze(e);function i(){clearTimeout(r),a&&a.disconnect(),a=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const{left:c,top:u,width:d,height:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const h=_M(u),m=_M(n.clientWidth-(c+d)),v=_M(n.clientHeight-(u+p)),g=_M(c),f={rootMargin:-h+"px "+-m+"px "+-v+"px "+-g+"px",threshold:m9t(0,h9t(1,l))||1};let k=!0;function x(z){const w=z[0].intersectionRatio;if(w!==l){if(!k)return o();w?o(!1,w):r=setTimeout(()=>{o(!1,1e-7)},100)}k=!1}try{a=new IntersectionObserver(x,{...f,root:n.ownerDocument})}catch{a=new IntersectionObserver(x,f)}a.observe(e)}return o(!0),i}function j9t(e,t,a,r){r===void 0&&(r={});const{ancestorScroll:n=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=sK(e),u=n||i?[...c?BM(c):[],...BM(t)]:[];u.forEach(f=>{n&&f.addEventListener("scroll",a,{passive:!0}),i&&f.addEventListener("resize",a)});const d=c&&s?z9t(c,a):null;let p=-1,h=null;o&&(h=new ResizeObserver(f=>{let[k]=f;k&&k.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{h&&h.observe(t)})),a()}),c&&!l&&h.observe(c),h.observe(t));let m,v=l?Xze(e):null;l&&g();function g(){const f=Xze(e);v&&(f.x!==v.x||f.y!==v.y||f.width!==v.width||f.height!==v.height)&&a(),v=f,m=requestAnimationFrame(g)}return a(),()=>{u.forEach(f=>{n&&f.removeEventListener("scroll",a),i&&f.removeEventListener("resize",a)}),d&&d(),h&&h.disconnect(),h=null,l&&cancelAnimationFrame(m)}}var lK=K.useLayoutEffect,O9t=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],LM=function(){};function C9t(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function A9t(e,t){for(var a=arguments.length,r=new Array(a>2?a-2:0),n=2;n<a;n++)r[n-2]=arguments[n];var i=[].concat(r);if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&i.push("".concat(C9t(e,o)));return i.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var eje=function(e){return N9t(e)?e.filter(Boolean):gl(e)==="object"&&e!==null?[e]:[]},tje=function(e){var t=Ic(e,O9t);return pt({},t)},Dn=function(e,t,a){var r=e.cx,n=e.getStyles,i=e.getClassNames,o=e.className;return{css:n(t,e),className:r(a??{},i(t,e),o)}};function NM(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function P9t(e){return NM(e)?window.innerHeight:e.clientHeight}function aje(e){return NM(e)?window.pageYOffset:e.scrollTop}function DM(e,t){if(NM(e)){window.scrollTo(0,t);return}e.scrollTop=t}function M9t(e){var t=getComputedStyle(e),a=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var n=e;n=n.parentElement;)if(t=getComputedStyle(n),!(a&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return n;return document.documentElement}function T9t(e,t,a,r){return a*((e=e/r-1)*e*e+1)+t}function $M(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:LM,n=aje(e),i=t-n,o=10,s=0;function l(){s+=o;var c=T9t(s,n,i,a);DM(e,c),s<a?window.requestAnimationFrame(l):r(e)}l()}function rje(e,t){var a=e.getBoundingClientRect(),r=t.getBoundingClientRect(),n=t.offsetHeight/3;r.bottom+n>a.bottom?DM(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+n,e.scrollHeight)):r.top-n<a.top&&DM(e,Math.max(t.offsetTop-n,0))}function E9t(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function nje(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function _9t(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var ije=!1,R9t={get passive(){return ije=!0}},IM=typeof window<"u"?window:{};IM.addEventListener&&IM.removeEventListener&&(IM.addEventListener("p",LM,R9t),IM.removeEventListener("p",LM,!1));var B9t=ije;function L9t(e){return e!=null}function N9t(e){return Array.isArray(e)}function KM(e,t,a){return e?t:a}var D9t=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),r=1;r<t;r++)a[r-1]=arguments[r];var n=Object.entries(e).filter(function(i){var o=da(i,1),s=o[0];return!a.includes(s)});return n.reduce(function(i,o){var s=da(o,2),l=s[0],c=s[1];return i[l]=c,i},{})},$9t=["children","innerProps"],I9t=["children","innerProps"];function K9t(e){var t=e.maxHeight,a=e.menuEl,r=e.minHeight,n=e.placement,i=e.shouldScroll,o=e.isFixedPosition,s=e.controlHeight,l=M9t(a),c={placement:"bottom",maxHeight:t};if(!a||!a.offsetParent)return c;var u=l.getBoundingClientRect(),d=u.height,p=a.getBoundingClientRect(),h=p.bottom,m=p.height,v=p.top,g=a.offsetParent.getBoundingClientRect(),f=g.top,k=o?window.innerHeight:P9t(l),x=aje(l),z=parseInt(getComputedStyle(a).marginBottom,10),w=parseInt(getComputedStyle(a).marginTop,10),j=f-w,O=k-v,M=j+x,T=d-x-v,B=h-k+x+z,H=x+v-w,N=160;switch(n){case"auto":case"bottom":if(O>=m)return{placement:"bottom",maxHeight:t};if(T>=m&&!o)return i&&$M(l,B,N),{placement:"bottom",maxHeight:t};if(!o&&T>=r||o&&O>=r){i&&$M(l,B,N);var J=o?O-z:T-z;return{placement:"bottom",maxHeight:J}}if(n==="auto"||o){var I=t,X=o?j:M;return X>=r&&(I=Math.min(X-z-s,t)),{placement:"top",maxHeight:I}}if(n==="bottom")return i&&DM(l,B),{placement:"bottom",maxHeight:t};break;case"top":if(j>=m)return{placement:"top",maxHeight:t};if(M>=m&&!o)return i&&$M(l,H,N),{placement:"top",maxHeight:t};if(!o&&M>=r||o&&j>=r){var re=t;return(!o&&M>=r||o&&j>=r)&&(re=o?j-w:M-w),i&&$M(l,H,N),{placement:"top",maxHeight:re}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(n,'".'))}return c}function V9t(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var oje=function(e){return e==="auto"?"bottom":e},H9t=function(e,t){var a,r=e.placement,n=e.theme,i=n.borderRadius,o=n.spacing,s=n.colors;return pt((a={label:"menu"},Po(a,V9t(r),"100%"),Po(a,"position","absolute"),Po(a,"width","100%"),Po(a,"zIndex",1),a),t?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:o.menuGutter,marginTop:o.menuGutter})},sje=K.createContext(null),F9t=function(e){var t=e.children,a=e.minMenuHeight,r=e.maxMenuHeight,n=e.menuPlacement,i=e.menuPosition,o=e.menuShouldScrollIntoView,s=e.theme,l=K.useContext(sje)||{},c=l.setPortalPlacement,u=K.useRef(null),d=K.useState(r),p=da(d,2),h=p[0],m=p[1],v=K.useState(null),g=da(v,2),f=g[0],k=g[1],x=s.spacing.controlHeight;return lK(function(){var z=u.current;if(z){var w=i==="fixed",j=o&&!w,O=K9t({maxHeight:r,menuEl:z,minHeight:a,placement:n,shouldScroll:j,isFixedPosition:w,controlHeight:x});m(O.maxHeight),k(O.placement),c?.(O.placement)}},[r,n,i,o,a,c,x]),t({ref:u,placerProps:pt(pt({},e),{},{placement:f||oje(n),maxHeight:h})})},G9t=function(e){var t=e.children,a=e.innerRef,r=e.innerProps;return Kt("div",Nt({},Dn(e,"menu",{menu:!0}),{ref:a},r),t)},q9t=G9t,W9t=function(e,t){var a=e.maxHeight,r=e.theme.spacing.baseUnit;return pt({maxHeight:a,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},J9t=function(e){var t=e.children,a=e.innerProps,r=e.innerRef,n=e.isMulti;return Kt("div",Nt({},Dn(e,"menuList",{"menu-list":!0,"menu-list--is-multi":n}),{ref:r},a),t)},lje=function(e,t){var a=e.theme,r=a.spacing.baseUnit,n=a.colors;return pt({textAlign:"center"},t?{}:{color:n.neutral40,padding:"".concat(r*2,"px ").concat(r*3,"px")})},U9t=lje,Z9t=lje,Q9t=function(e){var t=e.children,a=t===void 0?"No options":t,r=e.innerProps,n=Ic(e,$9t);return Kt("div",Nt({},Dn(pt(pt({},n),{},{children:a,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),a)},Y9t=function(e){var t=e.children,a=t===void 0?"Loading...":t,r=e.innerProps,n=Ic(e,I9t);return Kt("div",Nt({},Dn(pt(pt({},n),{},{children:a,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),a)},X9t=function(e){var t=e.rect,a=e.offset,r=e.position;return{left:t.left,position:r,top:a,width:t.width,zIndex:1}},eNt=function(e){var t=e.appendTo,a=e.children,r=e.controlElement,n=e.innerProps,i=e.menuPlacement,o=e.menuPosition,s=K.useRef(null),l=K.useRef(null),c=K.useState(oje(i)),u=da(c,2),d=u[0],p=u[1],h=K.useMemo(function(){return{setPortalPlacement:p}},[]),m=K.useState(null),v=da(m,2),g=v[0],f=v[1],k=K.useCallback(function(){if(r){var j=E9t(r),O=o==="fixed"?0:window.pageYOffset,M=j[d]+O;(M!==g?.offset||j.left!==g?.rect.left||j.width!==g?.rect.width)&&f({offset:M,rect:j})}},[r,o,d,g?.offset,g?.rect.left,g?.rect.width]);lK(function(){k()},[k]);var x=K.useCallback(function(){typeof l.current=="function"&&(l.current(),l.current=null),r&&s.current&&(l.current=j9t(r,s.current,k,{elementResize:"ResizeObserver"in window}))},[r,k]);lK(function(){x()},[x]);var z=K.useCallback(function(j){s.current=j,x()},[x]);if(!t&&o!=="fixed"||!g)return null;var w=Kt("div",Nt({ref:z},Dn(pt(pt({},e),{},{offset:g.offset,position:o,rect:g.rect}),"menuPortal",{"menu-portal":!0}),n),a);return Kt(sje.Provider,{value:h},t?_z.createPortal(w,t):w)},tNt=function(e){var t=e.isDisabled,a=e.isRtl;return{label:"container",direction:a?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},aNt=function(e){var t=e.children,a=e.innerProps,r=e.isDisabled,n=e.isRtl;return Kt("div",Nt({},Dn(e,"container",{"--is-disabled":r,"--is-rtl":n}),a),t)},rNt=function(e,t){var a=e.theme.spacing,r=e.isMulti,n=e.hasValue,i=e.selectProps.controlShouldRenderValue;return pt({alignItems:"center",display:r&&n&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(a.baseUnit/2,"px ").concat(a.baseUnit*2,"px")})},nNt=function(e){var t=e.children,a=e.innerProps,r=e.isMulti,n=e.hasValue;return Kt("div",Nt({},Dn(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":n}),a),t)},iNt=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},oNt=function(e){var t=e.children,a=e.innerProps;return Kt("div",Nt({},Dn(e,"indicatorsContainer",{indicators:!0}),a),t)},cje,sNt=["size"],lNt=["innerProps","isRtl","size"],cNt={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},uje=function(e){var t=e.size,a=Ic(e,sNt);return Kt("svg",Nt({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:cNt},a))},cK=function(e){return Kt(uje,Nt({size:20},e),Kt("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},dje=function(e){return Kt(uje,Nt({size:20},e),Kt("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},pje=function(e,t){var a=e.isFocused,r=e.theme,n=r.spacing.baseUnit,i=r.colors;return pt({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:a?i.neutral60:i.neutral20,padding:n*2,":hover":{color:a?i.neutral80:i.neutral40}})},uNt=pje,dNt=function(e){var t=e.children,a=e.innerProps;return Kt("div",Nt({},Dn(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),a),t||Kt(dje,null))},pNt=pje,hNt=function(e){var t=e.children,a=e.innerProps;return Kt("div",Nt({},Dn(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),a),t||Kt(cK,null))},mNt=function(e,t){var a=e.isDisabled,r=e.theme,n=r.spacing.baseUnit,i=r.colors;return pt({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:a?i.neutral10:i.neutral20,marginBottom:n*2,marginTop:n*2})},fNt=function(e){var t=e.innerProps;return Kt("span",Nt({},t,Dn(e,"indicatorSeparator",{"indicator-separator":!0})))},gNt=d9t(cje||(cje=p9t([`
|
|
11130
|
+
`;function Tx({input:e,onSave:t,onCancel:a,...r}){const[n,i]=K.useState(!!e.isSecret),o=({name:s,value:l})=>{t({...e,name:s,value:l,isSecret:n})};return b.jsx(MSe,{variable:e,onSave:o,onCancel:a,...r,children:b.jsx(Mx,{children:b.jsx(sBt,{value:n,onChange:s=>i(s),title:"Make it secret"})})})}function cM(e){var t=new Error(e);return t.source="ulid",t}var xI="0123456789ABCDEFGHJKMNPQRSTVWXYZ",Ex=xI.length,TSe=Math.pow(2,48)-1,mBt=10,fBt=16;function gBt(e){var t=Math.floor(e()*Ex);return t===Ex&&(t=Ex-1),xI.charAt(t)}function vBt(e,t){if(isNaN(e))throw new Error(e+" must be a number");if(e>TSe)throw cM("cannot encode time greater than "+TSe);if(e<0)throw cM("time must be positive");if(Number.isInteger(e)===!1)throw cM("time must be an integer");for(var a=void 0,r="";t>0;t--)a=e%Ex,r=xI.charAt(a)+r,e=(e-a)/Ex;return r}function bBt(e,t){for(var a="";e>0;e--)a=gBt(t)+a;return a}function kBt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=arguments[1];t||(t=typeof window<"u"?window:null);var a=t&&(t.crypto||t.msCrypto);if(a)return function(){var n=new Uint8Array(1);return a.getRandomValues(n),n[0]/255};try{var r=require("crypto");return function(){return r.randomBytes(1).readUInt8()/255}}catch{}if(e){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch{}return function(){return Math.random()}}throw cM("secure crypto unusable, insecure Math.random not allowed")}function yBt(e){return e||(e=kBt()),function(t){return isNaN(t)&&(t=Date.now()),vBt(t,mBt)+bBt(fBt,e)}}var uM=yBt(),xBt=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof globalThis=="object"?globalThis:{},Of="1.9.0",ESe=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function wBt(e){var t=new Set([e]),a=new Set,r=e.match(ESe);if(!r)return function(){return!1};var n={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(n.prerelease!=null)return function(s){return s===e};function i(s){return a.add(s),!1}function o(s){return t.add(s),!0}return function(s){if(t.has(s))return!0;if(a.has(s))return!1;var l=s.match(ESe);if(!l)return i(s);var c={major:+l[1],minor:+l[2],patch:+l[3],prerelease:l[4]};return c.prerelease!=null||n.major!==c.major?i(s):n.major===0?n.minor===c.minor&&n.patch<=c.patch?o(s):i(s):n.minor<=c.minor?o(s):i(s)}}var SBt=wBt(Of),zBt=Of.split(".")[0],_x=Symbol.for("opentelemetry.js.api."+zBt),Rx=xBt;function Bx(e,t,a,r){var n;r===void 0&&(r=!1);var i=Rx[_x]=(n=Rx[_x])!==null&&n!==void 0?n:{version:Of};if(!r&&i[e]){var o=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return a.error(o.stack||o.message),!1}if(i.version!==Of){var o=new Error("@opentelemetry/api: Registration of version v"+i.version+" for "+e+" does not match previously registered API v"+Of);return a.error(o.stack||o.message),!1}return i[e]=t,a.debug("@opentelemetry/api: Registered a global for "+e+" v"+Of+"."),!0}function Cf(e){var t,a,r=(t=Rx[_x])===null||t===void 0?void 0:t.version;if(!(!r||!SBt(r)))return(a=Rx[_x])===null||a===void 0?void 0:a[e]}function Lx(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+Of+".");var a=Rx[_x];a&&delete a[e]}var jBt=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},OBt=function(e,t,a){if(arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},CBt=(function(){function e(t){this._namespace=t.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return Nx("debug",this._namespace,t)},e.prototype.error=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return Nx("error",this._namespace,t)},e.prototype.info=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return Nx("info",this._namespace,t)},e.prototype.warn=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return Nx("warn",this._namespace,t)},e.prototype.verbose=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return Nx("verbose",this._namespace,t)},e})();function Nx(e,t,a){var r=Cf("diag");if(r)return a.unshift(t),r[e].apply(r,OBt([],jBt(a),!1))}var bl;(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"})(bl||(bl={}));function ABt(e,t){e<bl.NONE?e=bl.NONE:e>bl.ALL&&(e=bl.ALL),t=t||{};function a(r,n){var i=t[r];return typeof i=="function"&&e>=n?i.bind(t):function(){}}return{error:a("error",bl.ERROR),warn:a("warn",bl.WARN),info:a("info",bl.INFO),debug:a("debug",bl.DEBUG),verbose:a("verbose",bl.VERBOSE)}}var PBt=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},MBt=function(e,t,a){if(arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},TBt="diag",Ju=(function(){function e(){function t(n){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var s=Cf("diag");if(s)return s[n].apply(s,MBt([],PBt(i),!1))}}var a=this,r=function(n,i){var o,s,l;if(i===void 0&&(i={logLevel:bl.INFO}),n===a){var c=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return a.error((o=c.stack)!==null&&o!==void 0?o:c.message),!1}typeof i=="number"&&(i={logLevel:i});var u=Cf("diag"),d=ABt((s=i.logLevel)!==null&&s!==void 0?s:bl.INFO,n);if(u&&!i.suppressOverrideMessage){var p=(l=new Error().stack)!==null&&l!==void 0?l:"<failed to generate stacktrace>";u.warn("Current logger will be overwritten from "+p),d.warn("Current logger will overwrite one already registered from "+p)}return Bx("diag",d,a,!0)};a.setLogger=r,a.disable=function(){Lx(TBt,a)},a.createComponentLogger=function(n){return new CBt(n)},a.verbose=t("verbose"),a.debug=t("debug"),a.info=t("info"),a.warn=t("warn"),a.error=t("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e})(),EBt=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;(t===void 0||t-- >0)&&!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},_Bt=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,a=t&&e[t],r=0;if(a)return a.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},RBt=(function(){function e(t){this._entries=t?new Map(t):new Map}return e.prototype.getEntry=function(t){var a=this._entries.get(t);if(a)return Object.assign({},a)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var a=EBt(t,2),r=a[0],n=a[1];return[r,n]})},e.prototype.setEntry=function(t,a){var r=new e(this._entries);return r._entries.set(t,a),r},e.prototype.removeEntry=function(t){var a=new e(this._entries);return a._entries.delete(t),a},e.prototype.removeEntries=function(){for(var t,a,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=new e(this._entries);try{for(var o=_Bt(r),s=o.next();!s.done;s=o.next()){var l=s.value;i._entries.delete(l)}}catch(c){t={error:c}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(t)throw t.error}}return i},e.prototype.clear=function(){return new e},e})(),BBt=Symbol("BaggageEntryMetadata"),LBt=Ju.instance();function NBt(e){return e===void 0&&(e={}),new RBt(new Map(Object.entries(e)))}function DBt(e){return typeof e!="string"&&(LBt.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:BBt,toString:function(){return e}}}function wI(e){return Symbol.for(e)}var $Bt=(function(){function e(t){var a=this;a._currentContext=t?new Map(t):new Map,a.getValue=function(r){return a._currentContext.get(r)},a.setValue=function(r,n){var i=new e(a._currentContext);return i._currentContext.set(r,n),i},a.deleteValue=function(r){var n=new e(a._currentContext);return n._currentContext.delete(r),n}}return e})(),_b=new $Bt,Af=(function(){var e=function(t,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},e(t,a)};return function(t,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");e(t,a);function r(){this.constructor=t}t.prototype=a===null?Object.create(a):(r.prototype=a.prototype,new r)}})(),IBt=(function(){function e(){}return e.prototype.createGauge=function(t,a){return ZBt},e.prototype.createHistogram=function(t,a){return QBt},e.prototype.createCounter=function(t,a){return UBt},e.prototype.createUpDownCounter=function(t,a){return YBt},e.prototype.createObservableGauge=function(t,a){return e4t},e.prototype.createObservableCounter=function(t,a){return XBt},e.prototype.createObservableUpDownCounter=function(t,a){return t4t},e.prototype.addBatchObservableCallback=function(t,a){},e.prototype.removeBatchObservableCallback=function(t){},e})(),dM=(function(){function e(){}return e})(),KBt=(function(e){Af(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(a,r){},t})(dM),VBt=(function(e){Af(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(a,r){},t})(dM),HBt=(function(e){Af(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(a,r){},t})(dM),FBt=(function(e){Af(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(a,r){},t})(dM),SI=(function(){function e(){}return e.prototype.addCallback=function(t){},e.prototype.removeCallback=function(t){},e})(),GBt=(function(e){Af(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(SI),qBt=(function(e){Af(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(SI),WBt=(function(e){Af(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(SI),JBt=new IBt,UBt=new KBt,ZBt=new HBt,QBt=new FBt,YBt=new VBt,XBt=new GBt,e4t=new qBt,t4t=new WBt,a4t={get:function(e,t){if(e!=null)return e[t]},keys:function(e){return e==null?[]:Object.keys(e)}},r4t={set:function(e,t,a){e!=null&&(e[t]=a)}},n4t=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;(t===void 0||t-- >0)&&!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},i4t=function(e,t,a){if(a||arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},o4t=(function(){function e(){}return e.prototype.active=function(){return _b},e.prototype.with=function(t,a,r){for(var n=[],i=3;i<arguments.length;i++)n[i-3]=arguments[i];return a.call.apply(a,i4t([r],n4t(n),!1))},e.prototype.bind=function(t,a){return a},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e})(),s4t=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},l4t=function(e,t,a){if(arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},zI="context",c4t=new o4t,pM=(function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(t){return Bx(zI,t,Ju.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(t,a,r){for(var n,i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];return(n=this._getContextManager()).with.apply(n,l4t([t,a,r],s4t(i),!1))},e.prototype.bind=function(t,a){return this._getContextManager().bind(t,a)},e.prototype._getContextManager=function(){return Cf(zI)||c4t},e.prototype.disable=function(){this._getContextManager().disable(),Lx(zI,Ju.instance())},e})(),tp;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(tp||(tp={}));var _Se="0000000000000000",RSe="00000000000000000000000000000000",BSe={traceId:RSe,spanId:_Se,traceFlags:tp.NONE},Dx=(function(){function e(t){t===void 0&&(t=BSe),this._spanContext=t}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,a){return this},e.prototype.setAttributes=function(t){return this},e.prototype.addEvent=function(t,a){return this},e.prototype.addLink=function(t){return this},e.prototype.addLinks=function(t){return this},e.prototype.setStatus=function(t){return this},e.prototype.updateName=function(t){return this},e.prototype.end=function(t){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(t,a){},e})(),jI=wI("OpenTelemetry Context Key SPAN");function OI(e){return e.getValue(jI)||void 0}function u4t(){return OI(pM.getInstance().active())}function CI(e,t){return e.setValue(jI,t)}function d4t(e){return e.deleteValue(jI)}function p4t(e,t){return CI(e,new Dx(t))}function LSe(e){var t;return(t=OI(e))===null||t===void 0?void 0:t.spanContext()}var h4t=/^([0-9a-f]{32})$/i,m4t=/^[0-9a-f]{16}$/i;function NSe(e){return h4t.test(e)&&e!==RSe}function f4t(e){return m4t.test(e)&&e!==_Se}function hM(e){return NSe(e.traceId)&&f4t(e.spanId)}function g4t(e){return new Dx(e)}var AI=pM.getInstance(),DSe=(function(){function e(){}return e.prototype.startSpan=function(t,a,r){r===void 0&&(r=AI.active());var n=!!a?.root;if(n)return new Dx;var i=r&&LSe(r);return v4t(i)&&hM(i)?new Dx(i):new Dx},e.prototype.startActiveSpan=function(t,a,r,n){var i,o,s;if(!(arguments.length<2)){arguments.length===2?s=a:arguments.length===3?(i=a,s=r):(i=a,o=r,s=n);var l=o??AI.active(),c=this.startSpan(t,i,l),u=CI(l,c);return AI.with(u,s,void 0,c)}},e})();function v4t(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var b4t=new DSe,k4t=(function(){function e(t,a,r,n){this._provider=t,this.name=a,this.version=r,this.options=n}return e.prototype.startSpan=function(t,a,r){return this._getTracer().startSpan(t,a,r)},e.prototype.startActiveSpan=function(t,a,r,n){var i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):b4t},e})(),y4t=(function(){function e(){}return e.prototype.getTracer=function(t,a,r){return new DSe},e})(),x4t=new y4t,$Se=(function(){function e(){}return e.prototype.getTracer=function(t,a,r){var n;return(n=this.getDelegateTracer(t,a,r))!==null&&n!==void 0?n:new k4t(this,t,a,r)},e.prototype.getDelegate=function(){var t;return(t=this._delegate)!==null&&t!==void 0?t:x4t},e.prototype.setDelegate=function(t){this._delegate=t},e.prototype.getDelegateTracer=function(t,a,r){var n;return(n=this._delegate)===null||n===void 0?void 0:n.getTracer(t,a,r)},e})(),mM;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(mM||(mM={}));var PI;(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"})(PI||(PI={}));var $x;(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"})($x||($x={}));var Vc=pM.getInstance(),mr=Ju.instance(),w4t=(function(){function e(){}return e.prototype.getMeter=function(t,a,r){return JBt},e})(),S4t=new w4t,MI="metrics",z4t=(function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(t){return Bx(MI,t,Ju.instance())},e.prototype.getMeterProvider=function(){return Cf(MI)||S4t},e.prototype.getMeter=function(t,a,r){return this.getMeterProvider().getMeter(t,a,r)},e.prototype.disable=function(){Lx(MI,Ju.instance())},e})(),j4t=z4t.getInstance(),O4t=(function(){function e(){}return e.prototype.inject=function(t,a){},e.prototype.extract=function(t,a){return t},e.prototype.fields=function(){return[]},e})(),TI=wI("OpenTelemetry Baggage Key");function ISe(e){return e.getValue(TI)||void 0}function C4t(){return ISe(pM.getInstance().active())}function A4t(e,t){return e.setValue(TI,t)}function P4t(e){return e.deleteValue(TI)}var EI="propagation",M4t=new O4t,T4t=(function(){function e(){this.createBaggage=NBt,this.getBaggage=ISe,this.getActiveBaggage=C4t,this.setBaggage=A4t,this.deleteBaggage=P4t}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(t){return Bx(EI,t,Ju.instance())},e.prototype.inject=function(t,a,r){return r===void 0&&(r=r4t),this._getGlobalPropagator().inject(t,a,r)},e.prototype.extract=function(t,a,r){return r===void 0&&(r=a4t),this._getGlobalPropagator().extract(t,a,r)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){Lx(EI,Ju.instance())},e.prototype._getGlobalPropagator=function(){return Cf(EI)||M4t},e})(),Ix=T4t.getInstance(),_I="trace",E4t=(function(){function e(){this._proxyTracerProvider=new $Se,this.wrapSpanContext=g4t,this.isSpanContextValid=hM,this.deleteSpan=d4t,this.getSpan=OI,this.getActiveSpan=u4t,this.getSpanContext=LSe,this.setSpan=CI,this.setSpanContext=p4t}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(t){var a=Bx(_I,this._proxyTracerProvider,Ju.instance());return a&&this._proxyTracerProvider.setDelegate(t),a},e.prototype.getTracerProvider=function(){return Cf(_I)||this._proxyTracerProvider},e.prototype.getTracer=function(t,a){return this.getTracerProvider().getTracer(t,a)},e.prototype.disable=function(){Lx(_I,Ju.instance()),this._proxyTracerProvider=new $Se},e})(),kl=E4t.getInstance();const KSe=wI("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function _4t(e){return e.setValue(KSe,!0)}function RI(e){return e.getValue(KSe)===!0}const R4t="=",BI=";",LI=",",NI="baggage",B4t=180,L4t=4096,N4t=8192;function D4t(e){return e.reduce((t,a)=>{const r=`${t}${t!==""?LI:""}${a}`;return r.length>N4t?t:r},"")}function $4t(e){return e.getAllEntries().map(([t,a])=>{let r=`${encodeURIComponent(t)}=${encodeURIComponent(a.value)}`;return a.metadata!==void 0&&(r+=BI+a.metadata.toString()),r})}function I4t(e){const t=e.split(BI);if(t.length<=0)return;const a=t.shift();if(!a)return;const r=a.indexOf(R4t);if(r<=0)return;const n=decodeURIComponent(a.substring(0,r).trim()),i=decodeURIComponent(a.substring(r+1).trim());let o;return t.length>0&&(o=DBt(t.join(BI))),{key:n,value:i,metadata:o}}class K4t{inject(t,a,r){const n=Ix.getBaggage(t);if(!n||RI(t))return;const i=$4t(n).filter(s=>s.length<=L4t).slice(0,B4t),o=D4t(i);o.length>0&&r.set(a,NI,o)}extract(t,a,r){const n=r.get(a,NI),i=Array.isArray(n)?n.join(LI):n;if(!i)return t;const o={};return i.length===0||(i.split(LI).forEach(s=>{const l=I4t(s);if(l){const c={value:l.value};l.metadata&&(c.metadata=l.metadata),o[l.key]=c}}),Object.entries(o).length===0)?t:Ix.setBaggage(t,Ix.createBaggage(o))}fields(){return[NI]}}function fM(e){const t={};if(typeof e!="object"||e==null)return t;for(const[a,r]of Object.entries(e)){if(!V4t(a)){mr.warn(`Invalid attribute key: ${a}`);continue}if(!VSe(r)){mr.warn(`Invalid attribute value set for key: ${a}`);continue}Array.isArray(r)?t[a]=r.slice():t[a]=r}return t}function V4t(e){return typeof e=="string"&&e.length>0}function VSe(e){return e==null?!0:Array.isArray(e)?H4t(e):HSe(e)}function H4t(e){let t;for(const a of e)if(a!=null){if(!t){if(HSe(a)){t=typeof a;continue}return!1}if(typeof a!==t)return!1}return!0}function HSe(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}function F4t(){return e=>{mr.error(G4t(e))}}function G4t(e){return typeof e=="string"?e:JSON.stringify(q4t(e))}function q4t(e){const t={};let a=e;for(;a!==null;)Object.getOwnPropertyNames(a).forEach(r=>{if(t[r])return;const n=a[r];n&&(t[r]=String(n))}),a=Object.getPrototypeOf(a);return t}let W4t=F4t();function Rb(e){try{W4t(e)}catch{}}const Bb=performance,J4t="2.0.1",DI="exception.message",U4t="exception.stacktrace",$I="exception.type",FSe="service.name",Z4t="service.version",II="telemetry.sdk.language",Q4t="webjs",KI="telemetry.sdk.name",VI="telemetry.sdk.version",Y4t="process.runtime.name",HI={[KI]:"opentelemetry",[Y4t]:"browser",[II]:Q4t,[VI]:J4t},X4t=9,eLt=6,tLt=Math.pow(10,eLt),gM=Math.pow(10,X4t);function Lb(e){const t=e/1e3,a=Math.trunc(t),r=Math.round(e%1e3*tLt);return[a,r]}function GSe(){let e=Bb.timeOrigin;if(typeof e!="number"){const t=Bb;e=t.timing&&t.timing.fetchStart}return e}function aLt(e){const t=Lb(GSe()),a=Lb(typeof e=="number"?e:Bb.now());return JSe(t,a)}function rLt(e,t){let a=t[0]-e[0],r=t[1]-e[1];return r<0&&(a-=1,r+=gM),[a,r]}function nLt(e){return e[0]*gM+e[1]}function qSe(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function WSe(e){return qSe(e)||typeof e=="number"||e instanceof Date}function JSe(e,t){const a=[e[0]+t[0],e[1]+t[1]];return a[1]>=gM&&(a[1]-=gM,a[0]+=1),a}var Uu;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(Uu||(Uu={}));class iLt{_propagators;_fields;constructor(t={}){this._propagators=t.propagators??[],this._fields=Array.from(new Set(this._propagators.map(a=>typeof a.fields=="function"?a.fields():[]).reduce((a,r)=>a.concat(r),[])))}inject(t,a,r){for(const n of this._propagators)try{n.inject(t,a,r)}catch(i){mr.warn(`Failed to inject with ${n.constructor.name}. Err: ${i.message}`)}}extract(t,a,r){return this._propagators.reduce((n,i)=>{try{return i.extract(n,a,r)}catch(o){mr.warn(`Failed to extract with ${i.constructor.name}. Err: ${o.message}`)}return n},t)}fields(){return this._fields.slice()}}const FI="[_0-9a-z-*/]",oLt=`[a-z]${FI}{0,255}`,sLt=`[a-z0-9]${FI}{0,240}@[a-z]${FI}{0,13}`,lLt=new RegExp(`^(?:${oLt}|${sLt})$`),cLt=/^[ -~]{0,255}[!-~]$/,uLt=/,|=/;function dLt(e){return lLt.test(e)}function pLt(e){return cLt.test(e)&&!uLt.test(e)}const USe=32,hLt=512,ZSe=",",QSe="=";class RF{_internalState=new Map;constructor(t){t&&this._parse(t)}set(t,a){const r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,a),r}unset(t){const a=this._clone();return a._internalState.delete(t),a}get(t){return this._internalState.get(t)}serialize(){return this._keys().reduce((t,a)=>(t.push(a+QSe+this.get(a)),t),[]).join(ZSe)}_parse(t){t.length>hLt||(this._internalState=t.split(ZSe).reverse().reduce((a,r)=>{const n=r.trim(),i=n.indexOf(QSe);if(i!==-1){const o=n.slice(0,i),s=n.slice(i+1,r.length);dLt(o)&&pLt(s)&&a.set(o,s)}return a},new Map),this._internalState.size>USe&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,USe))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const t=new RF;return t._internalState=new Map(this._internalState),t}}const GI="traceparent",qI="tracestate",mLt="00",fLt="(?!ff)[\\da-f]{2}",gLt="(?![0]{32})[\\da-f]{32}",vLt="(?![0]{16})[\\da-f]{16}",bLt="[\\da-f]{2}",kLt=new RegExp(`^\\s?(${fLt})-(${gLt})-(${vLt})-(${bLt})(-.*)?\\s?$`);function yLt(e){const t=kLt.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}class xLt{inject(t,a,r){const n=kl.getSpanContext(t);if(!n||RI(t)||!hM(n))return;const i=`${mLt}-${n.traceId}-${n.spanId}-0${Number(n.traceFlags||tp.NONE).toString(16)}`;r.set(a,GI,i),n.traceState&&r.set(a,qI,n.traceState.serialize())}extract(t,a,r){const n=r.get(a,GI);if(!n)return t;const i=Array.isArray(n)?n[0]:n;if(typeof i!="string")return t;const o=yLt(i);if(!o)return t;o.isRemote=!0;const s=r.get(a,qI);if(s){const l=Array.isArray(s)?s.join(","):s;o.traceState=new RF(typeof l=="string"?l:void 0)}return kl.setSpanContext(t,o)}fields(){return[GI,qI]}}const wLt="[object Object]",SLt="[object Null]",zLt="[object Undefined]",jLt=Function.prototype,YSe=jLt.toString,OLt=YSe.call(Object),CLt=Object.getPrototypeOf,XSe=Object.prototype,eze=XSe.hasOwnProperty,Pf=Symbol?Symbol.toStringTag:void 0,tze=XSe.toString;function aze(e){if(!ALt(e)||PLt(e)!==wLt)return!1;const t=CLt(e);if(t===null)return!0;const a=eze.call(t,"constructor")&&t.constructor;return typeof a=="function"&&a instanceof a&&YSe.call(a)===OLt}function ALt(e){return e!=null&&typeof e=="object"}function PLt(e){return e==null?e===void 0?zLt:SLt:Pf&&Pf in Object(e)?MLt(e):TLt(e)}function MLt(e){const t=eze.call(e,Pf),a=e[Pf];let r=!1;try{e[Pf]=void 0,r=!0}catch{}const n=tze.call(e);return r&&(t?e[Pf]=a:delete e[Pf]),n}function TLt(e){return tze.call(e)}const ELt=20;function _Lt(...e){let t=e.shift();const a=new WeakMap;for(;e.length>0;)t=rze(t,e.shift(),0,a);return t}function WI(e){return vM(e)?e.slice():e}function rze(e,t,a=0,r){let n;if(!(a>ELt)){if(a++,bM(e)||bM(t)||ize(t))n=WI(t);else if(vM(e)){if(n=e.slice(),vM(t))for(let i=0,o=t.length;i<o;i++)n.push(WI(t[i]));else if(Kx(t)){const i=Object.keys(t);for(let o=0,s=i.length;o<s;o++){const l=i[o];n[l]=WI(t[l])}}}else if(Kx(e))if(Kx(t)){if(!RLt(e,t))return t;n=Object.assign({},e);const i=Object.keys(t);for(let o=0,s=i.length;o<s;o++){const l=i[o],c=t[l];if(bM(c))typeof c>"u"?delete n[l]:n[l]=c;else{const u=n[l],d=c;if(nze(e,l,r)||nze(t,l,r))delete n[l];else{if(Kx(u)&&Kx(d)){const p=r.get(u)||[],h=r.get(d)||[];p.push({obj:e,key:l}),h.push({obj:t,key:l}),r.set(u,p),r.set(d,h)}n[l]=rze(n[l],c,a,r)}}}}else n=t;return n}}function nze(e,t,a){const r=a.get(e[t])||[];for(let n=0,i=r.length;n<i;n++){const o=r[n];if(o.key===t&&o.obj===e)return!0}return!1}function vM(e){return Array.isArray(e)}function ize(e){return typeof e=="function"}function Kx(e){return!bM(e)&&!vM(e)&&!ize(e)&&typeof e=="object"}function bM(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function RLt(e,t){return!(!aze(e)||!aze(t))}class BLt{_promise;_resolve;_reject;constructor(){this._promise=new Promise((t,a)=>{this._resolve=t,this._reject=a})}get promise(){return this._promise}resolve(t){this._resolve(t)}reject(t){this._reject(t)}}class LLt{_callback;_that;_isCalled=!1;_deferred=new BLt;constructor(t,a){this._callback=t,this._that=a}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(a=>this._deferred.resolve(a),a=>this._deferred.reject(a))}catch(a){this._deferred.reject(a)}}return this._deferred.promise}}function NLt(){return"unknown_service"}const Vx=e=>e!==null&&typeof e=="object"&&typeof e.then=="function";class FE{_rawAttributes;_asyncAttributesPending=!1;_memoizedAttributes;static FromAttributeList(t){const a=new FE({});return a._rawAttributes=sze(t),a._asyncAttributesPending=t.filter(([r,n])=>Vx(n)).length>0,a}constructor(t){const a=t.attributes??{};this._rawAttributes=Object.entries(a).map(([r,n])=>(Vx(n)&&(this._asyncAttributesPending=!0),[r,n])),this._rawAttributes=sze(this._rawAttributes)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let t=0;t<this._rawAttributes.length;t++){const[a,r]=this._rawAttributes[t];this._rawAttributes[t]=[a,Vx(r)?await r:r]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&mr.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const t={};for(const[a,r]of this._rawAttributes){if(Vx(r)){mr.debug(`Unsettled resource attribute ${a} skipped`);continue}r!=null&&(t[a]??=r)}return this._asyncAttributesPending||(this._memoizedAttributes=t),t}getRawAttributes(){return this._rawAttributes}merge(t){return t==null?this:FE.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()])}}function oze(e){return FE.FromAttributeList(Object.entries(e))}function DLt(){return oze({[FSe]:NLt(),[II]:HI[II],[KI]:HI[KI],[VI]:HI[VI]})}function sze(e){return e.map(([t,a])=>Vx(a)?[t,a.catch(r=>{mr.debug("promise rejection for resource attribute: %s - %s",t,r)})]:[t,a])}const $Lt="exception";class ILt{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;name;status={code:$x.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(t){const a=Date.now();this._spanContext=t.spanContext,this._performanceStartTime=Bb.now(),this._performanceOffset=a-(this._performanceStartTime+GSe()),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,this.links=t.links||[],this.startTime=this._getTime(t.startTime??a),this.resource=t.resource,this.instrumentationScope=t.scope,t.attributes!=null&&this.setAttributes(t.attributes),this._spanProcessor.onStart(this,t.context)}spanContext(){return this._spanContext}setAttribute(t,a){if(a==null||this._isSpanEnded())return this;if(t.length===0)return mr.warn(`Invalid attribute key: ${t}`),this;if(!VSe(a))return mr.warn(`Invalid attribute value set for key: ${t}`),this;const{attributeCountLimit:r}=this._spanLimits;return r!==void 0&&Object.keys(this.attributes).length>=r&&!Object.prototype.hasOwnProperty.call(this.attributes,t)?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(a),this)}setAttributes(t){for(const[a,r]of Object.entries(t))this.setAttribute(a,r);return this}addEvent(t,a,r){if(this._isSpanEnded())return this;const{eventCountLimit:n}=this._spanLimits;if(n===0)return mr.warn("No events allowed."),this._droppedEventsCount++,this;n!==void 0&&this.events.length>=n&&(this._droppedEventsCount===0&&mr.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),WSe(a)&&(WSe(r)||(r=a),a=void 0);const i=fM(a);return this.events.push({name:t,attributes:i,time:this._getTime(r),droppedAttributesCount:0}),this}addLink(t){return this.links.push(t),this}addLinks(t){return this.links.push(...t),this}setStatus(t){return this._isSpanEnded()?this:(this.status={...t},this.status.message!=null&&typeof t.message!="string"&&(mr.warn(`Dropping invalid status.message of type '${typeof t.message}', expected 'string'`),delete this.status.message),this)}updateName(t){return this._isSpanEnded()?this:(this.name=t,this)}end(t){if(this._isSpanEnded()){mr.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this._ended=!0,this.endTime=this._getTime(t),this._duration=rLt(this.startTime,this.endTime),this._duration[0]<0&&(mr.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&&mr.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._spanProcessor.onEnd(this)}_getTime(t){if(typeof t=="number"&&t<=Bb.now())return aLt(t+this._performanceOffset);if(typeof t=="number")return Lb(t);if(t instanceof Date)return Lb(t.getTime());if(qSe(t))return t;if(this._startTimeProvided)return Lb(Date.now());const a=Bb.now()-this._performanceStartTime;return JSe(this.startTime,Lb(a))}isRecording(){return this._ended===!1}recordException(t,a){const r={};typeof t=="string"?r[DI]=t:t&&(t.code?r[$I]=t.code.toString():t.name&&(r[$I]=t.name),t.message&&(r[DI]=t.message),t.stack&&(r[U4t]=t.stack)),r[$I]||r[DI]?this.addEvent($Lt,r,a):mr.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}}`);mr.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,t)}return this._ended}_truncateToLimitUtil(t,a){return t.length<=a?t:t.substring(0,a)}_truncateToSize(t){const a=this._attributeValueLengthLimit;return a<=0?(mr.warn(`Attribute value limit must be positive, got ${a}`),t):typeof t=="string"?this._truncateToLimitUtil(t,a):Array.isArray(t)?t.map(r=>typeof r=="string"?this._truncateToLimitUtil(r,a):r):t}}var Nb;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Nb||(Nb={}));class kM{shouldSample(){return{decision:Nb.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class Db{shouldSample(){return{decision:Nb.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class yM{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(t){this._root=t.root,this._root||(Rb(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new Db),this._remoteParentSampled=t.remoteParentSampled??new Db,this._remoteParentNotSampled=t.remoteParentNotSampled??new kM,this._localParentSampled=t.localParentSampled??new Db,this._localParentNotSampled=t.localParentNotSampled??new kM}shouldSample(t,a,r,n,i,o){const s=kl.getSpanContext(t);return!s||!hM(s)?this._root.shouldSample(t,a,r,n,i,o):s.isRemote?s.traceFlags&tp.SAMPLED?this._remoteParentSampled.shouldSample(t,a,r,n,i,o):this._remoteParentNotSampled.shouldSample(t,a,r,n,i,o):s.traceFlags&tp.SAMPLED?this._localParentSampled.shouldSample(t,a,r,n,i,o):this._localParentNotSampled.shouldSample(t,a,r,n,i,o)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}class lze{_ratio;_upperBound;constructor(t=0){this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(t,a){return{decision:NSe(a)&&this._accumulate(a)<this._upperBound?Nb.RECORD_AND_SAMPLED:Nb.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 a=0;for(let r=0;r<t.length/8;r++){const n=r*8,i=parseInt(t.slice(n,n+8),16);a=(a^i)>>>0}return a}}const cze=1;function uze(){return{sampler:dze(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function dze(){const e="parentbased_always_on";switch(e){case"always_on":return new Db;case"always_off":return new kM;case"parentbased_always_on":return new yM({root:new Db});case"parentbased_always_off":return new yM({root:new kM});case"traceidratio":return new lze(pze());case"parentbased_traceidratio":return new yM({root:new lze(pze())});default:return mr.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "parentbased_always_on".`),new yM({root:new Db})}}function pze(){return mr.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${cze}.`),cze}const KLt=128,VLt=1/0;function HLt(e){const t={sampler:dze()},a=uze(),r=Object.assign({},a,t,e);return r.generalLimits=Object.assign({},a.generalLimits,e.generalLimits||{}),r.spanLimits=Object.assign({},a.spanLimits,e.spanLimits||{}),r}function FLt(e){const t=Object.assign({},e.spanLimits);return t.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??void 0??void 0??KLt,t.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??void 0??void 0??VLt,Object.assign({},e,{spanLimits:t})}class GLt{_exporter;_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(t,a){this._exporter=t,this._maxExportBatchSize=typeof a?.maxExportBatchSize=="number"?a.maxExportBatchSize:512,this._maxQueueSize=typeof a?.maxQueueSize=="number"?a.maxQueueSize:2048,this._scheduledDelayMillis=typeof a?.scheduledDelayMillis=="number"?a.scheduledDelayMillis:5e3,this._exportTimeoutMillis=typeof a?.exportTimeoutMillis=="number"?a.exportTimeoutMillis:3e4,this._shutdownOnce=new LLt(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(mr.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,a){}onEnd(t){this._shutdownOnce.isCalled||(t.spanContext().traceFlags&tp.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&&mr.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(mr.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(t),this._maybeStartTimer()}_flushAll(){return new Promise((t,a)=>{const r=[],n=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let i=0,o=n;i<o;i++)r.push(this._flushOneBatch());Promise.all(r).then(()=>{t()}).catch(a)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((t,a)=>{const r=setTimeout(()=>{a(new Error("Timeout"))},this._exportTimeoutMillis);Vc.with(_4t(Vc.active()),()=>{let n;this._finishedSpans.length<=this._maxExportBatchSize?(n=this._finishedSpans,this._finishedSpans=[]):n=this._finishedSpans.splice(0,this._maxExportBatchSize);const i=()=>this._exporter.export(n,s=>{clearTimeout(r),s.code===Uu.SUCCESS?t():a(s.error??new Error("BatchSpanProcessor: span export failed"))});let o=null;for(let s=0,l=n.length;s<l;s++){const c=n[s];c.resource.asyncAttributesPending&&c.resource.waitForAsyncAttributes&&(o??=[],o.push(c.resource.waitForAsyncAttributes()))}o===null?i():Promise.all(o).then(i,s=>{Rb(s),a(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(a=>{this._isExporting=!1,Rb(a)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return t();this._timer===void 0&&(this._timer=setTimeout(()=>t(),this._scheduledDelayMillis))}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}}class qLt extends GLt{_visibilityChangeListener;_pageHideListener;constructor(t,a){super(t,a),this.onInit(a)}onInit(t){t?.disableAutoFlushOnDocumentHide!==!0&&typeof document<"u"&&(this._visibilityChangeListener=()=>{document.visibilityState==="hidden"&&this.forceFlush().catch(a=>{Rb(a)})},this._pageHideListener=()=>{this.forceFlush().catch(a=>{Rb(a)})},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 WLt=8,JLt=16;class ULt{generateTraceId=hze(JLt);generateSpanId=hze(WLt)}const xM=Array(32);function hze(e){return function(){for(let t=0;t<e*2;t++)xM[t]=Math.floor(Math.random()*16)+48,xM[t]>=58&&(xM[t]+=39);return String.fromCharCode.apply(null,xM.slice(0,e*2))}}class ZLt{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;constructor(t,a,r,n){const i=HLt(a);this._sampler=i.sampler,this._generalLimits=i.generalLimits,this._spanLimits=i.spanLimits,this._idGenerator=a.idGenerator||new ULt,this._resource=r,this._spanProcessor=n,this.instrumentationScope=t}startSpan(t,a={},r=Vc.active()){a.root&&(r=kl.deleteSpan(r));const n=kl.getSpan(r);if(RI(r))return mr.debug("Instrumentation suppressed, returning Noop Span"),kl.wrapSpanContext(BSe);const i=n?.spanContext(),o=this._idGenerator.generateSpanId();let s,l,c;!i||!kl.isSpanContextValid(i)?l=this._idGenerator.generateTraceId():(l=i.traceId,c=i.traceState,s=i);const u=a.kind??PI.INTERNAL,d=(a.links??[]).map(f=>({context:f.context,attributes:fM(f.attributes)})),p=fM(a.attributes),h=this._sampler.shouldSample(r,l,t,u,p,d);c=h.traceState??c;const m=h.decision===mM.RECORD_AND_SAMPLED?tp.SAMPLED:tp.NONE,v={traceId:l,spanId:o,traceFlags:m,traceState:c};if(h.decision===mM.NOT_RECORD)return mr.debug("Recording is off, propagating context in a non-recording span"),kl.wrapSpanContext(v);const g=fM(Object.assign(p,h.attributes));return new ILt({resource:this._resource,scope:this.instrumentationScope,context:r,spanContext:v,name:t,kind:u,links:d,parentSpanContext:s,attributes:g,startTime:a.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits})}startActiveSpan(t,a,r,n){let i,o,s;if(arguments.length<2)return;arguments.length===2?s=a:arguments.length===3?(i=a,s=r):(i=a,o=r,s=n);const l=o??Vc.active(),c=this.startSpan(t,i,l),u=kl.setSpan(l,c);return Vc.with(u,s,void 0,c)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}class QLt{_spanProcessors;constructor(t){this._spanProcessors=t}forceFlush(){const t=[];for(const a of this._spanProcessors)t.push(a.forceFlush());return new Promise(a=>{Promise.all(t).then(()=>{a()}).catch(r=>{Rb(r||new Error("MultiSpanProcessor: forceFlush failed")),a()})})}onStart(t,a){for(const r of this._spanProcessors)r.onStart(t,a)}onEnd(t){for(const a of this._spanProcessors)a.onEnd(t)}shutdown(){const t=[];for(const a of this._spanProcessors)t.push(a.shutdown());return new Promise((a,r)=>{Promise.all(t).then(()=>{a()},r)})}}var Mf;(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"})(Mf||(Mf={}));class YLt{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(t={}){const a=_Lt({},uze(),FLt(t));this._resource=a.resource??DLt(),this._config=Object.assign({},a,{resource:this._resource});const r=[];t.spanProcessors?.length&&r.push(...t.spanProcessors),this._activeSpanProcessor=new QLt(r)}getTracer(t,a,r){const n=`${t}@${a||""}:${r?.schemaUrl||""}`;return this._tracers.has(n)||this._tracers.set(n,new ZLt({name:t,version:a,schemaUrl:r?.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(n)}forceFlush(){const t=this._config.forceFlushTimeoutMillis,a=this._activeSpanProcessor._spanProcessors.map(r=>new Promise(n=>{let i;const o=setTimeout(()=>{n(new Error(`Span processor did not completed within timeout period of ${t} ms`)),i=Mf.timeout},t);r.forceFlush().then(()=>{clearTimeout(o),i!==Mf.timeout&&(i=Mf.resolved,n(i))}).catch(s=>{clearTimeout(o),i=Mf.error,n(s)})}));return new Promise((r,n)=>{Promise.all(a).then(i=>{const o=i.filter(s=>s!==Mf.resolved);o.length>0?n(o):r()}).catch(i=>n([i]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}class XLt{_enabled=!1;_currentContext=_b;_bindFunction(t=_b,a){const r=this,n=function(...i){return r.with(t,()=>a.apply(this,i))};return Object.defineProperty(n,"length",{enumerable:!1,configurable:!0,writable:!1,value:a.length}),n}active(){return this._currentContext}bind(t,a){return t===void 0&&(t=this.active()),typeof a=="function"?this._bindFunction(t,a):a}disable(){return this._currentContext=_b,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=_b,this)}with(t,a,r,...n){const i=this._currentContext;this._currentContext=t||_b;try{return a.call(r,...n)}finally{this._currentContext=i}}}function e6t(e){if(e!==null){if(e===void 0){const t=new XLt;t.enable(),Vc.setGlobalContextManager(t);return}e.enable(),Vc.setGlobalContextManager(e)}}function t6t(e){if(e!==null){if(e===void 0){Ix.setGlobalPropagator(new iLt({propagators:[new xLt,new K4t]}));return}Ix.setGlobalPropagator(e)}}class a6t extends YLt{constructor(t={}){super(t)}register(t={}){kl.setGlobalTracerProvider(this),t6t(t.propagator),e6t(t.contextManager)}}class r6t{_delegate;constructor(t){this._delegate=t}export(t,a){this._delegate.export(t,a)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}class mze extends Error{code;name="OTLPExporterError";data;constructor(t,a,r){super(t),this.data=r,this.code=a}}function n6t(e){if(Number.isFinite(e)&&e>0)return e;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${e}')`)}function i6t(e){if(e!=null)return()=>e}function o6t(e,t,a){return{timeoutMillis:n6t(e.timeoutMillis??t.timeoutMillis??a.timeoutMillis),concurrencyLimit:e.concurrencyLimit??t.concurrencyLimit??a.concurrencyLimit,compression:e.compression??t.compression??a.compression}}function s6t(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class l6t{_concurrencyLimit;_sendingPromises=[];constructor(t){this._concurrencyLimit=t}pushPromise(t){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(t);const a=()=>{const r=this._sendingPromises.indexOf(t);this._sendingPromises.splice(r,1)};t.then(a,a)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}function c6t(e){return new l6t(e.concurrencyLimit)}function u6t(e){return Object.prototype.hasOwnProperty.call(e,"partialSuccess")}function d6t(){return{handleResponse(e){e==null||!u6t(e)||e.partialSuccess==null||Object.keys(e.partialSuccess).length===0||mr.warn("Received Partial Success response:",JSON.stringify(e.partialSuccess))}}}class p6t{_transport;_serializer;_responseHandler;_promiseQueue;_timeout;_diagLogger;constructor(t,a,r,n,i){this._transport=t,this._serializer=a,this._responseHandler=r,this._promiseQueue=n,this._timeout=i,this._diagLogger=mr.createComponentLogger({namespace:"OTLPExportDelegate"})}export(t,a){if(this._diagLogger.debug("items to be sent",t),this._promiseQueue.hasReachedLimit()){a({code:Uu.FAILED,error:new Error("Concurrent export limit reached")});return}const r=this._serializer.serializeRequest(t);if(r==null){a({code:Uu.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(r,this._timeout).then(n=>{if(n.status==="success"){if(n.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(n.data))}catch(i){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",i,n.data)}a({code:Uu.SUCCESS});return}else if(n.status==="failure"&&n.error){a({code:Uu.FAILED,error:n.error});return}else n.status==="retryable"?a({code:Uu.FAILED,error:new mze("Export failed with retryable status")}):a({code:Uu.FAILED,error:new mze("Export failed with unknown error")})},n=>a({code:Uu.FAILED,error:n})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function h6t(e,t){return new p6t(e.transport,e.serializer,d6t(),e.promiseHandler,t.timeout)}function fze(e,t,a){return h6t({transport:a,serializer:t,promiseHandler:c6t(e)},{timeout:e.timeoutMillis})}function gze(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function vze(e){const t=new Uint8Array(e.length/2);let a=0;for(let r=0;r<e.length;r+=2){const n=gze(e.charCodeAt(r)),i=gze(e.charCodeAt(r+1));t[a++]=n<<4|i}return t}function bze(e){const t=BigInt(1e9);return BigInt(e[0])*t+BigInt(e[1])}function m6t(e){const t=Number(BigInt.asUintN(32,e)),a=Number(BigInt.asUintN(32,e>>BigInt(32)));return{low:t,high:a}}function f6t(e){const t=bze(e);return m6t(t)}function g6t(e){return bze(e).toString()}const v6t=typeof BigInt<"u"?g6t:nLt;function kze(e){return e}function b6t(e){if(e!==void 0)return vze(e)}const k6t={encodeHrTime:f6t,encodeSpanContext:vze,encodeOptionalSpanContext:b6t};function y6t(e){return e===void 0?k6t:{encodeHrTime:v6t,encodeSpanContext:kze,encodeOptionalSpanContext:kze}}function x6t(e){return{attributes:wM(e.attributes),droppedAttributesCount:0}}function w6t(e){return{name:e.name,version:e.version}}function wM(e){return Object.keys(e).map(t=>yze(t,e[t]))}function yze(e,t){return{key:e,value:xze(t)}}function xze(e){const t=typeof e;return t==="string"?{stringValue:e}:t==="number"?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:t==="boolean"?{boolValue:e}:e instanceof Uint8Array?{bytesValue:e}:Array.isArray(e)?{arrayValue:{values:e.map(xze)}}:t==="object"&&e!=null?{kvlistValue:{values:Object.entries(e).map(([a,r])=>yze(a,r))}}:{}}function S6t(e,t){const a=e.spanContext(),r=e.status,n=e.parentSpanContext?.spanId?t.encodeSpanContext(e.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(a.traceId),spanId:t.encodeSpanContext(a.spanId),parentSpanId:n,traceState:a.traceState?.serialize(),name:e.name,kind:e.kind==null?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:wM(e.attributes),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(i=>j6t(i,t)),droppedEventsCount:e.droppedEventsCount,status:{code:r.code,message:r.message},links:e.links.map(i=>z6t(i,t)),droppedLinksCount:e.droppedLinksCount}}function z6t(e,t){return{attributes:e.attributes?wM(e.attributes):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:e.context.traceState?.serialize(),droppedAttributesCount:e.droppedAttributesCount||0}}function j6t(e,t){return{attributes:e.attributes?wM(e.attributes):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}function O6t(e,t){const a=y6t(t);return{resourceSpans:A6t(e,a)}}function C6t(e){const t=new Map;for(const a of e){let r=t.get(a.resource);r||(r=new Map,t.set(a.resource,r));const n=`${a.instrumentationScope.name}@${a.instrumentationScope.version||""}:${a.instrumentationScope.schemaUrl||""}`;let i=r.get(n);i||(i=[],r.set(n,i)),i.push(a)}return t}function A6t(e,t){const a=C6t(e),r=[],n=a.entries();let i=n.next();for(;!i.done;){const[o,s]=i.value,l=[],c=s.values();let u=c.next();for(;!u.done;){const p=u.value;if(p.length>0){const h=p.map(m=>S6t(m,t));l.push({scope:w6t(p[0].instrumentationScope),spans:h,schemaUrl:p[0].instrumentationScope.schemaUrl})}u=c.next()}const d={resource:x6t(o),scopeSpans:l,schemaUrl:void 0};r.push(d),i=n.next()}return r}const P6t={serializeRequest:e=>{const t=O6t(e,{});return new TextEncoder().encode(JSON.stringify(t))},deserializeResponse:e=>{if(e.length===0)return{};const t=new TextDecoder;return JSON.parse(t.decode(e))}},M6t=5,T6t=1e3,E6t=5e3,_6t=1.5,wze=.2;function R6t(){return Math.random()*(2*wze)-wze}class B6t{_transport;constructor(t){this._transport=t}retry(t,a,r){return new Promise((n,i)=>{setTimeout(()=>{this._transport.send(t,a).then(n,i)},r)})}async send(t,a){const r=Date.now()+a;let n=await this._transport.send(t,a),i=M6t,o=T6t;for(;n.status==="retryable"&&i>0;){i--;const s=Math.max(Math.min(o,E6t)+R6t(),0);o=o*_6t;const l=n.retryInMillis??s,c=r-Date.now();if(l>c)return n;n=await this.retry(t,c,l)}return n}shutdown(){return this._transport.shutdown()}}function Sze(e){return new B6t(e.transport)}function L6t(e){return[429,502,503,504].includes(e)}function N6t(e){if(e==null)return;const t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?t*1e3:-1;const a=new Date(e).getTime()-Date.now();return a>=0?a:0}class D6t{_parameters;constructor(t){this._parameters=t}send(t,a){return new Promise(r=>{const n=new XMLHttpRequest;n.timeout=a,n.open("POST",this._parameters.url);const i=this._parameters.headers();Object.entries(i).forEach(([o,s])=>{n.setRequestHeader(o,s)}),n.ontimeout=o=>{r({status:"failure",error:new Error("XHR request timed out")})},n.onreadystatechange=()=>{n.status>=200&&n.status<=299?(mr.debug("XHR success"),r({status:"success"})):n.status&&L6t(n.status)?r({status:"retryable",retryInMillis:N6t(n.getResponseHeader("Retry-After"))}):n.status!==0&&r({status:"failure",error:new Error("XHR request failed with non-retryable status")})},n.onabort=()=>{r({status:"failure",error:new Error("XHR request aborted")})},n.onerror=()=>{r({status:"failure",error:new Error("XHR request errored")})},n.send(t)})}shutdown(){}}function $6t(e){return new D6t(e)}class I6t{_params;constructor(t){this._params=t}send(t){return new Promise(a=>{navigator.sendBeacon(this._params.url,new Blob([t],{type:this._params.blobType}))?(mr.debug("SendBeacon success"),a({status:"success"})):a({status:"failure",error:new Error("SendBeacon failed")})})}shutdown(){}}function K6t(e){return new I6t(e)}function V6t(e,t){return fze(e,t,Sze({transport:$6t(e)}))}function H6t(e,t){return fze(e,t,Sze({transport:K6t({url:e.url,blobType:e.headers()["Content-Type"]})}))}function F6t(e){return()=>{const t={};return Object.entries(e?.()??{}).forEach(([a,r])=>{typeof r<"u"?t[a]=String(r):mr.warn(`Header "${a}" has invalid value (${r}) and will be ignored`)}),t}}function G6t(e,t,a){const r={...a()},n={};return()=>(t!=null&&Object.assign(n,t()),e!=null&&Object.assign(n,e()),Object.assign(n,r))}function q6t(e){if(e!=null)try{return new URL(e),e}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${e}'`)}}function W6t(e,t,a){return{...o6t(e,t,a),headers:G6t(F6t(e.headers),t.headers,a.headers),url:q6t(e.url)??t.url??a.url,agentOptions:e.agentOptions??t.agentOptions??a.agentOptions}}function J6t(e,t){return{...s6t(),headers:()=>e,url:"http://localhost:4318/"+t,agentOptions:{keepAlive:!0}}}function U6t(e,t,a){return W6t({url:e.url,timeoutMillis:e.timeoutMillis,headers:i6t(e.headers),concurrencyLimit:e.concurrencyLimit},{},J6t(a,t))}function Z6t(e,t,a,r){const n=!!e.headers||typeof navigator.sendBeacon!="function",i=U6t(e,a,r);return n?V6t(i,t):H6t(i,t)}class Q6t extends r6t{constructor(t={}){super(Z6t(t,P6t,"v1/traces",{"Content-Type":"application/json"}))}}class zze{emit(t){}}const Y6t=new zze;class X6t{getLogger(t,a,r){return new zze}}const jze=new X6t;class e8t{constructor(t,a,r,n){this._provider=t,this.name=a,this.version=r,this.options=n}emit(t){this._getLogger().emit(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):Y6t}}class Oze{getLogger(t,a,r){var n;return(n=this.getDelegateLogger(t,a,r))!==null&&n!==void 0?n:new e8t(this,t,a,r)}getDelegate(){var t;return(t=this._delegate)!==null&&t!==void 0?t:jze}setDelegate(t){this._delegate=t}getDelegateLogger(t,a,r){var n;return(n=this._delegate)===null||n===void 0?void 0:n.getLogger(t,a,r)}}const t8t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof globalThis=="object"?globalThis:{},SM=Symbol.for("io.opentelemetry.js.api.logs"),Hx=t8t;function a8t(e,t,a){return r=>r===e?t:a}const Cze=1;class BF{constructor(){this._proxyLoggerProvider=new Oze}static getInstance(){return this._instance||(this._instance=new BF),this._instance}setGlobalLoggerProvider(t){return Hx[SM]?this.getLoggerProvider():(Hx[SM]=a8t(Cze,t,jze),this._proxyLoggerProvider.setDelegate(t),t)}getLoggerProvider(){var t,a;return(a=(t=Hx[SM])===null||t===void 0?void 0:t.call(Hx,Cze))!==null&&a!==void 0?a:this._proxyLoggerProvider}getLogger(t,a,r){return this.getLoggerProvider().getLogger(t,a,r)}disable(){delete Hx[SM],this._proxyLoggerProvider=new Oze}}const r8t=BF.getInstance();function n8t(e,t,a,r){for(let n=0,i=e.length;n<i;n++){const o=e[n];t&&o.setTracerProvider(t),a&&o.setMeterProvider(a),r&&o.setLoggerProvider&&o.setLoggerProvider(r),o.getConfig().enabled||o.enable()}}function i8t(e){e.forEach(t=>t.disable())}function o8t(e){const t=e.tracerProvider||kl.getTracerProvider(),a=e.meterProvider||j4t.getMeterProvider(),r=e.loggerProvider||r8t.getLoggerProvider(),n=e.instrumentations?.flat()??[];return n8t(n,t,a,r),()=>{i8t(n)}}class Aze{span=void 0;constructor(t){this.span=t}error(t){this.span&&(this.span.setStatus($x.ERROR,t.message),this.span.recordException(t),this.span.end())}setAttribute(t,a){this.span&&this.span.setAttribute(t,a)}end(){this.span&&(this.span.setStatus($x.OK),this.span.end())}}class s8t{config=null;tracer=null;tracerProvider=null;initialized=!1;initTracer(t){throw new Error("initTracer must be implemented by the environment-specific client")}init(t){this.config=t,this.initTracer(t)}send(t){try{if(!this.tracer||!this.config)return;const a=t.time?new Date(t.time):new Date;this.tracer.startSpan(`event.${t.type}`,{attributes:this.processAttributes(t,a),startTime:a}).end(a)}catch(a){this.config?.isProd||console.error("Event reporting failed:",a)}}processAttributes(t,a){const r={"cloudevents.event_id":uM(),"cloudevents.event_type":t.type,"cloudevents.event_source":t.source,"cloudevents.event_spec_version":t.specversion,"cloudevents.event_data_content_type":t.datacontenttype||"application/json; charset=utf-8","cloudevents.event_time":a.toISOString(),"cloudevents.event_subject":t.subject??"","cloudevents.page.uri":location.href,"cloudevents.event_version":this.config?.version,"cloudevents.event_origin":this.config?.serviceName,"cloudevents.event_source_details.id":t.sourceDetails?.id??"anonymous","cloudevents.event_source_details.object":t.sourceDetails?.object??"anonymous","cloudevents.event_source_details.uri":t.sourceDetails?.uri};if(t.data&&typeof t.data=="object"&&Object.entries(t.data).forEach(([n,i])=>{const o=n.replace(/([A-Z])/g,"_$1").toLowerCase();i!==void 0&&(r[`cloudevents.event_data.${o}`]=i)}),"subjects"in t&&Array.isArray(t.subjects)){const n=t.subjects.reduce((i,o)=>{if(!o||typeof o!="object")return i;const s=o.object;if(!s||typeof s!="string")return i;const l=i.notUpdated.find(({object:c})=>c===s);return l?(i.updated=[l,o],i.notUpdated=i.notUpdated.filter(({object:c})=>c!==s)):i.updated.some(({object:c})=>c===s)||i.notUpdated.push(o),i},{updated:[],notUpdated:[]});n.updated.forEach((i,o)=>{const s=o===0?"after.":"before.",l=`${i.object}.`;Object.entries(i).forEach(([c,u])=>{u!==void 0&&(r[`cloudevents.subjects.${s}${l}${c}`]=u)})}),n.notUpdated.forEach(i=>{const o=`${i.object}.`;Object.entries(i).forEach(([s,l])=>{l!==void 0&&(r[`cloudevents.subjects.${o}${s}`]=l)})})}return Object.entries(t).forEach(([n,i])=>{["id","source","type","specversion","time","datacontenttype","data","subject","sourceDetails","analyticsMetadata","context"].includes(n)||i!==void 0&&(i instanceof Object?Object.entries(i).forEach(([o,s])=>{s!==void 0&&(r[`cloudevents.${n}.${o}`]=s)}):r[`cloudevents.${n}`]=i)}),r}startSpan(t,a){try{if(!this.tracer)return;let r;const n=t.time?new Date(t.time):new Date,i=this.tracer.startSpan(`event.${t.type}`,{attributes:this.processAttributes(t,n),root:!a},a);return a||(r=kl.setSpan(Vc.active(),i)),{end:()=>i.end(),setAttribute:(o,s)=>{i.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(o)}`,s)},setStatus:(o,s)=>i.setStatus({code:o,message:s}),parentCtx:r}}catch(r){this.config?.isProd||console.error("Event reporting failed:",r)}}startStepSpan(t){try{if(!this.tracer)return;const a=t.time?new Date(t.time):new Date,r=this.tracer.startSpan(`event.${t.type}`,{attributes:this.processAttributes(t,a),root:!1},Vc.active());return{end:()=>r.end(),setAttribute:(n,i)=>{r.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(n)}`,i)},setStatus:(n,i)=>r.setStatus({code:n,message:i}),recordException:n=>r.recordException(n)}}catch(a){this.config?.isProd||console.error("Event reporting failed:",a)}}startRootSpan(t){try{if(!this.tracer)return;const a=t.time?new Date(t.time):new Date,r=this.tracer.startSpan(`event.${t.type}`,{attributes:this.processAttributes(t,a)},Vc.active()),n=kl.setSpan(Vc.active(),r);return{end:()=>r.end(),setAttribute:(i,o)=>{r.setAttribute(`cloudevents.event_data.${this.getKeySnakeValue(i)}`,o)},setStatus:(i,o)=>r.setStatus({code:i,message:o}),recordException:i=>r.recordException(i),context:n}}catch(a){this.config?.isProd||console.error("Event reporting failed:",a)}}startTrace(t){const a=this.startStepSpan(t);if(a)return new Aze(a)}startRootTrace(t){const a=this.startRootSpan(t);if(a)return{traceApi:new Aze(a),context:a.context}}async forceFlush(){return this.tracerProvider?.forceFlush()}getKeySnakeValue=t=>t.replace(/([A-Z])/g,"_$1").toLowerCase()}class l8t extends s8t{tracerProvider=null;tracer=null;initialized=!1;constructor(){super()}initTracer(t){if(!t.collectorUrl&&!t.collectorTraceUrl)return;const a=`ses_${uM()}`,r=oze({[FSe]:t.serviceName,[Z4t]:t.serviceVersion,session_id:a}),n=t.collectorTraceUrl||`${t.collectorUrl}/v1/traces`;this.tracerProvider=new a6t({resource:r,spanProcessors:[new qLt(new Q6t({url:n,headers:{}}))]}),this.tracer=this.tracerProvider.getTracer(t.tracerName),this.tracerProvider.register(),o8t({instrumentations:t.instrumentations??[]}),this.initialized=!0}}class c8t{config=null;initialized=!1;useCloudEventData;otelClient;traceApi;constructor(){this.useCloudEventData=()=>({organization:{id:"",slug:""},project:{id:"",slug:""},productType:"",sourceDetails:{user:"Anonymous",object:"user",uri:""},request:{source:""}}),this.otelClient=new l8t,this.traceApi={startStep:(t,a)=>{const r=this.constructCloudEvent(t,a);return this.otelClient.startTrace(r)},startRoot:(t,a)=>{const r=this.constructCloudEvent(t,a);return this.otelClient.startRootTrace(r)}}}updateCloudEventData=t=>{this.config?.disabled||(this.useCloudEventData=t)};send(t,a){try{if(!this.config?.otel.isProd)return;const r=this.constructCloudEvent(t,a);this.sendToOtelService(r)}catch(r){this.config?.otel.isProd||console.error("Event reporting failed:",r)}}init(t){t.disabled||this.initialized||(this.config=t,this.initialized=!0,this.otelClient.init({serviceVersion:t.otel.serviceVersion,version:t.otel.version,isProd:t.otel.isProd,collectorUrl:t.otel.collectorUrl,collectorTraceUrl:t.otel.collectorTraceUrl,serviceName:t.otel.serviceName,tracerName:t.otel.tracerName,instrumentations:[...t.otel.instrumentations||[]]}))}startSpan(t,a,r){if(this.config?.disabled)return;const n=this.constructCloudEvent(t,a);return this.otelClient.startSpan(n,r)}startStepSpan(t,a){const r=this.constructCloudEvent(t,a);return this.otelClient.startStepSpan(r)}constructCloudEvent(t,a){const r=this.useCloudEventData();return{id:`evt_${uM()}`,type:t,source:r.request.source||"",specversion:"1.0",datacontenttype:"application/json",time:new Date().toISOString(),data:a,origin:"ui",sourceDetails:{id:r.sourceDetails.user||`usr_${uM()}`,object:r.sourceDetails.object||"user",uri:r.sourceDetails.uri||""},organization:r.organization,project:r.project,productType:r.productType}}sendToOtelService(t){this.config?.otel.isProd||console.log("CloudEvent to be sent to OTEL service:",t),this.otelClient.send(t)}forceFlush(){return this.config?.disabled?Promise.resolve():this.otelClient.forceFlush()}sendTabChangeMessage(t){this.send("tab.change",t)}sendButtonClickMessage(t){this.send("button.click",t)}sendChangeMessage(t){this.send("change",t)}sendContentCopyMessage(t){this.send("content.copy",t)}sendUrlClickMessage(t){this.send("url.click",t)}sendRequestSendMessage(t){this.send("request.send",t)}sendTokenGenerateMessage(t){this.send("token.generate",t)}sendAppLifecycleMessage(t){this.send("app.lifecycle",t)}sendEnvironmentManagementMessage(t){this.send("environment.management",t)}sendServerManagementMessage(t){this.send("server.management",t)}sendInputManagementMessage(t){this.send("input.management",t)}sendNodeManagementMessage(t){this.send("node.management",t)}sendHistoryManagementMessage(t){this.send("history.management",t)}sendCredentialManagementMessage(t){this.send("credential.management",t)}sendPanelToggleMessage(t){this.send("panel.toggle",t)}sendWorkflowRunClickMessage(t){this.send("workflow.run.click",t)}sendWorkflowRunResultMessage(t){this.send("workflow.run.result",t)}}function u8t(){return{theme:"light",disableCollectionsTab:!1,oAuth2RedirectURI:null,corsProxyUrl:void 0,mockServer:void 0,certificates:[],isApiBased:!1,generatedEnvironments:[],generatedInputs:[]}}const d8t=u8t(),p8t=K.createContext(d8t);function Zu(){const e=K.useContext(p8t);return Tme(e)}function h8t(e,t){const{apps:{apiId:a}}=Ya(),{corsProxyUrl:r,disableCollectionsTab:n,mockServer:i,oAuth2RedirectURI:o,certificates:s,storageKey:l,isApiBased:c}=Zu();r.set(e?.corsProxyUrl??fSt),i.set(e?.mockServer),a.set(e?.apiId),o.set(e?.oAuth2RedirectURI),n.set(!!e?.disableCollectionsTab),l.set(e?.storageKey),c.set(!!t),K.useEffect(()=>{s.set(e?.certificates||[])},[e?.certificates])}const Pze=K.createContext({});function JI(){return K.useContext(Pze)||{}}const m8t="0.17.0-next.9",f8t={version:m8t};class g8t{client;_isInitialized=!1;constructor(){this.client=new c8t}get isInitialized(){return this._isInitialized}init(t){if(this.isInitialized)return;const a={serviceName:"replay",serviceVersion:f8t.version,version:"1.0.0",tracerName:t?.tracerName||"desktop",collectorUrl:t?.collectorUrl||"",isProd:!0};this.client.init({otel:{...a,...t}}),this._isInitialized=!0}sendEvent(t,a){if(!this.isInitialized){console.warn("Telemetry client not initialized. Call init() first.");return}try{this.client.send(t,a)}catch(r){console.error("Failed to send telemetry event:",r)}}}const UI=new g8t;function Pa(){const{telemetry:e}=JI();return UI.isInitialized||UI.init({tracerName:e?.tracerName,collectorUrl:e?.collectorUrl}),{sendEvent:(t,a)=>{UI.sendEvent(t,a)}}}const is=800;var v8t=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function b8t(e){var t=e.defaultInputValue,a=t===void 0?"":t,r=e.defaultMenuIsOpen,n=r===void 0?!1:r,i=e.defaultValue,o=i===void 0?null:i,s=e.inputValue,l=e.menuIsOpen,c=e.onChange,u=e.onInputChange,d=e.onMenuClose,p=e.onMenuOpen,h=e.value,m=Ic(e,v8t),v=K.useState(s!==void 0?s:a),g=da(v,2),f=g[0],k=g[1],x=K.useState(l!==void 0?l:n),z=da(x,2),w=z[0],j=z[1],O=K.useState(h!==void 0?h:o),M=da(O,2),T=M[0],B=M[1],H=K.useCallback(function(ie,he){typeof c=="function"&&c(ie,he),B(ie)},[c]),N=K.useCallback(function(ie,he){var G;typeof u=="function"&&(G=u(ie,he)),k(G!==void 0?G:ie)},[u]),J=K.useCallback(function(){typeof p=="function"&&p(),j(!0)},[p]),I=K.useCallback(function(){typeof d=="function"&&d(),j(!1)},[d]),X=s!==void 0?s:f,re=l!==void 0?l:w,le=h!==void 0?h:T;return pt(pt({},m),{},{inputValue:X,menuIsOpen:re,onChange:H,onInputChange:N,onMenuClose:I,onMenuOpen:J,value:le})}function k8t(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function y8t(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var x8t=(function(){function e(a){var r=this;this._insertTag=function(n){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(n,i),r.tags.push(n)},this.isSpeedy=a.speedy===void 0?!0:a.speedy,this.tags=[],this.ctr=0,this.nonce=a.nonce,this.key=a.key,this.container=a.container,this.prepend=a.prepend,this.insertionPoint=a.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(a){a.forEach(this._insertTag)},t.insert=function(a){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(y8t(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var n=k8t(r);try{n.insertRule(a,n.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(a));this.ctr++},t.flush=function(){this.tags.forEach(function(a){return a.parentNode&&a.parentNode.removeChild(a)}),this.tags=[],this.ctr=0},e})(),Mo="-ms-",zM="-moz-",fr="-webkit-",Mze="comm",ZI="rule",QI="decl",w8t="@import",Tze="@keyframes",S8t=Math.abs,jM=String.fromCharCode,z8t=Object.assign;function j8t(e,t){return Xi(e,0)^45?(((t<<2^Xi(e,0))<<2^Xi(e,1))<<2^Xi(e,2))<<2^Xi(e,3):0}function Eze(e){return e.trim()}function O8t(e,t){return(e=t.exec(e))?e[0]:e}function xr(e,t,a){return e.replace(t,a)}function YI(e,t){return e.indexOf(t)}function Xi(e,t){return e.charCodeAt(t)|0}function Fx(e,t,a){return e.slice(t,a)}function Qu(e){return e.length}function XI(e){return e.length}function OM(e,t){return t.push(e),e}function C8t(e,t){return e.map(t).join("")}var CM=1,$b=1,_ze=0,Bs=0,ci=0,Ib="";function AM(e,t,a,r,n,i,o){return{value:e,root:t,parent:a,type:r,props:n,children:i,line:CM,column:$b,length:o,return:""}}function Gx(e,t){return z8t(AM("",null,null,"",null,null,0),e,{length:-e.length},t)}function A8t(){return ci}function P8t(){return ci=Bs>0?Xi(Ib,--Bs):0,$b--,ci===10&&($b=1,CM--),ci}function yl(){return ci=Bs<_ze?Xi(Ib,Bs++):0,$b++,ci===10&&($b=1,CM++),ci}function Yu(){return Xi(Ib,Bs)}function PM(){return Bs}function qx(e,t){return Fx(Ib,e,t)}function Wx(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Rze(e){return CM=$b=1,_ze=Qu(Ib=e),Bs=0,[]}function Bze(e){return Ib="",e}function MM(e){return Eze(qx(Bs-1,eK(e===91?e+2:e===40?e+1:e)))}function M8t(e){for(;(ci=Yu())&&ci<33;)yl();return Wx(e)>2||Wx(ci)>3?"":" "}function T8t(e,t){for(;--t&&yl()&&!(ci<48||ci>102||ci>57&&ci<65||ci>70&&ci<97););return qx(e,PM()+(t<6&&Yu()==32&&yl()==32))}function eK(e){for(;yl();)switch(ci){case e:return Bs;case 34:case 39:e!==34&&e!==39&&eK(ci);break;case 40:e===41&&eK(e);break;case 92:yl();break}return Bs}function E8t(e,t){for(;yl()&&e+ci!==57&&!(e+ci===84&&Yu()===47););return"/*"+qx(t,Bs-1)+"*"+jM(e===47?e:yl())}function _8t(e){for(;!Wx(Yu());)yl();return qx(e,Bs)}function R8t(e){return Bze(TM("",null,null,null,[""],e=Rze(e),0,[0],e))}function TM(e,t,a,r,n,i,o,s,l){for(var c=0,u=0,d=o,p=0,h=0,m=0,v=1,g=1,f=1,k=0,x="",z=n,w=i,j=r,O=x;g;)switch(m=k,k=yl()){case 40:if(m!=108&&Xi(O,d-1)==58){YI(O+=xr(MM(k),"&","&\f"),"&\f")!=-1&&(f=-1);break}case 34:case 39:case 91:O+=MM(k);break;case 9:case 10:case 13:case 32:O+=M8t(m);break;case 92:O+=T8t(PM()-1,7);continue;case 47:switch(Yu()){case 42:case 47:OM(B8t(E8t(yl(),PM()),t,a),l);break;default:O+="/"}break;case 123*v:s[c++]=Qu(O)*f;case 125*v:case 59:case 0:switch(k){case 0:case 125:g=0;case 59+u:h>0&&Qu(O)-d&&OM(h>32?Nze(O+";",r,a,d-1):Nze(xr(O," ","")+";",r,a,d-2),l);break;case 59:O+=";";default:if(OM(j=Lze(O,t,a,c,u,n,s,x,z=[],w=[],d),i),k===123)if(u===0)TM(O,t,j,j,z,i,d,s,w);else switch(p===99&&Xi(O,3)===110?100:p){case 100:case 109:case 115:TM(e,j,j,r&&OM(Lze(e,j,j,0,0,n,s,x,n,z=[],d),w),n,w,d,s,r?z:w);break;default:TM(O,j,j,j,[""],w,0,s,w)}}c=u=h=0,v=f=1,x=O="",d=o;break;case 58:d=1+Qu(O),h=m;default:if(v<1){if(k==123)--v;else if(k==125&&v++==0&&P8t()==125)continue}switch(O+=jM(k),k*v){case 38:f=u>0?1:(O+="\f",-1);break;case 44:s[c++]=(Qu(O)-1)*f,f=1;break;case 64:Yu()===45&&(O+=MM(yl())),p=Yu(),u=d=Qu(x=O+=_8t(PM())),k++;break;case 45:m===45&&Qu(O)==2&&(v=0)}}return i}function Lze(e,t,a,r,n,i,o,s,l,c,u){for(var d=n-1,p=n===0?i:[""],h=XI(p),m=0,v=0,g=0;m<r;++m)for(var f=0,k=Fx(e,d+1,d=S8t(v=o[m])),x=e;f<h;++f)(x=Eze(v>0?p[f]+" "+k:xr(k,/&\f/g,p[f])))&&(l[g++]=x);return AM(e,t,a,n===0?ZI:s,l,c,u)}function B8t(e,t,a){return AM(e,t,a,Mze,jM(A8t()),Fx(e,2,-2),0)}function Nze(e,t,a,r){return AM(e,t,a,QI,Fx(e,0,r),Fx(e,r+1,-1),r)}function Kb(e,t){for(var a="",r=XI(e),n=0;n<r;n++)a+=t(e[n],n,e,t)||"";return a}function L8t(e,t,a,r){switch(e.type){case w8t:case QI:return e.return=e.return||e.value;case Mze:return"";case Tze:return e.return=e.value+"{"+Kb(e.children,r)+"}";case ZI:e.value=e.props.join(",")}return Qu(a=Kb(e.children,r))?e.return=e.value+"{"+a+"}":""}function N8t(e){var t=XI(e);return function(a,r,n,i){for(var o="",s=0;s<t;s++)o+=e[s](a,r,n,i)||"";return o}}function D8t(e){return function(t){t.root||(t=t.return)&&e(t)}}function $8t(e){var t=Object.create(null);return function(a){return t[a]===void 0&&(t[a]=e(a)),t[a]}}var I8t=function(e,t,a){for(var r=0,n=0;r=n,n=Yu(),r===38&&n===12&&(t[a]=1),!Wx(n);)yl();return qx(e,Bs)},K8t=function(e,t){var a=-1,r=44;do switch(Wx(r)){case 0:r===38&&Yu()===12&&(t[a]=1),e[a]+=I8t(Bs-1,t,a);break;case 2:e[a]+=MM(r);break;case 4:if(r===44){e[++a]=Yu()===58?"&\f":"",t[a]=e[a].length;break}default:e[a]+=jM(r)}while(r=yl());return e},V8t=function(e,t){return Bze(K8t(Rze(e),t))},Dze=new WeakMap,H8t=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,a=e.parent,r=e.column===a.column&&e.line===a.line;a.type!=="rule";)if(a=a.parent,!a)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!Dze.get(a))&&!r){Dze.set(e,!0);for(var n=[],i=V8t(t,n),o=a.props,s=0,l=0;s<i.length;s++)for(var c=0;c<o.length;c++,l++)e.props[l]=n[s]?i[s].replace(/&\f/g,o[c]):o[c]+" "+i[s]}}},F8t=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};function $ze(e,t){switch(j8t(e,t)){case 5103:return fr+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return fr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return fr+e+zM+e+Mo+e+e;case 6828:case 4268:return fr+e+Mo+e+e;case 6165:return fr+e+Mo+"flex-"+e+e;case 5187:return fr+e+xr(e,/(\w+).+(:[^]+)/,fr+"box-$1$2"+Mo+"flex-$1$2")+e;case 5443:return fr+e+Mo+"flex-item-"+xr(e,/flex-|-self/,"")+e;case 4675:return fr+e+Mo+"flex-line-pack"+xr(e,/align-content|flex-|-self/,"")+e;case 5548:return fr+e+Mo+xr(e,"shrink","negative")+e;case 5292:return fr+e+Mo+xr(e,"basis","preferred-size")+e;case 6060:return fr+"box-"+xr(e,"-grow","")+fr+e+Mo+xr(e,"grow","positive")+e;case 4554:return fr+xr(e,/([^-])(transform)/g,"$1"+fr+"$2")+e;case 6187:return xr(xr(xr(e,/(zoom-|grab)/,fr+"$1"),/(image-set)/,fr+"$1"),e,"")+e;case 5495:case 3959:return xr(e,/(image-set\([^]*)/,fr+"$1$`$1");case 4968:return xr(xr(e,/(.+:)(flex-)?(.*)/,fr+"box-pack:$3"+Mo+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+fr+e+e;case 4095:case 3583:case 4068:case 2532:return xr(e,/(.+)-inline(.+)/,fr+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Qu(e)-1-t>6)switch(Xi(e,t+1)){case 109:if(Xi(e,t+4)!==45)break;case 102:return xr(e,/(.+:)(.+)-([^]+)/,"$1"+fr+"$2-$3$1"+zM+(Xi(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~YI(e,"stretch")?$ze(xr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Xi(e,t+1)!==115)break;case 6444:switch(Xi(e,Qu(e)-3-(~YI(e,"!important")&&10))){case 107:return xr(e,":",":"+fr)+e;case 101:return xr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+fr+(Xi(e,14)===45?"inline-":"")+"box$3$1"+fr+"$2$3$1"+Mo+"$2box$3")+e}break;case 5936:switch(Xi(e,t+11)){case 114:return fr+e+Mo+xr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return fr+e+Mo+xr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return fr+e+Mo+xr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return fr+e+Mo+e+e}return e}var G8t=function(e,t,a,r){if(e.length>-1&&!e.return)switch(e.type){case QI:e.return=$ze(e.value,e.length);break;case Tze:return Kb([Gx(e,{value:xr(e.value,"@","@"+fr)})],r);case ZI:if(e.length)return C8t(e.props,function(n){switch(O8t(n,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Kb([Gx(e,{props:[xr(n,/:(read-\w+)/,":"+zM+"$1")]})],r);case"::placeholder":return Kb([Gx(e,{props:[xr(n,/:(plac\w+)/,":"+fr+"input-$1")]}),Gx(e,{props:[xr(n,/:(plac\w+)/,":"+zM+"$1")]}),Gx(e,{props:[xr(n,/:(plac\w+)/,Mo+"input-$1")]})],r)}return""})}},q8t=[G8t],W8t=function(e){var t=e.key;if(t==="css"){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,function(m){var v=m.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var r=e.stylisPlugins||q8t,n={},i,o=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var v=m.getAttribute("data-emotion").split(" "),g=1;g<v.length;g++)n[v[g]]=!0;o.push(m)});var s,l=[H8t,F8t];{var c,u=[L8t,D8t(function(m){c.insert(m)})],d=N8t(l.concat(r,u)),p=function(m){return Kb(R8t(m),d)};s=function(m,v,g,f){c=g,p(m?m+"{"+v.styles+"}":v.styles),f&&(h.inserted[v.name]=!0)}}var h={key:t,sheet:new x8t({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:n,registered:{},insert:s};return h.sheet.hydrate(o),h},J8t=!0;function U8t(e,t,a){var r="";return a.split(" ").forEach(function(n){e[n]!==void 0?t.push(e[n]+";"):r+=n+" "}),r}var Ize=function(e,t,a){var r=e.key+"-"+t.name;(a===!1||J8t===!1)&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},Z8t=function(e,t,a){Ize(e,t,a);var r=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var n=t;do e.insert(t===n?"."+r:"",n,e.sheet,!0),n=n.next;while(n!==void 0)}};function Q8t(e){for(var t=0,a,r=0,n=e.length;n>=4;++r,n-=4)a=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,a=(a&65535)*1540483477+((a>>>16)*59797<<16),a^=a>>>24,t=(a&65535)*1540483477+((a>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(n){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Y8t={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},X8t=/[A-Z]|^ms/g,e9t=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Kze=function(e){return e.charCodeAt(1)===45},Vze=function(e){return e!=null&&typeof e!="boolean"},tK=$8t(function(e){return Kze(e)?e:e.replace(X8t,"-$&").toLowerCase()}),Hze=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(e9t,function(a,r,n){return Xu={name:r,styles:n,next:Xu},r})}return Y8t[e]!==1&&!Kze(e)&&typeof t=="number"&&t!==0?t+"px":t};function Jx(e,t,a){if(a==null)return"";if(a.__emotion_styles!==void 0)return a;switch(typeof a){case"boolean":return"";case"object":{if(a.anim===1)return Xu={name:a.name,styles:a.styles,next:Xu},a.name;if(a.styles!==void 0){var r=a.next;if(r!==void 0)for(;r!==void 0;)Xu={name:r.name,styles:r.styles,next:Xu},r=r.next;var n=a.styles+";";return n}return t9t(e,t,a)}case"function":{if(e!==void 0){var i=Xu,o=a(e);return Xu=i,Jx(e,t,o)}break}}return a}function t9t(e,t,a){var r="";if(Array.isArray(a))for(var n=0;n<a.length;n++)r+=Jx(e,t,a[n])+";";else for(var i in a){var o=a[i];if(typeof o!="object")Vze(o)&&(r+=tK(i)+":"+Hze(i,o)+";");else if(Array.isArray(o)&&typeof o[0]=="string"&&t==null)for(var s=0;s<o.length;s++)Vze(o[s])&&(r+=tK(i)+":"+Hze(i,o[s])+";");else{var l=Jx(e,t,o);switch(i){case"animation":case"animationName":{r+=tK(i)+":"+l+";";break}default:r+=i+"{"+l+"}"}}}return r}var Fze=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Xu,Gze=function(e,t,a){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,n="";Xu=void 0;var i=e[0];i==null||i.raw===void 0?(r=!1,n+=Jx(a,t,i)):n+=i[0];for(var o=1;o<e.length;o++)n+=Jx(a,t,e[o]),r&&(n+=i[o]);Fze.lastIndex=0;for(var s="",l;(l=Fze.exec(n))!==null;)s+="-"+l[1];var c=Q8t(n)+s;return{name:c,styles:n,next:Xu}},a9t=function(e){return e()},r9t=Tm.useInsertionEffect?Tm.useInsertionEffect:!1,n9t=r9t||a9t,aK={}.hasOwnProperty,i9t=K.createContext(typeof HTMLElement<"u"?W8t({key:"css"}):null),o9t=function(e){return K.forwardRef(function(t,a){var r=K.useContext(i9t);return e(t,r,a)})},s9t=K.createContext({}),rK="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",l9t=function(e,t){var a={};for(var r in t)aK.call(t,r)&&(a[r]=t[r]);return a[rK]=e,a},c9t=function(e){var t=e.cache,a=e.serialized,r=e.isStringTag;return Ize(t,a,r),n9t(function(){return Z8t(t,a,r)}),null},u9t=o9t(function(e,t,a){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var n=e[rK],i=[r],o="";typeof e.className=="string"?o=U8t(t.registered,i,e.className):e.className!=null&&(o=e.className+" ");var s=Gze(i,void 0,K.useContext(s9t));o+=t.key+"-"+s.name;var l={};for(var c in e)aK.call(e,c)&&c!=="css"&&c!==rK&&(l[c]=e[c]);return l.ref=a,l.className=o,K.createElement(K.Fragment,null,K.createElement(c9t,{cache:t,serialized:s,isStringTag:typeof n=="string"}),K.createElement(n,l))}),Kt=function(e,t){var a=arguments;if(t==null||!aK.call(t,"css"))return K.createElement.apply(void 0,a);var r=a.length,n=new Array(r);n[0]=u9t,n[1]=l9t(e,t);for(var i=2;i<r;i++)n[i]=a[i];return K.createElement.apply(null,n)};function nK(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return Gze(t)}var d9t=function(){var e=nK.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};function p9t(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const h9t=Math.min,m9t=Math.max,EM=Math.round,_M=Math.floor,RM=e=>({x:e,y:e});function f9t(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function qze(e){return Jze(e)?(e.nodeName||"").toLowerCase():"#document"}function ap(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Wze(e){var t;return(t=(Jze(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Jze(e){return e instanceof Node||e instanceof ap(e).Node}function g9t(e){return e instanceof Element||e instanceof ap(e).Element}function iK(e){return e instanceof HTMLElement||e instanceof ap(e).HTMLElement}function Uze(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ap(e).ShadowRoot}function Zze(e){const{overflow:t,overflowX:a,overflowY:r,display:n}=oK(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+a)&&!["inline","contents"].includes(n)}function v9t(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function b9t(e){return["html","body","#document"].includes(qze(e))}function oK(e){return ap(e).getComputedStyle(e)}function k9t(e){if(qze(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Uze(e)&&e.host||Wze(e);return Uze(t)?t.host:t}function Qze(e){const t=k9t(e);return b9t(t)?e.ownerDocument?e.ownerDocument.body:e.body:iK(t)&&Zze(t)?t:Qze(t)}function BM(e,t,a){var r;t===void 0&&(t=[]),a===void 0&&(a=!0);const n=Qze(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),o=ap(n);return i?t.concat(o,o.visualViewport||[],Zze(n)?n:[],o.frameElement&&a?BM(o.frameElement):[]):t.concat(n,BM(n,[],a))}function y9t(e){const t=oK(e);let a=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const n=iK(e),i=n?e.offsetWidth:a,o=n?e.offsetHeight:r,s=EM(a)!==i||EM(r)!==o;return s&&(a=i,r=o),{width:a,height:r,$:s}}function sK(e){return g9t(e)?e:e.contextElement}function Yze(e){const t=sK(e);if(!iK(t))return RM(1);const a=t.getBoundingClientRect(),{width:r,height:n,$:i}=y9t(t);let o=(i?EM(a.width):a.width)/r,s=(i?EM(a.height):a.height)/n;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const x9t=RM(0);function w9t(e){const t=ap(e);return!v9t()||!t.visualViewport?x9t:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function S9t(e,t,a){return!1}function Xze(e,t,a,r){t===void 0&&(t=!1);const n=e.getBoundingClientRect(),i=sK(e);let o=RM(1);t&&(o=Yze(e));const s=S9t()?w9t(i):RM(0);let l=(n.left+s.x)/o.x,c=(n.top+s.y)/o.y,u=n.width/o.x,d=n.height/o.y;if(i){const p=ap(i),h=r;let m=p.frameElement;for(;m&&r&&h!==p;){const v=Yze(m),g=m.getBoundingClientRect(),f=oK(m),k=g.left+(m.clientLeft+parseFloat(f.paddingLeft))*v.x,x=g.top+(m.clientTop+parseFloat(f.paddingTop))*v.y;l*=v.x,c*=v.y,u*=v.x,d*=v.y,l+=k,c+=x,m=ap(m).frameElement}}return f9t({width:u,height:d,x:l,y:c})}function z9t(e,t){let a=null,r;const n=Wze(e);function i(){clearTimeout(r),a&&a.disconnect(),a=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),i();const{left:c,top:u,width:d,height:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const h=_M(u),m=_M(n.clientWidth-(c+d)),v=_M(n.clientHeight-(u+p)),g=_M(c),f={rootMargin:-h+"px "+-m+"px "+-v+"px "+-g+"px",threshold:m9t(0,h9t(1,l))||1};let k=!0;function x(z){const w=z[0].intersectionRatio;if(w!==l){if(!k)return o();w?o(!1,w):r=setTimeout(()=>{o(!1,1e-7)},100)}k=!1}try{a=new IntersectionObserver(x,{...f,root:n.ownerDocument})}catch{a=new IntersectionObserver(x,f)}a.observe(e)}return o(!0),i}function j9t(e,t,a,r){r===void 0&&(r={});const{ancestorScroll:n=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=sK(e),u=n||i?[...c?BM(c):[],...BM(t)]:[];u.forEach(f=>{n&&f.addEventListener("scroll",a,{passive:!0}),i&&f.addEventListener("resize",a)});const d=c&&s?z9t(c,a):null;let p=-1,h=null;o&&(h=new ResizeObserver(f=>{let[k]=f;k&&k.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{h&&h.observe(t)})),a()}),c&&!l&&h.observe(c),h.observe(t));let m,v=l?Xze(e):null;l&&g();function g(){const f=Xze(e);v&&(f.x!==v.x||f.y!==v.y||f.width!==v.width||f.height!==v.height)&&a(),v=f,m=requestAnimationFrame(g)}return a(),()=>{u.forEach(f=>{n&&f.removeEventListener("scroll",a),i&&f.removeEventListener("resize",a)}),d&&d(),h&&h.disconnect(),h=null,l&&cancelAnimationFrame(m)}}var lK=K.useLayoutEffect,O9t=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],LM=function(){};function C9t(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function A9t(e,t){for(var a=arguments.length,r=new Array(a>2?a-2:0),n=2;n<a;n++)r[n-2]=arguments[n];var i=[].concat(r);if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&i.push("".concat(C9t(e,o)));return i.filter(function(s){return s}).map(function(s){return String(s).trim()}).join(" ")}var eje=function(e){return N9t(e)?e.filter(Boolean):gl(e)==="object"&&e!==null?[e]:[]},tje=function(e){var t=Ic(e,O9t);return pt({},t)},Dn=function(e,t,a){var r=e.cx,n=e.getStyles,i=e.getClassNames,o=e.className;return{css:n(t,e),className:r(a??{},i(t,e),o)}};function NM(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function P9t(e){return NM(e)?window.innerHeight:e.clientHeight}function aje(e){return NM(e)?window.pageYOffset:e.scrollTop}function DM(e,t){if(NM(e)){window.scrollTo(0,t);return}e.scrollTop=t}function M9t(e){var t=getComputedStyle(e),a=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var n=e;n=n.parentElement;)if(t=getComputedStyle(n),!(a&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return n;return document.documentElement}function T9t(e,t,a,r){return a*((e=e/r-1)*e*e+1)+t}function $M(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:LM,n=aje(e),i=t-n,o=10,s=0;function l(){s+=o;var c=T9t(s,n,i,a);DM(e,c),s<a?window.requestAnimationFrame(l):r(e)}l()}function rje(e,t){var a=e.getBoundingClientRect(),r=t.getBoundingClientRect(),n=t.offsetHeight/3;r.bottom+n>a.bottom?DM(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+n,e.scrollHeight)):r.top-n<a.top&&DM(e,Math.max(t.offsetTop-n,0))}function E9t(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function nje(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function _9t(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var ije=!1,R9t={get passive(){return ije=!0}},IM=typeof window<"u"?window:{};IM.addEventListener&&IM.removeEventListener&&(IM.addEventListener("p",LM,R9t),IM.removeEventListener("p",LM,!1));var B9t=ije;function L9t(e){return e!=null}function N9t(e){return Array.isArray(e)}function KM(e,t,a){return e?t:a}var D9t=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),r=1;r<t;r++)a[r-1]=arguments[r];var n=Object.entries(e).filter(function(i){var o=da(i,1),s=o[0];return!a.includes(s)});return n.reduce(function(i,o){var s=da(o,2),l=s[0],c=s[1];return i[l]=c,i},{})},$9t=["children","innerProps"],I9t=["children","innerProps"];function K9t(e){var t=e.maxHeight,a=e.menuEl,r=e.minHeight,n=e.placement,i=e.shouldScroll,o=e.isFixedPosition,s=e.controlHeight,l=M9t(a),c={placement:"bottom",maxHeight:t};if(!a||!a.offsetParent)return c;var u=l.getBoundingClientRect(),d=u.height,p=a.getBoundingClientRect(),h=p.bottom,m=p.height,v=p.top,g=a.offsetParent.getBoundingClientRect(),f=g.top,k=o?window.innerHeight:P9t(l),x=aje(l),z=parseInt(getComputedStyle(a).marginBottom,10),w=parseInt(getComputedStyle(a).marginTop,10),j=f-w,O=k-v,M=j+x,T=d-x-v,B=h-k+x+z,H=x+v-w,N=160;switch(n){case"auto":case"bottom":if(O>=m)return{placement:"bottom",maxHeight:t};if(T>=m&&!o)return i&&$M(l,B,N),{placement:"bottom",maxHeight:t};if(!o&&T>=r||o&&O>=r){i&&$M(l,B,N);var J=o?O-z:T-z;return{placement:"bottom",maxHeight:J}}if(n==="auto"||o){var I=t,X=o?j:M;return X>=r&&(I=Math.min(X-z-s,t)),{placement:"top",maxHeight:I}}if(n==="bottom")return i&&DM(l,B),{placement:"bottom",maxHeight:t};break;case"top":if(j>=m)return{placement:"top",maxHeight:t};if(M>=m&&!o)return i&&$M(l,H,N),{placement:"top",maxHeight:t};if(!o&&M>=r||o&&j>=r){var re=t;return(!o&&M>=r||o&&j>=r)&&(re=o?j-w:M-w),i&&$M(l,H,N),{placement:"top",maxHeight:re}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(n,'".'))}return c}function V9t(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var oje=function(e){return e==="auto"?"bottom":e},H9t=function(e,t){var a,r=e.placement,n=e.theme,i=n.borderRadius,o=n.spacing,s=n.colors;return pt((a={label:"menu"},Po(a,V9t(r),"100%"),Po(a,"position","absolute"),Po(a,"width","100%"),Po(a,"zIndex",1),a),t?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:o.menuGutter,marginTop:o.menuGutter})},sje=K.createContext(null),F9t=function(e){var t=e.children,a=e.minMenuHeight,r=e.maxMenuHeight,n=e.menuPlacement,i=e.menuPosition,o=e.menuShouldScrollIntoView,s=e.theme,l=K.useContext(sje)||{},c=l.setPortalPlacement,u=K.useRef(null),d=K.useState(r),p=da(d,2),h=p[0],m=p[1],v=K.useState(null),g=da(v,2),f=g[0],k=g[1],x=s.spacing.controlHeight;return lK(function(){var z=u.current;if(z){var w=i==="fixed",j=o&&!w,O=K9t({maxHeight:r,menuEl:z,minHeight:a,placement:n,shouldScroll:j,isFixedPosition:w,controlHeight:x});m(O.maxHeight),k(O.placement),c?.(O.placement)}},[r,n,i,o,a,c,x]),t({ref:u,placerProps:pt(pt({},e),{},{placement:f||oje(n),maxHeight:h})})},G9t=function(e){var t=e.children,a=e.innerRef,r=e.innerProps;return Kt("div",Nt({},Dn(e,"menu",{menu:!0}),{ref:a},r),t)},q9t=G9t,W9t=function(e,t){var a=e.maxHeight,r=e.theme.spacing.baseUnit;return pt({maxHeight:a,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},J9t=function(e){var t=e.children,a=e.innerProps,r=e.innerRef,n=e.isMulti;return Kt("div",Nt({},Dn(e,"menuList",{"menu-list":!0,"menu-list--is-multi":n}),{ref:r},a),t)},lje=function(e,t){var a=e.theme,r=a.spacing.baseUnit,n=a.colors;return pt({textAlign:"center"},t?{}:{color:n.neutral40,padding:"".concat(r*2,"px ").concat(r*3,"px")})},U9t=lje,Z9t=lje,Q9t=function(e){var t=e.children,a=t===void 0?"No options":t,r=e.innerProps,n=Ic(e,$9t);return Kt("div",Nt({},Dn(pt(pt({},n),{},{children:a,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),a)},Y9t=function(e){var t=e.children,a=t===void 0?"Loading...":t,r=e.innerProps,n=Ic(e,I9t);return Kt("div",Nt({},Dn(pt(pt({},n),{},{children:a,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),a)},X9t=function(e){var t=e.rect,a=e.offset,r=e.position;return{left:t.left,position:r,top:a,width:t.width,zIndex:1}},eNt=function(e){var t=e.appendTo,a=e.children,r=e.controlElement,n=e.innerProps,i=e.menuPlacement,o=e.menuPosition,s=K.useRef(null),l=K.useRef(null),c=K.useState(oje(i)),u=da(c,2),d=u[0],p=u[1],h=K.useMemo(function(){return{setPortalPlacement:p}},[]),m=K.useState(null),v=da(m,2),g=v[0],f=v[1],k=K.useCallback(function(){if(r){var j=E9t(r),O=o==="fixed"?0:window.pageYOffset,M=j[d]+O;(M!==g?.offset||j.left!==g?.rect.left||j.width!==g?.rect.width)&&f({offset:M,rect:j})}},[r,o,d,g?.offset,g?.rect.left,g?.rect.width]);lK(function(){k()},[k]);var x=K.useCallback(function(){typeof l.current=="function"&&(l.current(),l.current=null),r&&s.current&&(l.current=j9t(r,s.current,k,{elementResize:"ResizeObserver"in window}))},[r,k]);lK(function(){x()},[x]);var z=K.useCallback(function(j){s.current=j,x()},[x]);if(!t&&o!=="fixed"||!g)return null;var w=Kt("div",Nt({ref:z},Dn(pt(pt({},e),{},{offset:g.offset,position:o,rect:g.rect}),"menuPortal",{"menu-portal":!0}),n),a);return Kt(sje.Provider,{value:h},t?_z.createPortal(w,t):w)},tNt=function(e){var t=e.isDisabled,a=e.isRtl;return{label:"container",direction:a?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},aNt=function(e){var t=e.children,a=e.innerProps,r=e.isDisabled,n=e.isRtl;return Kt("div",Nt({},Dn(e,"container",{"--is-disabled":r,"--is-rtl":n}),a),t)},rNt=function(e,t){var a=e.theme.spacing,r=e.isMulti,n=e.hasValue,i=e.selectProps.controlShouldRenderValue;return pt({alignItems:"center",display:r&&n&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(a.baseUnit/2,"px ").concat(a.baseUnit*2,"px")})},nNt=function(e){var t=e.children,a=e.innerProps,r=e.isMulti,n=e.hasValue;return Kt("div",Nt({},Dn(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":n}),a),t)},iNt=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},oNt=function(e){var t=e.children,a=e.innerProps;return Kt("div",Nt({},Dn(e,"indicatorsContainer",{indicators:!0}),a),t)},cje,sNt=["size"],lNt=["innerProps","isRtl","size"],cNt={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},uje=function(e){var t=e.size,a=Ic(e,sNt);return Kt("svg",Nt({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:cNt},a))},cK=function(e){return Kt(uje,Nt({size:20},e),Kt("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},dje=function(e){return Kt(uje,Nt({size:20},e),Kt("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},pje=function(e,t){var a=e.isFocused,r=e.theme,n=r.spacing.baseUnit,i=r.colors;return pt({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:a?i.neutral60:i.neutral20,padding:n*2,":hover":{color:a?i.neutral80:i.neutral40}})},uNt=pje,dNt=function(e){var t=e.children,a=e.innerProps;return Kt("div",Nt({},Dn(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),a),t||Kt(dje,null))},pNt=pje,hNt=function(e){var t=e.children,a=e.innerProps;return Kt("div",Nt({},Dn(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),a),t||Kt(cK,null))},mNt=function(e,t){var a=e.isDisabled,r=e.theme,n=r.spacing.baseUnit,i=r.colors;return pt({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:a?i.neutral10:i.neutral20,marginBottom:n*2,marginTop:n*2})},fNt=function(e){var t=e.innerProps;return Kt("span",Nt({},t,Dn(e,"indicatorSeparator",{"indicator-separator":!0})))},gNt=d9t(cje||(cje=p9t([`
|
|
11131
11131
|
0%, 80%, 100% { opacity: 0; }
|
|
11132
11132
|
40% { opacity: 1; }
|
|
11133
11133
|
`]))),vNt=function(e,t){var a=e.isFocused,r=e.size,n=e.theme,i=n.colors,o=n.spacing.baseUnit;return pt({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:a?i.neutral60:i.neutral20,padding:o*2})},uK=function(e){var t=e.delay,a=e.offset;return Kt("span",{css:nK({animation:"".concat(gNt," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:a?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},bNt=function(e){var t=e.innerProps,a=e.isRtl,r=e.size,n=r===void 0?4:r,i=Ic(e,lNt);return Kt("div",Nt({},Dn(pt(pt({},i),{},{innerProps:t,isRtl:a,size:n}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Kt(uK,{delay:0,offset:a}),Kt(uK,{delay:160,offset:!0}),Kt(uK,{delay:320,offset:!a}))},kNt=function(e,t){var a=e.isDisabled,r=e.isFocused,n=e.theme,i=n.colors,o=n.borderRadius,s=n.spacing;return pt({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:a?i.neutral5:i.neutral0,borderColor:a?i.neutral10:r?i.primary:i.neutral20,borderRadius:o,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},yNt=function(e){var t=e.children,a=e.isDisabled,r=e.isFocused,n=e.innerRef,i=e.innerProps,o=e.menuIsOpen;return Kt("div",Nt({ref:n},Dn(e,"control",{control:!0,"control--is-disabled":a,"control--is-focused":r,"control--menu-is-open":o}),i,{"aria-disabled":a||void 0}),t)},xNt=yNt,wNt=["data"],SNt=function(e,t){var a=e.theme.spacing;return t?{}:{paddingBottom:a.baseUnit*2,paddingTop:a.baseUnit*2}},zNt=function(e){var t=e.children,a=e.cx,r=e.getStyles,n=e.getClassNames,i=e.Heading,o=e.headingProps,s=e.innerProps,l=e.label,c=e.theme,u=e.selectProps;return Kt("div",Nt({},Dn(e,"group",{group:!0}),s),Kt(i,Nt({},o,{selectProps:u,theme:c,getStyles:r,getClassNames:n,cx:a}),l),Kt("div",null,t))},jNt=function(e,t){var a=e.theme,r=a.colors,n=a.spacing;return pt({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:n.baseUnit*3,paddingRight:n.baseUnit*3,textTransform:"uppercase"})},ONt=function(e){var t=tje(e),a=Ic(t,wNt);return Kt("div",Nt({},Dn(e,"groupHeading",{"group-heading":!0}),a))},CNt=zNt,ANt=["innerRef","isDisabled","isHidden","inputClassName"],PNt=function(e,t){var a=e.isDisabled,r=e.value,n=e.theme,i=n.spacing,o=n.colors;return pt(pt({visibility:a?"hidden":"visible",transform:r?"translateZ(0)":""},MNt),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:o.neutral80})},hje={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},MNt={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":pt({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},hje)},TNt=function(e){return pt({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},hje)},ENt=function(e){var t=e.cx,a=e.value,r=tje(e),n=r.innerRef,i=r.isDisabled,o=r.isHidden,s=r.inputClassName,l=Ic(r,ANt);return Kt("div",Nt({},Dn(e,"input",{"input-container":!0}),{"data-value":a||""}),Kt("input",Nt({className:t({input:!0},s),ref:n,style:TNt(o),disabled:i},l)))},_Nt=ENt,RNt=function(e,t){var a=e.theme,r=a.spacing,n=a.borderRadius,i=a.colors;return pt({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:n/2,margin:r.baseUnit/2})},BNt=function(e,t){var a=e.theme,r=a.borderRadius,n=a.colors,i=e.cropWithEllipsis;return pt({overflow:"hidden",textOverflow:i||i===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:n.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},LNt=function(e,t){var a=e.theme,r=a.spacing,n=a.borderRadius,i=a.colors,o=e.isFocused;return pt({alignItems:"center",display:"flex"},t?{}:{borderRadius:n/2,backgroundColor:o?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},mje=function(e){var t=e.children,a=e.innerProps;return Kt("div",a,t)},NNt=mje,DNt=mje;function $Nt(e){var t=e.children,a=e.innerProps;return Kt("div",Nt({role:"button"},a),t||Kt(cK,{size:14}))}var INt=function(e){var t=e.children,a=e.components,r=e.data,n=e.innerProps,i=e.isDisabled,o=e.removeProps,s=e.selectProps,l=a.Container,c=a.Label,u=a.Remove;return Kt(l,{data:r,innerProps:pt(pt({},Dn(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),n),selectProps:s},Kt(c,{data:r,innerProps:pt({},Dn(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),Kt(u,{data:r,innerProps:pt(pt({},Dn(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},o),selectProps:s}))},KNt=INt,VNt=function(e,t){var a=e.isDisabled,r=e.isFocused,n=e.isSelected,i=e.theme,o=i.spacing,s=i.colors;return pt({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:n?s.primary:r?s.primary25:"transparent",color:a?s.neutral20:n?s.neutral0:"inherit",padding:"".concat(o.baseUnit*2,"px ").concat(o.baseUnit*3,"px"),":active":{backgroundColor:a?void 0:n?s.primary:s.primary50}})},HNt=function(e){var t=e.children,a=e.isDisabled,r=e.isFocused,n=e.isSelected,i=e.innerRef,o=e.innerProps;return Kt("div",Nt({},Dn(e,"option",{option:!0,"option--is-disabled":a,"option--is-focused":r,"option--is-selected":n}),{ref:i,"aria-disabled":a},o),t)},FNt=HNt,GNt=function(e,t){var a=e.theme,r=a.spacing,n=a.colors;return pt({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:n.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},qNt=function(e){var t=e.children,a=e.innerProps;return Kt("div",Nt({},Dn(e,"placeholder",{placeholder:!0}),a),t)},WNt=qNt,JNt=function(e,t){var a=e.isDisabled,r=e.theme,n=r.spacing,i=r.colors;return pt({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:a?i.neutral40:i.neutral80,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2})},UNt=function(e){var t=e.children,a=e.isDisabled,r=e.innerProps;return Kt("div",Nt({},Dn(e,"singleValue",{"single-value":!0,"single-value--is-disabled":a}),r),t)},ZNt=UNt,VM={ClearIndicator:hNt,Control:xNt,DropdownIndicator:dNt,DownChevron:dje,CrossIcon:cK,Group:CNt,GroupHeading:ONt,IndicatorsContainer:oNt,IndicatorSeparator:fNt,Input:_Nt,LoadingIndicator:bNt,Menu:q9t,MenuList:J9t,MenuPortal:eNt,LoadingMessage:Y9t,NoOptionsMessage:Q9t,MultiValue:KNt,MultiValueContainer:NNt,MultiValueLabel:DNt,MultiValueRemove:$Nt,Option:FNt,Placeholder:WNt,SelectContainer:aNt,SingleValue:ZNt,ValueContainer:nNt},QNt=function(e){return pt(pt({},VM),e.components)},fje=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function YNt(e,t){return!!(e===t||fje(e)&&fje(t))}function XNt(e,t){if(e.length!==t.length)return!1;for(var a=0;a<e.length;a++)if(!YNt(e[a],t[a]))return!1;return!0}function eDt(e,t){t===void 0&&(t=XNt);var a=null;function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(a&&a.lastThis===this&&t(n,a.lastArgs))return a.lastResult;var o=e.apply(this,n);return a={lastResult:o,lastArgs:n,lastThis:this},o}return r.clear=function(){a=null},r}for(var tDt={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},aDt=function(e){return Kt("span",Nt({css:tDt},e))},gje=aDt,rDt={guidance:function(e){var t=e.isSearchable,a=e.isMulti,r=e.tabSelectsValue,n=e.context,i=e.isInitialFocus;switch(n){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(a?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,a=e.label,r=a===void 0?"":a,n=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(n.length>1?"s":""," ").concat(n.join(","),", selected.");case"select-option":return i?"option ".concat(r," is disabled. Select another option."):"option ".concat(r,", selected.");default:return""}},onFocus:function(e){var t=e.context,a=e.focused,r=e.options,n=e.label,i=n===void 0?"":n,o=e.selectValue,s=e.isDisabled,l=e.isSelected,c=e.isAppleDevice,u=function(h,m){return h&&h.length?"".concat(h.indexOf(m)+1," of ").concat(h.length):""};if(t==="value"&&o)return"value ".concat(i," focused, ").concat(u(o,a),".");if(t==="menu"&&c){var d=s?" disabled":"",p="".concat(l?" selected":"").concat(d);return"".concat(i).concat(p,", ").concat(u(r,a),".")}return""},onFilter:function(e){var t=e.inputValue,a=e.resultsMessage;return"".concat(a).concat(t?" for search term "+t:"",".")}},nDt=function(e){var t=e.ariaSelection,a=e.focusedOption,r=e.focusedValue,n=e.focusableOptions,i=e.isFocused,o=e.selectValue,s=e.selectProps,l=e.id,c=e.isAppleDevice,u=s.ariaLiveMessages,d=s.getOptionLabel,p=s.inputValue,h=s.isMulti,m=s.isOptionDisabled,v=s.isSearchable,g=s.menuIsOpen,f=s.options,k=s.screenReaderStatus,x=s.tabSelectsValue,z=s.isLoading,w=s["aria-label"],j=s["aria-live"],O=K.useMemo(function(){return pt(pt({},rDt),u||{})},[u]),M=K.useMemo(function(){var I="";if(t&&O.onChange){var X=t.option,re=t.options,le=t.removedValue,ie=t.removedValues,he=t.value,G=function(V){return Array.isArray(V)?null:V},D=le||X||G(he),W=D?d(D):"",$=re||ie||void 0,P=$?$.map(d):[],R=pt({isDisabled:D&&m(D,o),label:W,labels:P},t);I=O.onChange(R)}return I},[t,O,m,o,d]),T=K.useMemo(function(){var I="",X=a||r,re=!!(a&&o&&o.includes(a));if(X&&O.onFocus){var le={focused:X,label:d(X),isDisabled:m(X,o),isSelected:re,options:n,context:X===a?"menu":"value",selectValue:o,isAppleDevice:c};I=O.onFocus(le)}return I},[a,r,d,m,O,n,o,c]),B=K.useMemo(function(){var I="";if(g&&f.length&&!z&&O.onFilter){var X=k({count:n.length});I=O.onFilter({inputValue:p,resultsMessage:X})}return I},[n,p,g,O,f,k,z]),H=t?.action==="initial-input-focus",N=K.useMemo(function(){var I="";if(O.guidance){var X=r?"value":g?"menu":"input";I=O.guidance({"aria-label":w,context:X,isDisabled:a&&m(a,o),isMulti:h,isSearchable:v,tabSelectsValue:x,isInitialFocus:H})}return I},[w,a,r,h,m,v,g,O,o,x,H]),J=Kt(K.Fragment,null,Kt("span",{id:"aria-selection"},M),Kt("span",{id:"aria-focused"},T),Kt("span",{id:"aria-results"},B),Kt("span",{id:"aria-guidance"},N));return Kt(K.Fragment,null,Kt(gje,{id:l},H&&J),Kt(gje,{"aria-live":j,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!H&&J))},iDt=nDt,dK=[{base:"A",letters:"A\u24B6\uFF21\xC0\xC1\xC2\u1EA6\u1EA4\u1EAA\u1EA8\xC3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\xC4\u01DE\u1EA2\xC5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F"},{base:"AA",letters:"\uA732"},{base:"AE",letters:"\xC6\u01FC\u01E2"},{base:"AO",letters:"\uA734"},{base:"AU",letters:"\uA736"},{base:"AV",letters:"\uA738\uA73A"},{base:"AY",letters:"\uA73C"},{base:"B",letters:"B\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181"},{base:"C",letters:"C\u24B8\uFF23\u0106\u0108\u010A\u010C\xC7\u1E08\u0187\u023B\uA73E"},{base:"D",letters:"D\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779"},{base:"DZ",letters:"\u01F1\u01C4"},{base:"Dz",letters:"\u01F2\u01C5"},{base:"E",letters:"E\u24BA\uFF25\xC8\xC9\xCA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\xCB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E"},{base:"F",letters:"F\u24BB\uFF26\u1E1E\u0191\uA77B"},{base:"G",letters:"G\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E"},{base:"H",letters:"H\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D"},{base:"I",letters:"I\u24BE\uFF29\xCC\xCD\xCE\u0128\u012A\u012C\u0130\xCF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197"},{base:"J",letters:"J\u24BF\uFF2A\u0134\u0248"},{base:"K",letters:"K\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2"},{base:"L",letters:"L\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780"},{base:"LJ",letters:"\u01C7"},{base:"Lj",letters:"\u01C8"},{base:"M",letters:"M\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C"},{base:"N",letters:"N\u24C3\uFF2E\u01F8\u0143\xD1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4"},{base:"NJ",letters:"\u01CA"},{base:"Nj",letters:"\u01CB"},{base:"O",letters:"O\u24C4\uFF2F\xD2\xD3\xD4\u1ED2\u1ED0\u1ED6\u1ED4\xD5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\xD6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\xD8\u01FE\u0186\u019F\uA74A\uA74C"},{base:"OI",letters:"\u01A2"},{base:"OO",letters:"\uA74E"},{base:"OU",letters:"\u0222"},{base:"P",letters:"P\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754"},{base:"Q",letters:"Q\u24C6\uFF31\uA756\uA758\u024A"},{base:"R",letters:"R\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782"},{base:"S",letters:"S\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784"},{base:"T",letters:"T\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786"},{base:"TZ",letters:"\uA728"},{base:"U",letters:"U\u24CA\uFF35\xD9\xDA\xDB\u0168\u1E78\u016A\u1E7A\u016C\xDC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244"},{base:"V",letters:"V\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245"},{base:"VY",letters:"\uA760"},{base:"W",letters:"W\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72"},{base:"X",letters:"X\u24CD\uFF38\u1E8A\u1E8C"},{base:"Y",letters:"Y\u24CE\uFF39\u1EF2\xDD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE"},{base:"Z",letters:"Z\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762"},{base:"a",letters:"a\u24D0\uFF41\u1E9A\xE0\xE1\xE2\u1EA7\u1EA5\u1EAB\u1EA9\xE3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\xE4\u01DF\u1EA3\xE5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250"},{base:"aa",letters:"\uA733"},{base:"ae",letters:"\xE6\u01FD\u01E3"},{base:"ao",letters:"\uA735"},{base:"au",letters:"\uA737"},{base:"av",letters:"\uA739\uA73B"},{base:"ay",letters:"\uA73D"},{base:"b",letters:"b\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253"},{base:"c",letters:"c\u24D2\uFF43\u0107\u0109\u010B\u010D\xE7\u1E09\u0188\u023C\uA73F\u2184"},{base:"d",letters:"d\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A"},{base:"dz",letters:"\u01F3\u01C6"},{base:"e",letters:"e\u24D4\uFF45\xE8\xE9\xEA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\xEB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD"},{base:"f",letters:"f\u24D5\uFF46\u1E1F\u0192\uA77C"},{base:"g",letters:"g\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F"},{base:"h",letters:"h\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24D8\uFF49\xEC\xED\xEE\u0129\u012B\u012D\xEF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131"},{base:"j",letters:"j\u24D9\uFF4A\u0135\u01F0\u0249"},{base:"k",letters:"k\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3"},{base:"l",letters:"l\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747"},{base:"lj",letters:"\u01C9"},{base:"m",letters:"m\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F"},{base:"n",letters:"n\u24DD\uFF4E\u01F9\u0144\xF1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5"},{base:"nj",letters:"\u01CC"},{base:"o",letters:"o\u24DE\uFF4F\xF2\xF3\xF4\u1ED3\u1ED1\u1ED7\u1ED5\xF5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\xF6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\xF8\u01FF\u0254\uA74B\uA74D\u0275"},{base:"oi",letters:"\u01A3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\uA74F"},{base:"p",letters:"p\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755"},{base:"q",letters:"q\u24E0\uFF51\u024B\uA757\uA759"},{base:"r",letters:"r\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783"},{base:"s",letters:"s\u24E2\uFF53\xDF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B"},{base:"t",letters:"t\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787"},{base:"tz",letters:"\uA729"},{base:"u",letters:"u\u24E4\uFF55\xF9\xFA\xFB\u0169\u1E79\u016B\u1E7B\u016D\xFC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289"},{base:"v",letters:"v\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C"},{base:"vy",letters:"\uA761"},{base:"w",letters:"w\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73"},{base:"x",letters:"x\u24E7\uFF58\u1E8B\u1E8D"},{base:"y",letters:"y\u24E8\uFF59\u1EF3\xFD\u0177\u1EF9\u0233\u1E8F\xFF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF"},{base:"z",letters:"z\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763"}],oDt=new RegExp("["+dK.map(function(e){return e.letters}).join("")+"]","g"),vje={},pK=0;pK<dK.length;pK++)for(var hK=dK[pK],mK=0;mK<hK.letters.length;mK++)vje[hK.letters[mK]]=hK.base;var bje=function(e){return e.replace(oDt,function(t){return vje[t]})},sDt=eDt(bje),kje=function(e){return e.replace(/^\s+|\s+$/g,"")},lDt=function(e){return"".concat(e.label," ").concat(e.value)},cDt=function(e){return function(t,a){if(t.data.__isNew__)return!0;var r=pt({ignoreCase:!0,ignoreAccents:!0,stringify:lDt,trim:!0,matchFrom:"any"},e),n=r.ignoreCase,i=r.ignoreAccents,o=r.stringify,s=r.trim,l=r.matchFrom,c=s?kje(a):a,u=s?kje(o(t)):o(t);return n&&(c=c.toLowerCase(),u=u.toLowerCase()),i&&(c=sDt(c),u=bje(u)),l==="start"?u.substr(0,c.length)===c:u.indexOf(c)>-1}},uDt=["innerRef"];function dDt(e){var t=e.innerRef,a=Ic(e,uDt),r=D9t(a,"onExited","in","enter","exit","appear");return Kt("input",Nt({ref:t},r,{css:nK({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var pDt=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};function hDt(e){var t=e.isEnabled,a=e.onBottomArrive,r=e.onBottomLeave,n=e.onTopArrive,i=e.onTopLeave,o=K.useRef(!1),s=K.useRef(!1),l=K.useRef(0),c=K.useRef(null),u=K.useCallback(function(g,f){if(c.current!==null){var k=c.current,x=k.scrollTop,z=k.scrollHeight,w=k.clientHeight,j=c.current,O=f>0,M=z-w-x,T=!1;M>f&&o.current&&(r&&r(g),o.current=!1),O&&s.current&&(i&&i(g),s.current=!1),O&&f>M?(a&&!o.current&&a(g),j.scrollTop=z,T=!0,o.current=!0):!O&&-f>x&&(n&&!s.current&&n(g),j.scrollTop=0,T=!0,s.current=!0),T&&pDt(g)}},[a,r,n,i]),d=K.useCallback(function(g){u(g,g.deltaY)},[u]),p=K.useCallback(function(g){l.current=g.changedTouches[0].clientY},[]),h=K.useCallback(function(g){var f=l.current-g.changedTouches[0].clientY;u(g,f)},[u]),m=K.useCallback(function(g){if(g){var f=B9t?{passive:!1}:!1;g.addEventListener("wheel",d,f),g.addEventListener("touchstart",p,f),g.addEventListener("touchmove",h,f)}},[h,p,d]),v=K.useCallback(function(g){g&&(g.removeEventListener("wheel",d,!1),g.removeEventListener("touchstart",p,!1),g.removeEventListener("touchmove",h,!1))},[h,p,d]);return K.useEffect(function(){if(t){var g=c.current;return m(g),function(){v(g)}}},[t,m,v]),function(g){c.current=g}}var yje=["boxSizing","height","overflow","paddingRight","position"],xje={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function wje(e){e.cancelable&&e.preventDefault()}function Sje(e){e.stopPropagation()}function zje(){var e=this.scrollTop,t=this.scrollHeight,a=e+this.offsetHeight;e===0?this.scrollTop=1:a===t&&(this.scrollTop=e-1)}function jje(){return"ontouchstart"in window||navigator.maxTouchPoints}var Oje=!!(typeof window<"u"&&window.document&&window.document.createElement),Ux=0,Vb={capture:!1,passive:!1};function mDt(e){var t=e.isEnabled,a=e.accountForScrollbars,r=a===void 0?!0:a,n=K.useRef({}),i=K.useRef(null),o=K.useCallback(function(l){if(Oje){var c=document.body,u=c&&c.style;if(r&&yje.forEach(function(m){var v=u&&u[m];n.current[m]=v}),r&&Ux<1){var d=parseInt(n.current.paddingRight,10)||0,p=document.body?document.body.clientWidth:0,h=window.innerWidth-p+d||0;Object.keys(xje).forEach(function(m){var v=xje[m];u&&(u[m]=v)}),u&&(u.paddingRight="".concat(h,"px"))}c&&jje()&&(c.addEventListener("touchmove",wje,Vb),l&&(l.addEventListener("touchstart",zje,Vb),l.addEventListener("touchmove",Sje,Vb))),Ux+=1}},[r]),s=K.useCallback(function(l){if(Oje){var c=document.body,u=c&&c.style;Ux=Math.max(Ux-1,0),r&&Ux<1&&yje.forEach(function(d){var p=n.current[d];u&&(u[d]=p)}),c&&jje()&&(c.removeEventListener("touchmove",wje,Vb),l&&(l.removeEventListener("touchstart",zje,Vb),l.removeEventListener("touchmove",Sje,Vb)))}},[r]);return K.useEffect(function(){if(t){var l=i.current;return o(l),function(){s(l)}}},[t,o,s]),function(l){i.current=l}}var fDt=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},gDt={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function vDt(e){var t=e.children,a=e.lockEnabled,r=e.captureEnabled,n=r===void 0?!0:r,i=e.onBottomArrive,o=e.onBottomLeave,s=e.onTopArrive,l=e.onTopLeave,c=hDt({isEnabled:n,onBottomArrive:i,onBottomLeave:o,onTopArrive:s,onTopLeave:l}),u=mDt({isEnabled:a}),d=function(p){c(p),u(p)};return Kt(K.Fragment,null,a&&Kt("div",{onClick:fDt,css:gDt}),t(d))}var bDt={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},kDt=function(e){var t=e.name,a=e.onFocus;return Kt("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:a,css:bDt,value:"",onChange:function(){}})},yDt=kDt;function fK(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function xDt(){return fK(/^iPhone/i)}function Cje(){return fK(/^Mac/i)}function wDt(){return fK(/^iPad/i)||Cje()&&navigator.maxTouchPoints>1}function SDt(){return xDt()||wDt()}function zDt(){return Cje()||SDt()}var jDt=function(e){return e.label},ODt=function(e){return e.label},CDt=function(e){return e.value},ADt=function(e){return!!e.isDisabled},PDt={clearIndicator:pNt,container:tNt,control:kNt,dropdownIndicator:uNt,group:SNt,groupHeading:jNt,indicatorsContainer:iNt,indicatorSeparator:mNt,input:PNt,loadingIndicator:vNt,loadingMessage:Z9t,menu:H9t,menuList:W9t,menuPortal:X9t,multiValue:RNt,multiValueLabel:BNt,multiValueRemove:LNt,noOptionsMessage:U9t,option:VNt,placeholder:GNt,singleValue:JNt,valueContainer:rNt},MDt={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},TDt=4,Aje=4,EDt=38,_Dt=Aje*2,RDt={baseUnit:Aje,controlHeight:EDt,menuGutter:_Dt},gK={borderRadius:TDt,colors:MDt,spacing:RDt},BDt={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:nje(),captureMenuScroll:!nje(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:cDt(),formatGroupLabel:jDt,getOptionLabel:ODt,getOptionValue:CDt,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:ADt,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!_9t(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(t!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Pje(e,t,a,r){var n=Rje(e,t,a),i=Bje(e,t,a),o=_je(e,t),s=FM(e,t);return{type:"option",data:t,isDisabled:n,isSelected:i,label:o,value:s,index:r}}function HM(e,t){return e.options.map(function(a,r){if("options"in a){var n=a.options.map(function(o,s){return Pje(e,o,t,s)}).filter(function(o){return Eje(e,o)});return n.length>0?{type:"group",data:a,options:n,index:r}:void 0}var i=Pje(e,a,t,r);return Eje(e,i)?i:void 0}).filter(L9t)}function Mje(e){return e.reduce(function(t,a){return a.type==="group"?t.push.apply(t,Ob(a.options.map(function(r){return r.data}))):t.push(a.data),t},[])}function Tje(e,t){return e.reduce(function(a,r){return r.type==="group"?a.push.apply(a,Ob(r.options.map(function(n){return{data:n.data,id:"".concat(t,"-").concat(r.index,"-").concat(n.index)}}))):a.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),a},[])}function LDt(e,t){return Mje(HM(e,t))}function Eje(e,t){var a=e.inputValue,r=a===void 0?"":a,n=t.data,i=t.isSelected,o=t.label,s=t.value;return(!Nje(e)||!i)&&Lje(e,{label:o,value:s,data:n},r)}function NDt(e,t){var a=e.focusedValue,r=e.selectValue,n=r.indexOf(a);if(n>-1){var i=t.indexOf(a);if(i>-1)return a;if(n<t.length)return t[n]}return null}function DDt(e,t){var a=e.focusedOption;return a&&t.indexOf(a)>-1?a:t[0]}var vK=function(e,t){var a,r=(a=e.find(function(n){return n.data===t}))===null||a===void 0?void 0:a.id;return r||null},_je=function(e,t){return e.getOptionLabel(t)},FM=function(e,t){return e.getOptionValue(t)};function Rje(e,t,a){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,a):!1}function Bje(e,t,a){if(a.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,a);var r=FM(e,t);return a.some(function(n){return FM(e,n)===r})}function Lje(e,t,a){return e.filterOption?e.filterOption(t,a):!0}var Nje=function(e){var t=e.hideSelectedOptions,a=e.isMulti;return t===void 0?a:t},$Dt=1,Dje=(function(e){dI(a,e);var t=hI(a);function a(r){var n;if(cI(this,a),n=t.call(this,r),n.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},n.blockOptionHover=!1,n.isComposing=!1,n.commonProps=void 0,n.initialTouchX=0,n.initialTouchY=0,n.openAfterFocus=!1,n.scrollToFocusedOptionOnUpdate=!1,n.userIsDragging=void 0,n.isAppleDevice=zDt(),n.controlRef=null,n.getControlRef=function(l){n.controlRef=l},n.focusedOptionRef=null,n.getFocusedOptionRef=function(l){n.focusedOptionRef=l},n.menuListRef=null,n.getMenuListRef=function(l){n.menuListRef=l},n.inputRef=null,n.getInputRef=function(l){n.inputRef=l},n.focus=n.focusInput,n.blur=n.blurInput,n.onChange=function(l,c){var u=n.props,d=u.onChange,p=u.name;c.name=p,n.ariaOnChange(l,c),d(l,c)},n.setValue=function(l,c,u){var d=n.props,p=d.closeMenuOnSelect,h=d.isMulti,m=d.inputValue;n.onInputChange("",{action:"set-value",prevInputValue:m}),p&&(n.setState({inputIsHiddenAfterUpdate:!h}),n.onMenuClose()),n.setState({clearFocusValueOnUpdate:!0}),n.onChange(l,{action:c,option:u})},n.selectOption=function(l){var c=n.props,u=c.blurInputOnSelect,d=c.isMulti,p=c.name,h=n.state.selectValue,m=d&&n.isOptionSelected(l,h),v=n.isOptionDisabled(l,h);if(m){var g=n.getOptionValue(l);n.setValue(h.filter(function(f){return n.getOptionValue(f)!==g}),"deselect-option",l)}else if(!v)d?n.setValue([].concat(Ob(h),[l]),"select-option",l):n.setValue(l,"select-option");else{n.ariaOnChange(l,{action:"select-option",option:l,name:p});return}u&&n.blurInput()},n.removeValue=function(l){var c=n.props.isMulti,u=n.state.selectValue,d=n.getOptionValue(l),p=u.filter(function(m){return n.getOptionValue(m)!==d}),h=KM(c,p,p[0]||null);n.onChange(h,{action:"remove-value",removedValue:l}),n.focusInput()},n.clearValue=function(){var l=n.state.selectValue;n.onChange(KM(n.props.isMulti,[],null),{action:"clear",removedValues:l})},n.popValue=function(){var l=n.props.isMulti,c=n.state.selectValue,u=c[c.length-1],d=c.slice(0,c.length-1),p=KM(l,d,d[0]||null);u&&n.onChange(p,{action:"pop-value",removedValue:u})},n.getFocusedOptionId=function(l){return vK(n.state.focusableOptionsWithIds,l)},n.getFocusableOptionsWithIds=function(){return Tje(HM(n.props,n.state.selectValue),n.getElementId("option"))},n.getValue=function(){return n.state.selectValue},n.cx=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return A9t.apply(void 0,[n.props.classNamePrefix].concat(c))},n.getOptionLabel=function(l){return _je(n.props,l)},n.getOptionValue=function(l){return FM(n.props,l)},n.getStyles=function(l,c){var u=n.props.unstyled,d=PDt[l](c,u);d.boxSizing="border-box";var p=n.props.styles[l];return p?p(d,c):d},n.getClassNames=function(l,c){var u,d;return(u=(d=n.props.classNames)[l])===null||u===void 0?void 0:u.call(d,c)},n.getElementId=function(l){return"".concat(n.state.instancePrefix,"-").concat(l)},n.getComponents=function(){return QNt(n.props)},n.buildCategorizedOptions=function(){return HM(n.props,n.state.selectValue)},n.getCategorizedOptions=function(){return n.props.menuIsOpen?n.buildCategorizedOptions():[]},n.buildFocusableOptions=function(){return Mje(n.buildCategorizedOptions())},n.getFocusableOptions=function(){return n.props.menuIsOpen?n.buildFocusableOptions():[]},n.ariaOnChange=function(l,c){n.setState({ariaSelection:pt({value:l},c)})},n.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),n.focusInput())},n.onMenuMouseMove=function(l){n.blockOptionHover=!1},n.onControlMouseDown=function(l){if(!l.defaultPrevented){var c=n.props.openMenuOnClick;n.state.isFocused?n.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&n.onMenuClose():c&&n.openMenu("first"):(c&&(n.openAfterFocus=!0),n.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},n.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!n.props.isDisabled){var c=n.props,u=c.isMulti,d=c.menuIsOpen;n.focusInput(),d?(n.setState({inputIsHiddenAfterUpdate:!u}),n.onMenuClose()):n.openMenu("first"),l.preventDefault()}},n.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(n.clearValue(),l.preventDefault(),n.openAfterFocus=!1,l.type==="touchend"?n.focusInput():setTimeout(function(){return n.focusInput()}))},n.onScroll=function(l){typeof n.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&NM(l.target)&&n.props.onMenuClose():typeof n.props.closeMenuOnScroll=="function"&&n.props.closeMenuOnScroll(l)&&n.props.onMenuClose()},n.onCompositionStart=function(){n.isComposing=!0},n.onCompositionEnd=function(){n.isComposing=!1},n.onTouchStart=function(l){var c=l.touches,u=c&&c.item(0);u&&(n.initialTouchX=u.clientX,n.initialTouchY=u.clientY,n.userIsDragging=!1)},n.onTouchMove=function(l){var c=l.touches,u=c&&c.item(0);if(u){var d=Math.abs(u.clientX-n.initialTouchX),p=Math.abs(u.clientY-n.initialTouchY),h=5;n.userIsDragging=d>h||p>h}},n.onTouchEnd=function(l){n.userIsDragging||(n.controlRef&&!n.controlRef.contains(l.target)&&n.menuListRef&&!n.menuListRef.contains(l.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)},n.onControlTouchEnd=function(l){n.userIsDragging||n.onControlMouseDown(l)},n.onClearIndicatorTouchEnd=function(l){n.userIsDragging||n.onClearIndicatorMouseDown(l)},n.onDropdownIndicatorTouchEnd=function(l){n.userIsDragging||n.onDropdownIndicatorMouseDown(l)},n.handleInputChange=function(l){var c=n.props.inputValue,u=l.currentTarget.value;n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange(u,{action:"input-change",prevInputValue:c}),n.props.menuIsOpen||n.onMenuOpen()},n.onInputFocus=function(l){n.props.onFocus&&n.props.onFocus(l),n.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1},n.onInputBlur=function(l){var c=n.props.inputValue;if(n.menuListRef&&n.menuListRef.contains(document.activeElement)){n.inputRef.focus();return}n.props.onBlur&&n.props.onBlur(l),n.onInputChange("",{action:"input-blur",prevInputValue:c}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1})},n.onOptionHover=function(l){if(!(n.blockOptionHover||n.state.focusedOption===l)){var c=n.getFocusableOptions(),u=c.indexOf(l);n.setState({focusedOption:l,focusedOptionId:u>-1?n.getFocusedOptionId(l):null})}},n.shouldHideSelectedOptions=function(){return Nje(n.props)},n.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),n.focus()},n.onKeyDown=function(l){var c=n.props,u=c.isMulti,d=c.backspaceRemovesValue,p=c.escapeClearsValue,h=c.inputValue,m=c.isClearable,v=c.isDisabled,g=c.menuIsOpen,f=c.onKeyDown,k=c.tabSelectsValue,x=c.openMenuOnFocus,z=n.state,w=z.focusedOption,j=z.focusedValue,O=z.selectValue;if(!v&&!(typeof f=="function"&&(f(l),l.defaultPrevented))){switch(n.blockOptionHover=!0,l.key){case"ArrowLeft":if(!u||h)return;n.focusValue("previous");break;case"ArrowRight":if(!u||h)return;n.focusValue("next");break;case"Delete":case"Backspace":if(h)return;if(j)n.removeValue(j);else{if(!d)return;u?n.popValue():m&&n.clearValue()}break;case"Tab":if(n.isComposing||l.shiftKey||!g||!k||!w||x&&n.isOptionSelected(w,O))return;n.selectOption(w);break;case"Enter":if(l.keyCode===229)break;if(g){if(!w||n.isComposing)return;n.selectOption(w);break}return;case"Escape":g?(n.setState({inputIsHiddenAfterUpdate:!1}),n.onInputChange("",{action:"menu-close",prevInputValue:h}),n.onMenuClose()):m&&p&&n.clearValue();break;case" ":if(h)return;if(!g){n.openMenu("first");break}if(!w)return;n.selectOption(w);break;case"ArrowUp":g?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":g?n.focusOption("down"):n.openMenu("first");break;case"PageUp":if(!g)return;n.focusOption("pageup");break;case"PageDown":if(!g)return;n.focusOption("pagedown");break;case"Home":if(!g)return;n.focusOption("first");break;case"End":if(!g)return;n.focusOption("last");break;default:return}l.preventDefault()}},n.state.instancePrefix="react-select-"+(n.props.instanceId||++$Dt),n.state.selectValue=eje(r.value),r.menuIsOpen&&n.state.selectValue.length){var i=n.getFocusableOptionsWithIds(),o=n.buildFocusableOptions(),s=o.indexOf(n.state.selectValue[0]);n.state.focusableOptionsWithIds=i,n.state.focusedOption=o[s],n.state.focusedOptionId=vK(i,o[s])}return n}return uI(a,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&rje(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(r){var n=this.props,i=n.isDisabled,o=n.menuIsOpen,s=this.state.isFocused;(s&&!i&&r.isDisabled||s&&o&&!r.menuIsOpen)&&this.focusInput(),s&&i&&!r.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!s&&!i&&r.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(rje(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(r,n){this.props.onInputChange(r,n)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(r){var n=this,i=this.state,o=i.selectValue,s=i.isFocused,l=this.buildFocusableOptions(),c=r==="first"?0:l.length-1;if(!this.props.isMulti){var u=l.indexOf(o[0]);u>-1&&(c=u)}this.scrollToFocusedOptionOnUpdate=!(s&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:l[c],focusedOptionId:this.getFocusedOptionId(l[c])},function(){return n.onMenuOpen()})}},{key:"focusValue",value:function(r){var n=this.state,i=n.selectValue,o=n.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var s=i.indexOf(o);o||(s=-1);var l=i.length-1,c=-1;if(i.length){switch(r){case"previous":s===0?c=0:s===-1?c=l:c=s-1;break;case"next":s>-1&&s<l&&(c=s+1);break}this.setState({inputIsHidden:c!==-1,focusedValue:i[c]})}}}},{key:"focusOption",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",n=this.props.pageSize,i=this.state.focusedOption,o=this.getFocusableOptions();if(o.length){var s=0,l=o.indexOf(i);i||(l=-1),r==="up"?s=l>0?l-1:o.length-1:r==="down"?s=(l+1)%o.length:r==="pageup"?(s=l-n,s<0&&(s=0)):r==="pagedown"?(s=l+n,s>o.length-1&&(s=o.length-1)):r==="last"&&(s=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[s],focusedValue:null,focusedOptionId:this.getFocusedOptionId(o[s])})}}},{key:"getTheme",value:(function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(gK):pt(pt({},gK),this.props.theme):gK})},{key:"getCommonProps",value:function(){var r=this.clearValue,n=this.cx,i=this.getStyles,o=this.getClassNames,s=this.getValue,l=this.selectOption,c=this.setValue,u=this.props,d=u.isMulti,p=u.isRtl,h=u.options,m=this.hasValue();return{clearValue:r,cx:n,getStyles:i,getClassNames:o,getValue:s,hasValue:m,isMulti:d,isRtl:p,options:h,selectOption:l,selectProps:u,setValue:c,theme:this.getTheme()}}},{key:"hasValue",value:function(){var r=this.state.selectValue;return r.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var r=this.props,n=r.isClearable,i=r.isMulti;return n===void 0?i:n}},{key:"isOptionDisabled",value:function(r,n){return Rje(this.props,r,n)}},{key:"isOptionSelected",value:function(r,n){return Bje(this.props,r,n)}},{key:"filterOption",value:function(r,n){return Lje(this.props,r,n)}},{key:"formatOptionLabel",value:function(r,n){if(typeof this.props.formatOptionLabel=="function"){var i=this.props.inputValue,o=this.state.selectValue;return this.props.formatOptionLabel(r,{context:n,inputValue:i,selectValue:o})}else return this.getOptionLabel(r)}},{key:"formatGroupLabel",value:function(r){return this.props.formatGroupLabel(r)}},{key:"startListeningComposition",value:(function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))})},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:(function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))})},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:(function(){var r=this.props,n=r.isDisabled,i=r.isSearchable,o=r.inputId,s=r.inputValue,l=r.tabIndex,c=r.form,u=r.menuIsOpen,d=r.required,p=this.getComponents(),h=p.Input,m=this.state,v=m.inputIsHidden,g=m.ariaSelection,f=this.commonProps,k=o||this.getElementId("input"),x=pt(pt(pt({"aria-autocomplete":"list","aria-expanded":u,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":d,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},u&&{"aria-controls":this.getElementId("listbox")}),!i&&{"aria-readonly":!0}),this.hasValue()?g?.action==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return i?K.createElement(h,Nt({},f,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:k,innerRef:this.getInputRef,isDisabled:n,isHidden:v,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:l,form:c,type:"text",value:s},x)):K.createElement(dDt,Nt({id:k,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:LM,onFocus:this.onInputFocus,disabled:n,tabIndex:l,inputMode:"none",form:c,value:""},x))})},{key:"renderPlaceholderOrValue",value:function(){var r=this,n=this.getComponents(),i=n.MultiValue,o=n.MultiValueContainer,s=n.MultiValueLabel,l=n.MultiValueRemove,c=n.SingleValue,u=n.Placeholder,d=this.commonProps,p=this.props,h=p.controlShouldRenderValue,m=p.isDisabled,v=p.isMulti,g=p.inputValue,f=p.placeholder,k=this.state,x=k.selectValue,z=k.focusedValue,w=k.isFocused;if(!this.hasValue()||!h)return g?null:K.createElement(u,Nt({},d,{key:"placeholder",isDisabled:m,isFocused:w,innerProps:{id:this.getElementId("placeholder")}}),f);if(v)return x.map(function(O,M){var T=O===z,B="".concat(r.getOptionLabel(O),"-").concat(r.getOptionValue(O));return K.createElement(i,Nt({},d,{components:{Container:o,Label:s,Remove:l},isFocused:T,isDisabled:m,key:B,index:M,removeProps:{onClick:function(){return r.removeValue(O)},onTouchEnd:function(){return r.removeValue(O)},onMouseDown:function(H){H.preventDefault()}},data:O}),r.formatOptionLabel(O,"value"))});if(g)return null;var j=x[0];return K.createElement(c,Nt({},d,{data:j,isDisabled:m}),this.formatOptionLabel(j,"value"))}},{key:"renderClearIndicator",value:function(){var r=this.getComponents(),n=r.ClearIndicator,i=this.commonProps,o=this.props,s=o.isDisabled,l=o.isLoading,c=this.state.isFocused;if(!this.isClearable()||!n||s||!this.hasValue()||l)return null;var u={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return K.createElement(n,Nt({},i,{innerProps:u,isFocused:c}))}},{key:"renderLoadingIndicator",value:function(){var r=this.getComponents(),n=r.LoadingIndicator,i=this.commonProps,o=this.props,s=o.isDisabled,l=o.isLoading,c=this.state.isFocused;if(!n||!l)return null;var u={"aria-hidden":"true"};return K.createElement(n,Nt({},i,{innerProps:u,isDisabled:s,isFocused:c}))}},{key:"renderIndicatorSeparator",value:function(){var r=this.getComponents(),n=r.DropdownIndicator,i=r.IndicatorSeparator;if(!n||!i)return null;var o=this.commonProps,s=this.props.isDisabled,l=this.state.isFocused;return K.createElement(i,Nt({},o,{isDisabled:s,isFocused:l}))}},{key:"renderDropdownIndicator",value:function(){var r=this.getComponents(),n=r.DropdownIndicator;if(!n)return null;var i=this.commonProps,o=this.props.isDisabled,s=this.state.isFocused,l={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return K.createElement(n,Nt({},i,{innerProps:l,isDisabled:o,isFocused:s}))}},{key:"renderMenu",value:function(){var r=this,n=this.getComponents(),i=n.Group,o=n.GroupHeading,s=n.Menu,l=n.MenuList,c=n.MenuPortal,u=n.LoadingMessage,d=n.NoOptionsMessage,p=n.Option,h=this.commonProps,m=this.state.focusedOption,v=this.props,g=v.captureMenuScroll,f=v.inputValue,k=v.isLoading,x=v.loadingMessage,z=v.minMenuHeight,w=v.maxMenuHeight,j=v.menuIsOpen,O=v.menuPlacement,M=v.menuPosition,T=v.menuPortalTarget,B=v.menuShouldBlockScroll,H=v.menuShouldScrollIntoView,N=v.noOptionsMessage,J=v.onMenuScrollToTop,I=v.onMenuScrollToBottom;if(!j)return null;var X=function(D,W){var $=D.type,P=D.data,R=D.isDisabled,V=D.isSelected,ae=D.label,U=D.value,pe=m===P,Z=R?void 0:function(){return r.onOptionHover(P)},A=R?void 0:function(){return r.selectOption(P)},L="".concat(r.getElementId("option"),"-").concat(W),te={id:L,onClick:A,onMouseMove:Z,onMouseOver:Z,tabIndex:-1,role:"option","aria-selected":r.isAppleDevice?void 0:V};return K.createElement(p,Nt({},h,{innerProps:te,data:P,isDisabled:R,isSelected:V,key:L,label:ae,type:$,value:U,isFocused:pe,innerRef:pe?r.getFocusedOptionRef:void 0}),r.formatOptionLabel(D.data,"menu"))},re;if(this.hasOptions())re=this.getCategorizedOptions().map(function(D){if(D.type==="group"){var W=D.data,$=D.options,P=D.index,R="".concat(r.getElementId("group"),"-").concat(P),V="".concat(R,"-heading");return K.createElement(i,Nt({},h,{key:R,data:W,options:$,Heading:o,headingProps:{id:V,data:D.data},label:r.formatGroupLabel(D.data)}),D.options.map(function(ae){return X(ae,"".concat(P,"-").concat(ae.index))}))}else if(D.type==="option")return X(D,"".concat(D.index))});else if(k){var le=x({inputValue:f});if(le===null)return null;re=K.createElement(u,h,le)}else{var ie=N({inputValue:f});if(ie===null)return null;re=K.createElement(d,h,ie)}var he={minMenuHeight:z,maxMenuHeight:w,menuPlacement:O,menuPosition:M,menuShouldScrollIntoView:H},G=K.createElement(F9t,Nt({},h,he),function(D){var W=D.ref,$=D.placerProps,P=$.placement,R=$.maxHeight;return K.createElement(s,Nt({},h,he,{innerRef:W,innerProps:{onMouseDown:r.onMenuMouseDown,onMouseMove:r.onMenuMouseMove},isLoading:k,placement:P}),K.createElement(vDt,{captureEnabled:g,onTopArrive:J,onBottomArrive:I,lockEnabled:B},function(V){return K.createElement(l,Nt({},h,{innerRef:function(ae){r.getMenuListRef(ae),V(ae)},innerProps:{role:"listbox","aria-multiselectable":h.isMulti,id:r.getElementId("listbox")},isLoading:k,maxHeight:R,focusedOption:m}),re)}))});return T||M==="fixed"?K.createElement(c,Nt({},h,{appendTo:T,controlElement:this.controlRef,menuPlacement:O,menuPosition:M}),G):G}},{key:"renderFormField",value:function(){var r=this,n=this.props,i=n.delimiter,o=n.isDisabled,s=n.isMulti,l=n.name,c=n.required,u=this.state.selectValue;if(c&&!this.hasValue()&&!o)return K.createElement(yDt,{name:l,onFocus:this.onValueInputFocus});if(!(!l||o))if(s)if(i){var d=u.map(function(m){return r.getOptionValue(m)}).join(i);return K.createElement("input",{name:l,type:"hidden",value:d})}else{var p=u.length>0?u.map(function(m,v){return K.createElement("input",{key:"i-".concat(v),name:l,type:"hidden",value:r.getOptionValue(m)})}):K.createElement("input",{name:l,type:"hidden",value:""});return K.createElement("div",null,p)}else{var h=u[0]?this.getOptionValue(u[0]):"";return K.createElement("input",{name:l,type:"hidden",value:h})}}},{key:"renderLiveRegion",value:function(){var r=this.commonProps,n=this.state,i=n.ariaSelection,o=n.focusedOption,s=n.focusedValue,l=n.isFocused,c=n.selectValue,u=this.getFocusableOptions();return K.createElement(iDt,Nt({},r,{id:this.getElementId("live-region"),ariaSelection:i,focusedOption:o,focusedValue:s,isFocused:l,selectValue:c,focusableOptions:u,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var r=this.getComponents(),n=r.Control,i=r.IndicatorsContainer,o=r.SelectContainer,s=r.ValueContainer,l=this.props,c=l.className,u=l.id,d=l.isDisabled,p=l.menuIsOpen,h=this.state.isFocused,m=this.commonProps=this.getCommonProps();return K.createElement(o,Nt({},m,{className:c,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:d,isFocused:h}),this.renderLiveRegion(),K.createElement(n,Nt({},m,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:d,isFocused:h,menuIsOpen:p}),K.createElement(s,Nt({},m,{isDisabled:d}),this.renderPlaceholderOrValue(),this.renderInput()),K.createElement(i,Nt({},m,{isDisabled:d}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(r,n){var i=n.prevProps,o=n.clearFocusValueOnUpdate,s=n.inputIsHiddenAfterUpdate,l=n.ariaSelection,c=n.isFocused,u=n.prevWasFocused,d=n.instancePrefix,p=r.options,h=r.value,m=r.menuIsOpen,v=r.inputValue,g=r.isMulti,f=eje(h),k={};if(i&&(h!==i.value||p!==i.options||m!==i.menuIsOpen||v!==i.inputValue)){var x=m?LDt(r,f):[],z=m?Tje(HM(r,f),"".concat(d,"-option")):[],w=o?NDt(n,f):null,j=DDt(n,x),O=vK(z,j);k={selectValue:f,focusedOption:j,focusedOptionId:O,focusableOptionsWithIds:z,focusedValue:w,clearFocusValueOnUpdate:!1}}var M=s!=null&&r!==i?{inputIsHidden:s,inputIsHiddenAfterUpdate:void 0}:{},T=l,B=c&&u;return c&&!B&&(T={value:KM(g,f,f[0]||null),options:f,action:"initial-input-focus"},B=!u),l?.action==="initial-input-focus"&&(T=null),pt(pt(pt({},k),M),{},{prevProps:r,ariaSelection:T,prevWasFocused:B})}}]),a})(K.Component);Dje.defaultProps=BDt;var IDt=K.forwardRef(function(e,t){var a=b8t(e);return K.createElement(Dje,Nt({ref:t},a))}),KDt=IDt;const VDt=()=>b.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:b.jsx("path",{d:"M7 0.875C3.63125 0.875 0.875 3.63125 0.875 7C0.875 10.3687 3.63125 13.125 7 13.125C10.3687 13.125 13.125 10.3687 13.125 7C13.125 3.63125 10.3687 0.875 7 0.875ZM6.51875 3.5H7.48125V8.3125H6.51875V3.5ZM7 10.9375C6.65 10.9375 6.34375 10.6313 6.34375 10.2812C6.34375 9.93125 6.65 9.625 7 9.625C7.35 9.625 7.65625 9.93125 7.65625 10.2812C7.65625 10.6313 7.35 10.9375 7 10.9375Z",fill:"#FFA02E"})}),HDt=()=>b.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:b.jsx("path",{d:"M7 0.875C3.5875 0.875 0.875 3.5875 0.875 7C0.875 10.4125 3.5875 13.125 7 13.125C10.4125 13.125 13.125 10.4125 13.125 7C13.125 3.5875 10.4125 0.875 7 0.875ZM9.3625 10.0625L7 7.7L4.6375 10.0625L3.9375 9.3625L6.3 7L3.9375 4.6375L4.6375 3.9375L7 6.3L9.3625 3.9375L10.0625 4.6375L7.7 7L10.0625 9.3625L9.3625 10.0625Z",fill:"#F9316D"})}),rp=({options:e,isClearable:t=!1,isSearchable:a=!1,isDisabled:r=!1,isMulti:n=!1,isWarning:i=!1,isError:o=!1,withArrow:s=!0,placeholder:l,defaultValue:c,className:u,value:d,ariaLabel:p="select",ariaLabeledBy:h,size:m="medium",menuAlignment:v="left",icon:g,formatGroupLabel:f,onChange:k,dataTestId:x})=>{const z=T=>{const{selectProps:B}=T,{menuIsOpen:H}=B,N=H?b.jsx(qB,{size:"14px"}):b.jsx(_i,{size:"14px"});return s&&!n?b.jsxs(VM.DropdownIndicator,{...T,children:[i&&b.jsx(VDt,{}),o&&b.jsx(HDt,{}),g||N]}):null},w=T=>b.jsxs(VM.Option,{...T,innerProps:{...T.innerProps,"data-testid":"select-option"},children:[T.children," ",T.isSelected&&b.jsx(wc,{})]}),j=T=>b.jsx(VM.SingleValue,{...T,innerProps:{...T.innerProps,"data-testid":x||"select-singleValue"},children:T.children}),O=K.useMemo(()=>({menu:T=>({...T,maxWidth:"424px",width:"auto",boxShadow:"0px 0px 4px 0px rgba(51, 51, 51, 0.15)",border:"1px solid var(--border-color-secondary)",borderRadius:"var(--border-radius-md)",overflow:"hidden",textOverflow:"ellipsis",zIndex:3,opacity:1,backgroundColor:"var(--bg-color)",minWidth:"max-content",right:v==="right"?0:"unset"})}),[v]),M=K.useMemo(()=>({dropdownIndicator:()=>({display:"none"})}),[]);return b.jsx(KDt,{className:`${u} react-select-${m}`,options:e,onChange:k,isSearchable:a,isClearable:t,isDisabled:r,isMulti:n,placeholder:l,defaultValue:c,value:d,formatGroupLabel:f,components:{Option:w,SingleValue:j,DropdownIndicator:z,IndicatorSeparator:null},styles:{...FDt,...O,...r?M:{}},"aria-label":p,"aria-labelledby":h})},FDt={container:e=>({...e}),control:(e,t)=>({...e,display:"flex",gap:"var(--spacing-xxs)",boxShadow:"none",maxWidth:"424px",overflow:"hidden",textOverflow:"ellipsis",minHeight:"24px",padding:t.isMulti?"0px var(--spacing-unit)":"0px var(--spacing-xs)",alignItems:"center",backgroundColor:t.isDisabled?"var(--layer-color)":"var(--bg-color)",border:"none","&:hover":{cursor:"pointer"}}),singleValue:(e,t)=>({...e,color:t.isDisabled?"var(--color-content-disabled)":"var(--color-content)",fontSize:"var(--font-size-base)",lineHeight:"var(--line-height-base)",overflow:"hidden",margin:0,"&:hover":{color:"var(--text-primary)"}}),dropdownIndicator:(e,t)=>({...e,color:t.isDisabled?"var(--color-content-disabled)":"var(--color-content)",fill:t.isDisabled?"var(--color-content-disabled)":"var(--color-content)",display:"flex",alignItems:"center",alignSelf:"auto",justifyContent:"center",padding:0,gap:"var(--spacing-xs)","&:hover":{color:"var(--icon-color-additional)",fill:"var(--icon-color-additional)"}}),clearIndicator:e=>({...e,padding:0,width:"14px",height:"14px",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",fill:"var(--color-content-placeholder)"}),valueContainer:e=>({...e,padding:0,overflow:"visible"}),indicatorsContainer:e=>({...e,gap:"var(--spacing-unit)"}),placeholder:(e,t)=>({...e,color:"var(--color-content-placeholder)",fontSize:"var(--font-size-base)",margin:0,padding:t.isMulti?"0px var(--spacing-xs)":0}),input:e=>({...e,fontSize:"var(--font-size-base)",color:"var(--color-content)",margin:0,padding:0}),group:e=>({...e,paddingLeft:"var(--spacing-xs)"}),menuList:e=>({...e,backgroundColor:"var(--bg-color)",padding:"var(--spacing-unit)",overflowX:"hidden","& > div:not(:last-child)":{margin:"0px 0px calc(var(--spacing-unit)/2) 0px"}}),option:(e,t)=>({...e,minWidth:"max-content",cursor:"pointer",borderRadius:"var(--border-radius-md)",fontSize:"var(--font-size-base)",lineHeight:"var(--line-height-base)",padding:"0px var(--spacing-xs)",minHeight:"32px",color:"var(--color-content)",fill:"var(--color-content)",fontWeight:t.isSelected?"var(--font-weight-medium)":"var(--font-weight-regular)",display:"flex",alignItems:"center",justifyContent:"space-between",gap:"var(--spacing-xs)",backgroundColor:"unset",div:{maxWidth:"400px",textOverflow:"ellipsis",overflow:"hidden"},"&:hover":{backgroundColor:"var(--menu-item-bg-color-hover)"}})},eo=Y(Ye).attrs({variant:"text",size:"small",tone:"danger"})`
|